@srimandir/kundli-generator 10.48.0 → 10.50.0
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-Dq972abg.js → analytics-D_e8w2CC.js} +537 -471
- package/dist/analytics-D_e8w2CC.js.map +1 -0
- package/dist/components/DownloadAppBottomSheet/DownloadAppBottomSheet.d.ts +18 -0
- package/dist/components/DownloadAppBottomSheet/index.d.ts +2 -0
- package/dist/{criticalCss-DvHi7anu.js → criticalCss-Ccl2uzSE.js} +2 -2
- package/dist/{criticalCss-DvHi7anu.js.map → criticalCss-Ccl2uzSE.js.map} +1 -1
- package/dist/form-entry.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/kundli-generator.js +183 -37
- package/dist/kundli-generator.js.map +1 -1
- package/dist/page-entry.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/analytics-Dq972abg.js.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import na, { useContext as oa, createContext as Ta, useState as
|
|
2
|
-
import { FormSectionHeader as
|
|
1
|
+
import na, { useContext as oa, createContext as Ta, useState as D, useRef as M, useEffect as q, useMemo as Ee, useCallback as Re, Fragment as Va } from "react";
|
|
2
|
+
import { FormSectionHeader as Qa, FooterCTAButton as za, FooterShell as Ja, CircularMarquee as Xa, footerShellStyles as Fe, PageHeader as Za } from "@srimandir/astrology-common";
|
|
3
3
|
import { createPortal as et } from "react-dom";
|
|
4
4
|
var Ve = { exports: {} }, He = {};
|
|
5
5
|
var ga;
|
|
6
6
|
function at() {
|
|
7
7
|
if (ga) return He;
|
|
8
8
|
ga = 1;
|
|
9
|
-
var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), i = /* @__PURE__ */ Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, g = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
10
|
-
function h(
|
|
11
|
-
var
|
|
9
|
+
var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), i = /* @__PURE__ */ Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, g = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
10
|
+
function h(P, b, Y) {
|
|
11
|
+
var B, N = {}, p = null, U = null;
|
|
12
12
|
Y !== void 0 && (p = "" + Y), b.key !== void 0 && (p = "" + b.key), b.ref !== void 0 && (U = b.ref);
|
|
13
|
-
for (
|
|
14
|
-
if (
|
|
15
|
-
return { $$typeof: n, type:
|
|
13
|
+
for (B in b) c.call(b, B) && !y.hasOwnProperty(B) && (N[B] = b[B]);
|
|
14
|
+
if (P && P.defaultProps) for (B in b = P.defaultProps, b) N[B] === void 0 && (N[B] = b[B]);
|
|
15
|
+
return { $$typeof: n, type: P, key: p, ref: U, props: N, _owner: g.current };
|
|
16
16
|
}
|
|
17
17
|
return He.Fragment = i, He.jsx = h, He.jsxs = h, He;
|
|
18
18
|
}
|
|
@@ -20,24 +20,24 @@ var We = {};
|
|
|
20
20
|
var ba;
|
|
21
21
|
function tt() {
|
|
22
22
|
return ba || (ba = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
23
|
-
var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), i = /* @__PURE__ */ Symbol.for("react.portal"), c = /* @__PURE__ */ Symbol.for("react.fragment"), g = /* @__PURE__ */ Symbol.for("react.strict_mode"),
|
|
24
|
-
function
|
|
23
|
+
var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), i = /* @__PURE__ */ Symbol.for("react.portal"), c = /* @__PURE__ */ Symbol.for("react.fragment"), g = /* @__PURE__ */ Symbol.for("react.strict_mode"), y = /* @__PURE__ */ Symbol.for("react.profiler"), h = /* @__PURE__ */ Symbol.for("react.provider"), P = /* @__PURE__ */ Symbol.for("react.context"), b = /* @__PURE__ */ Symbol.for("react.forward_ref"), Y = /* @__PURE__ */ Symbol.for("react.suspense"), B = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), U = /* @__PURE__ */ Symbol.for("react.offscreen"), A = Symbol.iterator, j = "@@iterator";
|
|
24
|
+
function k(a) {
|
|
25
25
|
if (a === null || typeof a != "object")
|
|
26
26
|
return null;
|
|
27
|
-
var s =
|
|
27
|
+
var s = A && a[A] || a[j];
|
|
28
28
|
return typeof s == "function" ? s : null;
|
|
29
29
|
}
|
|
30
30
|
var _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
31
|
-
function
|
|
31
|
+
function x(a) {
|
|
32
32
|
{
|
|
33
|
-
for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0),
|
|
34
|
-
u[
|
|
33
|
+
for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), v = 1; v < s; v++)
|
|
34
|
+
u[v - 1] = arguments[v];
|
|
35
35
|
te("error", a, u);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
function te(a, s, u) {
|
|
39
39
|
{
|
|
40
|
-
var
|
|
40
|
+
var v = _.ReactDebugCurrentFrame, W = v.getStackAddendum();
|
|
41
41
|
W !== "" && (s += "%s", u = u.concat([W]));
|
|
42
42
|
var J = u.map(function(F) {
|
|
43
43
|
return String(F);
|
|
@@ -45,19 +45,19 @@ function tt() {
|
|
|
45
45
|
J.unshift("Warning: " + s), Function.prototype.apply.call(console[a], console, J);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
var C = !1, V = !1,
|
|
48
|
+
var C = !1, V = !1, S = !1, Q = !1, R = !1, E;
|
|
49
49
|
E = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
50
50
|
function se(a) {
|
|
51
|
-
return !!(typeof a == "string" || typeof a == "function" || a === c || a ===
|
|
51
|
+
return !!(typeof a == "string" || typeof a == "function" || a === c || a === y || R || a === g || a === Y || a === B || Q || a === U || C || V || S || typeof a == "object" && a !== null && (a.$$typeof === p || a.$$typeof === N || a.$$typeof === h || a.$$typeof === P || a.$$typeof === b || // This needs to include all possible module reference object
|
|
52
52
|
// types supported by any Flight configuration anywhere since
|
|
53
53
|
// we don't know which Flight build this will end up being used
|
|
54
54
|
// with.
|
|
55
55
|
a.$$typeof === E || a.getModuleId !== void 0));
|
|
56
56
|
}
|
|
57
57
|
function ae(a, s, u) {
|
|
58
|
-
var
|
|
59
|
-
if (
|
|
60
|
-
return
|
|
58
|
+
var v = a.displayName;
|
|
59
|
+
if (v)
|
|
60
|
+
return v;
|
|
61
61
|
var W = s.displayName || s.name || "";
|
|
62
62
|
return W !== "" ? u + "(" + W + ")" : u;
|
|
63
63
|
}
|
|
@@ -67,7 +67,7 @@ function tt() {
|
|
|
67
67
|
function I(a) {
|
|
68
68
|
if (a == null)
|
|
69
69
|
return null;
|
|
70
|
-
if (typeof a.tag == "number" &&
|
|
70
|
+
if (typeof a.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
|
|
71
71
|
return a.displayName || a.name || null;
|
|
72
72
|
if (typeof a == "string")
|
|
73
73
|
return a;
|
|
@@ -76,18 +76,18 @@ function tt() {
|
|
|
76
76
|
return "Fragment";
|
|
77
77
|
case i:
|
|
78
78
|
return "Portal";
|
|
79
|
-
case
|
|
79
|
+
case y:
|
|
80
80
|
return "Profiler";
|
|
81
81
|
case g:
|
|
82
82
|
return "StrictMode";
|
|
83
83
|
case Y:
|
|
84
84
|
return "Suspense";
|
|
85
|
-
case
|
|
85
|
+
case B:
|
|
86
86
|
return "SuspenseList";
|
|
87
87
|
}
|
|
88
88
|
if (typeof a == "object")
|
|
89
89
|
switch (a.$$typeof) {
|
|
90
|
-
case
|
|
90
|
+
case P:
|
|
91
91
|
var s = a;
|
|
92
92
|
return G(s) + ".Consumer";
|
|
93
93
|
case h:
|
|
@@ -96,8 +96,8 @@ function tt() {
|
|
|
96
96
|
case b:
|
|
97
97
|
return ae(a, a.render, "ForwardRef");
|
|
98
98
|
case N:
|
|
99
|
-
var
|
|
100
|
-
return
|
|
99
|
+
var v = a.displayName || null;
|
|
100
|
+
return v !== null ? v : I(a.type) || "Memo";
|
|
101
101
|
case p: {
|
|
102
102
|
var W = a, J = W._payload, F = W._init;
|
|
103
103
|
try {
|
|
@@ -109,14 +109,14 @@ function tt() {
|
|
|
109
109
|
}
|
|
110
110
|
return null;
|
|
111
111
|
}
|
|
112
|
-
var $ = Object.assign, X = 0, O, Te, K, re, he, ue,
|
|
112
|
+
var $ = Object.assign, X = 0, O, Te, K, re, he, ue, Pe;
|
|
113
113
|
function ne() {
|
|
114
114
|
}
|
|
115
115
|
ne.__reactDisabledLog = !0;
|
|
116
116
|
function je() {
|
|
117
117
|
{
|
|
118
118
|
if (X === 0) {
|
|
119
|
-
O = console.log, Te = console.info, K = console.warn, re = console.error, he = console.group, ue = console.groupCollapsed,
|
|
119
|
+
O = console.log, Te = console.info, K = console.warn, re = console.error, he = console.group, ue = console.groupCollapsed, Pe = console.groupEnd;
|
|
120
120
|
var a = {
|
|
121
121
|
configurable: !0,
|
|
122
122
|
enumerable: !0,
|
|
@@ -164,11 +164,11 @@ function tt() {
|
|
|
164
164
|
value: ue
|
|
165
165
|
}),
|
|
166
166
|
groupEnd: $({}, a, {
|
|
167
|
-
value:
|
|
167
|
+
value: Pe
|
|
168
168
|
})
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
|
-
X < 0 &&
|
|
171
|
+
X < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
var pe = _.ReactCurrentDispatcher, ge;
|
|
@@ -178,8 +178,8 @@ function tt() {
|
|
|
178
178
|
try {
|
|
179
179
|
throw Error();
|
|
180
180
|
} catch (W) {
|
|
181
|
-
var
|
|
182
|
-
ge =
|
|
181
|
+
var v = W.stack.trim().match(/\n( *(at )?)/);
|
|
182
|
+
ge = v && v[1] || "";
|
|
183
183
|
}
|
|
184
184
|
return `
|
|
185
185
|
` + ge + a;
|
|
@@ -198,7 +198,7 @@ function tt() {
|
|
|
198
198
|
if (u !== void 0)
|
|
199
199
|
return u;
|
|
200
200
|
}
|
|
201
|
-
var
|
|
201
|
+
var v;
|
|
202
202
|
H = !0;
|
|
203
203
|
var W = Error.prepareStackTrace;
|
|
204
204
|
Error.prepareStackTrace = void 0;
|
|
@@ -216,37 +216,37 @@ function tt() {
|
|
|
216
216
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
217
217
|
try {
|
|
218
218
|
Reflect.construct(F, []);
|
|
219
|
-
} catch (
|
|
220
|
-
|
|
219
|
+
} catch (ve) {
|
|
220
|
+
v = ve;
|
|
221
221
|
}
|
|
222
222
|
Reflect.construct(a, [], F);
|
|
223
223
|
} else {
|
|
224
224
|
try {
|
|
225
225
|
F.call();
|
|
226
|
-
} catch (
|
|
227
|
-
|
|
226
|
+
} catch (ve) {
|
|
227
|
+
v = ve;
|
|
228
228
|
}
|
|
229
229
|
a.call(F.prototype);
|
|
230
230
|
}
|
|
231
231
|
} else {
|
|
232
232
|
try {
|
|
233
233
|
throw Error();
|
|
234
|
-
} catch (
|
|
235
|
-
|
|
234
|
+
} catch (ve) {
|
|
235
|
+
v = ve;
|
|
236
236
|
}
|
|
237
237
|
a();
|
|
238
238
|
}
|
|
239
|
-
} catch (
|
|
240
|
-
if (
|
|
241
|
-
for (var L =
|
|
242
|
-
`),
|
|
243
|
-
`), le = L.length - 1, de =
|
|
239
|
+
} catch (ve) {
|
|
240
|
+
if (ve && v && typeof ve.stack == "string") {
|
|
241
|
+
for (var L = ve.stack.split(`
|
|
242
|
+
`), Ae = v.stack.split(`
|
|
243
|
+
`), le = L.length - 1, de = Ae.length - 1; le >= 1 && de >= 0 && L[le] !== Ae[de]; )
|
|
244
244
|
de--;
|
|
245
245
|
for (; le >= 1 && de >= 0; le--, de--)
|
|
246
|
-
if (L[le] !==
|
|
246
|
+
if (L[le] !== Ae[de]) {
|
|
247
247
|
if (le !== 1 || de !== 1)
|
|
248
248
|
do
|
|
249
|
-
if (le--, de--, de < 0 || L[le] !==
|
|
249
|
+
if (le--, de--, de < 0 || L[le] !== Ae[de]) {
|
|
250
250
|
var Ce = `
|
|
251
251
|
` + L[le].replace(" at new ", " at ");
|
|
252
252
|
return a.displayName && Ce.includes("<anonymous>") && (Ce = Ce.replace("<anonymous>", a.displayName)), typeof a == "function" && me.set(a, Ce), Ce;
|
|
@@ -278,7 +278,7 @@ function tt() {
|
|
|
278
278
|
switch (a) {
|
|
279
279
|
case Y:
|
|
280
280
|
return oe("Suspense");
|
|
281
|
-
case
|
|
281
|
+
case B:
|
|
282
282
|
return oe("SuspenseList");
|
|
283
283
|
}
|
|
284
284
|
if (typeof a == "object")
|
|
@@ -288,7 +288,7 @@ function tt() {
|
|
|
288
288
|
case N:
|
|
289
289
|
return Ne(a.type, s, u);
|
|
290
290
|
case p: {
|
|
291
|
-
var
|
|
291
|
+
var v = a, W = v._payload, J = v._init;
|
|
292
292
|
try {
|
|
293
293
|
return Ne(J(W), s, u);
|
|
294
294
|
} catch {
|
|
@@ -297,36 +297,36 @@ function tt() {
|
|
|
297
297
|
}
|
|
298
298
|
return "";
|
|
299
299
|
}
|
|
300
|
-
var
|
|
301
|
-
function
|
|
300
|
+
var we = Object.prototype.hasOwnProperty, ye = {}, ke = _.ReactDebugCurrentFrame;
|
|
301
|
+
function Se(a) {
|
|
302
302
|
if (a) {
|
|
303
303
|
var s = a._owner, u = Ne(a.type, a._source, s ? s.type : null);
|
|
304
|
-
|
|
304
|
+
ke.setExtraStackFrame(u);
|
|
305
305
|
} else
|
|
306
|
-
|
|
306
|
+
ke.setExtraStackFrame(null);
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function De(a, s, u, v, W) {
|
|
309
309
|
{
|
|
310
|
-
var J = Function.call.bind(
|
|
310
|
+
var J = Function.call.bind(we);
|
|
311
311
|
for (var F in a)
|
|
312
312
|
if (J(a, F)) {
|
|
313
313
|
var L = void 0;
|
|
314
314
|
try {
|
|
315
315
|
if (typeof a[F] != "function") {
|
|
316
|
-
var
|
|
317
|
-
throw
|
|
316
|
+
var Ae = Error((v || "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 Ae.name = "Invariant Violation", Ae;
|
|
318
318
|
}
|
|
319
|
-
L = a[F](s, F,
|
|
319
|
+
L = a[F](s, F, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
320
320
|
} catch (le) {
|
|
321
321
|
L = le;
|
|
322
322
|
}
|
|
323
|
-
L && !(L instanceof Error) && (
|
|
323
|
+
L && !(L instanceof Error) && (Se(W), x("%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).", v || "React class", u, F, typeof L), Se(null)), L instanceof Error && !(L.message in ye) && (ye[L.message] = !0, Se(W), x("Failed %s type: %s", u, L.message), Se(null));
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
var
|
|
328
|
-
function
|
|
329
|
-
return
|
|
327
|
+
var Be = Array.isArray;
|
|
328
|
+
function w(a) {
|
|
329
|
+
return Be(a);
|
|
330
330
|
}
|
|
331
331
|
function l(a) {
|
|
332
332
|
{
|
|
@@ -346,37 +346,37 @@ function tt() {
|
|
|
346
346
|
}
|
|
347
347
|
function be(a) {
|
|
348
348
|
if (f(a))
|
|
349
|
-
return
|
|
349
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", l(a)), Z(a);
|
|
350
350
|
}
|
|
351
351
|
var r = _.ReactCurrentOwner, d = {
|
|
352
352
|
key: !0,
|
|
353
353
|
ref: !0,
|
|
354
354
|
__self: !0,
|
|
355
355
|
__source: !0
|
|
356
|
-
},
|
|
356
|
+
}, z, xe;
|
|
357
357
|
function $e(a) {
|
|
358
|
-
if (
|
|
358
|
+
if (we.call(a, "ref")) {
|
|
359
359
|
var s = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
360
360
|
if (s && s.isReactWarning)
|
|
361
361
|
return !1;
|
|
362
362
|
}
|
|
363
363
|
return a.ref !== void 0;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
if (
|
|
365
|
+
function ze(a) {
|
|
366
|
+
if (we.call(a, "key")) {
|
|
367
367
|
var s = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
368
368
|
if (s && s.isReactWarning)
|
|
369
369
|
return !1;
|
|
370
370
|
}
|
|
371
371
|
return a.key !== void 0;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Da(a, s) {
|
|
374
374
|
typeof a.ref == "string" && r.current;
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function Ba(a, s) {
|
|
377
377
|
{
|
|
378
378
|
var u = function() {
|
|
379
|
-
|
|
379
|
+
z || (z = !0, x("%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));
|
|
380
380
|
};
|
|
381
381
|
u.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
382
382
|
get: u,
|
|
@@ -387,7 +387,7 @@ function tt() {
|
|
|
387
387
|
function Ea(a, s) {
|
|
388
388
|
{
|
|
389
389
|
var u = function() {
|
|
390
|
-
|
|
390
|
+
xe || (xe = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
|
|
391
391
|
};
|
|
392
392
|
u.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
393
393
|
get: u,
|
|
@@ -395,7 +395,7 @@ function tt() {
|
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
var Ia = function(a, s, u,
|
|
398
|
+
var Ia = function(a, s, u, v, W, J, F) {
|
|
399
399
|
var L = {
|
|
400
400
|
// This tag allows us to uniquely identify this as a React Element
|
|
401
401
|
$$typeof: n,
|
|
@@ -416,7 +416,7 @@ function tt() {
|
|
|
416
416
|
configurable: !1,
|
|
417
417
|
enumerable: !1,
|
|
418
418
|
writable: !1,
|
|
419
|
-
value:
|
|
419
|
+
value: v
|
|
420
420
|
}), Object.defineProperty(L, "_source", {
|
|
421
421
|
configurable: !1,
|
|
422
422
|
enumerable: !1,
|
|
@@ -424,22 +424,22 @@ function tt() {
|
|
|
424
424
|
value: W
|
|
425
425
|
}), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
|
|
426
426
|
};
|
|
427
|
-
function Fa(a, s, u,
|
|
427
|
+
function Fa(a, s, u, v, W) {
|
|
428
428
|
{
|
|
429
|
-
var J, F = {}, L = null,
|
|
430
|
-
u !== void 0 && (be(u), L = "" + u),
|
|
429
|
+
var J, F = {}, L = null, Ae = null;
|
|
430
|
+
u !== void 0 && (be(u), L = "" + u), ze(s) && (be(s.key), L = "" + s.key), $e(s) && (Ae = s.ref, Da(s, W));
|
|
431
431
|
for (J in s)
|
|
432
|
-
|
|
432
|
+
we.call(s, J) && !d.hasOwnProperty(J) && (F[J] = s[J]);
|
|
433
433
|
if (a && a.defaultProps) {
|
|
434
434
|
var le = a.defaultProps;
|
|
435
435
|
for (J in le)
|
|
436
436
|
F[J] === void 0 && (F[J] = le[J]);
|
|
437
437
|
}
|
|
438
|
-
if (L ||
|
|
438
|
+
if (L || Ae) {
|
|
439
439
|
var de = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
440
|
-
L &&
|
|
440
|
+
L && Ba(F, de), Ae && Ea(F, de);
|
|
441
441
|
}
|
|
442
|
-
return Ia(a, L,
|
|
442
|
+
return Ia(a, L, Ae, W, v, r.current, F);
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
var Je = _.ReactCurrentOwner, ca = _.ReactDebugCurrentFrame;
|
|
@@ -492,23 +492,23 @@ Check the top-level render call using <` + u + ">.");
|
|
|
492
492
|
if (ua[u])
|
|
493
493
|
return;
|
|
494
494
|
ua[u] = !0;
|
|
495
|
-
var
|
|
496
|
-
a && a._owner && a._owner !== Je.current && (
|
|
495
|
+
var v = "";
|
|
496
|
+
a && a._owner && a._owner !== Je.current && (v = " It was passed a child from " + I(a._owner.type) + "."), Ue(a), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), Ue(null);
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
function ma(a, s) {
|
|
500
500
|
{
|
|
501
501
|
if (typeof a != "object")
|
|
502
502
|
return;
|
|
503
|
-
if (
|
|
503
|
+
if (w(a))
|
|
504
504
|
for (var u = 0; u < a.length; u++) {
|
|
505
|
-
var
|
|
506
|
-
Ze(
|
|
505
|
+
var v = a[u];
|
|
506
|
+
Ze(v) && pa(v, s);
|
|
507
507
|
}
|
|
508
508
|
else if (Ze(a))
|
|
509
509
|
a._store && (a._store.validated = !0);
|
|
510
510
|
else if (a) {
|
|
511
|
-
var W =
|
|
511
|
+
var W = k(a);
|
|
512
512
|
if (typeof W == "function" && W !== a.entries)
|
|
513
513
|
for (var J = W.call(a), F; !(F = J.next()).done; )
|
|
514
514
|
Ze(F.value) && pa(F.value, s);
|
|
@@ -530,39 +530,39 @@ Check the top-level render call using <` + u + ">.");
|
|
|
530
530
|
else
|
|
531
531
|
return;
|
|
532
532
|
if (u) {
|
|
533
|
-
var
|
|
534
|
-
|
|
533
|
+
var v = I(s);
|
|
534
|
+
De(u, a.props, "prop", v, a);
|
|
535
535
|
} else if (s.PropTypes !== void 0 && !Xe) {
|
|
536
536
|
Xe = !0;
|
|
537
537
|
var W = I(s);
|
|
538
|
-
|
|
538
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
|
|
539
539
|
}
|
|
540
|
-
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved &&
|
|
540
|
+
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
function Oa(a) {
|
|
544
544
|
{
|
|
545
545
|
for (var s = Object.keys(a.props), u = 0; u < s.length; u++) {
|
|
546
|
-
var
|
|
547
|
-
if (
|
|
548
|
-
Ue(a),
|
|
546
|
+
var v = s[u];
|
|
547
|
+
if (v !== "children" && v !== "key") {
|
|
548
|
+
Ue(a), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), Ue(null);
|
|
549
549
|
break;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
a.ref !== null && (Ue(a),
|
|
552
|
+
a.ref !== null && (Ue(a), x("Invalid attribute `ref` supplied to `React.Fragment`."), Ue(null));
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
var fa = {};
|
|
556
|
-
function ha(a, s, u,
|
|
556
|
+
function ha(a, s, u, v, W, J) {
|
|
557
557
|
{
|
|
558
558
|
var F = se(a);
|
|
559
559
|
if (!F) {
|
|
560
560
|
var L = "";
|
|
561
561
|
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
562
|
-
var
|
|
563
|
-
|
|
562
|
+
var Ae = Ma();
|
|
563
|
+
Ae ? L += Ae : L += da();
|
|
564
564
|
var le;
|
|
565
|
-
a === null ? le = "null" :
|
|
565
|
+
a === null ? le = "null" : w(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, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", le, L);
|
|
566
566
|
}
|
|
567
567
|
var de = Fa(a, s, u, W, J);
|
|
568
568
|
if (de == null)
|
|
@@ -570,23 +570,23 @@ Check the top-level render call using <` + u + ">.");
|
|
|
570
570
|
if (F) {
|
|
571
571
|
var Ce = s.children;
|
|
572
572
|
if (Ce !== void 0)
|
|
573
|
-
if (
|
|
574
|
-
if (
|
|
573
|
+
if (v)
|
|
574
|
+
if (w(Ce)) {
|
|
575
575
|
for (var Ge = 0; Ge < Ce.length; Ge++)
|
|
576
576
|
ma(Ce[Ge], a);
|
|
577
577
|
Object.freeze && Object.freeze(Ce);
|
|
578
578
|
} else
|
|
579
|
-
|
|
579
|
+
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
580
580
|
else
|
|
581
581
|
ma(Ce, a);
|
|
582
582
|
}
|
|
583
|
-
if (
|
|
584
|
-
var Ie = I(a),
|
|
583
|
+
if (we.call(s, "key")) {
|
|
584
|
+
var Ie = I(a), ve = Object.keys(s).filter(function(Ya) {
|
|
585
585
|
return Ya !== "key";
|
|
586
|
-
}), ea =
|
|
586
|
+
}), ea = ve.length > 0 ? "{key: someKey, " + ve.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
587
587
|
if (!fa[Ie + ea]) {
|
|
588
|
-
var qa =
|
|
589
|
-
|
|
588
|
+
var qa = ve.length > 0 ? "{" + ve.join(": ..., ") + ": ...}" : "{}";
|
|
589
|
+
x(`A props object containing a "key" prop is being spread into JSX:
|
|
590
590
|
let props = %s;
|
|
591
591
|
<%s {...props} />
|
|
592
592
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -623,7 +623,7 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
623
623
|
langLabel: ut,
|
|
624
624
|
langMenu: pt,
|
|
625
625
|
langOption: mt
|
|
626
|
-
},
|
|
626
|
+
}, wa = [
|
|
627
627
|
"en",
|
|
628
628
|
"hi",
|
|
629
629
|
"gu",
|
|
@@ -631,7 +631,7 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
631
631
|
"ta",
|
|
632
632
|
"te",
|
|
633
633
|
"kn"
|
|
634
|
-
],
|
|
634
|
+
], ya = {
|
|
635
635
|
en: "English",
|
|
636
636
|
hi: "हिन्दी",
|
|
637
637
|
gu: "ગુજરાતી",
|
|
@@ -873,7 +873,23 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
873
873
|
planAstrologerExpAshwini: "16 Years of experience",
|
|
874
874
|
and: "And",
|
|
875
875
|
astrologyGuidance: "Astrology Guidance",
|
|
876
|
-
selectPackage: "Select Package"
|
|
876
|
+
selectPackage: "Select Package",
|
|
877
|
+
// Download app bottom sheet
|
|
878
|
+
downloadAppSheetTitle: "Get your Kundli Report in the App",
|
|
879
|
+
downloadAppSheetReportAccess: "Access your Kundli Report & section wise summary in the app",
|
|
880
|
+
downloadAppSheetAlsoUnlocked: "Also unlocked in the app",
|
|
881
|
+
downloadAppSheetAskQuestions: "Ask any questions related to your kundli report in the app",
|
|
882
|
+
downloadAppSheetRemedies: "Select an area of focus and get remedies based on our report",
|
|
883
|
+
downloadAppSheetCta: "Download Free Kundli App",
|
|
884
|
+
downloadAppSheetQuestionTitle: "Ask {badge} Question in the App",
|
|
885
|
+
downloadAppSheetFreeBadge: "Free",
|
|
886
|
+
downloadAppSheetQuestionHero: "Ask any Questions related to your Kundli Report in the App",
|
|
887
|
+
downloadAppSheetDailyRituals: "Personalised daily rituals tailored to your problems",
|
|
888
|
+
downloadAppSheetQuestionCta: "Ask Free Question on App",
|
|
889
|
+
downloadAppSheetRitualTitle: "Personalized Daily Rituals in the App",
|
|
890
|
+
downloadAppSheetRitualHero: "Select an area of focus and get remedies based on your report",
|
|
891
|
+
downloadAppSheetAccessDownloadReport: "Access & download your kundli report & section wise summary in the app",
|
|
892
|
+
downloadAppSheetRitualCta: "Start Today’s Ritual on App"
|
|
877
893
|
}, ht = {
|
|
878
894
|
kundli: "कुंडली",
|
|
879
895
|
birthChart: "जन्म कुंडली",
|
|
@@ -1107,7 +1123,25 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
1107
1123
|
planAstrologerExpAshwini: "16 साल का अनुभव",
|
|
1108
1124
|
and: "और",
|
|
1109
1125
|
astrologyGuidance: "ज्योतिष से सलाह",
|
|
1110
|
-
selectPackage: "पैकेज चुनें"
|
|
1126
|
+
selectPackage: "पैकेज चुनें",
|
|
1127
|
+
// Download app bottom sheet
|
|
1128
|
+
downloadAppSheetTitle: "ऐप में अपनी कुंडली रिपोर्ट पाएं",
|
|
1129
|
+
downloadAppSheetReportAccess: "ऐप में अपनी कुंडली रिपोर्ट और अनुभागवार सारांश देखें",
|
|
1130
|
+
downloadAppSheetAlsoUnlocked: "ऐप में ये सुविधाएँ भी अनलॉक हैं",
|
|
1131
|
+
// Hard line break as in the Hindi Figma frames (rendered via pre-line).
|
|
1132
|
+
downloadAppSheetAskQuestions: `ऐप में अपनी कुंडली रिपोर्ट से संबंधित कोई भी
|
|
1133
|
+
सवाल पूछें।`,
|
|
1134
|
+
downloadAppSheetRemedies: "अपनी प्राथमिकता का क्षेत्र चुनें और अपनी रिपोर्ट के आधार पर उपाय पाएं",
|
|
1135
|
+
downloadAppSheetCta: "निःशुल्क कुंडली ऐप डाउनलोड करें",
|
|
1136
|
+
// Hindi title has no separate "Free" badge — rendered as plain text.
|
|
1137
|
+
downloadAppSheetQuestionTitle: "ऐप में निःशुल्क सवाल पूछें",
|
|
1138
|
+
downloadAppSheetQuestionHero: "ऐप में अपनी कुंडली रिपोर्ट से संबंधित कोई भी सवाल पूछें",
|
|
1139
|
+
downloadAppSheetDailyRituals: "आपकी समस्याओं के अनुरूप व्यक्तिगत दैनिक अनुष्ठान पाएं।",
|
|
1140
|
+
downloadAppSheetQuestionCta: "ऐप में निःशुल्क सवाल पूछें",
|
|
1141
|
+
downloadAppSheetRitualTitle: "ऐप में व्यक्तिगत दैनिक अनुष्ठान",
|
|
1142
|
+
downloadAppSheetRitualHero: "अपनी प्राथमिकता का क्षेत्र चुनें और अपनी रिपोर्ट के आधार पर उपाय पाएं",
|
|
1143
|
+
downloadAppSheetAccessDownloadReport: "ऐप में अपनी कुंडली रिपोर्ट और अनुभागवार सारांश देखें एवं डाउनलोड करें",
|
|
1144
|
+
downloadAppSheetRitualCta: "ऐप में आज का अनुष्ठान शुरू करें"
|
|
1111
1145
|
}, gt = {
|
|
1112
1146
|
kundli: "कुंडली",
|
|
1113
1147
|
birthChart: "जन्मकुंडली",
|
|
@@ -1788,8 +1822,24 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
1788
1822
|
planAstrologerExpAshwini: "16 ವರ್ಷಗಳ ಅನುಭವ",
|
|
1789
1823
|
and: "ಮತ್ತು",
|
|
1790
1824
|
astrologyGuidance: "ಜ್ಯೋತಿಷ್ಯ ಮಾರ್ಗದರ್ಶನ",
|
|
1791
|
-
selectPackage: "ಪ್ಯಾಕೇಜ್ ಆಯ್ಕೆಮಾಡಿ"
|
|
1792
|
-
|
|
1825
|
+
selectPackage: "ಪ್ಯಾಕೇಜ್ ಆಯ್ಕೆಮಾಡಿ",
|
|
1826
|
+
// Download app bottom sheet
|
|
1827
|
+
downloadAppSheetTitle: "ಆ್ಯಪ್ನಲ್ಲಿ ನಿಮ್ಮ ಕುಂಡಲಿ ವರದಿಯನ್ನು ಪಡೆಯಿರಿ",
|
|
1828
|
+
downloadAppSheetReportAccess: "ಆ್ಯಪ್ನಲ್ಲಿ ನಿಮ್ಮ ಕುಂಡಲಿ ವರದಿ ಮತ್ತು ವಿಭಾಗವಾರು ಸಾರಾಂಶವನ್ನು ವೀಕ್ಷಿಸಿ",
|
|
1829
|
+
downloadAppSheetAlsoUnlocked: "ಆ್ಯಪ್ನಲ್ಲಿ ಈ ಸೌಲಭ್ಯಗಳೂ ಅನ್ಲಾಕ್ ಆಗಿವೆ",
|
|
1830
|
+
downloadAppSheetAskQuestions: "ಆ್ಯಪ್ನಲ್ಲಿ ನಿಮ್ಮ ಕುಂಡಲಿ ವರದಿಗೆ ಸಂಬಂಧಿಸಿದ ಯಾವುದೇ ಪ್ರಶ್ನೆಯನ್ನು ಕೇಳಿ",
|
|
1831
|
+
downloadAppSheetRemedies: "ಗಮನ ಹರಿಸಬೇಕಾದ ಕ್ಷೇತ್ರವನ್ನು ಆಯ್ಕೆ ಮಾಡಿ ಮತ್ತು ನಿಮ್ಮ ವರದಿಯ ಆಧಾರದ ಮೇಲೆ ಪರಿಹಾರಗಳನ್ನು ಪಡೆಯಿರಿ",
|
|
1832
|
+
downloadAppSheetCta: "ಉಚಿತ ಕುಂಡಲಿ ಆ್ಯಪ್ ಡೌನ್ಲೋಡ್ ಮಾಡಿ",
|
|
1833
|
+
// Kannada title has no separate "Free" badge — rendered as plain text.
|
|
1834
|
+
downloadAppSheetQuestionTitle: "ಆ್ಯಪ್ನಲ್ಲಿ ಉಚಿತವಾಗಿ ಪ್ರಶ್ನೆ ಕೇಳಿ",
|
|
1835
|
+
downloadAppSheetQuestionHero: "ಆ್ಯಪ್ನಲ್ಲಿ ನಿಮ್ಮ ಕುಂಡಲಿ ವರದಿಗೆ ಸಂಬಂಧಿಸಿದ ಯಾವುದೇ ಪ್ರಶ್ನೆಯನ್ನು ಕೇಳಿ",
|
|
1836
|
+
downloadAppSheetDailyRituals: "ನಿಮ್ಮ ಸಮಸ್ಯೆಗಳಿಗೆ ಅನುಗುಣವಾಗಿ ರೂಪಿಸಲಾದ ವೈಯಕ್ತಿಕ ದೈನಂದಿನ ಆಚರಣೆಗಳನ್ನು ಪಡೆಯಿರಿ",
|
|
1837
|
+
downloadAppSheetQuestionCta: "ಆ್ಯಪ್ನಲ್ಲಿ ಉಚಿತವಾಗಿ ಪ್ರಶ್ನೆ ಕೇಳಿ",
|
|
1838
|
+
downloadAppSheetRitualTitle: "ಆ್ಯಪ್ನಲ್ಲಿ ವೈಯಕ್ತಿಕ ದೈನಂದಿನ ಆಚರಣೆಗಳು",
|
|
1839
|
+
downloadAppSheetRitualHero: "ಗಮನ ಹರಿಸಬೇಕಾದ ಕ್ಷೇತ್ರವನ್ನು ಆಯ್ಕೆ ಮಾಡಿ ಮತ್ತು ನಿಮ್ಮ ವರದಿಯ ಆಧಾರದ ಮೇಲೆ ಪರಿಹಾರಗಳನ್ನು ಪಡೆಯಿರಿ",
|
|
1840
|
+
downloadAppSheetAccessDownloadReport: "ಆ್ಯಪ್ನಲ್ಲಿ ನಿಮ್ಮ ಕುಂಡಲಿ ವರದಿ ಮತ್ತು ವಿಭಾಗವಾರು ಸಾರಾಂಶವನ್ನು ವೀಕ್ಷಿಸಿ ಹಾಗೂ ಡೌನ್ಲೋಡ್ ಮಾಡಿ",
|
|
1841
|
+
downloadAppSheetRitualCta: "ಆ್ಯಪ್ನಲ್ಲಿ ಇಂದಿನ ಆಚರಣೆಯನ್ನು ಪ್ರಾರಂಭಿಸಿ"
|
|
1842
|
+
}, yt = {
|
|
1793
1843
|
kundli: "ஜாதகம்",
|
|
1794
1844
|
birthChart: "பிறப்பு ஜாதகம்",
|
|
1795
1845
|
details: "விவரங்கள்",
|
|
@@ -2016,7 +2066,7 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
2016
2066
|
and: "மற்றும்",
|
|
2017
2067
|
astrologyGuidance: "ஜோதிட வழிகாட்டுதல்",
|
|
2018
2068
|
selectPackage: "தொகுப்பைத் தேர்ந்தெடுக்கவும்"
|
|
2019
|
-
},
|
|
2069
|
+
}, kt = {
|
|
2020
2070
|
kundli: "జాతకం",
|
|
2021
2071
|
birthChart: "జన్మ జాతకం",
|
|
2022
2072
|
details: "వివరాలు",
|
|
@@ -2242,39 +2292,55 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
2242
2292
|
planAstrologerExpAshwini: "16 సంవత్సరాల అనుభవం",
|
|
2243
2293
|
and: "మరియు",
|
|
2244
2294
|
astrologyGuidance: "జ్యోతిష్య మార్గదర్శకం",
|
|
2245
|
-
selectPackage: "ప్యాకేజీని ఎంచుకోండి"
|
|
2246
|
-
|
|
2295
|
+
selectPackage: "ప్యాకేజీని ఎంచుకోండి",
|
|
2296
|
+
// Download app bottom sheet
|
|
2297
|
+
downloadAppSheetTitle: "మీ కుండలి రిపోర్ట్ను యాప్లో పొందండి",
|
|
2298
|
+
downloadAppSheetReportAccess: "మీ కుండలి రిపోర్ట్ మరియు ప్రతి సెక్షన్ యొక్క సారాంశాన్ని యాప్లో చూడండి",
|
|
2299
|
+
downloadAppSheetAlsoUnlocked: "ఇవి కూడా యాప్లో అందుబాటులో ఉన్నాయి",
|
|
2300
|
+
downloadAppSheetAskQuestions: "మీ కుండలి రిపోర్ట్కు సంబంధించిన ప్రశ్నలను మీ స్వంత భాషలో యాప్లో అడగండి",
|
|
2301
|
+
downloadAppSheetRemedies: "మీ దృష్టి పెట్టాలనుకున్న అంశాన్ని ఎంచుకుని, మా రిపోర్ట్ ఆధారంగా పరిహారాలను పొందండి",
|
|
2302
|
+
downloadAppSheetCta: "కుండలి యాప్ను ఉచితంగా డౌన్లోడ్ చేసుకోండి",
|
|
2303
|
+
downloadAppSheetRitualTitle: "యాప్లో మీ కోసం ప్రత్యేకంగా రూపొందించిన రోజువారీ ఆచరణలు",
|
|
2304
|
+
downloadAppSheetRitualHero: "మీ దృష్టి పెట్టాలనుకున్న అంశాన్ని ఎంచుకుని, మా రిపోర్ట్ ఆధారంగా పరిహారాలను పొందండి",
|
|
2305
|
+
downloadAppSheetRitualCta: "ఈరోజు రోజువారీ ఆచరణలను యాప్లో ప్రారంభించండి",
|
|
2306
|
+
downloadAppSheetAccessDownloadReport: "మీ కుండలి రిపోర్ట్ మరియు ప్రతి సెక్షన్ యొక్క సారాంశాన్ని యాప్లో చూడండి",
|
|
2307
|
+
// Telugu title has no separate "Free" badge — rendered as plain text.
|
|
2308
|
+
downloadAppSheetQuestionTitle: "యాప్లో ఉచిత ప్రశ్న అడగండి",
|
|
2309
|
+
downloadAppSheetQuestionHero: "మీ కుండలి రిపోర్ట్కు సంబంధించిన ప్రశ్నలను మీ స్వంత భాషలో యాప్లో అడగండి",
|
|
2310
|
+
downloadAppSheetDailyRituals: "మీ దృష్టి పెట్టాలనుకున్న అంశాన్ని ఎంచుకుని, మా రిపోర్ట్ ఆధారంగా పరిహారాలను పొందండి",
|
|
2311
|
+
downloadAppSheetQuestionCta: "యాప్లో ఉచిత ప్రశ్న అడగండి"
|
|
2312
|
+
}, Sa = {
|
|
2247
2313
|
en: ft,
|
|
2248
2314
|
hi: ht,
|
|
2249
2315
|
mr: gt,
|
|
2250
2316
|
// Dropdown/type support only for now — copy falls back to English until
|
|
2251
2317
|
// real gu/ta/te/kn translations are written.
|
|
2252
2318
|
gu: bt,
|
|
2253
|
-
ta:
|
|
2254
|
-
te:
|
|
2319
|
+
ta: yt,
|
|
2320
|
+
te: kt,
|
|
2255
2321
|
kn: _t
|
|
2256
|
-
},
|
|
2322
|
+
}, Pa = Ta(null), vi = ({
|
|
2257
2323
|
locale: t,
|
|
2258
2324
|
children: n
|
|
2259
2325
|
}) => {
|
|
2260
|
-
const c = { locale: t, t: (g) =>
|
|
2261
|
-
return /* @__PURE__ */ e.jsx(
|
|
2326
|
+
const c = { locale: t, t: (g) => Sa[t]?.[g] };
|
|
2327
|
+
return /* @__PURE__ */ e.jsx(Pa.Provider, { value: c, children: n });
|
|
2262
2328
|
};
|
|
2263
|
-
function
|
|
2264
|
-
return oa(
|
|
2329
|
+
function At() {
|
|
2330
|
+
return oa(Pa);
|
|
2265
2331
|
}
|
|
2266
2332
|
const Ye = (t) => {
|
|
2267
|
-
const { priority: n, fetchPriority: i, width: c, height: g, ...
|
|
2333
|
+
const { priority: n, fetchPriority: i, width: c, height: g, ...y } = t;
|
|
2268
2334
|
return na.createElement("img", {
|
|
2269
|
-
...
|
|
2335
|
+
...y,
|
|
2270
2336
|
width: c ?? 1,
|
|
2271
2337
|
height: g ?? 1,
|
|
2272
2338
|
decoding: "async",
|
|
2273
|
-
loading:
|
|
2339
|
+
loading: y.loading ?? (n ? "eager" : "lazy"),
|
|
2274
2340
|
...i && { fetchPriority: i }
|
|
2275
2341
|
});
|
|
2276
2342
|
};
|
|
2277
|
-
function
|
|
2343
|
+
function vt(t) {
|
|
2278
2344
|
if (typeof window > "u" || !window.localStorage)
|
|
2279
2345
|
return null;
|
|
2280
2346
|
try {
|
|
@@ -2297,7 +2363,7 @@ function Ti(t) {
|
|
|
2297
2363
|
} catch {
|
|
2298
2364
|
}
|
|
2299
2365
|
}
|
|
2300
|
-
function
|
|
2366
|
+
function wi() {
|
|
2301
2367
|
if (typeof window > "u" || !window.localStorage)
|
|
2302
2368
|
return !1;
|
|
2303
2369
|
try {
|
|
@@ -2307,15 +2373,15 @@ function Pi() {
|
|
|
2307
2373
|
return !1;
|
|
2308
2374
|
}
|
|
2309
2375
|
}
|
|
2310
|
-
const
|
|
2311
|
-
function
|
|
2312
|
-
const t =
|
|
2313
|
-
return t &&
|
|
2376
|
+
const xa = "kundli_language";
|
|
2377
|
+
function wt() {
|
|
2378
|
+
const t = vt(xa);
|
|
2379
|
+
return t && wa.includes(t) ? t : null;
|
|
2314
2380
|
}
|
|
2315
|
-
function
|
|
2316
|
-
Tt(
|
|
2381
|
+
function St(t) {
|
|
2382
|
+
Tt(xa, t);
|
|
2317
2383
|
}
|
|
2318
|
-
const ia = Ta(null),
|
|
2384
|
+
const ia = Ta(null), Pt = {
|
|
2319
2385
|
fullName: "",
|
|
2320
2386
|
phone: "",
|
|
2321
2387
|
phoneCountryCode: "",
|
|
@@ -2326,31 +2392,31 @@ const ia = Ta(null), wt = {
|
|
|
2326
2392
|
birthTime: "",
|
|
2327
2393
|
birthTimeUnknown: !1,
|
|
2328
2394
|
birthPlace: ""
|
|
2329
|
-
},
|
|
2395
|
+
}, Si = ({
|
|
2330
2396
|
locale: t,
|
|
2331
2397
|
showLanguageSelector: n = !0,
|
|
2332
2398
|
showSheet: i,
|
|
2333
2399
|
userId: c,
|
|
2334
2400
|
isGlobal: g,
|
|
2335
|
-
variant:
|
|
2401
|
+
variant: y,
|
|
2336
2402
|
initialFormValues: h,
|
|
2337
|
-
autoOpenPlanSheet:
|
|
2403
|
+
autoOpenPlanSheet: P,
|
|
2338
2404
|
googleMapsApiKey: b,
|
|
2339
2405
|
atlasSearchLocalities: Y,
|
|
2340
|
-
googleMapsAutocompleteEnabled:
|
|
2406
|
+
googleMapsAutocompleteEnabled: B,
|
|
2341
2407
|
enableConsultationScheduling: N,
|
|
2342
2408
|
fetchConsultationSlots: p,
|
|
2343
2409
|
logoUrl: U,
|
|
2344
|
-
reportImageUrl:
|
|
2410
|
+
reportImageUrl: A,
|
|
2345
2411
|
reportImagePriority: j,
|
|
2346
|
-
backgroundImagePriority:
|
|
2412
|
+
backgroundImagePriority: k,
|
|
2347
2413
|
universityLogoUrls: _,
|
|
2348
|
-
sampleReportHref:
|
|
2414
|
+
sampleReportHref: x,
|
|
2349
2415
|
onViewSampleReport: te,
|
|
2350
2416
|
ctaHref: C,
|
|
2351
2417
|
onCtaClick: V,
|
|
2352
|
-
onBack:
|
|
2353
|
-
readMoreReviewsHref:
|
|
2418
|
+
onBack: S,
|
|
2419
|
+
readMoreReviewsHref: Q,
|
|
2354
2420
|
onProceed: R,
|
|
2355
2421
|
proceedHref: E,
|
|
2356
2422
|
originalPriceLabel: se,
|
|
@@ -2365,16 +2431,16 @@ const ia = Ta(null), wt = {
|
|
|
2365
2431
|
threeSkuPlans: re,
|
|
2366
2432
|
children: he
|
|
2367
2433
|
}) => {
|
|
2368
|
-
const [ue,
|
|
2369
|
-
...
|
|
2434
|
+
const [ue, Pe] = D("landing"), [ne, je] = D(t ?? "en"), [_e, pe] = D({
|
|
2435
|
+
...Pt,
|
|
2370
2436
|
...h
|
|
2371
2437
|
}), ge = M(!0);
|
|
2372
2438
|
q(() => {
|
|
2373
2439
|
if (t) return;
|
|
2374
|
-
const fe =
|
|
2440
|
+
const fe = wt();
|
|
2375
2441
|
fe && je(fe);
|
|
2376
2442
|
}, []), q(() => {
|
|
2377
|
-
|
|
2443
|
+
St(ne);
|
|
2378
2444
|
}, [ne]), q(() => {
|
|
2379
2445
|
if (ge.current) {
|
|
2380
2446
|
ge.current = !1;
|
|
@@ -2389,25 +2455,25 @@ const ia = Ta(null), wt = {
|
|
|
2389
2455
|
showSheet: i,
|
|
2390
2456
|
userId: c,
|
|
2391
2457
|
isGlobal: g,
|
|
2392
|
-
variant:
|
|
2458
|
+
variant: y,
|
|
2393
2459
|
initialFormValues: h,
|
|
2394
|
-
autoOpenPlanSheet:
|
|
2460
|
+
autoOpenPlanSheet: P,
|
|
2395
2461
|
googleMapsApiKey: b,
|
|
2396
2462
|
atlasSearchLocalities: Y,
|
|
2397
|
-
googleMapsAutocompleteEnabled:
|
|
2463
|
+
googleMapsAutocompleteEnabled: B,
|
|
2398
2464
|
enableConsultationScheduling: N,
|
|
2399
2465
|
fetchConsultationSlots: p,
|
|
2400
2466
|
logoUrl: U,
|
|
2401
|
-
reportImageUrl:
|
|
2467
|
+
reportImageUrl: A,
|
|
2402
2468
|
reportImagePriority: j,
|
|
2403
|
-
backgroundImagePriority:
|
|
2469
|
+
backgroundImagePriority: k,
|
|
2404
2470
|
universityLogoUrls: _,
|
|
2405
|
-
sampleReportHref:
|
|
2471
|
+
sampleReportHref: x,
|
|
2406
2472
|
onViewSampleReport: te,
|
|
2407
2473
|
ctaHref: C,
|
|
2408
2474
|
onCtaClick: V,
|
|
2409
|
-
onBack:
|
|
2410
|
-
readMoreReviewsHref:
|
|
2475
|
+
onBack: S,
|
|
2476
|
+
readMoreReviewsHref: Q,
|
|
2411
2477
|
onProceed: R,
|
|
2412
2478
|
proceedHref: E,
|
|
2413
2479
|
originalPriceLabel: se,
|
|
@@ -2427,25 +2493,25 @@ const ia = Ta(null), wt = {
|
|
|
2427
2493
|
i,
|
|
2428
2494
|
c,
|
|
2429
2495
|
g,
|
|
2430
|
-
|
|
2496
|
+
y,
|
|
2431
2497
|
h,
|
|
2432
|
-
|
|
2498
|
+
P,
|
|
2433
2499
|
b,
|
|
2434
2500
|
Y,
|
|
2435
|
-
|
|
2501
|
+
B,
|
|
2436
2502
|
N,
|
|
2437
2503
|
p,
|
|
2438
2504
|
U,
|
|
2439
|
-
|
|
2505
|
+
A,
|
|
2440
2506
|
j,
|
|
2441
|
-
|
|
2507
|
+
k,
|
|
2442
2508
|
_,
|
|
2443
|
-
|
|
2509
|
+
x,
|
|
2444
2510
|
te,
|
|
2445
2511
|
C,
|
|
2446
2512
|
V,
|
|
2447
|
-
|
|
2448
|
-
|
|
2513
|
+
S,
|
|
2514
|
+
Q,
|
|
2449
2515
|
R,
|
|
2450
2516
|
E,
|
|
2451
2517
|
se,
|
|
@@ -2460,9 +2526,9 @@ const ia = Ta(null), wt = {
|
|
|
2460
2526
|
re
|
|
2461
2527
|
]
|
|
2462
2528
|
), H = Re(() => {
|
|
2463
|
-
|
|
2529
|
+
Pe("form");
|
|
2464
2530
|
}, [oe.analytics]), me = Re(() => {
|
|
2465
|
-
|
|
2531
|
+
Pe("landing"), oe.onBack?.();
|
|
2466
2532
|
}, [oe.onBack]), ie = Ee(
|
|
2467
2533
|
() => ({
|
|
2468
2534
|
view: ue,
|
|
@@ -2483,7 +2549,7 @@ const ia = Ta(null), wt = {
|
|
|
2483
2549
|
function Me() {
|
|
2484
2550
|
return oa(ia);
|
|
2485
2551
|
}
|
|
2486
|
-
function
|
|
2552
|
+
function Pi() {
|
|
2487
2553
|
const t = oa(ia);
|
|
2488
2554
|
if (!t)
|
|
2489
2555
|
throw new Error(
|
|
@@ -2491,8 +2557,8 @@ function wi() {
|
|
|
2491
2557
|
);
|
|
2492
2558
|
return t;
|
|
2493
2559
|
}
|
|
2494
|
-
const
|
|
2495
|
-
header:
|
|
2560
|
+
const xt = "_header_19172_1", Ct = "_centered_19172_8", ka = {
|
|
2561
|
+
header: xt,
|
|
2496
2562
|
centered: Ct
|
|
2497
2563
|
}, Rt = ({
|
|
2498
2564
|
t,
|
|
@@ -2500,20 +2566,20 @@ const St = "_header_19172_1", Ct = "_centered_19172_8", ya = {
|
|
|
2500
2566
|
className: i = "",
|
|
2501
2567
|
align: c = "left"
|
|
2502
2568
|
}) => /* @__PURE__ */ e.jsx(
|
|
2503
|
-
|
|
2569
|
+
Qa,
|
|
2504
2570
|
{
|
|
2505
2571
|
title: t("formTitle"),
|
|
2506
2572
|
subtitle: t("formSubtitle"),
|
|
2507
2573
|
onBack: n,
|
|
2508
2574
|
backAriaLabel: t("back"),
|
|
2509
|
-
className: `${
|
|
2575
|
+
className: `${ka.header} ${c === "center" ? ka.centered : ""} ${i}`
|
|
2510
2576
|
}
|
|
2511
|
-
), jt = "_wrap_119w3_1", Nt = "_card_119w3_5", Lt = "_cardInner_119w3_12",
|
|
2577
|
+
), jt = "_wrap_119w3_1", Nt = "_card_119w3_5", Lt = "_cardInner_119w3_12", Dt = "_field_119w3_44", Bt = "_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", Qt = "_isdSelectWrap_119w3_178", zt = "_isdSelectTrigger_119w3_197", Jt = "_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", Ar = "_phoneInput_119w3_169", vr = "_iconBtn_119w3_519", Tr = "_iconBtnInteractive_119w3_525", wr = "_iconImg_119w3_544", Sr = "_checkboxRow_119w3_550", Pr = "_checkbox_119w3_550", xr = "_checkboxText_119w3_588", o = {
|
|
2512
2578
|
wrap: jt,
|
|
2513
2579
|
card: Nt,
|
|
2514
2580
|
cardInner: Lt,
|
|
2515
|
-
field:
|
|
2516
|
-
labelRow:
|
|
2581
|
+
field: Dt,
|
|
2582
|
+
labelRow: Bt,
|
|
2517
2583
|
label: Et,
|
|
2518
2584
|
req: It,
|
|
2519
2585
|
help: Ft,
|
|
@@ -2528,8 +2594,8 @@ const St = "_header_19172_1", Ct = "_centered_19172_8", ya = {
|
|
|
2528
2594
|
inputWrap: qt,
|
|
2529
2595
|
isdWrap: Yt,
|
|
2530
2596
|
phoneInputGroup: Vt,
|
|
2531
|
-
isdSelectWrap:
|
|
2532
|
-
isdSelectTrigger:
|
|
2597
|
+
isdSelectWrap: Qt,
|
|
2598
|
+
isdSelectTrigger: zt,
|
|
2533
2599
|
isdDropdown: Jt,
|
|
2534
2600
|
isdSearchWrap: Xt,
|
|
2535
2601
|
isdSearchInput: Zt,
|
|
@@ -2552,18 +2618,18 @@ const St = "_header_19172_1", Ct = "_centered_19172_8", ya = {
|
|
|
2552
2618
|
meridiemActive: gr,
|
|
2553
2619
|
timePopoverActions: br,
|
|
2554
2620
|
timePopoverBtn: _r,
|
|
2555
|
-
timePopoverOk:
|
|
2556
|
-
input:
|
|
2557
|
-
phoneInput:
|
|
2558
|
-
iconBtn:
|
|
2621
|
+
timePopoverOk: yr,
|
|
2622
|
+
input: kr,
|
|
2623
|
+
phoneInput: Ar,
|
|
2624
|
+
iconBtn: vr,
|
|
2559
2625
|
iconBtnInteractive: Tr,
|
|
2560
|
-
iconImg:
|
|
2561
|
-
checkboxRow:
|
|
2562
|
-
checkbox:
|
|
2563
|
-
checkboxText:
|
|
2626
|
+
iconImg: wr,
|
|
2627
|
+
checkboxRow: Sr,
|
|
2628
|
+
checkbox: Pr,
|
|
2629
|
+
checkboxText: xr
|
|
2564
2630
|
};
|
|
2565
|
-
let
|
|
2566
|
-
const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() :
|
|
2631
|
+
let Qe = null;
|
|
2632
|
+
const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : Qe || (Qe = new Promise((i, c) => {
|
|
2567
2633
|
const g = document.querySelector(
|
|
2568
2634
|
'script[data-google-maps-places="true"]'
|
|
2569
2635
|
);
|
|
@@ -2574,14 +2640,14 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2574
2640
|
);
|
|
2575
2641
|
return;
|
|
2576
2642
|
}
|
|
2577
|
-
const
|
|
2578
|
-
h.searchParams.set("key", t), h.searchParams.set("libraries", "places"), h.searchParams.set("loading", "async"), n && h.searchParams.set("language", n),
|
|
2579
|
-
const
|
|
2643
|
+
const y = document.createElement("script"), h = new URL("https://maps.googleapis.com/maps/api/js");
|
|
2644
|
+
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 = () => {
|
|
2645
|
+
const P = Date.now(), b = () => {
|
|
2580
2646
|
if (window.google?.maps?.places) {
|
|
2581
2647
|
i();
|
|
2582
2648
|
return;
|
|
2583
2649
|
}
|
|
2584
|
-
if (Date.now() -
|
|
2650
|
+
if (Date.now() - P > 2e3) {
|
|
2585
2651
|
c(
|
|
2586
2652
|
new Error(
|
|
2587
2653
|
"Google Maps loaded but Places library is unavailable. Check API key restrictions / enabled APIs."
|
|
@@ -2592,10 +2658,10 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2592
2658
|
window.setTimeout(b, 50);
|
|
2593
2659
|
};
|
|
2594
2660
|
b();
|
|
2595
|
-
},
|
|
2596
|
-
}),
|
|
2597
|
-
const { apiKey: n, language: i = "en", restrictCountry: c, deferLoad: g = !1 } = t, [
|
|
2598
|
-
g &&
|
|
2661
|
+
}, y.onerror = () => c(new Error("Failed to load Google Maps API")), document.head.appendChild(y);
|
|
2662
|
+
}), Qe), Rr = (t) => {
|
|
2663
|
+
const { apiKey: n, language: i = "en", restrictCountry: c, deferLoad: g = !1 } = t, [y, h] = D(!1), [P, b] = D([]), [Y, B] = D(!1), [N, p] = D(null), [U, A] = D(!g), j = M(null), k = M(null), _ = M(null), x = Re(() => {
|
|
2664
|
+
g && A(!0);
|
|
2599
2665
|
}, [g]);
|
|
2600
2666
|
q(() => {
|
|
2601
2667
|
if (!n || !U) {
|
|
@@ -2604,29 +2670,29 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2604
2670
|
}
|
|
2605
2671
|
Cr(n, i).then(() => {
|
|
2606
2672
|
j.current = new google.maps.places.AutocompleteService();
|
|
2607
|
-
const
|
|
2608
|
-
|
|
2609
|
-
}).catch((
|
|
2610
|
-
h(!1), p(
|
|
2673
|
+
const S = document.createElement("div");
|
|
2674
|
+
k.current = new google.maps.places.PlacesService(S), _.current = new google.maps.places.AutocompleteSessionToken(), h(!0), p(null);
|
|
2675
|
+
}).catch((S) => {
|
|
2676
|
+
h(!1), p(S?.message || "Failed to load location service");
|
|
2611
2677
|
});
|
|
2612
2678
|
}, [n, i, U]);
|
|
2613
2679
|
const te = Re(
|
|
2614
|
-
async (
|
|
2615
|
-
if (!
|
|
2680
|
+
async (S) => {
|
|
2681
|
+
if (!S || S.length < 2 || !j.current) {
|
|
2616
2682
|
b([]);
|
|
2617
2683
|
return;
|
|
2618
2684
|
}
|
|
2619
|
-
|
|
2685
|
+
B(!0);
|
|
2620
2686
|
try {
|
|
2621
|
-
const
|
|
2622
|
-
input:
|
|
2687
|
+
const Q = {
|
|
2688
|
+
input: S,
|
|
2623
2689
|
types: ["(cities)"],
|
|
2624
2690
|
sessionToken: _.current ?? void 0
|
|
2625
2691
|
};
|
|
2626
|
-
c && (
|
|
2692
|
+
c && (Q.componentRestrictions = { country: c });
|
|
2627
2693
|
const R = await new Promise((E, se) => {
|
|
2628
2694
|
j.current.getPlacePredictions(
|
|
2629
|
-
|
|
2695
|
+
Q,
|
|
2630
2696
|
(ae, G) => {
|
|
2631
2697
|
G === google.maps.places.PlacesServiceStatus.OK && ae ? E(ae) : G === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? E([]) : se(new Error(`Places API error: ${G}`));
|
|
2632
2698
|
}
|
|
@@ -2645,19 +2711,19 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2645
2711
|
} catch {
|
|
2646
2712
|
b([]);
|
|
2647
2713
|
} finally {
|
|
2648
|
-
|
|
2714
|
+
B(!1);
|
|
2649
2715
|
}
|
|
2650
2716
|
},
|
|
2651
2717
|
[c]
|
|
2652
2718
|
), C = Re(
|
|
2653
|
-
async (
|
|
2654
|
-
if (!
|
|
2719
|
+
async (S) => {
|
|
2720
|
+
if (!k.current) return null;
|
|
2655
2721
|
try {
|
|
2656
|
-
const
|
|
2722
|
+
const Q = await new Promise(
|
|
2657
2723
|
(I, $) => {
|
|
2658
|
-
|
|
2724
|
+
k.current.getDetails(
|
|
2659
2725
|
{
|
|
2660
|
-
placeId:
|
|
2726
|
+
placeId: S,
|
|
2661
2727
|
fields: ["geometry", "address_components", "formatted_address"],
|
|
2662
2728
|
sessionToken: _.current ?? void 0
|
|
2663
2729
|
},
|
|
@@ -2668,12 +2734,12 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2668
2734
|
}
|
|
2669
2735
|
);
|
|
2670
2736
|
_.current = new google.maps.places.AutocompleteSessionToken();
|
|
2671
|
-
const R =
|
|
2737
|
+
const R = Q.geometry?.location?.lat() || 0, E = Q.geometry?.location?.lng() || 0;
|
|
2672
2738
|
let se = "", ae = "", G = "";
|
|
2673
|
-
return
|
|
2739
|
+
return Q.address_components?.forEach((I) => {
|
|
2674
2740
|
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);
|
|
2675
2741
|
}), {
|
|
2676
|
-
display_name:
|
|
2742
|
+
display_name: Q.formatted_address || "",
|
|
2677
2743
|
lat: R,
|
|
2678
2744
|
lng: E,
|
|
2679
2745
|
city: se,
|
|
@@ -2687,17 +2753,17 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2687
2753
|
[]
|
|
2688
2754
|
), V = Re(() => b([]), []);
|
|
2689
2755
|
return {
|
|
2690
|
-
isLoaded:
|
|
2691
|
-
predictions:
|
|
2756
|
+
isLoaded: y,
|
|
2757
|
+
predictions: P,
|
|
2692
2758
|
isSearching: Y,
|
|
2693
2759
|
loadError: N,
|
|
2694
2760
|
searchPlaces: te,
|
|
2695
2761
|
getPlaceDetails: C,
|
|
2696
2762
|
clearPredictions: V,
|
|
2697
|
-
triggerLoad:
|
|
2763
|
+
triggerLoad: x
|
|
2698
2764
|
// Call this to start loading Google Maps when deferred
|
|
2699
2765
|
};
|
|
2700
|
-
},
|
|
2766
|
+
}, Aa = (t) => typeof t == "number" && Number.isFinite(t), jr = (t) => {
|
|
2701
2767
|
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;
|
|
2702
2768
|
return {
|
|
2703
2769
|
limit: n,
|
|
@@ -2705,11 +2771,11 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2705
2771
|
restrictCountry: t?.restrictCountry
|
|
2706
2772
|
};
|
|
2707
2773
|
}, Nr = (t) => {
|
|
2708
|
-
const { searchLocalities: n, restrictCountry: i } = t, [c, g] =
|
|
2774
|
+
const { searchLocalities: n, restrictCountry: i } = t, [c, g] = D([]), [y, h] = D(!1), [P, b] = D(null), Y = M(0);
|
|
2709
2775
|
q(() => {
|
|
2710
2776
|
b(null);
|
|
2711
2777
|
}, [n]);
|
|
2712
|
-
const
|
|
2778
|
+
const B = Re(
|
|
2713
2779
|
async (p) => {
|
|
2714
2780
|
if (!p || p.length < 2 || !n) {
|
|
2715
2781
|
g([]);
|
|
@@ -2718,10 +2784,10 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2718
2784
|
const U = ++Y.current;
|
|
2719
2785
|
h(!0), b(null);
|
|
2720
2786
|
try {
|
|
2721
|
-
const
|
|
2787
|
+
const A = jr({ restrictCountry: i }), j = await n(p, A);
|
|
2722
2788
|
if (U !== Y.current) return;
|
|
2723
|
-
const
|
|
2724
|
-
(_) => !!_?.id && !!_?.description &&
|
|
2789
|
+
const k = (j || []).filter(
|
|
2790
|
+
(_) => !!_?.id && !!_?.description && Aa(_?.lat) && Aa(_?.lng)
|
|
2725
2791
|
).map((_) => ({
|
|
2726
2792
|
id: _.id,
|
|
2727
2793
|
description: _.description,
|
|
@@ -2729,10 +2795,10 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2729
2795
|
lat: _.lat,
|
|
2730
2796
|
lng: _.lng
|
|
2731
2797
|
}));
|
|
2732
|
-
g(
|
|
2733
|
-
} catch (
|
|
2798
|
+
g(k);
|
|
2799
|
+
} catch (A) {
|
|
2734
2800
|
if (U !== Y.current) return;
|
|
2735
|
-
g([]), b(
|
|
2801
|
+
g([]), b(A?.message || "Failed to fetch locations");
|
|
2736
2802
|
} finally {
|
|
2737
2803
|
U === Y.current && h(!1);
|
|
2738
2804
|
}
|
|
@@ -2741,9 +2807,9 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2741
2807
|
), N = Re(() => g([]), []);
|
|
2742
2808
|
return {
|
|
2743
2809
|
predictions: c,
|
|
2744
|
-
isSearching:
|
|
2745
|
-
loadError:
|
|
2746
|
-
searchPlaces:
|
|
2810
|
+
isSearching: y,
|
|
2811
|
+
loadError: P,
|
|
2812
|
+
searchPlaces: B,
|
|
2747
2813
|
clearPredictions: N
|
|
2748
2814
|
};
|
|
2749
2815
|
}, Oe = {
|
|
@@ -2821,26 +2887,26 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2821
2887
|
{ code: "+975", country: "Bhutan" },
|
|
2822
2888
|
{ code: "+976", country: "Mongolia" },
|
|
2823
2889
|
{ code: "+977", country: "Nepal" }
|
|
2824
|
-
], ra = Ca.map((t) => t.code), Ra = 10, la = (t) => t.replace(/\D/g, ""),
|
|
2890
|
+
], ra = Ca.map((t) => t.code), Ra = 10, la = (t) => t.replace(/\D/g, ""), va = (t) => la(t).slice(0, Ra), Lr = (t) => la(t).length === Ra, Dr = (t, n, i) => Lr(t) ? i.phone ? { shouldTrack: !1 } : (i.phone = !0, { shouldTrack: !0, fullPhone: `${n}-${la(t)}` }) : (i.phone = !1, { shouldTrack: !1 }), Br = {}, Er = ({
|
|
2825
2891
|
t,
|
|
2826
2892
|
values: n,
|
|
2827
2893
|
onChange: i,
|
|
2828
2894
|
phoneIsdCode: c,
|
|
2829
2895
|
onPhoneIsdCodeChange: g,
|
|
2830
|
-
showV1ExtraFields:
|
|
2896
|
+
showV1ExtraFields: y = !1,
|
|
2831
2897
|
analytics: h,
|
|
2832
|
-
googleMapsApiKey:
|
|
2898
|
+
googleMapsApiKey: P,
|
|
2833
2899
|
atlasSearchLocalities: b,
|
|
2834
2900
|
googleMapsAutocompleteEnabled: Y,
|
|
2835
|
-
className:
|
|
2901
|
+
className: B = ""
|
|
2836
2902
|
}) => {
|
|
2837
|
-
const N = Me(), p = N?.config?.analytics ?? h, U = N?.config.isGlobal ?? !0,
|
|
2903
|
+
const N = Me(), p = N?.config?.analytics ?? h, U = N?.config.isGlobal ?? !0, A = N?.config?.googleMapsApiKey, j = N?.config?.atlasSearchLocalities, k = N?.config?.googleMapsAutocompleteEnabled, [_, x] = D(!1), [te, C] = D(""), V = M(null), S = M(null), Q = M({}), R = (r) => i({ ...n, ...r }), E = (r, d) => {
|
|
2838
2904
|
if (r === "phone") {
|
|
2839
|
-
const
|
|
2840
|
-
|
|
2905
|
+
const z = Dr(d, c, Q.current);
|
|
2906
|
+
z.shouldTrack && p?.trackPhoneSectionFilled?.({ phone: z.fullPhone });
|
|
2841
2907
|
return;
|
|
2842
2908
|
}
|
|
2843
|
-
d.trim() && !
|
|
2909
|
+
d.trim() && !Q.current[r] && (Q.current[r] = !0, {
|
|
2844
2910
|
fullName: () => p?.trackNameSectionFilled?.(),
|
|
2845
2911
|
dateOfBirth: () => p?.trackDobFilled?.(),
|
|
2846
2912
|
birthTime: () => p?.trackTimeFilled?.(),
|
|
@@ -2851,42 +2917,42 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2851
2917
|
d.trim() && p?.trackEmailSectionFilled?.({ email: d });
|
|
2852
2918
|
}, ae = te.trim().toLowerCase(), G = Ca.filter((r) => ae ? r.country.toLowerCase().includes(ae) || r.code.includes(ae) : !0), I = M(null);
|
|
2853
2919
|
M(null);
|
|
2854
|
-
const $ = M(null), X = M(0), O = M(null), [Te, K] =
|
|
2920
|
+
const $ = M(null), X = M(0), O = M(null), [Te, K] = D(!1), [re, he] = D({ hour12: 12, minute: "00", meridiem: "AM" }), ue = (r) => String(r).padStart(2, "0"), Pe = (r) => {
|
|
2855
2921
|
const d = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
|
|
2856
2922
|
if (!d) return r;
|
|
2857
|
-
const
|
|
2858
|
-
return `${
|
|
2923
|
+
const z = Number(d[1]), xe = d[2], $e = z >= 12 ? "PM" : "AM";
|
|
2924
|
+
return `${z % 12 === 0 ? 12 : z % 12}:${xe} ${$e}`;
|
|
2859
2925
|
}, ne = (r) => {
|
|
2860
2926
|
const d = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
|
|
2861
2927
|
if (!d) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
2862
|
-
const
|
|
2863
|
-
return { hour12:
|
|
2928
|
+
const z = Number(d[1]), xe = d[2], $e = z >= 12 ? "PM" : "AM";
|
|
2929
|
+
return { hour12: z % 12 === 0 ? 12 : z % 12, minute: xe, meridiem: $e };
|
|
2864
2930
|
}, je = (r) => {
|
|
2865
|
-
const d = Math.min(12, Math.max(1, r.hour12)),
|
|
2866
|
-
let
|
|
2867
|
-
return r.meridiem === "PM" && (
|
|
2868
|
-
}, _e = M(null), [pe, ge] =
|
|
2931
|
+
const d = Math.min(12, Math.max(1, r.hour12)), z = /^([0-5]\d)$/.test(r.minute) ? r.minute : "00";
|
|
2932
|
+
let xe = d % 12;
|
|
2933
|
+
return r.meridiem === "PM" && (xe += 12), `${ue(xe)}:${z}`;
|
|
2934
|
+
}, _e = M(null), [pe, ge] = D(!1), oe = M(n.birthPlace ?? ""), [H, me] = D(
|
|
2869
2935
|
null
|
|
2870
|
-
), ie =
|
|
2936
|
+
), ie = P ?? A ?? Br?.VITE_GOOGLE_MAPS_API_KEY, fe = b ?? j, ee = Y ?? k ?? !0, ce = (n.birthPlace ?? "").trim(), Ne = U ? void 0 : "in", ye = Rr({
|
|
2871
2937
|
apiKey: ee ? ie : void 0,
|
|
2872
2938
|
language: "en",
|
|
2873
2939
|
restrictCountry: Ne
|
|
2874
|
-
}),
|
|
2940
|
+
}), ke = Nr({
|
|
2875
2941
|
searchLocalities: ee ? void 0 : fe,
|
|
2876
2942
|
restrictCountry: Ne
|
|
2877
|
-
}),
|
|
2943
|
+
}), Se = ee ? ye.predictions.map((r) => ({
|
|
2878
2944
|
id: r.place_id,
|
|
2879
2945
|
description: r.description,
|
|
2880
2946
|
secondaryText: r.structured_formatting?.secondary_text,
|
|
2881
2947
|
lat: void 0,
|
|
2882
2948
|
lng: void 0
|
|
2883
|
-
})) :
|
|
2949
|
+
})) : ke.predictions.map((r) => ({
|
|
2884
2950
|
id: r.id,
|
|
2885
2951
|
description: r.description,
|
|
2886
2952
|
secondaryText: r.secondary_text,
|
|
2887
2953
|
lat: r.lat,
|
|
2888
2954
|
lng: r.lng
|
|
2889
|
-
})),
|
|
2955
|
+
})), De = ee ? ye.isSearching : ke.isSearching, Be = ee ? ye.loadError : ke.loadError, w = ee ? !!ie : !!fe, l = ee ? ye.searchPlaces : ke.searchPlaces, f = ee ? ye.clearPredictions : ke.clearPredictions, Z = M(() => {
|
|
2890
2956
|
});
|
|
2891
2957
|
Z.current = () => {
|
|
2892
2958
|
(n.birthPlace ?? "") !== oe.current && R({
|
|
@@ -2901,13 +2967,13 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2901
2967
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
2902
2968
|
}, []), q(() => {
|
|
2903
2969
|
const r = (d) => {
|
|
2904
|
-
V.current && (V.current.contains(d.target) || (
|
|
2970
|
+
V.current && (V.current.contains(d.target) || (x(!1), C("")));
|
|
2905
2971
|
};
|
|
2906
2972
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
2907
2973
|
}, []), q(() => {
|
|
2908
2974
|
if (!_) return;
|
|
2909
2975
|
const r = window.setTimeout(() => {
|
|
2910
|
-
|
|
2976
|
+
S.current?.focus();
|
|
2911
2977
|
}, 0);
|
|
2912
2978
|
return () => window.clearTimeout(r);
|
|
2913
2979
|
}, [_]), q(() => {
|
|
@@ -2941,10 +3007,10 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2941
3007
|
};
|
|
2942
3008
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
2943
3009
|
}, []), q(() => {
|
|
2944
|
-
const r = (
|
|
2945
|
-
|
|
2946
|
-
}, d = (
|
|
2947
|
-
|
|
3010
|
+
const r = (z) => {
|
|
3011
|
+
z.target?.closest?.("[data-info-tooltip]") == null && me(null);
|
|
3012
|
+
}, d = (z) => {
|
|
3013
|
+
z.key === "Escape" && me(null);
|
|
2948
3014
|
};
|
|
2949
3015
|
return document.addEventListener("mousedown", r), document.addEventListener("keydown", d), () => {
|
|
2950
3016
|
document.removeEventListener("mousedown", r), document.removeEventListener("keydown", d);
|
|
@@ -2952,7 +3018,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2952
3018
|
}, []), /* @__PURE__ */ e.jsx(
|
|
2953
3019
|
"section",
|
|
2954
3020
|
{
|
|
2955
|
-
className: `${o.wrap} ${
|
|
3021
|
+
className: `${o.wrap} ${B}`,
|
|
2956
3022
|
"aria-label": t("formTitle"),
|
|
2957
3023
|
children: /* @__PURE__ */ e.jsx("div", { className: o.card, children: /* @__PURE__ */ e.jsxs("div", { className: o.cardInner, children: [
|
|
2958
3024
|
/* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
@@ -2992,7 +3058,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2992
3058
|
"aria-haspopup": "listbox",
|
|
2993
3059
|
"aria-expanded": _,
|
|
2994
3060
|
onClick: () => {
|
|
2995
|
-
|
|
3061
|
+
x((r) => !r), C("");
|
|
2996
3062
|
},
|
|
2997
3063
|
children: c
|
|
2998
3064
|
}
|
|
@@ -3007,7 +3073,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3007
3073
|
onFocus: () => p?.trackPhoneSectionClicked?.(),
|
|
3008
3074
|
onChange: (r) => {
|
|
3009
3075
|
const d = r.target.value;
|
|
3010
|
-
R({ phone:
|
|
3076
|
+
R({ phone: va(d) }), E("phone", va(d));
|
|
3011
3077
|
},
|
|
3012
3078
|
placeholder: t("formPhonePlaceholder"),
|
|
3013
3079
|
autoComplete: "tel",
|
|
@@ -3029,7 +3095,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3029
3095
|
/* @__PURE__ */ e.jsx("div", { className: o.isdSearchWrap, children: /* @__PURE__ */ e.jsx(
|
|
3030
3096
|
"input",
|
|
3031
3097
|
{
|
|
3032
|
-
ref:
|
|
3098
|
+
ref: S,
|
|
3033
3099
|
type: "text",
|
|
3034
3100
|
value: te,
|
|
3035
3101
|
onChange: (r) => C(r.target.value),
|
|
@@ -3046,7 +3112,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3046
3112
|
"aria-selected": r.code === c,
|
|
3047
3113
|
className: `${o.isdOption} ${r.code === c ? o.isdOptionActive : ""}`,
|
|
3048
3114
|
onClick: () => {
|
|
3049
|
-
g(r.code),
|
|
3115
|
+
g(r.code), x(!1), C("");
|
|
3050
3116
|
},
|
|
3051
3117
|
children: [
|
|
3052
3118
|
/* @__PURE__ */ e.jsx("span", { className: o.isdCountryName, children: r.country }),
|
|
@@ -3060,7 +3126,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3060
3126
|
)
|
|
3061
3127
|
] }) })
|
|
3062
3128
|
] }),
|
|
3063
|
-
|
|
3129
|
+
y && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
3064
3130
|
/* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, children: [
|
|
3065
3131
|
t("formGender"),
|
|
3066
3132
|
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
@@ -3181,8 +3247,8 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3181
3247
|
return `${r.getFullYear()}-${ue(r.getMonth() + 1)}-${ue(r.getDate())}`;
|
|
3182
3248
|
})(),
|
|
3183
3249
|
onChange: (r) => {
|
|
3184
|
-
const d = r.target.value,
|
|
3185
|
-
d && d >
|
|
3250
|
+
const d = r.target.value, z = /* @__PURE__ */ new Date(), xe = `${z.getFullYear()}-${ue(z.getMonth() + 1)}-${ue(z.getDate())}`;
|
|
3251
|
+
d && d > xe || (R({ dateOfBirth: d }), E("dateOfBirth", d), $.current = null);
|
|
3186
3252
|
},
|
|
3187
3253
|
onFocus: () => p?.trackDobClicked?.(),
|
|
3188
3254
|
onClick: () => be(I),
|
|
@@ -3255,7 +3321,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3255
3321
|
id: "kundli-birth-time",
|
|
3256
3322
|
className: o.input,
|
|
3257
3323
|
type: "text",
|
|
3258
|
-
value: n.birthTime ?
|
|
3324
|
+
value: n.birthTime ? Pe(n.birthTime) : "",
|
|
3259
3325
|
readOnly: !0,
|
|
3260
3326
|
onFocus: () => p?.trackTimeClicked?.(),
|
|
3261
3327
|
onChange: (r) => {
|
|
@@ -3492,7 +3558,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3492
3558
|
"aria-hidden": !0
|
|
3493
3559
|
}
|
|
3494
3560
|
) }),
|
|
3495
|
-
pe &&
|
|
3561
|
+
pe && Se.length > 0 && /* @__PURE__ */ e.jsx("div", { className: o.suggestions, role: "listbox", children: Se.slice(0, 8).map((r) => /* @__PURE__ */ e.jsxs(
|
|
3496
3562
|
"button",
|
|
3497
3563
|
{
|
|
3498
3564
|
type: "button",
|
|
@@ -3504,14 +3570,14 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3504
3570
|
birthPlaceLat: r.lat,
|
|
3505
3571
|
birthPlaceLng: r.lng
|
|
3506
3572
|
}), f(), ge(!1), ee) {
|
|
3507
|
-
const
|
|
3573
|
+
const z = await ye.getPlaceDetails(
|
|
3508
3574
|
r.id
|
|
3509
3575
|
);
|
|
3510
|
-
|
|
3576
|
+
z && (oe.current = d, i({
|
|
3511
3577
|
...n,
|
|
3512
3578
|
birthPlace: d,
|
|
3513
|
-
birthPlaceLat:
|
|
3514
|
-
birthPlaceLng:
|
|
3579
|
+
birthPlaceLat: z.lat,
|
|
3580
|
+
birthPlaceLng: z.lng
|
|
3515
3581
|
}));
|
|
3516
3582
|
}
|
|
3517
3583
|
},
|
|
@@ -3522,11 +3588,11 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3522
3588
|
},
|
|
3523
3589
|
r.id
|
|
3524
3590
|
)) }),
|
|
3525
|
-
pe &&
|
|
3526
|
-
pe &&
|
|
3591
|
+
pe && w && De && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: "Loading…" }),
|
|
3592
|
+
pe && w && !De && !!Be && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: Be })
|
|
3527
3593
|
] })
|
|
3528
3594
|
] }),
|
|
3529
|
-
|
|
3595
|
+
y && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
3530
3596
|
/* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, children: [
|
|
3531
3597
|
t("formReportLanguage"),
|
|
3532
3598
|
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
@@ -3726,47 +3792,47 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3726
3792
|
phoneIsdCode: i,
|
|
3727
3793
|
requireV1ExtraFields: c = !1,
|
|
3728
3794
|
onValidationFailed: g,
|
|
3729
|
-
onProceed:
|
|
3795
|
+
onProceed: y,
|
|
3730
3796
|
onProceedGuidance: h,
|
|
3731
|
-
href:
|
|
3797
|
+
href: P,
|
|
3732
3798
|
analytics: b,
|
|
3733
3799
|
className: Y = "",
|
|
3734
|
-
discountedPriceLabel:
|
|
3800
|
+
discountedPriceLabel: B,
|
|
3735
3801
|
discountPillLabel: N,
|
|
3736
3802
|
showPlanSheet: p,
|
|
3737
3803
|
confirmPlan: U,
|
|
3738
|
-
planSheetOpen:
|
|
3804
|
+
planSheetOpen: A,
|
|
3739
3805
|
selectedPlan: j
|
|
3740
3806
|
}) => {
|
|
3741
|
-
const
|
|
3807
|
+
const k = Me(), _ = k?.config.isGlobal ?? !0, x = k?.config?.variant, te = Ee(
|
|
3742
3808
|
() => Yr(n, _, c),
|
|
3743
3809
|
[n, _, c]
|
|
3744
|
-
), C = te === null, V =
|
|
3745
|
-
if (se.preventDefault(),
|
|
3810
|
+
), C = te === null, V = x === "v1" && k?.config?.showSheet, S = _ ? B ?? t("formDiscountedPrice") : V ? "" : "₹499", Q = k?.config.imageComponent ?? Ye, R = (se) => {
|
|
3811
|
+
if (se.preventDefault(), x === "v1" && !C && b?.trackKundliDetailedClicked?.(), !C) {
|
|
3746
3812
|
te && g?.(te);
|
|
3747
3813
|
return;
|
|
3748
3814
|
}
|
|
3749
|
-
const ae = !!h &&
|
|
3815
|
+
const ae = !!h && x === "v1" && j?.id === ja, G = (n.phone ?? "").trim(), I = {
|
|
3750
3816
|
...n,
|
|
3751
3817
|
phone: G && `${i}-${G}`
|
|
3752
3818
|
};
|
|
3753
3819
|
if (V) {
|
|
3754
|
-
|
|
3820
|
+
A ? U?.() : p?.(I);
|
|
3755
3821
|
return;
|
|
3756
3822
|
}
|
|
3757
|
-
b?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), ae ? h(I) :
|
|
3823
|
+
b?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), ae ? h(I) : y?.(I);
|
|
3758
3824
|
}, E = /* @__PURE__ */ e.jsx(
|
|
3759
|
-
|
|
3825
|
+
za,
|
|
3760
3826
|
{
|
|
3761
|
-
href:
|
|
3762
|
-
disabled:
|
|
3827
|
+
href: P,
|
|
3828
|
+
disabled: x === "v1" ? !1 : !C,
|
|
3763
3829
|
onClick: R,
|
|
3764
3830
|
"aria-label": t("formPriceAria"),
|
|
3765
|
-
className:
|
|
3766
|
-
children:
|
|
3767
|
-
V ? t("selectPackage") :
|
|
3831
|
+
className: x === "v1" && C ? Ke.ctaFilled : x === "v1" ? Ke.ctaButton : void 0,
|
|
3832
|
+
children: x === "v1" ? C ? /* @__PURE__ */ e.jsxs("span", { className: Ke.ctaFilledContent, children: [
|
|
3833
|
+
V ? t("selectPackage") : A && j ? `${t("proceedWithPlan")}${j.price}` : `${t("formProceed")} ${S}`,
|
|
3768
3834
|
/* @__PURE__ */ e.jsx(
|
|
3769
|
-
|
|
3835
|
+
Q,
|
|
3770
3836
|
{
|
|
3771
3837
|
src: Hr,
|
|
3772
3838
|
alt: "",
|
|
@@ -3779,7 +3845,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3779
3845
|
] }) : t("formCtaDefault") : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3780
3846
|
t("formProceed"),
|
|
3781
3847
|
" ",
|
|
3782
|
-
|
|
3848
|
+
S
|
|
3783
3849
|
] })
|
|
3784
3850
|
}
|
|
3785
3851
|
);
|
|
@@ -3791,13 +3857,13 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3791
3857
|
children: E
|
|
3792
3858
|
}
|
|
3793
3859
|
);
|
|
3794
|
-
},
|
|
3860
|
+
}, Qr = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", zr = ({
|
|
3795
3861
|
t,
|
|
3796
3862
|
languageSelector: n,
|
|
3797
|
-
logoUrl: i =
|
|
3863
|
+
logoUrl: i = Qr,
|
|
3798
3864
|
className: c = ""
|
|
3799
3865
|
}) => {
|
|
3800
|
-
const g = Me(),
|
|
3866
|
+
const g = Me(), y = g?.config.isGlobal ?? !0, h = n != null && !y;
|
|
3801
3867
|
return /* @__PURE__ */ e.jsx(
|
|
3802
3868
|
Za,
|
|
3803
3869
|
{
|
|
@@ -3861,7 +3927,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3861
3927
|
/* @__PURE__ */ e.jsx("path", { d: "M3 9.5h18", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
3862
3928
|
/* @__PURE__ */ e.jsx("path", { d: "M8 2.5v4M16 2.5v4", stroke: "#D1D5DB", strokeWidth: "1.6", strokeLinecap: "round" }),
|
|
3863
3929
|
/* @__PURE__ */ e.jsx("path", { d: "M7.5 20.5L17 6", stroke: "#9CA3AF", strokeWidth: "1.6", strokeLinecap: "round" })
|
|
3864
|
-
] }), 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",
|
|
3930
|
+
] }), 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", An = "_planTitle_pvy8j_210", vn = "_radioCircle_pvy8j_225", Tn = "_radioChecked_pvy8j_238", wn = "_radioInner_pvy8j_243", Sn = "_priceRow_pvy8j_251", Pn = "_price_pvy8j_251", xn = "_originalPrice_pvy8j_264", Cn = "_savingsBadge_pvy8j_271", Rn = "_featureList_pvy8j_281", jn = "_featureItem_pvy8j_290", Nn = "_featureIcon_pvy8j_296", Ln = "_featureText_pvy8j_302", Dn = "_astrologerHeading_pvy8j_313", Bn = "_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 = {
|
|
3865
3931
|
overlay: nn,
|
|
3866
3932
|
sheet: on,
|
|
3867
3933
|
sheetFullScreen: ln,
|
|
@@ -3876,22 +3942,22 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3876
3942
|
planCardSelected: gn,
|
|
3877
3943
|
planCardPopular: bn,
|
|
3878
3944
|
popularBadge: _n,
|
|
3879
|
-
planCardInner:
|
|
3880
|
-
planTitleRow:
|
|
3881
|
-
planTitle:
|
|
3882
|
-
radioCircle:
|
|
3945
|
+
planCardInner: yn,
|
|
3946
|
+
planTitleRow: kn,
|
|
3947
|
+
planTitle: An,
|
|
3948
|
+
radioCircle: vn,
|
|
3883
3949
|
radioChecked: Tn,
|
|
3884
|
-
radioInner:
|
|
3885
|
-
priceRow:
|
|
3886
|
-
price:
|
|
3887
|
-
originalPrice:
|
|
3950
|
+
radioInner: wn,
|
|
3951
|
+
priceRow: Sn,
|
|
3952
|
+
price: Pn,
|
|
3953
|
+
originalPrice: xn,
|
|
3888
3954
|
savingsBadge: Cn,
|
|
3889
3955
|
featureList: Rn,
|
|
3890
3956
|
featureItem: jn,
|
|
3891
3957
|
featureIcon: Nn,
|
|
3892
3958
|
featureText: Ln,
|
|
3893
|
-
astrologerHeading:
|
|
3894
|
-
astrologerList:
|
|
3959
|
+
astrologerHeading: Dn,
|
|
3960
|
+
astrologerList: Bn,
|
|
3895
3961
|
astrologerCard: En,
|
|
3896
3962
|
astrologerAvatar: In,
|
|
3897
3963
|
astrologerAvatarPlaceholder: Fn,
|
|
@@ -3906,7 +3972,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3906
3972
|
bullet: qn,
|
|
3907
3973
|
footer: Yn,
|
|
3908
3974
|
proceedBtn: Vn
|
|
3909
|
-
},
|
|
3975
|
+
}, Qn = ({ title: t, onBack: n }) => /* @__PURE__ */ e.jsxs("div", { className: T.header, children: [
|
|
3910
3976
|
/* @__PURE__ */ e.jsx(
|
|
3911
3977
|
"button",
|
|
3912
3978
|
{
|
|
@@ -3918,7 +3984,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3918
3984
|
}
|
|
3919
3985
|
),
|
|
3920
3986
|
/* @__PURE__ */ e.jsx("h2", { className: T.title, children: t })
|
|
3921
|
-
] }),
|
|
3987
|
+
] }), 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: [
|
|
3922
3988
|
/* @__PURE__ */ e.jsx("span", { className: T.featureIcon, children: i.included ? /* @__PURE__ */ e.jsx(Na, {}) : /* @__PURE__ */ e.jsx(Jr, {}) }),
|
|
3923
3989
|
/* @__PURE__ */ e.jsx(
|
|
3924
3990
|
"span",
|
|
@@ -3945,7 +4011,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3945
4011
|
/* @__PURE__ */ e.jsx(Zr, {}),
|
|
3946
4012
|
/* @__PURE__ */ e.jsx("span", { children: t })
|
|
3947
4013
|
] }), Zn = ({ plan: t, isSelected: n, onSelect: i, t: c }) => {
|
|
3948
|
-
const g = () => i(t.id),
|
|
4014
|
+
const g = () => i(t.id), y = (h) => {
|
|
3949
4015
|
(h.key === " " || h.key === "Enter") && (h.preventDefault(), i(t.id));
|
|
3950
4016
|
};
|
|
3951
4017
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -3960,7 +4026,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3960
4026
|
role: "radio",
|
|
3961
4027
|
"aria-checked": n,
|
|
3962
4028
|
tabIndex: 0,
|
|
3963
|
-
onKeyDown:
|
|
4029
|
+
onKeyDown: y,
|
|
3964
4030
|
"data-plan-id": t.id,
|
|
3965
4031
|
children: [
|
|
3966
4032
|
t.badge && /* @__PURE__ */ e.jsx(Xn, { label: c?.(t.badge) ?? t.badge }),
|
|
@@ -3981,11 +4047,11 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3981
4047
|
t.originalPrice && /* @__PURE__ */ e.jsx("span", { className: T.originalPrice, children: t.originalPrice }),
|
|
3982
4048
|
t.savingsLabel && /* @__PURE__ */ e.jsx("span", { className: T.savingsBadge, children: c?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
|
|
3983
4049
|
] }),
|
|
3984
|
-
/* @__PURE__ */ e.jsx(
|
|
4050
|
+
/* @__PURE__ */ e.jsx(zn, { features: t.features, t: c }),
|
|
3985
4051
|
t.astrologers && /* @__PURE__ */ e.jsx("div", { className: T.planDivider }),
|
|
3986
4052
|
t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3987
4053
|
/* @__PURE__ */ e.jsx("p", { className: T.astrologerHeading, children: c?.("planAstrologerHeading") ?? "We will match you with astrologer who speaks your language" }),
|
|
3988
|
-
/* @__PURE__ */ e.jsx("div", { className: T.astrologerList, role: "list", children: t.astrologers.map((h,
|
|
4054
|
+
/* @__PURE__ */ e.jsx("div", { className: T.astrologerList, role: "list", children: t.astrologers.map((h, P) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(Jn, { astrologer: h, t: c }) }, P)) })
|
|
3989
4055
|
] })
|
|
3990
4056
|
] })
|
|
3991
4057
|
]
|
|
@@ -4000,9 +4066,9 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4000
4066
|
const i = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], c = /* @__PURE__ */ new Date(`${t}T00:00:00`);
|
|
4001
4067
|
if (Number.isNaN(c.getTime()))
|
|
4002
4068
|
return { id: t, dayLabel: t, dayNum: "" };
|
|
4003
|
-
const g = (
|
|
4069
|
+
const g = (P) => new Date(P.getFullYear(), P.getMonth(), P.getDate()).getTime(), y = Math.round(
|
|
4004
4070
|
(g(c) - g(n)) / (1e3 * 60 * 60 * 24)
|
|
4005
|
-
), h =
|
|
4071
|
+
), h = y === 0 ? "Today" : y === 1 ? "Tomorrow" : i[c.getDay()];
|
|
4006
4072
|
return { id: t, dayLabel: h, dayNum: String(c.getDate()) };
|
|
4007
4073
|
}, ao = [
|
|
4008
4074
|
"morning",
|
|
@@ -4038,11 +4104,11 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4038
4104
|
mr: ["mr", "en"],
|
|
4039
4105
|
ta: ["ta", "en"]
|
|
4040
4106
|
}, La = (t) => !!t?.days?.some((n) => n.has_availability && n.slots.length > 0), oo = (t, n, i) => {
|
|
4041
|
-
const c = i ? no : ro, [g,
|
|
4042
|
-
(b) => b !== g && b !==
|
|
4107
|
+
const c = i ? no : ro, [g, y] = c[n || "en"] ?? c.en, h = qe.map((b) => b.code).filter(
|
|
4108
|
+
(b) => b !== g && b !== y
|
|
4043
4109
|
);
|
|
4044
|
-
return [g,
|
|
4045
|
-
}, 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",
|
|
4110
|
+
return [g, y, ...h].find((b) => La(t[b])) ?? g;
|
|
4111
|
+
}, 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", Ao = "_reportReadyBanner_1mg8x_178", vo = "_reportReadyDuration_1mg8x_187", To = "_trustRow_1mg8x_193", wo = "_trustAvatars_1mg8x_204", So = "_trustText_1mg8x_217", Po = "_sectionHeading_1mg8x_328", xo = "_dateTabs_1mg8x_336", Co = "_dateTabIndicator_1mg8x_348", Ro = "_dateTab_1mg8x_336", jo = "_dateTabDivider_1mg8x_382", No = "_dateTabSelected_1mg8x_392", Lo = "_dateTabLabel_1mg8x_397", Do = "_dateTabNum_1mg8x_404", Bo = "_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", Qo = "_loadingWrap_1mg8x_602", zo = "_skeletonShimmer_1mg8x_607", Jo = "_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 = {
|
|
4046
4112
|
overlay: io,
|
|
4047
4113
|
sheet: lo,
|
|
4048
4114
|
content: so,
|
|
@@ -4055,22 +4121,22 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4055
4121
|
languageDropdownBtn: go,
|
|
4056
4122
|
languageMenu: bo,
|
|
4057
4123
|
languageMenuItem: _o,
|
|
4058
|
-
languageMenuItemSelected:
|
|
4059
|
-
languageDivider:
|
|
4060
|
-
reportReadyBanner:
|
|
4061
|
-
reportReadyDuration:
|
|
4124
|
+
languageMenuItemSelected: yo,
|
|
4125
|
+
languageDivider: ko,
|
|
4126
|
+
reportReadyBanner: Ao,
|
|
4127
|
+
reportReadyDuration: vo,
|
|
4062
4128
|
trustRow: To,
|
|
4063
|
-
trustAvatars:
|
|
4064
|
-
trustText:
|
|
4065
|
-
sectionHeading:
|
|
4066
|
-
dateTabs:
|
|
4129
|
+
trustAvatars: wo,
|
|
4130
|
+
trustText: So,
|
|
4131
|
+
sectionHeading: Po,
|
|
4132
|
+
dateTabs: xo,
|
|
4067
4133
|
dateTabIndicator: Co,
|
|
4068
4134
|
dateTab: Ro,
|
|
4069
4135
|
dateTabDivider: jo,
|
|
4070
4136
|
dateTabSelected: No,
|
|
4071
4137
|
dateTabLabel: Lo,
|
|
4072
|
-
dateTabNum:
|
|
4073
|
-
periodTabs:
|
|
4138
|
+
dateTabNum: Do,
|
|
4139
|
+
periodTabs: Bo,
|
|
4074
4140
|
periodTabIndicator: Eo,
|
|
4075
4141
|
periodTab: Io,
|
|
4076
4142
|
periodTabSelected: Fo,
|
|
@@ -4085,8 +4151,8 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4085
4151
|
emptyStateIcon: qo,
|
|
4086
4152
|
emptyStateTitle: Yo,
|
|
4087
4153
|
emptyStateSubtitle: Vo,
|
|
4088
|
-
loadingWrap:
|
|
4089
|
-
skeletonShimmer:
|
|
4154
|
+
loadingWrap: Qo,
|
|
4155
|
+
skeletonShimmer: zo,
|
|
4090
4156
|
skeletonDateTabs: Jo,
|
|
4091
4157
|
skeletonDateTab: Xo,
|
|
4092
4158
|
skeletonPeriodTabs: Zo,
|
|
@@ -4114,27 +4180,27 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4114
4180
|
t: i,
|
|
4115
4181
|
analytics: c,
|
|
4116
4182
|
reportLanguage: g,
|
|
4117
|
-
isPostPayment:
|
|
4183
|
+
isPostPayment: y = !1,
|
|
4118
4184
|
showGuidanceTopic: h,
|
|
4119
|
-
hideFooter:
|
|
4185
|
+
hideFooter: P = !1,
|
|
4120
4186
|
onStateChange: b
|
|
4121
4187
|
}) => {
|
|
4122
|
-
const Y = h ?? !
|
|
4123
|
-
() => C[
|
|
4124
|
-
[C,
|
|
4125
|
-
), [G, I] =
|
|
4188
|
+
const Y = h ?? !y, B = Me(), N = B?.config.imageComponent ?? Ye, p = B?.config.fetchConsultationSlots, U = B?.config.isGlobal ?? !0, A = g ?? B?.formValues?.language_code, j = y ? "post_payment" : "pre_payment", [k, _] = D(!1), [x, te] = D(!1), [C, V] = D({}), [S, Q] = D("en"), [R, E] = D(!1), se = M(null), ae = Ee(
|
|
4189
|
+
() => C[S]?.days ?? [],
|
|
4190
|
+
[C, S]
|
|
4191
|
+
), [G, I] = D(""), [$, X] = D(""), [O, Te] = D("morning"), [K, re] = D(null), he = M(!1), ue = M(null), Pe = M({}), [ne, je] = D(null), _e = M(null), pe = M(
|
|
4126
4192
|
{}
|
|
4127
|
-
), [ge, oe] =
|
|
4193
|
+
), [ge, oe] = D(null), H = Ee(
|
|
4128
4194
|
() => ae.filter((l) => l.has_availability && l.slots.length > 0),
|
|
4129
4195
|
[ae]
|
|
4130
4196
|
), me = Re(() => {
|
|
4131
4197
|
p && (_(!0), te(!1), p().then((l) => {
|
|
4132
4198
|
const f = l ?? {}, Z = oo(
|
|
4133
4199
|
f,
|
|
4134
|
-
|
|
4200
|
+
A,
|
|
4135
4201
|
U
|
|
4136
4202
|
);
|
|
4137
|
-
V(f),
|
|
4203
|
+
V(f), Q(Z), c?.trackConsultationLanguageDefaultSelected?.({
|
|
4138
4204
|
language: ta(Z),
|
|
4139
4205
|
status: j
|
|
4140
4206
|
});
|
|
@@ -4149,7 +4215,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4149
4215
|
}).catch(() => {
|
|
4150
4216
|
te(!0);
|
|
4151
4217
|
}).finally(() => _(!1)));
|
|
4152
|
-
}, [p, U,
|
|
4218
|
+
}, [p, U, A, c, n, j]);
|
|
4153
4219
|
q(() => {
|
|
4154
4220
|
I(""), E(!1), me();
|
|
4155
4221
|
}, []), q(() => {
|
|
@@ -4191,7 +4257,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4191
4257
|
const ee = Ee(() => ie ? ie.slots.filter((l) => l.period === O) : [], [ie, O]);
|
|
4192
4258
|
q(() => {
|
|
4193
4259
|
const l = () => {
|
|
4194
|
-
const f = ue.current, Z =
|
|
4260
|
+
const f = ue.current, Z = Pe.current[$];
|
|
4195
4261
|
if (!f || !Z) {
|
|
4196
4262
|
je(null);
|
|
4197
4263
|
return;
|
|
@@ -4248,13 +4314,13 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4248
4314
|
day_part_default: O,
|
|
4249
4315
|
status: j
|
|
4250
4316
|
});
|
|
4251
|
-
},
|
|
4317
|
+
}, we = (l) => {
|
|
4252
4318
|
Te(l), c?.trackDayPartSelected?.({
|
|
4253
4319
|
day_part: l,
|
|
4254
4320
|
slots_available_count: ie?.slots.filter((f) => f.period === l).length ?? 0,
|
|
4255
4321
|
status: j
|
|
4256
4322
|
});
|
|
4257
|
-
},
|
|
4323
|
+
}, ye = (l) => {
|
|
4258
4324
|
re(l), c?.trackSlotSelected?.({
|
|
4259
4325
|
date: $,
|
|
4260
4326
|
time: aa(l.start),
|
|
@@ -4262,7 +4328,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4262
4328
|
topic: G || null,
|
|
4263
4329
|
status: j
|
|
4264
4330
|
});
|
|
4265
|
-
},
|
|
4331
|
+
}, ke = () => {
|
|
4266
4332
|
K && (c?.trackSlotReservationRequested?.({
|
|
4267
4333
|
slot_datetime: `${K.start} - ${K.end}`,
|
|
4268
4334
|
status: j
|
|
@@ -4271,22 +4337,22 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4271
4337
|
end: K.end,
|
|
4272
4338
|
period: K.period,
|
|
4273
4339
|
topic: G,
|
|
4274
|
-
language:
|
|
4340
|
+
language: S
|
|
4275
4341
|
}));
|
|
4276
|
-
},
|
|
4277
|
-
|
|
4278
|
-
b?.({ canProceed: ce, proceed: () =>
|
|
4342
|
+
}, Se = M(ke);
|
|
4343
|
+
Se.current = ke, q(() => {
|
|
4344
|
+
b?.({ canProceed: ce, proceed: () => Se.current() });
|
|
4279
4345
|
}, [ce, b]);
|
|
4280
|
-
const
|
|
4346
|
+
const De = (l) => {
|
|
4281
4347
|
I(l), c?.trackGuidanceTopicSelected?.({ topic: l, status: j });
|
|
4282
|
-
},
|
|
4348
|
+
}, Be = (l) => {
|
|
4283
4349
|
c?.trackConsultationLanguageChanged?.({
|
|
4284
|
-
previous_language: ta(
|
|
4350
|
+
previous_language: ta(S),
|
|
4285
4351
|
new_language: ta(l),
|
|
4286
4352
|
slots_available: La(C[l]) ? "yes" : "no",
|
|
4287
4353
|
status: j
|
|
4288
|
-
}),
|
|
4289
|
-
},
|
|
4354
|
+
}), Q(l), E(!1);
|
|
4355
|
+
}, w = qe.find((l) => l.code === S) ?? qe[0];
|
|
4290
4356
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4291
4357
|
/* @__PURE__ */ e.jsxs("div", { className: m.content, children: [
|
|
4292
4358
|
/* @__PURE__ */ e.jsxs("div", { className: m.languageRow, children: [
|
|
@@ -4301,13 +4367,13 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4301
4367
|
"aria-haspopup": "listbox",
|
|
4302
4368
|
"aria-expanded": R,
|
|
4303
4369
|
children: [
|
|
4304
|
-
i?.(
|
|
4370
|
+
i?.(w.labelKey) ?? w.label,
|
|
4305
4371
|
/* @__PURE__ */ e.jsx(Xr, {})
|
|
4306
4372
|
]
|
|
4307
4373
|
}
|
|
4308
4374
|
),
|
|
4309
4375
|
R && /* @__PURE__ */ e.jsx("ul", { className: m.languageMenu, role: "listbox", children: qe.map((l) => {
|
|
4310
|
-
const f = l.code ===
|
|
4376
|
+
const f = l.code === S;
|
|
4311
4377
|
return /* @__PURE__ */ e.jsxs(
|
|
4312
4378
|
"li",
|
|
4313
4379
|
{
|
|
@@ -4317,7 +4383,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4317
4383
|
m.languageMenuItem,
|
|
4318
4384
|
f ? m.languageMenuItemSelected : ""
|
|
4319
4385
|
].filter(Boolean).join(" "),
|
|
4320
|
-
onClick: () =>
|
|
4386
|
+
onClick: () => Be(l.code),
|
|
4321
4387
|
children: [
|
|
4322
4388
|
i?.(l.labelKey) ?? l.label,
|
|
4323
4389
|
f && /* @__PURE__ */ e.jsx(Na, {})
|
|
@@ -4337,7 +4403,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4337
4403
|
" ",
|
|
4338
4404
|
i?.("planReportReadySuffix") ?? "from today"
|
|
4339
4405
|
] }),
|
|
4340
|
-
|
|
4406
|
+
k && /* @__PURE__ */ e.jsxs("div", { className: m.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
|
|
4341
4407
|
/* @__PURE__ */ e.jsx("div", { className: m.skeletonDateTabs, children: Array.from({ length: 5 }).map((l, f) => /* @__PURE__ */ e.jsx(
|
|
4342
4408
|
"div",
|
|
4343
4409
|
{
|
|
@@ -4360,16 +4426,16 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4360
4426
|
f
|
|
4361
4427
|
)) })
|
|
4362
4428
|
] }),
|
|
4363
|
-
!
|
|
4429
|
+
!k && x && /* @__PURE__ */ e.jsxs("div", { className: m.stateMessage, children: [
|
|
4364
4430
|
i?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
4365
4431
|
/* @__PURE__ */ e.jsx("button", { type: "button", className: m.retryBtn, onClick: me, children: i?.("planRetry") ?? "Retry" })
|
|
4366
4432
|
] }),
|
|
4367
|
-
!
|
|
4433
|
+
!k && !x && H.length === 0 && /* @__PURE__ */ e.jsxs("div", { className: m.emptyState, children: [
|
|
4368
4434
|
/* @__PURE__ */ e.jsx("span", { className: m.emptyStateIcon, children: /* @__PURE__ */ e.jsx(rn, {}) }),
|
|
4369
4435
|
/* @__PURE__ */ e.jsx("p", { className: m.emptyStateTitle, children: i?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
|
|
4370
4436
|
/* @__PURE__ */ e.jsx("p", { className: m.emptyStateSubtitle, children: i?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
|
|
4371
4437
|
] }),
|
|
4372
|
-
!
|
|
4438
|
+
!k && !x && H.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4373
4439
|
/* @__PURE__ */ e.jsxs("div", { className: m.dateTabs, ref: ue, role: "radiogroup", "aria-label": "Consultation date", children: [
|
|
4374
4440
|
ne && /* @__PURE__ */ e.jsx(
|
|
4375
4441
|
"span",
|
|
@@ -4391,7 +4457,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4391
4457
|
{
|
|
4392
4458
|
type: "button",
|
|
4393
4459
|
ref: (r) => {
|
|
4394
|
-
|
|
4460
|
+
Pe.current[l.date] = r;
|
|
4395
4461
|
},
|
|
4396
4462
|
className: [
|
|
4397
4463
|
m.dateTab,
|
|
@@ -4437,7 +4503,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4437
4503
|
].filter(Boolean).join(" "),
|
|
4438
4504
|
role: "tab",
|
|
4439
4505
|
"aria-selected": l === O,
|
|
4440
|
-
onClick: () =>
|
|
4506
|
+
onClick: () => we(l),
|
|
4441
4507
|
children: [
|
|
4442
4508
|
/* @__PURE__ */ e.jsx(f, {}),
|
|
4443
4509
|
i?.(Z) ?? (l === "evening" && U ? "Evening/Night" : l.charAt(0).toUpperCase() + l.slice(1))
|
|
@@ -4463,7 +4529,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4463
4529
|
].filter(Boolean).join(" "),
|
|
4464
4530
|
role: "radio",
|
|
4465
4531
|
"aria-checked": K?.start === l.start,
|
|
4466
|
-
onClick: () =>
|
|
4532
|
+
onClick: () => ye(l),
|
|
4467
4533
|
children: aa(l.start)
|
|
4468
4534
|
},
|
|
4469
4535
|
`${l.start}-${f}`
|
|
@@ -4484,14 +4550,14 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4484
4550
|
].filter(Boolean).join(" "),
|
|
4485
4551
|
role: "radio",
|
|
4486
4552
|
"aria-checked": G === l.id,
|
|
4487
|
-
onClick: () =>
|
|
4553
|
+
onClick: () => De(l.id),
|
|
4488
4554
|
children: i?.(l.labelKey) ?? l.label
|
|
4489
4555
|
},
|
|
4490
4556
|
l.id
|
|
4491
4557
|
)) })
|
|
4492
4558
|
] })
|
|
4493
4559
|
] }),
|
|
4494
|
-
!
|
|
4560
|
+
!P && /* @__PURE__ */ e.jsxs("div", { className: m.footer, children: [
|
|
4495
4561
|
/* @__PURE__ */ e.jsxs("div", { className: m.trustRow, children: [
|
|
4496
4562
|
/* @__PURE__ */ e.jsx("div", { className: m.trustAvatars, "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
4497
4563
|
N,
|
|
@@ -4513,8 +4579,8 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4513
4579
|
type: "button",
|
|
4514
4580
|
className: [m.proceedBtn, ce ? "" : m.proceedBtnDisabled].filter(Boolean).join(" "),
|
|
4515
4581
|
disabled: !ce,
|
|
4516
|
-
onClick:
|
|
4517
|
-
children:
|
|
4582
|
+
onClick: ke,
|
|
4583
|
+
children: y ? i?.("planBookSlot") ?? "Book Slot" : i?.("planProceedToPayment") ?? "Proceed to payment"
|
|
4518
4584
|
}
|
|
4519
4585
|
)
|
|
4520
4586
|
] })
|
|
@@ -4602,27 +4668,27 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4602
4668
|
selectedPlan: i,
|
|
4603
4669
|
onSelectPlan: c,
|
|
4604
4670
|
plans: g,
|
|
4605
|
-
onProceed:
|
|
4671
|
+
onProceed: y,
|
|
4606
4672
|
t: h,
|
|
4607
|
-
analytics:
|
|
4673
|
+
analytics: P,
|
|
4608
4674
|
enableConsultationScheduling: b
|
|
4609
4675
|
}) => {
|
|
4610
|
-
const Y = Me(),
|
|
4676
|
+
const Y = Me(), B = Y?.config.isGlobal ?? !0, N = b ?? Y?.config.enableConsultationScheduling ?? !1, p = g ?? mi(B), U = i?.id || p.find((C) => C.badge)?.id || p[0]?.id || "", A = M(null), j = M(null), k = M(!1), [_, x] = D(!1);
|
|
4611
4677
|
q(() => {
|
|
4612
4678
|
if (t) {
|
|
4613
4679
|
if (!i) {
|
|
4614
4680
|
const C = p.find((V) => V.badge) ?? p[0];
|
|
4615
4681
|
C && c(C);
|
|
4616
4682
|
}
|
|
4617
|
-
|
|
4683
|
+
k.current || (P?.trackPlanPageViewed?.(), N && P?.trackPlanScreenViewed?.({
|
|
4618
4684
|
plans_shown: p.map((C) => C.id),
|
|
4619
4685
|
default_selected_plan: i?.id || p.find((C) => C.badge)?.id || p[0]?.id || ""
|
|
4620
|
-
}),
|
|
4686
|
+
}), k.current = !0);
|
|
4621
4687
|
} else
|
|
4622
|
-
|
|
4623
|
-
}, [t, p, i, c,
|
|
4688
|
+
k.current = !1;
|
|
4689
|
+
}, [t, p, i, c, P]);
|
|
4624
4690
|
const te = () => {
|
|
4625
|
-
|
|
4691
|
+
P?.trackPlanPageClosed?.(), n();
|
|
4626
4692
|
};
|
|
4627
4693
|
return q(() => {
|
|
4628
4694
|
if (!t) return;
|
|
@@ -4642,7 +4708,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4642
4708
|
/* @__PURE__ */ e.jsxs(
|
|
4643
4709
|
"div",
|
|
4644
4710
|
{
|
|
4645
|
-
ref:
|
|
4711
|
+
ref: A,
|
|
4646
4712
|
className: N ? T.sheetFullScreen : T.sheet,
|
|
4647
4713
|
children: [
|
|
4648
4714
|
N ? /* @__PURE__ */ e.jsxs("div", { className: T.headerFull, children: [
|
|
@@ -4658,7 +4724,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4658
4724
|
),
|
|
4659
4725
|
/* @__PURE__ */ e.jsx("h2", { className: T.titleFull, children: h?.("planSheetTitle") ?? "Choose Your Kundli Plan" })
|
|
4660
4726
|
] }) : /* @__PURE__ */ e.jsx(
|
|
4661
|
-
|
|
4727
|
+
Qn,
|
|
4662
4728
|
{
|
|
4663
4729
|
title: h?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
4664
4730
|
onBack: te
|
|
@@ -4678,16 +4744,16 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4678
4744
|
isSelected: C.id === U,
|
|
4679
4745
|
t: h,
|
|
4680
4746
|
onSelect: (V) => {
|
|
4681
|
-
const
|
|
4682
|
-
|
|
4683
|
-
planId:
|
|
4684
|
-
planName:
|
|
4747
|
+
const S = p.find((Q) => Q.id === V);
|
|
4748
|
+
S && (P?.trackPlanSelected?.({
|
|
4749
|
+
planId: S.id,
|
|
4750
|
+
planName: S.title,
|
|
4685
4751
|
...N ? {
|
|
4686
|
-
price:
|
|
4687
|
-
includes_consultation: !!(
|
|
4688
|
-
cta_label:
|
|
4752
|
+
price: S.price,
|
|
4753
|
+
includes_consultation: !!(S.astrologers && S.astrologers.length > 0),
|
|
4754
|
+
cta_label: S.astrologers && S.astrologers.length > 0 ? h?.("planSelectConsultationSlot") ?? "Select consultation slot →" : h?.("planProceedToPayment") ?? "Proceed to Payment"
|
|
4689
4755
|
} : {}
|
|
4690
|
-
}), c(
|
|
4756
|
+
}), c(S));
|
|
4691
4757
|
}
|
|
4692
4758
|
},
|
|
4693
4759
|
C.id
|
|
@@ -4702,22 +4768,22 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4702
4768
|
onClick: () => {
|
|
4703
4769
|
if (i) {
|
|
4704
4770
|
if (N && i.astrologers && i.astrologers.length > 0) {
|
|
4705
|
-
|
|
4771
|
+
P?.trackSelectConsultationSlotClicked?.({
|
|
4706
4772
|
planId: i.id,
|
|
4707
4773
|
planName: i.title
|
|
4708
|
-
}),
|
|
4774
|
+
}), P?.trackPlanProceedClicked?.({
|
|
4709
4775
|
planId: i.id,
|
|
4710
4776
|
planName: i.title,
|
|
4711
4777
|
cta_type: "confirm_consultation_slot",
|
|
4712
4778
|
next_step: "slot_selection"
|
|
4713
|
-
}),
|
|
4779
|
+
}), x(!0);
|
|
4714
4780
|
return;
|
|
4715
4781
|
}
|
|
4716
|
-
|
|
4782
|
+
P?.trackPlanProceedClicked?.({
|
|
4717
4783
|
planId: i.id,
|
|
4718
4784
|
planName: i.title,
|
|
4719
4785
|
...N ? { cta_type: "proceed", next_step: "payment" } : {}
|
|
4720
|
-
}),
|
|
4786
|
+
}), y(i), n();
|
|
4721
4787
|
}
|
|
4722
4788
|
},
|
|
4723
4789
|
children: i ? N && i.astrologers && i.astrologers.length > 0 ? h?.("planSelectConsultationSlot") ?? "Select consultation slot →" : h?.("planProceedToPayment") ?? i.price + "Proceed to Payment" : "Select a plan"
|
|
@@ -4730,17 +4796,17 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4730
4796
|
ui,
|
|
4731
4797
|
{
|
|
4732
4798
|
isOpen: _,
|
|
4733
|
-
onClose: () =>
|
|
4799
|
+
onClose: () => x(!1),
|
|
4734
4800
|
astrologers: i.astrologers,
|
|
4735
4801
|
t: h,
|
|
4736
|
-
analytics:
|
|
4802
|
+
analytics: P,
|
|
4737
4803
|
onProceed: (C) => {
|
|
4738
|
-
|
|
4804
|
+
P?.trackPlanProceedClicked?.({
|
|
4739
4805
|
planId: i.id,
|
|
4740
4806
|
planName: i.title,
|
|
4741
4807
|
cta_type: "proceed",
|
|
4742
4808
|
next_step: "payment"
|
|
4743
|
-
}),
|
|
4809
|
+
}), y(i, C), x(!1), n();
|
|
4744
4810
|
}
|
|
4745
4811
|
}
|
|
4746
4812
|
)
|
|
@@ -4749,7 +4815,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4749
4815
|
),
|
|
4750
4816
|
document.body
|
|
4751
4817
|
) : null;
|
|
4752
|
-
}, hi = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", gi = (t, n) =>
|
|
4818
|
+
}, hi = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", gi = (t, n) => Sa[t]?.[n] ?? n, bi = (t, n) => t && ra.includes(t) ? t : n ? "+1" : "+91", _i = {
|
|
4753
4819
|
fullName: "",
|
|
4754
4820
|
phone: "",
|
|
4755
4821
|
phoneCountryCode: "",
|
|
@@ -4760,23 +4826,23 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4760
4826
|
birthTime: "",
|
|
4761
4827
|
birthTimeUnknown: !1,
|
|
4762
4828
|
birthPlace: ""
|
|
4763
|
-
},
|
|
4829
|
+
}, xi = ({
|
|
4764
4830
|
className: t = "",
|
|
4765
4831
|
locale: n,
|
|
4766
4832
|
showLanguageSelector: i = !0,
|
|
4767
4833
|
onBack: c,
|
|
4768
4834
|
initialValues: g,
|
|
4769
|
-
onProceed:
|
|
4835
|
+
onProceed: y,
|
|
4770
4836
|
onProceedGuidance: h,
|
|
4771
|
-
proceedHref:
|
|
4837
|
+
proceedHref: P,
|
|
4772
4838
|
originalPriceLabel: b,
|
|
4773
4839
|
discountedPriceLabel: Y,
|
|
4774
|
-
googleMapsApiKey:
|
|
4840
|
+
googleMapsApiKey: B = "",
|
|
4775
4841
|
atlasSearchLocalities: N,
|
|
4776
4842
|
googleMapsAutocompleteEnabled: p,
|
|
4777
4843
|
analytics: U
|
|
4778
4844
|
}) => {
|
|
4779
|
-
const
|
|
4845
|
+
const A = Me(), j = At(), k = A !== null, _ = k ? A.locale : n, x = _ ?? j?.locale ?? "en", [te, C] = D(x), V = k ? A.locale : te, S = k ? A.setLocale : C, [Q, R] = D(!1), E = M(null), se = M(
|
|
4780
4846
|
_
|
|
4781
4847
|
), ae = M(
|
|
4782
4848
|
j?.locale
|
|
@@ -4784,24 +4850,24 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4784
4850
|
q(() => {
|
|
4785
4851
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
4786
4852
|
}, []);
|
|
4787
|
-
const G = (
|
|
4853
|
+
const G = (w) => gi(V, w);
|
|
4788
4854
|
q(() => {
|
|
4789
|
-
_ && se.current !== _ &&
|
|
4790
|
-
}, [_,
|
|
4855
|
+
_ && se.current !== _ && S(_), se.current = _;
|
|
4856
|
+
}, [_, S]), q(() => {
|
|
4791
4857
|
if (_) return;
|
|
4792
|
-
const
|
|
4793
|
-
|
|
4794
|
-
}, [j?.locale, _,
|
|
4795
|
-
const [I, $] =
|
|
4858
|
+
const w = j?.locale;
|
|
4859
|
+
w && ae.current !== w && S(w), ae.current = w;
|
|
4860
|
+
}, [j?.locale, _, S]);
|
|
4861
|
+
const [I, $] = D({
|
|
4796
4862
|
..._i,
|
|
4797
4863
|
...g,
|
|
4798
4864
|
phone: g?.phone ?? ""
|
|
4799
|
-
}), X =
|
|
4865
|
+
}), X = k ? A?.config.isGlobal ?? !0 : !0, O = k ? A.formValues : I, Te = k ? A.setFormValues : $, [K, re] = D(
|
|
4800
4866
|
() => bi(O.phoneCountryCode, X)
|
|
4801
4867
|
), he = M(
|
|
4802
4868
|
!!(O.phoneCountryCode && ra.includes(O.phoneCountryCode))
|
|
4803
|
-
), ue = M(!1),
|
|
4804
|
-
ue.current = !0, re(
|
|
4869
|
+
), ue = M(!1), Pe = Re((w) => {
|
|
4870
|
+
ue.current = !0, re(w);
|
|
4805
4871
|
}, []), ne = M(!0);
|
|
4806
4872
|
q(() => {
|
|
4807
4873
|
if (ne.current) {
|
|
@@ -4810,57 +4876,57 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4810
4876
|
}
|
|
4811
4877
|
he.current || ue.current || re(X ? "+1" : "+91");
|
|
4812
4878
|
}, [X]), q(() => {
|
|
4813
|
-
if (!
|
|
4814
|
-
const
|
|
4815
|
-
|
|
4816
|
-
}, [
|
|
4817
|
-
const je =
|
|
4879
|
+
if (!k || ue.current) return;
|
|
4880
|
+
const w = O.phoneCountryCode;
|
|
4881
|
+
w && ra.includes(w) && w !== K && (he.current = !0, re(w));
|
|
4882
|
+
}, [k, O.phoneCountryCode]);
|
|
4883
|
+
const je = k ? A.goToPage : c, _e = k ? A.onProceed : y, pe = k ? A.onProceedGuidance : h, ge = k ? A.config.proceedHref : P, oe = k ? A.config.originalPriceLabel : b, H = k ? A.config.discountedPriceLabel : Y, me = k ? A.config.showLanguageSelector ?? !0 : i, ie = (k ? A?.config?.analytics : U) ?? U;
|
|
4818
4884
|
q(() => {
|
|
4819
|
-
if (!
|
|
4820
|
-
const
|
|
4885
|
+
if (!Q) return;
|
|
4886
|
+
const w = (l) => {
|
|
4821
4887
|
E.current && !E.current.contains(l.target) && R(!1);
|
|
4822
4888
|
};
|
|
4823
|
-
return document.addEventListener("mousedown",
|
|
4824
|
-
}, [
|
|
4825
|
-
const [fe, ee] =
|
|
4826
|
-
|
|
4827
|
-
}, []),
|
|
4889
|
+
return document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w);
|
|
4890
|
+
}, [Q]);
|
|
4891
|
+
const [fe, ee] = D(!1), [ce, Ne] = D(null), we = M(null), ye = Re((w) => {
|
|
4892
|
+
we.current = w, ee(!0);
|
|
4893
|
+
}, []), ke = M(!1);
|
|
4828
4894
|
q(() => {
|
|
4829
|
-
if (
|
|
4895
|
+
if (ke.current || !k || !A?.config.autoOpenPlanSheet || A?.config.variant !== "v1")
|
|
4830
4896
|
return;
|
|
4831
|
-
|
|
4832
|
-
const
|
|
4833
|
-
|
|
4897
|
+
ke.current = !0;
|
|
4898
|
+
const w = (O.phone ?? "").trim();
|
|
4899
|
+
ye({
|
|
4834
4900
|
...O,
|
|
4835
|
-
phone:
|
|
4901
|
+
phone: w && `${K}-${w}`
|
|
4836
4902
|
});
|
|
4837
|
-
}, [
|
|
4838
|
-
const
|
|
4839
|
-
if (!
|
|
4903
|
+
}, [k, A?.config.autoOpenPlanSheet, A?.config.variant, O, K, ye]);
|
|
4904
|
+
const Se = Re(() => {
|
|
4905
|
+
if (!we.current || !ce) return;
|
|
4840
4906
|
ie?.trackPlanProceedClicked?.({
|
|
4841
4907
|
planId: ce.id,
|
|
4842
4908
|
planName: ce.title,
|
|
4843
4909
|
price: ce.price,
|
|
4844
4910
|
currency: X ? "USD" : "INR"
|
|
4845
4911
|
});
|
|
4846
|
-
const
|
|
4847
|
-
ce.id === ja && pe ? pe(
|
|
4848
|
-
}, [ce, _e, pe]),
|
|
4912
|
+
const w = { ...we.current, _selectedPlan: ce };
|
|
4913
|
+
ce.id === ja && pe ? pe(w) : _e?.(w), ee(!1), we.current = null;
|
|
4914
|
+
}, [ce, _e, pe]), De = A?.config.imageComponent ?? Ye, Be = me ? /* @__PURE__ */ e.jsxs("div", { className: Le.langDropdownWrap, ref: E, children: [
|
|
4849
4915
|
/* @__PURE__ */ e.jsxs(
|
|
4850
4916
|
"button",
|
|
4851
4917
|
{
|
|
4852
4918
|
type: "button",
|
|
4853
4919
|
className: Le.langTrigger,
|
|
4854
4920
|
onClick: () => {
|
|
4855
|
-
ie?.trackLanguageClickedFe?.({ language: V }), R((
|
|
4921
|
+
ie?.trackLanguageClickedFe?.({ language: V }), R((w) => !w);
|
|
4856
4922
|
},
|
|
4857
|
-
"aria-expanded":
|
|
4923
|
+
"aria-expanded": Q,
|
|
4858
4924
|
"aria-haspopup": "listbox",
|
|
4859
4925
|
id: "kundli-form-lang",
|
|
4860
4926
|
"aria-label": G("language"),
|
|
4861
4927
|
children: [
|
|
4862
4928
|
/* @__PURE__ */ e.jsx(
|
|
4863
|
-
|
|
4929
|
+
De,
|
|
4864
4930
|
{
|
|
4865
4931
|
src: hi,
|
|
4866
4932
|
alt: "",
|
|
@@ -4870,41 +4936,41 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4870
4936
|
loading: "eager"
|
|
4871
4937
|
}
|
|
4872
4938
|
),
|
|
4873
|
-
/* @__PURE__ */ e.jsx("span", { className: Le.langLabel, children:
|
|
4939
|
+
/* @__PURE__ */ e.jsx("span", { className: Le.langLabel, children: ya[V] })
|
|
4874
4940
|
]
|
|
4875
4941
|
}
|
|
4876
4942
|
),
|
|
4877
|
-
|
|
4943
|
+
Q && /* @__PURE__ */ e.jsx(
|
|
4878
4944
|
"ul",
|
|
4879
4945
|
{
|
|
4880
4946
|
className: Le.langMenu,
|
|
4881
4947
|
role: "listbox",
|
|
4882
4948
|
"aria-labelledby": "kundli-form-lang",
|
|
4883
4949
|
"aria-activedescendant": `kundli-form-lang-option-${V}`,
|
|
4884
|
-
children:
|
|
4950
|
+
children: wa.map((w) => /* @__PURE__ */ e.jsx(
|
|
4885
4951
|
"li",
|
|
4886
4952
|
{
|
|
4887
|
-
id: `kundli-form-lang-option-${
|
|
4953
|
+
id: `kundli-form-lang-option-${w}`,
|
|
4888
4954
|
role: "option",
|
|
4889
|
-
"aria-selected":
|
|
4955
|
+
"aria-selected": w === V,
|
|
4890
4956
|
className: Le.langOption,
|
|
4891
4957
|
onClick: () => {
|
|
4892
|
-
ie?.trackLanguageChangedFe?.({ newLanguage:
|
|
4958
|
+
ie?.trackLanguageChangedFe?.({ newLanguage: w }), S(w), R(!1);
|
|
4893
4959
|
},
|
|
4894
|
-
children:
|
|
4960
|
+
children: ya[w]
|
|
4895
4961
|
},
|
|
4896
|
-
|
|
4962
|
+
w
|
|
4897
4963
|
))
|
|
4898
4964
|
}
|
|
4899
4965
|
)
|
|
4900
4966
|
] }) : null;
|
|
4901
4967
|
return /* @__PURE__ */ e.jsxs("div", { className: `${Le.container} ${t}`, children: [
|
|
4902
4968
|
/* @__PURE__ */ e.jsx(
|
|
4903
|
-
|
|
4969
|
+
zr,
|
|
4904
4970
|
{
|
|
4905
4971
|
t: G,
|
|
4906
|
-
logoUrl:
|
|
4907
|
-
languageSelector:
|
|
4972
|
+
logoUrl: k ? A.config.logoUrl : void 0,
|
|
4973
|
+
languageSelector: Be,
|
|
4908
4974
|
className: Le.kundliHeaderNoBorder
|
|
4909
4975
|
}
|
|
4910
4976
|
),
|
|
@@ -4917,12 +4983,12 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4917
4983
|
t: G,
|
|
4918
4984
|
values: O,
|
|
4919
4985
|
onChange: Te,
|
|
4920
|
-
googleMapsApiKey:
|
|
4986
|
+
googleMapsApiKey: B,
|
|
4921
4987
|
atlasSearchLocalities: N,
|
|
4922
4988
|
googleMapsAutocompleteEnabled: p,
|
|
4923
4989
|
phoneIsdCode: K,
|
|
4924
|
-
onPhoneIsdCodeChange:
|
|
4925
|
-
showV1ExtraFields:
|
|
4990
|
+
onPhoneIsdCodeChange: Pe,
|
|
4991
|
+
showV1ExtraFields: k ? A?.config.variant === "v1" : !1,
|
|
4926
4992
|
analytics: ie
|
|
4927
4993
|
}
|
|
4928
4994
|
)
|
|
@@ -4939,13 +5005,13 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4939
5005
|
originalPriceLabel: oe,
|
|
4940
5006
|
discountedPriceLabel: H,
|
|
4941
5007
|
analytics: ie,
|
|
4942
|
-
showPlanSheet:
|
|
4943
|
-
confirmPlan:
|
|
5008
|
+
showPlanSheet: ye,
|
|
5009
|
+
confirmPlan: Se,
|
|
4944
5010
|
planSheetOpen: fe,
|
|
4945
5011
|
selectedPlan: ce
|
|
4946
5012
|
}
|
|
4947
5013
|
),
|
|
4948
|
-
|
|
5014
|
+
A?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
|
|
4949
5015
|
fi,
|
|
4950
5016
|
{
|
|
4951
5017
|
isOpen: fe,
|
|
@@ -4953,9 +5019,9 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4953
5019
|
selectedPlan: ce,
|
|
4954
5020
|
onSelectPlan: Ne,
|
|
4955
5021
|
onProceed: () => {
|
|
4956
|
-
|
|
5022
|
+
Se?.();
|
|
4957
5023
|
},
|
|
4958
|
-
plans:
|
|
5024
|
+
plans: A?.config.plans,
|
|
4959
5025
|
t: G,
|
|
4960
5026
|
analytics: ie
|
|
4961
5027
|
}
|
|
@@ -5037,32 +5103,32 @@ export {
|
|
|
5037
5103
|
di as C,
|
|
5038
5104
|
Ye as D,
|
|
5039
5105
|
Rt as F,
|
|
5040
|
-
|
|
5106
|
+
vi as I,
|
|
5041
5107
|
Ci as K,
|
|
5042
|
-
|
|
5108
|
+
ya as L,
|
|
5043
5109
|
ja as P,
|
|
5044
|
-
|
|
5110
|
+
wa as S,
|
|
5045
5111
|
Er as U,
|
|
5046
|
-
|
|
5112
|
+
xa as a,
|
|
5047
5113
|
ia as b,
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5114
|
+
xi as c,
|
|
5115
|
+
Si as d,
|
|
5116
|
+
wt as e,
|
|
5117
|
+
St as f,
|
|
5118
|
+
vt as g,
|
|
5053
5119
|
Me as h,
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5120
|
+
wi as i,
|
|
5121
|
+
Pi as j,
|
|
5122
|
+
e as k,
|
|
5123
|
+
ui as l,
|
|
5124
|
+
mi as m,
|
|
5125
|
+
zr as n,
|
|
5060
5126
|
sa as o,
|
|
5061
5127
|
Vr as p,
|
|
5062
5128
|
fi as q,
|
|
5063
5129
|
Ti as r,
|
|
5064
5130
|
Tt as s,
|
|
5065
|
-
|
|
5066
|
-
|
|
5131
|
+
Sa as t,
|
|
5132
|
+
At as u
|
|
5067
5133
|
};
|
|
5068
|
-
//# sourceMappingURL=analytics-
|
|
5134
|
+
//# sourceMappingURL=analytics-D_e8w2CC.js.map
|