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