@srimandir/kundli-generator 8.0.4 → 8.0.6

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 B, useRef as M, useEffect as K, useMemo as Ee, useCallback as je, Fragment as Va } from "react";
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";
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"), 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(S, b, q) {
10
- var D, N = {}, p = null, U = null;
11
- q !== void 0 && (p = "" + q), 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 (S && S.defaultProps) for (D in b = S.defaultProps, b) N[D] === void 0 && (N[D] = b[D]);
14
- return { $$typeof: n, type: S, key: p, ref: U, props: N, _owner: g.current };
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 };
15
15
  }
16
- return He.Fragment = i, He.jsx = h, He.jsxs = h, He;
16
+ return He.Fragment = i, He.jsx = b, He.jsxs = b, 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"), 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"), S = /* @__PURE__ */ Symbol.for("react.context"), b = /* @__PURE__ */ Symbol.for("react.forward_ref"), q = /* @__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"), v = Symbol.iterator, R = "@@iterator";
23
- function y(a) {
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) {
24
24
  if (a === null || typeof a != "object")
25
25
  return null;
26
- var s = v && a[v] || a[R];
26
+ var s = ee && a[ee] || a[g];
27
27
  return typeof s == "function" ? s : null;
28
28
  }
29
- var _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
30
- function w(a) {
29
+ var f = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
30
+ function A(a) {
31
31
  {
32
- for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), A = 1; A < s; A++)
33
- u[A - 1] = arguments[A];
34
- ne("error", a, u);
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);
35
35
  }
36
36
  }
37
- function ne(a, s, u) {
37
+ function z(a, s, p) {
38
38
  {
39
- var A = _.ReactDebugCurrentFrame, H = A.getStackAddendum();
40
- H !== "" && (s += "%s", u = u.concat([H]));
41
- var z = u.map(function(F) {
42
- return String(F);
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);
43
43
  });
44
- z.unshift("Warning: " + s), Function.prototype.apply.call(console[a], console, z);
44
+ K.unshift("Warning: " + s), Function.prototype.apply.call(console[a], console, K);
45
45
  }
46
46
  }
47
- var C = !1, Q = !1, x = !1, Y = !1, j = !1, E;
48
- E = /* @__PURE__ */ Symbol.for("react.module.reference");
49
- function le(a) {
50
- return !!(typeof a == "string" || typeof a == "function" || a === c || a === k || j || a === g || a === q || a === D || Y || a === U || C || Q || x || typeof a == "object" && a !== null && (a.$$typeof === p || a.$$typeof === N || a.$$typeof === h || a.$$typeof === S || a.$$typeof === b || // This needs to include all possible module reference object
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
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 === E || a.getModuleId !== void 0));
54
+ a.$$typeof === B || a.getModuleId !== void 0));
55
55
  }
