@srimandir/kundli-generator 8.0.6 → 8.0.7

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,106 +1,106 @@
1
- import na, { useContext as oa, createContext as Ta, useState as N, useRef as I, useEffect as $, useMemo as Ee, useCallback as Re, Fragment as Va } from "react";
1
+ import na, { useContext as oa, createContext as Ta, useState as B, useRef as M, useEffect as q, useMemo as Ee, useCallback as je, Fragment as Va } from "react";
2
2
  import { FormSectionHeader as Ja, FooterCTAButton as za, FooterShell as Qa, CircularMarquee as Xa, footerShellStyles as Fe, PageHeader as Za } from "@srimandir/astrology-common";
3
3
  var Ve = { exports: {} }, He = {};
4
4
  var ga;
5
5
  function et() {
6
6
  if (ga) return He;
7
7
  ga = 1;
8
- var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), i = /* @__PURE__ */ Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
9
- function b(x, k, H) {
10
- var L, j = {}, m = null, F = null;
11
- H !== void 0 && (m = "" + H), k.key !== void 0 && (m = "" + k.key), k.ref !== void 0 && (F = k.ref);
12
- for (L in k) d.call(k, L) && !y.hasOwnProperty(L) && (j[L] = k[L]);
13
- if (x && x.defaultProps) for (L in k = x.defaultProps, k) j[L] === void 0 && (j[L] = k[L]);
14
- return { $$typeof: n, type: x, key: m, ref: F, props: j, _owner: _.current };
8
+ var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), i = /* @__PURE__ */ Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, g = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, k = { key: !0, ref: !0, __self: !0, __source: !0 };
9
+ function h(w, b, Y) {
10
+ var D, N = {}, p = null, U = null;
11
+ Y !== void 0 && (p = "" + Y), b.key !== void 0 && (p = "" + b.key), b.ref !== void 0 && (U = b.ref);
12
+ for (D in b) c.call(b, D) && !k.hasOwnProperty(D) && (N[D] = b[D]);
13
+ if (w && w.defaultProps) for (D in b = w.defaultProps, b) N[D] === void 0 && (N[D] = b[D]);
14
+ return { $$typeof: n, type: w, key: p, ref: U, props: N, _owner: g.current };
15
15
  }
16
- return He.Fragment = i, He.jsx = b, He.jsxs = b, He;
16
+ return He.Fragment = i, He.jsx = h, He.jsxs = h, He;
17
17
  }
18
18
  var We = {};
19
19
  var ba;
