@fundly.ai/payment-sdk 1.2.2-beta.7 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  import { jsxs as c, Fragment as Ot, jsx as i } from "react/jsx-runtime";
2
- import ln, { useRef as Zt, useEffect as ft, createContext as Jo, useState as S, useMemo as Wr, useContext as Yo, useCallback as Mn } from "react";
2
+ import cn, { useRef as Vt, useEffect as ft, createContext as Jo, useState as S, useMemo as Wr, useContext as Yo, useCallback as Mn } from "react";
3
3
  import { DotLottieReact as kp } from "@lottiefiles/dotlottie-react";
4
4
  import { createPortal as Op } from "react-dom";
5
5
  const Dn = ({ open: m, onClose: o, children: I }) => {
6
- const w = Zt(null);
6
+ const w = Vt(null);
7
7
  ft(() => {
8
8
  const R = (T) => {
9
9
  T.key === "Escape" && m && o();
@@ -305,7 +305,7 @@ function Yp() {
305
305
  return "".concat(T, "//").concat(this.finalTargetDomain, "/e?r=1");
306
306
  }
307
307
  }
308
- const W = new RegExp(`^\\s+|\\.|:|\\$|'|"|\\\\|\\s+$`, "g"), J = new RegExp(`^\\s+|'|"|\\\\|\\s+$`, "g"), Z = new RegExp("'", "g"), re = "clear", we = "Charged ID", ve = "WZRK_CHARGED_ID", G = "WZRK_G", ne = "WZRK_K", Me = "WZRK_CAMP", K = "WZRK_CAMP_G", Ce = "WZRK_S", ce = 1200, ie = "WZRK_EV", xe = "WZRK_META", ue = "WZRK_PR", Se = "WZRK_ACCOUNT_ID", V = "WZRK_ARP", Ae = "WZRK_L", le = "global", Le = "display", Ve = "WZRK_WPR", De = "optOut", ge = "ct_optout", je = ":OO", He = "useIP", ze = "WZRK_X", ke = 100, Ie = "isOUL", Jt = "push", he = "ping", me = 86400 * 365, Be = 200, Te = 120 * 1e3, Qe = 300 * 1e3, et = "2", We = "cUsY", Xe = "wzrk_", oe = "wzrk_id", Ee = "Notification Viewed", Fe = "Notification Clicked", _e = "WZRK_FPU", Ke = "WZRK_PSD", it = "$incr", gt = "$decr", At = "$set", rt = "$add", wt = "$remove", Ct = "$delete", Ye = "WZRK_INBOX_CONFIG", Je = "WZRK_INBOX", vt = 15, Nt = "WZRK_PE", Dt = 1e3, mt = 1e3 * 60 * 10, st = "wzrk_fetch", ot = "WZRK_PUSH_CONFIG", $ = "WZRK_APPLICATION_SERVER_KEY_RECIEVED", Ne = "WZRK_WEB_PUSH_CONFIG_RECEIVED", tt = "WZRK_NOTIFICATION_PUSH_DEFERRED", $e = "vapid_migration_prompt_shown", dt = "notif_last_time", tn = 300, Vn = "wzrk_wrapper", In = "pnWrapper", rn = "WZRK_POPUP_LOADING", Hi = "ctCustomHtmlPreview", Yt = "ctWebPopupPreview", bt = "WZRK_QC", Kn = "_w_", jn = "WZRK_BLOCK", _n = "WZRK_ISOLATE_SD", Pt = {
308
+ const W = new RegExp(`^\\s+|\\.|:|\\$|'|"|\\\\|\\s+$`, "g"), J = new RegExp(`^\\s+|'|"|\\\\|\\s+$`, "g"), Z = new RegExp("'", "g"), re = "clear", we = "Charged ID", ve = "WZRK_CHARGED_ID", G = "WZRK_G", ne = "WZRK_K", Me = "WZRK_CAMP", K = "WZRK_CAMP_G", Ce = "WZRK_S", ce = 1200, ie = "WZRK_EV", xe = "WZRK_META", ue = "WZRK_PR", Se = "WZRK_ACCOUNT_ID", V = "WZRK_ARP", Ae = "WZRK_L", le = "global", Le = "display", Ve = "WZRK_WPR", De = "optOut", ge = "ct_optout", je = ":OO", He = "useIP", ze = "WZRK_X", ke = 100, Ie = "isOUL", Jt = "push", he = "ping", me = 86400 * 365, Be = 200, Te = 120 * 1e3, Qe = 300 * 1e3, et = "2", We = "cUsY", Xe = "wzrk_", oe = "wzrk_id", Ee = "Notification Viewed", Fe = "Notification Clicked", _e = "WZRK_FPU", Ke = "WZRK_PSD", it = "$incr", gt = "$decr", At = "$set", rt = "$add", wt = "$remove", Ct = "$delete", Ye = "WZRK_INBOX_CONFIG", Je = "WZRK_INBOX", vt = 15, Nt = "WZRK_PE", Dt = 1e3, mt = 1e3 * 60 * 10, st = "wzrk_fetch", ot = "WZRK_PUSH_CONFIG", $ = "WZRK_APPLICATION_SERVER_KEY_RECIEVED", Ne = "WZRK_WEB_PUSH_CONFIG_RECEIVED", tt = "WZRK_NOTIFICATION_PUSH_DEFERRED", $e = "vapid_migration_prompt_shown", dt = "notif_last_time", nn = 300, Vn = "wzrk_wrapper", In = "pnWrapper", sn = "WZRK_POPUP_LOADING", Hi = "ctCustomHtmlPreview", Yt = "ctWebPopupPreview", bt = "WZRK_QC", Kn = "_w_", jn = "WZRK_BLOCK", _n = "WZRK_ISOLATE_SD", Pt = {
309
309
  KV_PAIR: 1,
310
310
  BANNER: 2,
311
311
  CAROUSEL: 3,
@@ -337,12 +337,12 @@ function Yp() {
337
337
  OPEN_WEB_URL: "open-web-url",
338
338
  SOFT_PROMPT: "soft-prompt",
339
339
  RUN_JS: "js"
340
- }, cn = (r) => typeof r == "string" || r instanceof String, Xt = (r) => Object.prototype.toString.call(r) === "[object Object]", $n = (r) => typeof r == "object" && r instanceof Date, dn = (r) => {
340
+ }, $n = (r) => typeof r == "string" || r instanceof String, Xt = (r) => Object.prototype.toString.call(r) === "[object Object]", Ht = (r) => typeof r == "object" && r instanceof Date, dn = (r) => {
341
341
  for (const e in r)
342
342
  if (r.hasOwnProperty(e))
343
343
  return !1;
344
344
  return !0;
345
- }, Wi = (r) => !isNaN(parseFloat(r)) && isFinite(r), Xi = (r) => /^-?[\d.]+(?:e-?\d+)?$/.test(r) && typeof r == "number", qt = (r) => !(r == null || r === "undefined"), Wo = (r, e) => {
345
+ }, Wi = (r) => !isNaN(parseFloat(r)) && isFinite(r), Xi = (r) => /^-?[\d.]+(?:e-?\d+)?$/.test(r) && typeof r == "number", Gt = (r) => !(r == null || r === "undefined"), Wo = (r, e) => {
346
346
  if (typeof r == "object") {
347
347
  for (const t in r)
348
348
  if (r.hasOwnProperty(t)) {
@@ -352,7 +352,7 @@ function Yp() {
352
352
  }
353
353
  } else {
354
354
  let t;
355
- return cn(r) ? (t = $s(r, J), t.length > 1024 && (t = t.substring(0, 1024), e.reportError(521, t + "... length exceeded 1024 chars. Trimmed."))) : t = r, t;
355
+ return $n(r) ? (t = $s(r, J), t.length > 1024 && (t = t.substring(0, 1024), e.reportError(521, t + "... length exceeded 1024 chars. Trimmed."))) : t = r, t;
356
356
  }
357
357
  return r;
358
358
  }, $s = (r, e) => r.replace(e, ""), eo = () => {
@@ -2004,7 +2004,7 @@ function Yp() {
2004
2004
  })(us)), us.exports;
2005
2005
  }
2006
2006
  var As = { exports: {} }, T0 = As.exports, fa;
2007
- function nn() {
2007
+ function rn() {
2008
2008
  return fa || (fa = 1, (function(r, e) {
2009
2009
  (function(t, n, s) {
2010
2010
  r.exports = n(ht(), mi());
@@ -2557,7 +2557,7 @@ function Yp() {
2557
2557
  function z0() {
2558
2558
  return ua || (ua = 1, (function(r, e) {
2559
2559
  (function(t, n, s) {
2560
- r.exports = n(ht(), nn());
2560
+ r.exports = n(ht(), rn());
2561
2561
  })(F0, function(t) {
2562
2562
  return t.mode.CFB = (function() {
2563
2563
  var n = t.lib.BlockCipherMode.extend();
@@ -2587,7 +2587,7 @@ function Yp() {
2587
2587
  function Q0() {
2588
2588
  return Aa || (Aa = 1, (function(r, e) {
2589
2589
  (function(t, n, s) {
2590
- r.exports = n(ht(), nn());
2590
+ r.exports = n(ht(), rn());
2591
2591
  })(R0, function(t) {
2592
2592
  return t.mode.CTR = (function() {
2593
2593
  var n = t.lib.BlockCipherMode.extend(), s = n.Encryptor = n.extend({
@@ -2609,7 +2609,7 @@ function Yp() {
2609
2609
  function J0() {
2610
2610
  return ma || (ma = 1, (function(r, e) {
2611
2611
  (function(t, n, s) {
2612
- r.exports = n(ht(), nn());
2612
+ r.exports = n(ht(), rn());
2613
2613
  })(U0, function(t) {
2614
2614
  /** @preserve
2615
2615
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
@@ -2648,7 +2648,7 @@ function Yp() {
2648
2648
  function H0() {
2649
2649
  return ha || (ha = 1, (function(r, e) {
2650
2650
  (function(t, n, s) {
2651
- r.exports = n(ht(), nn());
2651
+ r.exports = n(ht(), rn());
2652
2652
  })(Y0, function(t) {
2653
2653
  return t.mode.OFB = (function() {
2654
2654
  var n = t.lib.BlockCipherMode.extend(), s = n.Encryptor = n.extend({
@@ -2668,7 +2668,7 @@ function Yp() {
2668
2668
  function X0() {
2669
2669
  return xa || (xa = 1, (function(r, e) {
2670
2670
  (function(t, n, s) {
2671
- r.exports = n(ht(), nn());
2671
+ r.exports = n(ht(), rn());
2672
2672
  })(W0, function(t) {
2673
2673
  return t.mode.ECB = (function() {
2674
2674
  var n = t.lib.BlockCipherMode.extend();
@@ -2689,7 +2689,7 @@ function Yp() {
2689
2689
  function Z0() {
2690
2690
  return Ia || (Ia = 1, (function(r, e) {
2691
2691
  (function(t, n, s) {
2692
- r.exports = n(ht(), nn());
2692
+ r.exports = n(ht(), rn());
2693
2693
  })(G0, function(t) {
2694
2694
  return t.pad.AnsiX923 = {
2695
2695
  pad: function(n, s) {
@@ -2708,7 +2708,7 @@ function Yp() {
2708
2708
  function V0() {
2709
2709
  return ga || (ga = 1, (function(r, e) {
2710
2710
  (function(t, n, s) {
2711
- r.exports = n(ht(), nn());
2711
+ r.exports = n(ht(), rn());
2712
2712
  })(q0, function(t) {
2713
2713
  return t.pad.Iso10126 = {
2714
2714
  pad: function(n, s) {
@@ -2727,7 +2727,7 @@ function Yp() {
2727
2727
  function _0() {
2728
2728
  return wa || (wa = 1, (function(r, e) {
2729
2729
  (function(t, n, s) {
2730
- r.exports = n(ht(), nn());
2730
+ r.exports = n(ht(), rn());
2731
2731
  })(K0, function(t) {
2732
2732
  return t.pad.Iso97971 = {
2733
2733
  pad: function(n, s) {
@@ -2744,7 +2744,7 @@ function Yp() {
2744
2744
  function ec() {
2745
2745
  return Ca || (Ca = 1, (function(r, e) {
2746
2746
  (function(t, n, s) {
2747
- r.exports = n(ht(), nn());
2747
+ r.exports = n(ht(), rn());
2748
2748
  })($0, function(t) {
2749
2749
  return t.pad.ZeroPadding = {
2750
2750
  pad: function(n, s) {
@@ -2766,7 +2766,7 @@ function Yp() {
2766
2766
  function nc() {
2767
2767
  return ya || (ya = 1, (function(r, e) {
2768
2768
  (function(t, n, s) {
2769
- r.exports = n(ht(), nn());
2769
+ r.exports = n(ht(), rn());
2770
2770
  })(tc, function(t) {
2771
2771
  return t.pad.NoPadding = {
2772
2772
  pad: function() {
@@ -2781,7 +2781,7 @@ function Yp() {
2781
2781
  function rc() {
2782
2782
  return va || (va = 1, (function(r, e) {
2783
2783
  (function(t, n, s) {
2784
- r.exports = n(ht(), nn());
2784
+ r.exports = n(ht(), rn());
2785
2785
  })(ic, function(t) {
2786
2786
  return (function(n) {
2787
2787
  var s = t, l = s.lib, u = l.CipherParams, d = s.enc, A = d.Hex, p = s.format;
@@ -2830,7 +2830,7 @@ function Yp() {
2830
2830
  function oc() {
2831
2831
  return ba || (ba = 1, (function(r, e) {
2832
2832
  (function(t, n, s) {
2833
- r.exports = n(ht(), Ci(), yi(), mi(), nn());
2833
+ r.exports = n(ht(), Ci(), yi(), mi(), rn());
2834
2834
  })(sc, function(t) {
2835
2835
  return (function() {
2836
2836
  var n = t, s = n.lib, l = s.BlockCipher, u = n.algo, d = [], A = [], p = [], f = [], C = [], h = [], y = [], b = [], D = [], M = [];
@@ -2890,7 +2890,7 @@ function Yp() {
2890
2890
  function lc() {
2891
2891
  return Ma || (Ma = 1, (function(r, e) {
2892
2892
  (function(t, n, s) {
2893
- r.exports = n(ht(), Ci(), yi(), mi(), nn());
2893
+ r.exports = n(ht(), Ci(), yi(), mi(), rn());
2894
2894
  })(ac, function(t) {
2895
2895
  return (function() {
2896
2896
  var n = t, s = n.lib, l = s.WordArray, u = s.BlockCipher, d = n.algo, A = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4], p = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32], f = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], C = [{
@@ -3486,7 +3486,7 @@ function Yp() {
3486
3486
  function dc() {
3487
3487
  return Ea || (Ea = 1, (function(r, e) {
3488
3488
  (function(t, n, s) {
3489
- r.exports = n(ht(), Ci(), yi(), mi(), nn());
3489
+ r.exports = n(ht(), Ci(), yi(), mi(), rn());
3490
3490
  })(cc, function(t) {
3491
3491
  return (function() {
3492
3492
  var n = t, s = n.lib, l = s.StreamCipher, u = n.algo, d = u.RC4 = l.extend({
@@ -3540,7 +3540,7 @@ function Yp() {
3540
3540
  function fc() {
3541
3541
  return Na || (Na = 1, (function(r, e) {
3542
3542
  (function(t, n, s) {
3543
- r.exports = n(ht(), Ci(), yi(), mi(), nn());
3543
+ r.exports = n(ht(), Ci(), yi(), mi(), rn());
3544
3544
  })(pc, function(t) {
3545
3545
  return (function() {
3546
3546
  var n = t, s = n.lib, l = s.StreamCipher, u = n.algo, d = [], A = [], p = [], f = u.Rabbit = l.extend({
@@ -3588,7 +3588,7 @@ function Yp() {
3588
3588
  function Ac() {
3589
3589
  return Da || (Da = 1, (function(r, e) {
3590
3590
  (function(t, n, s) {
3591
- r.exports = n(ht(), Ci(), yi(), mi(), nn());
3591
+ r.exports = n(ht(), Ci(), yi(), mi(), rn());
3592
3592
  })(uc, function(t) {
3593
3593
  return (function() {
3594
3594
  var n = t, s = n.lib, l = s.StreamCipher, u = n.algo, d = [], A = [], p = [], f = u.RabbitLegacy = l.extend({
@@ -3634,7 +3634,7 @@ function Yp() {
3634
3634
  function hc() {
3635
3635
  return La || (La = 1, (function(r, e) {
3636
3636
  (function(t, n, s) {
3637
- r.exports = n(ht(), Ci(), yi(), mi(), nn());
3637
+ r.exports = n(ht(), Ci(), yi(), mi(), rn());
3638
3638
  })(mc, function(t) {
3639
3639
  return (function() {
3640
3640
  var n = t, s = n.lib, l = s.BlockCipher, u = n.algo;
@@ -3710,7 +3710,7 @@ function Yp() {
3710
3710
  function Ic() {
3711
3711
  return ja || (ja = 1, (function(r, e) {
3712
3712
  (function(t, n, s) {
3713
- r.exports = n(ht(), _r(), A0(), h0(), Ci(), g0(), yi(), ta(), no(), b0(), sa(), N0(), L0(), S0(), io(), O0(), mi(), nn(), z0(), Q0(), J0(), H0(), X0(), Z0(), V0(), _0(), ec(), nc(), rc(), oc(), lc(), dc(), fc(), Ac(), hc());
3713
+ r.exports = n(ht(), _r(), A0(), h0(), Ci(), g0(), yi(), ta(), no(), b0(), sa(), N0(), L0(), S0(), io(), O0(), mi(), rn(), z0(), Q0(), J0(), H0(), X0(), Z0(), V0(), _0(), ec(), nc(), rc(), oc(), lc(), dc(), fc(), Ac(), hc());
3714
3714
  })(xc, function(t) {
3715
3715
  return t;
3716
3716
  });
@@ -4045,11 +4045,11 @@ function Yp() {
4045
4045
  let u = !1, d = !1;
4046
4046
  if (window.isOULInProgress && (n || s !== "undefined" && s === window.oulReqN) && (window.isOULInProgress = !1, u = !0), typeof s > "u" && (s = 0), B.removeBackup(s, a(this, Mi)[Mi]), s > j.globalCache.REQ_N)
4047
4047
  return;
4048
- if (qt(a(this, pn)[pn].gcookie) || e && (d = !0), !qt(a(this, pn)[pn].gcookie) || n || typeof l == "boolean") {
4048
+ if (Gt(a(this, pn)[pn].gcookie) || e && (d = !0), !Gt(a(this, pn)[pn].gcookie) || n || typeof l == "boolean") {
4049
4049
  const p = a(this, Pn)[Pn].getSessionCookieObject();
4050
4050
  if (window.isOULInProgress || p.s && t < p.s)
4051
4051
  return;
4052
- if (a(this, Mi)[Mi].debug("Cookie was ".concat(a(this, pn)[pn].gcookie, " set to ").concat(e)), a(this, pn)[pn].gcookie = e, qt(a(this, pn)[pn].gcookie) || B.getAndClearMetaProp(He), e && B._isLocalStorageSupported()) {
4052
+ if (a(this, Mi)[Mi].debug("Cookie was ".concat(a(this, pn)[pn].gcookie, " set to ").concat(e)), a(this, pn)[pn].gcookie = e, Gt(a(this, pn)[pn].gcookie) || B.getAndClearMetaProp(He), e && B._isLocalStorageSupported()) {
4053
4053
  j.LRU_CACHE == null && (j.LRU_CACHE = new Sa(ke));
4054
4054
  const f = B.readFromLSorCookie(ne);
4055
4055
  let C;
@@ -4064,7 +4064,7 @@ function Yp() {
4064
4064
  }
4065
4065
  B._isLocalStorageSupported() && a(this, Pn)[Pn].manageSession(t);
4066
4066
  const A = a(this, Pn)[Pn].getSessionCookieObject();
4067
- (typeof A.s > "u" || A.s <= t) && (A.s = t, A.t = wi(), a(this, Pn)[Pn].setSessionCookieObject(A)), qt(a(this, pn)[pn].gcookie) && (j.blockRequest = !1), (u || d) && !a(this, ti)[ti].processingBackup && a(this, ti)[ti].processBackupEvents(), j.globalCache.RESP_N = s;
4067
+ (typeof A.s > "u" || A.s <= t) && (A.s = t, A.t = wi(), a(this, Pn)[Pn].setSessionCookieObject(A)), Gt(a(this, pn)[pn].gcookie) && (j.blockRequest = !1), (u || d) && !a(this, ti)[ti].processingBackup && a(this, ti)[ti].processBackupEvents(), j.globalCache.RESP_N = s;
4068
4068
  }
4069
4069
  }
4070
4070
  var Ei = w("logger");
@@ -4081,20 +4081,20 @@ function Yp() {
4081
4081
  }
4082
4082
  getGuid() {
4083
4083
  let e = null;
4084
- if (qt(this.gcookie))
4084
+ if (Gt(this.gcookie))
4085
4085
  return this.gcookie;
4086
4086
  if (B._isLocalStorageSupported()) {
4087
4087
  const t = B.read(G);
4088
- if (qt(t)) {
4088
+ if (Gt(t)) {
4089
4089
  try {
4090
4090
  e = JSON.parse(decodeURIComponent(t));
4091
4091
  } catch {
4092
4092
  a(this, Ei)[Ei].debug("Cannot parse Gcookie from localstorage - must be encoded " + t), t.length === 32 ? (e = t, B.saveToLSorCookie(G, t)) : a(this, Ei)[Ei].error("Illegal guid " + t);
4093
4093
  }
4094
- qt(e) && B.createBroadCookie(G, e, me, window.location.hostname);
4094
+ Gt(e) && B.createBroadCookie(G, e, me, window.location.hostname);
4095
4095
  }
4096
4096
  }
4097
- return qt(e) || (e = B.readCookie(G), qt(e) && (e.indexOf("%") === 0 || e.indexOf("'") === 0 || e.indexOf('"') === 0) && (e = null), qt(e) && B.saveToLSorCookie(G, e)), e;
4097
+ return Gt(e) || (e = B.readCookie(G), Gt(e) && (e.indexOf("%") === 0 || e.indexOf("'") === 0 || e.indexOf('"') === 0) && (e = null), Gt(e) && B.saveToLSorCookie(G, e)), e;
4098
4098
  }
4099
4099
  }
4100
4100
  const Gi = "This property has been ignored.", Tn = "CleverTap error:", vc = "".concat(Tn, " Incorrect embed script."), bc = "".concat(Tn, " Event structure not valid. ").concat(Gi), Mc = "".concat(Tn, " Gender value should one of the following: m,f,o,u,male,female,unknown,others (case insensitive). ").concat(Gi), Ec = "".concat(Tn, " Employed value should be either Y or N. ").concat(Gi), Nc = "".concat(Tn, " Married value should be either Y or N. ").concat(Gi), Dc = "".concat(Tn, " Education value should be either School, College or Graduate. ").concat(Gi), Lc = "".concat(Tn, " Age value should be a number. ").concat(Gi), jc = "".concat(Tn, " DOB value should be a Date Object"), Sc = "".concat(Tn, " setEnum(value). value should be a string or a number"), Ba = "".concat(Tn, " Phone number should be formatted as +[country code][number]");
@@ -4105,7 +4105,7 @@ function Yp() {
4105
4105
  if (r.hasOwnProperty(e)) {
4106
4106
  if (Xt(r[e]) || Array.isArray(r[e]))
4107
4107
  return !1;
4108
- $n(r[e]) && (r[e] = Zr(r[e]));
4108
+ Ht(r[e]) && (r[e] = Zr(r[e]));
4109
4109
  }
4110
4110
  return !0;
4111
4111
  }
@@ -4124,9 +4124,9 @@ function Yp() {
4124
4124
  } else {
4125
4125
  if (Xt(r[t]) || Array.isArray(r[t]))
4126
4126
  return !1;
4127
- $n(r[t]) && (r[t] = Zr(r[t]));
4127
+ Ht(r[t]) && (r[t] = Zr(r[t]));
4128
4128
  }
4129
- if (cn(r[we]) || Xi(r[we])) {
4129
+ if ($n(r[we]) || Xi(r[we])) {
4130
4130
  const s = r[we] + "";
4131
4131
  if (typeof fr > "u" && (fr = B.readFromLSorCookie(ve)), typeof fr < "u" && fr.trim() === s.trim())
4132
4132
  return e.error("Duplicate charged Id - Dropped" + r), !1;
@@ -4136,7 +4136,7 @@ function Yp() {
4136
4136
  }
4137
4137
  return !1;
4138
4138
  };
4139
- var sn = w("logger"), ni = w("oldValues"), ur = w("request"), Ar = w("isPersonalisationActive"), mr = w("processEventArray");
4139
+ var on = w("logger"), ni = w("oldValues"), ur = w("request"), Ar = w("isPersonalisationActive"), mr = w("processEventArray");
4140
4140
  class kc extends Array {
4141
4141
  constructor(e, t) {
4142
4142
  let {
@@ -4146,7 +4146,7 @@ function Yp() {
4146
4146
  } = e;
4147
4147
  super(), Object.defineProperty(this, mr, {
4148
4148
  value: Oc
4149
- }), Object.defineProperty(this, sn, {
4149
+ }), Object.defineProperty(this, on, {
4150
4150
  writable: !0,
4151
4151
  value: void 0
4152
4152
  }), Object.defineProperty(this, ni, {
@@ -4158,7 +4158,7 @@ function Yp() {
4158
4158
  }), Object.defineProperty(this, Ar, {
4159
4159
  writable: !0,
4160
4160
  value: void 0
4161
- }), a(this, sn)[sn] = n, a(this, ni)[ni] = t, a(this, ur)[ur] = s, a(this, Ar)[Ar] = l;
4161
+ }), a(this, on)[on] = n, a(this, ni)[ni] = t, a(this, ur)[ur] = s, a(this, Ar)[Ar] = l;
4162
4162
  }
4163
4163
  push() {
4164
4164
  if (B.readFromLSorCookie(Se)) {
@@ -4166,7 +4166,7 @@ function Yp() {
4166
4166
  t[n] = arguments[n];
4167
4167
  return a(this, mr)[mr](t), 0;
4168
4168
  } else
4169
- a(this, sn)[sn].error("Account ID is not set");
4169
+ a(this, on)[on].error("Account ID is not set");
4170
4170
  }
4171
4171
  _processOldValues() {
4172
4172
  a(this, ni)[ni] && a(this, mr)[mr](a(this, ni)[ni]), a(this, ni)[ni] = null;
@@ -4183,12 +4183,12 @@ function Yp() {
4183
4183
  if (Array.isArray(e))
4184
4184
  for (; e.length > 0; ) {
4185
4185
  var t = e.shift();
4186
- if (!cn(t)) {
4187
- a(this, sn)[sn].error(bc);
4186
+ if (!$n(t)) {
4187
+ a(this, on)[on].error(bc);
4188
4188
  continue;
4189
4189
  }
4190
- if (t.length > 1024 && (t = t.substring(0, 1024), a(this, sn)[sn].reportError(510, t + "... length exceeded 1024 chars. Trimmed.")), Lt.includes(t)) {
4191
- a(this, sn)[sn].reportError(513, t + " is a restricted system event. It cannot be used as an event name.");
4190
+ if (t.length > 1024 && (t = t.substring(0, 1024), a(this, on)[on].reportError(510, t + "... length exceeded 1024 chars. Trimmed.")), Lt.includes(t)) {
4191
+ a(this, on)[on].reportError(513, t + " is a restricted system event. It cannot be used as an event name.");
4192
4192
  continue;
4193
4193
  }
4194
4194
  const n = {};
@@ -4198,12 +4198,12 @@ function Yp() {
4198
4198
  e.unshift(s);
4199
4199
  else {
4200
4200
  if (t === "Charged") {
4201
- if (!Bc(s, a(this, sn)[sn])) {
4202
- a(this, sn)[sn].reportError(511, "Charged event structure invalid. Not sent.");
4201
+ if (!Bc(s, a(this, on)[on])) {
4202
+ a(this, on)[on].reportError(511, "Charged event structure invalid. Not sent.");
4203
4203
  continue;
4204
4204
  }
4205
4205
  } else if (!ka(s)) {
4206
- a(this, sn)[sn].reportError(512, t + " event structure invalid. Not sent.");
4206
+ a(this, on)[on].reportError(512, t + " event structure invalid. Not sent.");
4207
4207
  continue;
4208
4208
  }
4209
4209
  n.evtData = s;
@@ -4307,7 +4307,7 @@ function Yp() {
4307
4307
  return e.href = r, e.hostname;
4308
4308
  }, at = (r, e, t) => r + "&" + e + "=" + encodeURIComponent(t), ks = () => window.location.hostname;
4309
4309
  var Ni = w("fireRequest"), oo = w("dropRequestDueToOptOut"), ao = w("addUseIPToRequest"), lo = w("addARPToRequest");
4310
- class on {
4310
+ class an {
4311
4311
  constructor() {
4312
4312
  this.networkRetryCount = 0, this.minDelayFrequency = 0;
4313
4313
  }
@@ -4341,24 +4341,24 @@ function Yp() {
4341
4341
  var t = B.getMetaProp(He);
4342
4342
  return typeof t != "boolean" && (t = !1), at(e, He, t ? "true" : "false");
4343
4343
  }, Qc = function() {
4344
- return j.isOptInRequest || !qt(this.device.gcookie) || !cn(this.device.gcookie) ? (j.isOptInRequest = !1, !1) : this.device.gcookie.slice(-3) === je;
4344
+ return j.isOptInRequest || !Gt(this.device.gcookie) || !$n(this.device.gcookie) ? (j.isOptInRequest = !1, !1) : this.device.gcookie.slice(-3) === je;
4345
4345
  }, Uc = function(e, t, n, s, l) {
4346
4346
  var u, d, A, p, f, C, h;
4347
4347
  if (a(this, oo)[oo]()) {
4348
4348
  this.logger.debug("req dropped due to optout cookie: " + this.device.gcookie);
4349
4349
  return;
4350
4350
  }
4351
- if (qt(this.device.gcookie) || (j.blockRequest = !0), l && l === st)
4352
- !qt(this.device.gcookie) && j.globalCache.RESP_N < j.globalCache.REQ_N - 1 && setTimeout(() => {
4351
+ if (Gt(this.device.gcookie) || (j.blockRequest = !0), l && l === st)
4352
+ !Gt(this.device.gcookie) && j.globalCache.RESP_N < j.globalCache.REQ_N - 1 && setTimeout(() => {
4353
4353
  this.logger.debug("retrying fire request for url: ".concat(e, ", tries: ").concat(this.networkRetryCount)), a(this, Ni)[Ni](e, void 0, n, s);
4354
4354
  }, this.getDelayFrequency());
4355
- else if (!qt(this.device.gcookie) && j.globalCache.RESP_N < j.globalCache.REQ_N - 1 && t < Be) {
4355
+ else if (!Gt(this.device.gcookie) && j.globalCache.RESP_N < j.globalCache.REQ_N - 1 && t < Be) {
4356
4356
  setTimeout(() => {
4357
4357
  this.logger.debug("retrying fire request for url: ".concat(e, ", tries: ").concat(t)), a(this, Ni)[Ni](e, t + 1, n, s);
4358
4358
  }, 50);
4359
4359
  return;
4360
4360
  }
4361
- if (s ? window.isOULInProgress = !0 : (qt(this.device.gcookie) && (e = at(e, "gc", this.device.gcookie)), e = a(this, lo)[lo](e, n)), e = at(e, "tries", t), e = at(e, "origin", (u = (d = window) === null || d === void 0 || (A = d.location) === null || A === void 0 ? void 0 : A.origin) !== null && u !== void 0 ? u : (p = window) === null || p === void 0 || (f = p.location) === null || f === void 0 ? void 0 : f.href), e = a(this, ao)[ao](e), e = at(e, "r", (/* @__PURE__ */ new Date()).getTime()), !((C = window.clevertap) === null || C === void 0) && C.hasOwnProperty("plugin") || !((h = window.wizrocket) === null || h === void 0) && h.hasOwnProperty("plugin")) {
4361
+ if (s ? window.isOULInProgress = !0 : (Gt(this.device.gcookie) && (e = at(e, "gc", this.device.gcookie)), e = a(this, lo)[lo](e, n)), e = at(e, "tries", t), e = at(e, "origin", (u = (d = window) === null || d === void 0 || (A = d.location) === null || A === void 0 ? void 0 : A.origin) !== null && u !== void 0 ? u : (p = window) === null || p === void 0 || (f = p.location) === null || f === void 0 ? void 0 : f.href), e = a(this, ao)[ao](e), e = at(e, "r", (/* @__PURE__ */ new Date()).getTime()), !((C = window.clevertap) === null || C === void 0) && C.hasOwnProperty("plugin") || !((h = window.wizrocket) === null || h === void 0) && h.hasOwnProperty("plugin")) {
4362
4362
  const D = window.clevertap.plugin || window.wizrocket.plugin;
4363
4363
  e = at(e, "ct_pl", D);
4364
4364
  }
@@ -4368,13 +4368,13 @@ function Yp() {
4368
4368
  const b = document.createElement("script");
4369
4369
  b.setAttribute("type", "text/javascript"), b.setAttribute("src", e), b.setAttribute("class", "ct-jp-cb"), b.setAttribute("rel", "nofollow"), b.async = !0, document.getElementsByTagName("head")[0].appendChild(b), this.logger.debug("req snt -> url: " + e);
4370
4370
  };
4371
- on.logger = void 0, on.device = void 0, on.account = void 0, Object.defineProperty(on, Ni, {
4371
+ an.logger = void 0, an.device = void 0, an.account = void 0, Object.defineProperty(an, Ni, {
4372
4372
  value: Uc
4373
- }), Object.defineProperty(on, oo, {
4373
+ }), Object.defineProperty(an, oo, {
4374
4374
  value: Qc
4375
- }), Object.defineProperty(on, ao, {
4375
+ }), Object.defineProperty(an, ao, {
4376
4376
  value: Rc
4377
- }), Object.defineProperty(on, lo, {
4377
+ }), Object.defineProperty(an, lo, {
4378
4378
  value: zc
4379
4379
  });
4380
4380
  const co = (r, e) => {
@@ -4410,7 +4410,7 @@ function Yp() {
4410
4410
  return e.replace(/(<\s*\/\s*body)/, "".concat(t, `
4411
4411
  $1`));
4412
4412
  }, Pa = (r, e) => {
4413
- const t = Vt(), n = t[e].global;
4413
+ const t = Kt(), n = t[e].global;
4414
4414
  if (n != null && e) {
4415
4415
  for (const s in r)
4416
4416
  if (r.hasOwnProperty(s) && (delete n[r[s]], B.read(K))) {
@@ -4444,7 +4444,7 @@ $1`));
4444
4444
  const p = e.display.jsFunc, f = e.display.preview;
4445
4445
  f == null && (r += Fa(l, u)), d != null && (d.onclick = () => {
4446
4446
  if (p != null)
4447
- f == null && on.fireRequest(r), co(p, e), Di("-1", n, u.sessionId);
4447
+ f == null && an.fireRequest(r), co(p, e), Di("-1", n, u.sessionId);
4448
4448
  else {
4449
4449
  const C = e.display.preview ? e.display.onClick : new URL(e.display.onClick).searchParams.get("r"), h = e.wzrk_id.split("_")[0];
4450
4450
  C === "pushPrompt" ? (e.display.preview || window.parent.clevertap.renderNotificationClicked({
@@ -4623,7 +4623,7 @@ $1`));
4623
4623
  */
4624
4624
  portTLC(r) {
4625
4625
  var e, t;
4626
- const n = Vt(), s = [];
4626
+ const n = Kt(), s = [];
4627
4627
  if (!n?.wp || Object.keys(n?.wp).length === 0)
4628
4628
  return;
4629
4629
  const l = (n == null || (e = n.wp) === null || e === void 0 ? void 0 : e.global) || {}, u = (n == null || (t = n.wp) === null || t === void 0 ? void 0 : t[r.sessionId]) || {}, d = Object.keys(l);
@@ -4634,7 +4634,7 @@ $1`));
4634
4634
  const h = Xn.portCampaignDetails(p, C, f);
4635
4635
  ii(h);
4636
4636
  }
4637
- const A = Vt();
4637
+ const A = Kt();
4638
4638
  ii({
4639
4639
  ...A,
4640
4640
  dnd: [.../* @__PURE__ */ new Set([...A.dnd || [], ...s])],
@@ -4643,7 +4643,7 @@ $1`));
4643
4643
  },
4644
4644
  portCampaignDetails(r, e, t) {
4645
4645
  var n;
4646
- const s = e === "dnd" ? t : e, l = Vt();
4646
+ const s = e === "dnd" ? t : e, l = Kt();
4647
4647
  l.wfc = l.wfc || {};
4648
4648
  const u = Array.isArray(l.wfc[r]) ? l.wfc[r] : [];
4649
4649
  let d = [];
@@ -4681,19 +4681,19 @@ $1`));
4681
4681
  },
4682
4682
  isPopupCampaignAlreadyShown(r) {
4683
4683
  var e;
4684
- const t = Vt(), n = t == null || (e = t.wfc) === null || e === void 0 ? void 0 : e[r];
4684
+ const t = Kt(), n = t == null || (e = t.wfc) === null || e === void 0 ? void 0 : e[r];
4685
4685
  return n?.length > 0;
4686
4686
  },
4687
4687
  isCampaignAddedToDND(r) {
4688
4688
  var e;
4689
- const t = Vt();
4689
+ const t = Kt();
4690
4690
  return t == null || (e = t.dnd) === null || e === void 0 ? void 0 : e.includes(r);
4691
4691
  },
4692
4692
  updateOccurenceForPopupAndNativeDisplay(r, e, t) {
4693
4693
  var n, s, l, u, d, A, p, f;
4694
4694
  const C = JSON.parse(decodeURIComponent(B.read(K)));
4695
- let y = C?.[e?.gcookie] || Vt();
4696
- const b = Xn.updateFrequencyCounter(r.wtq, y.woc), D = Xn.updateFrequencyCounter(r.wndtq, y.wndoc), M = (n = (s = Vt()) === null || s === void 0 ? void 0 : s.wi) !== null && n !== void 0 ? n : {}, L = (l = (u = Vt()) === null || u === void 0 ? void 0 : u.wp) !== null && l !== void 0 ? l : {}, v = (d = (A = Vt()) === null || A === void 0 ? void 0 : A.wsc) !== null && d !== void 0 ? d : 0, x = (p = (f = Vt()) === null || f === void 0 ? void 0 : f.wndsc) !== null && p !== void 0 ? p : 0;
4695
+ let y = C?.[e?.gcookie] || Kt();
4696
+ const b = Xn.updateFrequencyCounter(r.wtq, y.woc), D = Xn.updateFrequencyCounter(r.wndtq, y.wndoc), M = (n = (s = Kt()) === null || s === void 0 ? void 0 : s.wi) !== null && n !== void 0 ? n : {}, L = (l = (u = Kt()) === null || u === void 0 ? void 0 : u.wp) !== null && l !== void 0 ? l : {}, v = (d = (A = Kt()) === null || A === void 0 ? void 0 : A.wsc) !== null && d !== void 0 ? d : 0, x = (p = (f = Kt()) === null || f === void 0 ? void 0 : f.wndsc) !== null && p !== void 0 ? p : 0;
4697
4697
  y = {
4698
4698
  ...y,
4699
4699
  woc: b,
@@ -4738,7 +4738,7 @@ $1`));
4738
4738
  */
4739
4739
  clearStaleCampaigns(r, e) {
4740
4740
  try {
4741
- const t = Vt();
4741
+ const t = Kt();
4742
4742
  if (!t) {
4743
4743
  e.debug("No campaign object found");
4744
4744
  return;
@@ -4783,7 +4783,7 @@ $1`));
4783
4783
  B.saveToLSorCookie(bt, encodeURIComponent(JSON.stringify(f)));
4784
4784
  }
4785
4785
  }
4786
- const Vt = () => {
4786
+ const Kt = () => {
4787
4787
  let r = {};
4788
4788
  if (B._isLocalStorageSupported()) {
4789
4789
  let e = B.read(Me);
@@ -4793,7 +4793,7 @@ $1`));
4793
4793
  }, ii = (r) => {
4794
4794
  if (B._isLocalStorageSupported()) {
4795
4795
  const e = {
4796
- ...Vt(),
4796
+ ...Kt(),
4797
4797
  ...r
4798
4798
  }, t = JSON.stringify(e);
4799
4799
  B.save(Me, encodeURIComponent(t)), Wc();
@@ -4803,7 +4803,7 @@ $1`));
4803
4803
  var t, n, s;
4804
4804
  if (!r || !r.wzrk_id)
4805
4805
  throw new Error("Invalid campaign details provided");
4806
- const l = Vt() || {}, d = r.wzrk_id.split("_")[0], A = r == null || (t = r.display) === null || t === void 0 ? void 0 : t.efc;
4806
+ const l = Kt() || {}, d = r.wzrk_id.split("_")[0], A = r == null || (t = r.display) === null || t === void 0 ? void 0 : t.efc;
4807
4807
  if (!d)
4808
4808
  throw new Error("Failed to parse campaign ID");
4809
4809
  const p = r == null || (n = r.display) === null || n === void 0 ? void 0 : n.wtarget_type, C = {
@@ -4835,12 +4835,12 @@ $1`));
4835
4835
  }, Wc = () => {
4836
4836
  if (B._isLocalStorageSupported()) {
4837
4837
  let t = B.read(G);
4838
- if (qt(t))
4838
+ if (Gt(t))
4839
4839
  try {
4840
4840
  t = JSON.parse(decodeURIComponent(B.read(G)));
4841
4841
  const n = B.read(K) ? JSON.parse(decodeURIComponent(B.read(K))) : {};
4842
4842
  if (t && B._isLocalStorageSupported()) {
4843
- var r = {}, e = Vt();
4843
+ var r = {}, e = Kt();
4844
4844
  Object.keys(e).forEach((s) => {
4845
4845
  const l = t in n && Object.keys(n[t]).length && n[t][s] ? n[t][s] : {}, u = e[s].global, d = eo(), A = e[s][d];
4846
4846
  if (typeof u < "u") {
@@ -4883,7 +4883,7 @@ $1`));
4883
4883
  if (B._isLocalStorageSupported()) {
4884
4884
  var t, n, s, l, u, d, A, p, f, C, h, y;
4885
4885
  let b = {};
4886
- e = Vt();
4886
+ e = Kt();
4887
4887
  const D = B.read(K), M = D ? decodeURIComponent(D) : null, L = M ? JSON.parse(M) : null, v = r && D !== void 0 && D !== null && L && L[r] && L[r].wi ? Object.values(L[r].wi) : [], x = {
4888
4888
  wsc: (t = (n = e) === null || n === void 0 ? void 0 : n.wsc) !== null && t !== void 0 ? t : 0,
4889
4889
  wfc: (s = (l = e) === null || l === void 0 ? void 0 : l.wfc) !== null && s !== void 0 ? s : {},
@@ -4914,7 +4914,7 @@ $1`));
4914
4914
  delete r[s];
4915
4915
  continue;
4916
4916
  }
4917
- s === "Gender" && !l.match(/\b(?:[mM](?:ale)?|[fF](?:emale)?|[oO](?:thers)?|[uU](?:nknown)?)\b/) && (n = !1, t.error(Mc)), s === "Employed" && !l.match(/^Y$|^N$/) && (n = !1, t.error(Ec)), s === "Married" && !l.match(/^Y$|^N$/) && (n = !1, t.error(Nc)), s === "Education" && !l.match(/^School$|^College$|^Graduate$/) && (n = !1, t.error(Dc)), s === "Age" && l != null && (Wi(l) ? r.Age = +l : (n = !1, t.error(Lc))), s === "DOB" && (!/^\$D_/.test(l) || (l + "").length !== 11) && !$n(l) && (n = !1, t.error(jc)), $n(l) && (r[s] = Zr(l)), s === "Phone" && !dn(l) && (l.length > 8 && l.charAt(0) === "+" ? (l = l.substring(1, l.length), Wi(l) ? r.Phone = +l : (n = !1, t.error(Ba + ". Removed."))) : (n = !1, t.error(Ba + ". Removed."))), n || delete r[s];
4917
+ s === "Gender" && !l.match(/\b(?:[mM](?:ale)?|[fF](?:emale)?|[oO](?:thers)?|[uU](?:nknown)?)\b/) && (n = !1, t.error(Mc)), s === "Employed" && !l.match(/^Y$|^N$/) && (n = !1, t.error(Ec)), s === "Married" && !l.match(/^Y$|^N$/) && (n = !1, t.error(Nc)), s === "Education" && !l.match(/^School$|^College$|^Graduate$/) && (n = !1, t.error(Dc)), s === "Age" && l != null && (Wi(l) ? r.Age = +l : (n = !1, t.error(Lc))), s === "DOB" && (!/^\$D_/.test(l) || (l + "").length !== 11) && !Ht(l) && (n = !1, t.error(jc)), Ht(l) && (r[s] = Zr(l)), s === "Phone" && !dn(l) && (l.length > 8 && l.charAt(0) === "+" ? (l = l.substring(1, l.length), Wi(l) ? r.Phone = +l : (n = !1, t.error(Ba + ". Removed."))) : (n = !1, t.error(Ba + ". Removed."))), n || delete r[s];
4918
4918
  }
4919
4919
  }
4920
4920
  return n;
@@ -4985,7 +4985,7 @@ $1`));
4985
4985
  }, Di = (r, e, t) => {
4986
4986
  if (r != null && r !== "-1" && B._isLocalStorageSupported()) {
4987
4987
  var n;
4988
- const s = Vt();
4988
+ const s = Kt();
4989
4989
  s.dnd = [.../* @__PURE__ */ new Set([...(n = s.dnd) !== null && n !== void 0 ? n : [], r])], ii(s);
4990
4990
  }
4991
4991
  if (j.campaignDivMap != null) {
@@ -5009,7 +5009,7 @@ $1`));
5009
5009
  console.error("Unable to parse ARP JSON: " + t);
5010
5010
  }
5011
5011
  }, Gc = (r, e) => {
5012
- if (cn(r) || Xi(r))
5012
+ if ($n(r) || Xi(r))
5013
5013
  return "$E_" + r;
5014
5014
  e.error(Sc);
5015
5015
  }, Zc = (r, e, t, n, s) => {
@@ -5018,10 +5018,10 @@ $1`));
5018
5018
  const p = {};
5019
5019
  p.id = n.id, p.unsubGroups = j.unsubGroups, j.updatedCategoryLong && (p[We] = j.updatedCategoryLong);
5020
5020
  let f = n.emailURL;
5021
- t && (f = at(f, "fetchGroups", t)), e && (f = at(f, "encoded", e)), f = at(f, "e", u), f = at(f, "d", fn(JSON.stringify(p), s)), d && (f = at(f, "p", d)), r !== "-1" && (f = at(f, "sub", r)), A && (j.globalUnsubscribe = A === le, f = at(f, "page_type", A)), on.fireRequest(f);
5021
+ t && (f = at(f, "fetchGroups", t)), e && (f = at(f, "encoded", e)), f = at(f, "e", u), f = at(f, "d", fn(JSON.stringify(p), s)), d && (f = at(f, "p", d)), r !== "-1" && (f = at(f, "sub", r)), A && (j.globalUnsubscribe = A === le, f = at(f, "page_type", A)), an.fireRequest(f);
5022
5022
  }
5023
5023
  };
5024
- var Ft = w("logger"), Gt = w("request"), ri = w("account"), si = w("oldValues"), hr = w("isPersonalisationActive"), xr = w("processProfileArray");
5024
+ var Ft = w("logger"), qt = w("request"), ri = w("account"), si = w("oldValues"), hr = w("isPersonalisationActive"), xr = w("processProfileArray");
5025
5025
  class qc extends Array {
5026
5026
  constructor(e, t) {
5027
5027
  let {
@@ -5035,7 +5035,7 @@ $1`));
5035
5035
  }), Object.defineProperty(this, Ft, {
5036
5036
  writable: !0,
5037
5037
  value: void 0
5038
- }), Object.defineProperty(this, Gt, {
5038
+ }), Object.defineProperty(this, qt, {
5039
5039
  writable: !0,
5040
5040
  value: void 0
5041
5041
  }), Object.defineProperty(this, ri, {
@@ -5047,7 +5047,7 @@ $1`));
5047
5047
  }), Object.defineProperty(this, hr, {
5048
5048
  writable: !0,
5049
5049
  value: void 0
5050
- }), a(this, Ft)[Ft] = n, a(this, Gt)[Gt] = s, a(this, ri)[ri] = l, a(this, si)[si] = t, a(this, hr)[hr] = u;
5050
+ }), a(this, Ft)[Ft] = n, a(this, qt)[qt] = s, a(this, ri)[ri] = l, a(this, si)[si] = t, a(this, hr)[hr] = u;
5051
5051
  }
5052
5052
  push() {
5053
5053
  if (B.readFromLSorCookie(Se)) {
@@ -5083,10 +5083,10 @@ $1`));
5083
5083
  const u = {};
5084
5084
  l.type = "profile", u[e] = {
5085
5085
  [n]: t
5086
- }, u.tz == null && (u.tz = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]), l.profile = u, l = a(this, Gt)[Gt].addSystemDataToObject(l, !0), a(this, Gt)[Gt].addFlags(l);
5086
+ }, u.tz == null && (u.tz = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]), l.profile = u, l = a(this, qt)[qt].addSystemDataToObject(l, !0), a(this, qt)[qt].addFlags(l);
5087
5087
  const d = fn(JSON.stringify(l), a(this, Ft)[Ft]);
5088
5088
  let A = a(this, ri)[ri].dataPostURL;
5089
- A = at(A, "type", Jt), A = at(A, "d", d), a(this, Gt)[Gt].saveAndFireRequest(A, j.blockRequest);
5089
+ A = at(A, "type", Jt), A = at(A, "d", d), a(this, qt)[qt].saveAndFireRequest(A, j.blockRequest);
5090
5090
  }
5091
5091
  }
5092
5092
  /**
@@ -5172,10 +5172,10 @@ $1`));
5172
5172
  const l = {};
5173
5173
  s.type = "profile", l[e] = {
5174
5174
  [n]: n === Ct ? !0 : t
5175
- }, l.tz == null && (l.tz = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]), s.profile = l, s = a(this, Gt)[Gt].addSystemDataToObject(s, !0), a(this, Gt)[Gt].addFlags(s);
5175
+ }, l.tz == null && (l.tz = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]), s.profile = l, s = a(this, qt)[qt].addSystemDataToObject(s, !0), a(this, qt)[qt].addFlags(s);
5176
5176
  const u = fn(JSON.stringify(s), a(this, Ft)[Ft]);
5177
5177
  let d = a(this, ri)[ri].dataPostURL;
5178
- d = at(d, "type", Jt), d = at(d, "d", u), a(this, Gt)[Gt].saveAndFireRequest(d, j.blockRequest);
5178
+ d = at(d, "type", Jt), d = at(d, "d", u), a(this, qt)[qt].saveAndFireRequest(d, j.blockRequest);
5179
5179
  }
5180
5180
  }
5181
5181
  var Vc = function(e) {
@@ -5199,14 +5199,14 @@ $1`));
5199
5199
  }));
5200
5200
  }
5201
5201
  if (l != null && !dn(l)) {
5202
- s.type = "profile", l.tz == null && (l.tz = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]), s.profile = l, Os(l, !0), s = a(this, Gt)[Gt].addSystemDataToObject(s, void 0), a(this, Gt)[Gt].addFlags(s);
5202
+ s.type = "profile", l.tz == null && (l.tz = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]), s.profile = l, Os(l, !0), s = a(this, qt)[qt].addSystemDataToObject(s, void 0), a(this, qt)[qt].addFlags(s);
5203
5203
  const u = fn(JSON.stringify(s), a(this, Ft)[Ft]);
5204
5204
  let d = a(this, ri)[ri].dataPostURL;
5205
- d = at(d, "type", Jt), d = at(d, "d", u), a(this, Gt)[Gt].saveAndFireRequest(d, j.blockRequest);
5205
+ d = at(d, "type", Jt), d = at(d, "d", u), a(this, qt)[qt].saveAndFireRequest(d, j.blockRequest);
5206
5206
  }
5207
5207
  }
5208
5208
  }
5209
- }, Fn = w("request"), an = w("logger"), Ir = w("account"), zn = w("session"), oi = w("oldValues"), ai = w("device"), fo = w("processOUL"), uo = w("handleCookieFromCache"), Ao = w("deleteUser"), gr = w("processLoginArray");
5209
+ }, Fn = w("request"), ln = w("logger"), Ir = w("account"), zn = w("session"), oi = w("oldValues"), ai = w("device"), fo = w("processOUL"), uo = w("handleCookieFromCache"), Ao = w("deleteUser"), gr = w("processLoginArray");
5210
5210
  class Kc extends Array {
5211
5211
  constructor(e, t) {
5212
5212
  let {
@@ -5227,7 +5227,7 @@ $1`));
5227
5227
  }), Object.defineProperty(this, Fn, {
5228
5228
  writable: !0,
5229
5229
  value: void 0
5230
- }), Object.defineProperty(this, an, {
5230
+ }), Object.defineProperty(this, ln, {
5231
5231
  writable: !0,
5232
5232
  value: void 0
5233
5233
  }), Object.defineProperty(this, Ir, {
@@ -5242,11 +5242,11 @@ $1`));
5242
5242
  }), Object.defineProperty(this, ai, {
5243
5243
  writable: !0,
5244
5244
  value: void 0
5245
- }), a(this, Fn)[Fn] = n, a(this, Ir)[Ir] = s, a(this, zn)[zn] = l, a(this, an)[an] = u, a(this, oi)[oi] = t, a(this, ai)[ai] = d;
5245
+ }), a(this, Fn)[Fn] = n, a(this, Ir)[Ir] = s, a(this, zn)[zn] = l, a(this, ln)[ln] = u, a(this, oi)[oi] = t, a(this, ai)[ai] = d;
5246
5246
  }
5247
5247
  // On User Login
5248
5248
  clear() {
5249
- a(this, an)[an].debug("clear called. Reset flag has been set."), a(this, Ao)[Ao](), B.setMetaProp(re, !0);
5249
+ a(this, ln)[ln].debug("clear called. Reset flag has been set."), a(this, Ao)[Ao](), B.setMetaProp(re, !0);
5250
5250
  }
5251
5251
  push() {
5252
5252
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
@@ -5301,7 +5301,7 @@ $1`));
5301
5301
  let u = {}, d;
5302
5302
  if (l.Site != null) {
5303
5303
  if (d = l.Site, dn(d) || !Ua(d, {
5304
- logger: a(this, an)[an]
5304
+ logger: a(this, ln)[ln]
5305
5305
  }))
5306
5306
  return;
5307
5307
  } else if (l.Facebook != null) {
@@ -5310,14 +5310,14 @@ $1`));
5310
5310
  } else if (l["Google Plus"] != null) {
5311
5311
  const A = l["Google Plus"];
5312
5312
  dn(A) && !A.error && (d = Ya(A, {
5313
- logger: a(this, an)[an]
5313
+ logger: a(this, ln)[ln]
5314
5314
  }));
5315
5315
  }
5316
5316
  if (d != null && !dn(d)) {
5317
5317
  u.type = "profile", d.tz == null && (d.tz = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]), u.profile = d;
5318
5318
  const A = [];
5319
5319
  B._isLocalStorageSupported() && (d.Identity && A.push(d.Identity), d.Email && A.push(d.Email), d.GPID && A.push("GP:" + d.GPID), d.FBID && A.push("FB:" + d.FBID), A.length > 0 && n(A)), Os(d, !0), u = a(this, Fn)[Fn].addSystemDataToObject(u, void 0), a(this, Fn)[Fn].addFlags(u), t && (u[Ie] = !0);
5320
- const p = fn(JSON.stringify(u), a(this, an)[an]);
5320
+ const p = fn(JSON.stringify(u), a(this, ln)[ln]);
5321
5321
  let f = a(this, Ir)[Ir].dataPostURL;
5322
5322
  f = at(f, "type", Jt), f = at(f, "d", p), a(this, Fn)[Fn].saveAndFireRequest(f, j.blockRequest, t);
5323
5323
  }
@@ -5326,7 +5326,7 @@ $1`));
5326
5326
  }, $c = function() {
5327
5327
  j.blockRequest = !1, console.debug("Block request is false"), B._isLocalStorageSupported() && (delete localStorage[ue], delete localStorage[ie], delete localStorage[xe], delete localStorage[V], delete localStorage[Me], delete localStorage[ve]), B.removeCookie(Me, ks()), B.removeCookie(a(this, zn)[zn].cookieName, j.broadDomain), B.removeCookie(V, j.broadDomain), a(this, zn)[zn].setSessionCookieObject("");
5328
5328
  }, ed = function() {
5329
- j.blockRequest = !0, a(this, an)[an].debug("Block request is true"), j.globalCache = {
5329
+ j.blockRequest = !0, a(this, ln)[ln].debug("Block request is true"), j.globalCache = {
5330
5330
  gcookie: null,
5331
5331
  REQ_N: 0,
5332
5332
  RESP_N: 0
@@ -5339,10 +5339,10 @@ $1`));
5339
5339
  try {
5340
5340
  a(this, fo)[fo]([t]);
5341
5341
  } catch (s) {
5342
- a(this, an)[an].debug(s);
5342
+ a(this, ln)[ln].debug(s);
5343
5343
  }
5344
5344
  } else
5345
- a(this, an)[an].error("Profile object is in incorrect format");
5345
+ a(this, ln)[ln].error("Profile object is in incorrect format");
5346
5346
  }
5347
5347
  };
5348
5348
  const nd = (r) => {
@@ -5804,12 +5804,12 @@ $1`));
5804
5804
  } else
5805
5805
  B.setMetaProp(dt, E);
5806
5806
  }
5807
- if (Li() && a(this, Si)[Si]() && a(this, zt)[zt] !== null && B.setMetaProp($e, !0), B.readFromLSorCookie(rn) || document.getElementById(Vn)) {
5807
+ if (Li() && a(this, Si)[Si]() && a(this, zt)[zt] !== null && B.setMetaProp($e, !0), B.readFromLSorCookie(sn) || document.getElementById(Vn)) {
5808
5808
  a(this, Oe)[Oe].debug("Soft prompt wrapper is already loading or loaded");
5809
5809
  return;
5810
5810
  }
5811
- B.saveToLSorCookie(rn, !0), a(this, xo)[xo]().onload = () => {
5812
- B.saveToLSorCookie(rn, !1), window.wzrkPermissionPopup.wizAlert({
5811
+ B.saveToLSorCookie(sn, !0), a(this, xo)[xo]().onload = () => {
5812
+ B.saveToLSorCookie(sn, !1), window.wzrkPermissionPopup.wizAlert({
5813
5813
  title: t,
5814
5814
  body: n,
5815
5815
  confirmButtonText: s,
@@ -5940,7 +5940,7 @@ $1`));
5940
5940
  isPreview: b
5941
5941
  } = j.pushConfig;
5942
5942
  b ? (j.pushConfig.boxConfig && $a(j.pushConfig, u), j.pushConfig.bellIconConfig && el(j.pushConfig)) : (C && h === "new" && $a(j.pushConfig, u, t, n, s, d, A), y && el(j.pushConfig, n, d, A));
5943
- }, Kt = function(r) {
5943
+ }, _t = function(r) {
5944
5944
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5945
5945
  const t = document.createElement(r);
5946
5946
  return Object.entries(e).forEach((n) => {
@@ -5955,43 +5955,43 @@ $1`));
5955
5955
  content: A,
5956
5956
  style: p
5957
5957
  }
5958
- } = r, f = Kt("div", {
5958
+ } = r, f = _t("div", {
5959
5959
  id: In
5960
- }), C = p.overlay.enabled ? Kt("div", {
5960
+ }), C = p.overlay.enabled ? _t("div", {
5961
5961
  id: "pnOverlay"
5962
- }) : "", h = Kt("div", {
5962
+ }) : "", h = _t("div", {
5963
5963
  id: "pnCard"
5964
- }), y = Kt("div", {
5964
+ }), y = _t("div", {
5965
5965
  id: "iconTitleDescWrapper"
5966
- }), b = Kt("img", {
5966
+ }), b = _t("img", {
5967
5967
  id: "iconContainer",
5968
5968
  src: A.icon.type === "default" ? "data:image/svg+xml;base64,".concat(ud) : A.icon.url,
5969
5969
  alt: ((d = A.icon) === null || d === void 0 ? void 0 : d.altText) || ""
5970
5970
  });
5971
5971
  y.appendChild(b);
5972
- const D = Kt("div", {
5972
+ const D = _t("div", {
5973
5973
  id: "titleDescWrapper"
5974
5974
  });
5975
- D.appendChild(Kt("div", {
5975
+ D.appendChild(_t("div", {
5976
5976
  id: "title",
5977
5977
  textContent: A.title
5978
- })), D.appendChild(Kt("div", {
5978
+ })), D.appendChild(_t("div", {
5979
5979
  id: "description",
5980
5980
  textContent: A.description
5981
5981
  })), y.appendChild(D);
5982
- const M = Kt("div", {
5982
+ const M = _t("div", {
5983
5983
  id: "buttonsContainer"
5984
- }), L = Kt("button", {
5984
+ }), L = _t("button", {
5985
5985
  id: "primaryButton",
5986
5986
  textContent: A.buttons.primaryButtonText,
5987
5987
  ariaLabel: A.buttons.primaryButtonAriaLabel || A.buttons.primaryButtonText
5988
- }), v = Kt("button", {
5988
+ }), v = _t("button", {
5989
5989
  id: "secondaryButton",
5990
5990
  textContent: A.buttons.secondaryButtonText,
5991
5991
  ariaLabel: A.buttons.secondaryButtonAriaLabel || A.buttons.secondaryButtonText
5992
5992
  });
5993
5993
  M.appendChild(v), M.appendChild(L), h.appendChild(y), h.appendChild(M);
5994
- const x = Kt("style", {
5994
+ const x = _t("style", {
5995
5995
  textContent: nd(p)
5996
5996
  });
5997
5997
  f.appendChild(x), f.appendChild(h), C && f.appendChild(C), nl(h, p.card.position);
@@ -6018,30 +6018,30 @@ $1`));
6018
6018
  content: s,
6019
6019
  style: l
6020
6020
  }
6021
- } = r, u = Kt("div", {
6021
+ } = r, u = _t("div", {
6022
6022
  id: "bell_wrapper"
6023
- }), d = Kt("img", {
6023
+ }), d = _t("img", {
6024
6024
  id: "bell_icon",
6025
6025
  src: s.icon.type === "default" ? "data:image/svg+xml;base64,".concat(fd) : s.icon.url
6026
- }), A = Kt("div", {
6026
+ }), A = _t("div", {
6027
6027
  id: "gif_modal",
6028
6028
  style: "display: none;"
6029
- }), p = Kt("img", {
6029
+ }), p = _t("img", {
6030
6030
  id: "gif_image",
6031
6031
  src: "https://d2r1yp2w7bby2u.cloudfront.net/js/permission_grant.gif"
6032
- }), f = Kt("div", {
6032
+ }), f = _t("div", {
6033
6033
  id: "close_modal",
6034
6034
  innerHTML: "&times;"
6035
6035
  });
6036
6036
  if (A.appendChild(p), A.appendChild(f), u.appendChild(d), u.appendChild(A), s.hoverText.enabled) {
6037
- const h = Kt("div", {
6037
+ const h = _t("div", {
6038
6038
  id: "bell_tooltip",
6039
6039
  textContent: s.hoverText.text
6040
6040
  });
6041
6041
  u.appendChild(h);
6042
6042
  }
6043
6043
  nl(u, l.card.position);
6044
- const C = Kt("style", {
6044
+ const C = _t("style", {
6045
6045
  textContent: id(l)
6046
6046
  });
6047
6047
  return document.head.appendChild(C), document.body.appendChild(u), r.isPreview || xd(u, e, t, n), u;
@@ -6109,7 +6109,7 @@ $1`));
6109
6109
  il(r);
6110
6110
  const e = r.querySelector("#gif_modal");
6111
6111
  e.style.display = e.style.display === "none" ? "flex" : "none";
6112
- }, _t = {
6112
+ }, $t = {
6113
6113
  _device: null,
6114
6114
  _session: null,
6115
6115
  _request: null,
@@ -6156,7 +6156,7 @@ $1`));
6156
6156
  DEBUG_PE: 4
6157
6157
  };
6158
6158
  var An = w("logLevel"), li = w("log"), vo = w("isLegacyDebug");
6159
- class Wt {
6159
+ class Zt {
6160
6160
  constructor(e) {
6161
6161
  if (Object.defineProperty(this, vo, {
6162
6162
  get: yd,
@@ -6166,13 +6166,13 @@ $1`));
6166
6166
  }), Object.defineProperty(this, An, {
6167
6167
  writable: !0,
6168
6168
  value: void 0
6169
- }), this.wzrkError = {}, Wt.instance)
6170
- return Wt.instance;
6171
- a(this, An)[An] = e ?? Vi.INFO, this.wzrkError = {}, Wt.instance = this;
6169
+ }), this.wzrkError = {}, Zt.instance)
6170
+ return Zt.instance;
6171
+ a(this, An)[An] = e ?? Vi.INFO, this.wzrkError = {}, Zt.instance = this;
6172
6172
  }
6173
6173
  // Static method for explicit singleton access
6174
6174
  static getInstance(e) {
6175
- return Wt.instance || (Wt.instance = new Wt(e)), Wt.instance;
6175
+ return Zt.instance || (Zt.instance = new Zt(e)), Zt.instance;
6176
6176
  }
6177
6177
  get logLevel() {
6178
6178
  return a(this, An)[An];
@@ -6308,16 +6308,16 @@ $1`));
6308
6308
  function jd(r) {
6309
6309
  if (!r.origin.endsWith(Fs.CLEVERTAP) && !r.origin.endsWith(window.location.origin))
6310
6310
  return;
6311
- const e = Wt.getInstance();
6311
+ const e = Zt.getInstance();
6312
6312
  try {
6313
6313
  const t = JSON.parse(r.data), n = t.inapp_notifs, s = n[0].msgContent;
6314
- t && s && s.templateType === "advanced-web-popup-builder" && ol(n[0], null, Wt.getInstance(), !0);
6314
+ t && s && s.templateType === "advanced-web-popup-builder" && ol(n[0], null, Zt.getInstance(), !0);
6315
6315
  } catch (t) {
6316
6316
  e.error("Error parsing event data:", t);
6317
6317
  }
6318
6318
  }
6319
6319
  const Sd = () => {
6320
- const r = Wt.getInstance(), t = new URLSearchParams(window.location.search).get("ctActionMode");
6320
+ const r = Zt.getInstance(), t = new URLSearchParams(window.location.search).get("ctActionMode");
6321
6321
  if (t) {
6322
6322
  const n = window.opener, s = new URL(document.referrer);
6323
6323
  switch (t) {
@@ -6376,7 +6376,7 @@ $1`));
6376
6376
  const t = this.target.wzrk_id.split("_")[0];
6377
6377
  if (this.resizeObserver.unobserve(this.popup), document.getElementById("wzrkImageOnlyDiv").style.display = "none", this.remove(), t != null && t !== "-1" && B._isLocalStorageSupported()) {
6378
6378
  var n;
6379
- const s = Vt();
6379
+ const s = Kt();
6380
6380
  s.dnd = [.../* @__PURE__ */ new Set([...(n = s.dnd) !== null && n !== void 0 ? n : [], t])], ii(s);
6381
6381
  }
6382
6382
  };
@@ -7123,13 +7123,13 @@ $1`));
7123
7123
  return e;
7124
7124
  }, Gn = () => {
7125
7125
  const r = JSON.parse(decodeURIComponent(B.read(G)));
7126
- if (!qt(r))
7126
+ if (!Gt(r))
7127
7127
  return {};
7128
7128
  const e = pl(r);
7129
7129
  return e.hasOwnProperty(r) ? e[r] : {};
7130
7130
  }, Ki = (r) => {
7131
7131
  const e = JSON.parse(decodeURIComponent(B.read(G)));
7132
- if (!qt(e))
7132
+ if (!Gt(e))
7133
7133
  return;
7134
7134
  const n = {
7135
7135
  ...pl(e),
@@ -7702,21 +7702,21 @@ $1`));
7702
7702
  const t = (e = r.display.divId) !== null && e !== void 0 ? e : r.display.divSelector, n = document.createElement("ct-web-personalisation-banner");
7703
7703
  n.msgId = r.wzrk_id, n.pivotId = r.wzrk_pivot, n.divHeight = r.display.divHeight, n.details = r.display.details[0];
7704
7704
  const s = r.display.divId ? document.getElementById(t) : document.querySelector(t);
7705
- s.innerHTML = "", s.appendChild(n), ci.doCampHouseKeeping(r, Wt.getInstance());
7705
+ s.innerHTML = "", s.appendChild(n), ci.doCampHouseKeeping(r, Zt.getInstance());
7706
7706
  }, yl = (r) => {
7707
7707
  var e;
7708
7708
  customElements.get("ct-web-personalisation-carousel") === void 0 && customElements.define("ct-web-personalisation-carousel", Vd);
7709
7709
  const t = (e = r.display.divId) !== null && e !== void 0 ? e : r.display.divSelector, n = document.createElement("ct-web-personalisation-carousel");
7710
7710
  n.target = r;
7711
7711
  const s = r.display.divId ? document.getElementById(t) : document.querySelector(t);
7712
- s.innerHTML = "", s.appendChild(n), ci.doCampHouseKeeping(r, Wt.getInstance());
7712
+ s.innerHTML = "", s.appendChild(n), ci.doCampHouseKeeping(r, Zt.getInstance());
7713
7713
  }, Kd = (r) => {
7714
7714
  const e = {};
7715
7715
  e.msgId = r.wzrk_id, r.wzrk_pivot && (e.pivotId = r.wzrk_pivot), r.msgContent.kv != null && (e.kv = r.msgContent.kv);
7716
7716
  const t = new CustomEvent("CT_web_native_display", {
7717
7717
  detail: e
7718
7718
  });
7719
- document.dispatchEvent(t), ci.doCampHouseKeeping(r, Wt.getInstance());
7719
+ document.dispatchEvent(t), ci.doCampHouseKeeping(r, Zt.getInstance());
7720
7720
  }, vl = (r, e) => {
7721
7721
  const {
7722
7722
  display: t,
@@ -7747,7 +7747,7 @@ $1`));
7747
7747
  const M = document.createElement("div");
7748
7748
  M.innerHTML = d, M.querySelectorAll("script").forEach((v) => {
7749
7749
  za(v);
7750
- }), ci.doCampHouseKeeping(r, Wt.getInstance()), clearInterval(b);
7750
+ }), ci.doCampHouseKeeping(r, Zt.getInstance()), clearInterval(b);
7751
7751
  } else ++y >= 20 && (e.error("No element present on DOM with divId '".concat(h, "'.")), clearInterval(b));
7752
7752
  }, 500);
7753
7753
  })(l);
@@ -7759,7 +7759,7 @@ $1`));
7759
7759
  const s = new CustomEvent("CT_web_native_display_json", {
7760
7760
  detail: e
7761
7761
  });
7762
- document.dispatchEvent(s), ci.doCampHouseKeeping(r, Wt.getInstance());
7762
+ document.dispatchEvent(s), ci.doCampHouseKeeping(r, Zt.getInstance());
7763
7763
  };
7764
7764
  function $d(r, e) {
7765
7765
  if (!r.origin.endsWith(Fs.CLEVERTAP))
@@ -7817,7 +7817,7 @@ $1`));
7817
7817
  * @returns {boolean|Object} - false if cap exceeded, session object otherwise
7818
7818
  */
7819
7819
  checkSessionCapping(r, e, t, n) {
7820
- const s = _t.session.sessionId;
7820
+ const s = $t.session.sessionId;
7821
7821
  let l = r[s];
7822
7822
  if (l) {
7823
7823
  const u = l[e], d = l.tc;
@@ -7903,7 +7903,7 @@ $1`));
7903
7903
  if (B._isLocalStorageSupported()) {
7904
7904
  delete sessionStorage[Me];
7905
7905
  var s = {};
7906
- const l = Vt();
7906
+ const l = Kt();
7907
7907
  r.display.wtarget_type === 3 && l.hasOwnProperty("wi") ? s = l.wi : (r.display.wtarget_type === 0 || r.display.wtarget_type === 1) && l.hasOwnProperty("wp") || (s = {}), l.hasOwnProperty("global"), r[Le].wmc == null && (r[Le].wmc = 1), r[Le].wimc == null && (r[Le].wimc = 1);
7908
7908
  const u = this.extractFrequencyCappingSettings(r), d = this.checkSessionCapping(s, t, r, u);
7909
7909
  if (d === !1) return !1;
@@ -7914,10 +7914,10 @@ $1`));
7914
7914
  const f = r.display;
7915
7915
  if (f.delay != null && f.delay > 0) {
7916
7916
  const h = f.delay;
7917
- return f.delay = 0, setTimeout(Eo, h * 1e3, _t.msg, {
7918
- device: _t.device,
7919
- session: _t.session,
7920
- request: _t.request,
7917
+ return f.delay = 0, setTimeout(Eo, h * 1e3, $t.msg, {
7918
+ device: $t.device,
7919
+ session: $t.session,
7920
+ request: $t.request,
7921
7921
  logger: e
7922
7922
  }), !1;
7923
7923
  }
@@ -7925,7 +7925,7 @@ $1`));
7925
7925
  let C;
7926
7926
  if (r[Le].wtarget_type === 3 && (C = "wi"), C === "wi") {
7927
7927
  const h = {};
7928
- h[_t.session.sessionId] = d, h[n] = A, h[le] = p, ii({
7928
+ h[$t.session.sessionId] = d, h[n] = A, h[le] = p, ii({
7929
7929
  [C]: h
7930
7930
  });
7931
7931
  } else
@@ -7934,15 +7934,15 @@ $1`));
7934
7934
  },
7935
7935
  // Sets up click tracking and impression increment for a campaign
7936
7936
  setupClickUrl(r, e, t, n, s) {
7937
- Ta(e, _t.request), Yc(r, e, t, n, s, _t.device, _t.session);
7937
+ Ta(e, $t.request), Yc(r, e, t, n, s, $t.device, $t.session);
7938
7938
  },
7939
7939
  // Handles rendering of image-only popup campaigns
7940
7940
  handleImageOnlyPopup(r) {
7941
7941
  const e = "wzrkImageOnlyDiv";
7942
- if (this.doCampHouseKeeping(r, Wt.getInstance()) === !1 || (j.dismissSpamControl && document.getElementById(e) != null && document.getElementById(e).remove(), document.getElementById(e) != null || document.getElementById("intentPreview") != null))
7942
+ if (this.doCampHouseKeeping(r, Zt.getInstance()) === !1 || (j.dismissSpamControl && document.getElementById(e) != null && document.getElementById(e).remove(), document.getElementById(e) != null || document.getElementById("intentPreview") != null))
7943
7943
  return;
7944
7944
  const t = document.createElement("div");
7945
- return t.id = e, document.body.appendChild(t), customElements.get("ct-web-popup-imageonly") === void 0 && customElements.define("ct-web-popup-imageonly", Bd), vd(r, _t.session);
7945
+ return t.id = e, document.body.appendChild(t), customElements.get("ct-web-popup-imageonly") === void 0 && customElements.define("ct-web-popup-imageonly", Bd), vd(r, $t.session);
7946
7946
  },
7947
7947
  // Checks if a campaign is already rendered in an iframe
7948
7948
  isExistingCampaign(r) {
@@ -7958,10 +7958,10 @@ $1`));
7958
7958
  this.handleImageOnlyPopup(r);
7959
7959
  return;
7960
7960
  }
7961
- if (this.doCampHouseKeeping(r, Wt.getInstance()) === !1)
7961
+ if (this.doCampHouseKeeping(r, Zt.getInstance()) === !1)
7962
7962
  return;
7963
7963
  if (s.layout === Ue.ADVANCED_BUILDER) {
7964
- ol(r, _t.session, Wt.getInstance());
7964
+ ol(r, $t.session, Zt.getInstance());
7965
7965
  return;
7966
7966
  }
7967
7967
  const l = "wizParDiv" + s.layout, u = "intentOpacityDiv" + s.layout;
@@ -8056,8 +8056,8 @@ $1`));
8056
8056
  A.msgContent = r.msgContent, A.msgId = r.wzrk_id, r.wzrk_pivot && (A.pivotId = r.wzrk_pivot), r.display.kv != null && (A.kv = r.display.kv), r.display.deliveryTrigger && (A.deliveryTrigger = r.display.deliveryTrigger), window.clevertap.raiseNotificationClicked = () => {
8057
8057
  if (n !== "" && n != null) {
8058
8058
  const p = r.display.jsFunc;
8059
- if (n += Fa(_t.device, _t.session), p != null) {
8060
- on.fireRequest(n), co(p, r);
8059
+ if (n += Fa($t.device, $t.session), p != null) {
8060
+ an.fireRequest(n), co(p, r);
8061
8061
  return;
8062
8062
  }
8063
8063
  r.display.window === 1 ? window.open(n, "_blank") : window.location = n;
@@ -8105,7 +8105,7 @@ $1`));
8105
8105
  ...f.evtData,
8106
8106
  ...C
8107
8107
  };
8108
- _t.request.processEvent(f);
8108
+ $t.request.processEvent(f);
8109
8109
  }, d(A);
8110
8110
  }
8111
8111
  }
@@ -8164,7 +8164,7 @@ $1`));
8164
8164
  if (this.isExistingCampaign(l)) return;
8165
8165
  if (s.display.wtarget_type === 0 && (u === Ue.BOX || u === Ue.BANNER || u === Ue.IMAGE_ONLY))
8166
8166
  return this.createTemplate(s, !0), !0;
8167
- if (this.doCampHouseKeeping(s, Wt.getInstance()) === !1)
8167
+ if (this.doCampHouseKeeping(s, Zt.getInstance()) === !1)
8168
8168
  return;
8169
8169
  if (j.dismissSpamControl && s.display.wtarget_type === 0) {
8170
8170
  const v = document.getElementById("intentPreview"), x = document.getElementById("intentOpacityDiv");
@@ -8235,7 +8235,7 @@ $1`));
8235
8235
  const n = [];
8236
8236
  for (let s = 0; s < r.inbox_notifs.length; s++) {
8237
8237
  var e, t;
8238
- Ra(r.inbox_notifs[s], _t.region, (e = _t.msg) === null || e === void 0 || (t = e.arp) === null || t === void 0 ? void 0 : t.id), this.doCampHouseKeeping(r.inbox_notifs[s], Wt.getInstance()) !== !1 && n.push(r.inbox_notifs[s]);
8238
+ Ra(r.inbox_notifs[s], $t.region, (e = $t.msg) === null || e === void 0 || (t = e.arp) === null || t === void 0 ? void 0 : t.id), this.doCampHouseKeeping(r.inbox_notifs[s], Zt.getInstance()) !== !1 && n.push(r.inbox_notifs[s]);
8239
8239
  }
8240
8240
  dl(n);
8241
8241
  }
@@ -8247,7 +8247,7 @@ $1`));
8247
8247
  };
8248
8248
  for (let p = 0; p < l.length; p++) {
8249
8249
  var d, A;
8250
- Ra(l[p], _t.region, (d = _t.msg) === null || d === void 0 || (A = d.arp) === null || A === void 0 ? void 0 : A.id);
8250
+ Ra(l[p], $t.region, (d = $t.msg) === null || d === void 0 || (A = d.arp) === null || A === void 0 ? void 0 : A.id);
8251
8251
  const f = l[p];
8252
8252
  if (f.display.wtarget_type === ut.FOOTER_NOTIFICATION || f.display.wtarget_type === ut.FOOTER_NOTIFICATION_2)
8253
8253
  this.showFooterNotification(f, e, t);
@@ -8313,7 +8313,7 @@ $1`));
8313
8313
  } = e;
8314
8314
  const d = t, A = n, p = s, f = l;
8315
8315
  let C = 0;
8316
- _t.update(t, n, s, l, r, u), Xn.clearStaleCampaigns(r, l), Xn.updateOccurenceForPopupAndNativeDisplay(r, t, l), Xn.portTLC(A, l);
8316
+ $t.update(t, n, s, l, r, u), Xn.clearStaleCampaigns(r, l), Xn.updateOccurenceForPopupAndNativeDisplay(r, t, l), Xn.portTLC(A, l);
8317
8317
  const h = !1;
8318
8318
  let y;
8319
8319
  if (!document.body) {
@@ -8454,7 +8454,7 @@ $1`));
8454
8454
  }), Object.defineProperty(this, Cn, {
8455
8455
  writable: !0,
8456
8456
  value: !1
8457
- }), this.processingBackup = !1, a(this, xt)[xt] = t, a(this, mn)[mn] = n, a(this, Pi)[Pi] = s, a(this, Ti)[Ti] = l, a(this, Er)[Er] = u, on.logger = t, on.device = s, on.account = n;
8457
+ }), this.processingBackup = !1, a(this, xt)[xt] = t, a(this, mn)[mn] = n, a(this, Pi)[Pi] = s, a(this, Ti)[Ti] = l, a(this, Er)[Er] = u, an.logger = t, an.device = s, an.account = n;
8458
8458
  }
8459
8459
  /**
8460
8460
  * Unified backup processing method
@@ -8474,7 +8474,7 @@ $1`));
8474
8474
  if (e ? l : !0) {
8475
8475
  if (a(this, xt)[xt].debug("Processing ".concat(l ? "OUL" : "regular", " backup event : ").concat(s.q)), typeof s.q < "u") {
8476
8476
  const d = JSON.parse(B.readCookie(Ce + "_" + a(this, mn)[mn].id));
8477
- d?.s && (s.q = s.q + "&s=" + d.s), on.fireRequest(s.q);
8477
+ d?.s && (s.q = s.q + "&s=" + d.s), an.fireRequest(s.q);
8478
8478
  }
8479
8479
  s.fired = !0;
8480
8480
  }
@@ -8483,7 +8483,7 @@ $1`));
8483
8483
  }
8484
8484
  }
8485
8485
  addSystemDataToObject(e, t) {
8486
- typeof t > "u" && (e = Wo(e, a(this, xt)[xt])), dn(a(this, xt)[xt].wzrkError) || (e.wzrk_error = a(this, xt)[xt].wzrkError, a(this, xt)[xt].wzrkError = {}), e.id = a(this, mn)[mn].id, qt(a(this, Pi)[Pi].gcookie) && (e.g = a(this, Pi)[Pi].gcookie);
8486
+ typeof t > "u" && (e = Wo(e, a(this, xt)[xt])), dn(a(this, xt)[xt].wzrkError) || (e.wzrk_error = a(this, xt)[xt].wzrkError, a(this, xt)[xt].wzrkError = {}), e.id = a(this, mn)[mn].id, Gt(a(this, Pi)[Pi].gcookie) && (e.g = a(this, Pi)[Pi].gcookie);
8487
8487
  const n = a(this, Ti)[Ti].getSessionCookieObject();
8488
8488
  e.s = n.s, e.pg = typeof n.p > "u" ? 1 : n.p;
8489
8489
  let s = document.location.protocol;
@@ -8522,18 +8522,18 @@ $1`));
8522
8522
  const l = wi(), u = a(this, Lo)[Lo]();
8523
8523
  j.globalCache.REQ_N = u, e = at(e, "rn", u);
8524
8524
  const d = e + "&i=" + l + "&sn=" + Do;
8525
- B.backupEvent(d, u, a(this, xt)[xt]), n && B.markBackupAsOUL(u), !(j.offline || j.delayEvents) && ((!t || a(this, Cn)[Cn] !== void 0 && a(this, Cn)[Cn]) && !window.isOULInProgress ? (l === bl ? Do++ : (bl = l, Do = 0), window.oulReqN = u, on.fireRequest(d, !1, n, s)) : a(this, xt)[xt].debug("Not fired due to override - ".concat(j.blockRequest, " or clearCookie - ").concat(a(this, Cn)[Cn], " or OUL request in progress - ").concat(window.isOULInProgress)));
8525
+ B.backupEvent(d, u, a(this, xt)[xt]), n && B.markBackupAsOUL(u), !(j.offline || j.delayEvents) && ((!t || a(this, Cn)[Cn] !== void 0 && a(this, Cn)[Cn]) && !window.isOULInProgress ? (l === bl ? Do++ : (bl = l, Do = 0), window.oulReqN = u, an.fireRequest(d, !1, n, s)) : a(this, xt)[xt].debug("Not fired due to override - ".concat(j.blockRequest, " or clearCookie - ").concat(a(this, Cn)[Cn], " or OUL request in progress - ").concat(window.isOULInProgress)));
8526
8526
  }
