@everymatrix/cashier-page-nd 1.69.94 → 1.69.96
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-BdYVF6QV.js → CashierCarousel-BJBoHcOi.js} +771 -771
- package/components/{CashierCarousel-P8JOEAdW.js → CashierCarousel-C-1lJxZx.js} +781 -781
- package/components/CashierCarousel-CnirEVww.cjs +23 -0
- package/components/{CashierError-Dc97Q3ia.js → CashierError-C-D4PFqm.js} +1 -1
- package/components/{CashierError-BHR0wCX8.cjs → CashierError-C8U_KORa.cjs} +1 -1
- package/components/{CashierError-CV3sSdTA.js → CashierError-DXtcdjdr.js} +1 -1
- package/components/{CashierHeader-Dq5rXKEy.cjs → CashierHeader-B0zyFjC3.cjs} +1 -1
- package/components/{CashierHeader-CNnGcxHX.js → CashierHeader-BwAbSpJS.js} +1 -1
- package/components/{CashierHeader-BvRwyGj-.js → CashierHeader-D_cWDFA7.js} +1 -1
- package/components/{CashierIframeRedirect-CyxYgQXl.js → CashierIframeRedirect-B1BJpKCB.js} +3 -3
- package/components/{CashierIframeRedirect-Tyfog0B-.js → CashierIframeRedirect-BHjA770O.js} +3 -3
- package/components/{CashierIframeRedirect-C7g6aYiD.cjs → CashierIframeRedirect-q6fWJWU-.cjs} +1 -1
- package/components/{CashierMethodDetails-BQQkicL5.js → CashierMethodDetails-BOgl_IX1.js} +524 -524
- package/components/{CashierMethodDetails-Cw3bppxA.js → CashierMethodDetails-CCf6IaU-.js} +504 -504
- package/components/{CashierMethodDetails-vl9WpFW-.cjs → CashierMethodDetails-Cq_ccC1E.cjs} +4 -4
- package/components/{CashierMethodsList-Bi29u-3T.js → CashierMethodsList-CZtLFkxq.js} +2 -2
- package/components/{CashierMethodsList-MWY8DbQT.cjs → CashierMethodsList-hGTvnNKE.cjs} +1 -1
- package/components/{CashierMethodsList-Dnurtmpq.js → CashierMethodsList-pBTAlRCN.js} +2 -2
- package/components/CashierModal-BepKrwPc.cjs +1 -0
- package/components/CashierModal-Bezw_q_p.js +237 -0
- package/components/CashierModal-BkWWCFGy.js +237 -0
- package/components/{CashierNotifications-C7E0y8oy.js → CashierNotifications-BKQ84v7D.js} +1 -1
- package/components/{CashierNotifications-CV5fK-_h.js → CashierNotifications-BLOBfSE-.js} +1 -1
- package/components/{CashierNotifications-B1_IvWSx.cjs → CashierNotifications-BiaTO8zv.cjs} +1 -1
- package/components/{CashierPage-CPBTVmCF.js → CashierPage-BVogJQJz.js} +673 -610
- package/components/{CashierPage-TX2t-xAH.js → CashierPage-C-qW-3WO.js} +672 -609
- package/components/CashierPage-_oClXFYx.cjs +1 -0
- package/components/CashierReceiptPage-BY8iDo7k.cjs +26 -0
- package/components/{CashierReceiptPage-CtOCAaLC.js → CashierReceiptPage-C4LnHWVS.js} +541 -564
- package/components/{CashierReceiptPage-C6wwbN8P.js → CashierReceiptPage-pX5ZB8GS.js} +535 -558
- package/components/{CashierSessionExpirationModal-CH7OH5eP.js → CashierSessionExpirationModal-DCwaZyoe.js} +148 -135
- package/components/{CashierSessionExpirationModal-DZ6cbZMo.js → CashierSessionExpirationModal-DROX_8ms.js} +173 -160
- package/components/CashierSessionExpirationModal-Diatc2g_.cjs +2 -0
- package/components/{CashierSpinner-CyPuIakf.js → CashierSpinner-B6hRv5UE.js} +1 -1
- package/components/{CashierSpinner-DN8Xti3l.js → CashierSpinner-D9V28sna.js} +1 -1
- package/components/{CashierSpinner-CL3BxNa3.cjs → CashierSpinner-vepcrAEk.cjs} +1 -1
- package/components/CashierTransactionHistory-CkMYM-iN.cjs +1 -0
- package/components/{CashierTransactionHistory-DUJ7uEPo.js → CashierTransactionHistory-D8zsi5NJ.js} +27 -27
- package/components/{CashierTransactionHistory-D7x8iV5o.js → CashierTransactionHistory-DW8O1MRc.js} +27 -27
- package/components/CashierVerifications-Bk77XvWp.cjs +1 -0
- package/components/{CashierVerifications-D98F06Sz.js → CashierVerifications-Clboalpm.js} +98 -98
- package/components/{CashierVerifications-dsnZ9UGl.js → CashierVerifications-Ct9t3u-_.js} +128 -128
- package/components/{TxnStatusIcon-Bjzryymo.js → TxnStatusIcon-BbwRTWeF.js} +1 -1
- package/components/{TxnStatusIcon-DKrjQDkn.cjs → TxnStatusIcon-DAT0GdaB.cjs} +1 -1
- package/components/{TxnStatusIcon-BnNOvKNP.js → TxnStatusIcon-YMvAqmkU.js} +1 -1
- package/components/{TxnTypeIcons-DUFNEYZT.cjs → TxnTypeIcons-B9WBEMaU.cjs} +1 -1
- package/components/{TxnTypeIcons-CdJDWKBc.js → TxnTypeIcons-CGI4ZYMR.js} +1 -1
- package/components/{TxnTypeIcons-CgvUMv-Q.js → TxnTypeIcons-DaU-Md0s.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierCarousel-HRUJt7XK.cjs +0 -23
- package/components/CashierModal-7LneBvzD.cjs +0 -1
- package/components/CashierModal-ChoubLYy.js +0 -268
- package/components/CashierModal-DCTbhFou.js +0 -268
- package/components/CashierPage-DOxt1V6T.cjs +0 -1
- package/components/CashierReceiptPage-BdQL3__D.cjs +0 -26
- package/components/CashierSessionExpirationModal-wp_kWVca.cjs +0 -2
- package/components/CashierTransactionHistory-DbJgP2OJ.cjs +0 -1
- package/components/CashierVerifications-BzbSPCl7.cjs +0 -1
package/components/{CashierTransactionHistory-D7x8iV5o.js → CashierTransactionHistory-DW8O1MRc.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as it, $ as lt, i as at, S as nt, b as rt, s as ot, f as P, c as ut, e as z, t as Y, g as N,
|
|
2
|
-
import { f as Pe } from "./
|
|
3
|
-
import { d as se } from "./CashierMethodDetails-
|
|
1
|
+
import { a as it, $ as lt, i as at, S as nt, b as rt, s as ot, f as P, c as ut, e as z, t as Y, g as N, Z as he, _ as ve, k as j, m as v, o as m, p as ct, q as mt, R as ee, T as ke, v as S, V as te, l as r, n as R, w as T, G as L, A as $, y as dt, a4 as ft, K as Ke, a5 as Qe, x as Se, r as $e, a6 as be, z as Ie, P as Ce, a7 as et, a8 as tt, a9 as st, B as pt, C as ht, D as vt, E as gt, F as xt } from "./CashierCarousel-BJBoHcOi.js";
|
|
2
|
+
import { f as Pe } from "./CashierSessionExpirationModal-DCwaZyoe.js";
|
|
3
|
+
import { d as se } from "./CashierMethodDetails-CCf6IaU-.js";
|
|
4
4
|
import "../stencil/ui-image-DIEeZy5u.js";
|
|
5
|
-
import { T as yt } from "./TxnTypeIcons-
|
|
6
|
-
import { T as _t } from "./TxnStatusIcon-
|
|
5
|
+
import { T as yt } from "./TxnTypeIcons-DaU-Md0s.js";
|
|
6
|
+
import { T as _t } from "./TxnStatusIcon-YMvAqmkU.js";
|
|
7
7
|
at({
|
|
8
8
|
fallbackLocale: "en"
|
|
9
9
|
});
|
|
@@ -143,7 +143,7 @@ function bt(i) {
|
|
|
143
143
|
i[7]
|
|
144
144
|
), b = [];
|
|
145
145
|
for (let p = 0; p < M.length; p += 1)
|
|
146
|
-
b[p] =
|
|
146
|
+
b[p] = Je(Me(i, M, p));
|
|
147
147
|
const ie = (p) => Y(b[p], 1, 1, () => {
|
|
148
148
|
b[p] = null;
|
|
149
149
|
});
|
|
@@ -202,7 +202,7 @@ function bt(i) {
|
|
|
202
202
|
let h;
|
|
203
203
|
for (h = 0; h < M.length; h += 1) {
|
|
204
204
|
const I = Me(p, M, h);
|
|
205
|
-
b[h] ? (b[h].p(I, C), N(b[h], 1)) : (b[h] =
|
|
205
|
+
b[h] ? (b[h].p(I, C), N(b[h], 1)) : (b[h] = Je(I), b[h].c(), N(b[h], 1), b[h].m(x, null));
|
|
206
206
|
}
|
|
207
207
|
for (he(), h = M.length; h < b.length; h += 1)
|
|
208
208
|
ie(h);
|
|
@@ -253,7 +253,7 @@ function Ue(i) {
|
|
|
253
253
|
i[12]("copyTransactionId") + "") && S(t, s);
|
|
254
254
|
},
|
|
255
255
|
i(o) {
|
|
256
|
-
u || (o &&
|
|
256
|
+
u || (o && Ke(() => {
|
|
257
257
|
u && (c && c.end(1), l = Qe(e, Pe, { duration: 100 }), l.start());
|
|
258
258
|
}), u = !0);
|
|
259
259
|
},
|
|
@@ -678,10 +678,10 @@ function Be(i) {
|
|
|
678
678
|
) + "", h, I, G, X, le = (
|
|
679
679
|
/*$_*/
|
|
680
680
|
i[12]("transactionPaymentMethodTitle") + ""
|
|
681
|
-
),
|
|
681
|
+
), Z, B, de, J, oe = (
|
|
682
682
|
/*transaction*/
|
|
683
683
|
i[42].PaymentMethod + ""
|
|
684
|
-
), fe, ge,
|
|
684
|
+
), fe, ge, K, ae, Q = (
|
|
685
685
|
/*$_*/
|
|
686
686
|
i[12]("transactionCodeTitle") + ""
|
|
687
687
|
), ue, xe, ye, W, ce, me = (
|
|
@@ -696,13 +696,13 @@ function Be(i) {
|
|
|
696
696
|
);
|
|
697
697
|
return {
|
|
698
698
|
c() {
|
|
699
|
-
e = v("tr"), s = v("td"), t = v("div"), l = v("div"), c = v("div"), u = v("span"), a = T(o), g = T(" :"), _ = R(), f = v("span"), x = T(d), y = R(), w = v("div"), A = v("span"), M = T(k), b = T(" :"), ie = R(), p = v("span"), h = T(C), I = R(), G = v("div"), X = v("span"),
|
|
700
|
-
i[42].Code), m(W, "class", "DetailsValue CopyCode svelte-1xsmrqu"), m(
|
|
699
|
+
e = v("tr"), s = v("td"), t = v("div"), l = v("div"), c = v("div"), u = v("span"), a = T(o), g = T(" :"), _ = R(), f = v("span"), x = T(d), y = R(), w = v("div"), A = v("span"), M = T(k), b = T(" :"), ie = R(), p = v("span"), h = T(C), I = R(), G = v("div"), X = v("span"), Z = T(le), B = T(" :"), de = R(), J = v("span"), fe = T(oe), ge = R(), K = v("div"), ae = v("span"), ue = T(Q), xe = T(" :"), ye = R(), W = v("span"), ce = v("span"), n = T(me), q = R(), H = Ce("svg"), F = Ce("g"), U = Ce("path"), ne = Ce("path"), Re = R(), V && V.c(), ze = R(), pe = v("div"), O && O.c(), je = R(), qe = v("div"), re = v("ui-image"), Fe = R(), m(u, "class", "DetailsTitle svelte-1xsmrqu"), m(f, "class", "DetailsValue svelte-1xsmrqu"), m(c, "class", "DetailsRow svelte-1xsmrqu"), m(A, "class", "DetailsTitle svelte-1xsmrqu"), m(p, "class", "DetailsValue svelte-1xsmrqu"), m(w, "class", "DetailsRow svelte-1xsmrqu"), m(X, "class", "DetailsTitle svelte-1xsmrqu"), m(J, "class", "DetailsValue svelte-1xsmrqu"), m(G, "class", "DetailsRow svelte-1xsmrqu"), m(ae, "class", "DetailsTitle svelte-1xsmrqu"), m(ce, "class", "svelte-1xsmrqu"), m(U, "d", "M12.6663 4.375H5.54134C4.66689 4.375 3.95801 5.1585 3.95801 6.125V14C3.95801 14.9665 4.66689 15.75 5.54134 15.75H12.6663C13.5408 15.75 14.2497 14.9665 14.2497 14V6.125C14.2497 5.1585 13.5408 4.375 12.6663 4.375Z"), m(U, "stroke", "#666666"), m(U, "stroke-linecap", "round"), m(U, "stroke-linejoin", "round"), m(U, "class", "svelte-1xsmrqu"), m(ne, "d", "M3.95801 13.125H3.16634C2.74642 13.125 2.34369 12.9406 2.04676 12.6124C1.74982 12.2842 1.58301 11.8391 1.58301 11.375V3.5C1.58301 3.03587 1.74982 2.59075 2.04676 2.26256C2.34369 1.93437 2.74642 1.75 3.16634 1.75H10.2913C10.7113 1.75 11.114 1.93437 11.4109 2.26256C11.7079 2.59075 11.8747 3.03587 11.8747 3.5V4.375"), m(ne, "stroke", "#666666"), m(ne, "stroke-linecap", "round"), m(ne, "stroke-linejoin", "round"), m(ne, "class", "svelte-1xsmrqu"), m(F, "opacity", "0.5"), m(F, "class", "svelte-1xsmrqu"), m(H, "xmlns", "http://www.w3.org/2000/svg"), m(H, "width", "19"), m(H, "height", "19"), m(H, "viewBox", "0 0 19 19"), m(H, "fill", "none"), m(H, "class", "svelte-1xsmrqu"), m(W, "data-copy", _e = /*transaction*/
|
|
700
|
+
i[42].Code), m(W, "class", "DetailsValue CopyCode svelte-1xsmrqu"), m(K, "class", "DetailsRow svelte-1xsmrqu"), m(l, "class", "StaticDetails svelte-1xsmrqu"), m(pe, "class", "DynamicDetails svelte-1xsmrqu"), Ie(re.src, we = /*transaction*/
|
|
701
701
|
i[42].Logo) || $(re, "src", we), $(re, "class", "svelte-1xsmrqu"), m(qe, "class", "DetailsLogo svelte-1xsmrqu"), m(t, "class", "ExpandedContent svelte-1xsmrqu"), m(s, "colspan", Te = /*tableColumns*/
|
|
702
702
|
i[10].length), m(s, "class", "no-padding svelte-1xsmrqu"), m(e, "class", "ExpandedRow svelte-1xsmrqu");
|
|
703
703
|
},
|
|
704
704
|
m(D, E) {
|
|
705
|
-
j(D, e, E), r(e, s), r(s, t), r(t, l), r(l, c), r(c, u), r(u, a), r(u, g), r(c, _), r(c, f), r(f, x), r(l, y), r(l, w), r(w, A), r(A, M), r(A, b), r(w, ie), r(w, p), r(p, h), r(l, I), r(l, G), r(G, X), r(X,
|
|
705
|
+
j(D, e, E), r(e, s), r(s, t), r(t, l), r(l, c), r(c, u), r(u, a), r(u, g), r(c, _), r(c, f), r(f, x), r(l, y), r(l, w), r(w, A), r(A, M), r(A, b), r(w, ie), r(w, p), r(p, h), r(l, I), r(l, G), r(G, X), r(X, Z), r(X, B), r(G, de), r(G, J), r(J, fe), r(l, ge), r(l, K), r(K, ae), r(ae, ue), r(ae, xe), r(K, ye), r(K, W), r(W, ce), r(ce, n), r(W, q), r(W, H), r(H, F), r(F, U), r(F, ne), r(l, Re), V && V.m(l, null), r(t, ze), r(t, pe), O && O.m(pe, null), r(t, je), r(t, qe), r(qe, re), r(e, Fe), He || (Ae = Se(
|
|
706
706
|
W,
|
|
707
707
|
"mousedown",
|
|
708
708
|
/*mousedown_handler*/
|
|
@@ -726,7 +726,7 @@ function Be(i) {
|
|
|
726
726
|
D[5]
|
|
727
727
|
) + "") && S(h, C), E[0] & /*$_*/
|
|
728
728
|
4096 && le !== (le = /*$_*/
|
|
729
|
-
D[12]("transactionPaymentMethodTitle") + "") && S(
|
|
729
|
+
D[12]("transactionPaymentMethodTitle") + "") && S(Z, le), E[0] & /*txnHistory*/
|
|
730
730
|
128 && oe !== (oe = /*transaction*/
|
|
731
731
|
D[42].PaymentMethod + "") && S(fe, oe), E[0] & /*$_*/
|
|
732
732
|
4096 && Q !== (Q = /*$_*/
|
|
@@ -743,7 +743,7 @@ function Be(i) {
|
|
|
743
743
|
D[10].length) && m(s, "colspan", Te);
|
|
744
744
|
},
|
|
745
745
|
i(D) {
|
|
746
|
-
D && (De ||
|
|
746
|
+
D && (De || Ke(() => {
|
|
747
747
|
De = Qe(
|
|
748
748
|
t,
|
|
749
749
|
/*slideInOnly*/
|
|
@@ -791,7 +791,7 @@ function Xe(i) {
|
|
|
791
791
|
i[42].PaymentFields
|
|
792
792
|
)), t = [];
|
|
793
793
|
for (let l = 0; l < s.length; l += 1)
|
|
794
|
-
t[l] =
|
|
794
|
+
t[l] = Ze(Ee(i, s, l));
|
|
795
795
|
return {
|
|
796
796
|
c() {
|
|
797
797
|
for (let l = 0; l < t.length; l += 1)
|
|
@@ -813,7 +813,7 @@ function Xe(i) {
|
|
|
813
813
|
let u;
|
|
814
814
|
for (u = 0; u < s.length; u += 1) {
|
|
815
815
|
const o = Ee(l, s, u);
|
|
816
|
-
t[u] ? t[u].p(o, c) : (t[u] =
|
|
816
|
+
t[u] ? t[u].p(o, c) : (t[u] = Ze(o), t[u].c(), t[u].m(e.parentNode, e));
|
|
817
817
|
}
|
|
818
818
|
for (; u < t.length; u += 1)
|
|
819
819
|
t[u].d(1);
|
|
@@ -825,7 +825,7 @@ function Xe(i) {
|
|
|
825
825
|
}
|
|
826
826
|
};
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function Ze(i) {
|
|
829
829
|
let e, s, t = (
|
|
830
830
|
/*$_*/
|
|
831
831
|
i[12](`transaction${/*key*/
|
|
@@ -860,7 +860,7 @@ function Je(i) {
|
|
|
860
860
|
}
|
|
861
861
|
};
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function Je(i) {
|
|
864
864
|
let e, s, t, l, c, u, o = ee(
|
|
865
865
|
/*tableColumns*/
|
|
866
866
|
i[10]
|
|
@@ -999,7 +999,7 @@ function At(i) {
|
|
|
999
999
|
function It(i, e, s) {
|
|
1000
1000
|
let t;
|
|
1001
1001
|
ct(i, xt, (n) => s(12, t = n));
|
|
1002
|
-
let { endpoint: l } = e, { session: c } = e, { lang: u = "en" } = e, { customerid: o } = e, { clientstyling: a = "" } = e, { clientstylingurl: g = "" } = e, { translationurl: _ } = e, { tooltipduration: f = 1e3 } = e, { txncount: d } = e, { mbsource: x = "" } = e, { columns: y } = e, { page: w = "0" } = e, { calculateprofit: A = "false" } = e, { fromdate: k = se().subtract(3, "month") } = e, { todate: M = se() } = e, { isshorttransactionhistory: b = "false" } = e, { dateformat: ie = "DD.MM.YYYY" } = e, { datetimeformat: p = "DD.MM.YYYY HH:mm:ss" } = e, C = [], h = !1, I, G, X = !1, le = [],
|
|
1002
|
+
let { endpoint: l } = e, { session: c } = e, { lang: u = "en" } = e, { customerid: o } = e, { clientstyling: a = "" } = e, { clientstylingurl: g = "" } = e, { translationurl: _ } = e, { tooltipduration: f = 1e3 } = e, { txncount: d } = e, { mbsource: x = "" } = e, { columns: y } = e, { page: w = "0" } = e, { calculateprofit: A = "false" } = e, { fromdate: k = se().subtract(3, "month") } = e, { todate: M = se() } = e, { isshorttransactionhistory: b = "false" } = e, { dateformat: ie = "DD.MM.YYYY" } = e, { datetimeformat: p = "DD.MM.YYYY HH:mm:ss" } = e, C = [], h = !1, I, G, X = !1, le = [], Z;
|
|
1003
1003
|
var B;
|
|
1004
1004
|
(function(n) {
|
|
1005
1005
|
n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
|
|
@@ -1016,10 +1016,10 @@ function It(i, e, s) {
|
|
|
1016
1016
|
"PendingOfflineNotification",
|
|
1017
1017
|
"PendingConfirmation"
|
|
1018
1018
|
];
|
|
1019
|
-
var
|
|
1019
|
+
var J;
|
|
1020
1020
|
(function(n) {
|
|
1021
1021
|
n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
|
|
1022
|
-
})(
|
|
1022
|
+
})(J || (J = {})), mt(() => () => {
|
|
1023
1023
|
});
|
|
1024
1024
|
const oe = () => {
|
|
1025
1025
|
let n = _;
|
|
@@ -1062,16 +1062,16 @@ function It(i, e, s) {
|
|
|
1062
1062
|
})
|
|
1063
1063
|
};
|
|
1064
1064
|
s(9, X = !0), fetch(n, H).then((F) => F.json()).then((F) => {
|
|
1065
|
-
s(7, C =
|
|
1065
|
+
s(7, C = K(F?.items || []));
|
|
1066
1066
|
const U = {
|
|
1067
1067
|
type: "TransactionsLoaded",
|
|
1068
1068
|
total: F.total
|
|
1069
1069
|
};
|
|
1070
1070
|
A === "true" && (U.statistic = F.statistic), window.postMessage(U, window.location.href);
|
|
1071
1071
|
}).catch((F) => console.log(F)).finally(() => s(9, X = !1));
|
|
1072
|
-
},
|
|
1072
|
+
}, K = (n) => (s(10, le = y.split(",")), s(11, Z = null), n.map((q) => {
|
|
1073
1073
|
let H = q.generalFields.status;
|
|
1074
|
-
return q.generalFields.status.toLowerCase().includes("pending") && (H =
|
|
1074
|
+
return q.generalFields.status.toLowerCase().includes("pending") && (H = J.Pending), {
|
|
1075
1075
|
Code: q.generalFields.code,
|
|
1076
1076
|
Date: q.generalFields.created,
|
|
1077
1077
|
DateTime: q.generalFields.created,
|
|
@@ -1102,7 +1102,7 @@ function It(i, e, s) {
|
|
|
1102
1102
|
console.error("Could not copy text: ", U);
|
|
1103
1103
|
});
|
|
1104
1104
|
}, ue = (n) => {
|
|
1105
|
-
b !== "true" && s(11,
|
|
1105
|
+
b !== "true" && s(11, Z = Z === n ? null : n);
|
|
1106
1106
|
}, xe = (n, q) => ({
|
|
1107
1107
|
delay: 0,
|
|
1108
1108
|
duration: 250,
|
|
@@ -1135,7 +1135,7 @@ function It(i, e, s) {
|
|
|
1135
1135
|
h,
|
|
1136
1136
|
X,
|
|
1137
1137
|
le,
|
|
1138
|
-
|
|
1138
|
+
Z,
|
|
1139
1139
|
t,
|
|
1140
1140
|
Q,
|
|
1141
1141
|
ue,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-CnirEVww.cjs"),L=require("./CashierMethodDetails-Cq_ccC1E.cjs");function H(n,t){e.addMessages(n,t)}function ge(n){e.init({fallbackLocale:"en"}),e.$locale.set(n)}const j={en:{verificationsRequired:"Verifications Required","verification.video.how-to":"How to verify yourself?","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{verificationsRequired:"Doğrulamalar Gerekli","verification.video.how-to":"Kimlik doğrulama nasıl yapılır?","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{verificationsRequired:"Potrebne su provjere","verification.video.how-to":"How to verify yourself?","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};function ve(n){e.append_styles(n,"svelte-19ii49m",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{width:100%;padding:10px;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);position:relative;overflow:hidden;isolation:isolate;flex-direction:column;background-color:rgba(255, 255, 255, 0.063);display:flex;z-index:1;width:97%;margin:auto;cursor:pointer;user-select:none}.CashierVerificationsWrapper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary) 0%, var(--emw--color-black) 100%);background-size:200% 200%;animation:gradientWave 8s ease infinite}.CashierVerificationsWrapper::after{content:"";position:absolute;inset:-2px;z-index:-2;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary), var(--emw--color-black) transparent);background-size:200% 200%;animation:gradientWave 8s ease infinite reverse;filter:blur(10px);opacity:0.6}@keyframes gradientWave{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotateX(180deg);-ms-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:rgba(0, 0, 0, 0.15);border-radius:10px;margin-bottom:10px;padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg path{stroke:var(--emw--color-typography, var(--emw--color-white, #ffffff))}p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:500;font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word;font-weight:200;font-size:12px}.text a{color:var(--emw--color-primary, #f9c408);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s;margin-right:5px}.CashierVerificationChevron svg path{fill:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotateX(90deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #f9c408)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #f9c408);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}')}function U(n,t,r){const s=n.slice();return s[53]=t[r],s}function we(n){let t,r=n[3].length>0&&W(n);return{c(){t=e.element("div"),r&&r.c(),e.attr(t,"class","CashierVerificationsWrapper")},m(s,a){e.insert(s,t,a),r&&r.m(t,null)},p(s,a){s[3].length>0?r?r.p(s,a):(r=W(s),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(s){s&&e.detach(t),r&&r.d()}}}function ke(n){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",n[1]),e.set_custom_element_data(t,"clientstyling",n[0])},m(r,s){e.insert(r,t,s)},p(r,s){s[0]&2&&e.set_custom_element_data(t,"clientstylingurl",r[1]),s[0]&1&&e.set_custom_element_data(t,"clientstyling",r[0])},d(r){r&&e.detach(t)}}}function W(n){let t,r,s,a,l,d,g,P=n[8]("verificationsRequired")+"",w,y,C,D,v,V,A,q,_=e.ensure_array_like(n[3]),h=[];for(let f=0;f<_.length;f+=1)h[f]=N(U(n,_,f));let m=n[6]&&Y(n);return{c(){t=e.element("div"),r=e.svg_element("svg"),s=e.svg_element("path"),a=e.svg_element("path"),l=e.svg_element("path"),d=e.space(),g=e.element("p"),w=e.text(P),y=e.space(),C=e.element("span"),C.innerHTML='<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.335805 2.19101L5.63841 7.62117C5.75331 7.74121 5.89002 7.83649 6.04064 7.9015C6.19127 7.96652 6.35282 8 6.51599 8C6.67917 8 6.84072 7.96652 6.99135 7.9015C7.14197 7.83649 7.27868 7.74121 7.39358 7.62117L12.6344 2.19101C12.7502 2.07195 12.8422 1.93031 12.9049 1.77424C12.9677 1.61818 13 1.45078 13 1.28171C13 1.11265 12.9677 0.945251 12.9049 0.789186C12.8422 0.633121 12.7502 0.491475 12.6344 0.372417C12.4028 0.133886 12.0895 -7.95968e-08 11.763 -1.08144e-07C11.4364 -1.36691e-07 11.1232 0.133886 10.8916 0.372417L6.51599 4.90609L2.14042 0.372417C1.91019 0.135815 1.59946 0.00242849 1.27519 0.00101368C1.11252 3.90151e-05 0.951266 0.0323442 0.80067 0.0960778C0.650074 0.159811 0.513102 0.25372 0.397606 0.372416C0.277618 0.48719 0.180769 0.625461 0.112655 0.779242C0.0445407 0.933023 0.00651199 1.09926 0.000765141 1.26836C-0.00498171 1.43746 0.0216687 1.60606 0.0791753 1.76442C0.136682 1.92279 0.223905 2.06777 0.335805 2.19101Z" fill="#6E738F"></path></svg>',D=e.space(),v=e.element("div");for(let f=0;f<h.length;f+=1)h[f].c();V=e.space(),m&&m.c(),e.attr(s,"d","M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"),e.attr(s,"stroke","#6E738F"),e.attr(s,"stroke-width","2"),e.attr(s,"stroke-linecap","round"),e.attr(s,"stroke-linejoin","round"),e.attr(a,"d","M12 8V12"),e.attr(a,"stroke","#6E738F"),e.attr(a,"stroke-width","2"),e.attr(a,"stroke-linecap","round"),e.attr(a,"stroke-linejoin","round"),e.attr(l,"d","M12 16H12.01"),e.attr(l,"stroke","#6E738F"),e.attr(l,"stroke-width","2"),e.attr(l,"stroke-linecap","round"),e.attr(l,"stroke-linejoin","round"),e.attr(r,"width","24"),e.attr(r,"height","24"),e.attr(r,"viewBox","0 0 24 24"),e.attr(r,"fill","none"),e.attr(r,"xmlns","http://www.w3.org/2000/svg"),e.attr(C,"class","CashierVerificationChevron"),e.toggle_class(C,"ShowVerifications",n[4]),e.attr(t,"class","VerificationsHeader"),e.attr(v,"class","VerificationsList"),e.toggle_class(v,"ShowVerifications",n[4])},m(f,b){e.insert(f,t,b),e.append(t,r),e.append(r,s),e.append(r,a),e.append(r,l),e.append(t,d),e.append(t,g),e.append(g,w),e.append(t,y),e.append(t,C),e.insert(f,D,b),e.insert(f,v,b);for(let u=0;u<h.length;u+=1)h[u]&&h[u].m(v,null);e.append(v,V),m&&m.m(v,null),A||(q=e.listen(t,"click",n[9]),A=!0)},p(f,b){if(b[0]&256&&P!==(P=f[8]("verificationsRequired")+"")&&e.set_data(w,P),b[0]&16&&e.toggle_class(C,"ShowVerifications",f[4]),b[0]&8){_=e.ensure_array_like(f[3]);let u;for(u=0;u<_.length;u+=1){const T=U(f,_,u);h[u]?h[u].p(T,b):(h[u]=N(T),h[u].c(),h[u].m(v,V))}for(;u<h.length;u+=1)h[u].d(1);h.length=_.length}f[6]?m?m.p(f,b):(m=Y(f),m.c(),m.m(v,null)):m&&(m.d(1),m=null),b[0]&16&&e.toggle_class(v,"ShowVerifications",f[4])},d(f){f&&(e.detach(t),e.detach(D),e.detach(v)),e.destroy_each(h,f),m&&m.d(),A=!1,q()}}}function N(n){let t,r,s,a,l=n[53]+"";return{c(){t=e.element("div"),r=e.element("div"),r.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>',s=e.space(),a=e.element("p"),e.attr(r,"class","IconVerification"),e.attr(a,"class","text"),e.attr(t,"class","CashierVerificationMessage Test")},m(d,g){e.insert(d,t,g),e.append(t,r),e.append(t,s),e.append(t,a),a.innerHTML=l},p(d,g){g[0]&8&&l!==(l=d[53]+"")&&(a.innerHTML=l)},d(d){d&&e.detach(t)}}}function Y(n){let t,r,s,a,l=n[8]("verification.video.how-to")+"",d,g,P;return{c(){t=e.element("div"),r=e.element("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',s=e.space(),a=e.element("div"),d=e.text(l),e.attr(r,"class","IconVideo"),e.attr(a,"class","CashierVerificationVideoLink"),e.toggle_class(a,"CashierVerificationVideoLinkDesktop",n[5]),e.attr(t,"class","CashierVerificationVideo Test")},m(w,y){e.insert(w,t,y),e.append(t,r),e.append(t,s),e.append(t,a),e.append(a,d),g||(P=e.listen(t,"click",n[10]),g=!0)},p(w,y){y[0]&256&&l!==(l=w[8]("verification.video.how-to")+"")&&e.set_data(d,l),y[0]&32&&e.toggle_class(a,"CashierVerificationVideoLinkDesktop",w[5])},d(w){w&&e.detach(t),g=!1,P()}}}function ye(n){let t;function r(l,d){if(l[7])return ke;if(l[3])return we}let s=r(n),a=s&&s(n);return{c(){t=e.element("div"),a&&a.c(),e.attr(t,"class","CashierVerifications"),e.toggle_class(t,"CashierVerificationsDesktop",n[5])},m(l,d){e.insert(l,t,d),a&&a.m(t,null),n[19](t)},p(l,d){s===(s=r(l))&&a?a.p(l,d):(a&&a.d(1),a=s&&s(l),a&&(a.c(),a.m(t,null))),d[0]&32&&e.toggle_class(t,"CashierVerificationsDesktop",l[5])},i:e.noop,o:e.noop,d(l){l&&e.detach(t),a&&a.d(),n[19](null)}}}const Ve="verification_explanation_video_widgets.MP4";function be(n,t,r){let s,a;e.component_subscribe(n,e.$format,i=>r(8,s=i)),e.component_subscribe(n,L.xPaymentSessionToken,i=>r(27,a=i)),L.dayjs.extend(L.utc);let{endpoint:l}=t,{lang:d="en"}=t,{translationurl:g=""}=t,{clientstyling:P=""}=t,{clientstylingurl:w=""}=t,{session:y=""}=t,{customerid:C=""}=t,{playersession:D=""}=t,{mbsource:v=""}=t,V,A=new Set,q=new Set,_,h,m,f=!1,b=!0,u=!1,T="",z=!1,K=window.navigator.userAgent;var O;(function(i){i.Manual="Manual",i.ShuftiPro="ShuftiPro"})(O||(O={}));var F;(function(i){i.Requested="Requested"})(F||(F={}));var k;(function(i){i.Unknown="Unknown",i.Unverified="Unverified",i.InProgress="InProgress",i.Failed="Failed",i.Verified="Verified",i.Referred="Referred",i.True="True",i.False="False",i.AwaitingForResponse="AwaitingForResponse"})(k||(k={}));var M;(function(i){i.Unknown="Unknown",i.Documents="Documents",i.Age="Age",i.Pep="Pep",i.Sanction="Sanction",i.Aml="Aml",i.ProofOfAddress="ProofOfAddress",i.SourceOfWealth="SourceOfWealth",i.SocialMedia="SocialMedia",i.Biometric="Biometric"})(M||(M={}));const I=i=>{i.data&&i.data.type};e.onMount(()=>(window.addEventListener("message",I),ue(),()=>{window.removeEventListener("message",I)}));const Z=[k.InProgress,k.Referred,k.AwaitingForResponse],G=()=>{let i=g;if(i)return fetch(i).then(o=>o.json()).then(o=>{Object.keys(o).forEach(c=>{H(c,o[c])})}).catch(o=>{console.log(o)})};Object.keys(j).forEach(i=>{H(i,j[i])});const J=()=>{ge(d)},E=()=>{r(18,h=ee());const i=new URL(`${l}/v1/player/${C}/verification/GetKYCCustomerStatus?language=${d}`),o=new Headers;o.append("accept","application/json"),o.append("Content-Type","application/json"),o.append("x-sessionid",`${D}`),o.append("X-Client-Request-Timestamp",L.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const c={method:"POST",headers:o,body:JSON.stringify({})};r(7,z=!0),fetch(i,c).then(p=>p.json()).then(p=>{const S=Q(p==null?void 0:p.Verifications);_=ie(S),_.VerificationStatuses.forEach(B=>{B.VerificationUrlType!=="Widget"&&A.add(B.Vendor)}),r(3,m=se())}).finally(()=>r(7,z=!1))},Q=i=>i?i.sort((o,c)=>new Date(c.Created).getTime()-new Date(o.Created).getTime()):[],$=()=>{a&&E()},ee=()=>{let i=(y||a).split(".")[1];if(i){let o=JSON.parse(atob(i));return o.cdn+"/cashier/operator-assets/"+(o==null?void 0:o.mid)}return""},ie=i=>{var c;if(!i||!i.length)return{VerificationSummaryStatus:k.Unverified,VerificationStatuses:[]};const o=re(i);if(o&&o.length){const p=te(o);return{VerificationSummaryStatus:p.Status,VerificationUrl:(c=p.Flags)==null?void 0:c.DeferredUrlKey,VerificationStatuses:R(o,p.Status)}}else return{VerificationSummaryStatus:i.some(S=>S.Status===k.Failed)?k.Failed:k.Verified,VerificationStatuses:R(i,[k.Failed])}},te=i=>i.reduce((o,c)=>o?new Date(o)<new Date(c)?c:o:c,0),R=(i,o)=>i.filter(c=>o.includes(c.Status)).map(c=>{var p,S;return{Type:c.Type,Vendor:c.VendorName,VerificationDocuments:c.Documents?[...c.Documents]:[],VerificationUrlType:(p=c.FlowInfo)==null?void 0:p.Type,VerificationUrl:(S=c.FlowInfo)==null?void 0:S.Url}}),re=i=>i.filter(o=>Z.includes(o.Status)?o.FlowInfo&&o.FlowInfo.Url||oe(o)||ne(o):!1),oe=i=>{const o=i.Documents&&i.VendorName===O.Manual,c=i.Documents&&i.Documents.some(p=>p.Status===F.Requested);return o&&c},ne=i=>i.VendorName===O.ShuftiPro&&i.Status===k.Referred,se=()=>{switch(_.VerificationSummaryStatus){case k.InProgress:const i=[];return A.forEach(o=>{i.push(ae(o))}),i;case k.Referred:return[s("verification.idenfy.referred-awaiting")];case k.Failed:return[s("verification.message.failed")]}},ae=i=>{const o=_.VerificationStatuses.filter(c=>c.Vendor===i);if(i===O.ShuftiPro)return le(o);{const c=s("verification.idenfy.link-name"),p={link:`<a href="${o[0].VerificationUrl}" target="_blank">${c}</a>`};return s("verification.idenfy.in-progress",{values:p})}},le=i=>{const o=[],c={},p=[M.Biometric,M.Documents,M.ProofOfAddress];i.forEach(x=>{p.includes(x.Type)&&(o.push(x.Type),c[x.Type]=ce(x,fe(x.Type)))});let S=o.every(x=>q.has(x)),B=`verification.shuftipro.in-progress.${o.sort().join(".")}`;return S?s("verification.shuftipro.validations-started"):s(B,{values:c})},ce=(i,o)=>`<a class="verificationLink ${i.Type}" href=" ${i.VerificationUrl} " target="_blank">${o}</a>`,fe=i=>s(`verification.shuftipro.link-name.${i}`),de=()=>{r(4,f=!f)},ue=()=>{r(5,b=!e.isMobile(K))},he=()=>{T=h+"/"+d+"/"+Ve;try{fetch(T,{method:"HEAD"}).then(i=>{r(6,u=i.ok)})}catch(i){r(6,u=!1)}},pe=()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"video",data:{videoSrc:T}}}))};function me(i){e.binding_callbacks[i?"unshift":"push"](()=>{V=i,r(2,V)})}return n.$$set=i=>{"endpoint"in i&&r(11,l=i.endpoint),"lang"in i&&r(12,d=i.lang),"translationurl"in i&&r(13,g=i.translationurl),"clientstyling"in i&&r(0,P=i.clientstyling),"clientstylingurl"in i&&r(1,w=i.clientstylingurl),"session"in i&&r(14,y=i.session),"customerid"in i&&r(15,C=i.customerid),"playersession"in i&&r(16,D=i.playersession),"mbsource"in i&&r(17,v=i.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&4096&&d&&J(),n.$$.dirty[0]&83968&&l&&y&&D&&E(),n.$$.dirty[0]&83968&&l&&!y&&D&&$(),n.$$.dirty[0]&8192&&g&&G(),n.$$.dirty[0]&5&&P&&V&&e.setClientStyling(V,P),n.$$.dirty[0]&6&&w&&V&&e.setClientStylingURL(V,w),n.$$.dirty[0]&262144&&h&&he(),n.$$.dirty[0]&131076&&v&&V&&e.setStreamStyling(V,`${v}.Style`)},[P,w,V,m,f,b,u,z,s,de,pe,l,d,g,y,C,D,v,h,me]}class X extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,be,ye,e.safe_not_equal,{endpoint:11,lang:12,translationurl:13,clientstyling:0,clientstylingurl:1,session:14,customerid:15,playersession:16,mbsource:17},ve,[-1,-1])}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get session(){return this.$$.ctx[14]}set session(t){this.$$set({session:t}),e.flush()}get customerid(){return this.$$.ctx[15]}set customerid(t){this.$$set({customerid:t}),e.flush()}get playersession(){return this.$$.ctx[16]}set playersession(t){this.$$set({playersession:t}),e.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(X,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},playersession:{},mbsource:{}},[],[],!0);exports.default=X;
|