@everymatrix/cashier-methods-list 1.26.0 → 1.27.2

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/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+
2
+ ## cashier-methods-list widget changelogs
3
+
4
+ | Version | Release date | Impacted areas | Changes |
5
+ | ------- | ------------ | ----------------------------- | --------------------------------------- |
6
+ | 1.27.0 | Tue Feb 06 2024 | cashier-methods-list | feat(GMMMFE-765)(cashier-method-details, cashier-deposit-page,cashier-methods-list): add field validation |
@@ -23,7 +23,7 @@
23
23
  function _(){const e=H();return(t,r,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[t];if(i){
24
24
  // TODO are there situations where events could be dispatched
25
25
  // in a server (non-DOM) environment?
26
- const o=function(e,t,{bubbles:r=!1,cancelable:n=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,r,n,t),i}(t,r,{cancelable:n});return i.slice().forEach((t=>{t.call(e,o)})),!o.defaultPrevented}return!0}}const B=[],A=[];let L=[];const w=[],S=Promise.resolve();let P=!1;function M(e){L.push(e)}
26
+ const o=function(e,t,{bubbles:r=!1,cancelable:n=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,r,n,t),i}(t,r,{cancelable:n});return i.slice().forEach((t=>{t.call(e,o)})),!o.defaultPrevented}return!0}}const B=[],L=[];let A=[];const w=[],S=Promise.resolve();let P=!1;function M(e){A.push(e)}
27
27
  // flush() calls callbacks in this order:
28
28
  // 1. All beforeUpdate callbacks, in order: parents before children
29
29
  // 2. All bind:this callbacks, in reverse order: children before parents.
@@ -52,16 +52,16 @@ if(0!==C)return;const e=a;do{
52
52
  // and update components
53
53
  try{for(;C<B.length;){const e=B[C];C++,T(e),I(e.$$)}}catch(e){
54
54
  // reset dirty state to not end up in a deadlocked state and then rethrow
55
- throw B.length=0,C=0,e}for(T(null),B.length=0,C=0;A.length;)A.pop()();
55
+ throw B.length=0,C=0,e}for(T(null),B.length=0,C=0;L.length;)L.pop()();
56
56
  // then, once components are updated, call
57
57
  // afterUpdate functions. This may cause
58
58
  // subsequent updates...
59
- for(let e=0;e<L.length;e+=1){const t=L[e];N.has(t)||(
59
+ for(let e=0;e<A.length;e+=1){const t=A[e];N.has(t)||(
60
60
  // ...so guard against infinite loops
61
- N.add(t),t())}L.length=0}while(B.length);for(;w.length;)w.pop()();P=!1,N.clear(),T(e)}function I(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(M)}}
61
+ N.add(t),t())}A.length=0}while(B.length);for(;w.length;)w.pop()();P=!1,N.clear(),T(e)}function I(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(M)}}
62
62
  /**
63
63
  * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
64
- */const R=new Set;function U(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];L.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),L=t}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(t),
64
+ */const R=new Set;function U(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];A.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),A=t}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(t),
65
65
  // TODO null out other refs, including component.$$ (but need to
66
66
  // preserve final state?)
