@srimandir/kundli-generator 10.59.0 → 10.60.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 Ze, { useState as M, useRef as H, useEffect as Z, useMemo as Xe, useCallback as ke, createContext as At, useContext as et } from "react";
1
+ import Ze, { useState as M, useRef as O, useEffect as J, useMemo as Xe, useCallback as ye, createContext as At, useContext as et } from "react";
2
2
  import { FooterCTAButton as jt, FooterShell as Ft, CircularMarquee as Ut, footerShellStyles as Se } from "@srimandir/astrology-common";
3
3
  var qe = { exports: {} }, Ge = {};
4
4
  var mt;
@@ -31,10 +31,10 @@ function It() {
31
31
  {
32
32
  for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), d = 1; d < i; d++)
33
33
  l[d - 1] = arguments[d];
34
- ee("error", e, l);
34
+ te("error", e, l);
35
35
  }
36
36
  }
37
- function ee(e, i, l) {
37
+ function te(e, i, l) {
38
38
  {
39
39
  var d = b.ReactDebugCurrentFrame, T = d.getStackAddendum();
40
40
  T !== "" && (i += "%s", l = l.concat([T]));
@@ -44,16 +44,16 @@ function It() {
44
44
  D.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, D);
45
45
  }
46
46
  }
47
- var Y = !1, $ = !1, B = !1, G = !1, W = !1, N;
47
+ var q = !1, H = !1, B = !1, G = !1, $ = !1, N;
48
48
  N = /* @__PURE__ */ Symbol.for("react.module.reference");
49
- function Q(e) {
50
- return !!(typeof e == "string" || typeof e == "function" || e === g || e === k || W || e === y || e === C || e === S || G || e === w || Y || $ || B || typeof e == "object" && e !== null && (e.$$typeof === c || e.$$typeof === E || e.$$typeof === v || e.$$typeof === x || e.$$typeof === f || // This needs to include all possible module reference object
49
+ function z(e) {
50
+ return !!(typeof e == "string" || typeof e == "function" || e === g || e === k || $ || e === y || e === C || e === S || G || e === w || q || H || B || typeof e == "object" && e !== null && (e.$$typeof === c || e.$$typeof === E || e.$$typeof === v || e.$$typeof === x || e.$$typeof === f || // 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
54
  e.$$typeof === N || e.getModuleId !== void 0));
55
55
  }
56
- function V(e, i, l) {
56
+ function Y(e, i, l) {
57
57
  var d = e.displayName;
58
58
  if (d)
59
59
  return d;
@@ -93,7 +93,7 @@ function It() {
93
93
  var l = e;
94
94
  return U(l._context) + ".Provider";
95
95
  case f:
96
- return V(e, e.render, "ForwardRef");
96
+ return Y(e, e.render, "ForwardRef");
97
97
  case E:
98
98
  var d = e.displayName || null;
99
99
  return d !== null ? d : u(e.type) || "Memo";
@@ -108,18 +108,18 @@ function It() {
108
108
  }
109
109
  return null;
110
110
  }
111
- var j = Object.assign, X = 0, te, le, se, ae, pe, me, De;
112
- function ie() {
111
+ var j = Object.assign, X = 0, ae, de, re, oe, ge, be, ve;
112
+ function ue() {
113
113
  }
114
- ie.__reactDisabledLog = !0;
115
- function ce() {
114
+ ue.__reactDisabledLog = !0;
115
+ function pe() {
116
116
  {
117
117
  if (X === 0) {
118
- te = console.log, le = console.info, se = console.warn, ae = console.error, pe = console.group, me = console.groupCollapsed, De = console.groupEnd;
118
+ ae = console.log, de = console.info, re = console.warn, oe = console.error, ge = console.group, be = console.groupCollapsed, ve = console.groupEnd;
119
119
  var e = {
120
120
  configurable: !0,
121
121
  enumerable: !0,
122
- value: ie,
122
+ value: ue,
123
123
  writable: !0
124
124
  };
125
125
  Object.defineProperties(console, {
@@ -135,7 +135,7 @@ function It() {
135
135
  X++;
136
136
  }
137
137
  }
138
- function K() {
138
+ function se() {
139
139
  {
140
140
  if (X--, X === 0) {
141
141
  var e = {
@@ -145,64 +145,64 @@ function It() {
145
145
  };
146
146
  Object.defineProperties(console, {
147
147
  log: j({}, e, {
148
- value: te
148
+ value: ae
149
149
  }),
150
150
  info: j({}, e, {
151
- value: le
151
+ value: de
152
152
  }),
153
153
  warn: j({}, e, {
154
- value: se
154
+ value: re
155
155
  }),
156
156
  error: j({}, e, {
157
- value: ae
157
+ value: oe
158
158
  }),
159
159
  group: j({}, e, {
160
- value: pe
160
+ value: ge
161
161
  }),
162
162
  groupCollapsed: j({}, e, {
163
- value: me
163
+ value: be
164
164
  }),
165
165
  groupEnd: j({}, e, {
166
- value: De
166
+ value: ve
167
167
  })
168
168
  });
169
169
  }
170
170
  X < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
171
171
  }
172
172
  }
173
- var fe = b.ReactCurrentDispatcher, ge;
174
- function de(e, i, l) {
173
+ var Z = b.ReactCurrentDispatcher, Ae;
174
+ function Q(e, i, l) {
175
175
  {
176
- if (ge === void 0)
176
+ if (Ae === void 0)
177
177
  try {
178
178
  throw Error();
179
179
  } catch (T) {
180
180
  var d = T.stack.trim().match(/\n( *(at )?)/);
181
- ge = d && d[1] || "";
181
+ Ae = d && d[1] || "";
182
182
  }
183
183
  return `
184
- ` + ge + e;
184
+ ` + Ae + e;
185
185
  }
186
186
  }
187
- var re = !1, O;
187
+ var ce = !1, ne;
188
188
  {
189
- var be = typeof WeakMap == "function" ? WeakMap : Map;
190
- O = new be();
189
+ var ee = typeof WeakMap == "function" ? WeakMap : Map;
190
+ ne = new ee();
191
191
  }
192
- function oe(e, i) {
193
- if (!e || re)
192
+ function ie(e, i) {
193
+ if (!e || ce)
194
194
  return "";
195
195
  {
196
- var l = O.get(e);
196
+ var l = ne.get(e);
197
197
  if (l !== void 0)
198
198
  return l;
199
199
  }
200
200
  var d;
201
- re = !0;
201
+ ce = !0;
202
202
  var T = Error.prepareStackTrace;
203
203
  Error.prepareStackTrace = void 0;
204
204
  var D;
205
- D = fe.current, fe.current = null, ce();
205
+ D = Z.current, Z.current = null, pe();
206
206
  try {
207
207
  if (i) {
208
208
  var A = function() {
@@ -215,105 +215,105 @@ function It() {
215
215
  }), typeof Reflect == "object" && Reflect.construct) {
216
216
  try {
217
217
  Reflect.construct(A, []);
218
- } catch (J) {
219
- d = J;
218
+ } catch (V) {
219
+ d = V;
220
220
  }
221
221
  Reflect.construct(e, [], A);
222
222
  } else {
223
223
  try {
224
224
  A.call();
225
- } catch (J) {
226
- d = J;
225
+ } catch (V) {
226
+ d = V;
227
227
  }
228
228
  e.call(A.prototype);
229
229
  }
230
230
  } else {
231
231
  try {
232
232
  throw Error();
233
- } catch (J) {
234
- d = J;
233
+ } catch (V) {
234
+ d = V;
235
235
  }
236
236
  e();
237
237
  }
238
- } catch (J) {
239
- if (J && d && typeof J.stack == "string") {
240
- for (var h = J.stack.split(`
241
- `), z = d.stack.split(`
242
- `), L = h.length - 1, F = z.length - 1; L >= 1 && F >= 0 && h[L] !== z[F]; )
238
+ } catch (V) {
239
+ if (V && d && typeof V.stack == "string") {
240
+ for (var h = V.stack.split(`
241
+ `), K = d.stack.split(`
242
+ `), L = h.length - 1, F = K.length - 1; L >= 1 && F >= 0 && h[L] !== K[F]; )
243
243
  F--;
244
244
  for (; L >= 1 && F >= 0; L--, F--)
245
- if (h[L] !== z[F]) {
245
+ if (h[L] !== K[F]) {
246
246
  if (L !== 1 || F !== 1)
247
247
  do
248
- if (L--, F--, F < 0 || h[L] !== z[F]) {
249
- var ne = `
248
+ if (L--, F--, F < 0 || h[L] !== K[F]) {
249
+ var le = `
250
250
  ` + h[L].replace(" at new ", " at ");
251
- return e.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", e.displayName)), typeof e == "function" && O.set(e, ne), ne;
251
+ return e.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, le), le;
252
252
  }
253
253
  while (L >= 1 && F >= 0);
254
254
  break;
255
255
  }
256
256
  }
257
257
  } finally {
258
- re = !1, fe.current = D, K(), Error.prepareStackTrace = T;
258
+ ce = !1, Z.current = D, se(), Error.prepareStackTrace = T;
259
259
  }
260
- var Be = e ? e.displayName || e.name : "", Te = Be ? de(Be) : "";
261
- return typeof e == "function" && O.set(e, Te), Te;
260
+ var Be = e ? e.displayName || e.name : "", Te = Be ? Q(Be) : "";
261
+ return typeof e == "function" && ne.set(e, Te), Te;
262
262
  }
263
- function he(e, i, l) {
264
- return oe(e, !1);
263
+ function me(e, i, l) {
264
+ return ie(e, !1);
265
265
  }
266
- function ye(e) {
266
+ function De(e) {
267
267
  var i = e.prototype;
268
268
  return !!(i && i.isReactComponent);
269
269
  }
270
- function ve(e, i, l) {
270
+ function fe(e, i, l) {
271
271
  if (e == null)
272
272
  return "";
273
273
  if (typeof e == "function")
274
- return oe(e, ye(e));
274
+ return ie(e, De(e));
275
275
  if (typeof e == "string")
276
- return de(e);
276
+ return Q(e);
277
277
  switch (e) {
278
278
  case C:
279
- return de("Suspense");
279
+ return Q("Suspense");
280
280
  case S:
281
- return de("SuspenseList");
281
+ return Q("SuspenseList");
282
282
  }
283
283
  if (typeof e == "object")
284
284
  switch (e.$$typeof) {
285
285
  case f:
286
- return he(e.render);
286
+ return me(e.render);
287
287
  case E:
288
- return ve(e.type, i, l);
288
+ return fe(e.type, i, l);
289
289
  case c: {
290
290
  var d = e, T = d._payload, D = d._init;
291
291
  try {
292
- return ve(D(T), i, l);
292
+ return fe(D(T), i, l);
293
293
  } catch {
294
294
  }
295
295
  }
296
296
  }
297
297
  return "";
298
298
  }
299
- var q = Object.prototype.hasOwnProperty, Ce = {}, Le = b.ReactDebugCurrentFrame;
299
+ var W = Object.prototype.hasOwnProperty, Ce = {}, Le = b.ReactDebugCurrentFrame;
300
300
  function je(e) {
301
301
  if (e) {
302
- var i = e._owner, l = ve(e.type, e._source, i ? i.type : null);
302
+ var i = e._owner, l = fe(e.type, e._source, i ? i.type : null);
303
303
  Le.setExtraStackFrame(l);
304
304
  } else
305
305
  Le.setExtraStackFrame(null);
306
306
  }
307
- function Ae(e, i, l, d, T) {
307
+ function ke(e, i, l, d, T) {
308
308
  {
309
- var D = Function.call.bind(q);
309
+ var D = Function.call.bind(W);
310
310
  for (var A in e)
311
311
  if (D(e, A)) {
312
312
  var h = void 0;
313
313
  try {
314
314
  if (typeof e[A] != "function") {
315
- var z = Error((d || "React class") + ": " + l + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
316
- throw z.name = "Invariant Violation", z;
315
+ var K = Error((d || "React class") + ": " + l + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
316
+ throw K.name = "Invariant Violation", K;
317
317
  }
318
318
  h = e[A](i, A, d, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
319
319
  } catch (L) {
@@ -354,7 +354,7 @@ function It() {
354
354
  __source: !0
355
355
  }, Me, Ie;
356
356
  function o(e) {
357
- if (q.call(e, "ref")) {
357
+ if (W.call(e, "ref")) {
358
358
  var i = Object.getOwnPropertyDescriptor(e, "ref").get;
359
359
  if (i && i.isReactWarning)
360
360
  return !1;
@@ -362,7 +362,7 @@ function It() {
362
362
  return e.ref !== void 0;
363
363
  }
364
364
  function s(e) {
365
- if (q.call(e, "key")) {
365
+ if (W.call(e, "key")) {
366
366
  var i = Object.getOwnPropertyDescriptor(e, "key").get;
367
367
  if (i && i.isReactWarning)
368
368
  return !1;
@@ -372,7 +372,7 @@ function It() {
372
372
  function R(e, i) {
373
373
  typeof e.ref == "string" && xe.current;
374
374
  }
375
- function ue(e, i) {
375
+ function he(e, i) {
376
376
  {
377
377
  var l = function() {
378
378
  Me || (Me = !0, P("%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));
@@ -425,26 +425,26 @@ function It() {
425
425
  };
426
426
  function St(e, i, l, d, T) {
427
427
  {
428
- var D, A = {}, h = null, z = null;
429
- l !== void 0 && (Ue(l), h = "" + l), s(i) && (Ue(i.key), h = "" + i.key), o(i) && (z = i.ref, R(i, T));
428
+ var D, A = {}, h = null, K = null;
429
+ l !== void 0 && (Ue(l), h = "" + l), s(i) && (Ue(i.key), h = "" + i.key), o(i) && (K = i.ref, R(i, T));
430
430
  for (D in i)
431
- q.call(i, D) && !Ke.hasOwnProperty(D) && (A[D] = i[D]);
431
+ W.call(i, D) && !Ke.hasOwnProperty(D) && (A[D] = i[D]);
432
432
  if (e && e.defaultProps) {
433
433
  var L = e.defaultProps;
434
434
  for (D in L)
435
435
  A[D] === void 0 && (A[D] = L[D]);
436
436
  }
437
- if (h || z) {
437
+ if (h || K) {
438
438
  var F = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
439
- h && ue(A, F), z && Ee(A, F);
439
+ h && he(A, F), K && Ee(A, F);
440
440
  }
441
- return nt(e, h, z, T, d, xe.current, A);
441
+ return nt(e, h, K, T, d, xe.current, A);
442
442
  }
443
443
  }
444
444
  var Ye = b.ReactCurrentOwner, it = b.ReactDebugCurrentFrame;
445
445
  function Ne(e) {
446
446
  if (e) {
447
- var i = e._owner, l = ve(e.type, e._source, i ? i.type : null);
447
+ var i = e._owner, l = fe(e.type, e._source, i ? i.type : null);
448
448
  it.setExtraStackFrame(l);
449
449
  } else
450
450
  it.setExtraStackFrame(null);
@@ -530,7 +530,7 @@ Check the top-level render call using <` + l + ">.");
530
530
  return;
531
531
  if (l) {
532
532
  var d = u(i);
533
- Ae(l, e.props, "prop", d, e);
533
+ ke(l, e.props, "prop", d, e);
534
534
  } else if (i.PropTypes !== void 0 && !Qe) {
535
535
  Qe = !0;
536
536
  var T = u(i);
@@ -554,12 +554,12 @@ Check the top-level render call using <` + l + ">.");
554
554
  var ut = {};
555
555
  function pt(e, i, l, d, T, D) {
556
556
  {
557
- var A = Q(e);
557
+ var A = z(e);
558
558
  if (!A) {
559
559
  var h = "";
560
560
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (h += " 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
- var z = wt();
562
- z ? h += z : h += lt();
561
+ var K = wt();
562
+ K ? h += K : h += lt();
563
563
  var L;
564
564
  e === null ? L = "null" : _e(e) ? L = "array" : e !== void 0 && e.$$typeof === n ? (L = "<" + (u(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : L = typeof e, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, h);
565
565
  }
@@ -567,24 +567,24 @@ Check the top-level render call using <` + l + ">.");
567
567
  if (F == null)
568
568
  return F;
569
569
  if (A) {
570
- var ne = i.children;
571
- if (ne !== void 0)
570
+ var le = i.children;
571
+ if (le !== void 0)
572
572
  if (d)
573
- if (_e(ne)) {
574
- for (var Be = 0; Be < ne.length; Be++)
575
- dt(ne[Be], e);
576
- Object.freeze && Object.freeze(ne);
573
+ if (_e(le)) {
574
+ for (var Be = 0; Be < le.length; Be++)
575
+ dt(le[Be], e);
576
+ Object.freeze && Object.freeze(le);
577
577
  } else
578
578
  P("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
- dt(ne, e);
580
+ dt(le, e);
581
581
  }
582
- if (q.call(i, "key")) {
583
- var Te = u(e), J = Object.keys(i).filter(function(Lt) {
582
+ if (W.call(i, "key")) {
583
+ var Te = u(e), V = Object.keys(i).filter(function(Lt) {
584
584
  return Lt !== "key";
585
- }), Je = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
585
+ }), Je = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
586
586
  if (!ut[Te + Je]) {
587
- var Bt = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
587
+ var Bt = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
588
588
  P(`A props object containing a "key" prop is being spread into JSX:
589
589
  let props = %s;
590
590
  <%s {...props} />
@@ -2594,45 +2594,48 @@ const at = At(null), ea = {
2594
2594
  reportImageUrl: p,
2595
2595
  reportImagePriority: b,
2596
2596
  backgroundImagePriority: P,
2597
- universityLogoUrls: ee,
2598
- sampleReportHref: Y,
2599
- onViewSampleReport: $,
2597
+ universityLogoUrls: te,
2598
+ sampleReportHref: q,
2599
+ onViewSampleReport: H,
2600
2600
  ctaHref: B,
2601
2601
  onCtaClick: G,
2602
- onBack: W,
2602
+ onBack: $,
2603
2603
  readMoreReviewsHref: N,
2604
- onProceed: Q,
2605
- proceedHref: V,
2604
+ onProceed: z,
2605
+ proceedHref: Y,
2606
2606
  originalPriceLabel: U,
2607
2607
  discountedPriceLabel: u,
2608
2608
  discountPillLabel: j,
2609
2609
  analytics: X,
2610
- onProceedGuidance: te,
2611
- onLocaleChange: le,
2612
- imageComponent: se = tt,
2613
- resolvedUtmBannerImageUrl: ae,
2614
- plans: pe,
2615
- threeSkuPlans: me,
2616
- children: De
2610
+ onProceedGuidance: ae,
2611
+ onLocaleChange: de,
2612
+ onReportLanguageChange: re,
2613
+ imageComponent: oe = tt,
2614
+ resolvedUtmBannerImageUrl: ge,
2615
+ plans: be,
2616
+ threeSkuPlans: ve,
2617
+ children: ue
2617
2618
  }) => {
2618
- const [ie, ce] = M("landing"), [K, fe] = M(r ?? "en"), [ge, de] = M({
2619
+ const [pe, se] = M("landing"), [Z, Ae] = M(r ?? "en"), [Q, ce] = M({
2619
2620
  ...ea,
2620
2621
  ...v
2621
- }), re = H(!0);
2622
- Z(() => {
2622
+ }), ne = O(!0);
2623
+ J(() => {
2623
2624
  if (r) return;
2624
- const ye = Xt();
2625
- ye && fe(ye);
2626
- }, []), Z(() => {
2627
- Zt(K);
2628
- }, [K]), Z(() => {
2629
- if (re.current) {
2630
- re.current = !1;
2625
+ const fe = Xt();
2626
+ fe && Ae(fe);
2627
+ }, []), J(() => {
2628
+ Zt(Z);
2629
+ }, [Z]), J(() => {
2630
+ if (ne.current) {
2631
+ ne.current = !1;
2631
2632
  return;
2632
2633
  }
2633
- le?.(K);
2634
- }, [K, le]);
2635
- const O = Xe(
2634
+ de?.(Z);
2635
+ }, [Z, de]), J(() => {
2636
+ Q.language_code && re?.(Q.language_code);
2637
+ }, [Q.language_code, re]);
2638
+ const ee = Xe(
2636
2639
  () => ({
2637
2640
  locale: r,
2638
2641
  showLanguageSelector: n,
@@ -2653,25 +2656,26 @@ const at = At(null), ea = {
2653
2656
  reportImageUrl: p,
2654
2657
  reportImagePriority: b,
2655
2658
  backgroundImagePriority: P,
2656
- universityLogoUrls: ee,
2657
- sampleReportHref: Y,
2658
- onViewSampleReport: $,
2659
+ universityLogoUrls: te,
2660
+ sampleReportHref: q,
2661
+ onViewSampleReport: H,
2659
2662
  ctaHref: B,
2660
2663
  onCtaClick: G,
2661
- onBack: W,
2664
+ onBack: $,
2662
2665
  readMoreReviewsHref: N,
2663
- onProceed: Q,
2664
- proceedHref: V,
2666
+ onProceed: z,
2667
+ proceedHref: Y,
2665
2668
  originalPriceLabel: U,
2666
2669
  discountedPriceLabel: u,
2667
2670
  discountPillLabel: j,
2668
2671
  analytics: X,
2669
- onProceedGuidance: te,
2670
- onLocaleChange: le,
2671
- imageComponent: se,
2672
- resolvedUtmBannerImageUrl: ae,
2673
- plans: pe,
2674
- threeSkuPlans: me
2672
+ onProceedGuidance: ae,
2673
+ onLocaleChange: de,
2674
+ onReportLanguageChange: re,
2675
+ imageComponent: oe,
2676
+ resolvedUtmBannerImageUrl: ge,
2677
+ plans: be,
2678
+ threeSkuPlans: ve
2675
2679
  }),
2676
2680
  [
2677
2681
  r,
@@ -2693,46 +2697,47 @@ const at = At(null), ea = {
2693
2697
  p,
2694
2698
  b,
2695
2699
  P,
2696
- ee,
2697
- Y,
2698
- $,
2700
+ te,
2701
+ q,
2702
+ H,
2699
2703
  B,
2700
2704
  G,
2701
- W,
2705
+ $,
2702
2706
  N,
2703
- Q,
2704
- V,
2707
+ z,
2708
+ Y,
2705
2709
  U,
2706
2710
  u,
2707
2711
  j,
2708
2712
  X,
2709
- te,
2710
- le,
2711
- se,
2712
2713
  ae,
2713
- pe,
2714
- me
2714
+ de,
2715
+ re,
2716
+ oe,
2717
+ ge,
2718
+ be,
2719
+ ve
2715
2720
  ]
2716
- ), be = ke(() => {
2717
- ce("form");
2718
- }, [O.analytics]), oe = ke(() => {
2719
- ce("landing"), O.onBack?.();
2720
- }, [O.onBack]), he = Xe(
2721
+ ), ie = ye(() => {
2722
+ se("form");
2723
+ }, [ee.analytics]), me = ye(() => {
2724
+ se("landing"), ee.onBack?.();
2725
+ }, [ee.onBack]), De = Xe(
2721
2726
  () => ({
2722
- view: ie,
2723
- locale: K,
2724
- setLocale: fe,
2725
- config: O,
2726
- formValues: ge,
2727
- setFormValues: de,
2728
- goToForm: be,
2729
- goToPage: oe,
2730
- onProceed: O.onProceed,
2731
- onProceedGuidance: O.onProceedGuidance
2727
+ view: pe,
2728
+ locale: Z,
2729
+ setLocale: Ae,
2730
+ config: ee,
2731
+ formValues: Q,
2732
+ setFormValues: ce,
2733
+ goToForm: ie,
2734
+ goToPage: me,
2735
+ onProceed: ee.onProceed,
2736
+ onProceedGuidance: ee.onProceedGuidance
2732
2737
  }),
2733
- [ie, K, O, ge, be, oe]
2738
+ [pe, Z, ee, Q, ie, me]
2734
2739
  );
2735
- return /* @__PURE__ */ t.jsx(at.Provider, { value: he, children: De });
2740
+ return /* @__PURE__ */ t.jsx(at.Provider, { value: De, children: ue });
2736
2741
  };
2737
2742
  function rt() {
2738
2743
  return et(at);
@@ -2843,10 +2848,10 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
2843
2848
  f();
2844
2849
  }, k.onerror = () => g(new Error("Failed to load Google Maps API")), document.head.appendChild(k);
2845
2850
  }), ze), ar = (r) => {
2846
- const { apiKey: n, language: m = "en", restrictCountry: g, deferLoad: y = !1 } = r, [k, v] = M(!1), [x, f] = M([]), [C, S] = M(!1), [E, c] = M(null), [w, _] = M(!y), I = H(null), p = H(null), b = H(null), P = ke(() => {
2851
+ const { apiKey: n, language: m = "en", restrictCountry: g, deferLoad: y = !1 } = r, [k, v] = M(!1), [x, f] = M([]), [C, S] = M(!1), [E, c] = M(null), [w, _] = M(!y), I = O(null), p = O(null), b = O(null), P = ye(() => {
2847
2852
  y && _(!0);
2848
2853
  }, [y]);
2849
- Z(() => {
2854
+ J(() => {
2850
2855
  if (!n || !w) {
2851
2856
  v(!1), c(null);
2852
2857
  return;
@@ -2859,7 +2864,7 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
2859
2864
  v(!1), c(B?.message || "Failed to load location service");
2860
2865
  });
2861
2866
  }, [n, m, w]);
2862
- const ee = ke(
2867
+ const te = ye(
2863
2868
  async (B) => {
2864
2869
  if (!B || B.length < 2 || !I.current) {
2865
2870
  f([]);
@@ -2873,16 +2878,16 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
2873
2878
  sessionToken: b.current ?? void 0
2874
2879
  };
2875
2880
  g && (G.componentRestrictions = { country: g });
2876
- const W = await new Promise((N, Q) => {
2881
+ const $ = await new Promise((N, z) => {
2877
2882
  I.current.getPlacePredictions(
2878
2883
  G,
2879
- (V, U) => {
2880
- U === google.maps.places.PlacesServiceStatus.OK && V ? N(V) : U === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? N([]) : Q(new Error(`Places API error: ${U}`));
2884
+ (Y, U) => {
2885
+ U === google.maps.places.PlacesServiceStatus.OK && Y ? N(Y) : U === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? N([]) : z(new Error(`Places API error: ${U}`));
2881
2886
  }
2882
2887
  );
2883
2888
  });
2884
2889
  f(
2885
- W.map((N) => ({
2890
+ $.map((N) => ({
2886
2891
  place_id: N.place_id,
2887
2892
  description: N.description,
2888
2893
  structured_formatting: {
@@ -2898,7 +2903,7 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
2898
2903
  }
2899
2904
  },
2900
2905
  [g]
2901
- ), Y = ke(
2906
+ ), q = ye(
2902
2907
  async (B) => {
2903
2908
  if (!p.current) return null;
2904
2909
  try {
@@ -2910,23 +2915,23 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
2910
2915
  fields: ["geometry", "address_components", "formatted_address"],
2911
2916
  sessionToken: b.current ?? void 0
2912
2917
  },
2913
- (X, te) => {
2914
- te === google.maps.places.PlacesServiceStatus.OK && X ? u(X) : j(new Error(`Place details error: ${te}`));
2918
+ (X, ae) => {
2919
+ ae === google.maps.places.PlacesServiceStatus.OK && X ? u(X) : j(new Error(`Place details error: ${ae}`));
2915
2920
  }
2916
2921
  );
2917
2922
  }
2918
2923
  );
2919
2924
  b.current = new google.maps.places.AutocompleteSessionToken();
2920
- const W = G.geometry?.location?.lat() || 0, N = G.geometry?.location?.lng() || 0;
2921
- let Q = "", V = "", U = "";
2925
+ const $ = G.geometry?.location?.lat() || 0, N = G.geometry?.location?.lng() || 0;
2926
+ let z = "", Y = "", U = "";
2922
2927
  return G.address_components?.forEach((u) => {
2923
- u.types.includes("locality") && (Q = u.long_name), u.types.includes("administrative_area_level_1") && (V = u.long_name), u.types.includes("country") && (U = u.long_name);
2928
+ u.types.includes("locality") && (z = u.long_name), u.types.includes("administrative_area_level_1") && (Y = u.long_name), u.types.includes("country") && (U = u.long_name);
2924
2929
  }), {
2925
2930
  display_name: G.formatted_address || "",
2926
- lat: W,
2931
+ lat: $,
2927
2932
  lng: N,
2928
- city: Q,
2929
- state: V,
2933
+ city: z,
2934
+ state: Y,
2930
2935
  country: U
2931
2936
  };
2932
2937
  } catch {
@@ -2934,15 +2939,15 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
2934
2939
  }
2935
2940
  },
2936
2941
  []
2937
- ), $ = ke(() => f([]), []);
2942
+ ), H = ye(() => f([]), []);
2938
2943
  return {
2939
2944
  isLoaded: k,
2940
2945
  predictions: x,
2941
2946
  isSearching: C,
2942
2947
  loadError: E,
2943
- searchPlaces: ee,
2944
- getPlaceDetails: Y,
2945
- clearPredictions: $,
2948
+ searchPlaces: te,
2949
+ getPlaceDetails: q,
2950
+ clearPredictions: H,
2946
2951
  triggerLoad: P
2947
2952
  // Call this to start loading Google Maps when deferred
2948
2953
  };
@@ -2954,11 +2959,11 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
2954
2959
  restrictCountry: r?.restrictCountry
2955
2960
  };
2956
2961
  }, or = (r) => {
2957
- const { searchLocalities: n, restrictCountry: m } = r, [g, y] = M([]), [k, v] = M(!1), [x, f] = M(null), C = H(0);
2958
- Z(() => {
2962
+ const { searchLocalities: n, restrictCountry: m } = r, [g, y] = M([]), [k, v] = M(!1), [x, f] = M(null), C = O(0);
2963
+ J(() => {
2959
2964
  f(null);
2960
2965
  }, [n]);
2961
- const S = ke(
2966
+ const S = ye(
2962
2967
  async (c) => {
2963
2968
  if (!c || c.length < 2 || !n) {
2964
2969
  y([]);
@@ -2987,7 +2992,7 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
2987
2992
  }
2988
2993
  },
2989
2994
  [m, n]
2990
- ), E = ke(() => y([]), []);
2995
+ ), E = ye(() => y([]), []);
2991
2996
  return {
2992
2997
  predictions: g,
2993
2998
  isSearching: k,
@@ -3083,8 +3088,8 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3083
3088
  onFocus: y,
3084
3089
  disabled: k = !1
3085
3090
  }) => {
3086
- const v = H(null), [x, f] = M(!1), [C, S] = M({ hour: "12", minute: "00" });
3087
- Z(() => {
3091
+ const v = O(null), [x, f] = M(!1), [C, S] = M({ hour: "12", minute: "00" });
3092
+ J(() => {
3088
3093
  const c = (w) => {
3089
3094
  v.current?.contains(w.target) || f(!1);
3090
3095
  };
@@ -3215,20 +3220,20 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3215
3220
  className: S = "",
3216
3221
  variant: E = "default"
3217
3222
  }) => {
3218
- const c = E === "edit", w = c, _ = rt(), I = _?.config.birthTimeFormat ?? "12h", p = _?.config?.analytics ?? v, b = _?.config.isGlobal ?? !0, P = _?.config?.googleMapsApiKey, ee = _?.config?.atlasSearchLocalities, Y = _?.config?.googleMapsAutocompleteEnabled, [$, B] = M(!1), [G, W] = M(""), N = H(null), Q = H(null), V = H({}), U = H({
3223
+ const c = E === "edit", w = c, _ = rt(), I = _?.config.birthTimeFormat ?? "12h", p = _?.config?.analytics ?? v, b = _?.config.isGlobal ?? !0, P = _?.config?.googleMapsApiKey, te = _?.config?.atlasSearchLocalities, q = _?.config?.googleMapsAutocompleteEnabled, [H, B] = M(!1), [G, $] = M(""), N = O(null), z = O(null), Y = O({}), U = O({
3219
3224
  fullName: (n.fullName ?? "").trim(),
3220
3225
  dateOfBirth: n.dateOfBirth ?? "",
3221
3226
  birthTime: n.birthTime ?? "",
3222
3227
  birthPlace: (n.birthPlace ?? "").trim()
3223
3228
  });
3224
- Z(() => {
3229
+ J(() => {
3225
3230
  p?.trackBirthTimeInputViewed?.({
3226
3231
  input_format: I === "24h" ? "24h" : "ampm"
3227
3232
  });
3228
3233
  }, []);
3229
3234
  const u = (o) => m({ ...n, ...o }), j = (o, s) => {
3230
3235
  if (o === "phone") {
3231
- const Ee = cr(s, g, V.current);
3236
+ const Ee = cr(s, g, Y.current);
3232
3237
  Ee.shouldTrack && p?.trackPhoneSectionFilled?.({ phone: Ee.fullPhone });
3233
3238
  return;
3234
3239
  }
@@ -3243,25 +3248,25 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3243
3248
  }, X = (o) => {
3244
3249
  const s = o.target.value;
3245
3250
  s.trim() && p?.trackEmailSectionFilled?.({ email: s });
3246
- }, te = G.trim().toLowerCase(), le = vt.filter((o) => te ? o.country.toLowerCase().includes(te) || o.code.includes(te) : !0), se = H(null), ae = H(null), pe = H(0), me = H(null), [De, ie] = M(!1), [ce, K] = M({ hour12: 12, minute: "00", meridiem: "AM" }), fe = (o) => {
3251
+ }, ae = G.trim().toLowerCase(), de = vt.filter((o) => ae ? o.country.toLowerCase().includes(ae) || o.code.includes(ae) : !0), re = O(null), oe = O(null), ge = O(0), be = O(null), [ve, ue] = M(!1), [pe, se] = M({ hour12: 12, minute: "00", meridiem: "AM" }), Z = (o) => {
3247
3252
  const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(o);
3248
3253
  if (!s) return { hour12: 12, minute: "00", meridiem: "AM" };
3249
- const R = Number(s[1]), ue = s[2], Ee = R >= 12 ? "PM" : "AM";
3250
- return { hour12: R % 12 === 0 ? 12 : R % 12, minute: ue, meridiem: Ee };
3251
- }, ge = (o) => {
3254
+ const R = Number(s[1]), he = s[2], Ee = R >= 12 ? "PM" : "AM";
3255
+ return { hour12: R % 12 === 0 ? 12 : R % 12, minute: he, meridiem: Ee };
3256
+ }, Ae = (o) => {
3252
3257
  const s = Math.min(12, Math.max(1, o.hour12)), R = /^([0-5]\d)$/.test(o.minute) ? o.minute : "00";
3253
- let ue = s % 12;
3254
- return o.meridiem === "PM" && (ue += 12), `${Re(ue)}:${R}`;
3255
- }, de = H(null), [re, O] = M(!1), be = H(n.birthPlace ?? ""), [oe, he] = M(
3258
+ let he = s % 12;
3259
+ return o.meridiem === "PM" && (he += 12), `${Re(he)}:${R}`;
3260
+ }, Q = O(null), [ce, ne] = M(!1), ee = O(n.birthPlace ?? ""), [ie, me] = M(
3256
3261
  null
3257
- ), ye = x ?? P ?? dr?.VITE_GOOGLE_MAPS_API_KEY, ve = f ?? ee, q = C ?? Y ?? !0, Ce = (n.birthPlace ?? "").trim(), Le = b ? void 0 : "in", Ae = ar({
3258
- apiKey: q ? ye : void 0,
3262
+ ), De = x ?? P ?? dr?.VITE_GOOGLE_MAPS_API_KEY, fe = f ?? te, W = C ?? q ?? !0, Ce = (n.birthPlace ?? "").trim(), Le = b ? void 0 : "in", ke = ar({
3263
+ apiKey: W ? De : void 0,
3259
3264
  language: "en",
3260
3265
  restrictCountry: Le
3261
3266
  }), Pe = or({
3262
- searchLocalities: q ? void 0 : ve,
3267
+ searchLocalities: W ? void 0 : fe,
3263
3268
  restrictCountry: Le
3264
- }), _e = q ? Ae.predictions.map((o) => ({
3269
+ }), _e = W ? ke.predictions.map((o) => ({
3265
3270
  id: o.place_id,
3266
3271
  description: o.description,
3267
3272
  secondaryText: o.structured_formatting?.secondary_text,
@@ -3273,32 +3278,32 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3273
3278
  secondaryText: o.secondary_text,
3274
3279
  lat: o.lat,
3275
3280
  lng: o.lng
3276
- })), $e = q ? Ae.isSearching : Pe.isSearching, We = q ? Ae.loadError : Pe.loadError, Fe = q ? !!ye : !!ve, Ue = q ? Ae.searchPlaces : Pe.searchPlaces, xe = q ? Ae.clearPredictions : Pe.clearPredictions, Ke = H(() => {
3281
+ })), $e = W ? ke.isSearching : Pe.isSearching, We = W ? ke.loadError : Pe.loadError, Fe = W ? !!De : !!fe, Ue = W ? ke.searchPlaces : Pe.searchPlaces, xe = W ? ke.clearPredictions : Pe.clearPredictions, Ke = O(() => {
3277
3282
  });
3278
3283
  Ke.current = () => {
3279
- (n.birthPlace ?? "") !== be.current && u({
3284
+ (n.birthPlace ?? "") !== ee.current && u({
3280
3285
  birthPlace: "",
3281
3286
  birthPlaceLat: void 0,
3282
3287
  birthPlaceLng: void 0
3283
- }), O(!1);
3284
- }, Z(() => {
3288
+ }), ne(!1);
3289
+ }, J(() => {
3285
3290
  const o = (s) => {
3286
- de.current && (de.current.contains(s.target) || Ke.current());
3291
+ Q.current && (Q.current.contains(s.target) || Ke.current());
3287
3292
  };
3288
3293
  return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
3289
- }, []), Z(() => {
3294
+ }, []), J(() => {
3290
3295
  const o = (s) => {
3291
- N.current && (N.current.contains(s.target) || (B(!1), W("")));
3296
+ N.current && (N.current.contains(s.target) || (B(!1), $("")));
3292
3297
  };
3293
3298
  return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
3294
- }, []), Z(() => {
3295
- if (!$) return;
3299
+ }, []), J(() => {
3300
+ if (!H) return;
3296
3301
  const o = window.setTimeout(() => {
3297
- Q.current?.focus();
3302
+ z.current?.focus();
3298
3303
  }, 0);
3299
3304
  return () => window.clearTimeout(o);
3300
- }, [$]), Z(() => {
3301
- if (!re) return;
3305
+ }, [H]), J(() => {
3306
+ if (!ce) return;
3302
3307
  if (Ce.length < 2) {
3303
3308
  xe();
3304
3309
  return;
@@ -3307,31 +3312,31 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3307
3312
  await Ue(Ce);
3308
3313
  }, 250);
3309
3314
  return () => window.clearTimeout(o);
3310
- }, [xe, re, Ce, Ue]);
3315
+ }, [xe, ce, Ce, Ue]);
3311
3316
  const Me = (o) => {
3312
3317
  const s = o.current;
3313
3318
  if (!(!s || s.disabled)) {
3314
- if (document.activeElement === s && ae.current === s && Date.now() - pe.current < 6e4) {
3319
+ if (document.activeElement === s && oe.current === s && Date.now() - ge.current < 6e4) {
3315
3320
  s.blur();
3316
3321
  return;
3317
3322
  }
3318
3323
  if (typeof s.showPicker == "function") {
3319
- s.showPicker(), ae.current = s, pe.current = Date.now();
3324
+ s.showPicker(), oe.current = s, ge.current = Date.now();
3320
3325
  return;
3321
3326
  }
3322
- s.focus(), ae.current = s, pe.current = Date.now();
3327
+ s.focus(), oe.current = s, ge.current = Date.now();
3323
3328
  }
3324
3329
  };
3325
- Z(() => {
3330
+ J(() => {
3326
3331
  const o = (s) => {
3327
- me.current && (me.current.contains(s.target) || ie(!1));
3332
+ be.current && (be.current.contains(s.target) || ue(!1));
3328
3333
  };
3329
3334
  return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
3330
- }, []), Z(() => {
3335
+ }, []), J(() => {
3331
3336
  const o = (R) => {
3332
- R.target?.closest?.("[data-info-tooltip]") == null && he(null);
3337
+ R.target?.closest?.("[data-info-tooltip]") == null && me(null);
3333
3338
  }, s = (R) => {
3334
- R.key === "Escape" && he(null);
3339
+ R.key === "Escape" && me(null);
3335
3340
  };
3336
3341
  return document.addEventListener("mousedown", o), document.addEventListener("keydown", s), () => {
3337
3342
  document.removeEventListener("mousedown", o), document.removeEventListener("keydown", s);
@@ -3350,11 +3355,11 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3350
3355
  type: "button",
3351
3356
  className: a.infoBtn,
3352
3357
  "aria-label": r("info"),
3353
- "aria-expanded": oe === "place",
3358
+ "aria-expanded": ie === "place",
3354
3359
  onClick: () => {
3355
3360
  p?.trackInfoIconClicked?.({
3356
3361
  fieldName: "birthPlace"
3357
- }), he((o) => o === "place" ? null : "place");
3362
+ }), me((o) => o === "place" ? null : "place");
3358
3363
  },
3359
3364
  children: /* @__PURE__ */ t.jsx(
3360
3365
  "img",
@@ -3367,13 +3372,13 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3367
3372
  )
3368
3373
  }
3369
3374
  ),
3370
- oe === "place" && /* @__PURE__ */ t.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
3375
+ ie === "place" && /* @__PURE__ */ t.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
3371
3376
  r("formBirthPlaceInfo"),
3372
3377
  /* @__PURE__ */ t.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
3373
3378
  ] })
3374
3379
  ] })
3375
3380
  ] }),
3376
- /* @__PURE__ */ t.jsxs("div", { className: a.inputWrap, ref: de, children: [
3381
+ /* @__PURE__ */ t.jsxs("div", { className: a.inputWrap, ref: Q, children: [
3377
3382
  /* @__PURE__ */ t.jsx(
3378
3383
  "input",
3379
3384
  {
@@ -3387,10 +3392,10 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3387
3392
  birthPlace: s,
3388
3393
  birthPlaceLat: void 0,
3389
3394
  birthPlaceLng: void 0
3390
- }), O(!0);
3395
+ }), ne(!0);
3391
3396
  },
3392
3397
  onFocus: () => {
3393
- p?.trackPlaceOfBirthClicked?.(), O(!0);
3398
+ p?.trackPlaceOfBirthClicked?.(), ne(!0);
3394
3399
  },
3395
3400
  placeholder: r("formBirthPlacePlaceholder"),
3396
3401
  autoComplete: "address-level2"
@@ -3405,22 +3410,22 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3405
3410
  "aria-hidden": !0
3406
3411
  }
3407
3412
  ) }),
3408
- re && _e.length > 0 && /* @__PURE__ */ t.jsx("div", { className: a.suggestions, role: "listbox", children: _e.slice(0, 8).map((o) => /* @__PURE__ */ t.jsxs(
3413
+ ce && _e.length > 0 && /* @__PURE__ */ t.jsx("div", { className: a.suggestions, role: "listbox", children: _e.slice(0, 8).map((o) => /* @__PURE__ */ t.jsxs(
3409
3414
  "button",
3410
3415
  {
3411
3416
  type: "button",
3412
3417
  className: a.suggestionItem,
3413
3418
  onClick: async () => {
3414
3419
  const s = o.description;
3415
- if (be.current = s, j("birthPlace", s), u({
3420
+ if (ee.current = s, j("birthPlace", s), u({
3416
3421
  birthPlace: s,
3417
3422
  birthPlaceLat: o.lat,
3418
3423
  birthPlaceLng: o.lng
3419
- }), xe(), O(!1), q) {
3420
- const R = await Ae.getPlaceDetails(
3424
+ }), xe(), ne(!1), W) {
3425
+ const R = await ke.getPlaceDetails(
3421
3426
  o.id
3422
3427
  );
3423
- R && (be.current = s, m({
3428
+ R && (ee.current = s, m({
3424
3429
  ...n,
3425
3430
  birthPlace: s,
3426
3431
  birthPlaceLat: R.lat,
@@ -3435,8 +3440,8 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3435
3440
  },
3436
3441
  o.id
3437
3442
  )) }),
3438
- re && Fe && $e && /* @__PURE__ */ t.jsx("div", { className: a.suggestionsHint, children: "Loading…" }),
3439
- re && Fe && !$e && !!We && /* @__PURE__ */ t.jsx("div", { className: a.suggestionsHint, children: We })
3443
+ ce && Fe && $e && /* @__PURE__ */ t.jsx("div", { className: a.suggestionsHint, children: "Loading…" }),
3444
+ ce && Fe && !$e && !!We && /* @__PURE__ */ t.jsx("div", { className: a.suggestionsHint, children: We })
3440
3445
  ] })
3441
3446
  ] });
3442
3447
  return /* @__PURE__ */ t.jsx(
@@ -3481,9 +3486,9 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3481
3486
  type: "button",
3482
3487
  className: a.isdSelectTrigger,
3483
3488
  "aria-haspopup": "listbox",
3484
- "aria-expanded": $,
3489
+ "aria-expanded": H,
3485
3490
  onClick: () => {
3486
- B((o) => !o), W("");
3491
+ B((o) => !o), $("");
3487
3492
  },
3488
3493
  children: g
3489
3494
  }
@@ -3510,7 +3515,7 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3510
3515
  }
3511
3516
  )
3512
3517
  ] }),
3513
- $ && /* @__PURE__ */ t.jsxs(
3518
+ H && /* @__PURE__ */ t.jsxs(
3514
3519
  "div",
3515
3520
  {
3516
3521
  className: a.isdDropdown,
@@ -3520,16 +3525,16 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3520
3525
  /* @__PURE__ */ t.jsx("div", { className: a.isdSearchWrap, children: /* @__PURE__ */ t.jsx(
3521
3526
  "input",
3522
3527
  {
3523
- ref: Q,
3528
+ ref: z,
3524
3529
  type: "text",
3525
3530
  value: G,
3526
- onChange: (o) => W(o.target.value),
3531
+ onChange: (o) => $(o.target.value),
3527
3532
  placeholder: "Search country",
3528
3533
  className: a.isdSearchInput,
3529
3534
  "aria-label": "Search country"
3530
3535
  }
3531
3536
  ) }),
3532
- le.length > 0 ? le.map((o) => /* @__PURE__ */ t.jsxs(
3537
+ de.length > 0 ? de.map((o) => /* @__PURE__ */ t.jsxs(
3533
3538
  "button",
3534
3539
  {
3535
3540
  type: "button",
@@ -3537,7 +3542,7 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3537
3542
  "aria-selected": o.code === g,
3538
3543
  className: `${a.isdOption} ${o.code === g ? a.isdOptionActive : ""}`,
3539
3544
  onClick: () => {
3540
- y(o.code), B(!1), W("");
3545
+ y(o.code), B(!1), $("");
3541
3546
  },
3542
3547
  children: [
3543
3548
  /* @__PURE__ */ t.jsx("span", { className: a.isdCountryName, children: o.country }),
@@ -3638,9 +3643,9 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3638
3643
  type: "button",
3639
3644
  className: a.infoBtn,
3640
3645
  "aria-label": r("info"),
3641
- "aria-expanded": oe === "dob",
3646
+ "aria-expanded": ie === "dob",
3642
3647
  onClick: () => {
3643
- he((o) => o === "dob" ? null : "dob"), p?.trackInfoIconClicked?.({ fieldName: "dob" });
3648
+ me((o) => o === "dob" ? null : "dob"), p?.trackInfoIconClicked?.({ fieldName: "dob" });
3644
3649
  },
3645
3650
  children: /* @__PURE__ */ t.jsx(
3646
3651
  "img",
@@ -3653,7 +3658,7 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3653
3658
  )
3654
3659
  }
3655
3660
  ),
3656
- oe === "dob" && /* @__PURE__ */ t.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
3661
+ ie === "dob" && /* @__PURE__ */ t.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
3657
3662
  r("formDobInfo"),
3658
3663
  /* @__PURE__ */ t.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
3659
3664
  ] })
@@ -3666,20 +3671,20 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3666
3671
  id: "kundli-dob",
3667
3672
  className: a.input,
3668
3673
  type: "date",
3669
- ref: se,
3674
+ ref: re,
3670
3675
  value: n.dateOfBirth,
3671
3676
  max: (() => {
3672
3677
  const o = /* @__PURE__ */ new Date();
3673
3678
  return `${o.getFullYear()}-${Re(o.getMonth() + 1)}-${Re(o.getDate())}`;
3674
3679
  })(),
3675
3680
  onChange: (o) => {
3676
- const s = o.target.value, R = /* @__PURE__ */ new Date(), ue = `${R.getFullYear()}-${Re(R.getMonth() + 1)}-${Re(R.getDate())}`;
3677
- s && s > ue || (u({ dateOfBirth: s }), j("dateOfBirth", s), ae.current = null);
3681
+ const s = o.target.value, R = /* @__PURE__ */ new Date(), he = `${R.getFullYear()}-${Re(R.getMonth() + 1)}-${Re(R.getDate())}`;
3682
+ s && s > he || (u({ dateOfBirth: s }), j("dateOfBirth", s), oe.current = null);
3678
3683
  },
3679
3684
  onFocus: () => p?.trackDobClicked?.(),
3680
- onClick: () => Me(se),
3685
+ onClick: () => Me(re),
3681
3686
  onBlur: () => {
3682
- ae.current === se.current && (ae.current = null);
3687
+ oe.current === re.current && (oe.current = null);
3683
3688
  }
3684
3689
  }
3685
3690
  ),
@@ -3691,7 +3696,7 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3691
3696
  "aria-label": "Open date picker",
3692
3697
  onMouseDown: (o) => o.preventDefault(),
3693
3698
  onClick: (o) => {
3694
- o.preventDefault(), o.stopPropagation(), Me(se);
3699
+ o.preventDefault(), o.stopPropagation(), Me(re);
3695
3700
  },
3696
3701
  children: /* @__PURE__ */ t.jsx(
3697
3702
  "img",
@@ -3719,9 +3724,9 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3719
3724
  type: "button",
3720
3725
  className: a.infoBtn,
3721
3726
  "aria-label": r("info"),
3722
- "aria-expanded": oe === "time",
3727
+ "aria-expanded": ie === "time",
3723
3728
  onClick: () => {
3724
- p?.trackInfoIconClicked?.({ fieldName: "time" }), he((o) => o === "time" ? null : "time");
3729
+ p?.trackInfoIconClicked?.({ fieldName: "time" }), me((o) => o === "time" ? null : "time");
3725
3730
  },
3726
3731
  children: /* @__PURE__ */ t.jsx(
3727
3732
  "img",
@@ -3734,7 +3739,7 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3734
3739
  )
3735
3740
  }
3736
3741
  ),
3737
- oe === "time" && /* @__PURE__ */ t.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
3742
+ ie === "time" && /* @__PURE__ */ t.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
3738
3743
  r("formBirthTimeInfo"),
3739
3744
  /* @__PURE__ */ t.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
3740
3745
  ] })
@@ -3752,7 +3757,7 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3752
3757
  u({ birthTime: o }), j("birthTime", o);
3753
3758
  }
3754
3759
  }
3755
- ) : /* @__PURE__ */ t.jsxs("div", { className: a.inputWrap, ref: me, children: [
3760
+ ) : /* @__PURE__ */ t.jsxs("div", { className: a.inputWrap, ref: be, children: [
3756
3761
  /* @__PURE__ */ t.jsx(
3757
3762
  "input",
3758
3763
  {
@@ -3769,7 +3774,7 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3769
3774
  disabled: n.birthTimeUnknown,
3770
3775
  placeholder: "HH:MM AM",
3771
3776
  onClick: () => {
3772
- n.birthTimeUnknown || (K(fe(n.birthTime || "12:00")), ie((o) => !o));
3777
+ n.birthTimeUnknown || (se(Z(n.birthTime || "12:00")), ue((o) => !o));
3773
3778
  }
3774
3779
  }
3775
3780
  ),
@@ -3782,7 +3787,7 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3782
3787
  disabled: n.birthTimeUnknown,
3783
3788
  onMouseDown: (o) => o.preventDefault(),
3784
3789
  onClick: (o) => {
3785
- o.preventDefault(), o.stopPropagation(), !n.birthTimeUnknown && (K(fe(n.birthTime || "12:00")), ie((s) => !s));
3790
+ o.preventDefault(), o.stopPropagation(), !n.birthTimeUnknown && (se(Z(n.birthTime || "12:00")), ue((s) => !s));
3786
3791
  },
3787
3792
  children: /* @__PURE__ */ t.jsx(
3788
3793
  "img",
@@ -3795,7 +3800,7 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3795
3800
  )
3796
3801
  }
3797
3802
  ),
3798
- De && !n.birthTimeUnknown && /* @__PURE__ */ t.jsxs(
3803
+ ve && !n.birthTimeUnknown && /* @__PURE__ */ t.jsxs(
3799
3804
  "div",
3800
3805
  {
3801
3806
  className: a.timePopover,
@@ -3807,8 +3812,8 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3807
3812
  "select",
3808
3813
  {
3809
3814
  className: a.timePickerSelect,
3810
- value: ce.hour12,
3811
- onChange: (o) => K((s) => ({
3815
+ value: pe.hour12,
3816
+ onChange: (o) => se((s) => ({
3812
3817
  ...s,
3813
3818
  hour12: Number(o.target.value)
3814
3819
  })),
@@ -3821,8 +3826,8 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3821
3826
  "select",
3822
3827
  {
3823
3828
  className: a.timePickerSelect,
3824
- value: ce.minute,
3825
- onChange: (o) => K((s) => ({ ...s, minute: o.target.value })),
3829
+ value: pe.minute,
3830
+ onChange: (o) => se((s) => ({ ...s, minute: o.target.value })),
3826
3831
  "aria-label": r("timePickerMinute"),
3827
3832
  children: Pt.map((o) => /* @__PURE__ */ t.jsx("option", { value: o, children: o }, o))
3828
3833
  }
@@ -3832,8 +3837,8 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3832
3837
  "button",
3833
3838
  {
3834
3839
  type: "button",
3835
- className: `${a.meridiemBtn} ${ce.meridiem === "AM" ? a.meridiemActive : ""}`,
3836
- onClick: () => K((o) => ({ ...o, meridiem: "AM" })),
3840
+ className: `${a.meridiemBtn} ${pe.meridiem === "AM" ? a.meridiemActive : ""}`,
3841
+ onClick: () => se((o) => ({ ...o, meridiem: "AM" })),
3837
3842
  children: "AM"
3838
3843
  }
3839
3844
  ),
@@ -3841,8 +3846,8 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3841
3846
  "button",
3842
3847
  {
3843
3848
  type: "button",
3844
- className: `${a.meridiemBtn} ${ce.meridiem === "PM" ? a.meridiemActive : ""}`,
3845
- onClick: () => K((o) => ({ ...o, meridiem: "PM" })),
3849
+ className: `${a.meridiemBtn} ${pe.meridiem === "PM" ? a.meridiemActive : ""}`,
3850
+ onClick: () => se((o) => ({ ...o, meridiem: "PM" })),
3846
3851
  children: "PM"
3847
3852
  }
3848
3853
  )
@@ -3854,7 +3859,7 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3854
3859
  {
3855
3860
  type: "button",
3856
3861
  className: a.timePopoverBtn,
3857
- onClick: () => ie(!1),
3862
+ onClick: () => ue(!1),
3858
3863
  children: r("timePickerCancel")
3859
3864
  }
3860
3865
  ),
@@ -3864,8 +3869,8 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3864
3869
  type: "button",
3865
3870
  className: `${a.timePopoverBtn} ${a.timePopoverOk}`,
3866
3871
  onClick: () => {
3867
- const o = ge(ce);
3868
- u({ birthTime: o }), j("birthTime", o), ie(!1);
3872
+ const o = Ae(pe);
3873
+ u({ birthTime: o }), j("birthTime", o), ue(!1);
3869
3874
  },
3870
3875
  "aria-label": "OK",
3871
3876
  children: /* @__PURE__ */ t.jsx(
@@ -4142,33 +4147,33 @@ const tr = (r, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4142
4147
  planSheetOpen: _,
4143
4148
  selectedPlan: I
4144
4149
  }) => {
4145
- const p = rt(), b = p?.config.isGlobal ?? !0, P = p?.config?.variant, ee = Xe(
4150
+ const p = rt(), b = p?.config.isGlobal ?? !0, P = p?.config?.variant, te = Xe(
4146
4151
  () => Tr(n, b, g),
4147
4152
  [n, b, g]
4148
- ), Y = ee === null, $ = P === "v1" && p?.config?.showSheet, B = b ? S ?? r("formDiscountedPrice") : $ ? "" : "₹499", G = p?.config.imageComponent ?? tt, W = (Q) => {
4149
- if (Q.preventDefault(), P === "v1" && !Y && f?.trackKundliDetailedClicked?.(), !Y) {
4150
- ee && y?.(ee);
4153
+ ), q = te === null, H = P === "v1" && p?.config?.showSheet, B = b ? S ?? r("formDiscountedPrice") : H ? "" : "₹499", G = p?.config.imageComponent ?? tt, $ = (z) => {
4154
+ if (z.preventDefault(), P === "v1" && !q && f?.trackKundliDetailedClicked?.(), !q) {
4155
+ te && y?.(te);
4151
4156
  return;
4152
4157
  }
4153
- const V = !!v && P === "v1" && I?.id === hr, U = (n.phone ?? "").trim(), u = {
4158
+ const Y = !!v && P === "v1" && I?.id === hr, U = (n.phone ?? "").trim(), u = {
4154
4159
  ...n,
4155
4160
  phone: U && `${m}-${U}`
4156
4161
  };
4157
- if ($) {
4162
+ if (H) {
4158
4163
  _ ? w?.() : c?.(u);
4159
4164
  return;
4160
4165
  }
4161
- f?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), V ? v(u) : k?.(u);
4166
+ f?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), Y ? v(u) : k?.(u);
4162
4167
  }, N = /* @__PURE__ */ t.jsx(
4163
4168
  jt,
4164
4169
  {
4165
4170
  href: x,
4166
- disabled: P === "v1" ? !1 : !Y,
4167
- onClick: W,
4171
+ disabled: P === "v1" ? !1 : !q,
4172
+ onClick: $,
4168
4173
  "aria-label": r("formPriceAria"),
4169
- className: P === "v1" && Y ? He.ctaFilled : P === "v1" ? He.ctaButton : void 0,
4170
- children: P === "v1" ? Y ? /* @__PURE__ */ t.jsxs("span", { className: He.ctaFilledContent, children: [
4171
- $ ? (
4174
+ className: P === "v1" && q ? He.ctaFilled : P === "v1" ? He.ctaButton : void 0,
4175
+ children: P === "v1" ? q ? /* @__PURE__ */ t.jsxs("span", { className: He.ctaFilledContent, children: [
4176
+ H ? (
4172
4177
  // Confirm-sheet arm: the CTA leads to the details playback, not plans.
4173
4178
  r(
4174
4179
  p?.config.enableBirthDetailsConfirmation ? "formCtaDefault" : "selectPackage"
@@ -4229,4 +4234,4 @@ export {
4229
4234
  Qt as t,
4230
4235
  Nr as u
4231
4236
  };
4232
- //# sourceMappingURL=ProceedFooter-C-SsbQlr.js.map
4237
+ //# sourceMappingURL=ProceedFooter-CgFR6lAb.js.map