@srimandir/kundli-generator 5.8.0 → 5.10.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 W, 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;
@@ -6,12 +6,12 @@ function Ur() {
6
6
  if (ar) return Ie;
7
7
  ar = 1;
8
8
  var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), d = /* @__PURE__ */ Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, k = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
9
- function x(j, A, B) {
10
- var c, N = {}, p = null, E = null;
11
- B !== void 0 && (p = "" + B), A.key !== void 0 && (p = "" + A.key), A.ref !== void 0 && (E = A.ref);
9
+ function x(j, A, E) {
10
+ var c, N = {}, p = null, I = null;
11
+ E !== void 0 && (p = "" + E), A.key !== void 0 && (p = "" + A.key), A.ref !== void 0 && (I = A.ref);
12
12
  for (c in A) m.call(A, c) && !S.hasOwnProperty(c) && (N[c] = A[c]);
13
13
  if (j && j.defaultProps) for (c in A = j.defaultProps, A) N[c] === void 0 && (N[c] = A[c]);
14
- return { $$typeof: o, type: j, key: p, ref: E, props: N, _owner: k.current };
14
+ return { $$typeof: o, type: j, key: p, ref: I, props: N, _owner: k.current };
15
15
  }
16
16
  return Ie.Fragment = d, Ie.jsx = x, Ie.jsxs = x, Ie;
17
17
  }
@@ -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"), B = /* @__PURE__ */ Symbol.for("react.suspense"), c = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), E = /* @__PURE__ */ Symbol.for("react.offscreen"), h = Symbol.iterator, I = "@@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"), h = 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[I];
26
+ var i = h && e[h] || 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 _(e) {
30
+ function g(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,14 +44,14 @@ 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, z = !1, J = !1, re = !1, Y;
48
- Y = /* @__PURE__ */ Symbol.for("react.module.reference");
47
+ var w = !1, D = !1, K = !1, J = !1, re = !1, q;
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 === B || e === c || J || e === E || w || D || z || 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 || K || 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.
54
- e.$$typeof === Y || e.getModuleId !== void 0));
54
+ e.$$typeof === q || e.getModuleId !== void 0));
55
55
  }
