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