@srimandir/kundli-generator 5.9.0 → 5.11.0

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,4 +1,4 @@
1
- import Ge, { useContext as We, createContext as cr, useState as W, useRef as K, useEffect as H, useMemo as Ue, useCallback as Te } from "react";
1
+ import Ge, { useContext as We, createContext as cr, useState as K, useRef as H, useEffect as Y, useMemo as Ue, useCallback as Te } from "react";
2
2
  import { FormSectionHeader as Dr, FooterCTAButton as Fr, FooterShell as Or, CircularMarquee as Mr, footerShellStyles as ke, PageHeader as $r } from "@srimandir/astrology-common";
3
3
  var Le = { exports: {} }, Ie = {};
4
4
  var ar;
@@ -19,15 +19,15 @@ var Be = {};
19
19
  var nr;
20
20
  function Gr() {
21
21
  return nr || (nr = 1, process.env.NODE_ENV !== "production" && (function() {
22
- var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), d = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), k = /* @__PURE__ */ Symbol.for("react.strict_mode"), S = /* @__PURE__ */ Symbol.for("react.profiler"), x = /* @__PURE__ */ Symbol.for("react.provider"), j = /* @__PURE__ */ Symbol.for("react.context"), A = /* @__PURE__ */ Symbol.for("react.forward_ref"), E = /* @__PURE__ */ Symbol.for("react.suspense"), c = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), I = /* @__PURE__ */ Symbol.for("react.offscreen"), h = Symbol.iterator, B = "@@iterator";
22
+ var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), d = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), k = /* @__PURE__ */ Symbol.for("react.strict_mode"), S = /* @__PURE__ */ Symbol.for("react.profiler"), x = /* @__PURE__ */ Symbol.for("react.provider"), j = /* @__PURE__ */ Symbol.for("react.context"), A = /* @__PURE__ */ Symbol.for("react.forward_ref"), E = /* @__PURE__ */ Symbol.for("react.suspense"), c = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), I = /* @__PURE__ */ Symbol.for("react.offscreen"), g = Symbol.iterator, B = "@@iterator";
23
23
  function C(e) {
24
24
  if (e === null || typeof e != "object")
25
25
  return null;
26
- var i = h && e[h] || e[B];
26
+ var i = g && e[g] || e[B];
27
27
  return typeof i == "function" ? i : null;
28
28
  }
29
29
  var b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
30
- function g(e) {
30
+ function h(e) {
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];
@@ -44,10 +44,10 @@ function Gr() {
44
44
  R.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, R);
45
45
  }
46
46
  }
47
- var w = !1, D = !1, Y = !1, J = !1, re = !1, q;
47
+ var w = !1, D = !1, G = !1, J = !1, re = !1, q;
48
48
  q = /* @__PURE__ */ Symbol.for("react.module.reference");
49
49
  function M(e) {
50
- return !!(typeof e == "string" || typeof e == "function" || e === m || e === S || re || e === k || e === E || e === c || J || e === I || w || D || Y || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === N || e.$$typeof === x || e.$$typeof === j || e.$$typeof === A || // This needs to include all possible module reference object
50
+ return !!(typeof e == "string" || typeof e == "function" || e === m || e === S || re || e === k || e === E || e === c || J || e === I || w || D || G || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === N || e.$$typeof === x || e.$$typeof === j || e.$$typeof === A || // 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.
@@ -63,10 +63,10 @@ function Gr() {
63
63
  function Q(e) {
64
64
  return e.displayName || "Context";
65
65
  }
66
- function G(e) {
66
+ function W(e) {
67
67
  if (e == null)
68
68
  return null;
69
- if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
69
+ if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
70
70
  return e.displayName || e.name || null;
71
71
  if (typeof e == "string")
72
72
  return e;
@@ -96,11 +96,11 @@ function Gr() {
96
96
  return se(e, e.render, "ForwardRef");
97
97
  case N:
98
98
  var u = e.displayName || null;
99
- return u !== null ? u : G(e.type) || "Memo";
99
+ return u !== null ? u : W(e.type) || "Memo";
100
100
  case p: {
101
101
  var P = e, R = P._payload, v = P._init;
102
102
  try {
103
- return G(v(R));
103
+ return W(v(R));
104
104
  } catch {
105
105
  return null;
106
106
  }
@@ -167,7 +167,7 @@ function Gr() {
167
167
  })
168
168
  });
169
169
  }
170
- F < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
170
+ F < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
171
171
  }
172
172
  }
173
173
  var de = b.ReactCurrentDispatcher, _e;
@@ -319,7 +319,7 @@ function Gr() {
319
319
  } catch (O) {
320
320
  _ = O;
321
321
  }
322
- _ && !(_ instanceof Error) && (L(P), 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, v, typeof _), L(null)), _ instanceof Error && !(_.message in n) && (n[_.message] = !0, L(P), g("Failed %s type: %s", l, _.message), L(null));
322
+ _ && !(_ instanceof Error) && (L(P), h("%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, v, typeof _), L(null)), _ instanceof Error && !(_.message in n) && (n[_.message] = !0, L(P), h("Failed %s type: %s", l, _.message), L(null));
323
323
  }
324
324
  }
325
325
  }
