@srimandir/kundli-generator 5.21.1 → 5.21.3

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,69 +1,69 @@
1
- import Ke, { useContext as We, createContext as cr, useState as V, useRef as q, useEffect as X, useMemo as Ge, useCallback as be } from "react";
2
- import { FormSectionHeader as Dr, FooterCTAButton as Or, FooterShell as Fr, CircularMarquee as Mr, footerShellStyles as xe, PageHeader as $r } from "@srimandir/astrology-common";
3
- var Ie = { exports: {} }, Re = {};
4
- var nr;
5
- function Ur() {
6
- if (nr) return Re;
7
- nr = 1;
8
- var t = Ke, o = /* @__PURE__ */ Symbol.for("react.element"), d = /* @__PURE__ */ Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, y = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
9
- function h(N, w, F) {
10
- var c, S = {}, p = null, D = null;
11
- F !== void 0 && (p = "" + F), w.key !== void 0 && (p = "" + w.key), w.ref !== void 0 && (D = w.ref);
12
- for (c in w) u.call(w, c) && !x.hasOwnProperty(c) && (S[c] = w[c]);
13
- if (N && N.defaultProps) for (c in w = N.defaultProps, w) S[c] === void 0 && (S[c] = w[c]);
14
- return { $$typeof: o, type: N, key: p, ref: D, props: S, _owner: y.current };
1
+ import Ge, { useContext as We, createContext as dr, useState as K, useRef as W, useEffect as H, useMemo as Ue, useCallback as Te } from "react";
2
+ import { FormSectionHeader as Mr, FooterCTAButton as $r, FooterShell as Ur, CircularMarquee as Gr, footerShellStyles as ke, PageHeader as Wr } from "@srimandir/astrology-common";
3
+ var Le = { exports: {} }, Ie = {};
4
+ var ar;
5
+ function Kr() {
6
+ if (ar) return Ie;
7
+ ar = 1;
8
+ var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
9
+ function x(j, A, E) {
10
+ var d, N = {}, h = null, I = null;
11
+ E !== void 0 && (h = "" + E), A.key !== void 0 && (h = "" + A.key), A.ref !== void 0 && (I = A.ref);
12
+ for (d in A) f.call(A, d) && !S.hasOwnProperty(d) && (N[d] = A[d]);
13
+ if (j && j.defaultProps) for (d in A = j.defaultProps, A) N[d] === void 0 && (N[d] = A[d]);
14
+ return { $$typeof: o, type: j, key: h, ref: I, props: N, _owner: b.current };
15
15
  }
16
- return Re.Fragment = d, Re.jsx = h, Re.jsxs = h, Re;
16
+ return Ie.Fragment = c, Ie.jsx = x, Ie.jsxs = x, Ie;
17
17
  }
18
- var Se = {};
19
- var or;
20
- function Gr() {
21
- return or || (or = 1, process.env.NODE_ENV !== "production" && (function() {
22
- var t = Ke, o = /* @__PURE__ */ Symbol.for("react.element"), d = /* @__PURE__ */ Symbol.for("react.portal"), u = /* @__PURE__ */ Symbol.for("react.fragment"), y = /* @__PURE__ */ Symbol.for("react.strict_mode"), x = /* @__PURE__ */ Symbol.for("react.profiler"), h = /* @__PURE__ */ Symbol.for("react.provider"), N = /* @__PURE__ */ Symbol.for("react.context"), w = /* @__PURE__ */ Symbol.for("react.forward_ref"), F = /* @__PURE__ */ Symbol.for("react.suspense"), c = /* @__PURE__ */ Symbol.for("react.suspense_list"), S = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), D = /* @__PURE__ */ Symbol.for("react.offscreen"), k = Symbol.iterator, E = "@@iterator";
23
- function A(e) {
18
+ var Be = {};
19
+ var nr;
20
+ function Hr() {
21
+ return nr || (nr = 1, process.env.NODE_ENV !== "production" && (function() {
22
+ var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), f = /* @__PURE__ */ Symbol.for("react.fragment"), b = /* @__PURE__ */ Symbol.for("react.strict_mode"), S = /* @__PURE__ */ Symbol.for("react.profiler"), x = /* @__PURE__ */ Symbol.for("react.provider"), j = /* @__PURE__ */ Symbol.for("react.context"), A = /* @__PURE__ */ Symbol.for("react.forward_ref"), E = /* @__PURE__ */ Symbol.for("react.suspense"), d = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), h = /* @__PURE__ */ Symbol.for("react.lazy"), I = /* @__PURE__ */ Symbol.for("react.offscreen"), p = Symbol.iterator, B = "@@iterator";
23
+ function C(e) {
24
24
  if (e === null || typeof e != "object")
25
25
  return null;
26
- var i = k && e[k] || e[E];
26
+ var i = p && e[p] || e[B];
27
27
  return typeof i == "function" ? i : null;
28
28
  }
29
- var T = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
29
+ var y = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
30
30
  function g(e) {
31
31
  {
32
- for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), m = 1; m < i; m++)
33
- l[m - 1] = arguments[m];
34
- G("error", e, l);
32
+ for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)
33
+ l[u - 1] = arguments[u];
34
+ U("error", e, l);
35
35
  }
36
36
  }
37
- function G(e, i, l) {
37
+ function U(e, i, l) {
38
38
  {
39
- var m = T.ReactDebugCurrentFrame, j = m.getStackAddendum();
40
- j !== "" && (i += "%s", l = l.concat([j]));
41
- var I = l.map(function(v) {
42
- return String(v);
39
+ var u = y.ReactDebugCurrentFrame, P = u.getStackAddendum();
40
+ P !== "" && (i += "%s", l = l.concat([P]));
41
+ var R = l.map(function(w) {
42
+ return String(w);
43
43
  });
44
- I.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, I);
44
+ R.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, R);
45
45
  }
46
46
  }
47
- var _ = !1, M = !1, O = !1, $ = !1, Z = !1, R;
48
- R = /* @__PURE__ */ Symbol.for("react.module.reference");
49
- function B(e) {
50
- return !!(typeof e == "string" || typeof e == "function" || e === u || e === x || Z || e === y || e === F || e === c || $ || e === D || _ || M || O || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === S || e.$$typeof === h || e.$$typeof === N || e.$$typeof === w || // This needs to include all possible module reference object
47
+ var J = !1, v = !1, D = !1, z = !1, re = !1, Y;
48
+ Y = /* @__PURE__ */ Symbol.for("react.module.reference");
49
+ function M(e) {
50
+ return !!(typeof e == "string" || typeof e == "function" || e === f || e === S || re || e === b || e === E || e === d || z || e === I || J || v || D || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === N || e.$$typeof === x || e.$$typeof === j || e.$$typeof === A || // This needs to include all possible module reference object
51
51
  // types supported by any Flight configuration anywhere since
52
52
  // we don't know which Flight build this will end up being used
53
53
  // with.
54
- e.$$typeof === R || e.getModuleId !== void 0));
54
+ e.$$typeof === Y || e.getModuleId !== void 0));
55
55
  }
56
- function z(e, i, l) {
57
- var m = e.displayName;
58
- if (m)
59
- return m;
60
- var j = i.displayName || i.name || "";
61
- return j !== "" ? l + "(" + j + ")" : l;
56
+ function se(e, i, l) {
57
+ var u = e.displayName;
58
+ if (u)
59
+ return u;
60
+ var P = i.displayName || i.name || "";
61
+ return P !== "" ? l + "(" + P + ")" : l;
62
62
  }
63
- function U(e) {
63
+ function Q(e) {
64
64
  return e.displayName || "Context";
65
65
  }
66
- function C(e) {
66
+ function G(e) {
67
67
  if (e == null)
68
68
  return null;
69
69
  if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
@@ -71,36 +71,36 @@ function Gr() {
71
71
  if (typeof e == "string")
72
72
  return e;
73
73
  switch (e) {
74
- case u:
74
+ case f:
75
75
  return "Fragment";
76
- case d:
76
+ case c:
77
77
  return "Portal";
78
- case x:
78
+ case S:
79
79
  return "Profiler";
80
- case y:
80
+ case b:
81
81
  return "StrictMode";
82
- case F:
82
+ case E:
83
83
  return "Suspense";
84
- case c:
84
+ case d:
85
85
  return "SuspenseList";
86
86
  }
87
87
  if (typeof e == "object")
88
88
  switch (e.$$typeof) {
89
- case N:
89
+ case j:
90
90
  var i = e;
91
- return U(i) + ".Consumer";
92
- case h:
91
+ return Q(i) + ".Consumer";
92
+ case x:
93
93
  var l = e;
94
- return U(l._context) + ".Provider";
95
- case w:
96
- return z(e, e.render, "ForwardRef");
97
- case S:
98
- var m = e.displayName || null;
99
- return m !== null ? m : C(e.type) || "Memo";
100
- case p: {
101
- var j = e, I = j._payload, v = j._init;
94
+ return Q(l._context) + ".Provider";
95
+ case A:
96
+ return se(e, e.render, "ForwardRef");
97
+ case N:
98
+ var u = e.displayName || null;
99
+ return u !== null ? u : G(e.type) || "Memo";
100
+ case h: {
101
+ var P = e, R = P._payload, w = P._init;
102
102
  try {
103
- return C(v(I));
103
+ return G(w(R));
104
104
  } catch {
105
105
  return null;
106
106
  }
@@ -108,18 +108,18 @@ function Gr() {
108
108
  }
109
109
  return null;
110
110
  }
111
- var L = Object.assign, H = 0, J, ne, ge, Q, ie, ue, le;
112
- function se() {
111
+ var T = Object.assign, F = 0, X, te, ge, q, oe, ce, ae;
112
+ function ie() {
113
113
  }
114
- se.__reactDisabledLog = !0;
115
- function fe() {
114
+ ie.__reactDisabledLog = !0;
115
+ function me() {
116
116
  {
117
- if (H === 0) {
118
- J = console.log, ne = console.info, ge = console.warn, Q = console.error, ie = console.group, ue = console.groupCollapsed, le = console.groupEnd;
117
+ if (F === 0) {
118
+ X = console.log, te = console.info, ge = console.warn, q = console.error, oe = console.group, ce = console.groupCollapsed, ae = console.groupEnd;
119
119
  var e = {
120
120
  configurable: !0,
121
121
  enumerable: !0,
122
- value: se,
122
+ value: ie,
123
123
  writable: !0
124
124
  };
125
125
  Object.defineProperties(console, {
@@ -132,250 +132,250 @@ function Gr() {
132
132
  groupEnd: e
133
133
  });
134
134
  }
135
- H++;
135
+ F++;
136
136
  }
137
137
  }
138
- function oe() {
138
+ function ne() {
139
139
  {
140
- if (H--, H === 0) {
140
+ if (F--, F === 0) {
141
141
  var e = {
142
142
  configurable: !0,
143
143
  enumerable: !0,
144
144
  writable: !0
145
145
  };
146
146
  Object.defineProperties(console, {
147
- log: L({}, e, {
148
- value: J
147
+ log: T({}, e, {
148
+ value: X
149
149
  }),
150
- info: L({}, e, {
151
- value: ne
150
+ info: T({}, e, {
151
+ value: te
152
152
  }),
153
- warn: L({}, e, {
153
+ warn: T({}, e, {
154
154
  value: ge
155
155
  }),
156
- error: L({}, e, {
157
- value: Q
156
+ error: T({}, e, {
157
+ value: q
158
158
  }),
159
- group: L({}, e, {
160
- value: ie
159
+ group: T({}, e, {
160
+ value: oe
161
161
  }),
162
- groupCollapsed: L({}, e, {
163
- value: ue
162
+ groupCollapsed: T({}, e, {
163
+ value: ce
164
164
  }),
165
- groupEnd: L({}, e, {
166
- value: le
165
+ groupEnd: T({}, e, {
166
+ value: ae
167
167
  })
168
168
  });
169
169
  }
170
- H < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
170
+ F < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
171
171
  }
172
172
  }
173
- var pe = T.ReactCurrentDispatcher, me;
174
- function ee(e, i, l) {
173
+ var de = y.ReactCurrentDispatcher, _e;
174
+ function V(e, i, l) {
175
175
  {
176
- if (me === void 0)
176
+ if (_e === void 0)
177
177
  try {
178
178
  throw Error();
179
- } catch (j) {
180
- var m = j.stack.trim().match(/\n( *(at )?)/);
181
- me = m && m[1] || "";
179
+ } catch (P) {
180
+ var u = P.stack.trim().match(/\n( *(at )?)/);
181
+ _e = u && u[1] || "";
182
182
  }
183
183
  return `
184
- ` + me + e;
184
+ ` + _e + e;
185
185
  }
186
186
  }
187
- var ye = !1, ce;
187
+ var ye = !1, ue;
188
188
  {
189
189
  var we = typeof WeakMap == "function" ? WeakMap : Map;
190
- ce = new we();
190
+ ue = new we();
191
191
  }
192
- function _e(e, i) {
192
+ function be(e, i) {
193
193
  if (!e || ye)
194
194
  return "";
195
195
  {
196
- var l = ce.get(e);
196
+ var l = ue.get(e);
197
197
  if (l !== void 0)
198
198
  return l;
199
199
  }
200
- var m;
200
+ var u;
201
201
  ye = !0;
202
- var j = Error.prepareStackTrace;
202
+ var P = Error.prepareStackTrace;
203
203
  Error.prepareStackTrace = void 0;
204
- var I;
205
- I = pe.current, pe.current = null, fe();
204
+ var R;
205
+ R = de.current, de.current = null, me();
206
206
  try {
207
207
  if (i) {
208
- var v = function() {
208
+ var w = function() {
209
209
  throw Error();
210
210
  };
211
- if (Object.defineProperty(v.prototype, "props", {
211
+ if (Object.defineProperty(w.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(v, []);
218
- } catch (ae) {
219
- m = ae;
217
+ Reflect.construct(w, []);
218
+ } catch (ee) {
219
+ u = ee;
220
220
  }
221
- Reflect.construct(e, [], v);
221
+ Reflect.construct(e, [], w);
222
222
  } else {
223
223
  try {
224
- v.call();
225
- } catch (ae) {
226
- m = ae;
224
+ w.call();
225
+ } catch (ee) {
226
+ u = ee;
227
227
  }
228
- e.call(v.prototype);
228
+ e.call(w.prototype);
229
229
  }
230
230
  } else {
231
231
  try {
232
232
  throw Error();
233
- } catch (ae) {
234
- m = ae;
233
+ } catch (ee) {
234
+ u = ee;
235
235
  }
236
236
  e();
237
237
  }
238
- } catch (ae) {
239
- if (ae && m && typeof ae.stack == "string") {
240
- for (var b = ae.stack.split(`
241
- `), re = m.stack.split(`
242
- `), W = b.length - 1, Y = re.length - 1; W >= 1 && Y >= 0 && b[W] !== re[Y]; )
243
- Y--;
244
- for (; W >= 1 && Y >= 0; W--, Y--)
245
- if (b[W] !== re[Y]) {
246
- if (W !== 1 || Y !== 1)
238
+ } catch (ee) {
239
+ if (ee && u && typeof ee.stack == "string") {
240
+ for (var _ = ee.stack.split(`
241
+ `), Z = u.stack.split(`
242
+ `), O = _.length - 1, $ = Z.length - 1; O >= 1 && $ >= 0 && _[O] !== Z[$]; )
243
+ $--;
244
+ for (; O >= 1 && $ >= 0; O--, $--)
245
+ if (_[O] !== Z[$]) {
246
+ if (O !== 1 || $ !== 1)
247
247
  do
248
- if (W--, Y--, Y < 0 || b[W] !== re[Y]) {
249
- var de = `
250
- ` + b[W].replace(" at new ", " at ");
251
- return e.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", e.displayName)), typeof e == "function" && ce.set(e, de), de;
248
+ if (O--, $--, $ < 0 || _[O] !== Z[$]) {
249
+ var le = `
250
+ ` + _[O].replace(" at new ", " at ");
251
+ return e.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", e.displayName)), typeof e == "function" && ue.set(e, le), le;
252
252
  }
253
- while (W >= 1 && Y >= 0);
253
+ while (O >= 1 && $ >= 0);
254
254
  break;
255
255
  }
256
256
  }
257
257
  } finally {
258
- ye = !1, pe.current = I, oe(), Error.prepareStackTrace = j;
258
+ ye = !1, de.current = R, ne(), Error.prepareStackTrace = P;
259
259
  }
260
- var Ce = e ? e.displayName || e.name : "", ve = Ce ? ee(Ce) : "";
261
- return typeof e == "function" && ce.set(e, ve), ve;
260
+ var Ce = e ? e.displayName || e.name : "", ve = Ce ? V(Ce) : "";
261
+ return typeof e == "function" && ue.set(e, ve), ve;
262
262
  }
263
- function Pe(e, i, l) {
264
- return _e(e, !1);
263
+ function xe(e, i, l) {
264
+ return be(e, !1);
265
265
  }
266
- function ke(e) {
266
+ function Pe(e) {
267
267
  var i = e.prototype;
268
268
  return !!(i && i.isReactComponent);
269
269
  }
270
- function P(e, i, l) {
270
+ function k(e, i, l) {
271
271
  if (e == null)
272
272
  return "";
273
273
  if (typeof e == "function")
274
- return _e(e, ke(e));
274
+ return be(e, Pe(e));
275
275
  if (typeof e == "string")
276
- return ee(e);
276
+ return V(e);
277
277
  switch (e) {
278
- case F:
279
- return ee("Suspense");
280
- case c:
281
- return ee("SuspenseList");
278
+ case E:
279
+ return V("Suspense");
280
+ case d:
281
+ return V("SuspenseList");
282
282
  }
283
283
  if (typeof e == "object")
284
284
  switch (e.$$typeof) {
285
- case w:
286
- return Pe(e.render);
287
- case S:
288
- return P(e.type, i, l);
289
- case p: {
290
- var m = e, j = m._payload, I = m._init;
285
+ case A:
286
+ return xe(e.render);
287
+ case N:
288
+ return k(e.type, i, l);
289
+ case h: {
290
+ var u = e, P = u._payload, R = u._init;
291
291
  try {
292
- return P(I(j), i, l);
292
+ return k(R(P), i, l);
293
293
  } catch {
294
294
  }
295
295
  }
296
296
  }
297
297
  return "";
298
298
  }
299
- var n = Object.prototype.hasOwnProperty, s = {}, K = T.ReactDebugCurrentFrame;
300
- function te(e) {
299
+ var he = Object.prototype.hasOwnProperty, n = {}, s = y.ReactDebugCurrentFrame;
300
+ function L(e) {
301
301
  if (e) {
302
- var i = e._owner, l = P(e.type, e._source, i ? i.type : null);
303
- K.setExtraStackFrame(l);
302
+ var i = e._owner, l = k(e.type, e._source, i ? i.type : null);
303
+ s.setExtraStackFrame(l);
304
304
  } else
305
- K.setExtraStackFrame(null);
305
+ s.setExtraStackFrame(null);
306
306
  }
307
- function Te(e, i, l, m, j) {
307
+ function fe(e, i, l, u, P) {
308
308
  {
309
- var I = Function.call.bind(n);
310
- for (var v in e)
311
- if (I(e, v)) {
312
- var b = void 0;
309
+ var R = Function.call.bind(he);
310
+ for (var w in e)
311
+ if (R(e, w)) {
312
+ var _ = void 0;
313
313
  try {
314
- if (typeof e[v] != "function") {
315
- var re = Error((m || "React class") + ": " + l + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
316
- throw re.name = "Invariant Violation", re;
314
+ if (typeof e[w] != "function") {
315
+ var Z = Error((u || "React class") + ": " + l + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
316
+ throw Z.name = "Invariant Violation", Z;
317
317
  }
318
- b = e[v](i, v, m, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
319
- } catch (W) {
320
- b = W;
318
+ _ = e[w](i, w, u, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
319
+ } catch (O) {
320
+ _ = O;
321
321
  }
322
- b && !(b instanceof Error) && (te(j), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class", l, v, typeof b), te(null)), b instanceof Error && !(b.message in s) && (s[b.message] = !0, te(j), g("Failed %s type: %s", l, b.message), te(null));
322
+ _ && !(_ instanceof Error) && (L(P), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", l, w, typeof _), L(null)), _ instanceof Error && !(_.message in n) && (n[_.message] = !0, L(P), g("Failed %s type: %s", l, _.message), L(null));
323
323
  }
324
324
  }
325
325
  }
326
- var De = Array.isArray;
327
- function Oe(e) {
328
- return De(e);
326
+ var Se = Array.isArray;
327
+ function Ee(e) {
328
+ return Se(e);
329
329
  }
330
- function gr(e) {
330
+ function yr(e) {
331
331
  {
332
332
  var i = typeof Symbol == "function" && Symbol.toStringTag, l = i && e[Symbol.toStringTag] || e.constructor.name || "Object";
333
333
  return l;
334
334
  }
335
335
  }
336
- function _r(e) {
336
+ function vr(e) {
337
337
  try {
338
- return Ye(e), !1;
338
+ return He(e), !1;
339
339
  } catch {
340
340
  return !0;
341
341
  }
342
342
  }
343
- function Ye(e) {
343
+ function He(e) {
344
344
  return "" + e;
345
345
  }
346
- function qe(e) {
347
- if (_r(e))
348
- return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gr(e)), Ye(e);
346
+ function Ye(e) {
347
+ if (vr(e))
348
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yr(e)), He(e);
349
349
  }
350
- var Ve = T.ReactCurrentOwner, br = {
350
+ var qe = y.ReactCurrentOwner, kr = {
351
351
  key: !0,
352
352
  ref: !0,
353
353
  __self: !0,
354
354
  __source: !0
355
- }, Je, ze;
356
- function yr(e) {
357
- if (n.call(e, "ref")) {
355
+ }, Ve, ze;
356
+ function wr(e) {
357
+ if (he.call(e, "ref")) {
358
358
  var i = Object.getOwnPropertyDescriptor(e, "ref").get;
359
359
  if (i && i.isReactWarning)
360
360
  return !1;
361
361
  }
362
362
  return e.ref !== void 0;
363
363
  }
364
- function kr(e) {
365
- if (n.call(e, "key")) {
364
+ function xr(e) {
365
+ if (he.call(e, "key")) {
366
366
  var i = Object.getOwnPropertyDescriptor(e, "key").get;
367
367
  if (i && i.isReactWarning)
368
368
  return !1;
369
369
  }
370
370
  return e.key !== void 0;
371
371
  }
372
- function vr(e, i) {
373
- typeof e.ref == "string" && Ve.current;
372
+ function Pr(e, i) {
373
+ typeof e.ref == "string" && qe.current;
374
374
  }
375
- function xr(e, i) {
375
+ function Ar(e, i) {
376
376
  {
377
377
  var l = function() {
378
- Je || (Je = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
378
+ Ve || (Ve = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
379
379
  };
380
380
  l.isReactWarning = !0, Object.defineProperty(e, "key", {
381
381
  get: l,
@@ -383,7 +383,7 @@ function Gr() {
383
383
  });
384
384
  }
385
385
  }
386
- function wr(e, i) {
386
+ function Cr(e, i) {
387
387
  {
388
388
  var l = function() {
389
389
  ze || (ze = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
@@ -394,70 +394,70 @@ function Gr() {
394
394
  });
395
395
  }
396
396
  }
397
- var Pr = function(e, i, l, m, j, I, v) {
398
- var b = {
397
+ var jr = function(e, i, l, u, P, R, w) {
398
+ var _ = {
399
399
  // This tag allows us to uniquely identify this as a React Element
400
400
  $$typeof: o,
401
401
  // Built-in properties that belong on the element
402
402
  type: e,
403
403
  key: i,
404
404
  ref: l,
405
- props: v,
405
+ props: w,
406
406
  // Record the component responsible for creating this element.
407
- _owner: I
407
+ _owner: R
408
408
  };
409
- return b._store = {}, Object.defineProperty(b._store, "validated", {
409
+ return _._store = {}, Object.defineProperty(_._store, "validated", {
410
410
  configurable: !1,
411
411
  enumerable: !1,
412
412
  writable: !0,
413
413
  value: !1
414
- }), Object.defineProperty(b, "_self", {
414
+ }), Object.defineProperty(_, "_self", {
415
415
  configurable: !1,
416
416
  enumerable: !1,
417
417
  writable: !1,
418
- value: m
419
- }), Object.defineProperty(b, "_source", {
418
+ value: u
419
+ }), Object.defineProperty(_, "_source", {
420
420
  configurable: !1,
421
421
  enumerable: !1,
422
422
  writable: !1,
423
- value: j
424
- }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
423
+ value: P
424
+ }), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
425
425
  };
426
- function Ar(e, i, l, m, j) {
426
+ function Nr(e, i, l, u, P) {
427
427
  {
428
- var I, v = {}, b = null, re = null;
429
- l !== void 0 && (qe(l), b = "" + l), kr(i) && (qe(i.key), b = "" + i.key), yr(i) && (re = i.ref, vr(i, j));
430
- for (I in i)
431
- n.call(i, I) && !br.hasOwnProperty(I) && (v[I] = i[I]);
428
+ var R, w = {}, _ = null, Z = null;
429
+ l !== void 0 && (Ye(l), _ = "" + l), xr(i) && (Ye(i.key), _ = "" + i.key), wr(i) && (Z = i.ref, Pr(i, P));
430
+ for (R in i)
431
+ he.call(i, R) && !kr.hasOwnProperty(R) && (w[R] = i[R]);
432
432
  if (e && e.defaultProps) {
433
- var W = e.defaultProps;
434
- for (I in W)
435
- v[I] === void 0 && (v[I] = W[I]);
433
+ var O = e.defaultProps;
434
+ for (R in O)
435
+ w[R] === void 0 && (w[R] = O[R]);
436
436
  }
437
- if (b || re) {
438
- var Y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
439
- b && xr(v, Y), re && wr(v, Y);
437
+ if (_ || Z) {
438
+ var $ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
439
+ _ && Ar(w, $), Z && Cr(w, $);
440
440
  }
441
- return Pr(e, b, re, j, m, Ve.current, v);
441
+ return jr(e, _, Z, P, u, qe.current, w);
442
442
  }
443
443
  }
444
- var Fe = T.ReactCurrentOwner, Qe = T.ReactDebugCurrentFrame;
444
+ var Fe = y.ReactCurrentOwner, Je = y.ReactDebugCurrentFrame;
445
445
  function Ae(e) {
446
446
  if (e) {
447
- var i = e._owner, l = P(e.type, e._source, i ? i.type : null);
448
- Qe.setExtraStackFrame(l);
447
+ var i = e._owner, l = k(e.type, e._source, i ? i.type : null);
448
+ Je.setExtraStackFrame(l);
449
449
  } else
450
- Qe.setExtraStackFrame(null);
450
+ Je.setExtraStackFrame(null);
451
451
  }
452
- var Me;
453
- Me = !1;
454
- function $e(e) {
452
+ var Oe;
453
+ Oe = !1;
454
+ function Me(e) {
455
455
  return typeof e == "object" && e !== null && e.$$typeof === o;
456
456
  }
457
- function Xe() {
457
+ function Qe() {
458
458
  {
459
459
  if (Fe.current) {
460
- var e = C(Fe.current.type);
460
+ var e = G(Fe.current.type);
461
461
  if (e)
462
462
  return `
463
463
 
@@ -466,13 +466,13 @@ Check the render method of \`` + e + "`.";
466
466
  return "";
467
467
  }
468
468
  }
469
- function Cr(e) {
469
+ function Tr(e) {
470
470
  return "";
471
471
  }
472
- var Ze = {};
473
- function jr(e) {
472
+ var Xe = {};
473
+ function Rr(e) {
474
474
  {
475
- var i = Xe();
475
+ var i = Qe();
476
476
  if (!i) {
477
477
  var l = typeof e == "string" ? e : e.displayName || e.name;
478
478
  l && (i = `
@@ -482,39 +482,39 @@ Check the top-level render call using <` + l + ">.");
482
482
  return i;
483
483
  }
484
484
  }
485
- function er(e, i) {
485
+ function Ze(e, i) {
486
486
  {
487
487
  if (!e._store || e._store.validated || e.key != null)
488
488
  return;
489
489
  e._store.validated = !0;
490
- var l = jr(i);
491
- if (Ze[l])
490
+ var l = Rr(i);
491
+ if (Xe[l])
492
492
  return;
493
- Ze[l] = !0;
494
- var m = "";
495
- e && e._owner && e._owner !== Fe.current && (m = " It was passed a child from " + C(e._owner.type) + "."), Ae(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, m), Ae(null);
493
+ Xe[l] = !0;
494
+ var u = "";
495
+ e && e._owner && e._owner !== Fe.current && (u = " It was passed a child from " + G(e._owner.type) + "."), Ae(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, u), Ae(null);
496
496
  }
497
497
  }
498
- function rr(e, i) {
498
+ function er(e, i) {
499
499
  {
500
500
  if (typeof e != "object")
501
501
  return;
502
- if (Oe(e))
502
+ if (Ee(e))
503
503
  for (var l = 0; l < e.length; l++) {
504
- var m = e[l];
505
- $e(m) && er(m, i);
504
+ var u = e[l];
505
+ Me(u) && Ze(u, i);
506
506
  }
507
- else if ($e(e))
507
+ else if (Me(e))
508
508
  e._store && (e._store.validated = !0);
509
509
  else if (e) {
510
- var j = A(e);
511
- if (typeof j == "function" && j !== e.entries)
512
- for (var I = j.call(e), v; !(v = I.next()).done; )
513
- $e(v.value) && er(v.value, i);
510
+ var P = C(e);
511
+ if (typeof P == "function" && P !== e.entries)
512
+ for (var R = P.call(e), w; !(w = R.next()).done; )
513
+ Me(w.value) && Ze(w.value, i);
514
514
  }
515
515
  }
516
516
  }
517
- function Nr(e) {
517
+ function Sr(e) {
518
518
  {
519
519
  var i = e.type;
520
520
  if (i == null || typeof i == "string")
@@ -522,99 +522,99 @@ Check the top-level render call using <` + l + ">.");
522
522
  var l;
523
523
  if (typeof i == "function")
524
524
  l = i.propTypes;
525
- else if (typeof i == "object" && (i.$$typeof === w || // Note: Memo only checks outer props here.
525
+ else if (typeof i == "object" && (i.$$typeof === A || // Note: Memo only checks outer props here.
526
526
  // Inner props are checked in the reconciler.
527
- i.$$typeof === S))
527
+ i.$$typeof === N))
528
528
  l = i.propTypes;
529
529
  else
530
530
  return;
531
531
  if (l) {
532
- var m = C(i);
533
- Te(l, e.props, "prop", m, e);
534
- } else if (i.PropTypes !== void 0 && !Me) {
535
- Me = !0;
536
- var j = C(i);
537
- g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
532
+ var u = G(i);
533
+ fe(l, e.props, "prop", u, e);
534
+ } else if (i.PropTypes !== void 0 && !Oe) {
535
+ Oe = !0;
536
+ var P = G(i);
537
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
538
538
  }
539
539
  typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
540
540
  }
541
541
  }
542
- function Tr(e) {
542
+ function Er(e) {
543
543
  {
544
544
  for (var i = Object.keys(e.props), l = 0; l < i.length; l++) {
545
- var m = i[l];
546
- if (m !== "children" && m !== "key") {
547
- Ae(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), Ae(null);
545
+ var u = i[l];
546
+ if (u !== "children" && u !== "key") {
547
+ Ae(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), Ae(null);
548
548
  break;
549
549
  }
550
550
  }
551
551
  e.ref !== null && (Ae(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
552
552
  }
553
553
  }
554
- var tr = {};
555
- function ar(e, i, l, m, j, I) {
554
+ var rr = {};
555
+ function tr(e, i, l, u, P, R) {
556
556
  {
557
- var v = B(e);
558
- if (!v) {
559
- var b = "";
560
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " 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 re = Cr();
562
- re ? b += re : b += Xe();
563
- var W;
564
- e === null ? W = "null" : Oe(e) ? W = "array" : e !== void 0 && e.$$typeof === o ? (W = "<" + (C(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : W = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, b);
557
+ var w = M(e);
558
+ if (!w) {
559
+ var _ = "";
560
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
561
+ var Z = Tr();
562
+ Z ? _ += Z : _ += Qe();
563
+ var O;
564
+ e === null ? O = "null" : Ee(e) ? O = "array" : e !== void 0 && e.$$typeof === o ? (O = "<" + (G(e.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : O = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, _);
565
565
  }
566
- var Y = Ar(e, i, l, j, I);
567
- if (Y == null)
568
- return Y;
569
- if (v) {
570
- var de = i.children;
571
- if (de !== void 0)
572
- if (m)
573
- if (Oe(de)) {
574
- for (var Ce = 0; Ce < de.length; Ce++)
575
- rr(de[Ce], e);
576
- Object.freeze && Object.freeze(de);
566
+ var $ = Nr(e, i, l, P, R);
567
+ if ($ == null)
568
+ return $;
569
+ if (w) {
570
+ var le = i.children;
571
+ if (le !== void 0)
572
+ if (u)
573
+ if (Ee(le)) {
574
+ for (var Ce = 0; Ce < le.length; Ce++)
575
+ er(le[Ce], e);
576
+ Object.freeze && Object.freeze(le);
577
577
  } else
578
578
  g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
579
579
  else
580
- rr(de, e);
580
+ er(le, e);
581
581
  }
582
- if (n.call(i, "key")) {
583
- var ve = C(e), ae = Object.keys(i).filter(function(Lr) {
584
- return Lr !== "key";
585
- }), Ue = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
586
- if (!tr[ve + Ue]) {
587
- var Br = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
582
+ if (he.call(i, "key")) {
583
+ var ve = G(e), ee = Object.keys(i).filter(function(Or) {
584
+ return Or !== "key";
585
+ }), $e = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
586
+ if (!rr[ve + $e]) {
587
+ var Fr = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
588
588
  g(`A props object containing a "key" prop is being spread into JSX:
589
589
  let props = %s;
590
590
  <%s {...props} />
591
591
  React keys must be passed directly to JSX without using spread:
592
592
  let props = %s;
593
- <%s key={someKey} {...props} />`, Ue, ve, Br, ve), tr[ve + Ue] = !0;
593
+ <%s key={someKey} {...props} />`, $e, ve, Fr, ve), rr[ve + $e] = !0;
594
594
  }
595
595
  }
596
- return e === u ? Tr(Y) : Nr(Y), Y;
596
+ return e === f ? Er($) : Sr($), $;
597
597
  }
598
598
  }
599
- function Rr(e, i, l) {
600
- return ar(e, i, l, !0);
599
+ function Ir(e, i, l) {
600
+ return tr(e, i, l, !0);
601
601
  }
602
- function Sr(e, i, l) {
603
- return ar(e, i, l, !1);
602
+ function Br(e, i, l) {
603
+ return tr(e, i, l, !1);
604
604
  }
605
- var Er = Sr, Ir = Rr;
606
- Se.Fragment = u, Se.jsx = Er, Se.jsxs = Ir;
607
- })()), Se;
605
+ var Lr = Br, Dr = Ir;
606
+ Be.Fragment = f, Be.jsx = Lr, Be.jsxs = Dr;
607
+ })()), Be;
608
608
  }
609
- var ir;
610
- function Kr() {
611
- return ir || (ir = 1, process.env.NODE_ENV === "production" ? Ie.exports = Ur() : Ie.exports = Gr()), Ie.exports;
609
+ var or;
610
+ function Yr() {
611
+ return or || (or = 1, process.env.NODE_ENV === "production" ? Le.exports = Kr() : Le.exports = Hr()), Le.exports;
612
612
  }
613
- var r = Kr();
614
- const dr = ["en", "hi"], lr = {
613
+ var r = Yr();
614
+ const ur = ["en", "hi"], ir = {
615
615
  en: "English",
616
616
  hi: "हिन्दी"
617
- }, ur = {
617
+ }, fr = {
618
618
  en: {
619
619
  kundli: "Kundli",
620
620
  birthChart: "Birth Chart",
@@ -1046,39 +1046,39 @@ const dr = ["en", "hi"], lr = {
1046
1046
  astrologyGuidance: "ज्योतिष से सलाह",
1047
1047
  selectPackage: "पैकेज चुनें"
1048
1048
  }
1049
- }, mr = cr(null), Sn = ({
1049
+ }, mr = dr(null), Dn = ({
1050
1050
  locale: t,
1051
1051
  children: o
1052
1052
  }) => {
1053
- const u = { locale: t, t: (y) => ur[t]?.[y] ?? y };
1054
- return /* @__PURE__ */ r.jsx(mr.Provider, { value: u, children: o });
1053
+ const f = { locale: t, t: (b) => fr[t]?.[b] ?? b };
1054
+ return /* @__PURE__ */ r.jsx(mr.Provider, { value: f, children: o });
1055
1055
  };
1056
- function Wr() {
1056
+ function qr() {
1057
1057
  return We(mr);
1058
1058
  }
1059
- const Hr = "_container_1e1th_1", Yr = "_main_1e1th_7", qr = "_kundliHeaderNoBorder_1e1th_12", Vr = "_headerSeparator_1e1th_16", Jr = "_langDropdownWrap_1e1th_21", zr = "_langTrigger_1e1th_25", Qr = "_langIcon_1e1th_37", Xr = "_langLabel_1e1th_44", Zr = "_langMenu_1e1th_49", et = "_langOption_1e1th_55", he = {
1060
- container: Hr,
1061
- main: Yr,
1062
- kundliHeaderNoBorder: qr,
1063
- headerSeparator: Vr,
1064
- langDropdownWrap: Jr,
1065
- langTrigger: zr,
1066
- langIcon: Qr,
1067
- langLabel: Xr,
1068
- langMenu: Zr,
1069
- langOption: et
1070
- }, Le = (t) => {
1071
- const { priority: o, fetchPriority: d, width: u, height: y, ...x } = t;
1072
- return Ke.createElement("img", {
1073
- ...x,
1074
- width: u ?? 1,
1075
- height: y ?? 1,
1059
+ const Vr = "_container_1e1th_1", zr = "_main_1e1th_7", Jr = "_kundliHeaderNoBorder_1e1th_12", Qr = "_headerSeparator_1e1th_16", Xr = "_langDropdownWrap_1e1th_21", Zr = "_langTrigger_1e1th_25", et = "_langIcon_1e1th_37", rt = "_langLabel_1e1th_44", tt = "_langMenu_1e1th_49", at = "_langOption_1e1th_55", pe = {
1060
+ container: Vr,
1061
+ main: zr,
1062
+ kundliHeaderNoBorder: Jr,
1063
+ headerSeparator: Qr,
1064
+ langDropdownWrap: Xr,
1065
+ langTrigger: Zr,
1066
+ langIcon: et,
1067
+ langLabel: rt,
1068
+ langMenu: tt,
1069
+ langOption: at
1070
+ }, De = (t) => {
1071
+ const { priority: o, fetchPriority: c, width: f, height: b, ...S } = t;
1072
+ return Ge.createElement("img", {
1073
+ ...S,
1074
+ width: f ?? 1,
1075
+ height: b ?? 1,
1076
1076
  decoding: "async",
1077
- loading: x.loading ?? (o ? "eager" : "lazy"),
1078
- ...d && { fetchPriority: d }
1077
+ loading: S.loading ?? (o ? "eager" : "lazy"),
1078
+ ...c && { fetchPriority: c }
1079
1079
  });
1080
1080
  };
1081
- function rt(t) {
1081
+ function nt(t) {
1082
1082
  if (typeof window > "u" || !window.localStorage)
1083
1083
  return null;
1084
1084
  try {
@@ -1087,21 +1087,21 @@ function rt(t) {
1087
1087
  return null;
1088
1088
  }
1089
1089
  }
1090
- function tt(t, o) {
1090
+ function ot(t, o) {
1091
1091
  if (!(typeof window > "u" || !window.localStorage))
1092
1092
  try {
1093
1093
  window.localStorage.setItem(t, o);
1094
1094
  } catch {
1095
1095
  }
1096
1096
  }
1097
- function En(t) {
1097
+ function Fn(t) {
1098
1098
  if (!(typeof window > "u" || !window.localStorage))
1099
1099
  try {
1100
1100
  window.localStorage.removeItem(t);
1101
1101
  } catch {
1102
1102
  }
1103
1103
  }
1104
- function In() {
1104
+ function On() {
1105
1105
  if (typeof window > "u" || !window.localStorage)
1106
1106
  return !1;
1107
1107
  try {
@@ -1111,15 +1111,15 @@ function In() {
1111
1111
  return !1;
1112
1112
  }
1113
1113
  }
1114
- const fr = "kundli_language";
1115
- function at() {
1116
- const t = rt(fr);
1117
- return t && dr.includes(t) ? t : null;
1114
+ const hr = "kundli_language";
1115
+ function it() {
1116
+ const t = nt(hr);
1117
+ return t && ur.includes(t) ? t : null;
1118
1118
  }
1119
- function nt(t) {
1120
- tt(fr, t);
1119
+ function lt(t) {
1120
+ ot(hr, t);
1121
1121
  }
1122
- const He = cr(null), ot = {
1122
+ const Ke = dr(null), st = {
1123
1123
  fullName: "",
1124
1124
  phone: "",
1125
1125
  gender: "",
@@ -1128,344 +1128,260 @@ const He = cr(null), ot = {
1128
1128
  dateOfBirth: "",
1129
1129
  birthTime: "",
1130
1130
  birthTimeUnknown: !1,
1131
- birthPlace: ""
1132
- }, Bn = ({
1131
+ birthPlace: "",
1132
+ birthPlaceLat: void 0,
1133
+ birthPlaceLng: void 0
1134
+ }, Mn = ({
1133
1135
  locale: t,
1134
1136
  showLanguageSelector: o = !0,
1135
- showSheet: d,
1136
- userId: u,
1137
- isGlobal: y,
1138
- variant: x,
1139
- googleMapsApiKey: h,
1140
- logoUrl: N,
1141
- reportImageUrl: w,
1142
- reportImagePriority: F,
1143
- backgroundImagePriority: c,
1144
- universityLogoUrls: S,
1145
- sampleReportHref: p,
1146
- onViewSampleReport: D,
1147
- ctaHref: k,
1148
- onCtaClick: E,
1149
- onBack: A,
1150
- readMoreReviewsHref: T,
1137
+ showSheet: c,
1138
+ userId: f,
1139
+ isGlobal: b,
1140
+ variant: S,
1141
+ atlasSearchLocalities: x,
1142
+ logoUrl: j,
1143
+ reportImageUrl: A,
1144
+ reportImagePriority: E,
1145
+ backgroundImagePriority: d,
1146
+ universityLogoUrls: N,
1147
+ sampleReportHref: h,
1148
+ onViewSampleReport: I,
1149
+ ctaHref: p,
1150
+ onCtaClick: B,
1151
+ onBack: C,
1152
+ readMoreReviewsHref: y,
1151
1153
  onProceed: g,
1152
- proceedHref: G,
1153
- originalPriceLabel: _,
1154
- discountedPriceLabel: M,
1155
- discountPillLabel: O,
1156
- analytics: $,
1157
- onProceedGuidance: Z,
1158
- onLocaleChange: R,
1159
- imageComponent: B = Le,
1160
- children: z
1154
+ proceedHref: U,
1155
+ originalPriceLabel: J,
1156
+ discountedPriceLabel: v,
1157
+ discountPillLabel: D,
1158
+ analytics: z,
1159
+ onProceedGuidance: re,
1160
+ onLocaleChange: Y,
1161
+ imageComponent: M = De,
1162
+ children: se
1161
1163
  }) => {
1162
- const [U, C] = V("landing"), [L, H] = V(t ?? "en"), [J, ne] = V(ot), ge = q(!0);
1163
- X(() => {
1164
- const se = at();
1165
- se && H(se);
1166
- }, []), X(() => {
1167
- nt(L);
1168
- }, [L]), X(() => {
1164
+ const [Q, G] = K("landing"), [T, F] = K(t ?? "en"), [X, te] = K(st), ge = W(!0);
1165
+ H(() => {
1166
+ const ie = it();
1167
+ ie && F(ie);
1168
+ }, []), H(() => {
1169
+ lt(T);
1170
+ }, [T]), H(() => {
1169
1171
  if (ge.current) {
1170
1172
  ge.current = !1;
1171
1173
  return;
1172
1174
  }
1173
- R?.(L);
1174
- }, [L, R]);
1175
- const Q = Ge(
1175
+ Y?.(T);
1176
+ }, [T, Y]);
1177
+ const q = Ue(
1176
1178
  () => ({
1177
1179
  locale: t,
1178
1180
  showLanguageSelector: o,
1179
- showSheet: d,
1180
- userId: u,
1181
- isGlobal: y,
1182
- variant: x,
1183
- googleMapsApiKey: h,
1184
- logoUrl: N,
1185
- reportImageUrl: w,
1186
- reportImagePriority: F,
1187
- backgroundImagePriority: c,
1188
- universityLogoUrls: S,
1189
- sampleReportHref: p,
1190
- onViewSampleReport: D,
1191
- ctaHref: k,
1192
- onCtaClick: E,
1193
- onBack: A,
1194
- readMoreReviewsHref: T,
1181
+ showSheet: c,
1182
+ userId: f,
1183
+ isGlobal: b,
1184
+ variant: S,
1185
+ atlasSearchLocalities: x,
1186
+ logoUrl: j,
1187
+ reportImageUrl: A,
1188
+ reportImagePriority: E,
1189
+ backgroundImagePriority: d,
1190
+ universityLogoUrls: N,
1191
+ sampleReportHref: h,
1192
+ onViewSampleReport: I,
1193
+ ctaHref: p,
1194
+ onCtaClick: B,
1195
+ onBack: C,
1196
+ readMoreReviewsHref: y,
1195
1197
  onProceed: g,
1196
- proceedHref: G,
1197
- originalPriceLabel: _,
1198
- discountedPriceLabel: M,
1199
- discountPillLabel: O,
1200
- analytics: $,
1201
- onProceedGuidance: Z,
1202
- onLocaleChange: R,
1203
- imageComponent: B
1198
+ proceedHref: U,
1199
+ originalPriceLabel: J,
1200
+ discountedPriceLabel: v,
1201
+ discountPillLabel: D,
1202
+ analytics: z,
1203
+ onProceedGuidance: re,
1204
+ onLocaleChange: Y,
1205
+ imageComponent: M
1204
1206
  }),
1205
1207
  [
1206
1208
  t,
1207
1209
  o,
1208
- d,
1209
- u,
1210
- y,
1211
- x,
1212
- h,
1213
- N,
1214
- w,
1215
- F,
1216
1210
  c,
1211
+ f,
1212
+ b,
1217
1213
  S,
1218
- p,
1219
- D,
1220
- k,
1221
- E,
1214
+ x,
1215
+ j,
1222
1216
  A,
1223
- T,
1217
+ E,
1218
+ d,
1219
+ N,
1220
+ h,
1221
+ I,
1222
+ p,
1223
+ B,
1224
+ C,
1225
+ y,
1224
1226
  g,
1225
- G,
1226
- _,
1227
- M,
1228
- O,
1229
- $,
1230
- Z,
1231
- R,
1232
- B
1227
+ U,
1228
+ J,
1229
+ v,
1230
+ D,
1231
+ z,
1232
+ re,
1233
+ Y,
1234
+ M
1233
1235
  ]
1234
- ), ie = be(() => {
1235
- C("form");
1236
- }, [Q.analytics]), ue = be(() => {
1237
- C("landing"), Q.onBack?.();
1238
- }, [Q.onBack]), le = Ge(
1236
+ ), oe = Te(() => {
1237
+ G("form");
1238
+ }, [q.analytics]), ce = Te(() => {
1239
+ G("landing"), q.onBack?.();
1240
+ }, [q.onBack]), ae = Ue(
1239
1241
  () => ({
1240
- view: U,
1241
- locale: L,
1242
- setLocale: H,
1243
- config: Q,
1244
- formValues: J,
1245
- setFormValues: ne,
1246
- goToForm: ie,
1247
- goToPage: ue,
1248
- onProceed: Q.onProceed,
1249
- onProceedGuidance: Q.onProceedGuidance
1242
+ view: Q,
1243
+ locale: T,
1244
+ setLocale: F,
1245
+ config: q,
1246
+ formValues: X,
1247
+ setFormValues: te,
1248
+ goToForm: oe,
1249
+ goToPage: ce,
1250
+ onProceed: q.onProceed,
1251
+ onProceedGuidance: q.onProceedGuidance
1250
1252
  }),
1251
- [U, L, Q, J, ie, ue]
1253
+ [Q, T, q, X, oe, ce]
1252
1254
  );
1253
- return /* @__PURE__ */ r.jsx(He.Provider, { value: le, children: z });
1255
+ return /* @__PURE__ */ r.jsx(Ke.Provider, { value: ae, children: se });
1254
1256
  };
1255
- function Ne() {
1256
- return We(He);
1257
+ function Re() {
1258
+ return We(Ke);
1257
1259
  }
1258
- function Ln() {
1259
- const t = We(He);
1260
+ function $n() {
1261
+ const t = We(Ke);
1260
1262
  if (!t)
1261
1263
  throw new Error("useKundliContextOrThrow must be used within KundliProvider");
1262
1264
  return t;
1263
1265
  }
1264
- const it = "_header_19172_1", lt = "_centered_19172_8", sr = {
1265
- header: it,
1266
- centered: lt
1267
- }, st = ({
1266
+ const ct = "_header_19172_1", dt = "_centered_19172_8", lr = {
1267
+ header: ct,
1268
+ centered: dt
1269
+ }, ut = ({
1268
1270
  t,
1269
1271
  onBack: o,
1270
- className: d = "",
1271
- align: u = "left"
1272
+ className: c = "",
1273
+ align: f = "left"
1272
1274
  }) => /* @__PURE__ */ r.jsx(
1273
- Dr,
1275
+ Mr,
1274
1276
  {
1275
1277
  title: t("formTitle"),
1276
1278
  subtitle: t("formSubtitle"),
1277
1279
  onBack: o,
1278
1280
  backAriaLabel: t("back"),
1279
- className: `${sr.header} ${u === "center" ? sr.centered : ""} ${d}`
1281
+ className: `${lr.header} ${f === "center" ? lr.centered : ""} ${c}`
1280
1282
  }
1281
- ), ct = "_wrap_kiw0x_1", dt = "_card_kiw0x_5", ut = "_cardInner_kiw0x_12", mt = "_field_kiw0x_44", ft = "_labelRow_kiw0x_48", pt = "_label_kiw0x_48", ht = "_req_kiw0x_57", gt = "_help_kiw0x_61", _t = "_choiceRow_kiw0x_68", bt = "_choiceBtn_kiw0x_74", yt = "_choiceBtnActive_kiw0x_99", kt = "_infoBtn_kiw0x_105", vt = "_infoImg_kiw0x_122", xt = "_infoWrap_kiw0x_128", wt = "_tooltip_kiw0x_134", Pt = "_tooltipArrow_kiw0x_150", At = "_inputWrap_kiw0x_161", Ct = "_isdWrap_kiw0x_165", jt = "_phoneInputGroup_kiw0x_169", Nt = "_isdSelectWrap_kiw0x_178", Tt = "_isdSelectTrigger_kiw0x_197", Rt = "_isdDropdown_kiw0x_214", St = "_isdSearchWrap_kiw0x_229", Et = "_isdSearchInput_kiw0x_237", It = "_isdOption_kiw0x_255", Bt = "_isdOptionActive_kiw0x_275", Lt = "_isdCountryName_kiw0x_281", Dt = "_isdCountryCode_kiw0x_288", Ot = "_isdNoResult_kiw0x_295", Ft = "_suggestions_kiw0x_302", Mt = "_suggestionItem_kiw0x_315", $t = "_suggestionMain_kiw0x_333", Ut = "_suggestionSecondary_kiw0x_339", Gt = "_suggestionsHint_kiw0x_344", Kt = "_timePopover_kiw0x_359", Wt = "_timePickerRow_kiw0x_375", Ht = "_timePickerSelect_kiw0x_381", Yt = "_timePickerColon_kiw0x_397", qt = "_meridiemToggle_kiw0x_405", Vt = "_meridiemBtn_kiw0x_414", Jt = "_meridiemActive_kiw0x_429", zt = "_timePopoverActions_kiw0x_434", Qt = "_timePopoverBtn_kiw0x_440", Xt = "_timePopoverOk_kiw0x_459", Zt = "_input_kiw0x_161", ea = "_phoneInput_kiw0x_169", ra = "_iconBtn_kiw0x_512", ta = "_iconBtnInteractive_kiw0x_518", aa = "_iconImg_kiw0x_537", na = "_checkboxRow_kiw0x_543", oa = "_checkbox_kiw0x_543", ia = "_checkboxText_kiw0x_581", a = {
1282
- wrap: ct,
1283
- card: dt,
1284
- cardInner: ut,
1285
- field: mt,
1286
- labelRow: ft,
1287
- label: pt,
1288
- req: ht,
1289
- help: gt,
1290
- choiceRow: _t,
1291
- choiceBtn: bt,
1292
- choiceBtnActive: yt,
1293
- infoBtn: kt,
1294
- infoImg: vt,
1295
- infoWrap: xt,
1296
- tooltip: wt,
1297
- tooltipArrow: Pt,
1298
- inputWrap: At,
1299
- isdWrap: Ct,
1300
- phoneInputGroup: jt,
1301
- isdSelectWrap: Nt,
1302
- isdSelectTrigger: Tt,
1303
- isdDropdown: Rt,
1304
- isdSearchWrap: St,
1305
- isdSearchInput: Et,
1306
- isdOption: It,
1307
- isdOptionActive: Bt,
1308
- isdCountryName: Lt,
1309
- isdCountryCode: Dt,
1310
- isdNoResult: Ot,
1311
- suggestions: Ft,
1312
- suggestionItem: Mt,
1313
- suggestionMain: $t,
1314
- suggestionSecondary: Ut,
1315
- suggestionsHint: Gt,
1316
- timePopover: Kt,
1317
- timePickerRow: Wt,
1318
- timePickerSelect: Ht,
1319
- timePickerColon: Yt,
1320
- meridiemToggle: qt,
1321
- meridiemBtn: Vt,
1322
- meridiemActive: Jt,
1323
- timePopoverActions: zt,
1324
- timePopoverBtn: Qt,
1325
- timePopoverOk: Xt,
1326
- input: Zt,
1327
- phoneInput: ea,
1328
- iconBtn: ra,
1329
- iconBtnInteractive: ta,
1330
- iconImg: aa,
1331
- checkboxRow: na,
1332
- checkbox: oa,
1333
- checkboxText: ia
1334
- };
1335
- let Be = null;
1336
- const la = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : Be || (Be = new Promise((d, u) => {
1337
- const y = document.querySelector(
1338
- 'script[data-google-maps-places="true"]'
1339
- );
1340
- if (y) {
1341
- y.addEventListener("load", () => d()), y.addEventListener(
1342
- "error",
1343
- () => u(new Error("Failed to load Google Maps API"))
1344
- );
1345
- return;
1346
- }
1347
- const x = document.createElement("script"), h = new URL("https://maps.googleapis.com/maps/api/js");
1348
- h.searchParams.set("key", t), h.searchParams.set("libraries", "places"), h.searchParams.set("loading", "async"), o && h.searchParams.set("language", o), x.src = h.toString(), x.async = !0, x.defer = !0, x.setAttribute("data-google-maps-places", "true"), x.onload = () => {
1349
- const N = Date.now(), w = () => {
1350
- if (window.google?.maps?.places) {
1351
- d();
1352
- return;
1353
- }
1354
- if (Date.now() - N > 2e3) {
1355
- u(
1356
- new Error(
1357
- "Google Maps loaded but Places library is unavailable. Check API key restrictions / enabled APIs."
1358
- )
1359
- );
1360
- return;
1361
- }
1362
- window.setTimeout(w, 50);
1363
- };
1364
- w();
1365
- }, x.onerror = () => u(new Error("Failed to load Google Maps API")), document.head.appendChild(x);
1366
- }), Be), sa = (t) => {
1367
- const { apiKey: o, language: d = "en", restrictCountry: u, deferLoad: y = !1 } = t, [x, h] = V(!1), [N, w] = V([]), [F, c] = V(!1), [S, p] = V(null), [D, k] = V(!y), E = q(null), A = q(null), T = q(null), g = be(() => {
1368
- y && k(!0);
1369
- }, [y]);
1370
- X(() => {
1371
- if (!o || !D) {
1372
- h(!1), p(null);
1373
- return;
1374
- }
1375
- la(o, d).then(() => {
1376
- E.current = new google.maps.places.AutocompleteService();
1377
- const O = document.createElement("div");
1378
- A.current = new google.maps.places.PlacesService(O), T.current = new google.maps.places.AutocompleteSessionToken(), h(!0), p(null);
1379
- }).catch((O) => {
1380
- h(!1), p(O?.message || "Failed to load location service");
1381
- });
1382
- }, [o, d, D]);
1383
- const G = be(
1384
- async (O) => {
1385
- if (!O || O.length < 2 || !E.current) {
1386
- w([]);
1283
+ ), ft = "_wrap_119w3_1", mt = "_card_119w3_5", ht = "_cardInner_119w3_12", pt = "_field_119w3_44", gt = "_labelRow_119w3_48", _t = "_label_119w3_48", bt = "_req_119w3_57", yt = "_help_119w3_61", vt = "_choiceRow_119w3_68", kt = "_choiceBtn_119w3_74", wt = "_choiceBtnActive_119w3_99", xt = "_infoBtn_119w3_105", Pt = "_infoImg_119w3_122", At = "_infoWrap_119w3_128", Ct = "_tooltip_119w3_134", jt = "_tooltipArrow_119w3_150", Nt = "_inputWrap_119w3_161", Tt = "_isdWrap_119w3_165", Rt = "_phoneInputGroup_119w3_169", St = "_isdSelectWrap_119w3_178", Et = "_isdSelectTrigger_119w3_197", It = "_isdDropdown_119w3_214", Bt = "_isdSearchWrap_119w3_229", Lt = "_isdSearchInput_119w3_237", Dt = "_isdOption_119w3_255", Ft = "_isdOptionActive_119w3_275", Ot = "_isdCountryName_119w3_281", Mt = "_isdCountryCode_119w3_288", $t = "_isdNoResult_119w3_295", Ut = "_suggestions_119w3_302", Gt = "_suggestionItem_119w3_315", Wt = "_suggestionMain_119w3_333", Kt = "_suggestionSecondary_119w3_339", Ht = "_suggestionsHint_119w3_344", Yt = "_fieldError_119w3_359", qt = "_timePopover_119w3_366", Vt = "_timePickerRow_119w3_382", zt = "_timePickerSelect_119w3_388", Jt = "_timePickerColon_119w3_404", Qt = "_meridiemToggle_119w3_412", Xt = "_meridiemBtn_119w3_421", Zt = "_meridiemActive_119w3_436", ea = "_timePopoverActions_119w3_441", ra = "_timePopoverBtn_119w3_447", ta = "_timePopoverOk_119w3_466", aa = "_input_119w3_161", na = "_phoneInput_119w3_169", oa = "_iconBtn_119w3_519", ia = "_iconBtnInteractive_119w3_525", la = "_iconImg_119w3_544", sa = "_checkboxRow_119w3_550", ca = "_checkbox_119w3_550", da = "_checkboxText_119w3_588", a = {
1284
+ wrap: ft,
1285
+ card: mt,
1286
+ cardInner: ht,
1287
+ field: pt,
1288
+ labelRow: gt,
1289
+ label: _t,
1290
+ req: bt,
1291
+ help: yt,
1292
+ choiceRow: vt,
1293
+ choiceBtn: kt,
1294
+ choiceBtnActive: wt,
1295
+ infoBtn: xt,
1296
+ infoImg: Pt,
1297
+ infoWrap: At,
1298
+ tooltip: Ct,
1299
+ tooltipArrow: jt,
1300
+ inputWrap: Nt,
1301
+ isdWrap: Tt,
1302
+ phoneInputGroup: Rt,
1303
+ isdSelectWrap: St,
1304
+ isdSelectTrigger: Et,
1305
+ isdDropdown: It,
1306
+ isdSearchWrap: Bt,
1307
+ isdSearchInput: Lt,
1308
+ isdOption: Dt,
1309
+ isdOptionActive: Ft,
1310
+ isdCountryName: Ot,
1311
+ isdCountryCode: Mt,
1312
+ isdNoResult: $t,
1313
+ suggestions: Ut,
1314
+ suggestionItem: Gt,
1315
+ suggestionMain: Wt,
1316
+ suggestionSecondary: Kt,
1317
+ suggestionsHint: Ht,
1318
+ fieldError: Yt,
1319
+ timePopover: qt,
1320
+ timePickerRow: Vt,
1321
+ timePickerSelect: zt,
1322
+ timePickerColon: Jt,
1323
+ meridiemToggle: Qt,
1324
+ meridiemBtn: Xt,
1325
+ meridiemActive: Zt,
1326
+ timePopoverActions: ea,
1327
+ timePopoverBtn: ra,
1328
+ timePopoverOk: ta,
1329
+ input: aa,
1330
+ phoneInput: na,
1331
+ iconBtn: oa,
1332
+ iconBtnInteractive: ia,
1333
+ iconImg: la,
1334
+ checkboxRow: sa,
1335
+ checkbox: ca,
1336
+ checkboxText: da
1337
+ }, sr = (t) => typeof t == "number" && Number.isFinite(t), ua = (t) => {
1338
+ const o = typeof t?.limit == "number" && t.limit > 0 ? Math.min(t.limit, 20) : 8, c = typeof t?.offset == "number" && t.offset >= 0 ? t.offset : 0;
1339
+ return {
1340
+ limit: o,
1341
+ offset: c,
1342
+ restrictCountry: t?.restrictCountry
1343
+ };
1344
+ }, fa = (t) => {
1345
+ const { searchLocalities: o, restrictCountry: c } = t, [f, b] = K([]), [S, x] = K(!1), [j, A] = K(null), E = W(0);
1346
+ H(() => {
1347
+ A(null);
1348
+ }, [o]);
1349
+ const d = Te(
1350
+ async (h) => {
1351
+ if (!h || h.length < 2 || !o) {
1352
+ b([]);
1387
1353
  return;
1388
1354
  }
1389
- c(!0);
1355
+ const I = ++E.current;
1356
+ x(!0), A(null);
1390
1357
  try {
1391
- const $ = {
1392
- input: O,
1393
- types: ["(cities)"],
1394
- sessionToken: T.current ?? void 0
1395
- };
1396
- u && ($.componentRestrictions = { country: u });
1397
- const Z = await new Promise((R, B) => {
1398
- E.current.getPlacePredictions(
1399
- $,
1400
- (z, U) => {
1401
- U === google.maps.places.PlacesServiceStatus.OK && z ? R(z) : U === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? R([]) : B(new Error(`Places API error: ${U}`));
1402
- }
1403
- );
1404
- });
1405
- w(
1406
- Z.map((R) => ({
1407
- place_id: R.place_id,
1408
- description: R.description,
1409
- structured_formatting: {
1410
- main_text: R.structured_formatting?.main_text || R.description,
1411
- secondary_text: R.structured_formatting?.secondary_text || ""
1412
- }
1413
- }))
1414
- );
1415
- } catch {
1416
- w([]);
1358
+ const p = ua({ restrictCountry: c }), B = await o(h, p);
1359
+ if (I !== E.current) return;
1360
+ const C = (B || []).filter(
1361
+ (y) => !!y?.id && !!y?.description && sr(y?.lat) && sr(y?.lng)
1362
+ ).map((y) => ({
1363
+ id: y.id,
1364
+ description: y.description,
1365
+ secondary_text: y.secondaryText,
1366
+ lat: y.lat,
1367
+ lng: y.lng
1368
+ }));
1369
+ b(C);
1370
+ } catch (p) {
1371
+ if (I !== E.current) return;
1372
+ b([]), A(p?.message || "Failed to fetch locations");
1417
1373
  } finally {
1418
- c(!1);
1419
- }
1420
- },
1421
- [u]
1422
- ), _ = be(
1423
- async (O) => {
1424
- if (!A.current) return null;
1425
- try {
1426
- const $ = await new Promise(
1427
- (C, L) => {
1428
- A.current.getDetails(
1429
- {
1430
- placeId: O,
1431
- fields: ["geometry", "address_components", "formatted_address"],
1432
- sessionToken: T.current ?? void 0
1433
- },
1434
- (H, J) => {
1435
- J === google.maps.places.PlacesServiceStatus.OK && H ? C(H) : L(new Error(`Place details error: ${J}`));
1436
- }
1437
- );
1438
- }
1439
- );
1440
- T.current = new google.maps.places.AutocompleteSessionToken();
1441
- const Z = $.geometry?.location?.lat() || 0, R = $.geometry?.location?.lng() || 0;
1442
- let B = "", z = "", U = "";
1443
- return $.address_components?.forEach((C) => {
1444
- C.types.includes("locality") && (B = C.long_name), C.types.includes("administrative_area_level_1") && (z = C.long_name), C.types.includes("country") && (U = C.long_name);
1445
- }), {
1446
- display_name: $.formatted_address || "",
1447
- lat: Z,
1448
- lng: R,
1449
- city: B,
1450
- state: z,
1451
- country: U
1452
- };
1453
- } catch {
1454
- return null;
1374
+ I === E.current && x(!1);
1455
1375
  }
1456
1376
  },
1457
- []
1458
- ), M = be(() => w([]), []);
1377
+ [c, o]
1378
+ ), N = Te(() => b([]), []);
1459
1379
  return {
1460
- isLoaded: x,
1461
- predictions: N,
1462
- isSearching: F,
1463
- loadError: S,
1464
- searchPlaces: G,
1465
- getPlaceDetails: _,
1466
- clearPredictions: M,
1467
- triggerLoad: g
1468
- // Call this to start loading Google Maps when deferred
1380
+ predictions: f,
1381
+ isSearching: S,
1382
+ loadError: j,
1383
+ searchPlaces: d,
1384
+ clearPredictions: N
1469
1385
  };
1470
1386
  }, je = {
1471
1387
  time: "https://srm-cdn.a4b.io/yoda/1770372014782.svg",
@@ -1544,108 +1460,119 @@ const la = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
1544
1460
  { code: "+977", country: "Nepal" }
1545
1461
  ];
1546
1462
  pr.map((t) => t.code);
1547
- const ca = {}, da = ({
1463
+ const gr = 10, _r = (t) => t.replace(/\D/g, ""), cr = (t) => _r(t).slice(0, gr), ma = (t) => _r(t).length === gr;
1464
+ function ha(t, o) {
1465
+ const c = W(!1);
1466
+ return { trackPhoneFilled: (b) => {
1467
+ if (!ma(b)) {
1468
+ c.current = !1;
1469
+ return;
1470
+ }
1471
+ c.current || (c.current = !0, t?.trackPhoneSectionFilled?.({ phone: `${o}-${b}` }));
1472
+ } };
1473
+ }
1474
+ const pa = ({
1548
1475
  t,
1549
1476
  values: o,
1550
- onChange: d,
1551
- phoneIsdCode: u,
1552
- onPhoneIsdCodeChange: y,
1553
- showV1ExtraFields: x = !1,
1554
- analytics: h,
1555
- googleMapsApiKey: N,
1556
- className: w = ""
1477
+ onChange: c,
1478
+ phoneIsdCode: f,
1479
+ onPhoneIsdCodeChange: b,
1480
+ showV1ExtraFields: S = !1,
1481
+ analytics: x,
1482
+ atlasSearchLocalities: j,
1483
+ className: A = ""
1557
1484
  }) => {
1558
- const F = Ne(), c = F?.config?.analytics ?? h, S = F?.config.isGlobal ?? !0;
1559
- F?.config?.variant;
1560
- const p = F?.config?.googleMapsApiKey, [D, k] = V(!1), [E, A] = V(""), T = q(null), g = q(null), G = q({}), _ = (n) => d({ ...o, ...n }), M = (n, s) => {
1561
- s.trim() && !G.current[n] && (G.current[n] = !0, {
1562
- fullName: () => c?.trackNameSectionFilled?.(),
1563
- phone: () => c?.trackPhoneSectionFilled?.(),
1564
- email: () => c?.trackEmailSectionFilled?.(),
1565
- dateOfBirth: () => c?.trackDobFilled?.(),
1566
- birthTime: () => c?.trackTimeFilled?.(),
1567
- birthPlace: () => c?.trackPlaceOfBirthChosen?.()
1485
+ const E = Re(), d = E?.config?.analytics ?? x, N = E?.config.isGlobal ?? !0, h = E?.config?.atlasSearchLocalities, [I, p] = K(!1), [B, C] = K(""), y = W(null), g = W(null), U = W({}), { trackPhoneFilled: J } = ha(d, f), v = (n) => c({ ...o, ...n }), D = (n, s) => {
1486
+ if (n === "phone") {
1487
+ J(s);
1488
+ return;
1489
+ }
1490
+ s.trim() && !U.current[n] && (U.current[n] = !0, {
1491
+ fullName: () => d?.trackNameSectionFilled?.(),
1492
+ email: () => d?.trackEmailSectionFilled?.(),
1493
+ dateOfBirth: () => d?.trackDobFilled?.(),
1494
+ birthTime: () => d?.trackTimeFilled?.(),
1495
+ birthPlace: () => d?.trackPlaceOfBirthChosen?.()
1568
1496
  }[n]?.());
1569
- }, O = (n) => n.replace(/\D/g, "").slice(0, 10), $ = E.trim().toLowerCase(), Z = pr.filter((n) => $ ? n.country.toLowerCase().includes($) || n.code.includes($) : !0), R = q(null);
1570
- q(null);
1571
- const B = q(null), z = q(0), U = q(null), [C, L] = V(!1), [H, J] = V({ hour12: 12, minute: "00", meridiem: "AM" }), ne = (n) => String(n).padStart(2, "0"), ge = (n) => {
1497
+ }, z = B.trim().toLowerCase(), re = pr.filter((n) => z ? n.country.toLowerCase().includes(z) || n.code.includes(z) : !0), Y = W(null);
1498
+ W(null);
1499
+ const M = W(null), se = W(0), Q = W(null), [G, T] = K(!1), [F, X] = K({ hour12: 12, minute: "00", meridiem: "AM" }), te = (n) => String(n).padStart(2, "0"), ge = (n) => {
1572
1500
  const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
1573
1501
  if (!s) return n;
1574
- const K = Number(s[1]), te = s[2], Te = K >= 12 ? "PM" : "AM";
1575
- return `${K % 12 === 0 ? 12 : K % 12}:${te} ${Te}`;
1576
- }, Q = (n) => {
1502
+ const L = Number(s[1]), fe = s[2], Se = L >= 12 ? "PM" : "AM";
1503
+ return `${L % 12 === 0 ? 12 : L % 12}:${fe} ${Se}`;
1504
+ }, q = (n) => {
1577
1505
  const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
1578
1506
  if (!s) return { hour12: 12, minute: "00", meridiem: "AM" };
1579
- const K = Number(s[1]), te = s[2], Te = K >= 12 ? "PM" : "AM";
1580
- return { hour12: K % 12 === 0 ? 12 : K % 12, minute: te, meridiem: Te };
1581
- }, ie = (n) => {
1582
- const s = Math.min(12, Math.max(1, n.hour12)), K = /^([0-5]\d)$/.test(n.minute) ? n.minute : "00";
1583
- let te = s % 12;
1584
- return n.meridiem === "PM" && (te += 12), `${ne(te)}:${K}`;
1585
- }, ue = q(null), [le, se] = V(!1), [fe, oe] = V(
1507
+ const L = Number(s[1]), fe = s[2], Se = L >= 12 ? "PM" : "AM";
1508
+ return { hour12: L % 12 === 0 ? 12 : L % 12, minute: fe, meridiem: Se };
1509
+ }, oe = (n) => {
1510
+ const s = Math.min(12, Math.max(1, n.hour12)), L = /^([0-5]\d)$/.test(n.minute) ? n.minute : "00";
1511
+ let fe = s % 12;
1512
+ return n.meridiem === "PM" && (fe += 12), `${te(fe)}:${L}`;
1513
+ }, ce = W(null), [ae, ie] = K(!1), [me, ne] = K(
1586
1514
  null
1587
- ), pe = N ?? p ?? ca?.VITE_GOOGLE_MAPS_API_KEY, me = (o.birthPlace ?? "").trim(), ee = S ? void 0 : "in", ye = "en", {
1588
- predictions: ce,
1589
- isSearching: we,
1590
- loadError: _e,
1515
+ ), de = (o.birthPlace ?? "").trim(), _e = N ? void 0 : "in", V = j ?? h, ye = Number.isFinite(o.birthPlaceLat) && Number.isFinite(o.birthPlaceLng), ue = de.length > 0 && !ye && !ae, {
1516
+ predictions: we,
1517
+ isSearching: be,
1518
+ loadError: xe,
1591
1519
  searchPlaces: Pe,
1592
- clearPredictions: ke
1593
- } = sa({
1594
- apiKey: pe,
1595
- language: ye,
1596
- restrictCountry: ee
1520
+ clearPredictions: k
1521
+ } = fa({
1522
+ searchLocalities: V,
1523
+ restrictCountry: _e
1597
1524
  });
1598
- X(() => {
1525
+ H(() => {
1599
1526
  const n = (s) => {
1600
- ue.current && (ue.current.contains(s.target) || se(!1));
1527
+ ce.current && (ce.current.contains(s.target) || ie(!1));
1601
1528
  };
1602
1529
  return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
1603
- }, []), X(() => {
1530
+ }, []), H(() => {
1604
1531
  const n = (s) => {
1605
- T.current && (T.current.contains(s.target) || (k(!1), A("")));
1532
+ y.current && (y.current.contains(s.target) || (p(!1), C("")));
1606
1533
  };
1607
1534
  return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
1608
- }, []), X(() => {
1609
- if (!D) return;
1535
+ }, []), H(() => {
1536
+ if (!I) return;
1610
1537
  const n = window.setTimeout(() => {
1611
1538
  g.current?.focus();
1612
1539
  }, 0);
1613
1540
  return () => window.clearTimeout(n);
1614
- }, [D]), X(() => {
1615
- if (!le) return;
1616
- if (me.length < 2) {
1617
- ke();
1541
+ }, [I]), H(() => {
1542
+ if (!ae) return;
1543
+ if (de.length < 2) {
1544
+ k();
1618
1545
  return;
1619
1546
  }
1620
1547
  const n = window.setTimeout(async () => {
1621
- await Pe(me);
1548
+ await Pe(de);
1622
1549
  }, 250);
1623
1550
  return () => window.clearTimeout(n);
1624
- }, [ke, le, me, Pe]);
1625
- const P = (n) => {
1551
+ }, [k, ae, de, Pe]);
1552
+ const he = (n) => {
1626
1553
  const s = n.current;
1627
1554
  if (!(!s || s.disabled)) {
1628
- if (document.activeElement === s && B.current === s && Date.now() - z.current < 6e4) {
1555
+ if (document.activeElement === s && M.current === s && Date.now() - se.current < 6e4) {
1629
1556
  s.blur();
1630
1557
  return;
1631
1558
  }
1632
1559
  if (typeof s.showPicker == "function") {
1633
- s.showPicker(), B.current = s, z.current = Date.now();
1560
+ s.showPicker(), M.current = s, se.current = Date.now();
1634
1561
  return;
1635
1562
  }
1636
- s.focus(), B.current = s, z.current = Date.now();
1563
+ s.focus(), M.current = s, se.current = Date.now();
1637
1564
  }
1638
1565
  };
1639
- return X(() => {
1566
+ return H(() => {
1640
1567
  const n = (s) => {
1641
- U.current && (U.current.contains(s.target) || L(!1));
1568
+ Q.current && (Q.current.contains(s.target) || T(!1));
1642
1569
  };
1643
1570
  return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
1644
- }, []), X(() => {
1645
- const n = (K) => {
1646
- K.target?.closest?.("[data-info-tooltip]") == null && oe(null);
1647
- }, s = (K) => {
1648
- K.key === "Escape" && oe(null);
1571
+ }, []), H(() => {
1572
+ const n = (L) => {
1573
+ L.target?.closest?.("[data-info-tooltip]") == null && ne(null);
1574
+ }, s = (L) => {
1575
+ L.key === "Escape" && ne(null);
1649
1576
  };
1650
1577
  return document.addEventListener("mousedown", n), document.addEventListener("keydown", s), () => {
1651
1578
  document.removeEventListener("mousedown", n), document.removeEventListener("keydown", s);
@@ -1653,7 +1580,7 @@ const ca = {}, da = ({
1653
1580
  }, []), /* @__PURE__ */ r.jsx(
1654
1581
  "section",
1655
1582
  {
1656
- className: `${a.wrap} ${w}`,
1583
+ className: `${a.wrap} ${A}`,
1657
1584
  "aria-label": t("formTitle"),
1658
1585
  children: /* @__PURE__ */ r.jsx("div", { className: a.card, children: /* @__PURE__ */ r.jsxs("div", { className: a.cardInner, children: [
1659
1586
  /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
@@ -1668,10 +1595,10 @@ const ca = {}, da = ({
1668
1595
  className: a.input,
1669
1596
  type: "text",
1670
1597
  value: o.fullName,
1671
- onFocus: () => c?.trackNameSectionClicked?.(),
1598
+ onFocus: () => d?.trackNameSectionClicked?.(),
1672
1599
  onChange: (n) => {
1673
1600
  const s = n.target.value;
1674
- _({ fullName: s }), M("fullName", s);
1601
+ v({ fullName: s }), D("fullName", s);
1675
1602
  },
1676
1603
  placeholder: t("formFullNamePlaceholder"),
1677
1604
  autoComplete: "name"
@@ -1681,9 +1608,9 @@ const ca = {}, da = ({
1681
1608
  /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
1682
1609
  /* @__PURE__ */ r.jsx("div", { className: a.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: a.label, htmlFor: "kundli-phone", children: [
1683
1610
  t("formPhone"),
1684
- !S && /* @__PURE__ */ r.jsx("span", { className: a.req, children: "*" })
1611
+ !N && /* @__PURE__ */ r.jsx("span", { className: a.req, children: "*" })
1685
1612
  ] }) }),
1686
- /* @__PURE__ */ r.jsx("div", { className: a.inputWrap, children: /* @__PURE__ */ r.jsxs("div", { className: a.isdWrap, ref: T, children: [
1613
+ /* @__PURE__ */ r.jsx("div", { className: a.inputWrap, children: /* @__PURE__ */ r.jsxs("div", { className: a.isdWrap, ref: y, children: [
1687
1614
  /* @__PURE__ */ r.jsxs("div", { className: a.phoneInputGroup, children: [
1688
1615
  /* @__PURE__ */ r.jsx("div", { className: a.isdSelectWrap, children: /* @__PURE__ */ r.jsx(
1689
1616
  "button",
@@ -1691,11 +1618,11 @@ const ca = {}, da = ({
1691
1618
  type: "button",
1692
1619
  className: a.isdSelectTrigger,
1693
1620
  "aria-haspopup": "listbox",
1694
- "aria-expanded": D,
1621
+ "aria-expanded": I,
1695
1622
  onClick: () => {
1696
- k((n) => !n), A("");
1623
+ p((n) => !n), C("");
1697
1624
  },
1698
- children: u
1625
+ children: f
1699
1626
  }
1700
1627
  ) }),
1701
1628
  /* @__PURE__ */ r.jsx(
@@ -1705,22 +1632,22 @@ const ca = {}, da = ({
1705
1632
  className: `${a.input} ${a.phoneInput}`,
1706
1633
  type: "tel",
1707
1634
  value: o.phone ?? "",
1708
- onFocus: () => c?.trackPhoneSectionClicked?.(),
1635
+ onFocus: () => d?.trackPhoneSectionClicked?.(),
1709
1636
  onChange: (n) => {
1710
1637
  const s = n.target.value;
1711
- _({ phone: O(s) }), M("phone", O(s));
1638
+ v({ phone: cr(s) }), D("phone", cr(s));
1712
1639
  },
1713
1640
  placeholder: t("formPhonePlaceholder"),
1714
1641
  autoComplete: "tel",
1715
1642
  inputMode: "numeric",
1716
1643
  pattern: "[0-9]{10}",
1717
1644
  maxLength: 10,
1718
- required: !S,
1719
- "aria-required": !S
1645
+ required: !N,
1646
+ "aria-required": !N
1720
1647
  }
1721
1648
  )
1722
1649
  ] }),
1723
- D && /* @__PURE__ */ r.jsxs(
1650
+ I && /* @__PURE__ */ r.jsxs(
1724
1651
  "div",
1725
1652
  {
1726
1653
  className: a.isdDropdown,
@@ -1732,22 +1659,22 @@ const ca = {}, da = ({
1732
1659
  {
1733
1660
  ref: g,
1734
1661
  type: "text",
1735
- value: E,
1736
- onChange: (n) => A(n.target.value),
1662
+ value: B,
1663
+ onChange: (n) => C(n.target.value),
1737
1664
  placeholder: "Search country",
1738
1665
  className: a.isdSearchInput,
1739
1666
  "aria-label": "Search country"
1740
1667
  }
1741
1668
  ) }),
1742
- Z.length > 0 ? Z.map((n) => /* @__PURE__ */ r.jsxs(
1669
+ re.length > 0 ? re.map((n) => /* @__PURE__ */ r.jsxs(
1743
1670
  "button",
1744
1671
  {
1745
1672
  type: "button",
1746
1673
  role: "option",
1747
- "aria-selected": n.code === u,
1748
- className: `${a.isdOption} ${n.code === u ? a.isdOptionActive : ""}`,
1674
+ "aria-selected": n.code === f,
1675
+ className: `${a.isdOption} ${n.code === f ? a.isdOptionActive : ""}`,
1749
1676
  onClick: () => {
1750
- y(n.code), k(!1), A("");
1677
+ b(n.code), p(!1), C("");
1751
1678
  },
1752
1679
  children: [
1753
1680
  /* @__PURE__ */ r.jsx("span", { className: a.isdCountryName, children: n.country }),
@@ -1761,7 +1688,7 @@ const ca = {}, da = ({
1761
1688
  )
1762
1689
  ] }) })
1763
1690
  ] }),
1764
- x && /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
1691
+ S && /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
1765
1692
  /* @__PURE__ */ r.jsx("div", { className: a.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: a.label, children: [
1766
1693
  t("formGender"),
1767
1694
  /* @__PURE__ */ r.jsx("span", { className: a.req, children: "*" })
@@ -1780,7 +1707,7 @@ const ca = {}, da = ({
1780
1707
  type: "button",
1781
1708
  className: `${a.choiceBtn} ${o.gender === "male" ? a.choiceBtnActive : ""}`,
1782
1709
  onClick: () => {
1783
- _({ gender: "male" }), c?.trackGenderSelected?.({
1710
+ v({ gender: "male" }), d?.trackGenderSelected?.({
1784
1711
  gender: "male"
1785
1712
  });
1786
1713
  },
@@ -1796,7 +1723,7 @@ const ca = {}, da = ({
1796
1723
  type: "button",
1797
1724
  className: `${a.choiceBtn} ${o.gender === "female" ? a.choiceBtnActive : ""}`,
1798
1725
  onClick: () => {
1799
- _({ gender: "female" }), c?.trackGenderSelected?.({
1726
+ v({ gender: "female" }), d?.trackGenderSelected?.({
1800
1727
  gender: "female"
1801
1728
  });
1802
1729
  },
@@ -1809,7 +1736,7 @@ const ca = {}, da = ({
1809
1736
  }
1810
1737
  )
1811
1738
  ] }),
1812
- S && /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
1739
+ N && /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
1813
1740
  /* @__PURE__ */ r.jsx("div", { className: a.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: a.label, htmlFor: "kundli-email", children: [
1814
1741
  t("formEmail"),
1815
1742
  /* @__PURE__ */ r.jsx("span", { className: a.req, children: "*" })
@@ -1822,7 +1749,7 @@ const ca = {}, da = ({
1822
1749
  className: a.input,
1823
1750
  type: "email",
1824
1751
  value: o.email,
1825
- onChange: (n) => _({ email: n.target.value }),
1752
+ onChange: (n) => v({ email: n.target.value }),
1826
1753
  placeholder: t("formEmailPlaceholder"),
1827
1754
  autoComplete: "email",
1828
1755
  required: !0,
@@ -1843,9 +1770,9 @@ const ca = {}, da = ({
1843
1770
  type: "button",
1844
1771
  className: a.infoBtn,
1845
1772
  "aria-label": t("info"),
1846
- "aria-expanded": fe === "dob",
1773
+ "aria-expanded": me === "dob",
1847
1774
  onClick: () => {
1848
- oe((n) => n === "dob" ? null : "dob"), c?.trackInfoIconClicked?.({ fieldName: "dob" });
1775
+ ne((n) => n === "dob" ? null : "dob"), d?.trackInfoIconClicked?.({ fieldName: "dob" });
1849
1776
  },
1850
1777
  children: /* @__PURE__ */ r.jsx(
1851
1778
  "img",
@@ -1858,7 +1785,7 @@ const ca = {}, da = ({
1858
1785
  )
1859
1786
  }
1860
1787
  ),
1861
- fe === "dob" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
1788
+ me === "dob" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
1862
1789
  t("formDobInfo"),
1863
1790
  /* @__PURE__ */ r.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
1864
1791
  ] })
@@ -1871,20 +1798,20 @@ const ca = {}, da = ({
1871
1798
  id: "kundli-dob",
1872
1799
  className: a.input,
1873
1800
  type: "date",
1874
- ref: R,
1801
+ ref: Y,
1875
1802
  value: o.dateOfBirth,
1876
1803
  max: (() => {
1877
1804
  const n = /* @__PURE__ */ new Date();
1878
- return `${n.getFullYear()}-${ne(n.getMonth() + 1)}-${ne(n.getDate())}`;
1805
+ return `${n.getFullYear()}-${te(n.getMonth() + 1)}-${te(n.getDate())}`;
1879
1806
  })(),
1880
1807
  onChange: (n) => {
1881
- const s = n.target.value, K = /* @__PURE__ */ new Date(), te = `${K.getFullYear()}-${ne(K.getMonth() + 1)}-${ne(K.getDate())}`;
1882
- s && s > te || (_({ dateOfBirth: s }), M("dateOfBirth", s), B.current = null);
1808
+ const s = n.target.value, L = /* @__PURE__ */ new Date(), fe = `${L.getFullYear()}-${te(L.getMonth() + 1)}-${te(L.getDate())}`;
1809
+ s && s > fe || (v({ dateOfBirth: s }), D("dateOfBirth", s), M.current = null);
1883
1810
  },
1884
- onFocus: () => c?.trackDobClicked?.(),
1885
- onClick: () => P(R),
1811
+ onFocus: () => d?.trackDobClicked?.(),
1812
+ onClick: () => he(Y),
1886
1813
  onBlur: () => {
1887
- B.current === R.current && (B.current = null);
1814
+ M.current === Y.current && (M.current = null);
1888
1815
  }
1889
1816
  }
1890
1817
  ),
@@ -1896,7 +1823,7 @@ const ca = {}, da = ({
1896
1823
  "aria-label": "Open date picker",
1897
1824
  onMouseDown: (n) => n.preventDefault(),
1898
1825
  onClick: (n) => {
1899
- n.preventDefault(), n.stopPropagation(), P(R);
1826
+ n.preventDefault(), n.stopPropagation(), he(Y);
1900
1827
  },
1901
1828
  children: /* @__PURE__ */ r.jsx(
1902
1829
  "img",
@@ -1924,9 +1851,9 @@ const ca = {}, da = ({
1924
1851
  type: "button",
1925
1852
  className: a.infoBtn,
1926
1853
  "aria-label": t("info"),
1927
- "aria-expanded": fe === "time",
1854
+ "aria-expanded": me === "time",
1928
1855
  onClick: () => {
1929
- c?.trackInfoIconClicked?.({ fieldName: "time" }), oe((n) => n === "time" ? null : "time");
1856
+ d?.trackInfoIconClicked?.({ fieldName: "time" }), ne((n) => n === "time" ? null : "time");
1930
1857
  },
1931
1858
  children: /* @__PURE__ */ r.jsx(
1932
1859
  "img",
@@ -1939,13 +1866,13 @@ const ca = {}, da = ({
1939
1866
  )
1940
1867
  }
1941
1868
  ),
1942
- fe === "time" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
1869
+ me === "time" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
1943
1870
  t("formBirthTimeInfo"),
1944
1871
  /* @__PURE__ */ r.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
1945
1872
  ] })
1946
1873
  ] })
1947
1874
  ] }),
1948
- /* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref: U, children: [
1875
+ /* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref: Q, children: [
1949
1876
  /* @__PURE__ */ r.jsx(
1950
1877
  "input",
1951
1878
  {
@@ -1954,15 +1881,15 @@ const ca = {}, da = ({
1954
1881
  type: "text",
1955
1882
  value: o.birthTime ? ge(o.birthTime) : "",
1956
1883
  readOnly: !0,
1957
- onFocus: () => c?.trackTimeClicked?.(),
1884
+ onFocus: () => d?.trackTimeClicked?.(),
1958
1885
  onChange: (n) => {
1959
1886
  const s = n.target.value;
1960
- _({ birthTime: s }), M("birthTime", s);
1887
+ v({ birthTime: s }), D("birthTime", s);
1961
1888
  },
1962
1889
  disabled: o.birthTimeUnknown,
1963
1890
  placeholder: "HH:MM AM",
1964
1891
  onClick: () => {
1965
- o.birthTimeUnknown || (J(Q(o.birthTime || "12:00")), L((n) => !n));
1892
+ o.birthTimeUnknown || (X(q(o.birthTime || "12:00")), T((n) => !n));
1966
1893
  }
1967
1894
  }
1968
1895
  ),
@@ -1975,7 +1902,7 @@ const ca = {}, da = ({
1975
1902
  disabled: o.birthTimeUnknown,
1976
1903
  onMouseDown: (n) => n.preventDefault(),
1977
1904
  onClick: (n) => {
1978
- n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (J(Q(o.birthTime || "12:00")), L((s) => !s));
1905
+ n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (X(q(o.birthTime || "12:00")), T((s) => !s));
1979
1906
  },
1980
1907
  children: /* @__PURE__ */ r.jsx(
1981
1908
  "img",
@@ -1988,7 +1915,7 @@ const ca = {}, da = ({
1988
1915
  )
1989
1916
  }
1990
1917
  ),
1991
- C && !o.birthTimeUnknown && /* @__PURE__ */ r.jsxs(
1918
+ G && !o.birthTimeUnknown && /* @__PURE__ */ r.jsxs(
1992
1919
  "div",
1993
1920
  {
1994
1921
  className: a.timePopover,
@@ -2000,8 +1927,8 @@ const ca = {}, da = ({
2000
1927
  "select",
2001
1928
  {
2002
1929
  className: a.timePickerSelect,
2003
- value: H.hour12,
2004
- onChange: (n) => J((s) => ({
1930
+ value: F.hour12,
1931
+ onChange: (n) => X((s) => ({
2005
1932
  ...s,
2006
1933
  hour12: Number(n.target.value)
2007
1934
  })),
@@ -2014,10 +1941,10 @@ const ca = {}, da = ({
2014
1941
  "select",
2015
1942
  {
2016
1943
  className: a.timePickerSelect,
2017
- value: H.minute,
2018
- onChange: (n) => J((s) => ({ ...s, minute: n.target.value })),
1944
+ value: F.minute,
1945
+ onChange: (n) => X((s) => ({ ...s, minute: n.target.value })),
2019
1946
  "aria-label": "Minute",
2020
- children: Array.from({ length: 60 }, (n, s) => ne(s)).map(
1947
+ children: Array.from({ length: 60 }, (n, s) => te(s)).map(
2021
1948
  (n) => /* @__PURE__ */ r.jsx("option", { value: n, children: n }, n)
2022
1949
  )
2023
1950
  }
@@ -2027,8 +1954,8 @@ const ca = {}, da = ({
2027
1954
  "button",
2028
1955
  {
2029
1956
  type: "button",
2030
- className: `${a.meridiemBtn} ${H.meridiem === "AM" ? a.meridiemActive : ""}`,
2031
- onClick: () => J((n) => ({ ...n, meridiem: "AM" })),
1957
+ className: `${a.meridiemBtn} ${F.meridiem === "AM" ? a.meridiemActive : ""}`,
1958
+ onClick: () => X((n) => ({ ...n, meridiem: "AM" })),
2032
1959
  children: "AM"
2033
1960
  }
2034
1961
  ),
@@ -2036,8 +1963,8 @@ const ca = {}, da = ({
2036
1963
  "button",
2037
1964
  {
2038
1965
  type: "button",
2039
- className: `${a.meridiemBtn} ${H.meridiem === "PM" ? a.meridiemActive : ""}`,
2040
- onClick: () => J((n) => ({ ...n, meridiem: "PM" })),
1966
+ className: `${a.meridiemBtn} ${F.meridiem === "PM" ? a.meridiemActive : ""}`,
1967
+ onClick: () => X((n) => ({ ...n, meridiem: "PM" })),
2041
1968
  children: "PM"
2042
1969
  }
2043
1970
  )
@@ -2049,7 +1976,7 @@ const ca = {}, da = ({
2049
1976
  {
2050
1977
  type: "button",
2051
1978
  className: a.timePopoverBtn,
2052
- onClick: () => L(!1),
1979
+ onClick: () => T(!1),
2053
1980
  children: "Cancel"
2054
1981
  }
2055
1982
  ),
@@ -2059,8 +1986,8 @@ const ca = {}, da = ({
2059
1986
  type: "button",
2060
1987
  className: `${a.timePopoverBtn} ${a.timePopoverOk}`,
2061
1988
  onClick: () => {
2062
- const n = ie(H);
2063
- _({ birthTime: n }), M("birthTime", n), L(!1);
1989
+ const n = oe(F);
1990
+ v({ birthTime: n }), D("birthTime", n), T(!1);
2064
1991
  },
2065
1992
  "aria-label": "OK",
2066
1993
  children: /* @__PURE__ */ r.jsx(
@@ -2100,7 +2027,7 @@ const ca = {}, da = ({
2100
2027
  type: "checkbox",
2101
2028
  checked: o.birthTimeUnknown,
2102
2029
  onChange: (n) => {
2103
- c?.trackTimeCheckboxClicked?.(), _({
2030
+ d?.trackTimeCheckboxClicked?.(), v({
2104
2031
  birthTimeUnknown: n.target.checked,
2105
2032
  birthTime: n.target.checked ? "" : o.birthTime
2106
2033
  });
@@ -2134,11 +2061,11 @@ const ca = {}, da = ({
2134
2061
  type: "button",
2135
2062
  className: a.infoBtn,
2136
2063
  "aria-label": t("info"),
2137
- "aria-expanded": fe === "place",
2064
+ "aria-expanded": me === "place",
2138
2065
  onClick: () => {
2139
- c?.trackInfoIconClicked?.({
2066
+ d?.trackInfoIconClicked?.({
2140
2067
  fieldName: "birthPlace"
2141
- }), oe((n) => n === "place" ? null : "place");
2068
+ }), ne((n) => n === "place" ? null : "place");
2142
2069
  },
2143
2070
  children: /* @__PURE__ */ r.jsx(
2144
2071
  "img",
@@ -2151,13 +2078,13 @@ const ca = {}, da = ({
2151
2078
  )
2152
2079
  }
2153
2080
  ),
2154
- fe === "place" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
2081
+ me === "place" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
2155
2082
  t("formBirthPlaceInfo"),
2156
2083
  /* @__PURE__ */ r.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
2157
2084
  ] })
2158
2085
  ] })
2159
2086
  ] }),
2160
- /* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref: ue, children: [
2087
+ /* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref: ce, children: [
2161
2088
  /* @__PURE__ */ r.jsx(
2162
2089
  "input",
2163
2090
  {
@@ -2167,10 +2094,14 @@ const ca = {}, da = ({
2167
2094
  value: o.birthPlace,
2168
2095
  onChange: (n) => {
2169
2096
  const s = n.target.value;
2170
- _({ birthPlace: s }), M("birthPlace", s), se(!0);
2097
+ v({
2098
+ birthPlace: s,
2099
+ birthPlaceLat: void 0,
2100
+ birthPlaceLng: void 0
2101
+ }), D("birthPlace", s), ie(!0);
2171
2102
  },
2172
2103
  onFocus: () => {
2173
- c?.trackPlaceOfBirthClicked?.(), se(!0);
2104
+ d?.trackPlaceOfBirthClicked?.(), ie(!0);
2174
2105
  },
2175
2106
  placeholder: t("formBirthPlacePlaceholder"),
2176
2107
  autoComplete: "address-level2"
@@ -2185,26 +2116,31 @@ const ca = {}, da = ({
2185
2116
  "aria-hidden": !0
2186
2117
  }
2187
2118
  ) }),
2188
- le && ce.length > 0 && /* @__PURE__ */ r.jsx("div", { className: a.suggestions, role: "listbox", children: ce.slice(0, 8).map((n) => /* @__PURE__ */ r.jsxs(
2119
+ ae && we.length > 0 && /* @__PURE__ */ r.jsx("div", { className: a.suggestions, role: "listbox", children: we.slice(0, 8).map((n) => /* @__PURE__ */ r.jsxs(
2189
2120
  "button",
2190
2121
  {
2191
2122
  type: "button",
2192
2123
  className: a.suggestionItem,
2193
2124
  onClick: () => {
2194
- _({ birthPlace: n.description }), ke(), se(!1);
2125
+ v({
2126
+ birthPlace: n.description,
2127
+ birthPlaceLat: n.lat,
2128
+ birthPlaceLng: n.lng
2129
+ }), k(), ie(!1);
2195
2130
  },
2196
2131
  children: [
2197
- /* @__PURE__ */ r.jsx("span", { className: a.suggestionMain, children: n.structured_formatting?.main_text ?? n.description }),
2198
- n.structured_formatting?.secondary_text && /* @__PURE__ */ r.jsx("span", { className: a.suggestionSecondary, children: n.structured_formatting.secondary_text })
2132
+ /* @__PURE__ */ r.jsx("span", { className: a.suggestionMain, children: n.description }),
2133
+ !!n.secondary_text && /* @__PURE__ */ r.jsx("span", { className: a.suggestionSecondary, children: n.secondary_text })
2199
2134
  ]
2200
2135
  },
2201
- n.place_id
2136
+ n.id
2202
2137
  )) }),
2203
- le && pe && we && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: "Loading…" }),
2204
- le && pe && !we && !!_e && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: _e })
2205
- ] })
2138
+ ae && !!V && be && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: "Loading…" }),
2139
+ ae && !!V && !be && !!xe && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: xe })
2140
+ ] }),
2141
+ ue && /* @__PURE__ */ r.jsx("p", { className: a.fieldError, children: "Please select a place from the dropdown list." })
2206
2142
  ] }),
2207
- x && /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
2143
+ S && /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
2208
2144
  /* @__PURE__ */ r.jsx("div", { className: a.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: a.label, children: [
2209
2145
  t("formReportLanguage"),
2210
2146
  /* @__PURE__ */ r.jsx("span", { className: a.req, children: "*" })
@@ -2223,7 +2159,7 @@ const ca = {}, da = ({
2223
2159
  type: "button",
2224
2160
  className: `${a.choiceBtn} ${o.language_code === "hi" ? a.choiceBtnActive : ""}`,
2225
2161
  onClick: () => {
2226
- _({ language_code: "hi" }), c?.trackLanguageOfReportSelected?.({
2162
+ v({ language_code: "hi" }), d?.trackLanguageOfReportSelected?.({
2227
2163
  language: "hi"
2228
2164
  });
2229
2165
  },
@@ -2239,7 +2175,7 @@ const ca = {}, da = ({
2239
2175
  type: "button",
2240
2176
  className: `${a.choiceBtn} ${o.language_code === "en" ? a.choiceBtnActive : ""}`,
2241
2177
  onClick: () => {
2242
- _({ language_code: "en" }), c?.trackLanguageOfReportSelected?.({
2178
+ v({ language_code: "en" }), d?.trackLanguageOfReportSelected?.({
2243
2179
  language: "en"
2244
2180
  });
2245
2181
  },
@@ -2255,7 +2191,7 @@ const ca = {}, da = ({
2255
2191
  type: "button",
2256
2192
  className: `${a.choiceBtn} ${o.language_code === "te" ? a.choiceBtnActive : ""}`,
2257
2193
  onClick: () => {
2258
- _({ language_code: "te" }), c?.trackLanguageOfReportSelected?.({
2194
+ v({ language_code: "te" }), d?.trackLanguageOfReportSelected?.({
2259
2195
  language: "te"
2260
2196
  });
2261
2197
  },
@@ -2271,7 +2207,7 @@ const ca = {}, da = ({
2271
2207
  type: "button",
2272
2208
  className: `${a.choiceBtn} ${o.language_code === "ta" ? a.choiceBtnActive : ""}`,
2273
2209
  onClick: () => {
2274
- _({ language_code: "ta" }), c?.trackLanguageOfReportSelected?.({
2210
+ v({ language_code: "ta" }), d?.trackLanguageOfReportSelected?.({
2275
2211
  language: "ta"
2276
2212
  });
2277
2213
  },
@@ -2287,7 +2223,7 @@ const ca = {}, da = ({
2287
2223
  type: "button",
2288
2224
  className: `${a.choiceBtn} ${o.language_code === "kn" ? a.choiceBtnActive : ""}`,
2289
2225
  onClick: () => {
2290
- _({ language_code: "kn" }), c?.trackLanguageOfReportSelected?.({
2226
+ v({ language_code: "kn" }), d?.trackLanguageOfReportSelected?.({
2291
2227
  language: "kn"
2292
2228
  });
2293
2229
  },
@@ -2303,7 +2239,7 @@ const ca = {}, da = ({
2303
2239
  type: "button",
2304
2240
  className: `${a.choiceBtn} ${o.language_code === "gu" ? a.choiceBtnActive : ""}`,
2305
2241
  onClick: () => {
2306
- _({ language_code: "gu" }), c?.trackLanguageOfReportSelected?.({
2242
+ v({ language_code: "gu" }), d?.trackLanguageOfReportSelected?.({
2307
2243
  language: "gu"
2308
2244
  });
2309
2245
  },
@@ -2319,7 +2255,7 @@ const ca = {}, da = ({
2319
2255
  type: "button",
2320
2256
  className: `${a.choiceBtn} ${o.language_code === "mr" ? a.choiceBtnActive : ""}`,
2321
2257
  onClick: () => {
2322
- _({ language_code: "mr" }), c?.trackLanguageOfReportSelected?.({
2258
+ v({ language_code: "mr" }), d?.trackLanguageOfReportSelected?.({
2323
2259
  language: "mr"
2324
2260
  });
2325
2261
  },
@@ -2335,21 +2271,21 @@ const ca = {}, da = ({
2335
2271
  ] }) })
2336
2272
  }
2337
2273
  );
2338
- }, ua = "_ctaButton_rhimw_2", ma = "_ctaFilled_rhimw_21", fa = "_ctaFilledContent_rhimw_52", pa = "_chevronRight_rhimw_61", Ee = {
2339
- ctaButton: ua,
2340
- ctaFilled: ma,
2341
- ctaFilledContent: fa,
2342
- chevronRight: pa
2343
- }, hr = "kundli-report-astrologer", ha = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", ga = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", _a = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", ba = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", ya = ({ t }) => {
2344
- const d = Ne()?.config.imageComponent ?? Le;
2345
- return /* @__PURE__ */ r.jsxs("div", { className: xe.marqueeContent, children: [
2346
- /* @__PURE__ */ r.jsxs("span", { className: xe.badge, children: [
2274
+ }, ga = "_ctaButton_rhimw_2", _a = "_ctaFilled_rhimw_21", ba = "_ctaFilledContent_rhimw_52", ya = "_chevronRight_rhimw_61", Ne = {
2275
+ ctaButton: ga,
2276
+ ctaFilled: _a,
2277
+ ctaFilledContent: ba,
2278
+ chevronRight: ya
2279
+ }, br = "kundli-report-astrologer", va = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", ka = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", wa = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", xa = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", Pa = ({ t }) => {
2280
+ const c = Re()?.config.imageComponent ?? De;
2281
+ return /* @__PURE__ */ r.jsxs("div", { className: ke.marqueeContent, children: [
2282
+ /* @__PURE__ */ r.jsxs("span", { className: ke.badge, children: [
2347
2283
  /* @__PURE__ */ r.jsx(
2348
- d,
2284
+ c,
2349
2285
  {
2350
- src: ha,
2286
+ src: va,
2351
2287
  alt: "",
2352
- className: xe.badgeIcon,
2288
+ className: ke.badgeIcon,
2353
2289
  width: 16,
2354
2290
  height: 16,
2355
2291
  loading: "lazy"
@@ -2357,13 +2293,13 @@ const ca = {}, da = ({
2357
2293
  ),
2358
2294
  t("ctaKundliCreated")
2359
2295
  ] }),
2360
- /* @__PURE__ */ r.jsxs("span", { className: xe.badge, children: [
2296
+ /* @__PURE__ */ r.jsxs("span", { className: ke.badge, children: [
2361
2297
  /* @__PURE__ */ r.jsx(
2362
- d,
2298
+ c,
2363
2299
  {
2364
- src: ga,
2300
+ src: ka,
2365
2301
  alt: "",
2366
- className: xe.badgeIcon,
2302
+ className: ke.badgeIcon,
2367
2303
  width: 16,
2368
2304
  height: 16,
2369
2305
  loading: "lazy"
@@ -2371,13 +2307,13 @@ const ca = {}, da = ({
2371
2307
  ),
2372
2308
  t("ctaCertified")
2373
2309
  ] }),
2374
- /* @__PURE__ */ r.jsxs("span", { className: xe.badge, children: [
2310
+ /* @__PURE__ */ r.jsxs("span", { className: ke.badge, children: [
2375
2311
  /* @__PURE__ */ r.jsx(
2376
- d,
2312
+ c,
2377
2313
  {
2378
- src: _a,
2314
+ src: wa,
2379
2315
  alt: "",
2380
- className: xe.badgeIcon,
2316
+ className: ke.badgeIcon,
2381
2317
  width: 16,
2382
2318
  height: 16,
2383
2319
  loading: "lazy"
@@ -2386,69 +2322,81 @@ const ca = {}, da = ({
2386
2322
  t("ctaSecurePayment")
2387
2323
  ] })
2388
2324
  ] });
2389
- }, ka = (t) => /.+@.+\..+/.test(t), va = (t) => /^\d{10}$/.test(t), xa = (t, o, d) => {
2325
+ }, Aa = (t) => /.+@.+\..+/.test(t), Ca = (t) => /^\d{10}$/.test(t), ja = (t, o, c) => {
2390
2326
  if (!t.fullName.trim()) return "fullName";
2391
2327
  if (o) {
2392
- if (!ka(t.email.trim())) return "email";
2393
- } else if (!va((t.phone ?? "").trim())) return "phone";
2328
+ if (!Aa(t.email.trim())) return "email";
2329
+ } else if (!Ca((t.phone ?? "").trim())) return "phone";
2394
2330
  if (!t.dateOfBirth) return "dateOfBirth";
2395
2331
  if (!t.birthPlace.trim()) return "birthPlace";
2396
- if (d) {
2332
+ if (!Number.isFinite(t.birthPlaceLat) || !Number.isFinite(t.birthPlaceLng))
2333
+ return "birthPlaceCoordinates";
2334
+ if (c) {
2397
2335
  if (!t.gender) return "gender";
2398
2336
  if (!t.language_code) return "language_code";
2399
2337
  }
2400
2338
  return !t.birthTimeUnknown && !t.birthTime ? "birthTime" : null;
2401
- }, wa = ({
2339
+ }, Na = ({
2402
2340
  t,
2403
2341
  values: o,
2404
- phoneIsdCode: d,
2405
- hideOriginalPrice: u = !1,
2406
- requireV1ExtraFields: y = !1,
2407
- onValidationFailed: x,
2408
- onProceed: h,
2409
- onProceedGuidance: N,
2410
- href: w,
2411
- analytics: F,
2412
- className: c = "",
2413
- discountedPriceLabel: S,
2414
- showPlanSheet: p,
2415
- confirmPlan: D,
2416
- planSheetOpen: k,
2417
- selectedPlan: E
2342
+ phoneIsdCode: c,
2343
+ hideOriginalPrice: f = !1,
2344
+ requireV1ExtraFields: b = !1,
2345
+ onValidationFailed: S,
2346
+ onProceed: x,
2347
+ onProceedGuidance: j,
2348
+ href: A,
2349
+ analytics: E,
2350
+ className: d = "",
2351
+ discountedPriceLabel: N,
2352
+ showPlanSheet: h,
2353
+ confirmPlan: I,
2354
+ planSheetOpen: p,
2355
+ selectedPlan: B
2418
2356
  }) => {
2419
- const A = Ne(), T = A?.config.isGlobal ?? !0, g = A?.config?.variant, G = Ge(
2420
- () => xa(o, T, y),
2421
- [o, T, y]
2422
- ), _ = G === null, M = g === "v1" && A?.config?.showSheet, O = T ? S ?? t("formDiscountedPrice") : M ? "" : "₹499", $ = A?.config.imageComponent ?? Le, Z = (B) => {
2423
- if (B.preventDefault(), !_) {
2424
- G && x?.(G);
2357
+ const C = Re(), y = C?.config.isGlobal ?? !0, g = C?.config?.variant, [U, J] = K(!1), v = Ue(
2358
+ () => ja(o, y, b),
2359
+ [o, y, b]
2360
+ ), D = v === null, z = g === "v1" && C?.config?.showSheet;
2361
+ H(() => {
2362
+ if (!U) return;
2363
+ const Q = window.setTimeout(() => {
2364
+ J(!1);
2365
+ }, 2200);
2366
+ return () => window.clearTimeout(Q);
2367
+ }, [U]);
2368
+ const re = y ? N ?? t("formDiscountedPrice") : z ? "" : "₹499", Y = C?.config.imageComponent ?? De, M = (Q) => {
2369
+ if (Q.preventDefault(), g === "v1" && !D && E?.trackKundliDetailedClicked?.(), !D) {
2370
+ v && (S?.(
2371
+ v === "birthPlaceCoordinates" ? "birthPlace" : v
2372
+ ), v === "birthPlaceCoordinates" && J(!0));
2425
2373
  return;
2426
2374
  }
2427
- const z = !!N && g === "v1" && E?.id === hr, U = (o.phone ?? "").trim(), C = {
2375
+ const G = !!j && g === "v1" && B?.id === br, T = (o.phone ?? "").trim(), F = {
2428
2376
  ...o,
2429
- phone: U && `${d}-${U}`
2377
+ phone: T && `${c}-${T}`
2430
2378
  };
2431
- if (M) {
2432
- k ? D?.() : p?.(C);
2379
+ if (z) {
2380
+ p ? I?.() : h?.(F);
2433
2381
  return;
2434
2382
  }
2435
- F?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), z ? N(C) : h?.(C);
2436
- }, R = /* @__PURE__ */ r.jsx(
2437
- Or,
2383
+ E?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), G ? j(F) : x?.(F);
2384
+ }, se = /* @__PURE__ */ r.jsx(
2385
+ $r,
2438
2386
  {
2439
- href: w,
2440
- disabled: g === "v1" ? !1 : !_,
2441
- onClick: Z,
2387
+ href: A,
2388
+ disabled: g === "v1" ? !1 : !D,
2389
+ onClick: M,
2442
2390
  "aria-label": t("formPriceAria"),
2443
- className: g === "v1" && _ ? Ee.ctaFilled : g === "v1" ? Ee.ctaButton : void 0,
2444
- children: g === "v1" ? _ ? /* @__PURE__ */ r.jsxs("span", { className: Ee.ctaFilledContent, children: [
2445
- M ? t("selectPackage") : k && E ? `${t("proceedWithPlan")}${E.price}` : `${t("formProceed")} ${O}`,
2391
+ className: g === "v1" && D ? Ne.ctaFilled : g === "v1" ? Ne.ctaButton : void 0,
2392
+ children: g === "v1" ? D ? /* @__PURE__ */ r.jsxs("span", { className: Ne.ctaFilledContent, children: [
2393
+ z ? t("selectPackage") : p && B ? `${t("proceedWithPlan")}${B.price}` : `${t("formProceed")} ${re}`,
2446
2394
  /* @__PURE__ */ r.jsx(
2447
- $,
2395
+ Y,
2448
2396
  {
2449
- src: ba,
2397
+ src: xa,
2450
2398
  alt: "",
2451
- className: Ee.chevronRight,
2399
+ className: Ne.chevronRight,
2452
2400
  width: 20,
2453
2401
  height: 20,
2454
2402
  loading: "lazy"
@@ -2457,37 +2405,40 @@ const ca = {}, da = ({
2457
2405
  ] }) : t("formCtaDefault") : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2458
2406
  t("formProceed"),
2459
2407
  " ",
2460
- O
2408
+ re
2461
2409
  ] })
2462
2410
  }
2463
2411
  );
2464
- return /* @__PURE__ */ r.jsx(
2465
- Fr,
2412
+ return /* @__PURE__ */ r.jsxs(
2413
+ Ur,
2466
2414
  {
2467
- className: `${Ee.footerContainer} ${c}`,
2468
- marquee: /* @__PURE__ */ r.jsx(Mr, { children: /* @__PURE__ */ r.jsx(ya, { t }) }),
2469
- children: R
2415
+ className: `${Ne.footerContainer} ${d}`,
2416
+ marquee: /* @__PURE__ */ r.jsx(Gr, { children: /* @__PURE__ */ r.jsx(Pa, { t }) }),
2417
+ children: [
2418
+ U && /* @__PURE__ */ r.jsx("div", { className: Ne.validationToast, role: "alert", "aria-live": "assertive", children: t("formFillAllFields") }),
2419
+ se
2420
+ ]
2470
2421
  }
2471
2422
  );
2472
- }, Pa = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", Aa = ({
2423
+ }, Ta = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", Ra = ({
2473
2424
  t,
2474
2425
  languageSelector: o,
2475
- logoUrl: d = Pa,
2476
- className: u = ""
2426
+ logoUrl: c = Ta,
2427
+ className: f = ""
2477
2428
  }) => {
2478
- const y = Ne(), x = y?.config.isGlobal ?? !0, h = o != null && !x;
2429
+ const b = Re(), S = b?.config.isGlobal ?? !0, x = o != null && !S;
2479
2430
  return /* @__PURE__ */ r.jsx(
2480
- $r,
2431
+ Wr,
2481
2432
  {
2482
2433
  t,
2483
- logoUrl: d,
2484
- imageComponent: y?.config.imageComponent,
2434
+ logoUrl: c,
2435
+ imageComponent: b?.config.imageComponent,
2485
2436
  languageSelector: o,
2486
- showLanguageSelector: h,
2487
- className: u
2437
+ showLanguageSelector: x,
2438
+ className: f
2488
2439
  }
2489
2440
  );
2490
- }, Ca = () => /* @__PURE__ */ r.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx(
2441
+ }, Sa = () => /* @__PURE__ */ r.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx(
2491
2442
  "path",
2492
2443
  {
2493
2444
  d: "M3.5 8.5l2.5 2.5 6-6",
@@ -2496,7 +2447,7 @@ const ca = {}, da = ({
2496
2447
  strokeLinecap: "round",
2497
2448
  strokeLinejoin: "round"
2498
2449
  }
2499
- ) }), ja = () => /* @__PURE__ */ r.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx(
2450
+ ) }), Ea = () => /* @__PURE__ */ r.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx(
2500
2451
  "path",
2501
2452
  {
2502
2453
  d: "M4.5 4.5l7 7M11.5 4.5l-7 7",
@@ -2504,137 +2455,137 @@ const ca = {}, da = ({
2504
2455
  strokeWidth: "1.8",
2505
2456
  strokeLinecap: "round"
2506
2457
  }
2507
- ) }), Na = () => /* @__PURE__ */ r.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx("path", { d: "M15 18l-6-6 6-6" }) }), Ta = () => /* @__PURE__ */ r.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: [
2458
+ ) }), Ia = () => /* @__PURE__ */ r.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx("path", { d: "M15 18l-6-6 6-6" }) }), Ba = () => /* @__PURE__ */ r.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: [
2508
2459
  /* @__PURE__ */ r.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
2509
2460
  /* @__PURE__ */ r.jsx("polyline", { points: "17 6 23 6 23 12" })
2510
- ] }), Ra = "_overlay_18irl_2", Sa = "_sheet_18irl_12", Ea = "_header_18irl_36", Ia = "_backBtn_18irl_48", Ba = "_title_18irl_66", La = "_plansContainer_18irl_78", Da = "_planCard_18irl_87", Oa = "_withBadgeSpacing_18irl_101", Fa = "_planCardSelected_18irl_105", Ma = "_planCardPopular_18irl_110", $a = "_popularBadge_18irl_119", Ua = "_planCardInner_18irl_137", Ga = "_planTitleRow_18irl_148", Ka = "_planTitle_18irl_148", Wa = "_radioCircle_18irl_163", Ha = "_radioChecked_18irl_176", Ya = "_radioInner_18irl_181", qa = "_priceRow_18irl_189", Va = "_price_18irl_189", Ja = "_originalPrice_18irl_202", za = "_savingsBadge_18irl_209", Qa = "_featureList_18irl_219", Xa = "_featureItem_18irl_228", Za = "_featureIcon_18irl_234", en = "_featureText_18irl_240", rn = "_astrologerHeading_18irl_251", tn = "_astrologerList_18irl_258", an = "_astrologerCard_18irl_274", nn = "_astrologerAvatar_18irl_290", on = "_astrologerAvatarPlaceholder_18irl_307", ln = "_astrologerTop_18irl_313", sn = "_astrologerBasicInfo_18irl_319", cn = "_astrologerName_18irl_326", dn = "_astrologerExp_18irl_335", un = "_astrologerDivider_18irl_341", mn = "_planDivider_18irl_347", fn = "_astrologerCertList_18irl_354", pn = "_astrologerCertItem_18irl_360", hn = "_bullet_18irl_368", gn = "_footer_18irl_373", _n = "_proceedBtn_18irl_383", f = {
2511
- overlay: Ra,
2512
- sheet: Sa,
2513
- header: Ea,
2514
- backBtn: Ia,
2515
- title: Ba,
2516
- plansContainer: La,
2517
- planCard: Da,
2518
- withBadgeSpacing: Oa,
2519
- planCardSelected: Fa,
2520
- planCardPopular: Ma,
2521
- popularBadge: $a,
2522
- planCardInner: Ua,
2523
- planTitleRow: Ga,
2524
- planTitle: Ka,
2525
- radioCircle: Wa,
2526
- radioChecked: Ha,
2527
- radioInner: Ya,
2528
- priceRow: qa,
2529
- price: Va,
2530
- originalPrice: Ja,
2531
- savingsBadge: za,
2532
- featureList: Qa,
2533
- featureItem: Xa,
2534
- featureIcon: Za,
2535
- featureText: en,
2536
- astrologerHeading: rn,
2537
- astrologerList: tn,
2538
- astrologerCard: an,
2539
- astrologerAvatar: nn,
2540
- astrologerAvatarPlaceholder: on,
2541
- astrologerTop: ln,
2542
- astrologerBasicInfo: sn,
2543
- astrologerName: cn,
2544
- astrologerExp: dn,
2545
- astrologerDivider: un,
2546
- planDivider: mn,
2547
- astrologerCertList: fn,
2548
- astrologerCertItem: pn,
2549
- bullet: hn,
2550
- footer: gn,
2551
- proceedBtn: _n
2552
- }, bn = ({ title: t, onBack: o }) => /* @__PURE__ */ r.jsxs("div", { className: f.header, children: [
2461
+ ] }), La = "_overlay_18irl_2", Da = "_sheet_18irl_12", Fa = "_header_18irl_36", Oa = "_backBtn_18irl_48", Ma = "_title_18irl_66", $a = "_plansContainer_18irl_78", Ua = "_planCard_18irl_87", Ga = "_withBadgeSpacing_18irl_101", Wa = "_planCardSelected_18irl_105", Ka = "_planCardPopular_18irl_110", Ha = "_popularBadge_18irl_119", Ya = "_planCardInner_18irl_137", qa = "_planTitleRow_18irl_148", Va = "_planTitle_18irl_148", za = "_radioCircle_18irl_163", Ja = "_radioChecked_18irl_176", Qa = "_radioInner_18irl_181", Xa = "_priceRow_18irl_189", Za = "_price_18irl_189", en = "_originalPrice_18irl_202", rn = "_savingsBadge_18irl_209", tn = "_featureList_18irl_219", an = "_featureItem_18irl_228", nn = "_featureIcon_18irl_234", on = "_featureText_18irl_240", ln = "_astrologerHeading_18irl_251", sn = "_astrologerList_18irl_258", cn = "_astrologerCard_18irl_274", dn = "_astrologerAvatar_18irl_290", un = "_astrologerAvatarPlaceholder_18irl_307", fn = "_astrologerTop_18irl_313", mn = "_astrologerBasicInfo_18irl_319", hn = "_astrologerName_18irl_326", pn = "_astrologerExp_18irl_335", gn = "_astrologerDivider_18irl_341", _n = "_planDivider_18irl_347", bn = "_astrologerCertList_18irl_354", yn = "_astrologerCertItem_18irl_360", vn = "_bullet_18irl_368", kn = "_footer_18irl_373", wn = "_proceedBtn_18irl_383", m = {
2462
+ overlay: La,
2463
+ sheet: Da,
2464
+ header: Fa,
2465
+ backBtn: Oa,
2466
+ title: Ma,
2467
+ plansContainer: $a,
2468
+ planCard: Ua,
2469
+ withBadgeSpacing: Ga,
2470
+ planCardSelected: Wa,
2471
+ planCardPopular: Ka,
2472
+ popularBadge: Ha,
2473
+ planCardInner: Ya,
2474
+ planTitleRow: qa,
2475
+ planTitle: Va,
2476
+ radioCircle: za,
2477
+ radioChecked: Ja,
2478
+ radioInner: Qa,
2479
+ priceRow: Xa,
2480
+ price: Za,
2481
+ originalPrice: en,
2482
+ savingsBadge: rn,
2483
+ featureList: tn,
2484
+ featureItem: an,
2485
+ featureIcon: nn,
2486
+ featureText: on,
2487
+ astrologerHeading: ln,
2488
+ astrologerList: sn,
2489
+ astrologerCard: cn,
2490
+ astrologerAvatar: dn,
2491
+ astrologerAvatarPlaceholder: un,
2492
+ astrologerTop: fn,
2493
+ astrologerBasicInfo: mn,
2494
+ astrologerName: hn,
2495
+ astrologerExp: pn,
2496
+ astrologerDivider: gn,
2497
+ planDivider: _n,
2498
+ astrologerCertList: bn,
2499
+ astrologerCertItem: yn,
2500
+ bullet: vn,
2501
+ footer: kn,
2502
+ proceedBtn: wn
2503
+ }, xn = ({ title: t, onBack: o }) => /* @__PURE__ */ r.jsxs("div", { className: m.header, children: [
2553
2504
  /* @__PURE__ */ r.jsx(
2554
2505
  "button",
2555
2506
  {
2556
- className: f.backBtn,
2507
+ className: m.backBtn,
2557
2508
  onClick: o,
2558
2509
  "aria-label": "Go back",
2559
2510
  type: "button",
2560
- children: /* @__PURE__ */ r.jsx(Na, {})
2511
+ children: /* @__PURE__ */ r.jsx(Ia, {})
2561
2512
  }
2562
2513
  ),
2563
- /* @__PURE__ */ r.jsx("h2", { className: f.title, children: t })
2564
- ] }), yn = ({ features: t, t: o }) => /* @__PURE__ */ r.jsx("ul", { className: f.featureList, "aria-label": "Plan features", children: t.map((d, u) => /* @__PURE__ */ r.jsxs("li", { className: f.featureItem, children: [
2565
- /* @__PURE__ */ r.jsx("span", { className: f.featureIcon, children: d.included ? /* @__PURE__ */ r.jsx(Ca, {}) : /* @__PURE__ */ r.jsx(ja, {}) }),
2514
+ /* @__PURE__ */ r.jsx("h2", { className: m.title, children: t })
2515
+ ] }), Pn = ({ features: t, t: o }) => /* @__PURE__ */ r.jsx("ul", { className: m.featureList, "aria-label": "Plan features", children: t.map((c, f) => /* @__PURE__ */ r.jsxs("li", { className: m.featureItem, children: [
2516
+ /* @__PURE__ */ r.jsx("span", { className: m.featureIcon, children: c.included ? /* @__PURE__ */ r.jsx(Sa, {}) : /* @__PURE__ */ r.jsx(Ea, {}) }),
2566
2517
  /* @__PURE__ */ r.jsx(
2567
2518
  "span",
2568
2519
  {
2569
- className: `${f.featureText} `,
2570
- children: o?.(d.text) ?? d.text
2520
+ className: `${m.featureText} `,
2521
+ children: o?.(c.text) ?? c.text
2571
2522
  }
2572
2523
  )
2573
- ] }, u)) }), kn = ({ astrologer: t, t: o }) => /* @__PURE__ */ r.jsxs("div", { className: f.astrologerCard, children: [
2574
- /* @__PURE__ */ r.jsxs("div", { className: f.astrologerTop, children: [
2575
- /* @__PURE__ */ r.jsx("div", { className: f.astrologerAvatar, "aria-hidden": !0, children: t.imageUrl ? /* @__PURE__ */ r.jsx("img", { src: t.imageUrl, alt: o?.(t.name) ?? t.name, width: 40, height: 40 }) : /* @__PURE__ */ r.jsx("span", { className: f.astrologerAvatarPlaceholder, children: t.name.charAt(0) }) }),
2576
- /* @__PURE__ */ r.jsxs("div", { className: f.astrologerBasicInfo, children: [
2577
- /* @__PURE__ */ r.jsx("p", { className: f.astrologerName, children: o?.(t.name) ?? t.name }),
2578
- /* @__PURE__ */ r.jsx("p", { className: f.astrologerExp, children: o?.(t.experience) ?? t.experience })
2524
+ ] }, f)) }), An = ({ astrologer: t, t: o }) => /* @__PURE__ */ r.jsxs("div", { className: m.astrologerCard, children: [
2525
+ /* @__PURE__ */ r.jsxs("div", { className: m.astrologerTop, children: [
2526
+ /* @__PURE__ */ r.jsx("div", { className: m.astrologerAvatar, "aria-hidden": !0, children: t.imageUrl ? /* @__PURE__ */ r.jsx("img", { src: t.imageUrl, alt: o?.(t.name) ?? t.name, width: 40, height: 40 }) : /* @__PURE__ */ r.jsx("span", { className: m.astrologerAvatarPlaceholder, children: t.name.charAt(0) }) }),
2527
+ /* @__PURE__ */ r.jsxs("div", { className: m.astrologerBasicInfo, children: [
2528
+ /* @__PURE__ */ r.jsx("p", { className: m.astrologerName, children: o?.(t.name) ?? t.name }),
2529
+ /* @__PURE__ */ r.jsx("p", { className: m.astrologerExp, children: o?.(t.experience) ?? t.experience })
2579
2530
  ] })
2580
2531
  ] }),
2581
- /* @__PURE__ */ r.jsx("div", { className: f.astrologerDivider }),
2582
- /* @__PURE__ */ r.jsx("div", { className: f.astrologerCertList, children: t.certifications.map((d, u) => /* @__PURE__ */ r.jsxs("p", { className: f.astrologerCertItem, children: [
2583
- /* @__PURE__ */ r.jsx("span", { className: f.bullet, children: "•" }),
2532
+ /* @__PURE__ */ r.jsx("div", { className: m.astrologerDivider }),
2533
+ /* @__PURE__ */ r.jsx("div", { className: m.astrologerCertList, children: t.certifications.map((c, f) => /* @__PURE__ */ r.jsxs("p", { className: m.astrologerCertItem, children: [
2534
+ /* @__PURE__ */ r.jsx("span", { className: m.bullet, children: "•" }),
2584
2535
  " ",
2585
- o?.(d) ?? d
2586
- ] }, u)) })
2587
- ] }), vn = ({ label: t }) => /* @__PURE__ */ r.jsxs("div", { className: f.popularBadge, "aria-label": t, children: [
2588
- /* @__PURE__ */ r.jsx(Ta, {}),
2536
+ o?.(c) ?? c
2537
+ ] }, f)) })
2538
+ ] }), Cn = ({ label: t }) => /* @__PURE__ */ r.jsxs("div", { className: m.popularBadge, "aria-label": t, children: [
2539
+ /* @__PURE__ */ r.jsx(Ba, {}),
2589
2540
  /* @__PURE__ */ r.jsx("span", { children: t })
2590
- ] }), xn = ({ plan: t, isSelected: o, onSelect: d, t: u }) => {
2591
- const y = () => d(t.id), x = (h) => {
2592
- (h.key === " " || h.key === "Enter") && (h.preventDefault(), d(t.id));
2541
+ ] }), jn = ({ plan: t, isSelected: o, onSelect: c, t: f }) => {
2542
+ const b = () => c(t.id), S = (x) => {
2543
+ (x.key === " " || x.key === "Enter") && (x.preventDefault(), c(t.id));
2593
2544
  };
2594
2545
  return /* @__PURE__ */ r.jsxs(
2595
2546
  "div",
2596
2547
  {
2597
2548
  className: [
2598
- f.planCard,
2599
- o ? f.planCardSelected : "",
2600
- o && f.planCardPopular
2549
+ m.planCard,
2550
+ o ? m.planCardSelected : "",
2551
+ o && m.planCardPopular
2601
2552
  ].filter(Boolean).join(" "),
2602
- onClick: y,
2553
+ onClick: b,
2603
2554
  role: "radio",
2604
2555
  "aria-checked": o,
2605
2556
  tabIndex: 0,
2606
- onKeyDown: x,
2557
+ onKeyDown: S,
2607
2558
  "data-plan-id": t.id,
2608
2559
  children: [
2609
- t.badge && /* @__PURE__ */ r.jsx(vn, { label: u?.(t.badge) ?? t.badge }),
2610
- /* @__PURE__ */ r.jsxs("div", { className: f.planCardInner, children: [
2611
- /* @__PURE__ */ r.jsxs("div", { className: `${f.planTitleRow} ${t.badge ? f.withBadgeSpacing : ""}`, children: [
2612
- /* @__PURE__ */ r.jsx("span", { className: f.planTitle, children: u?.(t.title) ?? t.title }),
2560
+ t.badge && /* @__PURE__ */ r.jsx(Cn, { label: f?.(t.badge) ?? t.badge }),
2561
+ /* @__PURE__ */ r.jsxs("div", { className: m.planCardInner, children: [
2562
+ /* @__PURE__ */ r.jsxs("div", { className: `${m.planTitleRow} ${t.badge ? m.withBadgeSpacing : ""}`, children: [
2563
+ /* @__PURE__ */ r.jsx("span", { className: m.planTitle, children: f?.(t.title) ?? t.title }),
2613
2564
  /* @__PURE__ */ r.jsx(
2614
2565
  "span",
2615
2566
  {
2616
- className: `${f.radioCircle} ${o ? f.radioChecked : ""}`,
2567
+ className: `${m.radioCircle} ${o ? m.radioChecked : ""}`,
2617
2568
  "aria-hidden": !0,
2618
- children: o && /* @__PURE__ */ r.jsx("span", { className: f.radioInner })
2569
+ children: o && /* @__PURE__ */ r.jsx("span", { className: m.radioInner })
2619
2570
  }
2620
2571
  )
2621
2572
  ] }),
2622
- /* @__PURE__ */ r.jsxs("div", { className: f.priceRow, children: [
2623
- /* @__PURE__ */ r.jsx("span", { className: f.price, children: t.price }),
2624
- t.originalPrice && /* @__PURE__ */ r.jsx("span", { className: f.originalPrice, children: t.originalPrice }),
2625
- t.savingsLabel && /* @__PURE__ */ r.jsx("span", { className: f.savingsBadge, children: u?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
2573
+ /* @__PURE__ */ r.jsxs("div", { className: m.priceRow, children: [
2574
+ /* @__PURE__ */ r.jsx("span", { className: m.price, children: t.price }),
2575
+ t.originalPrice && /* @__PURE__ */ r.jsx("span", { className: m.originalPrice, children: t.originalPrice }),
2576
+ t.savingsLabel && /* @__PURE__ */ r.jsx("span", { className: m.savingsBadge, children: f?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
2626
2577
  ] }),
2627
- /* @__PURE__ */ r.jsx(yn, { features: t.features, t: u }),
2628
- t.astrologers && /* @__PURE__ */ r.jsx("div", { className: f.planDivider }),
2578
+ /* @__PURE__ */ r.jsx(Pn, { features: t.features, t: f }),
2579
+ t.astrologers && /* @__PURE__ */ r.jsx("div", { className: m.planDivider }),
2629
2580
  t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2630
- /* @__PURE__ */ r.jsx("p", { className: f.astrologerHeading, children: u?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
2631
- /* @__PURE__ */ r.jsx("div", { className: f.astrologerList, role: "list", children: t.astrologers.map((h, N) => /* @__PURE__ */ r.jsx("div", { role: "listitem", children: /* @__PURE__ */ r.jsx(kn, { astrologer: h, t: u }) }, N)) })
2581
+ /* @__PURE__ */ r.jsx("p", { className: m.astrologerHeading, children: f?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
2582
+ /* @__PURE__ */ r.jsx("div", { className: m.astrologerList, role: "list", children: t.astrologers.map((x, j) => /* @__PURE__ */ r.jsx("div", { role: "listitem", children: /* @__PURE__ */ r.jsx(An, { astrologer: x, t: f }) }, j)) })
2632
2583
  ] })
2633
2584
  ] })
2634
2585
  ]
2635
2586
  }
2636
2587
  );
2637
- }, wn = [
2588
+ }, Nn = [
2638
2589
  {
2639
2590
  id: "jyoti",
2640
2591
  name: "planAstrologerNameJyoti",
@@ -2662,7 +2613,7 @@ const ca = {}, da = ({
2662
2613
  experience: "planAstrologerExpNeeraj",
2663
2614
  certifications: ["planAstrologerCertBhuCertified", "planAstrologerCertMantraRudraksha"]
2664
2615
  }
2665
- ], Pn = (t) => [
2616
+ ], Tn = (t) => [
2666
2617
  {
2667
2618
  id: "kundli-report",
2668
2619
  title: "planNameBasic",
@@ -2688,97 +2639,97 @@ const ca = {}, da = ({
2688
2639
  { text: "planFeatureRealTimeAnswers", included: !0 },
2689
2640
  { text: "planFeatureTailoredRemedies", included: !0 }
2690
2641
  ],
2691
- astrologers: wn.filter(
2642
+ astrologers: Nn.filter(
2692
2643
  (o) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(o.id)
2693
2644
  )
2694
2645
  }
2695
- ], An = ({
2646
+ ], Rn = ({
2696
2647
  isOpen: t,
2697
2648
  onClose: o,
2698
- selectedPlan: d,
2699
- onSelectPlan: u,
2700
- plans: y,
2701
- onProceed: x,
2702
- t: h,
2703
- analytics: N
2649
+ selectedPlan: c,
2650
+ onSelectPlan: f,
2651
+ plans: b,
2652
+ onProceed: S,
2653
+ t: x,
2654
+ analytics: j
2704
2655
  }) => {
2705
- const F = Ne()?.config.isGlobal ?? !0, c = y ?? Pn(F), S = d?.id || c.find((A) => A.badge)?.id || c[0]?.id || "", p = q(null), D = q(null), k = q(!1);
2706
- X(() => {
2656
+ const E = Re()?.config.isGlobal ?? !0, d = b ?? Tn(E), N = c?.id || d.find((C) => C.badge)?.id || d[0]?.id || "", h = W(null), I = W(null), p = W(!1);
2657
+ H(() => {
2707
2658
  if (t) {
2708
- if (!d) {
2709
- const A = c.find((T) => T.badge) ?? c[0];
2710
- A && u(A);
2659
+ if (!c) {
2660
+ const C = d.find((y) => y.badge) ?? d[0];
2661
+ C && f(C);
2711
2662
  }
2712
- k.current || (N?.trackPlanPageViewed?.(), k.current = !0);
2663
+ p.current || (j?.trackPlanPageViewed?.(), p.current = !0);
2713
2664
  } else
2714
- k.current = !1;
2715
- }, [t, c, d, u, N]);
2716
- const E = () => {
2717
- N?.trackPlanPageClosed?.(), o();
2665
+ p.current = !1;
2666
+ }, [t, d, c, f, j]);
2667
+ const B = () => {
2668
+ j?.trackPlanPageClosed?.(), o();
2718
2669
  };
2719
- return X(() => {
2670
+ return H(() => {
2720
2671
  if (!t) return;
2721
- const A = document.body.style.overflow;
2672
+ const C = document.body.style.overflow;
2722
2673
  return document.body.style.overflow = "hidden", () => {
2723
- document.body.style.overflow = A;
2674
+ document.body.style.overflow = C;
2724
2675
  };
2725
2676
  }, [t]), t ? /* @__PURE__ */ r.jsx(
2726
2677
  "div",
2727
2678
  {
2728
- className: f.overlay,
2679
+ className: m.overlay,
2729
2680
  role: "dialog",
2730
2681
  "aria-modal": "true",
2731
- "aria-label": h?.("planSheetTitle") ?? "Choose Your Kundli Plan",
2682
+ "aria-label": x?.("planSheetTitle") ?? "Choose Your Kundli Plan",
2732
2683
  children: /* @__PURE__ */ r.jsxs(
2733
2684
  "div",
2734
2685
  {
2735
- ref: p,
2736
- className: f.sheet,
2686
+ ref: h,
2687
+ className: m.sheet,
2737
2688
  children: [
2738
2689
  /* @__PURE__ */ r.jsx(
2739
- bn,
2690
+ xn,
2740
2691
  {
2741
- title: h?.("planSheetTitle") ?? "Choose Your Kundli Plan",
2742
- onBack: E
2692
+ title: x?.("planSheetTitle") ?? "Choose Your Kundli Plan",
2693
+ onBack: B
2743
2694
  }
2744
2695
  ),
2745
2696
  /* @__PURE__ */ r.jsx(
2746
2697
  "div",
2747
2698
  {
2748
- ref: D,
2749
- className: f.plansContainer,
2699
+ ref: I,
2700
+ className: m.plansContainer,
2750
2701
  role: "radiogroup",
2751
2702
  "aria-label": "Kundli plans",
2752
- children: c.map((A) => /* @__PURE__ */ r.jsx(
2753
- xn,
2703
+ children: d.map((C) => /* @__PURE__ */ r.jsx(
2704
+ jn,
2754
2705
  {
2755
- plan: A,
2756
- isSelected: A.id === S,
2757
- t: h,
2758
- onSelect: (T) => {
2759
- const g = c.find((G) => G.id === T);
2760
- g && (N?.trackPlanSelected?.({
2706
+ plan: C,
2707
+ isSelected: C.id === N,
2708
+ t: x,
2709
+ onSelect: (y) => {
2710
+ const g = d.find((U) => U.id === y);
2711
+ g && (j?.trackPlanSelected?.({
2761
2712
  planId: g.id,
2762
2713
  planName: g.title
2763
- }), u(g));
2714
+ }), f(g));
2764
2715
  }
2765
2716
  },
2766
- A.id
2717
+ C.id
2767
2718
  ))
2768
2719
  }
2769
2720
  ),
2770
- /* @__PURE__ */ r.jsx("div", { className: f.footer, children: /* @__PURE__ */ r.jsx(
2721
+ /* @__PURE__ */ r.jsx("div", { className: m.footer, children: /* @__PURE__ */ r.jsx(
2771
2722
  "button",
2772
2723
  {
2773
- className: f.proceedBtn,
2774
- disabled: !d,
2724
+ className: m.proceedBtn,
2725
+ disabled: !c,
2775
2726
  onClick: () => {
2776
- d && (N?.trackPlanProceedClicked?.({
2777
- planId: d.id,
2778
- planName: d.title
2779
- }), x(d), o());
2727
+ c && (j?.trackPlanProceedClicked?.({
2728
+ planId: c.id,
2729
+ planName: c.title
2730
+ }), S(c), o());
2780
2731
  },
2781
- children: d ? h?.("planProceedToPayment") ?? d.price + "Proceed to Payment" : "Select a plan"
2732
+ children: c ? x?.("planProceedToPayment") ?? c.price + "Proceed to Payment" : "Select a plan"
2782
2733
  }
2783
2734
  ) })
2784
2735
  ]
@@ -2786,7 +2737,7 @@ const ca = {}, da = ({
2786
2737
  )
2787
2738
  }
2788
2739
  ) : null;
2789
- }, Cn = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", jn = (t, o) => ur[t]?.[o] ?? o, Nn = {
2740
+ }, Sn = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", En = (t, o) => fr[t]?.[o] ?? o, In = {
2790
2741
  fullName: "",
2791
2742
  phone: "",
2792
2743
  gender: "",
@@ -2795,174 +2746,176 @@ const ca = {}, da = ({
2795
2746
  dateOfBirth: "",
2796
2747
  birthTime: "",
2797
2748
  birthTimeUnknown: !1,
2798
- birthPlace: ""
2799
- }, Dn = ({
2749
+ birthPlace: "",
2750
+ birthPlaceLat: void 0,
2751
+ birthPlaceLng: void 0
2752
+ }, Un = ({
2800
2753
  className: t = "",
2801
2754
  locale: o,
2802
- showLanguageSelector: d = !0,
2803
- onBack: u,
2804
- initialValues: y,
2805
- onProceed: x,
2806
- onProceedGuidance: h,
2807
- proceedHref: N,
2808
- originalPriceLabel: w,
2809
- discountedPriceLabel: F,
2810
- googleMapsApiKey: c = "",
2811
- analytics: S
2755
+ showLanguageSelector: c = !0,
2756
+ onBack: f,
2757
+ initialValues: b,
2758
+ onProceed: S,
2759
+ onProceedGuidance: x,
2760
+ proceedHref: j,
2761
+ originalPriceLabel: A,
2762
+ discountedPriceLabel: E,
2763
+ atlasSearchLocalities: d,
2764
+ analytics: N
2812
2765
  }) => {
2813
- const p = Ne(), D = Wr(), k = p !== null, E = k ? p.locale : o, A = E ?? D?.locale ?? "en", [T, g] = V(A), G = k ? p.locale : T, _ = k ? p.setLocale : g, [M, O] = V(!1), $ = q(null), Z = q(E), R = q(
2814
- D?.locale
2766
+ const h = Re(), I = qr(), p = h !== null, B = p ? h.locale : o, C = B ?? I?.locale ?? "en", [y, g] = K(C), U = p ? h.locale : y, J = p ? h.setLocale : g, [v, D] = K(!1), z = W(null), re = W(B), Y = W(
2767
+ I?.locale
2815
2768
  );
2816
- X(() => {
2769
+ H(() => {
2817
2770
  window.scrollTo({ top: 0, left: 0, behavior: "auto" });
2818
2771
  }, []);
2819
- const B = (P) => jn(G, P);
2820
- X(() => {
2821
- E && Z.current !== E && _(E), Z.current = E;
2822
- }, [E, _]), X(() => {
2823
- if (E) return;
2824
- const P = D?.locale;
2825
- P && R.current !== P && _(P), R.current = P;
2826
- }, [D?.locale, E, _]);
2827
- const [z, U] = V({
2828
- ...Nn,
2829
- ...y,
2830
- phone: y?.phone ?? ""
2831
- }), C = k ? p?.config.isGlobal ?? !0 : !0, [L, H] = V(
2832
- C ? "+1" : "+91"
2772
+ const M = (k) => En(U, k);
2773
+ H(() => {
2774
+ B && re.current !== B && J(B), re.current = B;
2775
+ }, [B, J]), H(() => {
2776
+ if (B) return;
2777
+ const k = I?.locale;
2778
+ k && Y.current !== k && J(k), Y.current = k;
2779
+ }, [I?.locale, B, J]);
2780
+ const [se, Q] = K({
2781
+ ...In,
2782
+ ...b,
2783
+ phone: b?.phone ?? ""
2784
+ }), G = p ? h?.config.isGlobal ?? !0 : !0, [T, F] = K(
2785
+ G ? "+1" : "+91"
2833
2786
  );
2834
- X(() => {
2835
- H(C ? "+1" : "+91");
2836
- }, [C]);
2837
- const J = k ? p.formValues : z, ne = k ? p.setFormValues : U, ge = k ? p.goToPage : u, Q = k ? p.onProceed : x, ie = k ? p.onProceedGuidance : h, ue = k ? p.config.proceedHref : N, le = k ? p.config.originalPriceLabel : w, se = k ? p.config.discountedPriceLabel : F, fe = k ? p.config.showLanguageSelector ?? !0 : d, oe = (k ? p?.config?.analytics : S) ?? S;
2838
- X(() => {
2839
- if (!M) return;
2840
- const P = (n) => {
2841
- $.current && !$.current.contains(n.target) && O(!1);
2787
+ H(() => {
2788
+ F(G ? "+1" : "+91");
2789
+ }, [G]);
2790
+ const X = p ? h.formValues : se, te = p ? h.setFormValues : Q, ge = p ? h.goToPage : f, q = p ? h.onProceed : S, oe = p ? h.onProceedGuidance : x, ce = p ? h.config.proceedHref : j, ae = p ? h.config.originalPriceLabel : A, ie = p ? h.config.discountedPriceLabel : E, me = p ? h.config.showLanguageSelector ?? !0 : c, ne = (p ? h?.config?.analytics : N) ?? N;
2791
+ H(() => {
2792
+ if (!v) return;
2793
+ const k = (he) => {
2794
+ z.current && !z.current.contains(he.target) && D(!1);
2842
2795
  };
2843
- return document.addEventListener("mousedown", P), () => document.removeEventListener("mousedown", P);
2844
- }, [M]);
2845
- const [pe, me] = V(!1), [ee, ye] = V(null), ce = q(null), we = be((P) => {
2846
- ce.current = P, me(!0);
2847
- }, []), _e = be(() => {
2848
- if (oe?.trackPlanProceedClicked?.({
2849
- planId: ee.id,
2850
- planName: ee.title
2851
- }), !ce.current || !ee) return;
2852
- const P = { ...ce.current, _selectedPlan: ee };
2853
- ee.id === hr && ie ? ie(P) : Q?.(P), me(!1), ce.current = null;
2854
- }, [ee, Q, ie]), Pe = p?.config.imageComponent ?? Le, ke = fe ? /* @__PURE__ */ r.jsxs("div", { className: he.langDropdownWrap, ref: $, children: [
2796
+ return document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
2797
+ }, [v]);
2798
+ const [de, _e] = K(!1), [V, ye] = K(null), ue = W(null), we = Te((k) => {
2799
+ ue.current = k, _e(!0);
2800
+ }, []), be = Te(() => {
2801
+ if (ne?.trackPlanProceedClicked?.({
2802
+ planId: V.id,
2803
+ planName: V.title
2804
+ }), !ue.current || !V) return;
2805
+ const k = { ...ue.current, _selectedPlan: V };
2806
+ V.id === br && oe ? oe(k) : q?.(k), _e(!1), ue.current = null;
2807
+ }, [V, q, oe]), xe = h?.config.imageComponent ?? De, Pe = me ? /* @__PURE__ */ r.jsxs("div", { className: pe.langDropdownWrap, ref: z, children: [
2855
2808
  /* @__PURE__ */ r.jsxs(
2856
2809
  "button",
2857
2810
  {
2858
2811
  type: "button",
2859
- className: he.langTrigger,
2812
+ className: pe.langTrigger,
2860
2813
  onClick: () => {
2861
- oe?.trackLanguageClickedFe?.({ language: G }), O((P) => !P);
2814
+ ne?.trackLanguageClickedFe?.({ language: U }), D((k) => !k);
2862
2815
  },
2863
- "aria-expanded": M,
2816
+ "aria-expanded": v,
2864
2817
  "aria-haspopup": "listbox",
2865
2818
  id: "kundli-form-lang",
2866
- "aria-label": B("language"),
2819
+ "aria-label": M("language"),
2867
2820
  children: [
2868
2821
  /* @__PURE__ */ r.jsx(
2869
- Pe,
2822
+ xe,
2870
2823
  {
2871
- src: Cn,
2824
+ src: Sn,
2872
2825
  alt: "",
2873
- className: he.langIcon,
2826
+ className: pe.langIcon,
2874
2827
  width: 16,
2875
2828
  height: 16,
2876
2829
  loading: "eager"
2877
2830
  }
2878
2831
  ),
2879
- /* @__PURE__ */ r.jsx("span", { className: he.langLabel, children: lr[G] })
2832
+ /* @__PURE__ */ r.jsx("span", { className: pe.langLabel, children: ir[U] })
2880
2833
  ]
2881
2834
  }
2882
2835
  ),
2883
- M && /* @__PURE__ */ r.jsx(
2836
+ v && /* @__PURE__ */ r.jsx(
2884
2837
  "ul",
2885
2838
  {
2886
- className: he.langMenu,
2839
+ className: pe.langMenu,
2887
2840
  role: "listbox",
2888
2841
  "aria-labelledby": "kundli-form-lang",
2889
- "aria-activedescendant": `kundli-form-lang-option-${G}`,
2890
- children: dr.map((P) => /* @__PURE__ */ r.jsx(
2842
+ "aria-activedescendant": `kundli-form-lang-option-${U}`,
2843
+ children: ur.map((k) => /* @__PURE__ */ r.jsx(
2891
2844
  "li",
2892
2845
  {
2893
- id: `kundli-form-lang-option-${P}`,
2846
+ id: `kundli-form-lang-option-${k}`,
2894
2847
  role: "option",
2895
- "aria-selected": P === G,
2896
- className: he.langOption,
2848
+ "aria-selected": k === U,
2849
+ className: pe.langOption,
2897
2850
  onClick: () => {
2898
- oe?.trackLanguageChangedFe?.({ newLanguage: P }), _(P), O(!1);
2851
+ ne?.trackLanguageChangedFe?.({ newLanguage: k }), J(k), D(!1);
2899
2852
  },
2900
- children: lr[P]
2853
+ children: ir[k]
2901
2854
  },
2902
- P
2855
+ k
2903
2856
  ))
2904
2857
  }
2905
2858
  )
2906
2859
  ] }) : null;
2907
- return /* @__PURE__ */ r.jsxs("div", { className: `${he.container} ${t}`, children: [
2860
+ return /* @__PURE__ */ r.jsxs("div", { className: `${pe.container} ${t}`, children: [
2908
2861
  /* @__PURE__ */ r.jsx(
2909
- Aa,
2862
+ Ra,
2910
2863
  {
2911
- t: B,
2912
- logoUrl: k ? p.config.logoUrl : void 0,
2913
- languageSelector: ke,
2914
- className: he.kundliHeaderNoBorder
2864
+ t: M,
2865
+ logoUrl: p ? h.config.logoUrl : void 0,
2866
+ languageSelector: Pe,
2867
+ className: pe.kundliHeaderNoBorder
2915
2868
  }
2916
2869
  ),
2917
- /* @__PURE__ */ r.jsx("div", { className: he.headerSeparator, "aria-hidden": !0 }),
2918
- /* @__PURE__ */ r.jsxs("main", { className: he.main, children: [
2919
- /* @__PURE__ */ r.jsx(st, { t: B, onBack: ge }),
2870
+ /* @__PURE__ */ r.jsx("div", { className: pe.headerSeparator, "aria-hidden": !0 }),
2871
+ /* @__PURE__ */ r.jsxs("main", { className: pe.main, children: [
2872
+ /* @__PURE__ */ r.jsx(ut, { t: M, onBack: ge }),
2920
2873
  /* @__PURE__ */ r.jsx(
2921
- da,
2874
+ pa,
2922
2875
  {
2923
- t: B,
2924
- values: J,
2925
- onChange: ne,
2926
- googleMapsApiKey: c,
2927
- phoneIsdCode: L,
2928
- onPhoneIsdCodeChange: H
2876
+ t: M,
2877
+ values: X,
2878
+ onChange: te,
2879
+ atlasSearchLocalities: d,
2880
+ phoneIsdCode: T,
2881
+ onPhoneIsdCodeChange: F
2929
2882
  }
2930
2883
  )
2931
2884
  ] }),
2932
2885
  /* @__PURE__ */ r.jsx(
2933
- wa,
2886
+ Na,
2934
2887
  {
2935
- t: B,
2936
- values: J,
2937
- phoneIsdCode: L,
2938
- onProceed: Q,
2939
- onProceedGuidance: ie,
2940
- href: ue,
2941
- originalPriceLabel: le,
2942
- discountedPriceLabel: se,
2943
- analytics: oe,
2888
+ t: M,
2889
+ values: X,
2890
+ phoneIsdCode: T,
2891
+ onProceed: q,
2892
+ onProceedGuidance: oe,
2893
+ href: ce,
2894
+ originalPriceLabel: ae,
2895
+ discountedPriceLabel: ie,
2896
+ analytics: ne,
2944
2897
  showPlanSheet: we,
2945
- confirmPlan: _e,
2946
- planSheetOpen: pe,
2947
- selectedPlan: ee
2898
+ confirmPlan: be,
2899
+ planSheetOpen: de,
2900
+ selectedPlan: V
2948
2901
  }
2949
2902
  ),
2950
- p?.config.variant === "v1" && /* @__PURE__ */ r.jsx(
2951
- An,
2903
+ h?.config.variant === "v1" && /* @__PURE__ */ r.jsx(
2904
+ Rn,
2952
2905
  {
2953
- isOpen: pe,
2954
- onClose: () => me(!1),
2955
- selectedPlan: ee,
2906
+ isOpen: de,
2907
+ onClose: () => _e(!1),
2908
+ selectedPlan: V,
2956
2909
  onSelectPlan: ye,
2957
- onProceed: (P) => {
2958
- _e?.(P);
2910
+ onProceed: (k) => {
2911
+ be?.(k);
2959
2912
  },
2960
- t: B,
2961
- analytics: oe
2913
+ t: M,
2914
+ analytics: ne
2962
2915
  }
2963
2916
  )
2964
2917
  ] });
2965
- }, On = {
2918
+ }, Gn = {
2966
2919
  banner_clicked_fe: "banner_clicked_fe",
2967
2920
  primary_cta_clicked_fe: "primary_cta_clicked_fe",
2968
2921
  language_changed_fe: "language_changed_fe",
@@ -3002,31 +2955,31 @@ const ca = {}, da = ({
3002
2955
  kundli_form_view: "kundli_form_view"
3003
2956
  };
3004
2957
  export {
3005
- Le as D,
3006
- st as F,
3007
- Sn as I,
3008
- On as K,
3009
- lr as L,
3010
- hr as P,
3011
- dr as S,
3012
- da as U,
3013
- fr as a,
3014
- He as b,
3015
- Dn as c,
3016
- Bn as d,
3017
- at as e,
3018
- nt as f,
3019
- rt as g,
3020
- Ne as h,
3021
- In as i,
3022
- Ln as j,
2958
+ De as D,
2959
+ ut as F,
2960
+ Dn as I,
2961
+ Gn as K,
2962
+ ir as L,
2963
+ br as P,
2964
+ ur as S,
2965
+ pa as U,
2966
+ hr as a,
2967
+ Ke as b,
2968
+ Un as c,
2969
+ Mn as d,
2970
+ it as e,
2971
+ lt as f,
2972
+ nt as g,
2973
+ Re as h,
2974
+ On as i,
2975
+ $n as j,
3023
2976
  r as k,
3024
- Aa as l,
3025
- wa as m,
3026
- An as n,
3027
- En as r,
3028
- tt as s,
3029
- ur as t,
3030
- Wr as u
2977
+ Ra as l,
2978
+ Na as m,
2979
+ Rn as n,
2980
+ Fn as r,
2981
+ ot as s,
2982
+ fr as t,
2983
+ qr as u
3031
2984
  };
3032
- //# sourceMappingURL=analytics-CFSBD_1m.js.map
2985
+ //# sourceMappingURL=analytics-CKPY7Hx3.js.map