@fundly.ai/payment-sdk 1.4.0-beta.4 → 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 +402 -398
- package/dist/screens/collection/paymentOptionPage.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ 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 Ve, createContext as Ro, useState as K, useMemo 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 }) => {
|
|
@@ -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
|
}
|
|
@@ -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;
|
|
@@ -9716,7 +9716,7 @@ class eA {
|
|
|
9716
9716
|
transactionDate: e.transactionDate || "",
|
|
9717
9717
|
transactionDateFormatted: e.transactionDateFormatted || "",
|
|
9718
9718
|
UserType: "Salesman"
|
|
9719
|
-
}), e.uuid &&
|
|
9719
|
+
}), e.uuid && this.trackEventViaAPI(
|
|
9720
9720
|
e.uuid,
|
|
9721
9721
|
"Payment_Initiated",
|
|
9722
9722
|
{
|
|
@@ -9892,7 +9892,7 @@ class eA {
|
|
|
9892
9892
|
distributorName: e.distributorName || "",
|
|
9893
9893
|
partyCode: e.partyCode || "",
|
|
9894
9894
|
UserType: "Salesman"
|
|
9895
|
-
}), e.uuid &&
|
|
9895
|
+
}), e.uuid && this.trackEventViaAPI(
|
|
9896
9896
|
e.uuid,
|
|
9897
9897
|
"Payment_Link_Generated",
|
|
9898
9898
|
{
|
|
@@ -9964,7 +9964,7 @@ class eA {
|
|
|
9964
9964
|
distributorName: e.distributorName || "",
|
|
9965
9965
|
partyCode: e.partyCode || "",
|
|
9966
9966
|
UserType: "Salesman"
|
|
9967
|
-
}), e.uuid &&
|
|
9967
|
+
}), e.uuid && this.trackEventViaAPI(
|
|
9968
9968
|
e.uuid,
|
|
9969
9969
|
"Payment_QR_Generated",
|
|
9970
9970
|
{
|
|
@@ -10040,7 +10040,7 @@ class eA {
|
|
|
10040
10040
|
partyCode: e.partyCode || "",
|
|
10041
10041
|
upiTxnRefNo: e.upiTxnRefNo || "",
|
|
10042
10042
|
UserType: "Salesman"
|
|
10043
|
-
}), e.uuid &&
|
|
10043
|
+
}), e.uuid && this.trackEventViaAPI(
|
|
10044
10044
|
e.uuid,
|
|
10045
10045
|
"Payment_Success",
|
|
10046
10046
|
{
|
|
@@ -10119,7 +10119,7 @@ class eA {
|
|
|
10119
10119
|
partyCode: e.partyCode || "",
|
|
10120
10120
|
upiTxnRefNo: e.upiTxnRefNo || "",
|
|
10121
10121
|
UserType: "Salesman"
|
|
10122
|
-
}), e.uuid &&
|
|
10122
|
+
}), e.uuid && this.trackEventViaAPI(
|
|
10123
10123
|
e.uuid,
|
|
10124
10124
|
"Payment_Failed",
|
|
10125
10125
|
{
|
|
@@ -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,7 +10744,7 @@ 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
10749
|
), [Ee, Ge] = K(
|
|
10750
10750
|
e?.showResultOnly || !1
|
|
@@ -10853,7 +10853,7 @@ 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
10859
|
setShowResultOnly: Ge,
|
|
@@ -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 () => {
|
|
@@ -13412,7 +13412,7 @@ const au = ({
|
|
|
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
|
);
|
|
@@ -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,8 +20181,8 @@ 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 <=
|
|
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
20186
|
for (let Ge = 0; Ge <= he; Ge++)
|
|
20187
20187
|
We.drawImage(we, De * Ee, Be * Ge, De, Be, 0, 0, De, Be);
|
|
20188
20188
|
return {
|
|
@@ -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({
|
|
@@ -23188,7 +23188,7 @@ function Zc(l = {}) {
|
|
|
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
|
|
@@ -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,7 +31736,7 @@ 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" });
|
|
@@ -31783,8 +31783,8 @@ 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" });
|
|
@@ -31804,7 +31804,7 @@ const Mw = zg(function({ children: e, className: t, error: i = "Failed to load P
|
|
|
31804
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();
|
|
@@ -31816,7 +31816,7 @@ const Mw = zg(function({ children: e, className: t, error: i = "Failed to load P
|
|
|
31816
31816
|
ee.current[Pe] = Oe;
|
|
31817
31817
|
}, []), Ee = xi((Pe) => {
|
|
31818
31818
|
delete ee.current[Pe];
|
|
31819
|
-
}, []), Ge =
|
|
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]
|
|
@@ -31879,12 +31879,12 @@ 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" });
|
|
@@ -31912,9 +31912,9 @@ 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 _ =
|
|
31917
|
+
const _ = Fi(() => m.getViewport({ scale: S, rotation: y }), [m, y, S]);
|
|
31918
31918
|
return Ve(function() {
|
|
31919
31919
|
if (!g || !m || !s || !N)
|
|
31920
31920
|
return;
|
|
@@ -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,7 +32084,7 @@ 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
32089
|
return Ve(function() {
|
|
32090
32090
|
n({ type: "RESET" });
|
|
@@ -32118,9 +32118,9 @@ 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 =
|
|
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
32124
|
Ve(function() {
|
|
32125
32125
|
if (!d)
|
|
32126
32126
|
return;
|
|
@@ -32209,12 +32209,12 @@ 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" });
|
|
@@ -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,19 +32299,19 @@ 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,
|
|
32314
|
+
}, [S, Ne, re, Ce, Ee]);
|
|
32315
32315
|
Ve(function() {
|
|
32316
32316
|
return () => {
|
|
32317
32317
|
Vs(je) && n && he && he(je);
|
|
@@ -32330,7 +32330,7 @@ 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" });
|
|
@@ -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,7 +32407,7 @@ function Qw(l) {
|
|
|
32407
32407
|
ze,
|
|
32408
32408
|
re,
|
|
32409
32409
|
pe
|
|
32410
|
-
]), yt =
|
|
32410
|
+
]), yt = Fi(
|
|
32411
32411
|
() => Vu(Ge, () => Ne && (pe ? jc(Ne, pe) : void 0)),
|
|
32412
32412
|
// biome-ignore lint/correctness/useExhaustiveDependencies: FIXME
|
|
32413
32413
|
[Ge, Ne, pe]
|
|
@@ -32507,7 +32507,7 @@ const Ww = ({
|
|
|
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, {
|
|
@@ -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);
|
|
@@ -32676,19 +32676,19 @@ const Ww = ({
|
|
|
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
32684
|
Ve(() => {
|
|
32685
|
-
if (
|
|
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;
|
|
@@ -32744,9 +32744,9 @@ 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();
|
|
@@ -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(
|
|
@@ -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
|
)
|
|
@@ -34555,22 +34555,22 @@ 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 Ge = z ||
|
|
34573
|
+
const Ge = z || Ce;
|
|
34574
34574
|
if (!Ge) {
|
|
34575
34575
|
de("Transaction ID not found. Unable to fetch payment status.");
|
|
34576
34576
|
return;
|
|
@@ -34618,8 +34618,8 @@ Fundly Team`;
|
|
|
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 = {
|
|
@@ -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 = {
|
|
@@ -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
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",
|
|
@@ -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,7 +35334,7 @@ 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);
|
|
@@ -35357,7 +35357,7 @@ Fundly Team`;
|
|
|
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
|
}, []);
|
|
@@ -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
|
{
|
|
@@ -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",
|
|
@@ -36395,7 +36395,7 @@ 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
36401
|
successButtonText: Ge,
|
|
@@ -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);
|
|
@@ -36445,22 +36445,22 @@ const n1 = ({
|
|
|
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
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
36461
|
}, [d, ft]), Ve(() => {
|
|
36462
|
-
const
|
|
36463
|
-
(
|
|
36462
|
+
const be = new URLSearchParams(window.location.search);
|
|
36463
|
+
(be.get("orderId") || be.get("transactionId")) && mt && !Ee && g("UPI");
|
|
36464
36464
|
}, [mt, Ee, g]), Ve(() => {
|
|
36465
36465
|
!Ee || !he || !mt || !_ && !q && !L && g("UPI");
|
|
36466
36466
|
}, [
|
|
@@ -36474,28 +36474,31 @@ const n1 = ({
|
|
|
36474
36474
|
]), Ve(() => {
|
|
36475
36475
|
if (Ee || Tt || !mt || De.current || ct.length === 0)
|
|
36476
36476
|
return;
|
|
36477
|
-
|
|
36478
|
-
|
|
36479
|
-
|
|
36480
|
-
|
|
36481
|
-
|
|
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 = {
|
|
36482
36485
|
scan_id: He || null,
|
|
36483
36486
|
// From consumer app (salesman-app)
|
|
36484
36487
|
view_id: Ye || null,
|
|
36485
36488
|
// From consumer app (salesman-app)
|
|
36486
|
-
invoice_id:
|
|
36489
|
+
invoice_id: bn,
|
|
36487
36490
|
supplier_id: ze?.toString() || "",
|
|
36488
36491
|
erp_id: yt || null,
|
|
36489
36492
|
// From consumer app if available
|
|
36490
36493
|
business_id: Oe || null,
|
|
36491
36494
|
salesman_id: Ue?.toString() || null,
|
|
36492
|
-
user_type:
|
|
36493
|
-
session_id:
|
|
36494
|
-
scan_channel:
|
|
36495
|
+
user_type: be,
|
|
36496
|
+
session_id: pn,
|
|
36497
|
+
scan_channel: Ot(),
|
|
36495
36498
|
scan_origin: Ne === "INVOICE_COLLECT" ? "invoice" : null,
|
|
36496
|
-
device_type:
|
|
36499
|
+
device_type: qe(),
|
|
36497
36500
|
payment_type: Ne === "INVOICE_COLLECT" ? "invoice_pay" : "direct_pay",
|
|
36498
|
-
payment_sdk_entry_point:
|
|
36501
|
+
payment_sdk_entry_point: Jt(),
|
|
36499
36502
|
payment_options: ct,
|
|
36500
36503
|
default_payment_option: null,
|
|
36501
36504
|
// Phase 2
|
|
@@ -36506,18 +36509,19 @@ const n1 = ({
|
|
|
36506
36509
|
error_code: null,
|
|
36507
36510
|
error_description: null,
|
|
36508
36511
|
failure_stage: null,
|
|
36509
|
-
sdk_version: "1.4.0-beta.
|
|
36510
|
-
app_context:
|
|
36511
|
-
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",
|
|
36512
36515
|
mobile_number: re || null,
|
|
36513
36516
|
uuid: pe || null
|
|
36514
36517
|
};
|
|
36515
|
-
|
|
36518
|
+
hn.trackPaymentSDKLaunched(Zn);
|
|
36516
36519
|
}, [
|
|
36517
36520
|
Tt,
|
|
36518
36521
|
mt,
|
|
36519
36522
|
Ee,
|
|
36520
36523
|
ct,
|
|
36524
|
+
pe,
|
|
36521
36525
|
ze,
|
|
36522
36526
|
Oe,
|
|
36523
36527
|
je,
|
|
@@ -36525,7 +36529,7 @@ const n1 = ({
|
|
|
36525
36529
|
We,
|
|
36526
36530
|
Ne,
|
|
36527
36531
|
Pe,
|
|
36528
|
-
|
|
36532
|
+
Ce,
|
|
36529
36533
|
He,
|
|
36530
36534
|
Ye,
|
|
36531
36535
|
tt,
|
|
@@ -36533,16 +36537,16 @@ const n1 = ({
|
|
|
36533
36537
|
]);
|
|
36534
36538
|
const Ct = async () => {
|
|
36535
36539
|
i(!1), await Ut.navigateHome();
|
|
36536
|
-
}, st = (
|
|
36537
|
-
if (!
|
|
36540
|
+
}, st = (be) => {
|
|
36541
|
+
if (!be?.productRules || !Array.isArray(be.productRules))
|
|
36538
36542
|
return {
|
|
36539
36543
|
tenureMappings: [],
|
|
36540
36544
|
repaymentOption: null,
|
|
36541
36545
|
disbursementAccount: null
|
|
36542
36546
|
};
|
|
36543
|
-
const
|
|
36544
|
-
(Ot) => Ot.isInvoiceRequired ===
|
|
36545
|
-
) ||
|
|
36547
|
+
const Ke = Ne === "INVOICE_COLLECT" ? "YES" : "NO", vt = be.productRules.find(
|
|
36548
|
+
(Ot) => Ot.isInvoiceRequired === Ke && Ot.disbursementAccount === "SUPPLIER"
|
|
36549
|
+
) || be.productRules[0];
|
|
36546
36550
|
return {
|
|
36547
36551
|
tenureMappings: vt?.tenureMappings || [],
|
|
36548
36552
|
repaymentOption: vt?.repaymentOption || null,
|
|
@@ -36615,11 +36619,11 @@ const n1 = ({
|
|
|
36615
36619
|
{
|
|
36616
36620
|
open: L,
|
|
36617
36621
|
onClose: () => w(),
|
|
36618
|
-
onPaymentCollected: (
|
|
36619
|
-
y(
|
|
36622
|
+
onPaymentCollected: (be) => {
|
|
36623
|
+
y(be);
|
|
36620
36624
|
},
|
|
36621
|
-
onPaymentFailed: (
|
|
36622
|
-
S(
|
|
36625
|
+
onPaymentFailed: (be) => {
|
|
36626
|
+
S(be);
|
|
36623
36627
|
}
|
|
36624
36628
|
}
|
|
36625
36629
|
)
|
|
@@ -36654,7 +36658,7 @@ const n1 = ({
|
|
|
36654
36658
|
}
|
|
36655
36659
|
)
|
|
36656
36660
|
] }),
|
|
36657
|
-
/* @__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: [
|
|
36658
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(
|
|
36659
36663
|
"svg",
|
|
36660
36664
|
{
|
|
@@ -36690,12 +36694,12 @@ const n1 = ({
|
|
|
36690
36694
|
] })
|
|
36691
36695
|
] })
|
|
36692
36696
|
] }),
|
|
36693
|
-
(
|
|
36697
|
+
(Ce === "FUNDLY_CUSTOMER_APP" || Ce === "FUNDLY_QR_WEB") && Qe && /* @__PURE__ */ b("div", { className: "fp:w-full fp:mt-2", children: [
|
|
36694
36698
|
/* @__PURE__ */ b(
|
|
36695
36699
|
"label",
|
|
36696
36700
|
{
|
|
36697
36701
|
className: "fp:cursor-pointer fp:select-none fp:text-[#16558B] fp:font-medium fp:text-[12px]",
|
|
36698
|
-
onClick: () => s((
|
|
36702
|
+
onClick: () => s((be) => !be),
|
|
36699
36703
|
children: [
|
|
36700
36704
|
"Bank Details ",
|
|
36701
36705
|
n ? "▲" : "▼"
|
|
@@ -36720,12 +36724,12 @@ const n1 = ({
|
|
|
36720
36724
|
] })
|
|
36721
36725
|
] })
|
|
36722
36726
|
] }),
|
|
36723
|
-
ct.includes(
|
|
36724
|
-
const
|
|
36727
|
+
ct.includes(Pi.FUNDLY_PAY) && (() => {
|
|
36728
|
+
const be = Number(We ?? 0), Ke = Et ?? 1e3, qe = bt ?? null;
|
|
36725
36729
|
let vt = null, Ot = !1;
|
|
36726
|
-
|
|
36730
|
+
be < Ke ? (vt = `Fundly Pay not available below ₹${Ke.toLocaleString(
|
|
36727
36731
|
"en-IN"
|
|
36728
|
-
)} payment.`, Ot = !0) : qe !== null &&
|
|
36732
|
+
)} payment.`, Ot = !0) : qe !== null && be > qe ? (vt = `Max Eligible Amount: ₹${xt(
|
|
36729
36733
|
qe
|
|
36730
36734
|
)}`, Ot = !0) : Pt && (vt = Pt);
|
|
36731
36735
|
let Jt = [], bn = 0;
|
|
@@ -36739,19 +36743,19 @@ const n1 = ({
|
|
|
36739
36743
|
(ai) => ai.maxEligibleAmount || ai.availableLimit || 0
|
|
36740
36744
|
)
|
|
36741
36745
|
)));
|
|
36742
|
-
const pn = Jt.length > 1,
|
|
36746
|
+
const pn = Jt.length > 1, Zn = Jt.length === 1, Di = Jt.length === 0;
|
|
36743
36747
|
return /* @__PURE__ */ b("div", { className: "fp:w-full fp:flex fp:flex-col fp:mt-6", children: [
|
|
36744
36748
|
/* @__PURE__ */ h("h2", { className: "fp:text-[16px] fp:font-semibold", children: "Preferred Payment" }),
|
|
36745
36749
|
/* @__PURE__ */ b("div", { className: "fp:w-full fp:flex fp:flex-col fp:mt-2", children: [
|
|
36746
36750
|
/* @__PURE__ */ b(
|
|
36747
36751
|
"div",
|
|
36748
36752
|
{
|
|
36749
|
-
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`,
|
|
36750
36754
|
onClick: () => {
|
|
36751
36755
|
if (!Ot)
|
|
36752
36756
|
if (pn)
|
|
36753
36757
|
se(!$);
|
|
36754
|
-
else if (
|
|
36758
|
+
else if (Zn) {
|
|
36755
36759
|
fe(0), ce(Jt[0].fiCode);
|
|
36756
36760
|
const ai = st(Jt[0]);
|
|
36757
36761
|
ee(ai.tenureMappings), we(ai.repaymentOption), ye(ai.disbursementAccount), g("FUNDLY_PAY");
|
|
@@ -36797,7 +36801,7 @@ const n1 = ({
|
|
|
36797
36801
|
]
|
|
36798
36802
|
}
|
|
36799
36803
|
),
|
|
36800
|
-
!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: [
|
|
36801
36805
|
"Max Eligible Amount:",
|
|
36802
36806
|
" ",
|
|
36803
36807
|
/* @__PURE__ */ b("span", { className: "fp:font-bold", children: [
|
|
@@ -36817,7 +36821,7 @@ const n1 = ({
|
|
|
36817
36821
|
] }) }),
|
|
36818
36822
|
!Ot && pn && $ && /* @__PURE__ */ b(ei, { children: [
|
|
36819
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) => {
|
|
36820
|
-
const jn = ai.maxEligibleAmount || ai.availableLimit || 0, Ft = jn <
|
|
36824
|
+
const jn = ai.maxEligibleAmount || ai.availableLimit || 0, Ft = jn < be;
|
|
36821
36825
|
return /* @__PURE__ */ h(
|
|
36822
36826
|
"button",
|
|
36823
36827
|
{
|
|
@@ -36895,8 +36899,8 @@ const n1 = ({
|
|
|
36895
36899
|
] })
|
|
36896
36900
|
] }) })
|
|
36897
36901
|
] }),
|
|
36898
|
-
vt &&
|
|
36899
|
-
!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: [
|
|
36900
36904
|
"Max Eligible Amount:",
|
|
36901
36905
|
" ",
|
|
36902
36906
|
/* @__PURE__ */ b("span", { className: "fp:font-medium", children: [
|
|
@@ -36907,7 +36911,7 @@ const n1 = ({
|
|
|
36907
36911
|
] })
|
|
36908
36912
|
] });
|
|
36909
36913
|
})(),
|
|
36910
|
-
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: [
|
|
36911
36915
|
/* @__PURE__ */ b("div", { className: "fp:flex fp:items-center fp:space-x-2", children: [
|
|
36912
36916
|
/* @__PURE__ */ h(
|
|
36913
36917
|
"img",
|
|
@@ -36942,7 +36946,7 @@ const n1 = ({
|
|
|
36942
36946
|
}
|
|
36943
36947
|
)
|
|
36944
36948
|
] }),
|
|
36945
|
-
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: [
|
|
36946
36950
|
/* @__PURE__ */ h("h2", { className: "fp:text-[16px] fp:font-semibold", children: "Netbanking" }),
|
|
36947
36951
|
/* @__PURE__ */ b(
|
|
36948
36952
|
"div",
|
|
@@ -36965,9 +36969,9 @@ const n1 = ({
|
|
|
36965
36969
|
}
|
|
36966
36970
|
)
|
|
36967
36971
|
] }),
|
|
36968
|
-
(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: [
|
|
36969
36973
|
/* @__PURE__ */ h("h2", { className: "fp:text-[16px] fp:font-semibold", children: "Online Payment Options" }),
|
|
36970
|
-
ct.includes(
|
|
36974
|
+
ct.includes(Pi.DYNAMIC_QR) && !(Ce === xn.FUNDLY_CUSTOMER_APP && ct.includes(Pi.PAYMENT_LINK)) && /* @__PURE__ */ b(
|
|
36971
36975
|
"div",
|
|
36972
36976
|
{
|
|
36973
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",
|
|
@@ -36988,7 +36992,7 @@ const n1 = ({
|
|
|
36988
36992
|
]
|
|
36989
36993
|
}
|
|
36990
36994
|
),
|
|
36991
|
-
ct.includes(
|
|
36995
|
+
ct.includes(Pi.PAYMENT_LINK) && (Ce === xn.FUNDLY_COLLECT_APP || Ce === xn.FUNDLY_TRADE) && /* @__PURE__ */ b(
|
|
36992
36996
|
"div",
|
|
36993
36997
|
{
|
|
36994
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",
|
|
@@ -37009,7 +37013,7 @@ const n1 = ({
|
|
|
37009
37013
|
]
|
|
37010
37014
|
}
|
|
37011
37015
|
),
|
|
37012
|
-
ct.includes(
|
|
37016
|
+
ct.includes(Pi.BANK_TRANSFER) && /* @__PURE__ */ b(
|
|
37013
37017
|
"div",
|
|
37014
37018
|
{
|
|
37015
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",
|
|
@@ -37030,9 +37034,9 @@ const n1 = ({
|
|
|
37030
37034
|
}
|
|
37031
37035
|
)
|
|
37032
37036
|
] }),
|
|
37033
|
-
(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: [
|
|
37034
37038
|
/* @__PURE__ */ h("h2", { className: "fp:text-[16px] fp:font-semibold", children: "More Payment Options" }),
|
|
37035
|
-
ct.includes(
|
|
37039
|
+
ct.includes(Pi.STATIC_QR) && /* @__PURE__ */ b(
|
|
37036
37040
|
"div",
|
|
37037
37041
|
{
|
|
37038
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",
|
|
@@ -37052,7 +37056,7 @@ const n1 = ({
|
|
|
37052
37056
|
]
|
|
37053
37057
|
}
|
|
37054
37058
|
),
|
|
37055
|
-
ct.includes(
|
|
37059
|
+
ct.includes(Pi.CASH) && /* @__PURE__ */ b(
|
|
37056
37060
|
"div",
|
|
37057
37061
|
{
|
|
37058
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",
|
|
@@ -37072,7 +37076,7 @@ const n1 = ({
|
|
|
37072
37076
|
]
|
|
37073
37077
|
}
|
|
37074
37078
|
),
|
|
37075
|
-
ct.includes(
|
|
37079
|
+
ct.includes(Pi.CHEQUE) && /* @__PURE__ */ b(
|
|
37076
37080
|
"div",
|
|
37077
37081
|
{
|
|
37078
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",
|
|
@@ -37101,8 +37105,8 @@ const n1 = ({
|
|
|
37101
37105
|
onClose: async () => {
|
|
37102
37106
|
w(), await Ut.navigateHome();
|
|
37103
37107
|
},
|
|
37104
|
-
onPaymentCollected: (
|
|
37105
|
-
y(
|
|
37108
|
+
onPaymentCollected: (be) => {
|
|
37109
|
+
y(be);
|
|
37106
37110
|
}
|
|
37107
37111
|
}
|
|
37108
37112
|
),
|
|
@@ -37113,11 +37117,11 @@ const n1 = ({
|
|
|
37113
37117
|
onClose: async () => {
|
|
37114
37118
|
w(), await Ut.navigateHome();
|
|
37115
37119
|
},
|
|
37116
|
-
onPaymentCollected: (
|
|
37117
|
-
y(
|
|
37120
|
+
onPaymentCollected: (be) => {
|
|
37121
|
+
y(be);
|
|
37118
37122
|
},
|
|
37119
|
-
onPaymentFailed: (
|
|
37120
|
-
S(
|
|
37123
|
+
onPaymentFailed: (be) => {
|
|
37124
|
+
S(be);
|
|
37121
37125
|
}
|
|
37122
37126
|
}
|
|
37123
37127
|
),
|
|
@@ -37128,11 +37132,11 @@ const n1 = ({
|
|
|
37128
37132
|
onClose: async () => {
|
|
37129
37133
|
w(), await Ut.navigateHome();
|
|
37130
37134
|
},
|
|
37131
|
-
onPaymentCollected: (
|
|
37132
|
-
y(
|
|
37135
|
+
onPaymentCollected: (be) => {
|
|
37136
|
+
y(be);
|
|
37133
37137
|
},
|
|
37134
|
-
onPaymentFailed: (
|
|
37135
|
-
S(
|
|
37138
|
+
onPaymentFailed: (be) => {
|
|
37139
|
+
S(be);
|
|
37136
37140
|
}
|
|
37137
37141
|
}
|
|
37138
37142
|
),
|
|
@@ -37144,8 +37148,8 @@ const n1 = ({
|
|
|
37144
37148
|
onClose: async () => {
|
|
37145
37149
|
w(), await Ut.navigateHome();
|
|
37146
37150
|
},
|
|
37147
|
-
onPaymentCollected: (
|
|
37148
|
-
y(
|
|
37151
|
+
onPaymentCollected: (be) => {
|
|
37152
|
+
y(be);
|
|
37149
37153
|
}
|
|
37150
37154
|
}
|
|
37151
37155
|
),
|
|
@@ -37157,8 +37161,8 @@ const n1 = ({
|
|
|
37157
37161
|
onClose: async () => {
|
|
37158
37162
|
w(), await Ut.navigateHome();
|
|
37159
37163
|
},
|
|
37160
|
-
onPaymentCollected: (
|
|
37161
|
-
y(
|
|
37164
|
+
onPaymentCollected: (be) => {
|
|
37165
|
+
y(be);
|
|
37162
37166
|
}
|
|
37163
37167
|
}
|
|
37164
37168
|
),
|
|
@@ -37170,8 +37174,8 @@ const n1 = ({
|
|
|
37170
37174
|
onClose: async () => {
|
|
37171
37175
|
w(), await Ut.navigateHome();
|
|
37172
37176
|
},
|
|
37173
|
-
onPaymentCollected: (
|
|
37174
|
-
y(
|
|
37177
|
+
onPaymentCollected: (be) => {
|
|
37178
|
+
y(be);
|
|
37175
37179
|
}
|
|
37176
37180
|
}
|
|
37177
37181
|
),
|
|
@@ -37182,8 +37186,8 @@ const n1 = ({
|
|
|
37182
37186
|
onClose: () => {
|
|
37183
37187
|
w();
|
|
37184
37188
|
},
|
|
37185
|
-
onPaymentCollected: (
|
|
37186
|
-
y(
|
|
37189
|
+
onPaymentCollected: (be) => {
|
|
37190
|
+
y(be);
|
|
37187
37191
|
},
|
|
37188
37192
|
selectedLenderIdx: de,
|
|
37189
37193
|
selectedLenderFiCode: ue,
|
|
@@ -37211,11 +37215,11 @@ const n1 = ({
|
|
|
37211
37215
|
onClose: async () => {
|
|
37212
37216
|
w(), await Ut.navigateHome();
|
|
37213
37217
|
},
|
|
37214
|
-
onPaymentCollected: (
|
|
37215
|
-
y(
|
|
37218
|
+
onPaymentCollected: (be) => {
|
|
37219
|
+
y(be);
|
|
37216
37220
|
},
|
|
37217
|
-
onPaymentFailed: (
|
|
37218
|
-
S(
|
|
37221
|
+
onPaymentFailed: (be) => {
|
|
37222
|
+
S(be);
|
|
37219
37223
|
}
|
|
37220
37224
|
}
|
|
37221
37225
|
),
|
|
@@ -38750,10 +38754,10 @@ const Xf = () => ul() === "production" ? "production" : "sandbox", A1 = () => gr
|
|
|
38750
38754
|
showBankTransferDrawer: C,
|
|
38751
38755
|
showSuccessDrawer: L,
|
|
38752
38756
|
showFailureDrawer: N
|
|
38753
|
-
} = cp(), j =
|
|
38757
|
+
} = cp(), j = Fi(
|
|
38754
38758
|
() => l.reduce((se, de) => se + de.outstandingAmount, 0),
|
|
38755
38759
|
[l]
|
|
38756
|
-
), 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(() => {
|
|
38757
38761
|
const se = /* @__PURE__ */ new Map();
|
|
38758
38762
|
for (const de of l)
|
|
38759
38763
|
if (se.has(de.lenderId)) {
|
|
@@ -38767,7 +38771,7 @@ const Xf = () => ul() === "production" ? "production" : "sandbox", A1 = () => gr
|
|
|
38767
38771
|
earliestDueDate: de.dueDate
|
|
38768
38772
|
});
|
|
38769
38773
|
return Array.from(se.values());
|
|
38770
|
-
}, [l]), V =
|
|
38774
|
+
}, [l]), V = Fi(
|
|
38771
38775
|
() => ({
|
|
38772
38776
|
type: "repayment",
|
|
38773
38777
|
businessId: r || "",
|