20
20
  function at() {
21
21
  return ba || (ba = 1, process.env.NODE_ENV !== "production" && (function() {
22
- var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), i = /* @__PURE__ */ Symbol.for("react.portal"), d = /* @__PURE__ */ Symbol.for("react.fragment"), _ = /* @__PURE__ */ Symbol.for("react.strict_mode"), y = /* @__PURE__ */ Symbol.for("react.profiler"), b = /* @__PURE__ */ Symbol.for("react.provider"), x = /* @__PURE__ */ Symbol.for("react.context"), k = /* @__PURE__ */ Symbol.for("react.forward_ref"), H = /* @__PURE__ */ Symbol.for("react.suspense"), L = /* @__PURE__ */ Symbol.for("react.suspense_list"), j = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.offscreen"), ee = Symbol.iterator, g = "@@iterator";
23
- function M(a) {
22
+ var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), i = /* @__PURE__ */ Symbol.for("react.portal"), c = /* @__PURE__ */ Symbol.for("react.fragment"), g = /* @__PURE__ */ Symbol.for("react.strict_mode"), k = /* @__PURE__ */ Symbol.for("react.profiler"), h = /* @__PURE__ */ Symbol.for("react.provider"), w = /* @__PURE__ */ Symbol.for("react.context"), b = /* @__PURE__ */ Symbol.for("react.forward_ref"), Y = /* @__PURE__ */ Symbol.for("react.suspense"), D = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), U = /* @__PURE__ */ Symbol.for("react.offscreen"), A = Symbol.iterator, R = "@@iterator";
23
+ function y(a) {
24
24
  if (a === null || typeof a != "object")
25
25
  return null;
26
- var s = ee && a[ee] || a[g];
26
+ var s = A && a[A] || a[R];
27
27
  return typeof s == "function" ? s : null;
28
28
  }
29
- var f = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
30
- function A(a) {
29
+ var _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
30
+ function S(a) {
31
31
  {
32
- for (var s = arguments.length, p = new Array(s > 1 ? s - 1 : 0), v = 1; v < s; v++)
33
- p[v - 1] = arguments[v];
34
- z("error", a, p);
32
+ for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), v = 1; v < s; v++)
33
+ u[v - 1] = arguments[v];
34
+ te("error", a, u);
35
35
  }
36
36
  }
37
- function z(a, s, p) {
37
+ function te(a, s, u) {
38
38
  {
39
- var v = f.ReactDebugCurrentFrame, O = v.getStackAddendum();
40
- O !== "" && (s += "%s", p = p.concat([O]));
41
- var K = p.map(function(E) {
42
- return String(E);
39
+ var v = _.ReactDebugCurrentFrame, W = v.getStackAddendum();
40
+ W !== "" && (s += "%s", u = u.concat([W]));
41
+ var z = u.map(function(F) {
42
+ return String(F);
43
43
  });
44
- K.unshift("Warning: " + s), Function.prototype.apply.call(console[a], console, K);
44
+ z.unshift("Warning: " + s), Function.prototype.apply.call(console[a], console, z);
45
45
  }
46
46
  }
47
- var C = !1, X = !1, P = !1, U = !1, S = !1, B;
48
- B = /* @__PURE__ */ Symbol.for("react.module.reference");
49
- function re(a) {
50
- return !!(typeof a == "string" || typeof a == "function" || a === d || a === y || S || a === _ || a === H || a === L || U || a === F || C || X || P || typeof a == "object" && a !== null && (a.$$typeof === m || a.$$typeof === j || a.$$typeof === b || a.$$typeof === x || a.$$typeof === k || // This needs to include all possible module reference object
47
+ var C = !1, Q = !1, x = !1, V = !1, j = !1, E;
48
+ E = /* @__PURE__ */ Symbol.for("react.module.reference");
49
+ function se(a) {
50
+ return !!(typeof a == "string" || typeof a == "function" || a === c || a === k || j || a === g || a === Y || a === D || V || a === U || C || Q || x || typeof a == "object" && a !== null && (a.$$typeof === p || a.$$typeof === N || a.$$typeof === h || a.$$typeof === w || a.$$typeof === b || // 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
- a.$$typeof === B || a.getModuleId !== void 0));
54
+ a.$$typeof === E || a.getModuleId !== void 0));
55
55
  }
56
- function te(a, s, p) {
56
+ function ae(a, s, u) {
57
57
  var v = a.displayName;
58
58
  if (v)
59
59
  return v;
60
- var O = s.displayName || s.name || "";
61
- return O !== "" ? p + "(" + O + ")" : p;
60
+ var W = s.displayName || s.name || "";
61
+ return W !== "" ? u + "(" + W + ")" : u;
62
62
  }
63
- function q(a) {
63
+ function G(a) {
64
64
  return a.displayName || "Context";
65
65
  }
66
- function w(a) {
66
+ function I(a) {
67
67
  if (a == null)
68
68
  return null;
69
- if (typeof a.tag == "number" && A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
69
+ if (typeof a.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
70
70
  return a.displayName || a.name || null;
71
71
  if (typeof a == "string")
72
72
  return a;
73
73
  switch (a) {
74
- case d:
74
+ case c:
75
75
  return "Fragment";
76
76
  case i:
77
77
  return "Portal";
78
- case y:
78
+ case k:
79
79
  return "Profiler";
80
- case _:
80
+ case g:
81
81
  return "StrictMode";
82
- case H:
82
+ case Y:
83
83
  return "Suspense";
84
- case L:
84
+ case D:
85
85
  return "SuspenseList";
86
86
  }
87
87
  if (typeof a == "object")
88
88
  switch (a.$$typeof) {
89
- case x:
89
+ case w:
90
90
  var s = a;
91
- return q(s) + ".Consumer";
91
+ return G(s) + ".Consumer";
92
+ case h:
93
+ var u = a;
94
+ return G(u._context) + ".Provider";
92
95
  case b:
93
- var p = a;
94
- return q(p._context) + ".Provider";
95
- case k:
96
- return te(a, a.render, "ForwardRef");
97
- case j:
96
+ return ae(a, a.render, "ForwardRef");
97
+ case N:
98
98
  var v = a.displayName || null;
99
- return v !== null ? v : w(a.type) || "Memo";
100
- case m: {
101
- var O = a, K = O._payload, E = O._init;
99
+ return v !== null ? v : I(a.type) || "Memo";
100
+ case p: {
101
+ var W = a, z = W._payload, F = W._init;
102
102
  try {
103
- return w(E(K));
103
+ return I(F(z));
104
104
  } catch {
105
105
  return null;
106
106
  }
@@ -108,18 +108,18 @@ function at() {
108
108
  }
109
109
  return null;
110
110
  }
111
- var D = Object.assign, ne = 0, Y, Z, Q, ae, de, ue, ye;
112
- function le() {
111
+ var $ = Object.assign, X = 0, O, Te, K, re, he, ue, we;
112
+ function ne() {
113
113
  }
114
- le.__reactDisabledLog = !0;
115
- function we() {
114
+ ne.__reactDisabledLog = !0;
115
+ function Re() {
116
116
  {
117
- if (ne === 0) {
118
- Y = console.log, Z = console.info, Q = console.warn, ae = console.error, de = console.group, ue = console.groupCollapsed, ye = console.groupEnd;
117
+ if (X === 0) {
118
+ O = console.log, Te = console.info, K = console.warn, re = console.error, he = console.group, ue = console.groupCollapsed, we = console.groupEnd;
119
119
  var a = {
120
120
  configurable: !0,
121
121
  enumerable: !0,
122
- value: le,
122
+ value: ne,
123
123
  writable: !0
124
124
  };
125
125
  Object.defineProperties(console, {
@@ -132,100 +132,100 @@ function at() {
132
132
  groupEnd: a
133
133
  });
134
134
  }
135
- ne++;
135
+ X++;
136
136
  }
137
137
  }
138
- function Te() {
138
+ function _e() {
139
139
  {
140
- if (ne--, ne === 0) {
140
+ if (X--, X === 0) {
141
141
  var a = {
142
142
  configurable: !0,
143
143
  enumerable: !0,
144
144
  writable: !0
145
145
  };
146
146
  Object.defineProperties(console, {
147
- log: D({}, a, {
148
- value: Y
147
+ log: $({}, a, {
148
+ value: O
149
149
  }),
150
- info: D({}, a, {
151
- value: Z
150
+ info: $({}, a, {
151
+ value: Te
152
152
  }),
153
- warn: D({}, a, {
154
- value: Q
153
+ warn: $({}, a, {
154
+ value: K
155
155
  }),
156
- error: D({}, a, {
157
- value: ae
156
+ error: $({}, a, {
157
+ value: re
158
158
  }),
159
- group: D({}, a, {
160
- value: de
159
+ group: $({}, a, {
160
+ value: he
161
161
  }),
162
- groupCollapsed: D({}, a, {
162
+ groupCollapsed: $({}, a, {
163
163
  value: ue
164
164
  }),
165
- groupEnd: D({}, a, {
166
- value: ye
165
+ groupEnd: $({}, a, {
166
+ value: we
167
167
  })
168
168
  });
169
169
  }
170
- ne < 0 && A("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
170
+ X < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
171
171
  }
172
172
  }
173
- var pe = f.ReactCurrentDispatcher, se;
174
- function oe(a, s, p) {
173
+ var pe = _.ReactCurrentDispatcher, ge;
174
+ function oe(a, s, u) {
175
175
  {
176
- if (se === void 0)
176
+ if (ge === void 0)
177
177
  try {
178
178
  throw Error();
179
- } catch (O) {
180
- var v = O.stack.trim().match(/\n( *(at )?)/);
181
- se = v && v[1] || "";
179
+ } catch (W) {
180
+ var v = W.stack.trim().match(/\n( *(at )?)/);
181
+ ge = v && v[1] || "";
182
182
  }
183
183
  return `
184
- ` + se + a;
184
+ ` + ge + a;
185
185
  }
186
186
  }
187
- var G = !1, me;
187
+ var H = !1, me;
188
188
  {
189
- var be = typeof WeakMap == "function" ? WeakMap : Map;
190
- me = new be();
189
+ var ie = typeof WeakMap == "function" ? WeakMap : Map;
190
+ me = new ie();
191
191
  }
192
- function he(a, s) {
193
- if (!a || G)
192
+ function fe(a, s) {
193
+ if (!a || H)
194
194
  return "";
195
195
  {
196
- var p = me.get(a);
197
- if (p !== void 0)
198
- return p;
196
+ var u = me.get(a);
197
+ if (u !== void 0)
198
+ return u;
199
199
  }
200
200
  var v;
201
- G = !0;
202
- var O = Error.prepareStackTrace;
201
+ H = !0;
202
+ var W = Error.prepareStackTrace;
203
203
  Error.prepareStackTrace = void 0;
204
- var K;
205
- K = pe.current, pe.current = null, we();
204
+ var z;
205
+ z = pe.current, pe.current = null, Re();
206
206
  try {
207
207
  if (s) {
208
- var E = function() {
208
+ var F = function() {
209
209
  throw Error();
210
210
  };
211
- if (Object.defineProperty(E.prototype, "props", {
211
+ if (Object.defineProperty(F.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(E, []);
217
+ Reflect.construct(F, []);
218
218
  } catch (ve) {
219
219
  v = ve;
220
220
  }
221
- Reflect.construct(a, [], E);
221
+ Reflect.construct(a, [], F);
222
222
  } else {
223
223
  try {
224
- E.call();
224
+ F.call();
225
225
  } catch (ve) {
226
226
  v = ve;
227
227
  }
228
- a.call(E.prototype);
228
+ a.call(F.prototype);
229
229
  }
230
230
  } else {
231
231
  try {
@@ -237,124 +237,124 @@ function at() {
237
237
  }
238
238
  } catch (ve) {
239
239
  if (ve && v && typeof ve.stack == "string") {
240
- for (var R = ve.stack.split(`
241
- `), ke = v.stack.split(`
242
- `), ie = R.length - 1, ce = ke.length - 1; ie >= 1 && ce >= 0 && R[ie] !== ke[ce]; )
243
- ce--;
244
- for (; ie >= 1 && ce >= 0; ie--, ce--)
245
- if (R[ie] !== ke[ce]) {
246
- if (ie !== 1 || ce !== 1)
240
+ for (var L = ve.stack.split(`
241
+ `), Ae = v.stack.split(`
242
+ `), le = L.length - 1, de = Ae.length - 1; le >= 1 && de >= 0 && L[le] !== Ae[de]; )
243
+ de--;
244
+ for (; le >= 1 && de >= 0; le--, de--)
245
+ if (L[le] !== Ae[de]) {
246
+ if (le !== 1 || de !== 1)
247
247
  do
248
- if (ie--, ce--, ce < 0 || R[ie] !== ke[ce]) {
249
- var je = `
250
- ` + R[ie].replace(" at new ", " at ");
251
- return a.displayName && je.includes("<anonymous>") && (je = je.replace("<anonymous>", a.displayName)), typeof a == "function" && me.set(a, je), je;
248
+ if (le--, de--, de < 0 || L[le] !== Ae[de]) {
249
+ var Ce = `
250
+ ` + L[le].replace(" at new ", " at ");
251
+ return a.displayName && Ce.includes("<anonymous>") && (Ce = Ce.replace("<anonymous>", a.displayName)), typeof a == "function" && me.set(a, Ce), Ce;
252
252
  }
253
- while (ie >= 1 && ce >= 0);
253
+ while (le >= 1 && de >= 0);
254
254
  break;
255
255
  }
256
256
  }
257
257
  } finally {
258
- G = !1, pe.current = K, Te(), Error.prepareStackTrace = O;
258
+ H = !1, pe.current = z, _e(), Error.prepareStackTrace = W;
259
259
  }
260
260
  var Ge = a ? a.displayName || a.name : "", Ie = Ge ? oe(Ge) : "";
261
261
  return typeof a == "function" && me.set(a, Ie), Ie;
262
262
  }
263
- function V(a, s, p) {
264
- return he(a, !1);
263
+ function ee(a, s, u) {
264
+ return fe(a, !1);
265
265
  }
266
- function Pe(a) {
266
+ function ce(a) {
267
267
  var s = a.prototype;
268
268
  return !!(s && s.isReactComponent);
269
269
  }
270
- function xe(a, s, p) {
270
+ function Ne(a, s, u) {
271
271
  if (a == null)
272
272
  return "";
273
273
  if (typeof a == "function")
274
- return he(a, Pe(a));
274
+ return fe(a, ce(a));
275
275
  if (typeof a == "string")
276
276
  return oe(a);
277
277
  switch (a) {
278
- case H:
278
+ case Y:
279
279
  return oe("Suspense");
280
- case L:
280
+ case D:
281
281
  return oe("SuspenseList");
282
282
  }
283
283
  if (typeof a == "object")
284
284
  switch (a.$$typeof) {
285
- case k:
286
- return V(a.render);
287
- case j:
288
- return xe(a.type, s, p);
289
- case m: {
290
- var v = a, O = v._payload, K = v._init;
285
+ case b:
286
+ return ee(a.render);
287
+ case N:
288
+ return Ne(a.type, s, u);
289
+ case p: {
290
+ var v = a, W = v._payload, z = v._init;
291
291
  try {
292
- return xe(K(O), s, p);
292
+ return Ne(z(W), s, u);
293
293
  } catch {
294
294
  }
295
295
  }
296
296
  }
297
297
  return "";
298
298
  }
299
- var fe = Object.prototype.hasOwnProperty, Se = {}, ge = f.ReactDebugCurrentFrame;
300
- function Ae(a) {
299
+ var Pe = Object.prototype.hasOwnProperty, ke = {}, ye = _.ReactDebugCurrentFrame;
300
+ function xe(a) {
301
301
  if (a) {
302
- var s = a._owner, p = xe(a.type, a._source, s ? s.type : null);
303
- ge.setExtraStackFrame(p);
302
+ var s = a._owner, u = Ne(a.type, a._source, s ? s.type : null);
303
+ ye.setExtraStackFrame(u);
304
304
  } else
305
- ge.setExtraStackFrame(null);
305
+ ye.setExtraStackFrame(null);
306
306
  }
307
- function Be(a, s, p, v, O) {
307
+ function Be(a, s, u, v, W) {
308
308
  {
309
- var K = Function.call.bind(fe);
310
- for (var E in a)
311
- if (K(a, E)) {
312
- var R = void 0;
309
+ var z = Function.call.bind(Pe);
310
+ for (var F in a)
311
+ if (z(a, F)) {
312
+ var L = void 0;
313
313
  try {
314
- if (typeof a[E] != "function") {
315
- var ke = Error((v || "React class") + ": " + p + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
316
- throw ke.name = "Invariant Violation", ke;
314
+ if (typeof a[F] != "function") {
315
+ var Ae = Error((v || "React class") + ": " + u + " type `" + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[F] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
316
+ throw Ae.name = "Invariant Violation", Ae;
317
317
  }
318
- R = a[E](s, E, v, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
319
- } catch (ie) {
320
- R = ie;
318
+ L = a[F](s, F, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
319
+ } catch (le) {
320
+ L = le;
321
321
  }
322
- R && !(R instanceof Error) && (Ae(O), A("%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).", v || "React class", p, E, typeof R), Ae(null)), R instanceof Error && !(R.message in Se) && (Se[R.message] = !0, Ae(O), A("Failed %s type: %s", p, R.message), Ae(null));
322
+ L && !(L instanceof Error) && (xe(W), S("%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).", v || "React class", u, F, typeof L), xe(null)), L instanceof Error && !(L.message in ke) && (ke[L.message] = !0, xe(W), S("Failed %s type: %s", u, L.message), xe(null));
323
323
  }
324
324
  }
325
325
  }
326
326
  var De = Array.isArray;
327
- function Ne(a) {
327
+ function P(a) {
328
328
  return De(a);
329
329
  }
330
330
  function l(a) {
331
331
  {
332
- var s = typeof Symbol == "function" && Symbol.toStringTag, p = s && a[Symbol.toStringTag] || a.constructor.name || "Object";
333
- return p;
332
+ var s = typeof Symbol == "function" && Symbol.toStringTag, u = s && a[Symbol.toStringTag] || a.constructor.name || "Object";
333
+ return u;
334
334
  }
335
335
  }
336
- function c(a) {
336
+ function f(a) {
337
337
  try {
338
- return J(a), !1;
338
+ return Z(a), !1;
339
339
  } catch {
340
340
  return !0;
341
341
  }
342
342
  }
343
- function J(a) {
343
+ function Z(a) {
344
344
  return "" + a;
345
345
  }
346
- function _e(a) {
347
- if (c(a))
348
- return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", l(a)), J(a);
346
+ function be(a) {
347
+ if (f(a))
348
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", l(a)), Z(a);
349
349
  }
350
- var r = f.ReactCurrentOwner, u = {
350
+ var r = _.ReactCurrentOwner, d = {
351
351
  key: !0,
352
352
  ref: !0,
353
353
  __self: !0,
354
354
  __source: !0
355
- }, W, Ce;
355
+ }, J, Se;
356
356
  function $e(a) {
357
- if (fe.call(a, "ref")) {
357
+ if (Pe.call(a, "ref")) {
358
358
  var s = Object.getOwnPropertyDescriptor(a, "ref").get;
359
359
  if (s && s.isReactWarning)
360
360
  return !1;
@@ -362,7 +362,7 @@ function at() {
362
362
  return a.ref !== void 0;
363
363
  }
364
364
  function ze(a) {
365
- if (fe.call(a, "key")) {
365
+ if (Pe.call(a, "key")) {
366
366
  var s = Object.getOwnPropertyDescriptor(a, "key").get;
367
367
  if (s && s.isReactWarning)
368
368
  return !1;
@@ -374,78 +374,78 @@ function at() {
374
374
  }
375
375
  function Da(a, s) {
376
376
  {
377
- var p = function() {
378
- W || (W = !0, A("%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)", s));
377
+ var u = function() {
378
+ J || (J = !0, S("%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)", s));
379
379
  };
380
- p.isReactWarning = !0, Object.defineProperty(a, "key", {
381
- get: p,
380
+ u.isReactWarning = !0, Object.defineProperty(a, "key", {
381
+ get: u,
382
382
  configurable: !0
383
383
  });
384
384
  }
385
385
  }
386
386
  function Ea(a, s) {
387
387
  {
388
- var p = function() {
389
- Ce || (Ce = !0, A("%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)", s));
388
+ var u = function() {
389
+ Se || (Se = !0, S("%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)", s));
390
390
  };
391
- p.isReactWarning = !0, Object.defineProperty(a, "ref", {
392
- get: p,
391
+ u.isReactWarning = !0, Object.defineProperty(a, "ref", {
392
+ get: u,
393
393
  configurable: !0
394
394
  });
395
395
  }
396
396
  }
397
- var Ia = function(a, s, p, v, O, K, E) {
398
- var R = {
397
+ var Ia = function(a, s, u, v, W, z, F) {
398
+ var L = {
399
399
  // This tag allows us to uniquely identify this as a React Element
400
400
  $$typeof: n,
401
401
  // Built-in properties that belong on the element
402
402
  type: a,
403
403
  key: s,
404
- ref: p,
405
- props: E,
404
+ ref: u,
405
+ props: F,
406
406
  // Record the component responsible for creating this element.
407
- _owner: K
407
+ _owner: z
408
408
  };
409
- return R._store = {}, Object.defineProperty(R._store, "validated", {
409
+ return L._store = {}, Object.defineProperty(L._store, "validated", {
410
410
  configurable: !1,
411
411
  enumerable: !1,
412
412
  writable: !0,
413
413
  value: !1
414
- }), Object.defineProperty(R, "_self", {
414
+ }), Object.defineProperty(L, "_self", {
415
415
  configurable: !1,
416
416
  enumerable: !1,
417
417
  writable: !1,
418
418
  value: v
419
- }), Object.defineProperty(R, "_source", {
419
+ }), Object.defineProperty(L, "_source", {
420
420
  configurable: !1,
421
421
  enumerable: !1,
422
422
  writable: !1,
423
- value: O
424
- }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
423
+ value: W
424
+ }), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
425
425
  };
426
- function Fa(a, s, p, v, O) {
426
+ function Fa(a, s, u, v, W) {
427
427
  {
428
- var K, E = {}, R = null, ke = null;
429
- p !== void 0 && (_e(p), R = "" + p), ze(s) && (_e(s.key), R = "" + s.key), $e(s) && (ke = s.ref, Ba(s, O));
430
- for (K in s)
431
- fe.call(s, K) && !u.hasOwnProperty(K) && (E[K] = s[K]);
428
+ var z, F = {}, L = null, Ae = null;
429
+ u !== void 0 && (be(u), L = "" + u), ze(s) && (be(s.key), L = "" + s.key), $e(s) && (Ae = s.ref, Ba(s, W));
430
+ for (z in s)
431
+ Pe.call(s, z) && !d.hasOwnProperty(z) && (F[z] = s[z]);
432
432
  if (a && a.defaultProps) {
433
- var ie = a.defaultProps;
434
- for (K in ie)
435
- E[K] === void 0 && (E[K] = ie[K]);
433
+ var le = a.defaultProps;
434
+ for (z in le)
435
+ F[z] === void 0 && (F[z] = le[z]);
436
436
  }
437
- if (R || ke) {
438
- var ce = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
439
- R && Da(E, ce), ke && Ea(E, ce);
437
+ if (L || Ae) {
438
+ var de = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
439
+ L && Da(F, de), Ae && Ea(F, de);
440
440
  }
441
- return Ia(a, R, ke, O, v, r.current, E);
441
+ return Ia(a, L, Ae, W, v, r.current, F);
442
442
  }
443
443
  }
444
- var Qe = f.ReactCurrentOwner, ca = f.ReactDebugCurrentFrame;
444
+ var Qe = _.ReactCurrentOwner, ca = _.ReactDebugCurrentFrame;
445
445
  function Ue(a) {
446
446
  if (a) {
447
- var s = a._owner, p = xe(a.type, a._source, s ? s.type : null);
448
- ca.setExtraStackFrame(p);
447
+ var s = a._owner, u = Ne(a.type, a._source, s ? s.type : null);
448
+ ca.setExtraStackFrame(u);
449
449
  } else
450
450
  ca.setExtraStackFrame(null);
451
451
  }
@@ -457,7 +457,7 @@ function at() {
457
457
  function da() {
458
458
  {
459
459
  if (Qe.current) {
460
- var a = w(Qe.current.type);
460
+ var a = I(Qe.current.type);
461
461
  if (a)
462
462
  return `
463
463
 
@@ -474,10 +474,10 @@ Check the render method of \`` + a + "`.";
474
474
  {
475
475
  var s = da();
476
476
  if (!s) {
477
- var p = typeof a == "string" ? a : a.displayName || a.name;
478
- p && (s = `
477
+ var u = typeof a == "string" ? a : a.displayName || a.name;
478
+ u && (s = `
479
479
 
480
- Check the top-level render call using <` + p + ">.");
480
+ Check the top-level render call using <` + u + ">.");
481
481
  }
482
482
  return s;
483
483
  }
@@ -487,30 +487,30 @@ Check the top-level render call using <` + p + ">.");
487
487
  if (!a._store || a._store.validated || a.key != null)
488
488
  return;
489
489
  a._store.validated = !0;
490
- var p = Ua(s);
491
- if (ua[p])
490
+ var u = Ua(s);
491
+ if (ua[u])
492
492
  return;
493
- ua[p] = !0;
493
+ ua[u] = !0;
494
494
  var v = "";
495
- a && a._owner && a._owner !== Qe.current && (v = " It was passed a child from " + w(a._owner.type) + "."), Ue(a), A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, v), Ue(null);
495
+ a && a._owner && a._owner !== Qe.current && (v = " It was passed a child from " + I(a._owner.type) + "."), Ue(a), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), Ue(null);
496
496
  }
497
497
  }
498
498
  function ma(a, s) {
499
499
  {
500
500
  if (typeof a != "object")
501
501
  return;
502
- if (Ne(a))
503
- for (var p = 0; p < a.length; p++) {
504
- var v = a[p];
502
+ if (P(a))
503
+ for (var u = 0; u < a.length; u++) {
504
+ var v = a[u];
505
505
  Ze(v) && pa(v, s);
506
506
  }
507
507
  else if (Ze(a))
508
508
  a._store && (a._store.validated = !0);
509
509
  else if (a) {
510
- var O = M(a);
511
- if (typeof O == "function" && O !== a.entries)
512
- for (var K = O.call(a), E; !(E = K.next()).done; )
513
- Ze(E.value) && pa(E.value, s);
510
+ var W = y(a);
511
+ if (typeof W == "function" && W !== a.entries)
512
+ for (var z = W.call(a), F; !(F = z.next()).done; )
513
+ Ze(F.value) && pa(F.value, s);
514
514
  }
515
515
  }
516
516
  }
@@ -519,73 +519,73 @@ Check the top-level render call using <` + p + ">.");
519
519
  var s = a.type;
520
520
  if (s == null || typeof s == "string")
521
521
  return;
522
- var p;
522
+ var u;
523
523
  if (typeof s == "function")
524
- p = s.propTypes;
525
- else if (typeof s == "object" && (s.$$typeof === k || // Note: Memo only checks outer props here.
524
+ u = s.propTypes;
525
+ else if (typeof s == "object" && (s.$$typeof === b || // Note: Memo only checks outer props here.
526
526
  // Inner props are checked in the reconciler.
527
- s.$$typeof === j))
528
- p = s.propTypes;
527
+ s.$$typeof === N))
528
+ u = s.propTypes;
529
529
  else
530
530
  return;
531
- if (p) {
532
- var v = w(s);
533
- Be(p, a.props, "prop", v, a);
531
+ if (u) {
532
+ var v = I(s);
533
+ Be(u, a.props, "prop", v, a);
534
534
  } else if (s.PropTypes !== void 0 && !Xe) {
535
535
  Xe = !0;
536
- var O = w(s);
537
- A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
536
+ var W = I(s);
537
+ S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
538
538
  }
539
- typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
539
+ typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
540
540
  }
541
541
  }
542
542
  function Oa(a) {
543
543
  {
544
- for (var s = Object.keys(a.props), p = 0; p < s.length; p++) {
545
- var v = s[p];
544
+ for (var s = Object.keys(a.props), u = 0; u < s.length; u++) {
545
+ var v = s[u];
546
546
  if (v !== "children" && v !== "key") {
547
- Ue(a), A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), Ue(null);
547
+ Ue(a), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), Ue(null);
548
548
  break;
549
549
  }
550
550
  }
551
- a.ref !== null && (Ue(a), A("Invalid attribute `ref` supplied to `React.Fragment`."), Ue(null));
551
+ a.ref !== null && (Ue(a), S("Invalid attribute `ref` supplied to `React.Fragment`."), Ue(null));
552
552
  }
553
553
  }
554
554
  var fa = {};
555
- function ha(a, s, p, v, O, K) {
555
+ function ha(a, s, u, v, W, z) {
556
556
  {
557
- var E = re(a);
558
- if (!E) {
559
- var R = "";
560
- (a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (R += " 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 ke = Ma();
562
- ke ? R += ke : R += da();
563
- var ie;
564
- a === null ? ie = "null" : Ne(a) ? ie = "array" : a !== void 0 && a.$$typeof === n ? (ie = "<" + (w(a.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : ie = typeof a, A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ie, R);
557
+ var F = se(a);
558
+ if (!F) {
559
+ var L = "";
560
+ (a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (L += " 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 = Ma();
562
+ Ae ? L += Ae : L += da();
563
+ var le;
564
+ a === null ? le = "null" : P(a) ? le = "array" : a !== void 0 && a.$$typeof === n ? (le = "<" + (I(a.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : le = typeof a, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", le, L);
565
565
  }
566
- var ce = Fa(a, s, p, O, K);
567
- if (ce == null)
568
- return ce;
569
- if (E) {
570
- var je = s.children;
571
- if (je !== void 0)
566
+ var de = Fa(a, s, u, W, z);
567
+ if (de == null)
568
+ return de;
569
+ if (F) {
570
+ var Ce = s.children;
571
+ if (Ce !== void 0)
572
572
  if (v)
573
- if (Ne(je)) {
574
- for (var Ge = 0; Ge < je.length; Ge++)
575
- ma(je[Ge], a);
576
- Object.freeze && Object.freeze(je);
573
+ if (P(Ce)) {
574
+ for (var Ge = 0; Ge < Ce.length; Ge++)
575
+ ma(Ce[Ge], a);
576
+ Object.freeze && Object.freeze(Ce);
577
577
  } else
578
- A("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
578
+ S("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
- ma(je, a);
580
+ ma(Ce, a);
581
581
  }
582
- if (fe.call(s, "key")) {
583
- var Ie = w(a), ve = Object.keys(s).filter(function(Ya) {
582
+ if (Pe.call(s, "key")) {
583
+ var Ie = I(a), ve = Object.keys(s).filter(function(Ya) {
584
584
  return Ya !== "key";
585
585
  }), ea = ve.length > 0 ? "{key: someKey, " + ve.join(": ..., ") + ": ...}" : "{key: someKey}";
586
586
  if (!fa[Ie + ea]) {
587
587
  var qa = ve.length > 0 ? "{" + ve.join(": ..., ") + ": ...}" : "{}";
588
- A(`A props object containing a "key" prop is being spread into JSX:
588
+ S(`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:
@@ -593,17 +593,17 @@ React keys must be passed directly to JSX without using spread:
593
593
  <%s key={someKey} {...props} />`, ea, Ie, qa, Ie), fa[Ie + ea] = !0;
594
594
  }
595
595
  }
596
- return a === d ? Oa(ce) : Ga(ce), ce;
596
+ return a === c ? Oa(de) : Ga(de), de;
597
597
  }
598
598
  }
599
- function $a(a, s, p) {
600
- return ha(a, s, p, !0);
599
+ function $a(a, s, u) {
600
+ return ha(a, s, u, !0);
601
601
  }
602
- function Ha(a, s, p) {
603
- return ha(a, s, p, !1);
602
+ function Ha(a, s, u) {
603
+ return ha(a, s, u, !1);
604
604
  }
605
605
  var Wa = Ha, Ka = $a;
606
- We.Fragment = d, We.jsx = Wa, We.jsxs = Ka;
606
+ We.Fragment = c, We.jsx = Wa, We.jsxs = Ka;
607
607
  })()), We;
608
608
  }
609
609
  var _a;
@@ -2273,24 +2273,24 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
2273
2273
  ta: _t,
2274
2274
  te: kt,
2275
2275
  kn: bt
2276
- }, Sa = Ta(null), yi = ({
2276
+ }, wa = Ta(null), yi = ({
2277
2277
  locale: t,
2278
2278
  children: n
2279
2279
  }) => {
2280
- const d = { locale: t, t: (_) => xa[t]?.[_] };
2281
- return /* @__PURE__ */ e.jsx(Sa.Provider, { value: d, children: n });
2280
+ const c = { locale: t, t: (g) => xa[t]?.[g] };
2281
+ return /* @__PURE__ */ e.jsx(wa.Provider, { value: c, children: n });
2282
2282
  };
2283
2283
  function yt() {
2284
- return oa(Sa);
2284
+ return oa(wa);
2285
2285
  }
2286
2286
  const Ye = (t) => {
2287
- const { priority: n, fetchPriority: i, width: d, height: _, ...y } = t;
2287
+ const { priority: n, fetchPriority: i, width: c, height: g, ...k } = t;
2288
2288
  return na.createElement("img", {
2289
- ...y,
2290
- width: d ?? 1,
2291
- height: _ ?? 1,
2289
+ ...k,
2290
+ width: c ?? 1,
2291
+ height: g ?? 1,
2292
2292
  decoding: "async",
2293
- loading: y.loading ?? (n ? "eager" : "lazy"),
2293
+ loading: k.loading ?? (n ? "eager" : "lazy"),
2294
2294
  ...i && { fetchPriority: i }
2295
2295
  });
2296
2296
  };
@@ -2327,13 +2327,13 @@ function vi() {
2327
2327
  return !1;
2328
2328
  }
2329
2329
  }
2330
- const wa = "kundli_language";
2330
+ const Sa = "kundli_language";
2331
2331
  function Tt() {
2332
- const t = At(wa);
2332
+ const t = At(Sa);
2333
2333
  return t && Pa.includes(t) ? t : null;
2334
2334
  }
2335
2335
  function Pt(t) {
2336
- vt(wa, t);
2336
+ vt(Sa, t);
2337
2337
  }
2338
2338
  const ia = Ta(null), xt = {
2339
2339
  fullName: "",
@@ -2350,155 +2350,155 @@ const ia = Ta(null), xt = {
2350
2350
  locale: t,
2351
2351
  showLanguageSelector: n = !0,
2352
2352
  showSheet: i,
2353
- userId: d,
2354
- isGlobal: _,
2355
- variant: y,
2356
- initialFormValues: b,
2357
- autoOpenPlanSheet: x,
2358
- googleMapsApiKey: k,
2359
- atlasSearchLocalities: H,
2360
- googleMapsAutocompleteEnabled: L,
2361
- enableConsultationScheduling: j,
2362
- fetchConsultationSlots: m,
2363
- logoUrl: F,
2364
- reportImageUrl: ee,
2365
- reportImagePriority: g,
2366
- backgroundImagePriority: M,
2367
- universityLogoUrls: f,
2368
- sampleReportHref: A,
2369
- onViewSampleReport: z,
2353
+ userId: c,
2354
+ isGlobal: g,
2355
+ variant: k,
2356
+ initialFormValues: h,
2357
+ autoOpenPlanSheet: w,
2358
+ googleMapsApiKey: b,
2359
+ atlasSearchLocalities: Y,
2360
+ googleMapsAutocompleteEnabled: D,
2361
+ enableConsultationScheduling: N,
2362
+ fetchConsultationSlots: p,
2363
+ logoUrl: U,
2364
+ reportImageUrl: A,
2365
+ reportImagePriority: R,
2366
+ backgroundImagePriority: y,
2367
+ universityLogoUrls: _,
2368
+ sampleReportHref: S,
2369
+ onViewSampleReport: te,
2370
2370
  ctaHref: C,
2371
- onCtaClick: X,
2372
- onBack: P,
2373
- readMoreReviewsHref: U,
2374
- onProceed: S,
2375
- proceedHref: B,
2376
- originalPriceLabel: re,
2377
- discountedPriceLabel: te,
2378
- domesticDiscountedPriceLabel: q,
2379
- discountPillLabel: w,
2380
- plans: D,
2381
- analytics: ne,
2382
- onProceedGuidance: Y,
2383
- onLocaleChange: Z,
2384
- imageComponent: Q = Ye,
2385
- resolvedUtmBannerImageUrl: ae,
2386
- children: de
2371
+ onCtaClick: Q,
2372
+ onBack: x,
2373
+ readMoreReviewsHref: V,
2374
+ onProceed: j,
2375
+ proceedHref: E,
2376
+ originalPriceLabel: se,
2377
+ discountedPriceLabel: ae,
2378
+ discountPillLabel: G,
2379
+ analytics: I,
2380
+ onProceedGuidance: $,
2381
+ onLocaleChange: X,
2382
+ imageComponent: O = Ye,
2383
+ resolvedUtmBannerImageUrl: Te,
2384
+ plans: K,
2385
+ threeSkuPlans: re,
2386
+ children: he
2387
2387
  }) => {
2388
- const [ue, ye] = N("landing"), [le, we] = N(t ?? "en"), [Te, pe] = N({
2388
+ const [ue, we] = B("landing"), [ne, Re] = B(t ?? "en"), [_e, pe] = B({
2389
2389
  ...xt,
2390
- ...b
2391
- }), se = I(!0);
2392
- $(() => {
2390
+ ...h
2391
+ }), ge = M(!0);
2392
+ q(() => {
2393
2393
  if (t) return;
2394
- const he = Tt();
2395
- he && we(he);
2396
- }, []), $(() => {
2397
- Pt(le);
2398
- }, [le]), $(() => {
2399
- if (se.current) {
2400
- se.current = !1;
2394
+ const fe = Tt();
2395
+ fe && Re(fe);
2396
+ }, []), q(() => {
2397
+ Pt(ne);
2398
+ }, [ne]), q(() => {
2399
+ if (ge.current) {
2400
+ ge.current = !1;
2401
2401
  return;
2402
2402
  }
2403
- Z?.(le);
2404
- }, [le, Z]);
2403
+ X?.(ne);
2404
+ }, [ne, X]);
2405
2405
  const oe = Ee(
2406
2406
  () => ({
2407
2407
  locale: t,
2408
2408
  showLanguageSelector: n,
2409
2409
  showSheet: i,
2410
- userId: d,
2411
- isGlobal: _,
2412
- variant: y,
2413
- initialFormValues: b,
2414
- autoOpenPlanSheet: x,
2415
- googleMapsApiKey: k,
2416
- atlasSearchLocalities: H,
2417
- googleMapsAutocompleteEnabled: L,
2418
- enableConsultationScheduling: j,
2419
- fetchConsultationSlots: m,
2420
- logoUrl: F,
2421
- reportImageUrl: ee,
2422
- reportImagePriority: g,
2423
- backgroundImagePriority: M,
2424
- universityLogoUrls: f,
2425
- sampleReportHref: A,
2426
- onViewSampleReport: z,
2410
+ userId: c,
2411
+ isGlobal: g,
2412
+ variant: k,
2413
+ initialFormValues: h,
2414
+ autoOpenPlanSheet: w,
2415
+ googleMapsApiKey: b,
2416
+ atlasSearchLocalities: Y,
2417
+ googleMapsAutocompleteEnabled: D,
2418
+ enableConsultationScheduling: N,
2419
+ fetchConsultationSlots: p,
2420
+ logoUrl: U,
2421
+ reportImageUrl: A,
2422
+ reportImagePriority: R,
2423
+ backgroundImagePriority: y,
2424
+ universityLogoUrls: _,
2425
+ sampleReportHref: S,
2426
+ onViewSampleReport: te,
2427
2427
  ctaHref: C,
2428
- onCtaClick: X,
2429
- onBack: P,
2430
- readMoreReviewsHref: U,
2431
- onProceed: S,
2432
- proceedHref: B,
2433
- originalPriceLabel: re,
2434
- discountedPriceLabel: te,
2435
- domesticDiscountedPriceLabel: q,
2436
- discountPillLabel: w,
2437
- plans: D,
2438
- analytics: ne,
2439
- onProceedGuidance: Y,
2440
- onLocaleChange: Z,
2441
- imageComponent: Q,
2442
- resolvedUtmBannerImageUrl: ae
2428
+ onCtaClick: Q,
2429
+ onBack: x,
2430
+ readMoreReviewsHref: V,
2431
+ onProceed: j,
2432
+ proceedHref: E,
2433
+ originalPriceLabel: se,
2434
+ discountedPriceLabel: ae,
2435
+ discountPillLabel: G,
2436
+ analytics: I,
2437
+ onProceedGuidance: $,
2438
+ onLocaleChange: X,
2439
+ imageComponent: O,
2440
+ resolvedUtmBannerImageUrl: Te,
2441
+ plans: K,
2442
+ threeSkuPlans: re
2443
2443
  }),
2444
2444
  [
2445
2445
  t,
2446
2446
  n,
2447
2447
  i,
2448
- d,
2449
- _,
2450
- y,
2451
- b,
2452
- x,
2453
- k,
2454
- H,
2455
- L,
2456
- j,
2457
- m,
2458
- F,
2459
- ee,
2448
+ c,
2460
2449
  g,
2461
- M,
2462
- f,
2463
- A,
2464
- z,
2465
- C,
2466
- X,
2467
- P,
2450
+ k,
2451
+ h,
2452
+ w,
2453
+ b,
2454
+ Y,
2455
+ D,
2456
+ N,
2457
+ p,
2468
2458
  U,
2459
+ A,
2460
+ R,
2461
+ y,
2462
+ _,
2469
2463
  S,
2470
- B,
2471
- re,
2472
2464
  te,
2473
- q,
2474
- w,
2475
- D,
2476
- ne,
2477
- Y,
2478
- Z,
2465
+ C,
2479
2466
  Q,
2480
- ae
2467
+ x,
2468
+ V,
2469
+ j,
2470
+ E,
2471
+ se,
2472
+ ae,
2473
+ G,
2474
+ I,
2475
+ $,
2476
+ X,
2477
+ O,
2478
+ Te,
2479
+ K,
2480
+ re
2481
2481
  ]
2482
- ), G = Re(() => {
2483
- ye("form");
2484
- }, [oe.analytics]), me = Re(() => {
2485
- ye("landing"), oe.onBack?.();
2486
- }, [oe.onBack]), be = Ee(
2482
+ ), H = je(() => {
2483
+ we("form");
2484
+ }, [oe.analytics]), me = je(() => {
2485
+ we("landing"), oe.onBack?.();
2486
+ }, [oe.onBack]), ie = Ee(
2487
2487
  () => ({
2488
2488
  view: ue,
2489
- locale: le,
2490
- setLocale: we,
2489
+ locale: ne,
2490
+ setLocale: Re,
2491
2491
  config: oe,
2492
- formValues: Te,
2492
+ formValues: _e,
2493
2493
  setFormValues: pe,
2494
- goToForm: G,
2494
+ goToForm: H,
2495
2495
  goToPage: me,
2496
2496
  onProceed: oe.onProceed,
2497
2497
  onProceedGuidance: oe.onProceedGuidance
2498
2498
  }),
2499
- [ue, le, oe, Te, G, me]
2499
+ [ue, ne, oe, _e, H, me]
2500
2500
  );
2501
- return /* @__PURE__ */ e.jsx(ia.Provider, { value: be, children: de });
2501
+ return /* @__PURE__ */ e.jsx(ia.Provider, { value: ie, children: he });
2502
2502
  };
2503
2503
  function Me() {
2504
2504
  return oa(ia);
@@ -2511,14 +2511,14 @@ function Pi() {
2511
2511
  );
2512
2512
  return t;
2513
2513
  }
2514
- const St = "_header_19172_1", wt = "_centered_19172_8", ya = {
2515
- header: St,
2516
- centered: wt
2514
+ const wt = "_header_19172_1", St = "_centered_19172_8", ya = {
2515
+ header: wt,
2516
+ centered: St
2517
2517
  }, Ct = ({
2518
2518
  t,
2519
2519
  onBack: n,
2520
2520
  className: i = "",
2521
- align: d = "left"
2521
+ align: c = "left"
2522
2522
  }) => /* @__PURE__ */ e.jsx(
2523
2523
  Ja,
2524
2524
  {
@@ -2526,9 +2526,9 @@ const St = "_header_19172_1", wt = "_centered_19172_8", ya = {
2526
2526
  subtitle: t("formSubtitle"),
2527
2527
  onBack: n,
2528
2528
  backAriaLabel: t("back"),
2529
- className: `${ya.header} ${d === "center" ? ya.centered : ""} ${i}`
2529
+ className: `${ya.header} ${c === "center" ? ya.centered : ""} ${i}`
2530
2530
  }
2531
- ), jt = "_wrap_119w3_1", Rt = "_card_119w3_5", Nt = "_cardInner_119w3_12", Lt = "_field_119w3_44", Bt = "_labelRow_119w3_48", Dt = "_label_119w3_48", Et = "_req_119w3_57", It = "_help_119w3_61", Ft = "_choiceRow_119w3_68", Mt = "_choiceBtn_119w3_74", Ut = "_choiceBtnActive_119w3_99", Gt = "_infoBtn_119w3_105", Ot = "_infoImg_119w3_122", $t = "_infoWrap_119w3_128", Ht = "_tooltip_119w3_134", Wt = "_tooltipArrow_119w3_150", Kt = "_inputWrap_119w3_161", qt = "_isdWrap_119w3_165", Yt = "_phoneInputGroup_119w3_169", Vt = "_isdSelectWrap_119w3_178", Jt = "_isdSelectTrigger_119w3_197", zt = "_isdDropdown_119w3_214", Qt = "_isdSearchWrap_119w3_229", Xt = "_isdSearchInput_119w3_237", Zt = "_isdOption_119w3_255", er = "_isdOptionActive_119w3_275", ar = "_isdCountryName_119w3_281", tr = "_isdCountryCode_119w3_288", rr = "_isdNoResult_119w3_295", nr = "_suggestions_119w3_302", or = "_suggestionItem_119w3_315", ir = "_suggestionMain_119w3_333", lr = "_suggestionSecondary_119w3_339", sr = "_suggestionsHint_119w3_344", cr = "_timePopover_119w3_366", dr = "_timePickerRow_119w3_382", ur = "_timePickerSelect_119w3_388", pr = "_timePickerColon_119w3_404", mr = "_meridiemToggle_119w3_412", fr = "_meridiemBtn_119w3_421", hr = "_meridiemActive_119w3_436", gr = "_timePopoverActions_119w3_441", br = "_timePopoverBtn_119w3_447", _r = "_timePopoverOk_119w3_466", kr = "_input_119w3_161", yr = "_phoneInput_119w3_169", Ar = "_iconBtn_119w3_519", vr = "_iconBtnInteractive_119w3_525", Tr = "_iconImg_119w3_544", Pr = "_checkboxRow_119w3_550", xr = "_checkbox_119w3_550", Sr = "_checkboxText_119w3_588", o = {
2531
+ ), jt = "_wrap_119w3_1", Rt = "_card_119w3_5", Nt = "_cardInner_119w3_12", Lt = "_field_119w3_44", Bt = "_labelRow_119w3_48", Dt = "_label_119w3_48", Et = "_req_119w3_57", It = "_help_119w3_61", Ft = "_choiceRow_119w3_68", Mt = "_choiceBtn_119w3_74", Ut = "_choiceBtnActive_119w3_99", Gt = "_infoBtn_119w3_105", Ot = "_infoImg_119w3_122", $t = "_infoWrap_119w3_128", Ht = "_tooltip_119w3_134", Wt = "_tooltipArrow_119w3_150", Kt = "_inputWrap_119w3_161", qt = "_isdWrap_119w3_165", Yt = "_phoneInputGroup_119w3_169", Vt = "_isdSelectWrap_119w3_178", Jt = "_isdSelectTrigger_119w3_197", zt = "_isdDropdown_119w3_214", Qt = "_isdSearchWrap_119w3_229", Xt = "_isdSearchInput_119w3_237", Zt = "_isdOption_119w3_255", er = "_isdOptionActive_119w3_275", ar = "_isdCountryName_119w3_281", tr = "_isdCountryCode_119w3_288", rr = "_isdNoResult_119w3_295", nr = "_suggestions_119w3_302", or = "_suggestionItem_119w3_315", ir = "_suggestionMain_119w3_333", lr = "_suggestionSecondary_119w3_339", sr = "_suggestionsHint_119w3_344", cr = "_timePopover_119w3_366", dr = "_timePickerRow_119w3_382", ur = "_timePickerSelect_119w3_388", pr = "_timePickerColon_119w3_404", mr = "_meridiemToggle_119w3_412", fr = "_meridiemBtn_119w3_421", hr = "_meridiemActive_119w3_436", gr = "_timePopoverActions_119w3_441", br = "_timePopoverBtn_119w3_447", _r = "_timePopoverOk_119w3_466", kr = "_input_119w3_161", yr = "_phoneInput_119w3_169", Ar = "_iconBtn_119w3_519", vr = "_iconBtnInteractive_119w3_525", Tr = "_iconImg_119w3_544", Pr = "_checkboxRow_119w3_550", xr = "_checkbox_119w3_550", wr = "_checkboxText_119w3_588", o = {
2532
2532
  wrap: jt,
2533
2533
  card: Rt,
2534
2534
  cardInner: Nt,
@@ -2580,141 +2580,141 @@ const St = "_header_19172_1", wt = "_centered_19172_8", ya = {
2580
2580
  iconImg: Tr,
2581
2581
  checkboxRow: Pr,
2582
2582
  checkbox: xr,
2583
- checkboxText: Sr
2583
+ checkboxText: wr
2584
2584
  };
2585
2585
  let Je = null;
2586
- const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : Je || (Je = new Promise((i, d) => {
2587
- const _ = document.querySelector(
2586
+ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : Je || (Je = new Promise((i, c) => {
2587
+ const g = document.querySelector(
2588
2588
  'script[data-google-maps-places="true"]'
2589
2589
  );
2590
- if (_) {
2591
- _.addEventListener("load", () => i()), _.addEventListener(
2590
+ if (g) {
2591
+ g.addEventListener("load", () => i()), g.addEventListener(
2592
2592
  "error",
2593
- () => d(new Error("Failed to load Google Maps API"))
2593
+ () => c(new Error("Failed to load Google Maps API"))
2594
2594
  );
2595
2595
  return;
2596
2596
  }
2597
- const y = document.createElement("script"), b = new URL("https://maps.googleapis.com/maps/api/js");
2598
- b.searchParams.set("key", t), b.searchParams.set("libraries", "places"), b.searchParams.set("loading", "async"), n && b.searchParams.set("language", n), y.src = b.toString(), y.async = !0, y.defer = !0, y.setAttribute("data-google-maps-places", "true"), y.onload = () => {
2599
- const x = Date.now(), k = () => {
2597
+ const k = document.createElement("script"), h = new URL("https://maps.googleapis.com/maps/api/js");
2598
+ h.searchParams.set("key", t), h.searchParams.set("libraries", "places"), h.searchParams.set("loading", "async"), n && h.searchParams.set("language", n), k.src = h.toString(), k.async = !0, k.defer = !0, k.setAttribute("data-google-maps-places", "true"), k.onload = () => {
2599
+ const w = Date.now(), b = () => {
2600
2600
  if (window.google?.maps?.places) {
2601
2601
  i();
2602
2602
  return;
2603
2603
  }
2604
- if (Date.now() - x > 2e3) {
2605
- d(
2604
+ if (Date.now() - w > 2e3) {
2605
+ c(
2606
2606
  new Error(
2607
2607
  "Google Maps loaded but Places library is unavailable. Check API key restrictions / enabled APIs."
2608
2608
  )
2609
2609
  );
2610
2610
  return;
2611
2611
  }
2612
- window.setTimeout(k, 50);
2612
+ window.setTimeout(b, 50);
2613
2613
  };
2614
- k();
2615
- }, y.onerror = () => d(new Error("Failed to load Google Maps API")), document.head.appendChild(y);
2614
+ b();
2615
+ }, k.onerror = () => c(new Error("Failed to load Google Maps API")), document.head.appendChild(k);
2616
2616
  }), Je), Cr = (t) => {
2617
- const { apiKey: n, language: i = "en", restrictCountry: d, deferLoad: _ = !1 } = t, [y, b] = N(!1), [x, k] = N([]), [H, L] = N(!1), [j, m] = N(null), [F, ee] = N(!_), g = I(null), M = I(null), f = I(null), A = Re(() => {
2618
- _ && ee(!0);
2619
- }, [_]);
2620
- $(() => {
2621
- if (!n || !F) {
2622
- b(!1), m(null);
2617
+ const { apiKey: n, language: i = "en", restrictCountry: c, deferLoad: g = !1 } = t, [k, h] = B(!1), [w, b] = B([]), [Y, D] = B(!1), [N, p] = B(null), [U, A] = B(!g), R = M(null), y = M(null), _ = M(null), S = je(() => {
2618
+ g && A(!0);
2619
+ }, [g]);
2620
+ q(() => {
2621
+ if (!n || !U) {
2622
+ h(!1), p(null);
2623
2623
  return;
2624
2624
  }
2625
- wr(n, i).then(() => {
2626
- g.current = new google.maps.places.AutocompleteService();
2627
- const P = document.createElement("div");
2628
- M.current = new google.maps.places.PlacesService(P), f.current = new google.maps.places.AutocompleteSessionToken(), b(!0), m(null);
2629
- }).catch((P) => {
2630
- b(!1), m(P?.message || "Failed to load location service");
2625
+ Sr(n, i).then(() => {
2626
+ R.current = new google.maps.places.AutocompleteService();
2627
+ const x = document.createElement("div");
2628
+ y.current = new google.maps.places.PlacesService(x), _.current = new google.maps.places.AutocompleteSessionToken(), h(!0), p(null);
2629
+ }).catch((x) => {
2630
+ h(!1), p(x?.message || "Failed to load location service");
2631
2631
  });
2632
- }, [n, i, F]);
2633
- const z = Re(
2634
- async (P) => {
2635
- if (!P || P.length < 2 || !g.current) {
2636
- k([]);
2632
+ }, [n, i, U]);
2633
+ const te = je(
2634
+ async (x) => {
2635
+ if (!x || x.length < 2 || !R.current) {
2636
+ b([]);
2637
2637
  return;
2638
2638
  }
2639
- L(!0);
2639
+ D(!0);
2640
2640
  try {
2641
- const U = {
2642
- input: P,
2641
+ const V = {
2642
+ input: x,
2643
2643
  types: ["(cities)"],
2644
- sessionToken: f.current ?? void 0
2644
+ sessionToken: _.current ?? void 0
2645
2645
  };
2646
- d && (U.componentRestrictions = { country: d });
2647
- const S = await new Promise((B, re) => {
2648
- g.current.getPlacePredictions(
2649
- U,
2650
- (te, q) => {
2651
- q === google.maps.places.PlacesServiceStatus.OK && te ? B(te) : q === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? B([]) : re(new Error(`Places API error: ${q}`));
2646
+ c && (V.componentRestrictions = { country: c });
2647
+ const j = await new Promise((E, se) => {
2648
+ R.current.getPlacePredictions(
2649
+ V,
2650
+ (ae, G) => {
2651
+ G === google.maps.places.PlacesServiceStatus.OK && ae ? E(ae) : G === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? E([]) : se(new Error(`Places API error: ${G}`));
2652
2652
  }
2653
2653
  );
2654
2654
  });
2655
- k(
2656
- S.map((B) => ({
2657
- place_id: B.place_id,
2658
- description: B.description,
2655
+ b(
2656
+ j.map((E) => ({
2657
+ place_id: E.place_id,
2658
+ description: E.description,
2659
2659
  structured_formatting: {
2660
- main_text: B.structured_formatting?.main_text || B.description,
2661
- secondary_text: B.structured_formatting?.secondary_text || ""
2660
+ main_text: E.structured_formatting?.main_text || E.description,
2661
+ secondary_text: E.structured_formatting?.secondary_text || ""
2662
2662
  }
2663
2663
  }))
2664
2664
  );
2665
2665
  } catch {
2666
- k([]);
2666
+ b([]);
2667
2667
  } finally {
2668
- L(!1);
2668
+ D(!1);
2669
2669
  }
2670
2670
  },
2671
- [d]
2672
- ), C = Re(
2673
- async (P) => {
2674
- if (!M.current) return null;
2671
+ [c]
2672
+ ), C = je(
2673
+ async (x) => {
2674
+ if (!y.current) return null;
2675
2675
  try {
2676
- const U = await new Promise(
2677
- (w, D) => {
2678
- M.current.getDetails(
2676
+ const V = await new Promise(
2677
+ (I, $) => {
2678
+ y.current.getDetails(
2679
2679
  {
2680
- placeId: P,
2680
+ placeId: x,
2681
2681
  fields: ["geometry", "address_components", "formatted_address"],
2682
- sessionToken: f.current ?? void 0
2682
+ sessionToken: _.current ?? void 0
2683
2683
  },
2684
- (ne, Y) => {
2685
- Y === google.maps.places.PlacesServiceStatus.OK && ne ? w(ne) : D(new Error(`Place details error: ${Y}`));
2684
+ (X, O) => {
2685
+ O === google.maps.places.PlacesServiceStatus.OK && X ? I(X) : $(new Error(`Place details error: ${O}`));
2686
2686
  }
2687
2687
  );
2688
2688
  }
2689
2689
  );
2690
- f.current = new google.maps.places.AutocompleteSessionToken();
2691
- const S = U.geometry?.location?.lat() || 0, B = U.geometry?.location?.lng() || 0;
2692
- let re = "", te = "", q = "";
2693
- return U.address_components?.forEach((w) => {
2694
- w.types.includes("locality") && (re = w.long_name), w.types.includes("administrative_area_level_1") && (te = w.long_name), w.types.includes("country") && (q = w.long_name);
2690
+ _.current = new google.maps.places.AutocompleteSessionToken();
2691
+ const j = V.geometry?.location?.lat() || 0, E = V.geometry?.location?.lng() || 0;
2692
+ let se = "", ae = "", G = "";
2693
+ return V.address_components?.forEach((I) => {
2694
+ I.types.includes("locality") && (se = I.long_name), I.types.includes("administrative_area_level_1") && (ae = I.long_name), I.types.includes("country") && (G = I.long_name);
2695
2695
  }), {
2696
- display_name: U.formatted_address || "",
2697
- lat: S,
2698
- lng: B,
2699
- city: re,
2700
- state: te,
2701
- country: q
2696
+ display_name: V.formatted_address || "",
2697
+ lat: j,
2698
+ lng: E,
2699
+ city: se,
2700
+ state: ae,
2701
+ country: G
2702
2702
  };
2703
2703
  } catch {
2704
2704
  return null;
2705
2705
  }
2706
2706
  },
2707
2707
  []
2708
- ), X = Re(() => k([]), []);
2708
+ ), Q = je(() => b([]), []);
2709
2709
  return {
2710
- isLoaded: y,
2711
- predictions: x,
2712
- isSearching: H,
2713
- loadError: j,
2714
- searchPlaces: z,
2710
+ isLoaded: k,
2711
+ predictions: w,
2712
+ isSearching: Y,
2713
+ loadError: N,
2714
+ searchPlaces: te,
2715
2715
  getPlaceDetails: C,
2716
- clearPredictions: X,
2717
- triggerLoad: A
2716
+ clearPredictions: Q,
2717
+ triggerLoad: S
2718
2718
  // Call this to start loading Google Maps when deferred
2719
2719
  };
2720
2720
  }, Aa = (t) => typeof t == "number" && Number.isFinite(t), jr = (t) => {
@@ -2725,46 +2725,46 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
2725
2725
  restrictCountry: t?.restrictCountry
2726
2726
  };
2727
2727
  }, Rr = (t) => {
2728
- const { searchLocalities: n, restrictCountry: i } = t, [d, _] = N([]), [y, b] = N(!1), [x, k] = N(null), H = I(0);
2729
- $(() => {
2730
- k(null);
2728
+ const { searchLocalities: n, restrictCountry: i } = t, [c, g] = B([]), [k, h] = B(!1), [w, b] = B(null), Y = M(0);
2729
+ q(() => {
2730
+ b(null);
2731
2731
  }, [n]);
2732
- const L = Re(
2733
- async (m) => {
2734
- if (!m || m.length < 2 || !n) {
2735
- _([]);
2732
+ const D = je(
2733
+ async (p) => {
2734
+ if (!p || p.length < 2 || !n) {
2735
+ g([]);
2736
2736
  return;
2737
2737
  }
2738
- const F = ++H.current;
2739
- b(!0), k(null);
2738
+ const U = ++Y.current;
2739
+ h(!0), b(null);
2740
2740
  try {
2741
- const ee = jr({ restrictCountry: i }), g = await n(m, ee);
2742
- if (F !== H.current) return;
2743
- const M = (g || []).filter(
2744
- (f) => !!f?.id && !!f?.description && Aa(f?.lat) && Aa(f?.lng)
2745
- ).map((f) => ({
2746
- id: f.id,
2747
- description: f.description,
2748
- secondary_text: f.secondaryText,
2749
- lat: f.lat,
2750
- lng: f.lng
2741
+ const A = jr({ restrictCountry: i }), R = await n(p, A);
2742
+ if (U !== Y.current) return;
2743
+ const y = (R || []).filter(
2744
+ (_) => !!_?.id && !!_?.description && Aa(_?.lat) && Aa(_?.lng)
2745
+ ).map((_) => ({
2746
+ id: _.id,
2747
+ description: _.description,
2748
+ secondary_text: _.secondaryText,
2749
+ lat: _.lat,
2750
+ lng: _.lng
2751
2751
  }));
2752
- _(M);
2753
- } catch (ee) {
2754
- if (F !== H.current) return;
2755
- _([]), k(ee?.message || "Failed to fetch locations");
2752
+ g(y);
2753
+ } catch (A) {
2754
+ if (U !== Y.current) return;
2755
+ g([]), b(A?.message || "Failed to fetch locations");
2756
2756
  } finally {
2757
- F === H.current && b(!1);
2757
+ U === Y.current && h(!1);
2758
2758
  }
2759
2759
  },
2760
2760
  [i, n]
2761
- ), j = Re(() => _([]), []);
2761
+ ), N = je(() => g([]), []);
2762
2762
  return {
2763
- predictions: d,
2764
- isSearching: y,
2765
- loadError: x,
2766
- searchPlaces: L,
2767
- clearPredictions: j
2763
+ predictions: c,
2764
+ isSearching: k,
2765
+ loadError: w,
2766
+ searchPlaces: D,
2767
+ clearPredictions: N
2768
2768
  };
2769
2769
  }, Oe = {
2770
2770
  time: "https://srm-cdn.a4b.io/yoda/1770372014782.svg",
@@ -2845,134 +2845,134 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
2845
2845
  t,
2846
2846
  values: n,
2847
2847
  onChange: i,
2848
- phoneIsdCode: d,
2849
- onPhoneIsdCodeChange: _,
2850
- showV1ExtraFields: y = !1,
2851
- analytics: b,
2852
- googleMapsApiKey: x,
2853
- atlasSearchLocalities: k,
2854
- googleMapsAutocompleteEnabled: H,
2855
- className: L = ""
2848
+ phoneIsdCode: c,
2849
+ onPhoneIsdCodeChange: g,
2850
+ showV1ExtraFields: k = !1,
2851
+ analytics: h,
2852
+ googleMapsApiKey: w,
2853
+ atlasSearchLocalities: b,
2854
+ googleMapsAutocompleteEnabled: Y,
2855
+ className: D = ""
2856
2856
  }) => {
2857
- const j = Me(), m = j?.config?.analytics ?? b, F = j?.config.isGlobal ?? !0, ee = j?.config?.googleMapsApiKey, g = j?.config?.atlasSearchLocalities, M = j?.config?.googleMapsAutocompleteEnabled, [f, A] = N(!1), [z, C] = N(""), X = I(null), P = I(null), U = I({}), S = (r) => i({ ...n, ...r }), B = (r, u) => {
2857
+ const N = Me(), p = N?.config?.analytics ?? h, U = N?.config.isGlobal ?? !0, A = N?.config?.googleMapsApiKey, R = N?.config?.atlasSearchLocalities, y = N?.config?.googleMapsAutocompleteEnabled, [_, S] = B(!1), [te, C] = B(""), Q = M(null), x = M(null), V = M({}), j = (r) => i({ ...n, ...r }), E = (r, d) => {
2858
2858
  if (r === "phone") {
2859
- const W = Lr(u, d, U.current);
2860
- W.shouldTrack && m?.trackPhoneSectionFilled?.({ phone: W.fullPhone });
2859
+ const J = Lr(d, c, V.current);
2860
+ J.shouldTrack && p?.trackPhoneSectionFilled?.({ phone: J.fullPhone });
2861
2861
  return;
2862
2862
  }
2863
- u.trim() && !U.current[r] && (U.current[r] = !0, {
2864
- fullName: () => m?.trackNameSectionFilled?.(),
2865
- dateOfBirth: () => m?.trackDobFilled?.(),
2866
- birthTime: () => m?.trackTimeFilled?.(),
2867
- birthPlace: () => m?.trackPlaceOfBirthChosen?.()
2863
+ d.trim() && !V.current[r] && (V.current[r] = !0, {
2864
+ fullName: () => p?.trackNameSectionFilled?.(),
2865
+ dateOfBirth: () => p?.trackDobFilled?.(),
2866
+ birthTime: () => p?.trackTimeFilled?.(),
2867
+ birthPlace: () => p?.trackPlaceOfBirthChosen?.()
2868
2868
  }[r]?.());
2869
- }, re = (r) => {
2870
- const u = r.target.value;
2871
- u.trim() && m?.trackEmailSectionFilled?.({ email: u });
2872
- }, te = z.trim().toLowerCase(), q = Ca.filter((r) => te ? r.country.toLowerCase().includes(te) || r.code.includes(te) : !0), w = I(null);
2873
- I(null);
2874
- const D = I(null), ne = I(0), Y = I(null), [Z, Q] = N(!1), [ae, de] = N({ hour12: 12, minute: "00", meridiem: "AM" }), ue = (r) => String(r).padStart(2, "0"), ye = (r) => {
2875
- const u = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
2876
- if (!u) return r;
2877
- const W = Number(u[1]), Ce = u[2], $e = W >= 12 ? "PM" : "AM";
2878
- return `${W % 12 === 0 ? 12 : W % 12}:${Ce} ${$e}`;
2879
- }, le = (r) => {
2880
- const u = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
2881
- if (!u) return { hour12: 12, minute: "00", meridiem: "AM" };
2882
- const W = Number(u[1]), Ce = u[2], $e = W >= 12 ? "PM" : "AM";
2883
- return { hour12: W % 12 === 0 ? 12 : W % 12, minute: Ce, meridiem: $e };
2884
- }, we = (r) => {
2885
- const u = Math.min(12, Math.max(1, r.hour12)), W = /^([0-5]\d)$/.test(r.minute) ? r.minute : "00";
2886
- let Ce = u % 12;
2887
- return r.meridiem === "PM" && (Ce += 12), `${ue(Ce)}:${W}`;
2888
- }, Te = I(null), [pe, se] = N(!1), oe = I(n.birthPlace ?? ""), [G, me] = N(
2869
+ }, se = (r) => {
2870
+ const d = r.target.value;
2871
+ d.trim() && p?.trackEmailSectionFilled?.({ email: d });
2872
+ }, ae = te.trim().toLowerCase(), G = Ca.filter((r) => ae ? r.country.toLowerCase().includes(ae) || r.code.includes(ae) : !0), I = M(null);
2873
+ M(null);
2874
+ const $ = M(null), X = M(0), O = M(null), [Te, K] = B(!1), [re, he] = B({ hour12: 12, minute: "00", meridiem: "AM" }), ue = (r) => String(r).padStart(2, "0"), we = (r) => {
2875
+ const d = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
2876
+ if (!d) return r;
2877
+ const J = Number(d[1]), Se = d[2], $e = J >= 12 ? "PM" : "AM";
2878
+ return `${J % 12 === 0 ? 12 : J % 12}:${Se} ${$e}`;
2879
+ }, ne = (r) => {
2880
+ const d = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
2881
+ if (!d) return { hour12: 12, minute: "00", meridiem: "AM" };
2882
+ const J = Number(d[1]), Se = d[2], $e = J >= 12 ? "PM" : "AM";
2883
+ return { hour12: J % 12 === 0 ? 12 : J % 12, minute: Se, meridiem: $e };
2884
+ }, Re = (r) => {
2885
+ const d = Math.min(12, Math.max(1, r.hour12)), J = /^([0-5]\d)$/.test(r.minute) ? r.minute : "00";
2886
+ let Se = d % 12;
2887
+ return r.meridiem === "PM" && (Se += 12), `${ue(Se)}:${J}`;
2888
+ }, _e = M(null), [pe, ge] = B(!1), oe = M(n.birthPlace ?? ""), [H, me] = B(
2889
2889
  null
2890
- ), be = x ?? ee ?? Br?.VITE_GOOGLE_MAPS_API_KEY, he = k ?? g, V = H ?? M ?? !0, Pe = (n.birthPlace ?? "").trim(), xe = F ? void 0 : "in", Se = Cr({
2891
- apiKey: V ? be : void 0,
2890
+ ), ie = w ?? A ?? Br?.VITE_GOOGLE_MAPS_API_KEY, fe = b ?? R, ee = Y ?? y ?? !0, ce = (n.birthPlace ?? "").trim(), Ne = U ? void 0 : "in", ke = Cr({
2891
+ apiKey: ee ? ie : void 0,
2892
2892
  language: "en",
2893
- restrictCountry: xe
2894
- }), ge = Rr({
2895
- searchLocalities: V ? void 0 : he,
2896
- restrictCountry: xe
2897
- }), Ae = V ? Se.predictions.map((r) => ({
2893
+ restrictCountry: Ne
2894
+ }), ye = Rr({
2895
+ searchLocalities: ee ? void 0 : fe,
2896
+ restrictCountry: Ne
2897
+ }), xe = ee ? ke.predictions.map((r) => ({
2898
2898
  id: r.place_id,
2899
2899
  description: r.description,
2900
2900
  secondaryText: r.structured_formatting?.secondary_text,
2901
2901
  lat: void 0,
2902
2902
  lng: void 0
2903
- })) : ge.predictions.map((r) => ({
2903
+ })) : ye.predictions.map((r) => ({
2904
2904
  id: r.id,
2905
2905
  description: r.description,
2906
2906
  secondaryText: r.secondary_text,
2907
2907
  lat: r.lat,
2908
2908
  lng: r.lng
2909
- })), Be = V ? Se.isSearching : ge.isSearching, De = V ? Se.loadError : ge.loadError, Ne = V ? !!be : !!he, l = V ? Se.searchPlaces : ge.searchPlaces, c = V ? Se.clearPredictions : ge.clearPredictions, J = I(() => {
2909
+ })), Be = ee ? ke.isSearching : ye.isSearching, De = ee ? ke.loadError : ye.loadError, P = ee ? !!ie : !!fe, l = ee ? ke.searchPlaces : ye.searchPlaces, f = ee ? ke.clearPredictions : ye.clearPredictions, Z = M(() => {
2910
2910
  });
2911
- J.current = () => {
2912
- (n.birthPlace ?? "") !== oe.current && S({
2911
+ Z.current = () => {
2912
+ (n.birthPlace ?? "") !== oe.current && j({
2913
2913
  birthPlace: "",
2914
2914
  birthPlaceLat: void 0,
2915
2915
  birthPlaceLng: void 0
2916
- }), se(!1);
2917
- }, $(() => {
2918
- const r = (u) => {
2919
- Te.current && (Te.current.contains(u.target) || J.current());
2916
+ }), ge(!1);
2917
+ }, q(() => {
2918
+ const r = (d) => {
2919
+ _e.current && (_e.current.contains(d.target) || Z.current());
2920
2920
  };
2921
2921
  return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
2922
- }, []), $(() => {
2923
- const r = (u) => {
2924
- X.current && (X.current.contains(u.target) || (A(!1), C("")));
2922
+ }, []), q(() => {
2923
+ const r = (d) => {
2924
+ Q.current && (Q.current.contains(d.target) || (S(!1), C("")));
2925
2925
  };
2926
2926
  return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
2927
- }, []), $(() => {
2928
- if (!f) return;
2927
+ }, []), q(() => {
2928
+ if (!_) return;
2929
2929
  const r = window.setTimeout(() => {
2930
- P.current?.focus();
2930
+ x.current?.focus();
2931
2931
  }, 0);
2932
2932
  return () => window.clearTimeout(r);
2933
- }, [f]), $(() => {
2933
+ }, [_]), q(() => {
2934
2934
  if (!pe) return;
2935
- if (Pe.length < 2) {
2936
- c();
2935
+ if (ce.length < 2) {
2936
+ f();
2937
2937
  return;
2938
2938
  }
2939
2939
  const r = window.setTimeout(async () => {
2940
- await l(Pe);
2940
+ await l(ce);
2941
2941
  }, 250);
2942
2942
  return () => window.clearTimeout(r);
2943
- }, [c, pe, Pe, l]);
2944
- const _e = (r) => {
2945
- const u = r.current;
2946
- if (!(!u || u.disabled)) {
2947
- if (document.activeElement === u && D.current === u && Date.now() - ne.current < 6e4) {
2948
- u.blur();
2943
+ }, [f, pe, ce, l]);
2944
+ const be = (r) => {
2945
+ const d = r.current;
2946
+ if (!(!d || d.disabled)) {
2947
+ if (document.activeElement === d && $.current === d && Date.now() - X.current < 6e4) {
2948
+ d.blur();
2949
2949
  return;
2950
2950
  }
2951
- if (typeof u.showPicker == "function") {
2952
- u.showPicker(), D.current = u, ne.current = Date.now();
2951
+ if (typeof d.showPicker == "function") {
2952
+ d.showPicker(), $.current = d, X.current = Date.now();
2953
2953
  return;
2954
2954
  }
2955
- u.focus(), D.current = u, ne.current = Date.now();
2955
+ d.focus(), $.current = d, X.current = Date.now();
2956
2956
  }
2957
2957
  };
2958
- return $(() => {
2959
- const r = (u) => {
2960
- Y.current && (Y.current.contains(u.target) || Q(!1));
2958
+ return q(() => {
2959
+ const r = (d) => {
2960
+ O.current && (O.current.contains(d.target) || K(!1));
2961
2961
  };
2962
2962
  return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
2963
- }, []), $(() => {
2964
- const r = (W) => {
2965
- W.target?.closest?.("[data-info-tooltip]") == null && me(null);
2966
- }, u = (W) => {
2967
- W.key === "Escape" && me(null);
2963
+ }, []), q(() => {
2964
+ const r = (J) => {
2965
+ J.target?.closest?.("[data-info-tooltip]") == null && me(null);
2966
+ }, d = (J) => {
2967
+ J.key === "Escape" && me(null);
2968
2968
  };
2969
- return document.addEventListener("mousedown", r), document.addEventListener("keydown", u), () => {
2970
- document.removeEventListener("mousedown", r), document.removeEventListener("keydown", u);
2969
+ return document.addEventListener("mousedown", r), document.addEventListener("keydown", d), () => {
2970
+ document.removeEventListener("mousedown", r), document.removeEventListener("keydown", d);
2971
2971
  };
2972
2972
  }, []), /* @__PURE__ */ e.jsx(
2973
2973
  "section",
2974
2974
  {
2975
- className: `${o.wrap} ${L}`,
2975
+ className: `${o.wrap} ${D}`,
2976
2976
  "aria-label": t("formTitle"),
2977
2977
  children: /* @__PURE__ */ e.jsx("div", { className: o.card, children: /* @__PURE__ */ e.jsxs("div", { className: o.cardInner, children: [
2978
2978
  /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
@@ -2987,10 +2987,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
2987
2987
  className: o.input,
2988
2988
  type: "text",
2989
2989
  value: n.fullName,
2990
- onFocus: () => m?.trackNameSectionClicked?.(),
2990
+ onFocus: () => p?.trackNameSectionClicked?.(),
2991
2991
  onChange: (r) => {
2992
- const u = r.target.value;
2993
- S({ fullName: u }), B("fullName", u);
2992
+ const d = r.target.value;
2993
+ j({ fullName: d }), E("fullName", d);
2994
2994
  },
2995
2995
  placeholder: t("formFullNamePlaceholder"),
2996
2996
  autoComplete: "name"
@@ -3000,9 +3000,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3000
3000
  /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
3001
3001
  /* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, htmlFor: "kundli-phone", children: [
3002
3002
  t("formPhone"),
3003
- !F && /* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
3003
+ !U && /* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
3004
3004
  ] }) }),
3005
- /* @__PURE__ */ e.jsx("div", { className: o.inputWrap, children: /* @__PURE__ */ e.jsxs("div", { className: o.isdWrap, ref: X, children: [
3005
+ /* @__PURE__ */ e.jsx("div", { className: o.inputWrap, children: /* @__PURE__ */ e.jsxs("div", { className: o.isdWrap, ref: Q, children: [
3006
3006
  /* @__PURE__ */ e.jsxs("div", { className: o.phoneInputGroup, children: [
3007
3007
  /* @__PURE__ */ e.jsx("div", { className: o.isdSelectWrap, children: /* @__PURE__ */ e.jsx(
3008
3008
  "button",
@@ -3010,11 +3010,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3010
3010
  type: "button",
3011
3011
  className: o.isdSelectTrigger,
3012
3012
  "aria-haspopup": "listbox",
3013
- "aria-expanded": f,
3013
+ "aria-expanded": _,
3014
3014
  onClick: () => {
3015
- A((r) => !r), C("");
3015
+ S((r) => !r), C("");
3016
3016
  },
3017
- children: d
3017
+ children: c
3018
3018
  }
3019
3019
  ) }),
3020
3020
  /* @__PURE__ */ e.jsx(
@@ -3024,22 +3024,22 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3024
3024
  className: `${o.input} ${o.phoneInput}`,
3025
3025
  type: "tel",
3026
3026
  value: n.phone ?? "",
3027
- onFocus: () => m?.trackPhoneSectionClicked?.(),
3027
+ onFocus: () => p?.trackPhoneSectionClicked?.(),
3028
3028
  onChange: (r) => {
3029
- const u = r.target.value;
3030
- S({ phone: va(u) }), B("phone", va(u));
3029
+ const d = r.target.value;
3030
+ j({ phone: va(d) }), E("phone", va(d));
3031
3031
  },
3032
3032
  placeholder: t("formPhonePlaceholder"),
3033
3033
  autoComplete: "tel",
3034
3034
  inputMode: "numeric",
3035
3035
  pattern: "[0-9]{10}",
3036
3036
  maxLength: 10,
3037
- required: !F,
3038
- "aria-required": !F
3037
+ required: !U,
3038
+ "aria-required": !U
3039
3039
  }
3040
3040
  )
3041
3041
  ] }),
3042
- f && /* @__PURE__ */ e.jsxs(
3042
+ _ && /* @__PURE__ */ e.jsxs(
3043
3043
  "div",
3044
3044
  {
3045
3045
  className: o.isdDropdown,
@@ -3049,24 +3049,24 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3049
3049
  /* @__PURE__ */ e.jsx("div", { className: o.isdSearchWrap, children: /* @__PURE__ */ e.jsx(
3050
3050
  "input",
3051
3051
  {
3052
- ref: P,
3052
+ ref: x,
3053
3053
  type: "text",
3054
- value: z,
3054
+ value: te,
3055
3055
  onChange: (r) => C(r.target.value),
3056
3056
  placeholder: "Search country",
3057
3057
  className: o.isdSearchInput,
3058
3058
  "aria-label": "Search country"
3059
3059
  }
3060
3060
  ) }),
3061
- q.length > 0 ? q.map((r) => /* @__PURE__ */ e.jsxs(
3061
+ G.length > 0 ? G.map((r) => /* @__PURE__ */ e.jsxs(
3062
3062
  "button",
3063
3063
  {
3064
3064
  type: "button",
3065
3065
  role: "option",
3066
- "aria-selected": r.code === d,
3067
- className: `${o.isdOption} ${r.code === d ? o.isdOptionActive : ""}`,
3066
+ "aria-selected": r.code === c,
3067
+ className: `${o.isdOption} ${r.code === c ? o.isdOptionActive : ""}`,
3068
3068
  onClick: () => {
3069
- _(r.code), A(!1), C("");
3069
+ g(r.code), S(!1), C("");
3070
3070
  },
3071
3071
  children: [
3072
3072
  /* @__PURE__ */ e.jsx("span", { className: o.isdCountryName, children: r.country }),
@@ -3080,7 +3080,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3080
3080
  )
3081
3081
  ] }) })
3082
3082
  ] }),
3083
- y && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
3083
+ k && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
3084
3084
  /* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, children: [
3085
3085
  t("formGender"),
3086
3086
  /* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
@@ -3099,7 +3099,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3099
3099
  type: "button",
3100
3100
  className: `${o.choiceBtn} ${n.gender === "male" ? o.choiceBtnActive : ""}`,
3101
3101
  onClick: () => {
3102
- S({ gender: "male" }), m?.trackGenderSelected?.({
3102
+ j({ gender: "male" }), p?.trackGenderSelected?.({
3103
3103
  gender: "male"
3104
3104
  });
3105
3105
  },
@@ -3115,7 +3115,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3115
3115
  type: "button",
3116
3116
  className: `${o.choiceBtn} ${n.gender === "female" ? o.choiceBtnActive : ""}`,
3117
3117
  onClick: () => {
3118
- S({ gender: "female" }), m?.trackGenderSelected?.({
3118
+ j({ gender: "female" }), p?.trackGenderSelected?.({
3119
3119
  gender: "female"
3120
3120
  });
3121
3121
  },
@@ -3128,7 +3128,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3128
3128
  }
3129
3129
  )
3130
3130
  ] }),
3131
- F && /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
3131
+ U && /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
3132
3132
  /* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, htmlFor: "kundli-email", children: [
3133
3133
  t("formEmail"),
3134
3134
  /* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
@@ -3141,11 +3141,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3141
3141
  className: o.input,
3142
3142
  type: "email",
3143
3143
  value: n.email,
3144
- onFocus: () => m?.trackEmailSectionClicked?.(),
3144
+ onFocus: () => p?.trackEmailSectionClicked?.(),
3145
3145
  onChange: (r) => {
3146
- S({ email: r.target.value });
3146
+ j({ email: r.target.value });
3147
3147
  },
3148
- onBlur: re,
3148
+ onBlur: se,
3149
3149
  placeholder: t("formEmailPlaceholder"),
3150
3150
  autoComplete: "email",
3151
3151
  required: !0,
@@ -3166,9 +3166,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3166
3166
  type: "button",
3167
3167
  className: o.infoBtn,
3168
3168
  "aria-label": t("info"),
3169
- "aria-expanded": G === "dob",
3169
+ "aria-expanded": H === "dob",
3170
3170
  onClick: () => {
3171
- me((r) => r === "dob" ? null : "dob"), m?.trackInfoIconClicked?.({ fieldName: "dob" });
3171
+ me((r) => r === "dob" ? null : "dob"), p?.trackInfoIconClicked?.({ fieldName: "dob" });
3172
3172
  },
3173
3173
  children: /* @__PURE__ */ e.jsx(
3174
3174
  "img",
@@ -3181,7 +3181,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3181
3181
  )
3182
3182
  }
3183
3183
  ),
3184
- G === "dob" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
3184
+ H === "dob" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
3185
3185
  t("formDobInfo"),
3186
3186
  /* @__PURE__ */ e.jsx("span", { className: o.tooltipArrow, "aria-hidden": !0 })
3187
3187
  ] })
@@ -3194,20 +3194,20 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3194
3194
  id: "kundli-dob",
3195
3195
  className: o.input,
3196
3196
  type: "date",
3197
- ref: w,
3197
+ ref: I,
3198
3198
  value: n.dateOfBirth,
3199
3199
  max: (() => {
3200
3200
  const r = /* @__PURE__ */ new Date();
3201
3201
  return `${r.getFullYear()}-${ue(r.getMonth() + 1)}-${ue(r.getDate())}`;
3202
3202
  })(),
3203
3203
  onChange: (r) => {
3204
- const u = r.target.value, W = /* @__PURE__ */ new Date(), Ce = `${W.getFullYear()}-${ue(W.getMonth() + 1)}-${ue(W.getDate())}`;
3205
- u && u > Ce || (S({ dateOfBirth: u }), B("dateOfBirth", u), D.current = null);
3204
+ const d = r.target.value, J = /* @__PURE__ */ new Date(), Se = `${J.getFullYear()}-${ue(J.getMonth() + 1)}-${ue(J.getDate())}`;
3205
+ d && d > Se || (j({ dateOfBirth: d }), E("dateOfBirth", d), $.current = null);
3206
3206
  },
3207
- onFocus: () => m?.trackDobClicked?.(),
3208
- onClick: () => _e(w),
3207
+ onFocus: () => p?.trackDobClicked?.(),
3208
+ onClick: () => be(I),
3209
3209
  onBlur: () => {
3210
- D.current === w.current && (D.current = null);
3210
+ $.current === I.current && ($.current = null);
3211
3211
  }
3212
3212
  }
3213
3213
  ),
@@ -3219,7 +3219,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3219
3219
  "aria-label": "Open date picker",
3220
3220
  onMouseDown: (r) => r.preventDefault(),
3221
3221
  onClick: (r) => {
3222
- r.preventDefault(), r.stopPropagation(), _e(w);
3222
+ r.preventDefault(), r.stopPropagation(), be(I);
3223
3223
  },
3224
3224
  children: /* @__PURE__ */ e.jsx(
3225
3225
  "img",
@@ -3247,9 +3247,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3247
3247
  type: "button",
3248
3248
  className: o.infoBtn,
3249
3249
  "aria-label": t("info"),
3250
- "aria-expanded": G === "time",
3250
+ "aria-expanded": H === "time",
3251
3251
  onClick: () => {
3252
- m?.trackInfoIconClicked?.({ fieldName: "time" }), me((r) => r === "time" ? null : "time");
3252
+ p?.trackInfoIconClicked?.({ fieldName: "time" }), me((r) => r === "time" ? null : "time");
3253
3253
  },
3254
3254
  children: /* @__PURE__ */ e.jsx(
3255
3255
  "img",
@@ -3262,30 +3262,30 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3262
3262
  )
3263
3263
  }
3264
3264
  ),
3265
- G === "time" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
3265
+ H === "time" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
3266
3266
  t("formBirthTimeInfo"),
3267
3267
  /* @__PURE__ */ e.jsx("span", { className: o.tooltipArrow, "aria-hidden": !0 })
3268
3268
  ] })
3269
3269
  ] })
3270
3270
  ] }),
3271
- /* @__PURE__ */ e.jsxs("div", { className: o.inputWrap, ref: Y, children: [
3271
+ /* @__PURE__ */ e.jsxs("div", { className: o.inputWrap, ref: O, children: [
3272
3272
  /* @__PURE__ */ e.jsx(
3273
3273
  "input",
3274
3274
  {
3275
3275
  id: "kundli-birth-time",
3276
3276
  className: o.input,
3277
3277
  type: "text",
3278
- value: n.birthTime ? ye(n.birthTime) : "",
3278
+ value: n.birthTime ? we(n.birthTime) : "",
3279
3279
  readOnly: !0,
3280
- onFocus: () => m?.trackTimeClicked?.(),
3280
+ onFocus: () => p?.trackTimeClicked?.(),
3281
3281
  onChange: (r) => {
3282
- const u = r.target.value;
3283
- S({ birthTime: u }), B("birthTime", u);
3282
+ const d = r.target.value;
3283
+ j({ birthTime: d }), E("birthTime", d);
3284
3284
  },
3285
3285
  disabled: n.birthTimeUnknown,
3286
3286
  placeholder: "HH:MM AM",
3287
3287
  onClick: () => {
3288
- n.birthTimeUnknown || (de(le(n.birthTime || "12:00")), Q((r) => !r));
3288
+ n.birthTimeUnknown || (he(ne(n.birthTime || "12:00")), K((r) => !r));
3289
3289
  }
3290
3290
  }
3291
3291
  ),
@@ -3298,7 +3298,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3298
3298
  disabled: n.birthTimeUnknown,
3299
3299
  onMouseDown: (r) => r.preventDefault(),
3300
3300
  onClick: (r) => {
3301
- r.preventDefault(), r.stopPropagation(), !n.birthTimeUnknown && (de(le(n.birthTime || "12:00")), Q((u) => !u));
3301
+ r.preventDefault(), r.stopPropagation(), !n.birthTimeUnknown && (he(ne(n.birthTime || "12:00")), K((d) => !d));
3302
3302
  },
3303
3303
  children: /* @__PURE__ */ e.jsx(
3304
3304
  "img",
@@ -3311,7 +3311,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3311
3311
  )
3312
3312
  }
3313
3313
  ),
3314
- Z && !n.birthTimeUnknown && /* @__PURE__ */ e.jsxs(
3314
+ Te && !n.birthTimeUnknown && /* @__PURE__ */ e.jsxs(
3315
3315
  "div",
3316
3316
  {
3317
3317
  className: o.timePopover,
@@ -3323,13 +3323,13 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3323
3323
  "select",
3324
3324
  {
3325
3325
  className: o.timePickerSelect,
3326
- value: ae.hour12,
3327
- onChange: (r) => de((u) => ({
3328
- ...u,
3326
+ value: re.hour12,
3327
+ onChange: (r) => he((d) => ({
3328
+ ...d,
3329
3329
  hour12: Number(r.target.value)
3330
3330
  })),
3331
3331
  "aria-label": "Hour",
3332
- children: Array.from({ length: 12 }, (r, u) => u + 1).map((r) => /* @__PURE__ */ e.jsx("option", { value: r, children: r }, r))
3332
+ children: Array.from({ length: 12 }, (r, d) => d + 1).map((r) => /* @__PURE__ */ e.jsx("option", { value: r, children: r }, r))
3333
3333
  }
3334
3334
  ),
3335
3335
  /* @__PURE__ */ e.jsx("span", { className: o.timePickerColon, children: ":" }),
@@ -3337,10 +3337,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3337
3337
  "select",
3338
3338
  {
3339
3339
  className: o.timePickerSelect,
3340
- value: ae.minute,
3341
- onChange: (r) => de((u) => ({ ...u, minute: r.target.value })),
3340
+ value: re.minute,
3341
+ onChange: (r) => he((d) => ({ ...d, minute: r.target.value })),
3342
3342
  "aria-label": "Minute",
3343
- children: Array.from({ length: 60 }, (r, u) => ue(u)).map(
3343
+ children: Array.from({ length: 60 }, (r, d) => ue(d)).map(
3344
3344
  (r) => /* @__PURE__ */ e.jsx("option", { value: r, children: r }, r)
3345
3345
  )
3346
3346
  }
@@ -3350,8 +3350,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3350
3350
  "button",
3351
3351
  {
3352
3352
  type: "button",
3353
- className: `${o.meridiemBtn} ${ae.meridiem === "AM" ? o.meridiemActive : ""}`,
3354
- onClick: () => de((r) => ({ ...r, meridiem: "AM" })),
3353
+ className: `${o.meridiemBtn} ${re.meridiem === "AM" ? o.meridiemActive : ""}`,
3354
+ onClick: () => he((r) => ({ ...r, meridiem: "AM" })),
3355
3355
  children: "AM"
3356
3356
  }
3357
3357
  ),
@@ -3359,8 +3359,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3359
3359
  "button",
3360
3360
  {
3361
3361
  type: "button",
3362
- className: `${o.meridiemBtn} ${ae.meridiem === "PM" ? o.meridiemActive : ""}`,
3363
- onClick: () => de((r) => ({ ...r, meridiem: "PM" })),
3362
+ className: `${o.meridiemBtn} ${re.meridiem === "PM" ? o.meridiemActive : ""}`,
3363
+ onClick: () => he((r) => ({ ...r, meridiem: "PM" })),
3364
3364
  children: "PM"
3365
3365
  }
3366
3366
  )
@@ -3372,7 +3372,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3372
3372
  {
3373
3373
  type: "button",
3374
3374
  className: o.timePopoverBtn,
3375
- onClick: () => Q(!1),
3375
+ onClick: () => K(!1),
3376
3376
  children: "Cancel"
3377
3377
  }
3378
3378
  ),
@@ -3382,8 +3382,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3382
3382
  type: "button",
3383
3383
  className: `${o.timePopoverBtn} ${o.timePopoverOk}`,
3384
3384
  onClick: () => {
3385
- const r = we(ae);
3386
- S({ birthTime: r }), B("birthTime", r), Q(!1);
3385
+ const r = Re(re);
3386
+ j({ birthTime: r }), E("birthTime", r), K(!1);
3387
3387
  },
3388
3388
  "aria-label": "OK",
3389
3389
  children: /* @__PURE__ */ e.jsx(
@@ -3423,7 +3423,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3423
3423
  type: "checkbox",
3424
3424
  checked: n.birthTimeUnknown,
3425
3425
  onChange: (r) => {
3426
- m?.trackTimeCheckboxClicked?.(), S({
3426
+ p?.trackTimeCheckboxClicked?.(), j({
3427
3427
  birthTimeUnknown: r.target.checked,
3428
3428
  birthTime: r.target.checked ? "" : n.birthTime
3429
3429
  });
@@ -3457,9 +3457,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3457
3457
  type: "button",
3458
3458
  className: o.infoBtn,
3459
3459
  "aria-label": t("info"),
3460
- "aria-expanded": G === "place",
3460
+ "aria-expanded": H === "place",
3461
3461
  onClick: () => {
3462
- m?.trackInfoIconClicked?.({
3462
+ p?.trackInfoIconClicked?.({
3463
3463
  fieldName: "birthPlace"
3464
3464
  }), me((r) => r === "place" ? null : "place");
3465
3465
  },
@@ -3474,13 +3474,13 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3474
3474
  )
3475
3475
  }
3476
3476
  ),
3477
- G === "place" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
3477
+ H === "place" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
3478
3478
  t("formBirthPlaceInfo"),
3479
3479
  /* @__PURE__ */ e.jsx("span", { className: o.tooltipArrow, "aria-hidden": !0 })
3480
3480
  ] })
3481
3481
  ] })
3482
3482
  ] }),
3483
- /* @__PURE__ */ e.jsxs("div", { className: o.inputWrap, ref: Te, children: [
3483
+ /* @__PURE__ */ e.jsxs("div", { className: o.inputWrap, ref: _e, children: [
3484
3484
  /* @__PURE__ */ e.jsx(
3485
3485
  "input",
3486
3486
  {
@@ -3489,15 +3489,15 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3489
3489
  type: "text",
3490
3490
  value: n.birthPlace,
3491
3491
  onChange: (r) => {
3492
- const u = r.target.value;
3493
- S({
3494
- birthPlace: u,
3492
+ const d = r.target.value;
3493
+ j({
3494
+ birthPlace: d,
3495
3495
  birthPlaceLat: void 0,
3496
3496
  birthPlaceLng: void 0
3497
- }), B("birthPlace", u), se(!0);
3497
+ }), E("birthPlace", d), ge(!0);
3498
3498
  },
3499
3499
  onFocus: () => {
3500
- m?.trackPlaceOfBirthClicked?.(), se(!0);
3500
+ p?.trackPlaceOfBirthClicked?.(), ge(!0);
3501
3501
  },
3502
3502
  placeholder: t("formBirthPlacePlaceholder"),
3503
3503
  autoComplete: "address-level2"
@@ -3512,26 +3512,26 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3512
3512
  "aria-hidden": !0
3513
3513
  }
3514
3514
  ) }),
3515
- pe && Ae.length > 0 && /* @__PURE__ */ e.jsx("div", { className: o.suggestions, role: "listbox", children: Ae.slice(0, 8).map((r) => /* @__PURE__ */ e.jsxs(
3515
+ pe && xe.length > 0 && /* @__PURE__ */ e.jsx("div", { className: o.suggestions, role: "listbox", children: xe.slice(0, 8).map((r) => /* @__PURE__ */ e.jsxs(
3516
3516
  "button",
3517
3517
  {
3518
3518
  type: "button",
3519
3519
  className: o.suggestionItem,
3520
3520
  onClick: async () => {
3521
- const u = r.description;
3522
- if (oe.current = u, S({
3523
- birthPlace: u,
3521
+ const d = r.description;
3522
+ if (oe.current = d, j({
3523
+ birthPlace: d,
3524
3524
  birthPlaceLat: r.lat,
3525
3525
  birthPlaceLng: r.lng
3526
- }), c(), se(!1), V) {
3527
- const W = await Se.getPlaceDetails(
3526
+ }), f(), ge(!1), ee) {
3527
+ const J = await ke.getPlaceDetails(
3528
3528
  r.id
3529
3529
  );
3530
- W && (oe.current = u, i({
3530
+ J && (oe.current = d, i({
3531
3531
  ...n,
3532
- birthPlace: u,
3533
- birthPlaceLat: W.lat,
3534
- birthPlaceLng: W.lng
3532
+ birthPlace: d,
3533
+ birthPlaceLat: J.lat,
3534
+ birthPlaceLng: J.lng
3535
3535
  }));
3536
3536
  }
3537
3537
  },
@@ -3542,11 +3542,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3542
3542
  },
3543
3543
  r.id
3544
3544
  )) }),
3545
- pe && Ne && Be && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: "Loading…" }),
3546
- pe && Ne && !Be && !!De && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: De })
3545
+ pe && P && Be && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: "Loading…" }),
3546
+ pe && P && !Be && !!De && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: De })
3547
3547
  ] })
3548
3548
  ] }),
3549
- y && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
3549
+ k && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
3550
3550
  /* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, children: [
3551
3551
  t("formReportLanguage"),
3552
3552
  /* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
@@ -3565,7 +3565,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3565
3565
  type: "button",
3566
3566
  className: `${o.choiceBtn} ${n.language_code === "hi" ? o.choiceBtnActive : ""}`,
3567
3567
  onClick: () => {
3568
- S({ language_code: "hi" }), m?.trackLanguageOfReportSelected?.({
3568
+ j({ language_code: "hi" }), p?.trackLanguageOfReportSelected?.({
3569
3569
  language: "hi"
3570
3570
  });
3571
3571
  },
@@ -3581,7 +3581,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3581
3581
  type: "button",
3582
3582
  className: `${o.choiceBtn} ${n.language_code === "en" ? o.choiceBtnActive : ""}`,
3583
3583
  onClick: () => {
3584
- S({ language_code: "en" }), m?.trackLanguageOfReportSelected?.({
3584
+ j({ language_code: "en" }), p?.trackLanguageOfReportSelected?.({
3585
3585
  language: "en"
3586
3586
  });
3587
3587
  },
@@ -3597,7 +3597,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3597
3597
  type: "button",
3598
3598
  className: `${o.choiceBtn} ${n.language_code === "te" ? o.choiceBtnActive : ""}`,
3599
3599
  onClick: () => {
3600
- S({ language_code: "te" }), m?.trackLanguageOfReportSelected?.({
3600
+ j({ language_code: "te" }), p?.trackLanguageOfReportSelected?.({
3601
3601
  language: "te"
3602
3602
  });
3603
3603
  },
@@ -3613,7 +3613,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3613
3613
  type: "button",
3614
3614
  className: `${o.choiceBtn} ${n.language_code === "ta" ? o.choiceBtnActive : ""}`,
3615
3615
  onClick: () => {
3616
- S({ language_code: "ta" }), m?.trackLanguageOfReportSelected?.({
3616
+ j({ language_code: "ta" }), p?.trackLanguageOfReportSelected?.({
3617
3617
  language: "ta"
3618
3618
  });
3619
3619
  },
@@ -3629,7 +3629,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3629
3629
  type: "button",
3630
3630
  className: `${o.choiceBtn} ${n.language_code === "kn" ? o.choiceBtnActive : ""}`,
3631
3631
  onClick: () => {
3632
- S({ language_code: "kn" }), m?.trackLanguageOfReportSelected?.({
3632
+ j({ language_code: "kn" }), p?.trackLanguageOfReportSelected?.({
3633
3633
  language: "kn"
3634
3634
  });
3635
3635
  },
@@ -3645,7 +3645,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3645
3645
  type: "button",
3646
3646
  className: `${o.choiceBtn} ${n.language_code === "gu" ? o.choiceBtnActive : ""}`,
3647
3647
  onClick: () => {
3648
- S({ language_code: "gu" }), m?.trackLanguageOfReportSelected?.({
3648
+ j({ language_code: "gu" }), p?.trackLanguageOfReportSelected?.({
3649
3649
  language: "gu"
3650
3650
  });
3651
3651
  },
@@ -3661,7 +3661,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3661
3661
  type: "button",
3662
3662
  className: `${o.choiceBtn} ${n.language_code === "mr" ? o.choiceBtnActive : ""}`,
3663
3663
  onClick: () => {
3664
- S({ language_code: "mr" }), m?.trackLanguageOfReportSelected?.({
3664
+ j({ language_code: "mr" }), p?.trackLanguageOfReportSelected?.({
3665
3665
  language: "mr"
3666
3666
  });
3667
3667
  },
@@ -3744,50 +3744,49 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3744
3744
  t,
3745
3745
  values: n,
3746
3746
  phoneIsdCode: i,
3747
- requireV1ExtraFields: d = !1,
3748
- onValidationFailed: _,
3749
- onProceed: y,
3750
- onProceedGuidance: b,
3751
- href: x,
3752
- analytics: k,
3753
- className: H = "",
3754
- discountedPriceLabel: L,
3755
- domesticDiscountedPriceLabel: j,
3756
- discountPillLabel: m,
3757
- showPlanSheet: F,
3758
- confirmPlan: ee,
3759
- planSheetOpen: g,
3760
- selectedPlan: M
3747
+ requireV1ExtraFields: c = !1,
3748
+ onValidationFailed: g,
3749
+ onProceed: k,
3750
+ onProceedGuidance: h,
3751
+ href: w,
3752
+ analytics: b,
3753
+ className: Y = "",
3754
+ discountedPriceLabel: D,
3755
+ discountPillLabel: N,
3756
+ showPlanSheet: p,
3757
+ confirmPlan: U,
3758
+ planSheetOpen: A,
3759
+ selectedPlan: R
3761
3760
  }) => {
3762
- const f = Me(), A = f?.config.isGlobal ?? !0, z = f?.config?.variant, C = Ee(
3763
- () => qr(n, A, d),
3764
- [n, A, d]
3765
- ), X = C === null, P = z === "v1" && f?.config?.showSheet, U = A ? L ?? t("formDiscountedPrice") : P ? "" : j ?? "₹499", S = f?.config.imageComponent ?? Ye, B = (te) => {
3766
- if (te.preventDefault(), z === "v1" && !X && k?.trackKundliDetailedClicked?.(), !X) {
3767
- C && _?.(C);
3761
+ const y = Me(), _ = y?.config.isGlobal ?? !0, S = y?.config?.variant, te = Ee(
3762
+ () => qr(n, _, c),
3763
+ [n, _, c]
3764
+ ), C = te === null, Q = S === "v1" && y?.config?.showSheet, x = _ ? D ?? t("formDiscountedPrice") : Q ? "" : "₹499", V = y?.config.imageComponent ?? Ye, j = (se) => {
3765
+ if (se.preventDefault(), S === "v1" && !C && b?.trackKundliDetailedClicked?.(), !C) {
3766
+ te && g?.(te);
3768
3767
  return;
3769
3768
  }
3770
- const q = !!b && z === "v1" && M?.id === Ra, w = (n.phone ?? "").trim(), D = {
3769
+ const ae = !!h && S === "v1" && R?.id === Ra, G = (n.phone ?? "").trim(), I = {
3771
3770
  ...n,
3772
- phone: w && `${i}-${w}`
3771
+ phone: G && `${i}-${G}`
3773
3772
  };
3774
- if (P) {
3775
- g ? ee?.() : F?.(D);
3773
+ if (Q) {
3774
+ A ? U?.() : p?.(I);
3776
3775
  return;
3777
3776
  }
3778
- k?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), q ? b(D) : y?.(D);
3779
- }, re = /* @__PURE__ */ e.jsx(
3777
+ b?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), ae ? h(I) : k?.(I);
3778
+ }, E = /* @__PURE__ */ e.jsx(
3780
3779
  za,
3781
3780
  {
3782
- href: x,
3783
- disabled: z === "v1" ? !1 : !X,
3784
- onClick: B,
3781
+ href: w,
3782
+ disabled: S === "v1" ? !1 : !C,
3783
+ onClick: j,
3785
3784
  "aria-label": t("formPriceAria"),
3786
- className: z === "v1" && X ? Ke.ctaFilled : z === "v1" ? Ke.ctaButton : void 0,
3787
- children: z === "v1" ? X ? /* @__PURE__ */ e.jsxs("span", { className: Ke.ctaFilledContent, children: [
3788
- P ? t("selectPackage") : g && M ? `${t("proceedWithPlan")}${M.price}` : `${t("formProceed")} ${U}`,
3785
+ className: S === "v1" && C ? Ke.ctaFilled : S === "v1" ? Ke.ctaButton : void 0,
3786
+ children: S === "v1" ? C ? /* @__PURE__ */ e.jsxs("span", { className: Ke.ctaFilledContent, children: [
3787
+ Q ? t("selectPackage") : A && R ? `${t("proceedWithPlan")}${R.price}` : `${t("formProceed")} ${x}`,
3789
3788
  /* @__PURE__ */ e.jsx(
3790
- S,
3789
+ V,
3791
3790
  {
3792
3791
  src: $r,
3793
3792
  alt: "",
@@ -3800,34 +3799,34 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3800
3799
  ] }) : t("formCtaDefault") : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
3801
3800
  t("formProceed"),
3802
3801
  " ",
3803
- U
3802
+ x
3804
3803
  ] })
3805
3804
  }
3806
3805
  );
3807
3806
  return /* @__PURE__ */ e.jsx(
3808
3807
  Qa,
3809
3808
  {
3810
- className: `${Ke.footerContainer} ${H}`,
3809
+ className: `${Ke.footerContainer} ${Y}`,
3811
3810
  marquee: /* @__PURE__ */ e.jsx(Xa, { children: /* @__PURE__ */ e.jsx(Hr, { t }) }),
3812
- children: re
3811
+ children: E
3813
3812
  }
3814
3813
  );
3815
3814
  }, Vr = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", Jr = ({
3816
3815
  t,
3817
3816
  languageSelector: n,
3818
3817
  logoUrl: i = Vr,
3819
- className: d = ""
3818
+ className: c = ""
3820
3819
  }) => {
3821
- const _ = Me(), y = _?.config.isGlobal ?? !0, b = n != null && !y;
3820
+ const g = Me(), k = g?.config.isGlobal ?? !0, h = n != null && !k;
3822
3821
  return /* @__PURE__ */ e.jsx(
3823
3822
  Za,
3824
3823
  {
3825
3824
  t,
3826
3825
  logoUrl: i,
3827
- imageComponent: _?.config.imageComponent,
3826
+ imageComponent: g?.config.imageComponent,
3828
3827
  languageSelector: n,
3829
- showLanguageSelector: b,
3830
- className: d
3828
+ showLanguageSelector: h,
3829
+ className: c
3831
3830
  }
3832
3831
  );
3833
3832
  }, Na = () => /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
@@ -3882,7 +3881,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3882
3881
  /* @__PURE__ */ e.jsx("path", { d: "M3 9.5h18", stroke: "#D1D5DB", strokeWidth: "1.6" }),
3883
3882
  /* @__PURE__ */ e.jsx("path", { d: "M8 2.5v4M16 2.5v4", stroke: "#D1D5DB", strokeWidth: "1.6", strokeLinecap: "round" }),
3884
3883
  /* @__PURE__ */ e.jsx("path", { d: "M7.5 20.5L17 6", stroke: "#9CA3AF", strokeWidth: "1.6", strokeLinecap: "round" })
3885
- ] }), rn = "_overlay_1u7x5_2", nn = "_sheet_1u7x5_12", on = "_sheetFullScreen_1u7x5_36", ln = "_headerFull_1u7x5_50", sn = "_titleFull_1u7x5_63", cn = "_header_1u7x5_50", dn = "_backBtn_1u7x5_84", un = "_title_1u7x5_63", pn = "_plansContainer_1u7x5_114", mn = "_planCard_1u7x5_123", fn = "_withBadgeSpacing_1u7x5_137", hn = "_planCardSelected_1u7x5_141", gn = "_planCardPopular_1u7x5_146", bn = "_popularBadge_1u7x5_155", _n = "_planCardInner_1u7x5_173", kn = "_planTitleRow_1u7x5_184", yn = "_planTitle_1u7x5_184", An = "_radioCircle_1u7x5_199", vn = "_radioChecked_1u7x5_212", Tn = "_radioInner_1u7x5_217", Pn = "_priceRow_1u7x5_225", xn = "_price_1u7x5_225", Sn = "_originalPrice_1u7x5_238", wn = "_savingsBadge_1u7x5_245", Cn = "_featureList_1u7x5_255", jn = "_featureItem_1u7x5_264", Rn = "_featureIcon_1u7x5_270", Nn = "_featureText_1u7x5_276", Ln = "_astrologerHeading_1u7x5_287", Bn = "_astrologerList_1u7x5_294", Dn = "_astrologerCard_1u7x5_310", En = "_astrologerAvatar_1u7x5_326", In = "_astrologerAvatarPlaceholder_1u7x5_343", Fn = "_astrologerTop_1u7x5_349", Mn = "_astrologerBasicInfo_1u7x5_355", Un = "_astrologerName_1u7x5_362", Gn = "_astrologerExp_1u7x5_371", On = "_astrologerDivider_1u7x5_377", $n = "_planDivider_1u7x5_383", Hn = "_astrologerCertList_1u7x5_390", Wn = "_astrologerCertItem_1u7x5_396", Kn = "_bullet_1u7x5_404", qn = "_footer_1u7x5_409", Yn = "_proceedBtn_1u7x5_419", T = {
3884
+ ] }), rn = "_overlay_1u7x5_2", nn = "_sheet_1u7x5_12", on = "_sheetFullScreen_1u7x5_36", ln = "_headerFull_1u7x5_50", sn = "_titleFull_1u7x5_63", cn = "_header_1u7x5_50", dn = "_backBtn_1u7x5_84", un = "_title_1u7x5_63", pn = "_plansContainer_1u7x5_114", mn = "_planCard_1u7x5_123", fn = "_withBadgeSpacing_1u7x5_137", hn = "_planCardSelected_1u7x5_141", gn = "_planCardPopular_1u7x5_146", bn = "_popularBadge_1u7x5_155", _n = "_planCardInner_1u7x5_173", kn = "_planTitleRow_1u7x5_184", yn = "_planTitle_1u7x5_184", An = "_radioCircle_1u7x5_199", vn = "_radioChecked_1u7x5_212", Tn = "_radioInner_1u7x5_217", Pn = "_priceRow_1u7x5_225", xn = "_price_1u7x5_225", wn = "_originalPrice_1u7x5_238", Sn = "_savingsBadge_1u7x5_245", Cn = "_featureList_1u7x5_255", jn = "_featureItem_1u7x5_264", Rn = "_featureIcon_1u7x5_270", Nn = "_featureText_1u7x5_276", Ln = "_astrologerHeading_1u7x5_287", Bn = "_astrologerList_1u7x5_294", Dn = "_astrologerCard_1u7x5_310", En = "_astrologerAvatar_1u7x5_326", In = "_astrologerAvatarPlaceholder_1u7x5_343", Fn = "_astrologerTop_1u7x5_349", Mn = "_astrologerBasicInfo_1u7x5_355", Un = "_astrologerName_1u7x5_362", Gn = "_astrologerExp_1u7x5_371", On = "_astrologerDivider_1u7x5_377", $n = "_planDivider_1u7x5_383", Hn = "_astrologerCertList_1u7x5_390", Wn = "_astrologerCertItem_1u7x5_396", Kn = "_bullet_1u7x5_404", qn = "_footer_1u7x5_409", Yn = "_proceedBtn_1u7x5_419", T = {
3886
3885
  overlay: rn,
3887
3886
  sheet: nn,
3888
3887
  sheetFullScreen: on,
@@ -3905,8 +3904,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3905
3904
  radioInner: Tn,
3906
3905
  priceRow: Pn,
3907
3906
  price: xn,
3908
- originalPrice: Sn,
3909
- savingsBadge: wn,
3907
+ originalPrice: wn,
3908
+ savingsBadge: Sn,
3910
3909
  featureList: Cn,
3911
3910
  featureItem: jn,
3912
3911
  featureIcon: Rn,
@@ -3939,7 +3938,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3939
3938
  }
3940
3939
  ),
3941
3940
  /* @__PURE__ */ e.jsx("h2", { className: T.title, children: t })
3942
- ] }), Jn = ({ features: t, t: n }) => /* @__PURE__ */ e.jsx("ul", { className: T.featureList, "aria-label": "Plan features", children: t.map((i, d) => /* @__PURE__ */ e.jsxs("li", { className: T.featureItem, children: [
3941
+ ] }), Jn = ({ features: t, t: n }) => /* @__PURE__ */ e.jsx("ul", { className: T.featureList, "aria-label": "Plan features", children: t.map((i, c) => /* @__PURE__ */ e.jsxs("li", { className: T.featureItem, children: [
3943
3942
  /* @__PURE__ */ e.jsx("span", { className: T.featureIcon, children: i.included ? /* @__PURE__ */ e.jsx(Na, {}) : /* @__PURE__ */ e.jsx(zr, {}) }),
3944
3943
  /* @__PURE__ */ e.jsx(
3945
3944
  "span",
@@ -3948,7 +3947,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3948
3947
  children: n?.(i.text) ?? i.text
3949
3948
  }
3950
3949
  )
3951
- ] }, d)) }), zn = ({ astrologer: t, t: n }) => /* @__PURE__ */ e.jsxs("div", { className: T.astrologerCard, children: [
3950
+ ] }, c)) }), zn = ({ astrologer: t, t: n }) => /* @__PURE__ */ e.jsxs("div", { className: T.astrologerCard, children: [
3952
3951
  /* @__PURE__ */ e.jsxs("div", { className: T.astrologerTop, children: [
3953
3952
  /* @__PURE__ */ e.jsx("div", { className: T.astrologerAvatar, "aria-hidden": !0, children: t.imageUrl ? /* @__PURE__ */ e.jsx("img", { src: t.imageUrl, alt: n?.(t.name) ?? t.name, width: 40, height: 40 }) : /* @__PURE__ */ e.jsx("span", { className: T.astrologerAvatarPlaceholder, children: t.name.charAt(0) }) }),
3954
3953
  /* @__PURE__ */ e.jsxs("div", { className: T.astrologerBasicInfo, children: [
@@ -3957,17 +3956,17 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3957
3956
  ] })
3958
3957
  ] }),
3959
3958
  /* @__PURE__ */ e.jsx("div", { className: T.astrologerDivider }),
3960
- /* @__PURE__ */ e.jsx("div", { className: T.astrologerCertList, children: t.certifications.map((i, d) => /* @__PURE__ */ e.jsxs("p", { className: T.astrologerCertItem, children: [
3959
+ /* @__PURE__ */ e.jsx("div", { className: T.astrologerCertList, children: t.certifications.map((i, c) => /* @__PURE__ */ e.jsxs("p", { className: T.astrologerCertItem, children: [
3961
3960
  /* @__PURE__ */ e.jsx("span", { className: T.bullet, children: "•" }),
3962
3961
  " ",
3963
3962
  n?.(i) ?? i
3964
- ] }, d)) })
3963
+ ] }, c)) })
3965
3964
  ] }), Qn = ({ label: t }) => /* @__PURE__ */ e.jsxs("div", { className: T.popularBadge, "aria-label": t, children: [
3966
3965
  /* @__PURE__ */ e.jsx(Xr, {}),
3967
3966
  /* @__PURE__ */ e.jsx("span", { children: t })
3968
- ] }), Xn = ({ plan: t, isSelected: n, onSelect: i, t: d }) => {
3969
- const _ = () => i(t.id), y = (b) => {
3970
- (b.key === " " || b.key === "Enter") && (b.preventDefault(), i(t.id));
3967
+ ] }), Xn = ({ plan: t, isSelected: n, onSelect: i, t: c }) => {
3968
+ const g = () => i(t.id), k = (h) => {
3969
+ (h.key === " " || h.key === "Enter") && (h.preventDefault(), i(t.id));
3971
3970
  };
3972
3971
  return /* @__PURE__ */ e.jsxs(
3973
3972
  "div",
@@ -3977,17 +3976,17 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3977
3976
  n ? T.planCardSelected : "",
3978
3977
  n && T.planCardPopular
3979
3978
  ].filter(Boolean).join(" "),
3980
- onClick: _,
3979
+ onClick: g,
3981
3980
  role: "radio",
3982
3981
  "aria-checked": n,
3983
3982
  tabIndex: 0,
3984
- onKeyDown: y,
3983
+ onKeyDown: k,
3985
3984
  "data-plan-id": t.id,
3986
3985
  children: [
3987
- t.badge && /* @__PURE__ */ e.jsx(Qn, { label: d?.(t.badge) ?? t.badge }),
3986
+ t.badge && /* @__PURE__ */ e.jsx(Qn, { label: c?.(t.badge) ?? t.badge }),
3988
3987
  /* @__PURE__ */ e.jsxs("div", { className: T.planCardInner, children: [
3989
3988
  /* @__PURE__ */ e.jsxs("div", { className: `${T.planTitleRow} ${t.badge ? T.withBadgeSpacing : ""}`, children: [
3990
- /* @__PURE__ */ e.jsx("span", { className: T.planTitle, children: d?.(t.title) ?? t.title }),
3989
+ /* @__PURE__ */ e.jsx("span", { className: T.planTitle, children: c?.(t.title) ?? t.title }),
3991
3990
  /* @__PURE__ */ e.jsx(
3992
3991
  "span",
3993
3992
  {
@@ -4000,13 +3999,13 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4000
3999
  /* @__PURE__ */ e.jsxs("div", { className: T.priceRow, children: [
4001
4000
  /* @__PURE__ */ e.jsx("span", { className: T.price, children: t.price }),
4002
4001
  t.originalPrice && /* @__PURE__ */ e.jsx("span", { className: T.originalPrice, children: t.originalPrice }),
4003
- t.savingsLabel && /* @__PURE__ */ e.jsx("span", { className: T.savingsBadge, children: d?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
4002
+ t.savingsLabel && /* @__PURE__ */ e.jsx("span", { className: T.savingsBadge, children: c?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
4004
4003
  ] }),
4005
- /* @__PURE__ */ e.jsx(Jn, { features: t.features, t: d }),
4004
+ /* @__PURE__ */ e.jsx(Jn, { features: t.features, t: c }),
4006
4005
  t.astrologers && /* @__PURE__ */ e.jsx("div", { className: T.planDivider }),
4007
4006
  t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4008
- /* @__PURE__ */ e.jsx("p", { className: T.astrologerHeading, children: d?.("planAstrologerHeading") ?? "We will match you with astrologer who speaks your language" }),
4009
- /* @__PURE__ */ e.jsx("div", { className: T.astrologerList, role: "list", children: t.astrologers.map((b, x) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(zn, { astrologer: b, t: d }) }, x)) })
4007
+ /* @__PURE__ */ e.jsx("p", { className: T.astrologerHeading, children: c?.("planAstrologerHeading") ?? "We will match you with astrologer who speaks your language" }),
4008
+ /* @__PURE__ */ e.jsx("div", { className: T.astrologerList, role: "list", children: t.astrologers.map((h, w) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(zn, { astrologer: h, t: c }) }, w)) })
4010
4009
  ] })
4011
4010
  ] })
4012
4011
  ]
@@ -4015,16 +4014,16 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4015
4014
  }, aa = (t) => {
4016
4015
  const n = t.match(/T(\d{2}):(\d{2})/);
4017
4016
  if (!n) return t;
4018
- const i = Number(n[1]), d = n[2], _ = i >= 12 ? "PM" : "AM";
4019
- return `${i % 12 || 12}:${d} ${_}`;
4017
+ const i = Number(n[1]), c = n[2], g = i >= 12 ? "PM" : "AM";
4018
+ return `${i % 12 || 12}:${c} ${g}`;
4020
4019
  }, Zn = (t, n = /* @__PURE__ */ new Date()) => {
4021
- const i = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], d = /* @__PURE__ */ new Date(`${t}T00:00:00`);
4022
- if (Number.isNaN(d.getTime()))
4020
+ const i = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], c = /* @__PURE__ */ new Date(`${t}T00:00:00`);
4021
+ if (Number.isNaN(c.getTime()))
4023
4022
  return { id: t, dayLabel: t, dayNum: "" };
4024
- const _ = (x) => new Date(x.getFullYear(), x.getMonth(), x.getDate()).getTime(), y = Math.round(
4025
- (_(d) - _(n)) / (1e3 * 60 * 60 * 24)
4026
- ), b = y === 0 ? "Today" : y === 1 ? "Tomorrow" : i[d.getDay()];
4027
- return { id: t, dayLabel: b, dayNum: String(d.getDate()) };
4023
+ const g = (w) => new Date(w.getFullYear(), w.getMonth(), w.getDate()).getTime(), k = Math.round(
4024
+ (g(c) - g(n)) / (1e3 * 60 * 60 * 24)
4025
+ ), h = k === 0 ? "Today" : k === 1 ? "Tomorrow" : i[c.getDay()];
4026
+ return { id: t, dayLabel: h, dayNum: String(c.getDate()) };
4028
4027
  }, eo = [
4029
4028
  "morning",
4030
4029
  "afternoon",
@@ -4059,11 +4058,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4059
4058
  mr: ["mr", "en"],
4060
4059
  ta: ["ta", "en"]
4061
4060
  }, La = (t) => !!t?.days?.some((n) => n.has_availability && n.slots.length > 0), no = (t, n, i) => {
4062
- const d = i ? ro : to, [_, y] = d[n || "en"] ?? d.en, b = qe.map((k) => k.code).filter(
4063
- (k) => k !== _ && k !== y
4061
+ const c = i ? ro : to, [g, k] = c[n || "en"] ?? c.en, h = qe.map((b) => b.code).filter(
4062
+ (b) => b !== g && b !== k
4064
4063
  );
4065
- return [_, y, ...b].find((k) => La(t[k])) ?? _;
4066
- }, oo = "_overlay_12sjj_3", io = "_sheet_12sjj_13", lo = "_content_12sjj_35", so = "_header_12sjj_42", co = "_backBtn_12sjj_55", uo = "_title_12sjj_73", po = "_languageRow_12sjj_89", mo = "_languageLabel_12sjj_97", fo = "_languageDropdown_12sjj_103", ho = "_languageDropdownBtn_12sjj_107", go = "_languageMenu_12sjj_122", bo = "_languageMenuItem_12sjj_139", _o = "_languageMenuItemSelected_12sjj_153", ko = "_languageDivider_12sjj_159", yo = "_reportReadyBanner_12sjj_166", Ao = "_reportReadyDuration_12sjj_175", vo = "_trustRow_12sjj_181", To = "_trustAvatars_12sjj_192", Po = "_trustText_12sjj_205", xo = "_sectionHeading_12sjj_316", So = "_dateTabs_12sjj_324", wo = "_dateTabIndicator_12sjj_336", Co = "_dateTab_12sjj_324", jo = "_dateTabDivider_12sjj_370", Ro = "_dateTabSelected_12sjj_380", No = "_dateTabLabel_12sjj_385", Lo = "_dateTabNum_12sjj_392", Bo = "_periodTabs_12sjj_406", Do = "_periodTabIndicator_12sjj_334", Eo = "_periodTab_12sjj_334", Io = "_periodTabSelected_12sjj_453", Fo = "_timeGrid_12sjj_458", Mo = "_emptyState_12sjj_486", Uo = "_timeSlot_12sjj_490", Go = "_timeSlotSelected_12sjj_506", Oo = "_topicGrid_12sjj_514", $o = "_topicChip_12sjj_520", Ho = "_topicChipSelected_12sjj_536", Wo = "_stateMessage_12sjj_543", Ko = "_emptyStateIcon_12sjj_563", qo = "_emptyStateTitle_12sjj_574", Yo = "_emptyStateSubtitle_12sjj_581", Vo = "_loadingWrap_12sjj_590", Jo = "_skeletonShimmer_12sjj_595", zo = "_skeletonDateTabs_12sjj_609", Qo = "_skeletonDateTab_12sjj_609", Xo = "_skeletonPeriodTabs_12sjj_623", Zo = "_skeletonPeriodTab_12sjj_623", ei = "_skeletonTimeGrid_12sjj_638", ai = "_skeletonTimeSlot_12sjj_644", ti = "_retryBtn_12sjj_649", ri = "_footer_12sjj_663", ni = "_proceedBtn_12sjj_670", oi = "_proceedBtnDisabled_12sjj_688", h = {
4064
+ return [g, k, ...h].find((b) => La(t[b])) ?? g;
4065
+ }, oo = "_overlay_12sjj_3", io = "_sheet_12sjj_13", lo = "_content_12sjj_35", so = "_header_12sjj_42", co = "_backBtn_12sjj_55", uo = "_title_12sjj_73", po = "_languageRow_12sjj_89", mo = "_languageLabel_12sjj_97", fo = "_languageDropdown_12sjj_103", ho = "_languageDropdownBtn_12sjj_107", go = "_languageMenu_12sjj_122", bo = "_languageMenuItem_12sjj_139", _o = "_languageMenuItemSelected_12sjj_153", ko = "_languageDivider_12sjj_159", yo = "_reportReadyBanner_12sjj_166", Ao = "_reportReadyDuration_12sjj_175", vo = "_trustRow_12sjj_181", To = "_trustAvatars_12sjj_192", Po = "_trustText_12sjj_205", xo = "_sectionHeading_12sjj_316", wo = "_dateTabs_12sjj_324", So = "_dateTabIndicator_12sjj_336", Co = "_dateTab_12sjj_324", jo = "_dateTabDivider_12sjj_370", Ro = "_dateTabSelected_12sjj_380", No = "_dateTabLabel_12sjj_385", Lo = "_dateTabNum_12sjj_392", Bo = "_periodTabs_12sjj_406", Do = "_periodTabIndicator_12sjj_334", Eo = "_periodTab_12sjj_334", Io = "_periodTabSelected_12sjj_453", Fo = "_timeGrid_12sjj_458", Mo = "_emptyState_12sjj_486", Uo = "_timeSlot_12sjj_490", Go = "_timeSlotSelected_12sjj_506", Oo = "_topicGrid_12sjj_514", $o = "_topicChip_12sjj_520", Ho = "_topicChipSelected_12sjj_536", Wo = "_stateMessage_12sjj_543", Ko = "_emptyStateIcon_12sjj_563", qo = "_emptyStateTitle_12sjj_574", Yo = "_emptyStateSubtitle_12sjj_581", Vo = "_loadingWrap_12sjj_590", Jo = "_skeletonShimmer_12sjj_595", zo = "_skeletonDateTabs_12sjj_609", Qo = "_skeletonDateTab_12sjj_609", Xo = "_skeletonPeriodTabs_12sjj_623", Zo = "_skeletonPeriodTab_12sjj_623", ei = "_skeletonTimeGrid_12sjj_638", ai = "_skeletonTimeSlot_12sjj_644", ti = "_retryBtn_12sjj_649", ri = "_footer_12sjj_663", ni = "_proceedBtn_12sjj_670", oi = "_proceedBtnDisabled_12sjj_688", m = {
4067
4066
  overlay: oo,
4068
4067
  sheet: io,
4069
4068
  content: lo,
@@ -4084,8 +4083,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4084
4083
  trustAvatars: To,
4085
4084
  trustText: Po,
4086
4085
  sectionHeading: xo,
4087
- dateTabs: So,
4088
- dateTabIndicator: wo,
4086
+ dateTabs: wo,
4087
+ dateTabIndicator: So,
4089
4088
  dateTab: Co,
4090
4089
  dateTabDivider: jo,
4091
4090
  dateTabSelected: Ro,
@@ -4133,215 +4132,215 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4133
4132
  onProceed: t,
4134
4133
  astrologers: n,
4135
4134
  t: i,
4136
- analytics: d,
4137
- reportLanguage: _,
4138
- isPostPayment: y = !1,
4139
- showGuidanceTopic: b,
4140
- hideFooter: x = !1,
4141
- onStateChange: k
4135
+ analytics: c,
4136
+ reportLanguage: g,
4137
+ isPostPayment: k = !1,
4138
+ showGuidanceTopic: h,
4139
+ hideFooter: w = !1,
4140
+ onStateChange: b
4142
4141
  }) => {
4143
- const H = b ?? !y, L = Me(), j = L?.config.imageComponent ?? Ye, m = L?.config.fetchConsultationSlots, F = L?.config.isGlobal ?? !0, ee = _ ?? L?.formValues?.language_code, g = y ? "post_payment" : "pre_payment", [M, f] = N(!1), [A, z] = N(!1), [C, X] = N({}), [P, U] = N("en"), [S, B] = N(!1), re = I(null), te = Ee(
4144
- () => C[P]?.days ?? [],
4145
- [C, P]
4146
- ), [q, w] = N(""), [D, ne] = N(""), [Y, Z] = N("morning"), [Q, ae] = N(null), de = I(!1), ue = I(null), ye = I({}), [le, we] = N(null), Te = I(null), pe = I(
4142
+ const Y = h ?? !k, D = Me(), N = D?.config.imageComponent ?? Ye, p = D?.config.fetchConsultationSlots, U = D?.config.isGlobal ?? !0, A = g ?? D?.formValues?.language_code, R = k ? "post_payment" : "pre_payment", [y, _] = B(!1), [S, te] = B(!1), [C, Q] = B({}), [x, V] = B("en"), [j, E] = B(!1), se = M(null), ae = Ee(
4143
+ () => C[x]?.days ?? [],
4144
+ [C, x]
4145
+ ), [G, I] = B(""), [$, X] = B(""), [O, Te] = B("morning"), [K, re] = B(null), he = M(!1), ue = M(null), we = M({}), [ne, Re] = B(null), _e = M(null), pe = M(
4147
4146
  {}
4148
- ), [se, oe] = N(null), G = Ee(
4149
- () => te.filter((l) => l.has_availability && l.slots.length > 0),
4150
- [te]
4151
- ), me = Re(() => {
4152
- m && (f(!0), z(!1), m().then((l) => {
4153
- const c = l ?? {}, J = no(
4154
- c,
4155
- ee,
4156
- F
4147
+ ), [ge, oe] = B(null), H = Ee(
4148
+ () => ae.filter((l) => l.has_availability && l.slots.length > 0),
4149
+ [ae]
4150
+ ), me = je(() => {
4151
+ p && (_(!0), te(!1), p().then((l) => {
4152
+ const f = l ?? {}, Z = no(
4153
+ f,
4154
+ A,
4155
+ U
4157
4156
  );
4158
- X(c), U(J), d?.trackConsultationLanguageDefaultSelected?.({
4159
- language: ta(J),
4160
- status: g
4157
+ Q(f), V(Z), c?.trackConsultationLanguageDefaultSelected?.({
4158
+ language: ta(Z),
4159
+ status: R
4161
4160
  });
4162
- const _e = (c[J]?.days ?? []).filter(
4161
+ const be = (f[Z]?.days ?? []).filter(
4163
4162
  (r) => r.has_availability && r.slots.length > 0
4164
4163
  ).length;
4165
- d?.trackAstrologerAvailabilityServed?.({
4164
+ c?.trackAstrologerAvailabilityServed?.({
4166
4165
  astrologers_shown: n.map((r) => r.name),
4167
- dates_available_count: _e,
4168
- status: g
4166
+ dates_available_count: be,
4167
+ status: R
4169
4168
  });
4170
4169
  }).catch(() => {
4171
- z(!0);
4172
- }).finally(() => f(!1)));
4173
- }, [m, F, ee, d, n, g]);
4174
- $(() => {
4175
- w(""), B(!1), me();
4176
- }, []), $(() => {
4177
- if (!S) return;
4178
- const l = (c) => {
4179
- re.current && !re.current.contains(c.target) && B(!1);
4170
+ te(!0);
4171
+ }).finally(() => _(!1)));
4172
+ }, [p, U, A, c, n, R]);
4173
+ q(() => {
4174
+ I(""), E(!1), me();
4175
+ }, []), q(() => {
4176
+ if (!j) return;
4177
+ const l = (f) => {
4178
+ se.current && !se.current.contains(f.target) && E(!1);
4180
4179
  };
4181
4180
  return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
4182
- }, [S]), $(() => {
4183
- if (!G.length) {
4184
- ne(""), ae(null);
4181
+ }, [j]), q(() => {
4182
+ if (!H.length) {
4183
+ X(""), re(null);
4185
4184
  return;
4186
4185
  }
4187
- const l = G[0];
4188
- G.some((c) => c.date === D) || d?.trackConsultationDateDefaultSelected?.({
4186
+ const l = H[0];
4187
+ H.some((f) => f.date === $) || c?.trackConsultationDateDefaultSelected?.({
4189
4188
  date: l.date,
4190
- status: g
4191
- }), ne(
4192
- (c) => G.some((J) => J.date === c) ? c : l.date
4189
+ status: R
4190
+ }), X(
4191
+ (f) => H.some((Z) => Z.date === f) ? f : l.date
4193
4192
  );
4194
- }, [G]);
4195
- const be = Ee(
4196
- () => G.find((l) => l.date === D) ?? null,
4197
- [G, D]
4198
- ), he = Ee(() => {
4199
- if (!be) return [];
4200
- const l = new Set(be.slots.map((c) => c.period));
4201
- return eo.filter((c) => l.has(c));
4202
- }, [be]);
4203
- $(() => {
4204
- if (!he.length) {
4205
- Z("morning"), ae(null);
4193
+ }, [H]);
4194
+ const ie = Ee(
4195
+ () => H.find((l) => l.date === $) ?? null,
4196
+ [H, $]
4197
+ ), fe = Ee(() => {
4198
+ if (!ie) return [];
4199
+ const l = new Set(ie.slots.map((f) => f.period));
4200
+ return eo.filter((f) => l.has(f));
4201
+ }, [ie]);
4202
+ q(() => {
4203
+ if (!fe.length) {
4204
+ Te("morning"), re(null);
4206
4205
  return;
4207
4206
  }
4208
- Z(
4209
- (l) => he.includes(l) ? l : he[0]
4207
+ Te(
4208
+ (l) => fe.includes(l) ? l : fe[0]
4210
4209
  );
4211
- }, [he]);
4212
- const V = Ee(() => be ? be.slots.filter((l) => l.period === Y) : [], [be, Y]);
4213
- $(() => {
4210
+ }, [fe]);
4211
+ const ee = Ee(() => ie ? ie.slots.filter((l) => l.period === O) : [], [ie, O]);
4212
+ q(() => {
4214
4213
  const l = () => {
4215
- const c = ue.current, J = ye.current[D];
4216
- if (!c || !J) {
4217
- we(null);
4214
+ const f = ue.current, Z = we.current[$];
4215
+ if (!f || !Z) {
4216
+ Re(null);
4218
4217
  return;
4219
4218
  }
4220
- const _e = c.getBoundingClientRect(), r = J.getBoundingClientRect();
4221
- we({
4222
- left: r.left - _e.left,
4223
- top: r.top - _e.top,
4219
+ const be = f.getBoundingClientRect(), r = Z.getBoundingClientRect();
4220
+ Re({
4221
+ left: r.left - be.left,
4222
+ top: r.top - be.top,
4224
4223
  width: r.width,
4225
4224
  height: r.height
4226
4225
  });
4227
4226
  };
4228
4227
  return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
4229
- }, [D, G]), $(() => {
4228
+ }, [$, H]), q(() => {
4230
4229
  const l = () => {
4231
- const c = Te.current, J = pe.current[Y];
4232
- if (!c || !J) {
4230
+ const f = _e.current, Z = pe.current[O];
4231
+ if (!f || !Z) {
4233
4232
  oe(null);
4234
4233
  return;
4235
4234
  }
4236
- const _e = c.getBoundingClientRect(), r = J.getBoundingClientRect();
4235
+ const be = f.getBoundingClientRect(), r = Z.getBoundingClientRect();
4237
4236
  oe({
4238
- left: r.left - _e.left,
4237
+ left: r.left - be.left,
4239
4238
  width: r.width
4240
4239
  });
4241
4240
  };
4242
4241
  return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
4243
- }, [Y, he]), $(() => {
4244
- if (!V.length) {
4245
- ae(null);
4242
+ }, [O, fe]), q(() => {
4243
+ if (!ee.length) {
4244
+ re(null);
4246
4245
  return;
4247
4246
  }
4248
- if (!(Q && V.some((c) => c.start === Q.start))) {
4249
- const c = V[0];
4250
- d?.trackConsultationTimeDefaultSelected?.({
4251
- time: aa(c.start),
4252
- gmt_offset: si(c.start),
4253
- status: g
4247
+ if (!(K && ee.some((f) => f.start === K.start))) {
4248
+ const f = ee[0];
4249
+ c?.trackConsultationTimeDefaultSelected?.({
4250
+ time: aa(f.start),
4251
+ gmt_offset: si(f.start),
4252
+ status: R
4254
4253
  });
4255
4254
  }
4256
- ae(
4257
- (c) => c && V.some((J) => J.start === c.start) ? c : V[0]
4255
+ re(
4256
+ (f) => f && ee.some((Z) => Z.start === f.start) ? f : ee[0]
4258
4257
  );
4259
- }, [V]), $(() => {
4260
- G.length && !de.current && (d?.trackSlotScreenViewed?.({
4258
+ }, [ee]), q(() => {
4259
+ H.length && !he.current && (c?.trackSlotScreenViewed?.({
4261
4260
  astrologers_shown: n.map((l) => l.name),
4262
- dates_available_count: G.length,
4263
- status: g
4264
- }), de.current = !0);
4265
- }, [G, n, d, g]);
4266
- const Pe = !!Q && (!H || !!q), xe = (l) => {
4267
- ne(l), d?.trackSlotDateSelected?.({
4261
+ dates_available_count: H.length,
4262
+ status: R
4263
+ }), he.current = !0);
4264
+ }, [H, n, c, R]);
4265
+ const ce = !!K && (!Y || !!G), Ne = (l) => {
4266
+ X(l), c?.trackSlotDateSelected?.({
4268
4267
  date: l,
4269
- day_part_default: Y,
4270
- status: g
4268
+ day_part_default: O,
4269
+ status: R
4271
4270
  });
4272
- }, fe = (l) => {
4273
- Z(l), d?.trackDayPartSelected?.({
4271
+ }, Pe = (l) => {
4272
+ Te(l), c?.trackDayPartSelected?.({
4274
4273
  day_part: l,
4275
- slots_available_count: be?.slots.filter((c) => c.period === l).length ?? 0,
4276
- status: g
4274
+ slots_available_count: ie?.slots.filter((f) => f.period === l).length ?? 0,
4275
+ status: R
4277
4276
  });
4278
- }, Se = (l) => {
4279
- ae(l), d?.trackSlotSelected?.({
4280
- date: D,
4277
+ }, ke = (l) => {
4278
+ re(l), c?.trackSlotSelected?.({
4279
+ date: $,
4281
4280
  time: aa(l.start),
4282
4281
  day_part: l.period,
4283
- topic: q || null,
4284
- status: g
4282
+ topic: G || null,
4283
+ status: R
4285
4284
  });
4286
- }, ge = () => {
4287
- Q && (d?.trackSlotReservationRequested?.({
4288
- slot_datetime: `${Q.start} - ${Q.end}`,
4289
- status: g
4285
+ }, ye = () => {
4286
+ K && (c?.trackSlotReservationRequested?.({
4287
+ slot_datetime: `${K.start} - ${K.end}`,
4288
+ status: R
4290
4289
  }), t({
4291
- start: Q.start,
4292
- end: Q.end,
4293
- period: Q.period,
4294
- topic: q,
4295
- language: P
4290
+ start: K.start,
4291
+ end: K.end,
4292
+ period: K.period,
4293
+ topic: G,
4294
+ language: x
4296
4295
  }));
4297
- }, Ae = I(ge);
4298
- Ae.current = ge, $(() => {
4299
- k?.({ canProceed: Pe, proceed: () => Ae.current() });
4300
- }, [Pe, k]);
4296
+ }, xe = M(ye);
4297
+ xe.current = ye, q(() => {
4298
+ b?.({ canProceed: ce, proceed: () => xe.current() });
4299
+ }, [ce, b]);
4301
4300
  const Be = (l) => {
4302
- w(l), d?.trackGuidanceTopicSelected?.({ topic: l, status: g });
4301
+ I(l), c?.trackGuidanceTopicSelected?.({ topic: l, status: R });
4303
4302
  }, De = (l) => {
4304
- d?.trackConsultationLanguageChanged?.({
4305
- previous_language: ta(P),
4303
+ c?.trackConsultationLanguageChanged?.({
4304
+ previous_language: ta(x),
4306
4305
  new_language: ta(l),
4307
4306
  slots_available: La(C[l]) ? "yes" : "no",
4308
- status: g
4309
- }), U(l), B(!1);
4310
- }, Ne = qe.find((l) => l.code === P) ?? qe[0];
4307
+ status: R
4308
+ }), V(l), E(!1);
4309
+ }, P = qe.find((l) => l.code === x) ?? qe[0];
4311
4310
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4312
- /* @__PURE__ */ e.jsxs("div", { className: h.content, children: [
4313
- /* @__PURE__ */ e.jsxs("div", { className: h.languageRow, children: [
4314
- /* @__PURE__ */ e.jsx("span", { className: h.languageLabel, children: i?.("planConsultationLanguageLabel") ?? "Your consultation language" }),
4315
- /* @__PURE__ */ e.jsxs("div", { className: h.languageDropdown, ref: re, children: [
4311
+ /* @__PURE__ */ e.jsxs("div", { className: m.content, children: [
4312
+ /* @__PURE__ */ e.jsxs("div", { className: m.languageRow, children: [
4313
+ /* @__PURE__ */ e.jsx("span", { className: m.languageLabel, children: i?.("planConsultationLanguageLabel") ?? "Your consultation language" }),
4314
+ /* @__PURE__ */ e.jsxs("div", { className: m.languageDropdown, ref: se, children: [
4316
4315
  /* @__PURE__ */ e.jsxs(
4317
4316
  "button",
4318
4317
  {
4319
4318
  type: "button",
4320
- className: h.languageDropdownBtn,
4321
- onClick: () => B((l) => !l),
4319
+ className: m.languageDropdownBtn,
4320
+ onClick: () => E((l) => !l),
4322
4321
  "aria-haspopup": "listbox",
4323
- "aria-expanded": S,
4322
+ "aria-expanded": j,
4324
4323
  children: [
4325
- i?.(Ne.labelKey) ?? Ne.label,
4324
+ i?.(P.labelKey) ?? P.label,
4326
4325
  /* @__PURE__ */ e.jsx(Qr, {})
4327
4326
  ]
4328
4327
  }
4329
4328
  ),
4330
- S && /* @__PURE__ */ e.jsx("ul", { className: h.languageMenu, role: "listbox", children: qe.map((l) => {
4331
- const c = l.code === P;
4329
+ j && /* @__PURE__ */ e.jsx("ul", { className: m.languageMenu, role: "listbox", children: qe.map((l) => {
4330
+ const f = l.code === x;
4332
4331
  return /* @__PURE__ */ e.jsxs(
4333
4332
  "li",
4334
4333
  {
4335
4334
  role: "option",
4336
- "aria-selected": c,
4335
+ "aria-selected": f,
4337
4336
  className: [
4338
- h.languageMenuItem,
4339
- c ? h.languageMenuItemSelected : ""
4337
+ m.languageMenuItem,
4338
+ f ? m.languageMenuItemSelected : ""
4340
4339
  ].filter(Boolean).join(" "),
4341
4340
  onClick: () => De(l.code),
4342
4341
  children: [
4343
4342
  i?.(l.labelKey) ?? l.label,
4344
- c && /* @__PURE__ */ e.jsx(Na, {})
4343
+ f && /* @__PURE__ */ e.jsx(Na, {})
4345
4344
  ]
4346
4345
  },
4347
4346
  l.code
@@ -4349,119 +4348,119 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4349
4348
  }) })
4350
4349
  ] })
4351
4350
  ] }),
4352
- /* @__PURE__ */ e.jsx("hr", { className: h.languageDivider }),
4353
- /* @__PURE__ */ e.jsx("p", { className: h.sectionHeading, children: i?.("planSelectSlotHeading") ?? "Book your preferred consultation slot" }),
4354
- /* @__PURE__ */ e.jsxs("p", { className: h.reportReadyBanner, children: [
4351
+ /* @__PURE__ */ e.jsx("hr", { className: m.languageDivider }),
4352
+ /* @__PURE__ */ e.jsx("p", { className: m.sectionHeading, children: i?.("planSelectSlotHeading") ?? "Book your preferred consultation slot" }),
4353
+ /* @__PURE__ */ e.jsxs("p", { className: m.reportReadyBanner, children: [
4355
4354
  i?.("planReportReadyPrefix") ?? "Your Report will be ready in",
4356
4355
  " ",
4357
- /* @__PURE__ */ e.jsx("span", { className: h.reportReadyDuration, children: i?.("planReportReadyDuration") ?? "24-48 hours" }),
4356
+ /* @__PURE__ */ e.jsx("span", { className: m.reportReadyDuration, children: i?.("planReportReadyDuration") ?? "24-48 hours" }),
4358
4357
  " ",
4359
4358
  i?.("planReportReadySuffix") ?? "from today"
4360
4359
  ] }),
4361
- M && /* @__PURE__ */ e.jsxs("div", { className: h.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
4362
- /* @__PURE__ */ e.jsx("div", { className: h.skeletonDateTabs, children: Array.from({ length: 5 }).map((l, c) => /* @__PURE__ */ e.jsx(
4360
+ y && /* @__PURE__ */ e.jsxs("div", { className: m.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
4361
+ /* @__PURE__ */ e.jsx("div", { className: m.skeletonDateTabs, children: Array.from({ length: 5 }).map((l, f) => /* @__PURE__ */ e.jsx(
4363
4362
  "div",
4364
4363
  {
4365
- className: [h.skeletonDateTab, h.skeletonShimmer].join(" ")
4364
+ className: [m.skeletonDateTab, m.skeletonShimmer].join(" ")
4366
4365
  },
4367
- c
4366
+ f
4368
4367
  )) }),
4369
- /* @__PURE__ */ e.jsx("div", { className: h.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((l, c) => /* @__PURE__ */ e.jsx(
4368
+ /* @__PURE__ */ e.jsx("div", { className: m.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((l, f) => /* @__PURE__ */ e.jsx(
4370
4369
  "div",
4371
4370
  {
4372
- className: [h.skeletonPeriodTab, h.skeletonShimmer].join(" ")
4371
+ className: [m.skeletonPeriodTab, m.skeletonShimmer].join(" ")
4373
4372
  },
4374
- c
4373
+ f
4375
4374
  )) }),
4376
- /* @__PURE__ */ e.jsx("div", { className: h.skeletonTimeGrid, children: Array.from({ length: 6 }).map((l, c) => /* @__PURE__ */ e.jsx(
4375
+ /* @__PURE__ */ e.jsx("div", { className: m.skeletonTimeGrid, children: Array.from({ length: 6 }).map((l, f) => /* @__PURE__ */ e.jsx(
4377
4376
  "div",
4378
4377
  {
4379
- className: [h.skeletonTimeSlot, h.skeletonShimmer].join(" ")
4378
+ className: [m.skeletonTimeSlot, m.skeletonShimmer].join(" ")
4380
4379
  },
4381
- c
4380
+ f
4382
4381
  )) })
4383
4382
  ] }),
4384
- !M && A && /* @__PURE__ */ e.jsxs("div", { className: h.stateMessage, children: [
4383
+ !y && S && /* @__PURE__ */ e.jsxs("div", { className: m.stateMessage, children: [
4385
4384
  i?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
4386
- /* @__PURE__ */ e.jsx("button", { type: "button", className: h.retryBtn, onClick: me, children: i?.("planRetry") ?? "Retry" })
4385
+ /* @__PURE__ */ e.jsx("button", { type: "button", className: m.retryBtn, onClick: me, children: i?.("planRetry") ?? "Retry" })
4387
4386
  ] }),
4388
- !M && !A && G.length === 0 && /* @__PURE__ */ e.jsxs("div", { className: h.emptyState, children: [
4389
- /* @__PURE__ */ e.jsx("span", { className: h.emptyStateIcon, children: /* @__PURE__ */ e.jsx(tn, {}) }),
4390
- /* @__PURE__ */ e.jsx("p", { className: h.emptyStateTitle, children: i?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
4391
- /* @__PURE__ */ e.jsx("p", { className: h.emptyStateSubtitle, children: i?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
4387
+ !y && !S && H.length === 0 && /* @__PURE__ */ e.jsxs("div", { className: m.emptyState, children: [
4388
+ /* @__PURE__ */ e.jsx("span", { className: m.emptyStateIcon, children: /* @__PURE__ */ e.jsx(tn, {}) }),
4389
+ /* @__PURE__ */ e.jsx("p", { className: m.emptyStateTitle, children: i?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
4390
+ /* @__PURE__ */ e.jsx("p", { className: m.emptyStateSubtitle, children: i?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
4392
4391
  ] }),
4393
- !M && !A && G.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4394
- /* @__PURE__ */ e.jsxs("div", { className: h.dateTabs, ref: ue, role: "radiogroup", "aria-label": "Consultation date", children: [
4395
- le && /* @__PURE__ */ e.jsx(
4392
+ !y && !S && H.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4393
+ /* @__PURE__ */ e.jsxs("div", { className: m.dateTabs, ref: ue, role: "radiogroup", "aria-label": "Consultation date", children: [
4394
+ ne && /* @__PURE__ */ e.jsx(
4396
4395
  "span",
4397
4396
  {
4398
- className: h.dateTabIndicator,
4397
+ className: m.dateTabIndicator,
4399
4398
  style: {
4400
- transform: `translate(${le.left}px, ${le.top}px)`,
4401
- width: le.width,
4402
- height: le.height
4399
+ transform: `translate(${ne.left}px, ${ne.top}px)`,
4400
+ width: ne.width,
4401
+ height: ne.height
4403
4402
  },
4404
4403
  "aria-hidden": "true"
4405
4404
  }
4406
4405
  ),
4407
- G.map((l) => {
4408
- const c = l.date === D, { dayLabel: J, dayNum: _e } = Zn(l.date);
4406
+ H.map((l) => {
4407
+ const f = l.date === $, { dayLabel: Z, dayNum: be } = Zn(l.date);
4409
4408
  return /* @__PURE__ */ e.jsxs(Va, { children: [
4410
4409
  /* @__PURE__ */ e.jsxs(
4411
4410
  "button",
4412
4411
  {
4413
4412
  type: "button",
4414
4413
  ref: (r) => {
4415
- ye.current[l.date] = r;
4414
+ we.current[l.date] = r;
4416
4415
  },
4417
4416
  className: [
4418
- h.dateTab,
4419
- c ? h.dateTabSelected : ""
4417
+ m.dateTab,
4418
+ f ? m.dateTabSelected : ""
4420
4419
  ].filter(Boolean).join(" "),
4421
4420
  role: "radio",
4422
- "aria-checked": c,
4423
- onClick: () => xe(l.date),
4421
+ "aria-checked": f,
4422
+ onClick: () => Ne(l.date),
4424
4423
  children: [
4425
- /* @__PURE__ */ e.jsx("span", { className: h.dateTabLabel, children: i?.(J) ?? J }),
4426
- /* @__PURE__ */ e.jsx("span", { className: h.dateTabNum, children: _e })
4424
+ /* @__PURE__ */ e.jsx("span", { className: m.dateTabLabel, children: i?.(Z) ?? Z }),
4425
+ /* @__PURE__ */ e.jsx("span", { className: m.dateTabNum, children: be })
4427
4426
  ]
4428
4427
  }
4429
4428
  ),
4430
- /* @__PURE__ */ e.jsx("span", { className: h.dateTabDivider, "aria-hidden": !0 })
4429
+ /* @__PURE__ */ e.jsx("span", { className: m.dateTabDivider, "aria-hidden": !0 })
4431
4430
  ] }, l.date);
4432
4431
  })
4433
4432
  ] }),
4434
- /* @__PURE__ */ e.jsxs("div", { className: h.periodTabs, ref: Te, role: "tablist", "aria-label": "Time of day", children: [
4435
- se && /* @__PURE__ */ e.jsx(
4433
+ /* @__PURE__ */ e.jsxs("div", { className: m.periodTabs, ref: _e, role: "tablist", "aria-label": "Time of day", children: [
4434
+ ge && /* @__PURE__ */ e.jsx(
4436
4435
  "span",
4437
4436
  {
4438
- className: h.periodTabIndicator,
4437
+ className: m.periodTabIndicator,
4439
4438
  style: {
4440
- transform: `translateX(${se.left}px)`,
4441
- width: se.width
4439
+ transform: `translateX(${ge.left}px)`,
4440
+ width: ge.width
4442
4441
  },
4443
4442
  "aria-hidden": "true"
4444
4443
  }
4445
4444
  ),
4446
- he.map((l) => {
4447
- const c = ii[l], J = l === "evening" && F ? "planPeriodEveningNight" : li[l];
4445
+ fe.map((l) => {
4446
+ const f = ii[l], Z = l === "evening" && U ? "planPeriodEveningNight" : li[l];
4448
4447
  return /* @__PURE__ */ e.jsxs(
4449
4448
  "button",
4450
4449
  {
4451
- ref: (_e) => {
4452
- pe.current[l] = _e;
4450
+ ref: (be) => {
4451
+ pe.current[l] = be;
4453
4452
  },
4454
4453
  type: "button",
4455
4454
  className: [
4456
- h.periodTab,
4457
- l === Y ? h.periodTabSelected : ""
4455
+ m.periodTab,
4456
+ l === O ? m.periodTabSelected : ""
4458
4457
  ].filter(Boolean).join(" "),
4459
4458
  role: "tab",
4460
- "aria-selected": l === Y,
4461
- onClick: () => fe(l),
4459
+ "aria-selected": l === O,
4460
+ onClick: () => Pe(l),
4462
4461
  children: [
4463
- /* @__PURE__ */ e.jsx(c, {}),
4464
- i?.(J) ?? (l === "evening" && F ? "Evening/Night" : l.charAt(0).toUpperCase() + l.slice(1))
4462
+ /* @__PURE__ */ e.jsx(f, {}),
4463
+ i?.(Z) ?? (l === "evening" && U ? "Evening/Night" : l.charAt(0).toUpperCase() + l.slice(1))
4465
4464
  ]
4466
4465
  },
4467
4466
  l
@@ -4471,40 +4470,40 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4471
4470
  /* @__PURE__ */ e.jsx(
4472
4471
  "div",
4473
4472
  {
4474
- className: h.timeGrid,
4473
+ className: m.timeGrid,
4475
4474
  role: "radiogroup",
4476
4475
  "aria-label": "Consultation time",
4477
- children: V.map((l, c) => /* @__PURE__ */ e.jsx(
4476
+ children: ee.map((l, f) => /* @__PURE__ */ e.jsx(
4478
4477
  "button",
4479
4478
  {
4480
4479
  type: "button",
4481
4480
  className: [
4482
- h.timeSlot,
4483
- Q?.start === l.start ? h.timeSlotSelected : ""
4481
+ m.timeSlot,
4482
+ K?.start === l.start ? m.timeSlotSelected : ""
4484
4483
  ].filter(Boolean).join(" "),
4485
4484
  role: "radio",
4486
- "aria-checked": Q?.start === l.start,
4487
- onClick: () => Se(l),
4485
+ "aria-checked": K?.start === l.start,
4486
+ onClick: () => ke(l),
4488
4487
  children: aa(l.start)
4489
4488
  },
4490
- `${l.start}-${c}`
4489
+ `${l.start}-${f}`
4491
4490
  ))
4492
4491
  },
4493
- `${D}-${Y}`
4492
+ `${$}-${O}`
4494
4493
  )
4495
4494
  ] }),
4496
- H && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4497
- /* @__PURE__ */ e.jsx("p", { className: h.sectionHeading, children: i?.("planGuidanceHeading") ?? "What would you like guidance on?" }),
4498
- /* @__PURE__ */ e.jsx("div", { className: h.topicGrid, role: "radiogroup", "aria-label": "Guidance topic", children: ao.map((l) => /* @__PURE__ */ e.jsx(
4495
+ Y && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4496
+ /* @__PURE__ */ e.jsx("p", { className: m.sectionHeading, children: i?.("planGuidanceHeading") ?? "What would you like guidance on?" }),
4497
+ /* @__PURE__ */ e.jsx("div", { className: m.topicGrid, role: "radiogroup", "aria-label": "Guidance topic", children: ao.map((l) => /* @__PURE__ */ e.jsx(
4499
4498
  "button",
4500
4499
  {
4501
4500
  type: "button",
4502
4501
  className: [
4503
- h.topicChip,
4504
- q === l.id ? h.topicChipSelected : ""
4502
+ m.topicChip,
4503
+ G === l.id ? m.topicChipSelected : ""
4505
4504
  ].filter(Boolean).join(" "),
4506
4505
  role: "radio",
4507
- "aria-checked": q === l.id,
4506
+ "aria-checked": G === l.id,
4508
4507
  onClick: () => Be(l.id),
4509
4508
  children: i?.(l.labelKey) ?? l.label
4510
4509
  },
@@ -4512,10 +4511,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4512
4511
  )) })
4513
4512
  ] })
4514
4513
  ] }),
4515
- !x && /* @__PURE__ */ e.jsxs("div", { className: h.footer, children: [
4516
- /* @__PURE__ */ e.jsxs("div", { className: h.trustRow, children: [
4517
- /* @__PURE__ */ e.jsx("div", { className: h.trustAvatars, "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
4518
- j,
4514
+ !w && /* @__PURE__ */ e.jsxs("div", { className: m.footer, children: [
4515
+ /* @__PURE__ */ e.jsxs("div", { className: m.trustRow, children: [
4516
+ /* @__PURE__ */ e.jsx("div", { className: m.trustAvatars, "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
4517
+ N,
4519
4518
  {
4520
4519
  src: "https://srm-cdn.a4b.io/yoda/1785317712031.svg",
4521
4520
  alt: "",
@@ -4526,16 +4525,16 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4526
4525
  loading: "eager"
4527
4526
  }
4528
4527
  ) }),
4529
- /* @__PURE__ */ e.jsx("span", { className: h.trustText, children: i?.("planConsultationTrustLabel") ?? "3,750+ people have booked consultation" })
4528
+ /* @__PURE__ */ e.jsx("span", { className: m.trustText, children: i?.("planConsultationTrustLabel") ?? "3,750+ people have booked consultation" })
4530
4529
  ] }),
4531
4530
  /* @__PURE__ */ e.jsx(
4532
4531
  "button",
4533
4532
  {
4534
4533
  type: "button",
4535
- className: [h.proceedBtn, Pe ? "" : h.proceedBtnDisabled].filter(Boolean).join(" "),
4536
- disabled: !Pe,
4537
- onClick: ge,
4538
- children: y ? i?.("planBookSlot") ?? "Book Slot" : i?.("planProceedToPayment") ?? "Proceed to payment"
4534
+ className: [m.proceedBtn, ce ? "" : m.proceedBtnDisabled].filter(Boolean).join(" "),
4535
+ disabled: !ce,
4536
+ onClick: ye,
4537
+ children: k ? i?.("planBookSlot") ?? "Book Slot" : i?.("planProceedToPayment") ?? "Proceed to payment"
4539
4538
  }
4540
4539
  )
4541
4540
  ] })
@@ -4544,29 +4543,29 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4544
4543
  isOpen: t,
4545
4544
  onClose: n,
4546
4545
  t: i,
4547
- ...d
4546
+ ...c
4548
4547
  }) => t ? /* @__PURE__ */ e.jsx(
4549
4548
  "div",
4550
4549
  {
4551
- className: h.overlay,
4550
+ className: m.overlay,
4552
4551
  role: "dialog",
4553
4552
  "aria-modal": "true",
4554
4553
  "aria-label": i?.("planConsultationSlotTitle") ?? "Select consultation slot",
4555
- children: /* @__PURE__ */ e.jsxs("div", { className: h.sheet, children: [
4556
- /* @__PURE__ */ e.jsxs("div", { className: h.header, children: [
4554
+ children: /* @__PURE__ */ e.jsxs("div", { className: m.sheet, children: [
4555
+ /* @__PURE__ */ e.jsxs("div", { className: m.header, children: [
4557
4556
  /* @__PURE__ */ e.jsx(
4558
4557
  "button",
4559
4558
  {
4560
- className: h.backBtn,
4559
+ className: m.backBtn,
4561
4560
  onClick: n,
4562
4561
  "aria-label": "Go back",
4563
4562
  type: "button",
4564
4563
  children: /* @__PURE__ */ e.jsx(sa, {})
4565
4564
  }
4566
4565
  ),
4567
- /* @__PURE__ */ e.jsx("h2", { className: h.title, children: i?.("planConsultationSlotTitle") ?? "Select consultation slot" })
4566
+ /* @__PURE__ */ e.jsx("h2", { className: m.title, children: i?.("planConsultationSlotTitle") ?? "Select consultation slot" })
4568
4567
  ] }),
4569
- /* @__PURE__ */ e.jsx(ci, { t: i, ...d })
4568
+ /* @__PURE__ */ e.jsx(ci, { t: i, ...c })
4570
4569
  ] })
4571
4570
  }
4572
4571
  ) : null, ui = [
@@ -4631,31 +4630,31 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4631
4630
  isOpen: t,
4632
4631
  onClose: n,
4633
4632
  selectedPlan: i,
4634
- onSelectPlan: d,
4635
- plans: _,
4636
- onProceed: y,
4637
- t: b,
4638
- analytics: x,
4639
- enableConsultationScheduling: k
4633
+ onSelectPlan: c,
4634
+ plans: g,
4635
+ onProceed: k,
4636
+ t: h,
4637
+ analytics: w,
4638
+ enableConsultationScheduling: b
4640
4639
  }) => {
4641
- const H = Me(), L = H?.config.isGlobal ?? !0, j = k ?? H?.config.enableConsultationScheduling ?? !1, m = _ ?? pi(L), F = i?.id || m.find((C) => C.badge)?.id || m[0]?.id || "", ee = I(null), g = I(null), M = I(!1), [f, A] = N(!1);
4642
- $(() => {
4640
+ const Y = Me(), D = Y?.config.isGlobal ?? !0, N = b ?? Y?.config.enableConsultationScheduling ?? !1, p = g ?? pi(D), U = i?.id || p.find((C) => C.badge)?.id || p[0]?.id || "", A = M(null), R = M(null), y = M(!1), [_, S] = B(!1);
4641
+ q(() => {
4643
4642
  if (t) {
4644
4643
  if (!i) {
4645
- const C = m.find((X) => X.badge) ?? m[0];
4646
- C && d(C);
4644
+ const C = p.find((Q) => Q.badge) ?? p[0];
4645
+ C && c(C);
4647
4646
  }
4648
- M.current || (x?.trackPlanPageViewed?.(), j && x?.trackPlanScreenViewed?.({
4649
- plans_shown: m.map((C) => C.id),
4650
- default_selected_plan: i?.id || m.find((C) => C.badge)?.id || m[0]?.id || ""
4651
- }), M.current = !0);
4647
+ y.current || (w?.trackPlanPageViewed?.(), N && w?.trackPlanScreenViewed?.({
4648
+ plans_shown: p.map((C) => C.id),
4649
+ default_selected_plan: i?.id || p.find((C) => C.badge)?.id || p[0]?.id || ""
4650
+ }), y.current = !0);
4652
4651
  } else
4653
- M.current = !1;
4654
- }, [t, m, i, d, x]);
4655
- const z = () => {
4656
- x?.trackPlanPageClosed?.(), n();
4652
+ y.current = !1;
4653
+ }, [t, p, i, c, w]);
4654
+ const te = () => {
4655
+ w?.trackPlanPageClosed?.(), n();
4657
4656
  };
4658
- return $(() => {
4657
+ return q(() => {
4659
4658
  if (!t) return;
4660
4659
  const C = document.body.style.overflow;
4661
4660
  return document.body.style.overflow = "hidden", () => {
@@ -4667,57 +4666,57 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4667
4666
  className: T.overlay,
4668
4667
  role: "dialog",
4669
4668
  "aria-modal": "true",
4670
- "aria-label": b?.("planSheetTitle") ?? "Choose Your Kundli Plan",
4669
+ "aria-label": h?.("planSheetTitle") ?? "Choose Your Kundli Plan",
4671
4670
  children: [
4672
4671
  /* @__PURE__ */ e.jsxs(
4673
4672
  "div",
4674
4673
  {
4675
- ref: ee,
4676
- className: j ? T.sheetFullScreen : T.sheet,
4674
+ ref: A,
4675
+ className: N ? T.sheetFullScreen : T.sheet,
4677
4676
  children: [
4678
- j ? /* @__PURE__ */ e.jsxs("div", { className: T.headerFull, children: [
4677
+ N ? /* @__PURE__ */ e.jsxs("div", { className: T.headerFull, children: [
4679
4678
  /* @__PURE__ */ e.jsx(
4680
4679
  "button",
4681
4680
  {
4682
4681
  className: T.backBtn,
4683
- onClick: z,
4682
+ onClick: te,
4684
4683
  "aria-label": "Go back",
4685
4684
  type: "button",
4686
4685
  children: /* @__PURE__ */ e.jsx(sa, {})
4687
4686
  }
4688
4687
  ),
4689
- /* @__PURE__ */ e.jsx("h2", { className: T.titleFull, children: b?.("planSheetTitle") ?? "Choose Your Kundli Plan" })
4688
+ /* @__PURE__ */ e.jsx("h2", { className: T.titleFull, children: h?.("planSheetTitle") ?? "Choose Your Kundli Plan" })
4690
4689
  ] }) : /* @__PURE__ */ e.jsx(
4691
4690
  Vn,
4692
4691
  {
4693
- title: b?.("planSheetTitle") ?? "Choose Your Kundli Plan",
4694
- onBack: z
4692
+ title: h?.("planSheetTitle") ?? "Choose Your Kundli Plan",
4693
+ onBack: te
4695
4694
  }
4696
4695
  ),
4697
4696
  /* @__PURE__ */ e.jsx(
4698
4697
  "div",
4699
4698
  {
4700
- ref: g,
4699
+ ref: R,
4701
4700
  className: T.plansContainer,
4702
4701
  role: "radiogroup",
4703
4702
  "aria-label": "Kundli plans",
4704
- children: m.map((C) => /* @__PURE__ */ e.jsx(
4703
+ children: p.map((C) => /* @__PURE__ */ e.jsx(
4705
4704
  Xn,
4706
4705
  {
4707
4706
  plan: C,
4708
- isSelected: C.id === F,
4709
- t: b,
4710
- onSelect: (X) => {
4711
- const P = m.find((U) => U.id === X);
4712
- P && (x?.trackPlanSelected?.({
4713
- planId: P.id,
4714
- planName: P.title,
4715
- ...j ? {
4716
- price: P.price,
4717
- includes_consultation: !!(P.astrologers && P.astrologers.length > 0),
4718
- cta_label: P.astrologers && P.astrologers.length > 0 ? b?.("planSelectConsultationSlot") ?? "Select consultation slot →" : b?.("planProceedToPayment") ?? "Proceed to Payment"
4707
+ isSelected: C.id === U,
4708
+ t: h,
4709
+ onSelect: (Q) => {
4710
+ const x = p.find((V) => V.id === Q);
4711
+ x && (w?.trackPlanSelected?.({
4712
+ planId: x.id,
4713
+ planName: x.title,
4714
+ ...N ? {
4715
+ price: x.price,
4716
+ includes_consultation: !!(x.astrologers && x.astrologers.length > 0),
4717
+ cta_label: x.astrologers && x.astrologers.length > 0 ? h?.("planSelectConsultationSlot") ?? "Select consultation slot →" : h?.("planProceedToPayment") ?? "Proceed to Payment"
4719
4718
  } : {}
4720
- }), d(P));
4719
+ }), c(x));
4721
4720
  }
4722
4721
  },
4723
4722
  C.id
@@ -4731,46 +4730,46 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4731
4730
  disabled: !i,
4732
4731
  onClick: () => {
4733
4732
  if (i) {
4734
- if (j && i.astrologers && i.astrologers.length > 0) {
4735
- x?.trackSelectConsultationSlotClicked?.({
4733
+ if (N && i.astrologers && i.astrologers.length > 0) {
4734
+ w?.trackSelectConsultationSlotClicked?.({
4736
4735
  planId: i.id,
4737
4736
  planName: i.title
4738
- }), x?.trackPlanProceedClicked?.({
4737
+ }), w?.trackPlanProceedClicked?.({
4739
4738
  planId: i.id,
4740
4739
  planName: i.title,
4741
4740
  cta_type: "confirm_consultation_slot",
4742
4741
  next_step: "slot_selection"
4743
- }), A(!0);
4742
+ }), S(!0);
4744
4743
  return;
4745
4744
  }
4746
- x?.trackPlanProceedClicked?.({
4745
+ w?.trackPlanProceedClicked?.({
4747
4746
  planId: i.id,
4748
4747
  planName: i.title,
4749
- ...j ? { cta_type: "proceed", next_step: "payment" } : {}
4750
- }), y(i), n();
4748
+ ...N ? { cta_type: "proceed", next_step: "payment" } : {}
4749
+ }), k(i), n();
4751
4750
  }
4752
4751
  },
4753
- children: i ? j && i.astrologers && i.astrologers.length > 0 ? b?.("planSelectConsultationSlot") ?? "Select consultation slot →" : b?.("planProceedToPayment") ?? i.price + "Proceed to Payment" : "Select a plan"
4752
+ children: i ? N && i.astrologers && i.astrologers.length > 0 ? h?.("planSelectConsultationSlot") ?? "Select consultation slot →" : h?.("planProceedToPayment") ?? i.price + "Proceed to Payment" : "Select a plan"
4754
4753
  }
4755
4754
  ) })
4756
4755
  ]
4757
4756
  }
4758
4757
  ),
4759
- j && i?.astrologers && i.astrologers.length > 0 && /* @__PURE__ */ e.jsx(
4758
+ N && i?.astrologers && i.astrologers.length > 0 && /* @__PURE__ */ e.jsx(
4760
4759
  di,
4761
4760
  {
4762
- isOpen: f,
4763
- onClose: () => A(!1),
4761
+ isOpen: _,
4762
+ onClose: () => S(!1),
4764
4763
  astrologers: i.astrologers,
4765
- t: b,
4766
- analytics: x,
4764
+ t: h,
4765
+ analytics: w,
4767
4766
  onProceed: (C) => {
4768
- x?.trackPlanProceedClicked?.({
4767
+ w?.trackPlanProceedClicked?.({
4769
4768
  planId: i.id,
4770
4769
  planName: i.title,
4771
4770
  cta_type: "proceed",
4772
4771
  next_step: "payment"
4773
- }), y(i, C), A(!1), n();
4772
+ }), k(i, C), S(!1), n();
4774
4773
  }
4775
4774
  }
4776
4775
  )
@@ -4792,104 +4791,103 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4792
4791
  className: t = "",
4793
4792
  locale: n,
4794
4793
  showLanguageSelector: i = !0,
4795
- onBack: d,
4796
- initialValues: _,
4797
- onProceed: y,
4798
- onProceedGuidance: b,
4799
- proceedHref: x,
4800
- originalPriceLabel: k,
4801
- discountedPriceLabel: H,
4802
- domesticDiscountedPriceLabel: L,
4803
- googleMapsApiKey: j = "",
4804
- atlasSearchLocalities: m,
4805
- googleMapsAutocompleteEnabled: F,
4806
- analytics: ee
4794
+ onBack: c,
4795
+ initialValues: g,
4796
+ onProceed: k,
4797
+ onProceedGuidance: h,
4798
+ proceedHref: w,
4799
+ originalPriceLabel: b,
4800
+ discountedPriceLabel: Y,
4801
+ googleMapsApiKey: D = "",
4802
+ atlasSearchLocalities: N,
4803
+ googleMapsAutocompleteEnabled: p,
4804
+ analytics: U
4807
4805
  }) => {
4808
- const g = Me(), M = yt(), f = g !== null, A = f ? g.locale : n, z = A ?? M?.locale ?? "en", [C, X] = N(z), P = f ? g.locale : C, U = f ? g.setLocale : X, [S, B] = N(!1), re = I(null), te = I(
4809
- A
4810
- ), q = I(
4811
- M?.locale
4806
+ const A = Me(), R = yt(), y = A !== null, _ = y ? A.locale : n, S = _ ?? R?.locale ?? "en", [te, C] = B(S), Q = y ? A.locale : te, x = y ? A.setLocale : C, [V, j] = B(!1), E = M(null), se = M(
4807
+ _
4808
+ ), ae = M(
4809
+ R?.locale
4812
4810
  );
4813
- $(() => {
4811
+ q(() => {
4814
4812
  window.scrollTo({ top: 0, left: 0, behavior: "auto" });
4815
4813
  }, []);
4816
- const w = (c) => hi(P, c);
4817
- $(() => {
4818
- A && te.current !== A && U(A), te.current = A;
4819
- }, [A, U]), $(() => {
4820
- if (A) return;
4821
- const c = M?.locale;
4822
- c && q.current !== c && U(c), q.current = c;
4823
- }, [M?.locale, A, U]);
4824
- const [D, ne] = N({
4814
+ const G = (P) => hi(Q, P);
4815
+ q(() => {
4816
+ _ && se.current !== _ && x(_), se.current = _;
4817
+ }, [_, x]), q(() => {
4818
+ if (_) return;
4819
+ const P = R?.locale;
4820
+ P && ae.current !== P && x(P), ae.current = P;
4821
+ }, [R?.locale, _, x]);
4822
+ const [I, $] = B({
4825
4823
  ...bi,
4826
- ..._,
4827
- phone: _?.phone ?? ""
4828
- }), Y = f ? g?.config.isGlobal ?? !0 : !0, Z = f ? g.formValues : D, Q = f ? g.setFormValues : ne, [ae, de] = N(
4829
- () => gi(Z.phoneCountryCode, Y)
4830
- ), ue = I(
4831
- !!(Z.phoneCountryCode && ra.includes(Z.phoneCountryCode))
4832
- ), ye = I(!1), le = Re((c) => {
4833
- ye.current = !0, de(c);
4834
- }, []), we = I(!0);
4835
- $(() => {
4836
- if (we.current) {
4837
- we.current = !1;
4824
+ ...g,
4825
+ phone: g?.phone ?? ""
4826
+ }), X = y ? A?.config.isGlobal ?? !0 : !0, O = y ? A.formValues : I, Te = y ? A.setFormValues : $, [K, re] = B(
4827
+ () => gi(O.phoneCountryCode, X)
4828
+ ), he = M(
4829
+ !!(O.phoneCountryCode && ra.includes(O.phoneCountryCode))
4830
+ ), ue = M(!1), we = je((P) => {
4831
+ ue.current = !0, re(P);
4832
+ }, []), ne = M(!0);
4833
+ q(() => {
4834
+ if (ne.current) {
4835
+ ne.current = !1;
4838
4836
  return;
4839
4837
  }
4840
- ue.current || ye.current || de(Y ? "+1" : "+91");
4841
- }, [Y]), $(() => {
4842
- if (!f || ye.current) return;
4843
- const c = Z.phoneCountryCode;
4844
- c && ra.includes(c) && c !== ae && (ue.current = !0, de(c));
4845
- }, [f, Z.phoneCountryCode]);
4846
- const Te = f ? g.goToPage : d, pe = f ? g.onProceed : y, se = f ? g.onProceedGuidance : b, oe = f ? g.config.proceedHref : x, G = f ? g.config.originalPriceLabel : k, me = f ? g.config.discountedPriceLabel : H, be = f ? g.config.domesticDiscountedPriceLabel : L, he = f ? g.config.showLanguageSelector ?? !0 : i, V = (f ? g?.config?.analytics : ee) ?? ee;
4847
- $(() => {
4848
- if (!S) return;
4849
- const c = (J) => {
4850
- re.current && !re.current.contains(J.target) && B(!1);
4838
+ he.current || ue.current || re(X ? "+1" : "+91");
4839
+ }, [X]), q(() => {
4840
+ if (!y || ue.current) return;
4841
+ const P = O.phoneCountryCode;
4842
+ P && ra.includes(P) && P !== K && (he.current = !0, re(P));
4843
+ }, [y, O.phoneCountryCode]);
4844
+ const Re = y ? A.goToPage : c, _e = y ? A.onProceed : k, pe = y ? A.onProceedGuidance : h, ge = y ? A.config.proceedHref : w, oe = y ? A.config.originalPriceLabel : b, H = y ? A.config.discountedPriceLabel : Y, me = y ? A.config.showLanguageSelector ?? !0 : i, ie = (y ? A?.config?.analytics : U) ?? U;
4845
+ q(() => {
4846
+ if (!V) return;
4847
+ const P = (l) => {
4848
+ E.current && !E.current.contains(l.target) && j(!1);
4851
4849
  };
4852
- return document.addEventListener("mousedown", c), () => document.removeEventListener("mousedown", c);
4853
- }, [S]);
4854
- const [Pe, xe] = N(!1), [fe, Se] = N(null), ge = I(null), Ae = Re((c) => {
4855
- ge.current = c, xe(!0);
4856
- }, []), Be = I(!1);
4857
- $(() => {
4858
- if (Be.current || !f || !g?.config.autoOpenPlanSheet || g?.config.variant !== "v1")
4850
+ return document.addEventListener("mousedown", P), () => document.removeEventListener("mousedown", P);
4851
+ }, [V]);
4852
+ const [fe, ee] = B(!1), [ce, Ne] = B(null), Pe = M(null), ke = je((P) => {
4853
+ Pe.current = P, ee(!0);
4854
+ }, []), ye = M(!1);
4855
+ q(() => {
4856
+ if (ye.current || !y || !A?.config.autoOpenPlanSheet || A?.config.variant !== "v1")
4859
4857
  return;
4860
- Be.current = !0;
4861
- const c = (Z.phone ?? "").trim();
4862
- Ae({
4863
- ...Z,
4864
- phone: c && `${ae}-${c}`
4858
+ ye.current = !0;
4859
+ const P = (O.phone ?? "").trim();
4860
+ ke({
4861
+ ...O,
4862
+ phone: P && `${K}-${P}`
4865
4863
  });
4866
- }, [f, g?.config.autoOpenPlanSheet, g?.config.variant, Z, ae, Ae]);
4867
- const De = Re(() => {
4868
- if (!ge.current || !fe) return;
4869
- V?.trackPlanProceedClicked?.({
4870
- planId: fe.id,
4871
- planName: fe.title,
4872
- price: fe.price,
4873
- currency: Y ? "USD" : "INR"
4864
+ }, [y, A?.config.autoOpenPlanSheet, A?.config.variant, O, K, ke]);
4865
+ const xe = je(() => {
4866
+ if (!Pe.current || !ce) return;
4867
+ ie?.trackPlanProceedClicked?.({
4868
+ planId: ce.id,
4869
+ planName: ce.title,
4870
+ price: ce.price,
4871
+ currency: X ? "USD" : "INR"
4874
4872
  });
4875
- const c = { ...ge.current, _selectedPlan: fe };
4876
- fe.id === Ra && se ? se(c) : pe?.(c), xe(!1), ge.current = null;
4877
- }, [fe, pe, se]), Ne = g?.config.imageComponent ?? Ye, l = he ? /* @__PURE__ */ e.jsxs("div", { className: Le.langDropdownWrap, ref: re, children: [
4873
+ const P = { ...Pe.current, _selectedPlan: ce };
4874
+ ce.id === Ra && pe ? pe(P) : _e?.(P), ee(!1), Pe.current = null;
4875
+ }, [ce, _e, pe]), Be = A?.config.imageComponent ?? Ye, De = me ? /* @__PURE__ */ e.jsxs("div", { className: Le.langDropdownWrap, ref: E, children: [
4878
4876
  /* @__PURE__ */ e.jsxs(
4879
4877
  "button",
4880
4878
  {
4881
4879
  type: "button",
4882
4880
  className: Le.langTrigger,
4883
4881
  onClick: () => {
4884
- V?.trackLanguageClickedFe?.({ language: P }), B((c) => !c);
4882
+ ie?.trackLanguageClickedFe?.({ language: Q }), j((P) => !P);
4885
4883
  },
4886
- "aria-expanded": S,
4884
+ "aria-expanded": V,
4887
4885
  "aria-haspopup": "listbox",
4888
4886
  id: "kundli-form-lang",
4889
- "aria-label": w("language"),
4887
+ "aria-label": G("language"),
4890
4888
  children: [
4891
4889
  /* @__PURE__ */ e.jsx(
4892
- Ne,
4890
+ Be,
4893
4891
  {
4894
4892
  src: fi,
4895
4893
  alt: "",
@@ -4899,30 +4897,30 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4899
4897
  loading: "eager"
4900
4898
  }
4901
4899
  ),
4902
- /* @__PURE__ */ e.jsx("span", { className: Le.langLabel, children: ka[P] })
4900
+ /* @__PURE__ */ e.jsx("span", { className: Le.langLabel, children: ka[Q] })
4903
4901
  ]
4904
4902
  }
4905
4903
  ),
4906
- S && /* @__PURE__ */ e.jsx(
4904
+ V && /* @__PURE__ */ e.jsx(
4907
4905
  "ul",
4908
4906
  {
4909
4907
  className: Le.langMenu,
4910
4908
  role: "listbox",
4911
4909
  "aria-labelledby": "kundli-form-lang",
4912
- "aria-activedescendant": `kundli-form-lang-option-${P}`,
4913
- children: Pa.map((c) => /* @__PURE__ */ e.jsx(
4910
+ "aria-activedescendant": `kundli-form-lang-option-${Q}`,
4911
+ children: Pa.map((P) => /* @__PURE__ */ e.jsx(
4914
4912
  "li",
4915
4913
  {
4916
- id: `kundli-form-lang-option-${c}`,
4914
+ id: `kundli-form-lang-option-${P}`,
4917
4915
  role: "option",
4918
- "aria-selected": c === P,
4916
+ "aria-selected": P === Q,
4919
4917
  className: Le.langOption,
4920
4918
  onClick: () => {
4921
- V?.trackLanguageChangedFe?.({ newLanguage: c }), U(c), B(!1);
4919
+ ie?.trackLanguageChangedFe?.({ newLanguage: P }), x(P), j(!1);
4922
4920
  },
4923
- children: ka[c]
4921
+ children: ka[P]
4924
4922
  },
4925
- c
4923
+ P
4926
4924
  ))
4927
4925
  }
4928
4926
  )
@@ -4931,66 +4929,66 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4931
4929
  /* @__PURE__ */ e.jsx(
4932
4930
  Jr,
4933
4931
  {
4934
- t: w,
4935
- logoUrl: f ? g.config.logoUrl : void 0,
4936
- languageSelector: l,
4932
+ t: G,
4933
+ logoUrl: y ? A.config.logoUrl : void 0,
4934
+ languageSelector: De,
4937
4935
  className: Le.kundliHeaderNoBorder
4938
4936
  }
4939
4937
  ),
4940
4938
  /* @__PURE__ */ e.jsx("div", { className: Le.headerSeparator, "aria-hidden": !0 }),
4941
4939
  /* @__PURE__ */ e.jsxs("main", { className: Le.main, children: [
4942
- /* @__PURE__ */ e.jsx(Ct, { t: w, onBack: Te }),
4940
+ /* @__PURE__ */ e.jsx(Ct, { t: G, onBack: Re }),
4943
4941
  /* @__PURE__ */ e.jsx(
4944
4942
  Dr,
4945
4943
  {
4946
- t: w,
4947
- values: Z,
4948
- onChange: Q,
4949
- googleMapsApiKey: j,
4950
- atlasSearchLocalities: m,
4951
- googleMapsAutocompleteEnabled: F,
4952
- phoneIsdCode: ae,
4953
- onPhoneIsdCodeChange: le,
4954
- showV1ExtraFields: f ? g?.config.variant === "v1" : !1,
4955
- analytics: V
4944
+ t: G,
4945
+ values: O,
4946
+ onChange: Te,
4947
+ googleMapsApiKey: D,
4948
+ atlasSearchLocalities: N,
4949
+ googleMapsAutocompleteEnabled: p,
4950
+ phoneIsdCode: K,
4951
+ onPhoneIsdCodeChange: we,
4952
+ showV1ExtraFields: y ? A?.config.variant === "v1" : !1,
4953
+ analytics: ie
4956
4954
  }
4957
4955
  )
4958
4956
  ] }),
4959
4957
  /* @__PURE__ */ e.jsx(
4960
4958
  Yr,
4961
4959
  {
4962
- t: w,
4963
- values: Z,
4964
- phoneIsdCode: ae,
4965
- onProceed: pe,
4966
- onProceedGuidance: se,
4967
- href: oe,
4968
- originalPriceLabel: G,
4969
- discountedPriceLabel: me,
4970
- domesticDiscountedPriceLabel: be,
4971
- analytics: V,
4972
- showPlanSheet: Ae,
4973
- confirmPlan: De,
4974
- planSheetOpen: Pe,
4975
- selectedPlan: fe
4960
+ t: G,
4961
+ values: O,
4962
+ phoneIsdCode: K,
4963
+ onProceed: _e,
4964
+ onProceedGuidance: pe,
4965
+ href: ge,
4966
+ originalPriceLabel: oe,
4967
+ discountedPriceLabel: H,
4968
+ analytics: ie,
4969
+ showPlanSheet: ke,
4970
+ confirmPlan: xe,
4971
+ planSheetOpen: fe,
4972
+ selectedPlan: ce
4976
4973
  }
4977
4974
  ),
4978
- g?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
4975
+ A?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
4979
4976
  mi,
4980
4977
  {
4981
- isOpen: Pe,
4982
- onClose: () => xe(!1),
4983
- selectedPlan: fe,
4984
- onSelectPlan: Se,
4978
+ isOpen: fe,
4979
+ onClose: () => ee(!1),
4980
+ selectedPlan: ce,
4981
+ onSelectPlan: Ne,
4985
4982
  onProceed: () => {
4986
- De?.();
4983
+ xe?.();
4987
4984
  },
4988
- t: w,
4989
- analytics: V
4985
+ plans: A?.config.plans,
4986
+ t: G,
4987
+ analytics: ie
4990
4988
  }
4991
4989
  )
4992
4990
  ] });
4993
- }, Si = {
4991
+ }, wi = {
4994
4992
  banner_clicked_fe: "banner_clicked_fe",
4995
4993
  primary_cta_clicked_fe: "primary_cta_clicked_fe",
4996
4994
  language_changed_fe: "language_changed_fe",
@@ -5067,12 +5065,12 @@ export {
5067
5065
  Ye as D,
5068
5066
  Ct as F,
5069
5067
  yi as I,
5070
- Si as K,
5068
+ wi as K,
5071
5069
  ka as L,
5072
5070
  Ra as P,
5073
5071
  Pa as S,
5074
5072
  Dr as U,
5075
- wa as a,
5073
+ Sa as a,
5076
5074
  ia as b,
5077
5075
  xi as c,
5078
5076
  Ti as d,
@@ -5094,4 +5092,4 @@ export {
5094
5092
  xa as t,
5095
5093
  yt as u
5096
5094
  };
5097
- //# sourceMappingURL=analytics-D8Ykonba.js.map
5095
+ //# sourceMappingURL=analytics-DXIMIqu9.js.map