8527
8527
  unregisterTokenForGuid(e) {
8528
8528
  const t = B.readFromLSorCookie(Ke);
8529
8529
  if (t) {
8530
8530
  const n = {};
8531
- n.type = "data", qt(e) && (n.g = e), n.action = "unregister", n.id = a(this, mn)[mn].id;
8531
+ n.type = "data", Gt(e) && (n.g = e), n.action = "unregister", n.id = a(this, mn)[mn].id;
8532
8532
  const s = a(this, Ti)[Ti].getSessionCookieObject();
8533
8533
  n.s = s.s;
8534
8534
  const l = fn(JSON.stringify(n), a(this, xt)[xt]);
8535
8535
  let u = a(this, mn)[mn].dataPostURL;
8536
- u = at(u, "type", "data"), u = at(u, "d", l), on.fireRequest(u, !0), B.saveToLSorCookie(_e, !1);
8536
+ u = at(u, "type", "data"), u = at(u, "d", l), an.fireRequest(u, !0), B.saveToLSorCookie(_e, !1);
8537
8537
  }
8538
8538
  this.registerToken(t);
8539
8539
  }
@@ -8541,7 +8541,7 @@ $1`));
8541
8541
  if (!e) return;
8542
8542
  e = this.addSystemDataToObject(e, !0), e = JSON.stringify(e);
8543
8543
  let t = a(this, mn)[mn].dataPostURL;
8544
- t = at(t, "type", "data"), t = at(t, "d", fn(e, a(this, xt)[xt])), on.fireRequest(t), B.save(Ve, "ok");
8544
+ t = at(t, "type", "data"), t = at(t, "d", fn(e, a(this, xt)[xt])), an.fireRequest(t), B.save(Ve, "ok");
8545
8545
  }
8546
8546
  processEvent(e) {
8547
8547
  a(this, jo)[jo](e.evtName), e = this.addSystemDataToObject(e, void 0), this.addFlags(e), e[Me] = Qa();
@@ -8749,7 +8749,7 @@ $1`));
8749
8749
  this.hadStarted = !1;
