@srimandir/kundli-generator 10.47.2 → 10.49.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-cs6s-dAb.js} +541 -471
- package/dist/analytics-cs6s-dAb.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-BpSftqkw.js} +2 -2
- package/dist/{criticalCss-DvHi7anu.js.map → criticalCss-BpSftqkw.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,24 @@ 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
|
+
downloadAppSheetDownloadReport: "Download your kundli report & section wise summary in the app",
|
|
888
|
+
downloadAppSheetDailyRituals: "Personalised daily rituals tailored to your problems",
|
|
889
|
+
downloadAppSheetQuestionCta: "Ask Free Question on App",
|
|
890
|
+
downloadAppSheetRitualTitle: "Personalized Daily Rituals in the App",
|
|
891
|
+
downloadAppSheetRitualHero: "Select an area of focus and get remedies based on your report",
|
|
892
|
+
downloadAppSheetAccessDownloadReport: "Access & download your kundi report & section wise summary in the app",
|
|
893
|
+
downloadAppSheetRitualCta: "Start Today’s Ritual on App"
|
|
877
894
|
}, ht = {
|
|
878
895
|
kundli: "कुंडली",
|
|
879
896
|
birthChart: "जन्म कुंडली",
|
|
@@ -1107,7 +1124,26 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
1107
1124
|
planAstrologerExpAshwini: "16 साल का अनुभव",
|
|
1108
1125
|
and: "और",
|
|
1109
1126
|
astrologyGuidance: "ज्योतिष से सलाह",
|
|
1110
|
-
selectPackage: "पैकेज चुनें"
|
|
1127
|
+
selectPackage: "पैकेज चुनें",
|
|
1128
|
+
// Download app bottom sheet
|
|
1129
|
+
downloadAppSheetTitle: "ऐप में अपनी कुंडली रिपोर्ट पाएं",
|
|
1130
|
+
downloadAppSheetReportAccess: "ऐप में अपनी कुंडली रिपोर्ट और अनुभागवार सारांश देखें",
|
|
1131
|
+
downloadAppSheetAlsoUnlocked: "ऐप में ये सुविधाएँ भी अनलॉक हैं",
|
|
1132
|
+
// Hard line break as in the Hindi Figma frames (rendered via pre-line).
|
|
1133
|
+
downloadAppSheetAskQuestions: `ऐप में अपनी कुंडली रिपोर्ट से संबंधित कोई भी
|
|
1134
|
+
सवाल पूछें।`,
|
|
1135
|
+
downloadAppSheetRemedies: "अपनी प्राथमिकता का क्षेत्र चुनें और अपनी रिपोर्ट के आधार पर उपाय पाएं",
|
|
1136
|
+
downloadAppSheetCta: "निःशुल्क कुंडली ऐप डाउनलोड करें",
|
|
1137
|
+
// Hindi title has no separate "Free" badge — rendered as plain text.
|
|
1138
|
+
downloadAppSheetQuestionTitle: "ऐप में निःशुल्क सवाल पूछें",
|
|
1139
|
+
downloadAppSheetQuestionHero: "ऐप में अपनी कुंडली रिपोर्ट से संबंधित कोई भी सवाल पूछें",
|
|
1140
|
+
downloadAppSheetDownloadReport: "ऐप में अपनी कुंडली रिपोर्ट और अनुभागवार सारांश डाउनलोड करें।",
|
|
1141
|
+
downloadAppSheetDailyRituals: "आपकी समस्याओं के अनुरूप व्यक्तिगत दैनिक अनुष्ठान पाएं।",
|
|
1142
|
+
downloadAppSheetQuestionCta: "ऐप में निःशुल्क सवाल पूछें",
|
|
1143
|
+
downloadAppSheetRitualTitle: "ऐप में व्यक्तिगत दैनिक अनुष्ठान",
|
|
1144
|
+
downloadAppSheetRitualHero: "अपनी प्राथमिकता का क्षेत्र चुनें और अपनी रिपोर्ट के आधार पर उपाय पाएं",
|
|
1145
|
+
downloadAppSheetAccessDownloadReport: "ऐप में अपनी कुंडली रिपोर्ट और अनुभागवार सारांश देखें एवं डाउनलोड करें",
|
|
1146
|
+
downloadAppSheetRitualCta: "ऐप में आज का अनुष्ठान शुरू करें"
|
|
1111
1147
|
}, gt = {
|
|
1112
1148
|
kundli: "कुंडली",
|
|
1113
1149
|
birthChart: "जन्मकुंडली",
|
|
@@ -1788,8 +1824,25 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
1788
1824
|
planAstrologerExpAshwini: "16 ವರ್ಷಗಳ ಅನುಭವ",
|
|
1789
1825
|
and: "ಮತ್ತು",
|
|
1790
1826
|
astrologyGuidance: "ಜ್ಯೋತಿಷ್ಯ ಮಾರ್ಗದರ್ಶನ",
|
|
1791
|
-
selectPackage: "ಪ್ಯಾಕೇಜ್ ಆಯ್ಕೆಮಾಡಿ"
|
|
1792
|
-
|
|
1827
|
+
selectPackage: "ಪ್ಯಾಕೇಜ್ ಆಯ್ಕೆಮಾಡಿ",
|
|
1828
|
+
// Download app bottom sheet
|
|
1829
|
+
downloadAppSheetTitle: "ಆ್ಯಪ್ನಲ್ಲಿ ನಿಮ್ಮ ಕುಂಡಲಿ ವರದಿಯನ್ನು ಪಡೆಯಿರಿ",
|
|
1830
|
+
downloadAppSheetReportAccess: "ಆ್ಯಪ್ನಲ್ಲಿ ನಿಮ್ಮ ಕುಂಡಲಿ ವರದಿ ಮತ್ತು ವಿಭಾಗವಾರು ಸಾರಾಂಶವನ್ನು ವೀಕ್ಷಿಸಿ",
|
|
1831
|
+
downloadAppSheetAlsoUnlocked: "ಆ್ಯಪ್ನಲ್ಲಿ ಈ ಸೌಲಭ್ಯಗಳೂ ಅನ್ಲಾಕ್ ಆಗಿವೆ",
|
|
1832
|
+
downloadAppSheetAskQuestions: "ಆ್ಯಪ್ನಲ್ಲಿ ನಿಮ್ಮ ಕುಂಡಲಿ ವರದಿಗೆ ಸಂಬಂಧಿಸಿದ ಯಾವುದೇ ಪ್ರಶ್ನೆಯನ್ನು ಕೇಳಿ",
|
|
1833
|
+
downloadAppSheetRemedies: "ಗಮನ ಹರಿಸಬೇಕಾದ ಕ್ಷೇತ್ರವನ್ನು ಆಯ್ಕೆ ಮಾಡಿ ಮತ್ತು ನಿಮ್ಮ ವರದಿಯ ಆಧಾರದ ಮೇಲೆ ಪರಿಹಾರಗಳನ್ನು ಪಡೆಯಿರಿ",
|
|
1834
|
+
downloadAppSheetCta: "ಉಚಿತ ಕುಂಡಲಿ ಆ್ಯಪ್ ಡೌನ್ಲೋಡ್ ಮಾಡಿ",
|
|
1835
|
+
// Kannada title has no separate "Free" badge — rendered as plain text.
|
|
1836
|
+
downloadAppSheetQuestionTitle: "ಆ್ಯಪ್ನಲ್ಲಿ ಉಚಿತವಾಗಿ ಪ್ರಶ್ನೆ ಕೇಳಿ",
|
|
1837
|
+
downloadAppSheetQuestionHero: "ಆ್ಯಪ್ನಲ್ಲಿ ನಿಮ್ಮ ಕುಂಡಲಿ ವರದಿಗೆ ಸಂಬಂಧಿಸಿದ ಯಾವುದೇ ಪ್ರಶ್ನೆಯನ್ನು ಕೇಳಿ",
|
|
1838
|
+
downloadAppSheetDownloadReport: "ಆ್ಯಪ್ನಲ್ಲಿ ನಿಮ್ಮ ಕುಂಡಲಿ ವರದಿ ಮತ್ತು ವಿಭಾಗವಾರು ಸಾರಾಂಶವನ್ನು ಡೌನ್ಲೋಡ್ ಮಾಡಿ",
|
|
1839
|
+
downloadAppSheetDailyRituals: "ನಿಮ್ಮ ಸಮಸ್ಯೆಗಳಿಗೆ ಅನುಗುಣವಾಗಿ ರೂಪಿಸಲಾದ ವೈಯಕ್ತಿಕ ದೈನಂದಿನ ಆಚರಣೆಗಳನ್ನು ಪಡೆಯಿರಿ",
|
|
1840
|
+
downloadAppSheetQuestionCta: "ಆ್ಯಪ್ನಲ್ಲಿ ಉಚಿತವಾಗಿ ಪ್ರಶ್ನೆ ಕೇಳಿ",
|
|
1841
|
+
downloadAppSheetRitualTitle: "ಆ್ಯಪ್ನಲ್ಲಿ ವೈಯಕ್ತಿಕ ದೈನಂದಿನ ಆಚರಣೆಗಳು",
|
|
1842
|
+
downloadAppSheetRitualHero: "ಗಮನ ಹರಿಸಬೇಕಾದ ಕ್ಷೇತ್ರವನ್ನು ಆಯ್ಕೆ ಮಾಡಿ ಮತ್ತು ನಿಮ್ಮ ವರದಿಯ ಆಧಾರದ ಮೇಲೆ ಪರಿಹಾರಗಳನ್ನು ಪಡೆಯಿರಿ",
|
|
1843
|
+
downloadAppSheetAccessDownloadReport: "ಆ್ಯಪ್ನಲ್ಲಿ ನಿಮ್ಮ ಕುಂಡಲಿ ವರದಿ ಮತ್ತು ವಿಭಾಗವಾರು ಸಾರಾಂಶವನ್ನು ವೀಕ್ಷಿಸಿ ಹಾಗೂ ಡೌನ್ಲೋಡ್ ಮಾಡಿ",
|
|
1844
|
+
downloadAppSheetRitualCta: "ಆ್ಯಪ್ನಲ್ಲಿ ಇಂದಿನ ಆಚರಣೆಯನ್ನು ಪ್ರಾರಂಭಿಸಿ"
|
|
1845
|
+
}, yt = {
|
|
1793
1846
|
kundli: "ஜாதகம்",
|
|
1794
1847
|
birthChart: "பிறப்பு ஜாதகம்",
|
|
1795
1848
|
details: "விவரங்கள்",
|
|
@@ -2016,7 +2069,7 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
2016
2069
|
and: "மற்றும்",
|
|
2017
2070
|
astrologyGuidance: "ஜோதிட வழிகாட்டுதல்",
|
|
2018
2071
|
selectPackage: "தொகுப்பைத் தேர்ந்தெடுக்கவும்"
|
|
2019
|
-
},
|
|
2072
|
+
}, kt = {
|
|
2020
2073
|
kundli: "జాతకం",
|
|
2021
2074
|
birthChart: "జన్మ జాతకం",
|
|
2022
2075
|
details: "వివరాలు",
|
|
@@ -2242,39 +2295,56 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
2242
2295
|
planAstrologerExpAshwini: "16 సంవత్సరాల అనుభవం",
|
|
2243
2296
|
and: "మరియు",
|
|
2244
2297
|
astrologyGuidance: "జ్యోతిష్య మార్గదర్శకం",
|
|
2245
|
-
selectPackage: "ప్యాకేజీని ఎంచుకోండి"
|
|
2246
|
-
|
|
2298
|
+
selectPackage: "ప్యాకేజీని ఎంచుకోండి",
|
|
2299
|
+
// Download app bottom sheet
|
|
2300
|
+
downloadAppSheetTitle: "మీ కుండలి రిపోర్ట్ను యాప్లో పొందండి",
|
|
2301
|
+
downloadAppSheetReportAccess: "మీ కుండలి రిపోర్ట్ మరియు ప్రతి సెక్షన్ యొక్క సారాంశాన్ని యాప్లో చూడండి",
|
|
2302
|
+
downloadAppSheetAlsoUnlocked: "ఇవి కూడా యాప్లో అందుబాటులో ఉన్నాయి",
|
|
2303
|
+
downloadAppSheetAskQuestions: "మీ కుండలి రిపోర్ట్కు సంబంధించిన ప్రశ్నలను మీ స్వంత భాషలో యాప్లో అడగండి",
|
|
2304
|
+
downloadAppSheetRemedies: "మీ దృష్టి పెట్టాలనుకున్న అంశాన్ని ఎంచుకుని, మా రిపోర్ట్ ఆధారంగా పరిహారాలను పొందండి",
|
|
2305
|
+
downloadAppSheetCta: "కుండలి యాప్ను ఉచితంగా డౌన్లోడ్ చేసుకోండి",
|
|
2306
|
+
downloadAppSheetRitualTitle: "యాప్లో మీ కోసం ప్రత్యేకంగా రూపొందించిన రోజువారీ ఆచరణలు",
|
|
2307
|
+
downloadAppSheetRitualHero: "మీ దృష్టి పెట్టాలనుకున్న అంశాన్ని ఎంచుకుని, మా రిపోర్ట్ ఆధారంగా పరిహారాలను పొందండి",
|
|
2308
|
+
downloadAppSheetRitualCta: "ఈరోజు రోజువారీ ఆచరణలను యాప్లో ప్రారంభించండి",
|
|
2309
|
+
downloadAppSheetAccessDownloadReport: "యాప్లో మీ కుండలి నివేదిక & విభాగాల వారీ సారాంశాన్ని యాక్సెస్ చేసి డౌన్లోడ్ చేసుకోండి",
|
|
2310
|
+
// Telugu title has no separate "Free" badge — rendered as plain text.
|
|
2311
|
+
downloadAppSheetQuestionTitle: "యాప్లో ఉచిత ప్రశ్న అడగండి",
|
|
2312
|
+
downloadAppSheetQuestionHero: "మీ కుండలి రిపోర్ట్కు సంబంధించిన ప్రశ్నలను మీ స్వంత భాషలో యాప్లో అడగండి",
|
|
2313
|
+
downloadAppSheetDownloadReport: "యాప్లో మీ కుండలి నివేదిక & విభాగాల వారీ సారాంశాన్ని డౌన్లోడ్ చేసుకోండి",
|
|
2314
|
+
downloadAppSheetDailyRituals: "మీ దృష్టి పెట్టాలనుకున్న అంశాన్ని ఎంచుకుని, మా రిపోర్ట్ ఆధారంగా పరిహారాలను పొందండి",
|
|
2315
|
+
downloadAppSheetQuestionCta: "యాప్లో ఉచిత ప్రశ్న అడగండి"
|
|
2316
|
+
}, Sa = {
|
|
2247
2317
|
en: ft,
|
|
2248
2318
|
hi: ht,
|
|
2249
2319
|
mr: gt,
|
|
2250
2320
|
// Dropdown/type support only for now — copy falls back to English until
|
|
2251
2321
|
// real gu/ta/te/kn translations are written.
|
|
2252
2322
|
gu: bt,
|
|
2253
|
-
ta:
|
|
2254
|
-
te:
|
|
2323
|
+
ta: yt,
|
|
2324
|
+
te: kt,
|
|
2255
2325
|
kn: _t
|
|
2256
|
-
},
|
|
2326
|
+
}, Pa = Ta(null), vi = ({
|
|
2257
2327
|
locale: t,
|
|
2258
2328
|
children: n
|
|
2259
2329
|
}) => {
|
|
2260
|
-
const c = { locale: t, t: (g) =>
|
|
2261
|
-
return /* @__PURE__ */ e.jsx(
|
|
2330
|
+
const c = { locale: t, t: (g) => Sa[t]?.[g] };
|
|
2331
|
+
return /* @__PURE__ */ e.jsx(Pa.Provider, { value: c, children: n });
|
|
2262
2332
|
};
|
|
2263
|
-
function
|
|
2264
|
-
return oa(
|
|
2333
|
+
function At() {
|
|
2334
|
+
return oa(Pa);
|
|
2265
2335
|
}
|
|
2266
2336
|
const Ye = (t) => {
|
|
2267
|
-
const { priority: n, fetchPriority: i, width: c, height: g, ...
|
|
2337
|
+
const { priority: n, fetchPriority: i, width: c, height: g, ...y } = t;
|
|
2268
2338
|
return na.createElement("img", {
|
|
2269
|
-
...
|
|
2339
|
+
...y,
|
|
2270
2340
|
width: c ?? 1,
|
|
2271
2341
|
height: g ?? 1,
|
|
2272
2342
|
decoding: "async",
|
|
2273
|
-
loading:
|
|
2343
|
+
loading: y.loading ?? (n ? "eager" : "lazy"),
|
|
2274
2344
|
...i && { fetchPriority: i }
|
|
2275
2345
|
});
|
|
2276
2346
|
};
|
|
2277
|
-
function
|
|
2347
|
+
function vt(t) {
|
|
2278
2348
|
if (typeof window > "u" || !window.localStorage)
|
|
2279
2349
|
return null;
|
|
2280
2350
|
try {
|
|
@@ -2297,7 +2367,7 @@ function Ti(t) {
|
|
|
2297
2367
|
} catch {
|
|
2298
2368
|
}
|
|
2299
2369
|
}
|
|
2300
|
-
function
|
|
2370
|
+
function wi() {
|
|
2301
2371
|
if (typeof window > "u" || !window.localStorage)
|
|
2302
2372
|
return !1;
|
|
2303
2373
|
try {
|
|
@@ -2307,15 +2377,15 @@ function Pi() {
|
|
|
2307
2377
|
return !1;
|
|
2308
2378
|
}
|
|
2309
2379
|
}
|
|
2310
|
-
const
|
|
2311
|
-
function
|
|
2312
|
-
const t =
|
|
2313
|
-
return t &&
|
|
2380
|
+
const xa = "kundli_language";
|
|
2381
|
+
function wt() {
|
|
2382
|
+
const t = vt(xa);
|
|
2383
|
+
return t && wa.includes(t) ? t : null;
|
|
2314
2384
|
}
|
|
2315
|
-
function
|
|
2316
|
-
Tt(
|
|
2385
|
+
function St(t) {
|
|
2386
|
+
Tt(xa, t);
|
|
2317
2387
|
}
|
|
2318
|
-
const ia = Ta(null),
|
|
2388
|
+
const ia = Ta(null), Pt = {
|
|
2319
2389
|
fullName: "",
|
|
2320
2390
|
phone: "",
|
|
2321
2391
|
phoneCountryCode: "",
|
|
@@ -2326,31 +2396,31 @@ const ia = Ta(null), wt = {
|
|
|
2326
2396
|
birthTime: "",
|
|
2327
2397
|
birthTimeUnknown: !1,
|
|
2328
2398
|
birthPlace: ""
|
|
2329
|
-
},
|
|
2399
|
+
}, Si = ({
|
|
2330
2400
|
locale: t,
|
|
2331
2401
|
showLanguageSelector: n = !0,
|
|
2332
2402
|
showSheet: i,
|
|
2333
2403
|
userId: c,
|
|
2334
2404
|
isGlobal: g,
|
|
2335
|
-
variant:
|
|
2405
|
+
variant: y,
|
|
2336
2406
|
initialFormValues: h,
|
|
2337
|
-
autoOpenPlanSheet:
|
|
2407
|
+
autoOpenPlanSheet: P,
|
|
2338
2408
|
googleMapsApiKey: b,
|
|
2339
2409
|
atlasSearchLocalities: Y,
|
|
2340
|
-
googleMapsAutocompleteEnabled:
|
|
2410
|
+
googleMapsAutocompleteEnabled: B,
|
|
2341
2411
|
enableConsultationScheduling: N,
|
|
2342
2412
|
fetchConsultationSlots: p,
|
|
2343
2413
|
logoUrl: U,
|
|
2344
|
-
reportImageUrl:
|
|
2414
|
+
reportImageUrl: A,
|
|
2345
2415
|
reportImagePriority: j,
|
|
2346
|
-
backgroundImagePriority:
|
|
2416
|
+
backgroundImagePriority: k,
|
|
2347
2417
|
universityLogoUrls: _,
|
|
2348
|
-
sampleReportHref:
|
|
2418
|
+
sampleReportHref: x,
|
|
2349
2419
|
onViewSampleReport: te,
|
|
2350
2420
|
ctaHref: C,
|
|
2351
2421
|
onCtaClick: V,
|
|
2352
|
-
onBack:
|
|
2353
|
-
readMoreReviewsHref:
|
|
2422
|
+
onBack: S,
|
|
2423
|
+
readMoreReviewsHref: Q,
|
|
2354
2424
|
onProceed: R,
|
|
2355
2425
|
proceedHref: E,
|
|
2356
2426
|
originalPriceLabel: se,
|
|
@@ -2365,16 +2435,16 @@ const ia = Ta(null), wt = {
|
|
|
2365
2435
|
threeSkuPlans: re,
|
|
2366
2436
|
children: he
|
|
2367
2437
|
}) => {
|
|
2368
|
-
const [ue,
|
|
2369
|
-
...
|
|
2438
|
+
const [ue, Pe] = D("landing"), [ne, je] = D(t ?? "en"), [_e, pe] = D({
|
|
2439
|
+
...Pt,
|
|
2370
2440
|
...h
|
|
2371
2441
|
}), ge = M(!0);
|
|
2372
2442
|
q(() => {
|
|
2373
2443
|
if (t) return;
|
|
2374
|
-
const fe =
|
|
2444
|
+
const fe = wt();
|
|
2375
2445
|
fe && je(fe);
|
|
2376
2446
|
}, []), q(() => {
|
|
2377
|
-
|
|
2447
|
+
St(ne);
|
|
2378
2448
|
}, [ne]), q(() => {
|
|
2379
2449
|
if (ge.current) {
|
|
2380
2450
|
ge.current = !1;
|
|
@@ -2389,25 +2459,25 @@ const ia = Ta(null), wt = {
|
|
|
2389
2459
|
showSheet: i,
|
|
2390
2460
|
userId: c,
|
|
2391
2461
|
isGlobal: g,
|
|
2392
|
-
variant:
|
|
2462
|
+
variant: y,
|
|
2393
2463
|
initialFormValues: h,
|
|
2394
|
-
autoOpenPlanSheet:
|
|
2464
|
+
autoOpenPlanSheet: P,
|
|
2395
2465
|
googleMapsApiKey: b,
|
|
2396
2466
|
atlasSearchLocalities: Y,
|
|
2397
|
-
googleMapsAutocompleteEnabled:
|
|
2467
|
+
googleMapsAutocompleteEnabled: B,
|
|
2398
2468
|
enableConsultationScheduling: N,
|
|
2399
2469
|
fetchConsultationSlots: p,
|
|
2400
2470
|
logoUrl: U,
|
|
2401
|
-
reportImageUrl:
|
|
2471
|
+
reportImageUrl: A,
|
|
2402
2472
|
reportImagePriority: j,
|
|
2403
|
-
backgroundImagePriority:
|
|
2473
|
+
backgroundImagePriority: k,
|
|
2404
2474
|
universityLogoUrls: _,
|
|
2405
|
-
sampleReportHref:
|
|
2475
|
+
sampleReportHref: x,
|
|
2406
2476
|
onViewSampleReport: te,
|
|
2407
2477
|
ctaHref: C,
|
|
2408
2478
|
onCtaClick: V,
|
|
2409
|
-
onBack:
|
|
2410
|
-
readMoreReviewsHref:
|
|
2479
|
+
onBack: S,
|
|
2480
|
+
readMoreReviewsHref: Q,
|
|
2411
2481
|
onProceed: R,
|
|
2412
2482
|
proceedHref: E,
|
|
2413
2483
|
originalPriceLabel: se,
|
|
@@ -2427,25 +2497,25 @@ const ia = Ta(null), wt = {
|
|
|
2427
2497
|
i,
|
|
2428
2498
|
c,
|
|
2429
2499
|
g,
|
|
2430
|
-
|
|
2500
|
+
y,
|
|
2431
2501
|
h,
|
|
2432
|
-
|
|
2502
|
+
P,
|
|
2433
2503
|
b,
|
|
2434
2504
|
Y,
|
|
2435
|
-
|
|
2505
|
+
B,
|
|
2436
2506
|
N,
|
|
2437
2507
|
p,
|
|
2438
2508
|
U,
|
|
2439
|
-
|
|
2509
|
+
A,
|
|
2440
2510
|
j,
|
|
2441
|
-
|
|
2511
|
+
k,
|
|
2442
2512
|
_,
|
|
2443
|
-
|
|
2513
|
+
x,
|
|
2444
2514
|
te,
|
|
2445
2515
|
C,
|
|
2446
2516
|
V,
|
|
2447
|
-
|
|
2448
|
-
|
|
2517
|
+
S,
|
|
2518
|
+
Q,
|
|
2449
2519
|
R,
|
|
2450
2520
|
E,
|
|
2451
2521
|
se,
|
|
@@ -2460,9 +2530,9 @@ const ia = Ta(null), wt = {
|
|
|
2460
2530
|
re
|
|
2461
2531
|
]
|
|
2462
2532
|
), H = Re(() => {
|
|
2463
|
-
|
|
2533
|
+
Pe("form");
|
|
2464
2534
|
}, [oe.analytics]), me = Re(() => {
|
|
2465
|
-
|
|
2535
|
+
Pe("landing"), oe.onBack?.();
|
|
2466
2536
|
}, [oe.onBack]), ie = Ee(
|
|
2467
2537
|
() => ({
|
|
2468
2538
|
view: ue,
|
|
@@ -2483,7 +2553,7 @@ const ia = Ta(null), wt = {
|
|
|
2483
2553
|
function Me() {
|
|
2484
2554
|
return oa(ia);
|
|
2485
2555
|
}
|
|
2486
|
-
function
|
|
2556
|
+
function Pi() {
|
|
2487
2557
|
const t = oa(ia);
|
|
2488
2558
|
if (!t)
|
|
2489
2559
|
throw new Error(
|
|
@@ -2491,8 +2561,8 @@ function wi() {
|
|
|
2491
2561
|
);
|
|
2492
2562
|
return t;
|
|
2493
2563
|
}
|
|
2494
|
-
const
|
|
2495
|
-
header:
|
|
2564
|
+
const xt = "_header_19172_1", Ct = "_centered_19172_8", ka = {
|
|
2565
|
+
header: xt,
|
|
2496
2566
|
centered: Ct
|
|
2497
2567
|
}, Rt = ({
|
|
2498
2568
|
t,
|
|
@@ -2500,20 +2570,20 @@ const St = "_header_19172_1", Ct = "_centered_19172_8", ya = {
|
|
|
2500
2570
|
className: i = "",
|
|
2501
2571
|
align: c = "left"
|
|
2502
2572
|
}) => /* @__PURE__ */ e.jsx(
|
|
2503
|
-
|
|
2573
|
+
Qa,
|
|
2504
2574
|
{
|
|
2505
2575
|
title: t("formTitle"),
|
|
2506
2576
|
subtitle: t("formSubtitle"),
|
|
2507
2577
|
onBack: n,
|
|
2508
2578
|
backAriaLabel: t("back"),
|
|
2509
|
-
className: `${
|
|
2579
|
+
className: `${ka.header} ${c === "center" ? ka.centered : ""} ${i}`
|
|
2510
2580
|
}
|
|
2511
|
-
), jt = "_wrap_119w3_1", Nt = "_card_119w3_5", Lt = "_cardInner_119w3_12",
|
|
2581
|
+
), 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
2582
|
wrap: jt,
|
|
2513
2583
|
card: Nt,
|
|
2514
2584
|
cardInner: Lt,
|
|
2515
|
-
field:
|
|
2516
|
-
labelRow:
|
|
2585
|
+
field: Dt,
|
|
2586
|
+
labelRow: Bt,
|
|
2517
2587
|
label: Et,
|
|
2518
2588
|
req: It,
|
|
2519
2589
|
help: Ft,
|
|
@@ -2528,8 +2598,8 @@ const St = "_header_19172_1", Ct = "_centered_19172_8", ya = {
|
|
|
2528
2598
|
inputWrap: qt,
|
|
2529
2599
|
isdWrap: Yt,
|
|
2530
2600
|
phoneInputGroup: Vt,
|
|
2531
|
-
isdSelectWrap:
|
|
2532
|
-
isdSelectTrigger:
|
|
2601
|
+
isdSelectWrap: Qt,
|
|
2602
|
+
isdSelectTrigger: zt,
|
|
2533
2603
|
isdDropdown: Jt,
|
|
2534
2604
|
isdSearchWrap: Xt,
|
|
2535
2605
|
isdSearchInput: Zt,
|
|
@@ -2552,18 +2622,18 @@ const St = "_header_19172_1", Ct = "_centered_19172_8", ya = {
|
|
|
2552
2622
|
meridiemActive: gr,
|
|
2553
2623
|
timePopoverActions: br,
|
|
2554
2624
|
timePopoverBtn: _r,
|
|
2555
|
-
timePopoverOk:
|
|
2556
|
-
input:
|
|
2557
|
-
phoneInput:
|
|
2558
|
-
iconBtn:
|
|
2625
|
+
timePopoverOk: yr,
|
|
2626
|
+
input: kr,
|
|
2627
|
+
phoneInput: Ar,
|
|
2628
|
+
iconBtn: vr,
|
|
2559
2629
|
iconBtnInteractive: Tr,
|
|
2560
|
-
iconImg:
|
|
2561
|
-
checkboxRow:
|
|
2562
|
-
checkbox:
|
|
2563
|
-
checkboxText:
|
|
2630
|
+
iconImg: wr,
|
|
2631
|
+
checkboxRow: Sr,
|
|
2632
|
+
checkbox: Pr,
|
|
2633
|
+
checkboxText: xr
|
|
2564
2634
|
};
|
|
2565
|
-
let
|
|
2566
|
-
const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() :
|
|
2635
|
+
let Qe = null;
|
|
2636
|
+
const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : Qe || (Qe = new Promise((i, c) => {
|
|
2567
2637
|
const g = document.querySelector(
|
|
2568
2638
|
'script[data-google-maps-places="true"]'
|
|
2569
2639
|
);
|
|
@@ -2574,14 +2644,14 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2574
2644
|
);
|
|
2575
2645
|
return;
|
|
2576
2646
|
}
|
|
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
|
|
2647
|
+
const y = document.createElement("script"), h = new URL("https://maps.googleapis.com/maps/api/js");
|
|
2648
|
+
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 = () => {
|
|
2649
|
+
const P = Date.now(), b = () => {
|
|
2580
2650
|
if (window.google?.maps?.places) {
|
|
2581
2651
|
i();
|
|
2582
2652
|
return;
|
|
2583
2653
|
}
|
|
2584
|
-
if (Date.now() -
|
|
2654
|
+
if (Date.now() - P > 2e3) {
|
|
2585
2655
|
c(
|
|
2586
2656
|
new Error(
|
|
2587
2657
|
"Google Maps loaded but Places library is unavailable. Check API key restrictions / enabled APIs."
|
|
@@ -2592,10 +2662,10 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2592
2662
|
window.setTimeout(b, 50);
|
|
2593
2663
|
};
|
|
2594
2664
|
b();
|
|
2595
|
-
},
|
|
2596
|
-
}),
|
|
2597
|
-
const { apiKey: n, language: i = "en", restrictCountry: c, deferLoad: g = !1 } = t, [
|
|
2598
|
-
g &&
|
|
2665
|
+
}, y.onerror = () => c(new Error("Failed to load Google Maps API")), document.head.appendChild(y);
|
|
2666
|
+
}), Qe), Rr = (t) => {
|
|
2667
|
+
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(() => {
|
|
2668
|
+
g && A(!0);
|
|
2599
2669
|
}, [g]);
|
|
2600
2670
|
q(() => {
|
|
2601
2671
|
if (!n || !U) {
|
|
@@ -2604,29 +2674,29 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2604
2674
|
}
|
|
2605
2675
|
Cr(n, i).then(() => {
|
|
2606
2676
|
j.current = new google.maps.places.AutocompleteService();
|
|
2607
|
-
const
|
|
2608
|
-
|
|
2609
|
-
}).catch((
|
|
2610
|
-
h(!1), p(
|
|
2677
|
+
const S = document.createElement("div");
|
|
2678
|
+
k.current = new google.maps.places.PlacesService(S), _.current = new google.maps.places.AutocompleteSessionToken(), h(!0), p(null);
|
|
2679
|
+
}).catch((S) => {
|
|
2680
|
+
h(!1), p(S?.message || "Failed to load location service");
|
|
2611
2681
|
});
|
|
2612
2682
|
}, [n, i, U]);
|
|
2613
2683
|
const te = Re(
|
|
2614
|
-
async (
|
|
2615
|
-
if (!
|
|
2684
|
+
async (S) => {
|
|
2685
|
+
if (!S || S.length < 2 || !j.current) {
|
|
2616
2686
|
b([]);
|
|
2617
2687
|
return;
|
|
2618
2688
|
}
|
|
2619
|
-
|
|
2689
|
+
B(!0);
|
|
2620
2690
|
try {
|
|
2621
|
-
const
|
|
2622
|
-
input:
|
|
2691
|
+
const Q = {
|
|
2692
|
+
input: S,
|
|
2623
2693
|
types: ["(cities)"],
|
|
2624
2694
|
sessionToken: _.current ?? void 0
|
|
2625
2695
|
};
|
|
2626
|
-
c && (
|
|
2696
|
+
c && (Q.componentRestrictions = { country: c });
|
|
2627
2697
|
const R = await new Promise((E, se) => {
|
|
2628
2698
|
j.current.getPlacePredictions(
|
|
2629
|
-
|
|
2699
|
+
Q,
|
|
2630
2700
|
(ae, G) => {
|
|
2631
2701
|
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
2702
|
}
|
|
@@ -2645,19 +2715,19 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2645
2715
|
} catch {
|
|
2646
2716
|
b([]);
|
|
2647
2717
|
} finally {
|
|
2648
|
-
|
|
2718
|
+
B(!1);
|
|
2649
2719
|
}
|
|
2650
2720
|
},
|
|
2651
2721
|
[c]
|
|
2652
2722
|
), C = Re(
|
|
2653
|
-
async (
|
|
2654
|
-
if (!
|
|
2723
|
+
async (S) => {
|
|
2724
|
+
if (!k.current) return null;
|
|
2655
2725
|
try {
|
|
2656
|
-
const
|
|
2726
|
+
const Q = await new Promise(
|
|
2657
2727
|
(I, $) => {
|
|
2658
|
-
|
|
2728
|
+
k.current.getDetails(
|
|
2659
2729
|
{
|
|
2660
|
-
placeId:
|
|
2730
|
+
placeId: S,
|
|
2661
2731
|
fields: ["geometry", "address_components", "formatted_address"],
|
|
2662
2732
|
sessionToken: _.current ?? void 0
|
|
2663
2733
|
},
|
|
@@ -2668,12 +2738,12 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2668
2738
|
}
|
|
2669
2739
|
);
|
|
2670
2740
|
_.current = new google.maps.places.AutocompleteSessionToken();
|
|
2671
|
-
const R =
|
|
2741
|
+
const R = Q.geometry?.location?.lat() || 0, E = Q.geometry?.location?.lng() || 0;
|
|
2672
2742
|
let se = "", ae = "", G = "";
|
|
2673
|
-
return
|
|
2743
|
+
return Q.address_components?.forEach((I) => {
|
|
2674
2744
|
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
2745
|
}), {
|
|
2676
|
-
display_name:
|
|
2746
|
+
display_name: Q.formatted_address || "",
|
|
2677
2747
|
lat: R,
|
|
2678
2748
|
lng: E,
|
|
2679
2749
|
city: se,
|
|
@@ -2687,17 +2757,17 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2687
2757
|
[]
|
|
2688
2758
|
), V = Re(() => b([]), []);
|
|
2689
2759
|
return {
|
|
2690
|
-
isLoaded:
|
|
2691
|
-
predictions:
|
|
2760
|
+
isLoaded: y,
|
|
2761
|
+
predictions: P,
|
|
2692
2762
|
isSearching: Y,
|
|
2693
2763
|
loadError: N,
|
|
2694
2764
|
searchPlaces: te,
|
|
2695
2765
|
getPlaceDetails: C,
|
|
2696
2766
|
clearPredictions: V,
|
|
2697
|
-
triggerLoad:
|
|
2767
|
+
triggerLoad: x
|
|
2698
2768
|
// Call this to start loading Google Maps when deferred
|
|
2699
2769
|
};
|
|
2700
|
-
},
|
|
2770
|
+
}, Aa = (t) => typeof t == "number" && Number.isFinite(t), jr = (t) => {
|
|
2701
2771
|
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
2772
|
return {
|
|
2703
2773
|
limit: n,
|
|
@@ -2705,11 +2775,11 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2705
2775
|
restrictCountry: t?.restrictCountry
|
|
2706
2776
|
};
|
|
2707
2777
|
}, Nr = (t) => {
|
|
2708
|
-
const { searchLocalities: n, restrictCountry: i } = t, [c, g] =
|
|
2778
|
+
const { searchLocalities: n, restrictCountry: i } = t, [c, g] = D([]), [y, h] = D(!1), [P, b] = D(null), Y = M(0);
|
|
2709
2779
|
q(() => {
|
|
2710
2780
|
b(null);
|
|
2711
2781
|
}, [n]);
|
|
2712
|
-
const
|
|
2782
|
+
const B = Re(
|
|
2713
2783
|
async (p) => {
|
|
2714
2784
|
if (!p || p.length < 2 || !n) {
|
|
2715
2785
|
g([]);
|
|
@@ -2718,10 +2788,10 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2718
2788
|
const U = ++Y.current;
|
|
2719
2789
|
h(!0), b(null);
|
|
2720
2790
|
try {
|
|
2721
|
-
const
|
|
2791
|
+
const A = jr({ restrictCountry: i }), j = await n(p, A);
|
|
2722
2792
|
if (U !== Y.current) return;
|
|
2723
|
-
const
|
|
2724
|
-
(_) => !!_?.id && !!_?.description &&
|
|
2793
|
+
const k = (j || []).filter(
|
|
2794
|
+
(_) => !!_?.id && !!_?.description && Aa(_?.lat) && Aa(_?.lng)
|
|
2725
2795
|
).map((_) => ({
|
|
2726
2796
|
id: _.id,
|
|
2727
2797
|
description: _.description,
|
|
@@ -2729,10 +2799,10 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2729
2799
|
lat: _.lat,
|
|
2730
2800
|
lng: _.lng
|
|
2731
2801
|
}));
|
|
2732
|
-
g(
|
|
2733
|
-
} catch (
|
|
2802
|
+
g(k);
|
|
2803
|
+
} catch (A) {
|
|
2734
2804
|
if (U !== Y.current) return;
|
|
2735
|
-
g([]), b(
|
|
2805
|
+
g([]), b(A?.message || "Failed to fetch locations");
|
|
2736
2806
|
} finally {
|
|
2737
2807
|
U === Y.current && h(!1);
|
|
2738
2808
|
}
|
|
@@ -2741,9 +2811,9 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2741
2811
|
), N = Re(() => g([]), []);
|
|
2742
2812
|
return {
|
|
2743
2813
|
predictions: c,
|
|
2744
|
-
isSearching:
|
|
2745
|
-
loadError:
|
|
2746
|
-
searchPlaces:
|
|
2814
|
+
isSearching: y,
|
|
2815
|
+
loadError: P,
|
|
2816
|
+
searchPlaces: B,
|
|
2747
2817
|
clearPredictions: N
|
|
2748
2818
|
};
|
|
2749
2819
|
}, Oe = {
|
|
@@ -2821,26 +2891,26 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2821
2891
|
{ code: "+975", country: "Bhutan" },
|
|
2822
2892
|
{ code: "+976", country: "Mongolia" },
|
|
2823
2893
|
{ code: "+977", country: "Nepal" }
|
|
2824
|
-
], ra = Ca.map((t) => t.code), Ra = 10, la = (t) => t.replace(/\D/g, ""),
|
|
2894
|
+
], 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
2895
|
t,
|
|
2826
2896
|
values: n,
|
|
2827
2897
|
onChange: i,
|
|
2828
2898
|
phoneIsdCode: c,
|
|
2829
2899
|
onPhoneIsdCodeChange: g,
|
|
2830
|
-
showV1ExtraFields:
|
|
2900
|
+
showV1ExtraFields: y = !1,
|
|
2831
2901
|
analytics: h,
|
|
2832
|
-
googleMapsApiKey:
|
|
2902
|
+
googleMapsApiKey: P,
|
|
2833
2903
|
atlasSearchLocalities: b,
|
|
2834
2904
|
googleMapsAutocompleteEnabled: Y,
|
|
2835
|
-
className:
|
|
2905
|
+
className: B = ""
|
|
2836
2906
|
}) => {
|
|
2837
|
-
const N = Me(), p = N?.config?.analytics ?? h, U = N?.config.isGlobal ?? !0,
|
|
2907
|
+
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
2908
|
if (r === "phone") {
|
|
2839
|
-
const
|
|
2840
|
-
|
|
2909
|
+
const z = Dr(d, c, Q.current);
|
|
2910
|
+
z.shouldTrack && p?.trackPhoneSectionFilled?.({ phone: z.fullPhone });
|
|
2841
2911
|
return;
|
|
2842
2912
|
}
|
|
2843
|
-
d.trim() && !
|
|
2913
|
+
d.trim() && !Q.current[r] && (Q.current[r] = !0, {
|
|
2844
2914
|
fullName: () => p?.trackNameSectionFilled?.(),
|
|
2845
2915
|
dateOfBirth: () => p?.trackDobFilled?.(),
|
|
2846
2916
|
birthTime: () => p?.trackTimeFilled?.(),
|
|
@@ -2851,42 +2921,42 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2851
2921
|
d.trim() && p?.trackEmailSectionFilled?.({ email: d });
|
|
2852
2922
|
}, ae = te.trim().toLowerCase(), G = Ca.filter((r) => ae ? r.country.toLowerCase().includes(ae) || r.code.includes(ae) : !0), I = M(null);
|
|
2853
2923
|
M(null);
|
|
2854
|
-
const $ = M(null), X = M(0), O = M(null), [Te, K] =
|
|
2924
|
+
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
2925
|
const d = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
|
|
2856
2926
|
if (!d) return r;
|
|
2857
|
-
const
|
|
2858
|
-
return `${
|
|
2927
|
+
const z = Number(d[1]), xe = d[2], $e = z >= 12 ? "PM" : "AM";
|
|
2928
|
+
return `${z % 12 === 0 ? 12 : z % 12}:${xe} ${$e}`;
|
|
2859
2929
|
}, ne = (r) => {
|
|
2860
2930
|
const d = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
|
|
2861
2931
|
if (!d) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
2862
|
-
const
|
|
2863
|
-
return { hour12:
|
|
2932
|
+
const z = Number(d[1]), xe = d[2], $e = z >= 12 ? "PM" : "AM";
|
|
2933
|
+
return { hour12: z % 12 === 0 ? 12 : z % 12, minute: xe, meridiem: $e };
|
|
2864
2934
|
}, 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] =
|
|
2935
|
+
const d = Math.min(12, Math.max(1, r.hour12)), z = /^([0-5]\d)$/.test(r.minute) ? r.minute : "00";
|
|
2936
|
+
let xe = d % 12;
|
|
2937
|
+
return r.meridiem === "PM" && (xe += 12), `${ue(xe)}:${z}`;
|
|
2938
|
+
}, _e = M(null), [pe, ge] = D(!1), oe = M(n.birthPlace ?? ""), [H, me] = D(
|
|
2869
2939
|
null
|
|
2870
|
-
), ie =
|
|
2940
|
+
), 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
2941
|
apiKey: ee ? ie : void 0,
|
|
2872
2942
|
language: "en",
|
|
2873
2943
|
restrictCountry: Ne
|
|
2874
|
-
}),
|
|
2944
|
+
}), ke = Nr({
|
|
2875
2945
|
searchLocalities: ee ? void 0 : fe,
|
|
2876
2946
|
restrictCountry: Ne
|
|
2877
|
-
}),
|
|
2947
|
+
}), Se = ee ? ye.predictions.map((r) => ({
|
|
2878
2948
|
id: r.place_id,
|
|
2879
2949
|
description: r.description,
|
|
2880
2950
|
secondaryText: r.structured_formatting?.secondary_text,
|
|
2881
2951
|
lat: void 0,
|
|
2882
2952
|
lng: void 0
|
|
2883
|
-
})) :
|
|
2953
|
+
})) : ke.predictions.map((r) => ({
|
|
2884
2954
|
id: r.id,
|
|
2885
2955
|
description: r.description,
|
|
2886
2956
|
secondaryText: r.secondary_text,
|
|
2887
2957
|
lat: r.lat,
|
|
2888
2958
|
lng: r.lng
|
|
2889
|
-
})),
|
|
2959
|
+
})), 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
2960
|
});
|
|
2891
2961
|
Z.current = () => {
|
|
2892
2962
|
(n.birthPlace ?? "") !== oe.current && R({
|
|
@@ -2901,13 +2971,13 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2901
2971
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
2902
2972
|
}, []), q(() => {
|
|
2903
2973
|
const r = (d) => {
|
|
2904
|
-
V.current && (V.current.contains(d.target) || (
|
|
2974
|
+
V.current && (V.current.contains(d.target) || (x(!1), C("")));
|
|
2905
2975
|
};
|
|
2906
2976
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
2907
2977
|
}, []), q(() => {
|
|
2908
2978
|
if (!_) return;
|
|
2909
2979
|
const r = window.setTimeout(() => {
|
|
2910
|
-
|
|
2980
|
+
S.current?.focus();
|
|
2911
2981
|
}, 0);
|
|
2912
2982
|
return () => window.clearTimeout(r);
|
|
2913
2983
|
}, [_]), q(() => {
|
|
@@ -2941,10 +3011,10 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2941
3011
|
};
|
|
2942
3012
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
2943
3013
|
}, []), q(() => {
|
|
2944
|
-
const r = (
|
|
2945
|
-
|
|
2946
|
-
}, d = (
|
|
2947
|
-
|
|
3014
|
+
const r = (z) => {
|
|
3015
|
+
z.target?.closest?.("[data-info-tooltip]") == null && me(null);
|
|
3016
|
+
}, d = (z) => {
|
|
3017
|
+
z.key === "Escape" && me(null);
|
|
2948
3018
|
};
|
|
2949
3019
|
return document.addEventListener("mousedown", r), document.addEventListener("keydown", d), () => {
|
|
2950
3020
|
document.removeEventListener("mousedown", r), document.removeEventListener("keydown", d);
|
|
@@ -2952,7 +3022,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2952
3022
|
}, []), /* @__PURE__ */ e.jsx(
|
|
2953
3023
|
"section",
|
|
2954
3024
|
{
|
|
2955
|
-
className: `${o.wrap} ${
|
|
3025
|
+
className: `${o.wrap} ${B}`,
|
|
2956
3026
|
"aria-label": t("formTitle"),
|
|
2957
3027
|
children: /* @__PURE__ */ e.jsx("div", { className: o.card, children: /* @__PURE__ */ e.jsxs("div", { className: o.cardInner, children: [
|
|
2958
3028
|
/* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
@@ -2992,7 +3062,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2992
3062
|
"aria-haspopup": "listbox",
|
|
2993
3063
|
"aria-expanded": _,
|
|
2994
3064
|
onClick: () => {
|
|
2995
|
-
|
|
3065
|
+
x((r) => !r), C("");
|
|
2996
3066
|
},
|
|
2997
3067
|
children: c
|
|
2998
3068
|
}
|
|
@@ -3007,7 +3077,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3007
3077
|
onFocus: () => p?.trackPhoneSectionClicked?.(),
|
|
3008
3078
|
onChange: (r) => {
|
|
3009
3079
|
const d = r.target.value;
|
|
3010
|
-
R({ phone:
|
|
3080
|
+
R({ phone: va(d) }), E("phone", va(d));
|
|
3011
3081
|
},
|
|
3012
3082
|
placeholder: t("formPhonePlaceholder"),
|
|
3013
3083
|
autoComplete: "tel",
|
|
@@ -3029,7 +3099,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3029
3099
|
/* @__PURE__ */ e.jsx("div", { className: o.isdSearchWrap, children: /* @__PURE__ */ e.jsx(
|
|
3030
3100
|
"input",
|
|
3031
3101
|
{
|
|
3032
|
-
ref:
|
|
3102
|
+
ref: S,
|
|
3033
3103
|
type: "text",
|
|
3034
3104
|
value: te,
|
|
3035
3105
|
onChange: (r) => C(r.target.value),
|
|
@@ -3046,7 +3116,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3046
3116
|
"aria-selected": r.code === c,
|
|
3047
3117
|
className: `${o.isdOption} ${r.code === c ? o.isdOptionActive : ""}`,
|
|
3048
3118
|
onClick: () => {
|
|
3049
|
-
g(r.code),
|
|
3119
|
+
g(r.code), x(!1), C("");
|
|
3050
3120
|
},
|
|
3051
3121
|
children: [
|
|
3052
3122
|
/* @__PURE__ */ e.jsx("span", { className: o.isdCountryName, children: r.country }),
|
|
@@ -3060,7 +3130,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3060
3130
|
)
|
|
3061
3131
|
] }) })
|
|
3062
3132
|
] }),
|
|
3063
|
-
|
|
3133
|
+
y && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
3064
3134
|
/* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, children: [
|
|
3065
3135
|
t("formGender"),
|
|
3066
3136
|
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
@@ -3181,8 +3251,8 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3181
3251
|
return `${r.getFullYear()}-${ue(r.getMonth() + 1)}-${ue(r.getDate())}`;
|
|
3182
3252
|
})(),
|
|
3183
3253
|
onChange: (r) => {
|
|
3184
|
-
const d = r.target.value,
|
|
3185
|
-
d && d >
|
|
3254
|
+
const d = r.target.value, z = /* @__PURE__ */ new Date(), xe = `${z.getFullYear()}-${ue(z.getMonth() + 1)}-${ue(z.getDate())}`;
|
|
3255
|
+
d && d > xe || (R({ dateOfBirth: d }), E("dateOfBirth", d), $.current = null);
|
|
3186
3256
|
},
|
|
3187
3257
|
onFocus: () => p?.trackDobClicked?.(),
|
|
3188
3258
|
onClick: () => be(I),
|
|
@@ -3255,7 +3325,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3255
3325
|
id: "kundli-birth-time",
|
|
3256
3326
|
className: o.input,
|
|
3257
3327
|
type: "text",
|
|
3258
|
-
value: n.birthTime ?
|
|
3328
|
+
value: n.birthTime ? Pe(n.birthTime) : "",
|
|
3259
3329
|
readOnly: !0,
|
|
3260
3330
|
onFocus: () => p?.trackTimeClicked?.(),
|
|
3261
3331
|
onChange: (r) => {
|
|
@@ -3492,7 +3562,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3492
3562
|
"aria-hidden": !0
|
|
3493
3563
|
}
|
|
3494
3564
|
) }),
|
|
3495
|
-
pe &&
|
|
3565
|
+
pe && Se.length > 0 && /* @__PURE__ */ e.jsx("div", { className: o.suggestions, role: "listbox", children: Se.slice(0, 8).map((r) => /* @__PURE__ */ e.jsxs(
|
|
3496
3566
|
"button",
|
|
3497
3567
|
{
|
|
3498
3568
|
type: "button",
|
|
@@ -3504,14 +3574,14 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3504
3574
|
birthPlaceLat: r.lat,
|
|
3505
3575
|
birthPlaceLng: r.lng
|
|
3506
3576
|
}), f(), ge(!1), ee) {
|
|
3507
|
-
const
|
|
3577
|
+
const z = await ye.getPlaceDetails(
|
|
3508
3578
|
r.id
|
|
3509
3579
|
);
|
|
3510
|
-
|
|
3580
|
+
z && (oe.current = d, i({
|
|
3511
3581
|
...n,
|
|
3512
3582
|
birthPlace: d,
|
|
3513
|
-
birthPlaceLat:
|
|
3514
|
-
birthPlaceLng:
|
|
3583
|
+
birthPlaceLat: z.lat,
|
|
3584
|
+
birthPlaceLng: z.lng
|
|
3515
3585
|
}));
|
|
3516
3586
|
}
|
|
3517
3587
|
},
|
|
@@ -3522,11 +3592,11 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3522
3592
|
},
|
|
3523
3593
|
r.id
|
|
3524
3594
|
)) }),
|
|
3525
|
-
pe &&
|
|
3526
|
-
pe &&
|
|
3595
|
+
pe && w && De && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: "Loading…" }),
|
|
3596
|
+
pe && w && !De && !!Be && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: Be })
|
|
3527
3597
|
] })
|
|
3528
3598
|
] }),
|
|
3529
|
-
|
|
3599
|
+
y && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
3530
3600
|
/* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, children: [
|
|
3531
3601
|
t("formReportLanguage"),
|
|
3532
3602
|
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
@@ -3726,47 +3796,47 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3726
3796
|
phoneIsdCode: i,
|
|
3727
3797
|
requireV1ExtraFields: c = !1,
|
|
3728
3798
|
onValidationFailed: g,
|
|
3729
|
-
onProceed:
|
|
3799
|
+
onProceed: y,
|
|
3730
3800
|
onProceedGuidance: h,
|
|
3731
|
-
href:
|
|
3801
|
+
href: P,
|
|
3732
3802
|
analytics: b,
|
|
3733
3803
|
className: Y = "",
|
|
3734
|
-
discountedPriceLabel:
|
|
3804
|
+
discountedPriceLabel: B,
|
|
3735
3805
|
discountPillLabel: N,
|
|
3736
3806
|
showPlanSheet: p,
|
|
3737
3807
|
confirmPlan: U,
|
|
3738
|
-
planSheetOpen:
|
|
3808
|
+
planSheetOpen: A,
|
|
3739
3809
|
selectedPlan: j
|
|
3740
3810
|
}) => {
|
|
3741
|
-
const
|
|
3811
|
+
const k = Me(), _ = k?.config.isGlobal ?? !0, x = k?.config?.variant, te = Ee(
|
|
3742
3812
|
() => Yr(n, _, c),
|
|
3743
3813
|
[n, _, c]
|
|
3744
|
-
), C = te === null, V =
|
|
3745
|
-
if (se.preventDefault(),
|
|
3814
|
+
), C = te === null, V = x === "v1" && k?.config?.showSheet, S = _ ? B ?? t("formDiscountedPrice") : V ? "" : "₹499", Q = k?.config.imageComponent ?? Ye, R = (se) => {
|
|
3815
|
+
if (se.preventDefault(), x === "v1" && !C && b?.trackKundliDetailedClicked?.(), !C) {
|
|
3746
3816
|
te && g?.(te);
|
|
3747
3817
|
return;
|
|
3748
3818
|
}
|
|
3749
|
-
const ae = !!h &&
|
|
3819
|
+
const ae = !!h && x === "v1" && j?.id === ja, G = (n.phone ?? "").trim(), I = {
|
|
3750
3820
|
...n,
|
|
3751
3821
|
phone: G && `${i}-${G}`
|
|
3752
3822
|
};
|
|
3753
3823
|
if (V) {
|
|
3754
|
-
|
|
3824
|
+
A ? U?.() : p?.(I);
|
|
3755
3825
|
return;
|
|
3756
3826
|
}
|
|
3757
|
-
b?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), ae ? h(I) :
|
|
3827
|
+
b?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), ae ? h(I) : y?.(I);
|
|
3758
3828
|
}, E = /* @__PURE__ */ e.jsx(
|
|
3759
|
-
|
|
3829
|
+
za,
|
|
3760
3830
|
{
|
|
3761
|
-
href:
|
|
3762
|
-
disabled:
|
|
3831
|
+
href: P,
|
|
3832
|
+
disabled: x === "v1" ? !1 : !C,
|
|
3763
3833
|
onClick: R,
|
|
3764
3834
|
"aria-label": t("formPriceAria"),
|
|
3765
|
-
className:
|
|
3766
|
-
children:
|
|
3767
|
-
V ? t("selectPackage") :
|
|
3835
|
+
className: x === "v1" && C ? Ke.ctaFilled : x === "v1" ? Ke.ctaButton : void 0,
|
|
3836
|
+
children: x === "v1" ? C ? /* @__PURE__ */ e.jsxs("span", { className: Ke.ctaFilledContent, children: [
|
|
3837
|
+
V ? t("selectPackage") : A && j ? `${t("proceedWithPlan")}${j.price}` : `${t("formProceed")} ${S}`,
|
|
3768
3838
|
/* @__PURE__ */ e.jsx(
|
|
3769
|
-
|
|
3839
|
+
Q,
|
|
3770
3840
|
{
|
|
3771
3841
|
src: Hr,
|
|
3772
3842
|
alt: "",
|
|
@@ -3779,7 +3849,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3779
3849
|
] }) : t("formCtaDefault") : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3780
3850
|
t("formProceed"),
|
|
3781
3851
|
" ",
|
|
3782
|
-
|
|
3852
|
+
S
|
|
3783
3853
|
] })
|
|
3784
3854
|
}
|
|
3785
3855
|
);
|
|
@@ -3791,13 +3861,13 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3791
3861
|
children: E
|
|
3792
3862
|
}
|
|
3793
3863
|
);
|
|
3794
|
-
},
|
|
3864
|
+
}, Qr = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", zr = ({
|
|
3795
3865
|
t,
|
|
3796
3866
|
languageSelector: n,
|
|
3797
|
-
logoUrl: i =
|
|
3867
|
+
logoUrl: i = Qr,
|
|
3798
3868
|
className: c = ""
|
|
3799
3869
|
}) => {
|
|
3800
|
-
const g = Me(),
|
|
3870
|
+
const g = Me(), y = g?.config.isGlobal ?? !0, h = n != null && !y;
|
|
3801
3871
|
return /* @__PURE__ */ e.jsx(
|
|
3802
3872
|
Za,
|
|
3803
3873
|
{
|
|
@@ -3861,7 +3931,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3861
3931
|
/* @__PURE__ */ e.jsx("path", { d: "M3 9.5h18", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
3862
3932
|
/* @__PURE__ */ e.jsx("path", { d: "M8 2.5v4M16 2.5v4", stroke: "#D1D5DB", strokeWidth: "1.6", strokeLinecap: "round" }),
|
|
3863
3933
|
/* @__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",
|
|
3934
|
+
] }), 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
3935
|
overlay: nn,
|
|
3866
3936
|
sheet: on,
|
|
3867
3937
|
sheetFullScreen: ln,
|
|
@@ -3876,22 +3946,22 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3876
3946
|
planCardSelected: gn,
|
|
3877
3947
|
planCardPopular: bn,
|
|
3878
3948
|
popularBadge: _n,
|
|
3879
|
-
planCardInner:
|
|
3880
|
-
planTitleRow:
|
|
3881
|
-
planTitle:
|
|
3882
|
-
radioCircle:
|
|
3949
|
+
planCardInner: yn,
|
|
3950
|
+
planTitleRow: kn,
|
|
3951
|
+
planTitle: An,
|
|
3952
|
+
radioCircle: vn,
|
|
3883
3953
|
radioChecked: Tn,
|
|
3884
|
-
radioInner:
|
|
3885
|
-
priceRow:
|
|
3886
|
-
price:
|
|
3887
|
-
originalPrice:
|
|
3954
|
+
radioInner: wn,
|
|
3955
|
+
priceRow: Sn,
|
|
3956
|
+
price: Pn,
|
|
3957
|
+
originalPrice: xn,
|
|
3888
3958
|
savingsBadge: Cn,
|
|
3889
3959
|
featureList: Rn,
|
|
3890
3960
|
featureItem: jn,
|
|
3891
3961
|
featureIcon: Nn,
|
|
3892
3962
|
featureText: Ln,
|
|
3893
|
-
astrologerHeading:
|
|
3894
|
-
astrologerList:
|
|
3963
|
+
astrologerHeading: Dn,
|
|
3964
|
+
astrologerList: Bn,
|
|
3895
3965
|
astrologerCard: En,
|
|
3896
3966
|
astrologerAvatar: In,
|
|
3897
3967
|
astrologerAvatarPlaceholder: Fn,
|
|
@@ -3906,7 +3976,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3906
3976
|
bullet: qn,
|
|
3907
3977
|
footer: Yn,
|
|
3908
3978
|
proceedBtn: Vn
|
|
3909
|
-
},
|
|
3979
|
+
}, Qn = ({ title: t, onBack: n }) => /* @__PURE__ */ e.jsxs("div", { className: T.header, children: [
|
|
3910
3980
|
/* @__PURE__ */ e.jsx(
|
|
3911
3981
|
"button",
|
|
3912
3982
|
{
|
|
@@ -3918,7 +3988,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3918
3988
|
}
|
|
3919
3989
|
),
|
|
3920
3990
|
/* @__PURE__ */ e.jsx("h2", { className: T.title, children: t })
|
|
3921
|
-
] }),
|
|
3991
|
+
] }), 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
3992
|
/* @__PURE__ */ e.jsx("span", { className: T.featureIcon, children: i.included ? /* @__PURE__ */ e.jsx(Na, {}) : /* @__PURE__ */ e.jsx(Jr, {}) }),
|
|
3923
3993
|
/* @__PURE__ */ e.jsx(
|
|
3924
3994
|
"span",
|
|
@@ -3945,7 +4015,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3945
4015
|
/* @__PURE__ */ e.jsx(Zr, {}),
|
|
3946
4016
|
/* @__PURE__ */ e.jsx("span", { children: t })
|
|
3947
4017
|
] }), Zn = ({ plan: t, isSelected: n, onSelect: i, t: c }) => {
|
|
3948
|
-
const g = () => i(t.id),
|
|
4018
|
+
const g = () => i(t.id), y = (h) => {
|
|
3949
4019
|
(h.key === " " || h.key === "Enter") && (h.preventDefault(), i(t.id));
|
|
3950
4020
|
};
|
|
3951
4021
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -3960,7 +4030,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3960
4030
|
role: "radio",
|
|
3961
4031
|
"aria-checked": n,
|
|
3962
4032
|
tabIndex: 0,
|
|
3963
|
-
onKeyDown:
|
|
4033
|
+
onKeyDown: y,
|
|
3964
4034
|
"data-plan-id": t.id,
|
|
3965
4035
|
children: [
|
|
3966
4036
|
t.badge && /* @__PURE__ */ e.jsx(Xn, { label: c?.(t.badge) ?? t.badge }),
|
|
@@ -3981,11 +4051,11 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3981
4051
|
t.originalPrice && /* @__PURE__ */ e.jsx("span", { className: T.originalPrice, children: t.originalPrice }),
|
|
3982
4052
|
t.savingsLabel && /* @__PURE__ */ e.jsx("span", { className: T.savingsBadge, children: c?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
|
|
3983
4053
|
] }),
|
|
3984
|
-
/* @__PURE__ */ e.jsx(
|
|
4054
|
+
/* @__PURE__ */ e.jsx(zn, { features: t.features, t: c }),
|
|
3985
4055
|
t.astrologers && /* @__PURE__ */ e.jsx("div", { className: T.planDivider }),
|
|
3986
4056
|
t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3987
4057
|
/* @__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,
|
|
4058
|
+
/* @__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
4059
|
] })
|
|
3990
4060
|
] })
|
|
3991
4061
|
]
|
|
@@ -4000,9 +4070,9 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4000
4070
|
const i = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], c = /* @__PURE__ */ new Date(`${t}T00:00:00`);
|
|
4001
4071
|
if (Number.isNaN(c.getTime()))
|
|
4002
4072
|
return { id: t, dayLabel: t, dayNum: "" };
|
|
4003
|
-
const g = (
|
|
4073
|
+
const g = (P) => new Date(P.getFullYear(), P.getMonth(), P.getDate()).getTime(), y = Math.round(
|
|
4004
4074
|
(g(c) - g(n)) / (1e3 * 60 * 60 * 24)
|
|
4005
|
-
), h =
|
|
4075
|
+
), h = y === 0 ? "Today" : y === 1 ? "Tomorrow" : i[c.getDay()];
|
|
4006
4076
|
return { id: t, dayLabel: h, dayNum: String(c.getDate()) };
|
|
4007
4077
|
}, ao = [
|
|
4008
4078
|
"morning",
|
|
@@ -4038,11 +4108,11 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4038
4108
|
mr: ["mr", "en"],
|
|
4039
4109
|
ta: ["ta", "en"]
|
|
4040
4110
|
}, 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 !==
|
|
4111
|
+
const c = i ? no : ro, [g, y] = c[n || "en"] ?? c.en, h = qe.map((b) => b.code).filter(
|
|
4112
|
+
(b) => b !== g && b !== y
|
|
4043
4113
|
);
|
|
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",
|
|
4114
|
+
return [g, y, ...h].find((b) => La(t[b])) ?? g;
|
|
4115
|
+
}, 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
4116
|
overlay: io,
|
|
4047
4117
|
sheet: lo,
|
|
4048
4118
|
content: so,
|
|
@@ -4055,22 +4125,22 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4055
4125
|
languageDropdownBtn: go,
|
|
4056
4126
|
languageMenu: bo,
|
|
4057
4127
|
languageMenuItem: _o,
|
|
4058
|
-
languageMenuItemSelected:
|
|
4059
|
-
languageDivider:
|
|
4060
|
-
reportReadyBanner:
|
|
4061
|
-
reportReadyDuration:
|
|
4128
|
+
languageMenuItemSelected: yo,
|
|
4129
|
+
languageDivider: ko,
|
|
4130
|
+
reportReadyBanner: Ao,
|
|
4131
|
+
reportReadyDuration: vo,
|
|
4062
4132
|
trustRow: To,
|
|
4063
|
-
trustAvatars:
|
|
4064
|
-
trustText:
|
|
4065
|
-
sectionHeading:
|
|
4066
|
-
dateTabs:
|
|
4133
|
+
trustAvatars: wo,
|
|
4134
|
+
trustText: So,
|
|
4135
|
+
sectionHeading: Po,
|
|
4136
|
+
dateTabs: xo,
|
|
4067
4137
|
dateTabIndicator: Co,
|
|
4068
4138
|
dateTab: Ro,
|
|
4069
4139
|
dateTabDivider: jo,
|
|
4070
4140
|
dateTabSelected: No,
|
|
4071
4141
|
dateTabLabel: Lo,
|
|
4072
|
-
dateTabNum:
|
|
4073
|
-
periodTabs:
|
|
4142
|
+
dateTabNum: Do,
|
|
4143
|
+
periodTabs: Bo,
|
|
4074
4144
|
periodTabIndicator: Eo,
|
|
4075
4145
|
periodTab: Io,
|
|
4076
4146
|
periodTabSelected: Fo,
|
|
@@ -4085,8 +4155,8 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4085
4155
|
emptyStateIcon: qo,
|
|
4086
4156
|
emptyStateTitle: Yo,
|
|
4087
4157
|
emptyStateSubtitle: Vo,
|
|
4088
|
-
loadingWrap:
|
|
4089
|
-
skeletonShimmer:
|
|
4158
|
+
loadingWrap: Qo,
|
|
4159
|
+
skeletonShimmer: zo,
|
|
4090
4160
|
skeletonDateTabs: Jo,
|
|
4091
4161
|
skeletonDateTab: Xo,
|
|
4092
4162
|
skeletonPeriodTabs: Zo,
|
|
@@ -4114,27 +4184,27 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4114
4184
|
t: i,
|
|
4115
4185
|
analytics: c,
|
|
4116
4186
|
reportLanguage: g,
|
|
4117
|
-
isPostPayment:
|
|
4187
|
+
isPostPayment: y = !1,
|
|
4118
4188
|
showGuidanceTopic: h,
|
|
4119
|
-
hideFooter:
|
|
4189
|
+
hideFooter: P = !1,
|
|
4120
4190
|
onStateChange: b
|
|
4121
4191
|
}) => {
|
|
4122
|
-
const Y = h ?? !
|
|
4123
|
-
() => C[
|
|
4124
|
-
[C,
|
|
4125
|
-
), [G, I] =
|
|
4192
|
+
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(
|
|
4193
|
+
() => C[S]?.days ?? [],
|
|
4194
|
+
[C, S]
|
|
4195
|
+
), [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
4196
|
{}
|
|
4127
|
-
), [ge, oe] =
|
|
4197
|
+
), [ge, oe] = D(null), H = Ee(
|
|
4128
4198
|
() => ae.filter((l) => l.has_availability && l.slots.length > 0),
|
|
4129
4199
|
[ae]
|
|
4130
4200
|
), me = Re(() => {
|
|
4131
4201
|
p && (_(!0), te(!1), p().then((l) => {
|
|
4132
4202
|
const f = l ?? {}, Z = oo(
|
|
4133
4203
|
f,
|
|
4134
|
-
|
|
4204
|
+
A,
|
|
4135
4205
|
U
|
|
4136
4206
|
);
|
|
4137
|
-
V(f),
|
|
4207
|
+
V(f), Q(Z), c?.trackConsultationLanguageDefaultSelected?.({
|
|
4138
4208
|
language: ta(Z),
|
|
4139
4209
|
status: j
|
|
4140
4210
|
});
|
|
@@ -4149,7 +4219,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4149
4219
|
}).catch(() => {
|
|
4150
4220
|
te(!0);
|
|
4151
4221
|
}).finally(() => _(!1)));
|
|
4152
|
-
}, [p, U,
|
|
4222
|
+
}, [p, U, A, c, n, j]);
|
|
4153
4223
|
q(() => {
|
|
4154
4224
|
I(""), E(!1), me();
|
|
4155
4225
|
}, []), q(() => {
|
|
@@ -4191,7 +4261,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4191
4261
|
const ee = Ee(() => ie ? ie.slots.filter((l) => l.period === O) : [], [ie, O]);
|
|
4192
4262
|
q(() => {
|
|
4193
4263
|
const l = () => {
|
|
4194
|
-
const f = ue.current, Z =
|
|
4264
|
+
const f = ue.current, Z = Pe.current[$];
|
|
4195
4265
|
if (!f || !Z) {
|
|
4196
4266
|
je(null);
|
|
4197
4267
|
return;
|
|
@@ -4248,13 +4318,13 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4248
4318
|
day_part_default: O,
|
|
4249
4319
|
status: j
|
|
4250
4320
|
});
|
|
4251
|
-
},
|
|
4321
|
+
}, we = (l) => {
|
|
4252
4322
|
Te(l), c?.trackDayPartSelected?.({
|
|
4253
4323
|
day_part: l,
|
|
4254
4324
|
slots_available_count: ie?.slots.filter((f) => f.period === l).length ?? 0,
|
|
4255
4325
|
status: j
|
|
4256
4326
|
});
|
|
4257
|
-
},
|
|
4327
|
+
}, ye = (l) => {
|
|
4258
4328
|
re(l), c?.trackSlotSelected?.({
|
|
4259
4329
|
date: $,
|
|
4260
4330
|
time: aa(l.start),
|
|
@@ -4262,7 +4332,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4262
4332
|
topic: G || null,
|
|
4263
4333
|
status: j
|
|
4264
4334
|
});
|
|
4265
|
-
},
|
|
4335
|
+
}, ke = () => {
|
|
4266
4336
|
K && (c?.trackSlotReservationRequested?.({
|
|
4267
4337
|
slot_datetime: `${K.start} - ${K.end}`,
|
|
4268
4338
|
status: j
|
|
@@ -4271,22 +4341,22 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4271
4341
|
end: K.end,
|
|
4272
4342
|
period: K.period,
|
|
4273
4343
|
topic: G,
|
|
4274
|
-
language:
|
|
4344
|
+
language: S
|
|
4275
4345
|
}));
|
|
4276
|
-
},
|
|
4277
|
-
|
|
4278
|
-
b?.({ canProceed: ce, proceed: () =>
|
|
4346
|
+
}, Se = M(ke);
|
|
4347
|
+
Se.current = ke, q(() => {
|
|
4348
|
+
b?.({ canProceed: ce, proceed: () => Se.current() });
|
|
4279
4349
|
}, [ce, b]);
|
|
4280
|
-
const
|
|
4350
|
+
const De = (l) => {
|
|
4281
4351
|
I(l), c?.trackGuidanceTopicSelected?.({ topic: l, status: j });
|
|
4282
|
-
},
|
|
4352
|
+
}, Be = (l) => {
|
|
4283
4353
|
c?.trackConsultationLanguageChanged?.({
|
|
4284
|
-
previous_language: ta(
|
|
4354
|
+
previous_language: ta(S),
|
|
4285
4355
|
new_language: ta(l),
|
|
4286
4356
|
slots_available: La(C[l]) ? "yes" : "no",
|
|
4287
4357
|
status: j
|
|
4288
|
-
}),
|
|
4289
|
-
},
|
|
4358
|
+
}), Q(l), E(!1);
|
|
4359
|
+
}, w = qe.find((l) => l.code === S) ?? qe[0];
|
|
4290
4360
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4291
4361
|
/* @__PURE__ */ e.jsxs("div", { className: m.content, children: [
|
|
4292
4362
|
/* @__PURE__ */ e.jsxs("div", { className: m.languageRow, children: [
|
|
@@ -4301,13 +4371,13 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4301
4371
|
"aria-haspopup": "listbox",
|
|
4302
4372
|
"aria-expanded": R,
|
|
4303
4373
|
children: [
|
|
4304
|
-
i?.(
|
|
4374
|
+
i?.(w.labelKey) ?? w.label,
|
|
4305
4375
|
/* @__PURE__ */ e.jsx(Xr, {})
|
|
4306
4376
|
]
|
|
4307
4377
|
}
|
|
4308
4378
|
),
|
|
4309
4379
|
R && /* @__PURE__ */ e.jsx("ul", { className: m.languageMenu, role: "listbox", children: qe.map((l) => {
|
|
4310
|
-
const f = l.code ===
|
|
4380
|
+
const f = l.code === S;
|
|
4311
4381
|
return /* @__PURE__ */ e.jsxs(
|
|
4312
4382
|
"li",
|
|
4313
4383
|
{
|
|
@@ -4317,7 +4387,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4317
4387
|
m.languageMenuItem,
|
|
4318
4388
|
f ? m.languageMenuItemSelected : ""
|
|
4319
4389
|
].filter(Boolean).join(" "),
|
|
4320
|
-
onClick: () =>
|
|
4390
|
+
onClick: () => Be(l.code),
|
|
4321
4391
|
children: [
|
|
4322
4392
|
i?.(l.labelKey) ?? l.label,
|
|
4323
4393
|
f && /* @__PURE__ */ e.jsx(Na, {})
|
|
@@ -4337,7 +4407,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4337
4407
|
" ",
|
|
4338
4408
|
i?.("planReportReadySuffix") ?? "from today"
|
|
4339
4409
|
] }),
|
|
4340
|
-
|
|
4410
|
+
k && /* @__PURE__ */ e.jsxs("div", { className: m.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
|
|
4341
4411
|
/* @__PURE__ */ e.jsx("div", { className: m.skeletonDateTabs, children: Array.from({ length: 5 }).map((l, f) => /* @__PURE__ */ e.jsx(
|
|
4342
4412
|
"div",
|
|
4343
4413
|
{
|
|
@@ -4360,16 +4430,16 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4360
4430
|
f
|
|
4361
4431
|
)) })
|
|
4362
4432
|
] }),
|
|
4363
|
-
!
|
|
4433
|
+
!k && x && /* @__PURE__ */ e.jsxs("div", { className: m.stateMessage, children: [
|
|
4364
4434
|
i?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
4365
4435
|
/* @__PURE__ */ e.jsx("button", { type: "button", className: m.retryBtn, onClick: me, children: i?.("planRetry") ?? "Retry" })
|
|
4366
4436
|
] }),
|
|
4367
|
-
!
|
|
4437
|
+
!k && !x && H.length === 0 && /* @__PURE__ */ e.jsxs("div", { className: m.emptyState, children: [
|
|
4368
4438
|
/* @__PURE__ */ e.jsx("span", { className: m.emptyStateIcon, children: /* @__PURE__ */ e.jsx(rn, {}) }),
|
|
4369
4439
|
/* @__PURE__ */ e.jsx("p", { className: m.emptyStateTitle, children: i?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
|
|
4370
4440
|
/* @__PURE__ */ e.jsx("p", { className: m.emptyStateSubtitle, children: i?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
|
|
4371
4441
|
] }),
|
|
4372
|
-
!
|
|
4442
|
+
!k && !x && H.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4373
4443
|
/* @__PURE__ */ e.jsxs("div", { className: m.dateTabs, ref: ue, role: "radiogroup", "aria-label": "Consultation date", children: [
|
|
4374
4444
|
ne && /* @__PURE__ */ e.jsx(
|
|
4375
4445
|
"span",
|
|
@@ -4391,7 +4461,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4391
4461
|
{
|
|
4392
4462
|
type: "button",
|
|
4393
4463
|
ref: (r) => {
|
|
4394
|
-
|
|
4464
|
+
Pe.current[l.date] = r;
|
|
4395
4465
|
},
|
|
4396
4466
|
className: [
|
|
4397
4467
|
m.dateTab,
|
|
@@ -4437,7 +4507,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4437
4507
|
].filter(Boolean).join(" "),
|
|
4438
4508
|
role: "tab",
|
|
4439
4509
|
"aria-selected": l === O,
|
|
4440
|
-
onClick: () =>
|
|
4510
|
+
onClick: () => we(l),
|
|
4441
4511
|
children: [
|
|
4442
4512
|
/* @__PURE__ */ e.jsx(f, {}),
|
|
4443
4513
|
i?.(Z) ?? (l === "evening" && U ? "Evening/Night" : l.charAt(0).toUpperCase() + l.slice(1))
|
|
@@ -4463,7 +4533,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4463
4533
|
].filter(Boolean).join(" "),
|
|
4464
4534
|
role: "radio",
|
|
4465
4535
|
"aria-checked": K?.start === l.start,
|
|
4466
|
-
onClick: () =>
|
|
4536
|
+
onClick: () => ye(l),
|
|
4467
4537
|
children: aa(l.start)
|
|
4468
4538
|
},
|
|
4469
4539
|
`${l.start}-${f}`
|
|
@@ -4484,14 +4554,14 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4484
4554
|
].filter(Boolean).join(" "),
|
|
4485
4555
|
role: "radio",
|
|
4486
4556
|
"aria-checked": G === l.id,
|
|
4487
|
-
onClick: () =>
|
|
4557
|
+
onClick: () => De(l.id),
|
|
4488
4558
|
children: i?.(l.labelKey) ?? l.label
|
|
4489
4559
|
},
|
|
4490
4560
|
l.id
|
|
4491
4561
|
)) })
|
|
4492
4562
|
] })
|
|
4493
4563
|
] }),
|
|
4494
|
-
!
|
|
4564
|
+
!P && /* @__PURE__ */ e.jsxs("div", { className: m.footer, children: [
|
|
4495
4565
|
/* @__PURE__ */ e.jsxs("div", { className: m.trustRow, children: [
|
|
4496
4566
|
/* @__PURE__ */ e.jsx("div", { className: m.trustAvatars, "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
4497
4567
|
N,
|
|
@@ -4513,8 +4583,8 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4513
4583
|
type: "button",
|
|
4514
4584
|
className: [m.proceedBtn, ce ? "" : m.proceedBtnDisabled].filter(Boolean).join(" "),
|
|
4515
4585
|
disabled: !ce,
|
|
4516
|
-
onClick:
|
|
4517
|
-
children:
|
|
4586
|
+
onClick: ke,
|
|
4587
|
+
children: y ? i?.("planBookSlot") ?? "Book Slot" : i?.("planProceedToPayment") ?? "Proceed to payment"
|
|
4518
4588
|
}
|
|
4519
4589
|
)
|
|
4520
4590
|
] })
|
|
@@ -4602,27 +4672,27 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4602
4672
|
selectedPlan: i,
|
|
4603
4673
|
onSelectPlan: c,
|
|
4604
4674
|
plans: g,
|
|
4605
|
-
onProceed:
|
|
4675
|
+
onProceed: y,
|
|
4606
4676
|
t: h,
|
|
4607
|
-
analytics:
|
|
4677
|
+
analytics: P,
|
|
4608
4678
|
enableConsultationScheduling: b
|
|
4609
4679
|
}) => {
|
|
4610
|
-
const Y = Me(),
|
|
4680
|
+
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
4681
|
q(() => {
|
|
4612
4682
|
if (t) {
|
|
4613
4683
|
if (!i) {
|
|
4614
4684
|
const C = p.find((V) => V.badge) ?? p[0];
|
|
4615
4685
|
C && c(C);
|
|
4616
4686
|
}
|
|
4617
|
-
|
|
4687
|
+
k.current || (P?.trackPlanPageViewed?.(), N && P?.trackPlanScreenViewed?.({
|
|
4618
4688
|
plans_shown: p.map((C) => C.id),
|
|
4619
4689
|
default_selected_plan: i?.id || p.find((C) => C.badge)?.id || p[0]?.id || ""
|
|
4620
|
-
}),
|
|
4690
|
+
}), k.current = !0);
|
|
4621
4691
|
} else
|
|
4622
|
-
|
|
4623
|
-
}, [t, p, i, c,
|
|
4692
|
+
k.current = !1;
|
|
4693
|
+
}, [t, p, i, c, P]);
|
|
4624
4694
|
const te = () => {
|
|
4625
|
-
|
|
4695
|
+
P?.trackPlanPageClosed?.(), n();
|
|
4626
4696
|
};
|
|
4627
4697
|
return q(() => {
|
|
4628
4698
|
if (!t) return;
|
|
@@ -4642,7 +4712,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4642
4712
|
/* @__PURE__ */ e.jsxs(
|
|
4643
4713
|
"div",
|
|
4644
4714
|
{
|
|
4645
|
-
ref:
|
|
4715
|
+
ref: A,
|
|
4646
4716
|
className: N ? T.sheetFullScreen : T.sheet,
|
|
4647
4717
|
children: [
|
|
4648
4718
|
N ? /* @__PURE__ */ e.jsxs("div", { className: T.headerFull, children: [
|
|
@@ -4658,7 +4728,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4658
4728
|
),
|
|
4659
4729
|
/* @__PURE__ */ e.jsx("h2", { className: T.titleFull, children: h?.("planSheetTitle") ?? "Choose Your Kundli Plan" })
|
|
4660
4730
|
] }) : /* @__PURE__ */ e.jsx(
|
|
4661
|
-
|
|
4731
|
+
Qn,
|
|
4662
4732
|
{
|
|
4663
4733
|
title: h?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
4664
4734
|
onBack: te
|
|
@@ -4678,16 +4748,16 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4678
4748
|
isSelected: C.id === U,
|
|
4679
4749
|
t: h,
|
|
4680
4750
|
onSelect: (V) => {
|
|
4681
|
-
const
|
|
4682
|
-
|
|
4683
|
-
planId:
|
|
4684
|
-
planName:
|
|
4751
|
+
const S = p.find((Q) => Q.id === V);
|
|
4752
|
+
S && (P?.trackPlanSelected?.({
|
|
4753
|
+
planId: S.id,
|
|
4754
|
+
planName: S.title,
|
|
4685
4755
|
...N ? {
|
|
4686
|
-
price:
|
|
4687
|
-
includes_consultation: !!(
|
|
4688
|
-
cta_label:
|
|
4756
|
+
price: S.price,
|
|
4757
|
+
includes_consultation: !!(S.astrologers && S.astrologers.length > 0),
|
|
4758
|
+
cta_label: S.astrologers && S.astrologers.length > 0 ? h?.("planSelectConsultationSlot") ?? "Select consultation slot →" : h?.("planProceedToPayment") ?? "Proceed to Payment"
|
|
4689
4759
|
} : {}
|
|
4690
|
-
}), c(
|
|
4760
|
+
}), c(S));
|
|
4691
4761
|
}
|
|
4692
4762
|
},
|
|
4693
4763
|
C.id
|
|
@@ -4702,22 +4772,22 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4702
4772
|
onClick: () => {
|
|
4703
4773
|
if (i) {
|
|
4704
4774
|
if (N && i.astrologers && i.astrologers.length > 0) {
|
|
4705
|
-
|
|
4775
|
+
P?.trackSelectConsultationSlotClicked?.({
|
|
4706
4776
|
planId: i.id,
|
|
4707
4777
|
planName: i.title
|
|
4708
|
-
}),
|
|
4778
|
+
}), P?.trackPlanProceedClicked?.({
|
|
4709
4779
|
planId: i.id,
|
|
4710
4780
|
planName: i.title,
|
|
4711
4781
|
cta_type: "confirm_consultation_slot",
|
|
4712
4782
|
next_step: "slot_selection"
|
|
4713
|
-
}),
|
|
4783
|
+
}), x(!0);
|
|
4714
4784
|
return;
|
|
4715
4785
|
}
|
|
4716
|
-
|
|
4786
|
+
P?.trackPlanProceedClicked?.({
|
|
4717
4787
|
planId: i.id,
|
|
4718
4788
|
planName: i.title,
|
|
4719
4789
|
...N ? { cta_type: "proceed", next_step: "payment" } : {}
|
|
4720
|
-
}),
|
|
4790
|
+
}), y(i), n();
|
|
4721
4791
|
}
|
|
4722
4792
|
},
|
|
4723
4793
|
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 +4800,17 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4730
4800
|
ui,
|
|
4731
4801
|
{
|
|
4732
4802
|
isOpen: _,
|
|
4733
|
-
onClose: () =>
|
|
4803
|
+
onClose: () => x(!1),
|
|
4734
4804
|
astrologers: i.astrologers,
|
|
4735
4805
|
t: h,
|
|
4736
|
-
analytics:
|
|
4806
|
+
analytics: P,
|
|
4737
4807
|
onProceed: (C) => {
|
|
4738
|
-
|
|
4808
|
+
P?.trackPlanProceedClicked?.({
|
|
4739
4809
|
planId: i.id,
|
|
4740
4810
|
planName: i.title,
|
|
4741
4811
|
cta_type: "proceed",
|
|
4742
4812
|
next_step: "payment"
|
|
4743
|
-
}),
|
|
4813
|
+
}), y(i, C), x(!1), n();
|
|
4744
4814
|
}
|
|
4745
4815
|
}
|
|
4746
4816
|
)
|
|
@@ -4749,7 +4819,7 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4749
4819
|
),
|
|
4750
4820
|
document.body
|
|
4751
4821
|
) : null;
|
|
4752
|
-
}, hi = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", gi = (t, n) =>
|
|
4822
|
+
}, 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
4823
|
fullName: "",
|
|
4754
4824
|
phone: "",
|
|
4755
4825
|
phoneCountryCode: "",
|
|
@@ -4760,23 +4830,23 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4760
4830
|
birthTime: "",
|
|
4761
4831
|
birthTimeUnknown: !1,
|
|
4762
4832
|
birthPlace: ""
|
|
4763
|
-
},
|
|
4833
|
+
}, xi = ({
|
|
4764
4834
|
className: t = "",
|
|
4765
4835
|
locale: n,
|
|
4766
4836
|
showLanguageSelector: i = !0,
|
|
4767
4837
|
onBack: c,
|
|
4768
4838
|
initialValues: g,
|
|
4769
|
-
onProceed:
|
|
4839
|
+
onProceed: y,
|
|
4770
4840
|
onProceedGuidance: h,
|
|
4771
|
-
proceedHref:
|
|
4841
|
+
proceedHref: P,
|
|
4772
4842
|
originalPriceLabel: b,
|
|
4773
4843
|
discountedPriceLabel: Y,
|
|
4774
|
-
googleMapsApiKey:
|
|
4844
|
+
googleMapsApiKey: B = "",
|
|
4775
4845
|
atlasSearchLocalities: N,
|
|
4776
4846
|
googleMapsAutocompleteEnabled: p,
|
|
4777
4847
|
analytics: U
|
|
4778
4848
|
}) => {
|
|
4779
|
-
const
|
|
4849
|
+
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
4850
|
_
|
|
4781
4851
|
), ae = M(
|
|
4782
4852
|
j?.locale
|
|
@@ -4784,24 +4854,24 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4784
4854
|
q(() => {
|
|
4785
4855
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
4786
4856
|
}, []);
|
|
4787
|
-
const G = (
|
|
4857
|
+
const G = (w) => gi(V, w);
|
|
4788
4858
|
q(() => {
|
|
4789
|
-
_ && se.current !== _ &&
|
|
4790
|
-
}, [_,
|
|
4859
|
+
_ && se.current !== _ && S(_), se.current = _;
|
|
4860
|
+
}, [_, S]), q(() => {
|
|
4791
4861
|
if (_) return;
|
|
4792
|
-
const
|
|
4793
|
-
|
|
4794
|
-
}, [j?.locale, _,
|
|
4795
|
-
const [I, $] =
|
|
4862
|
+
const w = j?.locale;
|
|
4863
|
+
w && ae.current !== w && S(w), ae.current = w;
|
|
4864
|
+
}, [j?.locale, _, S]);
|
|
4865
|
+
const [I, $] = D({
|
|
4796
4866
|
..._i,
|
|
4797
4867
|
...g,
|
|
4798
4868
|
phone: g?.phone ?? ""
|
|
4799
|
-
}), X =
|
|
4869
|
+
}), X = k ? A?.config.isGlobal ?? !0 : !0, O = k ? A.formValues : I, Te = k ? A.setFormValues : $, [K, re] = D(
|
|
4800
4870
|
() => bi(O.phoneCountryCode, X)
|
|
4801
4871
|
), he = M(
|
|
4802
4872
|
!!(O.phoneCountryCode && ra.includes(O.phoneCountryCode))
|
|
4803
|
-
), ue = M(!1),
|
|
4804
|
-
ue.current = !0, re(
|
|
4873
|
+
), ue = M(!1), Pe = Re((w) => {
|
|
4874
|
+
ue.current = !0, re(w);
|
|
4805
4875
|
}, []), ne = M(!0);
|
|
4806
4876
|
q(() => {
|
|
4807
4877
|
if (ne.current) {
|
|
@@ -4810,57 +4880,57 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4810
4880
|
}
|
|
4811
4881
|
he.current || ue.current || re(X ? "+1" : "+91");
|
|
4812
4882
|
}, [X]), q(() => {
|
|
4813
|
-
if (!
|
|
4814
|
-
const
|
|
4815
|
-
|
|
4816
|
-
}, [
|
|
4817
|
-
const je =
|
|
4883
|
+
if (!k || ue.current) return;
|
|
4884
|
+
const w = O.phoneCountryCode;
|
|
4885
|
+
w && ra.includes(w) && w !== K && (he.current = !0, re(w));
|
|
4886
|
+
}, [k, O.phoneCountryCode]);
|
|
4887
|
+
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
4888
|
q(() => {
|
|
4819
|
-
if (!
|
|
4820
|
-
const
|
|
4889
|
+
if (!Q) return;
|
|
4890
|
+
const w = (l) => {
|
|
4821
4891
|
E.current && !E.current.contains(l.target) && R(!1);
|
|
4822
4892
|
};
|
|
4823
|
-
return document.addEventListener("mousedown",
|
|
4824
|
-
}, [
|
|
4825
|
-
const [fe, ee] =
|
|
4826
|
-
|
|
4827
|
-
}, []),
|
|
4893
|
+
return document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w);
|
|
4894
|
+
}, [Q]);
|
|
4895
|
+
const [fe, ee] = D(!1), [ce, Ne] = D(null), we = M(null), ye = Re((w) => {
|
|
4896
|
+
we.current = w, ee(!0);
|
|
4897
|
+
}, []), ke = M(!1);
|
|
4828
4898
|
q(() => {
|
|
4829
|
-
if (
|
|
4899
|
+
if (ke.current || !k || !A?.config.autoOpenPlanSheet || A?.config.variant !== "v1")
|
|
4830
4900
|
return;
|
|
4831
|
-
|
|
4832
|
-
const
|
|
4833
|
-
|
|
4901
|
+
ke.current = !0;
|
|
4902
|
+
const w = (O.phone ?? "").trim();
|
|
4903
|
+
ye({
|
|
4834
4904
|
...O,
|
|
4835
|
-
phone:
|
|
4905
|
+
phone: w && `${K}-${w}`
|
|
4836
4906
|
});
|
|
4837
|
-
}, [
|
|
4838
|
-
const
|
|
4839
|
-
if (!
|
|
4907
|
+
}, [k, A?.config.autoOpenPlanSheet, A?.config.variant, O, K, ye]);
|
|
4908
|
+
const Se = Re(() => {
|
|
4909
|
+
if (!we.current || !ce) return;
|
|
4840
4910
|
ie?.trackPlanProceedClicked?.({
|
|
4841
4911
|
planId: ce.id,
|
|
4842
4912
|
planName: ce.title,
|
|
4843
4913
|
price: ce.price,
|
|
4844
4914
|
currency: X ? "USD" : "INR"
|
|
4845
4915
|
});
|
|
4846
|
-
const
|
|
4847
|
-
ce.id === ja && pe ? pe(
|
|
4848
|
-
}, [ce, _e, pe]),
|
|
4916
|
+
const w = { ...we.current, _selectedPlan: ce };
|
|
4917
|
+
ce.id === ja && pe ? pe(w) : _e?.(w), ee(!1), we.current = null;
|
|
4918
|
+
}, [ce, _e, pe]), De = A?.config.imageComponent ?? Ye, Be = me ? /* @__PURE__ */ e.jsxs("div", { className: Le.langDropdownWrap, ref: E, children: [
|
|
4849
4919
|
/* @__PURE__ */ e.jsxs(
|
|
4850
4920
|
"button",
|
|
4851
4921
|
{
|
|
4852
4922
|
type: "button",
|
|
4853
4923
|
className: Le.langTrigger,
|
|
4854
4924
|
onClick: () => {
|
|
4855
|
-
ie?.trackLanguageClickedFe?.({ language: V }), R((
|
|
4925
|
+
ie?.trackLanguageClickedFe?.({ language: V }), R((w) => !w);
|
|
4856
4926
|
},
|
|
4857
|
-
"aria-expanded":
|
|
4927
|
+
"aria-expanded": Q,
|
|
4858
4928
|
"aria-haspopup": "listbox",
|
|
4859
4929
|
id: "kundli-form-lang",
|
|
4860
4930
|
"aria-label": G("language"),
|
|
4861
4931
|
children: [
|
|
4862
4932
|
/* @__PURE__ */ e.jsx(
|
|
4863
|
-
|
|
4933
|
+
De,
|
|
4864
4934
|
{
|
|
4865
4935
|
src: hi,
|
|
4866
4936
|
alt: "",
|
|
@@ -4870,41 +4940,41 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4870
4940
|
loading: "eager"
|
|
4871
4941
|
}
|
|
4872
4942
|
),
|
|
4873
|
-
/* @__PURE__ */ e.jsx("span", { className: Le.langLabel, children:
|
|
4943
|
+
/* @__PURE__ */ e.jsx("span", { className: Le.langLabel, children: ya[V] })
|
|
4874
4944
|
]
|
|
4875
4945
|
}
|
|
4876
4946
|
),
|
|
4877
|
-
|
|
4947
|
+
Q && /* @__PURE__ */ e.jsx(
|
|
4878
4948
|
"ul",
|
|
4879
4949
|
{
|
|
4880
4950
|
className: Le.langMenu,
|
|
4881
4951
|
role: "listbox",
|
|
4882
4952
|
"aria-labelledby": "kundli-form-lang",
|
|
4883
4953
|
"aria-activedescendant": `kundli-form-lang-option-${V}`,
|
|
4884
|
-
children:
|
|
4954
|
+
children: wa.map((w) => /* @__PURE__ */ e.jsx(
|
|
4885
4955
|
"li",
|
|
4886
4956
|
{
|
|
4887
|
-
id: `kundli-form-lang-option-${
|
|
4957
|
+
id: `kundli-form-lang-option-${w}`,
|
|
4888
4958
|
role: "option",
|
|
4889
|
-
"aria-selected":
|
|
4959
|
+
"aria-selected": w === V,
|
|
4890
4960
|
className: Le.langOption,
|
|
4891
4961
|
onClick: () => {
|
|
4892
|
-
ie?.trackLanguageChangedFe?.({ newLanguage:
|
|
4962
|
+
ie?.trackLanguageChangedFe?.({ newLanguage: w }), S(w), R(!1);
|
|
4893
4963
|
},
|
|
4894
|
-
children:
|
|
4964
|
+
children: ya[w]
|
|
4895
4965
|
},
|
|
4896
|
-
|
|
4966
|
+
w
|
|
4897
4967
|
))
|
|
4898
4968
|
}
|
|
4899
4969
|
)
|
|
4900
4970
|
] }) : null;
|
|
4901
4971
|
return /* @__PURE__ */ e.jsxs("div", { className: `${Le.container} ${t}`, children: [
|
|
4902
4972
|
/* @__PURE__ */ e.jsx(
|
|
4903
|
-
|
|
4973
|
+
zr,
|
|
4904
4974
|
{
|
|
4905
4975
|
t: G,
|
|
4906
|
-
logoUrl:
|
|
4907
|
-
languageSelector:
|
|
4976
|
+
logoUrl: k ? A.config.logoUrl : void 0,
|
|
4977
|
+
languageSelector: Be,
|
|
4908
4978
|
className: Le.kundliHeaderNoBorder
|
|
4909
4979
|
}
|
|
4910
4980
|
),
|
|
@@ -4917,12 +4987,12 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4917
4987
|
t: G,
|
|
4918
4988
|
values: O,
|
|
4919
4989
|
onChange: Te,
|
|
4920
|
-
googleMapsApiKey:
|
|
4990
|
+
googleMapsApiKey: B,
|
|
4921
4991
|
atlasSearchLocalities: N,
|
|
4922
4992
|
googleMapsAutocompleteEnabled: p,
|
|
4923
4993
|
phoneIsdCode: K,
|
|
4924
|
-
onPhoneIsdCodeChange:
|
|
4925
|
-
showV1ExtraFields:
|
|
4994
|
+
onPhoneIsdCodeChange: Pe,
|
|
4995
|
+
showV1ExtraFields: k ? A?.config.variant === "v1" : !1,
|
|
4926
4996
|
analytics: ie
|
|
4927
4997
|
}
|
|
4928
4998
|
)
|
|
@@ -4939,13 +5009,13 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4939
5009
|
originalPriceLabel: oe,
|
|
4940
5010
|
discountedPriceLabel: H,
|
|
4941
5011
|
analytics: ie,
|
|
4942
|
-
showPlanSheet:
|
|
4943
|
-
confirmPlan:
|
|
5012
|
+
showPlanSheet: ye,
|
|
5013
|
+
confirmPlan: Se,
|
|
4944
5014
|
planSheetOpen: fe,
|
|
4945
5015
|
selectedPlan: ce
|
|
4946
5016
|
}
|
|
4947
5017
|
),
|
|
4948
|
-
|
|
5018
|
+
A?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
|
|
4949
5019
|
fi,
|
|
4950
5020
|
{
|
|
4951
5021
|
isOpen: fe,
|
|
@@ -4953,9 +5023,9 @@ const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4953
5023
|
selectedPlan: ce,
|
|
4954
5024
|
onSelectPlan: Ne,
|
|
4955
5025
|
onProceed: () => {
|
|
4956
|
-
|
|
5026
|
+
Se?.();
|
|
4957
5027
|
},
|
|
4958
|
-
plans:
|
|
5028
|
+
plans: A?.config.plans,
|
|
4959
5029
|
t: G,
|
|
4960
5030
|
analytics: ie
|
|
4961
5031
|
}
|
|
@@ -5037,32 +5107,32 @@ export {
|
|
|
5037
5107
|
di as C,
|
|
5038
5108
|
Ye as D,
|
|
5039
5109
|
Rt as F,
|
|
5040
|
-
|
|
5110
|
+
vi as I,
|
|
5041
5111
|
Ci as K,
|
|
5042
|
-
|
|
5112
|
+
ya as L,
|
|
5043
5113
|
ja as P,
|
|
5044
|
-
|
|
5114
|
+
wa as S,
|
|
5045
5115
|
Er as U,
|
|
5046
|
-
|
|
5116
|
+
xa as a,
|
|
5047
5117
|
ia as b,
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5118
|
+
xi as c,
|
|
5119
|
+
Si as d,
|
|
5120
|
+
wt as e,
|
|
5121
|
+
St as f,
|
|
5122
|
+
vt as g,
|
|
5053
5123
|
Me as h,
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5124
|
+
wi as i,
|
|
5125
|
+
Pi as j,
|
|
5126
|
+
e as k,
|
|
5127
|
+
ui as l,
|
|
5128
|
+
mi as m,
|
|
5129
|
+
zr as n,
|
|
5060
5130
|
sa as o,
|
|
5061
5131
|
Vr as p,
|
|
5062
5132
|
fi as q,
|
|
5063
5133
|
Ti as r,
|
|
5064
5134
|
Tt as s,
|
|
5065
|
-
|
|
5066
|
-
|
|
5135
|
+
Sa as t,
|
|
5136
|
+
At as u
|
|
5067
5137
|
};
|
|
5068
|
-
//# sourceMappingURL=analytics-
|
|
5138
|
+
//# sourceMappingURL=analytics-cs6s-dAb.js.map
|