@srimandir/kundli-generator 9.6.8 → 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-DXIMIqu9.js → analytics-C7q6coqa.js} +757 -753
- package/dist/{analytics-DXIMIqu9.js.map → analytics-C7q6coqa.js.map} +1 -1
- package/dist/{criticalCss-CbNdtrKw.js → criticalCss-Dwemq76K.js} +401 -361
- 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-CbNdtrKw.js.map +0 -1
|
@@ -1,15 +1,16 @@
|
|
|
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
|
+
import { createPortal as et } from "react-dom";
|
|
3
4
|
var Ve = { exports: {} }, He = {};
|
|
4
5
|
var ga;
|
|
5
|
-
function
|
|
6
|
+
function at() {
|
|
6
7
|
if (ga) return He;
|
|
7
8
|
ga = 1;
|
|
8
|
-
var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), i = /* @__PURE__ */ Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, g = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
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 };
|
|
9
10
|
function h(w, b, Y) {
|
|
10
11
|
var D, N = {}, p = null, U = null;
|
|
11
12
|
Y !== void 0 && (p = "" + Y), b.key !== void 0 && (p = "" + b.key), b.ref !== void 0 && (U = b.ref);
|
|
12
|
-
for (D in b) c.call(b, D) && !
|
|
13
|
+
for (D in b) c.call(b, D) && !y.hasOwnProperty(D) && (N[D] = b[D]);
|
|
13
14
|
if (w && w.defaultProps) for (D in b = w.defaultProps, b) N[D] === void 0 && (N[D] = b[D]);
|
|
14
15
|
return { $$typeof: n, type: w, key: p, ref: U, props: N, _owner: g.current };
|
|
15
16
|
}
|
|
@@ -17,46 +18,46 @@ function et() {
|
|
|
17
18
|
}
|
|
18
19
|
var We = {};
|
|
19
20
|
var ba;
|
|
20
|
-
function
|
|
21
|
+
function tt() {
|
|
21
22
|
return ba || (ba = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
-
var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), i = /* @__PURE__ */ Symbol.for("react.portal"), c = /* @__PURE__ */ Symbol.for("react.fragment"), g = /* @__PURE__ */ Symbol.for("react.strict_mode"),
|
|
23
|
-
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) {
|
|
24
25
|
if (a === null || typeof a != "object")
|
|
25
26
|
return null;
|
|
26
|
-
var s =
|
|
27
|
+
var s = v && a[v] || a[j];
|
|
27
28
|
return typeof s == "function" ? s : null;
|
|
28
29
|
}
|
|
29
30
|
var _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
30
31
|
function S(a) {
|
|
31
32
|
{
|
|
32
|
-
for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0),
|
|
33
|
-
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];
|
|
34
35
|
te("error", a, u);
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
function te(a, s, u) {
|
|
38
39
|
{
|
|
39
|
-
var
|
|
40
|
+
var A = _.ReactDebugCurrentFrame, W = A.getStackAddendum();
|
|
40
41
|
W !== "" && (s += "%s", u = u.concat([W]));
|
|
41
|
-
var
|
|
42
|
+
var Q = u.map(function(F) {
|
|
42
43
|
return String(F);
|
|
43
44
|
});
|
|
44
|
-
|
|
45
|
+
Q.unshift("Warning: " + s), Function.prototype.apply.call(console[a], console, Q);
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
|
-
var C = !1,
|
|
48
|
+
var C = !1, V = !1, P = !1, J = !1, R = !1, E;
|
|
48
49
|
E = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
50
|
function se(a) {
|
|
50
|
-
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
|
|
51
52
|
// types supported by any Flight configuration anywhere since
|
|
52
53
|
// we don't know which Flight build this will end up being used
|
|
53
54
|
// with.
|
|
54
55
|
a.$$typeof === E || a.getModuleId !== void 0));
|
|
55
56
|
}
|
|
56
57
|
function ae(a, s, u) {
|
|
57
|
-
var
|
|
58
|
-
if (
|
|
59
|
-
return
|
|
58
|
+
var A = a.displayName;
|
|
59
|
+
if (A)
|
|
60
|
+
return A;
|
|
60
61
|
var W = s.displayName || s.name || "";
|
|
61
62
|
return W !== "" ? u + "(" + W + ")" : u;
|
|
62
63
|
}
|
|
@@ -75,7 +76,7 @@ function at() {
|
|
|
75
76
|
return "Fragment";
|
|
76
77
|
case i:
|
|
77
78
|
return "Portal";
|
|
78
|
-
case
|
|
79
|
+
case y:
|
|
79
80
|
return "Profiler";
|
|
80
81
|
case g:
|
|
81
82
|
return "StrictMode";
|
|
@@ -95,12 +96,12 @@ function at() {
|
|
|
95
96
|
case b:
|
|
96
97
|
return ae(a, a.render, "ForwardRef");
|
|
97
98
|
case N:
|
|
98
|
-
var
|
|
99
|
-
return
|
|
99
|
+
var A = a.displayName || null;
|
|
100
|
+
return A !== null ? A : I(a.type) || "Memo";
|
|
100
101
|
case p: {
|
|
101
|
-
var W = a,
|
|
102
|
+
var W = a, Q = W._payload, F = W._init;
|
|
102
103
|
try {
|
|
103
|
-
return I(F(
|
|
104
|
+
return I(F(Q));
|
|
104
105
|
} catch {
|
|
105
106
|
return null;
|
|
106
107
|
}
|
|
@@ -112,7 +113,7 @@ function at() {
|
|
|
112
113
|
function ne() {
|
|
113
114
|
}
|
|
114
115
|
ne.__reactDisabledLog = !0;
|
|
115
|
-
function
|
|
116
|
+
function je() {
|
|
116
117
|
{
|
|
117
118
|
if (X === 0) {
|
|
118
119
|
O = console.log, Te = console.info, K = console.warn, re = console.error, he = console.group, ue = console.groupCollapsed, we = console.groupEnd;
|
|
@@ -177,8 +178,8 @@ function at() {
|
|
|
177
178
|
try {
|
|
178
179
|
throw Error();
|
|
179
180
|
} catch (W) {
|
|
180
|
-
var
|
|
181
|
-
ge =
|
|
181
|
+
var A = W.stack.trim().match(/\n( *(at )?)/);
|
|
182
|
+
ge = A && A[1] || "";
|
|
182
183
|
}
|
|
183
184
|
return `
|
|
184
185
|
` + ge + a;
|
|
@@ -197,12 +198,12 @@ function at() {
|
|
|
197
198
|
if (u !== void 0)
|
|
198
199
|
return u;
|
|
199
200
|
}
|
|
200
|
-
var
|
|
201
|
+
var A;
|
|
201
202
|
H = !0;
|
|
202
203
|
var W = Error.prepareStackTrace;
|
|
203
204
|
Error.prepareStackTrace = void 0;
|
|
204
|
-
var
|
|
205
|
-
|
|
205
|
+
var Q;
|
|
206
|
+
Q = pe.current, pe.current = null, je();
|
|
206
207
|
try {
|
|
207
208
|
if (s) {
|
|
208
209
|
var F = function() {
|
|
@@ -215,37 +216,37 @@ function at() {
|
|
|
215
216
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
216
217
|
try {
|
|
217
218
|
Reflect.construct(F, []);
|
|
218
|
-
} catch (
|
|
219
|
-
|
|
219
|
+
} catch (Ae) {
|
|
220
|
+
A = Ae;
|
|
220
221
|
}
|
|
221
222
|
Reflect.construct(a, [], F);
|
|
222
223
|
} else {
|
|
223
224
|
try {
|
|
224
225
|
F.call();
|
|
225
|
-
} catch (
|
|
226
|
-
|
|
226
|
+
} catch (Ae) {
|
|
227
|
+
A = Ae;
|
|
227
228
|
}
|
|
228
229
|
a.call(F.prototype);
|
|
229
230
|
}
|
|
230
231
|
} else {
|
|
231
232
|
try {
|
|
232
233
|
throw Error();
|
|
233
|
-
} catch (
|
|
234
|
-
|
|
234
|
+
} catch (Ae) {
|
|
235
|
+
A = Ae;
|
|
235
236
|
}
|
|
236
237
|
a();
|
|
237
238
|
}
|
|
238
|
-
} catch (
|
|
239
|
-
if (
|
|
240
|
-
for (var L =
|
|
241
|
-
`),
|
|
242
|
-
`), 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]; )
|
|
243
244
|
de--;
|
|
244
245
|
for (; le >= 1 && de >= 0; le--, de--)
|
|
245
|
-
if (L[le] !==
|
|
246
|
+
if (L[le] !== ve[de]) {
|
|
246
247
|
if (le !== 1 || de !== 1)
|
|
247
248
|
do
|
|
248
|
-
if (le--, de--, de < 0 || L[le] !==
|
|
249
|
+
if (le--, de--, de < 0 || L[le] !== ve[de]) {
|
|
249
250
|
var Ce = `
|
|
250
251
|
` + L[le].replace(" at new ", " at ");
|
|
251
252
|
return a.displayName && Ce.includes("<anonymous>") && (Ce = Ce.replace("<anonymous>", a.displayName)), typeof a == "function" && me.set(a, Ce), Ce;
|
|
@@ -255,7 +256,7 @@ function at() {
|
|
|
255
256
|
}
|
|
256
257
|
}
|
|
257
258
|
} finally {
|
|
258
|
-
H = !1, pe.current =
|
|
259
|
+
H = !1, pe.current = Q, _e(), Error.prepareStackTrace = W;
|
|
259
260
|
}
|
|
260
261
|
var Ge = a ? a.displayName || a.name : "", Ie = Ge ? oe(Ge) : "";
|
|
261
262
|
return typeof a == "function" && me.set(a, Ie), Ie;
|
|
@@ -287,44 +288,44 @@ function at() {
|
|
|
287
288
|
case N:
|
|
288
289
|
return Ne(a.type, s, u);
|
|
289
290
|
case p: {
|
|
290
|
-
var
|
|
291
|
+
var A = a, W = A._payload, Q = A._init;
|
|
291
292
|
try {
|
|
292
|
-
return Ne(
|
|
293
|
+
return Ne(Q(W), s, u);
|
|
293
294
|
} catch {
|
|
294
295
|
}
|
|
295
296
|
}
|
|
296
297
|
}
|
|
297
298
|
return "";
|
|
298
299
|
}
|
|
299
|
-
var
|
|
300
|
-
function
|
|
300
|
+
var xe = Object.prototype.hasOwnProperty, ye = {}, ke = _.ReactDebugCurrentFrame;
|
|
301
|
+
function Pe(a) {
|
|
301
302
|
if (a) {
|
|
302
303
|
var s = a._owner, u = Ne(a.type, a._source, s ? s.type : null);
|
|
303
|
-
|
|
304
|
+
ke.setExtraStackFrame(u);
|
|
304
305
|
} else
|
|
305
|
-
|
|
306
|
+
ke.setExtraStackFrame(null);
|
|
306
307
|
}
|
|
307
|
-
function Be(a, s, u,
|
|
308
|
+
function Be(a, s, u, A, W) {
|
|
308
309
|
{
|
|
309
|
-
var
|
|
310
|
+
var Q = Function.call.bind(xe);
|
|
310
311
|
for (var F in a)
|
|
311
|
-
if (
|
|
312
|
+
if (Q(a, F)) {
|
|
312
313
|
var L = void 0;
|
|
313
314
|
try {
|
|
314
315
|
if (typeof a[F] != "function") {
|
|
315
|
-
var
|
|
316
|
-
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;
|
|
317
318
|
}
|
|
318
|
-
L = a[F](s, F,
|
|
319
|
+
L = a[F](s, F, A, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
320
|
} catch (le) {
|
|
320
321
|
L = le;
|
|
321
322
|
}
|
|
322
|
-
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));
|
|
323
324
|
}
|
|
324
325
|
}
|
|
325
326
|
}
|
|
326
327
|
var De = Array.isArray;
|
|
327
|
-
function
|
|
328
|
+
function x(a) {
|
|
328
329
|
return De(a);
|
|
329
330
|
}
|
|
330
331
|
function l(a) {
|
|
@@ -352,9 +353,9 @@ function at() {
|
|
|
352
353
|
ref: !0,
|
|
353
354
|
__self: !0,
|
|
354
355
|
__source: !0
|
|
355
|
-
},
|
|
356
|
+
}, z, Se;
|
|
356
357
|
function $e(a) {
|
|
357
|
-
if (
|
|
358
|
+
if (xe.call(a, "ref")) {
|
|
358
359
|
var s = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
359
360
|
if (s && s.isReactWarning)
|
|
360
361
|
return !1;
|
|
@@ -362,7 +363,7 @@ function at() {
|
|
|
362
363
|
return a.ref !== void 0;
|
|
363
364
|
}
|
|
364
365
|
function ze(a) {
|
|
365
|
-
if (
|
|
366
|
+
if (xe.call(a, "key")) {
|
|
366
367
|
var s = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
367
368
|
if (s && s.isReactWarning)
|
|
368
369
|
return !1;
|
|
@@ -375,7 +376,7 @@ function at() {
|
|
|
375
376
|
function Da(a, s) {
|
|
376
377
|
{
|
|
377
378
|
var u = function() {
|
|
378
|
-
|
|
379
|
+
z || (z = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
|
|
379
380
|
};
|
|
380
381
|
u.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
381
382
|
get: u,
|
|
@@ -394,7 +395,7 @@ function at() {
|
|
|
394
395
|
});
|
|
395
396
|
}
|
|
396
397
|
}
|
|
397
|
-
var Ia = function(a, s, u,
|
|
398
|
+
var Ia = function(a, s, u, A, W, Q, F) {
|
|
398
399
|
var L = {
|
|
399
400
|
// This tag allows us to uniquely identify this as a React Element
|
|
400
401
|
$$typeof: n,
|
|
@@ -404,7 +405,7 @@ function at() {
|
|
|
404
405
|
ref: u,
|
|
405
406
|
props: F,
|
|
406
407
|
// Record the component responsible for creating this element.
|
|
407
|
-
_owner:
|
|
408
|
+
_owner: Q
|
|
408
409
|
};
|
|
409
410
|
return L._store = {}, Object.defineProperty(L._store, "validated", {
|
|
410
411
|
configurable: !1,
|
|
@@ -415,7 +416,7 @@ function at() {
|
|
|
415
416
|
configurable: !1,
|
|
416
417
|
enumerable: !1,
|
|
417
418
|
writable: !1,
|
|
418
|
-
value:
|
|
419
|
+
value: A
|
|
419
420
|
}), Object.defineProperty(L, "_source", {
|
|
420
421
|
configurable: !1,
|
|
421
422
|
enumerable: !1,
|
|
@@ -423,22 +424,22 @@ function at() {
|
|
|
423
424
|
value: W
|
|
424
425
|
}), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
|
|
425
426
|
};
|
|
426
|
-
function Fa(a, s, u,
|
|
427
|
+
function Fa(a, s, u, A, W) {
|
|
427
428
|
{
|
|
428
|
-
var
|
|
429
|
-
u !== void 0 && (be(u), L = "" + u), ze(s) && (be(s.key), L = "" + s.key), $e(s) && (
|
|
430
|
-
for (
|
|
431
|
-
|
|
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
|
+
for (Q in s)
|
|
432
|
+
xe.call(s, Q) && !d.hasOwnProperty(Q) && (F[Q] = s[Q]);
|
|
432
433
|
if (a && a.defaultProps) {
|
|
433
434
|
var le = a.defaultProps;
|
|
434
|
-
for (
|
|
435
|
-
F[
|
|
435
|
+
for (Q in le)
|
|
436
|
+
F[Q] === void 0 && (F[Q] = le[Q]);
|
|
436
437
|
}
|
|
437
|
-
if (L ||
|
|
438
|
+
if (L || ve) {
|
|
438
439
|
var de = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
439
|
-
L && Da(F, de),
|
|
440
|
+
L && Da(F, de), ve && Ea(F, de);
|
|
440
441
|
}
|
|
441
|
-
return Ia(a, L,
|
|
442
|
+
return Ia(a, L, ve, W, A, r.current, F);
|
|
442
443
|
}
|
|
443
444
|
}
|
|
444
445
|
var Qe = _.ReactCurrentOwner, ca = _.ReactDebugCurrentFrame;
|
|
@@ -491,25 +492,25 @@ Check the top-level render call using <` + u + ">.");
|
|
|
491
492
|
if (ua[u])
|
|
492
493
|
return;
|
|
493
494
|
ua[u] = !0;
|
|
494
|
-
var
|
|
495
|
-
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);
|
|
496
497
|
}
|
|
497
498
|
}
|
|
498
499
|
function ma(a, s) {
|
|
499
500
|
{
|
|
500
501
|
if (typeof a != "object")
|
|
501
502
|
return;
|
|
502
|
-
if (
|
|
503
|
+
if (x(a))
|
|
503
504
|
for (var u = 0; u < a.length; u++) {
|
|
504
|
-
var
|
|
505
|
-
Ze(
|
|
505
|
+
var A = a[u];
|
|
506
|
+
Ze(A) && pa(A, s);
|
|
506
507
|
}
|
|
507
508
|
else if (Ze(a))
|
|
508
509
|
a._store && (a._store.validated = !0);
|
|
509
510
|
else if (a) {
|
|
510
|
-
var W =
|
|
511
|
+
var W = k(a);
|
|
511
512
|
if (typeof W == "function" && W !== a.entries)
|
|
512
|
-
for (var
|
|
513
|
+
for (var Q = W.call(a), F; !(F = Q.next()).done; )
|
|
513
514
|
Ze(F.value) && pa(F.value, s);
|
|
514
515
|
}
|
|
515
516
|
}
|
|
@@ -529,8 +530,8 @@ Check the top-level render call using <` + u + ">.");
|
|
|
529
530
|
else
|
|
530
531
|
return;
|
|
531
532
|
if (u) {
|
|
532
|
-
var
|
|
533
|
-
Be(u, a.props, "prop",
|
|
533
|
+
var A = I(s);
|
|
534
|
+
Be(u, a.props, "prop", A, a);
|
|
534
535
|
} else if (s.PropTypes !== void 0 && !Xe) {
|
|
535
536
|
Xe = !0;
|
|
536
537
|
var W = I(s);
|
|
@@ -542,9 +543,9 @@ Check the top-level render call using <` + u + ">.");
|
|
|
542
543
|
function Oa(a) {
|
|
543
544
|
{
|
|
544
545
|
for (var s = Object.keys(a.props), u = 0; u < s.length; u++) {
|
|
545
|
-
var
|
|
546
|
-
if (
|
|
547
|
-
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);
|
|
548
549
|
break;
|
|
549
550
|
}
|
|
550
551
|
}
|
|
@@ -552,25 +553,25 @@ Check the top-level render call using <` + u + ">.");
|
|
|
552
553
|
}
|
|
553
554
|
}
|
|
554
555
|
var fa = {};
|
|
555
|
-
function ha(a, s, u,
|
|
556
|
+
function ha(a, s, u, A, W, Q) {
|
|
556
557
|
{
|
|
557
558
|
var F = se(a);
|
|
558
559
|
if (!F) {
|
|
559
560
|
var L = "";
|
|
560
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.");
|
|
561
|
-
var
|
|
562
|
-
|
|
562
|
+
var ve = Ma();
|
|
563
|
+
ve ? L += ve : L += da();
|
|
563
564
|
var le;
|
|
564
|
-
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);
|
|
565
566
|
}
|
|
566
|
-
var de = Fa(a, s, u, W,
|
|
567
|
+
var de = Fa(a, s, u, W, Q);
|
|
567
568
|
if (de == null)
|
|
568
569
|
return de;
|
|
569
570
|
if (F) {
|
|
570
571
|
var Ce = s.children;
|
|
571
572
|
if (Ce !== void 0)
|
|
572
|
-
if (
|
|
573
|
-
if (
|
|
573
|
+
if (A)
|
|
574
|
+
if (x(Ce)) {
|
|
574
575
|
for (var Ge = 0; Ge < Ce.length; Ge++)
|
|
575
576
|
ma(Ce[Ge], a);
|
|
576
577
|
Object.freeze && Object.freeze(Ce);
|
|
@@ -579,12 +580,12 @@ Check the top-level render call using <` + u + ">.");
|
|
|
579
580
|
else
|
|
580
581
|
ma(Ce, a);
|
|
581
582
|
}
|
|
582
|
-
if (
|
|
583
|
-
var Ie = I(a),
|
|
583
|
+
if (xe.call(s, "key")) {
|
|
584
|
+
var Ie = I(a), Ae = Object.keys(s).filter(function(Ya) {
|
|
584
585
|
return Ya !== "key";
|
|
585
|
-
}), ea =
|
|
586
|
+
}), ea = Ae.length > 0 ? "{key: someKey, " + Ae.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
587
|
if (!fa[Ie + ea]) {
|
|
587
|
-
var qa =
|
|
588
|
+
var qa = Ae.length > 0 ? "{" + Ae.join(": ..., ") + ": ...}" : "{}";
|
|
588
589
|
S(`A props object containing a "key" prop is being spread into JSX:
|
|
589
590
|
let props = %s;
|
|
590
591
|
<%s {...props} />
|
|
@@ -607,22 +608,22 @@ React keys must be passed directly to JSX without using spread:
|
|
|
607
608
|
})()), We;
|
|
608
609
|
}
|
|
609
610
|
var _a;
|
|
610
|
-
function
|
|
611
|
-
return _a || (_a = 1, process.env.NODE_ENV === "production" ? Ve.exports =
|
|
611
|
+
function rt() {
|
|
612
|
+
return _a || (_a = 1, process.env.NODE_ENV === "production" ? Ve.exports = at() : Ve.exports = tt()), Ve.exports;
|
|
612
613
|
}
|
|
613
|
-
var e =
|
|
614
|
-
const
|
|
615
|
-
container:
|
|
616
|
-
main:
|
|
617
|
-
kundliHeaderNoBorder:
|
|
618
|
-
headerSeparator:
|
|
619
|
-
langDropdownWrap:
|
|
620
|
-
langTrigger:
|
|
621
|
-
langIcon:
|
|
622
|
-
langLabel:
|
|
623
|
-
langMenu:
|
|
624
|
-
langOption:
|
|
625
|
-
},
|
|
614
|
+
var e = rt();
|
|
615
|
+
const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBorder_1e1th_12", lt = "_headerSeparator_1e1th_16", st = "_langDropdownWrap_1e1th_21", ct = "_langTrigger_1e1th_25", dt = "_langIcon_1e1th_37", ut = "_langLabel_1e1th_44", pt = "_langMenu_1e1th_49", mt = "_langOption_1e1th_55", Le = {
|
|
616
|
+
container: nt,
|
|
617
|
+
main: ot,
|
|
618
|
+
kundliHeaderNoBorder: it,
|
|
619
|
+
headerSeparator: lt,
|
|
620
|
+
langDropdownWrap: st,
|
|
621
|
+
langTrigger: ct,
|
|
622
|
+
langIcon: dt,
|
|
623
|
+
langLabel: ut,
|
|
624
|
+
langMenu: pt,
|
|
625
|
+
langOption: mt
|
|
626
|
+
}, xa = [
|
|
626
627
|
"en",
|
|
627
628
|
"hi",
|
|
628
629
|
"gu",
|
|
@@ -630,7 +631,7 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
|
|
|
630
631
|
"ta",
|
|
631
632
|
"te",
|
|
632
633
|
"kn"
|
|
633
|
-
],
|
|
634
|
+
], ya = {
|
|
634
635
|
en: "English",
|
|
635
636
|
hi: "हिन्दी",
|
|
636
637
|
gu: "ગુજરાતી",
|
|
@@ -638,7 +639,7 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
|
|
|
638
639
|
ta: "தமிழ்",
|
|
639
640
|
te: "తెలుగు",
|
|
640
641
|
kn: "ಕನ್ನಡ"
|
|
641
|
-
},
|
|
642
|
+
}, ft = {
|
|
642
643
|
kundli: "Kundli",
|
|
643
644
|
birthChart: "Birth Chart",
|
|
644
645
|
details: "Details",
|
|
@@ -876,7 +877,7 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
|
|
|
876
877
|
and: "And",
|
|
877
878
|
astrologyGuidance: "Astrology Guidance",
|
|
878
879
|
selectPackage: "Select Package"
|
|
879
|
-
},
|
|
880
|
+
}, ht = {
|
|
880
881
|
kundli: "कुंडली",
|
|
881
882
|
birthChart: "जन्म कुंडली",
|
|
882
883
|
details: "विवरण",
|
|
@@ -1113,7 +1114,7 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
|
|
|
1113
1114
|
and: "और",
|
|
1114
1115
|
astrologyGuidance: "ज्योतिष से सलाह",
|
|
1115
1116
|
selectPackage: "पैकेज चुनें"
|
|
1116
|
-
},
|
|
1117
|
+
}, gt = {
|
|
1117
1118
|
kundli: "कुंडली",
|
|
1118
1119
|
birthChart: "जन्मकुंडली",
|
|
1119
1120
|
details: "तपशील",
|
|
@@ -1343,7 +1344,7 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
|
|
|
1343
1344
|
and: "आणि",
|
|
1344
1345
|
astrologyGuidance: "ज्योतिष मार्गदर्शन",
|
|
1345
1346
|
selectPackage: "पॅकेज निवडा"
|
|
1346
|
-
},
|
|
1347
|
+
}, bt = {
|
|
1347
1348
|
kundli: "કુંડળી",
|
|
1348
1349
|
birthChart: "જન્મ કુંડળી",
|
|
1349
1350
|
details: "વિગતો",
|
|
@@ -1573,7 +1574,7 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
|
|
|
1573
1574
|
and: "અને",
|
|
1574
1575
|
astrologyGuidance: "જ્યોતિષ માર્ગદર્શન",
|
|
1575
1576
|
selectPackage: "પેકેજ પસંદ કરો"
|
|
1576
|
-
},
|
|
1577
|
+
}, _t = {
|
|
1577
1578
|
kundli: "ಕುಂಡಲಿ",
|
|
1578
1579
|
birthChart: "ಜನ್ಮ ಕುಂಡಲಿ",
|
|
1579
1580
|
details: "ವಿವರಗಳು",
|
|
@@ -1803,7 +1804,7 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
|
|
|
1803
1804
|
and: "ಮತ್ತು",
|
|
1804
1805
|
astrologyGuidance: "ಜ್ಯೋತಿಷ್ಯ ಮಾರ್ಗದರ್ಶನ",
|
|
1805
1806
|
selectPackage: "ಪ್ಯಾಕೇಜ್ ಆಯ್ಕೆಮಾಡಿ"
|
|
1806
|
-
},
|
|
1807
|
+
}, yt = {
|
|
1807
1808
|
kundli: "ஜாதகம்",
|
|
1808
1809
|
birthChart: "பிறப்பு ஜாதகம்",
|
|
1809
1810
|
details: "விவரங்கள்",
|
|
@@ -2263,34 +2264,34 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
|
|
|
2263
2264
|
and: "మరియు",
|
|
2264
2265
|
astrologyGuidance: "జ్యోతిష్య మార్గదర్శకం",
|
|
2265
2266
|
selectPackage: "ప్యాకేజీని ఎంచుకోండి"
|
|
2266
|
-
},
|
|
2267
|
-
en:
|
|
2268
|
-
hi:
|
|
2269
|
-
mr:
|
|
2267
|
+
}, Pa = {
|
|
2268
|
+
en: ft,
|
|
2269
|
+
hi: ht,
|
|
2270
|
+
mr: gt,
|
|
2270
2271
|
// Dropdown/type support only for now — copy falls back to English until
|
|
2271
2272
|
// real gu/ta/te/kn translations are written.
|
|
2272
|
-
gu:
|
|
2273
|
-
ta:
|
|
2273
|
+
gu: bt,
|
|
2274
|
+
ta: yt,
|
|
2274
2275
|
te: kt,
|
|
2275
|
-
kn:
|
|
2276
|
-
}, wa = Ta(null),
|
|
2276
|
+
kn: _t
|
|
2277
|
+
}, wa = Ta(null), Ai = ({
|
|
2277
2278
|
locale: t,
|
|
2278
2279
|
children: n
|
|
2279
2280
|
}) => {
|
|
2280
|
-
const c = { locale: t, t: (g) =>
|
|
2281
|
+
const c = { locale: t, t: (g) => Pa[t]?.[g] };
|
|
2281
2282
|
return /* @__PURE__ */ e.jsx(wa.Provider, { value: c, children: n });
|
|
2282
2283
|
};
|
|
2283
|
-
function
|
|
2284
|
+
function vt() {
|
|
2284
2285
|
return oa(wa);
|
|
2285
2286
|
}
|
|
2286
2287
|
const Ye = (t) => {
|
|
2287
|
-
const { priority: n, fetchPriority: i, width: c, height: g, ...
|
|
2288
|
+
const { priority: n, fetchPriority: i, width: c, height: g, ...y } = t;
|
|
2288
2289
|
return na.createElement("img", {
|
|
2289
|
-
...
|
|
2290
|
+
...y,
|
|
2290
2291
|
width: c ?? 1,
|
|
2291
2292
|
height: g ?? 1,
|
|
2292
2293
|
decoding: "async",
|
|
2293
|
-
loading:
|
|
2294
|
+
loading: y.loading ?? (n ? "eager" : "lazy"),
|
|
2294
2295
|
...i && { fetchPriority: i }
|
|
2295
2296
|
});
|
|
2296
2297
|
};
|
|
@@ -2303,21 +2304,21 @@ function At(t) {
|
|
|
2303
2304
|
return null;
|
|
2304
2305
|
}
|
|
2305
2306
|
}
|
|
2306
|
-
function
|
|
2307
|
+
function Tt(t, n) {
|
|
2307
2308
|
if (!(typeof window > "u" || !window.localStorage))
|
|
2308
2309
|
try {
|
|
2309
2310
|
window.localStorage.setItem(t, n);
|
|
2310
2311
|
} catch {
|
|
2311
2312
|
}
|
|
2312
2313
|
}
|
|
2313
|
-
function
|
|
2314
|
+
function Ti(t) {
|
|
2314
2315
|
if (!(typeof window > "u" || !window.localStorage))
|
|
2315
2316
|
try {
|
|
2316
2317
|
window.localStorage.removeItem(t);
|
|
2317
2318
|
} catch {
|
|
2318
2319
|
}
|
|
2319
2320
|
}
|
|
2320
|
-
function
|
|
2321
|
+
function xi() {
|
|
2321
2322
|
if (typeof window > "u" || !window.localStorage)
|
|
2322
2323
|
return !1;
|
|
2323
2324
|
try {
|
|
@@ -2328,14 +2329,14 @@ function vi() {
|
|
|
2328
2329
|
}
|
|
2329
2330
|
}
|
|
2330
2331
|
const Sa = "kundli_language";
|
|
2331
|
-
function
|
|
2332
|
+
function xt() {
|
|
2332
2333
|
const t = At(Sa);
|
|
2333
|
-
return t &&
|
|
2334
|
+
return t && xa.includes(t) ? t : null;
|
|
2334
2335
|
}
|
|
2335
2336
|
function Pt(t) {
|
|
2336
|
-
|
|
2337
|
+
Tt(Sa, t);
|
|
2337
2338
|
}
|
|
2338
|
-
const ia = Ta(null),
|
|
2339
|
+
const ia = Ta(null), wt = {
|
|
2339
2340
|
fullName: "",
|
|
2340
2341
|
phone: "",
|
|
2341
2342
|
phoneCountryCode: "",
|
|
@@ -2346,13 +2347,13 @@ const ia = Ta(null), xt = {
|
|
|
2346
2347
|
birthTime: "",
|
|
2347
2348
|
birthTimeUnknown: !1,
|
|
2348
2349
|
birthPlace: ""
|
|
2349
|
-
},
|
|
2350
|
+
}, Pi = ({
|
|
2350
2351
|
locale: t,
|
|
2351
2352
|
showLanguageSelector: n = !0,
|
|
2352
2353
|
showSheet: i,
|
|
2353
2354
|
userId: c,
|
|
2354
2355
|
isGlobal: g,
|
|
2355
|
-
variant:
|
|
2356
|
+
variant: y,
|
|
2356
2357
|
initialFormValues: h,
|
|
2357
2358
|
autoOpenPlanSheet: w,
|
|
2358
2359
|
googleMapsApiKey: b,
|
|
@@ -2361,17 +2362,17 @@ const ia = Ta(null), xt = {
|
|
|
2361
2362
|
enableConsultationScheduling: N,
|
|
2362
2363
|
fetchConsultationSlots: p,
|
|
2363
2364
|
logoUrl: U,
|
|
2364
|
-
reportImageUrl:
|
|
2365
|
-
reportImagePriority:
|
|
2366
|
-
backgroundImagePriority:
|
|
2365
|
+
reportImageUrl: v,
|
|
2366
|
+
reportImagePriority: j,
|
|
2367
|
+
backgroundImagePriority: k,
|
|
2367
2368
|
universityLogoUrls: _,
|
|
2368
2369
|
sampleReportHref: S,
|
|
2369
2370
|
onViewSampleReport: te,
|
|
2370
2371
|
ctaHref: C,
|
|
2371
|
-
onCtaClick:
|
|
2372
|
-
onBack:
|
|
2373
|
-
readMoreReviewsHref:
|
|
2374
|
-
onProceed:
|
|
2372
|
+
onCtaClick: V,
|
|
2373
|
+
onBack: P,
|
|
2374
|
+
readMoreReviewsHref: J,
|
|
2375
|
+
onProceed: R,
|
|
2375
2376
|
proceedHref: E,
|
|
2376
2377
|
originalPriceLabel: se,
|
|
2377
2378
|
discountedPriceLabel: ae,
|
|
@@ -2385,14 +2386,14 @@ const ia = Ta(null), xt = {
|
|
|
2385
2386
|
threeSkuPlans: re,
|
|
2386
2387
|
children: he
|
|
2387
2388
|
}) => {
|
|
2388
|
-
const [ue, we] = B("landing"), [ne,
|
|
2389
|
-
...
|
|
2389
|
+
const [ue, we] = B("landing"), [ne, je] = B(t ?? "en"), [_e, pe] = B({
|
|
2390
|
+
...wt,
|
|
2390
2391
|
...h
|
|
2391
2392
|
}), ge = M(!0);
|
|
2392
2393
|
q(() => {
|
|
2393
2394
|
if (t) return;
|
|
2394
|
-
const fe =
|
|
2395
|
-
fe &&
|
|
2395
|
+
const fe = xt();
|
|
2396
|
+
fe && je(fe);
|
|
2396
2397
|
}, []), q(() => {
|
|
2397
2398
|
Pt(ne);
|
|
2398
2399
|
}, [ne]), q(() => {
|
|
@@ -2409,7 +2410,7 @@ const ia = Ta(null), xt = {
|
|
|
2409
2410
|
showSheet: i,
|
|
2410
2411
|
userId: c,
|
|
2411
2412
|
isGlobal: g,
|
|
2412
|
-
variant:
|
|
2413
|
+
variant: y,
|
|
2413
2414
|
initialFormValues: h,
|
|
2414
2415
|
autoOpenPlanSheet: w,
|
|
2415
2416
|
googleMapsApiKey: b,
|
|
@@ -2418,17 +2419,17 @@ const ia = Ta(null), xt = {
|
|
|
2418
2419
|
enableConsultationScheduling: N,
|
|
2419
2420
|
fetchConsultationSlots: p,
|
|
2420
2421
|
logoUrl: U,
|
|
2421
|
-
reportImageUrl:
|
|
2422
|
-
reportImagePriority:
|
|
2423
|
-
backgroundImagePriority:
|
|
2422
|
+
reportImageUrl: v,
|
|
2423
|
+
reportImagePriority: j,
|
|
2424
|
+
backgroundImagePriority: k,
|
|
2424
2425
|
universityLogoUrls: _,
|
|
2425
2426
|
sampleReportHref: S,
|
|
2426
2427
|
onViewSampleReport: te,
|
|
2427
2428
|
ctaHref: C,
|
|
2428
|
-
onCtaClick:
|
|
2429
|
-
onBack:
|
|
2430
|
-
readMoreReviewsHref:
|
|
2431
|
-
onProceed:
|
|
2429
|
+
onCtaClick: V,
|
|
2430
|
+
onBack: P,
|
|
2431
|
+
readMoreReviewsHref: J,
|
|
2432
|
+
onProceed: R,
|
|
2432
2433
|
proceedHref: E,
|
|
2433
2434
|
originalPriceLabel: se,
|
|
2434
2435
|
discountedPriceLabel: ae,
|
|
@@ -2447,7 +2448,7 @@ const ia = Ta(null), xt = {
|
|
|
2447
2448
|
i,
|
|
2448
2449
|
c,
|
|
2449
2450
|
g,
|
|
2450
|
-
|
|
2451
|
+
y,
|
|
2451
2452
|
h,
|
|
2452
2453
|
w,
|
|
2453
2454
|
b,
|
|
@@ -2456,17 +2457,17 @@ const ia = Ta(null), xt = {
|
|
|
2456
2457
|
N,
|
|
2457
2458
|
p,
|
|
2458
2459
|
U,
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2460
|
+
v,
|
|
2461
|
+
j,
|
|
2462
|
+
k,
|
|
2462
2463
|
_,
|
|
2463
2464
|
S,
|
|
2464
2465
|
te,
|
|
2465
2466
|
C,
|
|
2466
|
-
Q,
|
|
2467
|
-
x,
|
|
2468
2467
|
V,
|
|
2469
|
-
|
|
2468
|
+
P,
|
|
2469
|
+
J,
|
|
2470
|
+
R,
|
|
2470
2471
|
E,
|
|
2471
2472
|
se,
|
|
2472
2473
|
ae,
|
|
@@ -2479,15 +2480,15 @@ const ia = Ta(null), xt = {
|
|
|
2479
2480
|
K,
|
|
2480
2481
|
re
|
|
2481
2482
|
]
|
|
2482
|
-
), H =
|
|
2483
|
+
), H = Re(() => {
|
|
2483
2484
|
we("form");
|
|
2484
|
-
}, [oe.analytics]), me =
|
|
2485
|
+
}, [oe.analytics]), me = Re(() => {
|
|
2485
2486
|
we("landing"), oe.onBack?.();
|
|
2486
2487
|
}, [oe.onBack]), ie = Ee(
|
|
2487
2488
|
() => ({
|
|
2488
2489
|
view: ue,
|
|
2489
2490
|
locale: ne,
|
|
2490
|
-
setLocale:
|
|
2491
|
+
setLocale: je,
|
|
2491
2492
|
config: oe,
|
|
2492
2493
|
formValues: _e,
|
|
2493
2494
|
setFormValues: pe,
|
|
@@ -2503,7 +2504,7 @@ const ia = Ta(null), xt = {
|
|
|
2503
2504
|
function Me() {
|
|
2504
2505
|
return oa(ia);
|
|
2505
2506
|
}
|
|
2506
|
-
function
|
|
2507
|
+
function wi() {
|
|
2507
2508
|
const t = oa(ia);
|
|
2508
2509
|
if (!t)
|
|
2509
2510
|
throw new Error(
|
|
@@ -2511,10 +2512,10 @@ function Pi() {
|
|
|
2511
2512
|
);
|
|
2512
2513
|
return t;
|
|
2513
2514
|
}
|
|
2514
|
-
const
|
|
2515
|
-
header:
|
|
2516
|
-
centered:
|
|
2517
|
-
},
|
|
2515
|
+
const St = "_header_19172_1", Ct = "_centered_19172_8", ka = {
|
|
2516
|
+
header: St,
|
|
2517
|
+
centered: Ct
|
|
2518
|
+
}, Rt = ({
|
|
2518
2519
|
t,
|
|
2519
2520
|
onBack: n,
|
|
2520
2521
|
className: i = "",
|
|
@@ -2526,64 +2527,64 @@ const wt = "_header_19172_1", St = "_centered_19172_8", ya = {
|
|
|
2526
2527
|
subtitle: t("formSubtitle"),
|
|
2527
2528
|
onBack: n,
|
|
2528
2529
|
backAriaLabel: t("back"),
|
|
2529
|
-
className: `${
|
|
2530
|
+
className: `${ka.header} ${c === "center" ? ka.centered : ""} ${i}`
|
|
2530
2531
|
}
|
|
2531
|
-
), jt = "_wrap_119w3_1",
|
|
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 = {
|
|
2532
2533
|
wrap: jt,
|
|
2533
|
-
card:
|
|
2534
|
-
cardInner:
|
|
2535
|
-
field:
|
|
2536
|
-
labelRow:
|
|
2537
|
-
label:
|
|
2538
|
-
req:
|
|
2539
|
-
help:
|
|
2540
|
-
choiceRow:
|
|
2541
|
-
choiceBtn:
|
|
2542
|
-
choiceBtnActive:
|
|
2543
|
-
infoBtn:
|
|
2544
|
-
infoImg:
|
|
2545
|
-
infoWrap:
|
|
2546
|
-
tooltip:
|
|
2547
|
-
tooltipArrow:
|
|
2548
|
-
inputWrap:
|
|
2549
|
-
isdWrap:
|
|
2550
|
-
phoneInputGroup:
|
|
2551
|
-
isdSelectWrap:
|
|
2552
|
-
isdSelectTrigger:
|
|
2553
|
-
isdDropdown:
|
|
2554
|
-
isdSearchWrap:
|
|
2555
|
-
isdSearchInput:
|
|
2556
|
-
isdOption:
|
|
2557
|
-
isdOptionActive:
|
|
2558
|
-
isdCountryName:
|
|
2559
|
-
isdCountryCode:
|
|
2560
|
-
isdNoResult:
|
|
2561
|
-
suggestions:
|
|
2562
|
-
suggestionItem:
|
|
2563
|
-
suggestionMain:
|
|
2564
|
-
suggestionSecondary:
|
|
2565
|
-
suggestionsHint:
|
|
2566
|
-
timePopover:
|
|
2567
|
-
timePickerRow:
|
|
2568
|
-
timePickerSelect:
|
|
2569
|
-
timePickerColon:
|
|
2570
|
-
meridiemToggle:
|
|
2571
|
-
meridiemBtn:
|
|
2572
|
-
meridiemActive:
|
|
2573
|
-
timePopoverActions:
|
|
2574
|
-
timePopoverBtn:
|
|
2575
|
-
timePopoverOk:
|
|
2534
|
+
card: Nt,
|
|
2535
|
+
cardInner: Lt,
|
|
2536
|
+
field: Bt,
|
|
2537
|
+
labelRow: Dt,
|
|
2538
|
+
label: Et,
|
|
2539
|
+
req: It,
|
|
2540
|
+
help: Ft,
|
|
2541
|
+
choiceRow: Mt,
|
|
2542
|
+
choiceBtn: Ut,
|
|
2543
|
+
choiceBtnActive: Gt,
|
|
2544
|
+
infoBtn: Ot,
|
|
2545
|
+
infoImg: $t,
|
|
2546
|
+
infoWrap: Ht,
|
|
2547
|
+
tooltip: Wt,
|
|
2548
|
+
tooltipArrow: Kt,
|
|
2549
|
+
inputWrap: qt,
|
|
2550
|
+
isdWrap: Yt,
|
|
2551
|
+
phoneInputGroup: Vt,
|
|
2552
|
+
isdSelectWrap: Jt,
|
|
2553
|
+
isdSelectTrigger: zt,
|
|
2554
|
+
isdDropdown: Qt,
|
|
2555
|
+
isdSearchWrap: Xt,
|
|
2556
|
+
isdSearchInput: Zt,
|
|
2557
|
+
isdOption: er,
|
|
2558
|
+
isdOptionActive: ar,
|
|
2559
|
+
isdCountryName: tr,
|
|
2560
|
+
isdCountryCode: rr,
|
|
2561
|
+
isdNoResult: nr,
|
|
2562
|
+
suggestions: or,
|
|
2563
|
+
suggestionItem: ir,
|
|
2564
|
+
suggestionMain: lr,
|
|
2565
|
+
suggestionSecondary: sr,
|
|
2566
|
+
suggestionsHint: cr,
|
|
2567
|
+
timePopover: dr,
|
|
2568
|
+
timePickerRow: ur,
|
|
2569
|
+
timePickerSelect: pr,
|
|
2570
|
+
timePickerColon: mr,
|
|
2571
|
+
meridiemToggle: fr,
|
|
2572
|
+
meridiemBtn: hr,
|
|
2573
|
+
meridiemActive: gr,
|
|
2574
|
+
timePopoverActions: br,
|
|
2575
|
+
timePopoverBtn: _r,
|
|
2576
|
+
timePopoverOk: yr,
|
|
2576
2577
|
input: kr,
|
|
2577
|
-
phoneInput:
|
|
2578
|
+
phoneInput: vr,
|
|
2578
2579
|
iconBtn: Ar,
|
|
2579
|
-
iconBtnInteractive:
|
|
2580
|
-
iconImg:
|
|
2580
|
+
iconBtnInteractive: Tr,
|
|
2581
|
+
iconImg: xr,
|
|
2581
2582
|
checkboxRow: Pr,
|
|
2582
|
-
checkbox:
|
|
2583
|
-
checkboxText:
|
|
2583
|
+
checkbox: wr,
|
|
2584
|
+
checkboxText: Sr
|
|
2584
2585
|
};
|
|
2585
2586
|
let Je = null;
|
|
2586
|
-
const
|
|
2587
|
+
const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : Je || (Je = new Promise((i, c) => {
|
|
2587
2588
|
const g = document.querySelector(
|
|
2588
2589
|
'script[data-google-maps-places="true"]'
|
|
2589
2590
|
);
|
|
@@ -2594,8 +2595,8 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2594
2595
|
);
|
|
2595
2596
|
return;
|
|
2596
2597
|
}
|
|
2597
|
-
const
|
|
2598
|
-
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 = () => {
|
|
2599
2600
|
const w = Date.now(), b = () => {
|
|
2600
2601
|
if (window.google?.maps?.places) {
|
|
2601
2602
|
i();
|
|
@@ -2612,48 +2613,48 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2612
2613
|
window.setTimeout(b, 50);
|
|
2613
2614
|
};
|
|
2614
2615
|
b();
|
|
2615
|
-
},
|
|
2616
|
-
}), Je),
|
|
2617
|
-
const { apiKey: n, language: i = "en", restrictCountry: c, deferLoad: g = !1 } = t, [
|
|
2618
|
-
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);
|
|
2619
2620
|
}, [g]);
|
|
2620
2621
|
q(() => {
|
|
2621
2622
|
if (!n || !U) {
|
|
2622
2623
|
h(!1), p(null);
|
|
2623
2624
|
return;
|
|
2624
2625
|
}
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
const
|
|
2628
|
-
|
|
2629
|
-
}).catch((
|
|
2630
|
-
h(!1), p(
|
|
2626
|
+
Cr(n, i).then(() => {
|
|
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");
|
|
2631
2632
|
});
|
|
2632
2633
|
}, [n, i, U]);
|
|
2633
|
-
const te =
|
|
2634
|
-
async (
|
|
2635
|
-
if (!
|
|
2634
|
+
const te = Re(
|
|
2635
|
+
async (P) => {
|
|
2636
|
+
if (!P || P.length < 2 || !j.current) {
|
|
2636
2637
|
b([]);
|
|
2637
2638
|
return;
|
|
2638
2639
|
}
|
|
2639
2640
|
D(!0);
|
|
2640
2641
|
try {
|
|
2641
|
-
const
|
|
2642
|
-
input:
|
|
2642
|
+
const J = {
|
|
2643
|
+
input: P,
|
|
2643
2644
|
types: ["(cities)"],
|
|
2644
2645
|
sessionToken: _.current ?? void 0
|
|
2645
2646
|
};
|
|
2646
|
-
c && (
|
|
2647
|
-
const
|
|
2648
|
-
|
|
2649
|
-
|
|
2647
|
+
c && (J.componentRestrictions = { country: c });
|
|
2648
|
+
const R = await new Promise((E, se) => {
|
|
2649
|
+
j.current.getPlacePredictions(
|
|
2650
|
+
J,
|
|
2650
2651
|
(ae, G) => {
|
|
2651
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}`));
|
|
2652
2653
|
}
|
|
2653
2654
|
);
|
|
2654
2655
|
});
|
|
2655
2656
|
b(
|
|
2656
|
-
|
|
2657
|
+
R.map((E) => ({
|
|
2657
2658
|
place_id: E.place_id,
|
|
2658
2659
|
description: E.description,
|
|
2659
2660
|
structured_formatting: {
|
|
@@ -2669,15 +2670,15 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2669
2670
|
}
|
|
2670
2671
|
},
|
|
2671
2672
|
[c]
|
|
2672
|
-
), C =
|
|
2673
|
-
async (
|
|
2674
|
-
if (!
|
|
2673
|
+
), C = Re(
|
|
2674
|
+
async (P) => {
|
|
2675
|
+
if (!k.current) return null;
|
|
2675
2676
|
try {
|
|
2676
|
-
const
|
|
2677
|
+
const J = await new Promise(
|
|
2677
2678
|
(I, $) => {
|
|
2678
|
-
|
|
2679
|
+
k.current.getDetails(
|
|
2679
2680
|
{
|
|
2680
|
-
placeId:
|
|
2681
|
+
placeId: P,
|
|
2681
2682
|
fields: ["geometry", "address_components", "formatted_address"],
|
|
2682
2683
|
sessionToken: _.current ?? void 0
|
|
2683
2684
|
},
|
|
@@ -2688,13 +2689,13 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2688
2689
|
}
|
|
2689
2690
|
);
|
|
2690
2691
|
_.current = new google.maps.places.AutocompleteSessionToken();
|
|
2691
|
-
const
|
|
2692
|
+
const R = J.geometry?.location?.lat() || 0, E = J.geometry?.location?.lng() || 0;
|
|
2692
2693
|
let se = "", ae = "", G = "";
|
|
2693
|
-
return
|
|
2694
|
+
return J.address_components?.forEach((I) => {
|
|
2694
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);
|
|
2695
2696
|
}), {
|
|
2696
|
-
display_name:
|
|
2697
|
-
lat:
|
|
2697
|
+
display_name: J.formatted_address || "",
|
|
2698
|
+
lat: R,
|
|
2698
2699
|
lng: E,
|
|
2699
2700
|
city: se,
|
|
2700
2701
|
state: ae,
|
|
@@ -2705,31 +2706,31 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2705
2706
|
}
|
|
2706
2707
|
},
|
|
2707
2708
|
[]
|
|
2708
|
-
),
|
|
2709
|
+
), V = Re(() => b([]), []);
|
|
2709
2710
|
return {
|
|
2710
|
-
isLoaded:
|
|
2711
|
+
isLoaded: y,
|
|
2711
2712
|
predictions: w,
|
|
2712
2713
|
isSearching: Y,
|
|
2713
2714
|
loadError: N,
|
|
2714
2715
|
searchPlaces: te,
|
|
2715
2716
|
getPlaceDetails: C,
|
|
2716
|
-
clearPredictions:
|
|
2717
|
+
clearPredictions: V,
|
|
2717
2718
|
triggerLoad: S
|
|
2718
2719
|
// Call this to start loading Google Maps when deferred
|
|
2719
2720
|
};
|
|
2720
|
-
},
|
|
2721
|
+
}, va = (t) => typeof t == "number" && Number.isFinite(t), jr = (t) => {
|
|
2721
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;
|
|
2722
2723
|
return {
|
|
2723
2724
|
limit: n,
|
|
2724
2725
|
offset: i,
|
|
2725
2726
|
restrictCountry: t?.restrictCountry
|
|
2726
2727
|
};
|
|
2727
|
-
},
|
|
2728
|
-
const { searchLocalities: n, restrictCountry: i } = t, [c, g] = B([]), [
|
|
2728
|
+
}, Nr = (t) => {
|
|
2729
|
+
const { searchLocalities: n, restrictCountry: i } = t, [c, g] = B([]), [y, h] = B(!1), [w, b] = B(null), Y = M(0);
|
|
2729
2730
|
q(() => {
|
|
2730
2731
|
b(null);
|
|
2731
2732
|
}, [n]);
|
|
2732
|
-
const D =
|
|
2733
|
+
const D = Re(
|
|
2733
2734
|
async (p) => {
|
|
2734
2735
|
if (!p || p.length < 2 || !n) {
|
|
2735
2736
|
g([]);
|
|
@@ -2738,10 +2739,10 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2738
2739
|
const U = ++Y.current;
|
|
2739
2740
|
h(!0), b(null);
|
|
2740
2741
|
try {
|
|
2741
|
-
const
|
|
2742
|
+
const v = jr({ restrictCountry: i }), j = await n(p, v);
|
|
2742
2743
|
if (U !== Y.current) return;
|
|
2743
|
-
const
|
|
2744
|
-
(_) => !!_?.id && !!_?.description &&
|
|
2744
|
+
const k = (j || []).filter(
|
|
2745
|
+
(_) => !!_?.id && !!_?.description && va(_?.lat) && va(_?.lng)
|
|
2745
2746
|
).map((_) => ({
|
|
2746
2747
|
id: _.id,
|
|
2747
2748
|
description: _.description,
|
|
@@ -2749,19 +2750,19 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2749
2750
|
lat: _.lat,
|
|
2750
2751
|
lng: _.lng
|
|
2751
2752
|
}));
|
|
2752
|
-
g(
|
|
2753
|
-
} catch (
|
|
2753
|
+
g(k);
|
|
2754
|
+
} catch (v) {
|
|
2754
2755
|
if (U !== Y.current) return;
|
|
2755
|
-
g([]), b(
|
|
2756
|
+
g([]), b(v?.message || "Failed to fetch locations");
|
|
2756
2757
|
} finally {
|
|
2757
2758
|
U === Y.current && h(!1);
|
|
2758
2759
|
}
|
|
2759
2760
|
},
|
|
2760
2761
|
[i, n]
|
|
2761
|
-
), N =
|
|
2762
|
+
), N = Re(() => g([]), []);
|
|
2762
2763
|
return {
|
|
2763
2764
|
predictions: c,
|
|
2764
|
-
isSearching:
|
|
2765
|
+
isSearching: y,
|
|
2765
2766
|
loadError: w,
|
|
2766
2767
|
searchPlaces: D,
|
|
2767
2768
|
clearPredictions: N
|
|
@@ -2841,26 +2842,26 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2841
2842
|
{ code: "+975", country: "Bhutan" },
|
|
2842
2843
|
{ code: "+976", country: "Mongolia" },
|
|
2843
2844
|
{ code: "+977", country: "Nepal" }
|
|
2844
|
-
], 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 = ({
|
|
2845
2846
|
t,
|
|
2846
2847
|
values: n,
|
|
2847
2848
|
onChange: i,
|
|
2848
2849
|
phoneIsdCode: c,
|
|
2849
2850
|
onPhoneIsdCodeChange: g,
|
|
2850
|
-
showV1ExtraFields:
|
|
2851
|
+
showV1ExtraFields: y = !1,
|
|
2851
2852
|
analytics: h,
|
|
2852
2853
|
googleMapsApiKey: w,
|
|
2853
2854
|
atlasSearchLocalities: b,
|
|
2854
2855
|
googleMapsAutocompleteEnabled: Y,
|
|
2855
2856
|
className: D = ""
|
|
2856
2857
|
}) => {
|
|
2857
|
-
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) => {
|
|
2858
2859
|
if (r === "phone") {
|
|
2859
|
-
const
|
|
2860
|
-
|
|
2860
|
+
const z = Br(d, c, J.current);
|
|
2861
|
+
z.shouldTrack && p?.trackPhoneSectionFilled?.({ phone: z.fullPhone });
|
|
2861
2862
|
return;
|
|
2862
2863
|
}
|
|
2863
|
-
d.trim() && !
|
|
2864
|
+
d.trim() && !J.current[r] && (J.current[r] = !0, {
|
|
2864
2865
|
fullName: () => p?.trackNameSectionFilled?.(),
|
|
2865
2866
|
dateOfBirth: () => p?.trackDobFilled?.(),
|
|
2866
2867
|
birthTime: () => p?.trackTimeFilled?.(),
|
|
@@ -2874,42 +2875,42 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2874
2875
|
const $ = M(null), X = M(0), O = M(null), [Te, K] = B(!1), [re, he] = B({ hour12: 12, minute: "00", meridiem: "AM" }), ue = (r) => String(r).padStart(2, "0"), we = (r) => {
|
|
2875
2876
|
const d = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
|
|
2876
2877
|
if (!d) return r;
|
|
2877
|
-
const
|
|
2878
|
-
return `${
|
|
2878
|
+
const z = Number(d[1]), Se = d[2], $e = z >= 12 ? "PM" : "AM";
|
|
2879
|
+
return `${z % 12 === 0 ? 12 : z % 12}:${Se} ${$e}`;
|
|
2879
2880
|
}, ne = (r) => {
|
|
2880
2881
|
const d = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
|
|
2881
2882
|
if (!d) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
2882
|
-
const
|
|
2883
|
-
return { hour12:
|
|
2884
|
-
},
|
|
2885
|
-
const d = Math.min(12, Math.max(1, r.hour12)),
|
|
2883
|
+
const z = Number(d[1]), Se = d[2], $e = z >= 12 ? "PM" : "AM";
|
|
2884
|
+
return { hour12: z % 12 === 0 ? 12 : z % 12, minute: Se, meridiem: $e };
|
|
2885
|
+
}, je = (r) => {
|
|
2886
|
+
const d = Math.min(12, Math.max(1, r.hour12)), z = /^([0-5]\d)$/.test(r.minute) ? r.minute : "00";
|
|
2886
2887
|
let Se = d % 12;
|
|
2887
|
-
return r.meridiem === "PM" && (Se += 12), `${ue(Se)}:${
|
|
2888
|
+
return r.meridiem === "PM" && (Se += 12), `${ue(Se)}:${z}`;
|
|
2888
2889
|
}, _e = M(null), [pe, ge] = B(!1), oe = M(n.birthPlace ?? ""), [H, me] = B(
|
|
2889
2890
|
null
|
|
2890
|
-
), 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({
|
|
2891
2892
|
apiKey: ee ? ie : void 0,
|
|
2892
2893
|
language: "en",
|
|
2893
2894
|
restrictCountry: Ne
|
|
2894
|
-
}),
|
|
2895
|
+
}), ke = Nr({
|
|
2895
2896
|
searchLocalities: ee ? void 0 : fe,
|
|
2896
2897
|
restrictCountry: Ne
|
|
2897
|
-
}),
|
|
2898
|
+
}), Pe = ee ? ye.predictions.map((r) => ({
|
|
2898
2899
|
id: r.place_id,
|
|
2899
2900
|
description: r.description,
|
|
2900
2901
|
secondaryText: r.structured_formatting?.secondary_text,
|
|
2901
2902
|
lat: void 0,
|
|
2902
2903
|
lng: void 0
|
|
2903
|
-
})) :
|
|
2904
|
+
})) : ke.predictions.map((r) => ({
|
|
2904
2905
|
id: r.id,
|
|
2905
2906
|
description: r.description,
|
|
2906
2907
|
secondaryText: r.secondary_text,
|
|
2907
2908
|
lat: r.lat,
|
|
2908
2909
|
lng: r.lng
|
|
2909
|
-
})), 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(() => {
|
|
2910
2911
|
});
|
|
2911
2912
|
Z.current = () => {
|
|
2912
|
-
(n.birthPlace ?? "") !== oe.current &&
|
|
2913
|
+
(n.birthPlace ?? "") !== oe.current && R({
|
|
2913
2914
|
birthPlace: "",
|
|
2914
2915
|
birthPlaceLat: void 0,
|
|
2915
2916
|
birthPlaceLng: void 0
|
|
@@ -2921,13 +2922,13 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2921
2922
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
2922
2923
|
}, []), q(() => {
|
|
2923
2924
|
const r = (d) => {
|
|
2924
|
-
|
|
2925
|
+
V.current && (V.current.contains(d.target) || (S(!1), C("")));
|
|
2925
2926
|
};
|
|
2926
2927
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
2927
2928
|
}, []), q(() => {
|
|
2928
2929
|
if (!_) return;
|
|
2929
2930
|
const r = window.setTimeout(() => {
|
|
2930
|
-
|
|
2931
|
+
P.current?.focus();
|
|
2931
2932
|
}, 0);
|
|
2932
2933
|
return () => window.clearTimeout(r);
|
|
2933
2934
|
}, [_]), q(() => {
|
|
@@ -2961,10 +2962,10 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2961
2962
|
};
|
|
2962
2963
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
2963
2964
|
}, []), q(() => {
|
|
2964
|
-
const r = (
|
|
2965
|
-
|
|
2966
|
-
}, d = (
|
|
2967
|
-
|
|
2965
|
+
const r = (z) => {
|
|
2966
|
+
z.target?.closest?.("[data-info-tooltip]") == null && me(null);
|
|
2967
|
+
}, d = (z) => {
|
|
2968
|
+
z.key === "Escape" && me(null);
|
|
2968
2969
|
};
|
|
2969
2970
|
return document.addEventListener("mousedown", r), document.addEventListener("keydown", d), () => {
|
|
2970
2971
|
document.removeEventListener("mousedown", r), document.removeEventListener("keydown", d);
|
|
@@ -2990,7 +2991,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2990
2991
|
onFocus: () => p?.trackNameSectionClicked?.(),
|
|
2991
2992
|
onChange: (r) => {
|
|
2992
2993
|
const d = r.target.value;
|
|
2993
|
-
|
|
2994
|
+
R({ fullName: d }), E("fullName", d);
|
|
2994
2995
|
},
|
|
2995
2996
|
placeholder: t("formFullNamePlaceholder"),
|
|
2996
2997
|
autoComplete: "name"
|
|
@@ -3002,7 +3003,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3002
3003
|
t("formPhone"),
|
|
3003
3004
|
!U && /* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
3004
3005
|
] }) }),
|
|
3005
|
-
/* @__PURE__ */ e.jsx("div", { className: o.inputWrap, children: /* @__PURE__ */ e.jsxs("div", { className: o.isdWrap, ref:
|
|
3006
|
+
/* @__PURE__ */ e.jsx("div", { className: o.inputWrap, children: /* @__PURE__ */ e.jsxs("div", { className: o.isdWrap, ref: V, children: [
|
|
3006
3007
|
/* @__PURE__ */ e.jsxs("div", { className: o.phoneInputGroup, children: [
|
|
3007
3008
|
/* @__PURE__ */ e.jsx("div", { className: o.isdSelectWrap, children: /* @__PURE__ */ e.jsx(
|
|
3008
3009
|
"button",
|
|
@@ -3027,7 +3028,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3027
3028
|
onFocus: () => p?.trackPhoneSectionClicked?.(),
|
|
3028
3029
|
onChange: (r) => {
|
|
3029
3030
|
const d = r.target.value;
|
|
3030
|
-
|
|
3031
|
+
R({ phone: Aa(d) }), E("phone", Aa(d));
|
|
3031
3032
|
},
|
|
3032
3033
|
placeholder: t("formPhonePlaceholder"),
|
|
3033
3034
|
autoComplete: "tel",
|
|
@@ -3049,7 +3050,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3049
3050
|
/* @__PURE__ */ e.jsx("div", { className: o.isdSearchWrap, children: /* @__PURE__ */ e.jsx(
|
|
3050
3051
|
"input",
|
|
3051
3052
|
{
|
|
3052
|
-
ref:
|
|
3053
|
+
ref: P,
|
|
3053
3054
|
type: "text",
|
|
3054
3055
|
value: te,
|
|
3055
3056
|
onChange: (r) => C(r.target.value),
|
|
@@ -3080,7 +3081,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3080
3081
|
)
|
|
3081
3082
|
] }) })
|
|
3082
3083
|
] }),
|
|
3083
|
-
|
|
3084
|
+
y && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
3084
3085
|
/* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, children: [
|
|
3085
3086
|
t("formGender"),
|
|
3086
3087
|
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
@@ -3099,7 +3100,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3099
3100
|
type: "button",
|
|
3100
3101
|
className: `${o.choiceBtn} ${n.gender === "male" ? o.choiceBtnActive : ""}`,
|
|
3101
3102
|
onClick: () => {
|
|
3102
|
-
|
|
3103
|
+
R({ gender: "male" }), p?.trackGenderSelected?.({
|
|
3103
3104
|
gender: "male"
|
|
3104
3105
|
});
|
|
3105
3106
|
},
|
|
@@ -3115,7 +3116,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3115
3116
|
type: "button",
|
|
3116
3117
|
className: `${o.choiceBtn} ${n.gender === "female" ? o.choiceBtnActive : ""}`,
|
|
3117
3118
|
onClick: () => {
|
|
3118
|
-
|
|
3119
|
+
R({ gender: "female" }), p?.trackGenderSelected?.({
|
|
3119
3120
|
gender: "female"
|
|
3120
3121
|
});
|
|
3121
3122
|
},
|
|
@@ -3143,7 +3144,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3143
3144
|
value: n.email,
|
|
3144
3145
|
onFocus: () => p?.trackEmailSectionClicked?.(),
|
|
3145
3146
|
onChange: (r) => {
|
|
3146
|
-
|
|
3147
|
+
R({ email: r.target.value });
|
|
3147
3148
|
},
|
|
3148
3149
|
onBlur: se,
|
|
3149
3150
|
placeholder: t("formEmailPlaceholder"),
|
|
@@ -3201,8 +3202,8 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3201
3202
|
return `${r.getFullYear()}-${ue(r.getMonth() + 1)}-${ue(r.getDate())}`;
|
|
3202
3203
|
})(),
|
|
3203
3204
|
onChange: (r) => {
|
|
3204
|
-
const d = r.target.value,
|
|
3205
|
-
d && d > Se || (
|
|
3205
|
+
const d = r.target.value, z = /* @__PURE__ */ new Date(), Se = `${z.getFullYear()}-${ue(z.getMonth() + 1)}-${ue(z.getDate())}`;
|
|
3206
|
+
d && d > Se || (R({ dateOfBirth: d }), E("dateOfBirth", d), $.current = null);
|
|
3206
3207
|
},
|
|
3207
3208
|
onFocus: () => p?.trackDobClicked?.(),
|
|
3208
3209
|
onClick: () => be(I),
|
|
@@ -3280,7 +3281,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3280
3281
|
onFocus: () => p?.trackTimeClicked?.(),
|
|
3281
3282
|
onChange: (r) => {
|
|
3282
3283
|
const d = r.target.value;
|
|
3283
|
-
|
|
3284
|
+
R({ birthTime: d }), E("birthTime", d);
|
|
3284
3285
|
},
|
|
3285
3286
|
disabled: n.birthTimeUnknown,
|
|
3286
3287
|
placeholder: "HH:MM AM",
|
|
@@ -3382,8 +3383,8 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3382
3383
|
type: "button",
|
|
3383
3384
|
className: `${o.timePopoverBtn} ${o.timePopoverOk}`,
|
|
3384
3385
|
onClick: () => {
|
|
3385
|
-
const r =
|
|
3386
|
-
|
|
3386
|
+
const r = je(re);
|
|
3387
|
+
R({ birthTime: r }), E("birthTime", r), K(!1);
|
|
3387
3388
|
},
|
|
3388
3389
|
"aria-label": "OK",
|
|
3389
3390
|
children: /* @__PURE__ */ e.jsx(
|
|
@@ -3423,7 +3424,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3423
3424
|
type: "checkbox",
|
|
3424
3425
|
checked: n.birthTimeUnknown,
|
|
3425
3426
|
onChange: (r) => {
|
|
3426
|
-
p?.trackTimeCheckboxClicked?.(),
|
|
3427
|
+
p?.trackTimeCheckboxClicked?.(), R({
|
|
3427
3428
|
birthTimeUnknown: r.target.checked,
|
|
3428
3429
|
birthTime: r.target.checked ? "" : n.birthTime
|
|
3429
3430
|
});
|
|
@@ -3490,7 +3491,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3490
3491
|
value: n.birthPlace,
|
|
3491
3492
|
onChange: (r) => {
|
|
3492
3493
|
const d = r.target.value;
|
|
3493
|
-
|
|
3494
|
+
R({
|
|
3494
3495
|
birthPlace: d,
|
|
3495
3496
|
birthPlaceLat: void 0,
|
|
3496
3497
|
birthPlaceLng: void 0
|
|
@@ -3512,26 +3513,26 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3512
3513
|
"aria-hidden": !0
|
|
3513
3514
|
}
|
|
3514
3515
|
) }),
|
|
3515
|
-
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(
|
|
3516
3517
|
"button",
|
|
3517
3518
|
{
|
|
3518
3519
|
type: "button",
|
|
3519
3520
|
className: o.suggestionItem,
|
|
3520
3521
|
onClick: async () => {
|
|
3521
3522
|
const d = r.description;
|
|
3522
|
-
if (oe.current = d,
|
|
3523
|
+
if (oe.current = d, R({
|
|
3523
3524
|
birthPlace: d,
|
|
3524
3525
|
birthPlaceLat: r.lat,
|
|
3525
3526
|
birthPlaceLng: r.lng
|
|
3526
3527
|
}), f(), ge(!1), ee) {
|
|
3527
|
-
const
|
|
3528
|
+
const z = await ye.getPlaceDetails(
|
|
3528
3529
|
r.id
|
|
3529
3530
|
);
|
|
3530
|
-
|
|
3531
|
+
z && (oe.current = d, i({
|
|
3531
3532
|
...n,
|
|
3532
3533
|
birthPlace: d,
|
|
3533
|
-
birthPlaceLat:
|
|
3534
|
-
birthPlaceLng:
|
|
3534
|
+
birthPlaceLat: z.lat,
|
|
3535
|
+
birthPlaceLng: z.lng
|
|
3535
3536
|
}));
|
|
3536
3537
|
}
|
|
3537
3538
|
},
|
|
@@ -3542,11 +3543,11 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3542
3543
|
},
|
|
3543
3544
|
r.id
|
|
3544
3545
|
)) }),
|
|
3545
|
-
pe &&
|
|
3546
|
-
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 })
|
|
3547
3548
|
] })
|
|
3548
3549
|
] }),
|
|
3549
|
-
|
|
3550
|
+
y && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
3550
3551
|
/* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, children: [
|
|
3551
3552
|
t("formReportLanguage"),
|
|
3552
3553
|
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
@@ -3565,7 +3566,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3565
3566
|
type: "button",
|
|
3566
3567
|
className: `${o.choiceBtn} ${n.language_code === "hi" ? o.choiceBtnActive : ""}`,
|
|
3567
3568
|
onClick: () => {
|
|
3568
|
-
|
|
3569
|
+
R({ language_code: "hi" }), p?.trackLanguageOfReportSelected?.({
|
|
3569
3570
|
language: "hi"
|
|
3570
3571
|
});
|
|
3571
3572
|
},
|
|
@@ -3581,7 +3582,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3581
3582
|
type: "button",
|
|
3582
3583
|
className: `${o.choiceBtn} ${n.language_code === "en" ? o.choiceBtnActive : ""}`,
|
|
3583
3584
|
onClick: () => {
|
|
3584
|
-
|
|
3585
|
+
R({ language_code: "en" }), p?.trackLanguageOfReportSelected?.({
|
|
3585
3586
|
language: "en"
|
|
3586
3587
|
});
|
|
3587
3588
|
},
|
|
@@ -3597,7 +3598,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3597
3598
|
type: "button",
|
|
3598
3599
|
className: `${o.choiceBtn} ${n.language_code === "te" ? o.choiceBtnActive : ""}`,
|
|
3599
3600
|
onClick: () => {
|
|
3600
|
-
|
|
3601
|
+
R({ language_code: "te" }), p?.trackLanguageOfReportSelected?.({
|
|
3601
3602
|
language: "te"
|
|
3602
3603
|
});
|
|
3603
3604
|
},
|
|
@@ -3613,7 +3614,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3613
3614
|
type: "button",
|
|
3614
3615
|
className: `${o.choiceBtn} ${n.language_code === "ta" ? o.choiceBtnActive : ""}`,
|
|
3615
3616
|
onClick: () => {
|
|
3616
|
-
|
|
3617
|
+
R({ language_code: "ta" }), p?.trackLanguageOfReportSelected?.({
|
|
3617
3618
|
language: "ta"
|
|
3618
3619
|
});
|
|
3619
3620
|
},
|
|
@@ -3629,7 +3630,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3629
3630
|
type: "button",
|
|
3630
3631
|
className: `${o.choiceBtn} ${n.language_code === "kn" ? o.choiceBtnActive : ""}`,
|
|
3631
3632
|
onClick: () => {
|
|
3632
|
-
|
|
3633
|
+
R({ language_code: "kn" }), p?.trackLanguageOfReportSelected?.({
|
|
3633
3634
|
language: "kn"
|
|
3634
3635
|
});
|
|
3635
3636
|
},
|
|
@@ -3645,7 +3646,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3645
3646
|
type: "button",
|
|
3646
3647
|
className: `${o.choiceBtn} ${n.language_code === "gu" ? o.choiceBtnActive : ""}`,
|
|
3647
3648
|
onClick: () => {
|
|
3648
|
-
|
|
3649
|
+
R({ language_code: "gu" }), p?.trackLanguageOfReportSelected?.({
|
|
3649
3650
|
language: "gu"
|
|
3650
3651
|
});
|
|
3651
3652
|
},
|
|
@@ -3661,7 +3662,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3661
3662
|
type: "button",
|
|
3662
3663
|
className: `${o.choiceBtn} ${n.language_code === "mr" ? o.choiceBtnActive : ""}`,
|
|
3663
3664
|
onClick: () => {
|
|
3664
|
-
|
|
3665
|
+
R({ language_code: "mr" }), p?.trackLanguageOfReportSelected?.({
|
|
3665
3666
|
language: "mr"
|
|
3666
3667
|
});
|
|
3667
3668
|
},
|
|
@@ -3677,19 +3678,19 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3677
3678
|
] }) })
|
|
3678
3679
|
}
|
|
3679
3680
|
);
|
|
3680
|
-
},
|
|
3681
|
-
ctaButton:
|
|
3682
|
-
ctaFilled:
|
|
3683
|
-
ctaFilledContent:
|
|
3684
|
-
chevronRight:
|
|
3685
|
-
},
|
|
3681
|
+
}, Ir = "_ctaButton_rhimw_2", Fr = "_ctaFilled_rhimw_21", Mr = "_ctaFilledContent_rhimw_52", Ur = "_chevronRight_rhimw_61", Ke = {
|
|
3682
|
+
ctaButton: Ir,
|
|
3683
|
+
ctaFilled: Fr,
|
|
3684
|
+
ctaFilledContent: Mr,
|
|
3685
|
+
chevronRight: Ur
|
|
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 }) => {
|
|
3686
3687
|
const i = Me()?.config.imageComponent ?? Ye;
|
|
3687
3688
|
return /* @__PURE__ */ e.jsxs("div", { className: Fe.marqueeContent, children: [
|
|
3688
3689
|
/* @__PURE__ */ e.jsxs("span", { className: Fe.badge, children: [
|
|
3689
3690
|
/* @__PURE__ */ e.jsx(
|
|
3690
3691
|
i,
|
|
3691
3692
|
{
|
|
3692
|
-
src:
|
|
3693
|
+
src: Gr,
|
|
3693
3694
|
alt: "",
|
|
3694
3695
|
className: Fe.badgeIcon,
|
|
3695
3696
|
width: 16,
|
|
@@ -3703,7 +3704,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3703
3704
|
/* @__PURE__ */ e.jsx(
|
|
3704
3705
|
i,
|
|
3705
3706
|
{
|
|
3706
|
-
src:
|
|
3707
|
+
src: Or,
|
|
3707
3708
|
alt: "",
|
|
3708
3709
|
className: Fe.badgeIcon,
|
|
3709
3710
|
width: 16,
|
|
@@ -3717,7 +3718,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3717
3718
|
/* @__PURE__ */ e.jsx(
|
|
3718
3719
|
i,
|
|
3719
3720
|
{
|
|
3720
|
-
src:
|
|
3721
|
+
src: $r,
|
|
3721
3722
|
alt: "",
|
|
3722
3723
|
className: Fe.badgeIcon,
|
|
3723
3724
|
width: 16,
|
|
@@ -3728,11 +3729,11 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3728
3729
|
t("ctaSecurePayment")
|
|
3729
3730
|
] })
|
|
3730
3731
|
] });
|
|
3731
|
-
},
|
|
3732
|
+
}, Kr = (t) => /.+@.+\..+/.test(t), qr = (t) => /^\d{10}$/.test(t), Yr = (t, n, i) => {
|
|
3732
3733
|
if (!t.fullName.trim()) return "fullName";
|
|
3733
3734
|
if (n) {
|
|
3734
|
-
if (!
|
|
3735
|
-
} else if (!
|
|
3735
|
+
if (!Kr(t.email.trim())) return "email";
|
|
3736
|
+
} else if (!qr((t.phone ?? "").trim())) return "phone";
|
|
3736
3737
|
if (!t.dateOfBirth) return "dateOfBirth";
|
|
3737
3738
|
if (!t.birthPlace.trim()) return "birthPlace";
|
|
3738
3739
|
if (i) {
|
|
@@ -3740,13 +3741,13 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3740
3741
|
if (!t.language_code) return "language_code";
|
|
3741
3742
|
}
|
|
3742
3743
|
return !t.birthTimeUnknown && !t.birthTime ? "birthTime" : null;
|
|
3743
|
-
},
|
|
3744
|
+
}, Vr = ({
|
|
3744
3745
|
t,
|
|
3745
3746
|
values: n,
|
|
3746
3747
|
phoneIsdCode: i,
|
|
3747
3748
|
requireV1ExtraFields: c = !1,
|
|
3748
3749
|
onValidationFailed: g,
|
|
3749
|
-
onProceed:
|
|
3750
|
+
onProceed: y,
|
|
3750
3751
|
onProceedGuidance: h,
|
|
3751
3752
|
href: w,
|
|
3752
3753
|
analytics: b,
|
|
@@ -3755,40 +3756,40 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3755
3756
|
discountPillLabel: N,
|
|
3756
3757
|
showPlanSheet: p,
|
|
3757
3758
|
confirmPlan: U,
|
|
3758
|
-
planSheetOpen:
|
|
3759
|
-
selectedPlan:
|
|
3759
|
+
planSheetOpen: v,
|
|
3760
|
+
selectedPlan: j
|
|
3760
3761
|
}) => {
|
|
3761
|
-
const
|
|
3762
|
-
() =>
|
|
3762
|
+
const k = Me(), _ = k?.config.isGlobal ?? !0, S = k?.config?.variant, te = Ee(
|
|
3763
|
+
() => Yr(n, _, c),
|
|
3763
3764
|
[n, _, c]
|
|
3764
|
-
), C = te === null,
|
|
3765
|
+
), C = te === null, V = S === "v1" && k?.config?.showSheet, P = _ ? D ?? t("formDiscountedPrice") : V ? "" : "₹499", J = k?.config.imageComponent ?? Ye, R = (se) => {
|
|
3765
3766
|
if (se.preventDefault(), S === "v1" && !C && b?.trackKundliDetailedClicked?.(), !C) {
|
|
3766
3767
|
te && g?.(te);
|
|
3767
3768
|
return;
|
|
3768
3769
|
}
|
|
3769
|
-
const ae = !!h && S === "v1" &&
|
|
3770
|
+
const ae = !!h && S === "v1" && j?.id === ja, G = (n.phone ?? "").trim(), I = {
|
|
3770
3771
|
...n,
|
|
3771
3772
|
phone: G && `${i}-${G}`
|
|
3772
3773
|
};
|
|
3773
|
-
if (
|
|
3774
|
-
|
|
3774
|
+
if (V) {
|
|
3775
|
+
v ? U?.() : p?.(I);
|
|
3775
3776
|
return;
|
|
3776
3777
|
}
|
|
3777
|
-
b?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), ae ? h(I) :
|
|
3778
|
+
b?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), ae ? h(I) : y?.(I);
|
|
3778
3779
|
}, E = /* @__PURE__ */ e.jsx(
|
|
3779
3780
|
za,
|
|
3780
3781
|
{
|
|
3781
3782
|
href: w,
|
|
3782
3783
|
disabled: S === "v1" ? !1 : !C,
|
|
3783
|
-
onClick:
|
|
3784
|
+
onClick: R,
|
|
3784
3785
|
"aria-label": t("formPriceAria"),
|
|
3785
3786
|
className: S === "v1" && C ? Ke.ctaFilled : S === "v1" ? Ke.ctaButton : void 0,
|
|
3786
3787
|
children: S === "v1" ? C ? /* @__PURE__ */ e.jsxs("span", { className: Ke.ctaFilledContent, children: [
|
|
3787
|
-
|
|
3788
|
+
V ? t("selectPackage") : v && j ? `${t("proceedWithPlan")}${j.price}` : `${t("formProceed")} ${P}`,
|
|
3788
3789
|
/* @__PURE__ */ e.jsx(
|
|
3789
|
-
|
|
3790
|
+
J,
|
|
3790
3791
|
{
|
|
3791
|
-
src:
|
|
3792
|
+
src: Hr,
|
|
3792
3793
|
alt: "",
|
|
3793
3794
|
className: Ke.chevronRight,
|
|
3794
3795
|
width: 20,
|
|
@@ -3799,7 +3800,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3799
3800
|
] }) : t("formCtaDefault") : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3800
3801
|
t("formProceed"),
|
|
3801
3802
|
" ",
|
|
3802
|
-
|
|
3803
|
+
P
|
|
3803
3804
|
] })
|
|
3804
3805
|
}
|
|
3805
3806
|
);
|
|
@@ -3807,17 +3808,17 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3807
3808
|
Qa,
|
|
3808
3809
|
{
|
|
3809
3810
|
className: `${Ke.footerContainer} ${Y}`,
|
|
3810
|
-
marquee: /* @__PURE__ */ e.jsx(Xa, { children: /* @__PURE__ */ e.jsx(
|
|
3811
|
+
marquee: /* @__PURE__ */ e.jsx(Xa, { children: /* @__PURE__ */ e.jsx(Wr, { t }) }),
|
|
3811
3812
|
children: E
|
|
3812
3813
|
}
|
|
3813
3814
|
);
|
|
3814
|
-
},
|
|
3815
|
+
}, Jr = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", zr = ({
|
|
3815
3816
|
t,
|
|
3816
3817
|
languageSelector: n,
|
|
3817
|
-
logoUrl: i =
|
|
3818
|
+
logoUrl: i = Jr,
|
|
3818
3819
|
className: c = ""
|
|
3819
3820
|
}) => {
|
|
3820
|
-
const g = Me(),
|
|
3821
|
+
const g = Me(), y = g?.config.isGlobal ?? !0, h = n != null && !y;
|
|
3821
3822
|
return /* @__PURE__ */ e.jsx(
|
|
3822
3823
|
Za,
|
|
3823
3824
|
{
|
|
@@ -3838,7 +3839,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3838
3839
|
strokeLinecap: "round",
|
|
3839
3840
|
strokeLinejoin: "round"
|
|
3840
3841
|
}
|
|
3841
|
-
) }),
|
|
3842
|
+
) }), Qr = () => /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
3842
3843
|
"path",
|
|
3843
3844
|
{
|
|
3844
3845
|
d: "M4.5 4.5l7 7M11.5 4.5l-7 7",
|
|
@@ -3846,10 +3847,10 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3846
3847
|
strokeWidth: "1.8",
|
|
3847
3848
|
strokeLinecap: "round"
|
|
3848
3849
|
}
|
|
3849
|
-
) }), sa = () => /* @__PURE__ */ e.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx("path", { d: "M15 18l-6-6 6-6" }) }),
|
|
3850
|
+
) }), sa = () => /* @__PURE__ */ e.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx("path", { d: "M15 18l-6-6 6-6" }) }), Xr = () => /* @__PURE__ */ e.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx("path", { d: "M6 9l6 6 6-6" }) }), Zr = () => /* @__PURE__ */ e.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: [
|
|
3850
3851
|
/* @__PURE__ */ e.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
3851
3852
|
/* @__PURE__ */ e.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
3852
|
-
] }),
|
|
3853
|
+
] }), en = () => /* @__PURE__ */ e.jsx(
|
|
3853
3854
|
"img",
|
|
3854
3855
|
{
|
|
3855
3856
|
src: "https://srm-cdn.a4b.io/yoda/1785316603029.svg",
|
|
@@ -3858,7 +3859,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3858
3859
|
alt: "",
|
|
3859
3860
|
"aria-hidden": !0
|
|
3860
3861
|
}
|
|
3861
|
-
),
|
|
3862
|
+
), an = () => /* @__PURE__ */ e.jsx(
|
|
3862
3863
|
"img",
|
|
3863
3864
|
{
|
|
3864
3865
|
src: "https://srm-cdn.a4b.io/yoda/1785316621747.svg",
|
|
@@ -3867,7 +3868,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3867
3868
|
alt: "",
|
|
3868
3869
|
"aria-hidden": !0
|
|
3869
3870
|
}
|
|
3870
|
-
),
|
|
3871
|
+
), tn = () => /* @__PURE__ */ e.jsx(
|
|
3871
3872
|
"img",
|
|
3872
3873
|
{
|
|
3873
3874
|
src: "https://srm-cdn.a4b.io/yoda/1785316635953.svg",
|
|
@@ -3876,57 +3877,57 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3876
3877
|
alt: "",
|
|
3877
3878
|
"aria-hidden": !0
|
|
3878
3879
|
}
|
|
3879
|
-
),
|
|
3880
|
+
), rn = () => /* @__PURE__ */ e.jsxs("svg", { width: "40", height: "40", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: [
|
|
3880
3881
|
/* @__PURE__ */ e.jsx("rect", { x: "3", y: "4.5", width: "18", height: "16", rx: "3", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
3881
3882
|
/* @__PURE__ */ e.jsx("path", { d: "M3 9.5h18", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
3882
3883
|
/* @__PURE__ */ e.jsx("path", { d: "M8 2.5v4M16 2.5v4", stroke: "#D1D5DB", strokeWidth: "1.6", strokeLinecap: "round" }),
|
|
3883
3884
|
/* @__PURE__ */ e.jsx("path", { d: "M7.5 20.5L17 6", stroke: "#9CA3AF", strokeWidth: "1.6", strokeLinecap: "round" })
|
|
3884
|
-
] }),
|
|
3885
|
-
overlay:
|
|
3886
|
-
sheet:
|
|
3887
|
-
sheetFullScreen:
|
|
3888
|
-
headerFull:
|
|
3889
|
-
titleFull:
|
|
3890
|
-
header:
|
|
3891
|
-
backBtn:
|
|
3892
|
-
title:
|
|
3893
|
-
plansContainer:
|
|
3894
|
-
planCard:
|
|
3895
|
-
withBadgeSpacing:
|
|
3896
|
-
planCardSelected:
|
|
3897
|
-
planCardPopular:
|
|
3898
|
-
popularBadge:
|
|
3899
|
-
planCardInner:
|
|
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
|
+
overlay: nn,
|
|
3887
|
+
sheet: on,
|
|
3888
|
+
sheetFullScreen: ln,
|
|
3889
|
+
headerFull: sn,
|
|
3890
|
+
titleFull: cn,
|
|
3891
|
+
header: dn,
|
|
3892
|
+
backBtn: un,
|
|
3893
|
+
title: pn,
|
|
3894
|
+
plansContainer: mn,
|
|
3895
|
+
planCard: fn,
|
|
3896
|
+
withBadgeSpacing: hn,
|
|
3897
|
+
planCardSelected: gn,
|
|
3898
|
+
planCardPopular: bn,
|
|
3899
|
+
popularBadge: _n,
|
|
3900
|
+
planCardInner: yn,
|
|
3900
3901
|
planTitleRow: kn,
|
|
3901
|
-
planTitle:
|
|
3902
|
+
planTitle: vn,
|
|
3902
3903
|
radioCircle: An,
|
|
3903
|
-
radioChecked:
|
|
3904
|
-
radioInner:
|
|
3904
|
+
radioChecked: Tn,
|
|
3905
|
+
radioInner: xn,
|
|
3905
3906
|
priceRow: Pn,
|
|
3906
|
-
price:
|
|
3907
|
-
originalPrice:
|
|
3908
|
-
savingsBadge:
|
|
3909
|
-
featureList:
|
|
3907
|
+
price: wn,
|
|
3908
|
+
originalPrice: Sn,
|
|
3909
|
+
savingsBadge: Cn,
|
|
3910
|
+
featureList: Rn,
|
|
3910
3911
|
featureItem: jn,
|
|
3911
|
-
featureIcon:
|
|
3912
|
-
featureText:
|
|
3913
|
-
astrologerHeading:
|
|
3914
|
-
astrologerList:
|
|
3915
|
-
astrologerCard:
|
|
3916
|
-
astrologerAvatar:
|
|
3917
|
-
astrologerAvatarPlaceholder:
|
|
3918
|
-
astrologerTop:
|
|
3919
|
-
astrologerBasicInfo:
|
|
3920
|
-
astrologerName:
|
|
3921
|
-
astrologerExp:
|
|
3922
|
-
astrologerDivider:
|
|
3923
|
-
planDivider:
|
|
3924
|
-
astrologerCertList:
|
|
3925
|
-
astrologerCertItem:
|
|
3926
|
-
bullet:
|
|
3927
|
-
footer:
|
|
3928
|
-
proceedBtn:
|
|
3929
|
-
},
|
|
3912
|
+
featureIcon: Nn,
|
|
3913
|
+
featureText: Ln,
|
|
3914
|
+
astrologerHeading: Bn,
|
|
3915
|
+
astrologerList: Dn,
|
|
3916
|
+
astrologerCard: En,
|
|
3917
|
+
astrologerAvatar: In,
|
|
3918
|
+
astrologerAvatarPlaceholder: Fn,
|
|
3919
|
+
astrologerTop: Mn,
|
|
3920
|
+
astrologerBasicInfo: Un,
|
|
3921
|
+
astrologerName: Gn,
|
|
3922
|
+
astrologerExp: On,
|
|
3923
|
+
astrologerDivider: $n,
|
|
3924
|
+
planDivider: Hn,
|
|
3925
|
+
astrologerCertList: Wn,
|
|
3926
|
+
astrologerCertItem: Kn,
|
|
3927
|
+
bullet: qn,
|
|
3928
|
+
footer: Yn,
|
|
3929
|
+
proceedBtn: Vn
|
|
3930
|
+
}, Jn = ({ title: t, onBack: n }) => /* @__PURE__ */ e.jsxs("div", { className: T.header, children: [
|
|
3930
3931
|
/* @__PURE__ */ e.jsx(
|
|
3931
3932
|
"button",
|
|
3932
3933
|
{
|
|
@@ -3938,8 +3939,8 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3938
3939
|
}
|
|
3939
3940
|
),
|
|
3940
3941
|
/* @__PURE__ */ e.jsx("h2", { className: T.title, children: t })
|
|
3941
|
-
] }),
|
|
3942
|
-
/* @__PURE__ */ e.jsx("span", { className: T.featureIcon, children: i.included ? /* @__PURE__ */ e.jsx(Na, {}) : /* @__PURE__ */ e.jsx(
|
|
3942
|
+
] }), zn = ({ features: t, t: n }) => /* @__PURE__ */ e.jsx("ul", { className: T.featureList, "aria-label": "Plan features", children: t.map((i, c) => /* @__PURE__ */ e.jsxs("li", { className: T.featureItem, children: [
|
|
3943
|
+
/* @__PURE__ */ e.jsx("span", { className: T.featureIcon, children: i.included ? /* @__PURE__ */ e.jsx(Na, {}) : /* @__PURE__ */ e.jsx(Qr, {}) }),
|
|
3943
3944
|
/* @__PURE__ */ e.jsx(
|
|
3944
3945
|
"span",
|
|
3945
3946
|
{
|
|
@@ -3947,7 +3948,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3947
3948
|
children: n?.(i.text) ?? i.text
|
|
3948
3949
|
}
|
|
3949
3950
|
)
|
|
3950
|
-
] }, c)) }),
|
|
3951
|
+
] }, c)) }), Qn = ({ astrologer: t, t: n }) => /* @__PURE__ */ e.jsxs("div", { className: T.astrologerCard, children: [
|
|
3951
3952
|
/* @__PURE__ */ e.jsxs("div", { className: T.astrologerTop, children: [
|
|
3952
3953
|
/* @__PURE__ */ e.jsx("div", { className: T.astrologerAvatar, "aria-hidden": !0, children: t.imageUrl ? /* @__PURE__ */ e.jsx("img", { src: t.imageUrl, alt: n?.(t.name) ?? t.name, width: 40, height: 40 }) : /* @__PURE__ */ e.jsx("span", { className: T.astrologerAvatarPlaceholder, children: t.name.charAt(0) }) }),
|
|
3953
3954
|
/* @__PURE__ */ e.jsxs("div", { className: T.astrologerBasicInfo, children: [
|
|
@@ -3961,11 +3962,11 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3961
3962
|
" ",
|
|
3962
3963
|
n?.(i) ?? i
|
|
3963
3964
|
] }, c)) })
|
|
3964
|
-
] }),
|
|
3965
|
-
/* @__PURE__ */ e.jsx(
|
|
3965
|
+
] }), Xn = ({ label: t }) => /* @__PURE__ */ e.jsxs("div", { className: T.popularBadge, "aria-label": t, children: [
|
|
3966
|
+
/* @__PURE__ */ e.jsx(Zr, {}),
|
|
3966
3967
|
/* @__PURE__ */ e.jsx("span", { children: t })
|
|
3967
|
-
] }),
|
|
3968
|
-
const g = () => i(t.id),
|
|
3968
|
+
] }), Zn = ({ plan: t, isSelected: n, onSelect: i, t: c }) => {
|
|
3969
|
+
const g = () => i(t.id), y = (h) => {
|
|
3969
3970
|
(h.key === " " || h.key === "Enter") && (h.preventDefault(), i(t.id));
|
|
3970
3971
|
};
|
|
3971
3972
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -3980,10 +3981,10 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3980
3981
|
role: "radio",
|
|
3981
3982
|
"aria-checked": n,
|
|
3982
3983
|
tabIndex: 0,
|
|
3983
|
-
onKeyDown:
|
|
3984
|
+
onKeyDown: y,
|
|
3984
3985
|
"data-plan-id": t.id,
|
|
3985
3986
|
children: [
|
|
3986
|
-
t.badge && /* @__PURE__ */ e.jsx(
|
|
3987
|
+
t.badge && /* @__PURE__ */ e.jsx(Xn, { label: c?.(t.badge) ?? t.badge }),
|
|
3987
3988
|
/* @__PURE__ */ e.jsxs("div", { className: T.planCardInner, children: [
|
|
3988
3989
|
/* @__PURE__ */ e.jsxs("div", { className: `${T.planTitleRow} ${t.badge ? T.withBadgeSpacing : ""}`, children: [
|
|
3989
3990
|
/* @__PURE__ */ e.jsx("span", { className: T.planTitle, children: c?.(t.title) ?? t.title }),
|
|
@@ -4001,11 +4002,11 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4001
4002
|
t.originalPrice && /* @__PURE__ */ e.jsx("span", { className: T.originalPrice, children: t.originalPrice }),
|
|
4002
4003
|
t.savingsLabel && /* @__PURE__ */ e.jsx("span", { className: T.savingsBadge, children: c?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
|
|
4003
4004
|
] }),
|
|
4004
|
-
/* @__PURE__ */ e.jsx(
|
|
4005
|
+
/* @__PURE__ */ e.jsx(zn, { features: t.features, t: c }),
|
|
4005
4006
|
t.astrologers && /* @__PURE__ */ e.jsx("div", { className: T.planDivider }),
|
|
4006
4007
|
t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4007
4008
|
/* @__PURE__ */ e.jsx("p", { className: T.astrologerHeading, children: c?.("planAstrologerHeading") ?? "We will match you with astrologer who speaks your language" }),
|
|
4008
|
-
/* @__PURE__ */ e.jsx("div", { className: T.astrologerList, role: "list", children: t.astrologers.map((h, w) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(
|
|
4009
|
+
/* @__PURE__ */ e.jsx("div", { className: T.astrologerList, role: "list", children: t.astrologers.map((h, w) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(Qn, { astrologer: h, t: c }) }, w)) })
|
|
4009
4010
|
] })
|
|
4010
4011
|
] })
|
|
4011
4012
|
]
|
|
@@ -4016,19 +4017,19 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4016
4017
|
if (!n) return t;
|
|
4017
4018
|
const i = Number(n[1]), c = n[2], g = i >= 12 ? "PM" : "AM";
|
|
4018
4019
|
return `${i % 12 || 12}:${c} ${g}`;
|
|
4019
|
-
},
|
|
4020
|
+
}, eo = (t, n = /* @__PURE__ */ new Date()) => {
|
|
4020
4021
|
const i = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], c = /* @__PURE__ */ new Date(`${t}T00:00:00`);
|
|
4021
4022
|
if (Number.isNaN(c.getTime()))
|
|
4022
4023
|
return { id: t, dayLabel: t, dayNum: "" };
|
|
4023
|
-
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(
|
|
4024
4025
|
(g(c) - g(n)) / (1e3 * 60 * 60 * 24)
|
|
4025
|
-
), h =
|
|
4026
|
+
), h = y === 0 ? "Today" : y === 1 ? "Tomorrow" : i[c.getDay()];
|
|
4026
4027
|
return { id: t, dayLabel: h, dayNum: String(c.getDate()) };
|
|
4027
|
-
},
|
|
4028
|
+
}, ao = [
|
|
4028
4029
|
"morning",
|
|
4029
4030
|
"afternoon",
|
|
4030
4031
|
"evening"
|
|
4031
|
-
],
|
|
4032
|
+
], to = [
|
|
4032
4033
|
{ id: "career_work", labelKey: "planTopicCareerWork", label: "Career & work" },
|
|
4033
4034
|
{ id: "health_wellbeing", labelKey: "planTopicHealthWellbeing", label: "Health & wellbeing" },
|
|
4034
4035
|
{ id: "love_marriage", labelKey: "planTopicLoveMarriage", label: "Love & marriage" },
|
|
@@ -4041,7 +4042,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4041
4042
|
{ code: "gu", labelKey: "formReportLanguageGujarati", label: "Gujarati" },
|
|
4042
4043
|
{ code: "mr", labelKey: "formReportLanguageMarathi", label: "Marathi" },
|
|
4043
4044
|
{ code: "ta", labelKey: "formReportLanguageTamil", label: "Tamil" }
|
|
4044
|
-
],
|
|
4045
|
+
], ro = {
|
|
4045
4046
|
en: ["hi", "en"],
|
|
4046
4047
|
hi: ["hi", "en"],
|
|
4047
4048
|
te: ["te", "en"],
|
|
@@ -4049,7 +4050,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4049
4050
|
gu: ["gu", "en"],
|
|
4050
4051
|
mr: ["mr", "hi"],
|
|
4051
4052
|
ta: ["ta", "en"]
|
|
4052
|
-
},
|
|
4053
|
+
}, no = {
|
|
4053
4054
|
en: ["en", "hi"],
|
|
4054
4055
|
hi: ["hi", "en"],
|
|
4055
4056
|
te: ["te", "en"],
|
|
@@ -4057,106 +4058,106 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4057
4058
|
gu: ["gu", "en"],
|
|
4058
4059
|
mr: ["mr", "en"],
|
|
4059
4060
|
ta: ["ta", "en"]
|
|
4060
|
-
}, La = (t) => !!t?.days?.some((n) => n.has_availability && n.slots.length > 0),
|
|
4061
|
-
const c = i ?
|
|
4062
|
-
(b) => b !== g && b !==
|
|
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, y] = c[n || "en"] ?? c.en, h = qe.map((b) => b.code).filter(
|
|
4063
|
+
(b) => b !== g && b !== y
|
|
4063
4064
|
);
|
|
4064
|
-
return [g,
|
|
4065
|
-
},
|
|
4066
|
-
overlay:
|
|
4067
|
-
sheet:
|
|
4068
|
-
content:
|
|
4069
|
-
header:
|
|
4070
|
-
backBtn:
|
|
4071
|
-
title:
|
|
4072
|
-
languageRow:
|
|
4073
|
-
languageLabel:
|
|
4074
|
-
languageDropdown:
|
|
4075
|
-
languageDropdownBtn:
|
|
4076
|
-
languageMenu:
|
|
4077
|
-
languageMenuItem:
|
|
4078
|
-
languageMenuItemSelected:
|
|
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
|
+
overlay: io,
|
|
4068
|
+
sheet: lo,
|
|
4069
|
+
content: so,
|
|
4070
|
+
header: co,
|
|
4071
|
+
backBtn: uo,
|
|
4072
|
+
title: po,
|
|
4073
|
+
languageRow: mo,
|
|
4074
|
+
languageLabel: fo,
|
|
4075
|
+
languageDropdown: ho,
|
|
4076
|
+
languageDropdownBtn: go,
|
|
4077
|
+
languageMenu: bo,
|
|
4078
|
+
languageMenuItem: _o,
|
|
4079
|
+
languageMenuItemSelected: yo,
|
|
4079
4080
|
languageDivider: ko,
|
|
4080
|
-
reportReadyBanner:
|
|
4081
|
+
reportReadyBanner: vo,
|
|
4081
4082
|
reportReadyDuration: Ao,
|
|
4082
|
-
trustRow:
|
|
4083
|
-
trustAvatars:
|
|
4083
|
+
trustRow: To,
|
|
4084
|
+
trustAvatars: xo,
|
|
4084
4085
|
trustText: Po,
|
|
4085
|
-
sectionHeading:
|
|
4086
|
-
dateTabs:
|
|
4087
|
-
dateTabIndicator:
|
|
4088
|
-
dateTab:
|
|
4086
|
+
sectionHeading: wo,
|
|
4087
|
+
dateTabs: So,
|
|
4088
|
+
dateTabIndicator: Co,
|
|
4089
|
+
dateTab: Ro,
|
|
4089
4090
|
dateTabDivider: jo,
|
|
4090
|
-
dateTabSelected:
|
|
4091
|
-
dateTabLabel:
|
|
4092
|
-
dateTabNum:
|
|
4093
|
-
periodTabs:
|
|
4094
|
-
periodTabIndicator:
|
|
4095
|
-
periodTab:
|
|
4096
|
-
periodTabSelected:
|
|
4097
|
-
timeGrid:
|
|
4098
|
-
emptyState:
|
|
4099
|
-
timeSlot:
|
|
4100
|
-
timeSlotSelected:
|
|
4101
|
-
topicGrid:
|
|
4102
|
-
topicChip:
|
|
4103
|
-
topicChipSelected:
|
|
4104
|
-
stateMessage:
|
|
4105
|
-
emptyStateIcon:
|
|
4106
|
-
emptyStateTitle:
|
|
4107
|
-
emptyStateSubtitle:
|
|
4108
|
-
loadingWrap:
|
|
4109
|
-
skeletonShimmer:
|
|
4110
|
-
skeletonDateTabs:
|
|
4111
|
-
skeletonDateTab:
|
|
4112
|
-
skeletonPeriodTabs:
|
|
4113
|
-
skeletonPeriodTab:
|
|
4114
|
-
skeletonTimeGrid:
|
|
4115
|
-
skeletonTimeSlot:
|
|
4116
|
-
retryBtn:
|
|
4117
|
-
footer:
|
|
4118
|
-
proceedBtn:
|
|
4119
|
-
proceedBtnDisabled:
|
|
4120
|
-
}, ii = {
|
|
4121
|
-
morning: Zr,
|
|
4122
|
-
afternoon: en,
|
|
4123
|
-
evening: an
|
|
4091
|
+
dateTabSelected: No,
|
|
4092
|
+
dateTabLabel: Lo,
|
|
4093
|
+
dateTabNum: Bo,
|
|
4094
|
+
periodTabs: Do,
|
|
4095
|
+
periodTabIndicator: Eo,
|
|
4096
|
+
periodTab: Io,
|
|
4097
|
+
periodTabSelected: Fo,
|
|
4098
|
+
timeGrid: Mo,
|
|
4099
|
+
emptyState: Uo,
|
|
4100
|
+
timeSlot: Go,
|
|
4101
|
+
timeSlotSelected: Oo,
|
|
4102
|
+
topicGrid: $o,
|
|
4103
|
+
topicChip: Ho,
|
|
4104
|
+
topicChipSelected: Wo,
|
|
4105
|
+
stateMessage: Ko,
|
|
4106
|
+
emptyStateIcon: qo,
|
|
4107
|
+
emptyStateTitle: Yo,
|
|
4108
|
+
emptyStateSubtitle: Vo,
|
|
4109
|
+
loadingWrap: Jo,
|
|
4110
|
+
skeletonShimmer: zo,
|
|
4111
|
+
skeletonDateTabs: Qo,
|
|
4112
|
+
skeletonDateTab: Xo,
|
|
4113
|
+
skeletonPeriodTabs: Zo,
|
|
4114
|
+
skeletonPeriodTab: ei,
|
|
4115
|
+
skeletonTimeGrid: ai,
|
|
4116
|
+
skeletonTimeSlot: ti,
|
|
4117
|
+
retryBtn: ri,
|
|
4118
|
+
footer: ni,
|
|
4119
|
+
proceedBtn: oi,
|
|
4120
|
+
proceedBtnDisabled: ii
|
|
4124
4121
|
}, li = {
|
|
4122
|
+
morning: en,
|
|
4123
|
+
afternoon: an,
|
|
4124
|
+
evening: tn
|
|
4125
|
+
}, si = {
|
|
4125
4126
|
morning: "planPeriodMorning",
|
|
4126
4127
|
afternoon: "planPeriodAfternoon",
|
|
4127
4128
|
evening: "planPeriodEvening"
|
|
4128
|
-
}, ta = (t) => qe.find((n) => n.code === t)?.label ?? t,
|
|
4129
|
+
}, ta = (t) => qe.find((n) => n.code === t)?.label ?? t, ci = (t) => {
|
|
4129
4130
|
const n = t.match(/([+-]\d{2}:\d{2})$/);
|
|
4130
4131
|
return n ? `GMT${n[1]}` : t.endsWith("Z") ? "GMT+00:00" : "";
|
|
4131
|
-
},
|
|
4132
|
+
}, di = ({
|
|
4132
4133
|
onProceed: t,
|
|
4133
4134
|
astrologers: n,
|
|
4134
4135
|
t: i,
|
|
4135
4136
|
analytics: c,
|
|
4136
4137
|
reportLanguage: g,
|
|
4137
|
-
isPostPayment:
|
|
4138
|
+
isPostPayment: y = !1,
|
|
4138
4139
|
showGuidanceTopic: h,
|
|
4139
4140
|
hideFooter: w = !1,
|
|
4140
4141
|
onStateChange: b
|
|
4141
4142
|
}) => {
|
|
4142
|
-
const Y = h ?? !
|
|
4143
|
-
() => C[
|
|
4144
|
-
[C,
|
|
4145
|
-
), [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(
|
|
4146
4147
|
{}
|
|
4147
4148
|
), [ge, oe] = B(null), H = Ee(
|
|
4148
4149
|
() => ae.filter((l) => l.has_availability && l.slots.length > 0),
|
|
4149
4150
|
[ae]
|
|
4150
|
-
), me =
|
|
4151
|
+
), me = Re(() => {
|
|
4151
4152
|
p && (_(!0), te(!1), p().then((l) => {
|
|
4152
|
-
const f = l ?? {}, Z =
|
|
4153
|
+
const f = l ?? {}, Z = oo(
|
|
4153
4154
|
f,
|
|
4154
|
-
|
|
4155
|
+
v,
|
|
4155
4156
|
U
|
|
4156
4157
|
);
|
|
4157
|
-
|
|
4158
|
+
V(f), J(Z), c?.trackConsultationLanguageDefaultSelected?.({
|
|
4158
4159
|
language: ta(Z),
|
|
4159
|
-
status:
|
|
4160
|
+
status: j
|
|
4160
4161
|
});
|
|
4161
4162
|
const be = (f[Z]?.days ?? []).filter(
|
|
4162
4163
|
(r) => r.has_availability && r.slots.length > 0
|
|
@@ -4164,21 +4165,21 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4164
4165
|
c?.trackAstrologerAvailabilityServed?.({
|
|
4165
4166
|
astrologers_shown: n.map((r) => r.name),
|
|
4166
4167
|
dates_available_count: be,
|
|
4167
|
-
status:
|
|
4168
|
+
status: j
|
|
4168
4169
|
});
|
|
4169
4170
|
}).catch(() => {
|
|
4170
4171
|
te(!0);
|
|
4171
4172
|
}).finally(() => _(!1)));
|
|
4172
|
-
}, [p, U,
|
|
4173
|
+
}, [p, U, v, c, n, j]);
|
|
4173
4174
|
q(() => {
|
|
4174
4175
|
I(""), E(!1), me();
|
|
4175
4176
|
}, []), q(() => {
|
|
4176
|
-
if (!
|
|
4177
|
+
if (!R) return;
|
|
4177
4178
|
const l = (f) => {
|
|
4178
4179
|
se.current && !se.current.contains(f.target) && E(!1);
|
|
4179
4180
|
};
|
|
4180
4181
|
return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
|
|
4181
|
-
}, [
|
|
4182
|
+
}, [R]), q(() => {
|
|
4182
4183
|
if (!H.length) {
|
|
4183
4184
|
X(""), re(null);
|
|
4184
4185
|
return;
|
|
@@ -4186,7 +4187,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4186
4187
|
const l = H[0];
|
|
4187
4188
|
H.some((f) => f.date === $) || c?.trackConsultationDateDefaultSelected?.({
|
|
4188
4189
|
date: l.date,
|
|
4189
|
-
status:
|
|
4190
|
+
status: j
|
|
4190
4191
|
}), X(
|
|
4191
4192
|
(f) => H.some((Z) => Z.date === f) ? f : l.date
|
|
4192
4193
|
);
|
|
@@ -4197,7 +4198,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4197
4198
|
), fe = Ee(() => {
|
|
4198
4199
|
if (!ie) return [];
|
|
4199
4200
|
const l = new Set(ie.slots.map((f) => f.period));
|
|
4200
|
-
return
|
|
4201
|
+
return ao.filter((f) => l.has(f));
|
|
4201
4202
|
}, [ie]);
|
|
4202
4203
|
q(() => {
|
|
4203
4204
|
if (!fe.length) {
|
|
@@ -4213,11 +4214,11 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4213
4214
|
const l = () => {
|
|
4214
4215
|
const f = ue.current, Z = we.current[$];
|
|
4215
4216
|
if (!f || !Z) {
|
|
4216
|
-
|
|
4217
|
+
je(null);
|
|
4217
4218
|
return;
|
|
4218
4219
|
}
|
|
4219
4220
|
const be = f.getBoundingClientRect(), r = Z.getBoundingClientRect();
|
|
4220
|
-
|
|
4221
|
+
je({
|
|
4221
4222
|
left: r.left - be.left,
|
|
4222
4223
|
top: r.top - be.top,
|
|
4223
4224
|
width: r.width,
|
|
@@ -4248,8 +4249,8 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4248
4249
|
const f = ee[0];
|
|
4249
4250
|
c?.trackConsultationTimeDefaultSelected?.({
|
|
4250
4251
|
time: aa(f.start),
|
|
4251
|
-
gmt_offset:
|
|
4252
|
-
status:
|
|
4252
|
+
gmt_offset: ci(f.start),
|
|
4253
|
+
status: j
|
|
4253
4254
|
});
|
|
4254
4255
|
}
|
|
4255
4256
|
re(
|
|
@@ -4259,54 +4260,54 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4259
4260
|
H.length && !he.current && (c?.trackSlotScreenViewed?.({
|
|
4260
4261
|
astrologers_shown: n.map((l) => l.name),
|
|
4261
4262
|
dates_available_count: H.length,
|
|
4262
|
-
status:
|
|
4263
|
+
status: j
|
|
4263
4264
|
}), he.current = !0);
|
|
4264
|
-
}, [H, n, c,
|
|
4265
|
+
}, [H, n, c, j]);
|
|
4265
4266
|
const ce = !!K && (!Y || !!G), Ne = (l) => {
|
|
4266
4267
|
X(l), c?.trackSlotDateSelected?.({
|
|
4267
4268
|
date: l,
|
|
4268
4269
|
day_part_default: O,
|
|
4269
|
-
status:
|
|
4270
|
+
status: j
|
|
4270
4271
|
});
|
|
4271
|
-
},
|
|
4272
|
+
}, xe = (l) => {
|
|
4272
4273
|
Te(l), c?.trackDayPartSelected?.({
|
|
4273
4274
|
day_part: l,
|
|
4274
4275
|
slots_available_count: ie?.slots.filter((f) => f.period === l).length ?? 0,
|
|
4275
|
-
status:
|
|
4276
|
+
status: j
|
|
4276
4277
|
});
|
|
4277
|
-
},
|
|
4278
|
+
}, ye = (l) => {
|
|
4278
4279
|
re(l), c?.trackSlotSelected?.({
|
|
4279
4280
|
date: $,
|
|
4280
4281
|
time: aa(l.start),
|
|
4281
4282
|
day_part: l.period,
|
|
4282
4283
|
topic: G || null,
|
|
4283
|
-
status:
|
|
4284
|
+
status: j
|
|
4284
4285
|
});
|
|
4285
|
-
},
|
|
4286
|
+
}, ke = () => {
|
|
4286
4287
|
K && (c?.trackSlotReservationRequested?.({
|
|
4287
4288
|
slot_datetime: `${K.start} - ${K.end}`,
|
|
4288
|
-
status:
|
|
4289
|
+
status: j
|
|
4289
4290
|
}), t({
|
|
4290
4291
|
start: K.start,
|
|
4291
4292
|
end: K.end,
|
|
4292
4293
|
period: K.period,
|
|
4293
4294
|
topic: G,
|
|
4294
|
-
language:
|
|
4295
|
+
language: P
|
|
4295
4296
|
}));
|
|
4296
|
-
},
|
|
4297
|
-
|
|
4298
|
-
b?.({ canProceed: ce, proceed: () =>
|
|
4297
|
+
}, Pe = M(ke);
|
|
4298
|
+
Pe.current = ke, q(() => {
|
|
4299
|
+
b?.({ canProceed: ce, proceed: () => Pe.current() });
|
|
4299
4300
|
}, [ce, b]);
|
|
4300
4301
|
const Be = (l) => {
|
|
4301
|
-
I(l), c?.trackGuidanceTopicSelected?.({ topic: l, status:
|
|
4302
|
+
I(l), c?.trackGuidanceTopicSelected?.({ topic: l, status: j });
|
|
4302
4303
|
}, De = (l) => {
|
|
4303
4304
|
c?.trackConsultationLanguageChanged?.({
|
|
4304
|
-
previous_language: ta(
|
|
4305
|
+
previous_language: ta(P),
|
|
4305
4306
|
new_language: ta(l),
|
|
4306
4307
|
slots_available: La(C[l]) ? "yes" : "no",
|
|
4307
|
-
status:
|
|
4308
|
-
}),
|
|
4309
|
-
},
|
|
4308
|
+
status: j
|
|
4309
|
+
}), J(l), E(!1);
|
|
4310
|
+
}, x = qe.find((l) => l.code === P) ?? qe[0];
|
|
4310
4311
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4311
4312
|
/* @__PURE__ */ e.jsxs("div", { className: m.content, children: [
|
|
4312
4313
|
/* @__PURE__ */ e.jsxs("div", { className: m.languageRow, children: [
|
|
@@ -4319,15 +4320,15 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4319
4320
|
className: m.languageDropdownBtn,
|
|
4320
4321
|
onClick: () => E((l) => !l),
|
|
4321
4322
|
"aria-haspopup": "listbox",
|
|
4322
|
-
"aria-expanded":
|
|
4323
|
+
"aria-expanded": R,
|
|
4323
4324
|
children: [
|
|
4324
|
-
i?.(
|
|
4325
|
-
/* @__PURE__ */ e.jsx(
|
|
4325
|
+
i?.(x.labelKey) ?? x.label,
|
|
4326
|
+
/* @__PURE__ */ e.jsx(Xr, {})
|
|
4326
4327
|
]
|
|
4327
4328
|
}
|
|
4328
4329
|
),
|
|
4329
|
-
|
|
4330
|
-
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;
|
|
4331
4332
|
return /* @__PURE__ */ e.jsxs(
|
|
4332
4333
|
"li",
|
|
4333
4334
|
{
|
|
@@ -4357,7 +4358,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4357
4358
|
" ",
|
|
4358
4359
|
i?.("planReportReadySuffix") ?? "from today"
|
|
4359
4360
|
] }),
|
|
4360
|
-
|
|
4361
|
+
k && /* @__PURE__ */ e.jsxs("div", { className: m.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
|
|
4361
4362
|
/* @__PURE__ */ e.jsx("div", { className: m.skeletonDateTabs, children: Array.from({ length: 5 }).map((l, f) => /* @__PURE__ */ e.jsx(
|
|
4362
4363
|
"div",
|
|
4363
4364
|
{
|
|
@@ -4380,16 +4381,16 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4380
4381
|
f
|
|
4381
4382
|
)) })
|
|
4382
4383
|
] }),
|
|
4383
|
-
!
|
|
4384
|
+
!k && S && /* @__PURE__ */ e.jsxs("div", { className: m.stateMessage, children: [
|
|
4384
4385
|
i?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
4385
4386
|
/* @__PURE__ */ e.jsx("button", { type: "button", className: m.retryBtn, onClick: me, children: i?.("planRetry") ?? "Retry" })
|
|
4386
4387
|
] }),
|
|
4387
|
-
!
|
|
4388
|
-
/* @__PURE__ */ e.jsx("span", { className: m.emptyStateIcon, children: /* @__PURE__ */ e.jsx(
|
|
4388
|
+
!k && !S && H.length === 0 && /* @__PURE__ */ e.jsxs("div", { className: m.emptyState, children: [
|
|
4389
|
+
/* @__PURE__ */ e.jsx("span", { className: m.emptyStateIcon, children: /* @__PURE__ */ e.jsx(rn, {}) }),
|
|
4389
4390
|
/* @__PURE__ */ e.jsx("p", { className: m.emptyStateTitle, children: i?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
|
|
4390
4391
|
/* @__PURE__ */ e.jsx("p", { className: m.emptyStateSubtitle, children: i?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
|
|
4391
4392
|
] }),
|
|
4392
|
-
!
|
|
4393
|
+
!k && !S && H.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4393
4394
|
/* @__PURE__ */ e.jsxs("div", { className: m.dateTabs, ref: ue, role: "radiogroup", "aria-label": "Consultation date", children: [
|
|
4394
4395
|
ne && /* @__PURE__ */ e.jsx(
|
|
4395
4396
|
"span",
|
|
@@ -4404,7 +4405,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4404
4405
|
}
|
|
4405
4406
|
),
|
|
4406
4407
|
H.map((l) => {
|
|
4407
|
-
const f = l.date === $, { dayLabel: Z, dayNum: be } =
|
|
4408
|
+
const f = l.date === $, { dayLabel: Z, dayNum: be } = eo(l.date);
|
|
4408
4409
|
return /* @__PURE__ */ e.jsxs(Va, { children: [
|
|
4409
4410
|
/* @__PURE__ */ e.jsxs(
|
|
4410
4411
|
"button",
|
|
@@ -4443,7 +4444,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4443
4444
|
}
|
|
4444
4445
|
),
|
|
4445
4446
|
fe.map((l) => {
|
|
4446
|
-
const f =
|
|
4447
|
+
const f = li[l], Z = l === "evening" && U ? "planPeriodEveningNight" : si[l];
|
|
4447
4448
|
return /* @__PURE__ */ e.jsxs(
|
|
4448
4449
|
"button",
|
|
4449
4450
|
{
|
|
@@ -4457,7 +4458,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4457
4458
|
].filter(Boolean).join(" "),
|
|
4458
4459
|
role: "tab",
|
|
4459
4460
|
"aria-selected": l === O,
|
|
4460
|
-
onClick: () =>
|
|
4461
|
+
onClick: () => xe(l),
|
|
4461
4462
|
children: [
|
|
4462
4463
|
/* @__PURE__ */ e.jsx(f, {}),
|
|
4463
4464
|
i?.(Z) ?? (l === "evening" && U ? "Evening/Night" : l.charAt(0).toUpperCase() + l.slice(1))
|
|
@@ -4483,7 +4484,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4483
4484
|
].filter(Boolean).join(" "),
|
|
4484
4485
|
role: "radio",
|
|
4485
4486
|
"aria-checked": K?.start === l.start,
|
|
4486
|
-
onClick: () =>
|
|
4487
|
+
onClick: () => ye(l),
|
|
4487
4488
|
children: aa(l.start)
|
|
4488
4489
|
},
|
|
4489
4490
|
`${l.start}-${f}`
|
|
@@ -4494,7 +4495,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4494
4495
|
] }),
|
|
4495
4496
|
Y && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4496
4497
|
/* @__PURE__ */ e.jsx("p", { className: m.sectionHeading, children: i?.("planGuidanceHeading") ?? "What would you like guidance on?" }),
|
|
4497
|
-
/* @__PURE__ */ e.jsx("div", { className: m.topicGrid, role: "radiogroup", "aria-label": "Guidance topic", children:
|
|
4498
|
+
/* @__PURE__ */ e.jsx("div", { className: m.topicGrid, role: "radiogroup", "aria-label": "Guidance topic", children: to.map((l) => /* @__PURE__ */ e.jsx(
|
|
4498
4499
|
"button",
|
|
4499
4500
|
{
|
|
4500
4501
|
type: "button",
|
|
@@ -4533,13 +4534,13 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4533
4534
|
type: "button",
|
|
4534
4535
|
className: [m.proceedBtn, ce ? "" : m.proceedBtnDisabled].filter(Boolean).join(" "),
|
|
4535
4536
|
disabled: !ce,
|
|
4536
|
-
onClick:
|
|
4537
|
-
children:
|
|
4537
|
+
onClick: ke,
|
|
4538
|
+
children: y ? i?.("planBookSlot") ?? "Book Slot" : i?.("planProceedToPayment") ?? "Proceed to payment"
|
|
4538
4539
|
}
|
|
4539
4540
|
)
|
|
4540
4541
|
] })
|
|
4541
4542
|
] });
|
|
4542
|
-
},
|
|
4543
|
+
}, ui = ({
|
|
4543
4544
|
isOpen: t,
|
|
4544
4545
|
onClose: n,
|
|
4545
4546
|
t: i,
|
|
@@ -4565,10 +4566,10 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4565
4566
|
),
|
|
4566
4567
|
/* @__PURE__ */ e.jsx("h2", { className: m.title, children: i?.("planConsultationSlotTitle") ?? "Select consultation slot" })
|
|
4567
4568
|
] }),
|
|
4568
|
-
/* @__PURE__ */ e.jsx(
|
|
4569
|
+
/* @__PURE__ */ e.jsx(di, { t: i, ...c })
|
|
4569
4570
|
] })
|
|
4570
4571
|
}
|
|
4571
|
-
) : null,
|
|
4572
|
+
) : null, pi = [
|
|
4572
4573
|
{
|
|
4573
4574
|
id: "jyoti",
|
|
4574
4575
|
name: "planAstrologerNameJyoti",
|
|
@@ -4596,7 +4597,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4596
4597
|
experience: "planAstrologerExpNeeraj",
|
|
4597
4598
|
certifications: ["planAstrologerCertBhuCertified", "planAstrologerCertMantraRudraksha"]
|
|
4598
4599
|
}
|
|
4599
|
-
],
|
|
4600
|
+
], mi = (t) => [
|
|
4600
4601
|
{
|
|
4601
4602
|
id: "kundli-report",
|
|
4602
4603
|
title: "planNameBasic",
|
|
@@ -4622,161 +4623,164 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4622
4623
|
{ text: "planFeatureRealTimeAnswers", included: !0 },
|
|
4623
4624
|
{ text: "planFeatureTailoredRemedies", included: !0 }
|
|
4624
4625
|
],
|
|
4625
|
-
astrologers:
|
|
4626
|
+
astrologers: pi.filter(
|
|
4626
4627
|
(n) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(n.id)
|
|
4627
4628
|
)
|
|
4628
4629
|
}
|
|
4629
|
-
],
|
|
4630
|
+
], fi = ({
|
|
4630
4631
|
isOpen: t,
|
|
4631
4632
|
onClose: n,
|
|
4632
4633
|
selectedPlan: i,
|
|
4633
4634
|
onSelectPlan: c,
|
|
4634
4635
|
plans: g,
|
|
4635
|
-
onProceed:
|
|
4636
|
+
onProceed: y,
|
|
4636
4637
|
t: h,
|
|
4637
4638
|
analytics: w,
|
|
4638
4639
|
enableConsultationScheduling: b
|
|
4639
4640
|
}) => {
|
|
4640
|
-
const Y = Me(), D = Y?.config.isGlobal ?? !0, N = b ?? Y?.config.enableConsultationScheduling ?? !1, p = g ??
|
|
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);
|
|
4641
4642
|
q(() => {
|
|
4642
4643
|
if (t) {
|
|
4643
4644
|
if (!i) {
|
|
4644
|
-
const C = p.find((
|
|
4645
|
+
const C = p.find((V) => V.badge) ?? p[0];
|
|
4645
4646
|
C && c(C);
|
|
4646
4647
|
}
|
|
4647
|
-
|
|
4648
|
+
k.current || (w?.trackPlanPageViewed?.(), N && w?.trackPlanScreenViewed?.({
|
|
4648
4649
|
plans_shown: p.map((C) => C.id),
|
|
4649
4650
|
default_selected_plan: i?.id || p.find((C) => C.badge)?.id || p[0]?.id || ""
|
|
4650
|
-
}),
|
|
4651
|
+
}), k.current = !0);
|
|
4651
4652
|
} else
|
|
4652
|
-
|
|
4653
|
+
k.current = !1;
|
|
4653
4654
|
}, [t, p, i, c, w]);
|
|
4654
4655
|
const te = () => {
|
|
4655
4656
|
w?.trackPlanPageClosed?.(), n();
|
|
4656
4657
|
};
|
|
4657
4658
|
return q(() => {
|
|
4658
4659
|
if (!t) return;
|
|
4659
|
-
const C = document.body.style.overflow;
|
|
4660
|
-
return document.body.style.overflow = "hidden", () => {
|
|
4661
|
-
document.body.style.overflow = C;
|
|
4660
|
+
const C = document.body.style.overflow, V = document.documentElement.style.overflow;
|
|
4661
|
+
return document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden", () => {
|
|
4662
|
+
document.body.style.overflow = C, document.documentElement.style.overflow = V;
|
|
4662
4663
|
};
|
|
4663
|
-
}, [t]), t ?
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4664
|
+
}, [t]), t ? et(
|
|
4665
|
+
/* @__PURE__ */ e.jsxs(
|
|
4666
|
+
"div",
|
|
4667
|
+
{
|
|
4668
|
+
className: T.overlay,
|
|
4669
|
+
role: "dialog",
|
|
4670
|
+
"aria-modal": "true",
|
|
4671
|
+
"aria-label": h?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
4672
|
+
children: [
|
|
4673
|
+
/* @__PURE__ */ e.jsxs(
|
|
4674
|
+
"div",
|
|
4675
|
+
{
|
|
4676
|
+
ref: v,
|
|
4677
|
+
className: N ? T.sheetFullScreen : T.sheet,
|
|
4678
|
+
children: [
|
|
4679
|
+
N ? /* @__PURE__ */ e.jsxs("div", { className: T.headerFull, children: [
|
|
4680
|
+
/* @__PURE__ */ e.jsx(
|
|
4681
|
+
"button",
|
|
4682
|
+
{
|
|
4683
|
+
className: T.backBtn,
|
|
4684
|
+
onClick: te,
|
|
4685
|
+
"aria-label": "Go back",
|
|
4686
|
+
type: "button",
|
|
4687
|
+
children: /* @__PURE__ */ e.jsx(sa, {})
|
|
4688
|
+
}
|
|
4689
|
+
),
|
|
4690
|
+
/* @__PURE__ */ e.jsx("h2", { className: T.titleFull, children: h?.("planSheetTitle") ?? "Choose Your Kundli Plan" })
|
|
4691
|
+
] }) : /* @__PURE__ */ e.jsx(
|
|
4692
|
+
Jn,
|
|
4693
|
+
{
|
|
4694
|
+
title: h?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
4695
|
+
onBack: te
|
|
4696
|
+
}
|
|
4697
|
+
),
|
|
4678
4698
|
/* @__PURE__ */ e.jsx(
|
|
4679
|
-
"
|
|
4699
|
+
"div",
|
|
4680
4700
|
{
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
children: /* @__PURE__ */ e.jsx(
|
|
4701
|
+
ref: j,
|
|
4702
|
+
className: T.plansContainer,
|
|
4703
|
+
role: "radiogroup",
|
|
4704
|
+
"aria-label": "Kundli plans",
|
|
4705
|
+
children: p.map((C) => /* @__PURE__ */ e.jsx(
|
|
4706
|
+
Zn,
|
|
4707
|
+
{
|
|
4708
|
+
plan: C,
|
|
4709
|
+
isSelected: C.id === U,
|
|
4710
|
+
t: h,
|
|
4711
|
+
onSelect: (V) => {
|
|
4712
|
+
const P = p.find((J) => J.id === V);
|
|
4713
|
+
P && (w?.trackPlanSelected?.({
|
|
4714
|
+
planId: P.id,
|
|
4715
|
+
planName: P.title,
|
|
4716
|
+
...N ? {
|
|
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
|
+
} : {}
|
|
4721
|
+
}), c(P));
|
|
4722
|
+
}
|
|
4723
|
+
},
|
|
4724
|
+
C.id
|
|
4725
|
+
))
|
|
4686
4726
|
}
|
|
4687
4727
|
),
|
|
4688
|
-
/* @__PURE__ */ e.jsx("
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
t: h,
|
|
4709
|
-
onSelect: (Q) => {
|
|
4710
|
-
const x = p.find((V) => V.id === Q);
|
|
4711
|
-
x && (w?.trackPlanSelected?.({
|
|
4712
|
-
planId: x.id,
|
|
4713
|
-
planName: x.title,
|
|
4714
|
-
...N ? {
|
|
4715
|
-
price: x.price,
|
|
4716
|
-
includes_consultation: !!(x.astrologers && x.astrologers.length > 0),
|
|
4717
|
-
cta_label: x.astrologers && x.astrologers.length > 0 ? h?.("planSelectConsultationSlot") ?? "Select consultation slot →" : h?.("planProceedToPayment") ?? "Proceed to Payment"
|
|
4718
|
-
} : {}
|
|
4719
|
-
}), c(x));
|
|
4720
|
-
}
|
|
4721
|
-
},
|
|
4722
|
-
C.id
|
|
4723
|
-
))
|
|
4724
|
-
}
|
|
4725
|
-
),
|
|
4726
|
-
/* @__PURE__ */ e.jsx("div", { className: T.footer, children: /* @__PURE__ */ e.jsx(
|
|
4727
|
-
"button",
|
|
4728
|
-
{
|
|
4729
|
-
className: T.proceedBtn,
|
|
4730
|
-
disabled: !i,
|
|
4731
|
-
onClick: () => {
|
|
4732
|
-
if (i) {
|
|
4733
|
-
if (N && i.astrologers && i.astrologers.length > 0) {
|
|
4734
|
-
w?.trackSelectConsultationSlotClicked?.({
|
|
4735
|
-
planId: i.id,
|
|
4736
|
-
planName: i.title
|
|
4737
|
-
}), w?.trackPlanProceedClicked?.({
|
|
4728
|
+
/* @__PURE__ */ e.jsx("div", { className: T.footer, children: /* @__PURE__ */ e.jsx(
|
|
4729
|
+
"button",
|
|
4730
|
+
{
|
|
4731
|
+
className: T.proceedBtn,
|
|
4732
|
+
disabled: !i,
|
|
4733
|
+
onClick: () => {
|
|
4734
|
+
if (i) {
|
|
4735
|
+
if (N && i.astrologers && i.astrologers.length > 0) {
|
|
4736
|
+
w?.trackSelectConsultationSlotClicked?.({
|
|
4737
|
+
planId: i.id,
|
|
4738
|
+
planName: i.title
|
|
4739
|
+
}), w?.trackPlanProceedClicked?.({
|
|
4740
|
+
planId: i.id,
|
|
4741
|
+
planName: i.title,
|
|
4742
|
+
cta_type: "confirm_consultation_slot",
|
|
4743
|
+
next_step: "slot_selection"
|
|
4744
|
+
}), S(!0);
|
|
4745
|
+
return;
|
|
4746
|
+
}
|
|
4747
|
+
w?.trackPlanProceedClicked?.({
|
|
4738
4748
|
planId: i.id,
|
|
4739
4749
|
planName: i.title,
|
|
4740
|
-
cta_type: "
|
|
4741
|
-
|
|
4742
|
-
}), S(!0);
|
|
4743
|
-
return;
|
|
4750
|
+
...N ? { cta_type: "proceed", next_step: "payment" } : {}
|
|
4751
|
+
}), y(i), n();
|
|
4744
4752
|
}
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
}
|
|
4751
|
-
},
|
|
4752
|
-
children: i ? N && i.astrologers && i.astrologers.length > 0 ? h?.("planSelectConsultationSlot") ?? "Select consultation slot →" : h?.("planProceedToPayment") ?? i.price + "Proceed to Payment" : "Select a plan"
|
|
4753
|
-
}
|
|
4754
|
-
) })
|
|
4755
|
-
]
|
|
4756
|
-
}
|
|
4757
|
-
),
|
|
4758
|
-
N && i?.astrologers && i.astrologers.length > 0 && /* @__PURE__ */ e.jsx(
|
|
4759
|
-
di,
|
|
4760
|
-
{
|
|
4761
|
-
isOpen: _,
|
|
4762
|
-
onClose: () => S(!1),
|
|
4763
|
-
astrologers: i.astrologers,
|
|
4764
|
-
t: h,
|
|
4765
|
-
analytics: w,
|
|
4766
|
-
onProceed: (C) => {
|
|
4767
|
-
w?.trackPlanProceedClicked?.({
|
|
4768
|
-
planId: i.id,
|
|
4769
|
-
planName: i.title,
|
|
4770
|
-
cta_type: "proceed",
|
|
4771
|
-
next_step: "payment"
|
|
4772
|
-
}), k(i, C), S(!1), n();
|
|
4753
|
+
},
|
|
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"
|
|
4755
|
+
}
|
|
4756
|
+
) })
|
|
4757
|
+
]
|
|
4773
4758
|
}
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4759
|
+
),
|
|
4760
|
+
N && i?.astrologers && i.astrologers.length > 0 && /* @__PURE__ */ e.jsx(
|
|
4761
|
+
ui,
|
|
4762
|
+
{
|
|
4763
|
+
isOpen: _,
|
|
4764
|
+
onClose: () => S(!1),
|
|
4765
|
+
astrologers: i.astrologers,
|
|
4766
|
+
t: h,
|
|
4767
|
+
analytics: w,
|
|
4768
|
+
onProceed: (C) => {
|
|
4769
|
+
w?.trackPlanProceedClicked?.({
|
|
4770
|
+
planId: i.id,
|
|
4771
|
+
planName: i.title,
|
|
4772
|
+
cta_type: "proceed",
|
|
4773
|
+
next_step: "payment"
|
|
4774
|
+
}), y(i, C), S(!1), n();
|
|
4775
|
+
}
|
|
4776
|
+
}
|
|
4777
|
+
)
|
|
4778
|
+
]
|
|
4779
|
+
}
|
|
4780
|
+
),
|
|
4781
|
+
document.body
|
|
4778
4782
|
) : null;
|
|
4779
|
-
},
|
|
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 = {
|
|
4780
4784
|
fullName: "",
|
|
4781
4785
|
phone: "",
|
|
4782
4786
|
phoneCountryCode: "",
|
|
@@ -4787,13 +4791,13 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4787
4791
|
birthTime: "",
|
|
4788
4792
|
birthTimeUnknown: !1,
|
|
4789
4793
|
birthPlace: ""
|
|
4790
|
-
},
|
|
4794
|
+
}, Si = ({
|
|
4791
4795
|
className: t = "",
|
|
4792
4796
|
locale: n,
|
|
4793
4797
|
showLanguageSelector: i = !0,
|
|
4794
4798
|
onBack: c,
|
|
4795
4799
|
initialValues: g,
|
|
4796
|
-
onProceed:
|
|
4800
|
+
onProceed: y,
|
|
4797
4801
|
onProceedGuidance: h,
|
|
4798
4802
|
proceedHref: w,
|
|
4799
4803
|
originalPriceLabel: b,
|
|
@@ -4803,32 +4807,32 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4803
4807
|
googleMapsAutocompleteEnabled: p,
|
|
4804
4808
|
analytics: U
|
|
4805
4809
|
}) => {
|
|
4806
|
-
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(
|
|
4807
4811
|
_
|
|
4808
4812
|
), ae = M(
|
|
4809
|
-
|
|
4813
|
+
j?.locale
|
|
4810
4814
|
);
|
|
4811
4815
|
q(() => {
|
|
4812
4816
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
4813
4817
|
}, []);
|
|
4814
|
-
const G = (
|
|
4818
|
+
const G = (x) => gi(V, x);
|
|
4815
4819
|
q(() => {
|
|
4816
|
-
_ && se.current !== _ &&
|
|
4817
|
-
}, [_,
|
|
4820
|
+
_ && se.current !== _ && P(_), se.current = _;
|
|
4821
|
+
}, [_, P]), q(() => {
|
|
4818
4822
|
if (_) return;
|
|
4819
|
-
const
|
|
4820
|
-
|
|
4821
|
-
}, [
|
|
4823
|
+
const x = j?.locale;
|
|
4824
|
+
x && ae.current !== x && P(x), ae.current = x;
|
|
4825
|
+
}, [j?.locale, _, P]);
|
|
4822
4826
|
const [I, $] = B({
|
|
4823
|
-
...
|
|
4827
|
+
..._i,
|
|
4824
4828
|
...g,
|
|
4825
4829
|
phone: g?.phone ?? ""
|
|
4826
|
-
}), X =
|
|
4827
|
-
() =>
|
|
4830
|
+
}), X = k ? v?.config.isGlobal ?? !0 : !0, O = k ? v.formValues : I, Te = k ? v.setFormValues : $, [K, re] = B(
|
|
4831
|
+
() => bi(O.phoneCountryCode, X)
|
|
4828
4832
|
), he = M(
|
|
4829
4833
|
!!(O.phoneCountryCode && ra.includes(O.phoneCountryCode))
|
|
4830
|
-
), ue = M(!1), we =
|
|
4831
|
-
ue.current = !0, re(
|
|
4834
|
+
), ue = M(!1), we = Re((x) => {
|
|
4835
|
+
ue.current = !0, re(x);
|
|
4832
4836
|
}, []), ne = M(!0);
|
|
4833
4837
|
q(() => {
|
|
4834
4838
|
if (ne.current) {
|
|
@@ -4837,51 +4841,51 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4837
4841
|
}
|
|
4838
4842
|
he.current || ue.current || re(X ? "+1" : "+91");
|
|
4839
4843
|
}, [X]), q(() => {
|
|
4840
|
-
if (!
|
|
4841
|
-
const
|
|
4842
|
-
|
|
4843
|
-
}, [
|
|
4844
|
-
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;
|
|
4845
4849
|
q(() => {
|
|
4846
|
-
if (!
|
|
4847
|
-
const
|
|
4848
|
-
E.current && !E.current.contains(l.target) &&
|
|
4850
|
+
if (!J) return;
|
|
4851
|
+
const x = (l) => {
|
|
4852
|
+
E.current && !E.current.contains(l.target) && R(!1);
|
|
4849
4853
|
};
|
|
4850
|
-
return document.addEventListener("mousedown",
|
|
4851
|
-
}, [
|
|
4852
|
-
const [fe, ee] = B(!1), [ce, Ne] = B(null),
|
|
4853
|
-
|
|
4854
|
-
}, []),
|
|
4854
|
+
return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
|
|
4855
|
+
}, [J]);
|
|
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);
|
|
4855
4859
|
q(() => {
|
|
4856
|
-
if (
|
|
4860
|
+
if (ke.current || !k || !v?.config.autoOpenPlanSheet || v?.config.variant !== "v1")
|
|
4857
4861
|
return;
|
|
4858
|
-
|
|
4859
|
-
const
|
|
4860
|
-
|
|
4862
|
+
ke.current = !0;
|
|
4863
|
+
const x = (O.phone ?? "").trim();
|
|
4864
|
+
ye({
|
|
4861
4865
|
...O,
|
|
4862
|
-
phone:
|
|
4866
|
+
phone: x && `${K}-${x}`
|
|
4863
4867
|
});
|
|
4864
|
-
}, [
|
|
4865
|
-
const
|
|
4866
|
-
if (!
|
|
4868
|
+
}, [k, v?.config.autoOpenPlanSheet, v?.config.variant, O, K, ye]);
|
|
4869
|
+
const Pe = Re(() => {
|
|
4870
|
+
if (!xe.current || !ce) return;
|
|
4867
4871
|
ie?.trackPlanProceedClicked?.({
|
|
4868
4872
|
planId: ce.id,
|
|
4869
4873
|
planName: ce.title,
|
|
4870
4874
|
price: ce.price,
|
|
4871
4875
|
currency: X ? "USD" : "INR"
|
|
4872
4876
|
});
|
|
4873
|
-
const
|
|
4874
|
-
ce.id ===
|
|
4875
|
-
}, [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: [
|
|
4876
4880
|
/* @__PURE__ */ e.jsxs(
|
|
4877
4881
|
"button",
|
|
4878
4882
|
{
|
|
4879
4883
|
type: "button",
|
|
4880
4884
|
className: Le.langTrigger,
|
|
4881
4885
|
onClick: () => {
|
|
4882
|
-
ie?.trackLanguageClickedFe?.({ language:
|
|
4886
|
+
ie?.trackLanguageClickedFe?.({ language: V }), R((x) => !x);
|
|
4883
4887
|
},
|
|
4884
|
-
"aria-expanded":
|
|
4888
|
+
"aria-expanded": J,
|
|
4885
4889
|
"aria-haspopup": "listbox",
|
|
4886
4890
|
id: "kundli-form-lang",
|
|
4887
4891
|
"aria-label": G("language"),
|
|
@@ -4889,7 +4893,7 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4889
4893
|
/* @__PURE__ */ e.jsx(
|
|
4890
4894
|
Be,
|
|
4891
4895
|
{
|
|
4892
|
-
src:
|
|
4896
|
+
src: hi,
|
|
4893
4897
|
alt: "",
|
|
4894
4898
|
className: Le.langIcon,
|
|
4895
4899
|
width: 16,
|
|
@@ -4897,49 +4901,49 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4897
4901
|
loading: "eager"
|
|
4898
4902
|
}
|
|
4899
4903
|
),
|
|
4900
|
-
/* @__PURE__ */ e.jsx("span", { className: Le.langLabel, children:
|
|
4904
|
+
/* @__PURE__ */ e.jsx("span", { className: Le.langLabel, children: ya[V] })
|
|
4901
4905
|
]
|
|
4902
4906
|
}
|
|
4903
4907
|
),
|
|
4904
|
-
|
|
4908
|
+
J && /* @__PURE__ */ e.jsx(
|
|
4905
4909
|
"ul",
|
|
4906
4910
|
{
|
|
4907
4911
|
className: Le.langMenu,
|
|
4908
4912
|
role: "listbox",
|
|
4909
4913
|
"aria-labelledby": "kundli-form-lang",
|
|
4910
|
-
"aria-activedescendant": `kundli-form-lang-option-${
|
|
4911
|
-
children:
|
|
4914
|
+
"aria-activedescendant": `kundli-form-lang-option-${V}`,
|
|
4915
|
+
children: xa.map((x) => /* @__PURE__ */ e.jsx(
|
|
4912
4916
|
"li",
|
|
4913
4917
|
{
|
|
4914
|
-
id: `kundli-form-lang-option-${
|
|
4918
|
+
id: `kundli-form-lang-option-${x}`,
|
|
4915
4919
|
role: "option",
|
|
4916
|
-
"aria-selected":
|
|
4920
|
+
"aria-selected": x === V,
|
|
4917
4921
|
className: Le.langOption,
|
|
4918
4922
|
onClick: () => {
|
|
4919
|
-
ie?.trackLanguageChangedFe?.({ newLanguage:
|
|
4923
|
+
ie?.trackLanguageChangedFe?.({ newLanguage: x }), P(x), R(!1);
|
|
4920
4924
|
},
|
|
4921
|
-
children:
|
|
4925
|
+
children: ya[x]
|
|
4922
4926
|
},
|
|
4923
|
-
|
|
4927
|
+
x
|
|
4924
4928
|
))
|
|
4925
4929
|
}
|
|
4926
4930
|
)
|
|
4927
4931
|
] }) : null;
|
|
4928
4932
|
return /* @__PURE__ */ e.jsxs("div", { className: `${Le.container} ${t}`, children: [
|
|
4929
4933
|
/* @__PURE__ */ e.jsx(
|
|
4930
|
-
|
|
4934
|
+
zr,
|
|
4931
4935
|
{
|
|
4932
4936
|
t: G,
|
|
4933
|
-
logoUrl:
|
|
4937
|
+
logoUrl: k ? v.config.logoUrl : void 0,
|
|
4934
4938
|
languageSelector: De,
|
|
4935
4939
|
className: Le.kundliHeaderNoBorder
|
|
4936
4940
|
}
|
|
4937
4941
|
),
|
|
4938
4942
|
/* @__PURE__ */ e.jsx("div", { className: Le.headerSeparator, "aria-hidden": !0 }),
|
|
4939
4943
|
/* @__PURE__ */ e.jsxs("main", { className: Le.main, children: [
|
|
4940
|
-
/* @__PURE__ */ e.jsx(
|
|
4944
|
+
/* @__PURE__ */ e.jsx(Rt, { t: G, onBack: je }),
|
|
4941
4945
|
/* @__PURE__ */ e.jsx(
|
|
4942
|
-
|
|
4946
|
+
Er,
|
|
4943
4947
|
{
|
|
4944
4948
|
t: G,
|
|
4945
4949
|
values: O,
|
|
@@ -4949,13 +4953,13 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4949
4953
|
googleMapsAutocompleteEnabled: p,
|
|
4950
4954
|
phoneIsdCode: K,
|
|
4951
4955
|
onPhoneIsdCodeChange: we,
|
|
4952
|
-
showV1ExtraFields:
|
|
4956
|
+
showV1ExtraFields: k ? v?.config.variant === "v1" : !1,
|
|
4953
4957
|
analytics: ie
|
|
4954
4958
|
}
|
|
4955
4959
|
)
|
|
4956
4960
|
] }),
|
|
4957
4961
|
/* @__PURE__ */ e.jsx(
|
|
4958
|
-
|
|
4962
|
+
Vr,
|
|
4959
4963
|
{
|
|
4960
4964
|
t: G,
|
|
4961
4965
|
values: O,
|
|
@@ -4966,29 +4970,29 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4966
4970
|
originalPriceLabel: oe,
|
|
4967
4971
|
discountedPriceLabel: H,
|
|
4968
4972
|
analytics: ie,
|
|
4969
|
-
showPlanSheet:
|
|
4970
|
-
confirmPlan:
|
|
4973
|
+
showPlanSheet: ye,
|
|
4974
|
+
confirmPlan: Pe,
|
|
4971
4975
|
planSheetOpen: fe,
|
|
4972
4976
|
selectedPlan: ce
|
|
4973
4977
|
}
|
|
4974
4978
|
),
|
|
4975
|
-
|
|
4976
|
-
|
|
4979
|
+
v?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
|
|
4980
|
+
fi,
|
|
4977
4981
|
{
|
|
4978
4982
|
isOpen: fe,
|
|
4979
4983
|
onClose: () => ee(!1),
|
|
4980
4984
|
selectedPlan: ce,
|
|
4981
4985
|
onSelectPlan: Ne,
|
|
4982
4986
|
onProceed: () => {
|
|
4983
|
-
|
|
4987
|
+
Pe?.();
|
|
4984
4988
|
},
|
|
4985
|
-
plans:
|
|
4989
|
+
plans: v?.config.plans,
|
|
4986
4990
|
t: G,
|
|
4987
4991
|
analytics: ie
|
|
4988
4992
|
}
|
|
4989
4993
|
)
|
|
4990
4994
|
] });
|
|
4991
|
-
},
|
|
4995
|
+
}, Ci = {
|
|
4992
4996
|
banner_clicked_fe: "banner_clicked_fe",
|
|
4993
4997
|
primary_cta_clicked_fe: "primary_cta_clicked_fe",
|
|
4994
4998
|
language_changed_fe: "language_changed_fe",
|
|
@@ -5061,35 +5065,35 @@ const Sr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
5061
5065
|
kundli_view_sample_image_closed: "kundli_view_sample_image_closed"
|
|
5062
5066
|
};
|
|
5063
5067
|
export {
|
|
5064
|
-
|
|
5068
|
+
di as C,
|
|
5065
5069
|
Ye as D,
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5070
|
+
Rt as F,
|
|
5071
|
+
Ai as I,
|
|
5072
|
+
Ci as K,
|
|
5073
|
+
ya as L,
|
|
5074
|
+
ja as P,
|
|
5075
|
+
xa as S,
|
|
5076
|
+
Er as U,
|
|
5073
5077
|
Sa as a,
|
|
5074
5078
|
ia as b,
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5079
|
+
Si as c,
|
|
5080
|
+
Pi as d,
|
|
5081
|
+
xt as e,
|
|
5078
5082
|
Pt as f,
|
|
5079
5083
|
At as g,
|
|
5080
5084
|
Me as h,
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
+
xi as i,
|
|
5086
|
+
wi as j,
|
|
5087
|
+
ui as k,
|
|
5088
|
+
mi as l,
|
|
5085
5089
|
e as m,
|
|
5086
|
-
|
|
5090
|
+
zr as n,
|
|
5087
5091
|
sa as o,
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5092
|
+
Vr as p,
|
|
5093
|
+
fi as q,
|
|
5094
|
+
Ti as r,
|
|
5095
|
+
Tt as s,
|
|
5096
|
+
Pa as t,
|
|
5097
|
+
vt as u
|
|
5094
5098
|
};
|
|
5095
|
-
//# sourceMappingURL=analytics-
|
|
5099
|
+
//# sourceMappingURL=analytics-C7q6coqa.js.map
|