56
56
  function se(e, i, l) {
57
57
  var u = e.displayName;
@@ -66,7 +66,7 @@ function Gr() {
66
66
  function G(e) {
67
67
  if (e == null)
68
68
  return null;
69
- if (typeof e.tag == "number" && _("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" && g("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;
@@ -79,7 +79,7 @@ function Gr() {
79
79
  return "Profiler";
80
80
  case k:
81
81
  return "StrictMode";
82
- case B:
82
+ case E:
83
83
  return "Suspense";
84
84
  case c:
85
85
  return "SuspenseList";
@@ -108,14 +108,14 @@ function Gr() {
108
108
  }
109
109
  return null;
110
110
  }
111
- var T = Object.assign, F = 0, X, te, ge, q, oe, ce, ae;
111
+ var T = Object.assign, F = 0, X, te, ge, V, oe, ce, ae;
112
112
  function ie() {
113
113
  }
114
114
  ie.__reactDisabledLog = !0;
115
115
  function fe() {
116
116
  {
117
117
  if (F === 0) {
118
- X = console.log, te = console.info, ge = console.warn, q = console.error, oe = console.group, ce = console.groupCollapsed, ae = console.groupEnd;
118
+ X = console.log, te = console.info, ge = console.warn, V = console.error, oe = console.group, ce = console.groupCollapsed, ae = console.groupEnd;
119
119
  var e = {
120
120
  configurable: !0,
121
121
  enumerable: !0,
@@ -154,7 +154,7 @@ function Gr() {
154
154
  value: ge
155
155
  }),
156
156
  error: T({}, e, {
157
- value: q
157
+ value: V
158
158
  }),
159
159
  group: T({}, e, {
160
160
  value: oe
@@ -167,11 +167,11 @@ function Gr() {
167
167
  })
168
168
  });
169
169
  }
170
- F < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
170
+ F < 0 && g("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;
174
- function V(e, i, l) {
174
+ function z(e, i, l) {
175
175
  {
176
176
  if (_e === void 0)
177
177
  try {
@@ -237,17 +237,17 @@ function Gr() {
237
237
  }
238
238
  } catch (ee) {
239
239
  if (ee && u && typeof ee.stack == "string") {
240
- for (var g = ee.stack.split(`
240
+ for (var _ = ee.stack.split(`
241
241
  `), Z = u.stack.split(`
242
- `), O = g.length - 1, $ = Z.length - 1; O >= 1 && $ >= 0 && g[O] !== Z[$]; )
242
+ `), O = _.length - 1, $ = Z.length - 1; O >= 1 && $ >= 0 && _[O] !== Z[$]; )
243
243
  $--;
244
244
  for (; O >= 1 && $ >= 0; O--, $--)
245
- if (g[O] !== Z[$]) {
245
+ if (_[O] !== Z[$]) {
246
246
  if (O !== 1 || $ !== 1)
247
247
  do
248
- if (O--, $--, $ < 0 || g[O] !== Z[$]) {
248
+ if (O--, $--, $ < 0 || _[O] !== Z[$]) {
249
249
  var le = `
250
- ` + g[O].replace(" at new ", " at ");
250
+ ` + _[O].replace(" at new ", " at ");
251
251
  return e.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", e.displayName)), typeof e == "function" && ue.set(e, le), le;
252
252
  }
253
253
  while (O >= 1 && $ >= 0);
@@ -257,7 +257,7 @@ function Gr() {
257
257
  } finally {
258
258
  ye = !1, de.current = R, ne(), Error.prepareStackTrace = P;
259
259
  }
260
- var Ce = e ? e.displayName || e.name : "", ve = Ce ? V(Ce) : "";
260
+ var Ce = e ? e.displayName || e.name : "", ve = Ce ? z(Ce) : "";
261
261
  return typeof e == "function" && ue.set(e, ve), ve;
262
262
  }
263
263
  function xe(e, i, l) {
@@ -273,12 +273,12 @@ function Gr() {
273
273
  if (typeof e == "function")
274
274
  return be(e, Pe(e));
275
275
  if (typeof e == "string")
276
- return V(e);
276
+ return z(e);
277
277
  switch (e) {
278
- case B:
279
- return V("Suspense");
278
+ case E:
279
+ return z("Suspense");
280
280
  case c:
281
- return V("SuspenseList");
281
+ return z("SuspenseList");
282
282
  }
283
283
  if (typeof e == "object")
284
284
  switch (e.$$typeof) {
@@ -309,17 +309,17 @@ function Gr() {
309
309
  var R = Function.call.bind(pe);
310
310
  for (var v in e)
311
311
  if (R(e, v)) {
312
- var g = void 0;
312
+ var _ = void 0;
313
313
  try {
314
314
  if (typeof e[v] != "function") {
315
315
  var Z = Error((u || "React class") + ": " + l + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
316
316
  throw Z.name = "Invariant Violation", Z;
317
317
  }
318
- g = e[v](i, v, u, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
318
+ _ = e[v](i, v, u, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
319
319
  } catch (O) {
320
- g = O;
320
+ _ = O;
321
321
  }
322
- g && !(g instanceof Error) && (L(P), _("%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 g), L(null)), g instanceof Error && !(g.message in n) && (n[g.message] = !0, L(P), _("Failed %s type: %s", l, g.message), L(null));
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));
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 _("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 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);
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, _("%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, 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));
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, _("%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, 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));
390
390
  };
391
391
  l.isReactWarning = !0, Object.defineProperty(e, "ref", {
392
392
  get: l,
@@ -395,7 +395,7 @@ function Gr() {
395
395
  }
396
396
  }
397
397
  var Pr = function(e, i, l, u, P, R, v) {
398
- var g = {
398
+ var _ = {
399
399
  // This tag allows us to uniquely identify this as a React Element
400
400
  $$typeof: o,
401
401
  // Built-in properties that belong on the element
@@ -406,27 +406,27 @@ function Gr() {
406
406
  // Record the component responsible for creating this element.
407
407
  _owner: R
408
408
  };
409
- return g._store = {}, Object.defineProperty(g._store, "validated", {
409
+ return _._store = {}, Object.defineProperty(_._store, "validated", {
410
410
  configurable: !1,
411
411
  enumerable: !1,
412
412
  writable: !0,
413
413
  value: !1
414
- }), Object.defineProperty(g, "_self", {
414
+ }), Object.defineProperty(_, "_self", {
415
415
  configurable: !1,
416
416
  enumerable: !1,
417
417
  writable: !1,
418
418
  value: u
419
- }), Object.defineProperty(g, "_source", {
419
+ }), Object.defineProperty(_, "_source", {
420
420
  configurable: !1,
421
421
  enumerable: !1,
422
422
  writable: !1,
423
423
  value: P
424
- }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
424
+ }), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
425
425
  };
426
426
  function Ar(e, i, l, u, P) {
427
427
  {
428
- var R, v = {}, g = null, Z = null;
429
- l !== void 0 && (Ye(l), g = "" + l), vr(i) && (Ye(i.key), g = "" + i.key), yr(i) && (Z = i.ref, kr(i, P));
428
+ var R, v = {}, _ = null, Z = null;
429
+ l !== void 0 && (Ye(l), _ = "" + l), vr(i) && (Ye(i.key), _ = "" + i.key), yr(i) && (Z = i.ref, kr(i, P));
430
430
  for (R in i)
431
431
  pe.call(i, R) && !br.hasOwnProperty(R) && (v[R] = i[R]);
432
432
  if (e && e.defaultProps) {
@@ -434,11 +434,11 @@ function Gr() {
434
434
  for (R in O)
435
435
  v[R] === void 0 && (v[R] = O[R]);
436
436
  }
437
- if (g || Z) {
437
+ if (_ || Z) {
438
438
  var $ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
439
- g && wr(v, $), Z && xr(v, $);
439
+ _ && wr(v, $), Z && xr(v, $);
440
440
  }
441
- return Pr(e, g, Z, P, u, qe.current, v);
441
+ return Pr(e, _, Z, P, u, qe.current, v);
442
442
  }
443
443
  }
444
444
  var Fe = b.ReactCurrentOwner, Je = b.ReactDebugCurrentFrame;
@@ -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), _('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 " + 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);
496
496
  }
497
497
  }
498
498
  function er(e, i) {
@@ -534,9 +534,9 @@ Check the top-level render call using <` + l + ">.");
534
534
  } else if (i.PropTypes !== void 0 && !Oe) {
535
535
  Oe = !0;
536
536
  var P = G(i);
537
- _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
537
+ g("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 && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
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.");
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), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), Ae(null);
547
+ Ae(e), g("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), _("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
551
+ e.ref !== null && (Ae(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
552
552
  }
553
553
  }
554
554
  var rr = {};
@@ -556,12 +556,12 @@ Check the top-level render call using <` + l + ">.");
556
556
  {
557
557
  var v = M(e);
558
558
  if (!v) {
559
- var g = "";
560
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
559
+ var _ = "";
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 Z = Cr();
562
- Z ? g += Z : g += Qe();
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") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : O = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, g);
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, _);
565
565
  }
566
566
  var $ = Ar(e, i, l, P, R);
567
567
  if ($ == null)
@@ -575,7 +575,7 @@ 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
- _("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
+ 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.");
579
579
  else
580
580
  er(le, e);
581
581
  }
@@ -585,7 +585,7 @@ Check the top-level render call using <` + l + ">.");
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
- _(`A props object containing a "key" prop is being spread into JSX:
588
+ g(`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:
@@ -1141,40 +1141,40 @@ const Ke = cr(null), ot = {
1141
1141
  atlasSearchLocalities: x,
1142
1142
  logoUrl: j,
1143
1143
  reportImageUrl: A,
1144
- reportImagePriority: B,
1144
+ reportImagePriority: E,
1145
1145
  backgroundImagePriority: c,
1146
1146
  universityLogoUrls: N,
1147
1147
  sampleReportHref: p,
1148
- onViewSampleReport: E,
1148
+ onViewSampleReport: I,
1149
1149
  ctaHref: h,
1150
- onCtaClick: I,
1150
+ onCtaClick: B,
1151
1151
  onBack: C,
1152
1152
  readMoreReviewsHref: b,
1153
- onProceed: _,
1153
+ onProceed: g,
1154
1154
  proceedHref: U,
1155
1155
  originalPriceLabel: w,
1156
1156
  discountedPriceLabel: D,
1157
- discountPillLabel: z,
1157
+ discountPillLabel: K,
1158
1158
  analytics: J,
1159
1159
  onProceedGuidance: re,
1160
- onLocaleChange: Y,
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, G] = W("landing"), [T, F] = W(t ?? "en"), [X, te] = W(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;
1174
1174
  }
1175
- Y?.(T);
1176
- }, [T, Y]);
1177
- const q = Ue(
1175
+ q?.(T);
1176
+ }, [T, q]);
1177
+ const V = Ue(
1178
1178
  () => ({
1179
1179
  locale: t,
1180
1180
  showLanguageSelector: o,
@@ -1185,23 +1185,23 @@ const Ke = cr(null), ot = {
1185
1185
  atlasSearchLocalities: x,
1186
1186
  logoUrl: j,
1187
1187
  reportImageUrl: A,
1188
- reportImagePriority: B,
1188
+ reportImagePriority: E,
1189
1189
  backgroundImagePriority: c,
1190
1190
  universityLogoUrls: N,
1191
1191
  sampleReportHref: p,
1192
- onViewSampleReport: E,
1192
+ onViewSampleReport: I,
1193
1193
  ctaHref: h,
1194
- onCtaClick: I,
1194
+ onCtaClick: B,
1195
1195
  onBack: C,
1196
1196
  readMoreReviewsHref: b,
1197
- onProceed: _,
1197
+ onProceed: g,
1198
1198
  proceedHref: U,
1199
1199
  originalPriceLabel: w,
1200
1200
  discountedPriceLabel: D,
1201
- discountPillLabel: z,
1201
+ discountPillLabel: K,
1202
1202
  analytics: J,
1203
1203
  onProceedGuidance: re,
1204
- onLocaleChange: Y,
1204
+ onLocaleChange: q,
1205
1205
  imageComponent: M
1206
1206
  }),
1207
1207
  [
@@ -1214,43 +1214,43 @@ const Ke = cr(null), ot = {
1214
1214
  x,
1215
1215
  j,
1216
1216
  A,
1217
- B,
1217
+ E,
1218
1218
  c,
1219
1219
  N,
1220
1220
  p,
1221
- E,
1222
- h,
1223
1221
  I,
1222
+ h,
1223
+ B,
1224
1224
  C,
1225
1225
  b,
1226
- _,
1226
+ g,
1227
1227
  U,
1228
1228
  w,
1229
1229
  D,
1230
- z,
1230
+ K,
1231
1231
  J,
1232
1232
  re,
1233
- Y,
1233
+ q,
1234
1234
  M
1235
1235
  ]
1236
1236
  ), oe = Te(() => {
1237
1237
  G("form");
1238
- }, [q.analytics]), ce = Te(() => {
1239
- G("landing"), q.onBack?.();
1240
- }, [q.onBack]), ae = Ue(
1238
+ }, [V.analytics]), ce = Te(() => {
1239
+ G("landing"), V.onBack?.();
1240
+ }, [V.onBack]), ae = Ue(
1241
1241
  () => ({
1242
1242
  view: Q,
1243
1243
  locale: T,
1244
1244
  setLocale: F,
1245
- config: q,
1245
+ config: V,
1246
1246
  formValues: X,
1247
1247
  setFormValues: te,
1248
1248
  goToForm: oe,
1249
1249
  goToPage: ce,
1250
- onProceed: q.onProceed,
1251
- onProceedGuidance: q.onProceedGuidance
1250
+ onProceed: V.onProceed,
1251
+ onProceedGuidance: V.onProceedGuidance
1252
1252
  }),
1253
- [Q, T, q, X, oe, ce]
1253
+ [Q, T, V, X, oe, ce]
1254
1254
  );
1255
1255
  return /* @__PURE__ */ r.jsx(Ke.Provider, { value: ae, children: se });
1256
1256
  };
@@ -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), B = K(0);
1346
- H(() => {
1345
+ const { searchLocalities: o, restrictCountry: d } = t, [m, k] = W([]), [S, x] = W(!1), [j, A] = W(null), E = H(0);
1346
+ Y(() => {
1347
1347
  A(null);
1348
1348
  }, [o]);
1349
1349
  const c = Te(
@@ -1352,12 +1352,12 @@ const it = "_header_19172_1", lt = "_centered_19172_8", lr = {
1352
1352
  k([]);
1353
1353
  return;
1354
1354
  }
1355
- const E = ++B.current;
1355
+ const I = ++E.current;
1356
1356
  x(!0), A(null);
1357
1357
  try {
1358
- const h = sa({ restrictCountry: d }), I = await o(p, h);
1359
- if (E !== B.current) return;
1360
- const C = (I || []).filter(
1358
+ const h = sa({ restrictCountry: d }), B = await o(p, h);
1359
+ if (I !== E.current) return;
1360
+ const C = (B || []).filter(
1361
1361
  (b) => !!b?.id && !!b?.description && sr(b?.lat) && sr(b?.lng)
1362
1362
  ).map((b) => ({
1363
1363
  id: b.id,
@@ -1368,10 +1368,10 @@ const it = "_header_19172_1", lt = "_centered_19172_8", lr = {
1368
1368
  }));
1369
1369
  k(C);
1370
1370
  } catch (h) {
1371
- if (E !== B.current) return;
1371
+ if (I !== E.current) return;
1372
1372
  k([]), A(h?.message || "Failed to fetch locations");
1373
1373
  } finally {
1374
- E === B.current && x(!1);
1374
+ I === E.current && x(!1);
1375
1375
  }
1376
1376
  },
1377
1377
  [d, o]
@@ -1471,7 +1471,7 @@ const da = ({
1471
1471
  atlasSearchLocalities: j,
1472
1472
  className: A = ""
1473
1473
  }) => {
1474
- const B = Re(), c = B?.config?.analytics ?? x, N = B?.config.isGlobal ?? !0, p = B?.config?.atlasSearchLocalities, [E, h] = W(!1), [I, C] = W(""), b = K(null), _ = 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, h] = W(!1), [B, C] = W(""), b = H(null), g = 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,14 +1480,14 @@ const da = ({
1480
1480
  birthTime: () => c?.trackTimeFilled?.(),
1481
1481
  birthPlace: () => c?.trackPlaceOfBirthChosen?.()
1482
1482
  }[n]?.());
1483
- }, z = (n) => n.replace(/\D/g, "").slice(0, 10), J = I.trim().toLowerCase(), re = pr.filter((n) => J ? n.country.toLowerCase().includes(J) || n.code.includes(J) : !0), Y = 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
+ }, K = (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), [G, T] = W(!1), [F, X] = W({ 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";
1489
1489
  return `${L % 12 === 0 ? 12 : L % 12}:${me} ${Se}`;
1490
- }, q = (n) => {
1490
+ }, V = (n) => {
1491
1491
  const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
1492
1492
  if (!s) return { hour12: 12, minute: "00", meridiem: "AM" };
1493
1493
  const L = Number(s[1]), me = s[2], Se = L >= 12 ? "PM" : "AM";
@@ -1496,35 +1496,35 @@ 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] = W(!1), [fe, ne] = W(
1500
1500
  null
1501
- ), de = (o.birthPlace ?? "").trim(), _e = N ? void 0 : "in", V = j ?? p, ye = Number.isFinite(o.birthPlaceLat) && Number.isFinite(o.birthPlaceLng), ue = de.length > 0 && !ye && !ae, {
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,
1503
1503
  isSearching: be,
1504
1504
  loadError: xe,
1505
1505
  searchPlaces: Pe,
1506
1506
  clearPredictions: y
1507
1507
  } = ca({
1508
- searchLocalities: V,
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
1518
  b.current && (b.current.contains(s.target) || (h(!1), C("")));
1519
1519
  };
1520
1520
  return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
1521
- }, []), H(() => {
1522
- if (!E) return;
1521
+ }, []), Y(() => {
1522
+ if (!I) return;
1523
1523
  const n = window.setTimeout(() => {
1524
- _.current?.focus();
1524
+ g.current?.focus();
1525
1525
  }, 0);
1526
1526
  return () => window.clearTimeout(n);
1527
- }, [E]), 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) => {
@@ -1604,7 +1604,7 @@ const da = ({
1604
1604
  type: "button",
1605
1605
  className: a.isdSelectTrigger,
1606
1606
  "aria-haspopup": "listbox",
1607
- "aria-expanded": E,
1607
+ "aria-expanded": I,
1608
1608
  onClick: () => {
1609
1609
  h((n) => !n), C("");
1610
1610
  },
@@ -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: z(s) }), D("phone", z(s));
1624
+ w({ phone: K(s) }), D("phone", K(s));
1625
1625
  },
1626
1626
  placeholder: t("formPhonePlaceholder"),
1627
1627
  autoComplete: "tel",
@@ -1633,7 +1633,7 @@ const da = ({
1633
1633
  }
1634
1634
  )
1635
1635
  ] }),
1636
- E && /* @__PURE__ */ r.jsxs(
1636
+ I && /* @__PURE__ */ r.jsxs(
1637
1637
  "div",
1638
1638
  {
1639
1639
  className: a.isdDropdown,
@@ -1643,9 +1643,9 @@ const da = ({
1643
1643
  /* @__PURE__ */ r.jsx("div", { className: a.isdSearchWrap, children: /* @__PURE__ */ r.jsx(
1644
1644
  "input",
1645
1645
  {
1646
- ref: _,
1646
+ ref: g,
1647
1647
  type: "text",
1648
- value: I,
1648
+ value: B,
1649
1649
  onChange: (n) => C(n.target.value),
1650
1650
  placeholder: "Search country",
1651
1651
  className: a.isdSearchInput,
@@ -1784,7 +1784,7 @@ const da = ({
1784
1784
  id: "kundli-dob",
1785
1785
  className: a.input,
1786
1786
  type: "date",
1787
- ref: Y,
1787
+ ref: q,
1788
1788
  value: o.dateOfBirth,
1789
1789
  max: (() => {
1790
1790
  const n = /* @__PURE__ */ new Date();
@@ -1795,9 +1795,9 @@ const da = ({
1795
1795
  s && s > me || (w({ dateOfBirth: s }), D("dateOfBirth", s), M.current = null);
1796
1796
  },
1797
1797
  onFocus: () => c?.trackDobClicked?.(),
1798
- onClick: () => pe(Y),
1798
+ onClick: () => pe(q),
1799
1799
  onBlur: () => {
1800
- M.current === Y.current && (M.current = null);
1800
+ M.current === q.current && (M.current = null);
1801
1801
  }
1802
1802
  }
1803
1803
  ),
@@ -1809,7 +1809,7 @@ const da = ({
1809
1809
  "aria-label": "Open date picker",
1810
1810
  onMouseDown: (n) => n.preventDefault(),
1811
1811
  onClick: (n) => {
1812
- n.preventDefault(), n.stopPropagation(), pe(Y);
1812
+ n.preventDefault(), n.stopPropagation(), pe(q);
1813
1813
  },
1814
1814
  children: /* @__PURE__ */ r.jsx(
1815
1815
  "img",
@@ -1875,7 +1875,7 @@ const da = ({
1875
1875
  disabled: o.birthTimeUnknown,
1876
1876
  placeholder: "HH:MM AM",
1877
1877
  onClick: () => {
1878
- o.birthTimeUnknown || (X(q(o.birthTime || "12:00")), T((n) => !n));
1878
+ o.birthTimeUnknown || (X(V(o.birthTime || "12:00")), T((n) => !n));
1879
1879
  }
1880
1880
  }
1881
1881
  ),
@@ -1888,7 +1888,7 @@ const da = ({
1888
1888
  disabled: o.birthTimeUnknown,
1889
1889
  onMouseDown: (n) => n.preventDefault(),
1890
1890
  onClick: (n) => {
1891
- n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (X(q(o.birthTime || "12:00")), T((s) => !s));
1891
+ n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (X(V(o.birthTime || "12:00")), T((s) => !s));
1892
1892
  },
1893
1893
  children: /* @__PURE__ */ r.jsx(
1894
1894
  "img",
@@ -2121,8 +2121,8 @@ const da = ({
2121
2121
  },
2122
2122
  n.id
2123
2123
  )) }),
2124
- ae && !!V && be && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: "Loading…" }),
2125
- ae && !!V && !be && !!xe && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: xe })
2124
+ ae && !!z && be && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: "Loading…" }),
2125
+ ae && !!z && !be && !!xe && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: xe })
2126
2126
  ] }),
2127
2127
  ue && /* @__PURE__ */ r.jsx("p", { className: a.fieldError, children: "Please select a place from the dropdown list." })
2128
2128
  ] }),
@@ -2332,53 +2332,53 @@ const da = ({
2332
2332
  onProceed: x,
2333
2333
  onProceedGuidance: j,
2334
2334
  href: A,
2335
- analytics: B,
2335
+ analytics: E,
2336
2336
  className: c = "",
2337
2337
  discountedPriceLabel: N,
2338
2338
  showPlanSheet: p,
2339
- confirmPlan: E,
2339
+ confirmPlan: I,
2340
2340
  planSheetOpen: h,
2341
- selectedPlan: I
2341
+ selectedPlan: B
2342
2342
  }) => {
2343
- const C = Re(), b = C?.config.isGlobal ?? !0, _ = C?.config?.variant, [U, w] = W(!1), D = Ue(
2343
+ const C = Re(), b = C?.config.isGlobal ?? !0, g = C?.config?.variant, [U, w] = W(!1), D = Ue(
2344
2344
  () => wa(o, b, k),
2345
2345
  [o, b, k]
2346
- ), z = D === null, J = _ === "v1" && C?.config?.showSheet;
2347
- H(() => {
2346
+ ), K = D === null, J = g === "v1" && C?.config?.showSheet;
2347
+ Y(() => {
2348
2348
  if (!U) return;
2349
2349
  const Q = window.setTimeout(() => {
2350
2350
  w(!1);
2351
2351
  }, 2200);
2352
2352
  return () => window.clearTimeout(Q);
2353
2353
  }, [U]);
2354
- const re = b ? N ?? t("formDiscountedPrice") : J ? "" : "₹499", Y = C?.config.imageComponent ?? De, M = (Q) => {
2355
- if (Q.preventDefault(), !z) {
2354
+ const re = b ? N ?? t("formDiscountedPrice") : J ? "" : "₹499", q = C?.config.imageComponent ?? De, M = (Q) => {
2355
+ if (Q.preventDefault(), console.log("Proceed clicked - validating form", K, g), K || E?.trackKundliDetailedClicked?.(), !K) {
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 && _ === "v1" && I?.id === hr, T = (o.phone ?? "").trim(), F = {
2361
+ const G = !!j && g === "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 ? E?.() : p?.(F);
2366
+ h ? I?.() : p?.(F);
2367
2367
  return;
2368
2368
  }
2369
- B?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), G ? j(F) : x?.(F);
2369
+ E?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), G ? j(F) : x?.(F);
2370
2370
  }, se = /* @__PURE__ */ r.jsx(
2371
2371
  Fr,
2372
2372
  {
2373
2373
  href: A,
2374
- disabled: _ === "v1" ? !1 : !z,
2374
+ disabled: g === "v1" ? !1 : !K,
2375
2375
  onClick: M,
2376
2376
  "aria-label": t("formPriceAria"),
2377
- className: _ === "v1" && z ? Ne.ctaFilled : _ === "v1" ? Ne.ctaButton : void 0,
2378
- children: _ === "v1" ? z ? /* @__PURE__ */ r.jsxs("span", { className: Ne.ctaFilledContent, children: [
2379
- J ? t("selectPackage") : h && I ? `${t("proceedWithPlan")}${I.price}` : `${t("formProceed")} ${re}`,
2377
+ className: g === "v1" && K ? Ne.ctaFilled : g === "v1" ? Ne.ctaButton : void 0,
2378
+ children: g === "v1" ? K ? /* @__PURE__ */ r.jsxs("span", { className: Ne.ctaFilledContent, children: [
2379
+ J ? t("selectPackage") : h && B ? `${t("proceedWithPlan")}${B.price}` : `${t("formProceed")} ${re}`,
2380
2380
  /* @__PURE__ */ r.jsx(
2381
- Y,
2381
+ q,
2382
2382
  {
2383
2383
  src: ba,
2384
2384
  alt: "",
@@ -2639,8 +2639,8 @@ const da = ({
2639
2639
  t: x,
2640
2640
  analytics: j
2641
2641
  }) => {
2642
- const B = Re()?.config.isGlobal ?? !0, c = k ?? Pn(B), N = d?.id || c.find((C) => C.badge)?.id || c[0]?.id || "", p = K(null), E = 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), h = H(!1);
2643
+ Y(() => {
2644
2644
  if (t) {
2645
2645
  if (!d) {
2646
2646
  const C = c.find((b) => b.badge) ?? c[0];
@@ -2650,10 +2650,10 @@ const da = ({
2650
2650
  } else
2651
2651
  h.current = !1;
2652
2652
  }, [t, c, d, m, j]);
2653
- const I = () => {
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", () => {
@@ -2676,13 +2676,13 @@ const da = ({
2676
2676
  bn,
2677
2677
  {
2678
2678
  title: x?.("planSheetTitle") ?? "Choose Your Kundli Plan",
2679
- onBack: I
2679
+ onBack: B
2680
2680
  }
2681
2681
  ),
2682
2682
  /* @__PURE__ */ r.jsx(
2683
2683
  "div",
2684
2684
  {
2685
- ref: E,
2685
+ ref: I,
2686
2686
  className: f.plansContainer,
2687
2687
  role: "radiogroup",
2688
2688
  "aria-label": "Kundli plans",
@@ -2693,11 +2693,11 @@ const da = ({
2693
2693
  isSelected: C.id === N,
2694
2694
  t: x,
2695
2695
  onSelect: (b) => {
2696
- const _ = c.find((U) => U.id === b);
2697
- _ && (j?.trackPlanSelected?.({
2698
- planId: _.id,
2699
- planName: _.title
2700
- }), m(_));
2696
+ const g = c.find((U) => U.id === b);
2697
+ g && (j?.trackPlanSelected?.({
2698
+ planId: g.id,
2699
+ planName: g.title
2700
+ }), m(g));
2701
2701
  }
2702
2702
  },
2703
2703
  C.id
@@ -2745,24 +2745,24 @@ const da = ({
2745
2745
  onProceedGuidance: x,
2746
2746
  proceedHref: j,
2747
2747
  originalPriceLabel: A,
2748
- discountedPriceLabel: B,
2748
+ discountedPriceLabel: E,
2749
2749
  atlasSearchLocalities: c,
2750
2750
  analytics: N
2751
2751
  }) => {
2752
- const p = Re(), E = Kr(), h = p !== null, I = h ? p.locale : o, C = I ?? E?.locale ?? "en", [b, _] = W(C), U = h ? p.locale : b, w = h ? p.setLocale : _, [D, z] = W(!1), J = K(null), re = K(I), Y = K(
2753
- E?.locale
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, K] = W(!1), J = H(null), re = H(B), q = H(
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(() => {
2760
- I && re.current !== I && w(I), re.current = I;
2761
- }, [I, w]), H(() => {
2762
- if (I) return;
2763
- const y = E?.locale;
2764
- y && Y.current !== y && w(y), Y.current = y;
2765
- }, [E?.locale, I, w]);
2759
+ Y(() => {
2760
+ B && re.current !== B && w(B), re.current = B;
2761
+ }, [B, w]), Y(() => {
2762
+ if (B) return;
2763
+ const y = I?.locale;
2764
+ y && q.current !== y && w(y), q.current = y;
2765
+ }, [I?.locale, B, w]);
2766
2766
  const [se, Q] = W({
2767
2767
  ...Nn,
2768
2768
  ...k,
@@ -2770,34 +2770,34 @@ const da = ({
2770
2770
  }), G = h ? p?.config.isGlobal ?? !0 : !0, [T, F] = W(
2771
2771
  G ? "+1" : "+91"
2772
2772
  );
2773
- H(() => {
2773
+ Y(() => {
2774
2774
  F(G ? "+1" : "+91");
2775
2775
  }, [G]);
2776
- const X = h ? p.formValues : se, te = h ? p.setFormValues : Q, ge = h ? p.goToPage : m, q = 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 : B, fe = h ? p.config.showLanguageSelector ?? !0 : d, ne = (h ? p?.config?.analytics : N) ?? N;
2777
- H(() => {
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
+ Y(() => {
2778
2778
  if (!D) return;
2779
2779
  const y = (pe) => {
2780
- J.current && !J.current.contains(pe.target) && z(!1);
2780
+ J.current && !J.current.contains(pe.target) && K(!1);
2781
2781
  };
2782
2782
  return document.addEventListener("mousedown", y), () => document.removeEventListener("mousedown", y);
2783
2783
  }, [D]);
2784
- const [de, _e] = W(!1), [V, ye] = W(null), ue = K(null), we = Te((y) => {
2784
+ const [de, _e] = W(!1), [z, ye] = W(null), ue = H(null), we = Te((y) => {
2785
2785
  ue.current = y, _e(!0);
2786
2786
  }, []), be = Te(() => {
2787
2787
  if (ne?.trackPlanProceedClicked?.({
2788
- planId: V.id,
2789
- planName: V.title
2790
- }), !ue.current || !V) return;
2791
- const y = { ...ue.current, _selectedPlan: V };
2792
- V.id === hr && oe ? oe(y) : q?.(y), _e(!1), ue.current = null;
2793
- }, [V, q, oe]), xe = p?.config.imageComponent ?? De, Pe = fe ? /* @__PURE__ */ r.jsxs("div", { className: he.langDropdownWrap, ref: J, children: [
2788
+ planId: z.id,
2789
+ planName: z.title
2790
+ }), !ue.current || !z) return;
2791
+ const y = { ...ue.current, _selectedPlan: z };
2792
+ z.id === hr && oe ? oe(y) : V?.(y), _e(!1), ue.current = null;
2793
+ }, [z, V, oe]), xe = p?.config.imageComponent ?? De, Pe = fe ? /* @__PURE__ */ r.jsxs("div", { className: he.langDropdownWrap, ref: J, children: [
2794
2794
  /* @__PURE__ */ r.jsxs(
2795
2795
  "button",
2796
2796
  {
2797
2797
  type: "button",
2798
2798
  className: he.langTrigger,
2799
2799
  onClick: () => {
2800
- ne?.trackLanguageClickedFe?.({ language: U }), z((y) => !y);
2800
+ ne?.trackLanguageClickedFe?.({ language: U }), K((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), z(!1);
2837
+ ne?.trackLanguageChangedFe?.({ newLanguage: y }), w(y), K(!1);
2838
2838
  },
2839
2839
  children: ir[y]
2840
2840
  },
@@ -2874,7 +2874,7 @@ const da = ({
2874
2874
  t: M,
2875
2875
  values: X,
2876
2876
  phoneIsdCode: T,
2877
- onProceed: q,
2877
+ onProceed: V,
2878
2878
  onProceedGuidance: oe,
2879
2879
  href: ce,
2880
2880
  originalPriceLabel: ae,
@@ -2883,7 +2883,7 @@ const da = ({
2883
2883
  showPlanSheet: we,
2884
2884
  confirmPlan: be,
2885
2885
  planSheetOpen: de,
2886
- selectedPlan: V
2886
+ selectedPlan: z
2887
2887
  }
2888
2888
  ),
2889
2889
  p?.config.variant === "v1" && /* @__PURE__ */ r.jsx(
@@ -2891,7 +2891,7 @@ const da = ({
2891
2891
  {
2892
2892
  isOpen: de,
2893
2893
  onClose: () => _e(!1),
2894
- selectedPlan: V,
2894
+ selectedPlan: z,
2895
2895
  onSelectPlan: ye,
2896
2896
  onProceed: (y) => {
2897
2897
  be?.(y);
@@ -2968,4 +2968,4 @@ export {
2968
2968
  ur as t,
2969
2969
  Kr as u
2970
2970
  };
2971
- //# sourceMappingURL=analytics-UzdY5_Zo.js.map
2971
+ //# sourceMappingURL=analytics-BxTHGN8F.js.map