@srimandir/kundli-generator 7.5.34 → 7.5.35
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.
- package/dist/{analytics-CK83MwKJ.js → analytics-B0DrAvOD.js} +324 -328
- package/dist/analytics-B0DrAvOD.js.map +1 -0
- package/dist/{criticalCss-Bb2jISjo.js → criticalCss-B6zvWCwV.js} +2 -2
- package/dist/{criticalCss-Bb2jISjo.js.map → criticalCss-B6zvWCwV.js.map} +1 -1
- package/dist/form-entry.js +1 -1
- package/dist/kundli-generator.js +2 -2
- package/dist/page-entry.js +2 -2
- package/package.json +2 -2
- package/dist/analytics-CK83MwKJ.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import na, { useContext as oa, createContext as Ta, useState as I, useRef as
|
|
1
|
+
import na, { useContext as oa, createContext as Ta, useState as I, useRef as U, useEffect as q, useMemo as Be, useCallback as Ce, Fragment as Va } from "react";
|
|
2
2
|
import { FormSectionHeader as Ja, FooterCTAButton as za, FooterShell as Qa, CircularMarquee as Xa, footerShellStyles as Ee, PageHeader as Za } from "@srimandir/astrology-common";
|
|
3
3
|
var Ve = { exports: {} }, He = {};
|
|
4
4
|
var ga;
|
|
@@ -7,10 +7,10 @@ function et() {
|
|
|
7
7
|
ga = 1;
|
|
8
8
|
var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.fragment"), p = Object.prototype.hasOwnProperty, d = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
9
|
function _(P, k, Y) {
|
|
10
|
-
var
|
|
10
|
+
var M, N = {}, m = null, C = null;
|
|
11
11
|
Y !== void 0 && (m = "" + Y), k.key !== void 0 && (m = "" + k.key), k.ref !== void 0 && (C = k.ref);
|
|
12
|
-
for (
|
|
13
|
-
if (P && P.defaultProps) for (
|
|
12
|
+
for (M in k) p.call(k, M) && !h.hasOwnProperty(M) && (N[M] = k[M]);
|
|
13
|
+
if (P && P.defaultProps) for (M in k = P.defaultProps, k) N[M] === void 0 && (N[M] = k[M]);
|
|
14
14
|
return { $$typeof: n, type: P, key: m, ref: C, props: N, _owner: d.current };
|
|
15
15
|
}
|
|
16
16
|
return He.Fragment = s, He.jsx = _, He.jsxs = _, He;
|
|
@@ -19,7 +19,7 @@ var We = {};
|
|
|
19
19
|
var ba;
|
|
20
20
|
function at() {
|
|
21
21
|
return ba || (ba = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
-
var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), d = /* @__PURE__ */ Symbol.for("react.strict_mode"), h = /* @__PURE__ */ Symbol.for("react.profiler"), _ = /* @__PURE__ */ Symbol.for("react.provider"), P = /* @__PURE__ */ Symbol.for("react.context"), k = /* @__PURE__ */ Symbol.for("react.forward_ref"), Y = /* @__PURE__ */ Symbol.for("react.suspense"),
|
|
22
|
+
var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), d = /* @__PURE__ */ Symbol.for("react.strict_mode"), h = /* @__PURE__ */ Symbol.for("react.profiler"), _ = /* @__PURE__ */ Symbol.for("react.provider"), P = /* @__PURE__ */ Symbol.for("react.context"), k = /* @__PURE__ */ Symbol.for("react.forward_ref"), Y = /* @__PURE__ */ Symbol.for("react.suspense"), M = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), C = /* @__PURE__ */ Symbol.for("react.offscreen"), A = Symbol.iterator, z = "@@iterator";
|
|
23
23
|
function v(a) {
|
|
24
24
|
if (a === null || typeof a != "object")
|
|
25
25
|
return null;
|
|
@@ -31,34 +31,34 @@ function at() {
|
|
|
31
31
|
{
|
|
32
32
|
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), T = 1; T < l; T++)
|
|
33
33
|
u[T - 1] = arguments[T];
|
|
34
|
-
|
|
34
|
+
oe("error", a, u);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function oe(a, l, u) {
|
|
38
38
|
{
|
|
39
|
-
var T = y.ReactDebugCurrentFrame,
|
|
40
|
-
|
|
39
|
+
var T = y.ReactDebugCurrentFrame, H = T.getStackAddendum();
|
|
40
|
+
H !== "" && (l += "%s", u = u.concat([H]));
|
|
41
41
|
var J = u.map(function(F) {
|
|
42
42
|
return String(F);
|
|
43
43
|
});
|
|
44
44
|
J.unshift("Warning: " + l), Function.prototype.apply.call(console[a], console, J);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
var S = !1, V = !1, j = !1,
|
|
48
|
-
|
|
49
|
-
function
|
|
50
|
-
return !!(typeof a == "string" || typeof a == "function" || a === p || a === h || R || a === d || a === Y || a ===
|
|
47
|
+
var S = !1, V = !1, j = !1, O = !1, R = !1, G;
|
|
48
|
+
G = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
|
+
function ee(a) {
|
|
50
|
+
return !!(typeof a == "string" || typeof a == "function" || a === p || a === h || R || a === d || a === Y || a === M || O || a === C || S || V || j || typeof a == "object" && a !== null && (a.$$typeof === m || a.$$typeof === N || a.$$typeof === _ || a.$$typeof === P || a.$$typeof === k || // This needs to include all possible module reference object
|
|
51
51
|
// types supported by any Flight configuration anywhere since
|
|
52
52
|
// we don't know which Flight build this will end up being used
|
|
53
53
|
// with.
|
|
54
|
-
a.$$typeof ===
|
|
54
|
+
a.$$typeof === G || a.getModuleId !== void 0));
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function ae(a, l, u) {
|
|
57
57
|
var T = a.displayName;
|
|
58
58
|
if (T)
|
|
59
59
|
return T;
|
|
60
|
-
var
|
|
61
|
-
return
|
|
60
|
+
var H = l.displayName || l.name || "";
|
|
61
|
+
return H !== "" ? u + "(" + H + ")" : u;
|
|
62
62
|
}
|
|
63
63
|
function B(a) {
|
|
64
64
|
return a.displayName || "Context";
|
|
@@ -81,7 +81,7 @@ function at() {
|
|
|
81
81
|
return "StrictMode";
|
|
82
82
|
case Y:
|
|
83
83
|
return "Suspense";
|
|
84
|
-
case
|
|
84
|
+
case M:
|
|
85
85
|
return "SuspenseList";
|
|
86
86
|
}
|
|
87
87
|
if (typeof a == "object")
|
|
@@ -93,12 +93,12 @@ function at() {
|
|
|
93
93
|
var u = a;
|
|
94
94
|
return B(u._context) + ".Provider";
|
|
95
95
|
case k:
|
|
96
|
-
return
|
|
96
|
+
return ae(a, a.render, "ForwardRef");
|
|
97
97
|
case N:
|
|
98
98
|
var T = a.displayName || null;
|
|
99
99
|
return T !== null ? T : D(a.type) || "Memo";
|
|
100
100
|
case m: {
|
|
101
|
-
var
|
|
101
|
+
var H = a, J = H._payload, F = H._init;
|
|
102
102
|
try {
|
|
103
103
|
return D(F(J));
|
|
104
104
|
} catch {
|
|
@@ -108,14 +108,14 @@ function at() {
|
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
111
|
-
var
|
|
111
|
+
var $ = Object.assign, Q = 0, E, ge, ie, de, ue, X, xe;
|
|
112
112
|
function ye() {
|
|
113
113
|
}
|
|
114
114
|
ye.__reactDisabledLog = !0;
|
|
115
115
|
function Ne() {
|
|
116
116
|
{
|
|
117
117
|
if (Q === 0) {
|
|
118
|
-
E = console.log, ge = console.info,
|
|
118
|
+
E = console.log, ge = console.info, ie = console.warn, de = console.error, ue = console.group, X = console.groupCollapsed, xe = console.groupEnd;
|
|
119
119
|
var a = {
|
|
120
120
|
configurable: !0,
|
|
121
121
|
enumerable: !0,
|
|
@@ -144,25 +144,25 @@ function at() {
|
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
147
|
-
log:
|
|
147
|
+
log: $({}, a, {
|
|
148
148
|
value: E
|
|
149
149
|
}),
|
|
150
|
-
info:
|
|
150
|
+
info: $({}, a, {
|
|
151
151
|
value: ge
|
|
152
152
|
}),
|
|
153
|
-
warn:
|
|
154
|
-
value:
|
|
153
|
+
warn: $({}, a, {
|
|
154
|
+
value: ie
|
|
155
155
|
}),
|
|
156
|
-
error:
|
|
156
|
+
error: $({}, a, {
|
|
157
157
|
value: de
|
|
158
158
|
}),
|
|
159
|
-
group:
|
|
159
|
+
group: $({}, a, {
|
|
160
160
|
value: ue
|
|
161
161
|
}),
|
|
162
|
-
groupCollapsed:
|
|
162
|
+
groupCollapsed: $({}, a, {
|
|
163
163
|
value: X
|
|
164
164
|
}),
|
|
165
|
-
groupEnd:
|
|
165
|
+
groupEnd: $({}, a, {
|
|
166
166
|
value: xe
|
|
167
167
|
})
|
|
168
168
|
});
|
|
@@ -170,39 +170,39 @@ function at() {
|
|
|
170
170
|
Q < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
var
|
|
173
|
+
var Z = y.ReactCurrentDispatcher, W;
|
|
174
174
|
function he(a, l, u) {
|
|
175
175
|
{
|
|
176
|
-
if (
|
|
176
|
+
if (W === void 0)
|
|
177
177
|
try {
|
|
178
178
|
throw Error();
|
|
179
|
-
} catch (
|
|
180
|
-
var T =
|
|
181
|
-
|
|
179
|
+
} catch (H) {
|
|
180
|
+
var T = H.stack.trim().match(/\n( *(at )?)/);
|
|
181
|
+
W = T && T[1] || "";
|
|
182
182
|
}
|
|
183
183
|
return `
|
|
184
|
-
` +
|
|
184
|
+
` + W + a;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var te = !1, re;
|
|
188
188
|
{
|
|
189
|
-
var
|
|
190
|
-
|
|
189
|
+
var ce = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
|
+
re = new ce();
|
|
191
191
|
}
|
|
192
192
|
function je(a, l) {
|
|
193
|
-
if (!a ||
|
|
193
|
+
if (!a || te)
|
|
194
194
|
return "";
|
|
195
195
|
{
|
|
196
|
-
var u =
|
|
196
|
+
var u = re.get(a);
|
|
197
197
|
if (u !== void 0)
|
|
198
198
|
return u;
|
|
199
199
|
}
|
|
200
200
|
var T;
|
|
201
|
-
|
|
202
|
-
var
|
|
201
|
+
te = !0;
|
|
202
|
+
var H = Error.prepareStackTrace;
|
|
203
203
|
Error.prepareStackTrace = void 0;
|
|
204
204
|
var J;
|
|
205
|
-
J =
|
|
205
|
+
J = Z.current, Z.current = null, Ne();
|
|
206
206
|
try {
|
|
207
207
|
if (l) {
|
|
208
208
|
var F = function() {
|
|
@@ -239,26 +239,26 @@ function at() {
|
|
|
239
239
|
if (Ae && T && typeof Ae.stack == "string") {
|
|
240
240
|
for (var L = Ae.stack.split(`
|
|
241
241
|
`), ke = T.stack.split(`
|
|
242
|
-
`),
|
|
243
|
-
|
|
244
|
-
for (;
|
|
245
|
-
if (L[
|
|
246
|
-
if (
|
|
242
|
+
`), ne = L.length - 1, se = ke.length - 1; ne >= 1 && se >= 0 && L[ne] !== ke[se]; )
|
|
243
|
+
se--;
|
|
244
|
+
for (; ne >= 1 && se >= 0; ne--, se--)
|
|
245
|
+
if (L[ne] !== ke[se]) {
|
|
246
|
+
if (ne !== 1 || se !== 1)
|
|
247
247
|
do
|
|
248
|
-
if (
|
|
248
|
+
if (ne--, se--, se < 0 || L[ne] !== ke[se]) {
|
|
249
249
|
var we = `
|
|
250
|
-
` + L[
|
|
251
|
-
return a.displayName && we.includes("<anonymous>") && (we = we.replace("<anonymous>", a.displayName)), typeof a == "function" &&
|
|
250
|
+
` + L[ne].replace(" at new ", " at ");
|
|
251
|
+
return a.displayName && we.includes("<anonymous>") && (we = we.replace("<anonymous>", a.displayName)), typeof a == "function" && re.set(a, we), we;
|
|
252
252
|
}
|
|
253
|
-
while (
|
|
253
|
+
while (ne >= 1 && se >= 0);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
} finally {
|
|
258
|
-
|
|
258
|
+
te = !1, Z.current = J, fe(), Error.prepareStackTrace = H;
|
|
259
259
|
}
|
|
260
260
|
var Me = a ? a.displayName || a.name : "", De = Me ? he(Me) : "";
|
|
261
|
-
return typeof a == "function" &&
|
|
261
|
+
return typeof a == "function" && re.set(a, De), De;
|
|
262
262
|
}
|
|
263
263
|
function pe(a, l, u) {
|
|
264
264
|
return je(a, !1);
|
|
@@ -277,7 +277,7 @@ function at() {
|
|
|
277
277
|
switch (a) {
|
|
278
278
|
case Y:
|
|
279
279
|
return he("Suspense");
|
|
280
|
-
case
|
|
280
|
+
case M:
|
|
281
281
|
return he("SuspenseList");
|
|
282
282
|
}
|
|
283
283
|
if (typeof a == "object")
|
|
@@ -287,9 +287,9 @@ function at() {
|
|
|
287
287
|
case N:
|
|
288
288
|
return Re(a.type, l, u);
|
|
289
289
|
case m: {
|
|
290
|
-
var T = a,
|
|
290
|
+
var T = a, H = T._payload, J = T._init;
|
|
291
291
|
try {
|
|
292
|
-
return Re(J(
|
|
292
|
+
return Re(J(H), l, u);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
}
|
|
@@ -304,7 +304,7 @@ function at() {
|
|
|
304
304
|
} else
|
|
305
305
|
Te.setExtraStackFrame(null);
|
|
306
306
|
}
|
|
307
|
-
function i(a, l, u, T,
|
|
307
|
+
function i(a, l, u, T, H) {
|
|
308
308
|
{
|
|
309
309
|
var J = Function.call.bind(ve);
|
|
310
310
|
for (var F in a)
|
|
@@ -316,10 +316,10 @@ function at() {
|
|
|
316
316
|
throw ke.name = "Invariant Violation", ke;
|
|
317
317
|
}
|
|
318
318
|
L = a[F](l, F, T, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
|
-
} catch (
|
|
320
|
-
L =
|
|
319
|
+
} catch (ne) {
|
|
320
|
+
L = ne;
|
|
321
321
|
}
|
|
322
|
-
L && !(L instanceof Error) && (Pe(
|
|
322
|
+
L && !(L instanceof Error) && (Pe(H), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", u, F, typeof L), Pe(null)), L instanceof Error && !(L.message in be) && (be[L.message] = !0, Pe(H), w("Failed %s type: %s", u, L.message), Pe(null));
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
@@ -333,7 +333,7 @@ function at() {
|
|
|
333
333
|
return u;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function le(a) {
|
|
337
337
|
try {
|
|
338
338
|
return Ge(a), !1;
|
|
339
339
|
} catch {
|
|
@@ -344,7 +344,7 @@ function at() {
|
|
|
344
344
|
return "" + a;
|
|
345
345
|
}
|
|
346
346
|
function Oe(a) {
|
|
347
|
-
if (
|
|
347
|
+
if (le(a))
|
|
348
348
|
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _e(a)), Ge(a);
|
|
349
349
|
}
|
|
350
350
|
var r = y.ReactCurrentOwner, c = {
|
|
@@ -394,7 +394,7 @@ function at() {
|
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
var Ia = function(a, l, u, T,
|
|
397
|
+
var Ia = function(a, l, u, T, H, J, F) {
|
|
398
398
|
var L = {
|
|
399
399
|
// This tag allows us to uniquely identify this as a React Element
|
|
400
400
|
$$typeof: n,
|
|
@@ -420,25 +420,25 @@ function at() {
|
|
|
420
420
|
configurable: !1,
|
|
421
421
|
enumerable: !1,
|
|
422
422
|
writable: !1,
|
|
423
|
-
value:
|
|
423
|
+
value: H
|
|
424
424
|
}), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
|
|
425
425
|
};
|
|
426
|
-
function Fa(a, l, u, T,
|
|
426
|
+
function Fa(a, l, u, T, H) {
|
|
427
427
|
{
|
|
428
428
|
var J, F = {}, L = null, ke = null;
|
|
429
|
-
u !== void 0 && (Oe(u), L = "" + u), ze(l) && (Oe(l.key), L = "" + l.key), $e(l) && (ke = l.ref, Ba(l,
|
|
429
|
+
u !== void 0 && (Oe(u), L = "" + u), ze(l) && (Oe(l.key), L = "" + l.key), $e(l) && (ke = l.ref, Ba(l, H));
|
|
430
430
|
for (J in l)
|
|
431
431
|
ve.call(l, J) && !c.hasOwnProperty(J) && (F[J] = l[J]);
|
|
432
432
|
if (a && a.defaultProps) {
|
|
433
|
-
var
|
|
434
|
-
for (J in
|
|
435
|
-
F[J] === void 0 && (F[J] =
|
|
433
|
+
var ne = a.defaultProps;
|
|
434
|
+
for (J in ne)
|
|
435
|
+
F[J] === void 0 && (F[J] = ne[J]);
|
|
436
436
|
}
|
|
437
437
|
if (L || ke) {
|
|
438
|
-
var
|
|
439
|
-
L && Da(F,
|
|
438
|
+
var se = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
439
|
+
L && Da(F, se), ke && Ea(F, se);
|
|
440
440
|
}
|
|
441
|
-
return Ia(a, L, ke,
|
|
441
|
+
return Ia(a, L, ke, H, T, r.current, F);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
var Qe = y.ReactCurrentOwner, ca = y.ReactDebugCurrentFrame;
|
|
@@ -507,9 +507,9 @@ Check the top-level render call using <` + u + ">.");
|
|
|
507
507
|
else if (Ze(a))
|
|
508
508
|
a._store && (a._store.validated = !0);
|
|
509
509
|
else if (a) {
|
|
510
|
-
var
|
|
511
|
-
if (typeof
|
|
512
|
-
for (var J =
|
|
510
|
+
var H = v(a);
|
|
511
|
+
if (typeof H == "function" && H !== a.entries)
|
|
512
|
+
for (var J = H.call(a), F; !(F = J.next()).done; )
|
|
513
513
|
Ze(F.value) && pa(F.value, l);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
@@ -533,8 +533,8 @@ Check the top-level render call using <` + u + ">.");
|
|
|
533
533
|
i(u, a.props, "prop", T, a);
|
|
534
534
|
} else if (l.PropTypes !== void 0 && !Xe) {
|
|
535
535
|
Xe = !0;
|
|
536
|
-
var
|
|
537
|
-
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
536
|
+
var H = D(l);
|
|
537
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", H || "Unknown");
|
|
538
538
|
}
|
|
539
539
|
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
540
540
|
}
|
|
@@ -552,20 +552,20 @@ Check the top-level render call using <` + u + ">.");
|
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
var fa = {};
|
|
555
|
-
function ha(a, l, u, T,
|
|
555
|
+
function ha(a, l, u, T, H, J) {
|
|
556
556
|
{
|
|
557
|
-
var F =
|
|
557
|
+
var F = ee(a);
|
|
558
558
|
if (!F) {
|
|
559
559
|
var L = "";
|
|
560
560
|
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
561
561
|
var ke = Ma();
|
|
562
562
|
ke ? L += ke : L += da();
|
|
563
|
-
var
|
|
564
|
-
a === null ?
|
|
563
|
+
var ne;
|
|
564
|
+
a === null ? ne = "null" : f(a) ? ne = "array" : a !== void 0 && a.$$typeof === n ? (ne = "<" + (D(a.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof a, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, L);
|
|
565
565
|
}
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
return
|
|
566
|
+
var se = Fa(a, l, u, H, J);
|
|
567
|
+
if (se == null)
|
|
568
|
+
return se;
|
|
569
569
|
if (F) {
|
|
570
570
|
var we = l.children;
|
|
571
571
|
if (we !== void 0)
|
|
@@ -593,7 +593,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
593
593
|
<%s key={someKey} {...props} />`, ea, De, qa, De), fa[De + ea] = !0;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
return a === p ? Oa(
|
|
596
|
+
return a === p ? Oa(se) : Ga(se), se;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
function $a(a, l, u) {
|
|
@@ -2355,7 +2355,7 @@ const ia = Ta(null), xt = {
|
|
|
2355
2355
|
autoOpenPlanSheet: P,
|
|
2356
2356
|
googleMapsApiKey: k,
|
|
2357
2357
|
atlasSearchLocalities: Y,
|
|
2358
|
-
googleMapsAutocompleteEnabled:
|
|
2358
|
+
googleMapsAutocompleteEnabled: M,
|
|
2359
2359
|
enableConsultationScheduling: N,
|
|
2360
2360
|
fetchConsultationSlots: m,
|
|
2361
2361
|
logoUrl: C,
|
|
@@ -2364,30 +2364,30 @@ const ia = Ta(null), xt = {
|
|
|
2364
2364
|
backgroundImagePriority: v,
|
|
2365
2365
|
universityLogoUrls: y,
|
|
2366
2366
|
sampleReportHref: w,
|
|
2367
|
-
onViewSampleReport:
|
|
2367
|
+
onViewSampleReport: oe,
|
|
2368
2368
|
ctaHref: S,
|
|
2369
2369
|
onCtaClick: V,
|
|
2370
2370
|
onBack: j,
|
|
2371
|
-
readMoreReviewsHref:
|
|
2371
|
+
readMoreReviewsHref: O,
|
|
2372
2372
|
onProceed: R,
|
|
2373
|
-
proceedHref:
|
|
2374
|
-
originalPriceLabel:
|
|
2375
|
-
discountedPriceLabel:
|
|
2373
|
+
proceedHref: G,
|
|
2374
|
+
originalPriceLabel: ee,
|
|
2375
|
+
discountedPriceLabel: ae,
|
|
2376
2376
|
discountPillLabel: B,
|
|
2377
2377
|
analytics: D,
|
|
2378
|
-
onProceedGuidance:
|
|
2378
|
+
onProceedGuidance: $,
|
|
2379
2379
|
onLocaleChange: Q,
|
|
2380
2380
|
imageComponent: E = Ye,
|
|
2381
2381
|
resolvedUtmBannerImageUrl: ge,
|
|
2382
|
-
children:
|
|
2382
|
+
children: ie
|
|
2383
2383
|
}) => {
|
|
2384
2384
|
const [de, ue] = I("landing"), [X, xe] = I(t ?? "en"), [ye, Ne] = I({
|
|
2385
2385
|
...xt,
|
|
2386
2386
|
..._
|
|
2387
|
-
}), fe =
|
|
2387
|
+
}), fe = U(!0);
|
|
2388
2388
|
q(() => {
|
|
2389
|
-
const
|
|
2390
|
-
|
|
2389
|
+
const re = Tt();
|
|
2390
|
+
re && xe(re);
|
|
2391
2391
|
}, []), q(() => {
|
|
2392
2392
|
Pt(X);
|
|
2393
2393
|
}, [X]), q(() => {
|
|
@@ -2395,13 +2395,9 @@ const ia = Ta(null), xt = {
|
|
|
2395
2395
|
fe.current = !1;
|
|
2396
2396
|
return;
|
|
2397
2397
|
}
|
|
2398
|
-
if (re.current) {
|
|
2399
|
-
re.current = !1;
|
|
2400
|
-
return;
|
|
2401
|
-
}
|
|
2402
2398
|
Q?.(X);
|
|
2403
2399
|
}, [X, Q]);
|
|
2404
|
-
const
|
|
2400
|
+
const Z = Be(
|
|
2405
2401
|
() => ({
|
|
2406
2402
|
locale: t,
|
|
2407
2403
|
showLanguageSelector: n,
|
|
@@ -2413,7 +2409,7 @@ const ia = Ta(null), xt = {
|
|
|
2413
2409
|
autoOpenPlanSheet: P,
|
|
2414
2410
|
googleMapsApiKey: k,
|
|
2415
2411
|
atlasSearchLocalities: Y,
|
|
2416
|
-
googleMapsAutocompleteEnabled:
|
|
2412
|
+
googleMapsAutocompleteEnabled: M,
|
|
2417
2413
|
enableConsultationScheduling: N,
|
|
2418
2414
|
fetchConsultationSlots: m,
|
|
2419
2415
|
logoUrl: C,
|
|
@@ -2422,18 +2418,18 @@ const ia = Ta(null), xt = {
|
|
|
2422
2418
|
backgroundImagePriority: v,
|
|
2423
2419
|
universityLogoUrls: y,
|
|
2424
2420
|
sampleReportHref: w,
|
|
2425
|
-
onViewSampleReport:
|
|
2421
|
+
onViewSampleReport: oe,
|
|
2426
2422
|
ctaHref: S,
|
|
2427
2423
|
onCtaClick: V,
|
|
2428
2424
|
onBack: j,
|
|
2429
|
-
readMoreReviewsHref:
|
|
2425
|
+
readMoreReviewsHref: O,
|
|
2430
2426
|
onProceed: R,
|
|
2431
|
-
proceedHref:
|
|
2432
|
-
originalPriceLabel:
|
|
2433
|
-
discountedPriceLabel:
|
|
2427
|
+
proceedHref: G,
|
|
2428
|
+
originalPriceLabel: ee,
|
|
2429
|
+
discountedPriceLabel: ae,
|
|
2434
2430
|
discountPillLabel: B,
|
|
2435
2431
|
analytics: D,
|
|
2436
|
-
onProceedGuidance:
|
|
2432
|
+
onProceedGuidance: $,
|
|
2437
2433
|
onLocaleChange: Q,
|
|
2438
2434
|
imageComponent: E,
|
|
2439
2435
|
resolvedUtmBannerImageUrl: ge
|
|
@@ -2449,7 +2445,7 @@ const ia = Ta(null), xt = {
|
|
|
2449
2445
|
P,
|
|
2450
2446
|
k,
|
|
2451
2447
|
Y,
|
|
2452
|
-
|
|
2448
|
+
M,
|
|
2453
2449
|
N,
|
|
2454
2450
|
m,
|
|
2455
2451
|
C,
|
|
@@ -2458,42 +2454,42 @@ const ia = Ta(null), xt = {
|
|
|
2458
2454
|
v,
|
|
2459
2455
|
y,
|
|
2460
2456
|
w,
|
|
2461
|
-
|
|
2457
|
+
oe,
|
|
2462
2458
|
S,
|
|
2463
2459
|
V,
|
|
2464
2460
|
j,
|
|
2465
|
-
$,
|
|
2466
|
-
R,
|
|
2467
2461
|
O,
|
|
2462
|
+
R,
|
|
2463
|
+
G,
|
|
2464
|
+
ee,
|
|
2468
2465
|
ae,
|
|
2469
|
-
te,
|
|
2470
2466
|
B,
|
|
2471
2467
|
D,
|
|
2472
|
-
|
|
2468
|
+
$,
|
|
2473
2469
|
Q,
|
|
2474
2470
|
E,
|
|
2475
2471
|
ge
|
|
2476
2472
|
]
|
|
2477
|
-
),
|
|
2473
|
+
), W = Ce(() => {
|
|
2478
2474
|
ue("form");
|
|
2479
|
-
}, [
|
|
2480
|
-
ue("landing"),
|
|
2481
|
-
}, [
|
|
2475
|
+
}, [Z.analytics]), he = Ce(() => {
|
|
2476
|
+
ue("landing"), Z.onBack?.();
|
|
2477
|
+
}, [Z.onBack]), te = Be(
|
|
2482
2478
|
() => ({
|
|
2483
2479
|
view: de,
|
|
2484
2480
|
locale: X,
|
|
2485
2481
|
setLocale: xe,
|
|
2486
|
-
config:
|
|
2482
|
+
config: Z,
|
|
2487
2483
|
formValues: ye,
|
|
2488
2484
|
setFormValues: Ne,
|
|
2489
|
-
goToForm:
|
|
2490
|
-
goToPage:
|
|
2491
|
-
onProceed:
|
|
2492
|
-
onProceedGuidance:
|
|
2485
|
+
goToForm: W,
|
|
2486
|
+
goToPage: he,
|
|
2487
|
+
onProceed: Z.onProceed,
|
|
2488
|
+
onProceedGuidance: Z.onProceedGuidance
|
|
2493
2489
|
}),
|
|
2494
|
-
[de, X,
|
|
2490
|
+
[de, X, Z, ye, W, he]
|
|
2495
2491
|
);
|
|
2496
|
-
return /* @__PURE__ */ e.jsx(ia.Provider, { value:
|
|
2492
|
+
return /* @__PURE__ */ e.jsx(ia.Provider, { value: te, children: ie });
|
|
2497
2493
|
};
|
|
2498
2494
|
function Ie() {
|
|
2499
2495
|
return oa(ia);
|
|
@@ -2609,7 +2605,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2609
2605
|
k();
|
|
2610
2606
|
}, h.onerror = () => p(new Error("Failed to load Google Maps API")), document.head.appendChild(h);
|
|
2611
2607
|
}), Je), Cr = (t) => {
|
|
2612
|
-
const { apiKey: n, language: s = "en", restrictCountry: p, deferLoad: d = !1 } = t, [h, _] = I(!1), [P, k] = I([]), [Y,
|
|
2608
|
+
const { apiKey: n, language: s = "en", restrictCountry: p, deferLoad: d = !1 } = t, [h, _] = I(!1), [P, k] = I([]), [Y, M] = I(!1), [N, m] = I(null), [C, A] = I(!d), z = U(null), v = U(null), y = U(null), w = Ce(() => {
|
|
2613
2609
|
d && A(!0);
|
|
2614
2610
|
}, [d]);
|
|
2615
2611
|
q(() => {
|
|
@@ -2625,42 +2621,42 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2625
2621
|
_(!1), m(j?.message || "Failed to load location service");
|
|
2626
2622
|
});
|
|
2627
2623
|
}, [n, s, C]);
|
|
2628
|
-
const
|
|
2624
|
+
const oe = Ce(
|
|
2629
2625
|
async (j) => {
|
|
2630
2626
|
if (!j || j.length < 2 || !z.current) {
|
|
2631
2627
|
k([]);
|
|
2632
2628
|
return;
|
|
2633
2629
|
}
|
|
2634
|
-
|
|
2630
|
+
M(!0);
|
|
2635
2631
|
try {
|
|
2636
|
-
const
|
|
2632
|
+
const O = {
|
|
2637
2633
|
input: j,
|
|
2638
2634
|
types: ["(cities)"],
|
|
2639
2635
|
sessionToken: y.current ?? void 0
|
|
2640
2636
|
};
|
|
2641
|
-
p && (
|
|
2642
|
-
const R = await new Promise((
|
|
2637
|
+
p && (O.componentRestrictions = { country: p });
|
|
2638
|
+
const R = await new Promise((G, ee) => {
|
|
2643
2639
|
z.current.getPlacePredictions(
|
|
2644
|
-
|
|
2645
|
-
(
|
|
2646
|
-
B === google.maps.places.PlacesServiceStatus.OK &&
|
|
2640
|
+
O,
|
|
2641
|
+
(ae, B) => {
|
|
2642
|
+
B === google.maps.places.PlacesServiceStatus.OK && ae ? G(ae) : B === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? G([]) : ee(new Error(`Places API error: ${B}`));
|
|
2647
2643
|
}
|
|
2648
2644
|
);
|
|
2649
2645
|
});
|
|
2650
2646
|
k(
|
|
2651
|
-
R.map((
|
|
2652
|
-
place_id:
|
|
2653
|
-
description:
|
|
2647
|
+
R.map((G) => ({
|
|
2648
|
+
place_id: G.place_id,
|
|
2649
|
+
description: G.description,
|
|
2654
2650
|
structured_formatting: {
|
|
2655
|
-
main_text:
|
|
2656
|
-
secondary_text:
|
|
2651
|
+
main_text: G.structured_formatting?.main_text || G.description,
|
|
2652
|
+
secondary_text: G.structured_formatting?.secondary_text || ""
|
|
2657
2653
|
}
|
|
2658
2654
|
}))
|
|
2659
2655
|
);
|
|
2660
2656
|
} catch {
|
|
2661
2657
|
k([]);
|
|
2662
2658
|
} finally {
|
|
2663
|
-
|
|
2659
|
+
M(!1);
|
|
2664
2660
|
}
|
|
2665
2661
|
},
|
|
2666
2662
|
[p]
|
|
@@ -2668,8 +2664,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2668
2664
|
async (j) => {
|
|
2669
2665
|
if (!v.current) return null;
|
|
2670
2666
|
try {
|
|
2671
|
-
const
|
|
2672
|
-
(D,
|
|
2667
|
+
const O = await new Promise(
|
|
2668
|
+
(D, $) => {
|
|
2673
2669
|
v.current.getDetails(
|
|
2674
2670
|
{
|
|
2675
2671
|
placeId: j,
|
|
@@ -2677,22 +2673,22 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2677
2673
|
sessionToken: y.current ?? void 0
|
|
2678
2674
|
},
|
|
2679
2675
|
(Q, E) => {
|
|
2680
|
-
E === google.maps.places.PlacesServiceStatus.OK && Q ? D(Q) :
|
|
2676
|
+
E === google.maps.places.PlacesServiceStatus.OK && Q ? D(Q) : $(new Error(`Place details error: ${E}`));
|
|
2681
2677
|
}
|
|
2682
2678
|
);
|
|
2683
2679
|
}
|
|
2684
2680
|
);
|
|
2685
2681
|
y.current = new google.maps.places.AutocompleteSessionToken();
|
|
2686
|
-
const R =
|
|
2687
|
-
let
|
|
2688
|
-
return
|
|
2689
|
-
D.types.includes("locality") && (
|
|
2682
|
+
const R = O.geometry?.location?.lat() || 0, G = O.geometry?.location?.lng() || 0;
|
|
2683
|
+
let ee = "", ae = "", B = "";
|
|
2684
|
+
return O.address_components?.forEach((D) => {
|
|
2685
|
+
D.types.includes("locality") && (ee = D.long_name), D.types.includes("administrative_area_level_1") && (ae = D.long_name), D.types.includes("country") && (B = D.long_name);
|
|
2690
2686
|
}), {
|
|
2691
|
-
display_name:
|
|
2687
|
+
display_name: O.formatted_address || "",
|
|
2692
2688
|
lat: R,
|
|
2693
|
-
lng:
|
|
2694
|
-
city:
|
|
2695
|
-
state:
|
|
2689
|
+
lng: G,
|
|
2690
|
+
city: ee,
|
|
2691
|
+
state: ae,
|
|
2696
2692
|
country: B
|
|
2697
2693
|
};
|
|
2698
2694
|
} catch {
|
|
@@ -2706,7 +2702,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2706
2702
|
predictions: P,
|
|
2707
2703
|
isSearching: Y,
|
|
2708
2704
|
loadError: N,
|
|
2709
|
-
searchPlaces:
|
|
2705
|
+
searchPlaces: oe,
|
|
2710
2706
|
getPlaceDetails: S,
|
|
2711
2707
|
clearPredictions: V,
|
|
2712
2708
|
triggerLoad: w
|
|
@@ -2720,11 +2716,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2720
2716
|
restrictCountry: t?.restrictCountry
|
|
2721
2717
|
};
|
|
2722
2718
|
}, Rr = (t) => {
|
|
2723
|
-
const { searchLocalities: n, restrictCountry: s } = t, [p, d] = I([]), [h, _] = I(!1), [P, k] = I(null), Y =
|
|
2719
|
+
const { searchLocalities: n, restrictCountry: s } = t, [p, d] = I([]), [h, _] = I(!1), [P, k] = I(null), Y = U(0);
|
|
2724
2720
|
q(() => {
|
|
2725
2721
|
k(null);
|
|
2726
2722
|
}, [n]);
|
|
2727
|
-
const
|
|
2723
|
+
const M = Ce(
|
|
2728
2724
|
async (m) => {
|
|
2729
2725
|
if (!m || m.length < 2 || !n) {
|
|
2730
2726
|
d([]);
|
|
@@ -2758,7 +2754,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2758
2754
|
predictions: p,
|
|
2759
2755
|
isSearching: h,
|
|
2760
2756
|
loadError: P,
|
|
2761
|
-
searchPlaces:
|
|
2757
|
+
searchPlaces: M,
|
|
2762
2758
|
clearPredictions: N
|
|
2763
2759
|
};
|
|
2764
2760
|
}, Ue = {
|
|
@@ -2847,26 +2843,26 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2847
2843
|
googleMapsApiKey: P,
|
|
2848
2844
|
atlasSearchLocalities: k,
|
|
2849
2845
|
googleMapsAutocompleteEnabled: Y,
|
|
2850
|
-
className:
|
|
2846
|
+
className: M = ""
|
|
2851
2847
|
}) => {
|
|
2852
|
-
const N = Ie(), m = N?.config?.analytics ?? _, C = N?.config.isGlobal ?? !0, A = N?.config?.googleMapsApiKey, z = N?.config?.atlasSearchLocalities, v = N?.config?.googleMapsAutocompleteEnabled, [y, w] = I(!1), [
|
|
2848
|
+
const N = Ie(), m = N?.config?.analytics ?? _, C = N?.config.isGlobal ?? !0, A = N?.config?.googleMapsApiKey, z = N?.config?.atlasSearchLocalities, v = N?.config?.googleMapsAutocompleteEnabled, [y, w] = I(!1), [oe, S] = I(""), V = U(null), j = U(null), O = U({}), R = (r) => s({ ...n, ...r }), G = (r, c) => {
|
|
2853
2849
|
if (r === "phone") {
|
|
2854
|
-
const K = Lr(c, p,
|
|
2850
|
+
const K = Lr(c, p, O.current);
|
|
2855
2851
|
K.shouldTrack && m?.trackPhoneSectionFilled?.({ phone: K.fullPhone });
|
|
2856
2852
|
return;
|
|
2857
2853
|
}
|
|
2858
|
-
c.trim() &&
|
|
2854
|
+
c.trim() && !O.current[r] && (O.current[r] = !0, {
|
|
2859
2855
|
fullName: () => m?.trackNameSectionFilled?.(),
|
|
2860
2856
|
dateOfBirth: () => m?.trackDobFilled?.(),
|
|
2861
2857
|
birthTime: () => m?.trackTimeFilled?.(),
|
|
2862
2858
|
birthPlace: () => m?.trackPlaceOfBirthChosen?.()
|
|
2863
2859
|
}[r]?.());
|
|
2864
|
-
},
|
|
2860
|
+
}, ee = (r) => {
|
|
2865
2861
|
const c = r.target.value;
|
|
2866
2862
|
c.trim() && m?.trackEmailSectionFilled?.({ email: c });
|
|
2867
|
-
},
|
|
2868
|
-
|
|
2869
|
-
const
|
|
2863
|
+
}, ae = oe.trim().toLowerCase(), B = Ca.filter((r) => ae ? r.country.toLowerCase().includes(ae) || r.code.includes(ae) : !0), D = U(null);
|
|
2864
|
+
U(null);
|
|
2865
|
+
const $ = U(null), Q = U(0), E = U(null), [ge, ie] = I(!1), [de, ue] = I({ hour12: 12, minute: "00", meridiem: "AM" }), X = (r) => String(r).padStart(2, "0"), xe = (r) => {
|
|
2870
2866
|
const c = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
|
|
2871
2867
|
if (!c) return r;
|
|
2872
2868
|
const K = Number(c[1]), Se = c[2], $e = K >= 12 ? "PM" : "AM";
|
|
@@ -2880,10 +2876,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2880
2876
|
const c = Math.min(12, Math.max(1, r.hour12)), K = /^([0-5]\d)$/.test(r.minute) ? r.minute : "00";
|
|
2881
2877
|
let Se = c % 12;
|
|
2882
2878
|
return r.meridiem === "PM" && (Se += 12), `${X(Se)}:${K}`;
|
|
2883
|
-
}, fe =
|
|
2879
|
+
}, fe = U(null), [Z, W] = I(!1), he = U(n.birthPlace ?? ""), [te, re] = I(
|
|
2884
2880
|
null
|
|
2885
|
-
),
|
|
2886
|
-
apiKey: pe ?
|
|
2881
|
+
), ce = P ?? A ?? Br?.VITE_GOOGLE_MAPS_API_KEY, je = k ?? z, pe = Y ?? v ?? !0, me = (n.birthPlace ?? "").trim(), Re = C ? void 0 : "in", be = Cr({
|
|
2882
|
+
apiKey: pe ? ce : void 0,
|
|
2887
2883
|
language: "en",
|
|
2888
2884
|
restrictCountry: Re
|
|
2889
2885
|
}), Te = Rr({
|
|
@@ -2901,14 +2897,14 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2901
2897
|
secondaryText: r.secondary_text,
|
|
2902
2898
|
lat: r.lat,
|
|
2903
2899
|
lng: r.lng
|
|
2904
|
-
})), i = pe ? be.isSearching : Te.isSearching, b = pe ? be.loadError : Te.loadError, f = pe ? !!
|
|
2900
|
+
})), i = pe ? be.isSearching : Te.isSearching, b = pe ? be.loadError : Te.loadError, f = pe ? !!ce : !!je, _e = pe ? be.searchPlaces : Te.searchPlaces, le = pe ? be.clearPredictions : Te.clearPredictions, Ge = U(() => {
|
|
2905
2901
|
});
|
|
2906
2902
|
Ge.current = () => {
|
|
2907
2903
|
(n.birthPlace ?? "") !== he.current && R({
|
|
2908
2904
|
birthPlace: "",
|
|
2909
2905
|
birthPlaceLat: void 0,
|
|
2910
2906
|
birthPlaceLng: void 0
|
|
2911
|
-
}),
|
|
2907
|
+
}), W(!1);
|
|
2912
2908
|
}, q(() => {
|
|
2913
2909
|
const r = (c) => {
|
|
2914
2910
|
fe.current && (fe.current.contains(c.target) || Ge.current());
|
|
@@ -2926,40 +2922,40 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2926
2922
|
}, 0);
|
|
2927
2923
|
return () => window.clearTimeout(r);
|
|
2928
2924
|
}, [y]), q(() => {
|
|
2929
|
-
if (!
|
|
2925
|
+
if (!Z) return;
|
|
2930
2926
|
if (me.length < 2) {
|
|
2931
|
-
|
|
2927
|
+
le();
|
|
2932
2928
|
return;
|
|
2933
2929
|
}
|
|
2934
2930
|
const r = window.setTimeout(async () => {
|
|
2935
2931
|
await _e(me);
|
|
2936
2932
|
}, 250);
|
|
2937
2933
|
return () => window.clearTimeout(r);
|
|
2938
|
-
}, [
|
|
2934
|
+
}, [le, Z, me, _e]);
|
|
2939
2935
|
const Oe = (r) => {
|
|
2940
2936
|
const c = r.current;
|
|
2941
2937
|
if (!(!c || c.disabled)) {
|
|
2942
|
-
if (document.activeElement === c &&
|
|
2938
|
+
if (document.activeElement === c && $.current === c && Date.now() - Q.current < 6e4) {
|
|
2943
2939
|
c.blur();
|
|
2944
2940
|
return;
|
|
2945
2941
|
}
|
|
2946
2942
|
if (typeof c.showPicker == "function") {
|
|
2947
|
-
c.showPicker(),
|
|
2943
|
+
c.showPicker(), $.current = c, Q.current = Date.now();
|
|
2948
2944
|
return;
|
|
2949
2945
|
}
|
|
2950
|
-
c.focus(),
|
|
2946
|
+
c.focus(), $.current = c, Q.current = Date.now();
|
|
2951
2947
|
}
|
|
2952
2948
|
};
|
|
2953
2949
|
return q(() => {
|
|
2954
2950
|
const r = (c) => {
|
|
2955
|
-
E.current && (E.current.contains(c.target) ||
|
|
2951
|
+
E.current && (E.current.contains(c.target) || ie(!1));
|
|
2956
2952
|
};
|
|
2957
2953
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
2958
2954
|
}, []), q(() => {
|
|
2959
2955
|
const r = (K) => {
|
|
2960
|
-
K.target?.closest?.("[data-info-tooltip]") == null &&
|
|
2956
|
+
K.target?.closest?.("[data-info-tooltip]") == null && re(null);
|
|
2961
2957
|
}, c = (K) => {
|
|
2962
|
-
K.key === "Escape" &&
|
|
2958
|
+
K.key === "Escape" && re(null);
|
|
2963
2959
|
};
|
|
2964
2960
|
return document.addEventListener("mousedown", r), document.addEventListener("keydown", c), () => {
|
|
2965
2961
|
document.removeEventListener("mousedown", r), document.removeEventListener("keydown", c);
|
|
@@ -2967,7 +2963,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2967
2963
|
}, []), /* @__PURE__ */ e.jsx(
|
|
2968
2964
|
"section",
|
|
2969
2965
|
{
|
|
2970
|
-
className: `${o.wrap} ${
|
|
2966
|
+
className: `${o.wrap} ${M}`,
|
|
2971
2967
|
"aria-label": t("formTitle"),
|
|
2972
2968
|
children: /* @__PURE__ */ e.jsx("div", { className: o.card, children: /* @__PURE__ */ e.jsxs("div", { className: o.cardInner, children: [
|
|
2973
2969
|
/* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
@@ -2985,7 +2981,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2985
2981
|
onFocus: () => m?.trackNameSectionClicked?.(),
|
|
2986
2982
|
onChange: (r) => {
|
|
2987
2983
|
const c = r.target.value;
|
|
2988
|
-
R({ fullName: c }),
|
|
2984
|
+
R({ fullName: c }), G("fullName", c);
|
|
2989
2985
|
},
|
|
2990
2986
|
placeholder: t("formFullNamePlaceholder"),
|
|
2991
2987
|
autoComplete: "name"
|
|
@@ -3022,7 +3018,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3022
3018
|
onFocus: () => m?.trackPhoneSectionClicked?.(),
|
|
3023
3019
|
onChange: (r) => {
|
|
3024
3020
|
const c = r.target.value;
|
|
3025
|
-
R({ phone: va(c) }),
|
|
3021
|
+
R({ phone: va(c) }), G("phone", va(c));
|
|
3026
3022
|
},
|
|
3027
3023
|
placeholder: t("formPhonePlaceholder"),
|
|
3028
3024
|
autoComplete: "tel",
|
|
@@ -3046,7 +3042,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3046
3042
|
{
|
|
3047
3043
|
ref: j,
|
|
3048
3044
|
type: "text",
|
|
3049
|
-
value:
|
|
3045
|
+
value: oe,
|
|
3050
3046
|
onChange: (r) => S(r.target.value),
|
|
3051
3047
|
placeholder: "Search country",
|
|
3052
3048
|
className: o.isdSearchInput,
|
|
@@ -3140,7 +3136,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3140
3136
|
onChange: (r) => {
|
|
3141
3137
|
R({ email: r.target.value });
|
|
3142
3138
|
},
|
|
3143
|
-
onBlur:
|
|
3139
|
+
onBlur: ee,
|
|
3144
3140
|
placeholder: t("formEmailPlaceholder"),
|
|
3145
3141
|
autoComplete: "email",
|
|
3146
3142
|
required: !0,
|
|
@@ -3161,9 +3157,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3161
3157
|
type: "button",
|
|
3162
3158
|
className: o.infoBtn,
|
|
3163
3159
|
"aria-label": t("info"),
|
|
3164
|
-
"aria-expanded":
|
|
3160
|
+
"aria-expanded": te === "dob",
|
|
3165
3161
|
onClick: () => {
|
|
3166
|
-
|
|
3162
|
+
re((r) => r === "dob" ? null : "dob"), m?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
3167
3163
|
},
|
|
3168
3164
|
children: /* @__PURE__ */ e.jsx(
|
|
3169
3165
|
"img",
|
|
@@ -3176,7 +3172,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3176
3172
|
)
|
|
3177
3173
|
}
|
|
3178
3174
|
),
|
|
3179
|
-
|
|
3175
|
+
te === "dob" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
|
|
3180
3176
|
t("formDobInfo"),
|
|
3181
3177
|
/* @__PURE__ */ e.jsx("span", { className: o.tooltipArrow, "aria-hidden": !0 })
|
|
3182
3178
|
] })
|
|
@@ -3197,12 +3193,12 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3197
3193
|
})(),
|
|
3198
3194
|
onChange: (r) => {
|
|
3199
3195
|
const c = r.target.value, K = /* @__PURE__ */ new Date(), Se = `${K.getFullYear()}-${X(K.getMonth() + 1)}-${X(K.getDate())}`;
|
|
3200
|
-
c && c > Se || (R({ dateOfBirth: c }),
|
|
3196
|
+
c && c > Se || (R({ dateOfBirth: c }), G("dateOfBirth", c), $.current = null);
|
|
3201
3197
|
},
|
|
3202
3198
|
onFocus: () => m?.trackDobClicked?.(),
|
|
3203
3199
|
onClick: () => Oe(D),
|
|
3204
3200
|
onBlur: () => {
|
|
3205
|
-
|
|
3201
|
+
$.current === D.current && ($.current = null);
|
|
3206
3202
|
}
|
|
3207
3203
|
}
|
|
3208
3204
|
),
|
|
@@ -3242,9 +3238,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3242
3238
|
type: "button",
|
|
3243
3239
|
className: o.infoBtn,
|
|
3244
3240
|
"aria-label": t("info"),
|
|
3245
|
-
"aria-expanded":
|
|
3241
|
+
"aria-expanded": te === "time",
|
|
3246
3242
|
onClick: () => {
|
|
3247
|
-
m?.trackInfoIconClicked?.({ fieldName: "time" }),
|
|
3243
|
+
m?.trackInfoIconClicked?.({ fieldName: "time" }), re((r) => r === "time" ? null : "time");
|
|
3248
3244
|
},
|
|
3249
3245
|
children: /* @__PURE__ */ e.jsx(
|
|
3250
3246
|
"img",
|
|
@@ -3257,7 +3253,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3257
3253
|
)
|
|
3258
3254
|
}
|
|
3259
3255
|
),
|
|
3260
|
-
|
|
3256
|
+
te === "time" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
|
|
3261
3257
|
t("formBirthTimeInfo"),
|
|
3262
3258
|
/* @__PURE__ */ e.jsx("span", { className: o.tooltipArrow, "aria-hidden": !0 })
|
|
3263
3259
|
] })
|
|
@@ -3275,12 +3271,12 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3275
3271
|
onFocus: () => m?.trackTimeClicked?.(),
|
|
3276
3272
|
onChange: (r) => {
|
|
3277
3273
|
const c = r.target.value;
|
|
3278
|
-
R({ birthTime: c }),
|
|
3274
|
+
R({ birthTime: c }), G("birthTime", c);
|
|
3279
3275
|
},
|
|
3280
3276
|
disabled: n.birthTimeUnknown,
|
|
3281
3277
|
placeholder: "HH:MM AM",
|
|
3282
3278
|
onClick: () => {
|
|
3283
|
-
n.birthTimeUnknown || (ue(ye(n.birthTime || "12:00")),
|
|
3279
|
+
n.birthTimeUnknown || (ue(ye(n.birthTime || "12:00")), ie((r) => !r));
|
|
3284
3280
|
}
|
|
3285
3281
|
}
|
|
3286
3282
|
),
|
|
@@ -3293,7 +3289,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3293
3289
|
disabled: n.birthTimeUnknown,
|
|
3294
3290
|
onMouseDown: (r) => r.preventDefault(),
|
|
3295
3291
|
onClick: (r) => {
|
|
3296
|
-
r.preventDefault(), r.stopPropagation(), !n.birthTimeUnknown && (ue(ye(n.birthTime || "12:00")),
|
|
3292
|
+
r.preventDefault(), r.stopPropagation(), !n.birthTimeUnknown && (ue(ye(n.birthTime || "12:00")), ie((c) => !c));
|
|
3297
3293
|
},
|
|
3298
3294
|
children: /* @__PURE__ */ e.jsx(
|
|
3299
3295
|
"img",
|
|
@@ -3367,7 +3363,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3367
3363
|
{
|
|
3368
3364
|
type: "button",
|
|
3369
3365
|
className: o.timePopoverBtn,
|
|
3370
|
-
onClick: () =>
|
|
3366
|
+
onClick: () => ie(!1),
|
|
3371
3367
|
children: "Cancel"
|
|
3372
3368
|
}
|
|
3373
3369
|
),
|
|
@@ -3378,7 +3374,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3378
3374
|
className: `${o.timePopoverBtn} ${o.timePopoverOk}`,
|
|
3379
3375
|
onClick: () => {
|
|
3380
3376
|
const r = Ne(de);
|
|
3381
|
-
R({ birthTime: r }),
|
|
3377
|
+
R({ birthTime: r }), G("birthTime", r), ie(!1);
|
|
3382
3378
|
},
|
|
3383
3379
|
"aria-label": "OK",
|
|
3384
3380
|
children: /* @__PURE__ */ e.jsx(
|
|
@@ -3452,11 +3448,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3452
3448
|
type: "button",
|
|
3453
3449
|
className: o.infoBtn,
|
|
3454
3450
|
"aria-label": t("info"),
|
|
3455
|
-
"aria-expanded":
|
|
3451
|
+
"aria-expanded": te === "place",
|
|
3456
3452
|
onClick: () => {
|
|
3457
3453
|
m?.trackInfoIconClicked?.({
|
|
3458
3454
|
fieldName: "birthPlace"
|
|
3459
|
-
}),
|
|
3455
|
+
}), re((r) => r === "place" ? null : "place");
|
|
3460
3456
|
},
|
|
3461
3457
|
children: /* @__PURE__ */ e.jsx(
|
|
3462
3458
|
"img",
|
|
@@ -3469,7 +3465,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3469
3465
|
)
|
|
3470
3466
|
}
|
|
3471
3467
|
),
|
|
3472
|
-
|
|
3468
|
+
te === "place" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
|
|
3473
3469
|
t("formBirthPlaceInfo"),
|
|
3474
3470
|
/* @__PURE__ */ e.jsx("span", { className: o.tooltipArrow, "aria-hidden": !0 })
|
|
3475
3471
|
] })
|
|
@@ -3489,10 +3485,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3489
3485
|
birthPlace: c,
|
|
3490
3486
|
birthPlaceLat: void 0,
|
|
3491
3487
|
birthPlaceLng: void 0
|
|
3492
|
-
}),
|
|
3488
|
+
}), G("birthPlace", c), W(!0);
|
|
3493
3489
|
},
|
|
3494
3490
|
onFocus: () => {
|
|
3495
|
-
m?.trackPlaceOfBirthClicked?.(),
|
|
3491
|
+
m?.trackPlaceOfBirthClicked?.(), W(!0);
|
|
3496
3492
|
},
|
|
3497
3493
|
placeholder: t("formBirthPlacePlaceholder"),
|
|
3498
3494
|
autoComplete: "address-level2"
|
|
@@ -3507,7 +3503,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3507
3503
|
"aria-hidden": !0
|
|
3508
3504
|
}
|
|
3509
3505
|
) }),
|
|
3510
|
-
|
|
3506
|
+
Z && Pe.length > 0 && /* @__PURE__ */ e.jsx("div", { className: o.suggestions, role: "listbox", children: Pe.slice(0, 8).map((r) => /* @__PURE__ */ e.jsxs(
|
|
3511
3507
|
"button",
|
|
3512
3508
|
{
|
|
3513
3509
|
type: "button",
|
|
@@ -3518,7 +3514,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3518
3514
|
birthPlace: c,
|
|
3519
3515
|
birthPlaceLat: r.lat,
|
|
3520
3516
|
birthPlaceLng: r.lng
|
|
3521
|
-
}),
|
|
3517
|
+
}), le(), W(!1), pe) {
|
|
3522
3518
|
const K = await be.getPlaceDetails(
|
|
3523
3519
|
r.id
|
|
3524
3520
|
);
|
|
@@ -3537,8 +3533,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3537
3533
|
},
|
|
3538
3534
|
r.id
|
|
3539
3535
|
)) }),
|
|
3540
|
-
|
|
3541
|
-
|
|
3536
|
+
Z && f && i && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: "Loading…" }),
|
|
3537
|
+
Z && f && !i && !!b && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: b })
|
|
3542
3538
|
] })
|
|
3543
3539
|
] }),
|
|
3544
3540
|
h && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
@@ -3746,22 +3742,22 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3746
3742
|
href: P,
|
|
3747
3743
|
analytics: k,
|
|
3748
3744
|
className: Y = "",
|
|
3749
|
-
discountedPriceLabel:
|
|
3745
|
+
discountedPriceLabel: M,
|
|
3750
3746
|
discountPillLabel: N,
|
|
3751
3747
|
showPlanSheet: m,
|
|
3752
3748
|
confirmPlan: C,
|
|
3753
3749
|
planSheetOpen: A,
|
|
3754
3750
|
selectedPlan: z
|
|
3755
3751
|
}) => {
|
|
3756
|
-
const v = Ie(), y = v?.config.isGlobal ?? !0, w = v?.config?.variant,
|
|
3752
|
+
const v = Ie(), y = v?.config.isGlobal ?? !0, w = v?.config?.variant, oe = Be(
|
|
3757
3753
|
() => qr(n, y, p),
|
|
3758
3754
|
[n, y, p]
|
|
3759
|
-
), S =
|
|
3760
|
-
if (
|
|
3761
|
-
|
|
3755
|
+
), S = oe === null, V = w === "v1" && v?.config?.showSheet, j = y ? M ?? t("formDiscountedPrice") : V ? "" : "₹499", O = v?.config.imageComponent ?? Ye, R = (ee) => {
|
|
3756
|
+
if (ee.preventDefault(), w === "v1" && !S && k?.trackKundliDetailedClicked?.(), !S) {
|
|
3757
|
+
oe && d?.(oe);
|
|
3762
3758
|
return;
|
|
3763
3759
|
}
|
|
3764
|
-
const
|
|
3760
|
+
const ae = !!_ && w === "v1" && z?.id === Ra, B = (n.phone ?? "").trim(), D = {
|
|
3765
3761
|
...n,
|
|
3766
3762
|
phone: B && `${s}-${B}`
|
|
3767
3763
|
};
|
|
@@ -3769,8 +3765,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3769
3765
|
A ? C?.() : m?.(D);
|
|
3770
3766
|
return;
|
|
3771
3767
|
}
|
|
3772
|
-
k?.trackPrimaryCtaClickedL1?.({ avenue: "form" }),
|
|
3773
|
-
},
|
|
3768
|
+
k?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), ae ? _(D) : h?.(D);
|
|
3769
|
+
}, G = /* @__PURE__ */ e.jsx(
|
|
3774
3770
|
za,
|
|
3775
3771
|
{
|
|
3776
3772
|
href: P,
|
|
@@ -3781,7 +3777,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3781
3777
|
children: w === "v1" ? S ? /* @__PURE__ */ e.jsxs("span", { className: Ke.ctaFilledContent, children: [
|
|
3782
3778
|
V ? t("selectPackage") : A && z ? `${t("proceedWithPlan")}${z.price}` : `${t("formProceed")} ${j}`,
|
|
3783
3779
|
/* @__PURE__ */ e.jsx(
|
|
3784
|
-
|
|
3780
|
+
O,
|
|
3785
3781
|
{
|
|
3786
3782
|
src: $r,
|
|
3787
3783
|
alt: "",
|
|
@@ -3803,7 +3799,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3803
3799
|
{
|
|
3804
3800
|
className: `${Ke.footerContainer} ${Y}`,
|
|
3805
3801
|
marquee: /* @__PURE__ */ e.jsx(Xa, { children: /* @__PURE__ */ e.jsx(Hr, { t }) }),
|
|
3806
|
-
children:
|
|
3802
|
+
children: G
|
|
3807
3803
|
}
|
|
3808
3804
|
);
|
|
3809
3805
|
}, Vr = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", Jr = ({
|
|
@@ -4133,80 +4129,80 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4133
4129
|
reportLanguage: _,
|
|
4134
4130
|
isPostPayment: P = !1
|
|
4135
4131
|
}) => {
|
|
4136
|
-
const k = Ie(), Y = k?.config.imageComponent ?? Ye,
|
|
4132
|
+
const k = Ie(), Y = k?.config.imageComponent ?? Ye, M = k?.config.fetchConsultationSlots, N = k?.config.isGlobal ?? !0, m = _ ?? k?.formValues?.language_code, C = P ? "post_payment" : "pre_payment", [A, z] = I(!1), [v, y] = I(!1), [w, oe] = I({}), [S, V] = I("en"), [j, O] = I(!1), R = U(null), G = Be(
|
|
4137
4133
|
() => w[S]?.days ?? [],
|
|
4138
4134
|
[w, S]
|
|
4139
|
-
), [
|
|
4135
|
+
), [ee, ae] = I(""), [B, D] = I(""), [$, Q] = I("morning"), [E, ge] = I(null), ie = U(!1), de = U(null), ue = U({}), [X, xe] = I(null), ye = U(null), Ne = U(
|
|
4140
4136
|
{}
|
|
4141
|
-
), [fe,
|
|
4142
|
-
() =>
|
|
4143
|
-
[
|
|
4137
|
+
), [fe, Z] = I(null), W = Be(
|
|
4138
|
+
() => G.filter((i) => i.has_availability && i.slots.length > 0),
|
|
4139
|
+
[G]
|
|
4144
4140
|
), he = Ce(() => {
|
|
4145
|
-
|
|
4141
|
+
M && (z(!0), y(!1), M().then((i) => {
|
|
4146
4142
|
const b = i ?? {}, f = no(
|
|
4147
4143
|
b,
|
|
4148
4144
|
m,
|
|
4149
4145
|
N
|
|
4150
4146
|
);
|
|
4151
|
-
|
|
4147
|
+
oe(b), V(f), h?.trackConsultationLanguageDefaultSelected?.({
|
|
4152
4148
|
language: ta(f),
|
|
4153
4149
|
status: C
|
|
4154
4150
|
});
|
|
4155
4151
|
const _e = (b[f]?.days ?? []).filter(
|
|
4156
|
-
(
|
|
4152
|
+
(le) => le.has_availability && le.slots.length > 0
|
|
4157
4153
|
).length;
|
|
4158
4154
|
h?.trackAstrologerAvailabilityServed?.({
|
|
4159
|
-
astrologers_shown: p.map((
|
|
4155
|
+
astrologers_shown: p.map((le) => le.name),
|
|
4160
4156
|
dates_available_count: _e,
|
|
4161
4157
|
status: C
|
|
4162
4158
|
});
|
|
4163
4159
|
}).catch(() => {
|
|
4164
4160
|
y(!0);
|
|
4165
4161
|
}).finally(() => z(!1)));
|
|
4166
|
-
}, [
|
|
4162
|
+
}, [M, N, m, h, p, C]);
|
|
4167
4163
|
q(() => {
|
|
4168
4164
|
if (!t) {
|
|
4169
|
-
|
|
4165
|
+
ie.current = !1;
|
|
4170
4166
|
return;
|
|
4171
4167
|
}
|
|
4172
|
-
|
|
4168
|
+
ae(""), O(!1), he();
|
|
4173
4169
|
}, [t]), q(() => {
|
|
4174
4170
|
if (!j) return;
|
|
4175
4171
|
const i = (b) => {
|
|
4176
|
-
R.current && !R.current.contains(b.target) &&
|
|
4172
|
+
R.current && !R.current.contains(b.target) && O(!1);
|
|
4177
4173
|
};
|
|
4178
4174
|
return document.addEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
|
|
4179
4175
|
}, [j]), q(() => {
|
|
4180
|
-
if (!
|
|
4176
|
+
if (!W.length) {
|
|
4181
4177
|
D(""), ge(null);
|
|
4182
4178
|
return;
|
|
4183
4179
|
}
|
|
4184
|
-
const i =
|
|
4185
|
-
|
|
4180
|
+
const i = W[0];
|
|
4181
|
+
W.some((b) => b.date === B) || h?.trackConsultationDateDefaultSelected?.({
|
|
4186
4182
|
date: i.date,
|
|
4187
4183
|
status: C
|
|
4188
4184
|
}), D(
|
|
4189
|
-
(b) =>
|
|
4185
|
+
(b) => W.some((f) => f.date === b) ? b : i.date
|
|
4190
4186
|
);
|
|
4191
|
-
}, [
|
|
4192
|
-
const
|
|
4193
|
-
() =>
|
|
4194
|
-
[
|
|
4195
|
-
),
|
|
4196
|
-
if (!
|
|
4197
|
-
const i = new Set(
|
|
4187
|
+
}, [W]);
|
|
4188
|
+
const te = Be(
|
|
4189
|
+
() => W.find((i) => i.date === B) ?? null,
|
|
4190
|
+
[W, B]
|
|
4191
|
+
), re = Be(() => {
|
|
4192
|
+
if (!te) return [];
|
|
4193
|
+
const i = new Set(te.slots.map((b) => b.period));
|
|
4198
4194
|
return eo.filter((b) => i.has(b));
|
|
4199
|
-
}, [
|
|
4195
|
+
}, [te]);
|
|
4200
4196
|
q(() => {
|
|
4201
|
-
if (!
|
|
4197
|
+
if (!re.length) {
|
|
4202
4198
|
Q("morning"), ge(null);
|
|
4203
4199
|
return;
|
|
4204
4200
|
}
|
|
4205
4201
|
Q(
|
|
4206
|
-
(i) =>
|
|
4202
|
+
(i) => re.includes(i) ? i : re[0]
|
|
4207
4203
|
);
|
|
4208
|
-
}, [
|
|
4209
|
-
const
|
|
4204
|
+
}, [re]);
|
|
4205
|
+
const ce = Be(() => te ? te.slots.filter((i) => i.period === $) : [], [te, $]);
|
|
4210
4206
|
if (q(() => {
|
|
4211
4207
|
const i = () => {
|
|
4212
4208
|
const b = de.current, f = ue.current[B];
|
|
@@ -4214,36 +4210,36 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4214
4210
|
xe(null);
|
|
4215
4211
|
return;
|
|
4216
4212
|
}
|
|
4217
|
-
const _e = b.getBoundingClientRect(),
|
|
4213
|
+
const _e = b.getBoundingClientRect(), le = f.getBoundingClientRect();
|
|
4218
4214
|
xe({
|
|
4219
|
-
left:
|
|
4220
|
-
top:
|
|
4221
|
-
width:
|
|
4222
|
-
height:
|
|
4215
|
+
left: le.left - _e.left,
|
|
4216
|
+
top: le.top - _e.top,
|
|
4217
|
+
width: le.width,
|
|
4218
|
+
height: le.height
|
|
4223
4219
|
});
|
|
4224
4220
|
};
|
|
4225
4221
|
return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
|
|
4226
|
-
}, [B,
|
|
4222
|
+
}, [B, W]), q(() => {
|
|
4227
4223
|
const i = () => {
|
|
4228
|
-
const b = ye.current, f = Ne.current[
|
|
4224
|
+
const b = ye.current, f = Ne.current[$];
|
|
4229
4225
|
if (!b || !f) {
|
|
4230
|
-
|
|
4226
|
+
Z(null);
|
|
4231
4227
|
return;
|
|
4232
4228
|
}
|
|
4233
|
-
const _e = b.getBoundingClientRect(),
|
|
4234
|
-
|
|
4235
|
-
left:
|
|
4236
|
-
width:
|
|
4229
|
+
const _e = b.getBoundingClientRect(), le = f.getBoundingClientRect();
|
|
4230
|
+
Z({
|
|
4231
|
+
left: le.left - _e.left,
|
|
4232
|
+
width: le.width
|
|
4237
4233
|
});
|
|
4238
4234
|
};
|
|
4239
4235
|
return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
|
|
4240
|
-
}, [
|
|
4241
|
-
if (!
|
|
4236
|
+
}, [$, re]), q(() => {
|
|
4237
|
+
if (!ce.length) {
|
|
4242
4238
|
ge(null);
|
|
4243
4239
|
return;
|
|
4244
4240
|
}
|
|
4245
|
-
if (!(E &&
|
|
4246
|
-
const b =
|
|
4241
|
+
if (!(E && ce.some((b) => b.start === E.start))) {
|
|
4242
|
+
const b = ce[0];
|
|
4247
4243
|
h?.trackConsultationTimeDefaultSelected?.({
|
|
4248
4244
|
time: aa(b.start),
|
|
4249
4245
|
gmt_offset: si(b.start),
|
|
@@ -4251,25 +4247,25 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4251
4247
|
});
|
|
4252
4248
|
}
|
|
4253
4249
|
ge(
|
|
4254
|
-
(b) => b &&
|
|
4250
|
+
(b) => b && ce.some((f) => f.start === b.start) ? b : ce[0]
|
|
4255
4251
|
);
|
|
4256
|
-
}, [
|
|
4257
|
-
t &&
|
|
4252
|
+
}, [ce]), q(() => {
|
|
4253
|
+
t && W.length && !ie.current && (h?.trackSlotScreenViewed?.({
|
|
4258
4254
|
astrologers_shown: p.map((i) => i.name),
|
|
4259
|
-
dates_available_count:
|
|
4255
|
+
dates_available_count: W.length,
|
|
4260
4256
|
status: C
|
|
4261
|
-
}),
|
|
4262
|
-
}, [t,
|
|
4263
|
-
const je = !!E && (P || !!
|
|
4257
|
+
}), ie.current = !0);
|
|
4258
|
+
}, [t, W, p, h, C]), !t) return null;
|
|
4259
|
+
const je = !!E && (P || !!ee), pe = (i) => {
|
|
4264
4260
|
D(i), h?.trackSlotDateSelected?.({
|
|
4265
4261
|
date: i,
|
|
4266
|
-
day_part_default:
|
|
4262
|
+
day_part_default: $,
|
|
4267
4263
|
status: C
|
|
4268
4264
|
});
|
|
4269
4265
|
}, me = (i) => {
|
|
4270
4266
|
Q(i), h?.trackDayPartSelected?.({
|
|
4271
4267
|
day_part: i,
|
|
4272
|
-
slots_available_count:
|
|
4268
|
+
slots_available_count: te?.slots.filter((b) => b.period === i).length ?? 0,
|
|
4273
4269
|
status: C
|
|
4274
4270
|
});
|
|
4275
4271
|
}, Re = (i) => {
|
|
@@ -4277,7 +4273,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4277
4273
|
date: B,
|
|
4278
4274
|
time: aa(i.start),
|
|
4279
4275
|
day_part: i.period,
|
|
4280
|
-
topic:
|
|
4276
|
+
topic: ee || null,
|
|
4281
4277
|
status: C
|
|
4282
4278
|
});
|
|
4283
4279
|
}, ve = () => {
|
|
@@ -4288,18 +4284,18 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4288
4284
|
start: E.start,
|
|
4289
4285
|
end: E.end,
|
|
4290
4286
|
period: E.period,
|
|
4291
|
-
topic:
|
|
4287
|
+
topic: ee,
|
|
4292
4288
|
language: S
|
|
4293
4289
|
}));
|
|
4294
4290
|
}, be = (i) => {
|
|
4295
|
-
|
|
4291
|
+
ae(i), h?.trackGuidanceTopicSelected?.({ topic: i, status: C });
|
|
4296
4292
|
}, Te = (i) => {
|
|
4297
4293
|
h?.trackConsultationLanguageChanged?.({
|
|
4298
4294
|
previous_language: ta(S),
|
|
4299
4295
|
new_language: ta(i),
|
|
4300
4296
|
slots_available: La(w[i]) ? "yes" : "no",
|
|
4301
4297
|
status: C
|
|
4302
|
-
}), V(i),
|
|
4298
|
+
}), V(i), O(!1);
|
|
4303
4299
|
}, Pe = qe.find((i) => i.code === S) ?? qe[0];
|
|
4304
4300
|
return /* @__PURE__ */ e.jsx(
|
|
4305
4301
|
"div",
|
|
@@ -4331,7 +4327,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4331
4327
|
{
|
|
4332
4328
|
type: "button",
|
|
4333
4329
|
className: g.languageDropdownBtn,
|
|
4334
|
-
onClick: () =>
|
|
4330
|
+
onClick: () => O((i) => !i),
|
|
4335
4331
|
"aria-haspopup": "listbox",
|
|
4336
4332
|
"aria-expanded": j,
|
|
4337
4333
|
children: [
|
|
@@ -4398,12 +4394,12 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4398
4394
|
d?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
4399
4395
|
/* @__PURE__ */ e.jsx("button", { type: "button", className: g.retryBtn, onClick: he, children: d?.("planRetry") ?? "Retry" })
|
|
4400
4396
|
] }),
|
|
4401
|
-
!A && !v &&
|
|
4397
|
+
!A && !v && W.length === 0 && /* @__PURE__ */ e.jsxs("div", { className: g.emptyState, children: [
|
|
4402
4398
|
/* @__PURE__ */ e.jsx("span", { className: g.emptyStateIcon, children: /* @__PURE__ */ e.jsx(tn, {}) }),
|
|
4403
4399
|
/* @__PURE__ */ e.jsx("p", { className: g.emptyStateTitle, children: d?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
|
|
4404
4400
|
/* @__PURE__ */ e.jsx("p", { className: g.emptyStateSubtitle, children: d?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
|
|
4405
4401
|
] }),
|
|
4406
|
-
!A && !v &&
|
|
4402
|
+
!A && !v && W.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4407
4403
|
/* @__PURE__ */ e.jsxs("div", { className: g.dateTabs, ref: de, role: "radiogroup", "aria-label": "Consultation date", children: [
|
|
4408
4404
|
X && /* @__PURE__ */ e.jsx(
|
|
4409
4405
|
"span",
|
|
@@ -4417,15 +4413,15 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4417
4413
|
"aria-hidden": "true"
|
|
4418
4414
|
}
|
|
4419
4415
|
),
|
|
4420
|
-
|
|
4416
|
+
W.map((i) => {
|
|
4421
4417
|
const b = i.date === B, { dayLabel: f, dayNum: _e } = Zn(i.date);
|
|
4422
4418
|
return /* @__PURE__ */ e.jsxs(Va, { children: [
|
|
4423
4419
|
/* @__PURE__ */ e.jsxs(
|
|
4424
4420
|
"button",
|
|
4425
4421
|
{
|
|
4426
4422
|
type: "button",
|
|
4427
|
-
ref: (
|
|
4428
|
-
ue.current[i.date] =
|
|
4423
|
+
ref: (le) => {
|
|
4424
|
+
ue.current[i.date] = le;
|
|
4429
4425
|
},
|
|
4430
4426
|
className: [
|
|
4431
4427
|
g.dateTab,
|
|
@@ -4456,7 +4452,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4456
4452
|
"aria-hidden": "true"
|
|
4457
4453
|
}
|
|
4458
4454
|
),
|
|
4459
|
-
|
|
4455
|
+
re.map((i) => {
|
|
4460
4456
|
const b = ii[i];
|
|
4461
4457
|
return /* @__PURE__ */ e.jsxs(
|
|
4462
4458
|
"button",
|
|
@@ -4467,10 +4463,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4467
4463
|
type: "button",
|
|
4468
4464
|
className: [
|
|
4469
4465
|
g.periodTab,
|
|
4470
|
-
i ===
|
|
4466
|
+
i === $ ? g.periodTabSelected : ""
|
|
4471
4467
|
].filter(Boolean).join(" "),
|
|
4472
4468
|
role: "tab",
|
|
4473
|
-
"aria-selected": i ===
|
|
4469
|
+
"aria-selected": i === $,
|
|
4474
4470
|
onClick: () => me(i),
|
|
4475
4471
|
children: [
|
|
4476
4472
|
/* @__PURE__ */ e.jsx(b, {}),
|
|
@@ -4487,7 +4483,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4487
4483
|
className: g.timeGrid,
|
|
4488
4484
|
role: "radiogroup",
|
|
4489
4485
|
"aria-label": "Consultation time",
|
|
4490
|
-
children:
|
|
4486
|
+
children: ce.map((i, b) => /* @__PURE__ */ e.jsx(
|
|
4491
4487
|
"button",
|
|
4492
4488
|
{
|
|
4493
4489
|
type: "button",
|
|
@@ -4503,7 +4499,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4503
4499
|
`${i.start}-${b}`
|
|
4504
4500
|
))
|
|
4505
4501
|
},
|
|
4506
|
-
`${B}-${
|
|
4502
|
+
`${B}-${$}`
|
|
4507
4503
|
)
|
|
4508
4504
|
] }),
|
|
4509
4505
|
!P && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
@@ -4514,10 +4510,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4514
4510
|
type: "button",
|
|
4515
4511
|
className: [
|
|
4516
4512
|
g.topicChip,
|
|
4517
|
-
|
|
4513
|
+
ee === i.id ? g.topicChipSelected : ""
|
|
4518
4514
|
].filter(Boolean).join(" "),
|
|
4519
4515
|
role: "radio",
|
|
4520
|
-
"aria-checked":
|
|
4516
|
+
"aria-checked": ee === i.id,
|
|
4521
4517
|
onClick: () => be(i.id),
|
|
4522
4518
|
children: d?.(i.labelKey) ?? i.label
|
|
4523
4519
|
},
|
|
@@ -4624,7 +4620,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4624
4620
|
analytics: P,
|
|
4625
4621
|
enableConsultationScheduling: k
|
|
4626
4622
|
}) => {
|
|
4627
|
-
const Y = Ie(),
|
|
4623
|
+
const Y = Ie(), M = Y?.config.isGlobal ?? !0, N = k ?? Y?.config.enableConsultationScheduling ?? !1, m = d ?? ui(M), C = s?.id || m.find((S) => S.badge)?.id || m[0]?.id || "", A = U(null), z = U(null), v = U(!1), [y, w] = I(!1);
|
|
4628
4624
|
q(() => {
|
|
4629
4625
|
if (t) {
|
|
4630
4626
|
if (!s) {
|
|
@@ -4638,7 +4634,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4638
4634
|
} else
|
|
4639
4635
|
v.current = !1;
|
|
4640
4636
|
}, [t, m, s, p, P]);
|
|
4641
|
-
const
|
|
4637
|
+
const oe = () => {
|
|
4642
4638
|
P?.trackPlanPageClosed?.(), n();
|
|
4643
4639
|
};
|
|
4644
4640
|
return q(() => {
|
|
@@ -4666,7 +4662,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4666
4662
|
"button",
|
|
4667
4663
|
{
|
|
4668
4664
|
className: x.backBtn,
|
|
4669
|
-
onClick:
|
|
4665
|
+
onClick: oe,
|
|
4670
4666
|
"aria-label": "Go back",
|
|
4671
4667
|
type: "button",
|
|
4672
4668
|
children: /* @__PURE__ */ e.jsx(sa, {})
|
|
@@ -4677,7 +4673,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4677
4673
|
Vn,
|
|
4678
4674
|
{
|
|
4679
4675
|
title: _?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
4680
|
-
onBack:
|
|
4676
|
+
onBack: oe
|
|
4681
4677
|
}
|
|
4682
4678
|
),
|
|
4683
4679
|
/* @__PURE__ */ e.jsx(
|
|
@@ -4694,7 +4690,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4694
4690
|
isSelected: S.id === C,
|
|
4695
4691
|
t: _,
|
|
4696
4692
|
onSelect: (V) => {
|
|
4697
|
-
const j = m.find((
|
|
4693
|
+
const j = m.find((O) => O.id === V);
|
|
4698
4694
|
j && (P?.trackPlanSelected?.({
|
|
4699
4695
|
planId: j.id,
|
|
4700
4696
|
planName: j.title,
|
|
@@ -4785,14 +4781,14 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4785
4781
|
proceedHref: P,
|
|
4786
4782
|
originalPriceLabel: k,
|
|
4787
4783
|
discountedPriceLabel: Y,
|
|
4788
|
-
googleMapsApiKey:
|
|
4784
|
+
googleMapsApiKey: M = "",
|
|
4789
4785
|
atlasSearchLocalities: N,
|
|
4790
4786
|
googleMapsAutocompleteEnabled: m,
|
|
4791
4787
|
analytics: C
|
|
4792
4788
|
}) => {
|
|
4793
|
-
const A = Ie(), z = yt(), v = A !== null, y = v ? A.locale : n, w = y ?? z?.locale ?? "en", [
|
|
4789
|
+
const A = Ie(), z = yt(), v = A !== null, y = v ? A.locale : n, w = y ?? z?.locale ?? "en", [oe, S] = I(w), V = v ? A.locale : oe, j = v ? A.setLocale : S, [O, R] = I(!1), G = U(null), ee = U(
|
|
4794
4790
|
y
|
|
4795
|
-
),
|
|
4791
|
+
), ae = U(
|
|
4796
4792
|
z?.locale
|
|
4797
4793
|
);
|
|
4798
4794
|
q(() => {
|
|
@@ -4800,23 +4796,23 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4800
4796
|
}, []);
|
|
4801
4797
|
const B = (f) => fi(V, f);
|
|
4802
4798
|
q(() => {
|
|
4803
|
-
y &&
|
|
4799
|
+
y && ee.current !== y && j(y), ee.current = y;
|
|
4804
4800
|
}, [y, j]), q(() => {
|
|
4805
4801
|
if (y) return;
|
|
4806
4802
|
const f = z?.locale;
|
|
4807
|
-
f &&
|
|
4803
|
+
f && ae.current !== f && j(f), ae.current = f;
|
|
4808
4804
|
}, [z?.locale, y, j]);
|
|
4809
|
-
const [D,
|
|
4805
|
+
const [D, $] = I({
|
|
4810
4806
|
...gi,
|
|
4811
4807
|
...d,
|
|
4812
4808
|
phone: d?.phone ?? ""
|
|
4813
|
-
}), Q = v ? A?.config.isGlobal ?? !0 : !0, E = v ? A.formValues : D, ge = v ? A.setFormValues :
|
|
4809
|
+
}), Q = v ? A?.config.isGlobal ?? !0 : !0, E = v ? A.formValues : D, ge = v ? A.setFormValues : $, [ie, de] = I(
|
|
4814
4810
|
() => hi(E.phoneCountryCode, Q)
|
|
4815
|
-
), ue =
|
|
4811
|
+
), ue = U(
|
|
4816
4812
|
!!(E.phoneCountryCode && ra.includes(E.phoneCountryCode))
|
|
4817
|
-
), X =
|
|
4813
|
+
), X = U(!1), xe = Ce((f) => {
|
|
4818
4814
|
X.current = !0, de(f);
|
|
4819
|
-
}, []), ye =
|
|
4815
|
+
}, []), ye = U(!0);
|
|
4820
4816
|
q(() => {
|
|
4821
4817
|
if (ye.current) {
|
|
4822
4818
|
ye.current = !1;
|
|
@@ -4826,19 +4822,19 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4826
4822
|
}, [Q]), q(() => {
|
|
4827
4823
|
if (!v || X.current) return;
|
|
4828
4824
|
const f = E.phoneCountryCode;
|
|
4829
|
-
f && ra.includes(f) && f !==
|
|
4825
|
+
f && ra.includes(f) && f !== ie && (ue.current = !0, de(f));
|
|
4830
4826
|
}, [v, E.phoneCountryCode]);
|
|
4831
|
-
const Ne = v ? A.goToPage : p, fe = v ? A.onProceed : h,
|
|
4827
|
+
const Ne = v ? A.goToPage : p, fe = v ? A.onProceed : h, Z = v ? A.onProceedGuidance : _, W = v ? A.config.proceedHref : P, he = v ? A.config.originalPriceLabel : k, te = v ? A.config.discountedPriceLabel : Y, re = v ? A.config.showLanguageSelector ?? !0 : s, ce = (v ? A?.config?.analytics : C) ?? C;
|
|
4832
4828
|
q(() => {
|
|
4833
|
-
if (
|
|
4829
|
+
if (!O) return;
|
|
4834
4830
|
const f = (_e) => {
|
|
4835
|
-
|
|
4831
|
+
G.current && !G.current.contains(_e.target) && R(!1);
|
|
4836
4832
|
};
|
|
4837
4833
|
return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
|
|
4838
|
-
}, [
|
|
4839
|
-
const [je, pe] = I(!1), [me, Re] = I(null), ve =
|
|
4834
|
+
}, [O]);
|
|
4835
|
+
const [je, pe] = I(!1), [me, Re] = I(null), ve = U(null), be = Ce((f) => {
|
|
4840
4836
|
ve.current = f, pe(!0);
|
|
4841
|
-
}, []), Te =
|
|
4837
|
+
}, []), Te = U(!1);
|
|
4842
4838
|
q(() => {
|
|
4843
4839
|
if (Te.current || !v || !A?.config.autoOpenPlanSheet || A?.config.variant !== "v1")
|
|
4844
4840
|
return;
|
|
@@ -4846,29 +4842,29 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4846
4842
|
const f = (E.phone ?? "").trim();
|
|
4847
4843
|
be({
|
|
4848
4844
|
...E,
|
|
4849
|
-
phone: f && `${
|
|
4845
|
+
phone: f && `${ie}-${f}`
|
|
4850
4846
|
});
|
|
4851
|
-
}, [v, A?.config.autoOpenPlanSheet, A?.config.variant, E,
|
|
4847
|
+
}, [v, A?.config.autoOpenPlanSheet, A?.config.variant, E, ie, be]);
|
|
4852
4848
|
const Pe = Ce(() => {
|
|
4853
4849
|
if (!ve.current || !me) return;
|
|
4854
|
-
|
|
4850
|
+
ce?.trackPlanProceedClicked?.({
|
|
4855
4851
|
planId: me.id,
|
|
4856
4852
|
planName: me.title,
|
|
4857
4853
|
price: me.price,
|
|
4858
4854
|
currency: Q ? "USD" : "INR"
|
|
4859
4855
|
});
|
|
4860
4856
|
const f = { ...ve.current, _selectedPlan: me };
|
|
4861
|
-
me.id === Ra &&
|
|
4862
|
-
}, [me, fe,
|
|
4857
|
+
me.id === Ra && Z ? Z(f) : fe?.(f), pe(!1), ve.current = null;
|
|
4858
|
+
}, [me, fe, Z]), i = A?.config.imageComponent ?? Ye, b = re ? /* @__PURE__ */ e.jsxs("div", { className: Le.langDropdownWrap, ref: G, children: [
|
|
4863
4859
|
/* @__PURE__ */ e.jsxs(
|
|
4864
4860
|
"button",
|
|
4865
4861
|
{
|
|
4866
4862
|
type: "button",
|
|
4867
4863
|
className: Le.langTrigger,
|
|
4868
4864
|
onClick: () => {
|
|
4869
|
-
|
|
4865
|
+
ce?.trackLanguageClickedFe?.({ language: V }), R((f) => !f);
|
|
4870
4866
|
},
|
|
4871
|
-
"aria-expanded":
|
|
4867
|
+
"aria-expanded": O,
|
|
4872
4868
|
"aria-haspopup": "listbox",
|
|
4873
4869
|
id: "kundli-form-lang",
|
|
4874
4870
|
"aria-label": B("language"),
|
|
@@ -4888,7 +4884,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4888
4884
|
]
|
|
4889
4885
|
}
|
|
4890
4886
|
),
|
|
4891
|
-
|
|
4887
|
+
O && /* @__PURE__ */ e.jsx(
|
|
4892
4888
|
"ul",
|
|
4893
4889
|
{
|
|
4894
4890
|
className: Le.langMenu,
|
|
@@ -4903,7 +4899,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4903
4899
|
"aria-selected": f === V,
|
|
4904
4900
|
className: Le.langOption,
|
|
4905
4901
|
onClick: () => {
|
|
4906
|
-
|
|
4902
|
+
ce?.trackLanguageChangedFe?.({ newLanguage: f }), j(f), R(!1);
|
|
4907
4903
|
},
|
|
4908
4904
|
children: ka[f]
|
|
4909
4905
|
},
|
|
@@ -4931,13 +4927,13 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4931
4927
|
t: B,
|
|
4932
4928
|
values: E,
|
|
4933
4929
|
onChange: ge,
|
|
4934
|
-
googleMapsApiKey:
|
|
4930
|
+
googleMapsApiKey: M,
|
|
4935
4931
|
atlasSearchLocalities: N,
|
|
4936
4932
|
googleMapsAutocompleteEnabled: m,
|
|
4937
|
-
phoneIsdCode:
|
|
4933
|
+
phoneIsdCode: ie,
|
|
4938
4934
|
onPhoneIsdCodeChange: xe,
|
|
4939
4935
|
showV1ExtraFields: v ? A?.config.variant === "v1" : !1,
|
|
4940
|
-
analytics:
|
|
4936
|
+
analytics: ce
|
|
4941
4937
|
}
|
|
4942
4938
|
)
|
|
4943
4939
|
] }),
|
|
@@ -4946,13 +4942,13 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4946
4942
|
{
|
|
4947
4943
|
t: B,
|
|
4948
4944
|
values: E,
|
|
4949
|
-
phoneIsdCode:
|
|
4945
|
+
phoneIsdCode: ie,
|
|
4950
4946
|
onProceed: fe,
|
|
4951
|
-
onProceedGuidance:
|
|
4952
|
-
href:
|
|
4947
|
+
onProceedGuidance: Z,
|
|
4948
|
+
href: W,
|
|
4953
4949
|
originalPriceLabel: he,
|
|
4954
|
-
discountedPriceLabel:
|
|
4955
|
-
analytics:
|
|
4950
|
+
discountedPriceLabel: te,
|
|
4951
|
+
analytics: ce,
|
|
4956
4952
|
showPlanSheet: be,
|
|
4957
4953
|
confirmPlan: Pe,
|
|
4958
4954
|
planSheetOpen: je,
|
|
@@ -4970,7 +4966,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4970
4966
|
Pe?.();
|
|
4971
4967
|
},
|
|
4972
4968
|
t: B,
|
|
4973
|
-
analytics:
|
|
4969
|
+
analytics: ce
|
|
4974
4970
|
}
|
|
4975
4971
|
)
|
|
4976
4972
|
] });
|
|
@@ -5077,4 +5073,4 @@ export {
|
|
|
5077
5073
|
xa as t,
|
|
5078
5074
|
yt as u
|
|
5079
5075
|
};
|
|
5080
|
-
//# sourceMappingURL=analytics-
|
|
5076
|
+
//# sourceMappingURL=analytics-B0DrAvOD.js.map
|