@srimandir/kundli-generator 8.0.1 → 8.0.2
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-CrGvmcGG.js → analytics-AI15hzcE.js} +987 -984
- package/dist/analytics-AI15hzcE.js.map +1 -0
- package/dist/components/KundliPlanBottomSheet/ConsultationSlotFields.d.ts +34 -0
- package/dist/components/KundliPlanBottomSheet/ConsultationSlotModal.d.ts +2 -24
- package/dist/components/KundliPlanBottomSheet/KundliPlanBottomSheet.d.ts +1 -0
- package/dist/components/KundliPlanBottomSheet/index.d.ts +2 -0
- package/dist/{criticalCss-BO3A3MWf.js → criticalCss-CKMR1Lnj.js} +2 -2
- package/dist/{criticalCss-BO3A3MWf.js.map → criticalCss-CKMR1Lnj.js.map} +1 -1
- package/dist/form-entry.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/kundli-generator.js +26 -25
- package/dist/page-entry.js +2 -2
- package/package.json +2 -2
- package/dist/analytics-CrGvmcGG.js.map +0 -1
|
@@ -5,59 +5,59 @@ var ga;
|
|
|
5
5
|
function et() {
|
|
6
6
|
if (ga) return He;
|
|
7
7
|
ga = 1;
|
|
8
|
-
var t = na,
|
|
9
|
-
function
|
|
10
|
-
var M, R = {},
|
|
11
|
-
Y !== void 0 && (
|
|
12
|
-
for (M in
|
|
13
|
-
if (
|
|
14
|
-
return { $$typeof:
|
|
8
|
+
var t = na, r = /* @__PURE__ */ Symbol.for("react.element"), i = /* @__PURE__ */ Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
|
+
function g(x, b, Y) {
|
|
10
|
+
var M, R = {}, p = null, C = null;
|
|
11
|
+
Y !== void 0 && (p = "" + Y), b.key !== void 0 && (p = "" + b.key), b.ref !== void 0 && (C = b.ref);
|
|
12
|
+
for (M in b) c.call(b, M) && !y.hasOwnProperty(M) && (R[M] = b[M]);
|
|
13
|
+
if (x && x.defaultProps) for (M in b = x.defaultProps, b) R[M] === void 0 && (R[M] = b[M]);
|
|
14
|
+
return { $$typeof: r, type: x, key: p, ref: C, props: R, _owner: _.current };
|
|
15
15
|
}
|
|
16
|
-
return He.Fragment =
|
|
16
|
+
return He.Fragment = i, He.jsx = g, He.jsxs = g, He;
|
|
17
17
|
}
|
|
18
18
|
var We = {};
|
|
19
19
|
var ba;
|
|
20
20
|
function at() {
|
|
21
21
|
return ba || (ba = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
-
var t = na,
|
|
22
|
+
var t = na, r = /* @__PURE__ */ Symbol.for("react.element"), i = /* @__PURE__ */ Symbol.for("react.portal"), c = /* @__PURE__ */ Symbol.for("react.fragment"), _ = /* @__PURE__ */ Symbol.for("react.strict_mode"), y = /* @__PURE__ */ Symbol.for("react.profiler"), g = /* @__PURE__ */ Symbol.for("react.provider"), x = /* @__PURE__ */ Symbol.for("react.context"), b = /* @__PURE__ */ Symbol.for("react.forward_ref"), Y = /* @__PURE__ */ Symbol.for("react.suspense"), M = /* @__PURE__ */ Symbol.for("react.suspense_list"), R = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), C = /* @__PURE__ */ Symbol.for("react.offscreen"), A = Symbol.iterator, z = "@@iterator";
|
|
23
23
|
function v(a) {
|
|
24
24
|
if (a === null || typeof a != "object")
|
|
25
25
|
return null;
|
|
26
|
-
var
|
|
27
|
-
return typeof
|
|
26
|
+
var s = A && a[A] || a[z];
|
|
27
|
+
return typeof s == "function" ? s : null;
|
|
28
28
|
}
|
|
29
|
-
var
|
|
29
|
+
var k = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
30
30
|
function w(a) {
|
|
31
31
|
{
|
|
32
|
-
for (var
|
|
32
|
+
for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), T = 1; T < s; T++)
|
|
33
33
|
u[T - 1] = arguments[T];
|
|
34
34
|
oe("error", a, u);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function oe(a,
|
|
37
|
+
function oe(a, s, u) {
|
|
38
38
|
{
|
|
39
|
-
var T =
|
|
40
|
-
H !== "" && (
|
|
39
|
+
var T = k.ReactDebugCurrentFrame, H = T.getStackAddendum();
|
|
40
|
+
H !== "" && (s += "%s", u = u.concat([H]));
|
|
41
41
|
var J = u.map(function(F) {
|
|
42
42
|
return String(F);
|
|
43
43
|
});
|
|
44
|
-
J.unshift("Warning: " +
|
|
44
|
+
J.unshift("Warning: " + s), Function.prototype.apply.call(console[a], console, J);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
var S = !1, V = !1, j = !1, O = !1, N = !1, G;
|
|
48
48
|
G = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
49
|
function ee(a) {
|
|
50
|
-
return !!(typeof a == "string" || typeof a == "function" || a ===
|
|
50
|
+
return !!(typeof a == "string" || typeof a == "function" || a === c || a === y || N || a === _ || a === Y || a === M || O || a === C || S || V || j || typeof a == "object" && a !== null && (a.$$typeof === p || a.$$typeof === R || a.$$typeof === g || a.$$typeof === x || a.$$typeof === b || // This needs to include all possible module reference object
|
|
51
51
|
// types supported by any Flight configuration anywhere since
|
|
52
52
|
// we don't know which Flight build this will end up being used
|
|
53
53
|
// with.
|
|
54
54
|
a.$$typeof === G || a.getModuleId !== void 0));
|
|
55
55
|
}
|
|
56
|
-
function ae(a,
|
|
56
|
+
function ae(a, s, u) {
|
|
57
57
|
var T = a.displayName;
|
|
58
58
|
if (T)
|
|
59
59
|
return T;
|
|
60
|
-
var H =
|
|
60
|
+
var H = s.displayName || s.name || "";
|
|
61
61
|
return H !== "" ? u + "(" + H + ")" : u;
|
|
62
62
|
}
|
|
63
63
|
function B(a) {
|
|
@@ -71,13 +71,13 @@ function at() {
|
|
|
71
71
|
if (typeof a == "string")
|
|
72
72
|
return a;
|
|
73
73
|
switch (a) {
|
|
74
|
-
case
|
|
74
|
+
case c:
|
|
75
75
|
return "Fragment";
|
|
76
|
-
case
|
|
76
|
+
case i:
|
|
77
77
|
return "Portal";
|
|
78
|
-
case
|
|
78
|
+
case y:
|
|
79
79
|
return "Profiler";
|
|
80
|
-
case
|
|
80
|
+
case _:
|
|
81
81
|
return "StrictMode";
|
|
82
82
|
case Y:
|
|
83
83
|
return "Suspense";
|
|
@@ -86,18 +86,18 @@ function at() {
|
|
|
86
86
|
}
|
|
87
87
|
if (typeof a == "object")
|
|
88
88
|
switch (a.$$typeof) {
|
|
89
|
-
case
|
|
90
|
-
var
|
|
91
|
-
return B(
|
|
92
|
-
case
|
|
89
|
+
case x:
|
|
90
|
+
var s = a;
|
|
91
|
+
return B(s) + ".Consumer";
|
|
92
|
+
case g:
|
|
93
93
|
var u = a;
|
|
94
94
|
return B(u._context) + ".Provider";
|
|
95
|
-
case
|
|
95
|
+
case b:
|
|
96
96
|
return ae(a, a.render, "ForwardRef");
|
|
97
97
|
case R:
|
|
98
98
|
var T = a.displayName || null;
|
|
99
99
|
return T !== null ? T : D(a.type) || "Memo";
|
|
100
|
-
case
|
|
100
|
+
case p: {
|
|
101
101
|
var H = a, J = H._payload, F = H._init;
|
|
102
102
|
try {
|
|
103
103
|
return D(F(J));
|
|
@@ -108,14 +108,14 @@ function at() {
|
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
111
|
-
var $ = Object.assign, Q = 0, E, be,
|
|
111
|
+
var $ = Object.assign, Q = 0, E, be, se, de, ue, X, xe;
|
|
112
112
|
function ye() {
|
|
113
113
|
}
|
|
114
114
|
ye.__reactDisabledLog = !0;
|
|
115
115
|
function Ne() {
|
|
116
116
|
{
|
|
117
117
|
if (Q === 0) {
|
|
118
|
-
E = console.log, be = console.info,
|
|
118
|
+
E = console.log, be = console.info, se = console.warn, de = console.error, ue = console.group, X = console.groupCollapsed, xe = console.groupEnd;
|
|
119
119
|
var a = {
|
|
120
120
|
configurable: !0,
|
|
121
121
|
enumerable: !0,
|
|
@@ -151,7 +151,7 @@ function at() {
|
|
|
151
151
|
value: be
|
|
152
152
|
}),
|
|
153
153
|
warn: $({}, a, {
|
|
154
|
-
value:
|
|
154
|
+
value: se
|
|
155
155
|
}),
|
|
156
156
|
error: $({}, a, {
|
|
157
157
|
value: de
|
|
@@ -170,8 +170,8 @@ function at() {
|
|
|
170
170
|
Q < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
var Z =
|
|
174
|
-
function ge(a,
|
|
173
|
+
var Z = k.ReactCurrentDispatcher, W;
|
|
174
|
+
function ge(a, s, u) {
|
|
175
175
|
{
|
|
176
176
|
if (W === void 0)
|
|
177
177
|
try {
|
|
@@ -189,7 +189,7 @@ function at() {
|
|
|
189
189
|
var ce = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
190
|
re = new ce();
|
|
191
191
|
}
|
|
192
|
-
function je(a,
|
|
192
|
+
function je(a, s) {
|
|
193
193
|
if (!a || te)
|
|
194
194
|
return "";
|
|
195
195
|
{
|
|
@@ -204,7 +204,7 @@ function at() {
|
|
|
204
204
|
var J;
|
|
205
205
|
J = Z.current, Z.current = null, Ne();
|
|
206
206
|
try {
|
|
207
|
-
if (
|
|
207
|
+
if (s) {
|
|
208
208
|
var F = function() {
|
|
209
209
|
throw Error();
|
|
210
210
|
};
|
|
@@ -239,18 +239,18 @@ function at() {
|
|
|
239
239
|
if (Ae && T && typeof Ae.stack == "string") {
|
|
240
240
|
for (var L = Ae.stack.split(`
|
|
241
241
|
`), ke = T.stack.split(`
|
|
242
|
-
`), ne = L.length - 1,
|
|
243
|
-
|
|
244
|
-
for (; ne >= 1 &&
|
|
245
|
-
if (L[ne] !== ke[
|
|
246
|
-
if (ne !== 1 ||
|
|
242
|
+
`), ne = L.length - 1, le = ke.length - 1; ne >= 1 && le >= 0 && L[ne] !== ke[le]; )
|
|
243
|
+
le--;
|
|
244
|
+
for (; ne >= 1 && le >= 0; ne--, le--)
|
|
245
|
+
if (L[ne] !== ke[le]) {
|
|
246
|
+
if (ne !== 1 || le !== 1)
|
|
247
247
|
do
|
|
248
|
-
if (ne--,
|
|
248
|
+
if (ne--, le--, le < 0 || L[ne] !== ke[le]) {
|
|
249
249
|
var we = `
|
|
250
250
|
` + L[ne].replace(" at new ", " at ");
|
|
251
251
|
return a.displayName && we.includes("<anonymous>") && (we = we.replace("<anonymous>", a.displayName)), typeof a == "function" && re.set(a, we), we;
|
|
252
252
|
}
|
|
253
|
-
while (ne >= 1 &&
|
|
253
|
+
while (ne >= 1 && le >= 0);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
@@ -260,14 +260,14 @@ function at() {
|
|
|
260
260
|
var Me = a ? a.displayName || a.name : "", De = Me ? ge(Me) : "";
|
|
261
261
|
return typeof a == "function" && re.set(a, De), De;
|
|
262
262
|
}
|
|
263
|
-
function pe(a,
|
|
263
|
+
function pe(a, s, u) {
|
|
264
264
|
return je(a, !1);
|
|
265
265
|
}
|
|
266
266
|
function me(a) {
|
|
267
|
-
var
|
|
268
|
-
return !!(
|
|
267
|
+
var s = a.prototype;
|
|
268
|
+
return !!(s && s.isReactComponent);
|
|
269
269
|
}
|
|
270
|
-
function Re(a,
|
|
270
|
+
function Re(a, s, u) {
|
|
271
271
|
if (a == null)
|
|
272
272
|
return "";
|
|
273
273
|
if (typeof a == "function")
|
|
@@ -282,29 +282,29 @@ function at() {
|
|
|
282
282
|
}
|
|
283
283
|
if (typeof a == "object")
|
|
284
284
|
switch (a.$$typeof) {
|
|
285
|
-
case
|
|
285
|
+
case b:
|
|
286
286
|
return pe(a.render);
|
|
287
287
|
case R:
|
|
288
|
-
return Re(a.type,
|
|
289
|
-
case
|
|
288
|
+
return Re(a.type, s, u);
|
|
289
|
+
case p: {
|
|
290
290
|
var T = a, H = T._payload, J = T._init;
|
|
291
291
|
try {
|
|
292
|
-
return Re(J(H),
|
|
292
|
+
return Re(J(H), s, u);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
return "";
|
|
298
298
|
}
|
|
299
|
-
var ve = Object.prototype.hasOwnProperty, _e = {}, Te =
|
|
299
|
+
var ve = Object.prototype.hasOwnProperty, _e = {}, Te = k.ReactDebugCurrentFrame;
|
|
300
300
|
function Pe(a) {
|
|
301
301
|
if (a) {
|
|
302
|
-
var
|
|
302
|
+
var s = a._owner, u = Re(a.type, a._source, s ? s.type : null);
|
|
303
303
|
Te.setExtraStackFrame(u);
|
|
304
304
|
} else
|
|
305
305
|
Te.setExtraStackFrame(null);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function l(a, s, u, T, H) {
|
|
308
308
|
{
|
|
309
309
|
var J = Function.call.bind(ve);
|
|
310
310
|
for (var F in a)
|
|
@@ -315,7 +315,7 @@ function at() {
|
|
|
315
315
|
var ke = Error((T || "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`.");
|
|
316
316
|
throw ke.name = "Invariant Violation", ke;
|
|
317
317
|
}
|
|
318
|
-
L = a[F](
|
|
318
|
+
L = a[F](s, F, T, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
319
|
} catch (ne) {
|
|
320
320
|
L = ne;
|
|
321
321
|
}
|
|
@@ -323,17 +323,17 @@ function at() {
|
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
var
|
|
327
|
-
function
|
|
328
|
-
return
|
|
326
|
+
var h = Array.isArray;
|
|
327
|
+
function m(a) {
|
|
328
|
+
return h(a);
|
|
329
329
|
}
|
|
330
330
|
function fe(a) {
|
|
331
331
|
{
|
|
332
|
-
var
|
|
332
|
+
var s = typeof Symbol == "function" && Symbol.toStringTag, u = s && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
333
333
|
return u;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function ie(a) {
|
|
337
337
|
try {
|
|
338
338
|
return Ge(a), !1;
|
|
339
339
|
} catch {
|
|
@@ -344,10 +344,10 @@ function at() {
|
|
|
344
344
|
return "" + a;
|
|
345
345
|
}
|
|
346
346
|
function Oe(a) {
|
|
347
|
-
if (
|
|
347
|
+
if (ie(a))
|
|
348
348
|
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", fe(a)), Ge(a);
|
|
349
349
|
}
|
|
350
|
-
var
|
|
350
|
+
var n = k.ReactCurrentOwner, d = {
|
|
351
351
|
key: !0,
|
|
352
352
|
ref: !0,
|
|
353
353
|
__self: !0,
|
|
@@ -355,27 +355,27 @@ function at() {
|
|
|
355
355
|
}, K, Se;
|
|
356
356
|
function $e(a) {
|
|
357
357
|
if (ve.call(a, "ref")) {
|
|
358
|
-
var
|
|
359
|
-
if (
|
|
358
|
+
var s = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
359
|
+
if (s && s.isReactWarning)
|
|
360
360
|
return !1;
|
|
361
361
|
}
|
|
362
362
|
return a.ref !== void 0;
|
|
363
363
|
}
|
|
364
364
|
function ze(a) {
|
|
365
365
|
if (ve.call(a, "key")) {
|
|
366
|
-
var
|
|
367
|
-
if (
|
|
366
|
+
var s = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
367
|
+
if (s && s.isReactWarning)
|
|
368
368
|
return !1;
|
|
369
369
|
}
|
|
370
370
|
return a.key !== void 0;
|
|
371
371
|
}
|
|
372
|
-
function Ba(a,
|
|
373
|
-
typeof a.ref == "string" &&
|
|
372
|
+
function Ba(a, s) {
|
|
373
|
+
typeof a.ref == "string" && n.current;
|
|
374
374
|
}
|
|
375
|
-
function Da(a,
|
|
375
|
+
function Da(a, s) {
|
|
376
376
|
{
|
|
377
377
|
var u = function() {
|
|
378
|
-
K || (K = !0, w("%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)",
|
|
378
|
+
K || (K = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
|
|
379
379
|
};
|
|
380
380
|
u.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
381
381
|
get: u,
|
|
@@ -383,10 +383,10 @@ function at() {
|
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function Ea(a,
|
|
386
|
+
function Ea(a, s) {
|
|
387
387
|
{
|
|
388
388
|
var u = function() {
|
|
389
|
-
Se || (Se = !0, w("%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)",
|
|
389
|
+
Se || (Se = !0, w("%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));
|
|
390
390
|
};
|
|
391
391
|
u.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
392
392
|
get: u,
|
|
@@ -394,13 +394,13 @@ function at() {
|
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
var Ia = function(a,
|
|
397
|
+
var Ia = function(a, s, u, T, H, J, F) {
|
|
398
398
|
var L = {
|
|
399
399
|
// This tag allows us to uniquely identify this as a React Element
|
|
400
|
-
$$typeof:
|
|
400
|
+
$$typeof: r,
|
|
401
401
|
// Built-in properties that belong on the element
|
|
402
402
|
type: a,
|
|
403
|
-
key:
|
|
403
|
+
key: s,
|
|
404
404
|
ref: u,
|
|
405
405
|
props: F,
|
|
406
406
|
// Record the component responsible for creating this element.
|
|
@@ -423,28 +423,28 @@ function at() {
|
|
|
423
423
|
value: H
|
|
424
424
|
}), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
|
|
425
425
|
};
|
|
426
|
-
function Fa(a,
|
|
426
|
+
function Fa(a, s, u, T, H) {
|
|
427
427
|
{
|
|
428
428
|
var J, F = {}, L = null, ke = null;
|
|
429
|
-
u !== void 0 && (Oe(u), L = "" + u), ze(
|
|
430
|
-
for (J in
|
|
431
|
-
ve.call(
|
|
429
|
+
u !== void 0 && (Oe(u), L = "" + u), ze(s) && (Oe(s.key), L = "" + s.key), $e(s) && (ke = s.ref, Ba(s, H));
|
|
430
|
+
for (J in s)
|
|
431
|
+
ve.call(s, J) && !d.hasOwnProperty(J) && (F[J] = s[J]);
|
|
432
432
|
if (a && a.defaultProps) {
|
|
433
433
|
var ne = a.defaultProps;
|
|
434
434
|
for (J in ne)
|
|
435
435
|
F[J] === void 0 && (F[J] = ne[J]);
|
|
436
436
|
}
|
|
437
437
|
if (L || ke) {
|
|
438
|
-
var
|
|
439
|
-
L && Da(F,
|
|
438
|
+
var le = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
439
|
+
L && Da(F, le), ke && Ea(F, le);
|
|
440
440
|
}
|
|
441
|
-
return Ia(a, L, ke, H, T,
|
|
441
|
+
return Ia(a, L, ke, H, T, n.current, F);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
var Qe =
|
|
444
|
+
var Qe = k.ReactCurrentOwner, ca = k.ReactDebugCurrentFrame;
|
|
445
445
|
function Fe(a) {
|
|
446
446
|
if (a) {
|
|
447
|
-
var
|
|
447
|
+
var s = a._owner, u = Re(a.type, a._source, s ? s.type : null);
|
|
448
448
|
ca.setExtraStackFrame(u);
|
|
449
449
|
} else
|
|
450
450
|
ca.setExtraStackFrame(null);
|
|
@@ -452,7 +452,7 @@ function at() {
|
|
|
452
452
|
var Xe;
|
|
453
453
|
Xe = !1;
|
|
454
454
|
function Ze(a) {
|
|
455
|
-
return typeof a == "object" && a !== null && a.$$typeof ===
|
|
455
|
+
return typeof a == "object" && a !== null && a.$$typeof === r;
|
|
456
456
|
}
|
|
457
457
|
function da() {
|
|
458
458
|
{
|
|
@@ -472,22 +472,22 @@ Check the render method of \`` + a + "`.";
|
|
|
472
472
|
var ua = {};
|
|
473
473
|
function Ua(a) {
|
|
474
474
|
{
|
|
475
|
-
var
|
|
476
|
-
if (!
|
|
475
|
+
var s = da();
|
|
476
|
+
if (!s) {
|
|
477
477
|
var u = typeof a == "string" ? a : a.displayName || a.name;
|
|
478
|
-
u && (
|
|
478
|
+
u && (s = `
|
|
479
479
|
|
|
480
480
|
Check the top-level render call using <` + u + ">.");
|
|
481
481
|
}
|
|
482
|
-
return
|
|
482
|
+
return s;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
function pa(a,
|
|
485
|
+
function pa(a, s) {
|
|
486
486
|
{
|
|
487
487
|
if (!a._store || a._store.validated || a.key != null)
|
|
488
488
|
return;
|
|
489
489
|
a._store.validated = !0;
|
|
490
|
-
var u = Ua(
|
|
490
|
+
var u = Ua(s);
|
|
491
491
|
if (ua[u])
|
|
492
492
|
return;
|
|
493
493
|
ua[u] = !0;
|
|
@@ -495,14 +495,14 @@ Check the top-level render call using <` + u + ">.");
|
|
|
495
495
|
a && a._owner && a._owner !== Qe.current && (T = " It was passed a child from " + D(a._owner.type) + "."), Fe(a), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, T), Fe(null);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function ma(a,
|
|
498
|
+
function ma(a, s) {
|
|
499
499
|
{
|
|
500
500
|
if (typeof a != "object")
|
|
501
501
|
return;
|
|
502
|
-
if (
|
|
502
|
+
if (m(a))
|
|
503
503
|
for (var u = 0; u < a.length; u++) {
|
|
504
504
|
var T = a[u];
|
|
505
|
-
Ze(T) && pa(T,
|
|
505
|
+
Ze(T) && pa(T, s);
|
|
506
506
|
}
|
|
507
507
|
else if (Ze(a))
|
|
508
508
|
a._store && (a._store.validated = !0);
|
|
@@ -510,39 +510,39 @@ Check the top-level render call using <` + u + ">.");
|
|
|
510
510
|
var H = v(a);
|
|
511
511
|
if (typeof H == "function" && H !== a.entries)
|
|
512
512
|
for (var J = H.call(a), F; !(F = J.next()).done; )
|
|
513
|
-
Ze(F.value) && pa(F.value,
|
|
513
|
+
Ze(F.value) && pa(F.value, s);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
function Ga(a) {
|
|
518
518
|
{
|
|
519
|
-
var
|
|
520
|
-
if (
|
|
519
|
+
var s = a.type;
|
|
520
|
+
if (s == null || typeof s == "string")
|
|
521
521
|
return;
|
|
522
522
|
var u;
|
|
523
|
-
if (typeof
|
|
524
|
-
u =
|
|
525
|
-
else if (typeof
|
|
523
|
+
if (typeof s == "function")
|
|
524
|
+
u = s.propTypes;
|
|
525
|
+
else if (typeof s == "object" && (s.$$typeof === b || // Note: Memo only checks outer props here.
|
|
526
526
|
// Inner props are checked in the reconciler.
|
|
527
|
-
|
|
528
|
-
u =
|
|
527
|
+
s.$$typeof === R))
|
|
528
|
+
u = s.propTypes;
|
|
529
529
|
else
|
|
530
530
|
return;
|
|
531
531
|
if (u) {
|
|
532
|
-
var T = D(
|
|
533
|
-
|
|
534
|
-
} else if (
|
|
532
|
+
var T = D(s);
|
|
533
|
+
l(u, a.props, "prop", T, a);
|
|
534
|
+
} else if (s.PropTypes !== void 0 && !Xe) {
|
|
535
535
|
Xe = !0;
|
|
536
|
-
var H = D(
|
|
536
|
+
var H = D(s);
|
|
537
537
|
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", H || "Unknown");
|
|
538
538
|
}
|
|
539
|
-
typeof
|
|
539
|
+
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
function Oa(a) {
|
|
543
543
|
{
|
|
544
|
-
for (var
|
|
545
|
-
var T =
|
|
544
|
+
for (var s = Object.keys(a.props), u = 0; u < s.length; u++) {
|
|
545
|
+
var T = s[u];
|
|
546
546
|
if (T !== "children" && T !== "key") {
|
|
547
547
|
Fe(a), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", T), Fe(null);
|
|
548
548
|
break;
|
|
@@ -552,7 +552,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
var fa = {};
|
|
555
|
-
function ha(a,
|
|
555
|
+
function ha(a, s, u, T, H, J) {
|
|
556
556
|
{
|
|
557
557
|
var F = ee(a);
|
|
558
558
|
if (!F) {
|
|
@@ -561,16 +561,16 @@ Check the top-level render call using <` + u + ">.");
|
|
|
561
561
|
var ke = Ma();
|
|
562
562
|
ke ? L += ke : L += da();
|
|
563
563
|
var ne;
|
|
564
|
-
a === null ? ne = "null" :
|
|
564
|
+
a === null ? ne = "null" : m(a) ? ne = "array" : a !== void 0 && a.$$typeof === r ? (ne = "<" + (D(a.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof a, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, L);
|
|
565
565
|
}
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
return
|
|
566
|
+
var le = Fa(a, s, u, H, J);
|
|
567
|
+
if (le == null)
|
|
568
|
+
return le;
|
|
569
569
|
if (F) {
|
|
570
|
-
var we =
|
|
570
|
+
var we = s.children;
|
|
571
571
|
if (we !== void 0)
|
|
572
572
|
if (T)
|
|
573
|
-
if (
|
|
573
|
+
if (m(we)) {
|
|
574
574
|
for (var Me = 0; Me < we.length; Me++)
|
|
575
575
|
ma(we[Me], a);
|
|
576
576
|
Object.freeze && Object.freeze(we);
|
|
@@ -579,8 +579,8 @@ Check the top-level render call using <` + u + ">.");
|
|
|
579
579
|
else
|
|
580
580
|
ma(we, a);
|
|
581
581
|
}
|
|
582
|
-
if (ve.call(
|
|
583
|
-
var De = D(a), Ae = Object.keys(
|
|
582
|
+
if (ve.call(s, "key")) {
|
|
583
|
+
var De = D(a), Ae = Object.keys(s).filter(function(Ya) {
|
|
584
584
|
return Ya !== "key";
|
|
585
585
|
}), ea = Ae.length > 0 ? "{key: someKey, " + Ae.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
586
|
if (!fa[De + ea]) {
|
|
@@ -593,17 +593,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
593
593
|
<%s key={someKey} {...props} />`, ea, De, qa, De), fa[De + ea] = !0;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
return a ===
|
|
596
|
+
return a === c ? Oa(le) : Ga(le), le;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
function $a(a,
|
|
600
|
-
return ha(a,
|
|
599
|
+
function $a(a, s, u) {
|
|
600
|
+
return ha(a, s, u, !0);
|
|
601
601
|
}
|
|
602
|
-
function Ha(a,
|
|
603
|
-
return ha(a,
|
|
602
|
+
function Ha(a, s, u) {
|
|
603
|
+
return ha(a, s, u, !1);
|
|
604
604
|
}
|
|
605
605
|
var Wa = Ha, Ka = $a;
|
|
606
|
-
We.Fragment =
|
|
606
|
+
We.Fragment = c, We.jsx = Wa, We.jsxs = Ka;
|
|
607
607
|
})()), We;
|
|
608
608
|
}
|
|
609
609
|
var _a;
|
|
@@ -2273,25 +2273,25 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
|
|
|
2273
2273
|
ta: _t,
|
|
2274
2274
|
te: kt,
|
|
2275
2275
|
kn: bt
|
|
2276
|
-
}, Sa = Ta(null),
|
|
2276
|
+
}, Sa = Ta(null), yi = ({
|
|
2277
2277
|
locale: t,
|
|
2278
|
-
children:
|
|
2278
|
+
children: r
|
|
2279
2279
|
}) => {
|
|
2280
|
-
const
|
|
2281
|
-
return /* @__PURE__ */ e.jsx(Sa.Provider, { value:
|
|
2280
|
+
const c = { locale: t, t: (_) => xa[t]?.[_] };
|
|
2281
|
+
return /* @__PURE__ */ e.jsx(Sa.Provider, { value: c, children: r });
|
|
2282
2282
|
};
|
|
2283
2283
|
function yt() {
|
|
2284
2284
|
return oa(Sa);
|
|
2285
2285
|
}
|
|
2286
2286
|
const Ye = (t) => {
|
|
2287
|
-
const { priority:
|
|
2287
|
+
const { priority: r, fetchPriority: i, width: c, height: _, ...y } = t;
|
|
2288
2288
|
return na.createElement("img", {
|
|
2289
|
-
...
|
|
2290
|
-
width:
|
|
2291
|
-
height:
|
|
2289
|
+
...y,
|
|
2290
|
+
width: c ?? 1,
|
|
2291
|
+
height: _ ?? 1,
|
|
2292
2292
|
decoding: "async",
|
|
2293
|
-
loading:
|
|
2294
|
-
...
|
|
2293
|
+
loading: y.loading ?? (r ? "eager" : "lazy"),
|
|
2294
|
+
...i && { fetchPriority: i }
|
|
2295
2295
|
});
|
|
2296
2296
|
};
|
|
2297
2297
|
function At(t) {
|
|
@@ -2303,21 +2303,21 @@ function At(t) {
|
|
|
2303
2303
|
return null;
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
2306
|
-
function vt(t,
|
|
2306
|
+
function vt(t, r) {
|
|
2307
2307
|
if (!(typeof window > "u" || !window.localStorage))
|
|
2308
2308
|
try {
|
|
2309
|
-
window.localStorage.setItem(t,
|
|
2309
|
+
window.localStorage.setItem(t, r);
|
|
2310
2310
|
} catch {
|
|
2311
2311
|
}
|
|
2312
2312
|
}
|
|
2313
|
-
function
|
|
2313
|
+
function Ai(t) {
|
|
2314
2314
|
if (!(typeof window > "u" || !window.localStorage))
|
|
2315
2315
|
try {
|
|
2316
2316
|
window.localStorage.removeItem(t);
|
|
2317
2317
|
} catch {
|
|
2318
2318
|
}
|
|
2319
2319
|
}
|
|
2320
|
-
function
|
|
2320
|
+
function vi() {
|
|
2321
2321
|
if (typeof window > "u" || !window.localStorage)
|
|
2322
2322
|
return !1;
|
|
2323
2323
|
try {
|
|
@@ -2346,25 +2346,25 @@ const ia = Ta(null), xt = {
|
|
|
2346
2346
|
birthTime: "",
|
|
2347
2347
|
birthTimeUnknown: !1,
|
|
2348
2348
|
birthPlace: ""
|
|
2349
|
-
},
|
|
2349
|
+
}, Ti = ({
|
|
2350
2350
|
locale: t,
|
|
2351
|
-
showLanguageSelector:
|
|
2352
|
-
showSheet:
|
|
2353
|
-
userId:
|
|
2354
|
-
isGlobal:
|
|
2355
|
-
variant:
|
|
2356
|
-
initialFormValues:
|
|
2357
|
-
autoOpenPlanSheet:
|
|
2358
|
-
googleMapsApiKey:
|
|
2351
|
+
showLanguageSelector: r = !0,
|
|
2352
|
+
showSheet: i,
|
|
2353
|
+
userId: c,
|
|
2354
|
+
isGlobal: _,
|
|
2355
|
+
variant: y,
|
|
2356
|
+
initialFormValues: g,
|
|
2357
|
+
autoOpenPlanSheet: x,
|
|
2358
|
+
googleMapsApiKey: b,
|
|
2359
2359
|
atlasSearchLocalities: Y,
|
|
2360
2360
|
googleMapsAutocompleteEnabled: M,
|
|
2361
2361
|
enableConsultationScheduling: R,
|
|
2362
|
-
fetchConsultationSlots:
|
|
2362
|
+
fetchConsultationSlots: p,
|
|
2363
2363
|
logoUrl: C,
|
|
2364
2364
|
reportImageUrl: A,
|
|
2365
2365
|
reportImagePriority: z,
|
|
2366
2366
|
backgroundImagePriority: v,
|
|
2367
|
-
universityLogoUrls:
|
|
2367
|
+
universityLogoUrls: k,
|
|
2368
2368
|
sampleReportHref: w,
|
|
2369
2369
|
onViewSampleReport: oe,
|
|
2370
2370
|
ctaHref: S,
|
|
@@ -2381,11 +2381,11 @@ const ia = Ta(null), xt = {
|
|
|
2381
2381
|
onLocaleChange: Q,
|
|
2382
2382
|
imageComponent: E = Ye,
|
|
2383
2383
|
resolvedUtmBannerImageUrl: be,
|
|
2384
|
-
children:
|
|
2384
|
+
children: se
|
|
2385
2385
|
}) => {
|
|
2386
2386
|
const [de, ue] = I("landing"), [X, xe] = I(t ?? "en"), [ye, Ne] = I({
|
|
2387
2387
|
...xt,
|
|
2388
|
-
...
|
|
2388
|
+
...g
|
|
2389
2389
|
}), he = U(!0);
|
|
2390
2390
|
q(() => {
|
|
2391
2391
|
if (t) return;
|
|
@@ -2403,23 +2403,23 @@ const ia = Ta(null), xt = {
|
|
|
2403
2403
|
const Z = Be(
|
|
2404
2404
|
() => ({
|
|
2405
2405
|
locale: t,
|
|
2406
|
-
showLanguageSelector:
|
|
2407
|
-
showSheet:
|
|
2408
|
-
userId:
|
|
2409
|
-
isGlobal:
|
|
2410
|
-
variant:
|
|
2411
|
-
initialFormValues:
|
|
2412
|
-
autoOpenPlanSheet:
|
|
2413
|
-
googleMapsApiKey:
|
|
2406
|
+
showLanguageSelector: r,
|
|
2407
|
+
showSheet: i,
|
|
2408
|
+
userId: c,
|
|
2409
|
+
isGlobal: _,
|
|
2410
|
+
variant: y,
|
|
2411
|
+
initialFormValues: g,
|
|
2412
|
+
autoOpenPlanSheet: x,
|
|
2413
|
+
googleMapsApiKey: b,
|
|
2414
2414
|
atlasSearchLocalities: Y,
|
|
2415
2415
|
googleMapsAutocompleteEnabled: M,
|
|
2416
2416
|
enableConsultationScheduling: R,
|
|
2417
|
-
fetchConsultationSlots:
|
|
2417
|
+
fetchConsultationSlots: p,
|
|
2418
2418
|
logoUrl: C,
|
|
2419
2419
|
reportImageUrl: A,
|
|
2420
2420
|
reportImagePriority: z,
|
|
2421
2421
|
backgroundImagePriority: v,
|
|
2422
|
-
universityLogoUrls:
|
|
2422
|
+
universityLogoUrls: k,
|
|
2423
2423
|
sampleReportHref: w,
|
|
2424
2424
|
onViewSampleReport: oe,
|
|
2425
2425
|
ctaHref: S,
|
|
@@ -2439,23 +2439,23 @@ const ia = Ta(null), xt = {
|
|
|
2439
2439
|
}),
|
|
2440
2440
|
[
|
|
2441
2441
|
t,
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
d,
|
|
2446
|
-
h,
|
|
2442
|
+
r,
|
|
2443
|
+
i,
|
|
2444
|
+
c,
|
|
2447
2445
|
_,
|
|
2448
|
-
|
|
2449
|
-
|
|
2446
|
+
y,
|
|
2447
|
+
g,
|
|
2448
|
+
x,
|
|
2449
|
+
b,
|
|
2450
2450
|
Y,
|
|
2451
2451
|
M,
|
|
2452
2452
|
R,
|
|
2453
|
-
|
|
2453
|
+
p,
|
|
2454
2454
|
C,
|
|
2455
2455
|
A,
|
|
2456
2456
|
z,
|
|
2457
2457
|
v,
|
|
2458
|
-
|
|
2458
|
+
k,
|
|
2459
2459
|
w,
|
|
2460
2460
|
oe,
|
|
2461
2461
|
S,
|
|
@@ -2492,12 +2492,12 @@ const ia = Ta(null), xt = {
|
|
|
2492
2492
|
}),
|
|
2493
2493
|
[de, X, Z, ye, W, ge]
|
|
2494
2494
|
);
|
|
2495
|
-
return /* @__PURE__ */ e.jsx(ia.Provider, { value: te, children:
|
|
2495
|
+
return /* @__PURE__ */ e.jsx(ia.Provider, { value: te, children: se });
|
|
2496
2496
|
};
|
|
2497
2497
|
function Ie() {
|
|
2498
2498
|
return oa(ia);
|
|
2499
2499
|
}
|
|
2500
|
-
function
|
|
2500
|
+
function Pi() {
|
|
2501
2501
|
const t = oa(ia);
|
|
2502
2502
|
if (!t)
|
|
2503
2503
|
throw new Error(
|
|
@@ -2510,17 +2510,17 @@ const St = "_header_19172_1", wt = "_centered_19172_8", ya = {
|
|
|
2510
2510
|
centered: wt
|
|
2511
2511
|
}, Ct = ({
|
|
2512
2512
|
t,
|
|
2513
|
-
onBack:
|
|
2514
|
-
className:
|
|
2515
|
-
align:
|
|
2513
|
+
onBack: r,
|
|
2514
|
+
className: i = "",
|
|
2515
|
+
align: c = "left"
|
|
2516
2516
|
}) => /* @__PURE__ */ e.jsx(
|
|
2517
2517
|
Ja,
|
|
2518
2518
|
{
|
|
2519
2519
|
title: t("formTitle"),
|
|
2520
2520
|
subtitle: t("formSubtitle"),
|
|
2521
|
-
onBack:
|
|
2521
|
+
onBack: r,
|
|
2522
2522
|
backAriaLabel: t("back"),
|
|
2523
|
-
className: `${ya.header} ${
|
|
2523
|
+
className: `${ya.header} ${c === "center" ? ya.centered : ""} ${i}`
|
|
2524
2524
|
}
|
|
2525
2525
|
), jt = "_wrap_119w3_1", Rt = "_card_119w3_5", Nt = "_cardInner_119w3_12", Lt = "_field_119w3_44", Bt = "_labelRow_119w3_48", Dt = "_label_119w3_48", Et = "_req_119w3_57", It = "_help_119w3_61", Ft = "_choiceRow_119w3_68", Mt = "_choiceBtn_119w3_74", Ut = "_choiceBtnActive_119w3_99", Gt = "_infoBtn_119w3_105", Ot = "_infoImg_119w3_122", $t = "_infoWrap_119w3_128", Ht = "_tooltip_119w3_134", Wt = "_tooltipArrow_119w3_150", Kt = "_inputWrap_119w3_161", qt = "_isdWrap_119w3_165", Yt = "_phoneInputGroup_119w3_169", Vt = "_isdSelectWrap_119w3_178", Jt = "_isdSelectTrigger_119w3_197", zt = "_isdDropdown_119w3_214", Qt = "_isdSearchWrap_119w3_229", Xt = "_isdSearchInput_119w3_237", Zt = "_isdOption_119w3_255", er = "_isdOptionActive_119w3_275", ar = "_isdCountryName_119w3_281", tr = "_isdCountryCode_119w3_288", rr = "_isdNoResult_119w3_295", nr = "_suggestions_119w3_302", or = "_suggestionItem_119w3_315", ir = "_suggestionMain_119w3_333", lr = "_suggestionSecondary_119w3_339", sr = "_suggestionsHint_119w3_344", cr = "_timePopover_119w3_366", dr = "_timePickerRow_119w3_382", ur = "_timePickerSelect_119w3_388", pr = "_timePickerColon_119w3_404", mr = "_meridiemToggle_119w3_412", fr = "_meridiemBtn_119w3_421", hr = "_meridiemActive_119w3_436", gr = "_timePopoverActions_119w3_441", br = "_timePopoverBtn_119w3_447", _r = "_timePopoverOk_119w3_466", kr = "_input_119w3_161", yr = "_phoneInput_119w3_169", Ar = "_iconBtn_119w3_519", vr = "_iconBtnInteractive_119w3_525", Tr = "_iconImg_119w3_544", Pr = "_checkboxRow_119w3_550", xr = "_checkbox_119w3_550", Sr = "_checkboxText_119w3_588", o = {
|
|
2526
2526
|
wrap: jt,
|
|
@@ -2577,57 +2577,57 @@ const St = "_header_19172_1", wt = "_centered_19172_8", ya = {
|
|
|
2577
2577
|
checkboxText: Sr
|
|
2578
2578
|
};
|
|
2579
2579
|
let Je = null;
|
|
2580
|
-
const wr = (t,
|
|
2581
|
-
const
|
|
2580
|
+
const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : Je || (Je = new Promise((i, c) => {
|
|
2581
|
+
const _ = document.querySelector(
|
|
2582
2582
|
'script[data-google-maps-places="true"]'
|
|
2583
2583
|
);
|
|
2584
|
-
if (
|
|
2585
|
-
|
|
2584
|
+
if (_) {
|
|
2585
|
+
_.addEventListener("load", () => i()), _.addEventListener(
|
|
2586
2586
|
"error",
|
|
2587
|
-
() =>
|
|
2587
|
+
() => c(new Error("Failed to load Google Maps API"))
|
|
2588
2588
|
);
|
|
2589
2589
|
return;
|
|
2590
2590
|
}
|
|
2591
|
-
const
|
|
2592
|
-
|
|
2593
|
-
const
|
|
2591
|
+
const y = document.createElement("script"), g = new URL("https://maps.googleapis.com/maps/api/js");
|
|
2592
|
+
g.searchParams.set("key", t), g.searchParams.set("libraries", "places"), g.searchParams.set("loading", "async"), r && g.searchParams.set("language", r), y.src = g.toString(), y.async = !0, y.defer = !0, y.setAttribute("data-google-maps-places", "true"), y.onload = () => {
|
|
2593
|
+
const x = Date.now(), b = () => {
|
|
2594
2594
|
if (window.google?.maps?.places) {
|
|
2595
|
-
|
|
2595
|
+
i();
|
|
2596
2596
|
return;
|
|
2597
2597
|
}
|
|
2598
|
-
if (Date.now() -
|
|
2599
|
-
|
|
2598
|
+
if (Date.now() - x > 2e3) {
|
|
2599
|
+
c(
|
|
2600
2600
|
new Error(
|
|
2601
2601
|
"Google Maps loaded but Places library is unavailable. Check API key restrictions / enabled APIs."
|
|
2602
2602
|
)
|
|
2603
2603
|
);
|
|
2604
2604
|
return;
|
|
2605
2605
|
}
|
|
2606
|
-
window.setTimeout(
|
|
2606
|
+
window.setTimeout(b, 50);
|
|
2607
2607
|
};
|
|
2608
|
-
|
|
2609
|
-
},
|
|
2608
|
+
b();
|
|
2609
|
+
}, y.onerror = () => c(new Error("Failed to load Google Maps API")), document.head.appendChild(y);
|
|
2610
2610
|
}), Je), Cr = (t) => {
|
|
2611
|
-
const { apiKey:
|
|
2612
|
-
|
|
2613
|
-
}, [
|
|
2611
|
+
const { apiKey: r, language: i = "en", restrictCountry: c, deferLoad: _ = !1 } = t, [y, g] = I(!1), [x, b] = I([]), [Y, M] = I(!1), [R, p] = I(null), [C, A] = I(!_), z = U(null), v = U(null), k = U(null), w = Ce(() => {
|
|
2612
|
+
_ && A(!0);
|
|
2613
|
+
}, [_]);
|
|
2614
2614
|
q(() => {
|
|
2615
|
-
if (!
|
|
2616
|
-
|
|
2615
|
+
if (!r || !C) {
|
|
2616
|
+
g(!1), p(null);
|
|
2617
2617
|
return;
|
|
2618
2618
|
}
|
|
2619
|
-
wr(
|
|
2619
|
+
wr(r, i).then(() => {
|
|
2620
2620
|
z.current = new google.maps.places.AutocompleteService();
|
|
2621
2621
|
const j = document.createElement("div");
|
|
2622
|
-
v.current = new google.maps.places.PlacesService(j),
|
|
2622
|
+
v.current = new google.maps.places.PlacesService(j), k.current = new google.maps.places.AutocompleteSessionToken(), g(!0), p(null);
|
|
2623
2623
|
}).catch((j) => {
|
|
2624
|
-
|
|
2624
|
+
g(!1), p(j?.message || "Failed to load location service");
|
|
2625
2625
|
});
|
|
2626
|
-
}, [
|
|
2626
|
+
}, [r, i, C]);
|
|
2627
2627
|
const oe = Ce(
|
|
2628
2628
|
async (j) => {
|
|
2629
2629
|
if (!j || j.length < 2 || !z.current) {
|
|
2630
|
-
|
|
2630
|
+
b([]);
|
|
2631
2631
|
return;
|
|
2632
2632
|
}
|
|
2633
2633
|
M(!0);
|
|
@@ -2635,9 +2635,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2635
2635
|
const O = {
|
|
2636
2636
|
input: j,
|
|
2637
2637
|
types: ["(cities)"],
|
|
2638
|
-
sessionToken:
|
|
2638
|
+
sessionToken: k.current ?? void 0
|
|
2639
2639
|
};
|
|
2640
|
-
|
|
2640
|
+
c && (O.componentRestrictions = { country: c });
|
|
2641
2641
|
const N = await new Promise((G, ee) => {
|
|
2642
2642
|
z.current.getPlacePredictions(
|
|
2643
2643
|
O,
|
|
@@ -2646,7 +2646,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2646
2646
|
}
|
|
2647
2647
|
);
|
|
2648
2648
|
});
|
|
2649
|
-
|
|
2649
|
+
b(
|
|
2650
2650
|
N.map((G) => ({
|
|
2651
2651
|
place_id: G.place_id,
|
|
2652
2652
|
description: G.description,
|
|
@@ -2657,12 +2657,12 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2657
2657
|
}))
|
|
2658
2658
|
);
|
|
2659
2659
|
} catch {
|
|
2660
|
-
|
|
2660
|
+
b([]);
|
|
2661
2661
|
} finally {
|
|
2662
2662
|
M(!1);
|
|
2663
2663
|
}
|
|
2664
2664
|
},
|
|
2665
|
-
[
|
|
2665
|
+
[c]
|
|
2666
2666
|
), S = Ce(
|
|
2667
2667
|
async (j) => {
|
|
2668
2668
|
if (!v.current) return null;
|
|
@@ -2673,7 +2673,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2673
2673
|
{
|
|
2674
2674
|
placeId: j,
|
|
2675
2675
|
fields: ["geometry", "address_components", "formatted_address"],
|
|
2676
|
-
sessionToken:
|
|
2676
|
+
sessionToken: k.current ?? void 0
|
|
2677
2677
|
},
|
|
2678
2678
|
(Q, E) => {
|
|
2679
2679
|
E === google.maps.places.PlacesServiceStatus.OK && Q ? D(Q) : $(new Error(`Place details error: ${E}`));
|
|
@@ -2681,7 +2681,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2681
2681
|
);
|
|
2682
2682
|
}
|
|
2683
2683
|
);
|
|
2684
|
-
|
|
2684
|
+
k.current = new google.maps.places.AutocompleteSessionToken();
|
|
2685
2685
|
const N = O.geometry?.location?.lat() || 0, G = O.geometry?.location?.lng() || 0;
|
|
2686
2686
|
let ee = "", ae = "", B = "";
|
|
2687
2687
|
return O.address_components?.forEach((D) => {
|
|
@@ -2699,10 +2699,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2699
2699
|
}
|
|
2700
2700
|
},
|
|
2701
2701
|
[]
|
|
2702
|
-
), V = Ce(() =>
|
|
2702
|
+
), V = Ce(() => b([]), []);
|
|
2703
2703
|
return {
|
|
2704
|
-
isLoaded:
|
|
2705
|
-
predictions:
|
|
2704
|
+
isLoaded: y,
|
|
2705
|
+
predictions: x,
|
|
2706
2706
|
isSearching: Y,
|
|
2707
2707
|
loadError: R,
|
|
2708
2708
|
searchPlaces: oe,
|
|
@@ -2712,51 +2712,51 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2712
2712
|
// Call this to start loading Google Maps when deferred
|
|
2713
2713
|
};
|
|
2714
2714
|
}, Aa = (t) => typeof t == "number" && Number.isFinite(t), jr = (t) => {
|
|
2715
|
-
const
|
|
2715
|
+
const r = typeof t?.limit == "number" && t.limit > 0 ? Math.min(t.limit, 20) : 8, i = typeof t?.offset == "number" && t.offset >= 0 ? t.offset : 0;
|
|
2716
2716
|
return {
|
|
2717
|
-
limit:
|
|
2718
|
-
offset:
|
|
2717
|
+
limit: r,
|
|
2718
|
+
offset: i,
|
|
2719
2719
|
restrictCountry: t?.restrictCountry
|
|
2720
2720
|
};
|
|
2721
2721
|
}, Rr = (t) => {
|
|
2722
|
-
const { searchLocalities:
|
|
2722
|
+
const { searchLocalities: r, restrictCountry: i } = t, [c, _] = I([]), [y, g] = I(!1), [x, b] = I(null), Y = U(0);
|
|
2723
2723
|
q(() => {
|
|
2724
|
-
|
|
2725
|
-
}, [
|
|
2724
|
+
b(null);
|
|
2725
|
+
}, [r]);
|
|
2726
2726
|
const M = Ce(
|
|
2727
|
-
async (
|
|
2728
|
-
if (!
|
|
2729
|
-
|
|
2727
|
+
async (p) => {
|
|
2728
|
+
if (!p || p.length < 2 || !r) {
|
|
2729
|
+
_([]);
|
|
2730
2730
|
return;
|
|
2731
2731
|
}
|
|
2732
2732
|
const C = ++Y.current;
|
|
2733
|
-
|
|
2733
|
+
g(!0), b(null);
|
|
2734
2734
|
try {
|
|
2735
|
-
const A = jr({ restrictCountry:
|
|
2735
|
+
const A = jr({ restrictCountry: i }), z = await r(p, A);
|
|
2736
2736
|
if (C !== Y.current) return;
|
|
2737
2737
|
const v = (z || []).filter(
|
|
2738
|
-
(
|
|
2739
|
-
).map((
|
|
2740
|
-
id:
|
|
2741
|
-
description:
|
|
2742
|
-
secondary_text:
|
|
2743
|
-
lat:
|
|
2744
|
-
lng:
|
|
2738
|
+
(k) => !!k?.id && !!k?.description && Aa(k?.lat) && Aa(k?.lng)
|
|
2739
|
+
).map((k) => ({
|
|
2740
|
+
id: k.id,
|
|
2741
|
+
description: k.description,
|
|
2742
|
+
secondary_text: k.secondaryText,
|
|
2743
|
+
lat: k.lat,
|
|
2744
|
+
lng: k.lng
|
|
2745
2745
|
}));
|
|
2746
|
-
|
|
2746
|
+
_(v);
|
|
2747
2747
|
} catch (A) {
|
|
2748
2748
|
if (C !== Y.current) return;
|
|
2749
|
-
|
|
2749
|
+
_([]), b(A?.message || "Failed to fetch locations");
|
|
2750
2750
|
} finally {
|
|
2751
|
-
C === Y.current &&
|
|
2751
|
+
C === Y.current && g(!1);
|
|
2752
2752
|
}
|
|
2753
2753
|
},
|
|
2754
|
-
[
|
|
2755
|
-
), R = Ce(() =>
|
|
2754
|
+
[i, r]
|
|
2755
|
+
), R = Ce(() => _([]), []);
|
|
2756
2756
|
return {
|
|
2757
|
-
predictions:
|
|
2758
|
-
isSearching:
|
|
2759
|
-
loadError:
|
|
2757
|
+
predictions: c,
|
|
2758
|
+
isSearching: y,
|
|
2759
|
+
loadError: x,
|
|
2760
2760
|
searchPlaces: M,
|
|
2761
2761
|
clearPredictions: R
|
|
2762
2762
|
};
|
|
@@ -2835,133 +2835,133 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2835
2835
|
{ code: "+975", country: "Bhutan" },
|
|
2836
2836
|
{ code: "+976", country: "Mongolia" },
|
|
2837
2837
|
{ code: "+977", country: "Nepal" }
|
|
2838
|
-
], ra = Ca.map((t) => t.code), ja = 10, la = (t) => t.replace(/\D/g, ""), va = (t) => la(t).slice(0, ja), Nr = (t) => la(t).length === ja, Lr = (t,
|
|
2838
|
+
], ra = Ca.map((t) => t.code), ja = 10, la = (t) => t.replace(/\D/g, ""), va = (t) => la(t).slice(0, ja), Nr = (t) => la(t).length === ja, Lr = (t, r, i) => Nr(t) ? i.phone ? { shouldTrack: !1 } : (i.phone = !0, { shouldTrack: !0, fullPhone: `${r}-${la(t)}` }) : (i.phone = !1, { shouldTrack: !1 }), Br = {}, Dr = ({
|
|
2839
2839
|
t,
|
|
2840
|
-
values:
|
|
2841
|
-
onChange:
|
|
2842
|
-
phoneIsdCode:
|
|
2843
|
-
onPhoneIsdCodeChange:
|
|
2844
|
-
showV1ExtraFields:
|
|
2845
|
-
analytics:
|
|
2846
|
-
googleMapsApiKey:
|
|
2847
|
-
atlasSearchLocalities:
|
|
2840
|
+
values: r,
|
|
2841
|
+
onChange: i,
|
|
2842
|
+
phoneIsdCode: c,
|
|
2843
|
+
onPhoneIsdCodeChange: _,
|
|
2844
|
+
showV1ExtraFields: y = !1,
|
|
2845
|
+
analytics: g,
|
|
2846
|
+
googleMapsApiKey: x,
|
|
2847
|
+
atlasSearchLocalities: b,
|
|
2848
2848
|
googleMapsAutocompleteEnabled: Y,
|
|
2849
2849
|
className: M = ""
|
|
2850
2850
|
}) => {
|
|
2851
|
-
const R = Ie(),
|
|
2852
|
-
if (
|
|
2853
|
-
const K = Lr(
|
|
2854
|
-
K.shouldTrack &&
|
|
2851
|
+
const R = Ie(), p = R?.config?.analytics ?? g, C = R?.config.isGlobal ?? !0, A = R?.config?.googleMapsApiKey, z = R?.config?.atlasSearchLocalities, v = R?.config?.googleMapsAutocompleteEnabled, [k, w] = I(!1), [oe, S] = I(""), V = U(null), j = U(null), O = U({}), N = (n) => i({ ...r, ...n }), G = (n, d) => {
|
|
2852
|
+
if (n === "phone") {
|
|
2853
|
+
const K = Lr(d, c, O.current);
|
|
2854
|
+
K.shouldTrack && p?.trackPhoneSectionFilled?.({ phone: K.fullPhone });
|
|
2855
2855
|
return;
|
|
2856
2856
|
}
|
|
2857
|
-
|
|
2858
|
-
fullName: () =>
|
|
2859
|
-
dateOfBirth: () =>
|
|
2860
|
-
birthTime: () =>
|
|
2861
|
-
birthPlace: () =>
|
|
2862
|
-
}[
|
|
2863
|
-
}, ee = (
|
|
2864
|
-
const
|
|
2865
|
-
|
|
2866
|
-
}, ae = oe.trim().toLowerCase(), B = Ca.filter((
|
|
2857
|
+
d.trim() && !O.current[n] && (O.current[n] = !0, {
|
|
2858
|
+
fullName: () => p?.trackNameSectionFilled?.(),
|
|
2859
|
+
dateOfBirth: () => p?.trackDobFilled?.(),
|
|
2860
|
+
birthTime: () => p?.trackTimeFilled?.(),
|
|
2861
|
+
birthPlace: () => p?.trackPlaceOfBirthChosen?.()
|
|
2862
|
+
}[n]?.());
|
|
2863
|
+
}, ee = (n) => {
|
|
2864
|
+
const d = n.target.value;
|
|
2865
|
+
d.trim() && p?.trackEmailSectionFilled?.({ email: d });
|
|
2866
|
+
}, ae = oe.trim().toLowerCase(), B = Ca.filter((n) => ae ? n.country.toLowerCase().includes(ae) || n.code.includes(ae) : !0), D = U(null);
|
|
2867
2867
|
U(null);
|
|
2868
|
-
const $ = U(null), Q = U(0), E = U(null), [be,
|
|
2869
|
-
const
|
|
2870
|
-
if (!
|
|
2871
|
-
const K = Number(
|
|
2868
|
+
const $ = U(null), Q = U(0), E = U(null), [be, se] = I(!1), [de, ue] = I({ hour12: 12, minute: "00", meridiem: "AM" }), X = (n) => String(n).padStart(2, "0"), xe = (n) => {
|
|
2869
|
+
const d = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
2870
|
+
if (!d) return n;
|
|
2871
|
+
const K = Number(d[1]), Se = d[2], $e = K >= 12 ? "PM" : "AM";
|
|
2872
2872
|
return `${K % 12 === 0 ? 12 : K % 12}:${Se} ${$e}`;
|
|
2873
|
-
}, ye = (
|
|
2874
|
-
const
|
|
2875
|
-
if (!
|
|
2876
|
-
const K = Number(
|
|
2873
|
+
}, ye = (n) => {
|
|
2874
|
+
const d = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
2875
|
+
if (!d) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
2876
|
+
const K = Number(d[1]), Se = d[2], $e = K >= 12 ? "PM" : "AM";
|
|
2877
2877
|
return { hour12: K % 12 === 0 ? 12 : K % 12, minute: Se, meridiem: $e };
|
|
2878
|
-
}, Ne = (
|
|
2879
|
-
const
|
|
2880
|
-
let Se =
|
|
2881
|
-
return
|
|
2882
|
-
}, he = U(null), [Z, W] = I(!1), ge = U(
|
|
2878
|
+
}, Ne = (n) => {
|
|
2879
|
+
const d = Math.min(12, Math.max(1, n.hour12)), K = /^([0-5]\d)$/.test(n.minute) ? n.minute : "00";
|
|
2880
|
+
let Se = d % 12;
|
|
2881
|
+
return n.meridiem === "PM" && (Se += 12), `${X(Se)}:${K}`;
|
|
2882
|
+
}, he = U(null), [Z, W] = I(!1), ge = U(r.birthPlace ?? ""), [te, re] = I(
|
|
2883
2883
|
null
|
|
2884
|
-
), ce =
|
|
2884
|
+
), ce = x ?? A ?? Br?.VITE_GOOGLE_MAPS_API_KEY, je = b ?? z, pe = Y ?? v ?? !0, me = (r.birthPlace ?? "").trim(), Re = C ? void 0 : "in", _e = Cr({
|
|
2885
2885
|
apiKey: pe ? ce : void 0,
|
|
2886
2886
|
language: "en",
|
|
2887
2887
|
restrictCountry: Re
|
|
2888
2888
|
}), Te = Rr({
|
|
2889
2889
|
searchLocalities: pe ? void 0 : je,
|
|
2890
2890
|
restrictCountry: Re
|
|
2891
|
-
}), Pe = pe ? _e.predictions.map((
|
|
2892
|
-
id:
|
|
2893
|
-
description:
|
|
2894
|
-
secondaryText:
|
|
2891
|
+
}), Pe = pe ? _e.predictions.map((n) => ({
|
|
2892
|
+
id: n.place_id,
|
|
2893
|
+
description: n.description,
|
|
2894
|
+
secondaryText: n.structured_formatting?.secondary_text,
|
|
2895
2895
|
lat: void 0,
|
|
2896
2896
|
lng: void 0
|
|
2897
|
-
})) : Te.predictions.map((
|
|
2898
|
-
id:
|
|
2899
|
-
description:
|
|
2900
|
-
secondaryText:
|
|
2901
|
-
lat:
|
|
2902
|
-
lng:
|
|
2903
|
-
})),
|
|
2897
|
+
})) : Te.predictions.map((n) => ({
|
|
2898
|
+
id: n.id,
|
|
2899
|
+
description: n.description,
|
|
2900
|
+
secondaryText: n.secondary_text,
|
|
2901
|
+
lat: n.lat,
|
|
2902
|
+
lng: n.lng
|
|
2903
|
+
})), l = pe ? _e.isSearching : Te.isSearching, h = pe ? _e.loadError : Te.loadError, m = pe ? !!ce : !!je, fe = pe ? _e.searchPlaces : Te.searchPlaces, ie = pe ? _e.clearPredictions : Te.clearPredictions, Ge = U(() => {
|
|
2904
2904
|
});
|
|
2905
2905
|
Ge.current = () => {
|
|
2906
|
-
(
|
|
2906
|
+
(r.birthPlace ?? "") !== ge.current && N({
|
|
2907
2907
|
birthPlace: "",
|
|
2908
2908
|
birthPlaceLat: void 0,
|
|
2909
2909
|
birthPlaceLng: void 0
|
|
2910
2910
|
}), W(!1);
|
|
2911
2911
|
}, q(() => {
|
|
2912
|
-
const
|
|
2913
|
-
he.current && (he.current.contains(
|
|
2912
|
+
const n = (d) => {
|
|
2913
|
+
he.current && (he.current.contains(d.target) || Ge.current());
|
|
2914
2914
|
};
|
|
2915
|
-
return document.addEventListener("mousedown",
|
|
2915
|
+
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
2916
2916
|
}, []), q(() => {
|
|
2917
|
-
const
|
|
2918
|
-
V.current && (V.current.contains(
|
|
2917
|
+
const n = (d) => {
|
|
2918
|
+
V.current && (V.current.contains(d.target) || (w(!1), S("")));
|
|
2919
2919
|
};
|
|
2920
|
-
return document.addEventListener("mousedown",
|
|
2920
|
+
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
2921
2921
|
}, []), q(() => {
|
|
2922
|
-
if (!
|
|
2923
|
-
const
|
|
2922
|
+
if (!k) return;
|
|
2923
|
+
const n = window.setTimeout(() => {
|
|
2924
2924
|
j.current?.focus();
|
|
2925
2925
|
}, 0);
|
|
2926
|
-
return () => window.clearTimeout(
|
|
2927
|
-
}, [
|
|
2926
|
+
return () => window.clearTimeout(n);
|
|
2927
|
+
}, [k]), q(() => {
|
|
2928
2928
|
if (!Z) return;
|
|
2929
2929
|
if (me.length < 2) {
|
|
2930
|
-
|
|
2930
|
+
ie();
|
|
2931
2931
|
return;
|
|
2932
2932
|
}
|
|
2933
|
-
const
|
|
2933
|
+
const n = window.setTimeout(async () => {
|
|
2934
2934
|
await fe(me);
|
|
2935
2935
|
}, 250);
|
|
2936
|
-
return () => window.clearTimeout(
|
|
2937
|
-
}, [
|
|
2938
|
-
const Oe = (
|
|
2939
|
-
const
|
|
2940
|
-
if (!(!
|
|
2941
|
-
if (document.activeElement ===
|
|
2942
|
-
|
|
2936
|
+
return () => window.clearTimeout(n);
|
|
2937
|
+
}, [ie, Z, me, fe]);
|
|
2938
|
+
const Oe = (n) => {
|
|
2939
|
+
const d = n.current;
|
|
2940
|
+
if (!(!d || d.disabled)) {
|
|
2941
|
+
if (document.activeElement === d && $.current === d && Date.now() - Q.current < 6e4) {
|
|
2942
|
+
d.blur();
|
|
2943
2943
|
return;
|
|
2944
2944
|
}
|
|
2945
|
-
if (typeof
|
|
2946
|
-
|
|
2945
|
+
if (typeof d.showPicker == "function") {
|
|
2946
|
+
d.showPicker(), $.current = d, Q.current = Date.now();
|
|
2947
2947
|
return;
|
|
2948
2948
|
}
|
|
2949
|
-
|
|
2949
|
+
d.focus(), $.current = d, Q.current = Date.now();
|
|
2950
2950
|
}
|
|
2951
2951
|
};
|
|
2952
2952
|
return q(() => {
|
|
2953
|
-
const
|
|
2954
|
-
E.current && (E.current.contains(
|
|
2953
|
+
const n = (d) => {
|
|
2954
|
+
E.current && (E.current.contains(d.target) || se(!1));
|
|
2955
2955
|
};
|
|
2956
|
-
return document.addEventListener("mousedown",
|
|
2956
|
+
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
2957
2957
|
}, []), q(() => {
|
|
2958
|
-
const
|
|
2958
|
+
const n = (K) => {
|
|
2959
2959
|
K.target?.closest?.("[data-info-tooltip]") == null && re(null);
|
|
2960
|
-
},
|
|
2960
|
+
}, d = (K) => {
|
|
2961
2961
|
K.key === "Escape" && re(null);
|
|
2962
2962
|
};
|
|
2963
|
-
return document.addEventListener("mousedown",
|
|
2964
|
-
document.removeEventListener("mousedown",
|
|
2963
|
+
return document.addEventListener("mousedown", n), document.addEventListener("keydown", d), () => {
|
|
2964
|
+
document.removeEventListener("mousedown", n), document.removeEventListener("keydown", d);
|
|
2965
2965
|
};
|
|
2966
2966
|
}, []), /* @__PURE__ */ e.jsx(
|
|
2967
2967
|
"section",
|
|
@@ -2980,11 +2980,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2980
2980
|
id: "kundli-full-name",
|
|
2981
2981
|
className: o.input,
|
|
2982
2982
|
type: "text",
|
|
2983
|
-
value:
|
|
2984
|
-
onFocus: () =>
|
|
2985
|
-
onChange: (
|
|
2986
|
-
const
|
|
2987
|
-
N({ fullName:
|
|
2983
|
+
value: r.fullName,
|
|
2984
|
+
onFocus: () => p?.trackNameSectionClicked?.(),
|
|
2985
|
+
onChange: (n) => {
|
|
2986
|
+
const d = n.target.value;
|
|
2987
|
+
N({ fullName: d }), G("fullName", d);
|
|
2988
2988
|
},
|
|
2989
2989
|
placeholder: t("formFullNamePlaceholder"),
|
|
2990
2990
|
autoComplete: "name"
|
|
@@ -3004,11 +3004,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3004
3004
|
type: "button",
|
|
3005
3005
|
className: o.isdSelectTrigger,
|
|
3006
3006
|
"aria-haspopup": "listbox",
|
|
3007
|
-
"aria-expanded":
|
|
3007
|
+
"aria-expanded": k,
|
|
3008
3008
|
onClick: () => {
|
|
3009
|
-
w((
|
|
3009
|
+
w((n) => !n), S("");
|
|
3010
3010
|
},
|
|
3011
|
-
children:
|
|
3011
|
+
children: c
|
|
3012
3012
|
}
|
|
3013
3013
|
) }),
|
|
3014
3014
|
/* @__PURE__ */ e.jsx(
|
|
@@ -3017,11 +3017,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3017
3017
|
id: "kundli-phone",
|
|
3018
3018
|
className: `${o.input} ${o.phoneInput}`,
|
|
3019
3019
|
type: "tel",
|
|
3020
|
-
value:
|
|
3021
|
-
onFocus: () =>
|
|
3022
|
-
onChange: (
|
|
3023
|
-
const
|
|
3024
|
-
N({ phone: va(
|
|
3020
|
+
value: r.phone ?? "",
|
|
3021
|
+
onFocus: () => p?.trackPhoneSectionClicked?.(),
|
|
3022
|
+
onChange: (n) => {
|
|
3023
|
+
const d = n.target.value;
|
|
3024
|
+
N({ phone: va(d) }), G("phone", va(d));
|
|
3025
3025
|
},
|
|
3026
3026
|
placeholder: t("formPhonePlaceholder"),
|
|
3027
3027
|
autoComplete: "tel",
|
|
@@ -3033,7 +3033,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3033
3033
|
}
|
|
3034
3034
|
)
|
|
3035
3035
|
] }),
|
|
3036
|
-
|
|
3036
|
+
k && /* @__PURE__ */ e.jsxs(
|
|
3037
3037
|
"div",
|
|
3038
3038
|
{
|
|
3039
3039
|
className: o.isdDropdown,
|
|
@@ -3046,35 +3046,35 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3046
3046
|
ref: j,
|
|
3047
3047
|
type: "text",
|
|
3048
3048
|
value: oe,
|
|
3049
|
-
onChange: (
|
|
3049
|
+
onChange: (n) => S(n.target.value),
|
|
3050
3050
|
placeholder: "Search country",
|
|
3051
3051
|
className: o.isdSearchInput,
|
|
3052
3052
|
"aria-label": "Search country"
|
|
3053
3053
|
}
|
|
3054
3054
|
) }),
|
|
3055
|
-
B.length > 0 ? B.map((
|
|
3055
|
+
B.length > 0 ? B.map((n) => /* @__PURE__ */ e.jsxs(
|
|
3056
3056
|
"button",
|
|
3057
3057
|
{
|
|
3058
3058
|
type: "button",
|
|
3059
3059
|
role: "option",
|
|
3060
|
-
"aria-selected":
|
|
3061
|
-
className: `${o.isdOption} ${
|
|
3060
|
+
"aria-selected": n.code === c,
|
|
3061
|
+
className: `${o.isdOption} ${n.code === c ? o.isdOptionActive : ""}`,
|
|
3062
3062
|
onClick: () => {
|
|
3063
|
-
|
|
3063
|
+
_(n.code), w(!1), S("");
|
|
3064
3064
|
},
|
|
3065
3065
|
children: [
|
|
3066
|
-
/* @__PURE__ */ e.jsx("span", { className: o.isdCountryName, children:
|
|
3067
|
-
/* @__PURE__ */ e.jsx("span", { className: o.isdCountryCode, children:
|
|
3066
|
+
/* @__PURE__ */ e.jsx("span", { className: o.isdCountryName, children: n.country }),
|
|
3067
|
+
/* @__PURE__ */ e.jsx("span", { className: o.isdCountryCode, children: n.code })
|
|
3068
3068
|
]
|
|
3069
3069
|
},
|
|
3070
|
-
`${
|
|
3070
|
+
`${n.code}-${n.country}`
|
|
3071
3071
|
)) : /* @__PURE__ */ e.jsx("div", { className: o.isdNoResult, children: "No country found" })
|
|
3072
3072
|
]
|
|
3073
3073
|
}
|
|
3074
3074
|
)
|
|
3075
3075
|
] }) })
|
|
3076
3076
|
] }),
|
|
3077
|
-
|
|
3077
|
+
y && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
3078
3078
|
/* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, children: [
|
|
3079
3079
|
t("formGender"),
|
|
3080
3080
|
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
@@ -3091,14 +3091,14 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3091
3091
|
{
|
|
3092
3092
|
id: "kundli-gender-male",
|
|
3093
3093
|
type: "button",
|
|
3094
|
-
className: `${o.choiceBtn} ${
|
|
3094
|
+
className: `${o.choiceBtn} ${r.gender === "male" ? o.choiceBtnActive : ""}`,
|
|
3095
3095
|
onClick: () => {
|
|
3096
|
-
N({ gender: "male" }),
|
|
3096
|
+
N({ gender: "male" }), p?.trackGenderSelected?.({
|
|
3097
3097
|
gender: "male"
|
|
3098
3098
|
});
|
|
3099
3099
|
},
|
|
3100
3100
|
role: "radio",
|
|
3101
|
-
"aria-checked":
|
|
3101
|
+
"aria-checked": r.gender === "male",
|
|
3102
3102
|
children: t("formGenderMale")
|
|
3103
3103
|
}
|
|
3104
3104
|
),
|
|
@@ -3107,14 +3107,14 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3107
3107
|
{
|
|
3108
3108
|
id: "kundli-gender-female",
|
|
3109
3109
|
type: "button",
|
|
3110
|
-
className: `${o.choiceBtn} ${
|
|
3110
|
+
className: `${o.choiceBtn} ${r.gender === "female" ? o.choiceBtnActive : ""}`,
|
|
3111
3111
|
onClick: () => {
|
|
3112
|
-
N({ gender: "female" }),
|
|
3112
|
+
N({ gender: "female" }), p?.trackGenderSelected?.({
|
|
3113
3113
|
gender: "female"
|
|
3114
3114
|
});
|
|
3115
3115
|
},
|
|
3116
3116
|
role: "radio",
|
|
3117
|
-
"aria-checked":
|
|
3117
|
+
"aria-checked": r.gender === "female",
|
|
3118
3118
|
children: t("formGenderFemale")
|
|
3119
3119
|
}
|
|
3120
3120
|
)
|
|
@@ -3134,10 +3134,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3134
3134
|
id: "kundli-email",
|
|
3135
3135
|
className: o.input,
|
|
3136
3136
|
type: "email",
|
|
3137
|
-
value:
|
|
3138
|
-
onFocus: () =>
|
|
3139
|
-
onChange: (
|
|
3140
|
-
N({ email:
|
|
3137
|
+
value: r.email,
|
|
3138
|
+
onFocus: () => p?.trackEmailSectionClicked?.(),
|
|
3139
|
+
onChange: (n) => {
|
|
3140
|
+
N({ email: n.target.value });
|
|
3141
3141
|
},
|
|
3142
3142
|
onBlur: ee,
|
|
3143
3143
|
placeholder: t("formEmailPlaceholder"),
|
|
@@ -3162,7 +3162,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3162
3162
|
"aria-label": t("info"),
|
|
3163
3163
|
"aria-expanded": te === "dob",
|
|
3164
3164
|
onClick: () => {
|
|
3165
|
-
re((
|
|
3165
|
+
re((n) => n === "dob" ? null : "dob"), p?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
3166
3166
|
},
|
|
3167
3167
|
children: /* @__PURE__ */ e.jsx(
|
|
3168
3168
|
"img",
|
|
@@ -3189,16 +3189,16 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3189
3189
|
className: o.input,
|
|
3190
3190
|
type: "date",
|
|
3191
3191
|
ref: D,
|
|
3192
|
-
value:
|
|
3192
|
+
value: r.dateOfBirth,
|
|
3193
3193
|
max: (() => {
|
|
3194
|
-
const
|
|
3195
|
-
return `${
|
|
3194
|
+
const n = /* @__PURE__ */ new Date();
|
|
3195
|
+
return `${n.getFullYear()}-${X(n.getMonth() + 1)}-${X(n.getDate())}`;
|
|
3196
3196
|
})(),
|
|
3197
|
-
onChange: (
|
|
3198
|
-
const
|
|
3199
|
-
|
|
3197
|
+
onChange: (n) => {
|
|
3198
|
+
const d = n.target.value, K = /* @__PURE__ */ new Date(), Se = `${K.getFullYear()}-${X(K.getMonth() + 1)}-${X(K.getDate())}`;
|
|
3199
|
+
d && d > Se || (N({ dateOfBirth: d }), G("dateOfBirth", d), $.current = null);
|
|
3200
3200
|
},
|
|
3201
|
-
onFocus: () =>
|
|
3201
|
+
onFocus: () => p?.trackDobClicked?.(),
|
|
3202
3202
|
onClick: () => Oe(D),
|
|
3203
3203
|
onBlur: () => {
|
|
3204
3204
|
$.current === D.current && ($.current = null);
|
|
@@ -3211,9 +3211,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3211
3211
|
type: "button",
|
|
3212
3212
|
className: `${o.iconBtn} ${o.iconBtnInteractive}`,
|
|
3213
3213
|
"aria-label": "Open date picker",
|
|
3214
|
-
onMouseDown: (
|
|
3215
|
-
onClick: (
|
|
3216
|
-
|
|
3214
|
+
onMouseDown: (n) => n.preventDefault(),
|
|
3215
|
+
onClick: (n) => {
|
|
3216
|
+
n.preventDefault(), n.stopPropagation(), Oe(D);
|
|
3217
3217
|
},
|
|
3218
3218
|
children: /* @__PURE__ */ e.jsx(
|
|
3219
3219
|
"img",
|
|
@@ -3243,7 +3243,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3243
3243
|
"aria-label": t("info"),
|
|
3244
3244
|
"aria-expanded": te === "time",
|
|
3245
3245
|
onClick: () => {
|
|
3246
|
-
|
|
3246
|
+
p?.trackInfoIconClicked?.({ fieldName: "time" }), re((n) => n === "time" ? null : "time");
|
|
3247
3247
|
},
|
|
3248
3248
|
children: /* @__PURE__ */ e.jsx(
|
|
3249
3249
|
"img",
|
|
@@ -3269,17 +3269,17 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3269
3269
|
id: "kundli-birth-time",
|
|
3270
3270
|
className: o.input,
|
|
3271
3271
|
type: "text",
|
|
3272
|
-
value:
|
|
3272
|
+
value: r.birthTime ? xe(r.birthTime) : "",
|
|
3273
3273
|
readOnly: !0,
|
|
3274
|
-
onFocus: () =>
|
|
3275
|
-
onChange: (
|
|
3276
|
-
const
|
|
3277
|
-
N({ birthTime:
|
|
3274
|
+
onFocus: () => p?.trackTimeClicked?.(),
|
|
3275
|
+
onChange: (n) => {
|
|
3276
|
+
const d = n.target.value;
|
|
3277
|
+
N({ birthTime: d }), G("birthTime", d);
|
|
3278
3278
|
},
|
|
3279
|
-
disabled:
|
|
3279
|
+
disabled: r.birthTimeUnknown,
|
|
3280
3280
|
placeholder: "HH:MM AM",
|
|
3281
3281
|
onClick: () => {
|
|
3282
|
-
|
|
3282
|
+
r.birthTimeUnknown || (ue(ye(r.birthTime || "12:00")), se((n) => !n));
|
|
3283
3283
|
}
|
|
3284
3284
|
}
|
|
3285
3285
|
),
|
|
@@ -3289,10 +3289,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3289
3289
|
type: "button",
|
|
3290
3290
|
className: `${o.iconBtn} ${o.iconBtnInteractive}`,
|
|
3291
3291
|
"aria-label": "Open time picker",
|
|
3292
|
-
disabled:
|
|
3293
|
-
onMouseDown: (
|
|
3294
|
-
onClick: (
|
|
3295
|
-
|
|
3292
|
+
disabled: r.birthTimeUnknown,
|
|
3293
|
+
onMouseDown: (n) => n.preventDefault(),
|
|
3294
|
+
onClick: (n) => {
|
|
3295
|
+
n.preventDefault(), n.stopPropagation(), !r.birthTimeUnknown && (ue(ye(r.birthTime || "12:00")), se((d) => !d));
|
|
3296
3296
|
},
|
|
3297
3297
|
children: /* @__PURE__ */ e.jsx(
|
|
3298
3298
|
"img",
|
|
@@ -3305,7 +3305,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3305
3305
|
)
|
|
3306
3306
|
}
|
|
3307
3307
|
),
|
|
3308
|
-
be && !
|
|
3308
|
+
be && !r.birthTimeUnknown && /* @__PURE__ */ e.jsxs(
|
|
3309
3309
|
"div",
|
|
3310
3310
|
{
|
|
3311
3311
|
className: o.timePopover,
|
|
@@ -3318,12 +3318,12 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3318
3318
|
{
|
|
3319
3319
|
className: o.timePickerSelect,
|
|
3320
3320
|
value: de.hour12,
|
|
3321
|
-
onChange: (
|
|
3322
|
-
...
|
|
3323
|
-
hour12: Number(
|
|
3321
|
+
onChange: (n) => ue((d) => ({
|
|
3322
|
+
...d,
|
|
3323
|
+
hour12: Number(n.target.value)
|
|
3324
3324
|
})),
|
|
3325
3325
|
"aria-label": "Hour",
|
|
3326
|
-
children: Array.from({ length: 12 }, (
|
|
3326
|
+
children: Array.from({ length: 12 }, (n, d) => d + 1).map((n) => /* @__PURE__ */ e.jsx("option", { value: n, children: n }, n))
|
|
3327
3327
|
}
|
|
3328
3328
|
),
|
|
3329
3329
|
/* @__PURE__ */ e.jsx("span", { className: o.timePickerColon, children: ":" }),
|
|
@@ -3332,10 +3332,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3332
3332
|
{
|
|
3333
3333
|
className: o.timePickerSelect,
|
|
3334
3334
|
value: de.minute,
|
|
3335
|
-
onChange: (
|
|
3335
|
+
onChange: (n) => ue((d) => ({ ...d, minute: n.target.value })),
|
|
3336
3336
|
"aria-label": "Minute",
|
|
3337
|
-
children: Array.from({ length: 60 }, (
|
|
3338
|
-
(
|
|
3337
|
+
children: Array.from({ length: 60 }, (n, d) => X(d)).map(
|
|
3338
|
+
(n) => /* @__PURE__ */ e.jsx("option", { value: n, children: n }, n)
|
|
3339
3339
|
)
|
|
3340
3340
|
}
|
|
3341
3341
|
),
|
|
@@ -3345,7 +3345,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3345
3345
|
{
|
|
3346
3346
|
type: "button",
|
|
3347
3347
|
className: `${o.meridiemBtn} ${de.meridiem === "AM" ? o.meridiemActive : ""}`,
|
|
3348
|
-
onClick: () => ue((
|
|
3348
|
+
onClick: () => ue((n) => ({ ...n, meridiem: "AM" })),
|
|
3349
3349
|
children: "AM"
|
|
3350
3350
|
}
|
|
3351
3351
|
),
|
|
@@ -3354,7 +3354,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3354
3354
|
{
|
|
3355
3355
|
type: "button",
|
|
3356
3356
|
className: `${o.meridiemBtn} ${de.meridiem === "PM" ? o.meridiemActive : ""}`,
|
|
3357
|
-
onClick: () => ue((
|
|
3357
|
+
onClick: () => ue((n) => ({ ...n, meridiem: "PM" })),
|
|
3358
3358
|
children: "PM"
|
|
3359
3359
|
}
|
|
3360
3360
|
)
|
|
@@ -3366,7 +3366,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3366
3366
|
{
|
|
3367
3367
|
type: "button",
|
|
3368
3368
|
className: o.timePopoverBtn,
|
|
3369
|
-
onClick: () =>
|
|
3369
|
+
onClick: () => se(!1),
|
|
3370
3370
|
children: "Cancel"
|
|
3371
3371
|
}
|
|
3372
3372
|
),
|
|
@@ -3376,8 +3376,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3376
3376
|
type: "button",
|
|
3377
3377
|
className: `${o.timePopoverBtn} ${o.timePopoverOk}`,
|
|
3378
3378
|
onClick: () => {
|
|
3379
|
-
const
|
|
3380
|
-
N({ birthTime:
|
|
3379
|
+
const n = Ne(de);
|
|
3380
|
+
N({ birthTime: n }), G("birthTime", n), se(!1);
|
|
3381
3381
|
},
|
|
3382
3382
|
"aria-label": "OK",
|
|
3383
3383
|
children: /* @__PURE__ */ e.jsx(
|
|
@@ -3415,11 +3415,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3415
3415
|
id: "kundli-time-unknown",
|
|
3416
3416
|
className: o.checkbox,
|
|
3417
3417
|
type: "checkbox",
|
|
3418
|
-
checked:
|
|
3419
|
-
onChange: (
|
|
3420
|
-
|
|
3421
|
-
birthTimeUnknown:
|
|
3422
|
-
birthTime:
|
|
3418
|
+
checked: r.birthTimeUnknown,
|
|
3419
|
+
onChange: (n) => {
|
|
3420
|
+
p?.trackTimeCheckboxClicked?.(), N({
|
|
3421
|
+
birthTimeUnknown: n.target.checked,
|
|
3422
|
+
birthTime: n.target.checked ? "" : r.birthTime
|
|
3423
3423
|
});
|
|
3424
3424
|
}
|
|
3425
3425
|
}
|
|
@@ -3453,9 +3453,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3453
3453
|
"aria-label": t("info"),
|
|
3454
3454
|
"aria-expanded": te === "place",
|
|
3455
3455
|
onClick: () => {
|
|
3456
|
-
|
|
3456
|
+
p?.trackInfoIconClicked?.({
|
|
3457
3457
|
fieldName: "birthPlace"
|
|
3458
|
-
}), re((
|
|
3458
|
+
}), re((n) => n === "place" ? null : "place");
|
|
3459
3459
|
},
|
|
3460
3460
|
children: /* @__PURE__ */ e.jsx(
|
|
3461
3461
|
"img",
|
|
@@ -3481,17 +3481,17 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3481
3481
|
id: "kundli-birth-place",
|
|
3482
3482
|
className: o.input,
|
|
3483
3483
|
type: "text",
|
|
3484
|
-
value:
|
|
3485
|
-
onChange: (
|
|
3486
|
-
const
|
|
3484
|
+
value: r.birthPlace,
|
|
3485
|
+
onChange: (n) => {
|
|
3486
|
+
const d = n.target.value;
|
|
3487
3487
|
N({
|
|
3488
|
-
birthPlace:
|
|
3488
|
+
birthPlace: d,
|
|
3489
3489
|
birthPlaceLat: void 0,
|
|
3490
3490
|
birthPlaceLng: void 0
|
|
3491
|
-
}), G("birthPlace",
|
|
3491
|
+
}), G("birthPlace", d), W(!0);
|
|
3492
3492
|
},
|
|
3493
3493
|
onFocus: () => {
|
|
3494
|
-
|
|
3494
|
+
p?.trackPlaceOfBirthClicked?.(), W(!0);
|
|
3495
3495
|
},
|
|
3496
3496
|
placeholder: t("formBirthPlacePlaceholder"),
|
|
3497
3497
|
autoComplete: "address-level2"
|
|
@@ -3506,41 +3506,41 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3506
3506
|
"aria-hidden": !0
|
|
3507
3507
|
}
|
|
3508
3508
|
) }),
|
|
3509
|
-
Z && Pe.length > 0 && /* @__PURE__ */ e.jsx("div", { className: o.suggestions, role: "listbox", children: Pe.slice(0, 8).map((
|
|
3509
|
+
Z && Pe.length > 0 && /* @__PURE__ */ e.jsx("div", { className: o.suggestions, role: "listbox", children: Pe.slice(0, 8).map((n) => /* @__PURE__ */ e.jsxs(
|
|
3510
3510
|
"button",
|
|
3511
3511
|
{
|
|
3512
3512
|
type: "button",
|
|
3513
3513
|
className: o.suggestionItem,
|
|
3514
3514
|
onClick: async () => {
|
|
3515
|
-
const
|
|
3516
|
-
if (ge.current =
|
|
3517
|
-
birthPlace:
|
|
3518
|
-
birthPlaceLat:
|
|
3519
|
-
birthPlaceLng:
|
|
3520
|
-
}),
|
|
3515
|
+
const d = n.description;
|
|
3516
|
+
if (ge.current = d, N({
|
|
3517
|
+
birthPlace: d,
|
|
3518
|
+
birthPlaceLat: n.lat,
|
|
3519
|
+
birthPlaceLng: n.lng
|
|
3520
|
+
}), ie(), W(!1), pe) {
|
|
3521
3521
|
const K = await _e.getPlaceDetails(
|
|
3522
|
-
|
|
3522
|
+
n.id
|
|
3523
3523
|
);
|
|
3524
|
-
K && (ge.current =
|
|
3525
|
-
...
|
|
3526
|
-
birthPlace:
|
|
3524
|
+
K && (ge.current = d, i({
|
|
3525
|
+
...r,
|
|
3526
|
+
birthPlace: d,
|
|
3527
3527
|
birthPlaceLat: K.lat,
|
|
3528
3528
|
birthPlaceLng: K.lng
|
|
3529
3529
|
}));
|
|
3530
3530
|
}
|
|
3531
3531
|
},
|
|
3532
3532
|
children: [
|
|
3533
|
-
/* @__PURE__ */ e.jsx("span", { className: o.suggestionMain, children:
|
|
3534
|
-
|
|
3533
|
+
/* @__PURE__ */ e.jsx("span", { className: o.suggestionMain, children: n.description }),
|
|
3534
|
+
n.secondaryText && /* @__PURE__ */ e.jsx("span", { className: o.suggestionSecondary, children: n.secondaryText })
|
|
3535
3535
|
]
|
|
3536
3536
|
},
|
|
3537
|
-
|
|
3537
|
+
n.id
|
|
3538
3538
|
)) }),
|
|
3539
|
-
Z &&
|
|
3540
|
-
Z &&
|
|
3539
|
+
Z && m && l && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: "Loading…" }),
|
|
3540
|
+
Z && m && !l && !!h && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: h })
|
|
3541
3541
|
] })
|
|
3542
3542
|
] }),
|
|
3543
|
-
|
|
3543
|
+
y && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
3544
3544
|
/* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, children: [
|
|
3545
3545
|
t("formReportLanguage"),
|
|
3546
3546
|
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
@@ -3557,14 +3557,14 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3557
3557
|
{
|
|
3558
3558
|
id: "kundli-report-lang-hi",
|
|
3559
3559
|
type: "button",
|
|
3560
|
-
className: `${o.choiceBtn} ${
|
|
3560
|
+
className: `${o.choiceBtn} ${r.language_code === "hi" ? o.choiceBtnActive : ""}`,
|
|
3561
3561
|
onClick: () => {
|
|
3562
|
-
N({ language_code: "hi" }),
|
|
3562
|
+
N({ language_code: "hi" }), p?.trackLanguageOfReportSelected?.({
|
|
3563
3563
|
language: "hi"
|
|
3564
3564
|
});
|
|
3565
3565
|
},
|
|
3566
3566
|
role: "radio",
|
|
3567
|
-
"aria-checked":
|
|
3567
|
+
"aria-checked": r.language_code === "hi",
|
|
3568
3568
|
children: t("formReportLanguageHindi")
|
|
3569
3569
|
}
|
|
3570
3570
|
),
|
|
@@ -3573,14 +3573,14 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3573
3573
|
{
|
|
3574
3574
|
id: "kundli-report-lang-en",
|
|
3575
3575
|
type: "button",
|
|
3576
|
-
className: `${o.choiceBtn} ${
|
|
3576
|
+
className: `${o.choiceBtn} ${r.language_code === "en" ? o.choiceBtnActive : ""}`,
|
|
3577
3577
|
onClick: () => {
|
|
3578
|
-
N({ language_code: "en" }),
|
|
3578
|
+
N({ language_code: "en" }), p?.trackLanguageOfReportSelected?.({
|
|
3579
3579
|
language: "en"
|
|
3580
3580
|
});
|
|
3581
3581
|
},
|
|
3582
3582
|
role: "radio",
|
|
3583
|
-
"aria-checked":
|
|
3583
|
+
"aria-checked": r.language_code === "en",
|
|
3584
3584
|
children: t("formReportLanguageEnglish")
|
|
3585
3585
|
}
|
|
3586
3586
|
),
|
|
@@ -3589,14 +3589,14 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3589
3589
|
{
|
|
3590
3590
|
id: "kundli-report-lang-te",
|
|
3591
3591
|
type: "button",
|
|
3592
|
-
className: `${o.choiceBtn} ${
|
|
3592
|
+
className: `${o.choiceBtn} ${r.language_code === "te" ? o.choiceBtnActive : ""}`,
|
|
3593
3593
|
onClick: () => {
|
|
3594
|
-
N({ language_code: "te" }),
|
|
3594
|
+
N({ language_code: "te" }), p?.trackLanguageOfReportSelected?.({
|
|
3595
3595
|
language: "te"
|
|
3596
3596
|
});
|
|
3597
3597
|
},
|
|
3598
3598
|
role: "radio",
|
|
3599
|
-
"aria-checked":
|
|
3599
|
+
"aria-checked": r.language_code === "te",
|
|
3600
3600
|
children: t("formReportLanguageTelugu")
|
|
3601
3601
|
}
|
|
3602
3602
|
),
|
|
@@ -3605,14 +3605,14 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3605
3605
|
{
|
|
3606
3606
|
id: "kundli-report-lang-ta",
|
|
3607
3607
|
type: "button",
|
|
3608
|
-
className: `${o.choiceBtn} ${
|
|
3608
|
+
className: `${o.choiceBtn} ${r.language_code === "ta" ? o.choiceBtnActive : ""}`,
|
|
3609
3609
|
onClick: () => {
|
|
3610
|
-
N({ language_code: "ta" }),
|
|
3610
|
+
N({ language_code: "ta" }), p?.trackLanguageOfReportSelected?.({
|
|
3611
3611
|
language: "ta"
|
|
3612
3612
|
});
|
|
3613
3613
|
},
|
|
3614
3614
|
role: "radio",
|
|
3615
|
-
"aria-checked":
|
|
3615
|
+
"aria-checked": r.language_code === "ta",
|
|
3616
3616
|
children: t("formReportLanguageTamil")
|
|
3617
3617
|
}
|
|
3618
3618
|
),
|
|
@@ -3621,14 +3621,14 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3621
3621
|
{
|
|
3622
3622
|
id: "kundli-report-lang-kn",
|
|
3623
3623
|
type: "button",
|
|
3624
|
-
className: `${o.choiceBtn} ${
|
|
3624
|
+
className: `${o.choiceBtn} ${r.language_code === "kn" ? o.choiceBtnActive : ""}`,
|
|
3625
3625
|
onClick: () => {
|
|
3626
|
-
N({ language_code: "kn" }),
|
|
3626
|
+
N({ language_code: "kn" }), p?.trackLanguageOfReportSelected?.({
|
|
3627
3627
|
language: "kn"
|
|
3628
3628
|
});
|
|
3629
3629
|
},
|
|
3630
3630
|
role: "radio",
|
|
3631
|
-
"aria-checked":
|
|
3631
|
+
"aria-checked": r.language_code === "kn",
|
|
3632
3632
|
children: t("formReportLanguageKannada")
|
|
3633
3633
|
}
|
|
3634
3634
|
),
|
|
@@ -3637,14 +3637,14 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3637
3637
|
{
|
|
3638
3638
|
id: "kundli-report-lang-gu",
|
|
3639
3639
|
type: "button",
|
|
3640
|
-
className: `${o.choiceBtn} ${
|
|
3640
|
+
className: `${o.choiceBtn} ${r.language_code === "gu" ? o.choiceBtnActive : ""}`,
|
|
3641
3641
|
onClick: () => {
|
|
3642
|
-
N({ language_code: "gu" }),
|
|
3642
|
+
N({ language_code: "gu" }), p?.trackLanguageOfReportSelected?.({
|
|
3643
3643
|
language: "gu"
|
|
3644
3644
|
});
|
|
3645
3645
|
},
|
|
3646
3646
|
role: "radio",
|
|
3647
|
-
"aria-checked":
|
|
3647
|
+
"aria-checked": r.language_code === "gu",
|
|
3648
3648
|
children: t("formReportLanguageGujarati")
|
|
3649
3649
|
}
|
|
3650
3650
|
),
|
|
@@ -3653,14 +3653,14 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3653
3653
|
{
|
|
3654
3654
|
id: "kundli-report-lang-mr",
|
|
3655
3655
|
type: "button",
|
|
3656
|
-
className: `${o.choiceBtn} ${
|
|
3656
|
+
className: `${o.choiceBtn} ${r.language_code === "mr" ? o.choiceBtnActive : ""}`,
|
|
3657
3657
|
onClick: () => {
|
|
3658
|
-
N({ language_code: "mr" }),
|
|
3658
|
+
N({ language_code: "mr" }), p?.trackLanguageOfReportSelected?.({
|
|
3659
3659
|
language: "mr"
|
|
3660
3660
|
});
|
|
3661
3661
|
},
|
|
3662
3662
|
role: "radio",
|
|
3663
|
-
"aria-checked":
|
|
3663
|
+
"aria-checked": r.language_code === "mr",
|
|
3664
3664
|
children: t("formReportLanguageMarathi")
|
|
3665
3665
|
}
|
|
3666
3666
|
)
|
|
@@ -3677,11 +3677,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3677
3677
|
ctaFilledContent: Fr,
|
|
3678
3678
|
chevronRight: Mr
|
|
3679
3679
|
}, Ra = "kundli-report-astrologer", Ur = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", Gr = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", Or = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", $r = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", Hr = ({ t }) => {
|
|
3680
|
-
const
|
|
3680
|
+
const i = Ie()?.config.imageComponent ?? Ye;
|
|
3681
3681
|
return /* @__PURE__ */ e.jsxs("div", { className: Ee.marqueeContent, children: [
|
|
3682
3682
|
/* @__PURE__ */ e.jsxs("span", { className: Ee.badge, children: [
|
|
3683
3683
|
/* @__PURE__ */ e.jsx(
|
|
3684
|
-
|
|
3684
|
+
i,
|
|
3685
3685
|
{
|
|
3686
3686
|
src: Ur,
|
|
3687
3687
|
alt: "",
|
|
@@ -3695,7 +3695,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3695
3695
|
] }),
|
|
3696
3696
|
/* @__PURE__ */ e.jsxs("span", { className: Ee.badge, children: [
|
|
3697
3697
|
/* @__PURE__ */ e.jsx(
|
|
3698
|
-
|
|
3698
|
+
i,
|
|
3699
3699
|
{
|
|
3700
3700
|
src: Gr,
|
|
3701
3701
|
alt: "",
|
|
@@ -3709,7 +3709,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3709
3709
|
] }),
|
|
3710
3710
|
/* @__PURE__ */ e.jsxs("span", { className: Ee.badge, children: [
|
|
3711
3711
|
/* @__PURE__ */ e.jsx(
|
|
3712
|
-
|
|
3712
|
+
i,
|
|
3713
3713
|
{
|
|
3714
3714
|
src: Or,
|
|
3715
3715
|
alt: "",
|
|
@@ -3722,57 +3722,57 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3722
3722
|
t("ctaSecurePayment")
|
|
3723
3723
|
] })
|
|
3724
3724
|
] });
|
|
3725
|
-
}, Wr = (t) => /.+@.+\..+/.test(t), Kr = (t) => /^\d{10}$/.test(t), qr = (t,
|
|
3725
|
+
}, Wr = (t) => /.+@.+\..+/.test(t), Kr = (t) => /^\d{10}$/.test(t), qr = (t, r, i) => {
|
|
3726
3726
|
if (!t.fullName.trim()) return "fullName";
|
|
3727
|
-
if (
|
|
3727
|
+
if (r) {
|
|
3728
3728
|
if (!Wr(t.email.trim())) return "email";
|
|
3729
3729
|
} else if (!Kr((t.phone ?? "").trim())) return "phone";
|
|
3730
3730
|
if (!t.dateOfBirth) return "dateOfBirth";
|
|
3731
3731
|
if (!t.birthPlace.trim()) return "birthPlace";
|
|
3732
|
-
if (
|
|
3732
|
+
if (i) {
|
|
3733
3733
|
if (!t.gender) return "gender";
|
|
3734
3734
|
if (!t.language_code) return "language_code";
|
|
3735
3735
|
}
|
|
3736
3736
|
return !t.birthTimeUnknown && !t.birthTime ? "birthTime" : null;
|
|
3737
3737
|
}, Yr = ({
|
|
3738
3738
|
t,
|
|
3739
|
-
values:
|
|
3740
|
-
phoneIsdCode:
|
|
3741
|
-
requireV1ExtraFields:
|
|
3742
|
-
onValidationFailed:
|
|
3743
|
-
onProceed:
|
|
3744
|
-
onProceedGuidance:
|
|
3745
|
-
href:
|
|
3746
|
-
analytics:
|
|
3739
|
+
values: r,
|
|
3740
|
+
phoneIsdCode: i,
|
|
3741
|
+
requireV1ExtraFields: c = !1,
|
|
3742
|
+
onValidationFailed: _,
|
|
3743
|
+
onProceed: y,
|
|
3744
|
+
onProceedGuidance: g,
|
|
3745
|
+
href: x,
|
|
3746
|
+
analytics: b,
|
|
3747
3747
|
className: Y = "",
|
|
3748
3748
|
discountedPriceLabel: M,
|
|
3749
3749
|
discountPillLabel: R,
|
|
3750
|
-
showPlanSheet:
|
|
3750
|
+
showPlanSheet: p,
|
|
3751
3751
|
confirmPlan: C,
|
|
3752
3752
|
planSheetOpen: A,
|
|
3753
3753
|
selectedPlan: z
|
|
3754
3754
|
}) => {
|
|
3755
|
-
const v = Ie(),
|
|
3756
|
-
() => qr(
|
|
3757
|
-
[
|
|
3758
|
-
), S = oe === null, V = w === "v1" && v?.config?.showSheet, j =
|
|
3759
|
-
if (ee.preventDefault(), w === "v1" && !S &&
|
|
3760
|
-
oe &&
|
|
3755
|
+
const v = Ie(), k = v?.config.isGlobal ?? !0, w = v?.config?.variant, oe = Be(
|
|
3756
|
+
() => qr(r, k, c),
|
|
3757
|
+
[r, k, c]
|
|
3758
|
+
), S = oe === null, V = w === "v1" && v?.config?.showSheet, j = k ? M ?? t("formDiscountedPrice") : V ? "" : "₹499", O = v?.config.imageComponent ?? Ye, N = (ee) => {
|
|
3759
|
+
if (ee.preventDefault(), w === "v1" && !S && b?.trackKundliDetailedClicked?.(), !S) {
|
|
3760
|
+
oe && _?.(oe);
|
|
3761
3761
|
return;
|
|
3762
3762
|
}
|
|
3763
|
-
const ae = !!
|
|
3764
|
-
...
|
|
3765
|
-
phone: B && `${
|
|
3763
|
+
const ae = !!g && w === "v1" && z?.id === Ra, B = (r.phone ?? "").trim(), D = {
|
|
3764
|
+
...r,
|
|
3765
|
+
phone: B && `${i}-${B}`
|
|
3766
3766
|
};
|
|
3767
3767
|
if (V) {
|
|
3768
|
-
A ? C?.() :
|
|
3768
|
+
A ? C?.() : p?.(D);
|
|
3769
3769
|
return;
|
|
3770
3770
|
}
|
|
3771
|
-
|
|
3771
|
+
b?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), ae ? g(D) : y?.(D);
|
|
3772
3772
|
}, G = /* @__PURE__ */ e.jsx(
|
|
3773
3773
|
za,
|
|
3774
3774
|
{
|
|
3775
|
-
href:
|
|
3775
|
+
href: x,
|
|
3776
3776
|
disabled: w === "v1" ? !1 : !S,
|
|
3777
3777
|
onClick: N,
|
|
3778
3778
|
"aria-label": t("formPriceAria"),
|
|
@@ -3807,20 +3807,20 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3807
3807
|
);
|
|
3808
3808
|
}, Vr = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", Jr = ({
|
|
3809
3809
|
t,
|
|
3810
|
-
languageSelector:
|
|
3811
|
-
logoUrl:
|
|
3812
|
-
className:
|
|
3810
|
+
languageSelector: r,
|
|
3811
|
+
logoUrl: i = Vr,
|
|
3812
|
+
className: c = ""
|
|
3813
3813
|
}) => {
|
|
3814
|
-
const
|
|
3814
|
+
const _ = Ie(), y = _?.config.isGlobal ?? !0, g = r != null && !y;
|
|
3815
3815
|
return /* @__PURE__ */ e.jsx(
|
|
3816
3816
|
Za,
|
|
3817
3817
|
{
|
|
3818
3818
|
t,
|
|
3819
|
-
logoUrl:
|
|
3820
|
-
imageComponent:
|
|
3821
|
-
languageSelector:
|
|
3822
|
-
showLanguageSelector:
|
|
3823
|
-
className:
|
|
3819
|
+
logoUrl: i,
|
|
3820
|
+
imageComponent: _?.config.imageComponent,
|
|
3821
|
+
languageSelector: r,
|
|
3822
|
+
showLanguageSelector: g,
|
|
3823
|
+
className: c
|
|
3824
3824
|
}
|
|
3825
3825
|
);
|
|
3826
3826
|
}, Na = () => /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
@@ -3875,7 +3875,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3875
3875
|
/* @__PURE__ */ e.jsx("path", { d: "M3 9.5h18", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
3876
3876
|
/* @__PURE__ */ e.jsx("path", { d: "M8 2.5v4M16 2.5v4", stroke: "#D1D5DB", strokeWidth: "1.6", strokeLinecap: "round" }),
|
|
3877
3877
|
/* @__PURE__ */ e.jsx("path", { d: "M7.5 20.5L17 6", stroke: "#9CA3AF", strokeWidth: "1.6", strokeLinecap: "round" })
|
|
3878
|
-
] }), rn = "_overlay_1u7x5_2", nn = "_sheet_1u7x5_12", on = "_sheetFullScreen_1u7x5_36", ln = "_headerFull_1u7x5_50", sn = "_titleFull_1u7x5_63", cn = "_header_1u7x5_50", dn = "_backBtn_1u7x5_84", un = "_title_1u7x5_63", pn = "_plansContainer_1u7x5_114", mn = "_planCard_1u7x5_123", fn = "_withBadgeSpacing_1u7x5_137", hn = "_planCardSelected_1u7x5_141", gn = "_planCardPopular_1u7x5_146", bn = "_popularBadge_1u7x5_155", _n = "_planCardInner_1u7x5_173", kn = "_planTitleRow_1u7x5_184", yn = "_planTitle_1u7x5_184", An = "_radioCircle_1u7x5_199", vn = "_radioChecked_1u7x5_212", Tn = "_radioInner_1u7x5_217", Pn = "_priceRow_1u7x5_225", xn = "_price_1u7x5_225", Sn = "_originalPrice_1u7x5_238", wn = "_savingsBadge_1u7x5_245", Cn = "_featureList_1u7x5_255", jn = "_featureItem_1u7x5_264", Rn = "_featureIcon_1u7x5_270", Nn = "_featureText_1u7x5_276", Ln = "_astrologerHeading_1u7x5_287", Bn = "_astrologerList_1u7x5_294", Dn = "_astrologerCard_1u7x5_310", En = "_astrologerAvatar_1u7x5_326", In = "_astrologerAvatarPlaceholder_1u7x5_343", Fn = "_astrologerTop_1u7x5_349", Mn = "_astrologerBasicInfo_1u7x5_355", Un = "_astrologerName_1u7x5_362", Gn = "_astrologerExp_1u7x5_371", On = "_astrologerDivider_1u7x5_377", $n = "_planDivider_1u7x5_383", Hn = "_astrologerCertList_1u7x5_390", Wn = "_astrologerCertItem_1u7x5_396", Kn = "_bullet_1u7x5_404", qn = "_footer_1u7x5_409", Yn = "_proceedBtn_1u7x5_419",
|
|
3878
|
+
] }), rn = "_overlay_1u7x5_2", nn = "_sheet_1u7x5_12", on = "_sheetFullScreen_1u7x5_36", ln = "_headerFull_1u7x5_50", sn = "_titleFull_1u7x5_63", cn = "_header_1u7x5_50", dn = "_backBtn_1u7x5_84", un = "_title_1u7x5_63", pn = "_plansContainer_1u7x5_114", mn = "_planCard_1u7x5_123", fn = "_withBadgeSpacing_1u7x5_137", hn = "_planCardSelected_1u7x5_141", gn = "_planCardPopular_1u7x5_146", bn = "_popularBadge_1u7x5_155", _n = "_planCardInner_1u7x5_173", kn = "_planTitleRow_1u7x5_184", yn = "_planTitle_1u7x5_184", An = "_radioCircle_1u7x5_199", vn = "_radioChecked_1u7x5_212", Tn = "_radioInner_1u7x5_217", Pn = "_priceRow_1u7x5_225", xn = "_price_1u7x5_225", Sn = "_originalPrice_1u7x5_238", wn = "_savingsBadge_1u7x5_245", Cn = "_featureList_1u7x5_255", jn = "_featureItem_1u7x5_264", Rn = "_featureIcon_1u7x5_270", Nn = "_featureText_1u7x5_276", Ln = "_astrologerHeading_1u7x5_287", Bn = "_astrologerList_1u7x5_294", Dn = "_astrologerCard_1u7x5_310", En = "_astrologerAvatar_1u7x5_326", In = "_astrologerAvatarPlaceholder_1u7x5_343", Fn = "_astrologerTop_1u7x5_349", Mn = "_astrologerBasicInfo_1u7x5_355", Un = "_astrologerName_1u7x5_362", Gn = "_astrologerExp_1u7x5_371", On = "_astrologerDivider_1u7x5_377", $n = "_planDivider_1u7x5_383", Hn = "_astrologerCertList_1u7x5_390", Wn = "_astrologerCertItem_1u7x5_396", Kn = "_bullet_1u7x5_404", qn = "_footer_1u7x5_409", Yn = "_proceedBtn_1u7x5_419", P = {
|
|
3879
3879
|
overlay: rn,
|
|
3880
3880
|
sheet: nn,
|
|
3881
3881
|
sheetFullScreen: on,
|
|
@@ -3920,104 +3920,104 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3920
3920
|
bullet: Kn,
|
|
3921
3921
|
footer: qn,
|
|
3922
3922
|
proceedBtn: Yn
|
|
3923
|
-
}, Vn = ({ title: t, onBack:
|
|
3923
|
+
}, Vn = ({ title: t, onBack: r }) => /* @__PURE__ */ e.jsxs("div", { className: P.header, children: [
|
|
3924
3924
|
/* @__PURE__ */ e.jsx(
|
|
3925
3925
|
"button",
|
|
3926
3926
|
{
|
|
3927
|
-
className:
|
|
3928
|
-
onClick:
|
|
3927
|
+
className: P.backBtn,
|
|
3928
|
+
onClick: r,
|
|
3929
3929
|
"aria-label": "Go back",
|
|
3930
3930
|
type: "button",
|
|
3931
3931
|
children: /* @__PURE__ */ e.jsx(sa, {})
|
|
3932
3932
|
}
|
|
3933
3933
|
),
|
|
3934
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
3935
|
-
] }), Jn = ({ features: t, t:
|
|
3936
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3934
|
+
/* @__PURE__ */ e.jsx("h2", { className: P.title, children: t })
|
|
3935
|
+
] }), Jn = ({ features: t, t: r }) => /* @__PURE__ */ e.jsx("ul", { className: P.featureList, "aria-label": "Plan features", children: t.map((i, c) => /* @__PURE__ */ e.jsxs("li", { className: P.featureItem, children: [
|
|
3936
|
+
/* @__PURE__ */ e.jsx("span", { className: P.featureIcon, children: i.included ? /* @__PURE__ */ e.jsx(Na, {}) : /* @__PURE__ */ e.jsx(zr, {}) }),
|
|
3937
3937
|
/* @__PURE__ */ e.jsx(
|
|
3938
3938
|
"span",
|
|
3939
3939
|
{
|
|
3940
|
-
className: `${
|
|
3941
|
-
children:
|
|
3940
|
+
className: `${P.featureText} `,
|
|
3941
|
+
children: r?.(i.text) ?? i.text
|
|
3942
3942
|
}
|
|
3943
3943
|
)
|
|
3944
|
-
] },
|
|
3945
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3946
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3947
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3948
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
3949
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
3944
|
+
] }, c)) }), zn = ({ astrologer: t, t: r }) => /* @__PURE__ */ e.jsxs("div", { className: P.astrologerCard, children: [
|
|
3945
|
+
/* @__PURE__ */ e.jsxs("div", { className: P.astrologerTop, children: [
|
|
3946
|
+
/* @__PURE__ */ e.jsx("div", { className: P.astrologerAvatar, "aria-hidden": !0, children: t.imageUrl ? /* @__PURE__ */ e.jsx("img", { src: t.imageUrl, alt: r?.(t.name) ?? t.name, width: 40, height: 40 }) : /* @__PURE__ */ e.jsx("span", { className: P.astrologerAvatarPlaceholder, children: t.name.charAt(0) }) }),
|
|
3947
|
+
/* @__PURE__ */ e.jsxs("div", { className: P.astrologerBasicInfo, children: [
|
|
3948
|
+
/* @__PURE__ */ e.jsx("p", { className: P.astrologerName, children: r?.(t.name) ?? t.name }),
|
|
3949
|
+
/* @__PURE__ */ e.jsx("p", { className: P.astrologerExp, children: r?.(t.experience) ?? t.experience })
|
|
3950
3950
|
] })
|
|
3951
3951
|
] }),
|
|
3952
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3953
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3954
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3952
|
+
/* @__PURE__ */ e.jsx("div", { className: P.astrologerDivider }),
|
|
3953
|
+
/* @__PURE__ */ e.jsx("div", { className: P.astrologerCertList, children: t.certifications.map((i, c) => /* @__PURE__ */ e.jsxs("p", { className: P.astrologerCertItem, children: [
|
|
3954
|
+
/* @__PURE__ */ e.jsx("span", { className: P.bullet, children: "•" }),
|
|
3955
3955
|
" ",
|
|
3956
|
-
|
|
3957
|
-
] },
|
|
3958
|
-
] }), Qn = ({ label: t }) => /* @__PURE__ */ e.jsxs("div", { className:
|
|
3956
|
+
r?.(i) ?? i
|
|
3957
|
+
] }, c)) })
|
|
3958
|
+
] }), Qn = ({ label: t }) => /* @__PURE__ */ e.jsxs("div", { className: P.popularBadge, "aria-label": t, children: [
|
|
3959
3959
|
/* @__PURE__ */ e.jsx(Xr, {}),
|
|
3960
3960
|
/* @__PURE__ */ e.jsx("span", { children: t })
|
|
3961
|
-
] }), Xn = ({ plan: t, isSelected:
|
|
3962
|
-
const
|
|
3963
|
-
(
|
|
3961
|
+
] }), Xn = ({ plan: t, isSelected: r, onSelect: i, t: c }) => {
|
|
3962
|
+
const _ = () => i(t.id), y = (g) => {
|
|
3963
|
+
(g.key === " " || g.key === "Enter") && (g.preventDefault(), i(t.id));
|
|
3964
3964
|
};
|
|
3965
3965
|
return /* @__PURE__ */ e.jsxs(
|
|
3966
3966
|
"div",
|
|
3967
3967
|
{
|
|
3968
3968
|
className: [
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3969
|
+
P.planCard,
|
|
3970
|
+
r ? P.planCardSelected : "",
|
|
3971
|
+
r && P.planCardPopular
|
|
3972
3972
|
].filter(Boolean).join(" "),
|
|
3973
|
-
onClick:
|
|
3973
|
+
onClick: _,
|
|
3974
3974
|
role: "radio",
|
|
3975
|
-
"aria-checked":
|
|
3975
|
+
"aria-checked": r,
|
|
3976
3976
|
tabIndex: 0,
|
|
3977
|
-
onKeyDown:
|
|
3977
|
+
onKeyDown: y,
|
|
3978
3978
|
"data-plan-id": t.id,
|
|
3979
3979
|
children: [
|
|
3980
|
-
t.badge && /* @__PURE__ */ e.jsx(Qn, { label:
|
|
3981
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3982
|
-
/* @__PURE__ */ e.jsxs("div", { className: `${
|
|
3983
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3980
|
+
t.badge && /* @__PURE__ */ e.jsx(Qn, { label: c?.(t.badge) ?? t.badge }),
|
|
3981
|
+
/* @__PURE__ */ e.jsxs("div", { className: P.planCardInner, children: [
|
|
3982
|
+
/* @__PURE__ */ e.jsxs("div", { className: `${P.planTitleRow} ${t.badge ? P.withBadgeSpacing : ""}`, children: [
|
|
3983
|
+
/* @__PURE__ */ e.jsx("span", { className: P.planTitle, children: c?.(t.title) ?? t.title }),
|
|
3984
3984
|
/* @__PURE__ */ e.jsx(
|
|
3985
3985
|
"span",
|
|
3986
3986
|
{
|
|
3987
|
-
className: `${
|
|
3987
|
+
className: `${P.radioCircle} ${r ? P.radioChecked : ""}`,
|
|
3988
3988
|
"aria-hidden": !0,
|
|
3989
|
-
children:
|
|
3989
|
+
children: r && /* @__PURE__ */ e.jsx("span", { className: P.radioInner })
|
|
3990
3990
|
}
|
|
3991
3991
|
)
|
|
3992
3992
|
] }),
|
|
3993
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3994
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3995
|
-
t.originalPrice && /* @__PURE__ */ e.jsx("span", { className:
|
|
3996
|
-
t.savingsLabel && /* @__PURE__ */ e.jsx("span", { className:
|
|
3993
|
+
/* @__PURE__ */ e.jsxs("div", { className: P.priceRow, children: [
|
|
3994
|
+
/* @__PURE__ */ e.jsx("span", { className: P.price, children: t.price }),
|
|
3995
|
+
t.originalPrice && /* @__PURE__ */ e.jsx("span", { className: P.originalPrice, children: t.originalPrice }),
|
|
3996
|
+
t.savingsLabel && /* @__PURE__ */ e.jsx("span", { className: P.savingsBadge, children: c?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
|
|
3997
3997
|
] }),
|
|
3998
|
-
/* @__PURE__ */ e.jsx(Jn, { features: t.features, t:
|
|
3999
|
-
t.astrologers && /* @__PURE__ */ e.jsx("div", { className:
|
|
3998
|
+
/* @__PURE__ */ e.jsx(Jn, { features: t.features, t: c }),
|
|
3999
|
+
t.astrologers && /* @__PURE__ */ e.jsx("div", { className: P.planDivider }),
|
|
4000
4000
|
t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4001
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
4002
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
4001
|
+
/* @__PURE__ */ e.jsx("p", { className: P.astrologerHeading, children: c?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
|
|
4002
|
+
/* @__PURE__ */ e.jsx("div", { className: P.astrologerList, role: "list", children: t.astrologers.map((g, x) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(zn, { astrologer: g, t: c }) }, x)) })
|
|
4003
4003
|
] })
|
|
4004
4004
|
] })
|
|
4005
4005
|
]
|
|
4006
4006
|
}
|
|
4007
4007
|
);
|
|
4008
4008
|
}, aa = (t) => {
|
|
4009
|
-
const
|
|
4010
|
-
if (!
|
|
4011
|
-
const
|
|
4012
|
-
return `${
|
|
4013
|
-
}, Zn = (t,
|
|
4014
|
-
const
|
|
4015
|
-
if (Number.isNaN(
|
|
4009
|
+
const r = t.match(/T(\d{2}):(\d{2})/);
|
|
4010
|
+
if (!r) return t;
|
|
4011
|
+
const i = Number(r[1]), c = r[2], _ = i >= 12 ? "PM" : "AM";
|
|
4012
|
+
return `${i % 12 || 12}:${c} ${_}`;
|
|
4013
|
+
}, Zn = (t, r = /* @__PURE__ */ new Date()) => {
|
|
4014
|
+
const i = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], c = /* @__PURE__ */ new Date(`${t}T00:00:00`);
|
|
4015
|
+
if (Number.isNaN(c.getTime()))
|
|
4016
4016
|
return { id: t, dayLabel: t, dayNum: "" };
|
|
4017
|
-
const
|
|
4018
|
-
(
|
|
4019
|
-
),
|
|
4020
|
-
return { id: t, dayLabel:
|
|
4017
|
+
const _ = (x) => new Date(x.getFullYear(), x.getMonth(), x.getDate()).getTime(), y = Math.round(
|
|
4018
|
+
(_(c) - _(r)) / (1e3 * 60 * 60 * 24)
|
|
4019
|
+
), g = y === 0 ? "Today" : y === 1 ? "Tomorrow" : i[c.getDay()];
|
|
4020
|
+
return { id: t, dayLabel: g, dayNum: String(c.getDate()) };
|
|
4021
4021
|
}, eo = [
|
|
4022
4022
|
"morning",
|
|
4023
4023
|
"afternoon",
|
|
@@ -4051,12 +4051,12 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4051
4051
|
gu: ["gu", "en"],
|
|
4052
4052
|
mr: ["mr", "en"],
|
|
4053
4053
|
ta: ["ta", "en"]
|
|
4054
|
-
}, La = (t) => !!t?.days?.some((
|
|
4055
|
-
const
|
|
4056
|
-
(
|
|
4054
|
+
}, La = (t) => !!t?.days?.some((r) => r.has_availability && r.slots.length > 0), no = (t, r, i) => {
|
|
4055
|
+
const c = i ? ro : to, [_, y] = c[r || "en"] ?? c.en, g = qe.map((b) => b.code).filter(
|
|
4056
|
+
(b) => b !== _ && b !== y
|
|
4057
4057
|
);
|
|
4058
|
-
return [
|
|
4059
|
-
}, oo = "_overlay_12sjj_3", io = "_sheet_12sjj_13", lo = "_content_12sjj_35", so = "_header_12sjj_42", co = "_backBtn_12sjj_55", uo = "_title_12sjj_73", po = "_languageRow_12sjj_89", mo = "_languageLabel_12sjj_97", fo = "_languageDropdown_12sjj_103", ho = "_languageDropdownBtn_12sjj_107", go = "_languageMenu_12sjj_122", bo = "_languageMenuItem_12sjj_139", _o = "_languageMenuItemSelected_12sjj_153", ko = "_languageDivider_12sjj_159", yo = "_reportReadyBanner_12sjj_166", Ao = "_reportReadyDuration_12sjj_175", vo = "_trustRow_12sjj_181", To = "_trustAvatars_12sjj_192", Po = "_trustText_12sjj_205", xo = "_sectionHeading_12sjj_316", So = "_dateTabs_12sjj_324", wo = "_dateTabIndicator_12sjj_336", Co = "_dateTab_12sjj_324", jo = "_dateTabDivider_12sjj_370", Ro = "_dateTabSelected_12sjj_380", No = "_dateTabLabel_12sjj_385", Lo = "_dateTabNum_12sjj_392", Bo = "_periodTabs_12sjj_406", Do = "_periodTabIndicator_12sjj_334", Eo = "_periodTab_12sjj_334", Io = "_periodTabSelected_12sjj_453", Fo = "_timeGrid_12sjj_458", Mo = "_emptyState_12sjj_486", Uo = "_timeSlot_12sjj_490", Go = "_timeSlotSelected_12sjj_506", Oo = "_topicGrid_12sjj_514", $o = "_topicChip_12sjj_520", Ho = "_topicChipSelected_12sjj_536", Wo = "_stateMessage_12sjj_543", Ko = "_emptyStateIcon_12sjj_563", qo = "_emptyStateTitle_12sjj_574", Yo = "_emptyStateSubtitle_12sjj_581", Vo = "_loadingWrap_12sjj_590", Jo = "_skeletonShimmer_12sjj_595", zo = "_skeletonDateTabs_12sjj_609", Qo = "_skeletonDateTab_12sjj_609", Xo = "_skeletonPeriodTabs_12sjj_623", Zo = "_skeletonPeriodTab_12sjj_623", ei = "_skeletonTimeGrid_12sjj_638", ai = "_skeletonTimeSlot_12sjj_644", ti = "_retryBtn_12sjj_649", ri = "_footer_12sjj_663", ni = "_proceedBtn_12sjj_670", oi = "_proceedBtnDisabled_12sjj_688",
|
|
4058
|
+
return [_, y, ...g].find((b) => La(t[b])) ?? _;
|
|
4059
|
+
}, oo = "_overlay_12sjj_3", io = "_sheet_12sjj_13", lo = "_content_12sjj_35", so = "_header_12sjj_42", co = "_backBtn_12sjj_55", uo = "_title_12sjj_73", po = "_languageRow_12sjj_89", mo = "_languageLabel_12sjj_97", fo = "_languageDropdown_12sjj_103", ho = "_languageDropdownBtn_12sjj_107", go = "_languageMenu_12sjj_122", bo = "_languageMenuItem_12sjj_139", _o = "_languageMenuItemSelected_12sjj_153", ko = "_languageDivider_12sjj_159", yo = "_reportReadyBanner_12sjj_166", Ao = "_reportReadyDuration_12sjj_175", vo = "_trustRow_12sjj_181", To = "_trustAvatars_12sjj_192", Po = "_trustText_12sjj_205", xo = "_sectionHeading_12sjj_316", So = "_dateTabs_12sjj_324", wo = "_dateTabIndicator_12sjj_336", Co = "_dateTab_12sjj_324", jo = "_dateTabDivider_12sjj_370", Ro = "_dateTabSelected_12sjj_380", No = "_dateTabLabel_12sjj_385", Lo = "_dateTabNum_12sjj_392", Bo = "_periodTabs_12sjj_406", Do = "_periodTabIndicator_12sjj_334", Eo = "_periodTab_12sjj_334", Io = "_periodTabSelected_12sjj_453", Fo = "_timeGrid_12sjj_458", Mo = "_emptyState_12sjj_486", Uo = "_timeSlot_12sjj_490", Go = "_timeSlotSelected_12sjj_506", Oo = "_topicGrid_12sjj_514", $o = "_topicChip_12sjj_520", Ho = "_topicChipSelected_12sjj_536", Wo = "_stateMessage_12sjj_543", Ko = "_emptyStateIcon_12sjj_563", qo = "_emptyStateTitle_12sjj_574", Yo = "_emptyStateSubtitle_12sjj_581", Vo = "_loadingWrap_12sjj_590", Jo = "_skeletonShimmer_12sjj_595", zo = "_skeletonDateTabs_12sjj_609", Qo = "_skeletonDateTab_12sjj_609", Xo = "_skeletonPeriodTabs_12sjj_623", Zo = "_skeletonPeriodTab_12sjj_623", ei = "_skeletonTimeGrid_12sjj_638", ai = "_skeletonTimeSlot_12sjj_644", ti = "_retryBtn_12sjj_649", ri = "_footer_12sjj_663", ni = "_proceedBtn_12sjj_670", oi = "_proceedBtnDisabled_12sjj_688", f = {
|
|
4060
4060
|
overlay: oo,
|
|
4061
4061
|
sheet: io,
|
|
4062
4062
|
content: lo,
|
|
@@ -4119,82 +4119,77 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4119
4119
|
morning: "planPeriodMorning",
|
|
4120
4120
|
afternoon: "planPeriodAfternoon",
|
|
4121
4121
|
evening: "planPeriodEvening"
|
|
4122
|
-
}, ta = (t) => qe.find((
|
|
4123
|
-
const
|
|
4124
|
-
return
|
|
4122
|
+
}, ta = (t) => qe.find((r) => r.code === t)?.label ?? t, si = (t) => {
|
|
4123
|
+
const r = t.match(/([+-]\d{2}:\d{2})$/);
|
|
4124
|
+
return r ? `GMT${r[1]}` : t.endsWith("Z") ? "GMT+00:00" : "";
|
|
4125
4125
|
}, ci = ({
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
t: d,
|
|
4131
|
-
analytics: h,
|
|
4126
|
+
onProceed: t,
|
|
4127
|
+
astrologers: r,
|
|
4128
|
+
t: i,
|
|
4129
|
+
analytics: c,
|
|
4132
4130
|
reportLanguage: _,
|
|
4133
|
-
isPostPayment:
|
|
4131
|
+
isPostPayment: y = !1,
|
|
4132
|
+
showGuidanceTopic: g
|
|
4134
4133
|
}) => {
|
|
4135
|
-
const
|
|
4134
|
+
const x = g ?? !y, b = Ie(), Y = b?.config.imageComponent ?? Ye, M = b?.config.fetchConsultationSlots, R = b?.config.isGlobal ?? !0, p = _ ?? b?.formValues?.language_code, C = y ? "post_payment" : "pre_payment", [A, z] = I(!1), [v, k] = I(!1), [w, oe] = I({}), [S, V] = I("en"), [j, O] = I(!1), N = U(null), G = Be(
|
|
4136
4135
|
() => w[S]?.days ?? [],
|
|
4137
4136
|
[w, S]
|
|
4138
|
-
), [ee, ae] = I(""), [B, D] = I(""), [$, Q] = I("morning"), [E, be] = I(null),
|
|
4137
|
+
), [ee, ae] = I(""), [B, D] = I(""), [$, Q] = I("morning"), [E, be] = I(null), se = U(!1), de = U(null), ue = U({}), [X, xe] = I(null), ye = U(null), Ne = U(
|
|
4139
4138
|
{}
|
|
4140
4139
|
), [he, Z] = I(null), W = Be(
|
|
4141
|
-
() => G.filter((
|
|
4140
|
+
() => G.filter((l) => l.has_availability && l.slots.length > 0),
|
|
4142
4141
|
[G]
|
|
4143
4142
|
), ge = Ce(() => {
|
|
4144
|
-
M && (z(!0),
|
|
4145
|
-
const
|
|
4146
|
-
|
|
4147
|
-
|
|
4143
|
+
M && (z(!0), k(!1), M().then((l) => {
|
|
4144
|
+
const h = l ?? {}, m = no(
|
|
4145
|
+
h,
|
|
4146
|
+
p,
|
|
4148
4147
|
R
|
|
4149
4148
|
);
|
|
4150
|
-
oe(
|
|
4151
|
-
language: ta(
|
|
4149
|
+
oe(h), V(m), c?.trackConsultationLanguageDefaultSelected?.({
|
|
4150
|
+
language: ta(m),
|
|
4152
4151
|
status: C
|
|
4153
4152
|
});
|
|
4154
|
-
const fe = (
|
|
4155
|
-
(
|
|
4153
|
+
const fe = (h[m]?.days ?? []).filter(
|
|
4154
|
+
(ie) => ie.has_availability && ie.slots.length > 0
|
|
4156
4155
|
).length;
|
|
4157
|
-
|
|
4158
|
-
astrologers_shown:
|
|
4156
|
+
c?.trackAstrologerAvailabilityServed?.({
|
|
4157
|
+
astrologers_shown: r.map((ie) => ie.name),
|
|
4159
4158
|
dates_available_count: fe,
|
|
4160
4159
|
status: C
|
|
4161
4160
|
});
|
|
4162
4161
|
}).catch(() => {
|
|
4163
|
-
|
|
4162
|
+
k(!0);
|
|
4164
4163
|
}).finally(() => z(!1)));
|
|
4165
|
-
}, [M, R,
|
|
4164
|
+
}, [M, R, p, c, r, C]);
|
|
4166
4165
|
q(() => {
|
|
4167
|
-
if (!t) {
|
|
4168
|
-
ie.current = !1;
|
|
4169
|
-
return;
|
|
4170
|
-
}
|
|
4171
4166
|
ae(""), O(!1), ge();
|
|
4172
|
-
}, [
|
|
4167
|
+
}, []), q(() => {
|
|
4173
4168
|
if (!j) return;
|
|
4174
|
-
const
|
|
4175
|
-
N.current && !N.current.contains(
|
|
4169
|
+
const l = (h) => {
|
|
4170
|
+
N.current && !N.current.contains(h.target) && O(!1);
|
|
4176
4171
|
};
|
|
4177
|
-
return document.addEventListener("mousedown",
|
|
4172
|
+
return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
|
|
4178
4173
|
}, [j]), q(() => {
|
|
4179
4174
|
if (!W.length) {
|
|
4180
4175
|
D(""), be(null);
|
|
4181
4176
|
return;
|
|
4182
4177
|
}
|
|
4183
|
-
const
|
|
4184
|
-
W.some((
|
|
4185
|
-
date:
|
|
4178
|
+
const l = W[0];
|
|
4179
|
+
W.some((h) => h.date === B) || c?.trackConsultationDateDefaultSelected?.({
|
|
4180
|
+
date: l.date,
|
|
4186
4181
|
status: C
|
|
4187
4182
|
}), D(
|
|
4188
|
-
(
|
|
4183
|
+
(h) => W.some((m) => m.date === h) ? h : l.date
|
|
4189
4184
|
);
|
|
4190
4185
|
}, [W]);
|
|
4191
4186
|
const te = Be(
|
|
4192
|
-
() => W.find((
|
|
4187
|
+
() => W.find((l) => l.date === B) ?? null,
|
|
4193
4188
|
[W, B]
|
|
4194
4189
|
), re = Be(() => {
|
|
4195
4190
|
if (!te) return [];
|
|
4196
|
-
const
|
|
4197
|
-
return eo.filter((
|
|
4191
|
+
const l = new Set(te.slots.map((h) => h.period));
|
|
4192
|
+
return eo.filter((h) => l.has(h));
|
|
4198
4193
|
}, [te]);
|
|
4199
4194
|
q(() => {
|
|
4200
4195
|
if (!re.length) {
|
|
@@ -4202,359 +4197,366 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4202
4197
|
return;
|
|
4203
4198
|
}
|
|
4204
4199
|
Q(
|
|
4205
|
-
(
|
|
4200
|
+
(l) => re.includes(l) ? l : re[0]
|
|
4206
4201
|
);
|
|
4207
4202
|
}, [re]);
|
|
4208
|
-
const ce = Be(() => te ? te.slots.filter((
|
|
4209
|
-
|
|
4210
|
-
const
|
|
4211
|
-
const
|
|
4212
|
-
if (!
|
|
4203
|
+
const ce = Be(() => te ? te.slots.filter((l) => l.period === $) : [], [te, $]);
|
|
4204
|
+
q(() => {
|
|
4205
|
+
const l = () => {
|
|
4206
|
+
const h = de.current, m = ue.current[B];
|
|
4207
|
+
if (!h || !m) {
|
|
4213
4208
|
xe(null);
|
|
4214
4209
|
return;
|
|
4215
4210
|
}
|
|
4216
|
-
const fe =
|
|
4211
|
+
const fe = h.getBoundingClientRect(), ie = m.getBoundingClientRect();
|
|
4217
4212
|
xe({
|
|
4218
|
-
left:
|
|
4219
|
-
top:
|
|
4220
|
-
width:
|
|
4221
|
-
height:
|
|
4213
|
+
left: ie.left - fe.left,
|
|
4214
|
+
top: ie.top - fe.top,
|
|
4215
|
+
width: ie.width,
|
|
4216
|
+
height: ie.height
|
|
4222
4217
|
});
|
|
4223
4218
|
};
|
|
4224
|
-
return
|
|
4219
|
+
return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
|
|
4225
4220
|
}, [B, W]), q(() => {
|
|
4226
|
-
const
|
|
4227
|
-
const
|
|
4228
|
-
if (!
|
|
4221
|
+
const l = () => {
|
|
4222
|
+
const h = ye.current, m = Ne.current[$];
|
|
4223
|
+
if (!h || !m) {
|
|
4229
4224
|
Z(null);
|
|
4230
4225
|
return;
|
|
4231
4226
|
}
|
|
4232
|
-
const fe =
|
|
4227
|
+
const fe = h.getBoundingClientRect(), ie = m.getBoundingClientRect();
|
|
4233
4228
|
Z({
|
|
4234
|
-
left:
|
|
4235
|
-
width:
|
|
4229
|
+
left: ie.left - fe.left,
|
|
4230
|
+
width: ie.width
|
|
4236
4231
|
});
|
|
4237
4232
|
};
|
|
4238
|
-
return
|
|
4233
|
+
return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
|
|
4239
4234
|
}, [$, re]), q(() => {
|
|
4240
4235
|
if (!ce.length) {
|
|
4241
4236
|
be(null);
|
|
4242
4237
|
return;
|
|
4243
4238
|
}
|
|
4244
|
-
if (!(E && ce.some((
|
|
4245
|
-
const
|
|
4246
|
-
|
|
4247
|
-
time: aa(
|
|
4248
|
-
gmt_offset: si(
|
|
4239
|
+
if (!(E && ce.some((h) => h.start === E.start))) {
|
|
4240
|
+
const h = ce[0];
|
|
4241
|
+
c?.trackConsultationTimeDefaultSelected?.({
|
|
4242
|
+
time: aa(h.start),
|
|
4243
|
+
gmt_offset: si(h.start),
|
|
4249
4244
|
status: C
|
|
4250
4245
|
});
|
|
4251
4246
|
}
|
|
4252
4247
|
be(
|
|
4253
|
-
(
|
|
4248
|
+
(h) => h && ce.some((m) => m.start === h.start) ? h : ce[0]
|
|
4254
4249
|
);
|
|
4255
4250
|
}, [ce]), q(() => {
|
|
4256
|
-
|
|
4257
|
-
astrologers_shown:
|
|
4251
|
+
W.length && !se.current && (c?.trackSlotScreenViewed?.({
|
|
4252
|
+
astrologers_shown: r.map((l) => l.name),
|
|
4258
4253
|
dates_available_count: W.length,
|
|
4259
4254
|
status: C
|
|
4260
|
-
}),
|
|
4261
|
-
}, [
|
|
4262
|
-
const je = !!E && (
|
|
4263
|
-
D(
|
|
4264
|
-
date:
|
|
4255
|
+
}), se.current = !0);
|
|
4256
|
+
}, [W, r, c, C]);
|
|
4257
|
+
const je = !!E && (!x || !!ee), pe = (l) => {
|
|
4258
|
+
D(l), c?.trackSlotDateSelected?.({
|
|
4259
|
+
date: l,
|
|
4265
4260
|
day_part_default: $,
|
|
4266
4261
|
status: C
|
|
4267
4262
|
});
|
|
4268
|
-
}, me = (
|
|
4269
|
-
Q(
|
|
4270
|
-
day_part:
|
|
4271
|
-
slots_available_count: te?.slots.filter((
|
|
4263
|
+
}, me = (l) => {
|
|
4264
|
+
Q(l), c?.trackDayPartSelected?.({
|
|
4265
|
+
day_part: l,
|
|
4266
|
+
slots_available_count: te?.slots.filter((h) => h.period === l).length ?? 0,
|
|
4272
4267
|
status: C
|
|
4273
4268
|
});
|
|
4274
|
-
}, Re = (
|
|
4275
|
-
be(
|
|
4269
|
+
}, Re = (l) => {
|
|
4270
|
+
be(l), c?.trackSlotSelected?.({
|
|
4276
4271
|
date: B,
|
|
4277
|
-
time: aa(
|
|
4278
|
-
day_part:
|
|
4272
|
+
time: aa(l.start),
|
|
4273
|
+
day_part: l.period,
|
|
4279
4274
|
topic: ee || null,
|
|
4280
4275
|
status: C
|
|
4281
4276
|
});
|
|
4282
4277
|
}, ve = () => {
|
|
4283
|
-
E && (
|
|
4278
|
+
E && (c?.trackSlotReservationRequested?.({
|
|
4284
4279
|
slot_datetime: `${E.start} - ${E.end}`,
|
|
4285
4280
|
status: C
|
|
4286
|
-
}),
|
|
4281
|
+
}), t({
|
|
4287
4282
|
start: E.start,
|
|
4288
4283
|
end: E.end,
|
|
4289
4284
|
period: E.period,
|
|
4290
4285
|
topic: ee,
|
|
4291
4286
|
language: S
|
|
4292
4287
|
}));
|
|
4293
|
-
}, _e = (
|
|
4294
|
-
ae(
|
|
4295
|
-
}, Te = (
|
|
4296
|
-
|
|
4288
|
+
}, _e = (l) => {
|
|
4289
|
+
ae(l), c?.trackGuidanceTopicSelected?.({ topic: l, status: C });
|
|
4290
|
+
}, Te = (l) => {
|
|
4291
|
+
c?.trackConsultationLanguageChanged?.({
|
|
4297
4292
|
previous_language: ta(S),
|
|
4298
|
-
new_language: ta(
|
|
4299
|
-
slots_available: La(w[
|
|
4293
|
+
new_language: ta(l),
|
|
4294
|
+
slots_available: La(w[l]) ? "yes" : "no",
|
|
4300
4295
|
status: C
|
|
4301
|
-
}), V(
|
|
4302
|
-
}, Pe = qe.find((
|
|
4303
|
-
return /* @__PURE__ */ e.
|
|
4304
|
-
"div",
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
"aria-label": d?.("planConsultationSlotTitle") ?? "Select consultation slot",
|
|
4310
|
-
children: /* @__PURE__ */ e.jsxs("div", { className: g.sheet, children: [
|
|
4311
|
-
/* @__PURE__ */ e.jsxs("div", { className: g.header, children: [
|
|
4312
|
-
/* @__PURE__ */ e.jsx(
|
|
4296
|
+
}), V(l), O(!1);
|
|
4297
|
+
}, Pe = qe.find((l) => l.code === S) ?? qe[0];
|
|
4298
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4299
|
+
/* @__PURE__ */ e.jsxs("div", { className: f.content, children: [
|
|
4300
|
+
/* @__PURE__ */ e.jsxs("div", { className: f.languageRow, children: [
|
|
4301
|
+
/* @__PURE__ */ e.jsx("span", { className: f.languageLabel, children: i?.("planConsultationLanguageLabel") ?? "Your consultation language" }),
|
|
4302
|
+
/* @__PURE__ */ e.jsxs("div", { className: f.languageDropdown, ref: N, children: [
|
|
4303
|
+
/* @__PURE__ */ e.jsxs(
|
|
4313
4304
|
"button",
|
|
4314
4305
|
{
|
|
4315
|
-
className: g.backBtn,
|
|
4316
|
-
onClick: n,
|
|
4317
|
-
"aria-label": "Go back",
|
|
4318
4306
|
type: "button",
|
|
4319
|
-
|
|
4307
|
+
className: f.languageDropdownBtn,
|
|
4308
|
+
onClick: () => O((l) => !l),
|
|
4309
|
+
"aria-haspopup": "listbox",
|
|
4310
|
+
"aria-expanded": j,
|
|
4311
|
+
children: [
|
|
4312
|
+
i?.(Pe.labelKey) ?? Pe.label,
|
|
4313
|
+
/* @__PURE__ */ e.jsx(Qr, {})
|
|
4314
|
+
]
|
|
4320
4315
|
}
|
|
4321
4316
|
),
|
|
4322
|
-
/* @__PURE__ */ e.jsx("
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4317
|
+
j && /* @__PURE__ */ e.jsx("ul", { className: f.languageMenu, role: "listbox", children: qe.map((l) => {
|
|
4318
|
+
const h = l.code === S;
|
|
4319
|
+
return /* @__PURE__ */ e.jsxs(
|
|
4320
|
+
"li",
|
|
4321
|
+
{
|
|
4322
|
+
role: "option",
|
|
4323
|
+
"aria-selected": h,
|
|
4324
|
+
className: [
|
|
4325
|
+
f.languageMenuItem,
|
|
4326
|
+
h ? f.languageMenuItemSelected : ""
|
|
4327
|
+
].filter(Boolean).join(" "),
|
|
4328
|
+
onClick: () => Te(l.code),
|
|
4329
|
+
children: [
|
|
4330
|
+
i?.(l.labelKey) ?? l.label,
|
|
4331
|
+
h && /* @__PURE__ */ e.jsx(Na, {})
|
|
4332
|
+
]
|
|
4333
|
+
},
|
|
4334
|
+
l.code
|
|
4335
|
+
);
|
|
4336
|
+
}) })
|
|
4337
|
+
] })
|
|
4338
|
+
] }),
|
|
4339
|
+
/* @__PURE__ */ e.jsx("hr", { className: f.languageDivider }),
|
|
4340
|
+
/* @__PURE__ */ e.jsx("p", { className: f.sectionHeading, children: i?.("planSelectSlotHeading") ?? "Book your preferred consultation slot" }),
|
|
4341
|
+
/* @__PURE__ */ e.jsxs("p", { className: f.reportReadyBanner, children: [
|
|
4342
|
+
i?.("planReportReadyPrefix") ?? "Your Report will be ready in",
|
|
4343
|
+
" ",
|
|
4344
|
+
/* @__PURE__ */ e.jsx("span", { className: f.reportReadyDuration, children: i?.("planReportReadyDuration") ?? "24-48 hours" }),
|
|
4345
|
+
" ",
|
|
4346
|
+
i?.("planReportReadySuffix") ?? "from today"
|
|
4347
|
+
] }),
|
|
4348
|
+
A && /* @__PURE__ */ e.jsxs("div", { className: f.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
|
|
4349
|
+
/* @__PURE__ */ e.jsx("div", { className: f.skeletonDateTabs, children: Array.from({ length: 5 }).map((l, h) => /* @__PURE__ */ e.jsx(
|
|
4350
|
+
"div",
|
|
4351
|
+
{
|
|
4352
|
+
className: [f.skeletonDateTab, f.skeletonShimmer].join(" ")
|
|
4353
|
+
},
|
|
4354
|
+
h
|
|
4355
|
+
)) }),
|
|
4356
|
+
/* @__PURE__ */ e.jsx("div", { className: f.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((l, h) => /* @__PURE__ */ e.jsx(
|
|
4357
|
+
"div",
|
|
4358
|
+
{
|
|
4359
|
+
className: [f.skeletonPeriodTab, f.skeletonShimmer].join(" ")
|
|
4360
|
+
},
|
|
4361
|
+
h
|
|
4362
|
+
)) }),
|
|
4363
|
+
/* @__PURE__ */ e.jsx("div", { className: f.skeletonTimeGrid, children: Array.from({ length: 6 }).map((l, h) => /* @__PURE__ */ e.jsx(
|
|
4364
|
+
"div",
|
|
4365
|
+
{
|
|
4366
|
+
className: [f.skeletonTimeSlot, f.skeletonShimmer].join(" ")
|
|
4367
|
+
},
|
|
4368
|
+
h
|
|
4369
|
+
)) })
|
|
4370
|
+
] }),
|
|
4371
|
+
!A && v && /* @__PURE__ */ e.jsxs("div", { className: f.stateMessage, children: [
|
|
4372
|
+
i?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
4373
|
+
/* @__PURE__ */ e.jsx("button", { type: "button", className: f.retryBtn, onClick: ge, children: i?.("planRetry") ?? "Retry" })
|
|
4374
|
+
] }),
|
|
4375
|
+
!A && !v && W.length === 0 && /* @__PURE__ */ e.jsxs("div", { className: f.emptyState, children: [
|
|
4376
|
+
/* @__PURE__ */ e.jsx("span", { className: f.emptyStateIcon, children: /* @__PURE__ */ e.jsx(tn, {}) }),
|
|
4377
|
+
/* @__PURE__ */ e.jsx("p", { className: f.emptyStateTitle, children: i?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
|
|
4378
|
+
/* @__PURE__ */ e.jsx("p", { className: f.emptyStateSubtitle, children: i?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
|
|
4379
|
+
] }),
|
|
4380
|
+
!A && !v && W.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4381
|
+
/* @__PURE__ */ e.jsxs("div", { className: f.dateTabs, ref: de, role: "radiogroup", "aria-label": "Consultation date", children: [
|
|
4382
|
+
X && /* @__PURE__ */ e.jsx(
|
|
4383
|
+
"span",
|
|
4384
|
+
{
|
|
4385
|
+
className: f.dateTabIndicator,
|
|
4386
|
+
style: {
|
|
4387
|
+
transform: `translate(${X.left}px, ${X.top}px)`,
|
|
4388
|
+
width: X.width,
|
|
4389
|
+
height: X.height
|
|
4390
|
+
},
|
|
4391
|
+
"aria-hidden": "true"
|
|
4392
|
+
}
|
|
4393
|
+
),
|
|
4394
|
+
W.map((l) => {
|
|
4395
|
+
const h = l.date === B, { dayLabel: m, dayNum: fe } = Zn(l.date);
|
|
4396
|
+
return /* @__PURE__ */ e.jsxs(Va, { children: [
|
|
4328
4397
|
/* @__PURE__ */ e.jsxs(
|
|
4329
4398
|
"button",
|
|
4330
4399
|
{
|
|
4331
4400
|
type: "button",
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4401
|
+
ref: (ie) => {
|
|
4402
|
+
ue.current[l.date] = ie;
|
|
4403
|
+
},
|
|
4404
|
+
className: [
|
|
4405
|
+
f.dateTab,
|
|
4406
|
+
h ? f.dateTabSelected : ""
|
|
4407
|
+
].filter(Boolean).join(" "),
|
|
4408
|
+
role: "radio",
|
|
4409
|
+
"aria-checked": h,
|
|
4410
|
+
onClick: () => pe(l.date),
|
|
4336
4411
|
children: [
|
|
4337
|
-
|
|
4338
|
-
/* @__PURE__ */ e.jsx(
|
|
4412
|
+
/* @__PURE__ */ e.jsx("span", { className: f.dateTabLabel, children: i?.(m) ?? m }),
|
|
4413
|
+
/* @__PURE__ */ e.jsx("span", { className: f.dateTabNum, children: fe })
|
|
4339
4414
|
]
|
|
4340
4415
|
}
|
|
4341
4416
|
),
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
children: [
|
|
4355
|
-
d?.(i.labelKey) ?? i.label,
|
|
4356
|
-
b && /* @__PURE__ */ e.jsx(Na, {})
|
|
4357
|
-
]
|
|
4358
|
-
},
|
|
4359
|
-
i.code
|
|
4360
|
-
);
|
|
4361
|
-
}) })
|
|
4362
|
-
] })
|
|
4363
|
-
] }),
|
|
4364
|
-
/* @__PURE__ */ e.jsx("hr", { className: g.languageDivider }),
|
|
4365
|
-
/* @__PURE__ */ e.jsx("p", { className: g.sectionHeading, children: d?.("planSelectSlotHeading") ?? "Book your preferred consultation slot" }),
|
|
4366
|
-
/* @__PURE__ */ e.jsxs("p", { className: g.reportReadyBanner, children: [
|
|
4367
|
-
d?.("planReportReadyPrefix") ?? "Your Report will be ready in",
|
|
4368
|
-
" ",
|
|
4369
|
-
/* @__PURE__ */ e.jsx("span", { className: g.reportReadyDuration, children: d?.("planReportReadyDuration") ?? "24-48 hours" }),
|
|
4370
|
-
" ",
|
|
4371
|
-
d?.("planReportReadySuffix") ?? "from today"
|
|
4372
|
-
] }),
|
|
4373
|
-
A && /* @__PURE__ */ e.jsxs("div", { className: g.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
|
|
4374
|
-
/* @__PURE__ */ e.jsx("div", { className: g.skeletonDateTabs, children: Array.from({ length: 5 }).map((i, b) => /* @__PURE__ */ e.jsx(
|
|
4375
|
-
"div",
|
|
4376
|
-
{
|
|
4377
|
-
className: [g.skeletonDateTab, g.skeletonShimmer].join(" ")
|
|
4378
|
-
},
|
|
4379
|
-
b
|
|
4380
|
-
)) }),
|
|
4381
|
-
/* @__PURE__ */ e.jsx("div", { className: g.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((i, b) => /* @__PURE__ */ e.jsx(
|
|
4382
|
-
"div",
|
|
4383
|
-
{
|
|
4384
|
-
className: [g.skeletonPeriodTab, g.skeletonShimmer].join(" ")
|
|
4385
|
-
},
|
|
4386
|
-
b
|
|
4387
|
-
)) }),
|
|
4388
|
-
/* @__PURE__ */ e.jsx("div", { className: g.skeletonTimeGrid, children: Array.from({ length: 6 }).map((i, b) => /* @__PURE__ */ e.jsx(
|
|
4389
|
-
"div",
|
|
4390
|
-
{
|
|
4391
|
-
className: [g.skeletonTimeSlot, g.skeletonShimmer].join(" ")
|
|
4417
|
+
/* @__PURE__ */ e.jsx("span", { className: f.dateTabDivider, "aria-hidden": !0 })
|
|
4418
|
+
] }, l.date);
|
|
4419
|
+
})
|
|
4420
|
+
] }),
|
|
4421
|
+
/* @__PURE__ */ e.jsxs("div", { className: f.periodTabs, ref: ye, role: "tablist", "aria-label": "Time of day", children: [
|
|
4422
|
+
he && /* @__PURE__ */ e.jsx(
|
|
4423
|
+
"span",
|
|
4424
|
+
{
|
|
4425
|
+
className: f.periodTabIndicator,
|
|
4426
|
+
style: {
|
|
4427
|
+
transform: `translateX(${he.left}px)`,
|
|
4428
|
+
width: he.width
|
|
4392
4429
|
},
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
/* @__PURE__ */ e.
|
|
4399
|
-
|
|
4400
|
-
!A && !v && W.length === 0 && /* @__PURE__ */ e.jsxs("div", { className: g.emptyState, children: [
|
|
4401
|
-
/* @__PURE__ */ e.jsx("span", { className: g.emptyStateIcon, children: /* @__PURE__ */ e.jsx(tn, {}) }),
|
|
4402
|
-
/* @__PURE__ */ e.jsx("p", { className: g.emptyStateTitle, children: d?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
|
|
4403
|
-
/* @__PURE__ */ e.jsx("p", { className: g.emptyStateSubtitle, children: d?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
|
|
4404
|
-
] }),
|
|
4405
|
-
!A && !v && W.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4406
|
-
/* @__PURE__ */ e.jsxs("div", { className: g.dateTabs, ref: de, role: "radiogroup", "aria-label": "Consultation date", children: [
|
|
4407
|
-
X && /* @__PURE__ */ e.jsx(
|
|
4408
|
-
"span",
|
|
4409
|
-
{
|
|
4410
|
-
className: g.dateTabIndicator,
|
|
4411
|
-
style: {
|
|
4412
|
-
transform: `translate(${X.left}px, ${X.top}px)`,
|
|
4413
|
-
width: X.width,
|
|
4414
|
-
height: X.height
|
|
4415
|
-
},
|
|
4416
|
-
"aria-hidden": "true"
|
|
4417
|
-
}
|
|
4418
|
-
),
|
|
4419
|
-
W.map((i) => {
|
|
4420
|
-
const b = i.date === B, { dayLabel: f, dayNum: fe } = Zn(i.date);
|
|
4421
|
-
return /* @__PURE__ */ e.jsxs(Va, { children: [
|
|
4422
|
-
/* @__PURE__ */ e.jsxs(
|
|
4423
|
-
"button",
|
|
4424
|
-
{
|
|
4425
|
-
type: "button",
|
|
4426
|
-
ref: (le) => {
|
|
4427
|
-
ue.current[i.date] = le;
|
|
4428
|
-
},
|
|
4429
|
-
className: [
|
|
4430
|
-
g.dateTab,
|
|
4431
|
-
b ? g.dateTabSelected : ""
|
|
4432
|
-
].filter(Boolean).join(" "),
|
|
4433
|
-
role: "radio",
|
|
4434
|
-
"aria-checked": b,
|
|
4435
|
-
onClick: () => pe(i.date),
|
|
4436
|
-
children: [
|
|
4437
|
-
/* @__PURE__ */ e.jsx("span", { className: g.dateTabLabel, children: d?.(f) ?? f }),
|
|
4438
|
-
/* @__PURE__ */ e.jsx("span", { className: g.dateTabNum, children: fe })
|
|
4439
|
-
]
|
|
4440
|
-
}
|
|
4441
|
-
),
|
|
4442
|
-
/* @__PURE__ */ e.jsx("span", { className: g.dateTabDivider, "aria-hidden": !0 })
|
|
4443
|
-
] }, i.date);
|
|
4444
|
-
})
|
|
4445
|
-
] }),
|
|
4446
|
-
/* @__PURE__ */ e.jsxs("div", { className: g.periodTabs, ref: ye, role: "tablist", "aria-label": "Time of day", children: [
|
|
4447
|
-
he && /* @__PURE__ */ e.jsx(
|
|
4448
|
-
"span",
|
|
4449
|
-
{
|
|
4450
|
-
className: g.periodTabIndicator,
|
|
4451
|
-
style: {
|
|
4452
|
-
transform: `translateX(${he.left}px)`,
|
|
4453
|
-
width: he.width
|
|
4454
|
-
},
|
|
4455
|
-
"aria-hidden": "true"
|
|
4456
|
-
}
|
|
4457
|
-
),
|
|
4458
|
-
re.map((i) => {
|
|
4459
|
-
const b = ii[i], f = i === "evening" && R ? "planPeriodEveningNight" : li[i];
|
|
4460
|
-
return /* @__PURE__ */ e.jsxs(
|
|
4461
|
-
"button",
|
|
4462
|
-
{
|
|
4463
|
-
ref: (fe) => {
|
|
4464
|
-
Ne.current[i] = fe;
|
|
4465
|
-
},
|
|
4466
|
-
type: "button",
|
|
4467
|
-
className: [
|
|
4468
|
-
g.periodTab,
|
|
4469
|
-
i === $ ? g.periodTabSelected : ""
|
|
4470
|
-
].filter(Boolean).join(" "),
|
|
4471
|
-
role: "tab",
|
|
4472
|
-
"aria-selected": i === $,
|
|
4473
|
-
onClick: () => me(i),
|
|
4474
|
-
children: [
|
|
4475
|
-
/* @__PURE__ */ e.jsx(b, {}),
|
|
4476
|
-
d?.(f) ?? (i === "evening" && R ? "Evening/Night" : i.charAt(0).toUpperCase() + i.slice(1))
|
|
4477
|
-
]
|
|
4478
|
-
},
|
|
4479
|
-
i
|
|
4480
|
-
);
|
|
4481
|
-
})
|
|
4482
|
-
] }),
|
|
4483
|
-
/* @__PURE__ */ e.jsx(
|
|
4484
|
-
"div",
|
|
4430
|
+
"aria-hidden": "true"
|
|
4431
|
+
}
|
|
4432
|
+
),
|
|
4433
|
+
re.map((l) => {
|
|
4434
|
+
const h = ii[l], m = l === "evening" && R ? "planPeriodEveningNight" : li[l];
|
|
4435
|
+
return /* @__PURE__ */ e.jsxs(
|
|
4436
|
+
"button",
|
|
4485
4437
|
{
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
},
|
|
4502
|
-
`${i.start}-${b}`
|
|
4503
|
-
))
|
|
4438
|
+
ref: (fe) => {
|
|
4439
|
+
Ne.current[l] = fe;
|
|
4440
|
+
},
|
|
4441
|
+
type: "button",
|
|
4442
|
+
className: [
|
|
4443
|
+
f.periodTab,
|
|
4444
|
+
l === $ ? f.periodTabSelected : ""
|
|
4445
|
+
].filter(Boolean).join(" "),
|
|
4446
|
+
role: "tab",
|
|
4447
|
+
"aria-selected": l === $,
|
|
4448
|
+
onClick: () => me(l),
|
|
4449
|
+
children: [
|
|
4450
|
+
/* @__PURE__ */ e.jsx(h, {}),
|
|
4451
|
+
i?.(m) ?? (l === "evening" && R ? "Evening/Night" : l.charAt(0).toUpperCase() + l.slice(1))
|
|
4452
|
+
]
|
|
4504
4453
|
},
|
|
4505
|
-
|
|
4506
|
-
)
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4454
|
+
l
|
|
4455
|
+
);
|
|
4456
|
+
})
|
|
4457
|
+
] }),
|
|
4458
|
+
/* @__PURE__ */ e.jsx(
|
|
4459
|
+
"div",
|
|
4460
|
+
{
|
|
4461
|
+
className: f.timeGrid,
|
|
4462
|
+
role: "radiogroup",
|
|
4463
|
+
"aria-label": "Consultation time",
|
|
4464
|
+
children: ce.map((l, h) => /* @__PURE__ */ e.jsx(
|
|
4511
4465
|
"button",
|
|
4512
4466
|
{
|
|
4513
4467
|
type: "button",
|
|
4514
4468
|
className: [
|
|
4515
|
-
|
|
4516
|
-
|
|
4469
|
+
f.timeSlot,
|
|
4470
|
+
E?.start === l.start ? f.timeSlotSelected : ""
|
|
4517
4471
|
].filter(Boolean).join(" "),
|
|
4518
4472
|
role: "radio",
|
|
4519
|
-
"aria-checked":
|
|
4520
|
-
onClick: () =>
|
|
4521
|
-
children:
|
|
4473
|
+
"aria-checked": E?.start === l.start,
|
|
4474
|
+
onClick: () => Re(l),
|
|
4475
|
+
children: aa(l.start)
|
|
4522
4476
|
},
|
|
4523
|
-
|
|
4524
|
-
))
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
type: "button",
|
|
4547
|
-
className: [g.proceedBtn, je ? "" : g.proceedBtnDisabled].filter(Boolean).join(" "),
|
|
4548
|
-
disabled: !je,
|
|
4549
|
-
onClick: ve,
|
|
4550
|
-
children: P ? d?.("planBookSlot") ?? "Book Slot" : d?.("planProceedToPayment") ?? "Proceed to payment"
|
|
4551
|
-
}
|
|
4552
|
-
)
|
|
4553
|
-
] })
|
|
4477
|
+
`${l.start}-${h}`
|
|
4478
|
+
))
|
|
4479
|
+
},
|
|
4480
|
+
`${B}-${$}`
|
|
4481
|
+
)
|
|
4482
|
+
] }),
|
|
4483
|
+
x && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4484
|
+
/* @__PURE__ */ e.jsx("p", { className: f.sectionHeading, children: i?.("planGuidanceHeading") ?? "What would you like guidance on?" }),
|
|
4485
|
+
/* @__PURE__ */ e.jsx("div", { className: f.topicGrid, role: "radiogroup", "aria-label": "Guidance topic", children: ao.map((l) => /* @__PURE__ */ e.jsx(
|
|
4486
|
+
"button",
|
|
4487
|
+
{
|
|
4488
|
+
type: "button",
|
|
4489
|
+
className: [
|
|
4490
|
+
f.topicChip,
|
|
4491
|
+
ee === l.id ? f.topicChipSelected : ""
|
|
4492
|
+
].filter(Boolean).join(" "),
|
|
4493
|
+
role: "radio",
|
|
4494
|
+
"aria-checked": ee === l.id,
|
|
4495
|
+
onClick: () => _e(l.id),
|
|
4496
|
+
children: i?.(l.labelKey) ?? l.label
|
|
4497
|
+
},
|
|
4498
|
+
l.id
|
|
4499
|
+
)) })
|
|
4554
4500
|
] })
|
|
4555
|
-
}
|
|
4556
|
-
|
|
4557
|
-
|
|
4501
|
+
] }),
|
|
4502
|
+
/* @__PURE__ */ e.jsxs("div", { className: f.footer, children: [
|
|
4503
|
+
/* @__PURE__ */ e.jsxs("div", { className: f.trustRow, children: [
|
|
4504
|
+
/* @__PURE__ */ e.jsx("div", { className: f.trustAvatars, "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
4505
|
+
Y,
|
|
4506
|
+
{
|
|
4507
|
+
src: "https://srm-cdn.a4b.io/yoda/1785317712031.svg",
|
|
4508
|
+
alt: "",
|
|
4509
|
+
width: 64,
|
|
4510
|
+
height: 28,
|
|
4511
|
+
priority: !0,
|
|
4512
|
+
fetchPriority: "high",
|
|
4513
|
+
loading: "eager"
|
|
4514
|
+
}
|
|
4515
|
+
) }),
|
|
4516
|
+
/* @__PURE__ */ e.jsx("span", { className: f.trustText, children: i?.("planConsultationTrustLabel") ?? "3,750+ people have booked consultation" })
|
|
4517
|
+
] }),
|
|
4518
|
+
/* @__PURE__ */ e.jsx(
|
|
4519
|
+
"button",
|
|
4520
|
+
{
|
|
4521
|
+
type: "button",
|
|
4522
|
+
className: [f.proceedBtn, je ? "" : f.proceedBtnDisabled].filter(Boolean).join(" "),
|
|
4523
|
+
disabled: !je,
|
|
4524
|
+
onClick: ve,
|
|
4525
|
+
children: y ? i?.("planBookSlot") ?? "Book Slot" : i?.("planProceedToPayment") ?? "Proceed to payment"
|
|
4526
|
+
}
|
|
4527
|
+
)
|
|
4528
|
+
] })
|
|
4529
|
+
] });
|
|
4530
|
+
}, di = ({
|
|
4531
|
+
isOpen: t,
|
|
4532
|
+
onClose: r,
|
|
4533
|
+
t: i,
|
|
4534
|
+
...c
|
|
4535
|
+
}) => t ? /* @__PURE__ */ e.jsx(
|
|
4536
|
+
"div",
|
|
4537
|
+
{
|
|
4538
|
+
className: f.overlay,
|
|
4539
|
+
role: "dialog",
|
|
4540
|
+
"aria-modal": "true",
|
|
4541
|
+
"aria-label": i?.("planConsultationSlotTitle") ?? "Select consultation slot",
|
|
4542
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: f.sheet, children: [
|
|
4543
|
+
/* @__PURE__ */ e.jsxs("div", { className: f.header, children: [
|
|
4544
|
+
/* @__PURE__ */ e.jsx(
|
|
4545
|
+
"button",
|
|
4546
|
+
{
|
|
4547
|
+
className: f.backBtn,
|
|
4548
|
+
onClick: r,
|
|
4549
|
+
"aria-label": "Go back",
|
|
4550
|
+
type: "button",
|
|
4551
|
+
children: /* @__PURE__ */ e.jsx(sa, {})
|
|
4552
|
+
}
|
|
4553
|
+
),
|
|
4554
|
+
/* @__PURE__ */ e.jsx("h2", { className: f.title, children: i?.("planConsultationSlotTitle") ?? "Select consultation slot" })
|
|
4555
|
+
] }),
|
|
4556
|
+
/* @__PURE__ */ e.jsx(ci, { t: i, ...c })
|
|
4557
|
+
] })
|
|
4558
|
+
}
|
|
4559
|
+
) : null, ui = [
|
|
4558
4560
|
{
|
|
4559
4561
|
id: "jyoti",
|
|
4560
4562
|
name: "planAstrologerNameJyoti",
|
|
@@ -4582,7 +4584,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4582
4584
|
experience: "planAstrologerExpNeeraj",
|
|
4583
4585
|
certifications: ["planAstrologerCertBhuCertified", "planAstrologerCertMantraRudraksha"]
|
|
4584
4586
|
}
|
|
4585
|
-
],
|
|
4587
|
+
], pi = (t) => [
|
|
4586
4588
|
{
|
|
4587
4589
|
id: "kundli-report",
|
|
4588
4590
|
title: "planNameBasic",
|
|
@@ -4608,37 +4610,37 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4608
4610
|
{ text: "planFeatureRealTimeAnswers", included: !0 },
|
|
4609
4611
|
{ text: "planFeatureTailoredRemedies", included: !0 }
|
|
4610
4612
|
],
|
|
4611
|
-
astrologers:
|
|
4612
|
-
(
|
|
4613
|
+
astrologers: ui.filter(
|
|
4614
|
+
(r) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(r.id)
|
|
4613
4615
|
)
|
|
4614
4616
|
}
|
|
4615
|
-
],
|
|
4617
|
+
], mi = ({
|
|
4616
4618
|
isOpen: t,
|
|
4617
|
-
onClose:
|
|
4618
|
-
selectedPlan:
|
|
4619
|
-
onSelectPlan:
|
|
4620
|
-
plans:
|
|
4621
|
-
onProceed:
|
|
4622
|
-
t:
|
|
4623
|
-
analytics:
|
|
4624
|
-
enableConsultationScheduling:
|
|
4619
|
+
onClose: r,
|
|
4620
|
+
selectedPlan: i,
|
|
4621
|
+
onSelectPlan: c,
|
|
4622
|
+
plans: _,
|
|
4623
|
+
onProceed: y,
|
|
4624
|
+
t: g,
|
|
4625
|
+
analytics: x,
|
|
4626
|
+
enableConsultationScheduling: b
|
|
4625
4627
|
}) => {
|
|
4626
|
-
const Y = Ie(), M = Y?.config.isGlobal ?? !0, R =
|
|
4628
|
+
const Y = Ie(), M = Y?.config.isGlobal ?? !0, R = b ?? Y?.config.enableConsultationScheduling ?? !1, p = _ ?? pi(M), C = i?.id || p.find((S) => S.badge)?.id || p[0]?.id || "", A = U(null), z = U(null), v = U(!1), [k, w] = I(!1);
|
|
4627
4629
|
q(() => {
|
|
4628
4630
|
if (t) {
|
|
4629
|
-
if (!
|
|
4630
|
-
const S =
|
|
4631
|
-
S &&
|
|
4631
|
+
if (!i) {
|
|
4632
|
+
const S = p.find((V) => V.badge) ?? p[0];
|
|
4633
|
+
S && c(S);
|
|
4632
4634
|
}
|
|
4633
|
-
v.current || (
|
|
4634
|
-
plans_shown:
|
|
4635
|
-
default_selected_plan:
|
|
4635
|
+
v.current || (x?.trackPlanPageViewed?.(), R && x?.trackPlanScreenViewed?.({
|
|
4636
|
+
plans_shown: p.map((S) => S.id),
|
|
4637
|
+
default_selected_plan: i?.id || p.find((S) => S.badge)?.id || p[0]?.id || ""
|
|
4636
4638
|
}), v.current = !0);
|
|
4637
4639
|
} else
|
|
4638
4640
|
v.current = !1;
|
|
4639
|
-
}, [t,
|
|
4641
|
+
}, [t, p, i, c, x]);
|
|
4640
4642
|
const oe = () => {
|
|
4641
|
-
|
|
4643
|
+
x?.trackPlanPageClosed?.(), r();
|
|
4642
4644
|
};
|
|
4643
4645
|
return q(() => {
|
|
4644
4646
|
if (!t) return;
|
|
@@ -4649,33 +4651,33 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4649
4651
|
}, [t]), t ? /* @__PURE__ */ e.jsxs(
|
|
4650
4652
|
"div",
|
|
4651
4653
|
{
|
|
4652
|
-
className:
|
|
4654
|
+
className: P.overlay,
|
|
4653
4655
|
role: "dialog",
|
|
4654
4656
|
"aria-modal": "true",
|
|
4655
|
-
"aria-label":
|
|
4657
|
+
"aria-label": g?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
4656
4658
|
children: [
|
|
4657
4659
|
/* @__PURE__ */ e.jsxs(
|
|
4658
4660
|
"div",
|
|
4659
4661
|
{
|
|
4660
4662
|
ref: A,
|
|
4661
|
-
className: R ?
|
|
4663
|
+
className: R ? P.sheetFullScreen : P.sheet,
|
|
4662
4664
|
children: [
|
|
4663
|
-
R ? /* @__PURE__ */ e.jsxs("div", { className:
|
|
4665
|
+
R ? /* @__PURE__ */ e.jsxs("div", { className: P.headerFull, children: [
|
|
4664
4666
|
/* @__PURE__ */ e.jsx(
|
|
4665
4667
|
"button",
|
|
4666
4668
|
{
|
|
4667
|
-
className:
|
|
4669
|
+
className: P.backBtn,
|
|
4668
4670
|
onClick: oe,
|
|
4669
4671
|
"aria-label": "Go back",
|
|
4670
4672
|
type: "button",
|
|
4671
4673
|
children: /* @__PURE__ */ e.jsx(sa, {})
|
|
4672
4674
|
}
|
|
4673
4675
|
),
|
|
4674
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
4676
|
+
/* @__PURE__ */ e.jsx("h2", { className: P.titleFull, children: g?.("planSheetTitle") ?? "Choose Your Kundli Plan" })
|
|
4675
4677
|
] }) : /* @__PURE__ */ e.jsx(
|
|
4676
4678
|
Vn,
|
|
4677
4679
|
{
|
|
4678
|
-
title:
|
|
4680
|
+
title: g?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
4679
4681
|
onBack: oe
|
|
4680
4682
|
}
|
|
4681
4683
|
),
|
|
@@ -4683,86 +4685,86 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4683
4685
|
"div",
|
|
4684
4686
|
{
|
|
4685
4687
|
ref: z,
|
|
4686
|
-
className:
|
|
4688
|
+
className: P.plansContainer,
|
|
4687
4689
|
role: "radiogroup",
|
|
4688
4690
|
"aria-label": "Kundli plans",
|
|
4689
|
-
children:
|
|
4691
|
+
children: p.map((S) => /* @__PURE__ */ e.jsx(
|
|
4690
4692
|
Xn,
|
|
4691
4693
|
{
|
|
4692
4694
|
plan: S,
|
|
4693
4695
|
isSelected: S.id === C,
|
|
4694
|
-
t:
|
|
4696
|
+
t: g,
|
|
4695
4697
|
onSelect: (V) => {
|
|
4696
|
-
const j =
|
|
4697
|
-
j && (
|
|
4698
|
+
const j = p.find((O) => O.id === V);
|
|
4699
|
+
j && (x?.trackPlanSelected?.({
|
|
4698
4700
|
planId: j.id,
|
|
4699
4701
|
planName: j.title,
|
|
4700
4702
|
...R ? {
|
|
4701
4703
|
price: j.price,
|
|
4702
4704
|
includes_consultation: !!(j.astrologers && j.astrologers.length > 0),
|
|
4703
|
-
cta_label: j.astrologers && j.astrologers.length > 0 ?
|
|
4705
|
+
cta_label: j.astrologers && j.astrologers.length > 0 ? g?.("planSelectConsultationSlot") ?? "Select consultation slot →" : g?.("planProceedToPayment") ?? "Proceed to Payment"
|
|
4704
4706
|
} : {}
|
|
4705
|
-
}),
|
|
4707
|
+
}), c(j));
|
|
4706
4708
|
}
|
|
4707
4709
|
},
|
|
4708
4710
|
S.id
|
|
4709
4711
|
))
|
|
4710
4712
|
}
|
|
4711
4713
|
),
|
|
4712
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
4714
|
+
/* @__PURE__ */ e.jsx("div", { className: P.footer, children: /* @__PURE__ */ e.jsx(
|
|
4713
4715
|
"button",
|
|
4714
4716
|
{
|
|
4715
|
-
className:
|
|
4716
|
-
disabled: !
|
|
4717
|
+
className: P.proceedBtn,
|
|
4718
|
+
disabled: !i,
|
|
4717
4719
|
onClick: () => {
|
|
4718
|
-
if (
|
|
4719
|
-
if (R &&
|
|
4720
|
-
|
|
4721
|
-
planId:
|
|
4722
|
-
planName:
|
|
4723
|
-
}),
|
|
4724
|
-
planId:
|
|
4725
|
-
planName:
|
|
4720
|
+
if (i) {
|
|
4721
|
+
if (R && i.astrologers && i.astrologers.length > 0) {
|
|
4722
|
+
x?.trackSelectConsultationSlotClicked?.({
|
|
4723
|
+
planId: i.id,
|
|
4724
|
+
planName: i.title
|
|
4725
|
+
}), x?.trackPlanProceedClicked?.({
|
|
4726
|
+
planId: i.id,
|
|
4727
|
+
planName: i.title,
|
|
4726
4728
|
cta_type: "confirm_consultation_slot",
|
|
4727
4729
|
next_step: "slot_selection"
|
|
4728
4730
|
}), w(!0);
|
|
4729
4731
|
return;
|
|
4730
4732
|
}
|
|
4731
|
-
|
|
4732
|
-
planId:
|
|
4733
|
-
planName:
|
|
4733
|
+
x?.trackPlanProceedClicked?.({
|
|
4734
|
+
planId: i.id,
|
|
4735
|
+
planName: i.title,
|
|
4734
4736
|
...R ? { cta_type: "proceed", next_step: "payment" } : {}
|
|
4735
|
-
}),
|
|
4737
|
+
}), y(i), r();
|
|
4736
4738
|
}
|
|
4737
4739
|
},
|
|
4738
|
-
children:
|
|
4740
|
+
children: i ? R && i.astrologers && i.astrologers.length > 0 ? g?.("planSelectConsultationSlot") ?? "Select consultation slot →" : g?.("planProceedToPayment") ?? i.price + "Proceed to Payment" : "Select a plan"
|
|
4739
4741
|
}
|
|
4740
4742
|
) })
|
|
4741
4743
|
]
|
|
4742
4744
|
}
|
|
4743
4745
|
),
|
|
4744
|
-
R &&
|
|
4745
|
-
|
|
4746
|
+
R && i?.astrologers && i.astrologers.length > 0 && /* @__PURE__ */ e.jsx(
|
|
4747
|
+
di,
|
|
4746
4748
|
{
|
|
4747
|
-
isOpen:
|
|
4749
|
+
isOpen: k,
|
|
4748
4750
|
onClose: () => w(!1),
|
|
4749
|
-
astrologers:
|
|
4750
|
-
t:
|
|
4751
|
-
analytics:
|
|
4751
|
+
astrologers: i.astrologers,
|
|
4752
|
+
t: g,
|
|
4753
|
+
analytics: x,
|
|
4752
4754
|
onProceed: (S) => {
|
|
4753
|
-
|
|
4754
|
-
planId:
|
|
4755
|
-
planName:
|
|
4755
|
+
x?.trackPlanProceedClicked?.({
|
|
4756
|
+
planId: i.id,
|
|
4757
|
+
planName: i.title,
|
|
4756
4758
|
cta_type: "proceed",
|
|
4757
4759
|
next_step: "payment"
|
|
4758
|
-
}),
|
|
4760
|
+
}), y(i, S), w(!1), r();
|
|
4759
4761
|
}
|
|
4760
4762
|
}
|
|
4761
4763
|
)
|
|
4762
4764
|
]
|
|
4763
4765
|
}
|
|
4764
4766
|
) : null;
|
|
4765
|
-
},
|
|
4767
|
+
}, fi = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", hi = (t, r) => xa[t]?.[r] ?? r, gi = (t, r) => t && ra.includes(t) ? t : r ? "+1" : "+91", bi = {
|
|
4766
4768
|
fullName: "",
|
|
4767
4769
|
phone: "",
|
|
4768
4770
|
phoneCountryCode: "",
|
|
@@ -4773,48 +4775,48 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4773
4775
|
birthTime: "",
|
|
4774
4776
|
birthTimeUnknown: !1,
|
|
4775
4777
|
birthPlace: ""
|
|
4776
|
-
},
|
|
4778
|
+
}, xi = ({
|
|
4777
4779
|
className: t = "",
|
|
4778
|
-
locale:
|
|
4779
|
-
showLanguageSelector:
|
|
4780
|
-
onBack:
|
|
4781
|
-
initialValues:
|
|
4782
|
-
onProceed:
|
|
4783
|
-
onProceedGuidance:
|
|
4784
|
-
proceedHref:
|
|
4785
|
-
originalPriceLabel:
|
|
4780
|
+
locale: r,
|
|
4781
|
+
showLanguageSelector: i = !0,
|
|
4782
|
+
onBack: c,
|
|
4783
|
+
initialValues: _,
|
|
4784
|
+
onProceed: y,
|
|
4785
|
+
onProceedGuidance: g,
|
|
4786
|
+
proceedHref: x,
|
|
4787
|
+
originalPriceLabel: b,
|
|
4786
4788
|
discountedPriceLabel: Y,
|
|
4787
4789
|
googleMapsApiKey: M = "",
|
|
4788
4790
|
atlasSearchLocalities: R,
|
|
4789
|
-
googleMapsAutocompleteEnabled:
|
|
4791
|
+
googleMapsAutocompleteEnabled: p,
|
|
4790
4792
|
analytics: C
|
|
4791
4793
|
}) => {
|
|
4792
|
-
const A = Ie(), z = yt(), v = A !== null,
|
|
4793
|
-
|
|
4794
|
+
const A = Ie(), z = yt(), v = A !== null, k = v ? A.locale : r, w = k ?? z?.locale ?? "en", [oe, S] = I(w), V = v ? A.locale : oe, j = v ? A.setLocale : S, [O, N] = I(!1), G = U(null), ee = U(
|
|
4795
|
+
k
|
|
4794
4796
|
), ae = U(
|
|
4795
4797
|
z?.locale
|
|
4796
4798
|
);
|
|
4797
4799
|
q(() => {
|
|
4798
4800
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
4799
4801
|
}, []);
|
|
4800
|
-
const B = (
|
|
4802
|
+
const B = (m) => hi(V, m);
|
|
4801
4803
|
q(() => {
|
|
4802
|
-
|
|
4803
|
-
}, [
|
|
4804
|
-
if (
|
|
4805
|
-
const
|
|
4806
|
-
|
|
4807
|
-
}, [z?.locale,
|
|
4804
|
+
k && ee.current !== k && j(k), ee.current = k;
|
|
4805
|
+
}, [k, j]), q(() => {
|
|
4806
|
+
if (k) return;
|
|
4807
|
+
const m = z?.locale;
|
|
4808
|
+
m && ae.current !== m && j(m), ae.current = m;
|
|
4809
|
+
}, [z?.locale, k, j]);
|
|
4808
4810
|
const [D, $] = I({
|
|
4809
|
-
...
|
|
4810
|
-
...
|
|
4811
|
-
phone:
|
|
4812
|
-
}), Q = v ? A?.config.isGlobal ?? !0 : !0, E = v ? A.formValues : D, be = v ? A.setFormValues : $, [
|
|
4813
|
-
() =>
|
|
4811
|
+
...bi,
|
|
4812
|
+
..._,
|
|
4813
|
+
phone: _?.phone ?? ""
|
|
4814
|
+
}), Q = v ? A?.config.isGlobal ?? !0 : !0, E = v ? A.formValues : D, be = v ? A.setFormValues : $, [se, de] = I(
|
|
4815
|
+
() => gi(E.phoneCountryCode, Q)
|
|
4814
4816
|
), ue = U(
|
|
4815
4817
|
!!(E.phoneCountryCode && ra.includes(E.phoneCountryCode))
|
|
4816
|
-
), X = U(!1), xe = Ce((
|
|
4817
|
-
X.current = !0, de(
|
|
4818
|
+
), X = U(!1), xe = Ce((m) => {
|
|
4819
|
+
X.current = !0, de(m);
|
|
4818
4820
|
}, []), ye = U(!0);
|
|
4819
4821
|
q(() => {
|
|
4820
4822
|
if (ye.current) {
|
|
@@ -4824,30 +4826,30 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4824
4826
|
ue.current || X.current || de(Q ? "+1" : "+91");
|
|
4825
4827
|
}, [Q]), q(() => {
|
|
4826
4828
|
if (!v || X.current) return;
|
|
4827
|
-
const
|
|
4828
|
-
|
|
4829
|
+
const m = E.phoneCountryCode;
|
|
4830
|
+
m && ra.includes(m) && m !== se && (ue.current = !0, de(m));
|
|
4829
4831
|
}, [v, E.phoneCountryCode]);
|
|
4830
|
-
const Ne = v ? A.goToPage :
|
|
4832
|
+
const Ne = v ? A.goToPage : c, he = v ? A.onProceed : y, Z = v ? A.onProceedGuidance : g, W = v ? A.config.proceedHref : x, ge = v ? A.config.originalPriceLabel : b, te = v ? A.config.discountedPriceLabel : Y, re = v ? A.config.showLanguageSelector ?? !0 : i, ce = (v ? A?.config?.analytics : C) ?? C;
|
|
4831
4833
|
q(() => {
|
|
4832
4834
|
if (!O) return;
|
|
4833
|
-
const
|
|
4835
|
+
const m = (fe) => {
|
|
4834
4836
|
G.current && !G.current.contains(fe.target) && N(!1);
|
|
4835
4837
|
};
|
|
4836
|
-
return document.addEventListener("mousedown",
|
|
4838
|
+
return document.addEventListener("mousedown", m), () => document.removeEventListener("mousedown", m);
|
|
4837
4839
|
}, [O]);
|
|
4838
|
-
const [je, pe] = I(!1), [me, Re] = I(null), ve = U(null), _e = Ce((
|
|
4839
|
-
ve.current =
|
|
4840
|
+
const [je, pe] = I(!1), [me, Re] = I(null), ve = U(null), _e = Ce((m) => {
|
|
4841
|
+
ve.current = m, pe(!0);
|
|
4840
4842
|
}, []), Te = U(!1);
|
|
4841
4843
|
q(() => {
|
|
4842
4844
|
if (Te.current || !v || !A?.config.autoOpenPlanSheet || A?.config.variant !== "v1")
|
|
4843
4845
|
return;
|
|
4844
4846
|
Te.current = !0;
|
|
4845
|
-
const
|
|
4847
|
+
const m = (E.phone ?? "").trim();
|
|
4846
4848
|
_e({
|
|
4847
4849
|
...E,
|
|
4848
|
-
phone:
|
|
4850
|
+
phone: m && `${se}-${m}`
|
|
4849
4851
|
});
|
|
4850
|
-
}, [v, A?.config.autoOpenPlanSheet, A?.config.variant, E,
|
|
4852
|
+
}, [v, A?.config.autoOpenPlanSheet, A?.config.variant, E, se, _e]);
|
|
4851
4853
|
const Pe = Ce(() => {
|
|
4852
4854
|
if (!ve.current || !me) return;
|
|
4853
4855
|
ce?.trackPlanProceedClicked?.({
|
|
@@ -4856,16 +4858,16 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4856
4858
|
price: me.price,
|
|
4857
4859
|
currency: Q ? "USD" : "INR"
|
|
4858
4860
|
});
|
|
4859
|
-
const
|
|
4860
|
-
me.id === Ra && Z ? Z(
|
|
4861
|
-
}, [me, he, Z]),
|
|
4861
|
+
const m = { ...ve.current, _selectedPlan: me };
|
|
4862
|
+
me.id === Ra && Z ? Z(m) : he?.(m), pe(!1), ve.current = null;
|
|
4863
|
+
}, [me, he, Z]), l = A?.config.imageComponent ?? Ye, h = re ? /* @__PURE__ */ e.jsxs("div", { className: Le.langDropdownWrap, ref: G, children: [
|
|
4862
4864
|
/* @__PURE__ */ e.jsxs(
|
|
4863
4865
|
"button",
|
|
4864
4866
|
{
|
|
4865
4867
|
type: "button",
|
|
4866
4868
|
className: Le.langTrigger,
|
|
4867
4869
|
onClick: () => {
|
|
4868
|
-
ce?.trackLanguageClickedFe?.({ language: V }), N((
|
|
4870
|
+
ce?.trackLanguageClickedFe?.({ language: V }), N((m) => !m);
|
|
4869
4871
|
},
|
|
4870
4872
|
"aria-expanded": O,
|
|
4871
4873
|
"aria-haspopup": "listbox",
|
|
@@ -4873,9 +4875,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4873
4875
|
"aria-label": B("language"),
|
|
4874
4876
|
children: [
|
|
4875
4877
|
/* @__PURE__ */ e.jsx(
|
|
4876
|
-
|
|
4878
|
+
l,
|
|
4877
4879
|
{
|
|
4878
|
-
src:
|
|
4880
|
+
src: fi,
|
|
4879
4881
|
alt: "",
|
|
4880
4882
|
className: Le.langIcon,
|
|
4881
4883
|
width: 16,
|
|
@@ -4894,19 +4896,19 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4894
4896
|
role: "listbox",
|
|
4895
4897
|
"aria-labelledby": "kundli-form-lang",
|
|
4896
4898
|
"aria-activedescendant": `kundli-form-lang-option-${V}`,
|
|
4897
|
-
children: Pa.map((
|
|
4899
|
+
children: Pa.map((m) => /* @__PURE__ */ e.jsx(
|
|
4898
4900
|
"li",
|
|
4899
4901
|
{
|
|
4900
|
-
id: `kundli-form-lang-option-${
|
|
4902
|
+
id: `kundli-form-lang-option-${m}`,
|
|
4901
4903
|
role: "option",
|
|
4902
|
-
"aria-selected":
|
|
4904
|
+
"aria-selected": m === V,
|
|
4903
4905
|
className: Le.langOption,
|
|
4904
4906
|
onClick: () => {
|
|
4905
|
-
ce?.trackLanguageChangedFe?.({ newLanguage:
|
|
4907
|
+
ce?.trackLanguageChangedFe?.({ newLanguage: m }), j(m), N(!1);
|
|
4906
4908
|
},
|
|
4907
|
-
children: ka[
|
|
4909
|
+
children: ka[m]
|
|
4908
4910
|
},
|
|
4909
|
-
|
|
4911
|
+
m
|
|
4910
4912
|
))
|
|
4911
4913
|
}
|
|
4912
4914
|
)
|
|
@@ -4917,7 +4919,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4917
4919
|
{
|
|
4918
4920
|
t: B,
|
|
4919
4921
|
logoUrl: v ? A.config.logoUrl : void 0,
|
|
4920
|
-
languageSelector:
|
|
4922
|
+
languageSelector: h,
|
|
4921
4923
|
className: Le.kundliHeaderNoBorder
|
|
4922
4924
|
}
|
|
4923
4925
|
),
|
|
@@ -4932,8 +4934,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4932
4934
|
onChange: be,
|
|
4933
4935
|
googleMapsApiKey: M,
|
|
4934
4936
|
atlasSearchLocalities: R,
|
|
4935
|
-
googleMapsAutocompleteEnabled:
|
|
4936
|
-
phoneIsdCode:
|
|
4937
|
+
googleMapsAutocompleteEnabled: p,
|
|
4938
|
+
phoneIsdCode: se,
|
|
4937
4939
|
onPhoneIsdCodeChange: xe,
|
|
4938
4940
|
showV1ExtraFields: v ? A?.config.variant === "v1" : !1,
|
|
4939
4941
|
analytics: ce
|
|
@@ -4945,7 +4947,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4945
4947
|
{
|
|
4946
4948
|
t: B,
|
|
4947
4949
|
values: E,
|
|
4948
|
-
phoneIsdCode:
|
|
4950
|
+
phoneIsdCode: se,
|
|
4949
4951
|
onProceed: he,
|
|
4950
4952
|
onProceedGuidance: Z,
|
|
4951
4953
|
href: W,
|
|
@@ -4959,7 +4961,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4959
4961
|
}
|
|
4960
4962
|
),
|
|
4961
4963
|
A?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
|
|
4962
|
-
|
|
4964
|
+
mi,
|
|
4963
4965
|
{
|
|
4964
4966
|
isOpen: je,
|
|
4965
4967
|
onClose: () => pe(!1),
|
|
@@ -4973,7 +4975,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4973
4975
|
}
|
|
4974
4976
|
)
|
|
4975
4977
|
] });
|
|
4976
|
-
},
|
|
4978
|
+
}, Si = {
|
|
4977
4979
|
banner_clicked_fe: "banner_clicked_fe",
|
|
4978
4980
|
primary_cta_clicked_fe: "primary_cta_clicked_fe",
|
|
4979
4981
|
language_changed_fe: "language_changed_fe",
|
|
@@ -5049,31 +5051,32 @@ export {
|
|
|
5049
5051
|
ci as C,
|
|
5050
5052
|
Ye as D,
|
|
5051
5053
|
Ct as F,
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
+
yi as I,
|
|
5055
|
+
Si as K,
|
|
5054
5056
|
ka as L,
|
|
5055
5057
|
Ra as P,
|
|
5056
5058
|
Pa as S,
|
|
5057
5059
|
Dr as U,
|
|
5058
5060
|
wa as a,
|
|
5059
5061
|
ia as b,
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
+
xi as c,
|
|
5063
|
+
Ti as d,
|
|
5062
5064
|
Tt as e,
|
|
5063
5065
|
Pt as f,
|
|
5064
5066
|
At as g,
|
|
5065
5067
|
Ie as h,
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5068
|
+
vi as i,
|
|
5069
|
+
Pi as j,
|
|
5070
|
+
di as k,
|
|
5071
|
+
pi as l,
|
|
5072
|
+
e as m,
|
|
5073
|
+
Jr as n,
|
|
5074
|
+
sa as o,
|
|
5075
|
+
Yr as p,
|
|
5076
|
+
mi as q,
|
|
5077
|
+
Ai as r,
|
|
5075
5078
|
vt as s,
|
|
5076
5079
|
xa as t,
|
|
5077
5080
|
yt as u
|
|
5078
5081
|
};
|
|
5079
|
-
//# sourceMappingURL=analytics-
|
|
5082
|
+
//# sourceMappingURL=analytics-AI15hzcE.js.map
|