67
67
  r.on_destroy=r.fragment=null,r.ctx=[])}function G(e,t){-1===e.$$.dirty[0]&&(B.push(e),P||(P=!0,S.then(O)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function D(o,s,h,l,c,u,p,m=[-1]){const d=a;T(o);const g=o.$$={fragment:null,ctx:[],
@@ -266,9 +266,9 @@ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `
266
266
  // @generated from regex-gen.ts
267
267
  var ye=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var ve=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Te=/^(@+)?(\+|#+)?[rs]?$/g,He=/(\*)(0+)|(#+)(0+)|(0+)/g,_e=/^(0+)$/;function Be(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Te,(function(e,r,n){
268
268
  // @@@ case
269
- return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Ae(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Le(e){
269
+ return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Le(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ae(e){
270
270
  // Engineering
271
- var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!_e.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function we(e){var t=Ae(e);return t||{}}
271
+ var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!_e.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function we(e){var t=Le(e);return t||{}}
272
272
  /**
273
273
  * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
274
274
  */function Se(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ne(ne(ne({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return ne(ne({},e),we(t))}),{}));continue;case"engineering":t=ne(ne(ne({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return ne(ne({},e),we(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
@@ -287,7 +287,7 @@ return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDi
287
287
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
288
288
  "w"===o?t=ne(ne({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ne(ne({},t),Be(o)))}
289
289
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
290
- else if(Te.test(i.stem))t=ne(ne({},t),Be(i.stem));else{var s=Ae(i.stem);s&&(t=ne(ne({},t),s));var a=Le(i.stem);a&&(t=ne(ne({},t),a))}}return t}
290
+ else if(Te.test(i.stem))t=ne(ne({},t),Be(i.stem));else{var s=Le(i.stem);s&&(t=ne(ne({},t),s));var a=Ae(i.stem);a&&(t=ne(ne({},t),a))}}return t}
291
291
  // @generated from time-data-gen.ts
292
292
  // prettier-ignore
293
293
  var Pe,Me={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
@@ -591,17 +591,17 @@ this.formats=Tt(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
591
591
  // Default format options used as the prototype of the `formats` provided to the
592
592
  // constructor. These are used when constructing the internal Intl.NumberFormat
593
593
  // and Intl.DateTimeFormat instances.
594
- 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}();const Bt={},At=(e,t,r)=>r?(t in Bt||(Bt[t]={}),e in Bt[t]||(Bt[t][e]=r),r):r,Lt=(e,t)=>{if(null==t)return;if(t in Bt&&e in Bt[t])return Bt[t][e];const r=Jt(t);for(let n=0;n<r.length;n++){const i=Mt(r[n],e);if(i)return At(e,t,i)}};let wt;const St=k({});function Pt(e){return e in wt}function Mt(e,t){if(!Pt(e))return null;const r=function(e){return wt[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function Nt(e,...t){delete Bt[e],St.update((r=>(r[e]=J.all([r[e]||{},...t]),r)))}F([St],(([e])=>Object.keys(e))),St.subscribe((e=>wt=e));const Ct={};function Ot(e){return Ct[e]}function It(e){return null!=e&&Jt(e).some((e=>{var t;return null==(t=Ot(e))?void 0:t.size}))}function Rt(e,t){const r=Promise.all(t.map((t=>(function(e,t){Ct[e].delete(t),0===Ct[e].size&&delete Ct[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>Nt(e,...t)))}const Ut={};function Gt(e){if(!It(e))return e in Ut?Ut[e]:Promise.resolve();const t=function(e){return Jt(e).map((e=>{const t=Ot(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Ut[e]=Promise.all(t.map((([e,t])=>Rt(e,t)))).then((()=>{if(It(e))return Gt(e);delete Ut[e]})),Ut[e]}const Dt={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function $t(){return Dt}const xt=k(!1);var kt=Object.defineProperty,Ft=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,zt=(e,t,r)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Yt;const Zt=k(null);function Wt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Jt(e,t=$t().fallbackLocale){const r=Wt(e);return t?[...new Set([...r,...Wt(t)])]:r}function Qt(){return null!=Yt?Yt:void 0}Zt.subscribe((e=>{Yt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const qt=(er=((e,t)=>{for(var r in t||(t={}))Xt.call(t,r)&&zt(e,r,t[r]);if(Vt)for(var r of Vt(t))Kt.call(t,r)&&zt(e,r,t[r]);return e})({},Zt),Ft(er,jt({set:e=>{if(e&&function(e){if(null==e)return;const t=Jt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Pt(r))return r}}(e)&&It(e)){const{loadingDelay:t}=$t();let r;return"undefined"!=typeof window&&null!=Qt()&&t?r=window.setTimeout((()=>xt.set(!0)),t):xt.set(!0),Gt(e).then((()=>{Zt.set(e)})).finally((()=>{clearTimeout(r),xt.set(!1)}))}return Zt.set(e)}})));var er;const tr=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var rr=Object.defineProperty,nr=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,or=Object.prototype.propertyIsEnumerable,sr=(e,t,r)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ar=(e,t)=>{for(var r in t||(t={}))ir.call(t,r)&&sr(e,r,t[r]);if(nr)for(var r of nr(t))or.call(t,r)&&sr(e,r,t[r]);return e},hr=(e,t)=>{var r={};for(var n in e)ir.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&nr)for(var n of nr(e))t.indexOf(n)<0&&or.call(e,n)&&(r[n]=e[n]);return r};const lr=(e,t)=>{const{formats:r}=$t();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},cr=tr((e=>{var t=e,{locale:r,format:n}=t,i=hr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=lr("number",n)),new Intl.NumberFormat(r,i)})),ur=tr((e=>{var t=e,{locale:r,format:n}=t,i=hr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=lr("date",n):0===Object.keys(i).length&&(i=lr("date","short")),new Intl.DateTimeFormat(r,i)})),fr=tr((e=>{var t=e,{locale:r,format:n}=t,i=hr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=lr("time",n):0===Object.keys(i).length&&(i=lr("time","short")),new Intl.DateTimeFormat(r,i)})),pr=tr((
594
+ 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}();const Bt={},Lt=(e,t,r)=>r?(t in Bt||(Bt[t]={}),e in Bt[t]||(Bt[t][e]=r),r):r,At=(e,t)=>{if(null==t)return;if(t in Bt&&e in Bt[t])return Bt[t][e];const r=Jt(t);for(let n=0;n<r.length;n++){const i=Mt(r[n],e);if(i)return Lt(e,t,i)}};let wt;const St=k({});function Pt(e){return e in wt}function Mt(e,t){if(!Pt(e))return null;const r=function(e){return wt[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function Nt(e,...t){delete Bt[e],St.update((r=>(r[e]=J.all([r[e]||{},...t]),r)))}F([St],(([e])=>Object.keys(e))),St.subscribe((e=>wt=e));const Ct={};function Ot(e){return Ct[e]}function It(e){return null!=e&&Jt(e).some((e=>{var t;return null==(t=Ot(e))?void 0:t.size}))}function Rt(e,t){const r=Promise.all(t.map((t=>(function(e,t){Ct[e].delete(t),0===Ct[e].size&&delete Ct[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>Nt(e,...t)))}const Ut={};function Gt(e){if(!It(e))return e in Ut?Ut[e]:Promise.resolve();const t=function(e){return Jt(e).map((e=>{const t=Ot(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Ut[e]=Promise.all(t.map((([e,t])=>Rt(e,t)))).then((()=>{if(It(e))return Gt(e);delete Ut[e]})),Ut[e]}const Dt={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function $t(){return Dt}const xt=k(!1);var kt=Object.defineProperty,Ft=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,zt=(e,t,r)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Yt;const Zt=k(null);function Wt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Jt(e,t=$t().fallbackLocale){const r=Wt(e);return t?[...new Set([...r,...Wt(t)])]:r}function Qt(){return null!=Yt?Yt:void 0}Zt.subscribe((e=>{Yt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const qt=(er=((e,t)=>{for(var r in t||(t={}))Xt.call(t,r)&&zt(e,r,t[r]);if(Vt)for(var r of Vt(t))Kt.call(t,r)&&zt(e,r,t[r]);return e})({},Zt),Ft(er,jt({set:e=>{if(e&&function(e){if(null==e)return;const t=Jt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Pt(r))return r}}(e)&&It(e)){const{loadingDelay:t}=$t();let r;return"undefined"!=typeof window&&null!=Qt()&&t?r=window.setTimeout((()=>xt.set(!0)),t):xt.set(!0),Gt(e).then((()=>{Zt.set(e)})).finally((()=>{clearTimeout(r),xt.set(!1)}))}return Zt.set(e)}})));var er;const tr=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var rr=Object.defineProperty,nr=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,or=Object.prototype.propertyIsEnumerable,sr=(e,t,r)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ar=(e,t)=>{for(var r in t||(t={}))ir.call(t,r)&&sr(e,r,t[r]);if(nr)for(var r of nr(t))or.call(t,r)&&sr(e,r,t[r]);return e},hr=(e,t)=>{var r={};for(var n in e)ir.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&nr)for(var n of nr(e))t.indexOf(n)<0&&or.call(e,n)&&(r[n]=e[n]);return r};const lr=(e,t)=>{const{formats:r}=$t();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},cr=tr((e=>{var t=e,{locale:r,format:n}=t,i=hr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=lr("number",n)),new Intl.NumberFormat(r,i)})),ur=tr((e=>{var t=e,{locale:r,format:n}=t,i=hr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=lr("date",n):0===Object.keys(i).length&&(i=lr("date","short")),new Intl.DateTimeFormat(r,i)})),fr=tr((e=>{var t=e,{locale:r,format:n}=t,i=hr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=lr("time",n):0===Object.keys(i).length&&(i=lr("time","short")),new Intl.DateTimeFormat(r,i)})),pr=tr((
595
595
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
596
- (e,t=Qt())=>new _t(e,t,$t().formats,{ignoreTag:$t().ignoreTag}))),mr=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=Qt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Lt(e,h);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(n=(r=$t()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return c;let u=c;try{u=pr(c,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},dr=(e,t)=>((e={})=>{var t=e,{locale:r=Qt()}=t,n=hr(t,["locale"]);return fr(ar({locale:r},n))})(t).format(e),gr=(e,t)=>((e={})=>{var t=e,{locale:r=Qt()}=t,n=hr(t,["locale"]);return ur(ar({locale:r},n))})(t).format(e),br=(e,t)=>((e={})=>{var t=e,{locale:r=Qt()}=t,n=hr(t,["locale"]);return cr(ar({locale:r},n))})(t).format(e),Er=(e,t=Qt())=>Lt(e,t),yr=F([qt,St],(()=>mr));F([qt],(()=>dr)),F([qt],(()=>gr)),F([qt],(()=>br)),F([qt,St],(()=>Er));const vr={en:{generalMin:"Min",generalMax:"Max",showAll:"Show All",showLess:"Show Less"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Pokaži sve",showLess:"Prikaži manje"}};
597
- /* src/CashierMethodsList.svelte generated by Svelte v3.59.2 */function Tr(e,t,r){const n=e.slice();return n[35]=t[r],n[37]=r,n}
598
- // (133:0) {#if showMerchantList }
596
+ (e,t=Qt())=>new _t(e,t,$t().formats,{ignoreTag:$t().ignoreTag}))),mr=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=Qt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=At(e,h);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(n=(r=$t()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return c;let u=c;try{u=pr(c,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},dr=(e,t)=>((e={})=>{var t=e,{locale:r=Qt()}=t,n=hr(t,["locale"]);return fr(ar({locale:r},n))})(t).format(e),gr=(e,t)=>((e={})=>{var t=e,{locale:r=Qt()}=t,n=hr(t,["locale"]);return ur(ar({locale:r},n))})(t).format(e),br=(e,t)=>((e={})=>{var t=e,{locale:r=Qt()}=t,n=hr(t,["locale"]);return cr(ar({locale:r},n))})(t).format(e),Er=(e,t=Qt())=>At(e,t),yr=F([qt,St],(()=>mr));F([qt],(()=>dr)),F([qt],(()=>gr)),F([qt],(()=>br)),F([qt,St],(()=>Er));const vr={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Pokaži sve",showLess:"Prikaži manje"}};
597
+ /* src/CashierMethodsList.svelte generated by Svelte v3.59.2 */function Tr(e,t,r){const n=e.slice();return n[36]=t[r],n[38]=r,n}
598
+ // (128:0) {#if showMerchantList }
599
599
  function Hr(e){let t,r,n,i=/*paymentMethodsToShow*/e[3],o=[];for(let t=0;t<i.length;t+=1)o[t]=_r(Tr(e,i,t));let s=/*methodsButtonToggleText*/e[2]&&Br(e);return{c(){t=p("div"),r=p("div");for(let e=0;e<o.length;e+=1)o[e].c();n=d(),s&&s.c(),b(r,"class","CashierMethodList"),b(t,"class","CashierMethodListWidget")},m(i,a){u(i,t,a),c(t,r);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(r,null);c(t,n),s&&s.m(t,null)
600
- /*div1_binding*/,e[19](t)},p(e,n){if(/*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, $_*/106&n[0]){let t;for(i=/*paymentMethodsToShow*/e[3],t=0;t<i.length;t+=1){const s=Tr(e,i,t);o[t]?o[t].p(s,n):(o[t]=_r(s),o[t].c(),o[t].m(r,null))}for(;t<o.length;t+=1)o[t].d(1);o.length=i.length}/*methodsButtonToggleText*/e[2]?s?s.p(e,n):(s=Br(e),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(r){r&&f(t),function(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}(o,r),s&&s.d()
601
- /*div1_binding*/,e[19](null)}}}
602
- // (136:4) {#each paymentMethodsToShow as payMeth, index}
603
- function _r(e){let t,r,i,o,s,a,l,v,T,H,_,B,A,L,w,S,P,M,N,C,O,I,R,U,G,D,$,x=/*payMeth*/(e[35].Label||/*payMeth*/e[35].Name)+"",k=/*$_*/e[5]("generalMin")+"",F=/*payMeth*/e[35].DisplayCurrency.MinAmountLimit+"",j=/*payMeth*/e[35].DisplayCurrency.Name+"",V=/*$_*/e[5]("generalMax")+"",X=/*payMeth*/e[35].DisplayCurrency.MaxAmountLimit+"",K=/*payMeth*/e[35].DisplayCurrency.Name+"";function z(){/*click_handler*/
604
- return e[17](/*payMeth*/e[35])}return{c(){t=p("div"),r=p("div"),i=p("img"),a=d(),l=p("div"),v=p("span"),T=m(x),H=d(),_=p("div"),B=p("span"),A=m(k),L=d(),w=m(F),S=d(),P=m(j),M=d(),N=p("span"),C=m(V),O=d(),I=m(X),R=d(),U=m(K),G=d(),h(i.src,o=/*payMeth*/e[35].LogoUrl)||b(i,"src",o),b(i,"alt",s=/*payMeth*/e[35].Label),b(r,"class","MethodLogo"),b(l,"class","MethodTitle"),b(B,"class","Limits"),b(N,"class","Limits"),b(_,"class","MethodLimits"),b(t,"class","SelectorWrapper"),y(t,"checked",/*selectedPaymentMethod*/e[1]===/*payMeth*/e[35].Name)},m(e,n){u(e,t,n),c(t,r),c(r,i),c(t,a),c(t,l),c(l,v),c(v,T),c(t,H),c(t,_),c(_,B),c(B,A),c(B,L),c(B,w),c(B,S),c(B,P),c(_,M),c(_,N),c(N,C),c(N,O),c(N,I),c(N,R),c(N,U),c(t,G),D||($=[g(t,"click",z),g(t,"keyup",Lr)],D=!0)},p(r,n){e=r,/*paymentMethodsToShow*/8&n[0]&&!h(i.src,o=/*payMeth*/e[35].LogoUrl)&&b(i,"src",o),/*paymentMethodsToShow*/8&n[0]&&s!==(s=/*payMeth*/e[35].Label)&&b(i,"alt",s),/*paymentMethodsToShow*/8&n[0]&&x!==(x=/*payMeth*/(e[35].Label||/*payMeth*/e[35].Name)+"")&&E(T,x),/*$_*/32&n[0]&&k!==(k=/*$_*/e[5]("generalMin")+"")&&E(A,k),/*paymentMethodsToShow*/8&n[0]&&F!==(F=/*payMeth*/e[35].DisplayCurrency.MinAmountLimit+"")&&E(w,F),/*paymentMethodsToShow*/8&n[0]&&j!==(j=/*payMeth*/e[35].DisplayCurrency.Name+"")&&E(P,j),/*$_*/32&n[0]&&V!==(V=/*$_*/e[5]("generalMax")+"")&&E(C,V),/*paymentMethodsToShow*/8&n[0]&&X!==(X=/*payMeth*/e[35].DisplayCurrency.MaxAmountLimit+"")&&E(I,X),/*paymentMethodsToShow*/8&n[0]&&K!==(K=/*payMeth*/e[35].DisplayCurrency.Name+"")&&E(U,K),/*selectedPaymentMethod, paymentMethodsToShow*/10&n[0]&&y(t,"checked",/*selectedPaymentMethod*/e[1]===/*payMeth*/e[35].Name)},d(e){e&&f(t),D=!1,n($)}}}
605
- // (152:2) {#if methodsButtonToggleText}
606
- function Br(e){let t,r,n,i;return{c(){t=p("div"),r=m(/*methodsButtonToggleText*/e[2]),b(t,"class","ShowAllButton")},m(o,s){u(o,t,s),c(t,r),n||(i=g(t,"click",/*click_handler_1*/e[18]),n=!0)},p(e,t){/*methodsButtonToggleText*/4&t[0]&&E(r,/*methodsButtonToggleText*/e[2])},d(e){e&&f(t),n=!1,i()}}}function Ar(t){let r,n=/*showMerchantList*/t[4]&&Hr(t);return{c(){n&&n.c(),r=m(""),this.c=e},m(e,t){n&&n.m(e,t),u(e,r,t)},p(e,t){/*showMerchantList*/e[4]?n?n.p(e,t):(n=Hr(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},i:e,o:e,d(e){n&&n.d(e),e&&f(r)}}}const Lr=()=>{};function wr(e,t,r){let n;var i,o;i=yr,o=e=>r(5,n=e),e.$$.on_destroy.push(l(i,o));let s,a,{lang:h="en"}=t,{endpoint:c}=t,{session:u}=t,{customerid:f}=t,{currency:p}=t,{numberofmethodsshown:m}=t,{translationurl:d=""}=t,{clientstyling:g=""}=t,{clientstylingurl:b=""}=t,E=[],y="",v=[],T=!0;_(),Object.keys(vr).forEach((e=>{!function(e,t){Nt(e,t)}(e,vr[e])}));const B=()=>{var e;e=h,qt.set(e)},L=e=>{r(1,a=e.Name),dispatchEvent(new CustomEvent("selectPayMeth",{detail:e,bubbles:!0,cancelable:!0,composed:!0}))},w=()=>{v==E?P():S()},S=()=>{r(3,v=E),r(2,y=n("showLess"))},P=()=>{r(3,v=E.slice(0,+m)),a&&!v.find((e=>e.Name===a))&&v.splice(0,0,E.find((e=>e.Name===a))),r(2,y=n("showAll"))},M=()=>{r(4,T=!0)},N=e=>{r(4,T=!e.detail.hideMethodsList)};var C;C=()=>(window.addEventListener("backToMethodList",M,!1),window.addEventListener("hideMethodsList",N,!1),()=>{window.removeEventListener("backToMethodList",M),window.removeEventListener("paymentMethodLoaded",N)}),H().$$.on_mount.push(C);return e.$$set=e=>{"lang"in e&&r(8,h=e.lang),"endpoint"in e&&r(9,c=e.endpoint),"session"in e&&r(10,u=e.session),"customerid"in e&&r(11,f=e.customerid),"currency"in e&&r(12,p=e.currency),"numberofmethodsshown"in e&&r(13,m=e.numberofmethodsshown),"translationurl"in e&&r(14,d=e.translationurl),"clientstyling"in e&&r(15,g=e.clientstyling),"clientstylingurl"in e&&r(16,b=e.clientstylingurl)},e.$$.update=()=>{/*endpoint, session, customerid*/3584&e.$$.dirty[0]&&c&&u&&f&&(()=>{const e=new URL(`${c}/v1/player/${f}/payment/GetPaymentMetadata`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json");const i={method:"POST",headers:t,body:JSON.stringify({XPaymentSessionToken:u,Currency:p})};fetch(e,i).then((e=>e.json())).then((e=>{E=e.PaymentMethods.PaymentMethods.map((e=>Object.assign(Object.assign({},e),{LogoUrl:e.Logos&&e.Logos[0].LogoUrl?`https:${e.Logos[0].LogoUrl}`:""}))),r(2,y=m&&+m>0&&E.length>+m?n("showAll"):""),r(3,v=y?E.slice(0,+m):E)}))})(),/*lang*/256&e.$$.dirty[0]&&h&&B(),/*clientstyling, customStylingContainer*/32769&e.$$.dirty[0]&&g&&s&&(()=>{let e=document.createElement("style");e.innerHTML=g,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/65537&e.$$.dirty[0]&&b&&s&&(()=>{let e=new URL(b),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[s,a,y,v,T,n,L,w,h,c,u,f,p,m,d,g,b,e=>L(e),()=>w(),function(e){A[e?"unshift":"push"]((()=>{s=e,r(0,s)}))}]}class Sr extends ${constructor(e){super();const t=document.createElement("style");t.textContent='*,*::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 rgba(0, 0, 0, 0.1);width:100%;border-radius:var(--emw--border-radius-large, 6px)}.CashierMethodList .SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:52px;box-sizing:border-box;border-bottom:1px solid var(--emw--color-gray-100, #E8E9EB);padding:0 12px}.CashierMethodList .SelectorWrapper:first-child{border-radius:var(--emw--border-radius-large, 6px) var(--emw--border-radius-large, 6px) 0 0}.CashierMethodList .SelectorWrapper:last-child{border-radius:0 0 var(--emw--border-radius-large, 6px) var(--emw--border-radius-large, 6px)}.CashierMethodList .SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F9F9)}.CashierMethodList .MethodLogo{margin-right:7px;width:56px;height:32px;background:var(--emw--color-background, #FFF);border:1px solid var(--emw--color-gray-100, #E8E9EB);border-radius:var(--emw--border-radius-large, 6px);overflow:hidden}.CashierMethodList .MethodLogo img{width:inherit;height:inherit}.CashierMethodList .MethodTitle{color:var(--emw--color-black, #111);font-size:var(--emw--font-size-small, 14px);word-break:break-all;font-feature-settings:"numr" on}.CashierMethodList .MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.CashierMethodList .MethodLimits .Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-2x-small, 11px);line-height:var(--emw--size-small, 14px);color:var(--emw--color-gray-300, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--emw--color-primary, #292929);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);line-height:normal;text-transform:uppercase;border:1px solid var(--emw--color-gray-100, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:12px auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}',this.shadowRoot.appendChild(t),D(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},wr,Ar,o,{lang:8,endpoint:9,session:10,customerid:11,currency:12,numberofmethodsshown:13,translationurl:14,clientstyling:15,clientstylingurl:16},null,[-1,-1]),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),O()))}static get observedAttributes(){return["lang","endpoint","session","customerid","currency","numberofmethodsshown","translationurl","clientstyling","clientstylingurl"]}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),O()}get endpoint(){return this.$$.ctx[9]}set endpoint(e){this.$$set({endpoint:e}),O()}get session(){return this.$$.ctx[10]}set session(e){this.$$set({session:e}),O()}get customerid(){return this.$$.ctx[11]}set customerid(e){this.$$set({customerid:e}),O()}get currency(){return this.$$.ctx[12]}set currency(e){this.$$set({currency:e}),O()}get numberofmethodsshown(){return this.$$.ctx[13]}set numberofmethodsshown(e){this.$$set({numberofmethodsshown:e}),O()}get translationurl(){return this.$$.ctx[14]}set translationurl(e){this.$$set({translationurl:e}),O()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),O()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),O()}}return!customElements.get("cashier-methods-list")&&customElements.define("cashier-methods-list",Sr),Sr}));
600
+ /*div1_binding*/,e[21](t)},p(e,n){if(/*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/234&n[0]){let t;for(i=/*paymentMethodsToShow*/e[3],t=0;t<i.length;t+=1){const s=Tr(e,i,t);o[t]?o[t].p(s,n):(o[t]=_r(s),o[t].c(),o[t].m(r,null))}for(;t<o.length;t+=1)o[t].d(1);o.length=i.length}/*methodsButtonToggleText*/e[2]?s?s.p(e,n):(s=Br(e),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(r){r&&f(t),function(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}(o,r),s&&s.d()
601
+ /*div1_binding*/,e[21](null)}}}
602
+ // (131:4) {#each paymentMethodsToShow as payMeth, index}
603
+ function _r(e){let t,r,i,o,s,a,l,v,T,H,_,B,L,A,w,S,P,M,N,C,O,I,R,U,G,D,$,x=/*payMeth*/(e[36].Label||/*payMeth*/e[36].Name)+"",k=/*$_*/e[5]("generalMin")+"",F=/*formatter*/e[6].format(/*payMeth*/e[36].DisplayCurrency.MinAmountLimit)+"",j=/*payMeth*/e[36].DisplayCurrency.Name+"",V=/*$_*/e[5]("generalMax")+"",X=/*formatter*/e[6].format(/*payMeth*/e[36].DisplayCurrency.MaxAmountLimit)+"",K=/*payMeth*/e[36].DisplayCurrency.Name+"";function z(){/*click_handler*/
604
+ return e[19](/*payMeth*/e[36])}return{c(){t=p("div"),r=p("div"),i=p("img"),a=d(),l=p("div"),v=p("span"),T=m(x),H=d(),_=p("div"),B=p("span"),L=m(k),A=d(),w=m(F),S=d(),P=m(j),M=d(),N=p("span"),C=m(V),O=d(),I=m(X),R=d(),U=m(K),G=d(),h(i.src,o=/*payMeth*/e[36].LogoUrl)||b(i,"src",o),b(i,"alt",s=/*payMeth*/e[36].Label),b(r,"class","MethodLogo"),b(l,"class","MethodTitle"),b(B,"class","Limits"),b(N,"class","Limits"),b(_,"class","MethodLimits"),b(t,"class","SelectorWrapper"),y(t,"checked",/*selectedPaymentMethod*/e[1]===/*payMeth*/e[36].Name)},m(e,n){u(e,t,n),c(t,r),c(r,i),c(t,a),c(t,l),c(l,v),c(v,T),c(t,H),c(t,_),c(_,B),c(B,L),c(B,A),c(B,w),c(B,S),c(B,P),c(_,M),c(_,N),c(N,C),c(N,O),c(N,I),c(N,R),c(N,U),c(t,G),D||($=[g(t,"click",z),g(t,"keyup",Ar)],D=!0)},p(r,n){e=r,/*paymentMethodsToShow*/8&n[0]&&!h(i.src,o=/*payMeth*/e[36].LogoUrl)&&b(i,"src",o),/*paymentMethodsToShow*/8&n[0]&&s!==(s=/*payMeth*/e[36].Label)&&b(i,"alt",s),/*paymentMethodsToShow*/8&n[0]&&x!==(x=/*payMeth*/(e[36].Label||/*payMeth*/e[36].Name)+"")&&E(T,x),/*$_*/32&n[0]&&k!==(k=/*$_*/e[5]("generalMin")+"")&&E(L,k),/*paymentMethodsToShow*/8&n[0]&&F!==(F=/*formatter*/e[6].format(/*payMeth*/e[36].DisplayCurrency.MinAmountLimit)+"")&&E(w,F),/*paymentMethodsToShow*/8&n[0]&&j!==(j=/*payMeth*/e[36].DisplayCurrency.Name+"")&&E(P,j),/*$_*/32&n[0]&&V!==(V=/*$_*/e[5]("generalMax")+"")&&E(C,V),/*paymentMethodsToShow*/8&n[0]&&X!==(X=/*formatter*/e[6].format(/*payMeth*/e[36].DisplayCurrency.MaxAmountLimit)+"")&&E(I,X),/*paymentMethodsToShow*/8&n[0]&&K!==(K=/*payMeth*/e[36].DisplayCurrency.Name+"")&&E(U,K),/*selectedPaymentMethod, paymentMethodsToShow*/10&n[0]&&y(t,"checked",/*selectedPaymentMethod*/e[1]===/*payMeth*/e[36].Name)},d(e){e&&f(t),D=!1,n($)}}}
605
+ // (147:2) {#if methodsButtonToggleText}
606
+ function Br(e){let t,r,n,i;return{c(){t=p("div"),r=m(/*methodsButtonToggleText*/e[2]),b(t,"class","ShowAllButton")},m(o,s){u(o,t,s),c(t,r),n||(i=g(t,"click",/*click_handler_1*/e[20]),n=!0)},p(e,t){/*methodsButtonToggleText*/4&t[0]&&E(r,/*methodsButtonToggleText*/e[2])},d(e){e&&f(t),n=!1,i()}}}function Lr(t){let r,n=/*showMerchantList*/t[4]&&Hr(t);return{c(){n&&n.c(),r=m(""),this.c=e},m(e,t){n&&n.m(e,t),u(e,r,t)},p(e,t){/*showMerchantList*/e[4]?n?n.p(e,t):(n=Hr(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},i:e,o:e,d(e){n&&n.d(e),e&&f(r)}}}const Ar=()=>{};function wr(e,t,r){let n;var i,o;i=yr,o=e=>r(5,n=e),e.$$.on_destroy.push(l(i,o));let s,a,{lang:h="en"}=t,{local:c="en-US"}=t,{endpoint:u}=t,{session:f}=t,{customerid:p}=t,{currency:m}=t,{numberofmethodsshown:d}=t,{translationurl:g=""}=t,{clientstyling:b=""}=t,{clientstylingurl:E=""}=t,y=[],v="",T=[],B=!0,A=new Intl.NumberFormat(c,{minimumFractionDigits:2});_(),Object.keys(vr).forEach((e=>{!function(e,t){Nt(e,t)}(e,vr[e])}));const w=()=>{var e;e=h,qt.set(e)},S=e=>{r(1,a=e.Name),dispatchEvent(new CustomEvent("selectPayMeth",{detail:e,bubbles:!0,cancelable:!0,composed:!0}))},P=()=>{T==y?N():M()},M=()=>{r(3,T=y),r(2,v=n("showLess"))},N=()=>{r(3,T=y.slice(0,+d)),a&&!T.find((e=>e.Name===a))&&T.splice(0,0,y.find((e=>e.Name===a))),r(2,v=n("showAll"))},C=()=>{r(4,B=!0)},O=e=>{r(4,B=!e.detail.hideMethodsList)};var I;I=()=>(window.addEventListener("backToMethodList",C,!1),window.addEventListener("hideMethodsList",O,!1),()=>{window.removeEventListener("backToMethodList",C),window.removeEventListener("paymentMethodLoaded",O)}),H().$$.on_mount.push(I);return e.$$set=e=>{"lang"in e&&r(9,h=e.lang),"local"in e&&r(10,c=e.local),"endpoint"in e&&r(11,u=e.endpoint),"session"in e&&r(12,f=e.session),"customerid"in e&&r(13,p=e.customerid),"currency"in e&&r(14,m=e.currency),"numberofmethodsshown"in e&&r(15,d=e.numberofmethodsshown),"translationurl"in e&&r(16,g=e.translationurl),"clientstyling"in e&&r(17,b=e.clientstyling),"clientstylingurl"in e&&r(18,E=e.clientstylingurl)},e.$$.update=()=>{/*endpoint, session, customerid*/14336&e.$$.dirty[0]&&u&&f&&p&&(()=>{const e=new URL(`${u}/v1/player/${p}/payment/GetPaymentMetadata`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json");const i={method:"POST",headers:t,body:JSON.stringify({XPaymentSessionToken:f,Currency:m})};fetch(e,i).then((e=>e.json())).then((e=>{y=e.PaymentMethods.PaymentMethods.map((e=>Object.assign(Object.assign({},e),{LogoUrl:e.Logos&&e.Logos.length&&e.Logos[0].LogoUrl?`https:${e.Logos[0].LogoUrl}`:""}))),r(2,v=d&&+d>0&&y.length>+d?n("showAll"):""),r(3,T=v?y.slice(0,+d):y)}))})(),/*lang*/512&e.$$.dirty[0]&&h&&w(),/*clientstyling, customStylingContainer*/131073&e.$$.dirty[0]&&b&&s&&(()=>{let e=document.createElement("style");e.innerHTML=b,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/262145&e.$$.dirty[0]&&E&&s&&(()=>{let e=new URL(E),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[s,a,v,T,B,n,A,S,P,h,c,u,f,p,m,d,g,b,E,e=>S(e),()=>P(),function(e){L[e?"unshift":"push"]((()=>{s=e,r(0,s)}))}]}class Sr extends ${constructor(e){super();const t=document.createElement("style");t.textContent='*,*::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 rgba(0, 0, 0, 0.1);width:100%;border-radius:var(--emw--border-radius-large, 6px)}.CashierMethodList .SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:52px;box-sizing:border-box;border-bottom:1px solid var(--emw--color-gray-100, #E8E9EB);padding:0 12px}.CashierMethodList .SelectorWrapper:first-child{border-radius:var(--emw--border-radius-large, 6px) var(--emw--border-radius-large, 6px) 0 0}.CashierMethodList .SelectorWrapper:last-child{border-radius:0 0 var(--emw--border-radius-large, 6px) var(--emw--border-radius-large, 6px)}.CashierMethodList .SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F9F9)}.CashierMethodList .MethodLogo{margin-right:7px;width:56px;height:32px;background:var(--emw--color-background, #FFF);border:1px solid var(--emw--color-gray-100, #E8E9EB);border-radius:var(--emw--border-radius-large, 6px);overflow:hidden}.CashierMethodList .MethodLogo img{width:inherit;height:inherit}.CashierMethodList .MethodTitle{color:var(--emw--color-black, #111);font-size:var(--emw--font-size-small, 14px);word-break:break-all;font-feature-settings:"numr" on}.CashierMethodList .MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.CashierMethodList .MethodLimits .Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-2x-small, 11px);line-height:var(--emw--size-small, 14px);color:var(--emw--color-gray-300, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--emw--color-gray-300, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);background:var(--emw--color-gray-150, #F7F8FA);line-height:normal;border:1px solid var(--emw--color-gray-100, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:12px auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #FFF)}',this.shadowRoot.appendChild(t),D(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},wr,Lr,o,{lang:9,local:10,endpoint:11,session:12,customerid:13,currency:14,numberofmethodsshown:15,translationurl:16,clientstyling:17,clientstylingurl:18},null,[-1,-1]),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),O()))}static get observedAttributes(){return["lang","local","endpoint","session","customerid","currency","numberofmethodsshown","translationurl","clientstyling","clientstylingurl"]}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),O()}get local(){return this.$$.ctx[10]}set local(e){this.$$set({local:e}),O()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),O()}get session(){return this.$$.ctx[12]}set session(e){this.$$set({session:e}),O()}get customerid(){return this.$$.ctx[13]}set customerid(e){this.$$set({customerid:e}),O()}get currency(){return this.$$.ctx[14]}set currency(e){this.$$set({currency:e}),O()}get numberofmethodsshown(){return this.$$.ctx[15]}set numberofmethodsshown(e){this.$$set({numberofmethodsshown:e}),O()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),O()}get clientstyling(){return this.$$.ctx[17]}set clientstyling(e){this.$$set({clientstyling:e}),O()}get clientstylingurl(){return this.$$.ctx[18]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),O()}}return!customElements.get("cashier-methods-list")&&customElements.define("cashier-methods-list",Sr),Sr}));
607
607
  //# sourceMappingURL=cashier-methods-list.js.map