this.wc=this.wc||{},this.wc.currency=function(e){vart={};functionr(o){if(t[o])returnt[o].exports;varn=t[o]={i:o,l:!1,exports:{}};returne[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}returnr.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)returne;if(4&t&&"object"==typeofe&&e&&e.__esModule)returne;varo=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeofe)for(varnine)r.d(o,n,function(t){returne[t]}.bind(null,n));returno},r.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returnr.d(t,"a",t),t},r.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=717)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},128:function(e,t){!function(){e.exports=this.wc.number}()},32:function(e,t,r){"use strict";functiono(e,t,r){returntine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){returno}))},7:function(e,t,r){"use strict";functiono(e,t){for(varr=0;r<t.length;r++){varo=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}functionn(e,t,r){returnt&&o(e.prototype,t),r&&o(e,r),e}r.d(t,"a",(function(){returnn}))},717:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){returnl})),r.d(t,"getCurrencyData",(function(){returnp}));varo=r(32),n=r(8),i=r(7),a=r(0),s=r(1),c=r(128);functionu(e,t){varr=Object.keys(e);if(Object.getOwnPropertySymbols){varo=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}returnr}varl=function(){functione(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:null;Object(n.a)(this,e),this.code||this.setCurrency(t)}returnObject(i.a)(e,[{key:"setCurrency",value:function(e){vart=function(e){for(vart=1;t<arguments.length;t++){varr=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){Object(o.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}returne}({},{code:"USD",symbol:"$",symbolPosition:"left",thousandSeparator:",",decimalSeparator:".",precision:2},{},e);this.code=t.code.toString(),this.symbol=t.symbol.toString(),this.symbolPosition=t.symbolPosition.toString(),this.decimalSeparator=t.decimalSeparator.toString(),this.priceFormat=t.priceFormat?t.priceFormat.toString():this.getPriceFormat(t),this.thousandSeparator=t.thousandSeparator.toString();varr=parseInt(t.precision,10);this.precision=r}},{key:"getPriceFormat",value:function(e){switch(e.symbolPosition){case"left":return"%1$s%2$s";case"right":return"%2$s%1$s";case"left_space":return"%1$s %2$s";case"right_space":return"%2$s %1$s"}return"%1$s%2$s"}},{key:"formatCurrency",value:function(e){vart=Object(c.numberFormat)(this,e);return""===t?t:Object(s.sprintf)(this.priceFormat,this.symbol,t)}},{key:"formatDecimal",value:function(e){return"number"!=typeofe&&(e=parseFloat(e)),Number.isNaN(e)?0:Math.round(e*Math.pow(10,this.precision))/Math.pow(10,this.precision)}},{key:"formatDecimalString",value:function(e){return"number"!=typeofe&&(e=parseFloat(e)),Number.isNaN(e)?"":e.toFixed(this.precision)}},{key:"render",value:function(e){return"number"!=typeofe&&(e=parseFloat(e)),e<0?Object(a.createElement)("span",{className:"is-negative"},this.formatCurrency(e)):this.formatCurrency(e)}}]),e}();functionp(){return{US:{code:"USD",symbol:"$",symbolPosition:"left",thousandSeparator:",",decimalSeparator:".",precision:2},EU:{code:"EUR",symbol:"€",symbolPosition:"left",thousandSeparator:".",decimalSeparator:",",precision:2},IN:{code:"INR",symbol:"₹",symbolPosition:"left",thousandSeparator:",",decimalSeparator:".",precision:2},GB:{code:"GBP",symbol:"£",symbolPosition:"left",thousandSeparator:",",decimalSeparator:".",precision:2},BR:{code:"BRL",symbol:"R$",symbolPosition:"left",thousandSeparator:".",decimalSeparator:",",precision:2},VN:{code:"VND",symbol:"₫",symbolPosition:"right",thousandSeparator:".",decimalSeparator:",",precision:1},ID:{code:"IDR",symbol:"Rp",symbolPosition:"left",thousandSeparator:".",decimalSeparator:",",precision:0},BD:{code:"BDT",symbol:"৳",symbolPosition:"left",thousandSeparator:",",decimalSeparator:".",precision:0},PK:{code:"PKR",symbol:"₨",symbolPosition:"left",thousandSeparator:",",decimalSeparator:".",precision:2},RU:{code:"RUB",symbol:"₽",symbolPosition:"right",thousandSeparator:" ",decimalSeparator:",",precision:2},TR:{code:"TRY",symbol:"₺",symbolPosition:"left",thousandSeparator:".",decimalSeparator:",",precision:2},MX:{code:"MXN",symbol:"$",symbolPosition:"left",thousandSeparator:",",decimalSeparator:".",precision:2},CA:{code:"CAD",symbol:"$",symbolPosition:"left",thousandSeparator:",",decimalSeparator:".",precision:2}}}},8:function(e,t,r){"use strict";functiono(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}r.d(t,"a",(function(){returno}))}});