@everymatrix/cashier-page 1.94.3 → 1.94.5
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/{CashierCarousel-Njl1VM8D.cjs → CashierCarousel-BzlDee2_.cjs} +1 -1
- package/components/{CashierCarousel-2Y_QFlk8.js → CashierCarousel-CTD4ADEl.js} +79 -79
- package/components/{CashierCarousel-LFH0uftr.js → CashierCarousel-D6SuMcQ1.js} +64 -64
- package/components/{CashierError-zaQMVBwa.cjs → CashierError-BjCp3qo9.cjs} +1 -1
- package/components/{CashierError-CmQqKE96.js → CashierError-C0W34998.js} +22 -22
- package/components/{CashierError-lww0Xhhd.js → CashierError-Dg834slb.js} +23 -23
- package/components/{CashierHeader-BRtZK3Yj.cjs → CashierHeader-DCoLHm99.cjs} +1 -1
- package/components/{CashierHeader-BXQCcYBU.js → CashierHeader-DafDx_3j.js} +37 -37
- package/components/{CashierHeader-CV1mrRsd.js → CashierHeader-YhgwXeCk.js} +37 -37
- package/components/{CashierIframeRedirect-Cp8i9DwX.js → CashierIframeRedirect-DWa2IM1a.js} +25 -25
- package/components/{CashierIframeRedirect-CYEQyHaS.cjs → CashierIframeRedirect-G0gXNho3.cjs} +1 -1
- package/components/{CashierIframeRedirect-D8w_XK4C.js → CashierIframeRedirect-M5hsugC-.js} +21 -21
- package/components/{CashierMethodDetails-xNqhPyCs.js → CashierMethodDetails-C9lU-1Od.js} +2932 -2897
- package/components/{CashierMethodDetails-D1X3MbmW.js → CashierMethodDetails-CXSI2Ftt.js} +3302 -3267
- package/components/CashierMethodDetails-DEXZTmb3.cjs +85 -0
- package/components/{CashierMethodsList-BOpP96gM.cjs → CashierMethodsList-B9M85ykR.cjs} +1 -1
- package/components/{CashierMethodsList-COnGq2tb.js → CashierMethodsList-D5gWM-5x.js} +69 -69
- package/components/{CashierMethodsList-Cj6o2dtI.js → CashierMethodsList-GlL1YNei.js} +40 -40
- package/components/{CashierModal--1fztdGJ.cjs → CashierModal-BJCRBXtp.cjs} +1 -1
- package/components/{CashierModal-DYVHfktP.js → CashierModal-BL_3_v5C.js} +43 -43
- package/components/{CashierModal-DANMfzKu.js → CashierModal-BxhVa9nJ.js} +35 -35
- package/components/{CashierNotifications-CHbG6OoC.cjs → CashierNotifications-B2_TxWSC.cjs} +1 -1
- package/components/{CashierNotifications-IhAYYFLY.js → CashierNotifications-D7pEjC9e.js} +31 -31
- package/components/{CashierNotifications-Yvo_vvrp.js → CashierNotifications-DumJSi6H.js} +31 -31
- package/components/{CashierPage-DY5ngRhg.js → CashierPage-CyVP1RTq.js} +1693 -1674
- package/components/CashierPage-DFc7t9CJ.cjs +23 -0
- package/components/{CashierPage-Bl4ava_U.js → CashierPage-Yklnwu-d.js} +1722 -1703
- package/components/{CashierReceiptPage-CYUSXFbL.js → CashierReceiptPage-Cz47umjb.js} +107 -107
- package/components/{CashierReceiptPage-DAfRN8k6.cjs → CashierReceiptPage-DQJUbtXP.cjs} +1 -1
- package/components/{CashierReceiptPage-BtK09hHe.js → CashierReceiptPage-DfwtOyaZ.js} +120 -120
- package/components/{CashierSessionExpirationModal-C5gv5Kex.js → CashierSessionExpirationModal-BfLsDfD2.js} +101 -101
- package/components/{CashierSessionExpirationModal-Cd-Gd4Ir.cjs → CashierSessionExpirationModal-dL2qXwnX.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-YLys2PDl.js → CashierSessionExpirationModal-h3rhYNkG.js} +126 -126
- package/components/{CashierSpinner-C_YWOPLu.js → CashierSpinner-BFMZw2tU.js} +6 -6
- package/components/{CashierSpinner-DEY3bxsG.js → CashierSpinner-D8ZX1N7Y.js} +10 -10
- package/components/{CashierSpinner-Bvspj0cH.cjs → CashierSpinner-DMQcCAuI.cjs} +1 -1
- package/components/{CashierStepUp-C-C7MzQF.js → CashierStepUp-CUavQfr0.js} +132 -132
- package/components/{CashierStepUp-OocwQDO8.js → CashierStepUp-Nzn5RFP5.js} +49 -49
- package/components/{CashierStepUp-4B7szI7i.cjs → CashierStepUp-W1nti85i.cjs} +1 -1
- package/components/{CashierTransactionHistory-uR3LgcWt.js → CashierTransactionHistory-ByF437F5.js} +110 -110
- package/components/{CashierTransactionHistory-Cpr3zr_V.cjs → CashierTransactionHistory-D0FU8jdE.cjs} +1 -1
- package/components/{CashierTransactionHistory-Cr0MttRX.js → CashierTransactionHistory-GtXsIggF.js} +110 -110
- package/components/{CashierVerifications-CZkslVbR.js → CashierVerifications-CuD13Li5.js} +60 -60
- package/components/{CashierVerifications-Ddf15TF_.cjs → CashierVerifications-Px7xstt-.cjs} +1 -1
- package/components/{CashierVerifications-k6yPLmW_.js → CashierVerifications-sG9Xn_xc.js} +43 -43
- package/components/{TxnStatusIcon-Dgm2t94G.js → TxnStatusIcon-B0-RrZPH.js} +28 -28
- package/components/{TxnStatusIcon-_lk_AnRy.cjs → TxnStatusIcon-D11UDQz5.cjs} +1 -1
- package/components/{TxnStatusIcon-Diii3Es2.js → TxnStatusIcon-DYgNkITO.js} +23 -23
- package/components/{TxnTypeIcons-BpmVN0J8.js → TxnTypeIcons-BnO0cks2.js} +1 -1
- package/components/{TxnTypeIcons-DXpOeTfk.js → TxnTypeIcons-DPmJegXP.js} +1 -1
- package/components/{TxnTypeIcons-CmilEOnE.cjs → TxnTypeIcons-DrCeFHOY.cjs} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierMethodDetails-BvSDCKZN.cjs +0 -85
- package/components/CashierPage-C7hbc8P5.cjs +0 -23
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Fe=Object.defineProperty,Oe=Object.defineProperties;var je=Object.getOwnPropertyDescriptors;var we=Object.getOwnPropertySymbols;var Re=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable;var _e=(n,t,s)=>t in n?Fe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[t]=s,pe=(n,t)=>{for(var s in t||(t={}))Re.call(t,s)&&_e(n,s,t[s]);if(we)for(var s of we(t))He.call(t,s)&&_e(n,s,t[s]);return n},fe=(n,t)=>Oe(n,je(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierPage-C7hbc8P5.cjs"),he=require("./CashierHeader-BRtZK3Yj.cjs");function Me(n,t){e.addMessages(n,t)}function Ie(n){e.init({fallbackLocale:"en"}),e.$locale.set(n)}const be={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS",error:"Error",noPaymentMethods:"No payment methods available",favorite:"Favorite",promoLabel:"Recommended",otherMethodsTitle:"All Methods",otherMethodsDescription:"Discover our incredible selection of unique products that you won't want to miss!"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER",error:"Hata",noPaymentMethods:"Hiçbir ödeme yöntemi mevcut değil",favorite:"Favori",promoLabel:"Favori",otherMethodsTitle:"Tüm Yöntemler",otherMethodsDescription:"Kaçırmak istemeyeceğiniz benzersiz ürünlerimizden oluşan inanılmaz seçkimizi keşfedin!"},fr:{generalMin:"Min",generalMax:"Max",showAll:"AFFICHER TOUT",showLess:"AFFICHER MOINS",error:"Erreur",noPaymentMethods:"Aucun moyen de paiement disponible",favorite:"Favori",promoLabel:"Recommandé",otherMethodsTitle:"Toutes les méthodes",otherMethodsDescription:"Découvrez notre incroyable sélection de produits uniques à ne pas manquer !"}};function Ue(n){e.append_styles(n,"svelte-njj9wo",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;max-width:100%;gap:5px;margin:10px}.SelectorWrapper{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;cursor:pointer;position:relative;box-sizing:border-box;padding:5px 0;border-radius:10px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);overflow:hidden;z-index:1;transition:transform 0.3s ease-in-out}.SelectorWrapper:hover{box-shadow:inset 0px 0px 7px var(--emw--color-primary);transform:scale(1.02)}.SelectorWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-white, #f5f5f5) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.2}.CashierMethodListWidget{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));height:100%;padding-bottom:20px}.MethodsListDescription{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));padding:10px}.MethodsListDescription h3{font-size:12px;text-transform:uppercase;margin:10px 0}.MethodsListDescription p{color:white;opacity:0.55;font-size:12px}.MethodLogo{margin:5px}.MethodLogo img{width:100%;height:100%;max-height:22px}.MethodPromoLabel{background:var(--emw--color-button-background, #f1f3ff);color:var(--emw--color-primary, #f9c405);font-size:14px;font-weight:700;text-transform:uppercase;padding:5px 10px;min-width:100px;border-radius:10px;margin:10px;text-align:center}.MethodInfo{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.MethodTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));margin:5px;word-break:break-word;font-weight:var(--emw--font-weight-bold, 700);line-height:10px}.MethodLimits{word-break:break-word;margin:5px}.Limits{max-width:100%;font-weight:var(--emw--font-weight-normal, 300);font-style:normal;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.7}.MethodFavorite{font-size:var(--emw--font-size-x-small, 8px);color:var(--emw--color-typography, #fff);background-color:var(--emw--color-red, red);border-radius:15px;margin:0 5px;line-height:10px;height:16px}.MethodFavorite p{padding:3px}.PaymentProcessing{padding:5px;color:var(--emw--color-primary, #ffce00);font-style:italic;font-size:var(--emw--font-size-small, 12px)}@media(min-width: 499px){.MethodLogo{margin:5px}.MethodLogo img{width:100%;height:100%;max-height:36px}.SelectorWrapper{padding:10px}.MethodTitle{font-size:var(--emw--font-size-medium, 12px)}.Limits{font-size:var(--emw--font-size-small, 10px)}}@media(max-width: 500px){.PaymentProcessing{font-size:var(--emw--font-size-x-small, 8px)}.MethodTitle{font-size:var(--emw--font-size-small, 10px)}.Limits{font-size:var(--emw--font-size-x-small, 8px)}}.EmptyContentMessageWrapper{position:relative;display:flex;justify-content:flex-end}.EmptyContentMessageContent{display:flex;flex-direction:column;row-gap:var(--emw--spacing-small, 12px);bottom:10%}.EmptyContentMessageImg{width:250px}.EmptyContentMessageImg img{border-radius:0 0 var(--emw--border-radius-medium-plus, 6px) 0;height:100%;width:100%}.EmptyContentMessageTitle{font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-bold, 800);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--emw--color-primary);text-transform:uppercase}.EmptyContentMessageText{word-break:break-word;font-size:var(--emw--font-size-small, 14px);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--emw--color-typography, #fff)}.EmptyContentMessageDesktop{justify-content:flex-start}.EmptyContentMessageDesktop .EmptyContentMessageContent{bottom:auto;margin-top:10px}.EmptyContentMessageDesktop .EmptyContentMessageImg{width:auto}.EmptyContentMessageDesktop .EmptyContentMessageImg img{transform:scaleX(-1)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--emw--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(--emw--color-grey-105, #e8e9eb);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}.ErrorMessage{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}')}function ve(n,t,s){const r=n.slice();return r[58]=t[s],r[60]=s,r}function Le(n){let t,s,r,o,l=!n[15]&&ke(n);function a(c,p){return c[15]&&c[14]?qe:We}let d=a(n),u=d(n),m=n[10]&&Se(n);return{c(){t=e.element("div"),l&&l.c(),s=e.space(),r=e.element("div"),u.c(),o=e.space(),m&&m.c(),e.attr(r,"class","CashierMethodList"),e.attr(t,"class","CashierMethodListWidget")},m(c,p){e.insert(c,t,p),l&&l.m(t,null),e.append(t,s),e.append(t,r),u.m(r,null),e.append(t,o),m&&m.m(t,null),n[34](t)},p(c,p){c[15]?l&&(l.d(1),l=null):l?l.p(c,p):(l=ke(c),l.c(),l.m(t,s)),d===(d=a(c))&&u?u.p(c,p):(u.d(1),u=d(c),u&&(u.c(),u.m(r,null))),c[10]?m?m.p(c,p):(m=Se(c),m.c(),m.m(t,null)):m&&(m.d(1),m=null)},d(c){c&&e.detach(t),l&&l.d(),u.d(),m&&m.d(),n[34](null)}}}function ke(n){let t,s,r=n[17]("otherMethodsTitle")+"",o,l,a,d=n[17]("otherMethodsDescription")+"",u;return{c(){t=e.element("div"),s=e.element("h3"),o=e.text(r),l=e.space(),a=e.element("p"),u=e.text(d),e.attr(t,"class","MethodsListDescription")},m(m,c){e.insert(m,t,c),e.append(t,s),e.append(s,o),e.append(t,l),e.append(t,a),e.append(a,u)},p(m,c){c[0]&131072&&r!==(r=m[17]("otherMethodsTitle")+"")&&e.set_data(o,r),c[0]&131072&&d!==(d=m[17]("otherMethodsDescription")+"")&&e.set_data(u,d)},d(m){m&&e.detach(t)}}}function We(n){let t,s=e.ensure_array_like(n[11]),r=[];for(let o=0;o<s.length;o+=1)r[o]=De(ve(n,s,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();t=e.empty()},m(o,l){for(let a=0;a<r.length;a+=1)r[a]&&r[a].m(o,l);e.insert(o,t,l)},p(o,l){if(l[0]&469824){s=e.ensure_array_like(o[11]);let a;for(a=0;a<s.length;a+=1){const d=ve(o,s,a);r[a]?r[a].p(d,l):(r[a]=De(d),r[a].c(),r[a].m(t.parentNode,t))}for(;a<r.length;a+=1)r[a].d(1);r.length=s.length}},d(o){o&&e.detach(t),e.destroy_each(r,o)}}}function qe(n){let t,s,r,o=n[17]("error")+"",l,a,d,u=n[17]("noPaymentMethods")+"",m;return{c(){t=e.element("div"),s=e.element("div"),r=e.element("p"),l=e.text(o),a=e.space(),d=e.element("p"),m=e.text(u),e.attr(r,"class","EmptyContentMessageTitle"),e.attr(d,"class","EmptyContentMessageText"),e.attr(s,"class","EmptyContentMessageContent"),e.attr(t,"class","EmptyContentMessageWrapper"),e.toggle_class(t,"EmptyContentMessageDesktop",n[13])},m(c,p){e.insert(c,t,p),e.append(t,s),e.append(s,r),e.append(r,l),e.append(s,a),e.append(s,d),e.append(d,m)},p(c,p){p[0]&131072&&o!==(o=c[17]("error")+"")&&e.set_data(l,o),p[0]&131072&&u!==(u=c[17]("noPaymentMethods")+"")&&e.set_data(m,u),p[0]&8192&&e.toggle_class(t,"EmptyContentMessageDesktop",c[13])},d(c){c&&e.detach(t)}}}function Ce(n){let t,s=n[17]("favorite")+"",r;return{c(){t=e.element("p"),r=e.text(s)},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&131072&&s!==(s=o[17]("favorite")+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function Pe(n){let t,s=n[17](`${n[6]}${n[58].ProcessingTime}`)+"",r;return{c(){t=e.element("span"),r=e.text(s),e.attr(t,"class","PaymentProcessing")},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&133184&&s!==(s=o[17](`${o[6]}${o[58].ProcessingTime}`)+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function Te(n){let t,s=n[17](`${n[6]}${n[58].ProcessingTime}`)+"",r;return{c(){t=e.element("span"),r=e.text(s),e.attr(t,"class","PaymentProcessing")},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&133184&&s!==(s=o[17](`${o[6]}${o[58].ProcessingTime}`)+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function De(n){var V,K,J,se,oe,re,ie,le;let t,s,r,o,l,a,d,u,m,c,p,H=(n[58].Label||n[58].Name)+"",I,T,A,E,P,D,x=n[17]("generalMin")+"",U,Y,F=e.formatCurrency(n[58].DisplayCurrency.MinAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(K=(V=n[58])==null?void 0:V.DisplayCurrency)==null?void 0:K.Name]||n[16],minimumFractionDigits:n[8][(se=(J=n[58])==null?void 0:J.DisplayCurrency)==null?void 0:se.Name]||n[16]})+"",X,O,N,W=n[17]("generalMax")+"",L,te,G=e.formatCurrency(n[58].DisplayCurrency.MaxAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(re=(oe=n[58])==null?void 0:oe.DisplayCurrency)==null?void 0:re.Name]||n[16],minimumFractionDigits:n[8][(le=(ie=n[58])==null?void 0:ie.DisplayCurrency)==null?void 0:le.Name]||n[16]})+"",k,j,R,b,q,y=n[58].isMethodPromoted&&Ce(n),w=!n[13]&&Pe(n),g=n[13]&&Te(n);function ne(){return n[32](n[58])}return{c(){t=e.element("div"),s=e.element("div"),r=e.element("img"),a=e.space(),d=e.element("div"),y&&y.c(),u=e.space(),m=e.element("div"),c=e.element("div"),p=e.element("span"),I=e.text(H),T=e.space(),w&&w.c(),A=e.space(),E=e.element("div"),P=e.element("span"),D=e.element("p"),U=e.text(x),Y=e.space(),X=e.text(F),O=e.space(),N=e.element("p"),L=e.text(W),te=e.space(),k=e.text(G),j=e.space(),g&&g.c(),R=e.space(),e.src_url_equal(r.src,o=n[58].LogoUrl)||e.attr(r,"src",o),e.attr(r,"alt",l=n[58].Label),e.attr(s,"class","MethodLogo"),e.attr(d,"class","MethodFavorite"),e.attr(c,"class","MethodTitle"),e.attr(P,"class","Limits"),e.attr(E,"class","MethodLimits"),e.attr(m,"class","MethodInfo"),e.attr(t,"class","SelectorWrapper"),e.toggle_class(t,"checked",n[9]===n[58].Name)},m(B,_){e.insert(B,t,_),e.append(t,s),e.append(s,r),e.append(t,a),e.append(t,d),y&&y.m(d,null),e.append(t,u),e.append(t,m),e.append(m,c),e.append(c,p),e.append(p,I),e.append(m,T),w&&w.m(m,null),e.append(m,A),e.append(m,E),e.append(E,P),e.append(P,D),e.append(D,U),e.append(D,Y),e.append(D,X),e.append(P,O),e.append(P,N),e.append(N,L),e.append(N,te),e.append(N,k),e.append(m,j),g&&g.m(m,null),e.append(t,R),b||(q=[e.listen(t,"click",ne),e.listen(t,"keyup",Xe)],b=!0)},p(B,_){var ae,me,Z,ce,de,Q,$,ue;n=B,_[0]&2048&&!e.src_url_equal(r.src,o=n[58].LogoUrl)&&e.attr(r,"src",o),_[0]&2048&&l!==(l=n[58].Label)&&e.attr(r,"alt",l),n[58].isMethodPromoted?y?y.p(n,_):(y=Ce(n),y.c(),y.m(d,null)):y&&(y.d(1),y=null),_[0]&2048&&H!==(H=(n[58].Label||n[58].Name)+"")&&e.set_data(I,H),n[13]?w&&(w.d(1),w=null):w?w.p(n,_):(w=Pe(n),w.c(),w.m(m,A)),_[0]&131072&&x!==(x=n[17]("generalMin")+"")&&e.set_data(U,x),_[0]&67840&&F!==(F=e.formatCurrency(n[58].DisplayCurrency.MinAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(me=(ae=n[58])==null?void 0:ae.DisplayCurrency)==null?void 0:me.Name]||n[16],minimumFractionDigits:n[8][(ce=(Z=n[58])==null?void 0:Z.DisplayCurrency)==null?void 0:ce.Name]||n[16]})+"")&&e.set_data(X,F),_[0]&131072&&W!==(W=n[17]("generalMax")+"")&&e.set_data(L,W),_[0]&67840&&G!==(G=e.formatCurrency(n[58].DisplayCurrency.MaxAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(Q=(de=n[58])==null?void 0:de.DisplayCurrency)==null?void 0:Q.Name]||n[16],minimumFractionDigits:n[8][(ue=($=n[58])==null?void 0:$.DisplayCurrency)==null?void 0:ue.Name]||n[16]})+"")&&e.set_data(k,G),n[13]?g?g.p(n,_):(g=Te(n),g.c(),g.m(m,null)):g&&(g.d(1),g=null),_[0]&2560&&e.toggle_class(t,"checked",n[9]===n[58].Name)},d(B){B&&e.detach(t),y&&y.d(),w&&w.d(),g&&g.d(),b=!1,e.run_all(q)}}}function Se(n){let t,s,r,o;return{c(){t=e.element("div"),s=e.text(n[10]),e.attr(t,"class","ShowAllButton")},m(l,a){e.insert(l,t,a),e.append(t,s),r||(o=e.listen(t,"click",n[33]),r=!0)},p(l,a){a[0]&1024&&e.set_data(s,l[10])},d(l){l&&e.detach(t),r=!1,o()}}}function Ee(n){let t,s,r;return{c(){t=e.element("cashier-error"),s=e.element("span"),r=e.text(n[12]),e.attr(s,"class","ErrorMessage"),e.attr(s,"slot","text"),e.set_custom_element_data(t,"lang",n[0]),e.set_custom_element_data(t,"assetsurl",n[1]),e.set_custom_element_data(t,"translationurl",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[5]),e.set_custom_element_data(t,"clientstyling",n[4]),e.set_custom_element_data(t,"mbsource",n[3]),e.set_custom_element_data(t,"hidebuttons","true")},m(o,l){e.insert(o,t,l),e.append(t,s),e.append(s,r)},p(o,l){l[0]&4096&&e.set_data(r,o[12]),l[0]&1&&e.set_custom_element_data(t,"lang",o[0]),l[0]&2&&e.set_custom_element_data(t,"assetsurl",o[1]),l[0]&4&&e.set_custom_element_data(t,"translationurl",o[2]),l[0]&32&&e.set_custom_element_data(t,"clientstylingurl",o[5]),l[0]&16&&e.set_custom_element_data(t,"clientstyling",o[4]),l[0]&8&&e.set_custom_element_data(t,"mbsource",o[3])},d(o){o&&e.detach(t)}}}function Be(n){let t,s,r=n[14]&&Le(n),o=n[12]&&Ee(n);return{c(){r&&r.c(),t=e.space(),o&&o.c(),s=e.empty()},m(l,a){r&&r.m(l,a),e.insert(l,t,a),o&&o.m(l,a),e.insert(l,s,a)},p(l,a){l[14]?r?r.p(l,a):(r=Le(l),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),l[12]?o?o.p(l,a):(o=Ee(l),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null)},i:e.noop,o:e.noop,d(l){l&&(e.detach(t),e.detach(s)),r&&r.d(l),o&&o.d(l)}}}const Ye="PaymentPromotion",Xe=()=>{};function Ge(n,t,s){let r,o,l;e.component_subscribe(n,e.$format,i=>s(17,o=i)),e.component_subscribe(n,e.xPaymentSessionToken,i=>s(42,l=i)),e.dayjs.extend(e.utc);let{lang:a="en"}=t,{local:d="en-US"}=t,{endpoint:u}=t,{paymentsession:m}=t,{playersession:c}=t,{customerid:p}=t,{assetsurl:H}=t,{currency:I}=t,{numberofmethodsshown:T}=t,{translationurl:A=""}=t,{mbsource:E}=t,{clientstyling:P}=t,{clientstylingurl:D}=t,{currencydecimals:x="0"}=t,{currencysymbol:U=""}=t,{currencyposition:Y=""}=t,{promotedmethods:F="false"}=t,{type:X}=t,{userroles:O=""}=t,N,W={},L,te,G=window.navigator.userAgent,k=[],j,R="",b=[],q=[],y="",w,g=!0,ne=!1,V=!1,K=[];var J;(function(i){i.PlayerSessionIsNotValid="PlayerSessionIsNotValid",i.Success="Success",i.JwtTokenError="JwtTokenError"})(J||(J={}));const se=()=>{let i=A;if(i)return fetch(i).then(f=>f.json()).then(f=>{Object.keys(f).forEach(S=>{Me(S,f[S])})}).catch(f=>{console.log(f)})};Object.keys(be).forEach(i=>{Me(i,be[i])});const oe=()=>{Ie(a)},re=i=>{l&&ie(i)},ie=i=>{const{currency:f}=i,h=N!==void 0&&N!==f?"MetadataLoading":"DataLoading";N=f,window.postMessage({type:h,isDataLoaded:!1},window.location.href);const M=new URL(`${u}/v2/player/${p}/payment/GetPaymentMetadata`),C=new Headers;C.append("accept","application/json"),C.append("Content-Type","application/json"),C.append("X-Client-Request-Timestamp",e.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS")),C.append("X-SessionId",`${c}`),C.append("X-Payment-Session-Token",`${m||l}`),K.indexOf("MM_CHANNEL_BETA")!=-1&&C.append("MM_CHANNEL","BETA");const z={method:"POST",headers:C,mode:"cors",body:JSON.stringify(fe(pe({},f&&{Currency:f}),{Tags:{UserAgent:window.navigator.userAgent}}))};fetch(M,z).then(v=>{const ee=v.headers.get("X-Payment-Session-Token");return ee&&e.xPaymentSessionToken.set(ee),v.json()}).then(v=>{var ee;if(v.error){s(12,y=v.error);return}if(v.ResponseCode!==J.Success){w=v.ResponseCode,ae();return}k=(ee=v.PaymentMethods)!=null&&ee.Ordering?le(v):B(v),window.postMessage({type:"PromotedPaymentMethods",promotedPaymentMethods:q},window.location.href),s(10,R=T&&+T>0&&k.length>+T?o("showAll"):""),s(11,b=R?k.slice(0,+T):k),F=="false"&&s(11,b=b.sort((ge,ye)=>ge.isMethodPromoted&&!ye.isMethodPromoted?-1:!ge.isMethodPromoted&&ye.isMethodPromoted?1:0)),s(15,V=!b.length),window.postMessage({type:"StartSessionCountdown",paymentMethodName:k[0].Name},window.location.href),window.postMessage({type:h,isDataLoaded:!0},window.location.href)}).finally(()=>{s(14,ne=!0),window.postMessage({type:h,isDataLoaded:!0},window.location.href)})},le=i=>{const f=[];return q=[],i.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(S=>{const h=i.PaymentMethods.PaymentMethods.find(M=>M.Name===S);if(h){const M=(h==null?void 0:h.Logos.find(v=>v.LogoType==="Desktop"))||{},C=(h==null?void 0:h.Logos.find(v=>v.LogoType==="Mobile"))||{},z=g?M:C;h.isMethodPromoted=Q(h.Tags),h.LogoUrl=z.LogoUrl?`https:${z.LogoUrl}`:"",h.isMethodPromoted&&q.push(h),f.push(h)}}),f},B=i=>{const f=i.PaymentMethods.PaymentMethods.map(M=>fe(pe({},M),{isMethodPromoted:Q(M.Tags),LogoUrl:M.Logos&&M.Logos.length&&M.Logos[0].LogoUrl?`https:${M.Logos[0].LogoUrl}`:""})),[S,h]=f.reduce(([M,C],z)=>(z&&z.isMethodPromoted?M.push(z):C.promo(z),[M,C]),[[],[]]);return q=S,h},_=i=>{s(9,j=i.Name),window.postMessage({type:"SelectPayMeth",details:i},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:i,bubbles:!0,cancelable:!0,composed:!0}))},ae=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:w},window.location.href)},me=()=>{s(13,g=!e.isMobile(G))},Z=()=>{b==k?de():ce()},ce=()=>{s(11,b=k),s(10,R=o("showLess"))},de=()=>{s(11,b=k.slice(0,+T)),j&&!b.find(i=>i.Name===j)&&b.splice(0,0,k.find(i=>i.Name===j)),s(10,R=o("showAll"))},Q=i=>i&&i.split(",").some(f=>f===Ye),$=i=>{var S;const{data:{type:f}={}}=i||{};switch(f){case"PrecisionCurrenciesMap":{s(8,W=((S=i==null?void 0:i.data)==null?void 0:S.payload)||{});break}}},ue=()=>{O.length>0&&(K=O.split(","))};e.onMount(()=>(me(),e.initCurrencyFormatter(d,U,Y,x),window.postMessage({type:"CashierMethodsListReady"},window.location.href),window.addEventListener("message",$),()=>{window.removeEventListener("message",$)}));const Ne=i=>_(i),ze=()=>Z();function Ae(i){e.binding_callbacks[i?"unshift":"push"](()=>{L=i,s(7,L)})}return n.$$set=i=>{"lang"in i&&s(0,a=i.lang),"local"in i&&s(20,d=i.local),"endpoint"in i&&s(21,u=i.endpoint),"paymentsession"in i&&s(22,m=i.paymentsession),"playersession"in i&&s(23,c=i.playersession),"customerid"in i&&s(24,p=i.customerid),"assetsurl"in i&&s(1,H=i.assetsurl),"currency"in i&&s(25,I=i.currency),"numberofmethodsshown"in i&&s(26,T=i.numberofmethodsshown),"translationurl"in i&&s(2,A=i.translationurl),"mbsource"in i&&s(3,E=i.mbsource),"clientstyling"in i&&s(4,P=i.clientstyling),"clientstylingurl"in i&&s(5,D=i.clientstylingurl),"currencydecimals"in i&&s(27,x=i.currencydecimals),"currencysymbol"in i&&s(28,U=i.currencysymbol),"currencyposition"in i&&s(29,Y=i.currencyposition),"promotedmethods"in i&&s(30,F=i.promotedmethods),"type"in i&&s(6,X=i.type),"userroles"in i&&s(31,O=i.userroles)},n.$$.update=()=>{n.$$.dirty[1]&1&&O&&ue(),n.$$.dirty[0]&56623104&&u&&!m&&p&&re({currency:I}),n.$$.dirty[0]&1&&a&&oe(),n.$$.dirty[0]&144&&P&&L&&he.setClientStyling(L,P),n.$$.dirty[0]&160&&D&&L&&he.setClientStylingURL(L,D),n.$$.dirty[0]&136&&E&&L&&he.setStreamStyling(L,`${E}.Style`,te),n.$$.dirty[0]&5&&a&&A&&se(),n.$$.dirty[0]&134217728&&s(16,r=Number(x))},[a,H,A,E,P,D,X,L,W,j,R,b,y,g,ne,V,r,o,_,Z,d,u,m,c,p,I,T,x,U,Y,F,O,Ne,ze,Ae]}class xe extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,Ge,Be,e.safe_not_equal,{lang:0,local:20,endpoint:21,paymentsession:22,playersession:23,customerid:24,assetsurl:1,currency:25,numberofmethodsshown:26,translationurl:2,mbsource:3,clientstyling:4,clientstylingurl:5,currencydecimals:27,currencysymbol:28,currencyposition:29,promotedmethods:30,type:6,userroles:31},Ue,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get local(){return this.$$.ctx[20]}set local(t){this.$$set({local:t}),e.flush()}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get paymentsession(){return this.$$.ctx[22]}set paymentsession(t){this.$$set({paymentsession:t}),e.flush()}get playersession(){return this.$$.ctx[23]}set playersession(t){this.$$set({playersession:t}),e.flush()}get customerid(){return this.$$.ctx[24]}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[25]}set currency(t){this.$$set({currency:t}),e.flush()}get numberofmethodsshown(){return this.$$.ctx[26]}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 mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get currencydecimals(){return this.$$.ctx[27]}set currencydecimals(t){this.$$set({currencydecimals:t}),e.flush()}get currencysymbol(){return this.$$.ctx[28]}set currencysymbol(t){this.$$set({currencysymbol:t}),e.flush()}get currencyposition(){return this.$$.ctx[29]}set currencyposition(t){this.$$set({currencyposition:t}),e.flush()}get promotedmethods(){return this.$$.ctx[30]}set promotedmethods(t){this.$$set({promotedmethods:t}),e.flush()}get type(){return this.$$.ctx[6]}set type(t){this.$$set({type:t}),e.flush()}get userroles(){return this.$$.ctx[31]}set userroles(t){this.$$set({userroles:t}),e.flush()}}e.create_custom_element(xe,{lang:{},local:{},endpoint:{},paymentsession:{},playersession:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},mbsource:{},clientstyling:{},clientstylingurl:{},currencydecimals:{},currencysymbol:{},currencyposition:{},promotedmethods:{},type:{},userroles:{}},[],[],!0);exports.default=xe;
|
|
1
|
+
"use strict";var Fe=Object.defineProperty,Oe=Object.defineProperties;var je=Object.getOwnPropertyDescriptors;var we=Object.getOwnPropertySymbols;var Re=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable;var _e=(n,t,s)=>t in n?Fe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[t]=s,pe=(n,t)=>{for(var s in t||(t={}))Re.call(t,s)&&_e(n,s,t[s]);if(we)for(var s of we(t))He.call(t,s)&&_e(n,s,t[s]);return n},fe=(n,t)=>Oe(n,je(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierPage-DFc7t9CJ.cjs"),he=require("./CashierHeader-DCoLHm99.cjs");function Me(n,t){e.addMessages(n,t)}function Ie(n){e.init({fallbackLocale:"en"}),e.$locale.set(n)}const be={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS",error:"Error",noPaymentMethods:"No payment methods available",favorite:"Favorite",promoLabel:"Recommended",otherMethodsTitle:"All Methods",otherMethodsDescription:"Discover our incredible selection of unique products that you won't want to miss!"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER",error:"Hata",noPaymentMethods:"Hiçbir ödeme yöntemi mevcut değil",favorite:"Favori",promoLabel:"Favori",otherMethodsTitle:"Tüm Yöntemler",otherMethodsDescription:"Kaçırmak istemeyeceğiniz benzersiz ürünlerimizden oluşan inanılmaz seçkimizi keşfedin!"},fr:{generalMin:"Min",generalMax:"Max",showAll:"AFFICHER TOUT",showLess:"AFFICHER MOINS",error:"Erreur",noPaymentMethods:"Aucun moyen de paiement disponible",favorite:"Favori",promoLabel:"Recommandé",otherMethodsTitle:"Toutes les méthodes",otherMethodsDescription:"Découvrez notre incroyable sélection de produits uniques à ne pas manquer !"}};function Ue(n){e.append_styles(n,"svelte-njj9wo",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;max-width:100%;gap:5px;margin:10px}.SelectorWrapper{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;cursor:pointer;position:relative;box-sizing:border-box;padding:5px 0;border-radius:10px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);overflow:hidden;z-index:1;transition:transform 0.3s ease-in-out}.SelectorWrapper:hover{box-shadow:inset 0px 0px 7px var(--emw--color-primary);transform:scale(1.02)}.SelectorWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-white, #f5f5f5) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.2}.CashierMethodListWidget{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));height:100%;padding-bottom:20px}.MethodsListDescription{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));padding:10px}.MethodsListDescription h3{font-size:12px;text-transform:uppercase;margin:10px 0}.MethodsListDescription p{color:white;opacity:0.55;font-size:12px}.MethodLogo{margin:5px}.MethodLogo img{width:100%;height:100%;max-height:22px}.MethodPromoLabel{background:var(--emw--color-button-background, #f1f3ff);color:var(--emw--color-primary, #f9c405);font-size:14px;font-weight:700;text-transform:uppercase;padding:5px 10px;min-width:100px;border-radius:10px;margin:10px;text-align:center}.MethodInfo{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.MethodTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));margin:5px;word-break:break-word;font-weight:var(--emw--font-weight-bold, 700);line-height:10px}.MethodLimits{word-break:break-word;margin:5px}.Limits{max-width:100%;font-weight:var(--emw--font-weight-normal, 300);font-style:normal;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.7}.MethodFavorite{font-size:var(--emw--font-size-x-small, 8px);color:var(--emw--color-typography, #fff);background-color:var(--emw--color-red, red);border-radius:15px;margin:0 5px;line-height:10px;height:16px}.MethodFavorite p{padding:3px}.PaymentProcessing{padding:5px;color:var(--emw--color-primary, #ffce00);font-style:italic;font-size:var(--emw--font-size-small, 12px)}@media(min-width: 499px){.MethodLogo{margin:5px}.MethodLogo img{width:100%;height:100%;max-height:36px}.SelectorWrapper{padding:10px}.MethodTitle{font-size:var(--emw--font-size-medium, 12px)}.Limits{font-size:var(--emw--font-size-small, 10px)}}@media(max-width: 500px){.PaymentProcessing{font-size:var(--emw--font-size-x-small, 8px)}.MethodTitle{font-size:var(--emw--font-size-small, 10px)}.Limits{font-size:var(--emw--font-size-x-small, 8px)}}.EmptyContentMessageWrapper{position:relative;display:flex;justify-content:flex-end}.EmptyContentMessageContent{display:flex;flex-direction:column;row-gap:var(--emw--spacing-small, 12px);bottom:10%}.EmptyContentMessageImg{width:250px}.EmptyContentMessageImg img{border-radius:0 0 var(--emw--border-radius-medium-plus, 6px) 0;height:100%;width:100%}.EmptyContentMessageTitle{font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-bold, 800);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--emw--color-primary);text-transform:uppercase}.EmptyContentMessageText{word-break:break-word;font-size:var(--emw--font-size-small, 14px);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--emw--color-typography, #fff)}.EmptyContentMessageDesktop{justify-content:flex-start}.EmptyContentMessageDesktop .EmptyContentMessageContent{bottom:auto;margin-top:10px}.EmptyContentMessageDesktop .EmptyContentMessageImg{width:auto}.EmptyContentMessageDesktop .EmptyContentMessageImg img{transform:scaleX(-1)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--emw--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(--emw--color-grey-105, #e8e9eb);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}.ErrorMessage{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}')}function ve(n,t,s){const r=n.slice();return r[58]=t[s],r[60]=s,r}function Le(n){let t,s,r,o,l=!n[15]&&ke(n);function a(c,p){return c[15]&&c[14]?qe:We}let d=a(n),u=d(n),m=n[10]&&Se(n);return{c(){t=e.element("div"),l&&l.c(),s=e.space(),r=e.element("div"),u.c(),o=e.space(),m&&m.c(),e.attr(r,"class","CashierMethodList"),e.attr(t,"class","CashierMethodListWidget")},m(c,p){e.insert(c,t,p),l&&l.m(t,null),e.append(t,s),e.append(t,r),u.m(r,null),e.append(t,o),m&&m.m(t,null),n[34](t)},p(c,p){c[15]?l&&(l.d(1),l=null):l?l.p(c,p):(l=ke(c),l.c(),l.m(t,s)),d===(d=a(c))&&u?u.p(c,p):(u.d(1),u=d(c),u&&(u.c(),u.m(r,null))),c[10]?m?m.p(c,p):(m=Se(c),m.c(),m.m(t,null)):m&&(m.d(1),m=null)},d(c){c&&e.detach(t),l&&l.d(),u.d(),m&&m.d(),n[34](null)}}}function ke(n){let t,s,r=n[17]("otherMethodsTitle")+"",o,l,a,d=n[17]("otherMethodsDescription")+"",u;return{c(){t=e.element("div"),s=e.element("h3"),o=e.text(r),l=e.space(),a=e.element("p"),u=e.text(d),e.attr(t,"class","MethodsListDescription")},m(m,c){e.insert(m,t,c),e.append(t,s),e.append(s,o),e.append(t,l),e.append(t,a),e.append(a,u)},p(m,c){c[0]&131072&&r!==(r=m[17]("otherMethodsTitle")+"")&&e.set_data(o,r),c[0]&131072&&d!==(d=m[17]("otherMethodsDescription")+"")&&e.set_data(u,d)},d(m){m&&e.detach(t)}}}function We(n){let t,s=e.ensure_array_like(n[11]),r=[];for(let o=0;o<s.length;o+=1)r[o]=De(ve(n,s,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();t=e.empty()},m(o,l){for(let a=0;a<r.length;a+=1)r[a]&&r[a].m(o,l);e.insert(o,t,l)},p(o,l){if(l[0]&469824){s=e.ensure_array_like(o[11]);let a;for(a=0;a<s.length;a+=1){const d=ve(o,s,a);r[a]?r[a].p(d,l):(r[a]=De(d),r[a].c(),r[a].m(t.parentNode,t))}for(;a<r.length;a+=1)r[a].d(1);r.length=s.length}},d(o){o&&e.detach(t),e.destroy_each(r,o)}}}function qe(n){let t,s,r,o=n[17]("error")+"",l,a,d,u=n[17]("noPaymentMethods")+"",m;return{c(){t=e.element("div"),s=e.element("div"),r=e.element("p"),l=e.text(o),a=e.space(),d=e.element("p"),m=e.text(u),e.attr(r,"class","EmptyContentMessageTitle"),e.attr(d,"class","EmptyContentMessageText"),e.attr(s,"class","EmptyContentMessageContent"),e.attr(t,"class","EmptyContentMessageWrapper"),e.toggle_class(t,"EmptyContentMessageDesktop",n[13])},m(c,p){e.insert(c,t,p),e.append(t,s),e.append(s,r),e.append(r,l),e.append(s,a),e.append(s,d),e.append(d,m)},p(c,p){p[0]&131072&&o!==(o=c[17]("error")+"")&&e.set_data(l,o),p[0]&131072&&u!==(u=c[17]("noPaymentMethods")+"")&&e.set_data(m,u),p[0]&8192&&e.toggle_class(t,"EmptyContentMessageDesktop",c[13])},d(c){c&&e.detach(t)}}}function Ce(n){let t,s=n[17]("favorite")+"",r;return{c(){t=e.element("p"),r=e.text(s)},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&131072&&s!==(s=o[17]("favorite")+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function Pe(n){let t,s=n[17](`${n[6]}${n[58].ProcessingTime}`)+"",r;return{c(){t=e.element("span"),r=e.text(s),e.attr(t,"class","PaymentProcessing")},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&133184&&s!==(s=o[17](`${o[6]}${o[58].ProcessingTime}`)+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function Te(n){let t,s=n[17](`${n[6]}${n[58].ProcessingTime}`)+"",r;return{c(){t=e.element("span"),r=e.text(s),e.attr(t,"class","PaymentProcessing")},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&133184&&s!==(s=o[17](`${o[6]}${o[58].ProcessingTime}`)+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function De(n){var V,K,J,se,oe,re,ie,le;let t,s,r,o,l,a,d,u,m,c,p,H=(n[58].Label||n[58].Name)+"",I,T,A,E,P,D,x=n[17]("generalMin")+"",U,Y,F=e.formatCurrency(n[58].DisplayCurrency.MinAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(K=(V=n[58])==null?void 0:V.DisplayCurrency)==null?void 0:K.Name]||n[16],minimumFractionDigits:n[8][(se=(J=n[58])==null?void 0:J.DisplayCurrency)==null?void 0:se.Name]||n[16]})+"",X,O,N,W=n[17]("generalMax")+"",L,te,G=e.formatCurrency(n[58].DisplayCurrency.MaxAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(re=(oe=n[58])==null?void 0:oe.DisplayCurrency)==null?void 0:re.Name]||n[16],minimumFractionDigits:n[8][(le=(ie=n[58])==null?void 0:ie.DisplayCurrency)==null?void 0:le.Name]||n[16]})+"",k,j,R,b,q,y=n[58].isMethodPromoted&&Ce(n),w=!n[13]&&Pe(n),g=n[13]&&Te(n);function ne(){return n[32](n[58])}return{c(){t=e.element("div"),s=e.element("div"),r=e.element("img"),a=e.space(),d=e.element("div"),y&&y.c(),u=e.space(),m=e.element("div"),c=e.element("div"),p=e.element("span"),I=e.text(H),T=e.space(),w&&w.c(),A=e.space(),E=e.element("div"),P=e.element("span"),D=e.element("p"),U=e.text(x),Y=e.space(),X=e.text(F),O=e.space(),N=e.element("p"),L=e.text(W),te=e.space(),k=e.text(G),j=e.space(),g&&g.c(),R=e.space(),e.src_url_equal(r.src,o=n[58].LogoUrl)||e.attr(r,"src",o),e.attr(r,"alt",l=n[58].Label),e.attr(s,"class","MethodLogo"),e.attr(d,"class","MethodFavorite"),e.attr(c,"class","MethodTitle"),e.attr(P,"class","Limits"),e.attr(E,"class","MethodLimits"),e.attr(m,"class","MethodInfo"),e.attr(t,"class","SelectorWrapper"),e.toggle_class(t,"checked",n[9]===n[58].Name)},m(B,_){e.insert(B,t,_),e.append(t,s),e.append(s,r),e.append(t,a),e.append(t,d),y&&y.m(d,null),e.append(t,u),e.append(t,m),e.append(m,c),e.append(c,p),e.append(p,I),e.append(m,T),w&&w.m(m,null),e.append(m,A),e.append(m,E),e.append(E,P),e.append(P,D),e.append(D,U),e.append(D,Y),e.append(D,X),e.append(P,O),e.append(P,N),e.append(N,L),e.append(N,te),e.append(N,k),e.append(m,j),g&&g.m(m,null),e.append(t,R),b||(q=[e.listen(t,"click",ne),e.listen(t,"keyup",Xe)],b=!0)},p(B,_){var ae,me,Z,ce,de,Q,$,ue;n=B,_[0]&2048&&!e.src_url_equal(r.src,o=n[58].LogoUrl)&&e.attr(r,"src",o),_[0]&2048&&l!==(l=n[58].Label)&&e.attr(r,"alt",l),n[58].isMethodPromoted?y?y.p(n,_):(y=Ce(n),y.c(),y.m(d,null)):y&&(y.d(1),y=null),_[0]&2048&&H!==(H=(n[58].Label||n[58].Name)+"")&&e.set_data(I,H),n[13]?w&&(w.d(1),w=null):w?w.p(n,_):(w=Pe(n),w.c(),w.m(m,A)),_[0]&131072&&x!==(x=n[17]("generalMin")+"")&&e.set_data(U,x),_[0]&67840&&F!==(F=e.formatCurrency(n[58].DisplayCurrency.MinAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(me=(ae=n[58])==null?void 0:ae.DisplayCurrency)==null?void 0:me.Name]||n[16],minimumFractionDigits:n[8][(ce=(Z=n[58])==null?void 0:Z.DisplayCurrency)==null?void 0:ce.Name]||n[16]})+"")&&e.set_data(X,F),_[0]&131072&&W!==(W=n[17]("generalMax")+"")&&e.set_data(L,W),_[0]&67840&&G!==(G=e.formatCurrency(n[58].DisplayCurrency.MaxAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(Q=(de=n[58])==null?void 0:de.DisplayCurrency)==null?void 0:Q.Name]||n[16],minimumFractionDigits:n[8][(ue=($=n[58])==null?void 0:$.DisplayCurrency)==null?void 0:ue.Name]||n[16]})+"")&&e.set_data(k,G),n[13]?g?g.p(n,_):(g=Te(n),g.c(),g.m(m,null)):g&&(g.d(1),g=null),_[0]&2560&&e.toggle_class(t,"checked",n[9]===n[58].Name)},d(B){B&&e.detach(t),y&&y.d(),w&&w.d(),g&&g.d(),b=!1,e.run_all(q)}}}function Se(n){let t,s,r,o;return{c(){t=e.element("div"),s=e.text(n[10]),e.attr(t,"class","ShowAllButton")},m(l,a){e.insert(l,t,a),e.append(t,s),r||(o=e.listen(t,"click",n[33]),r=!0)},p(l,a){a[0]&1024&&e.set_data(s,l[10])},d(l){l&&e.detach(t),r=!1,o()}}}function Ee(n){let t,s,r;return{c(){t=e.element("cashier-error"),s=e.element("span"),r=e.text(n[12]),e.attr(s,"class","ErrorMessage"),e.attr(s,"slot","text"),e.set_custom_element_data(t,"lang",n[0]),e.set_custom_element_data(t,"assetsurl",n[1]),e.set_custom_element_data(t,"translationurl",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[5]),e.set_custom_element_data(t,"clientstyling",n[4]),e.set_custom_element_data(t,"mbsource",n[3]),e.set_custom_element_data(t,"hidebuttons","true")},m(o,l){e.insert(o,t,l),e.append(t,s),e.append(s,r)},p(o,l){l[0]&4096&&e.set_data(r,o[12]),l[0]&1&&e.set_custom_element_data(t,"lang",o[0]),l[0]&2&&e.set_custom_element_data(t,"assetsurl",o[1]),l[0]&4&&e.set_custom_element_data(t,"translationurl",o[2]),l[0]&32&&e.set_custom_element_data(t,"clientstylingurl",o[5]),l[0]&16&&e.set_custom_element_data(t,"clientstyling",o[4]),l[0]&8&&e.set_custom_element_data(t,"mbsource",o[3])},d(o){o&&e.detach(t)}}}function Be(n){let t,s,r=n[14]&&Le(n),o=n[12]&&Ee(n);return{c(){r&&r.c(),t=e.space(),o&&o.c(),s=e.empty()},m(l,a){r&&r.m(l,a),e.insert(l,t,a),o&&o.m(l,a),e.insert(l,s,a)},p(l,a){l[14]?r?r.p(l,a):(r=Le(l),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),l[12]?o?o.p(l,a):(o=Ee(l),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null)},i:e.noop,o:e.noop,d(l){l&&(e.detach(t),e.detach(s)),r&&r.d(l),o&&o.d(l)}}}const Ye="PaymentPromotion",Xe=()=>{};function Ge(n,t,s){let r,o,l;e.component_subscribe(n,e.$format,i=>s(17,o=i)),e.component_subscribe(n,e.xPaymentSessionToken,i=>s(42,l=i)),e.dayjs.extend(e.utc);let{lang:a="en"}=t,{local:d="en-US"}=t,{endpoint:u}=t,{paymentsession:m}=t,{playersession:c}=t,{customerid:p}=t,{assetsurl:H}=t,{currency:I}=t,{numberofmethodsshown:T}=t,{translationurl:A=""}=t,{mbsource:E}=t,{clientstyling:P}=t,{clientstylingurl:D}=t,{currencydecimals:x="0"}=t,{currencysymbol:U=""}=t,{currencyposition:Y=""}=t,{promotedmethods:F="false"}=t,{type:X}=t,{userroles:O=""}=t,N,W={},L,te,G=window.navigator.userAgent,k=[],j,R="",b=[],q=[],y="",w,g=!0,ne=!1,V=!1,K=[];var J;(function(i){i.PlayerSessionIsNotValid="PlayerSessionIsNotValid",i.Success="Success",i.JwtTokenError="JwtTokenError"})(J||(J={}));const se=()=>{let i=A;if(i)return fetch(i).then(f=>f.json()).then(f=>{Object.keys(f).forEach(S=>{Me(S,f[S])})}).catch(f=>{console.log(f)})};Object.keys(be).forEach(i=>{Me(i,be[i])});const oe=()=>{Ie(a)},re=i=>{l&&ie(i)},ie=i=>{const{currency:f}=i,h=N!==void 0&&N!==f?"MetadataLoading":"DataLoading";N=f,window.postMessage({type:h,isDataLoaded:!1},window.location.href);const M=new URL(`${u}/v2/player/${p}/payment/GetPaymentMetadata`),C=new Headers;C.append("accept","application/json"),C.append("Content-Type","application/json"),C.append("X-Client-Request-Timestamp",e.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS")),C.append("X-SessionId",`${c}`),C.append("X-Payment-Session-Token",`${m||l}`),K.indexOf("MM_CHANNEL_BETA")!=-1&&C.append("MM_CHANNEL","BETA");const z={method:"POST",headers:C,mode:"cors",body:JSON.stringify(fe(pe({},f&&{Currency:f}),{Tags:{UserAgent:window.navigator.userAgent}}))};fetch(M,z).then(v=>{const ee=v.headers.get("X-Payment-Session-Token");return ee&&e.xPaymentSessionToken.set(ee),v.json()}).then(v=>{var ee;if(v.error){s(12,y=v.error);return}if(v.ResponseCode!==J.Success){w=v.ResponseCode,ae();return}k=(ee=v.PaymentMethods)!=null&&ee.Ordering?le(v):B(v),window.postMessage({type:"PromotedPaymentMethods",promotedPaymentMethods:q},window.location.href),s(10,R=T&&+T>0&&k.length>+T?o("showAll"):""),s(11,b=R?k.slice(0,+T):k),F=="false"&&s(11,b=b.sort((ge,ye)=>ge.isMethodPromoted&&!ye.isMethodPromoted?-1:!ge.isMethodPromoted&&ye.isMethodPromoted?1:0)),s(15,V=!b.length),window.postMessage({type:"StartSessionCountdown",paymentMethodName:k[0].Name},window.location.href),window.postMessage({type:h,isDataLoaded:!0},window.location.href)}).finally(()=>{s(14,ne=!0),window.postMessage({type:h,isDataLoaded:!0},window.location.href)})},le=i=>{const f=[];return q=[],i.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(S=>{const h=i.PaymentMethods.PaymentMethods.find(M=>M.Name===S);if(h){const M=(h==null?void 0:h.Logos.find(v=>v.LogoType==="Desktop"))||{},C=(h==null?void 0:h.Logos.find(v=>v.LogoType==="Mobile"))||{},z=g?M:C;h.isMethodPromoted=Q(h.Tags),h.LogoUrl=z.LogoUrl?`https:${z.LogoUrl}`:"",h.isMethodPromoted&&q.push(h),f.push(h)}}),f},B=i=>{const f=i.PaymentMethods.PaymentMethods.map(M=>fe(pe({},M),{isMethodPromoted:Q(M.Tags),LogoUrl:M.Logos&&M.Logos.length&&M.Logos[0].LogoUrl?`https:${M.Logos[0].LogoUrl}`:""})),[S,h]=f.reduce(([M,C],z)=>(z&&z.isMethodPromoted?M.push(z):C.promo(z),[M,C]),[[],[]]);return q=S,h},_=i=>{s(9,j=i.Name),window.postMessage({type:"SelectPayMeth",details:i},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:i,bubbles:!0,cancelable:!0,composed:!0}))},ae=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:w},window.location.href)},me=()=>{s(13,g=!e.isMobile(G))},Z=()=>{b==k?de():ce()},ce=()=>{s(11,b=k),s(10,R=o("showLess"))},de=()=>{s(11,b=k.slice(0,+T)),j&&!b.find(i=>i.Name===j)&&b.splice(0,0,k.find(i=>i.Name===j)),s(10,R=o("showAll"))},Q=i=>i&&i.split(",").some(f=>f===Ye),$=i=>{var S;const{data:{type:f}={}}=i||{};switch(f){case"PrecisionCurrenciesMap":{s(8,W=((S=i==null?void 0:i.data)==null?void 0:S.payload)||{});break}}},ue=()=>{O.length>0&&(K=O.split(","))};e.onMount(()=>(me(),e.initCurrencyFormatter(d,U,Y,x),window.postMessage({type:"CashierMethodsListReady"},window.location.href),window.addEventListener("message",$),()=>{window.removeEventListener("message",$)}));const Ne=i=>_(i),ze=()=>Z();function Ae(i){e.binding_callbacks[i?"unshift":"push"](()=>{L=i,s(7,L)})}return n.$$set=i=>{"lang"in i&&s(0,a=i.lang),"local"in i&&s(20,d=i.local),"endpoint"in i&&s(21,u=i.endpoint),"paymentsession"in i&&s(22,m=i.paymentsession),"playersession"in i&&s(23,c=i.playersession),"customerid"in i&&s(24,p=i.customerid),"assetsurl"in i&&s(1,H=i.assetsurl),"currency"in i&&s(25,I=i.currency),"numberofmethodsshown"in i&&s(26,T=i.numberofmethodsshown),"translationurl"in i&&s(2,A=i.translationurl),"mbsource"in i&&s(3,E=i.mbsource),"clientstyling"in i&&s(4,P=i.clientstyling),"clientstylingurl"in i&&s(5,D=i.clientstylingurl),"currencydecimals"in i&&s(27,x=i.currencydecimals),"currencysymbol"in i&&s(28,U=i.currencysymbol),"currencyposition"in i&&s(29,Y=i.currencyposition),"promotedmethods"in i&&s(30,F=i.promotedmethods),"type"in i&&s(6,X=i.type),"userroles"in i&&s(31,O=i.userroles)},n.$$.update=()=>{n.$$.dirty[1]&1&&O&&ue(),n.$$.dirty[0]&56623104&&u&&!m&&p&&re({currency:I}),n.$$.dirty[0]&1&&a&&oe(),n.$$.dirty[0]&144&&P&&L&&he.setClientStyling(L,P),n.$$.dirty[0]&160&&D&&L&&he.setClientStylingURL(L,D),n.$$.dirty[0]&136&&E&&L&&he.setStreamStyling(L,`${E}.Style`,te),n.$$.dirty[0]&5&&a&&A&&se(),n.$$.dirty[0]&134217728&&s(16,r=Number(x))},[a,H,A,E,P,D,X,L,W,j,R,b,y,g,ne,V,r,o,_,Z,d,u,m,c,p,I,T,x,U,Y,F,O,Ne,ze,Ae]}class xe extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,Ge,Be,e.safe_not_equal,{lang:0,local:20,endpoint:21,paymentsession:22,playersession:23,customerid:24,assetsurl:1,currency:25,numberofmethodsshown:26,translationurl:2,mbsource:3,clientstyling:4,clientstylingurl:5,currencydecimals:27,currencysymbol:28,currencyposition:29,promotedmethods:30,type:6,userroles:31},Ue,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get local(){return this.$$.ctx[20]}set local(t){this.$$set({local:t}),e.flush()}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get paymentsession(){return this.$$.ctx[22]}set paymentsession(t){this.$$set({paymentsession:t}),e.flush()}get playersession(){return this.$$.ctx[23]}set playersession(t){this.$$set({playersession:t}),e.flush()}get customerid(){return this.$$.ctx[24]}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[25]}set currency(t){this.$$set({currency:t}),e.flush()}get numberofmethodsshown(){return this.$$.ctx[26]}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 mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get currencydecimals(){return this.$$.ctx[27]}set currencydecimals(t){this.$$set({currencydecimals:t}),e.flush()}get currencysymbol(){return this.$$.ctx[28]}set currencysymbol(t){this.$$set({currencysymbol:t}),e.flush()}get currencyposition(){return this.$$.ctx[29]}set currencyposition(t){this.$$set({currencyposition:t}),e.flush()}get promotedmethods(){return this.$$.ctx[30]}set promotedmethods(t){this.$$set({promotedmethods:t}),e.flush()}get type(){return this.$$.ctx[6]}set type(t){this.$$set({type:t}),e.flush()}get userroles(){return this.$$.ctx[31]}set userroles(t){this.$$set({userroles:t}),e.flush()}}e.create_custom_element(xe,{lang:{},local:{},endpoint:{},paymentsession:{},playersession:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},mbsource:{},clientstyling:{},clientstylingurl:{},currencydecimals:{},currencysymbol:{},currencyposition:{},promotedmethods:{},type:{},userroles:{}},[],[],!0);exports.default=xe;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ze = Object.defineProperty, $e = Object.defineProperties;
|
|
2
2
|
var et = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Se = Object.getOwnPropertySymbols;
|
|
4
4
|
var tt = Object.prototype.hasOwnProperty, st = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Ee = (t, e, s) => e in t ?
|
|
5
|
+
var Ee = (t, e, s) => e in t ? Ze(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, ke = (t, e) => {
|
|
6
6
|
for (var s in e || (e = {}))
|
|
7
7
|
tt.call(e, s) && Ee(t, s, e[s]);
|
|
8
8
|
if (Se)
|
|
@@ -10,8 +10,8 @@ var Ee = (t, e, s) => e in t ? Qe(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
st.call(e, s) && Ee(t, s, e[s]);
|
|
11
11
|
return t;
|
|
12
12
|
}, Ce = (t, e) => $e(t, et(e));
|
|
13
|
-
import {
|
|
14
|
-
import { s as Mt, a as bt, b as _t } from "./CashierHeader-
|
|
13
|
+
import { b as ot, N as nt, a as it, S as rt, O as lt, a1 as at, E as w, f as mt, V as Ne, x as A, Q as x, a6 as P, A as Ve, l as ze, t as Ae, ah as ct, Y as dt, P as ut, e as a, z as f, g as h, a3 as T, a2 as N, a9 as D, R as ft, h as ht, T as Pe, ac as Le, B as xe, w as gt, F as ve, _ as pt, a7 as Fe, o as yt, $ as wt, ai as Oe } from "./CashierPage-Yklnwu-d.js";
|
|
14
|
+
import { s as Mt, a as bt, b as _t } from "./CashierHeader-YhgwXeCk.js";
|
|
15
15
|
function Re(t, e) {
|
|
16
16
|
ot(t, e);
|
|
17
17
|
}
|
|
@@ -20,7 +20,7 @@ function vt(t) {
|
|
|
20
20
|
fallbackLocale: "en"
|
|
21
21
|
}), it.set(t);
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const je = {
|
|
24
24
|
en: {
|
|
25
25
|
generalMin: "Min",
|
|
26
26
|
generalMax: "Max",
|
|
@@ -61,7 +61,7 @@ const Ie = {
|
|
|
61
61
|
function Lt(t) {
|
|
62
62
|
mt(t, "svelte-njj9wo", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;max-width:100%;gap:5px;margin:10px}.SelectorWrapper{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;cursor:pointer;position:relative;box-sizing:border-box;padding:5px 0;border-radius:10px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);overflow:hidden;z-index:1;transition:transform 0.3s ease-in-out}.SelectorWrapper:hover{box-shadow:inset 0px 0px 7px var(--emw--color-primary);transform:scale(1.02)}.SelectorWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-white, #f5f5f5) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.2}.CashierMethodListWidget{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));height:100%;padding-bottom:20px}.MethodsListDescription{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));padding:10px}.MethodsListDescription h3{font-size:12px;text-transform:uppercase;margin:10px 0}.MethodsListDescription p{color:white;opacity:0.55;font-size:12px}.MethodLogo{margin:5px}.MethodLogo img{width:100%;height:100%;max-height:22px}.MethodPromoLabel{background:var(--emw--color-button-background, #f1f3ff);color:var(--emw--color-primary, #f9c405);font-size:14px;font-weight:700;text-transform:uppercase;padding:5px 10px;min-width:100px;border-radius:10px;margin:10px;text-align:center}.MethodInfo{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.MethodTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));margin:5px;word-break:break-word;font-weight:var(--emw--font-weight-bold, 700);line-height:10px}.MethodLimits{word-break:break-word;margin:5px}.Limits{max-width:100%;font-weight:var(--emw--font-weight-normal, 300);font-style:normal;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.7}.MethodFavorite{font-size:var(--emw--font-size-x-small, 8px);color:var(--emw--color-typography, #fff);background-color:var(--emw--color-red, red);border-radius:15px;margin:0 5px;line-height:10px;height:16px}.MethodFavorite p{padding:3px}.PaymentProcessing{padding:5px;color:var(--emw--color-primary, #ffce00);font-style:italic;font-size:var(--emw--font-size-small, 12px)}@media(min-width: 499px){.MethodLogo{margin:5px}.MethodLogo img{width:100%;height:100%;max-height:36px}.SelectorWrapper{padding:10px}.MethodTitle{font-size:var(--emw--font-size-medium, 12px)}.Limits{font-size:var(--emw--font-size-small, 10px)}}@media(max-width: 500px){.PaymentProcessing{font-size:var(--emw--font-size-x-small, 8px)}.MethodTitle{font-size:var(--emw--font-size-small, 10px)}.Limits{font-size:var(--emw--font-size-x-small, 8px)}}.EmptyContentMessageWrapper{position:relative;display:flex;justify-content:flex-end}.EmptyContentMessageContent{display:flex;flex-direction:column;row-gap:var(--emw--spacing-small, 12px);bottom:10%}.EmptyContentMessageImg{width:250px}.EmptyContentMessageImg img{border-radius:0 0 var(--emw--border-radius-medium-plus, 6px) 0;height:100%;width:100%}.EmptyContentMessageTitle{font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-bold, 800);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--emw--color-primary);text-transform:uppercase}.EmptyContentMessageText{word-break:break-word;font-size:var(--emw--font-size-small, 14px);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--emw--color-typography, #fff)}.EmptyContentMessageDesktop{justify-content:flex-start}.EmptyContentMessageDesktop .EmptyContentMessageContent{bottom:auto;margin-top:10px}.EmptyContentMessageDesktop .EmptyContentMessageImg{width:auto}.EmptyContentMessageDesktop .EmptyContentMessageImg img{transform:scaleX(-1)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--emw--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(--emw--color-grey-105, #e8e9eb);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}.ErrorMessage{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}');
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Ie(t, e, s) {
|
|
65
65
|
const n = t.slice();
|
|
66
66
|
return n[58] = e[s], n[60] = s, n;
|
|
67
67
|
}
|
|
@@ -106,7 +106,7 @@ function He(t) {
|
|
|
106
106
|
), u;
|
|
107
107
|
return {
|
|
108
108
|
c() {
|
|
109
|
-
e = f("div"), s = f("h3"), o =
|
|
109
|
+
e = f("div"), s = f("h3"), o = D(n), r = P(), l = f("p"), u = D(d), h(e, "class", "MethodsListDescription");
|
|
110
110
|
},
|
|
111
111
|
m(m, c) {
|
|
112
112
|
x(m, e, c), a(e, s), a(s, o), a(e, r), a(e, l), a(l, u);
|
|
@@ -114,9 +114,9 @@ function He(t) {
|
|
|
114
114
|
p(m, c) {
|
|
115
115
|
c[0] & /*$_*/
|
|
116
116
|
131072 && n !== (n = /*$_*/
|
|
117
|
-
m[17]("otherMethodsTitle") + "") &&
|
|
117
|
+
m[17]("otherMethodsTitle") + "") && T(o, n), c[0] & /*$_*/
|
|
118
118
|
131072 && d !== (d = /*$_*/
|
|
119
|
-
m[17]("otherMethodsDescription") + "") &&
|
|
119
|
+
m[17]("otherMethodsDescription") + "") && T(u, d);
|
|
120
120
|
},
|
|
121
121
|
d(m) {
|
|
122
122
|
m && A(e);
|
|
@@ -129,12 +129,12 @@ function kt(t) {
|
|
|
129
129
|
t[11]
|
|
130
130
|
), n = [];
|
|
131
131
|
for (let o = 0; o < s.length; o += 1)
|
|
132
|
-
n[o] = Ye(
|
|
132
|
+
n[o] = Ye(Ie(t, s, o));
|
|
133
133
|
return {
|
|
134
134
|
c() {
|
|
135
135
|
for (let o = 0; o < n.length; o += 1)
|
|
136
136
|
n[o].c();
|
|
137
|
-
e =
|
|
137
|
+
e = Ve();
|
|
138
138
|
},
|
|
139
139
|
m(o, r) {
|
|
140
140
|
for (let l = 0; l < n.length; l += 1)
|
|
@@ -150,7 +150,7 @@ function kt(t) {
|
|
|
150
150
|
);
|
|
151
151
|
let l;
|
|
152
152
|
for (l = 0; l < s.length; l += 1) {
|
|
153
|
-
const d =
|
|
153
|
+
const d = Ie(o, s, l);
|
|
154
154
|
n[l] ? n[l].p(d, r) : (n[l] = Ye(d), n[l].c(), n[l].m(e.parentNode, e));
|
|
155
155
|
}
|
|
156
156
|
for (; l < n.length; l += 1)
|
|
@@ -173,7 +173,7 @@ function Ct(t) {
|
|
|
173
173
|
), m;
|
|
174
174
|
return {
|
|
175
175
|
c() {
|
|
176
|
-
e = f("div"), s = f("div"), n = f("p"), r =
|
|
176
|
+
e = f("div"), s = f("div"), n = f("p"), r = D(o), l = P(), d = f("p"), m = D(u), h(n, "class", "EmptyContentMessageTitle"), h(d, "class", "EmptyContentMessageText"), h(s, "class", "EmptyContentMessageContent"), h(e, "class", "EmptyContentMessageWrapper"), Le(
|
|
177
177
|
e,
|
|
178
178
|
"EmptyContentMessageDesktop",
|
|
179
179
|
/*desktopView*/
|
|
@@ -186,9 +186,9 @@ function Ct(t) {
|
|
|
186
186
|
p(c, g) {
|
|
187
187
|
g[0] & /*$_*/
|
|
188
188
|
131072 && o !== (o = /*$_*/
|
|
189
|
-
c[17]("error") + "") &&
|
|
189
|
+
c[17]("error") + "") && T(r, o), g[0] & /*$_*/
|
|
190
190
|
131072 && u !== (u = /*$_*/
|
|
191
|
-
c[17]("noPaymentMethods") + "") &&
|
|
191
|
+
c[17]("noPaymentMethods") + "") && T(m, u), g[0] & /*desktopView*/
|
|
192
192
|
8192 && Le(
|
|
193
193
|
e,
|
|
194
194
|
"EmptyContentMessageDesktop",
|
|
@@ -208,7 +208,7 @@ function We(t) {
|
|
|
208
208
|
), n;
|
|
209
209
|
return {
|
|
210
210
|
c() {
|
|
211
|
-
e = f("p"), n =
|
|
211
|
+
e = f("p"), n = D(s);
|
|
212
212
|
},
|
|
213
213
|
m(o, r) {
|
|
214
214
|
x(o, e, r), a(e, n);
|
|
@@ -216,7 +216,7 @@ function We(t) {
|
|
|
216
216
|
p(o, r) {
|
|
217
217
|
r[0] & /*$_*/
|
|
218
218
|
131072 && s !== (s = /*$_*/
|
|
219
|
-
o[17]("favorite") + "") &&
|
|
219
|
+
o[17]("favorite") + "") && T(n, s);
|
|
220
220
|
},
|
|
221
221
|
d(o) {
|
|
222
222
|
o && A(e);
|
|
@@ -232,7 +232,7 @@ function qe(t) {
|
|
|
232
232
|
), n;
|
|
233
233
|
return {
|
|
234
234
|
c() {
|
|
235
|
-
e = f("span"), n =
|
|
235
|
+
e = f("span"), n = D(s), h(e, "class", "PaymentProcessing");
|
|
236
236
|
},
|
|
237
237
|
m(o, r) {
|
|
238
238
|
x(o, e, r), a(e, n);
|
|
@@ -242,7 +242,7 @@ function qe(t) {
|
|
|
242
242
|
133184 && s !== (s = /*$_*/
|
|
243
243
|
o[17](`${/*type*/
|
|
244
244
|
o[6]}${/*payMeth*/
|
|
245
|
-
o[58].ProcessingTime}`) + "") &&
|
|
245
|
+
o[58].ProcessingTime}`) + "") && T(n, s);
|
|
246
246
|
},
|
|
247
247
|
d(o) {
|
|
248
248
|
o && A(e);
|
|
@@ -258,7 +258,7 @@ function Be(t) {
|
|
|
258
258
|
), n;
|
|
259
259
|
return {
|
|
260
260
|
c() {
|
|
261
|
-
e = f("span"), n =
|
|
261
|
+
e = f("span"), n = D(s), h(e, "class", "PaymentProcessing");
|
|
262
262
|
},
|
|
263
263
|
m(o, r) {
|
|
264
264
|
x(o, e, r), a(e, n);
|
|
@@ -268,7 +268,7 @@ function Be(t) {
|
|
|
268
268
|
133184 && s !== (s = /*$_*/
|
|
269
269
|
o[17](`${/*type*/
|
|
270
270
|
o[6]}${/*payMeth*/
|
|
271
|
-
o[58].ProcessingTime}`) + "") &&
|
|
271
|
+
o[58].ProcessingTime}`) + "") && T(n, s);
|
|
272
272
|
},
|
|
273
273
|
d(o) {
|
|
274
274
|
o && A(e);
|
|
@@ -277,11 +277,11 @@ function Be(t) {
|
|
|
277
277
|
}
|
|
278
278
|
function Ye(t) {
|
|
279
279
|
var ne, ie, oe, ue, fe, he, ge, pe;
|
|
280
|
-
let e, s, n, o, r, l, d, u, m, c, g,
|
|
280
|
+
let e, s, n, o, r, l, d, u, m, c, g, V = (
|
|
281
281
|
/*payMeth*/
|
|
282
282
|
(t[58].Label || /*payMeth*/
|
|
283
283
|
t[58].Name) + ""
|
|
284
|
-
),
|
|
284
|
+
), J, O, q, I, F, R, U = (
|
|
285
285
|
/*$_*/
|
|
286
286
|
t[17]("generalMin") + ""
|
|
287
287
|
), K, ee, B = ve(
|
|
@@ -307,7 +307,7 @@ function Ye(t) {
|
|
|
307
307
|
t[16]
|
|
308
308
|
)
|
|
309
309
|
}
|
|
310
|
-
) + "", te, Y, H,
|
|
310
|
+
) + "", te, Y, H, Q = (
|
|
311
311
|
/*$_*/
|
|
312
312
|
t[17]("generalMax") + ""
|
|
313
313
|
), S, ce, se = ve(
|
|
@@ -333,7 +333,7 @@ function Ye(t) {
|
|
|
333
333
|
t[16]
|
|
334
334
|
)
|
|
335
335
|
}
|
|
336
|
-
) + "", E, X, G, k,
|
|
336
|
+
) + "", E, X, G, k, Z, b = (
|
|
337
337
|
/*payMeth*/
|
|
338
338
|
t[58].isMethodPromoted && We(t)
|
|
339
339
|
), _ = !/*desktopView*/
|
|
@@ -352,9 +352,9 @@ function Ye(t) {
|
|
|
352
352
|
}
|
|
353
353
|
return {
|
|
354
354
|
c() {
|
|
355
|
-
e = f("div"), s = f("div"), n = f("img"), l = P(), d = f("div"), b && b.c(), u = P(), m = f("div"), c = f("div"), g = f("span"),
|
|
355
|
+
e = f("div"), s = f("div"), n = f("img"), l = P(), d = f("div"), b && b.c(), u = P(), m = f("div"), c = f("div"), g = f("span"), J = D(V), O = P(), _ && _.c(), q = P(), I = f("div"), F = f("span"), R = f("p"), K = D(U), ee = P(), te = D(B), Y = P(), H = f("p"), S = D(Q), ce = P(), E = D(se), X = P(), M && M.c(), G = P(), Fe(n.src, o = /*payMeth*/
|
|
356
356
|
t[58].LogoUrl) || h(n, "src", o), h(n, "alt", r = /*payMeth*/
|
|
357
|
-
t[58].Label), h(s, "class", "MethodLogo"), h(d, "class", "MethodFavorite"), h(c, "class", "MethodTitle"), h(F, "class", "Limits"), h(
|
|
357
|
+
t[58].Label), h(s, "class", "MethodLogo"), h(d, "class", "MethodFavorite"), h(c, "class", "MethodTitle"), h(F, "class", "Limits"), h(I, "class", "MethodLimits"), h(m, "class", "MethodInfo"), h(e, "class", "SelectorWrapper"), Le(
|
|
358
358
|
e,
|
|
359
359
|
"checked",
|
|
360
360
|
/*selectedPaymentMethod*/
|
|
@@ -363,9 +363,9 @@ function Ye(t) {
|
|
|
363
363
|
);
|
|
364
364
|
},
|
|
365
365
|
m($, v) {
|
|
366
|
-
x($, e, v), a(e, s), a(s, n), a(e, l), a(e, d), b && b.m(d, null), a(e, u), a(e, m), a(m, c), a(c, g), a(g,
|
|
366
|
+
x($, e, v), a(e, s), a(s, n), a(e, l), a(e, d), b && b.m(d, null), a(e, u), a(e, m), a(m, c), a(c, g), a(g, J), a(m, O), _ && _.m(m, null), a(m, q), a(m, I), a(I, F), a(F, R), a(R, K), a(R, ee), a(R, te), a(F, Y), a(F, H), a(H, S), a(H, ce), a(H, E), a(m, X), M && M.m(m, null), a(e, G), k || (Z = [
|
|
367
367
|
Pe(e, "click", de),
|
|
368
|
-
Pe(e, "keyup",
|
|
368
|
+
Pe(e, "keyup", Dt)
|
|
369
369
|
], k = !0);
|
|
370
370
|
},
|
|
371
371
|
p($, v) {
|
|
@@ -376,12 +376,12 @@ function Ye(t) {
|
|
|
376
376
|
2048 && r !== (r = /*payMeth*/
|
|
377
377
|
t[58].Label) && h(n, "alt", r), /*payMeth*/
|
|
378
378
|
t[58].isMethodPromoted ? b ? b.p(t, v) : (b = We(t), b.c(), b.m(d, null)) : b && (b.d(1), b = null), v[0] & /*paymentMethodsToShow*/
|
|
379
|
-
2048 &&
|
|
379
|
+
2048 && V !== (V = /*payMeth*/
|
|
380
380
|
(t[58].Label || /*payMeth*/
|
|
381
|
-
t[58].Name) + "") &&
|
|
381
|
+
t[58].Name) + "") && T(J, V), /*desktopView*/
|
|
382
382
|
t[13] ? _ && (_.d(1), _ = null) : _ ? _.p(t, v) : (_ = qe(t), _.c(), _.m(m, q)), v[0] & /*$_*/
|
|
383
383
|
131072 && U !== (U = /*$_*/
|
|
384
|
-
t[17]("generalMin") + "") &&
|
|
384
|
+
t[17]("generalMin") + "") && T(K, U), v[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
385
385
|
67840 && B !== (B = ve(
|
|
386
386
|
/*payMeth*/
|
|
387
387
|
t[58].DisplayCurrency.MinAmountLimit,
|
|
@@ -405,9 +405,9 @@ function Ye(t) {
|
|
|
405
405
|
t[16]
|
|
406
406
|
)
|
|
407
407
|
}
|
|
408
|
-
) + "") &&
|
|
409
|
-
131072 &&
|
|
410
|
-
t[17]("generalMax") + "") &&
|
|
408
|
+
) + "") && T(te, B), v[0] & /*$_*/
|
|
409
|
+
131072 && Q !== (Q = /*$_*/
|
|
410
|
+
t[17]("generalMax") + "") && T(S, Q), v[0] & /*paymentMethodsToShow, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
411
411
|
67840 && se !== (se = ve(
|
|
412
412
|
/*payMeth*/
|
|
413
413
|
t[58].DisplayCurrency.MaxAmountLimit,
|
|
@@ -431,7 +431,7 @@ function Ye(t) {
|
|
|
431
431
|
t[16]
|
|
432
432
|
)
|
|
433
433
|
}
|
|
434
|
-
) + "") &&
|
|
434
|
+
) + "") && T(E, se), /*desktopView*/
|
|
435
435
|
t[13] ? M ? M.p(t, v) : (M = Be(t), M.c(), M.m(m, null)) : M && (M.d(1), M = null), v[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
|
|
436
436
|
2560 && Le(
|
|
437
437
|
e,
|
|
@@ -442,7 +442,7 @@ function Ye(t) {
|
|
|
442
442
|
);
|
|
443
443
|
},
|
|
444
444
|
d($) {
|
|
445
|
-
$ && A(e), b && b.d(), _ && _.d(), M && M.d(), k = !1, pt(
|
|
445
|
+
$ && A(e), b && b.d(), _ && _.d(), M && M.d(), k = !1, pt(Z);
|
|
446
446
|
}
|
|
447
447
|
};
|
|
448
448
|
}
|
|
@@ -450,7 +450,7 @@ function Xe(t) {
|
|
|
450
450
|
let e, s, n, o;
|
|
451
451
|
return {
|
|
452
452
|
c() {
|
|
453
|
-
e = f("div"), s =
|
|
453
|
+
e = f("div"), s = D(
|
|
454
454
|
/*methodsButtonToggleText*/
|
|
455
455
|
t[10]
|
|
456
456
|
), h(e, "class", "ShowAllButton");
|
|
@@ -465,7 +465,7 @@ function Xe(t) {
|
|
|
465
465
|
},
|
|
466
466
|
p(r, l) {
|
|
467
467
|
l[0] & /*methodsButtonToggleText*/
|
|
468
|
-
1024 &&
|
|
468
|
+
1024 && T(
|
|
469
469
|
s,
|
|
470
470
|
/*methodsButtonToggleText*/
|
|
471
471
|
r[10]
|
|
@@ -480,7 +480,7 @@ function Ge(t) {
|
|
|
480
480
|
let e, s, n;
|
|
481
481
|
return {
|
|
482
482
|
c() {
|
|
483
|
-
e = f("cashier-error"), s = f("span"), n =
|
|
483
|
+
e = f("cashier-error"), s = f("span"), n = D(
|
|
484
484
|
/*errorMessage*/
|
|
485
485
|
t[12]
|
|
486
486
|
), h(s, "class", "ErrorMessage"), h(s, "slot", "text"), N(
|
|
@@ -520,7 +520,7 @@ function Ge(t) {
|
|
|
520
520
|
},
|
|
521
521
|
p(o, r) {
|
|
522
522
|
r[0] & /*errorMessage*/
|
|
523
|
-
4096 &&
|
|
523
|
+
4096 && T(
|
|
524
524
|
n,
|
|
525
525
|
/*errorMessage*/
|
|
526
526
|
o[12]
|
|
@@ -577,7 +577,7 @@ function Pt(t) {
|
|
|
577
577
|
);
|
|
578
578
|
return {
|
|
579
579
|
c() {
|
|
580
|
-
n && n.c(), e = P(), o && o.c(), s =
|
|
580
|
+
n && n.c(), e = P(), o && o.c(), s = Ve();
|
|
581
581
|
},
|
|
582
582
|
m(r, l) {
|
|
583
583
|
n && n.m(r, l), x(r, e, l), o && o.m(r, l), x(r, s, l);
|
|
@@ -594,12 +594,12 @@ function Pt(t) {
|
|
|
594
594
|
}
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
-
const
|
|
597
|
+
const Tt = "PaymentPromotion", Dt = () => {
|
|
598
598
|
};
|
|
599
599
|
function St(t, e, s) {
|
|
600
600
|
let n, o, r;
|
|
601
601
|
ze(t, wt, (i) => s(17, o = i)), ze(t, Oe, (i) => s(42, r = i)), Ae.extend(ct);
|
|
602
|
-
let { lang: l = "en" } = e, { local: d = "en-US" } = e, { endpoint: u } = e, { paymentsession: m } = e, { playersession: c } = e, { customerid: g } = e, { assetsurl:
|
|
602
|
+
let { lang: l = "en" } = e, { local: d = "en-US" } = e, { endpoint: u } = e, { paymentsession: m } = e, { playersession: c } = e, { customerid: g } = e, { assetsurl: V } = e, { currency: J } = e, { numberofmethodsshown: O } = e, { translationurl: q = "" } = e, { mbsource: I } = e, { clientstyling: F } = e, { clientstylingurl: R } = e, { currencydecimals: U = "0" } = e, { currencysymbol: K = "" } = e, { currencyposition: ee = "" } = e, { promotedmethods: B = "false" } = e, { type: te } = e, { userroles: Y = "" } = e, H, Q = {}, S, ce, se = window.navigator.userAgent, E = [], X, G = "", k = [], Z = [], b = "", _, M = !0, de = !1, ne = !1, ie = [];
|
|
603
603
|
var oe;
|
|
604
604
|
(function(i) {
|
|
605
605
|
i.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", i.Success = "Success", i.JwtTokenError = "JwtTokenError";
|
|
@@ -608,15 +608,15 @@ function St(t, e, s) {
|
|
|
608
608
|
let i = q;
|
|
609
609
|
if (i)
|
|
610
610
|
return fetch(i).then((p) => p.json()).then((p) => {
|
|
611
|
-
Object.keys(p).forEach((
|
|
612
|
-
Re(
|
|
611
|
+
Object.keys(p).forEach((j) => {
|
|
612
|
+
Re(j, p[j]);
|
|
613
613
|
});
|
|
614
614
|
}).catch((p) => {
|
|
615
615
|
console.log(p);
|
|
616
616
|
});
|
|
617
617
|
};
|
|
618
|
-
Object.keys(
|
|
619
|
-
Re(i,
|
|
618
|
+
Object.keys(je).forEach((i) => {
|
|
619
|
+
Re(i, je[i]);
|
|
620
620
|
});
|
|
621
621
|
const fe = () => {
|
|
622
622
|
vt(l);
|
|
@@ -651,10 +651,10 @@ function St(t, e, s) {
|
|
|
651
651
|
E = (me = C.PaymentMethods) != null && me.Ordering ? pe(C) : $(C), window.postMessage(
|
|
652
652
|
{
|
|
653
653
|
type: "PromotedPaymentMethods",
|
|
654
|
-
promotedPaymentMethods:
|
|
654
|
+
promotedPaymentMethods: Z
|
|
655
655
|
},
|
|
656
656
|
window.location.href
|
|
657
|
-
), s(10, G = O && +O > 0 && E.length > +O ? o("showAll") : ""), s(11, k = G ? E.slice(0, +O) : E), B == "false" && s(11, k = k.sort((
|
|
657
|
+
), s(10, G = O && +O > 0 && E.length > +O ? o("showAll") : ""), s(11, k = G ? E.slice(0, +O) : E), B == "false" && s(11, k = k.sort((Te, De) => Te.isMethodPromoted && !De.isMethodPromoted ? -1 : !Te.isMethodPromoted && De.isMethodPromoted ? 1 : 0)), s(15, ne = !k.length), window.postMessage(
|
|
658
658
|
{
|
|
659
659
|
type: "StartSessionCountdown",
|
|
660
660
|
paymentMethodName: E[0].Name
|
|
@@ -666,22 +666,22 @@ function St(t, e, s) {
|
|
|
666
666
|
});
|
|
667
667
|
}, pe = (i) => {
|
|
668
668
|
const p = [];
|
|
669
|
-
return
|
|
670
|
-
const y = i.PaymentMethods.PaymentMethods.find((L) => L.Name ===
|
|
669
|
+
return Z = [], i.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((j) => {
|
|
670
|
+
const y = i.PaymentMethods.PaymentMethods.find((L) => L.Name === j);
|
|
671
671
|
if (y) {
|
|
672
672
|
const L = (y == null ? void 0 : y.Logos.find((C) => C.LogoType === "Desktop")) || {}, z = (y == null ? void 0 : y.Logos.find((C) => C.LogoType === "Mobile")) || {}, W = M ? L : z;
|
|
673
|
-
y.isMethodPromoted = le(y.Tags), y.LogoUrl = W.LogoUrl ? `https:${W.LogoUrl}` : "", y.isMethodPromoted &&
|
|
673
|
+
y.isMethodPromoted = le(y.Tags), y.LogoUrl = W.LogoUrl ? `https:${W.LogoUrl}` : "", y.isMethodPromoted && Z.push(y), p.push(y);
|
|
674
674
|
}
|
|
675
675
|
}), p;
|
|
676
676
|
}, $ = (i) => {
|
|
677
677
|
const p = i.PaymentMethods.PaymentMethods.map((L) => Ce(ke({}, L), {
|
|
678
678
|
isMethodPromoted: le(L.Tags),
|
|
679
679
|
LogoUrl: L.Logos && L.Logos.length && L.Logos[0].LogoUrl ? `https:${L.Logos[0].LogoUrl}` : ""
|
|
680
|
-
})), [
|
|
680
|
+
})), [j, y] = p.reduce(
|
|
681
681
|
([L, z], W) => (W && W.isMethodPromoted ? L.push(W) : z.promo(W), [L, z]),
|
|
682
682
|
[[], []]
|
|
683
683
|
);
|
|
684
|
-
return
|
|
684
|
+
return Z = j, y;
|
|
685
685
|
}, v = (i) => {
|
|
686
686
|
s(9, X = i.Name), window.postMessage({ type: "SelectPayMeth", details: i }, window.location.href), dispatchEvent(new CustomEvent(
|
|
687
687
|
"selectPayMeth",
|
|
@@ -708,12 +708,12 @@ function St(t, e, s) {
|
|
|
708
708
|
s(11, k = E), s(10, G = o("showLess"));
|
|
709
709
|
}, be = () => {
|
|
710
710
|
s(11, k = E.slice(0, +O)), X && !k.find((i) => i.Name === X) && k.splice(0, 0, E.find((i) => i.Name === X)), s(10, G = o("showAll"));
|
|
711
|
-
}, le = (i) => i && i.split(",").some((p) => p ===
|
|
712
|
-
var
|
|
711
|
+
}, le = (i) => i && i.split(",").some((p) => p === Tt), ae = (i) => {
|
|
712
|
+
var j;
|
|
713
713
|
const { data: { type: p } = {} } = i || {};
|
|
714
714
|
switch (p) {
|
|
715
715
|
case "PrecisionCurrenciesMap": {
|
|
716
|
-
s(8,
|
|
716
|
+
s(8, Q = ((j = i == null ? void 0 : i.data) == null ? void 0 : j.payload) || {});
|
|
717
717
|
break;
|
|
718
718
|
}
|
|
719
719
|
}
|
|
@@ -723,34 +723,34 @@ function St(t, e, s) {
|
|
|
723
723
|
dt(() => (we(), ut(d, K, ee, U), window.postMessage({ type: "CashierMethodsListReady" }, window.location.href), window.addEventListener("message", ae), () => {
|
|
724
724
|
window.removeEventListener("message", ae);
|
|
725
725
|
}));
|
|
726
|
-
const
|
|
727
|
-
function
|
|
726
|
+
const Je = (i) => v(i), Ke = () => re();
|
|
727
|
+
function Qe(i) {
|
|
728
728
|
ht[i ? "unshift" : "push"](() => {
|
|
729
729
|
S = i, s(7, S);
|
|
730
730
|
});
|
|
731
731
|
}
|
|
732
732
|
return t.$$set = (i) => {
|
|
733
|
-
"lang" in i && s(0, l = i.lang), "local" in i && s(20, d = i.local), "endpoint" in i && s(21, u = i.endpoint), "paymentsession" in i && s(22, m = i.paymentsession), "playersession" in i && s(23, c = i.playersession), "customerid" in i && s(24, g = i.customerid), "assetsurl" in i && s(1,
|
|
733
|
+
"lang" in i && s(0, l = i.lang), "local" in i && s(20, d = i.local), "endpoint" in i && s(21, u = i.endpoint), "paymentsession" in i && s(22, m = i.paymentsession), "playersession" in i && s(23, c = i.playersession), "customerid" in i && s(24, g = i.customerid), "assetsurl" in i && s(1, V = i.assetsurl), "currency" in i && s(25, J = i.currency), "numberofmethodsshown" in i && s(26, O = i.numberofmethodsshown), "translationurl" in i && s(2, q = i.translationurl), "mbsource" in i && s(3, I = i.mbsource), "clientstyling" in i && s(4, F = i.clientstyling), "clientstylingurl" in i && s(5, R = i.clientstylingurl), "currencydecimals" in i && s(27, U = i.currencydecimals), "currencysymbol" in i && s(28, K = i.currencysymbol), "currencyposition" in i && s(29, ee = i.currencyposition), "promotedmethods" in i && s(30, B = i.promotedmethods), "type" in i && s(6, te = i.type), "userroles" in i && s(31, Y = i.userroles);
|
|
734
734
|
}, t.$$.update = () => {
|
|
735
735
|
t.$$.dirty[1] & /*userroles*/
|
|
736
736
|
1 && Y && _e(), t.$$.dirty[0] & /*endpoint, paymentsession, customerid, currency*/
|
|
737
|
-
56623104 && u && !m && g && he({ currency:
|
|
737
|
+
56623104 && u && !m && g && he({ currency: J }), t.$$.dirty[0] & /*lang*/
|
|
738
738
|
1 && l && fe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
739
739
|
144 && F && S && Mt(S, F), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
740
740
|
160 && R && S && bt(S, R), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
741
|
-
136 &&
|
|
741
|
+
136 && I && S && _t(S, `${I}.Style`, ce), t.$$.dirty[0] & /*lang, translationurl*/
|
|
742
742
|
5 && l && q && ue(), t.$$.dirty[0] & /*currencydecimals*/
|
|
743
743
|
134217728 && s(16, n = Number(U));
|
|
744
744
|
}, [
|
|
745
745
|
l,
|
|
746
|
-
|
|
746
|
+
V,
|
|
747
747
|
q,
|
|
748
|
-
|
|
748
|
+
I,
|
|
749
749
|
F,
|
|
750
750
|
R,
|
|
751
751
|
te,
|
|
752
752
|
S,
|
|
753
|
-
|
|
753
|
+
Q,
|
|
754
754
|
X,
|
|
755
755
|
G,
|
|
756
756
|
k,
|
|
@@ -767,16 +767,16 @@ function St(t, e, s) {
|
|
|
767
767
|
m,
|
|
768
768
|
c,
|
|
769
769
|
g,
|
|
770
|
-
|
|
770
|
+
J,
|
|
771
771
|
O,
|
|
772
772
|
U,
|
|
773
773
|
K,
|
|
774
774
|
ee,
|
|
775
775
|
B,
|
|
776
776
|
Y,
|
|
777
|
-
|
|
777
|
+
Je,
|
|
778
778
|
Ke,
|
|
779
|
-
|
|
779
|
+
Qe
|
|
780
780
|
];
|
|
781
781
|
}
|
|
782
782
|
class Et extends rt {
|