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