@srimandir/kundli-generator 7.5.18 → 7.5.19
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-D95bvHFk.js} +1387 -1319
- package/dist/analytics-D95bvHFk.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-DVDUtIU9.js} +2 -2
- package/dist/{criticalCss-BK2ASHir.js.map → criticalCss-DVDUtIU9.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 ht;
|
|
5
|
+
function Xt() {
|
|
6
|
+
if (ht) return Ke;
|
|
7
|
+
ht = 1;
|
|
8
|
+
var a = at, o = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, u = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
|
+
function f(C, w, $) {
|
|
10
|
+
var M, N = {}, m = null, G = null;
|
|
11
|
+
$ !== void 0 && (m = "" + $), w.key !== void 0 && (m = "" + w.key), w.ref !== void 0 && (G = w.ref);
|
|
12
|
+
for (M in w) h.call(w, M) && !_.hasOwnProperty(M) && (N[M] = w[M]);
|
|
13
|
+
if (C && C.defaultProps) for (M in w = C.defaultProps, w) N[M] === void 0 && (N[M] = w[M]);
|
|
14
|
+
return { $$typeof: o, type: C, key: m, ref: G, props: N, _owner: u.current };
|
|
15
15
|
}
|
|
16
|
-
return
|
|
16
|
+
return Ke.Fragment = s, Ke.jsx = f, Ke.jsxs = f, Ke;
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var We = {};
|
|
19
19
|
var ft;
|
|
20
|
-
function
|
|
20
|
+
function Zt() {
|
|
21
21
|
return ft || (ft = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
-
var a =
|
|
23
|
-
function
|
|
22
|
+
var a = at, o = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.portal"), h = /* @__PURE__ */ Symbol.for("react.fragment"), u = /* @__PURE__ */ Symbol.for("react.strict_mode"), _ = /* @__PURE__ */ Symbol.for("react.profiler"), f = /* @__PURE__ */ Symbol.for("react.provider"), C = /* @__PURE__ */ Symbol.for("react.context"), w = /* @__PURE__ */ Symbol.for("react.forward_ref"), $ = /* @__PURE__ */ Symbol.for("react.suspense"), M = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), G = /* @__PURE__ */ Symbol.for("react.offscreen"), x = Symbol.iterator, H = "@@iterator";
|
|
23
|
+
function y(t) {
|
|
24
24
|
if (t === null || typeof t != "object")
|
|
25
25
|
return null;
|
|
26
|
-
var
|
|
27
|
-
return typeof
|
|
26
|
+
var l = x && t[x] || t[H];
|
|
27
|
+
return typeof l == "function" ? l : null;
|
|
28
28
|
}
|
|
29
29
|
var g = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
30
|
-
function
|
|
30
|
+
function P(t) {
|
|
31
31
|
{
|
|
32
|
-
for (var
|
|
33
|
-
d[
|
|
34
|
-
|
|
32
|
+
for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), b = 1; b < l; b++)
|
|
33
|
+
d[b - 1] = arguments[b];
|
|
34
|
+
Z("error", t, d);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Z(t, l, d) {
|
|
38
38
|
{
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
var
|
|
42
|
-
return String(
|
|
39
|
+
var b = g.ReactDebugCurrentFrame, W = b.getStackAddendum();
|
|
40
|
+
W !== "" && (l += "%s", d = d.concat([W]));
|
|
41
|
+
var z = d.map(function(B) {
|
|
42
|
+
return String(B);
|
|
43
43
|
});
|
|
44
|
-
|
|
44
|
+
z.unshift("Warning: " + l), 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 ===
|
|
47
|
+
var j = !1, U = !1, S = !1, K = !1, A = !1, L;
|
|
48
|
+
L = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
|
+
function ne(t) {
|
|
50
|
+
return !!(typeof t == "string" || typeof t == "function" || t === h || t === _ || A || t === u || t === $ || t === M || K || t === G || j || U || S || typeof t == "object" && t !== null && (t.$$typeof === m || t.$$typeof === N || t.$$typeof === f || t.$$typeof === C || t.$$typeof === w || // 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, l, d) {
|
|
57
|
+
var b = t.displayName;
|
|
58
|
+
if (b)
|
|
59
|
+
return b;
|
|
60
|
+
var W = l.displayName || l.name || "";
|
|
61
|
+
return W !== "" ? d + "(" + W + ")" : d;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function O(t) {
|
|
64
64
|
return t.displayName || "Context";
|
|
65
65
|
}
|
|
66
66
|
function I(t) {
|
|
67
67
|
if (t == null)
|
|
68
68
|
return null;
|
|
69
|
-
if (typeof t.tag == "number" &&
|
|
69
|
+
if (typeof t.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
70
70
|
return t.displayName || t.name || null;
|
|
71
71
|
if (typeof t == "string")
|
|
72
72
|
return t;
|
|
73
73
|
switch (t) {
|
|
74
|
-
case
|
|
74
|
+
case h:
|
|
75
75
|
return "Fragment";
|
|
76
|
-
case
|
|
76
|
+
case s:
|
|
77
77
|
return "Portal";
|
|
78
78
|
case _:
|
|
79
79
|
return "Profiler";
|
|
80
80
|
case u:
|
|
81
81
|
return "StrictMode";
|
|
82
|
-
case
|
|
82
|
+
case $:
|
|
83
83
|
return "Suspense";
|
|
84
|
-
case
|
|
84
|
+
case M:
|
|
85
85
|
return "SuspenseList";
|
|
86
86
|
}
|
|
87
87
|
if (typeof t == "object")
|
|
88
88
|
switch (t.$$typeof) {
|
|
89
|
-
case
|
|
90
|
-
var
|
|
91
|
-
return
|
|
92
|
-
case
|
|
89
|
+
case C:
|
|
90
|
+
var l = t;
|
|
91
|
+
return O(l) + ".Consumer";
|
|
92
|
+
case f:
|
|
93
93
|
var d = t;
|
|
94
|
-
return
|
|
94
|
+
return O(d._context) + ".Provider";
|
|
95
95
|
case w:
|
|
96
|
-
return
|
|
97
|
-
case
|
|
98
|
-
var
|
|
99
|
-
return
|
|
100
|
-
case
|
|
101
|
-
var
|
|
96
|
+
return Y(t, t.render, "ForwardRef");
|
|
97
|
+
case N:
|
|
98
|
+
var b = t.displayName || null;
|
|
99
|
+
return b !== null ? b : I(t.type) || "Memo";
|
|
100
|
+
case m: {
|
|
101
|
+
var W = t, z = W._payload, B = W._init;
|
|
102
102
|
try {
|
|
103
|
-
return I(
|
|
103
|
+
return I(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 E = Object.assign, Q = 0, F, ce, ee, le, se, te, ke;
|
|
112
|
+
function fe() {
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
function
|
|
114
|
+
fe.__reactDisabledLog = !0;
|
|
115
|
+
function Te() {
|
|
116
116
|
{
|
|
117
|
-
if (
|
|
118
|
-
|
|
117
|
+
if (Q === 0) {
|
|
118
|
+
F = console.log, ce = console.info, ee = console.warn, le = console.error, se = console.group, te = console.groupCollapsed, ke = console.groupEnd;
|
|
119
119
|
var t = {
|
|
120
120
|
configurable: !0,
|
|
121
121
|
enumerable: !0,
|
|
122
|
-
value:
|
|
122
|
+
value: fe,
|
|
123
123
|
writable: !0
|
|
124
124
|
};
|
|
125
125
|
Object.defineProperties(console, {
|
|
@@ -132,208 +132,208 @@ 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: E({}, t, {
|
|
148
|
+
value: F
|
|
149
149
|
}),
|
|
150
|
-
info:
|
|
151
|
-
value:
|
|
150
|
+
info: E({}, t, {
|
|
151
|
+
value: ce
|
|
152
152
|
}),
|
|
153
|
-
warn:
|
|
154
|
-
value:
|
|
153
|
+
warn: E({}, t, {
|
|
154
|
+
value: ee
|
|
155
155
|
}),
|
|
156
|
-
error:
|
|
157
|
-
value:
|
|
156
|
+
error: E({}, t, {
|
|
157
|
+
value: le
|
|
158
158
|
}),
|
|
159
|
-
group:
|
|
160
|
-
value:
|
|
159
|
+
group: E({}, t, {
|
|
160
|
+
value: se
|
|
161
161
|
}),
|
|
162
|
-
groupCollapsed:
|
|
163
|
-
value:
|
|
162
|
+
groupCollapsed: E({}, t, {
|
|
163
|
+
value: te
|
|
164
164
|
}),
|
|
165
|
-
groupEnd:
|
|
166
|
-
value:
|
|
165
|
+
groupEnd: E({}, t, {
|
|
166
|
+
value: ke
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
Q < 0 && P("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 = g.ReactCurrentDispatcher, i;
|
|
174
|
+
function k(t, l, d) {
|
|
175
175
|
{
|
|
176
|
-
if (
|
|
176
|
+
if (i === 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
|
+
i = b && b[1] || "";
|
|
182
182
|
}
|
|
183
183
|
return `
|
|
184
|
-
` +
|
|
184
|
+
` + i + t;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var ae = !1, ie;
|
|
188
188
|
{
|
|
189
|
-
var
|
|
190
|
-
|
|
189
|
+
var ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
|
+
ie = new ve();
|
|
191
191
|
}
|
|
192
|
-
function Se(t,
|
|
193
|
-
if (!t ||
|
|
192
|
+
function Se(t, l) {
|
|
193
|
+
if (!t || ae)
|
|
194
194
|
return "";
|
|
195
195
|
{
|
|
196
|
-
var d =
|
|
196
|
+
var d = ie.get(t);
|
|
197
197
|
if (d !== void 0)
|
|
198
198
|
return d;
|
|
199
199
|
}
|
|
200
|
-
var
|
|
201
|
-
|
|
202
|
-
var
|
|
200
|
+
var b;
|
|
201
|
+
ae = !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, Te();
|
|
206
206
|
try {
|
|
207
|
-
if (
|
|
208
|
-
var
|
|
207
|
+
if (l) {
|
|
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 (he) {
|
|
219
|
+
b = he;
|
|
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 (he) {
|
|
226
|
+
b = he;
|
|
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 (he) {
|
|
234
|
+
b = he;
|
|
235
235
|
}
|
|
236
236
|
t();
|
|
237
237
|
}
|
|
238
|
-
} catch (
|
|
239
|
-
if (
|
|
240
|
-
for (var R =
|
|
241
|
-
`),
|
|
242
|
-
`),
|
|
243
|
-
|
|
244
|
-
for (;
|
|
245
|
-
if (R[
|
|
246
|
-
if (
|
|
238
|
+
} catch (he) {
|
|
239
|
+
if (he && b && typeof he.stack == "string") {
|
|
240
|
+
for (var R = he.stack.split(`
|
|
241
|
+
`), pe = b.stack.split(`
|
|
242
|
+
`), re = R.length - 1, oe = pe.length - 1; re >= 1 && oe >= 0 && R[re] !== pe[oe]; )
|
|
243
|
+
oe--;
|
|
244
|
+
for (; re >= 1 && oe >= 0; re--, oe--)
|
|
245
|
+
if (R[re] !== pe[oe]) {
|
|
246
|
+
if (re !== 1 || oe !== 1)
|
|
247
247
|
do
|
|
248
|
-
if (
|
|
249
|
-
var
|
|
250
|
-
` + R[
|
|
251
|
-
return t.displayName &&
|
|
248
|
+
if (re--, oe--, oe < 0 || R[re] !== pe[oe]) {
|
|
249
|
+
var be = `
|
|
250
|
+
` + R[re].replace(" at new ", " at ");
|
|
251
|
+
return t.displayName && be.includes("<anonymous>") && (be = be.replace("<anonymous>", t.displayName)), typeof t == "function" && ie.set(t, be), be;
|
|
252
252
|
}
|
|
253
|
-
while (
|
|
253
|
+
while (re >= 1 && oe >= 0);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
} finally {
|
|
258
|
-
|
|
258
|
+
ae = !1, X.current = z, me(), Error.prepareStackTrace = W;
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
return typeof t == "function" &&
|
|
260
|
+
var Me = t ? t.displayName || t.name : "", Ae = Me ? k(Me) : "";
|
|
261
|
+
return typeof t == "function" && ie.set(t, Ae), Ae;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function de(t, l, d) {
|
|
264
264
|
return Se(t, !1);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
var
|
|
268
|
-
return !!(
|
|
266
|
+
function ue(t) {
|
|
267
|
+
var l = t.prototype;
|
|
268
|
+
return !!(l && l.isReactComponent);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function je(t, l, d) {
|
|
271
271
|
if (t == null)
|
|
272
272
|
return "";
|
|
273
273
|
if (typeof t == "function")
|
|
274
|
-
return Se(t,
|
|
274
|
+
return Se(t, ue(t));
|
|
275
275
|
if (typeof t == "string")
|
|
276
|
-
return
|
|
276
|
+
return k(t);
|
|
277
277
|
switch (t) {
|
|
278
|
-
case
|
|
279
|
-
return
|
|
280
|
-
case
|
|
281
|
-
return
|
|
278
|
+
case $:
|
|
279
|
+
return k("Suspense");
|
|
280
|
+
case M:
|
|
281
|
+
return k("SuspenseList");
|
|
282
282
|
}
|
|
283
283
|
if (typeof t == "object")
|
|
284
284
|
switch (t.$$typeof) {
|
|
285
285
|
case w:
|
|
286
|
-
return
|
|
287
|
-
case
|
|
288
|
-
return
|
|
289
|
-
case
|
|
290
|
-
var
|
|
286
|
+
return de(t.render);
|
|
287
|
+
case N:
|
|
288
|
+
return je(t.type, l, d);
|
|
289
|
+
case m: {
|
|
290
|
+
var b = t, W = b._payload, z = b._init;
|
|
291
291
|
try {
|
|
292
|
-
return
|
|
292
|
+
return je(z(W), l, 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 = g.ReactDebugCurrentFrame;
|
|
300
300
|
function Pe(t) {
|
|
301
301
|
if (t) {
|
|
302
|
-
var
|
|
302
|
+
var l = t._owner, d = je(t.type, t._source, l ? l.type : null);
|
|
303
303
|
we.setExtraStackFrame(d);
|
|
304
304
|
} else
|
|
305
305
|
we.setExtraStackFrame(null);
|
|
306
306
|
}
|
|
307
|
-
function Ie(t,
|
|
307
|
+
function Ie(t, l, 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[
|
|
319
|
-
} catch (
|
|
320
|
-
R =
|
|
318
|
+
R = t[B](l, B, b, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
|
+
} catch (re) {
|
|
320
|
+
R = re;
|
|
321
321
|
}
|
|
322
|
-
R && !(R instanceof Error) && (Pe(
|
|
322
|
+
R && !(R instanceof Error) && (Pe(W), P("%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), P("Failed %s type: %s", d, R.message), Pe(null));
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
var
|
|
327
|
-
function
|
|
328
|
-
return
|
|
326
|
+
var Ee = Array.isArray;
|
|
327
|
+
function T(t) {
|
|
328
|
+
return Ee(t);
|
|
329
329
|
}
|
|
330
330
|
function Be(t) {
|
|
331
331
|
{
|
|
332
|
-
var
|
|
332
|
+
var l = typeof Symbol == "function" && Symbol.toStringTag, d = l && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
333
333
|
return d;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Fe(t) {
|
|
337
337
|
try {
|
|
338
338
|
return $e(t), !1;
|
|
339
339
|
} catch {
|
|
@@ -344,38 +344,38 @@ function Qt() {
|
|
|
344
344
|
return "" + t;
|
|
345
345
|
}
|
|
346
346
|
function Ge(t) {
|
|
347
|
-
if (
|
|
348
|
-
return
|
|
347
|
+
if (Fe(t))
|
|
348
|
+
return P("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
350
|
var r = g.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
|
-
var
|
|
359
|
-
if (
|
|
358
|
+
var l = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
359
|
+
if (l && l.isReactWarning)
|
|
360
360
|
return !1;
|
|
361
361
|
}
|
|
362
362
|
return t.ref !== void 0;
|
|
363
363
|
}
|
|
364
364
|
function ze(t) {
|
|
365
365
|
if (xe.call(t, "key")) {
|
|
366
|
-
var
|
|
367
|
-
if (
|
|
366
|
+
var l = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
367
|
+
if (l && l.isReactWarning)
|
|
368
368
|
return !1;
|
|
369
369
|
}
|
|
370
370
|
return t.key !== void 0;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Rt(t, l) {
|
|
373
373
|
typeof t.ref == "string" && r.current;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Lt(t, l) {
|
|
376
376
|
{
|
|
377
377
|
var d = function() {
|
|
378
|
-
|
|
378
|
+
V || (V = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
379
379
|
};
|
|
380
380
|
d.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
381
381
|
get: d,
|
|
@@ -383,10 +383,10 @@ function Qt() {
|
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function It(t, l) {
|
|
387
387
|
{
|
|
388
388
|
var d = function() {
|
|
389
|
-
|
|
389
|
+
_e || (_e = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
390
390
|
};
|
|
391
391
|
d.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
392
392
|
get: d,
|
|
@@ -394,17 +394,17 @@ function Qt() {
|
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
var Et = function(t,
|
|
397
|
+
var Et = function(t, l, 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,
|
|
401
401
|
// Built-in properties that belong on the element
|
|
402
402
|
type: t,
|
|
403
|
-
key:
|
|
403
|
+
key: l,
|
|
404
404
|
ref: d,
|
|
405
|
-
props:
|
|
405
|
+
props: 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, l, d, b, W) {
|
|
427
427
|
{
|
|
428
|
-
var
|
|
429
|
-
d !== void 0 && (Ge(d), R = "" + d), ze(
|
|
430
|
-
for (
|
|
431
|
-
xe.call(
|
|
428
|
+
var z, B = {}, R = null, pe = null;
|
|
429
|
+
d !== void 0 && (Ge(d), R = "" + d), ze(l) && (Ge(l.key), R = "" + l.key), Ue(l) && (pe = l.ref, Rt(l, W));
|
|
430
|
+
for (z in l)
|
|
431
|
+
xe.call(l, z) && !c.hasOwnProperty(z) && (B[z] = l[z]);
|
|
432
432
|
if (t && t.defaultProps) {
|
|
433
|
-
var
|
|
434
|
-
for (
|
|
435
|
-
|
|
433
|
+
var re = t.defaultProps;
|
|
434
|
+
for (z in re)
|
|
435
|
+
B[z] === void 0 && (B[z] = re[z]);
|
|
436
436
|
}
|
|
437
|
-
if (R ||
|
|
438
|
-
var
|
|
439
|
-
R &&
|
|
437
|
+
if (R || pe) {
|
|
438
|
+
var oe = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
439
|
+
R && Lt(B, oe), pe && It(B, oe);
|
|
440
440
|
}
|
|
441
|
-
return Et(t, R,
|
|
441
|
+
return Et(t, R, pe, W, b, r.current, B);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
var Je = g.ReactCurrentOwner,
|
|
444
|
+
var Je = g.ReactCurrentOwner, lt = g.ReactDebugCurrentFrame;
|
|
445
445
|
function De(t) {
|
|
446
446
|
if (t) {
|
|
447
|
-
var
|
|
448
|
-
|
|
447
|
+
var l = t._owner, d = je(t.type, t._source, l ? l.type : null);
|
|
448
|
+
lt.setExtraStackFrame(d);
|
|
449
449
|
} else
|
|
450
|
-
|
|
450
|
+
lt.setExtraStackFrame(null);
|
|
451
451
|
}
|
|
452
452
|
var Qe;
|
|
453
453
|
Qe = !1;
|
|
@@ -466,166 +466,166 @@ 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 Mt(t) {
|
|
474
474
|
{
|
|
475
|
-
var
|
|
476
|
-
if (!
|
|
475
|
+
var l = st();
|
|
476
|
+
if (!l) {
|
|
477
477
|
var d = typeof t == "string" ? t : t.displayName || t.name;
|
|
478
|
-
d && (
|
|
478
|
+
d && (l = `
|
|
479
479
|
|
|
480
480
|
Check the top-level render call using <` + d + ">.");
|
|
481
481
|
}
|
|
482
|
-
return
|
|
482
|
+
return l;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function dt(t, l) {
|
|
486
486
|
{
|
|
487
487
|
if (!t._store || t._store.validated || t.key != null)
|
|
488
488
|
return;
|
|
489
489
|
t._store.validated = !0;
|
|
490
|
-
var d =
|
|
491
|
-
if (
|
|
490
|
+
var d = Mt(l);
|
|
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 " + I(t._owner.type) + "."), De(t), P('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, l) {
|
|
499
499
|
{
|
|
500
500
|
if (typeof t != "object")
|
|
501
501
|
return;
|
|
502
|
-
if (
|
|
502
|
+
if (T(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, l);
|
|
506
506
|
}
|
|
507
507
|
else if (Xe(t))
|
|
508
508
|
t._store && (t._store.validated = !0);
|
|
509
509
|
else if (t) {
|
|
510
|
-
var
|
|
511
|
-
if (typeof
|
|
512
|
-
for (var
|
|
513
|
-
Xe(
|
|
510
|
+
var 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, l);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function Ot(t) {
|
|
518
518
|
{
|
|
519
|
-
var
|
|
520
|
-
if (
|
|
519
|
+
var l = t.type;
|
|
520
|
+
if (l == null || typeof l == "string")
|
|
521
521
|
return;
|
|
522
522
|
var d;
|
|
523
|
-
if (typeof
|
|
524
|
-
d =
|
|
525
|
-
else if (typeof
|
|
523
|
+
if (typeof l == "function")
|
|
524
|
+
d = l.propTypes;
|
|
525
|
+
else if (typeof l == "object" && (l.$$typeof === w || // Note: Memo only checks outer props here.
|
|
526
526
|
// Inner props are checked in the reconciler.
|
|
527
|
-
|
|
528
|
-
d =
|
|
527
|
+
l.$$typeof === N))
|
|
528
|
+
d = l.propTypes;
|
|
529
529
|
else
|
|
530
530
|
return;
|
|
531
531
|
if (d) {
|
|
532
|
-
var
|
|
533
|
-
Ie(d, t.props, "prop",
|
|
534
|
-
} else if (
|
|
532
|
+
var b = I(l);
|
|
533
|
+
Ie(d, t.props, "prop", b, t);
|
|
534
|
+
} else if (l.PropTypes !== void 0 && !Qe) {
|
|
535
535
|
Qe = !0;
|
|
536
|
-
var
|
|
537
|
-
|
|
536
|
+
var W = I(l);
|
|
537
|
+
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
|
|
538
538
|
}
|
|
539
|
-
typeof
|
|
539
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
function Ft(t) {
|
|
543
543
|
{
|
|
544
|
-
for (var
|
|
545
|
-
var
|
|
546
|
-
if (
|
|
547
|
-
De(t),
|
|
544
|
+
for (var l = Object.keys(t.props), d = 0; d < l.length; d++) {
|
|
545
|
+
var b = l[d];
|
|
546
|
+
if (b !== "children" && b !== "key") {
|
|
547
|
+
De(t), P("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), P("Invalid attribute `ref` supplied to `React.Fragment`."), De(null));
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
var
|
|
555
|
-
function
|
|
554
|
+
var pt = {};
|
|
555
|
+
function mt(t, l, d, b, W, z) {
|
|
556
556
|
{
|
|
557
|
-
var
|
|
558
|
-
if (!
|
|
557
|
+
var B = ne(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
|
-
|
|
563
|
-
var
|
|
564
|
-
t === null ?
|
|
561
|
+
var pe = Dt();
|
|
562
|
+
pe ? R += pe : R += st();
|
|
563
|
+
var re;
|
|
564
|
+
t === null ? re = "null" : T(t) ? re = "array" : t !== void 0 && t.$$typeof === o ? (re = "<" + (I(t.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : re = typeof t, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", re, 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 oe = Bt(t, l, d, W, z);
|
|
567
|
+
if (oe == null)
|
|
568
|
+
return oe;
|
|
569
|
+
if (B) {
|
|
570
|
+
var be = l.children;
|
|
571
|
+
if (be !== void 0)
|
|
572
|
+
if (b)
|
|
573
|
+
if (T(be)) {
|
|
574
|
+
for (var Me = 0; Me < be.length; Me++)
|
|
575
|
+
ut(be[Me], t);
|
|
576
|
+
Object.freeze && Object.freeze(be);
|
|
577
577
|
} else
|
|
578
|
-
|
|
578
|
+
P("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
|
-
if (xe.call(
|
|
583
|
-
var
|
|
584
|
-
return
|
|
585
|
-
}), Ze =
|
|
586
|
-
if (!
|
|
587
|
-
var
|
|
588
|
-
|
|
582
|
+
if (xe.call(l, "key")) {
|
|
583
|
+
var Ae = I(t), he = Object.keys(l).filter(function(Ht) {
|
|
584
|
+
return Ht !== "key";
|
|
585
|
+
}), Ze = he.length > 0 ? "{key: someKey, " + he.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
|
+
if (!pt[Ae + Ze]) {
|
|
587
|
+
var Wt = he.length > 0 ? "{" + he.join(": ..., ") + ": ...}" : "{}";
|
|
588
|
+
P(`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 ===
|
|
596
|
+
return t === h ? Ft(oe) : Ot(oe), oe;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
return
|
|
599
|
+
function $t(t, l, d) {
|
|
600
|
+
return mt(t, l, d, !0);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
return
|
|
602
|
+
function Gt(t, l, d) {
|
|
603
|
+
return mt(t, l, d, !1);
|
|
604
604
|
}
|
|
605
|
-
var
|
|
606
|
-
|
|
607
|
-
})()),
|
|
605
|
+
var Ut = Gt, Kt = $t;
|
|
606
|
+
We.Fragment = h, 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", Ce = {
|
|
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
|
+
}, Ct = xt(null), di = ({
|
|
1095
1097
|
locale: a,
|
|
1096
1098
|
children: o
|
|
1097
1099
|
}) => {
|
|
1098
|
-
const
|
|
1099
|
-
return /* @__PURE__ */ e.jsx(
|
|
1100
|
+
const h = { locale: a, t: (u) => Pt[a]?.[u] ?? u };
|
|
1101
|
+
return /* @__PURE__ */ e.jsx(Ct.Provider, { value: h, children: o });
|
|
1100
1102
|
};
|
|
1101
|
-
function
|
|
1102
|
-
return
|
|
1103
|
+
function ua() {
|
|
1104
|
+
return rt(Ct);
|
|
1103
1105
|
}
|
|
1104
1106
|
const Ye = (a) => {
|
|
1105
|
-
const { priority: o, fetchPriority:
|
|
1106
|
-
return
|
|
1107
|
+
const { priority: o, fetchPriority: s, width: h, height: u, ..._ } = a;
|
|
1108
|
+
return at.createElement("img", {
|
|
1107
1109
|
..._,
|
|
1108
|
-
width:
|
|
1110
|
+
width: h ?? 1,
|
|
1109
1111
|
height: u ?? 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 ui(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 pi() {
|
|
1139
1141
|
if (typeof window > "u" || !window.localStorage)
|
|
1140
1142
|
return !1;
|
|
1141
1143
|
try {
|
|
@@ -1145,15 +1147,15 @@ function ri() {
|
|
|
1145
1147
|
return !1;
|
|
1146
1148
|
}
|
|
1147
1149
|
}
|
|
1148
|
-
const
|
|
1149
|
-
function
|
|
1150
|
-
const a =
|
|
1151
|
-
return a &&
|
|
1150
|
+
const Tt = "kundli_language";
|
|
1151
|
+
function ha() {
|
|
1152
|
+
const a = pa(Tt);
|
|
1153
|
+
return a && wt.includes(a) ? a : null;
|
|
1152
1154
|
}
|
|
1153
|
-
function
|
|
1154
|
-
|
|
1155
|
+
function fa(a) {
|
|
1156
|
+
ma(Tt, a);
|
|
1155
1157
|
}
|
|
1156
|
-
const
|
|
1158
|
+
const nt = xt(null), ga = {
|
|
1157
1159
|
fullName: "",
|
|
1158
1160
|
phone: "",
|
|
1159
1161
|
phoneCountryCode: "",
|
|
@@ -1164,256 +1166,256 @@ const rt = kt(null), fa = {
|
|
|
1164
1166
|
birthTime: "",
|
|
1165
1167
|
birthTimeUnknown: !1,
|
|
1166
1168
|
birthPlace: ""
|
|
1167
|
-
},
|
|
1169
|
+
}, mi = ({
|
|
1168
1170
|
locale: a,
|
|
1169
1171
|
showLanguageSelector: o = !0,
|
|
1170
|
-
showSheet:
|
|
1171
|
-
userId:
|
|
1172
|
+
showSheet: s,
|
|
1173
|
+
userId: h,
|
|
1172
1174
|
isGlobal: u,
|
|
1173
1175
|
variant: _,
|
|
1174
|
-
initialFormValues:
|
|
1175
|
-
autoOpenPlanSheet:
|
|
1176
|
+
initialFormValues: f,
|
|
1177
|
+
autoOpenPlanSheet: C,
|
|
1176
1178
|
googleMapsApiKey: w,
|
|
1177
|
-
atlasSearchLocalities:
|
|
1178
|
-
googleMapsAutocompleteEnabled:
|
|
1179
|
-
enableConsultationScheduling:
|
|
1180
|
-
fetchConsultationSlots:
|
|
1181
|
-
logoUrl:
|
|
1182
|
-
reportImageUrl:
|
|
1183
|
-
reportImagePriority:
|
|
1184
|
-
backgroundImagePriority:
|
|
1179
|
+
atlasSearchLocalities: $,
|
|
1180
|
+
googleMapsAutocompleteEnabled: M,
|
|
1181
|
+
enableConsultationScheduling: N,
|
|
1182
|
+
fetchConsultationSlots: m,
|
|
1183
|
+
logoUrl: G,
|
|
1184
|
+
reportImageUrl: x,
|
|
1185
|
+
reportImagePriority: H,
|
|
1186
|
+
backgroundImagePriority: y,
|
|
1185
1187
|
universityLogoUrls: g,
|
|
1186
|
-
sampleReportHref:
|
|
1187
|
-
onViewSampleReport:
|
|
1188
|
-
ctaHref:
|
|
1189
|
-
onCtaClick:
|
|
1190
|
-
onBack:
|
|
1191
|
-
readMoreReviewsHref:
|
|
1192
|
-
onProceed:
|
|
1193
|
-
proceedHref:
|
|
1194
|
-
originalPriceLabel:
|
|
1195
|
-
discountedPriceLabel:
|
|
1196
|
-
discountPillLabel:
|
|
1188
|
+
sampleReportHref: P,
|
|
1189
|
+
onViewSampleReport: Z,
|
|
1190
|
+
ctaHref: j,
|
|
1191
|
+
onCtaClick: U,
|
|
1192
|
+
onBack: S,
|
|
1193
|
+
readMoreReviewsHref: K,
|
|
1194
|
+
onProceed: A,
|
|
1195
|
+
proceedHref: L,
|
|
1196
|
+
originalPriceLabel: ne,
|
|
1197
|
+
discountedPriceLabel: Y,
|
|
1198
|
+
discountPillLabel: O,
|
|
1197
1199
|
analytics: I,
|
|
1198
|
-
onProceedGuidance:
|
|
1199
|
-
onLocaleChange:
|
|
1200
|
-
imageComponent:
|
|
1201
|
-
resolvedUtmBannerImageUrl:
|
|
1202
|
-
children:
|
|
1200
|
+
onProceedGuidance: E,
|
|
1201
|
+
onLocaleChange: Q,
|
|
1202
|
+
imageComponent: F = Ye,
|
|
1203
|
+
resolvedUtmBannerImageUrl: ce,
|
|
1204
|
+
children: ee
|
|
1203
1205
|
}) => {
|
|
1204
|
-
const [
|
|
1205
|
-
...
|
|
1206
|
-
...
|
|
1207
|
-
}),
|
|
1206
|
+
const [le, se] = D("landing"), [te, ke] = D(a ?? "en"), [fe, Te] = D({
|
|
1207
|
+
...ga,
|
|
1208
|
+
...f
|
|
1209
|
+
}), me = q(!0);
|
|
1208
1210
|
J(() => {
|
|
1209
|
-
const
|
|
1210
|
-
|
|
1211
|
+
const ie = ha();
|
|
1212
|
+
ie && ke(ie);
|
|
1211
1213
|
}, []), J(() => {
|
|
1212
|
-
|
|
1213
|
-
}, [
|
|
1214
|
-
if (
|
|
1215
|
-
|
|
1214
|
+
fa(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:
|
|
1225
|
-
userId:
|
|
1226
|
+
showSheet: s,
|
|
1227
|
+
userId: h,
|
|
1226
1228
|
isGlobal: u,
|
|
1227
1229
|
variant: _,
|
|
1228
|
-
initialFormValues:
|
|
1229
|
-
autoOpenPlanSheet:
|
|
1230
|
+
initialFormValues: f,
|
|
1231
|
+
autoOpenPlanSheet: C,
|
|
1230
1232
|
googleMapsApiKey: w,
|
|
1231
|
-
atlasSearchLocalities:
|
|
1232
|
-
googleMapsAutocompleteEnabled:
|
|
1233
|
-
enableConsultationScheduling:
|
|
1234
|
-
fetchConsultationSlots:
|
|
1235
|
-
logoUrl:
|
|
1236
|
-
reportImageUrl:
|
|
1237
|
-
reportImagePriority:
|
|
1238
|
-
backgroundImagePriority:
|
|
1233
|
+
atlasSearchLocalities: $,
|
|
1234
|
+
googleMapsAutocompleteEnabled: M,
|
|
1235
|
+
enableConsultationScheduling: N,
|
|
1236
|
+
fetchConsultationSlots: m,
|
|
1237
|
+
logoUrl: G,
|
|
1238
|
+
reportImageUrl: x,
|
|
1239
|
+
reportImagePriority: H,
|
|
1240
|
+
backgroundImagePriority: y,
|
|
1239
1241
|
universityLogoUrls: g,
|
|
1240
|
-
sampleReportHref:
|
|
1241
|
-
onViewSampleReport:
|
|
1242
|
-
ctaHref:
|
|
1243
|
-
onCtaClick:
|
|
1244
|
-
onBack:
|
|
1245
|
-
readMoreReviewsHref:
|
|
1246
|
-
onProceed:
|
|
1247
|
-
proceedHref:
|
|
1248
|
-
originalPriceLabel:
|
|
1249
|
-
discountedPriceLabel:
|
|
1250
|
-
discountPillLabel:
|
|
1242
|
+
sampleReportHref: P,
|
|
1243
|
+
onViewSampleReport: Z,
|
|
1244
|
+
ctaHref: j,
|
|
1245
|
+
onCtaClick: U,
|
|
1246
|
+
onBack: S,
|
|
1247
|
+
readMoreReviewsHref: K,
|
|
1248
|
+
onProceed: A,
|
|
1249
|
+
proceedHref: L,
|
|
1250
|
+
originalPriceLabel: ne,
|
|
1251
|
+
discountedPriceLabel: Y,
|
|
1252
|
+
discountPillLabel: O,
|
|
1251
1253
|
analytics: I,
|
|
1252
|
-
onProceedGuidance:
|
|
1253
|
-
onLocaleChange:
|
|
1254
|
-
imageComponent:
|
|
1255
|
-
resolvedUtmBannerImageUrl:
|
|
1254
|
+
onProceedGuidance: E,
|
|
1255
|
+
onLocaleChange: Q,
|
|
1256
|
+
imageComponent: F,
|
|
1257
|
+
resolvedUtmBannerImageUrl: ce
|
|
1256
1258
|
}),
|
|
1257
1259
|
[
|
|
1258
1260
|
a,
|
|
1259
1261
|
o,
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
+
s,
|
|
1263
|
+
h,
|
|
1262
1264
|
u,
|
|
1263
1265
|
_,
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
+
f,
|
|
1267
|
+
C,
|
|
1266
1268
|
w,
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
O,
|
|
1272
|
-
v,
|
|
1269
|
+
$,
|
|
1270
|
+
M,
|
|
1271
|
+
N,
|
|
1272
|
+
m,
|
|
1273
1273
|
G,
|
|
1274
|
-
|
|
1274
|
+
x,
|
|
1275
|
+
H,
|
|
1276
|
+
y,
|
|
1275
1277
|
g,
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
E,
|
|
1280
|
-
T,
|
|
1278
|
+
P,
|
|
1279
|
+
Z,
|
|
1280
|
+
j,
|
|
1281
1281
|
U,
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1282
|
+
S,
|
|
1283
|
+
K,
|
|
1284
|
+
A,
|
|
1285
|
+
L,
|
|
1286
|
+
ne,
|
|
1287
|
+
Y,
|
|
1288
|
+
O,
|
|
1287
1289
|
I,
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1290
|
+
E,
|
|
1291
|
+
Q,
|
|
1292
|
+
F,
|
|
1293
|
+
ce
|
|
1292
1294
|
]
|
|
1293
|
-
),
|
|
1294
|
-
|
|
1295
|
-
}, [
|
|
1296
|
-
|
|
1297
|
-
}, [
|
|
1295
|
+
), i = ye(() => {
|
|
1296
|
+
se("form");
|
|
1297
|
+
}, [X.analytics]), k = ye(() => {
|
|
1298
|
+
se("landing"), X.onBack?.();
|
|
1299
|
+
}, [X.onBack]), ae = 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: le,
|
|
1302
|
+
locale: te,
|
|
1303
|
+
setLocale: ke,
|
|
1304
|
+
config: X,
|
|
1305
|
+
formValues: fe,
|
|
1306
|
+
setFormValues: Te,
|
|
1307
|
+
goToForm: i,
|
|
1308
|
+
goToPage: k,
|
|
1309
|
+
onProceed: X.onProceed,
|
|
1310
|
+
onProceedGuidance: X.onProceedGuidance
|
|
1309
1311
|
}),
|
|
1310
|
-
[
|
|
1312
|
+
[le, te, X, fe, i, k]
|
|
1311
1313
|
);
|
|
1312
|
-
return /* @__PURE__ */ e.jsx(
|
|
1314
|
+
return /* @__PURE__ */ e.jsx(nt.Provider, { value: ae, children: ee });
|
|
1313
1315
|
};
|
|
1314
|
-
function
|
|
1315
|
-
return
|
|
1316
|
+
function Le() {
|
|
1317
|
+
return rt(nt);
|
|
1316
1318
|
}
|
|
1317
|
-
function
|
|
1318
|
-
const a =
|
|
1319
|
+
function hi() {
|
|
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:
|
|
1332
|
-
align:
|
|
1333
|
+
className: s = "",
|
|
1334
|
+
align: h = "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} ${h === "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:
|
|
1344
|
+
), ka = "_wrap_119w3_1", va = "_card_119w3_5", xa = "_cardInner_119w3_12", wa = "_field_119w3_44", Pa = "_labelRow_119w3_48", Ca = "_label_119w3_48", Ta = "_req_119w3_57", ja = "_help_119w3_61", Sa = "_choiceRow_119w3_68", Na = "_choiceBtn_119w3_74", Aa = "_choiceBtnActive_119w3_99", Ra = "_infoBtn_119w3_105", La = "_infoImg_119w3_122", Ia = "_infoWrap_119w3_128", Ea = "_tooltip_119w3_134", Ba = "_tooltipArrow_119w3_150", Da = "_inputWrap_119w3_161", Ma = "_isdWrap_119w3_165", Oa = "_phoneInputGroup_119w3_169", Fa = "_isdSelectWrap_119w3_178", $a = "_isdSelectTrigger_119w3_197", Ga = "_isdDropdown_119w3_214", Ua = "_isdSearchWrap_119w3_229", Ka = "_isdSearchInput_119w3_237", Wa = "_isdOption_119w3_255", Ha = "_isdOptionActive_119w3_275", Ya = "_isdCountryName_119w3_281", qa = "_isdCountryCode_119w3_288", Va = "_isdNoResult_119w3_295", za = "_suggestions_119w3_302", Ja = "_suggestionItem_119w3_315", Qa = "_suggestionMain_119w3_333", Xa = "_suggestionSecondary_119w3_339", Za = "_suggestionsHint_119w3_344", 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", hr = "_iconImg_119w3_544", fr = "_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: Ca,
|
|
1351
|
+
req: Ta,
|
|
1352
|
+
help: ja,
|
|
1353
|
+
choiceRow: Sa,
|
|
1354
|
+
choiceBtn: Na,
|
|
1355
|
+
choiceBtnActive: Aa,
|
|
1356
|
+
infoBtn: Ra,
|
|
1357
|
+
infoImg: La,
|
|
1358
|
+
infoWrap: Ia,
|
|
1357
1359
|
tooltip: Ea,
|
|
1358
|
-
tooltipArrow:
|
|
1359
|
-
inputWrap:
|
|
1360
|
-
isdWrap:
|
|
1361
|
-
phoneInputGroup:
|
|
1360
|
+
tooltipArrow: Ba,
|
|
1361
|
+
inputWrap: Da,
|
|
1362
|
+
isdWrap: Ma,
|
|
1363
|
+
phoneInputGroup: Oa,
|
|
1362
1364
|
isdSelectWrap: Fa,
|
|
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:
|
|
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: hr,
|
|
1394
|
+
checkboxRow: fr,
|
|
1395
|
+
checkbox: gr,
|
|
1396
|
+
checkboxText: _r
|
|
1395
1397
|
};
|
|
1396
1398
|
let Ve = null;
|
|
1397
|
-
const
|
|
1399
|
+
const br = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : Ve || (Ve = new Promise((s, h) => {
|
|
1398
1400
|
const u = document.querySelector(
|
|
1399
1401
|
'script[data-google-maps-places="true"]'
|
|
1400
1402
|
);
|
|
1401
1403
|
if (u) {
|
|
1402
|
-
u.addEventListener("load", () =>
|
|
1404
|
+
u.addEventListener("load", () => s()), u.addEventListener(
|
|
1403
1405
|
"error",
|
|
1404
|
-
() =>
|
|
1406
|
+
() => h(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 C = Date.now(), w = () => {
|
|
1411
1413
|
if (window.google?.maps?.places) {
|
|
1412
|
-
|
|
1414
|
+
s();
|
|
1413
1415
|
return;
|
|
1414
1416
|
}
|
|
1415
|
-
if (Date.now() -
|
|
1416
|
-
|
|
1417
|
+
if (Date.now() - C > 2e3) {
|
|
1418
|
+
h(
|
|
1417
1419
|
new Error(
|
|
1418
1420
|
"Google Maps loaded but Places library is unavailable. Check API key restrictions / enabled APIs."
|
|
1419
1421
|
)
|
|
@@ -1423,136 +1425,136 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1423
1425
|
window.setTimeout(w, 50);
|
|
1424
1426
|
};
|
|
1425
1427
|
w();
|
|
1426
|
-
}, _.onerror = () =>
|
|
1427
|
-
}), Ve),
|
|
1428
|
-
const { apiKey: o, language:
|
|
1429
|
-
u &&
|
|
1428
|
+
}, _.onerror = () => h(new Error("Failed to load Google Maps API")), document.head.appendChild(_);
|
|
1429
|
+
}), Ve), yr = (a) => {
|
|
1430
|
+
const { apiKey: o, language: s = "en", restrictCountry: h, deferLoad: u = !1 } = a, [_, f] = D(!1), [C, w] = D([]), [$, M] = D(!1), [N, m] = D(null), [G, x] = D(!u), H = q(null), y = q(null), g = q(null), P = ye(() => {
|
|
1431
|
+
u && x(!0);
|
|
1430
1432
|
}, [u]);
|
|
1431
1433
|
J(() => {
|
|
1432
|
-
if (!o || !
|
|
1433
|
-
|
|
1434
|
+
if (!o || !G) {
|
|
1435
|
+
f(!1), m(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 S = document.createElement("div");
|
|
1441
|
+
y.current = new google.maps.places.PlacesService(S), g.current = new google.maps.places.AutocompleteSessionToken(), f(!0), m(null);
|
|
1442
|
+
}).catch((S) => {
|
|
1443
|
+
f(!1), m(S?.message || "Failed to load location service");
|
|
1442
1444
|
});
|
|
1443
|
-
}, [o,
|
|
1444
|
-
const
|
|
1445
|
-
async (
|
|
1446
|
-
if (!
|
|
1445
|
+
}, [o, s, G]);
|
|
1446
|
+
const Z = ye(
|
|
1447
|
+
async (S) => {
|
|
1448
|
+
if (!S || S.length < 2 || !H.current) {
|
|
1447
1449
|
w([]);
|
|
1448
1450
|
return;
|
|
1449
1451
|
}
|
|
1450
|
-
|
|
1452
|
+
M(!0);
|
|
1451
1453
|
try {
|
|
1452
|
-
const
|
|
1453
|
-
input:
|
|
1454
|
+
const K = {
|
|
1455
|
+
input: S,
|
|
1454
1456
|
types: ["(cities)"],
|
|
1455
1457
|
sessionToken: g.current ?? void 0
|
|
1456
1458
|
};
|
|
1457
|
-
|
|
1458
|
-
const
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
(
|
|
1462
|
-
|
|
1459
|
+
h && (K.componentRestrictions = { country: h });
|
|
1460
|
+
const A = await new Promise((L, ne) => {
|
|
1461
|
+
H.current.getPlacePredictions(
|
|
1462
|
+
K,
|
|
1463
|
+
(Y, O) => {
|
|
1464
|
+
O === google.maps.places.PlacesServiceStatus.OK && Y ? L(Y) : O === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? L([]) : ne(new Error(`Places API error: ${O}`));
|
|
1463
1465
|
}
|
|
1464
1466
|
);
|
|
1465
1467
|
});
|
|
1466
1468
|
w(
|
|
1467
|
-
|
|
1468
|
-
place_id:
|
|
1469
|
-
description:
|
|
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
|
w([]);
|
|
1478
1480
|
} finally {
|
|
1479
|
-
|
|
1481
|
+
M(!1);
|
|
1480
1482
|
}
|
|
1481
1483
|
},
|
|
1482
|
-
[
|
|
1483
|
-
),
|
|
1484
|
-
async (
|
|
1485
|
-
if (!
|
|
1484
|
+
[h]
|
|
1485
|
+
), j = ye(
|
|
1486
|
+
async (S) => {
|
|
1487
|
+
if (!y.current) return null;
|
|
1486
1488
|
try {
|
|
1487
|
-
const
|
|
1488
|
-
(I,
|
|
1489
|
-
|
|
1489
|
+
const K = await new Promise(
|
|
1490
|
+
(I, E) => {
|
|
1491
|
+
y.current.getDetails(
|
|
1490
1492
|
{
|
|
1491
|
-
placeId:
|
|
1493
|
+
placeId: S,
|
|
1492
1494
|
fields: ["geometry", "address_components", "formatted_address"],
|
|
1493
1495
|
sessionToken: g.current ?? void 0
|
|
1494
1496
|
},
|
|
1495
|
-
(
|
|
1496
|
-
|
|
1497
|
+
(Q, F) => {
|
|
1498
|
+
F === google.maps.places.PlacesServiceStatus.OK && Q ? I(Q) : E(new Error(`Place details error: ${F}`));
|
|
1497
1499
|
}
|
|
1498
1500
|
);
|
|
1499
1501
|
}
|
|
1500
1502
|
);
|
|
1501
1503
|
g.current = new google.maps.places.AutocompleteSessionToken();
|
|
1502
|
-
const
|
|
1503
|
-
let
|
|
1504
|
-
return
|
|
1505
|
-
I.types.includes("locality") && (
|
|
1504
|
+
const A = K.geometry?.location?.lat() || 0, L = K.geometry?.location?.lng() || 0;
|
|
1505
|
+
let ne = "", Y = "", O = "";
|
|
1506
|
+
return K.address_components?.forEach((I) => {
|
|
1507
|
+
I.types.includes("locality") && (ne = I.long_name), I.types.includes("administrative_area_level_1") && (Y = I.long_name), I.types.includes("country") && (O = I.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: ne,
|
|
1513
|
+
state: Y,
|
|
1514
|
+
country: O
|
|
1513
1515
|
};
|
|
1514
1516
|
} catch {
|
|
1515
1517
|
return null;
|
|
1516
1518
|
}
|
|
1517
1519
|
},
|
|
1518
1520
|
[]
|
|
1519
|
-
),
|
|
1521
|
+
), U = ye(() => w([]), []);
|
|
1520
1522
|
return {
|
|
1521
1523
|
isLoaded: _,
|
|
1522
|
-
predictions:
|
|
1523
|
-
isSearching:
|
|
1524
|
-
loadError:
|
|
1525
|
-
searchPlaces:
|
|
1526
|
-
getPlaceDetails:
|
|
1527
|
-
clearPredictions:
|
|
1528
|
-
triggerLoad:
|
|
1524
|
+
predictions: C,
|
|
1525
|
+
isSearching: $,
|
|
1526
|
+
loadError: N,
|
|
1527
|
+
searchPlaces: Z,
|
|
1528
|
+
getPlaceDetails: j,
|
|
1529
|
+
clearPredictions: U,
|
|
1530
|
+
triggerLoad: P
|
|
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, [h, u] = D([]), [_, f] = D(!1), [C, w] = D(null), $ = q(0);
|
|
1540
1542
|
J(() => {
|
|
1541
1543
|
w(null);
|
|
1542
1544
|
}, [o]);
|
|
1543
|
-
const
|
|
1544
|
-
async (
|
|
1545
|
-
if (!
|
|
1545
|
+
const M = ye(
|
|
1546
|
+
async (m) => {
|
|
1547
|
+
if (!m || m.length < 2 || !o) {
|
|
1546
1548
|
u([]);
|
|
1547
1549
|
return;
|
|
1548
1550
|
}
|
|
1549
|
-
const
|
|
1550
|
-
|
|
1551
|
+
const G = ++$.current;
|
|
1552
|
+
f(!0), w(null);
|
|
1551
1553
|
try {
|
|
1552
|
-
const
|
|
1553
|
-
if (
|
|
1554
|
-
const
|
|
1555
|
-
(g) => !!g?.id && !!g?.description &&
|
|
1554
|
+
const x = kr({ restrictCountry: s }), H = await o(m, x);
|
|
1555
|
+
if (G !== $.current) return;
|
|
1556
|
+
const y = (H || []).filter(
|
|
1557
|
+
(g) => !!g?.id && !!g?.description && yt(g?.lat) && yt(g?.lng)
|
|
1556
1558
|
).map((g) => ({
|
|
1557
1559
|
id: g.id,
|
|
1558
1560
|
description: g.description,
|
|
@@ -1560,29 +1562,29 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1560
1562
|
lat: g.lat,
|
|
1561
1563
|
lng: g.lng
|
|
1562
1564
|
}));
|
|
1563
|
-
u(
|
|
1564
|
-
} catch (
|
|
1565
|
-
if (
|
|
1566
|
-
u([]), w(
|
|
1565
|
+
u(y);
|
|
1566
|
+
} catch (x) {
|
|
1567
|
+
if (G !== $.current) return;
|
|
1568
|
+
u([]), w(x?.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(() => u([]), []);
|
|
1573
1575
|
return {
|
|
1574
|
-
predictions:
|
|
1576
|
+
predictions: h,
|
|
1575
1577
|
isSearching: _,
|
|
1576
|
-
loadError:
|
|
1577
|
-
searchPlaces:
|
|
1578
|
-
clearPredictions:
|
|
1578
|
+
loadError: C,
|
|
1579
|
+
searchPlaces: M,
|
|
1580
|
+
clearPredictions: N
|
|
1579
1581
|
};
|
|
1580
1582
|
}, Oe = {
|
|
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
|
+
}, jt = [
|
|
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 = jt.map((a) => a.code), St = 10, ot = (a) => a.replace(/\D/g, ""), kt = (a) => ot(a).slice(0, St), xr = (a) => ot(a).length === St, 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 = {}, Cr = ({
|
|
1656
1658
|
t: a,
|
|
1657
1659
|
values: o,
|
|
1658
|
-
onChange:
|
|
1659
|
-
phoneIsdCode:
|
|
1660
|
+
onChange: s,
|
|
1661
|
+
phoneIsdCode: h,
|
|
1660
1662
|
onPhoneIsdCodeChange: u,
|
|
1661
1663
|
showV1ExtraFields: _ = !1,
|
|
1662
|
-
analytics:
|
|
1663
|
-
googleMapsApiKey:
|
|
1664
|
+
analytics: f,
|
|
1665
|
+
googleMapsApiKey: C,
|
|
1664
1666
|
atlasSearchLocalities: w,
|
|
1665
|
-
googleMapsAutocompleteEnabled:
|
|
1666
|
-
className:
|
|
1667
|
+
googleMapsAutocompleteEnabled: $,
|
|
1668
|
+
className: M = ""
|
|
1667
1669
|
}) => {
|
|
1668
|
-
const
|
|
1670
|
+
const N = Le(), m = N?.config?.analytics ?? f, G = N?.config.isGlobal ?? !0, x = N?.config?.googleMapsApiKey, H = N?.config?.atlasSearchLocalities, y = N?.config?.googleMapsAutocompleteEnabled, [g, P] = D(!1), [Z, j] = D(""), U = q(null), S = 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, h, K.current);
|
|
1673
|
+
V.shouldTrack && m?.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: () => m?.trackNameSectionFilled?.(),
|
|
1678
|
+
dateOfBirth: () => m?.trackDobFilled?.(),
|
|
1679
|
+
birthTime: () => m?.trackTimeFilled?.(),
|
|
1680
|
+
birthPlace: () => m?.trackPlaceOfBirthChosen?.()
|
|
1679
1681
|
}[r]?.());
|
|
1680
|
-
},
|
|
1682
|
+
}, ne = (r) => {
|
|
1681
1683
|
const c = r.target.value;
|
|
1682
|
-
c.trim() &&
|
|
1683
|
-
},
|
|
1684
|
-
|
|
1685
|
-
const
|
|
1684
|
+
c.trim() && m?.trackEmailSectionFilled?.({ email: c });
|
|
1685
|
+
}, Y = Z.trim().toLowerCase(), O = jt.filter((r) => Y ? r.country.toLowerCase().includes(Y) || r.code.includes(Y) : !0), I = q(null);
|
|
1686
|
+
q(null);
|
|
1687
|
+
const E = q(null), Q = q(0), F = q(null), [ce, ee] = D(!1), [le, se] = 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
|
+
}, fe = (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
|
+
}, Te = (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, i] = D(!1), k = q(o.birthPlace ?? ""), [ae, ie] = D(
|
|
1700
1702
|
null
|
|
1701
|
-
),
|
|
1702
|
-
apiKey:
|
|
1703
|
+
), ve = C ?? x ?? Pr?.VITE_GOOGLE_MAPS_API_KEY, Se = w ?? H, de = $ ?? y ?? !0, ue = (o.birthPlace ?? "").trim(), je = 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: je
|
|
1707
|
+
}), we = vr({
|
|
1708
|
+
searchLocalities: de ? void 0 : Se,
|
|
1709
|
+
restrictCountry: je
|
|
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
|
-
})), Ie =
|
|
1722
|
+
})), Ie = de ? ge.isSearching : we.isSearching, Ee = de ? ge.loadError : we.loadError, T = de ? !!ve : !!Se, Be = de ? ge.searchPlaces : we.searchPlaces, Fe = de ? ge.clearPredictions : we.clearPredictions, $e = q(() => {
|
|
1721
1723
|
});
|
|
1722
1724
|
$e.current = () => {
|
|
1723
|
-
(o.birthPlace ?? "") !==
|
|
1725
|
+
(o.birthPlace ?? "") !== k.current && A({
|
|
1724
1726
|
birthPlace: "",
|
|
1725
1727
|
birthPlaceLat: void 0,
|
|
1726
1728
|
birthPlaceLng: void 0
|
|
1727
|
-
}),
|
|
1729
|
+
}), i(!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) || (P(!1), j("")));
|
|
1736
1738
|
};
|
|
1737
1739
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
1738
1740
|
}, []), J(() => {
|
|
1739
1741
|
if (!g) return;
|
|
1740
1742
|
const r = window.setTimeout(() => {
|
|
1741
|
-
|
|
1743
|
+
S.current?.focus();
|
|
1742
1744
|
}, 0);
|
|
1743
1745
|
return () => window.clearTimeout(r);
|
|
1744
1746
|
}, [g]), J(() => {
|
|
1745
|
-
if (!
|
|
1746
|
-
if (
|
|
1747
|
-
|
|
1747
|
+
if (!X) return;
|
|
1748
|
+
if (ue.length < 2) {
|
|
1749
|
+
Fe();
|
|
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
|
-
}, [
|
|
1756
|
+
}, [Fe, 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 && E.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(), E.current = c, Q.current = Date.now();
|
|
1764
1766
|
return;
|
|
1765
1767
|
}
|
|
1766
|
-
c.focus(),
|
|
1768
|
+
c.focus(), E.current = c, Q.current = Date.now();
|
|
1767
1769
|
}
|
|
1768
1770
|
};
|
|
1769
1771
|
return J(() => {
|
|
1770
1772
|
const r = (c) => {
|
|
1771
|
-
|
|
1773
|
+
F.current && (F.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 && ie(null);
|
|
1779
|
+
}, c = (V) => {
|
|
1780
|
+
V.key === "Escape" && ie(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} ${M}`,
|
|
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: () => m?.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",
|
|
@@ -1823,9 +1825,9 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1823
1825
|
"aria-haspopup": "listbox",
|
|
1824
1826
|
"aria-expanded": g,
|
|
1825
1827
|
onClick: () => {
|
|
1826
|
-
|
|
1828
|
+
P((r) => !r), j("");
|
|
1827
1829
|
},
|
|
1828
|
-
children:
|
|
1830
|
+
children: h
|
|
1829
1831
|
}
|
|
1830
1832
|
) }),
|
|
1831
1833
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1835,18 +1837,18 @@ 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: () => m?.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
|
] }),
|
|
@@ -1860,24 +1862,24 @@ 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: S,
|
|
1864
1866
|
type: "text",
|
|
1865
|
-
value:
|
|
1866
|
-
onChange: (r) =>
|
|
1867
|
+
value: Z,
|
|
1868
|
+
onChange: (r) => j(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
|
+
O.length > 0 ? O.map((r) => /* @__PURE__ */ e.jsxs(
|
|
1873
1875
|
"button",
|
|
1874
1876
|
{
|
|
1875
1877
|
type: "button",
|
|
1876
1878
|
role: "option",
|
|
1877
|
-
"aria-selected": r.code ===
|
|
1878
|
-
className: `${n.isdOption} ${r.code ===
|
|
1879
|
+
"aria-selected": r.code === h,
|
|
1880
|
+
className: `${n.isdOption} ${r.code === h ? n.isdOptionActive : ""}`,
|
|
1879
1881
|
onClick: () => {
|
|
1880
|
-
u(r.code),
|
|
1882
|
+
u(r.code), P(!1), j("");
|
|
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" }), m?.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" }), m?.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: () => m?.trackEmailSectionClicked?.(),
|
|
1956
1958
|
onChange: (r) => {
|
|
1957
|
-
|
|
1959
|
+
A({ email: r.target.value });
|
|
1958
1960
|
},
|
|
1959
|
-
onBlur:
|
|
1961
|
+
onBlur: ne,
|
|
1960
1962
|
placeholder: a("formEmailPlaceholder"),
|
|
1961
1963
|
autoComplete: "email",
|
|
1962
1964
|
required: !0,
|
|
@@ -1977,9 +1979,9 @@ 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": ae === "dob",
|
|
1981
1983
|
onClick: () => {
|
|
1982
|
-
|
|
1984
|
+
ie((r) => r === "dob" ? null : "dob"), m?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
1983
1985
|
},
|
|
1984
1986
|
children: /* @__PURE__ */ e.jsx(
|
|
1985
1987
|
"img",
|
|
@@ -1992,7 +1994,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1992
1994
|
)
|
|
1993
1995
|
}
|
|
1994
1996
|
),
|
|
1995
|
-
|
|
1997
|
+
ae === "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
|
] })
|
|
@@ -2009,16 +2011,16 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
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), E.current = null);
|
|
2017
2019
|
},
|
|
2018
|
-
onFocus: () =>
|
|
2020
|
+
onFocus: () => m?.trackDobClicked?.(),
|
|
2019
2021
|
onClick: () => Ge(I),
|
|
2020
2022
|
onBlur: () => {
|
|
2021
|
-
|
|
2023
|
+
E.current === I.current && (E.current = null);
|
|
2022
2024
|
}
|
|
2023
2025
|
}
|
|
2024
2026
|
),
|
|
@@ -2058,9 +2060,9 @@ 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": ae === "time",
|
|
2062
2064
|
onClick: () => {
|
|
2063
|
-
|
|
2065
|
+
m?.trackInfoIconClicked?.({ fieldName: "time" }), ie((r) => r === "time" ? null : "time");
|
|
2064
2066
|
},
|
|
2065
2067
|
children: /* @__PURE__ */ e.jsx(
|
|
2066
2068
|
"img",
|
|
@@ -2073,30 +2075,30 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2073
2075
|
)
|
|
2074
2076
|
}
|
|
2075
2077
|
),
|
|
2076
|
-
|
|
2078
|
+
ae === "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: F, 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: () => m?.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 || (se(fe(o.birthTime || "12:00")), ee((r) => !r));
|
|
2100
2102
|
}
|
|
2101
2103
|
}
|
|
2102
2104
|
),
|
|
@@ -2109,7 +2111,7 @@ 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 && (se(fe(o.birthTime || "12:00")), ee((c) => !c));
|
|
2113
2115
|
},
|
|
2114
2116
|
children: /* @__PURE__ */ e.jsx(
|
|
2115
2117
|
"img",
|
|
@@ -2122,7 +2124,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
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: le.hour12,
|
|
2140
|
+
onChange: (r) => se((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: le.minute,
|
|
2154
|
+
onChange: (r) => se((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} ${le.meridiem === "AM" ? n.meridiemActive : ""}`,
|
|
2167
|
+
onClick: () => se((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} ${le.meridiem === "PM" ? n.meridiemActive : ""}`,
|
|
2176
|
+
onClick: () => se((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 = Te(le);
|
|
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
|
+
m?.trackTimeCheckboxClicked?.(), A({
|
|
2238
2240
|
birthTimeUnknown: r.target.checked,
|
|
2239
2241
|
birthTime: r.target.checked ? "" : o.birthTime
|
|
2240
2242
|
});
|
|
@@ -2268,11 +2270,11 @@ 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": ae === "place",
|
|
2272
2274
|
onClick: () => {
|
|
2273
|
-
|
|
2275
|
+
m?.trackInfoIconClicked?.({
|
|
2274
2276
|
fieldName: "birthPlace"
|
|
2275
|
-
}),
|
|
2277
|
+
}), ie((r) => r === "place" ? null : "place");
|
|
2276
2278
|
},
|
|
2277
2279
|
children: /* @__PURE__ */ e.jsx(
|
|
2278
2280
|
"img",
|
|
@@ -2285,13 +2287,13 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2285
2287
|
)
|
|
2286
2288
|
}
|
|
2287
2289
|
),
|
|
2288
|
-
|
|
2290
|
+
ae === "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), i(!0);
|
|
2309
2311
|
},
|
|
2310
2312
|
onFocus: () => {
|
|
2311
|
-
|
|
2313
|
+
m?.trackPlaceOfBirthClicked?.(), i(!0);
|
|
2312
2314
|
},
|
|
2313
2315
|
placeholder: a("formBirthPlacePlaceholder"),
|
|
2314
2316
|
autoComplete: "address-level2"
|
|
@@ -2323,26 +2325,26 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
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 (k.current = c, A({
|
|
2334
2336
|
birthPlace: c,
|
|
2335
2337
|
birthPlaceLat: r.lat,
|
|
2336
2338
|
birthPlaceLng: r.lng
|
|
2337
|
-
}),
|
|
2338
|
-
const
|
|
2339
|
+
}), Fe(), i(!1), de) {
|
|
2340
|
+
const V = await ge.getPlaceDetails(
|
|
2339
2341
|
r.id
|
|
2340
2342
|
);
|
|
2341
|
-
|
|
2343
|
+
V && (k.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 && T && Ie && /* @__PURE__ */ e.jsx("div", { className: n.suggestionsHint, children: "Loading…" }),
|
|
2359
|
+
X && T && !Ie && !!Ee && /* @__PURE__ */ e.jsx("div", { className: n.suggestionsHint, children: Ee })
|
|
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" }), m?.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" }), m?.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" }), m?.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" }), m?.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" }), m?.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" }), m?.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" }), m?.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
|
+
}, Tr = "_ctaButton_rhimw_2", jr = "_ctaFilled_rhimw_21", Sr = "_ctaFilledContent_rhimw_52", Nr = "_chevronRight_rhimw_61", He = {
|
|
2494
|
+
ctaButton: Tr,
|
|
2495
|
+
ctaFilled: jr,
|
|
2496
|
+
ctaFilledContent: Sr,
|
|
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", Ir = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", Er = ({ 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), Mr = (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
|
+
}, Or = ({
|
|
2555
2557
|
t: a,
|
|
2556
2558
|
values: o,
|
|
2557
|
-
phoneIsdCode:
|
|
2558
|
-
requireV1ExtraFields:
|
|
2559
|
+
phoneIsdCode: s,
|
|
2560
|
+
requireV1ExtraFields: h = !1,
|
|
2559
2561
|
onValidationFailed: u,
|
|
2560
2562
|
onProceed: _,
|
|
2561
|
-
onProceedGuidance:
|
|
2562
|
-
href:
|
|
2563
|
+
onProceedGuidance: f,
|
|
2564
|
+
href: C,
|
|
2563
2565
|
analytics: w,
|
|
2564
|
-
className:
|
|
2565
|
-
discountedPriceLabel:
|
|
2566
|
-
discountPillLabel:
|
|
2567
|
-
showPlanSheet:
|
|
2568
|
-
confirmPlan:
|
|
2569
|
-
planSheetOpen:
|
|
2570
|
-
selectedPlan:
|
|
2566
|
+
className: $ = "",
|
|
2567
|
+
discountedPriceLabel: M,
|
|
2568
|
+
discountPillLabel: N,
|
|
2569
|
+
showPlanSheet: m,
|
|
2570
|
+
confirmPlan: G,
|
|
2571
|
+
planSheetOpen: x,
|
|
2572
|
+
selectedPlan: H
|
|
2571
2573
|
}) => {
|
|
2572
|
-
const
|
|
2573
|
-
() =>
|
|
2574
|
-
[o, g,
|
|
2575
|
-
),
|
|
2576
|
-
if (
|
|
2577
|
-
|
|
2574
|
+
const y = Le(), g = y?.config.isGlobal ?? !0, P = y?.config?.variant, Z = Ne(
|
|
2575
|
+
() => Mr(o, g, h),
|
|
2576
|
+
[o, g, h]
|
|
2577
|
+
), j = Z === null, U = P === "v1" && y?.config?.showSheet, S = g ? M ?? a("formDiscountedPrice") : U ? "" : "₹499", K = y?.config.imageComponent ?? Ye, A = (ne) => {
|
|
2578
|
+
if (ne.preventDefault(), P === "v1" && !j && w?.trackKundliDetailedClicked?.(), !j) {
|
|
2579
|
+
Z && u?.(Z);
|
|
2578
2580
|
return;
|
|
2579
2581
|
}
|
|
2580
|
-
const
|
|
2582
|
+
const Y = !!f && P === "v1" && H?.id === Nt, O = (o.phone ?? "").trim(), I = {
|
|
2581
2583
|
...o,
|
|
2582
|
-
phone:
|
|
2584
|
+
phone: O && `${s}-${O}`
|
|
2583
2585
|
};
|
|
2584
|
-
if (
|
|
2585
|
-
|
|
2586
|
+
if (U) {
|
|
2587
|
+
x ? G?.() : m?.(I);
|
|
2586
2588
|
return;
|
|
2587
2589
|
}
|
|
2588
|
-
w?.trackPrimaryCtaClickedL1?.({ avenue: "form" }),
|
|
2589
|
-
},
|
|
2590
|
-
|
|
2590
|
+
w?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), Y ? f(I) : _?.(I);
|
|
2591
|
+
}, L = /* @__PURE__ */ e.jsx(
|
|
2592
|
+
Vt,
|
|
2591
2593
|
{
|
|
2592
|
-
href:
|
|
2593
|
-
disabled:
|
|
2594
|
-
onClick:
|
|
2594
|
+
href: C,
|
|
2595
|
+
disabled: P === "v1" ? !1 : !j,
|
|
2596
|
+
onClick: A,
|
|
2595
2597
|
"aria-label": a("formPriceAria"),
|
|
2596
|
-
className:
|
|
2597
|
-
children:
|
|
2598
|
-
|
|
2598
|
+
className: P === "v1" && j ? He.ctaFilled : P === "v1" ? He.ctaButton : void 0,
|
|
2599
|
+
children: P === "v1" ? j ? /* @__PURE__ */ e.jsxs("span", { className: He.ctaFilledContent, children: [
|
|
2600
|
+
U ? a("selectPackage") : x && H ? `${a("proceedWithPlan")}${H.price}` : `${a("formProceed")} ${S}`,
|
|
2599
2601
|
/* @__PURE__ */ e.jsx(
|
|
2600
|
-
|
|
2602
|
+
K,
|
|
2601
2603
|
{
|
|
2602
|
-
src:
|
|
2604
|
+
src: Ir,
|
|
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
|
+
S
|
|
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(Er, { t: a }) }),
|
|
2624
|
+
children: L
|
|
2623
2625
|
}
|
|
2624
2626
|
);
|
|
2625
|
-
}, Fr = "https://srm-cdn.a4b.io/yoda/1770362904947.svg",
|
|
2627
|
+
}, Fr = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", $r = ({
|
|
2626
2628
|
t: a,
|
|
2627
2629
|
languageSelector: o,
|
|
2628
|
-
logoUrl:
|
|
2629
|
-
className:
|
|
2630
|
+
logoUrl: s = Fr,
|
|
2631
|
+
className: h = ""
|
|
2630
2632
|
}) => {
|
|
2631
|
-
const u =
|
|
2633
|
+
const u = Le(), _ = u?.config.isGlobal ?? !0, f = o != null && !_;
|
|
2632
2634
|
return /* @__PURE__ */ e.jsx(
|
|
2633
|
-
|
|
2635
|
+
Qt,
|
|
2634
2636
|
{
|
|
2635
2637
|
t: a,
|
|
2636
|
-
logoUrl:
|
|
2638
|
+
logoUrl: s,
|
|
2637
2639
|
imageComponent: u?.config.imageComponent,
|
|
2638
2640
|
languageSelector: o,
|
|
2639
|
-
showLanguageSelector:
|
|
2640
|
-
className:
|
|
2641
|
+
showLanguageSelector: f,
|
|
2642
|
+
className: h
|
|
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,100 +2689,100 @@ 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:
|
|
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", hn = "_priceRow_1u7x5_225", fn = "_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", Cn = "_astrologerAvatar_1u7x5_326", Tn = "_astrologerAvatarPlaceholder_1u7x5_343", jn = "_astrologerTop_1u7x5_349", Sn = "_astrologerBasicInfo_1u7x5_355", Nn = "_astrologerName_1u7x5_362", An = "_astrologerExp_1u7x5_371", Rn = "_astrologerDivider_1u7x5_377", Ln = "_planDivider_1u7x5_383", In = "_astrologerCertList_1u7x5_390", En = "_astrologerCertItem_1u7x5_396", Bn = "_bullet_1u7x5_404", Dn = "_footer_1u7x5_409", Mn = "_proceedBtn_1u7x5_419", v = {
|
|
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: hn,
|
|
2714
|
+
price: fn,
|
|
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: Cn,
|
|
2725
|
+
astrologerAvatarPlaceholder: Tn,
|
|
2726
|
+
astrologerTop: jn,
|
|
2727
|
+
astrologerBasicInfo: Sn,
|
|
2728
|
+
astrologerName: Nn,
|
|
2729
|
+
astrologerExp: An,
|
|
2730
|
+
astrologerDivider: Rn,
|
|
2731
|
+
planDivider: Ln,
|
|
2732
|
+
astrologerCertList: In,
|
|
2731
2733
|
astrologerCertItem: En,
|
|
2732
|
-
bullet:
|
|
2733
|
-
footer:
|
|
2734
|
-
proceedBtn:
|
|
2735
|
-
},
|
|
2734
|
+
bullet: Bn,
|
|
2735
|
+
footer: Dn,
|
|
2736
|
+
proceedBtn: Mn
|
|
2737
|
+
}, On = ({ title: a, onBack: o }) => /* @__PURE__ */ e.jsxs("div", { className: v.header, children: [
|
|
2736
2738
|
/* @__PURE__ */ e.jsx(
|
|
2737
2739
|
"button",
|
|
2738
2740
|
{
|
|
2739
|
-
className:
|
|
2741
|
+
className: v.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
|
-
] }), Fn = ({ features: a, t: o }) => /* @__PURE__ */ e.jsx("ul", { className:
|
|
2748
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2748
|
+
/* @__PURE__ */ e.jsx("h2", { className: v.title, children: a })
|
|
2749
|
+
] }), Fn = ({ features: a, t: o }) => /* @__PURE__ */ e.jsx("ul", { className: v.featureList, "aria-label": "Plan features", children: a.map((s, h) => /* @__PURE__ */ e.jsxs("li", { className: v.featureItem, children: [
|
|
2750
|
+
/* @__PURE__ */ e.jsx("span", { className: v.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: `${v.featureText} `,
|
|
2755
|
+
children: o?.(s.text) ?? s.text
|
|
2754
2756
|
}
|
|
2755
2757
|
)
|
|
2756
|
-
] },
|
|
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
|
+
] }, h)) }), $n = ({ astrologer: a, t: o }) => /* @__PURE__ */ e.jsxs("div", { className: v.astrologerCard, children: [
|
|
2759
|
+
/* @__PURE__ */ e.jsxs("div", { className: v.astrologerTop, children: [
|
|
2760
|
+
/* @__PURE__ */ e.jsx("div", { className: v.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: v.astrologerAvatarPlaceholder, children: a.name.charAt(0) }) }),
|
|
2761
|
+
/* @__PURE__ */ e.jsxs("div", { className: v.astrologerBasicInfo, children: [
|
|
2762
|
+
/* @__PURE__ */ e.jsx("p", { className: v.astrologerName, children: o?.(a.name) ?? a.name }),
|
|
2763
|
+
/* @__PURE__ */ e.jsx("p", { className: v.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: v.astrologerDivider }),
|
|
2767
|
+
/* @__PURE__ */ e.jsx("div", { className: v.astrologerCertList, children: a.certifications.map((s, h) => /* @__PURE__ */ e.jsxs("p", { className: v.astrologerCertItem, children: [
|
|
2768
|
+
/* @__PURE__ */ e.jsx("span", { className: v.bullet, children: "•" }),
|
|
2767
2769
|
" ",
|
|
2768
|
-
o?.(
|
|
2769
|
-
] },
|
|
2770
|
-
] }),
|
|
2771
|
-
/* @__PURE__ */ e.jsx(
|
|
2770
|
+
o?.(s) ?? s
|
|
2771
|
+
] }, h)) })
|
|
2772
|
+
] }), Gn = ({ label: a }) => /* @__PURE__ */ e.jsxs("div", { className: v.popularBadge, "aria-label": a, children: [
|
|
2773
|
+
/* @__PURE__ */ e.jsx(Kr, {}),
|
|
2772
2774
|
/* @__PURE__ */ e.jsx("span", { children: a })
|
|
2773
|
-
] }),
|
|
2774
|
-
const u = () =>
|
|
2775
|
-
(
|
|
2775
|
+
] }), Un = ({ plan: a, isSelected: o, onSelect: s, t: h }) => {
|
|
2776
|
+
const u = () => 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
|
+
v.planCard,
|
|
2784
|
+
o ? v.planCardSelected : "",
|
|
2785
|
+
o && v.planCardPopular
|
|
2784
2786
|
].filter(Boolean).join(" "),
|
|
2785
2787
|
onClick: u,
|
|
2786
2788
|
role: "radio",
|
|
@@ -2789,29 +2791,29 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
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: h?.(a.badge) ?? a.badge }),
|
|
2795
|
+
/* @__PURE__ */ e.jsxs("div", { className: v.planCardInner, children: [
|
|
2796
|
+
/* @__PURE__ */ e.jsxs("div", { className: `${v.planTitleRow} ${a.badge ? v.withBadgeSpacing : ""}`, children: [
|
|
2797
|
+
/* @__PURE__ */ e.jsx("span", { className: v.planTitle, children: h?.(a.title) ?? a.title }),
|
|
2796
2798
|
/* @__PURE__ */ e.jsx(
|
|
2797
2799
|
"span",
|
|
2798
2800
|
{
|
|
2799
|
-
className: `${
|
|
2801
|
+
className: `${v.radioCircle} ${o ? v.radioChecked : ""}`,
|
|
2800
2802
|
"aria-hidden": !0,
|
|
2801
|
-
children: o && /* @__PURE__ */ e.jsx("span", { className:
|
|
2803
|
+
children: o && /* @__PURE__ */ e.jsx("span", { className: v.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: v.priceRow, children: [
|
|
2808
|
+
/* @__PURE__ */ e.jsx("span", { className: v.price, children: a.price }),
|
|
2809
|
+
a.originalPrice && /* @__PURE__ */ e.jsx("span", { className: v.originalPrice, children: a.originalPrice }),
|
|
2810
|
+
a.savingsLabel && /* @__PURE__ */ e.jsx("span", { className: v.savingsBadge, children: h?.(a.savingsLabel, { percent: 25 }) ?? a.savingsLabel })
|
|
2809
2811
|
] }),
|
|
2810
|
-
/* @__PURE__ */ e.jsx(Fn, { features: a.features, t:
|
|
2811
|
-
a.astrologers && /* @__PURE__ */ e.jsx("div", { className:
|
|
2812
|
+
/* @__PURE__ */ e.jsx(Fn, { features: a.features, t: h }),
|
|
2813
|
+
a.astrologers && /* @__PURE__ */ e.jsx("div", { className: v.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: v.astrologerHeading, children: h?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
|
|
2816
|
+
/* @__PURE__ */ e.jsx("div", { className: v.astrologerList, role: "list", children: a.astrologers.map((f, C) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx($n, { astrologer: f, t: h }) }, C)) })
|
|
2815
2817
|
] })
|
|
2816
2818
|
] })
|
|
2817
2819
|
]
|
|
@@ -2824,228 +2826,294 @@ 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
|
-
if (Number.isNaN(
|
|
2829
|
+
}, Kn = (a, o = /* @__PURE__ */ new Date()) => {
|
|
2830
|
+
const s = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], h = /* @__PURE__ */ new Date(`${a}T00:00:00`);
|
|
2831
|
+
if (Number.isNaN(h.getTime()))
|
|
2830
2832
|
return { id: a, dayLabel: a, dayNum: "" };
|
|
2831
|
-
const u = (
|
|
2832
|
-
(u(
|
|
2833
|
-
),
|
|
2834
|
-
return { id: a, dayLabel:
|
|
2835
|
-
},
|
|
2833
|
+
const u = (C) => new Date(C.getFullYear(), C.getMonth(), C.getDate()).getTime(), _ = Math.round(
|
|
2834
|
+
(u(h) - u(o)) / (1e3 * 60 * 60 * 24)
|
|
2835
|
+
), f = _ === 0 ? "Today" : _ === 1 ? "Tomorrow" : s[h.getDay()];
|
|
2836
|
+
return { id: a, dayLabel: f, dayNum: String(h.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 = "_subtitle_h4rfr_80", Zn = "_languageRow_h4rfr_88", eo = "_languageLabel_h4rfr_96", to = "_languageDropdown_h4rfr_102", ao = "_languageDropdownBtn_h4rfr_106", ro = "_languageMenu_h4rfr_121", no = "_languageMenuItem_h4rfr_138", oo = "_languageMenuItemSelected_h4rfr_152", io = "_reportReadyBanner_h4rfr_159", lo = "_reportReadyDuration_h4rfr_168", so = "_trustRow_h4rfr_174", co = "_trustAvatars_h4rfr_185", uo = "_trustText_h4rfr_198", po = "_trustDivider_h4rfr_204", mo = "_astrologerRow_h4rfr_211", ho = "_astrologerCard_h4rfr_224", fo = "_astrologerTop_h4rfr_237", go = "_astrologerAvatar_h4rfr_243", _o = "_astrologerBasicInfo_h4rfr_260", bo = "_astrologerName_h4rfr_265", yo = "_astrologerMeta_h4rfr_276", ko = "_astrologerCertList_h4rfr_290", vo = "_astrologerCertItem_h4rfr_296", xo = "_bullet_h4rfr_304", wo = "_sectionHeading_h4rfr_309", Po = "_dateTabs_h4rfr_317", Co = "_dateTab_h4rfr_317", To = "_dateTabDivider_h4rfr_344", jo = "_dateTabSelected_h4rfr_354", So = "_dateTabLabel_h4rfr_360", No = "_dateTabNum_h4rfr_366", Ao = "_periodTabs_h4rfr_379", Ro = "_periodTab_h4rfr_379", Lo = "_periodTabSelected_h4rfr_405", Io = "_timeGrid_h4rfr_412", Eo = "_timeSlot_h4rfr_419", Bo = "_timeSlotSelected_h4rfr_435", Do = "_topicGrid_h4rfr_443", Mo = "_topicChip_h4rfr_449", Oo = "_topicChipSelected_h4rfr_465", Fo = "_stateMessage_h4rfr_472", $o = "_loadingWrap_h4rfr_480", Go = "_skeletonShimmer_h4rfr_485", Uo = "_skeletonDateTabs_h4rfr_499", Ko = "_skeletonDateTab_h4rfr_499", Wo = "_skeletonPeriodTabs_h4rfr_513", Ho = "_skeletonPeriodTab_h4rfr_513", Yo = "_skeletonTimeGrid_h4rfr_528", qo = "_skeletonTimeSlot_h4rfr_534", Vo = "_retryBtn_h4rfr_539", zo = "_footer_h4rfr_553", Jo = "_proceedBtn_h4rfr_560", Qo = "_proceedBtnDisabled_h4rfr_578", p = {
|
|
2855
|
+
overlay: Yn,
|
|
2856
|
+
sheet: qn,
|
|
2857
|
+
content: Vn,
|
|
2858
|
+
header: zn,
|
|
2859
|
+
backBtn: Jn,
|
|
2860
|
+
title: Qn,
|
|
2861
|
+
subtitle: Xn,
|
|
2862
|
+
languageRow: Zn,
|
|
2863
|
+
languageLabel: eo,
|
|
2864
|
+
languageDropdown: to,
|
|
2865
|
+
languageDropdownBtn: ao,
|
|
2866
|
+
languageMenu: ro,
|
|
2867
|
+
languageMenuItem: no,
|
|
2868
|
+
languageMenuItemSelected: oo,
|
|
2869
|
+
reportReadyBanner: io,
|
|
2870
|
+
reportReadyDuration: lo,
|
|
2871
|
+
trustRow: so,
|
|
2872
|
+
trustAvatars: co,
|
|
2873
|
+
trustText: uo,
|
|
2874
|
+
trustDivider: po,
|
|
2875
|
+
astrologerRow: mo,
|
|
2876
|
+
astrologerCard: ho,
|
|
2877
|
+
astrologerTop: fo,
|
|
2878
|
+
astrologerAvatar: go,
|
|
2879
|
+
astrologerBasicInfo: _o,
|
|
2880
|
+
astrologerName: bo,
|
|
2881
|
+
astrologerMeta: yo,
|
|
2882
|
+
astrologerCertList: ko,
|
|
2883
|
+
astrologerCertItem: vo,
|
|
2884
|
+
bullet: xo,
|
|
2885
|
+
sectionHeading: wo,
|
|
2886
|
+
dateTabs: Po,
|
|
2887
|
+
dateTab: Co,
|
|
2888
|
+
dateTabDivider: To,
|
|
2889
|
+
dateTabSelected: jo,
|
|
2890
|
+
dateTabLabel: So,
|
|
2891
|
+
dateTabNum: No,
|
|
2892
|
+
periodTabs: Ao,
|
|
2893
|
+
periodTab: Ro,
|
|
2894
|
+
periodTabSelected: Lo,
|
|
2895
|
+
timeGrid: Io,
|
|
2896
|
+
timeSlot: Eo,
|
|
2897
|
+
timeSlotSelected: Bo,
|
|
2898
|
+
topicGrid: Do,
|
|
2899
|
+
topicChip: Mo,
|
|
2900
|
+
topicChipSelected: Oo,
|
|
2901
|
+
stateMessage: Fo,
|
|
2902
|
+
loadingWrap: $o,
|
|
2903
|
+
skeletonShimmer: Go,
|
|
2904
|
+
skeletonDateTabs: Uo,
|
|
2905
|
+
skeletonDateTab: Ko,
|
|
2906
|
+
skeletonPeriodTabs: Wo,
|
|
2907
|
+
skeletonPeriodTab: Ho,
|
|
2908
|
+
skeletonTimeGrid: Yo,
|
|
2909
|
+
skeletonTimeSlot: qo,
|
|
2910
|
+
retryBtn: Vo,
|
|
2911
|
+
footer: zo,
|
|
2912
|
+
proceedBtn: Jo,
|
|
2913
|
+
proceedBtnDisabled: Qo
|
|
2914
|
+
}, Xo = {
|
|
2915
|
+
morning: Wr,
|
|
2916
|
+
afternoon: Hr,
|
|
2917
|
+
evening: Yr
|
|
2918
|
+
}, Zo = {
|
|
2902
2919
|
morning: "planPeriodMorning",
|
|
2903
2920
|
afternoon: "planPeriodAfternoon",
|
|
2904
2921
|
evening: "planPeriodEvening"
|
|
2905
|
-
},
|
|
2922
|
+
}, ei = ({
|
|
2906
2923
|
isOpen: a,
|
|
2907
2924
|
onClose: o,
|
|
2908
|
-
onProceed:
|
|
2909
|
-
astrologers:
|
|
2925
|
+
onProceed: s,
|
|
2926
|
+
astrologers: h,
|
|
2910
2927
|
t: u,
|
|
2911
2928
|
analytics: _
|
|
2912
2929
|
}) => {
|
|
2913
|
-
const
|
|
2914
|
-
() =>
|
|
2915
|
-
[
|
|
2916
|
-
),
|
|
2917
|
-
|
|
2918
|
-
|
|
2930
|
+
const f = Le(), C = f?.config.imageComponent ?? Ye, w = f?.config.fetchConsultationSlots, [$, M] = D(!1), [N, m] = D(!1), [G, x] = D({}), [H, y] = D("en"), [g, P] = D(!1), Z = q(null), j = Ne(
|
|
2931
|
+
() => G[H]?.days ?? [],
|
|
2932
|
+
[G, H]
|
|
2933
|
+
), [U, S] = D(""), [K, A] = D(""), [L, ne] = D("morning"), [Y, O] = D(null), I = q(!1), E = Ne(
|
|
2934
|
+
() => j.filter((i) => i.has_availability && i.slots.length > 0),
|
|
2935
|
+
[j]
|
|
2936
|
+
), Q = ye(() => {
|
|
2937
|
+
w && (M(!0), m(!1), w().then((i) => {
|
|
2938
|
+
x(i ?? {});
|
|
2919
2939
|
}).catch(() => {
|
|
2920
|
-
|
|
2921
|
-
}).finally(() =>
|
|
2940
|
+
m(!0);
|
|
2941
|
+
}).finally(() => M(!1)));
|
|
2922
2942
|
}, [w]);
|
|
2923
2943
|
J(() => {
|
|
2924
2944
|
if (!a) {
|
|
2925
|
-
|
|
2945
|
+
I.current = !1;
|
|
2926
2946
|
return;
|
|
2927
2947
|
}
|
|
2928
|
-
|
|
2948
|
+
S(""), y("en"), P(!1), Q();
|
|
2929
2949
|
}, [a]), J(() => {
|
|
2930
|
-
if (!
|
|
2931
|
-
|
|
2950
|
+
if (!g) return;
|
|
2951
|
+
const i = (k) => {
|
|
2952
|
+
Z.current && !Z.current.contains(k.target) && P(!1);
|
|
2953
|
+
};
|
|
2954
|
+
return document.addEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
|
|
2955
|
+
}, [g]), J(() => {
|
|
2956
|
+
if (!E.length) {
|
|
2957
|
+
A(""), O(null);
|
|
2932
2958
|
return;
|
|
2933
2959
|
}
|
|
2934
|
-
const
|
|
2935
|
-
|
|
2936
|
-
(
|
|
2960
|
+
const i = E[0];
|
|
2961
|
+
A(
|
|
2962
|
+
(k) => E.some((ae) => ae.date === k) ? k : i.date
|
|
2937
2963
|
);
|
|
2938
|
-
}, [
|
|
2939
|
-
const
|
|
2940
|
-
() =>
|
|
2941
|
-
[
|
|
2942
|
-
),
|
|
2943
|
-
if (!
|
|
2944
|
-
const
|
|
2945
|
-
return
|
|
2946
|
-
}, [
|
|
2964
|
+
}, [E]);
|
|
2965
|
+
const F = Ne(
|
|
2966
|
+
() => E.find((i) => i.date === K) ?? null,
|
|
2967
|
+
[E, K]
|
|
2968
|
+
), ce = Ne(() => {
|
|
2969
|
+
if (!F) return [];
|
|
2970
|
+
const i = new Set(F.slots.map((k) => k.period));
|
|
2971
|
+
return Wn.filter((k) => i.has(k));
|
|
2972
|
+
}, [F]);
|
|
2947
2973
|
J(() => {
|
|
2948
|
-
if (!
|
|
2949
|
-
|
|
2974
|
+
if (!ce.length) {
|
|
2975
|
+
ne("morning"), O(null);
|
|
2950
2976
|
return;
|
|
2951
2977
|
}
|
|
2952
|
-
|
|
2953
|
-
(
|
|
2978
|
+
ne(
|
|
2979
|
+
(i) => ce.includes(i) ? i : ce[0]
|
|
2954
2980
|
);
|
|
2955
|
-
}, [
|
|
2956
|
-
const
|
|
2981
|
+
}, [ce]);
|
|
2982
|
+
const ee = Ne(() => F ? F.slots.filter((i) => i.period === L) : [], [F, L]);
|
|
2957
2983
|
if (J(() => {
|
|
2958
|
-
if (!
|
|
2959
|
-
|
|
2984
|
+
if (!ee.length) {
|
|
2985
|
+
O(null);
|
|
2960
2986
|
return;
|
|
2961
2987
|
}
|
|
2962
|
-
|
|
2963
|
-
(
|
|
2988
|
+
O(
|
|
2989
|
+
(i) => i && ee.some((k) => k.start === i.start) ? i : ee[0]
|
|
2964
2990
|
);
|
|
2965
|
-
}, [
|
|
2966
|
-
a &&
|
|
2967
|
-
astrologers_shown:
|
|
2968
|
-
dates_available_count:
|
|
2969
|
-
}),
|
|
2970
|
-
}, [a,
|
|
2971
|
-
const
|
|
2972
|
-
|
|
2973
|
-
date:
|
|
2974
|
-
day_part_default:
|
|
2991
|
+
}, [ee]), J(() => {
|
|
2992
|
+
a && E.length && !I.current && (_?.trackSlotScreenViewed?.({
|
|
2993
|
+
astrologers_shown: h.map((i) => i.name),
|
|
2994
|
+
dates_available_count: E.length
|
|
2995
|
+
}), I.current = !0);
|
|
2996
|
+
}, [a, E, h, _]), !a) return null;
|
|
2997
|
+
const le = !!Y && !!U, se = (i) => {
|
|
2998
|
+
A(i), _?.trackSlotDateSelected?.({
|
|
2999
|
+
date: i,
|
|
3000
|
+
day_part_default: L
|
|
2975
3001
|
});
|
|
2976
|
-
},
|
|
2977
|
-
|
|
2978
|
-
day_part:
|
|
2979
|
-
slots_available_count:
|
|
3002
|
+
}, te = (i) => {
|
|
3003
|
+
ne(i), _?.trackDayPartSelected?.({
|
|
3004
|
+
day_part: i,
|
|
3005
|
+
slots_available_count: F?.slots.filter((k) => k.period === i).length ?? 0
|
|
2980
3006
|
});
|
|
2981
|
-
},
|
|
2982
|
-
|
|
2983
|
-
date:
|
|
2984
|
-
time: vt(
|
|
2985
|
-
day_part:
|
|
2986
|
-
topic:
|
|
3007
|
+
}, ke = (i) => {
|
|
3008
|
+
O(i), _?.trackSlotSelected?.({
|
|
3009
|
+
date: K,
|
|
3010
|
+
time: vt(i.start),
|
|
3011
|
+
day_part: i.period,
|
|
3012
|
+
topic: U || null
|
|
2987
3013
|
});
|
|
2988
|
-
},
|
|
2989
|
-
|
|
2990
|
-
slot_datetime: `${
|
|
2991
|
-
}),
|
|
2992
|
-
start:
|
|
2993
|
-
end:
|
|
2994
|
-
period:
|
|
2995
|
-
topic:
|
|
3014
|
+
}, fe = () => {
|
|
3015
|
+
Y && (_?.trackSlotReservationRequested?.({
|
|
3016
|
+
slot_datetime: `${Y.start} - ${Y.end}`
|
|
3017
|
+
}), s({
|
|
3018
|
+
start: Y.start,
|
|
3019
|
+
end: Y.end,
|
|
3020
|
+
period: Y.period,
|
|
3021
|
+
topic: U,
|
|
3022
|
+
language: H
|
|
2996
3023
|
}));
|
|
2997
|
-
},
|
|
2998
|
-
|
|
2999
|
-
}
|
|
3024
|
+
}, Te = (i) => {
|
|
3025
|
+
S(i), _?.trackGuidanceTopicSelected?.({ topic: i });
|
|
3026
|
+
}, me = (i) => {
|
|
3027
|
+
y(i), P(!1);
|
|
3028
|
+
}, X = et.find((i) => i.code === H) ?? et[0];
|
|
3000
3029
|
return /* @__PURE__ */ e.jsx(
|
|
3001
3030
|
"div",
|
|
3002
3031
|
{
|
|
3003
|
-
className:
|
|
3032
|
+
className: p.overlay,
|
|
3004
3033
|
role: "dialog",
|
|
3005
3034
|
"aria-modal": "true",
|
|
3006
3035
|
"aria-label": u?.("planConsultationSlotTitle") ?? "Select consultation slot",
|
|
3007
|
-
children: /* @__PURE__ */ e.jsxs("div", { className:
|
|
3008
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3036
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: p.sheet, children: [
|
|
3037
|
+
/* @__PURE__ */ e.jsxs("div", { className: p.header, children: [
|
|
3009
3038
|
/* @__PURE__ */ e.jsx(
|
|
3010
3039
|
"button",
|
|
3011
3040
|
{
|
|
3012
|
-
className:
|
|
3041
|
+
className: p.backBtn,
|
|
3013
3042
|
onClick: o,
|
|
3014
3043
|
"aria-label": "Go back",
|
|
3015
3044
|
type: "button",
|
|
3016
|
-
children: /* @__PURE__ */ e.jsx(
|
|
3045
|
+
children: /* @__PURE__ */ e.jsx(it, {})
|
|
3017
3046
|
}
|
|
3018
3047
|
),
|
|
3019
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
3048
|
+
/* @__PURE__ */ e.jsx("h2", { className: p.title, children: u?.("planConsultationSlotTitle") ?? "Select consultation slot" })
|
|
3020
3049
|
] }),
|
|
3021
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3022
|
-
/* @__PURE__ */ e.
|
|
3023
|
-
|
|
3024
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3025
|
-
/* @__PURE__ */ e.
|
|
3026
|
-
|
|
3050
|
+
/* @__PURE__ */ e.jsxs("div", { className: p.content, children: [
|
|
3051
|
+
/* @__PURE__ */ e.jsxs("div", { className: p.languageRow, children: [
|
|
3052
|
+
/* @__PURE__ */ e.jsx("span", { className: p.languageLabel, children: u?.("planConsultationLanguageLabel") ?? "Your consultation language" }),
|
|
3053
|
+
/* @__PURE__ */ e.jsxs("div", { className: p.languageDropdown, ref: Z, children: [
|
|
3054
|
+
/* @__PURE__ */ e.jsxs(
|
|
3055
|
+
"button",
|
|
3027
3056
|
{
|
|
3028
|
-
|
|
3029
|
-
|
|
3057
|
+
type: "button",
|
|
3058
|
+
className: p.languageDropdownBtn,
|
|
3059
|
+
onClick: () => P((i) => !i),
|
|
3060
|
+
"aria-haspopup": "listbox",
|
|
3061
|
+
"aria-expanded": g,
|
|
3062
|
+
children: [
|
|
3063
|
+
u?.(X.labelKey) ?? X.label,
|
|
3064
|
+
/* @__PURE__ */ e.jsx(Ur, {})
|
|
3065
|
+
]
|
|
3066
|
+
}
|
|
3067
|
+
),
|
|
3068
|
+
g && /* @__PURE__ */ e.jsx("ul", { className: p.languageMenu, role: "listbox", children: et.map((i) => {
|
|
3069
|
+
const k = i.code === H;
|
|
3070
|
+
return /* @__PURE__ */ e.jsxs(
|
|
3071
|
+
"li",
|
|
3072
|
+
{
|
|
3073
|
+
role: "option",
|
|
3074
|
+
"aria-selected": k,
|
|
3075
|
+
className: [
|
|
3076
|
+
p.languageMenuItem,
|
|
3077
|
+
k ? p.languageMenuItemSelected : ""
|
|
3078
|
+
].filter(Boolean).join(" "),
|
|
3079
|
+
onClick: () => me(i.code),
|
|
3080
|
+
children: [
|
|
3081
|
+
u?.(i.labelKey) ?? i.label,
|
|
3082
|
+
k && /* @__PURE__ */ e.jsx(At, {})
|
|
3083
|
+
]
|
|
3084
|
+
},
|
|
3085
|
+
i.code
|
|
3086
|
+
);
|
|
3087
|
+
}) })
|
|
3088
|
+
] })
|
|
3089
|
+
] }),
|
|
3090
|
+
/* @__PURE__ */ e.jsx("p", { className: p.subtitle, children: u?.("planAstrologerHeading") ?? "We will assign you a top astrologer" }),
|
|
3091
|
+
/* @__PURE__ */ e.jsx("div", { className: p.astrologerRow, role: "list", children: h.map((i, k) => /* @__PURE__ */ e.jsxs("div", { className: p.astrologerCard, role: "listitem", children: [
|
|
3092
|
+
/* @__PURE__ */ e.jsxs("div", { className: p.astrologerTop, children: [
|
|
3093
|
+
/* @__PURE__ */ e.jsx("div", { className: p.astrologerAvatar, "aria-hidden": !0, children: i.imageUrl && /* @__PURE__ */ e.jsx(
|
|
3094
|
+
C,
|
|
3095
|
+
{
|
|
3096
|
+
src: i.imageUrl,
|
|
3097
|
+
alt: u?.(i.name) ?? i.name,
|
|
3030
3098
|
width: 40,
|
|
3031
3099
|
height: 40
|
|
3032
3100
|
}
|
|
3033
3101
|
) }),
|
|
3034
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3035
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
3036
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
3037
|
-
|
|
3102
|
+
/* @__PURE__ */ e.jsxs("div", { className: p.astrologerBasicInfo, children: [
|
|
3103
|
+
/* @__PURE__ */ e.jsx("p", { className: p.astrologerName, children: u?.(i.name) ?? i.name }),
|
|
3104
|
+
/* @__PURE__ */ e.jsx("p", { className: p.astrologerMeta, children: u?.(i.experience) ?? i.experience }),
|
|
3105
|
+
i.languages && i.languages.length > 0 && /* @__PURE__ */ e.jsx("p", { className: p.astrologerMeta, children: i.languages.join(", ") })
|
|
3038
3106
|
] })
|
|
3039
3107
|
] }),
|
|
3040
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3041
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3108
|
+
/* @__PURE__ */ e.jsx("div", { className: p.astrologerCertList, children: i.certifications.map((ae, ie) => /* @__PURE__ */ e.jsxs("p", { className: p.astrologerCertItem, children: [
|
|
3109
|
+
/* @__PURE__ */ e.jsx("span", { className: p.bullet, children: "•" }),
|
|
3042
3110
|
" ",
|
|
3043
|
-
u?.(
|
|
3044
|
-
] },
|
|
3045
|
-
] },
|
|
3046
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3047
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3048
|
-
|
|
3111
|
+
u?.(ae) ?? ae
|
|
3112
|
+
] }, ie)) })
|
|
3113
|
+
] }, k)) }),
|
|
3114
|
+
/* @__PURE__ */ e.jsxs("div", { className: p.trustRow, children: [
|
|
3115
|
+
/* @__PURE__ */ e.jsx("div", { className: p.trustAvatars, "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
3116
|
+
C,
|
|
3049
3117
|
{
|
|
3050
3118
|
src: "https://srm-cdn.a4b.io/yoda/1785317712031.svg",
|
|
3051
3119
|
alt: "",
|
|
@@ -3056,137 +3124,137 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3056
3124
|
loading: "eager"
|
|
3057
3125
|
}
|
|
3058
3126
|
) }),
|
|
3059
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3127
|
+
/* @__PURE__ */ e.jsx("span", { className: p.trustText, children: u?.("planConsultationTrustLabel") ?? "3,750+ people have booked consultation" })
|
|
3060
3128
|
] }),
|
|
3061
|
-
/* @__PURE__ */ e.jsx("hr", { className:
|
|
3062
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
3063
|
-
/* @__PURE__ */ e.jsxs("p", { className:
|
|
3129
|
+
/* @__PURE__ */ e.jsx("hr", { className: p.trustDivider }),
|
|
3130
|
+
/* @__PURE__ */ e.jsx("p", { className: p.sectionHeading, children: u?.("planSelectSlotHeading") ?? "Book your preferred consultation slot" }),
|
|
3131
|
+
/* @__PURE__ */ e.jsxs("p", { className: p.reportReadyBanner, children: [
|
|
3064
3132
|
u?.("planReportReadyPrefix") ?? "Your Report will be ready in",
|
|
3065
3133
|
" ",
|
|
3066
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3134
|
+
/* @__PURE__ */ e.jsx("span", { className: p.reportReadyDuration, children: u?.("planReportReadyDuration") ?? "24-48 hours" }),
|
|
3067
3135
|
" ",
|
|
3068
3136
|
u?.("planReportReadySuffix") ?? "from today"
|
|
3069
3137
|
] }),
|
|
3070
|
-
|
|
3071
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3138
|
+
$ && /* @__PURE__ */ e.jsxs("div", { className: p.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
|
|
3139
|
+
/* @__PURE__ */ e.jsx("div", { className: p.skeletonDateTabs, children: Array.from({ length: 5 }).map((i, k) => /* @__PURE__ */ e.jsx(
|
|
3072
3140
|
"div",
|
|
3073
3141
|
{
|
|
3074
|
-
className: [
|
|
3142
|
+
className: [p.skeletonDateTab, p.skeletonShimmer].join(" ")
|
|
3075
3143
|
},
|
|
3076
|
-
|
|
3144
|
+
k
|
|
3077
3145
|
)) }),
|
|
3078
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3146
|
+
/* @__PURE__ */ e.jsx("div", { className: p.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((i, k) => /* @__PURE__ */ e.jsx(
|
|
3079
3147
|
"div",
|
|
3080
3148
|
{
|
|
3081
|
-
className: [
|
|
3149
|
+
className: [p.skeletonPeriodTab, p.skeletonShimmer].join(" ")
|
|
3082
3150
|
},
|
|
3083
|
-
|
|
3151
|
+
k
|
|
3084
3152
|
)) }),
|
|
3085
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3153
|
+
/* @__PURE__ */ e.jsx("div", { className: p.skeletonTimeGrid, children: Array.from({ length: 6 }).map((i, k) => /* @__PURE__ */ e.jsx(
|
|
3086
3154
|
"div",
|
|
3087
3155
|
{
|
|
3088
|
-
className: [
|
|
3156
|
+
className: [p.skeletonTimeSlot, p.skeletonShimmer].join(" ")
|
|
3089
3157
|
},
|
|
3090
|
-
|
|
3158
|
+
k
|
|
3091
3159
|
)) })
|
|
3092
3160
|
] }),
|
|
3093
|
-
|
|
3161
|
+
!$ && N && /* @__PURE__ */ e.jsxs("div", { className: p.stateMessage, children: [
|
|
3094
3162
|
u?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
3095
|
-
/* @__PURE__ */ e.jsx("button", { type: "button", className:
|
|
3163
|
+
/* @__PURE__ */ e.jsx("button", { type: "button", className: p.retryBtn, onClick: Q, children: u?.("planRetry") ?? "Retry" })
|
|
3096
3164
|
] }),
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3100
|
-
const
|
|
3101
|
-
return /* @__PURE__ */ e.jsxs(
|
|
3165
|
+
!$ && !N && E.length === 0 && /* @__PURE__ */ e.jsx("p", { className: p.stateMessage, children: u?.("planNoSlotsAvailable") ?? "No slots available right now." }),
|
|
3166
|
+
!$ && !N && E.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3167
|
+
/* @__PURE__ */ e.jsx("div", { className: p.dateTabs, role: "radiogroup", "aria-label": "Consultation date", children: E.map((i) => {
|
|
3168
|
+
const k = i.date === K, { dayLabel: ae, dayNum: ie } = Kn(i.date);
|
|
3169
|
+
return /* @__PURE__ */ e.jsxs(Yt, { children: [
|
|
3102
3170
|
/* @__PURE__ */ e.jsxs(
|
|
3103
3171
|
"button",
|
|
3104
3172
|
{
|
|
3105
3173
|
type: "button",
|
|
3106
3174
|
className: [
|
|
3107
|
-
|
|
3108
|
-
|
|
3175
|
+
p.dateTab,
|
|
3176
|
+
k ? p.dateTabSelected : ""
|
|
3109
3177
|
].filter(Boolean).join(" "),
|
|
3110
3178
|
role: "radio",
|
|
3111
|
-
"aria-checked":
|
|
3112
|
-
onClick: () =>
|
|
3179
|
+
"aria-checked": k,
|
|
3180
|
+
onClick: () => se(i.date),
|
|
3113
3181
|
children: [
|
|
3114
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3115
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3182
|
+
/* @__PURE__ */ e.jsx("span", { className: p.dateTabLabel, children: u?.(ae) ?? ae }),
|
|
3183
|
+
/* @__PURE__ */ e.jsx("span", { className: p.dateTabNum, children: ie })
|
|
3116
3184
|
]
|
|
3117
3185
|
}
|
|
3118
3186
|
),
|
|
3119
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3120
|
-
] },
|
|
3187
|
+
/* @__PURE__ */ e.jsx("span", { className: p.dateTabDivider, "aria-hidden": !0 })
|
|
3188
|
+
] }, i.date);
|
|
3121
3189
|
}) }),
|
|
3122
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3123
|
-
const
|
|
3190
|
+
/* @__PURE__ */ e.jsx("div", { className: p.periodTabs, role: "tablist", "aria-label": "Time of day", children: ce.map((i) => {
|
|
3191
|
+
const k = Xo[i];
|
|
3124
3192
|
return /* @__PURE__ */ e.jsxs(
|
|
3125
3193
|
"button",
|
|
3126
3194
|
{
|
|
3127
3195
|
type: "button",
|
|
3128
3196
|
className: [
|
|
3129
|
-
|
|
3130
|
-
|
|
3197
|
+
p.periodTab,
|
|
3198
|
+
i === L ? p.periodTabSelected : ""
|
|
3131
3199
|
].filter(Boolean).join(" "),
|
|
3132
3200
|
role: "tab",
|
|
3133
|
-
"aria-selected":
|
|
3134
|
-
onClick: () =>
|
|
3201
|
+
"aria-selected": i === L,
|
|
3202
|
+
onClick: () => te(i),
|
|
3135
3203
|
children: [
|
|
3136
|
-
/* @__PURE__ */ e.jsx(
|
|
3137
|
-
u?.(
|
|
3204
|
+
/* @__PURE__ */ e.jsx(k, {}),
|
|
3205
|
+
u?.(Zo[i]) ?? i.charAt(0).toUpperCase() + i.slice(1)
|
|
3138
3206
|
]
|
|
3139
3207
|
},
|
|
3140
|
-
|
|
3208
|
+
i
|
|
3141
3209
|
);
|
|
3142
3210
|
}) }),
|
|
3143
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3211
|
+
/* @__PURE__ */ e.jsx("div", { className: p.timeGrid, role: "radiogroup", "aria-label": "Consultation time", children: ee.map((i, k) => /* @__PURE__ */ e.jsx(
|
|
3144
3212
|
"button",
|
|
3145
3213
|
{
|
|
3146
3214
|
type: "button",
|
|
3147
3215
|
className: [
|
|
3148
|
-
|
|
3149
|
-
|
|
3216
|
+
p.timeSlot,
|
|
3217
|
+
Y?.start === i.start ? p.timeSlotSelected : ""
|
|
3150
3218
|
].filter(Boolean).join(" "),
|
|
3151
3219
|
role: "radio",
|
|
3152
|
-
"aria-checked":
|
|
3153
|
-
onClick: () =>
|
|
3154
|
-
children: vt(
|
|
3220
|
+
"aria-checked": Y?.start === i.start,
|
|
3221
|
+
onClick: () => ke(i),
|
|
3222
|
+
children: vt(i.start)
|
|
3155
3223
|
},
|
|
3156
|
-
`${
|
|
3224
|
+
`${i.start}-${k}`
|
|
3157
3225
|
)) })
|
|
3158
3226
|
] }),
|
|
3159
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
3160
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3227
|
+
/* @__PURE__ */ e.jsx("p", { className: p.sectionHeading, children: u?.("planGuidanceHeading") ?? "What would you like guidance on?" }),
|
|
3228
|
+
/* @__PURE__ */ e.jsx("div", { className: p.topicGrid, role: "radiogroup", "aria-label": "Guidance topic", children: Hn.map((i) => /* @__PURE__ */ e.jsx(
|
|
3161
3229
|
"button",
|
|
3162
3230
|
{
|
|
3163
3231
|
type: "button",
|
|
3164
3232
|
className: [
|
|
3165
|
-
|
|
3166
|
-
|
|
3233
|
+
p.topicChip,
|
|
3234
|
+
U === i.id ? p.topicChipSelected : ""
|
|
3167
3235
|
].filter(Boolean).join(" "),
|
|
3168
3236
|
role: "radio",
|
|
3169
|
-
"aria-checked":
|
|
3170
|
-
onClick: () =>
|
|
3171
|
-
children: u?.(
|
|
3237
|
+
"aria-checked": U === i.id,
|
|
3238
|
+
onClick: () => Te(i.id),
|
|
3239
|
+
children: u?.(i.labelKey) ?? i.label
|
|
3172
3240
|
},
|
|
3173
|
-
|
|
3241
|
+
i.id
|
|
3174
3242
|
)) })
|
|
3175
3243
|
] }),
|
|
3176
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3244
|
+
/* @__PURE__ */ e.jsx("div", { className: p.footer, children: /* @__PURE__ */ e.jsx(
|
|
3177
3245
|
"button",
|
|
3178
3246
|
{
|
|
3179
3247
|
type: "button",
|
|
3180
|
-
className: [
|
|
3181
|
-
disabled: !
|
|
3182
|
-
onClick:
|
|
3248
|
+
className: [p.proceedBtn, le ? "" : p.proceedBtnDisabled].filter(Boolean).join(" "),
|
|
3249
|
+
disabled: !le,
|
|
3250
|
+
onClick: fe,
|
|
3183
3251
|
children: u?.("planProceedToPayment") ?? "Proceed to payment"
|
|
3184
3252
|
}
|
|
3185
3253
|
) })
|
|
3186
3254
|
] })
|
|
3187
3255
|
}
|
|
3188
3256
|
);
|
|
3189
|
-
},
|
|
3257
|
+
}, ti = [
|
|
3190
3258
|
{
|
|
3191
3259
|
id: "jyoti",
|
|
3192
3260
|
name: "planAstrologerNameJyoti",
|
|
@@ -3214,7 +3282,7 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3214
3282
|
experience: "planAstrologerExpNeeraj",
|
|
3215
3283
|
certifications: ["planAstrologerCertBhuCertified", "planAstrologerCertMantraRudraksha"]
|
|
3216
3284
|
}
|
|
3217
|
-
],
|
|
3285
|
+
], ai = (a) => [
|
|
3218
3286
|
{
|
|
3219
3287
|
id: "kundli-report",
|
|
3220
3288
|
title: "planNameBasic",
|
|
@@ -3240,159 +3308,159 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3240
3308
|
{ text: "planFeatureRealTimeAnswers", included: !0 },
|
|
3241
3309
|
{ text: "planFeatureTailoredRemedies", included: !0 }
|
|
3242
3310
|
],
|
|
3243
|
-
astrologers:
|
|
3311
|
+
astrologers: ti.filter(
|
|
3244
3312
|
(o) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(o.id)
|
|
3245
3313
|
)
|
|
3246
3314
|
}
|
|
3247
|
-
],
|
|
3315
|
+
], ri = ({
|
|
3248
3316
|
isOpen: a,
|
|
3249
3317
|
onClose: o,
|
|
3250
|
-
selectedPlan:
|
|
3251
|
-
onSelectPlan:
|
|
3318
|
+
selectedPlan: s,
|
|
3319
|
+
onSelectPlan: h,
|
|
3252
3320
|
plans: u,
|
|
3253
3321
|
onProceed: _,
|
|
3254
|
-
t:
|
|
3255
|
-
analytics:
|
|
3322
|
+
t: f,
|
|
3323
|
+
analytics: C,
|
|
3256
3324
|
enableConsultationScheduling: w
|
|
3257
3325
|
}) => {
|
|
3258
|
-
const
|
|
3326
|
+
const $ = Le(), M = $?.config.isGlobal ?? !0, N = w ?? $?.config.enableConsultationScheduling ?? !1, m = u ?? ai(M), G = s?.id || m.find((j) => j.badge)?.id || m[0]?.id || "", x = q(null), H = q(null), y = q(!1), [g, P] = D(!1);
|
|
3259
3327
|
J(() => {
|
|
3260
3328
|
if (a) {
|
|
3261
|
-
if (!
|
|
3262
|
-
const
|
|
3263
|
-
|
|
3329
|
+
if (!s) {
|
|
3330
|
+
const j = m.find((U) => U.badge) ?? m[0];
|
|
3331
|
+
j && h(j);
|
|
3264
3332
|
}
|
|
3265
|
-
|
|
3266
|
-
plans_shown:
|
|
3267
|
-
default_selected_plan:
|
|
3268
|
-
}),
|
|
3333
|
+
y.current || (C?.trackPlanPageViewed?.(), N && C?.trackPlanScreenViewed?.({
|
|
3334
|
+
plans_shown: m.map((j) => j.id),
|
|
3335
|
+
default_selected_plan: s?.id || m.find((j) => j.badge)?.id || m[0]?.id || ""
|
|
3336
|
+
}), y.current = !0);
|
|
3269
3337
|
} else
|
|
3270
|
-
|
|
3271
|
-
}, [a,
|
|
3272
|
-
const
|
|
3273
|
-
|
|
3338
|
+
y.current = !1;
|
|
3339
|
+
}, [a, m, s, h, C]);
|
|
3340
|
+
const Z = () => {
|
|
3341
|
+
C?.trackPlanPageClosed?.(), o();
|
|
3274
3342
|
};
|
|
3275
3343
|
return J(() => {
|
|
3276
3344
|
if (!a) return;
|
|
3277
|
-
const
|
|
3345
|
+
const j = document.body.style.overflow;
|
|
3278
3346
|
return document.body.style.overflow = "hidden", () => {
|
|
3279
|
-
document.body.style.overflow =
|
|
3347
|
+
document.body.style.overflow = j;
|
|
3280
3348
|
};
|
|
3281
3349
|
}, [a]), a ? /* @__PURE__ */ e.jsxs(
|
|
3282
3350
|
"div",
|
|
3283
3351
|
{
|
|
3284
|
-
className:
|
|
3352
|
+
className: v.overlay,
|
|
3285
3353
|
role: "dialog",
|
|
3286
3354
|
"aria-modal": "true",
|
|
3287
|
-
"aria-label":
|
|
3355
|
+
"aria-label": f?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
3288
3356
|
children: [
|
|
3289
3357
|
/* @__PURE__ */ e.jsxs(
|
|
3290
3358
|
"div",
|
|
3291
3359
|
{
|
|
3292
|
-
ref:
|
|
3293
|
-
className:
|
|
3360
|
+
ref: x,
|
|
3361
|
+
className: N ? v.sheetFullScreen : v.sheet,
|
|
3294
3362
|
children: [
|
|
3295
|
-
|
|
3363
|
+
N ? /* @__PURE__ */ e.jsxs("div", { className: v.headerFull, children: [
|
|
3296
3364
|
/* @__PURE__ */ e.jsx(
|
|
3297
3365
|
"button",
|
|
3298
3366
|
{
|
|
3299
|
-
className:
|
|
3300
|
-
onClick:
|
|
3367
|
+
className: v.backBtn,
|
|
3368
|
+
onClick: Z,
|
|
3301
3369
|
"aria-label": "Go back",
|
|
3302
3370
|
type: "button",
|
|
3303
|
-
children: /* @__PURE__ */ e.jsx(
|
|
3371
|
+
children: /* @__PURE__ */ e.jsx(it, {})
|
|
3304
3372
|
}
|
|
3305
3373
|
),
|
|
3306
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
3374
|
+
/* @__PURE__ */ e.jsx("h2", { className: v.titleFull, children: f?.("planSheetTitle") ?? "Choose Your Kundli Plan" })
|
|
3307
3375
|
] }) : /* @__PURE__ */ e.jsx(
|
|
3308
|
-
|
|
3376
|
+
On,
|
|
3309
3377
|
{
|
|
3310
|
-
title:
|
|
3311
|
-
onBack:
|
|
3378
|
+
title: f?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
3379
|
+
onBack: Z
|
|
3312
3380
|
}
|
|
3313
3381
|
),
|
|
3314
3382
|
/* @__PURE__ */ e.jsx(
|
|
3315
3383
|
"div",
|
|
3316
3384
|
{
|
|
3317
|
-
ref:
|
|
3318
|
-
className:
|
|
3385
|
+
ref: H,
|
|
3386
|
+
className: v.plansContainer,
|
|
3319
3387
|
role: "radiogroup",
|
|
3320
3388
|
"aria-label": "Kundli plans",
|
|
3321
|
-
children:
|
|
3322
|
-
|
|
3389
|
+
children: m.map((j) => /* @__PURE__ */ e.jsx(
|
|
3390
|
+
Un,
|
|
3323
3391
|
{
|
|
3324
|
-
plan:
|
|
3325
|
-
isSelected:
|
|
3326
|
-
t:
|
|
3327
|
-
onSelect: (
|
|
3328
|
-
const
|
|
3329
|
-
|
|
3330
|
-
planId:
|
|
3331
|
-
planName:
|
|
3332
|
-
...
|
|
3333
|
-
price:
|
|
3334
|
-
includes_consultation: !!(
|
|
3335
|
-
cta_label:
|
|
3392
|
+
plan: j,
|
|
3393
|
+
isSelected: j.id === G,
|
|
3394
|
+
t: f,
|
|
3395
|
+
onSelect: (U) => {
|
|
3396
|
+
const S = m.find((K) => K.id === U);
|
|
3397
|
+
S && (C?.trackPlanSelected?.({
|
|
3398
|
+
planId: S.id,
|
|
3399
|
+
planName: S.title,
|
|
3400
|
+
...N ? {
|
|
3401
|
+
price: S.price,
|
|
3402
|
+
includes_consultation: !!(S.astrologers && S.astrologers.length > 0),
|
|
3403
|
+
cta_label: S.astrologers && S.astrologers.length > 0 ? f?.("planSelectConsultationSlot") ?? "Select consultation slot →" : f?.("planProceedToPayment") ?? "Proceed to Payment"
|
|
3336
3404
|
} : {}
|
|
3337
|
-
}),
|
|
3405
|
+
}), h(S));
|
|
3338
3406
|
}
|
|
3339
3407
|
},
|
|
3340
|
-
|
|
3408
|
+
j.id
|
|
3341
3409
|
))
|
|
3342
3410
|
}
|
|
3343
3411
|
),
|
|
3344
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3412
|
+
/* @__PURE__ */ e.jsx("div", { className: v.footer, children: /* @__PURE__ */ e.jsx(
|
|
3345
3413
|
"button",
|
|
3346
3414
|
{
|
|
3347
|
-
className:
|
|
3348
|
-
disabled: !
|
|
3415
|
+
className: v.proceedBtn,
|
|
3416
|
+
disabled: !s,
|
|
3349
3417
|
onClick: () => {
|
|
3350
|
-
if (
|
|
3351
|
-
if (
|
|
3352
|
-
|
|
3353
|
-
planId:
|
|
3354
|
-
planName:
|
|
3355
|
-
}),
|
|
3356
|
-
planId:
|
|
3357
|
-
planName:
|
|
3418
|
+
if (s) {
|
|
3419
|
+
if (N && s.astrologers && s.astrologers.length > 0) {
|
|
3420
|
+
C?.trackSelectConsultationSlotClicked?.({
|
|
3421
|
+
planId: s.id,
|
|
3422
|
+
planName: s.title
|
|
3423
|
+
}), C?.trackPlanProceedClicked?.({
|
|
3424
|
+
planId: s.id,
|
|
3425
|
+
planName: s.title,
|
|
3358
3426
|
cta_type: "confirm_consultation_slot",
|
|
3359
3427
|
next_step: "slot_selection"
|
|
3360
|
-
}),
|
|
3428
|
+
}), P(!0);
|
|
3361
3429
|
return;
|
|
3362
3430
|
}
|
|
3363
|
-
|
|
3364
|
-
planId:
|
|
3365
|
-
planName:
|
|
3366
|
-
...
|
|
3367
|
-
}), _(
|
|
3431
|
+
C?.trackPlanProceedClicked?.({
|
|
3432
|
+
planId: s.id,
|
|
3433
|
+
planName: s.title,
|
|
3434
|
+
...N ? { cta_type: "proceed", next_step: "payment" } : {}
|
|
3435
|
+
}), _(s), o();
|
|
3368
3436
|
}
|
|
3369
3437
|
},
|
|
3370
|
-
children:
|
|
3438
|
+
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
3439
|
}
|
|
3372
3440
|
) })
|
|
3373
3441
|
]
|
|
3374
3442
|
}
|
|
3375
3443
|
),
|
|
3376
|
-
|
|
3377
|
-
|
|
3444
|
+
N && s?.astrologers && s.astrologers.length > 0 && /* @__PURE__ */ e.jsx(
|
|
3445
|
+
ei,
|
|
3378
3446
|
{
|
|
3379
3447
|
isOpen: g,
|
|
3380
|
-
onClose: () =>
|
|
3381
|
-
astrologers:
|
|
3382
|
-
t:
|
|
3383
|
-
analytics:
|
|
3384
|
-
onProceed: (
|
|
3385
|
-
|
|
3386
|
-
planId:
|
|
3387
|
-
planName:
|
|
3388
|
-
}), _(
|
|
3448
|
+
onClose: () => P(!1),
|
|
3449
|
+
astrologers: s.astrologers,
|
|
3450
|
+
t: f,
|
|
3451
|
+
analytics: C,
|
|
3452
|
+
onProceed: (j) => {
|
|
3453
|
+
C?.trackPlanProceedClicked?.({
|
|
3454
|
+
planId: s.id,
|
|
3455
|
+
planName: s.title
|
|
3456
|
+
}), _(s, j), P(!1), o();
|
|
3389
3457
|
}
|
|
3390
3458
|
}
|
|
3391
3459
|
)
|
|
3392
3460
|
]
|
|
3393
3461
|
}
|
|
3394
3462
|
) : null;
|
|
3395
|
-
},
|
|
3463
|
+
}, ni = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", oi = (a, o) => Pt[a]?.[o] ?? o, ii = (a, o) => a && tt.includes(a) ? a : o ? "+1" : "+91", li = {
|
|
3396
3464
|
fullName: "",
|
|
3397
3465
|
phone: "",
|
|
3398
3466
|
phoneCountryCode: "",
|
|
@@ -3403,109 +3471,109 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3403
3471
|
birthTime: "",
|
|
3404
3472
|
birthTimeUnknown: !1,
|
|
3405
3473
|
birthPlace: ""
|
|
3406
|
-
},
|
|
3474
|
+
}, fi = ({
|
|
3407
3475
|
className: a = "",
|
|
3408
3476
|
locale: o,
|
|
3409
|
-
showLanguageSelector:
|
|
3410
|
-
onBack:
|
|
3477
|
+
showLanguageSelector: s = !0,
|
|
3478
|
+
onBack: h,
|
|
3411
3479
|
initialValues: u,
|
|
3412
3480
|
onProceed: _,
|
|
3413
|
-
onProceedGuidance:
|
|
3414
|
-
proceedHref:
|
|
3481
|
+
onProceedGuidance: f,
|
|
3482
|
+
proceedHref: C,
|
|
3415
3483
|
originalPriceLabel: w,
|
|
3416
|
-
discountedPriceLabel:
|
|
3417
|
-
googleMapsApiKey:
|
|
3418
|
-
atlasSearchLocalities:
|
|
3419
|
-
googleMapsAutocompleteEnabled:
|
|
3420
|
-
analytics:
|
|
3484
|
+
discountedPriceLabel: $,
|
|
3485
|
+
googleMapsApiKey: M = "",
|
|
3486
|
+
atlasSearchLocalities: N,
|
|
3487
|
+
googleMapsAutocompleteEnabled: m,
|
|
3488
|
+
analytics: G
|
|
3421
3489
|
}) => {
|
|
3422
|
-
const
|
|
3490
|
+
const x = Le(), H = ua(), y = x !== null, g = y ? x.locale : o, P = g ?? H?.locale ?? "en", [Z, j] = D(P), U = y ? x.locale : Z, S = y ? x.setLocale : j, [K, A] = D(!1), L = q(null), ne = q(
|
|
3423
3491
|
g
|
|
3424
|
-
),
|
|
3425
|
-
|
|
3492
|
+
), Y = q(
|
|
3493
|
+
H?.locale
|
|
3426
3494
|
);
|
|
3427
3495
|
J(() => {
|
|
3428
3496
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
3429
3497
|
}, []);
|
|
3430
|
-
const
|
|
3498
|
+
const O = (T) => oi(U, T);
|
|
3431
3499
|
J(() => {
|
|
3432
|
-
g &&
|
|
3433
|
-
}, [g,
|
|
3500
|
+
g && ne.current !== g && S(g), ne.current = g;
|
|
3501
|
+
}, [g, S]), J(() => {
|
|
3434
3502
|
if (g) return;
|
|
3435
|
-
const
|
|
3436
|
-
|
|
3437
|
-
}, [
|
|
3438
|
-
const [I,
|
|
3439
|
-
...
|
|
3503
|
+
const T = H?.locale;
|
|
3504
|
+
T && Y.current !== T && S(T), Y.current = T;
|
|
3505
|
+
}, [H?.locale, g, S]);
|
|
3506
|
+
const [I, E] = D({
|
|
3507
|
+
...li,
|
|
3440
3508
|
...u,
|
|
3441
3509
|
phone: u?.phone ?? ""
|
|
3442
|
-
}),
|
|
3443
|
-
() =>
|
|
3444
|
-
),
|
|
3445
|
-
!!(
|
|
3446
|
-
),
|
|
3447
|
-
|
|
3448
|
-
}, []),
|
|
3510
|
+
}), Q = y ? x?.config.isGlobal ?? !0 : !0, F = y ? x.formValues : I, ce = y ? x.setFormValues : E, [ee, le] = D(
|
|
3511
|
+
() => ii(F.phoneCountryCode, Q)
|
|
3512
|
+
), se = q(
|
|
3513
|
+
!!(F.phoneCountryCode && tt.includes(F.phoneCountryCode))
|
|
3514
|
+
), te = q(!1), ke = ye((T) => {
|
|
3515
|
+
te.current = !0, le(T);
|
|
3516
|
+
}, []), fe = q(!0);
|
|
3449
3517
|
J(() => {
|
|
3450
|
-
if (
|
|
3451
|
-
|
|
3518
|
+
if (fe.current) {
|
|
3519
|
+
fe.current = !1;
|
|
3452
3520
|
return;
|
|
3453
3521
|
}
|
|
3454
|
-
|
|
3455
|
-
}, [
|
|
3456
|
-
if (!
|
|
3457
|
-
const
|
|
3458
|
-
|
|
3459
|
-
}, [
|
|
3460
|
-
const
|
|
3522
|
+
se.current || te.current || le(Q ? "+1" : "+91");
|
|
3523
|
+
}, [Q]), J(() => {
|
|
3524
|
+
if (!y || te.current) return;
|
|
3525
|
+
const T = F.phoneCountryCode;
|
|
3526
|
+
T && tt.includes(T) && T !== ee && (se.current = !0, le(T));
|
|
3527
|
+
}, [y, F.phoneCountryCode]);
|
|
3528
|
+
const Te = y ? x.goToPage : h, me = y ? x.onProceed : _, X = y ? x.onProceedGuidance : f, i = y ? x.config.proceedHref : C, k = y ? x.config.originalPriceLabel : w, ae = y ? x.config.discountedPriceLabel : $, ie = y ? x.config.showLanguageSelector ?? !0 : s, ve = (y ? x?.config?.analytics : G) ?? G;
|
|
3461
3529
|
J(() => {
|
|
3462
|
-
if (!
|
|
3463
|
-
const
|
|
3464
|
-
|
|
3530
|
+
if (!K) return;
|
|
3531
|
+
const T = (Be) => {
|
|
3532
|
+
L.current && !L.current.contains(Be.target) && A(!1);
|
|
3465
3533
|
};
|
|
3466
|
-
return document.addEventListener("mousedown",
|
|
3467
|
-
}, [
|
|
3468
|
-
const [Se,
|
|
3469
|
-
xe.current =
|
|
3470
|
-
}, []), we =
|
|
3534
|
+
return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
|
|
3535
|
+
}, [K]);
|
|
3536
|
+
const [Se, de] = D(!1), [ue, je] = D(null), xe = q(null), ge = ye((T) => {
|
|
3537
|
+
xe.current = T, de(!0);
|
|
3538
|
+
}, []), we = q(!1);
|
|
3471
3539
|
J(() => {
|
|
3472
|
-
if (we.current || !
|
|
3540
|
+
if (we.current || !y || !x?.config.autoOpenPlanSheet || x?.config.variant !== "v1")
|
|
3473
3541
|
return;
|
|
3474
3542
|
we.current = !0;
|
|
3475
|
-
const
|
|
3476
|
-
|
|
3477
|
-
...
|
|
3478
|
-
phone:
|
|
3543
|
+
const T = (F.phone ?? "").trim();
|
|
3544
|
+
ge({
|
|
3545
|
+
...F,
|
|
3546
|
+
phone: T && `${ee}-${T}`
|
|
3479
3547
|
});
|
|
3480
|
-
}, [
|
|
3481
|
-
const Pe =
|
|
3482
|
-
if (!xe.current || !
|
|
3483
|
-
|
|
3484
|
-
planId:
|
|
3485
|
-
planName:
|
|
3486
|
-
price:
|
|
3487
|
-
currency:
|
|
3548
|
+
}, [y, x?.config.autoOpenPlanSheet, x?.config.variant, F, ee, ge]);
|
|
3549
|
+
const Pe = ye(() => {
|
|
3550
|
+
if (!xe.current || !ue) return;
|
|
3551
|
+
ve?.trackPlanProceedClicked?.({
|
|
3552
|
+
planId: ue.id,
|
|
3553
|
+
planName: ue.title,
|
|
3554
|
+
price: ue.price,
|
|
3555
|
+
currency: Q ? "USD" : "INR"
|
|
3488
3556
|
});
|
|
3489
|
-
const
|
|
3490
|
-
|
|
3491
|
-
}, [
|
|
3557
|
+
const T = { ...xe.current, _selectedPlan: ue };
|
|
3558
|
+
ue.id === Nt && X ? X(T) : me?.(T), de(!1), xe.current = null;
|
|
3559
|
+
}, [ue, me, X]), Ie = x?.config.imageComponent ?? Ye, Ee = ie ? /* @__PURE__ */ e.jsxs("div", { className: Ce.langDropdownWrap, ref: L, children: [
|
|
3492
3560
|
/* @__PURE__ */ e.jsxs(
|
|
3493
3561
|
"button",
|
|
3494
3562
|
{
|
|
3495
3563
|
type: "button",
|
|
3496
3564
|
className: Ce.langTrigger,
|
|
3497
3565
|
onClick: () => {
|
|
3498
|
-
|
|
3566
|
+
ve?.trackLanguageClickedFe?.({ language: U }), A((T) => !T);
|
|
3499
3567
|
},
|
|
3500
|
-
"aria-expanded":
|
|
3568
|
+
"aria-expanded": K,
|
|
3501
3569
|
"aria-haspopup": "listbox",
|
|
3502
3570
|
id: "kundli-form-lang",
|
|
3503
|
-
"aria-label":
|
|
3571
|
+
"aria-label": O("language"),
|
|
3504
3572
|
children: [
|
|
3505
3573
|
/* @__PURE__ */ e.jsx(
|
|
3506
3574
|
Ie,
|
|
3507
3575
|
{
|
|
3508
|
-
src:
|
|
3576
|
+
src: ni,
|
|
3509
3577
|
alt: "",
|
|
3510
3578
|
className: Ce.langIcon,
|
|
3511
3579
|
width: 16,
|
|
@@ -3513,97 +3581,97 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3513
3581
|
loading: "eager"
|
|
3514
3582
|
}
|
|
3515
3583
|
),
|
|
3516
|
-
/* @__PURE__ */ e.jsx("span", { className: Ce.langLabel, children:
|
|
3584
|
+
/* @__PURE__ */ e.jsx("span", { className: Ce.langLabel, children: _t[U] })
|
|
3517
3585
|
]
|
|
3518
3586
|
}
|
|
3519
3587
|
),
|
|
3520
|
-
|
|
3588
|
+
K && /* @__PURE__ */ e.jsx(
|
|
3521
3589
|
"ul",
|
|
3522
3590
|
{
|
|
3523
3591
|
className: Ce.langMenu,
|
|
3524
3592
|
role: "listbox",
|
|
3525
3593
|
"aria-labelledby": "kundli-form-lang",
|
|
3526
|
-
"aria-activedescendant": `kundli-form-lang-option-${
|
|
3527
|
-
children:
|
|
3594
|
+
"aria-activedescendant": `kundli-form-lang-option-${U}`,
|
|
3595
|
+
children: wt.map((T) => /* @__PURE__ */ e.jsx(
|
|
3528
3596
|
"li",
|
|
3529
3597
|
{
|
|
3530
|
-
id: `kundli-form-lang-option-${
|
|
3598
|
+
id: `kundli-form-lang-option-${T}`,
|
|
3531
3599
|
role: "option",
|
|
3532
|
-
"aria-selected":
|
|
3600
|
+
"aria-selected": T === U,
|
|
3533
3601
|
className: Ce.langOption,
|
|
3534
3602
|
onClick: () => {
|
|
3535
|
-
|
|
3603
|
+
ve?.trackLanguageChangedFe?.({ newLanguage: T }), S(T), A(!1);
|
|
3536
3604
|
},
|
|
3537
|
-
children:
|
|
3605
|
+
children: _t[T]
|
|
3538
3606
|
},
|
|
3539
|
-
|
|
3607
|
+
T
|
|
3540
3608
|
))
|
|
3541
3609
|
}
|
|
3542
3610
|
)
|
|
3543
3611
|
] }) : null;
|
|
3544
3612
|
return /* @__PURE__ */ e.jsxs("div", { className: `${Ce.container} ${a}`, children: [
|
|
3545
3613
|
/* @__PURE__ */ e.jsx(
|
|
3546
|
-
|
|
3614
|
+
$r,
|
|
3547
3615
|
{
|
|
3548
|
-
t:
|
|
3549
|
-
logoUrl:
|
|
3550
|
-
languageSelector:
|
|
3616
|
+
t: O,
|
|
3617
|
+
logoUrl: y ? x.config.logoUrl : void 0,
|
|
3618
|
+
languageSelector: Ee,
|
|
3551
3619
|
className: Ce.kundliHeaderNoBorder
|
|
3552
3620
|
}
|
|
3553
3621
|
),
|
|
3554
3622
|
/* @__PURE__ */ e.jsx("div", { className: Ce.headerSeparator, "aria-hidden": !0 }),
|
|
3555
3623
|
/* @__PURE__ */ e.jsxs("main", { className: Ce.main, children: [
|
|
3556
|
-
/* @__PURE__ */ e.jsx(
|
|
3624
|
+
/* @__PURE__ */ e.jsx(ya, { t: O, onBack: Te }),
|
|
3557
3625
|
/* @__PURE__ */ e.jsx(
|
|
3558
|
-
|
|
3626
|
+
Cr,
|
|
3559
3627
|
{
|
|
3560
|
-
t:
|
|
3561
|
-
values:
|
|
3562
|
-
onChange:
|
|
3563
|
-
googleMapsApiKey:
|
|
3564
|
-
atlasSearchLocalities:
|
|
3565
|
-
googleMapsAutocompleteEnabled:
|
|
3566
|
-
phoneIsdCode:
|
|
3567
|
-
onPhoneIsdCodeChange:
|
|
3568
|
-
showV1ExtraFields:
|
|
3569
|
-
analytics:
|
|
3628
|
+
t: O,
|
|
3629
|
+
values: F,
|
|
3630
|
+
onChange: ce,
|
|
3631
|
+
googleMapsApiKey: M,
|
|
3632
|
+
atlasSearchLocalities: N,
|
|
3633
|
+
googleMapsAutocompleteEnabled: m,
|
|
3634
|
+
phoneIsdCode: ee,
|
|
3635
|
+
onPhoneIsdCodeChange: ke,
|
|
3636
|
+
showV1ExtraFields: y ? x?.config.variant === "v1" : !1,
|
|
3637
|
+
analytics: ve
|
|
3570
3638
|
}
|
|
3571
3639
|
)
|
|
3572
3640
|
] }),
|
|
3573
3641
|
/* @__PURE__ */ e.jsx(
|
|
3574
|
-
|
|
3642
|
+
Or,
|
|
3575
3643
|
{
|
|
3576
|
-
t:
|
|
3577
|
-
values:
|
|
3578
|
-
phoneIsdCode:
|
|
3579
|
-
onProceed:
|
|
3580
|
-
onProceedGuidance:
|
|
3581
|
-
href:
|
|
3582
|
-
originalPriceLabel:
|
|
3583
|
-
discountedPriceLabel:
|
|
3584
|
-
analytics:
|
|
3585
|
-
showPlanSheet:
|
|
3644
|
+
t: O,
|
|
3645
|
+
values: F,
|
|
3646
|
+
phoneIsdCode: ee,
|
|
3647
|
+
onProceed: me,
|
|
3648
|
+
onProceedGuidance: X,
|
|
3649
|
+
href: i,
|
|
3650
|
+
originalPriceLabel: k,
|
|
3651
|
+
discountedPriceLabel: ae,
|
|
3652
|
+
analytics: ve,
|
|
3653
|
+
showPlanSheet: ge,
|
|
3586
3654
|
confirmPlan: Pe,
|
|
3587
3655
|
planSheetOpen: Se,
|
|
3588
|
-
selectedPlan:
|
|
3656
|
+
selectedPlan: ue
|
|
3589
3657
|
}
|
|
3590
3658
|
),
|
|
3591
|
-
|
|
3592
|
-
|
|
3659
|
+
x?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
|
|
3660
|
+
ri,
|
|
3593
3661
|
{
|
|
3594
3662
|
isOpen: Se,
|
|
3595
|
-
onClose: () =>
|
|
3596
|
-
selectedPlan:
|
|
3597
|
-
onSelectPlan:
|
|
3663
|
+
onClose: () => de(!1),
|
|
3664
|
+
selectedPlan: ue,
|
|
3665
|
+
onSelectPlan: je,
|
|
3598
3666
|
onProceed: () => {
|
|
3599
3667
|
Pe?.();
|
|
3600
3668
|
},
|
|
3601
|
-
t:
|
|
3602
|
-
analytics:
|
|
3669
|
+
t: O,
|
|
3670
|
+
analytics: ve
|
|
3603
3671
|
}
|
|
3604
3672
|
)
|
|
3605
3673
|
] });
|
|
3606
|
-
},
|
|
3674
|
+
}, gi = {
|
|
3607
3675
|
banner_clicked_fe: "banner_clicked_fe",
|
|
3608
3676
|
primary_cta_clicked_fe: "primary_cta_clicked_fe",
|
|
3609
3677
|
language_changed_fe: "language_changed_fe",
|
|
@@ -3676,34 +3744,34 @@ const gr = (a, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3676
3744
|
kundli_view_sample_image_closed: "kundli_view_sample_image_closed"
|
|
3677
3745
|
};
|
|
3678
3746
|
export {
|
|
3679
|
-
|
|
3747
|
+
ei as C,
|
|
3680
3748
|
Ye as D,
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3749
|
+
ya as F,
|
|
3750
|
+
di as I,
|
|
3751
|
+
gi as K,
|
|
3752
|
+
_t as L,
|
|
3753
|
+
Nt as P,
|
|
3754
|
+
wt as S,
|
|
3755
|
+
Cr as U,
|
|
3756
|
+
Tt as a,
|
|
3757
|
+
nt as b,
|
|
3758
|
+
fi as c,
|
|
3759
|
+
mi as d,
|
|
3760
|
+
ha as e,
|
|
3761
|
+
fa as f,
|
|
3762
|
+
pa as g,
|
|
3763
|
+
Le as h,
|
|
3764
|
+
pi as i,
|
|
3765
|
+
hi as j,
|
|
3766
|
+
ai as k,
|
|
3699
3767
|
e as l,
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3768
|
+
$r as m,
|
|
3769
|
+
it as n,
|
|
3770
|
+
Or as o,
|
|
3771
|
+
ri as p,
|
|
3772
|
+
ui as r,
|
|
3773
|
+
ma as s,
|
|
3774
|
+
Pt as t,
|
|
3775
|
+
ua as u
|
|
3708
3776
|
};
|
|
3709
|
-
//# sourceMappingURL=analytics-
|
|
3777
|
+
//# sourceMappingURL=analytics-D95bvHFk.js.map
|