@srimandir/kundli-generator 5.30.34 → 5.30.35

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.
@@ -31,10 +31,10 @@ function Hr() {
31
31
  {
32
32
  for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)
33
33
  l[u - 1] = arguments[u];
34
- F("error", e, l);
34
+ M("error", e, l);
35
35
  }
36
36
  }
37
- function F(e, i, l) {
37
+ function M(e, i, l) {
38
38
  {
39
39
  var u = b.ReactDebugCurrentFrame, A = u.getStackAddendum();
40
40
  A !== "" && (i += "%s", l = l.concat([A]));
@@ -44,10 +44,10 @@ function Hr() {
44
44
  j.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, j);
45
45
  }
46
46
  }
47
- var v = !1, O = !1, z = !1, J = !1, ae = !1, q;
47
+ var v = !1, F = !1, z = !1, J = !1, ae = !1, q;
48
48
  q = /* @__PURE__ */ Symbol.for("react.module.reference");
49
49
  function $(e) {
50
- return !!(typeof e == "string" || typeof e == "function" || e === m || e === S || ae || e === w || e === L || e === d || J || e === E || v || O || z || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === T || e.$$typeof === x || e.$$typeof === N || e.$$typeof === P || // This needs to include all possible module reference object
50
+ return !!(typeof e == "string" || typeof e == "function" || e === m || e === S || ae || e === w || e === L || e === d || J || e === E || v || F || z || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === T || e.$$typeof === x || e.$$typeof === N || e.$$typeof === P || // This needs to include all possible module reference object
51
51
  // types supported by any Flight configuration anywhere since
52
52
  // we don't know which Flight build this will end up being used
53
53
  // with.
@@ -239,18 +239,18 @@ function Hr() {
239
239
  if (te && u && typeof te.stack == "string") {
240
240
  for (var _ = te.stack.split(`
241
241
  `), X = u.stack.split(`
242
- `), M = _.length - 1, G = X.length - 1; M >= 1 && G >= 0 && _[M] !== X[G]; )
242
+ `), O = _.length - 1, G = X.length - 1; O >= 1 && G >= 0 && _[O] !== X[G]; )
243
243
  G--;
244
- for (; M >= 1 && G >= 0; M--, G--)
245
- if (_[M] !== X[G]) {
246
- if (M !== 1 || G !== 1)
244
+ for (; O >= 1 && G >= 0; O--, G--)
245
+ if (_[O] !== X[G]) {
246
+ if (O !== 1 || G !== 1)
247
247
  do
248
- if (M--, G--, G < 0 || _[M] !== X[G]) {
248
+ if (O--, G--, G < 0 || _[O] !== X[G]) {
249
249
  var se = `
250
- ` + _[M].replace(" at new ", " at ");
250
+ ` + _[O].replace(" at new ", " at ");
251
251
  return e.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", e.displayName)), typeof e == "function" && me.set(e, se), se;
252
252
  }
253
- while (M >= 1 && G >= 0);
253
+ while (O >= 1 && G >= 0);
254
254
  break;
255
255
  }
256
256
  }
@@ -316,8 +316,8 @@ function Hr() {
316
316
  throw X.name = "Invariant Violation", X;
317
317
  }
318
318
  _ = e[y](i, y, u, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
319
- } catch (M) {
320
- _ = M;
319
+ } catch (O) {
320
+ _ = O;
321
321
  }
322
322
  _ && !(_ instanceof Error) && (R(A), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", l, y, typeof _), R(null)), _ instanceof Error && !(_.message in n) && (n[_.message] = !0, R(A), g("Failed %s type: %s", l, _.message), R(null));
323
323
  }
@@ -430,9 +430,9 @@ function Hr() {
430
430
  for (j in i)
431
431
  pe.call(i, j) && !kr.hasOwnProperty(j) && (y[j] = i[j]);
432
432
  if (e && e.defaultProps) {
433
- var M = e.defaultProps;
434
- for (j in M)
435
- y[j] === void 0 && (y[j] = M[j]);
433
+ var O = e.defaultProps;
434
+ for (j in O)
435
+ y[j] === void 0 && (y[j] = O[j]);
436
436
  }
437
437
  if (_ || X) {
438
438
  var G = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
@@ -560,8 +560,8 @@ Check the top-level render call using <` + l + ">.");
560
560
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
561
561
  var X = Tr();
562
562
  X ? _ += X : _ += Xe();
563
- var M;
564
- e === null ? M = "null" : Ee(e) ? M = "array" : e !== void 0 && e.$$typeof === o ? (M = "<" + (U(e.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : M = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", M, _);
563
+ var O;
564
+ e === null ? O = "null" : Ee(e) ? O = "array" : e !== void 0 && e.$$typeof === o ? (O = "<" + (U(e.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : O = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, _);
565
565
  }
566
566
  var G = Nr(e, i, l, A, j);
567
567
  if (G == null)
@@ -1151,9 +1151,9 @@ const Ke = ur(null), st = {
1151
1151
  onBack: C,
1152
1152
  readMoreReviewsHref: b,
1153
1153
  onProceed: g,
1154
- proceedHref: F,
1154
+ proceedHref: M,
1155
1155
  originalPriceLabel: v,
1156
- discountedPriceLabel: O,
1156
+ discountedPriceLabel: F,
1157
1157
  discountPillLabel: z,
1158
1158
  analytics: J,
1159
1159
  onProceedGuidance: ae,
@@ -1196,9 +1196,9 @@ const Ke = ur(null), st = {
1196
1196
  onBack: C,
1197
1197
  readMoreReviewsHref: b,
1198
1198
  onProceed: g,
1199
- proceedHref: F,
1199
+ proceedHref: M,
1200
1200
  originalPriceLabel: v,
1201
- discountedPriceLabel: O,
1201
+ discountedPriceLabel: F,
1202
1202
  discountPillLabel: z,
1203
1203
  analytics: J,
1204
1204
  onProceedGuidance: ae,
@@ -1226,9 +1226,9 @@ const Ke = ur(null), st = {
1226
1226
  C,
1227
1227
  b,
1228
1228
  g,
1229
- F,
1229
+ M,
1230
1230
  v,
1231
- O,
1231
+ F,
1232
1232
  z,
1233
1233
  J,
1234
1234
  ae,
@@ -1474,13 +1474,13 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
1474
1474
  atlasSearchLocalities: N,
1475
1475
  className: P = ""
1476
1476
  }) => {
1477
- const L = Re(), d = L?.config?.analytics ?? x, T = L?.config.isGlobal ?? !0, p = L?.config?.atlasSearchLocalities, [E, h] = W(!1), [I, C] = W(""), b = H(null), g = H(null), F = H({}), v = (n) => c({ ...o, ...n }), O = (n, s) => {
1477
+ const L = Re(), d = L?.config?.analytics ?? x, T = L?.config.isGlobal ?? !0, p = L?.config?.atlasSearchLocalities, [E, h] = W(!1), [I, C] = W(""), b = H(null), g = H(null), M = H({}), v = (n) => c({ ...o, ...n }), F = (n, s) => {
1478
1478
  if (n === "phone") {
1479
- const R = pa(s, m, F.current);
1479
+ const R = pa(s, m, M.current);
1480
1480
  R.shouldTrack && d?.trackPhoneSectionFilled?.({ phone: R.fullPhone });
1481
1481
  return;
1482
1482
  }
1483
- s.trim() && !F.current[n] && (F.current[n] = !0, {
1483
+ s.trim() && !M.current[n] && (M.current[n] = !0, {
1484
1484
  fullName: () => d?.trackNameSectionFilled?.(),
1485
1485
  dateOfBirth: () => d?.trackDobFilled?.(),
1486
1486
  birthTime: () => d?.trackTimeFilled?.(),
@@ -1488,7 +1488,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
1488
1488
  }[n]?.());
1489
1489
  }, z = (n) => {
1490
1490
  const s = n.target.value;
1491
- s.trim() && !F.current.email && (F.current.email = !0, d?.trackEmailSectionFilled?.({ email: s }));
1491
+ s.trim() && d?.trackEmailSectionFilled?.({ email: s });
1492
1492
  }, J = I.trim().toLowerCase(), ae = gr.filter((n) => J ? n.country.toLowerCase().includes(J) || n.code.includes(J) : !0), q = H(null);
1493
1493
  H(null);
1494
1494
  const $ = H(null), ie = H(0), Z = H(null), [U, D] = W(!1), [B, Q] = W({ hour12: 12, minute: "00", meridiem: "AM" }), ee = (n) => String(n).padStart(2, "0"), _e = (n) => {
@@ -1593,7 +1593,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
1593
1593
  onFocus: () => d?.trackNameSectionClicked?.(),
1594
1594
  onChange: (n) => {
1595
1595
  const s = n.target.value;
1596
- v({ fullName: s }), O("fullName", s);
1596
+ v({ fullName: s }), F("fullName", s);
1597
1597
  },
1598
1598
  placeholder: t("formFullNamePlaceholder"),
1599
1599
  autoComplete: "name"
@@ -1630,7 +1630,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
1630
1630
  onFocus: () => d?.trackPhoneSectionClicked?.(),
1631
1631
  onChange: (n) => {
1632
1632
  const s = n.target.value;
1633
- v({ phone: dr(s) }), O("phone", dr(s));
1633
+ v({ phone: dr(s) }), F("phone", dr(s));
1634
1634
  },
1635
1635
  placeholder: t("formPhonePlaceholder"),
1636
1636
  autoComplete: "tel",
@@ -1805,7 +1805,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
1805
1805
  })(),
1806
1806
  onChange: (n) => {
1807
1807
  const s = n.target.value, R = /* @__PURE__ */ new Date(), fe = `${R.getFullYear()}-${ee(R.getMonth() + 1)}-${ee(R.getDate())}`;
1808
- s && s > fe || (v({ dateOfBirth: s }), O("dateOfBirth", s), $.current = null);
1808
+ s && s > fe || (v({ dateOfBirth: s }), F("dateOfBirth", s), $.current = null);
1809
1809
  },
1810
1810
  onFocus: () => d?.trackDobClicked?.(),
1811
1811
  onClick: () => pe(q),
@@ -1883,7 +1883,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
1883
1883
  onFocus: () => d?.trackTimeClicked?.(),
1884
1884
  onChange: (n) => {
1885
1885
  const s = n.target.value;
1886
- v({ birthTime: s }), O("birthTime", s);
1886
+ v({ birthTime: s }), F("birthTime", s);
1887
1887
  },
1888
1888
  disabled: o.birthTimeUnknown,
1889
1889
  placeholder: "HH:MM AM",
@@ -1986,7 +1986,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
1986
1986
  className: `${a.timePopoverBtn} ${a.timePopoverOk}`,
1987
1987
  onClick: () => {
1988
1988
  const n = V(B);
1989
- v({ birthTime: n }), O("birthTime", n), D(!1);
1989
+ v({ birthTime: n }), F("birthTime", n), D(!1);
1990
1990
  },
1991
1991
  "aria-label": "OK",
1992
1992
  children: /* @__PURE__ */ r.jsx(
@@ -2097,7 +2097,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
2097
2097
  birthPlace: s,
2098
2098
  birthPlaceLat: void 0,
2099
2099
  birthPlaceLng: void 0
2100
- }), O("birthPlace", s), de(!0);
2100
+ }), F("birthPlace", s), de(!0);
2101
2101
  },
2102
2102
  onFocus: () => {
2103
2103
  d?.trackPlaceOfBirthClicked?.(), de(!0);
@@ -2353,22 +2353,22 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
2353
2353
  planSheetOpen: h,
2354
2354
  selectedPlan: I
2355
2355
  }) => {
2356
- const C = Re(), b = C?.config.isGlobal ?? !0, g = C?.config?.variant, [F, v] = W(!1), O = Ue(
2356
+ const C = Re(), b = C?.config.isGlobal ?? !0, g = C?.config?.variant, [M, v] = W(!1), F = Ue(
2357
2357
  () => ja(o, b, m),
2358
2358
  [o, b, m]
2359
- ), z = O === null, J = g === "v1" && C?.config?.showSheet;
2359
+ ), z = F === null, J = g === "v1" && C?.config?.showSheet;
2360
2360
  Y(() => {
2361
- if (!F) return;
2361
+ if (!M) return;
2362
2362
  const Z = window.setTimeout(() => {
2363
2363
  v(!1);
2364
2364
  }, 2200);
2365
2365
  return () => window.clearTimeout(Z);
2366
- }, [F]);
2366
+ }, [M]);
2367
2367
  const ae = b ? d ?? t("formDiscountedPrice") : J ? "" : "₹499", q = C?.config.imageComponent ?? De, $ = (Z) => {
2368
2368
  if (Z.preventDefault(), g === "v1" && !z && P?.trackKundliDetailedClicked?.(), !z) {
2369
- O && (w?.(
2370
- O === "birthPlaceCoordinates" ? "birthPlace" : O
2371
- ), O === "birthPlaceCoordinates" && v(!0));
2369
+ F && (w?.(
2370
+ F === "birthPlaceCoordinates" ? "birthPlace" : F
2371
+ ), F === "birthPlaceCoordinates" && v(!0));
2372
2372
  return;
2373
2373
  }
2374
2374
  const U = !!x && g === "v1" && I?.id === br, D = (o.phone ?? "").trim(), B = {
@@ -2414,7 +2414,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
2414
2414
  className: `${Ne.footerContainer} ${L}`,
2415
2415
  marquee: /* @__PURE__ */ r.jsx(Gr, { children: /* @__PURE__ */ r.jsx(Pa, { t }) }),
2416
2416
  children: [
2417
- F && /* @__PURE__ */ r.jsx("div", { className: Ne.validationToast, role: "alert", "aria-live": "assertive", children: t("formFillAllFields") }),
2417
+ M && /* @__PURE__ */ r.jsx("div", { className: Ne.validationToast, role: "alert", "aria-live": "assertive", children: t("formFillAllFields") }),
2418
2418
  ie
2419
2419
  ]
2420
2420
  }
@@ -2706,7 +2706,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
2706
2706
  isSelected: C.id === T,
2707
2707
  t: x,
2708
2708
  onSelect: (b) => {
2709
- const g = d.find((F) => F.id === b);
2709
+ const g = d.find((M) => M.id === b);
2710
2710
  g && (N?.trackPlanSelected?.({
2711
2711
  planId: g.id,
2712
2712
  planName: g.title
@@ -2762,13 +2762,13 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
2762
2762
  atlasSearchLocalities: d,
2763
2763
  analytics: T
2764
2764
  }) => {
2765
- const p = Re(), E = qr(), h = p !== null, I = h ? p.locale : o, C = I ?? E?.locale ?? "en", [b, g] = W(C), F = h ? p.locale : b, v = h ? p.setLocale : g, [O, z] = W(!1), J = H(null), ae = H(I), q = H(
2765
+ const p = Re(), E = qr(), h = p !== null, I = h ? p.locale : o, C = I ?? E?.locale ?? "en", [b, g] = W(C), M = h ? p.locale : b, v = h ? p.setLocale : g, [F, z] = W(!1), J = H(null), ae = H(I), q = H(
2766
2766
  E?.locale
2767
2767
  );
2768
2768
  Y(() => {
2769
2769
  window.scrollTo({ top: 0, left: 0, behavior: "auto" });
2770
2770
  }, []);
2771
- const $ = (k) => En(F, k);
2771
+ const $ = (k) => En(M, k);
2772
2772
  Y(() => {
2773
2773
  I && ae.current !== I && v(I), ae.current = I;
2774
2774
  }, [I, v]), Y(() => {
@@ -2788,12 +2788,12 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
2788
2788
  }, [U]);
2789
2789
  const Q = h ? p.formValues : ie, ee = h ? p.setFormValues : Z, _e = h ? p.goToPage : m, le = h ? p.onProceed : S, V = h ? p.onProceedGuidance : x, ce = h ? p.config.proceedHref : N, re = h ? p.config.originalPriceLabel : P, de = h ? p.config.discountedPriceLabel : L, ne = h ? p.config.showLanguageSelector ?? !0 : c, oe = (h ? p?.config?.analytics : T) ?? T;
2790
2790
  Y(() => {
2791
- if (!O) return;
2791
+ if (!F) return;
2792
2792
  const k = (pe) => {
2793
2793
  J.current && !J.current.contains(pe.target) && z(!1);
2794
2794
  };
2795
2795
  return document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
2796
- }, [O]);
2796
+ }, [F]);
2797
2797
  const [ue, ge] = W(!1), [K, ye] = W(null), me = H(null), we = Te((k) => {
2798
2798
  me.current = k, ge(!0);
2799
2799
  }, []), be = Te(() => {
@@ -2813,9 +2813,9 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
2813
2813
  type: "button",
2814
2814
  className: he.langTrigger,
2815
2815
  onClick: () => {
2816
- oe?.trackLanguageClickedFe?.({ language: F }), z((k) => !k);
2816
+ oe?.trackLanguageClickedFe?.({ language: M }), z((k) => !k);
2817
2817
  },
2818
- "aria-expanded": O,
2818
+ "aria-expanded": F,
2819
2819
  "aria-haspopup": "listbox",
2820
2820
  id: "kundli-form-lang",
2821
2821
  "aria-label": $("language"),
@@ -2831,23 +2831,23 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
2831
2831
  loading: "eager"
2832
2832
  }
2833
2833
  ),
2834
- /* @__PURE__ */ r.jsx("span", { className: he.langLabel, children: lr[F] })
2834
+ /* @__PURE__ */ r.jsx("span", { className: he.langLabel, children: lr[M] })
2835
2835
  ]
2836
2836
  }
2837
2837
  ),
2838
- O && /* @__PURE__ */ r.jsx(
2838
+ F && /* @__PURE__ */ r.jsx(
2839
2839
  "ul",
2840
2840
  {
2841
2841
  className: he.langMenu,
2842
2842
  role: "listbox",
2843
2843
  "aria-labelledby": "kundli-form-lang",
2844
- "aria-activedescendant": `kundli-form-lang-option-${F}`,
2844
+ "aria-activedescendant": `kundli-form-lang-option-${M}`,
2845
2845
  children: mr.map((k) => /* @__PURE__ */ r.jsx(
2846
2846
  "li",
2847
2847
  {
2848
2848
  id: `kundli-form-lang-option-${k}`,
2849
2849
  role: "option",
2850
- "aria-selected": k === F,
2850
+ "aria-selected": k === M,
2851
2851
  className: he.langOption,
2852
2852
  onClick: () => {
2853
2853
  oe?.trackLanguageChangedFe?.({ newLanguage: k }), v(k), z(!1);
@@ -2991,4 +2991,4 @@ export {
2991
2991
  fr as t,
2992
2992
  qr as u
2993
2993
  };
2994
- //# sourceMappingURL=analytics-DI8j9UTs.js.map
2994
+ //# sourceMappingURL=analytics-qrcpYMLy.js.map