56
- function re(a, s, u) {
57
- var A = a.displayName;
58
- if (A)
59
- return A;
60
- var H = s.displayName || s.name || "";
61
- return H !== "" ? u + "(" + H + ")" : u;
56
+ function te(a, s, p) {
57
+ var v = a.displayName;
58
+ if (v)
59
+ return v;
60
+ var O = s.displayName || s.name || "";
61
+ return O !== "" ? p + "(" + O + ")" : p;
62
62
  }
63
- function G(a) {
63
+ function q(a) {
64
64
  return a.displayName || "Context";
65
65
  }
66
- function I(a) {
66
+ function w(a) {
67
67
  if (a == null)
68
68
  return null;
69
- if (typeof a.tag == "number" && w("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" && A("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 c:
74
+ case d:
75
75
  return "Fragment";
76
76
  case i:
77
77
  return "Portal";
78
- case k:
78
+ case y:
79
79
  return "Profiler";
80
- case g:
80
+ case _:
81
81
  return "StrictMode";
82
- case q:
82
+ case H:
83
83
  return "Suspense";
84
- case D:
84
+ case L:
85
85
  return "SuspenseList";
86
86
  }
87
87
  if (typeof a == "object")
88
88
  switch (a.$$typeof) {
89
- case S:
89
+ case x:
90
90
  var s = a;
91
- return G(s) + ".Consumer";
92
- case h:
93
- var u = a;
94
- return G(u._context) + ".Provider";
91
+ return q(s) + ".Consumer";
95
92
  case b:
96
- return re(a, a.render, "ForwardRef");
97
- case N:
98
- var A = a.displayName || null;
99
- return A !== null ? A : I(a.type) || "Memo";
100
- case p: {
101
- var H = a, z = H._payload, F = H._init;
93
+ var p = a;
94
+ return q(p._context) + ".Provider";
95
+ case k:
96
+ return te(a, a.render, "ForwardRef");
97
+ case j:
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;
102
102
  try {
103
- return I(F(z));
103
+ return w(E(K));
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 $ = Object.assign, X = 0, O, Te, V, oe, ue, ae, Se;
112
- function me() {
111
+ var D = Object.assign, ne = 0, Y, Z, Q, ae, de, ue, ye;
112
+ function le() {
113
113
  }
114
- me.__reactDisabledLog = !0;
115
- function Ne() {
114
+ le.__reactDisabledLog = !0;
115
+ function we() {
116
116
  {
117
- if (X === 0) {
118
- O = console.log, Te = console.info, V = console.warn, oe = console.error, ue = console.group, ae = console.groupCollapsed, Se = console.groupEnd;
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;
119
119
  var a = {
120
120
  configurable: !0,
121
121
  enumerable: !0,
122
- value: me,
122
+ value: le,
123
123
  writable: !0
124
124
  };
125
125
  Object.defineProperties(console, {
@@ -132,229 +132,229 @@ function at() {
132
132
  groupEnd: a
133
133
  });
134
134
  }
135
- X++;
135
+ ne++;
136
136
  }
137
137
  }
138
- function be() {
138
+ function Te() {
139
139
  {
140
- if (X--, X === 0) {
140
+ if (ne--, ne === 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: $({}, a, {
148
- value: O
147
+ log: D({}, a, {
148
+ value: Y
149
149
  }),
150
- info: $({}, a, {
151
- value: Te
150
+ info: D({}, a, {
151
+ value: Z
152
152
  }),
153
- warn: $({}, a, {
154
- value: V
153
+ warn: D({}, a, {
154
+ value: Q
155
155
  }),
156
- error: $({}, a, {
157
- value: oe
156
+ error: D({}, a, {
157
+ value: ae
158
158
  }),
159
- group: $({}, a, {
160
- value: ue
159
+ group: D({}, a, {
160
+ value: de
161
161
  }),
162
- groupCollapsed: $({}, a, {
163
- value: ae
162
+ groupCollapsed: D({}, a, {
163
+ value: ue
164
164
  }),
165
- groupEnd: $({}, a, {
166
- value: Se
165
+ groupEnd: D({}, a, {
166
+ value: ye
167
167
  })
168
168
  });
169
169
  }
170
- X < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
170
+ ne < 0 && A("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
171
171
  }
172
172
  }
173
- var Z = _.ReactCurrentDispatcher, fe;
174
- function he(a, s, u) {
173
+ var pe = f.ReactCurrentDispatcher, se;
174
+ function oe(a, s, p) {
175
175
  {
176
- if (fe === void 0)
176
+ if (se === void 0)
177
177
  try {
178
178
  throw Error();
179
- } catch (H) {
180
- var A = H.stack.trim().match(/\n( *(at )?)/);
181
- fe = A && A[1] || "";
179
+ } catch (O) {
180
+ var v = O.stack.trim().match(/\n( *(at )?)/);
181
+ se = v && v[1] || "";
182
182
  }
183
183
  return `
184
- ` + fe + a;
184
+ ` + se + a;
185
185
  }
186
186
  }
187
- var W = !1, pe;
187
+ var G = !1, me;
188
188
  {
189
- var de = typeof WeakMap == "function" ? WeakMap : Map;
190
- pe = new de();
189
+ var be = typeof WeakMap == "function" ? WeakMap : Map;
190
+ me = new be();
191
191
  }
192
- function _e(a, s) {
193
- if (!a || W)
192
+ function he(a, s) {
193
+ if (!a || G)
194
194
  return "";
195
195
  {
196
- var u = pe.get(a);
197
- if (u !== void 0)
198
- return u;
196
+ var p = me.get(a);
197
+ if (p !== void 0)
198
+ return p;
199
199
  }
200
- var A;
201
- W = !0;
202
- var H = Error.prepareStackTrace;
200
+ var v;
201
+ G = !0;
202
+ var O = Error.prepareStackTrace;
203
203
  Error.prepareStackTrace = void 0;
204
- var z;
205
- z = Z.current, Z.current = null, Ne();
204
+ var K;
205
+ K = pe.current, pe.current = null, we();
206
206
  try {
207
207
  if (s) {
208
- var F = function() {
208
+ var E = function() {
209
209
  throw Error();
210
210
  };
211
- if (Object.defineProperty(F.prototype, "props", {
211
+ if (Object.defineProperty(E.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(F, []);
217
+ Reflect.construct(E, []);
218
218
  } catch (ve) {
219
- A = ve;
219
+ v = ve;
220
220
  }
221
- Reflect.construct(a, [], F);
221
+ Reflect.construct(a, [], E);
222
222
  } else {
223
223
  try {
224
- F.call();
224
+ E.call();
225
225
  } catch (ve) {
226
- A = ve;
226
+ v = ve;
227
227
  }
228
- a.call(F.prototype);
228
+ a.call(E.prototype);
229
229
  }
230
230
  } else {
231
231
  try {
232
232
  throw Error();
233
233
  } catch (ve) {
234
- A = ve;
234
+ v = ve;
235
235
  }
236
236
  a();
237
237
  }
238
238
  } catch (ve) {
239
- if (ve && A && typeof ve.stack == "string") {
240
- for (var L = ve.stack.split(`
241
- `), Ae = A.stack.split(`
242
- `), ie = L.length - 1, ce = Ae.length - 1; ie >= 1 && ce >= 0 && L[ie] !== Ae[ce]; )
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
243
  ce--;
244
244
  for (; ie >= 1 && ce >= 0; ie--, ce--)
245
- if (L[ie] !== Ae[ce]) {
245
+ if (R[ie] !== ke[ce]) {
246
246
  if (ie !== 1 || ce !== 1)
247
247
  do
248
- if (ie--, ce--, ce < 0 || L[ie] !== Ae[ce]) {
249
- var Ce = `
250
- ` + L[ie].replace(" at new ", " at ");
251
- return a.displayName && Ce.includes("<anonymous>") && (Ce = Ce.replace("<anonymous>", a.displayName)), typeof a == "function" && pe.set(a, Ce), Ce;
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;
252
252
  }
253
253
  while (ie >= 1 && ce >= 0);
254
254
  break;
255
255
  }
256
256
  }
257
257
  } finally {
258
- W = !1, Z.current = z, be(), Error.prepareStackTrace = H;
258
+ G = !1, pe.current = K, Te(), Error.prepareStackTrace = O;
259
259
  }
260
- var Ge = a ? a.displayName || a.name : "", Ie = Ge ? he(Ge) : "";
261
- return typeof a == "function" && pe.set(a, Ie), Ie;
260
+ var Ge = a ? a.displayName || a.name : "", Ie = Ge ? oe(Ge) : "";
261
+ return typeof a == "function" && me.set(a, Ie), Ie;
262
262
  }
263
- function te(a, s, u) {
264
- return _e(a, !1);
263
+ function V(a, s, p) {
264
+ return he(a, !1);
265
265
  }
266
- function se(a) {
266
+ function Pe(a) {
267
267
  var s = a.prototype;
268
268
  return !!(s && s.isReactComponent);
269
269
  }
270
- function Re(a, s, u) {
270
+ function xe(a, s, p) {
271
271
  if (a == null)
272
272
  return "";
273
273
  if (typeof a == "function")
274
- return _e(a, se(a));
274
+ return he(a, Pe(a));
275
275
  if (typeof a == "string")
276
- return he(a);
276
+ return oe(a);
277
277
  switch (a) {
278
- case q:
279
- return he("Suspense");
280
- case D:
281
- return he("SuspenseList");
278
+ case H:
279
+ return oe("Suspense");
280
+ case L:
281
+ return oe("SuspenseList");
282
282
  }
283
283
  if (typeof a == "object")
284
284
  switch (a.$$typeof) {
285
- case b:
286
- return te(a.render);
287
- case N:
288
- return Re(a.type, s, u);
289
- case p: {
290
- var A = a, H = A._payload, z = A._init;
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;
291
291
  try {
292
- return Re(z(H), s, u);
292
+ return xe(K(O), s, p);
293
293
  } catch {
294
294
  }
295
295
  }
296
296
  }
297
297
  return "";
298
298
  }
299
- var Pe = Object.prototype.hasOwnProperty, ke = {}, ye = _.ReactDebugCurrentFrame;
300
- function xe(a) {
299
+ var fe = Object.prototype.hasOwnProperty, Se = {}, ge = f.ReactDebugCurrentFrame;
300
+ function Ae(a) {
301
301
  if (a) {
302
- var s = a._owner, u = Re(a.type, a._source, s ? s.type : null);
303
- ye.setExtraStackFrame(u);
302
+ var s = a._owner, p = xe(a.type, a._source, s ? s.type : null);
303
+ ge.setExtraStackFrame(p);
304
304
  } else
305
- ye.setExtraStackFrame(null);
305
+ ge.setExtraStackFrame(null);
306
306
  }
307
- function Be(a, s, u, A, H) {
307
+ function Be(a, s, p, v, O) {
308
308
  {
309
- var z = Function.call.bind(Pe);
310
- for (var F in a)
311
- if (z(a, F)) {
312
- var L = void 0;
309
+ var K = Function.call.bind(fe);
310
+ for (var E in a)
311
+ if (K(a, E)) {
312
+ var R = void 0;
313
313
  try {
314
- if (typeof a[F] != "function") {
315
- var Ae = Error((A || "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;
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;
317
317
  }
318
- L = a[F](s, F, A, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
318
+ R = a[E](s, E, v, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
319
319
  } catch (ie) {
320
- L = ie;
320
+ R = ie;
321
321
  }
322
- L && !(L instanceof Error) && (xe(H), w("%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).", A || "React class", u, F, typeof L), xe(null)), L instanceof Error && !(L.message in ke) && (ke[L.message] = !0, xe(H), w("Failed %s type: %s", u, L.message), xe(null));
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));
323
323
  }
324
324
  }
325
325
  }
326
326
  var De = Array.isArray;
327
- function P(a) {
327
+ function Ne(a) {
328
328
  return De(a);
329
329
  }
330
330
  function l(a) {
331
331
  {
332
- var s = typeof Symbol == "function" && Symbol.toStringTag, u = s && a[Symbol.toStringTag] || a.constructor.name || "Object";
333
- return u;
332
+ var s = typeof Symbol == "function" && Symbol.toStringTag, p = s && a[Symbol.toStringTag] || a.constructor.name || "Object";
333
+ return p;
334
334
  }
335
335
  }
336
- function f(a) {
336
+ function c(a) {
337
337
  try {
338
- return ee(a), !1;
338
+ return J(a), !1;
339
339
  } catch {
340
340
  return !0;
341
341
  }
342
342
  }
343
- function ee(a) {
343
+ function J(a) {
344
344
  return "" + a;
345
345
  }
346
- function ge(a) {
347
- if (f(a))
348
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", l(a)), ee(a);
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);
349
349
  }
350
- var r = _.ReactCurrentOwner, d = {
350
+ var r = f.ReactCurrentOwner, u = {
351
351
  key: !0,
352
352
  ref: !0,
353
353
  __self: !0,
354
354
  __source: !0
355
- }, J, we;
355
+ }, W, Ce;
356
356
  function $e(a) {
357
- if (Pe.call(a, "ref")) {
357
+ if (fe.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 (Pe.call(a, "key")) {
365
+ if (fe.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 u = function() {
378
- J || (J = !0, w("%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 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));
379
379
  };
380
- u.isReactWarning = !0, Object.defineProperty(a, "key", {
381
- get: u,
380
+ p.isReactWarning = !0, Object.defineProperty(a, "key", {
381
+ get: p,
382
382
  configurable: !0
383
383
  });
384
384
  }
385
385
  }
386
386
  function Ea(a, s) {
387
387
  {
388
- var u = function() {
389
- we || (we = !0, w("%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 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));
390
390
  };
391
- u.isReactWarning = !0, Object.defineProperty(a, "ref", {
392
- get: u,
391
+ p.isReactWarning = !0, Object.defineProperty(a, "ref", {
392
+ get: p,
393
393
  configurable: !0
394
394
  });
395
395
  }
396
396
  }
397
- var Ia = function(a, s, u, A, H, z, F) {
398
- var L = {
397
+ var Ia = function(a, s, p, v, O, K, E) {
398
+ var R = {
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: u,
405
- props: F,
404
+ ref: p,
405
+ props: E,
406
406
  // Record the component responsible for creating this element.
407
- _owner: z
407
+ _owner: K
408
408
  };
409
- return L._store = {}, Object.defineProperty(L._store, "validated", {
409
+ return R._store = {}, Object.defineProperty(R._store, "validated", {
410
410
  configurable: !1,
411
411
  enumerable: !1,
412
412
  writable: !0,
413
413
  value: !1
414
- }), Object.defineProperty(L, "_self", {
414
+ }), Object.defineProperty(R, "_self", {
415
415
  configurable: !1,
416
416
  enumerable: !1,
417
417
  writable: !1,
418
- value: A
419
- }), Object.defineProperty(L, "_source", {
418
+ value: v
419
+ }), Object.defineProperty(R, "_source", {
420
420
  configurable: !1,
421
421
  enumerable: !1,
422
422
  writable: !1,
423
- value: H
424
- }), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
423
+ value: O
424
+ }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
425
425
  };
426
- function Fa(a, s, u, A, H) {
426
+ function Fa(a, s, p, v, O) {
427
427
  {
428
- var z, F = {}, L = null, Ae = null;
429
- u !== void 0 && (ge(u), L = "" + u), ze(s) && (ge(s.key), L = "" + s.key), $e(s) && (Ae = s.ref, Ba(s, H));
430
- for (z in s)
431
- Pe.call(s, z) && !d.hasOwnProperty(z) && (F[z] = s[z]);
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]);
432
432
  if (a && a.defaultProps) {
433
433
  var ie = a.defaultProps;
434
- for (z in ie)
435
- F[z] === void 0 && (F[z] = ie[z]);
434
+ for (K in ie)
435
+ E[K] === void 0 && (E[K] = ie[K]);
436
436
  }
437
- if (L || Ae) {
437
+ if (R || ke) {
438
438
  var ce = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
439
- L && Da(F, ce), Ae && Ea(F, ce);
439
+ R && Da(E, ce), ke && Ea(E, ce);
440
440
  }
441
- return Ia(a, L, Ae, H, A, r.current, F);
441
+ return Ia(a, R, ke, O, v, r.current, E);
442
442
  }
443
443
  }
444
- var Qe = _.ReactCurrentOwner, ca = _.ReactDebugCurrentFrame;
444
+ var Qe = f.ReactCurrentOwner, ca = f.ReactDebugCurrentFrame;
445
445
  function Ue(a) {
446
446
  if (a) {
447
- var s = a._owner, u = Re(a.type, a._source, s ? s.type : null);
448
- ca.setExtraStackFrame(u);
447
+ var s = a._owner, p = xe(a.type, a._source, s ? s.type : null);
448
+ ca.setExtraStackFrame(p);
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 = I(Qe.current.type);
460
+ var a = w(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 u = typeof a == "string" ? a : a.displayName || a.name;
478
- u && (s = `
477
+ var p = typeof a == "string" ? a : a.displayName || a.name;
478
+ p && (s = `
479
479
 
480
- Check the top-level render call using <` + u + ">.");
480
+ Check the top-level render call using <` + p + ">.");
481
481
  }
482
482
  return s;
483
483
  }
@@ -487,30 +487,30 @@ Check the top-level render call using <` + u + ">.");
487
487
  if (!a._store || a._store.validated || a.key != null)
488
488
  return;
489
489
  a._store.validated = !0;
490
- var u = Ua(s);
491
- if (ua[u])
490
+ var p = Ua(s);
491
+ if (ua[p])
492
492
  return;
493
- ua[u] = !0;
494
- var A = "";
495
- a && a._owner && a._owner !== Qe.current && (A = " It was passed a child from " + I(a._owner.type) + "."), Ue(a), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, A), Ue(null);
493
+ ua[p] = !0;
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);
496
496
  }
497
497
  }
498
498
  function ma(a, s) {
499
499
  {
500
500
  if (typeof a != "object")
501
501
  return;
502
- if (P(a))
503
- for (var u = 0; u < a.length; u++) {
504
- var A = a[u];
505
- Ze(A) && pa(A, s);
502
+ if (Ne(a))
503
+ for (var p = 0; p < a.length; p++) {
504
+ var v = a[p];
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 H = y(a);
511
- if (typeof H == "function" && H !== a.entries)
512
- for (var z = H.call(a), F; !(F = z.next()).done; )
513
- Ze(F.value) && pa(F.value, s);
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);
514
514
  }
515
515
  }
516
516
  }
@@ -519,73 +519,73 @@ Check the top-level render call using <` + u + ">.");
519
519
  var s = a.type;
520
520
  if (s == null || typeof s == "string")
521
521
  return;
522
- var u;
522
+ var p;
523
523
  if (typeof s == "function")
524
- u = s.propTypes;
525
- else if (typeof s == "object" && (s.$$typeof === b || // Note: Memo only checks outer props here.
524
+ p = s.propTypes;
525
+ else if (typeof s == "object" && (s.$$typeof === k || // Note: Memo only checks outer props here.
526
526
  // Inner props are checked in the reconciler.
527
- s.$$typeof === N))
528
- u = s.propTypes;
527
+ s.$$typeof === j))
528
+ p = s.propTypes;
529
529
  else
530
530
  return;
531
- if (u) {
532
- var A = I(s);
533
- Be(u, a.props, "prop", A, a);
531
+ if (p) {
532
+ var v = w(s);
533
+ Be(p, a.props, "prop", v, a);
534
534
  } else if (s.PropTypes !== void 0 && !Xe) {
535
535
  Xe = !0;
536
- var H = I(s);
537
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", H || "Unknown");
536
+ var O = w(s);
537
+ A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
538
538
  }
539
- typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
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.");
540
540
  }
541
541
  }
542
542
  function Oa(a) {
543
543
  {
544
- for (var s = Object.keys(a.props), u = 0; u < s.length; u++) {
545
- var A = s[u];
546
- if (A !== "children" && A !== "key") {
547
- Ue(a), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", A), Ue(null);
544
+ for (var s = Object.keys(a.props), p = 0; p < s.length; p++) {
545
+ var v = s[p];
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);
548
548
  break;
549
549
  }
550
550
  }
551
- a.ref !== null && (Ue(a), w("Invalid attribute `ref` supplied to `React.Fragment`."), Ue(null));
551
+ a.ref !== null && (Ue(a), A("Invalid attribute `ref` supplied to `React.Fragment`."), Ue(null));
552
552
  }
553
553
  }
554
554
  var fa = {};
555
- function ha(a, s, u, A, H, z) {
555
+ function ha(a, s, p, v, O, K) {
556
556
  {
557
- var F = le(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();
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
563
  var ie;
564
- a === null ? ie = "null" : P(a) ? ie = "array" : a !== void 0 && a.$$typeof === n ? (ie = "<" + (I(a.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : ie = typeof a, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ie, L);
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);
565
565
  }
566
- var ce = Fa(a, s, u, H, z);
566
+ var ce = Fa(a, s, p, O, K);
567
567
  if (ce == null)
568
568
  return ce;
569
- if (F) {
570
- var Ce = s.children;
571
- if (Ce !== void 0)
572
- if (A)
573
- if (P(Ce)) {
574
- for (var Ge = 0; Ge < Ce.length; Ge++)
575
- ma(Ce[Ge], a);
576
- Object.freeze && Object.freeze(Ce);
569
+ if (E) {
570
+ var je = s.children;
571
+ if (je !== void 0)
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);
577
577
  } else
578
- w("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
+ 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.");
579
579
  else
580
- ma(Ce, a);
580
+ ma(je, a);
581
581
  }
582
- if (Pe.call(s, "key")) {
583
- var Ie = I(a), ve = Object.keys(s).filter(function(Ya) {
582
+ if (fe.call(s, "key")) {
583
+ var Ie = w(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
- w(`A props object containing a "key" prop is being spread into JSX:
588
+ A(`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 === c ? Oa(ce) : Ga(ce), ce;
596
+ return a === d ? Oa(ce) : Ga(ce), ce;
597
597
  }
598
598
  }
599
- function $a(a, s, u) {
600
- return ha(a, s, u, !0);
599
+ function $a(a, s, p) {
600
+ return ha(a, s, p, !0);
601
601
  }
602
- function Ha(a, s, u) {
603
- return ha(a, s, u, !1);
602
+ function Ha(a, s, p) {
603
+ return ha(a, s, p, !1);
604
604
  }
605
605
  var Wa = Ha, Ka = $a;
606
- We.Fragment = c, We.jsx = Wa, We.jsxs = Ka;
606
+ We.Fragment = d, We.jsx = Wa, We.jsxs = Ka;
607
607
  })()), We;
608
608
  }
609
609
  var _a;
@@ -817,7 +817,7 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
817
817
  planSheetTitle: "Choose Your Kundli Plan",
818
818
  planProceedToPayment: "Proceed to Payment",
819
819
  planMostPopular: "Most popular",
820
- planAstrologerHeading: "We will assign you a top astrologer from below",
820
+ planAstrologerHeading: "We will match you with astrologer who speaks your language",
821
821
  planNameBasic: "Kundli Report",
822
822
  planNameGuidance: "Kundli Report + Astrologer Guidance",
823
823
  planSaveLabel: "Save ~25%",
@@ -1054,7 +1054,7 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
1054
1054
  planSheetTitle: "अपना कुंडली प्लान चुनें",
1055
1055
  planProceedToPayment: "पेमेंट के लिए आगे बढ़ें",
1056
1056
  planMostPopular: "सबसे लोकप्रिय",
1057
- planAstrologerHeading: "हम आपके लिए नीचे दिए गए टॉप ज्योतिषियों में से एक को चुनेंगे",
1057
+ planAstrologerHeading: "हम आपकी भाषा बोलने वाले ज्योतिषी से आपकी बात करवाएंगे",
1058
1058
  planNameBasic: "कुंडली रिपोर्ट",
1059
1059
  planNameGuidance: "कुंडली रिपोर्ट + ज्योतिषी से बात",
1060
1060
  planSaveLabel: "~25% बचाएं",
@@ -1289,7 +1289,7 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
1289
1289
  planSheetTitle: "तुमचा कुंडली प्लॅन निवडा",
1290
1290
  planProceedToPayment: "पेमेंटसाठी पुढे जा",
1291
1291
  planMostPopular: "सर्वाधिक लोकप्रिय",
1292
- planAstrologerHeading: "खालील सर्वोत्तम ज्योतिषांपैकी एक ज्योतिष तुम्हाला नियुक्त केला जाईल",
1292
+ planAstrologerHeading: "तुमची भाषा बोलणाऱ्या ज्योतिषांशी आम्ही तुमची ओळख करून देऊ",
1293
1293
  planNameBasic: "कुंडली अहवाल",
1294
1294
  planNameGuidance: "कुंडली अहवाल + ज्योतिष मार्गदर्शन",
1295
1295
  planSaveLabel: "25% बचत करा",
@@ -1519,7 +1519,7 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
1519
1519
  planSheetTitle: "તમારો કુંડળી પ્લાન પસંદ કરો",
1520
1520
  planProceedToPayment: "ચુકવણી માટે આગળ વધો",
1521
1521
  planMostPopular: "સૌથી લોકપ્રિય",
1522
- planAstrologerHeading: "નીચે આપેલા શ્રેષ્ઠ જ્યોતિષીઓમાંથી એક જ્યોતિષી તમને ફાળવવામાં આવશે",
1522
+ planAstrologerHeading: "તમારી ભાષા બોલતા જ્યોતિષીઓ સાથે અમે તમને જોડી આપીશું",
1523
1523
  planNameBasic: "કુંડળી રિપોર્ટ",
1524
1524
  planNameGuidance: "કુંડળી રિપોર્ટ + જ્યોતિષ માર્ગદર્શન",
1525
1525
  planSaveLabel: "25% બચાવો",
@@ -1749,7 +1749,7 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
1749
1749
  planSheetTitle: "ನಿಮ್ಮ ಕುಂಡಲಿ ಪ್ಲಾನ್ ಆಯ್ಕೆಮಾಡಿ",
1750
1750
  planProceedToPayment: "ಪಾವತಿಗೆ ಮುಂದುವರಿಯಿರಿ",
1751
1751
  planMostPopular: "ಅತ್ಯಂತ ಜನಪ್ರಿಯ",
1752
- planAstrologerHeading: "ಕೆಳಗಿನ ಅತ್ಯುತ್ತಮ ಜ್ಯೋತಿಷಿಗಳಲ್ಲಿ ಒಬ್ಬರನ್ನು ನಿಮಗೆ ನಿಯೋಜಿಸಲಾಗುತ್ತದೆ",
1752
+ planAstrologerHeading: "ನಿಮ್ಮ ಭಾಷೆ ಮಾತಾಡುವ ಜ್ಯೋತಿಷಿಗಳ ಜೊತೆ ನಿಮ್ಮನ್ನು ಸೇರಿಸುತ್ತೇವೆ",
1753
1753
  planNameBasic: "ಕುಂಡಲಿ ವರದಿ",
1754
1754
  planNameGuidance: "ಕುಂಡಲಿ ವರದಿ + ಜ್ಯೋತಿಷಿ ಮಾರ್ಗದರ್ಶನ",
1755
1755
  planSaveLabel: "25% ಉಳಿಸಿ",
@@ -1979,7 +1979,7 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
1979
1979
  planSheetTitle: "உங்கள் ஜாதகத் திட்டத்தைத் தேர்வு செய்யுங்கள்",
1980
1980
  planProceedToPayment: "பணம் செலுத்தத் தொடரவும்",
1981
1981
  planMostPopular: "மிகவும் பிரபலமானது",
1982
- planAstrologerHeading: "கீழே உள்ள சிறந்த ஜோதிடர்களில் ஒருவர் உங்களுக்கு ஒதுக்கப்படுவார்",
1982
+ planAstrologerHeading: "நீங்கள் பேசும் மொழியில் பேசுகிற ஜோதிடர்களுடன் உங்களை இணைப்போம்",
1983
1983
  planNameBasic: "ஜாதக அறிக்கை",
1984
1984
  planNameGuidance: "ஜாதக அறிக்கை + ஜோதிடர் வழிகாட்டுதல்",
1985
1985
  planSaveLabel: "25% சேமிக்கவும்",
@@ -2209,7 +2209,7 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
2209
2209
  planSheetTitle: "మీ జాతక ప్లాన్‌ను ఎంచుకోండి",
2210
2210
  planProceedToPayment: "చెల్లింపునకు ముందుకు కొనసాగించండి",
2211
2211
  planMostPopular: "అత్యంత ప్రజాదరణ పొందినది",
2212
- planAstrologerHeading: "మీకు కింద ఉన్న వారిలో ఒక అర్హతైన జ్యోతిష్యుడిని కేటాయిస్తాము",
2212
+ planAstrologerHeading: "మీ భాష మాట్లాడే జ్యోతిష్కులతో మిమ్మల్ని కలుపుతాం",
2213
2213
  planNameBasic: "జాతకం రిపోర్టు",
2214
2214
  planNameGuidance: "జాతకం రిపోర్ట్ + వ్యక్తిగత జ్యోతిష్య సలహాలు",
2215
2215
  planSaveLabel: "25% ఆదా",
@@ -2277,20 +2277,20 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
2277
2277
  locale: t,
2278
2278
  children: n
2279
2279
  }) => {
2280
- const c = { locale: t, t: (g) => xa[t]?.[g] };
2281
- return /* @__PURE__ */ e.jsx(Sa.Provider, { value: c, children: n });
2280
+ const d = { locale: t, t: (_) => xa[t]?.[_] };
2281
+ return /* @__PURE__ */ e.jsx(Sa.Provider, { value: d, children: n });
2282
2282
  };
2283
2283
  function yt() {
2284
2284
  return oa(Sa);
2285
2285
  }
2286
2286
  const Ye = (t) => {
2287
- const { priority: n, fetchPriority: i, width: c, height: g, ...k } = t;
2287
+ const { priority: n, fetchPriority: i, width: d, height: _, ...y } = t;
2288
2288
  return na.createElement("img", {
2289
- ...k,
2290
- width: c ?? 1,
2291
- height: g ?? 1,
2289
+ ...y,
2290
+ width: d ?? 1,
2291
+ height: _ ?? 1,
2292
2292
  decoding: "async",
2293
- loading: k.loading ?? (n ? "eager" : "lazy"),
2293
+ loading: y.loading ?? (n ? "eager" : "lazy"),
2294
2294
  ...i && { fetchPriority: i }
2295
2295
  });
2296
2296
  };
@@ -2350,149 +2350,155 @@ const ia = Ta(null), xt = {
2350
2350
  locale: t,
2351
2351
  showLanguageSelector: n = !0,
2352
2352
  showSheet: i,
2353
- userId: c,
2354
- isGlobal: g,
2355
- variant: k,
2356
- initialFormValues: h,
2357
- autoOpenPlanSheet: S,
2358
- googleMapsApiKey: b,
2359
- atlasSearchLocalities: q,
2360
- googleMapsAutocompleteEnabled: D,
2361
- enableConsultationScheduling: N,
2362
- fetchConsultationSlots: p,
2363
- logoUrl: U,
2364
- reportImageUrl: v,
2365
- reportImagePriority: R,
2366
- backgroundImagePriority: y,
2367
- universityLogoUrls: _,
2368
- sampleReportHref: w,
2369
- onViewSampleReport: ne,
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,
2370
2370
  ctaHref: C,
2371
- onCtaClick: Q,
2372
- onBack: x,
2373
- readMoreReviewsHref: Y,
2374
- onProceed: j,
2375
- proceedHref: E,
2376
- originalPriceLabel: le,
2377
- discountedPriceLabel: re,
2378
- discountPillLabel: G,
2379
- analytics: I,
2380
- onProceedGuidance: $,
2381
- onLocaleChange: X,
2382
- imageComponent: O = Ye,
2383
- resolvedUtmBannerImageUrl: Te,
2384
- children: V
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
2385
2387
  }) => {
2386
- const [oe, ue] = B("landing"), [ae, Se] = B(t ?? "en"), [me, Ne] = B({
2388
+ const [ue, ye] = N("landing"), [le, we] = N(t ?? "en"), [Te, pe] = N({
2387
2389
  ...xt,
2388
- ...h
2389
- }), be = M(!0);
2390
- K(() => {
2390
+ ...b
2391
+ }), se = I(!0);
2392
+ $(() => {
2391
2393
  if (t) return;
2392
- const pe = Tt();
2393
- pe && Se(pe);
2394
- }, []), K(() => {
2395
- Pt(ae);
2396
- }, [ae]), K(() => {
2397
- if (be.current) {
2398
- be.current = !1;
2394
+ const he = Tt();
2395
+ he && we(he);
2396
+ }, []), $(() => {
2397
+ Pt(le);
2398
+ }, [le]), $(() => {
2399
+ if (se.current) {
2400
+ se.current = !1;
2399
2401
  return;
2400
2402
  }
2401
- X?.(ae);
2402
- }, [ae, X]);
2403
- const Z = Ee(
2403
+ Z?.(le);
2404
+ }, [le, Z]);
2405
+ const oe = Ee(
2404
2406
  () => ({
2405
2407
  locale: t,
2406
2408
  showLanguageSelector: n,
2407
2409
  showSheet: i,
2408
- userId: c,
2409
- isGlobal: g,
2410
- variant: k,
2411
- initialFormValues: h,
2412
- autoOpenPlanSheet: S,
2413
- googleMapsApiKey: b,
2414
- atlasSearchLocalities: q,
2415
- googleMapsAutocompleteEnabled: D,
2416
- enableConsultationScheduling: N,
2417
- fetchConsultationSlots: p,
2418
- logoUrl: U,
2419
- reportImageUrl: v,
2420
- reportImagePriority: R,
2421
- backgroundImagePriority: y,
2422
- universityLogoUrls: _,
2423
- sampleReportHref: w,
2424
- onViewSampleReport: ne,
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,
2425
2427
  ctaHref: C,
2426
- onCtaClick: Q,
2427
- onBack: x,
2428
- readMoreReviewsHref: Y,
2429
- onProceed: j,
2430
- proceedHref: E,
2431
- originalPriceLabel: le,
2432
- discountedPriceLabel: re,
2433
- discountPillLabel: G,
2434
- analytics: I,
2435
- onProceedGuidance: $,
2436
- onLocaleChange: X,
2437
- imageComponent: O,
2438
- resolvedUtmBannerImageUrl: Te
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
2439
2443
  }),
2440
2444
  [
2441
2445
  t,
2442
2446
  n,
2443
2447
  i,
2444
- c,
2445
- g,
2448
+ d,
2449
+ _,
2450
+ y,
2451
+ b,
2452
+ x,
2446
2453
  k,
2447
- h,
2454
+ H,
2455
+ L,
2456
+ j,
2457
+ m,
2458
+ F,
2459
+ ee,
2460
+ g,
2461
+ M,
2462
+ f,
2463
+ A,
2464
+ z,
2465
+ C,
2466
+ X,
2467
+ P,
2468
+ U,
2448
2469
  S,
2449
- b,
2470
+ B,
2471
+ re,
2472
+ te,
2450
2473
  q,
2451
- D,
2452
- N,
2453
- p,
2454
- U,
2455
- v,
2456
- R,
2457
- y,
2458
- _,
2459
2474
  w,
2475
+ D,
2460
2476
  ne,
2461
- C,
2462
- Q,
2463
- x,
2464
2477
  Y,
2465
- j,
2466
- E,
2467
- le,
2468
- re,
2469
- G,
2470
- I,
2471
- $,
2472
- X,
2473
- O,
2474
- Te
2478
+ Z,
2479
+ Q,
2480
+ ae
2475
2481
  ]
2476
- ), fe = je(() => {
2477
- ue("form");
2478
- }, [Z.analytics]), he = je(() => {
2479
- ue("landing"), Z.onBack?.();
2480
- }, [Z.onBack]), W = Ee(
2482
+ ), G = Re(() => {
2483
+ ye("form");
2484
+ }, [oe.analytics]), me = Re(() => {
2485
+ ye("landing"), oe.onBack?.();
2486
+ }, [oe.onBack]), be = Ee(
2481
2487
  () => ({
2482
- view: oe,
2483
- locale: ae,
2484
- setLocale: Se,
2485
- config: Z,
2486
- formValues: me,
2487
- setFormValues: Ne,
2488
- goToForm: fe,
2489
- goToPage: he,
2490
- onProceed: Z.onProceed,
2491
- onProceedGuidance: Z.onProceedGuidance
2488
+ view: ue,
2489
+ locale: le,
2490
+ setLocale: we,
2491
+ config: oe,
2492
+ formValues: Te,
2493
+ setFormValues: pe,
2494
+ goToForm: G,
2495
+ goToPage: me,
2496
+ onProceed: oe.onProceed,
2497
+ onProceedGuidance: oe.onProceedGuidance
2492
2498
  }),
2493
- [oe, ae, Z, me, fe, he]
2499
+ [ue, le, oe, Te, G, me]
2494
2500
  );
2495
- return /* @__PURE__ */ e.jsx(ia.Provider, { value: W, children: V });
2501
+ return /* @__PURE__ */ e.jsx(ia.Provider, { value: be, children: de });
2496
2502
  };
2497
2503
  function Me() {
2498
2504
  return oa(ia);
@@ -2512,7 +2518,7 @@ const St = "_header_19172_1", wt = "_centered_19172_8", ya = {
2512
2518
  t,
2513
2519
  onBack: n,
2514
2520
  className: i = "",
2515
- align: c = "left"
2521
+ align: d = "left"
2516
2522
  }) => /* @__PURE__ */ e.jsx(
2517
2523
  Ja,
2518
2524
  {
@@ -2520,7 +2526,7 @@ const St = "_header_19172_1", wt = "_centered_19172_8", ya = {
2520
2526
  subtitle: t("formSubtitle"),
2521
2527
  onBack: n,
2522
2528
  backAriaLabel: t("back"),
2523
- className: `${ya.header} ${c === "center" ? ya.centered : ""} ${i}`
2529
+ className: `${ya.header} ${d === "center" ? ya.centered : ""} ${i}`
2524
2530
  }
2525
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 = {
2526
2532
  wrap: jt,
@@ -2577,138 +2583,138 @@ const St = "_header_19172_1", wt = "_centered_19172_8", ya = {
2577
2583
  checkboxText: Sr
2578
2584
  };
2579
2585
  let Je = null;
2580
- const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : Je || (Je = new Promise((i, c) => {
2581
- const g = document.querySelector(
2586
+ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : Je || (Je = new Promise((i, d) => {
2587
+ const _ = document.querySelector(
2582
2588
  'script[data-google-maps-places="true"]'
2583
2589
  );
2584
- if (g) {
2585
- g.addEventListener("load", () => i()), g.addEventListener(
2590
+ if (_) {
2591
+ _.addEventListener("load", () => i()), _.addEventListener(
2586
2592
  "error",
2587
- () => c(new Error("Failed to load Google Maps API"))
2593
+ () => d(new Error("Failed to load Google Maps API"))
2588
2594
  );
2589
2595
  return;
2590
2596
  }
2591
- const k = document.createElement("script"), h = new URL("https://maps.googleapis.com/maps/api/js");
2592
- 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 = () => {
2593
- const S = Date.now(), b = () => {
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 = () => {
2594
2600
  if (window.google?.maps?.places) {
2595
2601
  i();
2596
2602
  return;
2597
2603
  }
2598
- if (Date.now() - S > 2e3) {
2599
- c(
2604
+ if (Date.now() - x > 2e3) {
2605
+ d(
2600
2606
  new Error(
2601
2607
  "Google Maps loaded but Places library is unavailable. Check API key restrictions / enabled APIs."
2602
2608
  )
2603
2609
  );
2604
2610
  return;
2605
2611
  }
2606
- window.setTimeout(b, 50);
2612
+ window.setTimeout(k, 50);
2607
2613
  };
2608
- b();
2609
- }, k.onerror = () => c(new Error("Failed to load Google Maps API")), document.head.appendChild(k);
2614
+ k();
2615
+ }, y.onerror = () => d(new Error("Failed to load Google Maps API")), document.head.appendChild(y);
2610
2616
  }), Je), Cr = (t) => {
2611
- const { apiKey: n, language: i = "en", restrictCountry: c, deferLoad: g = !1 } = t, [k, h] = B(!1), [S, b] = B([]), [q, D] = B(!1), [N, p] = B(null), [U, v] = B(!g), R = M(null), y = M(null), _ = M(null), w = je(() => {
2612
- g && v(!0);
2613
- }, [g]);
2614
- K(() => {
2615
- if (!n || !U) {
2616
- h(!1), p(null);
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
2623
  return;
2618
2624
  }
2619
2625
  wr(n, i).then(() => {
2620
- R.current = new google.maps.places.AutocompleteService();
2621
- const x = document.createElement("div");
2622
- y.current = new google.maps.places.PlacesService(x), _.current = new google.maps.places.AutocompleteSessionToken(), h(!0), p(null);
2623
- }).catch((x) => {
2624
- h(!1), p(x?.message || "Failed to load location service");
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
2631
  });
2626
- }, [n, i, U]);
2627
- const ne = je(
2628
- async (x) => {
2629
- if (!x || x.length < 2 || !R.current) {
2630
- b([]);
2632
+ }, [n, i, F]);
2633
+ const z = Re(
2634
+ async (P) => {
2635
+ if (!P || P.length < 2 || !g.current) {
2636
+ k([]);
2631
2637
  return;
2632
2638
  }
2633
- D(!0);
2639
+ L(!0);
2634
2640
  try {
2635
- const Y = {
2636
- input: x,
2641
+ const U = {
2642
+ input: P,
2637
2643
  types: ["(cities)"],
2638
- sessionToken: _.current ?? void 0
2644
+ sessionToken: f.current ?? void 0
2639
2645
  };
2640
- c && (Y.componentRestrictions = { country: c });
2641
- const j = await new Promise((E, le) => {
2642
- R.current.getPlacePredictions(
2643
- Y,
2644
- (re, G) => {
2645
- G === google.maps.places.PlacesServiceStatus.OK && re ? E(re) : G === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? E([]) : le(new Error(`Places API error: ${G}`));
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
2652
  }
2647
2653
  );
2648
2654
  });
2649
- b(
2650
- j.map((E) => ({
2651
- place_id: E.place_id,
2652
- description: E.description,
2655
+ k(
2656
+ S.map((B) => ({
2657
+ place_id: B.place_id,
2658
+ description: B.description,
2653
2659
  structured_formatting: {
2654
- main_text: E.structured_formatting?.main_text || E.description,
2655
- secondary_text: E.structured_formatting?.secondary_text || ""
2660
+ main_text: B.structured_formatting?.main_text || B.description,
2661
+ secondary_text: B.structured_formatting?.secondary_text || ""
2656
2662
  }
2657
2663
  }))
2658
2664
  );
2659
2665
  } catch {
2660
- b([]);
2666
+ k([]);
2661
2667
  } finally {
2662
- D(!1);
2668
+ L(!1);
2663
2669
  }
2664
2670
  },
2665
- [c]
2666
- ), C = je(
2667
- async (x) => {
2668
- if (!y.current) return null;
2671
+ [d]
2672
+ ), C = Re(
2673
+ async (P) => {
2674
+ if (!M.current) return null;
2669
2675
  try {
2670
- const Y = await new Promise(
2671
- (I, $) => {
2672
- y.current.getDetails(
2676
+ const U = await new Promise(
2677
+ (w, D) => {
2678
+ M.current.getDetails(
2673
2679
  {
2674
- placeId: x,
2680
+ placeId: P,
2675
2681
  fields: ["geometry", "address_components", "formatted_address"],
2676
- sessionToken: _.current ?? void 0
2682
+ sessionToken: f.current ?? void 0
2677
2683
  },
2678
- (X, O) => {
2679
- O === google.maps.places.PlacesServiceStatus.OK && X ? I(X) : $(new Error(`Place details error: ${O}`));
2684
+ (ne, Y) => {
2685
+ Y === google.maps.places.PlacesServiceStatus.OK && ne ? w(ne) : D(new Error(`Place details error: ${Y}`));
2680
2686
  }
2681
2687
  );
2682
2688
  }
2683
2689
  );
2684
- _.current = new google.maps.places.AutocompleteSessionToken();
2685
- const j = Y.geometry?.location?.lat() || 0, E = Y.geometry?.location?.lng() || 0;
2686
- let le = "", re = "", G = "";
2687
- return Y.address_components?.forEach((I) => {
2688
- I.types.includes("locality") && (le = I.long_name), I.types.includes("administrative_area_level_1") && (re = I.long_name), I.types.includes("country") && (G = I.long_name);
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);
2689
2695
  }), {
2690
- display_name: Y.formatted_address || "",
2691
- lat: j,
2692
- lng: E,
2693
- city: le,
2694
- state: re,
2695
- country: G
2696
+ display_name: U.formatted_address || "",
2697
+ lat: S,
2698
+ lng: B,
2699
+ city: re,
2700
+ state: te,
2701
+ country: q
2696
2702
  };
2697
2703
  } catch {
2698
2704
  return null;
2699
2705
  }
2700
2706
  },
2701
2707
  []
2702
- ), Q = je(() => b([]), []);
2708
+ ), X = Re(() => k([]), []);
2703
2709
  return {
2704
- isLoaded: k,
2705
- predictions: S,
2706
- isSearching: q,
2707
- loadError: N,
2708
- searchPlaces: ne,
2710
+ isLoaded: y,
2711
+ predictions: x,
2712
+ isSearching: H,
2713
+ loadError: j,
2714
+ searchPlaces: z,
2709
2715
  getPlaceDetails: C,
2710
- clearPredictions: Q,
2711
- triggerLoad: w
2716
+ clearPredictions: X,
2717
+ triggerLoad: A
2712
2718
  // Call this to start loading Google Maps when deferred
2713
2719
  };
2714
2720
  }, Aa = (t) => typeof t == "number" && Number.isFinite(t), jr = (t) => {
@@ -2719,46 +2725,46 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
2719
2725
  restrictCountry: t?.restrictCountry
2720
2726
  };
2721
2727
  }, Rr = (t) => {
2722
- const { searchLocalities: n, restrictCountry: i } = t, [c, g] = B([]), [k, h] = B(!1), [S, b] = B(null), q = M(0);
2723
- K(() => {
2724
- b(null);
2728
+ const { searchLocalities: n, restrictCountry: i } = t, [d, _] = N([]), [y, b] = N(!1), [x, k] = N(null), H = I(0);
2729
+ $(() => {
2730
+ k(null);
2725
2731
  }, [n]);
2726
- const D = je(
2727
- async (p) => {
2728
- if (!p || p.length < 2 || !n) {
2729
- g([]);
2732
+ const L = Re(
2733
+ async (m) => {
2734
+ if (!m || m.length < 2 || !n) {
2735
+ _([]);
2730
2736
  return;
2731
2737
  }
2732
- const U = ++q.current;
2733
- h(!0), b(null);
2738
+ const F = ++H.current;
2739
+ b(!0), k(null);
2734
2740
  try {
2735
- const v = jr({ restrictCountry: i }), R = await n(p, v);
2736
- if (U !== q.current) return;
2737
- const y = (R || []).filter(
2738
- (_) => !!_?.id && !!_?.description && Aa(_?.lat) && Aa(_?.lng)
2739
- ).map((_) => ({
2740
- id: _.id,
2741
- description: _.description,
2742
- secondary_text: _.secondaryText,
2743
- lat: _.lat,
2744
- lng: _.lng
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
2745
2751
  }));
2746
- g(y);
2747
- } catch (v) {
2748
- if (U !== q.current) return;
2749
- g([]), b(v?.message || "Failed to fetch locations");
2752
+ _(M);
2753
+ } catch (ee) {
2754
+ if (F !== H.current) return;
2755
+ _([]), k(ee?.message || "Failed to fetch locations");
2750
2756
  } finally {
2751
- U === q.current && h(!1);
2757
+ F === H.current && b(!1);
2752
2758
  }
2753
2759
  },
2754
2760
  [i, n]
2755
- ), N = je(() => g([]), []);
2761
+ ), j = Re(() => _([]), []);
2756
2762
  return {
2757
- predictions: c,
2758
- isSearching: k,
2759
- loadError: S,
2760
- searchPlaces: D,
2761
- clearPredictions: N
2763
+ predictions: d,
2764
+ isSearching: y,
2765
+ loadError: x,
2766
+ searchPlaces: L,
2767
+ clearPredictions: j
2762
2768
  };
2763
2769
  }, Oe = {
2764
2770
  time: "https://srm-cdn.a4b.io/yoda/1770372014782.svg",
@@ -2839,134 +2845,134 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
2839
2845
  t,
2840
2846
  values: n,
2841
2847
  onChange: i,
2842
- phoneIsdCode: c,
2843
- onPhoneIsdCodeChange: g,
2844
- showV1ExtraFields: k = !1,
2845
- analytics: h,
2846
- googleMapsApiKey: S,
2847
- atlasSearchLocalities: b,
2848
- googleMapsAutocompleteEnabled: q,
2849
- className: D = ""
2848
+ phoneIsdCode: d,
2849
+ onPhoneIsdCodeChange: _,
2850
+ showV1ExtraFields: y = !1,
2851
+ analytics: b,
2852
+ googleMapsApiKey: x,
2853
+ atlasSearchLocalities: k,
2854
+ googleMapsAutocompleteEnabled: H,
2855
+ className: L = ""
2850
2856
  }) => {
2851
- const N = Me(), p = N?.config?.analytics ?? h, U = N?.config.isGlobal ?? !0, v = N?.config?.googleMapsApiKey, R = N?.config?.atlasSearchLocalities, y = N?.config?.googleMapsAutocompleteEnabled, [_, w] = B(!1), [ne, C] = B(""), Q = M(null), x = M(null), Y = M({}), j = (r) => i({ ...n, ...r }), E = (r, d) => {
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) => {
2852
2858
  if (r === "phone") {
2853
- const J = Lr(d, c, Y.current);
2854
- J.shouldTrack && p?.trackPhoneSectionFilled?.({ phone: J.fullPhone });
2859
+ const W = Lr(u, d, U.current);
2860
+ W.shouldTrack && m?.trackPhoneSectionFilled?.({ phone: W.fullPhone });
2855
2861
  return;
2856
2862
  }
2857
- d.trim() && !Y.current[r] && (Y.current[r] = !0, {
2858
- fullName: () => p?.trackNameSectionFilled?.(),
2859
- dateOfBirth: () => p?.trackDobFilled?.(),
2860
- birthTime: () => p?.trackTimeFilled?.(),
2861
- birthPlace: () => p?.trackPlaceOfBirthChosen?.()
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?.()
2862
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}`;
2863
2879
  }, le = (r) => {
2864
- const d = r.target.value;
2865
- d.trim() && p?.trackEmailSectionFilled?.({ email: d });
2866
- }, re = ne.trim().toLowerCase(), G = Ca.filter((r) => re ? r.country.toLowerCase().includes(re) || r.code.includes(re) : !0), I = M(null);
2867
- M(null);
2868
- const $ = M(null), X = M(0), O = M(null), [Te, V] = B(!1), [oe, ue] = B({ hour12: 12, minute: "00", meridiem: "AM" }), ae = (r) => String(r).padStart(2, "0"), Se = (r) => {
2869
- const d = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
2870
- if (!d) return r;
2871
- const J = Number(d[1]), we = d[2], $e = J >= 12 ? "PM" : "AM";
2872
- return `${J % 12 === 0 ? 12 : J % 12}:${we} ${$e}`;
2873
- }, me = (r) => {
2874
- const d = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
2875
- if (!d) return { hour12: 12, minute: "00", meridiem: "AM" };
2876
- const J = Number(d[1]), we = d[2], $e = J >= 12 ? "PM" : "AM";
2877
- return { hour12: J % 12 === 0 ? 12 : J % 12, minute: we, meridiem: $e };
2878
- }, Ne = (r) => {
2879
- const d = Math.min(12, Math.max(1, r.hour12)), J = /^([0-5]\d)$/.test(r.minute) ? r.minute : "00";
2880
- let we = d % 12;
2881
- return r.meridiem === "PM" && (we += 12), `${ae(we)}:${J}`;
2882
- }, be = M(null), [Z, fe] = B(!1), he = M(n.birthPlace ?? ""), [W, pe] = B(
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(
2883
2889
  null
2884
- ), de = S ?? v ?? Br?.VITE_GOOGLE_MAPS_API_KEY, _e = b ?? R, te = q ?? y ?? !0, se = (n.birthPlace ?? "").trim(), Re = U ? void 0 : "in", ke = Cr({
2885
- apiKey: te ? de : void 0,
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,
2886
2892
  language: "en",
2887
- restrictCountry: Re
2888
- }), ye = Rr({
2889
- searchLocalities: te ? void 0 : _e,
2890
- restrictCountry: Re
2891
- }), xe = te ? ke.predictions.map((r) => ({
2893
+ restrictCountry: xe
2894
+ }), ge = Rr({
2895
+ searchLocalities: V ? void 0 : he,
2896
+ restrictCountry: xe
2897
+ }), Ae = V ? Se.predictions.map((r) => ({
2892
2898
  id: r.place_id,
2893
2899
  description: r.description,
2894
2900
  secondaryText: r.structured_formatting?.secondary_text,
2895
2901
  lat: void 0,
2896
2902
  lng: void 0
2897
- })) : ye.predictions.map((r) => ({
2903
+ })) : ge.predictions.map((r) => ({
2898
2904
  id: r.id,
2899
2905
  description: r.description,
2900
2906
  secondaryText: r.secondary_text,
2901
2907
  lat: r.lat,
2902
2908
  lng: r.lng
2903
- })), Be = te ? ke.isSearching : ye.isSearching, De = te ? ke.loadError : ye.loadError, P = te ? !!de : !!_e, l = te ? ke.searchPlaces : ye.searchPlaces, f = te ? ke.clearPredictions : ye.clearPredictions, ee = M(() => {
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(() => {
2904
2910
  });
2905
- ee.current = () => {
2906
- (n.birthPlace ?? "") !== he.current && j({
2911
+ J.current = () => {
2912
+ (n.birthPlace ?? "") !== oe.current && S({
2907
2913
  birthPlace: "",
2908
2914
  birthPlaceLat: void 0,
2909
2915
  birthPlaceLng: void 0
2910
- }), fe(!1);
2911
- }, K(() => {
2912
- const r = (d) => {
2913
- be.current && (be.current.contains(d.target) || ee.current());
2916
+ }), se(!1);
2917
+ }, $(() => {
2918
+ const r = (u) => {
2919
+ Te.current && (Te.current.contains(u.target) || J.current());
2914
2920
  };
2915
2921
  return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
2916
- }, []), K(() => {
2917
- const r = (d) => {
2918
- Q.current && (Q.current.contains(d.target) || (w(!1), C("")));
2922
+ }, []), $(() => {
2923
+ const r = (u) => {
2924
+ X.current && (X.current.contains(u.target) || (A(!1), C("")));
2919
2925
  };
2920
2926
  return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
2921
- }, []), K(() => {
2922
- if (!_) return;
2927
+ }, []), $(() => {
2928
+ if (!f) return;
2923
2929
  const r = window.setTimeout(() => {
2924
- x.current?.focus();
2930
+ P.current?.focus();
2925
2931
  }, 0);
2926
2932
  return () => window.clearTimeout(r);
2927
- }, [_]), K(() => {
2928
- if (!Z) return;
2929
- if (se.length < 2) {
2930
- f();
2933
+ }, [f]), $(() => {
2934
+ if (!pe) return;
2935
+ if (Pe.length < 2) {
2936
+ c();
2931
2937
  return;
2932
2938
  }
2933
2939
  const r = window.setTimeout(async () => {
2934
- await l(se);
2940
+ await l(Pe);
2935
2941
  }, 250);
2936
2942
  return () => window.clearTimeout(r);
2937
- }, [f, Z, se, l]);
2938
- const ge = (r) => {
2939
- const d = r.current;
2940
- if (!(!d || d.disabled)) {
2941
- if (document.activeElement === d && $.current === d && Date.now() - X.current < 6e4) {
2942
- d.blur();
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
2949
  return;
2944
2950
  }
2945
- if (typeof d.showPicker == "function") {
2946
- d.showPicker(), $.current = d, X.current = Date.now();
2951
+ if (typeof u.showPicker == "function") {
2952
+ u.showPicker(), D.current = u, ne.current = Date.now();
2947
2953
  return;
2948
2954
  }
2949
- d.focus(), $.current = d, X.current = Date.now();
2955
+ u.focus(), D.current = u, ne.current = Date.now();
2950
2956
  }
2951
2957
  };
2952
- return K(() => {
2953
- const r = (d) => {
2954
- O.current && (O.current.contains(d.target) || V(!1));
2958
+ return $(() => {
2959
+ const r = (u) => {
2960
+ Y.current && (Y.current.contains(u.target) || Q(!1));
2955
2961
  };
2956
2962
  return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
2957
- }, []), K(() => {
2958
- const r = (J) => {
2959
- J.target?.closest?.("[data-info-tooltip]") == null && pe(null);
2960
- }, d = (J) => {
2961
- J.key === "Escape" && pe(null);
2963
+ }, []), $(() => {
2964
+ const r = (W) => {
2965
+ W.target?.closest?.("[data-info-tooltip]") == null && me(null);
2966
+ }, u = (W) => {
2967
+ W.key === "Escape" && me(null);
2962
2968
  };
2963
- return document.addEventListener("mousedown", r), document.addEventListener("keydown", d), () => {
2964
- document.removeEventListener("mousedown", r), document.removeEventListener("keydown", d);
2969
+ return document.addEventListener("mousedown", r), document.addEventListener("keydown", u), () => {
2970
+ document.removeEventListener("mousedown", r), document.removeEventListener("keydown", u);
2965
2971
  };
2966
2972
  }, []), /* @__PURE__ */ e.jsx(
2967
2973
  "section",
2968
2974
  {
2969
- className: `${o.wrap} ${D}`,
2975
+ className: `${o.wrap} ${L}`,
2970
2976
  "aria-label": t("formTitle"),
2971
2977
  children: /* @__PURE__ */ e.jsx("div", { className: o.card, children: /* @__PURE__ */ e.jsxs("div", { className: o.cardInner, children: [
2972
2978
  /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
@@ -2981,10 +2987,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
2981
2987
  className: o.input,
2982
2988
  type: "text",
2983
2989
  value: n.fullName,
2984
- onFocus: () => p?.trackNameSectionClicked?.(),
2990
+ onFocus: () => m?.trackNameSectionClicked?.(),
2985
2991
  onChange: (r) => {
2986
- const d = r.target.value;
2987
- j({ fullName: d }), E("fullName", d);
2992
+ const u = r.target.value;
2993
+ S({ fullName: u }), B("fullName", u);
2988
2994
  },
2989
2995
  placeholder: t("formFullNamePlaceholder"),
2990
2996
  autoComplete: "name"
@@ -2994,9 +3000,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
2994
3000
  /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
2995
3001
  /* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, htmlFor: "kundli-phone", children: [
2996
3002
  t("formPhone"),
2997
- !U && /* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
3003
+ !F && /* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
2998
3004
  ] }) }),
2999
- /* @__PURE__ */ e.jsx("div", { className: o.inputWrap, children: /* @__PURE__ */ e.jsxs("div", { className: o.isdWrap, ref: Q, children: [
3005
+ /* @__PURE__ */ e.jsx("div", { className: o.inputWrap, children: /* @__PURE__ */ e.jsxs("div", { className: o.isdWrap, ref: X, children: [
3000
3006
  /* @__PURE__ */ e.jsxs("div", { className: o.phoneInputGroup, children: [
3001
3007
  /* @__PURE__ */ e.jsx("div", { className: o.isdSelectWrap, children: /* @__PURE__ */ e.jsx(
3002
3008
  "button",
@@ -3004,11 +3010,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3004
3010
  type: "button",
3005
3011
  className: o.isdSelectTrigger,
3006
3012
  "aria-haspopup": "listbox",
3007
- "aria-expanded": _,
3013
+ "aria-expanded": f,
3008
3014
  onClick: () => {
3009
- w((r) => !r), C("");
3015
+ A((r) => !r), C("");
3010
3016
  },
3011
- children: c
3017
+ children: d
3012
3018
  }
3013
3019
  ) }),
3014
3020
  /* @__PURE__ */ e.jsx(
@@ -3018,22 +3024,22 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3018
3024
  className: `${o.input} ${o.phoneInput}`,
3019
3025
  type: "tel",
3020
3026
  value: n.phone ?? "",
3021
- onFocus: () => p?.trackPhoneSectionClicked?.(),
3027
+ onFocus: () => m?.trackPhoneSectionClicked?.(),
3022
3028
  onChange: (r) => {
3023
- const d = r.target.value;
3024
- j({ phone: va(d) }), E("phone", va(d));
3029
+ const u = r.target.value;
3030
+ S({ phone: va(u) }), B("phone", va(u));
3025
3031
  },
3026
3032
  placeholder: t("formPhonePlaceholder"),
3027
3033
  autoComplete: "tel",
3028
3034
  inputMode: "numeric",
3029
3035
  pattern: "[0-9]{10}",
3030
3036
  maxLength: 10,
3031
- required: !U,
3032
- "aria-required": !U
3037
+ required: !F,
3038
+ "aria-required": !F
3033
3039
  }
3034
3040
  )
3035
3041
  ] }),
3036
- _ && /* @__PURE__ */ e.jsxs(
3042
+ f && /* @__PURE__ */ e.jsxs(
3037
3043
  "div",
3038
3044
  {
3039
3045
  className: o.isdDropdown,
@@ -3043,24 +3049,24 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3043
3049
  /* @__PURE__ */ e.jsx("div", { className: o.isdSearchWrap, children: /* @__PURE__ */ e.jsx(
3044
3050
  "input",
3045
3051
  {
3046
- ref: x,
3052
+ ref: P,
3047
3053
  type: "text",
3048
- value: ne,
3054
+ value: z,
3049
3055
  onChange: (r) => C(r.target.value),
3050
3056
  placeholder: "Search country",
3051
3057
  className: o.isdSearchInput,
3052
3058
  "aria-label": "Search country"
3053
3059
  }
3054
3060
  ) }),
3055
- G.length > 0 ? G.map((r) => /* @__PURE__ */ e.jsxs(
3061
+ q.length > 0 ? q.map((r) => /* @__PURE__ */ e.jsxs(
3056
3062
  "button",
3057
3063
  {
3058
3064
  type: "button",
3059
3065
  role: "option",
3060
- "aria-selected": r.code === c,
3061
- className: `${o.isdOption} ${r.code === c ? o.isdOptionActive : ""}`,
3066
+ "aria-selected": r.code === d,
3067
+ className: `${o.isdOption} ${r.code === d ? o.isdOptionActive : ""}`,
3062
3068
  onClick: () => {
3063
- g(r.code), w(!1), C("");
3069
+ _(r.code), A(!1), C("");
3064
3070
  },
3065
3071
  children: [
3066
3072
  /* @__PURE__ */ e.jsx("span", { className: o.isdCountryName, children: r.country }),
@@ -3074,7 +3080,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3074
3080
  )
3075
3081
  ] }) })
3076
3082
  ] }),
3077
- k && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
3083
+ y && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
3078
3084
  /* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, children: [
3079
3085
  t("formGender"),
3080
3086
  /* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
@@ -3093,7 +3099,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3093
3099
  type: "button",
3094
3100
  className: `${o.choiceBtn} ${n.gender === "male" ? o.choiceBtnActive : ""}`,
3095
3101
  onClick: () => {
3096
- j({ gender: "male" }), p?.trackGenderSelected?.({
3102
+ S({ gender: "male" }), m?.trackGenderSelected?.({
3097
3103
  gender: "male"
3098
3104
  });
3099
3105
  },
@@ -3109,7 +3115,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3109
3115
  type: "button",
3110
3116
  className: `${o.choiceBtn} ${n.gender === "female" ? o.choiceBtnActive : ""}`,
3111
3117
  onClick: () => {
3112
- j({ gender: "female" }), p?.trackGenderSelected?.({
3118
+ S({ gender: "female" }), m?.trackGenderSelected?.({
3113
3119
  gender: "female"
3114
3120
  });
3115
3121
  },
@@ -3122,7 +3128,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3122
3128
  }
3123
3129
  )
3124
3130
  ] }),
3125
- U && /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
3131
+ F && /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
3126
3132
  /* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, htmlFor: "kundli-email", children: [
3127
3133
  t("formEmail"),
3128
3134
  /* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
@@ -3135,11 +3141,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3135
3141
  className: o.input,
3136
3142
  type: "email",
3137
3143
  value: n.email,
3138
- onFocus: () => p?.trackEmailSectionClicked?.(),
3144
+ onFocus: () => m?.trackEmailSectionClicked?.(),
3139
3145
  onChange: (r) => {
3140
- j({ email: r.target.value });
3146
+ S({ email: r.target.value });
3141
3147
  },
3142
- onBlur: le,
3148
+ onBlur: re,
3143
3149
  placeholder: t("formEmailPlaceholder"),
3144
3150
  autoComplete: "email",
3145
3151
  required: !0,
@@ -3160,9 +3166,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3160
3166
  type: "button",
3161
3167
  className: o.infoBtn,
3162
3168
  "aria-label": t("info"),
3163
- "aria-expanded": W === "dob",
3169
+ "aria-expanded": G === "dob",
3164
3170
  onClick: () => {
3165
- pe((r) => r === "dob" ? null : "dob"), p?.trackInfoIconClicked?.({ fieldName: "dob" });
3171
+ me((r) => r === "dob" ? null : "dob"), m?.trackInfoIconClicked?.({ fieldName: "dob" });
3166
3172
  },
3167
3173
  children: /* @__PURE__ */ e.jsx(
3168
3174
  "img",
@@ -3175,7 +3181,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3175
3181
  )
3176
3182
  }
3177
3183
  ),
3178
- W === "dob" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
3184
+ G === "dob" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
3179
3185
  t("formDobInfo"),
3180
3186
  /* @__PURE__ */ e.jsx("span", { className: o.tooltipArrow, "aria-hidden": !0 })
3181
3187
  ] })
@@ -3188,20 +3194,20 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3188
3194
  id: "kundli-dob",
3189
3195
  className: o.input,
3190
3196
  type: "date",
3191
- ref: I,
3197
+ ref: w,
3192
3198
  value: n.dateOfBirth,
3193
3199
  max: (() => {
3194
3200
  const r = /* @__PURE__ */ new Date();
3195
- return `${r.getFullYear()}-${ae(r.getMonth() + 1)}-${ae(r.getDate())}`;
3201
+ return `${r.getFullYear()}-${ue(r.getMonth() + 1)}-${ue(r.getDate())}`;
3196
3202
  })(),
3197
3203
  onChange: (r) => {
3198
- const d = r.target.value, J = /* @__PURE__ */ new Date(), we = `${J.getFullYear()}-${ae(J.getMonth() + 1)}-${ae(J.getDate())}`;
3199
- d && d > we || (j({ dateOfBirth: d }), E("dateOfBirth", d), $.current = null);
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);
3200
3206
  },
3201
- onFocus: () => p?.trackDobClicked?.(),
3202
- onClick: () => ge(I),
3207
+ onFocus: () => m?.trackDobClicked?.(),
3208
+ onClick: () => _e(w),
3203
3209
  onBlur: () => {
3204
- $.current === I.current && ($.current = null);
3210
+ D.current === w.current && (D.current = null);
3205
3211
  }
3206
3212
  }
3207
3213
  ),
@@ -3213,7 +3219,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3213
3219
  "aria-label": "Open date picker",
3214
3220
  onMouseDown: (r) => r.preventDefault(),
3215
3221
  onClick: (r) => {
3216
- r.preventDefault(), r.stopPropagation(), ge(I);
3222
+ r.preventDefault(), r.stopPropagation(), _e(w);
3217
3223
  },
3218
3224
  children: /* @__PURE__ */ e.jsx(
3219
3225
  "img",
@@ -3241,9 +3247,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3241
3247
  type: "button",
3242
3248
  className: o.infoBtn,
3243
3249
  "aria-label": t("info"),
3244
- "aria-expanded": W === "time",
3250
+ "aria-expanded": G === "time",
3245
3251
  onClick: () => {
3246
- p?.trackInfoIconClicked?.({ fieldName: "time" }), pe((r) => r === "time" ? null : "time");
3252
+ m?.trackInfoIconClicked?.({ fieldName: "time" }), me((r) => r === "time" ? null : "time");
3247
3253
  },
3248
3254
  children: /* @__PURE__ */ e.jsx(
3249
3255
  "img",
@@ -3256,30 +3262,30 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3256
3262
  )
3257
3263
  }
3258
3264
  ),
3259
- W === "time" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
3265
+ G === "time" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
3260
3266
  t("formBirthTimeInfo"),
3261
3267
  /* @__PURE__ */ e.jsx("span", { className: o.tooltipArrow, "aria-hidden": !0 })
3262
3268
  ] })
3263
3269
  ] })
3264
3270
  ] }),
3265
- /* @__PURE__ */ e.jsxs("div", { className: o.inputWrap, ref: O, children: [
3271
+ /* @__PURE__ */ e.jsxs("div", { className: o.inputWrap, ref: Y, children: [
3266
3272
  /* @__PURE__ */ e.jsx(
3267
3273
  "input",
3268
3274
  {
3269
3275
  id: "kundli-birth-time",
3270
3276
  className: o.input,
3271
3277
  type: "text",
3272
- value: n.birthTime ? Se(n.birthTime) : "",
3278
+ value: n.birthTime ? ye(n.birthTime) : "",
3273
3279
  readOnly: !0,
3274
- onFocus: () => p?.trackTimeClicked?.(),
3280
+ onFocus: () => m?.trackTimeClicked?.(),
3275
3281
  onChange: (r) => {
3276
- const d = r.target.value;
3277
- j({ birthTime: d }), E("birthTime", d);
3282
+ const u = r.target.value;
3283
+ S({ birthTime: u }), B("birthTime", u);
3278
3284
  },
3279
3285
  disabled: n.birthTimeUnknown,
3280
3286
  placeholder: "HH:MM AM",
3281
3287
  onClick: () => {
3282
- n.birthTimeUnknown || (ue(me(n.birthTime || "12:00")), V((r) => !r));
3288
+ n.birthTimeUnknown || (de(le(n.birthTime || "12:00")), Q((r) => !r));
3283
3289
  }
3284
3290
  }
3285
3291
  ),
@@ -3292,7 +3298,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3292
3298
  disabled: n.birthTimeUnknown,
3293
3299
  onMouseDown: (r) => r.preventDefault(),
3294
3300
  onClick: (r) => {
3295
- r.preventDefault(), r.stopPropagation(), !n.birthTimeUnknown && (ue(me(n.birthTime || "12:00")), V((d) => !d));
3301
+ r.preventDefault(), r.stopPropagation(), !n.birthTimeUnknown && (de(le(n.birthTime || "12:00")), Q((u) => !u));
3296
3302
  },
3297
3303
  children: /* @__PURE__ */ e.jsx(
3298
3304
  "img",
@@ -3305,7 +3311,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3305
3311
  )
3306
3312
  }
3307
3313
  ),
3308
- Te && !n.birthTimeUnknown && /* @__PURE__ */ e.jsxs(
3314
+ Z && !n.birthTimeUnknown && /* @__PURE__ */ e.jsxs(
3309
3315
  "div",
3310
3316
  {
3311
3317
  className: o.timePopover,
@@ -3317,13 +3323,13 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3317
3323
  "select",
3318
3324
  {
3319
3325
  className: o.timePickerSelect,
3320
- value: oe.hour12,
3321
- onChange: (r) => ue((d) => ({
3322
- ...d,
3326
+ value: ae.hour12,
3327
+ onChange: (r) => de((u) => ({
3328
+ ...u,
3323
3329
  hour12: Number(r.target.value)
3324
3330
  })),
3325
3331
  "aria-label": "Hour",
3326
- children: Array.from({ length: 12 }, (r, d) => d + 1).map((r) => /* @__PURE__ */ e.jsx("option", { value: r, children: r }, r))
3332
+ children: Array.from({ length: 12 }, (r, u) => u + 1).map((r) => /* @__PURE__ */ e.jsx("option", { value: r, children: r }, r))
3327
3333
  }
3328
3334
  ),
3329
3335
  /* @__PURE__ */ e.jsx("span", { className: o.timePickerColon, children: ":" }),
@@ -3331,10 +3337,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3331
3337
  "select",
3332
3338
  {
3333
3339
  className: o.timePickerSelect,
3334
- value: oe.minute,
3335
- onChange: (r) => ue((d) => ({ ...d, minute: r.target.value })),
3340
+ value: ae.minute,
3341
+ onChange: (r) => de((u) => ({ ...u, minute: r.target.value })),
3336
3342
  "aria-label": "Minute",
3337
- children: Array.from({ length: 60 }, (r, d) => ae(d)).map(
3343
+ children: Array.from({ length: 60 }, (r, u) => ue(u)).map(
3338
3344
  (r) => /* @__PURE__ */ e.jsx("option", { value: r, children: r }, r)
3339
3345
  )
3340
3346
  }
@@ -3344,8 +3350,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3344
3350
  "button",
3345
3351
  {
3346
3352
  type: "button",
3347
- className: `${o.meridiemBtn} ${oe.meridiem === "AM" ? o.meridiemActive : ""}`,
3348
- onClick: () => ue((r) => ({ ...r, meridiem: "AM" })),
3353
+ className: `${o.meridiemBtn} ${ae.meridiem === "AM" ? o.meridiemActive : ""}`,
3354
+ onClick: () => de((r) => ({ ...r, meridiem: "AM" })),
3349
3355
  children: "AM"
3350
3356
  }
3351
3357
  ),
@@ -3353,8 +3359,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3353
3359
  "button",
3354
3360
  {
3355
3361
  type: "button",
3356
- className: `${o.meridiemBtn} ${oe.meridiem === "PM" ? o.meridiemActive : ""}`,
3357
- onClick: () => ue((r) => ({ ...r, meridiem: "PM" })),
3362
+ className: `${o.meridiemBtn} ${ae.meridiem === "PM" ? o.meridiemActive : ""}`,
3363
+ onClick: () => de((r) => ({ ...r, meridiem: "PM" })),
3358
3364
  children: "PM"
3359
3365
  }
3360
3366
  )
@@ -3366,7 +3372,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3366
3372
  {
3367
3373
  type: "button",
3368
3374
  className: o.timePopoverBtn,
3369
- onClick: () => V(!1),
3375
+ onClick: () => Q(!1),
3370
3376
  children: "Cancel"
3371
3377
  }
3372
3378
  ),
@@ -3376,8 +3382,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3376
3382
  type: "button",
3377
3383
  className: `${o.timePopoverBtn} ${o.timePopoverOk}`,
3378
3384
  onClick: () => {
3379
- const r = Ne(oe);
3380
- j({ birthTime: r }), E("birthTime", r), V(!1);
3385
+ const r = we(ae);
3386
+ S({ birthTime: r }), B("birthTime", r), Q(!1);
3381
3387
  },
3382
3388
  "aria-label": "OK",
3383
3389
  children: /* @__PURE__ */ e.jsx(
@@ -3417,7 +3423,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3417
3423
  type: "checkbox",
3418
3424
  checked: n.birthTimeUnknown,
3419
3425
  onChange: (r) => {
3420
- p?.trackTimeCheckboxClicked?.(), j({
3426
+ m?.trackTimeCheckboxClicked?.(), S({
3421
3427
  birthTimeUnknown: r.target.checked,
3422
3428
  birthTime: r.target.checked ? "" : n.birthTime
3423
3429
  });
@@ -3451,11 +3457,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3451
3457
  type: "button",
3452
3458
  className: o.infoBtn,
3453
3459
  "aria-label": t("info"),
3454
- "aria-expanded": W === "place",
3460
+ "aria-expanded": G === "place",
3455
3461
  onClick: () => {
3456
- p?.trackInfoIconClicked?.({
3462
+ m?.trackInfoIconClicked?.({
3457
3463
  fieldName: "birthPlace"
3458
- }), pe((r) => r === "place" ? null : "place");
3464
+ }), me((r) => r === "place" ? null : "place");
3459
3465
  },
3460
3466
  children: /* @__PURE__ */ e.jsx(
3461
3467
  "img",
@@ -3468,13 +3474,13 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3468
3474
  )
3469
3475
  }
3470
3476
  ),
3471
- W === "place" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
3477
+ G === "place" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
3472
3478
  t("formBirthPlaceInfo"),
3473
3479
  /* @__PURE__ */ e.jsx("span", { className: o.tooltipArrow, "aria-hidden": !0 })
3474
3480
  ] })
3475
3481
  ] })
3476
3482
  ] }),
3477
- /* @__PURE__ */ e.jsxs("div", { className: o.inputWrap, ref: be, children: [
3483
+ /* @__PURE__ */ e.jsxs("div", { className: o.inputWrap, ref: Te, children: [
3478
3484
  /* @__PURE__ */ e.jsx(
3479
3485
  "input",
3480
3486
  {
@@ -3483,15 +3489,15 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3483
3489
  type: "text",
3484
3490
  value: n.birthPlace,
3485
3491
  onChange: (r) => {
3486
- const d = r.target.value;
3487
- j({
3488
- birthPlace: d,
3492
+ const u = r.target.value;
3493
+ S({
3494
+ birthPlace: u,
3489
3495
  birthPlaceLat: void 0,
3490
3496
  birthPlaceLng: void 0
3491
- }), E("birthPlace", d), fe(!0);
3497
+ }), B("birthPlace", u), se(!0);
3492
3498
  },
3493
3499
  onFocus: () => {
3494
- p?.trackPlaceOfBirthClicked?.(), fe(!0);
3500
+ m?.trackPlaceOfBirthClicked?.(), se(!0);
3495
3501
  },
3496
3502
  placeholder: t("formBirthPlacePlaceholder"),
3497
3503
  autoComplete: "address-level2"
@@ -3506,26 +3512,26 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3506
3512
  "aria-hidden": !0
3507
3513
  }
3508
3514
  ) }),
3509
- Z && xe.length > 0 && /* @__PURE__ */ e.jsx("div", { className: o.suggestions, role: "listbox", children: xe.slice(0, 8).map((r) => /* @__PURE__ */ e.jsxs(
3515
+ pe && Ae.length > 0 && /* @__PURE__ */ e.jsx("div", { className: o.suggestions, role: "listbox", children: Ae.slice(0, 8).map((r) => /* @__PURE__ */ e.jsxs(
3510
3516
  "button",
3511
3517
  {
3512
3518
  type: "button",
3513
3519
  className: o.suggestionItem,
3514
3520
  onClick: async () => {
3515
- const d = r.description;
3516
- if (he.current = d, j({
3517
- birthPlace: d,
3521
+ const u = r.description;
3522
+ if (oe.current = u, S({
3523
+ birthPlace: u,
3518
3524
  birthPlaceLat: r.lat,
3519
3525
  birthPlaceLng: r.lng
3520
- }), f(), fe(!1), te) {
3521
- const J = await ke.getPlaceDetails(
3526
+ }), c(), se(!1), V) {
3527
+ const W = await Se.getPlaceDetails(
3522
3528
  r.id
3523
3529
  );
3524
- J && (he.current = d, i({
3530
+ W && (oe.current = u, i({
3525
3531
  ...n,
3526
- birthPlace: d,
3527
- birthPlaceLat: J.lat,
3528
- birthPlaceLng: J.lng
3532
+ birthPlace: u,
3533
+ birthPlaceLat: W.lat,
3534
+ birthPlaceLng: W.lng
3529
3535
  }));
3530
3536
  }
3531
3537
  },
@@ -3536,11 +3542,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3536
3542
  },
3537
3543
  r.id
3538
3544
  )) }),
3539
- Z && P && Be && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: "Loading…" }),
3540
- Z && P && !Be && !!De && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: De })
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 })
3541
3547
  ] })
3542
3548
  ] }),
3543
- k && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
3549
+ y && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
3544
3550
  /* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, children: [
3545
3551
  t("formReportLanguage"),
3546
3552
  /* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
@@ -3559,7 +3565,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3559
3565
  type: "button",
3560
3566
  className: `${o.choiceBtn} ${n.language_code === "hi" ? o.choiceBtnActive : ""}`,
3561
3567
  onClick: () => {
3562
- j({ language_code: "hi" }), p?.trackLanguageOfReportSelected?.({
3568
+ S({ language_code: "hi" }), m?.trackLanguageOfReportSelected?.({
3563
3569
  language: "hi"
3564
3570
  });
3565
3571
  },
@@ -3575,7 +3581,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3575
3581
  type: "button",
3576
3582
  className: `${o.choiceBtn} ${n.language_code === "en" ? o.choiceBtnActive : ""}`,
3577
3583
  onClick: () => {
3578
- j({ language_code: "en" }), p?.trackLanguageOfReportSelected?.({
3584
+ S({ language_code: "en" }), m?.trackLanguageOfReportSelected?.({
3579
3585
  language: "en"
3580
3586
  });
3581
3587
  },
@@ -3591,7 +3597,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3591
3597
  type: "button",
3592
3598
  className: `${o.choiceBtn} ${n.language_code === "te" ? o.choiceBtnActive : ""}`,
3593
3599
  onClick: () => {
3594
- j({ language_code: "te" }), p?.trackLanguageOfReportSelected?.({
3600
+ S({ language_code: "te" }), m?.trackLanguageOfReportSelected?.({
3595
3601
  language: "te"
3596
3602
  });
3597
3603
  },
@@ -3607,7 +3613,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3607
3613
  type: "button",
3608
3614
  className: `${o.choiceBtn} ${n.language_code === "ta" ? o.choiceBtnActive : ""}`,
3609
3615
  onClick: () => {
3610
- j({ language_code: "ta" }), p?.trackLanguageOfReportSelected?.({
3616
+ S({ language_code: "ta" }), m?.trackLanguageOfReportSelected?.({
3611
3617
  language: "ta"
3612
3618
  });
3613
3619
  },
@@ -3623,7 +3629,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3623
3629
  type: "button",
3624
3630
  className: `${o.choiceBtn} ${n.language_code === "kn" ? o.choiceBtnActive : ""}`,
3625
3631
  onClick: () => {
3626
- j({ language_code: "kn" }), p?.trackLanguageOfReportSelected?.({
3632
+ S({ language_code: "kn" }), m?.trackLanguageOfReportSelected?.({
3627
3633
  language: "kn"
3628
3634
  });
3629
3635
  },
@@ -3639,7 +3645,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3639
3645
  type: "button",
3640
3646
  className: `${o.choiceBtn} ${n.language_code === "gu" ? o.choiceBtnActive : ""}`,
3641
3647
  onClick: () => {
3642
- j({ language_code: "gu" }), p?.trackLanguageOfReportSelected?.({
3648
+ S({ language_code: "gu" }), m?.trackLanguageOfReportSelected?.({
3643
3649
  language: "gu"
3644
3650
  });
3645
3651
  },
@@ -3655,7 +3661,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3655
3661
  type: "button",
3656
3662
  className: `${o.choiceBtn} ${n.language_code === "mr" ? o.choiceBtnActive : ""}`,
3657
3663
  onClick: () => {
3658
- j({ language_code: "mr" }), p?.trackLanguageOfReportSelected?.({
3664
+ S({ language_code: "mr" }), m?.trackLanguageOfReportSelected?.({
3659
3665
  language: "mr"
3660
3666
  });
3661
3667
  },
@@ -3738,49 +3744,50 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3738
3744
  t,
3739
3745
  values: n,
3740
3746
  phoneIsdCode: i,
3741
- requireV1ExtraFields: c = !1,
3742
- onValidationFailed: g,
3743
- onProceed: k,
3744
- onProceedGuidance: h,
3745
- href: S,
3746
- analytics: b,
3747
- className: q = "",
3748
- discountedPriceLabel: D,
3749
- discountPillLabel: N,
3750
- showPlanSheet: p,
3751
- confirmPlan: U,
3752
- planSheetOpen: v,
3753
- selectedPlan: R
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
3754
3761
  }) => {
3755
- const y = Me(), _ = y?.config.isGlobal ?? !0, w = y?.config?.variant, ne = Ee(
3756
- () => qr(n, _, c),
3757
- [n, _, c]
3758
- ), C = ne === null, Q = w === "v1" && y?.config?.showSheet, x = _ ? D ?? t("formDiscountedPrice") : Q ? "" : "₹499", Y = y?.config.imageComponent ?? Ye, j = (le) => {
3759
- if (le.preventDefault(), w === "v1" && !C && b?.trackKundliDetailedClicked?.(), !C) {
3760
- ne && g?.(ne);
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
3768
  return;
3762
3769
  }
3763
- const re = !!h && w === "v1" && R?.id === Ra, G = (n.phone ?? "").trim(), I = {
3770
+ const q = !!b && z === "v1" && M?.id === Ra, w = (n.phone ?? "").trim(), D = {
3764
3771
  ...n,
3765
- phone: G && `${i}-${G}`
3772
+ phone: w && `${i}-${w}`
3766
3773
  };
3767
- if (Q) {
3768
- v ? U?.() : p?.(I);
3774
+ if (P) {
3775
+ g ? ee?.() : F?.(D);
3769
3776
  return;
3770
3777
  }
3771
- b?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), re ? h(I) : k?.(I);
3772
- }, E = /* @__PURE__ */ e.jsx(
3778
+ k?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), q ? b(D) : y?.(D);
3779
+ }, re = /* @__PURE__ */ e.jsx(
3773
3780
  za,
3774
3781
  {
3775
- href: S,
3776
- disabled: w === "v1" ? !1 : !C,
3777
- onClick: j,
3782
+ href: x,
3783
+ disabled: z === "v1" ? !1 : !X,
3784
+ onClick: B,
3778
3785
  "aria-label": t("formPriceAria"),
3779
- className: w === "v1" && C ? Ke.ctaFilled : w === "v1" ? Ke.ctaButton : void 0,
3780
- children: w === "v1" ? C ? /* @__PURE__ */ e.jsxs("span", { className: Ke.ctaFilledContent, children: [
3781
- Q ? t("selectPackage") : v && R ? `${t("proceedWithPlan")}${R.price}` : `${t("formProceed")} ${x}`,
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}`,
3782
3789
  /* @__PURE__ */ e.jsx(
3783
- Y,
3790
+ S,
3784
3791
  {
3785
3792
  src: $r,
3786
3793
  alt: "",
@@ -3793,34 +3800,34 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3793
3800
  ] }) : t("formCtaDefault") : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
3794
3801
  t("formProceed"),
3795
3802
  " ",
3796
- x
3803
+ U
3797
3804
  ] })
3798
3805
  }
3799
3806
  );
3800
3807
  return /* @__PURE__ */ e.jsx(
3801
3808
  Qa,
3802
3809
  {
3803
- className: `${Ke.footerContainer} ${q}`,
3810
+ className: `${Ke.footerContainer} ${H}`,
3804
3811
  marquee: /* @__PURE__ */ e.jsx(Xa, { children: /* @__PURE__ */ e.jsx(Hr, { t }) }),
3805
- children: E
3812
+ children: re
3806
3813
  }
3807
3814
  );
3808
3815
  }, Vr = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", Jr = ({
3809
3816
  t,
3810
3817
  languageSelector: n,
3811
3818
  logoUrl: i = Vr,
3812
- className: c = ""
3819
+ className: d = ""
3813
3820
  }) => {
3814
- const g = Me(), k = g?.config.isGlobal ?? !0, h = n != null && !k;
3821
+ const _ = Me(), y = _?.config.isGlobal ?? !0, b = n != null && !y;
3815
3822
  return /* @__PURE__ */ e.jsx(
3816
3823
  Za,
3817
3824
  {
3818
3825
  t,
3819
3826
  logoUrl: i,
3820
- imageComponent: g?.config.imageComponent,
3827
+ imageComponent: _?.config.imageComponent,
3821
3828
  languageSelector: n,
3822
- showLanguageSelector: h,
3823
- className: c
3829
+ showLanguageSelector: b,
3830
+ className: d
3824
3831
  }
3825
3832
  );
3826
3833
  }, Na = () => /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
@@ -3932,7 +3939,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3932
3939
  }
3933
3940
  ),
3934
3941
  /* @__PURE__ */ e.jsx("h2", { className: T.title, children: t })
3935
- ] }), 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: [
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: [
3936
3943
  /* @__PURE__ */ e.jsx("span", { className: T.featureIcon, children: i.included ? /* @__PURE__ */ e.jsx(Na, {}) : /* @__PURE__ */ e.jsx(zr, {}) }),
3937
3944
  /* @__PURE__ */ e.jsx(
3938
3945
  "span",
@@ -3941,7 +3948,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3941
3948
  children: n?.(i.text) ?? i.text
3942
3949
  }
3943
3950
  )
3944
- ] }, c)) }), zn = ({ astrologer: t, t: n }) => /* @__PURE__ */ e.jsxs("div", { className: T.astrologerCard, children: [
3951
+ ] }, d)) }), zn = ({ astrologer: t, t: n }) => /* @__PURE__ */ e.jsxs("div", { className: T.astrologerCard, children: [
3945
3952
  /* @__PURE__ */ e.jsxs("div", { className: T.astrologerTop, children: [
3946
3953
  /* @__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) }) }),
3947
3954
  /* @__PURE__ */ e.jsxs("div", { className: T.astrologerBasicInfo, children: [
@@ -3950,17 +3957,17 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3950
3957
  ] })
3951
3958
  ] }),
3952
3959
  /* @__PURE__ */ e.jsx("div", { className: T.astrologerDivider }),
3953
- /* @__PURE__ */ e.jsx("div", { className: T.astrologerCertList, children: t.certifications.map((i, c) => /* @__PURE__ */ e.jsxs("p", { className: T.astrologerCertItem, children: [
3960
+ /* @__PURE__ */ e.jsx("div", { className: T.astrologerCertList, children: t.certifications.map((i, d) => /* @__PURE__ */ e.jsxs("p", { className: T.astrologerCertItem, children: [
3954
3961
  /* @__PURE__ */ e.jsx("span", { className: T.bullet, children: "•" }),
3955
3962
  " ",
3956
3963
  n?.(i) ?? i
3957
- ] }, c)) })
3964
+ ] }, d)) })
3958
3965
  ] }), Qn = ({ label: t }) => /* @__PURE__ */ e.jsxs("div", { className: T.popularBadge, "aria-label": t, children: [
3959
3966
  /* @__PURE__ */ e.jsx(Xr, {}),
3960
3967
  /* @__PURE__ */ e.jsx("span", { children: t })
3961
- ] }), Xn = ({ plan: t, isSelected: n, onSelect: i, t: c }) => {
3962
- const g = () => i(t.id), k = (h) => {
3963
- (h.key === " " || h.key === "Enter") && (h.preventDefault(), i(t.id));
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));
3964
3971
  };
3965
3972
  return /* @__PURE__ */ e.jsxs(
3966
3973
  "div",
@@ -3970,17 +3977,17 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3970
3977
  n ? T.planCardSelected : "",
3971
3978
  n && T.planCardPopular
3972
3979
  ].filter(Boolean).join(" "),
3973
- onClick: g,
3980
+ onClick: _,
3974
3981
  role: "radio",
3975
3982
  "aria-checked": n,
3976
3983
  tabIndex: 0,
3977
- onKeyDown: k,
3984
+ onKeyDown: y,
3978
3985
  "data-plan-id": t.id,
3979
3986
  children: [
3980
- t.badge && /* @__PURE__ */ e.jsx(Qn, { label: c?.(t.badge) ?? t.badge }),
3987
+ t.badge && /* @__PURE__ */ e.jsx(Qn, { label: d?.(t.badge) ?? t.badge }),
3981
3988
  /* @__PURE__ */ e.jsxs("div", { className: T.planCardInner, children: [
3982
3989
  /* @__PURE__ */ e.jsxs("div", { className: `${T.planTitleRow} ${t.badge ? T.withBadgeSpacing : ""}`, children: [
3983
- /* @__PURE__ */ e.jsx("span", { className: T.planTitle, children: c?.(t.title) ?? t.title }),
3990
+ /* @__PURE__ */ e.jsx("span", { className: T.planTitle, children: d?.(t.title) ?? t.title }),
3984
3991
  /* @__PURE__ */ e.jsx(
3985
3992
  "span",
3986
3993
  {
@@ -3993,13 +4000,13 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
3993
4000
  /* @__PURE__ */ e.jsxs("div", { className: T.priceRow, children: [
3994
4001
  /* @__PURE__ */ e.jsx("span", { className: T.price, children: t.price }),
3995
4002
  t.originalPrice && /* @__PURE__ */ e.jsx("span", { className: T.originalPrice, children: t.originalPrice }),
3996
- t.savingsLabel && /* @__PURE__ */ e.jsx("span", { className: T.savingsBadge, children: c?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
4003
+ t.savingsLabel && /* @__PURE__ */ e.jsx("span", { className: T.savingsBadge, children: d?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
3997
4004
  ] }),
3998
- /* @__PURE__ */ e.jsx(Jn, { features: t.features, t: c }),
4005
+ /* @__PURE__ */ e.jsx(Jn, { features: t.features, t: d }),
3999
4006
  t.astrologers && /* @__PURE__ */ e.jsx("div", { className: T.planDivider }),
4000
4007
  t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4001
- /* @__PURE__ */ e.jsx("p", { className: T.astrologerHeading, children: c?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
4002
- /* @__PURE__ */ e.jsx("div", { className: T.astrologerList, role: "list", children: t.astrologers.map((h, S) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(zn, { astrologer: h, t: c }) }, S)) })
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)) })
4003
4010
  ] })
4004
4011
  ] })
4005
4012
  ]
@@ -4008,16 +4015,16 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4008
4015
  }, aa = (t) => {
4009
4016
  const n = t.match(/T(\d{2}):(\d{2})/);
4010
4017
  if (!n) return t;
4011
- const i = Number(n[1]), c = n[2], g = i >= 12 ? "PM" : "AM";
4012
- return `${i % 12 || 12}:${c} ${g}`;
4018
+ const i = Number(n[1]), d = n[2], _ = i >= 12 ? "PM" : "AM";
4019
+ return `${i % 12 || 12}:${d} ${_}`;
4013
4020
  }, Zn = (t, n = /* @__PURE__ */ new Date()) => {
4014
- const i = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], c = /* @__PURE__ */ new Date(`${t}T00:00:00`);
4015
- if (Number.isNaN(c.getTime()))
4021
+ const i = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], d = /* @__PURE__ */ new Date(`${t}T00:00:00`);
4022
+ if (Number.isNaN(d.getTime()))
4016
4023
  return { id: t, dayLabel: t, dayNum: "" };
4017
- const g = (S) => new Date(S.getFullYear(), S.getMonth(), S.getDate()).getTime(), k = Math.round(
4018
- (g(c) - g(n)) / (1e3 * 60 * 60 * 24)
4019
- ), h = k === 0 ? "Today" : k === 1 ? "Tomorrow" : i[c.getDay()];
4020
- return { id: t, dayLabel: h, dayNum: String(c.getDate()) };
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()) };
4021
4028
  }, eo = [
4022
4029
  "morning",
4023
4030
  "afternoon",
@@ -4052,11 +4059,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4052
4059
  mr: ["mr", "en"],
4053
4060
  ta: ["ta", "en"]
4054
4061
  }, La = (t) => !!t?.days?.some((n) => n.has_availability && n.slots.length > 0), no = (t, n, i) => {
4055
- const c = i ? ro : to, [g, k] = c[n || "en"] ?? c.en, h = qe.map((b) => b.code).filter(
4056
- (b) => b !== g && b !== k
4062
+ const d = i ? ro : to, [_, y] = d[n || "en"] ?? d.en, b = qe.map((k) => k.code).filter(
4063
+ (k) => k !== _ && k !== y
4057
4064
  );
4058
- return [g, k, ...h].find((b) => La(t[b])) ?? g;
4059
- }, 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", m = {
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 = {
4060
4067
  overlay: oo,
4061
4068
  sheet: io,
4062
4069
  content: lo,
@@ -4126,215 +4133,215 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4126
4133
  onProceed: t,
4127
4134
  astrologers: n,
4128
4135
  t: i,
4129
- analytics: c,
4130
- reportLanguage: g,
4131
- isPostPayment: k = !1,
4132
- showGuidanceTopic: h,
4133
- hideFooter: S = !1,
4134
- onStateChange: b
4136
+ analytics: d,
4137
+ reportLanguage: _,
4138
+ isPostPayment: y = !1,
4139
+ showGuidanceTopic: b,
4140
+ hideFooter: x = !1,
4141
+ onStateChange: k
4135
4142
  }) => {
4136
- const q = h ?? !k, D = Me(), N = D?.config.imageComponent ?? Ye, p = D?.config.fetchConsultationSlots, U = D?.config.isGlobal ?? !0, v = g ?? D?.formValues?.language_code, R = k ? "post_payment" : "pre_payment", [y, _] = B(!1), [w, ne] = B(!1), [C, Q] = B({}), [x, Y] = B("en"), [j, E] = B(!1), le = M(null), re = Ee(
4137
- () => C[x]?.days ?? [],
4138
- [C, x]
4139
- ), [G, I] = B(""), [$, X] = B(""), [O, Te] = B("morning"), [V, oe] = B(null), ue = M(!1), ae = M(null), Se = M({}), [me, Ne] = B(null), be = M(null), Z = M(
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(
4140
4147
  {}
4141
- ), [fe, he] = B(null), W = Ee(
4142
- () => re.filter((l) => l.has_availability && l.slots.length > 0),
4143
- [re]
4144
- ), pe = je(() => {
4145
- p && (_(!0), ne(!1), p().then((l) => {
4146
- const f = l ?? {}, ee = no(
4147
- f,
4148
- v,
4149
- U
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
4150
4157
  );
4151
- Q(f), Y(ee), c?.trackConsultationLanguageDefaultSelected?.({
4152
- language: ta(ee),
4153
- status: R
4158
+ X(c), U(J), d?.trackConsultationLanguageDefaultSelected?.({
4159
+ language: ta(J),
4160
+ status: g
4154
4161
  });
4155
- const ge = (f[ee]?.days ?? []).filter(
4162
+ const _e = (c[J]?.days ?? []).filter(
4156
4163
  (r) => r.has_availability && r.slots.length > 0
4157
4164
  ).length;
4158
- c?.trackAstrologerAvailabilityServed?.({
4165
+ d?.trackAstrologerAvailabilityServed?.({
4159
4166
  astrologers_shown: n.map((r) => r.name),
4160
- dates_available_count: ge,
4161
- status: R
4167
+ dates_available_count: _e,
4168
+ status: g
4162
4169
  });
4163
4170
  }).catch(() => {
4164
- ne(!0);
4165
- }).finally(() => _(!1)));
4166
- }, [p, U, v, c, n, R]);
4167
- K(() => {
4168
- I(""), E(!1), pe();
4169
- }, []), K(() => {
4170
- if (!j) return;
4171
- const l = (f) => {
4172
- le.current && !le.current.contains(f.target) && E(!1);
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);
4173
4180
  };
4174
4181
  return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
4175
- }, [j]), K(() => {
4176
- if (!W.length) {
4177
- X(""), oe(null);
4182
+ }, [S]), $(() => {
4183
+ if (!G.length) {
4184
+ ne(""), ae(null);
4178
4185
  return;
4179
4186
  }
4180
- const l = W[0];
4181
- W.some((f) => f.date === $) || c?.trackConsultationDateDefaultSelected?.({
4187
+ const l = G[0];
4188
+ G.some((c) => c.date === D) || d?.trackConsultationDateDefaultSelected?.({
4182
4189
  date: l.date,
4183
- status: R
4184
- }), X(
4185
- (f) => W.some((ee) => ee.date === f) ? f : l.date
4190
+ status: g
4191
+ }), ne(
4192
+ (c) => G.some((J) => J.date === c) ? c : l.date
4186
4193
  );
4187
- }, [W]);
4188
- const de = Ee(
4189
- () => W.find((l) => l.date === $) ?? null,
4190
- [W, $]
4191
- ), _e = Ee(() => {
4192
- if (!de) return [];
4193
- const l = new Set(de.slots.map((f) => f.period));
4194
- return eo.filter((f) => l.has(f));
4195
- }, [de]);
4196
- K(() => {
4197
- if (!_e.length) {
4198
- Te("morning"), oe(null);
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);
4199
4206
  return;
4200
4207
  }
4201
- Te(
4202
- (l) => _e.includes(l) ? l : _e[0]
4208
+ Z(
4209
+ (l) => he.includes(l) ? l : he[0]
4203
4210
  );
4204
- }, [_e]);
4205
- const te = Ee(() => de ? de.slots.filter((l) => l.period === O) : [], [de, O]);
4206
- K(() => {
4211
+ }, [he]);
4212
+ const V = Ee(() => be ? be.slots.filter((l) => l.period === Y) : [], [be, Y]);
4213
+ $(() => {
4207
4214
  const l = () => {
4208
- const f = ae.current, ee = Se.current[$];
4209
- if (!f || !ee) {
4210
- Ne(null);
4215
+ const c = ue.current, J = ye.current[D];
4216
+ if (!c || !J) {
4217
+ we(null);
4211
4218
  return;
4212
4219
  }
4213
- const ge = f.getBoundingClientRect(), r = ee.getBoundingClientRect();
4214
- Ne({
4215
- left: r.left - ge.left,
4216
- top: r.top - ge.top,
4220
+ const _e = c.getBoundingClientRect(), r = J.getBoundingClientRect();
4221
+ we({
4222
+ left: r.left - _e.left,
4223
+ top: r.top - _e.top,
4217
4224
  width: r.width,
4218
4225
  height: r.height
4219
4226
  });
4220
4227
  };
4221
4228
  return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
4222
- }, [$, W]), K(() => {
4229
+ }, [D, G]), $(() => {
4223
4230
  const l = () => {
4224
- const f = be.current, ee = Z.current[O];
4225
- if (!f || !ee) {
4226
- he(null);
4231
+ const c = Te.current, J = pe.current[Y];
4232
+ if (!c || !J) {
4233
+ oe(null);
4227
4234
  return;
4228
4235
  }
4229
- const ge = f.getBoundingClientRect(), r = ee.getBoundingClientRect();
4230
- he({
4231
- left: r.left - ge.left,
4236
+ const _e = c.getBoundingClientRect(), r = J.getBoundingClientRect();
4237
+ oe({
4238
+ left: r.left - _e.left,
4232
4239
  width: r.width
4233
4240
  });
4234
4241
  };
4235
4242
  return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
4236
- }, [O, _e]), K(() => {
4237
- if (!te.length) {
4238
- oe(null);
4243
+ }, [Y, he]), $(() => {
4244
+ if (!V.length) {
4245
+ ae(null);
4239
4246
  return;
4240
4247
  }
4241
- if (!(V && te.some((f) => f.start === V.start))) {
4242
- const f = te[0];
4243
- c?.trackConsultationTimeDefaultSelected?.({
4244
- time: aa(f.start),
4245
- gmt_offset: si(f.start),
4246
- status: R
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
4254
  });
4248
4255
  }
4249
- oe(
4250
- (f) => f && te.some((ee) => ee.start === f.start) ? f : te[0]
4256
+ ae(
4257
+ (c) => c && V.some((J) => J.start === c.start) ? c : V[0]
4251
4258
  );
4252
- }, [te]), K(() => {
4253
- W.length && !ue.current && (c?.trackSlotScreenViewed?.({
4259
+ }, [V]), $(() => {
4260
+ G.length && !de.current && (d?.trackSlotScreenViewed?.({
4254
4261
  astrologers_shown: n.map((l) => l.name),
4255
- dates_available_count: W.length,
4256
- status: R
4257
- }), ue.current = !0);
4258
- }, [W, n, c, R]);
4259
- const se = !!V && (!q || !!G), Re = (l) => {
4260
- X(l), c?.trackSlotDateSelected?.({
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
4268
  date: l,
4262
- day_part_default: O,
4263
- status: R
4269
+ day_part_default: Y,
4270
+ status: g
4264
4271
  });
4265
- }, Pe = (l) => {
4266
- Te(l), c?.trackDayPartSelected?.({
4272
+ }, fe = (l) => {
4273
+ Z(l), d?.trackDayPartSelected?.({
4267
4274
  day_part: l,
4268
- slots_available_count: de?.slots.filter((f) => f.period === l).length ?? 0,
4269
- status: R
4275
+ slots_available_count: be?.slots.filter((c) => c.period === l).length ?? 0,
4276
+ status: g
4270
4277
  });
4271
- }, ke = (l) => {
4272
- oe(l), c?.trackSlotSelected?.({
4273
- date: $,
4278
+ }, Se = (l) => {
4279
+ ae(l), d?.trackSlotSelected?.({
4280
+ date: D,
4274
4281
  time: aa(l.start),
4275
4282
  day_part: l.period,
4276
- topic: G || null,
4277
- status: R
4283
+ topic: q || null,
4284
+ status: g
4278
4285
  });
4279
- }, ye = () => {
4280
- V && (c?.trackSlotReservationRequested?.({
4281
- slot_datetime: `${V.start} - ${V.end}`,
4282
- status: R
4286
+ }, ge = () => {
4287
+ Q && (d?.trackSlotReservationRequested?.({
4288
+ slot_datetime: `${Q.start} - ${Q.end}`,
4289
+ status: g
4283
4290
  }), t({
4284
- start: V.start,
4285
- end: V.end,
4286
- period: V.period,
4287
- topic: G,
4288
- language: x
4291
+ start: Q.start,
4292
+ end: Q.end,
4293
+ period: Q.period,
4294
+ topic: q,
4295
+ language: P
4289
4296
  }));
4290
- }, xe = M(ye);
4291
- xe.current = ye, K(() => {
4292
- b?.({ canProceed: se, proceed: () => xe.current() });
4293
- }, [se, b]);
4297
+ }, Ae = I(ge);
4298
+ Ae.current = ge, $(() => {
4299
+ k?.({ canProceed: Pe, proceed: () => Ae.current() });
4300
+ }, [Pe, k]);
4294
4301
  const Be = (l) => {
4295
- I(l), c?.trackGuidanceTopicSelected?.({ topic: l, status: R });
4302
+ w(l), d?.trackGuidanceTopicSelected?.({ topic: l, status: g });
4296
4303
  }, De = (l) => {
4297
- c?.trackConsultationLanguageChanged?.({
4298
- previous_language: ta(x),
4304
+ d?.trackConsultationLanguageChanged?.({
4305
+ previous_language: ta(P),
4299
4306
  new_language: ta(l),
4300
4307
  slots_available: La(C[l]) ? "yes" : "no",
4301
- status: R
4302
- }), Y(l), E(!1);
4303
- }, P = qe.find((l) => l.code === x) ?? qe[0];
4308
+ status: g
4309
+ }), U(l), B(!1);
4310
+ }, Ne = qe.find((l) => l.code === P) ?? qe[0];
4304
4311
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4305
- /* @__PURE__ */ e.jsxs("div", { className: m.content, children: [
4306
- /* @__PURE__ */ e.jsxs("div", { className: m.languageRow, children: [
4307
- /* @__PURE__ */ e.jsx("span", { className: m.languageLabel, children: i?.("planConsultationLanguageLabel") ?? "Your consultation language" }),
4308
- /* @__PURE__ */ e.jsxs("div", { className: m.languageDropdown, ref: le, 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: [
4309
4316
  /* @__PURE__ */ e.jsxs(
4310
4317
  "button",
4311
4318
  {
4312
4319
  type: "button",
4313
- className: m.languageDropdownBtn,
4314
- onClick: () => E((l) => !l),
4320
+ className: h.languageDropdownBtn,
4321
+ onClick: () => B((l) => !l),
4315
4322
  "aria-haspopup": "listbox",
4316
- "aria-expanded": j,
4323
+ "aria-expanded": S,
4317
4324
  children: [
4318
- i?.(P.labelKey) ?? P.label,
4325
+ i?.(Ne.labelKey) ?? Ne.label,
4319
4326
  /* @__PURE__ */ e.jsx(Qr, {})
4320
4327
  ]
4321
4328
  }
4322
4329
  ),
4323
- j && /* @__PURE__ */ e.jsx("ul", { className: m.languageMenu, role: "listbox", children: qe.map((l) => {
4324
- const f = l.code === x;
4330
+ S && /* @__PURE__ */ e.jsx("ul", { className: h.languageMenu, role: "listbox", children: qe.map((l) => {
4331
+ const c = l.code === P;
4325
4332
  return /* @__PURE__ */ e.jsxs(
4326
4333
  "li",
4327
4334
  {
4328
4335
  role: "option",
4329
- "aria-selected": f,
4336
+ "aria-selected": c,
4330
4337
  className: [
4331
- m.languageMenuItem,
4332
- f ? m.languageMenuItemSelected : ""
4338
+ h.languageMenuItem,
4339
+ c ? h.languageMenuItemSelected : ""
4333
4340
  ].filter(Boolean).join(" "),
4334
4341
  onClick: () => De(l.code),
4335
4342
  children: [
4336
4343
  i?.(l.labelKey) ?? l.label,
4337
- f && /* @__PURE__ */ e.jsx(Na, {})
4344
+ c && /* @__PURE__ */ e.jsx(Na, {})
4338
4345
  ]
4339
4346
  },
4340
4347
  l.code
@@ -4342,119 +4349,119 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4342
4349
  }) })
4343
4350
  ] })
4344
4351
  ] }),
4345
- /* @__PURE__ */ e.jsx("hr", { className: m.languageDivider }),
4346
- /* @__PURE__ */ e.jsx("p", { className: m.sectionHeading, children: i?.("planSelectSlotHeading") ?? "Book your preferred consultation slot" }),
4347
- /* @__PURE__ */ e.jsxs("p", { className: m.reportReadyBanner, children: [
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: [
4348
4355
  i?.("planReportReadyPrefix") ?? "Your Report will be ready in",
4349
4356
  " ",
4350
- /* @__PURE__ */ e.jsx("span", { className: m.reportReadyDuration, children: i?.("planReportReadyDuration") ?? "24-48 hours" }),
4357
+ /* @__PURE__ */ e.jsx("span", { className: h.reportReadyDuration, children: i?.("planReportReadyDuration") ?? "24-48 hours" }),
4351
4358
  " ",
4352
4359
  i?.("planReportReadySuffix") ?? "from today"
4353
4360
  ] }),
4354
- y && /* @__PURE__ */ e.jsxs("div", { className: m.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
4355
- /* @__PURE__ */ e.jsx("div", { className: m.skeletonDateTabs, children: Array.from({ length: 5 }).map((l, f) => /* @__PURE__ */ e.jsx(
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(
4356
4363
  "div",
4357
4364
  {
4358
- className: [m.skeletonDateTab, m.skeletonShimmer].join(" ")
4365
+ className: [h.skeletonDateTab, h.skeletonShimmer].join(" ")
4359
4366
  },
4360
- f
4367
+ c
4361
4368
  )) }),
4362
- /* @__PURE__ */ e.jsx("div", { className: m.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((l, f) => /* @__PURE__ */ e.jsx(
4369
+ /* @__PURE__ */ e.jsx("div", { className: h.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((l, c) => /* @__PURE__ */ e.jsx(
4363
4370
  "div",
4364
4371
  {
4365
- className: [m.skeletonPeriodTab, m.skeletonShimmer].join(" ")
4372
+ className: [h.skeletonPeriodTab, h.skeletonShimmer].join(" ")
4366
4373
  },
4367
- f
4374
+ c
4368
4375
  )) }),
4369
- /* @__PURE__ */ e.jsx("div", { className: m.skeletonTimeGrid, children: Array.from({ length: 6 }).map((l, f) => /* @__PURE__ */ e.jsx(
4376
+ /* @__PURE__ */ e.jsx("div", { className: h.skeletonTimeGrid, children: Array.from({ length: 6 }).map((l, c) => /* @__PURE__ */ e.jsx(
4370
4377
  "div",
4371
4378
  {
4372
- className: [m.skeletonTimeSlot, m.skeletonShimmer].join(" ")
4379
+ className: [h.skeletonTimeSlot, h.skeletonShimmer].join(" ")
4373
4380
  },
4374
- f
4381
+ c
4375
4382
  )) })
4376
4383
  ] }),
4377
- !y && w && /* @__PURE__ */ e.jsxs("div", { className: m.stateMessage, children: [
4384
+ !M && A && /* @__PURE__ */ e.jsxs("div", { className: h.stateMessage, children: [
4378
4385
  i?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
4379
- /* @__PURE__ */ e.jsx("button", { type: "button", className: m.retryBtn, onClick: pe, children: i?.("planRetry") ?? "Retry" })
4386
+ /* @__PURE__ */ e.jsx("button", { type: "button", className: h.retryBtn, onClick: me, children: i?.("planRetry") ?? "Retry" })
4380
4387
  ] }),
4381
- !y && !w && W.length === 0 && /* @__PURE__ */ e.jsxs("div", { className: m.emptyState, children: [
4382
- /* @__PURE__ */ e.jsx("span", { className: m.emptyStateIcon, children: /* @__PURE__ */ e.jsx(tn, {}) }),
4383
- /* @__PURE__ */ e.jsx("p", { className: m.emptyStateTitle, children: i?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
4384
- /* @__PURE__ */ e.jsx("p", { className: m.emptyStateSubtitle, children: i?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
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." })
4385
4392
  ] }),
4386
- !y && !w && W.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4387
- /* @__PURE__ */ e.jsxs("div", { className: m.dateTabs, ref: ae, role: "radiogroup", "aria-label": "Consultation date", children: [
4388
- me && /* @__PURE__ */ e.jsx(
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(
4389
4396
  "span",
4390
4397
  {
4391
- className: m.dateTabIndicator,
4398
+ className: h.dateTabIndicator,
4392
4399
  style: {
4393
- transform: `translate(${me.left}px, ${me.top}px)`,
4394
- width: me.width,
4395
- height: me.height
4400
+ transform: `translate(${le.left}px, ${le.top}px)`,
4401
+ width: le.width,
4402
+ height: le.height
4396
4403
  },
4397
4404
  "aria-hidden": "true"
4398
4405
  }
4399
4406
  ),
4400
- W.map((l) => {
4401
- const f = l.date === $, { dayLabel: ee, dayNum: ge } = Zn(l.date);
4407
+ G.map((l) => {
4408
+ const c = l.date === D, { dayLabel: J, dayNum: _e } = Zn(l.date);
4402
4409
  return /* @__PURE__ */ e.jsxs(Va, { children: [
4403
4410
  /* @__PURE__ */ e.jsxs(
4404
4411
  "button",
4405
4412
  {
4406
4413
  type: "button",
4407
4414
  ref: (r) => {
4408
- Se.current[l.date] = r;
4415
+ ye.current[l.date] = r;
4409
4416
  },
4410
4417
  className: [
4411
- m.dateTab,
4412
- f ? m.dateTabSelected : ""
4418
+ h.dateTab,
4419
+ c ? h.dateTabSelected : ""
4413
4420
  ].filter(Boolean).join(" "),
4414
4421
  role: "radio",
4415
- "aria-checked": f,
4416
- onClick: () => Re(l.date),
4422
+ "aria-checked": c,
4423
+ onClick: () => xe(l.date),
4417
4424
  children: [
4418
- /* @__PURE__ */ e.jsx("span", { className: m.dateTabLabel, children: i?.(ee) ?? ee }),
4419
- /* @__PURE__ */ e.jsx("span", { className: m.dateTabNum, children: ge })
4425
+ /* @__PURE__ */ e.jsx("span", { className: h.dateTabLabel, children: i?.(J) ?? J }),
4426
+ /* @__PURE__ */ e.jsx("span", { className: h.dateTabNum, children: _e })
4420
4427
  ]
4421
4428
  }
4422
4429
  ),
4423
- /* @__PURE__ */ e.jsx("span", { className: m.dateTabDivider, "aria-hidden": !0 })
4430
+ /* @__PURE__ */ e.jsx("span", { className: h.dateTabDivider, "aria-hidden": !0 })
4424
4431
  ] }, l.date);
4425
4432
  })
4426
4433
  ] }),
4427
- /* @__PURE__ */ e.jsxs("div", { className: m.periodTabs, ref: be, role: "tablist", "aria-label": "Time of day", children: [
4428
- fe && /* @__PURE__ */ e.jsx(
4434
+ /* @__PURE__ */ e.jsxs("div", { className: h.periodTabs, ref: Te, role: "tablist", "aria-label": "Time of day", children: [
4435
+ se && /* @__PURE__ */ e.jsx(
4429
4436
  "span",
4430
4437
  {
4431
- className: m.periodTabIndicator,
4438
+ className: h.periodTabIndicator,
4432
4439
  style: {
4433
- transform: `translateX(${fe.left}px)`,
4434
- width: fe.width
4440
+ transform: `translateX(${se.left}px)`,
4441
+ width: se.width
4435
4442
  },
4436
4443
  "aria-hidden": "true"
4437
4444
  }
4438
4445
  ),
4439
- _e.map((l) => {
4440
- const f = ii[l], ee = l === "evening" && U ? "planPeriodEveningNight" : li[l];
4446
+ he.map((l) => {
4447
+ const c = ii[l], J = l === "evening" && F ? "planPeriodEveningNight" : li[l];
4441
4448
  return /* @__PURE__ */ e.jsxs(
4442
4449
  "button",
4443
4450
  {
4444
- ref: (ge) => {
4445
- Z.current[l] = ge;
4451
+ ref: (_e) => {
4452
+ pe.current[l] = _e;
4446
4453
  },
4447
4454
  type: "button",
4448
4455
  className: [
4449
- m.periodTab,
4450
- l === O ? m.periodTabSelected : ""
4456
+ h.periodTab,
4457
+ l === Y ? h.periodTabSelected : ""
4451
4458
  ].filter(Boolean).join(" "),
4452
4459
  role: "tab",
4453
- "aria-selected": l === O,
4454
- onClick: () => Pe(l),
4460
+ "aria-selected": l === Y,
4461
+ onClick: () => fe(l),
4455
4462
  children: [
4456
- /* @__PURE__ */ e.jsx(f, {}),
4457
- i?.(ee) ?? (l === "evening" && U ? "Evening/Night" : l.charAt(0).toUpperCase() + l.slice(1))
4463
+ /* @__PURE__ */ e.jsx(c, {}),
4464
+ i?.(J) ?? (l === "evening" && F ? "Evening/Night" : l.charAt(0).toUpperCase() + l.slice(1))
4458
4465
  ]
4459
4466
  },
4460
4467
  l
@@ -4464,40 +4471,40 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4464
4471
  /* @__PURE__ */ e.jsx(
4465
4472
  "div",
4466
4473
  {
4467
- className: m.timeGrid,
4474
+ className: h.timeGrid,
4468
4475
  role: "radiogroup",
4469
4476
  "aria-label": "Consultation time",
4470
- children: te.map((l, f) => /* @__PURE__ */ e.jsx(
4477
+ children: V.map((l, c) => /* @__PURE__ */ e.jsx(
4471
4478
  "button",
4472
4479
  {
4473
4480
  type: "button",
4474
4481
  className: [
4475
- m.timeSlot,
4476
- V?.start === l.start ? m.timeSlotSelected : ""
4482
+ h.timeSlot,
4483
+ Q?.start === l.start ? h.timeSlotSelected : ""
4477
4484
  ].filter(Boolean).join(" "),
4478
4485
  role: "radio",
4479
- "aria-checked": V?.start === l.start,
4480
- onClick: () => ke(l),
4486
+ "aria-checked": Q?.start === l.start,
4487
+ onClick: () => Se(l),
4481
4488
  children: aa(l.start)
4482
4489
  },
4483
- `${l.start}-${f}`
4490
+ `${l.start}-${c}`
4484
4491
  ))
4485
4492
  },
4486
- `${$}-${O}`
4493
+ `${D}-${Y}`
4487
4494
  )
4488
4495
  ] }),
4489
- q && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4490
- /* @__PURE__ */ e.jsx("p", { className: m.sectionHeading, children: i?.("planGuidanceHeading") ?? "What would you like guidance on?" }),
4491
- /* @__PURE__ */ e.jsx("div", { className: m.topicGrid, role: "radiogroup", "aria-label": "Guidance topic", children: ao.map((l) => /* @__PURE__ */ e.jsx(
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(
4492
4499
  "button",
4493
4500
  {
4494
4501
  type: "button",
4495
4502
  className: [
4496
- m.topicChip,
4497
- G === l.id ? m.topicChipSelected : ""
4503
+ h.topicChip,
4504
+ q === l.id ? h.topicChipSelected : ""
4498
4505
  ].filter(Boolean).join(" "),
4499
4506
  role: "radio",
4500
- "aria-checked": G === l.id,
4507
+ "aria-checked": q === l.id,
4501
4508
  onClick: () => Be(l.id),
4502
4509
  children: i?.(l.labelKey) ?? l.label
4503
4510
  },
@@ -4505,10 +4512,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4505
4512
  )) })
4506
4513
  ] })
4507
4514
  ] }),
4508
- !S && /* @__PURE__ */ e.jsxs("div", { className: m.footer, children: [
4509
- /* @__PURE__ */ e.jsxs("div", { className: m.trustRow, children: [
4510
- /* @__PURE__ */ e.jsx("div", { className: m.trustAvatars, "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
4511
- N,
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,
4512
4519
  {
4513
4520
  src: "https://srm-cdn.a4b.io/yoda/1785317712031.svg",
4514
4521
  alt: "",
@@ -4519,16 +4526,16 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4519
4526
  loading: "eager"
4520
4527
  }
4521
4528
  ) }),
4522
- /* @__PURE__ */ e.jsx("span", { className: m.trustText, children: i?.("planConsultationTrustLabel") ?? "3,750+ people have booked consultation" })
4529
+ /* @__PURE__ */ e.jsx("span", { className: h.trustText, children: i?.("planConsultationTrustLabel") ?? "3,750+ people have booked consultation" })
4523
4530
  ] }),
4524
4531
  /* @__PURE__ */ e.jsx(
4525
4532
  "button",
4526
4533
  {
4527
4534
  type: "button",
4528
- className: [m.proceedBtn, se ? "" : m.proceedBtnDisabled].filter(Boolean).join(" "),
4529
- disabled: !se,
4530
- onClick: ye,
4531
- children: k ? i?.("planBookSlot") ?? "Book Slot" : i?.("planProceedToPayment") ?? "Proceed to payment"
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"
4532
4539
  }
4533
4540
  )
4534
4541
  ] })
@@ -4537,29 +4544,29 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4537
4544
  isOpen: t,
4538
4545
  onClose: n,
4539
4546
  t: i,
4540
- ...c
4547
+ ...d
4541
4548
  }) => t ? /* @__PURE__ */ e.jsx(
4542
4549
  "div",
4543
4550
  {
4544
- className: m.overlay,
4551
+ className: h.overlay,
4545
4552
  role: "dialog",
4546
4553
  "aria-modal": "true",
4547
4554
  "aria-label": i?.("planConsultationSlotTitle") ?? "Select consultation slot",
4548
- children: /* @__PURE__ */ e.jsxs("div", { className: m.sheet, children: [
4549
- /* @__PURE__ */ e.jsxs("div", { className: m.header, children: [
4555
+ children: /* @__PURE__ */ e.jsxs("div", { className: h.sheet, children: [
4556
+ /* @__PURE__ */ e.jsxs("div", { className: h.header, children: [
4550
4557
  /* @__PURE__ */ e.jsx(
4551
4558
  "button",
4552
4559
  {
4553
- className: m.backBtn,
4560
+ className: h.backBtn,
4554
4561
  onClick: n,
4555
4562
  "aria-label": "Go back",
4556
4563
  type: "button",
4557
4564
  children: /* @__PURE__ */ e.jsx(sa, {})
4558
4565
  }
4559
4566
  ),
4560
- /* @__PURE__ */ e.jsx("h2", { className: m.title, children: i?.("planConsultationSlotTitle") ?? "Select consultation slot" })
4567
+ /* @__PURE__ */ e.jsx("h2", { className: h.title, children: i?.("planConsultationSlotTitle") ?? "Select consultation slot" })
4561
4568
  ] }),
4562
- /* @__PURE__ */ e.jsx(ci, { t: i, ...c })
4569
+ /* @__PURE__ */ e.jsx(ci, { t: i, ...d })
4563
4570
  ] })
4564
4571
  }
4565
4572
  ) : null, ui = [
@@ -4624,31 +4631,31 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4624
4631
  isOpen: t,
4625
4632
  onClose: n,
4626
4633
  selectedPlan: i,
4627
- onSelectPlan: c,
4628
- plans: g,
4629
- onProceed: k,
4630
- t: h,
4631
- analytics: S,
4632
- enableConsultationScheduling: b
4634
+ onSelectPlan: d,
4635
+ plans: _,
4636
+ onProceed: y,
4637
+ t: b,
4638
+ analytics: x,
4639
+ enableConsultationScheduling: k
4633
4640
  }) => {
4634
- const q = Me(), D = q?.config.isGlobal ?? !0, N = b ?? q?.config.enableConsultationScheduling ?? !1, p = g ?? pi(D), U = i?.id || p.find((C) => C.badge)?.id || p[0]?.id || "", v = M(null), R = M(null), y = M(!1), [_, w] = B(!1);
4635
- K(() => {
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
+ $(() => {
4636
4643
  if (t) {
4637
4644
  if (!i) {
4638
- const C = p.find((Q) => Q.badge) ?? p[0];
4639
- C && c(C);
4645
+ const C = m.find((X) => X.badge) ?? m[0];
4646
+ C && d(C);
4640
4647
  }
4641
- y.current || (S?.trackPlanPageViewed?.(), N && S?.trackPlanScreenViewed?.({
4642
- plans_shown: p.map((C) => C.id),
4643
- default_selected_plan: i?.id || p.find((C) => C.badge)?.id || p[0]?.id || ""
4644
- }), y.current = !0);
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);
4645
4652
  } else
4646
- y.current = !1;
4647
- }, [t, p, i, c, S]);
4648
- const ne = () => {
4649
- S?.trackPlanPageClosed?.(), n();
4653
+ M.current = !1;
4654
+ }, [t, m, i, d, x]);
4655
+ const z = () => {
4656
+ x?.trackPlanPageClosed?.(), n();
4650
4657
  };
4651
- return K(() => {
4658
+ return $(() => {
4652
4659
  if (!t) return;
4653
4660
  const C = document.body.style.overflow;
4654
4661
  return document.body.style.overflow = "hidden", () => {
@@ -4660,57 +4667,57 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4660
4667
  className: T.overlay,
4661
4668
  role: "dialog",
4662
4669
  "aria-modal": "true",
4663
- "aria-label": h?.("planSheetTitle") ?? "Choose Your Kundli Plan",
4670
+ "aria-label": b?.("planSheetTitle") ?? "Choose Your Kundli Plan",
4664
4671
  children: [
4665
4672
  /* @__PURE__ */ e.jsxs(
4666
4673
  "div",
4667
4674
  {
4668
- ref: v,
4669
- className: N ? T.sheetFullScreen : T.sheet,
4675
+ ref: ee,
4676
+ className: j ? T.sheetFullScreen : T.sheet,
4670
4677
  children: [
4671
- N ? /* @__PURE__ */ e.jsxs("div", { className: T.headerFull, children: [
4678
+ j ? /* @__PURE__ */ e.jsxs("div", { className: T.headerFull, children: [
4672
4679
  /* @__PURE__ */ e.jsx(
4673
4680
  "button",
4674
4681
  {
4675
4682
  className: T.backBtn,
4676
- onClick: ne,
4683
+ onClick: z,
4677
4684
  "aria-label": "Go back",
4678
4685
  type: "button",
4679
4686
  children: /* @__PURE__ */ e.jsx(sa, {})
4680
4687
  }
4681
4688
  ),
4682
- /* @__PURE__ */ e.jsx("h2", { className: T.titleFull, children: h?.("planSheetTitle") ?? "Choose Your Kundli Plan" })
4689
+ /* @__PURE__ */ e.jsx("h2", { className: T.titleFull, children: b?.("planSheetTitle") ?? "Choose Your Kundli Plan" })
4683
4690
  ] }) : /* @__PURE__ */ e.jsx(
4684
4691
  Vn,
4685
4692
  {
4686
- title: h?.("planSheetTitle") ?? "Choose Your Kundli Plan",
4687
- onBack: ne
4693
+ title: b?.("planSheetTitle") ?? "Choose Your Kundli Plan",
4694
+ onBack: z
4688
4695
  }
4689
4696
  ),
4690
4697
  /* @__PURE__ */ e.jsx(
4691
4698
  "div",
4692
4699
  {
4693
- ref: R,
4700
+ ref: g,
4694
4701
  className: T.plansContainer,
4695
4702
  role: "radiogroup",
4696
4703
  "aria-label": "Kundli plans",
4697
- children: p.map((C) => /* @__PURE__ */ e.jsx(
4704
+ children: m.map((C) => /* @__PURE__ */ e.jsx(
4698
4705
  Xn,
4699
4706
  {
4700
4707
  plan: C,
4701
- isSelected: C.id === U,
4702
- t: h,
4703
- onSelect: (Q) => {
4704
- const x = p.find((Y) => Y.id === Q);
4705
- x && (S?.trackPlanSelected?.({
4706
- planId: x.id,
4707
- planName: x.title,
4708
- ...N ? {
4709
- price: x.price,
4710
- includes_consultation: !!(x.astrologers && x.astrologers.length > 0),
4711
- cta_label: x.astrologers && x.astrologers.length > 0 ? h?.("planSelectConsultationSlot") ?? "Select consultation slot →" : h?.("planProceedToPayment") ?? "Proceed to Payment"
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"
4712
4719
  } : {}
4713
- }), c(x));
4720
+ }), d(P));
4714
4721
  }
4715
4722
  },
4716
4723
  C.id
@@ -4724,46 +4731,46 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4724
4731
  disabled: !i,
4725
4732
  onClick: () => {
4726
4733
  if (i) {
4727
- if (N && i.astrologers && i.astrologers.length > 0) {
4728
- S?.trackSelectConsultationSlotClicked?.({
4734
+ if (j && i.astrologers && i.astrologers.length > 0) {
4735
+ x?.trackSelectConsultationSlotClicked?.({
4729
4736
  planId: i.id,
4730
4737
  planName: i.title
4731
- }), S?.trackPlanProceedClicked?.({
4738
+ }), x?.trackPlanProceedClicked?.({
4732
4739
  planId: i.id,
4733
4740
  planName: i.title,
4734
4741
  cta_type: "confirm_consultation_slot",
4735
4742
  next_step: "slot_selection"
4736
- }), w(!0);
4743
+ }), A(!0);
4737
4744
  return;
4738
4745
  }
4739
- S?.trackPlanProceedClicked?.({
4746
+ x?.trackPlanProceedClicked?.({
4740
4747
  planId: i.id,
4741
4748
  planName: i.title,
4742
- ...N ? { cta_type: "proceed", next_step: "payment" } : {}
4743
- }), k(i), n();
4749
+ ...j ? { cta_type: "proceed", next_step: "payment" } : {}
4750
+ }), y(i), n();
4744
4751
  }
4745
4752
  },
4746
- children: i ? N && i.astrologers && i.astrologers.length > 0 ? h?.("planSelectConsultationSlot") ?? "Select consultation slot →" : h?.("planProceedToPayment") ?? i.price + "Proceed to Payment" : "Select a plan"
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"
4747
4754
  }
4748
4755
  ) })
4749
4756
  ]
4750
4757
  }
4751
4758
  ),
4752
- N && i?.astrologers && i.astrologers.length > 0 && /* @__PURE__ */ e.jsx(
4759
+ j && i?.astrologers && i.astrologers.length > 0 && /* @__PURE__ */ e.jsx(
4753
4760
  di,
4754
4761
  {
4755
- isOpen: _,
4756
- onClose: () => w(!1),
4762
+ isOpen: f,
4763
+ onClose: () => A(!1),
4757
4764
  astrologers: i.astrologers,
4758
- t: h,
4759
- analytics: S,
4765
+ t: b,
4766
+ analytics: x,
4760
4767
  onProceed: (C) => {
4761
- S?.trackPlanProceedClicked?.({
4768
+ x?.trackPlanProceedClicked?.({
4762
4769
  planId: i.id,
4763
4770
  planName: i.title,
4764
4771
  cta_type: "proceed",
4765
4772
  next_step: "payment"
4766
- }), k(i, C), w(!1), n();
4773
+ }), y(i, C), A(!1), n();
4767
4774
  }
4768
4775
  }
4769
4776
  )
@@ -4785,103 +4792,104 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4785
4792
  className: t = "",
4786
4793
  locale: n,
4787
4794
  showLanguageSelector: i = !0,
4788
- onBack: c,
4789
- initialValues: g,
4790
- onProceed: k,
4791
- onProceedGuidance: h,
4792
- proceedHref: S,
4793
- originalPriceLabel: b,
4794
- discountedPriceLabel: q,
4795
- googleMapsApiKey: D = "",
4796
- atlasSearchLocalities: N,
4797
- googleMapsAutocompleteEnabled: p,
4798
- analytics: U
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
4799
4807
  }) => {
4800
- const v = Me(), R = yt(), y = v !== null, _ = y ? v.locale : n, w = _ ?? R?.locale ?? "en", [ne, C] = B(w), Q = y ? v.locale : ne, x = y ? v.setLocale : C, [Y, j] = B(!1), E = M(null), le = M(
4801
- _
4802
- ), re = M(
4803
- R?.locale
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
4804
4812
  );
4805
- K(() => {
4813
+ $(() => {
4806
4814
  window.scrollTo({ top: 0, left: 0, behavior: "auto" });
4807
4815
  }, []);
4808
- const G = (P) => hi(Q, P);
4809
- K(() => {
4810
- _ && le.current !== _ && x(_), le.current = _;
4811
- }, [_, x]), K(() => {
4812
- if (_) return;
4813
- const P = R?.locale;
4814
- P && re.current !== P && x(P), re.current = P;
4815
- }, [R?.locale, _, x]);
4816
- const [I, $] = B({
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({
4817
4825
  ...bi,
4818
- ...g,
4819
- phone: g?.phone ?? ""
4820
- }), X = y ? v?.config.isGlobal ?? !0 : !0, O = y ? v.formValues : I, Te = y ? v.setFormValues : $, [V, oe] = B(
4821
- () => gi(O.phoneCountryCode, X)
4822
- ), ue = M(
4823
- !!(O.phoneCountryCode && ra.includes(O.phoneCountryCode))
4824
- ), ae = M(!1), Se = je((P) => {
4825
- ae.current = !0, oe(P);
4826
- }, []), me = M(!0);
4827
- K(() => {
4828
- if (me.current) {
4829
- me.current = !1;
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;
4830
4838
  return;
4831
4839
  }
4832
- ue.current || ae.current || oe(X ? "+1" : "+91");
4833
- }, [X]), K(() => {
4834
- if (!y || ae.current) return;
4835
- const P = O.phoneCountryCode;
4836
- P && ra.includes(P) && P !== V && (ue.current = !0, oe(P));
4837
- }, [y, O.phoneCountryCode]);
4838
- const Ne = y ? v.goToPage : c, be = y ? v.onProceed : k, Z = y ? v.onProceedGuidance : h, fe = y ? v.config.proceedHref : S, he = y ? v.config.originalPriceLabel : b, W = y ? v.config.discountedPriceLabel : q, pe = y ? v.config.showLanguageSelector ?? !0 : i, de = (y ? v?.config?.analytics : U) ?? U;
4839
- K(() => {
4840
- if (!Y) return;
4841
- const P = (l) => {
4842
- E.current && !E.current.contains(l.target) && j(!1);
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);
4843
4851
  };
4844
- return document.addEventListener("mousedown", P), () => document.removeEventListener("mousedown", P);
4845
- }, [Y]);
4846
- const [_e, te] = B(!1), [se, Re] = B(null), Pe = M(null), ke = je((P) => {
4847
- Pe.current = P, te(!0);
4848
- }, []), ye = M(!1);
4849
- K(() => {
4850
- if (ye.current || !y || !v?.config.autoOpenPlanSheet || v?.config.variant !== "v1")
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")
4851
4859
  return;
4852
- ye.current = !0;
4853
- const P = (O.phone ?? "").trim();
4854
- ke({
4855
- ...O,
4856
- phone: P && `${V}-${P}`
4860
+ Be.current = !0;
4861
+ const c = (Z.phone ?? "").trim();
4862
+ Ae({
4863
+ ...Z,
4864
+ phone: c && `${ae}-${c}`
4857
4865
  });
4858
- }, [y, v?.config.autoOpenPlanSheet, v?.config.variant, O, V, ke]);
4859
- const xe = je(() => {
4860
- if (!Pe.current || !se) return;
4861
- de?.trackPlanProceedClicked?.({
4862
- planId: se.id,
4863
- planName: se.title,
4864
- price: se.price,
4865
- currency: X ? "USD" : "INR"
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"
4866
4874
  });
4867
- const P = { ...Pe.current, _selectedPlan: se };
4868
- se.id === Ra && Z ? Z(P) : be?.(P), te(!1), Pe.current = null;
4869
- }, [se, be, Z]), Be = v?.config.imageComponent ?? Ye, De = pe ? /* @__PURE__ */ e.jsxs("div", { className: Le.langDropdownWrap, ref: E, children: [
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: [
4870
4878
  /* @__PURE__ */ e.jsxs(
4871
4879
  "button",
4872
4880
  {
4873
4881
  type: "button",
4874
4882
  className: Le.langTrigger,
4875
4883
  onClick: () => {
4876
- de?.trackLanguageClickedFe?.({ language: Q }), j((P) => !P);
4884
+ V?.trackLanguageClickedFe?.({ language: P }), B((c) => !c);
4877
4885
  },
4878
- "aria-expanded": Y,
4886
+ "aria-expanded": S,
4879
4887
  "aria-haspopup": "listbox",
4880
4888
  id: "kundli-form-lang",
4881
- "aria-label": G("language"),
4889
+ "aria-label": w("language"),
4882
4890
  children: [
4883
4891
  /* @__PURE__ */ e.jsx(
4884
- Be,
4892
+ Ne,
4885
4893
  {
4886
4894
  src: fi,
4887
4895
  alt: "",
@@ -4891,30 +4899,30 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4891
4899
  loading: "eager"
4892
4900
  }
4893
4901
  ),
4894
- /* @__PURE__ */ e.jsx("span", { className: Le.langLabel, children: ka[Q] })
4902
+ /* @__PURE__ */ e.jsx("span", { className: Le.langLabel, children: ka[P] })
4895
4903
  ]
4896
4904
  }
4897
4905
  ),
4898
- Y && /* @__PURE__ */ e.jsx(
4906
+ S && /* @__PURE__ */ e.jsx(
4899
4907
  "ul",
4900
4908
  {
4901
4909
  className: Le.langMenu,
4902
4910
  role: "listbox",
4903
4911
  "aria-labelledby": "kundli-form-lang",
4904
- "aria-activedescendant": `kundli-form-lang-option-${Q}`,
4905
- children: Pa.map((P) => /* @__PURE__ */ e.jsx(
4912
+ "aria-activedescendant": `kundli-form-lang-option-${P}`,
4913
+ children: Pa.map((c) => /* @__PURE__ */ e.jsx(
4906
4914
  "li",
4907
4915
  {
4908
- id: `kundli-form-lang-option-${P}`,
4916
+ id: `kundli-form-lang-option-${c}`,
4909
4917
  role: "option",
4910
- "aria-selected": P === Q,
4918
+ "aria-selected": c === P,
4911
4919
  className: Le.langOption,
4912
4920
  onClick: () => {
4913
- de?.trackLanguageChangedFe?.({ newLanguage: P }), x(P), j(!1);
4921
+ V?.trackLanguageChangedFe?.({ newLanguage: c }), U(c), B(!1);
4914
4922
  },
4915
- children: ka[P]
4923
+ children: ka[c]
4916
4924
  },
4917
- P
4925
+ c
4918
4926
  ))
4919
4927
  }
4920
4928
  )
@@ -4923,61 +4931,62 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
4923
4931
  /* @__PURE__ */ e.jsx(
4924
4932
  Jr,
4925
4933
  {
4926
- t: G,
4927
- logoUrl: y ? v.config.logoUrl : void 0,
4928
- languageSelector: De,
4934
+ t: w,
4935
+ logoUrl: f ? g.config.logoUrl : void 0,
4936
+ languageSelector: l,
4929
4937
  className: Le.kundliHeaderNoBorder
4930
4938
  }
4931
4939
  ),
4932
4940
  /* @__PURE__ */ e.jsx("div", { className: Le.headerSeparator, "aria-hidden": !0 }),
4933
4941
  /* @__PURE__ */ e.jsxs("main", { className: Le.main, children: [
4934
- /* @__PURE__ */ e.jsx(Ct, { t: G, onBack: Ne }),
4942
+ /* @__PURE__ */ e.jsx(Ct, { t: w, onBack: Te }),
4935
4943
  /* @__PURE__ */ e.jsx(
4936
4944
  Dr,
4937
4945
  {
4938
- t: G,
4939
- values: O,
4940
- onChange: Te,
4941
- googleMapsApiKey: D,
4942
- atlasSearchLocalities: N,
4943
- googleMapsAutocompleteEnabled: p,
4944
- phoneIsdCode: V,
4945
- onPhoneIsdCodeChange: Se,
4946
- showV1ExtraFields: y ? v?.config.variant === "v1" : !1,
4947
- analytics: de
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
4948
4956
  }
4949
4957
  )
4950
4958
  ] }),
4951
4959
  /* @__PURE__ */ e.jsx(
4952
4960
  Yr,
4953
4961
  {
4954
- t: G,
4955
- values: O,
4956
- phoneIsdCode: V,
4957
- onProceed: be,
4958
- onProceedGuidance: Z,
4959
- href: fe,
4960
- originalPriceLabel: he,
4961
- discountedPriceLabel: W,
4962
- analytics: de,
4963
- showPlanSheet: ke,
4964
- confirmPlan: xe,
4965
- planSheetOpen: _e,
4966
- selectedPlan: se
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
4967
4976
  }
4968
4977
  ),
4969
- v?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
4978
+ g?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
4970
4979
  mi,
4971
4980
  {
4972
- isOpen: _e,
4973
- onClose: () => te(!1),
4974
- selectedPlan: se,
4975
- onSelectPlan: Re,
4981
+ isOpen: Pe,
4982
+ onClose: () => xe(!1),
4983
+ selectedPlan: fe,
4984
+ onSelectPlan: Se,
4976
4985
  onProceed: () => {
4977
- xe?.();
4986
+ De?.();
4978
4987
  },
4979
- t: G,
4980
- analytics: de
4988
+ t: w,
4989
+ analytics: V
4981
4990
  }
4982
4991
  )
4983
4992
  ] });
@@ -5085,4 +5094,4 @@ export {
5085
5094
  xa as t,
5086
5095
  yt as u
5087
5096
  };
5088
- //# sourceMappingURL=analytics-UE1GTXAs.js.map
5097
+ //# sourceMappingURL=analytics-D8Ykonba.js.map