@everymatrix/cashier-page 1.86.4 → 1.86.6
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-BhLbwlL5.js → CashierCarousel-DKhPJU6b.js} +1185 -1164
- package/components/CashierCarousel-Dl-eMerS.cjs +23 -0
- package/components/{CashierCarousel-Bwhda3Gl.js → CashierCarousel-VzauuRzd.js} +1345 -1324
- package/components/{CashierError-CXwvUOLy.js → CashierError-B0qTVRew.js} +40 -40
- package/components/{CashierError-D4Au4WNB.cjs → CashierError-Bx19tshH.cjs} +1 -1
- package/components/{CashierError-CXcO-Kju.js → CashierError-ZnrYSdIJ.js} +40 -40
- package/components/{CashierHeader-BgAqvq1Q.js → CashierHeader-Bg2nCWkL.js} +60 -60
- package/components/{CashierHeader-CmAjJv-w.cjs → CashierHeader-BgpMLlQl.cjs} +1 -1
- package/components/{CashierHeader-DRj1BUdj.js → CashierHeader-Ob55c3V1.js} +56 -56
- package/components/{CashierIframeRedirect-Ddt7NW02.cjs → CashierIframeRedirect-BRzP3u6o.cjs} +1 -1
- package/components/{CashierIframeRedirect-DmvuwOL2.js → CashierIframeRedirect-CmCpwQNx.js} +24 -24
- package/components/{CashierIframeRedirect-B76kjw0o.js → CashierIframeRedirect-uR7lUcI4.js} +24 -24
- package/components/{CashierMethodDetails-BX_W3rwH.js → CashierMethodDetails-CU_gNr4p.js} +569 -553
- package/components/{CashierMethodDetails-i7grZPp4.js → CashierMethodDetails-DhARQGUz.js} +430 -414
- package/components/{CashierMethodDetails-DmvyMFjk.cjs → CashierMethodDetails-QbD1F9to.cjs} +4 -4
- package/components/{CashierMethodsList-LHoZgwVR.cjs → CashierMethodsList-BCZ1lZkH.cjs} +1 -1
- package/components/{CashierMethodsList-DSq72RRw.js → CashierMethodsList-BOq6nGLl.js} +129 -130
- package/components/{CashierMethodsList-B6tMxcnh.js → CashierMethodsList-dkT-ZZYx.js} +142 -143
- package/components/{CashierModal-C845c3D0.cjs → CashierModal-CNfSMMrg.cjs} +1 -1
- package/components/{CashierModal-CTYxaPKG.js → CashierModal-CeTxvGuv.js} +86 -86
- package/components/{CashierModal-ndVMjksn.js → CashierModal-CzdREUu5.js} +87 -87
- package/components/{CashierNotifications-Bp4KJnpm.js → CashierNotifications-Atgdw6xY.js} +34 -34
- package/components/{CashierNotifications-tfTPEiSk.cjs → CashierNotifications-C7Mjn9aM.cjs} +1 -1
- package/components/{CashierNotifications-JNstA5Yb.js → CashierNotifications-DaXLtFPD.js} +34 -34
- package/components/{CashierPage-4nTfbT_j.js → CashierPage-DfENiMi2.js} +87 -87
- package/components/{CashierPage-CHtYMgc0.cjs → CashierPage-PqF8DAUW.cjs} +1 -1
- package/components/{CashierPage-Bd71Nhaq.js → CashierPage-_vZYvb8Q.js} +89 -89
- package/components/{CashierReceiptPage-DV7Iz4wR.js → CashierReceiptPage-BvHdGGdc.js} +637 -644
- package/components/{CashierReceiptPage-CnyLmUmL.js → CashierReceiptPage-DJ3msMuM.js} +552 -583
- package/components/{CashierReceiptPage-HRthn--H.cjs → CashierReceiptPage-Jx3jfGDH.cjs} +2 -2
- package/components/{CashierSessionExpirationModal-Ckhir3qN.cjs → CashierSessionExpirationModal-CieL4adW.cjs} +2 -2
- package/components/{CashierSessionExpirationModal-DM8-SPd3.js → CashierSessionExpirationModal-DljTriJc.js} +90 -99
- package/components/{CashierSessionExpirationModal-CvYI4jUg.js → CashierSessionExpirationModal-Zl5Ivr7U.js} +88 -97
- package/components/{CashierSpinner-ODmoTC6W.cjs → CashierSpinner-BUjnT9BW.cjs} +1 -1
- package/components/{CashierSpinner-CeX51xPH.js → CashierSpinner-Cfc6C4df.js} +17 -17
- package/components/{CashierSpinner-a2VW8q1r.js → CashierSpinner-Dansuw_c.js} +17 -17
- package/components/{CashierStepUp-5um8gbUX.js → CashierStepUp-CXaxhy_1.js} +66 -66
- package/components/{CashierStepUp-CyO7gmgP.js → CashierStepUp-D6fTGz14.js} +83 -83
- package/components/{CashierStepUp-CjnvqYJo.cjs → CashierStepUp-gsICNfsv.cjs} +1 -1
- package/components/{CashierTransactionHistory-CmgO6bXN.cjs → CashierTransactionHistory-BTcu8t5I.cjs} +1 -1
- package/components/{CashierTransactionHistory-5JNtVHcj.js → CashierTransactionHistory-C_nsFmmO.js} +84 -84
- package/components/{CashierTransactionHistory-Cm3ikVPK.js → CashierTransactionHistory-Cq8wJM-V.js} +84 -84
- package/components/{CashierVerifications-hID6hjDs.js → CashierVerifications-43jiNBk6.js} +37 -37
- package/components/{CashierVerifications-DkayuISY.cjs → CashierVerifications-BcbBJyl0.cjs} +1 -1
- package/components/{CashierVerifications-BmZYiJaN.js → CashierVerifications-CfZfKrS7.js} +35 -35
- package/components/{TxnStatusIcon-BDnNMhFD.js → TxnStatusIcon-BBs7yerQ.js} +19 -19
- package/components/{TxnStatusIcon-Le-TBKNh.cjs → TxnStatusIcon-Bm2SDwwJ.cjs} +1 -1
- package/components/{TxnStatusIcon-HrmfQdAc.js → TxnStatusIcon-C1C42nXE.js} +19 -19
- package/components/{TxnTypeIcons-sZUo9qa8.cjs → TxnTypeIcons-BOWsICZk.cjs} +1 -1
- package/components/{TxnTypeIcons-DZRNYWUy.js → TxnTypeIcons-CC0HOFvg.js} +14 -14
- package/components/{TxnTypeIcons-__im0AE_.js → TxnTypeIcons-hQ7x8mMJ.js} +14 -14
- 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/stencil/index-97d17652-B6BYeRne.js +542 -0
- package/stencil/index-97d17652-BOr4KAqq.js +558 -0
- package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
- package/stencil/index-b2193545-B5Q7rnAU.cjs +1 -0
- package/stencil/index-b2193545-CF_fVoFe.js +519 -0
- package/stencil/index-b2193545-DfttkCgg.js +503 -0
- package/stencil/{ui-image-D69wsX4B.js → ui-image-BsYHwNhO.js} +1 -1
- package/stencil/{ui-image-BIr_PDb-.js → ui-image-CNaRr0ax.js} +1 -1
- package/stencil/{ui-image-CEbrFHSD.cjs → ui-image-IJc7Zz_R.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-CBB2FKRZ.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-rCWcyktd.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DjCO-ZF4.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
- package/stencil/{ui-image_2-BfZmduAK.js → ui-image_2-CmVho0dS.js} +2 -2
- package/stencil/{ui-image_2-ZFidgTXM.cjs → ui-image_2-CyqE6j_W.cjs} +1 -1
- package/stencil/{ui-image_2-BESQEo1l.js → ui-image_2-Daq38JGa.js} +2 -2
- package/stencil/{ui-skeleton-i8axfHXy.js → ui-skeleton-B9YTz-WD.js} +2 -2
- package/stencil/{ui-skeleton-UELn0TdO.js → ui-skeleton-CQ-FgYMx.js} +2 -2
- package/stencil/{ui-skeleton-CTOStr1f.cjs → ui-skeleton-UxIIZ8UD.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-6tILWWI7.cjs → ui-skeleton-ed169f8f-BEwquWmd.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-DU5yFWqG.js → ui-skeleton-ed169f8f-BMrkXoR5.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-DmzkEnLt.js → ui-skeleton-ed169f8f-BNn31z1X.js} +1 -1
- package/components/CashierCarousel-CfPrrhkY.cjs +0 -23
- package/stencil/index-97d17652-DvplcHtm.js +0 -558
- package/stencil/index-97d17652-ILzgTtTR.cjs +0 -1
- package/stencil/index-97d17652-p-iQtjus.js +0 -542
- package/stencil/index-b2193545-Bvpy7mp9.js +0 -503
- package/stencil/index-b2193545-DxDmFccl.js +0 -519
- package/stencil/index-b2193545-P1qvDl70.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Xe, $ as Ke, S as Ge, b as Ye,
|
|
1
|
+
import { a as Xe, $ as Ke, S as Ge, b as Ye, s as Je, f as oe, c as Qe, G as _e, e as O, k as S, m as k, o as r, p as Ze, q as $e, y as Ee, v as z, l as f, x as ne, X as J, n as R, w as L, a0 as xe, W as Q, r as et, Y as Oe, a4 as tt, B as nt, C as lt, D as ot, E as it, F as rt } from "./CashierCarousel-DKhPJU6b.js";
|
|
2
2
|
function Se(n, t) {
|
|
3
3
|
Xe(n, t);
|
|
4
4
|
}
|
|
@@ -54,7 +54,7 @@ const Me = {
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
function at(n) {
|
|
57
|
-
|
|
57
|
+
Qe(n, "svelte-gpy3mu", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}');
|
|
58
58
|
}
|
|
59
59
|
function Te(n, t, e) {
|
|
60
60
|
const l = n.slice();
|
|
@@ -64,7 +64,7 @@ function ct(n) {
|
|
|
64
64
|
let t, e, l, o, a, p, s, u, d, _, b, T, M, w, m, y, C, I = (
|
|
65
65
|
/*$_*/
|
|
66
66
|
n[19]("channelSMS") + ""
|
|
67
|
-
), q, W, j,
|
|
67
|
+
), q, W, j, x, le, F, Z, ie, $, E, A, V, re, se, ae = (
|
|
68
68
|
/*$_*/
|
|
69
69
|
n[19]("channelEmail") + ""
|
|
70
70
|
), U, K, B, ee, G, ce, ue;
|
|
@@ -112,7 +112,7 @@ function ct(n) {
|
|
|
112
112
|
let Y = he(n), H = Y && Y(n);
|
|
113
113
|
return {
|
|
114
114
|
c() {
|
|
115
|
-
t = k("div"), X.c(), e =
|
|
115
|
+
t = k("div"), X.c(), e = R(), l = k("div"), o = k("label"), a = k("div"), p = R(), s = k("input"), d = R(), _ = k("div"), b = J("svg"), T = J("path"), M = J("circle"), w = J("circle"), m = J("circle"), y = R(), C = k("span"), q = L(I), W = R(), j = k("label"), x = k("div"), le = R(), F = k("input"), ie = R(), $ = k("div"), E = J("svg"), A = J("rect"), V = J("path"), re = R(), se = k("span"), U = L(ae), K = R(), P && P.c(), B = R(), D && D.c(), ee = R(), G = k("div"), H && H.c(), r(t, "class", "OtpDescription"), r(a, "class", "RadioIndicator"), Q(
|
|
116
116
|
a,
|
|
117
117
|
"checked",
|
|
118
118
|
/*selectedChannel*/
|
|
@@ -127,8 +127,8 @@ function ct(n) {
|
|
|
127
127
|
/*selectedChannel*/
|
|
128
128
|
n[0] === /*channels*/
|
|
129
129
|
n[20].SMS
|
|
130
|
-
), r(
|
|
131
|
-
|
|
130
|
+
), r(x, "class", "RadioIndicator"), Q(
|
|
131
|
+
x,
|
|
132
132
|
"checked",
|
|
133
133
|
/*selectedChannel*/
|
|
134
134
|
n[0] === /*channels*/
|
|
@@ -145,7 +145,7 @@ function ct(n) {
|
|
|
145
145
|
), r(l, "class", "ChannelSelection"), r(G, "class", "OtpActionButtons");
|
|
146
146
|
},
|
|
147
147
|
m(c, v) {
|
|
148
|
-
|
|
148
|
+
S(c, t, v), X.m(t, null), S(c, e, v), S(c, l, v), f(l, o), f(o, a), f(o, p), f(o, s), f(o, d), f(o, _), f(_, b), f(b, T), f(b, M), f(b, w), f(b, m), f(_, y), f(_, C), f(C, q), f(l, W), f(l, j), f(j, x), f(j, le), f(j, F), f(j, ie), f(j, $), f($, E), f(E, A), f(E, V), f($, re), f($, se), f(se, U), S(c, K, v), P && P.m(c, v), S(c, B, v), D && D.m(c, v), S(c, ee, v), S(c, G, v), H && H.m(G, null), ce || (ue = [
|
|
149
149
|
ne(
|
|
150
150
|
s,
|
|
151
151
|
"change",
|
|
@@ -182,7 +182,7 @@ function ct(n) {
|
|
|
182
182
|
c[20].SMS
|
|
183
183
|
), v[0] & /*selectedChannel, channels*/
|
|
184
184
|
1048577 && Q(
|
|
185
|
-
|
|
185
|
+
x,
|
|
186
186
|
"checked",
|
|
187
187
|
/*selectedChannel*/
|
|
188
188
|
c[0] === /*channels*/
|
|
@@ -203,7 +203,7 @@ function ct(n) {
|
|
|
203
203
|
c[0] ? P ? P.p(c, v) : (P = Ae(c), P.c(), P.m(B.parentNode, B)) : P && (P.d(1), P = null), te === (te = me(c)) && D ? D.p(c, v) : (D && D.d(1), D = te && te(c), D && (D.c(), D.m(ee.parentNode, ee))), Y === (Y = he(c)) && H ? H.p(c, v) : (H && H.d(1), H = Y && Y(c), H && (H.c(), H.m(G, null)));
|
|
204
204
|
},
|
|
205
205
|
d(c) {
|
|
206
|
-
c && (
|
|
206
|
+
c && (O(t), O(e), O(l), O(K), O(B), O(ee), O(G)), X.d(), P && P.d(c), D && D.d(c), H && H.d(), ce = !1, xe(ue);
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
209
|
}
|
|
@@ -217,13 +217,13 @@ function pt(n) {
|
|
|
217
217
|
), m, y, C;
|
|
218
218
|
return {
|
|
219
219
|
c() {
|
|
220
|
-
t = k("div"), e = k("div"), l = J("svg"), o = J("path"), a =
|
|
220
|
+
t = k("div"), e = k("div"), l = J("svg"), o = J("path"), a = R(), p = k("h2"), u = L(s), d = R(), _ = k("p"), b = L(
|
|
221
221
|
/*errorMessage*/
|
|
222
222
|
n[8]
|
|
223
|
-
), T =
|
|
223
|
+
), T = R(), M = k("button"), m = L(w), r(o, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), r(l, "xmlns", "http://www.w3.org/2000/svg"), r(l, "viewBox", "0 0 512 512"), r(e, "class", "OtpErrorHeader"), r(M, "class", "OtpButton error"), r(t, "class", "OtpError");
|
|
224
224
|
},
|
|
225
225
|
m(I, q) {
|
|
226
|
-
|
|
226
|
+
S(I, t, q), f(t, e), f(e, l), f(l, o), f(e, a), f(e, p), f(p, u), f(t, d), f(t, _), f(_, b), f(t, T), f(t, M), f(M, m), y || (C = ne(
|
|
227
227
|
M,
|
|
228
228
|
"click",
|
|
229
229
|
/*manualClosePopup*/
|
|
@@ -243,7 +243,7 @@ function pt(n) {
|
|
|
243
243
|
I[19]("close") + "") && z(m, w);
|
|
244
244
|
},
|
|
245
245
|
d(I) {
|
|
246
|
-
I &&
|
|
246
|
+
I && O(t), y = !1, C();
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
}
|
|
@@ -261,11 +261,11 @@ function ut(n) {
|
|
|
261
261
|
);
|
|
262
262
|
return {
|
|
263
263
|
c() {
|
|
264
|
-
t = k("p"), s.c(), l =
|
|
264
|
+
t = k("p"), s.c(), l = R(), u && u.c(), o = et(), r(t, "class", e = /*isLastWarning*/
|
|
265
265
|
n[10] ? "LastWarningMessage" : "");
|
|
266
266
|
},
|
|
267
267
|
m(d, _) {
|
|
268
|
-
|
|
268
|
+
S(d, t, _), s.m(t, null), S(d, l, _), u && u.m(d, _), S(d, o, _);
|
|
269
269
|
},
|
|
270
270
|
p(d, _) {
|
|
271
271
|
p === (p = a(d)) && s ? s.p(d, _) : (s.d(1), s = p(d), s && (s.c(), s.m(t, null))), _[0] & /*isLastWarning*/
|
|
@@ -274,7 +274,7 @@ function ut(n) {
|
|
|
274
274
|
d[6] ? u ? u.p(d, _) : (u = Le(d), u.c(), u.m(o.parentNode, o)) : u && (u.d(1), u = null);
|
|
275
275
|
},
|
|
276
276
|
d(d) {
|
|
277
|
-
d && (
|
|
277
|
+
d && (O(t), O(l), O(o)), s.d(), u && u.d(d);
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
}
|
|
@@ -288,7 +288,7 @@ function ft(n) {
|
|
|
288
288
|
t = k("p"), l = L(e);
|
|
289
289
|
},
|
|
290
290
|
m(o, a) {
|
|
291
|
-
|
|
291
|
+
S(o, t, a), f(t, l);
|
|
292
292
|
},
|
|
293
293
|
p(o, a) {
|
|
294
294
|
a[0] & /*$_*/
|
|
@@ -296,7 +296,7 @@ function ft(n) {
|
|
|
296
296
|
(o[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && z(l, e);
|
|
297
297
|
},
|
|
298
298
|
d(o) {
|
|
299
|
-
o &&
|
|
299
|
+
o && O(t);
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
302
|
}
|
|
@@ -310,7 +310,7 @@ function dt(n) {
|
|
|
310
310
|
t = k("p"), l = L(e), r(t, "class", "OtpNoticeMessage"), r(t, "role", "alert");
|
|
311
311
|
},
|
|
312
312
|
m(o, a) {
|
|
313
|
-
|
|
313
|
+
S(o, t, a), f(t, l);
|
|
314
314
|
},
|
|
315
315
|
p(o, a) {
|
|
316
316
|
a[0] & /*$_*/
|
|
@@ -318,7 +318,7 @@ function dt(n) {
|
|
|
318
318
|
o[19]("otpExpiredMessage") + "") && z(l, e);
|
|
319
319
|
},
|
|
320
320
|
d(o) {
|
|
321
|
-
o &&
|
|
321
|
+
o && O(t);
|
|
322
322
|
}
|
|
323
323
|
};
|
|
324
324
|
}
|
|
@@ -332,7 +332,7 @@ function mt(n) {
|
|
|
332
332
|
e = L(t);
|
|
333
333
|
},
|
|
334
334
|
m(l, o) {
|
|
335
|
-
|
|
335
|
+
S(l, e, o);
|
|
336
336
|
},
|
|
337
337
|
p(l, o) {
|
|
338
338
|
o[0] & /*$_*/
|
|
@@ -340,7 +340,7 @@ function mt(n) {
|
|
|
340
340
|
l[19]("popupMessage") + "") && z(e, t);
|
|
341
341
|
},
|
|
342
342
|
d(l) {
|
|
343
|
-
l &&
|
|
343
|
+
l && O(e);
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
346
|
}
|
|
@@ -354,7 +354,7 @@ function ht(n) {
|
|
|
354
354
|
e = L(t);
|
|
355
355
|
},
|
|
356
356
|
m(l, o) {
|
|
357
|
-
|
|
357
|
+
S(l, e, o);
|
|
358
358
|
},
|
|
359
359
|
p(l, o) {
|
|
360
360
|
o[0] & /*$_*/
|
|
@@ -362,7 +362,7 @@ function ht(n) {
|
|
|
362
362
|
l[19]("popupMessageLastWarning") + "") && z(e, t);
|
|
363
363
|
},
|
|
364
364
|
d(l) {
|
|
365
|
-
l &&
|
|
365
|
+
l && O(e);
|
|
366
366
|
}
|
|
367
367
|
};
|
|
368
368
|
}
|
|
@@ -376,7 +376,7 @@ function Le(n) {
|
|
|
376
376
|
), r(t, "class", "OtpErrorMessage"), r(t, "role", "alert");
|
|
377
377
|
},
|
|
378
378
|
m(l, o) {
|
|
379
|
-
|
|
379
|
+
S(l, t, o), f(t, e);
|
|
380
380
|
},
|
|
381
381
|
p(l, o) {
|
|
382
382
|
o[0] & /*errorMessage*/
|
|
@@ -387,7 +387,7 @@ function Le(n) {
|
|
|
387
387
|
);
|
|
388
388
|
},
|
|
389
389
|
d(l) {
|
|
390
|
-
l &&
|
|
390
|
+
l && O(t);
|
|
391
391
|
}
|
|
392
392
|
};
|
|
393
393
|
}
|
|
@@ -408,7 +408,7 @@ function Ae(n) {
|
|
|
408
408
|
n[16]);
|
|
409
409
|
},
|
|
410
410
|
m(u, d) {
|
|
411
|
-
|
|
411
|
+
S(u, t, d), s.m(t, null), l || (o = ne(
|
|
412
412
|
t,
|
|
413
413
|
"click",
|
|
414
414
|
/*handleChannelSubmit*/
|
|
@@ -424,7 +424,7 @@ function Ae(n) {
|
|
|
424
424
|
u[16]);
|
|
425
425
|
},
|
|
426
426
|
d(u) {
|
|
427
|
-
u &&
|
|
427
|
+
u && O(t), s.d(), l = !1, o();
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
430
|
}
|
|
@@ -438,7 +438,7 @@ function gt(n) {
|
|
|
438
438
|
e = L(t);
|
|
439
439
|
},
|
|
440
440
|
m(l, o) {
|
|
441
|
-
|
|
441
|
+
S(l, e, o);
|
|
442
442
|
},
|
|
443
443
|
p(l, o) {
|
|
444
444
|
o[0] & /*$_*/
|
|
@@ -446,7 +446,7 @@ function gt(n) {
|
|
|
446
446
|
l[19]("sendCode") + "") && z(e, t);
|
|
447
447
|
},
|
|
448
448
|
d(l) {
|
|
449
|
-
l &&
|
|
449
|
+
l && O(e);
|
|
450
450
|
}
|
|
451
451
|
};
|
|
452
452
|
}
|
|
@@ -463,7 +463,7 @@ function wt(n) {
|
|
|
463
463
|
), a = L("s)");
|
|
464
464
|
},
|
|
465
465
|
m(p, s) {
|
|
466
|
-
|
|
466
|
+
S(p, e, s), S(p, l, s), S(p, o, s), S(p, a, s);
|
|
467
467
|
},
|
|
468
468
|
p(p, s) {
|
|
469
469
|
s[0] & /*$_*/
|
|
@@ -476,7 +476,7 @@ function wt(n) {
|
|
|
476
476
|
);
|
|
477
477
|
},
|
|
478
478
|
d(p) {
|
|
479
|
-
p && (
|
|
479
|
+
p && (O(e), O(l), O(o), O(a));
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
482
|
}
|
|
@@ -501,13 +501,13 @@ function bt(n) {
|
|
|
501
501
|
w[m] = Ie(Te(n, M, m));
|
|
502
502
|
return {
|
|
503
503
|
c() {
|
|
504
|
-
t = k("div"), e = k("div"), o = L(l), a =
|
|
504
|
+
t = k("div"), e = k("div"), o = L(l), a = R(), s = L(p), u = R(), _ = L(d), b = R(), T = k("div");
|
|
505
505
|
for (let m = 0; m < w.length; m += 1)
|
|
506
506
|
w[m].c();
|
|
507
507
|
r(e, "class", "OtpTimer"), r(T, "class", "OtpField"), r(t, "class", "OtpFieldWrapper");
|
|
508
508
|
},
|
|
509
509
|
m(m, y) {
|
|
510
|
-
|
|
510
|
+
S(m, t, y), f(t, e), f(e, o), f(e, a), f(e, s), f(e, u), f(e, _), f(t, b), f(t, T);
|
|
511
511
|
for (let C = 0; C < w.length; C += 1)
|
|
512
512
|
w[C] && w[C].m(T, null);
|
|
513
513
|
},
|
|
@@ -538,7 +538,7 @@ function bt(n) {
|
|
|
538
538
|
}
|
|
539
539
|
},
|
|
540
540
|
d(m) {
|
|
541
|
-
m &&
|
|
541
|
+
m && O(t), tt(w, m);
|
|
542
542
|
}
|
|
543
543
|
};
|
|
544
544
|
}
|
|
@@ -549,11 +549,11 @@ function _t(n) {
|
|
|
549
549
|
t = k("div"), t.innerHTML = '<span class="OtpLoader"></span>', r(t, "class", "OtpLoaderContainer");
|
|
550
550
|
},
|
|
551
551
|
m(e, l) {
|
|
552
|
-
|
|
552
|
+
S(e, t, l);
|
|
553
553
|
},
|
|
554
554
|
p: _e,
|
|
555
555
|
d(e) {
|
|
556
|
-
e &&
|
|
556
|
+
e && O(t);
|
|
557
557
|
}
|
|
558
558
|
};
|
|
559
559
|
}
|
|
@@ -600,7 +600,7 @@ function Ie(n) {
|
|
|
600
600
|
n[11], r(t, "autocomplete", "off");
|
|
601
601
|
},
|
|
602
602
|
m(b, T) {
|
|
603
|
-
|
|
603
|
+
S(b, t, T), s(), a || (p = [
|
|
604
604
|
ne(t, "input", d),
|
|
605
605
|
ne(t, "keydown", _),
|
|
606
606
|
ne(
|
|
@@ -625,7 +625,7 @@ function Ie(n) {
|
|
|
625
625
|
n[71], s());
|
|
626
626
|
},
|
|
627
627
|
d(b) {
|
|
628
|
-
b &&
|
|
628
|
+
b && O(t), u(), a = !1, xe(p);
|
|
629
629
|
}
|
|
630
630
|
};
|
|
631
631
|
}
|
|
@@ -643,7 +643,7 @@ function yt(n) {
|
|
|
643
643
|
n[15];
|
|
644
644
|
},
|
|
645
645
|
m(s, u) {
|
|
646
|
-
|
|
646
|
+
S(s, t, u), f(t, l), a || (p = ne(
|
|
647
647
|
t,
|
|
648
648
|
"click",
|
|
649
649
|
/*submitOtp*/
|
|
@@ -661,7 +661,7 @@ function yt(n) {
|
|
|
661
661
|
s[15]) && (t.disabled = o);
|
|
662
662
|
},
|
|
663
663
|
d(s) {
|
|
664
|
-
s &&
|
|
664
|
+
s && O(t), a = !1, p();
|
|
665
665
|
}
|
|
666
666
|
};
|
|
667
667
|
}
|
|
@@ -675,7 +675,7 @@ function kt(n) {
|
|
|
675
675
|
t = k("button"), l = L(e), r(t, "class", "OtpButton");
|
|
676
676
|
},
|
|
677
677
|
m(p, s) {
|
|
678
|
-
|
|
678
|
+
S(p, t, s), f(t, l), o || (a = ne(
|
|
679
679
|
t,
|
|
680
680
|
"click",
|
|
681
681
|
/*handleResendOtp*/
|
|
@@ -688,7 +688,7 @@ function kt(n) {
|
|
|
688
688
|
p[19]("resendOtp") + "") && z(l, e);
|
|
689
689
|
},
|
|
690
690
|
d(p) {
|
|
691
|
-
p &&
|
|
691
|
+
p && O(t), o = !1, a();
|
|
692
692
|
}
|
|
693
693
|
};
|
|
694
694
|
}
|
|
@@ -706,7 +706,7 @@ function vt(n) {
|
|
|
706
706
|
t = k("div"), o.c(), r(t, "class", "OtpContent");
|
|
707
707
|
},
|
|
708
708
|
m(a, p) {
|
|
709
|
-
|
|
709
|
+
S(a, t, p), o.m(t, null), n[44](t);
|
|
710
710
|
},
|
|
711
711
|
p(a, p) {
|
|
712
712
|
l === (l = e(a)) && o ? o.p(a, p) : (o.d(1), o = l(a), o && (o.c(), o.m(t, null)));
|
|
@@ -714,14 +714,14 @@ function vt(n) {
|
|
|
714
714
|
i: _e,
|
|
715
715
|
o: _e,
|
|
716
716
|
d(a) {
|
|
717
|
-
a &&
|
|
717
|
+
a && O(t), o.d(), n[44](null);
|
|
718
718
|
}
|
|
719
719
|
};
|
|
720
720
|
}
|
|
721
721
|
function Ct(n, t, e) {
|
|
722
722
|
let l, o, a;
|
|
723
|
-
|
|
724
|
-
let { clientstyling: p = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: d = "en" } = t, { endpoint: _ } = t, { session: b } = t, { translationurl: T } = t, { templateid: M } = t, w = [], m = !0, y = null, C = 0, I = "", q = "", W = !1, j = !1,
|
|
723
|
+
Ze(n, rt, (i) => e(19, a = i));
|
|
724
|
+
let { clientstyling: p = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: d = "en" } = t, { endpoint: _ } = t, { session: b } = t, { translationurl: T } = t, { templateid: M } = t, w = [], m = !0, y = null, C = 0, I = "", q = "", W = !1, j = !1, x = "", le = "", F = "", Z = !1, ie = !1, $ = !1, E = "", A = {}, V = null, re = !1, se = !1, ae = "", U, K = [], B = null, ee = 0, G = !1, ce = !1;
|
|
725
725
|
const ue = { SMS: "sms", EMAIL: "email" }, pe = {
|
|
726
726
|
MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
|
|
727
727
|
INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
|
|
@@ -742,14 +742,14 @@ function Ct(n, t, e) {
|
|
|
742
742
|
});
|
|
743
743
|
}, P = async (i) => {
|
|
744
744
|
if (i.detail?.["x-step-up-required"]) {
|
|
745
|
-
if (e(7, j = !1), e(6, W = !1), e(8,
|
|
746
|
-
e(3, m = !1), e(7, j = !0), e(8,
|
|
745
|
+
if (e(7, j = !1), e(6, W = !1), e(8, x = ""), le = i.detail["x-step-up-token"], F = i.detail.flow, !le || !F) {
|
|
746
|
+
e(3, m = !1), e(7, j = !0), e(8, x = a("configError"));
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
749
749
|
e(12, re = !1), e(3, m = !1);
|
|
750
750
|
}
|
|
751
751
|
}, me = () => {
|
|
752
|
-
B && (clearInterval(B), B = null), V && (clearInterval(V), V = null), e(6, W = !1), e(7, j = !1), e(8,
|
|
752
|
+
B && (clearInterval(B), B = null), V && (clearInterval(V), V = null), e(6, W = !1), e(7, j = !1), e(8, x = ""), e(10, ie = !1), e(2, w = []), e(4, y = null), e(3, m = !0), e(0, E = ""), e(12, re = !1), e(38, A = {});
|
|
753
753
|
}, te = () => {
|
|
754
754
|
me();
|
|
755
755
|
}, D = () => new Promise((i, h) => {
|
|
@@ -790,7 +790,7 @@ function Ct(n, t, e) {
|
|
|
790
790
|
[E]: 30
|
|
791
791
|
}), he(), e(12, re = !0), c(), v();
|
|
792
792
|
} catch (i) {
|
|
793
|
-
console.error("Error submitting channel:", i), e(6, W = !0), e(8,
|
|
793
|
+
console.error("Error submitting channel:", i), e(6, W = !0), e(8, x = a("submissionError"));
|
|
794
794
|
} finally {
|
|
795
795
|
e(3, m = !1);
|
|
796
796
|
}
|
|
@@ -808,7 +808,7 @@ function Ct(n, t, e) {
|
|
|
808
808
|
},
|
|
809
809
|
1e3
|
|
810
810
|
);
|
|
811
|
-
},
|
|
811
|
+
}, Re = (i) => {
|
|
812
812
|
const h = Math.floor(i / 60), g = i % 60;
|
|
813
813
|
return `${h.toString().padStart(2, "0")}:${g.toString().padStart(2, "0")}`;
|
|
814
814
|
}, ge = (i, h) => {
|
|
@@ -870,10 +870,10 @@ function Ct(n, t, e) {
|
|
|
870
870
|
), window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
871
871
|
return;
|
|
872
872
|
}
|
|
873
|
-
e(6, W = !0), e(8,
|
|
873
|
+
e(6, W = !0), e(8, x = a("invalidOtp")), we();
|
|
874
874
|
return;
|
|
875
875
|
}
|
|
876
|
-
g.message === pe.MAX_INVALIDATE && (e(6, W = !0), e(8,
|
|
876
|
+
g.message === pe.MAX_INVALIDATE && (e(6, W = !0), e(8, x = a("invalidOtp"))), g.details === pe.MAX_ATTEMPTS_EXCEEDED && e(15, G = !0), console.error("OTP submission failed:", g), e(6, W = !0), e(8, x = a("submissionError"));
|
|
877
877
|
} finally {
|
|
878
878
|
e(3, m = !1);
|
|
879
879
|
}
|
|
@@ -890,18 +890,18 @@ function Ct(n, t, e) {
|
|
|
890
890
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
891
891
|
}, ve = async () => {
|
|
892
892
|
if (w.join("").length !== y.inputLength) {
|
|
893
|
-
e(6, W = !0), e(8,
|
|
893
|
+
e(6, W = !0), e(8, x = a("invalidOtp"));
|
|
894
894
|
return;
|
|
895
895
|
}
|
|
896
896
|
const i = w.join("");
|
|
897
|
-
e(13, se = !0), ae = i, e(3, m = !0), e(6, W = !1), e(8,
|
|
897
|
+
e(13, se = !0), ae = i, e(3, m = !0), e(6, W = !1), e(8, x = ""), F === "stateless" && De(i), F === "stateful" && await je(i);
|
|
898
898
|
}, we = async () => {
|
|
899
899
|
if (_)
|
|
900
900
|
try {
|
|
901
901
|
e(3, m = !0);
|
|
902
902
|
const i = new URL(`/api/nwa/api/v1/mfa/challenge/${le}/config`, _), h = await fetch(i.href), g = await h.json();
|
|
903
903
|
if (h.ok)
|
|
904
|
-
e(4, y = g), e(2, w = Array(y.inputLength).fill("")), e(9, Z = !1), I = y.expirationTime, q = y.serverTime, y.numberOfValidateAttempts !== 0 && (e(6, W = !0), e(8,
|
|
904
|
+
e(4, y = g), e(2, w = Array(y.inputLength).fill("")), e(9, Z = !1), I = y.expirationTime, q = y.serverTime, y.numberOfValidateAttempts !== 0 && (e(6, W = !0), e(8, x = a("invalidOtp"))), y.numberOfValidateAttempts === y.maxValidationAttempts - 1 && e(10, ie = !0), e(3, m = !1), c(), v(), e(16, ce = !1);
|
|
905
905
|
else if (g && g.details === pe.MAX_ATTEMPTS_EXCEEDED)
|
|
906
906
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
907
907
|
else {
|
|
@@ -909,10 +909,10 @@ function Ct(n, t, e) {
|
|
|
909
909
|
throw new Error(N);
|
|
910
910
|
}
|
|
911
911
|
} catch (i) {
|
|
912
|
-
e(3, m = !1), e(7, j = !0), e(8,
|
|
912
|
+
e(3, m = !1), e(7, j = !0), e(8, x = a("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", i);
|
|
913
913
|
}
|
|
914
914
|
};
|
|
915
|
-
|
|
915
|
+
$e(() => (window.addEventListener("stepUpAuthRequired", P, !1), window.addEventListener("closePopup", te, !1), () => {
|
|
916
916
|
window.removeEventListener("stepUpAuthRequired", P), window.removeEventListener("closePopup", te, !1), B && clearInterval(B), V && clearInterval(V);
|
|
917
917
|
}));
|
|
918
918
|
const Ne = () => Y(ue.SMS), Ve = () => Y(ue.EMAIL);
|
|
@@ -932,11 +932,11 @@ function Ct(n, t, e) {
|
|
|
932
932
|
}, n.$$.update = () => {
|
|
933
933
|
n.$$.dirty[0] & /*customStylingContainer*/
|
|
934
934
|
2 | n.$$.dirty[1] & /*clientstyling*/
|
|
935
|
-
1 && p && U &&
|
|
935
|
+
1 && p && U && nt(U, p), n.$$.dirty[0] & /*customStylingContainer*/
|
|
936
936
|
2 | n.$$.dirty[1] & /*clientstylingurl*/
|
|
937
|
-
2 && s && U &&
|
|
937
|
+
2 && s && U && lt(U, s), n.$$.dirty[0] & /*customStylingContainer*/
|
|
938
938
|
2 | n.$$.dirty[1] & /*mbsource*/
|
|
939
|
-
4 && u && U &&
|
|
939
|
+
4 && u && U && ot(U, `${u}.Style`), n.$$.dirty[1] & /*lang*/
|
|
940
940
|
8 && d && fe(), n.$$.dirty[1] & /*lang, translationurl*/
|
|
941
941
|
72 && d && T && X(), n.$$.dirty[0] & /*selectedChannel*/
|
|
942
942
|
1 | n.$$.dirty[1] & /*channelSubmitTimers*/
|
|
@@ -952,7 +952,7 @@ function Ct(n, t, e) {
|
|
|
952
952
|
C,
|
|
953
953
|
W,
|
|
954
954
|
j,
|
|
955
|
-
|
|
955
|
+
x,
|
|
956
956
|
Z,
|
|
957
957
|
ie,
|
|
958
958
|
$,
|
|
@@ -967,7 +967,7 @@ function Ct(n, t, e) {
|
|
|
967
967
|
ue,
|
|
968
968
|
Y,
|
|
969
969
|
H,
|
|
970
|
-
|
|
970
|
+
Re,
|
|
971
971
|
ze,
|
|
972
972
|
ye,
|
|
973
973
|
ke,
|
|
@@ -998,7 +998,7 @@ class Et extends Ge {
|
|
|
998
998
|
t,
|
|
999
999
|
Ct,
|
|
1000
1000
|
vt,
|
|
1001
|
-
|
|
1001
|
+
Je,
|
|
1002
1002
|
{
|
|
1003
1003
|
clientstyling: 31,
|
|
1004
1004
|
clientstylingurl: 32,
|
|
@@ -1062,7 +1062,7 @@ class Et extends Ge {
|
|
|
1062
1062
|
this.$$set({ templateid: t }), oe();
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
|
-
|
|
1065
|
+
it(Et, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
|
|
1066
1066
|
export {
|
|
1067
1067
|
Et as default
|
|
1068
1068
|
};
|