@srimandir/kundli-generator 8.0.2 → 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-AI15hzcE.js → analytics-_owJQMIp.js} +1170 -1164
- package/dist/{analytics-AI15hzcE.js.map → analytics-_owJQMIp.js.map} +1 -1
- package/dist/components/KundliPlanBottomSheet/ConsultationSlotFields.d.ts +20 -0
- package/dist/{criticalCss-CKMR1Lnj.js → criticalCss-DfIwAlZn.js} +221 -233
- package/dist/criticalCss-DfIwAlZn.js.map +1 -0
- package/dist/form-entry.js +1 -1
- package/dist/kundli-generator.js +2 -2
- package/dist/page-entry.js +2 -2
- package/package.json +2 -2
- package/dist/criticalCss-CKMR1Lnj.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,
|
|
9
|
-
function
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
for (
|
|
13
|
-
if (
|
|
14
|
-
return { $$typeof:
|
|
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 = i, He.jsx =
|
|
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,
|
|
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 s =
|
|
26
|
+
var s = v && a[v] || a[R];
|
|
27
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 s = arguments.length, u = new Array(s > 1 ? s - 1 : 0),
|
|
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
|
|
39
|
+
var A = _.ReactDebugCurrentFrame, H = A.getStackAddendum();
|
|
40
40
|
H !== "" && (s += "%s", u = u.concat([H]));
|
|
41
|
-
var
|
|
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 === c || 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
|
|
56
|
+
function re(a, s, u) {
|
|
57
|
+
var A = a.displayName;
|
|
58
|
+
if (A)
|
|
59
|
+
return A;
|
|
60
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")
|
|
@@ -75,32 +75,32 @@ function at() {
|
|
|
75
75
|
return "Fragment";
|
|
76
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
|
|
89
|
+
case S:
|
|
90
90
|
var s = a;
|
|
91
|
-
return
|
|
92
|
-
case
|
|
91
|
+
return G(s) + ".Consumer";
|
|
92
|
+
case h:
|
|
93
93
|
var u = a;
|
|
94
|
-
return
|
|
94
|
+
return G(u._context) + ".Provider";
|
|
95
95
|
case b:
|
|
96
|
-
return
|
|
97
|
-
case
|
|
98
|
-
var
|
|
99
|
-
return
|
|
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
100
|
case p: {
|
|
101
|
-
var H = a,
|
|
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,64 +145,64 @@ 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
207
|
if (s) {
|
|
208
208
|
var F = function() {
|
|
@@ -215,55 +215,55 @@ 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
|
|
266
|
+
function se(a) {
|
|
267
267
|
var s = a.prototype;
|
|
268
268
|
return !!(s && s.isReactComponent);
|
|
269
269
|
}
|
|
@@ -271,90 +271,90 @@ function at() {
|
|
|
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
285
|
case b:
|
|
286
|
-
return
|
|
287
|
-
case
|
|
286
|
+
return te(a.render);
|
|
287
|
+
case N:
|
|
288
288
|
return Re(a.type, s, u);
|
|
289
289
|
case p: {
|
|
290
|
-
var
|
|
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
302
|
var s = a._owner, u = Re(a.type, a._source, s ? s.type : null);
|
|
303
|
-
|
|
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](s, 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
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
|
|
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 (
|
|
357
|
+
if (Pe.call(a, "ref")) {
|
|
358
358
|
var s = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
359
359
|
if (s && s.isReactWarning)
|
|
360
360
|
return !1;
|
|
@@ -362,7 +362,7 @@ function at() {
|
|
|
362
362
|
return a.ref !== void 0;
|
|
363
363
|
}
|
|
364
364
|
function ze(a) {
|
|
365
|
-
if (
|
|
365
|
+
if (Pe.call(a, "key")) {
|
|
366
366
|
var s = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
367
367
|
if (s && s.isReactWarning)
|
|
368
368
|
return !1;
|
|
@@ -370,12 +370,12 @@ function at() {
|
|
|
370
370
|
return a.key !== void 0;
|
|
371
371
|
}
|
|
372
372
|
function Ba(a, s) {
|
|
373
|
-
typeof a.ref == "string" &&
|
|
373
|
+
typeof a.ref == "string" && r.current;
|
|
374
374
|
}
|
|
375
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,
|
|
@@ -386,7 +386,7 @@ function at() {
|
|
|
386
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, s, u,
|
|
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
|
-
$$typeof:
|
|
400
|
+
$$typeof: n,
|
|
401
401
|
// Built-in properties that belong on the element
|
|
402
402
|
type: a,
|
|
403
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,26 +423,26 @@ function at() {
|
|
|
423
423
|
value: H
|
|
424
424
|
}), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
|
|
425
425
|
};
|
|
426
|
-
function Fa(a, s, u,
|
|
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
447
|
var s = a._owner, u = Re(a.type, a._source, s ? s.type : null);
|
|
448
448
|
ca.setExtraStackFrame(u);
|
|
@@ -452,12 +452,12 @@ function at() {
|
|
|
452
452
|
var Xe;
|
|
453
453
|
Xe = !1;
|
|
454
454
|
function Ze(a) {
|
|
455
|
-
return typeof a == "object" && a !== null && a.$$typeof ===
|
|
455
|
+
return typeof a == "object" && a !== null && a.$$typeof === n;
|
|
456
456
|
}
|
|
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
|
|
|
@@ -491,25 +491,25 @@ Check the top-level render call using <` + u + ">.");
|
|
|
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
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
|
|
512
|
+
for (var z = H.call(a), F; !(F = z.next()).done; )
|
|
513
513
|
Ze(F.value) && pa(F.value, s);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
@@ -524,16 +524,16 @@ Check the top-level render call using <` + u + ">.");
|
|
|
524
524
|
u = s.propTypes;
|
|
525
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
|
-
s.$$typeof ===
|
|
527
|
+
s.$$typeof === N))
|
|
528
528
|
u = s.propTypes;
|
|
529
529
|
else
|
|
530
530
|
return;
|
|
531
531
|
if (u) {
|
|
532
|
-
var
|
|
533
|
-
|
|
532
|
+
var A = I(s);
|
|
533
|
+
Be(u, a.props, "prop", A, a);
|
|
534
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
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.");
|
|
@@ -542,58 +542,58 @@ Check the top-level render call using <` + u + ">.");
|
|
|
542
542
|
function Oa(a) {
|
|
543
543
|
{
|
|
544
544
|
for (var s = Object.keys(a.props), u = 0; u < s.length; u++) {
|
|
545
|
-
var
|
|
546
|
-
if (
|
|
547
|
-
|
|
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, s, u,
|
|
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 === c ? Oa(
|
|
596
|
+
return a === c ? Oa(ce) : Ga(ce), ce;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
function $a(a, s, u) {
|
|
@@ -2275,22 +2275,22 @@ const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBord
|
|
|
2275
2275
|
kn: bt
|
|
2276
2276
|
}, Sa = Ta(null), yi = ({
|
|
2277
2277
|
locale: t,
|
|
2278
|
-
children:
|
|
2278
|
+
children: n
|
|
2279
2279
|
}) => {
|
|
2280
|
-
const c = { locale: t, t: (
|
|
2281
|
-
return /* @__PURE__ */ e.jsx(Sa.Provider, { value: c, children:
|
|
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:
|
|
2287
|
+
const { priority: n, fetchPriority: i, width: c, height: g, ...k } = t;
|
|
2288
2288
|
return na.createElement("img", {
|
|
2289
|
-
...
|
|
2289
|
+
...k,
|
|
2290
2290
|
width: c ?? 1,
|
|
2291
|
-
height:
|
|
2291
|
+
height: g ?? 1,
|
|
2292
2292
|
decoding: "async",
|
|
2293
|
-
loading:
|
|
2293
|
+
loading: k.loading ?? (n ? "eager" : "lazy"),
|
|
2294
2294
|
...i && { fetchPriority: i }
|
|
2295
2295
|
});
|
|
2296
2296
|
};
|
|
@@ -2303,10 +2303,10 @@ function At(t) {
|
|
|
2303
2303
|
return null;
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
2306
|
-
function vt(t,
|
|
2306
|
+
function vt(t, n) {
|
|
2307
2307
|
if (!(typeof window > "u" || !window.localStorage))
|
|
2308
2308
|
try {
|
|
2309
|
-
window.localStorage.setItem(t,
|
|
2309
|
+
window.localStorage.setItem(t, n);
|
|
2310
2310
|
} catch {
|
|
2311
2311
|
}
|
|
2312
2312
|
}
|
|
@@ -2348,153 +2348,153 @@ const ia = Ta(null), xt = {
|
|
|
2348
2348
|
birthPlace: ""
|
|
2349
2349
|
}, Ti = ({
|
|
2350
2350
|
locale: t,
|
|
2351
|
-
showLanguageSelector:
|
|
2351
|
+
showLanguageSelector: n = !0,
|
|
2352
2352
|
showSheet: i,
|
|
2353
2353
|
userId: c,
|
|
2354
|
-
isGlobal:
|
|
2355
|
-
variant:
|
|
2356
|
-
initialFormValues:
|
|
2357
|
-
autoOpenPlanSheet:
|
|
2354
|
+
isGlobal: g,
|
|
2355
|
+
variant: k,
|
|
2356
|
+
initialFormValues: h,
|
|
2357
|
+
autoOpenPlanSheet: S,
|
|
2358
2358
|
googleMapsApiKey: b,
|
|
2359
|
-
atlasSearchLocalities:
|
|
2360
|
-
googleMapsAutocompleteEnabled:
|
|
2361
|
-
enableConsultationScheduling:
|
|
2359
|
+
atlasSearchLocalities: q,
|
|
2360
|
+
googleMapsAutocompleteEnabled: D,
|
|
2361
|
+
enableConsultationScheduling: N,
|
|
2362
2362
|
fetchConsultationSlots: p,
|
|
2363
|
-
logoUrl:
|
|
2364
|
-
reportImageUrl:
|
|
2365
|
-
reportImagePriority:
|
|
2366
|
-
backgroundImagePriority:
|
|
2367
|
-
universityLogoUrls:
|
|
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
|
-
showLanguageSelector:
|
|
2406
|
+
showLanguageSelector: n,
|
|
2407
2407
|
showSheet: i,
|
|
2408
2408
|
userId: c,
|
|
2409
|
-
isGlobal:
|
|
2410
|
-
variant:
|
|
2411
|
-
initialFormValues:
|
|
2412
|
-
autoOpenPlanSheet:
|
|
2409
|
+
isGlobal: g,
|
|
2410
|
+
variant: k,
|
|
2411
|
+
initialFormValues: h,
|
|
2412
|
+
autoOpenPlanSheet: S,
|
|
2413
2413
|
googleMapsApiKey: b,
|
|
2414
|
-
atlasSearchLocalities:
|
|
2415
|
-
googleMapsAutocompleteEnabled:
|
|
2416
|
-
enableConsultationScheduling:
|
|
2414
|
+
atlasSearchLocalities: q,
|
|
2415
|
+
googleMapsAutocompleteEnabled: D,
|
|
2416
|
+
enableConsultationScheduling: N,
|
|
2417
2417
|
fetchConsultationSlots: p,
|
|
2418
|
-
logoUrl:
|
|
2419
|
-
reportImageUrl:
|
|
2420
|
-
reportImagePriority:
|
|
2421
|
-
backgroundImagePriority:
|
|
2422
|
-
universityLogoUrls:
|
|
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
2443
|
i,
|
|
2444
2444
|
c,
|
|
2445
|
-
_,
|
|
2446
|
-
y,
|
|
2447
2445
|
g,
|
|
2448
|
-
|
|
2446
|
+
k,
|
|
2447
|
+
h,
|
|
2448
|
+
S,
|
|
2449
2449
|
b,
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2450
|
+
q,
|
|
2451
|
+
D,
|
|
2452
|
+
N,
|
|
2453
2453
|
p,
|
|
2454
|
-
|
|
2455
|
-
A,
|
|
2456
|
-
z,
|
|
2454
|
+
U,
|
|
2457
2455
|
v,
|
|
2458
|
-
|
|
2456
|
+
R,
|
|
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
2500
|
function Pi() {
|
|
@@ -2510,7 +2510,7 @@ const St = "_header_19172_1", wt = "_centered_19172_8", ya = {
|
|
|
2510
2510
|
centered: wt
|
|
2511
2511
|
}, Ct = ({
|
|
2512
2512
|
t,
|
|
2513
|
-
onBack:
|
|
2513
|
+
onBack: n,
|
|
2514
2514
|
className: i = "",
|
|
2515
2515
|
align: c = "left"
|
|
2516
2516
|
}) => /* @__PURE__ */ e.jsx(
|
|
@@ -2518,7 +2518,7 @@ const St = "_header_19172_1", wt = "_centered_19172_8", ya = {
|
|
|
2518
2518
|
{
|
|
2519
2519
|
title: t("formTitle"),
|
|
2520
2520
|
subtitle: t("formSubtitle"),
|
|
2521
|
-
onBack:
|
|
2521
|
+
onBack: n,
|
|
2522
2522
|
backAriaLabel: t("back"),
|
|
2523
2523
|
className: `${ya.header} ${c === "center" ? ya.centered : ""} ${i}`
|
|
2524
2524
|
}
|
|
@@ -2577,25 +2577,25 @@ const St = "_header_19172_1", wt = "_centered_19172_8", ya = {
|
|
|
2577
2577
|
checkboxText: Sr
|
|
2578
2578
|
};
|
|
2579
2579
|
let Je = null;
|
|
2580
|
-
const wr = (t,
|
|
2581
|
-
const
|
|
2580
|
+
const wr = (t, 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() -
|
|
2598
|
+
if (Date.now() - S > 2e3) {
|
|
2599
2599
|
c(
|
|
2600
2600
|
new Error(
|
|
2601
2601
|
"Google Maps loaded but Places library is unavailable. Check API key restrictions / enabled APIs."
|
|
@@ -2606,161 +2606,161 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2606
2606
|
window.setTimeout(b, 50);
|
|
2607
2607
|
};
|
|
2608
2608
|
b();
|
|
2609
|
-
},
|
|
2609
|
+
}, k.onerror = () => c(new Error("Failed to load Google Maps API")), document.head.appendChild(k);
|
|
2610
2610
|
}), Je), Cr = (t) => {
|
|
2611
|
-
const { apiKey:
|
|
2612
|
-
|
|
2613
|
-
}, [
|
|
2614
|
-
|
|
2615
|
-
if (!
|
|
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(
|
|
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
|
-
}, [
|
|
2627
|
-
const
|
|
2628
|
-
async (
|
|
2629
|
-
if (!
|
|
2626
|
+
}, [n, i, U]);
|
|
2627
|
+
const ne = je(
|
|
2628
|
+
async (x) => {
|
|
2629
|
+
if (!x || x.length < 2 || !R.current) {
|
|
2630
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
|
-
c && (
|
|
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
2649
|
b(
|
|
2650
|
-
|
|
2651
|
-
place_id:
|
|
2652
|
-
description:
|
|
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
2665
|
[c]
|
|
2666
|
-
),
|
|
2667
|
-
async (
|
|
2668
|
-
if (!
|
|
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
|
|
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
|
-
limit:
|
|
2717
|
+
limit: n,
|
|
2718
2718
|
offset: i,
|
|
2719
2719
|
restrictCountry: t?.restrictCountry
|
|
2720
2720
|
};
|
|
2721
2721
|
}, Rr = (t) => {
|
|
2722
|
-
const { searchLocalities:
|
|
2723
|
-
|
|
2722
|
+
const { searchLocalities: n, restrictCountry: i } = t, [c, g] = B([]), [k, h] = B(!1), [S, b] = B(null), q = M(0);
|
|
2723
|
+
K(() => {
|
|
2724
2724
|
b(null);
|
|
2725
|
-
}, [
|
|
2726
|
-
const
|
|
2725
|
+
}, [n]);
|
|
2726
|
+
const D = je(
|
|
2727
2727
|
async (p) => {
|
|
2728
|
-
if (!p || p.length < 2 || !
|
|
2729
|
-
|
|
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
|
-
[i,
|
|
2755
|
-
),
|
|
2754
|
+
[i, n]
|
|
2755
|
+
), N = je(() => g([]), []);
|
|
2756
2756
|
return {
|
|
2757
2757
|
predictions: c,
|
|
2758
|
-
isSearching:
|
|
2759
|
-
loadError:
|
|
2760
|
-
searchPlaces:
|
|
2761
|
-
clearPredictions:
|
|
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, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2835
2835
|
{ code: "+975", country: "Bhutan" },
|
|
2836
2836
|
{ code: "+976", country: "Mongolia" },
|
|
2837
2837
|
{ code: "+977", country: "Nepal" }
|
|
2838
|
-
], ra = Ca.map((t) => t.code), ja = 10, la = (t) => t.replace(/\D/g, ""), va = (t) => la(t).slice(0, ja), Nr = (t) => la(t).length === ja, Lr = (t,
|
|
2838
|
+
], ra = Ca.map((t) => t.code), ja = 10, la = (t) => t.replace(/\D/g, ""), va = (t) => la(t).slice(0, ja), Nr = (t) => la(t).length === ja, Lr = (t, 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
|
-
values:
|
|
2840
|
+
values: n,
|
|
2841
2841
|
onChange: i,
|
|
2842
2842
|
phoneIsdCode: c,
|
|
2843
|
-
onPhoneIsdCodeChange:
|
|
2844
|
-
showV1ExtraFields:
|
|
2845
|
-
analytics:
|
|
2846
|
-
googleMapsApiKey:
|
|
2843
|
+
onPhoneIsdCodeChange: g,
|
|
2844
|
+
showV1ExtraFields: k = !1,
|
|
2845
|
+
analytics: h,
|
|
2846
|
+
googleMapsApiKey: S,
|
|
2847
2847
|
atlasSearchLocalities: b,
|
|
2848
|
-
googleMapsAutocompleteEnabled:
|
|
2849
|
-
className:
|
|
2848
|
+
googleMapsAutocompleteEnabled: q,
|
|
2849
|
+
className: D = ""
|
|
2850
2850
|
}) => {
|
|
2851
|
-
const
|
|
2852
|
-
if (
|
|
2853
|
-
const
|
|
2854
|
-
|
|
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
|
+
if (r === "phone") {
|
|
2853
|
+
const J = Lr(d, c, Y.current);
|
|
2854
|
+
J.shouldTrack && p?.trackPhoneSectionFilled?.({ phone: J.fullPhone });
|
|
2855
2855
|
return;
|
|
2856
2856
|
}
|
|
2857
|
-
d.trim() && !
|
|
2857
|
+
d.trim() && !Y.current[r] && (Y.current[r] = !0, {
|
|
2858
2858
|
fullName: () => p?.trackNameSectionFilled?.(),
|
|
2859
2859
|
dateOfBirth: () => p?.trackDobFilled?.(),
|
|
2860
2860
|
birthTime: () => p?.trackTimeFilled?.(),
|
|
2861
2861
|
birthPlace: () => p?.trackPlaceOfBirthChosen?.()
|
|
2862
|
-
}[
|
|
2863
|
-
},
|
|
2864
|
-
const d =
|
|
2862
|
+
}[r]?.());
|
|
2863
|
+
}, le = (r) => {
|
|
2864
|
+
const d = r.target.value;
|
|
2865
2865
|
d.trim() && p?.trackEmailSectionFilled?.({ email: d });
|
|
2866
|
-
},
|
|
2867
|
-
|
|
2868
|
-
const $ =
|
|
2869
|
-
const d = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(
|
|
2870
|
-
if (!d) return
|
|
2871
|
-
const
|
|
2872
|
-
return `${
|
|
2873
|
-
},
|
|
2874
|
-
const d = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(
|
|
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
2875
|
if (!d) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
2876
|
-
const
|
|
2877
|
-
return { hour12:
|
|
2878
|
-
}, Ne = (
|
|
2879
|
-
const d = Math.min(12, Math.max(1,
|
|
2880
|
-
let
|
|
2881
|
-
return
|
|
2882
|
-
},
|
|
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
|
+
}, Ne = (r) => {
|
|
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
|
-
}),
|
|
2892
|
-
id:
|
|
2893
|
-
description:
|
|
2894
|
-
secondaryText:
|
|
2891
|
+
}), xe = te ? ke.predictions.map((r) => ({
|
|
2892
|
+
id: r.place_id,
|
|
2893
|
+
description: r.description,
|
|
2894
|
+
secondaryText: r.structured_formatting?.secondary_text,
|
|
2895
2895
|
lat: void 0,
|
|
2896
2896
|
lng: void 0
|
|
2897
|
-
})) :
|
|
2898
|
-
id:
|
|
2899
|
-
description:
|
|
2900
|
-
secondaryText:
|
|
2901
|
-
lat:
|
|
2902
|
-
lng:
|
|
2903
|
-
})),
|
|
2897
|
+
})) : ye.predictions.map((r) => ({
|
|
2898
|
+
id: r.id,
|
|
2899
|
+
description: r.description,
|
|
2900
|
+
secondaryText: r.secondary_text,
|
|
2901
|
+
lat: r.lat,
|
|
2902
|
+
lng: r.lng
|
|
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
|
-
(
|
|
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
|
|
2913
|
-
|
|
2910
|
+
}), fe(!1);
|
|
2911
|
+
}, K(() => {
|
|
2912
|
+
const r = (d) => {
|
|
2913
|
+
be.current && (be.current.contains(d.target) || ee.current());
|
|
2914
2914
|
};
|
|
2915
|
-
return document.addEventListener("mousedown",
|
|
2916
|
-
}, []),
|
|
2917
|
-
const
|
|
2918
|
-
|
|
2915
|
+
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
2916
|
+
}, []), K(() => {
|
|
2917
|
+
const r = (d) => {
|
|
2918
|
+
Q.current && (Q.current.contains(d.target) || (w(!1), C("")));
|
|
2919
2919
|
};
|
|
2920
|
-
return document.addEventListener("mousedown",
|
|
2921
|
-
}, []),
|
|
2922
|
-
if (!
|
|
2923
|
-
const
|
|
2924
|
-
|
|
2920
|
+
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
2921
|
+
}, []), K(() => {
|
|
2922
|
+
if (!_) return;
|
|
2923
|
+
const r = window.setTimeout(() => {
|
|
2924
|
+
x.current?.focus();
|
|
2925
2925
|
}, 0);
|
|
2926
|
-
return () => window.clearTimeout(
|
|
2927
|
-
}, [
|
|
2926
|
+
return () => window.clearTimeout(r);
|
|
2927
|
+
}, [_]), K(() => {
|
|
2928
2928
|
if (!Z) return;
|
|
2929
|
-
if (
|
|
2930
|
-
|
|
2929
|
+
if (se.length < 2) {
|
|
2930
|
+
f();
|
|
2931
2931
|
return;
|
|
2932
2932
|
}
|
|
2933
|
-
const
|
|
2934
|
-
await
|
|
2933
|
+
const r = window.setTimeout(async () => {
|
|
2934
|
+
await l(se);
|
|
2935
2935
|
}, 250);
|
|
2936
|
-
return () => window.clearTimeout(
|
|
2937
|
-
}, [
|
|
2938
|
-
const
|
|
2939
|
-
const d =
|
|
2936
|
+
return () => window.clearTimeout(r);
|
|
2937
|
+
}, [f, Z, se, l]);
|
|
2938
|
+
const ge = (r) => {
|
|
2939
|
+
const d = r.current;
|
|
2940
2940
|
if (!(!d || d.disabled)) {
|
|
2941
|
-
if (document.activeElement === d && $.current === d && Date.now() -
|
|
2941
|
+
if (document.activeElement === d && $.current === d && Date.now() - X.current < 6e4) {
|
|
2942
2942
|
d.blur();
|
|
2943
2943
|
return;
|
|
2944
2944
|
}
|
|
2945
2945
|
if (typeof d.showPicker == "function") {
|
|
2946
|
-
d.showPicker(), $.current = d,
|
|
2946
|
+
d.showPicker(), $.current = d, X.current = Date.now();
|
|
2947
2947
|
return;
|
|
2948
2948
|
}
|
|
2949
|
-
d.focus(), $.current = d,
|
|
2949
|
+
d.focus(), $.current = d, X.current = Date.now();
|
|
2950
2950
|
}
|
|
2951
2951
|
};
|
|
2952
|
-
return
|
|
2953
|
-
const
|
|
2954
|
-
|
|
2952
|
+
return K(() => {
|
|
2953
|
+
const r = (d) => {
|
|
2954
|
+
O.current && (O.current.contains(d.target) || V(!1));
|
|
2955
2955
|
};
|
|
2956
|
-
return document.addEventListener("mousedown",
|
|
2957
|
-
}, []),
|
|
2958
|
-
const
|
|
2959
|
-
|
|
2960
|
-
}, d = (
|
|
2961
|
-
|
|
2956
|
+
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
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",
|
|
2964
|
-
document.removeEventListener("mousedown",
|
|
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: [
|
|
@@ -2980,11 +2980,11 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2980
2980
|
id: "kundli-full-name",
|
|
2981
2981
|
className: o.input,
|
|
2982
2982
|
type: "text",
|
|
2983
|
-
value:
|
|
2983
|
+
value: n.fullName,
|
|
2984
2984
|
onFocus: () => p?.trackNameSectionClicked?.(),
|
|
2985
|
-
onChange: (
|
|
2986
|
-
const d =
|
|
2987
|
-
|
|
2985
|
+
onChange: (r) => {
|
|
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, r) => 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,9 +3004,9 @@ const wr = (t, r) => 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((
|
|
3009
|
+
w((r) => !r), C("");
|
|
3010
3010
|
},
|
|
3011
3011
|
children: c
|
|
3012
3012
|
}
|
|
@@ -3017,23 +3017,23 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3017
3017
|
id: "kundli-phone",
|
|
3018
3018
|
className: `${o.input} ${o.phoneInput}`,
|
|
3019
3019
|
type: "tel",
|
|
3020
|
-
value:
|
|
3020
|
+
value: n.phone ?? "",
|
|
3021
3021
|
onFocus: () => p?.trackPhoneSectionClicked?.(),
|
|
3022
|
-
onChange: (
|
|
3023
|
-
const d =
|
|
3024
|
-
|
|
3022
|
+
onChange: (r) => {
|
|
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,38 +3043,38 @@ const wr = (t, r) => 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: (
|
|
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":
|
|
3061
|
-
className: `${o.isdOption} ${
|
|
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
|
-
/* @__PURE__ */ e.jsx("span", { className: o.isdCountryName, children:
|
|
3067
|
-
/* @__PURE__ */ e.jsx("span", { className: o.isdCountryCode, children:
|
|
3066
|
+
/* @__PURE__ */ e.jsx("span", { className: o.isdCountryName, children: r.country }),
|
|
3067
|
+
/* @__PURE__ */ e.jsx("span", { className: o.isdCountryCode, children: r.code })
|
|
3068
3068
|
]
|
|
3069
3069
|
},
|
|
3070
|
-
`${
|
|
3070
|
+
`${r.code}-${r.country}`
|
|
3071
3071
|
)) : /* @__PURE__ */ e.jsx("div", { className: o.isdNoResult, children: "No country found" })
|
|
3072
3072
|
]
|
|
3073
3073
|
}
|
|
3074
3074
|
)
|
|
3075
3075
|
] }) })
|
|
3076
3076
|
] }),
|
|
3077
|
-
|
|
3077
|
+
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: "*" })
|
|
@@ -3091,14 +3091,14 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3091
3091
|
{
|
|
3092
3092
|
id: "kundli-gender-male",
|
|
3093
3093
|
type: "button",
|
|
3094
|
-
className: `${o.choiceBtn} ${
|
|
3094
|
+
className: `${o.choiceBtn} ${n.gender === "male" ? o.choiceBtnActive : ""}`,
|
|
3095
3095
|
onClick: () => {
|
|
3096
|
-
|
|
3096
|
+
j({ gender: "male" }), p?.trackGenderSelected?.({
|
|
3097
3097
|
gender: "male"
|
|
3098
3098
|
});
|
|
3099
3099
|
},
|
|
3100
3100
|
role: "radio",
|
|
3101
|
-
"aria-checked":
|
|
3101
|
+
"aria-checked": n.gender === "male",
|
|
3102
3102
|
children: t("formGenderMale")
|
|
3103
3103
|
}
|
|
3104
3104
|
),
|
|
@@ -3107,14 +3107,14 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3107
3107
|
{
|
|
3108
3108
|
id: "kundli-gender-female",
|
|
3109
3109
|
type: "button",
|
|
3110
|
-
className: `${o.choiceBtn} ${
|
|
3110
|
+
className: `${o.choiceBtn} ${n.gender === "female" ? o.choiceBtnActive : ""}`,
|
|
3111
3111
|
onClick: () => {
|
|
3112
|
-
|
|
3112
|
+
j({ gender: "female" }), p?.trackGenderSelected?.({
|
|
3113
3113
|
gender: "female"
|
|
3114
3114
|
});
|
|
3115
3115
|
},
|
|
3116
3116
|
role: "radio",
|
|
3117
|
-
"aria-checked":
|
|
3117
|
+
"aria-checked": n.gender === "female",
|
|
3118
3118
|
children: t("formGenderFemale")
|
|
3119
3119
|
}
|
|
3120
3120
|
)
|
|
@@ -3122,7 +3122,7 @@ const wr = (t, r) => 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: "*" })
|
|
@@ -3134,12 +3134,12 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3134
3134
|
id: "kundli-email",
|
|
3135
3135
|
className: o.input,
|
|
3136
3136
|
type: "email",
|
|
3137
|
-
value:
|
|
3137
|
+
value: n.email,
|
|
3138
3138
|
onFocus: () => p?.trackEmailSectionClicked?.(),
|
|
3139
|
-
onChange: (
|
|
3140
|
-
|
|
3139
|
+
onChange: (r) => {
|
|
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, r) => 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, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3188
3188
|
id: "kundli-dob",
|
|
3189
3189
|
className: o.input,
|
|
3190
3190
|
type: "date",
|
|
3191
|
-
ref:
|
|
3192
|
-
value:
|
|
3191
|
+
ref: I,
|
|
3192
|
+
value: n.dateOfBirth,
|
|
3193
3193
|
max: (() => {
|
|
3194
|
-
const
|
|
3195
|
-
return `${
|
|
3194
|
+
const r = /* @__PURE__ */ new Date();
|
|
3195
|
+
return `${r.getFullYear()}-${ae(r.getMonth() + 1)}-${ae(r.getDate())}`;
|
|
3196
3196
|
})(),
|
|
3197
|
-
onChange: (
|
|
3198
|
-
const d =
|
|
3199
|
-
d && d >
|
|
3197
|
+
onChange: (r) => {
|
|
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
3201
|
onFocus: () => p?.trackDobClicked?.(),
|
|
3202
|
-
onClick: () =>
|
|
3202
|
+
onClick: () => ge(I),
|
|
3203
3203
|
onBlur: () => {
|
|
3204
|
-
$.current ===
|
|
3204
|
+
$.current === I.current && ($.current = null);
|
|
3205
3205
|
}
|
|
3206
3206
|
}
|
|
3207
3207
|
),
|
|
@@ -3211,15 +3211,15 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3211
3211
|
type: "button",
|
|
3212
3212
|
className: `${o.iconBtn} ${o.iconBtnInteractive}`,
|
|
3213
3213
|
"aria-label": "Open date picker",
|
|
3214
|
-
onMouseDown: (
|
|
3215
|
-
onClick: (
|
|
3216
|
-
|
|
3214
|
+
onMouseDown: (r) => r.preventDefault(),
|
|
3215
|
+
onClick: (r) => {
|
|
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, r) => 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
|
-
p?.trackInfoIconClicked?.({ fieldName: "time" }),
|
|
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:
|
|
3272
|
+
value: n.birthTime ? Se(n.birthTime) : "",
|
|
3273
3273
|
readOnly: !0,
|
|
3274
3274
|
onFocus: () => p?.trackTimeClicked?.(),
|
|
3275
|
-
onChange: (
|
|
3276
|
-
const d =
|
|
3277
|
-
|
|
3275
|
+
onChange: (r) => {
|
|
3276
|
+
const d = r.target.value;
|
|
3277
|
+
j({ birthTime: d }), E("birthTime", d);
|
|
3278
3278
|
},
|
|
3279
|
-
disabled:
|
|
3279
|
+
disabled: n.birthTimeUnknown,
|
|
3280
3280
|
placeholder: "HH:MM AM",
|
|
3281
3281
|
onClick: () => {
|
|
3282
|
-
|
|
3282
|
+
n.birthTimeUnknown || (ue(me(n.birthTime || "12:00")), V((r) => !r));
|
|
3283
3283
|
}
|
|
3284
3284
|
}
|
|
3285
3285
|
),
|
|
@@ -3289,23 +3289,23 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3289
3289
|
type: "button",
|
|
3290
3290
|
className: `${o.iconBtn} ${o.iconBtnInteractive}`,
|
|
3291
3291
|
"aria-label": "Open time picker",
|
|
3292
|
-
disabled:
|
|
3293
|
-
onMouseDown: (
|
|
3294
|
-
onClick: (
|
|
3295
|
-
|
|
3292
|
+
disabled: n.birthTimeUnknown,
|
|
3293
|
+
onMouseDown: (r) => r.preventDefault(),
|
|
3294
|
+
onClick: (r) => {
|
|
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, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3317
3317
|
"select",
|
|
3318
3318
|
{
|
|
3319
3319
|
className: o.timePickerSelect,
|
|
3320
|
-
value:
|
|
3321
|
-
onChange: (
|
|
3320
|
+
value: oe.hour12,
|
|
3321
|
+
onChange: (r) => ue((d) => ({
|
|
3322
3322
|
...d,
|
|
3323
|
-
hour12: Number(
|
|
3323
|
+
hour12: Number(r.target.value)
|
|
3324
3324
|
})),
|
|
3325
3325
|
"aria-label": "Hour",
|
|
3326
|
-
children: Array.from({ length: 12 }, (
|
|
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,11 +3331,11 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3331
3331
|
"select",
|
|
3332
3332
|
{
|
|
3333
3333
|
className: o.timePickerSelect,
|
|
3334
|
-
value:
|
|
3335
|
-
onChange: (
|
|
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 }, (
|
|
3338
|
-
(
|
|
3337
|
+
children: Array.from({ length: 60 }, (r, d) => ae(d)).map(
|
|
3338
|
+
(r) => /* @__PURE__ */ e.jsx("option", { value: r, children: r }, r)
|
|
3339
3339
|
)
|
|
3340
3340
|
}
|
|
3341
3341
|
),
|
|
@@ -3344,8 +3344,8 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3344
3344
|
"button",
|
|
3345
3345
|
{
|
|
3346
3346
|
type: "button",
|
|
3347
|
-
className: `${o.meridiemBtn} ${
|
|
3348
|
-
onClick: () => ue((
|
|
3347
|
+
className: `${o.meridiemBtn} ${oe.meridiem === "AM" ? o.meridiemActive : ""}`,
|
|
3348
|
+
onClick: () => ue((r) => ({ ...r, meridiem: "AM" })),
|
|
3349
3349
|
children: "AM"
|
|
3350
3350
|
}
|
|
3351
3351
|
),
|
|
@@ -3353,8 +3353,8 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3353
3353
|
"button",
|
|
3354
3354
|
{
|
|
3355
3355
|
type: "button",
|
|
3356
|
-
className: `${o.meridiemBtn} ${
|
|
3357
|
-
onClick: () => ue((
|
|
3356
|
+
className: `${o.meridiemBtn} ${oe.meridiem === "PM" ? o.meridiemActive : ""}`,
|
|
3357
|
+
onClick: () => ue((r) => ({ ...r, meridiem: "PM" })),
|
|
3358
3358
|
children: "PM"
|
|
3359
3359
|
}
|
|
3360
3360
|
)
|
|
@@ -3366,7 +3366,7 @@ const wr = (t, r) => 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, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3376
3376
|
type: "button",
|
|
3377
3377
|
className: `${o.timePopoverBtn} ${o.timePopoverOk}`,
|
|
3378
3378
|
onClick: () => {
|
|
3379
|
-
const
|
|
3380
|
-
|
|
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(
|
|
@@ -3415,11 +3415,11 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3415
3415
|
id: "kundli-time-unknown",
|
|
3416
3416
|
className: o.checkbox,
|
|
3417
3417
|
type: "checkbox",
|
|
3418
|
-
checked:
|
|
3419
|
-
onChange: (
|
|
3420
|
-
p?.trackTimeCheckboxClicked?.(),
|
|
3421
|
-
birthTimeUnknown:
|
|
3422
|
-
birthTime:
|
|
3418
|
+
checked: n.birthTimeUnknown,
|
|
3419
|
+
onChange: (r) => {
|
|
3420
|
+
p?.trackTimeCheckboxClicked?.(), j({
|
|
3421
|
+
birthTimeUnknown: r.target.checked,
|
|
3422
|
+
birthTime: r.target.checked ? "" : n.birthTime
|
|
3423
3423
|
});
|
|
3424
3424
|
}
|
|
3425
3425
|
}
|
|
@@ -3451,47 +3451,47 @@ const wr = (t, r) => 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
|
{
|
|
3481
3481
|
id: "kundli-birth-place",
|
|
3482
3482
|
className: o.input,
|
|
3483
3483
|
type: "text",
|
|
3484
|
-
value:
|
|
3485
|
-
onChange: (
|
|
3486
|
-
const d =
|
|
3487
|
-
|
|
3484
|
+
value: n.birthPlace,
|
|
3485
|
+
onChange: (r) => {
|
|
3486
|
+
const d = r.target.value;
|
|
3487
|
+
j({
|
|
3488
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
|
-
p?.trackPlaceOfBirthClicked?.(),
|
|
3494
|
+
p?.trackPlaceOfBirthClicked?.(), fe(!0);
|
|
3495
3495
|
},
|
|
3496
3496
|
placeholder: t("formBirthPlacePlaceholder"),
|
|
3497
3497
|
autoComplete: "address-level2"
|
|
@@ -3501,46 +3501,46 @@ const wr = (t, r) => 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 d =
|
|
3516
|
-
if (
|
|
3515
|
+
const d = r.description;
|
|
3516
|
+
if (he.current = d, j({
|
|
3517
3517
|
birthPlace: d,
|
|
3518
|
-
birthPlaceLat:
|
|
3519
|
-
birthPlaceLng:
|
|
3520
|
-
}),
|
|
3521
|
-
const
|
|
3522
|
-
|
|
3518
|
+
birthPlaceLat: r.lat,
|
|
3519
|
+
birthPlaceLng: r.lng
|
|
3520
|
+
}), f(), fe(!1), te) {
|
|
3521
|
+
const J = await ke.getPlaceDetails(
|
|
3522
|
+
r.id
|
|
3523
3523
|
);
|
|
3524
|
-
|
|
3525
|
-
...
|
|
3524
|
+
J && (he.current = d, i({
|
|
3525
|
+
...n,
|
|
3526
3526
|
birthPlace: d,
|
|
3527
|
-
birthPlaceLat:
|
|
3528
|
-
birthPlaceLng:
|
|
3527
|
+
birthPlaceLat: J.lat,
|
|
3528
|
+
birthPlaceLng: J.lng
|
|
3529
3529
|
}));
|
|
3530
3530
|
}
|
|
3531
3531
|
},
|
|
3532
3532
|
children: [
|
|
3533
|
-
/* @__PURE__ */ e.jsx("span", { className: o.suggestionMain, children:
|
|
3534
|
-
|
|
3533
|
+
/* @__PURE__ */ e.jsx("span", { className: o.suggestionMain, children: r.description }),
|
|
3534
|
+
r.secondaryText && /* @__PURE__ */ e.jsx("span", { className: o.suggestionSecondary, children: r.secondaryText })
|
|
3535
3535
|
]
|
|
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: "*" })
|
|
@@ -3557,14 +3557,14 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3557
3557
|
{
|
|
3558
3558
|
id: "kundli-report-lang-hi",
|
|
3559
3559
|
type: "button",
|
|
3560
|
-
className: `${o.choiceBtn} ${
|
|
3560
|
+
className: `${o.choiceBtn} ${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
|
},
|
|
3566
3566
|
role: "radio",
|
|
3567
|
-
"aria-checked":
|
|
3567
|
+
"aria-checked": n.language_code === "hi",
|
|
3568
3568
|
children: t("formReportLanguageHindi")
|
|
3569
3569
|
}
|
|
3570
3570
|
),
|
|
@@ -3573,14 +3573,14 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3573
3573
|
{
|
|
3574
3574
|
id: "kundli-report-lang-en",
|
|
3575
3575
|
type: "button",
|
|
3576
|
-
className: `${o.choiceBtn} ${
|
|
3576
|
+
className: `${o.choiceBtn} ${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
|
},
|
|
3582
3582
|
role: "radio",
|
|
3583
|
-
"aria-checked":
|
|
3583
|
+
"aria-checked": n.language_code === "en",
|
|
3584
3584
|
children: t("formReportLanguageEnglish")
|
|
3585
3585
|
}
|
|
3586
3586
|
),
|
|
@@ -3589,14 +3589,14 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3589
3589
|
{
|
|
3590
3590
|
id: "kundli-report-lang-te",
|
|
3591
3591
|
type: "button",
|
|
3592
|
-
className: `${o.choiceBtn} ${
|
|
3592
|
+
className: `${o.choiceBtn} ${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
|
},
|
|
3598
3598
|
role: "radio",
|
|
3599
|
-
"aria-checked":
|
|
3599
|
+
"aria-checked": n.language_code === "te",
|
|
3600
3600
|
children: t("formReportLanguageTelugu")
|
|
3601
3601
|
}
|
|
3602
3602
|
),
|
|
@@ -3605,14 +3605,14 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3605
3605
|
{
|
|
3606
3606
|
id: "kundli-report-lang-ta",
|
|
3607
3607
|
type: "button",
|
|
3608
|
-
className: `${o.choiceBtn} ${
|
|
3608
|
+
className: `${o.choiceBtn} ${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
|
},
|
|
3614
3614
|
role: "radio",
|
|
3615
|
-
"aria-checked":
|
|
3615
|
+
"aria-checked": n.language_code === "ta",
|
|
3616
3616
|
children: t("formReportLanguageTamil")
|
|
3617
3617
|
}
|
|
3618
3618
|
),
|
|
@@ -3621,14 +3621,14 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3621
3621
|
{
|
|
3622
3622
|
id: "kundli-report-lang-kn",
|
|
3623
3623
|
type: "button",
|
|
3624
|
-
className: `${o.choiceBtn} ${
|
|
3624
|
+
className: `${o.choiceBtn} ${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
|
},
|
|
3630
3630
|
role: "radio",
|
|
3631
|
-
"aria-checked":
|
|
3631
|
+
"aria-checked": n.language_code === "kn",
|
|
3632
3632
|
children: t("formReportLanguageKannada")
|
|
3633
3633
|
}
|
|
3634
3634
|
),
|
|
@@ -3637,14 +3637,14 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3637
3637
|
{
|
|
3638
3638
|
id: "kundli-report-lang-gu",
|
|
3639
3639
|
type: "button",
|
|
3640
|
-
className: `${o.choiceBtn} ${
|
|
3640
|
+
className: `${o.choiceBtn} ${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
|
},
|
|
3646
3646
|
role: "radio",
|
|
3647
|
-
"aria-checked":
|
|
3647
|
+
"aria-checked": n.language_code === "gu",
|
|
3648
3648
|
children: t("formReportLanguageGujarati")
|
|
3649
3649
|
}
|
|
3650
3650
|
),
|
|
@@ -3653,14 +3653,14 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3653
3653
|
{
|
|
3654
3654
|
id: "kundli-report-lang-mr",
|
|
3655
3655
|
type: "button",
|
|
3656
|
-
className: `${o.choiceBtn} ${
|
|
3656
|
+
className: `${o.choiceBtn} ${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
|
},
|
|
3662
3662
|
role: "radio",
|
|
3663
|
-
"aria-checked":
|
|
3663
|
+
"aria-checked": n.language_code === "mr",
|
|
3664
3664
|
children: t("formReportLanguageMarathi")
|
|
3665
3665
|
}
|
|
3666
3666
|
)
|
|
@@ -3677,15 +3677,15 @@ const wr = (t, r) => 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 i =
|
|
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, r) => 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, r) => 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,9 +3722,9 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3722
3722
|
t("ctaSecurePayment")
|
|
3723
3723
|
] })
|
|
3724
3724
|
] });
|
|
3725
|
-
}, Wr = (t) => /.+@.+\..+/.test(t), Kr = (t) => /^\d{10}$/.test(t), qr = (t,
|
|
3725
|
+
}, Wr = (t) => /.+@.+\..+/.test(t), Kr = (t) => /^\d{10}$/.test(t), qr = (t, n, i) => {
|
|
3726
3726
|
if (!t.fullName.trim()) return "fullName";
|
|
3727
|
-
if (
|
|
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";
|
|
@@ -3736,51 +3736,51 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3736
3736
|
return !t.birthTimeUnknown && !t.birthTime ? "birthTime" : null;
|
|
3737
3737
|
}, Yr = ({
|
|
3738
3738
|
t,
|
|
3739
|
-
values:
|
|
3739
|
+
values: n,
|
|
3740
3740
|
phoneIsdCode: i,
|
|
3741
3741
|
requireV1ExtraFields: c = !1,
|
|
3742
|
-
onValidationFailed:
|
|
3743
|
-
onProceed:
|
|
3744
|
-
onProceedGuidance:
|
|
3745
|
-
href:
|
|
3742
|
+
onValidationFailed: g,
|
|
3743
|
+
onProceed: k,
|
|
3744
|
+
onProceedGuidance: h,
|
|
3745
|
+
href: S,
|
|
3746
3746
|
analytics: b,
|
|
3747
|
-
className:
|
|
3748
|
-
discountedPriceLabel:
|
|
3749
|
-
discountPillLabel:
|
|
3747
|
+
className: q = "",
|
|
3748
|
+
discountedPriceLabel: D,
|
|
3749
|
+
discountPillLabel: N,
|
|
3750
3750
|
showPlanSheet: p,
|
|
3751
|
-
confirmPlan:
|
|
3752
|
-
planSheetOpen:
|
|
3753
|
-
selectedPlan:
|
|
3751
|
+
confirmPlan: U,
|
|
3752
|
+
planSheetOpen: v,
|
|
3753
|
+
selectedPlan: R
|
|
3754
3754
|
}) => {
|
|
3755
|
-
const
|
|
3756
|
-
() => qr(
|
|
3757
|
-
[
|
|
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
|
|
3764
|
-
...
|
|
3765
|
-
phone:
|
|
3763
|
+
const re = !!h && w === "v1" && R?.id === Ra, G = (n.phone ?? "").trim(), I = {
|
|
3764
|
+
...n,
|
|
3765
|
+
phone: G && `${i}-${G}`
|
|
3766
3766
|
};
|
|
3767
|
-
if (
|
|
3768
|
-
|
|
3767
|
+
if (Q) {
|
|
3768
|
+
v ? U?.() : p?.(I);
|
|
3769
3769
|
return;
|
|
3770
3770
|
}
|
|
3771
|
-
b?.trackPrimaryCtaClickedL1?.({ avenue: "form" }),
|
|
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,33 +3793,33 @@ const wr = (t, r) => 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
|
-
languageSelector:
|
|
3810
|
+
languageSelector: n,
|
|
3811
3811
|
logoUrl: i = Vr,
|
|
3812
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
3819
|
logoUrl: i,
|
|
3820
|
-
imageComponent:
|
|
3821
|
-
languageSelector:
|
|
3822
|
-
showLanguageSelector:
|
|
3820
|
+
imageComponent: g?.config.imageComponent,
|
|
3821
|
+
languageSelector: n,
|
|
3822
|
+
showLanguageSelector: h,
|
|
3823
3823
|
className: c
|
|
3824
3824
|
}
|
|
3825
3825
|
);
|
|
@@ -3875,7 +3875,7 @@ const wr = (t, r) => 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,104 +3920,104 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3920
3920
|
bullet: Kn,
|
|
3921
3921
|
footer: qn,
|
|
3922
3922
|
proceedBtn: Yn
|
|
3923
|
-
}, Vn = ({ title: t, onBack:
|
|
3923
|
+
}, Vn = ({ title: t, onBack: n }) => /* @__PURE__ */ e.jsxs("div", { className: T.header, children: [
|
|
3924
3924
|
/* @__PURE__ */ e.jsx(
|
|
3925
3925
|
"button",
|
|
3926
3926
|
{
|
|
3927
|
-
className:
|
|
3928
|
-
onClick:
|
|
3927
|
+
className: T.backBtn,
|
|
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:
|
|
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:
|
|
3940
|
+
className: `${T.featureText} `,
|
|
3941
|
+
children: n?.(i.text) ?? i.text
|
|
3942
3942
|
}
|
|
3943
3943
|
)
|
|
3944
|
-
] }, c)) }), zn = ({ astrologer: t, t:
|
|
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
|
-
|
|
3956
|
+
n?.(i) ?? i
|
|
3957
3957
|
] }, c)) })
|
|
3958
|
-
] }), Qn = ({ label: t }) => /* @__PURE__ */ e.jsxs("div", { className:
|
|
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:
|
|
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
|
-
|
|
3971
|
-
|
|
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
|
-
"aria-checked":
|
|
3975
|
+
"aria-checked": n,
|
|
3976
3976
|
tabIndex: 0,
|
|
3977
|
-
onKeyDown:
|
|
3977
|
+
onKeyDown: k,
|
|
3978
3978
|
"data-plan-id": t.id,
|
|
3979
3979
|
children: [
|
|
3980
3980
|
t.badge && /* @__PURE__ */ e.jsx(Qn, { label: c?.(t.badge) ?? t.badge }),
|
|
3981
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3982
|
-
/* @__PURE__ */ e.jsxs("div", { className: `${
|
|
3983
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
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:
|
|
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
3998
|
/* @__PURE__ */ e.jsx(Jn, { features: t.features, t: c }),
|
|
3999
|
-
t.astrologers && /* @__PURE__ */ e.jsx("div", { className:
|
|
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
|
]
|
|
4006
4006
|
}
|
|
4007
4007
|
);
|
|
4008
4008
|
}, aa = (t) => {
|
|
4009
|
-
const
|
|
4010
|
-
if (!
|
|
4011
|
-
const i = Number(
|
|
4012
|
-
return `${i % 12 || 12}:${c} ${
|
|
4013
|
-
}, Zn = (t,
|
|
4009
|
+
const n = t.match(/T(\d{2}):(\d{2})/);
|
|
4010
|
+
if (!n) return t;
|
|
4011
|
+
const i = Number(n[1]), c = n[2], g = i >= 12 ? "PM" : "AM";
|
|
4012
|
+
return `${i % 12 || 12}:${c} ${g}`;
|
|
4013
|
+
}, Zn = (t, n = /* @__PURE__ */ new Date()) => {
|
|
4014
4014
|
const i = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], c = /* @__PURE__ */ new Date(`${t}T00:00:00`);
|
|
4015
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, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4051
4051
|
gu: ["gu", "en"],
|
|
4052
4052
|
mr: ["mr", "en"],
|
|
4053
4053
|
ta: ["ta", "en"]
|
|
4054
|
-
}, La = (t) => !!t?.days?.some((
|
|
4055
|
-
const c = i ? ro : to, [
|
|
4056
|
-
(b) => b !==
|
|
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,
|
|
@@ -4119,216 +4119,222 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4119
4119
|
morning: "planPeriodMorning",
|
|
4120
4120
|
afternoon: "planPeriodAfternoon",
|
|
4121
4121
|
evening: "planPeriodEvening"
|
|
4122
|
-
}, ta = (t) => qe.find((
|
|
4123
|
-
const
|
|
4124
|
-
return
|
|
4122
|
+
}, ta = (t) => qe.find((n) => n.code === t)?.label ?? t, si = (t) => {
|
|
4123
|
+
const n = t.match(/([+-]\d{2}:\d{2})$/);
|
|
4124
|
+
return n ? `GMT${n[1]}` : t.endsWith("Z") ? "GMT+00:00" : "";
|
|
4125
4125
|
}, ci = ({
|
|
4126
4126
|
onProceed: t,
|
|
4127
|
-
astrologers:
|
|
4127
|
+
astrologers: n,
|
|
4128
4128
|
t: i,
|
|
4129
4129
|
analytics: c,
|
|
4130
|
-
reportLanguage:
|
|
4131
|
-
isPostPayment:
|
|
4132
|
-
showGuidanceTopic:
|
|
4130
|
+
reportLanguage: g,
|
|
4131
|
+
isPostPayment: k = !1,
|
|
4132
|
+
showGuidanceTopic: h,
|
|
4133
|
+
hideFooter: S = !1,
|
|
4134
|
+
onStateChange: b
|
|
4133
4135
|
}) => {
|
|
4134
|
-
const
|
|
4135
|
-
() =>
|
|
4136
|
-
[
|
|
4137
|
-
), [
|
|
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(
|
|
4138
4140
|
{}
|
|
4139
|
-
), [
|
|
4140
|
-
() =>
|
|
4141
|
-
[
|
|
4142
|
-
),
|
|
4143
|
-
|
|
4144
|
-
const
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
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
|
|
4148
4150
|
);
|
|
4149
|
-
|
|
4150
|
-
language: ta(
|
|
4151
|
-
status:
|
|
4151
|
+
Q(f), Y(ee), c?.trackConsultationLanguageDefaultSelected?.({
|
|
4152
|
+
language: ta(ee),
|
|
4153
|
+
status: R
|
|
4152
4154
|
});
|
|
4153
|
-
const
|
|
4154
|
-
(
|
|
4155
|
+
const ge = (f[ee]?.days ?? []).filter(
|
|
4156
|
+
(r) => r.has_availability && r.slots.length > 0
|
|
4155
4157
|
).length;
|
|
4156
4158
|
c?.trackAstrologerAvailabilityServed?.({
|
|
4157
|
-
astrologers_shown:
|
|
4158
|
-
dates_available_count:
|
|
4159
|
-
status:
|
|
4159
|
+
astrologers_shown: n.map((r) => r.name),
|
|
4160
|
+
dates_available_count: ge,
|
|
4161
|
+
status: R
|
|
4160
4162
|
});
|
|
4161
4163
|
}).catch(() => {
|
|
4162
|
-
|
|
4163
|
-
}).finally(() =>
|
|
4164
|
-
}, [
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
}, []),
|
|
4164
|
+
ne(!0);
|
|
4165
|
+
}).finally(() => _(!1)));
|
|
4166
|
+
}, [p, U, v, c, n, R]);
|
|
4167
|
+
K(() => {
|
|
4168
|
+
I(""), E(!1), pe();
|
|
4169
|
+
}, []), K(() => {
|
|
4168
4170
|
if (!j) return;
|
|
4169
|
-
const l = (
|
|
4170
|
-
|
|
4171
|
+
const l = (f) => {
|
|
4172
|
+
le.current && !le.current.contains(f.target) && E(!1);
|
|
4171
4173
|
};
|
|
4172
4174
|
return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
|
|
4173
|
-
}, [j]),
|
|
4175
|
+
}, [j]), K(() => {
|
|
4174
4176
|
if (!W.length) {
|
|
4175
|
-
|
|
4177
|
+
X(""), oe(null);
|
|
4176
4178
|
return;
|
|
4177
4179
|
}
|
|
4178
4180
|
const l = W[0];
|
|
4179
|
-
W.some((
|
|
4181
|
+
W.some((f) => f.date === $) || c?.trackConsultationDateDefaultSelected?.({
|
|
4180
4182
|
date: l.date,
|
|
4181
|
-
status:
|
|
4182
|
-
}),
|
|
4183
|
-
(
|
|
4183
|
+
status: R
|
|
4184
|
+
}), X(
|
|
4185
|
+
(f) => W.some((ee) => ee.date === f) ? f : l.date
|
|
4184
4186
|
);
|
|
4185
4187
|
}, [W]);
|
|
4186
|
-
const
|
|
4187
|
-
() => W.find((l) => l.date ===
|
|
4188
|
-
[W,
|
|
4189
|
-
),
|
|
4190
|
-
if (!
|
|
4191
|
-
const l = new Set(
|
|
4192
|
-
return eo.filter((
|
|
4193
|
-
}, [
|
|
4194
|
-
|
|
4195
|
-
if (!
|
|
4196
|
-
|
|
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);
|
|
4197
4199
|
return;
|
|
4198
4200
|
}
|
|
4199
|
-
|
|
4200
|
-
(l) =>
|
|
4201
|
+
Te(
|
|
4202
|
+
(l) => _e.includes(l) ? l : _e[0]
|
|
4201
4203
|
);
|
|
4202
|
-
}, [
|
|
4203
|
-
const
|
|
4204
|
-
|
|
4204
|
+
}, [_e]);
|
|
4205
|
+
const te = Ee(() => de ? de.slots.filter((l) => l.period === O) : [], [de, O]);
|
|
4206
|
+
K(() => {
|
|
4205
4207
|
const l = () => {
|
|
4206
|
-
const
|
|
4207
|
-
if (!
|
|
4208
|
-
|
|
4208
|
+
const f = ae.current, ee = Se.current[$];
|
|
4209
|
+
if (!f || !ee) {
|
|
4210
|
+
Ne(null);
|
|
4209
4211
|
return;
|
|
4210
4212
|
}
|
|
4211
|
-
const
|
|
4212
|
-
|
|
4213
|
-
left:
|
|
4214
|
-
top:
|
|
4215
|
-
width:
|
|
4216
|
-
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
|
|
4217
4219
|
});
|
|
4218
4220
|
};
|
|
4219
4221
|
return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
|
|
4220
|
-
}, [
|
|
4222
|
+
}, [$, W]), K(() => {
|
|
4221
4223
|
const l = () => {
|
|
4222
|
-
const
|
|
4223
|
-
if (!
|
|
4224
|
-
|
|
4224
|
+
const f = be.current, ee = Z.current[O];
|
|
4225
|
+
if (!f || !ee) {
|
|
4226
|
+
he(null);
|
|
4225
4227
|
return;
|
|
4226
4228
|
}
|
|
4227
|
-
const
|
|
4228
|
-
|
|
4229
|
-
left:
|
|
4230
|
-
width:
|
|
4229
|
+
const ge = f.getBoundingClientRect(), r = ee.getBoundingClientRect();
|
|
4230
|
+
he({
|
|
4231
|
+
left: r.left - ge.left,
|
|
4232
|
+
width: r.width
|
|
4231
4233
|
});
|
|
4232
4234
|
};
|
|
4233
4235
|
return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
|
|
4234
|
-
}, [
|
|
4235
|
-
if (!
|
|
4236
|
-
|
|
4236
|
+
}, [O, _e]), K(() => {
|
|
4237
|
+
if (!te.length) {
|
|
4238
|
+
oe(null);
|
|
4237
4239
|
return;
|
|
4238
4240
|
}
|
|
4239
|
-
if (!(
|
|
4240
|
-
const
|
|
4241
|
+
if (!(V && te.some((f) => f.start === V.start))) {
|
|
4242
|
+
const f = te[0];
|
|
4241
4243
|
c?.trackConsultationTimeDefaultSelected?.({
|
|
4242
|
-
time: aa(
|
|
4243
|
-
gmt_offset: si(
|
|
4244
|
-
status:
|
|
4244
|
+
time: aa(f.start),
|
|
4245
|
+
gmt_offset: si(f.start),
|
|
4246
|
+
status: R
|
|
4245
4247
|
});
|
|
4246
4248
|
}
|
|
4247
|
-
|
|
4248
|
-
(
|
|
4249
|
+
oe(
|
|
4250
|
+
(f) => f && te.some((ee) => ee.start === f.start) ? f : te[0]
|
|
4249
4251
|
);
|
|
4250
|
-
}, [
|
|
4251
|
-
W.length && !
|
|
4252
|
-
astrologers_shown:
|
|
4252
|
+
}, [te]), K(() => {
|
|
4253
|
+
W.length && !ue.current && (c?.trackSlotScreenViewed?.({
|
|
4254
|
+
astrologers_shown: n.map((l) => l.name),
|
|
4253
4255
|
dates_available_count: W.length,
|
|
4254
|
-
status:
|
|
4255
|
-
}),
|
|
4256
|
-
}, [W,
|
|
4257
|
-
const
|
|
4258
|
-
|
|
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?.({
|
|
4259
4261
|
date: l,
|
|
4260
|
-
day_part_default:
|
|
4261
|
-
status:
|
|
4262
|
+
day_part_default: O,
|
|
4263
|
+
status: R
|
|
4262
4264
|
});
|
|
4263
|
-
},
|
|
4264
|
-
|
|
4265
|
+
}, Pe = (l) => {
|
|
4266
|
+
Te(l), c?.trackDayPartSelected?.({
|
|
4265
4267
|
day_part: l,
|
|
4266
|
-
slots_available_count:
|
|
4267
|
-
status:
|
|
4268
|
+
slots_available_count: de?.slots.filter((f) => f.period === l).length ?? 0,
|
|
4269
|
+
status: R
|
|
4268
4270
|
});
|
|
4269
|
-
},
|
|
4270
|
-
|
|
4271
|
-
date:
|
|
4271
|
+
}, ke = (l) => {
|
|
4272
|
+
oe(l), c?.trackSlotSelected?.({
|
|
4273
|
+
date: $,
|
|
4272
4274
|
time: aa(l.start),
|
|
4273
4275
|
day_part: l.period,
|
|
4274
|
-
topic:
|
|
4275
|
-
status:
|
|
4276
|
+
topic: G || null,
|
|
4277
|
+
status: R
|
|
4276
4278
|
});
|
|
4277
|
-
},
|
|
4278
|
-
|
|
4279
|
-
slot_datetime: `${
|
|
4280
|
-
status:
|
|
4279
|
+
}, ye = () => {
|
|
4280
|
+
V && (c?.trackSlotReservationRequested?.({
|
|
4281
|
+
slot_datetime: `${V.start} - ${V.end}`,
|
|
4282
|
+
status: R
|
|
4281
4283
|
}), t({
|
|
4282
|
-
start:
|
|
4283
|
-
end:
|
|
4284
|
-
period:
|
|
4285
|
-
topic:
|
|
4286
|
-
language:
|
|
4284
|
+
start: V.start,
|
|
4285
|
+
end: V.end,
|
|
4286
|
+
period: V.period,
|
|
4287
|
+
topic: G,
|
|
4288
|
+
language: x
|
|
4287
4289
|
}));
|
|
4288
|
-
},
|
|
4289
|
-
|
|
4290
|
-
|
|
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) => {
|
|
4291
4297
|
c?.trackConsultationLanguageChanged?.({
|
|
4292
|
-
previous_language: ta(
|
|
4298
|
+
previous_language: ta(x),
|
|
4293
4299
|
new_language: ta(l),
|
|
4294
|
-
slots_available: La(
|
|
4295
|
-
status:
|
|
4296
|
-
}),
|
|
4297
|
-
},
|
|
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];
|
|
4298
4304
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4299
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
4300
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
4301
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
4302
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
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: [
|
|
4303
4309
|
/* @__PURE__ */ e.jsxs(
|
|
4304
4310
|
"button",
|
|
4305
4311
|
{
|
|
4306
4312
|
type: "button",
|
|
4307
|
-
className:
|
|
4308
|
-
onClick: () =>
|
|
4313
|
+
className: m.languageDropdownBtn,
|
|
4314
|
+
onClick: () => E((l) => !l),
|
|
4309
4315
|
"aria-haspopup": "listbox",
|
|
4310
4316
|
"aria-expanded": j,
|
|
4311
4317
|
children: [
|
|
4312
|
-
i?.(
|
|
4318
|
+
i?.(P.labelKey) ?? P.label,
|
|
4313
4319
|
/* @__PURE__ */ e.jsx(Qr, {})
|
|
4314
4320
|
]
|
|
4315
4321
|
}
|
|
4316
4322
|
),
|
|
4317
|
-
j && /* @__PURE__ */ e.jsx("ul", { className:
|
|
4318
|
-
const
|
|
4323
|
+
j && /* @__PURE__ */ e.jsx("ul", { className: m.languageMenu, role: "listbox", children: qe.map((l) => {
|
|
4324
|
+
const f = l.code === x;
|
|
4319
4325
|
return /* @__PURE__ */ e.jsxs(
|
|
4320
4326
|
"li",
|
|
4321
4327
|
{
|
|
4322
4328
|
role: "option",
|
|
4323
|
-
"aria-selected":
|
|
4329
|
+
"aria-selected": f,
|
|
4324
4330
|
className: [
|
|
4325
|
-
|
|
4326
|
-
|
|
4331
|
+
m.languageMenuItem,
|
|
4332
|
+
f ? m.languageMenuItemSelected : ""
|
|
4327
4333
|
].filter(Boolean).join(" "),
|
|
4328
|
-
onClick: () =>
|
|
4334
|
+
onClick: () => De(l.code),
|
|
4329
4335
|
children: [
|
|
4330
4336
|
i?.(l.labelKey) ?? l.label,
|
|
4331
|
-
|
|
4337
|
+
f && /* @__PURE__ */ e.jsx(Na, {})
|
|
4332
4338
|
]
|
|
4333
4339
|
},
|
|
4334
4340
|
l.code
|
|
@@ -4336,119 +4342,119 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4336
4342
|
}) })
|
|
4337
4343
|
] })
|
|
4338
4344
|
] }),
|
|
4339
|
-
/* @__PURE__ */ e.jsx("hr", { className:
|
|
4340
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
4341
|
-
/* @__PURE__ */ e.jsxs("p", { className:
|
|
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: [
|
|
4342
4348
|
i?.("planReportReadyPrefix") ?? "Your Report will be ready in",
|
|
4343
4349
|
" ",
|
|
4344
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
4350
|
+
/* @__PURE__ */ e.jsx("span", { className: m.reportReadyDuration, children: i?.("planReportReadyDuration") ?? "24-48 hours" }),
|
|
4345
4351
|
" ",
|
|
4346
4352
|
i?.("planReportReadySuffix") ?? "from today"
|
|
4347
4353
|
] }),
|
|
4348
|
-
|
|
4349
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
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(
|
|
4350
4356
|
"div",
|
|
4351
4357
|
{
|
|
4352
|
-
className: [
|
|
4358
|
+
className: [m.skeletonDateTab, m.skeletonShimmer].join(" ")
|
|
4353
4359
|
},
|
|
4354
|
-
|
|
4360
|
+
f
|
|
4355
4361
|
)) }),
|
|
4356
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
4362
|
+
/* @__PURE__ */ e.jsx("div", { className: m.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((l, f) => /* @__PURE__ */ e.jsx(
|
|
4357
4363
|
"div",
|
|
4358
4364
|
{
|
|
4359
|
-
className: [
|
|
4365
|
+
className: [m.skeletonPeriodTab, m.skeletonShimmer].join(" ")
|
|
4360
4366
|
},
|
|
4361
|
-
|
|
4367
|
+
f
|
|
4362
4368
|
)) }),
|
|
4363
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
4369
|
+
/* @__PURE__ */ e.jsx("div", { className: m.skeletonTimeGrid, children: Array.from({ length: 6 }).map((l, f) => /* @__PURE__ */ e.jsx(
|
|
4364
4370
|
"div",
|
|
4365
4371
|
{
|
|
4366
|
-
className: [
|
|
4372
|
+
className: [m.skeletonTimeSlot, m.skeletonShimmer].join(" ")
|
|
4367
4373
|
},
|
|
4368
|
-
|
|
4374
|
+
f
|
|
4369
4375
|
)) })
|
|
4370
4376
|
] }),
|
|
4371
|
-
!
|
|
4377
|
+
!y && w && /* @__PURE__ */ e.jsxs("div", { className: m.stateMessage, children: [
|
|
4372
4378
|
i?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
4373
|
-
/* @__PURE__ */ e.jsx("button", { type: "button", className:
|
|
4379
|
+
/* @__PURE__ */ e.jsx("button", { type: "button", className: m.retryBtn, onClick: pe, children: i?.("planRetry") ?? "Retry" })
|
|
4374
4380
|
] }),
|
|
4375
|
-
!
|
|
4376
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
4377
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
4378
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
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." })
|
|
4379
4385
|
] }),
|
|
4380
|
-
!
|
|
4381
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
4382
|
-
|
|
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(
|
|
4383
4389
|
"span",
|
|
4384
4390
|
{
|
|
4385
|
-
className:
|
|
4391
|
+
className: m.dateTabIndicator,
|
|
4386
4392
|
style: {
|
|
4387
|
-
transform: `translate(${
|
|
4388
|
-
width:
|
|
4389
|
-
height:
|
|
4393
|
+
transform: `translate(${me.left}px, ${me.top}px)`,
|
|
4394
|
+
width: me.width,
|
|
4395
|
+
height: me.height
|
|
4390
4396
|
},
|
|
4391
4397
|
"aria-hidden": "true"
|
|
4392
4398
|
}
|
|
4393
4399
|
),
|
|
4394
4400
|
W.map((l) => {
|
|
4395
|
-
const
|
|
4401
|
+
const f = l.date === $, { dayLabel: ee, dayNum: ge } = Zn(l.date);
|
|
4396
4402
|
return /* @__PURE__ */ e.jsxs(Va, { children: [
|
|
4397
4403
|
/* @__PURE__ */ e.jsxs(
|
|
4398
4404
|
"button",
|
|
4399
4405
|
{
|
|
4400
4406
|
type: "button",
|
|
4401
|
-
ref: (
|
|
4402
|
-
|
|
4407
|
+
ref: (r) => {
|
|
4408
|
+
Se.current[l.date] = r;
|
|
4403
4409
|
},
|
|
4404
4410
|
className: [
|
|
4405
|
-
|
|
4406
|
-
|
|
4411
|
+
m.dateTab,
|
|
4412
|
+
f ? m.dateTabSelected : ""
|
|
4407
4413
|
].filter(Boolean).join(" "),
|
|
4408
4414
|
role: "radio",
|
|
4409
|
-
"aria-checked":
|
|
4410
|
-
onClick: () =>
|
|
4415
|
+
"aria-checked": f,
|
|
4416
|
+
onClick: () => Re(l.date),
|
|
4411
4417
|
children: [
|
|
4412
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
4413
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
4418
|
+
/* @__PURE__ */ e.jsx("span", { className: m.dateTabLabel, children: i?.(ee) ?? ee }),
|
|
4419
|
+
/* @__PURE__ */ e.jsx("span", { className: m.dateTabNum, children: ge })
|
|
4414
4420
|
]
|
|
4415
4421
|
}
|
|
4416
4422
|
),
|
|
4417
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
4423
|
+
/* @__PURE__ */ e.jsx("span", { className: m.dateTabDivider, "aria-hidden": !0 })
|
|
4418
4424
|
] }, l.date);
|
|
4419
4425
|
})
|
|
4420
4426
|
] }),
|
|
4421
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
4422
|
-
|
|
4427
|
+
/* @__PURE__ */ e.jsxs("div", { className: m.periodTabs, ref: be, role: "tablist", "aria-label": "Time of day", children: [
|
|
4428
|
+
fe && /* @__PURE__ */ e.jsx(
|
|
4423
4429
|
"span",
|
|
4424
4430
|
{
|
|
4425
|
-
className:
|
|
4431
|
+
className: m.periodTabIndicator,
|
|
4426
4432
|
style: {
|
|
4427
|
-
transform: `translateX(${
|
|
4428
|
-
width:
|
|
4433
|
+
transform: `translateX(${fe.left}px)`,
|
|
4434
|
+
width: fe.width
|
|
4429
4435
|
},
|
|
4430
4436
|
"aria-hidden": "true"
|
|
4431
4437
|
}
|
|
4432
4438
|
),
|
|
4433
|
-
|
|
4434
|
-
const
|
|
4439
|
+
_e.map((l) => {
|
|
4440
|
+
const f = ii[l], ee = l === "evening" && U ? "planPeriodEveningNight" : li[l];
|
|
4435
4441
|
return /* @__PURE__ */ e.jsxs(
|
|
4436
4442
|
"button",
|
|
4437
4443
|
{
|
|
4438
|
-
ref: (
|
|
4439
|
-
|
|
4444
|
+
ref: (ge) => {
|
|
4445
|
+
Z.current[l] = ge;
|
|
4440
4446
|
},
|
|
4441
4447
|
type: "button",
|
|
4442
4448
|
className: [
|
|
4443
|
-
|
|
4444
|
-
l ===
|
|
4449
|
+
m.periodTab,
|
|
4450
|
+
l === O ? m.periodTabSelected : ""
|
|
4445
4451
|
].filter(Boolean).join(" "),
|
|
4446
4452
|
role: "tab",
|
|
4447
|
-
"aria-selected": l ===
|
|
4448
|
-
onClick: () =>
|
|
4453
|
+
"aria-selected": l === O,
|
|
4454
|
+
onClick: () => Pe(l),
|
|
4449
4455
|
children: [
|
|
4450
|
-
/* @__PURE__ */ e.jsx(
|
|
4451
|
-
i?.(
|
|
4456
|
+
/* @__PURE__ */ e.jsx(f, {}),
|
|
4457
|
+
i?.(ee) ?? (l === "evening" && U ? "Evening/Night" : l.charAt(0).toUpperCase() + l.slice(1))
|
|
4452
4458
|
]
|
|
4453
4459
|
},
|
|
4454
4460
|
l
|
|
@@ -4458,51 +4464,51 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4458
4464
|
/* @__PURE__ */ e.jsx(
|
|
4459
4465
|
"div",
|
|
4460
4466
|
{
|
|
4461
|
-
className:
|
|
4467
|
+
className: m.timeGrid,
|
|
4462
4468
|
role: "radiogroup",
|
|
4463
4469
|
"aria-label": "Consultation time",
|
|
4464
|
-
children:
|
|
4470
|
+
children: te.map((l, f) => /* @__PURE__ */ e.jsx(
|
|
4465
4471
|
"button",
|
|
4466
4472
|
{
|
|
4467
4473
|
type: "button",
|
|
4468
4474
|
className: [
|
|
4469
|
-
|
|
4470
|
-
|
|
4475
|
+
m.timeSlot,
|
|
4476
|
+
V?.start === l.start ? m.timeSlotSelected : ""
|
|
4471
4477
|
].filter(Boolean).join(" "),
|
|
4472
4478
|
role: "radio",
|
|
4473
|
-
"aria-checked":
|
|
4474
|
-
onClick: () =>
|
|
4479
|
+
"aria-checked": V?.start === l.start,
|
|
4480
|
+
onClick: () => ke(l),
|
|
4475
4481
|
children: aa(l.start)
|
|
4476
4482
|
},
|
|
4477
|
-
`${l.start}-${
|
|
4483
|
+
`${l.start}-${f}`
|
|
4478
4484
|
))
|
|
4479
4485
|
},
|
|
4480
|
-
`${
|
|
4486
|
+
`${$}-${O}`
|
|
4481
4487
|
)
|
|
4482
4488
|
] }),
|
|
4483
|
-
|
|
4484
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
4485
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
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(
|
|
4486
4492
|
"button",
|
|
4487
4493
|
{
|
|
4488
4494
|
type: "button",
|
|
4489
4495
|
className: [
|
|
4490
|
-
|
|
4491
|
-
|
|
4496
|
+
m.topicChip,
|
|
4497
|
+
G === l.id ? m.topicChipSelected : ""
|
|
4492
4498
|
].filter(Boolean).join(" "),
|
|
4493
4499
|
role: "radio",
|
|
4494
|
-
"aria-checked":
|
|
4495
|
-
onClick: () =>
|
|
4500
|
+
"aria-checked": G === l.id,
|
|
4501
|
+
onClick: () => Be(l.id),
|
|
4496
4502
|
children: i?.(l.labelKey) ?? l.label
|
|
4497
4503
|
},
|
|
4498
4504
|
l.id
|
|
4499
4505
|
)) })
|
|
4500
4506
|
] })
|
|
4501
4507
|
] }),
|
|
4502
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
4503
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
4504
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
4505
|
-
|
|
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,
|
|
4506
4512
|
{
|
|
4507
4513
|
src: "https://srm-cdn.a4b.io/yoda/1785317712031.svg",
|
|
4508
4514
|
alt: "",
|
|
@@ -4513,45 +4519,45 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4513
4519
|
loading: "eager"
|
|
4514
4520
|
}
|
|
4515
4521
|
) }),
|
|
4516
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
4522
|
+
/* @__PURE__ */ e.jsx("span", { className: m.trustText, children: i?.("planConsultationTrustLabel") ?? "3,750+ people have booked consultation" })
|
|
4517
4523
|
] }),
|
|
4518
4524
|
/* @__PURE__ */ e.jsx(
|
|
4519
4525
|
"button",
|
|
4520
4526
|
{
|
|
4521
4527
|
type: "button",
|
|
4522
|
-
className: [
|
|
4523
|
-
disabled: !
|
|
4524
|
-
onClick:
|
|
4525
|
-
children:
|
|
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"
|
|
4526
4532
|
}
|
|
4527
4533
|
)
|
|
4528
4534
|
] })
|
|
4529
4535
|
] });
|
|
4530
4536
|
}, di = ({
|
|
4531
4537
|
isOpen: t,
|
|
4532
|
-
onClose:
|
|
4538
|
+
onClose: n,
|
|
4533
4539
|
t: i,
|
|
4534
4540
|
...c
|
|
4535
4541
|
}) => t ? /* @__PURE__ */ e.jsx(
|
|
4536
4542
|
"div",
|
|
4537
4543
|
{
|
|
4538
|
-
className:
|
|
4544
|
+
className: m.overlay,
|
|
4539
4545
|
role: "dialog",
|
|
4540
4546
|
"aria-modal": "true",
|
|
4541
4547
|
"aria-label": i?.("planConsultationSlotTitle") ?? "Select consultation slot",
|
|
4542
|
-
children: /* @__PURE__ */ e.jsxs("div", { className:
|
|
4543
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
4548
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: m.sheet, children: [
|
|
4549
|
+
/* @__PURE__ */ e.jsxs("div", { className: m.header, children: [
|
|
4544
4550
|
/* @__PURE__ */ e.jsx(
|
|
4545
4551
|
"button",
|
|
4546
4552
|
{
|
|
4547
|
-
className:
|
|
4548
|
-
onClick:
|
|
4553
|
+
className: m.backBtn,
|
|
4554
|
+
onClick: n,
|
|
4549
4555
|
"aria-label": "Go back",
|
|
4550
4556
|
type: "button",
|
|
4551
4557
|
children: /* @__PURE__ */ e.jsx(sa, {})
|
|
4552
4558
|
}
|
|
4553
4559
|
),
|
|
4554
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
4560
|
+
/* @__PURE__ */ e.jsx("h2", { className: m.title, children: i?.("planConsultationSlotTitle") ?? "Select consultation slot" })
|
|
4555
4561
|
] }),
|
|
4556
4562
|
/* @__PURE__ */ e.jsx(ci, { t: i, ...c })
|
|
4557
4563
|
] })
|
|
@@ -4585,18 +4591,6 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4585
4591
|
certifications: ["planAstrologerCertBhuCertified", "planAstrologerCertMantraRudraksha"]
|
|
4586
4592
|
}
|
|
4587
4593
|
], pi = (t) => [
|
|
4588
|
-
{
|
|
4589
|
-
id: "kundli-report",
|
|
4590
|
-
title: "planNameBasic",
|
|
4591
|
-
price: t ? "$25" : "₹499",
|
|
4592
|
-
features: [
|
|
4593
|
-
{ text: "planFeatureDetailedInsights", included: !0 },
|
|
4594
|
-
{ text: "planFeaturePracticalRemedies", included: !0 },
|
|
4595
|
-
{ text: "planFeatureClearLanguage", included: !0 },
|
|
4596
|
-
{ text: "planFeatureAstrologyConsultant", included: !1 },
|
|
4597
|
-
{ text: "planFeaturePersonalizedReading", included: !1 }
|
|
4598
|
-
]
|
|
4599
|
-
},
|
|
4600
4594
|
{
|
|
4601
4595
|
id: "kundli-report-astrologer",
|
|
4602
4596
|
title: "planNameGuidance",
|
|
@@ -4611,118 +4605,130 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4611
4605
|
{ text: "planFeatureTailoredRemedies", included: !0 }
|
|
4612
4606
|
],
|
|
4613
4607
|
astrologers: ui.filter(
|
|
4614
|
-
(
|
|
4608
|
+
(n) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(n.id)
|
|
4615
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
|
+
]
|
|
4616
4622
|
}
|
|
4617
4623
|
], mi = ({
|
|
4618
4624
|
isOpen: t,
|
|
4619
|
-
onClose:
|
|
4625
|
+
onClose: n,
|
|
4620
4626
|
selectedPlan: i,
|
|
4621
4627
|
onSelectPlan: c,
|
|
4622
|
-
plans:
|
|
4623
|
-
onProceed:
|
|
4624
|
-
t:
|
|
4625
|
-
analytics:
|
|
4628
|
+
plans: g,
|
|
4629
|
+
onProceed: k,
|
|
4630
|
+
t: h,
|
|
4631
|
+
analytics: S,
|
|
4626
4632
|
enableConsultationScheduling: b
|
|
4627
4633
|
}) => {
|
|
4628
|
-
const
|
|
4629
|
-
|
|
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(() => {
|
|
4630
4636
|
if (t) {
|
|
4631
4637
|
if (!i) {
|
|
4632
|
-
const
|
|
4633
|
-
|
|
4638
|
+
const C = p.find((Q) => Q.badge) ?? p[0];
|
|
4639
|
+
C && c(C);
|
|
4634
4640
|
}
|
|
4635
|
-
|
|
4636
|
-
plans_shown: p.map((
|
|
4637
|
-
default_selected_plan: i?.id || p.find((
|
|
4638
|
-
}),
|
|
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);
|
|
4639
4645
|
} else
|
|
4640
|
-
|
|
4641
|
-
}, [t, p, i, c,
|
|
4642
|
-
const
|
|
4643
|
-
|
|
4646
|
+
y.current = !1;
|
|
4647
|
+
}, [t, p, i, c, S]);
|
|
4648
|
+
const ne = () => {
|
|
4649
|
+
S?.trackPlanPageClosed?.(), n();
|
|
4644
4650
|
};
|
|
4645
|
-
return
|
|
4651
|
+
return K(() => {
|
|
4646
4652
|
if (!t) return;
|
|
4647
|
-
const
|
|
4653
|
+
const C = document.body.style.overflow;
|
|
4648
4654
|
return document.body.style.overflow = "hidden", () => {
|
|
4649
|
-
document.body.style.overflow =
|
|
4655
|
+
document.body.style.overflow = C;
|
|
4650
4656
|
};
|
|
4651
4657
|
}, [t]), t ? /* @__PURE__ */ e.jsxs(
|
|
4652
4658
|
"div",
|
|
4653
4659
|
{
|
|
4654
|
-
className:
|
|
4660
|
+
className: T.overlay,
|
|
4655
4661
|
role: "dialog",
|
|
4656
4662
|
"aria-modal": "true",
|
|
4657
|
-
"aria-label":
|
|
4663
|
+
"aria-label": h?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
4658
4664
|
children: [
|
|
4659
4665
|
/* @__PURE__ */ e.jsxs(
|
|
4660
4666
|
"div",
|
|
4661
4667
|
{
|
|
4662
|
-
ref:
|
|
4663
|
-
className:
|
|
4668
|
+
ref: v,
|
|
4669
|
+
className: N ? T.sheetFullScreen : T.sheet,
|
|
4664
4670
|
children: [
|
|
4665
|
-
|
|
4671
|
+
N ? /* @__PURE__ */ e.jsxs("div", { className: T.headerFull, children: [
|
|
4666
4672
|
/* @__PURE__ */ e.jsx(
|
|
4667
4673
|
"button",
|
|
4668
4674
|
{
|
|
4669
|
-
className:
|
|
4670
|
-
onClick:
|
|
4675
|
+
className: T.backBtn,
|
|
4676
|
+
onClick: ne,
|
|
4671
4677
|
"aria-label": "Go back",
|
|
4672
4678
|
type: "button",
|
|
4673
4679
|
children: /* @__PURE__ */ e.jsx(sa, {})
|
|
4674
4680
|
}
|
|
4675
4681
|
),
|
|
4676
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
4682
|
+
/* @__PURE__ */ e.jsx("h2", { className: T.titleFull, children: h?.("planSheetTitle") ?? "Choose Your Kundli Plan" })
|
|
4677
4683
|
] }) : /* @__PURE__ */ e.jsx(
|
|
4678
4684
|
Vn,
|
|
4679
4685
|
{
|
|
4680
|
-
title:
|
|
4681
|
-
onBack:
|
|
4686
|
+
title: h?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
4687
|
+
onBack: ne
|
|
4682
4688
|
}
|
|
4683
4689
|
),
|
|
4684
4690
|
/* @__PURE__ */ e.jsx(
|
|
4685
4691
|
"div",
|
|
4686
4692
|
{
|
|
4687
|
-
ref:
|
|
4688
|
-
className:
|
|
4693
|
+
ref: R,
|
|
4694
|
+
className: T.plansContainer,
|
|
4689
4695
|
role: "radiogroup",
|
|
4690
4696
|
"aria-label": "Kundli plans",
|
|
4691
|
-
children: p.map((
|
|
4697
|
+
children: p.map((C) => /* @__PURE__ */ e.jsx(
|
|
4692
4698
|
Xn,
|
|
4693
4699
|
{
|
|
4694
|
-
plan:
|
|
4695
|
-
isSelected:
|
|
4696
|
-
t:
|
|
4697
|
-
onSelect: (
|
|
4698
|
-
const
|
|
4699
|
-
|
|
4700
|
-
planId:
|
|
4701
|
-
planName:
|
|
4702
|
-
...
|
|
4703
|
-
price:
|
|
4704
|
-
includes_consultation: !!(
|
|
4705
|
-
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"
|
|
4706
4712
|
} : {}
|
|
4707
|
-
}), c(
|
|
4713
|
+
}), c(x));
|
|
4708
4714
|
}
|
|
4709
4715
|
},
|
|
4710
|
-
|
|
4716
|
+
C.id
|
|
4711
4717
|
))
|
|
4712
4718
|
}
|
|
4713
4719
|
),
|
|
4714
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
4720
|
+
/* @__PURE__ */ e.jsx("div", { className: T.footer, children: /* @__PURE__ */ e.jsx(
|
|
4715
4721
|
"button",
|
|
4716
4722
|
{
|
|
4717
|
-
className:
|
|
4723
|
+
className: T.proceedBtn,
|
|
4718
4724
|
disabled: !i,
|
|
4719
4725
|
onClick: () => {
|
|
4720
4726
|
if (i) {
|
|
4721
|
-
if (
|
|
4722
|
-
|
|
4727
|
+
if (N && i.astrologers && i.astrologers.length > 0) {
|
|
4728
|
+
S?.trackSelectConsultationSlotClicked?.({
|
|
4723
4729
|
planId: i.id,
|
|
4724
4730
|
planName: i.title
|
|
4725
|
-
}),
|
|
4731
|
+
}), S?.trackPlanProceedClicked?.({
|
|
4726
4732
|
planId: i.id,
|
|
4727
4733
|
planName: i.title,
|
|
4728
4734
|
cta_type: "confirm_consultation_slot",
|
|
@@ -4730,41 +4736,41 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4730
4736
|
}), w(!0);
|
|
4731
4737
|
return;
|
|
4732
4738
|
}
|
|
4733
|
-
|
|
4739
|
+
S?.trackPlanProceedClicked?.({
|
|
4734
4740
|
planId: i.id,
|
|
4735
4741
|
planName: i.title,
|
|
4736
|
-
...
|
|
4737
|
-
}),
|
|
4742
|
+
...N ? { cta_type: "proceed", next_step: "payment" } : {}
|
|
4743
|
+
}), k(i), n();
|
|
4738
4744
|
}
|
|
4739
4745
|
},
|
|
4740
|
-
children: i ?
|
|
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"
|
|
4741
4747
|
}
|
|
4742
4748
|
) })
|
|
4743
4749
|
]
|
|
4744
4750
|
}
|
|
4745
4751
|
),
|
|
4746
|
-
|
|
4752
|
+
N && i?.astrologers && i.astrologers.length > 0 && /* @__PURE__ */ e.jsx(
|
|
4747
4753
|
di,
|
|
4748
4754
|
{
|
|
4749
|
-
isOpen:
|
|
4755
|
+
isOpen: _,
|
|
4750
4756
|
onClose: () => w(!1),
|
|
4751
4757
|
astrologers: i.astrologers,
|
|
4752
|
-
t:
|
|
4753
|
-
analytics:
|
|
4754
|
-
onProceed: (
|
|
4755
|
-
|
|
4758
|
+
t: h,
|
|
4759
|
+
analytics: S,
|
|
4760
|
+
onProceed: (C) => {
|
|
4761
|
+
S?.trackPlanProceedClicked?.({
|
|
4756
4762
|
planId: i.id,
|
|
4757
4763
|
planName: i.title,
|
|
4758
4764
|
cta_type: "proceed",
|
|
4759
4765
|
next_step: "payment"
|
|
4760
|
-
}),
|
|
4766
|
+
}), k(i, C), w(!1), n();
|
|
4761
4767
|
}
|
|
4762
4768
|
}
|
|
4763
4769
|
)
|
|
4764
4770
|
]
|
|
4765
4771
|
}
|
|
4766
4772
|
) : null;
|
|
4767
|
-
}, fi = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", hi = (t,
|
|
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 = {
|
|
4768
4774
|
fullName: "",
|
|
4769
4775
|
phone: "",
|
|
4770
4776
|
phoneCountryCode: "",
|
|
@@ -4777,105 +4783,105 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4777
4783
|
birthPlace: ""
|
|
4778
4784
|
}, xi = ({
|
|
4779
4785
|
className: t = "",
|
|
4780
|
-
locale:
|
|
4786
|
+
locale: n,
|
|
4781
4787
|
showLanguageSelector: i = !0,
|
|
4782
4788
|
onBack: c,
|
|
4783
|
-
initialValues:
|
|
4784
|
-
onProceed:
|
|
4785
|
-
onProceedGuidance:
|
|
4786
|
-
proceedHref:
|
|
4789
|
+
initialValues: g,
|
|
4790
|
+
onProceed: k,
|
|
4791
|
+
onProceedGuidance: h,
|
|
4792
|
+
proceedHref: S,
|
|
4787
4793
|
originalPriceLabel: b,
|
|
4788
|
-
discountedPriceLabel:
|
|
4789
|
-
googleMapsApiKey:
|
|
4790
|
-
atlasSearchLocalities:
|
|
4794
|
+
discountedPriceLabel: q,
|
|
4795
|
+
googleMapsApiKey: D = "",
|
|
4796
|
+
atlasSearchLocalities: N,
|
|
4791
4797
|
googleMapsAutocompleteEnabled: p,
|
|
4792
|
-
analytics:
|
|
4798
|
+
analytics: U
|
|
4793
4799
|
}) => {
|
|
4794
|
-
const
|
|
4795
|
-
|
|
4796
|
-
),
|
|
4797
|
-
|
|
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
|
|
4798
4804
|
);
|
|
4799
|
-
|
|
4805
|
+
K(() => {
|
|
4800
4806
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
4801
4807
|
}, []);
|
|
4802
|
-
const
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
}, [
|
|
4806
|
-
if (
|
|
4807
|
-
const
|
|
4808
|
-
|
|
4809
|
-
}, [
|
|
4810
|
-
const [
|
|
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({
|
|
4811
4817
|
...bi,
|
|
4812
|
-
...
|
|
4813
|
-
phone:
|
|
4814
|
-
}),
|
|
4815
|
-
() => gi(
|
|
4816
|
-
), ue =
|
|
4817
|
-
!!(
|
|
4818
|
-
),
|
|
4819
|
-
|
|
4820
|
-
}, []),
|
|
4821
|
-
|
|
4822
|
-
if (
|
|
4823
|
-
|
|
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;
|
|
4824
4830
|
return;
|
|
4825
4831
|
}
|
|
4826
|
-
ue.current ||
|
|
4827
|
-
}, [
|
|
4828
|
-
if (!
|
|
4829
|
-
const
|
|
4830
|
-
|
|
4831
|
-
}, [
|
|
4832
|
-
const Ne =
|
|
4833
|
-
|
|
4834
|
-
if (!
|
|
4835
|
-
const
|
|
4836
|
-
|
|
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);
|
|
4837
4843
|
};
|
|
4838
|
-
return document.addEventListener("mousedown",
|
|
4839
|
-
}, [
|
|
4840
|
-
const [
|
|
4841
|
-
|
|
4842
|
-
}, []),
|
|
4843
|
-
|
|
4844
|
-
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")
|
|
4845
4851
|
return;
|
|
4846
|
-
|
|
4847
|
-
const
|
|
4848
|
-
|
|
4849
|
-
...
|
|
4850
|
-
phone:
|
|
4852
|
+
ye.current = !0;
|
|
4853
|
+
const P = (O.phone ?? "").trim();
|
|
4854
|
+
ke({
|
|
4855
|
+
...O,
|
|
4856
|
+
phone: P && `${V}-${P}`
|
|
4851
4857
|
});
|
|
4852
|
-
}, [
|
|
4853
|
-
const
|
|
4854
|
-
if (!
|
|
4855
|
-
|
|
4856
|
-
planId:
|
|
4857
|
-
planName:
|
|
4858
|
-
price:
|
|
4859
|
-
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"
|
|
4860
4866
|
});
|
|
4861
|
-
const
|
|
4862
|
-
|
|
4863
|
-
}, [
|
|
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: [
|
|
4864
4870
|
/* @__PURE__ */ e.jsxs(
|
|
4865
4871
|
"button",
|
|
4866
4872
|
{
|
|
4867
4873
|
type: "button",
|
|
4868
4874
|
className: Le.langTrigger,
|
|
4869
4875
|
onClick: () => {
|
|
4870
|
-
|
|
4876
|
+
de?.trackLanguageClickedFe?.({ language: Q }), j((P) => !P);
|
|
4871
4877
|
},
|
|
4872
|
-
"aria-expanded":
|
|
4878
|
+
"aria-expanded": Y,
|
|
4873
4879
|
"aria-haspopup": "listbox",
|
|
4874
4880
|
id: "kundli-form-lang",
|
|
4875
|
-
"aria-label":
|
|
4881
|
+
"aria-label": G("language"),
|
|
4876
4882
|
children: [
|
|
4877
4883
|
/* @__PURE__ */ e.jsx(
|
|
4878
|
-
|
|
4884
|
+
Be,
|
|
4879
4885
|
{
|
|
4880
4886
|
src: fi,
|
|
4881
4887
|
alt: "",
|
|
@@ -4885,30 +4891,30 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4885
4891
|
loading: "eager"
|
|
4886
4892
|
}
|
|
4887
4893
|
),
|
|
4888
|
-
/* @__PURE__ */ e.jsx("span", { className: Le.langLabel, children: ka[
|
|
4894
|
+
/* @__PURE__ */ e.jsx("span", { className: Le.langLabel, children: ka[Q] })
|
|
4889
4895
|
]
|
|
4890
4896
|
}
|
|
4891
4897
|
),
|
|
4892
|
-
|
|
4898
|
+
Y && /* @__PURE__ */ e.jsx(
|
|
4893
4899
|
"ul",
|
|
4894
4900
|
{
|
|
4895
4901
|
className: Le.langMenu,
|
|
4896
4902
|
role: "listbox",
|
|
4897
4903
|
"aria-labelledby": "kundli-form-lang",
|
|
4898
|
-
"aria-activedescendant": `kundli-form-lang-option-${
|
|
4899
|
-
children: Pa.map((
|
|
4904
|
+
"aria-activedescendant": `kundli-form-lang-option-${Q}`,
|
|
4905
|
+
children: Pa.map((P) => /* @__PURE__ */ e.jsx(
|
|
4900
4906
|
"li",
|
|
4901
4907
|
{
|
|
4902
|
-
id: `kundli-form-lang-option-${
|
|
4908
|
+
id: `kundli-form-lang-option-${P}`,
|
|
4903
4909
|
role: "option",
|
|
4904
|
-
"aria-selected":
|
|
4910
|
+
"aria-selected": P === Q,
|
|
4905
4911
|
className: Le.langOption,
|
|
4906
4912
|
onClick: () => {
|
|
4907
|
-
|
|
4913
|
+
de?.trackLanguageChangedFe?.({ newLanguage: P }), x(P), j(!1);
|
|
4908
4914
|
},
|
|
4909
|
-
children: ka[
|
|
4915
|
+
children: ka[P]
|
|
4910
4916
|
},
|
|
4911
|
-
|
|
4917
|
+
P
|
|
4912
4918
|
))
|
|
4913
4919
|
}
|
|
4914
4920
|
)
|
|
@@ -4917,61 +4923,61 @@ const wr = (t, r) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4917
4923
|
/* @__PURE__ */ e.jsx(
|
|
4918
4924
|
Jr,
|
|
4919
4925
|
{
|
|
4920
|
-
t:
|
|
4921
|
-
logoUrl:
|
|
4922
|
-
languageSelector:
|
|
4926
|
+
t: G,
|
|
4927
|
+
logoUrl: y ? v.config.logoUrl : void 0,
|
|
4928
|
+
languageSelector: De,
|
|
4923
4929
|
className: Le.kundliHeaderNoBorder
|
|
4924
4930
|
}
|
|
4925
4931
|
),
|
|
4926
4932
|
/* @__PURE__ */ e.jsx("div", { className: Le.headerSeparator, "aria-hidden": !0 }),
|
|
4927
4933
|
/* @__PURE__ */ e.jsxs("main", { className: Le.main, children: [
|
|
4928
|
-
/* @__PURE__ */ e.jsx(Ct, { t:
|
|
4934
|
+
/* @__PURE__ */ e.jsx(Ct, { t: G, onBack: Ne }),
|
|
4929
4935
|
/* @__PURE__ */ e.jsx(
|
|
4930
4936
|
Dr,
|
|
4931
4937
|
{
|
|
4932
|
-
t:
|
|
4933
|
-
values:
|
|
4934
|
-
onChange:
|
|
4935
|
-
googleMapsApiKey:
|
|
4936
|
-
atlasSearchLocalities:
|
|
4938
|
+
t: G,
|
|
4939
|
+
values: O,
|
|
4940
|
+
onChange: Te,
|
|
4941
|
+
googleMapsApiKey: D,
|
|
4942
|
+
atlasSearchLocalities: N,
|
|
4937
4943
|
googleMapsAutocompleteEnabled: p,
|
|
4938
|
-
phoneIsdCode:
|
|
4939
|
-
onPhoneIsdCodeChange:
|
|
4940
|
-
showV1ExtraFields:
|
|
4941
|
-
analytics:
|
|
4944
|
+
phoneIsdCode: V,
|
|
4945
|
+
onPhoneIsdCodeChange: Se,
|
|
4946
|
+
showV1ExtraFields: y ? v?.config.variant === "v1" : !1,
|
|
4947
|
+
analytics: de
|
|
4942
4948
|
}
|
|
4943
4949
|
)
|
|
4944
4950
|
] }),
|
|
4945
4951
|
/* @__PURE__ */ e.jsx(
|
|
4946
4952
|
Yr,
|
|
4947
4953
|
{
|
|
4948
|
-
t:
|
|
4949
|
-
values:
|
|
4950
|
-
phoneIsdCode:
|
|
4951
|
-
onProceed:
|
|
4954
|
+
t: G,
|
|
4955
|
+
values: O,
|
|
4956
|
+
phoneIsdCode: V,
|
|
4957
|
+
onProceed: be,
|
|
4952
4958
|
onProceedGuidance: Z,
|
|
4953
|
-
href:
|
|
4954
|
-
originalPriceLabel:
|
|
4955
|
-
discountedPriceLabel:
|
|
4956
|
-
analytics:
|
|
4957
|
-
showPlanSheet:
|
|
4958
|
-
confirmPlan:
|
|
4959
|
-
planSheetOpen:
|
|
4960
|
-
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
|
|
4961
4967
|
}
|
|
4962
4968
|
),
|
|
4963
|
-
|
|
4969
|
+
v?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
|
|
4964
4970
|
mi,
|
|
4965
4971
|
{
|
|
4966
|
-
isOpen:
|
|
4967
|
-
onClose: () =>
|
|
4968
|
-
selectedPlan:
|
|
4972
|
+
isOpen: _e,
|
|
4973
|
+
onClose: () => te(!1),
|
|
4974
|
+
selectedPlan: se,
|
|
4969
4975
|
onSelectPlan: Re,
|
|
4970
4976
|
onProceed: () => {
|
|
4971
|
-
|
|
4977
|
+
xe?.();
|
|
4972
4978
|
},
|
|
4973
|
-
t:
|
|
4974
|
-
analytics:
|
|
4979
|
+
t: G,
|
|
4980
|
+
analytics: de
|
|
4975
4981
|
}
|
|
4976
4982
|
)
|
|
4977
4983
|
] });
|
|
@@ -5064,7 +5070,7 @@ export {
|
|
|
5064
5070
|
Tt as e,
|
|
5065
5071
|
Pt as f,
|
|
5066
5072
|
At as g,
|
|
5067
|
-
|
|
5073
|
+
Me as h,
|
|
5068
5074
|
vi as i,
|
|
5069
5075
|
Pi as j,
|
|
5070
5076
|
di as k,
|
|
@@ -5079,4 +5085,4 @@ export {
|
|
|
5079
5085
|
xa as t,
|
|
5080
5086
|
yt as u
|
|
5081
5087
|
};
|
|
5082
|
-
//# sourceMappingURL=analytics-
|
|
5088
|
+
//# sourceMappingURL=analytics-_owJQMIp.js.map
|