@srimandir/kundli-generator 5.21.2 → 5.21.3
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-BshMK7pJ.js → analytics-CKPY7Hx3.js} +759 -752
- package/dist/analytics-CKPY7Hx3.js.map +1 -0
- package/dist/components/KundliForm/sections/UserInfoFormSection/usePhoneTracking.d.ts +12 -0
- package/dist/{criticalCss-fJR7ibY3.js → criticalCss-CpedwjJf.js} +2 -2
- package/dist/{criticalCss-fJR7ibY3.js.map → criticalCss-CpedwjJf.js.map} +1 -1
- package/dist/form-entry.js +1 -1
- package/dist/kundli-generator.js +2 -2
- package/dist/page-entry.js +2 -2
- package/package.json +2 -2
- package/dist/analytics-BshMK7pJ.js.map +0 -1
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import Ge, { useContext as We, createContext as
|
|
1
|
+
import Ge, { useContext as We, createContext as dr, useState as K, useRef as W, useEffect as H, useMemo as Ue, useCallback as Te } from "react";
|
|
2
2
|
import { FormSectionHeader as Mr, FooterCTAButton as $r, FooterShell as Ur, CircularMarquee as Gr, footerShellStyles as ke, PageHeader as Wr } from "@srimandir/astrology-common";
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var Le = { exports: {} }, Ie = {};
|
|
4
|
+
var ar;
|
|
5
5
|
function Kr() {
|
|
6
|
-
if (
|
|
7
|
-
|
|
8
|
-
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"),
|
|
6
|
+
if (ar) return Ie;
|
|
7
|
+
ar = 1;
|
|
8
|
+
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
9
|
function x(j, A, E) {
|
|
10
|
-
var
|
|
11
|
-
E !== void 0 && (
|
|
12
|
-
for (
|
|
13
|
-
if (j && j.defaultProps) for (
|
|
14
|
-
return { $$typeof: o, type: j, key:
|
|
10
|
+
var d, N = {}, h = null, I = null;
|
|
11
|
+
E !== void 0 && (h = "" + E), A.key !== void 0 && (h = "" + A.key), A.ref !== void 0 && (I = A.ref);
|
|
12
|
+
for (d in A) f.call(A, d) && !S.hasOwnProperty(d) && (N[d] = A[d]);
|
|
13
|
+
if (j && j.defaultProps) for (d in A = j.defaultProps, A) N[d] === void 0 && (N[d] = A[d]);
|
|
14
|
+
return { $$typeof: o, type: j, key: h, ref: I, props: N, _owner: b.current };
|
|
15
15
|
}
|
|
16
|
-
return
|
|
16
|
+
return Ie.Fragment = c, Ie.jsx = x, Ie.jsxs = x, Ie;
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
var
|
|
18
|
+
var Be = {};
|
|
19
|
+
var nr;
|
|
20
20
|
function Hr() {
|
|
21
|
-
return
|
|
22
|
-
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"),
|
|
21
|
+
return nr || (nr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
+
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), f = /* @__PURE__ */ Symbol.for("react.fragment"), b = /* @__PURE__ */ Symbol.for("react.strict_mode"), S = /* @__PURE__ */ Symbol.for("react.profiler"), x = /* @__PURE__ */ Symbol.for("react.provider"), j = /* @__PURE__ */ Symbol.for("react.context"), A = /* @__PURE__ */ Symbol.for("react.forward_ref"), E = /* @__PURE__ */ Symbol.for("react.suspense"), d = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), h = /* @__PURE__ */ Symbol.for("react.lazy"), I = /* @__PURE__ */ Symbol.for("react.offscreen"), p = Symbol.iterator, B = "@@iterator";
|
|
23
23
|
function C(e) {
|
|
24
24
|
if (e === null || typeof e != "object")
|
|
25
25
|
return null;
|
|
26
|
-
var i =
|
|
26
|
+
var i = p && e[p] || e[B];
|
|
27
27
|
return typeof i == "function" ? i : null;
|
|
28
28
|
}
|
|
29
|
-
var
|
|
29
|
+
var y = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
30
30
|
function g(e) {
|
|
31
31
|
{
|
|
32
32
|
for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)
|
|
33
33
|
l[u - 1] = arguments[u];
|
|
34
|
-
|
|
34
|
+
U("error", e, l);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function U(e, i, l) {
|
|
38
38
|
{
|
|
39
|
-
var u =
|
|
39
|
+
var u = y.ReactDebugCurrentFrame, P = u.getStackAddendum();
|
|
40
40
|
P !== "" && (i += "%s", l = l.concat([P]));
|
|
41
|
-
var R = l.map(function(
|
|
42
|
-
return String(
|
|
41
|
+
var R = l.map(function(w) {
|
|
42
|
+
return String(w);
|
|
43
43
|
});
|
|
44
44
|
R.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, R);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
function
|
|
50
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
47
|
+
var J = !1, v = !1, D = !1, z = !1, re = !1, Y;
|
|
48
|
+
Y = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
|
+
function M(e) {
|
|
50
|
+
return !!(typeof e == "string" || typeof e == "function" || e === f || e === S || re || e === b || e === E || e === d || z || e === I || J || v || D || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === N || e.$$typeof === x || e.$$typeof === j || e.$$typeof === A || // 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
|
-
e.$$typeof ===
|
|
54
|
+
e.$$typeof === Y || e.getModuleId !== void 0));
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function se(e, i, l) {
|
|
57
57
|
var u = e.displayName;
|
|
58
58
|
if (u)
|
|
59
59
|
return u;
|
|
60
60
|
var P = i.displayName || i.name || "";
|
|
61
61
|
return P !== "" ? l + "(" + P + ")" : l;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Q(e) {
|
|
64
64
|
return e.displayName || "Context";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function G(e) {
|
|
67
67
|
if (e == null)
|
|
68
68
|
return null;
|
|
69
69
|
if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -71,36 +71,36 @@ function Hr() {
|
|
|
71
71
|
if (typeof e == "string")
|
|
72
72
|
return e;
|
|
73
73
|
switch (e) {
|
|
74
|
-
case
|
|
74
|
+
case f:
|
|
75
75
|
return "Fragment";
|
|
76
|
-
case
|
|
76
|
+
case c:
|
|
77
77
|
return "Portal";
|
|
78
78
|
case S:
|
|
79
79
|
return "Profiler";
|
|
80
|
-
case
|
|
80
|
+
case b:
|
|
81
81
|
return "StrictMode";
|
|
82
82
|
case E:
|
|
83
83
|
return "Suspense";
|
|
84
|
-
case
|
|
84
|
+
case d:
|
|
85
85
|
return "SuspenseList";
|
|
86
86
|
}
|
|
87
87
|
if (typeof e == "object")
|
|
88
88
|
switch (e.$$typeof) {
|
|
89
89
|
case j:
|
|
90
90
|
var i = e;
|
|
91
|
-
return
|
|
91
|
+
return Q(i) + ".Consumer";
|
|
92
92
|
case x:
|
|
93
93
|
var l = e;
|
|
94
|
-
return
|
|
94
|
+
return Q(l._context) + ".Provider";
|
|
95
95
|
case A:
|
|
96
|
-
return
|
|
96
|
+
return se(e, e.render, "ForwardRef");
|
|
97
97
|
case N:
|
|
98
98
|
var u = e.displayName || null;
|
|
99
|
-
return u !== null ? u :
|
|
100
|
-
case
|
|
101
|
-
var P = e, R = P._payload,
|
|
99
|
+
return u !== null ? u : G(e.type) || "Memo";
|
|
100
|
+
case h: {
|
|
101
|
+
var P = e, R = P._payload, w = P._init;
|
|
102
102
|
try {
|
|
103
|
-
return
|
|
103
|
+
return G(w(R));
|
|
104
104
|
} catch {
|
|
105
105
|
return null;
|
|
106
106
|
}
|
|
@@ -108,18 +108,18 @@ function Hr() {
|
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
111
|
-
var T = Object.assign, F = 0,
|
|
112
|
-
function
|
|
111
|
+
var T = Object.assign, F = 0, X, te, ge, q, oe, ce, ae;
|
|
112
|
+
function ie() {
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
function
|
|
114
|
+
ie.__reactDisabledLog = !0;
|
|
115
|
+
function me() {
|
|
116
116
|
{
|
|
117
117
|
if (F === 0) {
|
|
118
|
-
|
|
118
|
+
X = console.log, te = console.info, ge = console.warn, q = console.error, oe = console.group, ce = console.groupCollapsed, ae = console.groupEnd;
|
|
119
119
|
var e = {
|
|
120
120
|
configurable: !0,
|
|
121
121
|
enumerable: !0,
|
|
122
|
-
value:
|
|
122
|
+
value: ie,
|
|
123
123
|
writable: !0
|
|
124
124
|
};
|
|
125
125
|
Object.defineProperties(console, {
|
|
@@ -135,7 +135,7 @@ function Hr() {
|
|
|
135
135
|
F++;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function ne() {
|
|
139
139
|
{
|
|
140
140
|
if (F--, F === 0) {
|
|
141
141
|
var e = {
|
|
@@ -145,187 +145,187 @@ function Hr() {
|
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
147
147
|
log: T({}, e, {
|
|
148
|
-
value:
|
|
148
|
+
value: X
|
|
149
149
|
}),
|
|
150
150
|
info: T({}, e, {
|
|
151
|
-
value:
|
|
151
|
+
value: te
|
|
152
152
|
}),
|
|
153
153
|
warn: T({}, e, {
|
|
154
|
-
value:
|
|
154
|
+
value: ge
|
|
155
155
|
}),
|
|
156
156
|
error: T({}, e, {
|
|
157
|
-
value:
|
|
157
|
+
value: q
|
|
158
158
|
}),
|
|
159
159
|
group: T({}, e, {
|
|
160
|
-
value:
|
|
160
|
+
value: oe
|
|
161
161
|
}),
|
|
162
162
|
groupCollapsed: T({}, e, {
|
|
163
|
-
value:
|
|
163
|
+
value: ce
|
|
164
164
|
}),
|
|
165
165
|
groupEnd: T({}, e, {
|
|
166
|
-
value:
|
|
166
|
+
value: ae
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
170
|
F < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
var
|
|
174
|
-
function
|
|
173
|
+
var de = y.ReactCurrentDispatcher, _e;
|
|
174
|
+
function V(e, i, l) {
|
|
175
175
|
{
|
|
176
|
-
if (
|
|
176
|
+
if (_e === void 0)
|
|
177
177
|
try {
|
|
178
178
|
throw Error();
|
|
179
179
|
} catch (P) {
|
|
180
180
|
var u = P.stack.trim().match(/\n( *(at )?)/);
|
|
181
|
-
|
|
181
|
+
_e = u && u[1] || "";
|
|
182
182
|
}
|
|
183
183
|
return `
|
|
184
|
-
` +
|
|
184
|
+
` + _e + e;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var ye = !1, ue;
|
|
188
188
|
{
|
|
189
189
|
var we = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
|
-
|
|
190
|
+
ue = new we();
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
if (!e ||
|
|
192
|
+
function be(e, i) {
|
|
193
|
+
if (!e || ye)
|
|
194
194
|
return "";
|
|
195
195
|
{
|
|
196
|
-
var l =
|
|
196
|
+
var l = ue.get(e);
|
|
197
197
|
if (l !== void 0)
|
|
198
198
|
return l;
|
|
199
199
|
}
|
|
200
200
|
var u;
|
|
201
|
-
|
|
201
|
+
ye = !0;
|
|
202
202
|
var P = Error.prepareStackTrace;
|
|
203
203
|
Error.prepareStackTrace = void 0;
|
|
204
204
|
var R;
|
|
205
|
-
R =
|
|
205
|
+
R = de.current, de.current = null, me();
|
|
206
206
|
try {
|
|
207
207
|
if (i) {
|
|
208
|
-
var
|
|
208
|
+
var w = function() {
|
|
209
209
|
throw Error();
|
|
210
210
|
};
|
|
211
|
-
if (Object.defineProperty(
|
|
211
|
+
if (Object.defineProperty(w.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
|
-
u =
|
|
217
|
+
Reflect.construct(w, []);
|
|
218
|
+
} catch (ee) {
|
|
219
|
+
u = ee;
|
|
220
220
|
}
|
|
221
|
-
Reflect.construct(e, [],
|
|
221
|
+
Reflect.construct(e, [], w);
|
|
222
222
|
} else {
|
|
223
223
|
try {
|
|
224
|
-
|
|
225
|
-
} catch (
|
|
226
|
-
u =
|
|
224
|
+
w.call();
|
|
225
|
+
} catch (ee) {
|
|
226
|
+
u = ee;
|
|
227
227
|
}
|
|
228
|
-
e.call(
|
|
228
|
+
e.call(w.prototype);
|
|
229
229
|
}
|
|
230
230
|
} else {
|
|
231
231
|
try {
|
|
232
232
|
throw Error();
|
|
233
|
-
} catch (
|
|
234
|
-
u =
|
|
233
|
+
} catch (ee) {
|
|
234
|
+
u = ee;
|
|
235
235
|
}
|
|
236
236
|
e();
|
|
237
237
|
}
|
|
238
|
-
} catch (
|
|
239
|
-
if (
|
|
240
|
-
for (var _ =
|
|
238
|
+
} catch (ee) {
|
|
239
|
+
if (ee && u && typeof ee.stack == "string") {
|
|
240
|
+
for (var _ = ee.stack.split(`
|
|
241
241
|
`), Z = u.stack.split(`
|
|
242
|
-
`),
|
|
243
|
-
|
|
244
|
-
for (;
|
|
245
|
-
if (_[
|
|
246
|
-
if (
|
|
242
|
+
`), O = _.length - 1, $ = Z.length - 1; O >= 1 && $ >= 0 && _[O] !== Z[$]; )
|
|
243
|
+
$--;
|
|
244
|
+
for (; O >= 1 && $ >= 0; O--, $--)
|
|
245
|
+
if (_[O] !== Z[$]) {
|
|
246
|
+
if (O !== 1 || $ !== 1)
|
|
247
247
|
do
|
|
248
|
-
if ($--,
|
|
249
|
-
var
|
|
250
|
-
` + _[
|
|
251
|
-
return e.displayName &&
|
|
248
|
+
if (O--, $--, $ < 0 || _[O] !== Z[$]) {
|
|
249
|
+
var le = `
|
|
250
|
+
` + _[O].replace(" at new ", " at ");
|
|
251
|
+
return e.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", e.displayName)), typeof e == "function" && ue.set(e, le), le;
|
|
252
252
|
}
|
|
253
|
-
while (
|
|
253
|
+
while (O >= 1 && $ >= 0);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
} finally {
|
|
258
|
-
|
|
258
|
+
ye = !1, de.current = R, ne(), Error.prepareStackTrace = P;
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
return typeof e == "function" &&
|
|
260
|
+
var Ce = e ? e.displayName || e.name : "", ve = Ce ? V(Ce) : "";
|
|
261
|
+
return typeof e == "function" && ue.set(e, ve), ve;
|
|
262
262
|
}
|
|
263
263
|
function xe(e, i, l) {
|
|
264
|
-
return
|
|
264
|
+
return be(e, !1);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Pe(e) {
|
|
267
267
|
var i = e.prototype;
|
|
268
268
|
return !!(i && i.isReactComponent);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function k(e, i, l) {
|
|
271
271
|
if (e == null)
|
|
272
272
|
return "";
|
|
273
273
|
if (typeof e == "function")
|
|
274
|
-
return
|
|
274
|
+
return be(e, Pe(e));
|
|
275
275
|
if (typeof e == "string")
|
|
276
|
-
return
|
|
276
|
+
return V(e);
|
|
277
277
|
switch (e) {
|
|
278
278
|
case E:
|
|
279
|
-
return
|
|
280
|
-
case
|
|
281
|
-
return
|
|
279
|
+
return V("Suspense");
|
|
280
|
+
case d:
|
|
281
|
+
return V("SuspenseList");
|
|
282
282
|
}
|
|
283
283
|
if (typeof e == "object")
|
|
284
284
|
switch (e.$$typeof) {
|
|
285
285
|
case A:
|
|
286
286
|
return xe(e.render);
|
|
287
287
|
case N:
|
|
288
|
-
return
|
|
289
|
-
case
|
|
288
|
+
return k(e.type, i, l);
|
|
289
|
+
case h: {
|
|
290
290
|
var u = e, P = u._payload, R = u._init;
|
|
291
291
|
try {
|
|
292
|
-
return
|
|
292
|
+
return k(R(P), i, l);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
return "";
|
|
298
298
|
}
|
|
299
|
-
var
|
|
300
|
-
function
|
|
299
|
+
var he = Object.prototype.hasOwnProperty, n = {}, s = y.ReactDebugCurrentFrame;
|
|
300
|
+
function L(e) {
|
|
301
301
|
if (e) {
|
|
302
|
-
var i = e._owner, l =
|
|
303
|
-
|
|
302
|
+
var i = e._owner, l = k(e.type, e._source, i ? i.type : null);
|
|
303
|
+
s.setExtraStackFrame(l);
|
|
304
304
|
} else
|
|
305
|
-
|
|
305
|
+
s.setExtraStackFrame(null);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function fe(e, i, l, u, P) {
|
|
308
308
|
{
|
|
309
|
-
var R = Function.call.bind(
|
|
310
|
-
for (var
|
|
311
|
-
if (R(e,
|
|
309
|
+
var R = Function.call.bind(he);
|
|
310
|
+
for (var w in e)
|
|
311
|
+
if (R(e, w)) {
|
|
312
312
|
var _ = void 0;
|
|
313
313
|
try {
|
|
314
|
-
if (typeof e[
|
|
315
|
-
var Z = Error((u || "React class") + ": " + l + " type `" +
|
|
314
|
+
if (typeof e[w] != "function") {
|
|
315
|
+
var Z = Error((u || "React class") + ": " + l + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
316
316
|
throw Z.name = "Invariant Violation", Z;
|
|
317
317
|
}
|
|
318
|
-
_ = e[
|
|
319
|
-
} catch (
|
|
320
|
-
_ =
|
|
318
|
+
_ = e[w](i, w, u, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
|
+
} catch (O) {
|
|
320
|
+
_ = O;
|
|
321
321
|
}
|
|
322
|
-
_ && !(_ instanceof Error) && (
|
|
322
|
+
_ && !(_ instanceof Error) && (L(P), g("%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).", u || "React class", l, w, typeof _), L(null)), _ instanceof Error && !(_.message in n) && (n[_.message] = !0, L(P), g("Failed %s type: %s", l, _.message), L(null));
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
var
|
|
327
|
-
function
|
|
328
|
-
return
|
|
326
|
+
var Se = Array.isArray;
|
|
327
|
+
function Ee(e) {
|
|
328
|
+
return Se(e);
|
|
329
329
|
}
|
|
330
330
|
function yr(e) {
|
|
331
331
|
{
|
|
@@ -335,26 +335,26 @@ function Hr() {
|
|
|
335
335
|
}
|
|
336
336
|
function vr(e) {
|
|
337
337
|
try {
|
|
338
|
-
return
|
|
338
|
+
return He(e), !1;
|
|
339
339
|
} catch {
|
|
340
340
|
return !0;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function He(e) {
|
|
344
344
|
return "" + e;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function Ye(e) {
|
|
347
347
|
if (vr(e))
|
|
348
|
-
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yr(e)),
|
|
348
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yr(e)), He(e);
|
|
349
349
|
}
|
|
350
|
-
var
|
|
350
|
+
var qe = y.ReactCurrentOwner, kr = {
|
|
351
351
|
key: !0,
|
|
352
352
|
ref: !0,
|
|
353
353
|
__self: !0,
|
|
354
354
|
__source: !0
|
|
355
|
-
},
|
|
355
|
+
}, Ve, ze;
|
|
356
356
|
function wr(e) {
|
|
357
|
-
if (
|
|
357
|
+
if (he.call(e, "ref")) {
|
|
358
358
|
var i = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
359
359
|
if (i && i.isReactWarning)
|
|
360
360
|
return !1;
|
|
@@ -362,7 +362,7 @@ function Hr() {
|
|
|
362
362
|
return e.ref !== void 0;
|
|
363
363
|
}
|
|
364
364
|
function xr(e) {
|
|
365
|
-
if (
|
|
365
|
+
if (he.call(e, "key")) {
|
|
366
366
|
var i = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
367
367
|
if (i && i.isReactWarning)
|
|
368
368
|
return !1;
|
|
@@ -370,12 +370,12 @@ function Hr() {
|
|
|
370
370
|
return e.key !== void 0;
|
|
371
371
|
}
|
|
372
372
|
function Pr(e, i) {
|
|
373
|
-
typeof e.ref == "string" &&
|
|
373
|
+
typeof e.ref == "string" && qe.current;
|
|
374
374
|
}
|
|
375
375
|
function Ar(e, i) {
|
|
376
376
|
{
|
|
377
377
|
var l = function() {
|
|
378
|
-
|
|
378
|
+
Ve || (Ve = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
|
|
379
379
|
};
|
|
380
380
|
l.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
381
381
|
get: l,
|
|
@@ -386,7 +386,7 @@ function Hr() {
|
|
|
386
386
|
function Cr(e, i) {
|
|
387
387
|
{
|
|
388
388
|
var l = function() {
|
|
389
|
-
|
|
389
|
+
ze || (ze = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
|
|
390
390
|
};
|
|
391
391
|
l.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
392
392
|
get: l,
|
|
@@ -394,7 +394,7 @@ function Hr() {
|
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
var jr = function(e, i, l, u, P, R,
|
|
397
|
+
var jr = function(e, i, l, u, P, R, w) {
|
|
398
398
|
var _ = {
|
|
399
399
|
// This tag allows us to uniquely identify this as a React Element
|
|
400
400
|
$$typeof: o,
|
|
@@ -402,7 +402,7 @@ function Hr() {
|
|
|
402
402
|
type: e,
|
|
403
403
|
key: i,
|
|
404
404
|
ref: l,
|
|
405
|
-
props:
|
|
405
|
+
props: w,
|
|
406
406
|
// Record the component responsible for creating this element.
|
|
407
407
|
_owner: R
|
|
408
408
|
};
|
|
@@ -425,39 +425,39 @@ function Hr() {
|
|
|
425
425
|
};
|
|
426
426
|
function Nr(e, i, l, u, P) {
|
|
427
427
|
{
|
|
428
|
-
var R,
|
|
429
|
-
l !== void 0 && (
|
|
428
|
+
var R, w = {}, _ = null, Z = null;
|
|
429
|
+
l !== void 0 && (Ye(l), _ = "" + l), xr(i) && (Ye(i.key), _ = "" + i.key), wr(i) && (Z = i.ref, Pr(i, P));
|
|
430
430
|
for (R in i)
|
|
431
|
-
|
|
431
|
+
he.call(i, R) && !kr.hasOwnProperty(R) && (w[R] = i[R]);
|
|
432
432
|
if (e && e.defaultProps) {
|
|
433
|
-
var
|
|
434
|
-
for (R in
|
|
435
|
-
|
|
433
|
+
var O = e.defaultProps;
|
|
434
|
+
for (R in O)
|
|
435
|
+
w[R] === void 0 && (w[R] = O[R]);
|
|
436
436
|
}
|
|
437
437
|
if (_ || Z) {
|
|
438
|
-
var
|
|
439
|
-
_ && Ar(
|
|
438
|
+
var $ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
439
|
+
_ && Ar(w, $), Z && Cr(w, $);
|
|
440
440
|
}
|
|
441
|
-
return jr(e, _, Z, P, u,
|
|
441
|
+
return jr(e, _, Z, P, u, qe.current, w);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
var Fe =
|
|
445
|
-
function
|
|
444
|
+
var Fe = y.ReactCurrentOwner, Je = y.ReactDebugCurrentFrame;
|
|
445
|
+
function Ae(e) {
|
|
446
446
|
if (e) {
|
|
447
|
-
var i = e._owner, l =
|
|
448
|
-
|
|
447
|
+
var i = e._owner, l = k(e.type, e._source, i ? i.type : null);
|
|
448
|
+
Je.setExtraStackFrame(l);
|
|
449
449
|
} else
|
|
450
|
-
|
|
450
|
+
Je.setExtraStackFrame(null);
|
|
451
451
|
}
|
|
452
452
|
var Oe;
|
|
453
453
|
Oe = !1;
|
|
454
454
|
function Me(e) {
|
|
455
455
|
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function Qe() {
|
|
458
458
|
{
|
|
459
459
|
if (Fe.current) {
|
|
460
|
-
var e =
|
|
460
|
+
var e = G(Fe.current.type);
|
|
461
461
|
if (e)
|
|
462
462
|
return `
|
|
463
463
|
|
|
@@ -469,10 +469,10 @@ Check the render method of \`` + e + "`.";
|
|
|
469
469
|
function Tr(e) {
|
|
470
470
|
return "";
|
|
471
471
|
}
|
|
472
|
-
var
|
|
472
|
+
var Xe = {};
|
|
473
473
|
function Rr(e) {
|
|
474
474
|
{
|
|
475
|
-
var i =
|
|
475
|
+
var i = Qe();
|
|
476
476
|
if (!i) {
|
|
477
477
|
var l = typeof e == "string" ? e : e.displayName || e.name;
|
|
478
478
|
l && (i = `
|
|
@@ -482,35 +482,35 @@ Check the top-level render call using <` + l + ">.");
|
|
|
482
482
|
return i;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Ze(e, i) {
|
|
486
486
|
{
|
|
487
487
|
if (!e._store || e._store.validated || e.key != null)
|
|
488
488
|
return;
|
|
489
489
|
e._store.validated = !0;
|
|
490
490
|
var l = Rr(i);
|
|
491
|
-
if (
|
|
491
|
+
if (Xe[l])
|
|
492
492
|
return;
|
|
493
|
-
|
|
493
|
+
Xe[l] = !0;
|
|
494
494
|
var u = "";
|
|
495
|
-
e && e._owner && e._owner !== Fe.current && (u = " It was passed a child from " +
|
|
495
|
+
e && e._owner && e._owner !== Fe.current && (u = " It was passed a child from " + G(e._owner.type) + "."), Ae(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, u), Ae(null);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function er(e, i) {
|
|
499
499
|
{
|
|
500
500
|
if (typeof e != "object")
|
|
501
501
|
return;
|
|
502
|
-
if (
|
|
502
|
+
if (Ee(e))
|
|
503
503
|
for (var l = 0; l < e.length; l++) {
|
|
504
504
|
var u = e[l];
|
|
505
|
-
Me(u) &&
|
|
505
|
+
Me(u) && Ze(u, i);
|
|
506
506
|
}
|
|
507
507
|
else if (Me(e))
|
|
508
508
|
e._store && (e._store.validated = !0);
|
|
509
509
|
else if (e) {
|
|
510
510
|
var P = C(e);
|
|
511
511
|
if (typeof P == "function" && P !== e.entries)
|
|
512
|
-
for (var R = P.call(e),
|
|
513
|
-
Me(
|
|
512
|
+
for (var R = P.call(e), w; !(w = R.next()).done; )
|
|
513
|
+
Me(w.value) && Ze(w.value, i);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
@@ -529,11 +529,11 @@ Check the top-level render call using <` + l + ">.");
|
|
|
529
529
|
else
|
|
530
530
|
return;
|
|
531
531
|
if (l) {
|
|
532
|
-
var u =
|
|
533
|
-
|
|
532
|
+
var u = G(i);
|
|
533
|
+
fe(l, e.props, "prop", u, e);
|
|
534
534
|
} else if (i.PropTypes !== void 0 && !Oe) {
|
|
535
535
|
Oe = !0;
|
|
536
|
-
var P =
|
|
536
|
+
var P = G(i);
|
|
537
537
|
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
538
538
|
}
|
|
539
539
|
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -544,74 +544,74 @@ Check the top-level render call using <` + l + ">.");
|
|
|
544
544
|
for (var i = Object.keys(e.props), l = 0; l < i.length; l++) {
|
|
545
545
|
var u = i[l];
|
|
546
546
|
if (u !== "children" && u !== "key") {
|
|
547
|
-
|
|
547
|
+
Ae(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), Ae(null);
|
|
548
548
|
break;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
e.ref !== null && (
|
|
551
|
+
e.ref !== null && (Ae(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
var
|
|
555
|
-
function
|
|
554
|
+
var rr = {};
|
|
555
|
+
function tr(e, i, l, u, P, R) {
|
|
556
556
|
{
|
|
557
|
-
var
|
|
558
|
-
if (!
|
|
557
|
+
var w = M(e);
|
|
558
|
+
if (!w) {
|
|
559
559
|
var _ = "";
|
|
560
560
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (_ += " 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
561
|
var Z = Tr();
|
|
562
|
-
Z ? _ += Z : _ +=
|
|
563
|
-
var
|
|
564
|
-
e === null ?
|
|
562
|
+
Z ? _ += Z : _ += Qe();
|
|
563
|
+
var O;
|
|
564
|
+
e === null ? O = "null" : Ee(e) ? O = "array" : e !== void 0 && e.$$typeof === o ? (O = "<" + (G(e.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : O = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, _);
|
|
565
565
|
}
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
return
|
|
569
|
-
if (
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
566
|
+
var $ = Nr(e, i, l, P, R);
|
|
567
|
+
if ($ == null)
|
|
568
|
+
return $;
|
|
569
|
+
if (w) {
|
|
570
|
+
var le = i.children;
|
|
571
|
+
if (le !== void 0)
|
|
572
572
|
if (u)
|
|
573
|
-
if (
|
|
574
|
-
for (var
|
|
575
|
-
|
|
576
|
-
Object.freeze && Object.freeze(
|
|
573
|
+
if (Ee(le)) {
|
|
574
|
+
for (var Ce = 0; Ce < le.length; Ce++)
|
|
575
|
+
er(le[Ce], e);
|
|
576
|
+
Object.freeze && Object.freeze(le);
|
|
577
577
|
} else
|
|
578
578
|
g("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
|
+
er(le, e);
|
|
581
581
|
}
|
|
582
|
-
if (
|
|
583
|
-
var ve =
|
|
582
|
+
if (he.call(i, "key")) {
|
|
583
|
+
var ve = G(e), ee = Object.keys(i).filter(function(Or) {
|
|
584
584
|
return Or !== "key";
|
|
585
|
-
}), $e =
|
|
586
|
-
if (!
|
|
587
|
-
var Fr =
|
|
585
|
+
}), $e = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
|
+
if (!rr[ve + $e]) {
|
|
587
|
+
var Fr = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
|
|
588
588
|
g(`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} />`, $e, ve, Fr, ve),
|
|
593
|
+
<%s key={someKey} {...props} />`, $e, ve, Fr, ve), rr[ve + $e] = !0;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
return e ===
|
|
596
|
+
return e === f ? Er($) : Sr($), $;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
function Ir(e, i, l) {
|
|
600
|
-
return
|
|
600
|
+
return tr(e, i, l, !0);
|
|
601
601
|
}
|
|
602
602
|
function Br(e, i, l) {
|
|
603
|
-
return
|
|
603
|
+
return tr(e, i, l, !1);
|
|
604
604
|
}
|
|
605
605
|
var Lr = Br, Dr = Ir;
|
|
606
|
-
|
|
607
|
-
})()),
|
|
606
|
+
Be.Fragment = f, Be.jsx = Lr, Be.jsxs = Dr;
|
|
607
|
+
})()), Be;
|
|
608
608
|
}
|
|
609
|
-
var
|
|
609
|
+
var or;
|
|
610
610
|
function Yr() {
|
|
611
|
-
return
|
|
611
|
+
return or || (or = 1, process.env.NODE_ENV === "production" ? Le.exports = Kr() : Le.exports = Hr()), Le.exports;
|
|
612
612
|
}
|
|
613
613
|
var r = Yr();
|
|
614
|
-
const
|
|
614
|
+
const ur = ["en", "hi"], ir = {
|
|
615
615
|
en: "English",
|
|
616
616
|
hi: "हिन्दी"
|
|
617
617
|
}, fr = {
|
|
@@ -1046,17 +1046,17 @@ const mr = ["en", "hi"], lr = {
|
|
|
1046
1046
|
astrologyGuidance: "ज्योतिष से सलाह",
|
|
1047
1047
|
selectPackage: "पैकेज चुनें"
|
|
1048
1048
|
}
|
|
1049
|
-
},
|
|
1049
|
+
}, mr = dr(null), Dn = ({
|
|
1050
1050
|
locale: t,
|
|
1051
1051
|
children: o
|
|
1052
1052
|
}) => {
|
|
1053
|
-
const
|
|
1054
|
-
return /* @__PURE__ */ r.jsx(
|
|
1053
|
+
const f = { locale: t, t: (b) => fr[t]?.[b] ?? b };
|
|
1054
|
+
return /* @__PURE__ */ r.jsx(mr.Provider, { value: f, children: o });
|
|
1055
1055
|
};
|
|
1056
1056
|
function qr() {
|
|
1057
|
-
return We(
|
|
1057
|
+
return We(mr);
|
|
1058
1058
|
}
|
|
1059
|
-
const Vr = "_container_1e1th_1", zr = "_main_1e1th_7", Jr = "_kundliHeaderNoBorder_1e1th_12", Qr = "_headerSeparator_1e1th_16", Xr = "_langDropdownWrap_1e1th_21", Zr = "_langTrigger_1e1th_25", et = "_langIcon_1e1th_37", rt = "_langLabel_1e1th_44", tt = "_langMenu_1e1th_49", at = "_langOption_1e1th_55",
|
|
1059
|
+
const Vr = "_container_1e1th_1", zr = "_main_1e1th_7", Jr = "_kundliHeaderNoBorder_1e1th_12", Qr = "_headerSeparator_1e1th_16", Xr = "_langDropdownWrap_1e1th_21", Zr = "_langTrigger_1e1th_25", et = "_langIcon_1e1th_37", rt = "_langLabel_1e1th_44", tt = "_langMenu_1e1th_49", at = "_langOption_1e1th_55", pe = {
|
|
1060
1060
|
container: Vr,
|
|
1061
1061
|
main: zr,
|
|
1062
1062
|
kundliHeaderNoBorder: Jr,
|
|
@@ -1067,15 +1067,15 @@ const Vr = "_container_1e1th_1", zr = "_main_1e1th_7", Jr = "_kundliHeaderNoBord
|
|
|
1067
1067
|
langLabel: rt,
|
|
1068
1068
|
langMenu: tt,
|
|
1069
1069
|
langOption: at
|
|
1070
|
-
},
|
|
1071
|
-
const { priority: o, fetchPriority:
|
|
1070
|
+
}, De = (t) => {
|
|
1071
|
+
const { priority: o, fetchPriority: c, width: f, height: b, ...S } = t;
|
|
1072
1072
|
return Ge.createElement("img", {
|
|
1073
1073
|
...S,
|
|
1074
|
-
width:
|
|
1075
|
-
height:
|
|
1074
|
+
width: f ?? 1,
|
|
1075
|
+
height: b ?? 1,
|
|
1076
1076
|
decoding: "async",
|
|
1077
1077
|
loading: S.loading ?? (o ? "eager" : "lazy"),
|
|
1078
|
-
...
|
|
1078
|
+
...c && { fetchPriority: c }
|
|
1079
1079
|
});
|
|
1080
1080
|
};
|
|
1081
1081
|
function nt(t) {
|
|
@@ -1094,14 +1094,14 @@ function ot(t, o) {
|
|
|
1094
1094
|
} catch {
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1097
|
+
function Fn(t) {
|
|
1098
1098
|
if (!(typeof window > "u" || !window.localStorage))
|
|
1099
1099
|
try {
|
|
1100
1100
|
window.localStorage.removeItem(t);
|
|
1101
1101
|
} catch {
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function On() {
|
|
1105
1105
|
if (typeof window > "u" || !window.localStorage)
|
|
1106
1106
|
return !1;
|
|
1107
1107
|
try {
|
|
@@ -1114,12 +1114,12 @@ function Fn() {
|
|
|
1114
1114
|
const hr = "kundli_language";
|
|
1115
1115
|
function it() {
|
|
1116
1116
|
const t = nt(hr);
|
|
1117
|
-
return t &&
|
|
1117
|
+
return t && ur.includes(t) ? t : null;
|
|
1118
1118
|
}
|
|
1119
1119
|
function lt(t) {
|
|
1120
1120
|
ot(hr, t);
|
|
1121
1121
|
}
|
|
1122
|
-
const Ke =
|
|
1122
|
+
const Ke = dr(null), st = {
|
|
1123
1123
|
fullName: "",
|
|
1124
1124
|
phone: "",
|
|
1125
1125
|
gender: "",
|
|
@@ -1131,146 +1131,146 @@ const Ke = ur(null), st = {
|
|
|
1131
1131
|
birthPlace: "",
|
|
1132
1132
|
birthPlaceLat: void 0,
|
|
1133
1133
|
birthPlaceLng: void 0
|
|
1134
|
-
},
|
|
1134
|
+
}, Mn = ({
|
|
1135
1135
|
locale: t,
|
|
1136
1136
|
showLanguageSelector: o = !0,
|
|
1137
|
-
showSheet:
|
|
1138
|
-
userId:
|
|
1139
|
-
isGlobal:
|
|
1137
|
+
showSheet: c,
|
|
1138
|
+
userId: f,
|
|
1139
|
+
isGlobal: b,
|
|
1140
1140
|
variant: S,
|
|
1141
1141
|
atlasSearchLocalities: x,
|
|
1142
1142
|
logoUrl: j,
|
|
1143
1143
|
reportImageUrl: A,
|
|
1144
1144
|
reportImagePriority: E,
|
|
1145
|
-
backgroundImagePriority:
|
|
1145
|
+
backgroundImagePriority: d,
|
|
1146
1146
|
universityLogoUrls: N,
|
|
1147
|
-
sampleReportHref:
|
|
1147
|
+
sampleReportHref: h,
|
|
1148
1148
|
onViewSampleReport: I,
|
|
1149
|
-
ctaHref:
|
|
1149
|
+
ctaHref: p,
|
|
1150
1150
|
onCtaClick: B,
|
|
1151
1151
|
onBack: C,
|
|
1152
|
-
readMoreReviewsHref:
|
|
1152
|
+
readMoreReviewsHref: y,
|
|
1153
1153
|
onProceed: g,
|
|
1154
|
-
proceedHref:
|
|
1155
|
-
originalPriceLabel:
|
|
1156
|
-
discountedPriceLabel:
|
|
1157
|
-
discountPillLabel:
|
|
1154
|
+
proceedHref: U,
|
|
1155
|
+
originalPriceLabel: J,
|
|
1156
|
+
discountedPriceLabel: v,
|
|
1157
|
+
discountPillLabel: D,
|
|
1158
1158
|
analytics: z,
|
|
1159
|
-
onProceedGuidance:
|
|
1160
|
-
onLocaleChange:
|
|
1161
|
-
imageComponent:
|
|
1162
|
-
children:
|
|
1159
|
+
onProceedGuidance: re,
|
|
1160
|
+
onLocaleChange: Y,
|
|
1161
|
+
imageComponent: M = De,
|
|
1162
|
+
children: se
|
|
1163
1163
|
}) => {
|
|
1164
|
-
const [
|
|
1165
|
-
|
|
1166
|
-
const
|
|
1167
|
-
|
|
1168
|
-
}, []),
|
|
1164
|
+
const [Q, G] = K("landing"), [T, F] = K(t ?? "en"), [X, te] = K(st), ge = W(!0);
|
|
1165
|
+
H(() => {
|
|
1166
|
+
const ie = it();
|
|
1167
|
+
ie && F(ie);
|
|
1168
|
+
}, []), H(() => {
|
|
1169
1169
|
lt(T);
|
|
1170
|
-
}, [T]),
|
|
1171
|
-
if (
|
|
1172
|
-
|
|
1170
|
+
}, [T]), H(() => {
|
|
1171
|
+
if (ge.current) {
|
|
1172
|
+
ge.current = !1;
|
|
1173
1173
|
return;
|
|
1174
1174
|
}
|
|
1175
|
-
|
|
1176
|
-
}, [T,
|
|
1177
|
-
const
|
|
1175
|
+
Y?.(T);
|
|
1176
|
+
}, [T, Y]);
|
|
1177
|
+
const q = Ue(
|
|
1178
1178
|
() => ({
|
|
1179
1179
|
locale: t,
|
|
1180
1180
|
showLanguageSelector: o,
|
|
1181
|
-
showSheet:
|
|
1182
|
-
userId:
|
|
1183
|
-
isGlobal:
|
|
1181
|
+
showSheet: c,
|
|
1182
|
+
userId: f,
|
|
1183
|
+
isGlobal: b,
|
|
1184
1184
|
variant: S,
|
|
1185
1185
|
atlasSearchLocalities: x,
|
|
1186
1186
|
logoUrl: j,
|
|
1187
1187
|
reportImageUrl: A,
|
|
1188
1188
|
reportImagePriority: E,
|
|
1189
|
-
backgroundImagePriority:
|
|
1189
|
+
backgroundImagePriority: d,
|
|
1190
1190
|
universityLogoUrls: N,
|
|
1191
|
-
sampleReportHref:
|
|
1191
|
+
sampleReportHref: h,
|
|
1192
1192
|
onViewSampleReport: I,
|
|
1193
|
-
ctaHref:
|
|
1193
|
+
ctaHref: p,
|
|
1194
1194
|
onCtaClick: B,
|
|
1195
1195
|
onBack: C,
|
|
1196
|
-
readMoreReviewsHref:
|
|
1196
|
+
readMoreReviewsHref: y,
|
|
1197
1197
|
onProceed: g,
|
|
1198
|
-
proceedHref:
|
|
1199
|
-
originalPriceLabel:
|
|
1200
|
-
discountedPriceLabel:
|
|
1201
|
-
discountPillLabel:
|
|
1198
|
+
proceedHref: U,
|
|
1199
|
+
originalPriceLabel: J,
|
|
1200
|
+
discountedPriceLabel: v,
|
|
1201
|
+
discountPillLabel: D,
|
|
1202
1202
|
analytics: z,
|
|
1203
|
-
onProceedGuidance:
|
|
1204
|
-
onLocaleChange:
|
|
1205
|
-
imageComponent:
|
|
1203
|
+
onProceedGuidance: re,
|
|
1204
|
+
onLocaleChange: Y,
|
|
1205
|
+
imageComponent: M
|
|
1206
1206
|
}),
|
|
1207
1207
|
[
|
|
1208
1208
|
t,
|
|
1209
1209
|
o,
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1210
|
+
c,
|
|
1211
|
+
f,
|
|
1212
|
+
b,
|
|
1213
1213
|
S,
|
|
1214
1214
|
x,
|
|
1215
1215
|
j,
|
|
1216
1216
|
A,
|
|
1217
1217
|
E,
|
|
1218
|
-
|
|
1218
|
+
d,
|
|
1219
1219
|
N,
|
|
1220
|
-
p,
|
|
1221
|
-
I,
|
|
1222
1220
|
h,
|
|
1221
|
+
I,
|
|
1222
|
+
p,
|
|
1223
1223
|
B,
|
|
1224
1224
|
C,
|
|
1225
|
-
|
|
1225
|
+
y,
|
|
1226
1226
|
g,
|
|
1227
|
-
|
|
1228
|
-
|
|
1227
|
+
U,
|
|
1228
|
+
J,
|
|
1229
|
+
v,
|
|
1229
1230
|
D,
|
|
1230
|
-
K,
|
|
1231
1231
|
z,
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1232
|
+
re,
|
|
1233
|
+
Y,
|
|
1234
|
+
M
|
|
1235
1235
|
]
|
|
1236
|
-
),
|
|
1237
|
-
|
|
1238
|
-
}, [
|
|
1239
|
-
|
|
1240
|
-
}, [
|
|
1236
|
+
), oe = Te(() => {
|
|
1237
|
+
G("form");
|
|
1238
|
+
}, [q.analytics]), ce = Te(() => {
|
|
1239
|
+
G("landing"), q.onBack?.();
|
|
1240
|
+
}, [q.onBack]), ae = Ue(
|
|
1241
1241
|
() => ({
|
|
1242
|
-
view:
|
|
1242
|
+
view: Q,
|
|
1243
1243
|
locale: T,
|
|
1244
1244
|
setLocale: F,
|
|
1245
|
-
config:
|
|
1246
|
-
formValues:
|
|
1247
|
-
setFormValues:
|
|
1248
|
-
goToForm:
|
|
1249
|
-
goToPage:
|
|
1250
|
-
onProceed:
|
|
1251
|
-
onProceedGuidance:
|
|
1245
|
+
config: q,
|
|
1246
|
+
formValues: X,
|
|
1247
|
+
setFormValues: te,
|
|
1248
|
+
goToForm: oe,
|
|
1249
|
+
goToPage: ce,
|
|
1250
|
+
onProceed: q.onProceed,
|
|
1251
|
+
onProceedGuidance: q.onProceedGuidance
|
|
1252
1252
|
}),
|
|
1253
|
-
[
|
|
1253
|
+
[Q, T, q, X, oe, ce]
|
|
1254
1254
|
);
|
|
1255
|
-
return /* @__PURE__ */ r.jsx(Ke.Provider, { value:
|
|
1255
|
+
return /* @__PURE__ */ r.jsx(Ke.Provider, { value: ae, children: se });
|
|
1256
1256
|
};
|
|
1257
|
-
function
|
|
1257
|
+
function Re() {
|
|
1258
1258
|
return We(Ke);
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function $n() {
|
|
1261
1261
|
const t = We(Ke);
|
|
1262
1262
|
if (!t)
|
|
1263
1263
|
throw new Error("useKundliContextOrThrow must be used within KundliProvider");
|
|
1264
1264
|
return t;
|
|
1265
1265
|
}
|
|
1266
|
-
const ct = "_header_19172_1", dt = "_centered_19172_8",
|
|
1266
|
+
const ct = "_header_19172_1", dt = "_centered_19172_8", lr = {
|
|
1267
1267
|
header: ct,
|
|
1268
1268
|
centered: dt
|
|
1269
1269
|
}, ut = ({
|
|
1270
1270
|
t,
|
|
1271
1271
|
onBack: o,
|
|
1272
|
-
className:
|
|
1273
|
-
align:
|
|
1272
|
+
className: c = "",
|
|
1273
|
+
align: f = "left"
|
|
1274
1274
|
}) => /* @__PURE__ */ r.jsx(
|
|
1275
1275
|
Mr,
|
|
1276
1276
|
{
|
|
@@ -1278,13 +1278,13 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1278
1278
|
subtitle: t("formSubtitle"),
|
|
1279
1279
|
onBack: o,
|
|
1280
1280
|
backAriaLabel: t("back"),
|
|
1281
|
-
className: `${
|
|
1281
|
+
className: `${lr.header} ${f === "center" ? lr.centered : ""} ${c}`
|
|
1282
1282
|
}
|
|
1283
|
-
),
|
|
1284
|
-
wrap:
|
|
1285
|
-
card:
|
|
1286
|
-
cardInner:
|
|
1287
|
-
field:
|
|
1283
|
+
), ft = "_wrap_119w3_1", mt = "_card_119w3_5", ht = "_cardInner_119w3_12", pt = "_field_119w3_44", gt = "_labelRow_119w3_48", _t = "_label_119w3_48", bt = "_req_119w3_57", yt = "_help_119w3_61", vt = "_choiceRow_119w3_68", kt = "_choiceBtn_119w3_74", wt = "_choiceBtnActive_119w3_99", xt = "_infoBtn_119w3_105", Pt = "_infoImg_119w3_122", At = "_infoWrap_119w3_128", Ct = "_tooltip_119w3_134", jt = "_tooltipArrow_119w3_150", Nt = "_inputWrap_119w3_161", Tt = "_isdWrap_119w3_165", Rt = "_phoneInputGroup_119w3_169", St = "_isdSelectWrap_119w3_178", Et = "_isdSelectTrigger_119w3_197", It = "_isdDropdown_119w3_214", Bt = "_isdSearchWrap_119w3_229", Lt = "_isdSearchInput_119w3_237", Dt = "_isdOption_119w3_255", Ft = "_isdOptionActive_119w3_275", Ot = "_isdCountryName_119w3_281", Mt = "_isdCountryCode_119w3_288", $t = "_isdNoResult_119w3_295", Ut = "_suggestions_119w3_302", Gt = "_suggestionItem_119w3_315", Wt = "_suggestionMain_119w3_333", Kt = "_suggestionSecondary_119w3_339", Ht = "_suggestionsHint_119w3_344", Yt = "_fieldError_119w3_359", qt = "_timePopover_119w3_366", Vt = "_timePickerRow_119w3_382", zt = "_timePickerSelect_119w3_388", Jt = "_timePickerColon_119w3_404", Qt = "_meridiemToggle_119w3_412", Xt = "_meridiemBtn_119w3_421", Zt = "_meridiemActive_119w3_436", ea = "_timePopoverActions_119w3_441", ra = "_timePopoverBtn_119w3_447", ta = "_timePopoverOk_119w3_466", aa = "_input_119w3_161", na = "_phoneInput_119w3_169", oa = "_iconBtn_119w3_519", ia = "_iconBtnInteractive_119w3_525", la = "_iconImg_119w3_544", sa = "_checkboxRow_119w3_550", ca = "_checkbox_119w3_550", da = "_checkboxText_119w3_588", a = {
|
|
1284
|
+
wrap: ft,
|
|
1285
|
+
card: mt,
|
|
1286
|
+
cardInner: ht,
|
|
1287
|
+
field: pt,
|
|
1288
1288
|
labelRow: gt,
|
|
1289
1289
|
label: _t,
|
|
1290
1290
|
req: bt,
|
|
@@ -1334,61 +1334,61 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1334
1334
|
checkboxRow: sa,
|
|
1335
1335
|
checkbox: ca,
|
|
1336
1336
|
checkboxText: da
|
|
1337
|
-
},
|
|
1338
|
-
const o = typeof t?.limit == "number" && t.limit > 0 ? Math.min(t.limit, 20) : 8,
|
|
1337
|
+
}, sr = (t) => typeof t == "number" && Number.isFinite(t), ua = (t) => {
|
|
1338
|
+
const o = typeof t?.limit == "number" && t.limit > 0 ? Math.min(t.limit, 20) : 8, c = typeof t?.offset == "number" && t.offset >= 0 ? t.offset : 0;
|
|
1339
1339
|
return {
|
|
1340
1340
|
limit: o,
|
|
1341
|
-
offset:
|
|
1341
|
+
offset: c,
|
|
1342
1342
|
restrictCountry: t?.restrictCountry
|
|
1343
1343
|
};
|
|
1344
|
-
},
|
|
1345
|
-
const { searchLocalities: o, restrictCountry:
|
|
1346
|
-
|
|
1344
|
+
}, fa = (t) => {
|
|
1345
|
+
const { searchLocalities: o, restrictCountry: c } = t, [f, b] = K([]), [S, x] = K(!1), [j, A] = K(null), E = W(0);
|
|
1346
|
+
H(() => {
|
|
1347
1347
|
A(null);
|
|
1348
1348
|
}, [o]);
|
|
1349
|
-
const
|
|
1350
|
-
async (
|
|
1351
|
-
if (!
|
|
1352
|
-
|
|
1349
|
+
const d = Te(
|
|
1350
|
+
async (h) => {
|
|
1351
|
+
if (!h || h.length < 2 || !o) {
|
|
1352
|
+
b([]);
|
|
1353
1353
|
return;
|
|
1354
1354
|
}
|
|
1355
1355
|
const I = ++E.current;
|
|
1356
1356
|
x(!0), A(null);
|
|
1357
1357
|
try {
|
|
1358
|
-
const
|
|
1358
|
+
const p = ua({ restrictCountry: c }), B = await o(h, p);
|
|
1359
1359
|
if (I !== E.current) return;
|
|
1360
1360
|
const C = (B || []).filter(
|
|
1361
|
-
(
|
|
1362
|
-
).map((
|
|
1363
|
-
id:
|
|
1364
|
-
description:
|
|
1365
|
-
secondary_text:
|
|
1366
|
-
lat:
|
|
1367
|
-
lng:
|
|
1361
|
+
(y) => !!y?.id && !!y?.description && sr(y?.lat) && sr(y?.lng)
|
|
1362
|
+
).map((y) => ({
|
|
1363
|
+
id: y.id,
|
|
1364
|
+
description: y.description,
|
|
1365
|
+
secondary_text: y.secondaryText,
|
|
1366
|
+
lat: y.lat,
|
|
1367
|
+
lng: y.lng
|
|
1368
1368
|
}));
|
|
1369
|
-
|
|
1370
|
-
} catch (
|
|
1369
|
+
b(C);
|
|
1370
|
+
} catch (p) {
|
|
1371
1371
|
if (I !== E.current) return;
|
|
1372
|
-
|
|
1372
|
+
b([]), A(p?.message || "Failed to fetch locations");
|
|
1373
1373
|
} finally {
|
|
1374
1374
|
I === E.current && x(!1);
|
|
1375
1375
|
}
|
|
1376
1376
|
},
|
|
1377
|
-
[
|
|
1378
|
-
), N =
|
|
1377
|
+
[c, o]
|
|
1378
|
+
), N = Te(() => b([]), []);
|
|
1379
1379
|
return {
|
|
1380
|
-
predictions:
|
|
1380
|
+
predictions: f,
|
|
1381
1381
|
isSearching: S,
|
|
1382
1382
|
loadError: j,
|
|
1383
|
-
searchPlaces:
|
|
1383
|
+
searchPlaces: d,
|
|
1384
1384
|
clearPredictions: N
|
|
1385
1385
|
};
|
|
1386
|
-
},
|
|
1386
|
+
}, je = {
|
|
1387
1387
|
time: "https://srm-cdn.a4b.io/yoda/1770372014782.svg",
|
|
1388
1388
|
location: "https://srm-cdn.a4b.io/yoda/1770372031092.svg",
|
|
1389
1389
|
date: "https://srm-cdn.a4b.io/yoda/1770372045894.svg",
|
|
1390
1390
|
info: "https://srm-cdn.a4b.io/yoda/1770372066357.svg"
|
|
1391
|
-
},
|
|
1391
|
+
}, pr = [
|
|
1392
1392
|
{ code: "+1", country: "USA / Canada" },
|
|
1393
1393
|
{ code: "+7", country: "Russia / Kazakhstan" },
|
|
1394
1394
|
{ code: "+20", country: "Egypt" },
|
|
@@ -1459,113 +1459,120 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1459
1459
|
{ code: "+976", country: "Mongolia" },
|
|
1460
1460
|
{ code: "+977", country: "Nepal" }
|
|
1461
1461
|
];
|
|
1462
|
-
|
|
1463
|
-
const
|
|
1462
|
+
pr.map((t) => t.code);
|
|
1463
|
+
const gr = 10, _r = (t) => t.replace(/\D/g, ""), cr = (t) => _r(t).slice(0, gr), ma = (t) => _r(t).length === gr;
|
|
1464
|
+
function ha(t, o) {
|
|
1465
|
+
const c = W(!1);
|
|
1466
|
+
return { trackPhoneFilled: (b) => {
|
|
1467
|
+
if (!ma(b)) {
|
|
1468
|
+
c.current = !1;
|
|
1469
|
+
return;
|
|
1470
|
+
}
|
|
1471
|
+
c.current || (c.current = !0, t?.trackPhoneSectionFilled?.({ phone: `${o}-${b}` }));
|
|
1472
|
+
} };
|
|
1473
|
+
}
|
|
1474
|
+
const pa = ({
|
|
1464
1475
|
t,
|
|
1465
1476
|
values: o,
|
|
1466
|
-
onChange:
|
|
1467
|
-
phoneIsdCode:
|
|
1468
|
-
onPhoneIsdCodeChange:
|
|
1477
|
+
onChange: c,
|
|
1478
|
+
phoneIsdCode: f,
|
|
1479
|
+
onPhoneIsdCodeChange: b,
|
|
1469
1480
|
showV1ExtraFields: S = !1,
|
|
1470
1481
|
analytics: x,
|
|
1471
1482
|
atlasSearchLocalities: j,
|
|
1472
1483
|
className: A = ""
|
|
1473
1484
|
}) => {
|
|
1474
|
-
const E =
|
|
1485
|
+
const E = Re(), d = E?.config?.analytics ?? x, N = E?.config.isGlobal ?? !0, h = E?.config?.atlasSearchLocalities, [I, p] = K(!1), [B, C] = K(""), y = W(null), g = W(null), U = W({}), { trackPhoneFilled: J } = ha(d, f), v = (n) => c({ ...o, ...n }), D = (n, s) => {
|
|
1475
1486
|
if (n === "phone") {
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
return;
|
|
1479
|
-
}
|
|
1480
|
-
if (O.current[n]) return;
|
|
1487
|
+
J(s);
|
|
1488
|
+
return;
|
|
1481
1489
|
}
|
|
1482
|
-
s.trim() && !
|
|
1483
|
-
fullName: () =>
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
birthPlace: () => c?.trackPlaceOfBirthChosen?.()
|
|
1490
|
+
s.trim() && !U.current[n] && (U.current[n] = !0, {
|
|
1491
|
+
fullName: () => d?.trackNameSectionFilled?.(),
|
|
1492
|
+
email: () => d?.trackEmailSectionFilled?.(),
|
|
1493
|
+
dateOfBirth: () => d?.trackDobFilled?.(),
|
|
1494
|
+
birthTime: () => d?.trackTimeFilled?.(),
|
|
1495
|
+
birthPlace: () => d?.trackPlaceOfBirthChosen?.()
|
|
1489
1496
|
}[n]?.());
|
|
1490
|
-
},
|
|
1491
|
-
|
|
1492
|
-
const
|
|
1497
|
+
}, z = B.trim().toLowerCase(), re = pr.filter((n) => z ? n.country.toLowerCase().includes(z) || n.code.includes(z) : !0), Y = W(null);
|
|
1498
|
+
W(null);
|
|
1499
|
+
const M = W(null), se = W(0), Q = W(null), [G, T] = K(!1), [F, X] = K({ hour12: 12, minute: "00", meridiem: "AM" }), te = (n) => String(n).padStart(2, "0"), ge = (n) => {
|
|
1493
1500
|
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
1494
1501
|
if (!s) return n;
|
|
1495
|
-
const
|
|
1496
|
-
return `${
|
|
1497
|
-
},
|
|
1502
|
+
const L = Number(s[1]), fe = s[2], Se = L >= 12 ? "PM" : "AM";
|
|
1503
|
+
return `${L % 12 === 0 ? 12 : L % 12}:${fe} ${Se}`;
|
|
1504
|
+
}, q = (n) => {
|
|
1498
1505
|
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
1499
1506
|
if (!s) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
1500
|
-
const
|
|
1501
|
-
return { hour12:
|
|
1502
|
-
},
|
|
1503
|
-
const s = Math.min(12, Math.max(1, n.hour12)),
|
|
1504
|
-
let
|
|
1505
|
-
return n.meridiem === "PM" && (
|
|
1506
|
-
},
|
|
1507
|
+
const L = Number(s[1]), fe = s[2], Se = L >= 12 ? "PM" : "AM";
|
|
1508
|
+
return { hour12: L % 12 === 0 ? 12 : L % 12, minute: fe, meridiem: Se };
|
|
1509
|
+
}, oe = (n) => {
|
|
1510
|
+
const s = Math.min(12, Math.max(1, n.hour12)), L = /^([0-5]\d)$/.test(n.minute) ? n.minute : "00";
|
|
1511
|
+
let fe = s % 12;
|
|
1512
|
+
return n.meridiem === "PM" && (fe += 12), `${te(fe)}:${L}`;
|
|
1513
|
+
}, ce = W(null), [ae, ie] = K(!1), [me, ne] = K(
|
|
1507
1514
|
null
|
|
1508
|
-
),
|
|
1509
|
-
predictions:
|
|
1510
|
-
isSearching:
|
|
1511
|
-
loadError:
|
|
1512
|
-
searchPlaces:
|
|
1513
|
-
clearPredictions:
|
|
1514
|
-
} =
|
|
1515
|
-
searchLocalities:
|
|
1516
|
-
restrictCountry:
|
|
1515
|
+
), de = (o.birthPlace ?? "").trim(), _e = N ? void 0 : "in", V = j ?? h, ye = Number.isFinite(o.birthPlaceLat) && Number.isFinite(o.birthPlaceLng), ue = de.length > 0 && !ye && !ae, {
|
|
1516
|
+
predictions: we,
|
|
1517
|
+
isSearching: be,
|
|
1518
|
+
loadError: xe,
|
|
1519
|
+
searchPlaces: Pe,
|
|
1520
|
+
clearPredictions: k
|
|
1521
|
+
} = fa({
|
|
1522
|
+
searchLocalities: V,
|
|
1523
|
+
restrictCountry: _e
|
|
1517
1524
|
});
|
|
1518
|
-
|
|
1525
|
+
H(() => {
|
|
1519
1526
|
const n = (s) => {
|
|
1520
|
-
|
|
1527
|
+
ce.current && (ce.current.contains(s.target) || ie(!1));
|
|
1521
1528
|
};
|
|
1522
1529
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1523
|
-
}, []),
|
|
1530
|
+
}, []), H(() => {
|
|
1524
1531
|
const n = (s) => {
|
|
1525
|
-
|
|
1532
|
+
y.current && (y.current.contains(s.target) || (p(!1), C("")));
|
|
1526
1533
|
};
|
|
1527
1534
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1528
|
-
}, []),
|
|
1535
|
+
}, []), H(() => {
|
|
1529
1536
|
if (!I) return;
|
|
1530
1537
|
const n = window.setTimeout(() => {
|
|
1531
1538
|
g.current?.focus();
|
|
1532
1539
|
}, 0);
|
|
1533
1540
|
return () => window.clearTimeout(n);
|
|
1534
|
-
}, [I]),
|
|
1535
|
-
if (!
|
|
1536
|
-
if (
|
|
1537
|
-
|
|
1541
|
+
}, [I]), H(() => {
|
|
1542
|
+
if (!ae) return;
|
|
1543
|
+
if (de.length < 2) {
|
|
1544
|
+
k();
|
|
1538
1545
|
return;
|
|
1539
1546
|
}
|
|
1540
1547
|
const n = window.setTimeout(async () => {
|
|
1541
|
-
await
|
|
1548
|
+
await Pe(de);
|
|
1542
1549
|
}, 250);
|
|
1543
1550
|
return () => window.clearTimeout(n);
|
|
1544
|
-
}, [
|
|
1545
|
-
const
|
|
1551
|
+
}, [k, ae, de, Pe]);
|
|
1552
|
+
const he = (n) => {
|
|
1546
1553
|
const s = n.current;
|
|
1547
1554
|
if (!(!s || s.disabled)) {
|
|
1548
|
-
if (document.activeElement === s &&
|
|
1555
|
+
if (document.activeElement === s && M.current === s && Date.now() - se.current < 6e4) {
|
|
1549
1556
|
s.blur();
|
|
1550
1557
|
return;
|
|
1551
1558
|
}
|
|
1552
1559
|
if (typeof s.showPicker == "function") {
|
|
1553
|
-
s.showPicker(),
|
|
1560
|
+
s.showPicker(), M.current = s, se.current = Date.now();
|
|
1554
1561
|
return;
|
|
1555
1562
|
}
|
|
1556
|
-
s.focus(),
|
|
1563
|
+
s.focus(), M.current = s, se.current = Date.now();
|
|
1557
1564
|
}
|
|
1558
1565
|
};
|
|
1559
|
-
return
|
|
1566
|
+
return H(() => {
|
|
1560
1567
|
const n = (s) => {
|
|
1561
|
-
|
|
1568
|
+
Q.current && (Q.current.contains(s.target) || T(!1));
|
|
1562
1569
|
};
|
|
1563
1570
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1564
|
-
}, []),
|
|
1565
|
-
const n = (
|
|
1566
|
-
|
|
1567
|
-
}, s = (
|
|
1568
|
-
|
|
1571
|
+
}, []), H(() => {
|
|
1572
|
+
const n = (L) => {
|
|
1573
|
+
L.target?.closest?.("[data-info-tooltip]") == null && ne(null);
|
|
1574
|
+
}, s = (L) => {
|
|
1575
|
+
L.key === "Escape" && ne(null);
|
|
1569
1576
|
};
|
|
1570
1577
|
return document.addEventListener("mousedown", n), document.addEventListener("keydown", s), () => {
|
|
1571
1578
|
document.removeEventListener("mousedown", n), document.removeEventListener("keydown", s);
|
|
@@ -1588,10 +1595,10 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1588
1595
|
className: a.input,
|
|
1589
1596
|
type: "text",
|
|
1590
1597
|
value: o.fullName,
|
|
1591
|
-
onFocus: () =>
|
|
1598
|
+
onFocus: () => d?.trackNameSectionClicked?.(),
|
|
1592
1599
|
onChange: (n) => {
|
|
1593
1600
|
const s = n.target.value;
|
|
1594
|
-
|
|
1601
|
+
v({ fullName: s }), D("fullName", s);
|
|
1595
1602
|
},
|
|
1596
1603
|
placeholder: t("formFullNamePlaceholder"),
|
|
1597
1604
|
autoComplete: "name"
|
|
@@ -1603,7 +1610,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1603
1610
|
t("formPhone"),
|
|
1604
1611
|
!N && /* @__PURE__ */ r.jsx("span", { className: a.req, children: "*" })
|
|
1605
1612
|
] }) }),
|
|
1606
|
-
/* @__PURE__ */ r.jsx("div", { className: a.inputWrap, children: /* @__PURE__ */ r.jsxs("div", { className: a.isdWrap, ref:
|
|
1613
|
+
/* @__PURE__ */ r.jsx("div", { className: a.inputWrap, children: /* @__PURE__ */ r.jsxs("div", { className: a.isdWrap, ref: y, children: [
|
|
1607
1614
|
/* @__PURE__ */ r.jsxs("div", { className: a.phoneInputGroup, children: [
|
|
1608
1615
|
/* @__PURE__ */ r.jsx("div", { className: a.isdSelectWrap, children: /* @__PURE__ */ r.jsx(
|
|
1609
1616
|
"button",
|
|
@@ -1613,9 +1620,9 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1613
1620
|
"aria-haspopup": "listbox",
|
|
1614
1621
|
"aria-expanded": I,
|
|
1615
1622
|
onClick: () => {
|
|
1616
|
-
|
|
1623
|
+
p((n) => !n), C("");
|
|
1617
1624
|
},
|
|
1618
|
-
children:
|
|
1625
|
+
children: f
|
|
1619
1626
|
}
|
|
1620
1627
|
) }),
|
|
1621
1628
|
/* @__PURE__ */ r.jsx(
|
|
@@ -1625,10 +1632,10 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1625
1632
|
className: `${a.input} ${a.phoneInput}`,
|
|
1626
1633
|
type: "tel",
|
|
1627
1634
|
value: o.phone ?? "",
|
|
1628
|
-
onFocus: () =>
|
|
1635
|
+
onFocus: () => d?.trackPhoneSectionClicked?.(),
|
|
1629
1636
|
onChange: (n) => {
|
|
1630
1637
|
const s = n.target.value;
|
|
1631
|
-
|
|
1638
|
+
v({ phone: cr(s) }), D("phone", cr(s));
|
|
1632
1639
|
},
|
|
1633
1640
|
placeholder: t("formPhonePlaceholder"),
|
|
1634
1641
|
autoComplete: "tel",
|
|
@@ -1659,15 +1666,15 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1659
1666
|
"aria-label": "Search country"
|
|
1660
1667
|
}
|
|
1661
1668
|
) }),
|
|
1662
|
-
|
|
1669
|
+
re.length > 0 ? re.map((n) => /* @__PURE__ */ r.jsxs(
|
|
1663
1670
|
"button",
|
|
1664
1671
|
{
|
|
1665
1672
|
type: "button",
|
|
1666
1673
|
role: "option",
|
|
1667
|
-
"aria-selected": n.code ===
|
|
1668
|
-
className: `${a.isdOption} ${n.code ===
|
|
1674
|
+
"aria-selected": n.code === f,
|
|
1675
|
+
className: `${a.isdOption} ${n.code === f ? a.isdOptionActive : ""}`,
|
|
1669
1676
|
onClick: () => {
|
|
1670
|
-
|
|
1677
|
+
b(n.code), p(!1), C("");
|
|
1671
1678
|
},
|
|
1672
1679
|
children: [
|
|
1673
1680
|
/* @__PURE__ */ r.jsx("span", { className: a.isdCountryName, children: n.country }),
|
|
@@ -1700,7 +1707,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1700
1707
|
type: "button",
|
|
1701
1708
|
className: `${a.choiceBtn} ${o.gender === "male" ? a.choiceBtnActive : ""}`,
|
|
1702
1709
|
onClick: () => {
|
|
1703
|
-
|
|
1710
|
+
v({ gender: "male" }), d?.trackGenderSelected?.({
|
|
1704
1711
|
gender: "male"
|
|
1705
1712
|
});
|
|
1706
1713
|
},
|
|
@@ -1716,7 +1723,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1716
1723
|
type: "button",
|
|
1717
1724
|
className: `${a.choiceBtn} ${o.gender === "female" ? a.choiceBtnActive : ""}`,
|
|
1718
1725
|
onClick: () => {
|
|
1719
|
-
|
|
1726
|
+
v({ gender: "female" }), d?.trackGenderSelected?.({
|
|
1720
1727
|
gender: "female"
|
|
1721
1728
|
});
|
|
1722
1729
|
},
|
|
@@ -1742,7 +1749,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1742
1749
|
className: a.input,
|
|
1743
1750
|
type: "email",
|
|
1744
1751
|
value: o.email,
|
|
1745
|
-
onChange: (n) =>
|
|
1752
|
+
onChange: (n) => v({ email: n.target.value }),
|
|
1746
1753
|
placeholder: t("formEmailPlaceholder"),
|
|
1747
1754
|
autoComplete: "email",
|
|
1748
1755
|
required: !0,
|
|
@@ -1763,22 +1770,22 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1763
1770
|
type: "button",
|
|
1764
1771
|
className: a.infoBtn,
|
|
1765
1772
|
"aria-label": t("info"),
|
|
1766
|
-
"aria-expanded":
|
|
1773
|
+
"aria-expanded": me === "dob",
|
|
1767
1774
|
onClick: () => {
|
|
1768
|
-
|
|
1775
|
+
ne((n) => n === "dob" ? null : "dob"), d?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
1769
1776
|
},
|
|
1770
1777
|
children: /* @__PURE__ */ r.jsx(
|
|
1771
1778
|
"img",
|
|
1772
1779
|
{
|
|
1773
1780
|
className: a.infoImg,
|
|
1774
|
-
src:
|
|
1781
|
+
src: je.info,
|
|
1775
1782
|
alt: "",
|
|
1776
1783
|
"aria-hidden": !0
|
|
1777
1784
|
}
|
|
1778
1785
|
)
|
|
1779
1786
|
}
|
|
1780
1787
|
),
|
|
1781
|
-
|
|
1788
|
+
me === "dob" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
|
|
1782
1789
|
t("formDobInfo"),
|
|
1783
1790
|
/* @__PURE__ */ r.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
|
|
1784
1791
|
] })
|
|
@@ -1791,20 +1798,20 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1791
1798
|
id: "kundli-dob",
|
|
1792
1799
|
className: a.input,
|
|
1793
1800
|
type: "date",
|
|
1794
|
-
ref:
|
|
1801
|
+
ref: Y,
|
|
1795
1802
|
value: o.dateOfBirth,
|
|
1796
1803
|
max: (() => {
|
|
1797
1804
|
const n = /* @__PURE__ */ new Date();
|
|
1798
|
-
return `${n.getFullYear()}-${
|
|
1805
|
+
return `${n.getFullYear()}-${te(n.getMonth() + 1)}-${te(n.getDate())}`;
|
|
1799
1806
|
})(),
|
|
1800
1807
|
onChange: (n) => {
|
|
1801
|
-
const s = n.target.value,
|
|
1802
|
-
s && s >
|
|
1808
|
+
const s = n.target.value, L = /* @__PURE__ */ new Date(), fe = `${L.getFullYear()}-${te(L.getMonth() + 1)}-${te(L.getDate())}`;
|
|
1809
|
+
s && s > fe || (v({ dateOfBirth: s }), D("dateOfBirth", s), M.current = null);
|
|
1803
1810
|
},
|
|
1804
|
-
onFocus: () =>
|
|
1805
|
-
onClick: () =>
|
|
1811
|
+
onFocus: () => d?.trackDobClicked?.(),
|
|
1812
|
+
onClick: () => he(Y),
|
|
1806
1813
|
onBlur: () => {
|
|
1807
|
-
|
|
1814
|
+
M.current === Y.current && (M.current = null);
|
|
1808
1815
|
}
|
|
1809
1816
|
}
|
|
1810
1817
|
),
|
|
@@ -1816,13 +1823,13 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1816
1823
|
"aria-label": "Open date picker",
|
|
1817
1824
|
onMouseDown: (n) => n.preventDefault(),
|
|
1818
1825
|
onClick: (n) => {
|
|
1819
|
-
n.preventDefault(), n.stopPropagation(),
|
|
1826
|
+
n.preventDefault(), n.stopPropagation(), he(Y);
|
|
1820
1827
|
},
|
|
1821
1828
|
children: /* @__PURE__ */ r.jsx(
|
|
1822
1829
|
"img",
|
|
1823
1830
|
{
|
|
1824
1831
|
className: a.iconImg,
|
|
1825
|
-
src:
|
|
1832
|
+
src: je.date,
|
|
1826
1833
|
alt: "",
|
|
1827
1834
|
"aria-hidden": !0
|
|
1828
1835
|
}
|
|
@@ -1844,45 +1851,45 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1844
1851
|
type: "button",
|
|
1845
1852
|
className: a.infoBtn,
|
|
1846
1853
|
"aria-label": t("info"),
|
|
1847
|
-
"aria-expanded":
|
|
1854
|
+
"aria-expanded": me === "time",
|
|
1848
1855
|
onClick: () => {
|
|
1849
|
-
|
|
1856
|
+
d?.trackInfoIconClicked?.({ fieldName: "time" }), ne((n) => n === "time" ? null : "time");
|
|
1850
1857
|
},
|
|
1851
1858
|
children: /* @__PURE__ */ r.jsx(
|
|
1852
1859
|
"img",
|
|
1853
1860
|
{
|
|
1854
1861
|
className: a.infoImg,
|
|
1855
|
-
src:
|
|
1862
|
+
src: je.info,
|
|
1856
1863
|
alt: "",
|
|
1857
1864
|
"aria-hidden": !0
|
|
1858
1865
|
}
|
|
1859
1866
|
)
|
|
1860
1867
|
}
|
|
1861
1868
|
),
|
|
1862
|
-
|
|
1869
|
+
me === "time" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
|
|
1863
1870
|
t("formBirthTimeInfo"),
|
|
1864
1871
|
/* @__PURE__ */ r.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
|
|
1865
1872
|
] })
|
|
1866
1873
|
] })
|
|
1867
1874
|
] }),
|
|
1868
|
-
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref:
|
|
1875
|
+
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref: Q, children: [
|
|
1869
1876
|
/* @__PURE__ */ r.jsx(
|
|
1870
1877
|
"input",
|
|
1871
1878
|
{
|
|
1872
1879
|
id: "kundli-birth-time",
|
|
1873
1880
|
className: a.input,
|
|
1874
1881
|
type: "text",
|
|
1875
|
-
value: o.birthTime ?
|
|
1882
|
+
value: o.birthTime ? ge(o.birthTime) : "",
|
|
1876
1883
|
readOnly: !0,
|
|
1877
|
-
onFocus: () =>
|
|
1884
|
+
onFocus: () => d?.trackTimeClicked?.(),
|
|
1878
1885
|
onChange: (n) => {
|
|
1879
1886
|
const s = n.target.value;
|
|
1880
|
-
|
|
1887
|
+
v({ birthTime: s }), D("birthTime", s);
|
|
1881
1888
|
},
|
|
1882
1889
|
disabled: o.birthTimeUnknown,
|
|
1883
1890
|
placeholder: "HH:MM AM",
|
|
1884
1891
|
onClick: () => {
|
|
1885
|
-
o.birthTimeUnknown || (
|
|
1892
|
+
o.birthTimeUnknown || (X(q(o.birthTime || "12:00")), T((n) => !n));
|
|
1886
1893
|
}
|
|
1887
1894
|
}
|
|
1888
1895
|
),
|
|
@@ -1895,20 +1902,20 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1895
1902
|
disabled: o.birthTimeUnknown,
|
|
1896
1903
|
onMouseDown: (n) => n.preventDefault(),
|
|
1897
1904
|
onClick: (n) => {
|
|
1898
|
-
n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (
|
|
1905
|
+
n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (X(q(o.birthTime || "12:00")), T((s) => !s));
|
|
1899
1906
|
},
|
|
1900
1907
|
children: /* @__PURE__ */ r.jsx(
|
|
1901
1908
|
"img",
|
|
1902
1909
|
{
|
|
1903
1910
|
className: a.iconImg,
|
|
1904
|
-
src:
|
|
1911
|
+
src: je.time,
|
|
1905
1912
|
alt: "",
|
|
1906
1913
|
"aria-hidden": !0
|
|
1907
1914
|
}
|
|
1908
1915
|
)
|
|
1909
1916
|
}
|
|
1910
1917
|
),
|
|
1911
|
-
|
|
1918
|
+
G && !o.birthTimeUnknown && /* @__PURE__ */ r.jsxs(
|
|
1912
1919
|
"div",
|
|
1913
1920
|
{
|
|
1914
1921
|
className: a.timePopover,
|
|
@@ -1920,8 +1927,8 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1920
1927
|
"select",
|
|
1921
1928
|
{
|
|
1922
1929
|
className: a.timePickerSelect,
|
|
1923
|
-
value:
|
|
1924
|
-
onChange: (n) =>
|
|
1930
|
+
value: F.hour12,
|
|
1931
|
+
onChange: (n) => X((s) => ({
|
|
1925
1932
|
...s,
|
|
1926
1933
|
hour12: Number(n.target.value)
|
|
1927
1934
|
})),
|
|
@@ -1934,10 +1941,10 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1934
1941
|
"select",
|
|
1935
1942
|
{
|
|
1936
1943
|
className: a.timePickerSelect,
|
|
1937
|
-
value:
|
|
1938
|
-
onChange: (n) =>
|
|
1944
|
+
value: F.minute,
|
|
1945
|
+
onChange: (n) => X((s) => ({ ...s, minute: n.target.value })),
|
|
1939
1946
|
"aria-label": "Minute",
|
|
1940
|
-
children: Array.from({ length: 60 }, (n, s) =>
|
|
1947
|
+
children: Array.from({ length: 60 }, (n, s) => te(s)).map(
|
|
1941
1948
|
(n) => /* @__PURE__ */ r.jsx("option", { value: n, children: n }, n)
|
|
1942
1949
|
)
|
|
1943
1950
|
}
|
|
@@ -1947,8 +1954,8 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1947
1954
|
"button",
|
|
1948
1955
|
{
|
|
1949
1956
|
type: "button",
|
|
1950
|
-
className: `${a.meridiemBtn} ${
|
|
1951
|
-
onClick: () =>
|
|
1957
|
+
className: `${a.meridiemBtn} ${F.meridiem === "AM" ? a.meridiemActive : ""}`,
|
|
1958
|
+
onClick: () => X((n) => ({ ...n, meridiem: "AM" })),
|
|
1952
1959
|
children: "AM"
|
|
1953
1960
|
}
|
|
1954
1961
|
),
|
|
@@ -1956,8 +1963,8 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1956
1963
|
"button",
|
|
1957
1964
|
{
|
|
1958
1965
|
type: "button",
|
|
1959
|
-
className: `${a.meridiemBtn} ${
|
|
1960
|
-
onClick: () =>
|
|
1966
|
+
className: `${a.meridiemBtn} ${F.meridiem === "PM" ? a.meridiemActive : ""}`,
|
|
1967
|
+
onClick: () => X((n) => ({ ...n, meridiem: "PM" })),
|
|
1961
1968
|
children: "PM"
|
|
1962
1969
|
}
|
|
1963
1970
|
)
|
|
@@ -1969,7 +1976,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1969
1976
|
{
|
|
1970
1977
|
type: "button",
|
|
1971
1978
|
className: a.timePopoverBtn,
|
|
1972
|
-
onClick: () =>
|
|
1979
|
+
onClick: () => T(!1),
|
|
1973
1980
|
children: "Cancel"
|
|
1974
1981
|
}
|
|
1975
1982
|
),
|
|
@@ -1979,8 +1986,8 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1979
1986
|
type: "button",
|
|
1980
1987
|
className: `${a.timePopoverBtn} ${a.timePopoverOk}`,
|
|
1981
1988
|
onClick: () => {
|
|
1982
|
-
const n =
|
|
1983
|
-
|
|
1989
|
+
const n = oe(F);
|
|
1990
|
+
v({ birthTime: n }), D("birthTime", n), T(!1);
|
|
1984
1991
|
},
|
|
1985
1992
|
"aria-label": "OK",
|
|
1986
1993
|
children: /* @__PURE__ */ r.jsx(
|
|
@@ -2020,7 +2027,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2020
2027
|
type: "checkbox",
|
|
2021
2028
|
checked: o.birthTimeUnknown,
|
|
2022
2029
|
onChange: (n) => {
|
|
2023
|
-
|
|
2030
|
+
d?.trackTimeCheckboxClicked?.(), v({
|
|
2024
2031
|
birthTimeUnknown: n.target.checked,
|
|
2025
2032
|
birthTime: n.target.checked ? "" : o.birthTime
|
|
2026
2033
|
});
|
|
@@ -2054,30 +2061,30 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2054
2061
|
type: "button",
|
|
2055
2062
|
className: a.infoBtn,
|
|
2056
2063
|
"aria-label": t("info"),
|
|
2057
|
-
"aria-expanded":
|
|
2064
|
+
"aria-expanded": me === "place",
|
|
2058
2065
|
onClick: () => {
|
|
2059
|
-
|
|
2066
|
+
d?.trackInfoIconClicked?.({
|
|
2060
2067
|
fieldName: "birthPlace"
|
|
2061
|
-
}),
|
|
2068
|
+
}), ne((n) => n === "place" ? null : "place");
|
|
2062
2069
|
},
|
|
2063
2070
|
children: /* @__PURE__ */ r.jsx(
|
|
2064
2071
|
"img",
|
|
2065
2072
|
{
|
|
2066
2073
|
className: a.infoImg,
|
|
2067
|
-
src:
|
|
2074
|
+
src: je.info,
|
|
2068
2075
|
alt: "",
|
|
2069
2076
|
"aria-hidden": !0
|
|
2070
2077
|
}
|
|
2071
2078
|
)
|
|
2072
2079
|
}
|
|
2073
2080
|
),
|
|
2074
|
-
|
|
2081
|
+
me === "place" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
|
|
2075
2082
|
t("formBirthPlaceInfo"),
|
|
2076
2083
|
/* @__PURE__ */ r.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
|
|
2077
2084
|
] })
|
|
2078
2085
|
] })
|
|
2079
2086
|
] }),
|
|
2080
|
-
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref:
|
|
2087
|
+
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref: ce, children: [
|
|
2081
2088
|
/* @__PURE__ */ r.jsx(
|
|
2082
2089
|
"input",
|
|
2083
2090
|
{
|
|
@@ -2087,14 +2094,14 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2087
2094
|
value: o.birthPlace,
|
|
2088
2095
|
onChange: (n) => {
|
|
2089
2096
|
const s = n.target.value;
|
|
2090
|
-
|
|
2097
|
+
v({
|
|
2091
2098
|
birthPlace: s,
|
|
2092
2099
|
birthPlaceLat: void 0,
|
|
2093
2100
|
birthPlaceLng: void 0
|
|
2094
|
-
}), D("birthPlace", s),
|
|
2101
|
+
}), D("birthPlace", s), ie(!0);
|
|
2095
2102
|
},
|
|
2096
2103
|
onFocus: () => {
|
|
2097
|
-
|
|
2104
|
+
d?.trackPlaceOfBirthClicked?.(), ie(!0);
|
|
2098
2105
|
},
|
|
2099
2106
|
placeholder: t("formBirthPlacePlaceholder"),
|
|
2100
2107
|
autoComplete: "address-level2"
|
|
@@ -2104,22 +2111,22 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2104
2111
|
"img",
|
|
2105
2112
|
{
|
|
2106
2113
|
className: a.iconImg,
|
|
2107
|
-
src:
|
|
2114
|
+
src: je.location,
|
|
2108
2115
|
alt: "",
|
|
2109
2116
|
"aria-hidden": !0
|
|
2110
2117
|
}
|
|
2111
2118
|
) }),
|
|
2112
|
-
|
|
2119
|
+
ae && we.length > 0 && /* @__PURE__ */ r.jsx("div", { className: a.suggestions, role: "listbox", children: we.slice(0, 8).map((n) => /* @__PURE__ */ r.jsxs(
|
|
2113
2120
|
"button",
|
|
2114
2121
|
{
|
|
2115
2122
|
type: "button",
|
|
2116
2123
|
className: a.suggestionItem,
|
|
2117
2124
|
onClick: () => {
|
|
2118
|
-
|
|
2125
|
+
v({
|
|
2119
2126
|
birthPlace: n.description,
|
|
2120
2127
|
birthPlaceLat: n.lat,
|
|
2121
2128
|
birthPlaceLng: n.lng
|
|
2122
|
-
}),
|
|
2129
|
+
}), k(), ie(!1);
|
|
2123
2130
|
},
|
|
2124
2131
|
children: [
|
|
2125
2132
|
/* @__PURE__ */ r.jsx("span", { className: a.suggestionMain, children: n.description }),
|
|
@@ -2128,10 +2135,10 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2128
2135
|
},
|
|
2129
2136
|
n.id
|
|
2130
2137
|
)) }),
|
|
2131
|
-
|
|
2132
|
-
|
|
2138
|
+
ae && !!V && be && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: "Loading…" }),
|
|
2139
|
+
ae && !!V && !be && !!xe && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: xe })
|
|
2133
2140
|
] }),
|
|
2134
|
-
|
|
2141
|
+
ue && /* @__PURE__ */ r.jsx("p", { className: a.fieldError, children: "Please select a place from the dropdown list." })
|
|
2135
2142
|
] }),
|
|
2136
2143
|
S && /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
|
|
2137
2144
|
/* @__PURE__ */ r.jsx("div", { className: a.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: a.label, children: [
|
|
@@ -2152,7 +2159,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2152
2159
|
type: "button",
|
|
2153
2160
|
className: `${a.choiceBtn} ${o.language_code === "hi" ? a.choiceBtnActive : ""}`,
|
|
2154
2161
|
onClick: () => {
|
|
2155
|
-
|
|
2162
|
+
v({ language_code: "hi" }), d?.trackLanguageOfReportSelected?.({
|
|
2156
2163
|
language: "hi"
|
|
2157
2164
|
});
|
|
2158
2165
|
},
|
|
@@ -2168,7 +2175,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2168
2175
|
type: "button",
|
|
2169
2176
|
className: `${a.choiceBtn} ${o.language_code === "en" ? a.choiceBtnActive : ""}`,
|
|
2170
2177
|
onClick: () => {
|
|
2171
|
-
|
|
2178
|
+
v({ language_code: "en" }), d?.trackLanguageOfReportSelected?.({
|
|
2172
2179
|
language: "en"
|
|
2173
2180
|
});
|
|
2174
2181
|
},
|
|
@@ -2184,7 +2191,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2184
2191
|
type: "button",
|
|
2185
2192
|
className: `${a.choiceBtn} ${o.language_code === "te" ? a.choiceBtnActive : ""}`,
|
|
2186
2193
|
onClick: () => {
|
|
2187
|
-
|
|
2194
|
+
v({ language_code: "te" }), d?.trackLanguageOfReportSelected?.({
|
|
2188
2195
|
language: "te"
|
|
2189
2196
|
});
|
|
2190
2197
|
},
|
|
@@ -2200,7 +2207,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2200
2207
|
type: "button",
|
|
2201
2208
|
className: `${a.choiceBtn} ${o.language_code === "ta" ? a.choiceBtnActive : ""}`,
|
|
2202
2209
|
onClick: () => {
|
|
2203
|
-
|
|
2210
|
+
v({ language_code: "ta" }), d?.trackLanguageOfReportSelected?.({
|
|
2204
2211
|
language: "ta"
|
|
2205
2212
|
});
|
|
2206
2213
|
},
|
|
@@ -2216,7 +2223,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2216
2223
|
type: "button",
|
|
2217
2224
|
className: `${a.choiceBtn} ${o.language_code === "kn" ? a.choiceBtnActive : ""}`,
|
|
2218
2225
|
onClick: () => {
|
|
2219
|
-
|
|
2226
|
+
v({ language_code: "kn" }), d?.trackLanguageOfReportSelected?.({
|
|
2220
2227
|
language: "kn"
|
|
2221
2228
|
});
|
|
2222
2229
|
},
|
|
@@ -2232,7 +2239,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2232
2239
|
type: "button",
|
|
2233
2240
|
className: `${a.choiceBtn} ${o.language_code === "gu" ? a.choiceBtnActive : ""}`,
|
|
2234
2241
|
onClick: () => {
|
|
2235
|
-
|
|
2242
|
+
v({ language_code: "gu" }), d?.trackLanguageOfReportSelected?.({
|
|
2236
2243
|
language: "gu"
|
|
2237
2244
|
});
|
|
2238
2245
|
},
|
|
@@ -2248,7 +2255,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2248
2255
|
type: "button",
|
|
2249
2256
|
className: `${a.choiceBtn} ${o.language_code === "mr" ? a.choiceBtnActive : ""}`,
|
|
2250
2257
|
onClick: () => {
|
|
2251
|
-
|
|
2258
|
+
v({ language_code: "mr" }), d?.trackLanguageOfReportSelected?.({
|
|
2252
2259
|
language: "mr"
|
|
2253
2260
|
});
|
|
2254
2261
|
},
|
|
@@ -2264,19 +2271,19 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2264
2271
|
] }) })
|
|
2265
2272
|
}
|
|
2266
2273
|
);
|
|
2267
|
-
},
|
|
2268
|
-
ctaButton:
|
|
2269
|
-
ctaFilled:
|
|
2270
|
-
ctaFilledContent:
|
|
2271
|
-
chevronRight:
|
|
2272
|
-
}, br = "kundli-report-astrologer",
|
|
2273
|
-
const
|
|
2274
|
+
}, ga = "_ctaButton_rhimw_2", _a = "_ctaFilled_rhimw_21", ba = "_ctaFilledContent_rhimw_52", ya = "_chevronRight_rhimw_61", Ne = {
|
|
2275
|
+
ctaButton: ga,
|
|
2276
|
+
ctaFilled: _a,
|
|
2277
|
+
ctaFilledContent: ba,
|
|
2278
|
+
chevronRight: ya
|
|
2279
|
+
}, br = "kundli-report-astrologer", va = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", ka = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", wa = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", xa = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", Pa = ({ t }) => {
|
|
2280
|
+
const c = Re()?.config.imageComponent ?? De;
|
|
2274
2281
|
return /* @__PURE__ */ r.jsxs("div", { className: ke.marqueeContent, children: [
|
|
2275
2282
|
/* @__PURE__ */ r.jsxs("span", { className: ke.badge, children: [
|
|
2276
2283
|
/* @__PURE__ */ r.jsx(
|
|
2277
|
-
|
|
2284
|
+
c,
|
|
2278
2285
|
{
|
|
2279
|
-
src:
|
|
2286
|
+
src: va,
|
|
2280
2287
|
alt: "",
|
|
2281
2288
|
className: ke.badgeIcon,
|
|
2282
2289
|
width: 16,
|
|
@@ -2288,9 +2295,9 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2288
2295
|
] }),
|
|
2289
2296
|
/* @__PURE__ */ r.jsxs("span", { className: ke.badge, children: [
|
|
2290
2297
|
/* @__PURE__ */ r.jsx(
|
|
2291
|
-
|
|
2298
|
+
c,
|
|
2292
2299
|
{
|
|
2293
|
-
src:
|
|
2300
|
+
src: ka,
|
|
2294
2301
|
alt: "",
|
|
2295
2302
|
className: ke.badgeIcon,
|
|
2296
2303
|
width: 16,
|
|
@@ -2302,9 +2309,9 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2302
2309
|
] }),
|
|
2303
2310
|
/* @__PURE__ */ r.jsxs("span", { className: ke.badge, children: [
|
|
2304
2311
|
/* @__PURE__ */ r.jsx(
|
|
2305
|
-
|
|
2312
|
+
c,
|
|
2306
2313
|
{
|
|
2307
|
-
src:
|
|
2314
|
+
src: wa,
|
|
2308
2315
|
alt: "",
|
|
2309
2316
|
className: ke.badgeIcon,
|
|
2310
2317
|
width: 16,
|
|
@@ -2315,81 +2322,81 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2315
2322
|
t("ctaSecurePayment")
|
|
2316
2323
|
] })
|
|
2317
2324
|
] });
|
|
2318
|
-
},
|
|
2325
|
+
}, Aa = (t) => /.+@.+\..+/.test(t), Ca = (t) => /^\d{10}$/.test(t), ja = (t, o, c) => {
|
|
2319
2326
|
if (!t.fullName.trim()) return "fullName";
|
|
2320
2327
|
if (o) {
|
|
2321
|
-
if (!
|
|
2322
|
-
} else if (!
|
|
2328
|
+
if (!Aa(t.email.trim())) return "email";
|
|
2329
|
+
} else if (!Ca((t.phone ?? "").trim())) return "phone";
|
|
2323
2330
|
if (!t.dateOfBirth) return "dateOfBirth";
|
|
2324
2331
|
if (!t.birthPlace.trim()) return "birthPlace";
|
|
2325
2332
|
if (!Number.isFinite(t.birthPlaceLat) || !Number.isFinite(t.birthPlaceLng))
|
|
2326
2333
|
return "birthPlaceCoordinates";
|
|
2327
|
-
if (
|
|
2334
|
+
if (c) {
|
|
2328
2335
|
if (!t.gender) return "gender";
|
|
2329
2336
|
if (!t.language_code) return "language_code";
|
|
2330
2337
|
}
|
|
2331
2338
|
return !t.birthTimeUnknown && !t.birthTime ? "birthTime" : null;
|
|
2332
|
-
},
|
|
2339
|
+
}, Na = ({
|
|
2333
2340
|
t,
|
|
2334
2341
|
values: o,
|
|
2335
|
-
phoneIsdCode:
|
|
2336
|
-
hideOriginalPrice:
|
|
2337
|
-
requireV1ExtraFields:
|
|
2342
|
+
phoneIsdCode: c,
|
|
2343
|
+
hideOriginalPrice: f = !1,
|
|
2344
|
+
requireV1ExtraFields: b = !1,
|
|
2338
2345
|
onValidationFailed: S,
|
|
2339
2346
|
onProceed: x,
|
|
2340
2347
|
onProceedGuidance: j,
|
|
2341
2348
|
href: A,
|
|
2342
2349
|
analytics: E,
|
|
2343
|
-
className:
|
|
2350
|
+
className: d = "",
|
|
2344
2351
|
discountedPriceLabel: N,
|
|
2345
|
-
showPlanSheet:
|
|
2352
|
+
showPlanSheet: h,
|
|
2346
2353
|
confirmPlan: I,
|
|
2347
|
-
planSheetOpen:
|
|
2354
|
+
planSheetOpen: p,
|
|
2348
2355
|
selectedPlan: B
|
|
2349
2356
|
}) => {
|
|
2350
|
-
const C =
|
|
2351
|
-
() =>
|
|
2352
|
-
[o,
|
|
2353
|
-
),
|
|
2354
|
-
|
|
2355
|
-
if (!
|
|
2356
|
-
const
|
|
2357
|
-
|
|
2357
|
+
const C = Re(), y = C?.config.isGlobal ?? !0, g = C?.config?.variant, [U, J] = K(!1), v = Ue(
|
|
2358
|
+
() => ja(o, y, b),
|
|
2359
|
+
[o, y, b]
|
|
2360
|
+
), D = v === null, z = g === "v1" && C?.config?.showSheet;
|
|
2361
|
+
H(() => {
|
|
2362
|
+
if (!U) return;
|
|
2363
|
+
const Q = window.setTimeout(() => {
|
|
2364
|
+
J(!1);
|
|
2358
2365
|
}, 2200);
|
|
2359
|
-
return () => window.clearTimeout(
|
|
2360
|
-
}, [
|
|
2361
|
-
const
|
|
2362
|
-
if (
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
),
|
|
2366
|
+
return () => window.clearTimeout(Q);
|
|
2367
|
+
}, [U]);
|
|
2368
|
+
const re = y ? N ?? t("formDiscountedPrice") : z ? "" : "₹499", Y = C?.config.imageComponent ?? De, M = (Q) => {
|
|
2369
|
+
if (Q.preventDefault(), g === "v1" && !D && E?.trackKundliDetailedClicked?.(), !D) {
|
|
2370
|
+
v && (S?.(
|
|
2371
|
+
v === "birthPlaceCoordinates" ? "birthPlace" : v
|
|
2372
|
+
), v === "birthPlaceCoordinates" && J(!0));
|
|
2366
2373
|
return;
|
|
2367
2374
|
}
|
|
2368
|
-
const
|
|
2375
|
+
const G = !!j && g === "v1" && B?.id === br, T = (o.phone ?? "").trim(), F = {
|
|
2369
2376
|
...o,
|
|
2370
|
-
phone: T && `${
|
|
2377
|
+
phone: T && `${c}-${T}`
|
|
2371
2378
|
};
|
|
2372
2379
|
if (z) {
|
|
2373
|
-
|
|
2380
|
+
p ? I?.() : h?.(F);
|
|
2374
2381
|
return;
|
|
2375
2382
|
}
|
|
2376
|
-
E?.trackPrimaryCtaClickedL1?.({ avenue: "form" }),
|
|
2377
|
-
},
|
|
2383
|
+
E?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), G ? j(F) : x?.(F);
|
|
2384
|
+
}, se = /* @__PURE__ */ r.jsx(
|
|
2378
2385
|
$r,
|
|
2379
2386
|
{
|
|
2380
2387
|
href: A,
|
|
2381
|
-
disabled: g === "v1" ? !1 : !
|
|
2382
|
-
onClick:
|
|
2388
|
+
disabled: g === "v1" ? !1 : !D,
|
|
2389
|
+
onClick: M,
|
|
2383
2390
|
"aria-label": t("formPriceAria"),
|
|
2384
|
-
className: g === "v1" &&
|
|
2385
|
-
children: g === "v1" ?
|
|
2386
|
-
z ? t("selectPackage") :
|
|
2391
|
+
className: g === "v1" && D ? Ne.ctaFilled : g === "v1" ? Ne.ctaButton : void 0,
|
|
2392
|
+
children: g === "v1" ? D ? /* @__PURE__ */ r.jsxs("span", { className: Ne.ctaFilledContent, children: [
|
|
2393
|
+
z ? t("selectPackage") : p && B ? `${t("proceedWithPlan")}${B.price}` : `${t("formProceed")} ${re}`,
|
|
2387
2394
|
/* @__PURE__ */ r.jsx(
|
|
2388
|
-
|
|
2395
|
+
Y,
|
|
2389
2396
|
{
|
|
2390
|
-
src:
|
|
2397
|
+
src: xa,
|
|
2391
2398
|
alt: "",
|
|
2392
|
-
className:
|
|
2399
|
+
className: Ne.chevronRight,
|
|
2393
2400
|
width: 20,
|
|
2394
2401
|
height: 20,
|
|
2395
2402
|
loading: "lazy"
|
|
@@ -2398,40 +2405,40 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2398
2405
|
] }) : t("formCtaDefault") : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2399
2406
|
t("formProceed"),
|
|
2400
2407
|
" ",
|
|
2401
|
-
|
|
2408
|
+
re
|
|
2402
2409
|
] })
|
|
2403
2410
|
}
|
|
2404
2411
|
);
|
|
2405
2412
|
return /* @__PURE__ */ r.jsxs(
|
|
2406
2413
|
Ur,
|
|
2407
2414
|
{
|
|
2408
|
-
className: `${
|
|
2409
|
-
marquee: /* @__PURE__ */ r.jsx(Gr, { children: /* @__PURE__ */ r.jsx(
|
|
2415
|
+
className: `${Ne.footerContainer} ${d}`,
|
|
2416
|
+
marquee: /* @__PURE__ */ r.jsx(Gr, { children: /* @__PURE__ */ r.jsx(Pa, { t }) }),
|
|
2410
2417
|
children: [
|
|
2411
|
-
|
|
2412
|
-
|
|
2418
|
+
U && /* @__PURE__ */ r.jsx("div", { className: Ne.validationToast, role: "alert", "aria-live": "assertive", children: t("formFillAllFields") }),
|
|
2419
|
+
se
|
|
2413
2420
|
]
|
|
2414
2421
|
}
|
|
2415
2422
|
);
|
|
2416
|
-
},
|
|
2423
|
+
}, Ta = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", Ra = ({
|
|
2417
2424
|
t,
|
|
2418
2425
|
languageSelector: o,
|
|
2419
|
-
logoUrl:
|
|
2420
|
-
className:
|
|
2426
|
+
logoUrl: c = Ta,
|
|
2427
|
+
className: f = ""
|
|
2421
2428
|
}) => {
|
|
2422
|
-
const
|
|
2429
|
+
const b = Re(), S = b?.config.isGlobal ?? !0, x = o != null && !S;
|
|
2423
2430
|
return /* @__PURE__ */ r.jsx(
|
|
2424
2431
|
Wr,
|
|
2425
2432
|
{
|
|
2426
2433
|
t,
|
|
2427
|
-
logoUrl:
|
|
2428
|
-
imageComponent:
|
|
2434
|
+
logoUrl: c,
|
|
2435
|
+
imageComponent: b?.config.imageComponent,
|
|
2429
2436
|
languageSelector: o,
|
|
2430
2437
|
showLanguageSelector: x,
|
|
2431
|
-
className:
|
|
2438
|
+
className: f
|
|
2432
2439
|
}
|
|
2433
2440
|
);
|
|
2434
|
-
},
|
|
2441
|
+
}, Sa = () => /* @__PURE__ */ r.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx(
|
|
2435
2442
|
"path",
|
|
2436
2443
|
{
|
|
2437
2444
|
d: "M3.5 8.5l2.5 2.5 6-6",
|
|
@@ -2440,7 +2447,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2440
2447
|
strokeLinecap: "round",
|
|
2441
2448
|
strokeLinejoin: "round"
|
|
2442
2449
|
}
|
|
2443
|
-
) }),
|
|
2450
|
+
) }), Ea = () => /* @__PURE__ */ r.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx(
|
|
2444
2451
|
"path",
|
|
2445
2452
|
{
|
|
2446
2453
|
d: "M4.5 4.5l7 7M11.5 4.5l-7 7",
|
|
@@ -2448,137 +2455,137 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2448
2455
|
strokeWidth: "1.8",
|
|
2449
2456
|
strokeLinecap: "round"
|
|
2450
2457
|
}
|
|
2451
|
-
) }),
|
|
2458
|
+
) }), Ia = () => /* @__PURE__ */ r.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__ */ r.jsx("path", { d: "M15 18l-6-6 6-6" }) }), Ba = () => /* @__PURE__ */ r.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: [
|
|
2452
2459
|
/* @__PURE__ */ r.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
2453
2460
|
/* @__PURE__ */ r.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
2454
|
-
] }),
|
|
2455
|
-
overlay:
|
|
2456
|
-
sheet:
|
|
2457
|
-
header:
|
|
2458
|
-
backBtn:
|
|
2459
|
-
title:
|
|
2460
|
-
plansContainer:
|
|
2461
|
-
planCard:
|
|
2462
|
-
withBadgeSpacing:
|
|
2463
|
-
planCardSelected:
|
|
2464
|
-
planCardPopular:
|
|
2465
|
-
popularBadge:
|
|
2466
|
-
planCardInner:
|
|
2467
|
-
planTitleRow:
|
|
2468
|
-
planTitle:
|
|
2469
|
-
radioCircle:
|
|
2470
|
-
radioChecked:
|
|
2471
|
-
radioInner:
|
|
2472
|
-
priceRow:
|
|
2473
|
-
price:
|
|
2474
|
-
originalPrice:
|
|
2475
|
-
savingsBadge:
|
|
2476
|
-
featureList:
|
|
2477
|
-
featureItem:
|
|
2478
|
-
featureIcon:
|
|
2479
|
-
featureText:
|
|
2480
|
-
astrologerHeading:
|
|
2481
|
-
astrologerList:
|
|
2482
|
-
astrologerCard:
|
|
2483
|
-
astrologerAvatar:
|
|
2484
|
-
astrologerAvatarPlaceholder:
|
|
2485
|
-
astrologerTop:
|
|
2461
|
+
] }), La = "_overlay_18irl_2", Da = "_sheet_18irl_12", Fa = "_header_18irl_36", Oa = "_backBtn_18irl_48", Ma = "_title_18irl_66", $a = "_plansContainer_18irl_78", Ua = "_planCard_18irl_87", Ga = "_withBadgeSpacing_18irl_101", Wa = "_planCardSelected_18irl_105", Ka = "_planCardPopular_18irl_110", Ha = "_popularBadge_18irl_119", Ya = "_planCardInner_18irl_137", qa = "_planTitleRow_18irl_148", Va = "_planTitle_18irl_148", za = "_radioCircle_18irl_163", Ja = "_radioChecked_18irl_176", Qa = "_radioInner_18irl_181", Xa = "_priceRow_18irl_189", Za = "_price_18irl_189", en = "_originalPrice_18irl_202", rn = "_savingsBadge_18irl_209", tn = "_featureList_18irl_219", an = "_featureItem_18irl_228", nn = "_featureIcon_18irl_234", on = "_featureText_18irl_240", ln = "_astrologerHeading_18irl_251", sn = "_astrologerList_18irl_258", cn = "_astrologerCard_18irl_274", dn = "_astrologerAvatar_18irl_290", un = "_astrologerAvatarPlaceholder_18irl_307", fn = "_astrologerTop_18irl_313", mn = "_astrologerBasicInfo_18irl_319", hn = "_astrologerName_18irl_326", pn = "_astrologerExp_18irl_335", gn = "_astrologerDivider_18irl_341", _n = "_planDivider_18irl_347", bn = "_astrologerCertList_18irl_354", yn = "_astrologerCertItem_18irl_360", vn = "_bullet_18irl_368", kn = "_footer_18irl_373", wn = "_proceedBtn_18irl_383", m = {
|
|
2462
|
+
overlay: La,
|
|
2463
|
+
sheet: Da,
|
|
2464
|
+
header: Fa,
|
|
2465
|
+
backBtn: Oa,
|
|
2466
|
+
title: Ma,
|
|
2467
|
+
plansContainer: $a,
|
|
2468
|
+
planCard: Ua,
|
|
2469
|
+
withBadgeSpacing: Ga,
|
|
2470
|
+
planCardSelected: Wa,
|
|
2471
|
+
planCardPopular: Ka,
|
|
2472
|
+
popularBadge: Ha,
|
|
2473
|
+
planCardInner: Ya,
|
|
2474
|
+
planTitleRow: qa,
|
|
2475
|
+
planTitle: Va,
|
|
2476
|
+
radioCircle: za,
|
|
2477
|
+
radioChecked: Ja,
|
|
2478
|
+
radioInner: Qa,
|
|
2479
|
+
priceRow: Xa,
|
|
2480
|
+
price: Za,
|
|
2481
|
+
originalPrice: en,
|
|
2482
|
+
savingsBadge: rn,
|
|
2483
|
+
featureList: tn,
|
|
2484
|
+
featureItem: an,
|
|
2485
|
+
featureIcon: nn,
|
|
2486
|
+
featureText: on,
|
|
2487
|
+
astrologerHeading: ln,
|
|
2488
|
+
astrologerList: sn,
|
|
2489
|
+
astrologerCard: cn,
|
|
2490
|
+
astrologerAvatar: dn,
|
|
2491
|
+
astrologerAvatarPlaceholder: un,
|
|
2492
|
+
astrologerTop: fn,
|
|
2486
2493
|
astrologerBasicInfo: mn,
|
|
2487
|
-
astrologerName:
|
|
2494
|
+
astrologerName: hn,
|
|
2488
2495
|
astrologerExp: pn,
|
|
2489
|
-
astrologerDivider:
|
|
2490
|
-
planDivider:
|
|
2491
|
-
astrologerCertList:
|
|
2492
|
-
astrologerCertItem:
|
|
2493
|
-
bullet:
|
|
2494
|
-
footer:
|
|
2495
|
-
proceedBtn:
|
|
2496
|
-
},
|
|
2496
|
+
astrologerDivider: gn,
|
|
2497
|
+
planDivider: _n,
|
|
2498
|
+
astrologerCertList: bn,
|
|
2499
|
+
astrologerCertItem: yn,
|
|
2500
|
+
bullet: vn,
|
|
2501
|
+
footer: kn,
|
|
2502
|
+
proceedBtn: wn
|
|
2503
|
+
}, xn = ({ title: t, onBack: o }) => /* @__PURE__ */ r.jsxs("div", { className: m.header, children: [
|
|
2497
2504
|
/* @__PURE__ */ r.jsx(
|
|
2498
2505
|
"button",
|
|
2499
2506
|
{
|
|
2500
|
-
className:
|
|
2507
|
+
className: m.backBtn,
|
|
2501
2508
|
onClick: o,
|
|
2502
2509
|
"aria-label": "Go back",
|
|
2503
2510
|
type: "button",
|
|
2504
|
-
children: /* @__PURE__ */ r.jsx(
|
|
2511
|
+
children: /* @__PURE__ */ r.jsx(Ia, {})
|
|
2505
2512
|
}
|
|
2506
2513
|
),
|
|
2507
|
-
/* @__PURE__ */ r.jsx("h2", { className:
|
|
2508
|
-
] }),
|
|
2509
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2514
|
+
/* @__PURE__ */ r.jsx("h2", { className: m.title, children: t })
|
|
2515
|
+
] }), Pn = ({ features: t, t: o }) => /* @__PURE__ */ r.jsx("ul", { className: m.featureList, "aria-label": "Plan features", children: t.map((c, f) => /* @__PURE__ */ r.jsxs("li", { className: m.featureItem, children: [
|
|
2516
|
+
/* @__PURE__ */ r.jsx("span", { className: m.featureIcon, children: c.included ? /* @__PURE__ */ r.jsx(Sa, {}) : /* @__PURE__ */ r.jsx(Ea, {}) }),
|
|
2510
2517
|
/* @__PURE__ */ r.jsx(
|
|
2511
2518
|
"span",
|
|
2512
2519
|
{
|
|
2513
|
-
className: `${
|
|
2514
|
-
children: o?.(
|
|
2520
|
+
className: `${m.featureText} `,
|
|
2521
|
+
children: o?.(c.text) ?? c.text
|
|
2515
2522
|
}
|
|
2516
2523
|
)
|
|
2517
|
-
] },
|
|
2518
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
2519
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2520
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
2521
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
2522
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
2524
|
+
] }, f)) }), An = ({ astrologer: t, t: o }) => /* @__PURE__ */ r.jsxs("div", { className: m.astrologerCard, children: [
|
|
2525
|
+
/* @__PURE__ */ r.jsxs("div", { className: m.astrologerTop, children: [
|
|
2526
|
+
/* @__PURE__ */ r.jsx("div", { className: m.astrologerAvatar, "aria-hidden": !0, children: t.imageUrl ? /* @__PURE__ */ r.jsx("img", { src: t.imageUrl, alt: o?.(t.name) ?? t.name, width: 40, height: 40 }) : /* @__PURE__ */ r.jsx("span", { className: m.astrologerAvatarPlaceholder, children: t.name.charAt(0) }) }),
|
|
2527
|
+
/* @__PURE__ */ r.jsxs("div", { className: m.astrologerBasicInfo, children: [
|
|
2528
|
+
/* @__PURE__ */ r.jsx("p", { className: m.astrologerName, children: o?.(t.name) ?? t.name }),
|
|
2529
|
+
/* @__PURE__ */ r.jsx("p", { className: m.astrologerExp, children: o?.(t.experience) ?? t.experience })
|
|
2523
2530
|
] })
|
|
2524
2531
|
] }),
|
|
2525
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2526
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2527
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2532
|
+
/* @__PURE__ */ r.jsx("div", { className: m.astrologerDivider }),
|
|
2533
|
+
/* @__PURE__ */ r.jsx("div", { className: m.astrologerCertList, children: t.certifications.map((c, f) => /* @__PURE__ */ r.jsxs("p", { className: m.astrologerCertItem, children: [
|
|
2534
|
+
/* @__PURE__ */ r.jsx("span", { className: m.bullet, children: "•" }),
|
|
2528
2535
|
" ",
|
|
2529
|
-
o?.(
|
|
2530
|
-
] },
|
|
2531
|
-
] }),
|
|
2532
|
-
/* @__PURE__ */ r.jsx(
|
|
2536
|
+
o?.(c) ?? c
|
|
2537
|
+
] }, f)) })
|
|
2538
|
+
] }), Cn = ({ label: t }) => /* @__PURE__ */ r.jsxs("div", { className: m.popularBadge, "aria-label": t, children: [
|
|
2539
|
+
/* @__PURE__ */ r.jsx(Ba, {}),
|
|
2533
2540
|
/* @__PURE__ */ r.jsx("span", { children: t })
|
|
2534
|
-
] }),
|
|
2535
|
-
const
|
|
2536
|
-
(x.key === " " || x.key === "Enter") && (x.preventDefault(),
|
|
2541
|
+
] }), jn = ({ plan: t, isSelected: o, onSelect: c, t: f }) => {
|
|
2542
|
+
const b = () => c(t.id), S = (x) => {
|
|
2543
|
+
(x.key === " " || x.key === "Enter") && (x.preventDefault(), c(t.id));
|
|
2537
2544
|
};
|
|
2538
2545
|
return /* @__PURE__ */ r.jsxs(
|
|
2539
2546
|
"div",
|
|
2540
2547
|
{
|
|
2541
2548
|
className: [
|
|
2542
|
-
|
|
2543
|
-
o ?
|
|
2544
|
-
o &&
|
|
2549
|
+
m.planCard,
|
|
2550
|
+
o ? m.planCardSelected : "",
|
|
2551
|
+
o && m.planCardPopular
|
|
2545
2552
|
].filter(Boolean).join(" "),
|
|
2546
|
-
onClick:
|
|
2553
|
+
onClick: b,
|
|
2547
2554
|
role: "radio",
|
|
2548
2555
|
"aria-checked": o,
|
|
2549
2556
|
tabIndex: 0,
|
|
2550
2557
|
onKeyDown: S,
|
|
2551
2558
|
"data-plan-id": t.id,
|
|
2552
2559
|
children: [
|
|
2553
|
-
t.badge && /* @__PURE__ */ r.jsx(
|
|
2554
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
2555
|
-
/* @__PURE__ */ r.jsxs("div", { className: `${
|
|
2556
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2560
|
+
t.badge && /* @__PURE__ */ r.jsx(Cn, { label: f?.(t.badge) ?? t.badge }),
|
|
2561
|
+
/* @__PURE__ */ r.jsxs("div", { className: m.planCardInner, children: [
|
|
2562
|
+
/* @__PURE__ */ r.jsxs("div", { className: `${m.planTitleRow} ${t.badge ? m.withBadgeSpacing : ""}`, children: [
|
|
2563
|
+
/* @__PURE__ */ r.jsx("span", { className: m.planTitle, children: f?.(t.title) ?? t.title }),
|
|
2557
2564
|
/* @__PURE__ */ r.jsx(
|
|
2558
2565
|
"span",
|
|
2559
2566
|
{
|
|
2560
|
-
className: `${
|
|
2567
|
+
className: `${m.radioCircle} ${o ? m.radioChecked : ""}`,
|
|
2561
2568
|
"aria-hidden": !0,
|
|
2562
|
-
children: o && /* @__PURE__ */ r.jsx("span", { className:
|
|
2569
|
+
children: o && /* @__PURE__ */ r.jsx("span", { className: m.radioInner })
|
|
2563
2570
|
}
|
|
2564
2571
|
)
|
|
2565
2572
|
] }),
|
|
2566
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
2567
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2568
|
-
t.originalPrice && /* @__PURE__ */ r.jsx("span", { className:
|
|
2569
|
-
t.savingsLabel && /* @__PURE__ */ r.jsx("span", { className:
|
|
2573
|
+
/* @__PURE__ */ r.jsxs("div", { className: m.priceRow, children: [
|
|
2574
|
+
/* @__PURE__ */ r.jsx("span", { className: m.price, children: t.price }),
|
|
2575
|
+
t.originalPrice && /* @__PURE__ */ r.jsx("span", { className: m.originalPrice, children: t.originalPrice }),
|
|
2576
|
+
t.savingsLabel && /* @__PURE__ */ r.jsx("span", { className: m.savingsBadge, children: f?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
|
|
2570
2577
|
] }),
|
|
2571
|
-
/* @__PURE__ */ r.jsx(
|
|
2572
|
-
t.astrologers && /* @__PURE__ */ r.jsx("div", { className:
|
|
2578
|
+
/* @__PURE__ */ r.jsx(Pn, { features: t.features, t: f }),
|
|
2579
|
+
t.astrologers && /* @__PURE__ */ r.jsx("div", { className: m.planDivider }),
|
|
2573
2580
|
t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2574
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
2575
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2581
|
+
/* @__PURE__ */ r.jsx("p", { className: m.astrologerHeading, children: f?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
|
|
2582
|
+
/* @__PURE__ */ r.jsx("div", { className: m.astrologerList, role: "list", children: t.astrologers.map((x, j) => /* @__PURE__ */ r.jsx("div", { role: "listitem", children: /* @__PURE__ */ r.jsx(An, { astrologer: x, t: f }) }, j)) })
|
|
2576
2583
|
] })
|
|
2577
2584
|
] })
|
|
2578
2585
|
]
|
|
2579
2586
|
}
|
|
2580
2587
|
);
|
|
2581
|
-
},
|
|
2588
|
+
}, Nn = [
|
|
2582
2589
|
{
|
|
2583
2590
|
id: "jyoti",
|
|
2584
2591
|
name: "planAstrologerNameJyoti",
|
|
@@ -2606,7 +2613,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2606
2613
|
experience: "planAstrologerExpNeeraj",
|
|
2607
2614
|
certifications: ["planAstrologerCertBhuCertified", "planAstrologerCertMantraRudraksha"]
|
|
2608
2615
|
}
|
|
2609
|
-
],
|
|
2616
|
+
], Tn = (t) => [
|
|
2610
2617
|
{
|
|
2611
2618
|
id: "kundli-report",
|
|
2612
2619
|
title: "planNameBasic",
|
|
@@ -2632,35 +2639,35 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2632
2639
|
{ text: "planFeatureRealTimeAnswers", included: !0 },
|
|
2633
2640
|
{ text: "planFeatureTailoredRemedies", included: !0 }
|
|
2634
2641
|
],
|
|
2635
|
-
astrologers:
|
|
2642
|
+
astrologers: Nn.filter(
|
|
2636
2643
|
(o) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(o.id)
|
|
2637
2644
|
)
|
|
2638
2645
|
}
|
|
2639
|
-
],
|
|
2646
|
+
], Rn = ({
|
|
2640
2647
|
isOpen: t,
|
|
2641
2648
|
onClose: o,
|
|
2642
|
-
selectedPlan:
|
|
2643
|
-
onSelectPlan:
|
|
2644
|
-
plans:
|
|
2649
|
+
selectedPlan: c,
|
|
2650
|
+
onSelectPlan: f,
|
|
2651
|
+
plans: b,
|
|
2645
2652
|
onProceed: S,
|
|
2646
2653
|
t: x,
|
|
2647
2654
|
analytics: j
|
|
2648
2655
|
}) => {
|
|
2649
|
-
const E =
|
|
2650
|
-
|
|
2656
|
+
const E = Re()?.config.isGlobal ?? !0, d = b ?? Tn(E), N = c?.id || d.find((C) => C.badge)?.id || d[0]?.id || "", h = W(null), I = W(null), p = W(!1);
|
|
2657
|
+
H(() => {
|
|
2651
2658
|
if (t) {
|
|
2652
|
-
if (!
|
|
2653
|
-
const C =
|
|
2654
|
-
C &&
|
|
2659
|
+
if (!c) {
|
|
2660
|
+
const C = d.find((y) => y.badge) ?? d[0];
|
|
2661
|
+
C && f(C);
|
|
2655
2662
|
}
|
|
2656
|
-
|
|
2663
|
+
p.current || (j?.trackPlanPageViewed?.(), p.current = !0);
|
|
2657
2664
|
} else
|
|
2658
|
-
|
|
2659
|
-
}, [t,
|
|
2665
|
+
p.current = !1;
|
|
2666
|
+
}, [t, d, c, f, j]);
|
|
2660
2667
|
const B = () => {
|
|
2661
2668
|
j?.trackPlanPageClosed?.(), o();
|
|
2662
2669
|
};
|
|
2663
|
-
return
|
|
2670
|
+
return H(() => {
|
|
2664
2671
|
if (!t) return;
|
|
2665
2672
|
const C = document.body.style.overflow;
|
|
2666
2673
|
return document.body.style.overflow = "hidden", () => {
|
|
@@ -2669,18 +2676,18 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2669
2676
|
}, [t]), t ? /* @__PURE__ */ r.jsx(
|
|
2670
2677
|
"div",
|
|
2671
2678
|
{
|
|
2672
|
-
className:
|
|
2679
|
+
className: m.overlay,
|
|
2673
2680
|
role: "dialog",
|
|
2674
2681
|
"aria-modal": "true",
|
|
2675
2682
|
"aria-label": x?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
2676
2683
|
children: /* @__PURE__ */ r.jsxs(
|
|
2677
2684
|
"div",
|
|
2678
2685
|
{
|
|
2679
|
-
ref:
|
|
2680
|
-
className:
|
|
2686
|
+
ref: h,
|
|
2687
|
+
className: m.sheet,
|
|
2681
2688
|
children: [
|
|
2682
2689
|
/* @__PURE__ */ r.jsx(
|
|
2683
|
-
|
|
2690
|
+
xn,
|
|
2684
2691
|
{
|
|
2685
2692
|
title: x?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
2686
2693
|
onBack: B
|
|
@@ -2690,39 +2697,39 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2690
2697
|
"div",
|
|
2691
2698
|
{
|
|
2692
2699
|
ref: I,
|
|
2693
|
-
className:
|
|
2700
|
+
className: m.plansContainer,
|
|
2694
2701
|
role: "radiogroup",
|
|
2695
2702
|
"aria-label": "Kundli plans",
|
|
2696
|
-
children:
|
|
2697
|
-
|
|
2703
|
+
children: d.map((C) => /* @__PURE__ */ r.jsx(
|
|
2704
|
+
jn,
|
|
2698
2705
|
{
|
|
2699
2706
|
plan: C,
|
|
2700
2707
|
isSelected: C.id === N,
|
|
2701
2708
|
t: x,
|
|
2702
|
-
onSelect: (
|
|
2703
|
-
const g =
|
|
2709
|
+
onSelect: (y) => {
|
|
2710
|
+
const g = d.find((U) => U.id === y);
|
|
2704
2711
|
g && (j?.trackPlanSelected?.({
|
|
2705
2712
|
planId: g.id,
|
|
2706
2713
|
planName: g.title
|
|
2707
|
-
}),
|
|
2714
|
+
}), f(g));
|
|
2708
2715
|
}
|
|
2709
2716
|
},
|
|
2710
2717
|
C.id
|
|
2711
2718
|
))
|
|
2712
2719
|
}
|
|
2713
2720
|
),
|
|
2714
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2721
|
+
/* @__PURE__ */ r.jsx("div", { className: m.footer, children: /* @__PURE__ */ r.jsx(
|
|
2715
2722
|
"button",
|
|
2716
2723
|
{
|
|
2717
|
-
className:
|
|
2718
|
-
disabled: !
|
|
2724
|
+
className: m.proceedBtn,
|
|
2725
|
+
disabled: !c,
|
|
2719
2726
|
onClick: () => {
|
|
2720
|
-
|
|
2721
|
-
planId:
|
|
2722
|
-
planName:
|
|
2723
|
-
}), S(
|
|
2727
|
+
c && (j?.trackPlanProceedClicked?.({
|
|
2728
|
+
planId: c.id,
|
|
2729
|
+
planName: c.title
|
|
2730
|
+
}), S(c), o());
|
|
2724
2731
|
},
|
|
2725
|
-
children:
|
|
2732
|
+
children: c ? x?.("planProceedToPayment") ?? c.price + "Proceed to Payment" : "Select a plan"
|
|
2726
2733
|
}
|
|
2727
2734
|
) })
|
|
2728
2735
|
]
|
|
@@ -2730,7 +2737,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2730
2737
|
)
|
|
2731
2738
|
}
|
|
2732
2739
|
) : null;
|
|
2733
|
-
},
|
|
2740
|
+
}, Sn = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", En = (t, o) => fr[t]?.[o] ?? o, In = {
|
|
2734
2741
|
fullName: "",
|
|
2735
2742
|
phone: "",
|
|
2736
2743
|
gender: "",
|
|
@@ -2742,173 +2749,173 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2742
2749
|
birthPlace: "",
|
|
2743
2750
|
birthPlaceLat: void 0,
|
|
2744
2751
|
birthPlaceLng: void 0
|
|
2745
|
-
},
|
|
2752
|
+
}, Un = ({
|
|
2746
2753
|
className: t = "",
|
|
2747
2754
|
locale: o,
|
|
2748
|
-
showLanguageSelector:
|
|
2749
|
-
onBack:
|
|
2750
|
-
initialValues:
|
|
2755
|
+
showLanguageSelector: c = !0,
|
|
2756
|
+
onBack: f,
|
|
2757
|
+
initialValues: b,
|
|
2751
2758
|
onProceed: S,
|
|
2752
2759
|
onProceedGuidance: x,
|
|
2753
2760
|
proceedHref: j,
|
|
2754
2761
|
originalPriceLabel: A,
|
|
2755
2762
|
discountedPriceLabel: E,
|
|
2756
|
-
atlasSearchLocalities:
|
|
2763
|
+
atlasSearchLocalities: d,
|
|
2757
2764
|
analytics: N
|
|
2758
2765
|
}) => {
|
|
2759
|
-
const
|
|
2766
|
+
const h = Re(), I = qr(), p = h !== null, B = p ? h.locale : o, C = B ?? I?.locale ?? "en", [y, g] = K(C), U = p ? h.locale : y, J = p ? h.setLocale : g, [v, D] = K(!1), z = W(null), re = W(B), Y = W(
|
|
2760
2767
|
I?.locale
|
|
2761
2768
|
);
|
|
2762
|
-
|
|
2769
|
+
H(() => {
|
|
2763
2770
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
2764
2771
|
}, []);
|
|
2765
|
-
const
|
|
2766
|
-
|
|
2767
|
-
B &&
|
|
2768
|
-
}, [B,
|
|
2772
|
+
const M = (k) => En(U, k);
|
|
2773
|
+
H(() => {
|
|
2774
|
+
B && re.current !== B && J(B), re.current = B;
|
|
2775
|
+
}, [B, J]), H(() => {
|
|
2769
2776
|
if (B) return;
|
|
2770
|
-
const
|
|
2771
|
-
|
|
2772
|
-
}, [I?.locale, B,
|
|
2773
|
-
const [
|
|
2774
|
-
...
|
|
2775
|
-
...
|
|
2776
|
-
phone:
|
|
2777
|
-
}),
|
|
2778
|
-
|
|
2777
|
+
const k = I?.locale;
|
|
2778
|
+
k && Y.current !== k && J(k), Y.current = k;
|
|
2779
|
+
}, [I?.locale, B, J]);
|
|
2780
|
+
const [se, Q] = K({
|
|
2781
|
+
...In,
|
|
2782
|
+
...b,
|
|
2783
|
+
phone: b?.phone ?? ""
|
|
2784
|
+
}), G = p ? h?.config.isGlobal ?? !0 : !0, [T, F] = K(
|
|
2785
|
+
G ? "+1" : "+91"
|
|
2779
2786
|
);
|
|
2780
|
-
|
|
2781
|
-
F(
|
|
2782
|
-
}, [
|
|
2783
|
-
const
|
|
2784
|
-
|
|
2785
|
-
if (!
|
|
2786
|
-
const
|
|
2787
|
-
z.current && !z.current.contains(
|
|
2787
|
+
H(() => {
|
|
2788
|
+
F(G ? "+1" : "+91");
|
|
2789
|
+
}, [G]);
|
|
2790
|
+
const X = p ? h.formValues : se, te = p ? h.setFormValues : Q, ge = p ? h.goToPage : f, q = p ? h.onProceed : S, oe = p ? h.onProceedGuidance : x, ce = p ? h.config.proceedHref : j, ae = p ? h.config.originalPriceLabel : A, ie = p ? h.config.discountedPriceLabel : E, me = p ? h.config.showLanguageSelector ?? !0 : c, ne = (p ? h?.config?.analytics : N) ?? N;
|
|
2791
|
+
H(() => {
|
|
2792
|
+
if (!v) return;
|
|
2793
|
+
const k = (he) => {
|
|
2794
|
+
z.current && !z.current.contains(he.target) && D(!1);
|
|
2788
2795
|
};
|
|
2789
|
-
return document.addEventListener("mousedown",
|
|
2790
|
-
}, [
|
|
2791
|
-
const [
|
|
2792
|
-
|
|
2793
|
-
}, []),
|
|
2794
|
-
if (
|
|
2795
|
-
planId:
|
|
2796
|
-
planName:
|
|
2797
|
-
}), !
|
|
2798
|
-
const
|
|
2799
|
-
|
|
2800
|
-
}, [
|
|
2796
|
+
return document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
|
|
2797
|
+
}, [v]);
|
|
2798
|
+
const [de, _e] = K(!1), [V, ye] = K(null), ue = W(null), we = Te((k) => {
|
|
2799
|
+
ue.current = k, _e(!0);
|
|
2800
|
+
}, []), be = Te(() => {
|
|
2801
|
+
if (ne?.trackPlanProceedClicked?.({
|
|
2802
|
+
planId: V.id,
|
|
2803
|
+
planName: V.title
|
|
2804
|
+
}), !ue.current || !V) return;
|
|
2805
|
+
const k = { ...ue.current, _selectedPlan: V };
|
|
2806
|
+
V.id === br && oe ? oe(k) : q?.(k), _e(!1), ue.current = null;
|
|
2807
|
+
}, [V, q, oe]), xe = h?.config.imageComponent ?? De, Pe = me ? /* @__PURE__ */ r.jsxs("div", { className: pe.langDropdownWrap, ref: z, children: [
|
|
2801
2808
|
/* @__PURE__ */ r.jsxs(
|
|
2802
2809
|
"button",
|
|
2803
2810
|
{
|
|
2804
2811
|
type: "button",
|
|
2805
|
-
className:
|
|
2812
|
+
className: pe.langTrigger,
|
|
2806
2813
|
onClick: () => {
|
|
2807
|
-
|
|
2814
|
+
ne?.trackLanguageClickedFe?.({ language: U }), D((k) => !k);
|
|
2808
2815
|
},
|
|
2809
|
-
"aria-expanded":
|
|
2816
|
+
"aria-expanded": v,
|
|
2810
2817
|
"aria-haspopup": "listbox",
|
|
2811
2818
|
id: "kundli-form-lang",
|
|
2812
|
-
"aria-label":
|
|
2819
|
+
"aria-label": M("language"),
|
|
2813
2820
|
children: [
|
|
2814
2821
|
/* @__PURE__ */ r.jsx(
|
|
2815
2822
|
xe,
|
|
2816
2823
|
{
|
|
2817
|
-
src:
|
|
2824
|
+
src: Sn,
|
|
2818
2825
|
alt: "",
|
|
2819
|
-
className:
|
|
2826
|
+
className: pe.langIcon,
|
|
2820
2827
|
width: 16,
|
|
2821
2828
|
height: 16,
|
|
2822
2829
|
loading: "eager"
|
|
2823
2830
|
}
|
|
2824
2831
|
),
|
|
2825
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2832
|
+
/* @__PURE__ */ r.jsx("span", { className: pe.langLabel, children: ir[U] })
|
|
2826
2833
|
]
|
|
2827
2834
|
}
|
|
2828
2835
|
),
|
|
2829
|
-
|
|
2836
|
+
v && /* @__PURE__ */ r.jsx(
|
|
2830
2837
|
"ul",
|
|
2831
2838
|
{
|
|
2832
|
-
className:
|
|
2839
|
+
className: pe.langMenu,
|
|
2833
2840
|
role: "listbox",
|
|
2834
2841
|
"aria-labelledby": "kundli-form-lang",
|
|
2835
|
-
"aria-activedescendant": `kundli-form-lang-option-${
|
|
2836
|
-
children:
|
|
2842
|
+
"aria-activedescendant": `kundli-form-lang-option-${U}`,
|
|
2843
|
+
children: ur.map((k) => /* @__PURE__ */ r.jsx(
|
|
2837
2844
|
"li",
|
|
2838
2845
|
{
|
|
2839
|
-
id: `kundli-form-lang-option-${
|
|
2846
|
+
id: `kundli-form-lang-option-${k}`,
|
|
2840
2847
|
role: "option",
|
|
2841
|
-
"aria-selected":
|
|
2842
|
-
className:
|
|
2848
|
+
"aria-selected": k === U,
|
|
2849
|
+
className: pe.langOption,
|
|
2843
2850
|
onClick: () => {
|
|
2844
|
-
|
|
2851
|
+
ne?.trackLanguageChangedFe?.({ newLanguage: k }), J(k), D(!1);
|
|
2845
2852
|
},
|
|
2846
|
-
children:
|
|
2853
|
+
children: ir[k]
|
|
2847
2854
|
},
|
|
2848
|
-
|
|
2855
|
+
k
|
|
2849
2856
|
))
|
|
2850
2857
|
}
|
|
2851
2858
|
)
|
|
2852
2859
|
] }) : null;
|
|
2853
|
-
return /* @__PURE__ */ r.jsxs("div", { className: `${
|
|
2860
|
+
return /* @__PURE__ */ r.jsxs("div", { className: `${pe.container} ${t}`, children: [
|
|
2854
2861
|
/* @__PURE__ */ r.jsx(
|
|
2855
|
-
|
|
2862
|
+
Ra,
|
|
2856
2863
|
{
|
|
2857
|
-
t:
|
|
2858
|
-
logoUrl:
|
|
2859
|
-
languageSelector:
|
|
2860
|
-
className:
|
|
2864
|
+
t: M,
|
|
2865
|
+
logoUrl: p ? h.config.logoUrl : void 0,
|
|
2866
|
+
languageSelector: Pe,
|
|
2867
|
+
className: pe.kundliHeaderNoBorder
|
|
2861
2868
|
}
|
|
2862
2869
|
),
|
|
2863
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2864
|
-
/* @__PURE__ */ r.jsxs("main", { className:
|
|
2865
|
-
/* @__PURE__ */ r.jsx(ut, { t:
|
|
2870
|
+
/* @__PURE__ */ r.jsx("div", { className: pe.headerSeparator, "aria-hidden": !0 }),
|
|
2871
|
+
/* @__PURE__ */ r.jsxs("main", { className: pe.main, children: [
|
|
2872
|
+
/* @__PURE__ */ r.jsx(ut, { t: M, onBack: ge }),
|
|
2866
2873
|
/* @__PURE__ */ r.jsx(
|
|
2867
2874
|
pa,
|
|
2868
2875
|
{
|
|
2869
|
-
t:
|
|
2870
|
-
values:
|
|
2871
|
-
onChange:
|
|
2872
|
-
atlasSearchLocalities:
|
|
2876
|
+
t: M,
|
|
2877
|
+
values: X,
|
|
2878
|
+
onChange: te,
|
|
2879
|
+
atlasSearchLocalities: d,
|
|
2873
2880
|
phoneIsdCode: T,
|
|
2874
2881
|
onPhoneIsdCodeChange: F
|
|
2875
2882
|
}
|
|
2876
2883
|
)
|
|
2877
2884
|
] }),
|
|
2878
2885
|
/* @__PURE__ */ r.jsx(
|
|
2879
|
-
|
|
2886
|
+
Na,
|
|
2880
2887
|
{
|
|
2881
|
-
t:
|
|
2882
|
-
values:
|
|
2888
|
+
t: M,
|
|
2889
|
+
values: X,
|
|
2883
2890
|
phoneIsdCode: T,
|
|
2884
|
-
onProceed:
|
|
2885
|
-
onProceedGuidance:
|
|
2886
|
-
href:
|
|
2887
|
-
originalPriceLabel:
|
|
2888
|
-
discountedPriceLabel:
|
|
2889
|
-
analytics:
|
|
2891
|
+
onProceed: q,
|
|
2892
|
+
onProceedGuidance: oe,
|
|
2893
|
+
href: ce,
|
|
2894
|
+
originalPriceLabel: ae,
|
|
2895
|
+
discountedPriceLabel: ie,
|
|
2896
|
+
analytics: ne,
|
|
2890
2897
|
showPlanSheet: we,
|
|
2891
|
-
confirmPlan:
|
|
2892
|
-
planSheetOpen:
|
|
2893
|
-
selectedPlan:
|
|
2898
|
+
confirmPlan: be,
|
|
2899
|
+
planSheetOpen: de,
|
|
2900
|
+
selectedPlan: V
|
|
2894
2901
|
}
|
|
2895
2902
|
),
|
|
2896
|
-
|
|
2897
|
-
|
|
2903
|
+
h?.config.variant === "v1" && /* @__PURE__ */ r.jsx(
|
|
2904
|
+
Rn,
|
|
2898
2905
|
{
|
|
2899
|
-
isOpen:
|
|
2900
|
-
onClose: () =>
|
|
2901
|
-
selectedPlan:
|
|
2902
|
-
onSelectPlan:
|
|
2903
|
-
onProceed: (
|
|
2904
|
-
|
|
2906
|
+
isOpen: de,
|
|
2907
|
+
onClose: () => _e(!1),
|
|
2908
|
+
selectedPlan: V,
|
|
2909
|
+
onSelectPlan: ye,
|
|
2910
|
+
onProceed: (k) => {
|
|
2911
|
+
be?.(k);
|
|
2905
2912
|
},
|
|
2906
|
-
t:
|
|
2907
|
-
analytics:
|
|
2913
|
+
t: M,
|
|
2914
|
+
analytics: ne
|
|
2908
2915
|
}
|
|
2909
2916
|
)
|
|
2910
2917
|
] });
|
|
2911
|
-
},
|
|
2918
|
+
}, Gn = {
|
|
2912
2919
|
banner_clicked_fe: "banner_clicked_fe",
|
|
2913
2920
|
primary_cta_clicked_fe: "primary_cta_clicked_fe",
|
|
2914
2921
|
language_changed_fe: "language_changed_fe",
|
|
@@ -2948,31 +2955,31 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2948
2955
|
kundli_form_view: "kundli_form_view"
|
|
2949
2956
|
};
|
|
2950
2957
|
export {
|
|
2951
|
-
|
|
2958
|
+
De as D,
|
|
2952
2959
|
ut as F,
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2960
|
+
Dn as I,
|
|
2961
|
+
Gn as K,
|
|
2962
|
+
ir as L,
|
|
2956
2963
|
br as P,
|
|
2957
|
-
|
|
2964
|
+
ur as S,
|
|
2958
2965
|
pa as U,
|
|
2959
2966
|
hr as a,
|
|
2960
2967
|
Ke as b,
|
|
2961
|
-
|
|
2962
|
-
|
|
2968
|
+
Un as c,
|
|
2969
|
+
Mn as d,
|
|
2963
2970
|
it as e,
|
|
2964
2971
|
lt as f,
|
|
2965
2972
|
nt as g,
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2973
|
+
Re as h,
|
|
2974
|
+
On as i,
|
|
2975
|
+
$n as j,
|
|
2969
2976
|
r as k,
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2977
|
+
Ra as l,
|
|
2978
|
+
Na as m,
|
|
2979
|
+
Rn as n,
|
|
2980
|
+
Fn as r,
|
|
2974
2981
|
ot as s,
|
|
2975
2982
|
fr as t,
|
|
2976
2983
|
qr as u
|
|
2977
2984
|
};
|
|
2978
|
-
//# sourceMappingURL=analytics-
|
|
2985
|
+
//# sourceMappingURL=analytics-CKPY7Hx3.js.map
|