8750
8750
  }
8751
8751
  }
8752
- var $t = w("logger"), pi = w("account"), Ri = w("request"), Sr = w("event"), Mt = w("variables"), Br = w("remoteVariables"), Qi = w("fetchCallback"), Qn = w("variablesChangedCallbacks"), yn = w("oneTimeVariablesChangedCallbacks"), kr = w("hasVarsRequestCompleted"), So = w("runVariablesChangedCallback");
8752
+ var en = w("logger"), pi = w("account"), Ri = w("request"), Sr = w("event"), Mt = w("variables"), Br = w("remoteVariables"), Qi = w("fetchCallback"), Qn = w("variablesChangedCallbacks"), yn = w("oneTimeVariablesChangedCallbacks"), kr = w("hasVarsRequestCompleted"), So = w("runVariablesChangedCallback");
8753
8753
  class cp {
8754
8754
  constructor(e) {
8755
8755
  let {
@@ -8760,7 +8760,7 @@ $1`));
8760
8760
  } = e;
8761
8761
  Object.defineProperty(this, So, {
8762
8762
  value: dp
8763
- }), Object.defineProperty(this, $t, {
8763
+ }), Object.defineProperty(this, en, {
8764
8764
  writable: !0,
8765
8765
  value: void 0
8766
8766
  }), Object.defineProperty(this, pi, {
@@ -8790,7 +8790,7 @@ $1`));
8790
8790
  }), Object.defineProperty(this, kr, {
8791
8791
  writable: !0,
8792
8792
  value: !1
8793
- }), a(this, $t)[$t] = t, a(this, pi)[pi] = s, a(this, Ri)[Ri] = n, a(this, Sr)[Sr] = l, a(this, Mt)[Mt] = {}, a(this, Br)[Br] = {}, a(this, Qn)[Qn] = [], a(this, yn)[yn] = [], j.variableStore = this;
8793
+ }), a(this, en)[en] = t, a(this, pi)[pi] = s, a(this, Ri)[Ri] = n, a(this, Sr)[Sr] = l, a(this, Mt)[Mt] = {}, a(this, Br)[Br] = {}, a(this, Qn)[Qn] = [], a(this, yn)[yn] = [], j.variableStore = this;
8794
8794
  }
