@everymatrix/cashier-page 1.0.69 → 1.0.71
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/CashierConfirmModal-CJUi-52c.cjs +4 -0
- package/components/CashierConfirmModal-DJCwaG3s.js +1067 -0
- package/components/CashierError-Bv5y8E21.cjs +5 -0
- package/components/CashierError-D1Sl93X0.js +3728 -0
- package/components/CashierHeader-BfiMdduW.cjs +1 -0
- package/components/CashierHeader-DPtk9YS7.js +354 -0
- package/components/CashierIframeRedirect-JKycDoGv.js +384 -0
- package/components/CashierIframeRedirect-euMQeO-W.cjs +1 -0
- package/components/CashierMethodDetails-CJQlWMCH.cjs +18 -0
- package/components/CashierMethodDetails-oNLo1qIb.js +7951 -0
- package/components/CashierMethodsList-CmqbF598.cjs +1 -0
- package/components/CashierMethodsList-Iun7lw-L.js +635 -0
- package/components/CashierModal-C0mhAnlZ.cjs +1 -0
- package/components/CashierModal-C_5YSQzV.js +220 -0
- package/components/CashierNotifications-Bizfd07g.js +136 -0
- package/components/CashierNotifications-DOy2PVHI.cjs +1 -0
- package/components/CashierPage-CA5Vb6Re.cjs +1 -0
- package/components/CashierPage-COmj0BRS.js +1257 -0
- package/components/CashierReceiptPage-Bm6wOvVX.cjs +1 -0
- package/components/CashierReceiptPage-g9G9PnHu.js +926 -0
- package/components/CashierSpinner-BXmEgLih.js +71 -0
- package/components/CashierSpinner-DCVKvCG4.cjs +1 -0
- package/package.json +11 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var ue=Object.defineProperty,de=Object.defineProperties;var me=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var he=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable;var K=(s,t,l)=>t in s?ue(s,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):s[t]=l,J=(s,t)=>{for(var l in t||(t={}))he.call(t,l)&&K(s,l,t[l]);if(Z)for(var l of Z(t))pe.call(t,l)&&K(s,l,t[l]);return s},V=(s,t)=>de(s,me(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-CJUi-52c.cjs"),I=require("./CashierError-Bv5y8E21.cjs");I.init({fallbackLocale:"en"});function fe(s,t){I.addMessages(s,t)}function ge(s){I.$locale.set(s)}const Q={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"},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"}};function _e(s){e.append_styles(s,"svelte-1p21ucr",".svelte-1p21ucr.svelte-1p21ucr,.svelte-1p21ucr.svelte-1p21ucr::before,.svelte-1p21ucr.svelte-1p21ucr::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList.svelte-1p21ucr.svelte-1p21ucr{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}.CashierMethodList.svelte-1p21ucr .SelectorWrapper.svelte-1p21ucr{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(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.CashierMethodList.svelte-1p21ucr .SelectorWrapper.svelte-1p21ucr:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.CashierMethodList.svelte-1p21ucr .SelectorWrapper.svelte-1p21ucr:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.CashierMethodList.svelte-1p21ucr .SelectorWrapper.checked.svelte-1p21ucr{background:var(--emw--color-background-secondary, #F9F8F8)}.CashierMethodList.svelte-1p21ucr .MethodLogo.svelte-1p21ucr{margin-right:var(--mmw--spacing-x-small-minus, 7px);width:56px;height:32px;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}.CashierMethodList.svelte-1p21ucr .MethodLogo img.svelte-1p21ucr{width:inherit;height:inherit}.CashierMethodList.svelte-1p21ucr .MethodTitle.svelte-1p21ucr{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);word-break:break-all}.CashierMethodList.svelte-1p21ucr .MethodLimits.svelte-1p21ucr{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.CashierMethodList.svelte-1p21ucr .MethodLimits .Limits.svelte-1p21ucr{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-2x-small-plus, 11px);line-height:var(--emw--size-small, 14px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton.svelte-1p21ucr.svelte-1p21ucr{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.svelte-1p21ucr.svelte-1p21ucr:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo.svelte-1p21ucr.svelte-1p21ucr{min-width:56px}.CashierMethodList.svelte-1p21ucr .MethodTitle.svelte-1p21ucr{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-x-small, 12px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList.svelte-1p21ucr .MethodLimits .Limits.svelte-1p21ucr{flex-shrink:0;font-size:var(--emw--font-size-2x-small, 10px)}}@container method-list (max-width: 300px){.Limits.svelte-1p21ucr.svelte-1p21ucr{display:none}}")}function Y(s,t,l){const a=s.slice();return a[47]=t[l],a[49]=l,a}function $(s){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",s[4]),e.set_custom_element_data(t,"clientstyling",s[3]),e.set_custom_element_data(t,"class","svelte-1p21ucr")},m(l,a){e.insert(l,t,a)},p(l,a){a[0]&16&&e.set_custom_element_data(t,"clientstylingurl",l[4]),a[0]&8&&e.set_custom_element_data(t,"clientstyling",l[3])},d(l){l&&e.detach(t)}}}function ee(s){let t,l,a,o=e.ensure_array_like(s[8]),r=[];for(let i=0;i<o.length;i+=1)r[i]=te(Y(s,o,i));let c=s[7]&&se(s);return{c(){t=e.element("div"),l=e.element("div");for(let i=0;i<r.length;i+=1)r[i].c();a=e.space(),c&&c.c(),e.attr(l,"class","CashierMethodList svelte-1p21ucr"),e.attr(t,"class","CashierMethodListWidget svelte-1p21ucr")},m(i,u){e.insert(i,t,u),e.append(t,l);for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(l,null);e.append(t,a),c&&c.m(t,null),s[26](t)},p(i,u){if(u[0]&57664){o=e.ensure_array_like(i[8]);let d;for(d=0;d<o.length;d+=1){const y=Y(i,o,d);r[d]?r[d].p(y,u):(r[d]=te(y),r[d].c(),r[d].m(l,null))}for(;d<r.length;d+=1)r[d].d(1);r.length=o.length}i[7]?c?c.p(i,u):(c=se(i),c.c(),c.m(t,null)):c&&(c.d(1),c=null)},d(i){i&&e.detach(t),e.destroy_each(r,i),c&&c.d(),s[26](null)}}}function te(s){let t,l,a,o,r,c,i,u,d=(s[47].Label||s[47].Name)+"",y,b,M,f,k=s[13]("generalMin")+"",E,v,g=s[14].format(s[47].DisplayCurrency.MinAmountLimit)+"",C,N,_=s[47].DisplayCurrency.Name+"",T,j,w,S=s[13]("generalMax")+"",D,R,L=s[14].format(s[47].DisplayCurrency.MaxAmountLimit)+"",U,W,z=s[47].DisplayCurrency.Name+"",F,O,x,B;function H(){return s[24](s[47])}return{c(){t=e.element("div"),l=e.element("div"),a=e.element("img"),c=e.space(),i=e.element("div"),u=e.element("span"),y=e.text(d),b=e.space(),M=e.element("div"),f=e.element("span"),E=e.text(k),v=e.space(),C=e.text(g),N=e.space(),T=e.text(_),j=e.space(),w=e.element("span"),D=e.text(S),R=e.space(),U=e.text(L),W=e.space(),F=e.text(z),O=e.space(),e.src_url_equal(a.src,o=s[47].LogoUrl)||e.attr(a,"src",o),e.attr(a,"alt",r=s[47].Label),e.attr(a,"class","svelte-1p21ucr"),e.attr(l,"class","MethodLogo svelte-1p21ucr"),e.attr(u,"class","svelte-1p21ucr"),e.attr(i,"class","MethodTitle svelte-1p21ucr"),e.attr(f,"class","Limits svelte-1p21ucr"),e.attr(w,"class","Limits svelte-1p21ucr"),e.attr(M,"class","MethodLimits svelte-1p21ucr"),e.attr(t,"class","SelectorWrapper svelte-1p21ucr"),e.toggle_class(t,"checked",s[6]===s[47].Name)},m(A,p){e.insert(A,t,p),e.append(t,l),e.append(l,a),e.append(t,c),e.append(t,i),e.append(i,u),e.append(u,y),e.append(t,b),e.append(t,M),e.append(M,f),e.append(f,E),e.append(f,v),e.append(f,C),e.append(f,N),e.append(f,T),e.append(M,j),e.append(M,w),e.append(w,D),e.append(w,R),e.append(w,U),e.append(w,W),e.append(w,F),e.append(t,O),x||(B=[e.listen(t,"click",H),e.listen(t,"keyup",we)],x=!0)},p(A,p){s=A,p[0]&256&&!e.src_url_equal(a.src,o=s[47].LogoUrl)&&e.attr(a,"src",o),p[0]&256&&r!==(r=s[47].Label)&&e.attr(a,"alt",r),p[0]&256&&d!==(d=(s[47].Label||s[47].Name)+"")&&e.set_data(y,d),p[0]&8192&&k!==(k=s[13]("generalMin")+"")&&e.set_data(E,k),p[0]&256&&g!==(g=s[14].format(s[47].DisplayCurrency.MinAmountLimit)+"")&&e.set_data(C,g),p[0]&256&&_!==(_=s[47].DisplayCurrency.Name+"")&&e.set_data(T,_),p[0]&8192&&S!==(S=s[13]("generalMax")+"")&&e.set_data(D,S),p[0]&256&&L!==(L=s[14].format(s[47].DisplayCurrency.MaxAmountLimit)+"")&&e.set_data(U,L),p[0]&256&&z!==(z=s[47].DisplayCurrency.Name+"")&&e.set_data(F,z),p[0]&320&&e.toggle_class(t,"checked",s[6]===s[47].Name)},d(A){A&&e.detach(t),x=!1,e.run_all(B)}}}function se(s){let t,l,a,o;return{c(){t=e.element("div"),l=e.text(s[7]),e.attr(t,"class","ShowAllButton svelte-1p21ucr")},m(r,c){e.insert(r,t,c),e.append(t,l),a||(o=e.listen(t,"click",s[25]),a=!0)},p(r,c){c[0]&128&&e.set_data(l,r[7])},d(r){r&&e.detach(t),a=!1,o()}}}function le(s){let t,l,a;return{c(){t=e.element("cashier-error"),l=e.element("span"),a=e.text(s[10]),e.attr(l,"slot","text"),e.attr(l,"class","svelte-1p21ucr"),e.set_custom_element_data(t,"lang",s[0]),e.set_custom_element_data(t,"assetsurl",s[1]),e.set_custom_element_data(t,"translationurl",s[2]),e.set_custom_element_data(t,"clientstylingurl",s[4]),e.set_custom_element_data(t,"clientstyling",s[3]),e.set_custom_element_data(t,"hidebuttons","true"),e.set_custom_element_data(t,"class","svelte-1p21ucr")},m(o,r){e.insert(o,t,r),e.append(t,l),e.append(l,a)},p(o,r){r[0]&1024&&e.set_data(a,o[10]),r[0]&1&&e.set_custom_element_data(t,"lang",o[0]),r[0]&2&&e.set_custom_element_data(t,"assetsurl",o[1]),r[0]&4&&e.set_custom_element_data(t,"translationurl",o[2]),r[0]&16&&e.set_custom_element_data(t,"clientstylingurl",o[4]),r[0]&8&&e.set_custom_element_data(t,"clientstyling",o[3])},d(o){o&&e.detach(t)}}}function ve(s){let t,l,a,o=s[12]&&$(s),r=(s[9]||s[11])&&ee(s),c=s[10]&&le(s);return{c(){o&&o.c(),t=e.space(),r&&r.c(),l=e.space(),c&&c.c(),a=e.empty()},m(i,u){o&&o.m(i,u),e.insert(i,t,u),r&&r.m(i,u),e.insert(i,l,u),c&&c.m(i,u),e.insert(i,a,u)},p(i,u){i[12]?o?o.p(i,u):(o=$(i),o.c(),o.m(t.parentNode,t)):o&&(o.d(1),o=null),i[9]||i[11]?r?r.p(i,u):(r=ee(i),r.c(),r.m(l.parentNode,l)):r&&(r.d(1),r=null),i[10]?c?c.p(i,u):(c=le(i),c.c(),c.m(a.parentNode,a)):c&&(c.d(1),c=null)},i:e.noop,o:e.noop,d(i){i&&(e.detach(t),e.detach(l),e.detach(a)),o&&o.d(i),r&&r.d(i),c&&c.d(i)}}}const we=()=>{};function ye(s,t,l){let a;e.component_subscribe(s,I.$format,n=>l(13,a=n));let{lang:o="en"}=t,{local:r="en-US"}=t,{endpoint:c}=t,{session:i}=t,{customerid:u}=t,{assetsurl:d}=t,{currency:y}=t,{numberofmethodsshown:b}=t,{translationurl:M=""}=t,{clientstyling:f=""}=t,{clientstylingurl:k=""}=t,{ismobileview:E}=t,v=[],g,C,N="",_=[],T=!0,j=new Intl.NumberFormat(r,{minimumFractionDigits:2}),w="",S,D=!0,R=!0;var L;(function(n){n.PlayerSessionIsNotValid="PlayerSessionIsNotValid",n.Success="Success",n.JwtTokenError="JwtTokenError"})(L||(L={})),e.createEventDispatcher(),Object.keys(Q).forEach(n=>{fe(n,Q[n])});const U=()=>{ge(o)},W=()=>{const n=new URL(`${c}/v1/player/${u}/payment/GetPaymentMetadata`),h=new Headers;h.append("accept","application/json"),h.append("Content-Type","application/json");const P={method:"POST",headers:h,body:JSON.stringify({XPaymentSessionToken:i,Currency:y})};fetch(n,P).then(m=>m.json()).then(m=>{var q;if(m.error){l(10,w=m.error);return}if(m.ResponseCode===L.PlayerSessionIsNotValid){S=m.ResponseCode,x();return}if(m.ResponseCode===L.JwtTokenError){S=m.ResponseCode,x();return}if(m.ResponseCode!==L.Success){S=m.ResponseCode,x();return}v=(q=m.PaymentMethods)!=null&&q.Ordering?z(m):F(m),l(7,N=b&&+b>0&&v.length>+b?a("showAll"):""),l(8,_=N?v.slice(0,+b):v)}).finally(()=>l(12,R=!1))},z=n=>{const h=[];return n.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(P=>{const m=n.PaymentMethods.PaymentMethods.find(q=>q.Name===P);m&&h.push(V(J({},m),{LogoUrl:m.Logos&&m.Logos.length&&m.Logos[0].LogoUrl?`https:${m.Logos[0].LogoUrl}`:""}))}),h},F=n=>n.PaymentMethods.PaymentMethods.map(h=>V(J({},h),{LogoUrl:h.Logos&&h.Logos.length&&h.Logos[0].LogoUrl?`https:${h.Logos[0].LogoUrl}`:""})),O=n=>{l(6,C=n.Name),dispatchEvent(new CustomEvent("selectPayMeth",{detail:n,bubbles:!0,cancelable:!0,composed:!0}))},x=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:S},window.location.href)},B=()=>{l(11,D=E==="false")},H=()=>{_==v?p():A()},A=()=>{l(8,_=v),l(7,N=a("showLess"))},p=()=>{l(8,_=v.slice(0,+b)),C&&!_.find(n=>n.Name===C)&&_.splice(0,0,v.find(n=>n.Name===C)),l(7,N=a("showAll"))},G=()=>{l(9,T=!0)},X=n=>{l(9,T=!n.detail.hideMethodsList)},re=()=>{let n=document.createElement("style");n.innerHTML=f,g.appendChild(n)},ie=()=>{let n=new URL(k),h=document.createElement("style");fetch(n.href).then(P=>P.text()).then(P=>{h.innerHTML=P,setTimeout(()=>{g.appendChild(h)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.addEventListener("backToMethodList",G,!1),window.addEventListener("hideMethodsList",X,!1),()=>{window.removeEventListener("backToMethodList",G),window.removeEventListener("paymentMethodLoaded",X)}));const oe=n=>O(n),ae=()=>H();function ce(n){e.binding_callbacks[n?"unshift":"push"](()=>{g=n,l(5,g)})}return s.$$set=n=>{"lang"in n&&l(0,o=n.lang),"local"in n&&l(17,r=n.local),"endpoint"in n&&l(18,c=n.endpoint),"session"in n&&l(19,i=n.session),"customerid"in n&&l(20,u=n.customerid),"assetsurl"in n&&l(1,d=n.assetsurl),"currency"in n&&l(21,y=n.currency),"numberofmethodsshown"in n&&l(22,b=n.numberofmethodsshown),"translationurl"in n&&l(2,M=n.translationurl),"clientstyling"in n&&l(3,f=n.clientstyling),"clientstylingurl"in n&&l(4,k=n.clientstylingurl),"ismobileview"in n&&l(23,E=n.ismobileview)},s.$$.update=()=>{s.$$.dirty[0]&1835008&&c&&i&&u&&W(),s.$$.dirty[0]&1&&o&&U(),s.$$.dirty[0]&40&&f&&g&&re(),s.$$.dirty[0]&48&&k&&g&&ie(),s.$$.dirty[0]&8388608&&E&&B()},[o,d,M,f,k,g,C,N,_,T,w,D,R,a,j,O,H,r,c,i,u,y,b,E,oe,ae,ce]}class ne extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ye,ve,e.safe_not_equal,{lang:0,local:17,endpoint:18,session:19,customerid:20,assetsurl:1,currency:21,numberofmethodsshown:22,translationurl:2,clientstyling:3,clientstylingurl:4,ismobileview:23},_e,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get local(){return this.$$.ctx[17]}set local(t){this.$$set({local:t}),e.flush()}get endpoint(){return this.$$.ctx[18]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[19]}set session(t){this.$$set({session:t}),e.flush()}get customerid(){return this.$$.ctx[20]}set customerid(t){this.$$set({customerid:t}),e.flush()}get assetsurl(){return this.$$.ctx[1]}set assetsurl(t){this.$$set({assetsurl:t}),e.flush()}get currency(){return this.$$.ctx[21]}set currency(t){this.$$set({currency:t}),e.flush()}get numberofmethodsshown(){return this.$$.ctx[22]}set numberofmethodsshown(t){this.$$set({numberofmethodsshown:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get ismobileview(){return this.$$.ctx[23]}set ismobileview(t){this.$$set({ismobileview:t}),e.flush()}}e.create_custom_element(ne,{lang:{},local:{},endpoint:{},session:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},clientstyling:{},clientstylingurl:{},ismobileview:{}},[],[],!0);exports.default=ne;
|
|
@@ -0,0 +1,635 @@
|
|
|
1
|
+
var Me = Object.defineProperty, _e = Object.defineProperties;
|
|
2
|
+
var ke = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ie = Object.getOwnPropertySymbols;
|
|
4
|
+
var Ce = Object.prototype.hasOwnProperty, Se = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var re = (t, e, s) => e in t ? Me(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, $ = (t, e) => {
|
|
6
|
+
for (var s in e || (e = {}))
|
|
7
|
+
Ce.call(e, s) && re(t, s, e[s]);
|
|
8
|
+
if (ie)
|
|
9
|
+
for (var s of ie(e))
|
|
10
|
+
Se.call(e, s) && re(t, s, e[s]);
|
|
11
|
+
return t;
|
|
12
|
+
}, ee = (t, e) => _e(t, ke(e));
|
|
13
|
+
import { S as Ee, b as Ne, f as L, c as Ae, a as Te, d as Pe, h as k, x as xe, k as F, n as ne, v as U, w as De, F as ze, H as Re, g as v, E as h, K as oe, j as f, l as c, M as Fe, y as x, D as ae, J as ce, A as te, z as D, r as Ue, C as Oe } from "./CashierConfirmModal-DJCwaG3s.js";
|
|
14
|
+
import { i as je, a as He, $ as We, b as Be } from "./CashierError-D1Sl93X0.js";
|
|
15
|
+
je({
|
|
16
|
+
fallbackLocale: "en"
|
|
17
|
+
});
|
|
18
|
+
function Ie(t, e) {
|
|
19
|
+
He(t, e);
|
|
20
|
+
}
|
|
21
|
+
function Je(t) {
|
|
22
|
+
We.set(t);
|
|
23
|
+
}
|
|
24
|
+
const ue = {
|
|
25
|
+
en: {
|
|
26
|
+
generalMin: "Min",
|
|
27
|
+
generalMax: "Max",
|
|
28
|
+
showAll: "SHOW ALL",
|
|
29
|
+
showLess: "SHOW LESS"
|
|
30
|
+
},
|
|
31
|
+
uk: {
|
|
32
|
+
generalMin: "Мін",
|
|
33
|
+
generalMax: "Макс"
|
|
34
|
+
},
|
|
35
|
+
hr: {
|
|
36
|
+
generalMin: "Minimalno",
|
|
37
|
+
generalMax: "Maksimalno",
|
|
38
|
+
showAll: "Prikaži sve",
|
|
39
|
+
showLess: "Prikaži manje"
|
|
40
|
+
},
|
|
41
|
+
tr: {
|
|
42
|
+
generalMin: "Min",
|
|
43
|
+
generalMax: "Maks",
|
|
44
|
+
showAll: "HEPSİNİ GÖSTER",
|
|
45
|
+
showLess: "DAHA AZ GÖSTER"
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
function Ve(t) {
|
|
49
|
+
Pe(t, "svelte-1p21ucr", ".svelte-1p21ucr.svelte-1p21ucr,.svelte-1p21ucr.svelte-1p21ucr::before,.svelte-1p21ucr.svelte-1p21ucr::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList.svelte-1p21ucr.svelte-1p21ucr{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}.CashierMethodList.svelte-1p21ucr .SelectorWrapper.svelte-1p21ucr{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(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.CashierMethodList.svelte-1p21ucr .SelectorWrapper.svelte-1p21ucr:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.CashierMethodList.svelte-1p21ucr .SelectorWrapper.svelte-1p21ucr:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.CashierMethodList.svelte-1p21ucr .SelectorWrapper.checked.svelte-1p21ucr{background:var(--emw--color-background-secondary, #F9F8F8)}.CashierMethodList.svelte-1p21ucr .MethodLogo.svelte-1p21ucr{margin-right:var(--mmw--spacing-x-small-minus, 7px);width:56px;height:32px;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}.CashierMethodList.svelte-1p21ucr .MethodLogo img.svelte-1p21ucr{width:inherit;height:inherit}.CashierMethodList.svelte-1p21ucr .MethodTitle.svelte-1p21ucr{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);word-break:break-all}.CashierMethodList.svelte-1p21ucr .MethodLimits.svelte-1p21ucr{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.CashierMethodList.svelte-1p21ucr .MethodLimits .Limits.svelte-1p21ucr{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-2x-small-plus, 11px);line-height:var(--emw--size-small, 14px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton.svelte-1p21ucr.svelte-1p21ucr{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.svelte-1p21ucr.svelte-1p21ucr:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo.svelte-1p21ucr.svelte-1p21ucr{min-width:56px}.CashierMethodList.svelte-1p21ucr .MethodTitle.svelte-1p21ucr{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-x-small, 12px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList.svelte-1p21ucr .MethodLimits .Limits.svelte-1p21ucr{flex-shrink:0;font-size:var(--emw--font-size-2x-small, 10px)}}@container method-list (max-width: 300px){.Limits.svelte-1p21ucr.svelte-1p21ucr{display:none}}");
|
|
50
|
+
}
|
|
51
|
+
function me(t, e, s) {
|
|
52
|
+
const o = t.slice();
|
|
53
|
+
return o[47] = e[s], o[49] = s, o;
|
|
54
|
+
}
|
|
55
|
+
function de(t) {
|
|
56
|
+
let e;
|
|
57
|
+
return {
|
|
58
|
+
c() {
|
|
59
|
+
e = v("cashier-spinner"), h(
|
|
60
|
+
e,
|
|
61
|
+
"clientstylingurl",
|
|
62
|
+
/*clientstylingurl*/
|
|
63
|
+
t[4]
|
|
64
|
+
), h(
|
|
65
|
+
e,
|
|
66
|
+
"clientstyling",
|
|
67
|
+
/*clientstyling*/
|
|
68
|
+
t[3]
|
|
69
|
+
), h(e, "class", "svelte-1p21ucr");
|
|
70
|
+
},
|
|
71
|
+
m(s, o) {
|
|
72
|
+
F(s, e, o);
|
|
73
|
+
},
|
|
74
|
+
p(s, o) {
|
|
75
|
+
o[0] & /*clientstylingurl*/
|
|
76
|
+
16 && h(
|
|
77
|
+
e,
|
|
78
|
+
"clientstylingurl",
|
|
79
|
+
/*clientstylingurl*/
|
|
80
|
+
s[4]
|
|
81
|
+
), o[0] & /*clientstyling*/
|
|
82
|
+
8 && h(
|
|
83
|
+
e,
|
|
84
|
+
"clientstyling",
|
|
85
|
+
/*clientstyling*/
|
|
86
|
+
s[3]
|
|
87
|
+
);
|
|
88
|
+
},
|
|
89
|
+
d(s) {
|
|
90
|
+
s && U(e);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function he(t) {
|
|
95
|
+
let e, s, o, n = oe(
|
|
96
|
+
/*paymentMethodsToShow*/
|
|
97
|
+
t[8]
|
|
98
|
+
), i = [];
|
|
99
|
+
for (let r = 0; r < n.length; r += 1)
|
|
100
|
+
i[r] = fe(me(t, n, r));
|
|
101
|
+
let a = (
|
|
102
|
+
/*methodsButtonToggleText*/
|
|
103
|
+
t[7] && ge(t)
|
|
104
|
+
);
|
|
105
|
+
return {
|
|
106
|
+
c() {
|
|
107
|
+
e = v("div"), s = v("div");
|
|
108
|
+
for (let r = 0; r < i.length; r += 1)
|
|
109
|
+
i[r].c();
|
|
110
|
+
o = k(), a && a.c(), f(s, "class", "CashierMethodList svelte-1p21ucr"), f(e, "class", "CashierMethodListWidget svelte-1p21ucr");
|
|
111
|
+
},
|
|
112
|
+
m(r, u) {
|
|
113
|
+
F(r, e, u), c(e, s);
|
|
114
|
+
for (let m = 0; m < i.length; m += 1)
|
|
115
|
+
i[m] && i[m].m(s, null);
|
|
116
|
+
c(e, o), a && a.m(e, null), t[26](e);
|
|
117
|
+
},
|
|
118
|
+
p(r, u) {
|
|
119
|
+
if (u[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/
|
|
120
|
+
57664) {
|
|
121
|
+
n = oe(
|
|
122
|
+
/*paymentMethodsToShow*/
|
|
123
|
+
r[8]
|
|
124
|
+
);
|
|
125
|
+
let m;
|
|
126
|
+
for (m = 0; m < n.length; m += 1) {
|
|
127
|
+
const C = me(r, n, m);
|
|
128
|
+
i[m] ? i[m].p(C, u) : (i[m] = fe(C), i[m].c(), i[m].m(s, null));
|
|
129
|
+
}
|
|
130
|
+
for (; m < i.length; m += 1)
|
|
131
|
+
i[m].d(1);
|
|
132
|
+
i.length = n.length;
|
|
133
|
+
}
|
|
134
|
+
/*methodsButtonToggleText*/
|
|
135
|
+
r[7] ? a ? a.p(r, u) : (a = ge(r), a.c(), a.m(e, null)) : a && (a.d(1), a = null);
|
|
136
|
+
},
|
|
137
|
+
d(r) {
|
|
138
|
+
r && U(e), Fe(i, r), a && a.d(), t[26](null);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
function fe(t) {
|
|
143
|
+
let e, s, o, n, i, a, r, u, m = (
|
|
144
|
+
/*payMeth*/
|
|
145
|
+
(t[47].Label || /*payMeth*/
|
|
146
|
+
t[47].Name) + ""
|
|
147
|
+
), C, S, N, w, A = (
|
|
148
|
+
/*$_*/
|
|
149
|
+
t[13]("generalMin") + ""
|
|
150
|
+
), z, M, y = (
|
|
151
|
+
/*formatter*/
|
|
152
|
+
t[14].format(
|
|
153
|
+
/*payMeth*/
|
|
154
|
+
t[47].DisplayCurrency.MinAmountLimit
|
|
155
|
+
) + ""
|
|
156
|
+
), T, R, b = (
|
|
157
|
+
/*payMeth*/
|
|
158
|
+
t[47].DisplayCurrency.Name + ""
|
|
159
|
+
), O, K, _, P = (
|
|
160
|
+
/*$_*/
|
|
161
|
+
t[13]("generalMax") + ""
|
|
162
|
+
), B, J, E = (
|
|
163
|
+
/*formatter*/
|
|
164
|
+
t[14].format(
|
|
165
|
+
/*payMeth*/
|
|
166
|
+
t[47].DisplayCurrency.MaxAmountLimit
|
|
167
|
+
) + ""
|
|
168
|
+
), V, X, I = (
|
|
169
|
+
/*payMeth*/
|
|
170
|
+
t[47].DisplayCurrency.Name + ""
|
|
171
|
+
), q, G, j, Z;
|
|
172
|
+
function Q() {
|
|
173
|
+
return (
|
|
174
|
+
/*click_handler*/
|
|
175
|
+
t[24](
|
|
176
|
+
/*payMeth*/
|
|
177
|
+
t[47]
|
|
178
|
+
)
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
return {
|
|
182
|
+
c() {
|
|
183
|
+
e = v("div"), s = v("div"), o = v("img"), a = k(), r = v("div"), u = v("span"), C = x(m), S = k(), N = v("div"), w = v("span"), z = x(A), M = k(), T = x(y), R = k(), O = x(b), K = k(), _ = v("span"), B = x(P), J = k(), V = x(E), X = k(), q = x(I), G = k(), ae(o.src, n = /*payMeth*/
|
|
184
|
+
t[47].LogoUrl) || f(o, "src", n), f(o, "alt", i = /*payMeth*/
|
|
185
|
+
t[47].Label), f(o, "class", "svelte-1p21ucr"), f(s, "class", "MethodLogo svelte-1p21ucr"), f(u, "class", "svelte-1p21ucr"), f(r, "class", "MethodTitle svelte-1p21ucr"), f(w, "class", "Limits svelte-1p21ucr"), f(_, "class", "Limits svelte-1p21ucr"), f(N, "class", "MethodLimits svelte-1p21ucr"), f(e, "class", "SelectorWrapper svelte-1p21ucr"), ce(
|
|
186
|
+
e,
|
|
187
|
+
"checked",
|
|
188
|
+
/*selectedPaymentMethod*/
|
|
189
|
+
t[6] === /*payMeth*/
|
|
190
|
+
t[47].Name
|
|
191
|
+
);
|
|
192
|
+
},
|
|
193
|
+
m(H, p) {
|
|
194
|
+
F(H, e, p), c(e, s), c(s, o), c(e, a), c(e, r), c(r, u), c(u, C), c(e, S), c(e, N), c(N, w), c(w, z), c(w, M), c(w, T), c(w, R), c(w, O), c(N, K), c(N, _), c(_, B), c(_, J), c(_, V), c(_, X), c(_, q), c(e, G), j || (Z = [
|
|
195
|
+
te(e, "click", Q),
|
|
196
|
+
te(e, "keyup", Ge)
|
|
197
|
+
], j = !0);
|
|
198
|
+
},
|
|
199
|
+
p(H, p) {
|
|
200
|
+
t = H, p[0] & /*paymentMethodsToShow*/
|
|
201
|
+
256 && !ae(o.src, n = /*payMeth*/
|
|
202
|
+
t[47].LogoUrl) && f(o, "src", n), p[0] & /*paymentMethodsToShow*/
|
|
203
|
+
256 && i !== (i = /*payMeth*/
|
|
204
|
+
t[47].Label) && f(o, "alt", i), p[0] & /*paymentMethodsToShow*/
|
|
205
|
+
256 && m !== (m = /*payMeth*/
|
|
206
|
+
(t[47].Label || /*payMeth*/
|
|
207
|
+
t[47].Name) + "") && D(C, m), p[0] & /*$_*/
|
|
208
|
+
8192 && A !== (A = /*$_*/
|
|
209
|
+
t[13]("generalMin") + "") && D(z, A), p[0] & /*paymentMethodsToShow*/
|
|
210
|
+
256 && y !== (y = /*formatter*/
|
|
211
|
+
t[14].format(
|
|
212
|
+
/*payMeth*/
|
|
213
|
+
t[47].DisplayCurrency.MinAmountLimit
|
|
214
|
+
) + "") && D(T, y), p[0] & /*paymentMethodsToShow*/
|
|
215
|
+
256 && b !== (b = /*payMeth*/
|
|
216
|
+
t[47].DisplayCurrency.Name + "") && D(O, b), p[0] & /*$_*/
|
|
217
|
+
8192 && P !== (P = /*$_*/
|
|
218
|
+
t[13]("generalMax") + "") && D(B, P), p[0] & /*paymentMethodsToShow*/
|
|
219
|
+
256 && E !== (E = /*formatter*/
|
|
220
|
+
t[14].format(
|
|
221
|
+
/*payMeth*/
|
|
222
|
+
t[47].DisplayCurrency.MaxAmountLimit
|
|
223
|
+
) + "") && D(V, E), p[0] & /*paymentMethodsToShow*/
|
|
224
|
+
256 && I !== (I = /*payMeth*/
|
|
225
|
+
t[47].DisplayCurrency.Name + "") && D(q, I), p[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
|
|
226
|
+
320 && ce(
|
|
227
|
+
e,
|
|
228
|
+
"checked",
|
|
229
|
+
/*selectedPaymentMethod*/
|
|
230
|
+
t[6] === /*payMeth*/
|
|
231
|
+
t[47].Name
|
|
232
|
+
);
|
|
233
|
+
},
|
|
234
|
+
d(H) {
|
|
235
|
+
H && U(e), j = !1, Ue(Z);
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
function ge(t) {
|
|
240
|
+
let e, s, o, n;
|
|
241
|
+
return {
|
|
242
|
+
c() {
|
|
243
|
+
e = v("div"), s = x(
|
|
244
|
+
/*methodsButtonToggleText*/
|
|
245
|
+
t[7]
|
|
246
|
+
), f(e, "class", "ShowAllButton svelte-1p21ucr");
|
|
247
|
+
},
|
|
248
|
+
m(i, a) {
|
|
249
|
+
F(i, e, a), c(e, s), o || (n = te(
|
|
250
|
+
e,
|
|
251
|
+
"click",
|
|
252
|
+
/*click_handler_1*/
|
|
253
|
+
t[25]
|
|
254
|
+
), o = !0);
|
|
255
|
+
},
|
|
256
|
+
p(i, a) {
|
|
257
|
+
a[0] & /*methodsButtonToggleText*/
|
|
258
|
+
128 && D(
|
|
259
|
+
s,
|
|
260
|
+
/*methodsButtonToggleText*/
|
|
261
|
+
i[7]
|
|
262
|
+
);
|
|
263
|
+
},
|
|
264
|
+
d(i) {
|
|
265
|
+
i && U(e), o = !1, n();
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
function pe(t) {
|
|
270
|
+
let e, s, o;
|
|
271
|
+
return {
|
|
272
|
+
c() {
|
|
273
|
+
e = v("cashier-error"), s = v("span"), o = x(
|
|
274
|
+
/*errorMessage*/
|
|
275
|
+
t[10]
|
|
276
|
+
), f(s, "slot", "text"), f(s, "class", "svelte-1p21ucr"), h(
|
|
277
|
+
e,
|
|
278
|
+
"lang",
|
|
279
|
+
/*lang*/
|
|
280
|
+
t[0]
|
|
281
|
+
), h(
|
|
282
|
+
e,
|
|
283
|
+
"assetsurl",
|
|
284
|
+
/*assetsurl*/
|
|
285
|
+
t[1]
|
|
286
|
+
), h(
|
|
287
|
+
e,
|
|
288
|
+
"translationurl",
|
|
289
|
+
/*translationurl*/
|
|
290
|
+
t[2]
|
|
291
|
+
), h(
|
|
292
|
+
e,
|
|
293
|
+
"clientstylingurl",
|
|
294
|
+
/*clientstylingurl*/
|
|
295
|
+
t[4]
|
|
296
|
+
), h(
|
|
297
|
+
e,
|
|
298
|
+
"clientstyling",
|
|
299
|
+
/*clientstyling*/
|
|
300
|
+
t[3]
|
|
301
|
+
), h(e, "hidebuttons", "true"), h(e, "class", "svelte-1p21ucr");
|
|
302
|
+
},
|
|
303
|
+
m(n, i) {
|
|
304
|
+
F(n, e, i), c(e, s), c(s, o);
|
|
305
|
+
},
|
|
306
|
+
p(n, i) {
|
|
307
|
+
i[0] & /*errorMessage*/
|
|
308
|
+
1024 && D(
|
|
309
|
+
o,
|
|
310
|
+
/*errorMessage*/
|
|
311
|
+
n[10]
|
|
312
|
+
), i[0] & /*lang*/
|
|
313
|
+
1 && h(
|
|
314
|
+
e,
|
|
315
|
+
"lang",
|
|
316
|
+
/*lang*/
|
|
317
|
+
n[0]
|
|
318
|
+
), i[0] & /*assetsurl*/
|
|
319
|
+
2 && h(
|
|
320
|
+
e,
|
|
321
|
+
"assetsurl",
|
|
322
|
+
/*assetsurl*/
|
|
323
|
+
n[1]
|
|
324
|
+
), i[0] & /*translationurl*/
|
|
325
|
+
4 && h(
|
|
326
|
+
e,
|
|
327
|
+
"translationurl",
|
|
328
|
+
/*translationurl*/
|
|
329
|
+
n[2]
|
|
330
|
+
), i[0] & /*clientstylingurl*/
|
|
331
|
+
16 && h(
|
|
332
|
+
e,
|
|
333
|
+
"clientstylingurl",
|
|
334
|
+
/*clientstylingurl*/
|
|
335
|
+
n[4]
|
|
336
|
+
), i[0] & /*clientstyling*/
|
|
337
|
+
8 && h(
|
|
338
|
+
e,
|
|
339
|
+
"clientstyling",
|
|
340
|
+
/*clientstyling*/
|
|
341
|
+
n[3]
|
|
342
|
+
);
|
|
343
|
+
},
|
|
344
|
+
d(n) {
|
|
345
|
+
n && U(e);
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
function qe(t) {
|
|
350
|
+
let e, s, o, n = (
|
|
351
|
+
/*showSpinner*/
|
|
352
|
+
t[12] && de(t)
|
|
353
|
+
), i = (
|
|
354
|
+
/*showMethodsList*/
|
|
355
|
+
(t[9] || /*desktopView*/
|
|
356
|
+
t[11]) && he(t)
|
|
357
|
+
), a = (
|
|
358
|
+
/*errorMessage*/
|
|
359
|
+
t[10] && pe(t)
|
|
360
|
+
);
|
|
361
|
+
return {
|
|
362
|
+
c() {
|
|
363
|
+
n && n.c(), e = k(), i && i.c(), s = k(), a && a.c(), o = xe();
|
|
364
|
+
},
|
|
365
|
+
m(r, u) {
|
|
366
|
+
n && n.m(r, u), F(r, e, u), i && i.m(r, u), F(r, s, u), a && a.m(r, u), F(r, o, u);
|
|
367
|
+
},
|
|
368
|
+
p(r, u) {
|
|
369
|
+
/*showSpinner*/
|
|
370
|
+
r[12] ? n ? n.p(r, u) : (n = de(r), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*showMethodsList*/
|
|
371
|
+
r[9] || /*desktopView*/
|
|
372
|
+
r[11] ? i ? i.p(r, u) : (i = he(r), i.c(), i.m(s.parentNode, s)) : i && (i.d(1), i = null), /*errorMessage*/
|
|
373
|
+
r[10] ? a ? a.p(r, u) : (a = pe(r), a.c(), a.m(o.parentNode, o)) : a && (a.d(1), a = null);
|
|
374
|
+
},
|
|
375
|
+
i: ne,
|
|
376
|
+
o: ne,
|
|
377
|
+
d(r) {
|
|
378
|
+
r && (U(e), U(s), U(o)), n && n.d(r), i && i.d(r), a && a.d(r);
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
const Ge = () => {
|
|
383
|
+
};
|
|
384
|
+
function Ke(t, e, s) {
|
|
385
|
+
let o;
|
|
386
|
+
De(t, Be, (l) => s(13, o = l));
|
|
387
|
+
let { lang: n = "en" } = e, { local: i = "en-US" } = e, { endpoint: a } = e, { session: r } = e, { customerid: u } = e, { assetsurl: m } = e, { currency: C } = e, { numberofmethodsshown: S } = e, { translationurl: N = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: A = "" } = e, { ismobileview: z } = e, M = [], y, T, R = "", b = [], O = !0, K = new Intl.NumberFormat(i, { minimumFractionDigits: 2 }), _ = "", P, B = !0, J = !0;
|
|
388
|
+
var E;
|
|
389
|
+
(function(l) {
|
|
390
|
+
l.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", l.Success = "Success", l.JwtTokenError = "JwtTokenError";
|
|
391
|
+
})(E || (E = {})), ze(), Object.keys(ue).forEach((l) => {
|
|
392
|
+
Ie(l, ue[l]);
|
|
393
|
+
});
|
|
394
|
+
const V = () => {
|
|
395
|
+
Je(n);
|
|
396
|
+
}, X = () => {
|
|
397
|
+
const l = new URL(`${a}/v1/player/${u}/payment/GetPaymentMetadata`), g = new Headers();
|
|
398
|
+
g.append("accept", "application/json"), g.append("Content-Type", "application/json");
|
|
399
|
+
const W = {
|
|
400
|
+
method: "POST",
|
|
401
|
+
headers: g,
|
|
402
|
+
body: JSON.stringify({
|
|
403
|
+
XPaymentSessionToken: r,
|
|
404
|
+
Currency: C
|
|
405
|
+
})
|
|
406
|
+
};
|
|
407
|
+
fetch(l, W).then((d) => d.json()).then((d) => {
|
|
408
|
+
var Y;
|
|
409
|
+
if (d.error) {
|
|
410
|
+
s(10, _ = d.error);
|
|
411
|
+
return;
|
|
412
|
+
}
|
|
413
|
+
if (d.ResponseCode === E.PlayerSessionIsNotValid) {
|
|
414
|
+
P = d.ResponseCode, j();
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
if (d.ResponseCode === E.JwtTokenError) {
|
|
418
|
+
P = d.ResponseCode, j();
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
421
|
+
if (d.ResponseCode !== E.Success) {
|
|
422
|
+
P = d.ResponseCode, j();
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
M = (Y = d.PaymentMethods) != null && Y.Ordering ? I(d) : q(d), s(7, R = S && +S > 0 && M.length > +S ? o("showAll") : ""), s(8, b = R ? M.slice(0, +S) : M);
|
|
426
|
+
}).finally(() => s(12, J = !1));
|
|
427
|
+
}, I = (l) => {
|
|
428
|
+
const g = [];
|
|
429
|
+
return l.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((W) => {
|
|
430
|
+
const d = l.PaymentMethods.PaymentMethods.find((Y) => Y.Name === W);
|
|
431
|
+
d && g.push(ee($({}, d), {
|
|
432
|
+
LogoUrl: d.Logos && d.Logos.length && d.Logos[0].LogoUrl ? `https:${d.Logos[0].LogoUrl}` : ""
|
|
433
|
+
}));
|
|
434
|
+
}), g;
|
|
435
|
+
}, q = (l) => l.PaymentMethods.PaymentMethods.map((g) => ee($({}, g), {
|
|
436
|
+
LogoUrl: g.Logos && g.Logos.length && g.Logos[0].LogoUrl ? `https:${g.Logos[0].LogoUrl}` : ""
|
|
437
|
+
})), G = (l) => {
|
|
438
|
+
s(6, T = l.Name), dispatchEvent(new CustomEvent(
|
|
439
|
+
"selectPayMeth",
|
|
440
|
+
{
|
|
441
|
+
detail: l,
|
|
442
|
+
bubbles: !0,
|
|
443
|
+
cancelable: !0,
|
|
444
|
+
composed: !0
|
|
445
|
+
}
|
|
446
|
+
));
|
|
447
|
+
}, j = () => {
|
|
448
|
+
window.postMessage(
|
|
449
|
+
{
|
|
450
|
+
type: "ErrorResponseCode",
|
|
451
|
+
errorResponseCode: P
|
|
452
|
+
},
|
|
453
|
+
window.location.href
|
|
454
|
+
);
|
|
455
|
+
}, Z = () => {
|
|
456
|
+
s(11, B = z === "false");
|
|
457
|
+
}, Q = () => {
|
|
458
|
+
b == M ? p() : H();
|
|
459
|
+
}, H = () => {
|
|
460
|
+
s(8, b = M), s(7, R = o("showLess"));
|
|
461
|
+
}, p = () => {
|
|
462
|
+
s(8, b = M.slice(0, +S)), T && !b.find((l) => l.Name === T) && b.splice(0, 0, M.find((l) => l.Name === T)), s(7, R = o("showAll"));
|
|
463
|
+
}, se = () => {
|
|
464
|
+
s(9, O = !0);
|
|
465
|
+
}, le = (l) => {
|
|
466
|
+
s(9, O = !l.detail.hideMethodsList);
|
|
467
|
+
}, ve = () => {
|
|
468
|
+
let l = document.createElement("style");
|
|
469
|
+
l.innerHTML = w, y.appendChild(l);
|
|
470
|
+
}, we = () => {
|
|
471
|
+
let l = new URL(A), g = document.createElement("style");
|
|
472
|
+
fetch(l.href).then((W) => W.text()).then((W) => {
|
|
473
|
+
g.innerHTML = W, setTimeout(
|
|
474
|
+
() => {
|
|
475
|
+
y.appendChild(g);
|
|
476
|
+
},
|
|
477
|
+
1
|
|
478
|
+
), setTimeout(
|
|
479
|
+
() => {
|
|
480
|
+
},
|
|
481
|
+
500
|
|
482
|
+
);
|
|
483
|
+
});
|
|
484
|
+
};
|
|
485
|
+
Re(() => (window.addEventListener("backToMethodList", se, !1), window.addEventListener("hideMethodsList", le, !1), () => {
|
|
486
|
+
window.removeEventListener("backToMethodList", se), window.removeEventListener("paymentMethodLoaded", le);
|
|
487
|
+
}));
|
|
488
|
+
const ye = (l) => G(l), be = () => Q();
|
|
489
|
+
function Le(l) {
|
|
490
|
+
Oe[l ? "unshift" : "push"](() => {
|
|
491
|
+
y = l, s(5, y);
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
return t.$$set = (l) => {
|
|
495
|
+
"lang" in l && s(0, n = l.lang), "local" in l && s(17, i = l.local), "endpoint" in l && s(18, a = l.endpoint), "session" in l && s(19, r = l.session), "customerid" in l && s(20, u = l.customerid), "assetsurl" in l && s(1, m = l.assetsurl), "currency" in l && s(21, C = l.currency), "numberofmethodsshown" in l && s(22, S = l.numberofmethodsshown), "translationurl" in l && s(2, N = l.translationurl), "clientstyling" in l && s(3, w = l.clientstyling), "clientstylingurl" in l && s(4, A = l.clientstylingurl), "ismobileview" in l && s(23, z = l.ismobileview);
|
|
496
|
+
}, t.$$.update = () => {
|
|
497
|
+
t.$$.dirty[0] & /*endpoint, session, customerid*/
|
|
498
|
+
1835008 && a && r && u && X(), t.$$.dirty[0] & /*lang*/
|
|
499
|
+
1 && n && V(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
500
|
+
40 && w && y && ve(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
501
|
+
48 && A && y && we(), t.$$.dirty[0] & /*ismobileview*/
|
|
502
|
+
8388608 && z && Z();
|
|
503
|
+
}, [
|
|
504
|
+
n,
|
|
505
|
+
m,
|
|
506
|
+
N,
|
|
507
|
+
w,
|
|
508
|
+
A,
|
|
509
|
+
y,
|
|
510
|
+
T,
|
|
511
|
+
R,
|
|
512
|
+
b,
|
|
513
|
+
O,
|
|
514
|
+
_,
|
|
515
|
+
B,
|
|
516
|
+
J,
|
|
517
|
+
o,
|
|
518
|
+
K,
|
|
519
|
+
G,
|
|
520
|
+
Q,
|
|
521
|
+
i,
|
|
522
|
+
a,
|
|
523
|
+
r,
|
|
524
|
+
u,
|
|
525
|
+
C,
|
|
526
|
+
S,
|
|
527
|
+
z,
|
|
528
|
+
ye,
|
|
529
|
+
be,
|
|
530
|
+
Le
|
|
531
|
+
];
|
|
532
|
+
}
|
|
533
|
+
class Xe extends Ee {
|
|
534
|
+
constructor(e) {
|
|
535
|
+
super(), Ne(
|
|
536
|
+
this,
|
|
537
|
+
e,
|
|
538
|
+
Ke,
|
|
539
|
+
qe,
|
|
540
|
+
Te,
|
|
541
|
+
{
|
|
542
|
+
lang: 0,
|
|
543
|
+
local: 17,
|
|
544
|
+
endpoint: 18,
|
|
545
|
+
session: 19,
|
|
546
|
+
customerid: 20,
|
|
547
|
+
assetsurl: 1,
|
|
548
|
+
currency: 21,
|
|
549
|
+
numberofmethodsshown: 22,
|
|
550
|
+
translationurl: 2,
|
|
551
|
+
clientstyling: 3,
|
|
552
|
+
clientstylingurl: 4,
|
|
553
|
+
ismobileview: 23
|
|
554
|
+
},
|
|
555
|
+
Ve,
|
|
556
|
+
[-1, -1]
|
|
557
|
+
);
|
|
558
|
+
}
|
|
559
|
+
get lang() {
|
|
560
|
+
return this.$$.ctx[0];
|
|
561
|
+
}
|
|
562
|
+
set lang(e) {
|
|
563
|
+
this.$$set({ lang: e }), L();
|
|
564
|
+
}
|
|
565
|
+
get local() {
|
|
566
|
+
return this.$$.ctx[17];
|
|
567
|
+
}
|
|
568
|
+
set local(e) {
|
|
569
|
+
this.$$set({ local: e }), L();
|
|
570
|
+
}
|
|
571
|
+
get endpoint() {
|
|
572
|
+
return this.$$.ctx[18];
|
|
573
|
+
}
|
|
574
|
+
set endpoint(e) {
|
|
575
|
+
this.$$set({ endpoint: e }), L();
|
|
576
|
+
}
|
|
577
|
+
get session() {
|
|
578
|
+
return this.$$.ctx[19];
|
|
579
|
+
}
|
|
580
|
+
set session(e) {
|
|
581
|
+
this.$$set({ session: e }), L();
|
|
582
|
+
}
|
|
583
|
+
get customerid() {
|
|
584
|
+
return this.$$.ctx[20];
|
|
585
|
+
}
|
|
586
|
+
set customerid(e) {
|
|
587
|
+
this.$$set({ customerid: e }), L();
|
|
588
|
+
}
|
|
589
|
+
get assetsurl() {
|
|
590
|
+
return this.$$.ctx[1];
|
|
591
|
+
}
|
|
592
|
+
set assetsurl(e) {
|
|
593
|
+
this.$$set({ assetsurl: e }), L();
|
|
594
|
+
}
|
|
595
|
+
get currency() {
|
|
596
|
+
return this.$$.ctx[21];
|
|
597
|
+
}
|
|
598
|
+
set currency(e) {
|
|
599
|
+
this.$$set({ currency: e }), L();
|
|
600
|
+
}
|
|
601
|
+
get numberofmethodsshown() {
|
|
602
|
+
return this.$$.ctx[22];
|
|
603
|
+
}
|
|
604
|
+
set numberofmethodsshown(e) {
|
|
605
|
+
this.$$set({ numberofmethodsshown: e }), L();
|
|
606
|
+
}
|
|
607
|
+
get translationurl() {
|
|
608
|
+
return this.$$.ctx[2];
|
|
609
|
+
}
|
|
610
|
+
set translationurl(e) {
|
|
611
|
+
this.$$set({ translationurl: e }), L();
|
|
612
|
+
}
|
|
613
|
+
get clientstyling() {
|
|
614
|
+
return this.$$.ctx[3];
|
|
615
|
+
}
|
|
616
|
+
set clientstyling(e) {
|
|
617
|
+
this.$$set({ clientstyling: e }), L();
|
|
618
|
+
}
|
|
619
|
+
get clientstylingurl() {
|
|
620
|
+
return this.$$.ctx[4];
|
|
621
|
+
}
|
|
622
|
+
set clientstylingurl(e) {
|
|
623
|
+
this.$$set({ clientstylingurl: e }), L();
|
|
624
|
+
}
|
|
625
|
+
get ismobileview() {
|
|
626
|
+
return this.$$.ctx[23];
|
|
627
|
+
}
|
|
628
|
+
set ismobileview(e) {
|
|
629
|
+
this.$$set({ ismobileview: e }), L();
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
Ae(Xe, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
|
|
633
|
+
export {
|
|
634
|
+
Xe as default
|
|
635
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-CJUi-52c.cjs");function y(i,{delay:t=0,duration:n=400,easing:l=e.identity}={}){const o=+getComputedStyle(i).opacity;return{delay:t,duration:n,easing:l,css:r=>`opacity: ${r*o}`}}function E(i){e.append_styles(i,"svelte-u2fcen",".svelte-u2fcen.svelte-u2fcen,.svelte-u2fcen.svelte-u2fcen::before,.svelte-u2fcen.svelte-u2fcen::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow.svelte-u2fcen.svelte-u2fcen{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));container-type:inline-size;container-name:modal-window;border-radius:6px}.ModalWindow.svelte-u2fcen .ModalContainer.svelte-u2fcen{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);padding:var(--emw--spacing-large, 20px);width:40%}@container modal-window (max-width:750px){.ModalWindow.svelte-u2fcen .ModalContainer.svelte-u2fcen{width:90%}}")}function b(i){let t,n,l,o,r,u;const h=i[9].default,d=e.create_slot(h,i,i[8],null);return{c(){t=e.element("div"),n=e.element("div"),l=e.element("div"),d&&d.c(),e.attr(l,"class","ModalContainer svelte-u2fcen"),e.attr(l,"part","ModalContainer"),e.attr(n,"class","ModalWindow svelte-u2fcen"),e.attr(n,"part","ModalWindow"),e.attr(n,"id","Modal"),e.add_render_callback(()=>i[11].call(n)),e.attr(t,"part","CustomStylingContainer"),e.attr(t,"class","svelte-u2fcen")},m(a,c){e.insert(a,t,c),e.append(t,n),e.append(n,l),d&&d.m(l,null),i[10](n),o=e.add_iframe_resize_listener(n,i[11].bind(n)),i[12](t),u=!0},p(a,c){i=a,d&&d.p&&(!u||c&256)&&e.update_slot_base(d,h,i,i[8],u?e.get_slot_changes(h,i[8],c,null):e.get_all_dirty_from_scope(i[8]),null)},i(a){u||(e.transition_in(d,a),a&&e.add_render_callback(()=>{u&&(r||(r=e.create_bidirectional_transition(n,y,{transitionDuration:i[2]},!0)),r.run(1))}),u=!0)},o(a){e.transition_out(d,a),a&&(r||(r=e.create_bidirectional_transition(n,y,{transitionDuration:i[2]},!1)),r.run(0)),u=!1},d(a){a&&e.detach(t),d&&d.d(a),i[10](null),o(),a&&r&&r.end(),i[12](null)}}}function L(i){let t,n,l=i[5]&&b(i);return{c(){l&&l.c(),t=e.empty()},m(o,r){l&&l.m(o,r),e.insert(o,t,r),n=!0},p(o,[r]){o[5]?l?(l.p(o,r),r&32&&e.transition_in(l,1)):(l=b(o),l.c(),e.transition_in(l,1),l.m(t.parentNode,t)):l&&(e.group_outros(),e.transition_out(l,1,1,()=>{l=null}),e.check_outros())},i(o){n||(e.transition_in(l),n=!0)},o(o){e.transition_out(l),n=!1},d(o){o&&e.detach(t),l&&l.d(o)}}}function W(i,t,n){let{$$slots:l={},$$scope:o}=t,{clientstyling:r=""}=t,{clientstylingurl:u=""}=t,{duration:h="5ms"}=t,{width:d}=t,{height:a}=t,c,f,g=!1;const v=()=>{n(5,g=!1),window.postMessage({type:"ClosedCashierModal"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},m=s=>{s.data.type=="ShowCashierModal"&&(n(5,g=!0),window.postMessage({type:"DisableScroll"},window.location.href)),s.data.type=="HideCashierModal"&&v()},M=()=>{let s=document.createElement("style");s.innerHTML=r,f.appendChild(s)},C=()=>{let s=new URL(u),w=document.createElement("style");fetch(s.href).then(_=>_.text()).then(_=>{w.innerHTML=_,setTimeout(()=>{f.appendChild(w)},1)})};e.onMount(()=>(window.addEventListener("message",m,!1),()=>{window.removeEventListener("message",m)}));function k(s){e.binding_callbacks[s?"unshift":"push"](()=>{c=s,n(4,c)})}function S(){d=this.clientWidth,a=this.clientHeight,n(0,d),n(1,a)}function z(s){e.binding_callbacks[s?"unshift":"push"](()=>{f=s,n(3,f)})}return i.$$set=s=>{"clientstyling"in s&&n(6,r=s.clientstyling),"clientstylingurl"in s&&n(7,u=s.clientstylingurl),"duration"in s&&n(2,h=s.duration),"width"in s&&n(0,d=s.width),"height"in s&&n(1,a=s.height),"$$scope"in s&&n(8,o=s.$$scope)},i.$$.update=()=>{i.$$.dirty&72&&r&&f&&M(),i.$$.dirty&136&&u&&f&&C()},[d,a,h,f,c,g,r,u,o,l,k,S,z]}class p extends e.SvelteComponent{constructor(t){super(),e.init(this,t,W,L,e.safe_not_equal,{clientstyling:6,clientstylingurl:7,duration:2,width:0,height:1},E)}get clientstyling(){return this.$$.ctx[6]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get duration(){return this.$$.ctx[2]}set duration(t){this.$$set({duration:t}),e.flush()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),e.flush()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),e.flush()}}e.create_custom_element(p,{clientstyling:{},clientstylingurl:{},duration:{},width:{},height:{}},["default"],[],!0);exports.default=p;
|