{"version":3,"sources":["webpack:///./Scripts/Components/FreeShipping.js","webpack:///./Scripts/Containers/FreeShipping.container.js"],"names":["FreeShipping","props","state","anyColonial","this","colonialGoodsData","categoryTotalSum","anyFrozen","frozenGoodsData","shippingRequirementPerCategory","freeShippingRequirementPerCategory","shippingRequirementTotal","freeShippingRequirementTotalSum","currentUserAddressId","className","isCheckOutPage","totalGoodsData","freeShippingReached","translate","style","width","currentPercentage","amountLeftForFreeDelivery","quantity","orderTotal","href","checkoutUrl","Component","connect","cart","checkout","dispatch"],"mappings":"+mBACoD,IA2FrCA,EAzFG,gCACd,WAAYC,GAAO,MAGb,OAHa,aACf,cAAMA,IACDC,MAAQ,GACX,EAmFL,OAlFA,2BAED,WAEI,IAAMC,EAAcC,KAAKH,MAAMI,kBAAkBC,iBAC3CC,EAAYH,KAAKH,MAAMO,gBAAgBF,iBACvCG,EAAiCL,KAAKH,MAAMS,mCAC5CC,EAA2BP,KAAKH,MAAMW,gCAE5C,OAAsC,MAAnCR,KAAKH,MAAMY,uBAAiCJ,GAAkCE,GAEzE,yBAAKG,UAAS,cAAUV,KAAKH,MAAMc,eAAgD,qCAA/B,+BAChD,yBAAKD,UAAU,qBACTV,KAAKH,MAAMe,eAAeC,oBAqCzB,yBAAKH,UAAU,8CACjBI,YAAU,iCArCX,yBAAKJ,UAAU,2BACX,yBAAKA,UAAU,oCACVV,KAAKH,MAAMI,kBAAkBY,oBAC1B,yBAAKH,UAAU,8CACVI,YAAU,oCAIf,yBAAKJ,UAAU,uDACX,yBAAKA,UAAU,uEAAuEK,MAAO,CAACC,MAAOhB,KAAKH,MAAMI,kBAAkBgB,kBAAoB,OACtJ,0BAAMP,UAAU,cACXX,EAAcC,KAAKH,MAAMI,kBAAkBiB,0BAA4BlB,KAAKH,MAAMS,mCAAkC,IAAGQ,YAAU,oCAI7Id,KAAKH,MAAMO,gBAAgBS,oBACxB,yBAAKH,UAAU,8CACVI,YAAU,kCAIf,yBAAKJ,UAAU,qDACX,yBAAKA,UAAU,qEAAqEK,MAAO,CAACC,MAAOhB,KAAKH,MAAMO,gBAAgBa,kBAAoB,OAClJ,0BAAMP,UAAU,cACXP,EAAYH,KAAKH,MAAMO,gBAAgBc,0BAA4BlB,KAAKH,MAAMS,mCAAkC,IAAGQ,YAAU,mCAI9I,yBAAKJ,UAAU,oDACX,yBAAKA,UAAU,oEAAoEK,MAAO,CAACC,MAAOhB,KAAKH,MAAMe,eAAeK,kBAAoB,OAChJ,0BAAMP,UAAU,cACPV,KAAKH,MAAMe,eAAeV,iBAAmBF,KAAKH,MAAMe,eAAeM,0BAA4BlB,KAAKH,MAAMW,gCAA+B,IAAGM,YAAU,kCAS3K,yBAAKJ,UAAU,aACX,2BAAOA,UAAS,UAAKV,KAAKH,MAAMc,eAAiB,wBAA0B,KACvE,+BACI,4BACI,wBAAID,UAAU,mCAAmCI,YAAU,0CAC3D,wBAAIJ,UAAU,oCAAoCI,YAAU,kCAGpE,+BACI,4BACI,4BAAKd,KAAKH,MAAMsB,UAChB,4BAAKnB,KAAKH,MAAMuB,eAI1BpB,KAAKH,MAAMc,eAIP,KAHF,uBAAGU,KAAMrB,KAAKH,MAAMyB,YAAaZ,UAAU,mBACvC,0BAAMA,UAAU,eAAeI,YAAU,uCAS1D,SAEd,EAvFa,CAASS,aCgBZC,uBAbS,SAAC1B,GAAU,IACvB2B,EAAmB3B,EAAnB2B,KAAMC,EAAa5B,EAAb4B,SACd,OAAO,OACAD,EACAC,MAIgB,SAACC,GACxB,MAAO,KAIIH,EAfe,SAAC3B,GAAK,OAAK,kBAAC,EAAiBA","file":"12.feabc9f5f9ea4f675142.js","sourcesContent":["import React, { Component } from 'react';\r\nimport { translate } from '../Services/translation';\r\n\r\nclass FreeShipping extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n };\r\n }\r\n\r\n render()\r\n {\r\n const anyColonial = this.props.colonialGoodsData.categoryTotalSum;\r\n const anyFrozen = this.props.frozenGoodsData.categoryTotalSum;\r\n const shippingRequirementPerCategory = this.props.freeShippingRequirementPerCategory;\r\n const shippingRequirementTotal = this.props.freeShippingRequirementTotalSum;\r\n\r\n if(this.props.currentUserAddressId != null && (shippingRequirementPerCategory || shippingRequirementTotal)) {\r\n return (\r\n
\r\n
\r\n {!this.props.totalGoodsData.freeShippingReached ? (\r\n
\r\n
\r\n {this.props.colonialGoodsData.freeShippingReached ? (\r\n
\r\n {translate('freeshipping.completed.colonial')}\r\n
\r\n )\r\n : (\r\n
\r\n
\r\n \r\n {anyColonial ? this.props.colonialGoodsData.amountLeftForFreeDelivery : this.props.freeShippingRequirementPerCategory} {translate('freeshipping.progress.colonial')}\r\n \r\n
) }\r\n\r\n {this.props.frozenGoodsData.freeShippingReached ? (\r\n
\r\n {translate('freeshipping.completed.frozen')}\r\n
\r\n )\r\n : (\r\n
\r\n
\r\n \r\n {anyFrozen ? this.props.frozenGoodsData.amountLeftForFreeDelivery : this.props.freeShippingRequirementPerCategory} {translate('freeshipping.progress.frozen')}\r\n \r\n
) }\r\n
\r\n
\r\n
\r\n \r\n {this.props.totalGoodsData.categoryTotalSum ? this.props.totalGoodsData.amountLeftForFreeDelivery : this.props.freeShippingRequirementTotalSum} {translate('freeshipping.progress.total')}\r\n \r\n
\r\n
\r\n ) \r\n : (
\r\n {translate('freeshipping.completed.total')}\r\n
) }\r\n\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
{translate(\"freeshipping.minicart.numberofproduct\")}{translate(\"freeshipping.minicart.total\")}
{this.props.quantity}{this.props.orderTotal}
\r\n {!this.props.isCheckOutPage ?\r\n \r\n {translate(\"freeshipping.minicart.checkout\")}\r\n \r\n : null }\r\n
\r\n
\r\n
\r\n )\r\n }\r\n else{\r\n return null;\r\n }\r\n }\r\n}\r\nexport default FreeShipping\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport FreeShipping from \"../Components/FreeShipping\";\r\n\r\nconst FreeShippingContainer = (props) => ;\r\n\r\nconst mapStateToProps = (state) => {\r\n const { cart, checkout } = state;\r\n return {\r\n ...cart,\r\n ...checkout,\r\n };\r\n};\r\n\r\nconst mapDispatchToProps = (dispatch) => {\r\n return {\r\n };\r\n};\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(FreeShippingContainer);\r\n"],"sourceRoot":""}