@everymatrix/cashier-methods-list 1.54.12 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierMethodsList-CqiPYLof.cjs → CashierMethodsList-BN4zszLG.cjs} +1 -1
- package/components/{CashierMethodsList-BDVj1ioH.js → CashierMethodsList-CI0SC2TH.js} +2 -2
- package/components/{CashierMethodsList-C6_75ARy.js → CashierMethodsList-CNSgCuC4.js} +2 -2
- package/es2015/cashier-methods-list.cjs +1 -1
- package/es2015/cashier-methods-list.js +1 -1
- package/esnext/cashier-methods-list.js +1 -1
- package/package.json +1 -1
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
3
|
`,Me.MISSING_INTL_API,o);var D=r.getPluralRules(t,{type:h.pluralType}).select(c-(h.offset||0));A=h.options[D]||h.options.other}if(!A)throw new Ut(h.value,c,Object.keys(h.options),o);a.push.apply(a,je(A.value,t,r,n,i,c-(h.offset||0)));continue}}return gi(a)}function bi(e,t){return t?O(O(O({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=O(O({},e[n]),t[n]||{}),r},{})):e}function yi(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=bi(e[n],t[n]),r},O({},e)):e}function ot(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function vi(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:nt(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,rt([void 0],r,!1)))},{cache:ot(e.number),strategy:it.variadic}),getDateTimeFormat:nt(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,rt([void 0],r,!1)))},{cache:ot(e.dateTime),strategy:it.variadic}),getPluralRules:nt(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,rt([void 0],r,!1)))},{cache:ot(e.pluralRules),strategy:it.variadic})}}var Sr=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var h=u.reduce(function(f,c){return!f.length||c.type!==J.literal||typeof f[f.length-1]!="string"?f.push(c.value):f[f.length-1]+=c.value,f},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(l){return je(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var a=An(o,["formatters"]);this.ast=e.__parse(t,O(O({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=yi(e.formats,n),this.formatters=i&&i.formatters||vi(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=ci,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function xi(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const de={},Ei=(e,t,r)=>r&&(t in de||(de[t]={}),e in de[t]||(de[t][e]=r),r),Mr=(e,t)=>{if(t==null)return;if(t in de&&e in de[t])return de[t][e];const r=De(t);for(let n=0;n<r.length;n++){const i=r[n],s=wi(i,e);if(s)return Ei(e,t,s)}};let _t;const Ie=Ze({});function _i(e){return _t[e]||null}function Tr(e){return e in _t}function wi(e,t){if(!Tr(e))return null;const r=_i(e);return xi(r,t)}function Si(e){if(e==null)return;const t=De(e);for(let r=0;r<t.length;r++){const n=t[r];if(Tr(n))return n}}function Hr(e,...t){delete de[e],Ie.update(r=>(r[e]=Ln.all([r[e]||{},...t]),r))}Le([Ie],([e])=>Object.keys(e));Ie.subscribe(e=>_t=e);const Ve={};function Mi(e,t){Ve[e].delete(t),Ve[e].size===0&&delete Ve[e]}function Lr(e){return Ve[e]}function Ti(e){return De(e).map(t=>{const r=Lr(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Xe(e){return e==null?!1:De(e).some(t=>{var r;return(r=Lr(t))==null?void 0:r.size})}function Hi(e,t){return Promise.all(t.map(n=>(Mi(e,n),n().then(i=>i.default||i)))).then(n=>Hr(e,...n))}const Oe={};function Ar(e){if(!Xe(e))return e in Oe?Oe[e]:Promise.resolve();const t=Ti(e);return Oe[e]=Promise.all(t.map(([r,n])=>Hi(r,n))).then(()=>{if(Xe(e))return Ar(e);delete Oe[e]}),Oe[e]}var Gt=Object.getOwnPropertySymbols,Li=Object.prototype.hasOwnProperty,Ai=Object.prototype.propertyIsEnumerable,Oi=(e,t)=>{var r={};for(var n in e)Li.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Gt)for(var n of Gt(e))t.indexOf(n)<0&&Ai.call(e,n)&&(r[n]=e[n]);return r};const $i={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function Bi({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${De(e).join('", "')}".${Xe(ge())?`
|
|
4
4
|
|
|
5
|
-
Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Pi={fallbackLocale:null,loadingDelay:200,formats:$i,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},$e=Pi;function Te(){return $e}function Ci(e){const t=e,{formats:r}=t,n=Oi(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{Sr.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(s){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=Bi:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign($e,n,{initialLocale:i}),r&&("number"in r&&Object.assign($e.formats.number,r.number),"date"in r&&Object.assign($e.formats.date,r.date),"time"in r&&Object.assign($e.formats.time,r.time)),be.set(i)}const at=Ze(!1);var Ni=Object.defineProperty,Ii=Object.defineProperties,Di=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,Ri=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,Ft=(e,t,r)=>t in e?Ni(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gi=(e,t)=>{for(var r in t||(t={}))Ri.call(t,r)&&Ft(e,r,t[r]);if(kt)for(var r of kt(t))Ui.call(t,r)&&Ft(e,r,t[r]);return e},ki=(e,t)=>Ii(e,Di(t));let vt;const ze=Ze(null);function jt(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function De(e,t=Te().fallbackLocale){const r=jt(e);return t?[...new Set([...r,...jt(t)])]:r}function ge(){return vt!=null?vt:void 0}ze.subscribe(e=>{vt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Fi=e=>{if(e&&Si(e)&&Xe(e)){const{loadingDelay:t}=Te();let r;return typeof window!="undefined"&&ge()!=null&&t?r=window.setTimeout(()=>at.set(!0),t):at.set(!0),Ar(e).then(()=>{ze.set(e)}).finally(()=>{clearTimeout(r),at.set(!1)})}return ze.set(e)},be=ki(Gi({},ze),{set:Fi}),qe=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var ji=Object.defineProperty,Ye=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,Vt=(e,t,r)=>t in e?ji(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wt=(e,t)=>{for(var r in t||(t={}))Or.call(t,r)&&Vt(e,r,t[r]);if(Ye)for(var r of Ye(t))$r.call(t,r)&&Vt(e,r,t[r]);return e},Ae=(e,t)=>{var r={};for(var n in e)Or.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ye)for(var n of Ye(e))t.indexOf(n)<0&&$r.call(e,n)&&(r[n]=e[n]);return r};const Ne=(e,t)=>{const{formats:r}=Te();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Vi=qe(e=>{var t=e,{locale:r,format:n}=t,i=Ae(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Ne("number",n)),new Intl.NumberFormat(r,i)}),Wi=qe(e=>{var t=e,{locale:r,format:n}=t,i=Ae(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Ne("date",n):Object.keys(i).length===0&&(i=Ne("date","short")),new Intl.DateTimeFormat(r,i)}),Xi=qe(e=>{var t=e,{locale:r,format:n}=t,i=Ae(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Ne("time",n):Object.keys(i).length===0&&(i=Ne("time","short")),new Intl.DateTimeFormat(r,i)}),zi=(e={})=>{var t=e,{locale:r=ge()}=t,n=Ae(t,["locale"]);return Vi(wt({locale:r},n))},Yi=(e={})=>{var t=e,{locale:r=ge()}=t,n=Ae(t,["locale"]);return Wi(wt({locale:r},n))},Zi=(e={})=>{var t=e,{locale:r=ge()}=t,n=Ae(t,["locale"]);return Xi(wt({locale:r},n))},Ji=qe((e,t=ge())=>new Sr(e,t,Te().formats,{ignoreTag:Te().ignoreTag})),Qi=(e,t={})=>{var r,n,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:l=ge(),default:u}=o;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Mr(e,l);if(!h)h=(s=(i=(n=(r=Te()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!a)return h;let f=h;try{f=Ji(h,l).format(a)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return f},qi=(e,t)=>Zi(t).format(e),Ki=(e,t)=>Yi(t).format(e),es=(e,t)=>zi(t).format(e),ts=(e,t=ge())=>Mr(e,t),rs=Le([be,Ie],()=>Qi);Le([be],()=>qi);Le([be],()=>Ki);Le([be],()=>es);Le([be,Ie],()=>ts);function Wt(e,t){Hr(e,t)}function ns(e){Ci({fallbackLocale:"en"}),be.set(e)}const Xt={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS",error:"Error",noPaymentMethods:"No payment methods available"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Prikaži sve",showLess:"Prikaži manje"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER",error:"Hata",noPaymentMethods:"Hiçbir ödeme yöntemi mevcut değil"},"en-us":{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"}};var Br={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(or,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",a="minute",l="hour",u="day",h="week",f="month",c="quarter",x="year",w="date",b="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var p=["th","st","nd","rd"],m=E%100;return"["+E+(p[(m-20)%10]||p[m]||p[0])+"]"}},A=function(E,p,m){var y=String(E);return!y||y.length>=p?E:""+Array(p+1-y.length).join(m)+E},D={s:A,z:function(E){var p=-E.utcOffset(),m=Math.abs(p),y=Math.floor(m/60),g=m%60;return(p<=0?"+":"-")+A(y,2,"0")+":"+A(g,2,"0")},m:function E(p,m){if(p.date()<m.date())return-E(m,p);var y=12*(m.year()-p.year())+(m.month()-p.month()),g=p.clone().add(y,f),_=m-g<0,v=p.clone().add(y+(_?-1:1),f);return+(-(y+(m-g)/(_?g-v:v-g))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:f,y:x,w:h,d:u,D:w,h:l,m:a,s:o,ms:s,Q:c}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},C="en",j={};j[C]=I;var G="$isDayjsObject",K=function(E){return E instanceof re||!(!E||!E[G])},z=function E(p,m,y){var g;if(!p)return C;if(typeof p=="string"){var _=p.toLowerCase();j[_]&&(g=_),m&&(j[_]=m,g=_);var v=p.split("-");if(!g&&v.length>1)return E(v[0])}else{var $=p.name;j[$]=p,g=$}return!y&&g&&(C=g),g||!y&&C},N=function(E,p){if(K(E))return E.clone();var m=typeof p=="object"?p:{};return m.date=E,m.args=arguments,new re(m)},M=D;M.l=z,M.i=K,M.w=function(E,p){return N(E,{locale:p.$L,utc:p.$u,x:p.$x,$offset:p.$offset})};var re=function(){function E(m){this.$L=z(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[G]=!0}var p=E.prototype;return p.parse=function(m){this.$d=function(y){var g=y.date,_=y.utc;if(g===null)return new Date(NaN);if(M.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var v=g.match(S);if(v){var $=v[2]-1||0,U=(v[7]||"0").substring(0,3);return _?new Date(Date.UTC(v[1],$,v[3]||1,v[4]||0,v[5]||0,v[6]||0,U)):new Date(v[1],$,v[3]||1,v[4]||0,v[5]||0,v[6]||0,U)}}return new Date(g)}(m),this.init()},p.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},p.$utils=function(){return M},p.isValid=function(){return this.$d.toString()!==b},p.isSame=function(m,y){var g=N(m);return this.startOf(y)<=g&&g<=this.endOf(y)},p.isAfter=function(m,y){return N(m)<this.startOf(y)},p.isBefore=function(m,y){return this.endOf(y)<N(m)},p.$g=function(m,y,g){return M.u(m)?this[y]:this.set(g,m)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(m,y){var g=this,_=!!M.u(y)||y,v=M.p(m),$=function(fe,Y){var ae=M.w(g.$u?Date.UTC(g.$y,Y,fe):new Date(g.$y,Y,fe),g);return _?ae:ae.endOf(u)},U=function(fe,Y){return M.w(g.toDate()[fe].apply(g.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(Y)),g)},V=this.$W,X=this.$M,Q=this.$D,ce="set"+(this.$u?"UTC":"");switch(v){case x:return _?$(1,0):$(31,11);case f:return _?$(1,X):$(0,X+1);case h:var he=this.$locale().weekStart||0,me=(V<he?V+7:V)-he;return $(_?Q-me:Q+(6-me),X);case u:case w:return U(ce+"Hours",0);case l:return U(ce+"Minutes",1);case a:return U(ce+"Seconds",2);case o:return U(ce+"Milliseconds",3);default:return this.clone()}},p.endOf=function(m){return this.startOf(m,!1)},p.$set=function(m,y){var g,_=M.p(m),v="set"+(this.$u?"UTC":""),$=(g={},g[u]=v+"Date",g[w]=v+"Date",g[f]=v+"Month",g[x]=v+"FullYear",g[l]=v+"Hours",g[a]=v+"Minutes",g[o]=v+"Seconds",g[s]=v+"Milliseconds",g)[_],U=_===u?this.$D+(y-this.$W):y;if(_===f||_===x){var V=this.clone().set(w,1);V.$d[$](U),V.init(),this.$d=V.set(w,Math.min(this.$D,V.daysInMonth())).$d}else $&&this.$d[$](U);return this.init(),this},p.set=function(m,y){return this.clone().$set(m,y)},p.get=function(m){return this[M.p(m)]()},p.add=function(m,y){var g,_=this;m=Number(m);var v=M.p(y),$=function(X){var Q=N(_);return M.w(Q.date(Q.date()+Math.round(X*m)),_)};if(v===f)return this.set(f,this.$M+m);if(v===x)return this.set(x,this.$y+m);if(v===u)return $(1);if(v===h)return $(7);var U=(g={},g[a]=n,g[l]=i,g[o]=r,g)[v]||1,V=this.$d.getTime()+m*U;return M.w(V,this)},p.subtract=function(m,y){return this.add(-1*m,y)},p.format=function(m){var y=this,g=this.$locale();if(!this.isValid())return g.invalidDate||b;var _=m||"YYYY-MM-DDTHH:mm:ssZ",v=M.z(this),$=this.$H,U=this.$m,V=this.$M,X=g.weekdays,Q=g.months,ce=g.meridiem,he=function(Y,ae,d,B){return Y&&(Y[ae]||Y(y,_))||d[ae].slice(0,B)},me=function(Y){return M.s($%12||12,Y,"0")},fe=ce||function(Y,ae,d){var B=Y<12?"AM":"PM";return d?B.toLowerCase():B};return _.replace(P,function(Y,ae){return ae||function(d){switch(d){case"YY":return String(y.$y).slice(-2);case"YYYY":return M.s(y.$y,4,"0");case"M":return V+1;case"MM":return M.s(V+1,2,"0");case"MMM":return he(g.monthsShort,V,Q,3);case"MMMM":return he(Q,V);case"D":return y.$D;case"DD":return M.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return he(g.weekdaysMin,y.$W,X,2);case"ddd":return he(g.weekdaysShort,y.$W,X,3);case"dddd":return X[y.$W];case"H":return String($);case"HH":return M.s($,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return fe($,U,!0);case"A":return fe($,U,!1);case"m":return String(U);case"mm":return M.s(U,2,"0");case"s":return String(y.$s);case"ss":return M.s(y.$s,2,"0");case"SSS":return M.s(y.$ms,3,"0");case"Z":return v}return null}(Y)||v.replace(":","")})},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(m,y,g){var _,v=this,$=M.p(y),U=N(m),V=(U.utcOffset()-this.utcOffset())*n,X=this-U,Q=function(){return M.m(v,U)};switch($){case x:_=Q()/12;break;case f:_=Q();break;case c:_=Q()/3;break;case h:_=(X-V)/6048e5;break;case u:_=(X-V)/864e5;break;case l:_=X/i;break;case a:_=X/n;break;case o:_=X/r;break;default:_=X}return g?_:M.a(_)},p.daysInMonth=function(){return this.endOf(f).$D},p.$locale=function(){return j[this.$L]},p.locale=function(m,y){if(!m)return this.$L;var g=this.clone(),_=z(m,y,!0);return _&&(g.$L=_),g},p.clone=function(){return M.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},E}(),pe=re.prototype;return N.prototype=pe,[["$ms",s],["$s",o],["$m",a],["$H",l],["$W",u],["$M",f],["$y",x],["$D",w]].forEach(function(E){pe[E[1]]=function(p){return this.$g(p,E[0],E[1])}}),N.extend=function(E,p){return E.$i||(E(p,re,N),E.$i=!0),N},N.locale=z,N.isDayjs=K,N.unix=function(E){return N(1e3*E)},N.en=j[C],N.Ls=j,N.p={},N})})(Br);var is=Br.exports;const zt=Et(is);var Pr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(or,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(s,o,a){var l=o.prototype;a.utc=function(b){var S={date:b,utc:!0,args:arguments};return new o(S)},l.utc=function(b){var S=a(this.toDate(),{locale:this.$L,utc:!0});return b?S.add(this.utcOffset(),r):S},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(b){b.utc&&(this.$u=!0),this.$utils().u(b.$offset)||(this.$offset=b.$offset),u.call(this,b)};var h=l.init;l.init=function(){if(this.$u){var b=this.$d;this.$y=b.getUTCFullYear(),this.$M=b.getUTCMonth(),this.$D=b.getUTCDate(),this.$W=b.getUTCDay(),this.$H=b.getUTCHours(),this.$m=b.getUTCMinutes(),this.$s=b.getUTCSeconds(),this.$ms=b.getUTCMilliseconds()}else h.call(this)};var f=l.utcOffset;l.utcOffset=function(b,S){var P=this.$utils().u;if(P(b))return this.$u?0:P(this.$offset)?f.call(this):this.$offset;if(typeof b=="string"&&(b=function(C){C===void 0&&(C="");var j=C.match(n);if(!j)return null;var G=(""+j[0]).match(i)||["-",0,0],K=G[0],z=60*+G[1]+ +G[2];return z===0?0:K==="+"?z:-z}(b),b===null))return this;var I=Math.abs(b)<=16?60*b:b,A=this;if(S)return A.$offset=I,A.$u=b===0,A;if(b!==0){var D=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(A=this.local().add(I+D,r)).$offset=I,A.$x.$localOffset=D}else A=this.utc();return A};var c=l.format;l.format=function(b){var S=b||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,S)},l.valueOf=function(){var b=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*b},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var x=l.toDate;l.toDate=function(b){return b==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():x.call(this)};var w=l.diff;l.diff=function(b,S,P){if(b&&this.$u===b.$u)return w.call(this,b,S,P);var I=this.local(),A=a(b).local();return w.call(I,A,S,P)}}})})(Pr);var ss=Pr.exports;const os=Et(ss);function as(e){jr(e,"svelte-1wlv0rl","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.EmptyContentMessageWrapper{display:flex;flex-direction:column;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:var(--emw--spacing-small, 12px);max-height:500px}.EmptyContentMessageHeader{display:flex;gap:4px;align-items:end}.EmptyContentMessageTitle{font-size:var(--emw--font-size-small, 16px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--emw--color-warning, rgb(250, 146, 0))}.EmptyContentMessageText{word-break:break-word;padding:var(--emw--spacing-small, 12px) calc(var(--emw--spacing-small, 12px) / 2);font-size:var(--emw--font-size-small, 14px)}.EmptyContentMessageDesktop p{font-size:var(--emw--font-size-medium, 16px)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}")}function Yt(e,t,r){const n=e.slice();return n[48]=t[r],n[50]=r,n}function Zt(e){let t;return{c(){t=F("cashier-spinner"),Z(t,"clientstylingurl",e[4]),Z(t,"clientstyling",e[3])},m(r,n){le(r,t,n)},p(r,n){n[0]&16&&Z(t,"clientstylingurl",r[4]),n[0]&8&&Z(t,"clientstyling",r[3])},d(r){r&&oe(t)}}}function Jt(e){let t,r,n,i,s=Ot(e[8]),o=[];for(let u=0;u<s.length;u+=1)o[u]=Qt(Yt(e,s,u));let a=e[13]&&!e[12]&&qt(e),l=e[7]&&Kt(e);return{c(){t=F("div"),r=F("div");for(let u=0;u<o.length;u+=1)o[u].c();n=te(),a&&a.c(),i=te(),l&&l.c(),k(r,"class","CashierMethodList"),k(t,"class","CashierMethodListWidget")},m(u,h){le(u,t,h),T(t,r);for(let f=0;f<o.length;f+=1)o[f]&&o[f].m(r,null);T(r,n),a&&a.m(r,null),T(t,i),l&&l.m(t,null),e[27](t)},p(u,h){if(h[0]&115008){s=Ot(u[8]);let f;for(f=0;f<s.length;f+=1){const c=Yt(u,s,f);o[f]?o[f].p(c,h):(o[f]=Qt(c),o[f].c(),o[f].m(r,n))}for(;f<o.length;f+=1)o[f].d(1);o.length=s.length}u[13]&&!u[12]?a?a.p(u,h):(a=qt(u),a.c(),a.m(r,null)):a&&(a.d(1),a=null),u[7]?l?l.p(u,h):(l=Kt(u),l.c(),l.m(t,null)):l&&(l.d(1),l=null)},d(u){u&&oe(t),Xr(o,u),a&&a.d(),l&&l.d(),e[27](null)}}}function Qt(e){let t,r,n,i,s,o,a,l,u=(e[48].Label||e[48].Name)+"",h,f,c,x,w=e[14]("generalMin")+"",b,S,P=e[15].format(e[48].DisplayCurrency.MinAmountLimit)+"",I,A,D=e[48].DisplayCurrency.Name+"",C,j,G,K=e[14]("generalMax")+"",z,N,M=e[15].format(e[48].DisplayCurrency.MaxAmountLimit)+"",re,pe,E=e[48].DisplayCurrency.Name+"",p,m,y;function g(){return e[25](e[48])}return{c(){t=F("div"),r=F("div"),n=F("img"),o=te(),a=F("div"),l=F("span"),h=ee(u),f=te(),c=F("div"),x=F("span"),b=ee(w),S=te(),I=ee(P),A=te(),C=ee(D),j=te(),G=F("span"),z=ee(K),N=te(),re=ee(M),pe=te(),p=ee(E),Lt(n.src,i=e[48].LogoUrl)||k(n,"src",i),k(n,"alt",s=e[48].Label),k(r,"class","MethodLogo"),k(a,"class","MethodTitle"),k(x,"class","Limits"),k(G,"class","Limits"),k(c,"class","MethodLimits"),k(t,"class","SelectorWrapper"),We(t,"checked",e[6]===e[48].Name)},m(_,v){le(_,t,v),T(t,r),T(r,n),T(t,o),T(t,a),T(a,l),T(l,h),T(t,f),T(t,c),T(c,x),T(x,b),T(x,S),T(x,I),T(x,A),T(x,C),T(c,j),T(c,G),T(G,z),T(G,N),T(G,re),T(G,pe),T(G,p),m||(y=[ut(t,"click",g),ut(t,"keyup",ls)],m=!0)},p(_,v){e=_,v[0]&256&&!Lt(n.src,i=e[48].LogoUrl)&&k(n,"src",i),v[0]&256&&s!==(s=e[48].Label)&&k(n,"alt",s),v[0]&256&&u!==(u=(e[48].Label||e[48].Name)+"")&&ie(h,u),v[0]&16384&&w!==(w=e[14]("generalMin")+"")&&ie(b,w),v[0]&256&&P!==(P=e[15].format(e[48].DisplayCurrency.MinAmountLimit)+"")&&ie(I,P),v[0]&256&&D!==(D=e[48].DisplayCurrency.Name+"")&&ie(C,D),v[0]&16384&&K!==(K=e[14]("generalMax")+"")&&ie(z,K),v[0]&256&&M!==(M=e[15].format(e[48].DisplayCurrency.MaxAmountLimit)+"")&&ie(re,M),v[0]&256&&E!==(E=e[48].DisplayCurrency.Name+"")&&ie(p,E),v[0]&320&&We(t,"checked",e[6]===e[48].Name)},d(_){_&&oe(t),m=!1,He(y)}}}function qt(e){let t,r,n,i,s,o=e[14]("error")+"",a,l,u,h=e[14]("noPaymentMethods")+"",f;return{c(){t=F("div"),r=F("div"),n=F("div"),n.innerHTML='<svg fill="currentColor" height="200px" width="200px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 294.995 294.995" xml:space="preserve" stroke="#fa9200"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><g><path d="M291.874,248.279L165.605,26.526c-4.007-7.037-10.776-11.26-18.107-11.26s-14.101,4.202-18.107,11.239L3.121,248.238 c-3.979,6.989-4.164,15.013-0.493,21.326c3.67,6.313,10.663,10.165,18.705,10.165h252.329c8.042,0,15.035-3.852,18.705-10.165 C296.038,263.251,295.854,255.268,291.874,248.279z M146.665,86.229c9.665,0,17.5,7.835,17.5,17.5v63c0,9.665-7.835,17.5-17.5,17.5 c-9.665,0-17.5-7.835-17.5-17.5v-63C129.165,94.064,137,86.229,146.665,86.229z M147.498,204.005c9.665,0,17.5,7.835,17.5,17.5 c0,9.665-7.835,17.5-17.5,17.5c-9.665,0-17.5-7.835-17.5-17.5C129.998,211.84,137.833,204.005,147.498,204.005z"></path></g></g></svg>',i=te(),s=F("p"),a=ee(o),l=te(),u=F("p"),f=ee(h),k(n,"class","IconWarning"),k(s,"class","EmptyContentMessageTitle"),k(r,"class","EmptyContentMessageHeader"),k(u,"class","EmptyContentMessageText"),k(t,"class","EmptyContentMessageWrapper"),We(t,"EmptyContentMessageDesktop",e[11])},m(c,x){le(c,t,x),T(t,r),T(r,n),T(r,i),T(r,s),T(s,a),T(t,l),T(t,u),T(u,f)},p(c,x){x[0]&16384&&o!==(o=c[14]("error")+"")&&ie(a,o),x[0]&16384&&h!==(h=c[14]("noPaymentMethods")+"")&&ie(f,h),x[0]&2048&&We(t,"EmptyContentMessageDesktop",c[11])},d(c){c&&oe(t)}}}function Kt(e){let t,r,n,i;return{c(){t=F("div"),r=ee(e[7]),k(t,"class","ShowAllButton")},m(s,o){le(s,t,o),T(t,r),n||(i=ut(t,"click",e[26]),n=!0)},p(s,o){o[0]&128&&ie(r,s[7])},d(s){s&&oe(t),n=!1,i()}}}function er(e){let t,r,n;return{c(){t=F("cashier-error"),r=F("span"),n=ee(e[10]),k(r,"slot","text"),Z(t,"lang",e[0]),Z(t,"assetsurl",e[1]),Z(t,"translationurl",e[2]),Z(t,"clientstylingurl",e[4]),Z(t,"clientstyling",e[3]),Z(t,"hidebuttons","true")},m(i,s){le(i,t,s),T(t,r),T(r,n)},p(i,s){s[0]&1024&&ie(n,i[10]),s[0]&1&&Z(t,"lang",i[0]),s[0]&2&&Z(t,"assetsurl",i[1]),s[0]&4&&Z(t,"translationurl",i[2]),s[0]&16&&Z(t,"clientstylingurl",i[4]),s[0]&8&&Z(t,"clientstyling",i[3])},d(i){i&&oe(t)}}}function us(e){let t,r,n,i=e[12]&&Zt(e),s=(e[9]||e[11])&&Jt(e),o=e[10]&&er(e);return{c(){i&&i.c(),t=te(),s&&s.c(),r=te(),o&&o.c(),n=zr()},m(a,l){i&&i.m(a,l),le(a,t,l),s&&s.m(a,l),le(a,r,l),o&&o.m(a,l),le(a,n,l)},p(a,l){a[12]?i?i.p(a,l):(i=Zt(a),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),a[9]||a[11]?s?s.p(a,l):(s=Jt(a),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null),a[10]?o?o.p(a,l):(o=er(a),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:se,o:se,d(a){a&&(oe(t),oe(r),oe(n)),i&&i.d(a),s&&s.d(a),o&&o.d(a)}}}const ls=()=>{};function hs(e,t,r){let n;Fr(e,rs,d=>r(14,n=d)),zt.extend(os);let{lang:i="en"}=t,{local:s="en-US"}=t,{endpoint:o}=t,{session:a}=t,{customerid:l}=t,{assetsurl:u}=t,{currency:h}=t,{numberofmethodsshown:f}=t,{translationurl:c=""}=t,{clientstyling:x=""}=t,{clientstylingurl:w=""}=t,{ismobileview:b}=t,S=[],P,I,A="",D=[],C=!0,j=new Intl.NumberFormat(s,{minimumFractionDigits:2}),G="",K,z=!0,N=!1,M=!1;var re;(function(d){d.PlayerSessionIsNotValid="PlayerSessionIsNotValid",d.Success="Success",d.JwtTokenError="JwtTokenError"})(re||(re={})),qr();const pe=()=>{let d=c;if(d)return fetch(d).then(B=>B.json()).then(B=>{Object.keys(B).forEach(ue=>{Wt(ue,B[ue])})}).catch(B=>{console.log(B)})};Object.keys(Xt).forEach(d=>{Wt(d,Xt[d])});const E=()=>{ns(i)},p=()=>{r(12,N=!0);const d=new URL(`${o}/v1/player/${l}/payment/GetPaymentMetadata`),B=new Headers;B.append("accept","application/json"),B.append("Content-Type","application/json"),B.append("X-Client-Request-Timestamp",zt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const ue={method:"POST",headers:B,body:JSON.stringify({XPaymentSessionToken:a,Currency:h,Tags:{UserAgent:window.navigator.userAgent}})};fetch(d,ue).then(W=>W.json()).then(W=>{var ye;if(W.error){r(10,G=W.error);return}if(W.ResponseCode!==re.Success){K=W.ResponseCode,_();return}S=(ye=W.PaymentMethods)!=null&&ye.Ordering?m(W):y(W),r(7,A=f&&+f>0&&S.length>+f?n("showAll"):""),r(8,D=A?S.slice(0,+f):S),window.postMessage({type:"StartSessionCountdown",paymentMethodName:S[0].Name,xPaymentSessionToken:W.XPaymentSessionToken},window.location.href)}).finally(()=>{r(12,N=!1),r(13,M=!D.length)})},m=d=>{const B=[];return d.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(ue=>{const W=d.PaymentMethods.PaymentMethods.find(ye=>ye.Name===ue);if(W){const ye=(W==null?void 0:W.Logos.find(Ke=>Ke.LogoType==="Desktop"))||{},Nr=(W==null?void 0:W.Logos.find(Ke=>Ke.LogoType==="Mobile"))||{},St=z?ye:Nr;B.push(Ue(Re({},W),{LogoUrl:St.LogoUrl?`https:${St.LogoUrl}`:""}))}}),B},y=d=>d.PaymentMethods.PaymentMethods.map(B=>Ue(Re({},B),{LogoUrl:B.Logos&&B.Logos.length&&B.Logos[0].LogoUrl?`https:${B.Logos[0].LogoUrl}`:""})),g=d=>{r(6,I=d.Name),window.postMessage({type:"SelectPayMeth",details:d},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:d,bubbles:!0,cancelable:!0,composed:!0}))},_=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:K},window.location.href)},v=()=>{r(11,z=b==="false")},$=()=>{D==S?V():U()},U=()=>{r(8,D=S),r(7,A=n("showLess"))},V=()=>{r(8,D=S.slice(0,+f)),I&&!D.find(d=>d.Name===I)&&D.splice(0,0,S.find(d=>d.Name===I)),r(7,A=n("showAll"))},X=()=>{r(9,C=!0)},Q=d=>{r(9,C=!d.hideMethodsList)},ce=()=>{let d=document.createElement("style");d.innerHTML=x,P.appendChild(d)},he=()=>{let d=new URL(w),B=document.createElement("style");fetch(d.href).then(ue=>ue.text()).then(ue=>{B.innerHTML=ue,setTimeout(()=>{P.appendChild(B)},1),setTimeout(()=>{},500)})};Qr(()=>(window.addEventListener("message",me,!1),()=>{window.removeEventListener("message",me,!1)}));const me=d=>{switch(d.data.type){case"BackToMethodList":X();break;case"HideMethodsList":Q(d.data.details);break}},fe=d=>g(d),Y=()=>$();function ae(d){lt[d?"unshift":"push"](()=>{P=d,r(5,P)})}return e.$$set=d=>{"lang"in d&&r(0,i=d.lang),"local"in d&&r(18,s=d.local),"endpoint"in d&&r(19,o=d.endpoint),"session"in d&&r(20,a=d.session),"customerid"in d&&r(21,l=d.customerid),"assetsurl"in d&&r(1,u=d.assetsurl),"currency"in d&&r(22,h=d.currency),"numberofmethodsshown"in d&&r(23,f=d.numberofmethodsshown),"translationurl"in d&&r(2,c=d.translationurl),"clientstyling"in d&&r(3,x=d.clientstyling),"clientstylingurl"in d&&r(4,w=d.clientstylingurl),"ismobileview"in d&&r(24,b=d.ismobileview)},e.$$.update=()=>{e.$$.dirty[0]&3670016&&o&&a&&l&&p(),e.$$.dirty[0]&1&&i&&E(),e.$$.dirty[0]&40&&x&&P&&ce(),e.$$.dirty[0]&48&&w&&P&&he(),e.$$.dirty[0]&16777216&&b&&v(),e.$$.dirty[0]&5&&i&&c&&pe()},[i,u,c,x,w,P,I,A,D,C,G,z,N,M,n,j,g,$,s,o,a,l,h,f,b,fe,Y,ae]}class Cr extends fn{constructor(t){super(),ln(this,t,hs,us,rr,{lang:0,local:18,endpoint:19,session:20,customerid:21,assetsurl:1,currency:22,numberofmethodsshown:23,translationurl:2,clientstyling:3,clientstylingurl:4,ismobileview:24},as,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),q()}get local(){return this.$$.ctx[18]}set local(t){this.$$set({local:t}),q()}get endpoint(){return this.$$.ctx[19]}set endpoint(t){this.$$set({endpoint:t}),q()}get session(){return this.$$.ctx[20]}set session(t){this.$$set({session:t}),q()}get customerid(){return this.$$.ctx[21]}set customerid(t){this.$$set({customerid:t}),q()}get assetsurl(){return this.$$.ctx[1]}set assetsurl(t){this.$$set({assetsurl:t}),q()}get currency(){return this.$$.ctx[22]}set currency(t){this.$$set({currency:t}),q()}get numberofmethodsshown(){return this.$$.ctx[23]}set numberofmethodsshown(t){this.$$set({numberofmethodsshown:t}),q()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),q()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),q()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),q()}get ismobileview(){return this.$$.ctx[24]}set ismobileview(t){this.$$set({ismobileview:t}),q()}}hn(Cr,{lang:{},local:{},endpoint:{},session:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},clientstyling:{},clientstylingurl:{},ismobileview:{}},[],[],!0);exports.default=Cr;
|
|
5
|
+
Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Pi={fallbackLocale:null,loadingDelay:200,formats:$i,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},$e=Pi;function Te(){return $e}function Ci(e){const t=e,{formats:r}=t,n=Oi(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{Sr.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(s){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=Bi:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign($e,n,{initialLocale:i}),r&&("number"in r&&Object.assign($e.formats.number,r.number),"date"in r&&Object.assign($e.formats.date,r.date),"time"in r&&Object.assign($e.formats.time,r.time)),be.set(i)}const at=Ze(!1);var Ni=Object.defineProperty,Ii=Object.defineProperties,Di=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,Ri=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,Ft=(e,t,r)=>t in e?Ni(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gi=(e,t)=>{for(var r in t||(t={}))Ri.call(t,r)&&Ft(e,r,t[r]);if(kt)for(var r of kt(t))Ui.call(t,r)&&Ft(e,r,t[r]);return e},ki=(e,t)=>Ii(e,Di(t));let vt;const ze=Ze(null);function jt(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function De(e,t=Te().fallbackLocale){const r=jt(e);return t?[...new Set([...r,...jt(t)])]:r}function ge(){return vt!=null?vt:void 0}ze.subscribe(e=>{vt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Fi=e=>{if(e&&Si(e)&&Xe(e)){const{loadingDelay:t}=Te();let r;return typeof window!="undefined"&&ge()!=null&&t?r=window.setTimeout(()=>at.set(!0),t):at.set(!0),Ar(e).then(()=>{ze.set(e)}).finally(()=>{clearTimeout(r),at.set(!1)})}return ze.set(e)},be=ki(Gi({},ze),{set:Fi}),qe=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var ji=Object.defineProperty,Ye=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,Vt=(e,t,r)=>t in e?ji(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wt=(e,t)=>{for(var r in t||(t={}))Or.call(t,r)&&Vt(e,r,t[r]);if(Ye)for(var r of Ye(t))$r.call(t,r)&&Vt(e,r,t[r]);return e},Ae=(e,t)=>{var r={};for(var n in e)Or.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ye)for(var n of Ye(e))t.indexOf(n)<0&&$r.call(e,n)&&(r[n]=e[n]);return r};const Ne=(e,t)=>{const{formats:r}=Te();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Vi=qe(e=>{var t=e,{locale:r,format:n}=t,i=Ae(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Ne("number",n)),new Intl.NumberFormat(r,i)}),Wi=qe(e=>{var t=e,{locale:r,format:n}=t,i=Ae(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Ne("date",n):Object.keys(i).length===0&&(i=Ne("date","short")),new Intl.DateTimeFormat(r,i)}),Xi=qe(e=>{var t=e,{locale:r,format:n}=t,i=Ae(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Ne("time",n):Object.keys(i).length===0&&(i=Ne("time","short")),new Intl.DateTimeFormat(r,i)}),zi=(e={})=>{var t=e,{locale:r=ge()}=t,n=Ae(t,["locale"]);return Vi(wt({locale:r},n))},Yi=(e={})=>{var t=e,{locale:r=ge()}=t,n=Ae(t,["locale"]);return Wi(wt({locale:r},n))},Zi=(e={})=>{var t=e,{locale:r=ge()}=t,n=Ae(t,["locale"]);return Xi(wt({locale:r},n))},Ji=qe((e,t=ge())=>new Sr(e,t,Te().formats,{ignoreTag:Te().ignoreTag})),Qi=(e,t={})=>{var r,n,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:l=ge(),default:u}=o;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Mr(e,l);if(!h)h=(s=(i=(n=(r=Te()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!a)return h;let f=h;try{f=Ji(h,l).format(a)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return f},qi=(e,t)=>Zi(t).format(e),Ki=(e,t)=>Yi(t).format(e),es=(e,t)=>zi(t).format(e),ts=(e,t=ge())=>Mr(e,t),rs=Le([be,Ie],()=>Qi);Le([be],()=>qi);Le([be],()=>Ki);Le([be],()=>es);Le([be,Ie],()=>ts);function Wt(e,t){Hr(e,t)}function ns(e){Ci({fallbackLocale:"en"}),be.set(e)}const Xt={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS",error:"Error",noPaymentMethods:"No payment methods available"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Prikaži sve",showLess:"Prikaži manje"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER",error:"Hata",noPaymentMethods:"Hiçbir ödeme yöntemi mevcut değil"},"en-us":{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"}};var Br={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(or,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",a="minute",l="hour",u="day",h="week",f="month",c="quarter",x="year",w="date",b="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var p=["th","st","nd","rd"],m=E%100;return"["+E+(p[(m-20)%10]||p[m]||p[0])+"]"}},A=function(E,p,m){var y=String(E);return!y||y.length>=p?E:""+Array(p+1-y.length).join(m)+E},D={s:A,z:function(E){var p=-E.utcOffset(),m=Math.abs(p),y=Math.floor(m/60),g=m%60;return(p<=0?"+":"-")+A(y,2,"0")+":"+A(g,2,"0")},m:function E(p,m){if(p.date()<m.date())return-E(m,p);var y=12*(m.year()-p.year())+(m.month()-p.month()),g=p.clone().add(y,f),_=m-g<0,v=p.clone().add(y+(_?-1:1),f);return+(-(y+(m-g)/(_?g-v:v-g))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:f,y:x,w:h,d:u,D:w,h:l,m:a,s:o,ms:s,Q:c}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},C="en",j={};j[C]=I;var G="$isDayjsObject",K=function(E){return E instanceof re||!(!E||!E[G])},z=function E(p,m,y){var g;if(!p)return C;if(typeof p=="string"){var _=p.toLowerCase();j[_]&&(g=_),m&&(j[_]=m,g=_);var v=p.split("-");if(!g&&v.length>1)return E(v[0])}else{var $=p.name;j[$]=p,g=$}return!y&&g&&(C=g),g||!y&&C},N=function(E,p){if(K(E))return E.clone();var m=typeof p=="object"?p:{};return m.date=E,m.args=arguments,new re(m)},M=D;M.l=z,M.i=K,M.w=function(E,p){return N(E,{locale:p.$L,utc:p.$u,x:p.$x,$offset:p.$offset})};var re=function(){function E(m){this.$L=z(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[G]=!0}var p=E.prototype;return p.parse=function(m){this.$d=function(y){var g=y.date,_=y.utc;if(g===null)return new Date(NaN);if(M.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var v=g.match(S);if(v){var $=v[2]-1||0,U=(v[7]||"0").substring(0,3);return _?new Date(Date.UTC(v[1],$,v[3]||1,v[4]||0,v[5]||0,v[6]||0,U)):new Date(v[1],$,v[3]||1,v[4]||0,v[5]||0,v[6]||0,U)}}return new Date(g)}(m),this.init()},p.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},p.$utils=function(){return M},p.isValid=function(){return this.$d.toString()!==b},p.isSame=function(m,y){var g=N(m);return this.startOf(y)<=g&&g<=this.endOf(y)},p.isAfter=function(m,y){return N(m)<this.startOf(y)},p.isBefore=function(m,y){return this.endOf(y)<N(m)},p.$g=function(m,y,g){return M.u(m)?this[y]:this.set(g,m)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(m,y){var g=this,_=!!M.u(y)||y,v=M.p(m),$=function(fe,Y){var ae=M.w(g.$u?Date.UTC(g.$y,Y,fe):new Date(g.$y,Y,fe),g);return _?ae:ae.endOf(u)},U=function(fe,Y){return M.w(g.toDate()[fe].apply(g.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(Y)),g)},V=this.$W,X=this.$M,Q=this.$D,ce="set"+(this.$u?"UTC":"");switch(v){case x:return _?$(1,0):$(31,11);case f:return _?$(1,X):$(0,X+1);case h:var he=this.$locale().weekStart||0,me=(V<he?V+7:V)-he;return $(_?Q-me:Q+(6-me),X);case u:case w:return U(ce+"Hours",0);case l:return U(ce+"Minutes",1);case a:return U(ce+"Seconds",2);case o:return U(ce+"Milliseconds",3);default:return this.clone()}},p.endOf=function(m){return this.startOf(m,!1)},p.$set=function(m,y){var g,_=M.p(m),v="set"+(this.$u?"UTC":""),$=(g={},g[u]=v+"Date",g[w]=v+"Date",g[f]=v+"Month",g[x]=v+"FullYear",g[l]=v+"Hours",g[a]=v+"Minutes",g[o]=v+"Seconds",g[s]=v+"Milliseconds",g)[_],U=_===u?this.$D+(y-this.$W):y;if(_===f||_===x){var V=this.clone().set(w,1);V.$d[$](U),V.init(),this.$d=V.set(w,Math.min(this.$D,V.daysInMonth())).$d}else $&&this.$d[$](U);return this.init(),this},p.set=function(m,y){return this.clone().$set(m,y)},p.get=function(m){return this[M.p(m)]()},p.add=function(m,y){var g,_=this;m=Number(m);var v=M.p(y),$=function(X){var Q=N(_);return M.w(Q.date(Q.date()+Math.round(X*m)),_)};if(v===f)return this.set(f,this.$M+m);if(v===x)return this.set(x,this.$y+m);if(v===u)return $(1);if(v===h)return $(7);var U=(g={},g[a]=n,g[l]=i,g[o]=r,g)[v]||1,V=this.$d.getTime()+m*U;return M.w(V,this)},p.subtract=function(m,y){return this.add(-1*m,y)},p.format=function(m){var y=this,g=this.$locale();if(!this.isValid())return g.invalidDate||b;var _=m||"YYYY-MM-DDTHH:mm:ssZ",v=M.z(this),$=this.$H,U=this.$m,V=this.$M,X=g.weekdays,Q=g.months,ce=g.meridiem,he=function(Y,ae,d,B){return Y&&(Y[ae]||Y(y,_))||d[ae].slice(0,B)},me=function(Y){return M.s($%12||12,Y,"0")},fe=ce||function(Y,ae,d){var B=Y<12?"AM":"PM";return d?B.toLowerCase():B};return _.replace(P,function(Y,ae){return ae||function(d){switch(d){case"YY":return String(y.$y).slice(-2);case"YYYY":return M.s(y.$y,4,"0");case"M":return V+1;case"MM":return M.s(V+1,2,"0");case"MMM":return he(g.monthsShort,V,Q,3);case"MMMM":return he(Q,V);case"D":return y.$D;case"DD":return M.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return he(g.weekdaysMin,y.$W,X,2);case"ddd":return he(g.weekdaysShort,y.$W,X,3);case"dddd":return X[y.$W];case"H":return String($);case"HH":return M.s($,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return fe($,U,!0);case"A":return fe($,U,!1);case"m":return String(U);case"mm":return M.s(U,2,"0");case"s":return String(y.$s);case"ss":return M.s(y.$s,2,"0");case"SSS":return M.s(y.$ms,3,"0");case"Z":return v}return null}(Y)||v.replace(":","")})},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(m,y,g){var _,v=this,$=M.p(y),U=N(m),V=(U.utcOffset()-this.utcOffset())*n,X=this-U,Q=function(){return M.m(v,U)};switch($){case x:_=Q()/12;break;case f:_=Q();break;case c:_=Q()/3;break;case h:_=(X-V)/6048e5;break;case u:_=(X-V)/864e5;break;case l:_=X/i;break;case a:_=X/n;break;case o:_=X/r;break;default:_=X}return g?_:M.a(_)},p.daysInMonth=function(){return this.endOf(f).$D},p.$locale=function(){return j[this.$L]},p.locale=function(m,y){if(!m)return this.$L;var g=this.clone(),_=z(m,y,!0);return _&&(g.$L=_),g},p.clone=function(){return M.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},E}(),pe=re.prototype;return N.prototype=pe,[["$ms",s],["$s",o],["$m",a],["$H",l],["$W",u],["$M",f],["$y",x],["$D",w]].forEach(function(E){pe[E[1]]=function(p){return this.$g(p,E[0],E[1])}}),N.extend=function(E,p){return E.$i||(E(p,re,N),E.$i=!0),N},N.locale=z,N.isDayjs=K,N.unix=function(E){return N(1e3*E)},N.en=j[C],N.Ls=j,N.p={},N})})(Br);var is=Br.exports;const zt=Et(is);var Pr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(or,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(s,o,a){var l=o.prototype;a.utc=function(b){var S={date:b,utc:!0,args:arguments};return new o(S)},l.utc=function(b){var S=a(this.toDate(),{locale:this.$L,utc:!0});return b?S.add(this.utcOffset(),r):S},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(b){b.utc&&(this.$u=!0),this.$utils().u(b.$offset)||(this.$offset=b.$offset),u.call(this,b)};var h=l.init;l.init=function(){if(this.$u){var b=this.$d;this.$y=b.getUTCFullYear(),this.$M=b.getUTCMonth(),this.$D=b.getUTCDate(),this.$W=b.getUTCDay(),this.$H=b.getUTCHours(),this.$m=b.getUTCMinutes(),this.$s=b.getUTCSeconds(),this.$ms=b.getUTCMilliseconds()}else h.call(this)};var f=l.utcOffset;l.utcOffset=function(b,S){var P=this.$utils().u;if(P(b))return this.$u?0:P(this.$offset)?f.call(this):this.$offset;if(typeof b=="string"&&(b=function(C){C===void 0&&(C="");var j=C.match(n);if(!j)return null;var G=(""+j[0]).match(i)||["-",0,0],K=G[0],z=60*+G[1]+ +G[2];return z===0?0:K==="+"?z:-z}(b),b===null))return this;var I=Math.abs(b)<=16?60*b:b,A=this;if(S)return A.$offset=I,A.$u=b===0,A;if(b!==0){var D=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(A=this.local().add(I+D,r)).$offset=I,A.$x.$localOffset=D}else A=this.utc();return A};var c=l.format;l.format=function(b){var S=b||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,S)},l.valueOf=function(){var b=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*b},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var x=l.toDate;l.toDate=function(b){return b==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():x.call(this)};var w=l.diff;l.diff=function(b,S,P){if(b&&this.$u===b.$u)return w.call(this,b,S,P);var I=this.local(),A=a(b).local();return w.call(I,A,S,P)}}})})(Pr);var ss=Pr.exports;const os=Et(ss);function as(e){jr(e,"svelte-1wlv0rl","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.EmptyContentMessageWrapper{display:flex;flex-direction:column;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:var(--emw--spacing-small, 12px);max-height:500px}.EmptyContentMessageHeader{display:flex;gap:4px;align-items:end}.EmptyContentMessageTitle{font-size:var(--emw--font-size-small, 16px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--emw--color-warning, rgb(250, 146, 0))}.EmptyContentMessageText{word-break:break-word;padding:var(--emw--spacing-small, 12px) calc(var(--emw--spacing-small, 12px) / 2);font-size:var(--emw--font-size-small, 14px)}.EmptyContentMessageDesktop p{font-size:var(--emw--font-size-medium, 16px)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}")}function Yt(e,t,r){const n=e.slice();return n[48]=t[r],n[50]=r,n}function Zt(e){let t;return{c(){t=F("cashier-spinner"),Z(t,"clientstylingurl",e[4]),Z(t,"clientstyling",e[3])},m(r,n){le(r,t,n)},p(r,n){n[0]&16&&Z(t,"clientstylingurl",r[4]),n[0]&8&&Z(t,"clientstyling",r[3])},d(r){r&&oe(t)}}}function Jt(e){let t,r,n,i,s=Ot(e[8]),o=[];for(let u=0;u<s.length;u+=1)o[u]=Qt(Yt(e,s,u));let a=e[13]&&!e[12]&&qt(e),l=e[7]&&Kt(e);return{c(){t=F("div"),r=F("div");for(let u=0;u<o.length;u+=1)o[u].c();n=te(),a&&a.c(),i=te(),l&&l.c(),k(r,"class","CashierMethodList"),k(t,"class","CashierMethodListWidget")},m(u,h){le(u,t,h),T(t,r);for(let f=0;f<o.length;f+=1)o[f]&&o[f].m(r,null);T(r,n),a&&a.m(r,null),T(t,i),l&&l.m(t,null),e[27](t)},p(u,h){if(h[0]&115008){s=Ot(u[8]);let f;for(f=0;f<s.length;f+=1){const c=Yt(u,s,f);o[f]?o[f].p(c,h):(o[f]=Qt(c),o[f].c(),o[f].m(r,n))}for(;f<o.length;f+=1)o[f].d(1);o.length=s.length}u[13]&&!u[12]?a?a.p(u,h):(a=qt(u),a.c(),a.m(r,null)):a&&(a.d(1),a=null),u[7]?l?l.p(u,h):(l=Kt(u),l.c(),l.m(t,null)):l&&(l.d(1),l=null)},d(u){u&&oe(t),Xr(o,u),a&&a.d(),l&&l.d(),e[27](null)}}}function Qt(e){let t,r,n,i,s,o,a,l,u=(e[48].Label||e[48].Name)+"",h,f,c,x,w=e[14]("generalMin")+"",b,S,P=e[15].format(e[48].DisplayCurrency.MinAmountLimit)+"",I,A,D=e[48].DisplayCurrency.Name+"",C,j,G,K=e[14]("generalMax")+"",z,N,M=e[15].format(e[48].DisplayCurrency.MaxAmountLimit)+"",re,pe,E=e[48].DisplayCurrency.Name+"",p,m,y;function g(){return e[25](e[48])}return{c(){t=F("div"),r=F("div"),n=F("img"),o=te(),a=F("div"),l=F("span"),h=ee(u),f=te(),c=F("div"),x=F("span"),b=ee(w),S=te(),I=ee(P),A=te(),C=ee(D),j=te(),G=F("span"),z=ee(K),N=te(),re=ee(M),pe=te(),p=ee(E),Lt(n.src,i=e[48].LogoUrl)||k(n,"src",i),k(n,"alt",s=e[48].Label),k(r,"class","MethodLogo"),k(a,"class","MethodTitle"),k(x,"class","Limits"),k(G,"class","Limits"),k(c,"class","MethodLimits"),k(t,"class","SelectorWrapper"),We(t,"checked",e[6]===e[48].Name)},m(_,v){le(_,t,v),T(t,r),T(r,n),T(t,o),T(t,a),T(a,l),T(l,h),T(t,f),T(t,c),T(c,x),T(x,b),T(x,S),T(x,I),T(x,A),T(x,C),T(c,j),T(c,G),T(G,z),T(G,N),T(G,re),T(G,pe),T(G,p),m||(y=[ut(t,"click",g),ut(t,"keyup",ls)],m=!0)},p(_,v){e=_,v[0]&256&&!Lt(n.src,i=e[48].LogoUrl)&&k(n,"src",i),v[0]&256&&s!==(s=e[48].Label)&&k(n,"alt",s),v[0]&256&&u!==(u=(e[48].Label||e[48].Name)+"")&&ie(h,u),v[0]&16384&&w!==(w=e[14]("generalMin")+"")&&ie(b,w),v[0]&256&&P!==(P=e[15].format(e[48].DisplayCurrency.MinAmountLimit)+"")&&ie(I,P),v[0]&256&&D!==(D=e[48].DisplayCurrency.Name+"")&&ie(C,D),v[0]&16384&&K!==(K=e[14]("generalMax")+"")&&ie(z,K),v[0]&256&&M!==(M=e[15].format(e[48].DisplayCurrency.MaxAmountLimit)+"")&&ie(re,M),v[0]&256&&E!==(E=e[48].DisplayCurrency.Name+"")&&ie(p,E),v[0]&320&&We(t,"checked",e[6]===e[48].Name)},d(_){_&&oe(t),m=!1,He(y)}}}function qt(e){let t,r,n,i,s,o=e[14]("error")+"",a,l,u,h=e[14]("noPaymentMethods")+"",f;return{c(){t=F("div"),r=F("div"),n=F("div"),n.innerHTML='<svg fill="currentColor" height="200px" width="200px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 294.995 294.995" xml:space="preserve" stroke="#fa9200"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><g><path d="M291.874,248.279L165.605,26.526c-4.007-7.037-10.776-11.26-18.107-11.26s-14.101,4.202-18.107,11.239L3.121,248.238 c-3.979,6.989-4.164,15.013-0.493,21.326c3.67,6.313,10.663,10.165,18.705,10.165h252.329c8.042,0,15.035-3.852,18.705-10.165 C296.038,263.251,295.854,255.268,291.874,248.279z M146.665,86.229c9.665,0,17.5,7.835,17.5,17.5v63c0,9.665-7.835,17.5-17.5,17.5 c-9.665,0-17.5-7.835-17.5-17.5v-63C129.165,94.064,137,86.229,146.665,86.229z M147.498,204.005c9.665,0,17.5,7.835,17.5,17.5 c0,9.665-7.835,17.5-17.5,17.5c-9.665,0-17.5-7.835-17.5-17.5C129.998,211.84,137.833,204.005,147.498,204.005z"></path></g></g></svg>',i=te(),s=F("p"),a=ee(o),l=te(),u=F("p"),f=ee(h),k(n,"class","IconWarning"),k(s,"class","EmptyContentMessageTitle"),k(r,"class","EmptyContentMessageHeader"),k(u,"class","EmptyContentMessageText"),k(t,"class","EmptyContentMessageWrapper"),We(t,"EmptyContentMessageDesktop",e[11])},m(c,x){le(c,t,x),T(t,r),T(r,n),T(r,i),T(r,s),T(s,a),T(t,l),T(t,u),T(u,f)},p(c,x){x[0]&16384&&o!==(o=c[14]("error")+"")&&ie(a,o),x[0]&16384&&h!==(h=c[14]("noPaymentMethods")+"")&&ie(f,h),x[0]&2048&&We(t,"EmptyContentMessageDesktop",c[11])},d(c){c&&oe(t)}}}function Kt(e){let t,r,n,i;return{c(){t=F("div"),r=ee(e[7]),k(t,"class","ShowAllButton")},m(s,o){le(s,t,o),T(t,r),n||(i=ut(t,"click",e[26]),n=!0)},p(s,o){o[0]&128&&ie(r,s[7])},d(s){s&&oe(t),n=!1,i()}}}function er(e){let t,r,n;return{c(){t=F("cashier-error"),r=F("span"),n=ee(e[10]),k(r,"slot","text"),Z(t,"lang",e[0]),Z(t,"assetsurl",e[1]),Z(t,"translationurl",e[2]),Z(t,"clientstylingurl",e[4]),Z(t,"clientstyling",e[3]),Z(t,"hidebuttons","true")},m(i,s){le(i,t,s),T(t,r),T(r,n)},p(i,s){s[0]&1024&&ie(n,i[10]),s[0]&1&&Z(t,"lang",i[0]),s[0]&2&&Z(t,"assetsurl",i[1]),s[0]&4&&Z(t,"translationurl",i[2]),s[0]&16&&Z(t,"clientstylingurl",i[4]),s[0]&8&&Z(t,"clientstyling",i[3])},d(i){i&&oe(t)}}}function us(e){let t,r,n,i=e[12]&&Zt(e),s=(e[9]||e[11])&&Jt(e),o=e[10]&&er(e);return{c(){i&&i.c(),t=te(),s&&s.c(),r=te(),o&&o.c(),n=zr()},m(a,l){i&&i.m(a,l),le(a,t,l),s&&s.m(a,l),le(a,r,l),o&&o.m(a,l),le(a,n,l)},p(a,l){a[12]?i?i.p(a,l):(i=Zt(a),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),a[9]||a[11]?s?s.p(a,l):(s=Jt(a),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null),a[10]?o?o.p(a,l):(o=er(a),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:se,o:se,d(a){a&&(oe(t),oe(r),oe(n)),i&&i.d(a),s&&s.d(a),o&&o.d(a)}}}const ls=()=>{};function hs(e,t,r){let n;Fr(e,rs,d=>r(14,n=d)),zt.extend(os);let{lang:i="en"}=t,{local:s="en-US"}=t,{endpoint:o}=t,{session:a}=t,{customerid:l}=t,{assetsurl:u}=t,{currency:h}=t,{numberofmethodsshown:f}=t,{translationurl:c=""}=t,{clientstyling:x=""}=t,{clientstylingurl:w=""}=t,{ismobileview:b}=t,S=[],P,I,A="",D=[],C=!0,j=new Intl.NumberFormat(s,{minimumFractionDigits:2}),G="",K,z=!0,N=!1,M=!1;var re;(function(d){d.PlayerSessionIsNotValid="PlayerSessionIsNotValid",d.Success="Success",d.JwtTokenError="JwtTokenError"})(re||(re={})),qr();const pe=()=>{let d=c;if(d)return fetch(d).then(B=>B.json()).then(B=>{Object.keys(B).forEach(ue=>{Wt(ue,B[ue])})}).catch(B=>{console.log(B)})};Object.keys(Xt).forEach(d=>{Wt(d,Xt[d])});const E=()=>{ns(i)},p=()=>{r(12,N=!0);const d=new URL(`${o}/v1/player/${l}/payment/GetPaymentMetadata`),B=new Headers;B.append("accept","application/json"),B.append("Content-Type","application/json"),B.append("X-Client-Request-Timestamp",zt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const ue={method:"POST",headers:B,body:JSON.stringify({XPaymentSessionToken:a,Currency:h,Tags:{UserAgent:window.navigator.userAgent}})};fetch(d,ue).then(W=>W.json()).then(W=>{var ye;if(W.error){r(10,G=W.error);return}if(W.ResponseCode!==re.Success){K=W.ResponseCode,_();return}S=(ye=W.PaymentMethods)!=null&&ye.Ordering?m(W):y(W),r(7,A=f&&+f>0&&S.length>+f?n("showAll"):""),r(8,D=A?S.slice(0,+f):S),window.postMessage({type:"StartSessionCountdown",paymentMethodName:S[0].Name,xPaymentSessionToken:W.XPaymentSessionToken},window.location.href),window.postMessage({type:"DataLoading",isDataLoaded:!1})}).finally(()=>{r(12,N=!1),window.postMessage({type:"DataLoading",isDataLoaded:!0}),r(13,M=!D.length)})},m=d=>{const B=[];return d.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(ue=>{const W=d.PaymentMethods.PaymentMethods.find(ye=>ye.Name===ue);if(W){const ye=(W==null?void 0:W.Logos.find(Ke=>Ke.LogoType==="Desktop"))||{},Nr=(W==null?void 0:W.Logos.find(Ke=>Ke.LogoType==="Mobile"))||{},St=z?ye:Nr;B.push(Ue(Re({},W),{LogoUrl:St.LogoUrl?`https:${St.LogoUrl}`:""}))}}),B},y=d=>d.PaymentMethods.PaymentMethods.map(B=>Ue(Re({},B),{LogoUrl:B.Logos&&B.Logos.length&&B.Logos[0].LogoUrl?`https:${B.Logos[0].LogoUrl}`:""})),g=d=>{r(6,I=d.Name),window.postMessage({type:"SelectPayMeth",details:d},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:d,bubbles:!0,cancelable:!0,composed:!0}))},_=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:K},window.location.href)},v=()=>{r(11,z=b==="false")},$=()=>{D==S?V():U()},U=()=>{r(8,D=S),r(7,A=n("showLess"))},V=()=>{r(8,D=S.slice(0,+f)),I&&!D.find(d=>d.Name===I)&&D.splice(0,0,S.find(d=>d.Name===I)),r(7,A=n("showAll"))},X=()=>{r(9,C=!0)},Q=d=>{r(9,C=!d.hideMethodsList)},ce=()=>{let d=document.createElement("style");d.innerHTML=x,P.appendChild(d)},he=()=>{let d=new URL(w),B=document.createElement("style");fetch(d.href).then(ue=>ue.text()).then(ue=>{B.innerHTML=ue,setTimeout(()=>{P.appendChild(B)},1),setTimeout(()=>{},500)})};Qr(()=>(window.addEventListener("message",me,!1),()=>{window.removeEventListener("message",me,!1)}));const me=d=>{switch(d.data.type){case"BackToMethodList":X();break;case"HideMethodsList":Q(d.data.details);break}},fe=d=>g(d),Y=()=>$();function ae(d){lt[d?"unshift":"push"](()=>{P=d,r(5,P)})}return e.$$set=d=>{"lang"in d&&r(0,i=d.lang),"local"in d&&r(18,s=d.local),"endpoint"in d&&r(19,o=d.endpoint),"session"in d&&r(20,a=d.session),"customerid"in d&&r(21,l=d.customerid),"assetsurl"in d&&r(1,u=d.assetsurl),"currency"in d&&r(22,h=d.currency),"numberofmethodsshown"in d&&r(23,f=d.numberofmethodsshown),"translationurl"in d&&r(2,c=d.translationurl),"clientstyling"in d&&r(3,x=d.clientstyling),"clientstylingurl"in d&&r(4,w=d.clientstylingurl),"ismobileview"in d&&r(24,b=d.ismobileview)},e.$$.update=()=>{e.$$.dirty[0]&3670016&&o&&a&&l&&p(),e.$$.dirty[0]&1&&i&&E(),e.$$.dirty[0]&40&&x&&P&&ce(),e.$$.dirty[0]&48&&w&&P&&he(),e.$$.dirty[0]&16777216&&b&&v(),e.$$.dirty[0]&5&&i&&c&&pe()},[i,u,c,x,w,P,I,A,D,C,G,z,N,M,n,j,g,$,s,o,a,l,h,f,b,fe,Y,ae]}class Cr extends fn{constructor(t){super(),ln(this,t,hs,us,rr,{lang:0,local:18,endpoint:19,session:20,customerid:21,assetsurl:1,currency:22,numberofmethodsshown:23,translationurl:2,clientstyling:3,clientstylingurl:4,ismobileview:24},as,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),q()}get local(){return this.$$.ctx[18]}set local(t){this.$$set({local:t}),q()}get endpoint(){return this.$$.ctx[19]}set endpoint(t){this.$$set({endpoint:t}),q()}get session(){return this.$$.ctx[20]}set session(t){this.$$set({session:t}),q()}get customerid(){return this.$$.ctx[21]}set customerid(t){this.$$set({customerid:t}),q()}get assetsurl(){return this.$$.ctx[1]}set assetsurl(t){this.$$set({assetsurl:t}),q()}get currency(){return this.$$.ctx[22]}set currency(t){this.$$set({currency:t}),q()}get numberofmethodsshown(){return this.$$.ctx[23]}set numberofmethodsshown(t){this.$$set({numberofmethodsshown:t}),q()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),q()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),q()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),q()}get ismobileview(){return this.$$.ctx[24]}set ismobileview(t){this.$$set({ismobileview:t}),q()}}hn(Cr,{lang:{},local:{},endpoint:{},session:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},clientstyling:{},clientstylingurl:{},ismobileview:{}},[],[],!0);exports.default=Cr;
|
|
@@ -4570,9 +4570,9 @@ function qi(e, t, r) {
|
|
|
4570
4570
|
xPaymentSessionToken: Y.XPaymentSessionToken
|
|
4571
4571
|
},
|
|
4572
4572
|
window.location.href
|
|
4573
|
-
);
|
|
4573
|
+
), window.postMessage({ type: "DataLoading", isDataLoaded: !1 });
|
|
4574
4574
|
}).finally(() => {
|
|
4575
|
-
r(12, N = !1), r(13, S = !D.length);
|
|
4575
|
+
r(12, N = !1), window.postMessage({ type: "DataLoading", isDataLoaded: !0 }), r(13, S = !D.length);
|
|
4576
4576
|
});
|
|
4577
4577
|
}, m = (d) => {
|
|
4578
4578
|
const B = [];
|
|
@@ -4608,9 +4608,9 @@ function ls(e, t, r) {
|
|
|
4608
4608
|
xPaymentSessionToken: W.XPaymentSessionToken
|
|
4609
4609
|
},
|
|
4610
4610
|
window.location.href
|
|
4611
|
-
);
|
|
4611
|
+
), window.postMessage({ type: "DataLoading", isDataLoaded: !1 });
|
|
4612
4612
|
}).finally(() => {
|
|
4613
|
-
r(12, N = !1), r(13, M = !D.length);
|
|
4613
|
+
r(12, N = !1), window.postMessage({ type: "DataLoading", isDataLoaded: !0 }), r(13, M = !D.length);
|
|
4614
4614
|
});
|
|
4615
4615
|
}, m = (d) => {
|
|
4616
4616
|
const B = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierMethodsList-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierMethodsList-BN4zszLG.cjs")).then(({default:t})=>{!customElements.get("cashier-methods-list")&&customElements.define("cashier-methods-list",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = s(customElements.define), import("../components/CashierMethodsList-
|
|
13
|
+
customElements.define = s(customElements.define), import("../components/CashierMethodsList-CNSgCuC4.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-methods-list") && customElements.define("cashier-methods-list", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|