8795
8795
  /**
8796
8796
  * Registers a variable instance in the store.
@@ -8800,7 +8800,7 @@ $1`));
8800
8800
  const {
8801
8801
  name: t
8802
8802
  } = e;
8803
- a(this, Mt)[Mt][t] = e, a(this, $t)[$t].debug("registerVariable", a(this, Mt)[Mt]);
8803
+ a(this, Mt)[Mt][t] = e, a(this, en)[en].debug("registerVariable", a(this, Mt)[Mt]);
8804
8804
  }
8805
8805
  /**
8806
8806
  * Retrieves a variable by its name.
@@ -8823,7 +8823,7 @@ $1`));
8823
8823
  syncVariables(e, t) {
8824
8824
  if (!a(this, pi)[pi].token) {
8825
8825
  const A = "Account token is missing.";
8826
- return a(this, $t)[$t].error(A), Promise.reject(new Error(A));
8826
+ return a(this, en)[en].error(A), Promise.reject(new Error(A));
8827
8827
  }
8828
8828
  const n = {
8829
8829
  type: "varsPayload",
@@ -8848,13 +8848,13 @@ $1`));
8848
8848
  };
8849
8849
  if (Object.keys(n.vars).length === 0) {
8850
8850
  const A = "No variables are defined.";
8851
- return a(this, $t)[$t].error(A), Promise.reject(new Error(A));
8851
+ return a(this, en)[en].error(A), Promise.reject(new Error(A));
8852
8852
  }
8853
8853
  let l = {};
8854
8854
  l = a(this, Ri)[Ri].addSystemDataToObject(l, void 0), l.tk = a(this, pi)[pi].token, l.type = "meta";
8855
8855
  const u = JSON.stringify([l, n]), d = a(this, pi)[pi].dataPostPEURL;
8856
8856
  return a(this, Ri)[Ri].post(d, u).then((A) => (e && typeof e == "function" && e(A), A)).catch((A) => {
8857
- throw t && typeof t == "function" && t(A), A.status === 400 ? a(this, $t)[$t].error("Invalid sync payload or clear the existing draft") : A.status === 401 ? a(this, $t)[$t].error("This is not a test profile") : a(this, $t)[$t].error("Sync variable failed"), A;
8857
+ throw t && typeof t == "function" && t(A), A.status === 400 ? a(this, en)[en].error("Invalid sync payload or clear the existing draft") : A.status === 401 ? a(this, en)[en].error("This is not a test profile") : a(this, en)[en].error("Sync variable failed"), A;
8858
8858
  });
8859
8859
  }
8860
8860
  /**
@@ -8867,13 +8867,13 @@ $1`));
8867
8867
  }), e && typeof e == "function" && (a(this, Qi)[Qi] = e);
8868
8868
  }
8869
8869
  mergeVariables(e) {
8870
- a(this, $t)[$t].debug("msg vars is ", e), a(this, kr)[kr] = !0, B.saveToLSorCookie(Nt, e), a(this, Br)[Br] = e;
8870
+ a(this, en)[en].debug("msg vars is ", e), a(this, kr)[kr] = !0, B.saveToLSorCookie(Nt, e), a(this, Br)[Br] = e;
8871
8871
  for (const t in a(this, Mt)[Mt])
8872
8872
  e.hasOwnProperty(t) && a(this, Mt)[Mt][t].update(e[t]);
8873
8873
  a(this, Qi)[Qi] && a(this, Qi)[Qi](), a(this, So)[So]();
8874
8874
  }
8875
8875
  addVariablesChangedCallback(e) {
8876
- e && typeof e == "function" ? (a(this, Qn)[Qn].push(e), this.hasVarsRequestCompleted() && e()) : a(this, $t)[$t].error("callback is not a function");
8876
+ e && typeof e == "function" ? (a(this, Qn)[Qn].push(e), this.hasVarsRequestCompleted() && e()) : a(this, en)[en].error("callback is not a function");
8877
8877
  }
8878
8878
  addOneTimeVariablesChangedCallback(e) {
8879
8879
  e && typeof e == "function" && (this.hasVarsRequestCompleted() ? e() : a(this, yn)[yn].push(e));
@@ -8893,7 +8893,7 @@ $1`));
8893
8893
  for (var t of a(this, yn)[yn])
8894
8894
  t();
8895
8895
  a(this, yn)[yn].length = 0;
8896
- }, de = w("logger"), Or = w("api"), Un = w("onloadcalled"), en = w("device"), Ht = w("session"), Ge = w("account"), nt = w("request"), hn = w("variableStore"), fi = w("isSpa"), Pr = w("previousUrl"), Jn = w("boundCheckPageChanged"), Ui = w("dismissSpamControl"), Ji = w("pageChangeTimeoutId"), Bo = w("processOldValues"), ko = w("debounce"), Oo = w("checkPageChanged"), Po = w("updateUnviewedBadgePosition"), Tr = w("pingRequest"), To = w("isPingContinuous"), Fo = w("overrideDSyncFlag"), Fr = w("sendLocationData");
8896
+ }, de = w("logger"), Or = w("api"), Un = w("onloadcalled"), tn = w("device"), Wt = w("session"), Ge = w("account"), nt = w("request"), hn = w("variableStore"), fi = w("isSpa"), Pr = w("previousUrl"), Jn = w("boundCheckPageChanged"), Ui = w("dismissSpamControl"), Ji = w("pageChangeTimeoutId"), Bo = w("processOldValues"), ko = w("debounce"), Oo = w("checkPageChanged"), Po = w("updateUnviewedBadgePosition"), Tr = w("pingRequest"), To = w("isPingContinuous"), Fo = w("overrideDSyncFlag"), Fr = w("sendLocationData");
8897
8897
  class pp {
8898
8898
  get spa() {
8899
8899
  return a(this, fi)[fi];
@@ -8937,10 +8937,10 @@ $1`));
8937
8937
  }), Object.defineProperty(this, Un, {
8938
8938
  writable: !0,
8939
8939
  value: void 0
8940
- }), Object.defineProperty(this, en, {
8940
+ }), Object.defineProperty(this, tn, {
8941
8941
  writable: !0,
8942
8942
  value: void 0
8943
- }), Object.defineProperty(this, Ht, {
8943
+ }), Object.defineProperty(this, Wt, {
8944
8944
  writable: !0,
8945
8945
  value: void 0
8946
8946
  }), Object.defineProperty(this, Ge, {
@@ -8968,19 +8968,19 @@ $1`));
8968
8968
  writable: !0,
8969
8969
  value: void 0
8970
8970
  }), this.popupCallbacks = {}, this.popupCurrentWzrkId = "", a(this, Un)[Un] = 0, this._isPersonalisationActive = this._isPersonalisationActive.bind(this), this.raiseNotificationClicked = () => {
8971
- }, a(this, de)[de] = new Wt(Vi.INFO), a(this, Ge)[Ge] = new X((e = C.account) === null || e === void 0 ? void 0 : e[0], C.region || ((t = C.account) === null || t === void 0 ? void 0 : t[1]), C.targetDomain || ((n = C.account) === null || n === void 0 ? void 0 : n[2]), C.token || ((s = C.account) === null || s === void 0 ? void 0 : s[3])), ei.key = (l = C.account) === null || l === void 0 ? void 0 : l[0].id;
8971
+ }, a(this, de)[de] = new Zt(Vi.INFO), a(this, Ge)[Ge] = new X((e = C.account) === null || e === void 0 ? void 0 : e[0], C.region || ((t = C.account) === null || t === void 0 ? void 0 : t[1]), C.targetDomain || ((n = C.account) === null || n === void 0 ? void 0 : n[2]), C.token || ((s = C.account) === null || s === void 0 ? void 0 : s[3])), ei.key = (l = C.account) === null || l === void 0 ? void 0 : l[0].id;
8972
8972
  const h = Ga(C == null || (u = C.config) === null || u === void 0 ? void 0 : u.customId);
8973
- !h.isValid && (!(C == null || (d = C.config) === null || d === void 0) && d.customId) && a(this, de)[de].error(h.error), a(this, en)[en] = new yc({
8973
+ !h.isValid && (!(C == null || (d = C.config) === null || d === void 0) && d.customId) && a(this, de)[de].error(h.error), a(this, tn)[tn] = new yc({
8974
8974
  logger: a(this, de)[de],
8975
8975
  customId: h?.isValid ? h?.sanitizedId : null
8976
- }), a(this, Ui)[Ui] = (A = C.dismissSpamControl) !== null && A !== void 0 ? A : !0, this.shpfyProxyPath = C.shpfyProxyPath || "", a(this, Ht)[Ht] = new ip({
8976
+ }), a(this, Ui)[Ui] = (A = C.dismissSpamControl) !== null && A !== void 0 ? A : !0, this.shpfyProxyPath = C.shpfyProxyPath || "", a(this, Wt)[Wt] = new ip({
8977
8977
  logger: a(this, de)[de],
8978
8978
  isPersonalisationActive: this._isPersonalisationActive
8979
8979
  }), a(this, nt)[nt] = new rp({
8980
8980
  logger: a(this, de)[de],
8981
8981
  account: a(this, Ge)[Ge],
8982
- device: a(this, en)[en],
8983
- session: a(this, Ht)[Ht],
8982
+ device: a(this, tn)[tn],
8983
+ session: a(this, Wt)[Wt],
8984
8984
  isPersonalisationActive: this._isPersonalisationActive
8985
8985
  }), this.enablePersonalization = C.enablePersonalization || !1, this.event = new kc({
8986
8986
  logger: a(this, de)[de],
@@ -8994,9 +8994,9 @@ $1`));
8994
8994
  }, C.profile), this.onUserLogin = new Kc({
8995
8995
  request: a(this, nt)[nt],
8996
8996
  account: a(this, Ge)[Ge],
8997
- session: a(this, Ht)[Ht],
8997
+ session: a(this, Wt)[Wt],
8998
8998
  logger: a(this, de)[de],
8999
- device: a(this, en)[en]
8999
+ device: a(this, tn)[tn]
9000
9000
  }, C.onUserLogin), this.privacy = new ap({
9001
9001
  request: a(this, nt)[nt],
9002
9002
  account: a(this, Ge)[Ge],
@@ -9013,18 +9013,18 @@ $1`));
9013
9013
  }), a(this, Or)[Or] = new Cc({
9014
9014
  logger: a(this, de)[de],
9015
9015
  request: a(this, nt)[nt],
9016
- device: a(this, en)[en],
9017
- session: a(this, Ht)[Ht]
9016
+ device: a(this, tn)[tn],
9017
+ session: a(this, Wt)[Wt]
9018
9018
  }), this.spa = C.spa, this.dismissSpamControl = (p = C.dismissSpamControl) !== null && p !== void 0 ? p : !0, this.user = new np({
9019
9019
  isPersonalisationActive: this._isPersonalisationActive
9020
9020
  }), ei.logger = a(this, de)[de], this.session = {
9021
- getTimeElapsed: () => a(this, Ht)[Ht].getTimeElapsed(),
9022
- getPageCount: () => a(this, Ht)[Ht].getPageCount()
9021
+ getTimeElapsed: () => a(this, Wt)[Wt].getTimeElapsed(),
9022
+ getPageCount: () => a(this, Wt)[Wt].getPageCount()
9023
9023
  }, this.logout = () => {
9024
9024
  a(this, de)[de].debug("logout called"), B.setInstantDeleteFlagInK();
9025
9025
  }, this.clear = () => {
9026
9026
  this.onUserLogin.clear();
9027
- }, this.getCleverTapID = () => a(this, en)[en].getGuid(), this.getAccountID = () => a(this, Ge)[Ge].id, this.getSCDomain = () => a(this, Ge)[Ge].finalTargetDomain, this.setLibrary = (x, g) => {
9027
+ }, this.getCleverTapID = () => a(this, tn)[tn].getGuid(), this.getAccountID = () => a(this, Ge)[Ge].id, this.getSCDomain = () => a(this, Ge)[Ge].finalTargetDomain, this.setLibrary = (x, g) => {
9028
9028
  j.flutterVersion = {
9029
9029
  [x]: g
9030
9030
  };
@@ -9231,7 +9231,7 @@ $1`));
9231
9231
  }
9232
9232
  const L = a(this, Or)[Or];
9233
9233
  if (L.logout = this.logout, L.clear = this.clear, L.closeIframe = (x, g) => {
9234
- Di(x, g, a(this, Ht)[Ht].sessionId);
9234
+ Di(x, g, a(this, Wt)[Wt].sessionId);
9235
9235
  }, L.enableWebPush = (x, g) => {
9236
9236
  hd(g), this.notifications._enableWebPush(x, g);
9237
9237
  try {
@@ -9241,8 +9241,8 @@ $1`));
9241
9241
  }
9242
9242
  }, L.tr = (x) => {
9243
9243
  Eo(x, {
9244
- device: a(this, en)[en],
9245
- session: a(this, Ht)[Ht],
9244
+ device: a(this, tn)[tn],
9245
+ session: a(this, Wt)[Wt],
9246
9246
  request: a(this, nt)[nt],
9247
9247
  logger: a(this, de)[de],
9248
9248
  region: a(this, Ge)[Ge].region
@@ -9284,7 +9284,7 @@ $1`));
9284
9284
  }
9285
9285
  createCustomIdIfValid(e) {
9286
9286
  const t = Ga(e);
9287
- t.isValid || a(this, de)[de].error(t.error), !a(this, en)[en].gcookie && (t.isValid ? (a(this, en)[en].gcookie = t?.sanitizedId, B.saveToLSorCookie(G, t?.sanitizedId), a(this, de)[de].debug("CT Initialized with customId:: " + t?.sanitizedId)) : a(this, de)[de].error("Invalid customId"));
9287
+ t.isValid || a(this, de)[de].error(t.error), !a(this, tn)[tn].gcookie && (t.isValid ? (a(this, tn)[tn].gcookie = t?.sanitizedId, B.saveToLSorCookie(G, t?.sanitizedId), a(this, de)[de].debug("CT Initialized with customId:: " + t?.sanitizedId)) : a(this, de)[de].error("Invalid customId"));
9288
9288
  }
9289
9289
  init(e, t, n, s) {
9290
9290
  let l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
@@ -9301,22 +9301,22 @@ $1`));
9301
9301
  }
9302
9302
  a(this, Ge)[Ge].id = e, B.saveToLSorCookie(Se, e), a(this, de)[de].debug("CT Initialized with Account ID: " + a(this, Ge)[Ge].id);
9303
9303
  }
9304
- Ud(a(this, de)[de], a(this, Ge)[Ge].id), ep(a(this, de)[de]), Sd(), a(this, Ht)[Ht].cookieName = Ce + "_" + a(this, Ge)[Ge].id, t && (a(this, Ge)[Ge].region = t), n && (a(this, Ge)[Ge].targetDomain = n), s && (a(this, Ge)[Ge].token = s), l?.customId && this.createCustomIdIfValid(l.customId), B.readFromLSorCookie(jn) === !0 && (a(this, de)[de].debug("Processing OUL backup events first to establish user identity"), a(this, nt)[nt].processBackupEvents(!0));
9304
+ Ud(a(this, de)[de], a(this, Ge)[Ge].id), ep(a(this, de)[de]), Sd(), a(this, Wt)[Wt].cookieName = Ce + "_" + a(this, Ge)[Ge].id, t && (a(this, Ge)[Ge].region = t), n && (a(this, Ge)[Ge].targetDomain = n), s && (a(this, Ge)[Ge].token = s), l?.customId && this.createCustomIdIfValid(l.customId), B.readFromLSorCookie(jn) === !0 && (a(this, de)[de].debug("Processing OUL backup events first to establish user identity"), a(this, nt)[nt].processBackupEvents(!0));
9305
9305
  const u = location.href, d = so(u.toLowerCase());
9306
9306
  if (typeof d.e < "u" && d.wzrk_ex == "0")
9307
9307
  return;
9308
9308
  j.isPrivacyArrPushed = !0, j.privacyArray.length > 0 && this.privacy.push(j.privacyArray), a(this, Bo)[Bo](), this.pageChanged();
9309
9309
  const A = setInterval(() => {
9310
- a(this, en)[en].gcookie && (clearInterval(A), a(this, nt)[nt].processBackupEvents());
9310
+ a(this, tn)[tn].gcookie && (clearInterval(A), a(this, nt)[nt].processBackupEvents());
9311
9311
  }, 3e3);
9312
9312
  a(this, fi)[fi] ? (document.addEventListener("click", a(this, Jn)[Jn]), window.addEventListener("popstate", a(this, Jn)[Jn])) : document.removeEventListener("click", a(this, Jn)[Jn]), a(this, Un)[Un] = 1;
9313
9313
  }
9314
9314
  // process the option array provided to the clevertap object
9315
9315
  // after its been initialized
9316
9316
  pageChanged() {
9317
- const e = window.location.href, t = so(e.toLowerCase()), n = a(this, Ht)[Ht].getSessionCookieObject();
9317
+ const e = window.location.href, t = so(e.toLowerCase()), n = a(this, Wt)[Wt].getSessionCookieObject();
9318
9318
  let s = typeof n.p > "u" ? 0 : n.p;
9319
- n.p = ++s, a(this, Ht)[Ht].setSessionCookieObject(n);
9319
+ n.p = ++s, a(this, Wt)[Wt].setSessionCookieObject(n);
9320
9320
  let l = {}, u = Fc(document.referrer);
9321
9321
  if (window.location.hostname !== u) {
9322
9322
  u !== "" && (u = u.length > 120 ? u.substring(0, 120) : u, l.referrer = u);
@@ -9454,7 +9454,7 @@ $1`));
9454
9454
  } = n.getBoundingClientRect();
9455
9455
  (Number(s.innerText) > 0 || s.innerText === "9+") && (s.style.display = "flex"), s.style.top = "".concat(l - 8, "px"), s.style.left = "".concat(u - 8, "px");
9456
9456
  }
9457
- }, tn);
9457
+ }, nn);
9458
9458
  } catch (e) {
9459
9459
  a(this, de)[de].debug("Error updating unviewed badge position:", e);
9460
9460
  }
@@ -11488,8 +11488,8 @@ const kf = (m) => {
11488
11488
  payerMobileNumber: q
11489
11489
  } = Ln(), X = () => {
11490
11490
  o();
11491
- }, [W, J] = ln.useState(null), [Z, re] = ln.useState(null), [we, ve] = S(!1), [G, ne] = S(!1), [Me, K] = S(!1), [Ce, ce] = S(""), [ie, xe] = S(null), [ue, Se] = S(!1);
11492
- ln.useEffect(() => {
11491
+ }, [W, J] = cn.useState(null), [Z, re] = cn.useState(null), [we, ve] = S(!1), [G, ne] = S(!1), [Me, K] = S(!1), [Ce, ce] = S(""), [ie, xe] = S(null), [ue, Se] = S(!1);
11492
+ cn.useEffect(() => {
11493
11493
  if (W) {
11494
11494
  const De = URL.createObjectURL(W);
11495
11495
  return xe(De), () => {
@@ -11497,7 +11497,7 @@ const kf = (m) => {
11497
11497
  };
11498
11498
  } else
11499
11499
  xe(null);
11500
- }, [W]), ln.useEffect(() => {
11500
+ }, [W]), cn.useEffect(() => {
11501
11501
  if (!m) return;
11502
11502
  (async () => {
11503
11503
  try {
@@ -12330,7 +12330,7 @@ const Qo = ({
12330
12330
  paymentData: I,
12331
12331
  buttonText: w = "Home"
12332
12332
  }) => {
12333
- const a = ln.useRef(null), R = () => {
12333
+ const a = cn.useRef(null), R = () => {
12334
12334
  o(), Qt.navigateHome();
12335
12335
  }, T = (U) => U ? {
12336
12336
  PAYMENT_LINK: "UPI",
@@ -13275,7 +13275,7 @@ const n0 = ({
13275
13275
  chemistName: Q
13276
13276
  } = Ln(), F = () => {
13277
13277
  o(), z(null), X(null), Z(""), ue(""), V(""), le([]), Ve(!1), we(!1), G(!1), Me(!1), Ce("Submit"), me(!1);
13278
- }, [U, z] = S(null), [q, X] = S(null), W = ln.useRef(null), [J, Z] = S(""), [re, we] = S(!1), [ve, G] = S(!1), [ne, Me] = S(!1), [K, Ce] = S("Submit"), [ce, ie] = S(!1), [xe, ue] = S(""), [Se, V] = S(""), [Ae, le] = S([]), [Le, Ve] = S(!1), [De, ge] = S(!1), je = Zt(null), He = Zt(null), ze = Mn(async (oe) => {
13278
+ }, [U, z] = S(null), [q, X] = S(null), W = cn.useRef(null), [J, Z] = S(""), [re, we] = S(!1), [ve, G] = S(!1), [ne, Me] = S(!1), [K, Ce] = S("Submit"), [ce, ie] = S(!1), [xe, ue] = S(""), [Se, V] = S(""), [Ae, le] = S([]), [Le, Ve] = S(!1), [De, ge] = S(!1), je = Vt(null), He = Vt(null), ze = Mn(async (oe) => {
13279
13279
  He.current && clearTimeout(He.current), He.current = setTimeout(async () => {
13280
13280
  ge(!0);
13281
13281
  try {
@@ -13362,9 +13362,9 @@ const n0 = ({
13362
13362
  ie(!1);
13363
13363
  }
13364
13364
  }, [he, me] = S(!1), [Be, Te] = S(""), [Qe, et] = S(""), [We, Xe] = S(null);
13365
- return ln.useEffect(() => {
13365
+ return cn.useEffect(() => {
13366
13366
  m || (z(null), X(null), Z(""), ue(""), V(""), le([]), Ve(!1), we(!1), G(!1), Me(!1), Ce("Submit"), me(!1), Te(""), et(""), ie(!1));
13367
- }, [m]), ln.useEffect(() => {
13367
+ }, [m]), cn.useEffect(() => {
13368
13368
  if (q) {
13369
13369
  const oe = URL.createObjectURL(q);
13370
13370
  return Xe(oe), () => {
@@ -13966,7 +13966,7 @@ const Kf = ({
13966
13966
  o();
13967
13967
  }, Ae = a || J, le = Ae === "TRILLIONLOAN", Le = /* @__PURE__ */ new Date();
