@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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierPage-C7hbc8P5.cjs"),Q=require("./CashierHeader-BRtZK3Yj.cjs");function ne(t,a){e.addMessages(t,a)}function me(t){e.init({fallbackLocale:"en"}),e.$locale.set(t)}const ie={en:{generalMin:"Min",generalMax:"Max",error:"Error",noFavoritePaymentMethods:"No favorite payment methods available",DepositRealTime:"Instant deposit",WithdrawRealTime:"Instant withdrawal",DepositVariable:"Variable",WithdrawVariable:"Variable",carouselTitle:"Favorite Methods",carouselSubtitle:"The most popular payment methods"},tr:{generalMin:"Min",generalMax:"Maks",error:"Hata",noFavoritePaymentMethods:"Favori ödeme yöntemi mevcut değil",DepositRealTime:"Anında para yatırma",WithdrawRealTime:"Anında para çekme",DepositVariable:"Değişken",WithdrawVariable:"Değişken",carouselTitle:"Favori Yöntemler",carouselSubtitle:"En popüler ödeme yöntemleri"},fr:{generalMin:"Min",generalMax:"Max",error:"Erreur",noFavoritePaymentMethods:"Aucun moyen de paiement favori disponible",DepositRealTime:"Dépôt instantané",WithdrawRealTime:"Retrait instantané",DepositVariable:"Variable",WithdrawVariable:"Variable",carouselTitle:"Méthodes favorites",carouselSubtitle:"Les moyens de paiement les plus populaires"}};function he(t){e.append_styles(t,"svelte-1tnzy1r",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CashierCarouselWarpper{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));color:var(--emw--color-typography, var(--emw--color-white, #ffffff));height:auto;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;position:relative;overflow:hidden}.NavigationArrow{height:220px;z-index:20;display:flex;transition:all 0.3s ease;position:absolute}.NavigationArrow:hover{cursor:pointer}.NavigationArrow:hover svg{opacity:1;transform:scale(1.1);filter:drop-shadow(0 0 0.75rem var(--emw--color-black))}.NavigationArrow svg{opacity:0.6;width:32px;height:32px;align-self:center;fill:var(--emw--color-white);transition:all 0.3s ease}.NavigationArrow.Left{left:0;background:linear-gradient(to right, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.NavigationArrow.Right{right:0;background:linear-gradient(to left, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.CarouselHeader{margin-bottom:20px;text-align:center}.CarouselHeader h4{font-size:12px;text-transform:uppercase;margin:10px 0}.CarouselHeader p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.55;font-size:12px}.NoFavoritePaymentMethods{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}.CarouselCardsContainer{display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;max-width:100%;width:inherit}.Carousel{display:flex;gap:var(--emw-cashier-card-gap, 10px);height:220px;position:relative;align-items:center;transition:transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.Carousel.dragging{transition:none}.VisualDotIndicator{display:flex;gap:5px;margin-top:16px}.VisualDotIndicator .Dot{border-radius:10px;background-color:var(--emw--color-primary, #f9c405);height:10px;width:10px;opacity:0.5;transition:all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);transform:scale(1)}.VisualDotIndicator .Dot.active{opacity:1;width:30px;transform:scale(1);animation:dotPulse 0.6s ease-out}@keyframes dotPulse{0%{transform:scale(0.8);opacity:0.5}50%{transform:scale(1.15)}100%{transform:scale(1);opacity:1}}.CarouselCardWrapper{border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);position:relative;display:flex;flex-direction:column;justify-content:space-between;z-index:1;padding:5px;height:115px;width:var(--emw-cashier-card-width, 78px);transition:all 0.3s ease;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.CarouselCardWrapper.active{height:132px;width:var(--emw-cashier-card-width-active, 100px)}.CarouselCardWrapper.active::before{background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.3}.CarouselCardWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:16px;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}.CarouselCardWrapper .MethodLogo img{height:20px;width:auto}.CarouselCardWrapper .MethodInfo{display:flex;flex-direction:column;gap:10px;word-break:break-word}.CarouselCardWrapper .MethodInfo .MethodTitle{font-size:var(--emw--font-size-small, 10px);font-weight:800}.CarouselCardWrapper .MethodInfo .MethodProcessingTime{color:var(--emw--color-primary, #f9c405);font-style:italic;font-size:var(--emw--font-size-x-small, 8px)}.CarouselCardWrapper .MethodInfo .MethodLimits{gap:var(--emw--spacing-small-minus, 10px);text-align:left}.CarouselCardWrapper .MethodInfo .Limits{display:flex;flex-direction:column;max-width:100%;font-size:var(--emw--font-size-x-small, 8px);font-weight:var(--emw--font-weight-normal, 300)}')}function le(t,a,r){const l=t.slice();return l[42]=a[r],l[44]=r,l}function se(t,a,r){const l=t.slice();return l[45]=a[r],l[44]=r,l}function fe(t){let a,r=t[9]("noFavoritePaymentMethods")+"",l;return{c(){a=e.element("p"),l=e.text(r),e.attr(a,"class","NoFavoritePaymentMethods")},m(o,m){e.insert(o,a,m),e.append(a,l)},p(o,m){m[0]&512&&r!==(r=o[9]("noFavoritePaymentMethods")+"")&&e.set_data(l,r)},d(o){o&&e.detach(a)}}}function ge(t){let a,r=!e.isMobile(t[10])&&t[5].length>1,l,o,m,D=!e.isMobile(t[10])&&t[5].length>1,_,M,y,k,L,h=r&&oe(t),f=e.ensure_array_like(t[5]),d=[];for(let i=0;i<f.length;i+=1)d[i]=ce(se(t,f,i));let u=D&&de(t),p=e.ensure_array_like(Array(t[5].length)),b=[];for(let i=0;i<p.length;i+=1)b[i]=ue(le(t,p,i));return{c(){a=e.element("div"),h&&h.c(),l=e.space(),o=e.element("div");for(let i=0;i<d.length;i+=1)d[i].c();m=e.space(),u&&u.c(),M=e.space(),y=e.element("div");for(let i=0;i<b.length;i+=1)b[i].c();e.attr(o,"class","Carousel"),e.attr(a,"class","CarouselCardsContainer"),e.add_render_callback(()=>t[30].call(a)),e.attr(y,"class","VisualDotIndicator")},m(i,c){e.insert(i,a,c),h&&h.m(a,null),e.append(a,l),e.append(a,o);for(let s=0;s<d.length;s+=1)d[s]&&d[s].m(o,null);t[28](o),e.append(a,m),u&&u.m(a,null),_=e.add_iframe_resize_listener(a,t[30].bind(a)),e.insert(i,M,c),e.insert(i,y,c);for(let s=0;s<b.length;s+=1)b[s]&&b[s].m(y,null);k||(L=[e.listen(o,"touchstart",t[12]),e.listen(o,"touchmove",t[13]),e.listen(o,"touchend",t[14])],k=!0)},p(i,c){if(c[0]&32&&(r=!e.isMobile(i[10])&&i[5].length>1),r?h?h.p(i,c):(h=oe(i),h.c(),h.m(a,l)):h&&(h.d(1),h=null),c[0]&3057){f=e.ensure_array_like(i[5]);let s;for(s=0;s<f.length;s+=1){const N=se(i,f,s);d[s]?d[s].p(N,c):(d[s]=ce(N),d[s].c(),d[s].m(o,null))}for(;s<d.length;s+=1)d[s].d(1);d.length=f.length}if(c[0]&32&&(D=!e.isMobile(i[10])&&i[5].length>1),D?u?u.p(i,c):(u=de(i),u.c(),u.m(a,null)):u&&(u.d(1),u=null),c[0]&96){p=e.ensure_array_like(Array(i[5].length));let s;for(s=0;s<p.length;s+=1){const N=le(i,p,s);b[s]?b[s].p(N,c):(b[s]=ue(N),b[s].c(),b[s].m(y,null))}for(;s<b.length;s+=1)b[s].d(1);b.length=p.length}},d(i){i&&(e.detach(a),e.detach(M),e.detach(y)),h&&h.d(),e.destroy_each(d,i),t[28](null),u&&u.d(),_(),e.destroy_each(b,i),k=!1,e.run_all(L)}}}function oe(t){let a,r,l;return{c(){a=e.element("div"),a.innerHTML='<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.9997 5.33335C21.8907 5.33335 26.6663 10.109 26.6663 16C26.6663 21.8911 21.8907 26.6667 15.9997 26.6667C10.1086 26.6667 5.33301 21.8911 5.33301 16C5.33301 10.109 10.1086 5.33335 15.9997 5.33335ZM29.333 16C29.333 8.63622 23.3635 2.66669 15.9997 2.66669C8.63588 2.66669 2.66634 8.63622 2.66634 16C2.66634 23.3638 8.63588 29.3334 15.9997 29.3334C23.3635 29.3334 29.333 23.3638 29.333 16ZM18.2758 11.0572C17.7551 10.5365 16.9109 10.5365 16.3902 11.0572L12.3902 15.0572C11.8695 15.5779 11.8695 16.4221 12.3902 16.9428L16.3902 20.9428C16.9109 21.4635 17.7551 21.4635 18.2758 20.9428C18.7965 20.4221 18.7965 19.5779 18.2758 19.0572L15.2186 16L18.2758 12.9428C18.7965 12.4221 18.7965 11.5779 18.2758 11.0572Z"></path></svg>',e.attr(a,"class","NavigationArrow Left")},m(o,m){e.insert(o,a,m),r||(l=e.listen(a,"click",t[25]),r=!0)},p:e.noop,d(o){o&&e.detach(a),r=!1,l()}}}function ce(t){var j,Z,q,U,O,B,n,g;let a,r,l,o,m,D,_,M,y,k=(t[45].Label||t[45].Name)+"",L,h,f,d,u=t[9](`${t[0]}${t[45].ProcessingTime}`)+"",p,b,i,c,s,N=t[9]("generalMin")+"",W,v,T=e.formatCurrency(t[45].DisplayCurrency.MinAmountLimit,t[45].DisplayCurrency.Name,{maximumFractionDigits:t[4][(Z=(j=t[45])==null?void 0:j.DisplayCurrency)==null?void 0:Z.Name]||t[8],minimumFractionDigits:t[4][(U=(q=t[45])==null?void 0:q.DisplayCurrency)==null?void 0:U.Name]||t[8]})+"",S,x,A,F=t[9]("generalMax")+"",I,R,P=e.formatCurrency(t[45].DisplayCurrency.MaxAmountLimit,t[45].DisplayCurrency.Name,{maximumFractionDigits:t[4][(B=(O=t[45])==null?void 0:O.DisplayCurrency)==null?void 0:B.Name]||t[8],minimumFractionDigits:t[4][(g=(n=t[45])==null?void 0:n.DisplayCurrency)==null?void 0:g.Name]||t[8]})+"",E,H,z,X,V;function J(){return t[26](t[45],t[44])}return{c(){a=e.element("div"),r=e.element("div"),l=e.element("img"),D=e.space(),_=e.element("div"),M=e.element("div"),y=e.element("span"),L=e.text(k),h=e.space(),f=e.element("div"),d=e.element("span"),p=e.text(u),b=e.space(),i=e.element("div"),c=e.element("span"),s=e.element("span"),W=e.text(N),v=e.space(),S=e.text(T),x=e.space(),A=e.element("span"),I=e.text(F),R=e.space(),E=e.text(P),H=e.space(),e.src_url_equal(l.src,o=t[45].LogoUrl)||e.attr(l,"src",o),e.attr(l,"alt",m=t[45].Label),e.attr(r,"class","MethodLogo"),e.attr(M,"class","MethodTitle"),e.attr(f,"class","MethodProcessingTime"),e.attr(c,"class","Limits"),e.attr(i,"class","MethodLimits"),e.attr(_,"class","MethodInfo"),e.attr(a,"class",z=`CarouselCardWrapper ${t[44]===t[6]?"active":""}`)},m(w,C){e.insert(w,a,C),e.append(a,r),e.append(r,l),e.append(a,D),e.append(a,_),e.append(_,M),e.append(M,y),e.append(y,L),e.append(_,h),e.append(_,f),e.append(f,d),e.append(d,p),e.append(_,b),e.append(_,i),e.append(i,c),e.append(c,s),e.append(s,W),e.append(s,v),e.append(s,S),e.append(c,x),e.append(c,A),e.append(A,I),e.append(A,R),e.append(A,E),e.append(a,H),t[27](a),X||(V=e.listen(a,"click",J),X=!0)},p(w,C){var Y,G,K,$,ee,te,ae,re;t=w,C[0]&32&&!e.src_url_equal(l.src,o=t[45].LogoUrl)&&e.attr(l,"src",o),C[0]&32&&m!==(m=t[45].Label)&&e.attr(l,"alt",m),C[0]&32&&k!==(k=(t[45].Label||t[45].Name)+"")&&e.set_data(L,k),C[0]&545&&u!==(u=t[9](`${t[0]}${t[45].ProcessingTime}`)+"")&&e.set_data(p,u),C[0]&512&&N!==(N=t[9]("generalMin")+"")&&e.set_data(W,N),C[0]&304&&T!==(T=e.formatCurrency(t[45].DisplayCurrency.MinAmountLimit,t[45].DisplayCurrency.Name,{maximumFractionDigits:t[4][(G=(Y=t[45])==null?void 0:Y.DisplayCurrency)==null?void 0:G.Name]||t[8],minimumFractionDigits:t[4][($=(K=t[45])==null?void 0:K.DisplayCurrency)==null?void 0:$.Name]||t[8]})+"")&&e.set_data(S,T),C[0]&512&&F!==(F=t[9]("generalMax")+"")&&e.set_data(I,F),C[0]&304&&P!==(P=e.formatCurrency(t[45].DisplayCurrency.MaxAmountLimit,t[45].DisplayCurrency.Name,{maximumFractionDigits:t[4][(te=(ee=t[45])==null?void 0:ee.DisplayCurrency)==null?void 0:te.Name]||t[8],minimumFractionDigits:t[4][(re=(ae=t[45])==null?void 0:ae.DisplayCurrency)==null?void 0:re.Name]||t[8]})+"")&&e.set_data(E,P),C[0]&64&&z!==(z=`CarouselCardWrapper ${t[44]===t[6]?"active":""}`)&&e.attr(a,"class",z)},d(w){w&&e.detach(a),t[27](null),X=!1,V()}}}function de(t){let a,r,l;return{c(){a=e.element("div"),a.innerHTML='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.0003 5.33335C10.1093 5.33335 5.33366 10.109 5.33366 16C5.33366 21.8911 10.1093 26.6667 16.0003 26.6667C21.8914 26.6667 26.667 21.8911 26.667 16C26.667 10.109 21.8914 5.33335 16.0003 5.33335ZM2.66699 16C2.66699 8.63622 8.63653 2.66669 16.0003 2.66669C23.3641 2.66669 29.3337 8.63622 29.3337 16C29.3337 23.3638 23.3641 29.3334 16.0003 29.3334C8.63653 29.3334 2.66699 23.3638 2.66699 16ZM13.7242 11.0572C14.2449 10.5365 15.0891 10.5365 15.6098 11.0572L19.6098 15.0572C20.1305 15.5779 20.1305 16.4221 19.6098 16.9428L15.6098 20.9428C15.0891 21.4635 14.2449 21.4635 13.7242 20.9428C13.2035 20.4221 13.2035 19.5779 13.7242 19.0572L16.7814 16L13.7242 12.9428C13.2035 12.4221 13.2035 11.5779 13.7242 11.0572Z"></path></svg>',e.attr(a,"class","NavigationArrow Right")},m(o,m){e.insert(o,a,m),r||(l=e.listen(a,"click",t[29]),r=!0)},p:e.noop,d(o){o&&e.detach(a),r=!1,l()}}}function ue(t){let a,r;return{c(){a=e.element("div"),e.attr(a,"class",r=`Dot ${t[44]===t[6]?"active":""}`)},m(l,o){e.insert(l,a,o)},p(l,o){o[0]&64&&r!==(r=`Dot ${l[44]===l[6]?"active":""}`)&&e.attr(a,"class",r)},d(l){l&&e.detach(a)}}}function ye(t){let a,r,l,o,m=t[9]("carouselTitle")+"",D,_,M,y=t[9]("carouselSubtitle")+"",k,L;function h(u,p){return u[5].length>0?ge:fe}let f=h(t),d=f(t);return{c(){a=e.element("div"),r=e.element("div"),l=e.element("div"),o=e.element("h4"),D=e.text(m),_=e.space(),M=e.element("p"),k=e.text(y),L=e.space(),d.c(),e.attr(l,"class","CarouselHeader"),e.attr(r,"class","CashierCarouselWarpper")},m(u,p){e.insert(u,a,p),e.append(a,r),e.append(r,l),e.append(l,o),e.append(o,D),e.append(l,_),e.append(l,M),e.append(M,k),e.append(r,L),d.m(r,null),t[31](a)},p(u,p){p[0]&512&&m!==(m=u[9]("carouselTitle")+"")&&e.set_data(D,m),p[0]&512&&y!==(y=u[9]("carouselSubtitle")+"")&&e.set_data(k,y),f===(f=h(u))&&d?d.p(u,p):(d.d(1),d=f(u),d&&(d.c(),d.m(r,null)))},i:e.noop,o:e.noop,d(u){u&&e.detach(a),d.d(),t[31](null)}}}function be(t,a,r){let l,o;e.component_subscribe(t,e.$format,n=>r(9,o=n));let{lang:m="en"}=a,{local:D="en-US"}=a,{currencysymbol:_="true"}=a,{currencyposition:M=""}=a,{currencydecimals:y="0"}=a,{methodtype:k=""}=a,{clientstyling:L=""}=a,{clientstylingurl:h=""}=a,{mbsource:f=""}=a,{translationurl:d=""}=a,u={},p,b,i=[],c=0,s=!0,N=0,W=!1,v,T,S,x=window.navigator.userAgent;const A=n=>{var w,C;const{data:{type:g}={}}=n||{};switch(g){case"PromotedPaymentMethods":{r(5,i=(w=n==null?void 0:n.data)==null?void 0:w.promotedPaymentMethods),r(6,c=Math.floor((i.length-1)/2));break}case"PrecisionCurrenciesMap":{r(4,u=((C=n==null?void 0:n.data)==null?void 0:C.payload)||{});break}}};Object.keys(ie).forEach(n=>{ne(n,ie[n])});const F=()=>{let n=d;if(n)return fetch(n).then(g=>g.json()).then(g=>{Object.keys(g).forEach(w=>{ne(w,g[w])})}).catch(g=>{console.log(g)})},I=()=>{me(m)},R=(n,g)=>{r(6,c=g),r(2,v.style.transform=P(),v),n.Name,window.postMessage({type:"SelectPayMeth",details:n},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:n,bubbles:!0,cancelable:!0,composed:!0}))},P=()=>{const n=parseFloat(getComputedStyle(S).getPropertyValue("--emw-cashier-card-width"))||78,g=parseFloat(getComputedStyle(v).getPropertyValue("--emw-cashier-card-gap"))||10,w=parseFloat(getComputedStyle(S).getPropertyValue("--emw-cashier-card-width-active"))||100,C=n+g,Y=T/2,G=c*C+w/2;return`translateX(${Y-G}px)`},E=n=>{N=n.touches[0].clientX,W=!0,v.classList.add("dragging")},H=n=>{if(!W)return;const g=n.touches[0].clientX;Math.abs(g-N)>10&&n.preventDefault()},z=n=>{if(!W)return;W=!1,v.classList.remove("dragging");const g=n.changedTouches[0].clientX,w=N-g;Math.abs(w)>50&&(w>0&&c<i.length-1?r(6,c++,c):w<0&&c>0&&r(6,c--,c),r(2,v.style.transform=P(),v))},X=()=>{s&&(r(2,v.style.transform=P(),v),s=!1)},V=n=>{n==="next"&&c<i.length-1?r(6,c++,c):n==="prev"&&c>0&&r(6,c--,c),r(2,v.style.transform=P(),v)};e.onMount(()=>(e.initCurrencyFormatter(D,_,M,y),window.addEventListener("message",A),window.postMessage({type:"CashierCarouselReady"},window.location.href),v&&P(),()=>{window.removeEventListener("message",A)}));const J=()=>V("prev"),j=(n,g)=>R(n,g);function Z(n){e.binding_callbacks[n?"unshift":"push"](()=>{S=n,r(7,S)})}function q(n){e.binding_callbacks[n?"unshift":"push"](()=>{v=n,r(2,v)})}const U=()=>V("next");function O(){T=this.clientWidth,r(3,T)}function B(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,r(1,p)})}return t.$$set=n=>{"lang"in n&&r(16,m=n.lang),"local"in n&&r(17,D=n.local),"currencysymbol"in n&&r(18,_=n.currencysymbol),"currencyposition"in n&&r(19,M=n.currencyposition),"currencydecimals"in n&&r(20,y=n.currencydecimals),"methodtype"in n&&r(0,k=n.methodtype),"clientstyling"in n&&r(21,L=n.clientstyling),"clientstylingurl"in n&&r(22,h=n.clientstylingurl),"mbsource"in n&&r(23,f=n.mbsource),"translationurl"in n&&r(24,d=n.translationurl)},t.$$.update=()=>{t.$$.dirty[0]&65536&&m&&I(),t.$$.dirty[0]&16842752&&m&&d&&F(),t.$$.dirty[0]&12&&v&&T&&X(),t.$$.dirty[0]&2097154&&L&&p&&Q.setClientStyling(p,L),t.$$.dirty[0]&4194306&&h&&p&&Q.setClientStylingURL(p,h),t.$$.dirty[0]&8388610&&f&&p&&Q.setStreamStyling(p,`${f}.Style`,b),t.$$.dirty[0]&1048576&&r(8,l=Number(y))},[k,p,v,T,u,i,c,S,l,o,x,R,E,H,z,V,m,D,_,M,y,L,h,f,d,J,j,Z,q,U,O,B]}class pe extends e.SvelteComponent{constructor(a){super(),e.init$1(this,a,be,ye,e.safe_not_equal,{lang:16,local:17,currencysymbol:18,currencyposition:19,currencydecimals:20,methodtype:0,clientstyling:21,clientstylingurl:22,mbsource:23,translationurl:24},he,[-1,-1])}get lang(){return this.$$.ctx[16]}set lang(a){this.$$set({lang:a}),e.flush()}get local(){return this.$$.ctx[17]}set local(a){this.$$set({local:a}),e.flush()}get currencysymbol(){return this.$$.ctx[18]}set currencysymbol(a){this.$$set({currencysymbol:a}),e.flush()}get currencyposition(){return this.$$.ctx[19]}set currencyposition(a){this.$$set({currencyposition:a}),e.flush()}get currencydecimals(){return this.$$.ctx[20]}set currencydecimals(a){this.$$set({currencydecimals:a}),e.flush()}get methodtype(){return this.$$.ctx[0]}set methodtype(a){this.$$set({methodtype:a}),e.flush()}get clientstyling(){return this.$$.ctx[21]}set clientstyling(a){this.$$set({clientstyling:a}),e.flush()}get clientstylingurl(){return this.$$.ctx[22]}set clientstylingurl(a){this.$$set({clientstylingurl:a}),e.flush()}get mbsource(){return this.$$.ctx[23]}set mbsource(a){this.$$set({mbsource:a}),e.flush()}get translationurl(){return this.$$.ctx[24]}set translationurl(a){this.$$set({translationurl:a}),e.flush()}}e.create_custom_element(pe,{lang:{},local:{},currencysymbol:{},currencyposition:{},currencydecimals:{},methodtype:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=pe;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierPage-DFc7t9CJ.cjs"),Q=require("./CashierHeader-DCoLHm99.cjs");function ne(t,a){e.addMessages(t,a)}function me(t){e.init({fallbackLocale:"en"}),e.$locale.set(t)}const ie={en:{generalMin:"Min",generalMax:"Max",error:"Error",noFavoritePaymentMethods:"No favorite payment methods available",DepositRealTime:"Instant deposit",WithdrawRealTime:"Instant withdrawal",DepositVariable:"Variable",WithdrawVariable:"Variable",carouselTitle:"Favorite Methods",carouselSubtitle:"The most popular payment methods"},tr:{generalMin:"Min",generalMax:"Maks",error:"Hata",noFavoritePaymentMethods:"Favori ödeme yöntemi mevcut değil",DepositRealTime:"Anında para yatırma",WithdrawRealTime:"Anında para çekme",DepositVariable:"Değişken",WithdrawVariable:"Değişken",carouselTitle:"Favori Yöntemler",carouselSubtitle:"En popüler ödeme yöntemleri"},fr:{generalMin:"Min",generalMax:"Max",error:"Erreur",noFavoritePaymentMethods:"Aucun moyen de paiement favori disponible",DepositRealTime:"Dépôt instantané",WithdrawRealTime:"Retrait instantané",DepositVariable:"Variable",WithdrawVariable:"Variable",carouselTitle:"Méthodes favorites",carouselSubtitle:"Les moyens de paiement les plus populaires"}};function he(t){e.append_styles(t,"svelte-1tnzy1r",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CashierCarouselWarpper{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));color:var(--emw--color-typography, var(--emw--color-white, #ffffff));height:auto;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;position:relative;overflow:hidden}.NavigationArrow{height:220px;z-index:20;display:flex;transition:all 0.3s ease;position:absolute}.NavigationArrow:hover{cursor:pointer}.NavigationArrow:hover svg{opacity:1;transform:scale(1.1);filter:drop-shadow(0 0 0.75rem var(--emw--color-black))}.NavigationArrow svg{opacity:0.6;width:32px;height:32px;align-self:center;fill:var(--emw--color-white);transition:all 0.3s ease}.NavigationArrow.Left{left:0;background:linear-gradient(to right, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.NavigationArrow.Right{right:0;background:linear-gradient(to left, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.CarouselHeader{margin-bottom:20px;text-align:center}.CarouselHeader h4{font-size:12px;text-transform:uppercase;margin:10px 0}.CarouselHeader p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.55;font-size:12px}.NoFavoritePaymentMethods{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}.CarouselCardsContainer{display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;max-width:100%;width:inherit}.Carousel{display:flex;gap:var(--emw-cashier-card-gap, 10px);height:220px;position:relative;align-items:center;transition:transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.Carousel.dragging{transition:none}.VisualDotIndicator{display:flex;gap:5px;margin-top:16px}.VisualDotIndicator .Dot{border-radius:10px;background-color:var(--emw--color-primary, #f9c405);height:10px;width:10px;opacity:0.5;transition:all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);transform:scale(1)}.VisualDotIndicator .Dot.active{opacity:1;width:30px;transform:scale(1);animation:dotPulse 0.6s ease-out}@keyframes dotPulse{0%{transform:scale(0.8);opacity:0.5}50%{transform:scale(1.15)}100%{transform:scale(1);opacity:1}}.CarouselCardWrapper{border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);position:relative;display:flex;flex-direction:column;justify-content:space-between;z-index:1;padding:5px;height:115px;width:var(--emw-cashier-card-width, 78px);transition:all 0.3s ease;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.CarouselCardWrapper.active{height:132px;width:var(--emw-cashier-card-width-active, 100px)}.CarouselCardWrapper.active::before{background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.3}.CarouselCardWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:16px;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}.CarouselCardWrapper .MethodLogo img{height:20px;width:auto}.CarouselCardWrapper .MethodInfo{display:flex;flex-direction:column;gap:10px;word-break:break-word}.CarouselCardWrapper .MethodInfo .MethodTitle{font-size:var(--emw--font-size-small, 10px);font-weight:800}.CarouselCardWrapper .MethodInfo .MethodProcessingTime{color:var(--emw--color-primary, #f9c405);font-style:italic;font-size:var(--emw--font-size-x-small, 8px)}.CarouselCardWrapper .MethodInfo .MethodLimits{gap:var(--emw--spacing-small-minus, 10px);text-align:left}.CarouselCardWrapper .MethodInfo .Limits{display:flex;flex-direction:column;max-width:100%;font-size:var(--emw--font-size-x-small, 8px);font-weight:var(--emw--font-weight-normal, 300)}')}function le(t,a,r){const l=t.slice();return l[42]=a[r],l[44]=r,l}function se(t,a,r){const l=t.slice();return l[45]=a[r],l[44]=r,l}function fe(t){let a,r=t[9]("noFavoritePaymentMethods")+"",l;return{c(){a=e.element("p"),l=e.text(r),e.attr(a,"class","NoFavoritePaymentMethods")},m(o,m){e.insert(o,a,m),e.append(a,l)},p(o,m){m[0]&512&&r!==(r=o[9]("noFavoritePaymentMethods")+"")&&e.set_data(l,r)},d(o){o&&e.detach(a)}}}function ge(t){let a,r=!e.isMobile(t[10])&&t[5].length>1,l,o,m,D=!e.isMobile(t[10])&&t[5].length>1,_,M,y,k,L,h=r&&oe(t),f=e.ensure_array_like(t[5]),d=[];for(let i=0;i<f.length;i+=1)d[i]=ce(se(t,f,i));let u=D&&de(t),p=e.ensure_array_like(Array(t[5].length)),b=[];for(let i=0;i<p.length;i+=1)b[i]=ue(le(t,p,i));return{c(){a=e.element("div"),h&&h.c(),l=e.space(),o=e.element("div");for(let i=0;i<d.length;i+=1)d[i].c();m=e.space(),u&&u.c(),M=e.space(),y=e.element("div");for(let i=0;i<b.length;i+=1)b[i].c();e.attr(o,"class","Carousel"),e.attr(a,"class","CarouselCardsContainer"),e.add_render_callback(()=>t[30].call(a)),e.attr(y,"class","VisualDotIndicator")},m(i,c){e.insert(i,a,c),h&&h.m(a,null),e.append(a,l),e.append(a,o);for(let s=0;s<d.length;s+=1)d[s]&&d[s].m(o,null);t[28](o),e.append(a,m),u&&u.m(a,null),_=e.add_iframe_resize_listener(a,t[30].bind(a)),e.insert(i,M,c),e.insert(i,y,c);for(let s=0;s<b.length;s+=1)b[s]&&b[s].m(y,null);k||(L=[e.listen(o,"touchstart",t[12]),e.listen(o,"touchmove",t[13]),e.listen(o,"touchend",t[14])],k=!0)},p(i,c){if(c[0]&32&&(r=!e.isMobile(i[10])&&i[5].length>1),r?h?h.p(i,c):(h=oe(i),h.c(),h.m(a,l)):h&&(h.d(1),h=null),c[0]&3057){f=e.ensure_array_like(i[5]);let s;for(s=0;s<f.length;s+=1){const N=se(i,f,s);d[s]?d[s].p(N,c):(d[s]=ce(N),d[s].c(),d[s].m(o,null))}for(;s<d.length;s+=1)d[s].d(1);d.length=f.length}if(c[0]&32&&(D=!e.isMobile(i[10])&&i[5].length>1),D?u?u.p(i,c):(u=de(i),u.c(),u.m(a,null)):u&&(u.d(1),u=null),c[0]&96){p=e.ensure_array_like(Array(i[5].length));let s;for(s=0;s<p.length;s+=1){const N=le(i,p,s);b[s]?b[s].p(N,c):(b[s]=ue(N),b[s].c(),b[s].m(y,null))}for(;s<b.length;s+=1)b[s].d(1);b.length=p.length}},d(i){i&&(e.detach(a),e.detach(M),e.detach(y)),h&&h.d(),e.destroy_each(d,i),t[28](null),u&&u.d(),_(),e.destroy_each(b,i),k=!1,e.run_all(L)}}}function oe(t){let a,r,l;return{c(){a=e.element("div"),a.innerHTML='<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.9997 5.33335C21.8907 5.33335 26.6663 10.109 26.6663 16C26.6663 21.8911 21.8907 26.6667 15.9997 26.6667C10.1086 26.6667 5.33301 21.8911 5.33301 16C5.33301 10.109 10.1086 5.33335 15.9997 5.33335ZM29.333 16C29.333 8.63622 23.3635 2.66669 15.9997 2.66669C8.63588 2.66669 2.66634 8.63622 2.66634 16C2.66634 23.3638 8.63588 29.3334 15.9997 29.3334C23.3635 29.3334 29.333 23.3638 29.333 16ZM18.2758 11.0572C17.7551 10.5365 16.9109 10.5365 16.3902 11.0572L12.3902 15.0572C11.8695 15.5779 11.8695 16.4221 12.3902 16.9428L16.3902 20.9428C16.9109 21.4635 17.7551 21.4635 18.2758 20.9428C18.7965 20.4221 18.7965 19.5779 18.2758 19.0572L15.2186 16L18.2758 12.9428C18.7965 12.4221 18.7965 11.5779 18.2758 11.0572Z"></path></svg>',e.attr(a,"class","NavigationArrow Left")},m(o,m){e.insert(o,a,m),r||(l=e.listen(a,"click",t[25]),r=!0)},p:e.noop,d(o){o&&e.detach(a),r=!1,l()}}}function ce(t){var j,Z,q,U,O,B,n,g;let a,r,l,o,m,D,_,M,y,k=(t[45].Label||t[45].Name)+"",L,h,f,d,u=t[9](`${t[0]}${t[45].ProcessingTime}`)+"",p,b,i,c,s,N=t[9]("generalMin")+"",W,v,T=e.formatCurrency(t[45].DisplayCurrency.MinAmountLimit,t[45].DisplayCurrency.Name,{maximumFractionDigits:t[4][(Z=(j=t[45])==null?void 0:j.DisplayCurrency)==null?void 0:Z.Name]||t[8],minimumFractionDigits:t[4][(U=(q=t[45])==null?void 0:q.DisplayCurrency)==null?void 0:U.Name]||t[8]})+"",S,x,A,F=t[9]("generalMax")+"",I,R,P=e.formatCurrency(t[45].DisplayCurrency.MaxAmountLimit,t[45].DisplayCurrency.Name,{maximumFractionDigits:t[4][(B=(O=t[45])==null?void 0:O.DisplayCurrency)==null?void 0:B.Name]||t[8],minimumFractionDigits:t[4][(g=(n=t[45])==null?void 0:n.DisplayCurrency)==null?void 0:g.Name]||t[8]})+"",E,H,z,X,V;function J(){return t[26](t[45],t[44])}return{c(){a=e.element("div"),r=e.element("div"),l=e.element("img"),D=e.space(),_=e.element("div"),M=e.element("div"),y=e.element("span"),L=e.text(k),h=e.space(),f=e.element("div"),d=e.element("span"),p=e.text(u),b=e.space(),i=e.element("div"),c=e.element("span"),s=e.element("span"),W=e.text(N),v=e.space(),S=e.text(T),x=e.space(),A=e.element("span"),I=e.text(F),R=e.space(),E=e.text(P),H=e.space(),e.src_url_equal(l.src,o=t[45].LogoUrl)||e.attr(l,"src",o),e.attr(l,"alt",m=t[45].Label),e.attr(r,"class","MethodLogo"),e.attr(M,"class","MethodTitle"),e.attr(f,"class","MethodProcessingTime"),e.attr(c,"class","Limits"),e.attr(i,"class","MethodLimits"),e.attr(_,"class","MethodInfo"),e.attr(a,"class",z=`CarouselCardWrapper ${t[44]===t[6]?"active":""}`)},m(w,C){e.insert(w,a,C),e.append(a,r),e.append(r,l),e.append(a,D),e.append(a,_),e.append(_,M),e.append(M,y),e.append(y,L),e.append(_,h),e.append(_,f),e.append(f,d),e.append(d,p),e.append(_,b),e.append(_,i),e.append(i,c),e.append(c,s),e.append(s,W),e.append(s,v),e.append(s,S),e.append(c,x),e.append(c,A),e.append(A,I),e.append(A,R),e.append(A,E),e.append(a,H),t[27](a),X||(V=e.listen(a,"click",J),X=!0)},p(w,C){var Y,G,K,$,ee,te,ae,re;t=w,C[0]&32&&!e.src_url_equal(l.src,o=t[45].LogoUrl)&&e.attr(l,"src",o),C[0]&32&&m!==(m=t[45].Label)&&e.attr(l,"alt",m),C[0]&32&&k!==(k=(t[45].Label||t[45].Name)+"")&&e.set_data(L,k),C[0]&545&&u!==(u=t[9](`${t[0]}${t[45].ProcessingTime}`)+"")&&e.set_data(p,u),C[0]&512&&N!==(N=t[9]("generalMin")+"")&&e.set_data(W,N),C[0]&304&&T!==(T=e.formatCurrency(t[45].DisplayCurrency.MinAmountLimit,t[45].DisplayCurrency.Name,{maximumFractionDigits:t[4][(G=(Y=t[45])==null?void 0:Y.DisplayCurrency)==null?void 0:G.Name]||t[8],minimumFractionDigits:t[4][($=(K=t[45])==null?void 0:K.DisplayCurrency)==null?void 0:$.Name]||t[8]})+"")&&e.set_data(S,T),C[0]&512&&F!==(F=t[9]("generalMax")+"")&&e.set_data(I,F),C[0]&304&&P!==(P=e.formatCurrency(t[45].DisplayCurrency.MaxAmountLimit,t[45].DisplayCurrency.Name,{maximumFractionDigits:t[4][(te=(ee=t[45])==null?void 0:ee.DisplayCurrency)==null?void 0:te.Name]||t[8],minimumFractionDigits:t[4][(re=(ae=t[45])==null?void 0:ae.DisplayCurrency)==null?void 0:re.Name]||t[8]})+"")&&e.set_data(E,P),C[0]&64&&z!==(z=`CarouselCardWrapper ${t[44]===t[6]?"active":""}`)&&e.attr(a,"class",z)},d(w){w&&e.detach(a),t[27](null),X=!1,V()}}}function de(t){let a,r,l;return{c(){a=e.element("div"),a.innerHTML='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.0003 5.33335C10.1093 5.33335 5.33366 10.109 5.33366 16C5.33366 21.8911 10.1093 26.6667 16.0003 26.6667C21.8914 26.6667 26.667 21.8911 26.667 16C26.667 10.109 21.8914 5.33335 16.0003 5.33335ZM2.66699 16C2.66699 8.63622 8.63653 2.66669 16.0003 2.66669C23.3641 2.66669 29.3337 8.63622 29.3337 16C29.3337 23.3638 23.3641 29.3334 16.0003 29.3334C8.63653 29.3334 2.66699 23.3638 2.66699 16ZM13.7242 11.0572C14.2449 10.5365 15.0891 10.5365 15.6098 11.0572L19.6098 15.0572C20.1305 15.5779 20.1305 16.4221 19.6098 16.9428L15.6098 20.9428C15.0891 21.4635 14.2449 21.4635 13.7242 20.9428C13.2035 20.4221 13.2035 19.5779 13.7242 19.0572L16.7814 16L13.7242 12.9428C13.2035 12.4221 13.2035 11.5779 13.7242 11.0572Z"></path></svg>',e.attr(a,"class","NavigationArrow Right")},m(o,m){e.insert(o,a,m),r||(l=e.listen(a,"click",t[29]),r=!0)},p:e.noop,d(o){o&&e.detach(a),r=!1,l()}}}function ue(t){let a,r;return{c(){a=e.element("div"),e.attr(a,"class",r=`Dot ${t[44]===t[6]?"active":""}`)},m(l,o){e.insert(l,a,o)},p(l,o){o[0]&64&&r!==(r=`Dot ${l[44]===l[6]?"active":""}`)&&e.attr(a,"class",r)},d(l){l&&e.detach(a)}}}function ye(t){let a,r,l,o,m=t[9]("carouselTitle")+"",D,_,M,y=t[9]("carouselSubtitle")+"",k,L;function h(u,p){return u[5].length>0?ge:fe}let f=h(t),d=f(t);return{c(){a=e.element("div"),r=e.element("div"),l=e.element("div"),o=e.element("h4"),D=e.text(m),_=e.space(),M=e.element("p"),k=e.text(y),L=e.space(),d.c(),e.attr(l,"class","CarouselHeader"),e.attr(r,"class","CashierCarouselWarpper")},m(u,p){e.insert(u,a,p),e.append(a,r),e.append(r,l),e.append(l,o),e.append(o,D),e.append(l,_),e.append(l,M),e.append(M,k),e.append(r,L),d.m(r,null),t[31](a)},p(u,p){p[0]&512&&m!==(m=u[9]("carouselTitle")+"")&&e.set_data(D,m),p[0]&512&&y!==(y=u[9]("carouselSubtitle")+"")&&e.set_data(k,y),f===(f=h(u))&&d?d.p(u,p):(d.d(1),d=f(u),d&&(d.c(),d.m(r,null)))},i:e.noop,o:e.noop,d(u){u&&e.detach(a),d.d(),t[31](null)}}}function be(t,a,r){let l,o;e.component_subscribe(t,e.$format,n=>r(9,o=n));let{lang:m="en"}=a,{local:D="en-US"}=a,{currencysymbol:_="true"}=a,{currencyposition:M=""}=a,{currencydecimals:y="0"}=a,{methodtype:k=""}=a,{clientstyling:L=""}=a,{clientstylingurl:h=""}=a,{mbsource:f=""}=a,{translationurl:d=""}=a,u={},p,b,i=[],c=0,s=!0,N=0,W=!1,v,T,S,x=window.navigator.userAgent;const A=n=>{var w,C;const{data:{type:g}={}}=n||{};switch(g){case"PromotedPaymentMethods":{r(5,i=(w=n==null?void 0:n.data)==null?void 0:w.promotedPaymentMethods),r(6,c=Math.floor((i.length-1)/2));break}case"PrecisionCurrenciesMap":{r(4,u=((C=n==null?void 0:n.data)==null?void 0:C.payload)||{});break}}};Object.keys(ie).forEach(n=>{ne(n,ie[n])});const F=()=>{let n=d;if(n)return fetch(n).then(g=>g.json()).then(g=>{Object.keys(g).forEach(w=>{ne(w,g[w])})}).catch(g=>{console.log(g)})},I=()=>{me(m)},R=(n,g)=>{r(6,c=g),r(2,v.style.transform=P(),v),n.Name,window.postMessage({type:"SelectPayMeth",details:n},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:n,bubbles:!0,cancelable:!0,composed:!0}))},P=()=>{const n=parseFloat(getComputedStyle(S).getPropertyValue("--emw-cashier-card-width"))||78,g=parseFloat(getComputedStyle(v).getPropertyValue("--emw-cashier-card-gap"))||10,w=parseFloat(getComputedStyle(S).getPropertyValue("--emw-cashier-card-width-active"))||100,C=n+g,Y=T/2,G=c*C+w/2;return`translateX(${Y-G}px)`},E=n=>{N=n.touches[0].clientX,W=!0,v.classList.add("dragging")},H=n=>{if(!W)return;const g=n.touches[0].clientX;Math.abs(g-N)>10&&n.preventDefault()},z=n=>{if(!W)return;W=!1,v.classList.remove("dragging");const g=n.changedTouches[0].clientX,w=N-g;Math.abs(w)>50&&(w>0&&c<i.length-1?r(6,c++,c):w<0&&c>0&&r(6,c--,c),r(2,v.style.transform=P(),v))},X=()=>{s&&(r(2,v.style.transform=P(),v),s=!1)},V=n=>{n==="next"&&c<i.length-1?r(6,c++,c):n==="prev"&&c>0&&r(6,c--,c),r(2,v.style.transform=P(),v)};e.onMount(()=>(e.initCurrencyFormatter(D,_,M,y),window.addEventListener("message",A),window.postMessage({type:"CashierCarouselReady"},window.location.href),v&&P(),()=>{window.removeEventListener("message",A)}));const J=()=>V("prev"),j=(n,g)=>R(n,g);function Z(n){e.binding_callbacks[n?"unshift":"push"](()=>{S=n,r(7,S)})}function q(n){e.binding_callbacks[n?"unshift":"push"](()=>{v=n,r(2,v)})}const U=()=>V("next");function O(){T=this.clientWidth,r(3,T)}function B(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,r(1,p)})}return t.$$set=n=>{"lang"in n&&r(16,m=n.lang),"local"in n&&r(17,D=n.local),"currencysymbol"in n&&r(18,_=n.currencysymbol),"currencyposition"in n&&r(19,M=n.currencyposition),"currencydecimals"in n&&r(20,y=n.currencydecimals),"methodtype"in n&&r(0,k=n.methodtype),"clientstyling"in n&&r(21,L=n.clientstyling),"clientstylingurl"in n&&r(22,h=n.clientstylingurl),"mbsource"in n&&r(23,f=n.mbsource),"translationurl"in n&&r(24,d=n.translationurl)},t.$$.update=()=>{t.$$.dirty[0]&65536&&m&&I(),t.$$.dirty[0]&16842752&&m&&d&&F(),t.$$.dirty[0]&12&&v&&T&&X(),t.$$.dirty[0]&2097154&&L&&p&&Q.setClientStyling(p,L),t.$$.dirty[0]&4194306&&h&&p&&Q.setClientStylingURL(p,h),t.$$.dirty[0]&8388610&&f&&p&&Q.setStreamStyling(p,`${f}.Style`,b),t.$$.dirty[0]&1048576&&r(8,l=Number(y))},[k,p,v,T,u,i,c,S,l,o,x,R,E,H,z,V,m,D,_,M,y,L,h,f,d,J,j,Z,q,U,O,B]}class pe extends e.SvelteComponent{constructor(a){super(),e.init$1(this,a,be,ye,e.safe_not_equal,{lang:16,local:17,currencysymbol:18,currencyposition:19,currencydecimals:20,methodtype:0,clientstyling:21,clientstylingurl:22,mbsource:23,translationurl:24},he,[-1,-1])}get lang(){return this.$$.ctx[16]}set lang(a){this.$$set({lang:a}),e.flush()}get local(){return this.$$.ctx[17]}set local(a){this.$$set({local:a}),e.flush()}get currencysymbol(){return this.$$.ctx[18]}set currencysymbol(a){this.$$set({currencysymbol:a}),e.flush()}get currencyposition(){return this.$$.ctx[19]}set currencyposition(a){this.$$set({currencyposition:a}),e.flush()}get currencydecimals(){return this.$$.ctx[20]}set currencydecimals(a){this.$$set({currencydecimals:a}),e.flush()}get methodtype(){return this.$$.ctx[0]}set methodtype(a){this.$$set({methodtype:a}),e.flush()}get clientstyling(){return this.$$.ctx[21]}set clientstyling(a){this.$$set({clientstyling:a}),e.flush()}get clientstylingurl(){return this.$$.ctx[22]}set clientstylingurl(a){this.$$set({clientstylingurl:a}),e.flush()}get mbsource(){return this.$$.ctx[23]}set mbsource(a){this.$$set({mbsource:a}),e.flush()}get translationurl(){return this.$$.ctx[24]}set translationurl(a){this.$$set({translationurl:a}),e.flush()}}e.create_custom_element(pe,{lang:{},local:{},currencysymbol:{},currencyposition:{},currencydecimals:{},methodtype:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=pe;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as Ze, a as Ue, b as xe } from "./CashierHeader-
|
|
1
|
+
import { b as Ne, N as Te, a as Pe, S as Se, O as We, a1 as Fe, E as A, f as Ae, V as oe, x as R, a3 as V, Q as E, e as c, z as g, a9 as I, a6 as S, g as p, l as ze, Y as Ve, h as de, R as le, B as ne, w as ye, _ as Ie, c as Re, T as x, d as Ee, F as se, a7 as ve, P as Xe, o as He, $ as je } from "./CashierPage-Yklnwu-d.js";
|
|
2
|
+
import { s as Ze, a as Ue, b as xe } from "./CashierHeader-YhgwXeCk.js";
|
|
3
3
|
function be(e, t) {
|
|
4
4
|
Ne(e, t);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Oe(e) {
|
|
7
7
|
Te({
|
|
8
8
|
fallbackLocale: "en"
|
|
9
|
-
}),
|
|
9
|
+
}), Pe.set(e);
|
|
10
10
|
}
|
|
11
11
|
const we = {
|
|
12
12
|
en: {
|
|
@@ -47,7 +47,7 @@ const we = {
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
function Be(e) {
|
|
50
|
-
|
|
50
|
+
Ae(e, "svelte-1tnzy1r", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CashierCarouselWarpper{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));color:var(--emw--color-typography, var(--emw--color-white, #ffffff));height:auto;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;position:relative;overflow:hidden}.NavigationArrow{height:220px;z-index:20;display:flex;transition:all 0.3s ease;position:absolute}.NavigationArrow:hover{cursor:pointer}.NavigationArrow:hover svg{opacity:1;transform:scale(1.1);filter:drop-shadow(0 0 0.75rem var(--emw--color-black))}.NavigationArrow svg{opacity:0.6;width:32px;height:32px;align-self:center;fill:var(--emw--color-white);transition:all 0.3s ease}.NavigationArrow.Left{left:0;background:linear-gradient(to right, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.NavigationArrow.Right{right:0;background:linear-gradient(to left, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.CarouselHeader{margin-bottom:20px;text-align:center}.CarouselHeader h4{font-size:12px;text-transform:uppercase;margin:10px 0}.CarouselHeader p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.55;font-size:12px}.NoFavoritePaymentMethods{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}.CarouselCardsContainer{display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;max-width:100%;width:inherit}.Carousel{display:flex;gap:var(--emw-cashier-card-gap, 10px);height:220px;position:relative;align-items:center;transition:transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.Carousel.dragging{transition:none}.VisualDotIndicator{display:flex;gap:5px;margin-top:16px}.VisualDotIndicator .Dot{border-radius:10px;background-color:var(--emw--color-primary, #f9c405);height:10px;width:10px;opacity:0.5;transition:all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);transform:scale(1)}.VisualDotIndicator .Dot.active{opacity:1;width:30px;transform:scale(1);animation:dotPulse 0.6s ease-out}@keyframes dotPulse{0%{transform:scale(0.8);opacity:0.5}50%{transform:scale(1.15)}100%{transform:scale(1);opacity:1}}.CarouselCardWrapper{border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);position:relative;display:flex;flex-direction:column;justify-content:space-between;z-index:1;padding:5px;height:115px;width:var(--emw-cashier-card-width, 78px);transition:all 0.3s ease;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.CarouselCardWrapper.active{height:132px;width:var(--emw-cashier-card-width-active, 100px)}.CarouselCardWrapper.active::before{background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.3}.CarouselCardWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:16px;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}.CarouselCardWrapper .MethodLogo img{height:20px;width:auto}.CarouselCardWrapper .MethodInfo{display:flex;flex-direction:column;gap:10px;word-break:break-word}.CarouselCardWrapper .MethodInfo .MethodTitle{font-size:var(--emw--font-size-small, 10px);font-weight:800}.CarouselCardWrapper .MethodInfo .MethodProcessingTime{color:var(--emw--color-primary, #f9c405);font-style:italic;font-size:var(--emw--font-size-x-small, 8px)}.CarouselCardWrapper .MethodInfo .MethodLimits{gap:var(--emw--spacing-small-minus, 10px);text-align:left}.CarouselCardWrapper .MethodInfo .Limits{display:flex;flex-direction:column;max-width:100%;font-size:var(--emw--font-size-x-small, 8px);font-weight:var(--emw--font-weight-normal, 300)}');
|
|
51
51
|
}
|
|
52
52
|
function Ce(e, t, a) {
|
|
53
53
|
const l = e.slice();
|
|
@@ -57,14 +57,14 @@ function _e(e, t, a) {
|
|
|
57
57
|
const l = e.slice();
|
|
58
58
|
return l[45] = t[a], l[44] = a, l;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function qe(e) {
|
|
61
61
|
let t, a = (
|
|
62
62
|
/*$_*/
|
|
63
63
|
e[9]("noFavoritePaymentMethods") + ""
|
|
64
64
|
), l;
|
|
65
65
|
return {
|
|
66
66
|
c() {
|
|
67
|
-
t = g("p"), l =
|
|
67
|
+
t = g("p"), l = I(a), p(t, "class", "NoFavoritePaymentMethods");
|
|
68
68
|
},
|
|
69
69
|
m(s, f) {
|
|
70
70
|
E(s, t, f), c(t, l);
|
|
@@ -72,14 +72,14 @@ function Oe(e) {
|
|
|
72
72
|
p(s, f) {
|
|
73
73
|
f[0] & /*$_*/
|
|
74
74
|
512 && a !== (a = /*$_*/
|
|
75
|
-
s[9]("noFavoritePaymentMethods") + "") &&
|
|
75
|
+
s[9]("noFavoritePaymentMethods") + "") && V(l, a);
|
|
76
76
|
},
|
|
77
77
|
d(s) {
|
|
78
78
|
s && R(t);
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Ye(e) {
|
|
83
83
|
let t, a = !le(
|
|
84
84
|
/*userAgent*/
|
|
85
85
|
e[10]
|
|
@@ -102,10 +102,10 @@ function Ge(e) {
|
|
|
102
102
|
w[i] = Le(Ce(e, m, i));
|
|
103
103
|
return {
|
|
104
104
|
c() {
|
|
105
|
-
t = g("div"), h && h.c(), l =
|
|
105
|
+
t = g("div"), h && h.c(), l = S(), s = g("div");
|
|
106
106
|
for (let i = 0; i < u.length; i += 1)
|
|
107
107
|
u[i].c();
|
|
108
|
-
f =
|
|
108
|
+
f = S(), d && d.c(), D = S(), b = g("div");
|
|
109
109
|
for (let i = 0; i < w.length; i += 1)
|
|
110
110
|
w[i].c();
|
|
111
111
|
p(s, "class", "Carousel"), p(t, "class", "CarouselCardsContainer"), Ee(() => (
|
|
@@ -159,8 +159,8 @@ function Ge(e) {
|
|
|
159
159
|
);
|
|
160
160
|
let n;
|
|
161
161
|
for (n = 0; n < y.length; n += 1) {
|
|
162
|
-
const
|
|
163
|
-
u[n] ? u[n].p(
|
|
162
|
+
const P = _e(i, y, n);
|
|
163
|
+
u[n] ? u[n].p(P, o) : (u[n] = ke(P), u[n].c(), u[n].m(s, null));
|
|
164
164
|
}
|
|
165
165
|
for (; n < u.length; n += 1)
|
|
166
166
|
u[n].d(1);
|
|
@@ -179,8 +179,8 @@ function Ge(e) {
|
|
|
179
179
|
));
|
|
180
180
|
let n;
|
|
181
181
|
for (n = 0; n < m.length; n += 1) {
|
|
182
|
-
const
|
|
183
|
-
w[n] ? w[n].p(
|
|
182
|
+
const P = Ce(i, m, n);
|
|
183
|
+
w[n] ? w[n].p(P, o) : (w[n] = Le(P), w[n].c(), w[n].m(b, null));
|
|
184
184
|
}
|
|
185
185
|
for (; n < w.length; n += 1)
|
|
186
186
|
w[n].d(1);
|
|
@@ -188,7 +188,7 @@ function Ge(e) {
|
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
190
|
d(i) {
|
|
191
|
-
i && (R(t), R(D), R(b)), h && h.d(), ye(u, i), e[28](null), d && d.d(), _(), ye(w, i), L = !1,
|
|
191
|
+
i && (R(t), R(D), R(b)), h && h.d(), ye(u, i), e[28](null), d && d.d(), _(), ye(w, i), L = !1, Ie(T);
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
194
|
}
|
|
@@ -213,7 +213,7 @@ function Me(e) {
|
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
215
|
function ke(e) {
|
|
216
|
-
var
|
|
216
|
+
var J, K, $, ee, te, ae, r, v;
|
|
217
217
|
let t, a, l, s, f, N, _, D, b, L = (
|
|
218
218
|
/*method*/
|
|
219
219
|
(e[45].Label || /*method*/
|
|
@@ -223,7 +223,7 @@ function ke(e) {
|
|
|
223
223
|
e[9](`${/*methodtype*/
|
|
224
224
|
e[0]}${/*method*/
|
|
225
225
|
e[45].ProcessingTime}`) + ""
|
|
226
|
-
), m, w, i, o, n,
|
|
226
|
+
), m, w, i, o, n, P = (
|
|
227
227
|
/*$_*/
|
|
228
228
|
e[9]("generalMin") + ""
|
|
229
229
|
), X, C, W = se(
|
|
@@ -236,7 +236,7 @@ function ke(e) {
|
|
|
236
236
|
/*precisionCurrenciesMap*/
|
|
237
237
|
e[4][
|
|
238
238
|
/*method*/
|
|
239
|
-
(
|
|
239
|
+
(K = (J = e[45]) == null ? void 0 : J.DisplayCurrency) == null ? void 0 : K.Name
|
|
240
240
|
] || /*numericCurrencyDecimals*/
|
|
241
241
|
e[8]
|
|
242
242
|
),
|
|
@@ -249,10 +249,10 @@ function ke(e) {
|
|
|
249
249
|
e[8]
|
|
250
250
|
)
|
|
251
251
|
}
|
|
252
|
-
) + "", z,
|
|
252
|
+
) + "", z, Q, H, j = (
|
|
253
253
|
/*$_*/
|
|
254
254
|
e[9]("generalMax") + ""
|
|
255
|
-
),
|
|
255
|
+
), O, B, F = se(
|
|
256
256
|
/*method*/
|
|
257
257
|
e[45].DisplayCurrency.MaxAmountLimit,
|
|
258
258
|
/*method*/
|
|
@@ -275,7 +275,7 @@ function ke(e) {
|
|
|
275
275
|
e[8]
|
|
276
276
|
)
|
|
277
277
|
}
|
|
278
|
-
) + "",
|
|
278
|
+
) + "", q, G, Z, Y, U;
|
|
279
279
|
function ce() {
|
|
280
280
|
return (
|
|
281
281
|
/*click_handler_1*/
|
|
@@ -289,14 +289,14 @@ function ke(e) {
|
|
|
289
289
|
}
|
|
290
290
|
return {
|
|
291
291
|
c() {
|
|
292
|
-
t = g("div"), a = g("div"), l = g("img"), N =
|
|
292
|
+
t = g("div"), a = g("div"), l = g("img"), N = S(), _ = g("div"), D = g("div"), b = g("span"), T = I(L), h = S(), y = g("div"), u = g("span"), m = I(d), w = S(), i = g("div"), o = g("span"), n = g("span"), X = I(P), C = S(), z = I(W), Q = S(), H = g("span"), O = I(j), B = S(), q = I(F), G = S(), ve(l.src, s = /*method*/
|
|
293
293
|
e[45].LogoUrl) || p(l, "src", s), p(l, "alt", f = /*method*/
|
|
294
294
|
e[45].Label), p(a, "class", "MethodLogo"), p(D, "class", "MethodTitle"), p(y, "class", "MethodProcessingTime"), p(o, "class", "Limits"), p(i, "class", "MethodLimits"), p(_, "class", "MethodInfo"), p(t, "class", Z = `CarouselCardWrapper ${/*index*/
|
|
295
295
|
e[44] === /*activeIndex*/
|
|
296
296
|
e[6] ? "active" : ""}`);
|
|
297
297
|
},
|
|
298
298
|
m(M, k) {
|
|
299
|
-
E(M, t, k), c(t, a), c(a, l), c(t, N), c(t, _), c(_, D), c(D, b), c(b, T), c(_, h), c(_, y), c(y, u), c(u, m), c(_, w), c(_, i), c(i, o), c(o, n), c(n, X), c(n, C), c(n, z), c(o,
|
|
299
|
+
E(M, t, k), c(t, a), c(a, l), c(t, N), c(t, _), c(_, D), c(D, b), c(b, T), c(_, h), c(_, y), c(y, u), c(u, m), c(_, w), c(_, i), c(i, o), c(o, n), c(n, X), c(n, C), c(n, z), c(o, Q), c(o, H), c(H, O), c(H, B), c(H, q), c(t, G), e[27](t), Y || (U = x(t, "click", ce), Y = !0);
|
|
300
300
|
},
|
|
301
301
|
p(M, k) {
|
|
302
302
|
var re, ie, ue, me, fe, he, ge, pe;
|
|
@@ -307,13 +307,13 @@ function ke(e) {
|
|
|
307
307
|
e[45].Label) && p(l, "alt", f), k[0] & /*promotedPaymentMethods*/
|
|
308
308
|
32 && L !== (L = /*method*/
|
|
309
309
|
(e[45].Label || /*method*/
|
|
310
|
-
e[45].Name) + "") &&
|
|
310
|
+
e[45].Name) + "") && V(T, L), k[0] & /*$_, methodtype, promotedPaymentMethods*/
|
|
311
311
|
545 && d !== (d = /*$_*/
|
|
312
312
|
e[9](`${/*methodtype*/
|
|
313
313
|
e[0]}${/*method*/
|
|
314
|
-
e[45].ProcessingTime}`) + "") &&
|
|
315
|
-
512 &&
|
|
316
|
-
e[9]("generalMin") + "") &&
|
|
314
|
+
e[45].ProcessingTime}`) + "") && V(m, d), k[0] & /*$_*/
|
|
315
|
+
512 && P !== (P = /*$_*/
|
|
316
|
+
e[9]("generalMin") + "") && V(X, P), k[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
317
317
|
304 && W !== (W = se(
|
|
318
318
|
/*method*/
|
|
319
319
|
e[45].DisplayCurrency.MinAmountLimit,
|
|
@@ -337,10 +337,10 @@ function ke(e) {
|
|
|
337
337
|
e[8]
|
|
338
338
|
)
|
|
339
339
|
}
|
|
340
|
-
) + "") &&
|
|
340
|
+
) + "") && V(z, W), k[0] & /*$_*/
|
|
341
341
|
512 && j !== (j = /*$_*/
|
|
342
|
-
e[9]("generalMax") + "") &&
|
|
343
|
-
304 &&
|
|
342
|
+
e[9]("generalMax") + "") && V(O, j), k[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
|
|
343
|
+
304 && F !== (F = se(
|
|
344
344
|
/*method*/
|
|
345
345
|
e[45].DisplayCurrency.MaxAmountLimit,
|
|
346
346
|
/*method*/
|
|
@@ -363,13 +363,13 @@ function ke(e) {
|
|
|
363
363
|
e[8]
|
|
364
364
|
)
|
|
365
365
|
}
|
|
366
|
-
) + "") &&
|
|
366
|
+
) + "") && V(q, F), k[0] & /*activeIndex*/
|
|
367
367
|
64 && Z !== (Z = `CarouselCardWrapper ${/*index*/
|
|
368
368
|
e[44] === /*activeIndex*/
|
|
369
369
|
e[6] ? "active" : ""}`) && p(t, "class", Z);
|
|
370
370
|
},
|
|
371
371
|
d(M) {
|
|
372
|
-
M && R(t), e[27](null),
|
|
372
|
+
M && R(t), e[27](null), Y = !1, U();
|
|
373
373
|
}
|
|
374
374
|
};
|
|
375
375
|
}
|
|
@@ -415,7 +415,7 @@ function Le(e) {
|
|
|
415
415
|
}
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function Qe(e) {
|
|
419
419
|
let t, a, l, s, f = (
|
|
420
420
|
/*$_*/
|
|
421
421
|
e[9]("carouselTitle") + ""
|
|
@@ -426,13 +426,13 @@ function Je(e) {
|
|
|
426
426
|
function h(d, m) {
|
|
427
427
|
return (
|
|
428
428
|
/*promotedPaymentMethods*/
|
|
429
|
-
d[5].length > 0 ?
|
|
429
|
+
d[5].length > 0 ? Ye : qe
|
|
430
430
|
);
|
|
431
431
|
}
|
|
432
432
|
let y = h(e), u = y(e);
|
|
433
433
|
return {
|
|
434
434
|
c() {
|
|
435
|
-
t = g("div"), a = g("div"), l = g("div"), s = g("h4"), N =
|
|
435
|
+
t = g("div"), a = g("div"), l = g("div"), s = g("h4"), N = I(f), _ = S(), D = g("p"), L = I(b), T = S(), u.c(), p(l, "class", "CarouselHeader"), p(a, "class", "CashierCarouselWarpper");
|
|
436
436
|
},
|
|
437
437
|
m(d, m) {
|
|
438
438
|
E(d, t, m), c(t, a), c(a, l), c(l, s), c(s, N), c(l, _), c(l, D), c(D, L), c(a, T), u.m(a, null), e[31](t);
|
|
@@ -440,9 +440,9 @@ function Je(e) {
|
|
|
440
440
|
p(d, m) {
|
|
441
441
|
m[0] & /*$_*/
|
|
442
442
|
512 && f !== (f = /*$_*/
|
|
443
|
-
d[9]("carouselTitle") + "") &&
|
|
443
|
+
d[9]("carouselTitle") + "") && V(N, f), m[0] & /*$_*/
|
|
444
444
|
512 && b !== (b = /*$_*/
|
|
445
|
-
d[9]("carouselSubtitle") + "") &&
|
|
445
|
+
d[9]("carouselSubtitle") + "") && V(L, b), y === (y = h(d)) && u ? u.p(d, m) : (u.d(1), u = y(d), u && (u.c(), u.m(a, null)));
|
|
446
446
|
},
|
|
447
447
|
i: oe,
|
|
448
448
|
o: oe,
|
|
@@ -451,10 +451,10 @@ function Je(e) {
|
|
|
451
451
|
}
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function Ge(e, t, a) {
|
|
455
455
|
let l, s;
|
|
456
456
|
ze(e, je, (r) => a(9, s = r));
|
|
457
|
-
let { lang: f = "en" } = t, { local: N = "en-US" } = t, { currencysymbol: _ = "true" } = t, { currencyposition: D = "" } = t, { currencydecimals: b = "0" } = t, { methodtype: L = "" } = t, { clientstyling: T = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: y = "" } = t, { translationurl: u = "" } = t, d = {}, m, w, i = [], o = 0, n = !0,
|
|
457
|
+
let { lang: f = "en" } = t, { local: N = "en-US" } = t, { currencysymbol: _ = "true" } = t, { currencyposition: D = "" } = t, { currencydecimals: b = "0" } = t, { methodtype: L = "" } = t, { clientstyling: T = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: y = "" } = t, { translationurl: u = "" } = t, d = {}, m, w, i = [], o = 0, n = !0, P = 0, X = !1, C, W, z, Q = window.navigator.userAgent;
|
|
458
458
|
const H = (r) => {
|
|
459
459
|
var M, k;
|
|
460
460
|
const { data: { type: v } = {} } = r || {};
|
|
@@ -482,10 +482,10 @@ function Ke(e, t, a) {
|
|
|
482
482
|
}).catch((v) => {
|
|
483
483
|
console.log(v);
|
|
484
484
|
});
|
|
485
|
-
},
|
|
486
|
-
|
|
485
|
+
}, O = () => {
|
|
486
|
+
Oe(f);
|
|
487
487
|
}, B = (r, v) => {
|
|
488
|
-
a(6, o = v), a(2, C.style.transform =
|
|
488
|
+
a(6, o = v), a(2, C.style.transform = F(), C), r.Name, window.postMessage({ type: "SelectPayMeth", details: r }, window.location.href), dispatchEvent(new CustomEvent(
|
|
489
489
|
"selectPayMeth",
|
|
490
490
|
{
|
|
491
491
|
detail: r,
|
|
@@ -494,32 +494,32 @@ function Ke(e, t, a) {
|
|
|
494
494
|
composed: !0
|
|
495
495
|
}
|
|
496
496
|
));
|
|
497
|
-
},
|
|
497
|
+
}, F = () => {
|
|
498
498
|
const r = parseFloat(getComputedStyle(z).getPropertyValue("--emw-cashier-card-width")) || 78, v = parseFloat(getComputedStyle(C).getPropertyValue("--emw-cashier-card-gap")) || 10, M = parseFloat(getComputedStyle(z).getPropertyValue("--emw-cashier-card-width-active")) || 100, k = r + v, re = W / 2, ie = o * k + M / 2;
|
|
499
499
|
return `translateX(${re - ie}px)`;
|
|
500
|
-
},
|
|
501
|
-
|
|
502
|
-
},
|
|
500
|
+
}, q = (r) => {
|
|
501
|
+
P = r.touches[0].clientX, X = !0, C.classList.add("dragging");
|
|
502
|
+
}, G = (r) => {
|
|
503
503
|
if (!X)
|
|
504
504
|
return;
|
|
505
505
|
const v = r.touches[0].clientX;
|
|
506
|
-
Math.abs(v -
|
|
506
|
+
Math.abs(v - P) > 10 && r.preventDefault();
|
|
507
507
|
}, Z = (r) => {
|
|
508
508
|
if (!X)
|
|
509
509
|
return;
|
|
510
510
|
X = !1, C.classList.remove("dragging");
|
|
511
|
-
const v = r.changedTouches[0].clientX, M =
|
|
512
|
-
Math.abs(M) > 50 && (M > 0 && o < i.length - 1 ? a(6, o++, o) : M < 0 && o > 0 && a(6, o--, o), a(2, C.style.transform =
|
|
513
|
-
},
|
|
514
|
-
n && (a(2, C.style.transform =
|
|
511
|
+
const v = r.changedTouches[0].clientX, M = P - v;
|
|
512
|
+
Math.abs(M) > 50 && (M > 0 && o < i.length - 1 ? a(6, o++, o) : M < 0 && o > 0 && a(6, o--, o), a(2, C.style.transform = F(), C));
|
|
513
|
+
}, Y = () => {
|
|
514
|
+
n && (a(2, C.style.transform = F(), C), n = !1);
|
|
515
515
|
}, U = (r) => {
|
|
516
|
-
r === "next" && o < i.length - 1 ? a(6, o++, o) : r === "prev" && o > 0 && a(6, o--, o), a(2, C.style.transform =
|
|
516
|
+
r === "next" && o < i.length - 1 ? a(6, o++, o) : r === "prev" && o > 0 && a(6, o--, o), a(2, C.style.transform = F(), C);
|
|
517
517
|
};
|
|
518
|
-
|
|
518
|
+
Ve(() => (Xe(N, _, D, b), window.addEventListener("message", H), window.postMessage({ type: "CashierCarouselReady" }, window.location.href), C && F(), () => {
|
|
519
519
|
window.removeEventListener("message", H);
|
|
520
520
|
}));
|
|
521
|
-
const ce = () => U("prev"),
|
|
522
|
-
function
|
|
521
|
+
const ce = () => U("prev"), J = (r, v) => B(r, v);
|
|
522
|
+
function K(r) {
|
|
523
523
|
de[r ? "unshift" : "push"](() => {
|
|
524
524
|
z = r, a(7, z);
|
|
525
525
|
});
|
|
@@ -542,9 +542,9 @@ function Ke(e, t, a) {
|
|
|
542
542
|
"lang" in r && a(16, f = r.lang), "local" in r && a(17, N = r.local), "currencysymbol" in r && a(18, _ = r.currencysymbol), "currencyposition" in r && a(19, D = r.currencyposition), "currencydecimals" in r && a(20, b = r.currencydecimals), "methodtype" in r && a(0, L = r.methodtype), "clientstyling" in r && a(21, T = r.clientstyling), "clientstylingurl" in r && a(22, h = r.clientstylingurl), "mbsource" in r && a(23, y = r.mbsource), "translationurl" in r && a(24, u = r.translationurl);
|
|
543
543
|
}, e.$$.update = () => {
|
|
544
544
|
e.$$.dirty[0] & /*lang*/
|
|
545
|
-
65536 && f &&
|
|
545
|
+
65536 && f && O(), e.$$.dirty[0] & /*lang, translationurl*/
|
|
546
546
|
16842752 && f && u && j(), e.$$.dirty[0] & /*carouselContainer, carouselContainerWidth*/
|
|
547
|
-
12 && C && W &&
|
|
547
|
+
12 && C && W && Y(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
548
548
|
2097154 && T && m && Ze(m, T), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
549
549
|
4194306 && h && m && Ue(m, h), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
550
550
|
8388610 && y && m && xe(m, `${y}.Style`, w), e.$$.dirty[0] & /*currencydecimals*/
|
|
@@ -560,10 +560,10 @@ function Ke(e, t, a) {
|
|
|
560
560
|
z,
|
|
561
561
|
l,
|
|
562
562
|
s,
|
|
563
|
-
|
|
563
|
+
Q,
|
|
564
564
|
B,
|
|
565
|
-
|
|
566
|
-
|
|
565
|
+
q,
|
|
566
|
+
G,
|
|
567
567
|
Z,
|
|
568
568
|
U,
|
|
569
569
|
f,
|
|
@@ -576,22 +576,22 @@ function Ke(e, t, a) {
|
|
|
576
576
|
y,
|
|
577
577
|
u,
|
|
578
578
|
ce,
|
|
579
|
-
|
|
580
|
-
|
|
579
|
+
J,
|
|
580
|
+
K,
|
|
581
581
|
$,
|
|
582
582
|
ee,
|
|
583
583
|
te,
|
|
584
584
|
ae
|
|
585
585
|
];
|
|
586
586
|
}
|
|
587
|
-
class
|
|
587
|
+
class Je extends Se {
|
|
588
588
|
constructor(t) {
|
|
589
589
|
super(), We(
|
|
590
590
|
this,
|
|
591
591
|
t,
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
592
|
+
Ge,
|
|
593
|
+
Qe,
|
|
594
|
+
Fe,
|
|
595
595
|
{
|
|
596
596
|
lang: 16,
|
|
597
597
|
local: 17,
|
|
@@ -612,64 +612,64 @@ class Ye extends Pe {
|
|
|
612
612
|
return this.$$.ctx[16];
|
|
613
613
|
}
|
|
614
614
|
set lang(t) {
|
|
615
|
-
this.$$set({ lang: t }),
|
|
615
|
+
this.$$set({ lang: t }), A();
|
|
616
616
|
}
|
|
617
617
|
get local() {
|
|
618
618
|
return this.$$.ctx[17];
|
|
619
619
|
}
|
|
620
620
|
set local(t) {
|
|
621
|
-
this.$$set({ local: t }),
|
|
621
|
+
this.$$set({ local: t }), A();
|
|
622
622
|
}
|
|
623
623
|
get currencysymbol() {
|
|
624
624
|
return this.$$.ctx[18];
|
|
625
625
|
}
|
|
626
626
|
set currencysymbol(t) {
|
|
627
|
-
this.$$set({ currencysymbol: t }),
|
|
627
|
+
this.$$set({ currencysymbol: t }), A();
|
|
628
628
|
}
|
|
629
629
|
get currencyposition() {
|
|
630
630
|
return this.$$.ctx[19];
|
|
631
631
|
}
|
|
632
632
|
set currencyposition(t) {
|
|
633
|
-
this.$$set({ currencyposition: t }),
|
|
633
|
+
this.$$set({ currencyposition: t }), A();
|
|
634
634
|
}
|
|
635
635
|
get currencydecimals() {
|
|
636
636
|
return this.$$.ctx[20];
|
|
637
637
|
}
|
|
638
638
|
set currencydecimals(t) {
|
|
639
|
-
this.$$set({ currencydecimals: t }),
|
|
639
|
+
this.$$set({ currencydecimals: t }), A();
|
|
640
640
|
}
|
|
641
641
|
get methodtype() {
|
|
642
642
|
return this.$$.ctx[0];
|
|
643
643
|
}
|
|
644
644
|
set methodtype(t) {
|
|
645
|
-
this.$$set({ methodtype: t }),
|
|
645
|
+
this.$$set({ methodtype: t }), A();
|
|
646
646
|
}
|
|
647
647
|
get clientstyling() {
|
|
648
648
|
return this.$$.ctx[21];
|
|
649
649
|
}
|
|
650
650
|
set clientstyling(t) {
|
|
651
|
-
this.$$set({ clientstyling: t }),
|
|
651
|
+
this.$$set({ clientstyling: t }), A();
|
|
652
652
|
}
|
|
653
653
|
get clientstylingurl() {
|
|
654
654
|
return this.$$.ctx[22];
|
|
655
655
|
}
|
|
656
656
|
set clientstylingurl(t) {
|
|
657
|
-
this.$$set({ clientstylingurl: t }),
|
|
657
|
+
this.$$set({ clientstylingurl: t }), A();
|
|
658
658
|
}
|
|
659
659
|
get mbsource() {
|
|
660
660
|
return this.$$.ctx[23];
|
|
661
661
|
}
|
|
662
662
|
set mbsource(t) {
|
|
663
|
-
this.$$set({ mbsource: t }),
|
|
663
|
+
this.$$set({ mbsource: t }), A();
|
|
664
664
|
}
|
|
665
665
|
get translationurl() {
|
|
666
666
|
return this.$$.ctx[24];
|
|
667
667
|
}
|
|
668
668
|
set translationurl(t) {
|
|
669
|
-
this.$$set({ translationurl: t }),
|
|
669
|
+
this.$$set({ translationurl: t }), A();
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
|
-
He(
|
|
672
|
+
He(Je, { lang: {}, local: {}, currencysymbol: {}, currencyposition: {}, currencydecimals: {}, methodtype: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
673
673
|
export {
|
|
674
|
-
|
|
674
|
+
Je as default
|
|
675
675
|
};
|