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