@srimandir/kundli-generator 5.3.0 → 5.5.0
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-vp1HBbKL.js → analytics-UzdY5_Zo.js} +415 -400
- package/dist/{analytics-vp1HBbKL.js.map → analytics-UzdY5_Zo.js.map} +1 -1
- package/dist/{criticalCss-Czpe76JD.js → criticalCss-iwwvJrep.js} +2 -2
- package/dist/{criticalCss-Czpe76JD.js.map → criticalCss-iwwvJrep.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 +3 -3
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import Ge, { useContext as We, createContext as cr, useState as W, useRef as
|
|
2
|
-
import { FormSectionHeader as Dr, FooterCTAButton as
|
|
3
|
-
var Le = { exports: {} },
|
|
1
|
+
import Ge, { useContext as We, createContext as cr, useState as W, useRef as K, useEffect as H, useMemo as Ue, useCallback as Te } from "react";
|
|
2
|
+
import { FormSectionHeader as Dr, FooterCTAButton as Fr, FooterShell as Or, CircularMarquee as Mr, footerShellStyles as ke, PageHeader as $r } from "@srimandir/astrology-common";
|
|
3
|
+
var Le = { exports: {} }, Ie = {};
|
|
4
4
|
var ar;
|
|
5
5
|
function Ur() {
|
|
6
|
-
if (ar) return
|
|
6
|
+
if (ar) return Ie;
|
|
7
7
|
ar = 1;
|
|
8
|
-
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), d = /* @__PURE__ */ Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty,
|
|
9
|
-
function x(j, A,
|
|
10
|
-
var c, N = {}, p = null,
|
|
11
|
-
|
|
12
|
-
for (c in A) m.call(A, c) && !
|
|
8
|
+
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), d = /* @__PURE__ */ Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, k = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
|
+
function x(j, A, B) {
|
|
10
|
+
var c, N = {}, p = null, E = null;
|
|
11
|
+
B !== void 0 && (p = "" + B), A.key !== void 0 && (p = "" + A.key), A.ref !== void 0 && (E = A.ref);
|
|
12
|
+
for (c in A) m.call(A, c) && !S.hasOwnProperty(c) && (N[c] = A[c]);
|
|
13
13
|
if (j && j.defaultProps) for (c in A = j.defaultProps, A) N[c] === void 0 && (N[c] = A[c]);
|
|
14
|
-
return { $$typeof: o, type: j, key: p, ref:
|
|
14
|
+
return { $$typeof: o, type: j, key: p, ref: E, props: N, _owner: k.current };
|
|
15
15
|
}
|
|
16
|
-
return
|
|
16
|
+
return Ie.Fragment = d, Ie.jsx = x, Ie.jsxs = x, Ie;
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var Be = {};
|
|
19
19
|
var nr;
|
|
20
20
|
function Gr() {
|
|
21
21
|
return nr || (nr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
-
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), d = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"),
|
|
22
|
+
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), d = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), k = /* @__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"), B = /* @__PURE__ */ Symbol.for("react.suspense"), c = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), E = /* @__PURE__ */ Symbol.for("react.offscreen"), h = Symbol.iterator, I = "@@iterator";
|
|
23
23
|
function C(e) {
|
|
24
24
|
if (e === null || typeof e != "object")
|
|
25
25
|
return null;
|
|
26
|
-
var i = h && e[h] || e[
|
|
26
|
+
var i = h && e[h] || e[I];
|
|
27
27
|
return typeof i == "function" ? i : null;
|
|
28
28
|
}
|
|
29
29
|
var b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -38,20 +38,20 @@ function Gr() {
|
|
|
38
38
|
{
|
|
39
39
|
var u = b.ReactDebugCurrentFrame, P = u.getStackAddendum();
|
|
40
40
|
P !== "" && (i += "%s", l = l.concat([P]));
|
|
41
|
-
var
|
|
42
|
-
return String(
|
|
41
|
+
var R = l.map(function(v) {
|
|
42
|
+
return String(v);
|
|
43
43
|
});
|
|
44
|
-
|
|
44
|
+
R.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, R);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
|
|
47
|
+
var w = !1, D = !1, z = !1, J = !1, re = !1, Y;
|
|
48
|
+
Y = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
49
|
function M(e) {
|
|
50
|
-
return !!(typeof e == "string" || typeof e == "function" || e === m || e ===
|
|
50
|
+
return !!(typeof e == "string" || typeof e == "function" || e === m || e === S || re || e === k || e === B || e === c || J || e === E || w || D || z || typeof e == "object" && e !== null && (e.$$typeof === p || 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
56
|
function se(e, i, l) {
|
|
57
57
|
var u = e.displayName;
|
|
@@ -60,10 +60,10 @@ function Gr() {
|
|
|
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" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -75,11 +75,11 @@ function Gr() {
|
|
|
75
75
|
return "Fragment";
|
|
76
76
|
case d:
|
|
77
77
|
return "Portal";
|
|
78
|
-
case
|
|
78
|
+
case S:
|
|
79
79
|
return "Profiler";
|
|
80
|
-
case
|
|
80
|
+
case k:
|
|
81
81
|
return "StrictMode";
|
|
82
|
-
case
|
|
82
|
+
case B:
|
|
83
83
|
return "Suspense";
|
|
84
84
|
case c:
|
|
85
85
|
return "SuspenseList";
|
|
@@ -88,19 +88,19 @@ function Gr() {
|
|
|
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
96
|
return se(e, e.render, "ForwardRef");
|
|
97
97
|
case N:
|
|
98
98
|
var u = e.displayName || null;
|
|
99
|
-
return u !== null ? u :
|
|
99
|
+
return u !== null ? u : G(e.type) || "Memo";
|
|
100
100
|
case p: {
|
|
101
|
-
var P = e,
|
|
101
|
+
var P = e, R = P._payload, v = P._init;
|
|
102
102
|
try {
|
|
103
|
-
return
|
|
103
|
+
return G(v(R));
|
|
104
104
|
} catch {
|
|
105
105
|
return null;
|
|
106
106
|
}
|
|
@@ -108,14 +108,14 @@ function Gr() {
|
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
111
|
-
var
|
|
111
|
+
var T = Object.assign, F = 0, X, te, ge, q, oe, ce, ae;
|
|
112
112
|
function ie() {
|
|
113
113
|
}
|
|
114
114
|
ie.__reactDisabledLog = !0;
|
|
115
115
|
function fe() {
|
|
116
116
|
{
|
|
117
|
-
if (
|
|
118
|
-
|
|
117
|
+
if (F === 0) {
|
|
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,
|
|
@@ -132,46 +132,46 @@ function Gr() {
|
|
|
132
132
|
groupEnd: e
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
F++;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function ne() {
|
|
139
139
|
{
|
|
140
|
-
if (
|
|
140
|
+
if (F--, F === 0) {
|
|
141
141
|
var e = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
147
|
-
log:
|
|
148
|
-
value:
|
|
147
|
+
log: T({}, e, {
|
|
148
|
+
value: X
|
|
149
149
|
}),
|
|
150
|
-
info:
|
|
151
|
-
value:
|
|
150
|
+
info: T({}, e, {
|
|
151
|
+
value: te
|
|
152
152
|
}),
|
|
153
|
-
warn:
|
|
153
|
+
warn: T({}, e, {
|
|
154
154
|
value: ge
|
|
155
155
|
}),
|
|
156
|
-
error:
|
|
157
|
-
value:
|
|
156
|
+
error: T({}, e, {
|
|
157
|
+
value: q
|
|
158
158
|
}),
|
|
159
|
-
group:
|
|
159
|
+
group: T({}, e, {
|
|
160
160
|
value: oe
|
|
161
161
|
}),
|
|
162
|
-
groupCollapsed:
|
|
162
|
+
groupCollapsed: T({}, e, {
|
|
163
163
|
value: ce
|
|
164
164
|
}),
|
|
165
|
-
groupEnd:
|
|
166
|
-
value:
|
|
165
|
+
groupEnd: T({}, e, {
|
|
166
|
+
value: ae
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
F < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
var de = b.ReactCurrentDispatcher, _e;
|
|
174
|
-
function
|
|
174
|
+
function V(e, i, l) {
|
|
175
175
|
{
|
|
176
176
|
if (_e === void 0)
|
|
177
177
|
try {
|
|
@@ -201,31 +201,31 @@ function Gr() {
|
|
|
201
201
|
ye = !0;
|
|
202
202
|
var P = Error.prepareStackTrace;
|
|
203
203
|
Error.prepareStackTrace = void 0;
|
|
204
|
-
var
|
|
205
|
-
|
|
204
|
+
var R;
|
|
205
|
+
R = de.current, de.current = null, fe();
|
|
206
206
|
try {
|
|
207
207
|
if (i) {
|
|
208
|
-
var
|
|
208
|
+
var v = function() {
|
|
209
209
|
throw Error();
|
|
210
210
|
};
|
|
211
|
-
if (Object.defineProperty(
|
|
211
|
+
if (Object.defineProperty(v.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(
|
|
217
|
+
Reflect.construct(v, []);
|
|
218
218
|
} catch (ee) {
|
|
219
219
|
u = ee;
|
|
220
220
|
}
|
|
221
|
-
Reflect.construct(e, [],
|
|
221
|
+
Reflect.construct(e, [], v);
|
|
222
222
|
} else {
|
|
223
223
|
try {
|
|
224
|
-
|
|
224
|
+
v.call();
|
|
225
225
|
} catch (ee) {
|
|
226
226
|
u = ee;
|
|
227
227
|
}
|
|
228
|
-
e.call(
|
|
228
|
+
e.call(v.prototype);
|
|
229
229
|
}
|
|
230
230
|
} else {
|
|
231
231
|
try {
|
|
@@ -238,14 +238,14 @@ function Gr() {
|
|
|
238
238
|
} catch (ee) {
|
|
239
239
|
if (ee && u && typeof ee.stack == "string") {
|
|
240
240
|
for (var g = ee.stack.split(`
|
|
241
|
-
`),
|
|
242
|
-
`), O = g.length - 1, $ =
|
|
241
|
+
`), Z = u.stack.split(`
|
|
242
|
+
`), O = g.length - 1, $ = Z.length - 1; O >= 1 && $ >= 0 && g[O] !== Z[$]; )
|
|
243
243
|
$--;
|
|
244
244
|
for (; O >= 1 && $ >= 0; O--, $--)
|
|
245
|
-
if (g[O] !==
|
|
245
|
+
if (g[O] !== Z[$]) {
|
|
246
246
|
if (O !== 1 || $ !== 1)
|
|
247
247
|
do
|
|
248
|
-
if (O--, $--, $ < 0 || g[O] !==
|
|
248
|
+
if (O--, $--, $ < 0 || g[O] !== Z[$]) {
|
|
249
249
|
var le = `
|
|
250
250
|
` + g[O].replace(" at new ", " at ");
|
|
251
251
|
return e.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", e.displayName)), typeof e == "function" && ue.set(e, le), le;
|
|
@@ -255,9 +255,9 @@ function Gr() {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
} finally {
|
|
258
|
-
ye = !1, de.current =
|
|
258
|
+
ye = !1, de.current = R, ne(), Error.prepareStackTrace = P;
|
|
259
259
|
}
|
|
260
|
-
var Ce = e ? e.displayName || e.name : "", ve = Ce ?
|
|
260
|
+
var Ce = e ? e.displayName || e.name : "", ve = Ce ? V(Ce) : "";
|
|
261
261
|
return typeof e == "function" && ue.set(e, ve), ve;
|
|
262
262
|
}
|
|
263
263
|
function xe(e, i, l) {
|
|
@@ -267,29 +267,29 @@ function Gr() {
|
|
|
267
267
|
var i = e.prototype;
|
|
268
268
|
return !!(i && i.isReactComponent);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function y(e, i, l) {
|
|
271
271
|
if (e == null)
|
|
272
272
|
return "";
|
|
273
273
|
if (typeof e == "function")
|
|
274
274
|
return be(e, Pe(e));
|
|
275
275
|
if (typeof e == "string")
|
|
276
|
-
return
|
|
276
|
+
return V(e);
|
|
277
277
|
switch (e) {
|
|
278
|
-
case
|
|
279
|
-
return
|
|
278
|
+
case B:
|
|
279
|
+
return V("Suspense");
|
|
280
280
|
case c:
|
|
281
|
-
return
|
|
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
|
|
288
|
+
return y(e.type, i, l);
|
|
289
289
|
case p: {
|
|
290
|
-
var u = e, P = u._payload,
|
|
290
|
+
var u = e, P = u._payload, R = u._init;
|
|
291
291
|
try {
|
|
292
|
-
return
|
|
292
|
+
return y(R(P), i, l);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
}
|
|
@@ -299,33 +299,33 @@ function Gr() {
|
|
|
299
299
|
var pe = Object.prototype.hasOwnProperty, n = {}, s = b.ReactDebugCurrentFrame;
|
|
300
300
|
function L(e) {
|
|
301
301
|
if (e) {
|
|
302
|
-
var i = e._owner, l =
|
|
302
|
+
var i = e._owner, l = y(e.type, e._source, i ? i.type : null);
|
|
303
303
|
s.setExtraStackFrame(l);
|
|
304
304
|
} else
|
|
305
305
|
s.setExtraStackFrame(null);
|
|
306
306
|
}
|
|
307
307
|
function me(e, i, l, u, P) {
|
|
308
308
|
{
|
|
309
|
-
var
|
|
310
|
-
for (var
|
|
311
|
-
if (
|
|
309
|
+
var R = Function.call.bind(pe);
|
|
310
|
+
for (var v in e)
|
|
311
|
+
if (R(e, v)) {
|
|
312
312
|
var g = void 0;
|
|
313
313
|
try {
|
|
314
|
-
if (typeof e[
|
|
315
|
-
var
|
|
316
|
-
throw
|
|
314
|
+
if (typeof e[v] != "function") {
|
|
315
|
+
var Z = Error((u || "React class") + ": " + l + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
316
|
+
throw Z.name = "Invariant Violation", Z;
|
|
317
317
|
}
|
|
318
|
-
g = e[
|
|
318
|
+
g = e[v](i, v, u, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
319
|
} catch (O) {
|
|
320
320
|
g = O;
|
|
321
321
|
}
|
|
322
|
-
g && !(g instanceof Error) && (L(P), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", l,
|
|
322
|
+
g && !(g instanceof Error) && (L(P), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", l, v, typeof g), L(null)), g instanceof Error && !(g.message in n) && (n[g.message] = !0, L(P), _("Failed %s type: %s", l, g.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 gr(e) {
|
|
331
331
|
{
|
|
@@ -394,7 +394,7 @@ function Gr() {
|
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
var Pr = function(e, i, l, u, P,
|
|
397
|
+
var Pr = function(e, i, l, u, P, R, v) {
|
|
398
398
|
var g = {
|
|
399
399
|
// This tag allows us to uniquely identify this as a React Element
|
|
400
400
|
$$typeof: o,
|
|
@@ -402,9 +402,9 @@ function Gr() {
|
|
|
402
402
|
type: e,
|
|
403
403
|
key: i,
|
|
404
404
|
ref: l,
|
|
405
|
-
props:
|
|
405
|
+
props: v,
|
|
406
406
|
// Record the component responsible for creating this element.
|
|
407
|
-
_owner:
|
|
407
|
+
_owner: R
|
|
408
408
|
};
|
|
409
409
|
return g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
410
410
|
configurable: !1,
|
|
@@ -425,39 +425,39 @@ function Gr() {
|
|
|
425
425
|
};
|
|
426
426
|
function Ar(e, i, l, u, P) {
|
|
427
427
|
{
|
|
428
|
-
var
|
|
429
|
-
l !== void 0 && (Ye(l), g = "" + l), vr(i) && (Ye(i.key), g = "" + i.key), yr(i) && (
|
|
430
|
-
for (
|
|
431
|
-
pe.call(i,
|
|
428
|
+
var R, v = {}, g = null, Z = null;
|
|
429
|
+
l !== void 0 && (Ye(l), g = "" + l), vr(i) && (Ye(i.key), g = "" + i.key), yr(i) && (Z = i.ref, kr(i, P));
|
|
430
|
+
for (R in i)
|
|
431
|
+
pe.call(i, R) && !br.hasOwnProperty(R) && (v[R] = i[R]);
|
|
432
432
|
if (e && e.defaultProps) {
|
|
433
433
|
var O = e.defaultProps;
|
|
434
|
-
for (
|
|
435
|
-
|
|
434
|
+
for (R in O)
|
|
435
|
+
v[R] === void 0 && (v[R] = O[R]);
|
|
436
436
|
}
|
|
437
|
-
if (g ||
|
|
437
|
+
if (g || Z) {
|
|
438
438
|
var $ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
439
|
-
g && wr(
|
|
439
|
+
g && wr(v, $), Z && xr(v, $);
|
|
440
440
|
}
|
|
441
|
-
return Pr(e, g,
|
|
441
|
+
return Pr(e, g, Z, P, u, qe.current, v);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
var
|
|
444
|
+
var Fe = b.ReactCurrentOwner, Je = b.ReactDebugCurrentFrame;
|
|
445
445
|
function Ae(e) {
|
|
446
446
|
if (e) {
|
|
447
|
-
var i = e._owner, l =
|
|
447
|
+
var i = e._owner, l = y(e.type, e._source, i ? i.type : null);
|
|
448
448
|
Je.setExtraStackFrame(l);
|
|
449
449
|
} else
|
|
450
450
|
Je.setExtraStackFrame(null);
|
|
451
451
|
}
|
|
452
|
-
var
|
|
453
|
-
|
|
452
|
+
var Oe;
|
|
453
|
+
Oe = !1;
|
|
454
454
|
function Me(e) {
|
|
455
455
|
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
456
456
|
}
|
|
457
457
|
function Qe() {
|
|
458
458
|
{
|
|
459
|
-
if (
|
|
460
|
-
var e =
|
|
459
|
+
if (Fe.current) {
|
|
460
|
+
var e = G(Fe.current.type);
|
|
461
461
|
if (e)
|
|
462
462
|
return `
|
|
463
463
|
|
|
@@ -492,14 +492,14 @@ Check the top-level render call using <` + l + ">.");
|
|
|
492
492
|
return;
|
|
493
493
|
Xe[l] = !0;
|
|
494
494
|
var u = "";
|
|
495
|
-
e && e._owner && e._owner !==
|
|
495
|
+
e && e._owner && e._owner !== Fe.current && (u = " It was passed a child from " + G(e._owner.type) + "."), Ae(e), _('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
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
505
|
Me(u) && Ze(u, i);
|
|
@@ -509,8 +509,8 @@ Check the top-level render call using <` + l + ">.");
|
|
|
509
509
|
else if (e) {
|
|
510
510
|
var P = C(e);
|
|
511
511
|
if (typeof P == "function" && P !== e.entries)
|
|
512
|
-
for (var
|
|
513
|
-
Me(
|
|
512
|
+
for (var R = P.call(e), v; !(v = R.next()).done; )
|
|
513
|
+
Me(v.value) && Ze(v.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 =
|
|
532
|
+
var u = G(i);
|
|
533
533
|
me(l, e.props, "prop", u, e);
|
|
534
|
-
} else if (i.PropTypes !== void 0 && !
|
|
535
|
-
|
|
536
|
-
var P =
|
|
534
|
+
} else if (i.PropTypes !== void 0 && !Oe) {
|
|
535
|
+
Oe = !0;
|
|
536
|
+
var P = G(i);
|
|
537
537
|
_("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 && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -552,25 +552,25 @@ Check the top-level render call using <` + l + ">.");
|
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
var rr = {};
|
|
555
|
-
function tr(e, i, l, u, P,
|
|
555
|
+
function tr(e, i, l, u, P, R) {
|
|
556
556
|
{
|
|
557
|
-
var
|
|
558
|
-
if (!
|
|
557
|
+
var v = M(e);
|
|
558
|
+
if (!v) {
|
|
559
559
|
var g = "";
|
|
560
560
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
561
|
-
var
|
|
562
|
-
|
|
561
|
+
var Z = Cr();
|
|
562
|
+
Z ? g += Z : g += Qe();
|
|
563
563
|
var O;
|
|
564
|
-
e === null ? O = "null" :
|
|
564
|
+
e === null ? O = "null" : Ee(e) ? O = "array" : e !== void 0 && e.$$typeof === o ? (O = "<" + (G(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : O = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, g);
|
|
565
565
|
}
|
|
566
|
-
var $ = Ar(e, i, l, P,
|
|
566
|
+
var $ = Ar(e, i, l, P, R);
|
|
567
567
|
if ($ == null)
|
|
568
568
|
return $;
|
|
569
|
-
if (
|
|
569
|
+
if (v) {
|
|
570
570
|
var le = i.children;
|
|
571
571
|
if (le !== void 0)
|
|
572
572
|
if (u)
|
|
573
|
-
if (
|
|
573
|
+
if (Ee(le)) {
|
|
574
574
|
for (var Ce = 0; Ce < le.length; Ce++)
|
|
575
575
|
er(le[Ce], e);
|
|
576
576
|
Object.freeze && Object.freeze(le);
|
|
@@ -580,7 +580,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
580
580
|
er(le, e);
|
|
581
581
|
}
|
|
582
582
|
if (pe.call(i, "key")) {
|
|
583
|
-
var ve =
|
|
583
|
+
var ve = G(e), ee = Object.keys(i).filter(function(Lr) {
|
|
584
584
|
return Lr !== "key";
|
|
585
585
|
}), $e = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
586
|
if (!rr[ve + $e]) {
|
|
@@ -603,8 +603,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
603
603
|
return tr(e, i, l, !1);
|
|
604
604
|
}
|
|
605
605
|
var Er = Sr, Ir = Rr;
|
|
606
|
-
|
|
607
|
-
})()),
|
|
606
|
+
Be.Fragment = m, Be.jsx = Er, Be.jsxs = Ir;
|
|
607
|
+
})()), Be;
|
|
608
608
|
}
|
|
609
609
|
var or;
|
|
610
610
|
function Wr() {
|
|
@@ -1050,7 +1050,7 @@ const dr = ["en", "hi"], ir = {
|
|
|
1050
1050
|
locale: t,
|
|
1051
1051
|
children: o
|
|
1052
1052
|
}) => {
|
|
1053
|
-
const m = { locale: t, t: (
|
|
1053
|
+
const m = { locale: t, t: (k) => ur[t]?.[k] ?? k };
|
|
1054
1054
|
return /* @__PURE__ */ r.jsx(mr.Provider, { value: m, children: o });
|
|
1055
1055
|
};
|
|
1056
1056
|
function Kr() {
|
|
@@ -1068,13 +1068,13 @@ const Hr = "_container_1e1th_1", Yr = "_main_1e1th_7", qr = "_kundliHeaderNoBord
|
|
|
1068
1068
|
langMenu: Zr,
|
|
1069
1069
|
langOption: et
|
|
1070
1070
|
}, De = (t) => {
|
|
1071
|
-
const { priority: o, fetchPriority: d, width: m, height:
|
|
1071
|
+
const { priority: o, fetchPriority: d, width: m, height: k, ...S } = t;
|
|
1072
1072
|
return Ge.createElement("img", {
|
|
1073
|
-
...
|
|
1073
|
+
...S,
|
|
1074
1074
|
width: m ?? 1,
|
|
1075
|
-
height:
|
|
1075
|
+
height: k ?? 1,
|
|
1076
1076
|
decoding: "async",
|
|
1077
|
-
loading:
|
|
1077
|
+
loading: S.loading ?? (o ? "eager" : "lazy"),
|
|
1078
1078
|
...d && { fetchPriority: d }
|
|
1079
1079
|
});
|
|
1080
1080
|
};
|
|
@@ -1136,72 +1136,72 @@ const Ke = cr(null), ot = {
|
|
|
1136
1136
|
showLanguageSelector: o = !0,
|
|
1137
1137
|
showSheet: d,
|
|
1138
1138
|
userId: m,
|
|
1139
|
-
isGlobal:
|
|
1140
|
-
variant:
|
|
1139
|
+
isGlobal: k,
|
|
1140
|
+
variant: S,
|
|
1141
1141
|
atlasSearchLocalities: x,
|
|
1142
1142
|
logoUrl: j,
|
|
1143
1143
|
reportImageUrl: A,
|
|
1144
|
-
reportImagePriority:
|
|
1144
|
+
reportImagePriority: B,
|
|
1145
1145
|
backgroundImagePriority: c,
|
|
1146
1146
|
universityLogoUrls: N,
|
|
1147
1147
|
sampleReportHref: p,
|
|
1148
|
-
onViewSampleReport:
|
|
1148
|
+
onViewSampleReport: E,
|
|
1149
1149
|
ctaHref: h,
|
|
1150
|
-
onCtaClick:
|
|
1150
|
+
onCtaClick: I,
|
|
1151
1151
|
onBack: C,
|
|
1152
1152
|
readMoreReviewsHref: b,
|
|
1153
1153
|
onProceed: _,
|
|
1154
1154
|
proceedHref: U,
|
|
1155
|
-
originalPriceLabel:
|
|
1156
|
-
discountedPriceLabel:
|
|
1157
|
-
discountPillLabel:
|
|
1158
|
-
analytics:
|
|
1159
|
-
onProceedGuidance:
|
|
1160
|
-
onLocaleChange:
|
|
1155
|
+
originalPriceLabel: w,
|
|
1156
|
+
discountedPriceLabel: D,
|
|
1157
|
+
discountPillLabel: z,
|
|
1158
|
+
analytics: J,
|
|
1159
|
+
onProceedGuidance: re,
|
|
1160
|
+
onLocaleChange: Y,
|
|
1161
1161
|
imageComponent: M = De,
|
|
1162
1162
|
children: se
|
|
1163
1163
|
}) => {
|
|
1164
|
-
const [
|
|
1165
|
-
|
|
1164
|
+
const [Q, G] = W("landing"), [T, F] = W(t ?? "en"), [X, te] = W(ot), ge = K(!0);
|
|
1165
|
+
H(() => {
|
|
1166
1166
|
const ie = at();
|
|
1167
|
-
ie &&
|
|
1168
|
-
}, []),
|
|
1169
|
-
nt(
|
|
1170
|
-
}, [
|
|
1167
|
+
ie && F(ie);
|
|
1168
|
+
}, []), H(() => {
|
|
1169
|
+
nt(T);
|
|
1170
|
+
}, [T]), H(() => {
|
|
1171
1171
|
if (ge.current) {
|
|
1172
1172
|
ge.current = !1;
|
|
1173
1173
|
return;
|
|
1174
1174
|
}
|
|
1175
|
-
|
|
1176
|
-
}, [
|
|
1177
|
-
const
|
|
1175
|
+
Y?.(T);
|
|
1176
|
+
}, [T, Y]);
|
|
1177
|
+
const q = Ue(
|
|
1178
1178
|
() => ({
|
|
1179
1179
|
locale: t,
|
|
1180
1180
|
showLanguageSelector: o,
|
|
1181
1181
|
showSheet: d,
|
|
1182
1182
|
userId: m,
|
|
1183
|
-
isGlobal:
|
|
1184
|
-
variant:
|
|
1183
|
+
isGlobal: k,
|
|
1184
|
+
variant: S,
|
|
1185
1185
|
atlasSearchLocalities: x,
|
|
1186
1186
|
logoUrl: j,
|
|
1187
1187
|
reportImageUrl: A,
|
|
1188
|
-
reportImagePriority:
|
|
1188
|
+
reportImagePriority: B,
|
|
1189
1189
|
backgroundImagePriority: c,
|
|
1190
1190
|
universityLogoUrls: N,
|
|
1191
1191
|
sampleReportHref: p,
|
|
1192
|
-
onViewSampleReport:
|
|
1192
|
+
onViewSampleReport: E,
|
|
1193
1193
|
ctaHref: h,
|
|
1194
|
-
onCtaClick:
|
|
1194
|
+
onCtaClick: I,
|
|
1195
1195
|
onBack: C,
|
|
1196
1196
|
readMoreReviewsHref: b,
|
|
1197
1197
|
onProceed: _,
|
|
1198
1198
|
proceedHref: U,
|
|
1199
|
-
originalPriceLabel:
|
|
1200
|
-
discountedPriceLabel:
|
|
1201
|
-
discountPillLabel:
|
|
1202
|
-
analytics:
|
|
1203
|
-
onProceedGuidance:
|
|
1204
|
-
onLocaleChange:
|
|
1199
|
+
originalPriceLabel: w,
|
|
1200
|
+
discountedPriceLabel: D,
|
|
1201
|
+
discountPillLabel: z,
|
|
1202
|
+
analytics: J,
|
|
1203
|
+
onProceedGuidance: re,
|
|
1204
|
+
onLocaleChange: Y,
|
|
1205
1205
|
imageComponent: M
|
|
1206
1206
|
}),
|
|
1207
1207
|
[
|
|
@@ -1209,52 +1209,52 @@ const Ke = cr(null), ot = {
|
|
|
1209
1209
|
o,
|
|
1210
1210
|
d,
|
|
1211
1211
|
m,
|
|
1212
|
-
|
|
1213
|
-
|
|
1212
|
+
k,
|
|
1213
|
+
S,
|
|
1214
1214
|
x,
|
|
1215
1215
|
j,
|
|
1216
1216
|
A,
|
|
1217
|
-
|
|
1217
|
+
B,
|
|
1218
1218
|
c,
|
|
1219
1219
|
N,
|
|
1220
1220
|
p,
|
|
1221
|
-
S,
|
|
1222
|
-
h,
|
|
1223
1221
|
E,
|
|
1222
|
+
h,
|
|
1223
|
+
I,
|
|
1224
1224
|
C,
|
|
1225
1225
|
b,
|
|
1226
1226
|
_,
|
|
1227
1227
|
U,
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1228
|
+
w,
|
|
1229
|
+
D,
|
|
1230
|
+
z,
|
|
1231
|
+
J,
|
|
1232
|
+
re,
|
|
1233
|
+
Y,
|
|
1234
1234
|
M
|
|
1235
1235
|
]
|
|
1236
|
-
), oe =
|
|
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:
|
|
1243
|
-
locale:
|
|
1244
|
-
setLocale:
|
|
1245
|
-
config:
|
|
1246
|
-
formValues:
|
|
1247
|
-
setFormValues:
|
|
1242
|
+
view: Q,
|
|
1243
|
+
locale: T,
|
|
1244
|
+
setLocale: F,
|
|
1245
|
+
config: q,
|
|
1246
|
+
formValues: X,
|
|
1247
|
+
setFormValues: te,
|
|
1248
1248
|
goToForm: oe,
|
|
1249
1249
|
goToPage: ce,
|
|
1250
|
-
onProceed:
|
|
1251
|
-
onProceedGuidance:
|
|
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
1260
|
function Ln() {
|
|
@@ -1280,7 +1280,7 @@ const it = "_header_19172_1", lt = "_centered_19172_8", lr = {
|
|
|
1280
1280
|
backAriaLabel: t("back"),
|
|
1281
1281
|
className: `${lr.header} ${m === "center" ? lr.centered : ""} ${d}`
|
|
1282
1282
|
}
|
|
1283
|
-
), ct = "_wrap_119w3_1", dt = "_card_119w3_5", ut = "_cardInner_119w3_12", mt = "_field_119w3_44", ft = "_labelRow_119w3_48", pt = "_label_119w3_48", ht = "_req_119w3_57", gt = "_help_119w3_61", _t = "_choiceRow_119w3_68", bt = "_choiceBtn_119w3_74", yt = "_choiceBtnActive_119w3_99", vt = "_infoBtn_119w3_105", kt = "_infoImg_119w3_122", wt = "_infoWrap_119w3_128", xt = "_tooltip_119w3_134", Pt = "_tooltipArrow_119w3_150", At = "_inputWrap_119w3_161", Ct = "_isdWrap_119w3_165", jt = "_phoneInputGroup_119w3_169", Nt = "_isdSelectWrap_119w3_178", Tt = "_isdSelectTrigger_119w3_197", Rt = "_isdDropdown_119w3_214", St = "_isdSearchWrap_119w3_229", Et = "_isdSearchInput_119w3_237", It = "_isdOption_119w3_255", Bt = "_isdOptionActive_119w3_275", Lt = "_isdCountryName_119w3_281", Dt = "_isdCountryCode_119w3_288",
|
|
1283
|
+
), ct = "_wrap_119w3_1", dt = "_card_119w3_5", ut = "_cardInner_119w3_12", mt = "_field_119w3_44", ft = "_labelRow_119w3_48", pt = "_label_119w3_48", ht = "_req_119w3_57", gt = "_help_119w3_61", _t = "_choiceRow_119w3_68", bt = "_choiceBtn_119w3_74", yt = "_choiceBtnActive_119w3_99", vt = "_infoBtn_119w3_105", kt = "_infoImg_119w3_122", wt = "_infoWrap_119w3_128", xt = "_tooltip_119w3_134", Pt = "_tooltipArrow_119w3_150", At = "_inputWrap_119w3_161", Ct = "_isdWrap_119w3_165", jt = "_phoneInputGroup_119w3_169", Nt = "_isdSelectWrap_119w3_178", Tt = "_isdSelectTrigger_119w3_197", Rt = "_isdDropdown_119w3_214", St = "_isdSearchWrap_119w3_229", Et = "_isdSearchInput_119w3_237", It = "_isdOption_119w3_255", Bt = "_isdOptionActive_119w3_275", Lt = "_isdCountryName_119w3_281", Dt = "_isdCountryCode_119w3_288", Ft = "_isdNoResult_119w3_295", Ot = "_suggestions_119w3_302", Mt = "_suggestionItem_119w3_315", $t = "_suggestionMain_119w3_333", Ut = "_suggestionSecondary_119w3_339", Gt = "_suggestionsHint_119w3_344", Wt = "_fieldError_119w3_359", Kt = "_timePopover_119w3_366", Ht = "_timePickerRow_119w3_382", Yt = "_timePickerSelect_119w3_388", qt = "_timePickerColon_119w3_404", Vt = "_meridiemToggle_119w3_412", zt = "_meridiemBtn_119w3_421", Jt = "_meridiemActive_119w3_436", Qt = "_timePopoverActions_119w3_441", Xt = "_timePopoverBtn_119w3_447", Zt = "_timePopoverOk_119w3_466", ea = "_input_119w3_161", ra = "_phoneInput_119w3_169", ta = "_iconBtn_119w3_519", aa = "_iconBtnInteractive_119w3_525", na = "_iconImg_119w3_544", oa = "_checkboxRow_119w3_550", ia = "_checkbox_119w3_550", la = "_checkboxText_119w3_588", a = {
|
|
1284
1284
|
wrap: ct,
|
|
1285
1285
|
card: dt,
|
|
1286
1286
|
cardInner: ut,
|
|
@@ -1309,8 +1309,8 @@ const it = "_header_19172_1", lt = "_centered_19172_8", lr = {
|
|
|
1309
1309
|
isdOptionActive: Bt,
|
|
1310
1310
|
isdCountryName: Lt,
|
|
1311
1311
|
isdCountryCode: Dt,
|
|
1312
|
-
isdNoResult:
|
|
1313
|
-
suggestions:
|
|
1312
|
+
isdNoResult: Ft,
|
|
1313
|
+
suggestions: Ot,
|
|
1314
1314
|
suggestionItem: Mt,
|
|
1315
1315
|
suggestionMain: $t,
|
|
1316
1316
|
suggestionSecondary: Ut,
|
|
@@ -1342,22 +1342,22 @@ const it = "_header_19172_1", lt = "_centered_19172_8", lr = {
|
|
|
1342
1342
|
restrictCountry: t?.restrictCountry
|
|
1343
1343
|
};
|
|
1344
1344
|
}, ca = (t) => {
|
|
1345
|
-
const { searchLocalities: o, restrictCountry: d } = t, [m,
|
|
1346
|
-
|
|
1345
|
+
const { searchLocalities: o, restrictCountry: d } = t, [m, k] = W([]), [S, x] = W(!1), [j, A] = W(null), B = K(0);
|
|
1346
|
+
H(() => {
|
|
1347
1347
|
A(null);
|
|
1348
1348
|
}, [o]);
|
|
1349
|
-
const c =
|
|
1349
|
+
const c = Te(
|
|
1350
1350
|
async (p) => {
|
|
1351
1351
|
if (!p || p.length < 2 || !o) {
|
|
1352
|
-
|
|
1352
|
+
k([]);
|
|
1353
1353
|
return;
|
|
1354
1354
|
}
|
|
1355
|
-
const
|
|
1355
|
+
const E = ++B.current;
|
|
1356
1356
|
x(!0), A(null);
|
|
1357
1357
|
try {
|
|
1358
|
-
const h = sa({ restrictCountry: d }),
|
|
1359
|
-
if (
|
|
1360
|
-
const C = (
|
|
1358
|
+
const h = sa({ restrictCountry: d }), I = await o(p, h);
|
|
1359
|
+
if (E !== B.current) return;
|
|
1360
|
+
const C = (I || []).filter(
|
|
1361
1361
|
(b) => !!b?.id && !!b?.description && sr(b?.lat) && sr(b?.lng)
|
|
1362
1362
|
).map((b) => ({
|
|
1363
1363
|
id: b.id,
|
|
@@ -1366,19 +1366,19 @@ const it = "_header_19172_1", lt = "_centered_19172_8", lr = {
|
|
|
1366
1366
|
lat: b.lat,
|
|
1367
1367
|
lng: b.lng
|
|
1368
1368
|
}));
|
|
1369
|
-
|
|
1369
|
+
k(C);
|
|
1370
1370
|
} catch (h) {
|
|
1371
|
-
if (
|
|
1372
|
-
|
|
1371
|
+
if (E !== B.current) return;
|
|
1372
|
+
k([]), A(h?.message || "Failed to fetch locations");
|
|
1373
1373
|
} finally {
|
|
1374
|
-
|
|
1374
|
+
E === B.current && x(!1);
|
|
1375
1375
|
}
|
|
1376
1376
|
},
|
|
1377
1377
|
[d, o]
|
|
1378
|
-
), N =
|
|
1378
|
+
), N = Te(() => k([]), []);
|
|
1379
1379
|
return {
|
|
1380
1380
|
predictions: m,
|
|
1381
|
-
isSearching:
|
|
1381
|
+
isSearching: S,
|
|
1382
1382
|
loadError: j,
|
|
1383
1383
|
searchPlaces: c,
|
|
1384
1384
|
clearPredictions: N
|
|
@@ -1465,13 +1465,13 @@ const da = ({
|
|
|
1465
1465
|
values: o,
|
|
1466
1466
|
onChange: d,
|
|
1467
1467
|
phoneIsdCode: m,
|
|
1468
|
-
onPhoneIsdCodeChange:
|
|
1469
|
-
showV1ExtraFields:
|
|
1468
|
+
onPhoneIsdCodeChange: k,
|
|
1469
|
+
showV1ExtraFields: S = !1,
|
|
1470
1470
|
analytics: x,
|
|
1471
1471
|
atlasSearchLocalities: j,
|
|
1472
1472
|
className: A = ""
|
|
1473
1473
|
}) => {
|
|
1474
|
-
const
|
|
1474
|
+
const B = Re(), c = B?.config?.analytics ?? x, N = B?.config.isGlobal ?? !0, p = B?.config?.atlasSearchLocalities, [E, h] = W(!1), [I, C] = W(""), b = K(null), _ = K(null), U = K({}), w = (n) => d({ ...o, ...n }), D = (n, s) => {
|
|
1475
1475
|
s.trim() && !U.current[n] && (U.current[n] = !0, {
|
|
1476
1476
|
fullName: () => c?.trackNameSectionFilled?.(),
|
|
1477
1477
|
phone: () => c?.trackPhoneSectionFilled?.(),
|
|
@@ -1480,61 +1480,61 @@ const da = ({
|
|
|
1480
1480
|
birthTime: () => c?.trackTimeFilled?.(),
|
|
1481
1481
|
birthPlace: () => c?.trackPlaceOfBirthChosen?.()
|
|
1482
1482
|
}[n]?.());
|
|
1483
|
-
},
|
|
1484
|
-
|
|
1485
|
-
const M =
|
|
1483
|
+
}, z = (n) => n.replace(/\D/g, "").slice(0, 10), J = I.trim().toLowerCase(), re = pr.filter((n) => J ? n.country.toLowerCase().includes(J) || n.code.includes(J) : !0), Y = K(null);
|
|
1484
|
+
K(null);
|
|
1485
|
+
const M = K(null), se = K(0), Q = K(null), [G, T] = W(!1), [F, X] = W({ hour12: 12, minute: "00", meridiem: "AM" }), te = (n) => String(n).padStart(2, "0"), ge = (n) => {
|
|
1486
1486
|
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
1487
1487
|
if (!s) return n;
|
|
1488
|
-
const L = Number(s[1]), me = s[2],
|
|
1489
|
-
return `${L % 12 === 0 ? 12 : L % 12}:${me} ${
|
|
1490
|
-
},
|
|
1488
|
+
const L = Number(s[1]), me = s[2], Se = L >= 12 ? "PM" : "AM";
|
|
1489
|
+
return `${L % 12 === 0 ? 12 : L % 12}:${me} ${Se}`;
|
|
1490
|
+
}, q = (n) => {
|
|
1491
1491
|
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
1492
1492
|
if (!s) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
1493
|
-
const L = Number(s[1]), me = s[2],
|
|
1494
|
-
return { hour12: L % 12 === 0 ? 12 : L % 12, minute: me, meridiem:
|
|
1493
|
+
const L = Number(s[1]), me = s[2], Se = L >= 12 ? "PM" : "AM";
|
|
1494
|
+
return { hour12: L % 12 === 0 ? 12 : L % 12, minute: me, meridiem: Se };
|
|
1495
1495
|
}, oe = (n) => {
|
|
1496
1496
|
const s = Math.min(12, Math.max(1, n.hour12)), L = /^([0-5]\d)$/.test(n.minute) ? n.minute : "00";
|
|
1497
1497
|
let me = s % 12;
|
|
1498
|
-
return n.meridiem === "PM" && (me += 12), `${
|
|
1499
|
-
}, ce =
|
|
1498
|
+
return n.meridiem === "PM" && (me += 12), `${te(me)}:${L}`;
|
|
1499
|
+
}, ce = K(null), [ae, ie] = W(!1), [fe, ne] = W(
|
|
1500
1500
|
null
|
|
1501
|
-
), de = (o.birthPlace ?? "").trim(), _e = N ? void 0 : "in",
|
|
1501
|
+
), de = (o.birthPlace ?? "").trim(), _e = N ? void 0 : "in", V = j ?? p, ye = Number.isFinite(o.birthPlaceLat) && Number.isFinite(o.birthPlaceLng), ue = de.length > 0 && !ye && !ae, {
|
|
1502
1502
|
predictions: we,
|
|
1503
1503
|
isSearching: be,
|
|
1504
1504
|
loadError: xe,
|
|
1505
1505
|
searchPlaces: Pe,
|
|
1506
|
-
clearPredictions:
|
|
1506
|
+
clearPredictions: y
|
|
1507
1507
|
} = ca({
|
|
1508
|
-
searchLocalities:
|
|
1508
|
+
searchLocalities: V,
|
|
1509
1509
|
restrictCountry: _e
|
|
1510
1510
|
});
|
|
1511
|
-
|
|
1511
|
+
H(() => {
|
|
1512
1512
|
const n = (s) => {
|
|
1513
1513
|
ce.current && (ce.current.contains(s.target) || ie(!1));
|
|
1514
1514
|
};
|
|
1515
1515
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1516
|
-
}, []),
|
|
1516
|
+
}, []), H(() => {
|
|
1517
1517
|
const n = (s) => {
|
|
1518
1518
|
b.current && (b.current.contains(s.target) || (h(!1), C("")));
|
|
1519
1519
|
};
|
|
1520
1520
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1521
|
-
}, []),
|
|
1522
|
-
if (!
|
|
1521
|
+
}, []), H(() => {
|
|
1522
|
+
if (!E) return;
|
|
1523
1523
|
const n = window.setTimeout(() => {
|
|
1524
1524
|
_.current?.focus();
|
|
1525
1525
|
}, 0);
|
|
1526
1526
|
return () => window.clearTimeout(n);
|
|
1527
|
-
}, [
|
|
1528
|
-
if (!
|
|
1527
|
+
}, [E]), H(() => {
|
|
1528
|
+
if (!ae) return;
|
|
1529
1529
|
if (de.length < 2) {
|
|
1530
|
-
|
|
1530
|
+
y();
|
|
1531
1531
|
return;
|
|
1532
1532
|
}
|
|
1533
1533
|
const n = window.setTimeout(async () => {
|
|
1534
1534
|
await Pe(de);
|
|
1535
1535
|
}, 250);
|
|
1536
1536
|
return () => window.clearTimeout(n);
|
|
1537
|
-
}, [
|
|
1537
|
+
}, [y, ae, de, Pe]);
|
|
1538
1538
|
const pe = (n) => {
|
|
1539
1539
|
const s = n.current;
|
|
1540
1540
|
if (!(!s || s.disabled)) {
|
|
@@ -1549,16 +1549,16 @@ const da = ({
|
|
|
1549
1549
|
s.focus(), M.current = s, se.current = Date.now();
|
|
1550
1550
|
}
|
|
1551
1551
|
};
|
|
1552
|
-
return
|
|
1552
|
+
return H(() => {
|
|
1553
1553
|
const n = (s) => {
|
|
1554
|
-
|
|
1554
|
+
Q.current && (Q.current.contains(s.target) || T(!1));
|
|
1555
1555
|
};
|
|
1556
1556
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1557
|
-
}, []),
|
|
1557
|
+
}, []), H(() => {
|
|
1558
1558
|
const n = (L) => {
|
|
1559
|
-
L.target?.closest?.("[data-info-tooltip]") == null &&
|
|
1559
|
+
L.target?.closest?.("[data-info-tooltip]") == null && ne(null);
|
|
1560
1560
|
}, s = (L) => {
|
|
1561
|
-
L.key === "Escape" &&
|
|
1561
|
+
L.key === "Escape" && ne(null);
|
|
1562
1562
|
};
|
|
1563
1563
|
return document.addEventListener("mousedown", n), document.addEventListener("keydown", s), () => {
|
|
1564
1564
|
document.removeEventListener("mousedown", n), document.removeEventListener("keydown", s);
|
|
@@ -1584,7 +1584,7 @@ const da = ({
|
|
|
1584
1584
|
onFocus: () => c?.trackNameSectionClicked?.(),
|
|
1585
1585
|
onChange: (n) => {
|
|
1586
1586
|
const s = n.target.value;
|
|
1587
|
-
|
|
1587
|
+
w({ fullName: s }), D("fullName", s);
|
|
1588
1588
|
},
|
|
1589
1589
|
placeholder: t("formFullNamePlaceholder"),
|
|
1590
1590
|
autoComplete: "name"
|
|
@@ -1604,7 +1604,7 @@ const da = ({
|
|
|
1604
1604
|
type: "button",
|
|
1605
1605
|
className: a.isdSelectTrigger,
|
|
1606
1606
|
"aria-haspopup": "listbox",
|
|
1607
|
-
"aria-expanded":
|
|
1607
|
+
"aria-expanded": E,
|
|
1608
1608
|
onClick: () => {
|
|
1609
1609
|
h((n) => !n), C("");
|
|
1610
1610
|
},
|
|
@@ -1621,7 +1621,7 @@ const da = ({
|
|
|
1621
1621
|
onFocus: () => c?.trackPhoneSectionClicked?.(),
|
|
1622
1622
|
onChange: (n) => {
|
|
1623
1623
|
const s = n.target.value;
|
|
1624
|
-
|
|
1624
|
+
w({ phone: z(s) }), D("phone", z(s));
|
|
1625
1625
|
},
|
|
1626
1626
|
placeholder: t("formPhonePlaceholder"),
|
|
1627
1627
|
autoComplete: "tel",
|
|
@@ -1633,7 +1633,7 @@ const da = ({
|
|
|
1633
1633
|
}
|
|
1634
1634
|
)
|
|
1635
1635
|
] }),
|
|
1636
|
-
|
|
1636
|
+
E && /* @__PURE__ */ r.jsxs(
|
|
1637
1637
|
"div",
|
|
1638
1638
|
{
|
|
1639
1639
|
className: a.isdDropdown,
|
|
@@ -1645,14 +1645,14 @@ const da = ({
|
|
|
1645
1645
|
{
|
|
1646
1646
|
ref: _,
|
|
1647
1647
|
type: "text",
|
|
1648
|
-
value:
|
|
1648
|
+
value: I,
|
|
1649
1649
|
onChange: (n) => C(n.target.value),
|
|
1650
1650
|
placeholder: "Search country",
|
|
1651
1651
|
className: a.isdSearchInput,
|
|
1652
1652
|
"aria-label": "Search country"
|
|
1653
1653
|
}
|
|
1654
1654
|
) }),
|
|
1655
|
-
|
|
1655
|
+
re.length > 0 ? re.map((n) => /* @__PURE__ */ r.jsxs(
|
|
1656
1656
|
"button",
|
|
1657
1657
|
{
|
|
1658
1658
|
type: "button",
|
|
@@ -1660,7 +1660,7 @@ const da = ({
|
|
|
1660
1660
|
"aria-selected": n.code === m,
|
|
1661
1661
|
className: `${a.isdOption} ${n.code === m ? a.isdOptionActive : ""}`,
|
|
1662
1662
|
onClick: () => {
|
|
1663
|
-
|
|
1663
|
+
k(n.code), h(!1), C("");
|
|
1664
1664
|
},
|
|
1665
1665
|
children: [
|
|
1666
1666
|
/* @__PURE__ */ r.jsx("span", { className: a.isdCountryName, children: n.country }),
|
|
@@ -1674,7 +1674,7 @@ const da = ({
|
|
|
1674
1674
|
)
|
|
1675
1675
|
] }) })
|
|
1676
1676
|
] }),
|
|
1677
|
-
|
|
1677
|
+
S && /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
|
|
1678
1678
|
/* @__PURE__ */ r.jsx("div", { className: a.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: a.label, children: [
|
|
1679
1679
|
t("formGender"),
|
|
1680
1680
|
/* @__PURE__ */ r.jsx("span", { className: a.req, children: "*" })
|
|
@@ -1693,7 +1693,7 @@ const da = ({
|
|
|
1693
1693
|
type: "button",
|
|
1694
1694
|
className: `${a.choiceBtn} ${o.gender === "male" ? a.choiceBtnActive : ""}`,
|
|
1695
1695
|
onClick: () => {
|
|
1696
|
-
|
|
1696
|
+
w({ gender: "male" }), c?.trackGenderSelected?.({
|
|
1697
1697
|
gender: "male"
|
|
1698
1698
|
});
|
|
1699
1699
|
},
|
|
@@ -1709,7 +1709,7 @@ const da = ({
|
|
|
1709
1709
|
type: "button",
|
|
1710
1710
|
className: `${a.choiceBtn} ${o.gender === "female" ? a.choiceBtnActive : ""}`,
|
|
1711
1711
|
onClick: () => {
|
|
1712
|
-
|
|
1712
|
+
w({ gender: "female" }), c?.trackGenderSelected?.({
|
|
1713
1713
|
gender: "female"
|
|
1714
1714
|
});
|
|
1715
1715
|
},
|
|
@@ -1735,7 +1735,7 @@ const da = ({
|
|
|
1735
1735
|
className: a.input,
|
|
1736
1736
|
type: "email",
|
|
1737
1737
|
value: o.email,
|
|
1738
|
-
onChange: (n) =>
|
|
1738
|
+
onChange: (n) => w({ email: n.target.value }),
|
|
1739
1739
|
placeholder: t("formEmailPlaceholder"),
|
|
1740
1740
|
autoComplete: "email",
|
|
1741
1741
|
required: !0,
|
|
@@ -1758,7 +1758,7 @@ const da = ({
|
|
|
1758
1758
|
"aria-label": t("info"),
|
|
1759
1759
|
"aria-expanded": fe === "dob",
|
|
1760
1760
|
onClick: () => {
|
|
1761
|
-
|
|
1761
|
+
ne((n) => n === "dob" ? null : "dob"), c?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
1762
1762
|
},
|
|
1763
1763
|
children: /* @__PURE__ */ r.jsx(
|
|
1764
1764
|
"img",
|
|
@@ -1784,20 +1784,20 @@ const da = ({
|
|
|
1784
1784
|
id: "kundli-dob",
|
|
1785
1785
|
className: a.input,
|
|
1786
1786
|
type: "date",
|
|
1787
|
-
ref:
|
|
1787
|
+
ref: Y,
|
|
1788
1788
|
value: o.dateOfBirth,
|
|
1789
1789
|
max: (() => {
|
|
1790
1790
|
const n = /* @__PURE__ */ new Date();
|
|
1791
|
-
return `${n.getFullYear()}-${
|
|
1791
|
+
return `${n.getFullYear()}-${te(n.getMonth() + 1)}-${te(n.getDate())}`;
|
|
1792
1792
|
})(),
|
|
1793
1793
|
onChange: (n) => {
|
|
1794
|
-
const s = n.target.value, L = /* @__PURE__ */ new Date(), me = `${L.getFullYear()}-${
|
|
1795
|
-
s && s > me || (
|
|
1794
|
+
const s = n.target.value, L = /* @__PURE__ */ new Date(), me = `${L.getFullYear()}-${te(L.getMonth() + 1)}-${te(L.getDate())}`;
|
|
1795
|
+
s && s > me || (w({ dateOfBirth: s }), D("dateOfBirth", s), M.current = null);
|
|
1796
1796
|
},
|
|
1797
1797
|
onFocus: () => c?.trackDobClicked?.(),
|
|
1798
|
-
onClick: () => pe(
|
|
1798
|
+
onClick: () => pe(Y),
|
|
1799
1799
|
onBlur: () => {
|
|
1800
|
-
M.current ===
|
|
1800
|
+
M.current === Y.current && (M.current = null);
|
|
1801
1801
|
}
|
|
1802
1802
|
}
|
|
1803
1803
|
),
|
|
@@ -1809,7 +1809,7 @@ const da = ({
|
|
|
1809
1809
|
"aria-label": "Open date picker",
|
|
1810
1810
|
onMouseDown: (n) => n.preventDefault(),
|
|
1811
1811
|
onClick: (n) => {
|
|
1812
|
-
n.preventDefault(), n.stopPropagation(), pe(
|
|
1812
|
+
n.preventDefault(), n.stopPropagation(), pe(Y);
|
|
1813
1813
|
},
|
|
1814
1814
|
children: /* @__PURE__ */ r.jsx(
|
|
1815
1815
|
"img",
|
|
@@ -1839,7 +1839,7 @@ const da = ({
|
|
|
1839
1839
|
"aria-label": t("info"),
|
|
1840
1840
|
"aria-expanded": fe === "time",
|
|
1841
1841
|
onClick: () => {
|
|
1842
|
-
c?.trackInfoIconClicked?.({ fieldName: "time" }),
|
|
1842
|
+
c?.trackInfoIconClicked?.({ fieldName: "time" }), ne((n) => n === "time" ? null : "time");
|
|
1843
1843
|
},
|
|
1844
1844
|
children: /* @__PURE__ */ r.jsx(
|
|
1845
1845
|
"img",
|
|
@@ -1858,7 +1858,7 @@ const da = ({
|
|
|
1858
1858
|
] })
|
|
1859
1859
|
] })
|
|
1860
1860
|
] }),
|
|
1861
|
-
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref:
|
|
1861
|
+
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref: Q, children: [
|
|
1862
1862
|
/* @__PURE__ */ r.jsx(
|
|
1863
1863
|
"input",
|
|
1864
1864
|
{
|
|
@@ -1870,12 +1870,12 @@ const da = ({
|
|
|
1870
1870
|
onFocus: () => c?.trackTimeClicked?.(),
|
|
1871
1871
|
onChange: (n) => {
|
|
1872
1872
|
const s = n.target.value;
|
|
1873
|
-
|
|
1873
|
+
w({ birthTime: s }), D("birthTime", s);
|
|
1874
1874
|
},
|
|
1875
1875
|
disabled: o.birthTimeUnknown,
|
|
1876
1876
|
placeholder: "HH:MM AM",
|
|
1877
1877
|
onClick: () => {
|
|
1878
|
-
o.birthTimeUnknown || (
|
|
1878
|
+
o.birthTimeUnknown || (X(q(o.birthTime || "12:00")), T((n) => !n));
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
1881
|
),
|
|
@@ -1888,7 +1888,7 @@ const da = ({
|
|
|
1888
1888
|
disabled: o.birthTimeUnknown,
|
|
1889
1889
|
onMouseDown: (n) => n.preventDefault(),
|
|
1890
1890
|
onClick: (n) => {
|
|
1891
|
-
n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (
|
|
1891
|
+
n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (X(q(o.birthTime || "12:00")), T((s) => !s));
|
|
1892
1892
|
},
|
|
1893
1893
|
children: /* @__PURE__ */ r.jsx(
|
|
1894
1894
|
"img",
|
|
@@ -1901,7 +1901,7 @@ const da = ({
|
|
|
1901
1901
|
)
|
|
1902
1902
|
}
|
|
1903
1903
|
),
|
|
1904
|
-
|
|
1904
|
+
G && !o.birthTimeUnknown && /* @__PURE__ */ r.jsxs(
|
|
1905
1905
|
"div",
|
|
1906
1906
|
{
|
|
1907
1907
|
className: a.timePopover,
|
|
@@ -1913,8 +1913,8 @@ const da = ({
|
|
|
1913
1913
|
"select",
|
|
1914
1914
|
{
|
|
1915
1915
|
className: a.timePickerSelect,
|
|
1916
|
-
value:
|
|
1917
|
-
onChange: (n) =>
|
|
1916
|
+
value: F.hour12,
|
|
1917
|
+
onChange: (n) => X((s) => ({
|
|
1918
1918
|
...s,
|
|
1919
1919
|
hour12: Number(n.target.value)
|
|
1920
1920
|
})),
|
|
@@ -1927,10 +1927,10 @@ const da = ({
|
|
|
1927
1927
|
"select",
|
|
1928
1928
|
{
|
|
1929
1929
|
className: a.timePickerSelect,
|
|
1930
|
-
value:
|
|
1931
|
-
onChange: (n) =>
|
|
1930
|
+
value: F.minute,
|
|
1931
|
+
onChange: (n) => X((s) => ({ ...s, minute: n.target.value })),
|
|
1932
1932
|
"aria-label": "Minute",
|
|
1933
|
-
children: Array.from({ length: 60 }, (n, s) =>
|
|
1933
|
+
children: Array.from({ length: 60 }, (n, s) => te(s)).map(
|
|
1934
1934
|
(n) => /* @__PURE__ */ r.jsx("option", { value: n, children: n }, n)
|
|
1935
1935
|
)
|
|
1936
1936
|
}
|
|
@@ -1940,8 +1940,8 @@ const da = ({
|
|
|
1940
1940
|
"button",
|
|
1941
1941
|
{
|
|
1942
1942
|
type: "button",
|
|
1943
|
-
className: `${a.meridiemBtn} ${
|
|
1944
|
-
onClick: () =>
|
|
1943
|
+
className: `${a.meridiemBtn} ${F.meridiem === "AM" ? a.meridiemActive : ""}`,
|
|
1944
|
+
onClick: () => X((n) => ({ ...n, meridiem: "AM" })),
|
|
1945
1945
|
children: "AM"
|
|
1946
1946
|
}
|
|
1947
1947
|
),
|
|
@@ -1949,8 +1949,8 @@ const da = ({
|
|
|
1949
1949
|
"button",
|
|
1950
1950
|
{
|
|
1951
1951
|
type: "button",
|
|
1952
|
-
className: `${a.meridiemBtn} ${
|
|
1953
|
-
onClick: () =>
|
|
1952
|
+
className: `${a.meridiemBtn} ${F.meridiem === "PM" ? a.meridiemActive : ""}`,
|
|
1953
|
+
onClick: () => X((n) => ({ ...n, meridiem: "PM" })),
|
|
1954
1954
|
children: "PM"
|
|
1955
1955
|
}
|
|
1956
1956
|
)
|
|
@@ -1962,7 +1962,7 @@ const da = ({
|
|
|
1962
1962
|
{
|
|
1963
1963
|
type: "button",
|
|
1964
1964
|
className: a.timePopoverBtn,
|
|
1965
|
-
onClick: () =>
|
|
1965
|
+
onClick: () => T(!1),
|
|
1966
1966
|
children: "Cancel"
|
|
1967
1967
|
}
|
|
1968
1968
|
),
|
|
@@ -1972,8 +1972,8 @@ const da = ({
|
|
|
1972
1972
|
type: "button",
|
|
1973
1973
|
className: `${a.timePopoverBtn} ${a.timePopoverOk}`,
|
|
1974
1974
|
onClick: () => {
|
|
1975
|
-
const n = oe(
|
|
1976
|
-
|
|
1975
|
+
const n = oe(F);
|
|
1976
|
+
w({ birthTime: n }), D("birthTime", n), T(!1);
|
|
1977
1977
|
},
|
|
1978
1978
|
"aria-label": "OK",
|
|
1979
1979
|
children: /* @__PURE__ */ r.jsx(
|
|
@@ -2013,7 +2013,7 @@ const da = ({
|
|
|
2013
2013
|
type: "checkbox",
|
|
2014
2014
|
checked: o.birthTimeUnknown,
|
|
2015
2015
|
onChange: (n) => {
|
|
2016
|
-
c?.trackTimeCheckboxClicked?.(),
|
|
2016
|
+
c?.trackTimeCheckboxClicked?.(), w({
|
|
2017
2017
|
birthTimeUnknown: n.target.checked,
|
|
2018
2018
|
birthTime: n.target.checked ? "" : o.birthTime
|
|
2019
2019
|
});
|
|
@@ -2051,7 +2051,7 @@ const da = ({
|
|
|
2051
2051
|
onClick: () => {
|
|
2052
2052
|
c?.trackInfoIconClicked?.({
|
|
2053
2053
|
fieldName: "birthPlace"
|
|
2054
|
-
}),
|
|
2054
|
+
}), ne((n) => n === "place" ? null : "place");
|
|
2055
2055
|
},
|
|
2056
2056
|
children: /* @__PURE__ */ r.jsx(
|
|
2057
2057
|
"img",
|
|
@@ -2080,11 +2080,11 @@ const da = ({
|
|
|
2080
2080
|
value: o.birthPlace,
|
|
2081
2081
|
onChange: (n) => {
|
|
2082
2082
|
const s = n.target.value;
|
|
2083
|
-
|
|
2083
|
+
w({
|
|
2084
2084
|
birthPlace: s,
|
|
2085
2085
|
birthPlaceLat: void 0,
|
|
2086
2086
|
birthPlaceLng: void 0
|
|
2087
|
-
}),
|
|
2087
|
+
}), D("birthPlace", s), ie(!0);
|
|
2088
2088
|
},
|
|
2089
2089
|
onFocus: () => {
|
|
2090
2090
|
c?.trackPlaceOfBirthClicked?.(), ie(!0);
|
|
@@ -2102,17 +2102,17 @@ const da = ({
|
|
|
2102
2102
|
"aria-hidden": !0
|
|
2103
2103
|
}
|
|
2104
2104
|
) }),
|
|
2105
|
-
|
|
2105
|
+
ae && we.length > 0 && /* @__PURE__ */ r.jsx("div", { className: a.suggestions, role: "listbox", children: we.slice(0, 8).map((n) => /* @__PURE__ */ r.jsxs(
|
|
2106
2106
|
"button",
|
|
2107
2107
|
{
|
|
2108
2108
|
type: "button",
|
|
2109
2109
|
className: a.suggestionItem,
|
|
2110
2110
|
onClick: () => {
|
|
2111
|
-
|
|
2111
|
+
w({
|
|
2112
2112
|
birthPlace: n.description,
|
|
2113
2113
|
birthPlaceLat: n.lat,
|
|
2114
2114
|
birthPlaceLng: n.lng
|
|
2115
|
-
}),
|
|
2115
|
+
}), y(), ie(!1);
|
|
2116
2116
|
},
|
|
2117
2117
|
children: [
|
|
2118
2118
|
/* @__PURE__ */ r.jsx("span", { className: a.suggestionMain, children: n.description }),
|
|
@@ -2121,12 +2121,12 @@ const da = ({
|
|
|
2121
2121
|
},
|
|
2122
2122
|
n.id
|
|
2123
2123
|
)) }),
|
|
2124
|
-
|
|
2125
|
-
|
|
2124
|
+
ae && !!V && be && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: "Loading…" }),
|
|
2125
|
+
ae && !!V && !be && !!xe && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: xe })
|
|
2126
2126
|
] }),
|
|
2127
2127
|
ue && /* @__PURE__ */ r.jsx("p", { className: a.fieldError, children: "Please select a place from the dropdown list." })
|
|
2128
2128
|
] }),
|
|
2129
|
-
|
|
2129
|
+
S && /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
|
|
2130
2130
|
/* @__PURE__ */ r.jsx("div", { className: a.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: a.label, children: [
|
|
2131
2131
|
t("formReportLanguage"),
|
|
2132
2132
|
/* @__PURE__ */ r.jsx("span", { className: a.req, children: "*" })
|
|
@@ -2145,7 +2145,7 @@ const da = ({
|
|
|
2145
2145
|
type: "button",
|
|
2146
2146
|
className: `${a.choiceBtn} ${o.language_code === "hi" ? a.choiceBtnActive : ""}`,
|
|
2147
2147
|
onClick: () => {
|
|
2148
|
-
|
|
2148
|
+
w({ language_code: "hi" }), c?.trackLanguageOfReportSelected?.({
|
|
2149
2149
|
language: "hi"
|
|
2150
2150
|
});
|
|
2151
2151
|
},
|
|
@@ -2161,7 +2161,7 @@ const da = ({
|
|
|
2161
2161
|
type: "button",
|
|
2162
2162
|
className: `${a.choiceBtn} ${o.language_code === "en" ? a.choiceBtnActive : ""}`,
|
|
2163
2163
|
onClick: () => {
|
|
2164
|
-
|
|
2164
|
+
w({ language_code: "en" }), c?.trackLanguageOfReportSelected?.({
|
|
2165
2165
|
language: "en"
|
|
2166
2166
|
});
|
|
2167
2167
|
},
|
|
@@ -2177,7 +2177,7 @@ const da = ({
|
|
|
2177
2177
|
type: "button",
|
|
2178
2178
|
className: `${a.choiceBtn} ${o.language_code === "te" ? a.choiceBtnActive : ""}`,
|
|
2179
2179
|
onClick: () => {
|
|
2180
|
-
|
|
2180
|
+
w({ language_code: "te" }), c?.trackLanguageOfReportSelected?.({
|
|
2181
2181
|
language: "te"
|
|
2182
2182
|
});
|
|
2183
2183
|
},
|
|
@@ -2193,7 +2193,7 @@ const da = ({
|
|
|
2193
2193
|
type: "button",
|
|
2194
2194
|
className: `${a.choiceBtn} ${o.language_code === "ta" ? a.choiceBtnActive : ""}`,
|
|
2195
2195
|
onClick: () => {
|
|
2196
|
-
|
|
2196
|
+
w({ language_code: "ta" }), c?.trackLanguageOfReportSelected?.({
|
|
2197
2197
|
language: "ta"
|
|
2198
2198
|
});
|
|
2199
2199
|
},
|
|
@@ -2209,7 +2209,7 @@ const da = ({
|
|
|
2209
2209
|
type: "button",
|
|
2210
2210
|
className: `${a.choiceBtn} ${o.language_code === "kn" ? a.choiceBtnActive : ""}`,
|
|
2211
2211
|
onClick: () => {
|
|
2212
|
-
|
|
2212
|
+
w({ language_code: "kn" }), c?.trackLanguageOfReportSelected?.({
|
|
2213
2213
|
language: "kn"
|
|
2214
2214
|
});
|
|
2215
2215
|
},
|
|
@@ -2225,7 +2225,7 @@ const da = ({
|
|
|
2225
2225
|
type: "button",
|
|
2226
2226
|
className: `${a.choiceBtn} ${o.language_code === "gu" ? a.choiceBtnActive : ""}`,
|
|
2227
2227
|
onClick: () => {
|
|
2228
|
-
|
|
2228
|
+
w({ language_code: "gu" }), c?.trackLanguageOfReportSelected?.({
|
|
2229
2229
|
language: "gu"
|
|
2230
2230
|
});
|
|
2231
2231
|
},
|
|
@@ -2241,7 +2241,7 @@ const da = ({
|
|
|
2241
2241
|
type: "button",
|
|
2242
2242
|
className: `${a.choiceBtn} ${o.language_code === "mr" ? a.choiceBtnActive : ""}`,
|
|
2243
2243
|
onClick: () => {
|
|
2244
|
-
|
|
2244
|
+
w({ language_code: "mr" }), c?.trackLanguageOfReportSelected?.({
|
|
2245
2245
|
language: "mr"
|
|
2246
2246
|
});
|
|
2247
2247
|
},
|
|
@@ -2257,13 +2257,13 @@ const da = ({
|
|
|
2257
2257
|
] }) })
|
|
2258
2258
|
}
|
|
2259
2259
|
);
|
|
2260
|
-
}, ua = "_ctaButton_rhimw_2", ma = "_ctaFilled_rhimw_21", fa = "_ctaFilledContent_rhimw_52", pa = "_chevronRight_rhimw_61",
|
|
2260
|
+
}, ua = "_ctaButton_rhimw_2", ma = "_ctaFilled_rhimw_21", fa = "_ctaFilledContent_rhimw_52", pa = "_chevronRight_rhimw_61", Ne = {
|
|
2261
2261
|
ctaButton: ua,
|
|
2262
2262
|
ctaFilled: ma,
|
|
2263
2263
|
ctaFilledContent: fa,
|
|
2264
2264
|
chevronRight: pa
|
|
2265
2265
|
}, hr = "kundli-report-astrologer", ha = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", ga = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", _a = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", ba = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", ya = ({ t }) => {
|
|
2266
|
-
const d =
|
|
2266
|
+
const d = Re()?.config.imageComponent ?? De;
|
|
2267
2267
|
return /* @__PURE__ */ r.jsxs("div", { className: ke.marqueeContent, children: [
|
|
2268
2268
|
/* @__PURE__ */ r.jsxs("span", { className: ke.badge, children: [
|
|
2269
2269
|
/* @__PURE__ */ r.jsx(
|
|
@@ -2315,6 +2315,8 @@ const da = ({
|
|
|
2315
2315
|
} else if (!ka((t.phone ?? "").trim())) return "phone";
|
|
2316
2316
|
if (!t.dateOfBirth) return "dateOfBirth";
|
|
2317
2317
|
if (!t.birthPlace.trim()) return "birthPlace";
|
|
2318
|
+
if (!Number.isFinite(t.birthPlaceLat) || !Number.isFinite(t.birthPlaceLng))
|
|
2319
|
+
return "birthPlaceCoordinates";
|
|
2318
2320
|
if (d) {
|
|
2319
2321
|
if (!t.gender) return "gender";
|
|
2320
2322
|
if (!t.language_code) return "language_code";
|
|
@@ -2325,52 +2327,62 @@ const da = ({
|
|
|
2325
2327
|
values: o,
|
|
2326
2328
|
phoneIsdCode: d,
|
|
2327
2329
|
hideOriginalPrice: m = !1,
|
|
2328
|
-
requireV1ExtraFields:
|
|
2329
|
-
onValidationFailed:
|
|
2330
|
+
requireV1ExtraFields: k = !1,
|
|
2331
|
+
onValidationFailed: S,
|
|
2330
2332
|
onProceed: x,
|
|
2331
2333
|
onProceedGuidance: j,
|
|
2332
2334
|
href: A,
|
|
2333
|
-
analytics:
|
|
2335
|
+
analytics: B,
|
|
2334
2336
|
className: c = "",
|
|
2335
2337
|
discountedPriceLabel: N,
|
|
2336
2338
|
showPlanSheet: p,
|
|
2337
|
-
confirmPlan:
|
|
2339
|
+
confirmPlan: E,
|
|
2338
2340
|
planSheetOpen: h,
|
|
2339
|
-
selectedPlan:
|
|
2341
|
+
selectedPlan: I
|
|
2340
2342
|
}) => {
|
|
2341
|
-
const C =
|
|
2342
|
-
() => wa(o, b,
|
|
2343
|
-
[o, b,
|
|
2344
|
-
),
|
|
2345
|
-
|
|
2346
|
-
|
|
2343
|
+
const C = Re(), b = C?.config.isGlobal ?? !0, _ = C?.config?.variant, [U, w] = W(!1), D = Ue(
|
|
2344
|
+
() => wa(o, b, k),
|
|
2345
|
+
[o, b, k]
|
|
2346
|
+
), z = D === null, J = _ === "v1" && C?.config?.showSheet;
|
|
2347
|
+
H(() => {
|
|
2348
|
+
if (!U) return;
|
|
2349
|
+
const Q = window.setTimeout(() => {
|
|
2350
|
+
w(!1);
|
|
2351
|
+
}, 2200);
|
|
2352
|
+
return () => window.clearTimeout(Q);
|
|
2353
|
+
}, [U]);
|
|
2354
|
+
const re = b ? N ?? t("formDiscountedPrice") : J ? "" : "₹499", Y = C?.config.imageComponent ?? De, M = (Q) => {
|
|
2355
|
+
if (Q.preventDefault(), !z) {
|
|
2356
|
+
D && (S?.(
|
|
2357
|
+
D === "birthPlaceCoordinates" ? "birthPlace" : D
|
|
2358
|
+
), D === "birthPlaceCoordinates" && w(!0));
|
|
2347
2359
|
return;
|
|
2348
2360
|
}
|
|
2349
|
-
const
|
|
2361
|
+
const G = !!j && _ === "v1" && I?.id === hr, T = (o.phone ?? "").trim(), F = {
|
|
2350
2362
|
...o,
|
|
2351
|
-
phone:
|
|
2363
|
+
phone: T && `${d}-${T}`
|
|
2352
2364
|
};
|
|
2353
|
-
if (
|
|
2354
|
-
h ?
|
|
2365
|
+
if (J) {
|
|
2366
|
+
h ? E?.() : p?.(F);
|
|
2355
2367
|
return;
|
|
2356
2368
|
}
|
|
2357
|
-
|
|
2358
|
-
},
|
|
2359
|
-
|
|
2369
|
+
B?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), G ? j(F) : x?.(F);
|
|
2370
|
+
}, se = /* @__PURE__ */ r.jsx(
|
|
2371
|
+
Fr,
|
|
2360
2372
|
{
|
|
2361
2373
|
href: A,
|
|
2362
|
-
disabled: _ === "v1" ? !1 : !
|
|
2363
|
-
onClick:
|
|
2374
|
+
disabled: _ === "v1" ? !1 : !z,
|
|
2375
|
+
onClick: M,
|
|
2364
2376
|
"aria-label": t("formPriceAria"),
|
|
2365
|
-
className: _ === "v1" &&
|
|
2366
|
-
children: _ === "v1" ?
|
|
2367
|
-
|
|
2377
|
+
className: _ === "v1" && z ? Ne.ctaFilled : _ === "v1" ? Ne.ctaButton : void 0,
|
|
2378
|
+
children: _ === "v1" ? z ? /* @__PURE__ */ r.jsxs("span", { className: Ne.ctaFilledContent, children: [
|
|
2379
|
+
J ? t("selectPackage") : h && I ? `${t("proceedWithPlan")}${I.price}` : `${t("formProceed")} ${re}`,
|
|
2368
2380
|
/* @__PURE__ */ r.jsx(
|
|
2369
|
-
|
|
2381
|
+
Y,
|
|
2370
2382
|
{
|
|
2371
2383
|
src: ba,
|
|
2372
2384
|
alt: "",
|
|
2373
|
-
className:
|
|
2385
|
+
className: Ne.chevronRight,
|
|
2374
2386
|
width: 20,
|
|
2375
2387
|
height: 20,
|
|
2376
2388
|
loading: "lazy"
|
|
@@ -2379,16 +2391,19 @@ const da = ({
|
|
|
2379
2391
|
] }) : t("formCtaDefault") : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2380
2392
|
t("formProceed"),
|
|
2381
2393
|
" ",
|
|
2382
|
-
|
|
2394
|
+
re
|
|
2383
2395
|
] })
|
|
2384
2396
|
}
|
|
2385
2397
|
);
|
|
2386
|
-
return /* @__PURE__ */ r.
|
|
2387
|
-
|
|
2398
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2399
|
+
Or,
|
|
2388
2400
|
{
|
|
2389
|
-
className: `${
|
|
2401
|
+
className: `${Ne.footerContainer} ${c}`,
|
|
2390
2402
|
marquee: /* @__PURE__ */ r.jsx(Mr, { children: /* @__PURE__ */ r.jsx(ya, { t }) }),
|
|
2391
|
-
children:
|
|
2403
|
+
children: [
|
|
2404
|
+
U && /* @__PURE__ */ r.jsx("div", { className: Ne.validationToast, role: "alert", "aria-live": "assertive", children: t("formFillAllFields") }),
|
|
2405
|
+
se
|
|
2406
|
+
]
|
|
2392
2407
|
}
|
|
2393
2408
|
);
|
|
2394
2409
|
}, Pa = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", Aa = ({
|
|
@@ -2397,13 +2412,13 @@ const da = ({
|
|
|
2397
2412
|
logoUrl: d = Pa,
|
|
2398
2413
|
className: m = ""
|
|
2399
2414
|
}) => {
|
|
2400
|
-
const
|
|
2415
|
+
const k = Re(), S = k?.config.isGlobal ?? !0, x = o != null && !S;
|
|
2401
2416
|
return /* @__PURE__ */ r.jsx(
|
|
2402
2417
|
$r,
|
|
2403
2418
|
{
|
|
2404
2419
|
t,
|
|
2405
2420
|
logoUrl: d,
|
|
2406
|
-
imageComponent:
|
|
2421
|
+
imageComponent: k?.config.imageComponent,
|
|
2407
2422
|
languageSelector: o,
|
|
2408
2423
|
showLanguageSelector: x,
|
|
2409
2424
|
className: m
|
|
@@ -2429,7 +2444,7 @@ const da = ({
|
|
|
2429
2444
|
) }), Na = () => /* @__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" }) }), Ta = () => /* @__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: [
|
|
2430
2445
|
/* @__PURE__ */ r.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
2431
2446
|
/* @__PURE__ */ r.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
2432
|
-
] }), Ra = "_overlay_18irl_2", Sa = "_sheet_18irl_12", Ea = "_header_18irl_36", Ia = "_backBtn_18irl_48", Ba = "_title_18irl_66", La = "_plansContainer_18irl_78", Da = "_planCard_18irl_87",
|
|
2447
|
+
] }), Ra = "_overlay_18irl_2", Sa = "_sheet_18irl_12", Ea = "_header_18irl_36", Ia = "_backBtn_18irl_48", Ba = "_title_18irl_66", La = "_plansContainer_18irl_78", Da = "_planCard_18irl_87", Fa = "_withBadgeSpacing_18irl_101", Oa = "_planCardSelected_18irl_105", Ma = "_planCardPopular_18irl_110", $a = "_popularBadge_18irl_119", Ua = "_planCardInner_18irl_137", Ga = "_planTitleRow_18irl_148", Wa = "_planTitle_18irl_148", Ka = "_radioCircle_18irl_163", Ha = "_radioChecked_18irl_176", Ya = "_radioInner_18irl_181", qa = "_priceRow_18irl_189", Va = "_price_18irl_189", za = "_originalPrice_18irl_202", Ja = "_savingsBadge_18irl_209", Qa = "_featureList_18irl_219", Xa = "_featureItem_18irl_228", Za = "_featureIcon_18irl_234", en = "_featureText_18irl_240", rn = "_astrologerHeading_18irl_251", tn = "_astrologerList_18irl_258", an = "_astrologerCard_18irl_274", nn = "_astrologerAvatar_18irl_290", on = "_astrologerAvatarPlaceholder_18irl_307", ln = "_astrologerTop_18irl_313", sn = "_astrologerBasicInfo_18irl_319", cn = "_astrologerName_18irl_326", dn = "_astrologerExp_18irl_335", un = "_astrologerDivider_18irl_341", mn = "_planDivider_18irl_347", fn = "_astrologerCertList_18irl_354", pn = "_astrologerCertItem_18irl_360", hn = "_bullet_18irl_368", gn = "_footer_18irl_373", _n = "_proceedBtn_18irl_383", f = {
|
|
2433
2448
|
overlay: Ra,
|
|
2434
2449
|
sheet: Sa,
|
|
2435
2450
|
header: Ea,
|
|
@@ -2437,8 +2452,8 @@ const da = ({
|
|
|
2437
2452
|
title: Ba,
|
|
2438
2453
|
plansContainer: La,
|
|
2439
2454
|
planCard: Da,
|
|
2440
|
-
withBadgeSpacing:
|
|
2441
|
-
planCardSelected:
|
|
2455
|
+
withBadgeSpacing: Fa,
|
|
2456
|
+
planCardSelected: Oa,
|
|
2442
2457
|
planCardPopular: Ma,
|
|
2443
2458
|
popularBadge: $a,
|
|
2444
2459
|
planCardInner: Ua,
|
|
@@ -2510,7 +2525,7 @@ const da = ({
|
|
|
2510
2525
|
/* @__PURE__ */ r.jsx(Ta, {}),
|
|
2511
2526
|
/* @__PURE__ */ r.jsx("span", { children: t })
|
|
2512
2527
|
] }), wn = ({ plan: t, isSelected: o, onSelect: d, t: m }) => {
|
|
2513
|
-
const
|
|
2528
|
+
const k = () => d(t.id), S = (x) => {
|
|
2514
2529
|
(x.key === " " || x.key === "Enter") && (x.preventDefault(), d(t.id));
|
|
2515
2530
|
};
|
|
2516
2531
|
return /* @__PURE__ */ r.jsxs(
|
|
@@ -2521,11 +2536,11 @@ const da = ({
|
|
|
2521
2536
|
o ? f.planCardSelected : "",
|
|
2522
2537
|
o && f.planCardPopular
|
|
2523
2538
|
].filter(Boolean).join(" "),
|
|
2524
|
-
onClick:
|
|
2539
|
+
onClick: k,
|
|
2525
2540
|
role: "radio",
|
|
2526
2541
|
"aria-checked": o,
|
|
2527
2542
|
tabIndex: 0,
|
|
2528
|
-
onKeyDown:
|
|
2543
|
+
onKeyDown: S,
|
|
2529
2544
|
"data-plan-id": t.id,
|
|
2530
2545
|
children: [
|
|
2531
2546
|
t.badge && /* @__PURE__ */ r.jsx(kn, { label: m?.(t.badge) ?? t.badge }),
|
|
@@ -2619,13 +2634,13 @@ const da = ({
|
|
|
2619
2634
|
onClose: o,
|
|
2620
2635
|
selectedPlan: d,
|
|
2621
2636
|
onSelectPlan: m,
|
|
2622
|
-
plans:
|
|
2623
|
-
onProceed:
|
|
2637
|
+
plans: k,
|
|
2638
|
+
onProceed: S,
|
|
2624
2639
|
t: x,
|
|
2625
2640
|
analytics: j
|
|
2626
2641
|
}) => {
|
|
2627
|
-
const
|
|
2628
|
-
|
|
2642
|
+
const B = Re()?.config.isGlobal ?? !0, c = k ?? Pn(B), N = d?.id || c.find((C) => C.badge)?.id || c[0]?.id || "", p = K(null), E = K(null), h = K(!1);
|
|
2643
|
+
H(() => {
|
|
2629
2644
|
if (t) {
|
|
2630
2645
|
if (!d) {
|
|
2631
2646
|
const C = c.find((b) => b.badge) ?? c[0];
|
|
@@ -2635,10 +2650,10 @@ const da = ({
|
|
|
2635
2650
|
} else
|
|
2636
2651
|
h.current = !1;
|
|
2637
2652
|
}, [t, c, d, m, j]);
|
|
2638
|
-
const
|
|
2653
|
+
const I = () => {
|
|
2639
2654
|
j?.trackPlanPageClosed?.(), o();
|
|
2640
2655
|
};
|
|
2641
|
-
return
|
|
2656
|
+
return H(() => {
|
|
2642
2657
|
if (!t) return;
|
|
2643
2658
|
const C = document.body.style.overflow;
|
|
2644
2659
|
return document.body.style.overflow = "hidden", () => {
|
|
@@ -2661,13 +2676,13 @@ const da = ({
|
|
|
2661
2676
|
bn,
|
|
2662
2677
|
{
|
|
2663
2678
|
title: x?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
2664
|
-
onBack:
|
|
2679
|
+
onBack: I
|
|
2665
2680
|
}
|
|
2666
2681
|
),
|
|
2667
2682
|
/* @__PURE__ */ r.jsx(
|
|
2668
2683
|
"div",
|
|
2669
2684
|
{
|
|
2670
|
-
ref:
|
|
2685
|
+
ref: E,
|
|
2671
2686
|
className: f.plansContainer,
|
|
2672
2687
|
role: "radiogroup",
|
|
2673
2688
|
"aria-label": "Kundli plans",
|
|
@@ -2698,7 +2713,7 @@ const da = ({
|
|
|
2698
2713
|
d && (j?.trackPlanProceedClicked?.({
|
|
2699
2714
|
planId: d.id,
|
|
2700
2715
|
planName: d.title
|
|
2701
|
-
}),
|
|
2716
|
+
}), S(d), o());
|
|
2702
2717
|
},
|
|
2703
2718
|
children: d ? x?.("planProceedToPayment") ?? d.price + "Proceed to Payment" : "Select a plan"
|
|
2704
2719
|
}
|
|
@@ -2725,66 +2740,66 @@ const da = ({
|
|
|
2725
2740
|
locale: o,
|
|
2726
2741
|
showLanguageSelector: d = !0,
|
|
2727
2742
|
onBack: m,
|
|
2728
|
-
initialValues:
|
|
2729
|
-
onProceed:
|
|
2743
|
+
initialValues: k,
|
|
2744
|
+
onProceed: S,
|
|
2730
2745
|
onProceedGuidance: x,
|
|
2731
2746
|
proceedHref: j,
|
|
2732
2747
|
originalPriceLabel: A,
|
|
2733
|
-
discountedPriceLabel:
|
|
2748
|
+
discountedPriceLabel: B,
|
|
2734
2749
|
atlasSearchLocalities: c,
|
|
2735
2750
|
analytics: N
|
|
2736
2751
|
}) => {
|
|
2737
|
-
const p =
|
|
2738
|
-
|
|
2752
|
+
const p = Re(), E = Kr(), h = p !== null, I = h ? p.locale : o, C = I ?? E?.locale ?? "en", [b, _] = W(C), U = h ? p.locale : b, w = h ? p.setLocale : _, [D, z] = W(!1), J = K(null), re = K(I), Y = K(
|
|
2753
|
+
E?.locale
|
|
2739
2754
|
);
|
|
2740
|
-
|
|
2755
|
+
H(() => {
|
|
2741
2756
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
2742
2757
|
}, []);
|
|
2743
|
-
const M = (
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
}, [
|
|
2747
|
-
if (
|
|
2748
|
-
const
|
|
2749
|
-
|
|
2750
|
-
}, [
|
|
2751
|
-
const [se,
|
|
2758
|
+
const M = (y) => jn(U, y);
|
|
2759
|
+
H(() => {
|
|
2760
|
+
I && re.current !== I && w(I), re.current = I;
|
|
2761
|
+
}, [I, w]), H(() => {
|
|
2762
|
+
if (I) return;
|
|
2763
|
+
const y = E?.locale;
|
|
2764
|
+
y && Y.current !== y && w(y), Y.current = y;
|
|
2765
|
+
}, [E?.locale, I, w]);
|
|
2766
|
+
const [se, Q] = W({
|
|
2752
2767
|
...Nn,
|
|
2753
|
-
...
|
|
2754
|
-
phone:
|
|
2755
|
-
}),
|
|
2756
|
-
|
|
2768
|
+
...k,
|
|
2769
|
+
phone: k?.phone ?? ""
|
|
2770
|
+
}), G = h ? p?.config.isGlobal ?? !0 : !0, [T, F] = W(
|
|
2771
|
+
G ? "+1" : "+91"
|
|
2757
2772
|
);
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
}, [
|
|
2761
|
-
const
|
|
2762
|
-
|
|
2763
|
-
if (!
|
|
2764
|
-
const
|
|
2765
|
-
|
|
2773
|
+
H(() => {
|
|
2774
|
+
F(G ? "+1" : "+91");
|
|
2775
|
+
}, [G]);
|
|
2776
|
+
const X = h ? p.formValues : se, te = h ? p.setFormValues : Q, ge = h ? p.goToPage : m, q = h ? p.onProceed : S, oe = h ? p.onProceedGuidance : x, ce = h ? p.config.proceedHref : j, ae = h ? p.config.originalPriceLabel : A, ie = h ? p.config.discountedPriceLabel : B, fe = h ? p.config.showLanguageSelector ?? !0 : d, ne = (h ? p?.config?.analytics : N) ?? N;
|
|
2777
|
+
H(() => {
|
|
2778
|
+
if (!D) return;
|
|
2779
|
+
const y = (pe) => {
|
|
2780
|
+
J.current && !J.current.contains(pe.target) && z(!1);
|
|
2766
2781
|
};
|
|
2767
|
-
return document.addEventListener("mousedown",
|
|
2768
|
-
}, [
|
|
2769
|
-
const [de, _e] = W(!1), [
|
|
2770
|
-
ue.current =
|
|
2771
|
-
}, []), be =
|
|
2772
|
-
if (
|
|
2773
|
-
planId:
|
|
2774
|
-
planName:
|
|
2775
|
-
}), !ue.current || !
|
|
2776
|
-
const
|
|
2777
|
-
|
|
2778
|
-
}, [
|
|
2782
|
+
return document.addEventListener("mousedown", y), () => document.removeEventListener("mousedown", y);
|
|
2783
|
+
}, [D]);
|
|
2784
|
+
const [de, _e] = W(!1), [V, ye] = W(null), ue = K(null), we = Te((y) => {
|
|
2785
|
+
ue.current = y, _e(!0);
|
|
2786
|
+
}, []), be = Te(() => {
|
|
2787
|
+
if (ne?.trackPlanProceedClicked?.({
|
|
2788
|
+
planId: V.id,
|
|
2789
|
+
planName: V.title
|
|
2790
|
+
}), !ue.current || !V) return;
|
|
2791
|
+
const y = { ...ue.current, _selectedPlan: V };
|
|
2792
|
+
V.id === hr && oe ? oe(y) : q?.(y), _e(!1), ue.current = null;
|
|
2793
|
+
}, [V, q, oe]), xe = p?.config.imageComponent ?? De, Pe = fe ? /* @__PURE__ */ r.jsxs("div", { className: he.langDropdownWrap, ref: J, children: [
|
|
2779
2794
|
/* @__PURE__ */ r.jsxs(
|
|
2780
2795
|
"button",
|
|
2781
2796
|
{
|
|
2782
2797
|
type: "button",
|
|
2783
2798
|
className: he.langTrigger,
|
|
2784
2799
|
onClick: () => {
|
|
2785
|
-
|
|
2800
|
+
ne?.trackLanguageClickedFe?.({ language: U }), z((y) => !y);
|
|
2786
2801
|
},
|
|
2787
|
-
"aria-expanded":
|
|
2802
|
+
"aria-expanded": D,
|
|
2788
2803
|
"aria-haspopup": "listbox",
|
|
2789
2804
|
id: "kundli-form-lang",
|
|
2790
2805
|
"aria-label": M("language"),
|
|
@@ -2804,26 +2819,26 @@ const da = ({
|
|
|
2804
2819
|
]
|
|
2805
2820
|
}
|
|
2806
2821
|
),
|
|
2807
|
-
|
|
2822
|
+
D && /* @__PURE__ */ r.jsx(
|
|
2808
2823
|
"ul",
|
|
2809
2824
|
{
|
|
2810
2825
|
className: he.langMenu,
|
|
2811
2826
|
role: "listbox",
|
|
2812
2827
|
"aria-labelledby": "kundli-form-lang",
|
|
2813
2828
|
"aria-activedescendant": `kundli-form-lang-option-${U}`,
|
|
2814
|
-
children: dr.map((
|
|
2829
|
+
children: dr.map((y) => /* @__PURE__ */ r.jsx(
|
|
2815
2830
|
"li",
|
|
2816
2831
|
{
|
|
2817
|
-
id: `kundli-form-lang-option-${
|
|
2832
|
+
id: `kundli-form-lang-option-${y}`,
|
|
2818
2833
|
role: "option",
|
|
2819
|
-
"aria-selected":
|
|
2834
|
+
"aria-selected": y === U,
|
|
2820
2835
|
className: he.langOption,
|
|
2821
2836
|
onClick: () => {
|
|
2822
|
-
|
|
2837
|
+
ne?.trackLanguageChangedFe?.({ newLanguage: y }), w(y), z(!1);
|
|
2823
2838
|
},
|
|
2824
|
-
children: ir[
|
|
2839
|
+
children: ir[y]
|
|
2825
2840
|
},
|
|
2826
|
-
|
|
2841
|
+
y
|
|
2827
2842
|
))
|
|
2828
2843
|
}
|
|
2829
2844
|
)
|
|
@@ -2845,11 +2860,11 @@ const da = ({
|
|
|
2845
2860
|
da,
|
|
2846
2861
|
{
|
|
2847
2862
|
t: M,
|
|
2848
|
-
values:
|
|
2849
|
-
onChange:
|
|
2863
|
+
values: X,
|
|
2864
|
+
onChange: te,
|
|
2850
2865
|
atlasSearchLocalities: c,
|
|
2851
|
-
phoneIsdCode:
|
|
2852
|
-
onPhoneIsdCodeChange:
|
|
2866
|
+
phoneIsdCode: T,
|
|
2867
|
+
onPhoneIsdCodeChange: F
|
|
2853
2868
|
}
|
|
2854
2869
|
)
|
|
2855
2870
|
] }),
|
|
@@ -2857,18 +2872,18 @@ const da = ({
|
|
|
2857
2872
|
xa,
|
|
2858
2873
|
{
|
|
2859
2874
|
t: M,
|
|
2860
|
-
values:
|
|
2861
|
-
phoneIsdCode:
|
|
2862
|
-
onProceed:
|
|
2875
|
+
values: X,
|
|
2876
|
+
phoneIsdCode: T,
|
|
2877
|
+
onProceed: q,
|
|
2863
2878
|
onProceedGuidance: oe,
|
|
2864
2879
|
href: ce,
|
|
2865
|
-
originalPriceLabel:
|
|
2880
|
+
originalPriceLabel: ae,
|
|
2866
2881
|
discountedPriceLabel: ie,
|
|
2867
|
-
analytics:
|
|
2882
|
+
analytics: ne,
|
|
2868
2883
|
showPlanSheet: we,
|
|
2869
2884
|
confirmPlan: be,
|
|
2870
2885
|
planSheetOpen: de,
|
|
2871
|
-
selectedPlan:
|
|
2886
|
+
selectedPlan: V
|
|
2872
2887
|
}
|
|
2873
2888
|
),
|
|
2874
2889
|
p?.config.variant === "v1" && /* @__PURE__ */ r.jsx(
|
|
@@ -2876,17 +2891,17 @@ const da = ({
|
|
|
2876
2891
|
{
|
|
2877
2892
|
isOpen: de,
|
|
2878
2893
|
onClose: () => _e(!1),
|
|
2879
|
-
selectedPlan:
|
|
2894
|
+
selectedPlan: V,
|
|
2880
2895
|
onSelectPlan: ye,
|
|
2881
|
-
onProceed: (
|
|
2882
|
-
be?.(
|
|
2896
|
+
onProceed: (y) => {
|
|
2897
|
+
be?.(y);
|
|
2883
2898
|
},
|
|
2884
2899
|
t: M,
|
|
2885
|
-
analytics:
|
|
2900
|
+
analytics: ne
|
|
2886
2901
|
}
|
|
2887
2902
|
)
|
|
2888
2903
|
] });
|
|
2889
|
-
},
|
|
2904
|
+
}, Fn = {
|
|
2890
2905
|
banner_clicked_fe: "banner_clicked_fe",
|
|
2891
2906
|
primary_cta_clicked_fe: "primary_cta_clicked_fe",
|
|
2892
2907
|
language_changed_fe: "language_changed_fe",
|
|
@@ -2929,7 +2944,7 @@ export {
|
|
|
2929
2944
|
De as D,
|
|
2930
2945
|
st as F,
|
|
2931
2946
|
Sn as I,
|
|
2932
|
-
|
|
2947
|
+
Fn as K,
|
|
2933
2948
|
ir as L,
|
|
2934
2949
|
hr as P,
|
|
2935
2950
|
dr as S,
|
|
@@ -2941,7 +2956,7 @@ export {
|
|
|
2941
2956
|
at as e,
|
|
2942
2957
|
nt as f,
|
|
2943
2958
|
rt as g,
|
|
2944
|
-
|
|
2959
|
+
Re as h,
|
|
2945
2960
|
In as i,
|
|
2946
2961
|
Ln as j,
|
|
2947
2962
|
r as k,
|
|
@@ -2953,4 +2968,4 @@ export {
|
|
|
2953
2968
|
ur as t,
|
|
2954
2969
|
Kr as u
|
|
2955
2970
|
};
|
|
2956
|
-
//# sourceMappingURL=analytics-
|
|
2971
|
+
//# sourceMappingURL=analytics-UzdY5_Zo.js.map
|