@fundly.ai/payment-sdk 1.3.0-beta.3 → 1.4.0-beta.2
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/components/fundlyPayDrawer.d.ts.map +1 -1
- package/dist/embed.js +75 -75
- package/dist/index.js +28 -28
- package/dist/index.mjs +261 -260
- package/dist/screens/collection/paymentOptionPage.d.ts.map +1 -1
- package/dist/services/analytics/types.d.ts +2 -2
- package/dist/services/analytics/types.d.ts.map +1 -1
- package/dist/services/api/payment.api.wrapper.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -125,7 +125,7 @@ const en = ({ open: l, onClose: e, children: t }) => {
|
|
|
125
125
|
},
|
|
126
126
|
onClick: (r) => r.stopPropagation(),
|
|
127
127
|
children: [
|
|
128
|
-
t && /* @__PURE__ */ h(
|
|
128
|
+
t && /* @__PURE__ */ h(ds, { children: t }),
|
|
129
129
|
i,
|
|
130
130
|
n && /* @__PURE__ */ h(xn, { children: n })
|
|
131
131
|
]
|
|
@@ -146,7 +146,7 @@ const en = ({ open: l, onClose: e, children: t }) => {
|
|
|
146
146
|
}
|
|
147
147
|
` })
|
|
148
148
|
] }) : null;
|
|
149
|
-
},
|
|
149
|
+
}, ds = ({ children: l, style: e, sx: t }) => {
|
|
150
150
|
const i = {
|
|
151
151
|
padding: "20px 24px 16px",
|
|
152
152
|
fontSize: "20px",
|
|
@@ -1582,15 +1582,15 @@ function Zg() {
|
|
|
1582
1582
|
},
|
|
1583
1583
|
_doProcessBlock: function(H, X) {
|
|
1584
1584
|
for (var Y = this._hash.words, G = Y[0], z = Y[1], T = Y[2], B = Y[3], W = Y[4], J = Y[5], te = Y[6], le = Y[7], be = G.high, se = G.low, de = z.high, xe = z.low, Ae = T.high, _e = T.low, rt = B.high, mt = B.low, ni = W.high, Yt = W.low, Kt = J.high, Wt = J.low, ge = te.high, Ee = te.low, Se = le.high, Ce = le.low, si = be, _t = se, Gi = de, It = xe, po = Ae, dr = _e, dc = rt, mo = mt, kn = ni, an = Yt, Ha = Kt, go = Wt, Ya = ge, Ao = Ee, hc = Se, xo = Ce, Tn = 0; Tn < 80; Tn++) {
|
|
1585
|
-
var un,
|
|
1585
|
+
var un, As, Qa = N[Tn];
|
|
1586
1586
|
if (Tn < 16)
|
|
1587
|
-
|
|
1587
|
+
As = Qa.high = H[X + Tn * 2] | 0, un = Qa.low = H[X + Tn * 2 + 1] | 0;
|
|
1588
1588
|
else {
|
|
1589
1589
|
var Qh = N[Tn - 15], hr = Qh.high, wo = Qh.low, Ig = (hr >>> 1 | wo << 31) ^ (hr >>> 8 | wo << 24) ^ hr >>> 7, Wh = (wo >>> 1 | hr << 31) ^ (wo >>> 8 | hr << 24) ^ (wo >>> 7 | hr << 25), Jh = N[Tn - 2], fr = Jh.high, yo = Jh.low, Eg = (fr >>> 19 | yo << 13) ^ (fr << 3 | yo >>> 29) ^ fr >>> 6, Xh = (yo >>> 19 | fr << 13) ^ (yo << 3 | fr >>> 29) ^ (yo >>> 6 | fr << 26), Gh = N[Tn - 7], Mg = Gh.high, Sg = Gh.low, Vh = N[Tn - 16], Dg = Vh.high, qh = Vh.low;
|
|
1590
|
-
un = Wh + Sg,
|
|
1590
|
+
un = Wh + Sg, As = Ig + Mg + (un >>> 0 < Wh >>> 0 ? 1 : 0), un = un + Xh, As = As + Eg + (un >>> 0 < Xh >>> 0 ? 1 : 0), un = un + qh, As = As + Dg + (un >>> 0 < qh >>> 0 ? 1 : 0), Qa.high = As, Qa.low = un;
|
|
1591
1591
|
}
|
|
1592
|
-
var Lg = kn & Ha ^ ~kn & Ya, Zh = an & go ^ ~an & Ao, Ng = si & Gi ^ si & po ^ Gi & po, kg = _t & It ^ _t & dr ^ It & dr, Tg = (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), Bg = (kn >>> 14 | an << 18) ^ (kn >>> 18 | an << 14) ^ (kn << 23 | an >>> 9), Pg = (an >>> 14 | kn << 18) ^ (an >>> 18 | kn << 14) ^ (an << 23 | kn >>> 9), _h = P[Tn], Og = _h.high, $h = _h.low, ln = xo + Pg,
|
|
1593
|
-
hc = Ya, xo = Ao, Ya = Ha, Ao = go, Ha = kn, go = an, an = mo + ln | 0, kn = dc +
|
|
1592
|
+
var Lg = kn & Ha ^ ~kn & Ya, Zh = an & go ^ ~an & Ao, Ng = si & Gi ^ si & po ^ Gi & po, kg = _t & It ^ _t & dr ^ It & dr, Tg = (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), Bg = (kn >>> 14 | an << 18) ^ (kn >>> 18 | an << 14) ^ (kn << 23 | an >>> 9), Pg = (an >>> 14 | kn << 18) ^ (an >>> 18 | kn << 14) ^ (an << 23 | kn >>> 9), _h = P[Tn], Og = _h.high, $h = _h.low, ln = xo + Pg, xs = hc + Bg + (ln >>> 0 < xo >>> 0 ? 1 : 0), ln = ln + Zh, xs = xs + Lg + (ln >>> 0 < Zh >>> 0 ? 1 : 0), ln = ln + $h, xs = xs + Og + (ln >>> 0 < $h >>> 0 ? 1 : 0), ln = ln + un, xs = xs + As + (ln >>> 0 < un >>> 0 ? 1 : 0), ef = Kh + kg, jg = Tg + Ng + (ef >>> 0 < Kh >>> 0 ? 1 : 0);
|
|
1593
|
+
hc = Ya, xo = Ao, Ya = Ha, Ao = go, Ha = kn, go = an, an = mo + ln | 0, kn = dc + xs + (an >>> 0 < mo >>> 0 ? 1 : 0) | 0, dc = po, mo = dr, po = Gi, dr = It, Gi = si, It = _t, _t = ln + ef | 0, si = xs + jg + (_t >>> 0 < ln >>> 0 ? 1 : 0) | 0;
|
|
1594
1594
|
}
|
|
1595
1595
|
se = G.low = se + _t, G.high = be + si + (se >>> 0 < _t >>> 0 ? 1 : 0), xe = z.low = xe + It, z.high = de + Gi + (xe >>> 0 < It >>> 0 ? 1 : 0), _e = T.low = _e + dr, T.high = Ae + po + (_e >>> 0 < dr >>> 0 ? 1 : 0), mt = B.low = mt + mo, B.high = rt + dc + (mt >>> 0 < mo >>> 0 ? 1 : 0), Yt = W.low = Yt + an, W.high = ni + kn + (Yt >>> 0 < an >>> 0 ? 1 : 0), Wt = J.low = Wt + go, J.high = Kt + Ha + (Wt >>> 0 < go >>> 0 ? 1 : 0), Ee = te.low = Ee + Ao, te.high = ge + Ya + (Ee >>> 0 < Ao >>> 0 ? 1 : 0), Ce = le.low = Ce + xo, le.high = Se + hc + (Ce >>> 0 < xo >>> 0 ? 1 : 0);
|
|
1596
1596
|
},
|
|
@@ -1954,7 +1954,7 @@ function Zg() {
|
|
|
1954
1954
|
})(ma)), ma.exports;
|
|
1955
1955
|
}
|
|
1956
1956
|
var ga = { exports: {} }, zp = ga.exports, Dd;
|
|
1957
|
-
function
|
|
1957
|
+
function ms() {
|
|
1958
1958
|
return Dd || (Dd = 1, (function(p, a) {
|
|
1959
1959
|
(function(d, f, A) {
|
|
1960
1960
|
p.exports = f(Lt(), xd(), Nl());
|
|
@@ -2020,7 +2020,7 @@ function Zg() {
|
|
|
2020
2020
|
function vi() {
|
|
2021
2021
|
return Ld || (Ld = 1, (function(p, a) {
|
|
2022
2022
|
(function(d, f, A) {
|
|
2023
|
-
p.exports = f(Lt(),
|
|
2023
|
+
p.exports = f(Lt(), ms());
|
|
2024
2024
|
})(Up, function(d) {
|
|
2025
2025
|
d.lib.Cipher || (function(f) {
|
|
2026
2026
|
var A = d, x = A.lib, S = x.Base, v = x.WordArray, D = x.BufferedBlockAlgorithm, I = A.enc;
|
|
@@ -2843,7 +2843,7 @@ function Zg() {
|
|
|
2843
2843
|
function d0() {
|
|
2844
2844
|
return Hd || (Hd = 1, (function(p, a) {
|
|
2845
2845
|
(function(d, f, A) {
|
|
2846
|
-
p.exports = f(Lt(), Is(), Es(),
|
|
2846
|
+
p.exports = f(Lt(), Is(), Es(), ms(), vi());
|
|
2847
2847
|
})(c0, function(d) {
|
|
2848
2848
|
return (function() {
|
|
2849
2849
|
var f = d, A = f.lib, x = A.BlockCipher, S = f.algo, v = [], D = [], I = [], M = [], P = [], N = [], O = [], H = [], X = [], Y = [];
|
|
@@ -2903,7 +2903,7 @@ function Zg() {
|
|
|
2903
2903
|
function f0() {
|
|
2904
2904
|
return Yd || (Yd = 1, (function(p, a) {
|
|
2905
2905
|
(function(d, f, A) {
|
|
2906
|
-
p.exports = f(Lt(), Is(), Es(),
|
|
2906
|
+
p.exports = f(Lt(), Is(), Es(), ms(), vi());
|
|
2907
2907
|
})(h0, function(d) {
|
|
2908
2908
|
return (function() {
|
|
2909
2909
|
var f = d, A = f.lib, x = A.WordArray, S = A.BlockCipher, v = f.algo, D = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4], I = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32], M = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], P = [{
|
|
@@ -3499,7 +3499,7 @@ function Zg() {
|
|
|
3499
3499
|
function p0() {
|
|
3500
3500
|
return Qd || (Qd = 1, (function(p, a) {
|
|
3501
3501
|
(function(d, f, A) {
|
|
3502
|
-
p.exports = f(Lt(), Is(), Es(),
|
|
3502
|
+
p.exports = f(Lt(), Is(), Es(), ms(), vi());
|
|
3503
3503
|
})(u0, function(d) {
|
|
3504
3504
|
return (function() {
|
|
3505
3505
|
var f = d, A = f.lib, x = A.StreamCipher, S = f.algo, v = S.RC4 = x.extend({
|
|
@@ -3553,7 +3553,7 @@ function Zg() {
|
|
|
3553
3553
|
function g0() {
|
|
3554
3554
|
return Wd || (Wd = 1, (function(p, a) {
|
|
3555
3555
|
(function(d, f, A) {
|
|
3556
|
-
p.exports = f(Lt(), Is(), Es(),
|
|
3556
|
+
p.exports = f(Lt(), Is(), Es(), ms(), vi());
|
|
3557
3557
|
})(m0, function(d) {
|
|
3558
3558
|
return (function() {
|
|
3559
3559
|
var f = d, A = f.lib, x = A.StreamCipher, S = f.algo, v = [], D = [], I = [], M = S.Rabbit = x.extend({
|
|
@@ -3601,7 +3601,7 @@ function Zg() {
|
|
|
3601
3601
|
function x0() {
|
|
3602
3602
|
return Jd || (Jd = 1, (function(p, a) {
|
|
3603
3603
|
(function(d, f, A) {
|
|
3604
|
-
p.exports = f(Lt(), Is(), Es(),
|
|
3604
|
+
p.exports = f(Lt(), Is(), Es(), ms(), vi());
|
|
3605
3605
|
})(A0, function(d) {
|
|
3606
3606
|
return (function() {
|
|
3607
3607
|
var f = d, A = f.lib, x = A.StreamCipher, S = f.algo, v = [], D = [], I = [], M = S.RabbitLegacy = x.extend({
|
|
@@ -3647,7 +3647,7 @@ function Zg() {
|
|
|
3647
3647
|
function y0() {
|
|
3648
3648
|
return Xd || (Xd = 1, (function(p, a) {
|
|
3649
3649
|
(function(d, f, A) {
|
|
3650
|
-
p.exports = f(Lt(), Is(), Es(),
|
|
3650
|
+
p.exports = f(Lt(), Is(), Es(), ms(), vi());
|
|
3651
3651
|
})(w0, function(d) {
|
|
3652
3652
|
return (function() {
|
|
3653
3653
|
var f = d, A = f.lib, x = A.BlockCipher, S = f.algo;
|
|
@@ -3723,7 +3723,7 @@ function Zg() {
|
|
|
3723
3723
|
function C0() {
|
|
3724
3724
|
return Gd || (Gd = 1, (function(p, a) {
|
|
3725
3725
|
(function(d, f, A) {
|
|
3726
|
-
p.exports = f(Lt(), ta(), xp(), yp(), Is(), vp(), Es(), xd(), Ll(), Dp(), Cd(), kp(), Bp(), Op(), Nl(), Rp(),
|
|
3726
|
+
p.exports = f(Lt(), ta(), xp(), yp(), Is(), vp(), Es(), xd(), Ll(), Dp(), Cd(), kp(), Bp(), Op(), Nl(), Rp(), ms(), vi(), Yp(), Wp(), Xp(), Vp(), Zp(), _p(), e0(), i0(), s0(), o0(), l0(), d0(), f0(), p0(), g0(), x0(), y0());
|
|
3727
3727
|
})(b0, function(d) {
|
|
3728
3728
|
return d;
|
|
3729
3729
|
});
|
|
@@ -3777,13 +3777,13 @@ function Zg() {
|
|
|
3777
3777
|
return d === "" ? a : d;
|
|
3778
3778
|
}
|
|
3779
3779
|
}
|
|
3780
|
-
const
|
|
3780
|
+
const qn = new v0();
|
|
3781
3781
|
class $ {
|
|
3782
3782
|
static save(a, d) {
|
|
3783
3783
|
if (!a || !d)
|
|
3784
3784
|
return !1;
|
|
3785
3785
|
if (this._isLocalStorageSupported())
|
|
3786
|
-
return
|
|
3786
|
+
return qn.shouldEncrypt(a) ? (localStorage.setItem(a, qn.encrypt(d)), !0) : (localStorage.setItem(a, typeof d == "string" ? d : JSON.stringify(d)), !0);
|
|
3787
3787
|
}
|
|
3788
3788
|
static read(a) {
|
|
3789
3789
|
if (!a)
|
|
@@ -3791,7 +3791,7 @@ function Zg() {
|
|
|
3791
3791
|
let d = null;
|
|
3792
3792
|
if (this._isLocalStorageSupported() && (d = localStorage.getItem(a)), d != null)
|
|
3793
3793
|
try {
|
|
3794
|
-
|
|
3794
|
+
qn.shouldDecrypt(a) && (d = qn.decrypt(d)), d = JSON.parse(d);
|
|
3795
3795
|
} catch {
|
|
3796
3796
|
}
|
|
3797
3797
|
return d;
|
|
@@ -4022,7 +4022,7 @@ function Zg() {
|
|
|
4022
4022
|
for (const S in f)
|
|
4023
4023
|
f.hasOwnProperty(S) && (f[S] !== a ? A[f[S]] = d[f[S]] : x = S);
|
|
4024
4024
|
return f.splice(x, 1), n(this, Ot)[Ot] = JSON.parse(JSON.stringify(f)), A;
|
|
4025
|
-
}, Ds = i("logger"),
|
|
4025
|
+
}, Ds = i("logger"), Zn = i("request"), Fi = i("device"), vn = i("session");
|
|
4026
4026
|
class E0 {
|
|
4027
4027
|
constructor(a) {
|
|
4028
4028
|
let {
|
|
@@ -4034,7 +4034,7 @@ function Zg() {
|
|
|
4034
4034
|
Object.defineProperty(this, Ds, {
|
|
4035
4035
|
writable: !0,
|
|
4036
4036
|
value: void 0
|
|
4037
|
-
}), Object.defineProperty(this,
|
|
4037
|
+
}), Object.defineProperty(this, Zn, {
|
|
4038
4038
|
writable: !0,
|
|
4039
4039
|
value: void 0
|
|
4040
4040
|
}), Object.defineProperty(this, Fi, {
|
|
@@ -4043,7 +4043,7 @@ function Zg() {
|
|
|
4043
4043
|
}), Object.defineProperty(this, vn, {
|
|
4044
4044
|
writable: !0,
|
|
4045
4045
|
value: void 0
|
|
4046
|
-
}), n(this, Ds)[Ds] = d, n(this,
|
|
4046
|
+
}), n(this, Ds)[Ds] = d, n(this, Zn)[Zn] = f, n(this, Fi)[Fi] = A, n(this, vn)[vn] = x;
|
|
4047
4047
|
}
|
|
4048
4048
|
/**
|
|
4049
4049
|
*
|
|
@@ -4070,14 +4070,14 @@ function Zg() {
|
|
|
4070
4070
|
const N = q.LRU_CACHE.getSecondLastKey();
|
|
4071
4071
|
if ($.readFromLSorCookie(je) && N !== -1) {
|
|
4072
4072
|
const O = q.LRU_CACHE.cache[N];
|
|
4073
|
-
n(this,
|
|
4073
|
+
n(this, Zn)[Zn].unregisterTokenForGuid(O);
|
|
4074
4074
|
}
|
|
4075
4075
|
}
|
|
4076
4076
|
$.createBroadCookie(F, a, Me, window.location.hostname), $.saveToLSorCookie(F, a);
|
|
4077
4077
|
}
|
|
4078
4078
|
$._isLocalStorageSupported() && n(this, vn)[vn].manageSession(d);
|
|
4079
4079
|
const D = n(this, vn)[vn].getSessionCookieObject();
|
|
4080
|
-
(typeof D.s > "u" || D.s <= d) && (D.s = d, D.t = vs(), n(this, vn)[vn].setSessionCookieObject(D)), mi(n(this, Fi)[Fi].gcookie) && (q.blockRequest = !1), (S || v) && !n(this,
|
|
4080
|
+
(typeof D.s > "u" || D.s <= d) && (D.s = d, D.t = vs(), n(this, vn)[vn].setSessionCookieObject(D)), mi(n(this, Fi)[Fi].gcookie) && (q.blockRequest = !1), (S || v) && !n(this, Zn)[Zn].processingBackup && n(this, Zn)[Zn].processBackupEvents(), q.globalCache.RESP_N = A;
|
|
4081
4081
|
}
|
|
4082
4082
|
}
|
|
4083
4083
|
var Ls = i("logger");
|
|
@@ -4149,7 +4149,7 @@ function Zg() {
|
|
|
4149
4149
|
}
|
|
4150
4150
|
return !1;
|
|
4151
4151
|
};
|
|
4152
|
-
var Si = i("logger"),
|
|
4152
|
+
var Si = i("logger"), Kn = i("oldValues"), Yr = i("request"), Qr = i("isPersonalisationActive"), Wr = i("processEventArray");
|
|
4153
4153
|
class F0 extends Array {
|
|
4154
4154
|
constructor(a, d) {
|
|
4155
4155
|
let {
|
|
@@ -4162,7 +4162,7 @@ function Zg() {
|
|
|
4162
4162
|
}), Object.defineProperty(this, Si, {
|
|
4163
4163
|
writable: !0,
|
|
4164
4164
|
value: void 0
|
|
4165
|
-
}), Object.defineProperty(this,
|
|
4165
|
+
}), Object.defineProperty(this, Kn, {
|
|
4166
4166
|
writable: !0,
|
|
4167
4167
|
value: void 0
|
|
4168
4168
|
}), Object.defineProperty(this, Yr, {
|
|
@@ -4171,7 +4171,7 @@ function Zg() {
|
|
|
4171
4171
|
}), Object.defineProperty(this, Qr, {
|
|
4172
4172
|
writable: !0,
|
|
4173
4173
|
value: void 0
|
|
4174
|
-
}), n(this, Si)[Si] = f, n(this,
|
|
4174
|
+
}), n(this, Si)[Si] = f, n(this, Kn)[Kn] = d, n(this, Yr)[Yr] = A, n(this, Qr)[Qr] = x;
|
|
4175
4175
|
}
|
|
4176
4176
|
push() {
|
|
4177
4177
|
if ($.readFromLSorCookie(me)) {
|
|
@@ -4182,7 +4182,7 @@ function Zg() {
|
|
|
4182
4182
|
n(this, Si)[Si].error("Account ID is not set");
|
|
4183
4183
|
}
|
|
4184
4184
|
_processOldValues() {
|
|
4185
|
-
n(this,
|
|
4185
|
+
n(this, Kn)[Kn] && n(this, Wr)[Wr](n(this, Kn)[Kn]), n(this, Kn)[Kn] = null;
|
|
4186
4186
|
}
|
|
4187
4187
|
getDetails(a) {
|
|
4188
4188
|
if (!n(this, Qr)[Qr]() || (typeof q.globalEventsMap > "u" && (q.globalEventsMap = $.readFromLSorCookie(ee)), typeof q.globalEventsMap > "u"))
|
|
@@ -4431,7 +4431,7 @@ $1`));
|
|
|
4431
4431
|
x[S] && x[S][a] && x[S][a][p[A]] && (delete x[S][a][p[A]], $.save(Q, encodeURIComponent(JSON.stringify(x))));
|
|
4432
4432
|
}
|
|
4433
4433
|
}
|
|
4434
|
-
|
|
4434
|
+
_n(d);
|
|
4435
4435
|
}, X0 = (p) => {
|
|
4436
4436
|
if (q.globalEventsMap == null && (q.globalEventsMap = $.readFromLSorCookie(ee), q.globalEventsMap == null)) {
|
|
4437
4437
|
q.globalEventsMap = p;
|
|
@@ -4475,7 +4475,7 @@ $1`));
|
|
|
4475
4475
|
}, eh = (p, a) => {
|
|
4476
4476
|
const d = p.getGuid(), f = a.getSessionCookieObject();
|
|
4477
4477
|
return "&t=wc&d=" + encodeURIComponent(Kd(d + "|" + f.p + "|" + f.s));
|
|
4478
|
-
},
|
|
4478
|
+
}, gs = {
|
|
4479
4479
|
/**
|
|
4480
4480
|
* Checks if a campaign triggers a custom event push based on its template type.
|
|
4481
4481
|
*
|
|
@@ -4645,10 +4645,10 @@ $1`));
|
|
|
4645
4645
|
const M = x[I], P = S[I];
|
|
4646
4646
|
P === "dnd" && A.push(I);
|
|
4647
4647
|
const N = jn.portCampaignDetails(I, P, M);
|
|
4648
|
-
|
|
4648
|
+
_n(N);
|
|
4649
4649
|
}
|
|
4650
4650
|
const D = xi();
|
|
4651
|
-
|
|
4651
|
+
_n({
|
|
4652
4652
|
...D,
|
|
4653
4653
|
dnd: [.../* @__PURE__ */ new Set([...D.dnd || [], ...A])],
|
|
4654
4654
|
wp: {}
|
|
@@ -4715,7 +4715,7 @@ $1`));
|
|
|
4715
4715
|
wp: G,
|
|
4716
4716
|
wsc: z,
|
|
4717
4717
|
wndsc: T
|
|
4718
|
-
},
|
|
4718
|
+
}, _n(O);
|
|
4719
4719
|
},
|
|
4720
4720
|
/**
|
|
4721
4721
|
* Gets the daily count for a campaign, automatically resetting to 1 when date changes
|
|
@@ -4767,7 +4767,7 @@ $1`));
|
|
|
4767
4767
|
for (const A of p.native_display_stale)
|
|
4768
4768
|
d.wndfc && d.wndfc[A] && (delete d.wndfc[A], a.debug("Cleared wndfc entry for campaign ".concat(A)), f = !0), d.wndoc && d.wndoc[A] && (delete d.wndoc[A], a.debug("Cleared wndoc entry for campaign ".concat(A)), f = !0);
|
|
4769
4769
|
}
|
|
4770
|
-
f ? (
|
|
4770
|
+
f ? (_n(d), a.debug("Campaign object updated with stale campaign removals")) : a.debug("No stale campaigns found to clear");
|
|
4771
4771
|
} catch (d) {
|
|
4772
4772
|
throw a.error("Error clearing stale campaigns:", d), d;
|
|
4773
4773
|
}
|
|
@@ -4803,7 +4803,7 @@ $1`));
|
|
|
4803
4803
|
a != null ? (a = JSON.parse(decodeURIComponent(a).replace(L, '"')), p = a) : p = {};
|
|
4804
4804
|
}
|
|
4805
4805
|
return p;
|
|
4806
|
-
},
|
|
4806
|
+
}, _n = (p) => {
|
|
4807
4807
|
if ($._isLocalStorageSupported()) {
|
|
4808
4808
|
const a = {
|
|
4809
4809
|
...xi(),
|
|
@@ -4841,7 +4841,7 @@ $1`));
|
|
|
4841
4841
|
const N = P.frequencyControlKey;
|
|
4842
4842
|
x[N] = jn.updateTimestampTracker([v], x[N] || {});
|
|
4843
4843
|
}
|
|
4844
|
-
|
|
4844
|
+
_n(x);
|
|
4845
4845
|
} catch (x) {
|
|
4846
4846
|
a.error("Campaign delivery preference update failed: ".concat(x.message));
|
|
4847
4847
|
}
|
|
@@ -4999,7 +4999,7 @@ $1`));
|
|
|
4999
4999
|
if (p != null && p !== "-1" && $._isLocalStorageSupported()) {
|
|
5000
5000
|
var f;
|
|
5001
5001
|
const A = xi();
|
|
5002
|
-
A.dnd = [.../* @__PURE__ */ new Set([...(f = A.dnd) !== null && f !== void 0 ? f : [], p])],
|
|
5002
|
+
A.dnd = [.../* @__PURE__ */ new Set([...(f = A.dnd) !== null && f !== void 0 ? f : [], p])], _n(A);
|
|
5003
5003
|
}
|
|
5004
5004
|
if (q.campaignDivMap != null) {
|
|
5005
5005
|
const A = q.campaignDivMap[p];
|
|
@@ -5034,7 +5034,7 @@ $1`));
|
|
|
5034
5034
|
d && (M = pt(M, "fetchGroups", d)), a && (M = pt(M, "encoded", a)), M = pt(M, "e", S), M = pt(M, "d", Ri(JSON.stringify(I), A)), v && (M = pt(M, "p", v)), p !== "-1" && (M = pt(M, "sub", p)), D && (q.globalUnsubscribe = D === re, M = pt(M, "page_type", D)), Di.fireRequest(M);
|
|
5035
5035
|
}
|
|
5036
5036
|
};
|
|
5037
|
-
var ti = i("logger"), fi = i("request"),
|
|
5037
|
+
var ti = i("logger"), fi = i("request"), $n = i("account"), es = i("oldValues"), Jr = i("isPersonalisationActive"), Xr = i("processProfileArray");
|
|
5038
5038
|
class $0 extends Array {
|
|
5039
5039
|
constructor(a, d) {
|
|
5040
5040
|
let {
|
|
@@ -5051,16 +5051,16 @@ $1`));
|
|
|
5051
5051
|
}), Object.defineProperty(this, fi, {
|
|
5052
5052
|
writable: !0,
|
|
5053
5053
|
value: void 0
|
|
5054
|
-
}), Object.defineProperty(this,
|
|
5054
|
+
}), Object.defineProperty(this, $n, {
|
|
5055
5055
|
writable: !0,
|
|
5056
5056
|
value: void 0
|
|
5057
|
-
}), Object.defineProperty(this,
|
|
5057
|
+
}), Object.defineProperty(this, es, {
|
|
5058
5058
|
writable: !0,
|
|
5059
5059
|
value: void 0
|
|
5060
5060
|
}), Object.defineProperty(this, Jr, {
|
|
5061
5061
|
writable: !0,
|
|
5062
5062
|
value: void 0
|
|
5063
|
-
}), n(this, ti)[ti] = f, n(this, fi)[fi] = A, n(this,
|
|
5063
|
+
}), n(this, ti)[ti] = f, n(this, fi)[fi] = A, n(this, $n)[$n] = x, n(this, es)[es] = d, n(this, Jr)[Jr] = S;
|
|
5064
5064
|
}
|
|
5065
5065
|
push() {
|
|
5066
5066
|
if ($.readFromLSorCookie(me)) {
|
|
@@ -5071,7 +5071,7 @@ $1`));
|
|
|
5071
5071
|
n(this, ti)[ti].error("Account ID is not set");
|
|
5072
5072
|
}
|
|
5073
5073
|
_processOldValues() {
|
|
5074
|
-
n(this,
|
|
5074
|
+
n(this, es)[es] && n(this, Xr)[Xr](n(this, es)[es]), n(this, es)[es] = null;
|
|
5075
5075
|
}
|
|
5076
5076
|
getAttribute(a) {
|
|
5077
5077
|
if (n(this, Jr)[Jr]() && (q.globalProfileMap == null && (q.globalProfileMap = $.readFromLSorCookie(ce)), q.globalProfileMap != null))
|
|
@@ -5098,7 +5098,7 @@ $1`));
|
|
|
5098
5098
|
[f]: d
|
|
5099
5099
|
}, S.tz == null && (S.tz = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]), x.profile = S, x = n(this, fi)[fi].addSystemDataToObject(x, !0), n(this, fi)[fi].addFlags(x);
|
|
5100
5100
|
const v = Ri(JSON.stringify(x), n(this, ti)[ti]);
|
|
5101
|
-
let D = n(this,
|
|
5101
|
+
let D = n(this, $n)[$n].dataPostURL;
|
|
5102
5102
|
D = pt(D, "type", ze), D = pt(D, "d", v), n(this, fi)[fi].saveAndFireRequest(D, q.blockRequest);
|
|
5103
5103
|
}
|
|
5104
5104
|
}
|
|
@@ -5187,7 +5187,7 @@ $1`));
|
|
|
5187
5187
|
[f]: f === bt ? !0 : d
|
|
5188
5188
|
}, x.tz == null && (x.tz = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]), A.profile = x, A = n(this, fi)[fi].addSystemDataToObject(A, !0), n(this, fi)[fi].addFlags(A);
|
|
5189
5189
|
const S = Ri(JSON.stringify(A), n(this, ti)[ti]);
|
|
5190
|
-
let v = n(this,
|
|
5190
|
+
let v = n(this, $n)[$n].dataPostURL;
|
|
5191
5191
|
v = pt(v, "type", ze), v = pt(v, "d", S), n(this, fi)[fi].saveAndFireRequest(v, q.blockRequest);
|
|
5192
5192
|
}
|
|
5193
5193
|
}
|
|
@@ -5214,12 +5214,12 @@ $1`));
|
|
|
5214
5214
|
if (x != null && !Cn(x)) {
|
|
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, fi)[fi].addSystemDataToObject(A, void 0), n(this, fi)[fi].addFlags(A);
|
|
5216
5216
|
const S = Ri(JSON.stringify(A), n(this, ti)[ti]);
|
|
5217
|
-
let v = n(this,
|
|
5217
|
+
let v = n(this, $n)[$n].dataPostURL;
|
|
5218
5218
|
v = pt(v, "type", ze), v = pt(v, "d", S), n(this, fi)[fi].saveAndFireRequest(v, q.blockRequest);
|
|
5219
5219
|
}
|
|
5220
5220
|
}
|
|
5221
5221
|
}
|
|
5222
|
-
}, En = i("request"), Li = i("logger"), Gr = i("account"), Mn = i("session"),
|
|
5222
|
+
}, En = i("request"), Li = i("logger"), Gr = i("account"), Mn = i("session"), ts = i("oldValues"), is = i("device"), Rl = i("processOUL"), zl = i("handleCookieFromCache"), Ul = i("deleteUser"), Vr = i("processLoginArray");
|
|
5223
5223
|
class tm extends Array {
|
|
5224
5224
|
constructor(a, d) {
|
|
5225
5225
|
let {
|
|
@@ -5249,13 +5249,13 @@ $1`));
|
|
|
5249
5249
|
}), Object.defineProperty(this, Mn, {
|
|
5250
5250
|
writable: !0,
|
|
5251
5251
|
value: void 0
|
|
5252
|
-
}), Object.defineProperty(this,
|
|
5252
|
+
}), Object.defineProperty(this, ts, {
|
|
5253
5253
|
writable: !0,
|
|
5254
5254
|
value: void 0
|
|
5255
|
-
}), Object.defineProperty(this,
|
|
5255
|
+
}), Object.defineProperty(this, is, {
|
|
5256
5256
|
writable: !0,
|
|
5257
5257
|
value: void 0
|
|
5258
|
-
}), n(this, En)[En] = f, n(this, Gr)[Gr] = A, n(this, Mn)[Mn] = x, n(this, Li)[Li] = S, n(this,
|
|
5258
|
+
}), n(this, En)[En] = f, n(this, Gr)[Gr] = A, n(this, Mn)[Mn] = x, n(this, Li)[Li] = S, n(this, ts)[ts] = d, n(this, is)[is] = v;
|
|
5259
5259
|
}
|
|
5260
5260
|
// On User Login
|
|
5261
5261
|
clear() {
|
|
@@ -5267,7 +5267,7 @@ $1`));
|
|
|
5267
5267
|
return n(this, Vr)[Vr](d), 0;
|
|
5268
5268
|
}
|
|
5269
5269
|
_processOldValues() {
|
|
5270
|
-
n(this,
|
|
5270
|
+
n(this, ts)[ts] && n(this, Vr)[Vr](n(this, ts)[ts]), n(this, ts)[ts] = null;
|
|
5271
5271
|
}
|
|
5272
5272
|
}
|
|
5273
5273
|
var im = function(a) {
|
|
@@ -5296,14 +5296,14 @@ $1`));
|
|
|
5296
5296
|
if (I) {
|
|
5297
5297
|
v !== q.LRU_CACHE.getLastKey() ? n(this, zl)[zl]() : (d = !1, $.saveToLSorCookie(je, d));
|
|
5298
5298
|
const M = q.LRU_CACHE.get(v);
|
|
5299
|
-
q.LRU_CACHE.set(v, M), $.saveToLSorCookie(F, M), n(this,
|
|
5299
|
+
q.LRU_CACHE.set(v, M), $.saveToLSorCookie(F, M), n(this, is)[is].gcookie = M;
|
|
5300
5300
|
const P = q.LRU_CACHE.getSecondLastKey();
|
|
5301
5301
|
if ($.readFromLSorCookie(je) && P !== -1) {
|
|
5302
5302
|
const N = q.LRU_CACHE.cache[P];
|
|
5303
5303
|
n(this, En)[En].unregisterTokenForGuid(N);
|
|
5304
5304
|
}
|
|
5305
5305
|
} else
|
|
5306
|
-
D ? S != null && (n(this,
|
|
5306
|
+
D ? S != null && (n(this, is)[is].gcookie = S, $.saveToLSorCookie(F, S), d = !1) : this.clear(), $.saveToLSorCookie(je, !1), v = A[0];
|
|
5307
5307
|
}
|
|
5308
5308
|
x.id = v, $.saveToLSorCookie(U, x);
|
|
5309
5309
|
};
|
|
@@ -5343,7 +5343,7 @@ $1`));
|
|
|
5343
5343
|
gcookie: null,
|
|
5344
5344
|
REQ_N: 0,
|
|
5345
5345
|
RESP_N: 0
|
|
5346
|
-
}, $._isLocalStorageSupported() && (delete localStorage[F], delete localStorage[U], delete localStorage[ce], delete localStorage[ee], delete localStorage[ne], delete localStorage[ae], delete localStorage[V], delete localStorage[R]), $.removeCookie(F, q.broadDomain), $.removeCookie(V, ja()), $.removeCookie(U, ja()), $.removeCookie(n(this, Mn)[Mn].cookieName, q.broadDomain), $.removeCookie(ae, q.broadDomain), n(this,
|
|
5346
|
+
}, $._isLocalStorageSupported() && (delete localStorage[F], delete localStorage[U], delete localStorage[ce], delete localStorage[ee], delete localStorage[ne], delete localStorage[ae], delete localStorage[V], delete localStorage[R]), $.removeCookie(F, q.broadDomain), $.removeCookie(V, ja()), $.removeCookie(U, ja()), $.removeCookie(n(this, Mn)[Mn].cookieName, q.broadDomain), $.removeCookie(ae, q.broadDomain), n(this, is)[is].gcookie = null, n(this, Mn)[Mn].setSessionCookieObject("");
|
|
5347
5347
|
}, rm = function(a) {
|
|
5348
5348
|
if (Array.isArray(a) && a.length > 0) {
|
|
5349
5349
|
const d = a.pop();
|
|
@@ -6168,13 +6168,13 @@ $1`));
|
|
|
6168
6168
|
DEBUG: 3,
|
|
6169
6169
|
DEBUG_PE: 4
|
|
6170
6170
|
};
|
|
6171
|
-
var Ui = i("logLevel"),
|
|
6171
|
+
var Ui = i("logLevel"), ns = i("log"), ql = i("isLegacyDebug");
|
|
6172
6172
|
class hi {
|
|
6173
6173
|
constructor(a) {
|
|
6174
6174
|
if (Object.defineProperty(this, ql, {
|
|
6175
6175
|
get: Mm,
|
|
6176
6176
|
set: void 0
|
|
6177
|
-
}), Object.defineProperty(this,
|
|
6177
|
+
}), Object.defineProperty(this, ns, {
|
|
6178
6178
|
value: Em
|
|
6179
6179
|
}), Object.defineProperty(this, Ui, {
|
|
6180
6180
|
writable: !0,
|
|
@@ -6194,16 +6194,16 @@ $1`));
|
|
|
6194
6194
|
n(this, Ui)[Ui] = a;
|
|
6195
6195
|
}
|
|
6196
6196
|
error(a) {
|
|
6197
|
-
n(this, Ui)[Ui] >= lr.ERROR && n(this,
|
|
6197
|
+
n(this, Ui)[Ui] >= lr.ERROR && n(this, ns)[ns]("error", a);
|
|
6198
6198
|
}
|
|
6199
6199
|
info(a) {
|
|
6200
|
-
n(this, Ui)[Ui] >= lr.INFO && n(this,
|
|
6200
|
+
n(this, Ui)[Ui] >= lr.INFO && n(this, ns)[ns]("log", a);
|
|
6201
6201
|
}
|
|
6202
6202
|
debug(a) {
|
|
6203
|
-
(n(this, Ui)[Ui] >= lr.DEBUG || n(this, ql)[ql]) && n(this,
|
|
6203
|
+
(n(this, Ui)[Ui] >= lr.DEBUG || n(this, ql)[ql]) && n(this, ns)[ns]("debug", a);
|
|
6204
6204
|
}
|
|
6205
6205
|
debugPE(a) {
|
|
6206
|
-
n(this, Ui)[Ui] >= lr.DEBUG_PE && n(this,
|
|
6206
|
+
n(this, Ui)[Ui] >= lr.DEBUG_PE && n(this, ns)[ns]("debug_pe", a);
|
|
6207
6207
|
}
|
|
6208
6208
|
reportError(a, d) {
|
|
6209
6209
|
this.wzrkError.c = a, this.wzrkError.d = d, this.error("".concat(In, " ").concat(a, ": ").concat(d));
|
|
@@ -6390,7 +6390,7 @@ $1`));
|
|
|
6390
6390
|
if (this.resizeObserver.unobserve(this.popup), document.getElementById("wzrkImageOnlyDiv").style.display = "none", this.remove(), d != null && d !== "-1" && $._isLocalStorageSupported()) {
|
|
6391
6391
|
var f;
|
|
6392
6392
|
const A = xi();
|
|
6393
|
-
A.dnd = [.../* @__PURE__ */ new Set([...(f = A.dnd) !== null && f !== void 0 ? f : [], d])],
|
|
6393
|
+
A.dnd = [.../* @__PURE__ */ new Set([...(f = A.dnd) !== null && f !== void 0 ? f : [], d])], _n(A);
|
|
6394
6394
|
}
|
|
6395
6395
|
};
|
|
6396
6396
|
this.closeIcon && this.closeIcon.addEventListener("click", a), this.target.display.preview || window.clevertap.renderNotificationViewed({
|
|
@@ -7715,21 +7715,21 @@ $1`));
|
|
|
7715
7715
|
const d = (a = p.display.divId) !== null && a !== void 0 ? a : p.display.divSelector, f = document.createElement("ct-web-personalisation-banner");
|
|
7716
7716
|
f.msgId = p.wzrk_id, f.pivotId = p.wzrk_pivot, f.divHeight = p.display.divHeight, f.details = p.display.details[0];
|
|
7717
7717
|
const A = p.display.divId ? document.getElementById(d) : document.querySelector(d);
|
|
7718
|
-
A.innerHTML = "", A.appendChild(f),
|
|
7718
|
+
A.innerHTML = "", A.appendChild(f), ss.doCampHouseKeeping(p, hi.getInstance());
|
|
7719
7719
|
}, zh = (p) => {
|
|
7720
7720
|
var a;
|
|
7721
7721
|
customElements.get("ct-web-personalisation-carousel") === void 0 && customElements.define("ct-web-personalisation-carousel", eg);
|
|
7722
7722
|
const d = (a = p.display.divId) !== null && a !== void 0 ? a : p.display.divSelector, f = document.createElement("ct-web-personalisation-carousel");
|
|
7723
7723
|
f.target = p;
|
|
7724
7724
|
const A = p.display.divId ? document.getElementById(d) : document.querySelector(d);
|
|
7725
|
-
A.innerHTML = "", A.appendChild(f),
|
|
7725
|
+
A.innerHTML = "", A.appendChild(f), ss.doCampHouseKeeping(p, hi.getInstance());
|
|
7726
7726
|
}, tg = (p) => {
|
|
7727
7727
|
const a = {};
|
|
7728
7728
|
a.msgId = p.wzrk_id, p.wzrk_pivot && (a.pivotId = p.wzrk_pivot), p.msgContent.kv != null && (a.kv = p.msgContent.kv);
|
|
7729
7729
|
const d = new CustomEvent("CT_web_native_display", {
|
|
7730
7730
|
detail: a
|
|
7731
7731
|
});
|
|
7732
|
-
document.dispatchEvent(d),
|
|
7732
|
+
document.dispatchEvent(d), ss.doCampHouseKeeping(p, hi.getInstance());
|
|
7733
7733
|
}, Uh = (p, a) => {
|
|
7734
7734
|
const {
|
|
7735
7735
|
display: d,
|
|
@@ -7760,7 +7760,7 @@ $1`));
|
|
|
7760
7760
|
const Y = document.createElement("div");
|
|
7761
7761
|
Y.innerHTML = v, Y.querySelectorAll("script").forEach((z) => {
|
|
7762
7762
|
th(z);
|
|
7763
|
-
}),
|
|
7763
|
+
}), ss.doCampHouseKeeping(p, hi.getInstance()), clearInterval(H);
|
|
7764
7764
|
} else ++O >= 20 && (a.error("No element present on DOM with divId '".concat(N, "'.")), clearInterval(H));
|
|
7765
7765
|
}, 500);
|
|
7766
7766
|
})(x);
|
|
@@ -7772,7 +7772,7 @@ $1`));
|
|
|
7772
7772
|
const A = new CustomEvent("CT_web_native_display_json", {
|
|
7773
7773
|
detail: a
|
|
7774
7774
|
});
|
|
7775
|
-
document.dispatchEvent(A),
|
|
7775
|
+
document.dispatchEvent(A), ss.doCampHouseKeeping(p, hi.getInstance());
|
|
7776
7776
|
};
|
|
7777
7777
|
function ng(p, a) {
|
|
7778
7778
|
if (!p.origin.endsWith(Ua.CLEVERTAP))
|
|
@@ -7802,7 +7802,7 @@ $1`));
|
|
|
7802
7802
|
const A = setInterval(() => {
|
|
7803
7803
|
(p.display.divId ? document.getElementById(p.display.divId) : document.querySelector(p.display.divSelector)) !== null ? (p.msgContent.type === Rt.BANNER ? Rh(p) : zh(p), clearInterval(A)) : ++f >= 20 && (a.debug("No element present on DOM with selector '".concat(p.display.divId || p.display.divSelector, "'.")), d[p.wzrk_id.split("_")[0]] = p, clearInterval(A));
|
|
7804
7804
|
}, 500);
|
|
7805
|
-
},
|
|
7805
|
+
}, ss = {
|
|
7806
7806
|
/*
|
|
7807
7807
|
This function is used to increment the counters for session, daily, and global objects
|
|
7808
7808
|
*/
|
|
@@ -7938,7 +7938,7 @@ $1`));
|
|
|
7938
7938
|
let P;
|
|
7939
7939
|
if (p[oe].wtarget_type === 3 && (P = "wi"), P === "wi") {
|
|
7940
7940
|
const N = {};
|
|
7941
|
-
N[yi.session.sessionId] = v, N[f] = D, N[re] = I,
|
|
7941
|
+
N[yi.session.sessionId] = v, N[f] = D, N[re] = I, _n({
|
|
7942
7942
|
[P]: N
|
|
7943
7943
|
});
|
|
7944
7944
|
} else
|
|
@@ -8254,7 +8254,7 @@ $1`));
|
|
|
8254
8254
|
}
|
|
8255
8255
|
},
|
|
8256
8256
|
processCampaigns(p, a, d, f) {
|
|
8257
|
-
const A = {}, x =
|
|
8257
|
+
const A = {}, x = gs.sortCampaignsByPriority(p.inapp_notifs), S = {
|
|
8258
8258
|
nodes: [],
|
|
8259
8259
|
customEvents: []
|
|
8260
8260
|
};
|
|
@@ -8269,25 +8269,25 @@ $1`));
|
|
|
8269
8269
|
const P = this.createExitIntentMouseLeaveHandler(M, d);
|
|
8270
8270
|
window.document.addEventListener("mouseleave", P);
|
|
8271
8271
|
} else if (M.display.wtarget_type === $e.WEB_NATIVE_DISPLAY) {
|
|
8272
|
-
if (
|
|
8272
|
+
if (gs.doesCampaignPushCustomEvent(M) && S.customEvents.length > 0 && gs.shouldCurrentCustomEventCampaignBeSkipped(M, S)) {
|
|
8273
8273
|
f.debug("Custom Event Campaign Skipped with id :: " + M?.wzrk_id);
|
|
8274
8274
|
continue;
|
|
8275
8275
|
}
|
|
8276
|
-
if (
|
|
8276
|
+
if (gs.doesCampaignMutateDOMNode(M) && S.nodes.some((P) => {
|
|
8277
8277
|
var N;
|
|
8278
|
-
return (N =
|
|
8278
|
+
return (N = gs.getCampaignNodes(M)) === null || N === void 0 ? void 0 : N.includes(P);
|
|
8279
8279
|
})) {
|
|
8280
8280
|
f.debug("DOM Campaign Skipped with id :: " + M?.wzrk_id);
|
|
8281
8281
|
continue;
|
|
8282
8282
|
}
|
|
8283
|
-
if (
|
|
8283
|
+
if (gs.doesCampaignPushCustomEvent(M)) {
|
|
8284
8284
|
const P = M.msgContent.type === Rt.KV_PAIR ? M.display.kv.topic : null;
|
|
8285
8285
|
S.customEvents.push({
|
|
8286
8286
|
customEventType: M.msgContent.type,
|
|
8287
8287
|
eventTopic: P
|
|
8288
8288
|
});
|
|
8289
|
-
} else if (
|
|
8290
|
-
const P =
|
|
8289
|
+
} else if (gs.doesCampaignMutateDOMNode(M)) {
|
|
8290
|
+
const P = gs.getCampaignNodes(M);
|
|
8291
8291
|
S.nodes.push(...P);
|
|
8292
8292
|
}
|
|
8293
8293
|
M.msgContent.type === Rt.KV_PAIR ? tg(M) : M.msgContent.type === Rt.BANNER || M.msgContent.type === Rt.CAROUSEL ? rg(M, f, A) : M.msgContent.type === Rt.VISUAL_BUILDER ? Kl(M, !1) : M.msgContent.type === Rt.CUSTOM_HTML ? Uh(M, f) : M.msgContent.type === Rt.JSON ? ig(M) : this.showFooterNotification(M, a, d);
|
|
@@ -8338,7 +8338,7 @@ $1`));
|
|
|
8338
8338
|
}));
|
|
8339
8339
|
return;
|
|
8340
8340
|
}
|
|
8341
|
-
p.inapp_notifs != null &&
|
|
8341
|
+
p.inapp_notifs != null && ss.processCampaigns(p, N, O, x), (p.webInboxSetting || p.inbox_notifs != null) && ss.handleWebInbox(p, x), p.webPushConfig && xm(p.webPushConfig, x), ss.handleVariables(p), ss.persistsEventsAndProfileData(p, x);
|
|
8342
8342
|
};
|
|
8343
8343
|
var js = i("isPersonalisationActive");
|
|
8344
8344
|
class og {
|
|
@@ -8593,7 +8593,7 @@ $1`));
|
|
|
8593
8593
|
let f = q.globalEventsMap[a];
|
|
8594
8594
|
typeof f < "u" ? (f[2] = d, f[0]++) : (f = [], f.push(1), f.push(d), f.push(d)), q.globalEventsMap[a] = f, $.saveToLSorCookie(ee, q.globalEventsMap);
|
|
8595
8595
|
}
|
|
8596
|
-
}, Us = i("request"), io = i("account"),
|
|
8596
|
+
}, Us = i("request"), io = i("account"), rs = i("oldValues"), no = i("logger"), so = i("processPrivacyArray");
|
|
8597
8597
|
class hg extends Array {
|
|
8598
8598
|
constructor(a, d) {
|
|
8599
8599
|
let {
|
|
@@ -8609,13 +8609,13 @@ $1`));
|
|
|
8609
8609
|
}), Object.defineProperty(this, io, {
|
|
8610
8610
|
writable: !0,
|
|
8611
8611
|
value: void 0
|
|
8612
|
-
}), Object.defineProperty(this,
|
|
8612
|
+
}), Object.defineProperty(this, rs, {
|
|
8613
8613
|
writable: !0,
|
|
8614
8614
|
value: void 0
|
|
8615
8615
|
}), Object.defineProperty(this, no, {
|
|
8616
8616
|
writable: !0,
|
|
8617
8617
|
value: void 0
|
|
8618
|
-
}), n(this, no)[no] = x, n(this, Us)[Us] = f, n(this, io)[io] = A, n(this,
|
|
8618
|
+
}), n(this, no)[no] = x, n(this, Us)[Us] = f, n(this, io)[io] = A, n(this, rs)[rs] = d;
|
|
8619
8619
|
}
|
|
8620
8620
|
// TODO : Do we need to check if account id is set or not here?
|
|
8621
8621
|
push() {
|
|
@@ -8624,7 +8624,7 @@ $1`));
|
|
|
8624
8624
|
return q.isPrivacyArrPushed ? n(this, so)[so](q.privacyArray.length > 0 ? q.privacyArray : d) : q.privacyArray.push(...d), 0;
|
|
8625
8625
|
}
|
|
8626
8626
|
_processOldValues() {
|
|
8627
|
-
n(this,
|
|
8627
|
+
n(this, rs)[rs] && n(this, so)[so](n(this, rs)[rs]), n(this, rs)[rs] = null;
|
|
8628
8628
|
}
|
|
8629
8629
|
}
|
|
8630
8630
|
var fg = function(a) {
|
|
@@ -8762,7 +8762,7 @@ $1`));
|
|
|
8762
8762
|
this.hadStarted = !1;
|
|
8763
8763
|
}
|
|
8764
8764
|
}
|
|
8765
|
-
var bi = i("logger"),
|
|
8765
|
+
var bi = i("logger"), os = i("account"), Ys = i("request"), oo = i("event"), Ht = i("variables"), ao = i("remoteVariables"), Qs = i("fetchCallback"), Dn = i("variablesChangedCallbacks"), on = i("oneTimeVariablesChangedCallbacks"), lo = i("hasVarsRequestCompleted"), nc = i("runVariablesChangedCallback");
|
|
8766
8766
|
class ug {
|
|
8767
8767
|
constructor(a) {
|
|
8768
8768
|
let {
|
|
@@ -8776,7 +8776,7 @@ $1`));
|
|
|
8776
8776
|
}), Object.defineProperty(this, bi, {
|
|
8777
8777
|
writable: !0,
|
|
8778
8778
|
value: void 0
|
|
8779
|
-
}), Object.defineProperty(this,
|
|
8779
|
+
}), Object.defineProperty(this, os, {
|
|
8780
8780
|
writable: !0,
|
|
8781
8781
|
value: void 0
|
|
8782
8782
|
}), Object.defineProperty(this, Ys, {
|
|
@@ -8803,7 +8803,7 @@ $1`));
|
|
|
8803
8803
|
}), Object.defineProperty(this, lo, {
|
|
8804
8804
|
writable: !0,
|
|
8805
8805
|
value: !1
|
|
8806
|
-
}), n(this, bi)[bi] = d, n(this,
|
|
8806
|
+
}), n(this, bi)[bi] = d, n(this, os)[os] = A, n(this, Ys)[Ys] = f, n(this, oo)[oo] = x, n(this, Ht)[Ht] = {}, n(this, ao)[ao] = {}, n(this, Dn)[Dn] = [], n(this, on)[on] = [], q.variableStore = this;
|
|
8807
8807
|
}
|
|
8808
8808
|
/**
|
|
8809
8809
|
* Registers a variable instance in the store.
|
|
@@ -8834,7 +8834,7 @@ $1`));
|
|
|
8834
8834
|
* @returns {Promise} - The result of the synchronization request.
|
|
8835
8835
|
*/
|
|
8836
8836
|
syncVariables(a, d) {
|
|
8837
|
-
if (!n(this,
|
|
8837
|
+
if (!n(this, os)[os].token) {
|
|
8838
8838
|
const D = "Account token is missing.";
|
|
8839
8839
|
return n(this, bi)[bi].error(D), Promise.reject(new Error(D));
|
|
8840
8840
|
}
|
|
@@ -8864,8 +8864,8 @@ $1`));
|
|
|
8864
8864
|
return n(this, bi)[bi].error(D), Promise.reject(new Error(D));
|
|
8865
8865
|
}
|
|
8866
8866
|
let x = {};
|
|
8867
|
-
x = n(this, Ys)[Ys].addSystemDataToObject(x, void 0), x.tk = n(this,
|
|
8868
|
-
const S = JSON.stringify([x, f]), v = n(this,
|
|
8867
|
+
x = n(this, Ys)[Ys].addSystemDataToObject(x, void 0), x.tk = n(this, os)[os].token, x.type = "meta";
|
|
8868
|
+
const S = JSON.stringify([x, f]), v = n(this, os)[os].dataPostPEURL;
|
|
8869
8869
|
return n(this, Ys)[Ys].post(v, S).then((D) => (a && typeof a == "function" && a(D), D)).catch((D) => {
|
|
8870
8870
|
throw d && typeof d == "function" && d(D), D.status === 400 ? n(this, bi)[bi].error("Invalid sync payload or clear the existing draft") : D.status === 401 ? n(this, bi)[bi].error("This is not a test profile") : n(this, bi)[bi].error("Sync variable failed"), D;
|
|
8871
8871
|
});
|
|
@@ -8906,14 +8906,14 @@ $1`));
|
|
|
8906
8906
|
for (var d of n(this, on)[on])
|
|
8907
8907
|
d();
|
|
8908
8908
|
n(this, on)[on].length = 0;
|
|
8909
|
-
}, Ie = i("logger"), co = i("api"), Ln = i("onloadcalled"), Ci = i("device"), ai = i("session"), st = i("account"), at = i("request"), Yi = i("variableStore"),
|
|
8909
|
+
}, Ie = i("logger"), co = i("api"), Ln = i("onloadcalled"), Ci = i("device"), ai = i("session"), st = i("account"), at = i("request"), Yi = i("variableStore"), as = i("isSpa"), ho = i("previousUrl"), Nn = i("boundCheckPageChanged"), Ws = i("dismissSpamControl"), Js = i("pageChangeTimeoutId"), sc = i("processOldValues"), rc = i("debounce"), oc = i("checkPageChanged"), ac = i("updateUnviewedBadgePosition"), fo = i("pingRequest"), lc = i("isPingContinuous"), cc = i("overrideDSyncFlag"), uo = i("sendLocationData");
|
|
8910
8910
|
class mg {
|
|
8911
8911
|
get spa() {
|
|
8912
|
-
return n(this,
|
|
8912
|
+
return n(this, as)[as];
|
|
8913
8913
|
}
|
|
8914
8914
|
set spa(a) {
|
|
8915
8915
|
const d = a === !0;
|
|
8916
|
-
n(this,
|
|
8916
|
+
n(this, as)[as] !== d && n(this, Ln)[Ln] === 1 && (d ? document.addEventListener("click", n(this, Nn)[Nn]) : document.removeEventListener("click", n(this, Nn)[Nn])), n(this, as)[as] = d;
|
|
8917
8917
|
}
|
|
8918
8918
|
get dismissSpamControl() {
|
|
8919
8919
|
return n(this, Ws)[Ws];
|
|
@@ -8965,7 +8965,7 @@ $1`));
|
|
|
8965
8965
|
}), Object.defineProperty(this, Yi, {
|
|
8966
8966
|
writable: !0,
|
|
8967
8967
|
value: void 0
|
|
8968
|
-
}), Object.defineProperty(this,
|
|
8968
|
+
}), Object.defineProperty(this, as, {
|
|
8969
8969
|
writable: !0,
|
|
8970
8970
|
value: void 0
|
|
8971
8971
|
}), Object.defineProperty(this, ho, {
|
|
@@ -8981,7 +8981,7 @@ $1`));
|
|
|
8981
8981
|
writable: !0,
|
|
8982
8982
|
value: void 0
|
|
8983
8983
|
}), this.popupCallbacks = {}, this.popupCurrentWzrkId = "", n(this, Ln)[Ln] = 0, this._isPersonalisationActive = this._isPersonalisationActive.bind(this), this.raiseNotificationClicked = () => {
|
|
8984
|
-
}, n(this, Ie)[Ie] = new hi(lr.INFO), n(this, st)[st] = new y((a = P.account) === null || a === void 0 ? void 0 : a[0], P.region || ((d = P.account) === null || d === void 0 ? void 0 : d[1]), P.targetDomain || ((f = P.account) === null || f === void 0 ? void 0 : f[2]), P.token || ((A = P.account) === null || A === void 0 ? void 0 : A[3])),
|
|
8984
|
+
}, n(this, Ie)[Ie] = new hi(lr.INFO), n(this, st)[st] = new y((a = P.account) === null || a === void 0 ? void 0 : a[0], P.region || ((d = P.account) === null || d === void 0 ? void 0 : d[1]), P.targetDomain || ((f = P.account) === null || f === void 0 ? void 0 : f[2]), P.token || ((A = P.account) === null || A === void 0 ? void 0 : A[3])), qn.key = (x = P.account) === null || x === void 0 ? void 0 : x[0].id;
|
|
8985
8985
|
const N = dh(P == null || (S = P.config) === null || S === void 0 ? void 0 : S.customId);
|
|
8986
8986
|
!N.isValid && (!(P == null || (v = P.config) === null || v === void 0) && v.customId) && n(this, Ie)[Ie].error(N.error), n(this, Ci)[Ci] = new M0({
|
|
8987
8987
|
logger: n(this, Ie)[Ie],
|
|
@@ -9030,7 +9030,7 @@ $1`));
|
|
|
9030
9030
|
session: n(this, ai)[ai]
|
|
9031
9031
|
}), this.spa = P.spa, this.dismissSpamControl = (I = P.dismissSpamControl) !== null && I !== void 0 ? I : !0, this.user = new og({
|
|
9032
9032
|
isPersonalisationActive: this._isPersonalisationActive
|
|
9033
|
-
}),
|
|
9033
|
+
}), qn.logger = n(this, Ie)[Ie], this.session = {
|
|
9034
9034
|
getTimeElapsed: () => n(this, ai)[ai].getTimeElapsed(),
|
|
9035
9035
|
getPageCount: () => n(this, ai)[ai].getPageCount()
|
|
9036
9036
|
}, this.logout = () => {
|
|
@@ -9187,8 +9187,8 @@ $1`));
|
|
|
9187
9187
|
}, this.removeValueForKey = (T) => {
|
|
9188
9188
|
this.profile._handleMultiValueDelete(T, bt);
|
|
9189
9189
|
}, this.enableLocalStorageEncryption = (T) => {
|
|
9190
|
-
|
|
9191
|
-
}, this.isLocalStorageEncryptionEnabled = () =>
|
|
9190
|
+
qn.enableLocalStorageEncryption = T;
|
|
9191
|
+
}, this.isLocalStorageEncryptionEnabled = () => qn.enableLocalStorageEncryption;
|
|
9192
9192
|
const H = (T, B, W) => {
|
|
9193
9193
|
_0(T, B, W, n(this, st)[st], n(this, Ie)[Ie]);
|
|
9194
9194
|
};
|
|
@@ -9307,7 +9307,7 @@ $1`));
|
|
|
9307
9307
|
};
|
|
9308
9308
|
if (x?.antiFlicker && Object.keys(x?.antiFlicker).length > 0 && _m(x.antiFlicker), x?.isolateSubdomain && $.saveToLSorCookie(bn, !0), n(this, Ln)[Ln] === 1)
|
|
9309
9309
|
return;
|
|
9310
|
-
if (a && (
|
|
9310
|
+
if (a && (qn.key = a), $.removeCookie("WZRK_P", window.location.hostname), !n(this, st)[st].id) {
|
|
9311
9311
|
if (!a) {
|
|
9312
9312
|
n(this, Ie)[Ie].error(S0);
|
|
9313
9313
|
return;
|
|
@@ -9322,7 +9322,7 @@ $1`));
|
|
|
9322
9322
|
const D = setInterval(() => {
|
|
9323
9323
|
n(this, Ci)[Ci].gcookie && (clearInterval(D), n(this, at)[at].processBackupEvents());
|
|
9324
9324
|
}, 3e3);
|
|
9325
|
-
n(this,
|
|
9325
|
+
n(this, as)[as] ? (document.addEventListener("click", n(this, Nn)[Nn]), window.addEventListener("popstate", n(this, Nn)[Nn])) : document.removeEventListener("click", n(this, Nn)[Nn]), n(this, Ln)[Ln] = 1;
|
|
9326
9326
|
}
|
|
9327
9327
|
// process the option array provided to the clevertap object
|
|
9328
9328
|
// after its been initialized
|
|
@@ -9569,15 +9569,14 @@ class $g {
|
|
|
9569
9569
|
app_version: e.app_version,
|
|
9570
9570
|
timestamp: e.timestamp || (/* @__PURE__ */ new Date()).toISOString()
|
|
9571
9571
|
};
|
|
9572
|
-
if ((e.user_type === "salesman" || e.user_type === "retailer") && this.trackEvent("Payment_SDK_Launched", {
|
|
9572
|
+
if ((e.user_type === "salesman" || e.user_type === "retailer" || e.user_type === "customer" || e.user_type === "internal_user") && this.trackEvent("Payment_SDK_Launched", {
|
|
9573
9573
|
...t,
|
|
9574
|
-
UserType: "Salesman"
|
|
9574
|
+
UserType: e.user_type === "internal_user" ? "Internal User" : e.user_type === "customer" ? "Customer" : "Salesman"
|
|
9575
9575
|
}), e.user_type === "salesman" && e.salesman_id)
|
|
9576
9576
|
this.trackEventViaAPI(
|
|
9577
9577
|
e.salesman_id,
|
|
9578
9578
|
"Payment_SDK_Launched",
|
|
9579
9579
|
t,
|
|
9580
|
-
// Don't add UserType to event data
|
|
9581
9580
|
{
|
|
9582
9581
|
UserType: "Salesman",
|
|
9583
9582
|
"MSG-whatsapp": !0,
|
|
@@ -9588,19 +9587,21 @@ class $g {
|
|
|
9588
9587
|
);
|
|
9589
9588
|
else {
|
|
9590
9589
|
const i = e.mobile_number || e.mobileNumber;
|
|
9591
|
-
i
|
|
9592
|
-
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9590
|
+
if (i) {
|
|
9591
|
+
const n = e.user_type === "guest" ? "Guest" : e.user_type === "internal_user" ? "Internal User" : "Customer";
|
|
9592
|
+
this.trackEventViaAPI(
|
|
9593
|
+
i,
|
|
9594
|
+
"Payment_SDK_Launched",
|
|
9595
|
+
t,
|
|
9596
|
+
{
|
|
9597
|
+
UserType: n,
|
|
9598
|
+
"MSG-whatsapp": !0,
|
|
9599
|
+
"MSG-push": !0,
|
|
9600
|
+
"MSG-sms": !0,
|
|
9601
|
+
"MSG-email": !0
|
|
9602
|
+
}
|
|
9603
|
+
);
|
|
9604
|
+
}
|
|
9604
9605
|
}
|
|
9605
9606
|
} catch {
|
|
9606
9607
|
}
|
|
@@ -9646,15 +9647,14 @@ class $g {
|
|
|
9646
9647
|
previous_attempt_id: e.previous_attempt_id || null,
|
|
9647
9648
|
timestamp: e.timestamp || (/* @__PURE__ */ new Date()).toISOString()
|
|
9648
9649
|
};
|
|
9649
|
-
if ((e.user_type === "salesman" || e.user_type === "retailer") && this.trackEvent("Payment_Transaction", {
|
|
9650
|
+
if ((e.user_type === "salesman" || e.user_type === "retailer" || e.user_type === "customer" || e.user_type === "internal_user") && this.trackEvent("Payment_Transaction", {
|
|
9650
9651
|
...t,
|
|
9651
|
-
UserType: "Salesman"
|
|
9652
|
+
UserType: e.user_type === "internal_user" ? "Internal User" : e.user_type === "customer" ? "Customer" : "Salesman"
|
|
9652
9653
|
}), e.user_type === "salesman" && e.salesman_id)
|
|
9653
9654
|
this.trackEventViaAPI(
|
|
9654
9655
|
e.salesman_id,
|
|
9655
9656
|
"Payment_Transaction",
|
|
9656
9657
|
t,
|
|
9657
|
-
// Don't add UserType to event data
|
|
9658
9658
|
{
|
|
9659
9659
|
UserType: "Salesman",
|
|
9660
9660
|
"MSG-whatsapp": !0,
|
|
@@ -9665,19 +9665,21 @@ class $g {
|
|
|
9665
9665
|
);
|
|
9666
9666
|
else {
|
|
9667
9667
|
const i = e.mobile_number || e.mobileNumber;
|
|
9668
|
-
i
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9680
|
-
|
|
9668
|
+
if (i) {
|
|
9669
|
+
const n = e.user_type === "guest" ? "Guest" : e.user_type === "internal_user" ? "Internal User" : "Customer";
|
|
9670
|
+
this.trackEventViaAPI(
|
|
9671
|
+
i,
|
|
9672
|
+
"Payment_Transaction",
|
|
9673
|
+
t,
|
|
9674
|
+
{
|
|
9675
|
+
UserType: n,
|
|
9676
|
+
"MSG-whatsapp": !0,
|
|
9677
|
+
"MSG-push": !0,
|
|
9678
|
+
"MSG-sms": !0,
|
|
9679
|
+
"MSG-email": !0
|
|
9680
|
+
}
|
|
9681
|
+
);
|
|
9682
|
+
}
|
|
9681
9683
|
}
|
|
9682
9684
|
} catch {
|
|
9683
9685
|
}
|
|
@@ -10469,16 +10471,16 @@ const An = wr.getInstance(), eA = {
|
|
|
10469
10471
|
}, wn = () => {
|
|
10470
10472
|
const l = ul();
|
|
10471
10473
|
return eA[l];
|
|
10472
|
-
},
|
|
10474
|
+
}, Vn = () => `${wn().GATEWAY_URL}/services/collection-service/collection/api/v1`, Kf = () => `${wn().GATEWAY_URL}/services/collection-service/collection/api/v2/make-payment`, _f = () => {
|
|
10473
10475
|
const l = wn();
|
|
10474
10476
|
return ul() === "production" ? `${l.API_BASE_URL_V2}/auth/api/v1` : `${l.API_BASE_URL}/auth/api/v1`;
|
|
10475
|
-
},
|
|
10477
|
+
}, us = () => wn().API_BASE_URL, pl = () => wn().CLEVERTAP_ACCOUNT_ID, ml = () => wn().CLEVERTAP_REGION, Uo = () => wn().DOCUMENT_API_URL, Fc = () => wn().PAYMENT_WEBHOOK_URL, $f = () => `${wn().GATEWAY_URL}/services/erp-service/erp/api/v1`, _s = () => wn().CREDIT_ENGINE_URL, eu = () => wn().CREDIT_ENGINE_URL_V2, of = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10476
10478
|
__proto__: null,
|
|
10477
|
-
getApiBaseUrl:
|
|
10479
|
+
getApiBaseUrl: us,
|
|
10478
10480
|
getAuthBaseUrl: _f,
|
|
10479
10481
|
getCleverTapAccountId: pl,
|
|
10480
10482
|
getCleverTapRegion: ml,
|
|
10481
|
-
getCollectionBaseUrl:
|
|
10483
|
+
getCollectionBaseUrl: Vn,
|
|
10482
10484
|
getCreditEngineUrl: _s,
|
|
10483
10485
|
getCreditEngineUrlV2: eu,
|
|
10484
10486
|
getDocumentApiUrl: Uo,
|
|
@@ -10974,7 +10976,7 @@ const Qt = {
|
|
|
10974
10976
|
)).data, PA = async (l, e) => {
|
|
10975
10977
|
const t = nt();
|
|
10976
10978
|
return (await Qt.post(
|
|
10977
|
-
`${
|
|
10979
|
+
`${Vn()}/notification/fundly-pay-otp`,
|
|
10978
10980
|
{
|
|
10979
10981
|
mobileNumber: l,
|
|
10980
10982
|
distributorName: e
|
|
@@ -10988,7 +10990,7 @@ const Qt = {
|
|
|
10988
10990
|
}
|
|
10989
10991
|
)).data;
|
|
10990
10992
|
}, OA = async (l) => (await Qt.post(
|
|
10991
|
-
`${
|
|
10993
|
+
`${Vn()}/payment-options`,
|
|
10992
10994
|
l,
|
|
10993
10995
|
{
|
|
10994
10996
|
headers: {
|
|
@@ -11042,7 +11044,7 @@ function RA(l) {
|
|
|
11042
11044
|
const i = parseInt(t[1]), n = t[2].toLowerCase();
|
|
11043
11045
|
return n.includes("hour") || n.includes("hr") ? i * 3600 : n.includes("minute") || n.includes("min") ? i * 60 : n.includes("second") || n.includes("sec") ? i : 120;
|
|
11044
11046
|
}
|
|
11045
|
-
async function
|
|
11047
|
+
async function ps(l) {
|
|
11046
11048
|
const {
|
|
11047
11049
|
salesmanName: e,
|
|
11048
11050
|
salesmanPhoneNumber: t,
|
|
@@ -11155,7 +11157,7 @@ async function us(l) {
|
|
|
11155
11157
|
t,
|
|
11156
11158
|
k
|
|
11157
11159
|
// Extract from API response
|
|
11158
|
-
),
|
|
11160
|
+
), Gn({
|
|
11159
11161
|
orderId: af(),
|
|
11160
11162
|
transactionId: C.transactionId || E.transactionId || "",
|
|
11161
11163
|
status: "success",
|
|
@@ -11191,7 +11193,7 @@ async function us(l) {
|
|
|
11191
11193
|
void 0,
|
|
11192
11194
|
u,
|
|
11193
11195
|
e
|
|
11194
|
-
),
|
|
11196
|
+
), Gn({
|
|
11195
11197
|
orderId: af(),
|
|
11196
11198
|
transactionId: "",
|
|
11197
11199
|
// Not available on failure
|
|
@@ -11246,11 +11248,11 @@ function Ir(l, e, t, i, n, s, r, o, c) {
|
|
|
11246
11248
|
c
|
|
11247
11249
|
);
|
|
11248
11250
|
}
|
|
11249
|
-
function
|
|
11251
|
+
function Gn(l) {
|
|
11250
11252
|
const e = () => {
|
|
11251
11253
|
const c = navigator.userAgent.toLowerCase();
|
|
11252
11254
|
return c.includes("android") ? "android" : c.includes("iphone") || c.includes("ipad") || c.includes("ipod") ? "ios" : "web";
|
|
11253
|
-
}, t = () => l.salesmanId && l.salesmanId > 0 ? "salesman" : l.leadId && l.leadId.trim() !== "" ? "guest" : "retailer", i = () => l.typeOfApp === "FUNDLY_COLLECT_APP" ? "collect_app" : l.typeOfApp === "FUNDLY_CUSTOMER_APP" ? "customer_app" : l.typeOfApp === "FUNDLY_QR_WEB" ? "web" : "external_app", s = ((c) => {
|
|
11255
|
+
}, t = () => l.typeOfApp === "FUNDLY_MART" ? "customer" : l.typeOfApp === "FUNDLY_TRADE" ? "internal_user" : l.salesmanId && l.salesmanId > 0 ? "salesman" : l.leadId && l.leadId.trim() !== "" ? "guest" : "retailer", i = () => l.typeOfApp === "FUNDLY_COLLECT_APP" ? "collect_app" : l.typeOfApp === "FUNDLY_CUSTOMER_APP" ? "customer_app" : l.typeOfApp === "FUNDLY_QR_WEB" ? "web" : "external_app", s = ((c) => {
|
|
11254
11256
|
const u = c.toUpperCase();
|
|
11255
11257
|
return {
|
|
11256
11258
|
CASH: { method: "cash", channel: null, mode: "offline" },
|
|
@@ -11317,7 +11319,7 @@ const zA = (l) => {
|
|
|
11317
11319
|
};
|
|
11318
11320
|
t?.dateRange && (s.fromDate = t.dateRange.from.toISOString().split("T")[0], s.toDate = t.dateRange.to.toISOString().split("T")[0]);
|
|
11319
11321
|
const o = (await Qt.post(
|
|
11320
|
-
`${
|
|
11322
|
+
`${us()}/payment/api/v1/transactions/filter`,
|
|
11321
11323
|
s,
|
|
11322
11324
|
{
|
|
11323
11325
|
headers: {
|
|
@@ -11366,7 +11368,7 @@ const zA = (l) => {
|
|
|
11366
11368
|
source: e
|
|
11367
11369
|
});
|
|
11368
11370
|
return (await Qt.get(
|
|
11369
|
-
`${
|
|
11371
|
+
`${us()}/payment/api/v1/transactions/details?${t.toString()}`,
|
|
11370
11372
|
{
|
|
11371
11373
|
headers: {
|
|
11372
11374
|
accept: "*/*",
|
|
@@ -11429,7 +11431,7 @@ const zA = (l) => {
|
|
|
11429
11431
|
maxResults: "100"
|
|
11430
11432
|
});
|
|
11431
11433
|
return e && t.append("lenderCode", e), ((await Qt.get(
|
|
11432
|
-
`${
|
|
11434
|
+
`${us()}/payment/api/v2/loan/customer-loan-summaries?${t.toString()}`,
|
|
11433
11435
|
{
|
|
11434
11436
|
headers: {
|
|
11435
11437
|
accept: "*/*",
|
|
@@ -11460,7 +11462,7 @@ const zA = (l) => {
|
|
|
11460
11462
|
};
|
|
11461
11463
|
});
|
|
11462
11464
|
}, qA = async (l, e) => ((await Qt.get(
|
|
11463
|
-
`${
|
|
11465
|
+
`${us()}/payment/api/v1/transactions/partial-payment-history?loanId=${encodeURIComponent(l)}&businessId=${encodeURIComponent(e)}`,
|
|
11464
11466
|
{
|
|
11465
11467
|
headers: {
|
|
11466
11468
|
accept: "*/*",
|
|
@@ -11478,7 +11480,7 @@ const zA = (l) => {
|
|
|
11478
11480
|
transactionId: `PP-${l}-${n + 1}`
|
|
11479
11481
|
})), ZA = async (l) => {
|
|
11480
11482
|
const e = await Qt.get(
|
|
11481
|
-
`${
|
|
11483
|
+
`${us()}/payment/api/v1/drawdown/${encodeURIComponent(l)}/payment-details`,
|
|
11482
11484
|
{
|
|
11483
11485
|
headers: {
|
|
11484
11486
|
accept: "*/*",
|
|
@@ -11498,7 +11500,7 @@ const zA = (l) => {
|
|
|
11498
11500
|
}))
|
|
11499
11501
|
};
|
|
11500
11502
|
}, KA = async (l) => (await Qt.post(
|
|
11501
|
-
`${
|
|
11503
|
+
`${us()}/payment/api/v1/repayment`,
|
|
11502
11504
|
l,
|
|
11503
11505
|
{
|
|
11504
11506
|
headers: {
|
|
@@ -11508,7 +11510,7 @@ const zA = (l) => {
|
|
|
11508
11510
|
}
|
|
11509
11511
|
}
|
|
11510
11512
|
)).data, _A = async (l) => (await Qt.get(
|
|
11511
|
-
`${
|
|
11513
|
+
`${us()}/payment/api/v1/repayment/status?pgOrderId=${encodeURIComponent(l)}`,
|
|
11512
11514
|
{
|
|
11513
11515
|
headers: {
|
|
11514
11516
|
accept: "*/*",
|
|
@@ -11564,7 +11566,7 @@ const zA = (l) => {
|
|
|
11564
11566
|
console.log("Primary QR API fetch failed, trying fallback...", we);
|
|
11565
11567
|
try {
|
|
11566
11568
|
const Te = await (await fetch(
|
|
11567
|
-
`${
|
|
11569
|
+
`${us()}/erp/api/v1/distributor/qrs`,
|
|
11568
11570
|
{
|
|
11569
11571
|
method: "GET",
|
|
11570
11572
|
headers: {
|
|
@@ -11645,7 +11647,7 @@ const zA = (l) => {
|
|
|
11645
11647
|
invoiceCount: o?.length || c?.length || 0
|
|
11646
11648
|
};
|
|
11647
11649
|
m && m.trim() !== "" ? Te.chemistBusinessId = m : g && g.trim() !== "" && (Te.leadId = g), r === "INVOICE_COLLECT" ? Te.paymentInvoice = o : r === "DIRECT_COLLECT" && (Te.invoiceIds = c), w && (Te.payerMobileNumber = w);
|
|
11648
|
-
const Ne = await
|
|
11650
|
+
const Ne = await ps(Te), Xe = Ne.data || Ne;
|
|
11649
11651
|
t && t(Xe);
|
|
11650
11652
|
} catch (ye) {
|
|
11651
11653
|
const we = ye?.response?.data?.errorMessage || ye?.response?.data?.errorDesc || ye?.response?.data?.message || ye?.message || "Payment failed. Please try again.";
|
|
@@ -11873,7 +11875,7 @@ const zA = (l) => {
|
|
|
11873
11875
|
] })
|
|
11874
11876
|
] }),
|
|
11875
11877
|
/* @__PURE__ */ b(_i, { open: j, onClose: () => R(!1), children: [
|
|
11876
|
-
/* @__PURE__ */ h(
|
|
11878
|
+
/* @__PURE__ */ h(ds, { children: /* @__PURE__ */ h("div", { className: "fp:w-full fp:flex fp:justify-end", children: /* @__PURE__ */ h(
|
|
11877
11879
|
"img",
|
|
11878
11880
|
{
|
|
11879
11881
|
src: ke.closingCross,
|
|
@@ -11966,7 +11968,7 @@ const zA = (l) => {
|
|
|
11966
11968
|
}
|
|
11967
11969
|
),
|
|
11968
11970
|
/* @__PURE__ */ b(_i, { open: F, onClose: () => U(!1), children: [
|
|
11969
|
-
/* @__PURE__ */ h(
|
|
11971
|
+
/* @__PURE__ */ h(ds, { children: /* @__PURE__ */ h("div", { className: "fp:w-full fp:flex fp:justify-end", children: /* @__PURE__ */ h(
|
|
11970
11972
|
"img",
|
|
11971
11973
|
{
|
|
11972
11974
|
src: ke.closingCross,
|
|
@@ -12938,7 +12940,7 @@ const ou = ({
|
|
|
12938
12940
|
}
|
|
12939
12941
|
);
|
|
12940
12942
|
Tr.validatePayload(Q);
|
|
12941
|
-
const _ = await
|
|
12943
|
+
const _ = await ps(Q);
|
|
12942
12944
|
return _.data || _;
|
|
12943
12945
|
} catch (Q) {
|
|
12944
12946
|
const _ = Q?.response?.data?.errorMessage || Q?.response?.data?.errorDesc || Q?.response?.data?.message || Q?.errorMessage || Q?.message || "Payment failed. Please try again.";
|
|
@@ -13434,7 +13436,7 @@ const ou = ({
|
|
|
13434
13436
|
}
|
|
13435
13437
|
);
|
|
13436
13438
|
Tr.validatePayload(Le);
|
|
13437
|
-
const je = await
|
|
13439
|
+
const je = await ps(Le), Ge = je.data || je;
|
|
13438
13440
|
Ge && !Ge.chequeNumber && (Ge.chequeNumber = C), t && t(Ge);
|
|
13439
13441
|
} catch (ie) {
|
|
13440
13442
|
const pe = ie?.response?.data?.errorMessage || ie?.response?.data?.errorDesc || ie?.response?.data?.message || ie?.message || "Cheque payment failed. Please try again.";
|
|
@@ -13980,7 +13982,7 @@ const ou = ({
|
|
|
13980
13982
|
)
|
|
13981
13983
|
] }),
|
|
13982
13984
|
/* @__PURE__ */ b(_i, { open: R, onClose: () => F(!1), children: [
|
|
13983
|
-
/* @__PURE__ */ h(
|
|
13985
|
+
/* @__PURE__ */ h(ds, { sx: { padding: "8px 12px" }, children: /* @__PURE__ */ h("div", { className: "fp:w-full fp:flex fp:justify-end", children: /* @__PURE__ */ h(
|
|
13984
13986
|
"div",
|
|
13985
13987
|
{
|
|
13986
13988
|
className: "fp:w-8 fp:h-8 fp:flex fp:items-center fp:justify-center fp:bg-gray-100 fp:hover:bg-gray-200 fp:rounded-full fp:cursor-pointer fp:shadow-md",
|
|
@@ -14013,7 +14015,7 @@ const ou = ({
|
|
|
14013
14015
|
ANNOTATIONS_DISABLE: 64,
|
|
14014
14016
|
IS_EDITING: 128,
|
|
14015
14017
|
OPLIST: 256
|
|
14016
|
-
},
|
|
14018
|
+
}, Xn = {
|
|
14017
14019
|
DISABLE: 0,
|
|
14018
14020
|
ENABLE: 1,
|
|
14019
14021
|
ENABLE_FORMS: 2,
|
|
@@ -14285,7 +14287,7 @@ class ox extends ir {
|
|
|
14285
14287
|
super(e, "FormatError");
|
|
14286
14288
|
}
|
|
14287
14289
|
}
|
|
14288
|
-
class
|
|
14290
|
+
class hs extends ir {
|
|
14289
14291
|
constructor(e) {
|
|
14290
14292
|
super(e, "AbortException");
|
|
14291
14293
|
}
|
|
@@ -14685,7 +14687,7 @@ class Yc {
|
|
|
14685
14687
|
e.div.style.transform = t, e.div.hidden = !1;
|
|
14686
14688
|
}
|
|
14687
14689
|
}
|
|
14688
|
-
const
|
|
14690
|
+
const ls = "http://www.w3.org/2000/svg";
|
|
14689
14691
|
class $s {
|
|
14690
14692
|
static CSS = 96;
|
|
14691
14693
|
static PDF = 72;
|
|
@@ -15627,7 +15629,7 @@ class Jc {
|
|
|
15627
15629
|
return t ? Ye.makeHexColor(...t) : e;
|
|
15628
15630
|
}
|
|
15629
15631
|
}
|
|
15630
|
-
class
|
|
15632
|
+
class fs {
|
|
15631
15633
|
#e = new AbortController();
|
|
15632
15634
|
#t = null;
|
|
15633
15635
|
#n = null;
|
|
@@ -15688,7 +15690,7 @@ class hs {
|
|
|
15688
15690
|
static TRANSLATE_SMALL = 1;
|
|
15689
15691
|
static TRANSLATE_BIG = 10;
|
|
15690
15692
|
static get _keyboardManager() {
|
|
15691
|
-
const e =
|
|
15693
|
+
const e = fs.prototype, t = (r) => r.#J.contains(document.activeElement) && document.activeElement.tagName !== "BUTTON" && r.hasSomethingToControl(), i = (r, {
|
|
15692
15694
|
target: o
|
|
15693
15695
|
}) => {
|
|
15694
15696
|
if (o instanceof HTMLInputElement) {
|
|
@@ -16231,7 +16233,7 @@ class hs {
|
|
|
16231
16233
|
}
|
|
16232
16234
|
}
|
|
16233
16235
|
keydown(e) {
|
|
16234
|
-
!this.isShiftKeyDown && e.key === "Shift" && (this.isShiftKeyDown = !0), this.#M !== ct.NONE && !this.isEditorHandlingKeyboard &&
|
|
16236
|
+
!this.isShiftKeyDown && e.key === "Shift" && (this.isShiftKeyDown = !0), this.#M !== ct.NONE && !this.isEditorHandlingKeyboard && fs._keyboardManager.exec(this, e);
|
|
16235
16237
|
}
|
|
16236
16238
|
keyup(e) {
|
|
16237
16239
|
this.isShiftKeyDown && e.key === "Shift" && (this.isShiftKeyDown = !1, this.#C && (this.#C = !1, this.#q("main_toolbar")));
|
|
@@ -16771,7 +16773,7 @@ class hs {
|
|
|
16771
16773
|
(this.#O ||= /* @__PURE__ */ new Map()).set(e, t);
|
|
16772
16774
|
}
|
|
16773
16775
|
}
|
|
16774
|
-
class
|
|
16776
|
+
class Wn {
|
|
16775
16777
|
#e = null;
|
|
16776
16778
|
#t = !1;
|
|
16777
16779
|
#n = null;
|
|
@@ -16787,7 +16789,7 @@ class Qn {
|
|
|
16787
16789
|
static #u = null;
|
|
16788
16790
|
static _l10n = null;
|
|
16789
16791
|
constructor(e) {
|
|
16790
|
-
this.#c = e, this.#h = e._uiManager.useNewAltTextFlow,
|
|
16792
|
+
this.#c = e, this.#h = e._uiManager.useNewAltTextFlow, Wn.#u ||= Object.freeze({
|
|
16791
16793
|
added: "pdfjs-editor-new-alt-text-added-button",
|
|
16792
16794
|
"added-label": "pdfjs-editor-new-alt-text-added-button-label",
|
|
16793
16795
|
missing: "pdfjs-editor-new-alt-text-missing-button",
|
|
@@ -16797,13 +16799,13 @@ class Qn {
|
|
|
16797
16799
|
});
|
|
16798
16800
|
}
|
|
16799
16801
|
static initialize(e) {
|
|
16800
|
-
|
|
16802
|
+
Wn._l10n ??= e;
|
|
16801
16803
|
}
|
|
16802
16804
|
async render() {
|
|
16803
16805
|
const e = this.#n = document.createElement("button");
|
|
16804
16806
|
e.className = "altText", e.tabIndex = "0";
|
|
16805
16807
|
const t = this.#i = document.createElement("span");
|
|
16806
|
-
e.append(t), this.#h ? (e.classList.add("new"), e.setAttribute("data-l10n-id",
|
|
16808
|
+
e.append(t), this.#h ? (e.classList.add("new"), e.setAttribute("data-l10n-id", Wn.#u.missing), t.setAttribute("data-l10n-id", Wn.#u["missing-label"])) : (e.setAttribute("data-l10n-id", "pdfjs-editor-alt-text-button"), t.setAttribute("data-l10n-id", "pdfjs-editor-alt-text-button-label"));
|
|
16807
16809
|
const i = this.#c._uiManager._signal;
|
|
16808
16810
|
e.addEventListener("contextmenu", fn, {
|
|
16809
16811
|
signal: i
|
|
@@ -16845,7 +16847,7 @@ class Qn {
|
|
|
16845
16847
|
return this.#l;
|
|
16846
16848
|
}
|
|
16847
16849
|
async setGuessedText(e) {
|
|
16848
|
-
this.#e === null && (this.#l = e, this.#f = await
|
|
16850
|
+
this.#e === null && (this.#l = e, this.#f = await Wn._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer", {
|
|
16849
16851
|
generatedAltText: e
|
|
16850
16852
|
}), this.#p());
|
|
16851
16853
|
}
|
|
@@ -16903,7 +16905,7 @@ class Qn {
|
|
|
16903
16905
|
if (!e)
|
|
16904
16906
|
return;
|
|
16905
16907
|
if (this.#h) {
|
|
16906
|
-
if (e.classList.toggle("done", !!this.#e), e.setAttribute("data-l10n-id",
|
|
16908
|
+
if (e.classList.toggle("done", !!this.#e), e.setAttribute("data-l10n-id", Wn.#u[this.#g]), this.#i?.setAttribute("data-l10n-id", Wn.#u[`${this.#g}-label`]), !this.#e) {
|
|
16907
16909
|
this.#o?.remove();
|
|
16908
16910
|
return;
|
|
16909
16911
|
}
|
|
@@ -17276,7 +17278,7 @@ class et {
|
|
|
17276
17278
|
static _zIndex = 1;
|
|
17277
17279
|
static _telemetryTimeout = 1e3;
|
|
17278
17280
|
static get _resizerKeyboardManager() {
|
|
17279
|
-
const e = et.prototype._resizeWithKeyboard, t =
|
|
17281
|
+
const e = et.prototype._resizeWithKeyboard, t = fs.TRANSLATE_SMALL, i = fs.TRANSLATE_BIG;
|
|
17280
17282
|
return At(this, "_resizerKeyboardManager", new Jo([[["ArrowLeft", "mac+ArrowLeft"], e, {
|
|
17281
17283
|
args: [-t, 0]
|
|
17282
17284
|
}], [["ctrl+ArrowLeft", "mac+shift+ArrowLeft"], e, {
|
|
@@ -17755,7 +17757,7 @@ class et {
|
|
|
17755
17757
|
return this.div.getBoundingClientRect();
|
|
17756
17758
|
}
|
|
17757
17759
|
createAltText() {
|
|
17758
|
-
return this.#n || (
|
|
17760
|
+
return this.#n || (Wn.initialize(et._l10n), this.#n = new Wn(this), this.#e && (this.#n.data = this.#e, this.#e = null)), this.#n;
|
|
17759
17761
|
}
|
|
17760
17762
|
get altTextData() {
|
|
17761
17763
|
return this.#n?.data;
|
|
@@ -18945,11 +18947,11 @@ const Va = {
|
|
|
18945
18947
|
function Af() {
|
|
18946
18948
|
}
|
|
18947
18949
|
function qi(l) {
|
|
18948
|
-
if (l instanceof
|
|
18950
|
+
if (l instanceof hs || l instanceof ol || l instanceof cf || l instanceof Bo || l instanceof pc)
|
|
18949
18951
|
return l;
|
|
18950
18952
|
switch (l instanceof Error || typeof l == "object" && l !== null || Vt('wrapReason: Expected "reason" to be a (possibly cloned) Error.'), l.name) {
|
|
18951
18953
|
case "AbortException":
|
|
18952
|
-
return new
|
|
18954
|
+
return new hs(l.message);
|
|
18953
18955
|
case "InvalidPDFException":
|
|
18954
18956
|
return new ol(l.message);
|
|
18955
18957
|
case "PasswordException":
|
|
@@ -19360,8 +19362,8 @@ class Sx extends Eu {
|
|
|
19360
19362
|
style: t
|
|
19361
19363
|
} = e;
|
|
19362
19364
|
t.visibility = "hidden", t.contain = "strict", t.width = t.height = 0, t.position = "absolute", t.top = t.left = 0, t.zIndex = -1;
|
|
19363
|
-
const i = this.#o.createElementNS(
|
|
19364
|
-
i.setAttribute("width", 0), i.setAttribute("height", 0), this.#n = this.#o.createElementNS(
|
|
19365
|
+
const i = this.#o.createElementNS(ls, "svg");
|
|
19366
|
+
i.setAttribute("width", 0), i.setAttribute("height", 0), this.#n = this.#o.createElementNS(ls, "defs"), e.append(i), i.append(this.#n), this.#o.body.append(e);
|
|
19365
19367
|
}
|
|
19366
19368
|
return this.#n;
|
|
19367
19369
|
}
|
|
@@ -19484,27 +19486,27 @@ class Sx extends Eu {
|
|
|
19484
19486
|
e && this.#s?.size || (this.#n?.parentNode.parentNode.remove(), this.#n = null, this.#t?.clear(), this.#t = null, this.#s?.clear(), this.#s = null, this.#r = 0);
|
|
19485
19487
|
}
|
|
19486
19488
|
#u(e) {
|
|
19487
|
-
const t = this.#o.createElementNS(
|
|
19489
|
+
const t = this.#o.createElementNS(ls, "feColorMatrix");
|
|
19488
19490
|
t.setAttribute("type", "matrix"), t.setAttribute("values", "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"), e.append(t);
|
|
19489
19491
|
}
|
|
19490
19492
|
#g(e) {
|
|
19491
|
-
const t = this.#o.createElementNS(
|
|
19493
|
+
const t = this.#o.createElementNS(ls, "feColorMatrix");
|
|
19492
19494
|
t.setAttribute("type", "matrix"), t.setAttribute("values", "0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"), e.append(t);
|
|
19493
19495
|
}
|
|
19494
19496
|
#p(e) {
|
|
19495
|
-
const t = this.#o.createElementNS(
|
|
19497
|
+
const t = this.#o.createElementNS(ls, "filter");
|
|
19496
19498
|
return t.setAttribute("color-interpolation-filters", "sRGB"), t.setAttribute("id", e), this.#l.append(t), t;
|
|
19497
19499
|
}
|
|
19498
19500
|
#d(e, t, i) {
|
|
19499
|
-
const n = this.#o.createElementNS(
|
|
19501
|
+
const n = this.#o.createElementNS(ls, t);
|
|
19500
19502
|
n.setAttribute("type", "discrete"), n.setAttribute("tableValues", i), e.append(n);
|
|
19501
19503
|
}
|
|
19502
19504
|
#m(e, t, i, n) {
|
|
19503
|
-
const s = this.#o.createElementNS(
|
|
19505
|
+
const s = this.#o.createElementNS(ls, "feComponentTransfer");
|
|
19504
19506
|
n.append(s), this.#d(s, "feFuncR", e), this.#d(s, "feFuncG", t), this.#d(s, "feFuncB", i);
|
|
19505
19507
|
}
|
|
19506
19508
|
#A(e, t) {
|
|
19507
|
-
const i = this.#o.createElementNS(
|
|
19509
|
+
const i = this.#o.createElementNS(ls, "feComponentTransfer");
|
|
19508
19510
|
t.append(i), this.#d(i, "feFuncA", e);
|
|
19509
19511
|
}
|
|
19510
19512
|
#w(e) {
|
|
@@ -22328,7 +22330,7 @@ class t2 {
|
|
|
22328
22330
|
rangeChunkSize: this._rangeChunkSize,
|
|
22329
22331
|
disableRange: this._disableRange
|
|
22330
22332
|
});
|
|
22331
|
-
this._isRangeSupported = o, this._contentLength = c || this._contentLength, this._filename = Nu(r), !this._isStreamingSupported && this._isRangeSupported && this.cancel(new
|
|
22333
|
+
this._isRangeSupported = o, this._contentLength = c || this._contentLength, this._filename = Nu(r), !this._isStreamingSupported && this._isRangeSupported && this.cancel(new hs("Streaming is disabled."));
|
|
22332
22334
|
}).catch(this._headersCapability.reject), this.onProgress = null;
|
|
22333
22335
|
}
|
|
22334
22336
|
get headersReady() {
|
|
@@ -22751,7 +22753,7 @@ class h2 {
|
|
|
22751
22753
|
e.destroy(), this._done = !0, this._readCapability.resolve();
|
|
22752
22754
|
}), e.on("error", (t) => {
|
|
22753
22755
|
this._error(t);
|
|
22754
|
-
}), !this._isStreamingSupported && this._isRangeSupported && this._error(new
|
|
22756
|
+
}), !this._isStreamingSupported && this._isRangeSupported && this._error(new hs("streaming is disabled")), this._storedError && this._readableStream.destroy(this._storedError);
|
|
22755
22757
|
}
|
|
22756
22758
|
}
|
|
22757
22759
|
class f2 {
|
|
@@ -22950,7 +22952,7 @@ let Oo = class gn {
|
|
|
22950
22952
|
}
|
|
22951
22953
|
}
|
|
22952
22954
|
cancel() {
|
|
22953
|
-
const e = new
|
|
22955
|
+
const e = new hs("TextLayer task cancelled.");
|
|
22954
22956
|
this.#c?.cancel(e).catch(() => {
|
|
22955
22957
|
}), this.#c = null, this.#e.reject(e);
|
|
22956
22958
|
}
|
|
@@ -23445,7 +23447,7 @@ class g2 {
|
|
|
23445
23447
|
canvas: t = e.canvas,
|
|
23446
23448
|
viewport: i,
|
|
23447
23449
|
intent: n = "display",
|
|
23448
|
-
annotationMode: s =
|
|
23450
|
+
annotationMode: s = Xn.ENABLE,
|
|
23449
23451
|
transform: r = null,
|
|
23450
23452
|
background: o = null,
|
|
23451
23453
|
optionalContentConfigPromise: c = null,
|
|
@@ -23520,7 +23522,7 @@ class g2 {
|
|
|
23520
23522
|
}
|
|
23521
23523
|
getOperatorList({
|
|
23522
23524
|
intent: e = "display",
|
|
23523
|
-
annotationMode: t =
|
|
23525
|
+
annotationMode: t = Xn.ENABLE,
|
|
23524
23526
|
printAnnotationStorage: i = null,
|
|
23525
23527
|
isEditing: n = !1
|
|
23526
23528
|
} = {}) {
|
|
@@ -23689,7 +23691,7 @@ class g2 {
|
|
|
23689
23691
|
return;
|
|
23690
23692
|
}
|
|
23691
23693
|
}
|
|
23692
|
-
if (e.streamReader.cancel(new
|
|
23694
|
+
if (e.streamReader.cancel(new hs(t.message)).catch(() => {
|
|
23693
23695
|
}), e.streamReader = null, !this._transport.destroyed) {
|
|
23694
23696
|
for (const [n, s] of this._intentStates)
|
|
23695
23697
|
if (s === e) {
|
|
@@ -23704,7 +23706,7 @@ class g2 {
|
|
|
23704
23706
|
return this._stats;
|
|
23705
23707
|
}
|
|
23706
23708
|
}
|
|
23707
|
-
var ws, Bn,
|
|
23709
|
+
var ws, Bn, cs, qs, hl, Zs, Ks, Wi, nl, Ou, ju, So, Nr, sl;
|
|
23708
23710
|
const oi = class oi {
|
|
23709
23711
|
constructor({
|
|
23710
23712
|
name: e = null,
|
|
@@ -23714,7 +23716,7 @@ const oi = class oi {
|
|
|
23714
23716
|
Rn(this, Wi);
|
|
23715
23717
|
Rn(this, ws, Promise.withResolvers());
|
|
23716
23718
|
Rn(this, Bn, null);
|
|
23717
|
-
Rn(this,
|
|
23719
|
+
Rn(this, cs, null);
|
|
23718
23720
|
Rn(this, qs, null);
|
|
23719
23721
|
if (this.name = e, this.destroyed = !1, this.verbosity = i, t) {
|
|
23720
23722
|
if (ri(oi, Ks).has(t))
|
|
@@ -23727,13 +23729,13 @@ const oi = class oi {
|
|
|
23727
23729
|
return ri(this, ws).promise;
|
|
23728
23730
|
}
|
|
23729
23731
|
get port() {
|
|
23730
|
-
return ri(this,
|
|
23732
|
+
return ri(this, cs);
|
|
23731
23733
|
}
|
|
23732
23734
|
get messageHandler() {
|
|
23733
23735
|
return ri(this, Bn);
|
|
23734
23736
|
}
|
|
23735
23737
|
destroy() {
|
|
23736
|
-
this.destroyed = !0, ri(this, qs)?.terminate(), Vi(this, qs, null), ri(oi, Ks).delete(ri(this,
|
|
23738
|
+
this.destroyed = !0, ri(this, qs)?.terminate(), Vi(this, qs, null), ri(oi, Ks).delete(ri(this, cs)), Vi(this, cs, null), ri(this, Bn)?.destroy(), Vi(this, Bn, null);
|
|
23737
23739
|
}
|
|
23738
23740
|
static create(e) {
|
|
23739
23741
|
const t = ri(this, Ks).get(e?.port);
|
|
@@ -23757,12 +23759,12 @@ const oi = class oi {
|
|
|
23757
23759
|
)).WorkerMessageHandler)());
|
|
23758
23760
|
}
|
|
23759
23761
|
};
|
|
23760
|
-
ws = new WeakMap(), Bn = new WeakMap(),
|
|
23762
|
+
ws = new WeakMap(), Bn = new WeakMap(), cs = new WeakMap(), qs = new WeakMap(), hl = new WeakMap(), Zs = new WeakMap(), Ks = new WeakMap(), Wi = new WeakSet(), nl = function() {
|
|
23761
23763
|
ri(this, ws).resolve(), ri(this, Bn).send("configure", {
|
|
23762
23764
|
verbosity: this.verbosity
|
|
23763
23765
|
});
|
|
23764
23766
|
}, Ou = function(e) {
|
|
23765
|
-
Vi(this,
|
|
23767
|
+
Vi(this, cs, e), Vi(this, Bn, new Mo("main", "worker", e)), ri(this, Bn).on("ready", () => {
|
|
23766
23768
|
}), zn(this, Wi, nl).call(this);
|
|
23767
23769
|
}, ju = function() {
|
|
23768
23770
|
if (ri(oi, Zs) || ri(oi, Nr, sl)) {
|
|
@@ -23788,7 +23790,7 @@ ws = new WeakMap(), Bn = new WeakMap(), ls = new WeakMap(), qs = new WeakMap(),
|
|
|
23788
23790
|
n();
|
|
23789
23791
|
return;
|
|
23790
23792
|
}
|
|
23791
|
-
Vi(this, Bn, i), Vi(this,
|
|
23793
|
+
Vi(this, Bn, i), Vi(this, cs, t), Vi(this, qs, t), zn(this, Wi, nl).call(this);
|
|
23792
23794
|
}), i.on("ready", (o) => {
|
|
23793
23795
|
if (s.abort(), this.destroyed) {
|
|
23794
23796
|
n();
|
|
@@ -23817,7 +23819,7 @@ ws = new WeakMap(), Bn = new WeakMap(), ls = new WeakMap(), qs = new WeakMap(),
|
|
|
23817
23819
|
return;
|
|
23818
23820
|
}
|
|
23819
23821
|
const t = new Ex();
|
|
23820
|
-
Vi(this,
|
|
23822
|
+
Vi(this, cs, t);
|
|
23821
23823
|
const i = `fake${nf(oi, hl)._++}`, n = new Mo(i + "_worker", i, t);
|
|
23822
23824
|
e.setup(n, t), Vi(this, Bn, new Mo(i, i + "_worker", t)), zn(this, Wi, nl).call(this);
|
|
23823
23825
|
}).catch((e) => {
|
|
@@ -23868,7 +23870,7 @@ class A2 {
|
|
|
23868
23870
|
get annotationStorage() {
|
|
23869
23871
|
return At(this, "annotationStorage", new Xc());
|
|
23870
23872
|
}
|
|
23871
|
-
getRenderingIntent(e, t =
|
|
23873
|
+
getRenderingIntent(e, t = Xn.ENABLE, i = null, n = !1, s = !1) {
|
|
23872
23874
|
let r = cn.DISPLAY, o = Sc;
|
|
23873
23875
|
switch (e) {
|
|
23874
23876
|
case "any":
|
|
@@ -23884,15 +23886,15 @@ class A2 {
|
|
|
23884
23886
|
}
|
|
23885
23887
|
const c = r & cn.PRINT && i instanceof bu ? i : this.annotationStorage;
|
|
23886
23888
|
switch (t) {
|
|
23887
|
-
case
|
|
23889
|
+
case Xn.DISABLE:
|
|
23888
23890
|
r += cn.ANNOTATIONS_DISABLE;
|
|
23889
23891
|
break;
|
|
23890
|
-
case
|
|
23892
|
+
case Xn.ENABLE:
|
|
23891
23893
|
break;
|
|
23892
|
-
case
|
|
23894
|
+
case Xn.ENABLE_FORMS:
|
|
23893
23895
|
r += cn.ANNOTATIONS_FORMS;
|
|
23894
23896
|
break;
|
|
23895
|
-
case
|
|
23897
|
+
case Xn.ENABLE_STORAGE:
|
|
23896
23898
|
r += cn.ANNOTATIONS_STORAGE, o = c.serializable;
|
|
23897
23899
|
break;
|
|
23898
23900
|
default:
|
|
@@ -23920,7 +23922,7 @@ class A2 {
|
|
|
23920
23922
|
this.#t.clear(), this.#n.clear(), this.#i.clear(), this.hasOwnProperty("annotationStorage") && this.annotationStorage.resetModified();
|
|
23921
23923
|
const t = this.messageHandler.sendWithPromise("Terminate", null);
|
|
23922
23924
|
return e.push(t), Promise.all(e).then(() => {
|
|
23923
|
-
this.commonObjs.clear(), this.fontLoader.clear(), this.#e.clear(), this.filterFactory.destroy(), Oo.cleanup(), this._networkStream?.cancelAllRequests(new
|
|
23925
|
+
this.commonObjs.clear(), this.fontLoader.clear(), this.#e.clear(), this.filterFactory.destroy(), Oo.cleanup(), this._networkStream?.cancelAllRequests(new hs("Worker was terminated.")), this.messageHandler?.destroy(), this.messageHandler = null, this.destroyCapability.resolve();
|
|
23924
23926
|
}, this.destroyCapability.reject), this.destroyCapability.promise;
|
|
23925
23927
|
}
|
|
23926
23928
|
setupMessageHandler() {
|
|
@@ -24599,7 +24601,7 @@ class w2 {
|
|
|
24599
24601
|
}
|
|
24600
24602
|
class Fo extends w2 {
|
|
24601
24603
|
_createSVG(e) {
|
|
24602
|
-
return document.createElementNS(
|
|
24604
|
+
return document.createElementNS(ls, e);
|
|
24603
24605
|
}
|
|
24604
24606
|
}
|
|
24605
24607
|
const y2 = 9, er = /* @__PURE__ */ new WeakSet(), b2 = (/* @__PURE__ */ new Date()).getTimezoneOffset() * 60 * 1e3;
|
|
@@ -26800,7 +26802,7 @@ class Ii extends et {
|
|
|
26800
26802
|
static _defaultColor = null;
|
|
26801
26803
|
static _defaultFontSize = 10;
|
|
26802
26804
|
static get _keyboardManager() {
|
|
26803
|
-
const e = Ii.prototype, t = (s) => s.isEmpty(), i =
|
|
26805
|
+
const e = Ii.prototype, t = (s) => s.isEmpty(), i = fs.TRANSLATE_SMALL, n = fs.TRANSLATE_BIG;
|
|
26804
26806
|
return At(this, "_keyboardManager", new Jo([[["ctrl+s", "mac+meta+s", "ctrl+p", "mac+meta+p"], e.commitOrRemove, {
|
|
26805
26807
|
bubbles: !0
|
|
26806
26808
|
}], [["ctrl+Enter", "mac+meta+Enter", "Escape", "mac+Escape"], e.commitOrRemove], [["ArrowLeft", "mac+ArrowLeft"], e._translateEmpty, {
|
|
@@ -29810,7 +29812,7 @@ class rd extends bl {
|
|
|
29810
29812
|
return e.updateAll(this), e;
|
|
29811
29813
|
}
|
|
29812
29814
|
}
|
|
29813
|
-
class
|
|
29815
|
+
class Qn extends ot {
|
|
29814
29816
|
#e = !1;
|
|
29815
29817
|
#t = null;
|
|
29816
29818
|
#n = null;
|
|
@@ -29887,7 +29889,7 @@ class Yn extends ot {
|
|
|
29887
29889
|
pageWidth: m,
|
|
29888
29890
|
pageHeight: g,
|
|
29889
29891
|
rotation: w,
|
|
29890
|
-
innerMargin:
|
|
29892
|
+
innerMargin: Qn._INNER_MARGIN,
|
|
29891
29893
|
mustSmooth: s,
|
|
29892
29894
|
areContours: r
|
|
29893
29895
|
});
|
|
@@ -29958,7 +29960,7 @@ class Yn extends ot {
|
|
|
29958
29960
|
} = this.#n = e;
|
|
29959
29961
|
this.#e = o instanceof Pc, this.description = i;
|
|
29960
29962
|
let c;
|
|
29961
|
-
this.#e ? c =
|
|
29963
|
+
this.#e ? c = Qn.getDefaultDrawingOptions() : (c = Qn._defaultDrawnSignatureOptions.clone(), c.updateProperties({
|
|
29962
29964
|
"stroke-width": o.thickness
|
|
29963
29965
|
})), this._addOutlines({
|
|
29964
29966
|
drawOutlines: o,
|
|
@@ -29982,7 +29984,7 @@ class Yn extends ot {
|
|
|
29982
29984
|
},
|
|
29983
29985
|
rotation: n
|
|
29984
29986
|
} = this.parent.viewport;
|
|
29985
|
-
return Gs.process(e, t, i, n,
|
|
29987
|
+
return Gs.process(e, t, i, n, Qn._INNER_MARGIN);
|
|
29986
29988
|
}
|
|
29987
29989
|
getFromText(e, t) {
|
|
29988
29990
|
const {
|
|
@@ -29992,7 +29994,7 @@ class Yn extends ot {
|
|
|
29992
29994
|
},
|
|
29993
29995
|
rotation: s
|
|
29994
29996
|
} = this.parent.viewport;
|
|
29995
|
-
return Gs.extractContoursFromText(e, t, i, n, s,
|
|
29997
|
+
return Gs.extractContoursFromText(e, t, i, n, s, Qn._INNER_MARGIN);
|
|
29996
29998
|
}
|
|
29997
29999
|
getDrawnSignature(e) {
|
|
29998
30000
|
const {
|
|
@@ -30007,7 +30009,7 @@ class Yn extends ot {
|
|
|
30007
30009
|
pageWidth: t,
|
|
30008
30010
|
pageHeight: i,
|
|
30009
30011
|
rotation: n,
|
|
30010
|
-
innerMargin:
|
|
30012
|
+
innerMargin: Qn._INNER_MARGIN,
|
|
30011
30013
|
mustSmooth: !1,
|
|
30012
30014
|
areContours: !1
|
|
30013
30015
|
});
|
|
@@ -30016,7 +30018,7 @@ class Yn extends ot {
|
|
|
30016
30018
|
areContours: e,
|
|
30017
30019
|
thickness: t
|
|
30018
30020
|
}) {
|
|
30019
|
-
e ? this._drawingOptions =
|
|
30021
|
+
e ? this._drawingOptions = Qn.getDefaultDrawingOptions() : (this._drawingOptions = Qn._defaultDrawnSignatureOptions.clone(), this._drawingOptions.updateProperties({
|
|
30020
30022
|
"stroke-width": t
|
|
30021
30023
|
}));
|
|
30022
30024
|
}
|
|
@@ -30490,7 +30492,7 @@ class Y2 extends et {
|
|
|
30490
30492
|
}), null);
|
|
30491
30493
|
}
|
|
30492
30494
|
}
|
|
30493
|
-
class
|
|
30495
|
+
class Jn {
|
|
30494
30496
|
#e;
|
|
30495
30497
|
#t = !1;
|
|
30496
30498
|
#n = null;
|
|
@@ -30508,7 +30510,7 @@ class Wn {
|
|
|
30508
30510
|
#p = -1;
|
|
30509
30511
|
#d;
|
|
30510
30512
|
static _initialized = !1;
|
|
30511
|
-
static #m = new Map([Ii, nd, Y2, pi,
|
|
30513
|
+
static #m = new Map([Ii, nd, Y2, pi, Qn].map((e) => [e._editorType, e]));
|
|
30512
30514
|
constructor({
|
|
30513
30515
|
uiManager: e,
|
|
30514
30516
|
pageIndex: t,
|
|
@@ -30521,9 +30523,9 @@ class Wn {
|
|
|
30521
30523
|
viewport: u,
|
|
30522
30524
|
l10n: m
|
|
30523
30525
|
}) {
|
|
30524
|
-
const g = [...
|
|
30525
|
-
if (!
|
|
30526
|
-
|
|
30526
|
+
const g = [...Jn.#m.values()];
|
|
30527
|
+
if (!Jn._initialized) {
|
|
30528
|
+
Jn._initialized = !0;
|
|
30527
30529
|
for (const w of g)
|
|
30528
30530
|
w.initialize(m, e);
|
|
30529
30531
|
}
|
|
@@ -30560,7 +30562,7 @@ class Wn {
|
|
|
30560
30562
|
t.toggle("commentEditing", !0);
|
|
30561
30563
|
else {
|
|
30562
30564
|
t.toggle("commentEditing", !1);
|
|
30563
|
-
for (const i of
|
|
30565
|
+
for (const i of Jn.#m.values())
|
|
30564
30566
|
t.toggle(`${i._type}Editing`, e === i._editorType);
|
|
30565
30567
|
}
|
|
30566
30568
|
this.div.hidden = !1;
|
|
@@ -30683,7 +30685,7 @@ class Wn {
|
|
|
30683
30685
|
const {
|
|
30684
30686
|
classList: t
|
|
30685
30687
|
} = this.div;
|
|
30686
|
-
for (const i of
|
|
30688
|
+
for (const i of Jn.#m.values())
|
|
30687
30689
|
t.remove(`${i._type}Editing`);
|
|
30688
30690
|
this.disableTextSelection(), this.toggleAnnotationLayerPointerEvents(!0), this.#a = !1;
|
|
30689
30691
|
}
|
|
@@ -30809,7 +30811,7 @@ class Wn {
|
|
|
30809
30811
|
return this.#d.getId();
|
|
30810
30812
|
}
|
|
30811
30813
|
get #x() {
|
|
30812
|
-
return
|
|
30814
|
+
return Jn.#m.get(this.#d.getMode());
|
|
30813
30815
|
}
|
|
30814
30816
|
combinedSignal(e) {
|
|
30815
30817
|
return this.#d.combinedSignal(e);
|
|
@@ -30838,7 +30840,7 @@ class Wn {
|
|
|
30838
30840
|
r && this.add(r);
|
|
30839
30841
|
}
|
|
30840
30842
|
async deserialize(e) {
|
|
30841
|
-
return await
|
|
30843
|
+
return await Jn.#m.get(e.annotationType ?? e.annotationEditorType)?.deserialize(e, this, this.#d) || null;
|
|
30842
30844
|
}
|
|
30843
30845
|
createAndAddNewEditor(e, t, i = {}) {
|
|
30844
30846
|
const n = this.getNextId(), s = this.#E({
|
|
@@ -31122,13 +31124,13 @@ globalThis._pdfjsTestingUtils = {
|
|
|
31122
31124
|
HighlightOutliner: Tc
|
|
31123
31125
|
};
|
|
31124
31126
|
globalThis.pdfjsLib = {
|
|
31125
|
-
AbortException:
|
|
31126
|
-
AnnotationEditorLayer:
|
|
31127
|
+
AbortException: hs,
|
|
31128
|
+
AnnotationEditorLayer: Jn,
|
|
31127
31129
|
AnnotationEditorParamsType: Dt,
|
|
31128
31130
|
AnnotationEditorType: ct,
|
|
31129
|
-
AnnotationEditorUIManager:
|
|
31131
|
+
AnnotationEditorUIManager: fs,
|
|
31130
31132
|
AnnotationLayer: id,
|
|
31131
|
-
AnnotationMode:
|
|
31133
|
+
AnnotationMode: Xn,
|
|
31132
31134
|
AnnotationType: ui,
|
|
31133
31135
|
applyOpacity: Au,
|
|
31134
31136
|
build: Fu,
|
|
@@ -31181,13 +31183,13 @@ globalThis.pdfjsLib = {
|
|
|
31181
31183
|
};
|
|
31182
31184
|
const Q2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31183
31185
|
__proto__: null,
|
|
31184
|
-
AbortException:
|
|
31185
|
-
AnnotationEditorLayer:
|
|
31186
|
+
AbortException: hs,
|
|
31187
|
+
AnnotationEditorLayer: Jn,
|
|
31186
31188
|
AnnotationEditorParamsType: Dt,
|
|
31187
31189
|
AnnotationEditorType: ct,
|
|
31188
|
-
AnnotationEditorUIManager:
|
|
31190
|
+
AnnotationEditorUIManager: fs,
|
|
31189
31191
|
AnnotationLayer: id,
|
|
31190
|
-
AnnotationMode:
|
|
31192
|
+
AnnotationMode: Xn,
|
|
31191
31193
|
AnnotationType: ui,
|
|
31192
31194
|
CSSConstants: gu,
|
|
31193
31195
|
ColorPicker: dn,
|
|
@@ -32068,7 +32070,7 @@ function Nw() {
|
|
|
32068
32070
|
}
|
|
32069
32071
|
}, [s]), s ? h(sp, { className: "react-pdf__Page__structTree structTree", node: s }) : null;
|
|
32070
32072
|
}
|
|
32071
|
-
const Qf =
|
|
32073
|
+
const Qf = Xn;
|
|
32072
32074
|
function kw(l) {
|
|
32073
32075
|
const e = Il();
|
|
32074
32076
|
Gt(e, "Unable to find Page context.");
|
|
@@ -32615,14 +32617,14 @@ const Yw = ({
|
|
|
32615
32617
|
scheduledDate: $e,
|
|
32616
32618
|
tenure: Q[_]?.tenureValue || "",
|
|
32617
32619
|
tenureUnit: Q[_]?.tenureUnit?.replace(/s$/i, "") || "",
|
|
32618
|
-
invoiceIds: m === "INVOICE_COLLECT" ? g?.map((zt) => zt.invoiceId) ?? [] : w ?? [],
|
|
32620
|
+
invoiceIds: L === "FUNDLY_MART" || L === "FUNDLY_TRADE" ? [] : m === "INVOICE_COLLECT" ? g?.map((zt) => zt.invoiceId) ?? [] : w ?? [],
|
|
32619
32621
|
sourceSystem: L,
|
|
32620
32622
|
paymentType: m
|
|
32621
32623
|
}
|
|
32622
32624
|
};
|
|
32623
32625
|
y && y.trim() !== "" ? ei.chemistBusinessId = y : E && E.trim() !== "" && (ei.leadId = E), m === "INVOICE_COLLECT" ? ei.paymentInvoice = g : m === "DIRECT_COLLECT" && (ei.invoiceIds = w, ei.paidAmount = u), (L === "FUNDLY_COLLECT_APP" || L === "FUNDLY_QR_COLLECT_APP" || L === "FUNDLY_QR_WEB" || L === "FUNDLY_TRADE") && (ei.loanDrawdownRequestDTO.mobileNumber = k, ei.loanDrawdownRequestDTO.loanInitiateOtp = we.join("")), k && (ei.payerMobileNumber = k), fe === "TRILLIONLOAN" && Ke();
|
|
32624
32626
|
try {
|
|
32625
|
-
const zt = await
|
|
32627
|
+
const zt = await ps(ei), Ut = zt?.data || zt;
|
|
32626
32628
|
Ut && !Ut.scheduleDate && (Ut.scheduleDate = $e), Ut && Zt?.lastRepaymentDate && (Ut.dueDate = Zt.lastRepaymentDate), t && t(Ut);
|
|
32627
32629
|
} catch (zt) {
|
|
32628
32630
|
const Ut = zt?.response?.data?.errorMessage || zt?.response?.data?.errorDesc || zt?.response?.data?.message || zt?.message || "Payment failed. Please try again.";
|
|
@@ -33136,7 +33138,7 @@ const Yw = ({
|
|
|
33136
33138
|
};
|
|
33137
33139
|
g && g.trim() !== "" ? ye.chemistBusinessId = g : w && w.trim() !== "" && (ye.leadId = w), n === "INVOICE_COLLECT" ? ye.paymentInvoice = s : n === "DIRECT_COLLECT" && (ye.invoiceIds = r), y && (ye.payerMobileNumber = y);
|
|
33138
33140
|
try {
|
|
33139
|
-
const we = await
|
|
33141
|
+
const we = await ps(ye), Pe = we.data || we;
|
|
33140
33142
|
ee(Pe.chemistCode || ""), Pe?.link ? (L(Pe.link), F("")) : (L(""), F("Failed to generate payment link. Please try again."), me());
|
|
33141
33143
|
} catch (we) {
|
|
33142
33144
|
L("");
|
|
@@ -33263,7 +33265,7 @@ Fundly Team`;
|
|
|
33263
33265
|
) })
|
|
33264
33266
|
] }),
|
|
33265
33267
|
/* @__PURE__ */ b(_i, { open: k, onClose: () => j(!1), children: [
|
|
33266
|
-
/* @__PURE__ */ h(
|
|
33268
|
+
/* @__PURE__ */ h(ds, { children: /* @__PURE__ */ h("div", { className: "fp:w-full fp:flex fp:justify-end", children: /* @__PURE__ */ h(
|
|
33267
33269
|
"img",
|
|
33268
33270
|
{
|
|
33269
33271
|
src: ke.closingCross,
|
|
@@ -33345,7 +33347,7 @@ Fundly Team`;
|
|
|
33345
33347
|
mobileNumber: C || void 0
|
|
33346
33348
|
};
|
|
33347
33349
|
y && y.trim() !== "" ? we.chemistBusinessId = y : E && E.trim() !== "" && (we.leadId = E), o === "INVOICE_COLLECT" ? we.paymentInvoice = c : o === "DIRECT_COLLECT" && (we.invoiceIds = u), C && (we.payerMobileNumber = C);
|
|
33348
|
-
const Pe = await
|
|
33350
|
+
const Pe = await ps(we), Te = Pe?.data || Pe, Ne = Te?.link, Xe = Te?.transactionId;
|
|
33349
33351
|
Ne && Xe ? (R(`data:image/png;base64,${Ne}`), K(""), ue(), setTimeout(() => {
|
|
33350
33352
|
oe(Xe);
|
|
33351
33353
|
}, 5e3)) : (R(""), K("Failed to generate QR. Please try again."), ne.current = setTimeout(async () => {
|
|
@@ -33362,7 +33364,7 @@ Fundly Team`;
|
|
|
33362
33364
|
if (!(me.current || ae.current))
|
|
33363
33365
|
try {
|
|
33364
33366
|
const Pe = await Qt.get(
|
|
33365
|
-
`${
|
|
33367
|
+
`${Vn()}/transactions/${we}`,
|
|
33366
33368
|
{
|
|
33367
33369
|
headers: {
|
|
33368
33370
|
Authorization: nt() ? `Bearer ${nt()}` : void 0,
|
|
@@ -33449,7 +33451,7 @@ Fundly Team`;
|
|
|
33449
33451
|
] })
|
|
33450
33452
|
] }) }),
|
|
33451
33453
|
/* @__PURE__ */ b(_i, { open: F, onClose: () => U(!1), children: [
|
|
33452
|
-
/* @__PURE__ */ h(
|
|
33454
|
+
/* @__PURE__ */ h(ds, { children: /* @__PURE__ */ h("div", { className: "fp:w-full fp:flex fp:justify-end", children: /* @__PURE__ */ h(
|
|
33453
33455
|
"img",
|
|
33454
33456
|
{
|
|
33455
33457
|
src: ke.closingCross,
|
|
@@ -33498,7 +33500,7 @@ Fundly Team`;
|
|
|
33498
33500
|
open: V,
|
|
33499
33501
|
onClose: () => Q(!1),
|
|
33500
33502
|
children: [
|
|
33501
|
-
/* @__PURE__ */ h(
|
|
33503
|
+
/* @__PURE__ */ h(ds, { children: /* @__PURE__ */ h("div", { className: "fp:w-full fp:flex fp:justify-end", children: /* @__PURE__ */ h(
|
|
33502
33504
|
"img",
|
|
33503
33505
|
{
|
|
33504
33506
|
src: ke.closingCross,
|
|
@@ -33700,7 +33702,7 @@ Fundly Team`;
|
|
|
33700
33702
|
if (!oe.current)
|
|
33701
33703
|
try {
|
|
33702
33704
|
const De = await Qt.get(
|
|
33703
|
-
`${
|
|
33705
|
+
`${Vn()}/transactions/${Qe}`,
|
|
33704
33706
|
{
|
|
33705
33707
|
headers: {
|
|
33706
33708
|
Authorization: nt() ? `Bearer ${nt()}` : void 0,
|
|
@@ -33771,7 +33773,7 @@ Fundly Team`;
|
|
|
33771
33773
|
// salesmanPhone (not available here)
|
|
33772
33774
|
vt
|
|
33773
33775
|
// Pass invoice numbers
|
|
33774
|
-
),
|
|
33776
|
+
), Gn({
|
|
33775
33777
|
orderId: Pe(),
|
|
33776
33778
|
transactionId: Qe || "",
|
|
33777
33779
|
status: "success",
|
|
@@ -33831,7 +33833,7 @@ Fundly Team`;
|
|
|
33831
33833
|
m?.trim() || void 0,
|
|
33832
33834
|
wt,
|
|
33833
33835
|
ve
|
|
33834
|
-
),
|
|
33836
|
+
), Gn({
|
|
33835
33837
|
orderId: Pe(),
|
|
33836
33838
|
transactionId: Qe || "",
|
|
33837
33839
|
status: "failed",
|
|
@@ -33877,7 +33879,7 @@ Fundly Team`;
|
|
|
33877
33879
|
if (!oe.current)
|
|
33878
33880
|
try {
|
|
33879
33881
|
const We = await Qt.get(
|
|
33880
|
-
`${
|
|
33882
|
+
`${Vn()}/transactions/${he}`,
|
|
33881
33883
|
{
|
|
33882
33884
|
headers: {
|
|
33883
33885
|
Authorization: nt() ? `Bearer ${nt()}` : void 0,
|
|
@@ -33948,7 +33950,7 @@ Fundly Team`;
|
|
|
33948
33950
|
// salesmanPhone (not available here)
|
|
33949
33951
|
St
|
|
33950
33952
|
// Pass invoice numbers
|
|
33951
|
-
),
|
|
33953
|
+
), Gn({
|
|
33952
33954
|
orderId: Pe(),
|
|
33953
33955
|
transactionId: he || "",
|
|
33954
33956
|
status: "success",
|
|
@@ -34008,7 +34010,7 @@ Fundly Team`;
|
|
|
34008
34010
|
m?.trim() || void 0,
|
|
34009
34011
|
vt,
|
|
34010
34012
|
it
|
|
34011
|
-
),
|
|
34013
|
+
), Gn({
|
|
34012
34014
|
orderId: Pe(),
|
|
34013
34015
|
transactionId: he || "",
|
|
34014
34016
|
status: "failed",
|
|
@@ -34079,7 +34081,7 @@ Fundly Team`;
|
|
|
34079
34081
|
};
|
|
34080
34082
|
E && E.trim() !== "" ? Qe.chemistBusinessId = E : C && C.trim() !== "" && (Qe.leadId = C), n === "INVOICE_COLLECT" ? Qe.paymentInvoice = s : n === "DIRECT_COLLECT" && (Qe.invoiceIds = r);
|
|
34081
34083
|
try {
|
|
34082
|
-
const We = await
|
|
34084
|
+
const We = await ps(Qe), { link: De, transactionId: Oe } = We.data || We;
|
|
34083
34085
|
if (De && Oe) {
|
|
34084
34086
|
const Ue = typeof o == "string" ? parseFloat(o) : Number(o);
|
|
34085
34087
|
ue.current = {
|
|
@@ -34092,7 +34094,7 @@ Fundly Team`;
|
|
|
34092
34094
|
if (!oe.current)
|
|
34093
34095
|
try {
|
|
34094
34096
|
const pe = await Qt.get(
|
|
34095
|
-
`${
|
|
34097
|
+
`${Vn()}/transactions/${Oe}`,
|
|
34096
34098
|
{
|
|
34097
34099
|
headers: {
|
|
34098
34100
|
Authorization: nt() ? `Bearer ${nt()}` : void 0,
|
|
@@ -34526,7 +34528,7 @@ Fundly Team`;
|
|
|
34526
34528
|
if (!fe.current)
|
|
34527
34529
|
try {
|
|
34528
34530
|
const Qe = await Qt.get(
|
|
34529
|
-
`${
|
|
34531
|
+
`${Vn()}/transactions/${Me}`,
|
|
34530
34532
|
{
|
|
34531
34533
|
headers: {
|
|
34532
34534
|
Authorization: nt() ? `Bearer ${nt()}` : void 0,
|
|
@@ -34596,7 +34598,7 @@ Fundly Team`;
|
|
|
34596
34598
|
// salesmanPhone (not available here)
|
|
34597
34599
|
Bt
|
|
34598
34600
|
// Pass invoice numbers
|
|
34599
|
-
),
|
|
34601
|
+
), Gn({
|
|
34600
34602
|
orderId: ye(),
|
|
34601
34603
|
transactionId: Me || "",
|
|
34602
34604
|
status: "success",
|
|
@@ -34655,7 +34657,7 @@ Fundly Team`;
|
|
|
34655
34657
|
m?.trim() || void 0,
|
|
34656
34658
|
St,
|
|
34657
34659
|
wt
|
|
34658
|
-
),
|
|
34660
|
+
), Gn({
|
|
34659
34661
|
orderId: ye(),
|
|
34660
34662
|
transactionId: Me || "",
|
|
34661
34663
|
status: "failed",
|
|
@@ -34701,7 +34703,7 @@ Fundly Team`;
|
|
|
34701
34703
|
if (!fe.current)
|
|
34702
34704
|
try {
|
|
34703
34705
|
const qe = await Qt.get(
|
|
34704
|
-
`${
|
|
34706
|
+
`${Vn()}/transactions/${Be}`,
|
|
34705
34707
|
{
|
|
34706
34708
|
headers: {
|
|
34707
34709
|
Authorization: nt() ? `Bearer ${nt()}` : void 0,
|
|
@@ -34771,7 +34773,7 @@ Fundly Team`;
|
|
|
34771
34773
|
// salesmanPhone (not available here)
|
|
34772
34774
|
Mt
|
|
34773
34775
|
// Pass invoice numbers
|
|
34774
|
-
),
|
|
34776
|
+
), Gn({
|
|
34775
34777
|
orderId: ye(),
|
|
34776
34778
|
transactionId: Be || "",
|
|
34777
34779
|
status: "success",
|
|
@@ -34829,7 +34831,7 @@ Fundly Team`;
|
|
|
34829
34831
|
m?.trim() || void 0,
|
|
34830
34832
|
Bt,
|
|
34831
34833
|
vt
|
|
34832
|
-
),
|
|
34834
|
+
), Gn({
|
|
34833
34835
|
orderId: ye(),
|
|
34834
34836
|
transactionId: Be || "",
|
|
34835
34837
|
status: "failed",
|
|
@@ -34896,7 +34898,7 @@ Fundly Team`;
|
|
|
34896
34898
|
};
|
|
34897
34899
|
E && E.trim() !== "" ? Me.chemistBusinessId = E : C && C.trim() !== "" && (Me.leadId = C), n === "INVOICE_COLLECT" ? Me.paymentInvoice = s : n === "DIRECT_COLLECT" && (Me.invoiceIds = r);
|
|
34898
34900
|
try {
|
|
34899
|
-
const qe = await
|
|
34901
|
+
const qe = await ps(Me), { link: Qe, transactionId: We } = qe.data || qe;
|
|
34900
34902
|
if (Qe && We) {
|
|
34901
34903
|
const De = typeof o == "string" ? parseFloat(o) : Number(o);
|
|
34902
34904
|
re.current = {
|
|
@@ -34909,7 +34911,7 @@ Fundly Team`;
|
|
|
34909
34911
|
if (!fe.current)
|
|
34910
34912
|
try {
|
|
34911
34913
|
const Ue = await Qt.get(
|
|
34912
|
-
`${
|
|
34914
|
+
`${Vn()}/transactions/${We}`,
|
|
34913
34915
|
{
|
|
34914
34916
|
headers: {
|
|
34915
34917
|
Authorization: nt() ? `Bearer ${nt()}` : void 0,
|
|
@@ -35353,7 +35355,7 @@ Fundly Team`;
|
|
|
35353
35355
|
paymentDate: c ? c.toISOString() : (/* @__PURE__ */ new Date()).toISOString()
|
|
35354
35356
|
};
|
|
35355
35357
|
Tr.validatePayload(Le);
|
|
35356
|
-
const je = await
|
|
35358
|
+
const je = await ps(Le), Ge = je.data || je;
|
|
35357
35359
|
t && t(Ge);
|
|
35358
35360
|
} catch (ie) {
|
|
35359
35361
|
const pe = ie?.response?.data?.errorMessage || ie?.response?.data?.errorDesc || ie?.response?.data?.message || ie?.message || "Bank transfer payment failed. Please try again.";
|
|
@@ -36039,10 +36041,11 @@ Fundly Team`;
|
|
|
36039
36041
|
UPI: "UPI",
|
|
36040
36042
|
NETBANKING: "NETBANKING",
|
|
36041
36043
|
BANK_TRANSFER: "BANK_TRANSFER"
|
|
36042
|
-
},
|
|
36044
|
+
}, Yn = {
|
|
36043
36045
|
FUNDLY_CUSTOMER_APP: "FUNDLY_CUSTOMER_APP",
|
|
36044
36046
|
FUNDLY_COLLECT_APP: "FUNDLY_COLLECT_APP",
|
|
36045
|
-
FUNDLY_TRADE: "FUNDLY_TRADE"
|
|
36047
|
+
FUNDLY_TRADE: "FUNDLY_TRADE",
|
|
36048
|
+
FUNDLY_MART: "FUNDLY_MART"
|
|
36046
36049
|
}, Zw = ({
|
|
36047
36050
|
open: l,
|
|
36048
36051
|
onClose: e
|
|
@@ -36093,7 +36096,7 @@ Fundly Team`;
|
|
|
36093
36096
|
onClose: e,
|
|
36094
36097
|
onConfirm: t
|
|
36095
36098
|
}) => /* @__PURE__ */ b(_i, { open: l, onClose: e, children: [
|
|
36096
|
-
/* @__PURE__ */ h(
|
|
36099
|
+
/* @__PURE__ */ h(ds, { children: /* @__PURE__ */ h("div", { className: "fp:w-full fp:flex fp:justify-end", children: /* @__PURE__ */ h(
|
|
36097
36100
|
"img",
|
|
36098
36101
|
{
|
|
36099
36102
|
src: ke.closingCross,
|
|
@@ -36409,7 +36412,7 @@ const t1 = ({
|
|
|
36409
36412
|
const ve = () => {
|
|
36410
36413
|
const ji = navigator.userAgent.toLowerCase();
|
|
36411
36414
|
return ji.includes("android") ? "android" : ji.includes("iphone") || ji.includes("ipad") || ji.includes("ipod") ? "ios" : "web";
|
|
36412
|
-
}, Ke = () => pe && pe > 0 ? "salesman" : ie && ie.trim() !== "" ? "guest" : "retailer", Je = () => ze ===
|
|
36415
|
+
}, Ke = () => ze === Yn.FUNDLY_MART ? "customer" : ze === Yn.FUNDLY_TRADE ? "internal_user" : pe && pe > 0 ? "salesman" : ie && ie.trim() !== "" ? "guest" : "retailer", Je = () => ze === Yn.FUNDLY_COLLECT_APP ? "collect_app" : ze === Yn.FUNDLY_CUSTOMER_APP ? "customer_app" : ze === "FUNDLY_QR_WEB" ? "web" : "external_app", ft = () => ze === Yn.FUNDLY_COLLECT_APP ? "collect_app" : ze === Yn.FUNDLY_CUSTOMER_APP ? "customer_app" : null, Pt = () => ze === "FUNDLY_QR_WEB" ? "invoice_qr" : De === "INVOICE_COLLECT" ? "invoice_pay_page" : De === "DIRECT_COLLECT" ? "direct_pay_page" : "invoice_qr", Xt = Oe?.map((ji) => ji.invoiceId?.toString() || ji.invoiceNumber?.toString()).filter(Boolean) || null, On = lt || `sdk_session_${Date.now()}_${Math.random().toString(36).substring(2, 11)}`, Xi = {
|
|
36413
36416
|
scan_id: je || null,
|
|
36414
36417
|
// From consumer app (salesman-app)
|
|
36415
36418
|
view_id: Ge || null,
|
|
@@ -36437,11 +36440,9 @@ const t1 = ({
|
|
|
36437
36440
|
error_code: null,
|
|
36438
36441
|
error_description: null,
|
|
36439
36442
|
failure_stage: null,
|
|
36440
|
-
sdk_version: "
|
|
36441
|
-
// From package.json
|
|
36443
|
+
sdk_version: "1.4.0-beta.2",
|
|
36442
36444
|
app_context: Je(),
|
|
36443
|
-
app_version: "
|
|
36444
|
-
// Using SDK version for now
|
|
36445
|
+
app_version: "1.4.0-beta.2",
|
|
36445
36446
|
mobile_number: Le || null
|
|
36446
36447
|
// For customer/guest tracking via API
|
|
36447
36448
|
};
|
|
@@ -36898,9 +36899,9 @@ const t1 = ({
|
|
|
36898
36899
|
}
|
|
36899
36900
|
)
|
|
36900
36901
|
] }),
|
|
36901
|
-
(Fe.includes(Ti.BANK_TRANSFER) || Fe.includes(Ti.DYNAMIC_QR) && !(ze ===
|
|
36902
|
+
(Fe.includes(Ti.BANK_TRANSFER) || Fe.includes(Ti.DYNAMIC_QR) && !(ze === Yn.FUNDLY_CUSTOMER_APP && Fe.includes(Ti.PAYMENT_LINK))) && /* @__PURE__ */ b("div", { className: "fp:w-full fp:mt-6 fp:flex fp:flex-col fp:space-y-2", children: [
|
|
36902
36903
|
/* @__PURE__ */ h("h2", { className: "fp:text-[16px] fp:font-semibold", children: "Online Payment Options" }),
|
|
36903
|
-
Fe.includes(Ti.DYNAMIC_QR) && !(ze ===
|
|
36904
|
+
Fe.includes(Ti.DYNAMIC_QR) && !(ze === Yn.FUNDLY_CUSTOMER_APP && Fe.includes(Ti.PAYMENT_LINK)) && /* @__PURE__ */ b(
|
|
36904
36905
|
"div",
|
|
36905
36906
|
{
|
|
36906
36907
|
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",
|
|
@@ -36921,7 +36922,7 @@ const t1 = ({
|
|
|
36921
36922
|
]
|
|
36922
36923
|
}
|
|
36923
36924
|
),
|
|
36924
|
-
Fe.includes(Ti.PAYMENT_LINK) && (ze ===
|
|
36925
|
+
Fe.includes(Ti.PAYMENT_LINK) && (ze === Yn.FUNDLY_COLLECT_APP || ze === Yn.FUNDLY_TRADE) && /* @__PURE__ */ b(
|
|
36925
36926
|
"div",
|
|
36926
36927
|
{
|
|
36927
36928
|
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",
|
|
@@ -37992,7 +37993,7 @@ Invoice No: ${Pe}`);
|
|
|
37992
37993
|
)
|
|
37993
37994
|
] }) }),
|
|
37994
37995
|
/* @__PURE__ */ b(_i, { open: w, onClose: R, children: [
|
|
37995
|
-
/* @__PURE__ */ h(
|
|
37996
|
+
/* @__PURE__ */ h(ds, { sx: { padding: "8px 12px" }, children: /* @__PURE__ */ b("div", { className: "fp:w-full fp:flex fp:items-center fp:justify-between", children: [
|
|
37996
37997
|
/* @__PURE__ */ h("span", { className: "fp:text-[14px] fp:font-semibold fp:text-[#222222] fp:truncate", children: L }),
|
|
37997
37998
|
/* @__PURE__ */ h(
|
|
37998
37999
|
"div",
|