@everymatrix/cashier-page 1.98.7 → 1.98.9
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-CLl1dEO0.js → CashierCarousel-BzdUV7XF.js} +160 -136
- package/components/{CashierCarousel-jiScaw1m.js → CashierCarousel-FFsdS-lS.js} +166 -142
- package/components/CashierCarousel-zmZZjXPR.cjs +1 -0
- package/components/{CashierError-BgzGU74G.js → CashierError-DM9cHWYk.js} +282 -178
- package/components/{CashierError-nb2MHtLH.cjs → CashierError-DtmAFp4L.cjs} +1 -1
- package/components/{CashierError-ulLnVgQF.js → CashierError-R9QTGjHi.js} +282 -178
- package/components/{CashierHeader-DEksQqYQ.js → CashierHeader-BGa8_twf.js} +144 -130
- package/components/{CashierHeader-jQ2-E617.js → CashierHeader-BoWdCzOy.js} +144 -130
- package/components/CashierHeader-DL7CeVPX.cjs +1 -0
- package/components/{CashierIframeRedirect-BUy5m6fN.js → CashierIframeRedirect-BGDgKj5q.js} +38 -32
- package/components/{CashierIframeRedirect-CyY79191.js → CashierIframeRedirect-ByL4GN6L.js} +38 -32
- package/components/CashierIframeRedirect-DwOnILP1.cjs +1 -0
- package/components/{CashierMethodDetails-DmHKHr2M.cjs → CashierMethodDetails-CMadBp5s.cjs} +4 -4
- package/components/{CashierMethodDetails-BHGrCcE3.js → CashierMethodDetails-DgFi6GOg.js} +1345 -1149
- package/components/{CashierMethodDetails-B-klrcoA.js → CashierMethodDetails-DwAKidqM.js} +1500 -1304
- package/components/{CashierMethodsList-u11i0SYf.js → CashierMethodsList-B0Y7Ov2y.js} +136 -112
- package/components/CashierMethodsList-BKSWzfhx.cjs +1 -0
- package/components/{CashierMethodsList-KXr3hScy.js → CashierMethodsList-BttlgP8I.js} +152 -128
- package/components/{CashierModal-Ke9TZX5s.js → CashierModal-BAqyZ3yN.js} +2 -2
- package/components/{CashierModal-4iF9ylQT.js → CashierModal-CTEreymk.js} +2 -2
- package/components/{CashierModal-CcawnfUI.cjs → CashierModal-DYiiDdjF.cjs} +1 -1
- package/components/{CashierNotifications-DquKOU8w.js → CashierNotifications-5vMGexnB.js} +1 -1
- package/components/{CashierNotifications-CY2B13Wf.js → CashierNotifications-C9DAtUCd.js} +1 -1
- package/components/{CashierNotifications-wQG099OX.cjs → CashierNotifications-DeciL3hL.cjs} +1 -1
- package/components/{CashierPage-895aolw0.js → CashierPage-Cyh00U_t.js} +1216 -1118
- package/components/{CashierPage-DEYpTaJv.cjs → CashierPage-Datx6Ztd.cjs} +6 -6
- package/components/{CashierPage-Bz6JgmrH.js → CashierPage-DmSMSwFD.js} +712 -614
- package/components/{CashierReceiptPage-CGcmTBRp.js → CashierReceiptPage-2QLgzHKu.js} +486 -302
- package/components/{CashierReceiptPage-BCh5OfiT.cjs → CashierReceiptPage-CljAf_RX.cjs} +2 -2
- package/components/{CashierReceiptPage-DNsdCwQQ.js → CashierReceiptPage-zipsq7HA.js} +483 -299
- package/components/{CashierSessionExpirationModal-i5NfYzNE.js → CashierSessionExpirationModal-BHUuaz3G.js} +141 -125
- package/components/CashierSessionExpirationModal-BhdcM6-i.cjs +2 -0
- package/components/{CashierSessionExpirationModal-IfrOHdOp.js → CashierSessionExpirationModal-CPiyWnR6.js} +141 -125
- package/components/{CashierSpinner-bOYmQpsr.js → CashierSpinner-CfN6GP0k.js} +2 -2
- package/components/{CashierSpinner-CKdmXXKt.cjs → CashierSpinner-DK9MV_jW.cjs} +1 -1
- package/components/{CashierSpinner-C9Ra-0IT.js → CashierSpinner-DlmmgiCp.js} +2 -2
- package/components/{CashierStepUp-B3Ph1OSf.js → CashierStepUp-D4IutqnI.js} +397 -351
- package/components/{CashierStepUp-CKae09kD.js → CashierStepUp-DBkCHzU6.js} +371 -325
- package/components/CashierStepUp-f6d-L0Pv.cjs +1 -0
- package/components/{CashierTransactionHistory-_uQpfmaM.js → CashierTransactionHistory-Bfx6cEFg.js} +522 -472
- package/components/{CashierTransactionHistory-DkPMVofl.js → CashierTransactionHistory-BmgU4GU7.js} +494 -444
- package/components/CashierTransactionHistory-Bxd87eQt.cjs +1 -0
- package/components/CashierVerifications-B-u47VhR.cjs +1 -0
- package/components/{CashierVerifications-CA42knBf.js → CashierVerifications-Bi_7cW9r.js} +256 -210
- package/components/{CashierVerifications-C3vBxGTw.js → CashierVerifications-UTO3n0Ei.js} +245 -199
- package/components/{TxnStatusIcon-T3_oGTiJ.js → TxnStatusIcon-CDynHfdT.js} +1 -1
- package/components/{TxnStatusIcon-_ohfqibs.js → TxnStatusIcon-XWXNjZi6.js} +1 -1
- package/components/{TxnStatusIcon-ObLzHWKw.cjs → TxnStatusIcon-xNz_TX3o.cjs} +1 -1
- package/components/{TxnTypeIcons-DhQNGQt2.js → TxnTypeIcons-Bui9VGqk.js} +1 -1
- package/components/{TxnTypeIcons-gD4j8VCB.js → TxnTypeIcons-D0YhmAk8.js} +1 -1
- package/components/{TxnTypeIcons-mX1zqVBL.cjs → TxnTypeIcons-D3xjja9q.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/CashierCarousel-Dh5Q3q4o.cjs +0 -1
- package/components/CashierHeader-DA_ReO25.cjs +0 -1
- package/components/CashierIframeRedirect-CB1_eaMN.cjs +0 -1
- package/components/CashierMethodsList-BvOniQPF.cjs +0 -1
- package/components/CashierSessionExpirationModal-CIrMZkSD.cjs +0 -2
- package/components/CashierStepUp-DIQ9DrxX.cjs +0 -1
- package/components/CashierTransactionHistory-Bkqw8dMT.cjs +0 -1
- package/components/CashierVerifications-BZPBsrmc.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as f, b as u, s as p, f as w, c as v, y as d, e as a, k as h, r as g, l as o, Q as r, o as t, A as k } from "./CashierPage-
|
|
1
|
+
import { S as f, b as u, s as p, f as w, c as v, y as d, e as a, k as h, r as g, l as o, Q as r, o as t, A as k } from "./CashierPage-Cyh00U_t.js";
|
|
2
2
|
function _(n) {
|
|
3
3
|
v(n, "svelte-17lvd7j", "svg.svelte-17lvd7j{flex:0 0 auto;width:18px;height:18px}");
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as f, b as u, s as p, f as w, d as v, z as d, g as a, l as h, v as g, m as o, Q as r, p as t, c as k } from "./CashierPage-
|
|
1
|
+
import { S as f, b as u, s as p, f as w, d as v, z as d, g as a, l as h, v as g, m as o, Q as r, p as t, c as k } from "./CashierPage-DmSMSwFD.js";
|
|
2
2
|
function _(n) {
|
|
3
3
|
v(n, "svelte-17lvd7j", "svg.svelte-17lvd7j{flex:0 0 auto;width:18px;height:18px}");
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./CashierPage-
|
|
1
|
+
"use strict";const t=require("./CashierPage-Datx6Ztd.cjs");function o(l){t.append_styles(l,"svelte-17lvd7j","svg.svelte-17lvd7j{flex:0 0 auto;width:18px;height:18px}")}function c(l){let e,a,r;return{c(){e=t.svg_element("svg"),a=t.svg_element("rect"),r=t.svg_element("path"),t.attr(a,"width","18"),t.attr(a,"height","18"),t.attr(a,"rx","9"),t.attr(a,"fill","#4A975C"),t.attr(a,"fill-opacity","0.29"),t.attr(r,"d","M12.5 7L8.11111 12L5 8.5"),t.attr(r,"stroke","#4A975C"),t.attr(r,"stroke-width","2"),t.attr(r,"stroke-linecap","round"),t.attr(r,"stroke-linejoin","round"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 18 18"),t.attr(e,"fill","none"),t.attr(e,"class","svelte-17lvd7j")},m(n,i){t.insert(n,e,i),t.append(e,a),t.append(e,r)},d(n){n&&t.detach(e)}}}function d(l){let e,a,r;return{c(){e=t.svg_element("svg"),a=t.svg_element("rect"),r=t.svg_element("path"),t.attr(a,"width","18"),t.attr(a,"height","18"),t.attr(a,"rx","9"),t.attr(a,"fill","#DD6617"),t.attr(a,"fill-opacity","0.3"),t.attr(r,"d","M9.02911 10.048C8.91711 10.056 8.80111 10.064 8.68111 10.072C8.56911 10.072 8.45311 10.072 8.33311 10.072C8.19711 10.072 8.06111 10.072 7.92511 10.072C7.78911 10.072 7.63711 10.064 7.46911 10.048V12.484C7.46911 12.74 7.40511 12.9 7.27711 12.964C7.15711 13.02 7.00511 13.048 6.82111 13.048C6.72511 13.048 6.64911 13.04 6.59311 13.024C6.53711 13.016 6.48911 12.996 6.44911 12.964C6.41711 12.924 6.38911 12.868 6.36511 12.796C6.34911 12.724 6.33711 12.624 6.32911 12.496C6.31311 12.352 6.30111 12.144 6.29311 11.872C6.28511 11.592 6.27711 11.232 6.26911 10.792C6.26911 10.352 6.26511 9.82 6.25711 9.196C6.25711 8.564 6.25711 7.824 6.25711 6.976C6.25711 6.648 6.29711 6.332 6.37711 6.028C6.45711 5.716 6.60111 5.444 6.80911 5.212C7.01711 4.972 7.29711 4.78 7.64911 4.636C8.00911 4.492 8.46511 4.42 9.01711 4.42C9.40911 4.42 9.78911 4.464 10.1571 4.552C10.5331 4.64 10.8651 4.792 11.1531 5.008C11.4411 5.224 11.6731 5.516 11.8491 5.884C12.0251 6.252 12.1131 6.712 12.1131 7.264C12.1131 8 11.9531 8.572 11.6331 8.98C11.3211 9.38 10.8891 9.664 10.3371 9.832L11.9451 12.04C12.0891 12.232 12.1611 12.428 12.1611 12.628C12.1611 12.788 12.1051 12.912 11.9931 13C11.8891 13.096 11.7571 13.144 11.5971 13.144C11.4211 13.144 11.2691 13.096 11.1411 13C11.0131 12.896 10.8931 12.764 10.7811 12.604L9.02911 10.048ZM10.9131 7.252C10.9131 6.7 10.7451 6.292 10.4091 6.028C10.0811 5.756 9.55711 5.62 8.83711 5.62C8.57311 5.62 8.35311 5.644 8.17711 5.692C8.00111 5.732 7.86111 5.812 7.75711 5.932C7.65311 6.052 7.57711 6.22 7.52911 6.436C7.48911 6.644 7.46911 6.912 7.46911 7.24C7.46911 7.472 7.46911 7.744 7.46911 8.056C7.46911 8.368 7.47311 8.652 7.48111 8.908C7.66511 8.916 7.86911 8.92 8.09311 8.92C8.32511 8.92 8.54111 8.92 8.74111 8.92C8.96511 8.92 9.20111 8.908 9.44911 8.884C9.70511 8.852 9.94111 8.78 10.1571 8.668C10.3731 8.548 10.5531 8.38 10.6971 8.164C10.8411 7.94 10.9131 7.636 10.9131 7.252Z"),t.attr(r,"fill","#DD6617"),t.attr(r,"fill-opacity","0.831373"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 18 18"),t.attr(e,"fill","none"),t.attr(e,"class","svelte-17lvd7j")},m(n,i){t.insert(n,e,i),t.append(e,a),t.append(e,r)},d(n){n&&t.detach(e)}}}function h(l){let e,a,r,n;return{c(){e=t.svg_element("svg"),a=t.svg_element("rect"),r=t.svg_element("path"),n=t.svg_element("path"),t.attr(a,"width","18"),t.attr(a,"height","18"),t.attr(a,"rx","9"),t.attr(a,"fill","#F0A85F"),t.attr(a,"fill-opacity","0.3"),t.attr(r,"d","M8.99967 14.6666C12.1293 14.6666 14.6663 12.1296 14.6663 8.99998C14.6663 5.87037 12.1293 3.33331 8.99967 3.33331C5.87006 3.33331 3.33301 5.87037 3.33301 8.99998C3.33301 12.1296 5.87006 14.6666 8.99967 14.6666Z"),t.attr(r,"stroke","#F0A85F"),t.attr(r,"stroke-width","2"),t.attr(r,"stroke-linecap","round"),t.attr(r,"stroke-linejoin","round"),t.attr(n,"d","M9 6V9L11 10"),t.attr(n,"stroke","#F0A85F"),t.attr(n,"stroke-width","2"),t.attr(n,"stroke-linecap","round"),t.attr(n,"stroke-linejoin","round"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 18 18"),t.attr(e,"fill","none"),t.attr(e,"class","svelte-17lvd7j")},m(i,s){t.insert(i,e,s),t.append(e,a),t.append(e,r),t.append(e,n)},d(i){i&&t.detach(e)}}}function p(l){let e,a,r,n;return{c(){e=t.svg_element("svg"),a=t.svg_element("rect"),r=t.svg_element("path"),n=t.svg_element("path"),t.attr(a,"width","18"),t.attr(a,"height","18"),t.attr(a,"rx","9"),t.attr(a,"fill","#F35A23"),t.attr(a,"fill-opacity","0.29"),t.attr(r,"d","M12 6L6 12"),t.attr(r,"stroke","#F35A23"),t.attr(r,"stroke-width","2"),t.attr(r,"stroke-linecap","round"),t.attr(r,"stroke-linejoin","round"),t.attr(n,"d","M6 6L12 12"),t.attr(n,"stroke","#F35A23"),t.attr(n,"stroke-width","2"),t.attr(n,"stroke-linecap","round"),t.attr(n,"stroke-linejoin","round"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 18 18"),t.attr(e,"fill","none"),t.attr(e,"class","svelte-17lvd7j")},m(i,s){t.insert(i,e,s),t.append(e,a),t.append(e,r),t.append(e,n)},d(i){i&&t.detach(e)}}}function f(l){let e,a,r;return{c(){e=t.svg_element("svg"),a=t.svg_element("rect"),r=t.svg_element("path"),t.attr(a,"width","18"),t.attr(a,"height","18"),t.attr(a,"rx","9"),t.attr(a,"fill","#32B398"),t.attr(a,"fill-opacity","0.3"),t.attr(r,"d","M11.1679 12.388C11.0879 12.196 10.9999 11.976 10.9039 11.728C10.8159 11.472 10.7199 11.204 10.6159 10.924C10.3759 10.932 10.1239 10.94 9.85992 10.948C9.59592 10.948 9.32792 10.948 9.05592 10.948C8.71192 10.948 8.39992 10.948 8.11992 10.948C7.83992 10.948 7.58392 10.944 7.35192 10.936C7.25592 11.216 7.16392 11.48 7.07592 11.728C6.98792 11.976 6.90392 12.196 6.82392 12.388C6.66392 12.796 6.43192 13 6.12792 13C6.01592 13 5.90792 12.964 5.80392 12.892C5.70792 12.82 5.65992 12.716 5.65992 12.58C5.65992 12.444 5.68392 12.268 5.73192 12.052C5.77992 11.828 5.83992 11.592 5.91192 11.344C5.99192 11.088 6.07592 10.828 6.16392 10.564C6.25192 10.292 6.33592 10.04 6.41592 9.808C6.49592 9.552 6.60792 9.228 6.75192 8.836C6.90392 8.436 7.06392 8.02 7.23192 7.588C7.39992 7.156 7.56792 6.732 7.73592 6.316C7.90392 5.892 8.05592 5.524 8.19192 5.212C8.22392 5.132 8.26392 5.044 8.31192 4.948C8.35992 4.844 8.41592 4.748 8.47992 4.66C8.55192 4.572 8.62792 4.496 8.70792 4.432C8.79592 4.368 8.89192 4.336 8.99592 4.336C9.09992 4.336 9.19592 4.372 9.28392 4.444C9.37192 4.508 9.44792 4.588 9.51192 4.684C9.58392 4.78 9.64392 4.88 9.69192 4.984C9.74792 5.088 9.79192 5.18 9.82392 5.26C9.95192 5.58 10.0959 5.948 10.2559 6.364C10.4239 6.78 10.5879 7.2 10.7479 7.624C10.9159 8.048 11.0719 8.452 11.2159 8.836C11.3599 9.22 11.4759 9.544 11.5639 9.808C11.6359 10.04 11.7159 10.288 11.8039 10.552C11.8999 10.816 11.9879 11.076 12.0679 11.332C12.1479 11.588 12.2119 11.828 12.2599 12.052C12.3159 12.268 12.3439 12.444 12.3439 12.58C12.3439 12.716 12.2919 12.82 12.1879 12.892C12.0919 12.964 11.9879 13 11.8759 13C11.7319 13 11.5999 12.952 11.4799 12.856C11.3599 12.752 11.2559 12.596 11.1679 12.388ZM9.04392 9.748C9.23592 9.748 9.42792 9.752 9.61992 9.76C9.81192 9.76 10.0039 9.764 10.1959 9.772C10.0999 9.492 10.0039 9.212 9.90792 8.932C9.81192 8.652 9.71992 8.384 9.63192 8.128C9.55192 7.872 9.47592 7.636 9.40392 7.42C9.33992 7.196 9.28392 7 9.23592 6.832C9.20392 6.728 9.16792 6.644 9.12792 6.58C9.08792 6.516 9.03592 6.484 8.97192 6.484C8.90792 6.484 8.85592 6.52 8.81592 6.592C8.77592 6.656 8.73992 6.74 8.70792 6.844C8.61192 7.172 8.47592 7.6 8.29992 8.128C8.13192 8.648 7.95192 9.196 7.75992 9.772C7.97592 9.764 8.19192 9.76 8.40792 9.76C8.62392 9.752 8.83592 9.748 9.04392 9.748Z"),t.attr(r,"fill","#32B398"),t.attr(r,"fill-opacity","0.831373"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 18 18"),t.attr(e,"fill","none"),t.attr(e,"class","svelte-17lvd7j")},m(n,i){t.insert(n,e,i),t.append(e,a),t.append(e,r)},d(n){n&&t.detach(e)}}}function u(l){let e;function a(i,s){if(i[0]==="Authorized")return f;if(i[0]==="Failed")return p;if(i[0]==="Pending")return h;if(i[0]==="Rejected")return d;if(i[0]==="Success")return c}let r=a(l),n=r&&r(l);return{c(){n&&n.c(),e=t.empty()},m(i,s){n&&n.m(i,s),t.insert(i,e,s)},p(i,[s]){r!==(r=a(i))&&(n&&n.d(1),n=r&&r(i),n&&(n.c(),n.m(e.parentNode,e)))},i:t.noop,o:t.noop,d(i){i&&t.detach(e),n&&n.d(i)}}}function v(l,e,a){let{status:r=""}=e;return l.$$set=n=>{"status"in n&&a(0,r=n.status)},[r]}class C extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,v,u,t.safe_not_equal,{status:0},o)}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),t.flush()}}t.create_custom_element(C,{status:{}},[],[],!0);exports.TxnStatusIcon=C;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as u, b as k, s as w, f as _, z as p, g as d, l as h, v as g, m as a, Q as s, p as t, c as m } from "./CashierPage-
|
|
1
|
+
import { S as u, b as k, s as w, f as _, z as p, g as d, l as h, v as g, m as a, Q as s, p as t, c as m } from "./CashierPage-DmSMSwFD.js";
|
|
2
2
|
function y(c) {
|
|
3
3
|
let e, o, r, i, n;
|
|
4
4
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as u, b as k, s as w, f as _, y as p, e as d, k as h, r as g, l as a, Q as s, o as t, A as m } from "./CashierPage-
|
|
1
|
+
import { S as u, b as k, s as w, f as _, y as p, e as d, k as h, r as g, l as a, Q as s, o as t, A as m } from "./CashierPage-Cyh00U_t.js";
|
|
2
2
|
function y(c) {
|
|
3
3
|
let e, o, r, i, n;
|
|
4
4
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./CashierPage-
|
|
1
|
+
"use strict";const t=require("./CashierPage-Datx6Ztd.cjs");function d(s){let e,n,a,r,i;return{c(){e=t.svg_element("svg"),n=t.svg_element("rect"),a=t.svg_element("path"),r=t.svg_element("path"),i=t.svg_element("path"),t.attr(n,"width","24"),t.attr(n,"height","24"),t.attr(n,"rx","12"),t.attr(n,"fill","#F38123"),t.attr(n,"fill-opacity","0.29"),t.attr(a,"d","M16 8L8 16"),t.attr(a,"stroke","#F38123"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(r,"d","M16 18C17.1046 18 18 17.1046 18 16C18 14.8954 17.1046 14 16 14C14.8954 14 14 14.8954 14 16C14 17.1046 14.8954 18 16 18Z"),t.attr(r,"stroke","#F38123"),t.attr(r,"stroke-width","2"),t.attr(r,"stroke-linecap","round"),t.attr(r,"stroke-linejoin","round"),t.attr(i,"d","M8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z"),t.attr(i,"stroke","#F38123"),t.attr(i,"stroke-width","2"),t.attr(i,"stroke-linecap","round"),t.attr(i,"stroke-linejoin","round"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"width","24"),t.attr(e,"height","24"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none")},m(o,p){t.insert(o,e,p),t.append(e,n),t.append(e,a),t.append(e,r),t.append(e,i)},d(o){o&&t.detach(e)}}}function c(s){let e,n,a,r;return{c(){e=t.svg_element("svg"),n=t.svg_element("rect"),a=t.svg_element("path"),r=t.svg_element("path"),t.attr(n,"width","24"),t.attr(n,"height","24"),t.attr(n,"rx","12"),t.attr(n,"fill","#F35A23"),t.attr(n,"fill-opacity","0.28"),t.attr(a,"d","M12.5345 7.20005L7.20117 12L12.5345 16.8"),t.attr(a,"stroke","#F35A23"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(r,"d","M16.9773 12L7.86621 12"),t.attr(r,"stroke","#F35A23"),t.attr(r,"stroke-width","2"),t.attr(r,"stroke-linecap","round"),t.attr(r,"stroke-linejoin","round"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"width","24"),t.attr(e,"height","24"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none")},m(i,o){t.insert(i,e,o),t.append(e,n),t.append(e,a),t.append(e,r)},d(i){i&&t.detach(e)}}}function h(s){let e,n,a,r;return{c(){e=t.svg_element("svg"),n=t.svg_element("rect"),a=t.svg_element("path"),r=t.svg_element("path"),t.attr(n,"width","24"),t.attr(n,"height","24"),t.attr(n,"rx","12"),t.attr(n,"fill","#4A975C"),t.attr(n,"fill-opacity","0.29"),t.attr(a,"d","M11.6442 7.19999L16.9775 12L11.6442 16.8"),t.attr(a,"stroke","#4A975C"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(r,"d","M7.20041 12L16.3115 12"),t.attr(r,"stroke","#4A975C"),t.attr(r,"stroke-width","2"),t.attr(r,"stroke-linecap","round"),t.attr(r,"stroke-linejoin","round"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"width","24"),t.attr(e,"height","24"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none")},m(i,o){t.insert(i,e,o),t.append(e,n),t.append(e,a),t.append(e,r)},d(i){i&&t.detach(e)}}}function u(s){let e;function n(i,o){if(i[0]==="Deposit")return h;if(i[0]==="Withdraw")return c;if(i[0]==="TaxDeduction")return d}let a=n(s),r=a&&a(s);return{c(){r&&r.c(),e=t.empty()},m(i,o){r&&r.m(i,o),t.insert(i,e,o)},p(i,[o]){a!==(a=n(i))&&(r&&r.d(1),r=a&&a(i),r&&(r.c(),r.m(e.parentNode,e)))},i:t.noop,o:t.noop,d(i){i&&t.detach(e),r&&r.d(i)}}}function f(s,e,n){let{type:a=""}=e;return s.$$set=r=>{"type"in r&&n(0,a=r.type)},[a]}class l extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,f,u,t.safe_not_equal,{type:0})}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),t.flush()}}t.create_custom_element(l,{type:{}},[],[],!0);exports.TxnTypeIcons=l;
|
package/es2015/cashier-page.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierPage-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierPage-Datx6Ztd.cjs")).then(e=>e.CashierPage_ce).then(({default:e})=>{!customElements.get("cashier-page")&&customElements.define("cashier-page",e.element)})}
|
package/es2015/cashier-page.js
CHANGED
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierPage-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierPage-Cyh00U_t.js").then((e) => e.ai).then(({ default: e }) => {
|
|
14
14
|
!customElements.get("cashier-page") && customElements.define("cashier-page", e.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/esnext/cashier-page.js
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierPage-DEYpTaJv.cjs"),Q=require("./CashierHeader-DA_ReO25.cjs");function ie(t,a){e.addMessages(t,a)}function pe(t){e.init({fallbackLocale:"en"}),e.$locale.set(t)}const ne={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"},da:{generalMin:"Min",generalMax:"Maks",error:"Fejl",noFavoritePaymentMethods:"Ingen foretrukne betalingsmetoder tilgængelige",DepositRealTime:"Øjeblikkelig indbetaling",WithdrawRealTime:"Øjeblikkelig udbetaling",DepositVariable:"Variabel",WithdrawVariable:"Variabel",carouselTitle:"Foretrukne metoder",carouselSubtitle:"De mest populære betalingsmetoder"},de:{generalMin:"Min",generalMax:"Max",error:"Fehler",noFavoritePaymentMethods:"Keine bevorzugten Zahlungsmethoden verfügbar",DepositRealTime:"Sofortige Einzahlung",WithdrawRealTime:"Sofortige Auszahlung",DepositVariable:"Variabel",WithdrawVariable:"Variabel",carouselTitle:"Bevorzugte Methoden",carouselSubtitle:"Die beliebtesten Zahlungsmethoden"},nl:{generalMin:"Min",generalMax:"Max",error:"Fout",noFavoritePaymentMethods:"Geen favoriete betaalmethoden beschikbaar",DepositRealTime:"Directe storting",WithdrawRealTime:"Directe opname",DepositVariable:"Variabel",WithdrawVariable:"Variabel",carouselTitle:"Favoriete methoden",carouselSubtitle:"De meest populaire betaalmethoden"}};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 oe(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(s,p){e.insert(s,a,p),e.append(a,l)},p(s,p){p[0]&512&&r!==(r=s[9]("noFavoritePaymentMethods")+"")&&e.set_data(l,r)},d(s){s&&e.detach(a)}}}function ge(t){let a,r=!e.isMobile(t[10])&&t[5].length>1,l,s,p,D=!e.isMobile(t[10])&&t[5].length>1,w,M,y,k,L,h=r&&se(t),f=e.ensure_array_like(t[5]),d=[];for(let n=0;n<f.length;n+=1)d[n]=ce(oe(t,f,n));let u=D&&de(t),m=e.ensure_array_like(Array(t[5].length)),b=[];for(let n=0;n<m.length;n+=1)b[n]=ue(le(t,m,n));return{c(){a=e.element("div"),h&&h.c(),l=e.space(),s=e.element("div");for(let n=0;n<d.length;n+=1)d[n].c();p=e.space(),u&&u.c(),M=e.space(),y=e.element("div");for(let n=0;n<b.length;n+=1)b[n].c();e.attr(s,"class","Carousel"),e.attr(a,"class","CarouselCardsContainer"),e.add_render_callback(()=>t[30].call(a)),e.attr(y,"class","VisualDotIndicator")},m(n,c){e.insert(n,a,c),h&&h.m(a,null),e.append(a,l),e.append(a,s);for(let o=0;o<d.length;o+=1)d[o]&&d[o].m(s,null);t[28](s),e.append(a,p),u&&u.m(a,null),w=e.add_iframe_resize_listener(a,t[30].bind(a)),e.insert(n,M,c),e.insert(n,y,c);for(let o=0;o<b.length;o+=1)b[o]&&b[o].m(y,null);k||(L=[e.listen(s,"touchstart",t[12]),e.listen(s,"touchmove",t[13]),e.listen(s,"touchend",t[14])],k=!0)},p(n,c){if(c[0]&32&&(r=!e.isMobile(n[10])&&n[5].length>1),r?h?h.p(n,c):(h=se(n),h.c(),h.m(a,l)):h&&(h.d(1),h=null),c[0]&3057){f=e.ensure_array_like(n[5]);let o;for(o=0;o<f.length;o+=1){const T=oe(n,f,o);d[o]?d[o].p(T,c):(d[o]=ce(T),d[o].c(),d[o].m(s,null))}for(;o<d.length;o+=1)d[o].d(1);d.length=f.length}if(c[0]&32&&(D=!e.isMobile(n[10])&&n[5].length>1),D?u?u.p(n,c):(u=de(n),u.c(),u.m(a,null)):u&&(u.d(1),u=null),c[0]&96){m=e.ensure_array_like(Array(n[5].length));let o;for(o=0;o<m.length;o+=1){const T=le(n,m,o);b[o]?b[o].p(T,c):(b[o]=ue(T),b[o].c(),b[o].m(y,null))}for(;o<b.length;o+=1)b[o].d(1);b.length=m.length}},d(n){n&&(e.detach(a),e.detach(M),e.detach(y)),h&&h.d(),e.destroy_each(d,n),t[28](null),u&&u.d(),w(),e.destroy_each(b,n),k=!1,e.run_all(L)}}}function se(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(s,p){e.insert(s,a,p),r||(l=e.listen(a,"click",t[25]),r=!0)},p:e.noop,d(s){s&&e.detach(a),r=!1,l()}}}function ce(t){var H,Z,q,U,O,B,i,g;let a,r,l,s,p,D,w,M,y,k=(t[45].Label||t[45].Name)+"",L,h,f,d,u=t[9](`${t[0]}${t[45].ProcessingTime}`)+"",m,b,n,c,o,T=t[9]("generalMin")+"",W,v,S=e.formatCurrency(t[45].DisplayCurrency.MinAmountLimit,t[45].DisplayCurrency.Name,{maximumFractionDigits:t[4][(Z=(H=t[45])==null?void 0:H.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]})+"",N,X,P,V=t[9]("generalMax")+"",R,I,F=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=(i=t[45])==null?void 0:i.DisplayCurrency)==null?void 0:g.Name]||t[8]})+"",x,j,z,E,A;function Y(){return t[26](t[45],t[44])}return{c(){a=e.element("div"),r=e.element("div"),l=e.element("img"),D=e.space(),w=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"),m=e.text(u),b=e.space(),n=e.element("div"),c=e.element("span"),o=e.element("span"),W=e.text(T),v=e.space(),N=e.text(S),X=e.space(),P=e.element("span"),R=e.text(V),I=e.space(),x=e.text(F),j=e.space(),e.src_url_equal(l.src,s=t[45].LogoUrl)||e.attr(l,"src",s),e.attr(l,"alt",p=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(n,"class","MethodLimits"),e.attr(w,"class","MethodInfo"),e.attr(a,"class",z=`CarouselCardWrapper ${t[44]===t[6]?"active":""}`)},m(_,C){e.insert(_,a,C),e.append(a,r),e.append(r,l),e.append(a,D),e.append(a,w),e.append(w,M),e.append(M,y),e.append(y,L),e.append(w,h),e.append(w,f),e.append(f,d),e.append(d,m),e.append(w,b),e.append(w,n),e.append(n,c),e.append(c,o),e.append(o,W),e.append(o,v),e.append(o,N),e.append(c,X),e.append(c,P),e.append(P,R),e.append(P,I),e.append(P,x),e.append(a,j),t[27](a),E||(A=e.listen(a,"click",Y),E=!0)},p(_,C){var G,K,J,$,ee,te,ae,re;t=_,C[0]&32&&!e.src_url_equal(l.src,s=t[45].LogoUrl)&&e.attr(l,"src",s),C[0]&32&&p!==(p=t[45].Label)&&e.attr(l,"alt",p),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(m,u),C[0]&512&&T!==(T=t[9]("generalMin")+"")&&e.set_data(W,T),C[0]&304&&S!==(S=e.formatCurrency(t[45].DisplayCurrency.MinAmountLimit,t[45].DisplayCurrency.Name,{maximumFractionDigits:t[4][(K=(G=t[45])==null?void 0:G.DisplayCurrency)==null?void 0:K.Name]||t[8],minimumFractionDigits:t[4][($=(J=t[45])==null?void 0:J.DisplayCurrency)==null?void 0:$.Name]||t[8]})+"")&&e.set_data(N,S),C[0]&512&&V!==(V=t[9]("generalMax")+"")&&e.set_data(R,V),C[0]&304&&F!==(F=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(x,F),C[0]&64&&z!==(z=`CarouselCardWrapper ${t[44]===t[6]?"active":""}`)&&e.attr(a,"class",z)},d(_){_&&e.detach(a),t[27](null),E=!1,A()}}}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(s,p){e.insert(s,a,p),r||(l=e.listen(a,"click",t[29]),r=!0)},p:e.noop,d(s){s&&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,s){e.insert(l,a,s)},p(l,s){s[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,s,p=t[9]("carouselTitle")+"",D,w,M,y=t[9]("carouselSubtitle")+"",k,L;function h(u,m){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"),s=e.element("h4"),D=e.text(p),w=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,m){e.insert(u,a,m),e.append(a,r),e.append(r,l),e.append(l,s),e.append(s,D),e.append(l,w),e.append(l,M),e.append(M,k),e.append(r,L),d.m(r,null),t[31](a)},p(u,m){m[0]&512&&p!==(p=u[9]("carouselTitle")+"")&&e.set_data(D,p),m[0]&512&&y!==(y=u[9]("carouselSubtitle")+"")&&e.set_data(k,y),f===(f=h(u))&&d?d.p(u,m):(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,s;e.component_subscribe(t,e.$format,i=>r(9,s=i));let{lang:p="en"}=a,{local:D="en-US"}=a,{currencysymbol:w="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={},m,b,n=[],c=0,o=!0,T=0,W=!1,v,S,N,X=window.navigator.userAgent;const P=i=>{var _,C;const{data:{type:g}={}}=i||{};switch(g){case"PromotedPaymentMethods":{r(5,n=(_=i==null?void 0:i.data)==null?void 0:_.promotedPaymentMethods),r(6,c=Math.floor((n.length-1)/2));break}case"PrecisionCurrenciesMap":{r(4,u=((C=i==null?void 0:i.data)==null?void 0:C.payload)||{});break}}};Object.keys(ne).forEach(i=>{ie(i,ne[i])});const V=()=>{let i=d;if(i)return fetch(i).then(g=>g.json()).then(g=>{Object.keys(g).forEach(_=>{ie(_,g[_])})}).catch(g=>{console.log(g)})},R=()=>{pe(p)},I=(i,g)=>{r(6,c=g),r(2,v.style.transform=F(),v),i.Name,window.postMessage({type:"SelectPayMeth",details:i},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:i,bubbles:!0,cancelable:!0,composed:!0}))},F=()=>{const i=parseFloat(getComputedStyle(N).getPropertyValue("--emw-cashier-card-width"))||78,g=parseFloat(getComputedStyle(v).getPropertyValue("--emw-cashier-card-gap"))||10,_=parseFloat(getComputedStyle(N).getPropertyValue("--emw-cashier-card-width-active"))||100,C=i+g,G=S/2,K=c*C+_/2;return`translateX(${G-K}px)`},x=i=>{T=i.touches[0].clientX,W=!0,v.classList.add("dragging")},j=i=>{if(!W)return;const g=i.touches[0].clientX;Math.abs(g-T)>10&&i.preventDefault()},z=i=>{if(!W)return;W=!1,v.classList.remove("dragging");const g=i.changedTouches[0].clientX,_=T-g;Math.abs(_)>50&&(_>0&&c<n.length-1?r(6,c++,c):_<0&&c>0&&r(6,c--,c),r(2,v.style.transform=F(),v))},E=()=>{o&&(r(2,v.style.transform=F(),v),o=!1)},A=i=>{i==="next"&&c<n.length-1?r(6,c++,c):i==="prev"&&c>0&&r(6,c--,c),r(2,v.style.transform=F(),v)};e.onMount(()=>(e.initCurrencyFormatter(D,w,M,y),window.addEventListener("message",P),window.postMessage({type:"CashierCarouselReady"},window.location.href),v&&F(),()=>{window.removeEventListener("message",P)}));const Y=()=>A("prev"),H=(i,g)=>I(i,g);function Z(i){e.binding_callbacks[i?"unshift":"push"](()=>{N=i,r(7,N)})}function q(i){e.binding_callbacks[i?"unshift":"push"](()=>{v=i,r(2,v)})}const U=()=>A("next");function O(){S=this.clientWidth,r(3,S)}function B(i){e.binding_callbacks[i?"unshift":"push"](()=>{m=i,r(1,m)})}return t.$$set=i=>{"lang"in i&&r(16,p=i.lang),"local"in i&&r(17,D=i.local),"currencysymbol"in i&&r(18,w=i.currencysymbol),"currencyposition"in i&&r(19,M=i.currencyposition),"currencydecimals"in i&&r(20,y=i.currencydecimals),"methodtype"in i&&r(0,k=i.methodtype),"clientstyling"in i&&r(21,L=i.clientstyling),"clientstylingurl"in i&&r(22,h=i.clientstylingurl),"mbsource"in i&&r(23,f=i.mbsource),"translationurl"in i&&r(24,d=i.translationurl)},t.$$.update=()=>{t.$$.dirty[0]&65536&&p&&R(),t.$$.dirty[0]&16842752&&p&&d&&V(),t.$$.dirty[0]&12&&v&&S&&E(),t.$$.dirty[0]&2097154&&L&&m&&Q.setClientStyling(m,L),t.$$.dirty[0]&4194306&&h&&m&&Q.setClientStylingURL(m,h),t.$$.dirty[0]&8388610&&f&&m&&Q.setStreamStyling(m,`${f}.Style`,b),t.$$.dirty[0]&1048576&&r(8,l=Number(y))},[k,m,v,S,u,n,c,N,l,s,X,I,x,j,z,A,p,D,w,M,y,L,h,f,d,Y,H,Z,q,U,O,B]}class me 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(me,{lang:{},local:{},currencysymbol:{},currencyposition:{},currencydecimals:{},methodtype:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=me;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./CashierPage-DEYpTaJv.cjs");function k(s,t){n.addMessages(s,t)}function I(s){n.init({fallbackLocale:"en"}),n.$locale.set(s)}const L={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}},fr:{header:{general:"Caisse",deposit:"Dépôt",withdraw:"Retrait"}},da:{header:{general:"Kasse",deposit:"Indbetaling",withdraw:"Udbetaling"}},de:{header:{general:"Kasse",deposit:"Einzahlung",withdraw:"Auszahlung"}},nl:{header:{general:"Kassa",deposit:"Storting",withdraw:"Opname"}}},m="__WIDGET_GLOBAL_STYLE_CACHE__";function A(s,t){if(s){const e=document.createElement("style");e.innerHTML=t,s.appendChild(e)}}function R(s,t){if(!s||!t)return;const e=new URL(t);fetch(e.href).then(l=>l.text()).then(l=>{const i=document.createElement("style");i.innerHTML=l,s&&s.appendChild(i)}).catch(l=>{console.error("There was an error while trying to load client styling from URL",l)})}function E(s,t,e,l=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!l)return e=P(s,t),e;window[m]||(window[m]={}),e=q(s,t);const a=e.unsubscribe.bind(e),d=()=>{if(window[m][t]){const c=window[m][t];c.refCount>1?c.refCount=c.refCount-1:delete window[m][t]}a()};return e.unsubscribe=d,e}function P(s,t){const e=document.createElement("style");return window.emMessageBus.subscribe(t,l=>{s&&(e.innerHTML=l,s.appendChild(e))})}function q(s,t){return window.emMessageBus.subscribe(t,e=>{if(!s)return;const l=s.getRootNode(),i=window[m];let a=i[t]&&i[t].sheet;a?i[t].refCount=i[t].refCount+1:(a=new CSSStyleSheet,a.replaceSync(e),i[t]={sheet:a,refCount:1});const d=l.adoptedStyleSheets||[];d.includes(a)||(l.adoptedStyleSheets=[...d,a])})}function G(s){n.append_styles(s,"svelte-1p7ag40",".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;fill:var(--emw--color-primary, #F9C405)}")}const W=s=>({}),B=s=>({}),Y=s=>({}),v=s=>({}),Z=s=>({}),H=s=>({});function T(s){let t,e,l;return{c(){t=n.element("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z"></path></svg>',n.attr(t,"class","CashierHeaderLeftButton")},m(i,a){n.insert(i,t,a),e||(l=n.listen(t,"click",s[6]),e=!0)},p:n.noop,d(i){i&&n.detach(t),e=!1,l()}}}function J(s){let t,e=s[1]&&T(s);return{c(){e&&e.c(),t=n.empty()},m(l,i){e&&e.m(l,i),n.insert(l,t,i)},p(l,i){l[1]?e?e.p(l,i):(e=T(l),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(l){l&&n.detach(t),e&&e.d(l)}}}function Q(s){let t,e=s[4](s[2])+"",l;return{c(){t=n.element("span"),l=n.text(e),n.attr(t,"class","CashierHeaderTitle")},m(i,a){n.insert(i,t,a),n.append(t,l)},p(i,a){a&20&&e!==(e=i[4](i[2])+"")&&n.set_data(l,e)},d(i){i&&n.detach(t)}}}function M(s){let t,e,l;return{c(){t=n.element("span"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><path 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"></path></svg>',n.attr(t,"class","CashierHeaderRightButton")},m(i,a){n.insert(i,t,a),e||(l=n.listen(t,"click",s[5]),e=!0)},p:n.noop,d(i){i&&n.detach(t),e=!1,l()}}}function V(s){let t,e=s[3]&&M(s);return{c(){e&&e.c(),t=n.empty()},m(l,i){e&&e.m(l,i),n.insert(l,t,i)},p(l,i){l[3]?e?e.p(l,i):(e=M(l),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(l){l&&n.detach(t),e&&e.d(l)}}}function X(s){let t,e,l,i;const a=s[16].leftButton,d=n.create_slot(a,s,s[15],H),c=d||J(s),b=s[16].title,g=n.create_slot(b,s,s[15],v),u=g||Q(s),_=s[16].rightButton,w=n.create_slot(_,s,s[15],B),f=w||V(s);return{c(){t=n.element("div"),c&&c.c(),e=n.space(),u&&u.c(),l=n.space(),f&&f.c(),n.attr(t,"class","CashierHeader")},m(o,h){n.insert(o,t,h),c&&c.m(t,null),n.append(t,e),u&&u.m(t,null),n.append(t,l),f&&f.m(t,null),s[17](t),i=!0},p(o,[h]){d?d.p&&(!i||h&32768)&&n.update_slot_base(d,a,o,o[15],i?n.get_slot_changes(a,o[15],h,Z):n.get_all_dirty_from_scope(o[15]),H):c&&c.p&&(!i||h&2)&&c.p(o,i?h:-1),g?g.p&&(!i||h&32768)&&n.update_slot_base(g,b,o,o[15],i?n.get_slot_changes(b,o[15],h,Y):n.get_all_dirty_from_scope(o[15]),v):u&&u.p&&(!i||h&20)&&u.p(o,i?h:-1),w?w.p&&(!i||h&32768)&&n.update_slot_base(w,_,o,o[15],i?n.get_slot_changes(_,o[15],h,W):n.get_all_dirty_from_scope(o[15]),B):f&&f.p&&(!i||h&8)&&f.p(o,i?h:-1)},i(o){i||(n.transition_in(c,o),n.transition_in(u,o),n.transition_in(f,o),i=!0)},o(o){n.transition_out(c,o),n.transition_out(u,o),n.transition_out(f,o),i=!1},d(o){o&&n.detach(t),c&&c.d(o),u&&u.d(o),f&&f.d(o),s[17](null)}}}function $(s,t,e){let l;n.component_subscribe(s,n.$format,r=>e(4,l=r));let{$$slots:i={},$$scope:a}=t,{clientstyling:d=""}=t,{clientstylingurl:c=""}=t,{translationurl:b=""}=t,{showbackbutton:g=""}=t,{title:u="header.general"}=t,{lang:_="en"}=t,{showclosebutton:w=""}=t,{mbsource:f=""}=t,o,h,p=!1,C,y=!1;const O=()=>{fetch(b).then(r=>r.json()).then(r=>{Object.keys(r).forEach(S=>{k(S,r[S])})}).catch(r=>{console.log(r)})};Object.keys(L).forEach(r=>{k(r,L[r])});const j=()=>{I(_)},z=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},U=()=>{window.postMessage({type:"BackCashier"},window.location.href)},N=()=>{e(1,p=!!g&&g!=="false")},D=()=>{e(3,y=!!w&&w!=="false")},K=()=>{e(2,C=u||"header.general")};n.onMount(()=>()=>{});function x(r){n.binding_callbacks[r?"unshift":"push"](()=>{o=r,e(0,o)})}return s.$$set=r=>{"clientstyling"in r&&e(7,d=r.clientstyling),"clientstylingurl"in r&&e(8,c=r.clientstylingurl),"translationurl"in r&&e(9,b=r.translationurl),"showbackbutton"in r&&e(10,g=r.showbackbutton),"title"in r&&e(11,u=r.title),"lang"in r&&e(12,_=r.lang),"showclosebutton"in r&&e(13,w=r.showclosebutton),"mbsource"in r&&e(14,f=r.mbsource),"$$scope"in r&&e(15,a=r.$$scope)},s.$$.update=()=>{s.$$.dirty&4096&&_&&j(),s.$$.dirty&6144&&_&&u&&K(),s.$$.dirty&129&&d&&o&&A(o,d),s.$$.dirty&257&&c&&o&&R(o,c),s.$$.dirty&16385&&f&&o&&E(o,`${f}.Style`,h),s.$$.dirty&4608&&_&&b&&O(),s.$$.dirty&1024&&g&&N(),s.$$.dirty&8192&&w&&D()},[o,p,C,y,l,z,U,d,c,b,g,u,_,w,f,a,i,x]}class F extends n.SvelteComponent{constructor(t){super(),n.init$1(this,t,$,X,n.safe_not_equal,{clientstyling:7,clientstylingurl:8,translationurl:9,showbackbutton:10,title:11,lang:12,showclosebutton:13,mbsource:14},G)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}get showbackbutton(){return this.$$.ctx[10]}set showbackbutton(t){this.$$set({showbackbutton:t}),n.flush()}get title(){return this.$$.ctx[11]}set title(t){this.$$set({title:t}),n.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),n.flush()}get showclosebutton(){return this.$$.ctx[13]}set showclosebutton(t){this.$$set({showclosebutton:t}),n.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),n.flush()}}n.create_custom_element(F,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{},showclosebutton:{},mbsource:{}},["leftButton","title","rightButton"],[],!0);const tt=Object.freeze(Object.defineProperty({__proto__:null,default:F},Symbol.toStringTag,{value:"Module"}));exports.CashierHeader_ce=tt;exports.setClientStyling=A;exports.setClientStylingURL=R;exports.setStreamStyling=E;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierPage-DEYpTaJv.cjs"),w=require("./CashierHeader-DA_ReO25.cjs");function y(i,t){e.addMessages(i,t)}function q(i){e.init({fallbackLocale:"en"}),e.$locale.set(i)}const v={en:{redirectHeader:"Deposit redirect"},tr:{redirectHeader:"Para yatırma yönlendirmesi"},fr:{redirectHeader:"Redirection du dépôt"},da:{redirectHeader:"Indbetaling omdirigering"},de:{redirectHeader:"Einzahlungsweiterleitung"},nl:{redirectHeader:"Stortingsomleiding"}};if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierSpinner-CKdmXXKt.cjs")).then(({default:t})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",t.element)})}function I(i){e.append_styles(i,"svelte-14e65vo",".CashierRedirectIframe{height:100%;width:100%;position:fixed;top:0;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column}iframe{border-radius:0 0 6px 6px;border:1px solid var(--emw--color-grey-105, #E8E9EB);height:calc(100% - var(--emw--header-height, 40px));width:100%;box-sizing:border-box;width:100%;height:100%;background-color:var(--emw--color-background, #F9FAFF)}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;fill:var(--emw--color-primary, #F9C405)}")}function L(i){let t,n,r;return{c(){t=e.element("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z"></path></svg>',e.attr(t,"slot","leftButton"),e.attr(t,"class","CashierHeaderLeftButton")},m(f,m){e.insert(f,t,m),n||(r=e.listen(t,"click",i[10]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,r()}}}function k(i){let t,n,r;return{c(){t=e.element("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><path 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"></path></svg>',e.attr(t,"slot","rightButton"),e.attr(t,"class","CashierHeaderRightButton")},m(f,m){e.insert(f,t,m),n||(r=e.listen(t,"click",i[10]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,r()}}}function S(i){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",i[6]),e.set_custom_element_data(t,"clientstyling",i[5]),e.set_custom_element_data(t,"mbsource",i[4])},m(n,r){e.insert(n,t,r)},p(n,r){r&64&&e.set_custom_element_data(t,"clientstylingurl",n[6]),r&32&&e.set_custom_element_data(t,"clientstyling",n[5]),r&16&&e.set_custom_element_data(t,"mbsource",n[4])},d(n){n&&e.detach(t)}}}function T(i){let t,n,r,f,m,d,h,g,_,o=!!i[3]&&i[3]!=="false"&&L(i),a=(!i[3]||i[3]==="false")&&k(i),c=i[9]&&S(i);return{c(){t=e.element("div"),n=e.element("cashier-header"),o&&o.c(),r=e.space(),a&&a.c(),f=e.space(),c&&c.c(),m=e.space(),d=e.element("iframe"),e.set_custom_element_data(n,"lang",i[0]),e.set_custom_element_data(n,"translationurl",i[2]),e.set_custom_element_data(n,"title",i[7]),e.set_custom_element_data(n,"showbackbutton",i[3]),e.set_custom_element_data(n,"clientstylingurl",i[6]),e.set_custom_element_data(n,"clientstyling",i[5]),e.set_custom_element_data(n,"mbsource",i[4]),e.src_url_equal(d.src,h=i[1])||e.attr(d,"src",h),e.attr(d,"frameborder","0"),e.attr(t,"class","CashierRedirectIframe")},m(s,u){e.insert(s,t,u),e.append(t,n),o&&o.m(n,null),e.append(n,r),a&&a.m(n,null),e.append(t,f),c&&c.m(t,null),e.append(t,m),e.append(t,d),i[13](t),g||(_=e.listen(d,"load",i[12]),g=!0)},p(s,[u]){s[3]&&s[3]!=="false"?o?o.p(s,u):(o=L(s),o.c(),o.m(n,r)):o&&(o.d(1),o=null),!s[3]||s[3]==="false"?a?a.p(s,u):(a=k(s),a.c(),a.m(n,null)):a&&(a.d(1),a=null),u&1&&e.set_custom_element_data(n,"lang",s[0]),u&4&&e.set_custom_element_data(n,"translationurl",s[2]),u&128&&e.set_custom_element_data(n,"title",s[7]),u&8&&e.set_custom_element_data(n,"showbackbutton",s[3]),u&64&&e.set_custom_element_data(n,"clientstylingurl",s[6]),u&32&&e.set_custom_element_data(n,"clientstyling",s[5]),u&16&&e.set_custom_element_data(n,"mbsource",s[4]),s[9]?c?c.p(s,u):(c=S(s),c.c(),c.m(t,m)):c&&(c.d(1),c=null),u&2&&!e.src_url_equal(d.src,h=s[1])&&e.attr(d,"src",h)},i:e.noop,o:e.noop,d(s){s&&e.detach(t),o&&o.d(),a&&a.d(),c&&c.d(),i[13](null),g=!1,_()}}}function O(i,t,n){let{lang:r="en"}=t,{iframeurl:f}=t,{translationurl:m=""}=t,{showbackbutton:d=""}=t,{mbsource:h}=t,{clientstyling:g}=t,{clientstylingurl:_}=t,{title:o=""}=t,a,c,s=!0;const u=()=>{let l=m;if(l)return fetch(l).then(b=>b.json()).then(b=>{Object.keys(b).forEach(p=>{y(p,b[p])})}).catch(b=>{console.log(b)})};Object.keys(v).forEach(l=>{y(l,v[l])});const E=()=>{q(r)},M=()=>{window.postMessage({type:"CloseIframe"},window.location.href)},C=l=>{l.target.src&&n(9,s=!1)},B=()=>window.postMessage({type:"DisableScroll"},window.location.href),R=()=>window.postMessage({type:"EnableScroll"},window.location.href);e.onMount(()=>(B(),()=>{R()}));const F=l=>C(l);function j(l){e.binding_callbacks[l?"unshift":"push"](()=>{a=l,n(8,a)})}return i.$$set=l=>{"lang"in l&&n(0,r=l.lang),"iframeurl"in l&&n(1,f=l.iframeurl),"translationurl"in l&&n(2,m=l.translationurl),"showbackbutton"in l&&n(3,d=l.showbackbutton),"mbsource"in l&&n(4,h=l.mbsource),"clientstyling"in l&&n(5,g=l.clientstyling),"clientstylingurl"in l&&n(6,_=l.clientstylingurl),"title"in l&&n(7,o=l.title)},i.$$.update=()=>{i.$$.dirty&1&&r&&E(),i.$$.dirty&4&&m&&u(),i.$$.dirty&288&&g&&a&&w.setClientStyling(a,g),i.$$.dirty&320&&_&&a&&w.setClientStylingURL(a,_),i.$$.dirty&272&&h&&a&&w.setStreamStyling(a,`${h}.Style`,c)},[r,f,m,d,h,g,_,o,a,s,M,C,F,j]}class H extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,O,T,e.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,mbsource:4,clientstyling:5,clientstylingurl:6,title:7},I)}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get iframeurl(){return this.$$.ctx[1]}set iframeurl(t){this.$$set({iframeurl:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showbackbutton(){return this.$$.ctx[3]}set showbackbutton(t){this.$$set({showbackbutton:t}),e.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get title(){return this.$$.ctx[7]}set title(t){this.$$set({title:t}),e.flush()}}e.create_custom_element(H,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},mbsource:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=H;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var Fe=Object.defineProperty,Oe=Object.defineProperties;var Ie=Object.getOwnPropertyDescriptors;var we=Object.getOwnPropertySymbols;var Re=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var Me=(n,t,s)=>t in n?Fe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[t]=s,pe=(n,t)=>{for(var s in t||(t={}))Re.call(t,s)&&Me(n,s,t[s]);if(we)for(var s of we(t))je.call(t,s)&&Me(n,s,t[s]);return n},fe=(n,t)=>Oe(n,Ie(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierPage-DEYpTaJv.cjs"),he=require("./CashierHeader-DA_ReO25.cjs");function _e(n,t){e.addMessages(n,t)}function He(n){e.init({fallbackLocale:"en"}),e.$locale.set(n)}const be={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS",error:"Error",noPaymentMethods:"No payment methods available",favorite:"Favorite",promoLabel:"Recommended",otherMethodsTitle:"All Methods",otherMethodsDescription:"Discover our incredible selection of unique products that you won't want to miss!"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER",error:"Hata",noPaymentMethods:"Hiçbir ödeme yöntemi mevcut değil",favorite:"Favori",promoLabel:"Favori",otherMethodsTitle:"Tüm Yöntemler",otherMethodsDescription:"Kaçırmak istemeyeceğiniz benzersiz ürünlerimizden oluşan inanılmaz seçkimizi keşfedin!"},fr:{generalMin:"Min",generalMax:"Max",showAll:"AFFICHER TOUT",showLess:"AFFICHER MOINS",error:"Erreur",noPaymentMethods:"Aucun moyen de paiement disponible",favorite:"Favori",promoLabel:"Recommandé",otherMethodsTitle:"Toutes les méthodes",otherMethodsDescription:"Découvrez notre incroyable sélection de produits uniques à ne pas manquer !"},da:{generalMin:"Min",generalMax:"Maks",showAll:"VIS ALLE",showLess:"VIS FÆRRE",error:"Fejl",noPaymentMethods:"Ingen betalingsmetoder tilgængelige",favorite:"Favorit",promoLabel:"Anbefalet",otherMethodsTitle:"Alle metoder",otherMethodsDescription:"Oplev vores utrolige udvalg af unikke produkter, som du ikke vil gå glip af!"},de:{generalMin:"Min",generalMax:"Max",showAll:"ALLE ANZEIGEN",showLess:"WENIGER ANZEIGEN",error:"Fehler",noPaymentMethods:"Keine Zahlungsmethoden verfügbar",favorite:"Favorit",promoLabel:"Empfohlen",otherMethodsTitle:"Alle Methoden",otherMethodsDescription:"Entdecken Sie unsere unglaubliche Auswahl an einzigartigen Produkten, die Sie nicht verpassen möchten!"},nl:{generalMin:"Min",generalMax:"Max",showAll:"ALLES TONEN",showLess:"MINDER TONEN",error:"Fout",noPaymentMethods:"Geen betaalmethoden beschikbaar",favorite:"Favoriet",promoLabel:"Aanbevolen",otherMethodsTitle:"Alle methoden",otherMethodsDescription:"Ontdek onze ongelooflijke selectie van unieke producten die u niet wilt missen!"}};function Ue(n){e.append_styles(n,"svelte-njj9wo",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;max-width:100%;gap:5px;margin:10px}.SelectorWrapper{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;cursor:pointer;position:relative;box-sizing:border-box;padding:5px 0;border-radius:10px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);overflow:hidden;z-index:1;transition:transform 0.3s ease-in-out}.SelectorWrapper:hover{box-shadow:inset 0px 0px 7px var(--emw--color-primary);transform:scale(1.02)}.SelectorWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-white, #f5f5f5) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.2}.CashierMethodListWidget{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));height:100%;padding-bottom:20px}.MethodsListDescription{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));padding:10px}.MethodsListDescription h3{font-size:12px;text-transform:uppercase;margin:10px 0}.MethodsListDescription p{color:white;opacity:0.55;font-size:12px}.MethodLogo{margin:5px}.MethodLogo img{width:100%;height:100%;max-height:22px}.MethodPromoLabel{background:var(--emw--color-button-background, #f1f3ff);color:var(--emw--color-primary, #f9c405);font-size:14px;font-weight:700;text-transform:uppercase;padding:5px 10px;min-width:100px;border-radius:10px;margin:10px;text-align:center}.MethodInfo{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.MethodTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));margin:5px;word-break:break-word;font-weight:var(--emw--font-weight-bold, 700);line-height:10px}.MethodLimits{word-break:break-word;margin:5px}.Limits{max-width:100%;font-weight:var(--emw--font-weight-normal, 300);font-style:normal;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.7}.MethodFavorite{font-size:var(--emw--font-size-x-small, 8px);color:var(--emw--color-typography, #fff);background-color:var(--emw--color-red, red);border-radius:15px;margin:0 5px;line-height:10px;height:16px}.MethodFavorite p{padding:3px}.PaymentProcessing{padding:5px;color:var(--emw--color-primary, #ffce00);font-style:italic;font-size:var(--emw--font-size-small, 12px)}@media(min-width: 499px){.MethodLogo{margin:5px}.MethodLogo img{width:100%;height:100%;max-height:36px}.SelectorWrapper{padding:10px}.MethodTitle{font-size:var(--emw--font-size-medium, 12px)}.Limits{font-size:var(--emw--font-size-small, 10px)}}@media(max-width: 500px){.PaymentProcessing{font-size:var(--emw--font-size-x-small, 8px)}.MethodTitle{font-size:var(--emw--font-size-small, 10px)}.Limits{font-size:var(--emw--font-size-x-small, 8px)}}.EmptyContentMessageWrapper{position:relative;display:flex;justify-content:flex-end}.EmptyContentMessageContent{display:flex;flex-direction:column;row-gap:var(--emw--spacing-small, 12px);bottom:10%}.EmptyContentMessageImg{width:250px}.EmptyContentMessageImg img{border-radius:0 0 var(--emw--border-radius-medium-plus, 6px) 0;height:100%;width:100%}.EmptyContentMessageTitle{font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-bold, 800);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--emw--color-primary);text-transform:uppercase}.EmptyContentMessageText{word-break:break-word;font-size:var(--emw--font-size-small, 14px);line-height:calc(var(--emw--font-size-medium, 16px) + 4px);color:var(--emw--color-typography, #fff)}.EmptyContentMessageDesktop{justify-content:flex-start}.EmptyContentMessageDesktop .EmptyContentMessageContent{bottom:auto;margin-top:10px}.EmptyContentMessageDesktop .EmptyContentMessageImg{width:auto}.EmptyContentMessageDesktop .EmptyContentMessageImg img{transform:scaleX(-1)}.IconWarning{width:30px;display:flex}.IconWarning svg{height:18px;fill:var(--emw--color-warning, rgb(250, 146, 0))}.ShowAllButton{cursor:pointer;color:var(--emw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #f7f8fa);line-height:normal;border:1px solid var(--emw--color-grey-105, #e8e9eb);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}.ErrorMessage{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}')}function ve(n,t,s){const r=n.slice();return r[58]=t[s],r[60]=s,r}function Le(n){let t,s,r,o,l=!n[15]&&ke(n);function a(c,p){return c[15]&&c[14]?qe:We}let d=a(n),u=d(n),m=n[10]&&Se(n);return{c(){t=e.element("div"),l&&l.c(),s=e.space(),r=e.element("div"),u.c(),o=e.space(),m&&m.c(),e.attr(r,"class","CashierMethodList"),e.attr(t,"class","CashierMethodListWidget")},m(c,p){e.insert(c,t,p),l&&l.m(t,null),e.append(t,s),e.append(t,r),u.m(r,null),e.append(t,o),m&&m.m(t,null),n[34](t)},p(c,p){c[15]?l&&(l.d(1),l=null):l?l.p(c,p):(l=ke(c),l.c(),l.m(t,s)),d===(d=a(c))&&u?u.p(c,p):(u.d(1),u=d(c),u&&(u.c(),u.m(r,null))),c[10]?m?m.p(c,p):(m=Se(c),m.c(),m.m(t,null)):m&&(m.d(1),m=null)},d(c){c&&e.detach(t),l&&l.d(),u.d(),m&&m.d(),n[34](null)}}}function ke(n){let t,s,r=n[17]("otherMethodsTitle")+"",o,l,a,d=n[17]("otherMethodsDescription")+"",u;return{c(){t=e.element("div"),s=e.element("h3"),o=e.text(r),l=e.space(),a=e.element("p"),u=e.text(d),e.attr(t,"class","MethodsListDescription")},m(m,c){e.insert(m,t,c),e.append(t,s),e.append(s,o),e.append(t,l),e.append(t,a),e.append(a,u)},p(m,c){c[0]&131072&&r!==(r=m[17]("otherMethodsTitle")+"")&&e.set_data(o,r),c[0]&131072&&d!==(d=m[17]("otherMethodsDescription")+"")&&e.set_data(u,d)},d(m){m&&e.detach(t)}}}function We(n){let t,s=e.ensure_array_like(n[11]),r=[];for(let o=0;o<s.length;o+=1)r[o]=Te(ve(n,s,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();t=e.empty()},m(o,l){for(let a=0;a<r.length;a+=1)r[a]&&r[a].m(o,l);e.insert(o,t,l)},p(o,l){if(l[0]&469824){s=e.ensure_array_like(o[11]);let a;for(a=0;a<s.length;a+=1){const d=ve(o,s,a);r[a]?r[a].p(d,l):(r[a]=Te(d),r[a].c(),r[a].m(t.parentNode,t))}for(;a<r.length;a+=1)r[a].d(1);r.length=s.length}},d(o){o&&e.detach(t),e.destroy_each(r,o)}}}function qe(n){let t,s,r,o=n[17]("error")+"",l,a,d,u=n[17]("noPaymentMethods")+"",m;return{c(){t=e.element("div"),s=e.element("div"),r=e.element("p"),l=e.text(o),a=e.space(),d=e.element("p"),m=e.text(u),e.attr(r,"class","EmptyContentMessageTitle"),e.attr(d,"class","EmptyContentMessageText"),e.attr(s,"class","EmptyContentMessageContent"),e.attr(t,"class","EmptyContentMessageWrapper"),e.toggle_class(t,"EmptyContentMessageDesktop",n[13])},m(c,p){e.insert(c,t,p),e.append(t,s),e.append(s,r),e.append(r,l),e.append(s,a),e.append(s,d),e.append(d,m)},p(c,p){p[0]&131072&&o!==(o=c[17]("error")+"")&&e.set_data(l,o),p[0]&131072&&u!==(u=c[17]("noPaymentMethods")+"")&&e.set_data(m,u),p[0]&8192&&e.toggle_class(t,"EmptyContentMessageDesktop",c[13])},d(c){c&&e.detach(t)}}}function Ce(n){let t,s=n[17]("favorite")+"",r;return{c(){t=e.element("p"),r=e.text(s)},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&131072&&s!==(s=o[17]("favorite")+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function Pe(n){let t,s=n[17](`${n[6]}${n[58].ProcessingTime}`)+"",r;return{c(){t=e.element("span"),r=e.text(s),e.attr(t,"class","PaymentProcessing")},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&133184&&s!==(s=o[17](`${o[6]}${o[58].ProcessingTime}`)+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function Ee(n){let t,s=n[17](`${n[6]}${n[58].ProcessingTime}`)+"",r;return{c(){t=e.element("span"),r=e.text(s),e.attr(t,"class","PaymentProcessing")},m(o,l){e.insert(o,t,l),e.append(t,r)},p(o,l){l[0]&133184&&s!==(s=o[17](`${o[6]}${o[58].ProcessingTime}`)+"")&&e.set_data(r,s)},d(o){o&&e.detach(t)}}}function Te(n){var Z,J,X,se,oe,re,ie,le;let t,s,r,o,l,a,d,u,m,c,p,j=(n[58].Label||n[58].Name)+"",H,E,z,D,P,T,N=n[17]("generalMin")+"",U,B,F=e.formatCurrency(n[58].DisplayCurrency.MinAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(J=(Z=n[58])==null?void 0:Z.DisplayCurrency)==null?void 0:J.Name]||n[16],minimumFractionDigits:n[8][(se=(X=n[58])==null?void 0:X.DisplayCurrency)==null?void 0:se.Name]||n[16]})+"",Y,O,A,W=n[17]("generalMax")+"",L,te,V=e.formatCurrency(n[58].DisplayCurrency.MaxAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(re=(oe=n[58])==null?void 0:oe.DisplayCurrency)==null?void 0:re.Name]||n[16],minimumFractionDigits:n[8][(le=(ie=n[58])==null?void 0:ie.DisplayCurrency)==null?void 0:le.Name]||n[16]})+"",k,I,R,b,q,y=n[58].isMethodPromoted&&Ce(n),w=!n[13]&&Pe(n),g=n[13]&&Ee(n);function ne(){return n[32](n[58])}return{c(){t=e.element("div"),s=e.element("div"),r=e.element("img"),a=e.space(),d=e.element("div"),y&&y.c(),u=e.space(),m=e.element("div"),c=e.element("div"),p=e.element("span"),H=e.text(j),E=e.space(),w&&w.c(),z=e.space(),D=e.element("div"),P=e.element("span"),T=e.element("p"),U=e.text(N),B=e.space(),Y=e.text(F),O=e.space(),A=e.element("p"),L=e.text(W),te=e.space(),k=e.text(V),I=e.space(),g&&g.c(),R=e.space(),e.src_url_equal(r.src,o=n[58].LogoUrl)||e.attr(r,"src",o),e.attr(r,"alt",l=n[58].Label),e.attr(s,"class","MethodLogo"),e.attr(d,"class","MethodFavorite"),e.attr(c,"class","MethodTitle"),e.attr(P,"class","Limits"),e.attr(D,"class","MethodLimits"),e.attr(m,"class","MethodInfo"),e.attr(t,"class","SelectorWrapper"),e.toggle_class(t,"checked",n[9]===n[58].Name)},m(G,M){e.insert(G,t,M),e.append(t,s),e.append(s,r),e.append(t,a),e.append(t,d),y&&y.m(d,null),e.append(t,u),e.append(t,m),e.append(m,c),e.append(c,p),e.append(p,H),e.append(m,E),w&&w.m(m,null),e.append(m,z),e.append(m,D),e.append(D,P),e.append(P,T),e.append(T,U),e.append(T,B),e.append(T,Y),e.append(P,O),e.append(P,A),e.append(A,L),e.append(A,te),e.append(A,k),e.append(m,I),g&&g.m(m,null),e.append(t,R),b||(q=[e.listen(t,"click",ne),e.listen(t,"keyup",Ye)],b=!0)},p(G,M){var ae,me,K,ce,de,Q,$,ue;n=G,M[0]&2048&&!e.src_url_equal(r.src,o=n[58].LogoUrl)&&e.attr(r,"src",o),M[0]&2048&&l!==(l=n[58].Label)&&e.attr(r,"alt",l),n[58].isMethodPromoted?y?y.p(n,M):(y=Ce(n),y.c(),y.m(d,null)):y&&(y.d(1),y=null),M[0]&2048&&j!==(j=(n[58].Label||n[58].Name)+"")&&e.set_data(H,j),n[13]?w&&(w.d(1),w=null):w?w.p(n,M):(w=Pe(n),w.c(),w.m(m,z)),M[0]&131072&&N!==(N=n[17]("generalMin")+"")&&e.set_data(U,N),M[0]&67840&&F!==(F=e.formatCurrency(n[58].DisplayCurrency.MinAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(me=(ae=n[58])==null?void 0:ae.DisplayCurrency)==null?void 0:me.Name]||n[16],minimumFractionDigits:n[8][(ce=(K=n[58])==null?void 0:K.DisplayCurrency)==null?void 0:ce.Name]||n[16]})+"")&&e.set_data(Y,F),M[0]&131072&&W!==(W=n[17]("generalMax")+"")&&e.set_data(L,W),M[0]&67840&&V!==(V=e.formatCurrency(n[58].DisplayCurrency.MaxAmountLimit,n[58].DisplayCurrency.Name,{maximumFractionDigits:n[8][(Q=(de=n[58])==null?void 0:de.DisplayCurrency)==null?void 0:Q.Name]||n[16],minimumFractionDigits:n[8][(ue=($=n[58])==null?void 0:$.DisplayCurrency)==null?void 0:ue.Name]||n[16]})+"")&&e.set_data(k,V),n[13]?g?g.p(n,M):(g=Ee(n),g.c(),g.m(m,null)):g&&(g.d(1),g=null),M[0]&2560&&e.toggle_class(t,"checked",n[9]===n[58].Name)},d(G){G&&e.detach(t),y&&y.d(),w&&w.d(),g&&g.d(),b=!1,e.run_all(q)}}}function Se(n){let t,s,r,o;return{c(){t=e.element("div"),s=e.text(n[10]),e.attr(t,"class","ShowAllButton")},m(l,a){e.insert(l,t,a),e.append(t,s),r||(o=e.listen(t,"click",n[33]),r=!0)},p(l,a){a[0]&1024&&e.set_data(s,l[10])},d(l){l&&e.detach(t),r=!1,o()}}}function De(n){let t,s,r;return{c(){t=e.element("cashier-error"),s=e.element("span"),r=e.text(n[12]),e.attr(s,"class","ErrorMessage"),e.attr(s,"slot","text"),e.set_custom_element_data(t,"lang",n[0]),e.set_custom_element_data(t,"assetsurl",n[1]),e.set_custom_element_data(t,"translationurl",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[5]),e.set_custom_element_data(t,"clientstyling",n[4]),e.set_custom_element_data(t,"mbsource",n[3]),e.set_custom_element_data(t,"hidebuttons","true")},m(o,l){e.insert(o,t,l),e.append(t,s),e.append(s,r)},p(o,l){l[0]&4096&&e.set_data(r,o[12]),l[0]&1&&e.set_custom_element_data(t,"lang",o[0]),l[0]&2&&e.set_custom_element_data(t,"assetsurl",o[1]),l[0]&4&&e.set_custom_element_data(t,"translationurl",o[2]),l[0]&32&&e.set_custom_element_data(t,"clientstylingurl",o[5]),l[0]&16&&e.set_custom_element_data(t,"clientstyling",o[4]),l[0]&8&&e.set_custom_element_data(t,"mbsource",o[3])},d(o){o&&e.detach(t)}}}function Ge(n){let t,s,r=n[14]&&Le(n),o=n[12]&&De(n);return{c(){r&&r.c(),t=e.space(),o&&o.c(),s=e.empty()},m(l,a){r&&r.m(l,a),e.insert(l,t,a),o&&o.m(l,a),e.insert(l,s,a)},p(l,a){l[14]?r?r.p(l,a):(r=Le(l),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),l[12]?o?o.p(l,a):(o=De(l),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null)},i:e.noop,o:e.noop,d(l){l&&(e.detach(t),e.detach(s)),r&&r.d(l),o&&o.d(l)}}}const Be="PaymentPromotion",Ye=()=>{};function Ve(n,t,s){let r,o,l;e.component_subscribe(n,e.$format,i=>s(17,o=i)),e.component_subscribe(n,e.xPaymentSessionToken,i=>s(42,l=i)),e.dayjs.extend(e.utc);let{lang:a="en"}=t,{local:d="en-US"}=t,{endpoint:u}=t,{paymentsession:m}=t,{playersession:c}=t,{customerid:p}=t,{assetsurl:j}=t,{currency:H}=t,{numberofmethodsshown:E}=t,{translationurl:z=""}=t,{mbsource:D}=t,{clientstyling:P}=t,{clientstylingurl:T}=t,{currencydecimals:N="0"}=t,{currencysymbol:U=""}=t,{currencyposition:B=""}=t,{promotedmethods:F="false"}=t,{type:Y}=t,{userroles:O=""}=t,A,W={},L,te,V=window.navigator.userAgent,k=[],I,R="",b=[],q=[],y="",w,g=!0,ne=!1,Z=!1,J=[];var X;(function(i){i.PlayerSessionIsNotValid="PlayerSessionIsNotValid",i.Success="Success",i.JwtTokenError="JwtTokenError"})(X||(X={}));const se=()=>{let i=z;if(i)return fetch(i).then(f=>f.json()).then(f=>{Object.keys(f).forEach(S=>{_e(S,f[S])})}).catch(f=>{console.log(f)})};Object.keys(be).forEach(i=>{_e(i,be[i])});const oe=()=>{He(a)},re=i=>{l&&ie(i)},ie=i=>{const{currency:f}=i,h=A!==void 0&&A!==f?"MetadataLoading":"DataLoading";A=f,window.postMessage({type:h,isDataLoaded:!1},window.location.href);const _=new URL(`${u}/v2/player/${p}/payment/GetPaymentMetadata`),C=new Headers;C.append("accept","application/json"),C.append("Content-Type","application/json"),C.append("X-Client-Request-Timestamp",e.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS")),C.append("X-SessionId",`${c}`),C.append("X-Payment-Session-Token",`${m||l}`),J.indexOf("MM_CHANNEL_BETA")!=-1&&C.append("MM_CHANNEL","BETA");const x={method:"POST",headers:C,mode:"cors",body:JSON.stringify(fe(pe({},f&&{Currency:f}),{Tags:{UserAgent:window.navigator.userAgent}}))};fetch(_,x).then(v=>{const ee=v.headers.get("X-Payment-Session-Token");return ee&&e.xPaymentSessionToken.set(ee),v.json()}).then(v=>{var ee;if(v.error){s(12,y=v.error);return}if(v.ResponseCode!==X.Success){w=v.ResponseCode,ae();return}k=(ee=v.PaymentMethods)!=null&&ee.Ordering?le(v):G(v),window.postMessage({type:"PromotedPaymentMethods",promotedPaymentMethods:q},window.location.href),s(10,R=E&&+E>0&&k.length>+E?o("showAll"):""),s(11,b=R?k.slice(0,+E):k),F=="false"&&s(11,b=b.sort((ge,ye)=>ge.isMethodPromoted&&!ye.isMethodPromoted?-1:!ge.isMethodPromoted&&ye.isMethodPromoted?1:0)),s(15,Z=!b.length),window.postMessage({type:"StartSessionCountdown",paymentMethodName:k[0].Name},window.location.href),window.postMessage({type:h,isDataLoaded:!0},window.location.href)}).finally(()=>{s(14,ne=!0),window.postMessage({type:h,isDataLoaded:!0},window.location.href)})},le=i=>{const f=[];return q=[],i.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(S=>{const h=i.PaymentMethods.PaymentMethods.find(_=>_.Name===S);if(h){const _=(h==null?void 0:h.Logos.find(v=>v.LogoType==="Desktop"))||{},C=(h==null?void 0:h.Logos.find(v=>v.LogoType==="Mobile"))||{},x=g?_:C;h.isMethodPromoted=Q(h.Tags),h.LogoUrl=x.LogoUrl?`https:${x.LogoUrl}`:"",h.isMethodPromoted&&q.push(h),f.push(h)}}),f},G=i=>{const f=i.PaymentMethods.PaymentMethods.map(_=>fe(pe({},_),{isMethodPromoted:Q(_.Tags),LogoUrl:_.Logos&&_.Logos.length&&_.Logos[0].LogoUrl?`https:${_.Logos[0].LogoUrl}`:""})),[S,h]=f.reduce(([_,C],x)=>(x&&x.isMethodPromoted?_.push(x):C.promo(x),[_,C]),[[],[]]);return q=S,h},M=i=>{s(9,I=i.Name),window.postMessage({type:"SelectPayMeth",details:i},window.location.href),dispatchEvent(new CustomEvent("selectPayMeth",{detail:i,bubbles:!0,cancelable:!0,composed:!0}))},ae=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:w},window.location.href)},me=()=>{s(13,g=!e.isMobile(V))},K=()=>{b==k?de():ce()},ce=()=>{s(11,b=k),s(10,R=o("showLess"))},de=()=>{s(11,b=k.slice(0,+E)),I&&!b.find(i=>i.Name===I)&&b.splice(0,0,k.find(i=>i.Name===I)),s(10,R=o("showAll"))},Q=i=>i&&i.split(",").some(f=>f===Be),$=i=>{var S;const{data:{type:f}={}}=i||{};switch(f){case"PrecisionCurrenciesMap":{s(8,W=((S=i==null?void 0:i.data)==null?void 0:S.payload)||{});break}}},ue=()=>{O.length>0&&(J=O.split(","))};e.onMount(()=>(me(),e.initCurrencyFormatter(d,U,B,N),window.postMessage({type:"CashierMethodsListReady"},window.location.href),window.addEventListener("message",$),()=>{window.removeEventListener("message",$)}));const Ae=i=>M(i),xe=()=>K();function ze(i){e.binding_callbacks[i?"unshift":"push"](()=>{L=i,s(7,L)})}return n.$$set=i=>{"lang"in i&&s(0,a=i.lang),"local"in i&&s(20,d=i.local),"endpoint"in i&&s(21,u=i.endpoint),"paymentsession"in i&&s(22,m=i.paymentsession),"playersession"in i&&s(23,c=i.playersession),"customerid"in i&&s(24,p=i.customerid),"assetsurl"in i&&s(1,j=i.assetsurl),"currency"in i&&s(25,H=i.currency),"numberofmethodsshown"in i&&s(26,E=i.numberofmethodsshown),"translationurl"in i&&s(2,z=i.translationurl),"mbsource"in i&&s(3,D=i.mbsource),"clientstyling"in i&&s(4,P=i.clientstyling),"clientstylingurl"in i&&s(5,T=i.clientstylingurl),"currencydecimals"in i&&s(27,N=i.currencydecimals),"currencysymbol"in i&&s(28,U=i.currencysymbol),"currencyposition"in i&&s(29,B=i.currencyposition),"promotedmethods"in i&&s(30,F=i.promotedmethods),"type"in i&&s(6,Y=i.type),"userroles"in i&&s(31,O=i.userroles)},n.$$.update=()=>{n.$$.dirty[1]&1&&O&&ue(),n.$$.dirty[0]&56623104&&u&&!m&&p&&re({currency:H}),n.$$.dirty[0]&1&&a&&oe(),n.$$.dirty[0]&144&&P&&L&&he.setClientStyling(L,P),n.$$.dirty[0]&160&&T&&L&&he.setClientStylingURL(L,T),n.$$.dirty[0]&136&&D&&L&&he.setStreamStyling(L,`${D}.Style`,te),n.$$.dirty[0]&5&&a&&z&&se(),n.$$.dirty[0]&134217728&&s(16,r=Number(N))},[a,j,z,D,P,T,Y,L,W,I,R,b,y,g,ne,Z,r,o,M,K,d,u,m,c,p,H,E,N,U,B,F,O,Ae,xe,ze]}class Ne extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,Ve,Ge,e.safe_not_equal,{lang:0,local:20,endpoint:21,paymentsession:22,playersession:23,customerid:24,assetsurl:1,currency:25,numberofmethodsshown:26,translationurl:2,mbsource:3,clientstyling:4,clientstylingurl:5,currencydecimals:27,currencysymbol:28,currencyposition:29,promotedmethods:30,type:6,userroles:31},Ue,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get local(){return this.$$.ctx[20]}set local(t){this.$$set({local:t}),e.flush()}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get paymentsession(){return this.$$.ctx[22]}set paymentsession(t){this.$$set({paymentsession:t}),e.flush()}get playersession(){return this.$$.ctx[23]}set playersession(t){this.$$set({playersession:t}),e.flush()}get customerid(){return this.$$.ctx[24]}set customerid(t){this.$$set({customerid:t}),e.flush()}get assetsurl(){return this.$$.ctx[1]}set assetsurl(t){this.$$set({assetsurl:t}),e.flush()}get currency(){return this.$$.ctx[25]}set currency(t){this.$$set({currency:t}),e.flush()}get numberofmethodsshown(){return this.$$.ctx[26]}set numberofmethodsshown(t){this.$$set({numberofmethodsshown:t}),e.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get currencydecimals(){return this.$$.ctx[27]}set currencydecimals(t){this.$$set({currencydecimals:t}),e.flush()}get currencysymbol(){return this.$$.ctx[28]}set currencysymbol(t){this.$$set({currencysymbol:t}),e.flush()}get currencyposition(){return this.$$.ctx[29]}set currencyposition(t){this.$$set({currencyposition:t}),e.flush()}get promotedmethods(){return this.$$.ctx[30]}set promotedmethods(t){this.$$set({promotedmethods:t}),e.flush()}get type(){return this.$$.ctx[6]}set type(t){this.$$set({type:t}),e.flush()}get userroles(){return this.$$.ctx[31]}set userroles(t){this.$$set({userroles:t}),e.flush()}}e.create_custom_element(Ne,{lang:{},local:{},endpoint:{},paymentsession:{},playersession:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},mbsource:{},clientstyling:{},clientstylingurl:{},currencydecimals:{},currencysymbol:{},currencyposition:{},promotedmethods:{},type:{},userroles:{}},[],[],!0);exports.default=Ne;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierPage-DEYpTaJv.cjs"),Xe=require("./CashierHeader-DA_ReO25.cjs");function wt(i,n){e.addMessages(i,n)}function $t(i){e.init({fallbackLocale:"en"}),e.$locale.set(i)}const St={en:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"Continue session",sessionExpirationLoadingButton:"Processing...",sessionExpirationEnd:"End session"},tr:{sessionExpirationHeader:"Oturum Uyarısı",sessionExpirationTitle:"Oturumunuzun süresi dolmak üzere!",sessionExpirationGeneralText:"Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",sessionExpirationGeneralButton:"DEVAM ET",sessionExpirationLoadingButton:"İŞLEME...",sessionExpirationEnd:"Oturumu sonlandır"},fr:{sessionExpirationHeader:"Avertissement de session",sessionExpirationTitle:"Votre session est sur le point d'expirer !",sessionExpirationGeneralText:"Votre session se terminera automatiquement dans <b>{second} secondes</b>.",sessionExpirationGeneralButton:"Continuer la session",sessionExpirationLoadingButton:"Traitement en cours...",sessionExpirationEnd:"Terminer la session"},da:{sessionExpirationHeader:"Sessionsadvarsel",sessionExpirationTitle:"Din session er ved at udløbe!",sessionExpirationGeneralText:"Din session afsluttes automatisk om <b>{second} sekunder</b>.",sessionExpirationGeneralButton:"Fortsæt session",sessionExpirationLoadingButton:"Behandler...",sessionExpirationEnd:"Afslut session"},de:{sessionExpirationHeader:"Sitzungswarnung",sessionExpirationTitle:"Ihre Sitzung läuft bald ab!",sessionExpirationGeneralText:"Ihre Sitzung wird automatisch in <b>{second} Sekunden</b> beendet.",sessionExpirationGeneralButton:"Sitzung fortsetzen",sessionExpirationLoadingButton:"Verarbeitung...",sessionExpirationEnd:"Sitzung beenden"},nl:{sessionExpirationHeader:"Sessiewaarschuwing",sessionExpirationTitle:"Uw sessie staat op het punt te verlopen!",sessionExpirationGeneralText:"Uw sessie wordt automatisch beëindigd over <b>{second} seconden</b>.",sessionExpirationGeneralButton:"Sessie voortzetten",sessionExpirationLoadingButton:"Verwerken...",sessionExpirationEnd:"Sessie beëindigen"}};/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:Ht,setPrototypeOf:xt,isFrozen:en,getPrototypeOf:tn,getOwnPropertyDescriptor:nn}=Object;let{freeze:U,seal:Q,create:zt}=Object,{apply:$e,construct:et}=typeof Reflect!="undefined"&&Reflect;U||(U=function(n){return n});Q||(Q=function(n){return n});$e||($e=function(n,o,s){return n.apply(o,s)});et||(et=function(n,o){return new n(...o)});const He=X(Array.prototype.forEach),At=X(Array.prototype.pop),Me=X(Array.prototype.push),Fe=X(String.prototype.toLowerCase),qe=X(String.prototype.toString),Ct=X(String.prototype.match),Re=X(String.prototype.replace),on=X(String.prototype.indexOf),sn=X(String.prototype.trim),ne=X(Object.prototype.hasOwnProperty),P=X(RegExp.prototype.test),ke=rn(TypeError);function X(i){return function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return $e(i,n,s)}}function rn(i){return function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return et(i,o)}}function m(i,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fe;xt&&xt(i,null);let s=n.length;for(;s--;){let a=n[s];if(typeof a=="string"){const f=o(a);f!==a&&(en(n)||(n[s]=f),a=f)}i[a]=!0}return i}function an(i){for(let n=0;n<i.length;n++)ne(i,n)||(i[n]=null);return i}function ye(i){const n=zt(null);for(const[o,s]of Ht(i))ne(i,o)&&(Array.isArray(s)?n[o]=an(s):s&&typeof s=="object"&&s.constructor===Object?n[o]=ye(s):n[o]=s);return n}function Oe(i,n){for(;i!==null;){const s=nn(i,n);if(s){if(s.get)return X(s.get);if(typeof s.value=="function")return X(s.value)}i=tn(i)}function o(){return null}return o}const vt=U(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ze=U(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Je=U(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ln=U(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ke=U(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),cn=U(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Lt=U(["#text"]),Mt=U(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Qe=U(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Rt=U(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ze=U(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),un=Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm),fn=Q(/<%[\w\W]*|[\w\W]*%>/gm),pn=Q(/\${[\w\W]*}/gm),mn=Q(/^data-[\-\w.\u00B7-\uFFFF]/),dn=Q(/^aria-[\-\w]+$/),Ft=Q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hn=Q(/^(?:\w+script|data):/i),gn=Q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Gt=Q(/^html$/i),_n=Q(/^[a-z][.\w]*(-[.\w]+)+$/i);var kt=Object.freeze({__proto__:null,MUSTACHE_EXPR:un,ERB_EXPR:fn,TMPLIT_EXPR:pn,DATA_ATTR:mn,ARIA_ATTR:dn,IS_ALLOWED_URI:Ft,IS_SCRIPT_OR_DATA:hn,ATTR_WHITESPACE:gn,DOCTYPE_NAME:Gt,CUSTOM_ELEMENT:_n});const De={element:1,text:3,progressingInstruction:7,comment:8,document:9},En=function(){return typeof window=="undefined"?null:window},Tn=function(n,o){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let s=null;const a="data-tt-policy-suffix";o&&o.hasAttribute(a)&&(s=o.getAttribute(a));const f="dompurify"+(s?"#"+s:"");try{return n.createPolicy(f,{createHTML(g){return g},createScriptURL(g){return g}})}catch(g){return console.warn("TrustedTypes policy "+f+" could not be created."),null}};function Wt(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:En();const n=u=>Wt(u);if(n.version="3.1.6",n.removed=[],!i||!i.document||i.document.nodeType!==De.document)return n.isSupported=!1,n;let{document:o}=i;const s=o,a=s.currentScript,{DocumentFragment:f,HTMLTemplateElement:g,Node:w,Element:T,NodeFilter:_,NamedNodeMap:Y=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:$,DOMParser:Te,trustedTypes:B}=i,H=T.prototype,ge=Oe(H,"cloneNode"),ie=Oe(H,"remove"),z=Oe(H,"nextSibling"),ue=Oe(H,"childNodes"),q=Oe(H,"parentNode");if(typeof g=="function"){const u=o.createElement("template");u.content&&u.content.ownerDocument&&(o=u.content.ownerDocument)}let h,S="";const{implementation:ee,createNodeIterator:oe,createDocumentFragment:fe,getElementsByTagName:F}=o,{importNode:te}=s;let C={};n.isSupported=typeof Ht=="function"&&typeof q=="function"&&ee&&ee.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:se,ERB_EXPR:j,TMPLIT_EXPR:pe,DATA_ATTR:Z,ARIA_ATTR:k,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:be}=kt;let{IS_ALLOWED_URI:V}=kt,p=null;const _e=m({},[...vt,...Ze,...Je,...Ke,...Lt]);let x=null;const Ee=m({},[...Mt,...Qe,...Rt,...ze]);let E=Object.seal(zt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),v=null,l=null,d=!0,N=!0,L=!1,G=!0,me=!1,K=!0,re=!1,y=!1,A=!1,ae=!1,Ne=!1,Ie=!1,tt=!0,nt=!1;const jt="user-content-";let Ge=!0,Ce=!1,we={},Se=null;const it=m({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ot=null;const st=m({},["audio","video","img","source","image","track"]);let We=null;const rt=m({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Pe="http://www.w3.org/1998/Math/MathML",Ue="http://www.w3.org/2000/svg",de="http://www.w3.org/1999/xhtml";let xe=de,Ye=!1,je=null;const Vt=m({},[Pe,Ue,de],qe);let ve=null;const Xt=["application/xhtml+xml","text/html"],qt="text/html";let M=null,Ae=null;const Zt=o.createElement("form"),at=function(t){return t instanceof RegExp||t instanceof Function},Ve=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ae&&Ae===t)){if((!t||typeof t!="object")&&(t={}),t=ye(t),ve=Xt.indexOf(t.PARSER_MEDIA_TYPE)===-1?qt:t.PARSER_MEDIA_TYPE,M=ve==="application/xhtml+xml"?qe:Fe,p=ne(t,"ALLOWED_TAGS")?m({},t.ALLOWED_TAGS,M):_e,x=ne(t,"ALLOWED_ATTR")?m({},t.ALLOWED_ATTR,M):Ee,je=ne(t,"ALLOWED_NAMESPACES")?m({},t.ALLOWED_NAMESPACES,qe):Vt,We=ne(t,"ADD_URI_SAFE_ATTR")?m(ye(rt),t.ADD_URI_SAFE_ATTR,M):rt,ot=ne(t,"ADD_DATA_URI_TAGS")?m(ye(st),t.ADD_DATA_URI_TAGS,M):st,Se=ne(t,"FORBID_CONTENTS")?m({},t.FORBID_CONTENTS,M):it,v=ne(t,"FORBID_TAGS")?m({},t.FORBID_TAGS,M):{},l=ne(t,"FORBID_ATTR")?m({},t.FORBID_ATTR,M):{},we=ne(t,"USE_PROFILES")?t.USE_PROFILES:!1,d=t.ALLOW_ARIA_ATTR!==!1,N=t.ALLOW_DATA_ATTR!==!1,L=t.ALLOW_UNKNOWN_PROTOCOLS||!1,G=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,me=t.SAFE_FOR_TEMPLATES||!1,K=t.SAFE_FOR_XML!==!1,re=t.WHOLE_DOCUMENT||!1,ae=t.RETURN_DOM||!1,Ne=t.RETURN_DOM_FRAGMENT||!1,Ie=t.RETURN_TRUSTED_TYPE||!1,A=t.FORCE_BODY||!1,tt=t.SANITIZE_DOM!==!1,nt=t.SANITIZE_NAMED_PROPS||!1,Ge=t.KEEP_CONTENT!==!1,Ce=t.IN_PLACE||!1,V=t.ALLOWED_URI_REGEXP||Ft,xe=t.NAMESPACE||de,E=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(E.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(E.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(E.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),me&&(N=!1),Ne&&(ae=!0),we&&(p=m({},Lt),x=[],we.html===!0&&(m(p,vt),m(x,Mt)),we.svg===!0&&(m(p,Ze),m(x,Qe),m(x,ze)),we.svgFilters===!0&&(m(p,Je),m(x,Qe),m(x,ze)),we.mathMl===!0&&(m(p,Ke),m(x,Rt),m(x,ze))),t.ADD_TAGS&&(p===_e&&(p=ye(p)),m(p,t.ADD_TAGS,M)),t.ADD_ATTR&&(x===Ee&&(x=ye(x)),m(x,t.ADD_ATTR,M)),t.ADD_URI_SAFE_ATTR&&m(We,t.ADD_URI_SAFE_ATTR,M),t.FORBID_CONTENTS&&(Se===it&&(Se=ye(Se)),m(Se,t.FORBID_CONTENTS,M)),Ge&&(p["#text"]=!0),re&&m(p,["html","head","body"]),p.table&&(m(p,["tbody"]),delete v.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');h=t.TRUSTED_TYPES_POLICY,S=h.createHTML("")}else h===void 0&&(h=Tn(B,a)),h!==null&&typeof S=="string"&&(S=h.createHTML(""));U&&U(t),Ae=t}},lt=m({},["mi","mo","mn","ms","mtext"]),ct=m({},["foreignobject","annotation-xml"]),Jt=m({},["title","style","font","a","script"]),ut=m({},[...Ze,...Je,...ln]),ft=m({},[...Ke,...cn]),Kt=function(t){let r=q(t);(!r||!r.tagName)&&(r={namespaceURI:xe,tagName:"template"});const c=Fe(t.tagName),b=Fe(r.tagName);return je[t.namespaceURI]?t.namespaceURI===Ue?r.namespaceURI===de?c==="svg":r.namespaceURI===Pe?c==="svg"&&(b==="annotation-xml"||lt[b]):!!ut[c]:t.namespaceURI===Pe?r.namespaceURI===de?c==="math":r.namespaceURI===Ue?c==="math"&&ct[b]:!!ft[c]:t.namespaceURI===de?r.namespaceURI===Ue&&!ct[b]||r.namespaceURI===Pe&&!lt[b]?!1:!ft[c]&&(Jt[c]||!ut[c]):!!(ve==="application/xhtml+xml"&&je[t.namespaceURI]):!1},le=function(t){Me(n.removed,{element:t});try{q(t).removeChild(t)}catch(r){ie(t)}},Be=function(t,r){try{Me(n.removed,{attribute:r.getAttributeNode(t),from:r})}catch(c){Me(n.removed,{attribute:null,from:r})}if(r.removeAttribute(t),t==="is"&&!x[t])if(ae||Ne)try{le(r)}catch(c){}else try{r.setAttribute(t,"")}catch(c){}},pt=function(t){let r=null,c=null;if(A)t="<remove></remove>"+t;else{const R=Ct(t,/^[\r\n\t ]+/);c=R&&R[0]}ve==="application/xhtml+xml"&&xe===de&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const b=h?h.createHTML(t):t;if(xe===de)try{r=new Te().parseFromString(b,ve)}catch(R){}if(!r||!r.documentElement){r=ee.createDocument(xe,"template",null);try{r.documentElement.innerHTML=Ye?S:b}catch(R){}}const O=r.body||r.documentElement;return t&&c&&O.insertBefore(o.createTextNode(c),O.childNodes[0]||null),xe===de?F.call(r,re?"html":"body")[0]:re?r.documentElement:O},mt=function(t){return oe.call(t.ownerDocument||t,t,_.SHOW_ELEMENT|_.SHOW_COMMENT|_.SHOW_TEXT|_.SHOW_PROCESSING_INSTRUCTION|_.SHOW_CDATA_SECTION,null)},dt=function(t){return t instanceof $&&(typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||!(t.attributes instanceof Y)||typeof t.removeAttribute!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function")},ht=function(t){return typeof w=="function"&&t instanceof w},he=function(t,r,c){C[t]&&He(C[t],b=>{b.call(n,r,c,Ae)})},gt=function(t){let r=null;if(he("beforeSanitizeElements",t,null),dt(t))return le(t),!0;const c=M(t.nodeName);if(he("uponSanitizeElement",t,{tagName:c,allowedTags:p}),t.hasChildNodes()&&!ht(t.firstElementChild)&&P(/<[/\w]/g,t.innerHTML)&&P(/<[/\w]/g,t.textContent)||t.nodeType===De.progressingInstruction||K&&t.nodeType===De.comment&&P(/<[/\w]/g,t.data))return le(t),!0;if(!p[c]||v[c]){if(!v[c]&&Et(c)&&(E.tagNameCheck instanceof RegExp&&P(E.tagNameCheck,c)||E.tagNameCheck instanceof Function&&E.tagNameCheck(c)))return!1;if(Ge&&!Se[c]){const b=q(t)||t.parentNode,O=ue(t)||t.childNodes;if(O&&b){const R=O.length;for(let W=R-1;W>=0;--W){const ce=ge(O[W],!0);ce.__removalCount=(t.__removalCount||0)+1,b.insertBefore(ce,z(t))}}}return le(t),!0}return t instanceof T&&!Kt(t)||(c==="noscript"||c==="noembed"||c==="noframes")&&P(/<\/no(script|embed|frames)/i,t.innerHTML)?(le(t),!0):(me&&t.nodeType===De.text&&(r=t.textContent,He([se,j,pe],b=>{r=Re(r,b," ")}),t.textContent!==r&&(Me(n.removed,{element:t.cloneNode()}),t.textContent=r)),he("afterSanitizeElements",t,null),!1)},_t=function(t,r,c){if(tt&&(r==="id"||r==="name")&&(c in o||c in Zt))return!1;if(!(N&&!l[r]&&P(Z,r))){if(!(d&&P(k,r))){if(!x[r]||l[r]){if(!(Et(t)&&(E.tagNameCheck instanceof RegExp&&P(E.tagNameCheck,t)||E.tagNameCheck instanceof Function&&E.tagNameCheck(t))&&(E.attributeNameCheck instanceof RegExp&&P(E.attributeNameCheck,r)||E.attributeNameCheck instanceof Function&&E.attributeNameCheck(r))||r==="is"&&E.allowCustomizedBuiltInElements&&(E.tagNameCheck instanceof RegExp&&P(E.tagNameCheck,c)||E.tagNameCheck instanceof Function&&E.tagNameCheck(c))))return!1}else if(!We[r]){if(!P(V,Re(c,J,""))){if(!((r==="src"||r==="xlink:href"||r==="href")&&t!=="script"&&on(c,"data:")===0&&ot[t])){if(!(L&&!P(D,Re(c,J,"")))){if(c)return!1}}}}}}return!0},Et=function(t){return t!=="annotation-xml"&&Ct(t,be)},Tt=function(t){he("beforeSanitizeAttributes",t,null);const{attributes:r}=t;if(!r)return;const c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:x};let b=r.length;for(;b--;){const O=r[b],{name:R,namespaceURI:W,value:ce}=O,Le=M(R);let I=R==="value"?ce:sn(ce);if(c.attrName=Le,c.attrValue=I,c.keepAttr=!0,c.forceKeepAttr=void 0,he("uponSanitizeAttribute",t,c),I=c.attrValue,K&&P(/((--!?|])>)|<\/(style|title)/i,I)){Be(R,t);continue}if(c.forceKeepAttr||(Be(R,t),!c.keepAttr))continue;if(!G&&P(/\/>/i,I)){Be(R,t);continue}me&&He([se,j,pe],yt=>{I=Re(I,yt," ")});const bt=M(t.nodeName);if(_t(bt,Le,I)){if(nt&&(Le==="id"||Le==="name")&&(Be(R,t),I=jt+I),h&&typeof B=="object"&&typeof B.getAttributeType=="function"&&!W)switch(B.getAttributeType(bt,Le)){case"TrustedHTML":{I=h.createHTML(I);break}case"TrustedScriptURL":{I=h.createScriptURL(I);break}}try{W?t.setAttributeNS(W,R,I):t.setAttribute(R,I),dt(t)?le(t):At(n.removed)}catch(yt){}}}he("afterSanitizeAttributes",t,null)},Qt=function u(t){let r=null;const c=mt(t);for(he("beforeSanitizeShadowDOM",t,null);r=c.nextNode();)he("uponSanitizeShadowNode",r,null),!gt(r)&&(r.content instanceof f&&u(r.content),Tt(r));he("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(u){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=null,c=null,b=null,O=null;if(Ye=!u,Ye&&(u="<!-->"),typeof u!="string"&&!ht(u))if(typeof u.toString=="function"){if(u=u.toString(),typeof u!="string")throw ke("dirty is not a string, aborting")}else throw ke("toString is not a function");if(!n.isSupported)return u;if(y||Ve(t),n.removed=[],typeof u=="string"&&(Ce=!1),Ce){if(u.nodeName){const ce=M(u.nodeName);if(!p[ce]||v[ce])throw ke("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof w)r=pt("<!---->"),c=r.ownerDocument.importNode(u,!0),c.nodeType===De.element&&c.nodeName==="BODY"||c.nodeName==="HTML"?r=c:r.appendChild(c);else{if(!ae&&!me&&!re&&u.indexOf("<")===-1)return h&&Ie?h.createHTML(u):u;if(r=pt(u),!r)return ae?null:Ie?S:""}r&&A&&le(r.firstChild);const R=mt(Ce?u:r);for(;b=R.nextNode();)gt(b)||(b.content instanceof f&&Qt(b.content),Tt(b));if(Ce)return u;if(ae){if(Ne)for(O=fe.call(r.ownerDocument);r.firstChild;)O.appendChild(r.firstChild);else O=r;return(x.shadowroot||x.shadowrootmode)&&(O=te.call(s,O,!0)),O}let W=re?r.outerHTML:r.innerHTML;return re&&p["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&P(Gt,r.ownerDocument.doctype.name)&&(W="<!DOCTYPE "+r.ownerDocument.doctype.name+`>
|
|
2
|
-
`+W),me&&He([se,j,pe],ce=>{W=Re(W,ce," ")}),h&&Ie?h.createHTML(W):W},n.setConfig=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ve(u),y=!0},n.clearConfig=function(){Ae=null,y=!1},n.isValidAttribute=function(u,t,r){Ae||Ve({});const c=M(u),b=M(t);return _t(c,b,r)},n.addHook=function(u,t){typeof t=="function"&&(C[u]=C[u]||[],Me(C[u],t))},n.removeHook=function(u){if(C[u])return At(C[u])},n.removeHooks=function(u){C[u]&&(C[u]=[])},n.removeAllHooks=function(){C={}},n}var Ot=Wt();function bn(i){e.append_styles(i,"svelte-1kjup2o",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:115;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.3));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;min-width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3);padding:20px}.CashierSessionExpirationModalWrapper::before{content:"";position:absolute;inset:0;opacity:0.15;z-index:-1;pointer-events:none;border-radius:16px;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%)}.ButtonsContainer{display:flex;flex-direction:row;gap:10px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0;justify-content:space-between}.CashierSessionExpirationModalHeaderTitle{display:flex;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);gap:8px}.CashierSessionExpirationModalHeaderTitle svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;justify-content:center;top:10px;right:10px;border-radius:50%;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;margin-top:20px;gap:25px}.CashierSessionExpiration .CashierSessionExpirationButton{width:100%;height:36px;color:var(--emw-color-font-typography, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #f9c405)}.CashierSessionExpirationTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%}.CashierSessionExpirationText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 12px);opacity:0.6}.CashierSessionExpirationText p{padding:3px}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-small, 12px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{fill:var(--emw--color-typography, #fff);width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.ModalButton{color:var(--emw--color-secondary, #000);text-align:center;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 600);font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear;box-shadow:inset 0px 0px 0px 1px var(--emw--color-primary)}.ModalButton:hover{background-color:var(--emw--color-hover, #dbac03)}.ModalButton.Secondary{background:transparent;color:var(--emw-color-white, #fff)}.ModalButton.Secondary:hover{background-color:var(--emw--color-hover, #dbac03);color:var(--emw-color-black, #000)}.ModalButton.Primary.Disabled{cursor:default;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);opacity:0.5}.ModalButton.Primary.Disabled:hover{background:var(--emw--color-primary, #f9c408);cursor:not-allowed}')}const yn=i=>({}),Dt=i=>({}),wn=i=>({}),Nt=i=>({}),Sn=i=>({}),It=i=>({}),xn=i=>({}),Pt=i=>({class:"CashierSessionExpirationIcon"});function Ut(i){let n,o,s,a,f,g,w,T,_,Y,$,Te,B=i[8]("sessionExpirationHeader")+"",H,ge,ie,z,ue,q,h,S,ee,oe,fe,F,te,C,se=i[8]("sessionExpirationEnd")+"",j,pe,Z,k,D,J,be,V,p,_e,x;const Ee=i[23].icon,E=e.create_slot(Ee,i,i[22],Pt),v=E||An(i),l=i[23].title,d=e.create_slot(l,i,i[22],It),N=i[23].text,L=e.create_slot(N,i,i[22],Nt),G=L||Cn(i),me=[Ln,vn],K=[];function re(y,A){return y[6]?0:1}return k=re(i),D=K[k]=me[k](i),{c(){n=e.element("div"),o=e.element("div"),s=e.element("div"),a=e.element("div"),f=e.svg_element("svg"),g=e.svg_element("defs"),w=e.svg_element("mask"),T=e.svg_element("circle"),_=e.svg_element("rect"),Y=e.svg_element("circle"),$=e.svg_element("circle"),Te=e.space(),H=e.text(B),ge=e.space(),ie=e.element("div"),z=e.svg_element("svg"),ue=e.svg_element("path"),q=e.space(),h=e.element("div"),S=e.element("div"),v&&v.c(),ee=e.space(),d&&d.c(),oe=e.space(),G&&G.c(),fe=e.space(),F=e.element("div"),te=e.element("button"),C=e.element("span"),j=e.text(se),pe=e.space(),Z=e.element("button"),D.c(),e.attr(T,"cx","100"),e.attr(T,"cy","100"),e.attr(T,"r","90"),e.attr(_,"x","88"),e.attr(_,"y","40"),e.attr(_,"width","24"),e.attr(_,"height","80"),e.attr(_,"rx","12"),e.attr(_,"fill","black"),e.attr(Y,"cx","100"),e.attr(Y,"cy","150"),e.attr(Y,"r","14"),e.attr(Y,"fill","black"),e.attr(w,"id","exclamation-mask"),e.attr($,"cx","100"),e.attr($,"cy","100"),e.attr($,"r","90"),e.attr($,"mask","url(#exclamation-mask)"),e.attr(f,"viewBox","0 0 200 200"),e.attr(f,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"class","CashierSessionExpirationModalHeaderTitle"),e.attr(ue,"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(z,"xmlns","http://www.w3.org/2000/svg"),e.attr(z,"viewBox","0 0 13 13"),e.attr(z,"fill","none"),e.attr(z,"class","CloseButton"),e.attr(ie,"class","ModalCloseIcon"),e.attr(s,"class","CashierSessionExpirationModalHeader"),e.attr(C,"class","CashierSessionExpirationButtonText"),e.attr(te,"type","button"),e.attr(te,"class","ModalButton Secondary"),e.attr(Z,"type","button"),e.attr(Z,"class",J="ModalButton Primary "+(i[6]?"Disabled":"")),e.attr(F,"class","ButtonsContainer"),e.attr(S,"class","CashierSessionExpiration"),e.attr(h,"class","CashierSessionExpirationModalContainer"),e.attr(o,"class","CashierSessionExpirationModalWrapper"),e.attr(n,"class","CashierSessionExpirationModalWindow"),e.attr(n,"id","CashierSessionExpirationModal"),e.add_render_callback(()=>i[25].call(n))},m(y,A){e.insert(y,n,A),e.append(n,o),e.append(o,s),e.append(s,a),e.append(a,f),e.append(f,g),e.append(g,w),e.append(w,T),e.append(w,_),e.append(w,Y),e.append(f,$),e.append(a,Te),e.append(a,H),e.append(s,ge),e.append(s,ie),e.append(ie,z),e.append(z,ue),e.append(o,q),e.append(o,h),e.append(h,S),v&&v.m(S,null),e.append(S,ee),d&&d.m(S,null),e.append(S,oe),G&&G.m(S,null),e.append(S,fe),e.append(S,F),e.append(F,te),e.append(te,C),e.append(C,j),e.append(F,pe),e.append(F,Z),K[k].m(Z,null),i[24](S),be=e.add_iframe_resize_listener(n,i[25].bind(n)),p=!0,_e||(x=[e.listen(z,"click",i[11]),e.listen(te,"click",i[11]),e.listen(Z,"click",i[9]),e.listen(n,"click",i[10])],_e=!0)},p(y,A){i=y,(!p||A[0]&256)&&B!==(B=i[8]("sessionExpirationHeader")+"")&&e.set_data(H,B),E?E.p&&(!p||A[0]&4194304)&&e.update_slot_base(E,Ee,i,i[22],p?e.get_slot_changes(Ee,i[22],A,xn):e.get_all_dirty_from_scope(i[22]),Pt):v&&v.p&&(!p||A[0]&8)&&v.p(i,p?A:[-1,-1]),d&&d.p&&(!p||A[0]&4194304)&&e.update_slot_base(d,l,i,i[22],p?e.get_slot_changes(l,i[22],A,Sn):e.get_all_dirty_from_scope(i[22]),It),L?L.p&&(!p||A[0]&4194304)&&e.update_slot_base(L,N,i,i[22],p?e.get_slot_changes(N,i[22],A,wn):e.get_all_dirty_from_scope(i[22]),Nt):G&&G.p&&(!p||A[0]&384)&&G.p(i,p?A:[-1,-1]),(!p||A[0]&256)&&se!==(se=i[8]("sessionExpirationEnd")+"")&&e.set_data(j,se);let ae=k;k=re(i),k===ae?K[k].p(i,A):(e.group_outros(),e.transition_out(K[ae],1,1,()=>{K[ae]=null}),e.check_outros(),D=K[k],D?D.p(i,A):(D=K[k]=me[k](i),D.c()),e.transition_in(D,1),D.m(Z,null)),(!p||A[0]&64&&J!==(J="ModalButton Primary "+(i[6]?"Disabled":"")))&&e.attr(Z,"class",J)},i(y){p||(e.transition_in(v,y),e.transition_in(d,y),e.transition_in(G,y),e.transition_in(D),y&&e.add_render_callback(()=>{p&&(V||(V=e.create_bidirectional_transition(n,e.fade,{duration:i[2]},!0)),V.run(1))}),p=!0)},o(y){e.transition_out(v,y),e.transition_out(d,y),e.transition_out(G,y),e.transition_out(D),y&&(V||(V=e.create_bidirectional_transition(n,e.fade,{duration:i[2]},!1)),V.run(0)),p=!1},d(y){y&&e.detach(n),v&&v.d(y),d&&d.d(y),G&&G.d(y),K[k].d(),i[24](null),be(),y&&V&&V.end(),_e=!1,e.run_all(x)}}}function Bt(i){let n,o;return{c(){n=e.element("img"),e.src_url_equal(n.src,o=`${i[3]}/set-timeout-icon.png`)||e.attr(n,"src",o),e.attr(n,"width","300px"),e.attr(n,"alt","error")},m(s,a){e.insert(s,n,a)},p(s,a){a[0]&8&&!e.src_url_equal(n.src,o=`${s[3]}/set-timeout-icon.png`)&&e.attr(n,"src",o)},d(s){s&&e.detach(n)}}}function An(i){let n,o=i[3]&&Bt(i);return{c(){o&&o.c(),n=e.empty()},m(s,a){o&&o.m(s,a),e.insert(s,n,a)},p(s,a){s[3]?o?o.p(s,a):(o=Bt(s),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(s){s&&e.detach(n),o&&o.d(s)}}}function Cn(i){let n,o,s=i[8]("sessionExpirationTitle")+"",a,f,g,w=Ot.sanitize(i[8]("sessionExpirationGeneralText",{values:{second:i[7]}}))+"";return{c(){n=e.element("span"),o=e.element("p"),a=e.text(s),f=e.space(),g=e.element("p"),e.attr(n,"class","CashierSessionExpirationText")},m(T,_){e.insert(T,n,_),e.append(n,o),e.append(o,a),e.append(n,f),e.append(n,g),g.innerHTML=w},p(T,_){_[0]&256&&s!==(s=T[8]("sessionExpirationTitle")+"")&&e.set_data(a,s),_[0]&384&&w!==(w=Ot.sanitize(T[8]("sessionExpirationGeneralText",{values:{second:T[7]}}))+"")&&(g.innerHTML=w)},d(T){T&&e.detach(n)}}}function vn(i){let n;const o=i[23].button,s=e.create_slot(o,i,i[22],Dt),a=s||Mn(i);return{c(){a&&a.c()},m(f,g){a&&a.m(f,g),n=!0},p(f,g){s?s.p&&(!n||g[0]&4194304)&&e.update_slot_base(s,o,f,f[22],n?e.get_slot_changes(o,f[22],g,yn):e.get_all_dirty_from_scope(f[22]),Dt):a&&a.p&&(!n||g[0]&256)&&a.p(f,n?g:[-1,-1])},i(f){n||(e.transition_in(a,f),n=!0)},o(f){e.transition_out(a,f),n=!1},d(f){a&&a.d(f)}}}function Ln(i){let n,o,s,a,f,g=i[8]("sessionExpirationLoadingButton")+"",w;return{c(){n=e.element("div"),o=e.svg_element("svg"),s=e.svg_element("path"),a=e.space(),f=e.element("span"),w=e.text(g),e.attr(s,"d","M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"),e.attr(s,"fill","white"),e.attr(o,"class","CashierSessionExpirationButtonSpinner"),e.attr(o,"xmlns","http://www.w3.org/2000/svg"),e.attr(o,"width","15"),e.attr(o,"height","14"),e.attr(o,"viewBox","0 0 15 14"),e.attr(o,"fill","none"),e.attr(f,"class","CashierSessionExpirationButtonText")},m(T,_){e.insert(T,n,_),e.append(n,o),e.append(o,s),e.append(n,a),e.append(n,f),e.append(f,w)},p(T,_){_[0]&256&&g!==(g=T[8]("sessionExpirationLoadingButton")+"")&&e.set_data(w,g)},i:e.noop,o:e.noop,d(T){T&&e.detach(n)}}}function Mn(i){let n,o=i[8]("sessionExpirationGeneralButton")+"",s;return{c(){n=e.element("span"),s=e.text(o),e.attr(n,"class","CashierSessionExpirationButtonText")},m(a,f){e.insert(a,n,f),e.append(n,s)},p(a,f){f[0]&256&&o!==(o=a[8]("sessionExpirationGeneralButton")+"")&&e.set_data(s,o)},d(a){a&&e.detach(n)}}}function Rn(i){let n,o,s=i[5]&&Ut(i);return{c(){n=e.element("div"),s&&s.c()},m(a,f){e.insert(a,n,f),s&&s.m(n,null),i[26](n),o=!0},p(a,f){a[5]?s?(s.p(a,f),f[0]&32&&e.transition_in(s,1)):(s=Ut(a),s.c(),e.transition_in(s,1),s.m(n,null)):s&&(e.group_outros(),e.transition_out(s,1,1,()=>{s=null}),e.check_outros())},i(a){o||(e.transition_in(s),o=!0)},o(a){e.transition_out(s),o=!1},d(a){a&&e.detach(n),s&&s.d(),i[26](null)}}}const kn=90;function On(i,n,o){let s,a;e.component_subscribe(i,e.xPaymentSessionToken,l=>o(21,s=l)),e.component_subscribe(i,e.$format,l=>o(8,a=l));let{$$slots:f={},$$scope:g}=n;e.dayjs.extend(e.utc);let{clientstyling:w=""}=n,{clientstylingurl:T=""}=n,{width:_}=n,{height:Y}=n,{duration:$=200}=n,{assetsurl:Te=""}=n,{lang:B="en"}=n,{translationurl:H=""}=n,{endpoint:ge}=n,{currency:ie}=n,{customerid:z}=n,{selectedpaymentmethodname:ue}=n,{mbsource:q=""}=n,h,S=!1,ee=!1,oe,fe,F,te,C,se;var j;(function(l){l.PlayerSessionIsNotValid="PlayerSessionIsNotValid",l.Success="Success",l.JwtTokenError="JwtTokenError"})(j||(j={}));const pe=l=>{l.data.type==="StartSessionCountdown"&&(te=l.data.paymentMethodName)},Z=l=>{try{return JSON.parse(atob(l.split(".")[1]))}catch(d){return null}},k=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:C},window.location.href)},D=l=>{o(5,S=!1);const d=Z(l);d&&(fe=d==null?void 0:d.exp,o(7,oe=fe),F&&clearInterval(F),F=setInterval(()=>{const N=Math.floor(new Date().getTime()/1e3);o(7,oe=fe-N),oe<=kn&&o(5,S=!0),N>=fe&&(J(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},J=()=>{o(7,oe=0),o(5,S=!1),clearInterval(F)},be=()=>{if(ee)return;const l=new URL(`${ge}/v1/player/${z}/payment/GetPaymentMethod`),d=new Headers;o(6,ee=!0),d.append("accept","application/json"),d.append("Content-Type","application/json"),d.append("X-Client-Request-Timestamp",e.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const N={method:"POST",mode:"cors",headers:d,body:JSON.stringify({PaymentMethodName:te||ue,Currency:ie,XPaymentSessionToken:s})};fetch(l,N).then(L=>L.json()).then(L=>{if(L.error){window.postMessage({type:"ShowSessionError",error:L.error},window.location.href),J();return}if(L.ResponseCode===j.PlayerSessionIsNotValid||L.ResponseCode===j.JwtTokenError){C=L.ResponseCode,J(),k();return}if(L.ResponseCode!==j.Success){C=L.ResponseCode,J();return}L.XPaymentSessionToken&&e.xPaymentSessionToken.set(L.XPaymentSessionToken)}).finally(()=>o(6,ee=!1))},V=l=>{const d=l.currentTarget;l.target===d&&be()},p=()=>{fetch(H).then(d=>d.json()).then(d=>{Object.keys(d).forEach(N=>{wt(N,d[N])})}).catch(d=>{console.log(d)})},_e=()=>{window.postMessage({type:"Cashier:goToHome"},window.location.href),o(5,S=!1)};Object.keys(St).forEach(l=>{wt(l,St[l])});const x=()=>{$t(B)};e.onMount(()=>(window.addEventListener("message",pe,!1),()=>{window.removeEventListener("message",pe)})),e.onDestroy(()=>{clearInterval(F)});function Ee(l){e.binding_callbacks[l?"unshift":"push"](()=>{h=l,o(4,h)})}function E(){_=this.clientWidth,Y=this.clientHeight,o(0,_),o(1,Y)}function v(l){e.binding_callbacks[l?"unshift":"push"](()=>{h=l,o(4,h)})}return i.$$set=l=>{"clientstyling"in l&&o(12,w=l.clientstyling),"clientstylingurl"in l&&o(13,T=l.clientstylingurl),"width"in l&&o(0,_=l.width),"height"in l&&o(1,Y=l.height),"duration"in l&&o(2,$=l.duration),"assetsurl"in l&&o(3,Te=l.assetsurl),"lang"in l&&o(14,B=l.lang),"translationurl"in l&&o(15,H=l.translationurl),"endpoint"in l&&o(16,ge=l.endpoint),"currency"in l&&o(17,ie=l.currency),"customerid"in l&&o(18,z=l.customerid),"selectedpaymentmethodname"in l&&o(19,ue=l.selectedpaymentmethodname),"mbsource"in l&&o(20,q=l.mbsource),"$$scope"in l&&o(22,g=l.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&2097152&&D(s),i.$$.dirty[0]&16384&&B&&x(),i.$$.dirty[0]&4112&&w&&h&&Xe.setClientStyling(h,w),i.$$.dirty[0]&8208&&T&&h&&Xe.setClientStylingURL(h,T),i.$$.dirty[0]&1048592&&q&&h&&Xe.setStreamStyling(h,`${q}.Style`,se),i.$$.dirty[0]&32768&&H&&p()},[_,Y,$,Te,h,S,ee,oe,a,be,V,_e,w,T,B,H,ge,ie,z,ue,q,s,g,f,Ee,E,v]}class Yt extends e.SvelteComponent{constructor(n){super(),e.init$1(this,n,On,Rn,e.safe_not_equal,{clientstyling:12,clientstylingurl:13,width:0,height:1,duration:2,assetsurl:3,lang:14,translationurl:15,endpoint:16,currency:17,customerid:18,selectedpaymentmethodname:19,mbsource:20},bn,[-1,-1])}get clientstyling(){return this.$$.ctx[12]}set clientstyling(n){this.$$set({clientstyling:n}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),e.flush()}get width(){return this.$$.ctx[0]}set width(n){this.$$set({width:n}),e.flush()}get height(){return this.$$.ctx[1]}set height(n){this.$$set({height:n}),e.flush()}get duration(){return this.$$.ctx[2]}set duration(n){this.$$set({duration:n}),e.flush()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(n){this.$$set({assetsurl:n}),e.flush()}get lang(){return this.$$.ctx[14]}set lang(n){this.$$set({lang:n}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(n){this.$$set({translationurl:n}),e.flush()}get endpoint(){return this.$$.ctx[16]}set endpoint(n){this.$$set({endpoint:n}),e.flush()}get currency(){return this.$$.ctx[17]}set currency(n){this.$$set({currency:n}),e.flush()}get customerid(){return this.$$.ctx[18]}set customerid(n){this.$$set({customerid:n}),e.flush()}get selectedpaymentmethodname(){return this.$$.ctx[19]}set selectedpaymentmethodname(n){this.$$set({selectedpaymentmethodname:n}),e.flush()}get mbsource(){return this.$$.ctx[20]}set mbsource(n){this.$$set({mbsource:n}),e.flush()}}e.create_custom_element(Yt,{clientstyling:{},clientstylingurl:{},width:{},height:{},duration:{},assetsurl:{},lang:{},translationurl:{},endpoint:{},currency:{},customerid:{},selectedpaymentmethodname:{},mbsource:{}},["icon","title","text","button"],[],!0);exports.default=Yt;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var He=Object.defineProperty,je=Object.defineProperties;var We=Object.getOwnPropertyDescriptors;var he=Object.getOwnPropertySymbols;var Fe=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var be=(r,n,t)=>n in r?He(r,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[n]=t,ce=(r,n)=>{for(var t in n||(n={}))Fe.call(n,t)&&be(r,t,n[t]);if(he)for(var t of he(n))Ne.call(n,t)&&be(r,t,n[t]);return r},_e=(r,n)=>je(r,We(n));var re=(r,n,t)=>new Promise((i,a)=>{var o=d=>{try{s(t.next(d))}catch(u){a(u)}},p=d=>{try{s(t.throw(d))}catch(u){a(u)}},s=d=>d.done?i(d.value):Promise.resolve(d.value).then(o,p);s((t=t.apply(r,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierPage-DEYpTaJv.cjs"),ue=require("./CashierHeader-DA_ReO25.cjs");function we(r,n){e.addMessages(r,n)}function Ke(r){e.$locale.set(r)}const ve={en:{otpTitle:"Code verification is required",popupMessage:"Please enter the security code received on your SMS/email address to perform the update.",popupMessageLastWarning:"If the next validation attempt is failed, your transaction will fail and you will be returned back to payment method.",minutes:"minutes",errorHeader:"Error",configError:"Unable to load OTP data. Please try again later.",otpHeading:"Enter OTP",resendOtp:"Resent OTP",submit:"Submit",close:"Close",invalidOtp:"The code you've sent is not valid. Please try again.",accountBlocked:"Too many attempts for OTP. Your account has been blocked for one hour.",submissionError:"Something went wrong. Please try again.",otpExpiredMessage:"Validation code has expired, please request a new one to continue.",timeRemaining:"Code expires in:",selectChannelTitle:"Select verification method",selectChannelMessage:"Choose how you would like to receive your verification code",channelSMS:"SMS",channelEmail:"Email",sendCode:"Send code",waitSeconds:"Please wait for before resending:"},tr:{otpTitle:"Kod doğrulaması gereklidir",popupMessage:"Güncellemeyi gerçekleştirmek için SMS/e-posta adresinize gönderilen güvenlik kodunu girin.",popupMessageLastWarning:"Bir sonraki doğrulama denemesi başarısız olursa, işleminiz başarısız olacak ve ödeme yöntemine geri döndürüleceksiniz.",minutes:"dakika",errorHeader:"Hata",configError:"OTP verileri yüklenemedi. Lütfen daha sonra tekrar deneyin.",otpHeading:"OTP Girin",resendOtp:"OTP'yi Yeniden Gönder",submit:"Gönder",close:"Kapat",invalidOtp:"Gönderdiğiniz kod geçerli değil. Lütfen tekrar deneyin.",accountBlocked:"OTP için çok fazla deneme yapıldı. Hesabınız bir saat süreyle engellenmiştir.",submissionError:"Bir şeyler ters gitti. Lütfen tekrar deneyin.",otpExpiredMessage:"Doğrulama kodunun süresi doldu, devam etmek için lütfen yeni bir kod isteyin.",timeRemaining:"Kodun süresi doluyor:",selectChannelTitle:"Doğrulama yöntemi seçin",selectChannelMessage:"Doğrulama kodunuzu nasıl almak istediğinizi seçin",channelSMS:"SMS kodu",channelEmail:"E-posta kodu",sendCode:"Kodu gönder",waitSeconds:"Tekrar göndermeden önce lütfen bekleyin:"},fr:{otpTitle:"La vérification par code est requise",popupMessage:"Veuillez saisir le code de sécurité reçu par SMS ou par e-mail afin d'effectuer la mise à jour.",popupMessageLastWarning:"Si la prochaine tentative de validation échoue, votre transaction échouera et vous serez redirigé vers le moyen de paiement.",minutes:"minutes",errorHeader:"Erreur",configError:"Impossible de charger les données OTP. Veuillez réessayer plus tard.",otpHeading:"Saisir le code OTP",resendOtp:"Renvoyer le code OTP",submit:"Valider",close:"Fermer",invalidOtp:"Le code que vous avez saisi n'est pas valide. Veuillez réessayer.",accountBlocked:"Trop de tentatives de code OTP. Votre compte a été bloqué pendant une heure.",submissionError:"Une erreur s'est produite. Veuillez réessayer.",otpExpiredMessage:"Le code de validation a expiré. Veuillez en demander un nouveau pour continuer.",timeRemaining:"Le code expire dans :",selectChannelTitle:"Sélectionner la méthode de vérification",selectChannelMessage:"Choisissez comment vous souhaitez recevoir votre code de vérification",channelSMS:"SMS",channelEmail:"E-mail",sendCode:"Envoyer le code",waitSeconds:"Veuillez patienter avant de renvoyer le code :"},da:{otpTitle:"Kodebekræftelse er påkrævet",popupMessage:"Indtast venligst sikkerhedskoden modtaget på din SMS/e-mailadresse for at udføre opdateringen.",popupMessageLastWarning:"Hvis det næste valideringsforsøg mislykkes, vil din transaktion mislykkes, og du vil blive sendt tilbage til betalingsmetoden.",minutes:"minutter",errorHeader:"Fejl",configError:"Kan ikke indlæse OTP-data. Prøv venligst igen senere.",otpHeading:"Indtast OTP",resendOtp:"Send OTP igen",submit:"Indsend",close:"Luk",invalidOtp:"Koden du har sendt er ikke gyldig. Prøv venligst igen.",accountBlocked:"For mange forsøg på OTP. Din konto er blevet blokeret i en time.",submissionError:"Noget gik galt. Prøv venligst igen.",otpExpiredMessage:"Valideringskoden er udløbet. Anmod venligst om en ny for at fortsætte.",timeRemaining:"Koden udløber om:",selectChannelTitle:"Vælg bekræftelsesmetode",selectChannelMessage:"Vælg, hvordan du gerne vil modtage din bekræftelseskode",channelSMS:"SMS",channelEmail:"E-mail",sendCode:"Send kode",waitSeconds:"Vent venligst før genafsendelse:"},de:{otpTitle:"Code-Verifizierung ist erforderlich",popupMessage:"Bitte geben Sie den Sicherheitscode ein, den Sie per SMS/E-Mail erhalten haben, um die Aktualisierung durchzuführen.",popupMessageLastWarning:"Wenn der nächste Validierungsversuch fehlschlägt, schlägt Ihre Transaktion fehl und Sie werden zur Zahlungsmethode zurückgeleitet.",minutes:"Minuten",errorHeader:"Fehler",configError:"OTP-Daten können nicht geladen werden. Bitte versuchen Sie es später erneut.",otpHeading:"OTP eingeben",resendOtp:"OTP erneut senden",submit:"Absenden",close:"Schließen",invalidOtp:"Der von Ihnen gesendete Code ist ungültig. Bitte versuchen Sie es erneut.",accountBlocked:"Zu viele OTP-Versuche. Ihr Konto wurde für eine Stunde gesperrt.",submissionError:"Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",otpExpiredMessage:"Der Validierungscode ist abgelaufen. Bitte fordern Sie einen neuen an, um fortzufahren.",timeRemaining:"Code läuft ab in:",selectChannelTitle:"Verifizierungsmethode auswählen",selectChannelMessage:"Wählen Sie, wie Sie Ihren Verifizierungscode erhalten möchten",channelSMS:"SMS",channelEmail:"E-Mail",sendCode:"Code senden",waitSeconds:"Bitte warten Sie, bevor Sie erneut senden:"},nl:{otpTitle:"Codeverificatie is vereist",popupMessage:"Voer de beveiligingscode in die u via SMS/e-mail heeft ontvangen om de update uit te voeren.",popupMessageLastWarning:"Als de volgende validatiepoging mislukt, zal uw transactie mislukken en wordt u teruggestuurd naar de betaalmethode.",minutes:"minuten",errorHeader:"Fout",configError:"Kan OTP-gegevens niet laden. Probeer het later opnieuw.",otpHeading:"OTP invoeren",resendOtp:"OTP opnieuw verzenden",submit:"Verzenden",close:"Sluiten",invalidOtp:"De code die u heeft verzonden is niet geldig. Probeer het opnieuw.",accountBlocked:"Te veel OTP-pogingen. Uw account is voor één uur geblokkeerd.",submissionError:"Er is iets misgegaan. Probeer het opnieuw.",otpExpiredMessage:"De validatiecode is verlopen. Vraag een nieuwe aan om door te gaan.",timeRemaining:"Code verloopt over:",selectChannelTitle:"Verificatiemethode selecteren",selectChannelMessage:"Kies hoe u uw verificatiecode wilt ontvangen",channelSMS:"SMS",channelEmail:"E-mail",sendCode:"Code verzenden",waitSeconds:"Wacht even voordat u opnieuw verzendt:"}};function qe(r){e.append_styles(r,"svelte-gpy3mu",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}')}function ye(r,n,t){const i=r.slice();return i[69]=n[t],i[70]=n,i[71]=t,i}function Ue(r){let n,t,i,a,o,p,s,d,u,_,b,C,S,h,f,w,y,M=r[19]("channelSMS")+"",j,D,x,T,U,V,N,Y,K,k,E,R,Z,J,Q=r[19]("channelEmail")+"",B,ie,H,A,F,$,ee;function te(c,v){return c[9]?Ze:c[12]?Ge:Ye}let q=te(r),W=q(r),I=r[0]&&Se(r);function ae(c,v){if(c[3]&&c[12])return nt;if(c[12]&&c[4])return tt}let X=ae(r),z=X&&X(r);function le(c,v){if(c[9])return it;if(c[12]&&c[4])return rt}let G=le(r),L=G&&G(r);return{c(){n=e.element("div"),W.c(),t=e.space(),i=e.element("div"),a=e.element("label"),o=e.element("div"),p=e.space(),s=e.element("input"),u=e.space(),_=e.element("div"),b=e.svg_element("svg"),C=e.svg_element("path"),S=e.svg_element("circle"),h=e.svg_element("circle"),f=e.svg_element("circle"),w=e.space(),y=e.element("span"),j=e.text(M),D=e.space(),x=e.element("label"),T=e.element("div"),U=e.space(),V=e.element("input"),Y=e.space(),K=e.element("div"),k=e.svg_element("svg"),E=e.svg_element("rect"),R=e.svg_element("path"),Z=e.space(),J=e.element("span"),B=e.text(Q),ie=e.space(),I&&I.c(),H=e.space(),z&&z.c(),A=e.space(),F=e.element("div"),L&&L.c(),e.attr(n,"class","OtpDescription"),e.attr(o,"class","RadioIndicator"),e.toggle_class(o,"checked",r[0]===r[20].SMS),e.attr(s,"type","radio"),e.attr(s,"name","channel"),s.value=r[20].SMS,s.checked=d=r[0]===r[20].SMS,e.attr(C,"d","M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"),e.attr(S,"cx","9"),e.attr(S,"cy","11"),e.attr(S,"r","0.5"),e.attr(S,"fill","currentColor"),e.attr(h,"cx","12"),e.attr(h,"cy","11"),e.attr(h,"r","0.5"),e.attr(h,"fill","currentColor"),e.attr(f,"cx","15"),e.attr(f,"cy","11"),e.attr(f,"r","0.5"),e.attr(f,"fill","currentColor"),e.attr(b,"xmlns","http://www.w3.org/2000/svg"),e.attr(b,"width","24"),e.attr(b,"height","24"),e.attr(b,"viewBox","0 0 24 24"),e.attr(b,"fill","none"),e.attr(b,"stroke","currentColor"),e.attr(b,"stroke-width","2"),e.attr(b,"stroke-linecap","round"),e.attr(b,"stroke-linejoin","round"),e.attr(_,"class","ChannelContent"),e.attr(a,"class","ChannelCheckbox"),e.toggle_class(a,"selected",r[0]===r[20].SMS),e.attr(T,"class","RadioIndicator"),e.toggle_class(T,"checked",r[0]===r[20].EMAIL),e.attr(V,"type","radio"),e.attr(V,"name","channel"),V.value=r[20].EMAIL,V.checked=N=r[0]===r[20].EMAIL,e.attr(E,"x","2"),e.attr(E,"y","4"),e.attr(E,"width","20"),e.attr(E,"height","16"),e.attr(E,"rx","2"),e.attr(R,"d","m2 7 10 6 10-6"),e.attr(k,"xmlns","http://www.w3.org/2000/svg"),e.attr(k,"width","24"),e.attr(k,"height","24"),e.attr(k,"viewBox","0 0 24 24"),e.attr(k,"fill","none"),e.attr(k,"stroke","currentColor"),e.attr(k,"stroke-width","2"),e.attr(k,"stroke-linecap","round"),e.attr(k,"stroke-linejoin","round"),e.attr(K,"class","ChannelContent"),e.attr(x,"class","ChannelCheckbox"),e.toggle_class(x,"selected",r[0]===r[20].EMAIL),e.attr(i,"class","ChannelSelection"),e.attr(F,"class","OtpActionButtons")},m(c,v){e.insert(c,n,v),W.m(n,null),e.insert(c,t,v),e.insert(c,i,v),e.append(i,a),e.append(a,o),e.append(a,p),e.append(a,s),e.append(a,u),e.append(a,_),e.append(_,b),e.append(b,C),e.append(b,S),e.append(b,h),e.append(b,f),e.append(_,w),e.append(_,y),e.append(y,j),e.append(i,D),e.append(i,x),e.append(x,T),e.append(x,U),e.append(x,V),e.append(x,Y),e.append(x,K),e.append(K,k),e.append(k,E),e.append(k,R),e.append(K,Z),e.append(K,J),e.append(J,B),e.insert(c,ie,v),I&&I.m(c,v),e.insert(c,H,v),z&&z.m(c,v),e.insert(c,A,v),e.insert(c,F,v),L&&L.m(F,null),$||(ee=[e.listen(s,"change",r[39]),e.listen(V,"change",r[40])],$=!0)},p(c,v){q===(q=te(c))&&W?W.p(c,v):(W.d(1),W=q(c),W&&(W.c(),W.m(n,null))),v[0]&1048577&&e.toggle_class(o,"checked",c[0]===c[20].SMS),v[0]&1&&d!==(d=c[0]===c[20].SMS)&&(s.checked=d),v[0]&524288&&M!==(M=c[19]("channelSMS")+"")&&e.set_data(j,M),v[0]&1048577&&e.toggle_class(a,"selected",c[0]===c[20].SMS),v[0]&1048577&&e.toggle_class(T,"checked",c[0]===c[20].EMAIL),v[0]&1&&N!==(N=c[0]===c[20].EMAIL)&&(V.checked=N),v[0]&524288&&Q!==(Q=c[19]("channelEmail")+"")&&e.set_data(B,Q),v[0]&1048577&&e.toggle_class(x,"selected",c[0]===c[20].EMAIL),c[0]?I?I.p(c,v):(I=Se(c),I.c(),I.m(H.parentNode,H)):I&&(I.d(1),I=null),X===(X=ae(c))&&z?z.p(c,v):(z&&z.d(1),z=X&&X(c),z&&(z.c(),z.m(A.parentNode,A))),G===(G=le(c))&&L?L.p(c,v):(L&&L.d(1),L=G&&G(c),L&&(L.c(),L.m(F,null)))},d(c){c&&(e.detach(n),e.detach(t),e.detach(i),e.detach(ie),e.detach(H),e.detach(A),e.detach(F)),W.d(),I&&I.d(c),z&&z.d(c),L&&L.d(),$=!1,e.run_all(ee)}}}function Xe(r){let n,t,i,a,o,p,s=r[19]("errorHeader")+"",d,u,_,b,C,S,h=r[19]("close")+"",f,w,y;return{c(){n=e.element("div"),t=e.element("div"),i=e.svg_element("svg"),a=e.svg_element("path"),o=e.space(),p=e.element("h2"),d=e.text(s),u=e.space(),_=e.element("p"),b=e.text(r[8]),C=e.space(),S=e.element("button"),f=e.text(h),e.attr(a,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),e.attr(i,"xmlns","http://www.w3.org/2000/svg"),e.attr(i,"viewBox","0 0 512 512"),e.attr(t,"class","OtpErrorHeader"),e.attr(S,"class","OtpButton error"),e.attr(n,"class","OtpError")},m(M,j){e.insert(M,n,j),e.append(n,t),e.append(t,i),e.append(i,a),e.append(t,o),e.append(t,p),e.append(p,d),e.append(n,u),e.append(n,_),e.append(_,b),e.append(n,C),e.append(n,S),e.append(S,f),w||(y=e.listen(S,"click",r[28]),w=!0)},p(M,j){j[0]&524288&&s!==(s=M[19]("errorHeader")+"")&&e.set_data(d,s),j[0]&256&&e.set_data(b,M[8]),j[0]&524288&&h!==(h=M[19]("close")+"")&&e.set_data(f,h)},d(M){M&&e.detach(n),w=!1,y()}}}function Ge(r){let n,t,i,a;function o(u,_){return u[10]?Qe:Je}let p=o(r),s=p(r),d=r[6]&&ke(r);return{c(){n=e.element("p"),s.c(),i=e.space(),d&&d.c(),a=e.empty(),e.attr(n,"class",t=r[10]?"LastWarningMessage":"")},m(u,_){e.insert(u,n,_),s.m(n,null),e.insert(u,i,_),d&&d.m(u,_),e.insert(u,a,_)},p(u,_){p===(p=o(u))&&s?s.p(u,_):(s.d(1),s=p(u),s&&(s.c(),s.m(n,null))),_[0]&1024&&t!==(t=u[10]?"LastWarningMessage":"")&&e.attr(n,"class",t),u[6]?d?d.p(u,_):(d=ke(u),d.c(),d.m(a.parentNode,a)):d&&(d.d(1),d=null)},d(u){u&&(e.detach(n),e.detach(i),e.detach(a)),s.d(),d&&d.d(u)}}}function Ye(r){let n,t=(r[19]("selectChannelMessage")||"Selectează metoda prin care vrei să primești codul OTP")+"",i;return{c(){n=e.element("p"),i=e.text(t)},m(a,o){e.insert(a,n,o),e.append(n,i)},p(a,o){o[0]&524288&&t!==(t=(a[19]("selectChannelMessage")||"Selectează metoda prin care vrei să primești codul OTP")+"")&&e.set_data(i,t)},d(a){a&&e.detach(n)}}}function Ze(r){let n,t=r[19]("otpExpiredMessage")+"",i;return{c(){n=e.element("p"),i=e.text(t),e.attr(n,"class","OtpNoticeMessage"),e.attr(n,"role","alert")},m(a,o){e.insert(a,n,o),e.append(n,i)},p(a,o){o[0]&524288&&t!==(t=a[19]("otpExpiredMessage")+"")&&e.set_data(i,t)},d(a){a&&e.detach(n)}}}function Je(r){let n=r[19]("popupMessage")+"",t;return{c(){t=e.text(n)},m(i,a){e.insert(i,t,a)},p(i,a){a[0]&524288&&n!==(n=i[19]("popupMessage")+"")&&e.set_data(t,n)},d(i){i&&e.detach(t)}}}function Qe(r){let n=r[19]("popupMessageLastWarning")+"",t;return{c(){t=e.text(n)},m(i,a){e.insert(i,t,a)},p(i,a){a[0]&524288&&n!==(n=i[19]("popupMessageLastWarning")+"")&&e.set_data(t,n)},d(i){i&&e.detach(t)}}}function ke(r){let n,t;return{c(){n=e.element("p"),t=e.text(r[8]),e.attr(n,"class","OtpErrorMessage"),e.attr(n,"role","alert")},m(i,a){e.insert(i,n,a),e.append(n,t)},p(i,a){a[0]&256&&e.set_data(t,i[8])},d(i){i&&e.detach(n)}}}function Se(r){let n,t,i,a;function o(d,u){return d[17]>0?et:$e}let p=o(r),s=p(r);return{c(){n=e.element("button"),s.c(),e.attr(n,"class","OtpButton"),n.disabled=t=!r[18],e.toggle_class(n,"disabled",!r[18]||r[16])},m(d,u){e.insert(d,n,u),s.m(n,null),i||(a=e.listen(n,"click",r[22]),i=!0)},p(d,u){p===(p=o(d))&&s?s.p(d,u):(s.d(1),s=p(d),s&&(s.c(),s.m(n,null))),u[0]&262144&&t!==(t=!d[18])&&(n.disabled=t),u[0]&327680&&e.toggle_class(n,"disabled",!d[18]||d[16])},d(d){d&&e.detach(n),s.d(),i=!1,a()}}}function $e(r){let n=r[19]("sendCode")+"",t;return{c(){t=e.text(n)},m(i,a){e.insert(i,t,a)},p(i,a){a[0]&524288&&n!==(n=i[19]("sendCode")+"")&&e.set_data(t,n)},d(i){i&&e.detach(t)}}}function et(r){let n=r[19]("waitSeconds")+"",t,i,a,o;return{c(){t=e.text(n),i=e.text(" ("),a=e.text(r[17]),o=e.text("s)")},m(p,s){e.insert(p,t,s),e.insert(p,i,s),e.insert(p,a,s),e.insert(p,o,s)},p(p,s){s[0]&524288&&n!==(n=p[19]("waitSeconds")+"")&&e.set_data(t,n),s[0]&131072&&e.set_data(a,p[17])},d(p){p&&(e.detach(t),e.detach(i),e.detach(a),e.detach(o))}}}function tt(r){let n,t,i=r[19]("timeRemaining")+"",a,o,p=r[23](r[5])+"",s,d,u=r[19]("minutes")+"",_,b,C,S=e.ensure_array_like(r[2]),h=[];for(let f=0;f<S.length;f+=1)h[f]=Ce(ye(r,S,f));return{c(){n=e.element("div"),t=e.element("div"),a=e.text(i),o=e.space(),s=e.text(p),d=e.space(),_=e.text(u),b=e.space(),C=e.element("div");for(let f=0;f<h.length;f+=1)h[f].c();e.attr(t,"class","OtpTimer"),e.attr(C,"class","OtpField"),e.attr(n,"class","OtpFieldWrapper")},m(f,w){e.insert(f,n,w),e.append(n,t),e.append(t,a),e.append(t,o),e.append(t,s),e.append(t,d),e.append(t,_),e.append(n,b),e.append(n,C);for(let y=0;y<h.length;y+=1)h[y]&&h[y].m(C,null)},p(f,w){if(w[0]&524288&&i!==(i=f[19]("timeRemaining")+"")&&e.set_data(a,i),w[0]&32&&p!==(p=f[23](f[5])+"")&&e.set_data(s,p),w[0]&524288&&u!==(u=f[19]("minutes")+"")&&e.set_data(_,u),w[0]&117458964){S=e.ensure_array_like(f[2]);let y;for(y=0;y<S.length;y+=1){const M=ye(f,S,y);h[y]?h[y].p(M,w):(h[y]=Ce(M),h[y].c(),h[y].m(C,null))}for(;y<h.length;y+=1)h[y].d(1);h.length=S.length}},d(f){f&&e.detach(n),e.destroy_each(h,f)}}}function nt(r){let n;return{c(){n=e.element("div"),n.innerHTML='<span class="OtpLoader"></span>',e.attr(n,"class","OtpLoaderContainer")},m(t,i){e.insert(t,n,i)},p:e.noop,d(t){t&&e.detach(n)}}}function Ce(r){let n,t,i,a=r[71],o,p;const s=()=>r[41](n,a),d=()=>r[41](null,a);function u(...b){return r[42](r[71],...b)}function _(...b){return r[43](r[71],...b)}return{c(){n=e.element("input"),e.attr(n,"id",`otp-input-${r[71]}`),e.attr(n,"type","text"),e.attr(n,"class",t=`otp-box ${r[4].inputLength%2===0&&r[71]===r[4].inputLength/2-1?"space":""}`),e.attr(n,"maxlength",1),n.value=i=r[69],e.attr(n,"inputmode","numeric"),n.disabled=r[11],e.attr(n,"autocomplete","off")},m(b,C){e.insert(b,n,C),s(),o||(p=[e.listen(n,"input",u),e.listen(n,"keydown",_),e.listen(n,"paste",r[24])],o=!0)},p(b,C){r=b,C[0]&16&&t!==(t=`otp-box ${r[4].inputLength%2===0&&r[71]===r[4].inputLength/2-1?"space":""}`)&&e.attr(n,"class",t),C[0]&4&&i!==(i=r[69])&&n.value!==i&&(n.value=i),C[0]&2048&&(n.disabled=r[11]),a!==r[71]&&(d(),a=r[71],s())},d(b){b&&e.detach(n),d(),o=!1,e.run_all(p)}}}function rt(r){let n,t=r[19]("submit")+"",i,a,o,p;return{c(){n=e.element("button"),i=e.text(t),e.attr(n,"class","OtpButton"),n.disabled=a=r[2].join("").length!==r[4].inputLength||r[13]||r[15]},m(s,d){e.insert(s,n,d),e.append(n,i),o||(p=e.listen(n,"click",r[29]),o=!0)},p(s,d){d[0]&524288&&t!==(t=s[19]("submit")+"")&&e.set_data(i,t),d[0]&40980&&a!==(a=s[2].join("").length!==s[4].inputLength||s[13]||s[15])&&(n.disabled=a)},d(s){s&&e.detach(n),o=!1,p()}}}function it(r){let n,t=r[19]("resendOtp")+"",i,a,o;return{c(){n=e.element("button"),i=e.text(t),e.attr(n,"class","OtpButton")},m(p,s){e.insert(p,n,s),e.append(n,i),a||(o=e.listen(n,"click",r[27]),a=!0)},p(p,s){s[0]&524288&&t!==(t=p[19]("resendOtp")+"")&&e.set_data(i,t)},d(p){p&&e.detach(n),a=!1,o()}}}function at(r){let n;function t(o,p){return o[7]?Xe:Ue}let i=t(r),a=i(r);return{c(){n=e.element("div"),a.c(),e.attr(n,"class","OtpContent")},m(o,p){e.insert(o,n,p),a.m(n,null),r[44](n)},p(o,p){i===(i=t(o))&&a?a.p(o,p):(a.d(1),a=i(o),a&&(a.c(),a.m(n,null)))},i:e.noop,o:e.noop,d(o){o&&e.detach(n),a.d(),r[44](null)}}}function lt(r,n,t){let i,a,o;e.component_subscribe(r,e.$format,l=>t(19,o=l));let{clientstyling:p=""}=n,{clientstylingurl:s=""}=n,{mbsource:d}=n,{lang:u="en"}=n,{endpoint:_}=n,{session:b}=n,{translationurl:C}=n,{templateid:S}=n,h=[],f=!0,w=null,y=0,M="",j="",D=!1,x=!1,T="",U="",V="",N=!1,Y=!1,K=!1,k="",E={},R=null,Z=!1,J=!1,Q="",B,ie,H=[],A=null,F=0,$=!1,ee=!1;const te={SMS:"sms",EMAIL:"email"},q={MAX_ATTEMPTS_EXCEEDED:"gm.twofa.token_max_attempts_exceeded",INTERNAL_SERVER_ERROR:"gm.multifactorauthentication.internal_server_error",MAX_INVALIDATE:"gm.multifactorauthentication.challenge_internal_server_error"};Object.keys(ve).forEach(l=>{we(l,ve[l])});const W=()=>{Ke(u)},I=()=>{fetch(C).then(l=>l.json()).then(l=>{Object.keys(l).forEach(m=>{we(m,l[m])})}).catch(l=>{console.log(l)})},ae=l=>re(this,null,function*(){var m;if((m=l.detail)!=null&&m["x-step-up-required"]){if(t(7,x=!1),t(6,D=!1),t(8,T=""),U=l.detail["x-step-up-token"],V=l.detail.flow,!U||!V){t(3,f=!1),t(7,x=!0),t(8,T=o("configError"));return}t(12,Z=!1),t(3,f=!1)}}),X=()=>{A&&(clearInterval(A),A=null),R&&(clearInterval(R),R=null),t(6,D=!1),t(7,x=!1),t(8,T=""),t(10,Y=!1),t(2,h=[]),t(4,w=null),t(3,f=!0),t(0,k=""),t(12,Z=!1),t(38,E={})},z=()=>{X()},le=()=>new Promise((l,m)=>{const g=new URL(`${_}/api/pam/v1/mfa/challenge/${U}`),O=new Headers;O.append("accept","application/json"),O.append("Content-Type","application/json"),O.append("X-SessionId",`${b}`),t(16,ee=!0);const ne={method:"PATCH",headers:O,body:JSON.stringify({channel:k,templateId:S})};fetch(g,ne).then(ge=>ge.json()).then(()=>{t(15,$=!1),v(),se(),l()}).catch(ge=>{m()})}),G=()=>{R&&clearInterval(R),R=setInterval(()=>{const l=ce({},E);let m=!1;Object.keys(l).forEach(g=>{l[g]>0&&(l[g]--,m=!0)}),t(38,E=l),!m&&R&&(clearInterval(R),R=null)},1e3)},L=l=>{t(0,k=l)},c=()=>re(this,null,function*(){if(!(!k||E[k]&&E[k]>0)){t(3,f=!0),S&&S.startsWith("2fa-")&&t(30,S=`2fa-${k}`);try{yield le(),yield pe(),t(38,E=_e(ce({},E),{[k]:30})),G(),t(12,Z=!0),v(),se()}catch(l){console.error("Error submitting channel:",l),t(6,D=!0),t(8,T=o("submissionError"))}finally{t(3,f=!1)}}}),v=()=>{const l=new Date(M),m=new Date(j),g=new Date,O=m.getTime()-g.getTime();F=l.getTime()-O;const P=Date.now(),ne=Math.max(0,Math.floor((F-P)/1e3));t(5,y=ne)},se=()=>{A&&clearInterval(A),A=setInterval(()=>{const l=Date.now(),m=Math.max(0,Math.floor((F-l)/1e3));t(5,y=m),t(11,K=m<=0),m<=0&&(clearInterval(A),A=null,t(9,N=!0),t(6,D=!1),t(10,Y=!1))},1e3)},Oe=l=>{const m=Math.floor(l/60),g=l%60;return`${m.toString().padStart(2,"0")}:${g.toString().padStart(2,"0")}`},oe=(l,m)=>{const g=[...h];g[l]=m.toUpperCase(),t(2,h=g),g.join("")!==Q&&t(13,J=!1)},Me=l=>{var O,P,ne;l.preventDefault();const g=(((P=(O=l.clipboardData)==null?void 0:O.getData("text"))==null?void 0:P.trim())||"").slice(0,w.inputLength).split("");t(2,h=[...g,...Array(w.inputLength-g.length).fill("")]),(ne=H[g.length])==null||ne.focus(),g.length===w.inputLength&&de()},fe=(l,m)=>{const g=l.target,O=g.value;if(/^[a-z0-9]$/i.test(O)){oe(m,O);const P=H[m+1];P==null||P.focus()}g.value=""},me=(l,m)=>{const g=l.key,O=l.ctrlKey||l.metaKey;if(/^[a-z0-9]$/i.test(g)){if(O&&g.toLowerCase()==="v")return;l.preventDefault(),oe(m,g);const P=H[m+1];P==null||P.focus()}else if(g==="Backspace"){l.preventDefault(),h[m]!==""&&oe(m,"");const P=H[m-1];P==null||P.focus()}else g==="Enter"&&(l.preventDefault(),de())},Te=()=>{V=="stateful"&&(le(),t(9,N=!1));const l=new CustomEvent("otpResendRequested");window.dispatchEvent(l)},Le=l=>{window.dispatchEvent(new CustomEvent("otpSubmitted",{detail:{code:l,maxAttempts:w.maxValidationAttempts,validatedAttempts:w.numberOfValidateAttempts}}))},ze=l=>re(this,null,function*(){const m=new URL(`/api/nwa/api/v1/mfa/challenge/${U}/validate`,_);m.searchParams.append("input",l);try{const g=yield fetch(m.href,{method:"POST"});if(g.status===200){Pe();return}const O=yield g.json();throw new Error(O.message)}catch(g){if(yield pe(),g.message===q.INTERNAL_SERVER_ERROR){if(w.numberOfValidateAttempts===w.maxValidationAttempts-1){window.dispatchEvent(new CustomEvent("otpSetTimeout")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("accountBlocked")}},window.location.href),window.dispatchEvent(new CustomEvent("manualClosePopup"));return}t(6,D=!0),t(8,T=o("invalidOtp")),pe();return}g.message===q.MAX_INVALIDATE&&(t(6,D=!0),t(8,T=o("invalidOtp"))),g.details===q.MAX_ATTEMPTS_EXCEEDED&&t(15,$=!0),console.error("OTP submission failed:",g),t(6,D=!0),t(8,T=o("submissionError"))}finally{t(3,f=!1)}}),Pe=()=>{window.dispatchEvent(new CustomEvent("otpSuccess",{detail:{message:"User successfully authenticated"}}))},xe=()=>{window.dispatchEvent(new CustomEvent("manualClosePopup"))},de=()=>re(this,null,function*(){if(h.join("").length!==w.inputLength){t(6,D=!0),t(8,T=o("invalidOtp"));return}const l=h.join("");t(13,J=!0),Q=l,t(3,f=!0),t(6,D=!1),t(8,T=""),V==="stateless"&&Le(l),V==="stateful"&&(yield ze(l))}),pe=()=>re(this,null,function*(){if(_)try{t(3,f=!0);const l=new URL(`/api/nwa/api/v1/mfa/challenge/${U}/config`,_),m=yield fetch(l.href),g=yield m.json();if(m.ok)t(4,w=g),t(2,h=Array(w.inputLength).fill("")),t(9,N=!1),M=w.expirationTime,j=w.serverTime,w.numberOfValidateAttempts!==0&&(t(6,D=!0),t(8,T=o("invalidOtp"))),w.numberOfValidateAttempts===w.maxValidationAttempts-1&&t(10,Y=!0),t(3,f=!1),v(),se(),t(16,ee=!1);else if(g&&g.details===q.MAX_ATTEMPTS_EXCEEDED)window.dispatchEvent(new CustomEvent("manualClosePopup"));else{const O=g&&g.message||`Failed to load config. Status: ${m.status}`;throw new Error(O)}}catch(l){t(3,f=!1),t(7,x=!0),t(8,T=o("configError")),window.dispatchEvent(new CustomEvent("2fa-loading",{detail:{isLoading:!1}})),console.error("Error loading 2FA config:",l)}});e.onMount(()=>(window.addEventListener("stepUpAuthRequired",ae,!1),window.addEventListener("closePopup",z,!1),()=>{window.removeEventListener("stepUpAuthRequired",ae),window.removeEventListener("closePopup",z,!1),A&&clearInterval(A),R&&clearInterval(R)}));const Ae=()=>L(te.SMS),Ie=()=>L(te.EMAIL);function Re(l,m){e.binding_callbacks[l?"unshift":"push"](()=>{H[m]=l,t(14,H)})}const De=(l,m)=>fe(m,l),Ve=(l,m)=>me(m,l);function Be(l){e.binding_callbacks[l?"unshift":"push"](()=>{B=l,t(1,B)})}return r.$$set=l=>{"clientstyling"in l&&t(31,p=l.clientstyling),"clientstylingurl"in l&&t(32,s=l.clientstylingurl),"mbsource"in l&&t(33,d=l.mbsource),"lang"in l&&t(34,u=l.lang),"endpoint"in l&&t(35,_=l.endpoint),"session"in l&&t(36,b=l.session),"translationurl"in l&&t(37,C=l.translationurl),"templateid"in l&&t(30,S=l.templateid)},r.$$.update=()=>{r.$$.dirty[0]&2|r.$$.dirty[1]&1&&p&&B&&ue.setClientStyling(B,p),r.$$.dirty[0]&2|r.$$.dirty[1]&2&&s&&B&&ue.setClientStylingURL(B,s),r.$$.dirty[0]&2|r.$$.dirty[1]&4&&d&&B&&ue.setStreamStyling(B,`${d}.Style`,ie),r.$$.dirty[1]&8&&u&&W(),r.$$.dirty[1]&72&&u&&C&&I(),r.$$.dirty[0]&1|r.$$.dirty[1]&128&&t(18,i=k&&(!E[k]||E[k]===0)),r.$$.dirty[0]&1|r.$$.dirty[1]&128&&t(17,a=k&&E[k]||0)},[k,B,h,f,w,y,D,x,T,N,Y,K,Z,J,H,$,ee,a,i,o,te,L,c,Oe,Me,fe,me,Te,xe,de,S,p,s,d,u,_,b,C,E,Ae,Ie,Re,De,Ve,Be]}class Ee extends e.SvelteComponent{constructor(n){super(),e.init$1(this,n,lt,at,e.safe_not_equal,{clientstyling:31,clientstylingurl:32,mbsource:33,lang:34,endpoint:35,session:36,translationurl:37,templateid:30},qe,[-1,-1,-1])}get clientstyling(){return this.$$.ctx[31]}set clientstyling(n){this.$$set({clientstyling:n}),e.flush()}get clientstylingurl(){return this.$$.ctx[32]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),e.flush()}get mbsource(){return this.$$.ctx[33]}set mbsource(n){this.$$set({mbsource:n}),e.flush()}get lang(){return this.$$.ctx[34]}set lang(n){this.$$set({lang:n}),e.flush()}get endpoint(){return this.$$.ctx[35]}set endpoint(n){this.$$set({endpoint:n}),e.flush()}get session(){return this.$$.ctx[36]}set session(n){this.$$set({session:n}),e.flush()}get translationurl(){return this.$$.ctx[37]}set translationurl(n){this.$$set({translationurl:n}),e.flush()}get templateid(){return this.$$.ctx[30]}set templateid(n){this.$$set({templateid:n}),e.flush()}}e.create_custom_element(Ee,{clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},endpoint:{},session:{},translationurl:{},templateid:{}},[],[],!0);exports.default=Ee;
|