@srimandir/kundli-generator 7.4.0 → 7.5.1

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,62 +1,62 @@
1
- import Qe, { useContext as Xe, createContext as hr, useState as $, useRef as K, useEffect as z, useMemo as Je, useCallback as be } from "react";
1
+ import Ze, { useContext as er, createContext as _r, useState as U, useRef as F, useEffect as J, useMemo as Xe, useCallback as we } from "react";
2
2
  import { FormSectionHeader as $r, FooterCTAButton as Ur, FooterShell as Gr, CircularMarquee as Kr, footerShellStyles as je, PageHeader as Wr } from "@srimandir/astrology-common";
3
- var Ke = { exports: {} }, De = {};
4
- var lr;
3
+ var We = { exports: {} }, Fe = {};
4
+ var dr;
5
5
  function Hr() {
6
- if (lr) return De;
7
- lr = 1;
8
- var t = Qe, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
9
- function h(T, v, O) {
10
- var x, E = {}, u = null, I = null;
6
+ if (dr) return Fe;
7
+ dr = 1;
8
+ var t = Ze, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
9
+ function g(T, v, O) {
10
+ var P, E = {}, u = null, I = null;
11
11
  O !== void 0 && (u = "" + O), v.key !== void 0 && (u = "" + v.key), v.ref !== void 0 && (I = v.ref);
12
- for (x in v) d.call(v, x) && !w.hasOwnProperty(x) && (E[x] = v[x]);
13
- if (T && T.defaultProps) for (x in v = T.defaultProps, v) E[x] === void 0 && (E[x] = v[x]);
14
- return { $$typeof: o, type: T, key: u, ref: I, props: E, _owner: _.current };
12
+ for (P in v) d.call(v, P) && !x.hasOwnProperty(P) && (E[P] = v[P]);
13
+ if (T && T.defaultProps) for (P in v = T.defaultProps, v) E[P] === void 0 && (E[P] = v[P]);
14
+ return { $$typeof: o, type: T, key: u, ref: I, props: E, _owner: b.current };
15
15
  }
16
- return De.Fragment = c, De.jsx = h, De.jsxs = h, De;
16
+ return Fe.Fragment = c, Fe.jsx = g, Fe.jsxs = g, Fe;
17
17
  }
18
- var Oe = {};
19
- var cr;
18
+ var Me = {};
19
+ var ur;
20
20
  function Yr() {
21
- return cr || (cr = 1, process.env.NODE_ENV !== "production" && (function() {
22
- var t = Qe, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), d = /* @__PURE__ */ Symbol.for("react.fragment"), _ = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), h = /* @__PURE__ */ Symbol.for("react.provider"), T = /* @__PURE__ */ Symbol.for("react.context"), v = /* @__PURE__ */ Symbol.for("react.forward_ref"), O = /* @__PURE__ */ Symbol.for("react.suspense"), x = /* @__PURE__ */ Symbol.for("react.suspense_list"), E = /* @__PURE__ */ Symbol.for("react.memo"), u = /* @__PURE__ */ Symbol.for("react.lazy"), I = /* @__PURE__ */ Symbol.for("react.offscreen"), b = Symbol.iterator, F = "@@iterator";
23
- function p(e) {
21
+ return ur || (ur = 1, process.env.NODE_ENV !== "production" && (function() {
22
+ var t = Ze, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), d = /* @__PURE__ */ Symbol.for("react.fragment"), b = /* @__PURE__ */ Symbol.for("react.strict_mode"), x = /* @__PURE__ */ Symbol.for("react.profiler"), g = /* @__PURE__ */ Symbol.for("react.provider"), T = /* @__PURE__ */ Symbol.for("react.context"), v = /* @__PURE__ */ Symbol.for("react.forward_ref"), O = /* @__PURE__ */ Symbol.for("react.suspense"), P = /* @__PURE__ */ Symbol.for("react.suspense_list"), E = /* @__PURE__ */ Symbol.for("react.memo"), u = /* @__PURE__ */ Symbol.for("react.lazy"), I = /* @__PURE__ */ Symbol.for("react.offscreen"), h = Symbol.iterator, M = "@@iterator";
23
+ function f(e) {
24
24
  if (e === null || typeof e != "object")
25
25
  return null;
26
- var i = b && e[b] || e[F];
26
+ var i = h && e[h] || e[M];
27
27
  return typeof i == "function" ? i : null;
28
28
  }
29
29
  var m = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
30
30
  function y(e) {
31
31
  {
32
- for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), f = 1; f < i; f++)
33
- l[f - 1] = arguments[f];
34
- J("error", e, l);
32
+ for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++)
33
+ l[p - 1] = arguments[p];
34
+ Q("error", e, l);
35
35
  }
36
36
  }
37
- function J(e, i, l) {
37
+ function Q(e, i, l) {
38
38
  {
39
- var f = m.ReactDebugCurrentFrame, N = f.getStackAddendum();
39
+ var p = m.ReactDebugCurrentFrame, N = p.getStackAddendum();
40
40
  N !== "" && (i += "%s", l = l.concat([N]));
41
- var L = l.map(function(P) {
42
- return String(P);
41
+ var L = l.map(function(C) {
42
+ return String(C);
43
43
  });
44
44
  L.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, L);
45
45
  }
46
46
  }
47
- var V = !1, W = !1, B = !1, M = !1, A = !1, S;
47
+ var V = !1, W = !1, B = !1, $ = !1, A = !1, S;
48
48
  S = /* @__PURE__ */ Symbol.for("react.module.reference");
49
49
  function ee(e) {
50
- return !!(typeof e == "string" || typeof e == "function" || e === d || e === w || A || e === _ || e === O || e === x || M || e === I || V || W || B || typeof e == "object" && e !== null && (e.$$typeof === u || e.$$typeof === E || e.$$typeof === h || e.$$typeof === T || e.$$typeof === v || // This needs to include all possible module reference object
50
+ return !!(typeof e == "string" || typeof e == "function" || e === d || e === x || A || e === b || e === O || e === P || $ || e === I || V || W || B || typeof e == "object" && e !== null && (e.$$typeof === u || e.$$typeof === E || e.$$typeof === g || e.$$typeof === T || e.$$typeof === v || // 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 === S || e.getModuleId !== void 0));
55
55
  }
56
- function U(e, i, l) {
57
- var f = e.displayName;
58
- if (f)
59
- return f;
56
+ function z(e, i, l) {
57
+ var p = e.displayName;
58
+ if (p)
59
+ return p;
60
60
  var N = i.displayName || i.name || "";
61
61
  return N !== "" ? l + "(" + N + ")" : l;
62
62
  }
@@ -75,13 +75,13 @@ function Yr() {
75
75
  return "Fragment";
76
76
  case c:
77
77
  return "Portal";
78
- case w:
78
+ case x:
79
79
  return "Profiler";
80
- case _:
80
+ case b:
81
81
  return "StrictMode";
82
82
  case O:
83
83
  return "Suspense";
84
- case x:
84
+ case P:
85
85
  return "SuspenseList";
86
86
  }
87
87
  if (typeof e == "object")
@@ -89,18 +89,18 @@ function Yr() {
89
89
  case T:
90
90
  var i = e;
91
91
  return D(i) + ".Consumer";
92
- case h:
92
+ case g:
93
93
  var l = e;
94
94
  return D(l._context) + ".Provider";
95
95
  case v:
96
- return U(e, e.render, "ForwardRef");
96
+ return z(e, e.render, "ForwardRef");
97
97
  case E:
98
- var f = e.displayName || null;
99
- return f !== null ? f : j(e.type) || "Memo";
98
+ var p = e.displayName || null;
99
+ return p !== null ? p : j(e.type) || "Memo";
100
100
  case u: {
101
- var N = e, L = N._payload, P = N._init;
101
+ var N = e, L = N._payload, C = N._init;
102
102
  try {
103
- return j(P(L));
103
+ return j(C(L));
104
104
  } catch {
105
105
  return null;
106
106
  }
@@ -108,18 +108,18 @@ function Yr() {
108
108
  }
109
109
  return null;
110
110
  }
111
- var H = Object.assign, Y = 0, te, ne, oe, ue, me, re, Q;
112
- function ge() {
111
+ var G = Object.assign, H = 0, re, ge, X, Z, ie, te, pe;
112
+ function _e() {
113
113
  }
114
- ge.__reactDisabledLog = !0;
115
- function ve() {
114
+ _e.__reactDisabledLog = !0;
115
+ function ue() {
116
116
  {
117
- if (Y === 0) {
118
- te = console.log, ne = console.info, oe = console.warn, ue = console.error, me = console.group, re = console.groupCollapsed, Q = console.groupEnd;
117
+ if (H === 0) {
118
+ re = console.log, ge = console.info, X = console.warn, Z = console.error, ie = console.group, te = console.groupCollapsed, pe = console.groupEnd;
119
119
  var e = {
120
120
  configurable: !0,
121
121
  enumerable: !0,
122
- value: ge,
122
+ value: _e,
123
123
  writable: !0
124
124
  };
125
125
  Object.defineProperties(console, {
@@ -132,237 +132,237 @@ function Yr() {
132
132
  groupEnd: e
133
133
  });
134
134
  }
135
- Y++;
135
+ H++;
136
136
  }
137
137
  }
138
- function ye() {
138
+ function be() {
139
139
  {
140
- if (Y--, Y === 0) {
140
+ if (H--, H === 0) {
141
141
  var e = {
142
142
  configurable: !0,
143
143
  enumerable: !0,
144
144
  writable: !0
145
145
  };
146
146
  Object.defineProperties(console, {
147
- log: H({}, e, {
148
- value: te
147
+ log: G({}, e, {
148
+ value: re
149
149
  }),
150
- info: H({}, e, {
151
- value: ne
150
+ info: G({}, e, {
151
+ value: ge
152
152
  }),
153
- warn: H({}, e, {
154
- value: oe
153
+ warn: G({}, e, {
154
+ value: X
155
155
  }),
156
- error: H({}, e, {
157
- value: ue
156
+ error: G({}, e, {
157
+ value: Z
158
158
  }),
159
- group: H({}, e, {
160
- value: me
159
+ group: G({}, e, {
160
+ value: ie
161
161
  }),
162
- groupCollapsed: H({}, e, {
163
- value: re
162
+ groupCollapsed: G({}, e, {
163
+ value: te
164
164
  }),
165
- groupEnd: H({}, e, {
166
- value: Q
165
+ groupEnd: G({}, e, {
166
+ value: pe
167
167
  })
168
168
  });
169
169
  }
170
- Y < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
170
+ H < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
171
171
  }
172
172
  }
173
- var ie = m.ReactCurrentDispatcher, se;
173
+ var se = m.ReactCurrentDispatcher, ae;
174
174
  function le(e, i, l) {
175
175
  {
176
- if (se === void 0)
176
+ if (ae === void 0)
177
177
  try {
178
178
  throw Error();
179
179
  } catch (N) {
180
- var f = N.stack.trim().match(/\n( *(at )?)/);
181
- se = f && f[1] || "";
180
+ var p = N.stack.trim().match(/\n( *(at )?)/);
181
+ ae = p && p[1] || "";
182
182
  }
183
183
  return `
184
- ` + se + e;
184
+ ` + ae + e;
185
185
  }
186
186
  }
187
- var fe = !1, X;
187
+ var ce = !1, Y;
188
188
  {
189
189
  var Te = typeof WeakMap == "function" ? WeakMap : Map;
190
- X = new Te();
190
+ Y = new Te();
191
191
  }
192
- function Z(e, i) {
193
- if (!e || fe)
192
+ function ye(e, i) {
193
+ if (!e || ce)
194
194
  return "";
195
195
  {
196
- var l = X.get(e);
196
+ var l = Y.get(e);
197
197
  if (l !== void 0)
198
198
  return l;
199
199
  }
200
- var f;
201
- fe = !0;
200
+ var p;
201
+ ce = !0;
202
202
  var N = Error.prepareStackTrace;
203
203
  Error.prepareStackTrace = void 0;
204
204
  var L;
205
- L = ie.current, ie.current = null, ve();
205
+ L = se.current, se.current = null, ue();
206
206
  try {
207
207
  if (i) {
208
- var P = function() {
208
+ var C = function() {
209
209
  throw Error();
210
210
  };
211
- if (Object.defineProperty(P.prototype, "props", {
211
+ if (Object.defineProperty(C.prototype, "props", {
212
212
  set: function() {
213
213
  throw Error();
214
214
  }
215
215
  }), typeof Reflect == "object" && Reflect.construct) {
216
216
  try {
217
- Reflect.construct(P, []);
217
+ Reflect.construct(C, []);
218
218
  } catch (de) {
219
- f = de;
219
+ p = de;
220
220
  }
221
- Reflect.construct(e, [], P);
221
+ Reflect.construct(e, [], C);
222
222
  } else {
223
223
  try {
224
- P.call();
224
+ C.call();
225
225
  } catch (de) {
226
- f = de;
226
+ p = de;
227
227
  }
228
- e.call(P.prototype);
228
+ e.call(C.prototype);
229
229
  }
230
230
  } else {
231
231
  try {
232
232
  throw Error();
233
233
  } catch (de) {
234
- f = de;
234
+ p = de;
235
235
  }
236
236
  e();
237
237
  }
238
238
  } catch (de) {
239
- if (de && f && typeof de.stack == "string") {
240
- for (var k = de.stack.split(`
241
- `), ae = f.stack.split(`
242
- `), G = k.length - 1, q = ae.length - 1; G >= 1 && q >= 0 && k[G] !== ae[q]; )
239
+ if (de && p && typeof de.stack == "string") {
240
+ for (var w = de.stack.split(`
241
+ `), oe = p.stack.split(`
242
+ `), K = w.length - 1, q = oe.length - 1; K >= 1 && q >= 0 && w[K] !== oe[q]; )
243
243
  q--;
244
- for (; G >= 1 && q >= 0; G--, q--)
245
- if (k[G] !== ae[q]) {
246
- if (G !== 1 || q !== 1)
244
+ for (; K >= 1 && q >= 0; K--, q--)
245
+ if (w[K] !== oe[q]) {
246
+ if (K !== 1 || q !== 1)
247
247
  do
248
- if (G--, q--, q < 0 || k[G] !== ae[q]) {
249
- var pe = `
250
- ` + k[G].replace(" at new ", " at ");
251
- return e.displayName && pe.includes("<anonymous>") && (pe = pe.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, pe), pe;
248
+ if (K--, q--, q < 0 || w[K] !== oe[q]) {
249
+ var fe = `
250
+ ` + w[K].replace(" at new ", " at ");
251
+ return e.displayName && fe.includes("<anonymous>") && (fe = fe.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, fe), fe;
252
252
  }
253
- while (G >= 1 && q >= 0);
253
+ while (K >= 1 && q >= 0);
254
254
  break;
255
255
  }
256
256
  }
257
257
  } finally {
258
- fe = !1, ie.current = L, ye(), Error.prepareStackTrace = N;
258
+ ce = !1, se.current = L, be(), Error.prepareStackTrace = N;
259
259
  }
260
- var Ee = e ? e.displayName || e.name : "", Ce = Ee ? le(Ee) : "";
261
- return typeof e == "function" && X.set(e, Ce), Ce;
260
+ var Re = e ? e.displayName || e.name : "", Ce = Re ? le(Re) : "";
261
+ return typeof e == "function" && Y.set(e, Ce), Ce;
262
262
  }
263
- function ke(e, i, l) {
264
- return Z(e, !1);
263
+ function ne(e, i, l) {
264
+ return ye(e, !1);
265
265
  }
266
- function we(e) {
266
+ function Pe(e) {
267
267
  var i = e.prototype;
268
268
  return !!(i && i.isReactComponent);
269
269
  }
270
- function xe(e, i, l) {
270
+ function ve(e, i, l) {
271
271
  if (e == null)
272
272
  return "";
273
273
  if (typeof e == "function")
274
- return Z(e, we(e));
274
+ return ye(e, Pe(e));
275
275
  if (typeof e == "string")
276
276
  return le(e);
277
277
  switch (e) {
278
278
  case O:
279
279
  return le("Suspense");
280
- case x:
280
+ case P:
281
281
  return le("SuspenseList");
282
282
  }
283
283
  if (typeof e == "object")
284
284
  switch (e.$$typeof) {
285
285
  case v:
286
- return ke(e.render);
286
+ return ne(e.render);
287
287
  case E:
288
- return xe(e.type, i, l);
288
+ return ve(e.type, i, l);
289
289
  case u: {
290
- var f = e, N = f._payload, L = f._init;
290
+ var p = e, N = p._payload, L = p._init;
291
291
  try {
292
- return xe(L(N), i, l);
292
+ return ve(L(N), i, l);
293
293
  } catch {
294
294
  }
295
295
  }
296
296
  }
297
297
  return "";
298
298
  }
299
- var ce = Object.prototype.hasOwnProperty, C = {}, Pe = m.ReactDebugCurrentFrame;
300
- function Ae(e) {
299
+ var Ae = Object.prototype.hasOwnProperty, he = {}, k = m.ReactDebugCurrentFrame;
300
+ function xe(e) {
301
301
  if (e) {
302
- var i = e._owner, l = xe(e.type, e._source, i ? i.type : null);
303
- Pe.setExtraStackFrame(l);
302
+ var i = e._owner, l = ve(e.type, e._source, i ? i.type : null);
303
+ k.setExtraStackFrame(l);
304
304
  } else
305
- Pe.setExtraStackFrame(null);
305
+ k.setExtraStackFrame(null);
306
306
  }
307
- function Me(e, i, l, f, N) {
307
+ function Ue(e, i, l, p, N) {
308
308
  {
309
- var L = Function.call.bind(ce);
310
- for (var P in e)
311
- if (L(e, P)) {
312
- var k = void 0;
309
+ var L = Function.call.bind(Ae);
310
+ for (var C in e)
311
+ if (L(e, C)) {
312
+ var w = void 0;
313
313
  try {
314
- if (typeof e[P] != "function") {
315
- var ae = Error((f || "React class") + ": " + l + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
316
- throw ae.name = "Invariant Violation", ae;
314
+ if (typeof e[C] != "function") {
315
+ var oe = Error((p || "React class") + ": " + l + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
316
+ throw oe.name = "Invariant Violation", oe;
317
317
  }
318
- k = e[P](i, P, f, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
319
- } catch (G) {
320
- k = G;
318
+ w = e[C](i, C, p, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
319
+ } catch (K) {
320
+ w = K;
321
321
  }
322
- k && !(k instanceof Error) && (Ae(N), y("%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).", f || "React class", l, P, typeof k), Ae(null)), k instanceof Error && !(k.message in C) && (C[k.message] = !0, Ae(N), y("Failed %s type: %s", l, k.message), Ae(null));
322
+ w && !(w instanceof Error) && (xe(N), y("%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).", p || "React class", l, C, typeof w), xe(null)), w instanceof Error && !(w.message in he) && (he[w.message] = !0, xe(N), y("Failed %s type: %s", l, w.message), xe(null));
323
323
  }
324
324
  }
325
325
  }
326
- var $e = Array.isArray;
326
+ var Ge = Array.isArray;
327
327
  function Ne(e) {
328
- return $e(e);
328
+ return Ge(e);
329
329
  }
330
- function Be(e) {
330
+ function Ke(e) {
331
331
  {
332
332
  var i = typeof Symbol == "function" && Symbol.toStringTag, l = i && e[Symbol.toStringTag] || e.constructor.name || "Object";
333
333
  return l;
334
334
  }
335
335
  }
336
- function Ue(e) {
336
+ function Le(e) {
337
337
  try {
338
- return a(e), !1;
338
+ return Be(e), !1;
339
339
  } catch {
340
340
  return !0;
341
341
  }
342
342
  }
343
- function a(e) {
343
+ function Be(e) {
344
344
  return "" + e;
345
345
  }
346
- function s(e) {
347
- if (Ue(e))
348
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), a(e);
346
+ function De(e) {
347
+ if (Le(e))
348
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), Be(e);
349
349
  }
350
- var R = m.ReactCurrentOwner, he = {
350
+ var a = m.ReactCurrentOwner, s = {
351
351
  key: !0,
352
352
  ref: !0,
353
353
  __self: !0,
354
354
  __source: !0
355
- }, Se, Ge;
356
- function xr(e) {
357
- if (ce.call(e, "ref")) {
355
+ }, R, me;
356
+ function Oe(e) {
357
+ if (Ae.call(e, "ref")) {
358
358
  var i = Object.getOwnPropertyDescriptor(e, "ref").get;
359
359
  if (i && i.isReactWarning)
360
360
  return !1;
361
361
  }
362
362
  return e.ref !== void 0;
363
363
  }
364
- function Pr(e) {
365
- if (ce.call(e, "key")) {
364
+ function qe(e) {
365
+ if (Ae.call(e, "key")) {
366
366
  var i = Object.getOwnPropertyDescriptor(e, "key").get;
367
367
  if (i && i.isReactWarning)
368
368
  return !1;
@@ -370,12 +370,12 @@ function Yr() {
370
370
  return e.key !== void 0;
371
371
  }
372
372
  function Ar(e, i) {
373
- typeof e.ref == "string" && R.current;
373
+ typeof e.ref == "string" && a.current;
374
374
  }
375
375
  function Cr(e, i) {
376
376
  {
377
377
  var l = function() {
378
- Se || (Se = !0, y("%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
+ R || (R = !0, y("%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 Yr() {
386
386
  function jr(e, i) {
387
387
  {
388
388
  var l = function() {
389
- Ge || (Ge = !0, y("%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
+ me || (me = !0, y("%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,
@@ -394,70 +394,70 @@ function Yr() {
394
394
  });
395
395
  }
396
396
  }
397
- var Tr = function(e, i, l, f, N, L, P) {
398
- var k = {
397
+ var Tr = function(e, i, l, p, N, L, C) {
398
+ var w = {
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
402
402
  type: e,
403
403
  key: i,
404
404
  ref: l,
405
- props: P,
405
+ props: C,
406
406
  // Record the component responsible for creating this element.
407
407
  _owner: L
408
408
  };
409
- return k._store = {}, Object.defineProperty(k._store, "validated", {
409
+ return w._store = {}, Object.defineProperty(w._store, "validated", {
410
410
  configurable: !1,
411
411
  enumerable: !1,
412
412
  writable: !0,
413
413
  value: !1
414
- }), Object.defineProperty(k, "_self", {
414
+ }), Object.defineProperty(w, "_self", {
415
415
  configurable: !1,
416
416
  enumerable: !1,
417
417
  writable: !1,
418
- value: f
419
- }), Object.defineProperty(k, "_source", {
418
+ value: p
419
+ }), Object.defineProperty(w, "_source", {
420
420
  configurable: !1,
421
421
  enumerable: !1,
422
422
  writable: !1,
423
423
  value: N
424
- }), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
424
+ }), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
425
425
  };
426
- function Nr(e, i, l, f, N) {
426
+ function Nr(e, i, l, p, N) {
427
427
  {
428
- var L, P = {}, k = null, ae = null;
429
- l !== void 0 && (s(l), k = "" + l), Pr(i) && (s(i.key), k = "" + i.key), xr(i) && (ae = i.ref, Ar(i, N));
428
+ var L, C = {}, w = null, oe = null;
429
+ l !== void 0 && (De(l), w = "" + l), qe(i) && (De(i.key), w = "" + i.key), Oe(i) && (oe = i.ref, Ar(i, N));
430
430
  for (L in i)
431
- ce.call(i, L) && !he.hasOwnProperty(L) && (P[L] = i[L]);
431
+ Ae.call(i, L) && !s.hasOwnProperty(L) && (C[L] = i[L]);
432
432
  if (e && e.defaultProps) {
433
- var G = e.defaultProps;
434
- for (L in G)
435
- P[L] === void 0 && (P[L] = G[L]);
433
+ var K = e.defaultProps;
434
+ for (L in K)
435
+ C[L] === void 0 && (C[L] = K[L]);
436
436
  }
437
- if (k || ae) {
437
+ if (w || oe) {
438
438
  var q = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
439
- k && Cr(P, q), ae && jr(P, q);
439
+ w && Cr(C, q), oe && jr(C, q);
440
440
  }
441
- return Tr(e, k, ae, N, f, R.current, P);
441
+ return Tr(e, w, oe, N, p, a.current, C);
442
442
  }
443
443
  }
444
- var Ye = m.ReactCurrentOwner, rr = m.ReactDebugCurrentFrame;
445
- function Re(e) {
444
+ var Ve = m.ReactCurrentOwner, ar = m.ReactDebugCurrentFrame;
445
+ function Se(e) {
446
446
  if (e) {
447
- var i = e._owner, l = xe(e.type, e._source, i ? i.type : null);
448
- rr.setExtraStackFrame(l);
447
+ var i = e._owner, l = ve(e.type, e._source, i ? i.type : null);
448
+ ar.setExtraStackFrame(l);
449
449
  } else
450
- rr.setExtraStackFrame(null);
450
+ ar.setExtraStackFrame(null);
451
451
  }
452
- var qe;
453
- qe = !1;
454
- function Ve(e) {
452
+ var ze;
453
+ ze = !1;
454
+ function Je(e) {
455
455
  return typeof e == "object" && e !== null && e.$$typeof === o;
456
456
  }
457
- function tr() {
457
+ function nr() {
458
458
  {
459
- if (Ye.current) {
460
- var e = j(Ye.current.type);
459
+ if (Ve.current) {
460
+ var e = j(Ve.current.type);
461
461
  if (e)
462
462
  return `
463
463
 
@@ -469,10 +469,10 @@ Check the render method of \`` + e + "`.";
469
469
  function Sr(e) {
470
470
  return "";
471
471
  }
472
- var ar = {};
472
+ var or = {};
473
473
  function Rr(e) {
474
474
  {
475
- var i = tr();
475
+ var i = nr();
476
476
  if (!i) {
477
477
  var l = typeof e == "string" ? e : e.displayName || e.name;
478
478
  l && (i = `
@@ -482,35 +482,35 @@ Check the top-level render call using <` + l + ">.");
482
482
  return i;
483
483
  }
484
484
  }
485
- function nr(e, i) {
485
+ function ir(e, i) {
486
486
  {
487
487
  if (!e._store || e._store.validated || e.key != null)
488
488
  return;
489
489
  e._store.validated = !0;
490
490
  var l = Rr(i);
491
- if (ar[l])
491
+ if (or[l])
492
492
  return;
493
- ar[l] = !0;
494
- var f = "";
495
- e && e._owner && e._owner !== Ye.current && (f = " It was passed a child from " + j(e._owner.type) + "."), Re(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, f), Re(null);
493
+ or[l] = !0;
494
+ var p = "";
495
+ e && e._owner && e._owner !== Ve.current && (p = " It was passed a child from " + j(e._owner.type) + "."), Se(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, p), Se(null);
496
496
  }
497
497
  }
498
- function or(e, i) {
498
+ function sr(e, i) {
499
499
  {
500
500
  if (typeof e != "object")
501
501
  return;
502
502
  if (Ne(e))
503
503
  for (var l = 0; l < e.length; l++) {
504
- var f = e[l];
505
- Ve(f) && nr(f, i);
504
+ var p = e[l];
505
+ Je(p) && ir(p, i);
506
506
  }
507
- else if (Ve(e))
507
+ else if (Je(e))
508
508
  e._store && (e._store.validated = !0);
509
509
  else if (e) {
510
- var N = p(e);
510
+ var N = f(e);
511
511
  if (typeof N == "function" && N !== e.entries)
512
- for (var L = N.call(e), P; !(P = L.next()).done; )
513
- Ve(P.value) && nr(P.value, i);
512
+ for (var L = N.call(e), C; !(C = L.next()).done; )
513
+ Je(C.value) && ir(C.value, i);
514
514
  }
515
515
  }
516
516
  }
@@ -529,10 +529,10 @@ Check the top-level render call using <` + l + ">.");
529
529
  else
530
530
  return;
531
531
  if (l) {
532
- var f = j(i);
533
- Me(l, e.props, "prop", f, e);
534
- } else if (i.PropTypes !== void 0 && !qe) {
535
- qe = !0;
532
+ var p = j(i);
533
+ Ue(l, e.props, "prop", p, e);
534
+ } else if (i.PropTypes !== void 0 && !ze) {
535
+ ze = !0;
536
536
  var N = j(i);
537
537
  y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
538
538
  }
@@ -542,79 +542,90 @@ Check the top-level render call using <` + l + ">.");
542
542
  function Ir(e) {
543
543
  {
544
544
  for (var i = Object.keys(e.props), l = 0; l < i.length; l++) {
545
- var f = i[l];
546
- if (f !== "children" && f !== "key") {
547
- Re(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), Re(null);
545
+ var p = i[l];
546
+ if (p !== "children" && p !== "key") {
547
+ Se(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), Se(null);
548
548
  break;
549
549
  }
550
550
  }
551
- e.ref !== null && (Re(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), Re(null));
551
+ e.ref !== null && (Se(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), Se(null));
552
552
  }
553
553
  }
554
- var ir = {};
555
- function sr(e, i, l, f, N, L) {
554
+ var lr = {};
555
+ function cr(e, i, l, p, N, L) {
556
556
  {
557
- var P = ee(e);
558
- if (!P) {
559
- var k = "";
560
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (k += " 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 ae = Sr();
562
- ae ? k += ae : k += tr();
563
- var G;
564
- e === null ? G = "null" : Ne(e) ? G = "array" : e !== void 0 && e.$$typeof === o ? (G = "<" + (j(e.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : G = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, k);
557
+ var C = ee(e);
558
+ if (!C) {
559
+ var w = "";
560
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (w += " 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 oe = Sr();
562
+ oe ? w += oe : w += nr();
563
+ var K;
564
+ e === null ? K = "null" : Ne(e) ? K = "array" : e !== void 0 && e.$$typeof === o ? (K = "<" + (j(e.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : K = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, w);
565
565
  }
566
566
  var q = Nr(e, i, l, N, L);
567
567
  if (q == null)
568
568
  return q;
569
- if (P) {
570
- var pe = i.children;
571
- if (pe !== void 0)
572
- if (f)
573
- if (Ne(pe)) {
574
- for (var Ee = 0; Ee < pe.length; Ee++)
575
- or(pe[Ee], e);
576
- Object.freeze && Object.freeze(pe);
569
+ if (C) {
570
+ var fe = i.children;
571
+ if (fe !== void 0)
572
+ if (p)
573
+ if (Ne(fe)) {
574
+ for (var Re = 0; Re < fe.length; Re++)
575
+ sr(fe[Re], e);
576
+ Object.freeze && Object.freeze(fe);
577
577
  } else
578
578
  y("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
- or(pe, e);
580
+ sr(fe, e);
581
581
  }
582
- if (ce.call(i, "key")) {
582
+ if (Ae.call(i, "key")) {
583
583
  var Ce = j(e), de = Object.keys(i).filter(function(Mr) {
584
584
  return Mr !== "key";
585
- }), ze = de.length > 0 ? "{key: someKey, " + de.join(": ..., ") + ": ...}" : "{key: someKey}";
586
- if (!ir[Ce + ze]) {
585
+ }), Qe = de.length > 0 ? "{key: someKey, " + de.join(": ..., ") + ": ...}" : "{key: someKey}";
586
+ if (!lr[Ce + Qe]) {
587
587
  var Fr = de.length > 0 ? "{" + de.join(": ..., ") + ": ...}" : "{}";
588
588
  y(`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:
592
592
  let props = %s;
593
- <%s key={someKey} {...props} />`, ze, Ce, Fr, Ce), ir[Ce + ze] = !0;
593
+ <%s key={someKey} {...props} />`, Qe, Ce, Fr, Ce), lr[Ce + Qe] = !0;
594
594
  }
595
595
  }
596
596
  return e === d ? Ir(q) : Er(q), q;
597
597
  }
598
598
  }
599
599
  function Lr(e, i, l) {
600
- return sr(e, i, l, !0);
600
+ return cr(e, i, l, !0);
601
601
  }
602
602
  function Br(e, i, l) {
603
- return sr(e, i, l, !1);
603
+ return cr(e, i, l, !1);
604
604
  }
605
605
  var Dr = Br, Or = Lr;
606
- Oe.Fragment = d, Oe.jsx = Dr, Oe.jsxs = Or;
607
- })()), Oe;
606
+ Me.Fragment = d, Me.jsx = Dr, Me.jsxs = Or;
607
+ })()), Me;
608
608
  }
609
- var dr;
609
+ var mr;
610
610
  function qr() {
611
- return dr || (dr = 1, process.env.NODE_ENV === "production" ? Ke.exports = Hr() : Ke.exports = Yr()), Ke.exports;
611
+ return mr || (mr = 1, process.env.NODE_ENV === "production" ? We.exports = Hr() : We.exports = Yr()), We.exports;
612
612
  }
613
613
  var r = qr();
614
- const gr = ["en", "hi"], ur = {
614
+ const Vr = "_container_1e1th_1", zr = "_main_1e1th_7", Jr = "_kundliHeaderNoBorder_1e1th_12", Qr = "_headerSeparator_1e1th_16", Xr = "_langDropdownWrap_1e1th_21", Zr = "_langTrigger_1e1th_25", et = "_langIcon_1e1th_37", rt = "_langLabel_1e1th_44", tt = "_langMenu_1e1th_49", at = "_langOption_1e1th_55", ke = {
615
+ container: Vr,
616
+ main: zr,
617
+ kundliHeaderNoBorder: Jr,
618
+ headerSeparator: Qr,
619
+ langDropdownWrap: Xr,
620
+ langTrigger: Zr,
621
+ langIcon: et,
622
+ langLabel: rt,
623
+ langMenu: tt,
624
+ langOption: at
625
+ }, br = ["en", "hi"], fr = {
615
626
  en: "English",
616
627
  hi: "हिन्दी"
617
- }, _r = {
628
+ }, yr = {
618
629
  en: {
619
630
  kundli: "Kundli",
620
631
  birthChart: "Birth Chart",
@@ -1046,35 +1057,24 @@ const gr = ["en", "hi"], ur = {
1046
1057
  astrologyGuidance: "ज्योतिष से सलाह",
1047
1058
  selectPackage: "पैकेज चुनें"
1048
1059
  }
1049
- }, br = hr(null), Mn = ({
1060
+ }, vr = _r(null), Mn = ({
1050
1061
  locale: t,
1051
1062
  children: o
1052
1063
  }) => {
1053
- const d = { locale: t, t: (_) => _r[t]?.[_] ?? _ };
1054
- return /* @__PURE__ */ r.jsx(br.Provider, { value: d, children: o });
1064
+ const d = { locale: t, t: (b) => yr[t]?.[b] ?? b };
1065
+ return /* @__PURE__ */ r.jsx(vr.Provider, { value: d, children: o });
1055
1066
  };
1056
- function Vr() {
1057
- return Xe(br);
1067
+ function nt() {
1068
+ return er(vr);
1058
1069
  }
1059
- const zr = "_container_1e1th_1", Jr = "_main_1e1th_7", Qr = "_kundliHeaderNoBorder_1e1th_12", Xr = "_headerSeparator_1e1th_16", Zr = "_langDropdownWrap_1e1th_21", et = "_langTrigger_1e1th_25", rt = "_langIcon_1e1th_37", tt = "_langLabel_1e1th_44", at = "_langMenu_1e1th_49", nt = "_langOption_1e1th_55", _e = {
1060
- container: zr,
1061
- main: Jr,
1062
- kundliHeaderNoBorder: Qr,
1063
- headerSeparator: Xr,
1064
- langDropdownWrap: Zr,
1065
- langTrigger: et,
1066
- langIcon: rt,
1067
- langLabel: tt,
1068
- langMenu: at,
1069
- langOption: nt
1070
- }, He = (t) => {
1071
- const { priority: o, fetchPriority: c, width: d, height: _, ...w } = t;
1072
- return Qe.createElement("img", {
1073
- ...w,
1070
+ const Ye = (t) => {
1071
+ const { priority: o, fetchPriority: c, width: d, height: b, ...x } = t;
1072
+ return Ze.createElement("img", {
1073
+ ...x,
1074
1074
  width: d ?? 1,
1075
- height: _ ?? 1,
1075
+ height: b ?? 1,
1076
1076
  decoding: "async",
1077
- loading: w.loading ?? (o ? "eager" : "lazy"),
1077
+ loading: x.loading ?? (o ? "eager" : "lazy"),
1078
1078
  ...c && { fetchPriority: c }
1079
1079
  });
1080
1080
  };
@@ -1111,15 +1111,15 @@ function Un() {
1111
1111
  return !1;
1112
1112
  }
1113
1113
  }
1114
- const yr = "kundli_language";
1114
+ const kr = "kundli_language";
1115
1115
  function st() {
1116
- const t = ot(yr);
1117
- return t && gr.includes(t) ? t : null;
1116
+ const t = ot(kr);
1117
+ return t && br.includes(t) ? t : null;
1118
1118
  }
1119
1119
  function lt(t) {
1120
- it(yr, t);
1120
+ it(kr, t);
1121
1121
  }
1122
- const Ze = hr(null), ct = {
1122
+ const rr = _r(null), ct = {
1123
1123
  fullName: "",
1124
1124
  phone: "",
1125
1125
  gender: "",
@@ -1134,143 +1134,152 @@ const Ze = hr(null), ct = {
1134
1134
  showLanguageSelector: o = !0,
1135
1135
  showSheet: c,
1136
1136
  userId: d,
1137
- isGlobal: _,
1138
- variant: w,
1139
- googleMapsApiKey: h,
1140
- atlasSearchLocalities: T,
1141
- googleMapsAutocompleteEnabled: v,
1142
- logoUrl: O,
1143
- reportImageUrl: x,
1144
- reportImagePriority: E,
1145
- backgroundImagePriority: u,
1146
- universityLogoUrls: I,
1147
- sampleReportHref: b,
1148
- onViewSampleReport: F,
1149
- ctaHref: p,
1150
- onCtaClick: m,
1151
- onBack: y,
1152
- readMoreReviewsHref: J,
1153
- onProceed: V,
1154
- proceedHref: W,
1155
- originalPriceLabel: B,
1156
- discountedPriceLabel: M,
1157
- discountPillLabel: A,
1158
- analytics: S,
1159
- onProceedGuidance: ee,
1160
- onLocaleChange: U,
1161
- imageComponent: D = He,
1162
- resolvedUtmBannerImageUrl: j,
1163
- children: H
1137
+ isGlobal: b,
1138
+ variant: x,
1139
+ initialFormValues: g,
1140
+ autoOpenPlanSheet: T,
1141
+ googleMapsApiKey: v,
1142
+ atlasSearchLocalities: O,
1143
+ googleMapsAutocompleteEnabled: P,
1144
+ logoUrl: E,
1145
+ reportImageUrl: u,
1146
+ reportImagePriority: I,
1147
+ backgroundImagePriority: h,
1148
+ universityLogoUrls: M,
1149
+ sampleReportHref: f,
1150
+ onViewSampleReport: m,
1151
+ ctaHref: y,
1152
+ onCtaClick: Q,
1153
+ onBack: V,
1154
+ readMoreReviewsHref: W,
1155
+ onProceed: B,
1156
+ proceedHref: $,
1157
+ originalPriceLabel: A,
1158
+ discountedPriceLabel: S,
1159
+ discountPillLabel: ee,
1160
+ analytics: z,
1161
+ onProceedGuidance: D,
1162
+ onLocaleChange: j,
1163
+ imageComponent: G = Ye,
1164
+ resolvedUtmBannerImageUrl: H,
1165
+ children: re
1164
1166
  }) => {
1165
- const [Y, te] = $("landing"), [ne, oe] = $(t ?? "en"), [ue, me] = $(ct), re = K(!0);
1166
- z(() => {
1167
- const ie = st();
1168
- ie && oe(ie);
1169
- }, []), z(() => {
1170
- lt(ne);
1171
- }, [ne]), z(() => {
1172
- if (re.current) {
1173
- re.current = !1;
1167
+ const [ge, X] = U("landing"), [Z, ie] = U(t ?? "en"), [te, pe] = U({
1168
+ ...ct,
1169
+ ...g
1170
+ }), _e = F(!0);
1171
+ J(() => {
1172
+ const le = st();
1173
+ le && ie(le);
1174
+ }, []), J(() => {
1175
+ lt(Z);
1176
+ }, [Z]), J(() => {
1177
+ if (_e.current) {
1178
+ _e.current = !1;
1174
1179
  return;
1175
1180
  }
1176
- U?.(ne);
1177
- }, [ne, U]);
1178
- const Q = Je(
1181
+ j?.(Z);
1182
+ }, [Z, j]);
1183
+ const ue = Xe(
1179
1184
  () => ({
1180
1185
  locale: t,
1181
1186
  showLanguageSelector: o,
1182
1187
  showSheet: c,
1183
1188
  userId: d,
1184
- isGlobal: _,
1185
- variant: w,
1186
- googleMapsApiKey: h,
1187
- atlasSearchLocalities: T,
1188
- googleMapsAutocompleteEnabled: v,
1189
- logoUrl: O,
1190
- reportImageUrl: x,
1191
- reportImagePriority: E,
1192
- backgroundImagePriority: u,
1193
- universityLogoUrls: I,
1194
- sampleReportHref: b,
1195
- onViewSampleReport: F,
1196
- ctaHref: p,
1197
- onCtaClick: m,
1198
- onBack: y,
1199
- readMoreReviewsHref: J,
1200
- onProceed: V,
1201
- proceedHref: W,
1202
- originalPriceLabel: B,
1203
- discountedPriceLabel: M,
1204
- discountPillLabel: A,
1205
- analytics: S,
1206
- onProceedGuidance: ee,
1207
- onLocaleChange: U,
1208
- imageComponent: D,
1209
- resolvedUtmBannerImageUrl: j
1189
+ isGlobal: b,
1190
+ variant: x,
1191
+ initialFormValues: g,
1192
+ autoOpenPlanSheet: T,
1193
+ googleMapsApiKey: v,
1194
+ atlasSearchLocalities: O,
1195
+ googleMapsAutocompleteEnabled: P,
1196
+ logoUrl: E,
1197
+ reportImageUrl: u,
1198
+ reportImagePriority: I,
1199
+ backgroundImagePriority: h,
1200
+ universityLogoUrls: M,
1201
+ sampleReportHref: f,
1202
+ onViewSampleReport: m,
1203
+ ctaHref: y,
1204
+ onCtaClick: Q,
1205
+ onBack: V,
1206
+ readMoreReviewsHref: W,
1207
+ onProceed: B,
1208
+ proceedHref: $,
1209
+ originalPriceLabel: A,
1210
+ discountedPriceLabel: S,
1211
+ discountPillLabel: ee,
1212
+ analytics: z,
1213
+ onProceedGuidance: D,
1214
+ onLocaleChange: j,
1215
+ imageComponent: G,
1216
+ resolvedUtmBannerImageUrl: H
1210
1217
  }),
1211
1218
  [
1212
1219
  t,
1213
1220
  o,
1214
1221
  c,
1215
1222
  d,
1216
- _,
1217
- w,
1218
- h,
1223
+ b,
1224
+ x,
1225
+ g,
1219
1226
  T,
1220
1227
  v,
1221
1228
  O,
1222
- x,
1229
+ P,
1223
1230
  E,
1224
1231
  u,
1225
1232
  I,
1226
- b,
1227
- F,
1228
- p,
1233
+ h,
1234
+ M,
1235
+ f,
1229
1236
  m,
1230
1237
  y,
1231
- J,
1238
+ Q,
1232
1239
  V,
1233
1240
  W,
1234
1241
  B,
1235
- M,
1242
+ $,
1236
1243
  A,
1237
1244
  S,
1238
1245
  ee,
1239
- U,
1246
+ z,
1240
1247
  D,
1241
- j
1248
+ j,
1249
+ G,
1250
+ H
1242
1251
  ]
1243
- ), ge = be(() => {
1244
- te("form");
1245
- }, [Q.analytics]), ve = be(() => {
1246
- te("landing"), Q.onBack?.();
1247
- }, [Q.onBack]), ye = Je(
1252
+ ), be = we(() => {
1253
+ X("form");
1254
+ }, [ue.analytics]), se = we(() => {
1255
+ X("landing"), ue.onBack?.();
1256
+ }, [ue.onBack]), ae = Xe(
1248
1257
  () => ({
1249
- view: Y,
1250
- locale: ne,
1251
- setLocale: oe,
1252
- config: Q,
1253
- formValues: ue,
1254
- setFormValues: me,
1255
- goToForm: ge,
1256
- goToPage: ve,
1257
- onProceed: Q.onProceed,
1258
- onProceedGuidance: Q.onProceedGuidance
1258
+ view: ge,
1259
+ locale: Z,
1260
+ setLocale: ie,
1261
+ config: ue,
1262
+ formValues: te,
1263
+ setFormValues: pe,
1264
+ goToForm: be,
1265
+ goToPage: se,
1266
+ onProceed: ue.onProceed,
1267
+ onProceedGuidance: ue.onProceedGuidance
1259
1268
  }),
1260
- [Y, ne, Q, ue, ge, ve]
1269
+ [ge, Z, ue, te, be, se]
1261
1270
  );
1262
- return /* @__PURE__ */ r.jsx(Ze.Provider, { value: ye, children: H });
1271
+ return /* @__PURE__ */ r.jsx(rr.Provider, { value: ae, children: re });
1263
1272
  };
1264
- function Le() {
1265
- return Xe(Ze);
1273
+ function Ie() {
1274
+ return er(rr);
1266
1275
  }
1267
1276
  function Kn() {
1268
- const t = Xe(Ze);
1277
+ const t = er(rr);
1269
1278
  if (!t)
1270
1279
  throw new Error("useKundliContextOrThrow must be used within KundliProvider");
1271
1280
  return t;
1272
1281
  }
1273
- const dt = "_header_19172_1", ut = "_centered_19172_8", mr = {
1282
+ const dt = "_header_19172_1", ut = "_centered_19172_8", pr = {
1274
1283
  header: dt,
1275
1284
  centered: ut
1276
1285
  }, mt = ({
@@ -1285,7 +1294,7 @@ const dt = "_header_19172_1", ut = "_centered_19172_8", mr = {
1285
1294
  subtitle: t("formSubtitle"),
1286
1295
  onBack: o,
1287
1296
  backAriaLabel: t("back"),
1288
- className: `${mr.header} ${d === "center" ? mr.centered : ""} ${c}`
1297
+ className: `${pr.header} ${d === "center" ? pr.centered : ""} ${c}`
1289
1298
  }
1290
1299
  ), ft = "_wrap_119w3_1", pt = "_card_119w3_5", ht = "_cardInner_119w3_12", gt = "_field_119w3_44", _t = "_labelRow_119w3_48", bt = "_label_119w3_48", yt = "_req_119w3_57", vt = "_help_119w3_61", kt = "_choiceRow_119w3_68", wt = "_choiceBtn_119w3_74", xt = "_choiceBtnActive_119w3_99", Pt = "_infoBtn_119w3_105", At = "_infoImg_119w3_122", Ct = "_infoWrap_119w3_128", jt = "_tooltip_119w3_134", Tt = "_tooltipArrow_119w3_150", Nt = "_inputWrap_119w3_161", St = "_isdWrap_119w3_165", Rt = "_phoneInputGroup_119w3_169", Et = "_isdSelectWrap_119w3_178", It = "_isdSelectTrigger_119w3_197", Lt = "_isdDropdown_119w3_214", Bt = "_isdSearchWrap_119w3_229", Dt = "_isdSearchInput_119w3_237", Ot = "_isdOption_119w3_255", Ft = "_isdOptionActive_119w3_275", Mt = "_isdCountryName_119w3_281", $t = "_isdCountryCode_119w3_288", Ut = "_isdNoResult_119w3_295", Gt = "_suggestions_119w3_302", Kt = "_suggestionItem_119w3_315", Wt = "_suggestionMain_119w3_333", Ht = "_suggestionSecondary_119w3_339", Yt = "_suggestionsHint_119w3_344", qt = "_timePopover_119w3_366", Vt = "_timePickerRow_119w3_382", zt = "_timePickerSelect_119w3_388", Jt = "_timePickerColon_119w3_404", Qt = "_meridiemToggle_119w3_412", Xt = "_meridiemBtn_119w3_421", Zt = "_meridiemActive_119w3_436", ea = "_timePopoverActions_119w3_441", ra = "_timePopoverBtn_119w3_447", ta = "_timePopoverOk_119w3_466", aa = "_input_119w3_161", na = "_phoneInput_119w3_169", oa = "_iconBtn_119w3_519", ia = "_iconBtnInteractive_119w3_525", sa = "_iconImg_119w3_544", la = "_checkboxRow_119w3_550", ca = "_checkbox_119w3_550", da = "_checkboxText_119w3_588", n = {
1291
1300
  wrap: ft,
@@ -1341,20 +1350,20 @@ const dt = "_header_19172_1", ut = "_centered_19172_8", mr = {
1341
1350
  checkbox: ca,
1342
1351
  checkboxText: da
1343
1352
  };
1344
- let We = null;
1345
- const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : We || (We = new Promise((c, d) => {
1346
- const _ = document.querySelector(
1353
+ let He = null;
1354
+ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : He || (He = new Promise((c, d) => {
1355
+ const b = document.querySelector(
1347
1356
  'script[data-google-maps-places="true"]'
1348
1357
  );
1349
- if (_) {
1350
- _.addEventListener("load", () => c()), _.addEventListener(
1358
+ if (b) {
1359
+ b.addEventListener("load", () => c()), b.addEventListener(
1351
1360
  "error",
1352
1361
  () => d(new Error("Failed to load Google Maps API"))
1353
1362
  );
1354
1363
  return;
1355
1364
  }
1356
- const w = document.createElement("script"), h = new URL("https://maps.googleapis.com/maps/api/js");
1357
- h.searchParams.set("key", t), h.searchParams.set("libraries", "places"), h.searchParams.set("loading", "async"), o && h.searchParams.set("language", o), w.src = h.toString(), w.async = !0, w.defer = !0, w.setAttribute("data-google-maps-places", "true"), w.onload = () => {
1365
+ const x = document.createElement("script"), g = new URL("https://maps.googleapis.com/maps/api/js");
1366
+ g.searchParams.set("key", t), g.searchParams.set("libraries", "places"), g.searchParams.set("loading", "async"), o && g.searchParams.set("language", o), x.src = g.toString(), x.async = !0, x.defer = !0, x.setAttribute("data-google-maps-places", "true"), x.onload = () => {
1358
1367
  const T = Date.now(), v = () => {
1359
1368
  if (window.google?.maps?.places) {
1360
1369
  c();
@@ -1371,43 +1380,43 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
1371
1380
  window.setTimeout(v, 50);
1372
1381
  };
1373
1382
  v();
1374
- }, w.onerror = () => d(new Error("Failed to load Google Maps API")), document.head.appendChild(w);
1375
- }), We), ma = (t) => {
1376
- const { apiKey: o, language: c = "en", restrictCountry: d, deferLoad: _ = !1 } = t, [w, h] = $(!1), [T, v] = $([]), [O, x] = $(!1), [E, u] = $(null), [I, b] = $(!_), F = K(null), p = K(null), m = K(null), y = be(() => {
1377
- _ && b(!0);
1378
- }, [_]);
1379
- z(() => {
1383
+ }, x.onerror = () => d(new Error("Failed to load Google Maps API")), document.head.appendChild(x);
1384
+ }), He), ma = (t) => {
1385
+ const { apiKey: o, language: c = "en", restrictCountry: d, deferLoad: b = !1 } = t, [x, g] = U(!1), [T, v] = U([]), [O, P] = U(!1), [E, u] = U(null), [I, h] = U(!b), M = F(null), f = F(null), m = F(null), y = we(() => {
1386
+ b && h(!0);
1387
+ }, [b]);
1388
+ J(() => {
1380
1389
  if (!o || !I) {
1381
- h(!1), u(null);
1390
+ g(!1), u(null);
1382
1391
  return;
1383
1392
  }
1384
1393
  ua(o, c).then(() => {
1385
- F.current = new google.maps.places.AutocompleteService();
1394
+ M.current = new google.maps.places.AutocompleteService();
1386
1395
  const B = document.createElement("div");
1387
- p.current = new google.maps.places.PlacesService(B), m.current = new google.maps.places.AutocompleteSessionToken(), h(!0), u(null);
1396
+ f.current = new google.maps.places.PlacesService(B), m.current = new google.maps.places.AutocompleteSessionToken(), g(!0), u(null);
1388
1397
  }).catch((B) => {
1389
- h(!1), u(B?.message || "Failed to load location service");
1398
+ g(!1), u(B?.message || "Failed to load location service");
1390
1399
  });
1391
1400
  }, [o, c, I]);
1392
- const J = be(
1401
+ const Q = we(
1393
1402
  async (B) => {
1394
- if (!B || B.length < 2 || !F.current) {
1403
+ if (!B || B.length < 2 || !M.current) {
1395
1404
  v([]);
1396
1405
  return;
1397
1406
  }
1398
- x(!0);
1407
+ P(!0);
1399
1408
  try {
1400
- const M = {
1409
+ const $ = {
1401
1410
  input: B,
1402
1411
  types: ["(cities)"],
1403
1412
  sessionToken: m.current ?? void 0
1404
1413
  };
1405
- d && (M.componentRestrictions = { country: d });
1414
+ d && ($.componentRestrictions = { country: d });
1406
1415
  const A = await new Promise((S, ee) => {
1407
- F.current.getPlacePredictions(
1408
- M,
1409
- (U, D) => {
1410
- D === google.maps.places.PlacesServiceStatus.OK && U ? S(U) : D === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? S([]) : ee(new Error(`Places API error: ${D}`));
1416
+ M.current.getPlacePredictions(
1417
+ $,
1418
+ (z, D) => {
1419
+ D === google.maps.places.PlacesServiceStatus.OK && z ? S(z) : D === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? S([]) : ee(new Error(`Places API error: ${D}`));
1411
1420
  }
1412
1421
  );
1413
1422
  });
@@ -1424,39 +1433,39 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
1424
1433
  } catch {
1425
1434
  v([]);
1426
1435
  } finally {
1427
- x(!1);
1436
+ P(!1);
1428
1437
  }
1429
1438
  },
1430
1439
  [d]
1431
- ), V = be(
1440
+ ), V = we(
1432
1441
  async (B) => {
1433
- if (!p.current) return null;
1442
+ if (!f.current) return null;
1434
1443
  try {
1435
- const M = await new Promise(
1436
- (j, H) => {
1437
- p.current.getDetails(
1444
+ const $ = await new Promise(
1445
+ (j, G) => {
1446
+ f.current.getDetails(
1438
1447
  {
1439
1448
  placeId: B,
1440
1449
  fields: ["geometry", "address_components", "formatted_address"],
1441
1450
  sessionToken: m.current ?? void 0
1442
1451
  },
1443
- (Y, te) => {
1444
- te === google.maps.places.PlacesServiceStatus.OK && Y ? j(Y) : H(new Error(`Place details error: ${te}`));
1452
+ (H, re) => {
1453
+ re === google.maps.places.PlacesServiceStatus.OK && H ? j(H) : G(new Error(`Place details error: ${re}`));
1445
1454
  }
1446
1455
  );
1447
1456
  }
1448
1457
  );
1449
1458
  m.current = new google.maps.places.AutocompleteSessionToken();
1450
- const A = M.geometry?.location?.lat() || 0, S = M.geometry?.location?.lng() || 0;
1451
- let ee = "", U = "", D = "";
1452
- return M.address_components?.forEach((j) => {
1453
- j.types.includes("locality") && (ee = j.long_name), j.types.includes("administrative_area_level_1") && (U = j.long_name), j.types.includes("country") && (D = j.long_name);
1459
+ const A = $.geometry?.location?.lat() || 0, S = $.geometry?.location?.lng() || 0;
1460
+ let ee = "", z = "", D = "";
1461
+ return $.address_components?.forEach((j) => {
1462
+ j.types.includes("locality") && (ee = j.long_name), j.types.includes("administrative_area_level_1") && (z = j.long_name), j.types.includes("country") && (D = j.long_name);
1454
1463
  }), {
1455
- display_name: M.formatted_address || "",
1464
+ display_name: $.formatted_address || "",
1456
1465
  lat: A,
1457
1466
  lng: S,
1458
1467
  city: ee,
1459
- state: U,
1468
+ state: z,
1460
1469
  country: D
1461
1470
  };
1462
1471
  } catch {
@@ -1464,19 +1473,19 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
1464
1473
  }
1465
1474
  },
1466
1475
  []
1467
- ), W = be(() => v([]), []);
1476
+ ), W = we(() => v([]), []);
1468
1477
  return {
1469
- isLoaded: w,
1478
+ isLoaded: x,
1470
1479
  predictions: T,
1471
1480
  isSearching: O,
1472
1481
  loadError: E,
1473
- searchPlaces: J,
1482
+ searchPlaces: Q,
1474
1483
  getPlaceDetails: V,
1475
1484
  clearPredictions: W,
1476
1485
  triggerLoad: y
1477
1486
  // Call this to start loading Google Maps when deferred
1478
1487
  };
1479
- }, fr = (t) => typeof t == "number" && Number.isFinite(t), fa = (t) => {
1488
+ }, hr = (t) => typeof t == "number" && Number.isFinite(t), fa = (t) => {
1480
1489
  const o = typeof t?.limit == "number" && t.limit > 0 ? Math.min(t.limit, 20) : 8, c = typeof t?.offset == "number" && t.offset >= 0 ? t.offset : 0;
1481
1490
  return {
1482
1491
  limit: o,
@@ -1484,23 +1493,23 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
1484
1493
  restrictCountry: t?.restrictCountry
1485
1494
  };
1486
1495
  }, pa = (t) => {
1487
- const { searchLocalities: o, restrictCountry: c } = t, [d, _] = $([]), [w, h] = $(!1), [T, v] = $(null), O = K(0);
1488
- z(() => {
1496
+ const { searchLocalities: o, restrictCountry: c } = t, [d, b] = U([]), [x, g] = U(!1), [T, v] = U(null), O = F(0);
1497
+ J(() => {
1489
1498
  v(null);
1490
1499
  }, [o]);
1491
- const x = be(
1500
+ const P = we(
1492
1501
  async (u) => {
1493
1502
  if (!u || u.length < 2 || !o) {
1494
- _([]);
1503
+ b([]);
1495
1504
  return;
1496
1505
  }
1497
1506
  const I = ++O.current;
1498
- h(!0), v(null);
1507
+ g(!0), v(null);
1499
1508
  try {
1500
- const b = fa({ restrictCountry: c }), F = await o(u, b);
1509
+ const h = fa({ restrictCountry: c }), M = await o(u, h);
1501
1510
  if (I !== O.current) return;
1502
- const p = (F || []).filter(
1503
- (m) => !!m?.id && !!m?.description && fr(m?.lat) && fr(m?.lng)
1511
+ const f = (M || []).filter(
1512
+ (m) => !!m?.id && !!m?.description && hr(m?.lat) && hr(m?.lng)
1504
1513
  ).map((m) => ({
1505
1514
  id: m.id,
1506
1515
  description: m.description,
@@ -1508,29 +1517,29 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
1508
1517
  lat: m.lat,
1509
1518
  lng: m.lng
1510
1519
  }));
1511
- _(p);
1512
- } catch (b) {
1520
+ b(f);
1521
+ } catch (h) {
1513
1522
  if (I !== O.current) return;
1514
- _([]), v(b?.message || "Failed to fetch locations");
1523
+ b([]), v(h?.message || "Failed to fetch locations");
1515
1524
  } finally {
1516
- I === O.current && h(!1);
1525
+ I === O.current && g(!1);
1517
1526
  }
1518
1527
  },
1519
1528
  [c, o]
1520
- ), E = be(() => _([]), []);
1529
+ ), E = we(() => b([]), []);
1521
1530
  return {
1522
1531
  predictions: d,
1523
- isSearching: w,
1532
+ isSearching: x,
1524
1533
  loadError: T,
1525
- searchPlaces: x,
1534
+ searchPlaces: P,
1526
1535
  clearPredictions: E
1527
1536
  };
1528
- }, Ie = {
1537
+ }, Ee = {
1529
1538
  time: "https://srm-cdn.a4b.io/yoda/1770372014782.svg",
1530
1539
  location: "https://srm-cdn.a4b.io/yoda/1770372031092.svg",
1531
1540
  date: "https://srm-cdn.a4b.io/yoda/1770372045894.svg",
1532
1541
  info: "https://srm-cdn.a4b.io/yoda/1770372066357.svg"
1533
- }, vr = [
1542
+ }, wr = [
1534
1543
  { code: "+1", country: "USA / Canada" },
1535
1544
  { code: "+7", country: "Russia / Kazakhstan" },
1536
1545
  { code: "+20", country: "Egypt" },
@@ -1601,27 +1610,27 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
1601
1610
  { code: "+976", country: "Mongolia" },
1602
1611
  { code: "+977", country: "Nepal" }
1603
1612
  ];
1604
- vr.map((t) => t.code);
1605
- const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr), ha = (t) => er(t).length === kr, ga = (t, o, c) => ha(t) ? c.phone ? { shouldTrack: !1 } : (c.phone = !0, { shouldTrack: !0, fullPhone: `${o}-${er(t)}` }) : (c.phone = !1, { shouldTrack: !1 }), _a = {}, ba = ({
1613
+ wr.map((t) => t.code);
1614
+ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr), ha = (t) => tr(t).length === xr, ga = (t, o, c) => ha(t) ? c.phone ? { shouldTrack: !1 } : (c.phone = !0, { shouldTrack: !0, fullPhone: `${o}-${tr(t)}` }) : (c.phone = !1, { shouldTrack: !1 }), _a = {}, ba = ({
1606
1615
  t,
1607
1616
  values: o,
1608
1617
  onChange: c,
1609
1618
  phoneIsdCode: d,
1610
- onPhoneIsdCodeChange: _,
1611
- showV1ExtraFields: w = !1,
1612
- analytics: h,
1619
+ onPhoneIsdCodeChange: b,
1620
+ showV1ExtraFields: x = !1,
1621
+ analytics: g,
1613
1622
  googleMapsApiKey: T,
1614
1623
  atlasSearchLocalities: v,
1615
1624
  googleMapsAutocompleteEnabled: O,
1616
- className: x = ""
1625
+ className: P = ""
1617
1626
  }) => {
1618
- const E = Le(), u = E?.config?.analytics ?? h, I = E?.config.isGlobal ?? !0, b = E?.config?.googleMapsApiKey, F = E?.config?.atlasSearchLocalities, p = E?.config?.googleMapsAutocompleteEnabled, [m, y] = $(!1), [J, V] = $(""), W = K(null), B = K(null), M = K({}), A = (a) => c({ ...o, ...a }), S = (a, s) => {
1627
+ const E = Ie(), u = E?.config?.analytics ?? g, I = E?.config.isGlobal ?? !0, h = E?.config?.googleMapsApiKey, M = E?.config?.atlasSearchLocalities, f = E?.config?.googleMapsAutocompleteEnabled, [m, y] = U(!1), [Q, V] = U(""), W = F(null), B = F(null), $ = F({}), A = (a) => c({ ...o, ...a }), S = (a, s) => {
1619
1628
  if (a === "phone") {
1620
- const R = ga(s, d, M.current);
1629
+ const R = ga(s, d, $.current);
1621
1630
  R.shouldTrack && u?.trackPhoneSectionFilled?.({ phone: R.fullPhone });
1622
1631
  return;
1623
1632
  }
1624
- s.trim() && !M.current[a] && (M.current[a] = !0, {
1633
+ s.trim() && !$.current[a] && ($.current[a] = !0, {
1625
1634
  fullName: () => u?.trackNameSectionFilled?.(),
1626
1635
  dateOfBirth: () => u?.trackDobFilled?.(),
1627
1636
  birthTime: () => u?.trackTimeFilled?.(),
@@ -1630,95 +1639,102 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
1630
1639
  }, ee = (a) => {
1631
1640
  const s = a.target.value;
1632
1641
  s.trim() && u?.trackEmailSectionFilled?.({ email: s });
1633
- }, U = J.trim().toLowerCase(), D = vr.filter((a) => U ? a.country.toLowerCase().includes(U) || a.code.includes(U) : !0), j = K(null);
1634
- K(null);
1635
- const H = K(null), Y = K(0), te = K(null), [ne, oe] = $(!1), [ue, me] = $({ hour12: 12, minute: "00", meridiem: "AM" }), re = (a) => String(a).padStart(2, "0"), Q = (a) => {
1642
+ }, z = Q.trim().toLowerCase(), D = wr.filter((a) => z ? a.country.toLowerCase().includes(z) || a.code.includes(z) : !0), j = F(null);
1643
+ F(null);
1644
+ const G = F(null), H = F(0), re = F(null), [ge, X] = U(!1), [Z, ie] = U({ hour12: 12, minute: "00", meridiem: "AM" }), te = (a) => String(a).padStart(2, "0"), pe = (a) => {
1636
1645
  const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(a);
1637
1646
  if (!s) return a;
1638
- const R = Number(s[1]), he = s[2], Se = R >= 12 ? "PM" : "AM";
1639
- return `${R % 12 === 0 ? 12 : R % 12}:${he} ${Se}`;
1640
- }, ge = (a) => {
1647
+ const R = Number(s[1]), me = s[2], Oe = R >= 12 ? "PM" : "AM";
1648
+ return `${R % 12 === 0 ? 12 : R % 12}:${me} ${Oe}`;
1649
+ }, _e = (a) => {
1641
1650
  const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(a);
1642
1651
  if (!s) return { hour12: 12, minute: "00", meridiem: "AM" };
1643
- const R = Number(s[1]), he = s[2], Se = R >= 12 ? "PM" : "AM";
1644
- return { hour12: R % 12 === 0 ? 12 : R % 12, minute: he, meridiem: Se };
1645
- }, ve = (a) => {
1652
+ const R = Number(s[1]), me = s[2], Oe = R >= 12 ? "PM" : "AM";
1653
+ return { hour12: R % 12 === 0 ? 12 : R % 12, minute: me, meridiem: Oe };
1654
+ }, ue = (a) => {
1646
1655
  const s = Math.min(12, Math.max(1, a.hour12)), R = /^([0-5]\d)$/.test(a.minute) ? a.minute : "00";
1647
- let he = s % 12;
1648
- return a.meridiem === "PM" && (he += 12), `${re(he)}:${R}`;
1649
- }, ye = K(null), [ie, se] = $(!1), [le, fe] = $(
1656
+ let me = s % 12;
1657
+ return a.meridiem === "PM" && (me += 12), `${te(me)}:${R}`;
1658
+ }, be = F(null), [se, ae] = U(!1), le = F(o.birthPlace ?? ""), [ce, Y] = U(
1650
1659
  null
1651
- ), X = T ?? b ?? _a?.VITE_GOOGLE_MAPS_API_KEY, Te = v ?? F, Z = O ?? p ?? !0, ke = (o.birthPlace ?? "").trim(), we = I ? void 0 : "in", ce = ma({
1652
- apiKey: Z ? X : void 0,
1660
+ ), Te = T ?? h ?? _a?.VITE_GOOGLE_MAPS_API_KEY, ye = v ?? M, ne = O ?? f ?? !0, Pe = (o.birthPlace ?? "").trim(), ve = I ? void 0 : "in", he = ma({
1661
+ apiKey: ne ? Te : void 0,
1653
1662
  language: "en",
1654
- restrictCountry: we
1655
- }), C = pa({
1656
- searchLocalities: Z ? void 0 : Te,
1657
- restrictCountry: we
1658
- }), Pe = Z ? ce.predictions.map((a) => ({
1663
+ restrictCountry: ve
1664
+ }), k = pa({
1665
+ searchLocalities: ne ? void 0 : ye,
1666
+ restrictCountry: ve
1667
+ }), xe = ne ? he.predictions.map((a) => ({
1659
1668
  id: a.place_id,
1660
1669
  description: a.description,
1661
1670
  secondaryText: a.structured_formatting?.secondary_text,
1662
1671
  lat: void 0,
1663
1672
  lng: void 0
1664
- })) : C.predictions.map((a) => ({
1673
+ })) : k.predictions.map((a) => ({
1665
1674
  id: a.id,
1666
1675
  description: a.description,
1667
1676
  secondaryText: a.secondary_text,
1668
1677
  lat: a.lat,
1669
1678
  lng: a.lng
1670
- })), Ae = Z ? ce.isSearching : C.isSearching, Me = Z ? ce.loadError : C.loadError, $e = Z ? !!X : !!Te, Ne = Z ? ce.searchPlaces : C.searchPlaces, Be = Z ? ce.clearPredictions : C.clearPredictions;
1671
- z(() => {
1679
+ })), Ue = ne ? he.isSearching : k.isSearching, Ge = ne ? he.loadError : k.loadError, Ne = ne ? !!Te : !!ye, Ke = ne ? he.searchPlaces : k.searchPlaces, Le = ne ? he.clearPredictions : k.clearPredictions, Be = F(() => {
1680
+ });
1681
+ Be.current = () => {
1682
+ (o.birthPlace ?? "") !== le.current && A({
1683
+ birthPlace: "",
1684
+ birthPlaceLat: void 0,
1685
+ birthPlaceLng: void 0
1686
+ }), ae(!1);
1687
+ }, J(() => {
1672
1688
  const a = (s) => {
1673
- ye.current && (ye.current.contains(s.target) || se(!1));
1689
+ be.current && (be.current.contains(s.target) || Be.current());
1674
1690
  };
1675
1691
  return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
1676
- }, []), z(() => {
1692
+ }, []), J(() => {
1677
1693
  const a = (s) => {
1678
1694
  W.current && (W.current.contains(s.target) || (y(!1), V("")));
1679
1695
  };
1680
1696
  return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
1681
- }, []), z(() => {
1697
+ }, []), J(() => {
1682
1698
  if (!m) return;
1683
1699
  const a = window.setTimeout(() => {
1684
1700
  B.current?.focus();
1685
1701
  }, 0);
1686
1702
  return () => window.clearTimeout(a);
1687
- }, [m]), z(() => {
1688
- if (!ie) return;
1689
- if (ke.length < 2) {
1690
- Be();
1703
+ }, [m]), J(() => {
1704
+ if (!se) return;
1705
+ if (Pe.length < 2) {
1706
+ Le();
1691
1707
  return;
1692
1708
  }
1693
1709
  const a = window.setTimeout(async () => {
1694
- await Ne(ke);
1710
+ await Ke(Pe);
1695
1711
  }, 250);
1696
1712
  return () => window.clearTimeout(a);
1697
- }, [Be, ie, ke, Ne]);
1698
- const Ue = (a) => {
1713
+ }, [Le, se, Pe, Ke]);
1714
+ const De = (a) => {
1699
1715
  const s = a.current;
1700
1716
  if (!(!s || s.disabled)) {
1701
- if (document.activeElement === s && H.current === s && Date.now() - Y.current < 6e4) {
1717
+ if (document.activeElement === s && G.current === s && Date.now() - H.current < 6e4) {
1702
1718
  s.blur();
1703
1719
  return;
1704
1720
  }
1705
1721
  if (typeof s.showPicker == "function") {
1706
- s.showPicker(), H.current = s, Y.current = Date.now();
1722
+ s.showPicker(), G.current = s, H.current = Date.now();
1707
1723
  return;
1708
1724
  }
1709
- s.focus(), H.current = s, Y.current = Date.now();
1725
+ s.focus(), G.current = s, H.current = Date.now();
1710
1726
  }
1711
1727
  };
1712
- return z(() => {
1728
+ return J(() => {
1713
1729
  const a = (s) => {
1714
- te.current && (te.current.contains(s.target) || oe(!1));
1730
+ re.current && (re.current.contains(s.target) || X(!1));
1715
1731
  };
1716
1732
  return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
1717
- }, []), z(() => {
1733
+ }, []), J(() => {
1718
1734
  const a = (R) => {
1719
- R.target?.closest?.("[data-info-tooltip]") == null && fe(null);
1735
+ R.target?.closest?.("[data-info-tooltip]") == null && Y(null);
1720
1736
  }, s = (R) => {
1721
- R.key === "Escape" && fe(null);
1737
+ R.key === "Escape" && Y(null);
1722
1738
  };
1723
1739
  return document.addEventListener("mousedown", a), document.addEventListener("keydown", s), () => {
1724
1740
  document.removeEventListener("mousedown", a), document.removeEventListener("keydown", s);
@@ -1726,7 +1742,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
1726
1742
  }, []), /* @__PURE__ */ r.jsx(
1727
1743
  "section",
1728
1744
  {
1729
- className: `${n.wrap} ${x}`,
1745
+ className: `${n.wrap} ${P}`,
1730
1746
  "aria-label": t("formTitle"),
1731
1747
  children: /* @__PURE__ */ r.jsx("div", { className: n.card, children: /* @__PURE__ */ r.jsxs("div", { className: n.cardInner, children: [
1732
1748
  /* @__PURE__ */ r.jsxs("div", { className: n.field, children: [
@@ -1781,7 +1797,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
1781
1797
  onFocus: () => u?.trackPhoneSectionClicked?.(),
1782
1798
  onChange: (a) => {
1783
1799
  const s = a.target.value;
1784
- A({ phone: pr(s) }), S("phone", pr(s));
1800
+ A({ phone: gr(s) }), S("phone", gr(s));
1785
1801
  },
1786
1802
  placeholder: t("formPhonePlaceholder"),
1787
1803
  autoComplete: "tel",
@@ -1805,7 +1821,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
1805
1821
  {
1806
1822
  ref: B,
1807
1823
  type: "text",
1808
- value: J,
1824
+ value: Q,
1809
1825
  onChange: (a) => V(a.target.value),
1810
1826
  placeholder: "Search country",
1811
1827
  className: n.isdSearchInput,
@@ -1820,7 +1836,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
1820
1836
  "aria-selected": a.code === d,
1821
1837
  className: `${n.isdOption} ${a.code === d ? n.isdOptionActive : ""}`,
1822
1838
  onClick: () => {
1823
- _(a.code), y(!1), V("");
1839
+ b(a.code), y(!1), V("");
1824
1840
  },
1825
1841
  children: [
1826
1842
  /* @__PURE__ */ r.jsx("span", { className: n.isdCountryName, children: a.country }),
@@ -1834,7 +1850,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
1834
1850
  )
1835
1851
  ] }) })
1836
1852
  ] }),
1837
- w && /* @__PURE__ */ r.jsxs("div", { className: n.field, children: [
1853
+ x && /* @__PURE__ */ r.jsxs("div", { className: n.field, children: [
1838
1854
  /* @__PURE__ */ r.jsx("div", { className: n.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: n.label, children: [
1839
1855
  t("formGender"),
1840
1856
  /* @__PURE__ */ r.jsx("span", { className: n.req, children: "*" })
@@ -1920,22 +1936,22 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
1920
1936
  type: "button",
1921
1937
  className: n.infoBtn,
1922
1938
  "aria-label": t("info"),
1923
- "aria-expanded": le === "dob",
1939
+ "aria-expanded": ce === "dob",
1924
1940
  onClick: () => {
1925
- fe((a) => a === "dob" ? null : "dob"), u?.trackInfoIconClicked?.({ fieldName: "dob" });
1941
+ Y((a) => a === "dob" ? null : "dob"), u?.trackInfoIconClicked?.({ fieldName: "dob" });
1926
1942
  },
1927
1943
  children: /* @__PURE__ */ r.jsx(
1928
1944
  "img",
1929
1945
  {
1930
1946
  className: n.infoImg,
1931
- src: Ie.info,
1947
+ src: Ee.info,
1932
1948
  alt: "",
1933
1949
  "aria-hidden": !0
1934
1950
  }
1935
1951
  )
1936
1952
  }
1937
1953
  ),
1938
- le === "dob" && /* @__PURE__ */ r.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
1954
+ ce === "dob" && /* @__PURE__ */ r.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
1939
1955
  t("formDobInfo"),
1940
1956
  /* @__PURE__ */ r.jsx("span", { className: n.tooltipArrow, "aria-hidden": !0 })
1941
1957
  ] })
@@ -1952,16 +1968,16 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
1952
1968
  value: o.dateOfBirth,
1953
1969
  max: (() => {
1954
1970
  const a = /* @__PURE__ */ new Date();
1955
- return `${a.getFullYear()}-${re(a.getMonth() + 1)}-${re(a.getDate())}`;
1971
+ return `${a.getFullYear()}-${te(a.getMonth() + 1)}-${te(a.getDate())}`;
1956
1972
  })(),
1957
1973
  onChange: (a) => {
1958
- const s = a.target.value, R = /* @__PURE__ */ new Date(), he = `${R.getFullYear()}-${re(R.getMonth() + 1)}-${re(R.getDate())}`;
1959
- s && s > he || (A({ dateOfBirth: s }), S("dateOfBirth", s), H.current = null);
1974
+ const s = a.target.value, R = /* @__PURE__ */ new Date(), me = `${R.getFullYear()}-${te(R.getMonth() + 1)}-${te(R.getDate())}`;
1975
+ s && s > me || (A({ dateOfBirth: s }), S("dateOfBirth", s), G.current = null);
1960
1976
  },
1961
1977
  onFocus: () => u?.trackDobClicked?.(),
1962
- onClick: () => Ue(j),
1978
+ onClick: () => De(j),
1963
1979
  onBlur: () => {
1964
- H.current === j.current && (H.current = null);
1980
+ G.current === j.current && (G.current = null);
1965
1981
  }
1966
1982
  }
1967
1983
  ),
@@ -1973,13 +1989,13 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
1973
1989
  "aria-label": "Open date picker",
1974
1990
  onMouseDown: (a) => a.preventDefault(),
1975
1991
  onClick: (a) => {
1976
- a.preventDefault(), a.stopPropagation(), Ue(j);
1992
+ a.preventDefault(), a.stopPropagation(), De(j);
1977
1993
  },
1978
1994
  children: /* @__PURE__ */ r.jsx(
1979
1995
  "img",
1980
1996
  {
1981
1997
  className: n.iconImg,
1982
- src: Ie.date,
1998
+ src: Ee.date,
1983
1999
  alt: "",
1984
2000
  "aria-hidden": !0
1985
2001
  }
@@ -2001,35 +2017,35 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2001
2017
  type: "button",
2002
2018
  className: n.infoBtn,
2003
2019
  "aria-label": t("info"),
2004
- "aria-expanded": le === "time",
2020
+ "aria-expanded": ce === "time",
2005
2021
  onClick: () => {
2006
- u?.trackInfoIconClicked?.({ fieldName: "time" }), fe((a) => a === "time" ? null : "time");
2022
+ u?.trackInfoIconClicked?.({ fieldName: "time" }), Y((a) => a === "time" ? null : "time");
2007
2023
  },
2008
2024
  children: /* @__PURE__ */ r.jsx(
2009
2025
  "img",
2010
2026
  {
2011
2027
  className: n.infoImg,
2012
- src: Ie.info,
2028
+ src: Ee.info,
2013
2029
  alt: "",
2014
2030
  "aria-hidden": !0
2015
2031
  }
2016
2032
  )
2017
2033
  }
2018
2034
  ),
2019
- le === "time" && /* @__PURE__ */ r.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
2035
+ ce === "time" && /* @__PURE__ */ r.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
2020
2036
  t("formBirthTimeInfo"),
2021
2037
  /* @__PURE__ */ r.jsx("span", { className: n.tooltipArrow, "aria-hidden": !0 })
2022
2038
  ] })
2023
2039
  ] })
2024
2040
  ] }),
2025
- /* @__PURE__ */ r.jsxs("div", { className: n.inputWrap, ref: te, children: [
2041
+ /* @__PURE__ */ r.jsxs("div", { className: n.inputWrap, ref: re, children: [
2026
2042
  /* @__PURE__ */ r.jsx(
2027
2043
  "input",
2028
2044
  {
2029
2045
  id: "kundli-birth-time",
2030
2046
  className: n.input,
2031
2047
  type: "text",
2032
- value: o.birthTime ? Q(o.birthTime) : "",
2048
+ value: o.birthTime ? pe(o.birthTime) : "",
2033
2049
  readOnly: !0,
2034
2050
  onFocus: () => u?.trackTimeClicked?.(),
2035
2051
  onChange: (a) => {
@@ -2039,7 +2055,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2039
2055
  disabled: o.birthTimeUnknown,
2040
2056
  placeholder: "HH:MM AM",
2041
2057
  onClick: () => {
2042
- o.birthTimeUnknown || (me(ge(o.birthTime || "12:00")), oe((a) => !a));
2058
+ o.birthTimeUnknown || (ie(_e(o.birthTime || "12:00")), X((a) => !a));
2043
2059
  }
2044
2060
  }
2045
2061
  ),
@@ -2052,20 +2068,20 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2052
2068
  disabled: o.birthTimeUnknown,
2053
2069
  onMouseDown: (a) => a.preventDefault(),
2054
2070
  onClick: (a) => {
2055
- a.preventDefault(), a.stopPropagation(), !o.birthTimeUnknown && (me(ge(o.birthTime || "12:00")), oe((s) => !s));
2071
+ a.preventDefault(), a.stopPropagation(), !o.birthTimeUnknown && (ie(_e(o.birthTime || "12:00")), X((s) => !s));
2056
2072
  },
2057
2073
  children: /* @__PURE__ */ r.jsx(
2058
2074
  "img",
2059
2075
  {
2060
2076
  className: n.iconImg,
2061
- src: Ie.time,
2077
+ src: Ee.time,
2062
2078
  alt: "",
2063
2079
  "aria-hidden": !0
2064
2080
  }
2065
2081
  )
2066
2082
  }
2067
2083
  ),
2068
- ne && !o.birthTimeUnknown && /* @__PURE__ */ r.jsxs(
2084
+ ge && !o.birthTimeUnknown && /* @__PURE__ */ r.jsxs(
2069
2085
  "div",
2070
2086
  {
2071
2087
  className: n.timePopover,
@@ -2077,8 +2093,8 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2077
2093
  "select",
2078
2094
  {
2079
2095
  className: n.timePickerSelect,
2080
- value: ue.hour12,
2081
- onChange: (a) => me((s) => ({
2096
+ value: Z.hour12,
2097
+ onChange: (a) => ie((s) => ({
2082
2098
  ...s,
2083
2099
  hour12: Number(a.target.value)
2084
2100
  })),
@@ -2091,10 +2107,10 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2091
2107
  "select",
2092
2108
  {
2093
2109
  className: n.timePickerSelect,
2094
- value: ue.minute,
2095
- onChange: (a) => me((s) => ({ ...s, minute: a.target.value })),
2110
+ value: Z.minute,
2111
+ onChange: (a) => ie((s) => ({ ...s, minute: a.target.value })),
2096
2112
  "aria-label": "Minute",
2097
- children: Array.from({ length: 60 }, (a, s) => re(s)).map(
2113
+ children: Array.from({ length: 60 }, (a, s) => te(s)).map(
2098
2114
  (a) => /* @__PURE__ */ r.jsx("option", { value: a, children: a }, a)
2099
2115
  )
2100
2116
  }
@@ -2104,8 +2120,8 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2104
2120
  "button",
2105
2121
  {
2106
2122
  type: "button",
2107
- className: `${n.meridiemBtn} ${ue.meridiem === "AM" ? n.meridiemActive : ""}`,
2108
- onClick: () => me((a) => ({ ...a, meridiem: "AM" })),
2123
+ className: `${n.meridiemBtn} ${Z.meridiem === "AM" ? n.meridiemActive : ""}`,
2124
+ onClick: () => ie((a) => ({ ...a, meridiem: "AM" })),
2109
2125
  children: "AM"
2110
2126
  }
2111
2127
  ),
@@ -2113,8 +2129,8 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2113
2129
  "button",
2114
2130
  {
2115
2131
  type: "button",
2116
- className: `${n.meridiemBtn} ${ue.meridiem === "PM" ? n.meridiemActive : ""}`,
2117
- onClick: () => me((a) => ({ ...a, meridiem: "PM" })),
2132
+ className: `${n.meridiemBtn} ${Z.meridiem === "PM" ? n.meridiemActive : ""}`,
2133
+ onClick: () => ie((a) => ({ ...a, meridiem: "PM" })),
2118
2134
  children: "PM"
2119
2135
  }
2120
2136
  )
@@ -2126,7 +2142,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2126
2142
  {
2127
2143
  type: "button",
2128
2144
  className: n.timePopoverBtn,
2129
- onClick: () => oe(!1),
2145
+ onClick: () => X(!1),
2130
2146
  children: "Cancel"
2131
2147
  }
2132
2148
  ),
@@ -2136,8 +2152,8 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2136
2152
  type: "button",
2137
2153
  className: `${n.timePopoverBtn} ${n.timePopoverOk}`,
2138
2154
  onClick: () => {
2139
- const a = ve(ue);
2140
- A({ birthTime: a }), S("birthTime", a), oe(!1);
2155
+ const a = ue(Z);
2156
+ A({ birthTime: a }), S("birthTime", a), X(!1);
2141
2157
  },
2142
2158
  "aria-label": "OK",
2143
2159
  children: /* @__PURE__ */ r.jsx(
@@ -2211,30 +2227,30 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2211
2227
  type: "button",
2212
2228
  className: n.infoBtn,
2213
2229
  "aria-label": t("info"),
2214
- "aria-expanded": le === "place",
2230
+ "aria-expanded": ce === "place",
2215
2231
  onClick: () => {
2216
2232
  u?.trackInfoIconClicked?.({
2217
2233
  fieldName: "birthPlace"
2218
- }), fe((a) => a === "place" ? null : "place");
2234
+ }), Y((a) => a === "place" ? null : "place");
2219
2235
  },
2220
2236
  children: /* @__PURE__ */ r.jsx(
2221
2237
  "img",
2222
2238
  {
2223
2239
  className: n.infoImg,
2224
- src: Ie.info,
2240
+ src: Ee.info,
2225
2241
  alt: "",
2226
2242
  "aria-hidden": !0
2227
2243
  }
2228
2244
  )
2229
2245
  }
2230
2246
  ),
2231
- le === "place" && /* @__PURE__ */ r.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
2247
+ ce === "place" && /* @__PURE__ */ r.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
2232
2248
  t("formBirthPlaceInfo"),
2233
2249
  /* @__PURE__ */ r.jsx("span", { className: n.tooltipArrow, "aria-hidden": !0 })
2234
2250
  ] })
2235
2251
  ] })
2236
2252
  ] }),
2237
- /* @__PURE__ */ r.jsxs("div", { className: n.inputWrap, ref: ye, children: [
2253
+ /* @__PURE__ */ r.jsxs("div", { className: n.inputWrap, ref: be, children: [
2238
2254
  /* @__PURE__ */ r.jsx(
2239
2255
  "input",
2240
2256
  {
@@ -2248,10 +2264,10 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2248
2264
  birthPlace: s,
2249
2265
  birthPlaceLat: void 0,
2250
2266
  birthPlaceLng: void 0
2251
- }), S("birthPlace", s), se(!0);
2267
+ }), S("birthPlace", s), ae(!0);
2252
2268
  },
2253
2269
  onFocus: () => {
2254
- u?.trackPlaceOfBirthClicked?.(), se(!0);
2270
+ u?.trackPlaceOfBirthClicked?.(), ae(!0);
2255
2271
  },
2256
2272
  placeholder: t("formBirthPlacePlaceholder"),
2257
2273
  autoComplete: "address-level2"
@@ -2261,32 +2277,32 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2261
2277
  "img",
2262
2278
  {
2263
2279
  className: n.iconImg,
2264
- src: Ie.location,
2280
+ src: Ee.location,
2265
2281
  alt: "",
2266
2282
  "aria-hidden": !0
2267
2283
  }
2268
2284
  ) }),
2269
- ie && Pe.length > 0 && /* @__PURE__ */ r.jsx("div", { className: n.suggestions, role: "listbox", children: Pe.slice(0, 8).map((a) => /* @__PURE__ */ r.jsxs(
2285
+ se && xe.length > 0 && /* @__PURE__ */ r.jsx("div", { className: n.suggestions, role: "listbox", children: xe.slice(0, 8).map((a) => /* @__PURE__ */ r.jsxs(
2270
2286
  "button",
2271
2287
  {
2272
2288
  type: "button",
2273
2289
  className: n.suggestionItem,
2274
2290
  onClick: async () => {
2275
2291
  const s = a.description;
2276
- if (A({
2292
+ if (le.current = s, A({
2277
2293
  birthPlace: s,
2278
2294
  birthPlaceLat: a.lat,
2279
2295
  birthPlaceLng: a.lng
2280
- }), Be(), se(!1), Z) {
2281
- const R = await ce.getPlaceDetails(
2296
+ }), Le(), ae(!1), ne) {
2297
+ const R = await he.getPlaceDetails(
2282
2298
  a.id
2283
2299
  );
2284
- R && c({
2300
+ R && (le.current = s, c({
2285
2301
  ...o,
2286
2302
  birthPlace: s,
2287
2303
  birthPlaceLat: R.lat,
2288
2304
  birthPlaceLng: R.lng
2289
- });
2305
+ }));
2290
2306
  }
2291
2307
  },
2292
2308
  children: [
@@ -2296,11 +2312,11 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2296
2312
  },
2297
2313
  a.id
2298
2314
  )) }),
2299
- ie && $e && Ae && /* @__PURE__ */ r.jsx("div", { className: n.suggestionsHint, children: "Loading…" }),
2300
- ie && $e && !Ae && !!Me && /* @__PURE__ */ r.jsx("div", { className: n.suggestionsHint, children: Me })
2315
+ se && Ne && Ue && /* @__PURE__ */ r.jsx("div", { className: n.suggestionsHint, children: "Loading…" }),
2316
+ se && Ne && !Ue && !!Ge && /* @__PURE__ */ r.jsx("div", { className: n.suggestionsHint, children: Ge })
2301
2317
  ] })
2302
2318
  ] }),
2303
- w && /* @__PURE__ */ r.jsxs("div", { className: n.field, children: [
2319
+ x && /* @__PURE__ */ r.jsxs("div", { className: n.field, children: [
2304
2320
  /* @__PURE__ */ r.jsx("div", { className: n.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: n.label, children: [
2305
2321
  t("formReportLanguage"),
2306
2322
  /* @__PURE__ */ r.jsx("span", { className: n.req, children: "*" })
@@ -2431,13 +2447,13 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2431
2447
  ] }) })
2432
2448
  }
2433
2449
  );
2434
- }, ya = "_ctaButton_rhimw_2", va = "_ctaFilled_rhimw_21", ka = "_ctaFilledContent_rhimw_52", wa = "_chevronRight_rhimw_61", Fe = {
2450
+ }, ya = "_ctaButton_rhimw_2", va = "_ctaFilled_rhimw_21", ka = "_ctaFilledContent_rhimw_52", wa = "_chevronRight_rhimw_61", $e = {
2435
2451
  ctaButton: ya,
2436
2452
  ctaFilled: va,
2437
2453
  ctaFilledContent: ka,
2438
2454
  chevronRight: wa
2439
- }, wr = "kundli-report-astrologer", xa = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", Pa = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", Aa = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", Ca = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", ja = ({ t }) => {
2440
- const c = Le()?.config.imageComponent ?? He;
2455
+ }, Pr = "kundli-report-astrologer", xa = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", Pa = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", Aa = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", Ca = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", ja = ({ t }) => {
2456
+ const c = Ie()?.config.imageComponent ?? Ye;
2441
2457
  return /* @__PURE__ */ r.jsxs("div", { className: je.marqueeContent, children: [
2442
2458
  /* @__PURE__ */ r.jsxs("span", { className: je.badge, children: [
2443
2459
  /* @__PURE__ */ r.jsx(
@@ -2499,36 +2515,36 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2499
2515
  values: o,
2500
2516
  phoneIsdCode: c,
2501
2517
  requireV1ExtraFields: d = !1,
2502
- onValidationFailed: _,
2503
- onProceed: w,
2504
- onProceedGuidance: h,
2518
+ onValidationFailed: b,
2519
+ onProceed: x,
2520
+ onProceedGuidance: g,
2505
2521
  href: T,
2506
2522
  analytics: v,
2507
2523
  className: O = "",
2508
- discountedPriceLabel: x,
2524
+ discountedPriceLabel: P,
2509
2525
  discountPillLabel: E,
2510
2526
  showPlanSheet: u,
2511
2527
  confirmPlan: I,
2512
- planSheetOpen: b,
2513
- selectedPlan: F
2528
+ planSheetOpen: h,
2529
+ selectedPlan: M
2514
2530
  }) => {
2515
- const p = Le(), m = p?.config.isGlobal ?? !0, y = p?.config?.variant, J = Je(
2531
+ const f = Ie(), m = f?.config.isGlobal ?? !0, y = f?.config?.variant, Q = Xe(
2516
2532
  () => Sa(o, m, d),
2517
2533
  [o, m, d]
2518
- ), V = J === null, W = y === "v1" && p?.config?.showSheet, B = m ? x ?? t("formDiscountedPrice") : W ? "" : "₹499", M = p?.config.imageComponent ?? He, A = (ee) => {
2534
+ ), V = Q === null, W = y === "v1" && f?.config?.showSheet, B = m ? P ?? t("formDiscountedPrice") : W ? "" : "₹499", $ = f?.config.imageComponent ?? Ye, A = (ee) => {
2519
2535
  if (ee.preventDefault(), y === "v1" && !V && v?.trackKundliDetailedClicked?.(), !V) {
2520
- J && _?.(J);
2536
+ Q && b?.(Q);
2521
2537
  return;
2522
2538
  }
2523
- const U = !!h && y === "v1" && F?.id === wr, D = (o.phone ?? "").trim(), j = {
2539
+ const z = !!g && y === "v1" && M?.id === Pr, D = (o.phone ?? "").trim(), j = {
2524
2540
  ...o,
2525
2541
  phone: D && `${c}-${D}`
2526
2542
  };
2527
2543
  if (W) {
2528
- b ? I?.() : u?.(j);
2544
+ h ? I?.() : u?.(j);
2529
2545
  return;
2530
2546
  }
2531
- v?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), U ? h(j) : w?.(j);
2547
+ v?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), z ? g(j) : x?.(j);
2532
2548
  }, S = /* @__PURE__ */ r.jsx(
2533
2549
  Ur,
2534
2550
  {
@@ -2536,15 +2552,15 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2536
2552
  disabled: y === "v1" ? !1 : !V,
2537
2553
  onClick: A,
2538
2554
  "aria-label": t("formPriceAria"),
2539
- className: y === "v1" && V ? Fe.ctaFilled : y === "v1" ? Fe.ctaButton : void 0,
2540
- children: y === "v1" ? V ? /* @__PURE__ */ r.jsxs("span", { className: Fe.ctaFilledContent, children: [
2541
- W ? t("selectPackage") : b && F ? `${t("proceedWithPlan")}${F.price}` : `${t("formProceed")} ${B}`,
2555
+ className: y === "v1" && V ? $e.ctaFilled : y === "v1" ? $e.ctaButton : void 0,
2556
+ children: y === "v1" ? V ? /* @__PURE__ */ r.jsxs("span", { className: $e.ctaFilledContent, children: [
2557
+ W ? t("selectPackage") : h && M ? `${t("proceedWithPlan")}${M.price}` : `${t("formProceed")} ${B}`,
2542
2558
  /* @__PURE__ */ r.jsx(
2543
- M,
2559
+ $,
2544
2560
  {
2545
2561
  src: Ca,
2546
2562
  alt: "",
2547
- className: Fe.chevronRight,
2563
+ className: $e.chevronRight,
2548
2564
  width: 20,
2549
2565
  height: 20,
2550
2566
  loading: "lazy"
@@ -2560,7 +2576,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2560
2576
  return /* @__PURE__ */ r.jsx(
2561
2577
  Gr,
2562
2578
  {
2563
- className: `${Fe.footerContainer} ${O}`,
2579
+ className: `${$e.footerContainer} ${O}`,
2564
2580
  marquee: /* @__PURE__ */ r.jsx(Kr, { children: /* @__PURE__ */ r.jsx(ja, { t }) }),
2565
2581
  children: S
2566
2582
  }
@@ -2571,15 +2587,15 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2571
2587
  logoUrl: c = Ea,
2572
2588
  className: d = ""
2573
2589
  }) => {
2574
- const _ = Le(), w = _?.config.isGlobal ?? !0, h = o != null && !w;
2590
+ const b = Ie(), x = b?.config.isGlobal ?? !0, g = o != null && !x;
2575
2591
  return /* @__PURE__ */ r.jsx(
2576
2592
  Wr,
2577
2593
  {
2578
2594
  t,
2579
2595
  logoUrl: c,
2580
- imageComponent: _?.config.imageComponent,
2596
+ imageComponent: b?.config.imageComponent,
2581
2597
  languageSelector: o,
2582
- showLanguageSelector: h,
2598
+ showLanguageSelector: g,
2583
2599
  className: d
2584
2600
  }
2585
2601
  );
@@ -2603,7 +2619,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2603
2619
  ) }), Da = () => /* @__PURE__ */ r.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx("path", { d: "M15 18l-6-6 6-6" }) }), Oa = () => /* @__PURE__ */ r.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: [
2604
2620
  /* @__PURE__ */ r.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
2605
2621
  /* @__PURE__ */ r.jsx("polyline", { points: "17 6 23 6 23 12" })
2606
- ] }), Fa = "_overlay_18irl_2", Ma = "_sheet_18irl_12", $a = "_header_18irl_36", Ua = "_backBtn_18irl_48", Ga = "_title_18irl_66", Ka = "_plansContainer_18irl_78", Wa = "_planCard_18irl_87", Ha = "_withBadgeSpacing_18irl_101", Ya = "_planCardSelected_18irl_105", qa = "_planCardPopular_18irl_110", Va = "_popularBadge_18irl_119", za = "_planCardInner_18irl_137", Ja = "_planTitleRow_18irl_148", Qa = "_planTitle_18irl_148", Xa = "_radioCircle_18irl_163", Za = "_radioChecked_18irl_176", en = "_radioInner_18irl_181", rn = "_priceRow_18irl_189", tn = "_price_18irl_189", an = "_originalPrice_18irl_202", nn = "_savingsBadge_18irl_209", on = "_featureList_18irl_219", sn = "_featureItem_18irl_228", ln = "_featureIcon_18irl_234", cn = "_featureText_18irl_240", dn = "_astrologerHeading_18irl_251", un = "_astrologerList_18irl_258", mn = "_astrologerCard_18irl_274", fn = "_astrologerAvatar_18irl_290", pn = "_astrologerAvatarPlaceholder_18irl_307", hn = "_astrologerTop_18irl_313", gn = "_astrologerBasicInfo_18irl_319", _n = "_astrologerName_18irl_326", bn = "_astrologerExp_18irl_335", yn = "_astrologerDivider_18irl_341", vn = "_planDivider_18irl_347", kn = "_astrologerCertList_18irl_354", wn = "_astrologerCertItem_18irl_360", xn = "_bullet_18irl_368", Pn = "_footer_18irl_373", An = "_proceedBtn_18irl_383", g = {
2622
+ ] }), Fa = "_overlay_18irl_2", Ma = "_sheet_18irl_12", $a = "_header_18irl_36", Ua = "_backBtn_18irl_48", Ga = "_title_18irl_66", Ka = "_plansContainer_18irl_78", Wa = "_planCard_18irl_87", Ha = "_withBadgeSpacing_18irl_101", Ya = "_planCardSelected_18irl_105", qa = "_planCardPopular_18irl_110", Va = "_popularBadge_18irl_119", za = "_planCardInner_18irl_137", Ja = "_planTitleRow_18irl_148", Qa = "_planTitle_18irl_148", Xa = "_radioCircle_18irl_163", Za = "_radioChecked_18irl_176", en = "_radioInner_18irl_181", rn = "_priceRow_18irl_189", tn = "_price_18irl_189", an = "_originalPrice_18irl_202", nn = "_savingsBadge_18irl_209", on = "_featureList_18irl_219", sn = "_featureItem_18irl_228", ln = "_featureIcon_18irl_234", cn = "_featureText_18irl_240", dn = "_astrologerHeading_18irl_251", un = "_astrologerList_18irl_258", mn = "_astrologerCard_18irl_274", fn = "_astrologerAvatar_18irl_290", pn = "_astrologerAvatarPlaceholder_18irl_307", hn = "_astrologerTop_18irl_313", gn = "_astrologerBasicInfo_18irl_319", _n = "_astrologerName_18irl_326", bn = "_astrologerExp_18irl_335", yn = "_astrologerDivider_18irl_341", vn = "_planDivider_18irl_347", kn = "_astrologerCertList_18irl_354", wn = "_astrologerCertItem_18irl_360", xn = "_bullet_18irl_368", Pn = "_footer_18irl_373", An = "_proceedBtn_18irl_383", _ = {
2607
2623
  overlay: Fa,
2608
2624
  sheet: Ma,
2609
2625
  header: $a,
@@ -2645,86 +2661,86 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2645
2661
  bullet: xn,
2646
2662
  footer: Pn,
2647
2663
  proceedBtn: An
2648
- }, Cn = ({ title: t, onBack: o }) => /* @__PURE__ */ r.jsxs("div", { className: g.header, children: [
2664
+ }, Cn = ({ title: t, onBack: o }) => /* @__PURE__ */ r.jsxs("div", { className: _.header, children: [
2649
2665
  /* @__PURE__ */ r.jsx(
2650
2666
  "button",
2651
2667
  {
2652
- className: g.backBtn,
2668
+ className: _.backBtn,
2653
2669
  onClick: o,
2654
2670
  "aria-label": "Go back",
2655
2671
  type: "button",
2656
2672
  children: /* @__PURE__ */ r.jsx(Da, {})
2657
2673
  }
2658
2674
  ),
2659
- /* @__PURE__ */ r.jsx("h2", { className: g.title, children: t })
2660
- ] }), jn = ({ features: t, t: o }) => /* @__PURE__ */ r.jsx("ul", { className: g.featureList, "aria-label": "Plan features", children: t.map((c, d) => /* @__PURE__ */ r.jsxs("li", { className: g.featureItem, children: [
2661
- /* @__PURE__ */ r.jsx("span", { className: g.featureIcon, children: c.included ? /* @__PURE__ */ r.jsx(La, {}) : /* @__PURE__ */ r.jsx(Ba, {}) }),
2675
+ /* @__PURE__ */ r.jsx("h2", { className: _.title, children: t })
2676
+ ] }), jn = ({ features: t, t: o }) => /* @__PURE__ */ r.jsx("ul", { className: _.featureList, "aria-label": "Plan features", children: t.map((c, d) => /* @__PURE__ */ r.jsxs("li", { className: _.featureItem, children: [
2677
+ /* @__PURE__ */ r.jsx("span", { className: _.featureIcon, children: c.included ? /* @__PURE__ */ r.jsx(La, {}) : /* @__PURE__ */ r.jsx(Ba, {}) }),
2662
2678
  /* @__PURE__ */ r.jsx(
2663
2679
  "span",
2664
2680
  {
2665
- className: `${g.featureText} `,
2681
+ className: `${_.featureText} `,
2666
2682
  children: o?.(c.text) ?? c.text
2667
2683
  }
2668
2684
  )
2669
- ] }, d)) }), Tn = ({ astrologer: t, t: o }) => /* @__PURE__ */ r.jsxs("div", { className: g.astrologerCard, children: [
2670
- /* @__PURE__ */ r.jsxs("div", { className: g.astrologerTop, children: [
2671
- /* @__PURE__ */ r.jsx("div", { className: g.astrologerAvatar, "aria-hidden": !0, children: t.imageUrl ? /* @__PURE__ */ r.jsx("img", { src: t.imageUrl, alt: o?.(t.name) ?? t.name, width: 40, height: 40 }) : /* @__PURE__ */ r.jsx("span", { className: g.astrologerAvatarPlaceholder, children: t.name.charAt(0) }) }),
2672
- /* @__PURE__ */ r.jsxs("div", { className: g.astrologerBasicInfo, children: [
2673
- /* @__PURE__ */ r.jsx("p", { className: g.astrologerName, children: o?.(t.name) ?? t.name }),
2674
- /* @__PURE__ */ r.jsx("p", { className: g.astrologerExp, children: o?.(t.experience) ?? t.experience })
2685
+ ] }, d)) }), Tn = ({ astrologer: t, t: o }) => /* @__PURE__ */ r.jsxs("div", { className: _.astrologerCard, children: [
2686
+ /* @__PURE__ */ r.jsxs("div", { className: _.astrologerTop, children: [
2687
+ /* @__PURE__ */ r.jsx("div", { className: _.astrologerAvatar, "aria-hidden": !0, children: t.imageUrl ? /* @__PURE__ */ r.jsx("img", { src: t.imageUrl, alt: o?.(t.name) ?? t.name, width: 40, height: 40 }) : /* @__PURE__ */ r.jsx("span", { className: _.astrologerAvatarPlaceholder, children: t.name.charAt(0) }) }),
2688
+ /* @__PURE__ */ r.jsxs("div", { className: _.astrologerBasicInfo, children: [
2689
+ /* @__PURE__ */ r.jsx("p", { className: _.astrologerName, children: o?.(t.name) ?? t.name }),
2690
+ /* @__PURE__ */ r.jsx("p", { className: _.astrologerExp, children: o?.(t.experience) ?? t.experience })
2675
2691
  ] })
2676
2692
  ] }),
2677
- /* @__PURE__ */ r.jsx("div", { className: g.astrologerDivider }),
2678
- /* @__PURE__ */ r.jsx("div", { className: g.astrologerCertList, children: t.certifications.map((c, d) => /* @__PURE__ */ r.jsxs("p", { className: g.astrologerCertItem, children: [
2679
- /* @__PURE__ */ r.jsx("span", { className: g.bullet, children: "•" }),
2693
+ /* @__PURE__ */ r.jsx("div", { className: _.astrologerDivider }),
2694
+ /* @__PURE__ */ r.jsx("div", { className: _.astrologerCertList, children: t.certifications.map((c, d) => /* @__PURE__ */ r.jsxs("p", { className: _.astrologerCertItem, children: [
2695
+ /* @__PURE__ */ r.jsx("span", { className: _.bullet, children: "•" }),
2680
2696
  " ",
2681
2697
  o?.(c) ?? c
2682
2698
  ] }, d)) })
2683
- ] }), Nn = ({ label: t }) => /* @__PURE__ */ r.jsxs("div", { className: g.popularBadge, "aria-label": t, children: [
2699
+ ] }), Nn = ({ label: t }) => /* @__PURE__ */ r.jsxs("div", { className: _.popularBadge, "aria-label": t, children: [
2684
2700
  /* @__PURE__ */ r.jsx(Oa, {}),
2685
2701
  /* @__PURE__ */ r.jsx("span", { children: t })
2686
2702
  ] }), Sn = ({ plan: t, isSelected: o, onSelect: c, t: d }) => {
2687
- const _ = () => c(t.id), w = (h) => {
2688
- (h.key === " " || h.key === "Enter") && (h.preventDefault(), c(t.id));
2703
+ const b = () => c(t.id), x = (g) => {
2704
+ (g.key === " " || g.key === "Enter") && (g.preventDefault(), c(t.id));
2689
2705
  };
2690
2706
  return /* @__PURE__ */ r.jsxs(
2691
2707
  "div",
2692
2708
  {
2693
2709
  className: [
2694
- g.planCard,
2695
- o ? g.planCardSelected : "",
2696
- o && g.planCardPopular
2710
+ _.planCard,
2711
+ o ? _.planCardSelected : "",
2712
+ o && _.planCardPopular
2697
2713
  ].filter(Boolean).join(" "),
2698
- onClick: _,
2714
+ onClick: b,
2699
2715
  role: "radio",
2700
2716
  "aria-checked": o,
2701
2717
  tabIndex: 0,
2702
- onKeyDown: w,
2718
+ onKeyDown: x,
2703
2719
  "data-plan-id": t.id,
2704
2720
  children: [
2705
2721
  t.badge && /* @__PURE__ */ r.jsx(Nn, { label: d?.(t.badge) ?? t.badge }),
2706
- /* @__PURE__ */ r.jsxs("div", { className: g.planCardInner, children: [
2707
- /* @__PURE__ */ r.jsxs("div", { className: `${g.planTitleRow} ${t.badge ? g.withBadgeSpacing : ""}`, children: [
2708
- /* @__PURE__ */ r.jsx("span", { className: g.planTitle, children: d?.(t.title) ?? t.title }),
2722
+ /* @__PURE__ */ r.jsxs("div", { className: _.planCardInner, children: [
2723
+ /* @__PURE__ */ r.jsxs("div", { className: `${_.planTitleRow} ${t.badge ? _.withBadgeSpacing : ""}`, children: [
2724
+ /* @__PURE__ */ r.jsx("span", { className: _.planTitle, children: d?.(t.title) ?? t.title }),
2709
2725
  /* @__PURE__ */ r.jsx(
2710
2726
  "span",
2711
2727
  {
2712
- className: `${g.radioCircle} ${o ? g.radioChecked : ""}`,
2728
+ className: `${_.radioCircle} ${o ? _.radioChecked : ""}`,
2713
2729
  "aria-hidden": !0,
2714
- children: o && /* @__PURE__ */ r.jsx("span", { className: g.radioInner })
2730
+ children: o && /* @__PURE__ */ r.jsx("span", { className: _.radioInner })
2715
2731
  }
2716
2732
  )
2717
2733
  ] }),
2718
- /* @__PURE__ */ r.jsxs("div", { className: g.priceRow, children: [
2719
- /* @__PURE__ */ r.jsx("span", { className: g.price, children: t.price }),
2720
- t.originalPrice && /* @__PURE__ */ r.jsx("span", { className: g.originalPrice, children: t.originalPrice }),
2721
- t.savingsLabel && /* @__PURE__ */ r.jsx("span", { className: g.savingsBadge, children: d?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
2734
+ /* @__PURE__ */ r.jsxs("div", { className: _.priceRow, children: [
2735
+ /* @__PURE__ */ r.jsx("span", { className: _.price, children: t.price }),
2736
+ t.originalPrice && /* @__PURE__ */ r.jsx("span", { className: _.originalPrice, children: t.originalPrice }),
2737
+ t.savingsLabel && /* @__PURE__ */ r.jsx("span", { className: _.savingsBadge, children: d?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
2722
2738
  ] }),
2723
2739
  /* @__PURE__ */ r.jsx(jn, { features: t.features, t: d }),
2724
- t.astrologers && /* @__PURE__ */ r.jsx("div", { className: g.planDivider }),
2740
+ t.astrologers && /* @__PURE__ */ r.jsx("div", { className: _.planDivider }),
2725
2741
  t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2726
- /* @__PURE__ */ r.jsx("p", { className: g.astrologerHeading, children: d?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
2727
- /* @__PURE__ */ r.jsx("div", { className: g.astrologerList, role: "list", children: t.astrologers.map((h, T) => /* @__PURE__ */ r.jsx("div", { role: "listitem", children: /* @__PURE__ */ r.jsx(Tn, { astrologer: h, t: d }) }, T)) })
2742
+ /* @__PURE__ */ r.jsx("p", { className: _.astrologerHeading, children: d?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
2743
+ /* @__PURE__ */ r.jsx("div", { className: _.astrologerList, role: "list", children: t.astrologers.map((g, T) => /* @__PURE__ */ r.jsx("div", { role: "listitem", children: /* @__PURE__ */ r.jsx(Tn, { astrologer: g, t: d }) }, T)) })
2728
2744
  ] })
2729
2745
  ] })
2730
2746
  ]
@@ -2793,88 +2809,88 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2793
2809
  onClose: o,
2794
2810
  selectedPlan: c,
2795
2811
  onSelectPlan: d,
2796
- plans: _,
2797
- onProceed: w,
2798
- t: h,
2812
+ plans: b,
2813
+ onProceed: x,
2814
+ t: g,
2799
2815
  analytics: T
2800
2816
  }) => {
2801
- const O = Le()?.config.isGlobal ?? !0, x = _ ?? En(O), E = c?.id || x.find((p) => p.badge)?.id || x[0]?.id || "", u = K(null), I = K(null), b = K(!1);
2802
- z(() => {
2817
+ const O = Ie()?.config.isGlobal ?? !0, P = b ?? En(O), E = c?.id || P.find((f) => f.badge)?.id || P[0]?.id || "", u = F(null), I = F(null), h = F(!1);
2818
+ J(() => {
2803
2819
  if (t) {
2804
2820
  if (!c) {
2805
- const p = x.find((m) => m.badge) ?? x[0];
2806
- p && d(p);
2821
+ const f = P.find((m) => m.badge) ?? P[0];
2822
+ f && d(f);
2807
2823
  }
2808
- b.current || (T?.trackPlanPageViewed?.(), b.current = !0);
2824
+ h.current || (T?.trackPlanPageViewed?.(), h.current = !0);
2809
2825
  } else
2810
- b.current = !1;
2811
- }, [t, x, c, d, T]);
2812
- const F = () => {
2826
+ h.current = !1;
2827
+ }, [t, P, c, d, T]);
2828
+ const M = () => {
2813
2829
  T?.trackPlanPageClosed?.(), o();
2814
2830
  };
2815
- return z(() => {
2831
+ return J(() => {
2816
2832
  if (!t) return;
2817
- const p = document.body.style.overflow;
2833
+ const f = document.body.style.overflow;
2818
2834
  return document.body.style.overflow = "hidden", () => {
2819
- document.body.style.overflow = p;
2835
+ document.body.style.overflow = f;
2820
2836
  };
2821
2837
  }, [t]), t ? /* @__PURE__ */ r.jsx(
2822
2838
  "div",
2823
2839
  {
2824
- className: g.overlay,
2840
+ className: _.overlay,
2825
2841
  role: "dialog",
2826
2842
  "aria-modal": "true",
2827
- "aria-label": h?.("planSheetTitle") ?? "Choose Your Kundli Plan",
2843
+ "aria-label": g?.("planSheetTitle") ?? "Choose Your Kundli Plan",
2828
2844
  children: /* @__PURE__ */ r.jsxs(
2829
2845
  "div",
2830
2846
  {
2831
2847
  ref: u,
2832
- className: g.sheet,
2848
+ className: _.sheet,
2833
2849
  children: [
2834
2850
  /* @__PURE__ */ r.jsx(
2835
2851
  Cn,
2836
2852
  {
2837
- title: h?.("planSheetTitle") ?? "Choose Your Kundli Plan",
2838
- onBack: F
2853
+ title: g?.("planSheetTitle") ?? "Choose Your Kundli Plan",
2854
+ onBack: M
2839
2855
  }
2840
2856
  ),
2841
2857
  /* @__PURE__ */ r.jsx(
2842
2858
  "div",
2843
2859
  {
2844
2860
  ref: I,
2845
- className: g.plansContainer,
2861
+ className: _.plansContainer,
2846
2862
  role: "radiogroup",
2847
2863
  "aria-label": "Kundli plans",
2848
- children: x.map((p) => /* @__PURE__ */ r.jsx(
2864
+ children: P.map((f) => /* @__PURE__ */ r.jsx(
2849
2865
  Sn,
2850
2866
  {
2851
- plan: p,
2852
- isSelected: p.id === E,
2853
- t: h,
2867
+ plan: f,
2868
+ isSelected: f.id === E,
2869
+ t: g,
2854
2870
  onSelect: (m) => {
2855
- const y = x.find((J) => J.id === m);
2871
+ const y = P.find((Q) => Q.id === m);
2856
2872
  y && (T?.trackPlanSelected?.({
2857
2873
  planId: y.id,
2858
2874
  planName: y.title
2859
2875
  }), d(y));
2860
2876
  }
2861
2877
  },
2862
- p.id
2878
+ f.id
2863
2879
  ))
2864
2880
  }
2865
2881
  ),
2866
- /* @__PURE__ */ r.jsx("div", { className: g.footer, children: /* @__PURE__ */ r.jsx(
2882
+ /* @__PURE__ */ r.jsx("div", { className: _.footer, children: /* @__PURE__ */ r.jsx(
2867
2883
  "button",
2868
2884
  {
2869
- className: g.proceedBtn,
2885
+ className: _.proceedBtn,
2870
2886
  disabled: !c,
2871
2887
  onClick: () => {
2872
2888
  c && (T?.trackPlanProceedClicked?.({
2873
2889
  planId: c.id,
2874
2890
  planName: c.title
2875
- }), w(c), o());
2891
+ }), x(c), o());
2876
2892
  },
2877
- children: c ? h?.("planProceedToPayment") ?? c.price + "Proceed to Payment" : "Select a plan"
2893
+ children: c ? g?.("planProceedToPayment") ?? c.price + "Proceed to Payment" : "Select a plan"
2878
2894
  }
2879
2895
  ) })
2880
2896
  ]
@@ -2882,7 +2898,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2882
2898
  )
2883
2899
  }
2884
2900
  ) : null;
2885
- }, Ln = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Bn = (t, o) => _r[t]?.[o] ?? o, Dn = {
2901
+ }, Ln = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Bn = (t, o) => yr[t]?.[o] ?? o, Dn = {
2886
2902
  fullName: "",
2887
2903
  phone: "",
2888
2904
  gender: "",
@@ -2897,138 +2913,149 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
2897
2913
  locale: o,
2898
2914
  showLanguageSelector: c = !0,
2899
2915
  onBack: d,
2900
- initialValues: _,
2901
- onProceed: w,
2902
- onProceedGuidance: h,
2916
+ initialValues: b,
2917
+ onProceed: x,
2918
+ onProceedGuidance: g,
2903
2919
  proceedHref: T,
2904
2920
  originalPriceLabel: v,
2905
2921
  discountedPriceLabel: O,
2906
- googleMapsApiKey: x = "",
2922
+ googleMapsApiKey: P = "",
2907
2923
  atlasSearchLocalities: E,
2908
2924
  googleMapsAutocompleteEnabled: u,
2909
2925
  analytics: I
2910
2926
  }) => {
2911
- const b = Le(), F = Vr(), p = b !== null, m = p ? b.locale : o, y = m ?? F?.locale ?? "en", [J, V] = $(y), W = p ? b.locale : J, B = p ? b.setLocale : V, [M, A] = $(!1), S = K(null), ee = K(m), U = K(
2912
- F?.locale
2927
+ const h = Ie(), M = nt(), f = h !== null, m = f ? h.locale : o, y = m ?? M?.locale ?? "en", [Q, V] = U(y), W = f ? h.locale : Q, B = f ? h.setLocale : V, [$, A] = U(!1), S = F(null), ee = F(m), z = F(
2928
+ M?.locale
2913
2929
  );
2914
- z(() => {
2930
+ J(() => {
2915
2931
  window.scrollTo({ top: 0, left: 0, behavior: "auto" });
2916
2932
  }, []);
2917
- const D = (C) => Bn(W, C);
2918
- z(() => {
2933
+ const D = (k) => Bn(W, k);
2934
+ J(() => {
2919
2935
  m && ee.current !== m && B(m), ee.current = m;
2920
- }, [m, B]), z(() => {
2936
+ }, [m, B]), J(() => {
2921
2937
  if (m) return;
2922
- const C = F?.locale;
2923
- C && U.current !== C && B(C), U.current = C;
2924
- }, [F?.locale, m, B]);
2925
- const [j, H] = $({
2938
+ const k = M?.locale;
2939
+ k && z.current !== k && B(k), z.current = k;
2940
+ }, [M?.locale, m, B]);
2941
+ const [j, G] = U({
2926
2942
  ...Dn,
2927
- ..._,
2928
- phone: _?.phone ?? ""
2929
- }), Y = p ? b?.config.isGlobal ?? !0 : !0, [te, ne] = $(
2930
- Y ? "+1" : "+91"
2943
+ ...b,
2944
+ phone: b?.phone ?? ""
2945
+ }), H = f ? h?.config.isGlobal ?? !0 : !0, [re, ge] = U(
2946
+ H ? "+1" : "+91"
2931
2947
  );
2932
- z(() => {
2933
- ne(Y ? "+1" : "+91");
2934
- }, [Y]);
2935
- const oe = p ? b.formValues : j, ue = p ? b.setFormValues : H, me = p ? b.goToPage : d, re = p ? b.onProceed : w, Q = p ? b.onProceedGuidance : h, ge = p ? b.config.proceedHref : T, ve = p ? b.config.originalPriceLabel : v, ye = p ? b.config.discountedPriceLabel : O, ie = p ? b.config.showLanguageSelector ?? !0 : c, se = (p ? b?.config?.analytics : I) ?? I;
2936
- z(() => {
2937
- if (!M) return;
2938
- const C = (Pe) => {
2939
- S.current && !S.current.contains(Pe.target) && A(!1);
2948
+ J(() => {
2949
+ ge(H ? "+1" : "+91");
2950
+ }, [H]);
2951
+ const X = f ? h.formValues : j, Z = f ? h.setFormValues : G, ie = f ? h.goToPage : d, te = f ? h.onProceed : x, pe = f ? h.onProceedGuidance : g, _e = f ? h.config.proceedHref : T, ue = f ? h.config.originalPriceLabel : v, be = f ? h.config.discountedPriceLabel : O, se = f ? h.config.showLanguageSelector ?? !0 : c, ae = (f ? h?.config?.analytics : I) ?? I;
2952
+ J(() => {
2953
+ if (!$) return;
2954
+ const k = (xe) => {
2955
+ S.current && !S.current.contains(xe.target) && A(!1);
2940
2956
  };
2941
- return document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
2942
- }, [M]);
2943
- const [le, fe] = $(!1), [X, Te] = $(null), Z = K(null), ke = be((C) => {
2944
- Z.current = C, fe(!0);
2945
- }, []), we = be(() => {
2946
- if (!Z.current || !X) return;
2947
- se?.trackPlanProceedClicked?.({
2948
- planId: X.id,
2949
- planName: X.title,
2950
- price: X.price,
2951
- currency: Y ? "USD" : "INR"
2957
+ return document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
2958
+ }, [$]);
2959
+ const [le, ce] = U(!1), [Y, Te] = U(null), ye = F(null), ne = we((k) => {
2960
+ ye.current = k, ce(!0);
2961
+ }, []), Pe = F(!1);
2962
+ J(() => {
2963
+ if (Pe.current || !f || !h?.config.autoOpenPlanSheet || h?.config.variant !== "v1")
2964
+ return;
2965
+ Pe.current = !0;
2966
+ const k = (X.phone ?? "").trim();
2967
+ ne({
2968
+ ...X,
2969
+ phone: k && `${re}-${k}`
2970
+ });
2971
+ }, [f, h?.config.autoOpenPlanSheet, h?.config.variant, X, re, ne]);
2972
+ const ve = we(() => {
2973
+ if (!ye.current || !Y) return;
2974
+ ae?.trackPlanProceedClicked?.({
2975
+ planId: Y.id,
2976
+ planName: Y.title,
2977
+ price: Y.price,
2978
+ currency: H ? "USD" : "INR"
2952
2979
  });
2953
- const C = { ...Z.current, _selectedPlan: X };
2954
- X.id === wr && Q ? Q(C) : re?.(C), fe(!1), Z.current = null;
2955
- }, [X, re, Q]), xe = b?.config.imageComponent ?? He, ce = ie ? /* @__PURE__ */ r.jsxs("div", { className: _e.langDropdownWrap, ref: S, children: [
2980
+ const k = { ...ye.current, _selectedPlan: Y };
2981
+ Y.id === Pr && pe ? pe(k) : te?.(k), ce(!1), ye.current = null;
2982
+ }, [Y, te, pe]), Ae = h?.config.imageComponent ?? Ye, he = se ? /* @__PURE__ */ r.jsxs("div", { className: ke.langDropdownWrap, ref: S, children: [
2956
2983
  /* @__PURE__ */ r.jsxs(
2957
2984
  "button",
2958
2985
  {
2959
2986
  type: "button",
2960
- className: _e.langTrigger,
2987
+ className: ke.langTrigger,
2961
2988
  onClick: () => {
2962
- se?.trackLanguageClickedFe?.({ language: W }), A((C) => !C);
2989
+ ae?.trackLanguageClickedFe?.({ language: W }), A((k) => !k);
2963
2990
  },
2964
- "aria-expanded": M,
2991
+ "aria-expanded": $,
2965
2992
  "aria-haspopup": "listbox",
2966
2993
  id: "kundli-form-lang",
2967
2994
  "aria-label": D("language"),
2968
2995
  children: [
2969
2996
  /* @__PURE__ */ r.jsx(
2970
- xe,
2997
+ Ae,
2971
2998
  {
2972
2999
  src: Ln,
2973
3000
  alt: "",
2974
- className: _e.langIcon,
3001
+ className: ke.langIcon,
2975
3002
  width: 16,
2976
3003
  height: 16,
2977
3004
  loading: "eager"
2978
3005
  }
2979
3006
  ),
2980
- /* @__PURE__ */ r.jsx("span", { className: _e.langLabel, children: ur[W] })
3007
+ /* @__PURE__ */ r.jsx("span", { className: ke.langLabel, children: fr[W] })
2981
3008
  ]
2982
3009
  }
2983
3010
  ),
2984
- M && /* @__PURE__ */ r.jsx(
3011
+ $ && /* @__PURE__ */ r.jsx(
2985
3012
  "ul",
2986
3013
  {
2987
- className: _e.langMenu,
3014
+ className: ke.langMenu,
2988
3015
  role: "listbox",
2989
3016
  "aria-labelledby": "kundli-form-lang",
2990
3017
  "aria-activedescendant": `kundli-form-lang-option-${W}`,
2991
- children: gr.map((C) => /* @__PURE__ */ r.jsx(
3018
+ children: br.map((k) => /* @__PURE__ */ r.jsx(
2992
3019
  "li",
2993
3020
  {
2994
- id: `kundli-form-lang-option-${C}`,
3021
+ id: `kundli-form-lang-option-${k}`,
2995
3022
  role: "option",
2996
- "aria-selected": C === W,
2997
- className: _e.langOption,
3023
+ "aria-selected": k === W,
3024
+ className: ke.langOption,
2998
3025
  onClick: () => {
2999
- se?.trackLanguageChangedFe?.({ newLanguage: C }), B(C), A(!1);
3026
+ ae?.trackLanguageChangedFe?.({ newLanguage: k }), B(k), A(!1);
3000
3027
  },
3001
- children: ur[C]
3028
+ children: fr[k]
3002
3029
  },
3003
- C
3030
+ k
3004
3031
  ))
3005
3032
  }
3006
3033
  )
3007
3034
  ] }) : null;
3008
- return /* @__PURE__ */ r.jsxs("div", { className: `${_e.container} ${t}`, children: [
3035
+ return /* @__PURE__ */ r.jsxs("div", { className: `${ke.container} ${t}`, children: [
3009
3036
  /* @__PURE__ */ r.jsx(
3010
3037
  Ia,
3011
3038
  {
3012
3039
  t: D,
3013
- logoUrl: p ? b.config.logoUrl : void 0,
3014
- languageSelector: ce,
3015
- className: _e.kundliHeaderNoBorder
3040
+ logoUrl: f ? h.config.logoUrl : void 0,
3041
+ languageSelector: he,
3042
+ className: ke.kundliHeaderNoBorder
3016
3043
  }
3017
3044
  ),
3018
- /* @__PURE__ */ r.jsx("div", { className: _e.headerSeparator, "aria-hidden": !0 }),
3019
- /* @__PURE__ */ r.jsxs("main", { className: _e.main, children: [
3020
- /* @__PURE__ */ r.jsx(mt, { t: D, onBack: me }),
3045
+ /* @__PURE__ */ r.jsx("div", { className: ke.headerSeparator, "aria-hidden": !0 }),
3046
+ /* @__PURE__ */ r.jsxs("main", { className: ke.main, children: [
3047
+ /* @__PURE__ */ r.jsx(mt, { t: D, onBack: ie }),
3021
3048
  /* @__PURE__ */ r.jsx(
3022
3049
  ba,
3023
3050
  {
3024
3051
  t: D,
3025
- values: oe,
3026
- onChange: ue,
3027
- googleMapsApiKey: x,
3052
+ values: X,
3053
+ onChange: Z,
3054
+ googleMapsApiKey: P,
3028
3055
  atlasSearchLocalities: E,
3029
3056
  googleMapsAutocompleteEnabled: u,
3030
- phoneIsdCode: te,
3031
- onPhoneIsdCodeChange: ne
3057
+ phoneIsdCode: re,
3058
+ onPhoneIsdCodeChange: ge
3032
3059
  }
3033
3060
  )
3034
3061
  ] }),
@@ -3036,32 +3063,32 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
3036
3063
  Ra,
3037
3064
  {
3038
3065
  t: D,
3039
- values: oe,
3040
- phoneIsdCode: te,
3041
- onProceed: re,
3042
- onProceedGuidance: Q,
3043
- href: ge,
3044
- originalPriceLabel: ve,
3045
- discountedPriceLabel: ye,
3046
- analytics: se,
3047
- showPlanSheet: ke,
3048
- confirmPlan: we,
3066
+ values: X,
3067
+ phoneIsdCode: re,
3068
+ onProceed: te,
3069
+ onProceedGuidance: pe,
3070
+ href: _e,
3071
+ originalPriceLabel: ue,
3072
+ discountedPriceLabel: be,
3073
+ analytics: ae,
3074
+ showPlanSheet: ne,
3075
+ confirmPlan: ve,
3049
3076
  planSheetOpen: le,
3050
- selectedPlan: X
3077
+ selectedPlan: Y
3051
3078
  }
3052
3079
  ),
3053
- b?.config.variant === "v1" && /* @__PURE__ */ r.jsx(
3080
+ h?.config.variant === "v1" && /* @__PURE__ */ r.jsx(
3054
3081
  In,
3055
3082
  {
3056
3083
  isOpen: le,
3057
- onClose: () => fe(!1),
3058
- selectedPlan: X,
3084
+ onClose: () => ce(!1),
3085
+ selectedPlan: Y,
3059
3086
  onSelectPlan: Te,
3060
3087
  onProceed: () => {
3061
- we?.();
3088
+ ve?.();
3062
3089
  },
3063
3090
  t: D,
3064
- analytics: se
3091
+ analytics: ae
3065
3092
  }
3066
3093
  )
3067
3094
  ] });
@@ -3112,31 +3139,31 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
3112
3139
  };
3113
3140
  export {
3114
3141
  Da as C,
3115
- He as D,
3142
+ Ye as D,
3116
3143
  mt as F,
3117
3144
  Mn as I,
3118
3145
  Hn as K,
3119
- ur as L,
3120
- wr as P,
3121
- gr as S,
3146
+ fr as L,
3147
+ Pr as P,
3148
+ br as S,
3122
3149
  ba as U,
3123
- yr as a,
3124
- Ze as b,
3125
- Gn as c,
3126
- st as d,
3127
- lt as e,
3128
- Le as f,
3150
+ kr as a,
3151
+ rr as b,
3152
+ Wn as c,
3153
+ Gn as d,
3154
+ st as e,
3155
+ lt as f,
3129
3156
  ot as g,
3130
- Kn as h,
3157
+ Ie as h,
3131
3158
  Un as i,
3132
- Wn as j,
3159
+ Kn as j,
3133
3160
  r as k,
3134
3161
  Ia as l,
3135
3162
  Ra as m,
3136
3163
  In as n,
3137
3164
  $n as r,
3138
3165
  it as s,
3139
- _r as t,
3140
- Vr as u
3166
+ yr as t,
3167
+ nt as u
3141
3168
  };
3142
- //# sourceMappingURL=analytics-C_LPWd_f.js.map
3169
+ //# sourceMappingURL=analytics-Cwq8wkab.js.map