@fundly.ai/payment-sdk 1.4.0-beta.7 → 1.4.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/embed.js +2 -2
- package/dist/{index-CWwtaQIc.cjs → index-Byk5pSDI.cjs} +1 -1
- package/dist/{index-C_qUb9kV.js → index-CEzdQXZE.js} +1 -1
- package/dist/{index-D4EmMaJe.js → index-CREEoAJa.js} +266 -258
- package/dist/{index-DYpkToN5.cjs → index-Cq5QBVwp.cjs} +1 -1
- package/dist/{index-CGEnN4OB.cjs → index-DmCrqrmZ.cjs} +1 -1
- package/dist/index-SA0sJUwl.cjs +675 -0
- package/dist/{index-D5aH-VRK.js → index-g8Lr9sIz.js} +2 -2
- package/dist/{index-CStY6f5I.js → index-oFC_vl02.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/screens/collection/paymentOptionPage.d.ts.map +1 -1
- package/dist/services/analytics/analytics.service.d.ts +4 -0
- package/dist/services/analytics/analytics.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-C4o820WK.cjs +0 -675
|
@@ -2,7 +2,7 @@ import { jsxs as c, Fragment as Yt, jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import dn, { useRef as Xt, useEffect as ut, createContext as Jo, useState as B, useMemo as Gr, useContext as Ho, useCallback as bn } from "react";
|
|
3
3
|
import { DotLottieReact as Tp } from "@lottiefiles/dotlottie-react";
|
|
4
4
|
import { createPortal as Fp } from "react-dom";
|
|
5
|
-
const
|
|
5
|
+
const Nn = ({ open: m, onClose: o, children: g }) => {
|
|
6
6
|
const w = Xt(null);
|
|
7
7
|
ut(() => {
|
|
8
8
|
const F = (P) => {
|
|
@@ -62,7 +62,7 @@ const Mn = ({ open: m, onClose: o, children: g }) => {
|
|
|
62
62
|
}
|
|
63
63
|
)
|
|
64
64
|
] }) : null;
|
|
65
|
-
},
|
|
65
|
+
}, En = ({ open: m, onClose: o, title: g, children: w, actions: a }) => {
|
|
66
66
|
ut(() => {
|
|
67
67
|
const P = (O) => {
|
|
68
68
|
O.key === "Escape" && m && o();
|
|
@@ -144,7 +144,7 @@ const Mn = ({ open: m, onClose: o, children: g }) => {
|
|
|
144
144
|
...o
|
|
145
145
|
};
|
|
146
146
|
return /* @__PURE__ */ n("div", { id: "dialog-title", style: w, children: m });
|
|
147
|
-
},
|
|
147
|
+
}, Mn = ({ children: m }) => /* @__PURE__ */ n(
|
|
148
148
|
"div",
|
|
149
149
|
{
|
|
150
150
|
style: {
|
|
@@ -305,7 +305,7 @@ function Xp() {
|
|
|
305
305
|
return "".concat(P, "//").concat(this.finalTargetDomain, "/e?r=1");
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
|
-
const te = new RegExp(`^\\s+|\\.|:|\\$|'|"|\\\\|\\s+$`, "g"), J = new RegExp(`^\\s+|'|"|\\\\|\\s+$`, "g"), Q = new RegExp("'", "g"), V = "clear", ve = "Charged ID", Le = "WZRK_CHARGED_ID", W = "WZRK_G", se = "WZRK_K", Ae = "WZRK_CAMP", ye = "WZRK_CAMP_G", Ie = "WZRK_S", K = 1200, ie = "WZRK_EV", me = "WZRK_META",
|
|
308
|
+
const te = new RegExp(`^\\s+|\\.|:|\\$|'|"|\\\\|\\s+$`, "g"), J = new RegExp(`^\\s+|'|"|\\\\|\\s+$`, "g"), Q = new RegExp("'", "g"), V = "clear", ve = "Charged ID", Le = "WZRK_CHARGED_ID", W = "WZRK_G", se = "WZRK_K", Ae = "WZRK_CAMP", ye = "WZRK_CAMP_G", Ie = "WZRK_S", K = 1200, ie = "WZRK_EV", me = "WZRK_META", ge = "WZRK_PR", Ee = "WZRK_ACCOUNT_ID", Oe = "WZRK_ARP", de = "WZRK_L", De = "global", q = "display", ke = "WZRK_WPR", Se = "optOut", Be = "ct_optout", he = ":OO", je = "useIP", qe = "WZRK_X", We = 100, it = "isOUL", xe = "push", re = "ping", be = 86400 * 365, Ve = 200, ct = 120 * 1e3, Qe = 300 * 1e3, Fe = "2", Ze = "cUsY", Ue = "wzrk_", Ke = "wzrk_id", et = "Notification Viewed", ce = "Notification Clicked", Ne = "WZRK_FPU", _ = "WZRK_PSD", we = "$incr", Je = "$decr", st = "$set", tt = "$add", gt = "$remove", ot = "$delete", lt = "WZRK_INBOX_CONFIG", kt = "WZRK_INBOX", rt = 15, ze = "WZRK_PE", bt = 1e3, zt = 1e3 * 60 * 10, jt = "wzrk_fetch", mt = "WZRK_PUSH_CONFIG", ht = "WZRK_APPLICATION_SERVER_KEY_RECIEVED", nt = "WZRK_WEB_PUSH_CONFIG_RECEIVED", oe = "WZRK_NOTIFICATION_PUSH_DEFERRED", Pe = "vapid_migration_prompt_shown", Te = "notif_last_time", At = 300, vt = "wzrk_wrapper", Rt = "pnWrapper", zn = "WZRK_POPUP_LOADING", Pn = "ctCustomHtmlPreview", ei = "ctWebPopupPreview", _t = "WZRK_QC", It = "_w_", Cn = "WZRK_BLOCK", xi = "WZRK_ISOLATE_SD", yt = {
|
|
309
309
|
KV_PAIR: 1,
|
|
310
310
|
BANNER: 2,
|
|
311
311
|
CAROUSEL: 3,
|
|
@@ -330,7 +330,7 @@ function Xp() {
|
|
|
330
330
|
/* Web Popup */
|
|
331
331
|
FOOTER_NOTIFICATION_2: null
|
|
332
332
|
/* Web Popup */
|
|
333
|
-
}, Et = ["Stayed", "UTM Visited", "App Launched", "Notification Sent", et, ce], Lt = [se, qe,
|
|
333
|
+
}, Et = ["Stayed", "UTM Visited", "App Launched", "Notification Sent", et, ce], Lt = [se, qe, ge], Mt = {
|
|
334
334
|
OPEN_LINK: "url",
|
|
335
335
|
OPEN_LINK_AND_CLOSE: "urlCloseNotification",
|
|
336
336
|
CLOSE: "close",
|
|
@@ -1568,7 +1568,7 @@ function Xp() {
|
|
|
1568
1568
|
this._hash = new h.init([new d.init(1779033703, 4089235720), new d.init(3144134277, 2227873595), new d.init(1013904242, 4271175723), new d.init(2773480762, 1595750129), new d.init(1359893119, 2917565137), new d.init(2600822924, 725511199), new d.init(528734635, 4215389547), new d.init(1541459225, 327033209)]);
|
|
1569
1569
|
},
|
|
1570
1570
|
_doProcessBlock: function(v, D) {
|
|
1571
|
-
for (var E = this._hash.words, L = E[0], b = E[1], x = E[2], I = E[3], M = E[4], N = E[5], j = E[6], Y = E[7], ae = L.high, T = L.low, X = b.high, ne = b.low, ee = x.high, Ye = x.low, $e = I.high, pt = I.low, Wt = M.high, Tt = M.low, Ut = N.high, Ft = N.low, $ = j.high, fe = j.low, ue = Y.high, le = Y.low, Zt = ae, Qt = T,
|
|
1571
|
+
for (var E = this._hash.words, L = E[0], b = E[1], x = E[2], I = E[3], M = E[4], N = E[5], j = E[6], Y = E[7], ae = L.high, T = L.low, X = b.high, ne = b.low, ee = x.high, Ye = x.low, $e = I.high, pt = I.low, Wt = M.high, Tt = M.low, Ut = N.high, Ft = N.low, $ = j.high, fe = j.low, ue = Y.high, le = Y.low, Zt = ae, Qt = T, yn = X, xt = ne, Ur = ee, $i = Ye, Ro = $e, Qr = pt, Zn = Wt, kn = Tt, Js = Ut, Yr = Ft, Hs = $, Jr = fe, Uo = ue, Hr = le, qn = 0; qn < 80; qn++) {
|
|
1572
1572
|
var Tn, wi, Ws = A[qn];
|
|
1573
1573
|
if (qn < 16)
|
|
1574
1574
|
wi = Ws.high = v[D + qn * 2] | 0, Tn = Ws.low = v[D + qn * 2 + 1] | 0;
|
|
@@ -1576,10 +1576,10 @@ function Xp() {
|
|
|
1576
1576
|
var Ml = A[qn - 15], er = Ml.high, Wr = Ml.low, bp = (er >>> 1 | Wr << 31) ^ (er >>> 8 | Wr << 24) ^ er >>> 7, Nl = (Wr >>> 1 | er << 31) ^ (Wr >>> 8 | er << 24) ^ (Wr >>> 7 | er << 25), Dl = A[qn - 2], tr = Dl.high, Xr = Dl.low, vp = (tr >>> 19 | Xr << 13) ^ (tr << 3 | Xr >>> 29) ^ tr >>> 6, Ll = (Xr >>> 19 | tr << 13) ^ (Xr << 3 | tr >>> 29) ^ (Xr >>> 6 | tr << 26), Sl = A[qn - 7], Ep = Sl.high, Mp = Sl.low, Bl = A[qn - 16], Np = Bl.high, kl = Bl.low;
|
|
1577
1577
|
Tn = Nl + Mp, wi = bp + Ep + (Tn >>> 0 < Nl >>> 0 ? 1 : 0), Tn = Tn + Ll, wi = wi + vp + (Tn >>> 0 < Ll >>> 0 ? 1 : 0), Tn = Tn + kl, wi = wi + Np + (Tn >>> 0 < kl >>> 0 ? 1 : 0), Ws.high = wi, Ws.low = Tn;
|
|
1578
1578
|
}
|
|
1579
|
-
var Dp = Zn & Js ^ ~Zn & Hs, jl =
|
|
1580
|
-
Uo = Hs, Hr = Jr, Hs = Js, Jr = Yr, Js = Zn, Yr =
|
|
1579
|
+
var Dp = Zn & Js ^ ~Zn & Hs, jl = kn & Yr ^ ~kn & Jr, Lp = Zt & yn ^ Zt & Ur ^ yn & Ur, Sp = Qt & xt ^ Qt & $i ^ xt & $i, Bp = (Zt >>> 28 | Qt << 4) ^ (Zt << 30 | Qt >>> 2) ^ (Zt << 25 | Qt >>> 7), Ol = (Qt >>> 28 | Zt << 4) ^ (Qt << 30 | Zt >>> 2) ^ (Qt << 25 | Zt >>> 7), kp = (Zn >>> 14 | kn << 18) ^ (Zn >>> 18 | kn << 14) ^ (Zn << 23 | kn >>> 9), jp = (kn >>> 14 | Zn << 18) ^ (kn >>> 18 | Zn << 14) ^ (kn << 23 | Zn >>> 9), Pl = C[qn], Op = Pl.high, Tl = Pl.low, jn = Hr + jp, Ci = Uo + kp + (jn >>> 0 < Hr >>> 0 ? 1 : 0), jn = jn + jl, Ci = Ci + Dp + (jn >>> 0 < jl >>> 0 ? 1 : 0), jn = jn + Tl, Ci = Ci + Op + (jn >>> 0 < Tl >>> 0 ? 1 : 0), jn = jn + Tn, Ci = Ci + wi + (jn >>> 0 < Tn >>> 0 ? 1 : 0), Fl = Ol + Sp, Pp = Bp + Lp + (Fl >>> 0 < Ol >>> 0 ? 1 : 0);
|
|
1580
|
+
Uo = Hs, Hr = Jr, Hs = Js, Jr = Yr, Js = Zn, Yr = kn, kn = Qr + jn | 0, Zn = Ro + Ci + (kn >>> 0 < Qr >>> 0 ? 1 : 0) | 0, Ro = Ur, Qr = $i, Ur = yn, $i = xt, yn = Zt, xt = Qt, Qt = jn + Fl | 0, Zt = Ci + Pp + (Qt >>> 0 < jn >>> 0 ? 1 : 0) | 0;
|
|
1581
1581
|
}
|
|
1582
|
-
T = L.low = T + Qt, L.high = ae + Zt + (T >>> 0 < Qt >>> 0 ? 1 : 0), ne = b.low = ne + xt, b.high = X +
|
|
1582
|
+
T = L.low = T + Qt, L.high = ae + Zt + (T >>> 0 < Qt >>> 0 ? 1 : 0), ne = b.low = ne + xt, b.high = X + yn + (ne >>> 0 < xt >>> 0 ? 1 : 0), Ye = x.low = Ye + $i, x.high = ee + Ur + (Ye >>> 0 < $i >>> 0 ? 1 : 0), pt = I.low = pt + Qr, I.high = $e + Ro + (pt >>> 0 < Qr >>> 0 ? 1 : 0), Tt = M.low = Tt + kn, M.high = Wt + Zn + (Tt >>> 0 < kn >>> 0 ? 1 : 0), Ft = N.low = Ft + Yr, N.high = Ut + Js + (Ft >>> 0 < Yr >>> 0 ? 1 : 0), fe = j.low = fe + Jr, j.high = $ + Hs + (fe >>> 0 < Jr >>> 0 ? 1 : 0), le = Y.low = le + Hr, Y.high = ue + Uo + (le >>> 0 < Hr >>> 0 ? 1 : 0);
|
|
1583
1583
|
},
|
|
1584
1584
|
_doFinalize: function() {
|
|
1585
1585
|
var v = this._data, D = v.words, E = this._nDataBytes * 8, L = v.sigBytes * 8;
|
|
@@ -1700,8 +1700,8 @@ function Xp() {
|
|
|
1700
1700
|
ue.high = le.high, ue.low = le.low;
|
|
1701
1701
|
for (var ae = 0; ae < 5; ae++)
|
|
1702
1702
|
for (var ne = 0; ne < 5; ne++) {
|
|
1703
|
-
var Tt = ae + 5 * ne, j = b[Tt], Zt = v[Tt], Qt = v[(ae + 1) % 5 + 5 * ne],
|
|
1704
|
-
j.high = Zt.high ^ ~Qt.high &
|
|
1703
|
+
var Tt = ae + 5 * ne, j = b[Tt], Zt = v[Tt], Qt = v[(ae + 1) % 5 + 5 * ne], yn = v[(ae + 2) % 5 + 5 * ne];
|
|
1704
|
+
j.high = Zt.high ^ ~Qt.high & yn.high, j.low = Zt.low ^ ~Qt.low & yn.low;
|
|
1705
1705
|
}
|
|
1706
1706
|
var j = b[0], xt = y[Y];
|
|
1707
1707
|
j.high ^= xt.high, j.low ^= xt.low;
|
|
@@ -1752,11 +1752,11 @@ function Xp() {
|
|
|
1752
1752
|
var ae = j + Y, T = N[ae];
|
|
1753
1753
|
N[ae] = (T << 8 | T >>> 24) & 16711935 | (T << 24 | T >>> 8) & 4278255360;
|
|
1754
1754
|
}
|
|
1755
|
-
var X = this._hash.words, ne = y.words, ee = v.words, Ye = p.words, $e = f.words, pt = C.words, Wt = A.words, Tt, Ut, Ft, $, fe, ue, le, Zt, Qt,
|
|
1756
|
-
ue = Tt = X[0], le = Ut = X[1], Zt = Ft = X[2], Qt = $ = X[3],
|
|
1755
|
+
var X = this._hash.words, ne = y.words, ee = v.words, Ye = p.words, $e = f.words, pt = C.words, Wt = A.words, Tt, Ut, Ft, $, fe, ue, le, Zt, Qt, yn;
|
|
1756
|
+
ue = Tt = X[0], le = Ut = X[1], Zt = Ft = X[2], Qt = $ = X[3], yn = fe = X[4];
|
|
1757
1757
|
for (var xt, Y = 0; Y < 80; Y += 1)
|
|
1758
|
-
xt = Tt + N[j + Ye[Y]] | 0, Y < 16 ? xt += E(Ut, Ft, $) + ne[0] : Y < 32 ? xt += L(Ut, Ft, $) + ne[1] : Y < 48 ? xt += b(Ut, Ft, $) + ne[2] : Y < 64 ? xt += x(Ut, Ft, $) + ne[3] : xt += I(Ut, Ft, $) + ne[4], xt = xt | 0, xt = M(xt, pt[Y]), xt = xt + fe | 0, Tt = fe, fe = $, $ = M(Ft, 10), Ft = Ut, Ut = xt, xt = ue + N[j + $e[Y]] | 0, Y < 16 ? xt += I(le, Zt, Qt) + ee[0] : Y < 32 ? xt += x(le, Zt, Qt) + ee[1] : Y < 48 ? xt += b(le, Zt, Qt) + ee[2] : Y < 64 ? xt += L(le, Zt, Qt) + ee[3] : xt += E(le, Zt, Qt) + ee[4], xt = xt | 0, xt = M(xt, Wt[Y]), xt = xt +
|
|
1759
|
-
xt = X[1] + Ft + Qt | 0, X[1] = X[2] + $ +
|
|
1758
|
+
xt = Tt + N[j + Ye[Y]] | 0, Y < 16 ? xt += E(Ut, Ft, $) + ne[0] : Y < 32 ? xt += L(Ut, Ft, $) + ne[1] : Y < 48 ? xt += b(Ut, Ft, $) + ne[2] : Y < 64 ? xt += x(Ut, Ft, $) + ne[3] : xt += I(Ut, Ft, $) + ne[4], xt = xt | 0, xt = M(xt, pt[Y]), xt = xt + fe | 0, Tt = fe, fe = $, $ = M(Ft, 10), Ft = Ut, Ut = xt, xt = ue + N[j + $e[Y]] | 0, Y < 16 ? xt += I(le, Zt, Qt) + ee[0] : Y < 32 ? xt += x(le, Zt, Qt) + ee[1] : Y < 48 ? xt += b(le, Zt, Qt) + ee[2] : Y < 64 ? xt += L(le, Zt, Qt) + ee[3] : xt += E(le, Zt, Qt) + ee[4], xt = xt | 0, xt = M(xt, Wt[Y]), xt = xt + yn | 0, ue = yn, yn = Qt, Qt = M(Zt, 10), Zt = le, le = xt;
|
|
1759
|
+
xt = X[1] + Ft + Qt | 0, X[1] = X[2] + $ + yn | 0, X[2] = X[3] + fe + ue | 0, X[3] = X[4] + Tt + le | 0, X[4] = X[0] + Ut + Zt | 0, X[0] = xt;
|
|
1760
1760
|
},
|
|
1761
1761
|
_doFinalize: function() {
|
|
1762
1762
|
var N = this._data, j = N.words, Y = this._nDataBytes * 8, ae = N.sigBytes * 8;
|
|
@@ -3913,10 +3913,10 @@ function Xp() {
|
|
|
3913
3913
|
globalEventsMap: void 0,
|
|
3914
3914
|
// Initialize blockRequest from storage
|
|
3915
3915
|
get blockRequest() {
|
|
3916
|
-
return k.readFromLSorCookie(
|
|
3916
|
+
return k.readFromLSorCookie(Cn) === !0;
|
|
3917
3917
|
},
|
|
3918
3918
|
set blockRequest(r) {
|
|
3919
|
-
k.saveToLSorCookie(
|
|
3919
|
+
k.saveToLSorCookie(Cn, r);
|
|
3920
3920
|
},
|
|
3921
3921
|
isOptInRequest: !1,
|
|
3922
3922
|
broadDomain: null,
|
|
@@ -4968,7 +4968,7 @@ $1`));
|
|
|
4968
4968
|
return r.relationshipStatus != null && (i.Married = "N", r.relationshipStatus === "married" && (i.Married = "Y")), t.debug("gplus usr profile " + JSON.stringify(i)), i;
|
|
4969
4969
|
}, Rs = (r, e) => {
|
|
4970
4970
|
if (k._isLocalStorageSupported()) {
|
|
4971
|
-
if (S.globalProfileMap == null && (S.globalProfileMap = k.readFromLSorCookie(
|
|
4971
|
+
if (S.globalProfileMap == null && (S.globalProfileMap = k.readFromLSorCookie(ge), S.globalProfileMap == null && (S.globalProfileMap = {})), r._custom != null) {
|
|
4972
4972
|
const t = r._custom;
|
|
4973
4973
|
for (const i in t)
|
|
4974
4974
|
t.hasOwnProperty(i) && (r[i] = t[i]);
|
|
@@ -4980,7 +4980,7 @@ $1`));
|
|
|
4980
4980
|
continue;
|
|
4981
4981
|
S.globalProfileMap[t] = r[t];
|
|
4982
4982
|
}
|
|
4983
|
-
S.globalProfileMap._custom != null && delete S.globalProfileMap._custom, k.saveToLSorCookie(
|
|
4983
|
+
S.globalProfileMap._custom != null && delete S.globalProfileMap._custom, k.saveToLSorCookie(ge, S.globalProfileMap);
|
|
4984
4984
|
}
|
|
4985
4985
|
}, Si = (r, e, t) => {
|
|
4986
4986
|
if (r != null && r !== "-1" && k._isLocalStorageSupported()) {
|
|
@@ -5061,7 +5061,7 @@ $1`));
|
|
|
5061
5061
|
a(this, oi)[oi] && a(this, Ir)[Ir](a(this, oi)[oi]), a(this, oi)[oi] = null;
|
|
5062
5062
|
}
|
|
5063
5063
|
getAttribute(e) {
|
|
5064
|
-
if (a(this, gr)[gr]() && (S.globalProfileMap == null && (S.globalProfileMap = k.readFromLSorCookie(
|
|
5064
|
+
if (a(this, gr)[gr]() && (S.globalProfileMap == null && (S.globalProfileMap = k.readFromLSorCookie(ge)), S.globalProfileMap != null))
|
|
5065
5065
|
return S.globalProfileMap[e];
|
|
5066
5066
|
}
|
|
5067
5067
|
/**
|
|
@@ -5073,12 +5073,12 @@ $1`));
|
|
|
5073
5073
|
*/
|
|
5074
5074
|
_handleIncrementDecrementValue(e, t, i) {
|
|
5075
5075
|
var s;
|
|
5076
|
-
if (S.globalProfileMap == null && (S.globalProfileMap = k.readFromLSorCookie(
|
|
5076
|
+
if (S.globalProfileMap == null && (S.globalProfileMap = k.readFromLSorCookie(ge)), S.globalProfileMap == null && !(!((s = S.globalProfileMap) === null || s === void 0) && s.hasOwnProperty(e)))
|
|
5077
5077
|
console.error("Kindly create profile with required proprty to increment/decrement.");
|
|
5078
5078
|
else if (!t || typeof t != "number" || t <= 0)
|
|
5079
5079
|
console.error("Value should be a number greater than 0");
|
|
5080
5080
|
else {
|
|
5081
|
-
i === we ? S.globalProfileMap[e] = S.globalProfileMap[e] + t : S.globalProfileMap[e] = S.globalProfileMap[e] - t, k.saveToLSorCookie(
|
|
5081
|
+
i === we ? S.globalProfileMap[e] = S.globalProfileMap[e] + t : S.globalProfileMap[e] = S.globalProfileMap[e] - t, k.saveToLSorCookie(ge, S.globalProfileMap);
|
|
5082
5082
|
let l = {};
|
|
5083
5083
|
const u = {};
|
|
5084
5084
|
l.type = "profile", u[e] = {
|
|
@@ -5086,7 +5086,7 @@ $1`));
|
|
|
5086
5086
|
}, u.tz == null && (u.tz = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]), l.profile = u, l = a(this, Kt)[Kt].addSystemDataToObject(l, !0), a(this, Kt)[Kt].addFlags(l);
|
|
5087
5087
|
const d = mn(JSON.stringify(l), a(this, Jt)[Jt]);
|
|
5088
5088
|
let h = a(this, si)[si].dataPostURL;
|
|
5089
|
-
h = dt(h, "type",
|
|
5089
|
+
h = dt(h, "type", xe), h = dt(h, "d", d), a(this, Kt)[Kt].saveAndFireRequest(h, S.blockRequest);
|
|
5090
5090
|
}
|
|
5091
5091
|
}
|
|
5092
5092
|
/**
|
|
@@ -5102,9 +5102,9 @@ $1`));
|
|
|
5102
5102
|
typeof t[u] == "number" && !s.includes(t[u]) ? s.push(t[u]) : typeof t[u] == "string" && !s.includes(t[u].toLowerCase()) ? s.push(t[u].toLowerCase()) : console.error("array supports only string or number type values");
|
|
5103
5103
|
if (S.globalProfileMap == null) {
|
|
5104
5104
|
var l;
|
|
5105
|
-
S.globalProfileMap = (l = k.readFromLSorCookie(
|
|
5105
|
+
S.globalProfileMap = (l = k.readFromLSorCookie(ge)) !== null && l !== void 0 ? l : {};
|
|
5106
5106
|
}
|
|
5107
|
-
S.globalProfileMap[e] = s, k.saveToLSorCookie(
|
|
5107
|
+
S.globalProfileMap[e] = s, k.saveToLSorCookie(ge, S.globalProfileMap), this.sendMultiValueData(e, t, i);
|
|
5108
5108
|
}
|
|
5109
5109
|
/**
|
|
5110
5110
|
*
|
|
@@ -5114,7 +5114,7 @@ $1`));
|
|
|
5114
5114
|
* Adds array or single value against a key/property in profile object
|
|
5115
5115
|
*/
|
|
5116
5116
|
_handleMultiValueAdd(e, t, i) {
|
|
5117
|
-
S.globalProfileMap == null && (S.globalProfileMap = k.readFromLSorCookie(
|
|
5117
|
+
S.globalProfileMap == null && (S.globalProfileMap = k.readFromLSorCookie(ge) || {});
|
|
5118
5118
|
const s = S.globalProfileMap[e], l = Array.isArray(s) ? s : s != null ? [s] : [], u = (d) => {
|
|
5119
5119
|
const h = typeof d == "number" ? d : d.toLowerCase();
|
|
5120
5120
|
l.includes(h) || l.push(h);
|
|
@@ -5129,7 +5129,7 @@ $1`));
|
|
|
5129
5129
|
a(this, Jt)[Jt].error("Unsupported value type");
|
|
5130
5130
|
return;
|
|
5131
5131
|
}
|
|
5132
|
-
S.globalProfileMap[e] = l, k.saveToLSorCookie(
|
|
5132
|
+
S.globalProfileMap[e] = l, k.saveToLSorCookie(ge, S.globalProfileMap), this.sendMultiValueData(e, t, i);
|
|
5133
5133
|
}
|
|
5134
5134
|
/**
|
|
5135
5135
|
*
|
|
@@ -5139,7 +5139,7 @@ $1`));
|
|
|
5139
5139
|
* removes value(s) against a key/property in profile object
|
|
5140
5140
|
*/
|
|
5141
5141
|
_handleMultiValueRemove(e, t, i) {
|
|
5142
|
-
if (S.globalProfileMap == null && (S.globalProfileMap = k.readFromLSorCookie(
|
|
5142
|
+
if (S.globalProfileMap == null && (S.globalProfileMap = k.readFromLSorCookie(ge) || {}), !S.globalProfileMap.hasOwnProperty(e)) {
|
|
5143
5143
|
a(this, Jt)[Jt].error("The property ".concat(e, " does not exist."));
|
|
5144
5144
|
return;
|
|
5145
5145
|
}
|
|
@@ -5155,7 +5155,7 @@ $1`));
|
|
|
5155
5155
|
a(this, Jt)[Jt].error("Unsupported propVal type");
|
|
5156
5156
|
return;
|
|
5157
5157
|
}
|
|
5158
|
-
S.globalProfileMap[e].length === 0 && delete S.globalProfileMap[e], k.saveToLSorCookie(
|
|
5158
|
+
S.globalProfileMap[e].length === 0 && delete S.globalProfileMap[e], k.saveToLSorCookie(ge, S.globalProfileMap), this.sendMultiValueData(e, t, i);
|
|
5159
5159
|
}
|
|
5160
5160
|
/**
|
|
5161
5161
|
*
|
|
@@ -5165,7 +5165,7 @@ $1`));
|
|
|
5165
5165
|
*/
|
|
5166
5166
|
_handleMultiValueDelete(e, t) {
|
|
5167
5167
|
var i;
|
|
5168
|
-
S.globalProfileMap == null && (S.globalProfileMap = k.readFromLSorCookie(
|
|
5168
|
+
S.globalProfileMap == null && (S.globalProfileMap = k.readFromLSorCookie(ge)), !(S == null || (i = S.globalProfileMap) === null || i === void 0) && i.hasOwnProperty(e) ? delete S.globalProfileMap[e] : a(this, Jt)[Jt].error("The property ".concat(e, " does not exist.")), k.saveToLSorCookie(ge, S.globalProfileMap), this.sendMultiValueData(e, null, t);
|
|
5169
5169
|
}
|
|
5170
5170
|
sendMultiValueData(e, t, i) {
|
|
5171
5171
|
let s = {};
|
|
@@ -5175,7 +5175,7 @@ $1`));
|
|
|
5175
5175
|
}, l.tz == null && (l.tz = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]), s.profile = l, s = a(this, Kt)[Kt].addSystemDataToObject(s, !0), a(this, Kt)[Kt].addFlags(s);
|
|
5176
5176
|
const u = mn(JSON.stringify(s), a(this, Jt)[Jt]);
|
|
5177
5177
|
let d = a(this, si)[si].dataPostURL;
|
|
5178
|
-
d = dt(d, "type",
|
|
5178
|
+
d = dt(d, "type", xe), d = dt(d, "d", u), a(this, Kt)[Kt].saveAndFireRequest(d, S.blockRequest);
|
|
5179
5179
|
}
|
|
5180
5180
|
}
|
|
5181
5181
|
var $c = function(e) {
|
|
@@ -5202,7 +5202,7 @@ $1`));
|
|
|
5202
5202
|
s.type = "profile", l.tz == null && (l.tz = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]), s.profile = l, Rs(l, !0), s = a(this, Kt)[Kt].addSystemDataToObject(s, void 0), a(this, Kt)[Kt].addFlags(s);
|
|
5203
5203
|
const u = mn(JSON.stringify(s), a(this, Jt)[Jt]);
|
|
5204
5204
|
let d = a(this, si)[si].dataPostURL;
|
|
5205
|
-
d = dt(d, "type",
|
|
5205
|
+
d = dt(d, "type", xe), d = dt(d, "d", u), a(this, Kt)[Kt].saveAndFireRequest(d, S.blockRequest);
|
|
5206
5206
|
}
|
|
5207
5207
|
}
|
|
5208
5208
|
}
|
|
@@ -5319,18 +5319,18 @@ $1`));
|
|
|
5319
5319
|
k._isLocalStorageSupported() && (d.Identity && h.push(d.Identity), d.Email && h.push(d.Email), d.GPID && h.push("GP:" + d.GPID), d.FBID && h.push("FB:" + d.FBID), h.length > 0 && i(h)), Rs(d, !0), u = a(this, Yn)[Yn].addSystemDataToObject(u, void 0), a(this, Yn)[Yn].addFlags(u), t && (u[it] = !0);
|
|
5320
5320
|
const p = mn(JSON.stringify(u), a(this, ln)[ln]);
|
|
5321
5321
|
let f = a(this, wr)[wr].dataPostURL;
|
|
5322
|
-
f = dt(f, "type",
|
|
5322
|
+
f = dt(f, "type", xe), f = dt(f, "d", p), a(this, Yn)[Yn].saveAndFireRequest(f, S.blockRequest, t);
|
|
5323
5323
|
}
|
|
5324
5324
|
}
|
|
5325
5325
|
}
|
|
5326
5326
|
}, nd = function() {
|
|
5327
|
-
S.blockRequest = !1, console.debug("Block request is false"), k._isLocalStorageSupported() && (delete localStorage[
|
|
5327
|
+
S.blockRequest = !1, console.debug("Block request is false"), k._isLocalStorageSupported() && (delete localStorage[ge], delete localStorage[ie], delete localStorage[me], delete localStorage[Oe], delete localStorage[Ae], delete localStorage[Le]), k.removeCookie(Ae, zs()), k.removeCookie(a(this, Jn)[Jn].cookieName, S.broadDomain), k.removeCookie(Oe, S.broadDomain), a(this, Jn)[Jn].setSessionCookieObject("");
|
|
5328
5328
|
}, id = function() {
|
|
5329
5329
|
S.blockRequest = !0, a(this, ln)[ln].debug("Block request is true"), S.globalCache = {
|
|
5330
5330
|
gcookie: null,
|
|
5331
5331
|
REQ_N: 0,
|
|
5332
5332
|
RESP_N: 0
|
|
5333
|
-
}, k._isLocalStorageSupported() && (delete localStorage[W], delete localStorage[se], delete localStorage[
|
|
5333
|
+
}, k._isLocalStorageSupported() && (delete localStorage[W], delete localStorage[se], delete localStorage[ge], delete localStorage[ie], delete localStorage[me], delete localStorage[Oe], delete localStorage[Ae], delete localStorage[Le]), k.removeCookie(W, S.broadDomain), k.removeCookie(Ae, zs()), k.removeCookie(se, zs()), k.removeCookie(a(this, Jn)[Jn].cookieName, S.broadDomain), k.removeCookie(Oe, S.broadDomain), a(this, li)[li].gcookie = null, a(this, Jn)[Jn].setSessionCookieObject("");
|
|
5334
5334
|
}, rd = function(e) {
|
|
5335
5335
|
if (Array.isArray(e) && e.length > 0) {
|
|
5336
5336
|
const t = e.pop();
|
|
@@ -5594,7 +5594,7 @@ $1`));
|
|
|
5594
5594
|
throw new Error("ID must be a string");
|
|
5595
5595
|
return "".concat(It).concat(r.toLowerCase());
|
|
5596
5596
|
}
|
|
5597
|
-
var hn = w("oldValues"), Re = w("logger"),
|
|
5597
|
+
var hn = w("oldValues"), Re = w("logger"), Dn = w("request"), ki = w("account"), yr = w("wizAlertJSPath"), Ht = w("fcmPublicKey"), br = w("setUpWebPush"), ji = w("isNativeWebPushSupported"), Ao = w("setUpSafariNotifications"), xo = w("setUpChromeFirefoxNotifications"), go = w("addWizAlertJS"), Io = w("removeWizAlertJS"), vr = w("handleNotificationRegistration");
|
|
5598
5598
|
class Za extends Array {
|
|
5599
5599
|
constructor(e, t) {
|
|
5600
5600
|
let {
|
|
@@ -5623,7 +5623,7 @@ $1`));
|
|
|
5623
5623
|
}), Object.defineProperty(this, Re, {
|
|
5624
5624
|
writable: !0,
|
|
5625
5625
|
value: void 0
|
|
5626
|
-
}), Object.defineProperty(this,
|
|
5626
|
+
}), Object.defineProperty(this, Dn, {
|
|
5627
5627
|
writable: !0,
|
|
5628
5628
|
value: void 0
|
|
5629
5629
|
}), Object.defineProperty(this, ki, {
|
|
@@ -5635,7 +5635,7 @@ $1`));
|
|
|
5635
5635
|
}), Object.defineProperty(this, Ht, {
|
|
5636
5636
|
writable: !0,
|
|
5637
5637
|
value: void 0
|
|
5638
|
-
}), a(this, yr)[yr] = "https://d2r1yp2w7bby2u.cloudfront.net/js/wzrk_dialog.min.js", a(this, Ht)[Ht] = null, a(this, hn)[hn] = t, a(this, Re)[Re] = i, a(this,
|
|
5638
|
+
}), a(this, yr)[yr] = "https://d2r1yp2w7bby2u.cloudfront.net/js/wzrk_dialog.min.js", a(this, Ht)[Ht] = null, a(this, hn)[hn] = t, a(this, Re)[Re] = i, a(this, Dn)[Dn] = l, a(this, ki)[ki] = u;
|
|
5639
5639
|
}
|
|
5640
5640
|
setupWebPush(e) {
|
|
5641
5641
|
a(this, br)[br](e);
|
|
@@ -5648,7 +5648,7 @@ $1`));
|
|
|
5648
5648
|
Ka({
|
|
5649
5649
|
logger: a(this, Re)[Re],
|
|
5650
5650
|
account: a(this, ki)[ki],
|
|
5651
|
-
request: a(this,
|
|
5651
|
+
request: a(this, Dn)[Dn],
|
|
5652
5652
|
displayArgs: t,
|
|
5653
5653
|
fcmPublicKey: a(this, Ht)[Ht]
|
|
5654
5654
|
}), s && l ? yo() : k.saveToLSorCookie(oe, !0);
|
|
@@ -5659,7 +5659,7 @@ $1`));
|
|
|
5659
5659
|
a(this, hn)[hn] && (Array.isArray(a(this, hn)[hn]) && a(this, hn)[hn].length > 0 && (Ka({
|
|
5660
5660
|
logger: a(this, Re)[Re],
|
|
5661
5661
|
account: a(this, ki)[ki],
|
|
5662
|
-
request: a(this,
|
|
5662
|
+
request: a(this, Dn)[Dn],
|
|
5663
5663
|
displayArgs: a(this, hn)[hn].slice(),
|
|
5664
5664
|
fcmPublicKey: a(this, Ht)[Ht]
|
|
5665
5665
|
}), k.saveToLSorCookie(oe, !0)), a(this, br)[br](a(this, hn)[hn])), a(this, hn)[hn] = null;
|
|
@@ -5695,7 +5695,7 @@ $1`));
|
|
|
5695
5695
|
userVisibleOnly: !0
|
|
5696
5696
|
})), a(this, Re)[Re].info("Subscription Data Received: " + JSON.stringify(A));
|
|
5697
5697
|
const y = JSON.parse(JSON.stringify(A));
|
|
5698
|
-
y.endpoint = y.endpoint.split("/").pop(), k.saveToLSorCookie(_, y), a(this,
|
|
5698
|
+
y.endpoint = y.endpoint.split("/").pop(), k.saveToLSorCookie(_, y), a(this, Dn)[Dn].registerToken(y), typeof e < "u" && typeof e == "function" && e();
|
|
5699
5699
|
const v = document.getElementById("bell_wrapper");
|
|
5700
5700
|
v && v.parentNode.removeChild(v), l && l.parentNode.removeChild(l), u && u.parentNode.removeChild(u);
|
|
5701
5701
|
});
|
|
@@ -5713,7 +5713,7 @@ $1`));
|
|
|
5713
5713
|
apnsWebPushId: t
|
|
5714
5714
|
})), a(this, Re)[Re].info("Subscription Data Received: " + JSON.stringify(d));
|
|
5715
5715
|
const p = document.getElementById("bell_wrapper");
|
|
5716
|
-
p && p.parentNode.removeChild(p), l && l.parentNode.removeChild(l), u && u.parentNode.removeChild(u), k.saveToLSorCookie(_, h), a(this,
|
|
5716
|
+
p && p.parentNode.removeChild(p), l && l.parentNode.removeChild(l), u && u.parentNode.removeChild(u), k.saveToLSorCookie(_, h), a(this, Dn)[Dn].registerToken(h), a(this, Re)[Re].info("Safari Web Push registered. Device Token: " + d.deviceToken);
|
|
5717
5717
|
} else d.permission === "denied" && (a(this, Re)[Re].info("Error subscribing to Safari web push"), l && l.parentNode.removeChild(l), u && u.parentNode.removeChild(u));
|
|
5718
5718
|
}));
|
|
5719
5719
|
}, pd = function(e, t) {
|
|
@@ -5728,7 +5728,7 @@ $1`));
|
|
|
5728
5728
|
s.pushManager.subscribe(l).then((h) => {
|
|
5729
5729
|
a(this, Re)[Re].info("Service Worker registered. Endpoint: " + h.endpoint), a(this, Re)[Re].debug("Service Data Sent: " + JSON.stringify(l)), a(this, Re)[Re].debug("Subscription Data Received: " + JSON.stringify(h));
|
|
5730
5730
|
const p = JSON.parse(JSON.stringify(h));
|
|
5731
|
-
qi() ? (p.endpoint = p.endpoint.split("/").pop(), p.browser = "Chrome") : Vi() && (p.endpoint = p.endpoint.split("/").pop(), p.browser = "Firefox"), k.saveToLSorCookie(_, p), a(this,
|
|
5731
|
+
qi() ? (p.endpoint = p.endpoint.split("/").pop(), p.browser = "Chrome") : Vi() && (p.endpoint = p.endpoint.split("/").pop(), p.browser = "Firefox"), k.saveToLSorCookie(_, p), a(this, Dn)[Dn].registerToken(p), typeof e < "u" && typeof e == "function" && e();
|
|
5732
5732
|
const f = document.getElementById("bell_wrapper");
|
|
5733
5733
|
f && f.parentNode.removeChild(f), u && u.parentNode.removeChild(u), d && d.parentNode.removeChild(d);
|
|
5734
5734
|
}).catch((h) => {
|
|
@@ -5823,7 +5823,7 @@ $1`));
|
|
|
5823
5823
|
};
|
|
5824
5824
|
};
|
|
5825
5825
|
const hd = "PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMi40OTYyIDUuMjQzOTVDMTIuODM5MSA1LjAzMzE3IDEzLjI4NDcgNS4xNDY4OSAxMy40OTczIDUuNDg4NjdDMTMuNzIyMyA1Ljg1MDE4IDEzLjYwMDIgNi4zMjUxOCAxMy4yMzggNi41NDkwMkM3LjM5Mzk5IDEwLjE2MDYgMy41IDE2LjYyNTcgMy41IDI0LjAwMDNDMy41IDM1LjMyMjEgMTIuNjc4MiA0NC41MDAzIDI0IDQ0LjUwMDNDMjguMDA1NSA0NC41MDAzIDMxLjc0MjYgNDMuMzUxNSAzNC45IDQxLjM2NTVDMzUuMjYwOCA0MS4xMzg1IDM1Ljc0MTYgNDEuMjM4NiAzNS45NjY4IDQxLjYwMDZDMzYuMTc5MiA0MS45NDE5IDM2LjA4NSA0Mi4zOTExIDM1Ljc0NTIgNDIuNjA2QzMyLjM0NjggNDQuNzU1OSAyOC4zMTg3IDQ2LjAwMDMgMjQgNDYuMDAwM0MxMS44NDk3IDQ2LjAwMDMgMiAzNi4xNTA1IDIgMjQuMDAwM0MyIDE2LjA2NjkgNi4xOTkyMSA5LjExNDMyIDEyLjQ5NjIgNS4yNDM5NVpNMzguOCAzOS45MDAzQzM4LjggNDAuMzk3MyAzOC4zOTcxIDQwLjgwMDMgMzcuOSA0MC44MDAzQzM3LjQwMjkgNDAuODAwMyAzNyA0MC4zOTczIDM3IDM5LjkwMDNDMzcgMzkuNDAzMiAzNy40MDI5IDM5LjAwMDMgMzcuOSAzOS4wMDAzQzM4LjM5NzEgMzkuMDAwMyAzOC44IDM5LjQwMzIgMzguOCAzOS45MDAzWiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNCAxMkMyMi44OTU0IDEyIDIyIDEyLjg5NTQgMjIgMTRWMTQuMjUyQzE4LjU0OTUgMTUuMTQwMSAxNiAxOC4yNzIzIDE2IDIyVjI5LjVIMTUuNDc2OUMxNC42NjEyIDI5LjUgMTQgMzAuMTYxMiAxNCAzMC45NzY5VjMxLjAyMzFDMTQgMzEuODM4OCAxNC42NjEyIDMyLjUgMTUuNDc2OSAzMi41SDMyLjUyMzFDMzMuMzM4OCAzMi41IDM0IDMxLjgzODggMzQgMzEuMDIzMVYzMC45NzY5QzM0IDMwLjE2MTIgMzMuMzM4OCAyOS41IDMyLjUyMzEgMjkuNUgzMlYyMkMzMiAxOC4yNzIzIDI5LjQ1MDUgMTUuMTQwMSAyNiAxNC4yNTJWMTRDMjYgMTIuODk1NCAyNS4xMDQ2IDEyIDI0IDEyWk0yNiAzNFYzMy41SDIyVjM0QzIyIDM1LjEwNDYgMjIuODk1NCAzNiAyNCAzNkMyNS4xMDQ2IDM2IDI2IDM1LjEwNDYgMjYgMzRaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K", Ad = "PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0IiByeD0iMzIiIGZpbGw9IiMwMEFFQjkiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zMS45OTg2IDIwQzMwLjkxOTggMjAgMzAuMDQyOCAyMC44NzQ2IDMwLjA0MjggMjEuOTUzNEwzMC4wNDI5IDIxLjk3MzRDMjYuNTQzNCAyMi41NTM1IDIzLjg3NSAyNS41OTQzIDIzLjg3NSAyOS4yNTgyVjM4LjA5OTVIMjMuODczNUMyMy4wNTg5IDM4LjA5OTUgMjIuMzk4NCAzOC43NiAyMi4zOTg0IDM5LjU3NDZDMjIuMzk4NCA0MC4zODkzIDIzLjA1ODkgNDEuMDQ5NyAyMy44NzM1IDQxLjA0OTdIMjkuNzgxMlY0MS43ODQyQzI5Ljc4MTIgNDMuMDA3NyAzMC43NzMxIDQzLjk5OTYgMzEuOTk2NiA0My45OTk2QzMzLjIyMDIgNDMuOTk5NiAzNC4yMTIgNDMuMDA3NyAzNC4yMTIgNDEuNzg0MlY0MS4wNDk3SDQwLjEyMzNDNDAuOTM4IDQxLjA0OTcgNDEuNTk4NCA0MC4zODkzIDQxLjU5ODQgMzkuNTc0NkM0MS41OTg0IDM4Ljc2IDQwLjkzOCAzOC4wOTk1IDQwLjEyMzMgMzguMDk5NUg0MC4xMjEyVjI5LjI1ODJDNDAuMTIxMiAyNS41OTQ2IDM3LjQ1MzMgMjIuNTU0MiAzMy45NTQzIDIxLjk3MzZMMzMuOTU0NCAyMS45NTM0QzMzLjk1NDQgMjAuODc0NiAzMy4wNzc1IDIwIDMxLjk5ODYgMjBaIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCBvcGFjaXR5PSIwLjUiIHg9IjcuNSIgeT0iNy41IiB3aWR0aD0iNDkiIGhlaWdodD0iNDkiIHJ4PSIyNC41IiBzdHJva2U9IndoaXRlIi8+CjxyZWN0IG9wYWNpdHk9IjAuMyIgeD0iNC41IiB5PSI0LjUiIHdpZHRoPSI1NSIgaGVpZ2h0PSI1NSIgcng9IjI3LjUiIHN0cm9rZT0id2hpdGUiLz4KPHJlY3Qgb3BhY2l0eT0iMC44IiB4PSIxMC41IiB5PSIxMC41IiB3aWR0aD0iNDMiIGhlaWdodD0iNDMiIHJ4PSIyMS41IiBzdHJva2U9IndoaXRlIi8+Cjwvc3ZnPgo=";
|
|
5826
|
-
let Oi = null, Er = "/clevertap_sw.js",
|
|
5826
|
+
let Oi = null, Er = "/clevertap_sw.js", Ln = null, wo = null, qa = null, Va = null, Us = null, Co = null;
|
|
5827
5827
|
const Ka = function() {
|
|
5828
5828
|
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5829
5829
|
wo = r.logger, qa = r.account, Va = r.request, Us = r.displayArgs, Co = r.fcmPublicKey;
|
|
@@ -5847,13 +5847,13 @@ $1`));
|
|
|
5847
5847
|
}
|
|
5848
5848
|
}, yo = () => {
|
|
5849
5849
|
const r = k.readFromLSorCookie(mt) || {};
|
|
5850
|
-
if (
|
|
5850
|
+
if (Ln = new Za({
|
|
5851
5851
|
logger: wo,
|
|
5852
5852
|
session: {},
|
|
5853
5853
|
request: Va,
|
|
5854
5854
|
account: qa
|
|
5855
5855
|
}), r && !(Object.keys(r).length > 0)) {
|
|
5856
|
-
|
|
5856
|
+
Ln.setApplicationServerKey(Oi), Ln.setupWebPush(Us);
|
|
5857
5857
|
return;
|
|
5858
5858
|
}
|
|
5859
5859
|
const {
|
|
@@ -5879,7 +5879,7 @@ $1`));
|
|
|
5879
5879
|
fcmPublicKey: Co,
|
|
5880
5880
|
apnsWebPushId: p,
|
|
5881
5881
|
apnsWebPushServiceUrl: f
|
|
5882
|
-
}), e && i === "old" && (
|
|
5882
|
+
}), e && i === "old" && (Ln.setApplicationServerKey(Oi), Ln.setupWebPush(Us)), k.saveToLSorCookie(oe, !1), k.saveToLSorCookie(ht, !1);
|
|
5883
5883
|
}, gd = (r) => {
|
|
5884
5884
|
if (r && r.length === 1 && fn(r[0])) {
|
|
5885
5885
|
const {
|
|
@@ -5930,7 +5930,7 @@ $1`));
|
|
|
5930
5930
|
return;
|
|
5931
5931
|
}
|
|
5932
5932
|
if (e && (Er = e), p === null && (p = !1), p) {
|
|
5933
|
-
|
|
5933
|
+
Ln.setApplicationServerKey(Oi), Ln.setUpWebPushNotifications(i, Er, d, h);
|
|
5934
5934
|
return;
|
|
5935
5935
|
}
|
|
5936
5936
|
const {
|
|
@@ -5998,7 +5998,7 @@ $1`));
|
|
|
5998
5998
|
const I = Bi() && "PushManager" in window && k.getMetaProp(Pe) && e !== null;
|
|
5999
5999
|
if (!r.isPreview && "Notification" in window && Notification !== null) {
|
|
6000
6000
|
if (Notification.permission === "granted" && (I || qi() || Vi())) {
|
|
6001
|
-
|
|
6001
|
+
Ln.setApplicationServerKey(Oi), Ln.setUpWebPushNotifications(i, Er, l, u);
|
|
6002
6002
|
return;
|
|
6003
6003
|
} else if (Notification.permission === "denied")
|
|
6004
6004
|
return;
|
|
@@ -6053,14 +6053,14 @@ $1`));
|
|
|
6053
6053
|
return (p = r.parentNode) === null || p === void 0 ? void 0 : p.removeChild(r);
|
|
6054
6054
|
};
|
|
6055
6055
|
u.addEventListener("click", () => {
|
|
6056
|
-
h(),
|
|
6056
|
+
h(), Ln.setApplicationServerKey(Oi), Ln.setUpWebPushNotifications(t, Er, s, l), typeof e == "function" && e();
|
|
6057
6057
|
}), d.addEventListener("click", () => {
|
|
6058
6058
|
h(), typeof i == "function" && i();
|
|
6059
6059
|
});
|
|
6060
6060
|
}, wd = (r, e, t, i) => {
|
|
6061
6061
|
const s = r.querySelector("#bell_icon");
|
|
6062
6062
|
s.addEventListener("click", () => {
|
|
6063
|
-
Notification.permission === "denied" ? rl(r) : (
|
|
6063
|
+
Notification.permission === "denied" ? rl(r) : (Ln.setApplicationServerKey(Oi), Ln.setUpWebPushNotifications(e, Er, t, i), Notification.permission === "granted" && r.remove());
|
|
6064
6064
|
}), s.addEventListener("mouseenter", () => Cd(r)), s.addEventListener("mouseleave", () => il(r)), r.querySelector("#close_modal").addEventListener("click", () => rl(r));
|
|
6065
6065
|
}, nl = (r, e) => {
|
|
6066
6066
|
Object.assign(r.style, {
|
|
@@ -8422,7 +8422,7 @@ $1`));
|
|
|
8422
8422
|
}
|
|
8423
8423
|
}
|
|
8424
8424
|
let Lo = 0, vl = 0;
|
|
8425
|
-
var Ct = w("logger"), xn = w("account"), Fi = w("device"), zi = w("session"), Dr = w("isPersonalisationActive"),
|
|
8425
|
+
var Ct = w("logger"), xn = w("account"), Fi = w("device"), zi = w("session"), Dr = w("isPersonalisationActive"), Sn = w("clearCookie"), So = w("getNextAvailableReqN"), Bo = w("addToLocalEventMap");
|
|
8426
8426
|
class ap {
|
|
8427
8427
|
constructor(e) {
|
|
8428
8428
|
let {
|
|
@@ -8451,7 +8451,7 @@ $1`));
|
|
|
8451
8451
|
}), Object.defineProperty(this, Dr, {
|
|
8452
8452
|
writable: !0,
|
|
8453
8453
|
value: void 0
|
|
8454
|
-
}), Object.defineProperty(this,
|
|
8454
|
+
}), Object.defineProperty(this, Sn, {
|
|
8455
8455
|
writable: !0,
|
|
8456
8456
|
value: !1
|
|
8457
8457
|
}), this.processingBackup = !1, a(this, Ct)[Ct] = t, a(this, xn)[xn] = i, a(this, Fi)[Fi] = s, a(this, zi)[zi] = l, a(this, Dr)[Dr] = u, an.logger = t, an.device = s, an.account = i;
|
|
@@ -8501,7 +8501,7 @@ $1`));
|
|
|
8501
8501
|
return e;
|
|
8502
8502
|
}
|
|
8503
8503
|
addFlags(e) {
|
|
8504
|
-
if (a(this,
|
|
8504
|
+
if (a(this, Sn)[Sn] = k.getAndClearMetaProp(V), a(this, Sn)[Sn] !== void 0 && a(this, Sn)[Sn] && (e.rc = !0, a(this, Ct)[Ct].debug("reset cookie sent in request and cleared from meta for future requests.")), a(this, Dr)[Dr]()) {
|
|
8505
8505
|
const t = k.getMetaProp("lsTime"), i = k.getMetaProp("exTs");
|
|
8506
8506
|
if (typeof t > "u" || typeof i > "u") {
|
|
8507
8507
|
e.dsync = !0;
|
|
@@ -8522,7 +8522,7 @@ $1`));
|
|
|
8522
8522
|
const l = yi(), u = a(this, So)[So]();
|
|
8523
8523
|
S.globalCache.REQ_N = u, e = dt(e, "rn", u);
|
|
8524
8524
|
const d = e + "&i=" + l + "&sn=" + Lo;
|
|
8525
|
-
k.backupEvent(d, u, a(this, Ct)[Ct]), i && k.markBackupAsOUL(u), !(S.offline || S.delayEvents) && ((!t || a(this,
|
|
8525
|
+
k.backupEvent(d, u, a(this, Ct)[Ct]), i && k.markBackupAsOUL(u), !(S.offline || S.delayEvents) && ((!t || a(this, Sn)[Sn] !== void 0 && a(this, Sn)[Sn]) && !window.isOULInProgress ? (l === vl ? Lo++ : (vl = l, Lo = 0), window.oulReqN = u, an.fireRequest(d, !1, i, s)) : a(this, Ct)[Ct].debug("Not fired due to override - ".concat(S.blockRequest, " or clearCookie - ").concat(a(this, Sn)[Sn], " or OUL request in progress - ").concat(window.isOULInProgress)));
|
|
8526
8526
|
}
|
|
8527
8527
|
unregisterTokenForGuid(e) {
|
|
8528
8528
|
const t = k.readFromLSorCookie(_);
|
|
@@ -8547,7 +8547,7 @@ $1`));
|
|
|
8547
8547
|
a(this, Bo)[Bo](e.evtName), e = this.addSystemDataToObject(e, void 0), this.addFlags(e), e[Ae] = Ua();
|
|
8548
8548
|
const t = mn(JSON.stringify(e), a(this, Ct)[Ct]);
|
|
8549
8549
|
let i = a(this, xn)[xn].dataPostURL;
|
|
8550
|
-
i = dt(i, "type",
|
|
8550
|
+
i = dt(i, "type", xe), i = dt(i, "d", t), this.saveAndFireRequest(i, S.blockRequest, !1, e.evtName);
|
|
8551
8551
|
}
|
|
8552
8552
|
post(e, t) {
|
|
8553
8553
|
return fetch(e, {
|
|
@@ -8631,7 +8631,7 @@ $1`));
|
|
|
8631
8631
|
s.type = "profile", s.profile = l, s = a(this, Ri)[Ri].addSystemDataToObject(s, void 0);
|
|
8632
8632
|
const u = mn(JSON.stringify(s), a(this, Sr)[Sr]);
|
|
8633
8633
|
let d = a(this, Lr)[Lr].dataPostURL;
|
|
8634
|
-
d = dt(d, "type",
|
|
8634
|
+
d = dt(d, "type", xe), d = dt(d, "d", u), d = dt(d, Se, t ? "true" : "false"), a(this, Ri)[Ri].saveAndFireRequest(d, S.blockRequest), e.splice(0, e.length);
|
|
8635
8635
|
}
|
|
8636
8636
|
}
|
|
8637
8637
|
}, Ui = w("variableStore");
|
|
@@ -8749,7 +8749,7 @@ $1`));
|
|
|
8749
8749
|
this.hadStarted = !1;
|
|
8750
8750
|
}
|
|
8751
8751
|
}
|
|
8752
|
-
var nn = w("logger"), fi = w("account"), Qi = w("request"), jr = w("event"), Pt = w("variables"), Or = w("remoteVariables"), Yi = w("fetchCallback"), Wn = w("variablesChangedCallbacks"),
|
|
8752
|
+
var nn = w("logger"), fi = w("account"), Qi = w("request"), jr = w("event"), Pt = w("variables"), Or = w("remoteVariables"), Yi = w("fetchCallback"), Wn = w("variablesChangedCallbacks"), Bn = w("oneTimeVariablesChangedCallbacks"), Pr = w("hasVarsRequestCompleted"), ko = w("runVariablesChangedCallback");
|
|
8753
8753
|
class fp {
|
|
8754
8754
|
constructor(e) {
|
|
8755
8755
|
let {
|
|
@@ -8784,13 +8784,13 @@ $1`));
|
|
|
8784
8784
|
}), Object.defineProperty(this, Wn, {
|
|
8785
8785
|
writable: !0,
|
|
8786
8786
|
value: void 0
|
|
8787
|
-
}), Object.defineProperty(this,
|
|
8787
|
+
}), Object.defineProperty(this, Bn, {
|
|
8788
8788
|
writable: !0,
|
|
8789
8789
|
value: void 0
|
|
8790
8790
|
}), Object.defineProperty(this, Pr, {
|
|
8791
8791
|
writable: !0,
|
|
8792
8792
|
value: !1
|
|
8793
|
-
}), a(this, nn)[nn] = t, a(this, fi)[fi] = s, a(this, Qi)[Qi] = i, a(this, jr)[jr] = l, a(this, Pt)[Pt] = {}, a(this, Or)[Or] = {}, a(this, Wn)[Wn] = [], a(this,
|
|
8793
|
+
}), a(this, nn)[nn] = t, a(this, fi)[fi] = s, a(this, Qi)[Qi] = i, a(this, jr)[jr] = l, a(this, Pt)[Pt] = {}, a(this, Or)[Or] = {}, a(this, Wn)[Wn] = [], a(this, Bn)[Bn] = [], S.variableStore = this;
|
|
8794
8794
|
}
|
|
8795
8795
|
/**
|
|
8796
8796
|
* Registers a variable instance in the store.
|
|
@@ -8876,23 +8876,23 @@ $1`));
|
|
|
8876
8876
|
e && typeof e == "function" ? (a(this, Wn)[Wn].push(e), this.hasVarsRequestCompleted() && e()) : a(this, nn)[nn].error("callback is not a function");
|
|
8877
8877
|
}
|
|
8878
8878
|
addOneTimeVariablesChangedCallback(e) {
|
|
8879
|
-
e && typeof e == "function" && (this.hasVarsRequestCompleted() ? e() : a(this,
|
|
8879
|
+
e && typeof e == "function" && (this.hasVarsRequestCompleted() ? e() : a(this, Bn)[Bn].push(e));
|
|
8880
8880
|
}
|
|
8881
8881
|
removeVariablesChangedCallback(e) {
|
|
8882
8882
|
const t = a(this, Wn)[Wn].indexOf(e);
|
|
8883
8883
|
t !== -1 && a(this, Wn)[Wn].splice(t, 1);
|
|
8884
8884
|
}
|
|
8885
8885
|
removeOneTimeVariablesChangedCallback(e) {
|
|
8886
|
-
const t = a(this,
|
|
8887
|
-
t !== -1 && a(this,
|
|
8886
|
+
const t = a(this, Bn)[Bn].indexOf(e);
|
|
8887
|
+
t !== -1 && a(this, Bn)[Bn].splice(t, 1);
|
|
8888
8888
|
}
|
|
8889
8889
|
}
|
|
8890
8890
|
var up = function() {
|
|
8891
8891
|
for (var e of a(this, Wn)[Wn])
|
|
8892
8892
|
e();
|
|
8893
|
-
for (var t of a(this,
|
|
8893
|
+
for (var t of a(this, Bn)[Bn])
|
|
8894
8894
|
t();
|
|
8895
|
-
a(this,
|
|
8895
|
+
a(this, Bn)[Bn].length = 0;
|
|
8896
8896
|
}, pe = w("logger"), Tr = w("api"), Xn = w("onloadcalled"), rn = w("device"), qt = w("session"), _e = w("account"), at = w("request"), gn = w("variableStore"), ui = w("isSpa"), Fr = w("previousUrl"), Gn = w("boundCheckPageChanged"), Ji = w("dismissSpamControl"), Hi = w("pageChangeTimeoutId"), jo = w("processOldValues"), Oo = w("debounce"), Po = w("checkPageChanged"), To = w("updateUnviewedBadgePosition"), zr = w("pingRequest"), Fo = w("isPingContinuous"), zo = w("overrideDSyncFlag"), Rr = w("sendLocationData");
|
|
8897
8897
|
class mp {
|
|
8898
8898
|
get spa() {
|
|
@@ -9301,7 +9301,7 @@ $1`));
|
|
|
9301
9301
|
}
|
|
9302
9302
|
a(this, _e)[_e].id = e, k.saveToLSorCookie(Ee, e), a(this, pe)[pe].debug("CT Initialized with Account ID: " + a(this, _e)[_e].id);
|
|
9303
9303
|
}
|
|
9304
|
-
Hd(a(this, pe)[pe], a(this, _e)[_e].id), ip(a(this, pe)[pe]), Od(), a(this, qt)[qt].cookieName = Ie + "_" + a(this, _e)[_e].id, t && (a(this, _e)[_e].region = t), i && (a(this, _e)[_e].targetDomain = i), s && (a(this, _e)[_e].token = s), l?.customId && this.createCustomIdIfValid(l.customId), k.readFromLSorCookie(
|
|
9304
|
+
Hd(a(this, pe)[pe], a(this, _e)[_e].id), ip(a(this, pe)[pe]), Od(), a(this, qt)[qt].cookieName = Ie + "_" + a(this, _e)[_e].id, t && (a(this, _e)[_e].region = t), i && (a(this, _e)[_e].targetDomain = i), s && (a(this, _e)[_e].token = s), l?.customId && this.createCustomIdIfValid(l.customId), k.readFromLSorCookie(Cn) === !0 && (a(this, pe)[pe].debug("Processing OUL backup events first to establish user identity"), a(this, at)[at].processBackupEvents(!0));
|
|
9305
9305
|
const u = location.href, d = oo(u.toLowerCase());
|
|
9306
9306
|
if (typeof d.e < "u" && d.wzrk_ex == "0")
|
|
9307
9307
|
return;
|
|
@@ -9477,7 +9477,7 @@ $1`));
|
|
|
9477
9477
|
}), t = a(this, at)[at].addSystemDataToObject(t, !0), a(this, at)[at].addFlags(t);
|
|
9478
9478
|
const s = mn(JSON.stringify(t), a(this, pe)[pe]);
|
|
9479
9479
|
let l = a(this, _e)[_e].dataPostURL;
|
|
9480
|
-
l = dt(l, "type",
|
|
9480
|
+
l = dt(l, "type", xe), l = dt(l, "d", s), a(this, at)[at].saveAndFireRequest(l, S.blockRequest);
|
|
9481
9481
|
};
|
|
9482
9482
|
const El = new mp(window.clevertap);
|
|
9483
9483
|
return window.clevertap = window.wizrocket = El, El;
|
|
@@ -10186,6 +10186,12 @@ class sr {
|
|
|
10186
10186
|
setProvider(o) {
|
|
10187
10187
|
this.provider = o;
|
|
10188
10188
|
}
|
|
10189
|
+
/**
|
|
10190
|
+
* Enable or disable all analytics tracking at runtime
|
|
10191
|
+
*/
|
|
10192
|
+
setEnabled(o) {
|
|
10193
|
+
this.enabled = o;
|
|
10194
|
+
}
|
|
10189
10195
|
/**
|
|
10190
10196
|
* Check if analytics is enabled and configured
|
|
10191
10197
|
*/
|
|
@@ -10425,7 +10431,7 @@ class sr {
|
|
|
10425
10431
|
}
|
|
10426
10432
|
}
|
|
10427
10433
|
}
|
|
10428
|
-
const
|
|
10434
|
+
const vn = sr.getInstance(), Vp = {
|
|
10429
10435
|
production: {
|
|
10430
10436
|
GATEWAY_URL: "https://gateway.fundly.ai",
|
|
10431
10437
|
API_BASE_URL: "https://api.fundly.ai",
|
|
@@ -10721,7 +10727,7 @@ function Kp({ children: m, initialValues: o }) {
|
|
|
10721
10727
|
o?.leadId || null
|
|
10722
10728
|
), K = o?.paymentInvoice?.map(
|
|
10723
10729
|
(ze) => typeof ze.invoiceId == "string" ? parseInt(ze.invoiceId, 10) : ze.invoiceId
|
|
10724
|
-
) || [], [ie, me] = B(K), [
|
|
10730
|
+
) || [], [ie, me] = B(K), [ge, Ee] = B(
|
|
10725
10731
|
o?.paymentInvoice || []
|
|
10726
10732
|
), [Oe, de] = B(
|
|
10727
10733
|
o?.paymentType || null
|
|
@@ -10731,7 +10737,7 @@ function Kp({ children: m, initialValues: o }) {
|
|
|
10731
10737
|
o?.salesmanId ?? null
|
|
10732
10738
|
), [We, it] = B(
|
|
10733
10739
|
o?.redirectionUrl || null
|
|
10734
|
-
), [
|
|
10740
|
+
), [xe, re] = B(
|
|
10735
10741
|
o?.transactionId || null
|
|
10736
10742
|
), [be, Ve] = B(
|
|
10737
10743
|
o?.showResultOnly || !1
|
|
@@ -10752,7 +10758,7 @@ function Kp({ children: m, initialValues: o }) {
|
|
|
10752
10758
|
), [gt, ot] = B(null);
|
|
10753
10759
|
if (ut(() => {
|
|
10754
10760
|
const ze = $s(), bt = eo();
|
|
10755
|
-
ze &&
|
|
10761
|
+
ze && vn.configure({
|
|
10756
10762
|
enabled: !0,
|
|
10757
10763
|
clevertap: {
|
|
10758
10764
|
accountId: ze,
|
|
@@ -10826,7 +10832,7 @@ function Kp({ children: m, initialValues: o }) {
|
|
|
10826
10832
|
setLeadId: Ie,
|
|
10827
10833
|
invoices: ie,
|
|
10828
10834
|
setInvoices: me,
|
|
10829
|
-
paymentInvoice:
|
|
10835
|
+
paymentInvoice: ge,
|
|
10830
10836
|
setPaymentInvoice: Ee,
|
|
10831
10837
|
paymentType: Oe,
|
|
10832
10838
|
setPaymentType: de,
|
|
@@ -10840,7 +10846,7 @@ function Kp({ children: m, initialValues: o }) {
|
|
|
10840
10846
|
setSalesmanId: qe,
|
|
10841
10847
|
redirectionUrl: We,
|
|
10842
10848
|
setRedirectionUrl: it,
|
|
10843
|
-
transactionId:
|
|
10849
|
+
transactionId: xe,
|
|
10844
10850
|
setTransactionId: re,
|
|
10845
10851
|
showResultOnly: be,
|
|
10846
10852
|
setShowResultOnly: Ve,
|
|
@@ -10864,7 +10870,7 @@ function Kp({ children: m, initialValues: o }) {
|
|
|
10864
10870
|
};
|
|
10865
10871
|
return /* @__PURE__ */ n($l.Provider, { value: rt, children: m });
|
|
10866
10872
|
}
|
|
10867
|
-
const
|
|
10873
|
+
const wn = () => {
|
|
10868
10874
|
const m = Ho($l);
|
|
10869
10875
|
if (m === void 0)
|
|
10870
10876
|
throw new Error("usePaymentContext must be used within a PaymentProvider");
|
|
@@ -11071,7 +11077,7 @@ async function Ai(m) {
|
|
|
11071
11077
|
distributorName: m.distributorName,
|
|
11072
11078
|
partyCode: m.partyCode
|
|
11073
11079
|
};
|
|
11074
|
-
|
|
11080
|
+
vn.trackPaymentInitiated(
|
|
11075
11081
|
m.paymentMode,
|
|
11076
11082
|
G,
|
|
11077
11083
|
R,
|
|
@@ -11088,7 +11094,7 @@ async function Ai(m) {
|
|
|
11088
11094
|
const J = await jf(z);
|
|
11089
11095
|
if (m.paymentMode === "PAYMENT_LINK" && J.link) {
|
|
11090
11096
|
const Q = m;
|
|
11091
|
-
|
|
11097
|
+
vn.trackPaymentLinkGenerated(
|
|
11092
11098
|
G,
|
|
11093
11099
|
R,
|
|
11094
11100
|
J.link,
|
|
@@ -11105,7 +11111,7 @@ async function Ai(m) {
|
|
|
11105
11111
|
const Q = Pf(
|
|
11106
11112
|
J.qrExpireBy || J.linkExpireBy
|
|
11107
11113
|
), V = m;
|
|
11108
|
-
|
|
11114
|
+
vn.trackPaymentQRGenerated(
|
|
11109
11115
|
G,
|
|
11110
11116
|
R,
|
|
11111
11117
|
Q,
|
|
@@ -11144,7 +11150,7 @@ async function Ai(m) {
|
|
|
11144
11150
|
partyCode: Q.partyCode,
|
|
11145
11151
|
upiTxnRefNo: Q.upiTxnRefNo
|
|
11146
11152
|
};
|
|
11147
|
-
|
|
11153
|
+
vn.trackPaymentSuccess(
|
|
11148
11154
|
m.paymentMode,
|
|
11149
11155
|
G,
|
|
11150
11156
|
R,
|
|
@@ -11184,7 +11190,7 @@ async function Ai(m) {
|
|
|
11184
11190
|
return J;
|
|
11185
11191
|
} catch (J) {
|
|
11186
11192
|
const Q = J && typeof J == "object" && "message" in J ? String(J.message) : "Unknown error";
|
|
11187
|
-
throw
|
|
11193
|
+
throw vn.trackPaymentFailed(
|
|
11188
11194
|
m.paymentMode,
|
|
11189
11195
|
G,
|
|
11190
11196
|
R,
|
|
@@ -11221,7 +11227,7 @@ async function Ai(m) {
|
|
|
11221
11227
|
}
|
|
11222
11228
|
}
|
|
11223
11229
|
function ar(m, o, g, w, a, F, P, O, U, z) {
|
|
11224
|
-
|
|
11230
|
+
vn.trackPaymentSuccess(
|
|
11225
11231
|
m,
|
|
11226
11232
|
o,
|
|
11227
11233
|
g,
|
|
@@ -11235,7 +11241,7 @@ function ar(m, o, g, w, a, F, P, O, U, z) {
|
|
|
11235
11241
|
);
|
|
11236
11242
|
}
|
|
11237
11243
|
function lr(m, o, g, w, a, F, P, O, U) {
|
|
11238
|
-
|
|
11244
|
+
vn.trackPaymentFailed(
|
|
11239
11245
|
m,
|
|
11240
11246
|
o,
|
|
11241
11247
|
g,
|
|
@@ -11293,7 +11299,7 @@ function _n(m) {
|
|
|
11293
11299
|
previous_attempt_id: m.previousAttemptIds || null,
|
|
11294
11300
|
mobile_number: m.mobileNumber || null
|
|
11295
11301
|
};
|
|
11296
|
-
|
|
11302
|
+
vn.trackPaymentTransaction(O);
|
|
11297
11303
|
}
|
|
11298
11304
|
const Tf = (m) => {
|
|
11299
11305
|
switch (m) {
|
|
@@ -11548,17 +11554,17 @@ const Tf = (m) => {
|
|
|
11548
11554
|
leadId: R,
|
|
11549
11555
|
payerMobileNumber: Z,
|
|
11550
11556
|
payerUuid: G
|
|
11551
|
-
} =
|
|
11557
|
+
} = wn(), te = () => {
|
|
11552
11558
|
o();
|
|
11553
|
-
}, [J, Q] = dn.useState(null), [V, ve] = dn.useState(null), [Le, W] = B(!1), [se, Ae] = B(!1), [ye, Ie] = B(!1), [K, ie] = B(""), [me,
|
|
11559
|
+
}, [J, Q] = dn.useState(null), [V, ve] = dn.useState(null), [Le, W] = B(!1), [se, Ae] = B(!1), [ye, Ie] = B(!1), [K, ie] = B(""), [me, ge] = B(null), [Ee, Oe] = B(!1);
|
|
11554
11560
|
dn.useEffect(() => {
|
|
11555
11561
|
if (J) {
|
|
11556
11562
|
const Be = URL.createObjectURL(J);
|
|
11557
|
-
return
|
|
11563
|
+
return ge(Be), () => {
|
|
11558
11564
|
URL.revokeObjectURL(Be);
|
|
11559
11565
|
};
|
|
11560
11566
|
} else
|
|
11561
|
-
|
|
11567
|
+
ge(null);
|
|
11562
11568
|
}, [J]), dn.useEffect(() => {
|
|
11563
11569
|
if (!m) return;
|
|
11564
11570
|
(async () => {
|
|
@@ -11598,8 +11604,8 @@ const Tf = (m) => {
|
|
|
11598
11604
|
}, [m]);
|
|
11599
11605
|
const de = (Be, he) => {
|
|
11600
11606
|
const je = atob(Be), qe = new ArrayBuffer(je.length), We = new Uint8Array(qe);
|
|
11601
|
-
for (let
|
|
11602
|
-
We[
|
|
11607
|
+
for (let xe = 0; xe < je.length; xe++)
|
|
11608
|
+
We[xe] = je.charCodeAt(xe);
|
|
11603
11609
|
const it = new Blob([qe], { type: "image/jpeg" });
|
|
11604
11610
|
return new File([it], he, { type: "image/jpeg" });
|
|
11605
11611
|
}, De = async () => {
|
|
@@ -11673,7 +11679,7 @@ const Tf = (m) => {
|
|
|
11673
11679
|
}
|
|
11674
11680
|
}
|
|
11675
11681
|
};
|
|
11676
|
-
return /* @__PURE__ */ c(
|
|
11682
|
+
return /* @__PURE__ */ c(Nn, { open: m, onClose: te, children: [
|
|
11677
11683
|
/* @__PURE__ */ c("div", { className: "fp:w-full fp:px-4 fp:pt-6 fp:mb-12 ", children: [
|
|
11678
11684
|
/* @__PURE__ */ n("div", { className: "fp:w-full fp:flex fp:items-center fp:justify-end", children: /* @__PURE__ */ n(
|
|
11679
11685
|
"img",
|
|
@@ -11890,7 +11896,7 @@ const Tf = (m) => {
|
|
|
11890
11896
|
)
|
|
11891
11897
|
] })
|
|
11892
11898
|
] }),
|
|
11893
|
-
/* @__PURE__ */ c(
|
|
11899
|
+
/* @__PURE__ */ c(En, { open: Le, onClose: () => W(!1), children: [
|
|
11894
11900
|
/* @__PURE__ */ n(mi, { children: /* @__PURE__ */ n("div", { className: "fp:w-full fp:flex fp:justify-end", children: /* @__PURE__ */ n(
|
|
11895
11901
|
"img",
|
|
11896
11902
|
{
|
|
@@ -11899,7 +11905,7 @@ const Tf = (m) => {
|
|
|
11899
11905
|
onClick: () => W(!1)
|
|
11900
11906
|
}
|
|
11901
11907
|
) }) }),
|
|
11902
|
-
/* @__PURE__ */ n(
|
|
11908
|
+
/* @__PURE__ */ n(Mn, { children: /* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:flex-col fp:justify-center fp:items-center", children: [
|
|
11903
11909
|
/* @__PURE__ */ n("img", { src: Ce.Gateway, className: "fp:w-15 fp:h-15" }),
|
|
11904
11910
|
/* @__PURE__ */ n(
|
|
11905
11911
|
"span",
|
|
@@ -11934,12 +11940,12 @@ const Tf = (m) => {
|
|
|
11934
11940
|
] }) })
|
|
11935
11941
|
] }),
|
|
11936
11942
|
/* @__PURE__ */ c(
|
|
11937
|
-
|
|
11943
|
+
En,
|
|
11938
11944
|
{
|
|
11939
11945
|
open: ye,
|
|
11940
11946
|
onClose: () => Ie(!1),
|
|
11941
11947
|
children: [
|
|
11942
|
-
/* @__PURE__ */ n(
|
|
11948
|
+
/* @__PURE__ */ n(Mn, { children: /* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:flex-col fp:justify-center fp:items-center fp:space-y-1", children: [
|
|
11943
11949
|
/* @__PURE__ */ n("img", { src: Ce.chequeDeleted, className: "fp:w-14 fp:h-14" }),
|
|
11944
11950
|
/* @__PURE__ */ n(
|
|
11945
11951
|
"span",
|
|
@@ -11983,7 +11989,7 @@ const Tf = (m) => {
|
|
|
11983
11989
|
]
|
|
11984
11990
|
}
|
|
11985
11991
|
),
|
|
11986
|
-
/* @__PURE__ */ c(
|
|
11992
|
+
/* @__PURE__ */ c(En, { open: se, onClose: () => Ae(!1), children: [
|
|
11987
11993
|
/* @__PURE__ */ n(mi, { children: /* @__PURE__ */ n("div", { className: "fp:w-full fp:flex fp:justify-end", children: /* @__PURE__ */ n(
|
|
11988
11994
|
"img",
|
|
11989
11995
|
{
|
|
@@ -11992,7 +11998,7 @@ const Tf = (m) => {
|
|
|
11992
11998
|
onClick: () => Ae(!1)
|
|
11993
11999
|
}
|
|
11994
12000
|
) }) }),
|
|
11995
|
-
/* @__PURE__ */ n(
|
|
12001
|
+
/* @__PURE__ */ n(Mn, { children: me && J && /* @__PURE__ */ n(Yt, { children: J.type.includes("pdf") ? /* @__PURE__ */ n(
|
|
11996
12002
|
"iframe",
|
|
11997
12003
|
{
|
|
11998
12004
|
src: me,
|
|
@@ -12041,7 +12047,7 @@ const Tf = (m) => {
|
|
|
12041
12047
|
const o = m.trim().split(/\s+/);
|
|
12042
12048
|
return o.length === 1 ? o[0].substring(0, 2).toUpperCase() : (o[0][0] + o[1][0]).toUpperCase();
|
|
12043
12049
|
}, eu = ({ paymentData: m, isProcessing: o = !1 }) => {
|
|
12044
|
-
const { distributorName: g } =
|
|
12050
|
+
const { distributorName: g } = wn();
|
|
12045
12051
|
return /* @__PURE__ */ c(
|
|
12046
12052
|
"div",
|
|
12047
12053
|
{
|
|
@@ -12419,7 +12425,7 @@ const Qo = ({
|
|
|
12419
12425
|
paymentData: g,
|
|
12420
12426
|
buttonText: w = "Home"
|
|
12421
12427
|
}) => {
|
|
12422
|
-
const a = dn.useRef(null), { distributorName: F } =
|
|
12428
|
+
const a = dn.useRef(null), { distributorName: F } = wn(), P = g?.paymentStatus != null && !["SUCCESS", "COMPLETED"].includes(g.paymentStatus), O = () => {
|
|
12423
12429
|
o(), St.navigateHome();
|
|
12424
12430
|
}, U = (Z) => Z ? {
|
|
12425
12431
|
PAYMENT_LINK: "UPI",
|
|
@@ -12461,7 +12467,7 @@ Thank you for your payment!`;
|
|
|
12461
12467
|
year: "numeric"
|
|
12462
12468
|
});
|
|
12463
12469
|
};
|
|
12464
|
-
return /* @__PURE__ */ n(
|
|
12470
|
+
return /* @__PURE__ */ n(Nn, { open: m, onClose: O, children: /* @__PURE__ */ n("div", { className: "fp:w-full fp:px-4 fp:pt-6 fp:mb-14 ", children: /* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:flex-col fp:items-center fp:justify-center ", children: [
|
|
12465
12471
|
/* @__PURE__ */ n(
|
|
12466
12472
|
Tp,
|
|
12467
12473
|
{
|
|
@@ -12618,7 +12624,7 @@ Thank you for your payment!`;
|
|
|
12618
12624
|
"FAILED"
|
|
12619
12625
|
].includes(H) ? "completed" : "pending" : z === 3 ? H === "SUCCESS" ? "success" : H === "FAILED" || H === "FAILURE" ? "failed" : "pending" : "pending" : z <= 1 ? "completed" : "pending";
|
|
12620
12626
|
};
|
|
12621
|
-
return /* @__PURE__ */ n(
|
|
12627
|
+
return /* @__PURE__ */ n(Nn, { open: m, onClose: a, children: /* @__PURE__ */ n("div", { className: "fp:w-full fp:px-4 fp:pt-6 fp:mb-12", children: /* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:flex-col fp:items-center fp:justify-center", children: [
|
|
12622
12628
|
/* @__PURE__ */ c("div", { className: "fp:relative fp:w-20 fp:h-20 fp:flex fp:items-center fp:justify-center fp:mb-4 fp:z-10", children: [
|
|
12623
12629
|
/* @__PURE__ */ n("div", { className: "fp:absolute fp:inset-0 fp:w-20 fp:h-20 fp:bg-red-50 fp:rounded-full fp:z-0" }),
|
|
12624
12630
|
/* @__PURE__ */ n("div", { className: "fp:absolute fp:inset-0 fp:m-auto fp:w-14 fp:h-14 fp:bg-red-500 fp:rounded-full fp:flex fp:items-center fp:justify-center fp:z-10", children: /* @__PURE__ */ n(
|
|
@@ -12936,7 +12942,7 @@ const r0 = ({
|
|
|
12936
12942
|
chemistName: U,
|
|
12937
12943
|
payerMobileNumber: z,
|
|
12938
12944
|
payerUuid: H
|
|
12939
|
-
} =
|
|
12945
|
+
} = wn(), R = () => {
|
|
12940
12946
|
o(), St.navigateHome();
|
|
12941
12947
|
}, [Z, G] = B(!1), [te, J] = B(!1), [Q, V] = B("Submit"), [ve, Le] = B(!1), [W, se] = B(""), Ae = async () => {
|
|
12942
12948
|
if (!navigator.onLine) {
|
|
@@ -12969,7 +12975,7 @@ const r0 = ({
|
|
|
12969
12975
|
}, [ye, Ie] = B("");
|
|
12970
12976
|
return ut(() => {
|
|
12971
12977
|
m || (J(!1), V("Submit"), G(!1));
|
|
12972
|
-
}, [m]), /* @__PURE__ */ c(
|
|
12978
|
+
}, [m]), /* @__PURE__ */ c(Nn, { open: m, onClose: R, children: [
|
|
12973
12979
|
/* @__PURE__ */ c(
|
|
12974
12980
|
"div",
|
|
12975
12981
|
{
|
|
@@ -13166,8 +13172,8 @@ const r0 = ({
|
|
|
13166
13172
|
]
|
|
13167
13173
|
}
|
|
13168
13174
|
),
|
|
13169
|
-
/* @__PURE__ */ c(
|
|
13170
|
-
/* @__PURE__ */ n(
|
|
13175
|
+
/* @__PURE__ */ c(En, { open: Z, onClose: () => G(!1), children: [
|
|
13176
|
+
/* @__PURE__ */ n(Mn, { children: /* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:flex-col fp:justify-center fp:items-center", children: [
|
|
13171
13177
|
/* @__PURE__ */ n("img", { src: Ce.Gateway, className: "fp:w-15 fp:h-15" }),
|
|
13172
13178
|
/* @__PURE__ */ n(
|
|
13173
13179
|
"span",
|
|
@@ -13378,9 +13384,9 @@ const r0 = ({
|
|
|
13378
13384
|
chemistName: U,
|
|
13379
13385
|
payerMobileNumber: z,
|
|
13380
13386
|
payerUuid: H
|
|
13381
|
-
} =
|
|
13387
|
+
} = wn(), R = () => {
|
|
13382
13388
|
o(), G(null), J(null), ve(""), Oe(""), De(""), ke([]), Be(!1), W(!1), Ae(!1), Ie(!1), ie("Submit"), ct(!1);
|
|
13383
|
-
}, [Z, G] = B(null), [te, J] = B(null), Q = dn.useRef(null), [V, ve] = B(""), [Le, W] = B(!1), [se, Ae] = B(!1), [ye, Ie] = B(!1), [K, ie] = B("Submit"), [me,
|
|
13389
|
+
}, [Z, G] = B(null), [te, J] = B(null), Q = dn.useRef(null), [V, ve] = B(""), [Le, W] = B(!1), [se, Ae] = B(!1), [ye, Ie] = B(!1), [K, ie] = B("Submit"), [me, ge] = B(!1), [Ee, Oe] = B(""), [de, De] = B(""), [q, ke] = B([]), [Se, Be] = B(!1), [he, je] = B(!1), qe = Xt(null), We = Xt(null), it = bn(async (ce) => {
|
|
13384
13390
|
We.current && clearTimeout(We.current), We.current = setTimeout(async () => {
|
|
13385
13391
|
je(!0);
|
|
13386
13392
|
try {
|
|
@@ -13399,7 +13405,7 @@ const r0 = ({
|
|
|
13399
13405
|
};
|
|
13400
13406
|
return document.addEventListener("mousedown", ce), () => document.removeEventListener("mousedown", ce);
|
|
13401
13407
|
}, []);
|
|
13402
|
-
async function
|
|
13408
|
+
async function xe(ce, Ne) {
|
|
13403
13409
|
try {
|
|
13404
13410
|
return (await Bt.post(
|
|
13405
13411
|
Vr(),
|
|
@@ -13430,11 +13436,11 @@ const r0 = ({
|
|
|
13430
13436
|
Ie(!0), ie("Submit Again");
|
|
13431
13437
|
return;
|
|
13432
13438
|
}
|
|
13433
|
-
Ie(!1), ie("Submit"),
|
|
13439
|
+
Ie(!1), ie("Submit"), ge(!0);
|
|
13434
13440
|
try {
|
|
13435
13441
|
let ce;
|
|
13436
13442
|
if (te) {
|
|
13437
|
-
const st = await re(te), tt = await
|
|
13443
|
+
const st = await re(te), tt = await xe(
|
|
13438
13444
|
st,
|
|
13439
13445
|
te.name
|
|
13440
13446
|
);
|
|
@@ -13466,11 +13472,11 @@ const r0 = ({
|
|
|
13466
13472
|
const Ne = ce?.response?.data?.errorMessage || ce?.response?.data?.errorDesc || ce?.response?.data?.message || ce?.message || "Cheque payment failed. Please try again.";
|
|
13467
13473
|
Ue(Ne);
|
|
13468
13474
|
} finally {
|
|
13469
|
-
|
|
13475
|
+
ge(!1);
|
|
13470
13476
|
}
|
|
13471
13477
|
}, [Ve, ct] = B(!1), [Qe, Fe] = B(""), [Ze, Ue] = B(""), [Ke, et] = B(null);
|
|
13472
13478
|
return dn.useEffect(() => {
|
|
13473
|
-
m || (G(null), J(null), ve(""), Oe(""), De(""), ke([]), Be(!1), W(!1), Ae(!1), Ie(!1), ie("Submit"), ct(!1), Fe(""), Ue(""),
|
|
13479
|
+
m || (G(null), J(null), ve(""), Oe(""), De(""), ke([]), Be(!1), W(!1), Ae(!1), Ie(!1), ie("Submit"), ct(!1), Fe(""), Ue(""), ge(!1));
|
|
13474
13480
|
}, [m]), dn.useEffect(() => {
|
|
13475
13481
|
if (te) {
|
|
13476
13482
|
const ce = URL.createObjectURL(te);
|
|
@@ -13480,7 +13486,7 @@ const r0 = ({
|
|
|
13480
13486
|
} else
|
|
13481
13487
|
et(null);
|
|
13482
13488
|
}, [te]), /* @__PURE__ */ c(Yt, { children: [
|
|
13483
|
-
/* @__PURE__ */ c(
|
|
13489
|
+
/* @__PURE__ */ c(Nn, { open: m, onClose: R, children: [
|
|
13484
13490
|
/* @__PURE__ */ c(
|
|
13485
13491
|
"div",
|
|
13486
13492
|
{
|
|
@@ -13919,8 +13925,8 @@ const r0 = ({
|
|
|
13919
13925
|
]
|
|
13920
13926
|
}
|
|
13921
13927
|
),
|
|
13922
|
-
/* @__PURE__ */ c(
|
|
13923
|
-
/* @__PURE__ */ n(
|
|
13928
|
+
/* @__PURE__ */ c(En, { open: Le, onClose: () => W(!1), children: [
|
|
13929
|
+
/* @__PURE__ */ n(Mn, { children: /* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:flex-col fp:justify-center fp:items-center", children: [
|
|
13924
13930
|
/* @__PURE__ */ n("img", { src: Ce.Gateway, className: "fp:w-15 fp:h-15" }),
|
|
13925
13931
|
/* @__PURE__ */ n(
|
|
13926
13932
|
"span",
|
|
@@ -13955,12 +13961,12 @@ const r0 = ({
|
|
|
13955
13961
|
] }) })
|
|
13956
13962
|
] }),
|
|
13957
13963
|
/* @__PURE__ */ c(
|
|
13958
|
-
|
|
13964
|
+
En,
|
|
13959
13965
|
{
|
|
13960
13966
|
open: Ve,
|
|
13961
13967
|
onClose: () => ct(!1),
|
|
13962
13968
|
children: [
|
|
13963
|
-
/* @__PURE__ */ n(
|
|
13969
|
+
/* @__PURE__ */ n(Mn, { children: /* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:flex-col fp:justify-center fp:items-center fp:space-y-1", children: [
|
|
13964
13970
|
/* @__PURE__ */ n("img", { src: Ce.chequeDeleted, className: "fp:w-14 fp:h-14" }),
|
|
13965
13971
|
/* @__PURE__ */ n(
|
|
13966
13972
|
"span",
|
|
@@ -14005,7 +14011,7 @@ const r0 = ({
|
|
|
14005
14011
|
}
|
|
14006
14012
|
)
|
|
14007
14013
|
] }),
|
|
14008
|
-
/* @__PURE__ */ c(
|
|
14014
|
+
/* @__PURE__ */ c(En, { open: se, onClose: () => Ae(!1), children: [
|
|
14009
14015
|
/* @__PURE__ */ n(mi, { sx: { padding: "8px 12px" }, children: /* @__PURE__ */ n("div", { className: "fp:w-full fp:flex fp:justify-end", children: /* @__PURE__ */ n(
|
|
14010
14016
|
"div",
|
|
14011
14017
|
{
|
|
@@ -14014,7 +14020,7 @@ const r0 = ({
|
|
|
14014
14020
|
children: /* @__PURE__ */ n("img", { src: Ce.closingCross, className: "fp:w-4 fp:h-4", alt: "Close" })
|
|
14015
14021
|
}
|
|
14016
14022
|
) }) }),
|
|
14017
|
-
/* @__PURE__ */ n(
|
|
14023
|
+
/* @__PURE__ */ n(Mn, { children: Ke && te && /* @__PURE__ */ n(Yt, { children: te.type.includes("pdf") ? /* @__PURE__ */ n(
|
|
14018
14024
|
"iframe",
|
|
14019
14025
|
{
|
|
14020
14026
|
src: Ke,
|
|
@@ -14064,23 +14070,23 @@ const tu = ({
|
|
|
14064
14070
|
drawdownRepaymentOption: se,
|
|
14065
14071
|
creditLimitData: Ae,
|
|
14066
14072
|
payerUuid: ye
|
|
14067
|
-
} =
|
|
14073
|
+
} = wn(), Ie = F.length > 0 ? F : U, [K, ie] = B(-1), [me, ge] = B(
|
|
14068
14074
|
w
|
|
14069
14075
|
);
|
|
14070
14076
|
ut(() => {
|
|
14071
|
-
w !== -1 &&
|
|
14077
|
+
w !== -1 && ge(w);
|
|
14072
14078
|
}, [w]);
|
|
14073
14079
|
const [Ee, Oe] = B(!1), de = () => {
|
|
14074
14080
|
o();
|
|
14075
14081
|
}, De = a || J, q = De === "TRILLIONLOAN", ke = /* @__PURE__ */ new Date();
|
|
14076
14082
|
ke.setDate(ke.getDate() + 1);
|
|
14077
|
-
const [Se, Be] = B(q ? /* @__PURE__ */ new Date() : ke), [he, je] = B(["", "", "", "", "", ""]), qe = dn.useRef([]), [We, it] = B(0), [
|
|
14083
|
+
const [Se, Be] = B(q ? /* @__PURE__ */ new Date() : ke), [he, je] = B(["", "", "", "", "", ""]), qe = dn.useRef([]), [We, it] = B(0), [xe, re] = B("idle"), [be, Ve] = B(!1), [ct, Qe] = B(!1), [Fe, Ze] = B(""), [Ue, Ke] = B(""), [et, ce] = B(
|
|
14078
14084
|
Q === "FUNDLY_COLLECT_APP" || Q === "FUNDLY_QR_COLLECT_APP" || Q === "FUNDLY_QR_WEB" ? "Collect" : "Pay Now"
|
|
14079
14085
|
), [Ne, _] = B(!1), [we, Je] = B(null), [st, tt] = B(null), [gt, ot] = B(!1), [lt, kt] = B(null), [rt, ze] = B([]), [bt, zt] = B(!1), jt = dn.useMemo(
|
|
14080
14086
|
() => dn.lazy(
|
|
14081
14087
|
() => Promise.all([
|
|
14082
|
-
import("./index-
|
|
14083
|
-
import("./index-
|
|
14088
|
+
import("./index-oFC_vl02.js").then((Me) => Me.i),
|
|
14089
|
+
import("./index-g8Lr9sIz.js").then((Me) => Me.i)
|
|
14084
14090
|
]).then(([{ Worker: Me, Viewer: Xe }, { defaultLayoutPlugin: Et }]) => ({
|
|
14085
14091
|
default: ({ fileUrl: Lt }) => {
|
|
14086
14092
|
const Mt = /Android|iPhone|iPad|iPod/i.test(navigator.userAgent), Nt = () => {
|
|
@@ -14310,13 +14316,13 @@ const tu = ({
|
|
|
14310
14316
|
re("countdown"), it(30), vt();
|
|
14311
14317
|
};
|
|
14312
14318
|
ut(() => {
|
|
14313
|
-
if (
|
|
14319
|
+
if (xe === "countdown" && We > 0) {
|
|
14314
14320
|
const Me = setInterval(() => {
|
|
14315
14321
|
it((Xe) => Xe - 1);
|
|
14316
14322
|
}, 1e3);
|
|
14317
14323
|
return () => clearInterval(Me);
|
|
14318
|
-
} else
|
|
14319
|
-
}, [We,
|
|
14324
|
+
} else xe === "countdown" && We === 0 && (re("resend"), vt());
|
|
14325
|
+
}, [We, xe]);
|
|
14320
14326
|
const _t = dn.useMemo(() => {
|
|
14321
14327
|
if (q && Ne) return !0;
|
|
14322
14328
|
const Me = K !== -1, Xe = Se !== null, Et = me !== -1 || !Ae?.subLimits, Lt = q ? gt : !0;
|
|
@@ -14334,7 +14340,7 @@ const tu = ({
|
|
|
14334
14340
|
Ae,
|
|
14335
14341
|
gt,
|
|
14336
14342
|
Ne
|
|
14337
|
-
]), [It,
|
|
14343
|
+
]), [It, Cn] = B(null), [xi, yt] = B(!1), Rn = async () => {
|
|
14338
14344
|
if (K === -1) return;
|
|
14339
14345
|
const Me = Ie[K], Xe = a || J || "", Et = P || se || "BULLET", Lt = O || "SUPPLIER";
|
|
14340
14346
|
yt(!0);
|
|
@@ -14350,9 +14356,9 @@ const tu = ({
|
|
|
14350
14356
|
repaymentOption: Et,
|
|
14351
14357
|
disbursementAccount: Lt
|
|
14352
14358
|
});
|
|
14353
|
-
|
|
14359
|
+
Cn(Mt);
|
|
14354
14360
|
} catch (Mt) {
|
|
14355
|
-
console.error("Error fetching EMI:", Mt),
|
|
14361
|
+
console.error("Error fetching EMI:", Mt), Cn(null);
|
|
14356
14362
|
} finally {
|
|
14357
14363
|
yt(!1);
|
|
14358
14364
|
}
|
|
@@ -14387,7 +14393,7 @@ const tu = ({
|
|
|
14387
14393
|
return window.addEventListener("online", Me), () => {
|
|
14388
14394
|
window.removeEventListener("online", Me);
|
|
14389
14395
|
};
|
|
14390
|
-
}, [m, K, ht]), /* @__PURE__ */ c(
|
|
14396
|
+
}, [m, K, ht]), /* @__PURE__ */ c(Nn, { open: m, onClose: de, children: [
|
|
14391
14397
|
/* @__PURE__ */ c(
|
|
14392
14398
|
"div",
|
|
14393
14399
|
{
|
|
@@ -14540,12 +14546,12 @@ const tu = ({
|
|
|
14540
14546
|
"button",
|
|
14541
14547
|
{
|
|
14542
14548
|
onClick: ei,
|
|
14543
|
-
disabled:
|
|
14544
|
-
className: `fp:text-white fp:text-[12px] fp:px-7 fp:rounded-lg ${
|
|
14549
|
+
disabled: xe === "countdown",
|
|
14550
|
+
className: `fp:text-white fp:text-[12px] fp:px-7 fp:rounded-lg ${xe === "resend" ? "fp:bg-gray-500" : "fp:bg-[#16558B]"}`,
|
|
14545
14551
|
children: [
|
|
14546
|
-
|
|
14547
|
-
|
|
14548
|
-
|
|
14552
|
+
xe === "idle" && "Get OTP",
|
|
14553
|
+
xe === "countdown" && `${We}s`,
|
|
14554
|
+
xe === "resend" && "Resend"
|
|
14549
14555
|
]
|
|
14550
14556
|
}
|
|
14551
14557
|
)
|
|
@@ -14572,7 +14578,7 @@ const tu = ({
|
|
|
14572
14578
|
/* @__PURE__ */ n("p", { className: "fp:text-[11px] fp:text-red-700", children: Ue })
|
|
14573
14579
|
] }) : /* @__PURE__ */ c("label", { className: "fp:text-[13px] fp:flex fp:text-center fp:items-center fp:text-[#16558B]", children: [
|
|
14574
14580
|
/* @__PURE__ */ n("img", { src: Ce.info, className: "fp:w-4 fp:h-4 fp:mr-1" }),
|
|
14575
|
-
|
|
14581
|
+
xe === "idle" ? "OTP will be sent to the retailer for consent." : "An OTP has been sent to the retailer for consent."
|
|
14576
14582
|
] })
|
|
14577
14583
|
] }),
|
|
14578
14584
|
lt && /* @__PURE__ */ n(
|
|
@@ -14687,8 +14693,8 @@ const tu = ({
|
|
|
14687
14693
|
),
|
|
14688
14694
|
document.body
|
|
14689
14695
|
),
|
|
14690
|
-
/* @__PURE__ */ c(
|
|
14691
|
-
/* @__PURE__ */ n(
|
|
14696
|
+
/* @__PURE__ */ c(En, { open: Ee, onClose: () => Oe(!1), children: [
|
|
14697
|
+
/* @__PURE__ */ n(Mn, { children: /* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:flex-col fp:justify-center fp:items-center", children: [
|
|
14692
14698
|
/* @__PURE__ */ n("img", { src: Ce.Gateway, className: "fp:w-15 fp:h-15" }),
|
|
14693
14699
|
/* @__PURE__ */ n(
|
|
14694
14700
|
"span",
|
|
@@ -14741,20 +14747,20 @@ const tu = ({
|
|
|
14741
14747
|
leadId: Z,
|
|
14742
14748
|
payerMobileNumber: G,
|
|
14743
14749
|
payerUuid: te
|
|
14744
|
-
} =
|
|
14750
|
+
} = wn(), J = () => {
|
|
14745
14751
|
o();
|
|
14746
|
-
}, [Q, V] = B(""), [ve, Le] = B(!1), [W, se] = B(""), [Ae, ye] = B(!1), [Ie, K] = B(5), [ie, me] = B(""),
|
|
14752
|
+
}, [Q, V] = B(""), [ve, Le] = B(!1), [W, se] = B(""), [Ae, ye] = B(!1), [Ie, K] = B(5), [ie, me] = B(""), ge = Xt(null), Ee = Xt(
|
|
14747
14753
|
null
|
|
14748
14754
|
);
|
|
14749
14755
|
ut(() => {
|
|
14750
|
-
m || (V(""), se(""), ye(!1), K(5),
|
|
14756
|
+
m || (V(""), se(""), ye(!1), K(5), ge.current && clearTimeout(ge.current), Ee.current && clearInterval(Ee.current));
|
|
14751
14757
|
}, [m]);
|
|
14752
14758
|
const Oe = () => {
|
|
14753
|
-
K(5),
|
|
14759
|
+
K(5), ge.current && clearTimeout(ge.current), Ee.current && clearInterval(Ee.current);
|
|
14754
14760
|
let Be = 5;
|
|
14755
14761
|
Ee.current = setInterval(() => {
|
|
14756
14762
|
Be--, K(Be), Be <= 0 && Ee.current && clearInterval(Ee.current);
|
|
14757
|
-
}, 1e3),
|
|
14763
|
+
}, 1e3), ge.current = setTimeout(async () => {
|
|
14758
14764
|
await St.navigateHome();
|
|
14759
14765
|
}, 5e3);
|
|
14760
14766
|
}, de = async () => {
|
|
@@ -14807,7 +14813,7 @@ Fundly Team`;
|
|
|
14807
14813
|
await St.shareString(Be);
|
|
14808
14814
|
}
|
|
14809
14815
|
};
|
|
14810
|
-
return /* @__PURE__ */ c(
|
|
14816
|
+
return /* @__PURE__ */ c(Nn, { open: m, onClose: J, children: [
|
|
14811
14817
|
/* @__PURE__ */ c("div", { className: "fp:w-full fp:px-4 fp:pt-6 fp:mb-12", children: [
|
|
14812
14818
|
/* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:items-center fp:justify-between fp:mb-6", children: [
|
|
14813
14819
|
/* @__PURE__ */ n("h2", { className: "fp:text-[20px] fp:font-semibold fp:text-gray-800", children: "Generate Payment Link" }),
|
|
@@ -14903,7 +14909,7 @@ Fundly Team`;
|
|
|
14903
14909
|
}
|
|
14904
14910
|
) })
|
|
14905
14911
|
] }),
|
|
14906
|
-
/* @__PURE__ */ c(
|
|
14912
|
+
/* @__PURE__ */ c(En, { open: ve, onClose: () => Le(!1), children: [
|
|
14907
14913
|
/* @__PURE__ */ n(mi, { children: /* @__PURE__ */ n("div", { className: "fp:w-full fp:flex fp:justify-end", children: /* @__PURE__ */ n(
|
|
14908
14914
|
"img",
|
|
14909
14915
|
{
|
|
@@ -14912,7 +14918,7 @@ Fundly Team`;
|
|
|
14912
14918
|
onClick: () => Le(!1)
|
|
14913
14919
|
}
|
|
14914
14920
|
) }) }),
|
|
14915
|
-
/* @__PURE__ */ n(
|
|
14921
|
+
/* @__PURE__ */ n(Mn, { children: /* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:flex-col fp:justify-center fp:items-center", children: [
|
|
14916
14922
|
/* @__PURE__ */ n("img", { src: Ce.Gateway, className: "fp:w-15 fp:h-15" }),
|
|
14917
14923
|
/* @__PURE__ */ n(
|
|
14918
14924
|
"span",
|
|
@@ -14967,7 +14973,7 @@ Fundly Team`;
|
|
|
14967
14973
|
leadId: te,
|
|
14968
14974
|
payerMobileNumber: J,
|
|
14969
14975
|
payerUuid: Q
|
|
14970
|
-
} =
|
|
14976
|
+
} = wn(), [V, ve] = B(120), [Le, W] = B(""), [se, Ae] = B(!1), [ye, Ie] = B(!1), [K, ie] = B(""), me = Xt(null), ge = Xt(null), Ee = Xt(null), Oe = Xt(!1), de = Xt(!1), De = () => {
|
|
14971
14977
|
o();
|
|
14972
14978
|
}, q = async () => {
|
|
14973
14979
|
try {
|
|
@@ -14991,13 +14997,13 @@ Fundly Team`;
|
|
|
14991
14997
|
const je = await Ai(he), qe = je?.data || je, We = qe?.link, it = qe?.transactionId;
|
|
14992
14998
|
We && it ? (W(`data:image/png;base64,${We}`), ie(""), Se(), setTimeout(() => {
|
|
14993
14999
|
ke(it);
|
|
14994
|
-
}, 5e3)) : (W(""), ie("Failed to generate QR. Please try again."),
|
|
15000
|
+
}, 5e3)) : (W(""), ie("Failed to generate QR. Please try again."), ge.current = setTimeout(async () => {
|
|
14995
15001
|
await St.navigateHome();
|
|
14996
15002
|
}, 5e3));
|
|
14997
15003
|
} catch (he) {
|
|
14998
15004
|
W("");
|
|
14999
15005
|
const je = he?.response?.data?.errorResponse?.errorMessage || he?.response?.data?.errorMessage || he?.response?.data?.errorResponse?.errorDesc || he?.response?.data?.errorDesc || he?.response?.data?.message || he?.message || "Failed to generate QR. Please try again.";
|
|
15000
|
-
ie(je),
|
|
15006
|
+
ie(je), ge.current = setTimeout(async () => {
|
|
15001
15007
|
await St.navigateHome();
|
|
15002
15008
|
}, 5e3);
|
|
15003
15009
|
}
|
|
@@ -15035,9 +15041,9 @@ Fundly Team`;
|
|
|
15035
15041
|
}, 1e3);
|
|
15036
15042
|
};
|
|
15037
15043
|
return ut(() => (m && (W(""), Ie(!1), ie(""), Oe.current = !1, de.current = !1, q()), () => {
|
|
15038
|
-
me.current && clearInterval(me.current),
|
|
15044
|
+
me.current && clearInterval(me.current), ge.current && clearTimeout(ge.current), Ee.current && clearTimeout(Ee.current), ve(120), W(""), ie(""), Oe.current = !1, de.current = !1;
|
|
15039
15045
|
}), [m]), /* @__PURE__ */ c(Yt, { children: [
|
|
15040
|
-
/* @__PURE__ */ n(
|
|
15046
|
+
/* @__PURE__ */ n(Nn, { open: m, onClose: De, children: /* @__PURE__ */ c("div", { className: "fp:w-full fp:px-4 fp:pt-6 fp:mb-12", children: [
|
|
15041
15047
|
/* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:items-center fp:justify-between", children: [
|
|
15042
15048
|
/* @__PURE__ */ n("span", { className: "fp:py-1 fp:px-5 fp:bg-green-600 fp:text-white fp:rounded-2xl fp:text-[12px]", children: ((he) => {
|
|
15043
15049
|
const je = Math.floor(he / 60).toString().padStart(2, "0"), qe = (he % 60).toString().padStart(2, "0");
|
|
@@ -15091,7 +15097,7 @@ Fundly Team`;
|
|
|
15091
15097
|
] })
|
|
15092
15098
|
] })
|
|
15093
15099
|
] }) }),
|
|
15094
|
-
/* @__PURE__ */ c(
|
|
15100
|
+
/* @__PURE__ */ c(En, { open: se, onClose: () => Ae(!1), children: [
|
|
15095
15101
|
/* @__PURE__ */ n(mi, { children: /* @__PURE__ */ n("div", { className: "fp:w-full fp:flex fp:justify-end", children: /* @__PURE__ */ n(
|
|
15096
15102
|
"img",
|
|
15097
15103
|
{
|
|
@@ -15101,7 +15107,7 @@ Fundly Team`;
|
|
|
15101
15107
|
alt: "close"
|
|
15102
15108
|
}
|
|
15103
15109
|
) }) }),
|
|
15104
|
-
/* @__PURE__ */ n(
|
|
15110
|
+
/* @__PURE__ */ n(Mn, { children: /* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:flex-col fp:justify-center fp:items-center", children: [
|
|
15105
15111
|
/* @__PURE__ */ n("img", { src: Ce.Gateway, className: "fp:w-15 fp:h-15" }),
|
|
15106
15112
|
/* @__PURE__ */ n(
|
|
15107
15113
|
"span",
|
|
@@ -15136,7 +15142,7 @@ Fundly Team`;
|
|
|
15136
15142
|
] }) })
|
|
15137
15143
|
] }),
|
|
15138
15144
|
/* @__PURE__ */ c(
|
|
15139
|
-
|
|
15145
|
+
En,
|
|
15140
15146
|
{
|
|
15141
15147
|
open: ye,
|
|
15142
15148
|
onClose: () => Ie(!1),
|
|
@@ -15150,7 +15156,7 @@ Fundly Team`;
|
|
|
15150
15156
|
alt: "close"
|
|
15151
15157
|
}
|
|
15152
15158
|
) }) }),
|
|
15153
|
-
/* @__PURE__ */ n(
|
|
15159
|
+
/* @__PURE__ */ n(Mn, { children: /* @__PURE__ */ c(
|
|
15154
15160
|
"div",
|
|
15155
15161
|
{
|
|
15156
15162
|
style: { fontFamily: "Poppins" },
|
|
@@ -15302,9 +15308,9 @@ Fundly Team`;
|
|
|
15302
15308
|
showResultOnly: W,
|
|
15303
15309
|
sessionId: se,
|
|
15304
15310
|
erpId: Ae
|
|
15305
|
-
} =
|
|
15311
|
+
} = wn(), [ye, Ie] = B(!1), [K, ie] = B("INITIATED"), [me, ge] = B(null), [Ee, Oe] = B(0), [de, De] = B(null), q = Xt(null), ke = Xt(!1), Se = Xt({ amount: 0, invoiceCount: 0 });
|
|
15306
15312
|
ut(() => {
|
|
15307
|
-
m || (q.current && (clearTimeout(q.current), q.current = null), ke.current = !1, We.current = !1, ie("INITIATED"),
|
|
15313
|
+
m || (q.current && (clearTimeout(q.current), q.current = null), ke.current = !1, We.current = !1, ie("INITIATED"), ge(null), De(null), sessionStorage.removeItem("fundly_payment_initiated"), sessionStorage.removeItem("fundly_last_transaction_id"));
|
|
15308
15314
|
}, [m]);
|
|
15309
15315
|
const Be = (re) => {
|
|
15310
15316
|
switch (re) {
|
|
@@ -15336,7 +15342,7 @@ Fundly Team`;
|
|
|
15336
15342
|
if (W) {
|
|
15337
15343
|
const Qe = Le || be;
|
|
15338
15344
|
if (!Qe) {
|
|
15339
|
-
|
|
15345
|
+
ge("Transaction ID not found. Unable to fetch payment status.");
|
|
15340
15346
|
return;
|
|
15341
15347
|
}
|
|
15342
15348
|
We.current = !0, Ie(!1), ie("PROCESSING");
|
|
@@ -15862,10 +15868,10 @@ Fundly Team`;
|
|
|
15862
15868
|
et();
|
|
15863
15869
|
}, 2e3);
|
|
15864
15870
|
} else
|
|
15865
|
-
|
|
15871
|
+
ge("Payment initiation failed. Please try again.");
|
|
15866
15872
|
} catch (Fe) {
|
|
15867
15873
|
const Ze = Fe?.response?.data?.errorResponse?.errorMessage || Fe?.response?.data?.errorMessage || Fe?.response?.data?.errorResponse?.errorDesc || Fe?.response?.data?.errorDesc || "An unexpected error occurred while creating payment links.";
|
|
15868
|
-
|
|
15874
|
+
ge(Ze);
|
|
15869
15875
|
} finally {
|
|
15870
15876
|
}
|
|
15871
15877
|
})();
|
|
@@ -15887,7 +15893,7 @@ Fundly Team`;
|
|
|
15887
15893
|
Le,
|
|
15888
15894
|
Ee
|
|
15889
15895
|
]);
|
|
15890
|
-
const
|
|
15896
|
+
const xe = ((re) => ({
|
|
15891
15897
|
INITIATED: 2,
|
|
15892
15898
|
PROCESSING: 2,
|
|
15893
15899
|
SUCCESS: 3,
|
|
@@ -15896,7 +15902,7 @@ Fundly Team`;
|
|
|
15896
15902
|
CANCELLED: 2,
|
|
15897
15903
|
DECLINED: 2
|
|
15898
15904
|
})[re] || 1)(K);
|
|
15899
|
-
return /* @__PURE__ */ n(
|
|
15905
|
+
return /* @__PURE__ */ n(Nn, { open: m, onClose: o, children: /* @__PURE__ */ c(
|
|
15900
15906
|
"div",
|
|
15901
15907
|
{
|
|
15902
15908
|
style: { fontFamily: "Poppins" },
|
|
@@ -15930,7 +15936,7 @@ Fundly Team`;
|
|
|
15930
15936
|
"button",
|
|
15931
15937
|
{
|
|
15932
15938
|
onClick: () => {
|
|
15933
|
-
We.current = !1,
|
|
15939
|
+
We.current = !1, ge(null), ie("INITIATED"), ke.current = !1, sessionStorage.removeItem("fundly_payment_initiated"), sessionStorage.removeItem("fundly_last_transaction_id"), Oe((re) => re + 1);
|
|
15934
15940
|
},
|
|
15935
15941
|
className: "fp:w-full fp:h-12 fp:rounded-lg fp:text-[16px] fp:flex fp:items-center fp:justify-center fp:bg-[#16558B] fp:text-white fp:mb-2",
|
|
15936
15942
|
children: "Retry Payment"
|
|
@@ -15975,8 +15981,8 @@ Fundly Team`;
|
|
|
15975
15981
|
/* @__PURE__ */ n(
|
|
15976
15982
|
"div",
|
|
15977
15983
|
{
|
|
15978
|
-
className: `fp:w-5 fp:h-5 fp:rounded-full fp:flex fp:items-center fp:justify-center ${
|
|
15979
|
-
children:
|
|
15984
|
+
className: `fp:w-5 fp:h-5 fp:rounded-full fp:flex fp:items-center fp:justify-center ${xe >= 1 ? "fp:bg-green-500" : "fp:bg-gray-300"}`,
|
|
15985
|
+
children: xe >= 1 && /* @__PURE__ */ n(
|
|
15980
15986
|
"svg",
|
|
15981
15987
|
{
|
|
15982
15988
|
className: "fp:w-3 fp:h-3 fp:text-white",
|
|
@@ -15999,7 +16005,7 @@ Fundly Team`;
|
|
|
15999
16005
|
/* @__PURE__ */ n(
|
|
16000
16006
|
"span",
|
|
16001
16007
|
{
|
|
16002
|
-
className: `fp:text-[14px] ${
|
|
16008
|
+
className: `fp:text-[14px] ${xe >= 1 ? "fp:text-gray-800 fp:font-medium" : "fp:text-gray-400"}`,
|
|
16003
16009
|
children: "Payment started"
|
|
16004
16010
|
}
|
|
16005
16011
|
)
|
|
@@ -16008,8 +16014,8 @@ Fundly Team`;
|
|
|
16008
16014
|
/* @__PURE__ */ n(
|
|
16009
16015
|
"div",
|
|
16010
16016
|
{
|
|
16011
|
-
className: `fp:w-5 fp:h-5 fp:rounded-full fp:flex fp:items-center fp:justify-center ${
|
|
16012
|
-
children:
|
|
16017
|
+
className: `fp:w-5 fp:h-5 fp:rounded-full fp:flex fp:items-center fp:justify-center ${xe >= 2 ? "fp:bg-green-500" : "fp:bg-gray-300"}`,
|
|
16018
|
+
children: xe >= 2 && /* @__PURE__ */ n(
|
|
16013
16019
|
"svg",
|
|
16014
16020
|
{
|
|
16015
16021
|
className: "fp:w-3 fp:h-3 fp:text-white",
|
|
@@ -16032,7 +16038,7 @@ Fundly Team`;
|
|
|
16032
16038
|
/* @__PURE__ */ n(
|
|
16033
16039
|
"span",
|
|
16034
16040
|
{
|
|
16035
|
-
className: `fp:text-[14px] ${
|
|
16041
|
+
className: `fp:text-[14px] ${xe >= 2 ? "fp:text-gray-800 fp:font-medium" : "fp:text-gray-400"}`,
|
|
16036
16042
|
children: "Payment in progress"
|
|
16037
16043
|
}
|
|
16038
16044
|
)
|
|
@@ -16041,8 +16047,8 @@ Fundly Team`;
|
|
|
16041
16047
|
/* @__PURE__ */ n(
|
|
16042
16048
|
"div",
|
|
16043
16049
|
{
|
|
16044
|
-
className: `fp:w-5 fp:h-5 fp:rounded-full fp:flex fp:items-center fp:justify-center ${
|
|
16045
|
-
children:
|
|
16050
|
+
className: `fp:w-5 fp:h-5 fp:rounded-full fp:flex fp:items-center fp:justify-center ${xe >= 3 ? "fp:bg-green-500" : "fp:bg-gray-300"}`,
|
|
16051
|
+
children: xe >= 3 && /* @__PURE__ */ n(
|
|
16046
16052
|
"svg",
|
|
16047
16053
|
{
|
|
16048
16054
|
className: "fp:w-3 fp:h-3 fp:text-white",
|
|
@@ -16065,7 +16071,7 @@ Fundly Team`;
|
|
|
16065
16071
|
/* @__PURE__ */ n(
|
|
16066
16072
|
"span",
|
|
16067
16073
|
{
|
|
16068
|
-
className: `fp:text-[14px] ${
|
|
16074
|
+
className: `fp:text-[14px] ${xe >= 3 ? "fp:text-gray-800 fp:font-medium" : "fp:text-gray-400"}`,
|
|
16069
16075
|
children: "Payment success"
|
|
16070
16076
|
}
|
|
16071
16077
|
)
|
|
@@ -16135,9 +16141,9 @@ Fundly Team`;
|
|
|
16135
16141
|
showResultOnly: W,
|
|
16136
16142
|
sessionId: se,
|
|
16137
16143
|
erpId: Ae
|
|
16138
|
-
} =
|
|
16144
|
+
} = wn(), [ye, Ie] = B(!1), [K, ie] = B("INITIATED"), [me, ge] = B(null), [Ee, Oe] = B(null), de = Xt(null), De = Xt(!1), q = Xt({ amount: 0, invoiceCount: 0 });
|
|
16139
16145
|
ut(() => {
|
|
16140
|
-
m || (de.current && (clearTimeout(de.current), de.current = null), De.current = !1, je.current = !1, ie("INITIATED"),
|
|
16146
|
+
m || (de.current && (clearTimeout(de.current), de.current = null), De.current = !1, je.current = !1, ie("INITIATED"), ge(null), Oe(null), sessionStorage.removeItem("fundly_netbanking_payment_initiated"), sessionStorage.removeItem("fundly_netbanking_last_transaction_id"));
|
|
16141
16147
|
}, [m]);
|
|
16142
16148
|
const ke = (it) => {
|
|
16143
16149
|
switch (it) {
|
|
@@ -16152,24 +16158,24 @@ Fundly Team`;
|
|
|
16152
16158
|
}
|
|
16153
16159
|
}, Se = (it) => {
|
|
16154
16160
|
if (!it) return null;
|
|
16155
|
-
const
|
|
16156
|
-
return
|
|
16161
|
+
const xe = it.toLowerCase();
|
|
16162
|
+
return xe.includes("zaakpay.com") ? "zaakpay" : xe.includes("cashfree") ? "cashfree" : xe.includes("yesbank") || xe.includes("yes_bank") ? "yes_bank" : xe.includes("razorpay") ? "razorpay" : null;
|
|
16157
16163
|
}, Be = () => {
|
|
16158
|
-
const it = Date.now(),
|
|
16159
|
-
return `PAY-${it}-${
|
|
16164
|
+
const it = Date.now(), xe = Math.floor(Math.random() * 1e6);
|
|
16165
|
+
return `PAY-${it}-${xe}`;
|
|
16160
16166
|
}, he = (it) => {
|
|
16161
16167
|
if (!it) return "gateway";
|
|
16162
|
-
const
|
|
16163
|
-
return
|
|
16168
|
+
const xe = it.toLowerCase();
|
|
16169
|
+
return xe.includes("cancel") || xe.includes("abort") || xe.includes("declined by user") ? "user_abort" : xe.includes("bank") || xe.includes("insufficient") ? "bank" : "gateway";
|
|
16164
16170
|
}, je = dn.useRef(!1);
|
|
16165
16171
|
ut(() => {
|
|
16166
16172
|
if (!m || je.current)
|
|
16167
16173
|
return;
|
|
16168
|
-
const it = new URLSearchParams(window.location.search),
|
|
16174
|
+
const it = new URLSearchParams(window.location.search), xe = it.get("transactionId") || it.get("orderId");
|
|
16169
16175
|
if (W) {
|
|
16170
|
-
const Ve = Le ||
|
|
16176
|
+
const Ve = Le || xe;
|
|
16171
16177
|
if (!Ve) {
|
|
16172
|
-
|
|
16178
|
+
ge("Transaction ID not found. Unable to fetch payment status.");
|
|
16173
16179
|
return;
|
|
16174
16180
|
}
|
|
16175
16181
|
je.current = !0, Ie(!1), ie("PROCESSING");
|
|
@@ -16348,13 +16354,13 @@ Fundly Team`;
|
|
|
16348
16354
|
ct();
|
|
16349
16355
|
return;
|
|
16350
16356
|
}
|
|
16351
|
-
if (
|
|
16357
|
+
if (xe) {
|
|
16352
16358
|
je.current = !0, Ie(!1), ie("PROCESSING");
|
|
16353
16359
|
const Ve = async () => {
|
|
16354
16360
|
if (!De.current)
|
|
16355
16361
|
try {
|
|
16356
16362
|
const ct = await Bt.get(
|
|
16357
|
-
`${$n()}/transactions/${
|
|
16363
|
+
`${$n()}/transactions/${xe}`,
|
|
16358
16364
|
{
|
|
16359
16365
|
headers: {
|
|
16360
16366
|
Authorization: Ge() ? `Bearer ${Ge()}` : void 0,
|
|
@@ -16385,7 +16391,7 @@ Fundly Team`;
|
|
|
16385
16391
|
if (q.current.amount === 0 && Fe && (q.current = {
|
|
16386
16392
|
amount: Number(Fe),
|
|
16387
16393
|
invoiceCount: Ze?.length || F?.length || P?.length || 0,
|
|
16388
|
-
transactionId:
|
|
16394
|
+
transactionId: xe,
|
|
16389
16395
|
initiatedAt: q.current.initiatedAt
|
|
16390
16396
|
}), Qe && ie(Qe), Qe === "SUCCESS" || Qe === "COMPLETED") {
|
|
16391
16397
|
De.current = !0, de.current && (clearTimeout(de.current), de.current = null);
|
|
@@ -16416,7 +16422,7 @@ Fundly Team`;
|
|
|
16416
16422
|
Ke || "NETBANKING",
|
|
16417
16423
|
q.current.amount,
|
|
16418
16424
|
q.current.invoiceCount,
|
|
16419
|
-
|
|
16425
|
+
xe,
|
|
16420
16426
|
z || void 0,
|
|
16421
16427
|
H?.trim() || void 0,
|
|
16422
16428
|
zt,
|
|
@@ -16427,7 +16433,7 @@ Fundly Team`;
|
|
|
16427
16433
|
// Pass invoice numbers
|
|
16428
16434
|
), _n({
|
|
16429
16435
|
orderId: Be(),
|
|
16430
|
-
transactionId:
|
|
16436
|
+
transactionId: xe || "",
|
|
16431
16437
|
status: "success",
|
|
16432
16438
|
amount: q.current.amount,
|
|
16433
16439
|
paymentMode: Ke || "NETBANKING",
|
|
@@ -16479,14 +16485,14 @@ Fundly Team`;
|
|
|
16479
16485
|
q.current.amount,
|
|
16480
16486
|
q.current.invoiceCount,
|
|
16481
16487
|
Qe,
|
|
16482
|
-
|
|
16488
|
+
xe,
|
|
16483
16489
|
z || void 0,
|
|
16484
16490
|
H?.trim() || void 0,
|
|
16485
16491
|
zt,
|
|
16486
16492
|
mt
|
|
16487
16493
|
), _n({
|
|
16488
16494
|
orderId: Be(),
|
|
16489
|
-
transactionId:
|
|
16495
|
+
transactionId: xe || "",
|
|
16490
16496
|
status: "failed",
|
|
16491
16497
|
amount: q.current.amount,
|
|
16492
16498
|
paymentMode: Ke || "NETBANKING",
|
|
@@ -16682,10 +16688,10 @@ Fundly Team`;
|
|
|
16682
16688
|
Ue();
|
|
16683
16689
|
}, 2e3);
|
|
16684
16690
|
} else
|
|
16685
|
-
|
|
16691
|
+
ge("Payment initiation failed. Please try again.");
|
|
16686
16692
|
} catch (ct) {
|
|
16687
16693
|
const Qe = ct?.response?.data?.errorResponse?.errorMessage || ct?.response?.data?.errorMessage || ct?.response?.data?.errorResponse?.errorDesc || ct?.response?.data?.errorDesc || "An unexpected error occurred while creating payment links.";
|
|
16688
|
-
|
|
16694
|
+
ge(Qe);
|
|
16689
16695
|
} finally {
|
|
16690
16696
|
}
|
|
16691
16697
|
})(), je.current = !0;
|
|
@@ -16715,7 +16721,7 @@ Fundly Team`;
|
|
|
16715
16721
|
CANCELLED: 2,
|
|
16716
16722
|
DECLINED: 2
|
|
16717
16723
|
})[it] || 1)(K);
|
|
16718
|
-
return /* @__PURE__ */ n(
|
|
16724
|
+
return /* @__PURE__ */ n(Nn, { open: m, onClose: o, children: /* @__PURE__ */ c(
|
|
16719
16725
|
"div",
|
|
16720
16726
|
{
|
|
16721
16727
|
style: { fontFamily: "Poppins" },
|
|
@@ -16932,7 +16938,7 @@ Fundly Team`;
|
|
|
16932
16938
|
payerUuid: U,
|
|
16933
16939
|
payerMobileNumber: z,
|
|
16934
16940
|
typeOfApp: H
|
|
16935
|
-
} =
|
|
16941
|
+
} = wn(), R = H === "FUNDLY_TRADE", [Z, G] = B(null), [te, J] = B(""), [Q, V] = B(""), [ve, Le] = B(!1), [W, se] = B(""), [Ae, ye] = B(""), [Ie, K] = B([]), [ie, me] = B(!1), [ge, Ee] = B(!1), [Oe, de] = B(""), [De, q] = B(null), [ke, Se] = B(!1), [Be, he] = B(!1), [je, qe] = B("Submit"), [We, it] = B(!1), [xe, re] = B(""), be = Xt(null), Ve = Xt(null), ct = Xt(null), Qe = Xt(null), Fe = () => {
|
|
16936
16942
|
o(), Ze();
|
|
16937
16943
|
}, Ze = () => {
|
|
16938
16944
|
G(null), J(""), V(""), Le(!1), se(""), ye(""), K([]), me(!1), de(""), q(null), Se(!1), he(!1), qe("Submit"), re(""), it(!1);
|
|
@@ -17024,7 +17030,7 @@ Fundly Team`;
|
|
|
17024
17030
|
it(!1);
|
|
17025
17031
|
}
|
|
17026
17032
|
}, Ne = Z !== null && te.trim().length > 0 && Q.length > 0 && (R || W.trim().length > 0);
|
|
17027
|
-
return /* @__PURE__ */ n(Yt, { children: /* @__PURE__ */ c(
|
|
17033
|
+
return /* @__PURE__ */ n(Yt, { children: /* @__PURE__ */ c(Nn, { open: m, onClose: Fe, children: [
|
|
17028
17034
|
/* @__PURE__ */ c(
|
|
17029
17035
|
"div",
|
|
17030
17036
|
{
|
|
@@ -17049,7 +17055,7 @@ Fundly Team`;
|
|
|
17049
17055
|
}
|
|
17050
17056
|
)
|
|
17051
17057
|
] }),
|
|
17052
|
-
|
|
17058
|
+
xe && /* @__PURE__ */ c("div", { className: "fp:w-full fp:bg-red-50 fp:border fp:border-red-200 fp:rounded-xl fp:p-3 fp:flex fp:items-start fp:space-x-2 fp:mt-4", children: [
|
|
17053
17059
|
/* @__PURE__ */ n(
|
|
17054
17060
|
"svg",
|
|
17055
17061
|
{
|
|
@@ -17070,7 +17076,7 @@ Fundly Team`;
|
|
|
17070
17076
|
),
|
|
17071
17077
|
/* @__PURE__ */ c("div", { className: "fp:flex-1", children: [
|
|
17072
17078
|
/* @__PURE__ */ n("p", { className: "fp:text-[14px] fp:text-red-700 fp:font-medium", children: "Payment Failed" }),
|
|
17073
|
-
/* @__PURE__ */ n("p", { className: "fp:text-[12px] fp:text-red-600 fp:mt-1", children:
|
|
17079
|
+
/* @__PURE__ */ n("p", { className: "fp:text-[12px] fp:text-red-600 fp:mt-1", children: xe })
|
|
17074
17080
|
] }),
|
|
17075
17081
|
/* @__PURE__ */ n(
|
|
17076
17082
|
"button",
|
|
@@ -17320,7 +17326,7 @@ Fundly Team`;
|
|
|
17320
17326
|
display: "flex",
|
|
17321
17327
|
alignItems: "center"
|
|
17322
17328
|
},
|
|
17323
|
-
children:
|
|
17329
|
+
children: ge ? /* @__PURE__ */ c(
|
|
17324
17330
|
"svg",
|
|
17325
17331
|
{
|
|
17326
17332
|
className: "fp:animate-spin",
|
|
@@ -17533,8 +17539,8 @@ Fundly Team`;
|
|
|
17533
17539
|
]
|
|
17534
17540
|
}
|
|
17535
17541
|
),
|
|
17536
|
-
/* @__PURE__ */ c(
|
|
17537
|
-
/* @__PURE__ */ n(
|
|
17542
|
+
/* @__PURE__ */ c(En, { open: ke, onClose: () => Se(!1), children: [
|
|
17543
|
+
/* @__PURE__ */ n(Mn, { children: /* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:flex-col fp:justify-center fp:items-center", children: [
|
|
17538
17544
|
/* @__PURE__ */ n("img", { src: Ce.Gateway, className: "fp:w-15 fp:h-15" }),
|
|
17539
17545
|
/* @__PURE__ */ n(
|
|
17540
17546
|
"span",
|
|
@@ -17704,7 +17710,7 @@ Fundly Team`;
|
|
|
17704
17710
|
UPI: "UPI",
|
|
17705
17711
|
NETBANKING: "NETBANKING",
|
|
17706
17712
|
BANK_TRANSFER: "BANK_TRANSFER"
|
|
17707
|
-
},
|
|
17713
|
+
}, In = {
|
|
17708
17714
|
FUNDLY_CUSTOMER_APP: "FUNDLY_CUSTOMER_APP",
|
|
17709
17715
|
FUNDLY_COLLECT_APP: "FUNDLY_COLLECT_APP",
|
|
17710
17716
|
FUNDLY_TRADE: "FUNDLY_TRADE",
|
|
@@ -17716,7 +17722,7 @@ Fundly Team`;
|
|
|
17716
17722
|
const g = (w) => {
|
|
17717
17723
|
navigator.clipboard.writeText(w);
|
|
17718
17724
|
};
|
|
17719
|
-
return /* @__PURE__ */ n(
|
|
17725
|
+
return /* @__PURE__ */ n(Nn, { open: m, onClose: o, children: /* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:flex-col fp:px-8 fp:py-4 fp:space-y-4 fp:mt-2 fp:mb-12", children: [
|
|
17720
17726
|
/* @__PURE__ */ n("div", { className: "fp:w-full fp:flex fp:items-center fp:justify-end", children: /* @__PURE__ */ n(
|
|
17721
17727
|
"img",
|
|
17722
17728
|
{
|
|
@@ -17758,7 +17764,7 @@ Fundly Team`;
|
|
|
17758
17764
|
open: m,
|
|
17759
17765
|
onClose: o,
|
|
17760
17766
|
onConfirm: g
|
|
17761
|
-
}) => /* @__PURE__ */ c(
|
|
17767
|
+
}) => /* @__PURE__ */ c(En, { open: m, onClose: o, children: [
|
|
17762
17768
|
/* @__PURE__ */ n(mi, { children: /* @__PURE__ */ n("div", { className: "fp:w-full fp:flex fp:justify-end", children: /* @__PURE__ */ n(
|
|
17763
17769
|
"img",
|
|
17764
17770
|
{
|
|
@@ -17768,7 +17774,7 @@ Fundly Team`;
|
|
|
17768
17774
|
alt: "Close"
|
|
17769
17775
|
}
|
|
17770
17776
|
) }) }),
|
|
17771
|
-
/* @__PURE__ */ n(
|
|
17777
|
+
/* @__PURE__ */ n(Mn, { children: /* @__PURE__ */ c(
|
|
17772
17778
|
"div",
|
|
17773
17779
|
{
|
|
17774
17780
|
style: { fontFamily: "Poppins" },
|
|
@@ -17806,7 +17812,7 @@ Fundly Team`;
|
|
|
17806
17812
|
}
|
|
17807
17813
|
) })
|
|
17808
17814
|
] }), pu = () => {
|
|
17809
|
-
const { partnerCredentials: m } =
|
|
17815
|
+
const { partnerCredentials: m } = wn(), [o, g] = B(null), [w, a] = B(!1), [F, P] = B(null);
|
|
17810
17816
|
return { login: bn(async () => {
|
|
17811
17817
|
a(!0), P(null);
|
|
17812
17818
|
try {
|
|
@@ -17843,7 +17849,7 @@ Fundly Team`;
|
|
|
17843
17849
|
distributorIdnum: H,
|
|
17844
17850
|
chemistId: R,
|
|
17845
17851
|
leadId: Z
|
|
17846
|
-
} =
|
|
17852
|
+
} = wn(), G = Xt(!1);
|
|
17847
17853
|
ut(() => {
|
|
17848
17854
|
const te = (V) => {
|
|
17849
17855
|
if (typeof V.data != "object" || V.data === null || V.source !== window || V.data?.source === "react-devtools-content-script" || V.source !== window || V.data?.source?.includes("react-devtools") || V.origin !== window.origin)
|
|
@@ -17880,7 +17886,7 @@ Fundly Team`;
|
|
|
17880
17886
|
setDrawdownRepaymentOption: te,
|
|
17881
17887
|
setCreditLimitData: J,
|
|
17882
17888
|
setPayerUuid: Q
|
|
17883
|
-
} =
|
|
17889
|
+
} = wn(), [V, ve] = B([]), [Le, W] = B(null), [se, Ae] = B(null), [ye, Ie] = B(null), [K, ie] = B(null), [me, ge] = B(!0);
|
|
17884
17890
|
return ut(() => {
|
|
17885
17891
|
m && (async () => {
|
|
17886
17892
|
const Oe = {
|
|
@@ -17911,9 +17917,9 @@ Fundly Team`;
|
|
|
17911
17917
|
} catch (ke) {
|
|
17912
17918
|
console.warn("Credit limit filter API failed:", ke), J(null);
|
|
17913
17919
|
}
|
|
17914
|
-
|
|
17920
|
+
ge(!1);
|
|
17915
17921
|
} catch {
|
|
17916
|
-
|
|
17922
|
+
ge(!1);
|
|
17917
17923
|
}
|
|
17918
17924
|
})();
|
|
17919
17925
|
}, [m]), { paymentOptions: V, bankDetails: Le, maxEligibleLimit: se, minEligibleLimit: ye, fundlyPayReason: K, loading: me };
|
|
@@ -17992,11 +17998,11 @@ const mu = ({
|
|
|
17992
17998
|
showBankTransferDrawer: ye,
|
|
17993
17999
|
showSuccessDrawer: Ie,
|
|
17994
18000
|
showFailureDrawer: K
|
|
17995
|
-
} = a0(), [ie, me] = B(!1), [
|
|
18001
|
+
} = a0(), [ie, me] = B(!1), [ge, Ee] = B(-1), [Oe, de] = B(null), [De, q] = B([]), [ke, Se] = B(null), [Be, he] = B(null), je = Xt(!1), {
|
|
17996
18002
|
distributorName: qe,
|
|
17997
18003
|
distributorIdnum: We,
|
|
17998
18004
|
payableValue: it,
|
|
17999
|
-
typeOfApp:
|
|
18005
|
+
typeOfApp: xe,
|
|
18000
18006
|
transactionId: re,
|
|
18001
18007
|
showResultOnly: be,
|
|
18002
18008
|
successButtonText: Ve,
|
|
@@ -18014,7 +18020,7 @@ const mu = ({
|
|
|
18014
18020
|
viewId: we,
|
|
18015
18021
|
sessionId: Je,
|
|
18016
18022
|
erpId: st
|
|
18017
|
-
} =
|
|
18023
|
+
} = wn(), tt = Gr(() => ({
|
|
18018
18024
|
type: "collection",
|
|
18019
18025
|
distributorId: We || "",
|
|
18020
18026
|
chemistId: Ue || void 0,
|
|
@@ -18073,16 +18079,18 @@ const mu = ({
|
|
|
18073
18079
|
Q,
|
|
18074
18080
|
R
|
|
18075
18081
|
]), ut(() => {
|
|
18082
|
+
xe === In.FUNDLY_TRADE && vn.setEnabled(!1);
|
|
18083
|
+
}, [xe]), ut(() => {
|
|
18076
18084
|
if (be || mt || !ot || je.current || rt.length === 0)
|
|
18077
18085
|
return;
|
|
18078
|
-
const oe =
|
|
18086
|
+
const oe = xe === In.FUNDLY_MART ? "customer" : xe === In.FUNDLY_TRADE ? "internal_user" : et && et > 0 ? "salesman" : Ke && Ke.trim() !== "" ? "guest" : "retailer";
|
|
18079
18087
|
if ((oe === "customer" || oe === "internal_user" || oe === "guest") && !Ne)
|
|
18080
18088
|
return;
|
|
18081
|
-
je.current = !0, Ne &&
|
|
18089
|
+
je.current = !0, Ne && vn.setUserIdentity(Ne);
|
|
18082
18090
|
const Te = () => {
|
|
18083
18091
|
const _t = navigator.userAgent.toLowerCase();
|
|
18084
18092
|
return _t.includes("android") ? "android" : _t.includes("iphone") || _t.includes("ipad") || _t.includes("ipod") ? "ios" : "web";
|
|
18085
|
-
}, At = () =>
|
|
18093
|
+
}, At = () => xe === In.FUNDLY_COLLECT_APP ? "collect_app" : xe === In.FUNDLY_CUSTOMER_APP ? "customer_app" : xe === "FUNDLY_QR_WEB" ? "web" : xe === In.FUNDLY_MART ? "fundly_mart" : xe === In.FUNDLY_TRADE ? "fundly_trade" : "external_app", vt = () => xe === In.FUNDLY_COLLECT_APP ? "collect_app" : xe === In.FUNDLY_CUSTOMER_APP ? "customer_app" : null, Rt = () => xe === "FUNDLY_QR_WEB" ? "invoice_qr" : Fe === "INVOICE_COLLECT" ? "invoice_pay_page" : Fe === "DIRECT_COLLECT" ? "direct_pay_page" : "invoice_qr", zn = Ze?.map((_t) => _t.invoiceId?.toString() || _t.invoiceNumber?.toString()).filter(Boolean) || null, Pn = Je || `sdk_session_${Date.now()}_${Math.random().toString(36).substring(2, 11)}`, ei = {
|
|
18086
18094
|
scan_id: _ || null,
|
|
18087
18095
|
// From consumer app (salesman-app)
|
|
18088
18096
|
view_id: we || null,
|
|
@@ -18110,13 +18118,13 @@ const mu = ({
|
|
|
18110
18118
|
error_code: null,
|
|
18111
18119
|
error_description: null,
|
|
18112
18120
|
failure_stage: null,
|
|
18113
|
-
sdk_version: "1.4.0-beta.
|
|
18121
|
+
sdk_version: "1.4.0-beta.8",
|
|
18114
18122
|
app_context: At(),
|
|
18115
|
-
app_version: "1.4.0-beta.
|
|
18123
|
+
app_version: "1.4.0-beta.8",
|
|
18116
18124
|
mobile_number: ce || null,
|
|
18117
18125
|
uuid: Ne || null
|
|
18118
18126
|
};
|
|
18119
|
-
|
|
18127
|
+
vn.trackPaymentSDKLaunched(ei);
|
|
18120
18128
|
}, [
|
|
18121
18129
|
mt,
|
|
18122
18130
|
ot,
|
|
@@ -18130,7 +18138,7 @@ const mu = ({
|
|
|
18130
18138
|
it,
|
|
18131
18139
|
Fe,
|
|
18132
18140
|
Ze,
|
|
18133
|
-
|
|
18141
|
+
xe,
|
|
18134
18142
|
_,
|
|
18135
18143
|
we,
|
|
18136
18144
|
Je,
|
|
@@ -18259,7 +18267,7 @@ const mu = ({
|
|
|
18259
18267
|
}
|
|
18260
18268
|
)
|
|
18261
18269
|
] }),
|
|
18262
|
-
/* @__PURE__ */ n("div", { className: "fp:flex-1 fp:overflow-y-auto fp:mb-12 fp:mt-2", children:
|
|
18270
|
+
/* @__PURE__ */ n("div", { className: "fp:flex-1 fp:overflow-y-auto fp:mb-12 fp:mt-2", children: xe === "FUNDLY_CUSTOMER_APP" && !ze ? /* @__PURE__ */ n("div", { className: "fp:w-full fp:h-full fp:flex fp:items-center fp:justify-center", children: /* @__PURE__ */ c("div", { className: "fp:w-full fp:max-w-md fp:bg-white fp:border fp:border-gray-200 fp:rounded-2xl fp:p-8 fp:text-center fp:shadow-sm", children: [
|
|
18263
18271
|
/* @__PURE__ */ n("div", { className: "fp:w-16 fp:h-16 fp:mx-auto fp:mb-4 fp:bg-gray-100 fp:rounded-full fp:flex fp:items-center fp:justify-center", children: /* @__PURE__ */ n(
|
|
18264
18272
|
"svg",
|
|
18265
18273
|
{
|
|
@@ -18295,7 +18303,7 @@ const mu = ({
|
|
|
18295
18303
|
] })
|
|
18296
18304
|
] })
|
|
18297
18305
|
] }),
|
|
18298
|
-
(
|
|
18306
|
+
(xe === "FUNDLY_CUSTOMER_APP" || xe === "FUNDLY_QR_WEB") && ze && /* @__PURE__ */ c("div", { className: "fp:w-full fp:mt-2", children: [
|
|
18299
18307
|
/* @__PURE__ */ c(
|
|
18300
18308
|
"label",
|
|
18301
18309
|
{
|
|
@@ -18336,9 +18344,9 @@ const mu = ({
|
|
|
18336
18344
|
let Rt = [], zn = 0;
|
|
18337
18345
|
Qe?.subLimits && Array.isArray(Qe.subLimits) && (Rt = Qe.subLimits.filter(
|
|
18338
18346
|
(It) => It.expired === !1
|
|
18339
|
-
), Rt.sort((It,
|
|
18347
|
+
), Rt.sort((It, Cn) => {
|
|
18340
18348
|
const xi = It.maxEligibleAmount || It.availableLimit || 0;
|
|
18341
|
-
return (
|
|
18349
|
+
return (Cn.maxEligibleAmount || Cn.availableLimit || 0) - xi;
|
|
18342
18350
|
}), Rt.length > 0 && (zn = Math.max(
|
|
18343
18351
|
...Rt.map(
|
|
18344
18352
|
(It) => It.maxEligibleAmount || It.availableLimit || 0
|
|
@@ -18421,14 +18429,14 @@ const mu = ({
|
|
|
18421
18429
|
] })
|
|
18422
18430
|
] }) }),
|
|
18423
18431
|
!vt && Pn && ie && /* @__PURE__ */ c(Yt, { children: [
|
|
18424
|
-
/* @__PURE__ */ n("div", { className: "fp:w-full fp:bg-white fp:border-x fp:border-gray-100 fp:rounded-b-xl fp:px-3 fp:pt-3 fp:pb-2 fp:flex fp:flex-col fp:space-y-2.5", children: Rt.map((It,
|
|
18432
|
+
/* @__PURE__ */ n("div", { className: "fp:w-full fp:bg-white fp:border-x fp:border-gray-100 fp:rounded-b-xl fp:px-3 fp:pt-3 fp:pb-2 fp:flex fp:flex-col fp:space-y-2.5", children: Rt.map((It, Cn) => {
|
|
18425
18433
|
const xi = It.maxEligibleAmount || It.availableLimit || 0, yt = xi < oe;
|
|
18426
18434
|
return /* @__PURE__ */ n(
|
|
18427
18435
|
"button",
|
|
18428
18436
|
{
|
|
18429
18437
|
type: "button",
|
|
18430
18438
|
disabled: yt,
|
|
18431
|
-
className: `fp:w-full fp:text-left fp:focus:outline-none fp:transition-all fp:duration-150 ${yt ? "fp:cursor-not-allowed fp:opacity-50" :
|
|
18439
|
+
className: `fp:w-full fp:text-left fp:focus:outline-none fp:transition-all fp:duration-150 ${yt ? "fp:cursor-not-allowed fp:opacity-50" : ge === Cn ? "fp:bg-[#EBF4FA]" : "fp:bg-white fp:hover:border-[#16558B] fp:cursor-pointer"}`,
|
|
18432
18440
|
style: {
|
|
18433
18441
|
fontFamily: "Poppins",
|
|
18434
18442
|
paddingTop: "10px",
|
|
@@ -18438,14 +18446,14 @@ const mu = ({
|
|
|
18438
18446
|
borderRadius: "8px",
|
|
18439
18447
|
borderWidth: "0.87px",
|
|
18440
18448
|
borderStyle: "solid",
|
|
18441
|
-
borderColor: yt ? "#E0E0E0" :
|
|
18449
|
+
borderColor: yt ? "#E0E0E0" : ge === Cn ? "#C5DBED" : "#E8EEF3",
|
|
18442
18450
|
height: "35px",
|
|
18443
18451
|
display: "flex",
|
|
18444
18452
|
alignItems: "center"
|
|
18445
18453
|
},
|
|
18446
18454
|
onClick: () => {
|
|
18447
18455
|
if (!yt) {
|
|
18448
|
-
Ee(
|
|
18456
|
+
Ee(Cn), de(It.fiCode);
|
|
18449
18457
|
const Rn = nt(It);
|
|
18450
18458
|
q(Rn.tenureMappings), Se(Rn.repaymentOption), he(Rn.disbursementAccount), me(!1), R("FUNDLY_PAY");
|
|
18451
18459
|
}
|
|
@@ -18486,7 +18494,7 @@ const mu = ({
|
|
|
18486
18494
|
}
|
|
18487
18495
|
)
|
|
18488
18496
|
},
|
|
18489
|
-
|
|
18497
|
+
Cn
|
|
18490
18498
|
);
|
|
18491
18499
|
}) }),
|
|
18492
18500
|
/* @__PURE__ */ n("div", { className: "fp:w-[95%] fp:m-auto fp:bg-[#E6F7EF] fp:flex fp:p-2 fp:text-[#34A877] fp:rounded-b-xl fp:border-x fp:border-b fp:border-gray-100", children: /* @__PURE__ */ c("label", { style: { fontFamily: "Poppins" }, children: [
|
|
@@ -18570,9 +18578,9 @@ const mu = ({
|
|
|
18570
18578
|
}
|
|
18571
18579
|
)
|
|
18572
18580
|
] }),
|
|
18573
|
-
(rt.includes(cn.BANK_TRANSFER) || rt.includes(cn.DYNAMIC_QR) && !(
|
|
18581
|
+
(rt.includes(cn.BANK_TRANSFER) || rt.includes(cn.DYNAMIC_QR) && !(xe === In.FUNDLY_CUSTOMER_APP && rt.includes(cn.PAYMENT_LINK)) || rt.includes(cn.PAYMENT_LINK) && (xe === In.FUNDLY_COLLECT_APP || xe === In.FUNDLY_TRADE)) && /* @__PURE__ */ c("div", { className: "fp:w-full fp:mt-6 fp:flex fp:flex-col fp:space-y-2", children: [
|
|
18574
18582
|
/* @__PURE__ */ n("h2", { className: "fp:text-[16px] fp:font-semibold", children: "Online Payment Options" }),
|
|
18575
|
-
rt.includes(cn.DYNAMIC_QR) && !(
|
|
18583
|
+
rt.includes(cn.DYNAMIC_QR) && !(xe === In.FUNDLY_CUSTOMER_APP && rt.includes(cn.PAYMENT_LINK)) && /* @__PURE__ */ c(
|
|
18576
18584
|
"div",
|
|
18577
18585
|
{
|
|
18578
18586
|
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",
|
|
@@ -18593,7 +18601,7 @@ const mu = ({
|
|
|
18593
18601
|
]
|
|
18594
18602
|
}
|
|
18595
18603
|
),
|
|
18596
|
-
rt.includes(cn.PAYMENT_LINK) && (
|
|
18604
|
+
rt.includes(cn.PAYMENT_LINK) && (xe === In.FUNDLY_COLLECT_APP || xe === In.FUNDLY_TRADE) && /* @__PURE__ */ c(
|
|
18597
18605
|
"div",
|
|
18598
18606
|
{
|
|
18599
18607
|
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",
|
|
@@ -18790,7 +18798,7 @@ const mu = ({
|
|
|
18790
18798
|
onPaymentCollected: (oe) => {
|
|
18791
18799
|
G(oe);
|
|
18792
18800
|
},
|
|
18793
|
-
selectedLenderIdx:
|
|
18801
|
+
selectedLenderIdx: ge,
|
|
18794
18802
|
selectedLenderFiCode: Oe,
|
|
18795
18803
|
selectedLenderTenureMappings: De,
|
|
18796
18804
|
selectedLenderRepaymentOption: ke,
|
|
@@ -18875,12 +18883,12 @@ function hu({ children: m, initialValues: o }) {
|
|
|
18875
18883
|
o?.businessName || null
|
|
18876
18884
|
), [U, z] = B(null), [H, R] = B([]), [Z, G] = B([]), [te, J] = B([]), [Q, V] = B(0), [ve, Le] = B("FULL"), [W, se] = B(null), [Ae, ye] = B(o?.onPaymentComplete ? () => o.onPaymentComplete : void 0), [Ie, K] = B(o?.onNavigateHome ? () => o.onNavigateHome : void 0), [ie, me] = B(
|
|
18877
18885
|
o?.sessionId || null
|
|
18878
|
-
), [
|
|
18886
|
+
), [ge, Ee] = B(
|
|
18879
18887
|
o?.erpId || null
|
|
18880
18888
|
);
|
|
18881
18889
|
ut(() => {
|
|
18882
18890
|
const de = $s(), De = eo();
|
|
18883
|
-
de &&
|
|
18891
|
+
de && vn.configure({
|
|
18884
18892
|
enabled: !0,
|
|
18885
18893
|
clevertap: {
|
|
18886
18894
|
accountId: de,
|
|
@@ -18915,7 +18923,7 @@ function hu({ children: m, initialValues: o }) {
|
|
|
18915
18923
|
setOnNavigateHome: K,
|
|
18916
18924
|
sessionId: ie,
|
|
18917
18925
|
setSessionId: me,
|
|
18918
|
-
erpId:
|
|
18926
|
+
erpId: ge,
|
|
18919
18927
|
setErpId: Ee
|
|
18920
18928
|
};
|
|
18921
18929
|
return /* @__PURE__ */ n(l0.Provider, { value: Oe, children: m });
|
|
@@ -18948,7 +18956,7 @@ function d0({ children: m, initialValues: o }) {
|
|
|
18948
18956
|
);
|
|
18949
18957
|
ut(() => {
|
|
18950
18958
|
const Ee = $s(), Oe = eo();
|
|
18951
|
-
Ee &&
|
|
18959
|
+
Ee && vn.configure({
|
|
18952
18960
|
enabled: !0,
|
|
18953
18961
|
clevertap: {
|
|
18954
18962
|
accountId: Ee,
|
|
@@ -18956,7 +18964,7 @@ function d0({ children: m, initialValues: o }) {
|
|
|
18956
18964
|
}
|
|
18957
18965
|
});
|
|
18958
18966
|
}, []);
|
|
18959
|
-
const
|
|
18967
|
+
const ge = {
|
|
18960
18968
|
partnerCredentials: g,
|
|
18961
18969
|
setPartnerCredentials: w,
|
|
18962
18970
|
businessId: a,
|
|
@@ -18984,7 +18992,7 @@ function d0({ children: m, initialValues: o }) {
|
|
|
18984
18992
|
erpId: ie,
|
|
18985
18993
|
setErpId: me
|
|
18986
18994
|
};
|
|
18987
|
-
return /* @__PURE__ */ n(c0.Provider, { value:
|
|
18995
|
+
return /* @__PURE__ */ n(c0.Provider, { value: ge, children: m });
|
|
18988
18996
|
}
|
|
18989
18997
|
function Au() {
|
|
18990
18998
|
const m = Ho(c0);
|
|
@@ -19073,7 +19081,7 @@ const He = ({ className: m = "" }) => /* @__PURE__ */ n("div", { className: `fp:
|
|
|
19073
19081
|
}, ve = (W) => {
|
|
19074
19082
|
P === W ? (O(null), z(null), R(null)) : (O(W), W !== "custom" && (z(null), R(null)));
|
|
19075
19083
|
}, Le = (W) => `fp:px-4 fp:py-2 fp:rounded-full fp:text-[13px] fp:font-medium fp:transition-colors ${W ? "fp:bg-[#16558B] fp:text-white" : "fp:border fp:border-[#D0D0D0] fp:text-[#222222] fp:bg-white"}`;
|
|
19076
|
-
return /* @__PURE__ */ n(
|
|
19084
|
+
return /* @__PURE__ */ n(Nn, { open: m, onClose: o, children: /* @__PURE__ */ c("div", { className: "fp:px-5 fp:pt-5 fp:pb-6", children: [
|
|
19077
19085
|
/* @__PURE__ */ n("div", { className: "fp:flex fp:justify-center fp:mb-4", children: /* @__PURE__ */ n("div", { className: "fp:w-10 fp:h-1 fp:rounded-full fp:bg-[#D0D0D0]" }) }),
|
|
19078
19086
|
/* @__PURE__ */ c("div", { className: "fp:flex fp:items-center fp:gap-2.5 fp:mb-6", children: [
|
|
19079
19087
|
/* @__PURE__ */ n("svg", { width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "#16558B", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ n("path", { d: "M22 12h-4l-3 9L9 3l-3 9H2" }) }),
|
|
@@ -19398,7 +19406,7 @@ const He = ({ className: m = "" }) => /* @__PURE__ */ n("div", { className: `fp:
|
|
|
19398
19406
|
default:
|
|
19399
19407
|
return re;
|
|
19400
19408
|
}
|
|
19401
|
-
}, Ie = a?.id ?? g.transactionId, K = a?.amount ?? g.amount, ie = a?.status ?? g.status, me = a?.date ?? g.date,
|
|
19409
|
+
}, Ie = a?.id ?? g.transactionId, K = a?.amount ?? g.amount, ie = a?.status ?? g.status, me = a?.date ?? g.date, ge = a?.paymentMode ?? g.paymentMode, Ee = a?.supplierName && a.supplierName.trim() || g.supplierName || g.name || "", Oe = a?.lender || g.lenderName || "", de = a?.type === "LENDING" || g.transactionType === "LOAN_REPAYMENT", q = a?.loan?.loans || [], ke = a?.invoice || [], Se = g.invoiceNumbers || [], Be = ke.length > 0 || Se.length > 0, he = ke.length > 0 ? ke.map((re) => re.invoiceNumber).join(", ") : Se.join(", "), je = ke.find((re) => re.remark && re.remark.trim())?.remark || a?.settlement?.find((re) => re.description && re.description.trim())?.description || "", qe = ke.filter(
|
|
19402
19410
|
(re) => re.documentIds && re.documentIds.length > 0
|
|
19403
19411
|
), We = async () => {
|
|
19404
19412
|
let re = `Transaction Details
|
|
@@ -19407,7 +19415,7 @@ Transaction ID: ${Ie}
|
|
|
19407
19415
|
Paid Amount: ₹${Number(K).toLocaleString("en-IN")}
|
|
19408
19416
|
Status: ${ye(ie)}
|
|
19409
19417
|
Date & Time: ${me ? se(me) : "N/A"}
|
|
19410
|
-
Payment Mode: ${
|
|
19418
|
+
Payment Mode: ${ge || "N/A"}`;
|
|
19411
19419
|
de && Oe ? (re += `
|
|
19412
19420
|
Lender: ${Oe}`, q.length > 0 && (re += `
|
|
19413
19421
|
Loan ID${q.length > 1 ? "s" : ""}: ${q.map((be) => be.loanId).join(", ")}`)) : Ee && (re += `
|
|
@@ -19427,7 +19435,7 @@ Invoice No: ${he}`);
|
|
|
19427
19435
|
}
|
|
19428
19436
|
};
|
|
19429
19437
|
return /* @__PURE__ */ c(Yt, { children: [
|
|
19430
|
-
/* @__PURE__ */ n(
|
|
19438
|
+
/* @__PURE__ */ n(Nn, { open: m, onClose: o, children: P ? /* @__PURE__ */ c("div", { className: "fp:px-5 fp:pt-5 fp:pb-6", children: [
|
|
19431
19439
|
/* @__PURE__ */ n(He, { className: "fp:w-40 fp:h-5 fp:rounded fp:mb-2" }),
|
|
19432
19440
|
/* @__PURE__ */ n(He, { className: "fp:w-56 fp:h-4 fp:rounded" }),
|
|
19433
19441
|
/* @__PURE__ */ n("div", { className: "fp:mt-4 fp:border fp:border-[#E8EEF8] fp:rounded-[12px] fp:px-4 fp:py-3.5 fp:space-y-3", children: [1, 2, 3, 4, 5].map((re) => /* @__PURE__ */ c("div", { className: "fp:flex fp:justify-between fp:items-center", children: [
|
|
@@ -19481,7 +19489,7 @@ Invoice No: ${he}`);
|
|
|
19481
19489
|
] }),
|
|
19482
19490
|
/* @__PURE__ */ c("div", { className: "fp:flex fp:justify-between fp:items-center", children: [
|
|
19483
19491
|
/* @__PURE__ */ n("span", { className: "fp:text-[13px] fp:font-normal fp:text-[#6D6D6D]", children: "Payment Mode" }),
|
|
19484
|
-
/* @__PURE__ */ n("span", { className: "fp:text-[13px] fp:font-medium fp:text-[#222222]", children:
|
|
19492
|
+
/* @__PURE__ */ n("span", { className: "fp:text-[13px] fp:font-medium fp:text-[#222222]", children: ge })
|
|
19485
19493
|
] }),
|
|
19486
19494
|
!de && Ee && /* @__PURE__ */ c("div", { className: "fp:flex fp:justify-between fp:items-center", children: [
|
|
19487
19495
|
/* @__PURE__ */ n("span", { className: "fp:text-[13px] fp:font-normal fp:text-[#6D6D6D]", children: "Supplier Name" }),
|
|
@@ -19607,7 +19615,7 @@ Invoice No: ${he}`);
|
|
|
19607
19615
|
{ label: "Paid Amount", value: `₹${ft(K)}` },
|
|
19608
19616
|
{ label: "Status", value: ye(ie), color: Ae(ie).replace("fp:text-[", "").replace("]", "") },
|
|
19609
19617
|
{ label: "Date & Time", value: me ? se(me) : "N/A" },
|
|
19610
|
-
{ label: "Payment Mode", value:
|
|
19618
|
+
{ label: "Payment Mode", value: ge || "N/A" },
|
|
19611
19619
|
...!de && Ee ? [{ label: "Supplier Name", value: Ee }] : [],
|
|
19612
19620
|
...de && Oe ? [{ label: "Lender", value: Oe }] : []
|
|
19613
19621
|
].map((re, be) => /* @__PURE__ */ c("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: be < 5 ? "10px" : "0" }, children: [
|
|
@@ -19663,7 +19671,7 @@ Invoice No: ${he}`);
|
|
|
19663
19671
|
}
|
|
19664
19672
|
)
|
|
19665
19673
|
] }) }),
|
|
19666
|
-
/* @__PURE__ */ c(
|
|
19674
|
+
/* @__PURE__ */ c(En, { open: Z, onClose: Le, children: [
|
|
19667
19675
|
/* @__PURE__ */ n(mi, { sx: { padding: "8px 12px" }, children: /* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:items-center fp:justify-between", children: [
|
|
19668
19676
|
/* @__PURE__ */ n("span", { className: "fp:text-[14px] fp:font-semibold fp:text-[#222222] fp:truncate", children: Q }),
|
|
19669
19677
|
/* @__PURE__ */ n(
|
|
@@ -19675,7 +19683,7 @@ Invoice No: ${he}`);
|
|
|
19675
19683
|
}
|
|
19676
19684
|
)
|
|
19677
19685
|
] }) }),
|
|
19678
|
-
/* @__PURE__ */ n(
|
|
19686
|
+
/* @__PURE__ */ n(Mn, { children: te ? /* @__PURE__ */ n("div", { className: "fp:flex fp:items-center fp:justify-center fp:h-48", children: /* @__PURE__ */ n("div", { className: "fp:w-8 fp:h-8 fp:border-2 fp:border-[#16558B] fp:border-t-transparent fp:rounded-full fp:animate-spin" }) }) : H.length === 0 ? /* @__PURE__ */ n("div", { className: "fp:flex fp:items-center fp:justify-center fp:h-48", children: /* @__PURE__ */ n("p", { className: "fp:text-sm fp:text-[#6D6D6D]", children: "No documents found" }) }) : /* @__PURE__ */ n("div", { className: "fp:space-y-3", children: H.map((re, be) => /* @__PURE__ */ n(
|
|
19679
19687
|
"img",
|
|
19680
19688
|
{
|
|
19681
19689
|
src: re.presignedUrl,
|
|
@@ -19917,7 +19925,7 @@ const Hl = () => _s() === "production" ? "production" : "sandbox", Du = () => ir
|
|
|
19917
19925
|
}), Ae = (K) => {
|
|
19918
19926
|
const ie = new Set(U);
|
|
19919
19927
|
ie.has(K) ? ie.delete(K) : ie.add(K), z(ie);
|
|
19920
|
-
const me = P.filter((
|
|
19928
|
+
const me = P.filter((ge) => ie.has(ge.loanId)).reduce((ge, Ee) => ge + Ee.outstandingAmount, 0);
|
|
19921
19929
|
J(me > 0 ? me.toFixed(2) : "");
|
|
19922
19930
|
}, ye = async () => {
|
|
19923
19931
|
if (!w || !a || !te) return;
|
|
@@ -19935,7 +19943,7 @@ const Hl = () => _s() === "production" ? "production" : "sandbox", Du = () => ir
|
|
|
19935
19943
|
else if (ie.paymentUrl)
|
|
19936
19944
|
window.location.href = ie.paymentUrl;
|
|
19937
19945
|
else {
|
|
19938
|
-
const me = P.filter((
|
|
19946
|
+
const me = P.filter((ge) => U.has(ge.loanId));
|
|
19939
19947
|
o(me);
|
|
19940
19948
|
}
|
|
19941
19949
|
} catch (ie) {
|
|
@@ -20356,20 +20364,20 @@ const Hl = () => _s() === "production" ? "production" : "sandbox", Du = () => ir
|
|
|
20356
20364
|
showSuccessDrawer: Q,
|
|
20357
20365
|
showFailureDrawer: V
|
|
20358
20366
|
} = a0(), ve = Gr(
|
|
20359
|
-
() => m.reduce((me,
|
|
20367
|
+
() => m.reduce((me, ge) => me + ge.outstandingAmount, 0),
|
|
20360
20368
|
[m]
|
|
20361
20369
|
), Le = a ?? ve * 2, W = w ?? Le - ve, se = Le > 0 ? W / Le * 100 : 0, Ae = Gr(() => {
|
|
20362
20370
|
const me = /* @__PURE__ */ new Map();
|
|
20363
|
-
for (const
|
|
20364
|
-
if (me.has(
|
|
20365
|
-
const Ee = me.get(
|
|
20366
|
-
Ee.totalAmount +=
|
|
20371
|
+
for (const ge of m)
|
|
20372
|
+
if (me.has(ge.lenderId)) {
|
|
20373
|
+
const Ee = me.get(ge.lenderId);
|
|
20374
|
+
Ee.totalAmount += ge.outstandingAmount, new Date(ge.dueDate) < new Date(Ee.earliestDueDate) && (Ee.earliestDueDate = ge.dueDate);
|
|
20367
20375
|
} else
|
|
20368
|
-
me.set(
|
|
20369
|
-
lenderId:
|
|
20370
|
-
lenderName:
|
|
20371
|
-
totalAmount:
|
|
20372
|
-
earliestDueDate:
|
|
20376
|
+
me.set(ge.lenderId, {
|
|
20377
|
+
lenderId: ge.lenderId,
|
|
20378
|
+
lenderName: ge.lenderName,
|
|
20379
|
+
totalAmount: ge.outstandingAmount,
|
|
20380
|
+
earliestDueDate: ge.dueDate
|
|
20373
20381
|
});
|
|
20374
20382
|
return Array.from(me.values());
|
|
20375
20383
|
}, [m]), ye = Gr(
|
|
@@ -20794,7 +20802,7 @@ export {
|
|
|
20794
20802
|
Ju as c,
|
|
20795
20803
|
t0 as d,
|
|
20796
20804
|
Ge as e,
|
|
20797
|
-
|
|
20805
|
+
vn as f,
|
|
20798
20806
|
Up as g,
|
|
20799
20807
|
qp as h,
|
|
20800
20808
|
Hp as r,
|