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