@fundly.ai/payment-sdk 1.4.0-beta.5 → 1.4.0-beta.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/dist/embed.js +22 -22
- package/dist/index.js +13 -13
- package/dist/index.mjs +508 -506
- package/dist/screens/collection/paymentOptionPage.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -12,12 +12,12 @@ var nf = (l, e, t, i) => ({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
import { jsxs as b, Fragment as ei, jsx as h } from "react/jsx-runtime";
|
|
15
|
-
import Ki, { useRef as Bt, useEffect as
|
|
15
|
+
import Ki, { useRef as Bt, useEffect as Ve, createContext as Ro, useState as K, useMemo as Fi, useContext as zo, useCallback as xi, useReducer as Rg, forwardRef as zg, useImperativeHandle as Ug, useLayoutEffect as Hg } from "react";
|
|
16
16
|
import { DotLottieReact as Yg } from "@lottiefiles/dotlottie-react";
|
|
17
17
|
import { createPortal as Qg } from "react-dom";
|
|
18
18
|
const en = ({ open: l, onClose: e, children: t }) => {
|
|
19
19
|
const i = Bt(null);
|
|
20
|
-
|
|
20
|
+
Ve(() => {
|
|
21
21
|
const s = (r) => {
|
|
22
22
|
r.key === "Escape" && l && e();
|
|
23
23
|
};
|
|
@@ -76,7 +76,7 @@ const en = ({ open: l, onClose: e, children: t }) => {
|
|
|
76
76
|
)
|
|
77
77
|
] }) : null;
|
|
78
78
|
}, _i = ({ open: l, onClose: e, title: t, children: i, actions: n }) => {
|
|
79
|
-
|
|
79
|
+
Ve(() => {
|
|
80
80
|
const r = (o) => {
|
|
81
81
|
o.key === "Escape" && l && e();
|
|
82
82
|
};
|
|
@@ -318,7 +318,7 @@ function Kg() {
|
|
|
318
318
|
return "".concat(r, "//").concat(this.finalTargetDomain, "/e?r=1");
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
|
-
const S = new RegExp(`^\\s+|\\.|:|\\$|'|"|\\\\|\\s+$`, "g"), C = new RegExp(`^\\s+|'|"|\\\\|\\s+$`, "g"), L = new RegExp("'", "g"), N = "clear", j = "Charged ID", z = "WZRK_CHARGED_ID", F = "WZRK_G", H = "WZRK_K", Q = "WZRK_CAMP", V = "WZRK_CAMP_G", _ = "WZRK_S", q = 1200, $ = "WZRK_EV", se = "WZRK_META", de = "WZRK_PR", fe = "WZRK_ACCOUNT_ID", ue = "WZRK_ARP", ce = "WZRK_L", le = "global", ee = "display", me = "WZRK_WPR", we = "optOut", ke = "ct_optout", ye = ":OO", De = "useIP", Be = "WZRK_X", ze = 100, We = "isOUL",
|
|
321
|
+
const S = new RegExp(`^\\s+|\\.|:|\\$|'|"|\\\\|\\s+$`, "g"), C = new RegExp(`^\\s+|'|"|\\\\|\\s+$`, "g"), L = new RegExp("'", "g"), N = "clear", j = "Charged ID", z = "WZRK_CHARGED_ID", F = "WZRK_G", H = "WZRK_K", Q = "WZRK_CAMP", V = "WZRK_CAMP_G", _ = "WZRK_S", q = 1200, $ = "WZRK_EV", se = "WZRK_META", de = "WZRK_PR", fe = "WZRK_ACCOUNT_ID", ue = "WZRK_ARP", ce = "WZRK_L", le = "global", ee = "display", me = "WZRK_WPR", we = "optOut", ke = "ct_optout", ye = ":OO", De = "useIP", Be = "WZRK_X", ze = 100, We = "isOUL", Ce = "push", he = "ping", Ee = 86400 * 365, Ge = 200, dt = 120 * 1e3, Re = 300 * 1e3, Ne = "2", Pe = "cUsY", Oe = "wzrk_", je = "wzrk_id", Ue = "Notification Viewed", re = "Notification Clicked", pe = "WZRK_FPU", He = "WZRK_PSD", Ye = "$incr", tt = "$decr", yt = "$set", nt = "$add", St = "$remove", mt = "$delete", ft = "WZRK_INBOX_CONFIG", jt = "WZRK_INBOX", ct = 15, Qe = "WZRK_PE", bt = 1e3, Et = 1e3 * 60 * 10, Pt = "wzrk_fetch", Tt = "WZRK_PUSH_CONFIG", Ct = "WZRK_APPLICATION_SERVER_KEY_RECIEVED", st = "WZRK_WEB_PUSH_CONFIG_RECEIVED", be = "WZRK_NOTIFICATION_PUSH_DEFERRED", Ke = "vapid_migration_prompt_shown", qe = "notif_last_time", vt = 300, Ot = "wzrk_wrapper", Jt = "pnWrapper", bn = "WZRK_POPUP_LOADING", pn = "ctCustomHtmlPreview", Zn = "ctWebPopupPreview", Di = "WZRK_QC", ai = "_w_", Xt = "WZRK_BLOCK", jn = "WZRK_ISOLATE_SD", Ft = {
|
|
322
322
|
KV_PAIR: 1,
|
|
323
323
|
BANNER: 2,
|
|
324
324
|
CAROUSEL: 3,
|
|
@@ -554,8 +554,8 @@ function Kg() {
|
|
|
554
554
|
T[W + ie >>> 2] |= oe << 24 - (W + ie) % 4 * 8;
|
|
555
555
|
}
|
|
556
556
|
else
|
|
557
|
-
for (var
|
|
558
|
-
T[W +
|
|
557
|
+
for (var ve = 0; ve < J; ve += 4)
|
|
558
|
+
T[W + ve >>> 2] = B[ve >>> 2];
|
|
559
559
|
return this.sigBytes += J, this;
|
|
560
560
|
},
|
|
561
561
|
/**
|
|
@@ -754,9 +754,9 @@ function Kg() {
|
|
|
754
754
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
755
755
|
*/
|
|
756
756
|
_process: function(R) {
|
|
757
|
-
var T, B = this._data, W = B.words, J = B.sigBytes, ie = this.blockSize, oe = ie * 4,
|
|
758
|
-
R ?
|
|
759
|
-
var ne =
|
|
757
|
+
var T, B = this._data, W = B.words, J = B.sigBytes, ie = this.blockSize, oe = ie * 4, ve = J / oe;
|
|
758
|
+
R ? ve = f.ceil(ve) : ve = f.max((ve | 0) - this._minBufferSize, 0);
|
|
759
|
+
var ne = ve * ie, ae = f.min(ne * 4, J);
|
|
760
760
|
if (ne) {
|
|
761
761
|
for (var xe = 0; xe < ne; xe += ie)
|
|
762
762
|
this._doProcessBlock(W, xe);
|
|
@@ -1409,8 +1409,8 @@ function Kg() {
|
|
|
1409
1409
|
var R = Y + G, T = X[R];
|
|
1410
1410
|
X[R] = (T << 8 | T >>> 24) & 16711935 | (T << 24 | T >>> 8) & 4278255360;
|
|
1411
1411
|
}
|
|
1412
|
-
var B = this._hash.words, W = X[Y + 0], J = X[Y + 1], ie = X[Y + 2], oe = X[Y + 3],
|
|
1413
|
-
ge = P(ge, Se, Le,
|
|
1412
|
+
var B = this._hash.words, W = X[Y + 0], J = X[Y + 1], ie = X[Y + 2], oe = X[Y + 3], ve = X[Y + 4], ne = X[Y + 5], ae = X[Y + 6], xe = X[Y + 7], Ae = X[Y + 8], _e = X[Y + 9], ot = X[Y + 10], At = X[Y + 11], ni = X[Y + 12], Wt = X[Y + 13], _t = X[Y + 14], Vt = X[Y + 15], ge = B[0], Se = B[1], Le = B[2], Ie = B[3];
|
|
1413
|
+
ge = P(ge, Se, Le, Ie, W, 7, I[0]), Ie = P(Ie, ge, Se, Le, J, 12, I[1]), Le = P(Le, Ie, ge, Se, ie, 17, I[2]), Se = P(Se, Le, Ie, ge, oe, 22, I[3]), ge = P(ge, Se, Le, Ie, ve, 7, I[4]), Ie = P(Ie, ge, Se, Le, ne, 12, I[5]), Le = P(Le, Ie, ge, Se, ae, 17, I[6]), Se = P(Se, Le, Ie, ge, xe, 22, I[7]), ge = P(ge, Se, Le, Ie, Ae, 7, I[8]), Ie = P(Ie, ge, Se, Le, _e, 12, I[9]), Le = P(Le, Ie, ge, Se, ot, 17, I[10]), Se = P(Se, Le, Ie, ge, At, 22, I[11]), ge = P(ge, Se, Le, Ie, ni, 7, I[12]), Ie = P(Ie, ge, Se, Le, Wt, 12, I[13]), Le = P(Le, Ie, ge, Se, _t, 17, I[14]), Se = P(Se, Le, Ie, ge, Vt, 22, I[15]), ge = k(ge, Se, Le, Ie, J, 5, I[16]), Ie = k(Ie, ge, Se, Le, ae, 9, I[17]), Le = k(Le, Ie, ge, Se, At, 14, I[18]), Se = k(Se, Le, Ie, ge, W, 20, I[19]), ge = k(ge, Se, Le, Ie, ne, 5, I[20]), Ie = k(Ie, ge, Se, Le, ot, 9, I[21]), Le = k(Le, Ie, ge, Se, Vt, 14, I[22]), Se = k(Se, Le, Ie, ge, ve, 20, I[23]), ge = k(ge, Se, Le, Ie, _e, 5, I[24]), Ie = k(Ie, ge, Se, Le, _t, 9, I[25]), Le = k(Le, Ie, ge, Se, oe, 14, I[26]), Se = k(Se, Le, Ie, ge, Ae, 20, I[27]), ge = k(ge, Se, Le, Ie, Wt, 5, I[28]), Ie = k(Ie, ge, Se, Le, ie, 9, I[29]), Le = k(Le, Ie, ge, Se, xe, 14, I[30]), Se = k(Se, Le, Ie, ge, ni, 20, I[31]), ge = O(ge, Se, Le, Ie, ne, 4, I[32]), Ie = O(Ie, ge, Se, Le, Ae, 11, I[33]), Le = O(Le, Ie, ge, Se, At, 16, I[34]), Se = O(Se, Le, Ie, ge, _t, 23, I[35]), ge = O(ge, Se, Le, Ie, J, 4, I[36]), Ie = O(Ie, ge, Se, Le, ve, 11, I[37]), Le = O(Le, Ie, ge, Se, xe, 16, I[38]), Se = O(Se, Le, Ie, ge, ot, 23, I[39]), ge = O(ge, Se, Le, Ie, Wt, 4, I[40]), Ie = O(Ie, ge, Se, Le, W, 11, I[41]), Le = O(Le, Ie, ge, Se, oe, 16, I[42]), Se = O(Se, Le, Ie, ge, ae, 23, I[43]), ge = O(ge, Se, Le, Ie, _e, 4, I[44]), Ie = O(Ie, ge, Se, Le, ni, 11, I[45]), Le = O(Le, Ie, ge, Se, Vt, 16, I[46]), Se = O(Se, Le, Ie, ge, ie, 23, I[47]), ge = U(ge, Se, Le, Ie, W, 6, I[48]), Ie = U(Ie, ge, Se, Le, xe, 10, I[49]), Le = U(Le, Ie, ge, Se, _t, 15, I[50]), Se = U(Se, Le, Ie, ge, ne, 21, I[51]), ge = U(ge, Se, Le, Ie, ni, 6, I[52]), Ie = U(Ie, ge, Se, Le, oe, 10, I[53]), Le = U(Le, Ie, ge, Se, ot, 15, I[54]), Se = U(Se, Le, Ie, ge, J, 21, I[55]), ge = U(ge, Se, Le, Ie, Ae, 6, I[56]), Ie = U(Ie, ge, Se, Le, Vt, 10, I[57]), Le = U(Le, Ie, ge, Se, ae, 15, I[58]), Se = U(Se, Le, Ie, ge, Wt, 21, I[59]), ge = U(ge, Se, Le, Ie, ve, 6, I[60]), Ie = U(Ie, ge, Se, Le, At, 10, I[61]), Le = U(Le, Ie, ge, Se, ie, 15, I[62]), Se = U(Se, Le, Ie, ge, _e, 21, I[63]), B[0] = B[0] + ge | 0, B[1] = B[1] + Se | 0, B[2] = B[2] + Le | 0, B[3] = B[3] + Ie | 0;
|
|
1414
1414
|
},
|
|
1415
1415
|
_doFinalize: function() {
|
|
1416
1416
|
var X = this._data, Y = X.words, G = this._nDataBytes * 8, R = X.sigBytes * 8;
|
|
@@ -1517,7 +1517,7 @@ function Kg() {
|
|
|
1517
1517
|
if (oe < 16)
|
|
1518
1518
|
P[oe] = O[U + oe] | 0;
|
|
1519
1519
|
else {
|
|
1520
|
-
var
|
|
1520
|
+
var ve = P[oe - 15], ne = (ve << 25 | ve >>> 7) ^ (ve << 14 | ve >>> 18) ^ ve >>> 3, ae = P[oe - 2], xe = (ae << 15 | ae >>> 17) ^ (ae << 13 | ae >>> 19) ^ ae >>> 10;
|
|
1521
1521
|
P[oe] = ne + P[oe - 7] + xe + P[oe - 16];
|
|
1522
1522
|
}
|
|
1523
1523
|
var Ae = B & W ^ ~B & J, _e = Y & G ^ Y & R ^ G & R, ot = (Y << 30 | Y >>> 2) ^ (Y << 19 | Y >>> 13) ^ (Y << 10 | Y >>> 22), At = (B << 26 | B >>> 6) ^ (B << 21 | B >>> 11) ^ (B << 7 | B >>> 25), ni = ie + At + Ae + E[oe] + P[oe], Wt = ot + _e;
|
|
@@ -1581,7 +1581,7 @@ function Kg() {
|
|
|
1581
1581
|
this._hash = new D.init([new v.init(1779033703, 4089235720), new v.init(3144134277, 2227873595), new v.init(1013904242, 4271175723), new v.init(2773480762, 1595750129), new v.init(1359893119, 2917565137), new v.init(2600822924, 725511199), new v.init(528734635, 4215389547), new v.init(1541459225, 327033209)]);
|
|
1582
1582
|
},
|
|
1583
1583
|
_doProcessBlock: function(U, X) {
|
|
1584
|
-
for (var Y = this._hash.words, G = Y[0], R = Y[1], T = Y[2], B = Y[3], W = Y[4], J = Y[5], ie = Y[6], oe = Y[7],
|
|
1584
|
+
for (var Y = this._hash.words, G = Y[0], R = Y[1], T = Y[2], B = Y[3], W = Y[4], J = Y[5], ie = Y[6], oe = Y[7], ve = G.high, ne = G.low, ae = R.high, xe = R.low, Ae = T.high, _e = T.low, ot = B.high, At = B.low, ni = W.high, Wt = W.low, _t = J.high, Vt = J.low, ge = ie.high, Se = ie.low, Le = oe.high, Ie = oe.low, si = ve, $t = ne, Gi = ae, It = xe, po = Ae, hr = _e, dc = ot, mo = At, Tn = ni, on = Wt, Ha = _t, go = Vt, Ya = ge, Ao = Se, hc = Le, xo = Ie, Bn = 0; Bn < 80; Bn++) {
|
|
1585
1585
|
var mn, ws, Qa = k[Bn];
|
|
1586
1586
|
if (Bn < 16)
|
|
1587
1587
|
ws = Qa.high = U[X + Bn * 2] | 0, mn = Qa.low = U[X + Bn * 2 + 1] | 0;
|
|
@@ -1592,7 +1592,7 @@ function Kg() {
|
|
|
1592
1592
|
var Ng = Tn & Ha ^ ~Tn & Ya, Zh = on & go ^ ~on & Ao, kg = si & Gi ^ si & po ^ Gi & po, Tg = $t & It ^ $t & hr ^ It & hr, Bg = (si >>> 28 | $t << 4) ^ (si << 30 | $t >>> 2) ^ (si << 25 | $t >>> 7), Kh = ($t >>> 28 | si << 4) ^ ($t << 30 | si >>> 2) ^ ($t << 25 | si >>> 7), Pg = (Tn >>> 14 | on << 18) ^ (Tn >>> 18 | on << 14) ^ (Tn << 23 | on >>> 9), Og = (on >>> 14 | Tn << 18) ^ (on >>> 18 | Tn << 14) ^ (on << 23 | Tn >>> 9), _h = P[Bn], jg = _h.high, $h = _h.low, an = xo + Og, ys = hc + Pg + (an >>> 0 < xo >>> 0 ? 1 : 0), an = an + Zh, ys = ys + Ng + (an >>> 0 < Zh >>> 0 ? 1 : 0), an = an + $h, ys = ys + jg + (an >>> 0 < $h >>> 0 ? 1 : 0), an = an + mn, ys = ys + ws + (an >>> 0 < mn >>> 0 ? 1 : 0), ef = Kh + Tg, Fg = Bg + kg + (ef >>> 0 < Kh >>> 0 ? 1 : 0);
|
|
1593
1593
|
hc = Ya, xo = Ao, Ya = Ha, Ao = go, Ha = Tn, go = on, on = mo + an | 0, Tn = dc + ys + (on >>> 0 < mo >>> 0 ? 1 : 0) | 0, dc = po, mo = hr, po = Gi, hr = It, Gi = si, It = $t, $t = an + ef | 0, si = ys + Fg + ($t >>> 0 < an >>> 0 ? 1 : 0) | 0;
|
|
1594
1594
|
}
|
|
1595
|
-
ne = G.low = ne + $t, G.high =
|
|
1595
|
+
ne = G.low = ne + $t, G.high = ve + si + (ne >>> 0 < $t >>> 0 ? 1 : 0), xe = R.low = xe + It, R.high = ae + Gi + (xe >>> 0 < It >>> 0 ? 1 : 0), _e = T.low = _e + hr, T.high = Ae + po + (_e >>> 0 < hr >>> 0 ? 1 : 0), At = B.low = At + mo, B.high = ot + dc + (At >>> 0 < mo >>> 0 ? 1 : 0), Wt = W.low = Wt + on, W.high = ni + Tn + (Wt >>> 0 < on >>> 0 ? 1 : 0), Vt = J.low = Vt + go, J.high = _t + Ha + (Vt >>> 0 < go >>> 0 ? 1 : 0), Se = ie.low = Se + Ao, ie.high = ge + Ya + (Se >>> 0 < Ao >>> 0 ? 1 : 0), Ie = oe.low = Ie + xo, oe.high = Le + hc + (Ie >>> 0 < xo >>> 0 ? 1 : 0);
|
|
1596
1596
|
},
|
|
1597
1597
|
_doFinalize: function() {
|
|
1598
1598
|
var U = this._data, X = U.words, Y = this._nDataBytes * 8, G = U.sigBytes * 8;
|
|
@@ -1650,9 +1650,9 @@ function Kg() {
|
|
|
1650
1650
|
for (var G = 0; G < 5; G++)
|
|
1651
1651
|
k[Y + 5 * G] = G + (2 * Y + 3 * G) % 5 * 5;
|
|
1652
1652
|
for (var W = 1, J = 0; J < 24; J++) {
|
|
1653
|
-
for (var ie = 0, oe = 0,
|
|
1653
|
+
for (var ie = 0, oe = 0, ve = 0; ve < 7; ve++) {
|
|
1654
1654
|
if (W & 1) {
|
|
1655
|
-
var ne = (1 <<
|
|
1655
|
+
var ne = (1 << ve) - 1;
|
|
1656
1656
|
ne < 32 ? oe ^= 1 << ne : ie ^= 1 << ne - 32;
|
|
1657
1657
|
}
|
|
1658
1658
|
W & 128 ? W = W << 1 ^ 113 : W <<= 1;
|
|
@@ -1690,17 +1690,17 @@ function Kg() {
|
|
|
1690
1690
|
ie.high ^= J, ie.low ^= W;
|
|
1691
1691
|
}
|
|
1692
1692
|
for (var oe = 0; oe < 24; oe++) {
|
|
1693
|
-
for (var
|
|
1693
|
+
for (var ve = 0; ve < 5; ve++) {
|
|
1694
1694
|
for (var ne = 0, ae = 0, xe = 0; xe < 5; xe++) {
|
|
1695
|
-
var ie = R[
|
|
1695
|
+
var ie = R[ve + 5 * xe];
|
|
1696
1696
|
ne ^= ie.high, ae ^= ie.low;
|
|
1697
1697
|
}
|
|
1698
|
-
var Ae = U[
|
|
1698
|
+
var Ae = U[ve];
|
|
1699
1699
|
Ae.high = ne, Ae.low = ae;
|
|
1700
1700
|
}
|
|
1701
|
-
for (var
|
|
1702
|
-
for (var _e = U[(
|
|
1703
|
-
var ie = R[
|
|
1701
|
+
for (var ve = 0; ve < 5; ve++)
|
|
1702
|
+
for (var _e = U[(ve + 4) % 5], ot = U[(ve + 1) % 5], At = ot.high, ni = ot.low, ne = _e.high ^ (At << 1 | ni >>> 31), ae = _e.low ^ (ni << 1 | At >>> 31), xe = 0; xe < 5; xe++) {
|
|
1703
|
+
var ie = R[ve + 5 * xe];
|
|
1704
1704
|
ie.high ^= ne, ie.low ^= ae;
|
|
1705
1705
|
}
|
|
1706
1706
|
for (var Wt = 1; Wt < 25; Wt++) {
|
|
@@ -1709,11 +1709,11 @@ function Kg() {
|
|
|
1709
1709
|
var Se = U[k[Wt]];
|
|
1710
1710
|
Se.high = ne, Se.low = ae;
|
|
1711
1711
|
}
|
|
1712
|
-
var Le = U[0],
|
|
1713
|
-
Le.high =
|
|
1714
|
-
for (var
|
|
1712
|
+
var Le = U[0], Ie = R[0];
|
|
1713
|
+
Le.high = Ie.high, Le.low = Ie.low;
|
|
1714
|
+
for (var ve = 0; ve < 5; ve++)
|
|
1715
1715
|
for (var xe = 0; xe < 5; xe++) {
|
|
1716
|
-
var Wt =
|
|
1716
|
+
var Wt = ve + 5 * xe, ie = R[Wt], si = U[Wt], $t = U[(ve + 1) % 5 + 5 * xe], Gi = U[(ve + 2) % 5 + 5 * xe];
|
|
1717
1717
|
ie.high = si.high ^ ~$t.high & Gi.high, ie.low = si.low ^ ~$t.low & Gi.low;
|
|
1718
1718
|
}
|
|
1719
1719
|
var ie = R[0], It = O[oe];
|
|
@@ -1726,7 +1726,7 @@ function Kg() {
|
|
|
1726
1726
|
var R = Y.sigBytes * 8, T = this.blockSize * 32;
|
|
1727
1727
|
G[R >>> 5] |= 1 << 24 - R % 32, G[(f.ceil((R + 1) / T) * T >>> 5) - 1] |= 128, Y.sigBytes = G.length * 4, this._process();
|
|
1728
1728
|
for (var B = this._state, W = this.cfg.outputLength / 8, J = W / 8, ie = [], oe = 0; oe < J; oe++) {
|
|
1729
|
-
var
|
|
1729
|
+
var ve = B[oe], ne = ve.high, ae = ve.low;
|
|
1730
1730
|
ne = (ne << 8 | ne >>> 24) & 16711935 | (ne << 24 | ne >>> 8) & 4278255360, ae = (ae << 8 | ae >>> 24) & 16711935 | (ae << 24 | ae >>> 8) & 4278255360, ie.push(ae), ie.push(ne);
|
|
1731
1731
|
}
|
|
1732
1732
|
return new M.init(ie, W);
|
|
@@ -1762,18 +1762,18 @@ function Kg() {
|
|
|
1762
1762
|
},
|
|
1763
1763
|
_doProcessBlock: function(J, ie) {
|
|
1764
1764
|
for (var oe = 0; oe < 16; oe++) {
|
|
1765
|
-
var
|
|
1766
|
-
J[
|
|
1765
|
+
var ve = ie + oe, ne = J[ve];
|
|
1766
|
+
J[ve] = (ne << 8 | ne >>> 24) & 16711935 | (ne << 24 | ne >>> 8) & 4278255360;
|
|
1767
1767
|
}
|
|
1768
|
-
var ae = this._hash.words, xe = O.words, Ae = U.words, _e = I.words, ot = E.words, At = P.words, ni = k.words, Wt, _t, Vt, ge, Se, Le,
|
|
1769
|
-
Le = Wt = ae[0],
|
|
1768
|
+
var ae = this._hash.words, xe = O.words, Ae = U.words, _e = I.words, ot = E.words, At = P.words, ni = k.words, Wt, _t, Vt, ge, Se, Le, Ie, si, $t, Gi;
|
|
1769
|
+
Le = Wt = ae[0], Ie = _t = ae[1], si = Vt = ae[2], $t = ge = ae[3], Gi = Se = ae[4];
|
|
1770
1770
|
for (var It, oe = 0; oe < 80; oe += 1)
|
|
1771
|
-
It = Wt + J[ie + _e[oe]] | 0, oe < 16 ? It += Y(_t, Vt, ge) + xe[0] : oe < 32 ? It += G(_t, Vt, ge) + xe[1] : oe < 48 ? It += R(_t, Vt, ge) + xe[2] : oe < 64 ? It += T(_t, Vt, ge) + xe[3] : It += B(_t, Vt, ge) + xe[4], It = It | 0, It = W(It, At[oe]), It = It + Se | 0, Wt = Se, Se = ge, ge = W(Vt, 10), Vt = _t, _t = It, It = Le + J[ie + ot[oe]] | 0, oe < 16 ? It += B(
|
|
1772
|
-
It = ae[1] + Vt + $t | 0, ae[1] = ae[2] + ge + Gi | 0, ae[2] = ae[3] + Se + Le | 0, ae[3] = ae[4] + Wt +
|
|
1771
|
+
It = Wt + J[ie + _e[oe]] | 0, oe < 16 ? It += Y(_t, Vt, ge) + xe[0] : oe < 32 ? It += G(_t, Vt, ge) + xe[1] : oe < 48 ? It += R(_t, Vt, ge) + xe[2] : oe < 64 ? It += T(_t, Vt, ge) + xe[3] : It += B(_t, Vt, ge) + xe[4], It = It | 0, It = W(It, At[oe]), It = It + Se | 0, Wt = Se, Se = ge, ge = W(Vt, 10), Vt = _t, _t = It, It = Le + J[ie + ot[oe]] | 0, oe < 16 ? It += B(Ie, si, $t) + Ae[0] : oe < 32 ? It += T(Ie, si, $t) + Ae[1] : oe < 48 ? It += R(Ie, si, $t) + Ae[2] : oe < 64 ? It += G(Ie, si, $t) + Ae[3] : It += Y(Ie, si, $t) + Ae[4], It = It | 0, It = W(It, ni[oe]), It = It + Gi | 0, Le = Gi, Gi = $t, $t = W(si, 10), si = Ie, Ie = It;
|
|
1772
|
+
It = ae[1] + Vt + $t | 0, ae[1] = ae[2] + ge + Gi | 0, ae[2] = ae[3] + Se + Le | 0, ae[3] = ae[4] + Wt + Ie | 0, ae[4] = ae[0] + _t + si | 0, ae[0] = It;
|
|
1773
1773
|
},
|
|
1774
1774
|
_doFinalize: function() {
|
|
1775
|
-
var J = this._data, ie = J.words, oe = this._nDataBytes * 8,
|
|
1776
|
-
ie[
|
|
1775
|
+
var J = this._data, ie = J.words, oe = this._nDataBytes * 8, ve = J.sigBytes * 8;
|
|
1776
|
+
ie[ve >>> 5] |= 128 << 24 - ve % 32, ie[(ve + 64 >>> 9 << 4) + 14] = (oe << 8 | oe >>> 24) & 16711935 | (oe << 24 | oe >>> 8) & 4278255360, J.sigBytes = (ie.length + 1) * 4, this._process();
|
|
1777
1777
|
for (var ne = this._hash, ae = ne.words, xe = 0; xe < 5; xe++) {
|
|
1778
1778
|
var Ae = ae[xe];
|
|
1779
1779
|
ae[xe] = (Ae << 8 | Ae >>> 24) & 16711935 | (Ae << 24 | Ae >>> 8) & 4278255360;
|
|
@@ -1936,7 +1936,7 @@ function Kg() {
|
|
|
1936
1936
|
for (var O = this.cfg, U = I.create(O.hasher, P), X = M.create(), Y = M.create([1]), G = X.words, R = Y.words, T = O.keySize, B = O.iterations; G.length < T; ) {
|
|
1937
1937
|
var W = U.update(k).finalize(Y);
|
|
1938
1938
|
U.reset();
|
|
1939
|
-
for (var J = W.words, ie = J.length, oe = W,
|
|
1939
|
+
for (var J = W.words, ie = J.length, oe = W, ve = 1; ve < B; ve++) {
|
|
1940
1940
|
oe = U.finalize(oe), U.reset();
|
|
1941
1941
|
for (var ne = oe.words, ae = 0; ae < ie; ae++)
|
|
1942
1942
|
J[ae] ^= ne[ae];
|
|
@@ -2143,7 +2143,7 @@ function Kg() {
|
|
|
2143
2143
|
*/
|
|
2144
2144
|
_createHelper: /* @__PURE__ */ (function() {
|
|
2145
2145
|
function ne(ae) {
|
|
2146
|
-
return typeof ae == "string" ?
|
|
2146
|
+
return typeof ae == "string" ? ve : J;
|
|
2147
2147
|
}
|
|
2148
2148
|
return function(ae) {
|
|
2149
2149
|
return {
|
|
@@ -2504,7 +2504,7 @@ function Kg() {
|
|
|
2504
2504
|
salt: Ae
|
|
2505
2505
|
});
|
|
2506
2506
|
}
|
|
2507
|
-
},
|
|
2507
|
+
}, ve = x.PasswordBasedCipher = J.extend({
|
|
2508
2508
|
/**
|
|
2509
2509
|
* Configuration options.
|
|
2510
2510
|
*
|
|
@@ -2853,9 +2853,9 @@ function Kg() {
|
|
|
2853
2853
|
for (var W = 0, J = 0, B = 0; B < 256; B++) {
|
|
2854
2854
|
var ie = J ^ J << 1 ^ J << 2 ^ J << 3 ^ J << 4;
|
|
2855
2855
|
ie = ie >>> 8 ^ ie & 255 ^ 99, v[W] = ie, D[ie] = W;
|
|
2856
|
-
var oe = T[W],
|
|
2856
|
+
var oe = T[W], ve = T[oe], ne = T[ve], ae = T[ie] * 257 ^ ie * 16843008;
|
|
2857
2857
|
I[W] = ae << 24 | ae >>> 8, E[W] = ae << 16 | ae >>> 16, P[W] = ae << 8 | ae >>> 24, k[W] = ae;
|
|
2858
|
-
var ae = ne * 16843009 ^
|
|
2858
|
+
var ae = ne * 16843009 ^ ve * 65537 ^ oe * 257 ^ W * 16843008;
|
|
2859
2859
|
O[ie] = ae << 24 | ae >>> 8, U[ie] = ae << 16 | ae >>> 16, X[ie] = ae << 8 | ae >>> 24, Y[ie] = ae, W ? (W = oe ^ T[T[T[ne ^ oe]]], J ^= T[T[J]]) : W = J = 1;
|
|
2860
2860
|
}
|
|
2861
2861
|
})();
|
|
@@ -2863,14 +2863,14 @@ function Kg() {
|
|
|
2863
2863
|
_doReset: function() {
|
|
2864
2864
|
var T;
|
|
2865
2865
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
2866
|
-
for (var B = this._keyPriorReset = this._key, W = B.words, J = B.sigBytes / 4, ie = this._nRounds = J + 6, oe = (ie + 1) * 4,
|
|
2867
|
-
ne < J ?
|
|
2866
|
+
for (var B = this._keyPriorReset = this._key, W = B.words, J = B.sigBytes / 4, ie = this._nRounds = J + 6, oe = (ie + 1) * 4, ve = this._keySchedule = [], ne = 0; ne < oe; ne++)
|
|
2867
|
+
ne < J ? ve[ne] = W[ne] : (T = ve[ne - 1], ne % J ? J > 6 && ne % J == 4 && (T = v[T >>> 24] << 24 | v[T >>> 16 & 255] << 16 | v[T >>> 8 & 255] << 8 | v[T & 255]) : (T = T << 8 | T >>> 24, T = v[T >>> 24] << 24 | v[T >>> 16 & 255] << 16 | v[T >>> 8 & 255] << 8 | v[T & 255], T ^= G[ne / J | 0] << 24), ve[ne] = ve[ne - J] ^ T);
|
|
2868
2868
|
for (var ae = this._invKeySchedule = [], xe = 0; xe < oe; xe++) {
|
|
2869
2869
|
var ne = oe - xe;
|
|
2870
2870
|
if (xe % 4)
|
|
2871
|
-
var T =
|
|
2871
|
+
var T = ve[ne];
|
|
2872
2872
|
else
|
|
2873
|
-
var T =
|
|
2873
|
+
var T = ve[ne - 4];
|
|
2874
2874
|
xe < 4 || ne <= 4 ? ae[xe] = T : ae[xe] = O[v[T >>> 24]] ^ U[v[T >>> 16 & 255]] ^ X[v[T >>> 8 & 255]] ^ Y[v[T & 255]];
|
|
2875
2875
|
}
|
|
2876
2876
|
}
|
|
@@ -2884,9 +2884,9 @@ function Kg() {
|
|
|
2884
2884
|
var W = T[B + 1];
|
|
2885
2885
|
T[B + 1] = T[B + 3], T[B + 3] = W;
|
|
2886
2886
|
},
|
|
2887
|
-
_doCryptBlock: function(T, B, W, J, ie, oe,
|
|
2887
|
+
_doCryptBlock: function(T, B, W, J, ie, oe, ve, ne) {
|
|
2888
2888
|
for (var ae = this._nRounds, xe = T[B] ^ W[0], Ae = T[B + 1] ^ W[1], _e = T[B + 2] ^ W[2], ot = T[B + 3] ^ W[3], At = 4, ni = 1; ni < ae; ni++) {
|
|
2889
|
-
var Wt = J[xe >>> 24] ^ ie[Ae >>> 16 & 255] ^ oe[_e >>> 8 & 255] ^
|
|
2889
|
+
var Wt = J[xe >>> 24] ^ ie[Ae >>> 16 & 255] ^ oe[_e >>> 8 & 255] ^ ve[ot & 255] ^ W[At++], _t = J[Ae >>> 24] ^ ie[_e >>> 16 & 255] ^ oe[ot >>> 8 & 255] ^ ve[xe & 255] ^ W[At++], Vt = J[_e >>> 24] ^ ie[ot >>> 16 & 255] ^ oe[xe >>> 8 & 255] ^ ve[Ae & 255] ^ W[At++], ge = J[ot >>> 24] ^ ie[xe >>> 16 & 255] ^ oe[Ae >>> 8 & 255] ^ ve[_e & 255] ^ W[At++];
|
|
2890
2890
|
xe = Wt, Ae = _t, _e = Vt, ot = ge;
|
|
2891
2891
|
}
|
|
2892
2892
|
var Wt = (ne[xe >>> 24] << 24 | ne[Ae >>> 16 & 255] << 16 | ne[_e >>> 8 & 255] << 8 | ne[ot & 255]) ^ W[At++], _t = (ne[Ae >>> 24] << 24 | ne[_e >>> 16 & 255] << 16 | ne[ot >>> 8 & 255] << 8 | ne[xe & 255]) ^ W[At++], Vt = (ne[_e >>> 24] << 24 | ne[ot >>> 16 & 255] << 16 | ne[xe >>> 8 & 255] << 8 | ne[Ae & 255]) ^ W[At++], ge = (ne[ot >>> 24] << 24 | ne[xe >>> 16 & 255] << 16 | ne[Ae >>> 8 & 255] << 8 | ne[_e & 255]) ^ W[At++];
|
|
@@ -3433,8 +3433,8 @@ function Kg() {
|
|
|
3433
3433
|
T[B] = R[W >>> 5] >>> 31 - W % 32 & 1;
|
|
3434
3434
|
}
|
|
3435
3435
|
for (var J = this._subKeys = [], ie = 0; ie < 16; ie++) {
|
|
3436
|
-
for (var oe = J[ie] = [],
|
|
3437
|
-
oe[B / 6 | 0] |= T[(I[B] - 1 +
|
|
3436
|
+
for (var oe = J[ie] = [], ve = E[ie], B = 0; B < 24; B++)
|
|
3437
|
+
oe[B / 6 | 0] |= T[(I[B] - 1 + ve) % 28] << 31 - B % 6, oe[4 + (B / 6 | 0)] |= T[28 + (I[B + 24] - 1 + ve) % 28] << 31 - B % 6;
|
|
3438
3438
|
oe[0] = oe[0] << 1 | oe[0] >>> 31;
|
|
3439
3439
|
for (var B = 1; B < 7; B++)
|
|
3440
3440
|
oe[B] = oe[B] >>> (B - 1) * 4 + 3;
|
|
@@ -3452,8 +3452,8 @@ function Kg() {
|
|
|
3452
3452
|
_doCryptBlock: function(G, R, T) {
|
|
3453
3453
|
this._lBlock = G[R], this._rBlock = G[R + 1], U.call(this, 4, 252645135), U.call(this, 16, 65535), X.call(this, 2, 858993459), X.call(this, 8, 16711935), U.call(this, 1, 1431655765);
|
|
3454
3454
|
for (var B = 0; B < 16; B++) {
|
|
3455
|
-
for (var W = T[B], J = this._lBlock, ie = this._rBlock, oe = 0,
|
|
3456
|
-
oe |= P[
|
|
3455
|
+
for (var W = T[B], J = this._lBlock, ie = this._rBlock, oe = 0, ve = 0; ve < 8; ve++)
|
|
3456
|
+
oe |= P[ve][((ie ^ W[ve]) & k[ve]) >>> 0];
|
|
3457
3457
|
this._lBlock = ie, this._rBlock = J ^ oe;
|
|
3458
3458
|
}
|
|
3459
3459
|
var ne = this._lBlock;
|
|
@@ -4149,7 +4149,7 @@ function Kg() {
|
|
|
4149
4149
|
}
|
|
4150
4150
|
return !1;
|
|
4151
4151
|
};
|
|
4152
|
-
var
|
|
4152
|
+
var Li = i("logger"), $n = i("oldValues"), Yr = i("request"), Qr = i("isPersonalisationActive"), Wr = i("processEventArray");
|
|
4153
4153
|
class R0 extends Array {
|
|
4154
4154
|
constructor(a, c) {
|
|
4155
4155
|
let {
|
|
@@ -4159,7 +4159,7 @@ function Kg() {
|
|
|
4159
4159
|
} = a;
|
|
4160
4160
|
super(), Object.defineProperty(this, Wr, {
|
|
4161
4161
|
value: z0
|
|
4162
|
-
}), Object.defineProperty(this,
|
|
4162
|
+
}), Object.defineProperty(this, Li, {
|
|
4163
4163
|
writable: !0,
|
|
4164
4164
|
value: void 0
|
|
4165
4165
|
}), Object.defineProperty(this, $n, {
|
|
@@ -4171,7 +4171,7 @@ function Kg() {
|
|
|
4171
4171
|
}), Object.defineProperty(this, Qr, {
|
|
4172
4172
|
writable: !0,
|
|
4173
4173
|
value: void 0
|
|
4174
|
-
}), n(this,
|
|
4174
|
+
}), n(this, Li)[Li] = f, n(this, $n)[$n] = c, n(this, Yr)[Yr] = A, n(this, Qr)[Qr] = x;
|
|
4175
4175
|
}
|
|
4176
4176
|
push() {
|
|
4177
4177
|
if (te.readFromLSorCookie(fe)) {
|
|
@@ -4179,7 +4179,7 @@ function Kg() {
|
|
|
4179
4179
|
c[f] = arguments[f];
|
|
4180
4180
|
return n(this, Wr)[Wr](c), 0;
|
|
4181
4181
|
} else
|
|
4182
|
-
n(this,
|
|
4182
|
+
n(this, Li)[Li].error("Account ID is not set");
|
|
4183
4183
|
}
|
|
4184
4184
|
_processOldValues() {
|
|
4185
4185
|
n(this, $n)[$n] && n(this, Wr)[Wr](n(this, $n)[$n]), n(this, $n)[$n] = null;
|
|
@@ -4197,11 +4197,11 @@ function Kg() {
|
|
|
4197
4197
|
for (; a.length > 0; ) {
|
|
4198
4198
|
var c = a.shift();
|
|
4199
4199
|
if (!Gt(c)) {
|
|
4200
|
-
n(this,
|
|
4200
|
+
n(this, Li)[Li].error(L0);
|
|
4201
4201
|
continue;
|
|
4202
4202
|
}
|
|
4203
|
-
if (c.length > 1024 && (c = c.substring(0, 1024), n(this,
|
|
4204
|
-
n(this,
|
|
4203
|
+
if (c.length > 1024 && (c = c.substring(0, 1024), n(this, Li)[Li].reportError(510, c + "... length exceeded 1024 chars. Trimmed.")), at.includes(c)) {
|
|
4204
|
+
n(this, Li)[Li].reportError(513, c + " is a restricted system event. It cannot be used as an event name.");
|
|
4205
4205
|
continue;
|
|
4206
4206
|
}
|
|
4207
4207
|
const f = {};
|
|
@@ -4211,12 +4211,12 @@ function Kg() {
|
|
|
4211
4211
|
a.unshift(A);
|
|
4212
4212
|
else {
|
|
4213
4213
|
if (c === "Charged") {
|
|
4214
|
-
if (!F0(A, n(this,
|
|
4215
|
-
n(this,
|
|
4214
|
+
if (!F0(A, n(this, Li)[Li])) {
|
|
4215
|
+
n(this, Li)[Li].reportError(511, "Charged event structure invalid. Not sent.");
|
|
4216
4216
|
continue;
|
|
4217
4217
|
}
|
|
4218
4218
|
} else if (!Zd(A)) {
|
|
4219
|
-
n(this,
|
|
4219
|
+
n(this, Li)[Li].reportError(512, c + " event structure invalid. Not sent.");
|
|
4220
4220
|
continue;
|
|
4221
4221
|
}
|
|
4222
4222
|
f.evtData = A;
|
|
@@ -4320,7 +4320,7 @@ function Kg() {
|
|
|
4320
4320
|
return a.href = p, a.hostname;
|
|
4321
4321
|
}, gt = (p, a, c) => p + "&" + a + "=" + encodeURIComponent(c), ja = () => window.location.hostname;
|
|
4322
4322
|
var Ts = i("fireRequest"), Bl = i("dropRequestDueToOptOut"), Pl = i("addUseIPToRequest"), Ol = i("addARPToRequest");
|
|
4323
|
-
class
|
|
4323
|
+
class Ni {
|
|
4324
4324
|
constructor() {
|
|
4325
4325
|
this.networkRetryCount = 0, this.minDelayFrequency = 0;
|
|
4326
4326
|
}
|
|
@@ -4365,7 +4365,7 @@ function Kg() {
|
|
|
4365
4365
|
!gi(this.device.gcookie) && Z.globalCache.RESP_N < Z.globalCache.REQ_N - 1 && setTimeout(() => {
|
|
4366
4366
|
this.logger.debug("retrying fire request for url: ".concat(a, ", tries: ").concat(this.networkRetryCount)), n(this, Ts)[Ts](a, void 0, f, A);
|
|
4367
4367
|
}, this.getDelayFrequency());
|
|
4368
|
-
else if (!gi(this.device.gcookie) && Z.globalCache.RESP_N < Z.globalCache.REQ_N - 1 && c <
|
|
4368
|
+
else if (!gi(this.device.gcookie) && Z.globalCache.RESP_N < Z.globalCache.REQ_N - 1 && c < Ge) {
|
|
4369
4369
|
setTimeout(() => {
|
|
4370
4370
|
this.logger.debug("retrying fire request for url: ".concat(a, ", tries: ").concat(c)), n(this, Ts)[Ts](a, c + 1, f, A);
|
|
4371
4371
|
}, 50);
|
|
@@ -4381,13 +4381,13 @@ function Kg() {
|
|
|
4381
4381
|
const U = document.createElement("script");
|
|
4382
4382
|
U.setAttribute("type", "text/javascript"), U.setAttribute("src", a), U.setAttribute("class", "ct-jp-cb"), U.setAttribute("rel", "nofollow"), U.async = !0, document.getElementsByTagName("head")[0].appendChild(U), this.logger.debug("req snt -> url: " + a);
|
|
4383
4383
|
};
|
|
4384
|
-
|
|
4384
|
+
Ni.logger = void 0, Ni.device = void 0, Ni.account = void 0, Object.defineProperty(Ni, Ts, {
|
|
4385
4385
|
value: X0
|
|
4386
|
-
}), Object.defineProperty(
|
|
4386
|
+
}), Object.defineProperty(Ni, Bl, {
|
|
4387
4387
|
value: J0
|
|
4388
|
-
}), Object.defineProperty(
|
|
4388
|
+
}), Object.defineProperty(Ni, Pl, {
|
|
4389
4389
|
value: W0
|
|
4390
|
-
}), Object.defineProperty(
|
|
4390
|
+
}), Object.defineProperty(Ni, Ol, {
|
|
4391
4391
|
value: Q0
|
|
4392
4392
|
});
|
|
4393
4393
|
const jl = (p, a) => {
|
|
@@ -4457,7 +4457,7 @@ $1`));
|
|
|
4457
4457
|
const I = a.display.jsFunc, E = a.display.preview;
|
|
4458
4458
|
E == null && (p += eh(x, M)), v != null && (v.onclick = () => {
|
|
4459
4459
|
if (I != null)
|
|
4460
|
-
E == null &&
|
|
4460
|
+
E == null && Ni.fireRequest(p), jl(I, a), Bs("-1", f, M.sessionId);
|
|
4461
4461
|
else {
|
|
4462
4462
|
const P = a.display.preview ? a.display.onClick : new URL(a.display.onClick).searchParams.get("r"), k = a.wzrk_id.split("_")[0];
|
|
4463
4463
|
P === "pushPrompt" ? (a.display.preview || window.parent.clevertap.renderNotificationClicked({
|
|
@@ -4790,10 +4790,10 @@ $1`));
|
|
|
4790
4790
|
const A = p.wzrk_id.split("_")[0], x = "https://".concat(c, ".dashboard.clevertap.com/").concat(f, "/campaigns/campaign/").concat(A, "/report/stats"), M = {
|
|
4791
4791
|
...p,
|
|
4792
4792
|
url: x
|
|
4793
|
-
}, v = te.readFromLSorCookie(
|
|
4793
|
+
}, v = te.readFromLSorCookie(Di), D = v ? JSON.parse(decodeURIComponent(v)) : [];
|
|
4794
4794
|
if (!D.some((E) => E.wzrk_id === p.wzrk_id)) {
|
|
4795
4795
|
const E = [...D, M];
|
|
4796
|
-
te.saveToLSorCookie(
|
|
4796
|
+
te.saveToLSorCookie(Di, encodeURIComponent(JSON.stringify(E)));
|
|
4797
4797
|
}
|
|
4798
4798
|
}
|
|
4799
4799
|
const wi = () => {
|
|
@@ -5031,7 +5031,7 @@ $1`));
|
|
|
5031
5031
|
const I = {};
|
|
5032
5032
|
I.id = f.id, I.unsubGroups = Z.unsubGroups, Z.updatedCategoryLong && (I[Pe] = Z.updatedCategoryLong);
|
|
5033
5033
|
let E = f.emailURL;
|
|
5034
|
-
c && (E = gt(E, "fetchGroups", c)), a && (E = gt(E, "encoded", a)), E = gt(E, "e", M), E = gt(E, "d", zi(JSON.stringify(I), A)), v && (E = gt(E, "p", v)), p !== "-1" && (E = gt(E, "sub", p)), D && (Z.globalUnsubscribe = D === le, E = gt(E, "page_type", D)),
|
|
5034
|
+
c && (E = gt(E, "fetchGroups", c)), a && (E = gt(E, "encoded", a)), E = gt(E, "e", M), E = gt(E, "d", zi(JSON.stringify(I), A)), v && (E = gt(E, "p", v)), p !== "-1" && (E = gt(E, "sub", p)), D && (Z.globalUnsubscribe = D === le, E = gt(E, "page_type", D)), Ni.fireRequest(E);
|
|
5035
5035
|
}
|
|
5036
5036
|
};
|
|
5037
5037
|
var ti = i("logger"), ui = i("request"), ts = i("account"), is = i("oldValues"), Jr = i("isPersonalisationActive"), Xr = i("processProfileArray");
|
|
@@ -5099,7 +5099,7 @@ $1`));
|
|
|
5099
5099
|
}, M.tz == null && (M.tz = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]), x.profile = M, x = n(this, ui)[ui].addSystemDataToObject(x, !0), n(this, ui)[ui].addFlags(x);
|
|
5100
5100
|
const v = zi(JSON.stringify(x), n(this, ti)[ti]);
|
|
5101
5101
|
let D = n(this, ts)[ts].dataPostURL;
|
|
5102
|
-
D = gt(D, "type",
|
|
5102
|
+
D = gt(D, "type", Ce), D = gt(D, "d", v), n(this, ui)[ui].saveAndFireRequest(D, Z.blockRequest);
|
|
5103
5103
|
}
|
|
5104
5104
|
}
|
|
5105
5105
|
/**
|
|
@@ -5188,7 +5188,7 @@ $1`));
|
|
|
5188
5188
|
}, x.tz == null && (x.tz = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]), A.profile = x, A = n(this, ui)[ui].addSystemDataToObject(A, !0), n(this, ui)[ui].addFlags(A);
|
|
5189
5189
|
const M = zi(JSON.stringify(A), n(this, ti)[ti]);
|
|
5190
5190
|
let v = n(this, ts)[ts].dataPostURL;
|
|
5191
|
-
v = gt(v, "type",
|
|
5191
|
+
v = gt(v, "type", Ce), v = gt(v, "d", M), n(this, ui)[ui].saveAndFireRequest(v, Z.blockRequest);
|
|
5192
5192
|
}
|
|
5193
5193
|
}
|
|
5194
5194
|
var tm = function(a) {
|
|
@@ -5215,11 +5215,11 @@ $1`));
|
|
|
5215
5215
|
A.type = "profile", x.tz == null && (x.tz = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]), A.profile = x, Fa(x, !0), A = n(this, ui)[ui].addSystemDataToObject(A, void 0), n(this, ui)[ui].addFlags(A);
|
|
5216
5216
|
const M = zi(JSON.stringify(A), n(this, ti)[ti]);
|
|
5217
5217
|
let v = n(this, ts)[ts].dataPostURL;
|
|
5218
|
-
v = gt(v, "type",
|
|
5218
|
+
v = gt(v, "type", Ce), v = gt(v, "d", M), n(this, ui)[ui].saveAndFireRequest(v, Z.blockRequest);
|
|
5219
5219
|
}
|
|
5220
5220
|
}
|
|
5221
5221
|
}
|
|
5222
|
-
}, Mn = i("request"),
|
|
5222
|
+
}, Mn = i("request"), ki = i("logger"), Gr = i("account"), Sn = i("session"), ns = i("oldValues"), ss = i("device"), Rl = i("processOUL"), zl = i("handleCookieFromCache"), Ul = i("deleteUser"), Vr = i("processLoginArray");
|
|
5223
5223
|
class im extends Array {
|
|
5224
5224
|
constructor(a, c) {
|
|
5225
5225
|
let {
|
|
@@ -5240,7 +5240,7 @@ $1`));
|
|
|
5240
5240
|
}), Object.defineProperty(this, Mn, {
|
|
5241
5241
|
writable: !0,
|
|
5242
5242
|
value: void 0
|
|
5243
|
-
}), Object.defineProperty(this,
|
|
5243
|
+
}), Object.defineProperty(this, ki, {
|
|
5244
5244
|
writable: !0,
|
|
5245
5245
|
value: void 0
|
|
5246
5246
|
}), Object.defineProperty(this, Gr, {
|
|
@@ -5255,11 +5255,11 @@ $1`));
|
|
|
5255
5255
|
}), Object.defineProperty(this, ss, {
|
|
5256
5256
|
writable: !0,
|
|
5257
5257
|
value: void 0
|
|
5258
|
-
}), n(this, Mn)[Mn] = f, n(this, Gr)[Gr] = A, n(this, Sn)[Sn] = x, n(this,
|
|
5258
|
+
}), n(this, Mn)[Mn] = f, n(this, Gr)[Gr] = A, n(this, Sn)[Sn] = x, n(this, ki)[ki] = M, n(this, ns)[ns] = c, n(this, ss)[ss] = v;
|
|
5259
5259
|
}
|
|
5260
5260
|
// On User Login
|
|
5261
5261
|
clear() {
|
|
5262
|
-
n(this,
|
|
5262
|
+
n(this, ki)[ki].debug("clear called. Reset flag has been set."), n(this, Ul)[Ul](), te.setMetaProp(N, !0);
|
|
5263
5263
|
}
|
|
5264
5264
|
push() {
|
|
5265
5265
|
for (var a = arguments.length, c = new Array(a), f = 0; f < a; f++)
|
|
@@ -5314,7 +5314,7 @@ $1`));
|
|
|
5314
5314
|
let M = {}, v;
|
|
5315
5315
|
if (x.Site != null) {
|
|
5316
5316
|
if (v = x.Site, vn(v) || !sh(v, {
|
|
5317
|
-
logger: n(this,
|
|
5317
|
+
logger: n(this, ki)[ki]
|
|
5318
5318
|
}))
|
|
5319
5319
|
return;
|
|
5320
5320
|
} else if (x.Facebook != null) {
|
|
@@ -5323,23 +5323,23 @@ $1`));
|
|
|
5323
5323
|
} else if (x["Google Plus"] != null) {
|
|
5324
5324
|
const D = x["Google Plus"];
|
|
5325
5325
|
vn(D) && !D.error && (v = oh(D, {
|
|
5326
|
-
logger: n(this,
|
|
5326
|
+
logger: n(this, ki)[ki]
|
|
5327
5327
|
}));
|
|
5328
5328
|
}
|
|
5329
5329
|
if (v != null && !vn(v)) {
|
|
5330
5330
|
M.type = "profile", v.tz == null && (v.tz = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]), M.profile = v;
|
|
5331
5331
|
const D = [];
|
|
5332
5332
|
te._isLocalStorageSupported() && (v.Identity && D.push(v.Identity), v.Email && D.push(v.Email), v.GPID && D.push("GP:" + v.GPID), v.FBID && D.push("FB:" + v.FBID), D.length > 0 && f(D)), Fa(v, !0), M = n(this, Mn)[Mn].addSystemDataToObject(M, void 0), n(this, Mn)[Mn].addFlags(M), c && (M[We] = !0);
|
|
5333
|
-
const I = zi(JSON.stringify(M), n(this,
|
|
5333
|
+
const I = zi(JSON.stringify(M), n(this, ki)[ki]);
|
|
5334
5334
|
let E = n(this, Gr)[Gr].dataPostURL;
|
|
5335
|
-
E = gt(E, "type",
|
|
5335
|
+
E = gt(E, "type", Ce), E = gt(E, "d", I), n(this, Mn)[Mn].saveAndFireRequest(E, Z.blockRequest, c);
|
|
5336
5336
|
}
|
|
5337
5337
|
}
|
|
5338
5338
|
}
|
|
5339
5339
|
}, sm = function() {
|
|
5340
5340
|
Z.blockRequest = !1, console.debug("Block request is false"), te._isLocalStorageSupported() && (delete localStorage[de], delete localStorage[$], delete localStorage[se], delete localStorage[ue], delete localStorage[Q], delete localStorage[z]), te.removeCookie(Q, ja()), te.removeCookie(n(this, Sn)[Sn].cookieName, Z.broadDomain), te.removeCookie(ue, Z.broadDomain), n(this, Sn)[Sn].setSessionCookieObject("");
|
|
5341
5341
|
}, rm = function() {
|
|
5342
|
-
Z.blockRequest = !0, n(this,
|
|
5342
|
+
Z.blockRequest = !0, n(this, ki)[ki].debug("Block request is true"), Z.globalCache = {
|
|
5343
5343
|
gcookie: null,
|
|
5344
5344
|
REQ_N: 0,
|
|
5345
5345
|
RESP_N: 0
|
|
@@ -5352,10 +5352,10 @@ $1`));
|
|
|
5352
5352
|
try {
|
|
5353
5353
|
n(this, Rl)[Rl]([c]);
|
|
5354
5354
|
} catch (A) {
|
|
5355
|
-
n(this,
|
|
5355
|
+
n(this, ki)[ki].debug(A);
|
|
5356
5356
|
}
|
|
5357
5357
|
} else
|
|
5358
|
-
n(this,
|
|
5358
|
+
n(this, ki)[ki].error("Profile object is in incorrect format");
|
|
5359
5359
|
}
|
|
5360
5360
|
};
|
|
5361
5361
|
const am = (p) => {
|
|
@@ -5607,7 +5607,7 @@ $1`));
|
|
|
5607
5607
|
throw new Error("ID must be a string");
|
|
5608
5608
|
return "".concat(ai).concat(p.toLowerCase());
|
|
5609
5609
|
}
|
|
5610
|
-
var Ui = i("oldValues"),
|
|
5610
|
+
var Ui = i("oldValues"), Ze = i("logger"), tn = i("request"), Os = i("account"), qr = i("wizAlertJSPath"), ii = i("fcmPublicKey"), Zr = i("setUpWebPush"), js = i("isNativeWebPushSupported"), Hl = i("setUpSafariNotifications"), Yl = i("setUpChromeFirefoxNotifications"), Ql = i("addWizAlertJS"), Wl = i("removeWizAlertJS"), Kr = i("handleNotificationRegistration");
|
|
5611
5611
|
class hh extends Array {
|
|
5612
5612
|
constructor(a, c) {
|
|
5613
5613
|
let {
|
|
@@ -5633,7 +5633,7 @@ $1`));
|
|
|
5633
5633
|
}), Object.defineProperty(this, Ui, {
|
|
5634
5634
|
writable: !0,
|
|
5635
5635
|
value: void 0
|
|
5636
|
-
}), Object.defineProperty(this,
|
|
5636
|
+
}), Object.defineProperty(this, Ze, {
|
|
5637
5637
|
writable: !0,
|
|
5638
5638
|
value: void 0
|
|
5639
5639
|
}), Object.defineProperty(this, tn, {
|
|
@@ -5648,7 +5648,7 @@ $1`));
|
|
|
5648
5648
|
}), Object.defineProperty(this, ii, {
|
|
5649
5649
|
writable: !0,
|
|
5650
5650
|
value: void 0
|
|
5651
|
-
}), n(this, qr)[qr] = "https://d2r1yp2w7bby2u.cloudfront.net/js/wzrk_dialog.min.js", n(this, ii)[ii] = null, n(this, Ui)[Ui] = c, n(this,
|
|
5651
|
+
}), n(this, qr)[qr] = "https://d2r1yp2w7bby2u.cloudfront.net/js/wzrk_dialog.min.js", n(this, ii)[ii] = null, n(this, Ui)[Ui] = c, n(this, Ze)[Ze] = f, n(this, tn)[tn] = x, n(this, Os)[Os] = M;
|
|
5652
5652
|
}
|
|
5653
5653
|
setupWebPush(a) {
|
|
5654
5654
|
n(this, Zr)[Zr](a);
|
|
@@ -5659,23 +5659,23 @@ $1`));
|
|
|
5659
5659
|
for (var a = arguments.length, c = new Array(a), f = 0; f < a; f++)
|
|
5660
5660
|
c[f] = arguments[f];
|
|
5661
5661
|
ph({
|
|
5662
|
-
logger: n(this,
|
|
5662
|
+
logger: n(this, Ze)[Ze],
|
|
5663
5663
|
account: n(this, Os)[Os],
|
|
5664
5664
|
request: n(this, tn)[tn],
|
|
5665
5665
|
displayArgs: c,
|
|
5666
5666
|
fcmPublicKey: n(this, ii)[ii]
|
|
5667
|
-
}), A && x ? Gl() : te.saveToLSorCookie(
|
|
5667
|
+
}), A && x ? Gl() : te.saveToLSorCookie(be, !0);
|
|
5668
5668
|
} else
|
|
5669
|
-
n(this,
|
|
5669
|
+
n(this, Ze)[Ze].error("Account ID is not set");
|
|
5670
5670
|
}
|
|
5671
5671
|
_processOldValues() {
|
|
5672
5672
|
n(this, Ui)[Ui] && (Array.isArray(n(this, Ui)[Ui]) && n(this, Ui)[Ui].length > 0 && (ph({
|
|
5673
|
-
logger: n(this,
|
|
5673
|
+
logger: n(this, Ze)[Ze],
|
|
5674
5674
|
account: n(this, Os)[Os],
|
|
5675
5675
|
request: n(this, tn)[tn],
|
|
5676
5676
|
displayArgs: n(this, Ui)[Ui].slice(),
|
|
5677
5677
|
fcmPublicKey: n(this, ii)[ii]
|
|
5678
|
-
}), te.saveToLSorCookie(
|
|
5678
|
+
}), te.saveToLSorCookie(be, !0)), n(this, Zr)[Zr](n(this, Ui)[Ui])), n(this, Ui)[Ui] = null;
|
|
5679
5679
|
}
|
|
5680
5680
|
setUpWebPushNotifications(a, c, f, A) {
|
|
5681
5681
|
ar() || lr() ? n(this, Yl)[Yl](a, c) : Ps() && n(this, Hl)[Hl](a, f, A, c);
|
|
@@ -5684,29 +5684,29 @@ $1`));
|
|
|
5684
5684
|
n(this, ii)[ii] = a;
|
|
5685
5685
|
}
|
|
5686
5686
|
_enableWebPush(a, c) {
|
|
5687
|
-
Z.webPushEnabled = a, c != null && this.setApplicationServerKey(c), !te.readFromLSorCookie(
|
|
5687
|
+
Z.webPushEnabled = a, c != null && this.setApplicationServerKey(c), !te.readFromLSorCookie(be) && Z.webPushEnabled && Z.notifApi.notifEnabledFromApi && n(this, Kr)[Kr](Z.notifApi.displayArgs);
|
|
5688
5688
|
}
|
|
5689
5689
|
}
|
|
5690
5690
|
var dm = function(a) {
|
|
5691
|
-
Z.webPushEnabled && a.length > 0 ? n(this, Kr)[Kr](a) : Z.webPushEnabled == null && a.length > 0 ? (Z.notifApi.notifEnabledFromApi = !0, Z.notifApi.displayArgs = a.slice()) : Z.webPushEnabled === !1 && a.length > 0 && n(this,
|
|
5691
|
+
Z.webPushEnabled && a.length > 0 ? n(this, Kr)[Kr](a) : Z.webPushEnabled == null && a.length > 0 ? (Z.notifApi.notifEnabledFromApi = !0, Z.notifApi.displayArgs = a.slice()) : Z.webPushEnabled === !1 && a.length > 0 && n(this, Ze)[Ze].error("Make sure push notifications are fully enabled and integrated");
|
|
5692
5692
|
}, hm = function() {
|
|
5693
5693
|
return "PushManager" in window;
|
|
5694
5694
|
}, fm = function(a, c, f, A) {
|
|
5695
5695
|
const x = document.getElementById("pnWrapper"), M = document.getElementById("wzrk_wrapper");
|
|
5696
|
-
n(this, js)[js]() && n(this, ii)[ii] != null ? (te.setMetaProp(
|
|
5696
|
+
n(this, js)[js]() && n(this, ii)[ii] != null ? (te.setMetaProp(Ke, !0), navigator.serviceWorker.register(A).then((v) => {
|
|
5697
5697
|
window.Notification.requestPermission().then((D) => {
|
|
5698
5698
|
if (D === "granted") {
|
|
5699
5699
|
const I = {
|
|
5700
5700
|
applicationServerKey: n(this, ii)[ii],
|
|
5701
5701
|
userVisibleOnly: !0
|
|
5702
5702
|
};
|
|
5703
|
-
n(this,
|
|
5703
|
+
n(this, Ze)[Ze].info("Sub Obj" + JSON.stringify(I));
|
|
5704
5704
|
const E = () => {
|
|
5705
5705
|
v.pushManager.subscribe(I).then((k) => {
|
|
5706
|
-
n(this,
|
|
5706
|
+
n(this, Ze)[Ze].info("Service Worker registered. Endpoint: " + k.endpoint), n(this, Ze)[Ze].info("Service Data Sent: " + JSON.stringify({
|
|
5707
5707
|
applicationServerKey: n(this, ii)[ii],
|
|
5708
5708
|
userVisibleOnly: !0
|
|
5709
|
-
})), n(this,
|
|
5709
|
+
})), n(this, Ze)[Ze].info("Subscription Data Received: " + JSON.stringify(k));
|
|
5710
5710
|
const O = JSON.parse(JSON.stringify(k));
|
|
5711
5711
|
O.endpoint = O.endpoint.split("/").pop(), te.saveToLSorCookie(He, O), n(this, tn)[tn].registerToken(O), typeof a < "u" && typeof a == "function" && a();
|
|
5712
5712
|
const U = document.getElementById("bell_wrapper");
|
|
@@ -5714,20 +5714,20 @@ $1`));
|
|
|
5714
5714
|
});
|
|
5715
5715
|
}, P = v.installing || v.waiting || v.active;
|
|
5716
5716
|
P && P.state === "activated" ? E() : P && P.addEventListener("statechange", (k) => {
|
|
5717
|
-
k.target.state === "activated" && (n(this,
|
|
5717
|
+
k.target.state === "activated" && (n(this, Ze)[Ze].info("Service Worker activated. Proceeding with subscription."), E());
|
|
5718
5718
|
});
|
|
5719
|
-
} else D === "denied" && (n(this,
|
|
5719
|
+
} else D === "denied" && (n(this, Ze)[Ze].info("Error subscribing to Safari web push"), x && x.parentNode.removeChild(x), M && M.parentNode.removeChild(M));
|
|
5720
5720
|
});
|
|
5721
|
-
})) : (typeof c > "u" && n(this,
|
|
5721
|
+
})) : (typeof c > "u" && n(this, Ze)[Ze].error("Ensure that APNS Web Push ID is supplied"), typeof f > "u" && n(this, Ze)[Ze].error("Ensure that APNS Web Push service path is supplied"), "safari" in window && "pushNotification" in window.safari && window.safari.pushNotification.requestPermission(f, c, {}, (v) => {
|
|
5722
5722
|
if (v.permission === "granted") {
|
|
5723
5723
|
const D = JSON.parse(JSON.stringify(v));
|
|
5724
|
-
D.endpoint = v.deviceToken, D.browser = "Safari", n(this,
|
|
5724
|
+
D.endpoint = v.deviceToken, D.browser = "Safari", n(this, Ze)[Ze].info("Service Data Sent: " + JSON.stringify({
|
|
5725
5725
|
apnsServiceUrl: f,
|
|
5726
5726
|
apnsWebPushId: c
|
|
5727
|
-
})), n(this,
|
|
5727
|
+
})), n(this, Ze)[Ze].info("Subscription Data Received: " + JSON.stringify(v));
|
|
5728
5728
|
const I = document.getElementById("bell_wrapper");
|
|
5729
|
-
I && I.parentNode.removeChild(I), x && x.parentNode.removeChild(x), M && M.parentNode.removeChild(M), te.saveToLSorCookie(He, D), n(this, tn)[tn].registerToken(D), n(this,
|
|
5730
|
-
} else v.permission === "denied" && (n(this,
|
|
5729
|
+
I && I.parentNode.removeChild(I), x && x.parentNode.removeChild(x), M && M.parentNode.removeChild(M), te.saveToLSorCookie(He, D), n(this, tn)[tn].registerToken(D), n(this, Ze)[Ze].info("Safari Web Push registered. Device Token: " + v.deviceToken);
|
|
5730
|
+
} else v.permission === "denied" && (n(this, Ze)[Ze].info("Error subscribing to Safari web push"), x && x.parentNode.removeChild(x), M && M.parentNode.removeChild(M));
|
|
5731
5731
|
}));
|
|
5732
5732
|
}, um = function(a, c) {
|
|
5733
5733
|
let f = "";
|
|
@@ -5739,7 +5739,7 @@ $1`));
|
|
|
5739
5739
|
n(this, ii)[ii] != null && (x.applicationServerKey = U0(n(this, ii)[ii]));
|
|
5740
5740
|
const M = document.getElementById("pnWrapper"), v = document.getElementById("wzrk_wrapper");
|
|
5741
5741
|
A.pushManager.subscribe(x).then((D) => {
|
|
5742
|
-
n(this,
|
|
5742
|
+
n(this, Ze)[Ze].info("Service Worker registered. Endpoint: " + D.endpoint), n(this, Ze)[Ze].debug("Service Data Sent: " + JSON.stringify(x)), n(this, Ze)[Ze].debug("Subscription Data Received: " + JSON.stringify(D));
|
|
5743
5743
|
const I = JSON.parse(JSON.stringify(D));
|
|
5744
5744
|
ar() ? (I.endpoint = I.endpoint.split("/").pop(), I.browser = "Chrome") : lr() && (I.endpoint = I.endpoint.split("/").pop(), I.browser = "Firefox"), te.saveToLSorCookie(He, I), n(this, tn)[tn].registerToken(I), typeof a < "u" && typeof a == "function" && a();
|
|
5745
5745
|
const E = document.getElementById("bell_wrapper");
|
|
@@ -5747,16 +5747,16 @@ $1`));
|
|
|
5747
5747
|
}).catch((D) => {
|
|
5748
5748
|
A.pushManager.getSubscription().then((I) => {
|
|
5749
5749
|
I !== null && I.unsubscribe().then((E) => {
|
|
5750
|
-
n(this,
|
|
5750
|
+
n(this, Ze)[Ze].info("Unsubscription successful"), window.clevertap.notifications.push({
|
|
5751
5751
|
skipDialog: !0
|
|
5752
5752
|
});
|
|
5753
5753
|
}).catch((E) => {
|
|
5754
|
-
n(this,
|
|
5754
|
+
n(this, Ze)[Ze].error("Error unsubscribing: " + E);
|
|
5755
5755
|
});
|
|
5756
|
-
}), n(this,
|
|
5756
|
+
}), n(this, Ze)[Ze].error("Error subscribing: " + D), M && M.parentNode.removeChild(M), v && v.parentNode.removeChild(v);
|
|
5757
5757
|
});
|
|
5758
5758
|
}).catch((A) => {
|
|
5759
|
-
n(this,
|
|
5759
|
+
n(this, Ze)[Ze].error("error registering service worker: " + A);
|
|
5760
5760
|
});
|
|
5761
5761
|
}, pm = function() {
|
|
5762
5762
|
const a = document.createElement("script");
|
|
@@ -5766,7 +5766,7 @@ $1`));
|
|
|
5766
5766
|
a.parentNode.removeChild(a);
|
|
5767
5767
|
}, gm = function(a) {
|
|
5768
5768
|
let c, f, A, x, M, v, D, I, E, P, k, O, U, X, Y, G, R;
|
|
5769
|
-
const T = Ps() && "PushManager" in window && te.getMetaProp(
|
|
5769
|
+
const T = Ps() && "PushManager" in window && te.getMetaProp(Ke) && n(this, ii)[ii] !== null;
|
|
5770
5770
|
if (a.length === 1) {
|
|
5771
5771
|
if (Dt(a[0])) {
|
|
5772
5772
|
const J = a[0];
|
|
@@ -5778,16 +5778,16 @@ $1`));
|
|
|
5778
5778
|
return;
|
|
5779
5779
|
const B = O != null && U != null;
|
|
5780
5780
|
if (window.location.protocol !== "https:" && document.location.hostname !== "localhost" && !B) {
|
|
5781
|
-
n(this,
|
|
5781
|
+
n(this, Ze)[Ze].error("Make sure you are https or localhost to register for notifications");
|
|
5782
5782
|
return;
|
|
5783
5783
|
}
|
|
5784
5784
|
if ((ar() || lr()) && !n(this, js)[js]()) {
|
|
5785
|
-
n(this,
|
|
5785
|
+
n(this, Ze)[Ze].error("Web Push Notification is not supported on this browser");
|
|
5786
5786
|
return;
|
|
5787
5787
|
}
|
|
5788
5788
|
if (!B) {
|
|
5789
5789
|
if (!("Notification" in window) || Notification == null) {
|
|
5790
|
-
n(this,
|
|
5790
|
+
n(this, Ze)[Ze].error("Notification not supported on this Device or Browser");
|
|
5791
5791
|
return;
|
|
5792
5792
|
}
|
|
5793
5793
|
if (Notification.permission === "granted" && (T || ar() || lr())) {
|
|
@@ -5801,7 +5801,7 @@ $1`));
|
|
|
5801
5801
|
}
|
|
5802
5802
|
}
|
|
5803
5803
|
if (!c || !f || !A || !x) {
|
|
5804
|
-
n(this,
|
|
5804
|
+
n(this, Ze)[Ze].error("Missing input parameters; please specify title, body, ok button and cancel button text");
|
|
5805
5805
|
return;
|
|
5806
5806
|
}
|
|
5807
5807
|
(M == null || !M.match(/^#[a-f\d]{6}$/i)) && (M = "#f28046");
|
|
@@ -5817,8 +5817,8 @@ $1`));
|
|
|
5817
5817
|
} else
|
|
5818
5818
|
te.setMetaProp(qe, W);
|
|
5819
5819
|
}
|
|
5820
|
-
if (Ps() && n(this, js)[js]() && n(this, ii)[ii] !== null && te.setMetaProp(
|
|
5821
|
-
n(this,
|
|
5820
|
+
if (Ps() && n(this, js)[js]() && n(this, ii)[ii] !== null && te.setMetaProp(Ke, !0), te.readFromLSorCookie(bn) || document.getElementById(Ot)) {
|
|
5821
|
+
n(this, Ze)[Ze].debug("Soft prompt wrapper is already loading or loaded");
|
|
5822
5822
|
return;
|
|
5823
5823
|
}
|
|
5824
5824
|
te.saveToLSorCookie(bn, !0), n(this, Ql)[Ql]().onload = () => {
|
|
@@ -5847,7 +5847,7 @@ $1`));
|
|
|
5847
5847
|
logger: a
|
|
5848
5848
|
});
|
|
5849
5849
|
try {
|
|
5850
|
-
if (te.readFromLSorCookie(
|
|
5850
|
+
if (te.readFromLSorCookie(be)) {
|
|
5851
5851
|
try {
|
|
5852
5852
|
Gl();
|
|
5853
5853
|
} catch (x) {
|
|
@@ -5892,7 +5892,7 @@ $1`));
|
|
|
5892
5892
|
fcmPublicKey: Xl,
|
|
5893
5893
|
apnsWebPushId: I,
|
|
5894
5894
|
apnsWebPushServiceUrl: E
|
|
5895
|
-
}), a && f === "old" && (nn.setApplicationServerKey(Fs), nn.setupWebPush(Ra)), te.saveToLSorCookie(
|
|
5895
|
+
}), a && f === "old" && (nn.setApplicationServerKey(Fs), nn.setupWebPush(Ra)), te.saveToLSorCookie(be, !1), te.saveToLSorCookie(Ct, !1);
|
|
5896
5896
|
}, ym = (p) => {
|
|
5897
5897
|
if (p && p.length === 1 && Dt(p[0])) {
|
|
5898
5898
|
const {
|
|
@@ -6008,7 +6008,7 @@ $1`));
|
|
|
6008
6008
|
textContent: am(I)
|
|
6009
6009
|
});
|
|
6010
6010
|
E.appendChild(T), E.appendChild(k), P && E.appendChild(P), wh(k, I.card.position);
|
|
6011
|
-
const B = Ps() && "PushManager" in window && te.getMetaProp(
|
|
6011
|
+
const B = Ps() && "PushManager" in window && te.getMetaProp(Ke) && a !== null;
|
|
6012
6012
|
if (!p.isPreview && "Notification" in window && Notification !== null) {
|
|
6013
6013
|
if (Notification.permission === "granted" && (B || ar() || lr())) {
|
|
6014
6014
|
nn.setApplicationServerKey(Fs), nn.setUpWebPushNotifications(f, _r, x, M);
|
|
@@ -6018,11 +6018,11 @@ $1`));
|
|
|
6018
6018
|
}
|
|
6019
6019
|
const W = (/* @__PURE__ */ new Date()).getTime() / 1e3, J = te.getMetaProp("webpush_last_notif_time"), ie = D.popupFrequency || 7;
|
|
6020
6020
|
if (!J || W - J >= ie * 24 * 60 * 60)
|
|
6021
|
-
document.body.insertBefore(E, document.body.firstChild), p.isPreview || (te.setMetaProp("webpush_last_notif_time", W), xh(E, c, f, A, x, M), Ps() && "PushManager" in window && a != null && te.setMetaProp(
|
|
6021
|
+
document.body.insertBefore(E, document.body.firstChild), p.isPreview || (te.setMetaProp("webpush_last_notif_time", W), xh(E, c, f, A, x, M), Ps() && "PushManager" in window && a != null && te.setMetaProp(Ke, !0));
|
|
6022
6022
|
else if (Ps()) {
|
|
6023
6023
|
if (B || a === null || !("PushManager" in window))
|
|
6024
6024
|
return;
|
|
6025
|
-
p.isPreview || (document.body.appendChild(E), xh(E, c, f, A, x, M), te.setMetaProp("webpush_last_notif_time", W), te.setMetaProp(
|
|
6025
|
+
p.isPreview || (document.body.appendChild(E), xh(E, c, f, A, x, M), te.setMetaProp("webpush_last_notif_time", W), te.setMetaProp(Ke, !0));
|
|
6026
6026
|
}
|
|
6027
6027
|
}, Ah = (p, a, c, f) => {
|
|
6028
6028
|
if (document.getElementById("bell_wrapper") || Notification.permission === "granted") return;
|
|
@@ -6334,7 +6334,7 @@ $1`));
|
|
|
6334
6334
|
if (c) {
|
|
6335
6335
|
const f = window.opener, A = new URL(document.referrer);
|
|
6336
6336
|
switch (c) {
|
|
6337
|
-
case
|
|
6337
|
+
case Zn:
|
|
6338
6338
|
if (f) {
|
|
6339
6339
|
f.postMessage("ready", A.origin);
|
|
6340
6340
|
const x = (M) => Om(M);
|
|
@@ -7202,8 +7202,8 @@ $1`));
|
|
|
7202
7202
|
const oe = ie + J <= x ? J : x - ie;
|
|
7203
7203
|
B = P + oe;
|
|
7204
7204
|
} else {
|
|
7205
|
-
const oe = E - c,
|
|
7206
|
-
B = oe -
|
|
7205
|
+
const oe = E - c, ve = oe - J >= f ? J : oe - f;
|
|
7206
|
+
B = oe - ve;
|
|
7207
7207
|
}
|
|
7208
7208
|
} else
|
|
7209
7209
|
B = Y.x - R, B < f ? E + c <= x ? B = E : B = f : B + c > x && (P - c >= f ? B = P - c : B = x - c);
|
|
@@ -8001,8 +8001,8 @@ $1`));
|
|
|
8001
8001
|
else {
|
|
8002
8002
|
const W = I * 5 / 100;
|
|
8003
8003
|
var k = 10;
|
|
8004
|
-
let J = E * 5 / 100, ie = k + W, oe = E * 30 / 100 + 20,
|
|
8005
|
-
(/mobile/i.test(navigator.userAgent) || /mini/i.test(navigator.userAgent)) && /iPad/i.test(navigator.userAgent) === !1 ? (oe = E * 85 / 100 + 20, J = E * 5 / 100, ie = I * 5 / 100,
|
|
8004
|
+
let J = E * 5 / 100, ie = k + W, oe = E * 30 / 100 + 20, ve = "width:30%;";
|
|
8005
|
+
(/mobile/i.test(navigator.userAgent) || /mini/i.test(navigator.userAgent)) && /iPad/i.test(navigator.userAgent) === !1 ? (oe = E * 85 / 100 + 20, J = E * 5 / 100, ie = I * 5 / 100, ve = "width:80%;") : ("ontouchstart" in window || /tablet/i.test(navigator.userAgent)) && (oe = E * 50 / 100 + 20, J = E * 5 / 100, ie = I * 5 / 100, ve = "width:50%;"), A.proto == null ? (P = !0, D.setAttribute("style", "display:block;overflow:hidden; bottom:" + ie + "px !important;width:" + oe + "px !important;right:" + J + "px !important;position:fixed;z-index:2147483647;")) : D.setAttribute("style", ve + A.iFrameStyle);
|
|
8006
8006
|
}
|
|
8007
8007
|
document.body.appendChild(D);
|
|
8008
8008
|
const O = document.createElement("iframe"), U = A.br === !1 ? "0" : "8";
|
|
@@ -8015,11 +8015,11 @@ $1`));
|
|
|
8015
8015
|
G = p.msgContent.html, G = G.replace(/##campaignId##/g, f), G = G.replace(/##campaignId_batchId##/g, p.wzrk_id);
|
|
8016
8016
|
else {
|
|
8017
8017
|
const W = '<style type="text/css">body{margin:0;padding:0;}#contentDiv.wzrk{overflow:hidden;padding:0;text-align:center;' + Y + "}#contentDiv.wzrk td{padding:15px 10px;}.wzrkPPtitle{font-weight: bold;font-size: 16px;font-family:arial;padding-bottom:10px;word-break: break-word;}.wzrkPPdscr{font-size: 14px;font-family:arial;line-height:16px;word-break: break-word;display:inline-block;}.PL15{padding-left:15px;}.wzrkPPwarp{margin:20px 20px 0 5px;padding:0px;border-radius: " + U + "px;box-shadow: 1px 1px 5px #888888;}a.wzrkClose{cursor:pointer;position: absolute;top: 11px;right: 11px;z-index: 2147483647;font-size:19px;font-family:arial;font-weight:bold;text-decoration: none;width: 25px;/*height: 25px;*/text-align: center; -webkit-appearance: none; line-height: 25px;background: #353535;border: #fff 2px solid;border-radius: 100%;box-shadow: #777 2px 2px 2px;color:#fff;}a:hover.wzrkClose{background-color:#d1914a !important;color:#fff !important; -webkit-appearance: none;}td{vertical-align:top;}td.imgTd{border-top-left-radius:8px;border-bottom-left-radius:8px;}</style>";
|
|
8018
|
-
let J, ie, oe,
|
|
8019
|
-
p.display.theme === "dark" ? (J = "#2d2d2e", ie = "#eaeaea", oe = "#353535",
|
|
8018
|
+
let J, ie, oe, ve, ne;
|
|
8019
|
+
p.display.theme === "dark" ? (J = "#2d2d2e", ie = "#eaeaea", oe = "#353535", ve = "#353535", ne = "#ffffff") : (J = "#ffffff", ie = "#000000", ve = "#f4f4f4", oe = "#a5a6a6", ne = "#ffffff");
|
|
8020
8020
|
const ae = p.msgContent.title, xe = p.msgContent.description;
|
|
8021
8021
|
let Ae = "";
|
|
8022
|
-
p.msgContent.imageUrl != null && p.msgContent.imageUrl !== "" && (Ae = "<td class='imgTd' style='background-color:" +
|
|
8022
|
+
p.msgContent.imageUrl != null && p.msgContent.imageUrl !== "" && (Ae = "<td class='imgTd' style='background-color:" + ve + "'><img src='" + p.msgContent.imageUrl + "' height='60' width='60'></td>");
|
|
8023
8023
|
const _e = "parent.$WZRK_WR.closeIframe(" + f + ",'" + x + "');", ot = "<div class='wzrkPPwarp' style='color:" + ie + ";background-color:" + J + ";'><a href='javascript:void(0);' onclick=" + _e + " class='wzrkClose' style='background-color:" + oe + ";color:" + ne + "'>×</a><div id='contentDiv' class='wzrk'><table cellpadding='0' cellspacing='0' border='0'><tr>" + Ae + "<td style='vertical-align:top;'><div class='wzrkPPtitle' style='color:" + ie + "'>" + ae + "</div>", At = "<div class='wzrkPPdscr' style='color:" + ie + "'>" + xe + "<div></td></tr></table></div>";
|
|
8024
8024
|
G = W + ot + At;
|
|
8025
8025
|
}
|
|
@@ -8070,7 +8070,7 @@ $1`));
|
|
|
8070
8070
|
if (f !== "" && f != null) {
|
|
8071
8071
|
const I = p.display.jsFunc;
|
|
8072
8072
|
if (f += eh(bi.device, bi.session), I != null) {
|
|
8073
|
-
|
|
8073
|
+
Ni.fireRequest(f), jl(I, p);
|
|
8074
8074
|
return;
|
|
8075
8075
|
}
|
|
8076
8076
|
p.display.window === 1 ? window.open(f, "_blank") : window.location = f;
|
|
@@ -8206,11 +8206,11 @@ $1`));
|
|
|
8206
8206
|
let T, B, W, J;
|
|
8207
8207
|
A.display.theme === "dark" ? (T = "#2d2d2e", B = "#eaeaea", W = "#353535", J = "#ffffff") : (T = "#ffffff", B = "#000000", W = "#a5a6a6", J = "#ffffff");
|
|
8208
8208
|
const ie = A.msgContent.title, oe = A.msgContent.description;
|
|
8209
|
-
let
|
|
8210
|
-
A.msgContent.ctaText != null && A.msgContent.ctaText !== "" && (
|
|
8209
|
+
let ve = "";
|
|
8210
|
+
A.msgContent.ctaText != null && A.msgContent.ctaText !== "" && (ve = "<div class='button'><a href='#'>" + A.msgContent.ctaText + "</a></div>");
|
|
8211
8211
|
let ne = "";
|
|
8212
8212
|
A.msgContent.imageUrl != null && A.msgContent.imageUrl !== "" && (ne = "<div style='padding-top:20px;'><img src='" + A.msgContent.imageUrl + "' width='500' alt=" + ie + " /></div>");
|
|
8213
|
-
const ae = "parent.$WZRK_WR.closeIframe(" + x + ",'intentPreview');", xe = "<div class='wzrkPPwarp' style='color:" + B + ";background-color:" + T + ";'><a href='javascript:void(0);' onclick=" + ae + " class='wzrkClose' style='background-color:" + W + ";color:" + J + "'>×</a><div id='contentDiv' class='wzrk'><div class='wzrkPPtitle' style='color:" + B + "'>" + ie + "</div>", Ae = "<div class='wzrkPPdscr' style='color:" + B + "'>" + oe + "</div>" + ne +
|
|
8213
|
+
const ae = "parent.$WZRK_WR.closeIframe(" + x + ",'intentPreview');", xe = "<div class='wzrkPPwarp' style='color:" + B + ";background-color:" + T + ";'><a href='javascript:void(0);' onclick=" + ae + " class='wzrkClose' style='background-color:" + W + ";color:" + J + "'>×</a><div id='contentDiv' class='wzrk'><div class='wzrkPPtitle' style='color:" + B + "'>" + ie + "</div>", Ae = "<div class='wzrkPPdscr' style='color:" + B + "'>" + oe + "</div>" + ne + ve + "</div></div>";
|
|
8214
8214
|
Y = R + xe + Ae;
|
|
8215
8215
|
}
|
|
8216
8216
|
k.setAttribute("style", "color-scheme: none; z-index: 2147483647; display:block; height: 100% !important; width: 100% !important;min-height:80px !important;border:0px !important; border-color:none !important;"), P.appendChild(k);
|
|
@@ -8467,7 +8467,7 @@ $1`));
|
|
|
8467
8467
|
}), Object.defineProperty(this, sn, {
|
|
8468
8468
|
writable: !0,
|
|
8469
8469
|
value: !1
|
|
8470
|
-
}), this.processingBackup = !1, n(this, Nt)[Nt] = c, n(this, Yi)[Yi] = f, n(this, Us)[Us] = A, n(this, Hs)[Hs] = x, n(this, to)[to] = M,
|
|
8470
|
+
}), this.processingBackup = !1, n(this, Nt)[Nt] = c, n(this, Yi)[Yi] = f, n(this, Us)[Us] = A, n(this, Hs)[Hs] = x, n(this, to)[to] = M, Ni.logger = c, Ni.device = A, Ni.account = f;
|
|
8471
8471
|
}
|
|
8472
8472
|
/**
|
|
8473
8473
|
* Unified backup processing method
|
|
@@ -8487,7 +8487,7 @@ $1`));
|
|
|
8487
8487
|
if (a ? x : !0) {
|
|
8488
8488
|
if (n(this, Nt)[Nt].debug("Processing ".concat(x ? "OUL" : "regular", " backup event : ").concat(A.q)), typeof A.q < "u") {
|
|
8489
8489
|
const v = JSON.parse(te.readCookie(_ + "_" + n(this, Yi)[Yi].id));
|
|
8490
|
-
v?.s && (A.q = A.q + "&s=" + v.s),
|
|
8490
|
+
v?.s && (A.q = A.q + "&s=" + v.s), Ni.fireRequest(A.q);
|
|
8491
8491
|
}
|
|
8492
8492
|
A.fired = !0;
|
|
8493
8493
|
}
|
|
@@ -8535,7 +8535,7 @@ $1`));
|
|
|
8535
8535
|
const x = Es(), M = n(this, tc)[tc]();
|
|
8536
8536
|
Z.globalCache.REQ_N = M, a = gt(a, "rn", M);
|
|
8537
8537
|
const v = a + "&i=" + x + "&sn=" + ec;
|
|
8538
|
-
te.backupEvent(v, M, n(this, Nt)[Nt]), f && te.markBackupAsOUL(M), !(Z.offline || Z.delayEvents) && ((!c || n(this, sn)[sn] !== void 0 && n(this, sn)[sn]) && !window.isOULInProgress ? (x === Hh ? ec++ : (Hh = x, ec = 0), window.oulReqN = M,
|
|
8538
|
+
te.backupEvent(v, M, n(this, Nt)[Nt]), f && te.markBackupAsOUL(M), !(Z.offline || Z.delayEvents) && ((!c || n(this, sn)[sn] !== void 0 && n(this, sn)[sn]) && !window.isOULInProgress ? (x === Hh ? ec++ : (Hh = x, ec = 0), window.oulReqN = M, Ni.fireRequest(v, !1, f, A)) : n(this, Nt)[Nt].debug("Not fired due to override - ".concat(Z.blockRequest, " or clearCookie - ").concat(n(this, sn)[sn], " or OUL request in progress - ").concat(window.isOULInProgress)));
|
|
8539
8539
|
}
|
|
8540
8540
|
unregisterTokenForGuid(a) {
|
|
8541
8541
|
const c = te.readFromLSorCookie(He);
|
|
@@ -8546,7 +8546,7 @@ $1`));
|
|
|
8546
8546
|
f.s = A.s;
|
|
8547
8547
|
const x = zi(JSON.stringify(f), n(this, Nt)[Nt]);
|
|
8548
8548
|
let M = n(this, Yi)[Yi].dataPostURL;
|
|
8549
|
-
M = gt(M, "type", "data"), M = gt(M, "d", x),
|
|
8549
|
+
M = gt(M, "type", "data"), M = gt(M, "d", x), Ni.fireRequest(M, !0), te.saveToLSorCookie(pe, !1);
|
|
8550
8550
|
}
|
|
8551
8551
|
this.registerToken(c);
|
|
8552
8552
|
}
|
|
@@ -8554,13 +8554,13 @@ $1`));
|
|
|
8554
8554
|
if (!a) return;
|
|
8555
8555
|
a = this.addSystemDataToObject(a, !0), a = JSON.stringify(a);
|
|
8556
8556
|
let c = n(this, Yi)[Yi].dataPostURL;
|
|
8557
|
-
c = gt(c, "type", "data"), c = gt(c, "d", zi(a, n(this, Nt)[Nt])),
|
|
8557
|
+
c = gt(c, "type", "data"), c = gt(c, "d", zi(a, n(this, Nt)[Nt])), Ni.fireRequest(c), te.save(me, "ok");
|
|
8558
8558
|
}
|
|
8559
8559
|
processEvent(a) {
|
|
8560
8560
|
n(this, ic)[ic](a.evtName), a = this.addSystemDataToObject(a, void 0), this.addFlags(a), a[Q] = nh();
|
|
8561
8561
|
const c = zi(JSON.stringify(a), n(this, Nt)[Nt]);
|
|
8562
8562
|
let f = n(this, Yi)[Yi].dataPostURL;
|
|
8563
|
-
f = gt(f, "type",
|
|
8563
|
+
f = gt(f, "type", Ce), f = gt(f, "d", c), this.saveAndFireRequest(f, Z.blockRequest, !1, a.evtName);
|
|
8564
8564
|
}
|
|
8565
8565
|
post(a, c) {
|
|
8566
8566
|
return fetch(a, {
|
|
@@ -8644,7 +8644,7 @@ $1`));
|
|
|
8644
8644
|
A.type = "profile", A.profile = x, A = n(this, Ys)[Ys].addSystemDataToObject(A, void 0);
|
|
8645
8645
|
const M = zi(JSON.stringify(A), n(this, no)[no]);
|
|
8646
8646
|
let v = n(this, io)[io].dataPostURL;
|
|
8647
|
-
v = gt(v, "type",
|
|
8647
|
+
v = gt(v, "type", Ce), v = gt(v, "d", M), v = gt(v, we, c ? "true" : "false"), n(this, Ys)[Ys].saveAndFireRequest(v, Z.blockRequest), a.splice(0, a.length);
|
|
8648
8648
|
}
|
|
8649
8649
|
}
|
|
8650
8650
|
}, Qs = i("variableStore");
|
|
@@ -9122,8 +9122,8 @@ $1`));
|
|
|
9122
9122
|
Object.keys(B).forEach((ie) => {
|
|
9123
9123
|
const oe = document.querySelector("ct-web-inbox");
|
|
9124
9124
|
if (oe) {
|
|
9125
|
-
const
|
|
9126
|
-
|
|
9125
|
+
const ve = oe.shadowRoot.getElementById(ie);
|
|
9126
|
+
ve !== null && (ve.shadowRoot.getElementById("unreadMarker").style.display = "none");
|
|
9127
9127
|
}
|
|
9128
9128
|
T[ie].viewed = 1, window.clevertap.renderNotificationViewed({
|
|
9129
9129
|
msgId: T[ie].wzrk_id,
|
|
@@ -9432,7 +9432,7 @@ $1`));
|
|
|
9432
9432
|
that were qualified and rendered for the current user
|
|
9433
9433
|
*/
|
|
9434
9434
|
getAllQualifiedCampaignDetails() {
|
|
9435
|
-
return te.readFromLSorCookie(
|
|
9435
|
+
return te.readFromLSorCookie(Di) && JSON.parse(decodeURIComponent(te.readFromLSorCookie(Di)));
|
|
9436
9436
|
}
|
|
9437
9437
|
}
|
|
9438
9438
|
var Ag = function() {
|
|
@@ -9490,7 +9490,7 @@ $1`));
|
|
|
9490
9490
|
}), c = n(this, ht)[ht].addSystemDataToObject(c, !0), n(this, ht)[ht].addFlags(c);
|
|
9491
9491
|
const A = zi(JSON.stringify(c), n(this, Me)[Me]);
|
|
9492
9492
|
let x = n(this, rt)[rt].dataPostURL;
|
|
9493
|
-
x = gt(x, "type",
|
|
9493
|
+
x = gt(x, "type", Ce), x = gt(x, "d", A), n(this, ht)[ht].saveAndFireRequest(x, Z.blockRequest);
|
|
9494
9494
|
};
|
|
9495
9495
|
const Yh = new gg(window.clevertap);
|
|
9496
9496
|
return window.clevertap = window.wizrocket = Yh, Yh;
|
|
@@ -10720,7 +10720,7 @@ function iA({ children: l, initialValues: e }) {
|
|
|
10720
10720
|
e?.typeOfApp || null
|
|
10721
10721
|
), [S, C] = K(
|
|
10722
10722
|
e?.distributorIdnum || null
|
|
10723
|
-
), L =
|
|
10723
|
+
), L = Fi(() => {
|
|
10724
10724
|
const Qe = e?.payerMobileNumber;
|
|
10725
10725
|
if (!Qe)
|
|
10726
10726
|
return null;
|
|
@@ -10744,9 +10744,9 @@ function iA({ children: l, initialValues: e }) {
|
|
|
10744
10744
|
e?.salesmanId ?? null
|
|
10745
10745
|
), [ze, We] = K(
|
|
10746
10746
|
e?.redirectionUrl || null
|
|
10747
|
-
), [
|
|
10747
|
+
), [Ce, he] = K(
|
|
10748
10748
|
e?.transactionId || null
|
|
10749
|
-
), [Ee,
|
|
10749
|
+
), [Ee, Ge] = K(
|
|
10750
10750
|
e?.showResultOnly || !1
|
|
10751
10751
|
), [dt, Re] = K(
|
|
10752
10752
|
e?.successButtonText || "Home"
|
|
@@ -10763,7 +10763,7 @@ function iA({ children: l, initialValues: e }) {
|
|
|
10763
10763
|
), [yt, nt] = K(
|
|
10764
10764
|
e?.erpId || null
|
|
10765
10765
|
), [St, mt] = K(null);
|
|
10766
|
-
if (
|
|
10766
|
+
if (Ve(() => {
|
|
10767
10767
|
const Qe = pl(), bt = ml();
|
|
10768
10768
|
Qe && hn.configure({
|
|
10769
10769
|
enabled: !0,
|
|
@@ -10772,13 +10772,13 @@ function iA({ children: l, initialValues: e }) {
|
|
|
10772
10772
|
region: bt
|
|
10773
10773
|
}
|
|
10774
10774
|
});
|
|
10775
|
-
}, []),
|
|
10775
|
+
}, []), Ve(() => {
|
|
10776
10776
|
const Qe = e?.source || w;
|
|
10777
10777
|
Ut.setSource(Qe), Ut.setChannel(e?.channel || "FUNDLY"), Ut.setErpHeaders(
|
|
10778
10778
|
e?.erpCode || null,
|
|
10779
10779
|
e?.partnerSecretKey || null
|
|
10780
10780
|
);
|
|
10781
|
-
}, [w, e?.source, e?.channel, e?.erpCode, e?.partnerSecretKey]),
|
|
10781
|
+
}, [w, e?.source, e?.channel, e?.erpCode, e?.partnerSecretKey]), Ve(() => {
|
|
10782
10782
|
t && qf(t);
|
|
10783
10783
|
}, [t]), (() => {
|
|
10784
10784
|
const Qe = [];
|
|
@@ -10853,10 +10853,10 @@ function iA({ children: l, initialValues: e }) {
|
|
|
10853
10853
|
setSalesmanId: Be,
|
|
10854
10854
|
redirectionUrl: ze,
|
|
10855
10855
|
setRedirectionUrl: We,
|
|
10856
|
-
transactionId:
|
|
10856
|
+
transactionId: Ce,
|
|
10857
10857
|
setTransactionId: he,
|
|
10858
10858
|
showResultOnly: Ee,
|
|
10859
|
-
setShowResultOnly:
|
|
10859
|
+
setShowResultOnly: Ge,
|
|
10860
10860
|
successButtonText: dt,
|
|
10861
10861
|
setSuccessButtonText: Re,
|
|
10862
10862
|
failureButtonText: Ne,
|
|
@@ -11611,8 +11611,8 @@ const UA = (l) => {
|
|
|
11611
11611
|
}, [l]);
|
|
11612
11612
|
const ce = (ke, ye) => {
|
|
11613
11613
|
const De = atob(ke), Be = new ArrayBuffer(De.length), ze = new Uint8Array(Be);
|
|
11614
|
-
for (let
|
|
11615
|
-
ze[
|
|
11614
|
+
for (let Ce = 0; Ce < De.length; Ce++)
|
|
11615
|
+
ze[Ce] = De.charCodeAt(Ce);
|
|
11616
11616
|
const We = new Blob([Be], { type: "image/jpeg" });
|
|
11617
11617
|
return new File([We], ye, { type: "image/jpeg" });
|
|
11618
11618
|
}, le = async () => {
|
|
@@ -12980,7 +12980,7 @@ const au = ({
|
|
|
12980
12980
|
return _($), null;
|
|
12981
12981
|
}
|
|
12982
12982
|
}, [V, _] = K("");
|
|
12983
|
-
return
|
|
12983
|
+
return Ve(() => {
|
|
12984
12984
|
l || (C(!1), N("Submit"), y(!1));
|
|
12985
12985
|
}, [l]), /* @__PURE__ */ b(en, { open: l, onClose: g, children: [
|
|
12986
12986
|
/* @__PURE__ */ b(
|
|
@@ -13228,7 +13228,7 @@ const au = ({
|
|
|
13228
13228
|
className: u
|
|
13229
13229
|
}) => {
|
|
13230
13230
|
const [m, g] = K("");
|
|
13231
|
-
|
|
13231
|
+
Ve(() => {
|
|
13232
13232
|
if (l) {
|
|
13233
13233
|
const L = l.getFullYear(), N = String(l.getMonth() + 1).padStart(2, "0"), j = String(l.getDate()).padStart(2, "0");
|
|
13234
13234
|
g(`${L}-${N}-${j}`);
|
|
@@ -13406,13 +13406,13 @@ const au = ({
|
|
|
13406
13406
|
}
|
|
13407
13407
|
}, re.trim() ? 300 : 0);
|
|
13408
13408
|
}, []);
|
|
13409
|
-
|
|
13409
|
+
Ve(() => {
|
|
13410
13410
|
const re = (pe) => {
|
|
13411
13411
|
Be.current && !Be.current.contains(pe.target) && ke(!1);
|
|
13412
13412
|
};
|
|
13413
13413
|
return document.addEventListener("mousedown", re), () => document.removeEventListener("mousedown", re);
|
|
13414
13414
|
}, []);
|
|
13415
|
-
async function
|
|
13415
|
+
async function Ce(re, pe) {
|
|
13416
13416
|
try {
|
|
13417
13417
|
return (await Ht.post(
|
|
13418
13418
|
Uo(),
|
|
@@ -13447,7 +13447,7 @@ const au = ({
|
|
|
13447
13447
|
try {
|
|
13448
13448
|
let re;
|
|
13449
13449
|
if (S) {
|
|
13450
|
-
const yt = await he(S), nt = await
|
|
13450
|
+
const yt = await he(S), nt = await Ce(
|
|
13451
13451
|
yt,
|
|
13452
13452
|
S.name
|
|
13453
13453
|
);
|
|
@@ -13481,7 +13481,7 @@ const au = ({
|
|
|
13481
13481
|
} finally {
|
|
13482
13482
|
de(!1);
|
|
13483
13483
|
}
|
|
13484
|
-
}, [
|
|
13484
|
+
}, [Ge, dt] = K(!1), [Re, Ne] = K(""), [Pe, Oe] = K(""), [je, Ue] = K(null);
|
|
13485
13485
|
return Ki.useEffect(() => {
|
|
13486
13486
|
l || (y(null), C(null), j(""), ue(""), le(""), me([]), ke(!1), F(!1), Q(!1), _(!1), $("Submit"), dt(!1), Ne(""), Oe(""), de(!1));
|
|
13487
13487
|
}, [l]), Ki.useEffect(() => {
|
|
@@ -13970,7 +13970,7 @@ const au = ({
|
|
|
13970
13970
|
/* @__PURE__ */ b(
|
|
13971
13971
|
_i,
|
|
13972
13972
|
{
|
|
13973
|
-
open:
|
|
13973
|
+
open: Ge,
|
|
13974
13974
|
onClose: () => dt(!1),
|
|
13975
13975
|
children: [
|
|
13976
13976
|
/* @__PURE__ */ h($i, { children: /* @__PURE__ */ b("div", { className: "fp:w-full fp:flex fp:flex-col fp:justify-center fp:items-center fp:space-y-1", children: [
|
|
@@ -14090,7 +14090,7 @@ const au = ({
|
|
|
14090
14090
|
COPY_FOR_ACCESSIBILITY: 512,
|
|
14091
14091
|
ASSEMBLE: 1024,
|
|
14092
14092
|
PRINT_HIGH_QUALITY: 2048
|
|
14093
|
-
},
|
|
14093
|
+
}, Ti = {
|
|
14094
14094
|
FILL: 0,
|
|
14095
14095
|
STROKE: 1,
|
|
14096
14096
|
FILL_STROKE: 2,
|
|
@@ -14530,7 +14530,7 @@ function ux(l, e, t) {
|
|
|
14530
14530
|
return !1;
|
|
14531
14531
|
return !0;
|
|
14532
14532
|
}
|
|
14533
|
-
function
|
|
14533
|
+
function Oi(l, e, t) {
|
|
14534
14534
|
return Math.min(Math.max(l, e), t);
|
|
14535
14535
|
}
|
|
14536
14536
|
function uu(l) {
|
|
@@ -17550,16 +17550,16 @@ class $e {
|
|
|
17550
17550
|
if (o *= i, d *= n, s *= i, r *= n, this._mustFixPosition)
|
|
17551
17551
|
switch (e) {
|
|
17552
17552
|
case 0:
|
|
17553
|
-
s =
|
|
17553
|
+
s = Oi(s, 0, i - o), r = Oi(r, 0, n - d);
|
|
17554
17554
|
break;
|
|
17555
17555
|
case 90:
|
|
17556
|
-
s =
|
|
17556
|
+
s = Oi(s, 0, i - d), r = Oi(r, o, n);
|
|
17557
17557
|
break;
|
|
17558
17558
|
case 180:
|
|
17559
|
-
s =
|
|
17559
|
+
s = Oi(s, o, i), r = Oi(r, d, n);
|
|
17560
17560
|
break;
|
|
17561
17561
|
case 270:
|
|
17562
|
-
s =
|
|
17562
|
+
s = Oi(s, d, i), r = Oi(r, 0, n - o);
|
|
17563
17563
|
break;
|
|
17564
17564
|
}
|
|
17565
17565
|
this.x = s /= i, this.y = r /= n;
|
|
@@ -17751,7 +17751,7 @@ class $e {
|
|
|
17751
17751
|
if ([$, se] = S($ / i, se / n), N) {
|
|
17752
17752
|
const le = Math.hypot(o, d);
|
|
17753
17753
|
_ = q = Math.max(Math.min(Math.hypot(F[0] - z[0] - $, F[1] - z[1] - se) / le, 1 / o, 1 / d), u / o, m / d);
|
|
17754
|
-
} else j ? _ =
|
|
17754
|
+
} else j ? _ = Oi(Math.abs(F[0] - z[0] - $), u, 1) / o : q = Oi(Math.abs(F[1] - z[1] - se), m, 1) / d;
|
|
17755
17755
|
const de = $e._round(o * _), fe = $e._round(d * q);
|
|
17756
17756
|
H = w(...L(de, fe));
|
|
17757
17757
|
const ue = Q - H[0], ce = V - H[1];
|
|
@@ -19997,7 +19997,7 @@ const An = {
|
|
|
19997
19997
|
showText: ["transform", "leading", "charSpacing", "wordSpacing", "hScale", "textRise", "moveText", "textMatrix", "font", "fontObj", "filter", "fillColor", "textRenderingMode", "SMask", "fillAlpha", "strokeAlpha", "globalCompositeOperation", "sameLineText"],
|
|
19998
19998
|
transform: ["transform"],
|
|
19999
19999
|
transformAndFill: ["transform", "fillColor"]
|
|
20000
|
-
},
|
|
20000
|
+
}, Bi = {
|
|
20001
20001
|
FILL: "Fill",
|
|
20002
20002
|
STROKE: "Stroke",
|
|
20003
20003
|
SHADING: "Shading"
|
|
@@ -20029,7 +20029,7 @@ class Fx extends Vc {
|
|
|
20029
20029
|
}
|
|
20030
20030
|
getPattern(e, t, i, n) {
|
|
20031
20031
|
let s;
|
|
20032
|
-
if (n ===
|
|
20032
|
+
if (n === Bi.STROKE || n === Bi.FILL) {
|
|
20033
20033
|
const r = t.current.getClippedPathBoundingBox(n, ci(e)) || [0, 0, 0, 0], o = Math.ceil(r[2] - r[0]) || 1, d = Math.ceil(r[3] - r[1]) || 1, u = t.cachedCanvases.getCanvas("pattern", o, d), m = u.context;
|
|
20034
20034
|
m.clearRect(0, 0, m.canvas.width, m.canvas.height), m.beginPath(), m.rect(0, 0, m.canvas.width, m.canvas.height), m.translate(-r[0], -r[1]), i = Xe.transform(i, [1, 0, 0, 1, r[0], r[1]]), m.transform(...t.baseTransform), this.matrix && m.transform(...this.matrix), Nc(m, this._bbox), m.fillStyle = this._createGradient(m), m.fill(), s = e.createPattern(u.canvas, "no-repeat");
|
|
20035
20035
|
const g = new DOMMatrix(i);
|
|
@@ -20059,9 +20059,9 @@ function Ac(l, e, t, i, n, s, r, o) {
|
|
|
20059
20059
|
let Be;
|
|
20060
20060
|
De < S ? Be = 0 : De > j ? Be = 1 : Be = (S - De) / (S - j), me = y - (y - N) * Be, we = z - (z - q) * Be, ke = F - (F - $) * Be, ye = H - (H - se) * Be;
|
|
20061
20061
|
const ze = Math.round(Math.min(ue, me)), We = Math.round(Math.max(ue, me));
|
|
20062
|
-
let
|
|
20062
|
+
let Ce = g * De + ze * 4;
|
|
20063
20063
|
for (let he = ze; he <= We; he++)
|
|
20064
|
-
Be = (ue - he) / (ue - me), Be < 0 ? Be = 0 : Be > 1 && (Be = 1), m[
|
|
20064
|
+
Be = (ue - he) / (ue - me), Be < 0 ? Be = 0 : Be > 1 && (Be = 1), m[Ce++] = ce - (ce - we) * Be | 0, m[Ce++] = le - (le - ke) * Be | 0, m[Ce++] = ee - (ee - ye) * Be | 0, m[Ce++] = 255;
|
|
20065
20065
|
}
|
|
20066
20066
|
}
|
|
20067
20067
|
function Rx(l, e, t) {
|
|
@@ -20118,7 +20118,7 @@ class zx extends Vc {
|
|
|
20118
20118
|
getPattern(e, t, i, n) {
|
|
20119
20119
|
Nc(e, this._bbox);
|
|
20120
20120
|
const s = new Float32Array(2);
|
|
20121
|
-
if (n ===
|
|
20121
|
+
if (n === Bi.SHADING)
|
|
20122
20122
|
Xe.singularValueDecompose2dScale(ci(e), s);
|
|
20123
20123
|
else if (this.matrix) {
|
|
20124
20124
|
Xe.singularValueDecompose2dScale(this.matrix, s);
|
|
@@ -20126,8 +20126,8 @@ class zx extends Vc {
|
|
|
20126
20126
|
Xe.singularValueDecompose2dScale(t.baseTransform, s), s[0] *= o, s[1] *= d;
|
|
20127
20127
|
} else
|
|
20128
20128
|
Xe.singularValueDecompose2dScale(t.baseTransform, s);
|
|
20129
|
-
const r = this._createMeshCanvas(s, n ===
|
|
20130
|
-
return n !==
|
|
20129
|
+
const r = this._createMeshCanvas(s, n === Bi.SHADING ? null : this._background, t.cachedCanvases);
|
|
20130
|
+
return n !== Bi.SHADING && (e.setTransform(...t.baseTransform), this.matrix && e.transform(...this.matrix)), e.translate(r.offsetX, r.offsetY), e.scale(r.scaleX, r.scaleY), e.createPattern(r.canvas, "no-repeat");
|
|
20131
20131
|
}
|
|
20132
20132
|
}
|
|
20133
20133
|
class Ux extends Vc {
|
|
@@ -20181,10 +20181,10 @@ class qc {
|
|
|
20181
20181
|
if (me.groupLevel = e.groupLevel, this.setFillAndStrokeStyleToContext(me, s, o), ee.translate(-ue.scale * g, -ce.scale * w), me.transform(0, ue.scale, 0, 0, ce.scale, 0, 0), ee.save(), me.dependencyTracker?.save(), this.clipBbox(me, g, w, y, S), me.baseTransform = ci(me.ctx), me.executeOperatorList(n), me.endDrawing(), me.dependencyTracker?.restore(), ee.restore(), _ || q) {
|
|
20182
20182
|
const we = le.canvas;
|
|
20183
20183
|
_ && (Q = u), q && (V = m);
|
|
20184
|
-
const ke = this.getSizeAndScale(Q, this.ctx.canvas.width, F), ye = this.getSizeAndScale(V, this.ctx.canvas.height, H), De = ke.size, Be = ye.size, ze = e.cachedCanvases.getCanvas("pattern-workaround", De, Be), We = ze.context,
|
|
20185
|
-
for (let Ee = 0; Ee <=
|
|
20186
|
-
for (let
|
|
20187
|
-
We.drawImage(we, De * Ee, Be *
|
|
20184
|
+
const ke = this.getSizeAndScale(Q, this.ctx.canvas.width, F), ye = this.getSizeAndScale(V, this.ctx.canvas.height, H), De = ke.size, Be = ye.size, ze = e.cachedCanvases.getCanvas("pattern-workaround", De, Be), We = ze.context, Ce = _ ? Math.floor(C / u) : 0, he = q ? Math.floor(L / m) : 0;
|
|
20185
|
+
for (let Ee = 0; Ee <= Ce; Ee++)
|
|
20186
|
+
for (let Ge = 0; Ge <= he; Ge++)
|
|
20187
|
+
We.drawImage(we, De * Ee, Be * Ge, De, Be, 0, 0, De, Be);
|
|
20188
20188
|
return {
|
|
20189
20189
|
canvas: ze.canvas,
|
|
20190
20190
|
scaleX: ke.scale,
|
|
@@ -20235,7 +20235,7 @@ class qc {
|
|
|
20235
20235
|
}
|
|
20236
20236
|
getPattern(e, t, i, n, s) {
|
|
20237
20237
|
let r = i;
|
|
20238
|
-
n !==
|
|
20238
|
+
n !== Bi.SHADING && (r = Xe.transform(r, t.baseTransform), this.matrix && (r = Xe.transform(r, this.matrix)));
|
|
20239
20239
|
const o = this.createPatternCanvas(t, s);
|
|
20240
20240
|
let d = new DOMMatrix(r);
|
|
20241
20241
|
d = d.translate(o.offsetX, o.offsetY), d = d.scale(1 / o.scaleX, 1 / o.scaleY);
|
|
@@ -20356,7 +20356,7 @@ class Sf {
|
|
|
20356
20356
|
charSpacing = 0;
|
|
20357
20357
|
wordSpacing = 0;
|
|
20358
20358
|
textHScale = 1;
|
|
20359
|
-
textRenderingMode =
|
|
20359
|
+
textRenderingMode = Ti.FILL;
|
|
20360
20360
|
textRise = 0;
|
|
20361
20361
|
fillColor = "#000000";
|
|
20362
20362
|
strokeColor = "#000000";
|
|
@@ -20374,9 +20374,9 @@ class Sf {
|
|
|
20374
20374
|
const e = Object.create(this);
|
|
20375
20375
|
return e.clipBox = this.clipBox.slice(), e.minMax = this.minMax.slice(), e;
|
|
20376
20376
|
}
|
|
20377
|
-
getPathBoundingBox(e =
|
|
20377
|
+
getPathBoundingBox(e = Bi.FILL, t = null) {
|
|
20378
20378
|
const i = this.minMax.slice();
|
|
20379
|
-
if (e ===
|
|
20379
|
+
if (e === Bi.STROKE) {
|
|
20380
20380
|
t || Kt("Stroke bounding box must include transform."), Xe.singularValueDecompose2dScale(t, dn);
|
|
20381
20381
|
const n = dn[0] * this.lineWidth / 2, s = dn[1] * this.lineWidth / 2;
|
|
20382
20382
|
i[0] -= n, i[1] -= s, i[2] += n, i[3] += s;
|
|
@@ -20393,7 +20393,7 @@ class Sf {
|
|
|
20393
20393
|
startNewPathAndClipBox(e) {
|
|
20394
20394
|
this.clipBox.set(e, 0), this.minMax.set(Cr, 0);
|
|
20395
20395
|
}
|
|
20396
|
-
getClippedPathBoundingBox(e =
|
|
20396
|
+
getClippedPathBoundingBox(e = Bi.FILL, t = null) {
|
|
20397
20397
|
return Xe.intersect(this.clipBox, this.getPathBoundingBox(e, t));
|
|
20398
20398
|
}
|
|
20399
20399
|
}
|
|
@@ -20598,7 +20598,7 @@ class Mr {
|
|
|
20598
20598
|
const [C, L, N, j] = S, z = Math.round(N - C) || 1, F = Math.round(j - L) || 1, H = this.cachedCanvases.getCanvas("fillCanvas", z, F), Q = H.context, V = C, _ = L;
|
|
20599
20599
|
Q.translate(-V, -_), Q.transform(...y), g || (g = this._scaleImage(w.canvas, Yn(Q)), g = g.img, u && o && u.set(m, g)), Q.imageSmoothingEnabled = Nf(ci(Q), t.interpolate), Ka(Q, g, 0, 0, g.width, g.height, 0, 0, n, s), Q.globalCompositeOperation = "source-in";
|
|
20600
20600
|
const q = Xe.transform(Yn(Q), [1, 0, 0, 1, -V, -_]);
|
|
20601
|
-
return Q.fillStyle = o ? r.getPattern(i, this, q,
|
|
20601
|
+
return Q.fillStyle = o ? r.getPattern(i, this, q, Bi.FILL, e) : r, Q.fillRect(0, 0, n, s), u && !o && (this.cachedCanvases.delete("fillCanvas"), u.set(m, H.canvas)), this.dependencyTracker?.recordDependencies(e, An.transformAndFill), {
|
|
20602
20602
|
canvas: H.canvas,
|
|
20603
20603
|
offsetX: Math.round(V),
|
|
20604
20604
|
offsetY: Math.round(_)
|
|
@@ -20772,14 +20772,14 @@ class Mr {
|
|
|
20772
20772
|
if (n.globalAlpha = this.current.strokeAlpha, this.contentVisible)
|
|
20773
20773
|
if (typeof s == "object" && s?.getPattern) {
|
|
20774
20774
|
const r = s.isModifyingCurrentTransform() ? n.getTransform() : null;
|
|
20775
|
-
if (n.save(), n.strokeStyle = s.getPattern(n, this, Yn(n),
|
|
20775
|
+
if (n.save(), n.strokeStyle = s.getPattern(n, this, Yn(n), Bi.STROKE, e), r) {
|
|
20776
20776
|
const o = new Path2D();
|
|
20777
20777
|
o.addPath(t, n.getTransform().invertSelf().multiplySelf(r)), t = o;
|
|
20778
20778
|
}
|
|
20779
20779
|
this.rescaleAndStroke(t, !1), n.restore();
|
|
20780
20780
|
} else
|
|
20781
20781
|
this.rescaleAndStroke(t, !0);
|
|
20782
|
-
this.dependencyTracker?.recordDependencies(e, An.stroke), i && this.consumePath(e, t, this.current.getClippedPathBoundingBox(
|
|
20782
|
+
this.dependencyTracker?.recordDependencies(e, An.stroke), i && this.consumePath(e, t, this.current.getClippedPathBoundingBox(Bi.STROKE, ci(this.ctx))), n.globalAlpha = this.current.fillAlpha;
|
|
20783
20783
|
}
|
|
20784
20784
|
closeStroke(e, t) {
|
|
20785
20785
|
this.stroke(e, t);
|
|
@@ -20789,7 +20789,7 @@ class Mr {
|
|
|
20789
20789
|
let o = !1;
|
|
20790
20790
|
if (r) {
|
|
20791
20791
|
const u = s.isModifyingCurrentTransform() ? n.getTransform() : null;
|
|
20792
|
-
if (this.dependencyTracker?.save(e), n.save(), n.fillStyle = s.getPattern(n, this, Yn(n),
|
|
20792
|
+
if (this.dependencyTracker?.save(e), n.save(), n.fillStyle = s.getPattern(n, this, Yn(n), Bi.FILL, e), u) {
|
|
20793
20793
|
const m = new Path2D();
|
|
20794
20794
|
m.addPath(t, n.getTransform().invertSelf().multiplySelf(u)), t = m;
|
|
20795
20795
|
}
|
|
@@ -20903,19 +20903,19 @@ class Mr {
|
|
|
20903
20903
|
return n.addPath(e, new DOMMatrix(i).invertSelf().multiplySelf(t)), n;
|
|
20904
20904
|
}
|
|
20905
20905
|
paintChar(e, t, i, n, s, r) {
|
|
20906
|
-
const o = this.ctx, d = this.current, u = d.font, m = d.textRenderingMode, g = d.fontSize / d.fontSizeScale, w = m &
|
|
20906
|
+
const o = this.ctx, d = this.current, u = d.font, m = d.textRenderingMode, g = d.fontSize / d.fontSizeScale, w = m & Ti.FILL_STROKE_MASK, y = !!(m & Ti.ADD_TO_PATH_FLAG), S = d.patternFill && !u.missingFile, C = d.patternStroke && !u.missingFile;
|
|
20907
20907
|
let L;
|
|
20908
20908
|
if ((u.disableFontFace || y || S || C) && !u.missingFile && (L = u.getPathGenerator(this.commonObjs, t)), L && (u.disableFontFace || S || C)) {
|
|
20909
20909
|
o.save(), o.translate(i, n), o.scale(g, -g), this.dependencyTracker?.recordCharacterBBox(e, o, u);
|
|
20910
20910
|
let N;
|
|
20911
|
-
if (w ===
|
|
20911
|
+
if (w === Ti.FILL || w === Ti.FILL_STROKE)
|
|
20912
20912
|
if (s) {
|
|
20913
20913
|
N = o.getTransform(), o.setTransform(...s);
|
|
20914
20914
|
const j = this.#n(L, N, s);
|
|
20915
20915
|
o.fill(j);
|
|
20916
20916
|
} else
|
|
20917
20917
|
o.fill(L);
|
|
20918
|
-
if (w ===
|
|
20918
|
+
if (w === Ti.STROKE || w === Ti.FILL_STROKE)
|
|
20919
20919
|
if (r) {
|
|
20920
20920
|
N ||= o.getTransform(), o.setTransform(...r);
|
|
20921
20921
|
const {
|
|
@@ -20929,7 +20929,7 @@ class Mr {
|
|
|
20929
20929
|
o.lineWidth /= g, o.stroke(L);
|
|
20930
20930
|
o.restore();
|
|
20931
20931
|
} else
|
|
20932
|
-
(w ===
|
|
20932
|
+
(w === Ti.FILL || w === Ti.FILL_STROKE) && (o.fillText(t, i, n), this.dependencyTracker?.recordCharacterBBox(e, o, u, g, i, n, () => o.measureText(t))), (w === Ti.STROKE || w === Ti.FILL_STROKE) && (this.dependencyTracker && this.dependencyTracker?.recordCharacterBBox(e, o, u, g, i, n, () => o.measureText(t)).recordDependencies(e, An.stroke), o.strokeText(t, i, n));
|
|
20933
20933
|
y && ((this.pendingTextPaths ||= []).push({
|
|
20934
20934
|
transform: ci(o),
|
|
20935
20935
|
x: i,
|
|
@@ -20953,7 +20953,7 @@ class Mr {
|
|
|
20953
20953
|
return wt(this, "isFontSubpixelAAEnabled", i);
|
|
20954
20954
|
}
|
|
20955
20955
|
showText(e, t) {
|
|
20956
|
-
this.dependencyTracker && (this.dependencyTracker.recordDependencies(e, An.showText).resetBBox(e), this.current.textRenderingMode &
|
|
20956
|
+
this.dependencyTracker && (this.dependencyTracker.recordDependencies(e, An.showText).resetBBox(e), this.current.textRenderingMode & Ti.ADD_TO_PATH_FLAG && this.dependencyTracker.recordFutureForcedDependency("textClip", e).inheritPendingDependenciesAsFutureForcedDependencies());
|
|
20957
20957
|
const i = this.current, n = i.font;
|
|
20958
20958
|
if (n.isType3Font) {
|
|
20959
20959
|
this.showType3Text(e, t), this.dependencyTracker?.recordShowTextOperation(e);
|
|
@@ -20964,24 +20964,24 @@ class Mr {
|
|
|
20964
20964
|
this.dependencyTracker?.recordOperation(e);
|
|
20965
20965
|
return;
|
|
20966
20966
|
}
|
|
20967
|
-
const r = this.ctx, o = i.fontSizeScale, d = i.charSpacing, u = i.wordSpacing, m = i.fontDirection, g = i.textHScale * m, w = t.length, y = n.vertical, S = y ? 1 : -1, C = n.defaultVMetrics, L = s * i.fontMatrix[0], N = i.textRenderingMode ===
|
|
20967
|
+
const r = this.ctx, o = i.fontSizeScale, d = i.charSpacing, u = i.wordSpacing, m = i.fontDirection, g = i.textHScale * m, w = t.length, y = n.vertical, S = y ? 1 : -1, C = n.defaultVMetrics, L = s * i.fontMatrix[0], N = i.textRenderingMode === Ti.FILL && !n.disableFontFace && !i.patternFill;
|
|
20968
20968
|
r.save(), i.textMatrix && r.transform(...i.textMatrix), r.translate(i.x, i.y + i.textRise), m > 0 ? r.scale(g, -1) : r.scale(g, 1);
|
|
20969
20969
|
let j, z;
|
|
20970
20970
|
if (i.patternFill) {
|
|
20971
20971
|
r.save();
|
|
20972
|
-
const _ = i.fillColor.getPattern(r, this, Yn(r),
|
|
20972
|
+
const _ = i.fillColor.getPattern(r, this, Yn(r), Bi.FILL, e);
|
|
20973
20973
|
j = ci(r), r.restore(), r.fillStyle = _;
|
|
20974
20974
|
}
|
|
20975
20975
|
if (i.patternStroke) {
|
|
20976
20976
|
r.save();
|
|
20977
|
-
const _ = i.strokeColor.getPattern(r, this, Yn(r),
|
|
20977
|
+
const _ = i.strokeColor.getPattern(r, this, Yn(r), Bi.STROKE, e);
|
|
20978
20978
|
z = ci(r), r.restore(), r.strokeStyle = _;
|
|
20979
20979
|
}
|
|
20980
20980
|
let F = i.lineWidth;
|
|
20981
20981
|
const H = i.textMatrixScale;
|
|
20982
20982
|
if (H === 0 || F === 0) {
|
|
20983
|
-
const _ = i.textRenderingMode &
|
|
20984
|
-
(_ ===
|
|
20983
|
+
const _ = i.textRenderingMode & Ti.FILL_STROKE_MASK;
|
|
20984
|
+
(_ === Ti.STROKE || _ === Ti.FILL_STROKE) && (F = this.getSinglePixelWidth());
|
|
20985
20985
|
} else
|
|
20986
20986
|
F /= H;
|
|
20987
20987
|
if (o !== 1 && (r.scale(o, o), F /= o), r.lineWidth = F, n.isInvalidPDFjsFont) {
|
|
@@ -21037,7 +21037,7 @@ class Mr {
|
|
|
21037
21037
|
y ? i.y -= Q : i.x += Q * g, r.restore(), this.compose(), this.dependencyTracker?.recordShowTextOperation(e);
|
|
21038
21038
|
}
|
|
21039
21039
|
showType3Text(e, t) {
|
|
21040
|
-
const i = this.ctx, n = this.current, s = n.font, r = n.fontSize, o = n.fontDirection, d = s.vertical ? 1 : -1, u = n.charSpacing, m = n.wordSpacing, g = n.textHScale * o, w = n.fontMatrix || Ec, y = t.length, S = n.textRenderingMode ===
|
|
21040
|
+
const i = this.ctx, n = this.current, s = n.font, r = n.fontSize, o = n.fontDirection, d = s.vertical ? 1 : -1, u = n.charSpacing, m = n.wordSpacing, g = n.textHScale * o, w = n.fontMatrix || Ec, y = t.length, S = n.textRenderingMode === Ti.INVISIBLE;
|
|
21041
21041
|
let C, L, N, j;
|
|
21042
21042
|
if (S || r === 0)
|
|
21043
21043
|
return;
|
|
@@ -21103,7 +21103,7 @@ class Mr {
|
|
|
21103
21103
|
const i = this.ctx;
|
|
21104
21104
|
this.save(e);
|
|
21105
21105
|
const n = this._getPattern(e, t);
|
|
21106
|
-
i.fillStyle = n.getPattern(i, this, Yn(i),
|
|
21106
|
+
i.fillStyle = n.getPattern(i, this, Yn(i), Bi.SHADING, e);
|
|
21107
21107
|
const s = Yn(i);
|
|
21108
21108
|
if (s) {
|
|
21109
21109
|
const {
|
|
@@ -21247,7 +21247,7 @@ class Mr {
|
|
|
21247
21247
|
} = r, g = this.cachedCanvases.getCanvas("maskCanvas", d, u), w = g.context;
|
|
21248
21248
|
w.save();
|
|
21249
21249
|
const y = this.getObject(e, o, r);
|
|
21250
|
-
Lf(w, y), w.globalCompositeOperation = "source-in", w.fillStyle = s ? n.getPattern(w, this, Yn(i),
|
|
21250
|
+
Lf(w, y), w.globalCompositeOperation = "source-in", w.fillStyle = s ? n.getPattern(w, this, Yn(i), Bi.FILL, e) : n, w.fillRect(0, 0, d, u), w.restore(), i.save(), i.transform(...m), i.scale(1, -1), Ka(i, g.canvas, 0, 0, d, u, 0, -1, 1, 1), this.dependencyTracker?.recordBBox(e, i, 0, d, 0, u), i.restore();
|
|
21251
21251
|
}
|
|
21252
21252
|
this.compose(), this.dependencyTracker?.recordOperation(e);
|
|
21253
21253
|
}
|
|
@@ -23132,7 +23132,7 @@ function Zc(l = {}) {
|
|
|
23132
23132
|
docId: t
|
|
23133
23133
|
} = e, i = l.url ? Ix(l.url) : null, n = l.data ? Ex(l.data) : null, s = l.httpHeaders || null, r = l.withCredentials === !0, o = l.password ?? null, d = l.range instanceof _c ? l.range : null, u = Number.isInteger(l.rangeChunkSize) && l.rangeChunkSize > 0 ? l.rangeChunkSize : 2 ** 16;
|
|
23134
23134
|
let m = l.worker instanceof Or ? l.worker : null;
|
|
23135
|
-
const g = l.verbosity, w = typeof l.docBaseUrl == "string" && !Wo(l.docBaseUrl) ? l.docBaseUrl : null, y = Ga(l.cMapUrl), S = l.cMapPacked !== !1, C = l.CMapReaderFactory || (Wi ? Tx : xf), L = Ga(l.iccUrl), N = Ga(l.standardFontDataUrl), j = l.StandardFontDataFactory || (Wi ? Bx : wf), z = Ga(l.wasmUrl), F = l.WasmFactory || (Wi ? Px : yf), H = l.stopAtErrors !== !0, Q = Number.isInteger(l.maxImageSize) && l.maxImageSize > -1 ? l.maxImageSize : -1, V = l.isEvalSupported !== !1, _ = typeof l.isOffscreenCanvasSupported == "boolean" ? l.isOffscreenCanvasSupported : !Wi, q = typeof l.isImageDecoderSupported == "boolean" ? l.isImageDecoderSupported : !Wi && (Si.platform.isFirefox || !globalThis.chrome), $ = Number.isInteger(l.canvasMaxAreaInBytes) ? l.canvasMaxAreaInBytes : -1, se = typeof l.disableFontFace == "boolean" ? l.disableFontFace : Wi, de = l.fontExtraProperties === !0, fe = l.enableXfa === !0, ue = l.ownerDocument || globalThis.document, ce = l.disableRange === !0, le = l.disableStream === !0, ee = l.disableAutoFetch === !0, me = l.pdfBug === !0, we = l.CanvasFactory || (Wi ? kx : Dx), ke = l.FilterFactory || (Wi ? Nx : Lx), ye = l.enableHWA === !0, De = l.useWasm !== !1, Be = d ? d.length : l.length ?? NaN, ze = typeof l.useSystemFonts == "boolean" ? l.useSystemFonts : !Wi && !se, We = typeof l.useWorkerFetch == "boolean" ? l.useWorkerFetch : !!(C === xf && j === wf && F === yf && y && N && z && Eo(y, document.baseURI) && Eo(N, document.baseURI) && Eo(z, document.baseURI)),
|
|
23135
|
+
const g = l.verbosity, w = typeof l.docBaseUrl == "string" && !Wo(l.docBaseUrl) ? l.docBaseUrl : null, y = Ga(l.cMapUrl), S = l.cMapPacked !== !1, C = l.CMapReaderFactory || (Wi ? Tx : xf), L = Ga(l.iccUrl), N = Ga(l.standardFontDataUrl), j = l.StandardFontDataFactory || (Wi ? Bx : wf), z = Ga(l.wasmUrl), F = l.WasmFactory || (Wi ? Px : yf), H = l.stopAtErrors !== !0, Q = Number.isInteger(l.maxImageSize) && l.maxImageSize > -1 ? l.maxImageSize : -1, V = l.isEvalSupported !== !1, _ = typeof l.isOffscreenCanvasSupported == "boolean" ? l.isOffscreenCanvasSupported : !Wi, q = typeof l.isImageDecoderSupported == "boolean" ? l.isImageDecoderSupported : !Wi && (Si.platform.isFirefox || !globalThis.chrome), $ = Number.isInteger(l.canvasMaxAreaInBytes) ? l.canvasMaxAreaInBytes : -1, se = typeof l.disableFontFace == "boolean" ? l.disableFontFace : Wi, de = l.fontExtraProperties === !0, fe = l.enableXfa === !0, ue = l.ownerDocument || globalThis.document, ce = l.disableRange === !0, le = l.disableStream === !0, ee = l.disableAutoFetch === !0, me = l.pdfBug === !0, we = l.CanvasFactory || (Wi ? kx : Dx), ke = l.FilterFactory || (Wi ? Nx : Lx), ye = l.enableHWA === !0, De = l.useWasm !== !1, Be = d ? d.length : l.length ?? NaN, ze = typeof l.useSystemFonts == "boolean" ? l.useSystemFonts : !Wi && !se, We = typeof l.useWorkerFetch == "boolean" ? l.useWorkerFetch : !!(C === xf && j === wf && F === yf && y && N && z && Eo(y, document.baseURI) && Eo(N, document.baseURI) && Eo(z, document.baseURI)), Ce = null;
|
|
23136
23136
|
rx(g);
|
|
23137
23137
|
const he = {
|
|
23138
23138
|
canvasFactory: new we({
|
|
@@ -23185,10 +23185,10 @@ function Zc(l = {}) {
|
|
|
23185
23185
|
standardFontDataUrl: N,
|
|
23186
23186
|
wasmUrl: z
|
|
23187
23187
|
}
|
|
23188
|
-
},
|
|
23188
|
+
}, Ge = {
|
|
23189
23189
|
ownerDocument: ue,
|
|
23190
23190
|
pdfBug: me,
|
|
23191
|
-
styleElement:
|
|
23191
|
+
styleElement: Ce,
|
|
23192
23192
|
loadingParams: {
|
|
23193
23193
|
disableAutoFetch: ee,
|
|
23194
23194
|
enableXfa: fe
|
|
@@ -23225,7 +23225,7 @@ function Zc(l = {}) {
|
|
|
23225
23225
|
throw new Error("Loading aborted");
|
|
23226
23226
|
if (m.destroyed)
|
|
23227
23227
|
throw new Error("Worker was destroyed");
|
|
23228
|
-
const Pe = new Mo(t, Ne, m.port), Oe = new w2(Pe, e, Re,
|
|
23228
|
+
const Pe = new Mo(t, Ne, m.port), Oe = new w2(Pe, e, Re, Ge, he, ye);
|
|
23229
23229
|
e._transport = Oe, Pe.send("Ready", null);
|
|
23230
23230
|
});
|
|
23231
23231
|
}).catch(e._capability.reject), e;
|
|
@@ -29084,7 +29084,7 @@ class Vo extends Je {
|
|
|
29084
29084
|
}
|
|
29085
29085
|
}
|
|
29086
29086
|
const [t, i] = this.#l();
|
|
29087
|
-
e[0] =
|
|
29087
|
+
e[0] = Oi(e[0] - t, 0, 1), e[1] = Oi(e[1] - i, 0, 1), e[2] = Oi(e[2] + t, 0, 1), e[3] = Oi(e[3] + i, 0, 1), e[2] -= e[0], e[3] -= e[1];
|
|
29088
29088
|
}
|
|
29089
29089
|
get box() {
|
|
29090
29090
|
return this.#e;
|
|
@@ -31191,7 +31191,7 @@ globalThis.pdfjsLib = {
|
|
|
31191
31191
|
isDataScheme: Wo,
|
|
31192
31192
|
isPdfFile: wl,
|
|
31193
31193
|
isValidExplicitDest: vu,
|
|
31194
|
-
MathClamp:
|
|
31194
|
+
MathClamp: Oi,
|
|
31195
31195
|
noContextMenu: fn,
|
|
31196
31196
|
normalizeUnicode: fu,
|
|
31197
31197
|
OPS: Pr,
|
|
@@ -31236,7 +31236,7 @@ const J2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31236
31236
|
GlobalWorkerOptions: Cs,
|
|
31237
31237
|
ImageKind: Do,
|
|
31238
31238
|
InvalidPDFException: ol,
|
|
31239
|
-
MathClamp:
|
|
31239
|
+
MathClamp: Oi,
|
|
31240
31240
|
OPS: Pr,
|
|
31241
31241
|
OutputScale: On,
|
|
31242
31242
|
PDFDataRangeTransport: _c,
|
|
@@ -31489,7 +31489,7 @@ function fw() {
|
|
|
31489
31489
|
return Cc = e, Cc;
|
|
31490
31490
|
}
|
|
31491
31491
|
var uw = fw();
|
|
31492
|
-
const
|
|
31492
|
+
const ji = /* @__PURE__ */ Zf(uw), qu = Ro(null), pw = "noopener noreferrer nofollow";
|
|
31493
31493
|
class mw {
|
|
31494
31494
|
constructor() {
|
|
31495
31495
|
this.externalLinkEnabled = !0, this.externalLinkRel = void 0, this.externalLinkTarget = void 0, this.isInPresentationMode = !1, this.pdfDocument = void 0, this.pdfViewer = void 0;
|
|
@@ -31631,10 +31631,10 @@ function bw() {
|
|
|
31631
31631
|
}
|
|
31632
31632
|
const Ku = "On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";
|
|
31633
31633
|
function Hf() {
|
|
31634
|
-
|
|
31634
|
+
ji(!Zu, `Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ${Ku}`);
|
|
31635
31635
|
}
|
|
31636
31636
|
function Cw() {
|
|
31637
|
-
|
|
31637
|
+
ji(!Zu, `Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ${Ku}`);
|
|
31638
31638
|
}
|
|
31639
31639
|
function nr(l) {
|
|
31640
31640
|
l?.cancel && l.cancel();
|
|
@@ -31710,7 +31710,7 @@ function Yf(l) {
|
|
|
31710
31710
|
}
|
|
31711
31711
|
const Mw = zg(function({ children: e, className: t, error: i = "Failed to load PDF file.", externalLinkRel: n, externalLinkTarget: s, file: r, inputRef: o, imageResourcesPath: d, loading: u = "Loading PDF…", noData: m = "No PDF file specified.", onItemClick: g, onLoadError: w, onLoadProgress: y, onLoadSuccess: S, onPassword: C = Ew, onSourceError: L, onSourceSuccess: N, options: j, renderMode: z, rotate: F, scale: H, ...Q }, V) {
|
|
31712
31712
|
const [_, q] = jr(), { value: $, error: se } = _, [de, fe] = jr(), { value: ue, error: ce } = de, le = Bt(new mw()), ee = Bt([]), me = Bt(void 0), we = Bt(void 0);
|
|
31713
|
-
r && r !== me.current && Yf(r) && (
|
|
31713
|
+
r && r !== me.current && Yf(r) && (ji(!Lr(r, me.current), `File prop passed to <Document /> changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.`), me.current = r), j && j !== we.current && (ji(!Lr(j, we.current), `Options prop passed to <Document /> changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.`), we.current = j);
|
|
31714
31714
|
const ke = Bt({
|
|
31715
31715
|
// Handling jumping to internal links target
|
|
31716
31716
|
scrollPageIntoView: (Pe) => {
|
|
@@ -31724,7 +31724,7 @@ const Mw = zg(function({ children: e, className: t, error: i = "Failed to load P
|
|
|
31724
31724
|
re.scrollIntoView();
|
|
31725
31725
|
return;
|
|
31726
31726
|
}
|
|
31727
|
-
|
|
31727
|
+
ji(!1, `An internal link leading to page ${je} was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>.`);
|
|
31728
31728
|
}
|
|
31729
31729
|
});
|
|
31730
31730
|
Ug(V, () => ({
|
|
@@ -31736,12 +31736,12 @@ const Mw = zg(function({ children: e, className: t, error: i = "Failed to load P
|
|
|
31736
31736
|
N && N();
|
|
31737
31737
|
}
|
|
31738
31738
|
function De() {
|
|
31739
|
-
se && (
|
|
31739
|
+
se && (ji(!1, se.toString()), L && L(se));
|
|
31740
31740
|
}
|
|
31741
31741
|
function Be() {
|
|
31742
31742
|
q({ type: "RESET" });
|
|
31743
31743
|
}
|
|
31744
|
-
|
|
31744
|
+
Ve(Be, [r, q]);
|
|
31745
31745
|
const ze = xi(async () => {
|
|
31746
31746
|
if (!r)
|
|
31747
31747
|
return null;
|
|
@@ -31762,7 +31762,7 @@ const Mw = zg(function({ children: e, className: t, error: i = "Failed to load P
|
|
|
31762
31762
|
}
|
|
31763
31763
|
return r;
|
|
31764
31764
|
}, [r]);
|
|
31765
|
-
|
|
31765
|
+
Ve(() => {
|
|
31766
31766
|
const Pe = qo(ze());
|
|
31767
31767
|
return Pe.promise.then((Oe) => {
|
|
31768
31768
|
q({ type: "RESOLVE", value: Oe });
|
|
@@ -31771,7 +31771,7 @@ const Mw = zg(function({ children: e, className: t, error: i = "Failed to load P
|
|
|
31771
31771
|
}), () => {
|
|
31772
31772
|
nr(Pe);
|
|
31773
31773
|
};
|
|
31774
|
-
}, [ze, q]),
|
|
31774
|
+
}, [ze, q]), Ve(() => {
|
|
31775
31775
|
if (!(typeof $ > "u")) {
|
|
31776
31776
|
if ($ === !1) {
|
|
31777
31777
|
De();
|
|
@@ -31783,12 +31783,12 @@ const Mw = zg(function({ children: e, className: t, error: i = "Failed to load P
|
|
|
31783
31783
|
function We() {
|
|
31784
31784
|
ue && (S && S(ue), ee.current = new Array(ue.numPages), le.current.setDocument(ue));
|
|
31785
31785
|
}
|
|
31786
|
-
function
|
|
31787
|
-
ce && (
|
|
31786
|
+
function Ce() {
|
|
31787
|
+
ce && (ji(!1, ce.toString()), w && w(ce));
|
|
31788
31788
|
}
|
|
31789
|
-
|
|
31789
|
+
Ve(function() {
|
|
31790
31790
|
fe({ type: "RESET" });
|
|
31791
|
-
}, [fe, $]),
|
|
31791
|
+
}, [fe, $]), Ve(function() {
|
|
31792
31792
|
if (!$)
|
|
31793
31793
|
return;
|
|
31794
31794
|
const Oe = j ? { ...$, ...j } : $, je = Zc(Oe);
|
|
@@ -31801,22 +31801,22 @@ const Mw = zg(function({ children: e, className: t, error: i = "Failed to load P
|
|
|
31801
31801
|
}), () => {
|
|
31802
31802
|
Ue.destroy();
|
|
31803
31803
|
};
|
|
31804
|
-
}, [j, fe, $]),
|
|
31804
|
+
}, [j, fe, $]), Ve(() => {
|
|
31805
31805
|
if (!(typeof ue > "u")) {
|
|
31806
31806
|
if (ue === !1) {
|
|
31807
|
-
|
|
31807
|
+
Ce();
|
|
31808
31808
|
return;
|
|
31809
31809
|
}
|
|
31810
31810
|
We();
|
|
31811
31811
|
}
|
|
31812
|
-
}, [ue]),
|
|
31812
|
+
}, [ue]), Ve(function() {
|
|
31813
31813
|
le.current.setViewer(ke.current), le.current.setExternalLinkRel(n), le.current.setExternalLinkTarget(s);
|
|
31814
31814
|
}, [n, s]);
|
|
31815
31815
|
const he = xi((Pe, Oe) => {
|
|
31816
31816
|
ee.current[Pe] = Oe;
|
|
31817
31817
|
}, []), Ee = xi((Pe) => {
|
|
31818
31818
|
delete ee.current[Pe];
|
|
31819
|
-
}, []),
|
|
31819
|
+
}, []), Ge = Fi(() => ({
|
|
31820
31820
|
imageResourcesPath: d,
|
|
31821
31821
|
linkService: le.current,
|
|
31822
31822
|
onItemClick: g,
|
|
@@ -31826,7 +31826,7 @@ const Mw = zg(function({ children: e, className: t, error: i = "Failed to load P
|
|
|
31826
31826
|
rotate: F,
|
|
31827
31827
|
scale: H,
|
|
31828
31828
|
unregisterPage: Ee
|
|
31829
|
-
}), [d, g, ue, he, z, F, H, Ee]), dt =
|
|
31829
|
+
}), [d, g, ue, he, z, F, H, Ee]), dt = Fi(
|
|
31830
31830
|
() => Vu(Q, () => ue),
|
|
31831
31831
|
// biome-ignore lint/correctness/useExhaustiveDependencies: FIXME
|
|
31832
31832
|
[Q, ue]
|
|
@@ -31835,10 +31835,10 @@ const Mw = zg(function({ children: e, className: t, error: i = "Failed to load P
|
|
|
31835
31835
|
function Pe(je) {
|
|
31836
31836
|
return !!je?.pdf;
|
|
31837
31837
|
}
|
|
31838
|
-
if (!Pe(
|
|
31838
|
+
if (!Pe(Ge))
|
|
31839
31839
|
throw new Error("pdf is undefined");
|
|
31840
|
-
const Oe = typeof e == "function" ? e(
|
|
31841
|
-
return h(qu.Provider, { value:
|
|
31840
|
+
const Oe = typeof e == "function" ? e(Ge) : e;
|
|
31841
|
+
return h(qu.Provider, { value: Ge, children: Oe });
|
|
31842
31842
|
}
|
|
31843
31843
|
function Ne() {
|
|
31844
31844
|
return r ? ue == null ? h(Nr, { type: "loading", children: typeof u == "function" ? u() : u }) : ue === !1 ? h(Nr, { type: "error", children: typeof i == "function" ? i() : i }) : Re() : h(Nr, { type: "no-data", children: typeof m == "function" ? m() : m });
|
|
@@ -31879,16 +31879,16 @@ function Sw() {
|
|
|
31879
31879
|
const t = { ...l, ...e }, { filterAnnotations: i, imageResourcesPath: n, linkService: s, onGetAnnotationsError: r, onGetAnnotationsSuccess: o, onRenderAnnotationLayerError: d, onRenderAnnotationLayerSuccess: u, page: m, pdf: g, renderForms: w, rotate: y, scale: S = 1 } = t;
|
|
31880
31880
|
Zt(g, "Attempted to load page annotations, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop."), Zt(m, "Attempted to load page annotations, but no page was specified."), Zt(s, "Attempted to load page annotations, but no linkService was specified.");
|
|
31881
31881
|
const [C, L] = jr(), { value: N, error: j } = C, z = Bt(null);
|
|
31882
|
-
|
|
31882
|
+
ji(Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"), 10) === 1, "AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations");
|
|
31883
31883
|
function F() {
|
|
31884
31884
|
N && o && o(N);
|
|
31885
31885
|
}
|
|
31886
31886
|
function H() {
|
|
31887
|
-
j && (
|
|
31887
|
+
j && (ji(!1, j.toString()), r && r(j));
|
|
31888
31888
|
}
|
|
31889
|
-
|
|
31889
|
+
Ve(function() {
|
|
31890
31890
|
L({ type: "RESET" });
|
|
31891
|
-
}, [L, m]),
|
|
31891
|
+
}, [L, m]), Ve(function() {
|
|
31892
31892
|
if (!m)
|
|
31893
31893
|
return;
|
|
31894
31894
|
const $ = qo(m.getAnnotations()), se = $;
|
|
@@ -31899,7 +31899,7 @@ function Sw() {
|
|
|
31899
31899
|
}), () => {
|
|
31900
31900
|
nr(se);
|
|
31901
31901
|
};
|
|
31902
|
-
}, [L, m]),
|
|
31902
|
+
}, [L, m]), Ve(() => {
|
|
31903
31903
|
if (N !== void 0) {
|
|
31904
31904
|
if (N === !1) {
|
|
31905
31905
|
H();
|
|
@@ -31912,10 +31912,10 @@ function Sw() {
|
|
|
31912
31912
|
u && u();
|
|
31913
31913
|
}
|
|
31914
31914
|
function V(q) {
|
|
31915
|
-
|
|
31915
|
+
ji(!1, `${q}`), d && d(q);
|
|
31916
31916
|
}
|
|
31917
|
-
const _ =
|
|
31918
|
-
return
|
|
31917
|
+
const _ = Fi(() => m.getViewport({ scale: S, rotation: y }), [m, y, S]);
|
|
31918
|
+
return Ve(function() {
|
|
31919
31919
|
if (!g || !m || !s || !N)
|
|
31920
31920
|
return;
|
|
31921
31921
|
const { current: $ } = z;
|
|
@@ -32070,7 +32070,7 @@ function kw(l) {
|
|
|
32070
32070
|
} : null;
|
|
32071
32071
|
}
|
|
32072
32072
|
function rp({ className: l, node: e }) {
|
|
32073
|
-
const t =
|
|
32073
|
+
const t = Fi(() => kw(e), [e]), i = Fi(() => !El(e) || np(e) ? null : e.children.map((n, s) => (
|
|
32074
32074
|
// biome-ignore lint/suspicious/noArrayIndexKey: index is stable here
|
|
32075
32075
|
h(rp, { node: n }, s)
|
|
32076
32076
|
)), [e]);
|
|
@@ -32084,11 +32084,11 @@ function Tw() {
|
|
|
32084
32084
|
s && t && t(s);
|
|
32085
32085
|
}
|
|
32086
32086
|
function m() {
|
|
32087
|
-
r && (
|
|
32087
|
+
r && (ji(!1, r.toString()), e && e(r));
|
|
32088
32088
|
}
|
|
32089
|
-
return
|
|
32089
|
+
return Ve(function() {
|
|
32090
32090
|
n({ type: "RESET" });
|
|
32091
|
-
}, [n, d]),
|
|
32091
|
+
}, [n, d]), Ve(function() {
|
|
32092
32092
|
if (o || !d)
|
|
32093
32093
|
return;
|
|
32094
32094
|
const w = qo(d.getStructTree()), y = w;
|
|
@@ -32097,7 +32097,7 @@ function Tw() {
|
|
|
32097
32097
|
}).catch((S) => {
|
|
32098
32098
|
n({ type: "REJECT", error: S });
|
|
32099
32099
|
}), () => nr(y);
|
|
32100
|
-
}, [o, d, n]),
|
|
32100
|
+
}, [o, d, n]), Ve(() => {
|
|
32101
32101
|
if (s !== void 0) {
|
|
32102
32102
|
if (s === !1) {
|
|
32103
32103
|
m();
|
|
@@ -32118,10 +32118,10 @@ function Bw(l) {
|
|
|
32118
32118
|
d && o && o(jc(d, y));
|
|
32119
32119
|
}
|
|
32120
32120
|
function N(H) {
|
|
32121
|
-
_u(H) || (
|
|
32121
|
+
_u(H) || (ji(!1, H.toString()), r && r(H));
|
|
32122
32122
|
}
|
|
32123
|
-
const j =
|
|
32124
|
-
|
|
32123
|
+
const j = Fi(() => d.getViewport({ scale: y * s, rotation: w }), [s, d, w, y]), z = Fi(() => d.getViewport({ scale: y, rotation: w }), [d, w, y]);
|
|
32124
|
+
Ve(function() {
|
|
32125
32125
|
if (!d)
|
|
32126
32126
|
return;
|
|
32127
32127
|
d.cleanup();
|
|
@@ -32146,7 +32146,7 @@ function Bw(l) {
|
|
|
32146
32146
|
const { current: H } = C;
|
|
32147
32147
|
H && (H.width = 0, H.height = 0);
|
|
32148
32148
|
}, []);
|
|
32149
|
-
return
|
|
32149
|
+
return Ve(() => F, [F]), h("canvas", { className: `${i}__canvas`, dir: "ltr", ref: ep(S, C), style: {
|
|
32150
32150
|
display: "block",
|
|
32151
32151
|
userSelect: "none"
|
|
32152
32152
|
}, children: m ? h(Tw, {}) : null });
|
|
@@ -32209,16 +32209,16 @@ function Yw() {
|
|
|
32209
32209
|
const { customTextRenderer: e, onGetTextError: t, onGetTextSuccess: i, onRenderTextLayerError: n, onRenderTextLayerSuccess: s, page: r, pageIndex: o, pageNumber: d, rotate: u, scale: m } = l;
|
|
32210
32210
|
Zt(r, "Attempted to load page text content, but no page was specified.");
|
|
32211
32211
|
const [g, w] = jr(), { value: y, error: S } = g, C = Bt(null);
|
|
32212
|
-
|
|
32212
|
+
ji(Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"), 10) === 1, "TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer");
|
|
32213
32213
|
function L() {
|
|
32214
32214
|
y && i && i(y);
|
|
32215
32215
|
}
|
|
32216
32216
|
function N() {
|
|
32217
|
-
S && (
|
|
32217
|
+
S && (ji(!1, S.toString()), t && t(S));
|
|
32218
32218
|
}
|
|
32219
|
-
|
|
32219
|
+
Ve(function() {
|
|
32220
32220
|
w({ type: "RESET" });
|
|
32221
|
-
}, [r, w]),
|
|
32221
|
+
}, [r, w]), Ve(function() {
|
|
32222
32222
|
if (!r)
|
|
32223
32223
|
return;
|
|
32224
32224
|
const _ = qo(r.getTextContent()), q = _;
|
|
@@ -32227,7 +32227,7 @@ function Yw() {
|
|
|
32227
32227
|
}).catch(($) => {
|
|
32228
32228
|
w({ type: "REJECT", error: $ });
|
|
32229
32229
|
}), () => nr(q);
|
|
32230
|
-
}, [r, w]),
|
|
32230
|
+
}, [r, w]), Ve(() => {
|
|
32231
32231
|
if (y !== void 0) {
|
|
32232
32232
|
if (y === !1) {
|
|
32233
32233
|
N();
|
|
@@ -32239,7 +32239,7 @@ function Yw() {
|
|
|
32239
32239
|
const j = xi(() => {
|
|
32240
32240
|
s && s();
|
|
32241
32241
|
}, [s]), z = xi((V) => {
|
|
32242
|
-
_u(V) || (
|
|
32242
|
+
_u(V) || (ji(!1, V.toString()), n && n(V));
|
|
32243
32243
|
}, [n]);
|
|
32244
32244
|
function F() {
|
|
32245
32245
|
const V = C.current;
|
|
@@ -32249,7 +32249,7 @@ function Yw() {
|
|
|
32249
32249
|
const V = C.current;
|
|
32250
32250
|
V && V.classList.remove("selecting");
|
|
32251
32251
|
}
|
|
32252
|
-
const Q =
|
|
32252
|
+
const Q = Fi(() => r.getViewport({ scale: m, rotation: u }), [r, u, m]);
|
|
32253
32253
|
return Hg(function() {
|
|
32254
32254
|
if (!r || !y)
|
|
32255
32255
|
return;
|
|
@@ -32299,20 +32299,20 @@ function Yw() {
|
|
|
32299
32299
|
}
|
|
32300
32300
|
const Wf = 1;
|
|
32301
32301
|
function Qw(l) {
|
|
32302
|
-
const t = { ...$u(), ...l }, { _className: i = "react-pdf__Page", _enableRegisterUnregisterPage: n = !0, canvasBackground: s, canvasRef: r, children: o, className: d, customRenderer: u, customTextRenderer: m, devicePixelRatio: g, error: w = "Failed to load the page.", filterAnnotations: y, height: S, inputRef: C, loading: L = "Loading page…", noData: N = "No page specified.", onGetAnnotationsError: j, onGetAnnotationsSuccess: z, onGetStructTreeError: F, onGetStructTreeSuccess: H, onGetTextError: Q, onGetTextSuccess: V, onLoadError: _, onLoadSuccess: q, onRenderAnnotationLayerError: $, onRenderAnnotationLayerSuccess: se, onRenderError: de, onRenderSuccess: fe, onRenderTextLayerError: ue, onRenderTextLayerSuccess: ce, pageColors: le, pageIndex: ee, pageNumber: me, pdf: we, registerPage: ke, renderAnnotationLayer: ye = !0, renderForms: De = !1, renderMode: Be = "canvas", renderTextLayer: ze = !0, rotate: We, scale:
|
|
32302
|
+
const t = { ...$u(), ...l }, { _className: i = "react-pdf__Page", _enableRegisterUnregisterPage: n = !0, canvasBackground: s, canvasRef: r, children: o, className: d, customRenderer: u, customTextRenderer: m, devicePixelRatio: g, error: w = "Failed to load the page.", filterAnnotations: y, height: S, inputRef: C, loading: L = "Loading page…", noData: N = "No page specified.", onGetAnnotationsError: j, onGetAnnotationsSuccess: z, onGetStructTreeError: F, onGetStructTreeSuccess: H, onGetTextError: Q, onGetTextSuccess: V, onLoadError: _, onLoadSuccess: q, onRenderAnnotationLayerError: $, onRenderAnnotationLayerSuccess: se, onRenderError: de, onRenderSuccess: fe, onRenderTextLayerError: ue, onRenderTextLayerSuccess: ce, pageColors: le, pageIndex: ee, pageNumber: me, pdf: we, registerPage: ke, renderAnnotationLayer: ye = !0, renderForms: De = !1, renderMode: Be = "canvas", renderTextLayer: ze = !0, rotate: We, scale: Ce = Wf, unregisterPage: he, width: Ee, ...Ge } = t, [dt, Re] = jr(), { value: Ne, error: Pe } = dt, Oe = Bt(null);
|
|
32303
32303
|
Zt(we, "Attempted to load a page, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.");
|
|
32304
|
-
const je = Vs(me) ? me - 1 : ee ?? null, Ue = me ?? (Vs(ee) ? ee + 1 : null), re = We ?? (Ne ? Ne.rotate : null), pe =
|
|
32304
|
+
const je = Vs(me) ? me - 1 : ee ?? null, Ue = me ?? (Vs(ee) ? ee + 1 : null), re = We ?? (Ne ? Ne.rotate : null), pe = Fi(() => {
|
|
32305
32305
|
if (!Ne)
|
|
32306
32306
|
return null;
|
|
32307
32307
|
let Qe = 1;
|
|
32308
|
-
const bt =
|
|
32308
|
+
const bt = Ce ?? Wf;
|
|
32309
32309
|
if (Ee || S) {
|
|
32310
32310
|
const Et = Ne.getViewport({ scale: 1, rotation: re });
|
|
32311
32311
|
Ee ? Qe = Ee / Et.width : S && (Qe = S / Et.height);
|
|
32312
32312
|
}
|
|
32313
32313
|
return bt * Qe;
|
|
32314
|
-
}, [S, Ne, re,
|
|
32315
|
-
|
|
32314
|
+
}, [S, Ne, re, Ce, Ee]);
|
|
32315
|
+
Ve(function() {
|
|
32316
32316
|
return () => {
|
|
32317
32317
|
Vs(je) && n && he && he(je);
|
|
32318
32318
|
};
|
|
@@ -32330,11 +32330,11 @@ function Qw(l) {
|
|
|
32330
32330
|
}
|
|
32331
32331
|
}
|
|
32332
32332
|
function Ye() {
|
|
32333
|
-
Pe && (
|
|
32333
|
+
Pe && (ji(!1, Pe.toString()), _ && _(Pe));
|
|
32334
32334
|
}
|
|
32335
|
-
|
|
32335
|
+
Ve(function() {
|
|
32336
32336
|
Re({ type: "RESET" });
|
|
32337
|
-
}, [Re, we, je]),
|
|
32337
|
+
}, [Re, we, je]), Ve(function() {
|
|
32338
32338
|
if (!we || !Ue)
|
|
32339
32339
|
return;
|
|
32340
32340
|
const bt = qo(we.getPage(Ue)), Et = bt;
|
|
@@ -32343,7 +32343,7 @@ function Qw(l) {
|
|
|
32343
32343
|
}).catch((Pt) => {
|
|
32344
32344
|
Re({ type: "REJECT", error: Pt });
|
|
32345
32345
|
}), () => nr(Et);
|
|
32346
|
-
}, [Re, we, Ue]),
|
|
32346
|
+
}, [Re, we, Ue]), Ve(() => {
|
|
32347
32347
|
if (Ne !== void 0) {
|
|
32348
32348
|
if (Ne === !1) {
|
|
32349
32349
|
Ye();
|
|
@@ -32352,7 +32352,7 @@ function Qw(l) {
|
|
|
32352
32352
|
He();
|
|
32353
32353
|
}
|
|
32354
32354
|
}, [Ne, pe]);
|
|
32355
|
-
const tt =
|
|
32355
|
+
const tt = Fi(() => (
|
|
32356
32356
|
// Technically there cannot be page without pageIndex, pageNumber, rotate and scale, but TypeScript doesn't know that
|
|
32357
32357
|
Vs(je) && Ue && Vs(re) && Vs(pe) ? {
|
|
32358
32358
|
_className: i,
|
|
@@ -32407,10 +32407,10 @@ function Qw(l) {
|
|
|
32407
32407
|
ze,
|
|
32408
32408
|
re,
|
|
32409
32409
|
pe
|
|
32410
|
-
]), yt =
|
|
32411
|
-
() => Vu(
|
|
32410
|
+
]), yt = Fi(
|
|
32411
|
+
() => Vu(Ge, () => Ne && (pe ? jc(Ne, pe) : void 0)),
|
|
32412
32412
|
// biome-ignore lint/correctness/useExhaustiveDependencies: FIXME
|
|
32413
|
-
[
|
|
32413
|
+
[Ge, Ne, pe]
|
|
32414
32414
|
), nt = `${je}@${pe}/${re}`;
|
|
32415
32415
|
function St() {
|
|
32416
32416
|
switch (Be) {
|
|
@@ -32500,14 +32500,14 @@ const Ww = ({
|
|
|
32500
32500
|
} = Xi(), _ = s.length > 0 ? s : d, [q, $] = K(-1), [se, de] = K(
|
|
32501
32501
|
i
|
|
32502
32502
|
);
|
|
32503
|
-
|
|
32503
|
+
Ve(() => {
|
|
32504
32504
|
i !== -1 && de(i);
|
|
32505
32505
|
}, [i]);
|
|
32506
32506
|
const [fe, ue] = K(!1), ce = () => {
|
|
32507
32507
|
e();
|
|
32508
32508
|
}, le = n || C, ee = le === "TRILLIONLOAN", me = /* @__PURE__ */ new Date();
|
|
32509
32509
|
me.setDate(me.getDate() + 1);
|
|
32510
|
-
const [we, ke] = K(ee ? /* @__PURE__ */ new Date() : me), [ye, De] = K(["", "", "", "", "", ""]), Be = Ki.useRef([]), [ze, We] = K(0), [
|
|
32510
|
+
const [we, ke] = K(ee ? /* @__PURE__ */ new Date() : me), [ye, De] = K(["", "", "", "", "", ""]), Be = Ki.useRef([]), [ze, We] = K(0), [Ce, he] = K("idle"), [Ee, Ge] = K(!1), [dt, Re] = K(!1), [Ne, Pe] = K(""), [Oe, je] = K(""), [Ue, re] = K(
|
|
32511
32511
|
L === "FUNDLY_COLLECT_APP" || L === "FUNDLY_QR_COLLECT_APP" || L === "FUNDLY_QR_WEB" ? "Collect" : "Pay Now"
|
|
32512
32512
|
), [pe, He] = K(!1), [Ye, tt] = K(null), [yt, nt] = K(null), [St, mt] = K(!1), [ft, jt] = K(null), [ct, Qe] = K([]), [bt, Et] = K(!1), [Pt, Tt] = K(0), Ct = xi((Fe) => {
|
|
32513
32513
|
const at = Fe.getFullYear(), Rt = String(Fe.getMonth() + 1).padStart(2, "0"), Yt = String(Fe.getDate()).padStart(2, "0");
|
|
@@ -32557,7 +32557,7 @@ const Ww = ({
|
|
|
32557
32557
|
m,
|
|
32558
32558
|
g,
|
|
32559
32559
|
Ct
|
|
32560
|
-
]),
|
|
32560
|
+
]), be = xi(async () => {
|
|
32561
32561
|
if (le === "TRILLIONLOAN")
|
|
32562
32562
|
try {
|
|
32563
32563
|
const Fe = it(), at = new URLSearchParams({
|
|
@@ -32587,7 +32587,7 @@ const Ww = ({
|
|
|
32587
32587
|
} catch (Fe) {
|
|
32588
32588
|
console.error("[Fundly Pay] Error fetching consent:", Fe), jt(null);
|
|
32589
32589
|
}
|
|
32590
|
-
}, [y]),
|
|
32590
|
+
}, [y]), Ke = xi(async () => {
|
|
32591
32591
|
try {
|
|
32592
32592
|
const Fe = it(), at = `${er()}/consent`;
|
|
32593
32593
|
await Ht.post(at, {
|
|
@@ -32610,7 +32610,7 @@ const Ww = ({
|
|
|
32610
32610
|
}, [y, ct]), qe = xi(() => {
|
|
32611
32611
|
Ye && Et(!0);
|
|
32612
32612
|
}, [Ye]), vt = Ki.useMemo(() => Ye ? Ye.kfsDocumentBytes ? `data:application/pdf;base64,${Ye.kfsDocumentBytes}` : Ye.kfsDocumentUrl || Ye.documentUrl || null : null, [Ye]), Ot = Bt(null);
|
|
32613
|
-
|
|
32613
|
+
Ve(() => {
|
|
32614
32614
|
const Fe = Ot.current;
|
|
32615
32615
|
if (!Fe) return;
|
|
32616
32616
|
const at = (Rt) => {
|
|
@@ -32633,8 +32633,8 @@ const Ww = ({
|
|
|
32633
32633
|
return;
|
|
32634
32634
|
}
|
|
32635
32635
|
if (Re(!1), Ee) return;
|
|
32636
|
-
if (
|
|
32637
|
-
console.error("[Fundly Pay] Payment date is required"),
|
|
32636
|
+
if (Ge(!0), !we) {
|
|
32637
|
+
console.error("[Fundly Pay] Payment date is required"), Ge(!1);
|
|
32638
32638
|
return;
|
|
32639
32639
|
}
|
|
32640
32640
|
const Fe = we.toISOString(), at = Fe.split("T")[0], Rt = n || C, Yt = {
|
|
@@ -32662,7 +32662,7 @@ const Ww = ({
|
|
|
32662
32662
|
paymentType: m
|
|
32663
32663
|
}
|
|
32664
32664
|
};
|
|
32665
|
-
y && y.trim() !== "" ? Yt.chemistBusinessId = y : S && S.trim() !== "" && (Yt.leadId = S), m === "INVOICE_COLLECT" ? Yt.paymentInvoice = g : m === "DIRECT_COLLECT" && (Yt.invoiceIds = w, Yt.paidAmount = u), (L === "FUNDLY_COLLECT_APP" || L === "FUNDLY_QR_COLLECT_APP" || L === "FUNDLY_QR_WEB" || L === "FUNDLY_TRADE") && (Yt.loanDrawdownRequestDTO.mobileNumber = N, Yt.loanDrawdownRequestDTO.loanInitiateOtp = ye.join("")), N && (Yt.payerMobileNumber = N), le === "TRILLIONLOAN" &&
|
|
32665
|
+
y && y.trim() !== "" ? Yt.chemistBusinessId = y : S && S.trim() !== "" && (Yt.leadId = S), m === "INVOICE_COLLECT" ? Yt.paymentInvoice = g : m === "DIRECT_COLLECT" && (Yt.invoiceIds = w, Yt.paidAmount = u), (L === "FUNDLY_COLLECT_APP" || L === "FUNDLY_QR_COLLECT_APP" || L === "FUNDLY_QR_WEB" || L === "FUNDLY_TRADE") && (Yt.loanDrawdownRequestDTO.mobileNumber = N, Yt.loanDrawdownRequestDTO.loanInitiateOtp = ye.join("")), N && (Yt.payerMobileNumber = N), le === "TRILLIONLOAN" && Ke();
|
|
32666
32666
|
try {
|
|
32667
32667
|
const Gt = await gs(Yt), Dt = Gt?.data || Gt;
|
|
32668
32668
|
Dt && !Dt.scheduleDate && (Dt.scheduleDate = at), Dt && Xt?.lastRepaymentDate && (Dt.dueDate = Xt.lastRepaymentDate), t && t(Dt);
|
|
@@ -32670,25 +32670,25 @@ const Ww = ({
|
|
|
32670
32670
|
const Dt = Gt?.response?.data?.errorMessage || Gt?.response?.data?.errorDesc || Gt?.response?.data?.message || Gt?.message || "Payment failed. Please try again.";
|
|
32671
32671
|
Pe(Dt);
|
|
32672
32672
|
} finally {
|
|
32673
|
-
|
|
32673
|
+
Ge(!1);
|
|
32674
32674
|
}
|
|
32675
32675
|
}, pn = (Fe, at) => {
|
|
32676
32676
|
if (!/^[0-9]?$/.test(Fe)) return;
|
|
32677
32677
|
const Rt = [...ye];
|
|
32678
32678
|
Rt[at] = Fe, De(Rt), Fe && at < 5 && Be.current[at + 1]?.focus();
|
|
32679
|
-
},
|
|
32679
|
+
}, Zn = (Fe, at) => {
|
|
32680
32680
|
Fe.key === "Backspace" && !ye[at] && at > 0 && Be.current[at - 1]?.focus();
|
|
32681
|
-
},
|
|
32681
|
+
}, Di = () => {
|
|
32682
32682
|
he("countdown"), We(30), Jt();
|
|
32683
32683
|
};
|
|
32684
|
-
|
|
32685
|
-
if (
|
|
32684
|
+
Ve(() => {
|
|
32685
|
+
if (Ce === "countdown" && ze > 0) {
|
|
32686
32686
|
const Fe = setInterval(() => {
|
|
32687
32687
|
We((at) => at - 1);
|
|
32688
32688
|
}, 1e3);
|
|
32689
32689
|
return () => clearInterval(Fe);
|
|
32690
|
-
} else
|
|
32691
|
-
}, [ze,
|
|
32690
|
+
} else Ce === "countdown" && ze === 0 && (he("resend"), Jt());
|
|
32691
|
+
}, [ze, Ce]);
|
|
32692
32692
|
const ai = Ki.useMemo(() => {
|
|
32693
32693
|
if (ee && pe) return !0;
|
|
32694
32694
|
const Fe = q !== -1, at = we !== null, Rt = se !== -1 || !Q?.subLimits, Yt = ee ? St : !0;
|
|
@@ -32729,14 +32729,14 @@ const Ww = ({
|
|
|
32729
32729
|
Cn(!1);
|
|
32730
32730
|
}
|
|
32731
32731
|
};
|
|
32732
|
-
return
|
|
32732
|
+
return Ve(() => {
|
|
32733
32733
|
let Fe;
|
|
32734
32734
|
return l && q !== -1 && se !== -1 && (Fe = window.setTimeout(() => {
|
|
32735
32735
|
Fn();
|
|
32736
32736
|
}, 1e3)), () => {
|
|
32737
32737
|
clearTimeout(Fe);
|
|
32738
32738
|
};
|
|
32739
|
-
}, [q, se, we]),
|
|
32739
|
+
}, [q, se, we]), Ve(() => {
|
|
32740
32740
|
if (l) {
|
|
32741
32741
|
if ($(0), ee)
|
|
32742
32742
|
ke(/* @__PURE__ */ new Date()), mt(!1);
|
|
@@ -32744,15 +32744,15 @@ const Ww = ({
|
|
|
32744
32744
|
const Fe = /* @__PURE__ */ new Date();
|
|
32745
32745
|
Fe.setDate(Fe.getDate() + 1), ke(Fe);
|
|
32746
32746
|
}
|
|
32747
|
-
|
|
32747
|
+
be();
|
|
32748
32748
|
}
|
|
32749
|
-
}, [l,
|
|
32749
|
+
}, [l, be]), Ve(() => {
|
|
32750
32750
|
if (!l || le !== "TRILLIONLOAN") return;
|
|
32751
32751
|
const Fe = window.setTimeout(() => {
|
|
32752
32752
|
st();
|
|
32753
32753
|
}, 400);
|
|
32754
32754
|
return () => clearTimeout(Fe);
|
|
32755
|
-
}, [q, we, st]),
|
|
32755
|
+
}, [q, we, st]), Ve(() => {
|
|
32756
32756
|
const Fe = () => {
|
|
32757
32757
|
l && q !== -1 && (Fn(), st());
|
|
32758
32758
|
};
|
|
@@ -32903,7 +32903,7 @@ const Ww = ({
|
|
|
32903
32903
|
Be.current[at] = Rt;
|
|
32904
32904
|
},
|
|
32905
32905
|
onChange: (Rt) => pn(Rt.target.value, at),
|
|
32906
|
-
onKeyDown: (Rt) =>
|
|
32906
|
+
onKeyDown: (Rt) => Zn(Rt, at),
|
|
32907
32907
|
className: "fp:w-7 fp:h-8 fp:text-center fp:text-[16px] fp:outline-none"
|
|
32908
32908
|
},
|
|
32909
32909
|
at
|
|
@@ -32911,13 +32911,13 @@ const Ww = ({
|
|
|
32911
32911
|
/* @__PURE__ */ b(
|
|
32912
32912
|
"button",
|
|
32913
32913
|
{
|
|
32914
|
-
onClick:
|
|
32915
|
-
disabled:
|
|
32916
|
-
className: `fp:text-white fp:text-[12px] fp:px-7 fp:rounded-lg ${
|
|
32914
|
+
onClick: Di,
|
|
32915
|
+
disabled: Ce === "countdown",
|
|
32916
|
+
className: `fp:text-white fp:text-[12px] fp:px-7 fp:rounded-lg ${Ce === "resend" ? "fp:bg-gray-500" : "fp:bg-[#16558B]"}`,
|
|
32917
32917
|
children: [
|
|
32918
|
-
|
|
32919
|
-
|
|
32920
|
-
|
|
32918
|
+
Ce === "idle" && "Get OTP",
|
|
32919
|
+
Ce === "countdown" && `${ze}s`,
|
|
32920
|
+
Ce === "resend" && "Resend"
|
|
32921
32921
|
]
|
|
32922
32922
|
}
|
|
32923
32923
|
)
|
|
@@ -32944,7 +32944,7 @@ const Ww = ({
|
|
|
32944
32944
|
/* @__PURE__ */ h("p", { className: "fp:text-[11px] fp:text-red-700", children: Oe })
|
|
32945
32945
|
] }) : /* @__PURE__ */ b("label", { className: "fp:text-[13px] fp:flex fp:text-center fp:items-center fp:text-[#16558B]", children: [
|
|
32946
32946
|
/* @__PURE__ */ h("img", { src: Te.info, className: "fp:w-4 fp:h-4 fp:mr-1" }),
|
|
32947
|
-
|
|
32947
|
+
Ce === "idle" ? "OTP will be sent to the retailer for consent." : "An OTP has been sent to the retailer for consent."
|
|
32948
32948
|
] })
|
|
32949
32949
|
] }),
|
|
32950
32950
|
ft && /* @__PURE__ */ h(
|
|
@@ -33149,7 +33149,7 @@ const Ww = ({
|
|
|
33149
33149
|
}, [L, N] = K(""), [j, z] = K(!1), [F, H] = K(""), [Q, V] = K(!1), [_, q] = K(5), [$, se] = K(""), de = Bt(null), fe = Bt(
|
|
33150
33150
|
null
|
|
33151
33151
|
);
|
|
33152
|
-
|
|
33152
|
+
Ve(() => {
|
|
33153
33153
|
l || (N(""), H(""), V(!1), q(5), de.current && clearTimeout(de.current), fe.current && clearInterval(fe.current));
|
|
33154
33154
|
}, [l]);
|
|
33155
33155
|
const ue = () => {
|
|
@@ -33437,7 +33437,7 @@ Fundly Team`;
|
|
|
33437
33437
|
j((ye) => ye <= 1 ? (clearInterval(se.current), ce.current = !0, fe.current && (clearTimeout(fe.current), fe.current = null), _(!0), 0) : ye - 1);
|
|
33438
33438
|
}, 1e3);
|
|
33439
33439
|
};
|
|
33440
|
-
return
|
|
33440
|
+
return Ve(() => (l && (F(""), _(!1), $(""), ue.current = !1, ce.current = !1, ee()), () => {
|
|
33441
33441
|
se.current && clearInterval(se.current), de.current && clearTimeout(de.current), fe.current && clearTimeout(fe.current), j(120), F(""), $(""), ue.current = !1, ce.current = !1;
|
|
33442
33442
|
}), [l]), /* @__PURE__ */ b(ei, { children: [
|
|
33443
33443
|
/* @__PURE__ */ h(en, { open: l, onClose: le, children: /* @__PURE__ */ b("div", { className: "fp:w-full fp:px-4 fp:pt-6 fp:mb-12", children: [
|
|
@@ -33706,7 +33706,7 @@ Fundly Team`;
|
|
|
33706
33706
|
sessionId: H,
|
|
33707
33707
|
erpId: Q
|
|
33708
33708
|
} = Xi(), [V, _] = K(!1), [q, $] = K("INITIATED"), [se, de] = K(null), [fe, ue] = K(0), [ce, le] = K(null), ee = Bt(null), me = Bt(!1), we = Bt({ amount: 0, invoiceCount: 0 });
|
|
33709
|
-
|
|
33709
|
+
Ve(() => {
|
|
33710
33710
|
l || (ee.current && (clearTimeout(ee.current), ee.current = null), me.current = !1, ze.current = !1, $("INITIATED"), de(null), le(null), sessionStorage.removeItem("fundly_payment_initiated"), sessionStorage.removeItem("fundly_last_transaction_id"));
|
|
33711
33711
|
}, [l]);
|
|
33712
33712
|
const ke = (he) => {
|
|
@@ -33732,7 +33732,7 @@ Fundly Team`;
|
|
|
33732
33732
|
const Ee = he.toLowerCase();
|
|
33733
33733
|
return Ee.includes("cancel") || Ee.includes("abort") || Ee.includes("declined by user") ? "user_abort" : Ee.includes("bank") || Ee.includes("insufficient") ? "bank" : "gateway";
|
|
33734
33734
|
}, ze = Ki.useRef(!1);
|
|
33735
|
-
|
|
33735
|
+
Ve(() => {
|
|
33736
33736
|
if (!l || ze.current)
|
|
33737
33737
|
return;
|
|
33738
33738
|
const he = new URLSearchParams(window.location.search), Ee = he.get("transactionId") || he.get("orderId");
|
|
@@ -33790,7 +33790,7 @@ Fundly Team`;
|
|
|
33790
33790
|
} catch (qe) {
|
|
33791
33791
|
console.warn("Failed to format transaction date:", qe);
|
|
33792
33792
|
}
|
|
33793
|
-
const
|
|
33793
|
+
const be = {
|
|
33794
33794
|
paymentType: re,
|
|
33795
33795
|
paymentDate: He,
|
|
33796
33796
|
transactionDate: Ye,
|
|
@@ -33814,7 +33814,7 @@ Fundly Team`;
|
|
|
33814
33814
|
u || void 0,
|
|
33815
33815
|
m?.trim() || void 0,
|
|
33816
33816
|
Ct,
|
|
33817
|
-
|
|
33817
|
+
be,
|
|
33818
33818
|
void 0,
|
|
33819
33819
|
// salesmanPhone (not available here)
|
|
33820
33820
|
Tt
|
|
@@ -33840,8 +33840,8 @@ Fundly Team`;
|
|
|
33840
33840
|
bankReferenceId: Qe || null,
|
|
33841
33841
|
successAt: Ye || (/* @__PURE__ */ new Date()).toISOString()
|
|
33842
33842
|
}), le(Pe.data);
|
|
33843
|
-
const
|
|
33844
|
-
|
|
33843
|
+
const Ke = new URL(window.location.href);
|
|
33844
|
+
Ke.searchParams.delete("orderId"), Ke.searchParams.delete("transactionId"), window.history.replaceState({}, "", Ke.toString()), t && t(Pe.data);
|
|
33845
33845
|
return;
|
|
33846
33846
|
}
|
|
33847
33847
|
if (["FAILED", "CANCELLED", "DECLINED"].includes(Oe)) {
|
|
@@ -33854,7 +33854,7 @@ Fundly Team`;
|
|
|
33854
33854
|
} catch (qe) {
|
|
33855
33855
|
console.warn("Failed to format transaction date:", qe);
|
|
33856
33856
|
}
|
|
33857
|
-
const
|
|
33857
|
+
const be = {
|
|
33858
33858
|
paymentType: re,
|
|
33859
33859
|
paymentDate: He,
|
|
33860
33860
|
transactionDate: Ye,
|
|
@@ -33879,7 +33879,7 @@ Fundly Team`;
|
|
|
33879
33879
|
u || void 0,
|
|
33880
33880
|
m?.trim() || void 0,
|
|
33881
33881
|
Ct,
|
|
33882
|
-
|
|
33882
|
+
be
|
|
33883
33883
|
), Vn({
|
|
33884
33884
|
orderId: De(),
|
|
33885
33885
|
transactionId: Re || "",
|
|
@@ -33904,8 +33904,8 @@ Fundly Team`;
|
|
|
33904
33904
|
errorMessage: Pt || Oe,
|
|
33905
33905
|
failureStage: Be(Pt || Oe)
|
|
33906
33906
|
}), le(Pe.data);
|
|
33907
|
-
const
|
|
33908
|
-
|
|
33907
|
+
const Ke = new URL(window.location.href);
|
|
33908
|
+
Ke.searchParams.delete("orderId"), Ke.searchParams.delete("transactionId"), window.history.replaceState({}, "", Ke.toString()), i && i(Pe.data);
|
|
33909
33909
|
return;
|
|
33910
33910
|
}
|
|
33911
33911
|
me.current || (ee.current = setTimeout(() => {
|
|
@@ -33964,10 +33964,10 @@ Fundly Team`;
|
|
|
33964
33964
|
let Ct = "";
|
|
33965
33965
|
if (He)
|
|
33966
33966
|
try {
|
|
33967
|
-
const
|
|
33967
|
+
const Ke = new Date(He), qe = String(Ke.getDate()).padStart(2, "0"), vt = String(Ke.getMonth() + 1).padStart(2, "0"), Ot = Ke.getFullYear();
|
|
33968
33968
|
Ct = `${qe}-${vt}-${Ot}`;
|
|
33969
|
-
} catch (
|
|
33970
|
-
console.warn("Failed to format transaction date:",
|
|
33969
|
+
} catch (Ke) {
|
|
33970
|
+
console.warn("Failed to format transaction date:", Ke);
|
|
33971
33971
|
}
|
|
33972
33972
|
const st = {
|
|
33973
33973
|
paymentType: Ue,
|
|
@@ -34019,8 +34019,8 @@ Fundly Team`;
|
|
|
34019
34019
|
bankReferenceId: ct || null,
|
|
34020
34020
|
successAt: He || (/* @__PURE__ */ new Date()).toISOString()
|
|
34021
34021
|
}), le(Ne.data);
|
|
34022
|
-
const
|
|
34023
|
-
|
|
34022
|
+
const be = new URL(window.location.href);
|
|
34023
|
+
be.searchParams.delete("orderId"), be.searchParams.delete("transactionId"), window.history.replaceState({}, "", be.toString()), t && t(Ne.data);
|
|
34024
34024
|
return;
|
|
34025
34025
|
}
|
|
34026
34026
|
if (["FAILED", "CANCELLED", "DECLINED"].includes(Pe)) {
|
|
@@ -34028,10 +34028,10 @@ Fundly Team`;
|
|
|
34028
34028
|
let Ct = "";
|
|
34029
34029
|
if (He)
|
|
34030
34030
|
try {
|
|
34031
|
-
const
|
|
34031
|
+
const Ke = new Date(He), qe = String(Ke.getDate()).padStart(2, "0"), vt = String(Ke.getMonth() + 1).padStart(2, "0"), Ot = Ke.getFullYear();
|
|
34032
34032
|
Ct = `${qe}-${vt}-${Ot}`;
|
|
34033
|
-
} catch (
|
|
34034
|
-
console.warn("Failed to format transaction date:",
|
|
34033
|
+
} catch (Ke) {
|
|
34034
|
+
console.warn("Failed to format transaction date:", Ke);
|
|
34035
34035
|
}
|
|
34036
34036
|
const st = {
|
|
34037
34037
|
paymentType: Ue,
|
|
@@ -34083,8 +34083,8 @@ Fundly Team`;
|
|
|
34083
34083
|
errorMessage: Et || Pe,
|
|
34084
34084
|
failureStage: Be(Et || Pe)
|
|
34085
34085
|
}), le(Ne.data);
|
|
34086
|
-
const
|
|
34087
|
-
|
|
34086
|
+
const be = new URL(window.location.href);
|
|
34087
|
+
be.searchParams.delete("orderId"), be.searchParams.delete("transactionId"), window.history.replaceState({}, "", be.toString()), i && i(Ne.data);
|
|
34088
34088
|
return;
|
|
34089
34089
|
}
|
|
34090
34090
|
me.current || (ee.current = setTimeout(() => {
|
|
@@ -34177,7 +34177,7 @@ Fundly Team`;
|
|
|
34177
34177
|
} catch (qe) {
|
|
34178
34178
|
console.warn("Failed to format transaction date:", qe);
|
|
34179
34179
|
}
|
|
34180
|
-
const
|
|
34180
|
+
const be = {
|
|
34181
34181
|
paymentType: Ye,
|
|
34182
34182
|
paymentDate: yt,
|
|
34183
34183
|
transactionDate: nt,
|
|
@@ -34201,14 +34201,14 @@ Fundly Team`;
|
|
|
34201
34201
|
u || void 0,
|
|
34202
34202
|
m?.trim() || void 0,
|
|
34203
34203
|
Ct,
|
|
34204
|
-
|
|
34204
|
+
be,
|
|
34205
34205
|
void 0,
|
|
34206
34206
|
// salesmanPhone (not available here)
|
|
34207
34207
|
Tt
|
|
34208
34208
|
// Pass invoice numbers
|
|
34209
34209
|
), le(re.data);
|
|
34210
|
-
const
|
|
34211
|
-
|
|
34210
|
+
const Ke = new URL(window.location.href);
|
|
34211
|
+
Ke.searchParams.delete("orderId"), Ke.searchParams.delete("transactionId"), window.history.replaceState({}, "", Ke.toString()), t && t(re.data);
|
|
34212
34212
|
return;
|
|
34213
34213
|
}
|
|
34214
34214
|
if (["FAILED", "CANCELLED", "DECLINED"].includes(pe)) {
|
|
@@ -34221,7 +34221,7 @@ Fundly Team`;
|
|
|
34221
34221
|
} catch (qe) {
|
|
34222
34222
|
console.warn("Failed to format transaction date:", qe);
|
|
34223
34223
|
}
|
|
34224
|
-
const
|
|
34224
|
+
const be = {
|
|
34225
34225
|
paymentType: Ye,
|
|
34226
34226
|
paymentDate: yt,
|
|
34227
34227
|
transactionDate: nt,
|
|
@@ -34246,10 +34246,10 @@ Fundly Team`;
|
|
|
34246
34246
|
u || void 0,
|
|
34247
34247
|
m?.trim() || void 0,
|
|
34248
34248
|
Ct,
|
|
34249
|
-
|
|
34249
|
+
be
|
|
34250
34250
|
), le(re.data);
|
|
34251
|
-
const
|
|
34252
|
-
|
|
34251
|
+
const Ke = new URL(window.location.href);
|
|
34252
|
+
Ke.searchParams.delete("orderId"), Ke.searchParams.delete("transactionId"), window.history.replaceState({}, "", Ke.toString()), i && i(re.data);
|
|
34253
34253
|
return;
|
|
34254
34254
|
}
|
|
34255
34255
|
me.current || (ee.current = setTimeout(() => {
|
|
@@ -34290,7 +34290,7 @@ Fundly Team`;
|
|
|
34290
34290
|
z,
|
|
34291
34291
|
fe
|
|
34292
34292
|
]);
|
|
34293
|
-
const
|
|
34293
|
+
const Ce = ((he) => ({
|
|
34294
34294
|
INITIATED: 2,
|
|
34295
34295
|
PROCESSING: 2,
|
|
34296
34296
|
SUCCESS: 3,
|
|
@@ -34378,8 +34378,8 @@ Fundly Team`;
|
|
|
34378
34378
|
/* @__PURE__ */ h(
|
|
34379
34379
|
"div",
|
|
34380
34380
|
{
|
|
34381
|
-
className: `fp:w-5 fp:h-5 fp:rounded-full fp:flex fp:items-center fp:justify-center ${
|
|
34382
|
-
children:
|
|
34381
|
+
className: `fp:w-5 fp:h-5 fp:rounded-full fp:flex fp:items-center fp:justify-center ${Ce >= 1 ? "fp:bg-green-500" : "fp:bg-gray-300"}`,
|
|
34382
|
+
children: Ce >= 1 && /* @__PURE__ */ h(
|
|
34383
34383
|
"svg",
|
|
34384
34384
|
{
|
|
34385
34385
|
className: "fp:w-3 fp:h-3 fp:text-white",
|
|
@@ -34402,7 +34402,7 @@ Fundly Team`;
|
|
|
34402
34402
|
/* @__PURE__ */ h(
|
|
34403
34403
|
"span",
|
|
34404
34404
|
{
|
|
34405
|
-
className: `fp:text-[14px] ${
|
|
34405
|
+
className: `fp:text-[14px] ${Ce >= 1 ? "fp:text-gray-800 fp:font-medium" : "fp:text-gray-400"}`,
|
|
34406
34406
|
children: "Payment started"
|
|
34407
34407
|
}
|
|
34408
34408
|
)
|
|
@@ -34411,8 +34411,8 @@ Fundly Team`;
|
|
|
34411
34411
|
/* @__PURE__ */ h(
|
|
34412
34412
|
"div",
|
|
34413
34413
|
{
|
|
34414
|
-
className: `fp:w-5 fp:h-5 fp:rounded-full fp:flex fp:items-center fp:justify-center ${
|
|
34415
|
-
children:
|
|
34414
|
+
className: `fp:w-5 fp:h-5 fp:rounded-full fp:flex fp:items-center fp:justify-center ${Ce >= 2 ? "fp:bg-green-500" : "fp:bg-gray-300"}`,
|
|
34415
|
+
children: Ce >= 2 && /* @__PURE__ */ h(
|
|
34416
34416
|
"svg",
|
|
34417
34417
|
{
|
|
34418
34418
|
className: "fp:w-3 fp:h-3 fp:text-white",
|
|
@@ -34435,7 +34435,7 @@ Fundly Team`;
|
|
|
34435
34435
|
/* @__PURE__ */ h(
|
|
34436
34436
|
"span",
|
|
34437
34437
|
{
|
|
34438
|
-
className: `fp:text-[14px] ${
|
|
34438
|
+
className: `fp:text-[14px] ${Ce >= 2 ? "fp:text-gray-800 fp:font-medium" : "fp:text-gray-400"}`,
|
|
34439
34439
|
children: "Payment in progress"
|
|
34440
34440
|
}
|
|
34441
34441
|
)
|
|
@@ -34444,8 +34444,8 @@ Fundly Team`;
|
|
|
34444
34444
|
/* @__PURE__ */ h(
|
|
34445
34445
|
"div",
|
|
34446
34446
|
{
|
|
34447
|
-
className: `fp:w-5 fp:h-5 fp:rounded-full fp:flex fp:items-center fp:justify-center ${
|
|
34448
|
-
children:
|
|
34447
|
+
className: `fp:w-5 fp:h-5 fp:rounded-full fp:flex fp:items-center fp:justify-center ${Ce >= 3 ? "fp:bg-green-500" : "fp:bg-gray-300"}`,
|
|
34448
|
+
children: Ce >= 3 && /* @__PURE__ */ h(
|
|
34449
34449
|
"svg",
|
|
34450
34450
|
{
|
|
34451
34451
|
className: "fp:w-3 fp:h-3 fp:text-white",
|
|
@@ -34468,7 +34468,7 @@ Fundly Team`;
|
|
|
34468
34468
|
/* @__PURE__ */ h(
|
|
34469
34469
|
"span",
|
|
34470
34470
|
{
|
|
34471
|
-
className: `fp:text-[14px] ${
|
|
34471
|
+
className: `fp:text-[14px] ${Ce >= 3 ? "fp:text-gray-800 fp:font-medium" : "fp:text-gray-400"}`,
|
|
34472
34472
|
children: "Payment success"
|
|
34473
34473
|
}
|
|
34474
34474
|
)
|
|
@@ -34539,7 +34539,7 @@ Fundly Team`;
|
|
|
34539
34539
|
sessionId: H,
|
|
34540
34540
|
erpId: Q
|
|
34541
34541
|
} = Xi(), [V, _] = K(!1), [q, $] = K("INITIATED"), [se, de] = K(null), [fe, ue] = K(null), ce = Bt(null), le = Bt(!1), ee = Bt({ amount: 0, invoiceCount: 0 });
|
|
34542
|
-
|
|
34542
|
+
Ve(() => {
|
|
34543
34543
|
l || (ce.current && (clearTimeout(ce.current), ce.current = null), le.current = !1, De.current = !1, $("INITIATED"), de(null), ue(null), sessionStorage.removeItem("fundly_netbanking_payment_initiated"), sessionStorage.removeItem("fundly_netbanking_last_transaction_id"));
|
|
34544
34544
|
}, [l]);
|
|
34545
34545
|
const me = (We) => {
|
|
@@ -34555,23 +34555,23 @@ Fundly Team`;
|
|
|
34555
34555
|
}
|
|
34556
34556
|
}, we = (We) => {
|
|
34557
34557
|
if (!We) return null;
|
|
34558
|
-
const
|
|
34559
|
-
return
|
|
34558
|
+
const Ce = We.toLowerCase();
|
|
34559
|
+
return Ce.includes("zaakpay.com") ? "zaakpay" : Ce.includes("cashfree") ? "cashfree" : Ce.includes("yesbank") || Ce.includes("yes_bank") ? "yes_bank" : Ce.includes("razorpay") ? "razorpay" : null;
|
|
34560
34560
|
}, ke = () => {
|
|
34561
|
-
const We = Date.now(),
|
|
34562
|
-
return `PAY-${We}-${
|
|
34561
|
+
const We = Date.now(), Ce = Math.floor(Math.random() * 1e6);
|
|
34562
|
+
return `PAY-${We}-${Ce}`;
|
|
34563
34563
|
}, ye = (We) => {
|
|
34564
34564
|
if (!We) return "gateway";
|
|
34565
|
-
const
|
|
34566
|
-
return
|
|
34565
|
+
const Ce = We.toLowerCase();
|
|
34566
|
+
return Ce.includes("cancel") || Ce.includes("abort") || Ce.includes("declined by user") ? "user_abort" : Ce.includes("bank") || Ce.includes("insufficient") ? "bank" : "gateway";
|
|
34567
34567
|
}, De = Ki.useRef(!1);
|
|
34568
|
-
|
|
34568
|
+
Ve(() => {
|
|
34569
34569
|
if (!l || De.current)
|
|
34570
34570
|
return;
|
|
34571
|
-
const We = new URLSearchParams(window.location.search),
|
|
34571
|
+
const We = new URLSearchParams(window.location.search), Ce = We.get("transactionId") || We.get("orderId");
|
|
34572
34572
|
if (F) {
|
|
34573
|
-
const
|
|
34574
|
-
if (!
|
|
34573
|
+
const Ge = z || Ce;
|
|
34574
|
+
if (!Ge) {
|
|
34575
34575
|
de("Transaction ID not found. Unable to fetch payment status.");
|
|
34576
34576
|
return;
|
|
34577
34577
|
}
|
|
@@ -34580,7 +34580,7 @@ Fundly Team`;
|
|
|
34580
34580
|
if (!le.current)
|
|
34581
34581
|
try {
|
|
34582
34582
|
const Re = await Ht.get(
|
|
34583
|
-
`${qn()}/transactions/${
|
|
34583
|
+
`${qn()}/transactions/${Ge}`,
|
|
34584
34584
|
{
|
|
34585
34585
|
headers: {
|
|
34586
34586
|
Authorization: it() ? `Bearer ${it()}` : void 0,
|
|
@@ -34611,15 +34611,15 @@ Fundly Team`;
|
|
|
34611
34611
|
if (ee.current.amount === 0 && Pe && (ee.current = {
|
|
34612
34612
|
amount: Number(Pe),
|
|
34613
34613
|
invoiceCount: Oe?.length || s?.length || r?.length || 0,
|
|
34614
|
-
transactionId:
|
|
34614
|
+
transactionId: Ge,
|
|
34615
34615
|
initiatedAt: ee.current.initiatedAt
|
|
34616
34616
|
}), Ne && $(Ne), Ne === "SUCCESS" || Ne === "COMPLETED") {
|
|
34617
34617
|
le.current = !0, ce.current && (clearTimeout(ce.current), ce.current = null);
|
|
34618
34618
|
let Tt = "";
|
|
34619
34619
|
if (pe)
|
|
34620
34620
|
try {
|
|
34621
|
-
const
|
|
34622
|
-
Tt = `${
|
|
34621
|
+
const be = new Date(pe), Ke = String(be.getDate()).padStart(2, "0"), qe = String(be.getMonth() + 1).padStart(2, "0"), vt = be.getFullYear();
|
|
34622
|
+
Tt = `${Ke}-${qe}-${vt}`;
|
|
34623
34623
|
} catch {
|
|
34624
34624
|
}
|
|
34625
34625
|
const Ct = {
|
|
@@ -34642,7 +34642,7 @@ Fundly Team`;
|
|
|
34642
34642
|
Ue || "NETBANKING",
|
|
34643
34643
|
ee.current.amount,
|
|
34644
34644
|
ee.current.invoiceCount,
|
|
34645
|
-
|
|
34645
|
+
Ge,
|
|
34646
34646
|
u || void 0,
|
|
34647
34647
|
m?.trim() || void 0,
|
|
34648
34648
|
Pt,
|
|
@@ -34653,7 +34653,7 @@ Fundly Team`;
|
|
|
34653
34653
|
// Pass invoice numbers
|
|
34654
34654
|
), Vn({
|
|
34655
34655
|
orderId: ke(),
|
|
34656
|
-
transactionId:
|
|
34656
|
+
transactionId: Ge || "",
|
|
34657
34657
|
status: "success",
|
|
34658
34658
|
amount: ee.current.amount,
|
|
34659
34659
|
paymentMode: Ue || "NETBANKING",
|
|
@@ -34681,8 +34681,8 @@ Fundly Team`;
|
|
|
34681
34681
|
let Tt = "";
|
|
34682
34682
|
if (pe)
|
|
34683
34683
|
try {
|
|
34684
|
-
const
|
|
34685
|
-
Tt = `${
|
|
34684
|
+
const be = new Date(pe), Ke = String(be.getDate()).padStart(2, "0"), qe = String(be.getMonth() + 1).padStart(2, "0"), vt = be.getFullYear();
|
|
34685
|
+
Tt = `${Ke}-${qe}-${vt}`;
|
|
34686
34686
|
} catch {
|
|
34687
34687
|
}
|
|
34688
34688
|
const Ct = {
|
|
@@ -34706,14 +34706,14 @@ Fundly Team`;
|
|
|
34706
34706
|
ee.current.amount,
|
|
34707
34707
|
ee.current.invoiceCount,
|
|
34708
34708
|
Ne,
|
|
34709
|
-
|
|
34709
|
+
Ge,
|
|
34710
34710
|
u || void 0,
|
|
34711
34711
|
m?.trim() || void 0,
|
|
34712
34712
|
Pt,
|
|
34713
34713
|
Ct
|
|
34714
34714
|
), Vn({
|
|
34715
34715
|
orderId: ke(),
|
|
34716
|
-
transactionId:
|
|
34716
|
+
transactionId: Ge || "",
|
|
34717
34717
|
status: "failed",
|
|
34718
34718
|
amount: ee.current.amount,
|
|
34719
34719
|
paymentMode: Ue || "NETBANKING",
|
|
@@ -34751,13 +34751,13 @@ Fundly Team`;
|
|
|
34751
34751
|
dt();
|
|
34752
34752
|
return;
|
|
34753
34753
|
}
|
|
34754
|
-
if (
|
|
34754
|
+
if (Ce) {
|
|
34755
34755
|
De.current = !0, _(!1), $("PROCESSING");
|
|
34756
|
-
const
|
|
34756
|
+
const Ge = async () => {
|
|
34757
34757
|
if (!le.current)
|
|
34758
34758
|
try {
|
|
34759
34759
|
const dt = await Ht.get(
|
|
34760
|
-
`${qn()}/transactions/${
|
|
34760
|
+
`${qn()}/transactions/${Ce}`,
|
|
34761
34761
|
{
|
|
34762
34762
|
headers: {
|
|
34763
34763
|
Authorization: it() ? `Bearer ${it()}` : void 0,
|
|
@@ -34788,15 +34788,15 @@ Fundly Team`;
|
|
|
34788
34788
|
if (ee.current.amount === 0 && Ne && (ee.current = {
|
|
34789
34789
|
amount: Number(Ne),
|
|
34790
34790
|
invoiceCount: Pe?.length || s?.length || r?.length || 0,
|
|
34791
|
-
transactionId:
|
|
34791
|
+
transactionId: Ce,
|
|
34792
34792
|
initiatedAt: ee.current.initiatedAt
|
|
34793
34793
|
}), Re && $(Re), Re === "SUCCESS" || Re === "COMPLETED") {
|
|
34794
34794
|
le.current = !0, ce.current && (clearTimeout(ce.current), ce.current = null);
|
|
34795
34795
|
let Pt = "";
|
|
34796
34796
|
if (re)
|
|
34797
34797
|
try {
|
|
34798
|
-
const st = new Date(re),
|
|
34799
|
-
Pt = `${
|
|
34798
|
+
const st = new Date(re), be = String(st.getDate()).padStart(2, "0"), Ke = String(st.getMonth() + 1).padStart(2, "0"), qe = st.getFullYear();
|
|
34799
|
+
Pt = `${be}-${Ke}-${qe}`;
|
|
34800
34800
|
} catch {
|
|
34801
34801
|
}
|
|
34802
34802
|
const Tt = {
|
|
@@ -34819,7 +34819,7 @@ Fundly Team`;
|
|
|
34819
34819
|
je || "NETBANKING",
|
|
34820
34820
|
ee.current.amount,
|
|
34821
34821
|
ee.current.invoiceCount,
|
|
34822
|
-
|
|
34822
|
+
Ce,
|
|
34823
34823
|
u || void 0,
|
|
34824
34824
|
m?.trim() || void 0,
|
|
34825
34825
|
Et,
|
|
@@ -34830,7 +34830,7 @@ Fundly Team`;
|
|
|
34830
34830
|
// Pass invoice numbers
|
|
34831
34831
|
), Vn({
|
|
34832
34832
|
orderId: ke(),
|
|
34833
|
-
transactionId:
|
|
34833
|
+
transactionId: Ce || "",
|
|
34834
34834
|
status: "success",
|
|
34835
34835
|
amount: ee.current.amount,
|
|
34836
34836
|
paymentMode: je || "NETBANKING",
|
|
@@ -34857,8 +34857,8 @@ Fundly Team`;
|
|
|
34857
34857
|
let Pt = "";
|
|
34858
34858
|
if (re)
|
|
34859
34859
|
try {
|
|
34860
|
-
const st = new Date(re),
|
|
34861
|
-
Pt = `${
|
|
34860
|
+
const st = new Date(re), be = String(st.getDate()).padStart(2, "0"), Ke = String(st.getMonth() + 1).padStart(2, "0"), qe = st.getFullYear();
|
|
34861
|
+
Pt = `${be}-${Ke}-${qe}`;
|
|
34862
34862
|
} catch {
|
|
34863
34863
|
}
|
|
34864
34864
|
const Tt = {
|
|
@@ -34882,14 +34882,14 @@ Fundly Team`;
|
|
|
34882
34882
|
ee.current.amount,
|
|
34883
34883
|
ee.current.invoiceCount,
|
|
34884
34884
|
Re,
|
|
34885
|
-
|
|
34885
|
+
Ce,
|
|
34886
34886
|
u || void 0,
|
|
34887
34887
|
m?.trim() || void 0,
|
|
34888
34888
|
Et,
|
|
34889
34889
|
Tt
|
|
34890
34890
|
), Vn({
|
|
34891
34891
|
orderId: ke(),
|
|
34892
|
-
transactionId:
|
|
34892
|
+
transactionId: Ce || "",
|
|
34893
34893
|
status: "failed",
|
|
34894
34894
|
amount: ee.current.amount,
|
|
34895
34895
|
paymentMode: je || "NETBANKING",
|
|
@@ -34915,15 +34915,15 @@ Fundly Team`;
|
|
|
34915
34915
|
return;
|
|
34916
34916
|
}
|
|
34917
34917
|
le.current || (ce.current = setTimeout(() => {
|
|
34918
|
-
|
|
34918
|
+
Ge();
|
|
34919
34919
|
}, 3e3));
|
|
34920
34920
|
} catch {
|
|
34921
34921
|
le.current || (ce.current = setTimeout(() => {
|
|
34922
|
-
|
|
34922
|
+
Ge();
|
|
34923
34923
|
}, 5e3));
|
|
34924
34924
|
}
|
|
34925
34925
|
};
|
|
34926
|
-
|
|
34926
|
+
Ge();
|
|
34927
34927
|
return;
|
|
34928
34928
|
}
|
|
34929
34929
|
if (sessionStorage.getItem(
|
|
@@ -34934,7 +34934,7 @@ Fundly Team`;
|
|
|
34934
34934
|
}
|
|
34935
34935
|
(async () => {
|
|
34936
34936
|
_(!0), le.current = !1, sessionStorage.setItem("fundly_netbanking_payment_initiated", "true");
|
|
34937
|
-
const
|
|
34937
|
+
const Ge = {
|
|
34938
34938
|
paymentMode: "NETBANKING",
|
|
34939
34939
|
paymentDate: (/* @__PURE__ */ new Date()).toISOString(),
|
|
34940
34940
|
paymentType: n,
|
|
@@ -34952,9 +34952,9 @@ Fundly Team`;
|
|
|
34952
34952
|
mobileNumber: L || void 0,
|
|
34953
34953
|
payerMobileNumber: L || void 0
|
|
34954
34954
|
};
|
|
34955
|
-
S && S.trim() !== "" ?
|
|
34955
|
+
S && S.trim() !== "" ? Ge.chemistBusinessId = S : C && C.trim() !== "" && (Ge.leadId = C), n === "INVOICE_COLLECT" ? Ge.paymentInvoice = s : n === "DIRECT_COLLECT" && (Ge.invoiceIds = r);
|
|
34956
34956
|
try {
|
|
34957
|
-
const dt = await gs(
|
|
34957
|
+
const dt = await gs(Ge), { link: Re, transactionId: Ne } = dt.data || dt;
|
|
34958
34958
|
if (Re && Ne) {
|
|
34959
34959
|
const Pe = typeof o == "string" ? parseFloat(o) : Number(o);
|
|
34960
34960
|
ee.current = {
|
|
@@ -34996,8 +34996,8 @@ Fundly Team`;
|
|
|
34996
34996
|
let Tt = "";
|
|
34997
34997
|
if (tt)
|
|
34998
34998
|
try {
|
|
34999
|
-
const
|
|
35000
|
-
Tt = `${
|
|
34999
|
+
const be = new Date(tt), Ke = String(be.getDate()).padStart(2, "0"), qe = String(be.getMonth() + 1).padStart(2, "0"), vt = be.getFullYear();
|
|
35000
|
+
Tt = `${Ke}-${qe}-${vt}`;
|
|
35001
35001
|
} catch {
|
|
35002
35002
|
}
|
|
35003
35003
|
const Ct = {
|
|
@@ -35037,8 +35037,8 @@ Fundly Team`;
|
|
|
35037
35037
|
let Tt = "";
|
|
35038
35038
|
if (tt)
|
|
35039
35039
|
try {
|
|
35040
|
-
const
|
|
35041
|
-
Tt = `${
|
|
35040
|
+
const be = new Date(tt), Ke = String(be.getDate()).padStart(2, "0"), qe = String(be.getMonth() + 1).padStart(2, "0"), vt = be.getFullYear();
|
|
35041
|
+
Tt = `${Ke}-${qe}-${vt}`;
|
|
35042
35042
|
} catch {
|
|
35043
35043
|
}
|
|
35044
35044
|
const Ct = {
|
|
@@ -35334,12 +35334,12 @@ Fundly Team`;
|
|
|
35334
35334
|
chemistName: o,
|
|
35335
35335
|
payerUuid: d,
|
|
35336
35336
|
payerMobileNumber: u
|
|
35337
|
-
} = Xi(), [m, g] = K(null), [w, y] = K(""), [S, C] = K(""), [L, N] = K(!1), [j, z] = K(""), [F, H] = K(""), [Q, V] = K([]), [_, q] = K(!1), [$, se] = K(!1), [de, fe] = K(""), [ue, ce] = K(null), [le, ee] = K(!1), [me, we] = K(!1), [ke, ye] = K("Submit"), [De, Be] = K(!1), [ze, We] = K(""),
|
|
35337
|
+
} = Xi(), [m, g] = K(null), [w, y] = K(""), [S, C] = K(""), [L, N] = K(!1), [j, z] = K(""), [F, H] = K(""), [Q, V] = K([]), [_, q] = K(!1), [$, se] = K(!1), [de, fe] = K(""), [ue, ce] = K(null), [le, ee] = K(!1), [me, we] = K(!1), [ke, ye] = K("Submit"), [De, Be] = K(!1), [ze, We] = K(""), Ce = Bt(null), he = Bt(null), Ee = Bt(null), Ge = Bt(null), dt = () => {
|
|
35338
35338
|
e(), Re();
|
|
35339
35339
|
}, Re = () => {
|
|
35340
35340
|
g(null), y(""), C(""), N(!1), z(""), H(""), V([]), q(!1), fe(""), ce(null), ee(!1), we(!1), ye("Submit"), We(""), Be(!1);
|
|
35341
35341
|
};
|
|
35342
|
-
|
|
35342
|
+
Ve(() => {
|
|
35343
35343
|
l || Re();
|
|
35344
35344
|
}, [l]);
|
|
35345
35345
|
const Ne = xi(async (re) => {
|
|
@@ -35355,9 +35355,9 @@ Fundly Team`;
|
|
|
35355
35355
|
}
|
|
35356
35356
|
}, re.trim() ? 300 : 0);
|
|
35357
35357
|
}, []);
|
|
35358
|
-
|
|
35358
|
+
Ve(() => {
|
|
35359
35359
|
const re = (pe) => {
|
|
35360
|
-
|
|
35360
|
+
Ce.current && !Ce.current.contains(pe.target) && q(!1), he.current && !he.current.contains(pe.target) && N(!1);
|
|
35361
35361
|
};
|
|
35362
35362
|
return document.addEventListener("mousedown", re), () => document.removeEventListener("mousedown", re);
|
|
35363
35363
|
}, []);
|
|
@@ -35503,7 +35503,7 @@ Fundly Team`;
|
|
|
35503
35503
|
/* @__PURE__ */ h(
|
|
35504
35504
|
"input",
|
|
35505
35505
|
{
|
|
35506
|
-
ref:
|
|
35506
|
+
ref: Ge,
|
|
35507
35507
|
type: "file",
|
|
35508
35508
|
accept: "image/*,application/pdf",
|
|
35509
35509
|
hidden: !0,
|
|
@@ -35662,7 +35662,7 @@ Fundly Team`;
|
|
|
35662
35662
|
}
|
|
35663
35663
|
)
|
|
35664
35664
|
] }),
|
|
35665
|
-
/* @__PURE__ */ b("div", { ref:
|
|
35665
|
+
/* @__PURE__ */ b("div", { ref: Ce, style: { position: "relative" }, children: [
|
|
35666
35666
|
/* @__PURE__ */ h(
|
|
35667
35667
|
"label",
|
|
35668
35668
|
{
|
|
@@ -35862,7 +35862,7 @@ Fundly Team`;
|
|
|
35862
35862
|
"div",
|
|
35863
35863
|
{
|
|
35864
35864
|
className: "fp:w-full fp:flex fp:items-center fp:justify-between fp:border-1 fp:border-dashed fp:border-[#cccccc] fp:rounded-lg fp:py-3 fp:px-8 fp:cursor-pointer fp:mt-2",
|
|
35865
|
-
onClick: () =>
|
|
35865
|
+
onClick: () => Ge.current?.click(),
|
|
35866
35866
|
children: [
|
|
35867
35867
|
/* @__PURE__ */ b("div", { className: "fp:flex fp:flex-col fp:items-center", children: [
|
|
35868
35868
|
/* @__PURE__ */ h("span", { className: "fp:text-[#aaa]", children: "Upload Proof (Optional)" }),
|
|
@@ -36093,7 +36093,7 @@ Fundly Team`;
|
|
|
36093
36093
|
), tl = {
|
|
36094
36094
|
PHONE: "+91-9892422528",
|
|
36095
36095
|
EMAIL: "connect@fundly.ai"
|
|
36096
|
-
},
|
|
36096
|
+
}, Pi = {
|
|
36097
36097
|
FUNDLY_PAY: "FUNDLY_PAY",
|
|
36098
36098
|
DYNAMIC_QR: "DYNAMIC_QR",
|
|
36099
36099
|
STATIC_QR: "STATIC_QR",
|
|
@@ -36243,7 +36243,7 @@ Fundly Team`;
|
|
|
36243
36243
|
chemistId: g,
|
|
36244
36244
|
leadId: w
|
|
36245
36245
|
} = Xi(), y = Bt(!1);
|
|
36246
|
-
|
|
36246
|
+
Ve(() => {
|
|
36247
36247
|
const S = (N) => {
|
|
36248
36248
|
if (typeof N.data != "object" || N.data === null || N.source !== window || N.data?.source === "react-devtools-content-script" || N.source !== window || N.data?.source?.includes("react-devtools") || N.origin !== window.origin)
|
|
36249
36249
|
return;
|
|
@@ -36280,7 +36280,7 @@ Fundly Team`;
|
|
|
36280
36280
|
setCreditLimitData: C,
|
|
36281
36281
|
setPayerUuid: L
|
|
36282
36282
|
} = Xi(), [N, j] = K([]), [z, F] = K(null), [H, Q] = K(null), [V, _] = K(null), [q, $] = K(null), [se, de] = K(!0);
|
|
36283
|
-
return
|
|
36283
|
+
return Ve(() => {
|
|
36284
36284
|
l && (async () => {
|
|
36285
36285
|
const ue = {
|
|
36286
36286
|
distributorBusinessId: e,
|
|
@@ -36395,10 +36395,10 @@ const n1 = ({
|
|
|
36395
36395
|
distributorName: Be,
|
|
36396
36396
|
distributorIdnum: ze,
|
|
36397
36397
|
payableValue: We,
|
|
36398
|
-
typeOfApp:
|
|
36398
|
+
typeOfApp: Ce,
|
|
36399
36399
|
transactionId: he,
|
|
36400
36400
|
showResultOnly: Ee,
|
|
36401
|
-
successButtonText:
|
|
36401
|
+
successButtonText: Ge,
|
|
36402
36402
|
failureButtonText: dt,
|
|
36403
36403
|
creditLimitData: Re,
|
|
36404
36404
|
paymentType: Ne,
|
|
@@ -36413,7 +36413,7 @@ const n1 = ({
|
|
|
36413
36413
|
viewId: Ye,
|
|
36414
36414
|
sessionId: tt,
|
|
36415
36415
|
erpId: yt
|
|
36416
|
-
} = Xi(), nt =
|
|
36416
|
+
} = Xi(), nt = Fi(() => ({
|
|
36417
36417
|
type: "collection",
|
|
36418
36418
|
distributorId: ze || "",
|
|
36419
36419
|
chemistId: Oe || void 0,
|
|
@@ -36429,9 +36429,9 @@ const n1 = ({
|
|
|
36429
36429
|
} = e1(), jt = xi(async () => {
|
|
36430
36430
|
try {
|
|
36431
36431
|
await St(), u(null);
|
|
36432
|
-
} catch (
|
|
36433
|
-
const
|
|
36434
|
-
u(
|
|
36432
|
+
} catch (be) {
|
|
36433
|
+
const Ke = be instanceof Error ? be.message : "Authentication failed. Please try again later.";
|
|
36434
|
+
u(Ke);
|
|
36435
36435
|
}
|
|
36436
36436
|
}, [St]);
|
|
36437
36437
|
t1(jt);
|
|
@@ -36443,25 +36443,25 @@ const n1 = ({
|
|
|
36443
36443
|
fundlyPayReason: Pt,
|
|
36444
36444
|
loading: Tt
|
|
36445
36445
|
} = i1(mt);
|
|
36446
|
-
|
|
36446
|
+
Ve(() => {
|
|
36447
36447
|
if (!Ee && !he) {
|
|
36448
|
-
const
|
|
36449
|
-
if ((
|
|
36448
|
+
const be = new URLSearchParams(window.location.search);
|
|
36449
|
+
if ((be.has("orderId") || be.has("transactionId")) && !mt) {
|
|
36450
36450
|
const qe = new URL(window.location.href);
|
|
36451
36451
|
qe.searchParams.delete("orderId"), qe.searchParams.delete("transactionId"), window.history.replaceState({}, "", qe.toString());
|
|
36452
36452
|
}
|
|
36453
36453
|
}
|
|
36454
|
-
}, [Ee, mt, he]),
|
|
36454
|
+
}, [Ee, mt, he]), Ve(() => {
|
|
36455
36455
|
if (d || ft) {
|
|
36456
|
-
const
|
|
36456
|
+
const be = setTimeout(async () => {
|
|
36457
36457
|
await Ut.navigateHome();
|
|
36458
36458
|
}, 1e4);
|
|
36459
|
-
return () => clearTimeout(
|
|
36459
|
+
return () => clearTimeout(be);
|
|
36460
36460
|
}
|
|
36461
|
-
}, [d, ft]),
|
|
36462
|
-
const
|
|
36463
|
-
(
|
|
36464
|
-
}, [mt, Ee, g]),
|
|
36461
|
+
}, [d, ft]), Ve(() => {
|
|
36462
|
+
const be = new URLSearchParams(window.location.search);
|
|
36463
|
+
(be.get("orderId") || be.get("transactionId")) && mt && !Ee && g("UPI");
|
|
36464
|
+
}, [mt, Ee, g]), Ve(() => {
|
|
36465
36465
|
!Ee || !he || !mt || !_ && !q && !L && g("UPI");
|
|
36466
36466
|
}, [
|
|
36467
36467
|
Ee,
|
|
@@ -36471,33 +36471,34 @@ const n1 = ({
|
|
|
36471
36471
|
q,
|
|
36472
36472
|
L,
|
|
36473
36473
|
g
|
|
36474
|
-
]),
|
|
36475
|
-
pe && hn.setUserIdentity(pe);
|
|
36476
|
-
}, [pe]), Ge(() => {
|
|
36474
|
+
]), Ve(() => {
|
|
36477
36475
|
if (Ee || Tt || !mt || De.current || ct.length === 0)
|
|
36478
36476
|
return;
|
|
36479
|
-
|
|
36480
|
-
|
|
36481
|
-
|
|
36482
|
-
|
|
36483
|
-
|
|
36477
|
+
const be = Ce === xn.FUNDLY_MART ? "customer" : Ce === xn.FUNDLY_TRADE ? "internal_user" : Ue && Ue > 0 ? "salesman" : je && je.trim() !== "" ? "guest" : "retailer";
|
|
36478
|
+
if ((be === "customer" || be === "internal_user" || be === "guest") && !pe)
|
|
36479
|
+
return;
|
|
36480
|
+
De.current = !0, pe && hn.setUserIdentity(pe);
|
|
36481
|
+
const qe = () => {
|
|
36482
|
+
const Di = navigator.userAgent.toLowerCase();
|
|
36483
|
+
return Di.includes("android") ? "android" : Di.includes("iphone") || Di.includes("ipad") || Di.includes("ipod") ? "ios" : "web";
|
|
36484
|
+
}, vt = () => Ce === xn.FUNDLY_COLLECT_APP ? "collect_app" : Ce === xn.FUNDLY_CUSTOMER_APP ? "customer_app" : Ce === "FUNDLY_QR_WEB" ? "web" : Ce === xn.FUNDLY_MART ? "fundly_mart" : Ce === xn.FUNDLY_TRADE ? "fundly_trade" : "external_app", Ot = () => Ce === xn.FUNDLY_COLLECT_APP ? "collect_app" : Ce === xn.FUNDLY_CUSTOMER_APP ? "customer_app" : null, Jt = () => Ce === "FUNDLY_QR_WEB" ? "invoice_qr" : Ne === "INVOICE_COLLECT" ? "invoice_pay_page" : Ne === "DIRECT_COLLECT" ? "direct_pay_page" : "invoice_qr", bn = Pe?.map((Di) => Di.invoiceId?.toString() || Di.invoiceNumber?.toString()).filter(Boolean) || null, pn = tt || `sdk_session_${Date.now()}_${Math.random().toString(36).substring(2, 11)}`, Zn = {
|
|
36484
36485
|
scan_id: He || null,
|
|
36485
36486
|
// From consumer app (salesman-app)
|
|
36486
36487
|
view_id: Ye || null,
|
|
36487
36488
|
// From consumer app (salesman-app)
|
|
36488
|
-
invoice_id:
|
|
36489
|
+
invoice_id: bn,
|
|
36489
36490
|
supplier_id: ze?.toString() || "",
|
|
36490
36491
|
erp_id: yt || null,
|
|
36491
36492
|
// From consumer app if available
|
|
36492
36493
|
business_id: Oe || null,
|
|
36493
36494
|
salesman_id: Ue?.toString() || null,
|
|
36494
|
-
user_type:
|
|
36495
|
-
session_id:
|
|
36496
|
-
scan_channel:
|
|
36495
|
+
user_type: be,
|
|
36496
|
+
session_id: pn,
|
|
36497
|
+
scan_channel: Ot(),
|
|
36497
36498
|
scan_origin: Ne === "INVOICE_COLLECT" ? "invoice" : null,
|
|
36498
|
-
device_type:
|
|
36499
|
+
device_type: qe(),
|
|
36499
36500
|
payment_type: Ne === "INVOICE_COLLECT" ? "invoice_pay" : "direct_pay",
|
|
36500
|
-
payment_sdk_entry_point:
|
|
36501
|
+
payment_sdk_entry_point: Jt(),
|
|
36501
36502
|
payment_options: ct,
|
|
36502
36503
|
default_payment_option: null,
|
|
36503
36504
|
// Phase 2
|
|
@@ -36508,18 +36509,19 @@ const n1 = ({
|
|
|
36508
36509
|
error_code: null,
|
|
36509
36510
|
error_description: null,
|
|
36510
36511
|
failure_stage: null,
|
|
36511
|
-
sdk_version: "1.4.0-beta.
|
|
36512
|
-
app_context:
|
|
36513
|
-
app_version: "1.4.0-beta.
|
|
36512
|
+
sdk_version: "1.4.0-beta.6",
|
|
36513
|
+
app_context: vt(),
|
|
36514
|
+
app_version: "1.4.0-beta.6",
|
|
36514
36515
|
mobile_number: re || null,
|
|
36515
36516
|
uuid: pe || null
|
|
36516
36517
|
};
|
|
36517
|
-
hn.trackPaymentSDKLaunched(
|
|
36518
|
+
hn.trackPaymentSDKLaunched(Zn);
|
|
36518
36519
|
}, [
|
|
36519
36520
|
Tt,
|
|
36520
36521
|
mt,
|
|
36521
36522
|
Ee,
|
|
36522
36523
|
ct,
|
|
36524
|
+
pe,
|
|
36523
36525
|
ze,
|
|
36524
36526
|
Oe,
|
|
36525
36527
|
je,
|
|
@@ -36527,7 +36529,7 @@ const n1 = ({
|
|
|
36527
36529
|
We,
|
|
36528
36530
|
Ne,
|
|
36529
36531
|
Pe,
|
|
36530
|
-
|
|
36532
|
+
Ce,
|
|
36531
36533
|
He,
|
|
36532
36534
|
Ye,
|
|
36533
36535
|
tt,
|
|
@@ -36535,16 +36537,16 @@ const n1 = ({
|
|
|
36535
36537
|
]);
|
|
36536
36538
|
const Ct = async () => {
|
|
36537
36539
|
i(!1), await Ut.navigateHome();
|
|
36538
|
-
}, st = (
|
|
36539
|
-
if (!
|
|
36540
|
+
}, st = (be) => {
|
|
36541
|
+
if (!be?.productRules || !Array.isArray(be.productRules))
|
|
36540
36542
|
return {
|
|
36541
36543
|
tenureMappings: [],
|
|
36542
36544
|
repaymentOption: null,
|
|
36543
36545
|
disbursementAccount: null
|
|
36544
36546
|
};
|
|
36545
|
-
const
|
|
36546
|
-
(Ot) => Ot.isInvoiceRequired ===
|
|
36547
|
-
) ||
|
|
36547
|
+
const Ke = Ne === "INVOICE_COLLECT" ? "YES" : "NO", vt = be.productRules.find(
|
|
36548
|
+
(Ot) => Ot.isInvoiceRequired === Ke && Ot.disbursementAccount === "SUPPLIER"
|
|
36549
|
+
) || be.productRules[0];
|
|
36548
36550
|
return {
|
|
36549
36551
|
tenureMappings: vt?.tenureMappings || [],
|
|
36550
36552
|
repaymentOption: vt?.repaymentOption || null,
|
|
@@ -36596,7 +36598,7 @@ const n1 = ({
|
|
|
36596
36598
|
);
|
|
36597
36599
|
},
|
|
36598
36600
|
paymentData: m,
|
|
36599
|
-
buttonText:
|
|
36601
|
+
buttonText: Ge
|
|
36600
36602
|
}
|
|
36601
36603
|
),
|
|
36602
36604
|
/* @__PURE__ */ h(
|
|
@@ -36617,11 +36619,11 @@ const n1 = ({
|
|
|
36617
36619
|
{
|
|
36618
36620
|
open: L,
|
|
36619
36621
|
onClose: () => w(),
|
|
36620
|
-
onPaymentCollected: (
|
|
36621
|
-
y(
|
|
36622
|
+
onPaymentCollected: (be) => {
|
|
36623
|
+
y(be);
|
|
36622
36624
|
},
|
|
36623
|
-
onPaymentFailed: (
|
|
36624
|
-
S(
|
|
36625
|
+
onPaymentFailed: (be) => {
|
|
36626
|
+
S(be);
|
|
36625
36627
|
}
|
|
36626
36628
|
}
|
|
36627
36629
|
)
|
|
@@ -36656,7 +36658,7 @@ const n1 = ({
|
|
|
36656
36658
|
}
|
|
36657
36659
|
)
|
|
36658
36660
|
] }),
|
|
36659
|
-
/* @__PURE__ */ h("div", { className: "fp:flex-1 fp:overflow-y-auto fp:mb-12 fp:mt-2", children:
|
|
36661
|
+
/* @__PURE__ */ h("div", { className: "fp:flex-1 fp:overflow-y-auto fp:mb-12 fp:mt-2", children: Ce === "FUNDLY_CUSTOMER_APP" && !Qe ? /* @__PURE__ */ h("div", { className: "fp:w-full fp:h-full fp:flex fp:items-center fp:justify-center", children: /* @__PURE__ */ b("div", { className: "fp:w-full fp:max-w-md fp:bg-white fp:border fp:border-gray-200 fp:rounded-2xl fp:p-8 fp:text-center fp:shadow-sm", children: [
|
|
36660
36662
|
/* @__PURE__ */ h("div", { className: "fp:w-16 fp:h-16 fp:mx-auto fp:mb-4 fp:bg-gray-100 fp:rounded-full fp:flex fp:items-center fp:justify-center", children: /* @__PURE__ */ h(
|
|
36661
36663
|
"svg",
|
|
36662
36664
|
{
|
|
@@ -36692,12 +36694,12 @@ const n1 = ({
|
|
|
36692
36694
|
] })
|
|
36693
36695
|
] })
|
|
36694
36696
|
] }),
|
|
36695
|
-
(
|
|
36697
|
+
(Ce === "FUNDLY_CUSTOMER_APP" || Ce === "FUNDLY_QR_WEB") && Qe && /* @__PURE__ */ b("div", { className: "fp:w-full fp:mt-2", children: [
|
|
36696
36698
|
/* @__PURE__ */ b(
|
|
36697
36699
|
"label",
|
|
36698
36700
|
{
|
|
36699
36701
|
className: "fp:cursor-pointer fp:select-none fp:text-[#16558B] fp:font-medium fp:text-[12px]",
|
|
36700
|
-
onClick: () => s((
|
|
36702
|
+
onClick: () => s((be) => !be),
|
|
36701
36703
|
children: [
|
|
36702
36704
|
"Bank Details ",
|
|
36703
36705
|
n ? "▲" : "▼"
|
|
@@ -36722,12 +36724,12 @@ const n1 = ({
|
|
|
36722
36724
|
] })
|
|
36723
36725
|
] })
|
|
36724
36726
|
] }),
|
|
36725
|
-
ct.includes(
|
|
36726
|
-
const
|
|
36727
|
+
ct.includes(Pi.FUNDLY_PAY) && (() => {
|
|
36728
|
+
const be = Number(We ?? 0), Ke = Et ?? 1e3, qe = bt ?? null;
|
|
36727
36729
|
let vt = null, Ot = !1;
|
|
36728
|
-
|
|
36730
|
+
be < Ke ? (vt = `Fundly Pay not available below ₹${Ke.toLocaleString(
|
|
36729
36731
|
"en-IN"
|
|
36730
|
-
)} payment.`, Ot = !0) : qe !== null &&
|
|
36732
|
+
)} payment.`, Ot = !0) : qe !== null && be > qe ? (vt = `Max Eligible Amount: ₹${xt(
|
|
36731
36733
|
qe
|
|
36732
36734
|
)}`, Ot = !0) : Pt && (vt = Pt);
|
|
36733
36735
|
let Jt = [], bn = 0;
|
|
@@ -36741,19 +36743,19 @@ const n1 = ({
|
|
|
36741
36743
|
(ai) => ai.maxEligibleAmount || ai.availableLimit || 0
|
|
36742
36744
|
)
|
|
36743
36745
|
)));
|
|
36744
|
-
const pn = Jt.length > 1,
|
|
36746
|
+
const pn = Jt.length > 1, Zn = Jt.length === 1, Di = Jt.length === 0;
|
|
36745
36747
|
return /* @__PURE__ */ b("div", { className: "fp:w-full fp:flex fp:flex-col fp:mt-6", children: [
|
|
36746
36748
|
/* @__PURE__ */ h("h2", { className: "fp:text-[16px] fp:font-semibold", children: "Preferred Payment" }),
|
|
36747
36749
|
/* @__PURE__ */ b("div", { className: "fp:w-full fp:flex fp:flex-col fp:mt-2", children: [
|
|
36748
36750
|
/* @__PURE__ */ b(
|
|
36749
36751
|
"div",
|
|
36750
36752
|
{
|
|
36751
|
-
className: `fp:w-full fp:border fp:border-gray-100 ${Ot ? "fp:bg-[#efefef]" : "fp:bg-white"} ${vt || pn && $ ||
|
|
36753
|
+
className: `fp:w-full fp:border fp:border-gray-100 ${Ot ? "fp:bg-[#efefef]" : "fp:bg-white"} ${vt || pn && $ || Zn ? "fp:rounded-t-xl" : "fp:rounded-xl"} ${Ot ? "" : "fp:cursor-pointer fp:hover:shadow-2xs"} fp:p-4 fp:flex fp:items-center fp:justify-between`,
|
|
36752
36754
|
onClick: () => {
|
|
36753
36755
|
if (!Ot)
|
|
36754
36756
|
if (pn)
|
|
36755
36757
|
se(!$);
|
|
36756
|
-
else if (
|
|
36758
|
+
else if (Zn) {
|
|
36757
36759
|
fe(0), ce(Jt[0].fiCode);
|
|
36758
36760
|
const ai = st(Jt[0]);
|
|
36759
36761
|
ee(ai.tenureMappings), we(ai.repaymentOption), ye(ai.disbursementAccount), g("FUNDLY_PAY");
|
|
@@ -36799,7 +36801,7 @@ const n1 = ({
|
|
|
36799
36801
|
]
|
|
36800
36802
|
}
|
|
36801
36803
|
),
|
|
36802
|
-
!Ot &&
|
|
36804
|
+
!Ot && Zn && /* @__PURE__ */ h("div", { className: "fp:w-full fp:bg-[#E6F7EF] fp:flex fp:p-2 fp:text-[#34A877] fp:rounded-b-xl fp:border-x fp:border-b fp:border-gray-100", children: /* @__PURE__ */ b("label", { className: "fp:text-[10px] fp:font-medium", children: [
|
|
36803
36805
|
"Max Eligible Amount:",
|
|
36804
36806
|
" ",
|
|
36805
36807
|
/* @__PURE__ */ b("span", { className: "fp:font-bold", children: [
|
|
@@ -36819,7 +36821,7 @@ const n1 = ({
|
|
|
36819
36821
|
] }) }),
|
|
36820
36822
|
!Ot && pn && $ && /* @__PURE__ */ b(ei, { children: [
|
|
36821
36823
|
/* @__PURE__ */ h("div", { className: "fp:w-full fp:bg-white fp:border-x fp:border-gray-100 fp:rounded-b-xl fp:px-3 fp:pt-3 fp:pb-2 fp:flex fp:flex-col fp:space-y-2.5", children: Jt.map((ai, Xt) => {
|
|
36822
|
-
const jn = ai.maxEligibleAmount || ai.availableLimit || 0, Ft = jn <
|
|
36824
|
+
const jn = ai.maxEligibleAmount || ai.availableLimit || 0, Ft = jn < be;
|
|
36823
36825
|
return /* @__PURE__ */ h(
|
|
36824
36826
|
"button",
|
|
36825
36827
|
{
|
|
@@ -36897,8 +36899,8 @@ const n1 = ({
|
|
|
36897
36899
|
] })
|
|
36898
36900
|
] }) })
|
|
36899
36901
|
] }),
|
|
36900
|
-
vt &&
|
|
36901
|
-
!vt &&
|
|
36902
|
+
vt && Di && /* @__PURE__ */ h("div", { className: "fp:w-full fp:bg-red-50 fp:flex fp:p-2 fp:text-red-700 fp:rounded-b-xl fp:border-x fp:border-b fp:border-gray-100", children: /* @__PURE__ */ h("label", { className: "fp:text-[11px] fp:ml-2", children: vt }) }),
|
|
36903
|
+
!vt && Di && qe !== null && /* @__PURE__ */ h("div", { className: "fp:w-full fp:bg-green-50 fp:flex fp:p-2 fp:text-green-700 fp:rounded-b-xl fp:border-x fp:border-b fp:border-gray-100", children: /* @__PURE__ */ b("label", { className: "fp:text-[11px] fp:ml-2", children: [
|
|
36902
36904
|
"Max Eligible Amount:",
|
|
36903
36905
|
" ",
|
|
36904
36906
|
/* @__PURE__ */ b("span", { className: "fp:font-medium", children: [
|
|
@@ -36909,7 +36911,7 @@ const n1 = ({
|
|
|
36909
36911
|
] })
|
|
36910
36912
|
] });
|
|
36911
36913
|
})(),
|
|
36912
|
-
ct.includes(
|
|
36914
|
+
ct.includes(Pi.UPI) && /* @__PURE__ */ b("div", { className: "fp:w-full fp:mt-6 fp:flex fp:flex-col fp:space-y-2", children: [
|
|
36913
36915
|
/* @__PURE__ */ b("div", { className: "fp:flex fp:items-center fp:space-x-2", children: [
|
|
36914
36916
|
/* @__PURE__ */ h(
|
|
36915
36917
|
"img",
|
|
@@ -36944,7 +36946,7 @@ const n1 = ({
|
|
|
36944
36946
|
}
|
|
36945
36947
|
)
|
|
36946
36948
|
] }),
|
|
36947
|
-
ct.includes(
|
|
36949
|
+
ct.includes(Pi.NETBANKING) && /* @__PURE__ */ b("div", { className: "fp:w-full fp:mt-6 fp:flex fp:flex-col fp:space-y-2", children: [
|
|
36948
36950
|
/* @__PURE__ */ h("h2", { className: "fp:text-[16px] fp:font-semibold", children: "Netbanking" }),
|
|
36949
36951
|
/* @__PURE__ */ b(
|
|
36950
36952
|
"div",
|
|
@@ -36967,9 +36969,9 @@ const n1 = ({
|
|
|
36967
36969
|
}
|
|
36968
36970
|
)
|
|
36969
36971
|
] }),
|
|
36970
|
-
(ct.includes(
|
|
36972
|
+
(ct.includes(Pi.BANK_TRANSFER) || ct.includes(Pi.DYNAMIC_QR) && !(Ce === xn.FUNDLY_CUSTOMER_APP && ct.includes(Pi.PAYMENT_LINK))) && /* @__PURE__ */ b("div", { className: "fp:w-full fp:mt-6 fp:flex fp:flex-col fp:space-y-2", children: [
|
|
36971
36973
|
/* @__PURE__ */ h("h2", { className: "fp:text-[16px] fp:font-semibold", children: "Online Payment Options" }),
|
|
36972
|
-
ct.includes(
|
|
36974
|
+
ct.includes(Pi.DYNAMIC_QR) && !(Ce === xn.FUNDLY_CUSTOMER_APP && ct.includes(Pi.PAYMENT_LINK)) && /* @__PURE__ */ b(
|
|
36973
36975
|
"div",
|
|
36974
36976
|
{
|
|
36975
36977
|
className: "fp:w-full fp:border fp:border-gray-100 fp:bg-white fp:hover:shadow-2xs fp:cursor-pointer fp:rounded-xl fp:p-4 fp:flex fp:items-center fp:justify-between",
|
|
@@ -36990,7 +36992,7 @@ const n1 = ({
|
|
|
36990
36992
|
]
|
|
36991
36993
|
}
|
|
36992
36994
|
),
|
|
36993
|
-
ct.includes(
|
|
36995
|
+
ct.includes(Pi.PAYMENT_LINK) && (Ce === xn.FUNDLY_COLLECT_APP || Ce === xn.FUNDLY_TRADE) && /* @__PURE__ */ b(
|
|
36994
36996
|
"div",
|
|
36995
36997
|
{
|
|
36996
36998
|
className: "fp:w-full fp:border fp:border-gray-100 fp:bg-white fp:hover:shadow-2xs fp:cursor-pointer fp:rounded-xl fp:p-4 fp:mt-2 fp:flex fp:items-center fp:justify-between",
|
|
@@ -37011,7 +37013,7 @@ const n1 = ({
|
|
|
37011
37013
|
]
|
|
37012
37014
|
}
|
|
37013
37015
|
),
|
|
37014
|
-
ct.includes(
|
|
37016
|
+
ct.includes(Pi.BANK_TRANSFER) && /* @__PURE__ */ b(
|
|
37015
37017
|
"div",
|
|
37016
37018
|
{
|
|
37017
37019
|
className: "fp:w-full fp:border fp:border-gray-100 fp:bg-white fp:hover:shadow-2xs fp:cursor-pointer fp:rounded-xl fp:p-4 fp:mt-2 fp:flex fp:items-center fp:justify-between",
|
|
@@ -37032,9 +37034,9 @@ const n1 = ({
|
|
|
37032
37034
|
}
|
|
37033
37035
|
)
|
|
37034
37036
|
] }),
|
|
37035
|
-
(ct.includes(
|
|
37037
|
+
(ct.includes(Pi.CASH) || ct.includes(Pi.CHEQUE) || ct.includes(Pi.STATIC_QR)) && /* @__PURE__ */ b("div", { className: "fp:w-full fp:mt-6 fp:flex fp:flex-col fp:space-y-2", children: [
|
|
37036
37038
|
/* @__PURE__ */ h("h2", { className: "fp:text-[16px] fp:font-semibold", children: "More Payment Options" }),
|
|
37037
|
-
ct.includes(
|
|
37039
|
+
ct.includes(Pi.STATIC_QR) && /* @__PURE__ */ b(
|
|
37038
37040
|
"div",
|
|
37039
37041
|
{
|
|
37040
37042
|
className: "fp:w-full fp:border fp:border-gray-100 fp:bg-white fp:hover:shadow-2xs fp:cursor-pointer fp:rounded-xl fp:p-4 fp:flex fp:items-center fp:justify-between",
|
|
@@ -37054,7 +37056,7 @@ const n1 = ({
|
|
|
37054
37056
|
]
|
|
37055
37057
|
}
|
|
37056
37058
|
),
|
|
37057
|
-
ct.includes(
|
|
37059
|
+
ct.includes(Pi.CASH) && /* @__PURE__ */ b(
|
|
37058
37060
|
"div",
|
|
37059
37061
|
{
|
|
37060
37062
|
className: "fp:w-full fp:border fp:border-gray-100 fp:bg-white fp:hover:shadow-2xs fp:cursor-pointer fp:rounded-xl fp:p-4 fp:flex fp:items-center fp:justify-between",
|
|
@@ -37074,7 +37076,7 @@ const n1 = ({
|
|
|
37074
37076
|
]
|
|
37075
37077
|
}
|
|
37076
37078
|
),
|
|
37077
|
-
ct.includes(
|
|
37079
|
+
ct.includes(Pi.CHEQUE) && /* @__PURE__ */ b(
|
|
37078
37080
|
"div",
|
|
37079
37081
|
{
|
|
37080
37082
|
className: "fp:w-full fp:bg-white fp:border fp:border-gray-100 fp:hover:shadow-2xs fp:cursor-pointer fp:rounded-xl fp:p-4 fp:mt-2 fp:flex fp:items-center fp:justify-between",
|
|
@@ -37103,8 +37105,8 @@ const n1 = ({
|
|
|
37103
37105
|
onClose: async () => {
|
|
37104
37106
|
w(), await Ut.navigateHome();
|
|
37105
37107
|
},
|
|
37106
|
-
onPaymentCollected: (
|
|
37107
|
-
y(
|
|
37108
|
+
onPaymentCollected: (be) => {
|
|
37109
|
+
y(be);
|
|
37108
37110
|
}
|
|
37109
37111
|
}
|
|
37110
37112
|
),
|
|
@@ -37115,11 +37117,11 @@ const n1 = ({
|
|
|
37115
37117
|
onClose: async () => {
|
|
37116
37118
|
w(), await Ut.navigateHome();
|
|
37117
37119
|
},
|
|
37118
|
-
onPaymentCollected: (
|
|
37119
|
-
y(
|
|
37120
|
+
onPaymentCollected: (be) => {
|
|
37121
|
+
y(be);
|
|
37120
37122
|
},
|
|
37121
|
-
onPaymentFailed: (
|
|
37122
|
-
S(
|
|
37123
|
+
onPaymentFailed: (be) => {
|
|
37124
|
+
S(be);
|
|
37123
37125
|
}
|
|
37124
37126
|
}
|
|
37125
37127
|
),
|
|
@@ -37130,11 +37132,11 @@ const n1 = ({
|
|
|
37130
37132
|
onClose: async () => {
|
|
37131
37133
|
w(), await Ut.navigateHome();
|
|
37132
37134
|
},
|
|
37133
|
-
onPaymentCollected: (
|
|
37134
|
-
y(
|
|
37135
|
+
onPaymentCollected: (be) => {
|
|
37136
|
+
y(be);
|
|
37135
37137
|
},
|
|
37136
|
-
onPaymentFailed: (
|
|
37137
|
-
S(
|
|
37138
|
+
onPaymentFailed: (be) => {
|
|
37139
|
+
S(be);
|
|
37138
37140
|
}
|
|
37139
37141
|
}
|
|
37140
37142
|
),
|
|
@@ -37146,8 +37148,8 @@ const n1 = ({
|
|
|
37146
37148
|
onClose: async () => {
|
|
37147
37149
|
w(), await Ut.navigateHome();
|
|
37148
37150
|
},
|
|
37149
|
-
onPaymentCollected: (
|
|
37150
|
-
y(
|
|
37151
|
+
onPaymentCollected: (be) => {
|
|
37152
|
+
y(be);
|
|
37151
37153
|
}
|
|
37152
37154
|
}
|
|
37153
37155
|
),
|
|
@@ -37159,8 +37161,8 @@ const n1 = ({
|
|
|
37159
37161
|
onClose: async () => {
|
|
37160
37162
|
w(), await Ut.navigateHome();
|
|
37161
37163
|
},
|
|
37162
|
-
onPaymentCollected: (
|
|
37163
|
-
y(
|
|
37164
|
+
onPaymentCollected: (be) => {
|
|
37165
|
+
y(be);
|
|
37164
37166
|
}
|
|
37165
37167
|
}
|
|
37166
37168
|
),
|
|
@@ -37172,8 +37174,8 @@ const n1 = ({
|
|
|
37172
37174
|
onClose: async () => {
|
|
37173
37175
|
w(), await Ut.navigateHome();
|
|
37174
37176
|
},
|
|
37175
|
-
onPaymentCollected: (
|
|
37176
|
-
y(
|
|
37177
|
+
onPaymentCollected: (be) => {
|
|
37178
|
+
y(be);
|
|
37177
37179
|
}
|
|
37178
37180
|
}
|
|
37179
37181
|
),
|
|
@@ -37184,8 +37186,8 @@ const n1 = ({
|
|
|
37184
37186
|
onClose: () => {
|
|
37185
37187
|
w();
|
|
37186
37188
|
},
|
|
37187
|
-
onPaymentCollected: (
|
|
37188
|
-
y(
|
|
37189
|
+
onPaymentCollected: (be) => {
|
|
37190
|
+
y(be);
|
|
37189
37191
|
},
|
|
37190
37192
|
selectedLenderIdx: de,
|
|
37191
37193
|
selectedLenderFiCode: ue,
|
|
@@ -37213,11 +37215,11 @@ const n1 = ({
|
|
|
37213
37215
|
onClose: async () => {
|
|
37214
37216
|
w(), await Ut.navigateHome();
|
|
37215
37217
|
},
|
|
37216
|
-
onPaymentCollected: (
|
|
37217
|
-
y(
|
|
37218
|
+
onPaymentCollected: (be) => {
|
|
37219
|
+
y(be);
|
|
37218
37220
|
},
|
|
37219
|
-
onPaymentFailed: (
|
|
37220
|
-
S(
|
|
37221
|
+
onPaymentFailed: (be) => {
|
|
37222
|
+
S(be);
|
|
37221
37223
|
}
|
|
37222
37224
|
}
|
|
37223
37225
|
),
|
|
@@ -37227,7 +37229,7 @@ const n1 = ({
|
|
|
37227
37229
|
open: _,
|
|
37228
37230
|
onClose: () => w(),
|
|
37229
37231
|
paymentData: m,
|
|
37230
|
-
buttonText:
|
|
37232
|
+
buttonText: Ge
|
|
37231
37233
|
}
|
|
37232
37234
|
),
|
|
37233
37235
|
/* @__PURE__ */ h(
|
|
@@ -37275,7 +37277,7 @@ function s1({ children: l, initialValues: e }) {
|
|
|
37275
37277
|
), [de, fe] = K(
|
|
37276
37278
|
e?.erpId || null
|
|
37277
37279
|
);
|
|
37278
|
-
|
|
37280
|
+
Ve(() => {
|
|
37279
37281
|
const ce = pl(), le = ml();
|
|
37280
37282
|
ce && hn.configure({
|
|
37281
37283
|
enabled: !0,
|
|
@@ -37343,7 +37345,7 @@ function fp({ children: l, initialValues: e }) {
|
|
|
37343
37345
|
), [$, se] = K(
|
|
37344
37346
|
e?.erpId || null
|
|
37345
37347
|
);
|
|
37346
|
-
|
|
37348
|
+
Ve(() => {
|
|
37347
37349
|
const fe = pl(), ue = ml();
|
|
37348
37350
|
fe && hn.configure({
|
|
37349
37351
|
enabled: !0,
|
|
@@ -37422,7 +37424,7 @@ const et = ({ className: l = "" }) => /* @__PURE__ */ h("div", { className: `fp:
|
|
|
37422
37424
|
onApply: i
|
|
37423
37425
|
}) => {
|
|
37424
37426
|
const [n, s] = K(["all"]), [r, o] = K(null), [d, u] = K(null), [m, g] = K(null), [w, y] = K(["all"]);
|
|
37425
|
-
|
|
37427
|
+
Ve(() => {
|
|
37426
37428
|
if (l) {
|
|
37427
37429
|
const F = t.statuses;
|
|
37428
37430
|
s(F && F.length > 0 ? F : ["all"]);
|
|
@@ -37581,7 +37583,7 @@ const et = ({ className: l = "" }) => /* @__PURE__ */ h("div", { className: `fp:
|
|
|
37581
37583
|
onViewTransaction: e
|
|
37582
37584
|
}) => {
|
|
37583
37585
|
const { businessId: t } = r1(), [i, n] = K([]), [s, r] = K(!0), [o, d] = K(null), [u, m] = K(0), [g, w] = K(!1), [y, S] = K(0), [C, L] = K({}), [N, j] = K(!1);
|
|
37584
|
-
|
|
37586
|
+
Ve(() => {
|
|
37585
37587
|
t && z();
|
|
37586
37588
|
}, [t, u, C]);
|
|
37587
37589
|
const z = async () => {
|
|
@@ -37730,14 +37732,14 @@ const et = ({ className: l = "" }) => /* @__PURE__ */ h("div", { className: `fp:
|
|
|
37730
37732
|
transaction: t
|
|
37731
37733
|
}) => {
|
|
37732
37734
|
const i = Ki.useRef(null), [n, s] = K(null), [r, o] = K(!1), [d, u] = K(null), [m, g] = K([]), [w, y] = K(!1), [S, C] = K(!1), [L, N] = K(""), j = async (he) => {
|
|
37733
|
-
const Ee = he.documentIds.flat().map((
|
|
37735
|
+
const Ee = he.documentIds.flat().map((Ge) => Ge.documentId);
|
|
37734
37736
|
if (Ee.length !== 0) {
|
|
37735
37737
|
C(!0), N(he.invoiceNumber), y(!0);
|
|
37736
37738
|
try {
|
|
37737
|
-
const
|
|
37738
|
-
g(Array.isArray(
|
|
37739
|
-
} catch (
|
|
37740
|
-
console.error("Error fetching documents:",
|
|
37739
|
+
const Ge = await XA(Ee);
|
|
37740
|
+
g(Array.isArray(Ge) ? Ge : []);
|
|
37741
|
+
} catch (Ge) {
|
|
37742
|
+
console.error("Error fetching documents:", Ge), g([]);
|
|
37741
37743
|
} finally {
|
|
37742
37744
|
C(!1);
|
|
37743
37745
|
}
|
|
@@ -37745,7 +37747,7 @@ const et = ({ className: l = "" }) => /* @__PURE__ */ h("div", { className: `fp:
|
|
|
37745
37747
|
}, z = () => {
|
|
37746
37748
|
y(!1), g([]), N("");
|
|
37747
37749
|
};
|
|
37748
|
-
|
|
37750
|
+
Ve(() => {
|
|
37749
37751
|
l && t && F(), l || (s(null), u(null));
|
|
37750
37752
|
}, [l, t?.transactionId]);
|
|
37751
37753
|
const F = async () => {
|
|
@@ -37765,8 +37767,8 @@ const et = ({ className: l = "" }) => /* @__PURE__ */ h("div", { className: `fp:
|
|
|
37765
37767
|
};
|
|
37766
37768
|
if (!t) return null;
|
|
37767
37769
|
const H = (he) => {
|
|
37768
|
-
const Ee = new Date(he),
|
|
37769
|
-
return `${
|
|
37770
|
+
const Ee = new Date(he), Ge = Ee.getDate(), dt = Ee.toLocaleDateString("en-IN", { month: "short" }), Re = Ee.getFullYear(), Ne = Ee.getHours(), Pe = Ee.getMinutes().toString().padStart(2, "0"), Oe = Ne >= 12 ? "PM" : "AM", je = Ne % 12 || 12;
|
|
37771
|
+
return `${Ge} ${dt} ${Re}, ${je}:${Pe} ${Oe}`;
|
|
37770
37772
|
}, Q = (he) => {
|
|
37771
37773
|
switch (he.toUpperCase()) {
|
|
37772
37774
|
case "SUCCESS":
|
|
@@ -37813,8 +37815,8 @@ Invoice No: ${ye}`);
|
|
|
37813
37815
|
try {
|
|
37814
37816
|
let Ee = "";
|
|
37815
37817
|
if (i.current) {
|
|
37816
|
-
const { default:
|
|
37817
|
-
Ee = (await
|
|
37818
|
+
const { default: Ge } = await import("./html2canvas.esm-Dmi1NfiH.js");
|
|
37819
|
+
Ee = (await Ge(i.current, {
|
|
37818
37820
|
backgroundColor: "#fff",
|
|
37819
37821
|
scale: 2
|
|
37820
37822
|
})).toDataURL("image/png");
|
|
@@ -37943,16 +37945,16 @@ Invoice No: ${ye}`);
|
|
|
37943
37945
|
Be.length > 0 && /* @__PURE__ */ b("div", { className: "fp:mt-3 fp:bg-white fp:rounded-[12px] fp:px-3 fp:pb-4", children: [
|
|
37944
37946
|
/* @__PURE__ */ h("p", { className: "fp:text-[12px] fp:font-medium fp:text-[#16558B] fp:leading-6 fp:mb-3", children: "Uploaded Invoices" }),
|
|
37945
37947
|
/* @__PURE__ */ h("div", { className: "fp:overflow-y-auto", style: { maxHeight: "133px" }, children: /* @__PURE__ */ h("div", { className: "fp:flex fp:flex-col fp:gap-3", children: Be.map((he, Ee) => {
|
|
37946
|
-
const
|
|
37948
|
+
const Ge = he.documentIds.flat().length;
|
|
37947
37949
|
return /* @__PURE__ */ b("div", { className: "fp:flex fp:flex-col fp:gap-[10px]", children: [
|
|
37948
37950
|
Ee > 0 && /* @__PURE__ */ h("div", { style: { borderTop: "0.5px dashed #D0D0D0" } }),
|
|
37949
37951
|
/* @__PURE__ */ b("div", { className: "fp:flex fp:items-center fp:justify-between", children: [
|
|
37950
37952
|
/* @__PURE__ */ b("div", { className: "fp:flex fp:flex-col fp:gap-[6px]", children: [
|
|
37951
37953
|
/* @__PURE__ */ h("div", { className: "fp:flex fp:items-center fp:gap-[3px]", children: /* @__PURE__ */ h("span", { className: "fp:text-[10px] fp:font-medium fp:leading-[12px] fp:text-[#222222] fp:uppercase", children: he.invoiceNumber }) }),
|
|
37952
|
-
|
|
37953
|
-
|
|
37954
|
+
Ge > 0 && /* @__PURE__ */ b("span", { className: "fp:text-[10px] fp:font-normal fp:leading-normal fp:text-[#6D6D6D]", children: [
|
|
37955
|
+
Ge,
|
|
37954
37956
|
" Page",
|
|
37955
|
-
|
|
37957
|
+
Ge !== 1 ? "s" : ""
|
|
37956
37958
|
] })
|
|
37957
37959
|
] }),
|
|
37958
37960
|
/* @__PURE__ */ h(
|
|
@@ -38115,7 +38117,7 @@ Invoice No: ${ye}`);
|
|
|
38115
38117
|
onNavigateToTransactions: t
|
|
38116
38118
|
}) => {
|
|
38117
38119
|
const { businessId: i, setLenderList: n } = Zo(), [s, r] = K([]), [o, d] = K(!0), [u, m] = K(null), g = s.reduce((N, j) => N + j.creditLimit, 0), w = s.reduce((N, j) => N + j.outstandingAmount, 0), y = g - w, S = g > 0 ? y / g * 100 : 0;
|
|
38118
|
-
|
|
38120
|
+
Ve(() => {
|
|
38119
38121
|
i && C();
|
|
38120
38122
|
}, [i]);
|
|
38121
38123
|
const C = async () => {
|
|
@@ -38288,7 +38290,7 @@ const Xf = () => ul() === "production" ? "production" : "sandbox", A1 = () => gr
|
|
|
38288
38290
|
onViewLoanDetails: t
|
|
38289
38291
|
}) => {
|
|
38290
38292
|
const { businessId: i, selectedLender: n, setLoanList: s } = Zo(), [r, o] = K([]), [d, u] = K(/* @__PURE__ */ new Set()), [m, g] = K(!0), [w, y] = K(null), [S, C] = K(""), [L, N] = K(!1), [j, z] = K(null);
|
|
38291
|
-
|
|
38293
|
+
Ve(() => {
|
|
38292
38294
|
i && n && F();
|
|
38293
38295
|
}, [i, n]);
|
|
38294
38296
|
const F = async () => {
|
|
@@ -38469,7 +38471,7 @@ const Xf = () => ul() === "production" ? "production" : "sandbox", A1 = () => gr
|
|
|
38469
38471
|
onNavigateBack: e
|
|
38470
38472
|
}) => {
|
|
38471
38473
|
const { businessId: t } = Zo(), [i, n] = K(!0), [s, r] = K(!1), [o, d] = K([]), [u, m] = K(null);
|
|
38472
|
-
|
|
38474
|
+
Ve(() => {
|
|
38473
38475
|
(async () => {
|
|
38474
38476
|
n(!0), await Promise.allSettled([
|
|
38475
38477
|
KA(l.loanId).then(m).catch(() => m(null)),
|
|
@@ -38752,10 +38754,10 @@ const Xf = () => ul() === "production" ? "production" : "sandbox", A1 = () => gr
|
|
|
38752
38754
|
showBankTransferDrawer: C,
|
|
38753
38755
|
showSuccessDrawer: L,
|
|
38754
38756
|
showFailureDrawer: N
|
|
38755
|
-
} = cp(), j =
|
|
38757
|
+
} = cp(), j = Fi(
|
|
38756
38758
|
() => l.reduce((se, de) => se + de.outstandingAmount, 0),
|
|
38757
38759
|
[l]
|
|
38758
|
-
), z = n ?? j * 2, F = i ?? z - j, H = z > 0 ? F / z * 100 : 0, Q =
|
|
38760
|
+
), z = n ?? j * 2, F = i ?? z - j, H = z > 0 ? F / z * 100 : 0, Q = Fi(() => {
|
|
38759
38761
|
const se = /* @__PURE__ */ new Map();
|
|
38760
38762
|
for (const de of l)
|
|
38761
38763
|
if (se.has(de.lenderId)) {
|
|
@@ -38769,7 +38771,7 @@ const Xf = () => ul() === "production" ? "production" : "sandbox", A1 = () => gr
|
|
|
38769
38771
|
earliestDueDate: de.dueDate
|
|
38770
38772
|
});
|
|
38771
38773
|
return Array.from(se.values());
|
|
38772
|
-
}, [l]), V =
|
|
38774
|
+
}, [l]), V = Fi(
|
|
38773
38775
|
() => ({
|
|
38774
38776
|
type: "repayment",
|
|
38775
38777
|
businessId: r || "",
|
|
@@ -38968,7 +38970,7 @@ const Xf = () => ul() === "production" ? "production" : "sandbox", A1 = () => gr
|
|
|
38968
38970
|
onPaymentComplete: t
|
|
38969
38971
|
}) => {
|
|
38970
38972
|
const [i, n] = K("loading"), [s, r] = K(0), [o, d] = K(null), [u, m] = K(null), g = Bt(0), w = Bt(null);
|
|
38971
|
-
|
|
38973
|
+
Ve(() => (y(), () => {
|
|
38972
38974
|
w.current && clearTimeout(w.current);
|
|
38973
38975
|
}), [l]);
|
|
38974
38976
|
const y = async () => {
|
|
@@ -39043,7 +39045,7 @@ const Xf = () => ul() === "production" ? "production" : "sandbox", A1 = () => gr
|
|
|
39043
39045
|
environment: t
|
|
39044
39046
|
}) => {
|
|
39045
39047
|
const { setSelectedLender: i, setSelectedLoans: n, businessId: s } = Zo(), [r, o] = K("lenderList"), [d, u] = K([]), [m, g] = K(null), [w, y] = K(null);
|
|
39046
|
-
|
|
39048
|
+
Ve(() => {
|
|
39047
39049
|
const V = new URLSearchParams(window.location.search), _ = V.get("order_id") || V.get("orderId") || V.get("cf_order_id"), q = _ || sessionStorage.getItem("fundly_repayment_order_id");
|
|
39048
39050
|
_ && q && (sessionStorage.removeItem("fundly_repayment_order_id"), y(q), o("result"));
|
|
39049
39051
|
}, []);
|