@everymatrix/cashier-page 1.69.75 → 1.69.104
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-DIW7ewty.js → CashierCarousel-6PpXL5Qp.js} +1387 -1339
- package/components/CashierCarousel-Cd1TzgE8.cjs +23 -0
- package/components/{CashierCarousel-BRCPA28j.js → CashierCarousel-CukH4aEC.js} +1325 -1277
- package/components/{CashierError-CDQHYcyq.cjs → CashierError-BbxnJqdU.cjs} +1 -1
- package/components/{CashierError-2l9bXeE4.js → CashierError-CfHBjTAV.js} +1 -1
- package/components/{CashierError-CaZfsv_b.js → CashierError-DUp1jL7u.js} +1 -1
- package/components/CashierHeader-BAQT942H.cjs +1 -0
- package/components/{CashierHeader-CRdaTXXF.js → CashierHeader-DppgdJvh.js} +4 -4
- package/components/{CashierHeader-BIvpeMbT.js → CashierHeader-mNIfX_8X.js} +4 -4
- package/components/{CashierIframeRedirect-Cdt_4X-f.js → CashierIframeRedirect-CUNGOWqF.js} +29 -29
- package/components/CashierIframeRedirect-D16g3FOL.cjs +1 -0
- package/components/{CashierIframeRedirect-CYbcbdD6.js → CashierIframeRedirect-OFn0nnKy.js} +29 -29
- package/components/{CashierMethodDetails-Crc38ib5.js → CashierMethodDetails-BYNgkyXG.js} +1566 -1537
- package/components/CashierMethodDetails-D6dPCYFG.cjs +85 -0
- package/components/{CashierMethodDetails-CmHvEe-1.js → CashierMethodDetails-DfoHgNtY.js} +1713 -1684
- package/components/CashierMethodsList-CuMP4TC9.cjs +1 -0
- package/components/CashierMethodsList-Di9Oe4JI.js +691 -0
- package/components/CashierMethodsList-mN4PR-DW.js +703 -0
- package/components/CashierModal-C19ykcBp.js +237 -0
- package/components/CashierModal-fzrJshmv.cjs +1 -0
- package/components/CashierModal-tHIgxmTG.js +237 -0
- package/components/{CashierNotifications-BW_5BkiD.js → CashierNotifications-B4mMHPzM.js} +1 -1
- package/components/{CashierNotifications-C3_w1GoO.js → CashierNotifications-C9N_cyjp.js} +1 -1
- package/components/{CashierNotifications-DPPdTfhe.cjs → CashierNotifications-TCeibGW7.cjs} +1 -1
- package/components/CashierPage-Bz-x5NYC.js +2832 -0
- package/components/CashierPage-CKSxChJM.cjs +1 -0
- package/components/CashierPage-CS_ZG6Xb.js +2832 -0
- package/components/CashierReceiptPage-CiPr9s04.cjs +26 -0
- package/components/{CashierReceiptPage-DcrR4cFI.js → CashierReceiptPage-D3bSdrMR.js} +690 -652
- package/components/{CashierReceiptPage-Cdpi_dhQ.js → CashierReceiptPage-nV_QGl-h.js} +735 -673
- package/components/{CashierSessionExpirationModal-BuRX5Ibg.js → CashierSessionExpirationModal-DPlehL-t.js} +31 -31
- package/components/CashierSessionExpirationModal-Dex-iDiX.cjs +2 -0
- package/components/{CashierSessionExpirationModal-DbZJRvvF.js → CashierSessionExpirationModal-XOwOZhfl.js} +31 -31
- package/components/{CashierSpinner-DTePmdlJ.js → CashierSpinner-BQgydcZ_.js} +1 -1
- package/components/{CashierSpinner-DsjTlCAT.js → CashierSpinner-CzYDxJhX.js} +1 -1
- package/components/{CashierSpinner-CmkhBExd.cjs → CashierSpinner-DxJ8w6Oz.cjs} +1 -1
- package/components/{CashierTransactionHistory-DGxSVtrZ.js → CashierTransactionHistory-BE1joO9K.js} +27 -27
- package/components/{CashierTransactionHistory-BW7qdJ8o.js → CashierTransactionHistory-BWy9gkLT.js} +27 -27
- package/components/CashierTransactionHistory-TKDNzqMX.cjs +1 -0
- package/components/{CashierVerifications-BPvYz1I1.js → CashierVerifications-AUHQ5YBD.js} +106 -106
- package/components/CashierVerifications-BC3_kyP4.cjs +1 -0
- package/components/{CashierVerifications-Dzg3GMUR.js → CashierVerifications-Cz6thwea.js} +126 -126
- package/components/{TxnStatusIcon-CluG8nB2.cjs → TxnStatusIcon-BhLc40xR.cjs} +1 -1
- package/components/{TxnStatusIcon-CacWIjyU.js → TxnStatusIcon-C9Qf16Sv.js} +1 -1
- package/components/{TxnStatusIcon-DEE4mf59.js → TxnStatusIcon-CllgBQ_-.js} +1 -1
- package/components/{TxnTypeIcons-CCHGRfM4.js → TxnTypeIcons-D5s1NIcq.js} +1 -1
- package/components/{TxnTypeIcons-DzkNiw5U.cjs → TxnTypeIcons-DTmlDMr_.cjs} +1 -1
- package/components/{TxnTypeIcons-Dwq4VQE8.js → TxnTypeIcons-lLjMKCFg.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +2 -2
- package/esnext/cashier-page.js +2 -2
- package/package.json +1 -1
- package/components/CashierCarousel-BrO7Jjq7.cjs +0 -23
- package/components/CashierHeader-CYloyBeJ.cjs +0 -1
- package/components/CashierIframeRedirect-DHwRIV5D.cjs +0 -1
- package/components/CashierMethodDetails-DdksHLNn.cjs +0 -85
- package/components/CashierMethodsList-BXhWqHwQ.js +0 -733
- package/components/CashierMethodsList-CXLOO8AC.cjs +0 -1
- package/components/CashierMethodsList-CiYrKrpc.js +0 -745
- package/components/CashierModal-8fVxVksu.cjs +0 -1
- package/components/CashierModal-Bf-5kofx.js +0 -268
- package/components/CashierModal-DYVVV-kg.js +0 -268
- package/components/CashierPage-CD1jfPWY.js +0 -2724
- package/components/CashierPage-CwhswjBN.cjs +0 -1
- package/components/CashierPage-EE5oS0EE.js +0 -2724
- package/components/CashierReceiptPage-CtcB2_3R.cjs +0 -26
- package/components/CashierSessionExpirationModal-BAazKpCR.cjs +0 -2
- package/components/CashierTransactionHistory-Dz-EIYCr.cjs +0 -1
- package/components/CashierVerifications-CkX6-wMt.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as Te, i as Oe, $ as Me, S as Be, b as qe, s as Le, f as A, c as
|
|
2
|
-
import { d as Q, u as Ye, x as
|
|
1
|
+
import { a as Te, i as Oe, $ as Me, S as Be, b as qe, s as Le, f as A, c as ze, G, e as M, V as O, k as B, m as C, o as l, p as Z, q as Fe, M as Ee, y as Ie, A as U, R as J, T as Re, v as ne, l as g, x as se, P as j, n as F, w as ae, B as He, C as Ue, D as je, E as We, F as Ne } from "./CashierCarousel-CukH4aEC.js";
|
|
2
|
+
import { d as Q, u as Ye, x as Xe } from "./CashierMethodDetails-DfoHgNtY.js";
|
|
3
3
|
function $(o, i) {
|
|
4
4
|
Te(o, i);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Ke(o) {
|
|
7
7
|
Oe({
|
|
8
8
|
fallbackLocale: "en"
|
|
9
9
|
}), Me.set(o);
|
|
@@ -67,39 +67,39 @@ const ee = {
|
|
|
67
67
|
"verification.shuftipro.validations-started": "After completing verification, please proceed with the transaction"
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
|
-
function
|
|
71
|
-
|
|
70
|
+
function Ge(o) {
|
|
71
|
+
ze(o, "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)}');
|
|
72
72
|
}
|
|
73
73
|
function ie(o, i, t) {
|
|
74
|
-
const
|
|
75
|
-
return
|
|
74
|
+
const n = o.slice();
|
|
75
|
+
return n[53] = i[t], n;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Ze(o) {
|
|
78
78
|
let i, t = (
|
|
79
79
|
/*displayMessages*/
|
|
80
80
|
o[3].length > 0 && te(o)
|
|
81
81
|
);
|
|
82
82
|
return {
|
|
83
83
|
c() {
|
|
84
|
-
i =
|
|
84
|
+
i = C("div"), t && t.c(), l(i, "class", "CashierVerificationsWrapper");
|
|
85
85
|
},
|
|
86
|
-
m(
|
|
87
|
-
B(
|
|
86
|
+
m(n, s) {
|
|
87
|
+
B(n, i, s), t && t.m(i, null);
|
|
88
88
|
},
|
|
89
|
-
p(
|
|
89
|
+
p(n, s) {
|
|
90
90
|
/*displayMessages*/
|
|
91
|
-
|
|
91
|
+
n[3].length > 0 ? t ? t.p(n, s) : (t = te(n), t.c(), t.m(i, null)) : t && (t.d(1), t = null);
|
|
92
92
|
},
|
|
93
|
-
d(
|
|
94
|
-
|
|
93
|
+
d(n) {
|
|
94
|
+
n && M(i), t && t.d();
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Je(o) {
|
|
99
99
|
let i;
|
|
100
100
|
return {
|
|
101
101
|
c() {
|
|
102
|
-
i =
|
|
102
|
+
i = C("cashier-spinner"), U(
|
|
103
103
|
i,
|
|
104
104
|
"clientstylingurl",
|
|
105
105
|
/*clientstylingurl*/
|
|
@@ -111,17 +111,17 @@ function Xe(o) {
|
|
|
111
111
|
o[0]
|
|
112
112
|
);
|
|
113
113
|
},
|
|
114
|
-
m(t,
|
|
115
|
-
B(t, i,
|
|
114
|
+
m(t, n) {
|
|
115
|
+
B(t, i, n);
|
|
116
116
|
},
|
|
117
|
-
p(t,
|
|
118
|
-
|
|
117
|
+
p(t, n) {
|
|
118
|
+
n[0] & /*clientstylingurl*/
|
|
119
119
|
2 && U(
|
|
120
120
|
i,
|
|
121
121
|
"clientstylingurl",
|
|
122
122
|
/*clientstylingurl*/
|
|
123
123
|
t[1]
|
|
124
|
-
),
|
|
124
|
+
), n[0] & /*clientstyling*/
|
|
125
125
|
1 && U(
|
|
126
126
|
i,
|
|
127
127
|
"clientstyling",
|
|
@@ -135,25 +135,25 @@ function Xe(o) {
|
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
function te(o) {
|
|
138
|
-
let i, t,
|
|
138
|
+
let i, t, n, s, a, d, v, D = (
|
|
139
139
|
/*$_*/
|
|
140
140
|
o[8]("verificationsRequired") + ""
|
|
141
|
-
),
|
|
141
|
+
), k, V, _, x, w, b, L, R, S = J(
|
|
142
142
|
/*displayMessages*/
|
|
143
143
|
o[3]
|
|
144
144
|
), h = [];
|
|
145
145
|
for (let f = 0; f < S.length; f += 1)
|
|
146
146
|
h[f] = re(ie(o, S, f));
|
|
147
|
-
let
|
|
147
|
+
let m = (
|
|
148
148
|
/*videoExists*/
|
|
149
149
|
o[6] && oe(o)
|
|
150
150
|
);
|
|
151
151
|
return {
|
|
152
152
|
c() {
|
|
153
|
-
i =
|
|
153
|
+
i = C("div"), t = j("svg"), n = j("path"), s = j("path"), a = j("path"), d = F(), v = C("p"), k = ae(D), V = F(), _ = C("span"), _.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>', x = F(), w = C("div");
|
|
154
154
|
for (let f = 0; f < h.length; f += 1)
|
|
155
155
|
h[f].c();
|
|
156
|
-
|
|
156
|
+
b = F(), m && m.c(), l(n, "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"), l(n, "stroke", "#6E738F"), l(n, "stroke-width", "2"), l(n, "stroke-linecap", "round"), l(n, "stroke-linejoin", "round"), l(s, "d", "M12 8V12"), l(s, "stroke", "#6E738F"), l(s, "stroke-width", "2"), l(s, "stroke-linecap", "round"), l(s, "stroke-linejoin", "round"), l(a, "d", "M12 16H12.01"), l(a, "stroke", "#6E738F"), l(a, "stroke-width", "2"), l(a, "stroke-linecap", "round"), l(a, "stroke-linejoin", "round"), l(t, "width", "24"), l(t, "height", "24"), l(t, "viewBox", "0 0 24 24"), l(t, "fill", "none"), l(t, "xmlns", "http://www.w3.org/2000/svg"), l(_, "class", "CashierVerificationChevron"), O(
|
|
157
157
|
_,
|
|
158
158
|
"ShowVerifications",
|
|
159
159
|
/*allVerificationsVisible*/
|
|
@@ -166,10 +166,10 @@ function te(o) {
|
|
|
166
166
|
);
|
|
167
167
|
},
|
|
168
168
|
m(f, P) {
|
|
169
|
-
B(f, i, P), g(i, t), g(t,
|
|
169
|
+
B(f, i, P), g(i, t), g(t, n), g(t, s), g(t, a), g(i, d), g(i, v), g(v, k), g(i, V), g(i, _), B(f, x, P), B(f, w, P);
|
|
170
170
|
for (let u = 0; u < h.length; u += 1)
|
|
171
171
|
h[u] && h[u].m(w, null);
|
|
172
|
-
g(w,
|
|
172
|
+
g(w, b), m && m.m(w, null), L || (R = se(
|
|
173
173
|
i,
|
|
174
174
|
"click",
|
|
175
175
|
/*toggleVerifications*/
|
|
@@ -178,8 +178,8 @@ function te(o) {
|
|
|
178
178
|
},
|
|
179
179
|
p(f, P) {
|
|
180
180
|
if (P[0] & /*$_*/
|
|
181
|
-
256 &&
|
|
182
|
-
f[8]("verificationsRequired") + "") &&
|
|
181
|
+
256 && D !== (D = /*$_*/
|
|
182
|
+
f[8]("verificationsRequired") + "") && ne(k, D), P[0] & /*allVerificationsVisible*/
|
|
183
183
|
16 && O(
|
|
184
184
|
_,
|
|
185
185
|
"ShowVerifications",
|
|
@@ -187,21 +187,21 @@ function te(o) {
|
|
|
187
187
|
f[4]
|
|
188
188
|
), P[0] & /*displayMessages*/
|
|
189
189
|
8) {
|
|
190
|
-
S =
|
|
190
|
+
S = J(
|
|
191
191
|
/*displayMessages*/
|
|
192
192
|
f[3]
|
|
193
193
|
);
|
|
194
194
|
let u;
|
|
195
195
|
for (u = 0; u < S.length; u += 1) {
|
|
196
|
-
const
|
|
197
|
-
h[u] ? h[u].p(
|
|
196
|
+
const z = ie(f, S, u);
|
|
197
|
+
h[u] ? h[u].p(z, P) : (h[u] = re(z), h[u].c(), h[u].m(w, b));
|
|
198
198
|
}
|
|
199
199
|
for (; u < h.length; u += 1)
|
|
200
200
|
h[u].d(1);
|
|
201
201
|
h.length = S.length;
|
|
202
202
|
}
|
|
203
203
|
/*videoExists*/
|
|
204
|
-
f[6] ?
|
|
204
|
+
f[6] ? m ? m.p(f, P) : (m = oe(f), m.c(), m.m(w, null)) : m && (m.d(1), m = null), P[0] & /*allVerificationsVisible*/
|
|
205
205
|
16 && O(
|
|
206
206
|
w,
|
|
207
207
|
"ShowVerifications",
|
|
@@ -210,26 +210,26 @@ function te(o) {
|
|
|
210
210
|
);
|
|
211
211
|
},
|
|
212
212
|
d(f) {
|
|
213
|
-
f && (M(i), M(x), M(w)), Re(h, f),
|
|
213
|
+
f && (M(i), M(x), M(w)), Re(h, f), m && m.d(), L = !1, R();
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
217
|
function re(o) {
|
|
218
|
-
let i, t,
|
|
218
|
+
let i, t, n, s, a = (
|
|
219
219
|
/*message*/
|
|
220
220
|
o[53] + ""
|
|
221
221
|
);
|
|
222
222
|
return {
|
|
223
223
|
c() {
|
|
224
|
-
i =
|
|
224
|
+
i = C("div"), t = C("div"), t.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>', n = F(), s = C("p"), l(t, "class", "IconVerification"), l(s, "class", "text"), l(i, "class", "CashierVerificationMessage Test");
|
|
225
225
|
},
|
|
226
226
|
m(d, v) {
|
|
227
|
-
B(d, i, v), g(i, t), g(i,
|
|
227
|
+
B(d, i, v), g(i, t), g(i, n), g(i, s), s.innerHTML = a;
|
|
228
228
|
},
|
|
229
229
|
p(d, v) {
|
|
230
230
|
v[0] & /*displayMessages*/
|
|
231
231
|
8 && a !== (a = /*message*/
|
|
232
|
-
d[53] + "") && (
|
|
232
|
+
d[53] + "") && (s.innerHTML = a);
|
|
233
233
|
},
|
|
234
234
|
d(d) {
|
|
235
235
|
d && M(i);
|
|
@@ -237,40 +237,40 @@ function re(o) {
|
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
function oe(o) {
|
|
240
|
-
let i, t,
|
|
240
|
+
let i, t, n, s, a = (
|
|
241
241
|
/*$_*/
|
|
242
242
|
o[8]("verification.video.how-to") + ""
|
|
243
|
-
), d, v,
|
|
243
|
+
), d, v, D;
|
|
244
244
|
return {
|
|
245
245
|
c() {
|
|
246
|
-
i =
|
|
247
|
-
|
|
246
|
+
i = C("div"), t = C("div"), t.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>', n = F(), s = C("div"), d = ae(a), l(t, "class", "IconVideo"), l(s, "class", "CashierVerificationVideoLink"), O(
|
|
247
|
+
s,
|
|
248
248
|
"CashierVerificationVideoLinkDesktop",
|
|
249
249
|
/*desktopView*/
|
|
250
250
|
o[5]
|
|
251
251
|
), l(i, "class", "CashierVerificationVideo Test");
|
|
252
252
|
},
|
|
253
|
-
m(
|
|
254
|
-
B(
|
|
253
|
+
m(k, V) {
|
|
254
|
+
B(k, i, V), g(i, t), g(i, n), g(i, s), g(s, d), v || (D = se(
|
|
255
255
|
i,
|
|
256
256
|
"click",
|
|
257
257
|
/*showVideo*/
|
|
258
258
|
o[10]
|
|
259
259
|
), v = !0);
|
|
260
260
|
},
|
|
261
|
-
p(
|
|
261
|
+
p(k, V) {
|
|
262
262
|
V[0] & /*$_*/
|
|
263
263
|
256 && a !== (a = /*$_*/
|
|
264
|
-
|
|
264
|
+
k[8]("verification.video.how-to") + "") && ne(d, a), V[0] & /*desktopView*/
|
|
265
265
|
32 && O(
|
|
266
|
-
|
|
266
|
+
s,
|
|
267
267
|
"CashierVerificationVideoLinkDesktop",
|
|
268
268
|
/*desktopView*/
|
|
269
|
-
|
|
269
|
+
k[5]
|
|
270
270
|
);
|
|
271
271
|
},
|
|
272
|
-
d(
|
|
273
|
-
|
|
272
|
+
d(k) {
|
|
273
|
+
k && M(i), v = !1, D();
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
}
|
|
@@ -281,17 +281,17 @@ function Qe(o) {
|
|
|
281
281
|
/*isLoading*/
|
|
282
282
|
a[7]
|
|
283
283
|
)
|
|
284
|
-
return
|
|
284
|
+
return Je;
|
|
285
285
|
if (
|
|
286
286
|
/*displayMessages*/
|
|
287
287
|
a[3]
|
|
288
288
|
)
|
|
289
|
-
return
|
|
289
|
+
return Ze;
|
|
290
290
|
}
|
|
291
|
-
let
|
|
291
|
+
let n = t(o), s = n && n(o);
|
|
292
292
|
return {
|
|
293
293
|
c() {
|
|
294
|
-
i =
|
|
294
|
+
i = C("div"), s && s.c(), l(i, "class", "CashierVerifications"), O(
|
|
295
295
|
i,
|
|
296
296
|
"CashierVerificationsDesktop",
|
|
297
297
|
/*desktopView*/
|
|
@@ -299,10 +299,10 @@ function Qe(o) {
|
|
|
299
299
|
);
|
|
300
300
|
},
|
|
301
301
|
m(a, d) {
|
|
302
|
-
B(a, i, d),
|
|
302
|
+
B(a, i, d), s && s.m(i, null), o[19](i);
|
|
303
303
|
},
|
|
304
304
|
p(a, d) {
|
|
305
|
-
|
|
305
|
+
n === (n = t(a)) && s ? s.p(a, d) : (s && s.d(1), s = n && n(a), s && (s.c(), s.m(i, null))), d[0] & /*desktopView*/
|
|
306
306
|
32 && O(
|
|
307
307
|
i,
|
|
308
308
|
"CashierVerificationsDesktop",
|
|
@@ -310,30 +310,30 @@ function Qe(o) {
|
|
|
310
310
|
a[5]
|
|
311
311
|
);
|
|
312
312
|
},
|
|
313
|
-
i:
|
|
314
|
-
o:
|
|
313
|
+
i: G,
|
|
314
|
+
o: G,
|
|
315
315
|
d(a) {
|
|
316
|
-
a && M(i),
|
|
316
|
+
a && M(i), s && s.d(), o[19](null);
|
|
317
317
|
}
|
|
318
318
|
};
|
|
319
319
|
}
|
|
320
320
|
const $e = "verification_explanation_video_widgets.MP4";
|
|
321
321
|
function ei(o, i, t) {
|
|
322
|
-
let
|
|
323
|
-
|
|
324
|
-
let { endpoint: a } = i, { lang: d = "en" } = i, { translationurl: v = "" } = i, { clientstyling:
|
|
322
|
+
let n, s;
|
|
323
|
+
Z(o, Ne, (e) => t(8, n = e)), Z(o, Xe, (e) => t(27, s = e)), Q.extend(Ye);
|
|
324
|
+
let { endpoint: a } = i, { lang: d = "en" } = i, { translationurl: v = "" } = i, { clientstyling: D = "" } = i, { clientstylingurl: k = "" } = i, { session: V = "" } = i, { customerid: _ = "" } = i, { playersession: x = "" } = i, { mbsource: w = "" } = i, b, L = /* @__PURE__ */ new Set(), R = /* @__PURE__ */ new Set(), S, h, m, f = !1, P = !0, u = !1, z = "", W = !1, ce = window.navigator.userAgent;
|
|
325
325
|
var E;
|
|
326
326
|
(function(e) {
|
|
327
327
|
e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
|
|
328
328
|
})(E || (E = {}));
|
|
329
|
-
var
|
|
329
|
+
var N;
|
|
330
330
|
(function(e) {
|
|
331
331
|
e.Requested = "Requested";
|
|
332
|
-
})(
|
|
333
|
-
var
|
|
332
|
+
})(N || (N = {}));
|
|
333
|
+
var y;
|
|
334
334
|
(function(e) {
|
|
335
335
|
e.Unknown = "Unknown", e.Unverified = "Unverified", e.InProgress = "InProgress", e.Failed = "Failed", e.Verified = "Verified", e.Referred = "Referred", e.True = "True", e.False = "False", e.AwaitingForResponse = "AwaitingForResponse";
|
|
336
|
-
})(
|
|
336
|
+
})(y || (y = {}));
|
|
337
337
|
var I;
|
|
338
338
|
(function(e) {
|
|
339
339
|
e.Unknown = "Unknown", e.Documents = "Documents", e.Age = "Age", e.Pep = "Pep", e.Sanction = "Sanction", e.Aml = "Aml", e.ProofOfAddress = "ProofOfAddress", e.SourceOfWealth = "SourceOfWealth", e.SocialMedia = "SocialMedia", e.Biometric = "Biometric";
|
|
@@ -341,13 +341,13 @@ function ei(o, i, t) {
|
|
|
341
341
|
const Y = (e) => {
|
|
342
342
|
e.data && e.data.type;
|
|
343
343
|
};
|
|
344
|
-
|
|
344
|
+
Fe(() => (window.addEventListener("message", Y), Se(), () => {
|
|
345
345
|
window.removeEventListener("message", Y);
|
|
346
346
|
}));
|
|
347
347
|
const le = [
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
348
|
+
y.InProgress,
|
|
349
|
+
y.Referred,
|
|
350
|
+
y.AwaitingForResponse
|
|
351
351
|
], fe = () => {
|
|
352
352
|
let e = v;
|
|
353
353
|
if (e)
|
|
@@ -363,9 +363,9 @@ function ei(o, i, t) {
|
|
|
363
363
|
$(e, ee[e]);
|
|
364
364
|
});
|
|
365
365
|
const de = () => {
|
|
366
|
-
|
|
367
|
-
},
|
|
368
|
-
t(18, h =
|
|
366
|
+
Ke(d);
|
|
367
|
+
}, X = () => {
|
|
368
|
+
t(18, h = pe());
|
|
369
369
|
const e = new URL(`${a}/v1/player/${_}/verification/GetKYCCustomerStatus?language=${d}`), r = new Headers();
|
|
370
370
|
r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("x-sessionid", `${x}`), r.append("X-Client-Request-Timestamp", Q.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
371
371
|
const c = {
|
|
@@ -373,97 +373,97 @@ function ei(o, i, t) {
|
|
|
373
373
|
headers: r,
|
|
374
374
|
body: JSON.stringify({})
|
|
375
375
|
};
|
|
376
|
-
t(7,
|
|
377
|
-
const T = ue(
|
|
378
|
-
S =
|
|
376
|
+
t(7, W = !0), fetch(e, c).then((p) => p.json()).then((p) => {
|
|
377
|
+
const T = ue(p == null ? void 0 : p.Verifications);
|
|
378
|
+
S = me(T), S.VerificationStatuses.forEach((H) => {
|
|
379
379
|
H.VerificationUrlType !== "Widget" && L.add(H.Vendor);
|
|
380
|
-
}), t(3,
|
|
381
|
-
}).finally(() => t(7,
|
|
380
|
+
}), t(3, m = ye());
|
|
381
|
+
}).finally(() => t(7, W = !1));
|
|
382
382
|
}, ue = (e) => e ? e.sort((r, c) => new Date(c.Created).getTime() - new Date(r.Created).getTime()) : [], he = () => {
|
|
383
|
-
|
|
384
|
-
},
|
|
385
|
-
let e = (V ||
|
|
383
|
+
s && X();
|
|
384
|
+
}, pe = () => {
|
|
385
|
+
let e = (V || s).split(".")[1];
|
|
386
386
|
if (e) {
|
|
387
387
|
let r = JSON.parse(atob(e));
|
|
388
388
|
return r.cdn + "/cashier/operator-assets/" + (r == null ? void 0 : r.mid);
|
|
389
389
|
}
|
|
390
390
|
return "";
|
|
391
|
-
},
|
|
391
|
+
}, me = (e) => {
|
|
392
392
|
var c;
|
|
393
393
|
if (!e || !e.length)
|
|
394
394
|
return {
|
|
395
|
-
VerificationSummaryStatus:
|
|
395
|
+
VerificationSummaryStatus: y.Unverified,
|
|
396
396
|
VerificationStatuses: []
|
|
397
397
|
};
|
|
398
398
|
const r = ve(e);
|
|
399
399
|
if (r && r.length) {
|
|
400
|
-
const
|
|
400
|
+
const p = ge(r);
|
|
401
401
|
return {
|
|
402
|
-
VerificationSummaryStatus:
|
|
403
|
-
VerificationUrl: (c =
|
|
404
|
-
VerificationStatuses:
|
|
402
|
+
VerificationSummaryStatus: p.Status,
|
|
403
|
+
VerificationUrl: (c = p.Flags) == null ? void 0 : c.DeferredUrlKey,
|
|
404
|
+
VerificationStatuses: K(r, p.Status)
|
|
405
405
|
};
|
|
406
406
|
} else
|
|
407
407
|
return {
|
|
408
|
-
VerificationSummaryStatus: e.some((T) => T.Status ===
|
|
409
|
-
VerificationStatuses:
|
|
408
|
+
VerificationSummaryStatus: e.some((T) => T.Status === y.Failed) ? y.Failed : y.Verified,
|
|
409
|
+
VerificationStatuses: K(e, [y.Failed])
|
|
410
410
|
};
|
|
411
411
|
}, ge = (e) => e.reduce(
|
|
412
412
|
(r, c) => r ? new Date(r) < new Date(c) ? c : r : c,
|
|
413
413
|
0
|
|
414
|
-
),
|
|
415
|
-
var
|
|
414
|
+
), K = (e, r) => e.filter((c) => r.includes(c.Status)).map((c) => {
|
|
415
|
+
var p, T;
|
|
416
416
|
return {
|
|
417
417
|
Type: c.Type,
|
|
418
418
|
Vendor: c.VendorName,
|
|
419
419
|
VerificationDocuments: c.Documents ? [...c.Documents] : [],
|
|
420
|
-
VerificationUrlType: (
|
|
420
|
+
VerificationUrlType: (p = c.FlowInfo) == null ? void 0 : p.Type,
|
|
421
421
|
VerificationUrl: (T = c.FlowInfo) == null ? void 0 : T.Url
|
|
422
422
|
};
|
|
423
|
-
}), ve = (e) => e.filter((r) => le.includes(r.Status) ? r.FlowInfo && r.FlowInfo.Url || we(r) ||
|
|
424
|
-
const r = e.Documents && e.VendorName === E.Manual, c = e.Documents && e.Documents.some((
|
|
423
|
+
}), ve = (e) => e.filter((r) => le.includes(r.Status) ? r.FlowInfo && r.FlowInfo.Url || we(r) || ke(r) : !1), we = (e) => {
|
|
424
|
+
const r = e.Documents && e.VendorName === E.Manual, c = e.Documents && e.Documents.some((p) => p.Status === N.Requested);
|
|
425
425
|
return r && c;
|
|
426
|
-
},
|
|
426
|
+
}, ke = (e) => e.VendorName === E.ShuftiPro && e.Status === y.Referred, ye = () => {
|
|
427
427
|
switch (S.VerificationSummaryStatus) {
|
|
428
|
-
case
|
|
428
|
+
case y.InProgress:
|
|
429
429
|
const e = [];
|
|
430
430
|
return L.forEach((r) => {
|
|
431
431
|
e.push(Ve(r));
|
|
432
432
|
}), e;
|
|
433
|
-
case
|
|
434
|
-
return [
|
|
435
|
-
case
|
|
436
|
-
return [
|
|
433
|
+
case y.Referred:
|
|
434
|
+
return [n("verification.idenfy.referred-awaiting")];
|
|
435
|
+
case y.Failed:
|
|
436
|
+
return [n("verification.message.failed")];
|
|
437
437
|
}
|
|
438
438
|
}, Ve = (e) => {
|
|
439
439
|
const r = S.VerificationStatuses.filter((c) => c.Vendor === e);
|
|
440
440
|
if (e === E.ShuftiPro)
|
|
441
|
-
return
|
|
441
|
+
return be(r);
|
|
442
442
|
{
|
|
443
|
-
const c =
|
|
443
|
+
const c = n("verification.idenfy.link-name"), p = {
|
|
444
444
|
link: `<a href="${r[0].VerificationUrl}" target="_blank">${c}</a>`
|
|
445
445
|
};
|
|
446
|
-
return
|
|
446
|
+
return n("verification.idenfy.in-progress", { values: p });
|
|
447
447
|
}
|
|
448
|
-
},
|
|
449
|
-
const r = [], c = {},
|
|
448
|
+
}, be = (e) => {
|
|
449
|
+
const r = [], c = {}, p = [
|
|
450
450
|
I.Biometric,
|
|
451
451
|
I.Documents,
|
|
452
452
|
I.ProofOfAddress
|
|
453
453
|
];
|
|
454
454
|
e.forEach((q) => {
|
|
455
|
-
|
|
455
|
+
p.includes(q.Type) && (r.push(q.Type), c[q.Type] = Pe(q, Ce(q.Type)));
|
|
456
456
|
});
|
|
457
457
|
let T = r.every((q) => R.has(q)), H = `verification.shuftipro.in-progress.${r.sort().join(".")}`;
|
|
458
|
-
return T ?
|
|
459
|
-
},
|
|
458
|
+
return T ? n("verification.shuftipro.validations-started") : n(H, { values: c });
|
|
459
|
+
}, Pe = (e, r) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${r}</a>`, Ce = (e) => n(`verification.shuftipro.link-name.${e}`), De = () => {
|
|
460
460
|
t(4, f = !f);
|
|
461
461
|
}, Se = () => {
|
|
462
462
|
t(5, P = !Ee(ce));
|
|
463
463
|
}, _e = () => {
|
|
464
|
-
|
|
464
|
+
z = h + "/" + d + "/" + $e;
|
|
465
465
|
try {
|
|
466
|
-
fetch(
|
|
466
|
+
fetch(z, { method: "HEAD" }).then((e) => {
|
|
467
467
|
t(6, u = e.ok);
|
|
468
468
|
});
|
|
469
469
|
} catch (e) {
|
|
@@ -473,37 +473,37 @@ function ei(o, i, t) {
|
|
|
473
473
|
window.dispatchEvent(new CustomEvent(
|
|
474
474
|
"modal-update",
|
|
475
475
|
{
|
|
476
|
-
detail: { type: "video", data: { videoSrc:
|
|
476
|
+
detail: { type: "video", data: { videoSrc: z } }
|
|
477
477
|
}
|
|
478
478
|
));
|
|
479
479
|
};
|
|
480
480
|
function Ae(e) {
|
|
481
481
|
Ie[e ? "unshift" : "push"](() => {
|
|
482
|
-
|
|
482
|
+
b = e, t(2, b);
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
485
|
return o.$$set = (e) => {
|
|
486
|
-
"endpoint" in e && t(11, a = e.endpoint), "lang" in e && t(12, d = e.lang), "translationurl" in e && t(13, v = e.translationurl), "clientstyling" in e && t(0,
|
|
486
|
+
"endpoint" in e && t(11, a = e.endpoint), "lang" in e && t(12, d = e.lang), "translationurl" in e && t(13, v = e.translationurl), "clientstyling" in e && t(0, D = e.clientstyling), "clientstylingurl" in e && t(1, k = e.clientstylingurl), "session" in e && t(14, V = e.session), "customerid" in e && t(15, _ = e.customerid), "playersession" in e && t(16, x = e.playersession), "mbsource" in e && t(17, w = e.mbsource);
|
|
487
487
|
}, o.$$.update = () => {
|
|
488
488
|
o.$$.dirty[0] & /*lang*/
|
|
489
489
|
4096 && d && de(), o.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
490
|
-
83968 && a && V && x &&
|
|
490
|
+
83968 && a && V && x && X(), o.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
491
491
|
83968 && a && !V && x && he(), o.$$.dirty[0] & /*translationurl*/
|
|
492
492
|
8192 && v && fe(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
493
|
-
5 &&
|
|
494
|
-
6 &&
|
|
493
|
+
5 && D && b && He(b, D), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
494
|
+
6 && k && b && Ue(b, k), o.$$.dirty[0] & /*staticCdnUrl*/
|
|
495
495
|
262144 && h && _e(), o.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
496
|
-
131076 && w &&
|
|
496
|
+
131076 && w && b && je(b, `${w}.Style`);
|
|
497
497
|
}, [
|
|
498
|
-
C,
|
|
499
|
-
y,
|
|
500
498
|
D,
|
|
501
|
-
|
|
499
|
+
k,
|
|
500
|
+
b,
|
|
501
|
+
m,
|
|
502
502
|
f,
|
|
503
503
|
P,
|
|
504
504
|
u,
|
|
505
|
-
|
|
506
|
-
|
|
505
|
+
W,
|
|
506
|
+
n,
|
|
507
507
|
De,
|
|
508
508
|
xe,
|
|
509
509
|
a,
|
|
@@ -536,7 +536,7 @@ class ii extends Be {
|
|
|
536
536
|
playersession: 16,
|
|
537
537
|
mbsource: 17
|
|
538
538
|
},
|
|
539
|
-
|
|
539
|
+
Ge,
|
|
540
540
|
[-1, -1]
|
|
541
541
|
);
|
|
542
542
|
}
|
|
@@ -595,7 +595,7 @@ class ii extends Be {
|
|
|
595
595
|
this.$$set({ mbsource: i }), A();
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
-
|
|
598
|
+
We(ii, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, playersession: {}, mbsource: {} }, [], [], !0);
|
|
599
599
|
export {
|
|
600
600
|
ii as default
|
|
601
601
|
};
|