@@ -345,7 +345,7 @@ function Gr() {
345
345
  }
346
346
  function Ye(e) {
347
347
  if (_r(e))
348
- return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gr(e)), He(e);
348
+ return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gr(e)), He(e);
349
349
  }
350
350
  var qe = b.ReactCurrentOwner, br = {
351
351
  key: !0,
@@ -375,7 +375,7 @@ function Gr() {
375
375
  function wr(e, i) {
376
376
  {
377
377
  var l = function() {
378
- Ve || (Ve = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
378
+ Ve || (Ve = !0, h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
379
379
  };
380
380
  l.isReactWarning = !0, Object.defineProperty(e, "key", {
381
381
  get: l,
@@ -386,7 +386,7 @@ function Gr() {
386
386
  function xr(e, i) {
387
387
  {
388
388
  var l = function() {
389
- ze || (ze = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
389
+ ze || (ze = !0, h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
390
390
  };
391
391
  l.isReactWarning = !0, Object.defineProperty(e, "ref", {
392
392
  get: l,
@@ -457,7 +457,7 @@ function Gr() {
457
457
  function Qe() {
458
458
  {
459
459
  if (Fe.current) {
460
- var e = G(Fe.current.type);
460
+ var e = W(Fe.current.type);
461
461
  if (e)
462
462
  return `
463
463
 
@@ -492,7 +492,7 @@ Check the top-level render call using <` + l + ">.");
492
492
  return;
493
493
  Xe[l] = !0;
494
494
  var u = "";
495
- e && e._owner && e._owner !== Fe.current && (u = " It was passed a child from " + G(e._owner.type) + "."), Ae(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, u), Ae(null);
495
+ e && e._owner && e._owner !== Fe.current && (u = " It was passed a child from " + W(e._owner.type) + "."), Ae(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, u), Ae(null);
496
496
  }
497
497
  }
498
498
  function er(e, i) {
@@ -529,14 +529,14 @@ Check the top-level render call using <` + l + ">.");
529
529
  else
530
530
  return;
531
531
  if (l) {
532
- var u = G(i);
532
+ var u = W(i);
533
533
  me(l, e.props, "prop", u, e);
534
534
  } else if (i.PropTypes !== void 0 && !Oe) {
535
535
  Oe = !0;
536
- var P = G(i);
537
- g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
536
+ var P = W(i);
537
+ h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
538
538
  }
539
- typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
539
+ typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
540
540
  }
541
541
  }
542
542
  function Tr(e) {
@@ -544,11 +544,11 @@ Check the top-level render call using <` + l + ">.");
544
544
  for (var i = Object.keys(e.props), l = 0; l < i.length; l++) {
545
545
  var u = i[l];
546
546
  if (u !== "children" && u !== "key") {
547
- Ae(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), Ae(null);
547
+ Ae(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), Ae(null);
548
548
  break;
549
549
  }
550
550
  }
551
- e.ref !== null && (Ae(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
551
+ e.ref !== null && (Ae(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
552
552
  }
553
553
  }
554
554
  var rr = {};
@@ -561,7 +561,7 @@ Check the top-level render call using <` + l + ">.");
561
561
  var Z = Cr();
562
562
  Z ? _ += Z : _ += Qe();
563
563
  var O;
564
- e === null ? O = "null" : Ee(e) ? O = "array" : e !== void 0 && e.$$typeof === o ? (O = "<" + (G(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, _);
564
+ e === null ? O = "null" : Ee(e) ? O = "array" : e !== void 0 && e.$$typeof === o ? (O = "<" + (W(e.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : O = typeof e, h("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 $ = Ar(e, i, l, P, R);
567
567
  if ($ == null)
@@ -575,17 +575,17 @@ Check the top-level render call using <` + l + ">.");
575
575
  er(le[Ce], e);
576
576
  Object.freeze && Object.freeze(le);
577
577
  } else
578
- g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
578
+ h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
579
579
  else
580
580
  er(le, e);
581
581
  }
582
582
  if (pe.call(i, "key")) {
583
- var ve = G(e), ee = Object.keys(i).filter(function(Lr) {
583
+ var ve = W(e), ee = Object.keys(i).filter(function(Lr) {
584
584
  return Lr !== "key";
585
585
  }), $e = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
586
586
  if (!rr[ve + $e]) {
587
587
  var Br = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
588
- g(`A props object containing a "key" prop is being spread into JSX:
588
+ h(`A props object containing a "key" prop is being spread into JSX:
589
589
  let props = %s;
590
590
  <%s {...props} />
591
591
  React keys must be passed directly to JSX without using spread:
@@ -1146,28 +1146,28 @@ const Ke = cr(null), ot = {
1146
1146
  universityLogoUrls: N,
1147
1147
  sampleReportHref: p,
1148
1148
  onViewSampleReport: I,
1149
- ctaHref: h,
1149
+ ctaHref: g,
1150
1150
  onCtaClick: B,
1151
1151
  onBack: C,
1152
1152
  readMoreReviewsHref: b,
1153
- onProceed: g,
1153
+ onProceed: h,
1154
1154
  proceedHref: U,
1155
1155
  originalPriceLabel: w,
1156
1156
  discountedPriceLabel: D,
1157
- discountPillLabel: Y,
1157
+ discountPillLabel: G,
1158
1158
  analytics: J,
1159
1159
  onProceedGuidance: re,
1160
1160
  onLocaleChange: q,
1161
1161
  imageComponent: M = De,
1162
1162
  children: se
1163
1163
  }) => {
1164
- const [Q, G] = W("landing"), [T, F] = W(t ?? "en"), [X, te] = W(ot), ge = K(!0);
1165
- H(() => {
1164
+ const [Q, W] = K("landing"), [T, F] = K(t ?? "en"), [X, te] = K(ot), ge = H(!0);
1165
+ Y(() => {
1166
1166
  const ie = at();
1167
1167
  ie && F(ie);
1168
- }, []), H(() => {
1168
+ }, []), Y(() => {
1169
1169
  nt(T);
1170
- }, [T]), H(() => {
1170
+ }, [T]), Y(() => {
1171
1171
  if (ge.current) {
1172
1172
  ge.current = !1;
1173
1173
  return;
@@ -1190,15 +1190,15 @@ const Ke = cr(null), ot = {
1190
1190
  universityLogoUrls: N,
1191
1191
  sampleReportHref: p,
1192
1192
  onViewSampleReport: I,
1193
- ctaHref: h,
1193
+ ctaHref: g,
1194
1194
  onCtaClick: B,
1195
1195
  onBack: C,
1196
1196
  readMoreReviewsHref: b,
1197
- onProceed: g,
1197
+ onProceed: h,
1198
1198
  proceedHref: U,
1199
1199
  originalPriceLabel: w,
1200
1200
  discountedPriceLabel: D,
1201
- discountPillLabel: Y,
1201
+ discountPillLabel: G,
1202
1202
  analytics: J,
1203
1203
  onProceedGuidance: re,
1204
1204
  onLocaleChange: q,
@@ -1219,24 +1219,24 @@ const Ke = cr(null), ot = {
1219
1219
  N,
1220
1220
  p,
1221
1221
  I,
1222
- h,
1222
+ g,
1223
1223
  B,
1224
1224
  C,
1225
1225
  b,
1226
- g,
1226
+ h,
1227
1227
  U,
1228
1228
  w,
1229
1229
  D,
1230
- Y,
1230
+ G,
1231
1231
  J,
1232
1232
  re,
1233
1233
  q,
1234
1234
  M
1235
1235
  ]
1236
1236
  ), oe = Te(() => {
1237
- G("form");
1237
+ W("form");
1238
1238
  }, [V.analytics]), ce = Te(() => {
1239
- G("landing"), V.onBack?.();
1239
+ W("landing"), V.onBack?.();
1240
1240
  }, [V.onBack]), ae = Ue(
1241
1241
  () => ({
1242
1242
  view: Q,
@@ -1342,8 +1342,8 @@ const it = "_header_19172_1", lt = "_centered_19172_8", lr = {
1342
1342
  restrictCountry: t?.restrictCountry
1343
1343
  };
1344
1344
  }, ca = (t) => {
1345
- const { searchLocalities: o, restrictCountry: d } = t, [m, k] = W([]), [S, x] = W(!1), [j, A] = W(null), E = K(0);
1346
- H(() => {
1345
+ const { searchLocalities: o, restrictCountry: d } = t, [m, k] = K([]), [S, x] = K(!1), [j, A] = K(null), E = H(0);
1346
+ Y(() => {
1347
1347
  A(null);
1348
1348
  }, [o]);
1349
1349
  const c = Te(
@@ -1355,7 +1355,7 @@ const it = "_header_19172_1", lt = "_centered_19172_8", lr = {
1355
1355
  const I = ++E.current;
1356
1356
  x(!0), A(null);
1357
1357
  try {
1358
- const h = sa({ restrictCountry: d }), B = await o(p, h);
1358
+ const g = sa({ restrictCountry: d }), B = await o(p, g);
1359
1359
  if (I !== E.current) return;
1360
1360
  const C = (B || []).filter(
1361
1361
  (b) => !!b?.id && !!b?.description && sr(b?.lat) && sr(b?.lng)
@@ -1367,9 +1367,9 @@ const it = "_header_19172_1", lt = "_centered_19172_8", lr = {
1367
1367
  lng: b.lng
1368
1368
  }));
1369
1369
  k(C);
1370
- } catch (h) {
1370
+ } catch (g) {
1371
1371
  if (I !== E.current) return;
1372
- k([]), A(h?.message || "Failed to fetch locations");
1372
+ k([]), A(g?.message || "Failed to fetch locations");
1373
1373
  } finally {
1374
1374
  I === E.current && x(!1);
1375
1375
  }
@@ -1471,7 +1471,7 @@ const da = ({
1471
1471
  atlasSearchLocalities: j,
1472
1472
  className: A = ""
1473
1473
  }) => {
1474
- const E = Re(), c = E?.config?.analytics ?? x, N = E?.config.isGlobal ?? !0, p = E?.config?.atlasSearchLocalities, [I, h] = W(!1), [B, C] = W(""), b = K(null), g = K(null), U = K({}), w = (n) => d({ ...o, ...n }), D = (n, s) => {
1474
+ const E = Re(), c = E?.config?.analytics ?? x, N = E?.config.isGlobal ?? !0, p = E?.config?.atlasSearchLocalities, [I, g] = K(!1), [B, C] = K(""), b = H(null), h = H(null), U = H({}), w = (n) => d({ ...o, ...n }), D = (n, s) => {
1475
1475
  s.trim() && !U.current[n] && (U.current[n] = !0, {
1476
1476
  fullName: () => c?.trackNameSectionFilled?.(),
1477
1477
  phone: () => c?.trackPhoneSectionFilled?.(),
@@ -1480,9 +1480,9 @@ const da = ({
1480
1480
  birthTime: () => c?.trackTimeFilled?.(),
1481
1481
  birthPlace: () => c?.trackPlaceOfBirthChosen?.()
1482
1482
  }[n]?.());
1483
- }, Y = (n) => n.replace(/\D/g, "").slice(0, 10), J = B.trim().toLowerCase(), re = pr.filter((n) => J ? n.country.toLowerCase().includes(J) || n.code.includes(J) : !0), q = K(null);
1484
- K(null);
1485
- const M = K(null), se = K(0), Q = K(null), [G, T] = W(!1), [F, X] = W({ hour12: 12, minute: "00", meridiem: "AM" }), te = (n) => String(n).padStart(2, "0"), ge = (n) => {
1483
+ }, G = (n) => n.replace(/\D/g, "").slice(0, 10), J = B.trim().toLowerCase(), re = pr.filter((n) => J ? n.country.toLowerCase().includes(J) || n.code.includes(J) : !0), q = H(null);
1484
+ H(null);
1485
+ const M = H(null), se = H(0), Q = H(null), [W, T] = K(!1), [F, X] = K({ hour12: 12, minute: "00", meridiem: "AM" }), te = (n) => String(n).padStart(2, "0"), ge = (n) => {
1486
1486
  const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
1487
1487
  if (!s) return n;
1488
1488
  const L = Number(s[1]), me = s[2], Se = L >= 12 ? "PM" : "AM";
@@ -1496,7 +1496,7 @@ const da = ({
1496
1496
  const s = Math.min(12, Math.max(1, n.hour12)), L = /^([0-5]\d)$/.test(n.minute) ? n.minute : "00";
1497
1497
  let me = s % 12;
1498
1498
  return n.meridiem === "PM" && (me += 12), `${te(me)}:${L}`;
1499
- }, ce = K(null), [ae, ie] = W(!1), [fe, ne] = W(
1499
+ }, ce = H(null), [ae, ie] = K(!1), [fe, ne] = K(
1500
1500
  null
1501
1501
  ), de = (o.birthPlace ?? "").trim(), _e = N ? void 0 : "in", z = j ?? p, ye = Number.isFinite(o.birthPlaceLat) && Number.isFinite(o.birthPlaceLng), ue = de.length > 0 && !ye && !ae, {
1502
1502
  predictions: we,
@@ -1508,23 +1508,23 @@ const da = ({
1508
1508
  searchLocalities: z,
1509
1509
  restrictCountry: _e
1510
1510
  });
1511
- H(() => {
1511
+ Y(() => {
1512
1512
  const n = (s) => {
1513
1513
  ce.current && (ce.current.contains(s.target) || ie(!1));
1514
1514
  };
1515
1515
  return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
1516
- }, []), H(() => {
1516
+ }, []), Y(() => {
1517
1517
  const n = (s) => {
1518
- b.current && (b.current.contains(s.target) || (h(!1), C("")));
1518
+ b.current && (b.current.contains(s.target) || (g(!1), C("")));
1519
1519
  };
1520
1520
  return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
1521
- }, []), H(() => {
1521
+ }, []), Y(() => {
1522
1522
  if (!I) return;
1523
1523
  const n = window.setTimeout(() => {
1524
- g.current?.focus();
1524
+ h.current?.focus();
1525
1525
  }, 0);
1526
1526
  return () => window.clearTimeout(n);
1527
- }, [I]), H(() => {
1527
+ }, [I]), Y(() => {
1528
1528
  if (!ae) return;
1529
1529
  if (de.length < 2) {
1530
1530
  y();
@@ -1549,12 +1549,12 @@ const da = ({
1549
1549
  s.focus(), M.current = s, se.current = Date.now();
1550
1550
  }
1551
1551
  };
1552
- return H(() => {
1552
+ return Y(() => {
1553
1553
  const n = (s) => {
1554
1554
  Q.current && (Q.current.contains(s.target) || T(!1));
1555
1555
  };
1556
1556
  return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
1557
- }, []), H(() => {
1557
+ }, []), Y(() => {
1558
1558
  const n = (L) => {
1559
1559
  L.target?.closest?.("[data-info-tooltip]") == null && ne(null);
1560
1560
  }, s = (L) => {
@@ -1606,7 +1606,7 @@ const da = ({
1606
1606
  "aria-haspopup": "listbox",
1607
1607
  "aria-expanded": I,
1608
1608
  onClick: () => {
1609
- h((n) => !n), C("");
1609
+ g((n) => !n), C("");
1610
1610
  },
1611
1611
  children: m
1612
1612
  }
@@ -1621,7 +1621,7 @@ const da = ({
1621
1621
  onFocus: () => c?.trackPhoneSectionClicked?.(),
1622
1622
  onChange: (n) => {
1623
1623
  const s = n.target.value;
1624
- w({ phone: Y(s) }), D("phone", Y(s));
1624
+ w({ phone: G(s) }), D("phone", G(s));
1625
1625
  },
1626
1626
  placeholder: t("formPhonePlaceholder"),
1627
1627
  autoComplete: "tel",
@@ -1643,7 +1643,7 @@ const da = ({
1643
1643
  /* @__PURE__ */ r.jsx("div", { className: a.isdSearchWrap, children: /* @__PURE__ */ r.jsx(
1644
1644
  "input",
1645
1645
  {
1646
- ref: g,
1646
+ ref: h,
1647
1647
  type: "text",
1648
1648
  value: B,
1649
1649
  onChange: (n) => C(n.target.value),
@@ -1660,7 +1660,7 @@ const da = ({
1660
1660
  "aria-selected": n.code === m,
1661
1661
  className: `${a.isdOption} ${n.code === m ? a.isdOptionActive : ""}`,
1662
1662
  onClick: () => {
1663
- k(n.code), h(!1), C("");
1663
+ k(n.code), g(!1), C("");
1664
1664
  },
1665
1665
  children: [
1666
1666
  /* @__PURE__ */ r.jsx("span", { className: a.isdCountryName, children: n.country }),
@@ -1901,7 +1901,7 @@ const da = ({
1901
1901
  )
1902
1902
  }
1903
1903
  ),
1904
- G && !o.birthTimeUnknown && /* @__PURE__ */ r.jsxs(
1904
+ W && !o.birthTimeUnknown && /* @__PURE__ */ r.jsxs(
1905
1905
  "div",
1906
1906
  {
1907
1907
  className: a.timePopover,
@@ -2337,14 +2337,14 @@ const da = ({
2337
2337
  discountedPriceLabel: N,
2338
2338
  showPlanSheet: p,
2339
2339
  confirmPlan: I,
2340
- planSheetOpen: h,
2340
+ planSheetOpen: g,
2341
2341
  selectedPlan: B
2342
2342
  }) => {
2343
- const C = Re(), b = C?.config.isGlobal ?? !0, g = C?.config?.variant, [U, w] = W(!1), D = Ue(
2343
+ const C = Re(), b = C?.config.isGlobal ?? !0, h = C?.config?.variant, [U, w] = K(!1), D = Ue(
2344
2344
  () => wa(o, b, k),
2345
2345
  [o, b, k]
2346
- ), Y = D === null, J = g === "v1" && C?.config?.showSheet;
2347
- H(() => {
2346
+ ), G = D === null, J = h === "v1" && C?.config?.showSheet;
2347
+ Y(() => {
2348
2348
  if (!U) return;
2349
2349
  const Q = window.setTimeout(() => {
2350
2350
  w(!1);
@@ -2352,31 +2352,31 @@ const da = ({
2352
2352
  return () => window.clearTimeout(Q);
2353
2353
  }, [U]);
2354
2354
  const re = b ? N ?? t("formDiscountedPrice") : J ? "" : "₹499", q = C?.config.imageComponent ?? De, M = (Q) => {
2355
- if (Q.preventDefault(), g === "v1" && !Y && E?.trackKundliDetailedClicked?.(), !Y) {
2355
+ if (Q.preventDefault(), console.log("Proceed button clicked with values:", h, G, h === "v1" && !G), h === "v1" && !G && E?.trackKundliDetailedClicked?.(), !G) {
2356
2356
  D && (S?.(
2357
2357
  D === "birthPlaceCoordinates" ? "birthPlace" : D
2358
2358
  ), D === "birthPlaceCoordinates" && w(!0));
2359
2359
  return;
2360
2360
  }
2361
- const G = !!j && g === "v1" && B?.id === hr, T = (o.phone ?? "").trim(), F = {
2361
+ const W = !!j && h === "v1" && B?.id === hr, T = (o.phone ?? "").trim(), F = {
2362
2362
  ...o,
2363
2363
  phone: T && `${d}-${T}`
2364
2364
  };
2365
2365
  if (J) {
2366
- h ? I?.() : p?.(F);
2366
+ g ? I?.() : p?.(F);
2367
2367
  return;
2368
2368
  }
2369
- E?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), G ? j(F) : x?.(F);
2369
+ E?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), W ? j(F) : x?.(F);
2370
2370
  }, se = /* @__PURE__ */ r.jsx(
2371
2371
  Fr,
2372
2372
  {
2373
2373
  href: A,
2374
- disabled: g === "v1" ? !1 : !Y,
2374
+ disabled: h === "v1" ? !1 : !G,
2375
2375
  onClick: M,
2376
2376
  "aria-label": t("formPriceAria"),
2377
- className: g === "v1" && Y ? Ne.ctaFilled : g === "v1" ? Ne.ctaButton : void 0,
2378
- children: g === "v1" ? Y ? /* @__PURE__ */ r.jsxs("span", { className: Ne.ctaFilledContent, children: [
2379
- J ? t("selectPackage") : h && B ? `${t("proceedWithPlan")}${B.price}` : `${t("formProceed")} ${re}`,
2377
+ className: h === "v1" && G ? Ne.ctaFilled : h === "v1" ? Ne.ctaButton : void 0,
2378
+ children: h === "v1" ? G ? /* @__PURE__ */ r.jsxs("span", { className: Ne.ctaFilledContent, children: [
2379
+ J ? t("selectPackage") : g && B ? `${t("proceedWithPlan")}${B.price}` : `${t("formProceed")} ${re}`,
2380
2380
  /* @__PURE__ */ r.jsx(
2381
2381
  q,
2382
2382
  {
@@ -2639,21 +2639,21 @@ const da = ({
2639
2639
  t: x,
2640
2640
  analytics: j
2641
2641
  }) => {
2642
- const E = Re()?.config.isGlobal ?? !0, c = k ?? Pn(E), N = d?.id || c.find((C) => C.badge)?.id || c[0]?.id || "", p = K(null), I = K(null), h = K(!1);
2643
- H(() => {
2642
+ const E = Re()?.config.isGlobal ?? !0, c = k ?? Pn(E), N = d?.id || c.find((C) => C.badge)?.id || c[0]?.id || "", p = H(null), I = H(null), g = H(!1);
2643
+ Y(() => {
2644
2644
  if (t) {
2645
2645
  if (!d) {
2646
2646
  const C = c.find((b) => b.badge) ?? c[0];
2647
2647
  C && m(C);
2648
2648
  }
2649
- h.current || (j?.trackPlanPageViewed?.(), h.current = !0);
2649
+ g.current || (j?.trackPlanPageViewed?.(), g.current = !0);
2650
2650
  } else
2651
- h.current = !1;
2651
+ g.current = !1;
2652
2652
  }, [t, c, d, m, j]);
2653
2653
  const B = () => {
2654
2654
  j?.trackPlanPageClosed?.(), o();
2655
2655
  };
2656
- return H(() => {
2656
+ return Y(() => {
2657
2657
  if (!t) return;
2658
2658
  const C = document.body.style.overflow;
2659
2659
  return document.body.style.overflow = "hidden", () => {
@@ -2693,11 +2693,11 @@ const da = ({
2693
2693
  isSelected: C.id === N,
2694
2694
  t: x,
2695
2695
  onSelect: (b) => {
2696
- const g = c.find((U) => U.id === b);
2697
- g && (j?.trackPlanSelected?.({
2698
- planId: g.id,
2699
- planName: g.title
2700
- }), m(g));
2696
+ const h = c.find((U) => U.id === b);
2697
+ h && (j?.trackPlanSelected?.({
2698
+ planId: h.id,
2699
+ planName: h.title
2700
+ }), m(h));
2701
2701
  }
2702
2702
  },
2703
2703
  C.id
@@ -2749,39 +2749,39 @@ const da = ({
2749
2749
  atlasSearchLocalities: c,
2750
2750
  analytics: N
2751
2751
  }) => {
2752
- const p = Re(), I = Kr(), h = p !== null, B = h ? p.locale : o, C = B ?? I?.locale ?? "en", [b, g] = W(C), U = h ? p.locale : b, w = h ? p.setLocale : g, [D, Y] = W(!1), J = K(null), re = K(B), q = K(
2752
+ const p = Re(), I = Kr(), g = p !== null, B = g ? p.locale : o, C = B ?? I?.locale ?? "en", [b, h] = K(C), U = g ? p.locale : b, w = g ? p.setLocale : h, [D, G] = K(!1), J = H(null), re = H(B), q = H(
2753
2753
  I?.locale
2754
2754
  );
2755
- H(() => {
2755
+ Y(() => {
2756
2756
  window.scrollTo({ top: 0, left: 0, behavior: "auto" });
2757
2757
  }, []);
2758
2758
  const M = (y) => jn(U, y);
2759
- H(() => {
2759
+ Y(() => {
2760
2760
  B && re.current !== B && w(B), re.current = B;
2761
- }, [B, w]), H(() => {
2761
+ }, [B, w]), Y(() => {
2762
2762
  if (B) return;
2763
2763
  const y = I?.locale;
2764
2764
  y && q.current !== y && w(y), q.current = y;
2765
2765
  }, [I?.locale, B, w]);
2766
- const [se, Q] = W({
2766
+ const [se, Q] = K({
2767
2767
  ...Nn,
2768
2768
  ...k,
2769
2769
  phone: k?.phone ?? ""
2770
- }), G = h ? p?.config.isGlobal ?? !0 : !0, [T, F] = W(
2771
- G ? "+1" : "+91"
2770
+ }), W = g ? p?.config.isGlobal ?? !0 : !0, [T, F] = K(
2771
+ W ? "+1" : "+91"
2772
2772
  );
2773
- H(() => {
2774
- F(G ? "+1" : "+91");
2775
- }, [G]);
2776
- const X = h ? p.formValues : se, te = h ? p.setFormValues : Q, ge = h ? p.goToPage : m, V = h ? p.onProceed : S, oe = h ? p.onProceedGuidance : x, ce = h ? p.config.proceedHref : j, ae = h ? p.config.originalPriceLabel : A, ie = h ? p.config.discountedPriceLabel : E, fe = h ? p.config.showLanguageSelector ?? !0 : d, ne = (h ? p?.config?.analytics : N) ?? N;
2777
- H(() => {
2773
+ Y(() => {
2774
+ F(W ? "+1" : "+91");
2775
+ }, [W]);
2776
+ const X = g ? p.formValues : se, te = g ? p.setFormValues : Q, ge = g ? p.goToPage : m, V = g ? p.onProceed : S, oe = g ? p.onProceedGuidance : x, ce = g ? p.config.proceedHref : j, ae = g ? p.config.originalPriceLabel : A, ie = g ? p.config.discountedPriceLabel : E, fe = g ? p.config.showLanguageSelector ?? !0 : d, ne = (g ? p?.config?.analytics : N) ?? N;
2777
+ Y(() => {
2778
2778
  if (!D) return;
2779
2779
  const y = (pe) => {
2780
- J.current && !J.current.contains(pe.target) && Y(!1);
2780
+ J.current && !J.current.contains(pe.target) && G(!1);
2781
2781
  };
2782
2782
  return document.addEventListener("mousedown", y), () => document.removeEventListener("mousedown", y);
2783
2783
  }, [D]);
2784
- const [de, _e] = W(!1), [z, ye] = W(null), ue = K(null), we = Te((y) => {
2784
+ const [de, _e] = K(!1), [z, ye] = K(null), ue = H(null), we = Te((y) => {
2785
2785
  ue.current = y, _e(!0);
2786
2786
  }, []), be = Te(() => {
2787
2787
  if (ne?.trackPlanProceedClicked?.({
@@ -2797,7 +2797,7 @@ const da = ({
2797
2797
  type: "button",
2798
2798
  className: he.langTrigger,
2799
2799
  onClick: () => {
2800
- ne?.trackLanguageClickedFe?.({ language: U }), Y((y) => !y);
2800
+ ne?.trackLanguageClickedFe?.({ language: U }), G((y) => !y);
2801
2801
  },
2802
2802
  "aria-expanded": D,
2803
2803
  "aria-haspopup": "listbox",
@@ -2834,7 +2834,7 @@ const da = ({
2834
2834
  "aria-selected": y === U,
2835
2835
  className: he.langOption,
2836
2836
  onClick: () => {
2837
- ne?.trackLanguageChangedFe?.({ newLanguage: y }), w(y), Y(!1);
2837
+ ne?.trackLanguageChangedFe?.({ newLanguage: y }), w(y), G(!1);
2838
2838
  },
2839
2839
  children: ir[y]
2840
2840
  },
@@ -2848,7 +2848,7 @@ const da = ({
2848
2848
  Aa,
2849
2849
  {
2850
2850
  t: M,
2851
- logoUrl: h ? p.config.logoUrl : void 0,
2851
+ logoUrl: g ? p.config.logoUrl : void 0,
2852
2852
  languageSelector: Pe,
2853
2853
  className: he.kundliHeaderNoBorder
2854
2854
  }
@@ -2968,4 +2968,4 @@ export {
2968
2968
  ur as t,
2969
2969
  Kr as u
2970
2970
  };
2971
- //# sourceMappingURL=analytics-CSkzpTAZ.js.map
2971
+ //# sourceMappingURL=analytics-DwdBIhfn.js.map