@srimandir/kundli-generator 10.0.0 → 10.0.1
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-BcuxsZ76.js → analytics-C7q6coqa.js} +374 -374
- package/dist/{analytics-BcuxsZ76.js.map → analytics-C7q6coqa.js.map} +1 -1
- package/dist/{criticalCss-BfwIYu3m.js → criticalCss-Dwemq76K.js} +134 -98
- package/dist/criticalCss-Dwemq76K.js.map +1 -0
- package/dist/form-entry.js +1 -1
- package/dist/kundli-generator.js +2 -2
- package/dist/page-entry.js +2 -2
- package/dist/style.css +1 -1
- package/dist/utils/keyframeStyles.d.ts +1 -1
- package/package.json +2 -2
- package/dist/criticalCss-BfwIYu3m.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import na, { useContext as oa, createContext as Ta, useState as B, useRef as M, useEffect as q, useMemo as Ee, useCallback as
|
|
1
|
+
import na, { useContext as oa, createContext as Ta, useState as B, useRef as M, useEffect as q, useMemo as Ee, useCallback as Re, Fragment as Va } from "react";
|
|
2
2
|
import { FormSectionHeader as Ja, FooterCTAButton as za, FooterShell as Qa, CircularMarquee as Xa, footerShellStyles as Fe, PageHeader as Za } from "@srimandir/astrology-common";
|
|
3
3
|
import { createPortal as et } from "react-dom";
|
|
4
4
|
var Ve = { exports: {} }, He = {};
|
|
@@ -6,11 +6,11 @@ var ga;
|
|
|
6
6
|
function at() {
|
|
7
7
|
if (ga) return He;
|
|
8
8
|
ga = 1;
|
|
9
|
-
var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), i = /* @__PURE__ */ Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, g = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
9
|
+
var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), i = /* @__PURE__ */ Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, g = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
10
10
|
function h(w, b, Y) {
|
|
11
11
|
var D, N = {}, p = null, U = null;
|
|
12
12
|
Y !== void 0 && (p = "" + Y), b.key !== void 0 && (p = "" + b.key), b.ref !== void 0 && (U = b.ref);
|
|
13
|
-
for (D in b) c.call(b, D) && !
|
|
13
|
+
for (D in b) c.call(b, D) && !y.hasOwnProperty(D) && (N[D] = b[D]);
|
|
14
14
|
if (w && w.defaultProps) for (D in b = w.defaultProps, b) N[D] === void 0 && (N[D] = b[D]);
|
|
15
15
|
return { $$typeof: n, type: w, key: p, ref: U, props: N, _owner: g.current };
|
|
16
16
|
}
|
|
@@ -20,24 +20,24 @@ var We = {};
|
|
|
20
20
|
var ba;
|
|
21
21
|
function tt() {
|
|
22
22
|
return ba || (ba = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
23
|
-
var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), i = /* @__PURE__ */ Symbol.for("react.portal"), c = /* @__PURE__ */ Symbol.for("react.fragment"), g = /* @__PURE__ */ Symbol.for("react.strict_mode"),
|
|
24
|
-
function
|
|
23
|
+
var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), i = /* @__PURE__ */ Symbol.for("react.portal"), c = /* @__PURE__ */ Symbol.for("react.fragment"), g = /* @__PURE__ */ Symbol.for("react.strict_mode"), y = /* @__PURE__ */ Symbol.for("react.profiler"), h = /* @__PURE__ */ Symbol.for("react.provider"), w = /* @__PURE__ */ Symbol.for("react.context"), b = /* @__PURE__ */ Symbol.for("react.forward_ref"), Y = /* @__PURE__ */ Symbol.for("react.suspense"), D = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), U = /* @__PURE__ */ Symbol.for("react.offscreen"), v = Symbol.iterator, j = "@@iterator";
|
|
24
|
+
function k(a) {
|
|
25
25
|
if (a === null || typeof a != "object")
|
|
26
26
|
return null;
|
|
27
|
-
var s =
|
|
27
|
+
var s = v && a[v] || a[j];
|
|
28
28
|
return typeof s == "function" ? s : null;
|
|
29
29
|
}
|
|
30
30
|
var _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
31
31
|
function S(a) {
|
|
32
32
|
{
|
|
33
|
-
for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0),
|
|
34
|
-
u[
|
|
33
|
+
for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), A = 1; A < s; A++)
|
|
34
|
+
u[A - 1] = arguments[A];
|
|
35
35
|
te("error", a, u);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
function te(a, s, u) {
|
|
39
39
|
{
|
|
40
|
-
var
|
|
40
|
+
var A = _.ReactDebugCurrentFrame, W = A.getStackAddendum();
|
|
41
41
|
W !== "" && (s += "%s", u = u.concat([W]));
|
|
42
42
|
var Q = u.map(function(F) {
|
|
43
43
|
return String(F);
|
|
@@ -45,19 +45,19 @@ function tt() {
|
|
|
45
45
|
Q.unshift("Warning: " + s), Function.prototype.apply.call(console[a], console, Q);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
var C = !1, V = !1,
|
|
48
|
+
var C = !1, V = !1, P = !1, J = !1, R = !1, E;
|
|
49
49
|
E = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
50
50
|
function se(a) {
|
|
51
|
-
return !!(typeof a == "string" || typeof a == "function" || a === c || a ===
|
|
51
|
+
return !!(typeof a == "string" || typeof a == "function" || a === c || a === y || R || a === g || a === Y || a === D || J || a === U || C || V || P || typeof a == "object" && a !== null && (a.$$typeof === p || a.$$typeof === N || a.$$typeof === h || a.$$typeof === w || a.$$typeof === b || // This needs to include all possible module reference object
|
|
52
52
|
// types supported by any Flight configuration anywhere since
|
|
53
53
|
// we don't know which Flight build this will end up being used
|
|
54
54
|
// with.
|
|
55
55
|
a.$$typeof === E || a.getModuleId !== void 0));
|
|
56
56
|
}
|
|
57
57
|
function ae(a, s, u) {
|
|
58
|
-
var
|
|
59
|
-
if (
|
|
60
|
-
return
|
|
58
|
+
var A = a.displayName;
|
|
59
|
+
if (A)
|
|
60
|
+
return A;
|
|
61
61
|
var W = s.displayName || s.name || "";
|
|
62
62
|
return W !== "" ? u + "(" + W + ")" : u;
|
|
63
63
|
}
|
|
@@ -76,7 +76,7 @@ function tt() {
|
|
|
76
76
|
return "Fragment";
|
|
77
77
|
case i:
|
|
78
78
|
return "Portal";
|
|
79
|
-
case
|
|
79
|
+
case y:
|
|
80
80
|
return "Profiler";
|
|
81
81
|
case g:
|
|
82
82
|
return "StrictMode";
|
|
@@ -96,8 +96,8 @@ function tt() {
|
|
|
96
96
|
case b:
|
|
97
97
|
return ae(a, a.render, "ForwardRef");
|
|
98
98
|
case N:
|
|
99
|
-
var
|
|
100
|
-
return
|
|
99
|
+
var A = a.displayName || null;
|
|
100
|
+
return A !== null ? A : I(a.type) || "Memo";
|
|
101
101
|
case p: {
|
|
102
102
|
var W = a, Q = W._payload, F = W._init;
|
|
103
103
|
try {
|
|
@@ -113,7 +113,7 @@ function tt() {
|
|
|
113
113
|
function ne() {
|
|
114
114
|
}
|
|
115
115
|
ne.__reactDisabledLog = !0;
|
|
116
|
-
function
|
|
116
|
+
function je() {
|
|
117
117
|
{
|
|
118
118
|
if (X === 0) {
|
|
119
119
|
O = console.log, Te = console.info, K = console.warn, re = console.error, he = console.group, ue = console.groupCollapsed, we = console.groupEnd;
|
|
@@ -178,8 +178,8 @@ function tt() {
|
|
|
178
178
|
try {
|
|
179
179
|
throw Error();
|
|
180
180
|
} catch (W) {
|
|
181
|
-
var
|
|
182
|
-
ge =
|
|
181
|
+
var A = W.stack.trim().match(/\n( *(at )?)/);
|
|
182
|
+
ge = A && A[1] || "";
|
|
183
183
|
}
|
|
184
184
|
return `
|
|
185
185
|
` + ge + a;
|
|
@@ -198,12 +198,12 @@ function tt() {
|
|
|
198
198
|
if (u !== void 0)
|
|
199
199
|
return u;
|
|
200
200
|
}
|
|
201
|
-
var
|
|
201
|
+
var A;
|
|
202
202
|
H = !0;
|
|
203
203
|
var W = Error.prepareStackTrace;
|
|
204
204
|
Error.prepareStackTrace = void 0;
|
|
205
205
|
var Q;
|
|
206
|
-
Q = pe.current, pe.current = null,
|
|
206
|
+
Q = pe.current, pe.current = null, je();
|
|
207
207
|
try {
|
|
208
208
|
if (s) {
|
|
209
209
|
var F = function() {
|
|
@@ -216,37 +216,37 @@ function tt() {
|
|
|
216
216
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
217
217
|
try {
|
|
218
218
|
Reflect.construct(F, []);
|
|
219
|
-
} catch (
|
|
220
|
-
|
|
219
|
+
} catch (Ae) {
|
|
220
|
+
A = Ae;
|
|
221
221
|
}
|
|
222
222
|
Reflect.construct(a, [], F);
|
|
223
223
|
} else {
|
|
224
224
|
try {
|
|
225
225
|
F.call();
|
|
226
|
-
} catch (
|
|
227
|
-
|
|
226
|
+
} catch (Ae) {
|
|
227
|
+
A = Ae;
|
|
228
228
|
}
|
|
229
229
|
a.call(F.prototype);
|
|
230
230
|
}
|
|
231
231
|
} else {
|
|
232
232
|
try {
|
|
233
233
|
throw Error();
|
|
234
|
-
} catch (
|
|
235
|
-
|
|
234
|
+
} catch (Ae) {
|
|
235
|
+
A = Ae;
|
|
236
236
|
}
|
|
237
237
|
a();
|
|
238
238
|
}
|
|
239
|
-
} catch (
|
|
240
|
-
if (
|
|
241
|
-
for (var L =
|
|
242
|
-
`),
|
|
243
|
-
`), le = L.length - 1, de =
|
|
239
|
+
} catch (Ae) {
|
|
240
|
+
if (Ae && A && typeof Ae.stack == "string") {
|
|
241
|
+
for (var L = Ae.stack.split(`
|
|
242
|
+
`), ve = A.stack.split(`
|
|
243
|
+
`), le = L.length - 1, de = ve.length - 1; le >= 1 && de >= 0 && L[le] !== ve[de]; )
|
|
244
244
|
de--;
|
|
245
245
|
for (; le >= 1 && de >= 0; le--, de--)
|
|
246
|
-
if (L[le] !==
|
|
246
|
+
if (L[le] !== ve[de]) {
|
|
247
247
|
if (le !== 1 || de !== 1)
|
|
248
248
|
do
|
|
249
|
-
if (le--, de--, de < 0 || L[le] !==
|
|
249
|
+
if (le--, de--, de < 0 || L[le] !== ve[de]) {
|
|
250
250
|
var Ce = `
|
|
251
251
|
` + L[le].replace(" at new ", " at ");
|
|
252
252
|
return a.displayName && Ce.includes("<anonymous>") && (Ce = Ce.replace("<anonymous>", a.displayName)), typeof a == "function" && me.set(a, Ce), Ce;
|
|
@@ -288,7 +288,7 @@ function tt() {
|
|
|
288
288
|
case N:
|
|
289
289
|
return Ne(a.type, s, u);
|
|
290
290
|
case p: {
|
|
291
|
-
var
|
|
291
|
+
var A = a, W = A._payload, Q = A._init;
|
|
292
292
|
try {
|
|
293
293
|
return Ne(Q(W), s, u);
|
|
294
294
|
} catch {
|
|
@@ -297,35 +297,35 @@ function tt() {
|
|
|
297
297
|
}
|
|
298
298
|
return "";
|
|
299
299
|
}
|
|
300
|
-
var
|
|
301
|
-
function
|
|
300
|
+
var xe = Object.prototype.hasOwnProperty, ye = {}, ke = _.ReactDebugCurrentFrame;
|
|
301
|
+
function Pe(a) {
|
|
302
302
|
if (a) {
|
|
303
303
|
var s = a._owner, u = Ne(a.type, a._source, s ? s.type : null);
|
|
304
|
-
|
|
304
|
+
ke.setExtraStackFrame(u);
|
|
305
305
|
} else
|
|
306
|
-
|
|
306
|
+
ke.setExtraStackFrame(null);
|
|
307
307
|
}
|
|
308
|
-
function Be(a, s, u,
|
|
308
|
+
function Be(a, s, u, A, W) {
|
|
309
309
|
{
|
|
310
|
-
var Q = Function.call.bind(
|
|
310
|
+
var Q = Function.call.bind(xe);
|
|
311
311
|
for (var F in a)
|
|
312
312
|
if (Q(a, F)) {
|
|
313
313
|
var L = void 0;
|
|
314
314
|
try {
|
|
315
315
|
if (typeof a[F] != "function") {
|
|
316
|
-
var
|
|
317
|
-
throw
|
|
316
|
+
var ve = Error((A || "React class") + ": " + u + " type `" + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[F] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
317
|
+
throw ve.name = "Invariant Violation", ve;
|
|
318
318
|
}
|
|
319
|
-
L = a[F](s, F,
|
|
319
|
+
L = a[F](s, F, A, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
320
320
|
} catch (le) {
|
|
321
321
|
L = le;
|
|
322
322
|
}
|
|
323
|
-
L && !(L instanceof Error) && (
|
|
323
|
+
L && !(L instanceof Error) && (Pe(W), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", A || "React class", u, F, typeof L), Pe(null)), L instanceof Error && !(L.message in ye) && (ye[L.message] = !0, Pe(W), S("Failed %s type: %s", u, L.message), Pe(null));
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
var De = Array.isArray;
|
|
328
|
-
function
|
|
328
|
+
function x(a) {
|
|
329
329
|
return De(a);
|
|
330
330
|
}
|
|
331
331
|
function l(a) {
|
|
@@ -355,7 +355,7 @@ function tt() {
|
|
|
355
355
|
__source: !0
|
|
356
356
|
}, z, Se;
|
|
357
357
|
function $e(a) {
|
|
358
|
-
if (
|
|
358
|
+
if (xe.call(a, "ref")) {
|
|
359
359
|
var s = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
360
360
|
if (s && s.isReactWarning)
|
|
361
361
|
return !1;
|
|
@@ -363,7 +363,7 @@ function tt() {
|
|
|
363
363
|
return a.ref !== void 0;
|
|
364
364
|
}
|
|
365
365
|
function ze(a) {
|
|
366
|
-
if (
|
|
366
|
+
if (xe.call(a, "key")) {
|
|
367
367
|
var s = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
368
368
|
if (s && s.isReactWarning)
|
|
369
369
|
return !1;
|
|
@@ -395,7 +395,7 @@ function tt() {
|
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
var Ia = function(a, s, u,
|
|
398
|
+
var Ia = function(a, s, u, A, W, Q, F) {
|
|
399
399
|
var L = {
|
|
400
400
|
// This tag allows us to uniquely identify this as a React Element
|
|
401
401
|
$$typeof: n,
|
|
@@ -416,7 +416,7 @@ function tt() {
|
|
|
416
416
|
configurable: !1,
|
|
417
417
|
enumerable: !1,
|
|
418
418
|
writable: !1,
|
|
419
|
-
value:
|
|
419
|
+
value: A
|
|
420
420
|
}), Object.defineProperty(L, "_source", {
|
|
421
421
|
configurable: !1,
|
|
422
422
|
enumerable: !1,
|
|
@@ -424,22 +424,22 @@ function tt() {
|
|
|
424
424
|
value: W
|
|
425
425
|
}), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
|
|
426
426
|
};
|
|
427
|
-
function Fa(a, s, u,
|
|
427
|
+
function Fa(a, s, u, A, W) {
|
|
428
428
|
{
|
|
429
|
-
var Q, F = {}, L = null,
|
|
430
|
-
u !== void 0 && (be(u), L = "" + u), ze(s) && (be(s.key), L = "" + s.key), $e(s) && (
|
|
429
|
+
var Q, F = {}, L = null, ve = null;
|
|
430
|
+
u !== void 0 && (be(u), L = "" + u), ze(s) && (be(s.key), L = "" + s.key), $e(s) && (ve = s.ref, Ba(s, W));
|
|
431
431
|
for (Q in s)
|
|
432
|
-
|
|
432
|
+
xe.call(s, Q) && !d.hasOwnProperty(Q) && (F[Q] = s[Q]);
|
|
433
433
|
if (a && a.defaultProps) {
|
|
434
434
|
var le = a.defaultProps;
|
|
435
435
|
for (Q in le)
|
|
436
436
|
F[Q] === void 0 && (F[Q] = le[Q]);
|
|
437
437
|
}
|
|
438
|
-
if (L ||
|
|
438
|
+
if (L || ve) {
|
|
439
439
|
var de = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
440
|
-
L && Da(F, de),
|
|
440
|
+
L && Da(F, de), ve && Ea(F, de);
|
|
441
441
|
}
|
|
442
|
-
return Ia(a, L,
|
|
442
|
+
return Ia(a, L, ve, W, A, r.current, F);
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
var Qe = _.ReactCurrentOwner, ca = _.ReactDebugCurrentFrame;
|
|
@@ -492,23 +492,23 @@ Check the top-level render call using <` + u + ">.");
|
|
|
492
492
|
if (ua[u])
|
|
493
493
|
return;
|
|
494
494
|
ua[u] = !0;
|
|
495
|
-
var
|
|
496
|
-
a && a._owner && a._owner !== Qe.current && (
|
|
495
|
+
var A = "";
|
|
496
|
+
a && a._owner && a._owner !== Qe.current && (A = " It was passed a child from " + I(a._owner.type) + "."), Ue(a), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, A), Ue(null);
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
function ma(a, s) {
|
|
500
500
|
{
|
|
501
501
|
if (typeof a != "object")
|
|
502
502
|
return;
|
|
503
|
-
if (
|
|
503
|
+
if (x(a))
|
|
504
504
|
for (var u = 0; u < a.length; u++) {
|
|
505
|
-
var
|
|
506
|
-
Ze(
|
|
505
|
+
var A = a[u];
|
|
506
|
+
Ze(A) && pa(A, s);
|
|
507
507
|
}
|
|
508
508
|
else if (Ze(a))
|
|
509
509
|
a._store && (a._store.validated = !0);
|
|
510
510
|
else if (a) {
|
|
511
|
-
var W =
|
|
511
|
+
var W = k(a);
|
|
512
512
|
if (typeof W == "function" && W !== a.entries)
|
|
513
513
|
for (var Q = W.call(a), F; !(F = Q.next()).done; )
|
|
514
514
|
Ze(F.value) && pa(F.value, s);
|
|
@@ -530,8 +530,8 @@ Check the top-level render call using <` + u + ">.");
|
|
|
530
530
|
else
|
|
531
531
|
return;
|
|
532
532
|
if (u) {
|
|
533
|
-
var
|
|
534
|
-
Be(u, a.props, "prop",
|
|
533
|
+
var A = I(s);
|
|
534
|
+
Be(u, a.props, "prop", A, a);
|
|
535
535
|
} else if (s.PropTypes !== void 0 && !Xe) {
|
|
536
536
|
Xe = !0;
|
|
537
537
|
var W = I(s);
|
|
@@ -543,9 +543,9 @@ Check the top-level render call using <` + u + ">.");
|
|
|
543
543
|
function Oa(a) {
|
|
544
544
|
{
|
|
545
545
|
for (var s = Object.keys(a.props), u = 0; u < s.length; u++) {
|
|
546
|
-
var
|
|
547
|
-
if (
|
|
548
|
-
Ue(a), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
546
|
+
var A = s[u];
|
|
547
|
+
if (A !== "children" && A !== "key") {
|
|
548
|
+
Ue(a), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", A), Ue(null);
|
|
549
549
|
break;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
@@ -553,16 +553,16 @@ Check the top-level render call using <` + u + ">.");
|
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
var fa = {};
|
|
556
|
-
function ha(a, s, u,
|
|
556
|
+
function ha(a, s, u, A, W, Q) {
|
|
557
557
|
{
|
|
558
558
|
var F = se(a);
|
|
559
559
|
if (!F) {
|
|
560
560
|
var L = "";
|
|
561
561
|
(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.");
|
|
562
|
-
var
|
|
563
|
-
|
|
562
|
+
var ve = Ma();
|
|
563
|
+
ve ? L += ve : L += da();
|
|
564
564
|
var le;
|
|
565
|
-
a === null ? le = "null" :
|
|
565
|
+
a === null ? le = "null" : x(a) ? le = "array" : a !== void 0 && a.$$typeof === n ? (le = "<" + (I(a.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : le = typeof a, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", le, L);
|
|
566
566
|
}
|
|
567
567
|
var de = Fa(a, s, u, W, Q);
|
|
568
568
|
if (de == null)
|
|
@@ -570,8 +570,8 @@ Check the top-level render call using <` + u + ">.");
|
|
|
570
570
|
if (F) {
|
|
571
571
|
var Ce = s.children;
|
|
572
572
|
if (Ce !== void 0)
|
|
573
|
-
if (
|
|
574
|
-
if (
|
|
573
|
+
if (A)
|
|
574
|
+
if (x(Ce)) {
|
|
575
575
|
for (var Ge = 0; Ge < Ce.length; Ge++)
|
|
576
576
|
ma(Ce[Ge], a);
|
|
577
577
|
Object.freeze && Object.freeze(Ce);
|
|
@@ -580,12 +580,12 @@ Check the top-level render call using <` + u + ">.");
|
|
|
580
580
|
else
|
|
581
581
|
ma(Ce, a);
|
|
582
582
|
}
|
|
583
|
-
if (
|
|
584
|
-
var Ie = I(a),
|
|
583
|
+
if (xe.call(s, "key")) {
|
|
584
|
+
var Ie = I(a), Ae = Object.keys(s).filter(function(Ya) {
|
|
585
585
|
return Ya !== "key";
|
|
586
|
-
}), ea =
|
|
586
|
+
}), ea = Ae.length > 0 ? "{key: someKey, " + Ae.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
587
587
|
if (!fa[Ie + ea]) {
|
|
588
|
-
var qa =
|
|
588
|
+
var qa = Ae.length > 0 ? "{" + Ae.join(": ..., ") + ": ...}" : "{}";
|
|
589
589
|
S(`A props object containing a "key" prop is being spread into JSX:
|
|
590
590
|
let props = %s;
|
|
591
591
|
<%s {...props} />
|
|
@@ -623,7 +623,7 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
623
623
|
langLabel: ut,
|
|
624
624
|
langMenu: pt,
|
|
625
625
|
langOption: mt
|
|
626
|
-
},
|
|
626
|
+
}, xa = [
|
|
627
627
|
"en",
|
|
628
628
|
"hi",
|
|
629
629
|
"gu",
|
|
@@ -631,7 +631,7 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
631
631
|
"ta",
|
|
632
632
|
"te",
|
|
633
633
|
"kn"
|
|
634
|
-
],
|
|
634
|
+
], ya = {
|
|
635
635
|
en: "English",
|
|
636
636
|
hi: "हिन्दी",
|
|
637
637
|
gu: "ગુજરાતી",
|
|
@@ -1804,7 +1804,7 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
1804
1804
|
and: "ಮತ್ತು",
|
|
1805
1805
|
astrologyGuidance: "ಜ್ಯೋತಿಷ್ಯ ಮಾರ್ಗದರ್ಶನ",
|
|
1806
1806
|
selectPackage: "ಪ್ಯಾಕೇಜ್ ಆಯ್ಕೆಮಾಡಿ"
|
|
1807
|
-
},
|
|
1807
|
+
}, yt = {
|
|
1808
1808
|
kundli: "ஜாதகம்",
|
|
1809
1809
|
birthChart: "பிறப்பு ஜாதகம்",
|
|
1810
1810
|
details: "விவரங்கள்",
|
|
@@ -2034,7 +2034,7 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
2034
2034
|
and: "மற்றும்",
|
|
2035
2035
|
astrologyGuidance: "ஜோதிட வழிகாட்டுதல்",
|
|
2036
2036
|
selectPackage: "தொகுப்பைத் தேர்ந்தெடுக்கவும்"
|
|
2037
|
-
},
|
|
2037
|
+
}, kt = {
|
|
2038
2038
|
kundli: "జాతకం",
|
|
2039
2039
|
birthChart: "జన్మ జాతకం",
|
|
2040
2040
|
details: "వివరాలు",
|
|
@@ -2264,38 +2264,38 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
2264
2264
|
and: "మరియు",
|
|
2265
2265
|
astrologyGuidance: "జ్యోతిష్య మార్గదర్శకం",
|
|
2266
2266
|
selectPackage: "ప్యాకేజీని ఎంచుకోండి"
|
|
2267
|
-
},
|
|
2267
|
+
}, Pa = {
|
|
2268
2268
|
en: ft,
|
|
2269
2269
|
hi: ht,
|
|
2270
2270
|
mr: gt,
|
|
2271
2271
|
// Dropdown/type support only for now — copy falls back to English until
|
|
2272
2272
|
// real gu/ta/te/kn translations are written.
|
|
2273
2273
|
gu: bt,
|
|
2274
|
-
ta:
|
|
2275
|
-
te:
|
|
2274
|
+
ta: yt,
|
|
2275
|
+
te: kt,
|
|
2276
2276
|
kn: _t
|
|
2277
|
-
}, wa = Ta(null),
|
|
2277
|
+
}, wa = Ta(null), Ai = ({
|
|
2278
2278
|
locale: t,
|
|
2279
2279
|
children: n
|
|
2280
2280
|
}) => {
|
|
2281
|
-
const c = { locale: t, t: (g) =>
|
|
2281
|
+
const c = { locale: t, t: (g) => Pa[t]?.[g] };
|
|
2282
2282
|
return /* @__PURE__ */ e.jsx(wa.Provider, { value: c, children: n });
|
|
2283
2283
|
};
|
|
2284
|
-
function
|
|
2284
|
+
function vt() {
|
|
2285
2285
|
return oa(wa);
|
|
2286
2286
|
}
|
|
2287
2287
|
const Ye = (t) => {
|
|
2288
|
-
const { priority: n, fetchPriority: i, width: c, height: g, ...
|
|
2288
|
+
const { priority: n, fetchPriority: i, width: c, height: g, ...y } = t;
|
|
2289
2289
|
return na.createElement("img", {
|
|
2290
|
-
...
|
|
2290
|
+
...y,
|
|
2291
2291
|
width: c ?? 1,
|
|
2292
2292
|
height: g ?? 1,
|
|
2293
2293
|
decoding: "async",
|
|
2294
|
-
loading:
|
|
2294
|
+
loading: y.loading ?? (n ? "eager" : "lazy"),
|
|
2295
2295
|
...i && { fetchPriority: i }
|
|
2296
2296
|
});
|
|
2297
2297
|
};
|
|
2298
|
-
function
|
|
2298
|
+
function At(t) {
|
|
2299
2299
|
if (typeof window > "u" || !window.localStorage)
|
|
2300
2300
|
return null;
|
|
2301
2301
|
try {
|
|
@@ -2318,7 +2318,7 @@ function Ti(t) {
|
|
|
2318
2318
|
} catch {
|
|
2319
2319
|
}
|
|
2320
2320
|
}
|
|
2321
|
-
function
|
|
2321
|
+
function xi() {
|
|
2322
2322
|
if (typeof window > "u" || !window.localStorage)
|
|
2323
2323
|
return !1;
|
|
2324
2324
|
try {
|
|
@@ -2329,11 +2329,11 @@ function Pi() {
|
|
|
2329
2329
|
}
|
|
2330
2330
|
}
|
|
2331
2331
|
const Sa = "kundli_language";
|
|
2332
|
-
function
|
|
2333
|
-
const t =
|
|
2334
|
-
return t &&
|
|
2332
|
+
function xt() {
|
|
2333
|
+
const t = At(Sa);
|
|
2334
|
+
return t && xa.includes(t) ? t : null;
|
|
2335
2335
|
}
|
|
2336
|
-
function
|
|
2336
|
+
function Pt(t) {
|
|
2337
2337
|
Tt(Sa, t);
|
|
2338
2338
|
}
|
|
2339
2339
|
const ia = Ta(null), wt = {
|
|
@@ -2347,13 +2347,13 @@ const ia = Ta(null), wt = {
|
|
|
2347
2347
|
birthTime: "",
|
|
2348
2348
|
birthTimeUnknown: !1,
|
|
2349
2349
|
birthPlace: ""
|
|
2350
|
-
},
|
|
2350
|
+
}, Pi = ({
|
|
2351
2351
|
locale: t,
|
|
2352
2352
|
showLanguageSelector: n = !0,
|
|
2353
2353
|
showSheet: i,
|
|
2354
2354
|
userId: c,
|
|
2355
2355
|
isGlobal: g,
|
|
2356
|
-
variant:
|
|
2356
|
+
variant: y,
|
|
2357
2357
|
initialFormValues: h,
|
|
2358
2358
|
autoOpenPlanSheet: w,
|
|
2359
2359
|
googleMapsApiKey: b,
|
|
@@ -2362,17 +2362,17 @@ const ia = Ta(null), wt = {
|
|
|
2362
2362
|
enableConsultationScheduling: N,
|
|
2363
2363
|
fetchConsultationSlots: p,
|
|
2364
2364
|
logoUrl: U,
|
|
2365
|
-
reportImageUrl:
|
|
2366
|
-
reportImagePriority:
|
|
2367
|
-
backgroundImagePriority:
|
|
2365
|
+
reportImageUrl: v,
|
|
2366
|
+
reportImagePriority: j,
|
|
2367
|
+
backgroundImagePriority: k,
|
|
2368
2368
|
universityLogoUrls: _,
|
|
2369
2369
|
sampleReportHref: S,
|
|
2370
2370
|
onViewSampleReport: te,
|
|
2371
2371
|
ctaHref: C,
|
|
2372
2372
|
onCtaClick: V,
|
|
2373
|
-
onBack:
|
|
2373
|
+
onBack: P,
|
|
2374
2374
|
readMoreReviewsHref: J,
|
|
2375
|
-
onProceed:
|
|
2375
|
+
onProceed: R,
|
|
2376
2376
|
proceedHref: E,
|
|
2377
2377
|
originalPriceLabel: se,
|
|
2378
2378
|
discountedPriceLabel: ae,
|
|
@@ -2386,16 +2386,16 @@ const ia = Ta(null), wt = {
|
|
|
2386
2386
|
threeSkuPlans: re,
|
|
2387
2387
|
children: he
|
|
2388
2388
|
}) => {
|
|
2389
|
-
const [ue, we] = B("landing"), [ne,
|
|
2389
|
+
const [ue, we] = B("landing"), [ne, je] = B(t ?? "en"), [_e, pe] = B({
|
|
2390
2390
|
...wt,
|
|
2391
2391
|
...h
|
|
2392
2392
|
}), ge = M(!0);
|
|
2393
2393
|
q(() => {
|
|
2394
2394
|
if (t) return;
|
|
2395
|
-
const fe =
|
|
2396
|
-
fe &&
|
|
2395
|
+
const fe = xt();
|
|
2396
|
+
fe && je(fe);
|
|
2397
2397
|
}, []), q(() => {
|
|
2398
|
-
|
|
2398
|
+
Pt(ne);
|
|
2399
2399
|
}, [ne]), q(() => {
|
|
2400
2400
|
if (ge.current) {
|
|
2401
2401
|
ge.current = !1;
|
|
@@ -2410,7 +2410,7 @@ const ia = Ta(null), wt = {
|
|
|
2410
2410
|
showSheet: i,
|
|
2411
2411
|
userId: c,
|
|
2412
2412
|
isGlobal: g,
|
|
2413
|
-
variant:
|
|
2413
|
+
variant: y,
|
|
2414
2414
|
initialFormValues: h,
|
|
2415
2415
|
autoOpenPlanSheet: w,
|
|
2416
2416
|
googleMapsApiKey: b,
|
|
@@ -2419,17 +2419,17 @@ const ia = Ta(null), wt = {
|
|
|
2419
2419
|
enableConsultationScheduling: N,
|
|
2420
2420
|
fetchConsultationSlots: p,
|
|
2421
2421
|
logoUrl: U,
|
|
2422
|
-
reportImageUrl:
|
|
2423
|
-
reportImagePriority:
|
|
2424
|
-
backgroundImagePriority:
|
|
2422
|
+
reportImageUrl: v,
|
|
2423
|
+
reportImagePriority: j,
|
|
2424
|
+
backgroundImagePriority: k,
|
|
2425
2425
|
universityLogoUrls: _,
|
|
2426
2426
|
sampleReportHref: S,
|
|
2427
2427
|
onViewSampleReport: te,
|
|
2428
2428
|
ctaHref: C,
|
|
2429
2429
|
onCtaClick: V,
|
|
2430
|
-
onBack:
|
|
2430
|
+
onBack: P,
|
|
2431
2431
|
readMoreReviewsHref: J,
|
|
2432
|
-
onProceed:
|
|
2432
|
+
onProceed: R,
|
|
2433
2433
|
proceedHref: E,
|
|
2434
2434
|
originalPriceLabel: se,
|
|
2435
2435
|
discountedPriceLabel: ae,
|
|
@@ -2448,7 +2448,7 @@ const ia = Ta(null), wt = {
|
|
|
2448
2448
|
i,
|
|
2449
2449
|
c,
|
|
2450
2450
|
g,
|
|
2451
|
-
|
|
2451
|
+
y,
|
|
2452
2452
|
h,
|
|
2453
2453
|
w,
|
|
2454
2454
|
b,
|
|
@@ -2457,17 +2457,17 @@ const ia = Ta(null), wt = {
|
|
|
2457
2457
|
N,
|
|
2458
2458
|
p,
|
|
2459
2459
|
U,
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2460
|
+
v,
|
|
2461
|
+
j,
|
|
2462
|
+
k,
|
|
2463
2463
|
_,
|
|
2464
2464
|
S,
|
|
2465
2465
|
te,
|
|
2466
2466
|
C,
|
|
2467
2467
|
V,
|
|
2468
|
-
|
|
2468
|
+
P,
|
|
2469
2469
|
J,
|
|
2470
|
-
|
|
2470
|
+
R,
|
|
2471
2471
|
E,
|
|
2472
2472
|
se,
|
|
2473
2473
|
ae,
|
|
@@ -2480,15 +2480,15 @@ const ia = Ta(null), wt = {
|
|
|
2480
2480
|
K,
|
|
2481
2481
|
re
|
|
2482
2482
|
]
|
|
2483
|
-
), H =
|
|
2483
|
+
), H = Re(() => {
|
|
2484
2484
|
we("form");
|
|
2485
|
-
}, [oe.analytics]), me =
|
|
2485
|
+
}, [oe.analytics]), me = Re(() => {
|
|
2486
2486
|
we("landing"), oe.onBack?.();
|
|
2487
2487
|
}, [oe.onBack]), ie = Ee(
|
|
2488
2488
|
() => ({
|
|
2489
2489
|
view: ue,
|
|
2490
2490
|
locale: ne,
|
|
2491
|
-
setLocale:
|
|
2491
|
+
setLocale: je,
|
|
2492
2492
|
config: oe,
|
|
2493
2493
|
formValues: _e,
|
|
2494
2494
|
setFormValues: pe,
|
|
@@ -2512,10 +2512,10 @@ function wi() {
|
|
|
2512
2512
|
);
|
|
2513
2513
|
return t;
|
|
2514
2514
|
}
|
|
2515
|
-
const St = "_header_19172_1", Ct = "_centered_19172_8",
|
|
2515
|
+
const St = "_header_19172_1", Ct = "_centered_19172_8", ka = {
|
|
2516
2516
|
header: St,
|
|
2517
2517
|
centered: Ct
|
|
2518
|
-
},
|
|
2518
|
+
}, Rt = ({
|
|
2519
2519
|
t,
|
|
2520
2520
|
onBack: n,
|
|
2521
2521
|
className: i = "",
|
|
@@ -2527,10 +2527,10 @@ const St = "_header_19172_1", Ct = "_centered_19172_8", ya = {
|
|
|
2527
2527
|
subtitle: t("formSubtitle"),
|
|
2528
2528
|
onBack: n,
|
|
2529
2529
|
backAriaLabel: t("back"),
|
|
2530
|
-
className: `${
|
|
2530
|
+
className: `${ka.header} ${c === "center" ? ka.centered : ""} ${i}`
|
|
2531
2531
|
}
|
|
2532
|
-
),
|
|
2533
|
-
wrap:
|
|
2532
|
+
), jt = "_wrap_119w3_1", Nt = "_card_119w3_5", Lt = "_cardInner_119w3_12", Bt = "_field_119w3_44", Dt = "_labelRow_119w3_48", Et = "_label_119w3_48", It = "_req_119w3_57", Ft = "_help_119w3_61", Mt = "_choiceRow_119w3_68", Ut = "_choiceBtn_119w3_74", Gt = "_choiceBtnActive_119w3_99", Ot = "_infoBtn_119w3_105", $t = "_infoImg_119w3_122", Ht = "_infoWrap_119w3_128", Wt = "_tooltip_119w3_134", Kt = "_tooltipArrow_119w3_150", qt = "_inputWrap_119w3_161", Yt = "_isdWrap_119w3_165", Vt = "_phoneInputGroup_119w3_169", Jt = "_isdSelectWrap_119w3_178", zt = "_isdSelectTrigger_119w3_197", Qt = "_isdDropdown_119w3_214", Xt = "_isdSearchWrap_119w3_229", Zt = "_isdSearchInput_119w3_237", er = "_isdOption_119w3_255", ar = "_isdOptionActive_119w3_275", tr = "_isdCountryName_119w3_281", rr = "_isdCountryCode_119w3_288", nr = "_isdNoResult_119w3_295", or = "_suggestions_119w3_302", ir = "_suggestionItem_119w3_315", lr = "_suggestionMain_119w3_333", sr = "_suggestionSecondary_119w3_339", cr = "_suggestionsHint_119w3_344", dr = "_timePopover_119w3_366", ur = "_timePickerRow_119w3_382", pr = "_timePickerSelect_119w3_388", mr = "_timePickerColon_119w3_404", fr = "_meridiemToggle_119w3_412", hr = "_meridiemBtn_119w3_421", gr = "_meridiemActive_119w3_436", br = "_timePopoverActions_119w3_441", _r = "_timePopoverBtn_119w3_447", yr = "_timePopoverOk_119w3_466", kr = "_input_119w3_161", vr = "_phoneInput_119w3_169", Ar = "_iconBtn_119w3_519", Tr = "_iconBtnInteractive_119w3_525", xr = "_iconImg_119w3_544", Pr = "_checkboxRow_119w3_550", wr = "_checkbox_119w3_550", Sr = "_checkboxText_119w3_588", o = {
|
|
2533
|
+
wrap: jt,
|
|
2534
2534
|
card: Nt,
|
|
2535
2535
|
cardInner: Lt,
|
|
2536
2536
|
field: Bt,
|
|
@@ -2573,13 +2573,13 @@ const St = "_header_19172_1", Ct = "_centered_19172_8", ya = {
|
|
|
2573
2573
|
meridiemActive: gr,
|
|
2574
2574
|
timePopoverActions: br,
|
|
2575
2575
|
timePopoverBtn: _r,
|
|
2576
|
-
timePopoverOk:
|
|
2577
|
-
input:
|
|
2578
|
-
phoneInput:
|
|
2579
|
-
iconBtn:
|
|
2576
|
+
timePopoverOk: yr,
|
|
2577
|
+
input: kr,
|
|
2578
|
+
phoneInput: vr,
|
|
2579
|
+
iconBtn: Ar,
|
|
2580
2580
|
iconBtnInteractive: Tr,
|
|
2581
|
-
iconImg:
|
|
2582
|
-
checkboxRow:
|
|
2581
|
+
iconImg: xr,
|
|
2582
|
+
checkboxRow: Pr,
|
|
2583
2583
|
checkbox: wr,
|
|
2584
2584
|
checkboxText: Sr
|
|
2585
2585
|
};
|
|
@@ -2595,8 +2595,8 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2595
2595
|
);
|
|
2596
2596
|
return;
|
|
2597
2597
|
}
|
|
2598
|
-
const
|
|
2599
|
-
h.searchParams.set("key", t), h.searchParams.set("libraries", "places"), h.searchParams.set("loading", "async"), n && h.searchParams.set("language", n),
|
|
2598
|
+
const y = document.createElement("script"), h = new URL("https://maps.googleapis.com/maps/api/js");
|
|
2599
|
+
h.searchParams.set("key", t), h.searchParams.set("libraries", "places"), h.searchParams.set("loading", "async"), n && h.searchParams.set("language", n), y.src = h.toString(), y.async = !0, y.defer = !0, y.setAttribute("data-google-maps-places", "true"), y.onload = () => {
|
|
2600
2600
|
const w = Date.now(), b = () => {
|
|
2601
2601
|
if (window.google?.maps?.places) {
|
|
2602
2602
|
i();
|
|
@@ -2613,10 +2613,10 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2613
2613
|
window.setTimeout(b, 50);
|
|
2614
2614
|
};
|
|
2615
2615
|
b();
|
|
2616
|
-
},
|
|
2617
|
-
}), Je),
|
|
2618
|
-
const { apiKey: n, language: i = "en", restrictCountry: c, deferLoad: g = !1 } = t, [
|
|
2619
|
-
g &&
|
|
2616
|
+
}, y.onerror = () => c(new Error("Failed to load Google Maps API")), document.head.appendChild(y);
|
|
2617
|
+
}), Je), Rr = (t) => {
|
|
2618
|
+
const { apiKey: n, language: i = "en", restrictCountry: c, deferLoad: g = !1 } = t, [y, h] = B(!1), [w, b] = B([]), [Y, D] = B(!1), [N, p] = B(null), [U, v] = B(!g), j = M(null), k = M(null), _ = M(null), S = Re(() => {
|
|
2619
|
+
g && v(!0);
|
|
2620
2620
|
}, [g]);
|
|
2621
2621
|
q(() => {
|
|
2622
2622
|
if (!n || !U) {
|
|
@@ -2624,29 +2624,29 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2624
2624
|
return;
|
|
2625
2625
|
}
|
|
2626
2626
|
Cr(n, i).then(() => {
|
|
2627
|
-
|
|
2628
|
-
const
|
|
2629
|
-
|
|
2630
|
-
}).catch((
|
|
2631
|
-
h(!1), p(
|
|
2627
|
+
j.current = new google.maps.places.AutocompleteService();
|
|
2628
|
+
const P = document.createElement("div");
|
|
2629
|
+
k.current = new google.maps.places.PlacesService(P), _.current = new google.maps.places.AutocompleteSessionToken(), h(!0), p(null);
|
|
2630
|
+
}).catch((P) => {
|
|
2631
|
+
h(!1), p(P?.message || "Failed to load location service");
|
|
2632
2632
|
});
|
|
2633
2633
|
}, [n, i, U]);
|
|
2634
|
-
const te =
|
|
2635
|
-
async (
|
|
2636
|
-
if (!
|
|
2634
|
+
const te = Re(
|
|
2635
|
+
async (P) => {
|
|
2636
|
+
if (!P || P.length < 2 || !j.current) {
|
|
2637
2637
|
b([]);
|
|
2638
2638
|
return;
|
|
2639
2639
|
}
|
|
2640
2640
|
D(!0);
|
|
2641
2641
|
try {
|
|
2642
2642
|
const J = {
|
|
2643
|
-
input:
|
|
2643
|
+
input: P,
|
|
2644
2644
|
types: ["(cities)"],
|
|
2645
2645
|
sessionToken: _.current ?? void 0
|
|
2646
2646
|
};
|
|
2647
2647
|
c && (J.componentRestrictions = { country: c });
|
|
2648
|
-
const
|
|
2649
|
-
|
|
2648
|
+
const R = await new Promise((E, se) => {
|
|
2649
|
+
j.current.getPlacePredictions(
|
|
2650
2650
|
J,
|
|
2651
2651
|
(ae, G) => {
|
|
2652
2652
|
G === google.maps.places.PlacesServiceStatus.OK && ae ? E(ae) : G === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? E([]) : se(new Error(`Places API error: ${G}`));
|
|
@@ -2654,7 +2654,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2654
2654
|
);
|
|
2655
2655
|
});
|
|
2656
2656
|
b(
|
|
2657
|
-
|
|
2657
|
+
R.map((E) => ({
|
|
2658
2658
|
place_id: E.place_id,
|
|
2659
2659
|
description: E.description,
|
|
2660
2660
|
structured_formatting: {
|
|
@@ -2670,15 +2670,15 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2670
2670
|
}
|
|
2671
2671
|
},
|
|
2672
2672
|
[c]
|
|
2673
|
-
), C =
|
|
2674
|
-
async (
|
|
2675
|
-
if (!
|
|
2673
|
+
), C = Re(
|
|
2674
|
+
async (P) => {
|
|
2675
|
+
if (!k.current) return null;
|
|
2676
2676
|
try {
|
|
2677
2677
|
const J = await new Promise(
|
|
2678
2678
|
(I, $) => {
|
|
2679
|
-
|
|
2679
|
+
k.current.getDetails(
|
|
2680
2680
|
{
|
|
2681
|
-
placeId:
|
|
2681
|
+
placeId: P,
|
|
2682
2682
|
fields: ["geometry", "address_components", "formatted_address"],
|
|
2683
2683
|
sessionToken: _.current ?? void 0
|
|
2684
2684
|
},
|
|
@@ -2689,13 +2689,13 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2689
2689
|
}
|
|
2690
2690
|
);
|
|
2691
2691
|
_.current = new google.maps.places.AutocompleteSessionToken();
|
|
2692
|
-
const
|
|
2692
|
+
const R = J.geometry?.location?.lat() || 0, E = J.geometry?.location?.lng() || 0;
|
|
2693
2693
|
let se = "", ae = "", G = "";
|
|
2694
2694
|
return J.address_components?.forEach((I) => {
|
|
2695
2695
|
I.types.includes("locality") && (se = I.long_name), I.types.includes("administrative_area_level_1") && (ae = I.long_name), I.types.includes("country") && (G = I.long_name);
|
|
2696
2696
|
}), {
|
|
2697
2697
|
display_name: J.formatted_address || "",
|
|
2698
|
-
lat:
|
|
2698
|
+
lat: R,
|
|
2699
2699
|
lng: E,
|
|
2700
2700
|
city: se,
|
|
2701
2701
|
state: ae,
|
|
@@ -2706,9 +2706,9 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2706
2706
|
}
|
|
2707
2707
|
},
|
|
2708
2708
|
[]
|
|
2709
|
-
), V =
|
|
2709
|
+
), V = Re(() => b([]), []);
|
|
2710
2710
|
return {
|
|
2711
|
-
isLoaded:
|
|
2711
|
+
isLoaded: y,
|
|
2712
2712
|
predictions: w,
|
|
2713
2713
|
isSearching: Y,
|
|
2714
2714
|
loadError: N,
|
|
@@ -2718,7 +2718,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2718
2718
|
triggerLoad: S
|
|
2719
2719
|
// Call this to start loading Google Maps when deferred
|
|
2720
2720
|
};
|
|
2721
|
-
},
|
|
2721
|
+
}, va = (t) => typeof t == "number" && Number.isFinite(t), jr = (t) => {
|
|
2722
2722
|
const n = typeof t?.limit == "number" && t.limit > 0 ? Math.min(t.limit, 20) : 8, i = typeof t?.offset == "number" && t.offset >= 0 ? t.offset : 0;
|
|
2723
2723
|
return {
|
|
2724
2724
|
limit: n,
|
|
@@ -2726,11 +2726,11 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2726
2726
|
restrictCountry: t?.restrictCountry
|
|
2727
2727
|
};
|
|
2728
2728
|
}, Nr = (t) => {
|
|
2729
|
-
const { searchLocalities: n, restrictCountry: i } = t, [c, g] = B([]), [
|
|
2729
|
+
const { searchLocalities: n, restrictCountry: i } = t, [c, g] = B([]), [y, h] = B(!1), [w, b] = B(null), Y = M(0);
|
|
2730
2730
|
q(() => {
|
|
2731
2731
|
b(null);
|
|
2732
2732
|
}, [n]);
|
|
2733
|
-
const D =
|
|
2733
|
+
const D = Re(
|
|
2734
2734
|
async (p) => {
|
|
2735
2735
|
if (!p || p.length < 2 || !n) {
|
|
2736
2736
|
g([]);
|
|
@@ -2739,10 +2739,10 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2739
2739
|
const U = ++Y.current;
|
|
2740
2740
|
h(!0), b(null);
|
|
2741
2741
|
try {
|
|
2742
|
-
const
|
|
2742
|
+
const v = jr({ restrictCountry: i }), j = await n(p, v);
|
|
2743
2743
|
if (U !== Y.current) return;
|
|
2744
|
-
const
|
|
2745
|
-
(_) => !!_?.id && !!_?.description &&
|
|
2744
|
+
const k = (j || []).filter(
|
|
2745
|
+
(_) => !!_?.id && !!_?.description && va(_?.lat) && va(_?.lng)
|
|
2746
2746
|
).map((_) => ({
|
|
2747
2747
|
id: _.id,
|
|
2748
2748
|
description: _.description,
|
|
@@ -2750,19 +2750,19 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2750
2750
|
lat: _.lat,
|
|
2751
2751
|
lng: _.lng
|
|
2752
2752
|
}));
|
|
2753
|
-
g(
|
|
2754
|
-
} catch (
|
|
2753
|
+
g(k);
|
|
2754
|
+
} catch (v) {
|
|
2755
2755
|
if (U !== Y.current) return;
|
|
2756
|
-
g([]), b(
|
|
2756
|
+
g([]), b(v?.message || "Failed to fetch locations");
|
|
2757
2757
|
} finally {
|
|
2758
2758
|
U === Y.current && h(!1);
|
|
2759
2759
|
}
|
|
2760
2760
|
},
|
|
2761
2761
|
[i, n]
|
|
2762
|
-
), N =
|
|
2762
|
+
), N = Re(() => g([]), []);
|
|
2763
2763
|
return {
|
|
2764
2764
|
predictions: c,
|
|
2765
|
-
isSearching:
|
|
2765
|
+
isSearching: y,
|
|
2766
2766
|
loadError: w,
|
|
2767
2767
|
searchPlaces: D,
|
|
2768
2768
|
clearPredictions: N
|
|
@@ -2842,20 +2842,20 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2842
2842
|
{ code: "+975", country: "Bhutan" },
|
|
2843
2843
|
{ code: "+976", country: "Mongolia" },
|
|
2844
2844
|
{ code: "+977", country: "Nepal" }
|
|
2845
|
-
], ra = Ca.map((t) => t.code),
|
|
2845
|
+
], ra = Ca.map((t) => t.code), Ra = 10, la = (t) => t.replace(/\D/g, ""), Aa = (t) => la(t).slice(0, Ra), Lr = (t) => la(t).length === Ra, Br = (t, n, i) => Lr(t) ? i.phone ? { shouldTrack: !1 } : (i.phone = !0, { shouldTrack: !0, fullPhone: `${n}-${la(t)}` }) : (i.phone = !1, { shouldTrack: !1 }), Dr = {}, Er = ({
|
|
2846
2846
|
t,
|
|
2847
2847
|
values: n,
|
|
2848
2848
|
onChange: i,
|
|
2849
2849
|
phoneIsdCode: c,
|
|
2850
2850
|
onPhoneIsdCodeChange: g,
|
|
2851
|
-
showV1ExtraFields:
|
|
2851
|
+
showV1ExtraFields: y = !1,
|
|
2852
2852
|
analytics: h,
|
|
2853
2853
|
googleMapsApiKey: w,
|
|
2854
2854
|
atlasSearchLocalities: b,
|
|
2855
2855
|
googleMapsAutocompleteEnabled: Y,
|
|
2856
2856
|
className: D = ""
|
|
2857
2857
|
}) => {
|
|
2858
|
-
const N = Me(), p = N?.config?.analytics ?? h, U = N?.config.isGlobal ?? !0,
|
|
2858
|
+
const N = Me(), p = N?.config?.analytics ?? h, U = N?.config.isGlobal ?? !0, v = N?.config?.googleMapsApiKey, j = N?.config?.atlasSearchLocalities, k = N?.config?.googleMapsAutocompleteEnabled, [_, S] = B(!1), [te, C] = B(""), V = M(null), P = M(null), J = M({}), R = (r) => i({ ...n, ...r }), E = (r, d) => {
|
|
2859
2859
|
if (r === "phone") {
|
|
2860
2860
|
const z = Br(d, c, J.current);
|
|
2861
2861
|
z.shouldTrack && p?.trackPhoneSectionFilled?.({ phone: z.fullPhone });
|
|
@@ -2882,35 +2882,35 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2882
2882
|
if (!d) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
2883
2883
|
const z = Number(d[1]), Se = d[2], $e = z >= 12 ? "PM" : "AM";
|
|
2884
2884
|
return { hour12: z % 12 === 0 ? 12 : z % 12, minute: Se, meridiem: $e };
|
|
2885
|
-
},
|
|
2885
|
+
}, je = (r) => {
|
|
2886
2886
|
const d = Math.min(12, Math.max(1, r.hour12)), z = /^([0-5]\d)$/.test(r.minute) ? r.minute : "00";
|
|
2887
2887
|
let Se = d % 12;
|
|
2888
2888
|
return r.meridiem === "PM" && (Se += 12), `${ue(Se)}:${z}`;
|
|
2889
2889
|
}, _e = M(null), [pe, ge] = B(!1), oe = M(n.birthPlace ?? ""), [H, me] = B(
|
|
2890
2890
|
null
|
|
2891
|
-
), ie = w ??
|
|
2891
|
+
), ie = w ?? v ?? Dr?.VITE_GOOGLE_MAPS_API_KEY, fe = b ?? j, ee = Y ?? k ?? !0, ce = (n.birthPlace ?? "").trim(), Ne = U ? void 0 : "in", ye = Rr({
|
|
2892
2892
|
apiKey: ee ? ie : void 0,
|
|
2893
2893
|
language: "en",
|
|
2894
2894
|
restrictCountry: Ne
|
|
2895
|
-
}),
|
|
2895
|
+
}), ke = Nr({
|
|
2896
2896
|
searchLocalities: ee ? void 0 : fe,
|
|
2897
2897
|
restrictCountry: Ne
|
|
2898
|
-
}),
|
|
2898
|
+
}), Pe = ee ? ye.predictions.map((r) => ({
|
|
2899
2899
|
id: r.place_id,
|
|
2900
2900
|
description: r.description,
|
|
2901
2901
|
secondaryText: r.structured_formatting?.secondary_text,
|
|
2902
2902
|
lat: void 0,
|
|
2903
2903
|
lng: void 0
|
|
2904
|
-
})) :
|
|
2904
|
+
})) : ke.predictions.map((r) => ({
|
|
2905
2905
|
id: r.id,
|
|
2906
2906
|
description: r.description,
|
|
2907
2907
|
secondaryText: r.secondary_text,
|
|
2908
2908
|
lat: r.lat,
|
|
2909
2909
|
lng: r.lng
|
|
2910
|
-
})), Be = ee ?
|
|
2910
|
+
})), Be = ee ? ye.isSearching : ke.isSearching, De = ee ? ye.loadError : ke.loadError, x = ee ? !!ie : !!fe, l = ee ? ye.searchPlaces : ke.searchPlaces, f = ee ? ye.clearPredictions : ke.clearPredictions, Z = M(() => {
|
|
2911
2911
|
});
|
|
2912
2912
|
Z.current = () => {
|
|
2913
|
-
(n.birthPlace ?? "") !== oe.current &&
|
|
2913
|
+
(n.birthPlace ?? "") !== oe.current && R({
|
|
2914
2914
|
birthPlace: "",
|
|
2915
2915
|
birthPlaceLat: void 0,
|
|
2916
2916
|
birthPlaceLng: void 0
|
|
@@ -2928,7 +2928,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2928
2928
|
}, []), q(() => {
|
|
2929
2929
|
if (!_) return;
|
|
2930
2930
|
const r = window.setTimeout(() => {
|
|
2931
|
-
|
|
2931
|
+
P.current?.focus();
|
|
2932
2932
|
}, 0);
|
|
2933
2933
|
return () => window.clearTimeout(r);
|
|
2934
2934
|
}, [_]), q(() => {
|
|
@@ -2991,7 +2991,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2991
2991
|
onFocus: () => p?.trackNameSectionClicked?.(),
|
|
2992
2992
|
onChange: (r) => {
|
|
2993
2993
|
const d = r.target.value;
|
|
2994
|
-
|
|
2994
|
+
R({ fullName: d }), E("fullName", d);
|
|
2995
2995
|
},
|
|
2996
2996
|
placeholder: t("formFullNamePlaceholder"),
|
|
2997
2997
|
autoComplete: "name"
|
|
@@ -3028,7 +3028,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3028
3028
|
onFocus: () => p?.trackPhoneSectionClicked?.(),
|
|
3029
3029
|
onChange: (r) => {
|
|
3030
3030
|
const d = r.target.value;
|
|
3031
|
-
|
|
3031
|
+
R({ phone: Aa(d) }), E("phone", Aa(d));
|
|
3032
3032
|
},
|
|
3033
3033
|
placeholder: t("formPhonePlaceholder"),
|
|
3034
3034
|
autoComplete: "tel",
|
|
@@ -3050,7 +3050,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3050
3050
|
/* @__PURE__ */ e.jsx("div", { className: o.isdSearchWrap, children: /* @__PURE__ */ e.jsx(
|
|
3051
3051
|
"input",
|
|
3052
3052
|
{
|
|
3053
|
-
ref:
|
|
3053
|
+
ref: P,
|
|
3054
3054
|
type: "text",
|
|
3055
3055
|
value: te,
|
|
3056
3056
|
onChange: (r) => C(r.target.value),
|
|
@@ -3081,7 +3081,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3081
3081
|
)
|
|
3082
3082
|
] }) })
|
|
3083
3083
|
] }),
|
|
3084
|
-
|
|
3084
|
+
y && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
3085
3085
|
/* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, children: [
|
|
3086
3086
|
t("formGender"),
|
|
3087
3087
|
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
@@ -3100,7 +3100,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3100
3100
|
type: "button",
|
|
3101
3101
|
className: `${o.choiceBtn} ${n.gender === "male" ? o.choiceBtnActive : ""}`,
|
|
3102
3102
|
onClick: () => {
|
|
3103
|
-
|
|
3103
|
+
R({ gender: "male" }), p?.trackGenderSelected?.({
|
|
3104
3104
|
gender: "male"
|
|
3105
3105
|
});
|
|
3106
3106
|
},
|
|
@@ -3116,7 +3116,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3116
3116
|
type: "button",
|
|
3117
3117
|
className: `${o.choiceBtn} ${n.gender === "female" ? o.choiceBtnActive : ""}`,
|
|
3118
3118
|
onClick: () => {
|
|
3119
|
-
|
|
3119
|
+
R({ gender: "female" }), p?.trackGenderSelected?.({
|
|
3120
3120
|
gender: "female"
|
|
3121
3121
|
});
|
|
3122
3122
|
},
|
|
@@ -3144,7 +3144,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3144
3144
|
value: n.email,
|
|
3145
3145
|
onFocus: () => p?.trackEmailSectionClicked?.(),
|
|
3146
3146
|
onChange: (r) => {
|
|
3147
|
-
|
|
3147
|
+
R({ email: r.target.value });
|
|
3148
3148
|
},
|
|
3149
3149
|
onBlur: se,
|
|
3150
3150
|
placeholder: t("formEmailPlaceholder"),
|
|
@@ -3203,7 +3203,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3203
3203
|
})(),
|
|
3204
3204
|
onChange: (r) => {
|
|
3205
3205
|
const d = r.target.value, z = /* @__PURE__ */ new Date(), Se = `${z.getFullYear()}-${ue(z.getMonth() + 1)}-${ue(z.getDate())}`;
|
|
3206
|
-
d && d > Se || (
|
|
3206
|
+
d && d > Se || (R({ dateOfBirth: d }), E("dateOfBirth", d), $.current = null);
|
|
3207
3207
|
},
|
|
3208
3208
|
onFocus: () => p?.trackDobClicked?.(),
|
|
3209
3209
|
onClick: () => be(I),
|
|
@@ -3281,7 +3281,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3281
3281
|
onFocus: () => p?.trackTimeClicked?.(),
|
|
3282
3282
|
onChange: (r) => {
|
|
3283
3283
|
const d = r.target.value;
|
|
3284
|
-
|
|
3284
|
+
R({ birthTime: d }), E("birthTime", d);
|
|
3285
3285
|
},
|
|
3286
3286
|
disabled: n.birthTimeUnknown,
|
|
3287
3287
|
placeholder: "HH:MM AM",
|
|
@@ -3383,8 +3383,8 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3383
3383
|
type: "button",
|
|
3384
3384
|
className: `${o.timePopoverBtn} ${o.timePopoverOk}`,
|
|
3385
3385
|
onClick: () => {
|
|
3386
|
-
const r =
|
|
3387
|
-
|
|
3386
|
+
const r = je(re);
|
|
3387
|
+
R({ birthTime: r }), E("birthTime", r), K(!1);
|
|
3388
3388
|
},
|
|
3389
3389
|
"aria-label": "OK",
|
|
3390
3390
|
children: /* @__PURE__ */ e.jsx(
|
|
@@ -3424,7 +3424,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3424
3424
|
type: "checkbox",
|
|
3425
3425
|
checked: n.birthTimeUnknown,
|
|
3426
3426
|
onChange: (r) => {
|
|
3427
|
-
p?.trackTimeCheckboxClicked?.(),
|
|
3427
|
+
p?.trackTimeCheckboxClicked?.(), R({
|
|
3428
3428
|
birthTimeUnknown: r.target.checked,
|
|
3429
3429
|
birthTime: r.target.checked ? "" : n.birthTime
|
|
3430
3430
|
});
|
|
@@ -3491,7 +3491,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3491
3491
|
value: n.birthPlace,
|
|
3492
3492
|
onChange: (r) => {
|
|
3493
3493
|
const d = r.target.value;
|
|
3494
|
-
|
|
3494
|
+
R({
|
|
3495
3495
|
birthPlace: d,
|
|
3496
3496
|
birthPlaceLat: void 0,
|
|
3497
3497
|
birthPlaceLng: void 0
|
|
@@ -3513,19 +3513,19 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3513
3513
|
"aria-hidden": !0
|
|
3514
3514
|
}
|
|
3515
3515
|
) }),
|
|
3516
|
-
pe &&
|
|
3516
|
+
pe && Pe.length > 0 && /* @__PURE__ */ e.jsx("div", { className: o.suggestions, role: "listbox", children: Pe.slice(0, 8).map((r) => /* @__PURE__ */ e.jsxs(
|
|
3517
3517
|
"button",
|
|
3518
3518
|
{
|
|
3519
3519
|
type: "button",
|
|
3520
3520
|
className: o.suggestionItem,
|
|
3521
3521
|
onClick: async () => {
|
|
3522
3522
|
const d = r.description;
|
|
3523
|
-
if (oe.current = d,
|
|
3523
|
+
if (oe.current = d, R({
|
|
3524
3524
|
birthPlace: d,
|
|
3525
3525
|
birthPlaceLat: r.lat,
|
|
3526
3526
|
birthPlaceLng: r.lng
|
|
3527
3527
|
}), f(), ge(!1), ee) {
|
|
3528
|
-
const z = await
|
|
3528
|
+
const z = await ye.getPlaceDetails(
|
|
3529
3529
|
r.id
|
|
3530
3530
|
);
|
|
3531
3531
|
z && (oe.current = d, i({
|
|
@@ -3543,11 +3543,11 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3543
3543
|
},
|
|
3544
3544
|
r.id
|
|
3545
3545
|
)) }),
|
|
3546
|
-
pe &&
|
|
3547
|
-
pe &&
|
|
3546
|
+
pe && x && Be && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: "Loading…" }),
|
|
3547
|
+
pe && x && !Be && !!De && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: De })
|
|
3548
3548
|
] })
|
|
3549
3549
|
] }),
|
|
3550
|
-
|
|
3550
|
+
y && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
3551
3551
|
/* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, children: [
|
|
3552
3552
|
t("formReportLanguage"),
|
|
3553
3553
|
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
@@ -3566,7 +3566,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3566
3566
|
type: "button",
|
|
3567
3567
|
className: `${o.choiceBtn} ${n.language_code === "hi" ? o.choiceBtnActive : ""}`,
|
|
3568
3568
|
onClick: () => {
|
|
3569
|
-
|
|
3569
|
+
R({ language_code: "hi" }), p?.trackLanguageOfReportSelected?.({
|
|
3570
3570
|
language: "hi"
|
|
3571
3571
|
});
|
|
3572
3572
|
},
|
|
@@ -3582,7 +3582,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3582
3582
|
type: "button",
|
|
3583
3583
|
className: `${o.choiceBtn} ${n.language_code === "en" ? o.choiceBtnActive : ""}`,
|
|
3584
3584
|
onClick: () => {
|
|
3585
|
-
|
|
3585
|
+
R({ language_code: "en" }), p?.trackLanguageOfReportSelected?.({
|
|
3586
3586
|
language: "en"
|
|
3587
3587
|
});
|
|
3588
3588
|
},
|
|
@@ -3598,7 +3598,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3598
3598
|
type: "button",
|
|
3599
3599
|
className: `${o.choiceBtn} ${n.language_code === "te" ? o.choiceBtnActive : ""}`,
|
|
3600
3600
|
onClick: () => {
|
|
3601
|
-
|
|
3601
|
+
R({ language_code: "te" }), p?.trackLanguageOfReportSelected?.({
|
|
3602
3602
|
language: "te"
|
|
3603
3603
|
});
|
|
3604
3604
|
},
|
|
@@ -3614,7 +3614,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3614
3614
|
type: "button",
|
|
3615
3615
|
className: `${o.choiceBtn} ${n.language_code === "ta" ? o.choiceBtnActive : ""}`,
|
|
3616
3616
|
onClick: () => {
|
|
3617
|
-
|
|
3617
|
+
R({ language_code: "ta" }), p?.trackLanguageOfReportSelected?.({
|
|
3618
3618
|
language: "ta"
|
|
3619
3619
|
});
|
|
3620
3620
|
},
|
|
@@ -3630,7 +3630,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3630
3630
|
type: "button",
|
|
3631
3631
|
className: `${o.choiceBtn} ${n.language_code === "kn" ? o.choiceBtnActive : ""}`,
|
|
3632
3632
|
onClick: () => {
|
|
3633
|
-
|
|
3633
|
+
R({ language_code: "kn" }), p?.trackLanguageOfReportSelected?.({
|
|
3634
3634
|
language: "kn"
|
|
3635
3635
|
});
|
|
3636
3636
|
},
|
|
@@ -3646,7 +3646,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3646
3646
|
type: "button",
|
|
3647
3647
|
className: `${o.choiceBtn} ${n.language_code === "gu" ? o.choiceBtnActive : ""}`,
|
|
3648
3648
|
onClick: () => {
|
|
3649
|
-
|
|
3649
|
+
R({ language_code: "gu" }), p?.trackLanguageOfReportSelected?.({
|
|
3650
3650
|
language: "gu"
|
|
3651
3651
|
});
|
|
3652
3652
|
},
|
|
@@ -3662,7 +3662,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3662
3662
|
type: "button",
|
|
3663
3663
|
className: `${o.choiceBtn} ${n.language_code === "mr" ? o.choiceBtnActive : ""}`,
|
|
3664
3664
|
onClick: () => {
|
|
3665
|
-
|
|
3665
|
+
R({ language_code: "mr" }), p?.trackLanguageOfReportSelected?.({
|
|
3666
3666
|
language: "mr"
|
|
3667
3667
|
});
|
|
3668
3668
|
},
|
|
@@ -3683,7 +3683,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3683
3683
|
ctaFilled: Fr,
|
|
3684
3684
|
ctaFilledContent: Mr,
|
|
3685
3685
|
chevronRight: Ur
|
|
3686
|
-
},
|
|
3686
|
+
}, ja = "kundli-report-astrologer", Gr = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", Or = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", $r = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", Hr = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", Wr = ({ t }) => {
|
|
3687
3687
|
const i = Me()?.config.imageComponent ?? Ye;
|
|
3688
3688
|
return /* @__PURE__ */ e.jsxs("div", { className: Fe.marqueeContent, children: [
|
|
3689
3689
|
/* @__PURE__ */ e.jsxs("span", { className: Fe.badge, children: [
|
|
@@ -3747,7 +3747,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3747
3747
|
phoneIsdCode: i,
|
|
3748
3748
|
requireV1ExtraFields: c = !1,
|
|
3749
3749
|
onValidationFailed: g,
|
|
3750
|
-
onProceed:
|
|
3750
|
+
onProceed: y,
|
|
3751
3751
|
onProceedGuidance: h,
|
|
3752
3752
|
href: w,
|
|
3753
3753
|
analytics: b,
|
|
@@ -3756,36 +3756,36 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3756
3756
|
discountPillLabel: N,
|
|
3757
3757
|
showPlanSheet: p,
|
|
3758
3758
|
confirmPlan: U,
|
|
3759
|
-
planSheetOpen:
|
|
3760
|
-
selectedPlan:
|
|
3759
|
+
planSheetOpen: v,
|
|
3760
|
+
selectedPlan: j
|
|
3761
3761
|
}) => {
|
|
3762
|
-
const
|
|
3762
|
+
const k = Me(), _ = k?.config.isGlobal ?? !0, S = k?.config?.variant, te = Ee(
|
|
3763
3763
|
() => Yr(n, _, c),
|
|
3764
3764
|
[n, _, c]
|
|
3765
|
-
), C = te === null, V = S === "v1" &&
|
|
3765
|
+
), C = te === null, V = S === "v1" && k?.config?.showSheet, P = _ ? D ?? t("formDiscountedPrice") : V ? "" : "₹499", J = k?.config.imageComponent ?? Ye, R = (se) => {
|
|
3766
3766
|
if (se.preventDefault(), S === "v1" && !C && b?.trackKundliDetailedClicked?.(), !C) {
|
|
3767
3767
|
te && g?.(te);
|
|
3768
3768
|
return;
|
|
3769
3769
|
}
|
|
3770
|
-
const ae = !!h && S === "v1" &&
|
|
3770
|
+
const ae = !!h && S === "v1" && j?.id === ja, G = (n.phone ?? "").trim(), I = {
|
|
3771
3771
|
...n,
|
|
3772
3772
|
phone: G && `${i}-${G}`
|
|
3773
3773
|
};
|
|
3774
3774
|
if (V) {
|
|
3775
|
-
|
|
3775
|
+
v ? U?.() : p?.(I);
|
|
3776
3776
|
return;
|
|
3777
3777
|
}
|
|
3778
|
-
b?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), ae ? h(I) :
|
|
3778
|
+
b?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), ae ? h(I) : y?.(I);
|
|
3779
3779
|
}, E = /* @__PURE__ */ e.jsx(
|
|
3780
3780
|
za,
|
|
3781
3781
|
{
|
|
3782
3782
|
href: w,
|
|
3783
3783
|
disabled: S === "v1" ? !1 : !C,
|
|
3784
|
-
onClick:
|
|
3784
|
+
onClick: R,
|
|
3785
3785
|
"aria-label": t("formPriceAria"),
|
|
3786
3786
|
className: S === "v1" && C ? Ke.ctaFilled : S === "v1" ? Ke.ctaButton : void 0,
|
|
3787
3787
|
children: S === "v1" ? C ? /* @__PURE__ */ e.jsxs("span", { className: Ke.ctaFilledContent, children: [
|
|
3788
|
-
V ? t("selectPackage") :
|
|
3788
|
+
V ? t("selectPackage") : v && j ? `${t("proceedWithPlan")}${j.price}` : `${t("formProceed")} ${P}`,
|
|
3789
3789
|
/* @__PURE__ */ e.jsx(
|
|
3790
3790
|
J,
|
|
3791
3791
|
{
|
|
@@ -3800,7 +3800,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3800
3800
|
] }) : t("formCtaDefault") : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3801
3801
|
t("formProceed"),
|
|
3802
3802
|
" ",
|
|
3803
|
-
|
|
3803
|
+
P
|
|
3804
3804
|
] })
|
|
3805
3805
|
}
|
|
3806
3806
|
);
|
|
@@ -3818,7 +3818,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3818
3818
|
logoUrl: i = Jr,
|
|
3819
3819
|
className: c = ""
|
|
3820
3820
|
}) => {
|
|
3821
|
-
const g = Me(),
|
|
3821
|
+
const g = Me(), y = g?.config.isGlobal ?? !0, h = n != null && !y;
|
|
3822
3822
|
return /* @__PURE__ */ e.jsx(
|
|
3823
3823
|
Za,
|
|
3824
3824
|
{
|
|
@@ -3882,7 +3882,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3882
3882
|
/* @__PURE__ */ e.jsx("path", { d: "M3 9.5h18", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
3883
3883
|
/* @__PURE__ */ e.jsx("path", { d: "M8 2.5v4M16 2.5v4", stroke: "#D1D5DB", strokeWidth: "1.6", strokeLinecap: "round" }),
|
|
3884
3884
|
/* @__PURE__ */ e.jsx("path", { d: "M7.5 20.5L17 6", stroke: "#9CA3AF", strokeWidth: "1.6", strokeLinecap: "round" })
|
|
3885
|
-
] }), nn = "
|
|
3885
|
+
] }), nn = "_overlay_pvy8j_3", on = "_sheet_pvy8j_13", ln = "_sheetFullScreen_pvy8j_53", sn = "_headerFull_pvy8j_76", cn = "_titleFull_pvy8j_89", dn = "_header_pvy8j_76", un = "_backBtn_pvy8j_110", pn = "_title_pvy8j_89", mn = "_plansContainer_pvy8j_140", fn = "_planCard_pvy8j_149", hn = "_withBadgeSpacing_pvy8j_163", gn = "_planCardSelected_pvy8j_167", bn = "_planCardPopular_pvy8j_172", _n = "_popularBadge_pvy8j_181", yn = "_planCardInner_pvy8j_199", kn = "_planTitleRow_pvy8j_210", vn = "_planTitle_pvy8j_210", An = "_radioCircle_pvy8j_225", Tn = "_radioChecked_pvy8j_238", xn = "_radioInner_pvy8j_243", Pn = "_priceRow_pvy8j_251", wn = "_price_pvy8j_251", Sn = "_originalPrice_pvy8j_264", Cn = "_savingsBadge_pvy8j_271", Rn = "_featureList_pvy8j_281", jn = "_featureItem_pvy8j_290", Nn = "_featureIcon_pvy8j_296", Ln = "_featureText_pvy8j_302", Bn = "_astrologerHeading_pvy8j_313", Dn = "_astrologerList_pvy8j_320", En = "_astrologerCard_pvy8j_336", In = "_astrologerAvatar_pvy8j_352", Fn = "_astrologerAvatarPlaceholder_pvy8j_369", Mn = "_astrologerTop_pvy8j_375", Un = "_astrologerBasicInfo_pvy8j_381", Gn = "_astrologerName_pvy8j_388", On = "_astrologerExp_pvy8j_397", $n = "_astrologerDivider_pvy8j_403", Hn = "_planDivider_pvy8j_409", Wn = "_astrologerCertList_pvy8j_416", Kn = "_astrologerCertItem_pvy8j_422", qn = "_bullet_pvy8j_430", Yn = "_footer_pvy8j_435", Vn = "_proceedBtn_pvy8j_445", T = {
|
|
3886
3886
|
overlay: nn,
|
|
3887
3887
|
sheet: on,
|
|
3888
3888
|
sheetFullScreen: ln,
|
|
@@ -3897,18 +3897,18 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3897
3897
|
planCardSelected: gn,
|
|
3898
3898
|
planCardPopular: bn,
|
|
3899
3899
|
popularBadge: _n,
|
|
3900
|
-
planCardInner:
|
|
3901
|
-
planTitleRow:
|
|
3902
|
-
planTitle:
|
|
3903
|
-
radioCircle:
|
|
3900
|
+
planCardInner: yn,
|
|
3901
|
+
planTitleRow: kn,
|
|
3902
|
+
planTitle: vn,
|
|
3903
|
+
radioCircle: An,
|
|
3904
3904
|
radioChecked: Tn,
|
|
3905
|
-
radioInner:
|
|
3906
|
-
priceRow:
|
|
3905
|
+
radioInner: xn,
|
|
3906
|
+
priceRow: Pn,
|
|
3907
3907
|
price: wn,
|
|
3908
3908
|
originalPrice: Sn,
|
|
3909
3909
|
savingsBadge: Cn,
|
|
3910
|
-
featureList:
|
|
3911
|
-
featureItem:
|
|
3910
|
+
featureList: Rn,
|
|
3911
|
+
featureItem: jn,
|
|
3912
3912
|
featureIcon: Nn,
|
|
3913
3913
|
featureText: Ln,
|
|
3914
3914
|
astrologerHeading: Bn,
|
|
@@ -3966,7 +3966,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3966
3966
|
/* @__PURE__ */ e.jsx(Zr, {}),
|
|
3967
3967
|
/* @__PURE__ */ e.jsx("span", { children: t })
|
|
3968
3968
|
] }), Zn = ({ plan: t, isSelected: n, onSelect: i, t: c }) => {
|
|
3969
|
-
const g = () => i(t.id),
|
|
3969
|
+
const g = () => i(t.id), y = (h) => {
|
|
3970
3970
|
(h.key === " " || h.key === "Enter") && (h.preventDefault(), i(t.id));
|
|
3971
3971
|
};
|
|
3972
3972
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -3981,7 +3981,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3981
3981
|
role: "radio",
|
|
3982
3982
|
"aria-checked": n,
|
|
3983
3983
|
tabIndex: 0,
|
|
3984
|
-
onKeyDown:
|
|
3984
|
+
onKeyDown: y,
|
|
3985
3985
|
"data-plan-id": t.id,
|
|
3986
3986
|
children: [
|
|
3987
3987
|
t.badge && /* @__PURE__ */ e.jsx(Xn, { label: c?.(t.badge) ?? t.badge }),
|
|
@@ -4021,9 +4021,9 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4021
4021
|
const i = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], c = /* @__PURE__ */ new Date(`${t}T00:00:00`);
|
|
4022
4022
|
if (Number.isNaN(c.getTime()))
|
|
4023
4023
|
return { id: t, dayLabel: t, dayNum: "" };
|
|
4024
|
-
const g = (w) => new Date(w.getFullYear(), w.getMonth(), w.getDate()).getTime(),
|
|
4024
|
+
const g = (w) => new Date(w.getFullYear(), w.getMonth(), w.getDate()).getTime(), y = Math.round(
|
|
4025
4025
|
(g(c) - g(n)) / (1e3 * 60 * 60 * 24)
|
|
4026
|
-
), h =
|
|
4026
|
+
), h = y === 0 ? "Today" : y === 1 ? "Tomorrow" : i[c.getDay()];
|
|
4027
4027
|
return { id: t, dayLabel: h, dayNum: String(c.getDate()) };
|
|
4028
4028
|
}, ao = [
|
|
4029
4029
|
"morning",
|
|
@@ -4059,11 +4059,11 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4059
4059
|
mr: ["mr", "en"],
|
|
4060
4060
|
ta: ["ta", "en"]
|
|
4061
4061
|
}, La = (t) => !!t?.days?.some((n) => n.has_availability && n.slots.length > 0), oo = (t, n, i) => {
|
|
4062
|
-
const c = i ? no : ro, [g,
|
|
4063
|
-
(b) => b !== g && b !==
|
|
4062
|
+
const c = i ? no : ro, [g, y] = c[n || "en"] ?? c.en, h = qe.map((b) => b.code).filter(
|
|
4063
|
+
(b) => b !== g && b !== y
|
|
4064
4064
|
);
|
|
4065
|
-
return [g,
|
|
4066
|
-
}, io = "
|
|
4065
|
+
return [g, y, ...h].find((b) => La(t[b])) ?? g;
|
|
4066
|
+
}, io = "_overlay_1mg8x_3", lo = "_sheet_1mg8x_13", so = "_content_1mg8x_47", co = "_header_1mg8x_54", uo = "_backBtn_1mg8x_67", po = "_title_1mg8x_85", mo = "_languageRow_1mg8x_101", fo = "_languageLabel_1mg8x_109", ho = "_languageDropdown_1mg8x_115", go = "_languageDropdownBtn_1mg8x_119", bo = "_languageMenu_1mg8x_134", _o = "_languageMenuItem_1mg8x_151", yo = "_languageMenuItemSelected_1mg8x_165", ko = "_languageDivider_1mg8x_171", vo = "_reportReadyBanner_1mg8x_178", Ao = "_reportReadyDuration_1mg8x_187", To = "_trustRow_1mg8x_193", xo = "_trustAvatars_1mg8x_204", Po = "_trustText_1mg8x_217", wo = "_sectionHeading_1mg8x_328", So = "_dateTabs_1mg8x_336", Co = "_dateTabIndicator_1mg8x_348", Ro = "_dateTab_1mg8x_336", jo = "_dateTabDivider_1mg8x_382", No = "_dateTabSelected_1mg8x_392", Lo = "_dateTabLabel_1mg8x_397", Bo = "_dateTabNum_1mg8x_404", Do = "_periodTabs_1mg8x_418", Eo = "_periodTabIndicator_1mg8x_346", Io = "_periodTab_1mg8x_346", Fo = "_periodTabSelected_1mg8x_465", Mo = "_timeGrid_1mg8x_470", Uo = "_emptyState_1mg8x_498", Go = "_timeSlot_1mg8x_502", Oo = "_timeSlotSelected_1mg8x_518", $o = "_topicGrid_1mg8x_526", Ho = "_topicChip_1mg8x_532", Wo = "_topicChipSelected_1mg8x_548", Ko = "_stateMessage_1mg8x_555", qo = "_emptyStateIcon_1mg8x_575", Yo = "_emptyStateTitle_1mg8x_586", Vo = "_emptyStateSubtitle_1mg8x_593", Jo = "_loadingWrap_1mg8x_602", zo = "_skeletonShimmer_1mg8x_607", Qo = "_skeletonDateTabs_1mg8x_621", Xo = "_skeletonDateTab_1mg8x_621", Zo = "_skeletonPeriodTabs_1mg8x_635", ei = "_skeletonPeriodTab_1mg8x_635", ai = "_skeletonTimeGrid_1mg8x_650", ti = "_skeletonTimeSlot_1mg8x_656", ri = "_retryBtn_1mg8x_661", ni = "_footer_1mg8x_675", oi = "_proceedBtn_1mg8x_682", ii = "_proceedBtnDisabled_1mg8x_700", m = {
|
|
4067
4067
|
overlay: io,
|
|
4068
4068
|
sheet: lo,
|
|
4069
4069
|
content: so,
|
|
@@ -4076,18 +4076,18 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4076
4076
|
languageDropdownBtn: go,
|
|
4077
4077
|
languageMenu: bo,
|
|
4078
4078
|
languageMenuItem: _o,
|
|
4079
|
-
languageMenuItemSelected:
|
|
4080
|
-
languageDivider:
|
|
4081
|
-
reportReadyBanner:
|
|
4082
|
-
reportReadyDuration:
|
|
4079
|
+
languageMenuItemSelected: yo,
|
|
4080
|
+
languageDivider: ko,
|
|
4081
|
+
reportReadyBanner: vo,
|
|
4082
|
+
reportReadyDuration: Ao,
|
|
4083
4083
|
trustRow: To,
|
|
4084
|
-
trustAvatars:
|
|
4085
|
-
trustText:
|
|
4084
|
+
trustAvatars: xo,
|
|
4085
|
+
trustText: Po,
|
|
4086
4086
|
sectionHeading: wo,
|
|
4087
4087
|
dateTabs: So,
|
|
4088
4088
|
dateTabIndicator: Co,
|
|
4089
|
-
dateTab:
|
|
4090
|
-
dateTabDivider:
|
|
4089
|
+
dateTab: Ro,
|
|
4090
|
+
dateTabDivider: jo,
|
|
4091
4091
|
dateTabSelected: No,
|
|
4092
4092
|
dateTabLabel: Lo,
|
|
4093
4093
|
dateTabNum: Bo,
|
|
@@ -4135,29 +4135,29 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4135
4135
|
t: i,
|
|
4136
4136
|
analytics: c,
|
|
4137
4137
|
reportLanguage: g,
|
|
4138
|
-
isPostPayment:
|
|
4138
|
+
isPostPayment: y = !1,
|
|
4139
4139
|
showGuidanceTopic: h,
|
|
4140
4140
|
hideFooter: w = !1,
|
|
4141
4141
|
onStateChange: b
|
|
4142
4142
|
}) => {
|
|
4143
|
-
const Y = h ?? !
|
|
4144
|
-
() => C[
|
|
4145
|
-
[C,
|
|
4146
|
-
), [G, I] = B(""), [$, X] = B(""), [O, Te] = B("morning"), [K, re] = B(null), he = M(!1), ue = M(null), we = M({}), [ne,
|
|
4143
|
+
const Y = h ?? !y, D = Me(), N = D?.config.imageComponent ?? Ye, p = D?.config.fetchConsultationSlots, U = D?.config.isGlobal ?? !0, v = g ?? D?.formValues?.language_code, j = y ? "post_payment" : "pre_payment", [k, _] = B(!1), [S, te] = B(!1), [C, V] = B({}), [P, J] = B("en"), [R, E] = B(!1), se = M(null), ae = Ee(
|
|
4144
|
+
() => C[P]?.days ?? [],
|
|
4145
|
+
[C, P]
|
|
4146
|
+
), [G, I] = B(""), [$, X] = B(""), [O, Te] = B("morning"), [K, re] = B(null), he = M(!1), ue = M(null), we = M({}), [ne, je] = B(null), _e = M(null), pe = M(
|
|
4147
4147
|
{}
|
|
4148
4148
|
), [ge, oe] = B(null), H = Ee(
|
|
4149
4149
|
() => ae.filter((l) => l.has_availability && l.slots.length > 0),
|
|
4150
4150
|
[ae]
|
|
4151
|
-
), me =
|
|
4151
|
+
), me = Re(() => {
|
|
4152
4152
|
p && (_(!0), te(!1), p().then((l) => {
|
|
4153
4153
|
const f = l ?? {}, Z = oo(
|
|
4154
4154
|
f,
|
|
4155
|
-
|
|
4155
|
+
v,
|
|
4156
4156
|
U
|
|
4157
4157
|
);
|
|
4158
4158
|
V(f), J(Z), c?.trackConsultationLanguageDefaultSelected?.({
|
|
4159
4159
|
language: ta(Z),
|
|
4160
|
-
status:
|
|
4160
|
+
status: j
|
|
4161
4161
|
});
|
|
4162
4162
|
const be = (f[Z]?.days ?? []).filter(
|
|
4163
4163
|
(r) => r.has_availability && r.slots.length > 0
|
|
@@ -4165,21 +4165,21 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4165
4165
|
c?.trackAstrologerAvailabilityServed?.({
|
|
4166
4166
|
astrologers_shown: n.map((r) => r.name),
|
|
4167
4167
|
dates_available_count: be,
|
|
4168
|
-
status:
|
|
4168
|
+
status: j
|
|
4169
4169
|
});
|
|
4170
4170
|
}).catch(() => {
|
|
4171
4171
|
te(!0);
|
|
4172
4172
|
}).finally(() => _(!1)));
|
|
4173
|
-
}, [p, U,
|
|
4173
|
+
}, [p, U, v, c, n, j]);
|
|
4174
4174
|
q(() => {
|
|
4175
4175
|
I(""), E(!1), me();
|
|
4176
4176
|
}, []), q(() => {
|
|
4177
|
-
if (!
|
|
4177
|
+
if (!R) return;
|
|
4178
4178
|
const l = (f) => {
|
|
4179
4179
|
se.current && !se.current.contains(f.target) && E(!1);
|
|
4180
4180
|
};
|
|
4181
4181
|
return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
|
|
4182
|
-
}, [
|
|
4182
|
+
}, [R]), q(() => {
|
|
4183
4183
|
if (!H.length) {
|
|
4184
4184
|
X(""), re(null);
|
|
4185
4185
|
return;
|
|
@@ -4187,7 +4187,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4187
4187
|
const l = H[0];
|
|
4188
4188
|
H.some((f) => f.date === $) || c?.trackConsultationDateDefaultSelected?.({
|
|
4189
4189
|
date: l.date,
|
|
4190
|
-
status:
|
|
4190
|
+
status: j
|
|
4191
4191
|
}), X(
|
|
4192
4192
|
(f) => H.some((Z) => Z.date === f) ? f : l.date
|
|
4193
4193
|
);
|
|
@@ -4214,11 +4214,11 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4214
4214
|
const l = () => {
|
|
4215
4215
|
const f = ue.current, Z = we.current[$];
|
|
4216
4216
|
if (!f || !Z) {
|
|
4217
|
-
|
|
4217
|
+
je(null);
|
|
4218
4218
|
return;
|
|
4219
4219
|
}
|
|
4220
4220
|
const be = f.getBoundingClientRect(), r = Z.getBoundingClientRect();
|
|
4221
|
-
|
|
4221
|
+
je({
|
|
4222
4222
|
left: r.left - be.left,
|
|
4223
4223
|
top: r.top - be.top,
|
|
4224
4224
|
width: r.width,
|
|
@@ -4250,7 +4250,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4250
4250
|
c?.trackConsultationTimeDefaultSelected?.({
|
|
4251
4251
|
time: aa(f.start),
|
|
4252
4252
|
gmt_offset: ci(f.start),
|
|
4253
|
-
status:
|
|
4253
|
+
status: j
|
|
4254
4254
|
});
|
|
4255
4255
|
}
|
|
4256
4256
|
re(
|
|
@@ -4260,54 +4260,54 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4260
4260
|
H.length && !he.current && (c?.trackSlotScreenViewed?.({
|
|
4261
4261
|
astrologers_shown: n.map((l) => l.name),
|
|
4262
4262
|
dates_available_count: H.length,
|
|
4263
|
-
status:
|
|
4263
|
+
status: j
|
|
4264
4264
|
}), he.current = !0);
|
|
4265
|
-
}, [H, n, c,
|
|
4265
|
+
}, [H, n, c, j]);
|
|
4266
4266
|
const ce = !!K && (!Y || !!G), Ne = (l) => {
|
|
4267
4267
|
X(l), c?.trackSlotDateSelected?.({
|
|
4268
4268
|
date: l,
|
|
4269
4269
|
day_part_default: O,
|
|
4270
|
-
status:
|
|
4270
|
+
status: j
|
|
4271
4271
|
});
|
|
4272
|
-
},
|
|
4272
|
+
}, xe = (l) => {
|
|
4273
4273
|
Te(l), c?.trackDayPartSelected?.({
|
|
4274
4274
|
day_part: l,
|
|
4275
4275
|
slots_available_count: ie?.slots.filter((f) => f.period === l).length ?? 0,
|
|
4276
|
-
status:
|
|
4276
|
+
status: j
|
|
4277
4277
|
});
|
|
4278
|
-
},
|
|
4278
|
+
}, ye = (l) => {
|
|
4279
4279
|
re(l), c?.trackSlotSelected?.({
|
|
4280
4280
|
date: $,
|
|
4281
4281
|
time: aa(l.start),
|
|
4282
4282
|
day_part: l.period,
|
|
4283
4283
|
topic: G || null,
|
|
4284
|
-
status:
|
|
4284
|
+
status: j
|
|
4285
4285
|
});
|
|
4286
|
-
},
|
|
4286
|
+
}, ke = () => {
|
|
4287
4287
|
K && (c?.trackSlotReservationRequested?.({
|
|
4288
4288
|
slot_datetime: `${K.start} - ${K.end}`,
|
|
4289
|
-
status:
|
|
4289
|
+
status: j
|
|
4290
4290
|
}), t({
|
|
4291
4291
|
start: K.start,
|
|
4292
4292
|
end: K.end,
|
|
4293
4293
|
period: K.period,
|
|
4294
4294
|
topic: G,
|
|
4295
|
-
language:
|
|
4295
|
+
language: P
|
|
4296
4296
|
}));
|
|
4297
|
-
},
|
|
4298
|
-
|
|
4299
|
-
b?.({ canProceed: ce, proceed: () =>
|
|
4297
|
+
}, Pe = M(ke);
|
|
4298
|
+
Pe.current = ke, q(() => {
|
|
4299
|
+
b?.({ canProceed: ce, proceed: () => Pe.current() });
|
|
4300
4300
|
}, [ce, b]);
|
|
4301
4301
|
const Be = (l) => {
|
|
4302
|
-
I(l), c?.trackGuidanceTopicSelected?.({ topic: l, status:
|
|
4302
|
+
I(l), c?.trackGuidanceTopicSelected?.({ topic: l, status: j });
|
|
4303
4303
|
}, De = (l) => {
|
|
4304
4304
|
c?.trackConsultationLanguageChanged?.({
|
|
4305
|
-
previous_language: ta(
|
|
4305
|
+
previous_language: ta(P),
|
|
4306
4306
|
new_language: ta(l),
|
|
4307
4307
|
slots_available: La(C[l]) ? "yes" : "no",
|
|
4308
|
-
status:
|
|
4308
|
+
status: j
|
|
4309
4309
|
}), J(l), E(!1);
|
|
4310
|
-
},
|
|
4310
|
+
}, x = qe.find((l) => l.code === P) ?? qe[0];
|
|
4311
4311
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4312
4312
|
/* @__PURE__ */ e.jsxs("div", { className: m.content, children: [
|
|
4313
4313
|
/* @__PURE__ */ e.jsxs("div", { className: m.languageRow, children: [
|
|
@@ -4320,15 +4320,15 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4320
4320
|
className: m.languageDropdownBtn,
|
|
4321
4321
|
onClick: () => E((l) => !l),
|
|
4322
4322
|
"aria-haspopup": "listbox",
|
|
4323
|
-
"aria-expanded":
|
|
4323
|
+
"aria-expanded": R,
|
|
4324
4324
|
children: [
|
|
4325
|
-
i?.(
|
|
4325
|
+
i?.(x.labelKey) ?? x.label,
|
|
4326
4326
|
/* @__PURE__ */ e.jsx(Xr, {})
|
|
4327
4327
|
]
|
|
4328
4328
|
}
|
|
4329
4329
|
),
|
|
4330
|
-
|
|
4331
|
-
const f = l.code ===
|
|
4330
|
+
R && /* @__PURE__ */ e.jsx("ul", { className: m.languageMenu, role: "listbox", children: qe.map((l) => {
|
|
4331
|
+
const f = l.code === P;
|
|
4332
4332
|
return /* @__PURE__ */ e.jsxs(
|
|
4333
4333
|
"li",
|
|
4334
4334
|
{
|
|
@@ -4358,7 +4358,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4358
4358
|
" ",
|
|
4359
4359
|
i?.("planReportReadySuffix") ?? "from today"
|
|
4360
4360
|
] }),
|
|
4361
|
-
|
|
4361
|
+
k && /* @__PURE__ */ e.jsxs("div", { className: m.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
|
|
4362
4362
|
/* @__PURE__ */ e.jsx("div", { className: m.skeletonDateTabs, children: Array.from({ length: 5 }).map((l, f) => /* @__PURE__ */ e.jsx(
|
|
4363
4363
|
"div",
|
|
4364
4364
|
{
|
|
@@ -4381,16 +4381,16 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4381
4381
|
f
|
|
4382
4382
|
)) })
|
|
4383
4383
|
] }),
|
|
4384
|
-
!
|
|
4384
|
+
!k && S && /* @__PURE__ */ e.jsxs("div", { className: m.stateMessage, children: [
|
|
4385
4385
|
i?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
4386
4386
|
/* @__PURE__ */ e.jsx("button", { type: "button", className: m.retryBtn, onClick: me, children: i?.("planRetry") ?? "Retry" })
|
|
4387
4387
|
] }),
|
|
4388
|
-
!
|
|
4388
|
+
!k && !S && H.length === 0 && /* @__PURE__ */ e.jsxs("div", { className: m.emptyState, children: [
|
|
4389
4389
|
/* @__PURE__ */ e.jsx("span", { className: m.emptyStateIcon, children: /* @__PURE__ */ e.jsx(rn, {}) }),
|
|
4390
4390
|
/* @__PURE__ */ e.jsx("p", { className: m.emptyStateTitle, children: i?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
|
|
4391
4391
|
/* @__PURE__ */ e.jsx("p", { className: m.emptyStateSubtitle, children: i?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
|
|
4392
4392
|
] }),
|
|
4393
|
-
!
|
|
4393
|
+
!k && !S && H.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4394
4394
|
/* @__PURE__ */ e.jsxs("div", { className: m.dateTabs, ref: ue, role: "radiogroup", "aria-label": "Consultation date", children: [
|
|
4395
4395
|
ne && /* @__PURE__ */ e.jsx(
|
|
4396
4396
|
"span",
|
|
@@ -4458,7 +4458,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4458
4458
|
].filter(Boolean).join(" "),
|
|
4459
4459
|
role: "tab",
|
|
4460
4460
|
"aria-selected": l === O,
|
|
4461
|
-
onClick: () =>
|
|
4461
|
+
onClick: () => xe(l),
|
|
4462
4462
|
children: [
|
|
4463
4463
|
/* @__PURE__ */ e.jsx(f, {}),
|
|
4464
4464
|
i?.(Z) ?? (l === "evening" && U ? "Evening/Night" : l.charAt(0).toUpperCase() + l.slice(1))
|
|
@@ -4484,7 +4484,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4484
4484
|
].filter(Boolean).join(" "),
|
|
4485
4485
|
role: "radio",
|
|
4486
4486
|
"aria-checked": K?.start === l.start,
|
|
4487
|
-
onClick: () =>
|
|
4487
|
+
onClick: () => ye(l),
|
|
4488
4488
|
children: aa(l.start)
|
|
4489
4489
|
},
|
|
4490
4490
|
`${l.start}-${f}`
|
|
@@ -4534,8 +4534,8 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4534
4534
|
type: "button",
|
|
4535
4535
|
className: [m.proceedBtn, ce ? "" : m.proceedBtnDisabled].filter(Boolean).join(" "),
|
|
4536
4536
|
disabled: !ce,
|
|
4537
|
-
onClick:
|
|
4538
|
-
children:
|
|
4537
|
+
onClick: ke,
|
|
4538
|
+
children: y ? i?.("planBookSlot") ?? "Book Slot" : i?.("planProceedToPayment") ?? "Proceed to payment"
|
|
4539
4539
|
}
|
|
4540
4540
|
)
|
|
4541
4541
|
] })
|
|
@@ -4633,24 +4633,24 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4633
4633
|
selectedPlan: i,
|
|
4634
4634
|
onSelectPlan: c,
|
|
4635
4635
|
plans: g,
|
|
4636
|
-
onProceed:
|
|
4636
|
+
onProceed: y,
|
|
4637
4637
|
t: h,
|
|
4638
4638
|
analytics: w,
|
|
4639
4639
|
enableConsultationScheduling: b
|
|
4640
4640
|
}) => {
|
|
4641
|
-
const Y = Me(), D = Y?.config.isGlobal ?? !0, N = b ?? Y?.config.enableConsultationScheduling ?? !1, p = g ?? mi(D), U = i?.id || p.find((C) => C.badge)?.id || p[0]?.id || "",
|
|
4641
|
+
const Y = Me(), D = Y?.config.isGlobal ?? !0, N = b ?? Y?.config.enableConsultationScheduling ?? !1, p = g ?? mi(D), U = i?.id || p.find((C) => C.badge)?.id || p[0]?.id || "", v = M(null), j = M(null), k = M(!1), [_, S] = B(!1);
|
|
4642
4642
|
q(() => {
|
|
4643
4643
|
if (t) {
|
|
4644
4644
|
if (!i) {
|
|
4645
4645
|
const C = p.find((V) => V.badge) ?? p[0];
|
|
4646
4646
|
C && c(C);
|
|
4647
4647
|
}
|
|
4648
|
-
|
|
4648
|
+
k.current || (w?.trackPlanPageViewed?.(), N && w?.trackPlanScreenViewed?.({
|
|
4649
4649
|
plans_shown: p.map((C) => C.id),
|
|
4650
4650
|
default_selected_plan: i?.id || p.find((C) => C.badge)?.id || p[0]?.id || ""
|
|
4651
|
-
}),
|
|
4651
|
+
}), k.current = !0);
|
|
4652
4652
|
} else
|
|
4653
|
-
|
|
4653
|
+
k.current = !1;
|
|
4654
4654
|
}, [t, p, i, c, w]);
|
|
4655
4655
|
const te = () => {
|
|
4656
4656
|
w?.trackPlanPageClosed?.(), n();
|
|
@@ -4673,7 +4673,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4673
4673
|
/* @__PURE__ */ e.jsxs(
|
|
4674
4674
|
"div",
|
|
4675
4675
|
{
|
|
4676
|
-
ref:
|
|
4676
|
+
ref: v,
|
|
4677
4677
|
className: N ? T.sheetFullScreen : T.sheet,
|
|
4678
4678
|
children: [
|
|
4679
4679
|
N ? /* @__PURE__ */ e.jsxs("div", { className: T.headerFull, children: [
|
|
@@ -4698,7 +4698,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4698
4698
|
/* @__PURE__ */ e.jsx(
|
|
4699
4699
|
"div",
|
|
4700
4700
|
{
|
|
4701
|
-
ref:
|
|
4701
|
+
ref: j,
|
|
4702
4702
|
className: T.plansContainer,
|
|
4703
4703
|
role: "radiogroup",
|
|
4704
4704
|
"aria-label": "Kundli plans",
|
|
@@ -4709,16 +4709,16 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4709
4709
|
isSelected: C.id === U,
|
|
4710
4710
|
t: h,
|
|
4711
4711
|
onSelect: (V) => {
|
|
4712
|
-
const
|
|
4713
|
-
|
|
4714
|
-
planId:
|
|
4715
|
-
planName:
|
|
4712
|
+
const P = p.find((J) => J.id === V);
|
|
4713
|
+
P && (w?.trackPlanSelected?.({
|
|
4714
|
+
planId: P.id,
|
|
4715
|
+
planName: P.title,
|
|
4716
4716
|
...N ? {
|
|
4717
|
-
price:
|
|
4718
|
-
includes_consultation: !!(
|
|
4719
|
-
cta_label:
|
|
4717
|
+
price: P.price,
|
|
4718
|
+
includes_consultation: !!(P.astrologers && P.astrologers.length > 0),
|
|
4719
|
+
cta_label: P.astrologers && P.astrologers.length > 0 ? h?.("planSelectConsultationSlot") ?? "Select consultation slot →" : h?.("planProceedToPayment") ?? "Proceed to Payment"
|
|
4720
4720
|
} : {}
|
|
4721
|
-
}), c(
|
|
4721
|
+
}), c(P));
|
|
4722
4722
|
}
|
|
4723
4723
|
},
|
|
4724
4724
|
C.id
|
|
@@ -4748,7 +4748,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4748
4748
|
planId: i.id,
|
|
4749
4749
|
planName: i.title,
|
|
4750
4750
|
...N ? { cta_type: "proceed", next_step: "payment" } : {}
|
|
4751
|
-
}),
|
|
4751
|
+
}), y(i), n();
|
|
4752
4752
|
}
|
|
4753
4753
|
},
|
|
4754
4754
|
children: i ? N && i.astrologers && i.astrologers.length > 0 ? h?.("planSelectConsultationSlot") ?? "Select consultation slot →" : h?.("planProceedToPayment") ?? i.price + "Proceed to Payment" : "Select a plan"
|
|
@@ -4771,7 +4771,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4771
4771
|
planName: i.title,
|
|
4772
4772
|
cta_type: "proceed",
|
|
4773
4773
|
next_step: "payment"
|
|
4774
|
-
}),
|
|
4774
|
+
}), y(i, C), S(!1), n();
|
|
4775
4775
|
}
|
|
4776
4776
|
}
|
|
4777
4777
|
)
|
|
@@ -4780,7 +4780,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4780
4780
|
),
|
|
4781
4781
|
document.body
|
|
4782
4782
|
) : null;
|
|
4783
|
-
}, hi = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", gi = (t, n) =>
|
|
4783
|
+
}, hi = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", gi = (t, n) => Pa[t]?.[n] ?? n, bi = (t, n) => t && ra.includes(t) ? t : n ? "+1" : "+91", _i = {
|
|
4784
4784
|
fullName: "",
|
|
4785
4785
|
phone: "",
|
|
4786
4786
|
phoneCountryCode: "",
|
|
@@ -4797,7 +4797,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4797
4797
|
showLanguageSelector: i = !0,
|
|
4798
4798
|
onBack: c,
|
|
4799
4799
|
initialValues: g,
|
|
4800
|
-
onProceed:
|
|
4800
|
+
onProceed: y,
|
|
4801
4801
|
onProceedGuidance: h,
|
|
4802
4802
|
proceedHref: w,
|
|
4803
4803
|
originalPriceLabel: b,
|
|
@@ -4807,32 +4807,32 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4807
4807
|
googleMapsAutocompleteEnabled: p,
|
|
4808
4808
|
analytics: U
|
|
4809
4809
|
}) => {
|
|
4810
|
-
const
|
|
4810
|
+
const v = Me(), j = vt(), k = v !== null, _ = k ? v.locale : n, S = _ ?? j?.locale ?? "en", [te, C] = B(S), V = k ? v.locale : te, P = k ? v.setLocale : C, [J, R] = B(!1), E = M(null), se = M(
|
|
4811
4811
|
_
|
|
4812
4812
|
), ae = M(
|
|
4813
|
-
|
|
4813
|
+
j?.locale
|
|
4814
4814
|
);
|
|
4815
4815
|
q(() => {
|
|
4816
4816
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
4817
4817
|
}, []);
|
|
4818
|
-
const G = (
|
|
4818
|
+
const G = (x) => gi(V, x);
|
|
4819
4819
|
q(() => {
|
|
4820
|
-
_ && se.current !== _ &&
|
|
4821
|
-
}, [_,
|
|
4820
|
+
_ && se.current !== _ && P(_), se.current = _;
|
|
4821
|
+
}, [_, P]), q(() => {
|
|
4822
4822
|
if (_) return;
|
|
4823
|
-
const
|
|
4824
|
-
|
|
4825
|
-
}, [
|
|
4823
|
+
const x = j?.locale;
|
|
4824
|
+
x && ae.current !== x && P(x), ae.current = x;
|
|
4825
|
+
}, [j?.locale, _, P]);
|
|
4826
4826
|
const [I, $] = B({
|
|
4827
4827
|
..._i,
|
|
4828
4828
|
...g,
|
|
4829
4829
|
phone: g?.phone ?? ""
|
|
4830
|
-
}), X =
|
|
4830
|
+
}), X = k ? v?.config.isGlobal ?? !0 : !0, O = k ? v.formValues : I, Te = k ? v.setFormValues : $, [K, re] = B(
|
|
4831
4831
|
() => bi(O.phoneCountryCode, X)
|
|
4832
4832
|
), he = M(
|
|
4833
4833
|
!!(O.phoneCountryCode && ra.includes(O.phoneCountryCode))
|
|
4834
|
-
), ue = M(!1), we =
|
|
4835
|
-
ue.current = !0, re(
|
|
4834
|
+
), ue = M(!1), we = Re((x) => {
|
|
4835
|
+
ue.current = !0, re(x);
|
|
4836
4836
|
}, []), ne = M(!0);
|
|
4837
4837
|
q(() => {
|
|
4838
4838
|
if (ne.current) {
|
|
@@ -4841,49 +4841,49 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4841
4841
|
}
|
|
4842
4842
|
he.current || ue.current || re(X ? "+1" : "+91");
|
|
4843
4843
|
}, [X]), q(() => {
|
|
4844
|
-
if (!
|
|
4845
|
-
const
|
|
4846
|
-
|
|
4847
|
-
}, [
|
|
4848
|
-
const
|
|
4844
|
+
if (!k || ue.current) return;
|
|
4845
|
+
const x = O.phoneCountryCode;
|
|
4846
|
+
x && ra.includes(x) && x !== K && (he.current = !0, re(x));
|
|
4847
|
+
}, [k, O.phoneCountryCode]);
|
|
4848
|
+
const je = k ? v.goToPage : c, _e = k ? v.onProceed : y, pe = k ? v.onProceedGuidance : h, ge = k ? v.config.proceedHref : w, oe = k ? v.config.originalPriceLabel : b, H = k ? v.config.discountedPriceLabel : Y, me = k ? v.config.showLanguageSelector ?? !0 : i, ie = (k ? v?.config?.analytics : U) ?? U;
|
|
4849
4849
|
q(() => {
|
|
4850
4850
|
if (!J) return;
|
|
4851
|
-
const
|
|
4852
|
-
E.current && !E.current.contains(l.target) &&
|
|
4851
|
+
const x = (l) => {
|
|
4852
|
+
E.current && !E.current.contains(l.target) && R(!1);
|
|
4853
4853
|
};
|
|
4854
|
-
return document.addEventListener("mousedown",
|
|
4854
|
+
return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
|
|
4855
4855
|
}, [J]);
|
|
4856
|
-
const [fe, ee] = B(!1), [ce, Ne] = B(null),
|
|
4857
|
-
|
|
4858
|
-
}, []),
|
|
4856
|
+
const [fe, ee] = B(!1), [ce, Ne] = B(null), xe = M(null), ye = Re((x) => {
|
|
4857
|
+
xe.current = x, ee(!0);
|
|
4858
|
+
}, []), ke = M(!1);
|
|
4859
4859
|
q(() => {
|
|
4860
|
-
if (
|
|
4860
|
+
if (ke.current || !k || !v?.config.autoOpenPlanSheet || v?.config.variant !== "v1")
|
|
4861
4861
|
return;
|
|
4862
|
-
|
|
4863
|
-
const
|
|
4864
|
-
|
|
4862
|
+
ke.current = !0;
|
|
4863
|
+
const x = (O.phone ?? "").trim();
|
|
4864
|
+
ye({
|
|
4865
4865
|
...O,
|
|
4866
|
-
phone:
|
|
4866
|
+
phone: x && `${K}-${x}`
|
|
4867
4867
|
});
|
|
4868
|
-
}, [
|
|
4869
|
-
const
|
|
4870
|
-
if (!
|
|
4868
|
+
}, [k, v?.config.autoOpenPlanSheet, v?.config.variant, O, K, ye]);
|
|
4869
|
+
const Pe = Re(() => {
|
|
4870
|
+
if (!xe.current || !ce) return;
|
|
4871
4871
|
ie?.trackPlanProceedClicked?.({
|
|
4872
4872
|
planId: ce.id,
|
|
4873
4873
|
planName: ce.title,
|
|
4874
4874
|
price: ce.price,
|
|
4875
4875
|
currency: X ? "USD" : "INR"
|
|
4876
4876
|
});
|
|
4877
|
-
const
|
|
4878
|
-
ce.id ===
|
|
4879
|
-
}, [ce, _e, pe]), Be =
|
|
4877
|
+
const x = { ...xe.current, _selectedPlan: ce };
|
|
4878
|
+
ce.id === ja && pe ? pe(x) : _e?.(x), ee(!1), xe.current = null;
|
|
4879
|
+
}, [ce, _e, pe]), Be = v?.config.imageComponent ?? Ye, De = me ? /* @__PURE__ */ e.jsxs("div", { className: Le.langDropdownWrap, ref: E, children: [
|
|
4880
4880
|
/* @__PURE__ */ e.jsxs(
|
|
4881
4881
|
"button",
|
|
4882
4882
|
{
|
|
4883
4883
|
type: "button",
|
|
4884
4884
|
className: Le.langTrigger,
|
|
4885
4885
|
onClick: () => {
|
|
4886
|
-
ie?.trackLanguageClickedFe?.({ language: V }),
|
|
4886
|
+
ie?.trackLanguageClickedFe?.({ language: V }), R((x) => !x);
|
|
4887
4887
|
},
|
|
4888
4888
|
"aria-expanded": J,
|
|
4889
4889
|
"aria-haspopup": "listbox",
|
|
@@ -4901,7 +4901,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4901
4901
|
loading: "eager"
|
|
4902
4902
|
}
|
|
4903
4903
|
),
|
|
4904
|
-
/* @__PURE__ */ e.jsx("span", { className: Le.langLabel, children:
|
|
4904
|
+
/* @__PURE__ */ e.jsx("span", { className: Le.langLabel, children: ya[V] })
|
|
4905
4905
|
]
|
|
4906
4906
|
}
|
|
4907
4907
|
),
|
|
@@ -4912,19 +4912,19 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4912
4912
|
role: "listbox",
|
|
4913
4913
|
"aria-labelledby": "kundli-form-lang",
|
|
4914
4914
|
"aria-activedescendant": `kundli-form-lang-option-${V}`,
|
|
4915
|
-
children:
|
|
4915
|
+
children: xa.map((x) => /* @__PURE__ */ e.jsx(
|
|
4916
4916
|
"li",
|
|
4917
4917
|
{
|
|
4918
|
-
id: `kundli-form-lang-option-${
|
|
4918
|
+
id: `kundli-form-lang-option-${x}`,
|
|
4919
4919
|
role: "option",
|
|
4920
|
-
"aria-selected":
|
|
4920
|
+
"aria-selected": x === V,
|
|
4921
4921
|
className: Le.langOption,
|
|
4922
4922
|
onClick: () => {
|
|
4923
|
-
ie?.trackLanguageChangedFe?.({ newLanguage:
|
|
4923
|
+
ie?.trackLanguageChangedFe?.({ newLanguage: x }), P(x), R(!1);
|
|
4924
4924
|
},
|
|
4925
|
-
children:
|
|
4925
|
+
children: ya[x]
|
|
4926
4926
|
},
|
|
4927
|
-
|
|
4927
|
+
x
|
|
4928
4928
|
))
|
|
4929
4929
|
}
|
|
4930
4930
|
)
|
|
@@ -4934,14 +4934,14 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4934
4934
|
zr,
|
|
4935
4935
|
{
|
|
4936
4936
|
t: G,
|
|
4937
|
-
logoUrl:
|
|
4937
|
+
logoUrl: k ? v.config.logoUrl : void 0,
|
|
4938
4938
|
languageSelector: De,
|
|
4939
4939
|
className: Le.kundliHeaderNoBorder
|
|
4940
4940
|
}
|
|
4941
4941
|
),
|
|
4942
4942
|
/* @__PURE__ */ e.jsx("div", { className: Le.headerSeparator, "aria-hidden": !0 }),
|
|
4943
4943
|
/* @__PURE__ */ e.jsxs("main", { className: Le.main, children: [
|
|
4944
|
-
/* @__PURE__ */ e.jsx(
|
|
4944
|
+
/* @__PURE__ */ e.jsx(Rt, { t: G, onBack: je }),
|
|
4945
4945
|
/* @__PURE__ */ e.jsx(
|
|
4946
4946
|
Er,
|
|
4947
4947
|
{
|
|
@@ -4953,7 +4953,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4953
4953
|
googleMapsAutocompleteEnabled: p,
|
|
4954
4954
|
phoneIsdCode: K,
|
|
4955
4955
|
onPhoneIsdCodeChange: we,
|
|
4956
|
-
showV1ExtraFields:
|
|
4956
|
+
showV1ExtraFields: k ? v?.config.variant === "v1" : !1,
|
|
4957
4957
|
analytics: ie
|
|
4958
4958
|
}
|
|
4959
4959
|
)
|
|
@@ -4970,13 +4970,13 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4970
4970
|
originalPriceLabel: oe,
|
|
4971
4971
|
discountedPriceLabel: H,
|
|
4972
4972
|
analytics: ie,
|
|
4973
|
-
showPlanSheet:
|
|
4974
|
-
confirmPlan:
|
|
4973
|
+
showPlanSheet: ye,
|
|
4974
|
+
confirmPlan: Pe,
|
|
4975
4975
|
planSheetOpen: fe,
|
|
4976
4976
|
selectedPlan: ce
|
|
4977
4977
|
}
|
|
4978
4978
|
),
|
|
4979
|
-
|
|
4979
|
+
v?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
|
|
4980
4980
|
fi,
|
|
4981
4981
|
{
|
|
4982
4982
|
isOpen: fe,
|
|
@@ -4984,9 +4984,9 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4984
4984
|
selectedPlan: ce,
|
|
4985
4985
|
onSelectPlan: Ne,
|
|
4986
4986
|
onProceed: () => {
|
|
4987
|
-
|
|
4987
|
+
Pe?.();
|
|
4988
4988
|
},
|
|
4989
|
-
plans:
|
|
4989
|
+
plans: v?.config.plans,
|
|
4990
4990
|
t: G,
|
|
4991
4991
|
analytics: ie
|
|
4992
4992
|
}
|
|
@@ -5067,22 +5067,22 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
5067
5067
|
export {
|
|
5068
5068
|
di as C,
|
|
5069
5069
|
Ye as D,
|
|
5070
|
-
|
|
5071
|
-
|
|
5070
|
+
Rt as F,
|
|
5071
|
+
Ai as I,
|
|
5072
5072
|
Ci as K,
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5073
|
+
ya as L,
|
|
5074
|
+
ja as P,
|
|
5075
|
+
xa as S,
|
|
5076
5076
|
Er as U,
|
|
5077
5077
|
Sa as a,
|
|
5078
5078
|
ia as b,
|
|
5079
5079
|
Si as c,
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5080
|
+
Pi as d,
|
|
5081
|
+
xt as e,
|
|
5082
|
+
Pt as f,
|
|
5083
|
+
At as g,
|
|
5084
5084
|
Me as h,
|
|
5085
|
-
|
|
5085
|
+
xi as i,
|
|
5086
5086
|
wi as j,
|
|
5087
5087
|
ui as k,
|
|
5088
5088
|
mi as l,
|
|
@@ -5093,7 +5093,7 @@ export {
|
|
|
5093
5093
|
fi as q,
|
|
5094
5094
|
Ti as r,
|
|
5095
5095
|
Tt as s,
|
|
5096
|
-
|
|
5097
|
-
|
|
5096
|
+
Pa as t,
|
|
5097
|
+
vt as u
|
|
5098
5098
|
};
|
|
5099
|
-
//# sourceMappingURL=analytics-
|
|
5099
|
+
//# sourceMappingURL=analytics-C7q6coqa.js.map
|