@srimandir/kundli-generator 7.5.19 → 7.5.20
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-D95bvHFk.js → analytics-DiUVCCf_.js} +922 -959
- package/dist/{analytics-D95bvHFk.js.map → analytics-DiUVCCf_.js.map} +1 -1
- package/dist/{criticalCss-DVDUtIU9.js → criticalCss-BmgTQvQW.js} +2 -2
- package/dist/{criticalCss-DVDUtIU9.js.map → criticalCss-BmgTQvQW.js.map} +1 -1
- package/dist/form-entry.js +1 -1
- package/dist/kundli-generator.js +2 -2
- package/dist/page-entry.js +2 -2
- package/package.json +2 -2
|
@@ -1,106 +1,106 @@
|
|
|
1
1
|
import at, { useContext as rt, createContext as xt, useState as D, useRef as q, useEffect as J, useMemo as Ne, useCallback as ye, Fragment as Yt } from "react";
|
|
2
2
|
import { FormSectionHeader as qt, FooterCTAButton as Vt, FooterShell as zt, CircularMarquee as Jt, footerShellStyles as Re, PageHeader as Qt } from "@srimandir/astrology-common";
|
|
3
3
|
var qe = { exports: {} }, Ke = {};
|
|
4
|
-
var
|
|
4
|
+
var ft;
|
|
5
5
|
function Xt() {
|
|
6
|
-
if (
|
|
7
|
-
|
|
8
|
-
var a = at, o = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.fragment"),
|
|
9
|
-
function f(
|
|
10
|
-
var
|
|
11
|
-
$ !== void 0 && (
|
|
12
|
-
for (
|
|
13
|
-
if (
|
|
14
|
-
return { $$typeof: o, type:
|
|
6
|
+
if (ft) return Ke;
|
|
7
|
+
ft = 1;
|
|
8
|
+
var a = at, o = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, p = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
|
+
function f(T, x, $) {
|
|
10
|
+
var O, N = {}, u = null, G = null;
|
|
11
|
+
$ !== void 0 && (u = "" + $), x.key !== void 0 && (u = "" + x.key), x.ref !== void 0 && (G = x.ref);
|
|
12
|
+
for (O in x) m.call(x, O) && !_.hasOwnProperty(O) && (N[O] = x[O]);
|
|
13
|
+
if (T && T.defaultProps) for (O in x = T.defaultProps, x) N[O] === void 0 && (N[O] = x[O]);
|
|
14
|
+
return { $$typeof: o, type: T, key: u, ref: G, props: N, _owner: p.current };
|
|
15
15
|
}
|
|
16
16
|
return Ke.Fragment = s, Ke.jsx = f, Ke.jsxs = f, Ke;
|
|
17
17
|
}
|
|
18
18
|
var We = {};
|
|
19
|
-
var
|
|
19
|
+
var ht;
|
|
20
20
|
function Zt() {
|
|
21
|
-
return
|
|
22
|
-
var a = at, o = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.portal"),
|
|
21
|
+
return ht || (ht = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
+
var a = at, o = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), p = /* @__PURE__ */ Symbol.for("react.strict_mode"), _ = /* @__PURE__ */ Symbol.for("react.profiler"), f = /* @__PURE__ */ Symbol.for("react.provider"), T = /* @__PURE__ */ Symbol.for("react.context"), x = /* @__PURE__ */ Symbol.for("react.forward_ref"), $ = /* @__PURE__ */ Symbol.for("react.suspense"), O = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), u = /* @__PURE__ */ Symbol.for("react.lazy"), G = /* @__PURE__ */ Symbol.for("react.offscreen"), v = Symbol.iterator, H = "@@iterator";
|
|
23
23
|
function y(t) {
|
|
24
24
|
if (t === null || typeof t != "object")
|
|
25
25
|
return null;
|
|
26
|
-
var
|
|
27
|
-
return typeof
|
|
26
|
+
var i = v && t[v] || t[H];
|
|
27
|
+
return typeof i == "function" ? i : null;
|
|
28
28
|
}
|
|
29
|
-
var
|
|
30
|
-
function
|
|
29
|
+
var h = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
30
|
+
function w(t) {
|
|
31
31
|
{
|
|
32
|
-
for (var
|
|
32
|
+
for (var i = arguments.length, d = new Array(i > 1 ? i - 1 : 0), b = 1; b < i; b++)
|
|
33
33
|
d[b - 1] = arguments[b];
|
|
34
34
|
Z("error", t, d);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function Z(t,
|
|
37
|
+
function Z(t, i, d) {
|
|
38
38
|
{
|
|
39
|
-
var b =
|
|
40
|
-
W !== "" && (
|
|
39
|
+
var b = h.ReactDebugCurrentFrame, W = b.getStackAddendum();
|
|
40
|
+
W !== "" && (i += "%s", d = d.concat([W]));
|
|
41
41
|
var z = d.map(function(B) {
|
|
42
42
|
return String(B);
|
|
43
43
|
});
|
|
44
|
-
z.unshift("Warning: " +
|
|
44
|
+
z.unshift("Warning: " + i), Function.prototype.apply.call(console[t], console, z);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
var
|
|
47
|
+
var S = !1, U = !1, j = !1, K = !1, A = !1, L;
|
|
48
48
|
L = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
|
-
function
|
|
50
|
-
return !!(typeof t == "string" || typeof t == "function" || t ===
|
|
49
|
+
function re(t) {
|
|
50
|
+
return !!(typeof t == "string" || typeof t == "function" || t === m || t === _ || A || t === p || t === $ || t === O || K || t === G || S || U || j || typeof t == "object" && t !== null && (t.$$typeof === u || t.$$typeof === N || t.$$typeof === f || t.$$typeof === T || t.$$typeof === x || // 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
|
t.$$typeof === L || t.getModuleId !== void 0));
|
|
55
55
|
}
|
|
56
|
-
function Y(t,
|
|
56
|
+
function Y(t, i, d) {
|
|
57
57
|
var b = t.displayName;
|
|
58
58
|
if (b)
|
|
59
59
|
return b;
|
|
60
|
-
var W =
|
|
60
|
+
var W = i.displayName || i.name || "";
|
|
61
61
|
return W !== "" ? d + "(" + W + ")" : d;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function F(t) {
|
|
64
64
|
return t.displayName || "Context";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function E(t) {
|
|
67
67
|
if (t == null)
|
|
68
68
|
return null;
|
|
69
|
-
if (typeof t.tag == "number" &&
|
|
69
|
+
if (typeof t.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
70
70
|
return t.displayName || t.name || null;
|
|
71
71
|
if (typeof t == "string")
|
|
72
72
|
return t;
|
|
73
73
|
switch (t) {
|
|
74
|
-
case
|
|
74
|
+
case m:
|
|
75
75
|
return "Fragment";
|
|
76
76
|
case s:
|
|
77
77
|
return "Portal";
|
|
78
78
|
case _:
|
|
79
79
|
return "Profiler";
|
|
80
|
-
case
|
|
80
|
+
case p:
|
|
81
81
|
return "StrictMode";
|
|
82
82
|
case $:
|
|
83
83
|
return "Suspense";
|
|
84
|
-
case
|
|
84
|
+
case O:
|
|
85
85
|
return "SuspenseList";
|
|
86
86
|
}
|
|
87
87
|
if (typeof t == "object")
|
|
88
88
|
switch (t.$$typeof) {
|
|
89
|
-
case
|
|
90
|
-
var
|
|
91
|
-
return
|
|
89
|
+
case T:
|
|
90
|
+
var i = t;
|
|
91
|
+
return F(i) + ".Consumer";
|
|
92
92
|
case f:
|
|
93
93
|
var d = t;
|
|
94
|
-
return
|
|
95
|
-
case
|
|
94
|
+
return F(d._context) + ".Provider";
|
|
95
|
+
case x:
|
|
96
96
|
return Y(t, t.render, "ForwardRef");
|
|
97
97
|
case N:
|
|
98
98
|
var b = t.displayName || null;
|
|
99
|
-
return b !== null ? b :
|
|
100
|
-
case
|
|
99
|
+
return b !== null ? b : E(t.type) || "Memo";
|
|
100
|
+
case u: {
|
|
101
101
|
var W = t, z = W._payload, B = W._init;
|
|
102
102
|
try {
|
|
103
|
-
return
|
|
103
|
+
return E(B(z));
|
|
104
104
|
} catch {
|
|
105
105
|
return null;
|
|
106
106
|
}
|
|
@@ -108,18 +108,18 @@ function Zt() {
|
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
111
|
-
var
|
|
112
|
-
function
|
|
111
|
+
var I = Object.assign, Q = 0, M, ce, ee, ie, le, te, ke;
|
|
112
|
+
function he() {
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
function
|
|
114
|
+
he.__reactDisabledLog = !0;
|
|
115
|
+
function Ce() {
|
|
116
116
|
{
|
|
117
117
|
if (Q === 0) {
|
|
118
|
-
|
|
118
|
+
M = console.log, ce = console.info, ee = console.warn, ie = console.error, le = console.group, te = console.groupCollapsed, ke = console.groupEnd;
|
|
119
119
|
var t = {
|
|
120
120
|
configurable: !0,
|
|
121
121
|
enumerable: !0,
|
|
122
|
-
value:
|
|
122
|
+
value: he,
|
|
123
123
|
writable: !0
|
|
124
124
|
};
|
|
125
125
|
Object.defineProperties(console, {
|
|
@@ -144,67 +144,67 @@ function Zt() {
|
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
147
|
-
log:
|
|
148
|
-
value:
|
|
147
|
+
log: I({}, t, {
|
|
148
|
+
value: M
|
|
149
149
|
}),
|
|
150
|
-
info:
|
|
150
|
+
info: I({}, t, {
|
|
151
151
|
value: ce
|
|
152
152
|
}),
|
|
153
|
-
warn:
|
|
153
|
+
warn: I({}, t, {
|
|
154
154
|
value: ee
|
|
155
155
|
}),
|
|
156
|
-
error:
|
|
157
|
-
value:
|
|
156
|
+
error: I({}, t, {
|
|
157
|
+
value: ie
|
|
158
158
|
}),
|
|
159
|
-
group:
|
|
160
|
-
value:
|
|
159
|
+
group: I({}, t, {
|
|
160
|
+
value: le
|
|
161
161
|
}),
|
|
162
|
-
groupCollapsed:
|
|
162
|
+
groupCollapsed: I({}, t, {
|
|
163
163
|
value: te
|
|
164
164
|
}),
|
|
165
|
-
groupEnd:
|
|
165
|
+
groupEnd: I({}, t, {
|
|
166
166
|
value: ke
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
Q < 0 &&
|
|
170
|
+
Q < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
var X =
|
|
174
|
-
function
|
|
173
|
+
var X = h.ReactCurrentDispatcher, l;
|
|
174
|
+
function P(t, i, d) {
|
|
175
175
|
{
|
|
176
|
-
if (
|
|
176
|
+
if (l === void 0)
|
|
177
177
|
try {
|
|
178
178
|
throw Error();
|
|
179
179
|
} catch (W) {
|
|
180
180
|
var b = W.stack.trim().match(/\n( *(at )?)/);
|
|
181
|
-
|
|
181
|
+
l = b && b[1] || "";
|
|
182
182
|
}
|
|
183
183
|
return `
|
|
184
|
-
` +
|
|
184
|
+
` + l + t;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var oe = !1, se;
|
|
188
188
|
{
|
|
189
189
|
var ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
|
-
|
|
190
|
+
se = new ve();
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
if (!t ||
|
|
192
|
+
function je(t, i) {
|
|
193
|
+
if (!t || oe)
|
|
194
194
|
return "";
|
|
195
195
|
{
|
|
196
|
-
var d =
|
|
196
|
+
var d = se.get(t);
|
|
197
197
|
if (d !== void 0)
|
|
198
198
|
return d;
|
|
199
199
|
}
|
|
200
200
|
var b;
|
|
201
|
-
|
|
201
|
+
oe = !0;
|
|
202
202
|
var W = Error.prepareStackTrace;
|
|
203
203
|
Error.prepareStackTrace = void 0;
|
|
204
204
|
var z;
|
|
205
|
-
z = X.current, X.current = null,
|
|
205
|
+
z = X.current, X.current = null, Ce();
|
|
206
206
|
try {
|
|
207
|
-
if (
|
|
207
|
+
if (i) {
|
|
208
208
|
var B = function() {
|
|
209
209
|
throw Error();
|
|
210
210
|
};
|
|
@@ -215,96 +215,96 @@ function Zt() {
|
|
|
215
215
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
216
216
|
try {
|
|
217
217
|
Reflect.construct(B, []);
|
|
218
|
-
} catch (
|
|
219
|
-
b =
|
|
218
|
+
} catch (fe) {
|
|
219
|
+
b = fe;
|
|
220
220
|
}
|
|
221
221
|
Reflect.construct(t, [], B);
|
|
222
222
|
} else {
|
|
223
223
|
try {
|
|
224
224
|
B.call();
|
|
225
|
-
} catch (
|
|
226
|
-
b =
|
|
225
|
+
} catch (fe) {
|
|
226
|
+
b = fe;
|
|
227
227
|
}
|
|
228
228
|
t.call(B.prototype);
|
|
229
229
|
}
|
|
230
230
|
} else {
|
|
231
231
|
try {
|
|
232
232
|
throw Error();
|
|
233
|
-
} catch (
|
|
234
|
-
b =
|
|
233
|
+
} catch (fe) {
|
|
234
|
+
b = fe;
|
|
235
235
|
}
|
|
236
236
|
t();
|
|
237
237
|
}
|
|
238
|
-
} catch (
|
|
239
|
-
if (
|
|
240
|
-
for (var R =
|
|
238
|
+
} catch (fe) {
|
|
239
|
+
if (fe && b && typeof fe.stack == "string") {
|
|
240
|
+
for (var R = fe.stack.split(`
|
|
241
241
|
`), pe = b.stack.split(`
|
|
242
|
-
`),
|
|
243
|
-
|
|
244
|
-
for (;
|
|
245
|
-
if (R[
|
|
246
|
-
if (
|
|
242
|
+
`), ae = R.length - 1, ne = pe.length - 1; ae >= 1 && ne >= 0 && R[ae] !== pe[ne]; )
|
|
243
|
+
ne--;
|
|
244
|
+
for (; ae >= 1 && ne >= 0; ae--, ne--)
|
|
245
|
+
if (R[ae] !== pe[ne]) {
|
|
246
|
+
if (ae !== 1 || ne !== 1)
|
|
247
247
|
do
|
|
248
|
-
if (
|
|
248
|
+
if (ae--, ne--, ne < 0 || R[ae] !== pe[ne]) {
|
|
249
249
|
var be = `
|
|
250
|
-
` + R[
|
|
251
|
-
return t.displayName && be.includes("<anonymous>") && (be = be.replace("<anonymous>", t.displayName)), typeof t == "function" &&
|
|
250
|
+
` + R[ae].replace(" at new ", " at ");
|
|
251
|
+
return t.displayName && be.includes("<anonymous>") && (be = be.replace("<anonymous>", t.displayName)), typeof t == "function" && se.set(t, be), be;
|
|
252
252
|
}
|
|
253
|
-
while (
|
|
253
|
+
while (ae >= 1 && ne >= 0);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
} finally {
|
|
258
|
-
|
|
258
|
+
oe = !1, X.current = z, me(), Error.prepareStackTrace = W;
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
return typeof t == "function" &&
|
|
260
|
+
var Oe = t ? t.displayName || t.name : "", Ae = Oe ? P(Oe) : "";
|
|
261
|
+
return typeof t == "function" && se.set(t, Ae), Ae;
|
|
262
262
|
}
|
|
263
|
-
function de(t,
|
|
264
|
-
return
|
|
263
|
+
function de(t, i, d) {
|
|
264
|
+
return je(t, !1);
|
|
265
265
|
}
|
|
266
266
|
function ue(t) {
|
|
267
|
-
var
|
|
268
|
-
return !!(
|
|
267
|
+
var i = t.prototype;
|
|
268
|
+
return !!(i && i.isReactComponent);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function Se(t, i, d) {
|
|
271
271
|
if (t == null)
|
|
272
272
|
return "";
|
|
273
273
|
if (typeof t == "function")
|
|
274
|
-
return
|
|
274
|
+
return je(t, ue(t));
|
|
275
275
|
if (typeof t == "string")
|
|
276
|
-
return
|
|
276
|
+
return P(t);
|
|
277
277
|
switch (t) {
|
|
278
278
|
case $:
|
|
279
|
-
return
|
|
280
|
-
case
|
|
281
|
-
return
|
|
279
|
+
return P("Suspense");
|
|
280
|
+
case O:
|
|
281
|
+
return P("SuspenseList");
|
|
282
282
|
}
|
|
283
283
|
if (typeof t == "object")
|
|
284
284
|
switch (t.$$typeof) {
|
|
285
|
-
case
|
|
285
|
+
case x:
|
|
286
286
|
return de(t.render);
|
|
287
287
|
case N:
|
|
288
|
-
return
|
|
289
|
-
case
|
|
288
|
+
return Se(t.type, i, d);
|
|
289
|
+
case u: {
|
|
290
290
|
var b = t, W = b._payload, z = b._init;
|
|
291
291
|
try {
|
|
292
|
-
return
|
|
292
|
+
return Se(z(W), i, d);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
return "";
|
|
298
298
|
}
|
|
299
|
-
var xe = Object.prototype.hasOwnProperty, ge = {}, we =
|
|
299
|
+
var xe = Object.prototype.hasOwnProperty, ge = {}, we = h.ReactDebugCurrentFrame;
|
|
300
300
|
function Pe(t) {
|
|
301
301
|
if (t) {
|
|
302
|
-
var
|
|
302
|
+
var i = t._owner, d = Se(t.type, t._source, i ? i.type : null);
|
|
303
303
|
we.setExtraStackFrame(d);
|
|
304
304
|
} else
|
|
305
305
|
we.setExtraStackFrame(null);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function Ee(t, i, d, b, W) {
|
|
308
308
|
{
|
|
309
309
|
var z = Function.call.bind(xe);
|
|
310
310
|
for (var B in t)
|
|
@@ -315,25 +315,25 @@ function Zt() {
|
|
|
315
315
|
var pe = Error((b || "React class") + ": " + d + " type `" + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[B] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
316
316
|
throw pe.name = "Invariant Violation", pe;
|
|
317
317
|
}
|
|
318
|
-
R = t[B](
|
|
319
|
-
} catch (
|
|
320
|
-
R =
|
|
318
|
+
R = t[B](i, B, b, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
|
+
} catch (ae) {
|
|
320
|
+
R = ae;
|
|
321
321
|
}
|
|
322
|
-
R && !(R instanceof Error) && (Pe(W),
|
|
322
|
+
R && !(R instanceof Error) && (Pe(W), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", b || "React class", d, B, typeof R), Pe(null)), R instanceof Error && !(R.message in ge) && (ge[R.message] = !0, Pe(W), w("Failed %s type: %s", d, R.message), Pe(null));
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
var
|
|
327
|
-
function
|
|
328
|
-
return
|
|
326
|
+
var Ie = Array.isArray;
|
|
327
|
+
function C(t) {
|
|
328
|
+
return Ie(t);
|
|
329
329
|
}
|
|
330
330
|
function Be(t) {
|
|
331
331
|
{
|
|
332
|
-
var
|
|
332
|
+
var i = typeof Symbol == "function" && Symbol.toStringTag, d = i && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
333
333
|
return d;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Me(t) {
|
|
337
337
|
try {
|
|
338
338
|
return $e(t), !1;
|
|
339
339
|
} catch {
|
|
@@ -344,10 +344,10 @@ function Zt() {
|
|
|
344
344
|
return "" + t;
|
|
345
345
|
}
|
|
346
346
|
function Ge(t) {
|
|
347
|
-
if (
|
|
348
|
-
return
|
|
347
|
+
if (Me(t))
|
|
348
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(t)), $e(t);
|
|
349
349
|
}
|
|
350
|
-
var r =
|
|
350
|
+
var r = h.ReactCurrentOwner, c = {
|
|
351
351
|
key: !0,
|
|
352
352
|
ref: !0,
|
|
353
353
|
__self: !0,
|
|
@@ -355,27 +355,27 @@ function Zt() {
|
|
|
355
355
|
}, V, _e;
|
|
356
356
|
function Ue(t) {
|
|
357
357
|
if (xe.call(t, "ref")) {
|
|
358
|
-
var
|
|
359
|
-
if (
|
|
358
|
+
var i = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
359
|
+
if (i && i.isReactWarning)
|
|
360
360
|
return !1;
|
|
361
361
|
}
|
|
362
362
|
return t.ref !== void 0;
|
|
363
363
|
}
|
|
364
364
|
function ze(t) {
|
|
365
365
|
if (xe.call(t, "key")) {
|
|
366
|
-
var
|
|
367
|
-
if (
|
|
366
|
+
var i = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
367
|
+
if (i && i.isReactWarning)
|
|
368
368
|
return !1;
|
|
369
369
|
}
|
|
370
370
|
return t.key !== void 0;
|
|
371
371
|
}
|
|
372
|
-
function Rt(t,
|
|
372
|
+
function Rt(t, i) {
|
|
373
373
|
typeof t.ref == "string" && r.current;
|
|
374
374
|
}
|
|
375
|
-
function Lt(t,
|
|
375
|
+
function Lt(t, i) {
|
|
376
376
|
{
|
|
377
377
|
var d = function() {
|
|
378
|
-
V || (V = !0,
|
|
378
|
+
V || (V = !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)", i));
|
|
379
379
|
};
|
|
380
380
|
d.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
381
381
|
get: d,
|
|
@@ -383,10 +383,10 @@ function Zt() {
|
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Et(t, i) {
|
|
387
387
|
{
|
|
388
388
|
var d = function() {
|
|
389
|
-
_e || (_e = !0,
|
|
389
|
+
_e || (_e = !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)", i));
|
|
390
390
|
};
|
|
391
391
|
d.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
392
392
|
get: d,
|
|
@@ -394,13 +394,13 @@ function Zt() {
|
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
var
|
|
397
|
+
var It = function(t, i, d, b, W, z, B) {
|
|
398
398
|
var R = {
|
|
399
399
|
// This tag allows us to uniquely identify this as a React Element
|
|
400
400
|
$$typeof: o,
|
|
401
401
|
// Built-in properties that belong on the element
|
|
402
402
|
type: t,
|
|
403
|
-
key:
|
|
403
|
+
key: i,
|
|
404
404
|
ref: d,
|
|
405
405
|
props: B,
|
|
406
406
|
// Record the component responsible for creating this element.
|
|
@@ -423,28 +423,28 @@ function Zt() {
|
|
|
423
423
|
value: W
|
|
424
424
|
}), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
|
|
425
425
|
};
|
|
426
|
-
function Bt(t,
|
|
426
|
+
function Bt(t, i, d, b, W) {
|
|
427
427
|
{
|
|
428
428
|
var z, B = {}, R = null, pe = null;
|
|
429
|
-
d !== void 0 && (Ge(d), R = "" + d), ze(
|
|
430
|
-
for (z in
|
|
431
|
-
xe.call(
|
|
429
|
+
d !== void 0 && (Ge(d), R = "" + d), ze(i) && (Ge(i.key), R = "" + i.key), Ue(i) && (pe = i.ref, Rt(i, W));
|
|
430
|
+
for (z in i)
|
|
431
|
+
xe.call(i, z) && !c.hasOwnProperty(z) && (B[z] = i[z]);
|
|
432
432
|
if (t && t.defaultProps) {
|
|
433
|
-
var
|
|
434
|
-
for (z in
|
|
435
|
-
B[z] === void 0 && (B[z] =
|
|
433
|
+
var ae = t.defaultProps;
|
|
434
|
+
for (z in ae)
|
|
435
|
+
B[z] === void 0 && (B[z] = ae[z]);
|
|
436
436
|
}
|
|
437
437
|
if (R || pe) {
|
|
438
|
-
var
|
|
439
|
-
R && Lt(B,
|
|
438
|
+
var ne = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
439
|
+
R && Lt(B, ne), pe && Et(B, ne);
|
|
440
440
|
}
|
|
441
|
-
return
|
|
441
|
+
return It(t, R, pe, W, b, r.current, B);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
var Je =
|
|
444
|
+
var Je = h.ReactCurrentOwner, lt = h.ReactDebugCurrentFrame;
|
|
445
445
|
function De(t) {
|
|
446
446
|
if (t) {
|
|
447
|
-
var
|
|
447
|
+
var i = t._owner, d = Se(t.type, t._source, i ? i.type : null);
|
|
448
448
|
lt.setExtraStackFrame(d);
|
|
449
449
|
} else
|
|
450
450
|
lt.setExtraStackFrame(null);
|
|
@@ -457,7 +457,7 @@ function Zt() {
|
|
|
457
457
|
function st() {
|
|
458
458
|
{
|
|
459
459
|
if (Je.current) {
|
|
460
|
-
var t =
|
|
460
|
+
var t = E(Je.current.type);
|
|
461
461
|
if (t)
|
|
462
462
|
return `
|
|
463
463
|
|
|
@@ -470,39 +470,39 @@ Check the render method of \`` + t + "`.";
|
|
|
470
470
|
return "";
|
|
471
471
|
}
|
|
472
472
|
var ct = {};
|
|
473
|
-
function
|
|
473
|
+
function Ot(t) {
|
|
474
474
|
{
|
|
475
|
-
var
|
|
476
|
-
if (!
|
|
475
|
+
var i = st();
|
|
476
|
+
if (!i) {
|
|
477
477
|
var d = typeof t == "string" ? t : t.displayName || t.name;
|
|
478
|
-
d && (
|
|
478
|
+
d && (i = `
|
|
479
479
|
|
|
480
480
|
Check the top-level render call using <` + d + ">.");
|
|
481
481
|
}
|
|
482
|
-
return
|
|
482
|
+
return i;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
function dt(t,
|
|
485
|
+
function dt(t, i) {
|
|
486
486
|
{
|
|
487
487
|
if (!t._store || t._store.validated || t.key != null)
|
|
488
488
|
return;
|
|
489
489
|
t._store.validated = !0;
|
|
490
|
-
var d =
|
|
490
|
+
var d = Ot(i);
|
|
491
491
|
if (ct[d])
|
|
492
492
|
return;
|
|
493
493
|
ct[d] = !0;
|
|
494
494
|
var b = "";
|
|
495
|
-
t && t._owner && t._owner !== Je.current && (b = " It was passed a child from " +
|
|
495
|
+
t && t._owner && t._owner !== Je.current && (b = " It was passed a child from " + E(t._owner.type) + "."), De(t), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, b), De(null);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function ut(t,
|
|
498
|
+
function ut(t, i) {
|
|
499
499
|
{
|
|
500
500
|
if (typeof t != "object")
|
|
501
501
|
return;
|
|
502
|
-
if (
|
|
502
|
+
if (C(t))
|
|
503
503
|
for (var d = 0; d < t.length; d++) {
|
|
504
504
|
var b = t[d];
|
|
505
|
-
Xe(b) && dt(b,
|
|
505
|
+
Xe(b) && dt(b, i);
|
|
506
506
|
}
|
|
507
507
|
else if (Xe(t))
|
|
508
508
|
t._store && (t._store.validated = !0);
|
|
@@ -510,82 +510,82 @@ Check the top-level render call using <` + d + ">.");
|
|
|
510
510
|
var W = y(t);
|
|
511
511
|
if (typeof W == "function" && W !== t.entries)
|
|
512
512
|
for (var z = W.call(t), B; !(B = z.next()).done; )
|
|
513
|
-
Xe(B.value) && dt(B.value,
|
|
513
|
+
Xe(B.value) && dt(B.value, i);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function Ft(t) {
|
|
518
518
|
{
|
|
519
|
-
var
|
|
520
|
-
if (
|
|
519
|
+
var i = t.type;
|
|
520
|
+
if (i == null || typeof i == "string")
|
|
521
521
|
return;
|
|
522
522
|
var d;
|
|
523
|
-
if (typeof
|
|
524
|
-
d =
|
|
525
|
-
else if (typeof
|
|
523
|
+
if (typeof i == "function")
|
|
524
|
+
d = i.propTypes;
|
|
525
|
+
else if (typeof i == "object" && (i.$$typeof === x || // Note: Memo only checks outer props here.
|
|
526
526
|
// Inner props are checked in the reconciler.
|
|
527
|
-
|
|
528
|
-
d =
|
|
527
|
+
i.$$typeof === N))
|
|
528
|
+
d = i.propTypes;
|
|
529
529
|
else
|
|
530
530
|
return;
|
|
531
531
|
if (d) {
|
|
532
|
-
var b =
|
|
533
|
-
|
|
534
|
-
} else if (
|
|
532
|
+
var b = E(i);
|
|
533
|
+
Ee(d, t.props, "prop", b, t);
|
|
534
|
+
} else if (i.PropTypes !== void 0 && !Qe) {
|
|
535
535
|
Qe = !0;
|
|
536
|
-
var W =
|
|
537
|
-
|
|
536
|
+
var W = E(i);
|
|
537
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
|
|
538
538
|
}
|
|
539
|
-
typeof
|
|
539
|
+
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Mt(t) {
|
|
543
543
|
{
|
|
544
|
-
for (var
|
|
545
|
-
var b =
|
|
544
|
+
for (var i = Object.keys(t.props), d = 0; d < i.length; d++) {
|
|
545
|
+
var b = i[d];
|
|
546
546
|
if (b !== "children" && b !== "key") {
|
|
547
|
-
De(t),
|
|
547
|
+
De(t), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), De(null);
|
|
548
548
|
break;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
t.ref !== null && (De(t),
|
|
551
|
+
t.ref !== null && (De(t), w("Invalid attribute `ref` supplied to `React.Fragment`."), De(null));
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
var pt = {};
|
|
555
|
-
function mt(t,
|
|
555
|
+
function mt(t, i, d, b, W, z) {
|
|
556
556
|
{
|
|
557
|
-
var B =
|
|
557
|
+
var B = re(t);
|
|
558
558
|
if (!B) {
|
|
559
559
|
var R = "";
|
|
560
560
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
561
561
|
var pe = Dt();
|
|
562
562
|
pe ? R += pe : R += st();
|
|
563
|
-
var
|
|
564
|
-
t === null ?
|
|
563
|
+
var ae;
|
|
564
|
+
t === null ? ae = "null" : C(t) ? ae = "array" : t !== void 0 && t.$$typeof === o ? (ae = "<" + (E(t.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : ae = typeof t, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ae, R);
|
|
565
565
|
}
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
return
|
|
566
|
+
var ne = Bt(t, i, d, W, z);
|
|
567
|
+
if (ne == null)
|
|
568
|
+
return ne;
|
|
569
569
|
if (B) {
|
|
570
|
-
var be =
|
|
570
|
+
var be = i.children;
|
|
571
571
|
if (be !== void 0)
|
|
572
572
|
if (b)
|
|
573
|
-
if (
|
|
574
|
-
for (var
|
|
575
|
-
ut(be[
|
|
573
|
+
if (C(be)) {
|
|
574
|
+
for (var Oe = 0; Oe < be.length; Oe++)
|
|
575
|
+
ut(be[Oe], t);
|
|
576
576
|
Object.freeze && Object.freeze(be);
|
|
577
577
|
} else
|
|
578
|
-
|
|
578
|
+
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
579
579
|
else
|
|
580
580
|
ut(be, t);
|
|
581
581
|
}
|
|
582
|
-
if (xe.call(
|
|
583
|
-
var Ae =
|
|
582
|
+
if (xe.call(i, "key")) {
|
|
583
|
+
var Ae = E(t), fe = Object.keys(i).filter(function(Ht) {
|
|
584
584
|
return Ht !== "key";
|
|
585
|
-
}), Ze =
|
|
585
|
+
}), Ze = fe.length > 0 ? "{key: someKey, " + fe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
586
|
if (!pt[Ae + Ze]) {
|
|
587
|
-
var Wt =
|
|
588
|
-
|
|
587
|
+
var Wt = fe.length > 0 ? "{" + fe.join(": ..., ") + ": ...}" : "{}";
|
|
588
|
+
w(`A props object containing a "key" prop is being spread into JSX:
|
|
589
589
|
let props = %s;
|
|
590
590
|
<%s {...props} />
|
|
591
591
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -593,17 +593,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
593
593
|
<%s key={someKey} {...props} />`, Ze, Ae, Wt, Ae), pt[Ae + Ze] = !0;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
return t ===
|
|
596
|
+
return t === m ? Mt(ne) : Ft(ne), ne;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
function $t(t,
|
|
600
|
-
return mt(t,
|
|
599
|
+
function $t(t, i, d) {
|
|
600
|
+
return mt(t, i, d, !0);
|
|
601
601
|
}
|
|
602
|
-
function Gt(t,
|
|
603
|
-
return mt(t,
|
|
602
|
+
function Gt(t, i, d) {
|
|
603
|
+
return mt(t, i, d, !1);
|
|
604
604
|
}
|
|
605
605
|
var Ut = Gt, Kt = $t;
|
|
606
|
-
We.Fragment =
|
|
606
|
+
We.Fragment = m, We.jsx = Ut, We.jsxs = Kt;
|
|
607
607
|
})()), We;
|
|
608
608
|
}
|
|
609
609
|
var gt;
|
|
@@ -611,7 +611,7 @@ function ea() {
|
|
|
611
611
|
return gt || (gt = 1, process.env.NODE_ENV === "production" ? qe.exports = Xt() : qe.exports = Zt()), qe.exports;
|
|
612
612
|
}
|
|
613
613
|
var e = ea();
|
|
614
|
-
const ta = "_container_1e1th_1", aa = "_main_1e1th_7", ra = "_kundliHeaderNoBorder_1e1th_12", na = "_headerSeparator_1e1th_16", oa = "_langDropdownWrap_1e1th_21", ia = "_langTrigger_1e1th_25", la = "_langIcon_1e1th_37", sa = "_langLabel_1e1th_44", ca = "_langMenu_1e1th_49", da = "_langOption_1e1th_55",
|
|
614
|
+
const ta = "_container_1e1th_1", aa = "_main_1e1th_7", ra = "_kundliHeaderNoBorder_1e1th_12", na = "_headerSeparator_1e1th_16", oa = "_langDropdownWrap_1e1th_21", ia = "_langTrigger_1e1th_25", la = "_langIcon_1e1th_37", sa = "_langLabel_1e1th_44", ca = "_langMenu_1e1th_49", da = "_langOption_1e1th_55", Te = {
|
|
615
615
|
container: ta,
|
|
616
616
|
main: aa,
|
|
617
617
|
kundliHeaderNoBorder: ra,
|
|
@@ -1093,22 +1093,22 @@ const ta = "_container_1e1th_1", aa = "_main_1e1th_7", ra = "_kundliHeaderNoBord
|
|
|
1093
1093
|
astrologyGuidance: "ज्योतिष से सलाह",
|
|
1094
1094
|
selectPackage: "पैकेज चुनें"
|
|
1095
1095
|
}
|
|
1096
|
-
},
|
|
1096
|
+
}, Tt = xt(null), Xo = ({
|
|
1097
1097
|
locale: a,
|
|
1098
1098
|
children: o
|
|
1099
1099
|
}) => {
|
|
1100
|
-
const
|
|
1101
|
-
return /* @__PURE__ */ e.jsx(
|
|
1100
|
+
const m = { locale: a, t: (p) => Pt[a]?.[p] ?? p };
|
|
1101
|
+
return /* @__PURE__ */ e.jsx(Tt.Provider, { value: m, children: o });
|
|
1102
1102
|
};
|
|
1103
1103
|
function ua() {
|
|
1104
|
-
return rt(
|
|
1104
|
+
return rt(Tt);
|
|
1105
1105
|
}
|
|
1106
1106
|
const Ye = (a) => {
|
|
1107
|
-
const { priority: o, fetchPriority: s, width:
|
|
1107
|
+
const { priority: o, fetchPriority: s, width: m, height: p, ..._ } = a;
|
|
1108
1108
|
return at.createElement("img", {
|
|
1109
1109
|
..._,
|
|
1110
|
-
width:
|
|
1111
|
-
height:
|
|
1110
|
+
width: m ?? 1,
|
|
1111
|
+
height: p ?? 1,
|
|
1112
1112
|
decoding: "async",
|
|
1113
1113
|
loading: _.loading ?? (o ? "eager" : "lazy"),
|
|
1114
1114
|
...s && { fetchPriority: s }
|
|
@@ -1130,14 +1130,14 @@ function ma(a, o) {
|
|
|
1130
1130
|
} catch {
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1133
|
+
function Zo(a) {
|
|
1134
1134
|
if (!(typeof window > "u" || !window.localStorage))
|
|
1135
1135
|
try {
|
|
1136
1136
|
window.localStorage.removeItem(a);
|
|
1137
1137
|
} catch {
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function ei() {
|
|
1141
1141
|
if (typeof window > "u" || !window.localStorage)
|
|
1142
1142
|
return !1;
|
|
1143
1143
|
try {
|
|
@@ -1147,13 +1147,13 @@ function pi() {
|
|
|
1147
1147
|
return !1;
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
|
-
const
|
|
1151
|
-
function
|
|
1152
|
-
const a = pa(
|
|
1150
|
+
const Ct = "kundli_language";
|
|
1151
|
+
function fa() {
|
|
1152
|
+
const a = pa(Ct);
|
|
1153
1153
|
return a && wt.includes(a) ? a : null;
|
|
1154
1154
|
}
|
|
1155
|
-
function
|
|
1156
|
-
ma(
|
|
1155
|
+
function ha(a) {
|
|
1156
|
+
ma(Ct, a);
|
|
1157
1157
|
}
|
|
1158
1158
|
const nt = xt(null), ga = {
|
|
1159
1159
|
fullName: "",
|
|
@@ -1166,52 +1166,52 @@ const nt = xt(null), ga = {
|
|
|
1166
1166
|
birthTime: "",
|
|
1167
1167
|
birthTimeUnknown: !1,
|
|
1168
1168
|
birthPlace: ""
|
|
1169
|
-
},
|
|
1169
|
+
}, ti = ({
|
|
1170
1170
|
locale: a,
|
|
1171
1171
|
showLanguageSelector: o = !0,
|
|
1172
1172
|
showSheet: s,
|
|
1173
|
-
userId:
|
|
1174
|
-
isGlobal:
|
|
1173
|
+
userId: m,
|
|
1174
|
+
isGlobal: p,
|
|
1175
1175
|
variant: _,
|
|
1176
1176
|
initialFormValues: f,
|
|
1177
|
-
autoOpenPlanSheet:
|
|
1178
|
-
googleMapsApiKey:
|
|
1177
|
+
autoOpenPlanSheet: T,
|
|
1178
|
+
googleMapsApiKey: x,
|
|
1179
1179
|
atlasSearchLocalities: $,
|
|
1180
|
-
googleMapsAutocompleteEnabled:
|
|
1180
|
+
googleMapsAutocompleteEnabled: O,
|
|
1181
1181
|
enableConsultationScheduling: N,
|
|
1182
|
-
fetchConsultationSlots:
|
|
1182
|
+
fetchConsultationSlots: u,
|
|
1183
1183
|
logoUrl: G,
|
|
1184
|
-
reportImageUrl:
|
|
1184
|
+
reportImageUrl: v,
|
|
1185
1185
|
reportImagePriority: H,
|
|
1186
1186
|
backgroundImagePriority: y,
|
|
1187
|
-
universityLogoUrls:
|
|
1188
|
-
sampleReportHref:
|
|
1187
|
+
universityLogoUrls: h,
|
|
1188
|
+
sampleReportHref: w,
|
|
1189
1189
|
onViewSampleReport: Z,
|
|
1190
|
-
ctaHref:
|
|
1190
|
+
ctaHref: S,
|
|
1191
1191
|
onCtaClick: U,
|
|
1192
|
-
onBack:
|
|
1192
|
+
onBack: j,
|
|
1193
1193
|
readMoreReviewsHref: K,
|
|
1194
1194
|
onProceed: A,
|
|
1195
1195
|
proceedHref: L,
|
|
1196
|
-
originalPriceLabel:
|
|
1196
|
+
originalPriceLabel: re,
|
|
1197
1197
|
discountedPriceLabel: Y,
|
|
1198
|
-
discountPillLabel:
|
|
1199
|
-
analytics:
|
|
1200
|
-
onProceedGuidance:
|
|
1198
|
+
discountPillLabel: F,
|
|
1199
|
+
analytics: E,
|
|
1200
|
+
onProceedGuidance: I,
|
|
1201
1201
|
onLocaleChange: Q,
|
|
1202
|
-
imageComponent:
|
|
1202
|
+
imageComponent: M = Ye,
|
|
1203
1203
|
resolvedUtmBannerImageUrl: ce,
|
|
1204
1204
|
children: ee
|
|
1205
1205
|
}) => {
|
|
1206
|
-
const [
|
|
1206
|
+
const [ie, le] = D("landing"), [te, ke] = D(a ?? "en"), [he, Ce] = D({
|
|
1207
1207
|
...ga,
|
|
1208
1208
|
...f
|
|
1209
1209
|
}), me = q(!0);
|
|
1210
1210
|
J(() => {
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1211
|
+
const se = fa();
|
|
1212
|
+
se && ke(se);
|
|
1213
1213
|
}, []), J(() => {
|
|
1214
|
-
|
|
1214
|
+
ha(te);
|
|
1215
1215
|
}, [te]), J(() => {
|
|
1216
1216
|
if (me.current) {
|
|
1217
1217
|
me.current = !1;
|
|
@@ -1224,99 +1224,99 @@ const nt = xt(null), ga = {
|
|
|
1224
1224
|
locale: a,
|
|
1225
1225
|
showLanguageSelector: o,
|
|
1226
1226
|
showSheet: s,
|
|
1227
|
-
userId:
|
|
1228
|
-
isGlobal:
|
|
1227
|
+
userId: m,
|
|
1228
|
+
isGlobal: p,
|
|
1229
1229
|
variant: _,
|
|
1230
1230
|
initialFormValues: f,
|
|
1231
|
-
autoOpenPlanSheet:
|
|
1232
|
-
googleMapsApiKey:
|
|
1231
|
+
autoOpenPlanSheet: T,
|
|
1232
|
+
googleMapsApiKey: x,
|
|
1233
1233
|
atlasSearchLocalities: $,
|
|
1234
|
-
googleMapsAutocompleteEnabled:
|
|
1234
|
+
googleMapsAutocompleteEnabled: O,
|
|
1235
1235
|
enableConsultationScheduling: N,
|
|
1236
|
-
fetchConsultationSlots:
|
|
1236
|
+
fetchConsultationSlots: u,
|
|
1237
1237
|
logoUrl: G,
|
|
1238
|
-
reportImageUrl:
|
|
1238
|
+
reportImageUrl: v,
|
|
1239
1239
|
reportImagePriority: H,
|
|
1240
1240
|
backgroundImagePriority: y,
|
|
1241
|
-
universityLogoUrls:
|
|
1242
|
-
sampleReportHref:
|
|
1241
|
+
universityLogoUrls: h,
|
|
1242
|
+
sampleReportHref: w,
|
|
1243
1243
|
onViewSampleReport: Z,
|
|
1244
|
-
ctaHref:
|
|
1244
|
+
ctaHref: S,
|
|
1245
1245
|
onCtaClick: U,
|
|
1246
|
-
onBack:
|
|
1246
|
+
onBack: j,
|
|
1247
1247
|
readMoreReviewsHref: K,
|
|
1248
1248
|
onProceed: A,
|
|
1249
1249
|
proceedHref: L,
|
|
1250
|
-
originalPriceLabel:
|
|
1250
|
+
originalPriceLabel: re,
|
|
1251
1251
|
discountedPriceLabel: Y,
|
|
1252
|
-
discountPillLabel:
|
|
1253
|
-
analytics:
|
|
1254
|
-
onProceedGuidance:
|
|
1252
|
+
discountPillLabel: F,
|
|
1253
|
+
analytics: E,
|
|
1254
|
+
onProceedGuidance: I,
|
|
1255
1255
|
onLocaleChange: Q,
|
|
1256
|
-
imageComponent:
|
|
1256
|
+
imageComponent: M,
|
|
1257
1257
|
resolvedUtmBannerImageUrl: ce
|
|
1258
1258
|
}),
|
|
1259
1259
|
[
|
|
1260
1260
|
a,
|
|
1261
1261
|
o,
|
|
1262
1262
|
s,
|
|
1263
|
-
|
|
1264
|
-
|
|
1263
|
+
m,
|
|
1264
|
+
p,
|
|
1265
1265
|
_,
|
|
1266
1266
|
f,
|
|
1267
|
-
|
|
1268
|
-
|
|
1267
|
+
T,
|
|
1268
|
+
x,
|
|
1269
1269
|
$,
|
|
1270
|
-
|
|
1270
|
+
O,
|
|
1271
1271
|
N,
|
|
1272
|
-
|
|
1272
|
+
u,
|
|
1273
1273
|
G,
|
|
1274
|
-
|
|
1274
|
+
v,
|
|
1275
1275
|
H,
|
|
1276
1276
|
y,
|
|
1277
|
-
|
|
1278
|
-
|
|
1277
|
+
h,
|
|
1278
|
+
w,
|
|
1279
1279
|
Z,
|
|
1280
|
-
j,
|
|
1281
|
-
U,
|
|
1282
1280
|
S,
|
|
1281
|
+
U,
|
|
1282
|
+
j,
|
|
1283
1283
|
K,
|
|
1284
1284
|
A,
|
|
1285
1285
|
L,
|
|
1286
|
-
|
|
1286
|
+
re,
|
|
1287
1287
|
Y,
|
|
1288
|
-
|
|
1289
|
-
I,
|
|
1288
|
+
F,
|
|
1290
1289
|
E,
|
|
1290
|
+
I,
|
|
1291
1291
|
Q,
|
|
1292
|
-
|
|
1292
|
+
M,
|
|
1293
1293
|
ce
|
|
1294
1294
|
]
|
|
1295
|
-
),
|
|
1296
|
-
|
|
1297
|
-
}, [X.analytics]),
|
|
1298
|
-
|
|
1299
|
-
}, [X.onBack]),
|
|
1295
|
+
), l = ye(() => {
|
|
1296
|
+
le("form");
|
|
1297
|
+
}, [X.analytics]), P = ye(() => {
|
|
1298
|
+
le("landing"), X.onBack?.();
|
|
1299
|
+
}, [X.onBack]), oe = Ne(
|
|
1300
1300
|
() => ({
|
|
1301
|
-
view:
|
|
1301
|
+
view: ie,
|
|
1302
1302
|
locale: te,
|
|
1303
1303
|
setLocale: ke,
|
|
1304
1304
|
config: X,
|
|
1305
|
-
formValues:
|
|
1306
|
-
setFormValues:
|
|
1307
|
-
goToForm:
|
|
1308
|
-
goToPage:
|
|
1305
|
+
formValues: he,
|
|
1306
|
+
setFormValues: Ce,
|
|
1307
|
+
goToForm: l,
|
|
1308
|
+
goToPage: P,
|
|
1309
1309
|
onProceed: X.onProceed,
|
|
1310
1310
|
onProceedGuidance: X.onProceedGuidance
|
|
1311
1311
|
}),
|
|
1312
|
-
[
|
|
1312
|
+
[ie, te, X, he, l, P]
|
|
1313
1313
|
);
|
|
1314
|
-
return /* @__PURE__ */ e.jsx(nt.Provider, { value:
|
|
1314
|
+
return /* @__PURE__ */ e.jsx(nt.Provider, { value: oe, children: ee });
|
|
1315
1315
|
};
|
|
1316
1316
|
function Le() {
|
|
1317
1317
|
return rt(nt);
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function ai() {
|
|
1320
1320
|
const a = rt(nt);
|
|
1321
1321
|
if (!a)
|
|
1322
1322
|
throw new Error(
|
|
@@ -1331,7 +1331,7 @@ const _a = "_header_19172_1", ba = "_centered_19172_8", bt = {
|
|
|
1331
1331
|
t: a,
|
|
1332
1332
|
onBack: o,
|
|
1333
1333
|
className: s = "",
|
|
1334
|
-
align:
|
|
1334
|
+
align: m = "left"
|
|
1335
1335
|
}) => /* @__PURE__ */ e.jsx(
|
|
1336
1336
|
qt,
|
|
1337
1337
|
{
|
|
@@ -1339,29 +1339,29 @@ const _a = "_header_19172_1", ba = "_centered_19172_8", bt = {
|
|
|
1339
1339
|
subtitle: a("formSubtitle"),
|
|
1340
1340
|
onBack: o,
|
|
1341
1341
|
backAriaLabel: a("back"),
|
|
1342
|
-
className: `${bt.header} ${
|
|
1342
|
+
className: `${bt.header} ${m === "center" ? bt.centered : ""} ${s}`
|
|
1343
1343
|
}
|
|
1344
|
-
), ka = "_wrap_119w3_1", va = "_card_119w3_5", xa = "_cardInner_119w3_12", wa = "_field_119w3_44", Pa = "_labelRow_119w3_48",
|
|
1344
|
+
), ka = "_wrap_119w3_1", va = "_card_119w3_5", xa = "_cardInner_119w3_12", wa = "_field_119w3_44", Pa = "_labelRow_119w3_48", Ta = "_label_119w3_48", Ca = "_req_119w3_57", Sa = "_help_119w3_61", ja = "_choiceRow_119w3_68", Na = "_choiceBtn_119w3_74", Aa = "_choiceBtnActive_119w3_99", Ra = "_infoBtn_119w3_105", La = "_infoImg_119w3_122", Ea = "_infoWrap_119w3_128", Ia = "_tooltip_119w3_134", Ba = "_tooltipArrow_119w3_150", Da = "_inputWrap_119w3_161", Oa = "_isdWrap_119w3_165", Fa = "_phoneInputGroup_119w3_169", Ma = "_isdSelectWrap_119w3_178", $a = "_isdSelectTrigger_119w3_197", Ga = "_isdDropdown_119w3_214", Ua = "_isdSearchWrap_119w3_229", Ka = "_isdSearchInput_119w3_237", Wa = "_isdOption_119w3_255", Ha = "_isdOptionActive_119w3_275", Ya = "_isdCountryName_119w3_281", qa = "_isdCountryCode_119w3_288", Va = "_isdNoResult_119w3_295", za = "_suggestions_119w3_302", Ja = "_suggestionItem_119w3_315", Qa = "_suggestionMain_119w3_333", Xa = "_suggestionSecondary_119w3_339", Za = "_suggestionsHint_119w3_344", er = "_timePopover_119w3_366", tr = "_timePickerRow_119w3_382", ar = "_timePickerSelect_119w3_388", rr = "_timePickerColon_119w3_404", nr = "_meridiemToggle_119w3_412", or = "_meridiemBtn_119w3_421", ir = "_meridiemActive_119w3_436", lr = "_timePopoverActions_119w3_441", sr = "_timePopoverBtn_119w3_447", cr = "_timePopoverOk_119w3_466", dr = "_input_119w3_161", ur = "_phoneInput_119w3_169", pr = "_iconBtn_119w3_519", mr = "_iconBtnInteractive_119w3_525", fr = "_iconImg_119w3_544", hr = "_checkboxRow_119w3_550", gr = "_checkbox_119w3_550", _r = "_checkboxText_119w3_588", n = {
|
|
1345
1345
|
wrap: ka,
|
|
1346
1346
|
card: va,
|
|
1347
1347
|
cardInner: xa,
|
|
1348
1348
|
field: wa,
|
|
1349
1349
|
labelRow: Pa,
|
|
1350
|
-
label:
|
|
1351
|
-
req:
|
|
1352
|
-
help:
|
|
1353
|
-
choiceRow:
|
|
1350
|
+
label: Ta,
|
|
1351
|
+
req: Ca,
|
|
1352
|
+
help: Sa,
|
|
1353
|
+
choiceRow: ja,
|
|
1354
1354
|
choiceBtn: Na,
|
|
1355
1355
|
choiceBtnActive: Aa,
|
|
1356
1356
|
infoBtn: Ra,
|
|
1357
1357
|
infoImg: La,
|
|
1358
|
-
infoWrap:
|
|
1359
|
-
tooltip:
|
|
1358
|
+
infoWrap: Ea,
|
|
1359
|
+
tooltip: Ia,
|
|
1360
1360
|
tooltipArrow: Ba,
|
|
1361
1361
|
inputWrap: Da,
|
|
1362
|
-
isdWrap:
|
|
1363
|
-
phoneInputGroup:
|
|
1364
|
-
isdSelectWrap:
|
|
1362
|
+
isdWrap: Oa,
|
|
1363
|
+
phoneInputGroup: Fa,
|
|
1364
|
+
isdSelectWrap: Ma,
|
|
1365
1365
|
isdSelectTrigger: $a,
|
|
1366
1366
|
isdDropdown: Ga,
|
|
1367
1367
|
isdSearchWrap: Ua,
|
|
@@ -1390,82 +1390,82 @@ const _a = "_header_19172_1", ba = "_centered_19172_8", bt = {
|
|
|
1390
1390
|
phoneInput: ur,
|
|
1391
1391
|
iconBtn: pr,
|
|
1392
1392
|
iconBtnInteractive: mr,
|
|
1393
|
-
iconImg:
|
|
1394
|
-
checkboxRow:
|
|
1393
|
+
iconImg: fr,
|
|
1394
|
+
checkboxRow: hr,
|
|
1395
1395
|
checkbox: gr,
|
|
1396
1396
|
checkboxText: _r
|
|
1397
1397
|
};
|
|
1398
1398
|
let Ve = null;
|
|
1399
|
-
const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : Ve || (Ve = new Promise((s,
|
|
1400
|
-
const
|
|
1399
|
+
const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : Ve || (Ve = new Promise((s, m) => {
|
|
1400
|
+
const p = document.querySelector(
|
|
1401
1401
|
'script[data-google-maps-places="true"]'
|
|
1402
1402
|
);
|
|
1403
|
-
if (
|
|
1404
|
-
|
|
1403
|
+
if (p) {
|
|
1404
|
+
p.addEventListener("load", () => s()), p.addEventListener(
|
|
1405
1405
|
"error",
|
|
1406
|
-
() =>
|
|
1406
|
+
() => m(new Error("Failed to load Google Maps API"))
|
|
1407
1407
|
);
|
|
1408
1408
|
return;
|
|
1409
1409
|
}
|
|
1410
1410
|
const _ = document.createElement("script"), f = new URL("https://maps.googleapis.com/maps/api/js");
|
|
1411
1411
|
f.searchParams.set("key", a), f.searchParams.set("libraries", "places"), f.searchParams.set("loading", "async"), o && f.searchParams.set("language", o), _.src = f.toString(), _.async = !0, _.defer = !0, _.setAttribute("data-google-maps-places", "true"), _.onload = () => {
|
|
1412
|
-
const
|
|
1412
|
+
const T = Date.now(), x = () => {
|
|
1413
1413
|
if (window.google?.maps?.places) {
|
|
1414
1414
|
s();
|
|
1415
1415
|
return;
|
|
1416
1416
|
}
|
|
1417
|
-
if (Date.now() -
|
|
1418
|
-
|
|
1417
|
+
if (Date.now() - T > 2e3) {
|
|
1418
|
+
m(
|
|
1419
1419
|
new Error(
|
|
1420
1420
|
"Google Maps loaded but Places library is unavailable. Check API key restrictions / enabled APIs."
|
|
1421
1421
|
)
|
|
1422
1422
|
);
|
|
1423
1423
|
return;
|
|
1424
1424
|
}
|
|
1425
|
-
window.setTimeout(
|
|
1425
|
+
window.setTimeout(x, 50);
|
|
1426
1426
|
};
|
|
1427
|
-
|
|
1428
|
-
}, _.onerror = () =>
|
|
1427
|
+
x();
|
|
1428
|
+
}, _.onerror = () => m(new Error("Failed to load Google Maps API")), document.head.appendChild(_);
|
|
1429
1429
|
}), Ve), yr = (a) => {
|
|
1430
|
-
const { apiKey: o, language: s = "en", restrictCountry:
|
|
1431
|
-
|
|
1432
|
-
}, [
|
|
1430
|
+
const { apiKey: o, language: s = "en", restrictCountry: m, deferLoad: p = !1 } = a, [_, f] = D(!1), [T, x] = D([]), [$, O] = D(!1), [N, u] = D(null), [G, v] = D(!p), H = q(null), y = q(null), h = q(null), w = ye(() => {
|
|
1431
|
+
p && v(!0);
|
|
1432
|
+
}, [p]);
|
|
1433
1433
|
J(() => {
|
|
1434
1434
|
if (!o || !G) {
|
|
1435
|
-
f(!1),
|
|
1435
|
+
f(!1), u(null);
|
|
1436
1436
|
return;
|
|
1437
1437
|
}
|
|
1438
1438
|
br(o, s).then(() => {
|
|
1439
1439
|
H.current = new google.maps.places.AutocompleteService();
|
|
1440
|
-
const
|
|
1441
|
-
y.current = new google.maps.places.PlacesService(
|
|
1442
|
-
}).catch((
|
|
1443
|
-
f(!1),
|
|
1440
|
+
const j = document.createElement("div");
|
|
1441
|
+
y.current = new google.maps.places.PlacesService(j), h.current = new google.maps.places.AutocompleteSessionToken(), f(!0), u(null);
|
|
1442
|
+
}).catch((j) => {
|
|
1443
|
+
f(!1), u(j?.message || "Failed to load location service");
|
|
1444
1444
|
});
|
|
1445
1445
|
}, [o, s, G]);
|
|
1446
1446
|
const Z = ye(
|
|
1447
|
-
async (
|
|
1448
|
-
if (!
|
|
1449
|
-
|
|
1447
|
+
async (j) => {
|
|
1448
|
+
if (!j || j.length < 2 || !H.current) {
|
|
1449
|
+
x([]);
|
|
1450
1450
|
return;
|
|
1451
1451
|
}
|
|
1452
|
-
|
|
1452
|
+
O(!0);
|
|
1453
1453
|
try {
|
|
1454
1454
|
const K = {
|
|
1455
|
-
input:
|
|
1455
|
+
input: j,
|
|
1456
1456
|
types: ["(cities)"],
|
|
1457
|
-
sessionToken:
|
|
1457
|
+
sessionToken: h.current ?? void 0
|
|
1458
1458
|
};
|
|
1459
|
-
|
|
1460
|
-
const A = await new Promise((L,
|
|
1459
|
+
m && (K.componentRestrictions = { country: m });
|
|
1460
|
+
const A = await new Promise((L, re) => {
|
|
1461
1461
|
H.current.getPlacePredictions(
|
|
1462
1462
|
K,
|
|
1463
|
-
(Y,
|
|
1464
|
-
|
|
1463
|
+
(Y, F) => {
|
|
1464
|
+
F === google.maps.places.PlacesServiceStatus.OK && Y ? L(Y) : F === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? L([]) : re(new Error(`Places API error: ${F}`));
|
|
1465
1465
|
}
|
|
1466
1466
|
);
|
|
1467
1467
|
});
|
|
1468
|
-
|
|
1468
|
+
x(
|
|
1469
1469
|
A.map((L) => ({
|
|
1470
1470
|
place_id: L.place_id,
|
|
1471
1471
|
description: L.description,
|
|
@@ -1476,58 +1476,58 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1476
1476
|
}))
|
|
1477
1477
|
);
|
|
1478
1478
|
} catch {
|
|
1479
|
-
|
|
1479
|
+
x([]);
|
|
1480
1480
|
} finally {
|
|
1481
|
-
|
|
1481
|
+
O(!1);
|
|
1482
1482
|
}
|
|
1483
1483
|
},
|
|
1484
|
-
[
|
|
1485
|
-
),
|
|
1486
|
-
async (
|
|
1484
|
+
[m]
|
|
1485
|
+
), S = ye(
|
|
1486
|
+
async (j) => {
|
|
1487
1487
|
if (!y.current) return null;
|
|
1488
1488
|
try {
|
|
1489
1489
|
const K = await new Promise(
|
|
1490
|
-
(
|
|
1490
|
+
(E, I) => {
|
|
1491
1491
|
y.current.getDetails(
|
|
1492
1492
|
{
|
|
1493
|
-
placeId:
|
|
1493
|
+
placeId: j,
|
|
1494
1494
|
fields: ["geometry", "address_components", "formatted_address"],
|
|
1495
|
-
sessionToken:
|
|
1495
|
+
sessionToken: h.current ?? void 0
|
|
1496
1496
|
},
|
|
1497
|
-
(Q,
|
|
1498
|
-
|
|
1497
|
+
(Q, M) => {
|
|
1498
|
+
M === google.maps.places.PlacesServiceStatus.OK && Q ? E(Q) : I(new Error(`Place details error: ${M}`));
|
|
1499
1499
|
}
|
|
1500
1500
|
);
|
|
1501
1501
|
}
|
|
1502
1502
|
);
|
|
1503
|
-
|
|
1503
|
+
h.current = new google.maps.places.AutocompleteSessionToken();
|
|
1504
1504
|
const A = K.geometry?.location?.lat() || 0, L = K.geometry?.location?.lng() || 0;
|
|
1505
|
-
let
|
|
1506
|
-
return K.address_components?.forEach((
|
|
1507
|
-
|
|
1505
|
+
let re = "", Y = "", F = "";
|
|
1506
|
+
return K.address_components?.forEach((E) => {
|
|
1507
|
+
E.types.includes("locality") && (re = E.long_name), E.types.includes("administrative_area_level_1") && (Y = E.long_name), E.types.includes("country") && (F = E.long_name);
|
|
1508
1508
|
}), {
|
|
1509
1509
|
display_name: K.formatted_address || "",
|
|
1510
1510
|
lat: A,
|
|
1511
1511
|
lng: L,
|
|
1512
|
-
city:
|
|
1512
|
+
city: re,
|
|
1513
1513
|
state: Y,
|
|
1514
|
-
country:
|
|
1514
|
+
country: F
|
|
1515
1515
|
};
|
|
1516
1516
|
} catch {
|
|
1517
1517
|
return null;
|
|
1518
1518
|
}
|
|
1519
1519
|
},
|
|
1520
1520
|
[]
|
|
1521
|
-
), U = ye(() =>
|
|
1521
|
+
), U = ye(() => x([]), []);
|
|
1522
1522
|
return {
|
|
1523
1523
|
isLoaded: _,
|
|
1524
|
-
predictions:
|
|
1524
|
+
predictions: T,
|
|
1525
1525
|
isSearching: $,
|
|
1526
1526
|
loadError: N,
|
|
1527
1527
|
searchPlaces: Z,
|
|
1528
|
-
getPlaceDetails:
|
|
1528
|
+
getPlaceDetails: S,
|
|
1529
1529
|
clearPredictions: U,
|
|
1530
|
-
triggerLoad:
|
|
1530
|
+
triggerLoad: w
|
|
1531
1531
|
// Call this to start loading Google Maps when deferred
|
|
1532
1532
|
};
|
|
1533
1533
|
}, yt = (a) => typeof a == "number" && Number.isFinite(a), kr = (a) => {
|
|
@@ -1538,53 +1538,53 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1538
1538
|
restrictCountry: a?.restrictCountry
|
|
1539
1539
|
};
|
|
1540
1540
|
}, vr = (a) => {
|
|
1541
|
-
const { searchLocalities: o, restrictCountry: s } = a, [
|
|
1541
|
+
const { searchLocalities: o, restrictCountry: s } = a, [m, p] = D([]), [_, f] = D(!1), [T, x] = D(null), $ = q(0);
|
|
1542
1542
|
J(() => {
|
|
1543
|
-
|
|
1543
|
+
x(null);
|
|
1544
1544
|
}, [o]);
|
|
1545
|
-
const
|
|
1546
|
-
async (
|
|
1547
|
-
if (!
|
|
1548
|
-
|
|
1545
|
+
const O = ye(
|
|
1546
|
+
async (u) => {
|
|
1547
|
+
if (!u || u.length < 2 || !o) {
|
|
1548
|
+
p([]);
|
|
1549
1549
|
return;
|
|
1550
1550
|
}
|
|
1551
1551
|
const G = ++$.current;
|
|
1552
|
-
f(!0),
|
|
1552
|
+
f(!0), x(null);
|
|
1553
1553
|
try {
|
|
1554
|
-
const
|
|
1554
|
+
const v = kr({ restrictCountry: s }), H = await o(u, v);
|
|
1555
1555
|
if (G !== $.current) return;
|
|
1556
1556
|
const y = (H || []).filter(
|
|
1557
|
-
(
|
|
1558
|
-
).map((
|
|
1559
|
-
id:
|
|
1560
|
-
description:
|
|
1561
|
-
secondary_text:
|
|
1562
|
-
lat:
|
|
1563
|
-
lng:
|
|
1557
|
+
(h) => !!h?.id && !!h?.description && yt(h?.lat) && yt(h?.lng)
|
|
1558
|
+
).map((h) => ({
|
|
1559
|
+
id: h.id,
|
|
1560
|
+
description: h.description,
|
|
1561
|
+
secondary_text: h.secondaryText,
|
|
1562
|
+
lat: h.lat,
|
|
1563
|
+
lng: h.lng
|
|
1564
1564
|
}));
|
|
1565
|
-
|
|
1566
|
-
} catch (
|
|
1565
|
+
p(y);
|
|
1566
|
+
} catch (v) {
|
|
1567
1567
|
if (G !== $.current) return;
|
|
1568
|
-
|
|
1568
|
+
p([]), x(v?.message || "Failed to fetch locations");
|
|
1569
1569
|
} finally {
|
|
1570
1570
|
G === $.current && f(!1);
|
|
1571
1571
|
}
|
|
1572
1572
|
},
|
|
1573
1573
|
[s, o]
|
|
1574
|
-
), N = ye(() =>
|
|
1574
|
+
), N = ye(() => p([]), []);
|
|
1575
1575
|
return {
|
|
1576
|
-
predictions:
|
|
1576
|
+
predictions: m,
|
|
1577
1577
|
isSearching: _,
|
|
1578
|
-
loadError:
|
|
1579
|
-
searchPlaces:
|
|
1578
|
+
loadError: T,
|
|
1579
|
+
searchPlaces: O,
|
|
1580
1580
|
clearPredictions: N
|
|
1581
1581
|
};
|
|
1582
|
-
},
|
|
1582
|
+
}, Fe = {
|
|
1583
1583
|
time: "https://srm-cdn.a4b.io/yoda/1770372014782.svg",
|
|
1584
1584
|
location: "https://srm-cdn.a4b.io/yoda/1770372031092.svg",
|
|
1585
1585
|
date: "https://srm-cdn.a4b.io/yoda/1770372045894.svg",
|
|
1586
1586
|
info: "https://srm-cdn.a4b.io/yoda/1770372066357.svg"
|
|
1587
|
-
},
|
|
1587
|
+
}, St = [
|
|
1588
1588
|
{ code: "+1", country: "USA / Canada" },
|
|
1589
1589
|
{ code: "+7", country: "Russia / Kazakhstan" },
|
|
1590
1590
|
{ code: "+20", country: "Egypt" },
|
|
@@ -1654,59 +1654,59 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1654
1654
|
{ code: "+975", country: "Bhutan" },
|
|
1655
1655
|
{ code: "+976", country: "Mongolia" },
|
|
1656
1656
|
{ code: "+977", country: "Nepal" }
|
|
1657
|
-
], tt =
|
|
1657
|
+
], tt = St.map((a) => a.code), jt = 10, ot = (a) => a.replace(/\D/g, ""), kt = (a) => ot(a).slice(0, jt), xr = (a) => ot(a).length === jt, wr = (a, o, s) => xr(a) ? s.phone ? { shouldTrack: !1 } : (s.phone = !0, { shouldTrack: !0, fullPhone: `${o}-${ot(a)}` }) : (s.phone = !1, { shouldTrack: !1 }), Pr = {}, Tr = ({
|
|
1658
1658
|
t: a,
|
|
1659
1659
|
values: o,
|
|
1660
1660
|
onChange: s,
|
|
1661
|
-
phoneIsdCode:
|
|
1662
|
-
onPhoneIsdCodeChange:
|
|
1661
|
+
phoneIsdCode: m,
|
|
1662
|
+
onPhoneIsdCodeChange: p,
|
|
1663
1663
|
showV1ExtraFields: _ = !1,
|
|
1664
1664
|
analytics: f,
|
|
1665
|
-
googleMapsApiKey:
|
|
1666
|
-
atlasSearchLocalities:
|
|
1665
|
+
googleMapsApiKey: T,
|
|
1666
|
+
atlasSearchLocalities: x,
|
|
1667
1667
|
googleMapsAutocompleteEnabled: $,
|
|
1668
|
-
className:
|
|
1668
|
+
className: O = ""
|
|
1669
1669
|
}) => {
|
|
1670
|
-
const N = Le(),
|
|
1670
|
+
const N = Le(), u = N?.config?.analytics ?? f, G = N?.config.isGlobal ?? !0, v = N?.config?.googleMapsApiKey, H = N?.config?.atlasSearchLocalities, y = N?.config?.googleMapsAutocompleteEnabled, [h, w] = D(!1), [Z, S] = D(""), U = q(null), j = q(null), K = q({}), A = (r) => s({ ...o, ...r }), L = (r, c) => {
|
|
1671
1671
|
if (r === "phone") {
|
|
1672
|
-
const V = wr(c,
|
|
1673
|
-
V.shouldTrack &&
|
|
1672
|
+
const V = wr(c, m, K.current);
|
|
1673
|
+
V.shouldTrack && u?.trackPhoneSectionFilled?.({ phone: V.fullPhone });
|
|
1674
1674
|
return;
|
|
1675
1675
|
}
|
|
1676
1676
|
c.trim() && !K.current[r] && (K.current[r] = !0, {
|
|
1677
|
-
fullName: () =>
|
|
1678
|
-
dateOfBirth: () =>
|
|
1679
|
-
birthTime: () =>
|
|
1680
|
-
birthPlace: () =>
|
|
1677
|
+
fullName: () => u?.trackNameSectionFilled?.(),
|
|
1678
|
+
dateOfBirth: () => u?.trackDobFilled?.(),
|
|
1679
|
+
birthTime: () => u?.trackTimeFilled?.(),
|
|
1680
|
+
birthPlace: () => u?.trackPlaceOfBirthChosen?.()
|
|
1681
1681
|
}[r]?.());
|
|
1682
|
-
},
|
|
1682
|
+
}, re = (r) => {
|
|
1683
1683
|
const c = r.target.value;
|
|
1684
|
-
c.trim() &&
|
|
1685
|
-
}, Y = Z.trim().toLowerCase(),
|
|
1684
|
+
c.trim() && u?.trackEmailSectionFilled?.({ email: c });
|
|
1685
|
+
}, Y = Z.trim().toLowerCase(), F = St.filter((r) => Y ? r.country.toLowerCase().includes(Y) || r.code.includes(Y) : !0), E = q(null);
|
|
1686
1686
|
q(null);
|
|
1687
|
-
const
|
|
1687
|
+
const I = q(null), Q = q(0), M = q(null), [ce, ee] = D(!1), [ie, le] = D({ hour12: 12, minute: "00", meridiem: "AM" }), te = (r) => String(r).padStart(2, "0"), ke = (r) => {
|
|
1688
1688
|
const c = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
|
|
1689
1689
|
if (!c) return r;
|
|
1690
1690
|
const V = Number(c[1]), _e = c[2], Ue = V >= 12 ? "PM" : "AM";
|
|
1691
1691
|
return `${V % 12 === 0 ? 12 : V % 12}:${_e} ${Ue}`;
|
|
1692
|
-
},
|
|
1692
|
+
}, he = (r) => {
|
|
1693
1693
|
const c = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
|
|
1694
1694
|
if (!c) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
1695
1695
|
const V = Number(c[1]), _e = c[2], Ue = V >= 12 ? "PM" : "AM";
|
|
1696
1696
|
return { hour12: V % 12 === 0 ? 12 : V % 12, minute: _e, meridiem: Ue };
|
|
1697
|
-
},
|
|
1697
|
+
}, Ce = (r) => {
|
|
1698
1698
|
const c = Math.min(12, Math.max(1, r.hour12)), V = /^([0-5]\d)$/.test(r.minute) ? r.minute : "00";
|
|
1699
1699
|
let _e = c % 12;
|
|
1700
1700
|
return r.meridiem === "PM" && (_e += 12), `${te(_e)}:${V}`;
|
|
1701
|
-
}, me = q(null), [X,
|
|
1701
|
+
}, me = q(null), [X, l] = D(!1), P = q(o.birthPlace ?? ""), [oe, se] = D(
|
|
1702
1702
|
null
|
|
1703
|
-
), ve =
|
|
1703
|
+
), ve = T ?? v ?? Pr?.VITE_GOOGLE_MAPS_API_KEY, je = x ?? H, de = $ ?? y ?? !0, ue = (o.birthPlace ?? "").trim(), Se = G ? void 0 : "in", ge = yr({
|
|
1704
1704
|
apiKey: de ? ve : void 0,
|
|
1705
1705
|
language: "en",
|
|
1706
|
-
restrictCountry:
|
|
1706
|
+
restrictCountry: Se
|
|
1707
1707
|
}), we = vr({
|
|
1708
|
-
searchLocalities: de ? void 0 :
|
|
1709
|
-
restrictCountry:
|
|
1708
|
+
searchLocalities: de ? void 0 : je,
|
|
1709
|
+
restrictCountry: Se
|
|
1710
1710
|
}), Pe = de ? ge.predictions.map((r) => ({
|
|
1711
1711
|
id: r.place_id,
|
|
1712
1712
|
description: r.description,
|
|
@@ -1719,14 +1719,14 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1719
1719
|
secondaryText: r.secondary_text,
|
|
1720
1720
|
lat: r.lat,
|
|
1721
1721
|
lng: r.lng
|
|
1722
|
-
})),
|
|
1722
|
+
})), Ee = de ? ge.isSearching : we.isSearching, Ie = de ? ge.loadError : we.loadError, C = de ? !!ve : !!je, Be = de ? ge.searchPlaces : we.searchPlaces, Me = de ? ge.clearPredictions : we.clearPredictions, $e = q(() => {
|
|
1723
1723
|
});
|
|
1724
1724
|
$e.current = () => {
|
|
1725
|
-
(o.birthPlace ?? "") !==
|
|
1725
|
+
(o.birthPlace ?? "") !== P.current && A({
|
|
1726
1726
|
birthPlace: "",
|
|
1727
1727
|
birthPlaceLat: void 0,
|
|
1728
1728
|
birthPlaceLng: void 0
|
|
1729
|
-
}),
|
|
1729
|
+
}), l(!1);
|
|
1730
1730
|
}, J(() => {
|
|
1731
1731
|
const r = (c) => {
|
|
1732
1732
|
me.current && (me.current.contains(c.target) || $e.current());
|
|
@@ -1734,50 +1734,50 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1734
1734
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
1735
1735
|
}, []), J(() => {
|
|
1736
1736
|
const r = (c) => {
|
|
1737
|
-
U.current && (U.current.contains(c.target) || (
|
|
1737
|
+
U.current && (U.current.contains(c.target) || (w(!1), S("")));
|
|
1738
1738
|
};
|
|
1739
1739
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
1740
1740
|
}, []), J(() => {
|
|
1741
|
-
if (!
|
|
1741
|
+
if (!h) return;
|
|
1742
1742
|
const r = window.setTimeout(() => {
|
|
1743
|
-
|
|
1743
|
+
j.current?.focus();
|
|
1744
1744
|
}, 0);
|
|
1745
1745
|
return () => window.clearTimeout(r);
|
|
1746
|
-
}, [
|
|
1746
|
+
}, [h]), J(() => {
|
|
1747
1747
|
if (!X) return;
|
|
1748
1748
|
if (ue.length < 2) {
|
|
1749
|
-
|
|
1749
|
+
Me();
|
|
1750
1750
|
return;
|
|
1751
1751
|
}
|
|
1752
1752
|
const r = window.setTimeout(async () => {
|
|
1753
1753
|
await Be(ue);
|
|
1754
1754
|
}, 250);
|
|
1755
1755
|
return () => window.clearTimeout(r);
|
|
1756
|
-
}, [
|
|
1756
|
+
}, [Me, X, ue, Be]);
|
|
1757
1757
|
const Ge = (r) => {
|
|
1758
1758
|
const c = r.current;
|
|
1759
1759
|
if (!(!c || c.disabled)) {
|
|
1760
|
-
if (document.activeElement === c &&
|
|
1760
|
+
if (document.activeElement === c && I.current === c && Date.now() - Q.current < 6e4) {
|
|
1761
1761
|
c.blur();
|
|
1762
1762
|
return;
|
|
1763
1763
|
}
|
|
1764
1764
|
if (typeof c.showPicker == "function") {
|
|
1765
|
-
c.showPicker(),
|
|
1765
|
+
c.showPicker(), I.current = c, Q.current = Date.now();
|
|
1766
1766
|
return;
|
|
1767
1767
|
}
|
|
1768
|
-
c.focus(),
|
|
1768
|
+
c.focus(), I.current = c, Q.current = Date.now();
|
|
1769
1769
|
}
|
|
1770
1770
|
};
|
|
1771
1771
|
return J(() => {
|
|
1772
1772
|
const r = (c) => {
|
|
1773
|
-
|
|
1773
|
+
M.current && (M.current.contains(c.target) || ee(!1));
|
|
1774
1774
|
};
|
|
1775
1775
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
1776
1776
|
}, []), J(() => {
|
|
1777
1777
|
const r = (V) => {
|
|
1778
|
-
V.target?.closest?.("[data-info-tooltip]") == null &&
|
|
1778
|
+
V.target?.closest?.("[data-info-tooltip]") == null && se(null);
|
|
1779
1779
|
}, c = (V) => {
|
|
1780
|
-
V.key === "Escape" &&
|
|
1780
|
+
V.key === "Escape" && se(null);
|
|
1781
1781
|
};
|
|
1782
1782
|
return document.addEventListener("mousedown", r), document.addEventListener("keydown", c), () => {
|
|
1783
1783
|
document.removeEventListener("mousedown", r), document.removeEventListener("keydown", c);
|
|
@@ -1785,7 +1785,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1785
1785
|
}, []), /* @__PURE__ */ e.jsx(
|
|
1786
1786
|
"section",
|
|
1787
1787
|
{
|
|
1788
|
-
className: `${n.wrap} ${
|
|
1788
|
+
className: `${n.wrap} ${O}`,
|
|
1789
1789
|
"aria-label": a("formTitle"),
|
|
1790
1790
|
children: /* @__PURE__ */ e.jsx("div", { className: n.card, children: /* @__PURE__ */ e.jsxs("div", { className: n.cardInner, children: [
|
|
1791
1791
|
/* @__PURE__ */ e.jsxs("div", { className: n.field, children: [
|
|
@@ -1800,7 +1800,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1800
1800
|
className: n.input,
|
|
1801
1801
|
type: "text",
|
|
1802
1802
|
value: o.fullName,
|
|
1803
|
-
onFocus: () =>
|
|
1803
|
+
onFocus: () => u?.trackNameSectionClicked?.(),
|
|
1804
1804
|
onChange: (r) => {
|
|
1805
1805
|
const c = r.target.value;
|
|
1806
1806
|
A({ fullName: c }), L("fullName", c);
|
|
@@ -1823,11 +1823,11 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1823
1823
|
type: "button",
|
|
1824
1824
|
className: n.isdSelectTrigger,
|
|
1825
1825
|
"aria-haspopup": "listbox",
|
|
1826
|
-
"aria-expanded":
|
|
1826
|
+
"aria-expanded": h,
|
|
1827
1827
|
onClick: () => {
|
|
1828
|
-
|
|
1828
|
+
w((r) => !r), S("");
|
|
1829
1829
|
},
|
|
1830
|
-
children:
|
|
1830
|
+
children: m
|
|
1831
1831
|
}
|
|
1832
1832
|
) }),
|
|
1833
1833
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1837,7 +1837,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1837
1837
|
className: `${n.input} ${n.phoneInput}`,
|
|
1838
1838
|
type: "tel",
|
|
1839
1839
|
value: o.phone ?? "",
|
|
1840
|
-
onFocus: () =>
|
|
1840
|
+
onFocus: () => u?.trackPhoneSectionClicked?.(),
|
|
1841
1841
|
onChange: (r) => {
|
|
1842
1842
|
const c = r.target.value;
|
|
1843
1843
|
A({ phone: kt(c) }), L("phone", kt(c));
|
|
@@ -1852,7 +1852,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1852
1852
|
}
|
|
1853
1853
|
)
|
|
1854
1854
|
] }),
|
|
1855
|
-
|
|
1855
|
+
h && /* @__PURE__ */ e.jsxs(
|
|
1856
1856
|
"div",
|
|
1857
1857
|
{
|
|
1858
1858
|
className: n.isdDropdown,
|
|
@@ -1862,24 +1862,24 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1862
1862
|
/* @__PURE__ */ e.jsx("div", { className: n.isdSearchWrap, children: /* @__PURE__ */ e.jsx(
|
|
1863
1863
|
"input",
|
|
1864
1864
|
{
|
|
1865
|
-
ref:
|
|
1865
|
+
ref: j,
|
|
1866
1866
|
type: "text",
|
|
1867
1867
|
value: Z,
|
|
1868
|
-
onChange: (r) =>
|
|
1868
|
+
onChange: (r) => S(r.target.value),
|
|
1869
1869
|
placeholder: "Search country",
|
|
1870
1870
|
className: n.isdSearchInput,
|
|
1871
1871
|
"aria-label": "Search country"
|
|
1872
1872
|
}
|
|
1873
1873
|
) }),
|
|
1874
|
-
|
|
1874
|
+
F.length > 0 ? F.map((r) => /* @__PURE__ */ e.jsxs(
|
|
1875
1875
|
"button",
|
|
1876
1876
|
{
|
|
1877
1877
|
type: "button",
|
|
1878
1878
|
role: "option",
|
|
1879
|
-
"aria-selected": r.code ===
|
|
1880
|
-
className: `${n.isdOption} ${r.code ===
|
|
1879
|
+
"aria-selected": r.code === m,
|
|
1880
|
+
className: `${n.isdOption} ${r.code === m ? n.isdOptionActive : ""}`,
|
|
1881
1881
|
onClick: () => {
|
|
1882
|
-
|
|
1882
|
+
p(r.code), w(!1), S("");
|
|
1883
1883
|
},
|
|
1884
1884
|
children: [
|
|
1885
1885
|
/* @__PURE__ */ e.jsx("span", { className: n.isdCountryName, children: r.country }),
|
|
@@ -1912,7 +1912,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1912
1912
|
type: "button",
|
|
1913
1913
|
className: `${n.choiceBtn} ${o.gender === "male" ? n.choiceBtnActive : ""}`,
|
|
1914
1914
|
onClick: () => {
|
|
1915
|
-
A({ gender: "male" }),
|
|
1915
|
+
A({ gender: "male" }), u?.trackGenderSelected?.({
|
|
1916
1916
|
gender: "male"
|
|
1917
1917
|
});
|
|
1918
1918
|
},
|
|
@@ -1928,7 +1928,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1928
1928
|
type: "button",
|
|
1929
1929
|
className: `${n.choiceBtn} ${o.gender === "female" ? n.choiceBtnActive : ""}`,
|
|
1930
1930
|
onClick: () => {
|
|
1931
|
-
A({ gender: "female" }),
|
|
1931
|
+
A({ gender: "female" }), u?.trackGenderSelected?.({
|
|
1932
1932
|
gender: "female"
|
|
1933
1933
|
});
|
|
1934
1934
|
},
|
|
@@ -1954,11 +1954,11 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1954
1954
|
className: n.input,
|
|
1955
1955
|
type: "email",
|
|
1956
1956
|
value: o.email,
|
|
1957
|
-
onFocus: () =>
|
|
1957
|
+
onFocus: () => u?.trackEmailSectionClicked?.(),
|
|
1958
1958
|
onChange: (r) => {
|
|
1959
1959
|
A({ email: r.target.value });
|
|
1960
1960
|
},
|
|
1961
|
-
onBlur:
|
|
1961
|
+
onBlur: re,
|
|
1962
1962
|
placeholder: a("formEmailPlaceholder"),
|
|
1963
1963
|
autoComplete: "email",
|
|
1964
1964
|
required: !0,
|
|
@@ -1979,22 +1979,22 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1979
1979
|
type: "button",
|
|
1980
1980
|
className: n.infoBtn,
|
|
1981
1981
|
"aria-label": a("info"),
|
|
1982
|
-
"aria-expanded":
|
|
1982
|
+
"aria-expanded": oe === "dob",
|
|
1983
1983
|
onClick: () => {
|
|
1984
|
-
|
|
1984
|
+
se((r) => r === "dob" ? null : "dob"), u?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
1985
1985
|
},
|
|
1986
1986
|
children: /* @__PURE__ */ e.jsx(
|
|
1987
1987
|
"img",
|
|
1988
1988
|
{
|
|
1989
1989
|
className: n.infoImg,
|
|
1990
|
-
src:
|
|
1990
|
+
src: Fe.info,
|
|
1991
1991
|
alt: "",
|
|
1992
1992
|
"aria-hidden": !0
|
|
1993
1993
|
}
|
|
1994
1994
|
)
|
|
1995
1995
|
}
|
|
1996
1996
|
),
|
|
1997
|
-
|
|
1997
|
+
oe === "dob" && /* @__PURE__ */ e.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
|
|
1998
1998
|
a("formDobInfo"),
|
|
1999
1999
|
/* @__PURE__ */ e.jsx("span", { className: n.tooltipArrow, "aria-hidden": !0 })
|
|
2000
2000
|
] })
|
|
@@ -2007,7 +2007,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2007
2007
|
id: "kundli-dob",
|
|
2008
2008
|
className: n.input,
|
|
2009
2009
|
type: "date",
|
|
2010
|
-
ref:
|
|
2010
|
+
ref: E,
|
|
2011
2011
|
value: o.dateOfBirth,
|
|
2012
2012
|
max: (() => {
|
|
2013
2013
|
const r = /* @__PURE__ */ new Date();
|
|
@@ -2015,12 +2015,12 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2015
2015
|
})(),
|
|
2016
2016
|
onChange: (r) => {
|
|
2017
2017
|
const c = r.target.value, V = /* @__PURE__ */ new Date(), _e = `${V.getFullYear()}-${te(V.getMonth() + 1)}-${te(V.getDate())}`;
|
|
2018
|
-
c && c > _e || (A({ dateOfBirth: c }), L("dateOfBirth", c),
|
|
2018
|
+
c && c > _e || (A({ dateOfBirth: c }), L("dateOfBirth", c), I.current = null);
|
|
2019
2019
|
},
|
|
2020
|
-
onFocus: () =>
|
|
2021
|
-
onClick: () => Ge(
|
|
2020
|
+
onFocus: () => u?.trackDobClicked?.(),
|
|
2021
|
+
onClick: () => Ge(E),
|
|
2022
2022
|
onBlur: () => {
|
|
2023
|
-
|
|
2023
|
+
I.current === E.current && (I.current = null);
|
|
2024
2024
|
}
|
|
2025
2025
|
}
|
|
2026
2026
|
),
|
|
@@ -2032,13 +2032,13 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2032
2032
|
"aria-label": "Open date picker",
|
|
2033
2033
|
onMouseDown: (r) => r.preventDefault(),
|
|
2034
2034
|
onClick: (r) => {
|
|
2035
|
-
r.preventDefault(), r.stopPropagation(), Ge(
|
|
2035
|
+
r.preventDefault(), r.stopPropagation(), Ge(E);
|
|
2036
2036
|
},
|
|
2037
2037
|
children: /* @__PURE__ */ e.jsx(
|
|
2038
2038
|
"img",
|
|
2039
2039
|
{
|
|
2040
2040
|
className: n.iconImg,
|
|
2041
|
-
src:
|
|
2041
|
+
src: Fe.date,
|
|
2042
2042
|
alt: "",
|
|
2043
2043
|
"aria-hidden": !0
|
|
2044
2044
|
}
|
|
@@ -2060,28 +2060,28 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2060
2060
|
type: "button",
|
|
2061
2061
|
className: n.infoBtn,
|
|
2062
2062
|
"aria-label": a("info"),
|
|
2063
|
-
"aria-expanded":
|
|
2063
|
+
"aria-expanded": oe === "time",
|
|
2064
2064
|
onClick: () => {
|
|
2065
|
-
|
|
2065
|
+
u?.trackInfoIconClicked?.({ fieldName: "time" }), se((r) => r === "time" ? null : "time");
|
|
2066
2066
|
},
|
|
2067
2067
|
children: /* @__PURE__ */ e.jsx(
|
|
2068
2068
|
"img",
|
|
2069
2069
|
{
|
|
2070
2070
|
className: n.infoImg,
|
|
2071
|
-
src:
|
|
2071
|
+
src: Fe.info,
|
|
2072
2072
|
alt: "",
|
|
2073
2073
|
"aria-hidden": !0
|
|
2074
2074
|
}
|
|
2075
2075
|
)
|
|
2076
2076
|
}
|
|
2077
2077
|
),
|
|
2078
|
-
|
|
2078
|
+
oe === "time" && /* @__PURE__ */ e.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
|
|
2079
2079
|
a("formBirthTimeInfo"),
|
|
2080
2080
|
/* @__PURE__ */ e.jsx("span", { className: n.tooltipArrow, "aria-hidden": !0 })
|
|
2081
2081
|
] })
|
|
2082
2082
|
] })
|
|
2083
2083
|
] }),
|
|
2084
|
-
/* @__PURE__ */ e.jsxs("div", { className: n.inputWrap, ref:
|
|
2084
|
+
/* @__PURE__ */ e.jsxs("div", { className: n.inputWrap, ref: M, children: [
|
|
2085
2085
|
/* @__PURE__ */ e.jsx(
|
|
2086
2086
|
"input",
|
|
2087
2087
|
{
|
|
@@ -2090,7 +2090,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2090
2090
|
type: "text",
|
|
2091
2091
|
value: o.birthTime ? ke(o.birthTime) : "",
|
|
2092
2092
|
readOnly: !0,
|
|
2093
|
-
onFocus: () =>
|
|
2093
|
+
onFocus: () => u?.trackTimeClicked?.(),
|
|
2094
2094
|
onChange: (r) => {
|
|
2095
2095
|
const c = r.target.value;
|
|
2096
2096
|
A({ birthTime: c }), L("birthTime", c);
|
|
@@ -2098,7 +2098,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2098
2098
|
disabled: o.birthTimeUnknown,
|
|
2099
2099
|
placeholder: "HH:MM AM",
|
|
2100
2100
|
onClick: () => {
|
|
2101
|
-
o.birthTimeUnknown || (
|
|
2101
|
+
o.birthTimeUnknown || (le(he(o.birthTime || "12:00")), ee((r) => !r));
|
|
2102
2102
|
}
|
|
2103
2103
|
}
|
|
2104
2104
|
),
|
|
@@ -2111,13 +2111,13 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2111
2111
|
disabled: o.birthTimeUnknown,
|
|
2112
2112
|
onMouseDown: (r) => r.preventDefault(),
|
|
2113
2113
|
onClick: (r) => {
|
|
2114
|
-
r.preventDefault(), r.stopPropagation(), !o.birthTimeUnknown && (
|
|
2114
|
+
r.preventDefault(), r.stopPropagation(), !o.birthTimeUnknown && (le(he(o.birthTime || "12:00")), ee((c) => !c));
|
|
2115
2115
|
},
|
|
2116
2116
|
children: /* @__PURE__ */ e.jsx(
|
|
2117
2117
|
"img",
|
|
2118
2118
|
{
|
|
2119
2119
|
className: n.iconImg,
|
|
2120
|
-
src:
|
|
2120
|
+
src: Fe.time,
|
|
2121
2121
|
alt: "",
|
|
2122
2122
|
"aria-hidden": !0
|
|
2123
2123
|
}
|
|
@@ -2136,8 +2136,8 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2136
2136
|
"select",
|
|
2137
2137
|
{
|
|
2138
2138
|
className: n.timePickerSelect,
|
|
2139
|
-
value:
|
|
2140
|
-
onChange: (r) =>
|
|
2139
|
+
value: ie.hour12,
|
|
2140
|
+
onChange: (r) => le((c) => ({
|
|
2141
2141
|
...c,
|
|
2142
2142
|
hour12: Number(r.target.value)
|
|
2143
2143
|
})),
|
|
@@ -2150,8 +2150,8 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2150
2150
|
"select",
|
|
2151
2151
|
{
|
|
2152
2152
|
className: n.timePickerSelect,
|
|
2153
|
-
value:
|
|
2154
|
-
onChange: (r) =>
|
|
2153
|
+
value: ie.minute,
|
|
2154
|
+
onChange: (r) => le((c) => ({ ...c, minute: r.target.value })),
|
|
2155
2155
|
"aria-label": "Minute",
|
|
2156
2156
|
children: Array.from({ length: 60 }, (r, c) => te(c)).map(
|
|
2157
2157
|
(r) => /* @__PURE__ */ e.jsx("option", { value: r, children: r }, r)
|
|
@@ -2163,8 +2163,8 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2163
2163
|
"button",
|
|
2164
2164
|
{
|
|
2165
2165
|
type: "button",
|
|
2166
|
-
className: `${n.meridiemBtn} ${
|
|
2167
|
-
onClick: () =>
|
|
2166
|
+
className: `${n.meridiemBtn} ${ie.meridiem === "AM" ? n.meridiemActive : ""}`,
|
|
2167
|
+
onClick: () => le((r) => ({ ...r, meridiem: "AM" })),
|
|
2168
2168
|
children: "AM"
|
|
2169
2169
|
}
|
|
2170
2170
|
),
|
|
@@ -2172,8 +2172,8 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2172
2172
|
"button",
|
|
2173
2173
|
{
|
|
2174
2174
|
type: "button",
|
|
2175
|
-
className: `${n.meridiemBtn} ${
|
|
2176
|
-
onClick: () =>
|
|
2175
|
+
className: `${n.meridiemBtn} ${ie.meridiem === "PM" ? n.meridiemActive : ""}`,
|
|
2176
|
+
onClick: () => le((r) => ({ ...r, meridiem: "PM" })),
|
|
2177
2177
|
children: "PM"
|
|
2178
2178
|
}
|
|
2179
2179
|
)
|
|
@@ -2195,7 +2195,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2195
2195
|
type: "button",
|
|
2196
2196
|
className: `${n.timePopoverBtn} ${n.timePopoverOk}`,
|
|
2197
2197
|
onClick: () => {
|
|
2198
|
-
const r =
|
|
2198
|
+
const r = Ce(ie);
|
|
2199
2199
|
A({ birthTime: r }), L("birthTime", r), ee(!1);
|
|
2200
2200
|
},
|
|
2201
2201
|
"aria-label": "OK",
|
|
@@ -2236,7 +2236,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2236
2236
|
type: "checkbox",
|
|
2237
2237
|
checked: o.birthTimeUnknown,
|
|
2238
2238
|
onChange: (r) => {
|
|
2239
|
-
|
|
2239
|
+
u?.trackTimeCheckboxClicked?.(), A({
|
|
2240
2240
|
birthTimeUnknown: r.target.checked,
|
|
2241
2241
|
birthTime: r.target.checked ? "" : o.birthTime
|
|
2242
2242
|
});
|
|
@@ -2270,24 +2270,24 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2270
2270
|
type: "button",
|
|
2271
2271
|
className: n.infoBtn,
|
|
2272
2272
|
"aria-label": a("info"),
|
|
2273
|
-
"aria-expanded":
|
|
2273
|
+
"aria-expanded": oe === "place",
|
|
2274
2274
|
onClick: () => {
|
|
2275
|
-
|
|
2275
|
+
u?.trackInfoIconClicked?.({
|
|
2276
2276
|
fieldName: "birthPlace"
|
|
2277
|
-
}),
|
|
2277
|
+
}), se((r) => r === "place" ? null : "place");
|
|
2278
2278
|
},
|
|
2279
2279
|
children: /* @__PURE__ */ e.jsx(
|
|
2280
2280
|
"img",
|
|
2281
2281
|
{
|
|
2282
2282
|
className: n.infoImg,
|
|
2283
|
-
src:
|
|
2283
|
+
src: Fe.info,
|
|
2284
2284
|
alt: "",
|
|
2285
2285
|
"aria-hidden": !0
|
|
2286
2286
|
}
|
|
2287
2287
|
)
|
|
2288
2288
|
}
|
|
2289
2289
|
),
|
|
2290
|
-
|
|
2290
|
+
oe === "place" && /* @__PURE__ */ e.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
|
|
2291
2291
|
a("formBirthPlaceInfo"),
|
|
2292
2292
|
/* @__PURE__ */ e.jsx("span", { className: n.tooltipArrow, "aria-hidden": !0 })
|
|
2293
2293
|
] })
|
|
@@ -2307,10 +2307,10 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2307
2307
|
birthPlace: c,
|
|
2308
2308
|
birthPlaceLat: void 0,
|
|
2309
2309
|
birthPlaceLng: void 0
|
|
2310
|
-
}), L("birthPlace", c),
|
|
2310
|
+
}), L("birthPlace", c), l(!0);
|
|
2311
2311
|
},
|
|
2312
2312
|
onFocus: () => {
|
|
2313
|
-
|
|
2313
|
+
u?.trackPlaceOfBirthClicked?.(), l(!0);
|
|
2314
2314
|
},
|
|
2315
2315
|
placeholder: a("formBirthPlacePlaceholder"),
|
|
2316
2316
|
autoComplete: "address-level2"
|
|
@@ -2320,7 +2320,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2320
2320
|
"img",
|
|
2321
2321
|
{
|
|
2322
2322
|
className: n.iconImg,
|
|
2323
|
-
src:
|
|
2323
|
+
src: Fe.location,
|
|
2324
2324
|
alt: "",
|
|
2325
2325
|
"aria-hidden": !0
|
|
2326
2326
|
}
|
|
@@ -2332,15 +2332,15 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2332
2332
|
className: n.suggestionItem,
|
|
2333
2333
|
onClick: async () => {
|
|
2334
2334
|
const c = r.description;
|
|
2335
|
-
if (
|
|
2335
|
+
if (P.current = c, A({
|
|
2336
2336
|
birthPlace: c,
|
|
2337
2337
|
birthPlaceLat: r.lat,
|
|
2338
2338
|
birthPlaceLng: r.lng
|
|
2339
|
-
}),
|
|
2339
|
+
}), Me(), l(!1), de) {
|
|
2340
2340
|
const V = await ge.getPlaceDetails(
|
|
2341
2341
|
r.id
|
|
2342
2342
|
);
|
|
2343
|
-
V && (
|
|
2343
|
+
V && (P.current = c, s({
|
|
2344
2344
|
...o,
|
|
2345
2345
|
birthPlace: c,
|
|
2346
2346
|
birthPlaceLat: V.lat,
|
|
@@ -2355,8 +2355,8 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2355
2355
|
},
|
|
2356
2356
|
r.id
|
|
2357
2357
|
)) }),
|
|
2358
|
-
X &&
|
|
2359
|
-
X &&
|
|
2358
|
+
X && C && Ee && /* @__PURE__ */ e.jsx("div", { className: n.suggestionsHint, children: "Loading…" }),
|
|
2359
|
+
X && C && !Ee && !!Ie && /* @__PURE__ */ e.jsx("div", { className: n.suggestionsHint, children: Ie })
|
|
2360
2360
|
] })
|
|
2361
2361
|
] }),
|
|
2362
2362
|
_ && /* @__PURE__ */ e.jsxs("div", { className: n.field, children: [
|
|
@@ -2378,7 +2378,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2378
2378
|
type: "button",
|
|
2379
2379
|
className: `${n.choiceBtn} ${o.language_code === "hi" ? n.choiceBtnActive : ""}`,
|
|
2380
2380
|
onClick: () => {
|
|
2381
|
-
A({ language_code: "hi" }),
|
|
2381
|
+
A({ language_code: "hi" }), u?.trackLanguageOfReportSelected?.({
|
|
2382
2382
|
language: "hi"
|
|
2383
2383
|
});
|
|
2384
2384
|
},
|
|
@@ -2394,7 +2394,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2394
2394
|
type: "button",
|
|
2395
2395
|
className: `${n.choiceBtn} ${o.language_code === "en" ? n.choiceBtnActive : ""}`,
|
|
2396
2396
|
onClick: () => {
|
|
2397
|
-
A({ language_code: "en" }),
|
|
2397
|
+
A({ language_code: "en" }), u?.trackLanguageOfReportSelected?.({
|
|
2398
2398
|
language: "en"
|
|
2399
2399
|
});
|
|
2400
2400
|
},
|
|
@@ -2410,7 +2410,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2410
2410
|
type: "button",
|
|
2411
2411
|
className: `${n.choiceBtn} ${o.language_code === "te" ? n.choiceBtnActive : ""}`,
|
|
2412
2412
|
onClick: () => {
|
|
2413
|
-
A({ language_code: "te" }),
|
|
2413
|
+
A({ language_code: "te" }), u?.trackLanguageOfReportSelected?.({
|
|
2414
2414
|
language: "te"
|
|
2415
2415
|
});
|
|
2416
2416
|
},
|
|
@@ -2426,7 +2426,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2426
2426
|
type: "button",
|
|
2427
2427
|
className: `${n.choiceBtn} ${o.language_code === "ta" ? n.choiceBtnActive : ""}`,
|
|
2428
2428
|
onClick: () => {
|
|
2429
|
-
A({ language_code: "ta" }),
|
|
2429
|
+
A({ language_code: "ta" }), u?.trackLanguageOfReportSelected?.({
|
|
2430
2430
|
language: "ta"
|
|
2431
2431
|
});
|
|
2432
2432
|
},
|
|
@@ -2442,7 +2442,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2442
2442
|
type: "button",
|
|
2443
2443
|
className: `${n.choiceBtn} ${o.language_code === "kn" ? n.choiceBtnActive : ""}`,
|
|
2444
2444
|
onClick: () => {
|
|
2445
|
-
A({ language_code: "kn" }),
|
|
2445
|
+
A({ language_code: "kn" }), u?.trackLanguageOfReportSelected?.({
|
|
2446
2446
|
language: "kn"
|
|
2447
2447
|
});
|
|
2448
2448
|
},
|
|
@@ -2458,7 +2458,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2458
2458
|
type: "button",
|
|
2459
2459
|
className: `${n.choiceBtn} ${o.language_code === "gu" ? n.choiceBtnActive : ""}`,
|
|
2460
2460
|
onClick: () => {
|
|
2461
|
-
A({ language_code: "gu" }),
|
|
2461
|
+
A({ language_code: "gu" }), u?.trackLanguageOfReportSelected?.({
|
|
2462
2462
|
language: "gu"
|
|
2463
2463
|
});
|
|
2464
2464
|
},
|
|
@@ -2474,7 +2474,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2474
2474
|
type: "button",
|
|
2475
2475
|
className: `${n.choiceBtn} ${o.language_code === "mr" ? n.choiceBtnActive : ""}`,
|
|
2476
2476
|
onClick: () => {
|
|
2477
|
-
A({ language_code: "mr" }),
|
|
2477
|
+
A({ language_code: "mr" }), u?.trackLanguageOfReportSelected?.({
|
|
2478
2478
|
language: "mr"
|
|
2479
2479
|
});
|
|
2480
2480
|
},
|
|
@@ -2490,12 +2490,12 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2490
2490
|
] }) })
|
|
2491
2491
|
}
|
|
2492
2492
|
);
|
|
2493
|
-
},
|
|
2494
|
-
ctaButton:
|
|
2495
|
-
ctaFilled:
|
|
2496
|
-
ctaFilledContent:
|
|
2493
|
+
}, Cr = "_ctaButton_rhimw_2", Sr = "_ctaFilled_rhimw_21", jr = "_ctaFilledContent_rhimw_52", Nr = "_chevronRight_rhimw_61", He = {
|
|
2494
|
+
ctaButton: Cr,
|
|
2495
|
+
ctaFilled: Sr,
|
|
2496
|
+
ctaFilledContent: jr,
|
|
2497
2497
|
chevronRight: Nr
|
|
2498
|
-
}, Nt = "kundli-report-astrologer", Ar = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", Rr = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", Lr = "https://srm-cdn.a4b.io/yoda/1770707793537.svg",
|
|
2498
|
+
}, Nt = "kundli-report-astrologer", Ar = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", Rr = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", Lr = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", Er = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", Ir = ({ t: a }) => {
|
|
2499
2499
|
const s = Le()?.config.imageComponent ?? Ye;
|
|
2500
2500
|
return /* @__PURE__ */ e.jsxs("div", { className: Re.marqueeContent, children: [
|
|
2501
2501
|
/* @__PURE__ */ e.jsxs("span", { className: Re.badge, children: [
|
|
@@ -2541,7 +2541,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2541
2541
|
a("ctaSecurePayment")
|
|
2542
2542
|
] })
|
|
2543
2543
|
] });
|
|
2544
|
-
}, Br = (a) => /.+@.+\..+/.test(a), Dr = (a) => /^\d{10}$/.test(a),
|
|
2544
|
+
}, Br = (a) => /.+@.+\..+/.test(a), Dr = (a) => /^\d{10}$/.test(a), Or = (a, o, s) => {
|
|
2545
2545
|
if (!a.fullName.trim()) return "fullName";
|
|
2546
2546
|
if (o) {
|
|
2547
2547
|
if (!Br(a.email.trim())) return "email";
|
|
@@ -2553,55 +2553,55 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2553
2553
|
if (!a.language_code) return "language_code";
|
|
2554
2554
|
}
|
|
2555
2555
|
return !a.birthTimeUnknown && !a.birthTime ? "birthTime" : null;
|
|
2556
|
-
},
|
|
2556
|
+
}, Fr = ({
|
|
2557
2557
|
t: a,
|
|
2558
2558
|
values: o,
|
|
2559
2559
|
phoneIsdCode: s,
|
|
2560
|
-
requireV1ExtraFields:
|
|
2561
|
-
onValidationFailed:
|
|
2560
|
+
requireV1ExtraFields: m = !1,
|
|
2561
|
+
onValidationFailed: p,
|
|
2562
2562
|
onProceed: _,
|
|
2563
2563
|
onProceedGuidance: f,
|
|
2564
|
-
href:
|
|
2565
|
-
analytics:
|
|
2564
|
+
href: T,
|
|
2565
|
+
analytics: x,
|
|
2566
2566
|
className: $ = "",
|
|
2567
|
-
discountedPriceLabel:
|
|
2567
|
+
discountedPriceLabel: O,
|
|
2568
2568
|
discountPillLabel: N,
|
|
2569
|
-
showPlanSheet:
|
|
2569
|
+
showPlanSheet: u,
|
|
2570
2570
|
confirmPlan: G,
|
|
2571
|
-
planSheetOpen:
|
|
2571
|
+
planSheetOpen: v,
|
|
2572
2572
|
selectedPlan: H
|
|
2573
2573
|
}) => {
|
|
2574
|
-
const y = Le(),
|
|
2575
|
-
() =>
|
|
2576
|
-
[o,
|
|
2577
|
-
),
|
|
2578
|
-
if (
|
|
2579
|
-
Z &&
|
|
2574
|
+
const y = Le(), h = y?.config.isGlobal ?? !0, w = y?.config?.variant, Z = Ne(
|
|
2575
|
+
() => Or(o, h, m),
|
|
2576
|
+
[o, h, m]
|
|
2577
|
+
), S = Z === null, U = w === "v1" && y?.config?.showSheet, j = h ? O ?? a("formDiscountedPrice") : U ? "" : "₹499", K = y?.config.imageComponent ?? Ye, A = (re) => {
|
|
2578
|
+
if (re.preventDefault(), w === "v1" && !S && x?.trackKundliDetailedClicked?.(), !S) {
|
|
2579
|
+
Z && p?.(Z);
|
|
2580
2580
|
return;
|
|
2581
2581
|
}
|
|
2582
|
-
const Y = !!f &&
|
|
2582
|
+
const Y = !!f && w === "v1" && H?.id === Nt, F = (o.phone ?? "").trim(), E = {
|
|
2583
2583
|
...o,
|
|
2584
|
-
phone:
|
|
2584
|
+
phone: F && `${s}-${F}`
|
|
2585
2585
|
};
|
|
2586
2586
|
if (U) {
|
|
2587
|
-
|
|
2587
|
+
v ? G?.() : u?.(E);
|
|
2588
2588
|
return;
|
|
2589
2589
|
}
|
|
2590
|
-
|
|
2590
|
+
x?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), Y ? f(E) : _?.(E);
|
|
2591
2591
|
}, L = /* @__PURE__ */ e.jsx(
|
|
2592
2592
|
Vt,
|
|
2593
2593
|
{
|
|
2594
|
-
href:
|
|
2595
|
-
disabled:
|
|
2594
|
+
href: T,
|
|
2595
|
+
disabled: w === "v1" ? !1 : !S,
|
|
2596
2596
|
onClick: A,
|
|
2597
2597
|
"aria-label": a("formPriceAria"),
|
|
2598
|
-
className:
|
|
2599
|
-
children:
|
|
2600
|
-
U ? a("selectPackage") :
|
|
2598
|
+
className: w === "v1" && S ? He.ctaFilled : w === "v1" ? He.ctaButton : void 0,
|
|
2599
|
+
children: w === "v1" ? S ? /* @__PURE__ */ e.jsxs("span", { className: He.ctaFilledContent, children: [
|
|
2600
|
+
U ? a("selectPackage") : v && H ? `${a("proceedWithPlan")}${H.price}` : `${a("formProceed")} ${j}`,
|
|
2601
2601
|
/* @__PURE__ */ e.jsx(
|
|
2602
2602
|
K,
|
|
2603
2603
|
{
|
|
2604
|
-
src:
|
|
2604
|
+
src: Er,
|
|
2605
2605
|
alt: "",
|
|
2606
2606
|
className: He.chevronRight,
|
|
2607
2607
|
width: 20,
|
|
@@ -2612,7 +2612,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2612
2612
|
] }) : a("formCtaDefault") : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2613
2613
|
a("formProceed"),
|
|
2614
2614
|
" ",
|
|
2615
|
-
|
|
2615
|
+
j
|
|
2616
2616
|
] })
|
|
2617
2617
|
}
|
|
2618
2618
|
);
|
|
@@ -2620,26 +2620,26 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2620
2620
|
zt,
|
|
2621
2621
|
{
|
|
2622
2622
|
className: `${He.footerContainer} ${$}`,
|
|
2623
|
-
marquee: /* @__PURE__ */ e.jsx(Jt, { children: /* @__PURE__ */ e.jsx(
|
|
2623
|
+
marquee: /* @__PURE__ */ e.jsx(Jt, { children: /* @__PURE__ */ e.jsx(Ir, { t: a }) }),
|
|
2624
2624
|
children: L
|
|
2625
2625
|
}
|
|
2626
2626
|
);
|
|
2627
|
-
},
|
|
2627
|
+
}, Mr = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", $r = ({
|
|
2628
2628
|
t: a,
|
|
2629
2629
|
languageSelector: o,
|
|
2630
|
-
logoUrl: s =
|
|
2631
|
-
className:
|
|
2630
|
+
logoUrl: s = Mr,
|
|
2631
|
+
className: m = ""
|
|
2632
2632
|
}) => {
|
|
2633
|
-
const
|
|
2633
|
+
const p = Le(), _ = p?.config.isGlobal ?? !0, f = o != null && !_;
|
|
2634
2634
|
return /* @__PURE__ */ e.jsx(
|
|
2635
2635
|
Qt,
|
|
2636
2636
|
{
|
|
2637
2637
|
t: a,
|
|
2638
2638
|
logoUrl: s,
|
|
2639
|
-
imageComponent:
|
|
2639
|
+
imageComponent: p?.config.imageComponent,
|
|
2640
2640
|
languageSelector: o,
|
|
2641
2641
|
showLanguageSelector: f,
|
|
2642
|
-
className:
|
|
2642
|
+
className: m
|
|
2643
2643
|
}
|
|
2644
2644
|
);
|
|
2645
2645
|
}, At = () => /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
@@ -2689,7 +2689,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2689
2689
|
alt: "",
|
|
2690
2690
|
"aria-hidden": !0
|
|
2691
2691
|
}
|
|
2692
|
-
), qr = "_overlay_1u7x5_2", Vr = "_sheet_1u7x5_12", zr = "_sheetFullScreen_1u7x5_36", Jr = "_headerFull_1u7x5_50", Qr = "_titleFull_1u7x5_63", Xr = "_header_1u7x5_50", Zr = "_backBtn_1u7x5_84", en = "_title_1u7x5_63", tn = "_plansContainer_1u7x5_114", an = "_planCard_1u7x5_123", rn = "_withBadgeSpacing_1u7x5_137", nn = "_planCardSelected_1u7x5_141", on = "_planCardPopular_1u7x5_146", ln = "_popularBadge_1u7x5_155", sn = "_planCardInner_1u7x5_173", cn = "_planTitleRow_1u7x5_184", dn = "_planTitle_1u7x5_184", un = "_radioCircle_1u7x5_199", pn = "_radioChecked_1u7x5_212", mn = "_radioInner_1u7x5_217",
|
|
2692
|
+
), qr = "_overlay_1u7x5_2", Vr = "_sheet_1u7x5_12", zr = "_sheetFullScreen_1u7x5_36", Jr = "_headerFull_1u7x5_50", Qr = "_titleFull_1u7x5_63", Xr = "_header_1u7x5_50", Zr = "_backBtn_1u7x5_84", en = "_title_1u7x5_63", tn = "_plansContainer_1u7x5_114", an = "_planCard_1u7x5_123", rn = "_withBadgeSpacing_1u7x5_137", nn = "_planCardSelected_1u7x5_141", on = "_planCardPopular_1u7x5_146", ln = "_popularBadge_1u7x5_155", sn = "_planCardInner_1u7x5_173", cn = "_planTitleRow_1u7x5_184", dn = "_planTitle_1u7x5_184", un = "_radioCircle_1u7x5_199", pn = "_radioChecked_1u7x5_212", mn = "_radioInner_1u7x5_217", fn = "_priceRow_1u7x5_225", hn = "_price_1u7x5_225", gn = "_originalPrice_1u7x5_238", _n = "_savingsBadge_1u7x5_245", bn = "_featureList_1u7x5_255", yn = "_featureItem_1u7x5_264", kn = "_featureIcon_1u7x5_270", vn = "_featureText_1u7x5_276", xn = "_astrologerHeading_1u7x5_287", wn = "_astrologerList_1u7x5_294", Pn = "_astrologerCard_1u7x5_310", Tn = "_astrologerAvatar_1u7x5_326", Cn = "_astrologerAvatarPlaceholder_1u7x5_343", Sn = "_astrologerTop_1u7x5_349", jn = "_astrologerBasicInfo_1u7x5_355", Nn = "_astrologerName_1u7x5_362", An = "_astrologerExp_1u7x5_371", Rn = "_astrologerDivider_1u7x5_377", Ln = "_planDivider_1u7x5_383", En = "_astrologerCertList_1u7x5_390", In = "_astrologerCertItem_1u7x5_396", Bn = "_bullet_1u7x5_404", Dn = "_footer_1u7x5_409", On = "_proceedBtn_1u7x5_419", k = {
|
|
2693
2693
|
overlay: qr,
|
|
2694
2694
|
sheet: Vr,
|
|
2695
2695
|
sheetFullScreen: zr,
|
|
@@ -2710,8 +2710,8 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2710
2710
|
radioCircle: un,
|
|
2711
2711
|
radioChecked: pn,
|
|
2712
2712
|
radioInner: mn,
|
|
2713
|
-
priceRow:
|
|
2714
|
-
price:
|
|
2713
|
+
priceRow: fn,
|
|
2714
|
+
price: hn,
|
|
2715
2715
|
originalPrice: gn,
|
|
2716
2716
|
savingsBadge: _n,
|
|
2717
2717
|
featureList: bn,
|
|
@@ -2721,99 +2721,99 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2721
2721
|
astrologerHeading: xn,
|
|
2722
2722
|
astrologerList: wn,
|
|
2723
2723
|
astrologerCard: Pn,
|
|
2724
|
-
astrologerAvatar:
|
|
2725
|
-
astrologerAvatarPlaceholder:
|
|
2726
|
-
astrologerTop:
|
|
2727
|
-
astrologerBasicInfo:
|
|
2724
|
+
astrologerAvatar: Tn,
|
|
2725
|
+
astrologerAvatarPlaceholder: Cn,
|
|
2726
|
+
astrologerTop: Sn,
|
|
2727
|
+
astrologerBasicInfo: jn,
|
|
2728
2728
|
astrologerName: Nn,
|
|
2729
2729
|
astrologerExp: An,
|
|
2730
2730
|
astrologerDivider: Rn,
|
|
2731
2731
|
planDivider: Ln,
|
|
2732
|
-
astrologerCertList:
|
|
2733
|
-
astrologerCertItem:
|
|
2732
|
+
astrologerCertList: En,
|
|
2733
|
+
astrologerCertItem: In,
|
|
2734
2734
|
bullet: Bn,
|
|
2735
2735
|
footer: Dn,
|
|
2736
|
-
proceedBtn:
|
|
2737
|
-
},
|
|
2736
|
+
proceedBtn: On
|
|
2737
|
+
}, Fn = ({ title: a, onBack: o }) => /* @__PURE__ */ e.jsxs("div", { className: k.header, children: [
|
|
2738
2738
|
/* @__PURE__ */ e.jsx(
|
|
2739
2739
|
"button",
|
|
2740
2740
|
{
|
|
2741
|
-
className:
|
|
2741
|
+
className: k.backBtn,
|
|
2742
2742
|
onClick: o,
|
|
2743
2743
|
"aria-label": "Go back",
|
|
2744
2744
|
type: "button",
|
|
2745
2745
|
children: /* @__PURE__ */ e.jsx(it, {})
|
|
2746
2746
|
}
|
|
2747
2747
|
),
|
|
2748
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
2749
|
-
] }),
|
|
2750
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2748
|
+
/* @__PURE__ */ e.jsx("h2", { className: k.title, children: a })
|
|
2749
|
+
] }), Mn = ({ features: a, t: o }) => /* @__PURE__ */ e.jsx("ul", { className: k.featureList, "aria-label": "Plan features", children: a.map((s, m) => /* @__PURE__ */ e.jsxs("li", { className: k.featureItem, children: [
|
|
2750
|
+
/* @__PURE__ */ e.jsx("span", { className: k.featureIcon, children: s.included ? /* @__PURE__ */ e.jsx(At, {}) : /* @__PURE__ */ e.jsx(Gr, {}) }),
|
|
2751
2751
|
/* @__PURE__ */ e.jsx(
|
|
2752
2752
|
"span",
|
|
2753
2753
|
{
|
|
2754
|
-
className: `${
|
|
2754
|
+
className: `${k.featureText} `,
|
|
2755
2755
|
children: o?.(s.text) ?? s.text
|
|
2756
2756
|
}
|
|
2757
2757
|
)
|
|
2758
|
-
] },
|
|
2759
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2760
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2761
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2762
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
2763
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
2758
|
+
] }, m)) }), $n = ({ astrologer: a, t: o }) => /* @__PURE__ */ e.jsxs("div", { className: k.astrologerCard, children: [
|
|
2759
|
+
/* @__PURE__ */ e.jsxs("div", { className: k.astrologerTop, children: [
|
|
2760
|
+
/* @__PURE__ */ e.jsx("div", { className: k.astrologerAvatar, "aria-hidden": !0, children: a.imageUrl ? /* @__PURE__ */ e.jsx("img", { src: a.imageUrl, alt: o?.(a.name) ?? a.name, width: 40, height: 40 }) : /* @__PURE__ */ e.jsx("span", { className: k.astrologerAvatarPlaceholder, children: a.name.charAt(0) }) }),
|
|
2761
|
+
/* @__PURE__ */ e.jsxs("div", { className: k.astrologerBasicInfo, children: [
|
|
2762
|
+
/* @__PURE__ */ e.jsx("p", { className: k.astrologerName, children: o?.(a.name) ?? a.name }),
|
|
2763
|
+
/* @__PURE__ */ e.jsx("p", { className: k.astrologerExp, children: o?.(a.experience) ?? a.experience })
|
|
2764
2764
|
] })
|
|
2765
2765
|
] }),
|
|
2766
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2767
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2768
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2766
|
+
/* @__PURE__ */ e.jsx("div", { className: k.astrologerDivider }),
|
|
2767
|
+
/* @__PURE__ */ e.jsx("div", { className: k.astrologerCertList, children: a.certifications.map((s, m) => /* @__PURE__ */ e.jsxs("p", { className: k.astrologerCertItem, children: [
|
|
2768
|
+
/* @__PURE__ */ e.jsx("span", { className: k.bullet, children: "•" }),
|
|
2769
2769
|
" ",
|
|
2770
2770
|
o?.(s) ?? s
|
|
2771
|
-
] },
|
|
2772
|
-
] }), Gn = ({ label: a }) => /* @__PURE__ */ e.jsxs("div", { className:
|
|
2771
|
+
] }, m)) })
|
|
2772
|
+
] }), Gn = ({ label: a }) => /* @__PURE__ */ e.jsxs("div", { className: k.popularBadge, "aria-label": a, children: [
|
|
2773
2773
|
/* @__PURE__ */ e.jsx(Kr, {}),
|
|
2774
2774
|
/* @__PURE__ */ e.jsx("span", { children: a })
|
|
2775
|
-
] }), Un = ({ plan: a, isSelected: o, onSelect: s, t:
|
|
2776
|
-
const
|
|
2775
|
+
] }), Un = ({ plan: a, isSelected: o, onSelect: s, t: m }) => {
|
|
2776
|
+
const p = () => s(a.id), _ = (f) => {
|
|
2777
2777
|
(f.key === " " || f.key === "Enter") && (f.preventDefault(), s(a.id));
|
|
2778
2778
|
};
|
|
2779
2779
|
return /* @__PURE__ */ e.jsxs(
|
|
2780
2780
|
"div",
|
|
2781
2781
|
{
|
|
2782
2782
|
className: [
|
|
2783
|
-
|
|
2784
|
-
o ?
|
|
2785
|
-
o &&
|
|
2783
|
+
k.planCard,
|
|
2784
|
+
o ? k.planCardSelected : "",
|
|
2785
|
+
o && k.planCardPopular
|
|
2786
2786
|
].filter(Boolean).join(" "),
|
|
2787
|
-
onClick:
|
|
2787
|
+
onClick: p,
|
|
2788
2788
|
role: "radio",
|
|
2789
2789
|
"aria-checked": o,
|
|
2790
2790
|
tabIndex: 0,
|
|
2791
2791
|
onKeyDown: _,
|
|
2792
2792
|
"data-plan-id": a.id,
|
|
2793
2793
|
children: [
|
|
2794
|
-
a.badge && /* @__PURE__ */ e.jsx(Gn, { label:
|
|
2795
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2796
|
-
/* @__PURE__ */ e.jsxs("div", { className: `${
|
|
2797
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2794
|
+
a.badge && /* @__PURE__ */ e.jsx(Gn, { label: m?.(a.badge) ?? a.badge }),
|
|
2795
|
+
/* @__PURE__ */ e.jsxs("div", { className: k.planCardInner, children: [
|
|
2796
|
+
/* @__PURE__ */ e.jsxs("div", { className: `${k.planTitleRow} ${a.badge ? k.withBadgeSpacing : ""}`, children: [
|
|
2797
|
+
/* @__PURE__ */ e.jsx("span", { className: k.planTitle, children: m?.(a.title) ?? a.title }),
|
|
2798
2798
|
/* @__PURE__ */ e.jsx(
|
|
2799
2799
|
"span",
|
|
2800
2800
|
{
|
|
2801
|
-
className: `${
|
|
2801
|
+
className: `${k.radioCircle} ${o ? k.radioChecked : ""}`,
|
|
2802
2802
|
"aria-hidden": !0,
|
|
2803
|
-
children: o && /* @__PURE__ */ e.jsx("span", { className:
|
|
2803
|
+
children: o && /* @__PURE__ */ e.jsx("span", { className: k.radioInner })
|
|
2804
2804
|
}
|
|
2805
2805
|
)
|
|
2806
2806
|
] }),
|
|
2807
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2808
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2809
|
-
a.originalPrice && /* @__PURE__ */ e.jsx("span", { className:
|
|
2810
|
-
a.savingsLabel && /* @__PURE__ */ e.jsx("span", { className:
|
|
2807
|
+
/* @__PURE__ */ e.jsxs("div", { className: k.priceRow, children: [
|
|
2808
|
+
/* @__PURE__ */ e.jsx("span", { className: k.price, children: a.price }),
|
|
2809
|
+
a.originalPrice && /* @__PURE__ */ e.jsx("span", { className: k.originalPrice, children: a.originalPrice }),
|
|
2810
|
+
a.savingsLabel && /* @__PURE__ */ e.jsx("span", { className: k.savingsBadge, children: m?.(a.savingsLabel, { percent: 25 }) ?? a.savingsLabel })
|
|
2811
2811
|
] }),
|
|
2812
|
-
/* @__PURE__ */ e.jsx(
|
|
2813
|
-
a.astrologers && /* @__PURE__ */ e.jsx("div", { className:
|
|
2812
|
+
/* @__PURE__ */ e.jsx(Mn, { features: a.features, t: m }),
|
|
2813
|
+
a.astrologers && /* @__PURE__ */ e.jsx("div", { className: k.planDivider }),
|
|
2814
2814
|
a.astrologers && a.astrologers.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2815
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
2816
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2815
|
+
/* @__PURE__ */ e.jsx("p", { className: k.astrologerHeading, children: m?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
|
|
2816
|
+
/* @__PURE__ */ e.jsx("div", { className: k.astrologerList, role: "list", children: a.astrologers.map((f, T) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx($n, { astrologer: f, t: m }) }, T)) })
|
|
2817
2817
|
] })
|
|
2818
2818
|
] })
|
|
2819
2819
|
]
|
|
@@ -2827,13 +2827,13 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2827
2827
|
hour12: !0
|
|
2828
2828
|
});
|
|
2829
2829
|
}, Kn = (a, o = /* @__PURE__ */ new Date()) => {
|
|
2830
|
-
const s = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
2831
|
-
if (Number.isNaN(
|
|
2830
|
+
const s = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], m = /* @__PURE__ */ new Date(`${a}T00:00:00`);
|
|
2831
|
+
if (Number.isNaN(m.getTime()))
|
|
2832
2832
|
return { id: a, dayLabel: a, dayNum: "" };
|
|
2833
|
-
const
|
|
2834
|
-
(
|
|
2835
|
-
), f = _ === 0 ? "Today" : _ === 1 ? "Tomorrow" : s[
|
|
2836
|
-
return { id: a, dayLabel: f, dayNum: String(
|
|
2833
|
+
const p = (T) => new Date(T.getFullYear(), T.getMonth(), T.getDate()).getTime(), _ = Math.round(
|
|
2834
|
+
(p(m) - p(o)) / (1e3 * 60 * 60 * 24)
|
|
2835
|
+
), f = _ === 0 ? "Today" : _ === 1 ? "Tomorrow" : s[m.getDay()];
|
|
2836
|
+
return { id: a, dayLabel: f, dayNum: String(m.getDate()) };
|
|
2837
2837
|
}, Wn = [
|
|
2838
2838
|
"morning",
|
|
2839
2839
|
"afternoon",
|
|
@@ -2851,167 +2851,155 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2851
2851
|
{ code: "gu", labelKey: "formReportLanguageGujarati", label: "Gujarati" },
|
|
2852
2852
|
{ code: "mr", labelKey: "formReportLanguageMarathi", label: "Marathi" },
|
|
2853
2853
|
{ code: "ta", labelKey: "formReportLanguageTamil", label: "Tamil" }
|
|
2854
|
-
], Yn = "_overlay_h4rfr_2", qn = "_sheet_h4rfr_12", Vn = "_content_h4rfr_34", zn = "_header_h4rfr_41", Jn = "_backBtn_h4rfr_54", Qn = "_title_h4rfr_72", Xn = "
|
|
2854
|
+
], Yn = "_overlay_h4rfr_2", qn = "_sheet_h4rfr_12", Vn = "_content_h4rfr_34", zn = "_header_h4rfr_41", Jn = "_backBtn_h4rfr_54", Qn = "_title_h4rfr_72", Xn = "_languageRow_h4rfr_88", Zn = "_languageLabel_h4rfr_96", eo = "_languageDropdown_h4rfr_102", to = "_languageDropdownBtn_h4rfr_106", ao = "_languageMenu_h4rfr_121", ro = "_languageMenuItem_h4rfr_138", no = "_languageMenuItemSelected_h4rfr_152", oo = "_reportReadyBanner_h4rfr_159", io = "_reportReadyDuration_h4rfr_168", lo = "_trustRow_h4rfr_174", so = "_trustAvatars_h4rfr_185", co = "_trustText_h4rfr_198", uo = "_sectionHeading_h4rfr_309", po = "_dateTabs_h4rfr_317", mo = "_dateTab_h4rfr_317", fo = "_dateTabDivider_h4rfr_344", ho = "_dateTabSelected_h4rfr_354", go = "_dateTabLabel_h4rfr_360", _o = "_dateTabNum_h4rfr_366", bo = "_periodTabs_h4rfr_379", yo = "_periodTab_h4rfr_379", ko = "_periodTabSelected_h4rfr_405", vo = "_timeGrid_h4rfr_412", xo = "_timeSlot_h4rfr_419", wo = "_timeSlotSelected_h4rfr_435", Po = "_topicGrid_h4rfr_443", To = "_topicChip_h4rfr_449", Co = "_topicChipSelected_h4rfr_465", So = "_stateMessage_h4rfr_472", jo = "_loadingWrap_h4rfr_480", No = "_skeletonShimmer_h4rfr_485", Ao = "_skeletonDateTabs_h4rfr_499", Ro = "_skeletonDateTab_h4rfr_499", Lo = "_skeletonPeriodTabs_h4rfr_513", Eo = "_skeletonPeriodTab_h4rfr_513", Io = "_skeletonTimeGrid_h4rfr_528", Bo = "_skeletonTimeSlot_h4rfr_534", Do = "_retryBtn_h4rfr_539", Oo = "_footer_h4rfr_553", Fo = "_proceedBtn_h4rfr_560", Mo = "_proceedBtnDisabled_h4rfr_578", g = {
|
|
2855
2855
|
overlay: Yn,
|
|
2856
2856
|
sheet: qn,
|
|
2857
2857
|
content: Vn,
|
|
2858
2858
|
header: zn,
|
|
2859
2859
|
backBtn: Jn,
|
|
2860
2860
|
title: Qn,
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
skeletonShimmer: Go,
|
|
2904
|
-
skeletonDateTabs: Uo,
|
|
2905
|
-
skeletonDateTab: Ko,
|
|
2906
|
-
skeletonPeriodTabs: Wo,
|
|
2907
|
-
skeletonPeriodTab: Ho,
|
|
2908
|
-
skeletonTimeGrid: Yo,
|
|
2909
|
-
skeletonTimeSlot: qo,
|
|
2910
|
-
retryBtn: Vo,
|
|
2911
|
-
footer: zo,
|
|
2912
|
-
proceedBtn: Jo,
|
|
2913
|
-
proceedBtnDisabled: Qo
|
|
2914
|
-
}, Xo = {
|
|
2861
|
+
languageRow: Xn,
|
|
2862
|
+
languageLabel: Zn,
|
|
2863
|
+
languageDropdown: eo,
|
|
2864
|
+
languageDropdownBtn: to,
|
|
2865
|
+
languageMenu: ao,
|
|
2866
|
+
languageMenuItem: ro,
|
|
2867
|
+
languageMenuItemSelected: no,
|
|
2868
|
+
reportReadyBanner: oo,
|
|
2869
|
+
reportReadyDuration: io,
|
|
2870
|
+
trustRow: lo,
|
|
2871
|
+
trustAvatars: so,
|
|
2872
|
+
trustText: co,
|
|
2873
|
+
sectionHeading: uo,
|
|
2874
|
+
dateTabs: po,
|
|
2875
|
+
dateTab: mo,
|
|
2876
|
+
dateTabDivider: fo,
|
|
2877
|
+
dateTabSelected: ho,
|
|
2878
|
+
dateTabLabel: go,
|
|
2879
|
+
dateTabNum: _o,
|
|
2880
|
+
periodTabs: bo,
|
|
2881
|
+
periodTab: yo,
|
|
2882
|
+
periodTabSelected: ko,
|
|
2883
|
+
timeGrid: vo,
|
|
2884
|
+
timeSlot: xo,
|
|
2885
|
+
timeSlotSelected: wo,
|
|
2886
|
+
topicGrid: Po,
|
|
2887
|
+
topicChip: To,
|
|
2888
|
+
topicChipSelected: Co,
|
|
2889
|
+
stateMessage: So,
|
|
2890
|
+
loadingWrap: jo,
|
|
2891
|
+
skeletonShimmer: No,
|
|
2892
|
+
skeletonDateTabs: Ao,
|
|
2893
|
+
skeletonDateTab: Ro,
|
|
2894
|
+
skeletonPeriodTabs: Lo,
|
|
2895
|
+
skeletonPeriodTab: Eo,
|
|
2896
|
+
skeletonTimeGrid: Io,
|
|
2897
|
+
skeletonTimeSlot: Bo,
|
|
2898
|
+
retryBtn: Do,
|
|
2899
|
+
footer: Oo,
|
|
2900
|
+
proceedBtn: Fo,
|
|
2901
|
+
proceedBtnDisabled: Mo
|
|
2902
|
+
}, $o = {
|
|
2915
2903
|
morning: Wr,
|
|
2916
2904
|
afternoon: Hr,
|
|
2917
2905
|
evening: Yr
|
|
2918
|
-
},
|
|
2906
|
+
}, Go = {
|
|
2919
2907
|
morning: "planPeriodMorning",
|
|
2920
2908
|
afternoon: "planPeriodAfternoon",
|
|
2921
2909
|
evening: "planPeriodEvening"
|
|
2922
|
-
},
|
|
2910
|
+
}, Uo = ({
|
|
2923
2911
|
isOpen: a,
|
|
2924
2912
|
onClose: o,
|
|
2925
2913
|
onProceed: s,
|
|
2926
|
-
astrologers:
|
|
2927
|
-
t:
|
|
2914
|
+
astrologers: m,
|
|
2915
|
+
t: p,
|
|
2928
2916
|
analytics: _
|
|
2929
2917
|
}) => {
|
|
2930
|
-
const f = Le(),
|
|
2918
|
+
const f = Le(), T = f?.config.imageComponent ?? Ye, x = f?.config.fetchConsultationSlots, [$, O] = D(!1), [N, u] = D(!1), [G, v] = D({}), [H, y] = D("en"), [h, w] = D(!1), Z = q(null), S = Ne(
|
|
2931
2919
|
() => G[H]?.days ?? [],
|
|
2932
2920
|
[G, H]
|
|
2933
|
-
), [U,
|
|
2934
|
-
() =>
|
|
2935
|
-
[
|
|
2921
|
+
), [U, j] = D(""), [K, A] = D(""), [L, re] = D("morning"), [Y, F] = D(null), E = q(!1), I = Ne(
|
|
2922
|
+
() => S.filter((l) => l.has_availability && l.slots.length > 0),
|
|
2923
|
+
[S]
|
|
2936
2924
|
), Q = ye(() => {
|
|
2937
|
-
|
|
2938
|
-
|
|
2925
|
+
x && (O(!0), u(!1), x().then((l) => {
|
|
2926
|
+
v(l ?? {});
|
|
2939
2927
|
}).catch(() => {
|
|
2940
|
-
|
|
2941
|
-
}).finally(() =>
|
|
2942
|
-
}, [
|
|
2928
|
+
u(!0);
|
|
2929
|
+
}).finally(() => O(!1)));
|
|
2930
|
+
}, [x]);
|
|
2943
2931
|
J(() => {
|
|
2944
2932
|
if (!a) {
|
|
2945
|
-
|
|
2933
|
+
E.current = !1;
|
|
2946
2934
|
return;
|
|
2947
2935
|
}
|
|
2948
|
-
|
|
2936
|
+
j(""), y("en"), w(!1), Q();
|
|
2949
2937
|
}, [a]), J(() => {
|
|
2950
|
-
if (!
|
|
2951
|
-
const
|
|
2952
|
-
Z.current && !Z.current.contains(
|
|
2938
|
+
if (!h) return;
|
|
2939
|
+
const l = (P) => {
|
|
2940
|
+
Z.current && !Z.current.contains(P.target) && w(!1);
|
|
2953
2941
|
};
|
|
2954
|
-
return document.addEventListener("mousedown",
|
|
2955
|
-
}, [
|
|
2956
|
-
if (!
|
|
2957
|
-
A(""),
|
|
2942
|
+
return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
|
|
2943
|
+
}, [h]), J(() => {
|
|
2944
|
+
if (!I.length) {
|
|
2945
|
+
A(""), F(null);
|
|
2958
2946
|
return;
|
|
2959
2947
|
}
|
|
2960
|
-
const
|
|
2948
|
+
const l = I[0];
|
|
2961
2949
|
A(
|
|
2962
|
-
(
|
|
2950
|
+
(P) => I.some((oe) => oe.date === P) ? P : l.date
|
|
2963
2951
|
);
|
|
2964
|
-
}, [
|
|
2965
|
-
const
|
|
2966
|
-
() =>
|
|
2967
|
-
[
|
|
2952
|
+
}, [I]);
|
|
2953
|
+
const M = Ne(
|
|
2954
|
+
() => I.find((l) => l.date === K) ?? null,
|
|
2955
|
+
[I, K]
|
|
2968
2956
|
), ce = Ne(() => {
|
|
2969
|
-
if (!
|
|
2970
|
-
const
|
|
2971
|
-
return Wn.filter((
|
|
2972
|
-
}, [
|
|
2957
|
+
if (!M) return [];
|
|
2958
|
+
const l = new Set(M.slots.map((P) => P.period));
|
|
2959
|
+
return Wn.filter((P) => l.has(P));
|
|
2960
|
+
}, [M]);
|
|
2973
2961
|
J(() => {
|
|
2974
2962
|
if (!ce.length) {
|
|
2975
|
-
|
|
2963
|
+
re("morning"), F(null);
|
|
2976
2964
|
return;
|
|
2977
2965
|
}
|
|
2978
|
-
|
|
2979
|
-
(
|
|
2966
|
+
re(
|
|
2967
|
+
(l) => ce.includes(l) ? l : ce[0]
|
|
2980
2968
|
);
|
|
2981
2969
|
}, [ce]);
|
|
2982
|
-
const ee = Ne(() =>
|
|
2970
|
+
const ee = Ne(() => M ? M.slots.filter((l) => l.period === L) : [], [M, L]);
|
|
2983
2971
|
if (J(() => {
|
|
2984
2972
|
if (!ee.length) {
|
|
2985
|
-
|
|
2973
|
+
F(null);
|
|
2986
2974
|
return;
|
|
2987
2975
|
}
|
|
2988
|
-
|
|
2989
|
-
(
|
|
2976
|
+
F(
|
|
2977
|
+
(l) => l && ee.some((P) => P.start === l.start) ? l : ee[0]
|
|
2990
2978
|
);
|
|
2991
2979
|
}, [ee]), J(() => {
|
|
2992
|
-
a &&
|
|
2993
|
-
astrologers_shown:
|
|
2994
|
-
dates_available_count:
|
|
2995
|
-
}),
|
|
2996
|
-
}, [a,
|
|
2997
|
-
const
|
|
2998
|
-
A(
|
|
2999
|
-
date:
|
|
2980
|
+
a && I.length && !E.current && (_?.trackSlotScreenViewed?.({
|
|
2981
|
+
astrologers_shown: m.map((l) => l.name),
|
|
2982
|
+
dates_available_count: I.length
|
|
2983
|
+
}), E.current = !0);
|
|
2984
|
+
}, [a, I, m, _]), !a) return null;
|
|
2985
|
+
const ie = !!Y && !!U, le = (l) => {
|
|
2986
|
+
A(l), _?.trackSlotDateSelected?.({
|
|
2987
|
+
date: l,
|
|
3000
2988
|
day_part_default: L
|
|
3001
2989
|
});
|
|
3002
|
-
}, te = (
|
|
3003
|
-
|
|
3004
|
-
day_part:
|
|
3005
|
-
slots_available_count:
|
|
2990
|
+
}, te = (l) => {
|
|
2991
|
+
re(l), _?.trackDayPartSelected?.({
|
|
2992
|
+
day_part: l,
|
|
2993
|
+
slots_available_count: M?.slots.filter((P) => P.period === l).length ?? 0
|
|
3006
2994
|
});
|
|
3007
|
-
}, ke = (
|
|
3008
|
-
|
|
2995
|
+
}, ke = (l) => {
|
|
2996
|
+
F(l), _?.trackSlotSelected?.({
|
|
3009
2997
|
date: K,
|
|
3010
|
-
time: vt(
|
|
3011
|
-
day_part:
|
|
2998
|
+
time: vt(l.start),
|
|
2999
|
+
day_part: l.period,
|
|
3012
3000
|
topic: U || null
|
|
3013
3001
|
});
|
|
3014
|
-
},
|
|
3002
|
+
}, he = () => {
|
|
3015
3003
|
Y && (_?.trackSlotReservationRequested?.({
|
|
3016
3004
|
slot_datetime: `${Y.start} - ${Y.end}`
|
|
3017
3005
|
}), s({
|
|
@@ -3021,240 +3009,215 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3021
3009
|
topic: U,
|
|
3022
3010
|
language: H
|
|
3023
3011
|
}));
|
|
3024
|
-
},
|
|
3025
|
-
|
|
3026
|
-
}, me = (
|
|
3027
|
-
y(
|
|
3028
|
-
}, X = et.find((
|
|
3012
|
+
}, Ce = (l) => {
|
|
3013
|
+
j(l), _?.trackGuidanceTopicSelected?.({ topic: l });
|
|
3014
|
+
}, me = (l) => {
|
|
3015
|
+
y(l), w(!1);
|
|
3016
|
+
}, X = et.find((l) => l.code === H) ?? et[0];
|
|
3029
3017
|
return /* @__PURE__ */ e.jsx(
|
|
3030
3018
|
"div",
|
|
3031
3019
|
{
|
|
3032
|
-
className:
|
|
3020
|
+
className: g.overlay,
|
|
3033
3021
|
role: "dialog",
|
|
3034
3022
|
"aria-modal": "true",
|
|
3035
|
-
"aria-label":
|
|
3036
|
-
children: /* @__PURE__ */ e.jsxs("div", { className:
|
|
3037
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3023
|
+
"aria-label": p?.("planConsultationSlotTitle") ?? "Select consultation slot",
|
|
3024
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: g.sheet, children: [
|
|
3025
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.header, children: [
|
|
3038
3026
|
/* @__PURE__ */ e.jsx(
|
|
3039
3027
|
"button",
|
|
3040
3028
|
{
|
|
3041
|
-
className:
|
|
3029
|
+
className: g.backBtn,
|
|
3042
3030
|
onClick: o,
|
|
3043
3031
|
"aria-label": "Go back",
|
|
3044
3032
|
type: "button",
|
|
3045
3033
|
children: /* @__PURE__ */ e.jsx(it, {})
|
|
3046
3034
|
}
|
|
3047
3035
|
),
|
|
3048
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
3036
|
+
/* @__PURE__ */ e.jsx("h2", { className: g.title, children: p?.("planConsultationSlotTitle") ?? "Select consultation slot" })
|
|
3049
3037
|
] }),
|
|
3050
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3051
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3052
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3053
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3038
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.content, children: [
|
|
3039
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.languageRow, children: [
|
|
3040
|
+
/* @__PURE__ */ e.jsx("span", { className: g.languageLabel, children: p?.("planConsultationLanguageLabel") ?? "Your consultation language" }),
|
|
3041
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.languageDropdown, ref: Z, children: [
|
|
3054
3042
|
/* @__PURE__ */ e.jsxs(
|
|
3055
3043
|
"button",
|
|
3056
3044
|
{
|
|
3057
3045
|
type: "button",
|
|
3058
|
-
className:
|
|
3059
|
-
onClick: () =>
|
|
3046
|
+
className: g.languageDropdownBtn,
|
|
3047
|
+
onClick: () => w((l) => !l),
|
|
3060
3048
|
"aria-haspopup": "listbox",
|
|
3061
|
-
"aria-expanded":
|
|
3049
|
+
"aria-expanded": h,
|
|
3062
3050
|
children: [
|
|
3063
|
-
|
|
3051
|
+
p?.(X.labelKey) ?? X.label,
|
|
3064
3052
|
/* @__PURE__ */ e.jsx(Ur, {})
|
|
3065
3053
|
]
|
|
3066
3054
|
}
|
|
3067
3055
|
),
|
|
3068
|
-
|
|
3069
|
-
const
|
|
3056
|
+
h && /* @__PURE__ */ e.jsx("ul", { className: g.languageMenu, role: "listbox", children: et.map((l) => {
|
|
3057
|
+
const P = l.code === H;
|
|
3070
3058
|
return /* @__PURE__ */ e.jsxs(
|
|
3071
3059
|
"li",
|
|
3072
3060
|
{
|
|
3073
3061
|
role: "option",
|
|
3074
|
-
"aria-selected":
|
|
3062
|
+
"aria-selected": P,
|
|
3075
3063
|
className: [
|
|
3076
|
-
|
|
3077
|
-
|
|
3064
|
+
g.languageMenuItem,
|
|
3065
|
+
P ? g.languageMenuItemSelected : ""
|
|
3078
3066
|
].filter(Boolean).join(" "),
|
|
3079
|
-
onClick: () => me(
|
|
3067
|
+
onClick: () => me(l.code),
|
|
3080
3068
|
children: [
|
|
3081
|
-
|
|
3082
|
-
|
|
3069
|
+
p?.(l.labelKey) ?? l.label,
|
|
3070
|
+
P && /* @__PURE__ */ e.jsx(At, {})
|
|
3083
3071
|
]
|
|
3084
3072
|
},
|
|
3085
|
-
|
|
3073
|
+
l.code
|
|
3086
3074
|
);
|
|
3087
3075
|
}) })
|
|
3088
3076
|
] })
|
|
3089
3077
|
] }),
|
|
3090
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
3091
|
-
/* @__PURE__ */ e.
|
|
3092
|
-
|
|
3093
|
-
/* @__PURE__ */ e.jsx("div", { className: p.astrologerAvatar, "aria-hidden": !0, children: i.imageUrl && /* @__PURE__ */ e.jsx(
|
|
3094
|
-
C,
|
|
3095
|
-
{
|
|
3096
|
-
src: i.imageUrl,
|
|
3097
|
-
alt: u?.(i.name) ?? i.name,
|
|
3098
|
-
width: 40,
|
|
3099
|
-
height: 40
|
|
3100
|
-
}
|
|
3101
|
-
) }),
|
|
3102
|
-
/* @__PURE__ */ e.jsxs("div", { className: p.astrologerBasicInfo, children: [
|
|
3103
|
-
/* @__PURE__ */ e.jsx("p", { className: p.astrologerName, children: u?.(i.name) ?? i.name }),
|
|
3104
|
-
/* @__PURE__ */ e.jsx("p", { className: p.astrologerMeta, children: u?.(i.experience) ?? i.experience }),
|
|
3105
|
-
i.languages && i.languages.length > 0 && /* @__PURE__ */ e.jsx("p", { className: p.astrologerMeta, children: i.languages.join(", ") })
|
|
3106
|
-
] })
|
|
3107
|
-
] }),
|
|
3108
|
-
/* @__PURE__ */ e.jsx("div", { className: p.astrologerCertList, children: i.certifications.map((ae, ie) => /* @__PURE__ */ e.jsxs("p", { className: p.astrologerCertItem, children: [
|
|
3109
|
-
/* @__PURE__ */ e.jsx("span", { className: p.bullet, children: "•" }),
|
|
3110
|
-
" ",
|
|
3111
|
-
u?.(ae) ?? ae
|
|
3112
|
-
] }, ie)) })
|
|
3113
|
-
] }, k)) }),
|
|
3114
|
-
/* @__PURE__ */ e.jsxs("div", { className: p.trustRow, children: [
|
|
3115
|
-
/* @__PURE__ */ e.jsx("div", { className: p.trustAvatars, "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
3116
|
-
C,
|
|
3117
|
-
{
|
|
3118
|
-
src: "https://srm-cdn.a4b.io/yoda/1785317712031.svg",
|
|
3119
|
-
alt: "",
|
|
3120
|
-
width: 64,
|
|
3121
|
-
height: 28,
|
|
3122
|
-
priority: !0,
|
|
3123
|
-
fetchPriority: "high",
|
|
3124
|
-
loading: "eager"
|
|
3125
|
-
}
|
|
3126
|
-
) }),
|
|
3127
|
-
/* @__PURE__ */ e.jsx("span", { className: p.trustText, children: u?.("planConsultationTrustLabel") ?? "3,750+ people have booked consultation" })
|
|
3128
|
-
] }),
|
|
3129
|
-
/* @__PURE__ */ e.jsx("hr", { className: p.trustDivider }),
|
|
3130
|
-
/* @__PURE__ */ e.jsx("p", { className: p.sectionHeading, children: u?.("planSelectSlotHeading") ?? "Book your preferred consultation slot" }),
|
|
3131
|
-
/* @__PURE__ */ e.jsxs("p", { className: p.reportReadyBanner, children: [
|
|
3132
|
-
u?.("planReportReadyPrefix") ?? "Your Report will be ready in",
|
|
3078
|
+
/* @__PURE__ */ e.jsx("p", { className: g.sectionHeading, children: p?.("planSelectSlotHeading") ?? "Book your preferred consultation slot" }),
|
|
3079
|
+
/* @__PURE__ */ e.jsxs("p", { className: g.reportReadyBanner, children: [
|
|
3080
|
+
p?.("planReportReadyPrefix") ?? "Your Report will be ready in",
|
|
3133
3081
|
" ",
|
|
3134
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3082
|
+
/* @__PURE__ */ e.jsx("span", { className: g.reportReadyDuration, children: p?.("planReportReadyDuration") ?? "24-48 hours" }),
|
|
3135
3083
|
" ",
|
|
3136
|
-
|
|
3084
|
+
p?.("planReportReadySuffix") ?? "from today"
|
|
3137
3085
|
] }),
|
|
3138
|
-
$ && /* @__PURE__ */ e.jsxs("div", { className:
|
|
3139
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3086
|
+
$ && /* @__PURE__ */ e.jsxs("div", { className: g.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
|
|
3087
|
+
/* @__PURE__ */ e.jsx("div", { className: g.skeletonDateTabs, children: Array.from({ length: 5 }).map((l, P) => /* @__PURE__ */ e.jsx(
|
|
3140
3088
|
"div",
|
|
3141
3089
|
{
|
|
3142
|
-
className: [
|
|
3090
|
+
className: [g.skeletonDateTab, g.skeletonShimmer].join(" ")
|
|
3143
3091
|
},
|
|
3144
|
-
|
|
3092
|
+
P
|
|
3145
3093
|
)) }),
|
|
3146
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3094
|
+
/* @__PURE__ */ e.jsx("div", { className: g.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((l, P) => /* @__PURE__ */ e.jsx(
|
|
3147
3095
|
"div",
|
|
3148
3096
|
{
|
|
3149
|
-
className: [
|
|
3097
|
+
className: [g.skeletonPeriodTab, g.skeletonShimmer].join(" ")
|
|
3150
3098
|
},
|
|
3151
|
-
|
|
3099
|
+
P
|
|
3152
3100
|
)) }),
|
|
3153
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3101
|
+
/* @__PURE__ */ e.jsx("div", { className: g.skeletonTimeGrid, children: Array.from({ length: 6 }).map((l, P) => /* @__PURE__ */ e.jsx(
|
|
3154
3102
|
"div",
|
|
3155
3103
|
{
|
|
3156
|
-
className: [
|
|
3104
|
+
className: [g.skeletonTimeSlot, g.skeletonShimmer].join(" ")
|
|
3157
3105
|
},
|
|
3158
|
-
|
|
3106
|
+
P
|
|
3159
3107
|
)) })
|
|
3160
3108
|
] }),
|
|
3161
|
-
!$ && N && /* @__PURE__ */ e.jsxs("div", { className:
|
|
3162
|
-
|
|
3163
|
-
/* @__PURE__ */ e.jsx("button", { type: "button", className:
|
|
3109
|
+
!$ && N && /* @__PURE__ */ e.jsxs("div", { className: g.stateMessage, children: [
|
|
3110
|
+
p?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
3111
|
+
/* @__PURE__ */ e.jsx("button", { type: "button", className: g.retryBtn, onClick: Q, children: p?.("planRetry") ?? "Retry" })
|
|
3164
3112
|
] }),
|
|
3165
|
-
!$ && !N &&
|
|
3166
|
-
!$ && !N &&
|
|
3167
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3168
|
-
const
|
|
3113
|
+
!$ && !N && I.length === 0 && /* @__PURE__ */ e.jsx("p", { className: g.stateMessage, children: p?.("planNoSlotsAvailable") ?? "No slots available right now." }),
|
|
3114
|
+
!$ && !N && I.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3115
|
+
/* @__PURE__ */ e.jsx("div", { className: g.dateTabs, role: "radiogroup", "aria-label": "Consultation date", children: I.map((l) => {
|
|
3116
|
+
const P = l.date === K, { dayLabel: oe, dayNum: se } = Kn(l.date);
|
|
3169
3117
|
return /* @__PURE__ */ e.jsxs(Yt, { children: [
|
|
3170
3118
|
/* @__PURE__ */ e.jsxs(
|
|
3171
3119
|
"button",
|
|
3172
3120
|
{
|
|
3173
3121
|
type: "button",
|
|
3174
3122
|
className: [
|
|
3175
|
-
|
|
3176
|
-
|
|
3123
|
+
g.dateTab,
|
|
3124
|
+
P ? g.dateTabSelected : ""
|
|
3177
3125
|
].filter(Boolean).join(" "),
|
|
3178
3126
|
role: "radio",
|
|
3179
|
-
"aria-checked":
|
|
3180
|
-
onClick: () =>
|
|
3127
|
+
"aria-checked": P,
|
|
3128
|
+
onClick: () => le(l.date),
|
|
3181
3129
|
children: [
|
|
3182
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3183
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3130
|
+
/* @__PURE__ */ e.jsx("span", { className: g.dateTabLabel, children: p?.(oe) ?? oe }),
|
|
3131
|
+
/* @__PURE__ */ e.jsx("span", { className: g.dateTabNum, children: se })
|
|
3184
3132
|
]
|
|
3185
3133
|
}
|
|
3186
3134
|
),
|
|
3187
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3188
|
-
] },
|
|
3135
|
+
/* @__PURE__ */ e.jsx("span", { className: g.dateTabDivider, "aria-hidden": !0 })
|
|
3136
|
+
] }, l.date);
|
|
3189
3137
|
}) }),
|
|
3190
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3191
|
-
const
|
|
3138
|
+
/* @__PURE__ */ e.jsx("div", { className: g.periodTabs, role: "tablist", "aria-label": "Time of day", children: ce.map((l) => {
|
|
3139
|
+
const P = $o[l];
|
|
3192
3140
|
return /* @__PURE__ */ e.jsxs(
|
|
3193
3141
|
"button",
|
|
3194
3142
|
{
|
|
3195
3143
|
type: "button",
|
|
3196
3144
|
className: [
|
|
3197
|
-
|
|
3198
|
-
|
|
3145
|
+
g.periodTab,
|
|
3146
|
+
l === L ? g.periodTabSelected : ""
|
|
3199
3147
|
].filter(Boolean).join(" "),
|
|
3200
3148
|
role: "tab",
|
|
3201
|
-
"aria-selected":
|
|
3202
|
-
onClick: () => te(
|
|
3149
|
+
"aria-selected": l === L,
|
|
3150
|
+
onClick: () => te(l),
|
|
3203
3151
|
children: [
|
|
3204
|
-
/* @__PURE__ */ e.jsx(
|
|
3205
|
-
|
|
3152
|
+
/* @__PURE__ */ e.jsx(P, {}),
|
|
3153
|
+
p?.(Go[l]) ?? l.charAt(0).toUpperCase() + l.slice(1)
|
|
3206
3154
|
]
|
|
3207
3155
|
},
|
|
3208
|
-
|
|
3156
|
+
l
|
|
3209
3157
|
);
|
|
3210
3158
|
}) }),
|
|
3211
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3159
|
+
/* @__PURE__ */ e.jsx("div", { className: g.timeGrid, role: "radiogroup", "aria-label": "Consultation time", children: ee.map((l, P) => /* @__PURE__ */ e.jsx(
|
|
3212
3160
|
"button",
|
|
3213
3161
|
{
|
|
3214
3162
|
type: "button",
|
|
3215
3163
|
className: [
|
|
3216
|
-
|
|
3217
|
-
Y?.start ===
|
|
3164
|
+
g.timeSlot,
|
|
3165
|
+
Y?.start === l.start ? g.timeSlotSelected : ""
|
|
3218
3166
|
].filter(Boolean).join(" "),
|
|
3219
3167
|
role: "radio",
|
|
3220
|
-
"aria-checked": Y?.start ===
|
|
3221
|
-
onClick: () => ke(
|
|
3222
|
-
children: vt(
|
|
3168
|
+
"aria-checked": Y?.start === l.start,
|
|
3169
|
+
onClick: () => ke(l),
|
|
3170
|
+
children: vt(l.start)
|
|
3223
3171
|
},
|
|
3224
|
-
`${
|
|
3172
|
+
`${l.start}-${P}`
|
|
3225
3173
|
)) })
|
|
3226
3174
|
] }),
|
|
3227
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
3228
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3175
|
+
/* @__PURE__ */ e.jsx("p", { className: g.sectionHeading, children: p?.("planGuidanceHeading") ?? "What would you like guidance on?" }),
|
|
3176
|
+
/* @__PURE__ */ e.jsx("div", { className: g.topicGrid, role: "radiogroup", "aria-label": "Guidance topic", children: Hn.map((l) => /* @__PURE__ */ e.jsx(
|
|
3229
3177
|
"button",
|
|
3230
3178
|
{
|
|
3231
3179
|
type: "button",
|
|
3232
3180
|
className: [
|
|
3233
|
-
|
|
3234
|
-
U ===
|
|
3181
|
+
g.topicChip,
|
|
3182
|
+
U === l.id ? g.topicChipSelected : ""
|
|
3235
3183
|
].filter(Boolean).join(" "),
|
|
3236
3184
|
role: "radio",
|
|
3237
|
-
"aria-checked": U ===
|
|
3238
|
-
onClick: () =>
|
|
3239
|
-
children:
|
|
3185
|
+
"aria-checked": U === l.id,
|
|
3186
|
+
onClick: () => Ce(l.id),
|
|
3187
|
+
children: p?.(l.labelKey) ?? l.label
|
|
3240
3188
|
},
|
|
3241
|
-
|
|
3242
|
-
)) })
|
|
3189
|
+
l.id
|
|
3190
|
+
)) }),
|
|
3191
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.trustRow, children: [
|
|
3192
|
+
/* @__PURE__ */ e.jsx("div", { className: g.trustAvatars, "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
3193
|
+
T,
|
|
3194
|
+
{
|
|
3195
|
+
src: "https://srm-cdn.a4b.io/yoda/1785317712031.svg",
|
|
3196
|
+
alt: "",
|
|
3197
|
+
width: 64,
|
|
3198
|
+
height: 28,
|
|
3199
|
+
priority: !0,
|
|
3200
|
+
fetchPriority: "high",
|
|
3201
|
+
loading: "eager"
|
|
3202
|
+
}
|
|
3203
|
+
) }),
|
|
3204
|
+
/* @__PURE__ */ e.jsx("span", { className: g.trustText, children: p?.("planConsultationTrustLabel") ?? "3,750+ people have booked consultation" })
|
|
3205
|
+
] })
|
|
3243
3206
|
] }),
|
|
3244
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3207
|
+
/* @__PURE__ */ e.jsx("div", { className: g.footer, children: /* @__PURE__ */ e.jsx(
|
|
3245
3208
|
"button",
|
|
3246
3209
|
{
|
|
3247
3210
|
type: "button",
|
|
3248
|
-
className: [
|
|
3249
|
-
disabled: !
|
|
3250
|
-
onClick:
|
|
3251
|
-
children:
|
|
3211
|
+
className: [g.proceedBtn, ie ? "" : g.proceedBtnDisabled].filter(Boolean).join(" "),
|
|
3212
|
+
disabled: !ie,
|
|
3213
|
+
onClick: he,
|
|
3214
|
+
children: p?.("planProceedToPayment") ?? "Proceed to payment"
|
|
3252
3215
|
}
|
|
3253
3216
|
) })
|
|
3254
3217
|
] })
|
|
3255
3218
|
}
|
|
3256
3219
|
);
|
|
3257
|
-
},
|
|
3220
|
+
}, Ko = [
|
|
3258
3221
|
{
|
|
3259
3222
|
id: "jyoti",
|
|
3260
3223
|
name: "planAstrologerNameJyoti",
|
|
@@ -3282,7 +3245,7 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3282
3245
|
experience: "planAstrologerExpNeeraj",
|
|
3283
3246
|
certifications: ["planAstrologerCertBhuCertified", "planAstrologerCertMantraRudraksha"]
|
|
3284
3247
|
}
|
|
3285
|
-
],
|
|
3248
|
+
], Wo = (a) => [
|
|
3286
3249
|
{
|
|
3287
3250
|
id: "kundli-report",
|
|
3288
3251
|
title: "planNameBasic",
|
|
@@ -3308,48 +3271,48 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3308
3271
|
{ text: "planFeatureRealTimeAnswers", included: !0 },
|
|
3309
3272
|
{ text: "planFeatureTailoredRemedies", included: !0 }
|
|
3310
3273
|
],
|
|
3311
|
-
astrologers:
|
|
3274
|
+
astrologers: Ko.filter(
|
|
3312
3275
|
(o) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(o.id)
|
|
3313
3276
|
)
|
|
3314
3277
|
}
|
|
3315
|
-
],
|
|
3278
|
+
], Ho = ({
|
|
3316
3279
|
isOpen: a,
|
|
3317
3280
|
onClose: o,
|
|
3318
3281
|
selectedPlan: s,
|
|
3319
|
-
onSelectPlan:
|
|
3320
|
-
plans:
|
|
3282
|
+
onSelectPlan: m,
|
|
3283
|
+
plans: p,
|
|
3321
3284
|
onProceed: _,
|
|
3322
3285
|
t: f,
|
|
3323
|
-
analytics:
|
|
3324
|
-
enableConsultationScheduling:
|
|
3286
|
+
analytics: T,
|
|
3287
|
+
enableConsultationScheduling: x
|
|
3325
3288
|
}) => {
|
|
3326
|
-
const $ = Le(),
|
|
3289
|
+
const $ = Le(), O = $?.config.isGlobal ?? !0, N = x ?? $?.config.enableConsultationScheduling ?? !1, u = p ?? Wo(O), G = s?.id || u.find((S) => S.badge)?.id || u[0]?.id || "", v = q(null), H = q(null), y = q(!1), [h, w] = D(!1);
|
|
3327
3290
|
J(() => {
|
|
3328
3291
|
if (a) {
|
|
3329
3292
|
if (!s) {
|
|
3330
|
-
const
|
|
3331
|
-
|
|
3293
|
+
const S = u.find((U) => U.badge) ?? u[0];
|
|
3294
|
+
S && m(S);
|
|
3332
3295
|
}
|
|
3333
|
-
y.current || (
|
|
3334
|
-
plans_shown:
|
|
3335
|
-
default_selected_plan: s?.id ||
|
|
3296
|
+
y.current || (T?.trackPlanPageViewed?.(), N && T?.trackPlanScreenViewed?.({
|
|
3297
|
+
plans_shown: u.map((S) => S.id),
|
|
3298
|
+
default_selected_plan: s?.id || u.find((S) => S.badge)?.id || u[0]?.id || ""
|
|
3336
3299
|
}), y.current = !0);
|
|
3337
3300
|
} else
|
|
3338
3301
|
y.current = !1;
|
|
3339
|
-
}, [a,
|
|
3302
|
+
}, [a, u, s, m, T]);
|
|
3340
3303
|
const Z = () => {
|
|
3341
|
-
|
|
3304
|
+
T?.trackPlanPageClosed?.(), o();
|
|
3342
3305
|
};
|
|
3343
3306
|
return J(() => {
|
|
3344
3307
|
if (!a) return;
|
|
3345
|
-
const
|
|
3308
|
+
const S = document.body.style.overflow;
|
|
3346
3309
|
return document.body.style.overflow = "hidden", () => {
|
|
3347
|
-
document.body.style.overflow =
|
|
3310
|
+
document.body.style.overflow = S;
|
|
3348
3311
|
};
|
|
3349
3312
|
}, [a]), a ? /* @__PURE__ */ e.jsxs(
|
|
3350
3313
|
"div",
|
|
3351
3314
|
{
|
|
3352
|
-
className:
|
|
3315
|
+
className: k.overlay,
|
|
3353
3316
|
role: "dialog",
|
|
3354
3317
|
"aria-modal": "true",
|
|
3355
3318
|
"aria-label": f?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
@@ -3357,23 +3320,23 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3357
3320
|
/* @__PURE__ */ e.jsxs(
|
|
3358
3321
|
"div",
|
|
3359
3322
|
{
|
|
3360
|
-
ref:
|
|
3361
|
-
className: N ?
|
|
3323
|
+
ref: v,
|
|
3324
|
+
className: N ? k.sheetFullScreen : k.sheet,
|
|
3362
3325
|
children: [
|
|
3363
|
-
N ? /* @__PURE__ */ e.jsxs("div", { className:
|
|
3326
|
+
N ? /* @__PURE__ */ e.jsxs("div", { className: k.headerFull, children: [
|
|
3364
3327
|
/* @__PURE__ */ e.jsx(
|
|
3365
3328
|
"button",
|
|
3366
3329
|
{
|
|
3367
|
-
className:
|
|
3330
|
+
className: k.backBtn,
|
|
3368
3331
|
onClick: Z,
|
|
3369
3332
|
"aria-label": "Go back",
|
|
3370
3333
|
type: "button",
|
|
3371
3334
|
children: /* @__PURE__ */ e.jsx(it, {})
|
|
3372
3335
|
}
|
|
3373
3336
|
),
|
|
3374
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
3337
|
+
/* @__PURE__ */ e.jsx("h2", { className: k.titleFull, children: f?.("planSheetTitle") ?? "Choose Your Kundli Plan" })
|
|
3375
3338
|
] }) : /* @__PURE__ */ e.jsx(
|
|
3376
|
-
|
|
3339
|
+
Fn,
|
|
3377
3340
|
{
|
|
3378
3341
|
title: f?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
3379
3342
|
onBack: Z
|
|
@@ -3383,52 +3346,52 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3383
3346
|
"div",
|
|
3384
3347
|
{
|
|
3385
3348
|
ref: H,
|
|
3386
|
-
className:
|
|
3349
|
+
className: k.plansContainer,
|
|
3387
3350
|
role: "radiogroup",
|
|
3388
3351
|
"aria-label": "Kundli plans",
|
|
3389
|
-
children:
|
|
3352
|
+
children: u.map((S) => /* @__PURE__ */ e.jsx(
|
|
3390
3353
|
Un,
|
|
3391
3354
|
{
|
|
3392
|
-
plan:
|
|
3393
|
-
isSelected:
|
|
3355
|
+
plan: S,
|
|
3356
|
+
isSelected: S.id === G,
|
|
3394
3357
|
t: f,
|
|
3395
3358
|
onSelect: (U) => {
|
|
3396
|
-
const
|
|
3397
|
-
|
|
3398
|
-
planId:
|
|
3399
|
-
planName:
|
|
3359
|
+
const j = u.find((K) => K.id === U);
|
|
3360
|
+
j && (T?.trackPlanSelected?.({
|
|
3361
|
+
planId: j.id,
|
|
3362
|
+
planName: j.title,
|
|
3400
3363
|
...N ? {
|
|
3401
|
-
price:
|
|
3402
|
-
includes_consultation: !!(
|
|
3403
|
-
cta_label:
|
|
3364
|
+
price: j.price,
|
|
3365
|
+
includes_consultation: !!(j.astrologers && j.astrologers.length > 0),
|
|
3366
|
+
cta_label: j.astrologers && j.astrologers.length > 0 ? f?.("planSelectConsultationSlot") ?? "Select consultation slot →" : f?.("planProceedToPayment") ?? "Proceed to Payment"
|
|
3404
3367
|
} : {}
|
|
3405
|
-
}),
|
|
3368
|
+
}), m(j));
|
|
3406
3369
|
}
|
|
3407
3370
|
},
|
|
3408
|
-
|
|
3371
|
+
S.id
|
|
3409
3372
|
))
|
|
3410
3373
|
}
|
|
3411
3374
|
),
|
|
3412
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3375
|
+
/* @__PURE__ */ e.jsx("div", { className: k.footer, children: /* @__PURE__ */ e.jsx(
|
|
3413
3376
|
"button",
|
|
3414
3377
|
{
|
|
3415
|
-
className:
|
|
3378
|
+
className: k.proceedBtn,
|
|
3416
3379
|
disabled: !s,
|
|
3417
3380
|
onClick: () => {
|
|
3418
3381
|
if (s) {
|
|
3419
3382
|
if (N && s.astrologers && s.astrologers.length > 0) {
|
|
3420
|
-
|
|
3383
|
+
T?.trackSelectConsultationSlotClicked?.({
|
|
3421
3384
|
planId: s.id,
|
|
3422
3385
|
planName: s.title
|
|
3423
|
-
}),
|
|
3386
|
+
}), T?.trackPlanProceedClicked?.({
|
|
3424
3387
|
planId: s.id,
|
|
3425
3388
|
planName: s.title,
|
|
3426
3389
|
cta_type: "confirm_consultation_slot",
|
|
3427
3390
|
next_step: "slot_selection"
|
|
3428
|
-
}),
|
|
3391
|
+
}), w(!0);
|
|
3429
3392
|
return;
|
|
3430
3393
|
}
|
|
3431
|
-
|
|
3394
|
+
T?.trackPlanProceedClicked?.({
|
|
3432
3395
|
planId: s.id,
|
|
3433
3396
|
planName: s.title,
|
|
3434
3397
|
...N ? { cta_type: "proceed", next_step: "payment" } : {}
|
|
@@ -3442,25 +3405,25 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3442
3405
|
}
|
|
3443
3406
|
),
|
|
3444
3407
|
N && s?.astrologers && s.astrologers.length > 0 && /* @__PURE__ */ e.jsx(
|
|
3445
|
-
|
|
3408
|
+
Uo,
|
|
3446
3409
|
{
|
|
3447
|
-
isOpen:
|
|
3448
|
-
onClose: () =>
|
|
3410
|
+
isOpen: h,
|
|
3411
|
+
onClose: () => w(!1),
|
|
3449
3412
|
astrologers: s.astrologers,
|
|
3450
3413
|
t: f,
|
|
3451
|
-
analytics:
|
|
3452
|
-
onProceed: (
|
|
3453
|
-
|
|
3414
|
+
analytics: T,
|
|
3415
|
+
onProceed: (S) => {
|
|
3416
|
+
T?.trackPlanProceedClicked?.({
|
|
3454
3417
|
planId: s.id,
|
|
3455
3418
|
planName: s.title
|
|
3456
|
-
}), _(s,
|
|
3419
|
+
}), _(s, S), w(!1), o();
|
|
3457
3420
|
}
|
|
3458
3421
|
}
|
|
3459
3422
|
)
|
|
3460
3423
|
]
|
|
3461
3424
|
}
|
|
3462
3425
|
) : null;
|
|
3463
|
-
},
|
|
3426
|
+
}, Yo = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", qo = (a, o) => Pt[a]?.[o] ?? o, Vo = (a, o) => a && tt.includes(a) ? a : o ? "+1" : "+91", zo = {
|
|
3464
3427
|
fullName: "",
|
|
3465
3428
|
phone: "",
|
|
3466
3429
|
phoneCountryCode: "",
|
|
@@ -3471,81 +3434,81 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3471
3434
|
birthTime: "",
|
|
3472
3435
|
birthTimeUnknown: !1,
|
|
3473
3436
|
birthPlace: ""
|
|
3474
|
-
},
|
|
3437
|
+
}, ri = ({
|
|
3475
3438
|
className: a = "",
|
|
3476
3439
|
locale: o,
|
|
3477
3440
|
showLanguageSelector: s = !0,
|
|
3478
|
-
onBack:
|
|
3479
|
-
initialValues:
|
|
3441
|
+
onBack: m,
|
|
3442
|
+
initialValues: p,
|
|
3480
3443
|
onProceed: _,
|
|
3481
3444
|
onProceedGuidance: f,
|
|
3482
|
-
proceedHref:
|
|
3483
|
-
originalPriceLabel:
|
|
3445
|
+
proceedHref: T,
|
|
3446
|
+
originalPriceLabel: x,
|
|
3484
3447
|
discountedPriceLabel: $,
|
|
3485
|
-
googleMapsApiKey:
|
|
3448
|
+
googleMapsApiKey: O = "",
|
|
3486
3449
|
atlasSearchLocalities: N,
|
|
3487
|
-
googleMapsAutocompleteEnabled:
|
|
3450
|
+
googleMapsAutocompleteEnabled: u,
|
|
3488
3451
|
analytics: G
|
|
3489
3452
|
}) => {
|
|
3490
|
-
const
|
|
3491
|
-
|
|
3453
|
+
const v = Le(), H = ua(), y = v !== null, h = y ? v.locale : o, w = h ?? H?.locale ?? "en", [Z, S] = D(w), U = y ? v.locale : Z, j = y ? v.setLocale : S, [K, A] = D(!1), L = q(null), re = q(
|
|
3454
|
+
h
|
|
3492
3455
|
), Y = q(
|
|
3493
3456
|
H?.locale
|
|
3494
3457
|
);
|
|
3495
3458
|
J(() => {
|
|
3496
3459
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
3497
3460
|
}, []);
|
|
3498
|
-
const
|
|
3461
|
+
const F = (C) => qo(U, C);
|
|
3499
3462
|
J(() => {
|
|
3500
|
-
|
|
3501
|
-
}, [
|
|
3502
|
-
if (
|
|
3503
|
-
const
|
|
3504
|
-
|
|
3505
|
-
}, [H?.locale,
|
|
3506
|
-
const [
|
|
3507
|
-
...
|
|
3508
|
-
...
|
|
3509
|
-
phone:
|
|
3510
|
-
}), Q = y ?
|
|
3511
|
-
() =>
|
|
3512
|
-
),
|
|
3513
|
-
!!(
|
|
3514
|
-
), te = q(!1), ke = ye((
|
|
3515
|
-
te.current = !0,
|
|
3516
|
-
}, []),
|
|
3463
|
+
h && re.current !== h && j(h), re.current = h;
|
|
3464
|
+
}, [h, j]), J(() => {
|
|
3465
|
+
if (h) return;
|
|
3466
|
+
const C = H?.locale;
|
|
3467
|
+
C && Y.current !== C && j(C), Y.current = C;
|
|
3468
|
+
}, [H?.locale, h, j]);
|
|
3469
|
+
const [E, I] = D({
|
|
3470
|
+
...zo,
|
|
3471
|
+
...p,
|
|
3472
|
+
phone: p?.phone ?? ""
|
|
3473
|
+
}), Q = y ? v?.config.isGlobal ?? !0 : !0, M = y ? v.formValues : E, ce = y ? v.setFormValues : I, [ee, ie] = D(
|
|
3474
|
+
() => Vo(M.phoneCountryCode, Q)
|
|
3475
|
+
), le = q(
|
|
3476
|
+
!!(M.phoneCountryCode && tt.includes(M.phoneCountryCode))
|
|
3477
|
+
), te = q(!1), ke = ye((C) => {
|
|
3478
|
+
te.current = !0, ie(C);
|
|
3479
|
+
}, []), he = q(!0);
|
|
3517
3480
|
J(() => {
|
|
3518
|
-
if (
|
|
3519
|
-
|
|
3481
|
+
if (he.current) {
|
|
3482
|
+
he.current = !1;
|
|
3520
3483
|
return;
|
|
3521
3484
|
}
|
|
3522
|
-
|
|
3485
|
+
le.current || te.current || ie(Q ? "+1" : "+91");
|
|
3523
3486
|
}, [Q]), J(() => {
|
|
3524
3487
|
if (!y || te.current) return;
|
|
3525
|
-
const
|
|
3526
|
-
|
|
3527
|
-
}, [y,
|
|
3528
|
-
const
|
|
3488
|
+
const C = M.phoneCountryCode;
|
|
3489
|
+
C && tt.includes(C) && C !== ee && (le.current = !0, ie(C));
|
|
3490
|
+
}, [y, M.phoneCountryCode]);
|
|
3491
|
+
const Ce = y ? v.goToPage : m, me = y ? v.onProceed : _, X = y ? v.onProceedGuidance : f, l = y ? v.config.proceedHref : T, P = y ? v.config.originalPriceLabel : x, oe = y ? v.config.discountedPriceLabel : $, se = y ? v.config.showLanguageSelector ?? !0 : s, ve = (y ? v?.config?.analytics : G) ?? G;
|
|
3529
3492
|
J(() => {
|
|
3530
3493
|
if (!K) return;
|
|
3531
|
-
const
|
|
3494
|
+
const C = (Be) => {
|
|
3532
3495
|
L.current && !L.current.contains(Be.target) && A(!1);
|
|
3533
3496
|
};
|
|
3534
|
-
return document.addEventListener("mousedown",
|
|
3497
|
+
return document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
|
|
3535
3498
|
}, [K]);
|
|
3536
|
-
const [
|
|
3537
|
-
xe.current =
|
|
3499
|
+
const [je, de] = D(!1), [ue, Se] = D(null), xe = q(null), ge = ye((C) => {
|
|
3500
|
+
xe.current = C, de(!0);
|
|
3538
3501
|
}, []), we = q(!1);
|
|
3539
3502
|
J(() => {
|
|
3540
|
-
if (we.current || !y || !
|
|
3503
|
+
if (we.current || !y || !v?.config.autoOpenPlanSheet || v?.config.variant !== "v1")
|
|
3541
3504
|
return;
|
|
3542
3505
|
we.current = !0;
|
|
3543
|
-
const
|
|
3506
|
+
const C = (M.phone ?? "").trim();
|
|
3544
3507
|
ge({
|
|
3545
|
-
...
|
|
3546
|
-
phone:
|
|
3508
|
+
...M,
|
|
3509
|
+
phone: C && `${ee}-${C}`
|
|
3547
3510
|
});
|
|
3548
|
-
}, [y,
|
|
3511
|
+
}, [y, v?.config.autoOpenPlanSheet, v?.config.variant, M, ee, ge]);
|
|
3549
3512
|
const Pe = ye(() => {
|
|
3550
3513
|
if (!xe.current || !ue) return;
|
|
3551
3514
|
ve?.trackPlanProceedClicked?.({
|
|
@@ -3554,124 +3517,124 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3554
3517
|
price: ue.price,
|
|
3555
3518
|
currency: Q ? "USD" : "INR"
|
|
3556
3519
|
});
|
|
3557
|
-
const
|
|
3558
|
-
ue.id === Nt && X ? X(
|
|
3559
|
-
}, [ue, me, X]),
|
|
3520
|
+
const C = { ...xe.current, _selectedPlan: ue };
|
|
3521
|
+
ue.id === Nt && X ? X(C) : me?.(C), de(!1), xe.current = null;
|
|
3522
|
+
}, [ue, me, X]), Ee = v?.config.imageComponent ?? Ye, Ie = se ? /* @__PURE__ */ e.jsxs("div", { className: Te.langDropdownWrap, ref: L, children: [
|
|
3560
3523
|
/* @__PURE__ */ e.jsxs(
|
|
3561
3524
|
"button",
|
|
3562
3525
|
{
|
|
3563
3526
|
type: "button",
|
|
3564
|
-
className:
|
|
3527
|
+
className: Te.langTrigger,
|
|
3565
3528
|
onClick: () => {
|
|
3566
|
-
ve?.trackLanguageClickedFe?.({ language: U }), A((
|
|
3529
|
+
ve?.trackLanguageClickedFe?.({ language: U }), A((C) => !C);
|
|
3567
3530
|
},
|
|
3568
3531
|
"aria-expanded": K,
|
|
3569
3532
|
"aria-haspopup": "listbox",
|
|
3570
3533
|
id: "kundli-form-lang",
|
|
3571
|
-
"aria-label":
|
|
3534
|
+
"aria-label": F("language"),
|
|
3572
3535
|
children: [
|
|
3573
3536
|
/* @__PURE__ */ e.jsx(
|
|
3574
|
-
|
|
3537
|
+
Ee,
|
|
3575
3538
|
{
|
|
3576
|
-
src:
|
|
3539
|
+
src: Yo,
|
|
3577
3540
|
alt: "",
|
|
3578
|
-
className:
|
|
3541
|
+
className: Te.langIcon,
|
|
3579
3542
|
width: 16,
|
|
3580
3543
|
height: 16,
|
|
3581
3544
|
loading: "eager"
|
|
3582
3545
|
}
|
|
3583
3546
|
),
|
|
3584
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3547
|
+
/* @__PURE__ */ e.jsx("span", { className: Te.langLabel, children: _t[U] })
|
|
3585
3548
|
]
|
|
3586
3549
|
}
|
|
3587
3550
|
),
|
|
3588
3551
|
K && /* @__PURE__ */ e.jsx(
|
|
3589
3552
|
"ul",
|
|
3590
3553
|
{
|
|
3591
|
-
className:
|
|
3554
|
+
className: Te.langMenu,
|
|
3592
3555
|
role: "listbox",
|
|
3593
3556
|
"aria-labelledby": "kundli-form-lang",
|
|
3594
3557
|
"aria-activedescendant": `kundli-form-lang-option-${U}`,
|
|
3595
|
-
children: wt.map((
|
|
3558
|
+
children: wt.map((C) => /* @__PURE__ */ e.jsx(
|
|
3596
3559
|
"li",
|
|
3597
3560
|
{
|
|
3598
|
-
id: `kundli-form-lang-option-${
|
|
3561
|
+
id: `kundli-form-lang-option-${C}`,
|
|
3599
3562
|
role: "option",
|
|
3600
|
-
"aria-selected":
|
|
3601
|
-
className:
|
|
3563
|
+
"aria-selected": C === U,
|
|
3564
|
+
className: Te.langOption,
|
|
3602
3565
|
onClick: () => {
|
|
3603
|
-
ve?.trackLanguageChangedFe?.({ newLanguage:
|
|
3566
|
+
ve?.trackLanguageChangedFe?.({ newLanguage: C }), j(C), A(!1);
|
|
3604
3567
|
},
|
|
3605
|
-
children: _t[
|
|
3568
|
+
children: _t[C]
|
|
3606
3569
|
},
|
|
3607
|
-
|
|
3570
|
+
C
|
|
3608
3571
|
))
|
|
3609
3572
|
}
|
|
3610
3573
|
)
|
|
3611
3574
|
] }) : null;
|
|
3612
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `${
|
|
3575
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${Te.container} ${a}`, children: [
|
|
3613
3576
|
/* @__PURE__ */ e.jsx(
|
|
3614
3577
|
$r,
|
|
3615
3578
|
{
|
|
3616
|
-
t:
|
|
3617
|
-
logoUrl: y ?
|
|
3618
|
-
languageSelector:
|
|
3619
|
-
className:
|
|
3579
|
+
t: F,
|
|
3580
|
+
logoUrl: y ? v.config.logoUrl : void 0,
|
|
3581
|
+
languageSelector: Ie,
|
|
3582
|
+
className: Te.kundliHeaderNoBorder
|
|
3620
3583
|
}
|
|
3621
3584
|
),
|
|
3622
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3623
|
-
/* @__PURE__ */ e.jsxs("main", { className:
|
|
3624
|
-
/* @__PURE__ */ e.jsx(ya, { t:
|
|
3585
|
+
/* @__PURE__ */ e.jsx("div", { className: Te.headerSeparator, "aria-hidden": !0 }),
|
|
3586
|
+
/* @__PURE__ */ e.jsxs("main", { className: Te.main, children: [
|
|
3587
|
+
/* @__PURE__ */ e.jsx(ya, { t: F, onBack: Ce }),
|
|
3625
3588
|
/* @__PURE__ */ e.jsx(
|
|
3626
|
-
|
|
3589
|
+
Tr,
|
|
3627
3590
|
{
|
|
3628
|
-
t:
|
|
3629
|
-
values:
|
|
3591
|
+
t: F,
|
|
3592
|
+
values: M,
|
|
3630
3593
|
onChange: ce,
|
|
3631
|
-
googleMapsApiKey:
|
|
3594
|
+
googleMapsApiKey: O,
|
|
3632
3595
|
atlasSearchLocalities: N,
|
|
3633
|
-
googleMapsAutocompleteEnabled:
|
|
3596
|
+
googleMapsAutocompleteEnabled: u,
|
|
3634
3597
|
phoneIsdCode: ee,
|
|
3635
3598
|
onPhoneIsdCodeChange: ke,
|
|
3636
|
-
showV1ExtraFields: y ?
|
|
3599
|
+
showV1ExtraFields: y ? v?.config.variant === "v1" : !1,
|
|
3637
3600
|
analytics: ve
|
|
3638
3601
|
}
|
|
3639
3602
|
)
|
|
3640
3603
|
] }),
|
|
3641
3604
|
/* @__PURE__ */ e.jsx(
|
|
3642
|
-
|
|
3605
|
+
Fr,
|
|
3643
3606
|
{
|
|
3644
|
-
t:
|
|
3645
|
-
values:
|
|
3607
|
+
t: F,
|
|
3608
|
+
values: M,
|
|
3646
3609
|
phoneIsdCode: ee,
|
|
3647
3610
|
onProceed: me,
|
|
3648
3611
|
onProceedGuidance: X,
|
|
3649
|
-
href:
|
|
3650
|
-
originalPriceLabel:
|
|
3651
|
-
discountedPriceLabel:
|
|
3612
|
+
href: l,
|
|
3613
|
+
originalPriceLabel: P,
|
|
3614
|
+
discountedPriceLabel: oe,
|
|
3652
3615
|
analytics: ve,
|
|
3653
3616
|
showPlanSheet: ge,
|
|
3654
3617
|
confirmPlan: Pe,
|
|
3655
|
-
planSheetOpen:
|
|
3618
|
+
planSheetOpen: je,
|
|
3656
3619
|
selectedPlan: ue
|
|
3657
3620
|
}
|
|
3658
3621
|
),
|
|
3659
|
-
|
|
3660
|
-
|
|
3622
|
+
v?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
|
|
3623
|
+
Ho,
|
|
3661
3624
|
{
|
|
3662
|
-
isOpen:
|
|
3625
|
+
isOpen: je,
|
|
3663
3626
|
onClose: () => de(!1),
|
|
3664
3627
|
selectedPlan: ue,
|
|
3665
|
-
onSelectPlan:
|
|
3628
|
+
onSelectPlan: Se,
|
|
3666
3629
|
onProceed: () => {
|
|
3667
3630
|
Pe?.();
|
|
3668
3631
|
},
|
|
3669
|
-
t:
|
|
3632
|
+
t: F,
|
|
3670
3633
|
analytics: ve
|
|
3671
3634
|
}
|
|
3672
3635
|
)
|
|
3673
3636
|
] });
|
|
3674
|
-
},
|
|
3637
|
+
}, ni = {
|
|
3675
3638
|
banner_clicked_fe: "banner_clicked_fe",
|
|
3676
3639
|
primary_cta_clicked_fe: "primary_cta_clicked_fe",
|
|
3677
3640
|
language_changed_fe: "language_changed_fe",
|
|
@@ -3744,34 +3707,34 @@ const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3744
3707
|
kundli_view_sample_image_closed: "kundli_view_sample_image_closed"
|
|
3745
3708
|
};
|
|
3746
3709
|
export {
|
|
3747
|
-
|
|
3710
|
+
Uo as C,
|
|
3748
3711
|
Ye as D,
|
|
3749
3712
|
ya as F,
|
|
3750
|
-
|
|
3751
|
-
|
|
3713
|
+
Xo as I,
|
|
3714
|
+
ni as K,
|
|
3752
3715
|
_t as L,
|
|
3753
3716
|
Nt as P,
|
|
3754
3717
|
wt as S,
|
|
3755
|
-
|
|
3756
|
-
|
|
3718
|
+
Tr as U,
|
|
3719
|
+
Ct as a,
|
|
3757
3720
|
nt as b,
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3721
|
+
ri as c,
|
|
3722
|
+
ti as d,
|
|
3723
|
+
fa as e,
|
|
3724
|
+
ha as f,
|
|
3762
3725
|
pa as g,
|
|
3763
3726
|
Le as h,
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3727
|
+
ei as i,
|
|
3728
|
+
ai as j,
|
|
3729
|
+
Wo as k,
|
|
3767
3730
|
e as l,
|
|
3768
3731
|
$r as m,
|
|
3769
3732
|
it as n,
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3733
|
+
Fr as o,
|
|
3734
|
+
Ho as p,
|
|
3735
|
+
Zo as r,
|
|
3773
3736
|
ma as s,
|
|
3774
3737
|
Pt as t,
|
|
3775
3738
|
ua as u
|
|
3776
3739
|
};
|
|
3777
|
-
//# sourceMappingURL=analytics-
|
|
3740
|
+
//# sourceMappingURL=analytics-DiUVCCf_.js.map
|