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