13968
13968
  Le.setDate(Le.getDate() + 1);
13969
- const [Ve, De] = S(le ? /* @__PURE__ */ new Date() : Le), [ge, je] = S(["", "", "", "", "", ""]), He = ln.useRef([]), [ze, ke] = S(0), [Ie, Jt] = S("idle"), [he, me] = S(!1), [Be, Te] = S(!1), [Qe, et] = S(""), [We, Xe] = S(""), [oe, Ee] = S(
13969
+ const [Ve, De] = S(le ? /* @__PURE__ */ new Date() : Le), [ge, je] = S(["", "", "", "", "", ""]), He = cn.useRef([]), [ze, ke] = S(0), [Ie, Jt] = S("idle"), [he, me] = S(!1), [Be, Te] = S(!1), [Qe, et] = S(""), [We, Xe] = S(""), [oe, Ee] = S(
13970
13970
  Z === "FUNDLY_COLLECT_APP" || Z === "FUNDLY_QR_COLLECT_APP" || Z === "FUNDLY_QR_WEB" ? "Collect" : "Pay Now"
13971
13971
  ), [Fe, _e] = S(!1), [Ke, it] = S(null), [gt, At] = S(null), [rt, wt] = S(!1), [Ct, Ye] = S(null), [Je, vt] = S([]), [Nt, Dt] = S(!1), mt = Mn((be) => {
13972
13972
  const Ue = be.getFullYear(), ut = String(be.getMonth() + 1).padStart(2, "0"), Lt = String(be.getDate()).padStart(2, "0");
@@ -13989,7 +13989,7 @@ const Kf = ({
13989
13989
  repaymentOption: ut,
13990
13990
  supplierId: ve || ""
13991
13991
  });
13992
- U === "INVOICE_COLLECT" && z?.length > 0 && Lt.append("invoiceNumber", z.map((cn) => cn.invoiceId).join(","));
13992
+ U === "INVOICE_COLLECT" && z?.length > 0 && Lt.append("invoiceNumber", z.map(($n) => $n.invoiceId).join(","));
13993
13993
  const Tt = `${Yi()}/kfs/report?${Lt.toString()}`, It = await St.get(Tt, {
13994
13994
  headers: {
13995
13995
  accept: "application/json",
@@ -14068,42 +14068,49 @@ const Kf = ({
14068
14068
  }
14069
14069
  }, [X, Je]), Ne = Mn(() => {
14070
14070
  Ke && Dt(!0);
14071
- }, [Ke]), tt = ln.useMemo(() => Ke ? Ke.kfsDocumentBytes ? `data:application/pdf;base64,${Ke.kfsDocumentBytes}` : Ke.kfsDocumentUrl || Ke.documentUrl || null : null, [Ke]), $e = ln.useMemo(
14072
- () => ln.lazy(
14071
+ }, [Ke]), tt = cn.useMemo(() => Ke ? Ke.kfsDocumentBytes ? `data:application/pdf;base64,${Ke.kfsDocumentBytes}` : Ke.kfsDocumentUrl || Ke.documentUrl || null : null, [Ke]), $e = cn.useMemo(
14072
+ () => cn.lazy(
14073
14073
  () => Promise.all([
14074
- import("./index-C0cby8dt.js").then((be) => be.i),
14075
- import("./index-CnrwE_qz.js").then((be) => be.i)
14074
+ import("./index-D7nGTngj.js").then((be) => be.i),
14075
+ import("./index-B6eqjnE0.js").then((be) => be.i)
14076
14076
  ]).then(([{ Worker: be, Viewer: Ue }, { defaultLayoutPlugin: ut }]) => ({
14077
14077
  default: ({ fileUrl: Lt }) => {
14078
- const Tt = () => {
14079
- let cn;
14078
+ const Tt = /Android|iPhone|iPad|iPod/i.test(navigator.userAgent), It = () => {
14079
+ let Xt;
14080
14080
  if (Lt.startsWith("data:application/pdf;base64,")) {
14081
- const $n = Lt.replace("data:application/pdf;base64,", ""), dn = Uint8Array.from(atob($n), (Xi) => Xi.charCodeAt(0)), Wi = new Blob([dn], { type: "application/pdf" });
14082
- cn = URL.createObjectURL(Wi);
14081
+ const Ht = Lt.replace("data:application/pdf;base64,", ""), dn = Uint8Array.from(atob(Ht), (Xi) => Xi.charCodeAt(0)), Wi = new Blob([dn], { type: "application/pdf" });
14082
+ Xt = URL.createObjectURL(Wi);
14083
14083
  } else
14084
- cn = Lt;
14085
- const Xt = document.createElement("iframe");
14086
- Xt.style.display = "none", Xt.src = cn, document.body.appendChild(Xt), Xt.onload = () => {
14087
- Xt.contentWindow?.focus(), Xt.contentWindow?.print(), setTimeout(() => {
14088
- document.body.removeChild(Xt), cn.startsWith("blob:") && URL.revokeObjectURL(cn);
14084
+ Xt = Lt;
14085
+ if (Tt) {
14086
+ const Ht = document.createElement("a");
14087
+ Ht.href = Xt, Ht.download = "KFS_Document.pdf", document.body.appendChild(Ht), Ht.click(), document.body.removeChild(Ht), setTimeout(() => {
14088
+ Xt.startsWith("blob:") && URL.revokeObjectURL(Xt);
14089
14089
  }, 1e3);
14090
- };
14091
- }, It = ut({
14090
+ } else {
14091
+ const Ht = document.createElement("iframe");
14092
+ Ht.style.display = "none", Ht.src = Xt, document.body.appendChild(Ht), Ht.onload = () => {
14093
+ Ht.contentWindow?.focus(), Ht.contentWindow?.print(), setTimeout(() => {
14094
+ document.body.removeChild(Ht), Xt.startsWith("blob:") && URL.revokeObjectURL(Xt);
14095
+ }, 1e3);
14096
+ };
14097
+ }
14098
+ }, $n = ut({
14092
14099
  sidebarTabs: () => [],
14093
- renderToolbar: (cn) => /* @__PURE__ */ i(cn, { children: (Xt) => {
14094
- const { ZoomOut: $n, ZoomIn: dn, CurrentPageInput: Wi, NumberOfPages: Xi } = Xt;
14100
+ renderToolbar: (Xt) => /* @__PURE__ */ i(Xt, { children: (Ht) => {
14101
+ const { ZoomOut: dn, ZoomIn: Wi, CurrentPageInput: Xi, NumberOfPages: Gt } = Ht;
14095
14102
  return /* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: "4px", padding: "0 8px", width: "100%" }, children: [
14096
- /* @__PURE__ */ i($n, {}),
14097
14103
  /* @__PURE__ */ i(dn, {}),
14104
+ /* @__PURE__ */ i(Wi, {}),
14098
14105
  /* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: "4px", marginLeft: "8px" }, children: [
14099
- /* @__PURE__ */ i(Wi, {}),
14106
+ /* @__PURE__ */ i(Xi, {}),
14100
14107
  /* @__PURE__ */ i("span", { style: { fontSize: "13px", color: "#555" }, children: "/" }),
14101
- /* @__PURE__ */ i(Xi, {})
14108
+ /* @__PURE__ */ i(Gt, {})
14102
14109
  ] }),
14103
14110
  /* @__PURE__ */ i(
14104
14111
  "button",
14105
14112
  {
14106
- onClick: Tt,
14113
+ onClick: It,
14107
14114
  style: { marginLeft: "auto", background: "none", border: "none", cursor: "pointer", padding: "4px", display: "flex", alignItems: "center" },
14108
14115
  title: "Print",
14109
14116
  children: /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "#16558B", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
@@ -14116,12 +14123,12 @@ const Kf = ({
14116
14123
  ] });
14117
14124
  } })
14118
14125
  });
14119
- return /* @__PURE__ */ i(be, { workerUrl: "https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js", children: /* @__PURE__ */ i(Ue, { fileUrl: Lt, plugins: [It] }) });
14126
+ return /* @__PURE__ */ i(be, { workerUrl: "https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js", children: /* @__PURE__ */ i(Ue, { fileUrl: Lt, plugins: [$n] }) });
14120
14127
  }
14121
14128
  }))
14122
14129
  ),
14123
14130
  []
14124
- ), dt = Zt(null);
14131
+ ), dt = Vt(null);
14125
14132
  ft(() => {
14126
14133
  const be = dt.current;
14127
14134
  if (!be) return;
@@ -14130,7 +14137,7 @@ const Kf = ({
14130
14137
  };
14131
14138
  return be.addEventListener("click", Ue), () => be.removeEventListener("click", Ue);
14132
14139
  }, [Ne, Ct]);
14133
- const tn = async () => {
14140
+ const nn = async () => {
14134
14141
  Xe("");
14135
14142
  try {
14136
14143
  re && G && await Nf(re, G);
@@ -14186,10 +14193,10 @@ const Kf = ({
14186
14193
  if (!/^[0-9]?$/.test(be)) return;
14187
14194
  const ut = [...ge];
14188
14195
  ut[Ue] = be, je(ut), be && Ue < 5 && He.current[Ue + 1]?.focus();
14189
- }, rn = (be, Ue) => {
14196
+ }, sn = (be, Ue) => {
14190
14197
  be.key === "Backspace" && !ge[Ue] && Ue > 0 && He.current[Ue - 1]?.focus();
14191
14198
  }, Hi = () => {
14192
- Jt("countdown"), ke(30), tn();
14199
+ Jt("countdown"), ke(30), nn();
14193
14200
  };
14194
14201
  ft(() => {
14195
14202
  if (Ie === "countdown" && ze > 0) {
@@ -14199,7 +14206,7 @@ const Kf = ({
14199
14206
  return () => clearInterval(be);
14200
14207
  } else Ie === "countdown" && ze === 0 && Jt("resend");
14201
14208
  }, [ze, Ie]);
14202
- const Yt = ln.useMemo(() => {
14209
+ const Yt = cn.useMemo(() => {
14203
14210
  if (le && Fe) return !0;
14204
14211
  const be = Ce !== -1, Ue = Ve !== null, ut = ie !== -1 || !Me?.subLimits, Lt = le ? rt : !0;
14205
14212
  if (Z === "FUNDLY_COLLECT_APP" || Z === "FUNDLY_QR_COLLECT_APP" || Z === "FUNDLY_QR_WEB") {
@@ -14413,7 +14420,7 @@ const Kf = ({
14413
14420
  He.current[Ue] = ut;
14414
14421
  },
14415
14422
  onChange: (ut) => In(ut.target.value, Ue),
14416
- onKeyDown: (ut) => rn(ut, Ue),
14423
+ onKeyDown: (ut) => sn(ut, Ue),
14417
14424
  className: "fp:w-7 fp:h-8 fp:text-center fp:text-[16px] fp:outline-none"
14418
14425
  },
14419
14426
  Ue
@@ -14561,7 +14568,7 @@ const Kf = ({
14561
14568
  ]
14562
14569
  }
14563
14570
  ),
14564
- /* @__PURE__ */ i("div", { style: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ i(ln.Suspense, { fallback: /* @__PURE__ */ i("div", { style: { padding: "20px", color: "#666", fontFamily: "Poppins" }, children: "Loading..." }), children: /* @__PURE__ */ i($e, { fileUrl: tt }) }) })
14571
+ /* @__PURE__ */ i("div", { style: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ i(cn.Suspense, { fallback: /* @__PURE__ */ i("div", { style: { padding: "20px", color: "#666", fontFamily: "Poppins" }, children: "Loading..." }), children: /* @__PURE__ */ i($e, { fileUrl: tt }) }) })
14565
14572
  ]
14566
14573
  }
14567
14574
  )
@@ -14624,7 +14631,7 @@ const Kf = ({
14624
14631
  payerMobileNumber: X
14625
14632
  } = Ln(), W = () => {
14626
14633
  o();
14627
- }, [J, Z] = S(""), [re, we] = S(!1), [ve, G] = S(""), [ne, Me] = S(!1), [K, Ce] = S(5), [ce, ie] = S(""), xe = Zt(null), ue = Zt(
14634
+ }, [J, Z] = S(""), [re, we] = S(!1), [ve, G] = S(""), [ne, Me] = S(!1), [K, Ce] = S(5), [ce, ie] = S(""), xe = Vt(null), ue = Vt(
14628
14635
  null
14629
14636
  );
14630
14637
  ft(() => {
@@ -14846,7 +14853,7 @@ Fundly Team`;
14846
14853
  chemistId: X,
14847
14854
  leadId: W,
14848
14855
  payerMobileNumber: J
14849
- } = Ln(), [Z, re] = S(120), [we, ve] = S(""), [G, ne] = S(!1), [Me, K] = S(!1), [Ce, ce] = S(""), ie = Zt(null), xe = Zt(null), ue = Zt(null), Se = Zt(!1), V = Zt(!1), Ae = () => {
14856
+ } = Ln(), [Z, re] = S(120), [we, ve] = S(""), [G, ne] = S(!1), [Me, K] = S(!1), [Ce, ce] = S(""), ie = Vt(null), xe = Vt(null), ue = Vt(null), Se = Vt(!1), V = Vt(!1), Ae = () => {
14850
14857
  o();
14851
14858
  }, le = async () => {
14852
14859
  try {
@@ -15179,7 +15186,7 @@ Fundly Team`;
15179
15186
  showResultOnly: ve,
15180
15187
  sessionId: G,
15181
15188
  erpId: ne
15182
- } = Ln(), [Me, K] = S(!1), [Ce, ce] = S("INITIATED"), [ie, xe] = S(null), [ue, Se] = S(null), V = Zt(null), Ae = Zt(!1), le = Zt({ amount: 0, invoiceCount: 0 });
15189
+ } = Ln(), [Me, K] = S(!1), [Ce, ce] = S("INITIATED"), [ie, xe] = S(null), [ue, Se] = S(null), V = Vt(null), Ae = Vt(!1), le = Vt({ amount: 0, invoiceCount: 0 });
15183
15190
  ft(() => {
15184
15191
  m || (V.current && (clearTimeout(V.current), V.current = null), Ae.current = !1, je.current = !1, ce("INITIATED"), xe(null), Se(null), sessionStorage.removeItem("fundly_payment_initiated"), sessionStorage.removeItem("fundly_last_transaction_id"));
15185
15192
  }, [m]);
@@ -15205,7 +15212,7 @@ Fundly Team`;
15205
15212
  if (!ke) return "gateway";
15206
15213
  const Ie = ke.toLowerCase();
15207
15214
  return Ie.includes("cancel") || Ie.includes("abort") || Ie.includes("declined by user") ? "user_abort" : Ie.includes("bank") || Ie.includes("insufficient") ? "bank" : "gateway";
15208
- }, je = ln.useRef(!1);
15215
+ }, je = cn.useRef(!1);
15209
15216
  ft(() => {
15210
15217
  if (!m || je.current)
15211
15218
  return;
@@ -15994,7 +16001,7 @@ Fundly Team`;
15994
16001
  showResultOnly: ve,
15995
16002
  sessionId: G,
15996
16003
  erpId: ne
15997
- } = Ln(), [Me, K] = S(!1), [Ce, ce] = S("INITIATED"), [ie, xe] = S(null), [ue, Se] = S(null), V = Zt(null), Ae = Zt(!1), le = Zt({ amount: 0, invoiceCount: 0 });
16004
+ } = Ln(), [Me, K] = S(!1), [Ce, ce] = S("INITIATED"), [ie, xe] = S(null), [ue, Se] = S(null), V = Vt(null), Ae = Vt(!1), le = Vt({ amount: 0, invoiceCount: 0 });
15998
16005
  ft(() => {
15999
16006
  m || (V.current && (clearTimeout(V.current), V.current = null), Ae.current = !1, je.current = !1, ce("INITIATED"), xe(null), Se(null), sessionStorage.removeItem("fundly_netbanking_payment_initiated"), sessionStorage.removeItem("fundly_netbanking_last_transaction_id"));
16000
16007
  }, [m]);
@@ -16020,7 +16027,7 @@ Fundly Team`;
16020
16027
  if (!ke) return "gateway";
16021
16028
  const Ie = ke.toLowerCase();
16022
16029
  return Ie.includes("cancel") || Ie.includes("abort") || Ie.includes("declined by user") ? "user_abort" : Ie.includes("bank") || Ie.includes("insufficient") ? "bank" : "gateway";
16023
- }, je = ln.useRef(!1);
16030
+ }, je = cn.useRef(!1);
16024
16031
  ft(() => {
16025
16032
  if (!m || je.current)
16026
16033
  return;
@@ -17042,7 +17049,7 @@ Fundly Team`;
17042
17049
  distributorIdnum: U,
17043
17050
  chemistId: z,
17044
17051
  leadId: q
17045
- } = Ln(), X = Zt(!1);
17052
+ } = Ln(), X = Vt(!1);
17046
17053
  ft(() => {
17047
17054
  const W = (re) => {
17048
17055
  if (typeof re.data != "object" || re.data === null || re.source !== window || re.data?.source === "react-devtools-content-script" || re.source !== window || re.data?.source?.includes("react-devtools") || re.origin !== window.origin)
@@ -17186,7 +17193,7 @@ const cu = ({
17186
17193
  showChequeDrawer: Me,
17187
17194
  showSuccessDrawer: K,
17188
17195
  showFailureDrawer: Ce
17189
- } = r0(), [ce, ie] = S(!1), [xe, ue] = S(-1), [Se, V] = S(null), [Ae, le] = S([]), [Le, Ve] = S(null), [De, ge] = S(null), je = Zt(!1), {
17196
+ } = r0(), [ce, ie] = S(!1), [xe, ue] = S(-1), [Se, V] = S(null), [Ae, le] = S([]), [Le, Ve] = S(null), [De, ge] = S(null), je = Vt(!1), {
17190
17197
  distributorName: He,
17191
17198
  distributorIdnum: ze,
17192
17199
  payableValue: ke,
@@ -17270,14 +17277,14 @@ const cu = ({
17270
17277
  return;
17271
17278
  je.current = !0;
17272
17279
  const $ = () => {
17273
- const rn = navigator.userAgent.toLowerCase();
17274
- return rn.includes("android") ? "android" : rn.includes("iphone") || rn.includes("ipad") || rn.includes("ipod") ? "ios" : "web";
17275
- }, Ne = () => oe && oe > 0 ? "salesman" : Xe && Xe.trim() !== "" ? "guest" : "retailer", tt = () => Ie === nr.FUNDLY_COLLECT_APP ? "collect_app" : Ie === nr.FUNDLY_CUSTOMER_APP ? "customer_app" : Ie === "FUNDLY_QR_WEB" ? "web" : "external_app", $e = () => Ie === nr.FUNDLY_COLLECT_APP ? "collect_app" : Ie === nr.FUNDLY_CUSTOMER_APP ? "customer_app" : null, dt = () => Ie === "FUNDLY_QR_WEB" ? "invoice_qr" : Qe === "INVOICE_COLLECT" ? "invoice_pay_page" : Qe === "DIRECT_COLLECT" ? "direct_pay_page" : "invoice_qr", tn = et?.map((rn) => rn.invoiceId?.toString() || rn.invoiceNumber?.toString()).filter(Boolean) || null, Vn = Ke || `sdk_session_${Date.now()}_${Math.random().toString(36).substring(2, 11)}`, In = {
17280
+ const sn = navigator.userAgent.toLowerCase();
17281
+ return sn.includes("android") ? "android" : sn.includes("iphone") || sn.includes("ipad") || sn.includes("ipod") ? "ios" : "web";
17282
+ }, Ne = () => oe && oe > 0 ? "salesman" : Xe && Xe.trim() !== "" ? "guest" : "retailer", tt = () => Ie === nr.FUNDLY_COLLECT_APP ? "collect_app" : Ie === nr.FUNDLY_CUSTOMER_APP ? "customer_app" : Ie === "FUNDLY_QR_WEB" ? "web" : "external_app", $e = () => Ie === nr.FUNDLY_COLLECT_APP ? "collect_app" : Ie === nr.FUNDLY_CUSTOMER_APP ? "customer_app" : null, dt = () => Ie === "FUNDLY_QR_WEB" ? "invoice_qr" : Qe === "INVOICE_COLLECT" ? "invoice_pay_page" : Qe === "DIRECT_COLLECT" ? "direct_pay_page" : "invoice_qr", nn = et?.map((sn) => sn.invoiceId?.toString() || sn.invoiceNumber?.toString()).filter(Boolean) || null, Vn = Ke || `sdk_session_${Date.now()}_${Math.random().toString(36).substring(2, 11)}`, In = {
17276
17283
  scan_id: Fe || null,
17277
17284
  // From consumer app (salesman-app)
17278
17285
  view_id: _e || null,
17279
17286
  // From consumer app (salesman-app)
17280
- invoice_id: tn,
17287
+ invoice_id: nn,
17281
17288
  supplier_id: ze?.toString() || "",
17282
17289
  erp_id: it || null,
17283
17290
  // From consumer app if available
@@ -17524,32 +17531,32 @@ const cu = ({
17524
17531
  )} payment.`, dt = !0) : tt !== null && $ > tt ? ($e = `Max Eligible Amount: ₹${ct(
17525
17532
  tt
17526
17533
  )}`, dt = !0) : Dt && ($e = Dt, dt = !0);
17527
- let tn = [], Vn = 0;
17528
- Te?.subLimits && Array.isArray(Te.subLimits) && (tn = Te.subLimits.filter(
17534
+ let nn = [], Vn = 0;
17535
+ Te?.subLimits && Array.isArray(Te.subLimits) && (nn = Te.subLimits.filter(
17529
17536
  (Yt) => Yt.expired === !1
17530
- ), tn.sort((Yt, bt) => {
17537
+ ), nn.sort((Yt, bt) => {
17531
17538
  const Kn = Yt.maxEligibleAmount || Yt.availableLimit || 0;
17532
17539
  return (bt.maxEligibleAmount || bt.availableLimit || 0) - Kn;
17533
- }), tn.length > 0 && (Vn = Math.max(
17534
- ...tn.map(
17540
+ }), nn.length > 0 && (Vn = Math.max(
17541
+ ...nn.map(
17535
17542
  (Yt) => Yt.maxEligibleAmount || Yt.availableLimit || 0
17536
17543
  )
17537
17544
  )));
17538
- const In = tn.length > 1, rn = tn.length === 1, Hi = tn.length === 0;
17545
+ const In = nn.length > 1, sn = nn.length === 1, Hi = nn.length === 0;
17539
17546
  return /* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:flex-col fp:mt-6", children: [
17540
17547
  /* @__PURE__ */ i("h2", { className: "fp:text-[16px] fp:font-semibold", children: "Preferred Payment" }),
17541
17548
  /* @__PURE__ */ c("div", { className: "fp:w-full fp:flex fp:flex-col fp:mt-2", children: [
17542
17549
  /* @__PURE__ */ c(
17543
17550
  "div",
17544
17551
  {
17545
- className: `fp:w-full fp:border fp:border-gray-100 ${dt ? "fp:bg-[#efefef]" : "fp:bg-white"} ${$e || In && ce || rn ? "fp:rounded-t-xl" : "fp:rounded-xl"} ${dt ? "" : "fp:cursor-pointer fp:hover:shadow-2xs"} fp:p-4 fp:flex fp:items-center fp:justify-between`,
17552
+ className: `fp:w-full fp:border fp:border-gray-100 ${dt ? "fp:bg-[#efefef]" : "fp:bg-white"} ${$e || In && ce || sn ? "fp:rounded-t-xl" : "fp:rounded-xl"} ${dt ? "" : "fp:cursor-pointer fp:hover:shadow-2xs"} fp:p-4 fp:flex fp:items-center fp:justify-between`,
17546
17553
  onClick: () => {
17547
17554
  if (!dt)
17548
17555
  if (In)
17549
17556
  ie(!ce);
17550
- else if (rn) {
17551
- ue(0), V(tn[0].fiCode);
17552
- const Yt = ot(tn[0]);
17557
+ else if (sn) {
17558
+ ue(0), V(nn[0].fiCode);
17559
+ const Yt = ot(nn[0]);
17553
17560
  le(Yt.tenureMappings), Ve(Yt.repaymentOption), ge(Yt.disbursementAccount), z("FUNDLY_PAY");
17554
17561
  } else
17555
17562
  z("FUNDLY_PAY");
@@ -17593,13 +17600,13 @@ const cu = ({
17593
17600
  ]
17594
17601
  }
17595
17602
  ),
17596
- !dt && rn && /* @__PURE__ */ i("div", { className: "fp:w-full fp:bg-[#E6F7EF] fp:flex fp:p-2 fp:text-[#34A877] fp:rounded-b-xl fp:border-x fp:border-b fp:border-gray-100", children: /* @__PURE__ */ c("label", { className: "fp:text-[10px] fp:font-medium", children: [
17603
+ !dt && sn && /* @__PURE__ */ i("div", { className: "fp:w-full fp:bg-[#E6F7EF] fp:flex fp:p-2 fp:text-[#34A877] fp:rounded-b-xl fp:border-x fp:border-b fp:border-gray-100", children: /* @__PURE__ */ c("label", { className: "fp:text-[10px] fp:font-medium", children: [
17597
17604
  "Max Eligible Amount:",
17598
17605
  " ",
17599
17606
  /* @__PURE__ */ c("span", { className: "fp:font-bold", children: [
17600
17607
  "₹",
17601
17608
  ct(
17602
- tn[0].maxEligibleAmount || tn[0].availableLimit || 0
17609
+ nn[0].maxEligibleAmount || nn[0].availableLimit || 0
17603
17610
  )
17604
17611
  ] })
17605
17612
  ] }) }),
@@ -17612,7 +17619,7 @@ const cu = ({
17612
17619
  ] })
17613
17620
  ] }) }),
17614
17621
  !dt && In && ce && /* @__PURE__ */ c(Ot, { children: [
17615
- /* @__PURE__ */ i("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: tn.map((Yt, bt) => {
17622
+ /* @__PURE__ */ i("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: nn.map((Yt, bt) => {
17616
17623
  const Kn = Yt.maxEligibleAmount || Yt.availableLimit || 0, jn = Kn < $;
17617
17624
  return /* @__PURE__ */ i(
17618
17625
  "button",
@@ -18490,7 +18497,7 @@ const Re = ({ className: m = "" }) => /* @__PURE__ */ i("div", { className: `fp:
18490
18497
  onClose: o,
18491
18498
  transaction: I
18492
18499
  }) => {
18493
- const w = ln.useRef(null), [a, R] = S(null), [T, O] = S(!1), [Q, F] = S(null), [U, z] = S([]), [q, X] = S(!1), [W, J] = S(!1), [Z, re] = S(""), we = async (he) => {
18500
+ const w = cn.useRef(null), [a, R] = S(null), [T, O] = S(!1), [Q, F] = S(null), [U, z] = S([]), [q, X] = S(!1), [W, J] = S(!1), [Z, re] = S(""), we = async (he) => {
18494
18501
  const me = he.documentIds.flat().map((Be) => Be.documentId);
18495
18502
  if (me.length !== 0) {
18496
18503
  J(!0), re(he.invoiceNumber), X(!0);
@@ -19707,7 +19714,7 @@ const Hl = () => qs() === "production" ? "production" : "sandbox", vu = () => ir
19707
19714
  onDone: o,
19708
19715
  onPaymentComplete: I
19709
19716
  }) => {
19710
- const [w, a] = S("loading"), [R, T] = S(0), [O, Q] = S(null), [F, U] = S(null), z = Zt(0), q = Zt(null);
19717
+ const [w, a] = S("loading"), [R, T] = S(0), [O, Q] = S(null), [F, U] = S(null), z = Vt(0), q = Vt(null);
19711
19718
  ft(() => (X(), () => {
19712
19719
  q.current && clearTimeout(q.current);
19713
19720
  }), [m]);