@everymatrix/cashier-page 1.99.17 → 1.99.19
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-CUtNMhZV.js +5858 -0
- package/components/CashierCarousel-MBtvTbcb.cjs +23 -0
- package/components/CashierCarousel-Tx0f5-LG.js +5896 -0
- package/components/CashierError-C7eQzwUP.cjs +1 -0
- package/components/{CashierError-GsEDSXtA.js → CashierError-Dyxg1sq3.js} +6 -7
- package/components/{CashierError-4dP13hBI.js → CashierError-kl-Hjy3m.js} +6 -7
- package/components/CashierHeader-BKcZqENP.js +432 -0
- package/components/CashierHeader-ByWJ_k92.cjs +1 -0
- package/components/CashierHeader-WI5T8myo.js +432 -0
- package/components/{CashierIframeRedirect-CKNMtdwW.js → CashierIframeRedirect-C_1-xORQ.js} +87 -72
- package/components/{CashierIframeRedirect-BEsPx_Z8.js → CashierIframeRedirect-D5wLT4Ip.js} +81 -66
- package/components/CashierIframeRedirect-EU2aPm8u.cjs +1 -0
- package/components/{CashierMethodDetails-6gecWa6-.js → CashierMethodDetails-BREpDnlu.js} +3270 -2845
- package/components/CashierMethodDetails-CYwLk7rR.cjs +287 -0
- package/components/{CashierMethodDetails-Di4M7A7s.js → CashierMethodDetails-Cob_AEyz.js} +3407 -2982
- package/components/{CashierMethodsList-CJqErGs4.js → CashierMethodsList-C1JyivW4.js} +31 -31
- package/components/CashierMethodsList-CcO-EerQ.cjs +1 -0
- package/components/{CashierMethodsList-DxTcwp9y.js → CashierMethodsList-DU64oEyD.js} +32 -32
- package/components/CashierModal-BHWX0DmT.cjs +1 -0
- package/components/{CashierModal-jptr1BjB.js → CashierModal-C4PU5_PU.js} +34 -35
- package/components/{CashierModal-BmXXJZSw.js → CashierModal-Cpxd5bJQ.js} +52 -53
- package/components/{CashierNotifications-DpUJKBKY.js → CashierNotifications-B-OQoaFK.js} +27 -27
- package/components/CashierNotifications-BRQYroR0.cjs +1 -0
- package/components/{CashierNotifications-slqy0GL5.js → CashierNotifications-Bedwtk72.js} +29 -29
- package/components/CashierPage-BgoraPRn.js +4853 -0
- package/components/CashierPage-BsAuSvEP.cjs +1 -0
- package/components/CashierPage-D9Eoq0xv.js +4887 -0
- package/components/{CashierReceiptPage-Bmki8Rgo.js → CashierReceiptPage-Bs1-A5oO.js} +88 -87
- package/components/{CashierReceiptPage-CxEoywyO.js → CashierReceiptPage-CKEro91e.js} +105 -104
- package/components/CashierReceiptPage-DJG1aNbY.cjs +29 -0
- package/components/{CashierSessionExpirationModal-DLzJHllv.js → CashierSessionExpirationModal-CdSUe7hK.js} +59 -58
- package/components/{CashierSessionExpirationModal-0ZABOlrt.js → CashierSessionExpirationModal-CePqbW5W.js} +83 -82
- package/components/CashierSessionExpirationModal-ChfT0Imk.cjs +2 -0
- package/components/CashierSpinner-C1fzGsEh.cjs +1 -0
- package/components/{CashierSpinner-jlh3kLrw.js → CashierSpinner-D1qQLxEW.js} +18 -19
- package/components/{CashierSpinner-Bic1yXPY.js → CashierSpinner-wvDbhkcq.js} +14 -15
- package/components/{CashierStepUp-g-G22Lc4.js → CashierStepUp-8viDm0qd.js} +104 -105
- package/components/{CashierStepUp-srh84KwL.js → CashierStepUp-BJ3ojmDK.js} +6 -7
- package/components/CashierStepUp-V1DZKhrx.cjs +1 -0
- package/components/CashierTransactionHistory-Blt88-F-.cjs +1 -0
- package/components/{CashierTransactionHistory-yI8ncB6o.js → CashierTransactionHistory-C_HP2wr2.js} +61 -60
- package/components/{CashierTransactionHistory-CxMz_ono.js → CashierTransactionHistory-c3jwP7YJ.js} +61 -60
- package/components/{CashierVerifications-DJsdsHJU.js → CashierVerifications-B8AtaT5B.js} +125 -141
- package/components/CashierVerifications-CMRN3aAD.cjs +1 -0
- package/components/{CashierVerifications-CxFzWKAg.js → CashierVerifications-PeSLRi-g.js} +121 -137
- package/components/TxnStatusIcon-CL30ATPa.cjs +1 -0
- package/components/{TxnStatusIcon-THzMx_aQ.js → TxnStatusIcon-CUxVvL_p.js} +12 -12
- package/components/{TxnStatusIcon-B52lfQx_.js → TxnStatusIcon-ipRjsjNx.js} +1 -1
- package/components/{TxnTypeIcons-BHrNWU9Q.js → TxnTypeIcons-B6Ue3pUq.js} +1 -1
- package/components/TxnTypeIcons-Cksp3nqd.cjs +1 -0
- package/components/{TxnTypeIcons-DXAaJnwf.js → TxnTypeIcons-CufWq1r7.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +2 -2
- package/esnext/ssr.js +1 -0
- package/package.json +20 -4
- package/types/index.d.ts +69 -0
- package/types/react.d.ts +14 -0
- package/components/CashierCarousel-BZ-i1EsX.js +0 -732
- package/components/CashierCarousel-CJAaHXXD.js +0 -735
- package/components/CashierCarousel-Cu_RNUHY.cjs +0 -1
- package/components/CashierError-D0mOIAnU.cjs +0 -1
- package/components/CashierHeader-CK33wmWw.js +0 -491
- package/components/CashierHeader-DaUYq9lj.cjs +0 -1
- package/components/CashierHeader-gQMHuTqw.js +0 -491
- package/components/CashierIframeRedirect-D6UXTJnb.cjs +0 -1
- package/components/CashierMethodDetails-CSedTA6S.cjs +0 -287
- package/components/CashierMethodsList-Dd2UiVhS.cjs +0 -1
- package/components/CashierModal-BAldCDjj.cjs +0 -1
- package/components/CashierNotifications-BCksCjnd.cjs +0 -1
- package/components/CashierPage-9TlSv0Ys.js +0 -10387
- package/components/CashierPage-CRTe3srS.js +0 -10334
- package/components/CashierPage-GUVKpACj.cjs +0 -23
- package/components/CashierReceiptPage-DU78zOm2.cjs +0 -29
- package/components/CashierSessionExpirationModal-ZVuwRFF3.cjs +0 -2
- package/components/CashierSpinner-D5xvgSGR.cjs +0 -1
- package/components/CashierStepUp-CitQkE0i.cjs +0 -1
- package/components/CashierTransactionHistory-CxxqOj18.cjs +0 -1
- package/components/CashierVerifications-BJloPP6f.cjs +0 -1
- package/components/TxnStatusIcon-B_aOthN3.cjs +0 -1
- package/components/TxnTypeIcons-NnRP_P64.cjs +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as Me, i as We, $ as
|
|
2
|
-
import {
|
|
1
|
+
import { a as Me, i as We, $ as He, S as Ie, b as Ue, s as Re, f as B, c as Ee, I as $, d as q, Y as C, h as T, j as w, k as l, l as ee, o as je, P as Ne, v as Ye, B as N, a0 as ie, a6 as Ke, x as ce, a5 as re, q as v, a8 as Xe, z as de, Z as Y, r as H, y as ue, N as Ze, D as Ge, E as Je, F as Qe, G as $e, H as ei } from "./CashierCarousel-CUtNMhZV.js";
|
|
2
|
+
import { d as te, u as ii, x as ri } from "./CashierMethodDetails-Cob_AEyz.js";
|
|
3
3
|
function oe(t, i) {
|
|
4
4
|
Me(t, i);
|
|
5
5
|
}
|
|
6
6
|
function ti(t) {
|
|
7
7
|
We({
|
|
8
8
|
fallbackLocale: "en"
|
|
9
|
-
}),
|
|
9
|
+
}), He.set(t);
|
|
10
10
|
}
|
|
11
11
|
const ne = {
|
|
12
12
|
en: {
|
|
@@ -194,28 +194,12 @@ const ne = {
|
|
|
194
194
|
"verification.shuftipro.validations-started": "Yoxlamanı tamamladıqdan sonra əməliyyata davam edin"
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
|
-
if (typeof window < "u") {
|
|
198
|
-
let t = function(i) {
|
|
199
|
-
return function(...r) {
|
|
200
|
-
try {
|
|
201
|
-
return i.apply(this, r);
|
|
202
|
-
} catch (o) {
|
|
203
|
-
if (o instanceof DOMException && o.message.includes("has already been used with this registry") || o.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
204
|
-
return !1;
|
|
205
|
-
throw o;
|
|
206
|
-
}
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
customElements.define = t(customElements.define), import("./CashierModal-jptr1BjB.js").then(({ default: i }) => {
|
|
210
|
-
!customElements.get("cashier-modal") && customElements.define("cashier-modal", i.element);
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
197
|
function oi(t) {
|
|
214
|
-
|
|
198
|
+
Ee(t, "svelte-1kmyt1l", '*,*::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 .CashierVerificationsWrapper:has(.CashierVerificationMessage){margin:var(--emw--spacing-small, 12px) auto}.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:var(--verifications-list-height, 0);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)}');
|
|
215
199
|
}
|
|
216
200
|
function se(t, i, r) {
|
|
217
|
-
const
|
|
218
|
-
return
|
|
201
|
+
const n = t.slice();
|
|
202
|
+
return n[58] = i[r], n;
|
|
219
203
|
}
|
|
220
204
|
function ni(t) {
|
|
221
205
|
let i, r = (
|
|
@@ -224,17 +208,17 @@ function ni(t) {
|
|
|
224
208
|
);
|
|
225
209
|
return {
|
|
226
210
|
c() {
|
|
227
|
-
i =
|
|
211
|
+
i = w("div"), r && r.c(), l(i, "class", "CashierVerificationsWrapper");
|
|
228
212
|
},
|
|
229
|
-
m(
|
|
230
|
-
T(
|
|
213
|
+
m(n, s) {
|
|
214
|
+
T(n, i, s), r && r.m(i, null);
|
|
231
215
|
},
|
|
232
|
-
p(
|
|
216
|
+
p(n, s) {
|
|
233
217
|
/*displayMessages*/
|
|
234
|
-
|
|
218
|
+
n[3].length > 0 ? r ? r.p(n, s) : (r = ae(n), r.c(), r.m(i, null)) : r && (r.d(1), r = null);
|
|
235
219
|
},
|
|
236
|
-
d(
|
|
237
|
-
|
|
220
|
+
d(n) {
|
|
221
|
+
n && q(i), r && r.d();
|
|
238
222
|
}
|
|
239
223
|
};
|
|
240
224
|
}
|
|
@@ -242,7 +226,7 @@ function si(t) {
|
|
|
242
226
|
let i;
|
|
243
227
|
return {
|
|
244
228
|
c() {
|
|
245
|
-
i =
|
|
229
|
+
i = w("cashier-spinner"), N(
|
|
246
230
|
i,
|
|
247
231
|
"clientstylingurl",
|
|
248
232
|
/*clientstylingurl*/
|
|
@@ -254,17 +238,17 @@ function si(t) {
|
|
|
254
238
|
t[0]
|
|
255
239
|
);
|
|
256
240
|
},
|
|
257
|
-
m(r,
|
|
258
|
-
T(r, i,
|
|
241
|
+
m(r, n) {
|
|
242
|
+
T(r, i, n);
|
|
259
243
|
},
|
|
260
|
-
p(r,
|
|
261
|
-
|
|
244
|
+
p(r, n) {
|
|
245
|
+
n[0] & /*clientstylingurl*/
|
|
262
246
|
2 && N(
|
|
263
247
|
i,
|
|
264
248
|
"clientstylingurl",
|
|
265
249
|
/*clientstylingurl*/
|
|
266
250
|
r[1]
|
|
267
|
-
),
|
|
251
|
+
), n[0] & /*clientstyling*/
|
|
268
252
|
1 && N(
|
|
269
253
|
i,
|
|
270
254
|
"clientstyling",
|
|
@@ -278,11 +262,11 @@ function si(t) {
|
|
|
278
262
|
};
|
|
279
263
|
}
|
|
280
264
|
function ae(t) {
|
|
281
|
-
let i, r,
|
|
265
|
+
let i, r, n, s, a, d, p, V = (
|
|
282
266
|
/*$_*/
|
|
283
267
|
t[9]("verificationsRequired") + ""
|
|
284
|
-
), k, z,
|
|
285
|
-
t[8]}px`,
|
|
268
|
+
), k, z, D, A, y, g, O, I, W = `${/*verificationsListHeight*/
|
|
269
|
+
t[8]}px`, _, L, x = ie(
|
|
286
270
|
/*displayMessages*/
|
|
287
271
|
t[3]
|
|
288
272
|
), m = [];
|
|
@@ -294,90 +278,90 @@ function ae(t) {
|
|
|
294
278
|
);
|
|
295
279
|
return {
|
|
296
280
|
c() {
|
|
297
|
-
i =
|
|
281
|
+
i = w("div"), r = Y("svg"), n = Y("path"), s = Y("path"), a = Y("path"), d = H(), p = w("p"), k = ue(V), z = H(), D = w("span"), D.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>', A = H(), y = w("div"), g = w("div");
|
|
298
282
|
for (let c = 0; c < m.length; c += 1)
|
|
299
283
|
m[c].c();
|
|
300
|
-
O =
|
|
301
|
-
|
|
284
|
+
O = H(), h && h.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(r, "width", "24"), l(r, "height", "24"), l(r, "viewBox", "0 0 24 24"), l(r, "fill", "none"), l(r, "xmlns", "http://www.w3.org/2000/svg"), l(D, "class", "CashierVerificationChevron"), C(
|
|
285
|
+
D,
|
|
302
286
|
"ShowVerifications",
|
|
303
287
|
/*allVerificationsVisible*/
|
|
304
288
|
t[4]
|
|
305
|
-
), l(i, "class", "VerificationsHeader"), l(g, "class", "VerificationsListInner"),
|
|
289
|
+
), l(i, "class", "VerificationsHeader"), l(g, "class", "VerificationsListInner"), Ze(() => (
|
|
306
290
|
/*div1_elementresize_handler*/
|
|
307
291
|
t[21].call(g)
|
|
308
|
-
)), l(y, "class", "VerificationsList"),
|
|
292
|
+
)), l(y, "class", "VerificationsList"), C(
|
|
309
293
|
y,
|
|
310
294
|
"ShowVerifications",
|
|
311
295
|
/*allVerificationsVisible*/
|
|
312
296
|
t[4]
|
|
313
|
-
),
|
|
297
|
+
), re(y, "--verifications-list-height", W);
|
|
314
298
|
},
|
|
315
|
-
m(c,
|
|
316
|
-
T(c, i,
|
|
299
|
+
m(c, P) {
|
|
300
|
+
T(c, i, P), v(i, r), v(r, n), v(r, s), v(r, a), v(i, d), v(i, p), v(p, k), v(i, z), v(i, D), T(c, A, P), T(c, y, P), v(y, g);
|
|
317
301
|
for (let u = 0; u < m.length; u += 1)
|
|
318
302
|
m[u] && m[u].m(g, null);
|
|
319
|
-
v(g, O), h && h.m(g, null),
|
|
303
|
+
v(g, O), h && h.m(g, null), I = Xe(
|
|
320
304
|
g,
|
|
321
305
|
/*div1_elementresize_handler*/
|
|
322
306
|
t[21].bind(g)
|
|
323
|
-
),
|
|
307
|
+
), _ || (L = de(
|
|
324
308
|
i,
|
|
325
309
|
"click",
|
|
326
310
|
/*toggleVerifications*/
|
|
327
311
|
t[10]
|
|
328
|
-
),
|
|
312
|
+
), _ = !0);
|
|
329
313
|
},
|
|
330
|
-
p(c,
|
|
331
|
-
if (
|
|
314
|
+
p(c, P) {
|
|
315
|
+
if (P[0] & /*$_*/
|
|
332
316
|
512 && V !== (V = /*$_*/
|
|
333
|
-
c[9]("verificationsRequired") + "") && ce(k, V),
|
|
334
|
-
16 &&
|
|
335
|
-
|
|
317
|
+
c[9]("verificationsRequired") + "") && ce(k, V), P[0] & /*allVerificationsVisible*/
|
|
318
|
+
16 && C(
|
|
319
|
+
D,
|
|
336
320
|
"ShowVerifications",
|
|
337
321
|
/*allVerificationsVisible*/
|
|
338
322
|
c[4]
|
|
339
|
-
),
|
|
323
|
+
), P[0] & /*displayMessages*/
|
|
340
324
|
8) {
|
|
341
|
-
x =
|
|
325
|
+
x = ie(
|
|
342
326
|
/*displayMessages*/
|
|
343
327
|
c[3]
|
|
344
328
|
);
|
|
345
329
|
let u;
|
|
346
330
|
for (u = 0; u < x.length; u += 1) {
|
|
347
331
|
const R = se(c, x, u);
|
|
348
|
-
m[u] ? m[u].p(R,
|
|
332
|
+
m[u] ? m[u].p(R, P) : (m[u] = fe(R), m[u].c(), m[u].m(g, O));
|
|
349
333
|
}
|
|
350
334
|
for (; u < m.length; u += 1)
|
|
351
335
|
m[u].d(1);
|
|
352
336
|
m.length = x.length;
|
|
353
337
|
}
|
|
354
338
|
/*videoExists*/
|
|
355
|
-
c[6] ? h ? h.p(c,
|
|
356
|
-
16 &&
|
|
339
|
+
c[6] ? h ? h.p(c, P) : (h = le(c), h.c(), h.m(g, null)) : h && (h.d(1), h = null), P[0] & /*allVerificationsVisible*/
|
|
340
|
+
16 && C(
|
|
357
341
|
y,
|
|
358
342
|
"ShowVerifications",
|
|
359
343
|
/*allVerificationsVisible*/
|
|
360
344
|
c[4]
|
|
361
|
-
),
|
|
345
|
+
), P[0] & /*verificationsListHeight*/
|
|
362
346
|
256 && W !== (W = `${/*verificationsListHeight*/
|
|
363
|
-
c[8]}px`) &&
|
|
347
|
+
c[8]}px`) && re(y, "--verifications-list-height", W);
|
|
364
348
|
},
|
|
365
349
|
d(c) {
|
|
366
|
-
c && (q(i), q(A), q(y)),
|
|
350
|
+
c && (q(i), q(A), q(y)), Ke(m, c), h && h.d(), I(), _ = !1, L();
|
|
367
351
|
}
|
|
368
352
|
};
|
|
369
353
|
}
|
|
370
354
|
function fe(t) {
|
|
371
|
-
let i, r,
|
|
355
|
+
let i, r, n, s, a = (
|
|
372
356
|
/*message*/
|
|
373
357
|
t[58] + ""
|
|
374
358
|
);
|
|
375
359
|
return {
|
|
376
360
|
c() {
|
|
377
|
-
i =
|
|
361
|
+
i = w("div"), r = w("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>', n = H(), s = w("p"), l(r, "class", "IconVerification"), l(s, "class", "text"), l(i, "class", "CashierVerificationMessage Test");
|
|
378
362
|
},
|
|
379
363
|
m(d, p) {
|
|
380
|
-
T(d, i, p), v(i, r), v(i,
|
|
364
|
+
T(d, i, p), v(i, r), v(i, n), v(i, s), s.innerHTML = a;
|
|
381
365
|
},
|
|
382
366
|
p(d, p) {
|
|
383
367
|
p[0] & /*displayMessages*/
|
|
@@ -390,13 +374,13 @@ function fe(t) {
|
|
|
390
374
|
};
|
|
391
375
|
}
|
|
392
376
|
function le(t) {
|
|
393
|
-
let i, r,
|
|
377
|
+
let i, r, n, s, a = (
|
|
394
378
|
/*$_*/
|
|
395
379
|
t[9]("verification.video.how-to") + ""
|
|
396
380
|
), d, p, V;
|
|
397
381
|
return {
|
|
398
382
|
c() {
|
|
399
|
-
i =
|
|
383
|
+
i = w("div"), r = w("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>', n = H(), s = w("div"), d = ue(a), l(r, "class", "IconVideo"), l(s, "class", "CashierVerificationVideoLink"), C(
|
|
400
384
|
s,
|
|
401
385
|
"CashierVerificationVideoLinkDesktop",
|
|
402
386
|
/*desktopView*/
|
|
@@ -404,7 +388,7 @@ function le(t) {
|
|
|
404
388
|
), l(i, "class", "CashierVerificationVideo Test");
|
|
405
389
|
},
|
|
406
390
|
m(k, z) {
|
|
407
|
-
T(k, i, z), v(i, r), v(i,
|
|
391
|
+
T(k, i, z), v(i, r), v(i, n), v(i, s), v(s, d), p || (V = de(
|
|
408
392
|
i,
|
|
409
393
|
"click",
|
|
410
394
|
/*showVideo*/
|
|
@@ -415,7 +399,7 @@ function le(t) {
|
|
|
415
399
|
z[0] & /*$_*/
|
|
416
400
|
512 && a !== (a = /*$_*/
|
|
417
401
|
k[9]("verification.video.how-to") + "") && ce(d, a), z[0] & /*desktopView*/
|
|
418
|
-
32 &&
|
|
402
|
+
32 && C(
|
|
419
403
|
s,
|
|
420
404
|
"CashierVerificationVideoLinkDesktop",
|
|
421
405
|
/*desktopView*/
|
|
@@ -441,10 +425,10 @@ function ai(t) {
|
|
|
441
425
|
)
|
|
442
426
|
return ni;
|
|
443
427
|
}
|
|
444
|
-
let
|
|
428
|
+
let n = r(t), s = n && n(t);
|
|
445
429
|
return {
|
|
446
430
|
c() {
|
|
447
|
-
i =
|
|
431
|
+
i = w("div"), s && s.c(), l(i, "class", "CashierVerifications"), C(
|
|
448
432
|
i,
|
|
449
433
|
"CashierVerificationsDesktop",
|
|
450
434
|
/*desktopView*/
|
|
@@ -455,8 +439,8 @@ function ai(t) {
|
|
|
455
439
|
T(a, i, d), s && s.m(i, null), t[22](i);
|
|
456
440
|
},
|
|
457
441
|
p(a, d) {
|
|
458
|
-
|
|
459
|
-
32 &&
|
|
442
|
+
n === (n = r(a)) && s ? s.p(a, d) : (s && s.d(1), s = n && n(a), s && (s.c(), s.m(i, null))), d[0] & /*desktopView*/
|
|
443
|
+
32 && C(
|
|
460
444
|
i,
|
|
461
445
|
"CashierVerificationsDesktop",
|
|
462
446
|
/*desktopView*/
|
|
@@ -472,13 +456,13 @@ function ai(t) {
|
|
|
472
456
|
}
|
|
473
457
|
const fi = "verification_explanation_video_widgets.MP4";
|
|
474
458
|
function li(t, i, r) {
|
|
475
|
-
let
|
|
476
|
-
ee(t,
|
|
477
|
-
let { endpoint: a } = i, { lang: d = "en" } = i, { translationurl: p = "" } = i, { clientstyling: V = "" } = i, { clientstylingurl: k = "" } = i, { session: z = "" } = i, { customerid:
|
|
478
|
-
var
|
|
459
|
+
let n, s;
|
|
460
|
+
ee(t, ei, (e) => r(9, n = e)), ee(t, ri, (e) => r(31, s = e)), te.extend(ii);
|
|
461
|
+
let { endpoint: a } = i, { lang: d = "en" } = i, { translationurl: p = "" } = i, { clientstyling: V = "" } = i, { clientstylingurl: k = "" } = i, { session: z = "" } = i, { customerid: D = "" } = i, { playersession: A = "" } = i, { userroles: y = "" } = i, { mbsource: g = "" } = i, O, I = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Set(), _, L, x, m = !1, h = !0, c = !1, P = "", u = !1, R, E = [], K = 0, me = window.navigator.userAgent;
|
|
462
|
+
var U;
|
|
479
463
|
(function(e) {
|
|
480
464
|
e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
|
|
481
|
-
})(
|
|
465
|
+
})(U || (U = {}));
|
|
482
466
|
var X;
|
|
483
467
|
(function(e) {
|
|
484
468
|
e.Requested = "Requested";
|
|
@@ -494,7 +478,7 @@ function li(t, i, r) {
|
|
|
494
478
|
const G = (e) => {
|
|
495
479
|
e.data && e.data.type;
|
|
496
480
|
};
|
|
497
|
-
|
|
481
|
+
je(() => (window.addEventListener("message", G), _e(), () => {
|
|
498
482
|
window.removeEventListener("message", G);
|
|
499
483
|
}));
|
|
500
484
|
const ve = [
|
|
@@ -504,12 +488,12 @@ function li(t, i, r) {
|
|
|
504
488
|
], he = () => {
|
|
505
489
|
let e = p;
|
|
506
490
|
if (e)
|
|
507
|
-
return fetch(e).then((
|
|
508
|
-
Object.keys(
|
|
509
|
-
oe(f,
|
|
491
|
+
return fetch(e).then((o) => o.json()).then((o) => {
|
|
492
|
+
Object.keys(o).forEach((f) => {
|
|
493
|
+
oe(f, o[f]);
|
|
510
494
|
});
|
|
511
|
-
}).catch((
|
|
512
|
-
console.log(
|
|
495
|
+
}).catch((o) => {
|
|
496
|
+
console.log(o);
|
|
513
497
|
});
|
|
514
498
|
};
|
|
515
499
|
Object.keys(ne).forEach((e) => {
|
|
@@ -519,83 +503,83 @@ function li(t, i, r) {
|
|
|
519
503
|
ti(d);
|
|
520
504
|
}, J = () => {
|
|
521
505
|
r(20, L = ye());
|
|
522
|
-
const e = new URL(`${a}/v1/player/${
|
|
523
|
-
|
|
506
|
+
const e = new URL(`${a}/v1/player/${D}/verification/GetKYCCustomerStatus?language=${d}`), o = new Headers();
|
|
507
|
+
o.append("accept", "application/json"), o.append("Content-Type", "application/json"), o.append("x-sessionid", `${A}`), o.append("X-Client-Request-Timestamp", te.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), Array.isArray(E) && E.length > 0 && E.indexOf("MM_CHANNEL_BETA") != -1 && o.append("MM_CHANNEL", "BETA");
|
|
524
508
|
const f = {
|
|
525
509
|
method: "POST",
|
|
526
|
-
headers:
|
|
510
|
+
headers: o,
|
|
527
511
|
body: JSON.stringify({})
|
|
528
512
|
};
|
|
529
|
-
r(7, u = !0), fetch(e, f).then((
|
|
530
|
-
const Z = ge(
|
|
531
|
-
|
|
532
|
-
j.VerificationUrlType !== "Widget" &&
|
|
513
|
+
r(7, u = !0), fetch(e, f).then((S) => S.json()).then((S) => {
|
|
514
|
+
const Z = ge(S?.Verifications);
|
|
515
|
+
_ = Pe(Z), _.VerificationStatuses.forEach((j) => {
|
|
516
|
+
j.VerificationUrlType !== "Widget" && I.add(j.Vendor);
|
|
533
517
|
}), r(3, x = Ve());
|
|
534
518
|
}).finally(() => r(7, u = !1));
|
|
535
|
-
}, ge = (e) => e ? e.sort((
|
|
519
|
+
}, ge = (e) => e ? e.sort((o, f) => new Date(f.Created).getTime() - new Date(o.Created).getTime()) : [], ke = () => {
|
|
536
520
|
s && J();
|
|
537
521
|
}, ye = () => {
|
|
538
522
|
let e = (z || s).split(".")[1];
|
|
539
523
|
if (e) {
|
|
540
|
-
let
|
|
541
|
-
return
|
|
524
|
+
let o = JSON.parse(atob(e));
|
|
525
|
+
return o.cdn + "/cashier/operator-assets/" + o?.mid;
|
|
542
526
|
}
|
|
543
527
|
return "";
|
|
544
|
-
},
|
|
528
|
+
}, Pe = (e) => {
|
|
545
529
|
if (!e || !e.length)
|
|
546
530
|
return {
|
|
547
531
|
VerificationSummaryStatus: b.Unverified,
|
|
548
532
|
VerificationStatuses: []
|
|
549
533
|
};
|
|
550
|
-
const
|
|
551
|
-
if (
|
|
552
|
-
const f = be(
|
|
534
|
+
const o = we(e);
|
|
535
|
+
if (o && o.length) {
|
|
536
|
+
const f = be(o);
|
|
553
537
|
return {
|
|
554
538
|
VerificationSummaryStatus: f.Status,
|
|
555
539
|
VerificationUrl: f.Flags?.DeferredUrlKey,
|
|
556
|
-
VerificationStatuses: Q(
|
|
540
|
+
VerificationStatuses: Q(o, f.Status)
|
|
557
541
|
};
|
|
558
542
|
} else
|
|
559
543
|
return {
|
|
560
|
-
VerificationSummaryStatus: e.some((
|
|
544
|
+
VerificationSummaryStatus: e.some((S) => S.Status === b.Failed) ? b.Failed : b.Verified,
|
|
561
545
|
VerificationStatuses: Q(e, [b.Failed])
|
|
562
546
|
};
|
|
563
547
|
}, be = (e) => e.reduce(
|
|
564
|
-
(
|
|
548
|
+
(o, f) => o ? new Date(o) < new Date(f) ? f : o : f,
|
|
565
549
|
0
|
|
566
|
-
), Q = (e,
|
|
550
|
+
), Q = (e, o) => e.filter((f) => o.includes(f.Status)).map((f) => ({
|
|
567
551
|
Type: f.Type,
|
|
568
552
|
Vendor: f.VendorName,
|
|
569
553
|
VerificationDocuments: f.Documents ? [...f.Documents] : [],
|
|
570
554
|
VerificationUrlType: f.FlowInfo?.Type,
|
|
571
555
|
VerificationUrl: f.FlowInfo?.Url
|
|
572
|
-
})),
|
|
573
|
-
const
|
|
574
|
-
return
|
|
575
|
-
}, Oe = (e) => e.VendorName ===
|
|
576
|
-
switch (
|
|
556
|
+
})), we = (e) => e.filter((o) => ve.includes(o.Status) ? o.FlowInfo && o.FlowInfo.Url || ze(o) || Oe(o) : !1), ze = (e) => {
|
|
557
|
+
const o = e.Documents && e.VendorName === U.Manual, f = e.Documents && e.Documents.some((S) => S.Status === X.Requested);
|
|
558
|
+
return o && f;
|
|
559
|
+
}, Oe = (e) => e.VendorName === U.ShuftiPro && e.Status === b.Referred, Ve = () => {
|
|
560
|
+
switch (_.VerificationSummaryStatus) {
|
|
577
561
|
case b.InProgress:
|
|
578
562
|
const e = [];
|
|
579
|
-
return
|
|
580
|
-
e.push(
|
|
563
|
+
return I.forEach((o) => {
|
|
564
|
+
e.push(Se(o));
|
|
581
565
|
}), e;
|
|
582
566
|
case b.Referred:
|
|
583
|
-
return [
|
|
567
|
+
return [n("verification.idenfy.referred-awaiting")];
|
|
584
568
|
case b.Failed:
|
|
585
|
-
return [
|
|
569
|
+
return [n("verification.message.failed")];
|
|
586
570
|
}
|
|
587
|
-
},
|
|
588
|
-
const
|
|
589
|
-
if (e ===
|
|
590
|
-
return
|
|
571
|
+
}, Se = (e) => {
|
|
572
|
+
const o = _.VerificationStatuses.filter((f) => f.Vendor === e);
|
|
573
|
+
if (e === U.ShuftiPro)
|
|
574
|
+
return De(o);
|
|
591
575
|
{
|
|
592
|
-
const f =
|
|
593
|
-
link: `<a href="${
|
|
576
|
+
const f = n("verification.idenfy.link-name"), S = {
|
|
577
|
+
link: `<a href="${o[0].VerificationUrl}" target="_blank">${f}</a>`
|
|
594
578
|
};
|
|
595
|
-
return
|
|
579
|
+
return n("verification.idenfy.in-progress", { values: S });
|
|
596
580
|
}
|
|
597
|
-
},
|
|
598
|
-
const
|
|
581
|
+
}, De = (e) => {
|
|
582
|
+
const o = [], f = {}, S = [
|
|
599
583
|
F.Biometric,
|
|
600
584
|
F.Documents,
|
|
601
585
|
F.ProofOfAddress,
|
|
@@ -603,30 +587,30 @@ function li(t, i, r) {
|
|
|
603
587
|
F.SourceOfWealth
|
|
604
588
|
];
|
|
605
589
|
e.forEach((M) => {
|
|
606
|
-
|
|
590
|
+
S.includes(M.Type) && (o.push(M.Type), f[M.Type] = Be(M, Ae(M.Type)));
|
|
607
591
|
});
|
|
608
|
-
let Z =
|
|
609
|
-
return Z ?
|
|
610
|
-
}, Be = (e,
|
|
592
|
+
let Z = o.every((M) => W.has(M)), j = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
|
|
593
|
+
return Z ? n("verification.shuftipro.validations-started") : n(j, { values: f });
|
|
594
|
+
}, Be = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, Ae = (e) => n(`verification.shuftipro.link-name.${e}`), xe = () => {
|
|
611
595
|
r(4, m = !m);
|
|
612
|
-
}, Ce = () => {
|
|
613
|
-
r(5, h = !Ye(me));
|
|
614
596
|
}, _e = () => {
|
|
615
|
-
|
|
597
|
+
r(5, h = !Ne(me));
|
|
598
|
+
}, Ce = () => {
|
|
599
|
+
P = L + "/" + d + "/" + fi;
|
|
616
600
|
try {
|
|
617
|
-
fetch(
|
|
601
|
+
fetch(P, { method: "HEAD" }).then((e) => {
|
|
618
602
|
r(6, c = e.ok);
|
|
619
603
|
});
|
|
620
604
|
} catch {
|
|
621
605
|
r(6, c = !1);
|
|
622
606
|
}
|
|
623
607
|
}, qe = () => {
|
|
624
|
-
y.length > 0 && (
|
|
608
|
+
y.length > 0 && (E = y.split(","));
|
|
625
609
|
}, Te = () => {
|
|
626
610
|
window.dispatchEvent(new CustomEvent(
|
|
627
611
|
"modal-update",
|
|
628
612
|
{
|
|
629
|
-
detail: { type: "video", data: { videoSrc:
|
|
613
|
+
detail: { type: "video", data: { videoSrc: P } }
|
|
630
614
|
}
|
|
631
615
|
));
|
|
632
616
|
};
|
|
@@ -634,12 +618,12 @@ function li(t, i, r) {
|
|
|
634
618
|
K = this.clientHeight, r(8, K);
|
|
635
619
|
}
|
|
636
620
|
function Fe(e) {
|
|
637
|
-
|
|
621
|
+
Ye[e ? "unshift" : "push"](() => {
|
|
638
622
|
O = e, r(2, O);
|
|
639
623
|
});
|
|
640
624
|
}
|
|
641
625
|
return t.$$set = (e) => {
|
|
642
|
-
"endpoint" in e && r(12, a = e.endpoint), "lang" in e && r(13, d = e.lang), "translationurl" in e && r(14, p = e.translationurl), "clientstyling" in e && r(0, V = e.clientstyling), "clientstylingurl" in e && r(1, k = e.clientstylingurl), "session" in e && r(15, z = e.session), "customerid" in e && r(16,
|
|
626
|
+
"endpoint" in e && r(12, a = e.endpoint), "lang" in e && r(13, d = e.lang), "translationurl" in e && r(14, p = e.translationurl), "clientstyling" in e && r(0, V = e.clientstyling), "clientstylingurl" in e && r(1, k = e.clientstylingurl), "session" in e && r(15, z = e.session), "customerid" in e && r(16, D = e.customerid), "playersession" in e && r(17, A = e.playersession), "userroles" in e && r(18, y = e.userroles), "mbsource" in e && r(19, g = e.mbsource);
|
|
643
627
|
}, t.$$.update = () => {
|
|
644
628
|
t.$$.dirty[0] & /*userroles*/
|
|
645
629
|
262144 && y && qe(), t.$$.dirty[0] & /*lang*/
|
|
@@ -647,10 +631,10 @@ function li(t, i, r) {
|
|
|
647
631
|
167936 && a && z && A && J(), t.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
648
632
|
167936 && a && !z && A && ke(), t.$$.dirty[0] & /*translationurl*/
|
|
649
633
|
16384 && p && he(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
650
|
-
5 && V && O &&
|
|
651
|
-
6 && k && O &&
|
|
652
|
-
1048576 && L &&
|
|
653
|
-
524292 && g && O &&
|
|
634
|
+
5 && V && O && Ge(O, V), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
635
|
+
6 && k && O && Je(O, k), t.$$.dirty[0] & /*staticCdnUrl*/
|
|
636
|
+
1048576 && L && Ce(), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
637
|
+
524292 && g && O && Qe(O, `${g}.Style`, R);
|
|
654
638
|
}, [
|
|
655
639
|
V,
|
|
656
640
|
k,
|
|
@@ -661,14 +645,14 @@ function li(t, i, r) {
|
|
|
661
645
|
c,
|
|
662
646
|
u,
|
|
663
647
|
K,
|
|
664
|
-
|
|
648
|
+
n,
|
|
665
649
|
xe,
|
|
666
650
|
Te,
|
|
667
651
|
a,
|
|
668
652
|
d,
|
|
669
653
|
p,
|
|
670
654
|
z,
|
|
671
|
-
|
|
655
|
+
D,
|
|
672
656
|
A,
|
|
673
657
|
y,
|
|
674
658
|
g,
|
|
@@ -677,9 +661,9 @@ function li(t, i, r) {
|
|
|
677
661
|
Fe
|
|
678
662
|
];
|
|
679
663
|
}
|
|
680
|
-
class ci extends
|
|
664
|
+
class ci extends Ie {
|
|
681
665
|
constructor(i) {
|
|
682
|
-
super(),
|
|
666
|
+
super(), Ue(
|
|
683
667
|
this,
|
|
684
668
|
i,
|
|
685
669
|
li,
|
|
@@ -762,7 +746,7 @@ class ci extends He {
|
|
|
762
746
|
this.$$set({ mbsource: i }), B();
|
|
763
747
|
}
|
|
764
748
|
}
|
|
765
|
-
|
|
749
|
+
$e(ci, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, playersession: {}, userroles: {}, mbsource: {} }, [], [], !0);
|
|
766
750
|
export {
|
|
767
751
|
ci as default
|
|
768
752
|
};
|