@srimandir/kundli-generator 5.30.9 → 5.30.10
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-BG38rt5Y.js → analytics-Bvz01vIv.js} +172 -169
- package/dist/{analytics-BG38rt5Y.js.map → analytics-Bvz01vIv.js.map} +1 -1
- package/dist/analytics.d.ts +2 -0
- package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuPlanBottomSheet.d.ts +2 -0
- package/dist/{criticalCss-DE2hVDRf.js → criticalCss-GTvB2EsF.js} +36 -34
- package/dist/criticalCss-GTvB2EsF.js.map +1 -0
- 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/criticalCss-DE2hVDRf.js.map +0 -1
|
@@ -5,21 +5,21 @@ var nr;
|
|
|
5
5
|
function Kr() {
|
|
6
6
|
if (nr) return Se;
|
|
7
7
|
nr = 1;
|
|
8
|
-
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty,
|
|
9
|
-
function
|
|
8
|
+
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, k = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, B = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
|
+
function w(R, P, L) {
|
|
10
10
|
var d, j = {}, h = null, S = null;
|
|
11
11
|
L !== void 0 && (h = "" + L), P.key !== void 0 && (h = "" + P.key), P.ref !== void 0 && (S = P.ref);
|
|
12
|
-
for (d in P) m.call(P, d) && !
|
|
12
|
+
for (d in P) m.call(P, d) && !B.hasOwnProperty(d) && (j[d] = P[d]);
|
|
13
13
|
if (R && R.defaultProps) for (d in P = R.defaultProps, P) j[d] === void 0 && (j[d] = P[d]);
|
|
14
|
-
return { $$typeof: o, type: R, key: h, ref: S, props: j, _owner:
|
|
14
|
+
return { $$typeof: o, type: R, key: h, ref: S, props: j, _owner: k.current };
|
|
15
15
|
}
|
|
16
|
-
return Se.Fragment = c, Se.jsx =
|
|
16
|
+
return Se.Fragment = c, Se.jsx = w, Se.jsxs = w, Se;
|
|
17
17
|
}
|
|
18
18
|
var Ee = {};
|
|
19
19
|
var or;
|
|
20
20
|
function Hr() {
|
|
21
21
|
return or || (or = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
-
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"),
|
|
22
|
+
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), k = /* @__PURE__ */ Symbol.for("react.strict_mode"), B = /* @__PURE__ */ Symbol.for("react.profiler"), w = /* @__PURE__ */ Symbol.for("react.provider"), R = /* @__PURE__ */ Symbol.for("react.context"), P = /* @__PURE__ */ Symbol.for("react.forward_ref"), L = /* @__PURE__ */ Symbol.for("react.suspense"), d = /* @__PURE__ */ Symbol.for("react.suspense_list"), j = /* @__PURE__ */ Symbol.for("react.memo"), h = /* @__PURE__ */ Symbol.for("react.lazy"), S = /* @__PURE__ */ Symbol.for("react.offscreen"), g = Symbol.iterator, E = "@@iterator";
|
|
23
23
|
function C(e) {
|
|
24
24
|
if (e === null || typeof e != "object")
|
|
25
25
|
return null;
|
|
@@ -27,7 +27,7 @@ function Hr() {
|
|
|
27
27
|
return typeof i == "function" ? i : null;
|
|
28
28
|
}
|
|
29
29
|
var p = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
30
|
-
function
|
|
30
|
+
function v(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];
|
|
@@ -47,7 +47,7 @@ function Hr() {
|
|
|
47
47
|
var b = !1, F = !1, q = !1, X = !1, Z = !1, U;
|
|
48
48
|
U = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
49
|
function Y(e) {
|
|
50
|
-
return !!(typeof e == "string" || typeof e == "function" || e === m || e ===
|
|
50
|
+
return !!(typeof e == "string" || typeof e == "function" || e === m || e === B || Z || e === k || e === L || e === d || X || e === S || b || F || q || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === j || e.$$typeof === w || e.$$typeof === R || e.$$typeof === P || // 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.
|
|
@@ -63,10 +63,10 @@ function Hr() {
|
|
|
63
63
|
function ce(e) {
|
|
64
64
|
return e.displayName || "Context";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function I(e) {
|
|
67
67
|
if (e == null)
|
|
68
68
|
return null;
|
|
69
|
-
if (typeof e.tag == "number" &&
|
|
69
|
+
if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
70
70
|
return e.displayName || e.name || null;
|
|
71
71
|
if (typeof e == "string")
|
|
72
72
|
return e;
|
|
@@ -75,9 +75,9 @@ function Hr() {
|
|
|
75
75
|
return "Fragment";
|
|
76
76
|
case c:
|
|
77
77
|
return "Portal";
|
|
78
|
-
case
|
|
78
|
+
case B:
|
|
79
79
|
return "Profiler";
|
|
80
|
-
case
|
|
80
|
+
case k:
|
|
81
81
|
return "StrictMode";
|
|
82
82
|
case L:
|
|
83
83
|
return "Suspense";
|
|
@@ -89,18 +89,18 @@ function Hr() {
|
|
|
89
89
|
case R:
|
|
90
90
|
var i = e;
|
|
91
91
|
return ce(i) + ".Consumer";
|
|
92
|
-
case
|
|
92
|
+
case w:
|
|
93
93
|
var l = e;
|
|
94
94
|
return ce(l._context) + ".Provider";
|
|
95
95
|
case P:
|
|
96
96
|
return oe(e, e.render, "ForwardRef");
|
|
97
97
|
case j:
|
|
98
98
|
var u = e.displayName || null;
|
|
99
|
-
return u !== null ? u :
|
|
99
|
+
return u !== null ? u : I(e.type) || "Memo";
|
|
100
100
|
case h: {
|
|
101
101
|
var A = e, T = A._payload, y = A._init;
|
|
102
102
|
try {
|
|
103
|
-
return
|
|
103
|
+
return I(y(T));
|
|
104
104
|
} catch {
|
|
105
105
|
return null;
|
|
106
106
|
}
|
|
@@ -108,14 +108,14 @@ function Hr() {
|
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
111
|
-
var N = Object.assign, W = 0,
|
|
111
|
+
var N = Object.assign, W = 0, J, pe, me, V, ee, re, de;
|
|
112
112
|
function te() {
|
|
113
113
|
}
|
|
114
114
|
te.__reactDisabledLog = !0;
|
|
115
115
|
function he() {
|
|
116
116
|
{
|
|
117
117
|
if (W === 0) {
|
|
118
|
-
|
|
118
|
+
J = console.log, pe = console.info, me = console.warn, V = console.error, ee = console.group, re = console.groupCollapsed, de = console.groupEnd;
|
|
119
119
|
var e = {
|
|
120
120
|
configurable: !0,
|
|
121
121
|
enumerable: !0,
|
|
@@ -145,7 +145,7 @@ function Hr() {
|
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
147
147
|
log: N({}, e, {
|
|
148
|
-
value:
|
|
148
|
+
value: J
|
|
149
149
|
}),
|
|
150
150
|
info: N({}, e, {
|
|
151
151
|
value: pe
|
|
@@ -167,11 +167,11 @@ function Hr() {
|
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
W < 0 &&
|
|
170
|
+
W < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
var ge = p.ReactCurrentDispatcher, ue;
|
|
174
|
-
function
|
|
174
|
+
function z(e, i, l) {
|
|
175
175
|
{
|
|
176
176
|
if (ue === void 0)
|
|
177
177
|
try {
|
|
@@ -257,7 +257,7 @@ function Hr() {
|
|
|
257
257
|
} finally {
|
|
258
258
|
be = !1, ge.current = T, ie(), Error.prepareStackTrace = A;
|
|
259
259
|
}
|
|
260
|
-
var Ae = e ? e.displayName || e.name : "", ve = Ae ?
|
|
260
|
+
var Ae = e ? e.displayName || e.name : "", ve = Ae ? z(Ae) : "";
|
|
261
261
|
return typeof e == "function" && le.set(e, ve), ve;
|
|
262
262
|
}
|
|
263
263
|
function xe(e, i, l) {
|
|
@@ -267,29 +267,29 @@ function Hr() {
|
|
|
267
267
|
var i = e.prototype;
|
|
268
268
|
return !!(i && i.isReactComponent);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function x(e, i, l) {
|
|
271
271
|
if (e == null)
|
|
272
272
|
return "";
|
|
273
273
|
if (typeof e == "function")
|
|
274
274
|
return _e(e, ye(e));
|
|
275
275
|
if (typeof e == "string")
|
|
276
|
-
return
|
|
276
|
+
return z(e);
|
|
277
277
|
switch (e) {
|
|
278
278
|
case L:
|
|
279
|
-
return
|
|
279
|
+
return z("Suspense");
|
|
280
280
|
case d:
|
|
281
|
-
return
|
|
281
|
+
return z("SuspenseList");
|
|
282
282
|
}
|
|
283
283
|
if (typeof e == "object")
|
|
284
284
|
switch (e.$$typeof) {
|
|
285
285
|
case P:
|
|
286
286
|
return xe(e.render);
|
|
287
287
|
case j:
|
|
288
|
-
return
|
|
288
|
+
return x(e.type, i, l);
|
|
289
289
|
case h: {
|
|
290
290
|
var u = e, A = u._payload, T = u._init;
|
|
291
291
|
try {
|
|
292
|
-
return
|
|
292
|
+
return x(T(A), i, l);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
}
|
|
@@ -299,7 +299,7 @@ function Hr() {
|
|
|
299
299
|
var n = Object.prototype.hasOwnProperty, s = {}, D = p.ReactDebugCurrentFrame;
|
|
300
300
|
function ae(e) {
|
|
301
301
|
if (e) {
|
|
302
|
-
var i = e._owner, l =
|
|
302
|
+
var i = e._owner, l = x(e.type, e._source, i ? i.type : null);
|
|
303
303
|
D.setExtraStackFrame(l);
|
|
304
304
|
} else
|
|
305
305
|
D.setExtraStackFrame(null);
|
|
@@ -319,7 +319,7 @@ function Hr() {
|
|
|
319
319
|
} catch (O) {
|
|
320
320
|
_ = O;
|
|
321
321
|
}
|
|
322
|
-
_ && !(_ instanceof Error) && (ae(A),
|
|
322
|
+
_ && !(_ instanceof Error) && (ae(A), v("%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, y, typeof _), ae(null)), _ instanceof Error && !(_.message in s) && (s[_.message] = !0, ae(A), v("Failed %s type: %s", l, _.message), ae(null));
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
@@ -345,7 +345,7 @@ function Hr() {
|
|
|
345
345
|
}
|
|
346
346
|
function qe(e) {
|
|
347
347
|
if (vr(e))
|
|
348
|
-
return
|
|
348
|
+
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yr(e)), Ye(e);
|
|
349
349
|
}
|
|
350
350
|
var Ve = p.ReactCurrentOwner, kr = {
|
|
351
351
|
key: !0,
|
|
@@ -375,7 +375,7 @@ function Hr() {
|
|
|
375
375
|
function Ar(e, i) {
|
|
376
376
|
{
|
|
377
377
|
var l = function() {
|
|
378
|
-
ze || (ze = !0,
|
|
378
|
+
ze || (ze = !0, v("%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
|
-
Je || (Je = !0,
|
|
389
|
+
Je || (Je = !0, v("%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,
|
|
@@ -444,7 +444,7 @@ function Hr() {
|
|
|
444
444
|
var Fe = p.ReactCurrentOwner, Qe = p.ReactDebugCurrentFrame;
|
|
445
445
|
function Pe(e) {
|
|
446
446
|
if (e) {
|
|
447
|
-
var i = e._owner, l =
|
|
447
|
+
var i = e._owner, l = x(e.type, e._source, i ? i.type : null);
|
|
448
448
|
Qe.setExtraStackFrame(l);
|
|
449
449
|
} else
|
|
450
450
|
Qe.setExtraStackFrame(null);
|
|
@@ -457,7 +457,7 @@ function Hr() {
|
|
|
457
457
|
function Xe() {
|
|
458
458
|
{
|
|
459
459
|
if (Fe.current) {
|
|
460
|
-
var e =
|
|
460
|
+
var e = I(Fe.current.type);
|
|
461
461
|
if (e)
|
|
462
462
|
return `
|
|
463
463
|
|
|
@@ -492,7 +492,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
492
492
|
return;
|
|
493
493
|
Ze[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 " + I(e._owner.type) + "."), Pe(e), v('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), Pe(null);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
function rr(e, i) {
|
|
@@ -529,14 +529,14 @@ Check the top-level render call using <` + l + ">.");
|
|
|
529
529
|
else
|
|
530
530
|
return;
|
|
531
531
|
if (l) {
|
|
532
|
-
var u =
|
|
532
|
+
var u = I(i);
|
|
533
533
|
Re(l, e.props, "prop", u, e);
|
|
534
534
|
} else if (i.PropTypes !== void 0 && !Oe) {
|
|
535
535
|
Oe = !0;
|
|
536
|
-
var A =
|
|
537
|
-
|
|
536
|
+
var A = I(i);
|
|
537
|
+
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
|
|
538
538
|
}
|
|
539
|
-
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved &&
|
|
539
|
+
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
function Er(e) {
|
|
@@ -544,11 +544,11 @@ 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
|
-
Pe(e),
|
|
547
|
+
Pe(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), Pe(null);
|
|
548
548
|
break;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
e.ref !== null && (Pe(e),
|
|
551
|
+
e.ref !== null && (Pe(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), Pe(null));
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
var tr = {};
|
|
@@ -561,7 +561,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
561
561
|
var Q = Tr();
|
|
562
562
|
Q ? _ += Q : _ += Xe();
|
|
563
563
|
var O;
|
|
564
|
-
e === null ? O = "null" : De(e) ? O = "array" : e !== void 0 && e.$$typeof === o ? (O = "<" + (
|
|
564
|
+
e === null ? O = "null" : De(e) ? O = "array" : e !== void 0 && e.$$typeof === o ? (O = "<" + (I(e.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : O = typeof e, v("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
566
|
var M = Nr(e, i, l, A, T);
|
|
567
567
|
if (M == null)
|
|
@@ -575,17 +575,17 @@ Check the top-level render call using <` + l + ">.");
|
|
|
575
575
|
rr(se[Ae], e);
|
|
576
576
|
Object.freeze && Object.freeze(se);
|
|
577
577
|
} else
|
|
578
|
-
|
|
578
|
+
v("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
|
rr(se, e);
|
|
581
581
|
}
|
|
582
582
|
if (n.call(i, "key")) {
|
|
583
|
-
var ve =
|
|
583
|
+
var ve = I(e), ne = Object.keys(i).filter(function(Or) {
|
|
584
584
|
return Or !== "key";
|
|
585
585
|
}), $e = ne.length > 0 ? "{key: someKey, " + ne.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
586
|
if (!tr[ve + $e]) {
|
|
587
587
|
var Fr = ne.length > 0 ? "{" + ne.join(": ..., ") + ": ...}" : "{}";
|
|
588
|
-
|
|
588
|
+
v(`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:
|
|
@@ -1050,7 +1050,7 @@ const mr = ["en", "hi"], lr = {
|
|
|
1050
1050
|
locale: t,
|
|
1051
1051
|
children: o
|
|
1052
1052
|
}) => {
|
|
1053
|
-
const m = { locale: t, t: (
|
|
1053
|
+
const m = { locale: t, t: (k) => fr[t]?.[k] ?? k };
|
|
1054
1054
|
return /* @__PURE__ */ r.jsx(hr.Provider, { value: m, children: o });
|
|
1055
1055
|
};
|
|
1056
1056
|
function qr() {
|
|
@@ -1068,13 +1068,13 @@ const Vr = "_container_1e1th_1", zr = "_main_1e1th_7", Jr = "_kundliHeaderNoBord
|
|
|
1068
1068
|
langMenu: tt,
|
|
1069
1069
|
langOption: at
|
|
1070
1070
|
}, Be = (t) => {
|
|
1071
|
-
const { priority: o, fetchPriority: c, width: m, height:
|
|
1071
|
+
const { priority: o, fetchPriority: c, width: m, height: k, ...B } = t;
|
|
1072
1072
|
return Ge.createElement("img", {
|
|
1073
|
-
...
|
|
1073
|
+
...B,
|
|
1074
1074
|
width: m ?? 1,
|
|
1075
|
-
height:
|
|
1075
|
+
height: k ?? 1,
|
|
1076
1076
|
decoding: "async",
|
|
1077
|
-
loading:
|
|
1077
|
+
loading: B.loading ?? (o ? "eager" : "lazy"),
|
|
1078
1078
|
...c && { fetchPriority: c }
|
|
1079
1079
|
});
|
|
1080
1080
|
};
|
|
@@ -1136,9 +1136,9 @@ const Ke = ur(null), st = {
|
|
|
1136
1136
|
showLanguageSelector: o = !0,
|
|
1137
1137
|
showSheet: c,
|
|
1138
1138
|
userId: m,
|
|
1139
|
-
isGlobal:
|
|
1140
|
-
variant:
|
|
1141
|
-
atlasSearchLocalities:
|
|
1139
|
+
isGlobal: k,
|
|
1140
|
+
variant: B,
|
|
1141
|
+
atlasSearchLocalities: w,
|
|
1142
1142
|
logoUrl: R,
|
|
1143
1143
|
reportImageUrl: P,
|
|
1144
1144
|
reportImagePriority: L,
|
|
@@ -1150,7 +1150,7 @@ const Ke = ur(null), st = {
|
|
|
1150
1150
|
onCtaClick: E,
|
|
1151
1151
|
onBack: C,
|
|
1152
1152
|
readMoreReviewsHref: p,
|
|
1153
|
-
onProceed:
|
|
1153
|
+
onProceed: v,
|
|
1154
1154
|
proceedHref: $,
|
|
1155
1155
|
originalPriceLabel: b,
|
|
1156
1156
|
discountedPriceLabel: F,
|
|
@@ -1161,7 +1161,7 @@ const Ke = ur(null), st = {
|
|
|
1161
1161
|
imageComponent: Y = Be,
|
|
1162
1162
|
children: oe
|
|
1163
1163
|
}) => {
|
|
1164
|
-
const [ce,
|
|
1164
|
+
const [ce, I] = G("landing"), [N, W] = G(t ?? "en"), [J, pe] = G(st), me = K(!0);
|
|
1165
1165
|
H(() => {
|
|
1166
1166
|
const te = it();
|
|
1167
1167
|
te && W(te);
|
|
@@ -1180,9 +1180,9 @@ const Ke = ur(null), st = {
|
|
|
1180
1180
|
showLanguageSelector: o,
|
|
1181
1181
|
showSheet: c,
|
|
1182
1182
|
userId: m,
|
|
1183
|
-
isGlobal:
|
|
1184
|
-
variant:
|
|
1185
|
-
atlasSearchLocalities:
|
|
1183
|
+
isGlobal: k,
|
|
1184
|
+
variant: B,
|
|
1185
|
+
atlasSearchLocalities: w,
|
|
1186
1186
|
logoUrl: R,
|
|
1187
1187
|
reportImageUrl: P,
|
|
1188
1188
|
reportImagePriority: L,
|
|
@@ -1194,7 +1194,7 @@ const Ke = ur(null), st = {
|
|
|
1194
1194
|
onCtaClick: E,
|
|
1195
1195
|
onBack: C,
|
|
1196
1196
|
readMoreReviewsHref: p,
|
|
1197
|
-
onProceed:
|
|
1197
|
+
onProceed: v,
|
|
1198
1198
|
proceedHref: $,
|
|
1199
1199
|
originalPriceLabel: b,
|
|
1200
1200
|
discountedPriceLabel: F,
|
|
@@ -1209,9 +1209,9 @@ const Ke = ur(null), st = {
|
|
|
1209
1209
|
o,
|
|
1210
1210
|
c,
|
|
1211
1211
|
m,
|
|
1212
|
+
k,
|
|
1213
|
+
B,
|
|
1212
1214
|
w,
|
|
1213
|
-
I,
|
|
1214
|
-
x,
|
|
1215
1215
|
R,
|
|
1216
1216
|
P,
|
|
1217
1217
|
L,
|
|
@@ -1223,7 +1223,7 @@ const Ke = ur(null), st = {
|
|
|
1223
1223
|
E,
|
|
1224
1224
|
C,
|
|
1225
1225
|
p,
|
|
1226
|
-
|
|
1226
|
+
v,
|
|
1227
1227
|
$,
|
|
1228
1228
|
b,
|
|
1229
1229
|
F,
|
|
@@ -1234,23 +1234,23 @@ const Ke = ur(null), st = {
|
|
|
1234
1234
|
Y
|
|
1235
1235
|
]
|
|
1236
1236
|
), ee = Ne(() => {
|
|
1237
|
-
|
|
1237
|
+
I("form");
|
|
1238
1238
|
}, [V.analytics]), re = Ne(() => {
|
|
1239
|
-
|
|
1239
|
+
I("landing"), V.onBack?.();
|
|
1240
1240
|
}, [V.onBack]), de = Ue(
|
|
1241
1241
|
() => ({
|
|
1242
1242
|
view: ce,
|
|
1243
1243
|
locale: N,
|
|
1244
1244
|
setLocale: W,
|
|
1245
1245
|
config: V,
|
|
1246
|
-
formValues:
|
|
1246
|
+
formValues: J,
|
|
1247
1247
|
setFormValues: pe,
|
|
1248
1248
|
goToForm: ee,
|
|
1249
1249
|
goToPage: re,
|
|
1250
1250
|
onProceed: V.onProceed,
|
|
1251
1251
|
onProceedGuidance: V.onProceedGuidance
|
|
1252
1252
|
}),
|
|
1253
|
-
[ce, N, V,
|
|
1253
|
+
[ce, N, V, J, ee, re]
|
|
1254
1254
|
);
|
|
1255
1255
|
return /* @__PURE__ */ r.jsx(Ke.Provider, { value: de, children: oe });
|
|
1256
1256
|
};
|
|
@@ -1342,18 +1342,18 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1342
1342
|
restrictCountry: t?.restrictCountry
|
|
1343
1343
|
};
|
|
1344
1344
|
}, ma = (t) => {
|
|
1345
|
-
const { searchLocalities: o, restrictCountry: c } = t, [m,
|
|
1345
|
+
const { searchLocalities: o, restrictCountry: c } = t, [m, k] = G([]), [B, w] = G(!1), [R, P] = G(null), L = K(0);
|
|
1346
1346
|
H(() => {
|
|
1347
1347
|
P(null);
|
|
1348
1348
|
}, [o]);
|
|
1349
1349
|
const d = Ne(
|
|
1350
1350
|
async (h) => {
|
|
1351
1351
|
if (!h || h.length < 2 || !o) {
|
|
1352
|
-
|
|
1352
|
+
k([]);
|
|
1353
1353
|
return;
|
|
1354
1354
|
}
|
|
1355
1355
|
const S = ++L.current;
|
|
1356
|
-
|
|
1356
|
+
w(!0), P(null);
|
|
1357
1357
|
try {
|
|
1358
1358
|
const g = ua({ restrictCountry: c }), E = await o(h, g);
|
|
1359
1359
|
if (S !== L.current) return;
|
|
@@ -1366,19 +1366,19 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1366
1366
|
lat: p.lat,
|
|
1367
1367
|
lng: p.lng
|
|
1368
1368
|
}));
|
|
1369
|
-
|
|
1369
|
+
k(C);
|
|
1370
1370
|
} catch (g) {
|
|
1371
1371
|
if (S !== L.current) return;
|
|
1372
|
-
|
|
1372
|
+
k([]), P(g?.message || "Failed to fetch locations");
|
|
1373
1373
|
} finally {
|
|
1374
|
-
S === L.current &&
|
|
1374
|
+
S === L.current && w(!1);
|
|
1375
1375
|
}
|
|
1376
1376
|
},
|
|
1377
1377
|
[c, o]
|
|
1378
|
-
), j = Ne(() =>
|
|
1378
|
+
), j = Ne(() => k([]), []);
|
|
1379
1379
|
return {
|
|
1380
1380
|
predictions: m,
|
|
1381
|
-
isSearching:
|
|
1381
|
+
isSearching: B,
|
|
1382
1382
|
loadError: R,
|
|
1383
1383
|
searchPlaces: d,
|
|
1384
1384
|
clearPredictions: j
|
|
@@ -1465,13 +1465,13 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1465
1465
|
values: o,
|
|
1466
1466
|
onChange: c,
|
|
1467
1467
|
phoneIsdCode: m,
|
|
1468
|
-
onPhoneIsdCodeChange:
|
|
1469
|
-
showV1ExtraFields:
|
|
1470
|
-
analytics:
|
|
1468
|
+
onPhoneIsdCodeChange: k,
|
|
1469
|
+
showV1ExtraFields: B = !1,
|
|
1470
|
+
analytics: w,
|
|
1471
1471
|
atlasSearchLocalities: R,
|
|
1472
1472
|
className: P = ""
|
|
1473
1473
|
}) => {
|
|
1474
|
-
const L = Te(), d = L?.config?.analytics ??
|
|
1474
|
+
const L = Te(), d = L?.config?.analytics ?? w, j = L?.config.isGlobal ?? !0, h = L?.config?.atlasSearchLocalities, [S, g] = G(!1), [E, C] = G(""), p = K(null), v = K(null), $ = K({}), b = (n) => c({ ...o, ...n }), F = (n, s) => {
|
|
1475
1475
|
if (n === "phone") {
|
|
1476
1476
|
const D = ha(s, m, $.current);
|
|
1477
1477
|
D.shouldTrack && d?.trackPhoneSectionFilled?.({ phone: D.fullPhone });
|
|
@@ -1486,7 +1486,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1486
1486
|
}[n]?.());
|
|
1487
1487
|
}, q = E.trim().toLowerCase(), X = gr.filter((n) => q ? n.country.toLowerCase().includes(q) || n.code.includes(q) : !0), Z = K(null);
|
|
1488
1488
|
K(null);
|
|
1489
|
-
const U = K(null), Y = K(0), oe = K(null), [ce,
|
|
1489
|
+
const U = K(null), Y = K(0), oe = K(null), [ce, I] = G(!1), [N, W] = G({ hour12: 12, minute: "00", meridiem: "AM" }), J = (n) => String(n).padStart(2, "0"), pe = (n) => {
|
|
1490
1490
|
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
1491
1491
|
if (!s) return n;
|
|
1492
1492
|
const D = Number(s[1]), ae = s[2], Re = D >= 12 ? "PM" : "AM";
|
|
@@ -1499,10 +1499,10 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1499
1499
|
}, V = (n) => {
|
|
1500
1500
|
const s = Math.min(12, Math.max(1, n.hour12)), D = /^([0-5]\d)$/.test(n.minute) ? n.minute : "00";
|
|
1501
1501
|
let ae = s % 12;
|
|
1502
|
-
return n.meridiem === "PM" && (ae += 12), `${
|
|
1502
|
+
return n.meridiem === "PM" && (ae += 12), `${J(ae)}:${D}`;
|
|
1503
1503
|
}, ee = K(null), [re, de] = G(!1), [te, he] = G(
|
|
1504
1504
|
null
|
|
1505
|
-
), ie = (o.birthPlace ?? "").trim(), ge = j ? void 0 : "in", ue = R ?? h,
|
|
1505
|
+
), ie = (o.birthPlace ?? "").trim(), ge = j ? void 0 : "in", ue = R ?? h, z = Number.isFinite(o.birthPlaceLat) && Number.isFinite(o.birthPlaceLng), be = ie.length > 0 && !z && !re, {
|
|
1506
1506
|
predictions: le,
|
|
1507
1507
|
isSearching: we,
|
|
1508
1508
|
loadError: _e,
|
|
@@ -1525,7 +1525,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1525
1525
|
}, []), H(() => {
|
|
1526
1526
|
if (!S) return;
|
|
1527
1527
|
const n = window.setTimeout(() => {
|
|
1528
|
-
|
|
1528
|
+
v.current?.focus();
|
|
1529
1529
|
}, 0);
|
|
1530
1530
|
return () => window.clearTimeout(n);
|
|
1531
1531
|
}, [S]), H(() => {
|
|
@@ -1539,7 +1539,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1539
1539
|
}, 250);
|
|
1540
1540
|
return () => window.clearTimeout(n);
|
|
1541
1541
|
}, [ye, re, ie, xe]);
|
|
1542
|
-
const
|
|
1542
|
+
const x = (n) => {
|
|
1543
1543
|
const s = n.current;
|
|
1544
1544
|
if (!(!s || s.disabled)) {
|
|
1545
1545
|
if (document.activeElement === s && U.current === s && Date.now() - Y.current < 6e4) {
|
|
@@ -1555,7 +1555,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1555
1555
|
};
|
|
1556
1556
|
return H(() => {
|
|
1557
1557
|
const n = (s) => {
|
|
1558
|
-
oe.current && (oe.current.contains(s.target) ||
|
|
1558
|
+
oe.current && (oe.current.contains(s.target) || I(!1));
|
|
1559
1559
|
};
|
|
1560
1560
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1561
1561
|
}, []), H(() => {
|
|
@@ -1647,7 +1647,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1647
1647
|
/* @__PURE__ */ r.jsx("div", { className: a.isdSearchWrap, children: /* @__PURE__ */ r.jsx(
|
|
1648
1648
|
"input",
|
|
1649
1649
|
{
|
|
1650
|
-
ref:
|
|
1650
|
+
ref: v,
|
|
1651
1651
|
type: "text",
|
|
1652
1652
|
value: E,
|
|
1653
1653
|
onChange: (n) => C(n.target.value),
|
|
@@ -1664,7 +1664,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1664
1664
|
"aria-selected": n.code === m,
|
|
1665
1665
|
className: `${a.isdOption} ${n.code === m ? a.isdOptionActive : ""}`,
|
|
1666
1666
|
onClick: () => {
|
|
1667
|
-
|
|
1667
|
+
k(n.code), g(!1), C("");
|
|
1668
1668
|
},
|
|
1669
1669
|
children: [
|
|
1670
1670
|
/* @__PURE__ */ r.jsx("span", { className: a.isdCountryName, children: n.country }),
|
|
@@ -1678,7 +1678,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1678
1678
|
)
|
|
1679
1679
|
] }) })
|
|
1680
1680
|
] }),
|
|
1681
|
-
|
|
1681
|
+
B && /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
|
|
1682
1682
|
/* @__PURE__ */ r.jsx("div", { className: a.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: a.label, children: [
|
|
1683
1683
|
t("formGender"),
|
|
1684
1684
|
/* @__PURE__ */ r.jsx("span", { className: a.req, children: "*" })
|
|
@@ -1792,14 +1792,14 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1792
1792
|
value: o.dateOfBirth,
|
|
1793
1793
|
max: (() => {
|
|
1794
1794
|
const n = /* @__PURE__ */ new Date();
|
|
1795
|
-
return `${n.getFullYear()}-${
|
|
1795
|
+
return `${n.getFullYear()}-${J(n.getMonth() + 1)}-${J(n.getDate())}`;
|
|
1796
1796
|
})(),
|
|
1797
1797
|
onChange: (n) => {
|
|
1798
|
-
const s = n.target.value, D = /* @__PURE__ */ new Date(), ae = `${D.getFullYear()}-${
|
|
1798
|
+
const s = n.target.value, D = /* @__PURE__ */ new Date(), ae = `${D.getFullYear()}-${J(D.getMonth() + 1)}-${J(D.getDate())}`;
|
|
1799
1799
|
s && s > ae || (b({ dateOfBirth: s }), F("dateOfBirth", s), U.current = null);
|
|
1800
1800
|
},
|
|
1801
1801
|
onFocus: () => d?.trackDobClicked?.(),
|
|
1802
|
-
onClick: () =>
|
|
1802
|
+
onClick: () => x(Z),
|
|
1803
1803
|
onBlur: () => {
|
|
1804
1804
|
U.current === Z.current && (U.current = null);
|
|
1805
1805
|
}
|
|
@@ -1813,7 +1813,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1813
1813
|
"aria-label": "Open date picker",
|
|
1814
1814
|
onMouseDown: (n) => n.preventDefault(),
|
|
1815
1815
|
onClick: (n) => {
|
|
1816
|
-
n.preventDefault(), n.stopPropagation(),
|
|
1816
|
+
n.preventDefault(), n.stopPropagation(), x(Z);
|
|
1817
1817
|
},
|
|
1818
1818
|
children: /* @__PURE__ */ r.jsx(
|
|
1819
1819
|
"img",
|
|
@@ -1879,7 +1879,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1879
1879
|
disabled: o.birthTimeUnknown,
|
|
1880
1880
|
placeholder: "HH:MM AM",
|
|
1881
1881
|
onClick: () => {
|
|
1882
|
-
o.birthTimeUnknown || (W(me(o.birthTime || "12:00")),
|
|
1882
|
+
o.birthTimeUnknown || (W(me(o.birthTime || "12:00")), I((n) => !n));
|
|
1883
1883
|
}
|
|
1884
1884
|
}
|
|
1885
1885
|
),
|
|
@@ -1892,7 +1892,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1892
1892
|
disabled: o.birthTimeUnknown,
|
|
1893
1893
|
onMouseDown: (n) => n.preventDefault(),
|
|
1894
1894
|
onClick: (n) => {
|
|
1895
|
-
n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (W(me(o.birthTime || "12:00")),
|
|
1895
|
+
n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (W(me(o.birthTime || "12:00")), I((s) => !s));
|
|
1896
1896
|
},
|
|
1897
1897
|
children: /* @__PURE__ */ r.jsx(
|
|
1898
1898
|
"img",
|
|
@@ -1934,7 +1934,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1934
1934
|
value: N.minute,
|
|
1935
1935
|
onChange: (n) => W((s) => ({ ...s, minute: n.target.value })),
|
|
1936
1936
|
"aria-label": "Minute",
|
|
1937
|
-
children: Array.from({ length: 60 }, (n, s) =>
|
|
1937
|
+
children: Array.from({ length: 60 }, (n, s) => J(s)).map(
|
|
1938
1938
|
(n) => /* @__PURE__ */ r.jsx("option", { value: n, children: n }, n)
|
|
1939
1939
|
)
|
|
1940
1940
|
}
|
|
@@ -1966,7 +1966,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1966
1966
|
{
|
|
1967
1967
|
type: "button",
|
|
1968
1968
|
className: a.timePopoverBtn,
|
|
1969
|
-
onClick: () =>
|
|
1969
|
+
onClick: () => I(!1),
|
|
1970
1970
|
children: "Cancel"
|
|
1971
1971
|
}
|
|
1972
1972
|
),
|
|
@@ -1977,7 +1977,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1977
1977
|
className: `${a.timePopoverBtn} ${a.timePopoverOk}`,
|
|
1978
1978
|
onClick: () => {
|
|
1979
1979
|
const n = V(N);
|
|
1980
|
-
b({ birthTime: n }), F("birthTime", n),
|
|
1980
|
+
b({ birthTime: n }), F("birthTime", n), I(!1);
|
|
1981
1981
|
},
|
|
1982
1982
|
"aria-label": "OK",
|
|
1983
1983
|
children: /* @__PURE__ */ r.jsx(
|
|
@@ -2130,7 +2130,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2130
2130
|
] }),
|
|
2131
2131
|
be && /* @__PURE__ */ r.jsx("p", { className: a.fieldError, children: "Please select a place from the dropdown list." })
|
|
2132
2132
|
] }),
|
|
2133
|
-
|
|
2133
|
+
B && /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
|
|
2134
2134
|
/* @__PURE__ */ r.jsx("div", { className: a.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: a.label, children: [
|
|
2135
2135
|
t("formReportLanguage"),
|
|
2136
2136
|
/* @__PURE__ */ r.jsx("span", { className: a.req, children: "*" })
|
|
@@ -2331,9 +2331,9 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2331
2331
|
values: o,
|
|
2332
2332
|
phoneIsdCode: c,
|
|
2333
2333
|
requireV1ExtraFields: m = !1,
|
|
2334
|
-
onValidationFailed:
|
|
2335
|
-
onProceed:
|
|
2336
|
-
onProceedGuidance:
|
|
2334
|
+
onValidationFailed: k,
|
|
2335
|
+
onProceed: B,
|
|
2336
|
+
onProceedGuidance: w,
|
|
2337
2337
|
href: R,
|
|
2338
2338
|
analytics: P,
|
|
2339
2339
|
className: L = "",
|
|
@@ -2343,33 +2343,33 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2343
2343
|
planSheetOpen: S,
|
|
2344
2344
|
selectedPlan: g
|
|
2345
2345
|
}) => {
|
|
2346
|
-
const E = Te(), C = E?.config.isGlobal ?? !0, p = E?.config?.variant, [
|
|
2346
|
+
const E = Te(), C = E?.config.isGlobal ?? !0, p = E?.config?.variant, [v, $] = G(!1), b = Ue(
|
|
2347
2347
|
() => ja(o, C, m),
|
|
2348
2348
|
[o, C, m]
|
|
2349
2349
|
), F = b === null, q = p === "v1" && E?.config?.showSheet;
|
|
2350
2350
|
H(() => {
|
|
2351
|
-
if (!
|
|
2351
|
+
if (!v) return;
|
|
2352
2352
|
const oe = window.setTimeout(() => {
|
|
2353
2353
|
$(!1);
|
|
2354
2354
|
}, 2200);
|
|
2355
2355
|
return () => window.clearTimeout(oe);
|
|
2356
|
-
}, [
|
|
2356
|
+
}, [v]);
|
|
2357
2357
|
const X = C ? d ?? t("formDiscountedPrice") : q ? "" : "₹499", Z = E?.config.imageComponent ?? Be, U = (oe) => {
|
|
2358
2358
|
if (oe.preventDefault(), p === "v1" && !F && P?.trackKundliDetailedClicked?.(), !F) {
|
|
2359
|
-
b && (
|
|
2359
|
+
b && (k?.(
|
|
2360
2360
|
b === "birthPlaceCoordinates" ? "birthPlace" : b
|
|
2361
2361
|
), b === "birthPlaceCoordinates" && $(!0));
|
|
2362
2362
|
return;
|
|
2363
2363
|
}
|
|
2364
|
-
const ce = !!
|
|
2364
|
+
const ce = !!w && p === "v1" && g?.id === br, I = (o.phone ?? "").trim(), N = {
|
|
2365
2365
|
...o,
|
|
2366
|
-
phone:
|
|
2366
|
+
phone: I && `${c}-${I}`
|
|
2367
2367
|
};
|
|
2368
2368
|
if (q) {
|
|
2369
2369
|
S ? h?.() : j?.(N);
|
|
2370
2370
|
return;
|
|
2371
2371
|
}
|
|
2372
|
-
P?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), ce ?
|
|
2372
|
+
P?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), ce ? w(N) : B?.(N);
|
|
2373
2373
|
}, Y = /* @__PURE__ */ r.jsx(
|
|
2374
2374
|
$r,
|
|
2375
2375
|
{
|
|
@@ -2404,7 +2404,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2404
2404
|
className: `${je.footerContainer} ${L}`,
|
|
2405
2405
|
marquee: /* @__PURE__ */ r.jsx(Gr, { children: /* @__PURE__ */ r.jsx(Pa, { t }) }),
|
|
2406
2406
|
children: [
|
|
2407
|
-
|
|
2407
|
+
v && /* @__PURE__ */ r.jsx("div", { className: je.validationToast, role: "alert", "aria-live": "assertive", children: t("formFillAllFields") }),
|
|
2408
2408
|
Y
|
|
2409
2409
|
]
|
|
2410
2410
|
}
|
|
@@ -2415,15 +2415,15 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2415
2415
|
logoUrl: c = Ta,
|
|
2416
2416
|
className: m = ""
|
|
2417
2417
|
}) => {
|
|
2418
|
-
const
|
|
2418
|
+
const k = Te(), B = k?.config.isGlobal ?? !0, w = o != null && !B;
|
|
2419
2419
|
return /* @__PURE__ */ r.jsx(
|
|
2420
2420
|
Wr,
|
|
2421
2421
|
{
|
|
2422
2422
|
t,
|
|
2423
2423
|
logoUrl: c,
|
|
2424
|
-
imageComponent:
|
|
2424
|
+
imageComponent: k?.config.imageComponent,
|
|
2425
2425
|
languageSelector: o,
|
|
2426
|
-
showLanguageSelector:
|
|
2426
|
+
showLanguageSelector: w,
|
|
2427
2427
|
className: m
|
|
2428
2428
|
}
|
|
2429
2429
|
);
|
|
@@ -2528,8 +2528,8 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2528
2528
|
/* @__PURE__ */ r.jsx(Ba, {}),
|
|
2529
2529
|
/* @__PURE__ */ r.jsx("span", { children: t })
|
|
2530
2530
|
] }), jn = ({ plan: t, isSelected: o, onSelect: c, t: m }) => {
|
|
2531
|
-
const
|
|
2532
|
-
(
|
|
2531
|
+
const k = () => c(t.id), B = (w) => {
|
|
2532
|
+
(w.key === " " || w.key === "Enter") && (w.preventDefault(), c(t.id));
|
|
2533
2533
|
};
|
|
2534
2534
|
return /* @__PURE__ */ r.jsxs(
|
|
2535
2535
|
"div",
|
|
@@ -2539,11 +2539,11 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2539
2539
|
o ? f.planCardSelected : "",
|
|
2540
2540
|
o && f.planCardPopular
|
|
2541
2541
|
].filter(Boolean).join(" "),
|
|
2542
|
-
onClick:
|
|
2542
|
+
onClick: k,
|
|
2543
2543
|
role: "radio",
|
|
2544
2544
|
"aria-checked": o,
|
|
2545
2545
|
tabIndex: 0,
|
|
2546
|
-
onKeyDown:
|
|
2546
|
+
onKeyDown: B,
|
|
2547
2547
|
"data-plan-id": t.id,
|
|
2548
2548
|
children: [
|
|
2549
2549
|
t.badge && /* @__PURE__ */ r.jsx(Cn, { label: m?.(t.badge) ?? t.badge }),
|
|
@@ -2568,7 +2568,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2568
2568
|
t.astrologers && /* @__PURE__ */ r.jsx("div", { className: f.planDivider }),
|
|
2569
2569
|
t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2570
2570
|
/* @__PURE__ */ r.jsx("p", { className: f.astrologerHeading, children: m?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
|
|
2571
|
-
/* @__PURE__ */ r.jsx("div", { className: f.astrologerList, role: "list", children: t.astrologers.map((
|
|
2571
|
+
/* @__PURE__ */ r.jsx("div", { className: f.astrologerList, role: "list", children: t.astrologers.map((w, R) => /* @__PURE__ */ r.jsx("div", { role: "listitem", children: /* @__PURE__ */ r.jsx(An, { astrologer: w, t: m }) }, R)) })
|
|
2572
2572
|
] })
|
|
2573
2573
|
] })
|
|
2574
2574
|
]
|
|
@@ -2637,12 +2637,12 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2637
2637
|
onClose: o,
|
|
2638
2638
|
selectedPlan: c,
|
|
2639
2639
|
onSelectPlan: m,
|
|
2640
|
-
plans:
|
|
2641
|
-
onProceed:
|
|
2642
|
-
t:
|
|
2640
|
+
plans: k,
|
|
2641
|
+
onProceed: B,
|
|
2642
|
+
t: w,
|
|
2643
2643
|
analytics: R
|
|
2644
2644
|
}) => {
|
|
2645
|
-
const L = Te()?.config.isGlobal ?? !0, d =
|
|
2645
|
+
const L = Te()?.config.isGlobal ?? !0, d = k ?? Tn(L), j = c?.id || d.find((C) => C.badge)?.id || d[0]?.id || "", h = K(null), S = K(null), g = K(!1);
|
|
2646
2646
|
H(() => {
|
|
2647
2647
|
if (t) {
|
|
2648
2648
|
if (!c) {
|
|
@@ -2668,7 +2668,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2668
2668
|
className: f.overlay,
|
|
2669
2669
|
role: "dialog",
|
|
2670
2670
|
"aria-modal": "true",
|
|
2671
|
-
"aria-label":
|
|
2671
|
+
"aria-label": w?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
2672
2672
|
children: /* @__PURE__ */ r.jsxs(
|
|
2673
2673
|
"div",
|
|
2674
2674
|
{
|
|
@@ -2678,7 +2678,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2678
2678
|
/* @__PURE__ */ r.jsx(
|
|
2679
2679
|
xn,
|
|
2680
2680
|
{
|
|
2681
|
-
title:
|
|
2681
|
+
title: w?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
2682
2682
|
onBack: E
|
|
2683
2683
|
}
|
|
2684
2684
|
),
|
|
@@ -2694,13 +2694,13 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2694
2694
|
{
|
|
2695
2695
|
plan: C,
|
|
2696
2696
|
isSelected: C.id === j,
|
|
2697
|
-
t:
|
|
2697
|
+
t: w,
|
|
2698
2698
|
onSelect: (p) => {
|
|
2699
|
-
const
|
|
2700
|
-
|
|
2701
|
-
planId:
|
|
2702
|
-
planName:
|
|
2703
|
-
}), m(
|
|
2699
|
+
const v = d.find(($) => $.id === p);
|
|
2700
|
+
v && (R?.trackPlanSelected?.({
|
|
2701
|
+
planId: v.id,
|
|
2702
|
+
planName: v.title
|
|
2703
|
+
}), m(v));
|
|
2704
2704
|
}
|
|
2705
2705
|
},
|
|
2706
2706
|
C.id
|
|
@@ -2716,9 +2716,9 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2716
2716
|
c && (R?.trackPlanProceedClicked?.({
|
|
2717
2717
|
planId: c.id,
|
|
2718
2718
|
planName: c.title
|
|
2719
|
-
}),
|
|
2719
|
+
}), B(c), o());
|
|
2720
2720
|
},
|
|
2721
|
-
children: c ?
|
|
2721
|
+
children: c ? w?.("planProceedToPayment") ?? c.price + "Proceed to Payment" : "Select a plan"
|
|
2722
2722
|
}
|
|
2723
2723
|
) })
|
|
2724
2724
|
]
|
|
@@ -2743,64 +2743,67 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2743
2743
|
locale: o,
|
|
2744
2744
|
showLanguageSelector: c = !0,
|
|
2745
2745
|
onBack: m,
|
|
2746
|
-
initialValues:
|
|
2747
|
-
onProceed:
|
|
2748
|
-
onProceedGuidance:
|
|
2746
|
+
initialValues: k,
|
|
2747
|
+
onProceed: B,
|
|
2748
|
+
onProceedGuidance: w,
|
|
2749
2749
|
proceedHref: R,
|
|
2750
2750
|
originalPriceLabel: P,
|
|
2751
2751
|
discountedPriceLabel: L,
|
|
2752
2752
|
atlasSearchLocalities: d,
|
|
2753
2753
|
analytics: j
|
|
2754
2754
|
}) => {
|
|
2755
|
-
const h = Te(), S = qr(), g = h !== null, E = g ? h.locale : o, C = E ?? S?.locale ?? "en", [p,
|
|
2755
|
+
const h = Te(), S = qr(), g = h !== null, E = g ? h.locale : o, C = E ?? S?.locale ?? "en", [p, v] = G(C), $ = g ? h.locale : p, b = g ? h.setLocale : v, [F, q] = G(!1), X = K(null), Z = K(E), U = K(
|
|
2756
2756
|
S?.locale
|
|
2757
2757
|
);
|
|
2758
2758
|
H(() => {
|
|
2759
2759
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
2760
2760
|
}, []);
|
|
2761
|
-
const Y = (
|
|
2761
|
+
const Y = (x) => En($, x);
|
|
2762
2762
|
H(() => {
|
|
2763
2763
|
E && Z.current !== E && b(E), Z.current = E;
|
|
2764
2764
|
}, [E, b]), H(() => {
|
|
2765
2765
|
if (E) return;
|
|
2766
|
-
const
|
|
2767
|
-
|
|
2766
|
+
const x = S?.locale;
|
|
2767
|
+
x && U.current !== x && b(x), U.current = x;
|
|
2768
2768
|
}, [S?.locale, E, b]);
|
|
2769
2769
|
const [oe, ce] = G({
|
|
2770
2770
|
...In,
|
|
2771
|
-
...
|
|
2772
|
-
phone:
|
|
2773
|
-
}),
|
|
2774
|
-
|
|
2771
|
+
...k,
|
|
2772
|
+
phone: k?.phone ?? ""
|
|
2773
|
+
}), I = g ? h?.config.isGlobal ?? !0 : !0, [N, W] = G(
|
|
2774
|
+
I ? "+1" : "+91"
|
|
2775
2775
|
);
|
|
2776
2776
|
H(() => {
|
|
2777
|
-
W(
|
|
2778
|
-
}, [
|
|
2779
|
-
const
|
|
2777
|
+
W(I ? "+1" : "+91");
|
|
2778
|
+
}, [I]);
|
|
2779
|
+
const J = g ? h.formValues : oe, pe = g ? h.setFormValues : ce, me = g ? h.goToPage : m, V = g ? h.onProceed : B, ee = g ? h.onProceedGuidance : w, re = g ? h.config.proceedHref : R, de = g ? h.config.originalPriceLabel : P, te = g ? h.config.discountedPriceLabel : L, he = g ? h.config.showLanguageSelector ?? !0 : c, ie = (g ? h?.config?.analytics : j) ?? j;
|
|
2780
2780
|
H(() => {
|
|
2781
2781
|
if (!F) return;
|
|
2782
|
-
const
|
|
2782
|
+
const x = (n) => {
|
|
2783
2783
|
X.current && !X.current.contains(n.target) && q(!1);
|
|
2784
2784
|
};
|
|
2785
|
-
return document.addEventListener("mousedown",
|
|
2785
|
+
return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
|
|
2786
2786
|
}, [F]);
|
|
2787
|
-
const [ge, ue] = G(!1), [
|
|
2788
|
-
le.current =
|
|
2787
|
+
const [ge, ue] = G(!1), [z, be] = G(null), le = K(null), we = Ne((x) => {
|
|
2788
|
+
le.current = x, ue(!0);
|
|
2789
2789
|
}, []), _e = Ne(() => {
|
|
2790
|
-
if (
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2790
|
+
if (!le.current || !z) return;
|
|
2791
|
+
ie?.trackPlanProceedClicked?.({
|
|
2792
|
+
planId: z.id,
|
|
2793
|
+
planName: z.title,
|
|
2794
|
+
price: z.price,
|
|
2795
|
+
currency: I ? "USD" : "INR"
|
|
2796
|
+
});
|
|
2797
|
+
const x = { ...le.current, _selectedPlan: z };
|
|
2798
|
+
z.id === br && ee ? ee(x) : V?.(x), ue(!1), le.current = null;
|
|
2799
|
+
}, [z, V, ee]), xe = h?.config.imageComponent ?? Be, ye = he ? /* @__PURE__ */ r.jsxs("div", { className: fe.langDropdownWrap, ref: X, children: [
|
|
2797
2800
|
/* @__PURE__ */ r.jsxs(
|
|
2798
2801
|
"button",
|
|
2799
2802
|
{
|
|
2800
2803
|
type: "button",
|
|
2801
2804
|
className: fe.langTrigger,
|
|
2802
2805
|
onClick: () => {
|
|
2803
|
-
ie?.trackLanguageClickedFe?.({ language: $ }), q((
|
|
2806
|
+
ie?.trackLanguageClickedFe?.({ language: $ }), q((x) => !x);
|
|
2804
2807
|
},
|
|
2805
2808
|
"aria-expanded": F,
|
|
2806
2809
|
"aria-haspopup": "listbox",
|
|
@@ -2829,19 +2832,19 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2829
2832
|
role: "listbox",
|
|
2830
2833
|
"aria-labelledby": "kundli-form-lang",
|
|
2831
2834
|
"aria-activedescendant": `kundli-form-lang-option-${$}`,
|
|
2832
|
-
children: mr.map((
|
|
2835
|
+
children: mr.map((x) => /* @__PURE__ */ r.jsx(
|
|
2833
2836
|
"li",
|
|
2834
2837
|
{
|
|
2835
|
-
id: `kundli-form-lang-option-${
|
|
2838
|
+
id: `kundli-form-lang-option-${x}`,
|
|
2836
2839
|
role: "option",
|
|
2837
|
-
"aria-selected":
|
|
2840
|
+
"aria-selected": x === $,
|
|
2838
2841
|
className: fe.langOption,
|
|
2839
2842
|
onClick: () => {
|
|
2840
|
-
ie?.trackLanguageChangedFe?.({ newLanguage:
|
|
2843
|
+
ie?.trackLanguageChangedFe?.({ newLanguage: x }), b(x), q(!1);
|
|
2841
2844
|
},
|
|
2842
|
-
children: lr[
|
|
2845
|
+
children: lr[x]
|
|
2843
2846
|
},
|
|
2844
|
-
|
|
2847
|
+
x
|
|
2845
2848
|
))
|
|
2846
2849
|
}
|
|
2847
2850
|
)
|
|
@@ -2863,7 +2866,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2863
2866
|
pa,
|
|
2864
2867
|
{
|
|
2865
2868
|
t: Y,
|
|
2866
|
-
values:
|
|
2869
|
+
values: J,
|
|
2867
2870
|
onChange: pe,
|
|
2868
2871
|
atlasSearchLocalities: d,
|
|
2869
2872
|
phoneIsdCode: N,
|
|
@@ -2875,7 +2878,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2875
2878
|
Na,
|
|
2876
2879
|
{
|
|
2877
2880
|
t: Y,
|
|
2878
|
-
values:
|
|
2881
|
+
values: J,
|
|
2879
2882
|
phoneIsdCode: N,
|
|
2880
2883
|
onProceed: V,
|
|
2881
2884
|
onProceedGuidance: ee,
|
|
@@ -2886,7 +2889,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2886
2889
|
showPlanSheet: we,
|
|
2887
2890
|
confirmPlan: _e,
|
|
2888
2891
|
planSheetOpen: ge,
|
|
2889
|
-
selectedPlan:
|
|
2892
|
+
selectedPlan: z
|
|
2890
2893
|
}
|
|
2891
2894
|
),
|
|
2892
2895
|
h?.config.variant === "v1" && /* @__PURE__ */ r.jsx(
|
|
@@ -2894,10 +2897,10 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2894
2897
|
{
|
|
2895
2898
|
isOpen: ge,
|
|
2896
2899
|
onClose: () => ue(!1),
|
|
2897
|
-
selectedPlan:
|
|
2900
|
+
selectedPlan: z,
|
|
2898
2901
|
onSelectPlan: be,
|
|
2899
|
-
onProceed: (
|
|
2900
|
-
_e?.(
|
|
2902
|
+
onProceed: () => {
|
|
2903
|
+
_e?.();
|
|
2901
2904
|
},
|
|
2902
2905
|
t: Y,
|
|
2903
2906
|
analytics: ie
|
|
@@ -2972,4 +2975,4 @@ export {
|
|
|
2972
2975
|
fr as t,
|
|
2973
2976
|
qr as u
|
|
2974
2977
|
};
|
|
2975
|
-
//# sourceMappingURL=analytics-
|
|
2978
|
+
//# sourceMappingURL=analytics-Bvz01vIv.js.map
|