"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[8084],{90488:function(i,t,n){n.d(t,{i:function(){return s},m:function(){return u},z:function(){return r}});var r=["bif","byr","clp","djf","gnf","isk","jpy","kmf","krw","pyg","rwf","ugx","vnd","vuv","xaf","xag","xau","xba","xbb","xbc","xbd","xdr","xof","xpd","xpf","xpt","xts"],u=function(i,t){return s(t)?i:i/100},s=function(i){var t;return r.includes(null===(t=null==i?void 0:i.toLowerCase)||void 0===t?void 0:t.call(i))}},65703:function(i,t,n){n.r(t),n.d(t,{sc_format_number:function(){return m}});var r=n(23029),u=n(92901),s=n(27364),a=n(90488),e={kg:"kilogram",lb:"pound",g:"gram",oz:"ounce"},m=function(){return(0,u.A)((function i(t){(0,r.A)(this,i),(0,s.r)(this,t),this.value=0,this.locale=void 0,this.type="decimal",this.noGrouping=!1,this.currency="USD",this.currencyDisplay="symbol",this.minimumIntegerDigits=void 0,this.minimumFractionDigits=null,this.maximumFractionDigits=void 0,this.minimumSignificantDigits=void 0,this.maximumSignificantDigits=void 0,this.noConvert=void 0,this.unit="lb"}),[{key:"render",value:function(){if(isNaN(this.value))return"";var i=navigator.language||(null===navigator||void 0===navigator?void 0:navigator.browserLanguage)||(navigator.languages||["en"])[0],t=this.noConvert||"currency"!==this.type?this.value:(0,a.m)(this.value,this.currency.toUpperCase()),n=t%1==0?0:2;return new Intl.NumberFormat(this.locale||i,{style:this.type,currency:this.currency.toUpperCase(),currencyDisplay:this.currencyDisplay,useGrouping:!this.noGrouping,minimumIntegerDigits:this.minimumIntegerDigits,minimumFractionDigits:null!==this.minimumFractionDigits?this.minimumFractionDigits:n,maximumFractionDigits:this.maximumFractionDigits,minimumSignificantDigits:this.minimumSignificantDigits,maximumSignificantDigits:this.maximumSignificantDigits,unit:e[this.unit]}).format(t)}}])}()}}]);