@everymatrix/cashier-page 1.93.66 → 1.93.75
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-BekweMPA.cjs → CashierCarousel-BM-KceW7.cjs} +6 -6
- package/components/{CashierCarousel-B0fVKMjP.js → CashierCarousel-CwYg_hFh.js} +969 -968
- package/components/{CashierCarousel-BtKQtzdv.js → CashierCarousel-DcUyAcwc.js} +947 -946
- package/components/CashierError-BeL8YqKx.cjs +1 -0
- package/components/CashierError-CfKKb6JV.js +831 -0
- package/components/CashierError-dD8Ujs5i.js +847 -0
- package/components/CashierHeader-BcMI_JFJ.cjs +1 -0
- package/components/{CashierHeader-BfBH2bp5.js → CashierHeader-C7A_llUb.js} +159 -168
- package/components/{CashierHeader-BPxfHV7O.js → CashierHeader-DHBbF3Fw.js} +158 -167
- package/components/{CashierIframeRedirect-wYvtOAcP.js → CashierIframeRedirect-BUfajkxx.js} +91 -88
- package/components/CashierIframeRedirect-cI2gXg_a.cjs +1 -0
- package/components/{CashierIframeRedirect-B_XLllRU.js → CashierIframeRedirect-pWxVJsqa.js} +96 -93
- package/components/{CashierMethodDetails-BIrHwWr_.js → CashierMethodDetails-B80VNj_D.js} +4500 -4244
- package/components/CashierMethodDetails-DL0E2K7D.cjs +85 -0
- package/components/{CashierMethodDetails-BIIsDUJD.js → CashierMethodDetails-DOxjgBPP.js} +4332 -4076
- package/components/CashierMethodsList-AGyi-1WS.js +993 -0
- package/components/CashierMethodsList-BMD1_XUn.js +979 -0
- package/components/CashierMethodsList-DhXCE9bn.cjs +1 -0
- package/components/{CashierModal-Dbo2y6I0.js → CashierModal-CkZf2u_p.js} +31 -31
- package/components/{CashierModal-D_cTbvqs.cjs → CashierModal-DCXxFKAW.cjs} +1 -1
- package/components/{CashierModal-DmFWYYBv.js → CashierModal-Sl2X44Qr.js} +27 -27
- package/components/{CashierNotifications-CCfHWtui.js → CashierNotifications-6zJqvaK5.js} +30 -30
- package/components/{CashierNotifications-O-t5pi8m.cjs → CashierNotifications-BJ9m5MR5.cjs} +1 -1
- package/components/{CashierNotifications-BF72AddE.js → CashierNotifications-CI9LFS0z.js} +36 -36
- package/components/{CashierPage-CMOWUvKb.js → CashierPage-Cl1B-pXl.js} +1774 -1677
- package/components/{CashierPage-BwKWBfb9.js → CashierPage-wnVVxtWE.js} +1677 -1586
- package/components/CashierPage-z3O2UFl5.cjs +1 -0
- package/components/{CashierReceiptPage-D4MzhJ9V.js → CashierReceiptPage-DIbzZT8o.js} +1012 -1160
- package/components/CashierReceiptPage-DjD6wuB3.cjs +26 -0
- package/components/{CashierReceiptPage-DT5sVMW6.js → CashierReceiptPage-HK4kGpqY.js} +1039 -1187
- package/components/CashierSessionExpirationModal-BI0TSNVV.js +1224 -0
- package/components/CashierSessionExpirationModal-C6eNs52S.js +1224 -0
- package/components/CashierSessionExpirationModal-kmyaKGHm.cjs +2 -0
- package/components/{CashierSpinner-DOUYOomg.js → CashierSpinner-CxccWP9P.js} +14 -14
- package/components/{CashierSpinner-BNkBVuft.cjs → CashierSpinner-D6QJrkuJ.cjs} +1 -1
- package/components/{CashierSpinner-BJI9qezE.js → CashierSpinner-h23y-7eM.js} +16 -16
- package/components/CashierStepUp-BaKfagWu.js +1204 -0
- package/components/CashierStepUp-Bwo5aVPT.cjs +1 -0
- package/components/CashierStepUp-cTf7L6t4.js +1165 -0
- package/components/CashierTransactionHistory-CXBAT5C2.cjs +1 -0
- package/components/CashierTransactionHistory-CXUPvjmQ.js +1394 -0
- package/components/CashierTransactionHistory-CnmFGuup.js +1394 -0
- package/components/CashierVerifications-C_dhaXxc.cjs +1 -0
- package/components/CashierVerifications-DqJGumEc.js +695 -0
- package/components/CashierVerifications-fkBvQqBz.js +691 -0
- package/components/{TxnStatusIcon-z17R4Qdy.js → TxnStatusIcon-BdmgpoFK.js} +5 -5
- package/components/{TxnStatusIcon-BcQgw6kQ.cjs → TxnStatusIcon-BuY_lIOK.cjs} +1 -1
- package/components/{TxnStatusIcon-DbrDCliI.js → TxnStatusIcon-DdHua6_u.js} +9 -9
- package/components/{TxnTypeIcons-keA0IcNM.cjs → TxnTypeIcons-BOR9sqs3.cjs} +1 -1
- package/components/{TxnTypeIcons-DA4xjdSc.js → TxnTypeIcons-Dj4BEiZD.js} +1 -1
- package/components/{TxnTypeIcons-_jm1frsR.js → TxnTypeIcons-GA3AS07V.js} +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/CashierError-BtMqsFpr.js +0 -848
- package/components/CashierError-Co7r_Zm9.cjs +0 -1
- package/components/CashierError-Dl1PsAvl.js +0 -848
- package/components/CashierHeader-CCqfqjfy.cjs +0 -1
- package/components/CashierIframeRedirect-BjtL1epU.cjs +0 -1
- package/components/CashierMethodDetails-BcyAbL4u.cjs +0 -85
- package/components/CashierMethodsList-C9nbu9q4.js +0 -977
- package/components/CashierMethodsList-DQfEkcgV.cjs +0 -1
- package/components/CashierMethodsList-DWU-U5kE.js +0 -963
- package/components/CashierPage-ptop6UgQ.cjs +0 -1
- package/components/CashierReceiptPage-DIDyIvIl.cjs +0 -26
- package/components/CashierSessionExpirationModal-C1B4Ul82.js +0 -1213
- package/components/CashierSessionExpirationModal-C7vvczxX.js +0 -1213
- package/components/CashierSessionExpirationModal-C_FzRlaI.cjs +0 -2
- package/components/CashierStepUp-BFJ7us6S.cjs +0 -1
- package/components/CashierStepUp-C3MjcoUT.js +0 -1199
- package/components/CashierStepUp-NMJhP_y_.js +0 -1160
- package/components/CashierTransactionHistory-CqvrPlI6.js +0 -1416
- package/components/CashierTransactionHistory-CxWFTJz1.cjs +0 -1
- package/components/CashierTransactionHistory-Ska3IjOh.js +0 -1416
- package/components/CashierVerifications-BujMq3Z2.js +0 -684
- package/components/CashierVerifications-D53gdMIF.js +0 -680
- package/components/CashierVerifications-cAHUa0ou.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var Re=Object.defineProperty,Oe=Object.defineProperties;var je=Object.getOwnPropertyDescriptors;var Me=Object.getOwnPropertySymbols;var Ue=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable;var _e=(n,t,s)=>t in n?Re(n,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[t]=s,pe=(n,t)=>{for(var s in t||(t={}))Ue.call(t,s)&&_e(n,s,t[s]);if(Me)for(var s of Me(t))We.call(t,s)&&_e(n,s,t[s]);return n},ge=(n,t)=>Oe(n,je(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-BM-KceW7.cjs"),ie=require("./CashierMethodDetails-DL0E2K7D.cjs"),re=typeof window!="undefined"&&window.__EMWCashierI18n||{dictionary:e.$dictionary,locale:e.$locale,init:e.init,addMessages:e.addMessages,format:e.$format};typeof window!="undefined"&&!window.__EMWCashierI18n&&(window.__EMWCashierI18n=re);const He=re.format;function be(n,t){re.addMessages(n,t)}function qe(n){re.init({fallbackLocale:"en"}),re.locale.set(n)}const Ee={en:{"FE.generalMin":"Min","FE.generalMax":"Max","FE.showAll":"SHOW ALL","FE.showLess":"SHOW LESS","FE.error":"Error","FE.noPaymentMethods":"No payment methods available","FE.favorite":"Favorite","FE.promoLabel":"Recommended","FE.otherMethodsTitle":"All Methods","FE.otherMethodsDescription":"Discover our incredible selection of unique products that you won't want to miss!"},tr:{"FE.generalMin":"Min","FE.generalMax":"Maks","FE.showAll":"HEPSİNİ GÖSTER","FE.showLess":"DAHA AZ GÖSTER","FE.error":"Hata","FE.noPaymentMethods":"Hiçbir ödeme yöntemi mevcut değil","FE.favorite":"Favori","FE.promoLabel":"Favori","FE.otherMethodsTitle":"Tüm Yöntemler","FE.otherMethodsDescription":"Kaçırmak istemeyeceğiniz benzersiz ürünlerimizden oluşan inanılmaz seçkimizi keşfedin!"},fr:{"FE.generalMin":"Min","FE.generalMax":"Max","FE.showAll":"AFFICHER TOUT","FE.showLess":"AFFICHER MOINS","FE.error":"Erreur","FE.noPaymentMethods":"Aucun moyen de paiement disponible","FE.favorite":"Favori","FE.promoLabel":"Recommandé","FE.otherMethodsTitle":"Toutes les méthodes","FE.otherMethodsDescription":"Découvrez notre incroyable sélection de produits uniques à ne pas manquer !"},da:{"FE.generalMin":"Min","FE.generalMax":"Maks","FE.showAll":"VIS ALLE","FE.showLess":"VIS FÆRRE","FE.error":"Fejl","FE.noPaymentMethods":"Ingen betalingsmetoder tilgængelige","FE.favorite":"Favorit","FE.promoLabel":"Anbefalet","FE.otherMethodsTitle":"Alle metoder","FE.otherMethodsDescription":"Oplev vores utrolige udvalg af unikke produkter, som du ikke vil gå glip af!"},de:{"FE.generalMin":"Min","FE.generalMax":"Max","FE.showAll":"ALLE ANZEIGEN","FE.showLess":"WENIGER ANZEIGEN","FE.error":"Fehler","FE.noPaymentMethods":"Keine Zahlungsmethoden verfügbar","FE.favorite":"Favorit","FE.promoLabel":"Empfohlen","FE.otherMethodsTitle":"Alle Methoden","FE.otherMethodsDescription":"Entdecken Sie unsere unglaubliche Auswahl an einzigartigen Produkten, die Sie nicht verpassen möchten!"},nl:{"FE.generalMin":"Min","FE.generalMax":"Max","FE.showAll":"ALLES TONEN","FE.showLess":"MINDER TONEN","FE.error":"Fout","FE.noPaymentMethods":"Geen betaalmethoden beschikbaar","FE.favorite":"Favoriet","FE.promoLabel":"Aanbevolen","FE.otherMethodsTitle":"Alle methoden","FE.otherMethodsDescription":"Ontdek onze ongelooflijke selectie van unieke producten die u niet wilt missen!"}};function Ge(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 Fe(n,t,s){const r=n.slice();return r[59]=t[s],r[61]=s,r}function ve(n){let t,s,r,o,a=!n[15]&&Le(n);function l(d,h){return d[15]&&d[14]?Ye:Be}let m=l(n),u=m(n),c=n[10]&&De(n);return{c(){t=e.element("div"),a&&a.c(),s=e.space(),r=e.element("div"),u.c(),o=e.space(),c&&c.c(),e.attr(r,"class","CashierMethodList"),e.attr(t,"class","CashierMethodListWidget")},m(d,h){e.insert(d,t,h),a&&a.m(t,null),e.append(t,s),e.append(t,r),u.m(r,null),e.append(t,o),c&&c.m(t,null),n[35](t)},p(d,h){d[15]?a&&(a.d(1),a=null):a?a.p(d,h):(a=Le(d),a.c(),a.m(t,s)),m===(m=l(d))&&u?u.p(d,h):(u.d(1),u=m(d),u&&(u.c(),u.m(r,null))),d[10]?c?c.p(d,h):(c=De(d),c.c(),c.m(t,null)):c&&(c.d(1),c=null)},d(d){d&&e.detach(t),a&&a.d(),u.d(),c&&c.d(),n[35](null)}}}function Le(n){let t,s,r=n[17]("FE.otherMethodsTitle")+"",o,a,l,m=n[17]("FE.otherMethodsDescription")+"",u;return{c(){t=e.element("div"),s=e.element("h3"),o=e.text(r),a=e.space(),l=e.element("p"),u=e.text(m),e.attr(t,"class","MethodsListDescription")},m(c,d){e.insert(c,t,d),e.append(t,s),e.append(s,o),e.append(t,a),e.append(t,l),e.append(l,u)},p(c,d){d[0]&131072&&r!==(r=c[17]("FE.otherMethodsTitle")+"")&&e.set_data(o,r),d[0]&131072&&m!==(m=c[17]("FE.otherMethodsDescription")+"")&&e.set_data(u,m)},d(c){c&&e.detach(t)}}}function Be(n){let t,s=e.ensure_array_like(n[11]),r=[];for(let o=0;o<s.length;o+=1)r[o]=Te(Fe(n,s,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();t=e.empty()},m(o,a){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(o,a);e.insert(o,t,a)},p(o,a){if(a[0]&469824){s=e.ensure_array_like(o[11]);let l;for(l=0;l<s.length;l+=1){const m=Fe(o,s,l);r[l]?r[l].p(m,a):(r[l]=Te(m),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=s.length}},d(o){o&&e.detach(t),e.destroy_each(r,o)}}}function Ye(n){let t,s,r,o=n[17]("FE.error")+"",a,l,m,u=n[17]("FE.noPaymentMethods")+"",c;return{c(){t=e.element("div"),s=e.element("div"),r=e.element("p"),a=e.text(o),l=e.space(),m=e.element("p"),c=e.text(u),e.attr(r,"class","EmptyContentMessageTitle"),e.attr(m,"class","EmptyContentMessageText"),e.attr(s,"class","EmptyContentMessageContent"),e.attr(t,"class","EmptyContentMessageWrapper"),e.toggle_class(t,"EmptyContentMessageDesktop",n[13])},m(d,h){e.insert(d,t,h),e.append(t,s),e.append(s,r),e.append(r,a),e.append(s,l),e.append(s,m),e.append(m,c)},p(d,h){h[0]&131072&&o!==(o=d[17]("FE.error")+"")&&e.set_data(a,o),h[0]&131072&&u!==(u=d[17]("FE.noPaymentMethods")+"")&&e.set_data(c,u),h[0]&8192&&e.toggle_class(t,"EmptyContentMessageDesktop",d[13])},d(d){d&&e.detach(t)}}}function ke(n){let t,s=n[17]("FE.favorite")+"",r;return{c(){t=e.element("p"),r=e.text(s)},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&131072&&s!==(s=o[17]("FE.favorite")+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function Ce(n){let t,s=n[17](`FE.${n[6].charAt(0).toLowerCase()}${n[6].slice(1)}${n[59].ProcessingTime}`)+"",r;return{c(){t=e.element("span"),r=e.text(s),e.attr(t,"class","PaymentProcessing")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&133184&&s!==(s=o[17](`FE.${o[6].charAt(0).toLowerCase()}${o[6].slice(1)}${o[59].ProcessingTime}`)+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function Pe(n){let t,s=n[17](`FE.${n[6].charAt(0).toLowerCase()}${n[6].slice(1)}${n[59].ProcessingTime}`)+"",r;return{c(){t=e.element("span"),r=e.text(s),e.attr(t,"class","PaymentProcessing")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&133184&&s!==(s=o[17](`FE.${o[6].charAt(0).toLowerCase()}${o[6].slice(1)}${o[59].ProcessingTime}`)+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function Te(n){var K,Q,$,X,ae,le,ce,de;let t,s,r,o,a,l,m,u,c,d,h,U=(n[59].Label||n[59].Name)+"",W,C,z,S,k,P,A=n[17]("FE.generalMin")+"",H,G,I=e.formatCurrency(n[59].DisplayCurrency.MinAmountLimit,n[59].DisplayCurrency.Name,{maximumFractionDigits:n[8][(Q=(K=n[59])==null?void 0:K.DisplayCurrency)==null?void 0:Q.Name]||n[16],minimumFractionDigits:n[8][(X=($=n[59])==null?void 0:$.DisplayCurrency)==null?void 0:X.Name]||n[16]})+"",B,R,T,O=n[17]("FE.generalMax")+"",Y,F,V=e.formatCurrency(n[59].DisplayCurrency.MaxAmountLimit,n[59].DisplayCurrency.Name,{maximumFractionDigits:n[8][(le=(ae=n[59])==null?void 0:ae.DisplayCurrency)==null?void 0:le.Name]||n[16],minimumFractionDigits:n[8][(de=(ce=n[59])==null?void 0:ce.DisplayCurrency)==null?void 0:de.Name]||n[16]})+"",Z,v,j,N,E,p=n[59].isMethodPromoted&&ke(n),y=!n[13]&&Ce(n),w=n[13]&&Pe(n);function J(){return n[33](n[59])}return{c(){t=e.element("div"),s=e.element("div"),r=e.element("img"),l=e.space(),m=e.element("div"),p&&p.c(),u=e.space(),c=e.element("div"),d=e.element("div"),h=e.element("span"),W=e.text(U),C=e.space(),y&&y.c(),z=e.space(),S=e.element("div"),k=e.element("span"),P=e.element("p"),H=e.text(A),G=e.space(),B=e.text(I),R=e.space(),T=e.element("p"),Y=e.text(O),F=e.space(),Z=e.text(V),v=e.space(),w&&w.c(),j=e.space(),e.src_url_equal(r.src,o=n[59].LogoRelativeUrl?`${window.origin}${n[59].LogoRelativeUrl}`:n[59].LogoUrl)||e.attr(r,"src",o),e.attr(r,"alt",a=n[59].Label),e.attr(s,"class","MethodLogo"),e.attr(m,"class","MethodFavorite"),e.attr(d,"class","MethodTitle"),e.attr(k,"class","Limits"),e.attr(S,"class","MethodLimits"),e.attr(c,"class","MethodInfo"),e.attr(t,"class","SelectorWrapper"),e.toggle_class(t,"checked",n[9]===n[59].Name)},m(q,M){e.insert(q,t,M),e.append(t,s),e.append(s,r),e.append(t,l),e.append(t,m),p&&p.m(m,null),e.append(t,u),e.append(t,c),e.append(c,d),e.append(d,h),e.append(h,W),e.append(c,C),y&&y.m(c,null),e.append(c,z),e.append(c,S),e.append(S,k),e.append(k,P),e.append(P,H),e.append(P,G),e.append(P,B),e.append(k,R),e.append(k,T),e.append(T,Y),e.append(T,F),e.append(T,Z),e.append(c,v),w&&w.m(c,null),e.append(t,j),N||(E=[e.listen(t,"click",J),e.listen(t,"keyup",Ze)],N=!0)},p(q,M){var ee,me,ue,te,he,fe,ne,se;n=q,M[0]&2048&&!e.src_url_equal(r.src,o=n[59].LogoRelativeUrl?`${window.origin}${n[59].LogoRelativeUrl}`:n[59].LogoUrl)&&e.attr(r,"src",o),M[0]&2048&&a!==(a=n[59].Label)&&e.attr(r,"alt",a),n[59].isMethodPromoted?p?p.p(n,M):(p=ke(n),p.c(),p.m(m,null)):p&&(p.d(1),p=null),M[0]&2048&&U!==(U=(n[59].Label||n[59].Name)+"")&&e.set_data(W,U),n[13]?y&&(y.d(1),y=null):y?y.p(n,M):(y=Ce(n),y.c(),y.m(c,z)),M[0]&131072&&A!==(A=n[17]("FE.generalMin")+"")&&e.set_data(H,A),M[0]&67840&&I!==(I=e.formatCurrency(n[59].DisplayCurrency.MinAmountLimit,n[59].DisplayCurrency.Name,{maximumFractionDigits:n[8][(me=(ee=n[59])==null?void 0:ee.DisplayCurrency)==null?void 0:me.Name]||n[16],minimumFractionDigits:n[8][(te=(ue=n[59])==null?void 0:ue.DisplayCurrency)==null?void 0:te.Name]||n[16]})+"")&&e.set_data(B,I),M[0]&131072&&O!==(O=n[17]("FE.generalMax")+"")&&e.set_data(Y,O),M[0]&67840&&V!==(V=e.formatCurrency(n[59].DisplayCurrency.MaxAmountLimit,n[59].DisplayCurrency.Name,{maximumFractionDigits:n[8][(fe=(he=n[59])==null?void 0:he.DisplayCurrency)==null?void 0:fe.Name]||n[16],minimumFractionDigits:n[8][(se=(ne=n[59])==null?void 0:ne.DisplayCurrency)==null?void 0:se.Name]||n[16]})+"")&&e.set_data(Z,V),n[13]?w?w.p(n,M):(w=Pe(n),w.c(),w.m(c,null)):w&&(w.d(1),w=null),M[0]&2560&&e.toggle_class(t,"checked",n[9]===n[59].Name)},d(q){q&&e.detach(t),p&&p.d(),y&&y.d(),w&&w.d(),N=!1,e.run_all(E)}}}function De(n){let t,s,r,o;return{c(){t=e.element("div"),s=e.text(n[10]),e.attr(t,"class","ShowAllButton")},m(a,l){e.insert(a,t,l),e.append(t,s),r||(o=e.listen(t,"click",n[34]),r=!0)},p(a,l){l[0]&1024&&e.set_data(s,a[10])},d(a){a&&e.detach(t),r=!1,o()}}}function Se(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,a){e.insert(o,t,a),e.append(t,s),e.append(s,r)},p(o,a){a[0]&4096&&e.set_data(r,o[12]),a[0]&1&&e.set_custom_element_data(t,"lang",o[0]),a[0]&2&&e.set_custom_element_data(t,"assetsurl",o[1]),a[0]&4&&e.set_custom_element_data(t,"translationurl",o[2]),a[0]&32&&e.set_custom_element_data(t,"clientstylingurl",o[5]),a[0]&16&&e.set_custom_element_data(t,"clientstyling",o[4]),a[0]&8&&e.set_custom_element_data(t,"mbsource",o[3])},d(o){o&&e.detach(t)}}}function Ve(n){let t,s,r=n[14]&&ve(n),o=n[12]&&Se(n);return{c(){r&&r.c(),t=e.space(),o&&o.c(),s=e.empty()},m(a,l){r&&r.m(a,l),e.insert(a,t,l),o&&o.m(a,l),e.insert(a,s,l)},p(a,l){a[14]?r?r.p(a,l):(r=ve(a),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),a[12]?o?o.p(a,l):(o=Se(a),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null)},i:e.noop,o:e.noop,d(a){a&&(e.detach(t),e.detach(s)),r&&r.d(a),o&&o.d(a)}}}const Xe="PaymentPromotion",Ze=()=>{};function Je(n,t,s){let r,o,a;e.component_subscribe(n,He,i=>s(17,o=i)),e.component_subscribe(n,ie.xPaymentSessionToken,i=>s(43,a=i)),ie.dayjs.extend(ie.utc);let{lang:l="en"}=t,{local:m="en-US"}=t,{endpoint:u}=t,{paymentsession:c}=t,{playersession:d}=t,{customerid:h}=t,{assetsurl:U}=t,{currency:W}=t,{numberofmethodsshown:C}=t,{translationurl:z=""}=t,{mbsource:S}=t,{clientstyling:k}=t,{clientstylingurl:P}=t,{currencydecimals:A="0"}=t,{currencysymbol:H=""}=t,{currencyposition:G=""}=t,{promotedmethods:I="false"}=t,{type:B}=t,{userroles:R=""}=t,{usecashiertranslations:T="false"}=t,O,Y={},F,V,Z=window.navigator.userAgent,v=[],j,N="",E=[],p=[],y="",w,J=!0,K=!1,Q=!1,$=[];var X;(function(i){i.PlayerSessionIsNotValid="PlayerSessionIsNotValid",i.Success="Success",i.JwtTokenError="JwtTokenError"})(X||(X={}));const ae=()=>{let i=z;if(i)return fetch(i).then(f=>f.json()).then(f=>{Object.keys(f).forEach(D=>{be(D,f[D])})}).catch(f=>{console.log(f)})};T=="false"&&Object.keys(Ee).forEach(i=>{be(i,Ee[i])});const le=()=>{qe(l)},ce=i=>{a&&de(i)},de=i=>{const{currency:f}=i,g=O!==void 0&&O!==f?"MetadataLoading":"DataLoading";O=f,window.postMessage({type:g,isDataLoaded:!1},window.location.href);const _=new URL(`${u}/v2/player/${h}/payment/GetPaymentMetadata`),L=new Headers;L.append("accept","application/json"),L.append("Content-Type","application/json"),L.append("X-Client-Request-Timestamp",ie.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS")),L.append("X-SessionId",`${d}`),L.append("X-Payment-Session-Token",`${c||a}`),$.indexOf("MM_CHANNEL_BETA")!=-1&&L.append("MM_CHANNEL","BETA");const x={method:"POST",headers:L,mode:"cors",body:JSON.stringify(ge(pe({},f&&{Currency:f}),{Tags:{UserAgent:window.navigator.userAgent}}))};fetch(_,x).then(b=>{const oe=b.headers.get("X-Payment-Session-Token");return oe&&ie.xPaymentSessionToken.set(oe),b.json()}).then(b=>{var oe;if(b.error){s(12,y=b.error);return}if(b.ResponseCode!==X.Success){w=b.ResponseCode,me();return}v=(oe=b.PaymentMethods)!=null&&oe.Ordering?q(b):M(b),window.postMessage({type:"PromotedPaymentMethods",promotedPaymentMethods:p},window.location.href),s(10,N=C&&+C>0&&v.length>+C?o("FE.showAll"):""),s(11,E=N?v.slice(0,+C):v),I=="false"&&s(11,E=E.sort((ye,we)=>ye.isMethodPromoted&&!we.isMethodPromoted?-1:!ye.isMethodPromoted&&we.isMethodPromoted?1:0)),s(15,Q=!E.length),window.postMessage({type:"StartSessionCountdown",paymentMethodName:v[0].Name},window.location.href),window.postMessage({type:g,isDataLoaded:!0},window.location.href)}).finally(()=>{s(14,K=!0),window.postMessage({type:g,isDataLoaded:!0},window.location.href)})},q=i=>{const f=[];return p=[],i.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(D=>{const g=i.PaymentMethods.PaymentMethods.find(_=>_.Name===D);if(g){const _=(g==null?void 0:g.Logos.find(b=>b.LogoType==="Desktop"))||{},L=(g==null?void 0:g.Logos.find(b=>b.LogoType==="Mobile"))||{},x=J?_:L;g.isMethodPromoted=ne(g.Tags),g.LogoUrl=x.LogoUrl?`https:${x.LogoUrl}`:"",g.isMethodPromoted&&p.push(g),f.push(g)}}),f},M=i=>{const f=i.PaymentMethods.PaymentMethods.map(_=>ge(pe({},_),{isMethodPromoted:ne(_.Tags),LogoUrl:_.Logos&&_.Logos.length&&_.Logos[0].LogoUrl?`https:${_.Logos[0].LogoUrl}`:""})),[D,g]=f.reduce(([_,L],x)=>(x&&x.isMethodPromoted?_.push(x):L.promo(x),[_,L]),[[],[]]);return p=D,g},ee=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}))},me=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:w},window.location.href)},ue=()=>{s(13,J=!e.isMobile(Z))},te=()=>{E==v?fe():he()},he=()=>{s(11,E=v),s(10,N=o("FE.showLess"))},fe=()=>{s(11,E=v.slice(0,+C)),j&&!E.find(i=>i.Name===j)&&E.splice(0,0,v.find(i=>i.Name===j)),s(10,N=o("FE.showAll"))},ne=i=>i&&i.split(",").some(f=>f===Xe),se=i=>{var D;const{data:{type:f}={}}=i||{};switch(f){case"PrecisionCurrenciesMap":{s(8,Y=((D=i==null?void 0:i.data)==null?void 0:D.payload)||{});break}}},Ne=()=>{R.length>0&&($=R.split(","))};e.onMount(()=>(ue(),e.initCurrencyFormatter(m,H,G,A),window.postMessage({type:"CashierMethodsListReady"},window.location.href),window.addEventListener("message",se),()=>{window.removeEventListener("message",se)}));const xe=i=>ee(i),ze=()=>te();function Ie(i){e.binding_callbacks[i?"unshift":"push"](()=>{F=i,s(7,F)})}return n.$$set=i=>{"lang"in i&&s(0,l=i.lang),"local"in i&&s(20,m=i.local),"endpoint"in i&&s(21,u=i.endpoint),"paymentsession"in i&&s(22,c=i.paymentsession),"playersession"in i&&s(23,d=i.playersession),"customerid"in i&&s(24,h=i.customerid),"assetsurl"in i&&s(1,U=i.assetsurl),"currency"in i&&s(25,W=i.currency),"numberofmethodsshown"in i&&s(26,C=i.numberofmethodsshown),"translationurl"in i&&s(2,z=i.translationurl),"mbsource"in i&&s(3,S=i.mbsource),"clientstyling"in i&&s(4,k=i.clientstyling),"clientstylingurl"in i&&s(5,P=i.clientstylingurl),"currencydecimals"in i&&s(27,A=i.currencydecimals),"currencysymbol"in i&&s(28,H=i.currencysymbol),"currencyposition"in i&&s(29,G=i.currencyposition),"promotedmethods"in i&&s(30,I=i.promotedmethods),"type"in i&&s(6,B=i.type),"userroles"in i&&s(31,R=i.userroles),"usecashiertranslations"in i&&s(32,T=i.usecashiertranslations)},n.$$.update=()=>{n.$$.dirty[1]&1&&R&&Ne(),n.$$.dirty[0]&56623104&&u&&!c&&h&&ce({currency:W}),n.$$.dirty[0]&1&&l&&le(),n.$$.dirty[0]&144&&k&&F&&e.setClientStyling(F,k),n.$$.dirty[0]&160&&P&&F&&e.setClientStylingURL(F,P),n.$$.dirty[0]&136&&S&&F&&e.setStreamStyling(F,`${S}.Style`,V),n.$$.dirty[0]&5|n.$$.dirty[1]&2&&T=="false"&&l&&z&&ae(),n.$$.dirty[0]&134217728&&s(16,r=Number(A))},[l,U,z,S,k,P,B,F,Y,j,N,E,y,J,K,Q,r,o,ee,te,m,u,c,d,h,W,C,A,H,G,I,R,T,xe,ze,Ie]}class Ae extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,Je,Ve,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,usecashiertranslations:32},Ge,[-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()}get usecashiertranslations(){return this.$$.ctx[32]}set usecashiertranslations(t){this.$$set({usecashiertranslations:t}),e.flush()}}e.create_custom_element(Ae,{lang:{},local:{},endpoint:{},paymentsession:{},playersession:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},mbsource:{},clientstyling:{},clientstylingurl:{},currencydecimals:{},currencysymbol:{},currencyposition:{},promotedmethods:{},type:{},userroles:{},usecashiertranslations:{}},[],[],!0);exports.default=Ae;
|
|
@@ -14,38 +14,38 @@ var F = (i, e, t) => new Promise((n, a) => {
|
|
|
14
14
|
}, g = (p) => p.done ? n(p.value) : Promise.resolve(p.value).then(f, h);
|
|
15
15
|
g((t = t.apply(i, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { S as ie,
|
|
17
|
+
import { S as ie, d as ne, s as oe, f as M, e as le, h as S, t as O, j as z, a6 as se, a7 as ae, m as H, o as x, v as re, T as j, g as B, u as Y, k as D, l as q, W as T, n as v, a8 as de, p as W, q as m, L as ce, A as I, H as fe, z as ue, X as R, D as he, E as me, F as ge, G as pe } from "./CashierCarousel-CwYg_hFh.js";
|
|
18
18
|
function we(i) {
|
|
19
19
|
le(i, "svelte-e2luo5", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}@container (min-width: 500px){.ModalContainer{min-width:450px}}.ModalContainer{min-width:380px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:1;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-medium, 600)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.Uppercase{text-transform:uppercase}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.CloseButton{fill:var(--emw--color-white, #fff);stroke:var(--emw--color-white, #fff);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}');
|
|
20
20
|
}
|
|
21
|
-
const ye = (i) => ({}), U = (i) => ({}), _e = (i) => ({}),
|
|
22
|
-
function
|
|
21
|
+
const ye = (i) => ({}), U = (i) => ({}), _e = (i) => ({}), A = (i) => ({});
|
|
22
|
+
function G(i) {
|
|
23
23
|
let e, t, n, a, f, h, g, p, C, b, k, u, d = (
|
|
24
24
|
/*modaltype*/
|
|
25
25
|
(i[3] == "error" || /*modaltype*/
|
|
26
|
-
i[3] == "bonusDescription") &&
|
|
26
|
+
i[3] == "bonusDescription") && P()
|
|
27
27
|
);
|
|
28
28
|
const w = (
|
|
29
29
|
/*#slots*/
|
|
30
30
|
i[14].title
|
|
31
|
-
), y =
|
|
31
|
+
), y = B(
|
|
32
32
|
w,
|
|
33
33
|
i,
|
|
34
34
|
/*$$scope*/
|
|
35
35
|
i[13],
|
|
36
|
-
|
|
36
|
+
A
|
|
37
37
|
);
|
|
38
38
|
let r = (
|
|
39
39
|
/*modaltype*/
|
|
40
|
-
i[3] != "2fa-old" &&
|
|
40
|
+
i[3] != "2fa-old" && X(i)
|
|
41
41
|
), l = (
|
|
42
42
|
/*isloading*/
|
|
43
|
-
i[4] === "true" &&
|
|
43
|
+
i[4] === "true" && Z()
|
|
44
44
|
);
|
|
45
45
|
const L = (
|
|
46
46
|
/*#slots*/
|
|
47
47
|
i[14].content
|
|
48
|
-
), c =
|
|
48
|
+
), c = B(
|
|
49
49
|
L,
|
|
50
50
|
i,
|
|
51
51
|
/*$$scope*/
|
|
@@ -54,7 +54,7 @@ function A(i) {
|
|
|
54
54
|
);
|
|
55
55
|
return {
|
|
56
56
|
c() {
|
|
57
|
-
e = x("div"), t = x("div"), n = x("div"), a = x("div"), d && d.c(), f =
|
|
57
|
+
e = x("div"), t = x("div"), n = x("div"), a = x("div"), d && d.c(), f = W(), h = x("div"), y && y.c(), g = W(), r && r.c(), p = W(), l && l.c(), C = W(), b = x("div"), c && c.c(), m(h, "class", "TitleText"), m(a, "class", "ModalTitle"), m(n, "class", "ModalHeader"), m(b, "class", "ModalContentWrapper"), T(
|
|
58
58
|
b,
|
|
59
59
|
"hidden",
|
|
60
60
|
/*isloading*/
|
|
@@ -84,8 +84,8 @@ function A(i) {
|
|
|
84
84
|
p(s, _) {
|
|
85
85
|
/*modaltype*/
|
|
86
86
|
s[3] == "error" || /*modaltype*/
|
|
87
|
-
s[3] == "bonusDescription" ? d || (d =
|
|
88
|
-
8192) &&
|
|
87
|
+
s[3] == "bonusDescription" ? d || (d = P(), d.c(), d.m(a, f)) : d && (d.d(1), d = null), y && y.p && (!u || _ & /*$$scope*/
|
|
88
|
+
8192) && Y(
|
|
89
89
|
y,
|
|
90
90
|
w,
|
|
91
91
|
s,
|
|
@@ -101,11 +101,11 @@ function A(i) {
|
|
|
101
101
|
/*$$scope*/
|
|
102
102
|
s[13]
|
|
103
103
|
),
|
|
104
|
-
|
|
104
|
+
A
|
|
105
105
|
), /*modaltype*/
|
|
106
|
-
s[3] != "2fa-old" ? r ? r.p(s, _) : (r =
|
|
107
|
-
s[4] === "true" ? l || (l =
|
|
108
|
-
8192) &&
|
|
106
|
+
s[3] != "2fa-old" ? r ? r.p(s, _) : (r = X(s), r.c(), r.m(n, null)) : r && (r.d(1), r = null), /*isloading*/
|
|
107
|
+
s[4] === "true" ? l || (l = Z(), l.c(), l.m(t, C)) : l && (l.d(1), l = null), c && c.p && (!u || _ & /*$$scope*/
|
|
108
|
+
8192) && Y(
|
|
109
109
|
c,
|
|
110
110
|
L,
|
|
111
111
|
s,
|
|
@@ -153,7 +153,7 @@ function A(i) {
|
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function P(i) {
|
|
157
157
|
let e;
|
|
158
158
|
return {
|
|
159
159
|
c() {
|
|
@@ -167,7 +167,7 @@ function G(i) {
|
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function X(i) {
|
|
171
171
|
let e, t, n, a, f;
|
|
172
172
|
return {
|
|
173
173
|
c() {
|
|
@@ -187,7 +187,7 @@ function N(i) {
|
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Z(i) {
|
|
191
191
|
let e;
|
|
192
192
|
return {
|
|
193
193
|
c() {
|
|
@@ -204,7 +204,7 @@ function P(i) {
|
|
|
204
204
|
function be(i) {
|
|
205
205
|
let e, t, n = (
|
|
206
206
|
/*show*/
|
|
207
|
-
i[2] === "true" &&
|
|
207
|
+
i[2] === "true" && G(i)
|
|
208
208
|
);
|
|
209
209
|
return {
|
|
210
210
|
c() {
|
|
@@ -216,7 +216,7 @@ function be(i) {
|
|
|
216
216
|
p(a, [f]) {
|
|
217
217
|
/*show*/
|
|
218
218
|
a[2] === "true" ? n ? (n.p(a, f), f & /*show*/
|
|
219
|
-
4 && z(n, 1)) : (n =
|
|
219
|
+
4 && z(n, 1)) : (n = G(a), n.c(), z(n, 1), n.m(e, null)) : n && (se(), O(n, 1, 1, () => {
|
|
220
220
|
n = null;
|
|
221
221
|
}), ae());
|
|
222
222
|
},
|
|
@@ -269,26 +269,26 @@ function ve(i, e, t) {
|
|
|
269
269
|
c && clearTimeout(c), s && clearTimeout(c);
|
|
270
270
|
};
|
|
271
271
|
});
|
|
272
|
-
function
|
|
273
|
-
|
|
272
|
+
function J(o) {
|
|
273
|
+
I[o ? "unshift" : "push"](() => {
|
|
274
274
|
r = o, t(7, r);
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
|
|
277
|
+
function K(o) {
|
|
278
|
+
I[o ? "unshift" : "push"](() => {
|
|
279
279
|
l = o, t(8, l);
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
|
|
282
|
+
function N(o) {
|
|
283
|
+
I[o ? "unshift" : "push"](() => {
|
|
284
284
|
d = o, t(6, d);
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
287
|
function Q() {
|
|
288
288
|
k = this.clientWidth, u = this.clientHeight, t(0, k), t(1, u);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
|
|
290
|
+
function V(o) {
|
|
291
|
+
I[o ? "unshift" : "push"](() => {
|
|
292
292
|
w = o, t(5, w);
|
|
293
293
|
});
|
|
294
294
|
}
|
|
@@ -318,11 +318,11 @@ function ve(i, e, t) {
|
|
|
318
318
|
g,
|
|
319
319
|
a,
|
|
320
320
|
n,
|
|
321
|
-
V,
|
|
322
321
|
J,
|
|
323
322
|
K,
|
|
323
|
+
N,
|
|
324
324
|
Q,
|
|
325
|
-
|
|
325
|
+
V
|
|
326
326
|
];
|
|
327
327
|
}
|
|
328
328
|
class Ce extends ie {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var M=(n,t,i)=>new Promise((o,r)=>{var u=p=>{try{g(i.next(p))}catch(v){r(v)}},m=p=>{try{g(i.throw(p))}catch(v){r(v)}},g=p=>p.done?o(p.value):Promise.resolve(p.value).then(u,m);g((i=i.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-BekweMPA.cjs");function P(n){e.append_styles(n,"svelte-e2luo5",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}@container (min-width: 500px){.ModalContainer{min-width:450px}}.ModalContainer{min-width:380px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:1;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-medium, 600)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.Uppercase{text-transform:uppercase}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.CloseButton{fill:var(--emw--color-white, #fff);stroke:var(--emw--color-white, #fff);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}')}const R=n=>({}),L=n=>({}),U=n=>({}),T=n=>({});function S(n){let t,i,o,r,u,m,g,p,v,b,C,h,c=(n[3]=="error"||n[3]=="bonusDescription")&&z();const _=n[14].title,w=e.create_slot(_,n,n[13],T);let d=n[3]!="2fa-old"&&H(n),s=n[4]==="true"&&I();const x=n[14].content,f=e.create_slot(x,n,n[13],L);return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),r=e.element("div"),c&&c.c(),u=e.space(),m=e.element("div"),w&&w.c(),g=e.space(),d&&d.c(),p=e.space(),s&&s.c(),v=e.space(),b=e.element("div"),f&&f.c(),e.attr(m,"class","TitleText"),e.attr(r,"class","ModalTitle"),e.attr(o,"class","ModalHeader"),e.attr(b,"class","ModalContentWrapper"),e.toggle_class(b,"hidden",n[4]==="true"),e.attr(i,"class","ModalContainer"),e.toggle_class(i,"video-mode",n[3]==="video"),e.toggle_class(i,"twofa-mode",n[3]==="2fa"),e.attr(t,"id","Modal"),e.add_render_callback(()=>n[18].call(t))},m(a,y){e.insert(a,t,y),e.append(t,i),e.append(i,o),e.append(o,r),c&&c.m(r,null),e.append(r,u),e.append(r,m),w&&w.m(m,null),e.append(o,g),d&&d.m(o,null),e.append(i,p),s&&s.m(i,null),e.append(i,v),e.append(i,b),f&&f.m(b,null),n[15](b),n[16](i),n[17](t),C=e.add_iframe_resize_listener(t,n[18].bind(t)),h=!0},p(a,y){a[3]=="error"||a[3]=="bonusDescription"?c||(c=z(),c.c(),c.m(r,u)):c&&(c.d(1),c=null),w&&w.p&&(!h||y&8192)&&e.update_slot_base(w,_,a,a[13],h?e.get_slot_changes(_,a[13],y,U):e.get_all_dirty_from_scope(a[13]),T),a[3]!="2fa-old"?d?d.p(a,y):(d=H(a),d.c(),d.m(o,null)):d&&(d.d(1),d=null),a[4]==="true"?s||(s=I(),s.c(),s.m(i,v)):s&&(s.d(1),s=null),f&&f.p&&(!h||y&8192)&&e.update_slot_base(f,x,a,a[13],h?e.get_slot_changes(x,a[13],y,R):e.get_all_dirty_from_scope(a[13]),L),(!h||y&16)&&e.toggle_class(b,"hidden",a[4]==="true"),(!h||y&8)&&e.toggle_class(i,"video-mode",a[3]==="video"),(!h||y&8)&&e.toggle_class(i,"twofa-mode",a[3]==="2fa")},i(a){h||(e.transition_in(w,a),e.transition_in(f,a),h=!0)},o(a){e.transition_out(w,a),e.transition_out(f,a),h=!1},d(a){a&&e.detach(t),c&&c.d(),w&&w.d(a),d&&d.d(),s&&s.d(),f&&f.d(a),n[15](null),n[16](null),n[17](null),C()}}}function z(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>',e.attr(t,"class","WarningIcon")},m(i,o){e.insert(i,t,o)},d(i){i&&e.detach(t)}}}function H(n){let t,i,o,r,u;return{c(){t=e.element("div"),i=e.svg_element("svg"),o=e.svg_element("path"),e.attr(o,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),e.attr(i,"xmlns","http://www.w3.org/2000/svg"),e.attr(i,"viewBox","0 0 13 13"),e.attr(i,"fill","none"),e.attr(i,"class","CloseButton"),e.attr(t,"class","ModalCloseIcon")},m(m,g){e.insert(m,t,g),e.append(t,i),e.append(i,o),r||(u=e.listen(i,"click",n[9]),r=!0)},p:e.noop,d(m){m&&e.detach(t),r=!1,u()}}}function I(n){let t;return{c(){t=e.element("div"),t.innerHTML='<div class="ModalLoader"></div>',e.attr(t,"class","ModalLoadingOverlay")},m(i,o){e.insert(i,t,o)},d(i){i&&e.detach(t)}}}function Z(n){let t,i,o=n[2]==="true"&&S(n);return{c(){t=e.element("div"),o&&o.c()},m(r,u){e.insert(r,t,u),o&&o.m(t,null),n[19](t),i=!0},p(r,[u]){r[2]==="true"?o?(o.p(r,u),u&4&&e.transition_in(o,1)):(o=S(r),o.c(),e.transition_in(o,1),o.m(t,null)):o&&(e.group_outros(),e.transition_out(o,1,1,()=>{o=null}),e.check_outros())},i(r){i||(e.transition_in(o),i=!0)},o(r){e.transition_out(o),i=!1},d(r){r&&e.detach(t),o&&o.d(),n[19](null)}}}function A(n,t,i){let{$$slots:o={},$$scope:r}=t,{mbsource:u}=t,{clientstyling:m}=t,{clientstylingurl:g}=t,{show:p}=t,{modaltype:v=""}=t,{isloading:b="false"}=t,{width:C}=t,{height:h}=t,c,_,w,d,s,x=!1,f,a;const y=()=>{f&&clearTimeout(f),c&&(c.classList.add("closing"),window.dispatchEvent(new CustomEvent("manualClosePopup")),f=setTimeout(()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"closed",data:{}}}))},200))},k=()=>M(this,null,function*(){if(!s||!d||x)return;a&&clearTimeout(f),x=!0;const l=s.offsetWidth,Y=s.offsetHeight;i(8,s.style.width=`${l}px`,s),i(8,s.style.height=`${Y}px`,s),s.offsetHeight,yield e.tick();const q=d.scrollHeight,D=d.scrollWidth;i(8,s.style.width=`${D}px`,s),i(8,s.style.height=`${q}px`,s),a=setTimeout(()=>{s&&(i(8,s.style.width="auto",s),i(8,s.style.height="auto",s)),x=!1},300)});e.onMount(()=>{if(e.tick().then(()=>{k()}),d){const l=new ResizeObserver(()=>{k()});return l.observe(d),()=>{l.disconnect()}}return()=>{f&&clearTimeout(f),a&&clearTimeout(f)}});function O(l){e.binding_callbacks[l?"unshift":"push"](()=>{d=l,i(7,d)})}function E(l){e.binding_callbacks[l?"unshift":"push"](()=>{s=l,i(8,s)})}function j(l){e.binding_callbacks[l?"unshift":"push"](()=>{c=l,i(6,c)})}function B(){C=this.clientWidth,h=this.clientHeight,i(0,C),i(1,h)}function F(l){e.binding_callbacks[l?"unshift":"push"](()=>{_=l,i(5,_)})}return n.$$set=l=>{"mbsource"in l&&i(10,u=l.mbsource),"clientstyling"in l&&i(11,m=l.clientstyling),"clientstylingurl"in l&&i(12,g=l.clientstylingurl),"show"in l&&i(2,p=l.show),"modaltype"in l&&i(3,v=l.modaltype),"isloading"in l&&i(4,b=l.isloading),"width"in l&&i(0,C=l.width),"height"in l&&i(1,h=l.height),"$$scope"in l&&i(13,r=l.$$scope)},n.$$.update=()=>{n.$$.dirty&16&&b&&e.tick().then(()=>{k()}),n.$$.dirty&2080&&m&&_&&e.setClientStyling(_,m),n.$$.dirty&4128&&g&&_&&e.setClientStylingURL(_,g),n.$$.dirty&1056&&u&&_&&e.setStreamStyling(_,`${u}.Style`,w)},[C,h,p,v,b,_,c,d,s,y,u,m,g,r,o,O,E,j,B,F]}class W extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,A,Z,e.safe_not_equal,{mbsource:10,clientstyling:11,clientstylingurl:12,show:2,modaltype:3,isloading:4,width:0,height:1},P)}get mbsource(){return this.$$.ctx[10]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get show(){return this.$$.ctx[2]}set show(t){this.$$set({show:t}),e.flush()}get modaltype(){return this.$$.ctx[3]}set modaltype(t){this.$$set({modaltype:t}),e.flush()}get isloading(){return this.$$.ctx[4]}set isloading(t){this.$$set({isloading: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(W,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},modaltype:{},isloading:{},width:{},height:{}},["title","content"],[],!0);exports.default=W;
|
|
1
|
+
"use strict";var M=(n,t,i)=>new Promise((o,r)=>{var u=p=>{try{g(i.next(p))}catch(v){r(v)}},m=p=>{try{g(i.throw(p))}catch(v){r(v)}},g=p=>p.done?o(p.value):Promise.resolve(p.value).then(u,m);g((i=i.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-BM-KceW7.cjs");function P(n){e.append_styles(n,"svelte-e2luo5",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}@container (min-width: 500px){.ModalContainer{min-width:450px}}.ModalContainer{min-width:380px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:1;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-medium, 600)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.Uppercase{text-transform:uppercase}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.CloseButton{fill:var(--emw--color-white, #fff);stroke:var(--emw--color-white, #fff);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}')}const R=n=>({}),L=n=>({}),U=n=>({}),T=n=>({});function S(n){let t,i,o,r,u,m,g,p,v,b,C,h,c=(n[3]=="error"||n[3]=="bonusDescription")&&z();const _=n[14].title,w=e.create_slot(_,n,n[13],T);let d=n[3]!="2fa-old"&&H(n),s=n[4]==="true"&&I();const x=n[14].content,f=e.create_slot(x,n,n[13],L);return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),r=e.element("div"),c&&c.c(),u=e.space(),m=e.element("div"),w&&w.c(),g=e.space(),d&&d.c(),p=e.space(),s&&s.c(),v=e.space(),b=e.element("div"),f&&f.c(),e.attr(m,"class","TitleText"),e.attr(r,"class","ModalTitle"),e.attr(o,"class","ModalHeader"),e.attr(b,"class","ModalContentWrapper"),e.toggle_class(b,"hidden",n[4]==="true"),e.attr(i,"class","ModalContainer"),e.toggle_class(i,"video-mode",n[3]==="video"),e.toggle_class(i,"twofa-mode",n[3]==="2fa"),e.attr(t,"id","Modal"),e.add_render_callback(()=>n[18].call(t))},m(a,y){e.insert(a,t,y),e.append(t,i),e.append(i,o),e.append(o,r),c&&c.m(r,null),e.append(r,u),e.append(r,m),w&&w.m(m,null),e.append(o,g),d&&d.m(o,null),e.append(i,p),s&&s.m(i,null),e.append(i,v),e.append(i,b),f&&f.m(b,null),n[15](b),n[16](i),n[17](t),C=e.add_iframe_resize_listener(t,n[18].bind(t)),h=!0},p(a,y){a[3]=="error"||a[3]=="bonusDescription"?c||(c=z(),c.c(),c.m(r,u)):c&&(c.d(1),c=null),w&&w.p&&(!h||y&8192)&&e.update_slot_base(w,_,a,a[13],h?e.get_slot_changes(_,a[13],y,U):e.get_all_dirty_from_scope(a[13]),T),a[3]!="2fa-old"?d?d.p(a,y):(d=H(a),d.c(),d.m(o,null)):d&&(d.d(1),d=null),a[4]==="true"?s||(s=I(),s.c(),s.m(i,v)):s&&(s.d(1),s=null),f&&f.p&&(!h||y&8192)&&e.update_slot_base(f,x,a,a[13],h?e.get_slot_changes(x,a[13],y,R):e.get_all_dirty_from_scope(a[13]),L),(!h||y&16)&&e.toggle_class(b,"hidden",a[4]==="true"),(!h||y&8)&&e.toggle_class(i,"video-mode",a[3]==="video"),(!h||y&8)&&e.toggle_class(i,"twofa-mode",a[3]==="2fa")},i(a){h||(e.transition_in(w,a),e.transition_in(f,a),h=!0)},o(a){e.transition_out(w,a),e.transition_out(f,a),h=!1},d(a){a&&e.detach(t),c&&c.d(),w&&w.d(a),d&&d.d(),s&&s.d(),f&&f.d(a),n[15](null),n[16](null),n[17](null),C()}}}function z(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><mask id="exclamation-mask"><circle cx="100" cy="100" r="90"></circle><rect x="88" y="40" width="24" height="80" rx="12" fill="black"></rect><circle cx="100" cy="150" r="14" fill="black"></circle></mask></defs><circle cx="100" cy="100" r="90" mask="url(#exclamation-mask)"></circle></svg>',e.attr(t,"class","WarningIcon")},m(i,o){e.insert(i,t,o)},d(i){i&&e.detach(t)}}}function H(n){let t,i,o,r,u;return{c(){t=e.element("div"),i=e.svg_element("svg"),o=e.svg_element("path"),e.attr(o,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),e.attr(i,"xmlns","http://www.w3.org/2000/svg"),e.attr(i,"viewBox","0 0 13 13"),e.attr(i,"fill","none"),e.attr(i,"class","CloseButton"),e.attr(t,"class","ModalCloseIcon")},m(m,g){e.insert(m,t,g),e.append(t,i),e.append(i,o),r||(u=e.listen(i,"click",n[9]),r=!0)},p:e.noop,d(m){m&&e.detach(t),r=!1,u()}}}function I(n){let t;return{c(){t=e.element("div"),t.innerHTML='<div class="ModalLoader"></div>',e.attr(t,"class","ModalLoadingOverlay")},m(i,o){e.insert(i,t,o)},d(i){i&&e.detach(t)}}}function Z(n){let t,i,o=n[2]==="true"&&S(n);return{c(){t=e.element("div"),o&&o.c()},m(r,u){e.insert(r,t,u),o&&o.m(t,null),n[19](t),i=!0},p(r,[u]){r[2]==="true"?o?(o.p(r,u),u&4&&e.transition_in(o,1)):(o=S(r),o.c(),e.transition_in(o,1),o.m(t,null)):o&&(e.group_outros(),e.transition_out(o,1,1,()=>{o=null}),e.check_outros())},i(r){i||(e.transition_in(o),i=!0)},o(r){e.transition_out(o),i=!1},d(r){r&&e.detach(t),o&&o.d(),n[19](null)}}}function A(n,t,i){let{$$slots:o={},$$scope:r}=t,{mbsource:u}=t,{clientstyling:m}=t,{clientstylingurl:g}=t,{show:p}=t,{modaltype:v=""}=t,{isloading:b="false"}=t,{width:C}=t,{height:h}=t,c,_,w,d,s,x=!1,f,a;const y=()=>{f&&clearTimeout(f),c&&(c.classList.add("closing"),window.dispatchEvent(new CustomEvent("manualClosePopup")),f=setTimeout(()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"closed",data:{}}}))},200))},k=()=>M(this,null,function*(){if(!s||!d||x)return;a&&clearTimeout(f),x=!0;const l=s.offsetWidth,Y=s.offsetHeight;i(8,s.style.width=`${l}px`,s),i(8,s.style.height=`${Y}px`,s),s.offsetHeight,yield e.tick();const q=d.scrollHeight,D=d.scrollWidth;i(8,s.style.width=`${D}px`,s),i(8,s.style.height=`${q}px`,s),a=setTimeout(()=>{s&&(i(8,s.style.width="auto",s),i(8,s.style.height="auto",s)),x=!1},300)});e.onMount(()=>{if(e.tick().then(()=>{k()}),d){const l=new ResizeObserver(()=>{k()});return l.observe(d),()=>{l.disconnect()}}return()=>{f&&clearTimeout(f),a&&clearTimeout(f)}});function O(l){e.binding_callbacks[l?"unshift":"push"](()=>{d=l,i(7,d)})}function E(l){e.binding_callbacks[l?"unshift":"push"](()=>{s=l,i(8,s)})}function j(l){e.binding_callbacks[l?"unshift":"push"](()=>{c=l,i(6,c)})}function B(){C=this.clientWidth,h=this.clientHeight,i(0,C),i(1,h)}function F(l){e.binding_callbacks[l?"unshift":"push"](()=>{_=l,i(5,_)})}return n.$$set=l=>{"mbsource"in l&&i(10,u=l.mbsource),"clientstyling"in l&&i(11,m=l.clientstyling),"clientstylingurl"in l&&i(12,g=l.clientstylingurl),"show"in l&&i(2,p=l.show),"modaltype"in l&&i(3,v=l.modaltype),"isloading"in l&&i(4,b=l.isloading),"width"in l&&i(0,C=l.width),"height"in l&&i(1,h=l.height),"$$scope"in l&&i(13,r=l.$$scope)},n.$$.update=()=>{n.$$.dirty&16&&b&&e.tick().then(()=>{k()}),n.$$.dirty&2080&&m&&_&&e.setClientStyling(_,m),n.$$.dirty&4128&&g&&_&&e.setClientStylingURL(_,g),n.$$.dirty&1056&&u&&_&&e.setStreamStyling(_,`${u}.Style`,w)},[C,h,p,v,b,_,c,d,s,y,u,m,g,r,o,O,E,j,B,F]}class W extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,A,Z,e.safe_not_equal,{mbsource:10,clientstyling:11,clientstylingurl:12,show:2,modaltype:3,isloading:4,width:0,height:1},P)}get mbsource(){return this.$$.ctx[10]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get show(){return this.$$.ctx[2]}set show(t){this.$$set({show:t}),e.flush()}get modaltype(){return this.$$.ctx[3]}set modaltype(t){this.$$set({modaltype:t}),e.flush()}get isloading(){return this.$$.ctx[4]}set isloading(t){this.$$set({isloading: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(W,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},modaltype:{},isloading:{},width:{},height:{}},["title","content"],[],!0);exports.default=W;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as te,
|
|
1
|
+
import { S as te, d as ie, s as ne, f as C, e as oe, h as S, t as O, j as z, a6 as le, a7 as se, m as H, o as b, v as ae, T as j, g as F, u as B, k as Y, l as D, W as L, n as _, a8 as re, p as W, q as h, L as de, A as I, H as ce, z as fe, X as q, D as ue, E as he, F as me, G as ge } from "./CashierCarousel-DcUyAcwc.js";
|
|
2
2
|
function pe(i) {
|
|
3
3
|
oe(i, "svelte-e2luo5", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}@keyframes modalFadeOut{from{opacity:1}to{opacity:0}}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSlideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes spin{to{transform:rotate(360deg)}}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:100;backdrop-filter:blur(4px);animation:modalFadeIn 0.25s ease-out}#Modal.closing{animation:modalFadeOut 0.25s ease-in}@container (min-width: 500px){.ModalContainer{min-width:450px}}.ModalContainer{min-width:380px;width:auto;height:auto;max-height:70%;padding:var(--emw--spacing-medium, 25px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:1;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);overflow:hidden;transition:width 0.3s ease-in-out, height 0.3s ease-in-out;animation:modalSlideIn 0.3s ease-out}#Modal.closing .ModalContainer{animation:modalSlideOut 0.25s ease-in}.ModalContainer.video-mode{height:70% !important;max-height:70%}.ModalContainer.twofa-mode{max-width:500px;min-height:auto}.ModalContainer::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.ModalHeader{display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center}.ModalHeader .ModalTitle{display:flex;flex-direction:row;height:26px;align-items:center;gap:8px}.ModalHeader .TitleText{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-medium, 600)}.ModalHeader .WarningIcon svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.Uppercase{text-transform:uppercase}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.CloseButton{fill:var(--emw--color-white, #fff);stroke:var(--emw--color-white, #fff);cursor:pointer}.ModalLoadingOverlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(18, 25, 31, 0.8);border-radius:10px;z-index:10}.ModalLoader{width:48px;height:48px;border:5px solid rgba(255, 255, 255, 0.1);border-top-color:var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 0.8s linear infinite}.ModalContentWrapper{width:100%;height:100%;transition:opacity 0.2s ease}.ModalContentWrapper.hidden{opacity:0;pointer-events:none}@container (max-width: 475px){.ModalContainer{max-width:90%;max-height:80vh;margin:auto}}@container (max-width: 500px){.ModalContainer.twofa-mode{width:100%;height:100% !important;max-height:100%;border-radius:0;justify-content:flex-start;background:var(--emw--color-background)}.ModalContainer.twofa-mode::before{border-radius:0}}');
|
|
4
4
|
}
|
|
5
5
|
const we = (i) => ({}), R = (i) => ({}), ye = (i) => ({}), U = (i) => ({});
|
|
6
|
-
function
|
|
6
|
+
function A(i) {
|
|
7
7
|
let e, t, n, a, f, m, v, T, k, y, x, u, d = (
|
|
8
8
|
/*modaltype*/
|
|
9
9
|
(i[3] == "error" || /*modaltype*/
|
|
@@ -21,10 +21,10 @@ function Z(i) {
|
|
|
21
21
|
);
|
|
22
22
|
let r = (
|
|
23
23
|
/*modaltype*/
|
|
24
|
-
i[3] != "2fa-old" &&
|
|
24
|
+
i[3] != "2fa-old" && P(i)
|
|
25
25
|
), l = (
|
|
26
26
|
/*isloading*/
|
|
27
|
-
i[4] === "true" &&
|
|
27
|
+
i[4] === "true" && X()
|
|
28
28
|
);
|
|
29
29
|
const M = (
|
|
30
30
|
/*#slots*/
|
|
@@ -38,7 +38,7 @@ function Z(i) {
|
|
|
38
38
|
);
|
|
39
39
|
return {
|
|
40
40
|
c() {
|
|
41
|
-
e = b("div"), t = b("div"), n = b("div"), a = b("div"), d && d.c(), f =
|
|
41
|
+
e = b("div"), t = b("div"), n = b("div"), a = b("div"), d && d.c(), f = W(), m = b("div"), p && p.c(), v = W(), r && r.c(), T = W(), l && l.c(), k = W(), y = b("div"), c && c.c(), h(m, "class", "TitleText"), h(a, "class", "ModalTitle"), h(n, "class", "ModalHeader"), h(y, "class", "ModalContentWrapper"), L(
|
|
42
42
|
y,
|
|
43
43
|
"hidden",
|
|
44
44
|
/*isloading*/
|
|
@@ -69,7 +69,7 @@ function Z(i) {
|
|
|
69
69
|
/*modaltype*/
|
|
70
70
|
s[3] == "error" || /*modaltype*/
|
|
71
71
|
s[3] == "bonusDescription" ? d || (d = G(), d.c(), d.m(a, f)) : d && (d.d(1), d = null), p && p.p && (!u || w & /*$$scope*/
|
|
72
|
-
8192) &&
|
|
72
|
+
8192) && B(
|
|
73
73
|
p,
|
|
74
74
|
g,
|
|
75
75
|
s,
|
|
@@ -81,15 +81,15 @@ function Z(i) {
|
|
|
81
81
|
s[13],
|
|
82
82
|
w,
|
|
83
83
|
ye
|
|
84
|
-
) :
|
|
84
|
+
) : Y(
|
|
85
85
|
/*$$scope*/
|
|
86
86
|
s[13]
|
|
87
87
|
),
|
|
88
88
|
U
|
|
89
89
|
), /*modaltype*/
|
|
90
|
-
s[3] != "2fa-old" ? r ? r.p(s, w) : (r =
|
|
91
|
-
s[4] === "true" ? l || (l =
|
|
92
|
-
8192) &&
|
|
90
|
+
s[3] != "2fa-old" ? r ? r.p(s, w) : (r = P(s), r.c(), r.m(n, null)) : r && (r.d(1), r = null), /*isloading*/
|
|
91
|
+
s[4] === "true" ? l || (l = X(), l.c(), l.m(t, k)) : l && (l.d(1), l = null), c && c.p && (!u || w & /*$$scope*/
|
|
92
|
+
8192) && B(
|
|
93
93
|
c,
|
|
94
94
|
M,
|
|
95
95
|
s,
|
|
@@ -101,7 +101,7 @@ function Z(i) {
|
|
|
101
101
|
s[13],
|
|
102
102
|
w,
|
|
103
103
|
we
|
|
104
|
-
) :
|
|
104
|
+
) : Y(
|
|
105
105
|
/*$$scope*/
|
|
106
106
|
s[13]
|
|
107
107
|
),
|
|
@@ -151,7 +151,7 @@ function G(i) {
|
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function P(i) {
|
|
155
155
|
let e, t, n, a, f;
|
|
156
156
|
return {
|
|
157
157
|
c() {
|
|
@@ -171,7 +171,7 @@ function N(i) {
|
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function X(i) {
|
|
175
175
|
let e;
|
|
176
176
|
return {
|
|
177
177
|
c() {
|
|
@@ -188,7 +188,7 @@ function P(i) {
|
|
|
188
188
|
function _e(i) {
|
|
189
189
|
let e, t, n = (
|
|
190
190
|
/*show*/
|
|
191
|
-
i[2] === "true" &&
|
|
191
|
+
i[2] === "true" && A(i)
|
|
192
192
|
);
|
|
193
193
|
return {
|
|
194
194
|
c() {
|
|
@@ -200,7 +200,7 @@ function _e(i) {
|
|
|
200
200
|
p(a, [f]) {
|
|
201
201
|
/*show*/
|
|
202
202
|
a[2] === "true" ? n ? (n.p(a, f), f & /*show*/
|
|
203
|
-
4 && z(n, 1)) : (n =
|
|
203
|
+
4 && z(n, 1)) : (n = A(a), n.c(), z(n, 1), n.m(e, null)) : n && (le(), O(n, 1, 1, () => {
|
|
204
204
|
n = null;
|
|
205
205
|
}), se());
|
|
206
206
|
},
|
|
@@ -228,8 +228,8 @@ function be(i, e, t) {
|
|
|
228
228
|
if (!l || !r || M)
|
|
229
229
|
return;
|
|
230
230
|
s && clearTimeout(c), M = !0;
|
|
231
|
-
const o = l.offsetWidth,
|
|
232
|
-
t(8, l.style.width = `${o}px`, l), t(8, l.style.height = `${
|
|
231
|
+
const o = l.offsetWidth, V = l.offsetHeight;
|
|
232
|
+
t(8, l.style.width = `${o}px`, l), t(8, l.style.height = `${V}px`, l), l.offsetHeight, await j();
|
|
233
233
|
const $ = r.scrollHeight, ee = r.scrollWidth;
|
|
234
234
|
t(8, l.style.width = `${ee}px`, l), t(8, l.style.height = `${$}px`, l), s = setTimeout(
|
|
235
235
|
() => {
|
|
@@ -253,26 +253,26 @@ function be(i, e, t) {
|
|
|
253
253
|
c && clearTimeout(c), s && clearTimeout(c);
|
|
254
254
|
};
|
|
255
255
|
});
|
|
256
|
-
function
|
|
257
|
-
|
|
256
|
+
function Z(o) {
|
|
257
|
+
I[o ? "unshift" : "push"](() => {
|
|
258
258
|
r = o, t(7, r);
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
|
|
261
|
+
function J(o) {
|
|
262
|
+
I[o ? "unshift" : "push"](() => {
|
|
263
263
|
l = o, t(8, l);
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
|
|
266
|
+
function K(o) {
|
|
267
|
+
I[o ? "unshift" : "push"](() => {
|
|
268
268
|
d = o, t(6, d);
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function N() {
|
|
272
272
|
x = this.clientWidth, u = this.clientHeight, t(0, x), t(1, u);
|
|
273
273
|
}
|
|
274
274
|
function Q(o) {
|
|
275
|
-
|
|
275
|
+
I[o ? "unshift" : "push"](() => {
|
|
276
276
|
g = o, t(5, g);
|
|
277
277
|
});
|
|
278
278
|
}
|
|
@@ -302,10 +302,10 @@ function be(i, e, t) {
|
|
|
302
302
|
v,
|
|
303
303
|
a,
|
|
304
304
|
n,
|
|
305
|
-
|
|
306
|
-
A,
|
|
305
|
+
Z,
|
|
307
306
|
J,
|
|
308
307
|
K,
|
|
308
|
+
N,
|
|
309
309
|
Q
|
|
310
310
|
];
|
|
311
311
|
}
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { S as C,
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { S as C, d as v, s as _, f as d, e as N, H as p, h as k, x as b, m as z, n as f, z as S, o as h, y as x, p as E, q as L, A as H, G as M } from "./CashierCarousel-DcUyAcwc.js";
|
|
2
|
+
function T(n) {
|
|
3
|
+
N(n, "svelte-ags340", ".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}");
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
let t, s, r, u, l, a,
|
|
5
|
+
function q(n) {
|
|
6
|
+
let t, s, r, u, l, a, i, m;
|
|
7
7
|
return {
|
|
8
8
|
c() {
|
|
9
9
|
t = h("div"), s = h("span"), r = x(
|
|
10
10
|
/*text*/
|
|
11
|
-
|
|
11
|
+
n[0]
|
|
12
12
|
), u = E(), l = h("button"), a = x(
|
|
13
13
|
/*button*/
|
|
14
|
-
|
|
14
|
+
n[1]
|
|
15
15
|
), L(t, "class", "CashierNotifications");
|
|
16
16
|
},
|
|
17
17
|
m(o, c) {
|
|
18
|
-
z(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a),
|
|
18
|
+
z(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a), n[6](t), i || (m = S(
|
|
19
19
|
l,
|
|
20
20
|
"click",
|
|
21
21
|
/*notificationClick*/
|
|
22
|
-
|
|
23
|
-
),
|
|
22
|
+
n[3]
|
|
23
|
+
), i = !0);
|
|
24
24
|
},
|
|
25
25
|
p(o, [c]) {
|
|
26
26
|
c & /*text*/
|
|
27
|
-
1 &&
|
|
27
|
+
1 && b(
|
|
28
28
|
r,
|
|
29
29
|
/*text*/
|
|
30
30
|
o[0]
|
|
31
31
|
), c & /*button*/
|
|
32
|
-
2 &&
|
|
32
|
+
2 && b(
|
|
33
33
|
a,
|
|
34
34
|
/*button*/
|
|
35
35
|
o[1]
|
|
36
36
|
);
|
|
37
37
|
},
|
|
38
|
-
i:
|
|
39
|
-
o:
|
|
38
|
+
i: p,
|
|
39
|
+
o: p,
|
|
40
40
|
d(o) {
|
|
41
|
-
o &&
|
|
41
|
+
o && k(t), n[6](null), i = !1, m();
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
function R(
|
|
46
|
-
let { text: r } = t, { button: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t,
|
|
45
|
+
function R(n, t, s) {
|
|
46
|
+
let { text: r } = t, { button: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, i;
|
|
47
47
|
const m = () => {
|
|
48
48
|
window.postMessage({ type: "NotificationButtonClick" }, window.location.href);
|
|
49
49
|
}, o = () => {
|
|
50
50
|
let e = document.createElement("style");
|
|
51
|
-
e.innerHTML = l,
|
|
51
|
+
e.innerHTML = l, i.appendChild(e);
|
|
52
52
|
}, c = () => {
|
|
53
53
|
let e = new URL(a), y = document.createElement("style");
|
|
54
54
|
fetch(e.href).then((g) => g.text()).then((g) => {
|
|
55
55
|
y.innerHTML = g, setTimeout(
|
|
56
56
|
() => {
|
|
57
|
-
|
|
57
|
+
i.appendChild(y);
|
|
58
58
|
},
|
|
59
59
|
1
|
|
60
60
|
);
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
63
|
function w(e) {
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
H[e ? "unshift" : "push"](() => {
|
|
65
|
+
i = e, s(2, i);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
return
|
|
68
|
+
return n.$$set = (e) => {
|
|
69
69
|
"text" in e && s(0, r = e.text), "button" in e && s(1, u = e.button), "clientstyling" in e && s(4, l = e.clientstyling), "clientstylingurl" in e && s(5, a = e.clientstylingurl);
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
20 && l &&
|
|
73
|
-
36 && a &&
|
|
70
|
+
}, n.$$.update = () => {
|
|
71
|
+
n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
72
|
+
20 && l && i && o(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
73
|
+
36 && a && i && c();
|
|
74
74
|
}, [
|
|
75
75
|
r,
|
|
76
76
|
u,
|
|
77
|
-
|
|
77
|
+
i,
|
|
78
78
|
m,
|
|
79
79
|
l,
|
|
80
80
|
a,
|
|
@@ -87,7 +87,7 @@ class U extends C {
|
|
|
87
87
|
this,
|
|
88
88
|
t,
|
|
89
89
|
R,
|
|
90
|
-
|
|
90
|
+
q,
|
|
91
91
|
_,
|
|
92
92
|
{
|
|
93
93
|
text: 0,
|
|
@@ -95,7 +95,7 @@ class U extends C {
|
|
|
95
95
|
clientstyling: 4,
|
|
96
96
|
clientstylingurl: 5
|
|
97
97
|
},
|
|
98
|
-
|
|
98
|
+
T
|
|
99
99
|
);
|
|
100
100
|
}
|
|
101
101
|
get text() {
|
|
@@ -123,7 +123,7 @@ class U extends C {
|
|
|
123
123
|
this.$$set({ clientstylingurl: t }), d();
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
M(U, { text: {}, button: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
127
127
|
export {
|
|
128
128
|
U as default
|
|
129
129
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierCarousel-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierCarousel-BM-KceW7.cjs");function y(i){t.append_styles(i,"svelte-ags340",".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}")}function b(i){let e,s,c,f,o,a,l,d;return{c(){e=t.element("div"),s=t.element("span"),c=t.text(i[0]),f=t.space(),o=t.element("button"),a=t.text(i[1]),t.attr(e,"class","CashierNotifications")},m(r,u){t.insert(r,e,u),t.append(e,s),t.append(s,c),t.append(e,f),t.append(e,o),t.append(o,a),i[6](e),l||(d=t.listen(o,"click",i[3]),l=!0)},p(r,[u]){u&1&&t.set_data(c,r[0]),u&2&&t.set_data(a,r[1])},i:t.noop,o:t.noop,d(r){r&&t.detach(e),i[6](null),l=!1,d()}}}function x(i,e,s){let{text:c}=e,{button:f}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,l;const d=()=>{window.postMessage({type:"NotificationButtonClick"},window.location.href)},r=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},u=()=>{let n=new URL(a),h=document.createElement("style");fetch(n.href).then(m=>m.text()).then(m=>{h.innerHTML=m,setTimeout(()=>{l.appendChild(h)},1)})};function p(n){t.binding_callbacks[n?"unshift":"push"](()=>{l=n,s(2,l)})}return i.$$set=n=>{"text"in n&&s(0,c=n.text),"button"in n&&s(1,f=n.button),"clientstyling"in n&&s(4,o=n.clientstyling),"clientstylingurl"in n&&s(5,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&20&&o&&l&&r(),i.$$.dirty&36&&a&&l&&u()},[c,f,l,d,o,a,p]}class g extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,x,b,t.safe_not_equal,{text:0,button:1,clientstyling:4,clientstylingurl:5},y)}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),t.flush()}get button(){return this.$$.ctx[1]}set button(e){this.$$set({button:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(g,{text:{},button:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=g;
|