@srimandir/kundli-generator 7.5.28 → 7.5.30
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-Bz8Bmq6t.js → analytics-0QVsaAgj.js} +1566 -1529
- package/dist/{analytics-Bz8Bmq6t.js.map → analytics-0QVsaAgj.js.map} +1 -1
- package/dist/analytics.d.ts +19 -0
- package/dist/components/KundliPlanBottomSheet/ConsultationSlotModal.d.ts +8 -0
- package/dist/components/KundliPlanBottomSheet/consultationSlotDefaults.d.ts +7 -7
- package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuPlanBottomSheet.types.d.ts +2 -0
- package/dist/{criticalCss-8ZnAYRjl.js → criticalCss-Bn1Bmi00.js} +688 -685
- package/dist/criticalCss-Bn1Bmi00.js.map +1 -0
- package/dist/form-entry.js +1 -1
- package/dist/kundli-generator.js +2 -2
- package/dist/page-entry.js +2 -2
- package/package.json +2 -2
- package/dist/criticalCss-8ZnAYRjl.js.map +0 -1
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { FormSectionHeader as
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
if (
|
|
7
|
-
|
|
8
|
-
var a =
|
|
9
|
-
function
|
|
10
|
-
var
|
|
11
|
-
U !== void 0 && (m = "" + U),
|
|
12
|
-
for (
|
|
13
|
-
if (
|
|
14
|
-
return { $$typeof:
|
|
1
|
+
import rt, { useContext as ot, createContext as wt, useState as E, useRef as O, useEffect as q, useMemo as Re, useCallback as Se, Fragment as Vt } from "react";
|
|
2
|
+
import { FormSectionHeader as zt, FooterCTAButton as Jt, FooterShell as Qt, CircularMarquee as Xt, footerShellStyles as Ie, PageHeader as Zt } from "@srimandir/astrology-common";
|
|
3
|
+
var Ve = { exports: {} }, Ke = {};
|
|
4
|
+
var gt;
|
|
5
|
+
function ea() {
|
|
6
|
+
if (gt) return Ke;
|
|
7
|
+
gt = 1;
|
|
8
|
+
var a = rt, r = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.fragment"), p = Object.prototype.hasOwnProperty, d = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
|
+
function b(j, y, U) {
|
|
10
|
+
var M, N = {}, m = null, $ = null;
|
|
11
|
+
U !== void 0 && (m = "" + U), y.key !== void 0 && (m = "" + y.key), y.ref !== void 0 && ($ = y.ref);
|
|
12
|
+
for (M in y) p.call(y, M) && !f.hasOwnProperty(M) && (N[M] = y[M]);
|
|
13
|
+
if (j && j.defaultProps) for (M in y = j.defaultProps, y) N[M] === void 0 && (N[M] = y[M]);
|
|
14
|
+
return { $$typeof: r, type: j, key: m, ref: $, props: N, _owner: d.current };
|
|
15
15
|
}
|
|
16
|
-
return Ke.Fragment = s, Ke.jsx =
|
|
16
|
+
return Ke.Fragment = s, Ke.jsx = b, Ke.jsxs = b, Ke;
|
|
17
17
|
}
|
|
18
18
|
var We = {};
|
|
19
|
-
var
|
|
20
|
-
function
|
|
21
|
-
return
|
|
22
|
-
var a =
|
|
23
|
-
function
|
|
19
|
+
var _t;
|
|
20
|
+
function ta() {
|
|
21
|
+
return _t || (_t = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
+
var a = rt, r = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), d = /* @__PURE__ */ Symbol.for("react.strict_mode"), f = /* @__PURE__ */ Symbol.for("react.profiler"), b = /* @__PURE__ */ Symbol.for("react.provider"), j = /* @__PURE__ */ Symbol.for("react.context"), y = /* @__PURE__ */ Symbol.for("react.forward_ref"), U = /* @__PURE__ */ Symbol.for("react.suspense"), M = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), $ = /* @__PURE__ */ Symbol.for("react.offscreen"), v = Symbol.iterator, Q = "@@iterator";
|
|
23
|
+
function x(t) {
|
|
24
24
|
if (t === null || typeof t != "object")
|
|
25
25
|
return null;
|
|
26
|
-
var l = v && t[v] || t[
|
|
26
|
+
var l = v && t[v] || t[Q];
|
|
27
27
|
return typeof l == "function" ? l : null;
|
|
28
28
|
}
|
|
29
|
-
var
|
|
30
|
-
function
|
|
29
|
+
var k = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
30
|
+
function T(t) {
|
|
31
31
|
{
|
|
32
|
-
for (var l = arguments.length,
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), w = 1; w < l; w++)
|
|
33
|
+
u[w - 1] = arguments[w];
|
|
34
|
+
re("error", t, u);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function re(t, l, u) {
|
|
38
38
|
{
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
var
|
|
42
|
-
return String(
|
|
39
|
+
var w = k.ReactDebugCurrentFrame, G = w.getStackAddendum();
|
|
40
|
+
G !== "" && (l += "%s", u = u.concat([G]));
|
|
41
|
+
var J = u.map(function(D) {
|
|
42
|
+
return String(D);
|
|
43
43
|
});
|
|
44
|
-
|
|
44
|
+
J.unshift("Warning: " + l), Function.prototype.apply.call(console[t], console, J);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
function
|
|
50
|
-
return !!(typeof t == "string" || typeof t == "function" || t ===
|
|
47
|
+
var C = !1, K = !1, P = !1, W = !1, A = !1, F;
|
|
48
|
+
F = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
|
+
function X(t) {
|
|
50
|
+
return !!(typeof t == "string" || typeof t == "function" || t === p || t === f || A || t === d || t === U || t === M || W || t === $ || C || K || P || typeof t == "object" && t !== null && (t.$$typeof === m || t.$$typeof === N || t.$$typeof === b || t.$$typeof === j || t.$$typeof === y || // 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
|
-
t.$$typeof ===
|
|
54
|
+
t.$$typeof === F || t.getModuleId !== void 0));
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
var
|
|
58
|
-
if (
|
|
59
|
-
return
|
|
60
|
-
var
|
|
61
|
-
return
|
|
56
|
+
function te(t, l, u) {
|
|
57
|
+
var w = t.displayName;
|
|
58
|
+
if (w)
|
|
59
|
+
return w;
|
|
60
|
+
var G = l.displayName || l.name || "";
|
|
61
|
+
return G !== "" ? u + "(" + G + ")" : u;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function L(t) {
|
|
64
64
|
return t.displayName || "Context";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function I(t) {
|
|
67
67
|
if (t == null)
|
|
68
68
|
return null;
|
|
69
|
-
if (typeof t.tag == "number" &&
|
|
69
|
+
if (typeof t.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
70
70
|
return t.displayName || t.name || null;
|
|
71
71
|
if (typeof t == "string")
|
|
72
72
|
return t;
|
|
73
73
|
switch (t) {
|
|
74
|
-
case
|
|
74
|
+
case p:
|
|
75
75
|
return "Fragment";
|
|
76
76
|
case s:
|
|
77
77
|
return "Portal";
|
|
78
78
|
case f:
|
|
79
79
|
return "Profiler";
|
|
80
|
-
case
|
|
80
|
+
case d:
|
|
81
81
|
return "StrictMode";
|
|
82
82
|
case U:
|
|
83
83
|
return "Suspense";
|
|
84
|
-
case
|
|
84
|
+
case M:
|
|
85
85
|
return "SuspenseList";
|
|
86
86
|
}
|
|
87
87
|
if (typeof t == "object")
|
|
88
88
|
switch (t.$$typeof) {
|
|
89
|
-
case
|
|
89
|
+
case j:
|
|
90
90
|
var l = t;
|
|
91
|
-
return
|
|
92
|
-
case
|
|
93
|
-
var
|
|
94
|
-
return
|
|
95
|
-
case
|
|
96
|
-
return
|
|
91
|
+
return L(l) + ".Consumer";
|
|
92
|
+
case b:
|
|
93
|
+
var u = t;
|
|
94
|
+
return L(u._context) + ".Provider";
|
|
95
|
+
case y:
|
|
96
|
+
return te(t, t.render, "ForwardRef");
|
|
97
97
|
case N:
|
|
98
|
-
var
|
|
99
|
-
return
|
|
98
|
+
var w = t.displayName || null;
|
|
99
|
+
return w !== null ? w : I(t.type) || "Memo";
|
|
100
100
|
case m: {
|
|
101
|
-
var
|
|
101
|
+
var G = t, J = G._payload, D = G._init;
|
|
102
102
|
try {
|
|
103
|
-
return
|
|
103
|
+
return I(D(J));
|
|
104
104
|
} catch {
|
|
105
105
|
return null;
|
|
106
106
|
}
|
|
@@ -108,18 +108,18 @@ function Zt() {
|
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
111
|
-
var
|
|
112
|
-
function
|
|
111
|
+
var B = Object.assign, H = 0, V, xe, de, oe, ue, ae, we;
|
|
112
|
+
function ge() {
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
function
|
|
114
|
+
ge.__reactDisabledLog = !0;
|
|
115
|
+
function Pe() {
|
|
116
116
|
{
|
|
117
|
-
if (
|
|
118
|
-
|
|
117
|
+
if (H === 0) {
|
|
118
|
+
V = console.log, xe = console.info, de = console.warn, oe = console.error, ue = console.group, ae = console.groupCollapsed, we = console.groupEnd;
|
|
119
119
|
var t = {
|
|
120
120
|
configurable: !0,
|
|
121
121
|
enumerable: !0,
|
|
122
|
-
value:
|
|
122
|
+
value: ge,
|
|
123
123
|
writable: !0
|
|
124
124
|
};
|
|
125
125
|
Object.defineProperties(console, {
|
|
@@ -132,205 +132,205 @@ function Zt() {
|
|
|
132
132
|
groupEnd: t
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
H++;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function z() {
|
|
139
139
|
{
|
|
140
|
-
if (
|
|
140
|
+
if (H--, H === 0) {
|
|
141
141
|
var t = {
|
|
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: B({}, t, {
|
|
148
|
+
value: V
|
|
149
149
|
}),
|
|
150
|
-
info:
|
|
151
|
-
value:
|
|
150
|
+
info: B({}, t, {
|
|
151
|
+
value: xe
|
|
152
152
|
}),
|
|
153
|
-
warn:
|
|
154
|
-
value:
|
|
153
|
+
warn: B({}, t, {
|
|
154
|
+
value: de
|
|
155
155
|
}),
|
|
156
|
-
error:
|
|
157
|
-
value:
|
|
156
|
+
error: B({}, t, {
|
|
157
|
+
value: oe
|
|
158
158
|
}),
|
|
159
|
-
group:
|
|
160
|
-
value:
|
|
159
|
+
group: B({}, t, {
|
|
160
|
+
value: ue
|
|
161
161
|
}),
|
|
162
|
-
groupCollapsed:
|
|
163
|
-
value:
|
|
162
|
+
groupCollapsed: B({}, t, {
|
|
163
|
+
value: ae
|
|
164
164
|
}),
|
|
165
|
-
groupEnd:
|
|
166
|
-
value:
|
|
165
|
+
groupEnd: B({}, t, {
|
|
166
|
+
value: we
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
H < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
var
|
|
174
|
-
function
|
|
173
|
+
var Z = k.ReactCurrentDispatcher, ie;
|
|
174
|
+
function se(t, l, u) {
|
|
175
175
|
{
|
|
176
|
-
if (
|
|
176
|
+
if (ie === void 0)
|
|
177
177
|
try {
|
|
178
178
|
throw Error();
|
|
179
|
-
} catch (
|
|
180
|
-
var
|
|
181
|
-
|
|
179
|
+
} catch (G) {
|
|
180
|
+
var w = G.stack.trim().match(/\n( *(at )?)/);
|
|
181
|
+
ie = w && w[1] || "";
|
|
182
182
|
}
|
|
183
183
|
return `
|
|
184
|
-
` +
|
|
184
|
+
` + ie + t;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var ne = !1, pe;
|
|
188
188
|
{
|
|
189
|
-
var
|
|
190
|
-
|
|
189
|
+
var ke = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
|
+
pe = new ke();
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
if (!t ||
|
|
192
|
+
function Ae(t, l) {
|
|
193
|
+
if (!t || ne)
|
|
194
194
|
return "";
|
|
195
195
|
{
|
|
196
|
-
var
|
|
197
|
-
if (
|
|
198
|
-
return
|
|
196
|
+
var u = pe.get(t);
|
|
197
|
+
if (u !== void 0)
|
|
198
|
+
return u;
|
|
199
199
|
}
|
|
200
|
-
var
|
|
201
|
-
|
|
202
|
-
var
|
|
200
|
+
var w;
|
|
201
|
+
ne = !0;
|
|
202
|
+
var G = Error.prepareStackTrace;
|
|
203
203
|
Error.prepareStackTrace = void 0;
|
|
204
|
-
var
|
|
205
|
-
|
|
204
|
+
var J;
|
|
205
|
+
J = Z.current, Z.current = null, Pe();
|
|
206
206
|
try {
|
|
207
207
|
if (l) {
|
|
208
|
-
var
|
|
208
|
+
var D = function() {
|
|
209
209
|
throw Error();
|
|
210
210
|
};
|
|
211
|
-
if (Object.defineProperty(
|
|
211
|
+
if (Object.defineProperty(D.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(
|
|
218
|
-
} catch (
|
|
219
|
-
|
|
217
|
+
Reflect.construct(D, []);
|
|
218
|
+
} catch (ye) {
|
|
219
|
+
w = ye;
|
|
220
220
|
}
|
|
221
|
-
Reflect.construct(t, [],
|
|
221
|
+
Reflect.construct(t, [], D);
|
|
222
222
|
} else {
|
|
223
223
|
try {
|
|
224
|
-
|
|
225
|
-
} catch (
|
|
226
|
-
|
|
224
|
+
D.call();
|
|
225
|
+
} catch (ye) {
|
|
226
|
+
w = ye;
|
|
227
227
|
}
|
|
228
|
-
t.call(
|
|
228
|
+
t.call(D.prototype);
|
|
229
229
|
}
|
|
230
230
|
} else {
|
|
231
231
|
try {
|
|
232
232
|
throw Error();
|
|
233
|
-
} catch (
|
|
234
|
-
|
|
233
|
+
} catch (ye) {
|
|
234
|
+
w = ye;
|
|
235
235
|
}
|
|
236
236
|
t();
|
|
237
237
|
}
|
|
238
|
-
} catch (
|
|
239
|
-
if (
|
|
240
|
-
for (var
|
|
241
|
-
`),
|
|
242
|
-
`),
|
|
243
|
-
|
|
244
|
-
for (;
|
|
245
|
-
if (
|
|
246
|
-
if (
|
|
238
|
+
} catch (ye) {
|
|
239
|
+
if (ye && w && typeof ye.stack == "string") {
|
|
240
|
+
for (var R = ye.stack.split(`
|
|
241
|
+
`), be = w.stack.split(`
|
|
242
|
+
`), le = R.length - 1, ce = be.length - 1; le >= 1 && ce >= 0 && R[le] !== be[ce]; )
|
|
243
|
+
ce--;
|
|
244
|
+
for (; le >= 1 && ce >= 0; le--, ce--)
|
|
245
|
+
if (R[le] !== be[ce]) {
|
|
246
|
+
if (le !== 1 || ce !== 1)
|
|
247
247
|
do
|
|
248
|
-
if (
|
|
248
|
+
if (le--, ce--, ce < 0 || R[le] !== be[ce]) {
|
|
249
249
|
var Te = `
|
|
250
|
-
` +
|
|
251
|
-
return t.displayName && Te.includes("<anonymous>") && (Te = Te.replace("<anonymous>", t.displayName)), typeof t == "function" &&
|
|
250
|
+
` + R[le].replace(" at new ", " at ");
|
|
251
|
+
return t.displayName && Te.includes("<anonymous>") && (Te = Te.replace("<anonymous>", t.displayName)), typeof t == "function" && pe.set(t, Te), Te;
|
|
252
252
|
}
|
|
253
|
-
while (
|
|
253
|
+
while (le >= 1 && ce >= 0);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
} finally {
|
|
258
|
-
|
|
258
|
+
ne = !1, Z.current = J, z(), Error.prepareStackTrace = G;
|
|
259
259
|
}
|
|
260
|
-
var Oe = t ? t.displayName || t.name : "",
|
|
261
|
-
return typeof t == "function" &&
|
|
260
|
+
var Oe = t ? t.displayName || t.name : "", Le = Oe ? se(Oe) : "";
|
|
261
|
+
return typeof t == "function" && pe.set(t, Le), Le;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
264
|
-
return
|
|
263
|
+
function me(t, l, u) {
|
|
264
|
+
return Ae(t, !1);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function he(t) {
|
|
267
267
|
var l = t.prototype;
|
|
268
268
|
return !!(l && l.isReactComponent);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function Ce(t, l, u) {
|
|
271
271
|
if (t == null)
|
|
272
272
|
return "";
|
|
273
273
|
if (typeof t == "function")
|
|
274
|
-
return
|
|
274
|
+
return Ae(t, he(t));
|
|
275
275
|
if (typeof t == "string")
|
|
276
|
-
return
|
|
276
|
+
return se(t);
|
|
277
277
|
switch (t) {
|
|
278
278
|
case U:
|
|
279
|
-
return
|
|
280
|
-
case
|
|
281
|
-
return
|
|
279
|
+
return se("Suspense");
|
|
280
|
+
case M:
|
|
281
|
+
return se("SuspenseList");
|
|
282
282
|
}
|
|
283
283
|
if (typeof t == "object")
|
|
284
284
|
switch (t.$$typeof) {
|
|
285
|
-
case
|
|
286
|
-
return
|
|
285
|
+
case y:
|
|
286
|
+
return me(t.render);
|
|
287
287
|
case N:
|
|
288
|
-
return
|
|
288
|
+
return Ce(t.type, l, u);
|
|
289
289
|
case m: {
|
|
290
|
-
var
|
|
290
|
+
var w = t, G = w._payload, J = w._init;
|
|
291
291
|
try {
|
|
292
|
-
return
|
|
292
|
+
return Ce(J(G), l, u);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
return "";
|
|
298
298
|
}
|
|
299
|
-
var
|
|
300
|
-
function
|
|
299
|
+
var ve = Object.prototype.hasOwnProperty, fe = {}, i = k.ReactDebugCurrentFrame;
|
|
300
|
+
function h(t) {
|
|
301
301
|
if (t) {
|
|
302
|
-
var l = t._owner,
|
|
303
|
-
|
|
302
|
+
var l = t._owner, u = Ce(t.type, t._source, l ? l.type : null);
|
|
303
|
+
i.setExtraStackFrame(u);
|
|
304
304
|
} else
|
|
305
|
-
|
|
305
|
+
i.setExtraStackFrame(null);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function ee(t, l, u, w, G) {
|
|
308
308
|
{
|
|
309
|
-
var
|
|
310
|
-
for (var
|
|
311
|
-
if (
|
|
312
|
-
var
|
|
309
|
+
var J = Function.call.bind(ve);
|
|
310
|
+
for (var D in t)
|
|
311
|
+
if (J(t, D)) {
|
|
312
|
+
var R = void 0;
|
|
313
313
|
try {
|
|
314
|
-
if (typeof t[
|
|
315
|
-
var
|
|
316
|
-
throw
|
|
314
|
+
if (typeof t[D] != "function") {
|
|
315
|
+
var be = Error((w || "React class") + ": " + u + " type `" + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[D] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
316
|
+
throw be.name = "Invariant Violation", be;
|
|
317
317
|
}
|
|
318
|
-
|
|
319
|
-
} catch (
|
|
320
|
-
|
|
318
|
+
R = t[D](l, D, w, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
|
+
} catch (le) {
|
|
320
|
+
R = le;
|
|
321
321
|
}
|
|
322
|
-
|
|
322
|
+
R && !(R instanceof Error) && (h(G), T("%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).", w || "React class", u, D, typeof R), h(null)), R instanceof Error && !(R.message in fe) && (fe[R.message] = !0, h(G), T("Failed %s type: %s", u, R.message), h(null));
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
var
|
|
327
|
-
function
|
|
328
|
-
return
|
|
326
|
+
var _e = Array.isArray;
|
|
327
|
+
function _(t) {
|
|
328
|
+
return _e(t);
|
|
329
329
|
}
|
|
330
330
|
function De(t) {
|
|
331
331
|
{
|
|
332
|
-
var l = typeof Symbol == "function" && Symbol.toStringTag,
|
|
333
|
-
return
|
|
332
|
+
var l = typeof Symbol == "function" && Symbol.toStringTag, u = l && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
333
|
+
return u;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
function Fe(t) {
|
|
@@ -345,16 +345,16 @@ function Zt() {
|
|
|
345
345
|
}
|
|
346
346
|
function Ge(t) {
|
|
347
347
|
if (Fe(t))
|
|
348
|
-
return
|
|
348
|
+
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", De(t)), $e(t);
|
|
349
349
|
}
|
|
350
|
-
var n =
|
|
350
|
+
var n = k.ReactCurrentOwner, c = {
|
|
351
351
|
key: !0,
|
|
352
352
|
ref: !0,
|
|
353
353
|
__self: !0,
|
|
354
354
|
__source: !0
|
|
355
|
-
},
|
|
355
|
+
}, Y, je;
|
|
356
356
|
function Ue(t) {
|
|
357
|
-
if (
|
|
357
|
+
if (ve.call(t, "ref")) {
|
|
358
358
|
var l = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
359
359
|
if (l && l.isReactWarning)
|
|
360
360
|
return !1;
|
|
@@ -362,102 +362,102 @@ function Zt() {
|
|
|
362
362
|
return t.ref !== void 0;
|
|
363
363
|
}
|
|
364
364
|
function Je(t) {
|
|
365
|
-
if (
|
|
365
|
+
if (ve.call(t, "key")) {
|
|
366
366
|
var l = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
367
367
|
if (l && l.isReactWarning)
|
|
368
368
|
return !1;
|
|
369
369
|
}
|
|
370
370
|
return t.key !== void 0;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function It(t, l) {
|
|
373
373
|
typeof t.ref == "string" && n.current;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Et(t, l) {
|
|
376
376
|
{
|
|
377
|
-
var
|
|
378
|
-
|
|
377
|
+
var u = function() {
|
|
378
|
+
Y || (Y = !0, T("%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)", l));
|
|
379
379
|
};
|
|
380
|
-
|
|
381
|
-
get:
|
|
380
|
+
u.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
381
|
+
get: u,
|
|
382
382
|
configurable: !0
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Dt(t, l) {
|
|
387
387
|
{
|
|
388
|
-
var
|
|
389
|
-
je || (je = !0,
|
|
388
|
+
var u = function() {
|
|
389
|
+
je || (je = !0, T("%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)", l));
|
|
390
390
|
};
|
|
391
|
-
|
|
392
|
-
get:
|
|
391
|
+
u.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
392
|
+
get: u,
|
|
393
393
|
configurable: !0
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
var
|
|
398
|
-
var
|
|
397
|
+
var Bt = function(t, l, u, w, G, J, D) {
|
|
398
|
+
var R = {
|
|
399
399
|
// This tag allows us to uniquely identify this as a React Element
|
|
400
|
-
$$typeof:
|
|
400
|
+
$$typeof: r,
|
|
401
401
|
// Built-in properties that belong on the element
|
|
402
402
|
type: t,
|
|
403
403
|
key: l,
|
|
404
|
-
ref:
|
|
405
|
-
props:
|
|
404
|
+
ref: u,
|
|
405
|
+
props: D,
|
|
406
406
|
// Record the component responsible for creating this element.
|
|
407
|
-
_owner:
|
|
407
|
+
_owner: J
|
|
408
408
|
};
|
|
409
|
-
return
|
|
409
|
+
return R._store = {}, Object.defineProperty(R._store, "validated", {
|
|
410
410
|
configurable: !1,
|
|
411
411
|
enumerable: !1,
|
|
412
412
|
writable: !0,
|
|
413
413
|
value: !1
|
|
414
|
-
}), Object.defineProperty(
|
|
414
|
+
}), Object.defineProperty(R, "_self", {
|
|
415
415
|
configurable: !1,
|
|
416
416
|
enumerable: !1,
|
|
417
417
|
writable: !1,
|
|
418
|
-
value:
|
|
419
|
-
}), Object.defineProperty(
|
|
418
|
+
value: w
|
|
419
|
+
}), Object.defineProperty(R, "_source", {
|
|
420
420
|
configurable: !1,
|
|
421
421
|
enumerable: !1,
|
|
422
422
|
writable: !1,
|
|
423
|
-
value:
|
|
424
|
-
}), Object.freeze && (Object.freeze(
|
|
423
|
+
value: G
|
|
424
|
+
}), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
|
|
425
425
|
};
|
|
426
|
-
function
|
|
426
|
+
function Ot(t, l, u, w, G) {
|
|
427
427
|
{
|
|
428
|
-
var
|
|
429
|
-
|
|
430
|
-
for (
|
|
431
|
-
|
|
428
|
+
var J, D = {}, R = null, be = null;
|
|
429
|
+
u !== void 0 && (Ge(u), R = "" + u), Je(l) && (Ge(l.key), R = "" + l.key), Ue(l) && (be = l.ref, It(l, G));
|
|
430
|
+
for (J in l)
|
|
431
|
+
ve.call(l, J) && !c.hasOwnProperty(J) && (D[J] = l[J]);
|
|
432
432
|
if (t && t.defaultProps) {
|
|
433
|
-
var
|
|
434
|
-
for (
|
|
435
|
-
|
|
433
|
+
var le = t.defaultProps;
|
|
434
|
+
for (J in le)
|
|
435
|
+
D[J] === void 0 && (D[J] = le[J]);
|
|
436
436
|
}
|
|
437
|
-
if (
|
|
438
|
-
var
|
|
439
|
-
|
|
437
|
+
if (R || be) {
|
|
438
|
+
var ce = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
439
|
+
R && Et(D, ce), be && Dt(D, ce);
|
|
440
440
|
}
|
|
441
|
-
return
|
|
441
|
+
return Bt(t, R, be, G, w, n.current, D);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
var Qe =
|
|
444
|
+
var Qe = k.ReactCurrentOwner, ct = k.ReactDebugCurrentFrame;
|
|
445
445
|
function Be(t) {
|
|
446
446
|
if (t) {
|
|
447
|
-
var l = t._owner,
|
|
448
|
-
|
|
447
|
+
var l = t._owner, u = Ce(t.type, t._source, l ? l.type : null);
|
|
448
|
+
ct.setExtraStackFrame(u);
|
|
449
449
|
} else
|
|
450
|
-
|
|
450
|
+
ct.setExtraStackFrame(null);
|
|
451
451
|
}
|
|
452
452
|
var Xe;
|
|
453
453
|
Xe = !1;
|
|
454
454
|
function Ze(t) {
|
|
455
|
-
return typeof t == "object" && t !== null && t.$$typeof ===
|
|
455
|
+
return typeof t == "object" && t !== null && t.$$typeof === r;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function dt() {
|
|
458
458
|
{
|
|
459
459
|
if (Qe.current) {
|
|
460
|
-
var t =
|
|
460
|
+
var t = I(Qe.current.type);
|
|
461
461
|
if (t)
|
|
462
462
|
return `
|
|
463
463
|
|
|
@@ -466,166 +466,166 @@ Check the render method of \`` + t + "`.";
|
|
|
466
466
|
return "";
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Mt(t) {
|
|
470
470
|
return "";
|
|
471
471
|
}
|
|
472
|
-
var
|
|
473
|
-
function
|
|
472
|
+
var ut = {};
|
|
473
|
+
function Ft(t) {
|
|
474
474
|
{
|
|
475
|
-
var l =
|
|
475
|
+
var l = dt();
|
|
476
476
|
if (!l) {
|
|
477
|
-
var
|
|
478
|
-
|
|
477
|
+
var u = typeof t == "string" ? t : t.displayName || t.name;
|
|
478
|
+
u && (l = `
|
|
479
479
|
|
|
480
|
-
Check the top-level render call using <` +
|
|
480
|
+
Check the top-level render call using <` + u + ">.");
|
|
481
481
|
}
|
|
482
482
|
return l;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function pt(t, l) {
|
|
486
486
|
{
|
|
487
487
|
if (!t._store || t._store.validated || t.key != null)
|
|
488
488
|
return;
|
|
489
489
|
t._store.validated = !0;
|
|
490
|
-
var
|
|
491
|
-
if (
|
|
490
|
+
var u = Ft(l);
|
|
491
|
+
if (ut[u])
|
|
492
492
|
return;
|
|
493
|
-
|
|
494
|
-
var
|
|
495
|
-
t && t._owner && t._owner !== Qe.current && (
|
|
493
|
+
ut[u] = !0;
|
|
494
|
+
var w = "";
|
|
495
|
+
t && t._owner && t._owner !== Qe.current && (w = " It was passed a child from " + I(t._owner.type) + "."), Be(t), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, w), Be(null);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function mt(t, l) {
|
|
499
499
|
{
|
|
500
500
|
if (typeof t != "object")
|
|
501
501
|
return;
|
|
502
|
-
if (
|
|
503
|
-
for (var
|
|
504
|
-
var
|
|
505
|
-
Ze(
|
|
502
|
+
if (_(t))
|
|
503
|
+
for (var u = 0; u < t.length; u++) {
|
|
504
|
+
var w = t[u];
|
|
505
|
+
Ze(w) && pt(w, l);
|
|
506
506
|
}
|
|
507
507
|
else if (Ze(t))
|
|
508
508
|
t._store && (t._store.validated = !0);
|
|
509
509
|
else if (t) {
|
|
510
|
-
var
|
|
511
|
-
if (typeof
|
|
512
|
-
for (var
|
|
513
|
-
Ze(
|
|
510
|
+
var G = x(t);
|
|
511
|
+
if (typeof G == "function" && G !== t.entries)
|
|
512
|
+
for (var J = G.call(t), D; !(D = J.next()).done; )
|
|
513
|
+
Ze(D.value) && pt(D.value, l);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function $t(t) {
|
|
518
518
|
{
|
|
519
519
|
var l = t.type;
|
|
520
520
|
if (l == null || typeof l == "string")
|
|
521
521
|
return;
|
|
522
|
-
var
|
|
522
|
+
var u;
|
|
523
523
|
if (typeof l == "function")
|
|
524
|
-
|
|
525
|
-
else if (typeof l == "object" && (l.$$typeof ===
|
|
524
|
+
u = l.propTypes;
|
|
525
|
+
else if (typeof l == "object" && (l.$$typeof === y || // Note: Memo only checks outer props here.
|
|
526
526
|
// Inner props are checked in the reconciler.
|
|
527
527
|
l.$$typeof === N))
|
|
528
|
-
|
|
528
|
+
u = l.propTypes;
|
|
529
529
|
else
|
|
530
530
|
return;
|
|
531
|
-
if (
|
|
532
|
-
var
|
|
533
|
-
|
|
531
|
+
if (u) {
|
|
532
|
+
var w = I(l);
|
|
533
|
+
ee(u, t.props, "prop", w, t);
|
|
534
534
|
} else if (l.PropTypes !== void 0 && !Xe) {
|
|
535
535
|
Xe = !0;
|
|
536
|
-
var
|
|
537
|
-
|
|
536
|
+
var G = I(l);
|
|
537
|
+
T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
|
|
538
538
|
}
|
|
539
|
-
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved &&
|
|
539
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Gt(t) {
|
|
543
543
|
{
|
|
544
|
-
for (var l = Object.keys(t.props),
|
|
545
|
-
var
|
|
546
|
-
if (
|
|
547
|
-
Be(t),
|
|
544
|
+
for (var l = Object.keys(t.props), u = 0; u < l.length; u++) {
|
|
545
|
+
var w = l[u];
|
|
546
|
+
if (w !== "children" && w !== "key") {
|
|
547
|
+
Be(t), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), Be(null);
|
|
548
548
|
break;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
t.ref !== null && (Be(t),
|
|
551
|
+
t.ref !== null && (Be(t), T("Invalid attribute `ref` supplied to `React.Fragment`."), Be(null));
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
var
|
|
555
|
-
function
|
|
554
|
+
var ht = {};
|
|
555
|
+
function ft(t, l, u, w, G, J) {
|
|
556
556
|
{
|
|
557
|
-
var
|
|
558
|
-
if (!
|
|
559
|
-
var
|
|
560
|
-
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (
|
|
561
|
-
var
|
|
562
|
-
|
|
563
|
-
var
|
|
564
|
-
t === null ?
|
|
557
|
+
var D = X(t);
|
|
558
|
+
if (!D) {
|
|
559
|
+
var R = "";
|
|
560
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
561
|
+
var be = Mt();
|
|
562
|
+
be ? R += be : R += dt();
|
|
563
|
+
var le;
|
|
564
|
+
t === null ? le = "null" : _(t) ? le = "array" : t !== void 0 && t.$$typeof === r ? (le = "<" + (I(t.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : le = typeof t, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", le, R);
|
|
565
565
|
}
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
return
|
|
569
|
-
if (
|
|
566
|
+
var ce = Ot(t, l, u, G, J);
|
|
567
|
+
if (ce == null)
|
|
568
|
+
return ce;
|
|
569
|
+
if (D) {
|
|
570
570
|
var Te = l.children;
|
|
571
571
|
if (Te !== void 0)
|
|
572
|
-
if (
|
|
573
|
-
if (
|
|
572
|
+
if (w)
|
|
573
|
+
if (_(Te)) {
|
|
574
574
|
for (var Oe = 0; Oe < Te.length; Oe++)
|
|
575
|
-
|
|
575
|
+
mt(Te[Oe], t);
|
|
576
576
|
Object.freeze && Object.freeze(Te);
|
|
577
577
|
} else
|
|
578
|
-
|
|
578
|
+
T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
579
579
|
else
|
|
580
|
-
|
|
580
|
+
mt(Te, t);
|
|
581
581
|
}
|
|
582
|
-
if (
|
|
583
|
-
var
|
|
584
|
-
return
|
|
585
|
-
}), et =
|
|
586
|
-
if (!
|
|
587
|
-
var
|
|
588
|
-
|
|
582
|
+
if (ve.call(l, "key")) {
|
|
583
|
+
var Le = I(t), ye = Object.keys(l).filter(function(qt) {
|
|
584
|
+
return qt !== "key";
|
|
585
|
+
}), et = ye.length > 0 ? "{key: someKey, " + ye.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
|
+
if (!ht[Le + et]) {
|
|
587
|
+
var Yt = ye.length > 0 ? "{" + ye.join(": ..., ") + ": ...}" : "{}";
|
|
588
|
+
T(`A props object containing a "key" prop is being spread into JSX:
|
|
589
589
|
let props = %s;
|
|
590
590
|
<%s {...props} />
|
|
591
591
|
React keys must be passed directly to JSX without using spread:
|
|
592
592
|
let props = %s;
|
|
593
|
-
<%s key={someKey} {...props} />`, et,
|
|
593
|
+
<%s key={someKey} {...props} />`, et, Le, Yt, Le), ht[Le + et] = !0;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
return t ===
|
|
596
|
+
return t === p ? Gt(ce) : $t(ce), ce;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
return
|
|
599
|
+
function Ut(t, l, u) {
|
|
600
|
+
return ft(t, l, u, !0);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
return
|
|
602
|
+
function Kt(t, l, u) {
|
|
603
|
+
return ft(t, l, u, !1);
|
|
604
604
|
}
|
|
605
|
-
var
|
|
606
|
-
We.Fragment =
|
|
605
|
+
var Wt = Kt, Ht = Ut;
|
|
606
|
+
We.Fragment = p, We.jsx = Wt, We.jsxs = Ht;
|
|
607
607
|
})()), We;
|
|
608
608
|
}
|
|
609
|
-
var
|
|
610
|
-
function
|
|
611
|
-
return
|
|
609
|
+
var bt;
|
|
610
|
+
function aa() {
|
|
611
|
+
return bt || (bt = 1, process.env.NODE_ENV === "production" ? Ve.exports = ea() : Ve.exports = ta()), Ve.exports;
|
|
612
612
|
}
|
|
613
|
-
var e =
|
|
614
|
-
const
|
|
615
|
-
container:
|
|
616
|
-
main:
|
|
617
|
-
kundliHeaderNoBorder:
|
|
618
|
-
headerSeparator:
|
|
619
|
-
langDropdownWrap:
|
|
620
|
-
langTrigger:
|
|
621
|
-
langIcon:
|
|
622
|
-
langLabel:
|
|
623
|
-
langMenu:
|
|
624
|
-
langOption:
|
|
625
|
-
},
|
|
613
|
+
var e = aa();
|
|
614
|
+
const na = "_container_1e1th_1", ra = "_main_1e1th_7", oa = "_kundliHeaderNoBorder_1e1th_12", ia = "_headerSeparator_1e1th_16", la = "_langDropdownWrap_1e1th_21", sa = "_langTrigger_1e1th_25", ca = "_langIcon_1e1th_37", da = "_langLabel_1e1th_44", ua = "_langMenu_1e1th_49", pa = "_langOption_1e1th_55", Ne = {
|
|
615
|
+
container: na,
|
|
616
|
+
main: ra,
|
|
617
|
+
kundliHeaderNoBorder: oa,
|
|
618
|
+
headerSeparator: ia,
|
|
619
|
+
langDropdownWrap: la,
|
|
620
|
+
langTrigger: sa,
|
|
621
|
+
langIcon: ca,
|
|
622
|
+
langLabel: da,
|
|
623
|
+
langMenu: ua,
|
|
624
|
+
langOption: pa
|
|
625
|
+
}, jt = ["en", "hi"], yt = {
|
|
626
626
|
en: "English",
|
|
627
627
|
hi: "हिन्दी"
|
|
628
|
-
},
|
|
628
|
+
}, Tt = {
|
|
629
629
|
en: {
|
|
630
630
|
kundli: "Kundli",
|
|
631
631
|
birthChart: "Birth Chart",
|
|
@@ -1101,28 +1101,28 @@ const ta = "_container_1e1th_1", aa = "_main_1e1th_7", na = "_kundliHeaderNoBord
|
|
|
1101
1101
|
astrologyGuidance: "ज्योतिष से सलाह",
|
|
1102
1102
|
selectPackage: "पैकेज चुनें"
|
|
1103
1103
|
}
|
|
1104
|
-
},
|
|
1104
|
+
}, St = wt(null), pi = ({
|
|
1105
1105
|
locale: a,
|
|
1106
|
-
children:
|
|
1106
|
+
children: r
|
|
1107
1107
|
}) => {
|
|
1108
|
-
const
|
|
1109
|
-
return /* @__PURE__ */ e.jsx(
|
|
1108
|
+
const p = { locale: a, t: (d) => Tt[a]?.[d] ?? d };
|
|
1109
|
+
return /* @__PURE__ */ e.jsx(St.Provider, { value: p, children: r });
|
|
1110
1110
|
};
|
|
1111
|
-
function
|
|
1112
|
-
return
|
|
1111
|
+
function ma() {
|
|
1112
|
+
return ot(St);
|
|
1113
1113
|
}
|
|
1114
|
-
const
|
|
1115
|
-
const { priority:
|
|
1116
|
-
return
|
|
1114
|
+
const qe = (a) => {
|
|
1115
|
+
const { priority: r, fetchPriority: s, width: p, height: d, ...f } = a;
|
|
1116
|
+
return rt.createElement("img", {
|
|
1117
1117
|
...f,
|
|
1118
|
-
width:
|
|
1119
|
-
height:
|
|
1118
|
+
width: p ?? 1,
|
|
1119
|
+
height: d ?? 1,
|
|
1120
1120
|
decoding: "async",
|
|
1121
|
-
loading: f.loading ?? (
|
|
1121
|
+
loading: f.loading ?? (r ? "eager" : "lazy"),
|
|
1122
1122
|
...s && { fetchPriority: s }
|
|
1123
1123
|
});
|
|
1124
1124
|
};
|
|
1125
|
-
function
|
|
1125
|
+
function ha(a) {
|
|
1126
1126
|
if (typeof window > "u" || !window.localStorage)
|
|
1127
1127
|
return null;
|
|
1128
1128
|
try {
|
|
@@ -1131,21 +1131,21 @@ function pa(a) {
|
|
|
1131
1131
|
return null;
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function fa(a, r) {
|
|
1135
1135
|
if (!(typeof window > "u" || !window.localStorage))
|
|
1136
1136
|
try {
|
|
1137
|
-
window.localStorage.setItem(a,
|
|
1137
|
+
window.localStorage.setItem(a, r);
|
|
1138
1138
|
} catch {
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function mi(a) {
|
|
1142
1142
|
if (!(typeof window > "u" || !window.localStorage))
|
|
1143
1143
|
try {
|
|
1144
1144
|
window.localStorage.removeItem(a);
|
|
1145
1145
|
} catch {
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function hi() {
|
|
1149
1149
|
if (typeof window > "u" || !window.localStorage)
|
|
1150
1150
|
return !1;
|
|
1151
1151
|
try {
|
|
@@ -1155,15 +1155,15 @@ function pi() {
|
|
|
1155
1155
|
return !1;
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
|
-
const
|
|
1159
|
-
function
|
|
1160
|
-
const a =
|
|
1161
|
-
return a &&
|
|
1158
|
+
const Ct = "kundli_language";
|
|
1159
|
+
function ga() {
|
|
1160
|
+
const a = ha(Ct);
|
|
1161
|
+
return a && jt.includes(a) ? a : null;
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1164
|
-
|
|
1163
|
+
function _a(a) {
|
|
1164
|
+
fa(Ct, a);
|
|
1165
1165
|
}
|
|
1166
|
-
const
|
|
1166
|
+
const it = wt(null), ba = {
|
|
1167
1167
|
fullName: "",
|
|
1168
1168
|
phone: "",
|
|
1169
1169
|
phoneCountryCode: "",
|
|
@@ -1174,417 +1174,417 @@ const rt = xt(null), ga = {
|
|
|
1174
1174
|
birthTime: "",
|
|
1175
1175
|
birthTimeUnknown: !1,
|
|
1176
1176
|
birthPlace: ""
|
|
1177
|
-
},
|
|
1177
|
+
}, fi = ({
|
|
1178
1178
|
locale: a,
|
|
1179
|
-
showLanguageSelector:
|
|
1179
|
+
showLanguageSelector: r = !0,
|
|
1180
1180
|
showSheet: s,
|
|
1181
|
-
userId:
|
|
1182
|
-
isGlobal:
|
|
1181
|
+
userId: p,
|
|
1182
|
+
isGlobal: d,
|
|
1183
1183
|
variant: f,
|
|
1184
|
-
initialFormValues:
|
|
1185
|
-
autoOpenPlanSheet:
|
|
1186
|
-
googleMapsApiKey:
|
|
1184
|
+
initialFormValues: b,
|
|
1185
|
+
autoOpenPlanSheet: j,
|
|
1186
|
+
googleMapsApiKey: y,
|
|
1187
1187
|
atlasSearchLocalities: U,
|
|
1188
|
-
googleMapsAutocompleteEnabled:
|
|
1188
|
+
googleMapsAutocompleteEnabled: M,
|
|
1189
1189
|
enableConsultationScheduling: N,
|
|
1190
1190
|
fetchConsultationSlots: m,
|
|
1191
|
-
logoUrl:
|
|
1191
|
+
logoUrl: $,
|
|
1192
1192
|
reportImageUrl: v,
|
|
1193
|
-
reportImagePriority:
|
|
1194
|
-
backgroundImagePriority:
|
|
1195
|
-
universityLogoUrls:
|
|
1196
|
-
sampleReportHref:
|
|
1197
|
-
onViewSampleReport:
|
|
1198
|
-
ctaHref:
|
|
1199
|
-
onCtaClick:
|
|
1200
|
-
onBack:
|
|
1201
|
-
readMoreReviewsHref:
|
|
1202
|
-
onProceed:
|
|
1203
|
-
proceedHref:
|
|
1204
|
-
originalPriceLabel:
|
|
1205
|
-
discountedPriceLabel:
|
|
1206
|
-
discountPillLabel:
|
|
1207
|
-
analytics:
|
|
1208
|
-
onProceedGuidance:
|
|
1209
|
-
onLocaleChange:
|
|
1210
|
-
imageComponent:
|
|
1211
|
-
resolvedUtmBannerImageUrl:
|
|
1212
|
-
children:
|
|
1193
|
+
reportImagePriority: Q,
|
|
1194
|
+
backgroundImagePriority: x,
|
|
1195
|
+
universityLogoUrls: k,
|
|
1196
|
+
sampleReportHref: T,
|
|
1197
|
+
onViewSampleReport: re,
|
|
1198
|
+
ctaHref: C,
|
|
1199
|
+
onCtaClick: K,
|
|
1200
|
+
onBack: P,
|
|
1201
|
+
readMoreReviewsHref: W,
|
|
1202
|
+
onProceed: A,
|
|
1203
|
+
proceedHref: F,
|
|
1204
|
+
originalPriceLabel: X,
|
|
1205
|
+
discountedPriceLabel: te,
|
|
1206
|
+
discountPillLabel: L,
|
|
1207
|
+
analytics: I,
|
|
1208
|
+
onProceedGuidance: B,
|
|
1209
|
+
onLocaleChange: H,
|
|
1210
|
+
imageComponent: V = qe,
|
|
1211
|
+
resolvedUtmBannerImageUrl: xe,
|
|
1212
|
+
children: de
|
|
1213
1213
|
}) => {
|
|
1214
|
-
const [
|
|
1215
|
-
...
|
|
1216
|
-
...
|
|
1217
|
-
}),
|
|
1218
|
-
|
|
1219
|
-
const
|
|
1220
|
-
|
|
1221
|
-
}, []),
|
|
1222
|
-
|
|
1223
|
-
}, [
|
|
1224
|
-
if (
|
|
1225
|
-
|
|
1214
|
+
const [oe, ue] = E("landing"), [ae, we] = E(a ?? "en"), [ge, Pe] = E({
|
|
1215
|
+
...ba,
|
|
1216
|
+
...b
|
|
1217
|
+
}), z = O(!0);
|
|
1218
|
+
q(() => {
|
|
1219
|
+
const pe = ga();
|
|
1220
|
+
pe && we(pe);
|
|
1221
|
+
}, []), q(() => {
|
|
1222
|
+
_a(ae);
|
|
1223
|
+
}, [ae]), q(() => {
|
|
1224
|
+
if (z.current) {
|
|
1225
|
+
z.current = !1;
|
|
1226
1226
|
return;
|
|
1227
1227
|
}
|
|
1228
|
-
|
|
1229
|
-
}, [
|
|
1230
|
-
const
|
|
1228
|
+
H?.(ae);
|
|
1229
|
+
}, [ae, H]);
|
|
1230
|
+
const Z = Re(
|
|
1231
1231
|
() => ({
|
|
1232
1232
|
locale: a,
|
|
1233
|
-
showLanguageSelector:
|
|
1233
|
+
showLanguageSelector: r,
|
|
1234
1234
|
showSheet: s,
|
|
1235
|
-
userId:
|
|
1236
|
-
isGlobal:
|
|
1235
|
+
userId: p,
|
|
1236
|
+
isGlobal: d,
|
|
1237
1237
|
variant: f,
|
|
1238
|
-
initialFormValues:
|
|
1239
|
-
autoOpenPlanSheet:
|
|
1240
|
-
googleMapsApiKey:
|
|
1238
|
+
initialFormValues: b,
|
|
1239
|
+
autoOpenPlanSheet: j,
|
|
1240
|
+
googleMapsApiKey: y,
|
|
1241
1241
|
atlasSearchLocalities: U,
|
|
1242
|
-
googleMapsAutocompleteEnabled:
|
|
1242
|
+
googleMapsAutocompleteEnabled: M,
|
|
1243
1243
|
enableConsultationScheduling: N,
|
|
1244
1244
|
fetchConsultationSlots: m,
|
|
1245
|
-
logoUrl:
|
|
1245
|
+
logoUrl: $,
|
|
1246
1246
|
reportImageUrl: v,
|
|
1247
|
-
reportImagePriority:
|
|
1248
|
-
backgroundImagePriority:
|
|
1249
|
-
universityLogoUrls:
|
|
1250
|
-
sampleReportHref:
|
|
1251
|
-
onViewSampleReport:
|
|
1252
|
-
ctaHref:
|
|
1253
|
-
onCtaClick:
|
|
1254
|
-
onBack:
|
|
1255
|
-
readMoreReviewsHref:
|
|
1256
|
-
onProceed:
|
|
1257
|
-
proceedHref:
|
|
1258
|
-
originalPriceLabel:
|
|
1259
|
-
discountedPriceLabel:
|
|
1260
|
-
discountPillLabel:
|
|
1261
|
-
analytics:
|
|
1262
|
-
onProceedGuidance:
|
|
1263
|
-
onLocaleChange:
|
|
1264
|
-
imageComponent:
|
|
1265
|
-
resolvedUtmBannerImageUrl:
|
|
1247
|
+
reportImagePriority: Q,
|
|
1248
|
+
backgroundImagePriority: x,
|
|
1249
|
+
universityLogoUrls: k,
|
|
1250
|
+
sampleReportHref: T,
|
|
1251
|
+
onViewSampleReport: re,
|
|
1252
|
+
ctaHref: C,
|
|
1253
|
+
onCtaClick: K,
|
|
1254
|
+
onBack: P,
|
|
1255
|
+
readMoreReviewsHref: W,
|
|
1256
|
+
onProceed: A,
|
|
1257
|
+
proceedHref: F,
|
|
1258
|
+
originalPriceLabel: X,
|
|
1259
|
+
discountedPriceLabel: te,
|
|
1260
|
+
discountPillLabel: L,
|
|
1261
|
+
analytics: I,
|
|
1262
|
+
onProceedGuidance: B,
|
|
1263
|
+
onLocaleChange: H,
|
|
1264
|
+
imageComponent: V,
|
|
1265
|
+
resolvedUtmBannerImageUrl: xe
|
|
1266
1266
|
}),
|
|
1267
1267
|
[
|
|
1268
1268
|
a,
|
|
1269
|
-
|
|
1269
|
+
r,
|
|
1270
1270
|
s,
|
|
1271
|
-
u,
|
|
1272
1271
|
p,
|
|
1272
|
+
d,
|
|
1273
1273
|
f,
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1274
|
+
b,
|
|
1275
|
+
j,
|
|
1276
|
+
y,
|
|
1277
1277
|
U,
|
|
1278
|
-
|
|
1278
|
+
M,
|
|
1279
1279
|
N,
|
|
1280
1280
|
m,
|
|
1281
|
-
|
|
1281
|
+
$,
|
|
1282
1282
|
v,
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
j,
|
|
1287
|
-
ae,
|
|
1288
|
-
A,
|
|
1289
|
-
Y,
|
|
1283
|
+
Q,
|
|
1284
|
+
x,
|
|
1285
|
+
k,
|
|
1290
1286
|
T,
|
|
1287
|
+
re,
|
|
1288
|
+
C,
|
|
1291
1289
|
K,
|
|
1292
1290
|
P,
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
I,
|
|
1297
|
-
R,
|
|
1291
|
+
W,
|
|
1292
|
+
A,
|
|
1293
|
+
F,
|
|
1298
1294
|
X,
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1295
|
+
te,
|
|
1296
|
+
L,
|
|
1297
|
+
I,
|
|
1298
|
+
B,
|
|
1299
|
+
H,
|
|
1300
|
+
V,
|
|
1301
|
+
xe
|
|
1302
1302
|
]
|
|
1303
|
-
),
|
|
1304
|
-
|
|
1305
|
-
}, [
|
|
1306
|
-
|
|
1307
|
-
}, [
|
|
1303
|
+
), ie = Se(() => {
|
|
1304
|
+
ue("form");
|
|
1305
|
+
}, [Z.analytics]), se = Se(() => {
|
|
1306
|
+
ue("landing"), Z.onBack?.();
|
|
1307
|
+
}, [Z.onBack]), ne = Re(
|
|
1308
1308
|
() => ({
|
|
1309
|
-
view:
|
|
1310
|
-
locale:
|
|
1311
|
-
setLocale:
|
|
1312
|
-
config:
|
|
1313
|
-
formValues:
|
|
1314
|
-
setFormValues:
|
|
1315
|
-
goToForm:
|
|
1316
|
-
goToPage:
|
|
1317
|
-
onProceed:
|
|
1318
|
-
onProceedGuidance:
|
|
1309
|
+
view: oe,
|
|
1310
|
+
locale: ae,
|
|
1311
|
+
setLocale: we,
|
|
1312
|
+
config: Z,
|
|
1313
|
+
formValues: ge,
|
|
1314
|
+
setFormValues: Pe,
|
|
1315
|
+
goToForm: ie,
|
|
1316
|
+
goToPage: se,
|
|
1317
|
+
onProceed: Z.onProceed,
|
|
1318
|
+
onProceedGuidance: Z.onProceedGuidance
|
|
1319
1319
|
}),
|
|
1320
|
-
[
|
|
1320
|
+
[oe, ae, Z, ge, ie, se]
|
|
1321
1321
|
);
|
|
1322
|
-
return /* @__PURE__ */ e.jsx(
|
|
1322
|
+
return /* @__PURE__ */ e.jsx(it.Provider, { value: ne, children: de });
|
|
1323
1323
|
};
|
|
1324
|
-
function
|
|
1325
|
-
return
|
|
1324
|
+
function Ee() {
|
|
1325
|
+
return ot(it);
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1328
|
-
const a =
|
|
1327
|
+
function gi() {
|
|
1328
|
+
const a = ot(it);
|
|
1329
1329
|
if (!a)
|
|
1330
1330
|
throw new Error(
|
|
1331
1331
|
"useKundliContextOrThrow must be used within KundliProvider"
|
|
1332
1332
|
);
|
|
1333
1333
|
return a;
|
|
1334
1334
|
}
|
|
1335
|
-
const
|
|
1336
|
-
header:
|
|
1337
|
-
centered:
|
|
1338
|
-
},
|
|
1335
|
+
const ya = "_header_19172_1", ka = "_centered_19172_8", kt = {
|
|
1336
|
+
header: ya,
|
|
1337
|
+
centered: ka
|
|
1338
|
+
}, va = ({
|
|
1339
1339
|
t: a,
|
|
1340
|
-
onBack:
|
|
1340
|
+
onBack: r,
|
|
1341
1341
|
className: s = "",
|
|
1342
|
-
align:
|
|
1342
|
+
align: p = "left"
|
|
1343
1343
|
}) => /* @__PURE__ */ e.jsx(
|
|
1344
|
-
|
|
1344
|
+
zt,
|
|
1345
1345
|
{
|
|
1346
1346
|
title: a("formTitle"),
|
|
1347
1347
|
subtitle: a("formSubtitle"),
|
|
1348
|
-
onBack:
|
|
1348
|
+
onBack: r,
|
|
1349
1349
|
backAriaLabel: a("back"),
|
|
1350
|
-
className: `${
|
|
1350
|
+
className: `${kt.header} ${p === "center" ? kt.centered : ""} ${s}`
|
|
1351
1351
|
}
|
|
1352
|
-
),
|
|
1353
|
-
wrap:
|
|
1354
|
-
card:
|
|
1355
|
-
cardInner:
|
|
1356
|
-
field:
|
|
1357
|
-
labelRow:
|
|
1358
|
-
label:
|
|
1352
|
+
), xa = "_wrap_119w3_1", wa = "_card_119w3_5", ja = "_cardInner_119w3_12", Ta = "_field_119w3_44", Sa = "_labelRow_119w3_48", Ca = "_label_119w3_48", Pa = "_req_119w3_57", Aa = "_help_119w3_61", Na = "_choiceRow_119w3_68", Ra = "_choiceBtn_119w3_74", La = "_choiceBtnActive_119w3_99", Ia = "_infoBtn_119w3_105", Ea = "_infoImg_119w3_122", Da = "_infoWrap_119w3_128", Ba = "_tooltip_119w3_134", Oa = "_tooltipArrow_119w3_150", Ma = "_inputWrap_119w3_161", Fa = "_isdWrap_119w3_165", $a = "_phoneInputGroup_119w3_169", Ga = "_isdSelectWrap_119w3_178", Ua = "_isdSelectTrigger_119w3_197", Ka = "_isdDropdown_119w3_214", Wa = "_isdSearchWrap_119w3_229", Ha = "_isdSearchInput_119w3_237", Ya = "_isdOption_119w3_255", qa = "_isdOptionActive_119w3_275", Va = "_isdCountryName_119w3_281", za = "_isdCountryCode_119w3_288", Ja = "_isdNoResult_119w3_295", Qa = "_suggestions_119w3_302", Xa = "_suggestionItem_119w3_315", Za = "_suggestionMain_119w3_333", en = "_suggestionSecondary_119w3_339", tn = "_suggestionsHint_119w3_344", an = "_timePopover_119w3_366", nn = "_timePickerRow_119w3_382", rn = "_timePickerSelect_119w3_388", on = "_timePickerColon_119w3_404", ln = "_meridiemToggle_119w3_412", sn = "_meridiemBtn_119w3_421", cn = "_meridiemActive_119w3_436", dn = "_timePopoverActions_119w3_441", un = "_timePopoverBtn_119w3_447", pn = "_timePopoverOk_119w3_466", mn = "_input_119w3_161", hn = "_phoneInput_119w3_169", fn = "_iconBtn_119w3_519", gn = "_iconBtnInteractive_119w3_525", _n = "_iconImg_119w3_544", bn = "_checkboxRow_119w3_550", yn = "_checkbox_119w3_550", kn = "_checkboxText_119w3_588", o = {
|
|
1353
|
+
wrap: xa,
|
|
1354
|
+
card: wa,
|
|
1355
|
+
cardInner: ja,
|
|
1356
|
+
field: Ta,
|
|
1357
|
+
labelRow: Sa,
|
|
1358
|
+
label: Ca,
|
|
1359
1359
|
req: Pa,
|
|
1360
|
-
help:
|
|
1361
|
-
choiceRow:
|
|
1362
|
-
choiceBtn:
|
|
1363
|
-
choiceBtnActive:
|
|
1364
|
-
infoBtn:
|
|
1365
|
-
infoImg:
|
|
1366
|
-
infoWrap:
|
|
1367
|
-
tooltip:
|
|
1368
|
-
tooltipArrow:
|
|
1369
|
-
inputWrap:
|
|
1370
|
-
isdWrap:
|
|
1371
|
-
phoneInputGroup:
|
|
1372
|
-
isdSelectWrap:
|
|
1373
|
-
isdSelectTrigger:
|
|
1374
|
-
isdDropdown:
|
|
1375
|
-
isdSearchWrap:
|
|
1376
|
-
isdSearchInput:
|
|
1377
|
-
isdOption:
|
|
1378
|
-
isdOptionActive:
|
|
1379
|
-
isdCountryName:
|
|
1380
|
-
isdCountryCode:
|
|
1381
|
-
isdNoResult:
|
|
1382
|
-
suggestions:
|
|
1383
|
-
suggestionItem:
|
|
1384
|
-
suggestionMain:
|
|
1385
|
-
suggestionSecondary:
|
|
1386
|
-
suggestionsHint:
|
|
1387
|
-
timePopover:
|
|
1388
|
-
timePickerRow:
|
|
1389
|
-
timePickerSelect:
|
|
1390
|
-
timePickerColon:
|
|
1391
|
-
meridiemToggle:
|
|
1392
|
-
meridiemBtn:
|
|
1393
|
-
meridiemActive:
|
|
1394
|
-
timePopoverActions:
|
|
1395
|
-
timePopoverBtn:
|
|
1396
|
-
timePopoverOk:
|
|
1397
|
-
input:
|
|
1398
|
-
phoneInput:
|
|
1399
|
-
iconBtn:
|
|
1400
|
-
iconBtnInteractive:
|
|
1401
|
-
iconImg:
|
|
1402
|
-
checkboxRow:
|
|
1403
|
-
checkbox:
|
|
1404
|
-
checkboxText:
|
|
1360
|
+
help: Aa,
|
|
1361
|
+
choiceRow: Na,
|
|
1362
|
+
choiceBtn: Ra,
|
|
1363
|
+
choiceBtnActive: La,
|
|
1364
|
+
infoBtn: Ia,
|
|
1365
|
+
infoImg: Ea,
|
|
1366
|
+
infoWrap: Da,
|
|
1367
|
+
tooltip: Ba,
|
|
1368
|
+
tooltipArrow: Oa,
|
|
1369
|
+
inputWrap: Ma,
|
|
1370
|
+
isdWrap: Fa,
|
|
1371
|
+
phoneInputGroup: $a,
|
|
1372
|
+
isdSelectWrap: Ga,
|
|
1373
|
+
isdSelectTrigger: Ua,
|
|
1374
|
+
isdDropdown: Ka,
|
|
1375
|
+
isdSearchWrap: Wa,
|
|
1376
|
+
isdSearchInput: Ha,
|
|
1377
|
+
isdOption: Ya,
|
|
1378
|
+
isdOptionActive: qa,
|
|
1379
|
+
isdCountryName: Va,
|
|
1380
|
+
isdCountryCode: za,
|
|
1381
|
+
isdNoResult: Ja,
|
|
1382
|
+
suggestions: Qa,
|
|
1383
|
+
suggestionItem: Xa,
|
|
1384
|
+
suggestionMain: Za,
|
|
1385
|
+
suggestionSecondary: en,
|
|
1386
|
+
suggestionsHint: tn,
|
|
1387
|
+
timePopover: an,
|
|
1388
|
+
timePickerRow: nn,
|
|
1389
|
+
timePickerSelect: rn,
|
|
1390
|
+
timePickerColon: on,
|
|
1391
|
+
meridiemToggle: ln,
|
|
1392
|
+
meridiemBtn: sn,
|
|
1393
|
+
meridiemActive: cn,
|
|
1394
|
+
timePopoverActions: dn,
|
|
1395
|
+
timePopoverBtn: un,
|
|
1396
|
+
timePopoverOk: pn,
|
|
1397
|
+
input: mn,
|
|
1398
|
+
phoneInput: hn,
|
|
1399
|
+
iconBtn: fn,
|
|
1400
|
+
iconBtnInteractive: gn,
|
|
1401
|
+
iconImg: _n,
|
|
1402
|
+
checkboxRow: bn,
|
|
1403
|
+
checkbox: yn,
|
|
1404
|
+
checkboxText: kn
|
|
1405
1405
|
};
|
|
1406
|
-
let
|
|
1407
|
-
const
|
|
1408
|
-
const
|
|
1406
|
+
let ze = null;
|
|
1407
|
+
const vn = (a, r) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : ze || (ze = new Promise((s, p) => {
|
|
1408
|
+
const d = document.querySelector(
|
|
1409
1409
|
'script[data-google-maps-places="true"]'
|
|
1410
1410
|
);
|
|
1411
|
-
if (
|
|
1412
|
-
|
|
1411
|
+
if (d) {
|
|
1412
|
+
d.addEventListener("load", () => s()), d.addEventListener(
|
|
1413
1413
|
"error",
|
|
1414
|
-
() =>
|
|
1414
|
+
() => p(new Error("Failed to load Google Maps API"))
|
|
1415
1415
|
);
|
|
1416
1416
|
return;
|
|
1417
1417
|
}
|
|
1418
|
-
const f = document.createElement("script"),
|
|
1419
|
-
|
|
1420
|
-
const
|
|
1418
|
+
const f = document.createElement("script"), b = new URL("https://maps.googleapis.com/maps/api/js");
|
|
1419
|
+
b.searchParams.set("key", a), b.searchParams.set("libraries", "places"), b.searchParams.set("loading", "async"), r && b.searchParams.set("language", r), f.src = b.toString(), f.async = !0, f.defer = !0, f.setAttribute("data-google-maps-places", "true"), f.onload = () => {
|
|
1420
|
+
const j = Date.now(), y = () => {
|
|
1421
1421
|
if (window.google?.maps?.places) {
|
|
1422
1422
|
s();
|
|
1423
1423
|
return;
|
|
1424
1424
|
}
|
|
1425
|
-
if (Date.now() -
|
|
1426
|
-
|
|
1425
|
+
if (Date.now() - j > 2e3) {
|
|
1426
|
+
p(
|
|
1427
1427
|
new Error(
|
|
1428
1428
|
"Google Maps loaded but Places library is unavailable. Check API key restrictions / enabled APIs."
|
|
1429
1429
|
)
|
|
1430
1430
|
);
|
|
1431
1431
|
return;
|
|
1432
1432
|
}
|
|
1433
|
-
window.setTimeout(
|
|
1433
|
+
window.setTimeout(y, 50);
|
|
1434
1434
|
};
|
|
1435
|
-
|
|
1436
|
-
}, f.onerror = () =>
|
|
1437
|
-
}),
|
|
1438
|
-
const { apiKey:
|
|
1439
|
-
|
|
1440
|
-
}, [
|
|
1441
|
-
|
|
1442
|
-
if (!
|
|
1443
|
-
|
|
1435
|
+
y();
|
|
1436
|
+
}, f.onerror = () => p(new Error("Failed to load Google Maps API")), document.head.appendChild(f);
|
|
1437
|
+
}), ze), xn = (a) => {
|
|
1438
|
+
const { apiKey: r, language: s = "en", restrictCountry: p, deferLoad: d = !1 } = a, [f, b] = E(!1), [j, y] = E([]), [U, M] = E(!1), [N, m] = E(null), [$, v] = E(!d), Q = O(null), x = O(null), k = O(null), T = Se(() => {
|
|
1439
|
+
d && v(!0);
|
|
1440
|
+
}, [d]);
|
|
1441
|
+
q(() => {
|
|
1442
|
+
if (!r || !$) {
|
|
1443
|
+
b(!1), m(null);
|
|
1444
1444
|
return;
|
|
1445
1445
|
}
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
const
|
|
1449
|
-
|
|
1450
|
-
}).catch((
|
|
1451
|
-
|
|
1446
|
+
vn(r, s).then(() => {
|
|
1447
|
+
Q.current = new google.maps.places.AutocompleteService();
|
|
1448
|
+
const P = document.createElement("div");
|
|
1449
|
+
x.current = new google.maps.places.PlacesService(P), k.current = new google.maps.places.AutocompleteSessionToken(), b(!0), m(null);
|
|
1450
|
+
}).catch((P) => {
|
|
1451
|
+
b(!1), m(P?.message || "Failed to load location service");
|
|
1452
1452
|
});
|
|
1453
|
-
}, [
|
|
1454
|
-
const
|
|
1455
|
-
async (
|
|
1456
|
-
if (!
|
|
1457
|
-
|
|
1453
|
+
}, [r, s, $]);
|
|
1454
|
+
const re = Se(
|
|
1455
|
+
async (P) => {
|
|
1456
|
+
if (!P || P.length < 2 || !Q.current) {
|
|
1457
|
+
y([]);
|
|
1458
1458
|
return;
|
|
1459
1459
|
}
|
|
1460
|
-
|
|
1460
|
+
M(!0);
|
|
1461
1461
|
try {
|
|
1462
|
-
const
|
|
1463
|
-
input:
|
|
1462
|
+
const W = {
|
|
1463
|
+
input: P,
|
|
1464
1464
|
types: ["(cities)"],
|
|
1465
|
-
sessionToken:
|
|
1465
|
+
sessionToken: k.current ?? void 0
|
|
1466
1466
|
};
|
|
1467
|
-
|
|
1468
|
-
const
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
(
|
|
1472
|
-
|
|
1467
|
+
p && (W.componentRestrictions = { country: p });
|
|
1468
|
+
const A = await new Promise((F, X) => {
|
|
1469
|
+
Q.current.getPlacePredictions(
|
|
1470
|
+
W,
|
|
1471
|
+
(te, L) => {
|
|
1472
|
+
L === google.maps.places.PlacesServiceStatus.OK && te ? F(te) : L === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? F([]) : X(new Error(`Places API error: ${L}`));
|
|
1473
1473
|
}
|
|
1474
1474
|
);
|
|
1475
1475
|
});
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
place_id:
|
|
1479
|
-
description:
|
|
1476
|
+
y(
|
|
1477
|
+
A.map((F) => ({
|
|
1478
|
+
place_id: F.place_id,
|
|
1479
|
+
description: F.description,
|
|
1480
1480
|
structured_formatting: {
|
|
1481
|
-
main_text:
|
|
1482
|
-
secondary_text:
|
|
1481
|
+
main_text: F.structured_formatting?.main_text || F.description,
|
|
1482
|
+
secondary_text: F.structured_formatting?.secondary_text || ""
|
|
1483
1483
|
}
|
|
1484
1484
|
}))
|
|
1485
1485
|
);
|
|
1486
1486
|
} catch {
|
|
1487
|
-
|
|
1487
|
+
y([]);
|
|
1488
1488
|
} finally {
|
|
1489
|
-
|
|
1489
|
+
M(!1);
|
|
1490
1490
|
}
|
|
1491
1491
|
},
|
|
1492
|
-
[
|
|
1493
|
-
),
|
|
1494
|
-
async (
|
|
1495
|
-
if (!
|
|
1492
|
+
[p]
|
|
1493
|
+
), C = Se(
|
|
1494
|
+
async (P) => {
|
|
1495
|
+
if (!x.current) return null;
|
|
1496
1496
|
try {
|
|
1497
|
-
const
|
|
1498
|
-
(
|
|
1499
|
-
|
|
1497
|
+
const W = await new Promise(
|
|
1498
|
+
(I, B) => {
|
|
1499
|
+
x.current.getDetails(
|
|
1500
1500
|
{
|
|
1501
|
-
placeId:
|
|
1501
|
+
placeId: P,
|
|
1502
1502
|
fields: ["geometry", "address_components", "formatted_address"],
|
|
1503
|
-
sessionToken:
|
|
1503
|
+
sessionToken: k.current ?? void 0
|
|
1504
1504
|
},
|
|
1505
|
-
(
|
|
1506
|
-
|
|
1505
|
+
(H, V) => {
|
|
1506
|
+
V === google.maps.places.PlacesServiceStatus.OK && H ? I(H) : B(new Error(`Place details error: ${V}`));
|
|
1507
1507
|
}
|
|
1508
1508
|
);
|
|
1509
1509
|
}
|
|
1510
1510
|
);
|
|
1511
|
-
|
|
1512
|
-
const
|
|
1513
|
-
let
|
|
1514
|
-
return
|
|
1515
|
-
|
|
1511
|
+
k.current = new google.maps.places.AutocompleteSessionToken();
|
|
1512
|
+
const A = W.geometry?.location?.lat() || 0, F = W.geometry?.location?.lng() || 0;
|
|
1513
|
+
let X = "", te = "", L = "";
|
|
1514
|
+
return W.address_components?.forEach((I) => {
|
|
1515
|
+
I.types.includes("locality") && (X = I.long_name), I.types.includes("administrative_area_level_1") && (te = I.long_name), I.types.includes("country") && (L = I.long_name);
|
|
1516
1516
|
}), {
|
|
1517
|
-
display_name:
|
|
1518
|
-
lat:
|
|
1519
|
-
lng:
|
|
1520
|
-
city:
|
|
1521
|
-
state:
|
|
1522
|
-
country:
|
|
1517
|
+
display_name: W.formatted_address || "",
|
|
1518
|
+
lat: A,
|
|
1519
|
+
lng: F,
|
|
1520
|
+
city: X,
|
|
1521
|
+
state: te,
|
|
1522
|
+
country: L
|
|
1523
1523
|
};
|
|
1524
1524
|
} catch {
|
|
1525
1525
|
return null;
|
|
1526
1526
|
}
|
|
1527
1527
|
},
|
|
1528
1528
|
[]
|
|
1529
|
-
),
|
|
1529
|
+
), K = Se(() => y([]), []);
|
|
1530
1530
|
return {
|
|
1531
1531
|
isLoaded: f,
|
|
1532
|
-
predictions:
|
|
1532
|
+
predictions: j,
|
|
1533
1533
|
isSearching: U,
|
|
1534
1534
|
loadError: N,
|
|
1535
|
-
searchPlaces:
|
|
1536
|
-
getPlaceDetails:
|
|
1537
|
-
clearPredictions:
|
|
1538
|
-
triggerLoad:
|
|
1535
|
+
searchPlaces: re,
|
|
1536
|
+
getPlaceDetails: C,
|
|
1537
|
+
clearPredictions: K,
|
|
1538
|
+
triggerLoad: T
|
|
1539
1539
|
// Call this to start loading Google Maps when deferred
|
|
1540
1540
|
};
|
|
1541
|
-
},
|
|
1542
|
-
const
|
|
1541
|
+
}, vt = (a) => typeof a == "number" && Number.isFinite(a), wn = (a) => {
|
|
1542
|
+
const r = typeof a?.limit == "number" && a.limit > 0 ? Math.min(a.limit, 20) : 8, s = typeof a?.offset == "number" && a.offset >= 0 ? a.offset : 0;
|
|
1543
1543
|
return {
|
|
1544
|
-
limit:
|
|
1544
|
+
limit: r,
|
|
1545
1545
|
offset: s,
|
|
1546
1546
|
restrictCountry: a?.restrictCountry
|
|
1547
1547
|
};
|
|
1548
|
-
},
|
|
1549
|
-
const { searchLocalities:
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
}, [
|
|
1553
|
-
const
|
|
1548
|
+
}, jn = (a) => {
|
|
1549
|
+
const { searchLocalities: r, restrictCountry: s } = a, [p, d] = E([]), [f, b] = E(!1), [j, y] = E(null), U = O(0);
|
|
1550
|
+
q(() => {
|
|
1551
|
+
y(null);
|
|
1552
|
+
}, [r]);
|
|
1553
|
+
const M = Se(
|
|
1554
1554
|
async (m) => {
|
|
1555
|
-
if (!m || m.length < 2 || !
|
|
1556
|
-
|
|
1555
|
+
if (!m || m.length < 2 || !r) {
|
|
1556
|
+
d([]);
|
|
1557
1557
|
return;
|
|
1558
1558
|
}
|
|
1559
|
-
const
|
|
1560
|
-
|
|
1559
|
+
const $ = ++U.current;
|
|
1560
|
+
b(!0), y(null);
|
|
1561
1561
|
try {
|
|
1562
|
-
const v =
|
|
1563
|
-
if (
|
|
1564
|
-
const
|
|
1565
|
-
(
|
|
1566
|
-
).map((
|
|
1567
|
-
id:
|
|
1568
|
-
description:
|
|
1569
|
-
secondary_text:
|
|
1570
|
-
lat:
|
|
1571
|
-
lng:
|
|
1562
|
+
const v = wn({ restrictCountry: s }), Q = await r(m, v);
|
|
1563
|
+
if ($ !== U.current) return;
|
|
1564
|
+
const x = (Q || []).filter(
|
|
1565
|
+
(k) => !!k?.id && !!k?.description && vt(k?.lat) && vt(k?.lng)
|
|
1566
|
+
).map((k) => ({
|
|
1567
|
+
id: k.id,
|
|
1568
|
+
description: k.description,
|
|
1569
|
+
secondary_text: k.secondaryText,
|
|
1570
|
+
lat: k.lat,
|
|
1571
|
+
lng: k.lng
|
|
1572
1572
|
}));
|
|
1573
|
-
|
|
1573
|
+
d(x);
|
|
1574
1574
|
} catch (v) {
|
|
1575
|
-
if (
|
|
1576
|
-
|
|
1575
|
+
if ($ !== U.current) return;
|
|
1576
|
+
d([]), y(v?.message || "Failed to fetch locations");
|
|
1577
1577
|
} finally {
|
|
1578
|
-
|
|
1578
|
+
$ === U.current && b(!1);
|
|
1579
1579
|
}
|
|
1580
1580
|
},
|
|
1581
|
-
[s,
|
|
1582
|
-
), N =
|
|
1581
|
+
[s, r]
|
|
1582
|
+
), N = Se(() => d([]), []);
|
|
1583
1583
|
return {
|
|
1584
|
-
predictions:
|
|
1584
|
+
predictions: p,
|
|
1585
1585
|
isSearching: f,
|
|
1586
|
-
loadError:
|
|
1587
|
-
searchPlaces:
|
|
1586
|
+
loadError: j,
|
|
1587
|
+
searchPlaces: M,
|
|
1588
1588
|
clearPredictions: N
|
|
1589
1589
|
};
|
|
1590
1590
|
}, Me = {
|
|
@@ -1592,7 +1592,7 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1592
1592
|
location: "https://srm-cdn.a4b.io/yoda/1770372031092.svg",
|
|
1593
1593
|
date: "https://srm-cdn.a4b.io/yoda/1770372045894.svg",
|
|
1594
1594
|
info: "https://srm-cdn.a4b.io/yoda/1770372066357.svg"
|
|
1595
|
-
},
|
|
1595
|
+
}, Pt = [
|
|
1596
1596
|
{ code: "+1", country: "USA / Canada" },
|
|
1597
1597
|
{ code: "+7", country: "Russia / Kazakhstan" },
|
|
1598
1598
|
{ code: "+20", country: "Egypt" },
|
|
@@ -1662,130 +1662,130 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1662
1662
|
{ code: "+975", country: "Bhutan" },
|
|
1663
1663
|
{ code: "+976", country: "Mongolia" },
|
|
1664
1664
|
{ code: "+977", country: "Nepal" }
|
|
1665
|
-
],
|
|
1665
|
+
], nt = Pt.map((a) => a.code), At = 10, lt = (a) => a.replace(/\D/g, ""), xt = (a) => lt(a).slice(0, At), Tn = (a) => lt(a).length === At, Sn = (a, r, s) => Tn(a) ? s.phone ? { shouldTrack: !1 } : (s.phone = !0, { shouldTrack: !0, fullPhone: `${r}-${lt(a)}` }) : (s.phone = !1, { shouldTrack: !1 }), Cn = {}, Pn = ({
|
|
1666
1666
|
t: a,
|
|
1667
|
-
values:
|
|
1667
|
+
values: r,
|
|
1668
1668
|
onChange: s,
|
|
1669
|
-
phoneIsdCode:
|
|
1670
|
-
onPhoneIsdCodeChange:
|
|
1669
|
+
phoneIsdCode: p,
|
|
1670
|
+
onPhoneIsdCodeChange: d,
|
|
1671
1671
|
showV1ExtraFields: f = !1,
|
|
1672
|
-
analytics:
|
|
1673
|
-
googleMapsApiKey:
|
|
1674
|
-
atlasSearchLocalities:
|
|
1672
|
+
analytics: b,
|
|
1673
|
+
googleMapsApiKey: j,
|
|
1674
|
+
atlasSearchLocalities: y,
|
|
1675
1675
|
googleMapsAutocompleteEnabled: U,
|
|
1676
|
-
className:
|
|
1676
|
+
className: M = ""
|
|
1677
1677
|
}) => {
|
|
1678
|
-
const N =
|
|
1678
|
+
const N = Ee(), m = N?.config?.analytics ?? b, $ = N?.config.isGlobal ?? !0, v = N?.config?.googleMapsApiKey, Q = N?.config?.atlasSearchLocalities, x = N?.config?.googleMapsAutocompleteEnabled, [k, T] = E(!1), [re, C] = E(""), K = O(null), P = O(null), W = O({}), A = (n) => s({ ...r, ...n }), F = (n, c) => {
|
|
1679
1679
|
if (n === "phone") {
|
|
1680
|
-
const
|
|
1681
|
-
|
|
1680
|
+
const Y = Sn(c, p, W.current);
|
|
1681
|
+
Y.shouldTrack && m?.trackPhoneSectionFilled?.({ phone: Y.fullPhone });
|
|
1682
1682
|
return;
|
|
1683
1683
|
}
|
|
1684
|
-
c.trim() && !
|
|
1684
|
+
c.trim() && !W.current[n] && (W.current[n] = !0, {
|
|
1685
1685
|
fullName: () => m?.trackNameSectionFilled?.(),
|
|
1686
1686
|
dateOfBirth: () => m?.trackDobFilled?.(),
|
|
1687
1687
|
birthTime: () => m?.trackTimeFilled?.(),
|
|
1688
1688
|
birthPlace: () => m?.trackPlaceOfBirthChosen?.()
|
|
1689
1689
|
}[n]?.());
|
|
1690
|
-
},
|
|
1690
|
+
}, X = (n) => {
|
|
1691
1691
|
const c = n.target.value;
|
|
1692
1692
|
c.trim() && m?.trackEmailSectionFilled?.({ email: c });
|
|
1693
|
-
},
|
|
1694
|
-
|
|
1695
|
-
const
|
|
1693
|
+
}, te = re.trim().toLowerCase(), L = Pt.filter((n) => te ? n.country.toLowerCase().includes(te) || n.code.includes(te) : !0), I = O(null);
|
|
1694
|
+
O(null);
|
|
1695
|
+
const B = O(null), H = O(0), V = O(null), [xe, de] = E(!1), [oe, ue] = E({ hour12: 12, minute: "00", meridiem: "AM" }), ae = (n) => String(n).padStart(2, "0"), we = (n) => {
|
|
1696
1696
|
const c = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
1697
1697
|
if (!c) return n;
|
|
1698
|
-
const
|
|
1699
|
-
return `${
|
|
1700
|
-
},
|
|
1698
|
+
const Y = Number(c[1]), je = c[2], Ue = Y >= 12 ? "PM" : "AM";
|
|
1699
|
+
return `${Y % 12 === 0 ? 12 : Y % 12}:${je} ${Ue}`;
|
|
1700
|
+
}, ge = (n) => {
|
|
1701
1701
|
const c = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
1702
1702
|
if (!c) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
1703
|
-
const
|
|
1704
|
-
return { hour12:
|
|
1705
|
-
},
|
|
1706
|
-
const c = Math.min(12, Math.max(1, n.hour12)),
|
|
1703
|
+
const Y = Number(c[1]), je = c[2], Ue = Y >= 12 ? "PM" : "AM";
|
|
1704
|
+
return { hour12: Y % 12 === 0 ? 12 : Y % 12, minute: je, meridiem: Ue };
|
|
1705
|
+
}, Pe = (n) => {
|
|
1706
|
+
const c = Math.min(12, Math.max(1, n.hour12)), Y = /^([0-5]\d)$/.test(n.minute) ? n.minute : "00";
|
|
1707
1707
|
let je = c % 12;
|
|
1708
|
-
return n.meridiem === "PM" && (je += 12), `${
|
|
1709
|
-
},
|
|
1708
|
+
return n.meridiem === "PM" && (je += 12), `${ae(je)}:${Y}`;
|
|
1709
|
+
}, z = O(null), [Z, ie] = E(!1), se = O(r.birthPlace ?? ""), [ne, pe] = E(
|
|
1710
1710
|
null
|
|
1711
|
-
),
|
|
1712
|
-
apiKey:
|
|
1711
|
+
), ke = j ?? v ?? Cn?.VITE_GOOGLE_MAPS_API_KEY, Ae = y ?? Q, me = U ?? x ?? !0, he = (r.birthPlace ?? "").trim(), Ce = $ ? void 0 : "in", fe = xn({
|
|
1712
|
+
apiKey: me ? ke : void 0,
|
|
1713
1713
|
language: "en",
|
|
1714
|
-
restrictCountry:
|
|
1715
|
-
}),
|
|
1716
|
-
searchLocalities:
|
|
1717
|
-
restrictCountry:
|
|
1718
|
-
}),
|
|
1714
|
+
restrictCountry: Ce
|
|
1715
|
+
}), i = jn({
|
|
1716
|
+
searchLocalities: me ? void 0 : Ae,
|
|
1717
|
+
restrictCountry: Ce
|
|
1718
|
+
}), h = me ? fe.predictions.map((n) => ({
|
|
1719
1719
|
id: n.place_id,
|
|
1720
1720
|
description: n.description,
|
|
1721
1721
|
secondaryText: n.structured_formatting?.secondary_text,
|
|
1722
1722
|
lat: void 0,
|
|
1723
1723
|
lng: void 0
|
|
1724
|
-
})) :
|
|
1724
|
+
})) : i.predictions.map((n) => ({
|
|
1725
1725
|
id: n.id,
|
|
1726
1726
|
description: n.description,
|
|
1727
1727
|
secondaryText: n.secondary_text,
|
|
1728
1728
|
lat: n.lat,
|
|
1729
1729
|
lng: n.lng
|
|
1730
|
-
})),
|
|
1730
|
+
})), ee = me ? fe.isSearching : i.isSearching, _e = me ? fe.loadError : i.loadError, _ = me ? !!ke : !!Ae, De = me ? fe.searchPlaces : i.searchPlaces, Fe = me ? fe.clearPredictions : i.clearPredictions, $e = O(() => {
|
|
1731
1731
|
});
|
|
1732
1732
|
$e.current = () => {
|
|
1733
|
-
(
|
|
1733
|
+
(r.birthPlace ?? "") !== se.current && A({
|
|
1734
1734
|
birthPlace: "",
|
|
1735
1735
|
birthPlaceLat: void 0,
|
|
1736
1736
|
birthPlaceLng: void 0
|
|
1737
|
-
}),
|
|
1738
|
-
},
|
|
1737
|
+
}), ie(!1);
|
|
1738
|
+
}, q(() => {
|
|
1739
1739
|
const n = (c) => {
|
|
1740
|
-
|
|
1740
|
+
z.current && (z.current.contains(c.target) || $e.current());
|
|
1741
1741
|
};
|
|
1742
1742
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1743
|
-
}, []),
|
|
1743
|
+
}, []), q(() => {
|
|
1744
1744
|
const n = (c) => {
|
|
1745
|
-
|
|
1745
|
+
K.current && (K.current.contains(c.target) || (T(!1), C("")));
|
|
1746
1746
|
};
|
|
1747
1747
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1748
|
-
}, []),
|
|
1749
|
-
if (!
|
|
1748
|
+
}, []), q(() => {
|
|
1749
|
+
if (!k) return;
|
|
1750
1750
|
const n = window.setTimeout(() => {
|
|
1751
|
-
|
|
1751
|
+
P.current?.focus();
|
|
1752
1752
|
}, 0);
|
|
1753
1753
|
return () => window.clearTimeout(n);
|
|
1754
|
-
}, [
|
|
1755
|
-
if (!
|
|
1756
|
-
if (
|
|
1754
|
+
}, [k]), q(() => {
|
|
1755
|
+
if (!Z) return;
|
|
1756
|
+
if (he.length < 2) {
|
|
1757
1757
|
Fe();
|
|
1758
1758
|
return;
|
|
1759
1759
|
}
|
|
1760
1760
|
const n = window.setTimeout(async () => {
|
|
1761
|
-
await De(
|
|
1761
|
+
await De(he);
|
|
1762
1762
|
}, 250);
|
|
1763
1763
|
return () => window.clearTimeout(n);
|
|
1764
|
-
}, [Fe,
|
|
1764
|
+
}, [Fe, Z, he, De]);
|
|
1765
1765
|
const Ge = (n) => {
|
|
1766
1766
|
const c = n.current;
|
|
1767
1767
|
if (!(!c || c.disabled)) {
|
|
1768
|
-
if (document.activeElement === c &&
|
|
1768
|
+
if (document.activeElement === c && B.current === c && Date.now() - H.current < 6e4) {
|
|
1769
1769
|
c.blur();
|
|
1770
1770
|
return;
|
|
1771
1771
|
}
|
|
1772
1772
|
if (typeof c.showPicker == "function") {
|
|
1773
|
-
c.showPicker(),
|
|
1773
|
+
c.showPicker(), B.current = c, H.current = Date.now();
|
|
1774
1774
|
return;
|
|
1775
1775
|
}
|
|
1776
|
-
c.focus(),
|
|
1776
|
+
c.focus(), B.current = c, H.current = Date.now();
|
|
1777
1777
|
}
|
|
1778
1778
|
};
|
|
1779
|
-
return
|
|
1779
|
+
return q(() => {
|
|
1780
1780
|
const n = (c) => {
|
|
1781
|
-
|
|
1781
|
+
V.current && (V.current.contains(c.target) || de(!1));
|
|
1782
1782
|
};
|
|
1783
1783
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1784
|
-
}, []),
|
|
1785
|
-
const n = (
|
|
1786
|
-
|
|
1787
|
-
}, c = (
|
|
1788
|
-
|
|
1784
|
+
}, []), q(() => {
|
|
1785
|
+
const n = (Y) => {
|
|
1786
|
+
Y.target?.closest?.("[data-info-tooltip]") == null && pe(null);
|
|
1787
|
+
}, c = (Y) => {
|
|
1788
|
+
Y.key === "Escape" && pe(null);
|
|
1789
1789
|
};
|
|
1790
1790
|
return document.addEventListener("mousedown", n), document.addEventListener("keydown", c), () => {
|
|
1791
1791
|
document.removeEventListener("mousedown", n), document.removeEventListener("keydown", c);
|
|
@@ -1793,123 +1793,123 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1793
1793
|
}, []), /* @__PURE__ */ e.jsx(
|
|
1794
1794
|
"section",
|
|
1795
1795
|
{
|
|
1796
|
-
className: `${
|
|
1796
|
+
className: `${o.wrap} ${M}`,
|
|
1797
1797
|
"aria-label": a("formTitle"),
|
|
1798
|
-
children: /* @__PURE__ */ e.jsx("div", { className:
|
|
1799
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1800
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1798
|
+
children: /* @__PURE__ */ e.jsx("div", { className: o.card, children: /* @__PURE__ */ e.jsxs("div", { className: o.cardInner, children: [
|
|
1799
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
1800
|
+
/* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, htmlFor: "kundli-full-name", children: [
|
|
1801
1801
|
a("formFullName"),
|
|
1802
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1802
|
+
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
1803
1803
|
] }) }),
|
|
1804
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1804
|
+
/* @__PURE__ */ e.jsx("div", { className: o.inputWrap, children: /* @__PURE__ */ e.jsx(
|
|
1805
1805
|
"input",
|
|
1806
1806
|
{
|
|
1807
1807
|
id: "kundli-full-name",
|
|
1808
|
-
className:
|
|
1808
|
+
className: o.input,
|
|
1809
1809
|
type: "text",
|
|
1810
|
-
value:
|
|
1810
|
+
value: r.fullName,
|
|
1811
1811
|
onFocus: () => m?.trackNameSectionClicked?.(),
|
|
1812
1812
|
onChange: (n) => {
|
|
1813
1813
|
const c = n.target.value;
|
|
1814
|
-
|
|
1814
|
+
A({ fullName: c }), F("fullName", c);
|
|
1815
1815
|
},
|
|
1816
1816
|
placeholder: a("formFullNamePlaceholder"),
|
|
1817
1817
|
autoComplete: "name"
|
|
1818
1818
|
}
|
|
1819
1819
|
) })
|
|
1820
1820
|
] }),
|
|
1821
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1822
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1821
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
1822
|
+
/* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, htmlFor: "kundli-phone", children: [
|
|
1823
1823
|
a("formPhone"),
|
|
1824
|
-
|
|
1824
|
+
!$ && /* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
1825
1825
|
] }) }),
|
|
1826
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1827
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1828
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1826
|
+
/* @__PURE__ */ e.jsx("div", { className: o.inputWrap, children: /* @__PURE__ */ e.jsxs("div", { className: o.isdWrap, ref: K, children: [
|
|
1827
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.phoneInputGroup, children: [
|
|
1828
|
+
/* @__PURE__ */ e.jsx("div", { className: o.isdSelectWrap, children: /* @__PURE__ */ e.jsx(
|
|
1829
1829
|
"button",
|
|
1830
1830
|
{
|
|
1831
1831
|
type: "button",
|
|
1832
|
-
className:
|
|
1832
|
+
className: o.isdSelectTrigger,
|
|
1833
1833
|
"aria-haspopup": "listbox",
|
|
1834
|
-
"aria-expanded":
|
|
1834
|
+
"aria-expanded": k,
|
|
1835
1835
|
onClick: () => {
|
|
1836
|
-
|
|
1836
|
+
T((n) => !n), C("");
|
|
1837
1837
|
},
|
|
1838
|
-
children:
|
|
1838
|
+
children: p
|
|
1839
1839
|
}
|
|
1840
1840
|
) }),
|
|
1841
1841
|
/* @__PURE__ */ e.jsx(
|
|
1842
1842
|
"input",
|
|
1843
1843
|
{
|
|
1844
1844
|
id: "kundli-phone",
|
|
1845
|
-
className: `${
|
|
1845
|
+
className: `${o.input} ${o.phoneInput}`,
|
|
1846
1846
|
type: "tel",
|
|
1847
|
-
value:
|
|
1847
|
+
value: r.phone ?? "",
|
|
1848
1848
|
onFocus: () => m?.trackPhoneSectionClicked?.(),
|
|
1849
1849
|
onChange: (n) => {
|
|
1850
1850
|
const c = n.target.value;
|
|
1851
|
-
|
|
1851
|
+
A({ phone: xt(c) }), F("phone", xt(c));
|
|
1852
1852
|
},
|
|
1853
1853
|
placeholder: a("formPhonePlaceholder"),
|
|
1854
1854
|
autoComplete: "tel",
|
|
1855
1855
|
inputMode: "numeric",
|
|
1856
1856
|
pattern: "[0-9]{10}",
|
|
1857
1857
|
maxLength: 10,
|
|
1858
|
-
required:
|
|
1859
|
-
"aria-required":
|
|
1858
|
+
required: !$,
|
|
1859
|
+
"aria-required": !$
|
|
1860
1860
|
}
|
|
1861
1861
|
)
|
|
1862
1862
|
] }),
|
|
1863
|
-
|
|
1863
|
+
k && /* @__PURE__ */ e.jsxs(
|
|
1864
1864
|
"div",
|
|
1865
1865
|
{
|
|
1866
|
-
className:
|
|
1866
|
+
className: o.isdDropdown,
|
|
1867
1867
|
role: "listbox",
|
|
1868
1868
|
"aria-label": "ISD code options",
|
|
1869
1869
|
children: [
|
|
1870
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1870
|
+
/* @__PURE__ */ e.jsx("div", { className: o.isdSearchWrap, children: /* @__PURE__ */ e.jsx(
|
|
1871
1871
|
"input",
|
|
1872
1872
|
{
|
|
1873
|
-
ref:
|
|
1873
|
+
ref: P,
|
|
1874
1874
|
type: "text",
|
|
1875
|
-
value:
|
|
1876
|
-
onChange: (n) =>
|
|
1875
|
+
value: re,
|
|
1876
|
+
onChange: (n) => C(n.target.value),
|
|
1877
1877
|
placeholder: "Search country",
|
|
1878
|
-
className:
|
|
1878
|
+
className: o.isdSearchInput,
|
|
1879
1879
|
"aria-label": "Search country"
|
|
1880
1880
|
}
|
|
1881
1881
|
) }),
|
|
1882
|
-
|
|
1882
|
+
L.length > 0 ? L.map((n) => /* @__PURE__ */ e.jsxs(
|
|
1883
1883
|
"button",
|
|
1884
1884
|
{
|
|
1885
1885
|
type: "button",
|
|
1886
1886
|
role: "option",
|
|
1887
|
-
"aria-selected": n.code ===
|
|
1888
|
-
className: `${
|
|
1887
|
+
"aria-selected": n.code === p,
|
|
1888
|
+
className: `${o.isdOption} ${n.code === p ? o.isdOptionActive : ""}`,
|
|
1889
1889
|
onClick: () => {
|
|
1890
|
-
|
|
1890
|
+
d(n.code), T(!1), C("");
|
|
1891
1891
|
},
|
|
1892
1892
|
children: [
|
|
1893
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1894
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1893
|
+
/* @__PURE__ */ e.jsx("span", { className: o.isdCountryName, children: n.country }),
|
|
1894
|
+
/* @__PURE__ */ e.jsx("span", { className: o.isdCountryCode, children: n.code })
|
|
1895
1895
|
]
|
|
1896
1896
|
},
|
|
1897
1897
|
`${n.code}-${n.country}`
|
|
1898
|
-
)) : /* @__PURE__ */ e.jsx("div", { className:
|
|
1898
|
+
)) : /* @__PURE__ */ e.jsx("div", { className: o.isdNoResult, children: "No country found" })
|
|
1899
1899
|
]
|
|
1900
1900
|
}
|
|
1901
1901
|
)
|
|
1902
1902
|
] }) })
|
|
1903
1903
|
] }),
|
|
1904
|
-
f && /* @__PURE__ */ e.jsxs("div", { className:
|
|
1905
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1904
|
+
f && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
1905
|
+
/* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, children: [
|
|
1906
1906
|
a("formGender"),
|
|
1907
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1907
|
+
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
1908
1908
|
] }) }),
|
|
1909
1909
|
/* @__PURE__ */ e.jsxs(
|
|
1910
1910
|
"div",
|
|
1911
1911
|
{
|
|
1912
|
-
className:
|
|
1912
|
+
className: o.choiceRow,
|
|
1913
1913
|
role: "radiogroup",
|
|
1914
1914
|
"aria-label": a("formGender"),
|
|
1915
1915
|
children: [
|
|
@@ -1918,14 +1918,14 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1918
1918
|
{
|
|
1919
1919
|
id: "kundli-gender-male",
|
|
1920
1920
|
type: "button",
|
|
1921
|
-
className: `${
|
|
1921
|
+
className: `${o.choiceBtn} ${r.gender === "male" ? o.choiceBtnActive : ""}`,
|
|
1922
1922
|
onClick: () => {
|
|
1923
|
-
|
|
1923
|
+
A({ gender: "male" }), m?.trackGenderSelected?.({
|
|
1924
1924
|
gender: "male"
|
|
1925
1925
|
});
|
|
1926
1926
|
},
|
|
1927
1927
|
role: "radio",
|
|
1928
|
-
"aria-checked":
|
|
1928
|
+
"aria-checked": r.gender === "male",
|
|
1929
1929
|
children: a("formGenderMale")
|
|
1930
1930
|
}
|
|
1931
1931
|
),
|
|
@@ -1934,14 +1934,14 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1934
1934
|
{
|
|
1935
1935
|
id: "kundli-gender-female",
|
|
1936
1936
|
type: "button",
|
|
1937
|
-
className: `${
|
|
1937
|
+
className: `${o.choiceBtn} ${r.gender === "female" ? o.choiceBtnActive : ""}`,
|
|
1938
1938
|
onClick: () => {
|
|
1939
|
-
|
|
1939
|
+
A({ gender: "female" }), m?.trackGenderSelected?.({
|
|
1940
1940
|
gender: "female"
|
|
1941
1941
|
});
|
|
1942
1942
|
},
|
|
1943
1943
|
role: "radio",
|
|
1944
|
-
"aria-checked":
|
|
1944
|
+
"aria-checked": r.gender === "female",
|
|
1945
1945
|
children: a("formGenderFemale")
|
|
1946
1946
|
}
|
|
1947
1947
|
)
|
|
@@ -1949,24 +1949,24 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1949
1949
|
}
|
|
1950
1950
|
)
|
|
1951
1951
|
] }),
|
|
1952
|
-
|
|
1953
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1952
|
+
$ && /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
1953
|
+
/* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, htmlFor: "kundli-email", children: [
|
|
1954
1954
|
a("formEmail"),
|
|
1955
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1955
|
+
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
1956
1956
|
] }) }),
|
|
1957
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1958
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1957
|
+
/* @__PURE__ */ e.jsx("div", { className: o.help, children: a("formEmailHelp") }),
|
|
1958
|
+
/* @__PURE__ */ e.jsx("div", { className: o.inputWrap, children: /* @__PURE__ */ e.jsx(
|
|
1959
1959
|
"input",
|
|
1960
1960
|
{
|
|
1961
1961
|
id: "kundli-email",
|
|
1962
|
-
className:
|
|
1962
|
+
className: o.input,
|
|
1963
1963
|
type: "email",
|
|
1964
|
-
value:
|
|
1964
|
+
value: r.email,
|
|
1965
1965
|
onFocus: () => m?.trackEmailSectionClicked?.(),
|
|
1966
1966
|
onChange: (n) => {
|
|
1967
|
-
|
|
1967
|
+
A({ email: n.target.value });
|
|
1968
1968
|
},
|
|
1969
|
-
onBlur:
|
|
1969
|
+
onBlur: X,
|
|
1970
1970
|
placeholder: a("formEmailPlaceholder"),
|
|
1971
1971
|
autoComplete: "email",
|
|
1972
1972
|
required: !0,
|
|
@@ -1974,27 +1974,27 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1974
1974
|
}
|
|
1975
1975
|
) })
|
|
1976
1976
|
] }) }),
|
|
1977
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1978
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1979
|
-
/* @__PURE__ */ e.jsxs("label", { className:
|
|
1977
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
1978
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.labelRow, children: [
|
|
1979
|
+
/* @__PURE__ */ e.jsxs("label", { className: o.label, htmlFor: "kundli-dob", children: [
|
|
1980
1980
|
a("formDob"),
|
|
1981
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1981
|
+
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
1982
1982
|
] }),
|
|
1983
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1983
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.infoWrap, "data-info-tooltip": !0, children: [
|
|
1984
1984
|
/* @__PURE__ */ e.jsx(
|
|
1985
1985
|
"button",
|
|
1986
1986
|
{
|
|
1987
1987
|
type: "button",
|
|
1988
|
-
className:
|
|
1988
|
+
className: o.infoBtn,
|
|
1989
1989
|
"aria-label": a("info"),
|
|
1990
|
-
"aria-expanded":
|
|
1990
|
+
"aria-expanded": ne === "dob",
|
|
1991
1991
|
onClick: () => {
|
|
1992
|
-
|
|
1992
|
+
pe((n) => n === "dob" ? null : "dob"), m?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
1993
1993
|
},
|
|
1994
1994
|
children: /* @__PURE__ */ e.jsx(
|
|
1995
1995
|
"img",
|
|
1996
1996
|
{
|
|
1997
|
-
className:
|
|
1997
|
+
className: o.infoImg,
|
|
1998
1998
|
src: Me.info,
|
|
1999
1999
|
alt: "",
|
|
2000
2000
|
"aria-hidden": !0
|
|
@@ -2002,33 +2002,33 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2002
2002
|
)
|
|
2003
2003
|
}
|
|
2004
2004
|
),
|
|
2005
|
-
|
|
2005
|
+
ne === "dob" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
|
|
2006
2006
|
a("formDobInfo"),
|
|
2007
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2007
|
+
/* @__PURE__ */ e.jsx("span", { className: o.tooltipArrow, "aria-hidden": !0 })
|
|
2008
2008
|
] })
|
|
2009
2009
|
] })
|
|
2010
2010
|
] }),
|
|
2011
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2011
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.inputWrap, children: [
|
|
2012
2012
|
/* @__PURE__ */ e.jsx(
|
|
2013
2013
|
"input",
|
|
2014
2014
|
{
|
|
2015
2015
|
id: "kundli-dob",
|
|
2016
|
-
className:
|
|
2016
|
+
className: o.input,
|
|
2017
2017
|
type: "date",
|
|
2018
|
-
ref:
|
|
2019
|
-
value:
|
|
2018
|
+
ref: I,
|
|
2019
|
+
value: r.dateOfBirth,
|
|
2020
2020
|
max: (() => {
|
|
2021
2021
|
const n = /* @__PURE__ */ new Date();
|
|
2022
|
-
return `${n.getFullYear()}-${
|
|
2022
|
+
return `${n.getFullYear()}-${ae(n.getMonth() + 1)}-${ae(n.getDate())}`;
|
|
2023
2023
|
})(),
|
|
2024
2024
|
onChange: (n) => {
|
|
2025
|
-
const c = n.target.value,
|
|
2026
|
-
c && c > je || (
|
|
2025
|
+
const c = n.target.value, Y = /* @__PURE__ */ new Date(), je = `${Y.getFullYear()}-${ae(Y.getMonth() + 1)}-${ae(Y.getDate())}`;
|
|
2026
|
+
c && c > je || (A({ dateOfBirth: c }), F("dateOfBirth", c), B.current = null);
|
|
2027
2027
|
},
|
|
2028
2028
|
onFocus: () => m?.trackDobClicked?.(),
|
|
2029
|
-
onClick: () => Ge(
|
|
2029
|
+
onClick: () => Ge(I),
|
|
2030
2030
|
onBlur: () => {
|
|
2031
|
-
|
|
2031
|
+
B.current === I.current && (B.current = null);
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
2034
2034
|
),
|
|
@@ -2036,16 +2036,16 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2036
2036
|
"button",
|
|
2037
2037
|
{
|
|
2038
2038
|
type: "button",
|
|
2039
|
-
className: `${
|
|
2039
|
+
className: `${o.iconBtn} ${o.iconBtnInteractive}`,
|
|
2040
2040
|
"aria-label": "Open date picker",
|
|
2041
2041
|
onMouseDown: (n) => n.preventDefault(),
|
|
2042
2042
|
onClick: (n) => {
|
|
2043
|
-
n.preventDefault(), n.stopPropagation(), Ge(
|
|
2043
|
+
n.preventDefault(), n.stopPropagation(), Ge(I);
|
|
2044
2044
|
},
|
|
2045
2045
|
children: /* @__PURE__ */ e.jsx(
|
|
2046
2046
|
"img",
|
|
2047
2047
|
{
|
|
2048
|
-
className:
|
|
2048
|
+
className: o.iconImg,
|
|
2049
2049
|
src: Me.date,
|
|
2050
2050
|
alt: "",
|
|
2051
2051
|
"aria-hidden": !0
|
|
@@ -2055,27 +2055,27 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2055
2055
|
)
|
|
2056
2056
|
] })
|
|
2057
2057
|
] }),
|
|
2058
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2059
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2060
|
-
/* @__PURE__ */ e.jsxs("label", { className:
|
|
2058
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
2059
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.labelRow, children: [
|
|
2060
|
+
/* @__PURE__ */ e.jsxs("label", { className: o.label, htmlFor: "kundli-birth-time", children: [
|
|
2061
2061
|
a("formBirthTime"),
|
|
2062
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2062
|
+
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
2063
2063
|
] }),
|
|
2064
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2064
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.infoWrap, "data-info-tooltip": !0, children: [
|
|
2065
2065
|
/* @__PURE__ */ e.jsx(
|
|
2066
2066
|
"button",
|
|
2067
2067
|
{
|
|
2068
2068
|
type: "button",
|
|
2069
|
-
className:
|
|
2069
|
+
className: o.infoBtn,
|
|
2070
2070
|
"aria-label": a("info"),
|
|
2071
|
-
"aria-expanded":
|
|
2071
|
+
"aria-expanded": ne === "time",
|
|
2072
2072
|
onClick: () => {
|
|
2073
|
-
m?.trackInfoIconClicked?.({ fieldName: "time" }),
|
|
2073
|
+
m?.trackInfoIconClicked?.({ fieldName: "time" }), pe((n) => n === "time" ? null : "time");
|
|
2074
2074
|
},
|
|
2075
2075
|
children: /* @__PURE__ */ e.jsx(
|
|
2076
2076
|
"img",
|
|
2077
2077
|
{
|
|
2078
|
-
className:
|
|
2078
|
+
className: o.infoImg,
|
|
2079
2079
|
src: Me.info,
|
|
2080
2080
|
alt: "",
|
|
2081
2081
|
"aria-hidden": !0
|
|
@@ -2083,30 +2083,30 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2083
2083
|
)
|
|
2084
2084
|
}
|
|
2085
2085
|
),
|
|
2086
|
-
|
|
2086
|
+
ne === "time" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
|
|
2087
2087
|
a("formBirthTimeInfo"),
|
|
2088
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2088
|
+
/* @__PURE__ */ e.jsx("span", { className: o.tooltipArrow, "aria-hidden": !0 })
|
|
2089
2089
|
] })
|
|
2090
2090
|
] })
|
|
2091
2091
|
] }),
|
|
2092
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2092
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.inputWrap, ref: V, children: [
|
|
2093
2093
|
/* @__PURE__ */ e.jsx(
|
|
2094
2094
|
"input",
|
|
2095
2095
|
{
|
|
2096
2096
|
id: "kundli-birth-time",
|
|
2097
|
-
className:
|
|
2097
|
+
className: o.input,
|
|
2098
2098
|
type: "text",
|
|
2099
|
-
value:
|
|
2099
|
+
value: r.birthTime ? we(r.birthTime) : "",
|
|
2100
2100
|
readOnly: !0,
|
|
2101
2101
|
onFocus: () => m?.trackTimeClicked?.(),
|
|
2102
2102
|
onChange: (n) => {
|
|
2103
2103
|
const c = n.target.value;
|
|
2104
|
-
|
|
2104
|
+
A({ birthTime: c }), F("birthTime", c);
|
|
2105
2105
|
},
|
|
2106
|
-
disabled:
|
|
2106
|
+
disabled: r.birthTimeUnknown,
|
|
2107
2107
|
placeholder: "HH:MM AM",
|
|
2108
2108
|
onClick: () => {
|
|
2109
|
-
|
|
2109
|
+
r.birthTimeUnknown || (ue(ge(r.birthTime || "12:00")), de((n) => !n));
|
|
2110
2110
|
}
|
|
2111
2111
|
}
|
|
2112
2112
|
),
|
|
@@ -2114,17 +2114,17 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2114
2114
|
"button",
|
|
2115
2115
|
{
|
|
2116
2116
|
type: "button",
|
|
2117
|
-
className: `${
|
|
2117
|
+
className: `${o.iconBtn} ${o.iconBtnInteractive}`,
|
|
2118
2118
|
"aria-label": "Open time picker",
|
|
2119
|
-
disabled:
|
|
2119
|
+
disabled: r.birthTimeUnknown,
|
|
2120
2120
|
onMouseDown: (n) => n.preventDefault(),
|
|
2121
2121
|
onClick: (n) => {
|
|
2122
|
-
n.preventDefault(), n.stopPropagation(), !
|
|
2122
|
+
n.preventDefault(), n.stopPropagation(), !r.birthTimeUnknown && (ue(ge(r.birthTime || "12:00")), de((c) => !c));
|
|
2123
2123
|
},
|
|
2124
2124
|
children: /* @__PURE__ */ e.jsx(
|
|
2125
2125
|
"img",
|
|
2126
2126
|
{
|
|
2127
|
-
className:
|
|
2127
|
+
className: o.iconImg,
|
|
2128
2128
|
src: Me.time,
|
|
2129
2129
|
alt: "",
|
|
2130
2130
|
"aria-hidden": !0
|
|
@@ -2132,20 +2132,20 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2132
2132
|
)
|
|
2133
2133
|
}
|
|
2134
2134
|
),
|
|
2135
|
-
|
|
2135
|
+
xe && !r.birthTimeUnknown && /* @__PURE__ */ e.jsxs(
|
|
2136
2136
|
"div",
|
|
2137
2137
|
{
|
|
2138
|
-
className:
|
|
2138
|
+
className: o.timePopover,
|
|
2139
2139
|
role: "dialog",
|
|
2140
2140
|
"aria-label": "Select time",
|
|
2141
2141
|
children: [
|
|
2142
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2142
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.timePickerRow, children: [
|
|
2143
2143
|
/* @__PURE__ */ e.jsx(
|
|
2144
2144
|
"select",
|
|
2145
2145
|
{
|
|
2146
|
-
className:
|
|
2147
|
-
value:
|
|
2148
|
-
onChange: (n) =>
|
|
2146
|
+
className: o.timePickerSelect,
|
|
2147
|
+
value: oe.hour12,
|
|
2148
|
+
onChange: (n) => ue((c) => ({
|
|
2149
2149
|
...c,
|
|
2150
2150
|
hour12: Number(n.target.value)
|
|
2151
2151
|
})),
|
|
@@ -2153,26 +2153,26 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2153
2153
|
children: Array.from({ length: 12 }, (n, c) => c + 1).map((n) => /* @__PURE__ */ e.jsx("option", { value: n, children: n }, n))
|
|
2154
2154
|
}
|
|
2155
2155
|
),
|
|
2156
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2156
|
+
/* @__PURE__ */ e.jsx("span", { className: o.timePickerColon, children: ":" }),
|
|
2157
2157
|
/* @__PURE__ */ e.jsx(
|
|
2158
2158
|
"select",
|
|
2159
2159
|
{
|
|
2160
|
-
className:
|
|
2161
|
-
value:
|
|
2162
|
-
onChange: (n) =>
|
|
2160
|
+
className: o.timePickerSelect,
|
|
2161
|
+
value: oe.minute,
|
|
2162
|
+
onChange: (n) => ue((c) => ({ ...c, minute: n.target.value })),
|
|
2163
2163
|
"aria-label": "Minute",
|
|
2164
|
-
children: Array.from({ length: 60 }, (n, c) =>
|
|
2164
|
+
children: Array.from({ length: 60 }, (n, c) => ae(c)).map(
|
|
2165
2165
|
(n) => /* @__PURE__ */ e.jsx("option", { value: n, children: n }, n)
|
|
2166
2166
|
)
|
|
2167
2167
|
}
|
|
2168
2168
|
),
|
|
2169
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2169
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.meridiemToggle, "aria-label": "AM/PM", children: [
|
|
2170
2170
|
/* @__PURE__ */ e.jsx(
|
|
2171
2171
|
"button",
|
|
2172
2172
|
{
|
|
2173
2173
|
type: "button",
|
|
2174
|
-
className: `${
|
|
2175
|
-
onClick: () =>
|
|
2174
|
+
className: `${o.meridiemBtn} ${oe.meridiem === "AM" ? o.meridiemActive : ""}`,
|
|
2175
|
+
onClick: () => ue((n) => ({ ...n, meridiem: "AM" })),
|
|
2176
2176
|
children: "AM"
|
|
2177
2177
|
}
|
|
2178
2178
|
),
|
|
@@ -2180,20 +2180,20 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2180
2180
|
"button",
|
|
2181
2181
|
{
|
|
2182
2182
|
type: "button",
|
|
2183
|
-
className: `${
|
|
2184
|
-
onClick: () =>
|
|
2183
|
+
className: `${o.meridiemBtn} ${oe.meridiem === "PM" ? o.meridiemActive : ""}`,
|
|
2184
|
+
onClick: () => ue((n) => ({ ...n, meridiem: "PM" })),
|
|
2185
2185
|
children: "PM"
|
|
2186
2186
|
}
|
|
2187
2187
|
)
|
|
2188
2188
|
] })
|
|
2189
2189
|
] }),
|
|
2190
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2190
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.timePopoverActions, children: [
|
|
2191
2191
|
/* @__PURE__ */ e.jsx(
|
|
2192
2192
|
"button",
|
|
2193
2193
|
{
|
|
2194
2194
|
type: "button",
|
|
2195
|
-
className:
|
|
2196
|
-
onClick: () =>
|
|
2195
|
+
className: o.timePopoverBtn,
|
|
2196
|
+
onClick: () => de(!1),
|
|
2197
2197
|
children: "Cancel"
|
|
2198
2198
|
}
|
|
2199
2199
|
),
|
|
@@ -2201,10 +2201,10 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2201
2201
|
"button",
|
|
2202
2202
|
{
|
|
2203
2203
|
type: "button",
|
|
2204
|
-
className: `${
|
|
2204
|
+
className: `${o.timePopoverBtn} ${o.timePopoverOk}`,
|
|
2205
2205
|
onClick: () => {
|
|
2206
|
-
const n =
|
|
2207
|
-
|
|
2206
|
+
const n = Pe(oe);
|
|
2207
|
+
A({ birthTime: n }), F("birthTime", n), de(!1);
|
|
2208
2208
|
},
|
|
2209
2209
|
"aria-label": "OK",
|
|
2210
2210
|
children: /* @__PURE__ */ e.jsx(
|
|
@@ -2235,18 +2235,18 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2235
2235
|
}
|
|
2236
2236
|
)
|
|
2237
2237
|
] }),
|
|
2238
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2238
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.checkboxRow, children: [
|
|
2239
2239
|
/* @__PURE__ */ e.jsx(
|
|
2240
2240
|
"input",
|
|
2241
2241
|
{
|
|
2242
2242
|
id: "kundli-time-unknown",
|
|
2243
|
-
className:
|
|
2243
|
+
className: o.checkbox,
|
|
2244
2244
|
type: "checkbox",
|
|
2245
|
-
checked:
|
|
2245
|
+
checked: r.birthTimeUnknown,
|
|
2246
2246
|
onChange: (n) => {
|
|
2247
|
-
m?.trackTimeCheckboxClicked?.(),
|
|
2247
|
+
m?.trackTimeCheckboxClicked?.(), A({
|
|
2248
2248
|
birthTimeUnknown: n.target.checked,
|
|
2249
|
-
birthTime: n.target.checked ? "" :
|
|
2249
|
+
birthTime: n.target.checked ? "" : r.birthTime
|
|
2250
2250
|
});
|
|
2251
2251
|
}
|
|
2252
2252
|
}
|
|
@@ -2254,7 +2254,7 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2254
2254
|
/* @__PURE__ */ e.jsxs(
|
|
2255
2255
|
"label",
|
|
2256
2256
|
{
|
|
2257
|
-
className:
|
|
2257
|
+
className: o.checkboxText,
|
|
2258
2258
|
htmlFor: "kundli-time-unknown",
|
|
2259
2259
|
children: [
|
|
2260
2260
|
a("formBirthTimeUnknownLine1"),
|
|
@@ -2265,29 +2265,29 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2265
2265
|
)
|
|
2266
2266
|
] })
|
|
2267
2267
|
] }),
|
|
2268
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2269
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2270
|
-
/* @__PURE__ */ e.jsxs("label", { className:
|
|
2268
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
2269
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.labelRow, children: [
|
|
2270
|
+
/* @__PURE__ */ e.jsxs("label", { className: o.label, htmlFor: "kundli-birth-place", children: [
|
|
2271
2271
|
a("formBirthPlace"),
|
|
2272
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2272
|
+
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
2273
2273
|
] }),
|
|
2274
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2274
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.infoWrap, "data-info-tooltip": !0, children: [
|
|
2275
2275
|
/* @__PURE__ */ e.jsx(
|
|
2276
2276
|
"button",
|
|
2277
2277
|
{
|
|
2278
2278
|
type: "button",
|
|
2279
|
-
className:
|
|
2279
|
+
className: o.infoBtn,
|
|
2280
2280
|
"aria-label": a("info"),
|
|
2281
|
-
"aria-expanded":
|
|
2281
|
+
"aria-expanded": ne === "place",
|
|
2282
2282
|
onClick: () => {
|
|
2283
2283
|
m?.trackInfoIconClicked?.({
|
|
2284
2284
|
fieldName: "birthPlace"
|
|
2285
|
-
}),
|
|
2285
|
+
}), pe((n) => n === "place" ? null : "place");
|
|
2286
2286
|
},
|
|
2287
2287
|
children: /* @__PURE__ */ e.jsx(
|
|
2288
2288
|
"img",
|
|
2289
2289
|
{
|
|
2290
|
-
className:
|
|
2290
|
+
className: o.infoImg,
|
|
2291
2291
|
src: Me.info,
|
|
2292
2292
|
alt: "",
|
|
2293
2293
|
"aria-hidden": !0
|
|
@@ -2295,87 +2295,87 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2295
2295
|
)
|
|
2296
2296
|
}
|
|
2297
2297
|
),
|
|
2298
|
-
|
|
2298
|
+
ne === "place" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
|
|
2299
2299
|
a("formBirthPlaceInfo"),
|
|
2300
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2300
|
+
/* @__PURE__ */ e.jsx("span", { className: o.tooltipArrow, "aria-hidden": !0 })
|
|
2301
2301
|
] })
|
|
2302
2302
|
] })
|
|
2303
2303
|
] }),
|
|
2304
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2304
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.inputWrap, ref: z, children: [
|
|
2305
2305
|
/* @__PURE__ */ e.jsx(
|
|
2306
2306
|
"input",
|
|
2307
2307
|
{
|
|
2308
2308
|
id: "kundli-birth-place",
|
|
2309
|
-
className:
|
|
2309
|
+
className: o.input,
|
|
2310
2310
|
type: "text",
|
|
2311
|
-
value:
|
|
2311
|
+
value: r.birthPlace,
|
|
2312
2312
|
onChange: (n) => {
|
|
2313
2313
|
const c = n.target.value;
|
|
2314
|
-
|
|
2314
|
+
A({
|
|
2315
2315
|
birthPlace: c,
|
|
2316
2316
|
birthPlaceLat: void 0,
|
|
2317
2317
|
birthPlaceLng: void 0
|
|
2318
|
-
}),
|
|
2318
|
+
}), F("birthPlace", c), ie(!0);
|
|
2319
2319
|
},
|
|
2320
2320
|
onFocus: () => {
|
|
2321
|
-
m?.trackPlaceOfBirthClicked?.(),
|
|
2321
|
+
m?.trackPlaceOfBirthClicked?.(), ie(!0);
|
|
2322
2322
|
},
|
|
2323
2323
|
placeholder: a("formBirthPlacePlaceholder"),
|
|
2324
2324
|
autoComplete: "address-level2"
|
|
2325
2325
|
}
|
|
2326
2326
|
),
|
|
2327
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2327
|
+
/* @__PURE__ */ e.jsx("span", { className: o.iconBtn, "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
2328
2328
|
"img",
|
|
2329
2329
|
{
|
|
2330
|
-
className:
|
|
2330
|
+
className: o.iconImg,
|
|
2331
2331
|
src: Me.location,
|
|
2332
2332
|
alt: "",
|
|
2333
2333
|
"aria-hidden": !0
|
|
2334
2334
|
}
|
|
2335
2335
|
) }),
|
|
2336
|
-
|
|
2336
|
+
Z && h.length > 0 && /* @__PURE__ */ e.jsx("div", { className: o.suggestions, role: "listbox", children: h.slice(0, 8).map((n) => /* @__PURE__ */ e.jsxs(
|
|
2337
2337
|
"button",
|
|
2338
2338
|
{
|
|
2339
2339
|
type: "button",
|
|
2340
|
-
className:
|
|
2340
|
+
className: o.suggestionItem,
|
|
2341
2341
|
onClick: async () => {
|
|
2342
2342
|
const c = n.description;
|
|
2343
|
-
if (
|
|
2343
|
+
if (se.current = c, A({
|
|
2344
2344
|
birthPlace: c,
|
|
2345
2345
|
birthPlaceLat: n.lat,
|
|
2346
2346
|
birthPlaceLng: n.lng
|
|
2347
|
-
}), Fe(),
|
|
2348
|
-
const
|
|
2347
|
+
}), Fe(), ie(!1), me) {
|
|
2348
|
+
const Y = await fe.getPlaceDetails(
|
|
2349
2349
|
n.id
|
|
2350
2350
|
);
|
|
2351
|
-
|
|
2352
|
-
...
|
|
2351
|
+
Y && (se.current = c, s({
|
|
2352
|
+
...r,
|
|
2353
2353
|
birthPlace: c,
|
|
2354
|
-
birthPlaceLat:
|
|
2355
|
-
birthPlaceLng:
|
|
2354
|
+
birthPlaceLat: Y.lat,
|
|
2355
|
+
birthPlaceLng: Y.lng
|
|
2356
2356
|
}));
|
|
2357
2357
|
}
|
|
2358
2358
|
},
|
|
2359
2359
|
children: [
|
|
2360
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2361
|
-
n.secondaryText && /* @__PURE__ */ e.jsx("span", { className:
|
|
2360
|
+
/* @__PURE__ */ e.jsx("span", { className: o.suggestionMain, children: n.description }),
|
|
2361
|
+
n.secondaryText && /* @__PURE__ */ e.jsx("span", { className: o.suggestionSecondary, children: n.secondaryText })
|
|
2362
2362
|
]
|
|
2363
2363
|
},
|
|
2364
2364
|
n.id
|
|
2365
2365
|
)) }),
|
|
2366
|
-
|
|
2367
|
-
|
|
2366
|
+
Z && _ && ee && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: "Loading…" }),
|
|
2367
|
+
Z && _ && !ee && !!_e && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: _e })
|
|
2368
2368
|
] })
|
|
2369
2369
|
] }),
|
|
2370
|
-
f && /* @__PURE__ */ e.jsxs("div", { className:
|
|
2371
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2370
|
+
f && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
2371
|
+
/* @__PURE__ */ e.jsx("div", { className: o.labelRow, children: /* @__PURE__ */ e.jsxs("label", { className: o.label, children: [
|
|
2372
2372
|
a("formReportLanguage"),
|
|
2373
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2373
|
+
/* @__PURE__ */ e.jsx("span", { className: o.req, children: "*" })
|
|
2374
2374
|
] }) }),
|
|
2375
2375
|
/* @__PURE__ */ e.jsxs(
|
|
2376
2376
|
"div",
|
|
2377
2377
|
{
|
|
2378
|
-
className:
|
|
2378
|
+
className: o.choiceRow,
|
|
2379
2379
|
role: "radiogroup",
|
|
2380
2380
|
"aria-label": a("formReportLanguage"),
|
|
2381
2381
|
children: [
|
|
@@ -2384,14 +2384,14 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2384
2384
|
{
|
|
2385
2385
|
id: "kundli-report-lang-hi",
|
|
2386
2386
|
type: "button",
|
|
2387
|
-
className: `${
|
|
2387
|
+
className: `${o.choiceBtn} ${r.language_code === "hi" ? o.choiceBtnActive : ""}`,
|
|
2388
2388
|
onClick: () => {
|
|
2389
|
-
|
|
2389
|
+
A({ language_code: "hi" }), m?.trackLanguageOfReportSelected?.({
|
|
2390
2390
|
language: "hi"
|
|
2391
2391
|
});
|
|
2392
2392
|
},
|
|
2393
2393
|
role: "radio",
|
|
2394
|
-
"aria-checked":
|
|
2394
|
+
"aria-checked": r.language_code === "hi",
|
|
2395
2395
|
children: a("formReportLanguageHindi")
|
|
2396
2396
|
}
|
|
2397
2397
|
),
|
|
@@ -2400,14 +2400,14 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2400
2400
|
{
|
|
2401
2401
|
id: "kundli-report-lang-en",
|
|
2402
2402
|
type: "button",
|
|
2403
|
-
className: `${
|
|
2403
|
+
className: `${o.choiceBtn} ${r.language_code === "en" ? o.choiceBtnActive : ""}`,
|
|
2404
2404
|
onClick: () => {
|
|
2405
|
-
|
|
2405
|
+
A({ language_code: "en" }), m?.trackLanguageOfReportSelected?.({
|
|
2406
2406
|
language: "en"
|
|
2407
2407
|
});
|
|
2408
2408
|
},
|
|
2409
2409
|
role: "radio",
|
|
2410
|
-
"aria-checked":
|
|
2410
|
+
"aria-checked": r.language_code === "en",
|
|
2411
2411
|
children: a("formReportLanguageEnglish")
|
|
2412
2412
|
}
|
|
2413
2413
|
),
|
|
@@ -2416,14 +2416,14 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2416
2416
|
{
|
|
2417
2417
|
id: "kundli-report-lang-te",
|
|
2418
2418
|
type: "button",
|
|
2419
|
-
className: `${
|
|
2419
|
+
className: `${o.choiceBtn} ${r.language_code === "te" ? o.choiceBtnActive : ""}`,
|
|
2420
2420
|
onClick: () => {
|
|
2421
|
-
|
|
2421
|
+
A({ language_code: "te" }), m?.trackLanguageOfReportSelected?.({
|
|
2422
2422
|
language: "te"
|
|
2423
2423
|
});
|
|
2424
2424
|
},
|
|
2425
2425
|
role: "radio",
|
|
2426
|
-
"aria-checked":
|
|
2426
|
+
"aria-checked": r.language_code === "te",
|
|
2427
2427
|
children: a("formReportLanguageTelugu")
|
|
2428
2428
|
}
|
|
2429
2429
|
),
|
|
@@ -2432,14 +2432,14 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2432
2432
|
{
|
|
2433
2433
|
id: "kundli-report-lang-ta",
|
|
2434
2434
|
type: "button",
|
|
2435
|
-
className: `${
|
|
2435
|
+
className: `${o.choiceBtn} ${r.language_code === "ta" ? o.choiceBtnActive : ""}`,
|
|
2436
2436
|
onClick: () => {
|
|
2437
|
-
|
|
2437
|
+
A({ language_code: "ta" }), m?.trackLanguageOfReportSelected?.({
|
|
2438
2438
|
language: "ta"
|
|
2439
2439
|
});
|
|
2440
2440
|
},
|
|
2441
2441
|
role: "radio",
|
|
2442
|
-
"aria-checked":
|
|
2442
|
+
"aria-checked": r.language_code === "ta",
|
|
2443
2443
|
children: a("formReportLanguageTamil")
|
|
2444
2444
|
}
|
|
2445
2445
|
),
|
|
@@ -2448,14 +2448,14 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2448
2448
|
{
|
|
2449
2449
|
id: "kundli-report-lang-kn",
|
|
2450
2450
|
type: "button",
|
|
2451
|
-
className: `${
|
|
2451
|
+
className: `${o.choiceBtn} ${r.language_code === "kn" ? o.choiceBtnActive : ""}`,
|
|
2452
2452
|
onClick: () => {
|
|
2453
|
-
|
|
2453
|
+
A({ language_code: "kn" }), m?.trackLanguageOfReportSelected?.({
|
|
2454
2454
|
language: "kn"
|
|
2455
2455
|
});
|
|
2456
2456
|
},
|
|
2457
2457
|
role: "radio",
|
|
2458
|
-
"aria-checked":
|
|
2458
|
+
"aria-checked": r.language_code === "kn",
|
|
2459
2459
|
children: a("formReportLanguageKannada")
|
|
2460
2460
|
}
|
|
2461
2461
|
),
|
|
@@ -2464,14 +2464,14 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2464
2464
|
{
|
|
2465
2465
|
id: "kundli-report-lang-gu",
|
|
2466
2466
|
type: "button",
|
|
2467
|
-
className: `${
|
|
2467
|
+
className: `${o.choiceBtn} ${r.language_code === "gu" ? o.choiceBtnActive : ""}`,
|
|
2468
2468
|
onClick: () => {
|
|
2469
|
-
|
|
2469
|
+
A({ language_code: "gu" }), m?.trackLanguageOfReportSelected?.({
|
|
2470
2470
|
language: "gu"
|
|
2471
2471
|
});
|
|
2472
2472
|
},
|
|
2473
2473
|
role: "radio",
|
|
2474
|
-
"aria-checked":
|
|
2474
|
+
"aria-checked": r.language_code === "gu",
|
|
2475
2475
|
children: a("formReportLanguageGujarati")
|
|
2476
2476
|
}
|
|
2477
2477
|
),
|
|
@@ -2480,14 +2480,14 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2480
2480
|
{
|
|
2481
2481
|
id: "kundli-report-lang-mr",
|
|
2482
2482
|
type: "button",
|
|
2483
|
-
className: `${
|
|
2483
|
+
className: `${o.choiceBtn} ${r.language_code === "mr" ? o.choiceBtnActive : ""}`,
|
|
2484
2484
|
onClick: () => {
|
|
2485
|
-
|
|
2485
|
+
A({ language_code: "mr" }), m?.trackLanguageOfReportSelected?.({
|
|
2486
2486
|
language: "mr"
|
|
2487
2487
|
});
|
|
2488
2488
|
},
|
|
2489
2489
|
role: "radio",
|
|
2490
|
-
"aria-checked":
|
|
2490
|
+
"aria-checked": r.language_code === "mr",
|
|
2491
2491
|
children: a("formReportLanguageMarathi")
|
|
2492
2492
|
}
|
|
2493
2493
|
)
|
|
@@ -2498,19 +2498,19 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2498
2498
|
] }) })
|
|
2499
2499
|
}
|
|
2500
2500
|
);
|
|
2501
|
-
},
|
|
2502
|
-
ctaButton:
|
|
2503
|
-
ctaFilled:
|
|
2504
|
-
ctaFilledContent:
|
|
2505
|
-
chevronRight:
|
|
2506
|
-
},
|
|
2507
|
-
const s =
|
|
2501
|
+
}, An = "_ctaButton_rhimw_2", Nn = "_ctaFilled_rhimw_21", Rn = "_ctaFilledContent_rhimw_52", Ln = "_chevronRight_rhimw_61", He = {
|
|
2502
|
+
ctaButton: An,
|
|
2503
|
+
ctaFilled: Nn,
|
|
2504
|
+
ctaFilledContent: Rn,
|
|
2505
|
+
chevronRight: Ln
|
|
2506
|
+
}, Nt = "kundli-report-astrologer", In = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", En = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", Dn = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", Bn = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", On = ({ t: a }) => {
|
|
2507
|
+
const s = Ee()?.config.imageComponent ?? qe;
|
|
2508
2508
|
return /* @__PURE__ */ e.jsxs("div", { className: Ie.marqueeContent, children: [
|
|
2509
2509
|
/* @__PURE__ */ e.jsxs("span", { className: Ie.badge, children: [
|
|
2510
2510
|
/* @__PURE__ */ e.jsx(
|
|
2511
2511
|
s,
|
|
2512
2512
|
{
|
|
2513
|
-
src:
|
|
2513
|
+
src: In,
|
|
2514
2514
|
alt: "",
|
|
2515
2515
|
className: Ie.badgeIcon,
|
|
2516
2516
|
width: 16,
|
|
@@ -2524,7 +2524,7 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2524
2524
|
/* @__PURE__ */ e.jsx(
|
|
2525
2525
|
s,
|
|
2526
2526
|
{
|
|
2527
|
-
src:
|
|
2527
|
+
src: En,
|
|
2528
2528
|
alt: "",
|
|
2529
2529
|
className: Ie.badgeIcon,
|
|
2530
2530
|
width: 16,
|
|
@@ -2538,7 +2538,7 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2538
2538
|
/* @__PURE__ */ e.jsx(
|
|
2539
2539
|
s,
|
|
2540
2540
|
{
|
|
2541
|
-
src:
|
|
2541
|
+
src: Dn,
|
|
2542
2542
|
alt: "",
|
|
2543
2543
|
className: Ie.badgeIcon,
|
|
2544
2544
|
width: 16,
|
|
@@ -2549,11 +2549,11 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2549
2549
|
a("ctaSecurePayment")
|
|
2550
2550
|
] })
|
|
2551
2551
|
] });
|
|
2552
|
-
},
|
|
2552
|
+
}, Mn = (a) => /.+@.+\..+/.test(a), Fn = (a) => /^\d{10}$/.test(a), $n = (a, r, s) => {
|
|
2553
2553
|
if (!a.fullName.trim()) return "fullName";
|
|
2554
|
-
if (
|
|
2555
|
-
if (!
|
|
2556
|
-
} else if (!
|
|
2554
|
+
if (r) {
|
|
2555
|
+
if (!Mn(a.email.trim())) return "email";
|
|
2556
|
+
} else if (!Fn((a.phone ?? "").trim())) return "phone";
|
|
2557
2557
|
if (!a.dateOfBirth) return "dateOfBirth";
|
|
2558
2558
|
if (!a.birthPlace.trim()) return "birthPlace";
|
|
2559
2559
|
if (s) {
|
|
@@ -2561,55 +2561,55 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2561
2561
|
if (!a.language_code) return "language_code";
|
|
2562
2562
|
}
|
|
2563
2563
|
return !a.birthTimeUnknown && !a.birthTime ? "birthTime" : null;
|
|
2564
|
-
},
|
|
2564
|
+
}, Gn = ({
|
|
2565
2565
|
t: a,
|
|
2566
|
-
values:
|
|
2566
|
+
values: r,
|
|
2567
2567
|
phoneIsdCode: s,
|
|
2568
|
-
requireV1ExtraFields:
|
|
2569
|
-
onValidationFailed:
|
|
2568
|
+
requireV1ExtraFields: p = !1,
|
|
2569
|
+
onValidationFailed: d,
|
|
2570
2570
|
onProceed: f,
|
|
2571
|
-
onProceedGuidance:
|
|
2572
|
-
href:
|
|
2573
|
-
analytics:
|
|
2571
|
+
onProceedGuidance: b,
|
|
2572
|
+
href: j,
|
|
2573
|
+
analytics: y,
|
|
2574
2574
|
className: U = "",
|
|
2575
|
-
discountedPriceLabel:
|
|
2575
|
+
discountedPriceLabel: M,
|
|
2576
2576
|
discountPillLabel: N,
|
|
2577
2577
|
showPlanSheet: m,
|
|
2578
|
-
confirmPlan:
|
|
2578
|
+
confirmPlan: $,
|
|
2579
2579
|
planSheetOpen: v,
|
|
2580
|
-
selectedPlan:
|
|
2580
|
+
selectedPlan: Q
|
|
2581
2581
|
}) => {
|
|
2582
|
-
const
|
|
2583
|
-
() =>
|
|
2584
|
-
[
|
|
2585
|
-
),
|
|
2586
|
-
if (
|
|
2587
|
-
|
|
2582
|
+
const x = Ee(), k = x?.config.isGlobal ?? !0, T = x?.config?.variant, re = Re(
|
|
2583
|
+
() => $n(r, k, p),
|
|
2584
|
+
[r, k, p]
|
|
2585
|
+
), C = re === null, K = T === "v1" && x?.config?.showSheet, P = k ? M ?? a("formDiscountedPrice") : K ? "" : "₹499", W = x?.config.imageComponent ?? qe, A = (X) => {
|
|
2586
|
+
if (X.preventDefault(), T === "v1" && !C && y?.trackKundliDetailedClicked?.(), !C) {
|
|
2587
|
+
re && d?.(re);
|
|
2588
2588
|
return;
|
|
2589
2589
|
}
|
|
2590
|
-
const
|
|
2591
|
-
...
|
|
2592
|
-
phone:
|
|
2590
|
+
const te = !!b && T === "v1" && Q?.id === Nt, L = (r.phone ?? "").trim(), I = {
|
|
2591
|
+
...r,
|
|
2592
|
+
phone: L && `${s}-${L}`
|
|
2593
2593
|
};
|
|
2594
|
-
if (
|
|
2595
|
-
v ?
|
|
2594
|
+
if (K) {
|
|
2595
|
+
v ? $?.() : m?.(I);
|
|
2596
2596
|
return;
|
|
2597
2597
|
}
|
|
2598
|
-
|
|
2599
|
-
},
|
|
2600
|
-
|
|
2598
|
+
y?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), te ? b(I) : f?.(I);
|
|
2599
|
+
}, F = /* @__PURE__ */ e.jsx(
|
|
2600
|
+
Jt,
|
|
2601
2601
|
{
|
|
2602
|
-
href:
|
|
2603
|
-
disabled:
|
|
2604
|
-
onClick:
|
|
2602
|
+
href: j,
|
|
2603
|
+
disabled: T === "v1" ? !1 : !C,
|
|
2604
|
+
onClick: A,
|
|
2605
2605
|
"aria-label": a("formPriceAria"),
|
|
2606
|
-
className:
|
|
2607
|
-
children:
|
|
2608
|
-
|
|
2606
|
+
className: T === "v1" && C ? He.ctaFilled : T === "v1" ? He.ctaButton : void 0,
|
|
2607
|
+
children: T === "v1" ? C ? /* @__PURE__ */ e.jsxs("span", { className: He.ctaFilledContent, children: [
|
|
2608
|
+
K ? a("selectPackage") : v && Q ? `${a("proceedWithPlan")}${Q.price}` : `${a("formProceed")} ${P}`,
|
|
2609
2609
|
/* @__PURE__ */ e.jsx(
|
|
2610
|
-
|
|
2610
|
+
W,
|
|
2611
2611
|
{
|
|
2612
|
-
src:
|
|
2612
|
+
src: Bn,
|
|
2613
2613
|
alt: "",
|
|
2614
2614
|
className: He.chevronRight,
|
|
2615
2615
|
width: 20,
|
|
@@ -2620,37 +2620,37 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2620
2620
|
] }) : a("formCtaDefault") : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2621
2621
|
a("formProceed"),
|
|
2622
2622
|
" ",
|
|
2623
|
-
|
|
2623
|
+
P
|
|
2624
2624
|
] })
|
|
2625
2625
|
}
|
|
2626
2626
|
);
|
|
2627
2627
|
return /* @__PURE__ */ e.jsx(
|
|
2628
|
-
|
|
2628
|
+
Qt,
|
|
2629
2629
|
{
|
|
2630
2630
|
className: `${He.footerContainer} ${U}`,
|
|
2631
|
-
marquee: /* @__PURE__ */ e.jsx(
|
|
2632
|
-
children:
|
|
2631
|
+
marquee: /* @__PURE__ */ e.jsx(Xt, { children: /* @__PURE__ */ e.jsx(On, { t: a }) }),
|
|
2632
|
+
children: F
|
|
2633
2633
|
}
|
|
2634
2634
|
);
|
|
2635
|
-
},
|
|
2635
|
+
}, Un = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", Kn = ({
|
|
2636
2636
|
t: a,
|
|
2637
|
-
languageSelector:
|
|
2638
|
-
logoUrl: s =
|
|
2639
|
-
className:
|
|
2637
|
+
languageSelector: r,
|
|
2638
|
+
logoUrl: s = Un,
|
|
2639
|
+
className: p = ""
|
|
2640
2640
|
}) => {
|
|
2641
|
-
const
|
|
2641
|
+
const d = Ee(), f = d?.config.isGlobal ?? !0, b = r != null && !f;
|
|
2642
2642
|
return /* @__PURE__ */ e.jsx(
|
|
2643
|
-
|
|
2643
|
+
Zt,
|
|
2644
2644
|
{
|
|
2645
2645
|
t: a,
|
|
2646
2646
|
logoUrl: s,
|
|
2647
|
-
imageComponent:
|
|
2648
|
-
languageSelector:
|
|
2649
|
-
showLanguageSelector:
|
|
2650
|
-
className:
|
|
2647
|
+
imageComponent: d?.config.imageComponent,
|
|
2648
|
+
languageSelector: r,
|
|
2649
|
+
showLanguageSelector: b,
|
|
2650
|
+
className: p
|
|
2651
2651
|
}
|
|
2652
2652
|
);
|
|
2653
|
-
},
|
|
2653
|
+
}, Rt = () => /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
2654
2654
|
"path",
|
|
2655
2655
|
{
|
|
2656
2656
|
d: "M3.5 8.5l2.5 2.5 6-6",
|
|
@@ -2659,7 +2659,7 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2659
2659
|
strokeLinecap: "round",
|
|
2660
2660
|
strokeLinejoin: "round"
|
|
2661
2661
|
}
|
|
2662
|
-
) }),
|
|
2662
|
+
) }), Wn = () => /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
2663
2663
|
"path",
|
|
2664
2664
|
{
|
|
2665
2665
|
d: "M4.5 4.5l7 7M11.5 4.5l-7 7",
|
|
@@ -2667,10 +2667,10 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2667
2667
|
strokeWidth: "1.8",
|
|
2668
2668
|
strokeLinecap: "round"
|
|
2669
2669
|
}
|
|
2670
|
-
) }),
|
|
2670
|
+
) }), st = () => /* @__PURE__ */ e.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx("path", { d: "M15 18l-6-6 6-6" }) }), Hn = () => /* @__PURE__ */ e.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx("path", { d: "M6 9l6 6 6-6" }) }), Yn = () => /* @__PURE__ */ e.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: [
|
|
2671
2671
|
/* @__PURE__ */ e.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
2672
2672
|
/* @__PURE__ */ e.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
2673
|
-
] }),
|
|
2673
|
+
] }), qn = () => /* @__PURE__ */ e.jsx(
|
|
2674
2674
|
"img",
|
|
2675
2675
|
{
|
|
2676
2676
|
src: "https://srm-cdn.a4b.io/yoda/1785316603029.svg",
|
|
@@ -2679,7 +2679,7 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2679
2679
|
alt: "",
|
|
2680
2680
|
"aria-hidden": !0
|
|
2681
2681
|
}
|
|
2682
|
-
),
|
|
2682
|
+
), Vn = () => /* @__PURE__ */ e.jsx(
|
|
2683
2683
|
"img",
|
|
2684
2684
|
{
|
|
2685
2685
|
src: "https://srm-cdn.a4b.io/yoda/1785316621747.svg",
|
|
@@ -2688,7 +2688,7 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2688
2688
|
alt: "",
|
|
2689
2689
|
"aria-hidden": !0
|
|
2690
2690
|
}
|
|
2691
|
-
),
|
|
2691
|
+
), zn = () => /* @__PURE__ */ e.jsx(
|
|
2692
2692
|
"img",
|
|
2693
2693
|
{
|
|
2694
2694
|
src: "https://srm-cdn.a4b.io/yoda/1785316635953.svg",
|
|
@@ -2697,164 +2697,164 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2697
2697
|
alt: "",
|
|
2698
2698
|
"aria-hidden": !0
|
|
2699
2699
|
}
|
|
2700
|
-
),
|
|
2700
|
+
), Jn = () => /* @__PURE__ */ e.jsxs("svg", { width: "40", height: "40", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: [
|
|
2701
2701
|
/* @__PURE__ */ e.jsx("rect", { x: "3", y: "4.5", width: "18", height: "16", rx: "3", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
2702
2702
|
/* @__PURE__ */ e.jsx("path", { d: "M3 9.5h18", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
2703
2703
|
/* @__PURE__ */ e.jsx("path", { d: "M8 2.5v4M16 2.5v4", stroke: "#D1D5DB", strokeWidth: "1.6", strokeLinecap: "round" }),
|
|
2704
2704
|
/* @__PURE__ */ e.jsx("path", { d: "M7.5 20.5L17 6", stroke: "#9CA3AF", strokeWidth: "1.6", strokeLinecap: "round" })
|
|
2705
|
-
] }),
|
|
2706
|
-
overlay:
|
|
2707
|
-
sheet:
|
|
2708
|
-
sheetFullScreen:
|
|
2709
|
-
headerFull:
|
|
2710
|
-
titleFull:
|
|
2711
|
-
header:
|
|
2712
|
-
backBtn:
|
|
2713
|
-
title:
|
|
2714
|
-
plansContainer:
|
|
2715
|
-
planCard:
|
|
2716
|
-
withBadgeSpacing:
|
|
2717
|
-
planCardSelected:
|
|
2718
|
-
planCardPopular:
|
|
2719
|
-
popularBadge:
|
|
2720
|
-
planCardInner:
|
|
2721
|
-
planTitleRow:
|
|
2722
|
-
planTitle:
|
|
2723
|
-
radioCircle:
|
|
2724
|
-
radioChecked:
|
|
2725
|
-
radioInner:
|
|
2726
|
-
priceRow:
|
|
2727
|
-
price:
|
|
2728
|
-
originalPrice:
|
|
2729
|
-
savingsBadge:
|
|
2730
|
-
featureList:
|
|
2731
|
-
featureItem:
|
|
2732
|
-
featureIcon:
|
|
2733
|
-
featureText:
|
|
2734
|
-
astrologerHeading:
|
|
2735
|
-
astrologerList:
|
|
2736
|
-
astrologerCard:
|
|
2705
|
+
] }), Qn = "_overlay_1u7x5_2", Xn = "_sheet_1u7x5_12", Zn = "_sheetFullScreen_1u7x5_36", er = "_headerFull_1u7x5_50", tr = "_titleFull_1u7x5_63", ar = "_header_1u7x5_50", nr = "_backBtn_1u7x5_84", rr = "_title_1u7x5_63", or = "_plansContainer_1u7x5_114", ir = "_planCard_1u7x5_123", lr = "_withBadgeSpacing_1u7x5_137", sr = "_planCardSelected_1u7x5_141", cr = "_planCardPopular_1u7x5_146", dr = "_popularBadge_1u7x5_155", ur = "_planCardInner_1u7x5_173", pr = "_planTitleRow_1u7x5_184", mr = "_planTitle_1u7x5_184", hr = "_radioCircle_1u7x5_199", fr = "_radioChecked_1u7x5_212", gr = "_radioInner_1u7x5_217", _r = "_priceRow_1u7x5_225", br = "_price_1u7x5_225", yr = "_originalPrice_1u7x5_238", kr = "_savingsBadge_1u7x5_245", vr = "_featureList_1u7x5_255", xr = "_featureItem_1u7x5_264", wr = "_featureIcon_1u7x5_270", jr = "_featureText_1u7x5_276", Tr = "_astrologerHeading_1u7x5_287", Sr = "_astrologerList_1u7x5_294", Cr = "_astrologerCard_1u7x5_310", Pr = "_astrologerAvatar_1u7x5_326", Ar = "_astrologerAvatarPlaceholder_1u7x5_343", Nr = "_astrologerTop_1u7x5_349", Rr = "_astrologerBasicInfo_1u7x5_355", Lr = "_astrologerName_1u7x5_362", Ir = "_astrologerExp_1u7x5_371", Er = "_astrologerDivider_1u7x5_377", Dr = "_planDivider_1u7x5_383", Br = "_astrologerCertList_1u7x5_390", Or = "_astrologerCertItem_1u7x5_396", Mr = "_bullet_1u7x5_404", Fr = "_footer_1u7x5_409", $r = "_proceedBtn_1u7x5_419", S = {
|
|
2706
|
+
overlay: Qn,
|
|
2707
|
+
sheet: Xn,
|
|
2708
|
+
sheetFullScreen: Zn,
|
|
2709
|
+
headerFull: er,
|
|
2710
|
+
titleFull: tr,
|
|
2711
|
+
header: ar,
|
|
2712
|
+
backBtn: nr,
|
|
2713
|
+
title: rr,
|
|
2714
|
+
plansContainer: or,
|
|
2715
|
+
planCard: ir,
|
|
2716
|
+
withBadgeSpacing: lr,
|
|
2717
|
+
planCardSelected: sr,
|
|
2718
|
+
planCardPopular: cr,
|
|
2719
|
+
popularBadge: dr,
|
|
2720
|
+
planCardInner: ur,
|
|
2721
|
+
planTitleRow: pr,
|
|
2722
|
+
planTitle: mr,
|
|
2723
|
+
radioCircle: hr,
|
|
2724
|
+
radioChecked: fr,
|
|
2725
|
+
radioInner: gr,
|
|
2726
|
+
priceRow: _r,
|
|
2727
|
+
price: br,
|
|
2728
|
+
originalPrice: yr,
|
|
2729
|
+
savingsBadge: kr,
|
|
2730
|
+
featureList: vr,
|
|
2731
|
+
featureItem: xr,
|
|
2732
|
+
featureIcon: wr,
|
|
2733
|
+
featureText: jr,
|
|
2734
|
+
astrologerHeading: Tr,
|
|
2735
|
+
astrologerList: Sr,
|
|
2736
|
+
astrologerCard: Cr,
|
|
2737
2737
|
astrologerAvatar: Pr,
|
|
2738
|
-
astrologerAvatarPlaceholder:
|
|
2739
|
-
astrologerTop:
|
|
2740
|
-
astrologerBasicInfo:
|
|
2741
|
-
astrologerName:
|
|
2742
|
-
astrologerExp:
|
|
2743
|
-
astrologerDivider:
|
|
2744
|
-
planDivider:
|
|
2745
|
-
astrologerCertList:
|
|
2746
|
-
astrologerCertItem:
|
|
2747
|
-
bullet:
|
|
2748
|
-
footer:
|
|
2749
|
-
proceedBtn:
|
|
2750
|
-
},
|
|
2738
|
+
astrologerAvatarPlaceholder: Ar,
|
|
2739
|
+
astrologerTop: Nr,
|
|
2740
|
+
astrologerBasicInfo: Rr,
|
|
2741
|
+
astrologerName: Lr,
|
|
2742
|
+
astrologerExp: Ir,
|
|
2743
|
+
astrologerDivider: Er,
|
|
2744
|
+
planDivider: Dr,
|
|
2745
|
+
astrologerCertList: Br,
|
|
2746
|
+
astrologerCertItem: Or,
|
|
2747
|
+
bullet: Mr,
|
|
2748
|
+
footer: Fr,
|
|
2749
|
+
proceedBtn: $r
|
|
2750
|
+
}, Gr = ({ title: a, onBack: r }) => /* @__PURE__ */ e.jsxs("div", { className: S.header, children: [
|
|
2751
2751
|
/* @__PURE__ */ e.jsx(
|
|
2752
2752
|
"button",
|
|
2753
2753
|
{
|
|
2754
|
-
className:
|
|
2755
|
-
onClick:
|
|
2754
|
+
className: S.backBtn,
|
|
2755
|
+
onClick: r,
|
|
2756
2756
|
"aria-label": "Go back",
|
|
2757
2757
|
type: "button",
|
|
2758
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2758
|
+
children: /* @__PURE__ */ e.jsx(st, {})
|
|
2759
2759
|
}
|
|
2760
2760
|
),
|
|
2761
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
2762
|
-
] }),
|
|
2763
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2761
|
+
/* @__PURE__ */ e.jsx("h2", { className: S.title, children: a })
|
|
2762
|
+
] }), Ur = ({ features: a, t: r }) => /* @__PURE__ */ e.jsx("ul", { className: S.featureList, "aria-label": "Plan features", children: a.map((s, p) => /* @__PURE__ */ e.jsxs("li", { className: S.featureItem, children: [
|
|
2763
|
+
/* @__PURE__ */ e.jsx("span", { className: S.featureIcon, children: s.included ? /* @__PURE__ */ e.jsx(Rt, {}) : /* @__PURE__ */ e.jsx(Wn, {}) }),
|
|
2764
2764
|
/* @__PURE__ */ e.jsx(
|
|
2765
2765
|
"span",
|
|
2766
2766
|
{
|
|
2767
|
-
className: `${
|
|
2768
|
-
children:
|
|
2767
|
+
className: `${S.featureText} `,
|
|
2768
|
+
children: r?.(s.text) ?? s.text
|
|
2769
2769
|
}
|
|
2770
2770
|
)
|
|
2771
|
-
] },
|
|
2772
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2773
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2774
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2775
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
2776
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
2771
|
+
] }, p)) }), Kr = ({ astrologer: a, t: r }) => /* @__PURE__ */ e.jsxs("div", { className: S.astrologerCard, children: [
|
|
2772
|
+
/* @__PURE__ */ e.jsxs("div", { className: S.astrologerTop, children: [
|
|
2773
|
+
/* @__PURE__ */ e.jsx("div", { className: S.astrologerAvatar, "aria-hidden": !0, children: a.imageUrl ? /* @__PURE__ */ e.jsx("img", { src: a.imageUrl, alt: r?.(a.name) ?? a.name, width: 40, height: 40 }) : /* @__PURE__ */ e.jsx("span", { className: S.astrologerAvatarPlaceholder, children: a.name.charAt(0) }) }),
|
|
2774
|
+
/* @__PURE__ */ e.jsxs("div", { className: S.astrologerBasicInfo, children: [
|
|
2775
|
+
/* @__PURE__ */ e.jsx("p", { className: S.astrologerName, children: r?.(a.name) ?? a.name }),
|
|
2776
|
+
/* @__PURE__ */ e.jsx("p", { className: S.astrologerExp, children: r?.(a.experience) ?? a.experience })
|
|
2777
2777
|
] })
|
|
2778
2778
|
] }),
|
|
2779
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2780
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2781
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2779
|
+
/* @__PURE__ */ e.jsx("div", { className: S.astrologerDivider }),
|
|
2780
|
+
/* @__PURE__ */ e.jsx("div", { className: S.astrologerCertList, children: a.certifications.map((s, p) => /* @__PURE__ */ e.jsxs("p", { className: S.astrologerCertItem, children: [
|
|
2781
|
+
/* @__PURE__ */ e.jsx("span", { className: S.bullet, children: "•" }),
|
|
2782
2782
|
" ",
|
|
2783
|
-
|
|
2784
|
-
] },
|
|
2785
|
-
] }),
|
|
2786
|
-
/* @__PURE__ */ e.jsx(
|
|
2783
|
+
r?.(s) ?? s
|
|
2784
|
+
] }, p)) })
|
|
2785
|
+
] }), Wr = ({ label: a }) => /* @__PURE__ */ e.jsxs("div", { className: S.popularBadge, "aria-label": a, children: [
|
|
2786
|
+
/* @__PURE__ */ e.jsx(Yn, {}),
|
|
2787
2787
|
/* @__PURE__ */ e.jsx("span", { children: a })
|
|
2788
|
-
] }),
|
|
2789
|
-
const
|
|
2790
|
-
(
|
|
2788
|
+
] }), Hr = ({ plan: a, isSelected: r, onSelect: s, t: p }) => {
|
|
2789
|
+
const d = () => s(a.id), f = (b) => {
|
|
2790
|
+
(b.key === " " || b.key === "Enter") && (b.preventDefault(), s(a.id));
|
|
2791
2791
|
};
|
|
2792
2792
|
return /* @__PURE__ */ e.jsxs(
|
|
2793
2793
|
"div",
|
|
2794
2794
|
{
|
|
2795
2795
|
className: [
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2796
|
+
S.planCard,
|
|
2797
|
+
r ? S.planCardSelected : "",
|
|
2798
|
+
r && S.planCardPopular
|
|
2799
2799
|
].filter(Boolean).join(" "),
|
|
2800
|
-
onClick:
|
|
2800
|
+
onClick: d,
|
|
2801
2801
|
role: "radio",
|
|
2802
|
-
"aria-checked":
|
|
2802
|
+
"aria-checked": r,
|
|
2803
2803
|
tabIndex: 0,
|
|
2804
2804
|
onKeyDown: f,
|
|
2805
2805
|
"data-plan-id": a.id,
|
|
2806
2806
|
children: [
|
|
2807
|
-
a.badge && /* @__PURE__ */ e.jsx(
|
|
2808
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2809
|
-
/* @__PURE__ */ e.jsxs("div", { className: `${
|
|
2810
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2807
|
+
a.badge && /* @__PURE__ */ e.jsx(Wr, { label: p?.(a.badge) ?? a.badge }),
|
|
2808
|
+
/* @__PURE__ */ e.jsxs("div", { className: S.planCardInner, children: [
|
|
2809
|
+
/* @__PURE__ */ e.jsxs("div", { className: `${S.planTitleRow} ${a.badge ? S.withBadgeSpacing : ""}`, children: [
|
|
2810
|
+
/* @__PURE__ */ e.jsx("span", { className: S.planTitle, children: p?.(a.title) ?? a.title }),
|
|
2811
2811
|
/* @__PURE__ */ e.jsx(
|
|
2812
2812
|
"span",
|
|
2813
2813
|
{
|
|
2814
|
-
className: `${
|
|
2814
|
+
className: `${S.radioCircle} ${r ? S.radioChecked : ""}`,
|
|
2815
2815
|
"aria-hidden": !0,
|
|
2816
|
-
children:
|
|
2816
|
+
children: r && /* @__PURE__ */ e.jsx("span", { className: S.radioInner })
|
|
2817
2817
|
}
|
|
2818
2818
|
)
|
|
2819
2819
|
] }),
|
|
2820
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2821
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2822
|
-
a.originalPrice && /* @__PURE__ */ e.jsx("span", { className:
|
|
2823
|
-
a.savingsLabel && /* @__PURE__ */ e.jsx("span", { className:
|
|
2820
|
+
/* @__PURE__ */ e.jsxs("div", { className: S.priceRow, children: [
|
|
2821
|
+
/* @__PURE__ */ e.jsx("span", { className: S.price, children: a.price }),
|
|
2822
|
+
a.originalPrice && /* @__PURE__ */ e.jsx("span", { className: S.originalPrice, children: a.originalPrice }),
|
|
2823
|
+
a.savingsLabel && /* @__PURE__ */ e.jsx("span", { className: S.savingsBadge, children: p?.(a.savingsLabel, { percent: 25 }) ?? a.savingsLabel })
|
|
2824
2824
|
] }),
|
|
2825
|
-
/* @__PURE__ */ e.jsx(
|
|
2826
|
-
a.astrologers && /* @__PURE__ */ e.jsx("div", { className:
|
|
2825
|
+
/* @__PURE__ */ e.jsx(Ur, { features: a.features, t: p }),
|
|
2826
|
+
a.astrologers && /* @__PURE__ */ e.jsx("div", { className: S.planDivider }),
|
|
2827
2827
|
a.astrologers && a.astrologers.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2828
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
2829
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2828
|
+
/* @__PURE__ */ e.jsx("p", { className: S.astrologerHeading, children: p?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
|
|
2829
|
+
/* @__PURE__ */ e.jsx("div", { className: S.astrologerList, role: "list", children: a.astrologers.map((b, j) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(Kr, { astrologer: b, t: p }) }, j)) })
|
|
2830
2830
|
] })
|
|
2831
2831
|
] })
|
|
2832
2832
|
]
|
|
2833
2833
|
}
|
|
2834
2834
|
);
|
|
2835
|
-
},
|
|
2836
|
-
const
|
|
2837
|
-
if (!
|
|
2838
|
-
const s = Number(
|
|
2839
|
-
return `${s % 12 || 12}:${
|
|
2840
|
-
},
|
|
2841
|
-
const s = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
2842
|
-
if (Number.isNaN(
|
|
2835
|
+
}, tt = (a) => {
|
|
2836
|
+
const r = a.match(/T(\d{2}):(\d{2})/);
|
|
2837
|
+
if (!r) return a;
|
|
2838
|
+
const s = Number(r[1]), p = r[2], d = s >= 12 ? "PM" : "AM";
|
|
2839
|
+
return `${s % 12 || 12}:${p} ${d}`;
|
|
2840
|
+
}, Yr = (a, r = /* @__PURE__ */ new Date()) => {
|
|
2841
|
+
const s = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], p = /* @__PURE__ */ new Date(`${a}T00:00:00`);
|
|
2842
|
+
if (Number.isNaN(p.getTime()))
|
|
2843
2843
|
return { id: a, dayLabel: a, dayNum: "" };
|
|
2844
|
-
const
|
|
2845
|
-
(p
|
|
2846
|
-
),
|
|
2847
|
-
return { id: a, dayLabel:
|
|
2848
|
-
},
|
|
2844
|
+
const d = (j) => new Date(j.getFullYear(), j.getMonth(), j.getDate()).getTime(), f = Math.round(
|
|
2845
|
+
(d(p) - d(r)) / (1e3 * 60 * 60 * 24)
|
|
2846
|
+
), b = f === 0 ? "Today" : f === 1 ? "Tomorrow" : s[p.getDay()];
|
|
2847
|
+
return { id: a, dayLabel: b, dayNum: String(p.getDate()) };
|
|
2848
|
+
}, qr = [
|
|
2849
2849
|
"morning",
|
|
2850
2850
|
"afternoon",
|
|
2851
2851
|
"evening"
|
|
2852
|
-
],
|
|
2852
|
+
], Vr = [
|
|
2853
2853
|
{ id: "career_work", labelKey: "planTopicCareerWork", label: "Career & work" },
|
|
2854
2854
|
{ id: "health_wellbeing", labelKey: "planTopicHealthWellbeing", label: "Health & wellbeing" },
|
|
2855
2855
|
{ id: "love_marriage", labelKey: "planTopicLoveMarriage", label: "Love & marriage" },
|
|
2856
2856
|
{ id: "money_finance", labelKey: "planTopicMoneyFinance", label: "Money & finance" }
|
|
2857
|
-
],
|
|
2857
|
+
], Ye = [
|
|
2858
2858
|
{ code: "en", labelKey: "formReportLanguageEnglish", label: "English" },
|
|
2859
2859
|
{ code: "hi", labelKey: "formReportLanguageHindi", label: "Hindi" },
|
|
2860
2860
|
{ code: "te", labelKey: "formReportLanguageTelugu", label: "Telugu" },
|
|
@@ -2862,275 +2862,312 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2862
2862
|
{ code: "gu", labelKey: "formReportLanguageGujarati", label: "Gujarati" },
|
|
2863
2863
|
{ code: "mr", labelKey: "formReportLanguageMarathi", label: "Marathi" },
|
|
2864
2864
|
{ code: "ta", labelKey: "formReportLanguageTamil", label: "Tamil" }
|
|
2865
|
-
],
|
|
2866
|
-
|
|
2867
|
-
|
|
2865
|
+
], zr = {
|
|
2866
|
+
en: ["hi", "en"],
|
|
2867
|
+
hi: ["hi", "en"],
|
|
2868
|
+
te: ["te", "en"],
|
|
2869
|
+
kn: ["kn", "en"],
|
|
2870
|
+
gu: ["gu", "en"],
|
|
2871
|
+
mr: ["mr", "hi"],
|
|
2872
|
+
ta: ["ta", "en"]
|
|
2873
|
+
}, Jr = {
|
|
2874
|
+
en: ["en", "hi"],
|
|
2875
|
+
hi: ["hi", "en"],
|
|
2876
|
+
te: ["te", "en"],
|
|
2877
|
+
kn: ["kn", "en"],
|
|
2878
|
+
gu: ["gu", "en"],
|
|
2879
|
+
mr: ["mr", "en"],
|
|
2880
|
+
ta: ["ta", "en"]
|
|
2881
|
+
}, Lt = (a) => !!a?.days?.some((r) => r.has_availability && r.slots.length > 0), Qr = (a, r, s) => {
|
|
2882
|
+
const p = s ? Jr : zr, [d, f] = p[r || "en"] ?? p.en, b = Ye.map((y) => y.code).filter(
|
|
2883
|
+
(y) => y !== d && y !== f
|
|
2868
2884
|
);
|
|
2869
|
-
return [
|
|
2870
|
-
},
|
|
2871
|
-
overlay:
|
|
2872
|
-
sheet:
|
|
2873
|
-
content:
|
|
2874
|
-
header:
|
|
2875
|
-
backBtn:
|
|
2876
|
-
title:
|
|
2877
|
-
languageRow:
|
|
2878
|
-
languageLabel:
|
|
2879
|
-
languageDropdown:
|
|
2880
|
-
languageDropdownBtn:
|
|
2881
|
-
languageMenu:
|
|
2882
|
-
languageMenuItem:
|
|
2883
|
-
languageMenuItemSelected:
|
|
2884
|
-
languageDivider:
|
|
2885
|
-
reportReadyBanner:
|
|
2886
|
-
reportReadyDuration:
|
|
2887
|
-
trustRow:
|
|
2888
|
-
trustAvatars:
|
|
2889
|
-
trustText:
|
|
2890
|
-
sectionHeading:
|
|
2891
|
-
dateTabs:
|
|
2892
|
-
dateTabIndicator:
|
|
2893
|
-
dateTab:
|
|
2894
|
-
dateTabDivider:
|
|
2895
|
-
dateTabSelected:
|
|
2896
|
-
dateTabLabel:
|
|
2897
|
-
dateTabNum:
|
|
2898
|
-
periodTabs:
|
|
2899
|
-
periodTabIndicator:
|
|
2900
|
-
periodTab:
|
|
2901
|
-
periodTabSelected:
|
|
2902
|
-
timeGrid:
|
|
2903
|
-
emptyState:
|
|
2904
|
-
timeSlot:
|
|
2885
|
+
return [d, f, ...b].find((y) => Lt(a[y])) ?? d;
|
|
2886
|
+
}, Xr = "_overlay_12sjj_3", Zr = "_sheet_12sjj_13", eo = "_content_12sjj_35", to = "_header_12sjj_42", ao = "_backBtn_12sjj_55", no = "_title_12sjj_73", ro = "_languageRow_12sjj_89", oo = "_languageLabel_12sjj_97", io = "_languageDropdown_12sjj_103", lo = "_languageDropdownBtn_12sjj_107", so = "_languageMenu_12sjj_122", co = "_languageMenuItem_12sjj_139", uo = "_languageMenuItemSelected_12sjj_153", po = "_languageDivider_12sjj_159", mo = "_reportReadyBanner_12sjj_166", ho = "_reportReadyDuration_12sjj_175", fo = "_trustRow_12sjj_181", go = "_trustAvatars_12sjj_192", _o = "_trustText_12sjj_205", bo = "_sectionHeading_12sjj_316", yo = "_dateTabs_12sjj_324", ko = "_dateTabIndicator_12sjj_336", vo = "_dateTab_12sjj_324", xo = "_dateTabDivider_12sjj_370", wo = "_dateTabSelected_12sjj_380", jo = "_dateTabLabel_12sjj_385", To = "_dateTabNum_12sjj_392", So = "_periodTabs_12sjj_406", Co = "_periodTabIndicator_12sjj_334", Po = "_periodTab_12sjj_334", Ao = "_periodTabSelected_12sjj_453", No = "_timeGrid_12sjj_458", Ro = "_emptyState_12sjj_486", Lo = "_timeSlot_12sjj_490", Io = "_timeSlotSelected_12sjj_506", Eo = "_topicGrid_12sjj_514", Do = "_topicChip_12sjj_520", Bo = "_topicChipSelected_12sjj_536", Oo = "_stateMessage_12sjj_543", Mo = "_emptyStateIcon_12sjj_563", Fo = "_emptyStateTitle_12sjj_574", $o = "_emptyStateSubtitle_12sjj_581", Go = "_loadingWrap_12sjj_590", Uo = "_skeletonShimmer_12sjj_595", Ko = "_skeletonDateTabs_12sjj_609", Wo = "_skeletonDateTab_12sjj_609", Ho = "_skeletonPeriodTabs_12sjj_623", Yo = "_skeletonPeriodTab_12sjj_623", qo = "_skeletonTimeGrid_12sjj_638", Vo = "_skeletonTimeSlot_12sjj_644", zo = "_retryBtn_12sjj_649", Jo = "_footer_12sjj_663", Qo = "_proceedBtn_12sjj_670", Xo = "_proceedBtnDisabled_12sjj_688", g = {
|
|
2887
|
+
overlay: Xr,
|
|
2888
|
+
sheet: Zr,
|
|
2889
|
+
content: eo,
|
|
2890
|
+
header: to,
|
|
2891
|
+
backBtn: ao,
|
|
2892
|
+
title: no,
|
|
2893
|
+
languageRow: ro,
|
|
2894
|
+
languageLabel: oo,
|
|
2895
|
+
languageDropdown: io,
|
|
2896
|
+
languageDropdownBtn: lo,
|
|
2897
|
+
languageMenu: so,
|
|
2898
|
+
languageMenuItem: co,
|
|
2899
|
+
languageMenuItemSelected: uo,
|
|
2900
|
+
languageDivider: po,
|
|
2901
|
+
reportReadyBanner: mo,
|
|
2902
|
+
reportReadyDuration: ho,
|
|
2903
|
+
trustRow: fo,
|
|
2904
|
+
trustAvatars: go,
|
|
2905
|
+
trustText: _o,
|
|
2906
|
+
sectionHeading: bo,
|
|
2907
|
+
dateTabs: yo,
|
|
2908
|
+
dateTabIndicator: ko,
|
|
2909
|
+
dateTab: vo,
|
|
2910
|
+
dateTabDivider: xo,
|
|
2911
|
+
dateTabSelected: wo,
|
|
2912
|
+
dateTabLabel: jo,
|
|
2913
|
+
dateTabNum: To,
|
|
2914
|
+
periodTabs: So,
|
|
2915
|
+
periodTabIndicator: Co,
|
|
2916
|
+
periodTab: Po,
|
|
2917
|
+
periodTabSelected: Ao,
|
|
2918
|
+
timeGrid: No,
|
|
2919
|
+
emptyState: Ro,
|
|
2920
|
+
timeSlot: Lo,
|
|
2905
2921
|
timeSlotSelected: Io,
|
|
2906
|
-
topicGrid:
|
|
2907
|
-
topicChip:
|
|
2908
|
-
topicChipSelected:
|
|
2909
|
-
stateMessage:
|
|
2910
|
-
emptyStateIcon:
|
|
2911
|
-
emptyStateTitle:
|
|
2912
|
-
emptyStateSubtitle:
|
|
2913
|
-
loadingWrap:
|
|
2914
|
-
skeletonShimmer:
|
|
2915
|
-
skeletonDateTabs:
|
|
2916
|
-
skeletonDateTab:
|
|
2917
|
-
skeletonPeriodTabs:
|
|
2918
|
-
skeletonPeriodTab:
|
|
2919
|
-
skeletonTimeGrid:
|
|
2920
|
-
skeletonTimeSlot:
|
|
2921
|
-
retryBtn:
|
|
2922
|
-
footer:
|
|
2923
|
-
proceedBtn:
|
|
2924
|
-
proceedBtnDisabled:
|
|
2925
|
-
}, Xo = {
|
|
2926
|
-
morning: Hn,
|
|
2927
|
-
afternoon: Yn,
|
|
2928
|
-
evening: qn
|
|
2922
|
+
topicGrid: Eo,
|
|
2923
|
+
topicChip: Do,
|
|
2924
|
+
topicChipSelected: Bo,
|
|
2925
|
+
stateMessage: Oo,
|
|
2926
|
+
emptyStateIcon: Mo,
|
|
2927
|
+
emptyStateTitle: Fo,
|
|
2928
|
+
emptyStateSubtitle: $o,
|
|
2929
|
+
loadingWrap: Go,
|
|
2930
|
+
skeletonShimmer: Uo,
|
|
2931
|
+
skeletonDateTabs: Ko,
|
|
2932
|
+
skeletonDateTab: Wo,
|
|
2933
|
+
skeletonPeriodTabs: Ho,
|
|
2934
|
+
skeletonPeriodTab: Yo,
|
|
2935
|
+
skeletonTimeGrid: qo,
|
|
2936
|
+
skeletonTimeSlot: Vo,
|
|
2937
|
+
retryBtn: zo,
|
|
2938
|
+
footer: Jo,
|
|
2939
|
+
proceedBtn: Qo,
|
|
2940
|
+
proceedBtnDisabled: Xo
|
|
2929
2941
|
}, Zo = {
|
|
2942
|
+
morning: qn,
|
|
2943
|
+
afternoon: Vn,
|
|
2944
|
+
evening: zn
|
|
2945
|
+
}, ei = {
|
|
2930
2946
|
morning: "planPeriodMorning",
|
|
2931
2947
|
afternoon: "planPeriodAfternoon",
|
|
2932
2948
|
evening: "planPeriodEvening"
|
|
2933
|
-
},
|
|
2949
|
+
}, at = (a) => Ye.find((r) => r.code === a)?.label ?? a, ti = (a) => {
|
|
2950
|
+
const r = a.match(/([+-]\d{2}:\d{2})$/);
|
|
2951
|
+
return r ? `GMT${r[1]}` : a.endsWith("Z") ? "GMT+00:00" : "";
|
|
2952
|
+
}, ai = ({
|
|
2934
2953
|
isOpen: a,
|
|
2935
|
-
onClose:
|
|
2954
|
+
onClose: r,
|
|
2936
2955
|
onProceed: s,
|
|
2937
|
-
astrologers:
|
|
2938
|
-
t:
|
|
2939
|
-
analytics: f
|
|
2956
|
+
astrologers: p,
|
|
2957
|
+
t: d,
|
|
2958
|
+
analytics: f,
|
|
2959
|
+
reportLanguage: b
|
|
2940
2960
|
}) => {
|
|
2941
|
-
const
|
|
2942
|
-
() =>
|
|
2943
|
-
[
|
|
2944
|
-
), [
|
|
2961
|
+
const j = Ee(), y = j?.config.imageComponent ?? qe, U = j?.config.fetchConsultationSlots, M = j?.config.isGlobal ?? !0, N = b ?? j?.formValues?.language_code, [m, $] = E(!1), [v, Q] = E(!1), [x, k] = E({}), [T, re] = E("en"), [C, K] = E(!1), P = O(null), W = Re(
|
|
2962
|
+
() => x[T]?.days ?? [],
|
|
2963
|
+
[x, T]
|
|
2964
|
+
), [A, F] = E(""), [X, te] = E(""), [L, I] = E("morning"), [B, H] = E(null), V = O(!1), xe = O(null), de = O({}), [oe, ue] = E(null), ae = O(null), we = O(
|
|
2945
2965
|
{}
|
|
2946
|
-
), [
|
|
2947
|
-
() =>
|
|
2948
|
-
[
|
|
2949
|
-
),
|
|
2950
|
-
|
|
2951
|
-
const
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2966
|
+
), [ge, Pe] = E(null), z = Re(
|
|
2967
|
+
() => W.filter((i) => i.has_availability && i.slots.length > 0),
|
|
2968
|
+
[W]
|
|
2969
|
+
), Z = Se(() => {
|
|
2970
|
+
U && ($(!0), Q(!1), U().then((i) => {
|
|
2971
|
+
const h = i ?? {}, ee = Qr(
|
|
2972
|
+
h,
|
|
2973
|
+
N,
|
|
2974
|
+
M
|
|
2975
|
+
);
|
|
2976
|
+
k(h), re(ee), f?.trackConsultationLanguageDefaultSelected?.({
|
|
2977
|
+
language: at(ee)
|
|
2978
|
+
});
|
|
2979
|
+
const _e = (h[ee]?.days ?? []).filter(
|
|
2980
|
+
(_) => _.has_availability && _.slots.length > 0
|
|
2955
2981
|
).length;
|
|
2956
2982
|
f?.trackAstrologerAvailabilityServed?.({
|
|
2957
|
-
astrologers_shown:
|
|
2958
|
-
dates_available_count:
|
|
2983
|
+
astrologers_shown: p.map((_) => _.name),
|
|
2984
|
+
dates_available_count: _e
|
|
2959
2985
|
});
|
|
2960
2986
|
}).catch(() => {
|
|
2961
|
-
|
|
2962
|
-
}).finally(() =>
|
|
2963
|
-
}, [
|
|
2964
|
-
|
|
2987
|
+
Q(!0);
|
|
2988
|
+
}).finally(() => $(!1)));
|
|
2989
|
+
}, [U, M, N, f, p]);
|
|
2990
|
+
q(() => {
|
|
2965
2991
|
if (!a) {
|
|
2966
|
-
|
|
2992
|
+
V.current = !1;
|
|
2967
2993
|
return;
|
|
2968
2994
|
}
|
|
2969
|
-
|
|
2970
|
-
}, [a]),
|
|
2971
|
-
if (!
|
|
2972
|
-
const i = (
|
|
2973
|
-
|
|
2995
|
+
F(""), K(!1), Z();
|
|
2996
|
+
}, [a]), q(() => {
|
|
2997
|
+
if (!C) return;
|
|
2998
|
+
const i = (h) => {
|
|
2999
|
+
P.current && !P.current.contains(h.target) && K(!1);
|
|
2974
3000
|
};
|
|
2975
3001
|
return document.addEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
|
|
2976
|
-
}, [
|
|
2977
|
-
if (!
|
|
2978
|
-
|
|
3002
|
+
}, [C]), q(() => {
|
|
3003
|
+
if (!z.length) {
|
|
3004
|
+
te(""), H(null);
|
|
2979
3005
|
return;
|
|
2980
3006
|
}
|
|
2981
|
-
const i =
|
|
2982
|
-
|
|
2983
|
-
(
|
|
3007
|
+
const i = z[0];
|
|
3008
|
+
z.some((h) => h.date === X) || f?.trackConsultationDateDefaultSelected?.({ date: i.date }), te(
|
|
3009
|
+
(h) => z.some((ee) => ee.date === h) ? h : i.date
|
|
2984
3010
|
);
|
|
2985
|
-
}, [
|
|
2986
|
-
const ie =
|
|
2987
|
-
() =>
|
|
2988
|
-
[
|
|
2989
|
-
),
|
|
3011
|
+
}, [z]);
|
|
3012
|
+
const ie = Re(
|
|
3013
|
+
() => z.find((i) => i.date === X) ?? null,
|
|
3014
|
+
[z, X]
|
|
3015
|
+
), se = Re(() => {
|
|
2990
3016
|
if (!ie) return [];
|
|
2991
|
-
const i = new Set(ie.slots.map((
|
|
2992
|
-
return
|
|
3017
|
+
const i = new Set(ie.slots.map((h) => h.period));
|
|
3018
|
+
return qr.filter((h) => i.has(h));
|
|
2993
3019
|
}, [ie]);
|
|
2994
|
-
|
|
2995
|
-
if (!
|
|
2996
|
-
|
|
3020
|
+
q(() => {
|
|
3021
|
+
if (!se.length) {
|
|
3022
|
+
I("morning"), H(null);
|
|
2997
3023
|
return;
|
|
2998
3024
|
}
|
|
2999
|
-
|
|
3000
|
-
(i) =>
|
|
3025
|
+
I(
|
|
3026
|
+
(i) => se.includes(i) ? i : se[0]
|
|
3001
3027
|
);
|
|
3002
|
-
}, [
|
|
3003
|
-
const
|
|
3004
|
-
if (
|
|
3028
|
+
}, [se]);
|
|
3029
|
+
const ne = Re(() => ie ? ie.slots.filter((i) => i.period === L) : [], [ie, L]);
|
|
3030
|
+
if (q(() => {
|
|
3005
3031
|
const i = () => {
|
|
3006
|
-
const
|
|
3007
|
-
if (!
|
|
3008
|
-
|
|
3032
|
+
const h = xe.current, ee = de.current[X];
|
|
3033
|
+
if (!h || !ee) {
|
|
3034
|
+
ue(null);
|
|
3009
3035
|
return;
|
|
3010
3036
|
}
|
|
3011
|
-
const
|
|
3012
|
-
|
|
3013
|
-
left:
|
|
3014
|
-
top:
|
|
3015
|
-
width:
|
|
3016
|
-
height:
|
|
3037
|
+
const _e = h.getBoundingClientRect(), _ = ee.getBoundingClientRect();
|
|
3038
|
+
ue({
|
|
3039
|
+
left: _.left - _e.left,
|
|
3040
|
+
top: _.top - _e.top,
|
|
3041
|
+
width: _.width,
|
|
3042
|
+
height: _.height
|
|
3017
3043
|
});
|
|
3018
3044
|
};
|
|
3019
3045
|
return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
|
|
3020
|
-
}, [
|
|
3046
|
+
}, [X, z]), q(() => {
|
|
3021
3047
|
const i = () => {
|
|
3022
|
-
const
|
|
3023
|
-
if (!
|
|
3024
|
-
|
|
3048
|
+
const h = ae.current, ee = we.current[L];
|
|
3049
|
+
if (!h || !ee) {
|
|
3050
|
+
Pe(null);
|
|
3025
3051
|
return;
|
|
3026
3052
|
}
|
|
3027
|
-
const
|
|
3028
|
-
|
|
3029
|
-
left:
|
|
3030
|
-
width:
|
|
3053
|
+
const _e = h.getBoundingClientRect(), _ = ee.getBoundingClientRect();
|
|
3054
|
+
Pe({
|
|
3055
|
+
left: _.left - _e.left,
|
|
3056
|
+
width: _.width
|
|
3031
3057
|
});
|
|
3032
3058
|
};
|
|
3033
3059
|
return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
|
|
3034
|
-
}, [
|
|
3035
|
-
if (!
|
|
3036
|
-
|
|
3060
|
+
}, [L, se]), q(() => {
|
|
3061
|
+
if (!ne.length) {
|
|
3062
|
+
H(null);
|
|
3037
3063
|
return;
|
|
3038
3064
|
}
|
|
3039
|
-
|
|
3040
|
-
|
|
3065
|
+
if (!(B && ne.some((h) => h.start === B.start))) {
|
|
3066
|
+
const h = ne[0];
|
|
3067
|
+
f?.trackConsultationTimeDefaultSelected?.({
|
|
3068
|
+
time: tt(h.start),
|
|
3069
|
+
gmt_offset: ti(h.start)
|
|
3070
|
+
});
|
|
3071
|
+
}
|
|
3072
|
+
H(
|
|
3073
|
+
(h) => h && ne.some((ee) => ee.start === h.start) ? h : ne[0]
|
|
3041
3074
|
);
|
|
3042
|
-
}, [
|
|
3043
|
-
a &&
|
|
3044
|
-
astrologers_shown:
|
|
3045
|
-
dates_available_count:
|
|
3046
|
-
}),
|
|
3047
|
-
}, [a,
|
|
3048
|
-
const
|
|
3049
|
-
|
|
3075
|
+
}, [ne]), q(() => {
|
|
3076
|
+
a && z.length && !V.current && (f?.trackSlotScreenViewed?.({
|
|
3077
|
+
astrologers_shown: p.map((i) => i.name),
|
|
3078
|
+
dates_available_count: z.length
|
|
3079
|
+
}), V.current = !0);
|
|
3080
|
+
}, [a, z, p, f]), !a) return null;
|
|
3081
|
+
const pe = !!B && !!A, ke = (i) => {
|
|
3082
|
+
te(i), f?.trackSlotDateSelected?.({
|
|
3050
3083
|
date: i,
|
|
3051
|
-
day_part_default:
|
|
3084
|
+
day_part_default: L
|
|
3052
3085
|
});
|
|
3053
|
-
},
|
|
3054
|
-
|
|
3086
|
+
}, Ae = (i) => {
|
|
3087
|
+
I(i), f?.trackDayPartSelected?.({
|
|
3055
3088
|
day_part: i,
|
|
3056
|
-
slots_available_count: ie?.slots.filter((
|
|
3089
|
+
slots_available_count: ie?.slots.filter((h) => h.period === i).length ?? 0
|
|
3057
3090
|
});
|
|
3058
|
-
},
|
|
3059
|
-
|
|
3060
|
-
date:
|
|
3061
|
-
time:
|
|
3091
|
+
}, me = (i) => {
|
|
3092
|
+
H(i), f?.trackSlotSelected?.({
|
|
3093
|
+
date: X,
|
|
3094
|
+
time: tt(i.start),
|
|
3062
3095
|
day_part: i.period,
|
|
3063
|
-
topic:
|
|
3096
|
+
topic: A || null
|
|
3064
3097
|
});
|
|
3065
|
-
},
|
|
3066
|
-
|
|
3067
|
-
slot_datetime: `${
|
|
3098
|
+
}, he = () => {
|
|
3099
|
+
B && (f?.trackSlotReservationRequested?.({
|
|
3100
|
+
slot_datetime: `${B.start} - ${B.end}`
|
|
3068
3101
|
}), s({
|
|
3069
|
-
start:
|
|
3070
|
-
end:
|
|
3071
|
-
period:
|
|
3072
|
-
topic:
|
|
3073
|
-
language:
|
|
3102
|
+
start: B.start,
|
|
3103
|
+
end: B.end,
|
|
3104
|
+
period: B.period,
|
|
3105
|
+
topic: A,
|
|
3106
|
+
language: T
|
|
3074
3107
|
}));
|
|
3075
|
-
},
|
|
3076
|
-
|
|
3077
|
-
},
|
|
3078
|
-
|
|
3079
|
-
|
|
3108
|
+
}, Ce = (i) => {
|
|
3109
|
+
F(i), f?.trackGuidanceTopicSelected?.({ topic: i });
|
|
3110
|
+
}, ve = (i) => {
|
|
3111
|
+
f?.trackConsultationLanguageChanged?.({
|
|
3112
|
+
previous_language: at(T),
|
|
3113
|
+
new_language: at(i),
|
|
3114
|
+
slots_available: Lt(x[i]) ? "yes" : "no"
|
|
3115
|
+
}), re(i), K(!1);
|
|
3116
|
+
}, fe = Ye.find((i) => i.code === T) ?? Ye[0];
|
|
3080
3117
|
return /* @__PURE__ */ e.jsx(
|
|
3081
3118
|
"div",
|
|
3082
3119
|
{
|
|
3083
|
-
className:
|
|
3120
|
+
className: g.overlay,
|
|
3084
3121
|
role: "dialog",
|
|
3085
3122
|
"aria-modal": "true",
|
|
3086
|
-
"aria-label":
|
|
3087
|
-
children: /* @__PURE__ */ e.jsxs("div", { className:
|
|
3088
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3123
|
+
"aria-label": d?.("planConsultationSlotTitle") ?? "Select consultation slot",
|
|
3124
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: g.sheet, children: [
|
|
3125
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.header, children: [
|
|
3089
3126
|
/* @__PURE__ */ e.jsx(
|
|
3090
3127
|
"button",
|
|
3091
3128
|
{
|
|
3092
|
-
className:
|
|
3093
|
-
onClick:
|
|
3129
|
+
className: g.backBtn,
|
|
3130
|
+
onClick: r,
|
|
3094
3131
|
"aria-label": "Go back",
|
|
3095
3132
|
type: "button",
|
|
3096
|
-
children: /* @__PURE__ */ e.jsx(
|
|
3133
|
+
children: /* @__PURE__ */ e.jsx(st, {})
|
|
3097
3134
|
}
|
|
3098
3135
|
),
|
|
3099
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
3136
|
+
/* @__PURE__ */ e.jsx("h2", { className: g.title, children: d?.("planConsultationSlotTitle") ?? "Select consultation slot" })
|
|
3100
3137
|
] }),
|
|
3101
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3102
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3103
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3104
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3138
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.content, children: [
|
|
3139
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.languageRow, children: [
|
|
3140
|
+
/* @__PURE__ */ e.jsx("span", { className: g.languageLabel, children: d?.("planConsultationLanguageLabel") ?? "Your consultation language" }),
|
|
3141
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.languageDropdown, ref: P, children: [
|
|
3105
3142
|
/* @__PURE__ */ e.jsxs(
|
|
3106
3143
|
"button",
|
|
3107
3144
|
{
|
|
3108
3145
|
type: "button",
|
|
3109
|
-
className:
|
|
3110
|
-
onClick: () =>
|
|
3146
|
+
className: g.languageDropdownBtn,
|
|
3147
|
+
onClick: () => K((i) => !i),
|
|
3111
3148
|
"aria-haspopup": "listbox",
|
|
3112
|
-
"aria-expanded":
|
|
3149
|
+
"aria-expanded": C,
|
|
3113
3150
|
children: [
|
|
3114
|
-
|
|
3115
|
-
/* @__PURE__ */ e.jsx(
|
|
3151
|
+
d?.(fe.labelKey) ?? fe.label,
|
|
3152
|
+
/* @__PURE__ */ e.jsx(Hn, {})
|
|
3116
3153
|
]
|
|
3117
3154
|
}
|
|
3118
3155
|
),
|
|
3119
|
-
|
|
3120
|
-
const
|
|
3156
|
+
C && /* @__PURE__ */ e.jsx("ul", { className: g.languageMenu, role: "listbox", children: Ye.map((i) => {
|
|
3157
|
+
const h = i.code === T;
|
|
3121
3158
|
return /* @__PURE__ */ e.jsxs(
|
|
3122
3159
|
"li",
|
|
3123
3160
|
{
|
|
3124
3161
|
role: "option",
|
|
3125
|
-
"aria-selected":
|
|
3162
|
+
"aria-selected": h,
|
|
3126
3163
|
className: [
|
|
3127
|
-
|
|
3128
|
-
|
|
3164
|
+
g.languageMenuItem,
|
|
3165
|
+
h ? g.languageMenuItemSelected : ""
|
|
3129
3166
|
].filter(Boolean).join(" "),
|
|
3130
|
-
onClick: () =>
|
|
3167
|
+
onClick: () => ve(i.code),
|
|
3131
3168
|
children: [
|
|
3132
|
-
|
|
3133
|
-
|
|
3169
|
+
d?.(i.labelKey) ?? i.label,
|
|
3170
|
+
h && /* @__PURE__ */ e.jsx(Rt, {})
|
|
3134
3171
|
]
|
|
3135
3172
|
},
|
|
3136
3173
|
i.code
|
|
@@ -3138,119 +3175,119 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3138
3175
|
}) })
|
|
3139
3176
|
] })
|
|
3140
3177
|
] }),
|
|
3141
|
-
/* @__PURE__ */ e.jsx("hr", { className:
|
|
3142
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
3143
|
-
/* @__PURE__ */ e.jsxs("p", { className:
|
|
3144
|
-
|
|
3178
|
+
/* @__PURE__ */ e.jsx("hr", { className: g.languageDivider }),
|
|
3179
|
+
/* @__PURE__ */ e.jsx("p", { className: g.sectionHeading, children: d?.("planSelectSlotHeading") ?? "Book your preferred consultation slot" }),
|
|
3180
|
+
/* @__PURE__ */ e.jsxs("p", { className: g.reportReadyBanner, children: [
|
|
3181
|
+
d?.("planReportReadyPrefix") ?? "Your Report will be ready in",
|
|
3145
3182
|
" ",
|
|
3146
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3183
|
+
/* @__PURE__ */ e.jsx("span", { className: g.reportReadyDuration, children: d?.("planReportReadyDuration") ?? "24-48 hours" }),
|
|
3147
3184
|
" ",
|
|
3148
|
-
|
|
3185
|
+
d?.("planReportReadySuffix") ?? "from today"
|
|
3149
3186
|
] }),
|
|
3150
|
-
|
|
3151
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3187
|
+
m && /* @__PURE__ */ e.jsxs("div", { className: g.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
|
|
3188
|
+
/* @__PURE__ */ e.jsx("div", { className: g.skeletonDateTabs, children: Array.from({ length: 5 }).map((i, h) => /* @__PURE__ */ e.jsx(
|
|
3152
3189
|
"div",
|
|
3153
3190
|
{
|
|
3154
|
-
className: [
|
|
3191
|
+
className: [g.skeletonDateTab, g.skeletonShimmer].join(" ")
|
|
3155
3192
|
},
|
|
3156
|
-
|
|
3193
|
+
h
|
|
3157
3194
|
)) }),
|
|
3158
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3195
|
+
/* @__PURE__ */ e.jsx("div", { className: g.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((i, h) => /* @__PURE__ */ e.jsx(
|
|
3159
3196
|
"div",
|
|
3160
3197
|
{
|
|
3161
|
-
className: [
|
|
3198
|
+
className: [g.skeletonPeriodTab, g.skeletonShimmer].join(" ")
|
|
3162
3199
|
},
|
|
3163
|
-
|
|
3200
|
+
h
|
|
3164
3201
|
)) }),
|
|
3165
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3202
|
+
/* @__PURE__ */ e.jsx("div", { className: g.skeletonTimeGrid, children: Array.from({ length: 6 }).map((i, h) => /* @__PURE__ */ e.jsx(
|
|
3166
3203
|
"div",
|
|
3167
3204
|
{
|
|
3168
|
-
className: [
|
|
3205
|
+
className: [g.skeletonTimeSlot, g.skeletonShimmer].join(" ")
|
|
3169
3206
|
},
|
|
3170
|
-
|
|
3207
|
+
h
|
|
3171
3208
|
)) })
|
|
3172
3209
|
] }),
|
|
3173
|
-
!
|
|
3174
|
-
|
|
3175
|
-
/* @__PURE__ */ e.jsx("button", { type: "button", className:
|
|
3210
|
+
!m && v && /* @__PURE__ */ e.jsxs("div", { className: g.stateMessage, children: [
|
|
3211
|
+
d?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
3212
|
+
/* @__PURE__ */ e.jsx("button", { type: "button", className: g.retryBtn, onClick: Z, children: d?.("planRetry") ?? "Retry" })
|
|
3176
3213
|
] }),
|
|
3177
|
-
!
|
|
3178
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3179
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
3180
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
3214
|
+
!m && !v && z.length === 0 && /* @__PURE__ */ e.jsxs("div", { className: g.emptyState, children: [
|
|
3215
|
+
/* @__PURE__ */ e.jsx("span", { className: g.emptyStateIcon, children: /* @__PURE__ */ e.jsx(Jn, {}) }),
|
|
3216
|
+
/* @__PURE__ */ e.jsx("p", { className: g.emptyStateTitle, children: d?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
|
|
3217
|
+
/* @__PURE__ */ e.jsx("p", { className: g.emptyStateSubtitle, children: d?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
|
|
3181
3218
|
] }),
|
|
3182
|
-
!
|
|
3183
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3184
|
-
|
|
3219
|
+
!m && !v && z.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3220
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.dateTabs, ref: xe, role: "radiogroup", "aria-label": "Consultation date", children: [
|
|
3221
|
+
oe && /* @__PURE__ */ e.jsx(
|
|
3185
3222
|
"span",
|
|
3186
3223
|
{
|
|
3187
|
-
className:
|
|
3224
|
+
className: g.dateTabIndicator,
|
|
3188
3225
|
style: {
|
|
3189
|
-
transform: `translate(${
|
|
3190
|
-
width:
|
|
3191
|
-
height:
|
|
3226
|
+
transform: `translate(${oe.left}px, ${oe.top}px)`,
|
|
3227
|
+
width: oe.width,
|
|
3228
|
+
height: oe.height
|
|
3192
3229
|
},
|
|
3193
3230
|
"aria-hidden": "true"
|
|
3194
3231
|
}
|
|
3195
3232
|
),
|
|
3196
|
-
|
|
3197
|
-
const
|
|
3198
|
-
return /* @__PURE__ */ e.jsxs(
|
|
3233
|
+
z.map((i) => {
|
|
3234
|
+
const h = i.date === X, { dayLabel: ee, dayNum: _e } = Yr(i.date);
|
|
3235
|
+
return /* @__PURE__ */ e.jsxs(Vt, { children: [
|
|
3199
3236
|
/* @__PURE__ */ e.jsxs(
|
|
3200
3237
|
"button",
|
|
3201
3238
|
{
|
|
3202
3239
|
type: "button",
|
|
3203
|
-
ref: (
|
|
3204
|
-
|
|
3240
|
+
ref: (_) => {
|
|
3241
|
+
de.current[i.date] = _;
|
|
3205
3242
|
},
|
|
3206
3243
|
className: [
|
|
3207
|
-
|
|
3208
|
-
|
|
3244
|
+
g.dateTab,
|
|
3245
|
+
h ? g.dateTabSelected : ""
|
|
3209
3246
|
].filter(Boolean).join(" "),
|
|
3210
3247
|
role: "radio",
|
|
3211
|
-
"aria-checked":
|
|
3212
|
-
onClick: () =>
|
|
3248
|
+
"aria-checked": h,
|
|
3249
|
+
onClick: () => ke(i.date),
|
|
3213
3250
|
children: [
|
|
3214
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3215
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3251
|
+
/* @__PURE__ */ e.jsx("span", { className: g.dateTabLabel, children: d?.(ee) ?? ee }),
|
|
3252
|
+
/* @__PURE__ */ e.jsx("span", { className: g.dateTabNum, children: _e })
|
|
3216
3253
|
]
|
|
3217
3254
|
}
|
|
3218
3255
|
),
|
|
3219
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3256
|
+
/* @__PURE__ */ e.jsx("span", { className: g.dateTabDivider, "aria-hidden": !0 })
|
|
3220
3257
|
] }, i.date);
|
|
3221
3258
|
})
|
|
3222
3259
|
] }),
|
|
3223
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3224
|
-
|
|
3260
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.periodTabs, ref: ae, role: "tablist", "aria-label": "Time of day", children: [
|
|
3261
|
+
ge && /* @__PURE__ */ e.jsx(
|
|
3225
3262
|
"span",
|
|
3226
3263
|
{
|
|
3227
|
-
className:
|
|
3264
|
+
className: g.periodTabIndicator,
|
|
3228
3265
|
style: {
|
|
3229
|
-
transform: `translateX(${
|
|
3230
|
-
width:
|
|
3266
|
+
transform: `translateX(${ge.left}px)`,
|
|
3267
|
+
width: ge.width
|
|
3231
3268
|
},
|
|
3232
3269
|
"aria-hidden": "true"
|
|
3233
3270
|
}
|
|
3234
3271
|
),
|
|
3235
|
-
|
|
3236
|
-
const
|
|
3272
|
+
se.map((i) => {
|
|
3273
|
+
const h = Zo[i];
|
|
3237
3274
|
return /* @__PURE__ */ e.jsxs(
|
|
3238
3275
|
"button",
|
|
3239
3276
|
{
|
|
3240
|
-
ref: (
|
|
3241
|
-
|
|
3277
|
+
ref: (ee) => {
|
|
3278
|
+
we.current[i] = ee;
|
|
3242
3279
|
},
|
|
3243
3280
|
type: "button",
|
|
3244
3281
|
className: [
|
|
3245
|
-
|
|
3246
|
-
i ===
|
|
3282
|
+
g.periodTab,
|
|
3283
|
+
i === L ? g.periodTabSelected : ""
|
|
3247
3284
|
].filter(Boolean).join(" "),
|
|
3248
3285
|
role: "tab",
|
|
3249
|
-
"aria-selected": i ===
|
|
3250
|
-
onClick: () =>
|
|
3286
|
+
"aria-selected": i === L,
|
|
3287
|
+
onClick: () => Ae(i),
|
|
3251
3288
|
children: [
|
|
3252
|
-
/* @__PURE__ */ e.jsx(
|
|
3253
|
-
|
|
3289
|
+
/* @__PURE__ */ e.jsx(h, {}),
|
|
3290
|
+
d?.(ei[i]) ?? i.charAt(0).toUpperCase() + i.slice(1)
|
|
3254
3291
|
]
|
|
3255
3292
|
},
|
|
3256
3293
|
i
|
|
@@ -3260,49 +3297,49 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3260
3297
|
/* @__PURE__ */ e.jsx(
|
|
3261
3298
|
"div",
|
|
3262
3299
|
{
|
|
3263
|
-
className:
|
|
3300
|
+
className: g.timeGrid,
|
|
3264
3301
|
role: "radiogroup",
|
|
3265
3302
|
"aria-label": "Consultation time",
|
|
3266
|
-
children:
|
|
3303
|
+
children: ne.map((i, h) => /* @__PURE__ */ e.jsx(
|
|
3267
3304
|
"button",
|
|
3268
3305
|
{
|
|
3269
3306
|
type: "button",
|
|
3270
3307
|
className: [
|
|
3271
|
-
|
|
3272
|
-
|
|
3308
|
+
g.timeSlot,
|
|
3309
|
+
B?.start === i.start ? g.timeSlotSelected : ""
|
|
3273
3310
|
].filter(Boolean).join(" "),
|
|
3274
3311
|
role: "radio",
|
|
3275
|
-
"aria-checked":
|
|
3276
|
-
onClick: () =>
|
|
3277
|
-
children:
|
|
3312
|
+
"aria-checked": B?.start === i.start,
|
|
3313
|
+
onClick: () => me(i),
|
|
3314
|
+
children: tt(i.start)
|
|
3278
3315
|
},
|
|
3279
|
-
`${i.start}-${
|
|
3316
|
+
`${i.start}-${h}`
|
|
3280
3317
|
))
|
|
3281
3318
|
},
|
|
3282
|
-
`${
|
|
3319
|
+
`${X}-${L}`
|
|
3283
3320
|
)
|
|
3284
3321
|
] }),
|
|
3285
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
3286
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3322
|
+
/* @__PURE__ */ e.jsx("p", { className: g.sectionHeading, children: d?.("planGuidanceHeading") ?? "What would you like guidance on?" }),
|
|
3323
|
+
/* @__PURE__ */ e.jsx("div", { className: g.topicGrid, role: "radiogroup", "aria-label": "Guidance topic", children: Vr.map((i) => /* @__PURE__ */ e.jsx(
|
|
3287
3324
|
"button",
|
|
3288
3325
|
{
|
|
3289
3326
|
type: "button",
|
|
3290
3327
|
className: [
|
|
3291
|
-
|
|
3292
|
-
|
|
3328
|
+
g.topicChip,
|
|
3329
|
+
A === i.id ? g.topicChipSelected : ""
|
|
3293
3330
|
].filter(Boolean).join(" "),
|
|
3294
3331
|
role: "radio",
|
|
3295
|
-
"aria-checked":
|
|
3296
|
-
onClick: () =>
|
|
3297
|
-
children:
|
|
3332
|
+
"aria-checked": A === i.id,
|
|
3333
|
+
onClick: () => Ce(i.id),
|
|
3334
|
+
children: d?.(i.labelKey) ?? i.label
|
|
3298
3335
|
},
|
|
3299
3336
|
i.id
|
|
3300
3337
|
)) })
|
|
3301
3338
|
] }),
|
|
3302
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3303
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3304
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3305
|
-
|
|
3339
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.footer, children: [
|
|
3340
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.trustRow, children: [
|
|
3341
|
+
/* @__PURE__ */ e.jsx("div", { className: g.trustAvatars, "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
3342
|
+
y,
|
|
3306
3343
|
{
|
|
3307
3344
|
src: "https://srm-cdn.a4b.io/yoda/1785317712031.svg",
|
|
3308
3345
|
alt: "",
|
|
@@ -3313,23 +3350,23 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3313
3350
|
loading: "eager"
|
|
3314
3351
|
}
|
|
3315
3352
|
) }),
|
|
3316
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3353
|
+
/* @__PURE__ */ e.jsx("span", { className: g.trustText, children: d?.("planConsultationTrustLabel") ?? "3,750+ people have booked consultation" })
|
|
3317
3354
|
] }),
|
|
3318
3355
|
/* @__PURE__ */ e.jsx(
|
|
3319
3356
|
"button",
|
|
3320
3357
|
{
|
|
3321
3358
|
type: "button",
|
|
3322
|
-
className: [
|
|
3323
|
-
disabled: !
|
|
3324
|
-
onClick:
|
|
3325
|
-
children:
|
|
3359
|
+
className: [g.proceedBtn, pe ? "" : g.proceedBtnDisabled].filter(Boolean).join(" "),
|
|
3360
|
+
disabled: !pe,
|
|
3361
|
+
onClick: he,
|
|
3362
|
+
children: d?.("planProceedToPayment") ?? "Proceed to payment"
|
|
3326
3363
|
}
|
|
3327
3364
|
)
|
|
3328
3365
|
] })
|
|
3329
3366
|
] })
|
|
3330
3367
|
}
|
|
3331
3368
|
);
|
|
3332
|
-
},
|
|
3369
|
+
}, ni = [
|
|
3333
3370
|
{
|
|
3334
3371
|
id: "jyoti",
|
|
3335
3372
|
name: "planAstrologerNameJyoti",
|
|
@@ -3357,7 +3394,7 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3357
3394
|
experience: "planAstrologerExpNeeraj",
|
|
3358
3395
|
certifications: ["planAstrologerCertBhuCertified", "planAstrologerCertMantraRudraksha"]
|
|
3359
3396
|
}
|
|
3360
|
-
],
|
|
3397
|
+
], ri = (a) => [
|
|
3361
3398
|
{
|
|
3362
3399
|
id: "kundli-report",
|
|
3363
3400
|
title: "planNameBasic",
|
|
@@ -3383,161 +3420,161 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3383
3420
|
{ text: "planFeatureRealTimeAnswers", included: !0 },
|
|
3384
3421
|
{ text: "planFeatureTailoredRemedies", included: !0 }
|
|
3385
3422
|
],
|
|
3386
|
-
astrologers:
|
|
3387
|
-
(
|
|
3423
|
+
astrologers: ni.filter(
|
|
3424
|
+
(r) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(r.id)
|
|
3388
3425
|
)
|
|
3389
3426
|
}
|
|
3390
|
-
],
|
|
3427
|
+
], oi = ({
|
|
3391
3428
|
isOpen: a,
|
|
3392
|
-
onClose:
|
|
3429
|
+
onClose: r,
|
|
3393
3430
|
selectedPlan: s,
|
|
3394
|
-
onSelectPlan:
|
|
3395
|
-
plans:
|
|
3431
|
+
onSelectPlan: p,
|
|
3432
|
+
plans: d,
|
|
3396
3433
|
onProceed: f,
|
|
3397
|
-
t:
|
|
3398
|
-
analytics:
|
|
3399
|
-
enableConsultationScheduling:
|
|
3434
|
+
t: b,
|
|
3435
|
+
analytics: j,
|
|
3436
|
+
enableConsultationScheduling: y
|
|
3400
3437
|
}) => {
|
|
3401
|
-
const U =
|
|
3402
|
-
|
|
3438
|
+
const U = Ee(), M = U?.config.isGlobal ?? !0, N = y ?? U?.config.enableConsultationScheduling ?? !1, m = d ?? ri(M), $ = s?.id || m.find((C) => C.badge)?.id || m[0]?.id || "", v = O(null), Q = O(null), x = O(!1), [k, T] = E(!1);
|
|
3439
|
+
q(() => {
|
|
3403
3440
|
if (a) {
|
|
3404
3441
|
if (!s) {
|
|
3405
|
-
const
|
|
3406
|
-
|
|
3442
|
+
const C = m.find((K) => K.badge) ?? m[0];
|
|
3443
|
+
C && p(C);
|
|
3407
3444
|
}
|
|
3408
|
-
|
|
3409
|
-
plans_shown: m.map((
|
|
3410
|
-
default_selected_plan: s?.id || m.find((
|
|
3411
|
-
}),
|
|
3445
|
+
x.current || (j?.trackPlanPageViewed?.(), N && j?.trackPlanScreenViewed?.({
|
|
3446
|
+
plans_shown: m.map((C) => C.id),
|
|
3447
|
+
default_selected_plan: s?.id || m.find((C) => C.badge)?.id || m[0]?.id || ""
|
|
3448
|
+
}), x.current = !0);
|
|
3412
3449
|
} else
|
|
3413
|
-
|
|
3414
|
-
}, [a, m, s,
|
|
3415
|
-
const
|
|
3416
|
-
|
|
3450
|
+
x.current = !1;
|
|
3451
|
+
}, [a, m, s, p, j]);
|
|
3452
|
+
const re = () => {
|
|
3453
|
+
j?.trackPlanPageClosed?.(), r();
|
|
3417
3454
|
};
|
|
3418
|
-
return
|
|
3455
|
+
return q(() => {
|
|
3419
3456
|
if (!a) return;
|
|
3420
|
-
const
|
|
3457
|
+
const C = document.body.style.overflow;
|
|
3421
3458
|
return document.body.style.overflow = "hidden", () => {
|
|
3422
|
-
document.body.style.overflow =
|
|
3459
|
+
document.body.style.overflow = C;
|
|
3423
3460
|
};
|
|
3424
3461
|
}, [a]), a ? /* @__PURE__ */ e.jsxs(
|
|
3425
3462
|
"div",
|
|
3426
3463
|
{
|
|
3427
|
-
className:
|
|
3464
|
+
className: S.overlay,
|
|
3428
3465
|
role: "dialog",
|
|
3429
3466
|
"aria-modal": "true",
|
|
3430
|
-
"aria-label":
|
|
3467
|
+
"aria-label": b?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
3431
3468
|
children: [
|
|
3432
3469
|
/* @__PURE__ */ e.jsxs(
|
|
3433
3470
|
"div",
|
|
3434
3471
|
{
|
|
3435
3472
|
ref: v,
|
|
3436
|
-
className: N ?
|
|
3473
|
+
className: N ? S.sheetFullScreen : S.sheet,
|
|
3437
3474
|
children: [
|
|
3438
|
-
N ? /* @__PURE__ */ e.jsxs("div", { className:
|
|
3475
|
+
N ? /* @__PURE__ */ e.jsxs("div", { className: S.headerFull, children: [
|
|
3439
3476
|
/* @__PURE__ */ e.jsx(
|
|
3440
3477
|
"button",
|
|
3441
3478
|
{
|
|
3442
|
-
className:
|
|
3443
|
-
onClick:
|
|
3479
|
+
className: S.backBtn,
|
|
3480
|
+
onClick: re,
|
|
3444
3481
|
"aria-label": "Go back",
|
|
3445
3482
|
type: "button",
|
|
3446
|
-
children: /* @__PURE__ */ e.jsx(
|
|
3483
|
+
children: /* @__PURE__ */ e.jsx(st, {})
|
|
3447
3484
|
}
|
|
3448
3485
|
),
|
|
3449
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
3486
|
+
/* @__PURE__ */ e.jsx("h2", { className: S.titleFull, children: b?.("planSheetTitle") ?? "Choose Your Kundli Plan" })
|
|
3450
3487
|
] }) : /* @__PURE__ */ e.jsx(
|
|
3451
|
-
|
|
3488
|
+
Gr,
|
|
3452
3489
|
{
|
|
3453
|
-
title:
|
|
3454
|
-
onBack:
|
|
3490
|
+
title: b?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
3491
|
+
onBack: re
|
|
3455
3492
|
}
|
|
3456
3493
|
),
|
|
3457
3494
|
/* @__PURE__ */ e.jsx(
|
|
3458
3495
|
"div",
|
|
3459
3496
|
{
|
|
3460
|
-
ref:
|
|
3461
|
-
className:
|
|
3497
|
+
ref: Q,
|
|
3498
|
+
className: S.plansContainer,
|
|
3462
3499
|
role: "radiogroup",
|
|
3463
3500
|
"aria-label": "Kundli plans",
|
|
3464
|
-
children: m.map((
|
|
3465
|
-
|
|
3501
|
+
children: m.map((C) => /* @__PURE__ */ e.jsx(
|
|
3502
|
+
Hr,
|
|
3466
3503
|
{
|
|
3467
|
-
plan:
|
|
3468
|
-
isSelected:
|
|
3469
|
-
t:
|
|
3470
|
-
onSelect: (
|
|
3471
|
-
const
|
|
3472
|
-
|
|
3473
|
-
planId:
|
|
3474
|
-
planName:
|
|
3504
|
+
plan: C,
|
|
3505
|
+
isSelected: C.id === $,
|
|
3506
|
+
t: b,
|
|
3507
|
+
onSelect: (K) => {
|
|
3508
|
+
const P = m.find((W) => W.id === K);
|
|
3509
|
+
P && (j?.trackPlanSelected?.({
|
|
3510
|
+
planId: P.id,
|
|
3511
|
+
planName: P.title,
|
|
3475
3512
|
...N ? {
|
|
3476
|
-
price:
|
|
3477
|
-
includes_consultation: !!(
|
|
3478
|
-
cta_label:
|
|
3513
|
+
price: P.price,
|
|
3514
|
+
includes_consultation: !!(P.astrologers && P.astrologers.length > 0),
|
|
3515
|
+
cta_label: P.astrologers && P.astrologers.length > 0 ? b?.("planSelectConsultationSlot") ?? "Select consultation slot →" : b?.("planProceedToPayment") ?? "Proceed to Payment"
|
|
3479
3516
|
} : {}
|
|
3480
|
-
}),
|
|
3517
|
+
}), p(P));
|
|
3481
3518
|
}
|
|
3482
3519
|
},
|
|
3483
|
-
|
|
3520
|
+
C.id
|
|
3484
3521
|
))
|
|
3485
3522
|
}
|
|
3486
3523
|
),
|
|
3487
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3524
|
+
/* @__PURE__ */ e.jsx("div", { className: S.footer, children: /* @__PURE__ */ e.jsx(
|
|
3488
3525
|
"button",
|
|
3489
3526
|
{
|
|
3490
|
-
className:
|
|
3527
|
+
className: S.proceedBtn,
|
|
3491
3528
|
disabled: !s,
|
|
3492
3529
|
onClick: () => {
|
|
3493
3530
|
if (s) {
|
|
3494
3531
|
if (N && s.astrologers && s.astrologers.length > 0) {
|
|
3495
|
-
|
|
3532
|
+
j?.trackSelectConsultationSlotClicked?.({
|
|
3496
3533
|
planId: s.id,
|
|
3497
3534
|
planName: s.title
|
|
3498
|
-
}),
|
|
3535
|
+
}), j?.trackPlanProceedClicked?.({
|
|
3499
3536
|
planId: s.id,
|
|
3500
3537
|
planName: s.title,
|
|
3501
3538
|
cta_type: "confirm_consultation_slot",
|
|
3502
3539
|
next_step: "slot_selection"
|
|
3503
|
-
}),
|
|
3540
|
+
}), T(!0);
|
|
3504
3541
|
return;
|
|
3505
3542
|
}
|
|
3506
|
-
|
|
3543
|
+
j?.trackPlanProceedClicked?.({
|
|
3507
3544
|
planId: s.id,
|
|
3508
3545
|
planName: s.title,
|
|
3509
3546
|
...N ? { cta_type: "proceed", next_step: "payment" } : {}
|
|
3510
|
-
}), f(s),
|
|
3547
|
+
}), f(s), r();
|
|
3511
3548
|
}
|
|
3512
3549
|
},
|
|
3513
|
-
children: s ? N && s.astrologers && s.astrologers.length > 0 ?
|
|
3550
|
+
children: s ? N && s.astrologers && s.astrologers.length > 0 ? b?.("planSelectConsultationSlot") ?? "Select consultation slot →" : b?.("planProceedToPayment") ?? s.price + "Proceed to Payment" : "Select a plan"
|
|
3514
3551
|
}
|
|
3515
3552
|
) })
|
|
3516
3553
|
]
|
|
3517
3554
|
}
|
|
3518
3555
|
),
|
|
3519
3556
|
N && s?.astrologers && s.astrologers.length > 0 && /* @__PURE__ */ e.jsx(
|
|
3520
|
-
|
|
3557
|
+
ai,
|
|
3521
3558
|
{
|
|
3522
|
-
isOpen:
|
|
3523
|
-
onClose: () =>
|
|
3559
|
+
isOpen: k,
|
|
3560
|
+
onClose: () => T(!1),
|
|
3524
3561
|
astrologers: s.astrologers,
|
|
3525
|
-
t:
|
|
3526
|
-
analytics:
|
|
3527
|
-
onProceed: (
|
|
3528
|
-
|
|
3562
|
+
t: b,
|
|
3563
|
+
analytics: j,
|
|
3564
|
+
onProceed: (C) => {
|
|
3565
|
+
j?.trackPlanProceedClicked?.({
|
|
3529
3566
|
planId: s.id,
|
|
3530
3567
|
planName: s.title,
|
|
3531
3568
|
cta_type: "proceed",
|
|
3532
3569
|
next_step: "payment"
|
|
3533
|
-
}), f(s,
|
|
3570
|
+
}), f(s, C), T(!1), r();
|
|
3534
3571
|
}
|
|
3535
3572
|
}
|
|
3536
3573
|
)
|
|
3537
3574
|
]
|
|
3538
3575
|
}
|
|
3539
3576
|
) : null;
|
|
3540
|
-
},
|
|
3577
|
+
}, ii = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", li = (a, r) => Tt[a]?.[r] ?? r, si = (a, r) => a && nt.includes(a) ? a : r ? "+1" : "+91", ci = {
|
|
3541
3578
|
fullName: "",
|
|
3542
3579
|
phone: "",
|
|
3543
3580
|
phoneCountryCode: "",
|
|
@@ -3548,207 +3585,207 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3548
3585
|
birthTime: "",
|
|
3549
3586
|
birthTimeUnknown: !1,
|
|
3550
3587
|
birthPlace: ""
|
|
3551
|
-
},
|
|
3588
|
+
}, _i = ({
|
|
3552
3589
|
className: a = "",
|
|
3553
|
-
locale:
|
|
3590
|
+
locale: r,
|
|
3554
3591
|
showLanguageSelector: s = !0,
|
|
3555
|
-
onBack:
|
|
3556
|
-
initialValues:
|
|
3592
|
+
onBack: p,
|
|
3593
|
+
initialValues: d,
|
|
3557
3594
|
onProceed: f,
|
|
3558
|
-
onProceedGuidance:
|
|
3559
|
-
proceedHref:
|
|
3560
|
-
originalPriceLabel:
|
|
3595
|
+
onProceedGuidance: b,
|
|
3596
|
+
proceedHref: j,
|
|
3597
|
+
originalPriceLabel: y,
|
|
3561
3598
|
discountedPriceLabel: U,
|
|
3562
|
-
googleMapsApiKey:
|
|
3599
|
+
googleMapsApiKey: M = "",
|
|
3563
3600
|
atlasSearchLocalities: N,
|
|
3564
3601
|
googleMapsAutocompleteEnabled: m,
|
|
3565
|
-
analytics:
|
|
3602
|
+
analytics: $
|
|
3566
3603
|
}) => {
|
|
3567
|
-
const v =
|
|
3568
|
-
|
|
3569
|
-
),
|
|
3570
|
-
|
|
3604
|
+
const v = Ee(), Q = ma(), x = v !== null, k = x ? v.locale : r, T = k ?? Q?.locale ?? "en", [re, C] = E(T), K = x ? v.locale : re, P = x ? v.setLocale : C, [W, A] = E(!1), F = O(null), X = O(
|
|
3605
|
+
k
|
|
3606
|
+
), te = O(
|
|
3607
|
+
Q?.locale
|
|
3571
3608
|
);
|
|
3572
|
-
|
|
3609
|
+
q(() => {
|
|
3573
3610
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
3574
3611
|
}, []);
|
|
3575
|
-
const
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
}, [
|
|
3579
|
-
if (
|
|
3580
|
-
const
|
|
3581
|
-
|
|
3582
|
-
}, [
|
|
3583
|
-
const [
|
|
3584
|
-
...
|
|
3585
|
-
...
|
|
3586
|
-
phone:
|
|
3587
|
-
}),
|
|
3588
|
-
() =>
|
|
3589
|
-
),
|
|
3590
|
-
!!(
|
|
3591
|
-
),
|
|
3592
|
-
|
|
3593
|
-
}, []),
|
|
3594
|
-
|
|
3595
|
-
if (
|
|
3596
|
-
|
|
3612
|
+
const L = (_) => li(K, _);
|
|
3613
|
+
q(() => {
|
|
3614
|
+
k && X.current !== k && P(k), X.current = k;
|
|
3615
|
+
}, [k, P]), q(() => {
|
|
3616
|
+
if (k) return;
|
|
3617
|
+
const _ = Q?.locale;
|
|
3618
|
+
_ && te.current !== _ && P(_), te.current = _;
|
|
3619
|
+
}, [Q?.locale, k, P]);
|
|
3620
|
+
const [I, B] = E({
|
|
3621
|
+
...ci,
|
|
3622
|
+
...d,
|
|
3623
|
+
phone: d?.phone ?? ""
|
|
3624
|
+
}), H = x ? v?.config.isGlobal ?? !0 : !0, V = x ? v.formValues : I, xe = x ? v.setFormValues : B, [de, oe] = E(
|
|
3625
|
+
() => si(V.phoneCountryCode, H)
|
|
3626
|
+
), ue = O(
|
|
3627
|
+
!!(V.phoneCountryCode && nt.includes(V.phoneCountryCode))
|
|
3628
|
+
), ae = O(!1), we = Se((_) => {
|
|
3629
|
+
ae.current = !0, oe(_);
|
|
3630
|
+
}, []), ge = O(!0);
|
|
3631
|
+
q(() => {
|
|
3632
|
+
if (ge.current) {
|
|
3633
|
+
ge.current = !1;
|
|
3597
3634
|
return;
|
|
3598
3635
|
}
|
|
3599
|
-
|
|
3600
|
-
}, [
|
|
3601
|
-
if (!
|
|
3602
|
-
const
|
|
3603
|
-
|
|
3604
|
-
}, [
|
|
3605
|
-
const
|
|
3606
|
-
|
|
3607
|
-
if (!
|
|
3608
|
-
const
|
|
3609
|
-
|
|
3636
|
+
ue.current || ae.current || oe(H ? "+1" : "+91");
|
|
3637
|
+
}, [H]), q(() => {
|
|
3638
|
+
if (!x || ae.current) return;
|
|
3639
|
+
const _ = V.phoneCountryCode;
|
|
3640
|
+
_ && nt.includes(_) && _ !== de && (ue.current = !0, oe(_));
|
|
3641
|
+
}, [x, V.phoneCountryCode]);
|
|
3642
|
+
const Pe = x ? v.goToPage : p, z = x ? v.onProceed : f, Z = x ? v.onProceedGuidance : b, ie = x ? v.config.proceedHref : j, se = x ? v.config.originalPriceLabel : y, ne = x ? v.config.discountedPriceLabel : U, pe = x ? v.config.showLanguageSelector ?? !0 : s, ke = (x ? v?.config?.analytics : $) ?? $;
|
|
3643
|
+
q(() => {
|
|
3644
|
+
if (!W) return;
|
|
3645
|
+
const _ = (De) => {
|
|
3646
|
+
F.current && !F.current.contains(De.target) && A(!1);
|
|
3610
3647
|
};
|
|
3611
|
-
return document.addEventListener("mousedown",
|
|
3612
|
-
}, [
|
|
3613
|
-
const [
|
|
3614
|
-
|
|
3615
|
-
}, []),
|
|
3616
|
-
|
|
3617
|
-
if (
|
|
3648
|
+
return document.addEventListener("mousedown", _), () => document.removeEventListener("mousedown", _);
|
|
3649
|
+
}, [W]);
|
|
3650
|
+
const [Ae, me] = E(!1), [he, Ce] = E(null), ve = O(null), fe = Se((_) => {
|
|
3651
|
+
ve.current = _, me(!0);
|
|
3652
|
+
}, []), i = O(!1);
|
|
3653
|
+
q(() => {
|
|
3654
|
+
if (i.current || !x || !v?.config.autoOpenPlanSheet || v?.config.variant !== "v1")
|
|
3618
3655
|
return;
|
|
3619
|
-
|
|
3620
|
-
const
|
|
3621
|
-
|
|
3622
|
-
...
|
|
3623
|
-
phone:
|
|
3656
|
+
i.current = !0;
|
|
3657
|
+
const _ = (V.phone ?? "").trim();
|
|
3658
|
+
fe({
|
|
3659
|
+
...V,
|
|
3660
|
+
phone: _ && `${de}-${_}`
|
|
3624
3661
|
});
|
|
3625
|
-
}, [
|
|
3626
|
-
const
|
|
3627
|
-
if (!
|
|
3628
|
-
|
|
3629
|
-
planId:
|
|
3630
|
-
planName:
|
|
3631
|
-
price:
|
|
3632
|
-
currency:
|
|
3662
|
+
}, [x, v?.config.autoOpenPlanSheet, v?.config.variant, V, de, fe]);
|
|
3663
|
+
const h = Se(() => {
|
|
3664
|
+
if (!ve.current || !he) return;
|
|
3665
|
+
ke?.trackPlanProceedClicked?.({
|
|
3666
|
+
planId: he.id,
|
|
3667
|
+
planName: he.title,
|
|
3668
|
+
price: he.price,
|
|
3669
|
+
currency: H ? "USD" : "INR"
|
|
3633
3670
|
});
|
|
3634
|
-
const
|
|
3635
|
-
|
|
3636
|
-
}, [
|
|
3671
|
+
const _ = { ...ve.current, _selectedPlan: he };
|
|
3672
|
+
he.id === Nt && Z ? Z(_) : z?.(_), me(!1), ve.current = null;
|
|
3673
|
+
}, [he, z, Z]), ee = v?.config.imageComponent ?? qe, _e = pe ? /* @__PURE__ */ e.jsxs("div", { className: Ne.langDropdownWrap, ref: F, children: [
|
|
3637
3674
|
/* @__PURE__ */ e.jsxs(
|
|
3638
3675
|
"button",
|
|
3639
3676
|
{
|
|
3640
3677
|
type: "button",
|
|
3641
|
-
className:
|
|
3678
|
+
className: Ne.langTrigger,
|
|
3642
3679
|
onClick: () => {
|
|
3643
|
-
|
|
3680
|
+
ke?.trackLanguageClickedFe?.({ language: K }), A((_) => !_);
|
|
3644
3681
|
},
|
|
3645
|
-
"aria-expanded":
|
|
3682
|
+
"aria-expanded": W,
|
|
3646
3683
|
"aria-haspopup": "listbox",
|
|
3647
3684
|
id: "kundli-form-lang",
|
|
3648
|
-
"aria-label":
|
|
3685
|
+
"aria-label": L("language"),
|
|
3649
3686
|
children: [
|
|
3650
3687
|
/* @__PURE__ */ e.jsx(
|
|
3651
|
-
|
|
3688
|
+
ee,
|
|
3652
3689
|
{
|
|
3653
|
-
src:
|
|
3690
|
+
src: ii,
|
|
3654
3691
|
alt: "",
|
|
3655
|
-
className:
|
|
3692
|
+
className: Ne.langIcon,
|
|
3656
3693
|
width: 16,
|
|
3657
3694
|
height: 16,
|
|
3658
3695
|
loading: "eager"
|
|
3659
3696
|
}
|
|
3660
3697
|
),
|
|
3661
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3698
|
+
/* @__PURE__ */ e.jsx("span", { className: Ne.langLabel, children: yt[K] })
|
|
3662
3699
|
]
|
|
3663
3700
|
}
|
|
3664
3701
|
),
|
|
3665
|
-
|
|
3702
|
+
W && /* @__PURE__ */ e.jsx(
|
|
3666
3703
|
"ul",
|
|
3667
3704
|
{
|
|
3668
|
-
className:
|
|
3705
|
+
className: Ne.langMenu,
|
|
3669
3706
|
role: "listbox",
|
|
3670
3707
|
"aria-labelledby": "kundli-form-lang",
|
|
3671
|
-
"aria-activedescendant": `kundli-form-lang-option-${
|
|
3672
|
-
children:
|
|
3708
|
+
"aria-activedescendant": `kundli-form-lang-option-${K}`,
|
|
3709
|
+
children: jt.map((_) => /* @__PURE__ */ e.jsx(
|
|
3673
3710
|
"li",
|
|
3674
3711
|
{
|
|
3675
|
-
id: `kundli-form-lang-option-${
|
|
3712
|
+
id: `kundli-form-lang-option-${_}`,
|
|
3676
3713
|
role: "option",
|
|
3677
|
-
"aria-selected":
|
|
3678
|
-
className:
|
|
3714
|
+
"aria-selected": _ === K,
|
|
3715
|
+
className: Ne.langOption,
|
|
3679
3716
|
onClick: () => {
|
|
3680
|
-
|
|
3717
|
+
ke?.trackLanguageChangedFe?.({ newLanguage: _ }), P(_), A(!1);
|
|
3681
3718
|
},
|
|
3682
|
-
children:
|
|
3719
|
+
children: yt[_]
|
|
3683
3720
|
},
|
|
3684
|
-
|
|
3721
|
+
_
|
|
3685
3722
|
))
|
|
3686
3723
|
}
|
|
3687
3724
|
)
|
|
3688
3725
|
] }) : null;
|
|
3689
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `${
|
|
3726
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${Ne.container} ${a}`, children: [
|
|
3690
3727
|
/* @__PURE__ */ e.jsx(
|
|
3691
|
-
|
|
3728
|
+
Kn,
|
|
3692
3729
|
{
|
|
3693
|
-
t:
|
|
3694
|
-
logoUrl:
|
|
3695
|
-
languageSelector:
|
|
3696
|
-
className:
|
|
3730
|
+
t: L,
|
|
3731
|
+
logoUrl: x ? v.config.logoUrl : void 0,
|
|
3732
|
+
languageSelector: _e,
|
|
3733
|
+
className: Ne.kundliHeaderNoBorder
|
|
3697
3734
|
}
|
|
3698
3735
|
),
|
|
3699
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3700
|
-
/* @__PURE__ */ e.jsxs("main", { className:
|
|
3701
|
-
/* @__PURE__ */ e.jsx(
|
|
3736
|
+
/* @__PURE__ */ e.jsx("div", { className: Ne.headerSeparator, "aria-hidden": !0 }),
|
|
3737
|
+
/* @__PURE__ */ e.jsxs("main", { className: Ne.main, children: [
|
|
3738
|
+
/* @__PURE__ */ e.jsx(va, { t: L, onBack: Pe }),
|
|
3702
3739
|
/* @__PURE__ */ e.jsx(
|
|
3703
3740
|
Pn,
|
|
3704
3741
|
{
|
|
3705
|
-
t:
|
|
3706
|
-
values:
|
|
3707
|
-
onChange:
|
|
3708
|
-
googleMapsApiKey:
|
|
3742
|
+
t: L,
|
|
3743
|
+
values: V,
|
|
3744
|
+
onChange: xe,
|
|
3745
|
+
googleMapsApiKey: M,
|
|
3709
3746
|
atlasSearchLocalities: N,
|
|
3710
3747
|
googleMapsAutocompleteEnabled: m,
|
|
3711
|
-
phoneIsdCode:
|
|
3712
|
-
onPhoneIsdCodeChange:
|
|
3713
|
-
showV1ExtraFields:
|
|
3714
|
-
analytics:
|
|
3748
|
+
phoneIsdCode: de,
|
|
3749
|
+
onPhoneIsdCodeChange: we,
|
|
3750
|
+
showV1ExtraFields: x ? v?.config.variant === "v1" : !1,
|
|
3751
|
+
analytics: ke
|
|
3715
3752
|
}
|
|
3716
3753
|
)
|
|
3717
3754
|
] }),
|
|
3718
3755
|
/* @__PURE__ */ e.jsx(
|
|
3719
|
-
|
|
3756
|
+
Gn,
|
|
3720
3757
|
{
|
|
3721
|
-
t:
|
|
3722
|
-
values:
|
|
3723
|
-
phoneIsdCode:
|
|
3724
|
-
onProceed:
|
|
3725
|
-
onProceedGuidance:
|
|
3726
|
-
href:
|
|
3727
|
-
originalPriceLabel:
|
|
3728
|
-
discountedPriceLabel:
|
|
3729
|
-
analytics:
|
|
3730
|
-
showPlanSheet:
|
|
3731
|
-
confirmPlan:
|
|
3732
|
-
planSheetOpen:
|
|
3733
|
-
selectedPlan:
|
|
3758
|
+
t: L,
|
|
3759
|
+
values: V,
|
|
3760
|
+
phoneIsdCode: de,
|
|
3761
|
+
onProceed: z,
|
|
3762
|
+
onProceedGuidance: Z,
|
|
3763
|
+
href: ie,
|
|
3764
|
+
originalPriceLabel: se,
|
|
3765
|
+
discountedPriceLabel: ne,
|
|
3766
|
+
analytics: ke,
|
|
3767
|
+
showPlanSheet: fe,
|
|
3768
|
+
confirmPlan: h,
|
|
3769
|
+
planSheetOpen: Ae,
|
|
3770
|
+
selectedPlan: he
|
|
3734
3771
|
}
|
|
3735
3772
|
),
|
|
3736
3773
|
v?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
|
|
3737
|
-
|
|
3774
|
+
oi,
|
|
3738
3775
|
{
|
|
3739
|
-
isOpen:
|
|
3740
|
-
onClose: () =>
|
|
3741
|
-
selectedPlan:
|
|
3742
|
-
onSelectPlan:
|
|
3776
|
+
isOpen: Ae,
|
|
3777
|
+
onClose: () => me(!1),
|
|
3778
|
+
selectedPlan: he,
|
|
3779
|
+
onSelectPlan: Ce,
|
|
3743
3780
|
onProceed: () => {
|
|
3744
|
-
|
|
3781
|
+
h?.();
|
|
3745
3782
|
},
|
|
3746
|
-
t:
|
|
3747
|
-
analytics:
|
|
3783
|
+
t: L,
|
|
3784
|
+
analytics: ke
|
|
3748
3785
|
}
|
|
3749
3786
|
)
|
|
3750
3787
|
] });
|
|
3751
|
-
},
|
|
3788
|
+
}, bi = {
|
|
3752
3789
|
banner_clicked_fe: "banner_clicked_fe",
|
|
3753
3790
|
primary_cta_clicked_fe: "primary_cta_clicked_fe",
|
|
3754
3791
|
language_changed_fe: "language_changed_fe",
|
|
@@ -3821,34 +3858,34 @@ const yn = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3821
3858
|
kundli_view_sample_image_closed: "kundli_view_sample_image_closed"
|
|
3822
3859
|
};
|
|
3823
3860
|
export {
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3861
|
+
ai as C,
|
|
3862
|
+
qe as D,
|
|
3863
|
+
va as F,
|
|
3864
|
+
pi as I,
|
|
3865
|
+
bi as K,
|
|
3866
|
+
yt as L,
|
|
3867
|
+
Nt as P,
|
|
3868
|
+
jt as S,
|
|
3832
3869
|
Pn as U,
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3870
|
+
Ct as a,
|
|
3871
|
+
it as b,
|
|
3872
|
+
_i as c,
|
|
3873
|
+
fi as d,
|
|
3874
|
+
ga as e,
|
|
3875
|
+
_a as f,
|
|
3876
|
+
ha as g,
|
|
3877
|
+
Ee as h,
|
|
3878
|
+
hi as i,
|
|
3879
|
+
gi as j,
|
|
3880
|
+
ri as k,
|
|
3844
3881
|
e as l,
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3882
|
+
Kn as m,
|
|
3883
|
+
st as n,
|
|
3884
|
+
Gn as o,
|
|
3885
|
+
oi as p,
|
|
3886
|
+
mi as r,
|
|
3887
|
+
fa as s,
|
|
3888
|
+
Tt as t,
|
|
3889
|
+
ma as u
|
|
3853
3890
|
};
|
|
3854
|
-
//# sourceMappingURL=analytics-
|
|
3891
|
+
//# sourceMappingURL=analytics-0QVsaAgj.js.map
|