@srimandir/kundli-generator 5.21.2 → 5.21.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{analytics-BshMK7pJ.js → analytics-BaeU3LeE.js} +408 -411
- package/dist/analytics-BaeU3LeE.js.map +1 -0
- package/dist/{criticalCss-fJR7ibY3.js → criticalCss-DTscLrRG.js} +2 -2
- package/dist/{criticalCss-fJR7ibY3.js.map → criticalCss-DTscLrRG.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/dist/utils/index.d.ts +1 -1
- package/dist/utils/phone.d.ts +14 -0
- package/package.json +2 -2
- package/dist/analytics-BshMK7pJ.js.map +0 -1
|
@@ -5,25 +5,25 @@ 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"),
|
|
8
|
+
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.fragment"), f = 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
9
|
function x(j, A, E) {
|
|
10
|
-
var
|
|
11
|
-
E !== void 0 && (
|
|
12
|
-
for (
|
|
13
|
-
if (j && j.defaultProps) for (
|
|
14
|
-
return { $$typeof: o, type: j, key:
|
|
10
|
+
var d, N = {}, h = null, I = null;
|
|
11
|
+
E !== void 0 && (h = "" + E), A.key !== void 0 && (h = "" + A.key), A.ref !== void 0 && (I = A.ref);
|
|
12
|
+
for (d in A) f.call(A, d) && !S.hasOwnProperty(d) && (N[d] = A[d]);
|
|
13
|
+
if (j && j.defaultProps) for (d in A = j.defaultProps, A) N[d] === void 0 && (N[d] = A[d]);
|
|
14
|
+
return { $$typeof: o, type: j, key: h, ref: I, props: N, _owner: k.current };
|
|
15
15
|
}
|
|
16
|
-
return Se.Fragment =
|
|
16
|
+
return Se.Fragment = c, Se.jsx = x, Se.jsxs = x, 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"),
|
|
22
|
+
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), f = /* @__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"), E = /* @__PURE__ */ Symbol.for("react.suspense"), d = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), h = /* @__PURE__ */ Symbol.for("react.lazy"), I = /* @__PURE__ */ Symbol.for("react.offscreen"), p = Symbol.iterator, B = "@@iterator";
|
|
23
23
|
function C(e) {
|
|
24
24
|
if (e === null || typeof e != "object")
|
|
25
25
|
return null;
|
|
26
|
-
var i =
|
|
26
|
+
var i = p && e[p] || e[B];
|
|
27
27
|
return typeof i == "function" ? i : null;
|
|
28
28
|
}
|
|
29
29
|
var b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -31,10 +31,10 @@ function Hr() {
|
|
|
31
31
|
{
|
|
32
32
|
for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)
|
|
33
33
|
l[u - 1] = arguments[u];
|
|
34
|
-
|
|
34
|
+
$("error", e, l);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function $(e, i, l) {
|
|
38
38
|
{
|
|
39
39
|
var u = b.ReactDebugCurrentFrame, P = u.getStackAddendum();
|
|
40
40
|
P !== "" && (i += "%s", l = l.concat([P]));
|
|
@@ -44,10 +44,10 @@ function Hr() {
|
|
|
44
44
|
R.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, R);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
var w = !1,
|
|
47
|
+
var w = !1, F = !1, K = !1, z = !1, J = !1, G;
|
|
48
48
|
G = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
49
|
function q(e) {
|
|
50
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
50
|
+
return !!(typeof e == "string" || typeof e == "function" || e === f || e === S || J || e === k || e === E || e === d || z || e === I || w || F || K || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === N || e.$$typeof === x || e.$$typeof === j || e.$$typeof === A || // This needs to include all possible module reference object
|
|
51
51
|
// types supported by any Flight configuration anywhere since
|
|
52
52
|
// we don't know which Flight build this will end up being used
|
|
53
53
|
// with.
|
|
@@ -63,7 +63,7 @@ function Hr() {
|
|
|
63
63
|
function oe(e) {
|
|
64
64
|
return e.displayName || "Context";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function D(e) {
|
|
67
67
|
if (e == null)
|
|
68
68
|
return null;
|
|
69
69
|
if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -71,9 +71,9 @@ function Hr() {
|
|
|
71
71
|
if (typeof e == "string")
|
|
72
72
|
return e;
|
|
73
73
|
switch (e) {
|
|
74
|
-
case
|
|
74
|
+
case f:
|
|
75
75
|
return "Fragment";
|
|
76
|
-
case
|
|
76
|
+
case c:
|
|
77
77
|
return "Portal";
|
|
78
78
|
case S:
|
|
79
79
|
return "Profiler";
|
|
@@ -81,7 +81,7 @@ function Hr() {
|
|
|
81
81
|
return "StrictMode";
|
|
82
82
|
case E:
|
|
83
83
|
return "Suspense";
|
|
84
|
-
case
|
|
84
|
+
case d:
|
|
85
85
|
return "SuspenseList";
|
|
86
86
|
}
|
|
87
87
|
if (typeof e == "object")
|
|
@@ -96,11 +96,11 @@ function Hr() {
|
|
|
96
96
|
return ce(e, e.render, "ForwardRef");
|
|
97
97
|
case N:
|
|
98
98
|
var u = e.displayName || null;
|
|
99
|
-
return u !== null ? u :
|
|
100
|
-
case
|
|
99
|
+
return u !== null ? u : D(e.type) || "Memo";
|
|
100
|
+
case h: {
|
|
101
101
|
var P = e, R = P._payload, y = P._init;
|
|
102
102
|
try {
|
|
103
|
-
return
|
|
103
|
+
return D(y(R));
|
|
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 T = Object.assign,
|
|
111
|
+
var T = Object.assign, O = 0, Q, pe, fe, V, ee, re, de;
|
|
112
112
|
function te() {
|
|
113
113
|
}
|
|
114
114
|
te.__reactDisabledLog = !0;
|
|
115
|
-
function
|
|
115
|
+
function he() {
|
|
116
116
|
{
|
|
117
|
-
if (
|
|
118
|
-
Q = console.log,
|
|
117
|
+
if (O === 0) {
|
|
118
|
+
Q = console.log, pe = console.info, fe = 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,
|
|
@@ -132,12 +132,12 @@ function Hr() {
|
|
|
132
132
|
groupEnd: e
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
O++;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
function ie() {
|
|
139
139
|
{
|
|
140
|
-
if (
|
|
140
|
+
if (O--, O === 0) {
|
|
141
141
|
var e = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
@@ -148,10 +148,10 @@ function Hr() {
|
|
|
148
148
|
value: Q
|
|
149
149
|
}),
|
|
150
150
|
info: T({}, e, {
|
|
151
|
-
value:
|
|
151
|
+
value: pe
|
|
152
152
|
}),
|
|
153
153
|
warn: T({}, e, {
|
|
154
|
-
value:
|
|
154
|
+
value: fe
|
|
155
155
|
}),
|
|
156
156
|
error: T({}, e, {
|
|
157
157
|
value: V
|
|
@@ -167,7 +167,7 @@ function Hr() {
|
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
O < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
var ge = b.ReactCurrentDispatcher, ue;
|
|
@@ -202,7 +202,7 @@ function Hr() {
|
|
|
202
202
|
var P = Error.prepareStackTrace;
|
|
203
203
|
Error.prepareStackTrace = void 0;
|
|
204
204
|
var R;
|
|
205
|
-
R = ge.current, ge.current = null,
|
|
205
|
+
R = ge.current, ge.current = null, he();
|
|
206
206
|
try {
|
|
207
207
|
if (i) {
|
|
208
208
|
var y = function() {
|
|
@@ -239,18 +239,18 @@ function Hr() {
|
|
|
239
239
|
if (ne && u && typeof ne.stack == "string") {
|
|
240
240
|
for (var _ = ne.stack.split(`
|
|
241
241
|
`), Z = u.stack.split(`
|
|
242
|
-
`),
|
|
242
|
+
`), M = _.length - 1, U = Z.length - 1; M >= 1 && U >= 0 && _[M] !== Z[U]; )
|
|
243
243
|
U--;
|
|
244
|
-
for (;
|
|
245
|
-
if (_[
|
|
246
|
-
if (
|
|
244
|
+
for (; M >= 1 && U >= 0; M--, U--)
|
|
245
|
+
if (_[M] !== Z[U]) {
|
|
246
|
+
if (M !== 1 || U !== 1)
|
|
247
247
|
do
|
|
248
|
-
if (
|
|
248
|
+
if (M--, U--, U < 0 || _[M] !== Z[U]) {
|
|
249
249
|
var se = `
|
|
250
|
-
` + _[
|
|
250
|
+
` + _[M].replace(" at new ", " at ");
|
|
251
251
|
return e.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", e.displayName)), typeof e == "function" && le.set(e, se), se;
|
|
252
252
|
}
|
|
253
|
-
while (
|
|
253
|
+
while (M >= 1 && U >= 0);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
@@ -277,7 +277,7 @@ function Hr() {
|
|
|
277
277
|
switch (e) {
|
|
278
278
|
case E:
|
|
279
279
|
return X("Suspense");
|
|
280
|
-
case
|
|
280
|
+
case d:
|
|
281
281
|
return X("SuspenseList");
|
|
282
282
|
}
|
|
283
283
|
if (typeof e == "object")
|
|
@@ -286,7 +286,7 @@ function Hr() {
|
|
|
286
286
|
return xe(e.render);
|
|
287
287
|
case N:
|
|
288
288
|
return v(e.type, i, l);
|
|
289
|
-
case
|
|
289
|
+
case h: {
|
|
290
290
|
var u = e, P = u._payload, R = u._init;
|
|
291
291
|
try {
|
|
292
292
|
return v(R(P), i, l);
|
|
@@ -296,13 +296,13 @@ function Hr() {
|
|
|
296
296
|
}
|
|
297
297
|
return "";
|
|
298
298
|
}
|
|
299
|
-
var n = Object.prototype.hasOwnProperty, s = {},
|
|
299
|
+
var n = Object.prototype.hasOwnProperty, s = {}, L = b.ReactDebugCurrentFrame;
|
|
300
300
|
function ae(e) {
|
|
301
301
|
if (e) {
|
|
302
302
|
var i = e._owner, l = v(e.type, e._source, i ? i.type : null);
|
|
303
|
-
|
|
303
|
+
L.setExtraStackFrame(l);
|
|
304
304
|
} else
|
|
305
|
-
|
|
305
|
+
L.setExtraStackFrame(null);
|
|
306
306
|
}
|
|
307
307
|
function Re(e, i, l, u, P) {
|
|
308
308
|
{
|
|
@@ -316,8 +316,8 @@ function Hr() {
|
|
|
316
316
|
throw Z.name = "Invariant Violation", Z;
|
|
317
317
|
}
|
|
318
318
|
_ = e[y](i, y, u, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
|
-
} catch (
|
|
320
|
-
_ =
|
|
319
|
+
} catch (M) {
|
|
320
|
+
_ = M;
|
|
321
321
|
}
|
|
322
322
|
_ && !(_ instanceof Error) && (ae(P), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", l, y, typeof _), ae(null)), _ instanceof Error && !(_.message in s) && (s[_.message] = !0, ae(P), g("Failed %s type: %s", l, _.message), ae(null));
|
|
323
323
|
}
|
|
@@ -430,9 +430,9 @@ function Hr() {
|
|
|
430
430
|
for (R in i)
|
|
431
431
|
n.call(i, R) && !kr.hasOwnProperty(R) && (y[R] = i[R]);
|
|
432
432
|
if (e && e.defaultProps) {
|
|
433
|
-
var
|
|
434
|
-
for (R in
|
|
435
|
-
y[R] === void 0 && (y[R] =
|
|
433
|
+
var M = e.defaultProps;
|
|
434
|
+
for (R in M)
|
|
435
|
+
y[R] === void 0 && (y[R] = M[R]);
|
|
436
436
|
}
|
|
437
437
|
if (_ || Z) {
|
|
438
438
|
var U = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
@@ -457,7 +457,7 @@ function Hr() {
|
|
|
457
457
|
function Xe() {
|
|
458
458
|
{
|
|
459
459
|
if (Fe.current) {
|
|
460
|
-
var e =
|
|
460
|
+
var e = D(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 " + D(e._owner.type) + "."), Pe(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, u), Pe(null);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
function rr(e, i) {
|
|
@@ -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 = D(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 P =
|
|
536
|
+
var P = D(i);
|
|
537
537
|
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
538
538
|
}
|
|
539
539
|
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -560,8 +560,8 @@ Check the top-level render call using <` + l + ">.");
|
|
|
560
560
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
561
561
|
var Z = Tr();
|
|
562
562
|
Z ? _ += Z : _ += Xe();
|
|
563
|
-
var
|
|
564
|
-
e === null ?
|
|
563
|
+
var M;
|
|
564
|
+
e === null ? M = "null" : De(e) ? M = "array" : e !== void 0 && e.$$typeof === o ? (M = "<" + (D(e.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : M = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", M, _);
|
|
565
565
|
}
|
|
566
566
|
var U = Nr(e, i, l, P, R);
|
|
567
567
|
if (U == null)
|
|
@@ -580,7 +580,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
580
580
|
rr(se, e);
|
|
581
581
|
}
|
|
582
582
|
if (n.call(i, "key")) {
|
|
583
|
-
var ve =
|
|
583
|
+
var ve = D(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]) {
|
|
@@ -593,7 +593,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
593
593
|
<%s key={someKey} {...props} />`, $e, ve, Fr, ve), tr[ve + $e] = !0;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
return e ===
|
|
596
|
+
return e === f ? Er(U) : Sr(U), U;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
function Ir(e, i, l) {
|
|
@@ -603,7 +603,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
603
603
|
return ar(e, i, l, !1);
|
|
604
604
|
}
|
|
605
605
|
var Lr = Br, Dr = Ir;
|
|
606
|
-
Ee.Fragment =
|
|
606
|
+
Ee.Fragment = f, Ee.jsx = Lr, Ee.jsxs = Dr;
|
|
607
607
|
})()), Ee;
|
|
608
608
|
}
|
|
609
609
|
var ir;
|
|
@@ -611,10 +611,10 @@ function Yr() {
|
|
|
611
611
|
return ir || (ir = 1, process.env.NODE_ENV === "production" ? Ie.exports = Kr() : Ie.exports = Hr()), Ie.exports;
|
|
612
612
|
}
|
|
613
613
|
var r = Yr();
|
|
614
|
-
const
|
|
614
|
+
const fr = ["en", "hi"], lr = {
|
|
615
615
|
en: "English",
|
|
616
616
|
hi: "हिन्दी"
|
|
617
|
-
},
|
|
617
|
+
}, mr = {
|
|
618
618
|
en: {
|
|
619
619
|
kundli: "Kundli",
|
|
620
620
|
birthChart: "Birth Chart",
|
|
@@ -1046,17 +1046,17 @@ const mr = ["en", "hi"], lr = {
|
|
|
1046
1046
|
astrologyGuidance: "ज्योतिष से सलाह",
|
|
1047
1047
|
selectPackage: "पैकेज चुनें"
|
|
1048
1048
|
}
|
|
1049
|
-
},
|
|
1049
|
+
}, hr = ur(null), Dn = ({
|
|
1050
1050
|
locale: t,
|
|
1051
1051
|
children: o
|
|
1052
1052
|
}) => {
|
|
1053
|
-
const
|
|
1054
|
-
return /* @__PURE__ */ r.jsx(
|
|
1053
|
+
const f = { locale: t, t: (k) => mr[t]?.[k] ?? k };
|
|
1054
|
+
return /* @__PURE__ */ r.jsx(hr.Provider, { value: f, children: o });
|
|
1055
1055
|
};
|
|
1056
1056
|
function qr() {
|
|
1057
|
-
return We(
|
|
1057
|
+
return We(hr);
|
|
1058
1058
|
}
|
|
1059
|
-
const Vr = "_container_1e1th_1", zr = "_main_1e1th_7", Jr = "_kundliHeaderNoBorder_1e1th_12", Qr = "_headerSeparator_1e1th_16", Xr = "_langDropdownWrap_1e1th_21", Zr = "_langTrigger_1e1th_25", et = "_langIcon_1e1th_37", rt = "_langLabel_1e1th_44", tt = "_langMenu_1e1th_49", at = "_langOption_1e1th_55",
|
|
1059
|
+
const Vr = "_container_1e1th_1", zr = "_main_1e1th_7", Jr = "_kundliHeaderNoBorder_1e1th_12", Qr = "_headerSeparator_1e1th_16", Xr = "_langDropdownWrap_1e1th_21", Zr = "_langTrigger_1e1th_25", et = "_langIcon_1e1th_37", rt = "_langLabel_1e1th_44", tt = "_langMenu_1e1th_49", at = "_langOption_1e1th_55", me = {
|
|
1060
1060
|
container: Vr,
|
|
1061
1061
|
main: zr,
|
|
1062
1062
|
kundliHeaderNoBorder: Jr,
|
|
@@ -1068,14 +1068,14 @@ 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:
|
|
1071
|
+
const { priority: o, fetchPriority: c, width: f, height: k, ...S } = t;
|
|
1072
1072
|
return Ge.createElement("img", {
|
|
1073
1073
|
...S,
|
|
1074
|
-
width:
|
|
1074
|
+
width: f ?? 1,
|
|
1075
1075
|
height: k ?? 1,
|
|
1076
1076
|
decoding: "async",
|
|
1077
1077
|
loading: S.loading ?? (o ? "eager" : "lazy"),
|
|
1078
|
-
...
|
|
1078
|
+
...c && { fetchPriority: c }
|
|
1079
1079
|
});
|
|
1080
1080
|
};
|
|
1081
1081
|
function nt(t) {
|
|
@@ -1094,14 +1094,14 @@ function ot(t, o) {
|
|
|
1094
1094
|
} catch {
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1097
|
+
function Fn(t) {
|
|
1098
1098
|
if (!(typeof window > "u" || !window.localStorage))
|
|
1099
1099
|
try {
|
|
1100
1100
|
window.localStorage.removeItem(t);
|
|
1101
1101
|
} catch {
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function On() {
|
|
1105
1105
|
if (typeof window > "u" || !window.localStorage)
|
|
1106
1106
|
return !1;
|
|
1107
1107
|
try {
|
|
@@ -1111,13 +1111,13 @@ function Fn() {
|
|
|
1111
1111
|
return !1;
|
|
1112
1112
|
}
|
|
1113
1113
|
}
|
|
1114
|
-
const
|
|
1114
|
+
const pr = "kundli_language";
|
|
1115
1115
|
function it() {
|
|
1116
|
-
const t = nt(
|
|
1117
|
-
return t &&
|
|
1116
|
+
const t = nt(pr);
|
|
1117
|
+
return t && fr.includes(t) ? t : null;
|
|
1118
1118
|
}
|
|
1119
1119
|
function lt(t) {
|
|
1120
|
-
ot(
|
|
1120
|
+
ot(pr, t);
|
|
1121
1121
|
}
|
|
1122
1122
|
const Ke = ur(null), st = {
|
|
1123
1123
|
fullName: "",
|
|
@@ -1131,29 +1131,29 @@ const Ke = ur(null), st = {
|
|
|
1131
1131
|
birthPlace: "",
|
|
1132
1132
|
birthPlaceLat: void 0,
|
|
1133
1133
|
birthPlaceLng: void 0
|
|
1134
|
-
},
|
|
1134
|
+
}, Mn = ({
|
|
1135
1135
|
locale: t,
|
|
1136
1136
|
showLanguageSelector: o = !0,
|
|
1137
|
-
showSheet:
|
|
1138
|
-
userId:
|
|
1137
|
+
showSheet: c,
|
|
1138
|
+
userId: f,
|
|
1139
1139
|
isGlobal: k,
|
|
1140
1140
|
variant: S,
|
|
1141
1141
|
atlasSearchLocalities: x,
|
|
1142
1142
|
logoUrl: j,
|
|
1143
1143
|
reportImageUrl: A,
|
|
1144
1144
|
reportImagePriority: E,
|
|
1145
|
-
backgroundImagePriority:
|
|
1145
|
+
backgroundImagePriority: d,
|
|
1146
1146
|
universityLogoUrls: N,
|
|
1147
|
-
sampleReportHref:
|
|
1147
|
+
sampleReportHref: h,
|
|
1148
1148
|
onViewSampleReport: I,
|
|
1149
|
-
ctaHref:
|
|
1149
|
+
ctaHref: p,
|
|
1150
1150
|
onCtaClick: B,
|
|
1151
1151
|
onBack: C,
|
|
1152
1152
|
readMoreReviewsHref: b,
|
|
1153
1153
|
onProceed: g,
|
|
1154
|
-
proceedHref:
|
|
1154
|
+
proceedHref: $,
|
|
1155
1155
|
originalPriceLabel: w,
|
|
1156
|
-
discountedPriceLabel:
|
|
1156
|
+
discountedPriceLabel: F,
|
|
1157
1157
|
discountPillLabel: K,
|
|
1158
1158
|
analytics: z,
|
|
1159
1159
|
onProceedGuidance: J,
|
|
@@ -1161,15 +1161,15 @@ const Ke = ur(null), st = {
|
|
|
1161
1161
|
imageComponent: q = Be,
|
|
1162
1162
|
children: ce
|
|
1163
1163
|
}) => {
|
|
1164
|
-
const [oe,
|
|
1164
|
+
const [oe, D] = W("landing"), [T, O] = W(t ?? "en"), [Q, pe] = W(st), fe = H(!0);
|
|
1165
1165
|
Y(() => {
|
|
1166
1166
|
const te = it();
|
|
1167
|
-
te &&
|
|
1167
|
+
te && O(te);
|
|
1168
1168
|
}, []), Y(() => {
|
|
1169
1169
|
lt(T);
|
|
1170
1170
|
}, [T]), Y(() => {
|
|
1171
|
-
if (
|
|
1172
|
-
|
|
1171
|
+
if (fe.current) {
|
|
1172
|
+
fe.current = !1;
|
|
1173
1173
|
return;
|
|
1174
1174
|
}
|
|
1175
1175
|
G?.(T);
|
|
@@ -1178,26 +1178,26 @@ const Ke = ur(null), st = {
|
|
|
1178
1178
|
() => ({
|
|
1179
1179
|
locale: t,
|
|
1180
1180
|
showLanguageSelector: o,
|
|
1181
|
-
showSheet:
|
|
1182
|
-
userId:
|
|
1181
|
+
showSheet: c,
|
|
1182
|
+
userId: f,
|
|
1183
1183
|
isGlobal: k,
|
|
1184
1184
|
variant: S,
|
|
1185
1185
|
atlasSearchLocalities: x,
|
|
1186
1186
|
logoUrl: j,
|
|
1187
1187
|
reportImageUrl: A,
|
|
1188
1188
|
reportImagePriority: E,
|
|
1189
|
-
backgroundImagePriority:
|
|
1189
|
+
backgroundImagePriority: d,
|
|
1190
1190
|
universityLogoUrls: N,
|
|
1191
|
-
sampleReportHref:
|
|
1191
|
+
sampleReportHref: h,
|
|
1192
1192
|
onViewSampleReport: I,
|
|
1193
|
-
ctaHref:
|
|
1193
|
+
ctaHref: p,
|
|
1194
1194
|
onCtaClick: B,
|
|
1195
1195
|
onBack: C,
|
|
1196
1196
|
readMoreReviewsHref: b,
|
|
1197
1197
|
onProceed: g,
|
|
1198
|
-
proceedHref:
|
|
1198
|
+
proceedHref: $,
|
|
1199
1199
|
originalPriceLabel: w,
|
|
1200
|
-
discountedPriceLabel:
|
|
1200
|
+
discountedPriceLabel: F,
|
|
1201
1201
|
discountPillLabel: K,
|
|
1202
1202
|
analytics: z,
|
|
1203
1203
|
onProceedGuidance: J,
|
|
@@ -1207,26 +1207,26 @@ const Ke = ur(null), st = {
|
|
|
1207
1207
|
[
|
|
1208
1208
|
t,
|
|
1209
1209
|
o,
|
|
1210
|
-
|
|
1211
|
-
|
|
1210
|
+
c,
|
|
1211
|
+
f,
|
|
1212
1212
|
k,
|
|
1213
1213
|
S,
|
|
1214
1214
|
x,
|
|
1215
1215
|
j,
|
|
1216
1216
|
A,
|
|
1217
1217
|
E,
|
|
1218
|
-
|
|
1218
|
+
d,
|
|
1219
1219
|
N,
|
|
1220
|
-
p,
|
|
1221
|
-
I,
|
|
1222
1220
|
h,
|
|
1221
|
+
I,
|
|
1222
|
+
p,
|
|
1223
1223
|
B,
|
|
1224
1224
|
C,
|
|
1225
1225
|
b,
|
|
1226
1226
|
g,
|
|
1227
|
-
|
|
1227
|
+
$,
|
|
1228
1228
|
w,
|
|
1229
|
-
|
|
1229
|
+
F,
|
|
1230
1230
|
K,
|
|
1231
1231
|
z,
|
|
1232
1232
|
J,
|
|
@@ -1234,17 +1234,17 @@ const Ke = ur(null), st = {
|
|
|
1234
1234
|
q
|
|
1235
1235
|
]
|
|
1236
1236
|
), ee = Ne(() => {
|
|
1237
|
-
|
|
1237
|
+
D("form");
|
|
1238
1238
|
}, [V.analytics]), re = Ne(() => {
|
|
1239
|
-
|
|
1239
|
+
D("landing"), V.onBack?.();
|
|
1240
1240
|
}, [V.onBack]), de = Ue(
|
|
1241
1241
|
() => ({
|
|
1242
1242
|
view: oe,
|
|
1243
1243
|
locale: T,
|
|
1244
|
-
setLocale:
|
|
1244
|
+
setLocale: O,
|
|
1245
1245
|
config: V,
|
|
1246
1246
|
formValues: Q,
|
|
1247
|
-
setFormValues:
|
|
1247
|
+
setFormValues: pe,
|
|
1248
1248
|
goToForm: ee,
|
|
1249
1249
|
goToPage: re,
|
|
1250
1250
|
onProceed: V.onProceed,
|
|
@@ -1257,7 +1257,7 @@ const Ke = ur(null), st = {
|
|
|
1257
1257
|
function Te() {
|
|
1258
1258
|
return We(Ke);
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function $n() {
|
|
1261
1261
|
const t = We(Ke);
|
|
1262
1262
|
if (!t)
|
|
1263
1263
|
throw new Error("useKundliContextOrThrow must be used within KundliProvider");
|
|
@@ -1269,8 +1269,8 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1269
1269
|
}, ut = ({
|
|
1270
1270
|
t,
|
|
1271
1271
|
onBack: o,
|
|
1272
|
-
className:
|
|
1273
|
-
align:
|
|
1272
|
+
className: c = "",
|
|
1273
|
+
align: f = "left"
|
|
1274
1274
|
}) => /* @__PURE__ */ r.jsx(
|
|
1275
1275
|
Mr,
|
|
1276
1276
|
{
|
|
@@ -1278,13 +1278,13 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1278
1278
|
subtitle: t("formSubtitle"),
|
|
1279
1279
|
onBack: o,
|
|
1280
1280
|
backAriaLabel: t("back"),
|
|
1281
|
-
className: `${sr.header} ${
|
|
1281
|
+
className: `${sr.header} ${f === "center" ? sr.centered : ""} ${c}`
|
|
1282
1282
|
}
|
|
1283
|
-
),
|
|
1284
|
-
wrap:
|
|
1285
|
-
card:
|
|
1286
|
-
cardInner:
|
|
1287
|
-
field:
|
|
1283
|
+
), ft = "_wrap_119w3_1", mt = "_card_119w3_5", ht = "_cardInner_119w3_12", pt = "_field_119w3_44", gt = "_labelRow_119w3_48", _t = "_label_119w3_48", bt = "_req_119w3_57", yt = "_help_119w3_61", vt = "_choiceRow_119w3_68", kt = "_choiceBtn_119w3_74", wt = "_choiceBtnActive_119w3_99", xt = "_infoBtn_119w3_105", Pt = "_infoImg_119w3_122", At = "_infoWrap_119w3_128", Ct = "_tooltip_119w3_134", jt = "_tooltipArrow_119w3_150", Nt = "_inputWrap_119w3_161", Tt = "_isdWrap_119w3_165", Rt = "_phoneInputGroup_119w3_169", St = "_isdSelectWrap_119w3_178", Et = "_isdSelectTrigger_119w3_197", It = "_isdDropdown_119w3_214", Bt = "_isdSearchWrap_119w3_229", Lt = "_isdSearchInput_119w3_237", Dt = "_isdOption_119w3_255", Ft = "_isdOptionActive_119w3_275", Ot = "_isdCountryName_119w3_281", Mt = "_isdCountryCode_119w3_288", $t = "_isdNoResult_119w3_295", Ut = "_suggestions_119w3_302", Gt = "_suggestionItem_119w3_315", Wt = "_suggestionMain_119w3_333", Kt = "_suggestionSecondary_119w3_339", Ht = "_suggestionsHint_119w3_344", Yt = "_fieldError_119w3_359", qt = "_timePopover_119w3_366", Vt = "_timePickerRow_119w3_382", zt = "_timePickerSelect_119w3_388", Jt = "_timePickerColon_119w3_404", Qt = "_meridiemToggle_119w3_412", Xt = "_meridiemBtn_119w3_421", Zt = "_meridiemActive_119w3_436", ea = "_timePopoverActions_119w3_441", ra = "_timePopoverBtn_119w3_447", ta = "_timePopoverOk_119w3_466", aa = "_input_119w3_161", na = "_phoneInput_119w3_169", oa = "_iconBtn_119w3_519", ia = "_iconBtnInteractive_119w3_525", la = "_iconImg_119w3_544", sa = "_checkboxRow_119w3_550", ca = "_checkbox_119w3_550", da = "_checkboxText_119w3_588", a = {
|
|
1284
|
+
wrap: ft,
|
|
1285
|
+
card: mt,
|
|
1286
|
+
cardInner: ht,
|
|
1287
|
+
field: pt,
|
|
1288
1288
|
labelRow: gt,
|
|
1289
1289
|
label: _t,
|
|
1290
1290
|
req: bt,
|
|
@@ -1335,27 +1335,27 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1335
1335
|
checkbox: ca,
|
|
1336
1336
|
checkboxText: da
|
|
1337
1337
|
}, cr = (t) => typeof t == "number" && Number.isFinite(t), ua = (t) => {
|
|
1338
|
-
const o = typeof t?.limit == "number" && t.limit > 0 ? Math.min(t.limit, 20) : 8,
|
|
1338
|
+
const o = typeof t?.limit == "number" && t.limit > 0 ? Math.min(t.limit, 20) : 8, c = typeof t?.offset == "number" && t.offset >= 0 ? t.offset : 0;
|
|
1339
1339
|
return {
|
|
1340
1340
|
limit: o,
|
|
1341
|
-
offset:
|
|
1341
|
+
offset: c,
|
|
1342
1342
|
restrictCountry: t?.restrictCountry
|
|
1343
1343
|
};
|
|
1344
|
-
},
|
|
1345
|
-
const { searchLocalities: o, restrictCountry:
|
|
1344
|
+
}, fa = (t) => {
|
|
1345
|
+
const { searchLocalities: o, restrictCountry: c } = t, [f, k] = W([]), [S, x] = W(!1), [j, A] = W(null), E = H(0);
|
|
1346
1346
|
Y(() => {
|
|
1347
1347
|
A(null);
|
|
1348
1348
|
}, [o]);
|
|
1349
|
-
const
|
|
1350
|
-
async (
|
|
1351
|
-
if (!
|
|
1349
|
+
const d = Ne(
|
|
1350
|
+
async (h) => {
|
|
1351
|
+
if (!h || h.length < 2 || !o) {
|
|
1352
1352
|
k([]);
|
|
1353
1353
|
return;
|
|
1354
1354
|
}
|
|
1355
1355
|
const I = ++E.current;
|
|
1356
1356
|
x(!0), A(null);
|
|
1357
1357
|
try {
|
|
1358
|
-
const
|
|
1358
|
+
const p = ua({ restrictCountry: c }), B = await o(h, p);
|
|
1359
1359
|
if (I !== E.current) return;
|
|
1360
1360
|
const C = (B || []).filter(
|
|
1361
1361
|
(b) => !!b?.id && !!b?.description && cr(b?.lat) && cr(b?.lng)
|
|
@@ -1367,20 +1367,20 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1367
1367
|
lng: b.lng
|
|
1368
1368
|
}));
|
|
1369
1369
|
k(C);
|
|
1370
|
-
} catch (
|
|
1370
|
+
} catch (p) {
|
|
1371
1371
|
if (I !== E.current) return;
|
|
1372
|
-
k([]), A(
|
|
1372
|
+
k([]), A(p?.message || "Failed to fetch locations");
|
|
1373
1373
|
} finally {
|
|
1374
1374
|
I === E.current && x(!1);
|
|
1375
1375
|
}
|
|
1376
1376
|
},
|
|
1377
|
-
[
|
|
1377
|
+
[c, o]
|
|
1378
1378
|
), N = Ne(() => k([]), []);
|
|
1379
1379
|
return {
|
|
1380
|
-
predictions:
|
|
1380
|
+
predictions: f,
|
|
1381
1381
|
isSearching: S,
|
|
1382
1382
|
loadError: j,
|
|
1383
|
-
searchPlaces:
|
|
1383
|
+
searchPlaces: d,
|
|
1384
1384
|
clearPredictions: N
|
|
1385
1385
|
};
|
|
1386
1386
|
}, Ce = {
|
|
@@ -1460,58 +1460,55 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1460
1460
|
{ code: "+977", country: "Nepal" }
|
|
1461
1461
|
];
|
|
1462
1462
|
gr.map((t) => t.code);
|
|
1463
|
-
const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
1463
|
+
const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r), ma = (t) => He(t).length === _r, ha = (t, o, c) => ma(t) ? c.phone ? { shouldTrack: !1 } : (c.phone = !0, { shouldTrack: !0, fullPhone: `${o}${He(t)}` }) : (c.phone = !1, { shouldTrack: !1 }), pa = ({
|
|
1464
1464
|
t,
|
|
1465
1465
|
values: o,
|
|
1466
|
-
onChange:
|
|
1467
|
-
phoneIsdCode:
|
|
1466
|
+
onChange: c,
|
|
1467
|
+
phoneIsdCode: f,
|
|
1468
1468
|
onPhoneIsdCodeChange: k,
|
|
1469
1469
|
showV1ExtraFields: S = !1,
|
|
1470
1470
|
analytics: x,
|
|
1471
1471
|
atlasSearchLocalities: j,
|
|
1472
1472
|
className: A = ""
|
|
1473
1473
|
}) => {
|
|
1474
|
-
const E = Te(),
|
|
1474
|
+
const E = Te(), d = E?.config?.analytics ?? x, N = E?.config.isGlobal ?? !0, h = E?.config?.atlasSearchLocalities, [I, p] = W(!1), [B, C] = W(""), b = H(null), g = H(null), $ = H({}), w = (n) => c({ ...o, ...n }), F = (n, s) => {
|
|
1475
1475
|
if (n === "phone") {
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
}
|
|
1480
|
-
if (O.current[n]) return;
|
|
1476
|
+
const L = ha(s, f, $.current);
|
|
1477
|
+
L.shouldTrack && d?.trackPhoneSectionFilled?.({ phone: L.fullPhone });
|
|
1478
|
+
return;
|
|
1481
1479
|
}
|
|
1482
|
-
s.trim() &&
|
|
1483
|
-
fullName: () =>
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
birthPlace: () => c?.trackPlaceOfBirthChosen?.()
|
|
1480
|
+
s.trim() && !$.current[n] && ($.current[n] = !0, {
|
|
1481
|
+
fullName: () => d?.trackNameSectionFilled?.(),
|
|
1482
|
+
email: () => d?.trackEmailSectionFilled?.(),
|
|
1483
|
+
dateOfBirth: () => d?.trackDobFilled?.(),
|
|
1484
|
+
birthTime: () => d?.trackTimeFilled?.(),
|
|
1485
|
+
birthPlace: () => d?.trackPlaceOfBirthChosen?.()
|
|
1489
1486
|
}[n]?.());
|
|
1490
1487
|
}, K = B.trim().toLowerCase(), z = gr.filter((n) => K ? n.country.toLowerCase().includes(K) || n.code.includes(K) : !0), J = H(null);
|
|
1491
1488
|
H(null);
|
|
1492
|
-
const G = H(null), q = H(0), ce = H(null), [oe,
|
|
1489
|
+
const G = H(null), q = H(0), ce = H(null), [oe, D] = W(!1), [T, O] = W({ hour12: 12, minute: "00", meridiem: "AM" }), Q = (n) => String(n).padStart(2, "0"), pe = (n) => {
|
|
1493
1490
|
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
1494
1491
|
if (!s) return n;
|
|
1495
|
-
const
|
|
1496
|
-
return `${
|
|
1497
|
-
},
|
|
1492
|
+
const L = Number(s[1]), ae = s[2], Re = L >= 12 ? "PM" : "AM";
|
|
1493
|
+
return `${L % 12 === 0 ? 12 : L % 12}:${ae} ${Re}`;
|
|
1494
|
+
}, fe = (n) => {
|
|
1498
1495
|
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
1499
1496
|
if (!s) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
1500
|
-
const
|
|
1501
|
-
return { hour12:
|
|
1497
|
+
const L = Number(s[1]), ae = s[2], Re = L >= 12 ? "PM" : "AM";
|
|
1498
|
+
return { hour12: L % 12 === 0 ? 12 : L % 12, minute: ae, meridiem: Re };
|
|
1502
1499
|
}, V = (n) => {
|
|
1503
|
-
const s = Math.min(12, Math.max(1, n.hour12)),
|
|
1500
|
+
const s = Math.min(12, Math.max(1, n.hour12)), L = /^([0-5]\d)$/.test(n.minute) ? n.minute : "00";
|
|
1504
1501
|
let ae = s % 12;
|
|
1505
|
-
return n.meridiem === "PM" && (ae += 12), `${Q(ae)}:${
|
|
1506
|
-
}, ee = H(null), [re, de] = W(!1), [te,
|
|
1502
|
+
return n.meridiem === "PM" && (ae += 12), `${Q(ae)}:${L}`;
|
|
1503
|
+
}, ee = H(null), [re, de] = W(!1), [te, he] = W(
|
|
1507
1504
|
null
|
|
1508
|
-
), ie = (o.birthPlace ?? "").trim(), ge = N ? void 0 : "in", ue = j ??
|
|
1505
|
+
), ie = (o.birthPlace ?? "").trim(), ge = N ? void 0 : "in", ue = j ?? h, X = Number.isFinite(o.birthPlaceLat) && Number.isFinite(o.birthPlaceLng), be = ie.length > 0 && !X && !re, {
|
|
1509
1506
|
predictions: le,
|
|
1510
1507
|
isSearching: we,
|
|
1511
1508
|
loadError: _e,
|
|
1512
1509
|
searchPlaces: xe,
|
|
1513
1510
|
clearPredictions: ye
|
|
1514
|
-
} =
|
|
1511
|
+
} = fa({
|
|
1515
1512
|
searchLocalities: ue,
|
|
1516
1513
|
restrictCountry: ge
|
|
1517
1514
|
});
|
|
@@ -1522,7 +1519,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1522
1519
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1523
1520
|
}, []), Y(() => {
|
|
1524
1521
|
const n = (s) => {
|
|
1525
|
-
b.current && (b.current.contains(s.target) || (
|
|
1522
|
+
b.current && (b.current.contains(s.target) || (p(!1), C("")));
|
|
1526
1523
|
};
|
|
1527
1524
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1528
1525
|
}, []), Y(() => {
|
|
@@ -1558,14 +1555,14 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1558
1555
|
};
|
|
1559
1556
|
return Y(() => {
|
|
1560
1557
|
const n = (s) => {
|
|
1561
|
-
ce.current && (ce.current.contains(s.target) ||
|
|
1558
|
+
ce.current && (ce.current.contains(s.target) || D(!1));
|
|
1562
1559
|
};
|
|
1563
1560
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1564
1561
|
}, []), Y(() => {
|
|
1565
|
-
const n = (
|
|
1566
|
-
|
|
1567
|
-
}, s = (
|
|
1568
|
-
|
|
1562
|
+
const n = (L) => {
|
|
1563
|
+
L.target?.closest?.("[data-info-tooltip]") == null && he(null);
|
|
1564
|
+
}, s = (L) => {
|
|
1565
|
+
L.key === "Escape" && he(null);
|
|
1569
1566
|
};
|
|
1570
1567
|
return document.addEventListener("mousedown", n), document.addEventListener("keydown", s), () => {
|
|
1571
1568
|
document.removeEventListener("mousedown", n), document.removeEventListener("keydown", s);
|
|
@@ -1588,10 +1585,10 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1588
1585
|
className: a.input,
|
|
1589
1586
|
type: "text",
|
|
1590
1587
|
value: o.fullName,
|
|
1591
|
-
onFocus: () =>
|
|
1588
|
+
onFocus: () => d?.trackNameSectionClicked?.(),
|
|
1592
1589
|
onChange: (n) => {
|
|
1593
1590
|
const s = n.target.value;
|
|
1594
|
-
w({ fullName: s }),
|
|
1591
|
+
w({ fullName: s }), F("fullName", s);
|
|
1595
1592
|
},
|
|
1596
1593
|
placeholder: t("formFullNamePlaceholder"),
|
|
1597
1594
|
autoComplete: "name"
|
|
@@ -1613,9 +1610,9 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1613
1610
|
"aria-haspopup": "listbox",
|
|
1614
1611
|
"aria-expanded": I,
|
|
1615
1612
|
onClick: () => {
|
|
1616
|
-
|
|
1613
|
+
p((n) => !n), C("");
|
|
1617
1614
|
},
|
|
1618
|
-
children:
|
|
1615
|
+
children: f
|
|
1619
1616
|
}
|
|
1620
1617
|
) }),
|
|
1621
1618
|
/* @__PURE__ */ r.jsx(
|
|
@@ -1625,10 +1622,10 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1625
1622
|
className: `${a.input} ${a.phoneInput}`,
|
|
1626
1623
|
type: "tel",
|
|
1627
1624
|
value: o.phone ?? "",
|
|
1628
|
-
onFocus: () =>
|
|
1625
|
+
onFocus: () => d?.trackPhoneSectionClicked?.(),
|
|
1629
1626
|
onChange: (n) => {
|
|
1630
1627
|
const s = n.target.value;
|
|
1631
|
-
w({ phone: dr(s) }),
|
|
1628
|
+
w({ phone: dr(s) }), F("phone", dr(s));
|
|
1632
1629
|
},
|
|
1633
1630
|
placeholder: t("formPhonePlaceholder"),
|
|
1634
1631
|
autoComplete: "tel",
|
|
@@ -1664,10 +1661,10 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1664
1661
|
{
|
|
1665
1662
|
type: "button",
|
|
1666
1663
|
role: "option",
|
|
1667
|
-
"aria-selected": n.code ===
|
|
1668
|
-
className: `${a.isdOption} ${n.code ===
|
|
1664
|
+
"aria-selected": n.code === f,
|
|
1665
|
+
className: `${a.isdOption} ${n.code === f ? a.isdOptionActive : ""}`,
|
|
1669
1666
|
onClick: () => {
|
|
1670
|
-
k(n.code),
|
|
1667
|
+
k(n.code), p(!1), C("");
|
|
1671
1668
|
},
|
|
1672
1669
|
children: [
|
|
1673
1670
|
/* @__PURE__ */ r.jsx("span", { className: a.isdCountryName, children: n.country }),
|
|
@@ -1700,7 +1697,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1700
1697
|
type: "button",
|
|
1701
1698
|
className: `${a.choiceBtn} ${o.gender === "male" ? a.choiceBtnActive : ""}`,
|
|
1702
1699
|
onClick: () => {
|
|
1703
|
-
w({ gender: "male" }),
|
|
1700
|
+
w({ gender: "male" }), d?.trackGenderSelected?.({
|
|
1704
1701
|
gender: "male"
|
|
1705
1702
|
});
|
|
1706
1703
|
},
|
|
@@ -1716,7 +1713,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1716
1713
|
type: "button",
|
|
1717
1714
|
className: `${a.choiceBtn} ${o.gender === "female" ? a.choiceBtnActive : ""}`,
|
|
1718
1715
|
onClick: () => {
|
|
1719
|
-
w({ gender: "female" }),
|
|
1716
|
+
w({ gender: "female" }), d?.trackGenderSelected?.({
|
|
1720
1717
|
gender: "female"
|
|
1721
1718
|
});
|
|
1722
1719
|
},
|
|
@@ -1765,7 +1762,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1765
1762
|
"aria-label": t("info"),
|
|
1766
1763
|
"aria-expanded": te === "dob",
|
|
1767
1764
|
onClick: () => {
|
|
1768
|
-
|
|
1765
|
+
he((n) => n === "dob" ? null : "dob"), d?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
1769
1766
|
},
|
|
1770
1767
|
children: /* @__PURE__ */ r.jsx(
|
|
1771
1768
|
"img",
|
|
@@ -1798,10 +1795,10 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1798
1795
|
return `${n.getFullYear()}-${Q(n.getMonth() + 1)}-${Q(n.getDate())}`;
|
|
1799
1796
|
})(),
|
|
1800
1797
|
onChange: (n) => {
|
|
1801
|
-
const s = n.target.value,
|
|
1802
|
-
s && s > ae || (w({ dateOfBirth: s }),
|
|
1798
|
+
const s = n.target.value, L = /* @__PURE__ */ new Date(), ae = `${L.getFullYear()}-${Q(L.getMonth() + 1)}-${Q(L.getDate())}`;
|
|
1799
|
+
s && s > ae || (w({ dateOfBirth: s }), F("dateOfBirth", s), G.current = null);
|
|
1803
1800
|
},
|
|
1804
|
-
onFocus: () =>
|
|
1801
|
+
onFocus: () => d?.trackDobClicked?.(),
|
|
1805
1802
|
onClick: () => v(J),
|
|
1806
1803
|
onBlur: () => {
|
|
1807
1804
|
G.current === J.current && (G.current = null);
|
|
@@ -1846,7 +1843,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1846
1843
|
"aria-label": t("info"),
|
|
1847
1844
|
"aria-expanded": te === "time",
|
|
1848
1845
|
onClick: () => {
|
|
1849
|
-
|
|
1846
|
+
d?.trackInfoIconClicked?.({ fieldName: "time" }), he((n) => n === "time" ? null : "time");
|
|
1850
1847
|
},
|
|
1851
1848
|
children: /* @__PURE__ */ r.jsx(
|
|
1852
1849
|
"img",
|
|
@@ -1872,17 +1869,17 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1872
1869
|
id: "kundli-birth-time",
|
|
1873
1870
|
className: a.input,
|
|
1874
1871
|
type: "text",
|
|
1875
|
-
value: o.birthTime ?
|
|
1872
|
+
value: o.birthTime ? pe(o.birthTime) : "",
|
|
1876
1873
|
readOnly: !0,
|
|
1877
|
-
onFocus: () =>
|
|
1874
|
+
onFocus: () => d?.trackTimeClicked?.(),
|
|
1878
1875
|
onChange: (n) => {
|
|
1879
1876
|
const s = n.target.value;
|
|
1880
|
-
w({ birthTime: s }),
|
|
1877
|
+
w({ birthTime: s }), F("birthTime", s);
|
|
1881
1878
|
},
|
|
1882
1879
|
disabled: o.birthTimeUnknown,
|
|
1883
1880
|
placeholder: "HH:MM AM",
|
|
1884
1881
|
onClick: () => {
|
|
1885
|
-
o.birthTimeUnknown || (
|
|
1882
|
+
o.birthTimeUnknown || (O(fe(o.birthTime || "12:00")), D((n) => !n));
|
|
1886
1883
|
}
|
|
1887
1884
|
}
|
|
1888
1885
|
),
|
|
@@ -1895,7 +1892,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1895
1892
|
disabled: o.birthTimeUnknown,
|
|
1896
1893
|
onMouseDown: (n) => n.preventDefault(),
|
|
1897
1894
|
onClick: (n) => {
|
|
1898
|
-
n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (
|
|
1895
|
+
n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (O(fe(o.birthTime || "12:00")), D((s) => !s));
|
|
1899
1896
|
},
|
|
1900
1897
|
children: /* @__PURE__ */ r.jsx(
|
|
1901
1898
|
"img",
|
|
@@ -1921,7 +1918,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1921
1918
|
{
|
|
1922
1919
|
className: a.timePickerSelect,
|
|
1923
1920
|
value: T.hour12,
|
|
1924
|
-
onChange: (n) =>
|
|
1921
|
+
onChange: (n) => O((s) => ({
|
|
1925
1922
|
...s,
|
|
1926
1923
|
hour12: Number(n.target.value)
|
|
1927
1924
|
})),
|
|
@@ -1935,7 +1932,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1935
1932
|
{
|
|
1936
1933
|
className: a.timePickerSelect,
|
|
1937
1934
|
value: T.minute,
|
|
1938
|
-
onChange: (n) =>
|
|
1935
|
+
onChange: (n) => O((s) => ({ ...s, minute: n.target.value })),
|
|
1939
1936
|
"aria-label": "Minute",
|
|
1940
1937
|
children: Array.from({ length: 60 }, (n, s) => Q(s)).map(
|
|
1941
1938
|
(n) => /* @__PURE__ */ r.jsx("option", { value: n, children: n }, n)
|
|
@@ -1948,7 +1945,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1948
1945
|
{
|
|
1949
1946
|
type: "button",
|
|
1950
1947
|
className: `${a.meridiemBtn} ${T.meridiem === "AM" ? a.meridiemActive : ""}`,
|
|
1951
|
-
onClick: () =>
|
|
1948
|
+
onClick: () => O((n) => ({ ...n, meridiem: "AM" })),
|
|
1952
1949
|
children: "AM"
|
|
1953
1950
|
}
|
|
1954
1951
|
),
|
|
@@ -1957,7 +1954,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1957
1954
|
{
|
|
1958
1955
|
type: "button",
|
|
1959
1956
|
className: `${a.meridiemBtn} ${T.meridiem === "PM" ? a.meridiemActive : ""}`,
|
|
1960
|
-
onClick: () =>
|
|
1957
|
+
onClick: () => O((n) => ({ ...n, meridiem: "PM" })),
|
|
1961
1958
|
children: "PM"
|
|
1962
1959
|
}
|
|
1963
1960
|
)
|
|
@@ -1969,7 +1966,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1969
1966
|
{
|
|
1970
1967
|
type: "button",
|
|
1971
1968
|
className: a.timePopoverBtn,
|
|
1972
|
-
onClick: () =>
|
|
1969
|
+
onClick: () => D(!1),
|
|
1973
1970
|
children: "Cancel"
|
|
1974
1971
|
}
|
|
1975
1972
|
),
|
|
@@ -1980,7 +1977,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1980
1977
|
className: `${a.timePopoverBtn} ${a.timePopoverOk}`,
|
|
1981
1978
|
onClick: () => {
|
|
1982
1979
|
const n = V(T);
|
|
1983
|
-
w({ birthTime: n }),
|
|
1980
|
+
w({ birthTime: n }), F("birthTime", n), D(!1);
|
|
1984
1981
|
},
|
|
1985
1982
|
"aria-label": "OK",
|
|
1986
1983
|
children: /* @__PURE__ */ r.jsx(
|
|
@@ -2020,7 +2017,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2020
2017
|
type: "checkbox",
|
|
2021
2018
|
checked: o.birthTimeUnknown,
|
|
2022
2019
|
onChange: (n) => {
|
|
2023
|
-
|
|
2020
|
+
d?.trackTimeCheckboxClicked?.(), w({
|
|
2024
2021
|
birthTimeUnknown: n.target.checked,
|
|
2025
2022
|
birthTime: n.target.checked ? "" : o.birthTime
|
|
2026
2023
|
});
|
|
@@ -2056,9 +2053,9 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2056
2053
|
"aria-label": t("info"),
|
|
2057
2054
|
"aria-expanded": te === "place",
|
|
2058
2055
|
onClick: () => {
|
|
2059
|
-
|
|
2056
|
+
d?.trackInfoIconClicked?.({
|
|
2060
2057
|
fieldName: "birthPlace"
|
|
2061
|
-
}),
|
|
2058
|
+
}), he((n) => n === "place" ? null : "place");
|
|
2062
2059
|
},
|
|
2063
2060
|
children: /* @__PURE__ */ r.jsx(
|
|
2064
2061
|
"img",
|
|
@@ -2091,10 +2088,10 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2091
2088
|
birthPlace: s,
|
|
2092
2089
|
birthPlaceLat: void 0,
|
|
2093
2090
|
birthPlaceLng: void 0
|
|
2094
|
-
}),
|
|
2091
|
+
}), F("birthPlace", s), de(!0);
|
|
2095
2092
|
},
|
|
2096
2093
|
onFocus: () => {
|
|
2097
|
-
|
|
2094
|
+
d?.trackPlaceOfBirthClicked?.(), de(!0);
|
|
2098
2095
|
},
|
|
2099
2096
|
placeholder: t("formBirthPlacePlaceholder"),
|
|
2100
2097
|
autoComplete: "address-level2"
|
|
@@ -2152,7 +2149,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2152
2149
|
type: "button",
|
|
2153
2150
|
className: `${a.choiceBtn} ${o.language_code === "hi" ? a.choiceBtnActive : ""}`,
|
|
2154
2151
|
onClick: () => {
|
|
2155
|
-
w({ language_code: "hi" }),
|
|
2152
|
+
w({ language_code: "hi" }), d?.trackLanguageOfReportSelected?.({
|
|
2156
2153
|
language: "hi"
|
|
2157
2154
|
});
|
|
2158
2155
|
},
|
|
@@ -2168,7 +2165,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2168
2165
|
type: "button",
|
|
2169
2166
|
className: `${a.choiceBtn} ${o.language_code === "en" ? a.choiceBtnActive : ""}`,
|
|
2170
2167
|
onClick: () => {
|
|
2171
|
-
w({ language_code: "en" }),
|
|
2168
|
+
w({ language_code: "en" }), d?.trackLanguageOfReportSelected?.({
|
|
2172
2169
|
language: "en"
|
|
2173
2170
|
});
|
|
2174
2171
|
},
|
|
@@ -2184,7 +2181,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2184
2181
|
type: "button",
|
|
2185
2182
|
className: `${a.choiceBtn} ${o.language_code === "te" ? a.choiceBtnActive : ""}`,
|
|
2186
2183
|
onClick: () => {
|
|
2187
|
-
w({ language_code: "te" }),
|
|
2184
|
+
w({ language_code: "te" }), d?.trackLanguageOfReportSelected?.({
|
|
2188
2185
|
language: "te"
|
|
2189
2186
|
});
|
|
2190
2187
|
},
|
|
@@ -2200,7 +2197,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2200
2197
|
type: "button",
|
|
2201
2198
|
className: `${a.choiceBtn} ${o.language_code === "ta" ? a.choiceBtnActive : ""}`,
|
|
2202
2199
|
onClick: () => {
|
|
2203
|
-
w({ language_code: "ta" }),
|
|
2200
|
+
w({ language_code: "ta" }), d?.trackLanguageOfReportSelected?.({
|
|
2204
2201
|
language: "ta"
|
|
2205
2202
|
});
|
|
2206
2203
|
},
|
|
@@ -2216,7 +2213,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2216
2213
|
type: "button",
|
|
2217
2214
|
className: `${a.choiceBtn} ${o.language_code === "kn" ? a.choiceBtnActive : ""}`,
|
|
2218
2215
|
onClick: () => {
|
|
2219
|
-
w({ language_code: "kn" }),
|
|
2216
|
+
w({ language_code: "kn" }), d?.trackLanguageOfReportSelected?.({
|
|
2220
2217
|
language: "kn"
|
|
2221
2218
|
});
|
|
2222
2219
|
},
|
|
@@ -2232,7 +2229,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2232
2229
|
type: "button",
|
|
2233
2230
|
className: `${a.choiceBtn} ${o.language_code === "gu" ? a.choiceBtnActive : ""}`,
|
|
2234
2231
|
onClick: () => {
|
|
2235
|
-
w({ language_code: "gu" }),
|
|
2232
|
+
w({ language_code: "gu" }), d?.trackLanguageOfReportSelected?.({
|
|
2236
2233
|
language: "gu"
|
|
2237
2234
|
});
|
|
2238
2235
|
},
|
|
@@ -2248,7 +2245,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2248
2245
|
type: "button",
|
|
2249
2246
|
className: `${a.choiceBtn} ${o.language_code === "mr" ? a.choiceBtnActive : ""}`,
|
|
2250
2247
|
onClick: () => {
|
|
2251
|
-
w({ language_code: "mr" }),
|
|
2248
|
+
w({ language_code: "mr" }), d?.trackLanguageOfReportSelected?.({
|
|
2252
2249
|
language: "mr"
|
|
2253
2250
|
});
|
|
2254
2251
|
},
|
|
@@ -2264,19 +2261,19 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2264
2261
|
] }) })
|
|
2265
2262
|
}
|
|
2266
2263
|
);
|
|
2267
|
-
},
|
|
2268
|
-
ctaButton:
|
|
2269
|
-
ctaFilled:
|
|
2270
|
-
ctaFilledContent:
|
|
2271
|
-
chevronRight:
|
|
2272
|
-
}, br = "kundli-report-astrologer",
|
|
2273
|
-
const
|
|
2264
|
+
}, ga = "_ctaButton_rhimw_2", _a = "_ctaFilled_rhimw_21", ba = "_ctaFilledContent_rhimw_52", ya = "_chevronRight_rhimw_61", je = {
|
|
2265
|
+
ctaButton: ga,
|
|
2266
|
+
ctaFilled: _a,
|
|
2267
|
+
ctaFilledContent: ba,
|
|
2268
|
+
chevronRight: ya
|
|
2269
|
+
}, br = "kundli-report-astrologer", va = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", ka = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", wa = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", xa = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", Pa = ({ t }) => {
|
|
2270
|
+
const c = Te()?.config.imageComponent ?? Be;
|
|
2274
2271
|
return /* @__PURE__ */ r.jsxs("div", { className: ke.marqueeContent, children: [
|
|
2275
2272
|
/* @__PURE__ */ r.jsxs("span", { className: ke.badge, children: [
|
|
2276
2273
|
/* @__PURE__ */ r.jsx(
|
|
2277
|
-
|
|
2274
|
+
c,
|
|
2278
2275
|
{
|
|
2279
|
-
src:
|
|
2276
|
+
src: va,
|
|
2280
2277
|
alt: "",
|
|
2281
2278
|
className: ke.badgeIcon,
|
|
2282
2279
|
width: 16,
|
|
@@ -2288,9 +2285,9 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2288
2285
|
] }),
|
|
2289
2286
|
/* @__PURE__ */ r.jsxs("span", { className: ke.badge, children: [
|
|
2290
2287
|
/* @__PURE__ */ r.jsx(
|
|
2291
|
-
|
|
2288
|
+
c,
|
|
2292
2289
|
{
|
|
2293
|
-
src:
|
|
2290
|
+
src: ka,
|
|
2294
2291
|
alt: "",
|
|
2295
2292
|
className: ke.badgeIcon,
|
|
2296
2293
|
width: 16,
|
|
@@ -2302,9 +2299,9 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2302
2299
|
] }),
|
|
2303
2300
|
/* @__PURE__ */ r.jsxs("span", { className: ke.badge, children: [
|
|
2304
2301
|
/* @__PURE__ */ r.jsx(
|
|
2305
|
-
|
|
2302
|
+
c,
|
|
2306
2303
|
{
|
|
2307
|
-
src:
|
|
2304
|
+
src: wa,
|
|
2308
2305
|
alt: "",
|
|
2309
2306
|
className: ke.badgeIcon,
|
|
2310
2307
|
width: 16,
|
|
@@ -2315,65 +2312,65 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2315
2312
|
t("ctaSecurePayment")
|
|
2316
2313
|
] })
|
|
2317
2314
|
] });
|
|
2318
|
-
},
|
|
2315
|
+
}, Aa = (t) => /.+@.+\..+/.test(t), Ca = (t) => /^\d{10}$/.test(t), ja = (t, o, c) => {
|
|
2319
2316
|
if (!t.fullName.trim()) return "fullName";
|
|
2320
2317
|
if (o) {
|
|
2321
|
-
if (!
|
|
2322
|
-
} else if (!
|
|
2318
|
+
if (!Aa(t.email.trim())) return "email";
|
|
2319
|
+
} else if (!Ca((t.phone ?? "").trim())) return "phone";
|
|
2323
2320
|
if (!t.dateOfBirth) return "dateOfBirth";
|
|
2324
2321
|
if (!t.birthPlace.trim()) return "birthPlace";
|
|
2325
2322
|
if (!Number.isFinite(t.birthPlaceLat) || !Number.isFinite(t.birthPlaceLng))
|
|
2326
2323
|
return "birthPlaceCoordinates";
|
|
2327
|
-
if (
|
|
2324
|
+
if (c) {
|
|
2328
2325
|
if (!t.gender) return "gender";
|
|
2329
2326
|
if (!t.language_code) return "language_code";
|
|
2330
2327
|
}
|
|
2331
2328
|
return !t.birthTimeUnknown && !t.birthTime ? "birthTime" : null;
|
|
2332
|
-
},
|
|
2329
|
+
}, Na = ({
|
|
2333
2330
|
t,
|
|
2334
2331
|
values: o,
|
|
2335
|
-
phoneIsdCode:
|
|
2336
|
-
hideOriginalPrice:
|
|
2332
|
+
phoneIsdCode: c,
|
|
2333
|
+
hideOriginalPrice: f = !1,
|
|
2337
2334
|
requireV1ExtraFields: k = !1,
|
|
2338
2335
|
onValidationFailed: S,
|
|
2339
2336
|
onProceed: x,
|
|
2340
2337
|
onProceedGuidance: j,
|
|
2341
2338
|
href: A,
|
|
2342
2339
|
analytics: E,
|
|
2343
|
-
className:
|
|
2340
|
+
className: d = "",
|
|
2344
2341
|
discountedPriceLabel: N,
|
|
2345
|
-
showPlanSheet:
|
|
2342
|
+
showPlanSheet: h,
|
|
2346
2343
|
confirmPlan: I,
|
|
2347
|
-
planSheetOpen:
|
|
2344
|
+
planSheetOpen: p,
|
|
2348
2345
|
selectedPlan: B
|
|
2349
2346
|
}) => {
|
|
2350
|
-
const C = Te(), b = C?.config.isGlobal ?? !0, g = C?.config?.variant, [
|
|
2351
|
-
() =>
|
|
2347
|
+
const C = Te(), b = C?.config.isGlobal ?? !0, g = C?.config?.variant, [$, w] = W(!1), F = Ue(
|
|
2348
|
+
() => ja(o, b, k),
|
|
2352
2349
|
[o, b, k]
|
|
2353
|
-
), K =
|
|
2350
|
+
), K = F === null, z = g === "v1" && C?.config?.showSheet;
|
|
2354
2351
|
Y(() => {
|
|
2355
|
-
if (
|
|
2352
|
+
if (!$) return;
|
|
2356
2353
|
const oe = window.setTimeout(() => {
|
|
2357
2354
|
w(!1);
|
|
2358
2355
|
}, 2200);
|
|
2359
2356
|
return () => window.clearTimeout(oe);
|
|
2360
|
-
}, [
|
|
2357
|
+
}, [$]);
|
|
2361
2358
|
const J = b ? N ?? t("formDiscountedPrice") : z ? "" : "₹499", G = C?.config.imageComponent ?? Be, q = (oe) => {
|
|
2362
2359
|
if (oe.preventDefault(), g === "v1" && !K && E?.trackKundliDetailedClicked?.(), !K) {
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
),
|
|
2360
|
+
F && (S?.(
|
|
2361
|
+
F === "birthPlaceCoordinates" ? "birthPlace" : F
|
|
2362
|
+
), F === "birthPlaceCoordinates" && w(!0));
|
|
2366
2363
|
return;
|
|
2367
2364
|
}
|
|
2368
|
-
const
|
|
2365
|
+
const D = !!j && g === "v1" && B?.id === br, T = (o.phone ?? "").trim(), O = {
|
|
2369
2366
|
...o,
|
|
2370
|
-
phone: T && `${
|
|
2367
|
+
phone: T && `${c}-${T}`
|
|
2371
2368
|
};
|
|
2372
2369
|
if (z) {
|
|
2373
|
-
|
|
2370
|
+
p ? I?.() : h?.(O);
|
|
2374
2371
|
return;
|
|
2375
2372
|
}
|
|
2376
|
-
E?.trackPrimaryCtaClickedL1?.({ avenue: "form" }),
|
|
2373
|
+
E?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), D ? j(O) : x?.(O);
|
|
2377
2374
|
}, ce = /* @__PURE__ */ r.jsx(
|
|
2378
2375
|
$r,
|
|
2379
2376
|
{
|
|
@@ -2383,11 +2380,11 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2383
2380
|
"aria-label": t("formPriceAria"),
|
|
2384
2381
|
className: g === "v1" && K ? je.ctaFilled : g === "v1" ? je.ctaButton : void 0,
|
|
2385
2382
|
children: g === "v1" ? K ? /* @__PURE__ */ r.jsxs("span", { className: je.ctaFilledContent, children: [
|
|
2386
|
-
z ? t("selectPackage") :
|
|
2383
|
+
z ? t("selectPackage") : p && B ? `${t("proceedWithPlan")}${B.price}` : `${t("formProceed")} ${J}`,
|
|
2387
2384
|
/* @__PURE__ */ r.jsx(
|
|
2388
2385
|
G,
|
|
2389
2386
|
{
|
|
2390
|
-
src:
|
|
2387
|
+
src: xa,
|
|
2391
2388
|
alt: "",
|
|
2392
2389
|
className: je.chevronRight,
|
|
2393
2390
|
width: 20,
|
|
@@ -2405,33 +2402,33 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2405
2402
|
return /* @__PURE__ */ r.jsxs(
|
|
2406
2403
|
Ur,
|
|
2407
2404
|
{
|
|
2408
|
-
className: `${je.footerContainer} ${
|
|
2409
|
-
marquee: /* @__PURE__ */ r.jsx(Gr, { children: /* @__PURE__ */ r.jsx(
|
|
2405
|
+
className: `${je.footerContainer} ${d}`,
|
|
2406
|
+
marquee: /* @__PURE__ */ r.jsx(Gr, { children: /* @__PURE__ */ r.jsx(Pa, { t }) }),
|
|
2410
2407
|
children: [
|
|
2411
|
-
|
|
2408
|
+
$ && /* @__PURE__ */ r.jsx("div", { className: je.validationToast, role: "alert", "aria-live": "assertive", children: t("formFillAllFields") }),
|
|
2412
2409
|
ce
|
|
2413
2410
|
]
|
|
2414
2411
|
}
|
|
2415
2412
|
);
|
|
2416
|
-
},
|
|
2413
|
+
}, Ta = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", Ra = ({
|
|
2417
2414
|
t,
|
|
2418
2415
|
languageSelector: o,
|
|
2419
|
-
logoUrl:
|
|
2420
|
-
className:
|
|
2416
|
+
logoUrl: c = Ta,
|
|
2417
|
+
className: f = ""
|
|
2421
2418
|
}) => {
|
|
2422
2419
|
const k = Te(), S = k?.config.isGlobal ?? !0, x = o != null && !S;
|
|
2423
2420
|
return /* @__PURE__ */ r.jsx(
|
|
2424
2421
|
Wr,
|
|
2425
2422
|
{
|
|
2426
2423
|
t,
|
|
2427
|
-
logoUrl:
|
|
2424
|
+
logoUrl: c,
|
|
2428
2425
|
imageComponent: k?.config.imageComponent,
|
|
2429
2426
|
languageSelector: o,
|
|
2430
2427
|
showLanguageSelector: x,
|
|
2431
|
-
className:
|
|
2428
|
+
className: f
|
|
2432
2429
|
}
|
|
2433
2430
|
);
|
|
2434
|
-
},
|
|
2431
|
+
}, Sa = () => /* @__PURE__ */ r.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx(
|
|
2435
2432
|
"path",
|
|
2436
2433
|
{
|
|
2437
2434
|
d: "M3.5 8.5l2.5 2.5 6-6",
|
|
@@ -2440,7 +2437,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2440
2437
|
strokeLinecap: "round",
|
|
2441
2438
|
strokeLinejoin: "round"
|
|
2442
2439
|
}
|
|
2443
|
-
) }),
|
|
2440
|
+
) }), Ea = () => /* @__PURE__ */ r.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx(
|
|
2444
2441
|
"path",
|
|
2445
2442
|
{
|
|
2446
2443
|
d: "M4.5 4.5l7 7M11.5 4.5l-7 7",
|
|
@@ -2448,100 +2445,100 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2448
2445
|
strokeWidth: "1.8",
|
|
2449
2446
|
strokeLinecap: "round"
|
|
2450
2447
|
}
|
|
2451
|
-
) }),
|
|
2448
|
+
) }), Ia = () => /* @__PURE__ */ r.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx("path", { d: "M15 18l-6-6 6-6" }) }), Ba = () => /* @__PURE__ */ r.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: [
|
|
2452
2449
|
/* @__PURE__ */ r.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
2453
2450
|
/* @__PURE__ */ r.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
2454
|
-
] }),
|
|
2455
|
-
overlay:
|
|
2456
|
-
sheet:
|
|
2457
|
-
header:
|
|
2458
|
-
backBtn:
|
|
2459
|
-
title:
|
|
2460
|
-
plansContainer:
|
|
2461
|
-
planCard:
|
|
2462
|
-
withBadgeSpacing:
|
|
2463
|
-
planCardSelected:
|
|
2464
|
-
planCardPopular:
|
|
2465
|
-
popularBadge:
|
|
2466
|
-
planCardInner:
|
|
2467
|
-
planTitleRow:
|
|
2468
|
-
planTitle:
|
|
2469
|
-
radioCircle:
|
|
2470
|
-
radioChecked:
|
|
2471
|
-
radioInner:
|
|
2472
|
-
priceRow:
|
|
2473
|
-
price:
|
|
2474
|
-
originalPrice:
|
|
2475
|
-
savingsBadge:
|
|
2476
|
-
featureList:
|
|
2477
|
-
featureItem:
|
|
2478
|
-
featureIcon:
|
|
2479
|
-
featureText:
|
|
2480
|
-
astrologerHeading:
|
|
2481
|
-
astrologerList:
|
|
2482
|
-
astrologerCard:
|
|
2483
|
-
astrologerAvatar:
|
|
2484
|
-
astrologerAvatarPlaceholder:
|
|
2485
|
-
astrologerTop:
|
|
2451
|
+
] }), La = "_overlay_18irl_2", Da = "_sheet_18irl_12", Fa = "_header_18irl_36", Oa = "_backBtn_18irl_48", Ma = "_title_18irl_66", $a = "_plansContainer_18irl_78", Ua = "_planCard_18irl_87", Ga = "_withBadgeSpacing_18irl_101", Wa = "_planCardSelected_18irl_105", Ka = "_planCardPopular_18irl_110", Ha = "_popularBadge_18irl_119", Ya = "_planCardInner_18irl_137", qa = "_planTitleRow_18irl_148", Va = "_planTitle_18irl_148", za = "_radioCircle_18irl_163", Ja = "_radioChecked_18irl_176", Qa = "_radioInner_18irl_181", Xa = "_priceRow_18irl_189", Za = "_price_18irl_189", en = "_originalPrice_18irl_202", rn = "_savingsBadge_18irl_209", tn = "_featureList_18irl_219", an = "_featureItem_18irl_228", nn = "_featureIcon_18irl_234", on = "_featureText_18irl_240", ln = "_astrologerHeading_18irl_251", sn = "_astrologerList_18irl_258", cn = "_astrologerCard_18irl_274", dn = "_astrologerAvatar_18irl_290", un = "_astrologerAvatarPlaceholder_18irl_307", fn = "_astrologerTop_18irl_313", mn = "_astrologerBasicInfo_18irl_319", hn = "_astrologerName_18irl_326", pn = "_astrologerExp_18irl_335", gn = "_astrologerDivider_18irl_341", _n = "_planDivider_18irl_347", bn = "_astrologerCertList_18irl_354", yn = "_astrologerCertItem_18irl_360", vn = "_bullet_18irl_368", kn = "_footer_18irl_373", wn = "_proceedBtn_18irl_383", m = {
|
|
2452
|
+
overlay: La,
|
|
2453
|
+
sheet: Da,
|
|
2454
|
+
header: Fa,
|
|
2455
|
+
backBtn: Oa,
|
|
2456
|
+
title: Ma,
|
|
2457
|
+
plansContainer: $a,
|
|
2458
|
+
planCard: Ua,
|
|
2459
|
+
withBadgeSpacing: Ga,
|
|
2460
|
+
planCardSelected: Wa,
|
|
2461
|
+
planCardPopular: Ka,
|
|
2462
|
+
popularBadge: Ha,
|
|
2463
|
+
planCardInner: Ya,
|
|
2464
|
+
planTitleRow: qa,
|
|
2465
|
+
planTitle: Va,
|
|
2466
|
+
radioCircle: za,
|
|
2467
|
+
radioChecked: Ja,
|
|
2468
|
+
radioInner: Qa,
|
|
2469
|
+
priceRow: Xa,
|
|
2470
|
+
price: Za,
|
|
2471
|
+
originalPrice: en,
|
|
2472
|
+
savingsBadge: rn,
|
|
2473
|
+
featureList: tn,
|
|
2474
|
+
featureItem: an,
|
|
2475
|
+
featureIcon: nn,
|
|
2476
|
+
featureText: on,
|
|
2477
|
+
astrologerHeading: ln,
|
|
2478
|
+
astrologerList: sn,
|
|
2479
|
+
astrologerCard: cn,
|
|
2480
|
+
astrologerAvatar: dn,
|
|
2481
|
+
astrologerAvatarPlaceholder: un,
|
|
2482
|
+
astrologerTop: fn,
|
|
2486
2483
|
astrologerBasicInfo: mn,
|
|
2487
|
-
astrologerName:
|
|
2484
|
+
astrologerName: hn,
|
|
2488
2485
|
astrologerExp: pn,
|
|
2489
|
-
astrologerDivider:
|
|
2490
|
-
planDivider:
|
|
2491
|
-
astrologerCertList:
|
|
2492
|
-
astrologerCertItem:
|
|
2493
|
-
bullet:
|
|
2494
|
-
footer:
|
|
2495
|
-
proceedBtn:
|
|
2496
|
-
},
|
|
2486
|
+
astrologerDivider: gn,
|
|
2487
|
+
planDivider: _n,
|
|
2488
|
+
astrologerCertList: bn,
|
|
2489
|
+
astrologerCertItem: yn,
|
|
2490
|
+
bullet: vn,
|
|
2491
|
+
footer: kn,
|
|
2492
|
+
proceedBtn: wn
|
|
2493
|
+
}, xn = ({ title: t, onBack: o }) => /* @__PURE__ */ r.jsxs("div", { className: m.header, children: [
|
|
2497
2494
|
/* @__PURE__ */ r.jsx(
|
|
2498
2495
|
"button",
|
|
2499
2496
|
{
|
|
2500
|
-
className:
|
|
2497
|
+
className: m.backBtn,
|
|
2501
2498
|
onClick: o,
|
|
2502
2499
|
"aria-label": "Go back",
|
|
2503
2500
|
type: "button",
|
|
2504
|
-
children: /* @__PURE__ */ r.jsx(
|
|
2501
|
+
children: /* @__PURE__ */ r.jsx(Ia, {})
|
|
2505
2502
|
}
|
|
2506
2503
|
),
|
|
2507
|
-
/* @__PURE__ */ r.jsx("h2", { className:
|
|
2508
|
-
] }),
|
|
2509
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2504
|
+
/* @__PURE__ */ r.jsx("h2", { className: m.title, children: t })
|
|
2505
|
+
] }), Pn = ({ features: t, t: o }) => /* @__PURE__ */ r.jsx("ul", { className: m.featureList, "aria-label": "Plan features", children: t.map((c, f) => /* @__PURE__ */ r.jsxs("li", { className: m.featureItem, children: [
|
|
2506
|
+
/* @__PURE__ */ r.jsx("span", { className: m.featureIcon, children: c.included ? /* @__PURE__ */ r.jsx(Sa, {}) : /* @__PURE__ */ r.jsx(Ea, {}) }),
|
|
2510
2507
|
/* @__PURE__ */ r.jsx(
|
|
2511
2508
|
"span",
|
|
2512
2509
|
{
|
|
2513
|
-
className: `${
|
|
2514
|
-
children: o?.(
|
|
2510
|
+
className: `${m.featureText} `,
|
|
2511
|
+
children: o?.(c.text) ?? c.text
|
|
2515
2512
|
}
|
|
2516
2513
|
)
|
|
2517
|
-
] },
|
|
2518
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
2519
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2520
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
2521
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
2522
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
2514
|
+
] }, f)) }), An = ({ astrologer: t, t: o }) => /* @__PURE__ */ r.jsxs("div", { className: m.astrologerCard, children: [
|
|
2515
|
+
/* @__PURE__ */ r.jsxs("div", { className: m.astrologerTop, children: [
|
|
2516
|
+
/* @__PURE__ */ r.jsx("div", { className: m.astrologerAvatar, "aria-hidden": !0, children: t.imageUrl ? /* @__PURE__ */ r.jsx("img", { src: t.imageUrl, alt: o?.(t.name) ?? t.name, width: 40, height: 40 }) : /* @__PURE__ */ r.jsx("span", { className: m.astrologerAvatarPlaceholder, children: t.name.charAt(0) }) }),
|
|
2517
|
+
/* @__PURE__ */ r.jsxs("div", { className: m.astrologerBasicInfo, children: [
|
|
2518
|
+
/* @__PURE__ */ r.jsx("p", { className: m.astrologerName, children: o?.(t.name) ?? t.name }),
|
|
2519
|
+
/* @__PURE__ */ r.jsx("p", { className: m.astrologerExp, children: o?.(t.experience) ?? t.experience })
|
|
2523
2520
|
] })
|
|
2524
2521
|
] }),
|
|
2525
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2526
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2527
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2522
|
+
/* @__PURE__ */ r.jsx("div", { className: m.astrologerDivider }),
|
|
2523
|
+
/* @__PURE__ */ r.jsx("div", { className: m.astrologerCertList, children: t.certifications.map((c, f) => /* @__PURE__ */ r.jsxs("p", { className: m.astrologerCertItem, children: [
|
|
2524
|
+
/* @__PURE__ */ r.jsx("span", { className: m.bullet, children: "•" }),
|
|
2528
2525
|
" ",
|
|
2529
|
-
o?.(
|
|
2530
|
-
] },
|
|
2531
|
-
] }),
|
|
2532
|
-
/* @__PURE__ */ r.jsx(
|
|
2526
|
+
o?.(c) ?? c
|
|
2527
|
+
] }, f)) })
|
|
2528
|
+
] }), Cn = ({ label: t }) => /* @__PURE__ */ r.jsxs("div", { className: m.popularBadge, "aria-label": t, children: [
|
|
2529
|
+
/* @__PURE__ */ r.jsx(Ba, {}),
|
|
2533
2530
|
/* @__PURE__ */ r.jsx("span", { children: t })
|
|
2534
|
-
] }),
|
|
2535
|
-
const k = () =>
|
|
2536
|
-
(x.key === " " || x.key === "Enter") && (x.preventDefault(),
|
|
2531
|
+
] }), jn = ({ plan: t, isSelected: o, onSelect: c, t: f }) => {
|
|
2532
|
+
const k = () => c(t.id), S = (x) => {
|
|
2533
|
+
(x.key === " " || x.key === "Enter") && (x.preventDefault(), c(t.id));
|
|
2537
2534
|
};
|
|
2538
2535
|
return /* @__PURE__ */ r.jsxs(
|
|
2539
2536
|
"div",
|
|
2540
2537
|
{
|
|
2541
2538
|
className: [
|
|
2542
|
-
|
|
2543
|
-
o ?
|
|
2544
|
-
o &&
|
|
2539
|
+
m.planCard,
|
|
2540
|
+
o ? m.planCardSelected : "",
|
|
2541
|
+
o && m.planCardPopular
|
|
2545
2542
|
].filter(Boolean).join(" "),
|
|
2546
2543
|
onClick: k,
|
|
2547
2544
|
role: "radio",
|
|
@@ -2550,35 +2547,35 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2550
2547
|
onKeyDown: S,
|
|
2551
2548
|
"data-plan-id": t.id,
|
|
2552
2549
|
children: [
|
|
2553
|
-
t.badge && /* @__PURE__ */ r.jsx(
|
|
2554
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
2555
|
-
/* @__PURE__ */ r.jsxs("div", { className: `${
|
|
2556
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2550
|
+
t.badge && /* @__PURE__ */ r.jsx(Cn, { label: f?.(t.badge) ?? t.badge }),
|
|
2551
|
+
/* @__PURE__ */ r.jsxs("div", { className: m.planCardInner, children: [
|
|
2552
|
+
/* @__PURE__ */ r.jsxs("div", { className: `${m.planTitleRow} ${t.badge ? m.withBadgeSpacing : ""}`, children: [
|
|
2553
|
+
/* @__PURE__ */ r.jsx("span", { className: m.planTitle, children: f?.(t.title) ?? t.title }),
|
|
2557
2554
|
/* @__PURE__ */ r.jsx(
|
|
2558
2555
|
"span",
|
|
2559
2556
|
{
|
|
2560
|
-
className: `${
|
|
2557
|
+
className: `${m.radioCircle} ${o ? m.radioChecked : ""}`,
|
|
2561
2558
|
"aria-hidden": !0,
|
|
2562
|
-
children: o && /* @__PURE__ */ r.jsx("span", { className:
|
|
2559
|
+
children: o && /* @__PURE__ */ r.jsx("span", { className: m.radioInner })
|
|
2563
2560
|
}
|
|
2564
2561
|
)
|
|
2565
2562
|
] }),
|
|
2566
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
2567
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2568
|
-
t.originalPrice && /* @__PURE__ */ r.jsx("span", { className:
|
|
2569
|
-
t.savingsLabel && /* @__PURE__ */ r.jsx("span", { className:
|
|
2563
|
+
/* @__PURE__ */ r.jsxs("div", { className: m.priceRow, children: [
|
|
2564
|
+
/* @__PURE__ */ r.jsx("span", { className: m.price, children: t.price }),
|
|
2565
|
+
t.originalPrice && /* @__PURE__ */ r.jsx("span", { className: m.originalPrice, children: t.originalPrice }),
|
|
2566
|
+
t.savingsLabel && /* @__PURE__ */ r.jsx("span", { className: m.savingsBadge, children: f?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
|
|
2570
2567
|
] }),
|
|
2571
|
-
/* @__PURE__ */ r.jsx(
|
|
2572
|
-
t.astrologers && /* @__PURE__ */ r.jsx("div", { className:
|
|
2568
|
+
/* @__PURE__ */ r.jsx(Pn, { features: t.features, t: f }),
|
|
2569
|
+
t.astrologers && /* @__PURE__ */ r.jsx("div", { className: m.planDivider }),
|
|
2573
2570
|
t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2574
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
2575
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2571
|
+
/* @__PURE__ */ r.jsx("p", { className: m.astrologerHeading, children: f?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
|
|
2572
|
+
/* @__PURE__ */ r.jsx("div", { className: m.astrologerList, role: "list", children: t.astrologers.map((x, j) => /* @__PURE__ */ r.jsx("div", { role: "listitem", children: /* @__PURE__ */ r.jsx(An, { astrologer: x, t: f }) }, j)) })
|
|
2576
2573
|
] })
|
|
2577
2574
|
] })
|
|
2578
2575
|
]
|
|
2579
2576
|
}
|
|
2580
2577
|
);
|
|
2581
|
-
},
|
|
2578
|
+
}, Nn = [
|
|
2582
2579
|
{
|
|
2583
2580
|
id: "jyoti",
|
|
2584
2581
|
name: "planAstrologerNameJyoti",
|
|
@@ -2606,7 +2603,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2606
2603
|
experience: "planAstrologerExpNeeraj",
|
|
2607
2604
|
certifications: ["planAstrologerCertBhuCertified", "planAstrologerCertMantraRudraksha"]
|
|
2608
2605
|
}
|
|
2609
|
-
],
|
|
2606
|
+
], Tn = (t) => [
|
|
2610
2607
|
{
|
|
2611
2608
|
id: "kundli-report",
|
|
2612
2609
|
title: "planNameBasic",
|
|
@@ -2632,31 +2629,31 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2632
2629
|
{ text: "planFeatureRealTimeAnswers", included: !0 },
|
|
2633
2630
|
{ text: "planFeatureTailoredRemedies", included: !0 }
|
|
2634
2631
|
],
|
|
2635
|
-
astrologers:
|
|
2632
|
+
astrologers: Nn.filter(
|
|
2636
2633
|
(o) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(o.id)
|
|
2637
2634
|
)
|
|
2638
2635
|
}
|
|
2639
|
-
],
|
|
2636
|
+
], Rn = ({
|
|
2640
2637
|
isOpen: t,
|
|
2641
2638
|
onClose: o,
|
|
2642
|
-
selectedPlan:
|
|
2643
|
-
onSelectPlan:
|
|
2639
|
+
selectedPlan: c,
|
|
2640
|
+
onSelectPlan: f,
|
|
2644
2641
|
plans: k,
|
|
2645
2642
|
onProceed: S,
|
|
2646
2643
|
t: x,
|
|
2647
2644
|
analytics: j
|
|
2648
2645
|
}) => {
|
|
2649
|
-
const E = Te()?.config.isGlobal ?? !0,
|
|
2646
|
+
const E = Te()?.config.isGlobal ?? !0, d = k ?? Tn(E), N = c?.id || d.find((C) => C.badge)?.id || d[0]?.id || "", h = H(null), I = H(null), p = H(!1);
|
|
2650
2647
|
Y(() => {
|
|
2651
2648
|
if (t) {
|
|
2652
|
-
if (!
|
|
2653
|
-
const C =
|
|
2654
|
-
C &&
|
|
2649
|
+
if (!c) {
|
|
2650
|
+
const C = d.find((b) => b.badge) ?? d[0];
|
|
2651
|
+
C && f(C);
|
|
2655
2652
|
}
|
|
2656
|
-
|
|
2653
|
+
p.current || (j?.trackPlanPageViewed?.(), p.current = !0);
|
|
2657
2654
|
} else
|
|
2658
|
-
|
|
2659
|
-
}, [t,
|
|
2655
|
+
p.current = !1;
|
|
2656
|
+
}, [t, d, c, f, j]);
|
|
2660
2657
|
const B = () => {
|
|
2661
2658
|
j?.trackPlanPageClosed?.(), o();
|
|
2662
2659
|
};
|
|
@@ -2669,18 +2666,18 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2669
2666
|
}, [t]), t ? /* @__PURE__ */ r.jsx(
|
|
2670
2667
|
"div",
|
|
2671
2668
|
{
|
|
2672
|
-
className:
|
|
2669
|
+
className: m.overlay,
|
|
2673
2670
|
role: "dialog",
|
|
2674
2671
|
"aria-modal": "true",
|
|
2675
2672
|
"aria-label": x?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
2676
2673
|
children: /* @__PURE__ */ r.jsxs(
|
|
2677
2674
|
"div",
|
|
2678
2675
|
{
|
|
2679
|
-
ref:
|
|
2680
|
-
className:
|
|
2676
|
+
ref: h,
|
|
2677
|
+
className: m.sheet,
|
|
2681
2678
|
children: [
|
|
2682
2679
|
/* @__PURE__ */ r.jsx(
|
|
2683
|
-
|
|
2680
|
+
xn,
|
|
2684
2681
|
{
|
|
2685
2682
|
title: x?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
2686
2683
|
onBack: B
|
|
@@ -2690,39 +2687,39 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2690
2687
|
"div",
|
|
2691
2688
|
{
|
|
2692
2689
|
ref: I,
|
|
2693
|
-
className:
|
|
2690
|
+
className: m.plansContainer,
|
|
2694
2691
|
role: "radiogroup",
|
|
2695
2692
|
"aria-label": "Kundli plans",
|
|
2696
|
-
children:
|
|
2697
|
-
|
|
2693
|
+
children: d.map((C) => /* @__PURE__ */ r.jsx(
|
|
2694
|
+
jn,
|
|
2698
2695
|
{
|
|
2699
2696
|
plan: C,
|
|
2700
2697
|
isSelected: C.id === N,
|
|
2701
2698
|
t: x,
|
|
2702
2699
|
onSelect: (b) => {
|
|
2703
|
-
const g =
|
|
2700
|
+
const g = d.find(($) => $.id === b);
|
|
2704
2701
|
g && (j?.trackPlanSelected?.({
|
|
2705
2702
|
planId: g.id,
|
|
2706
2703
|
planName: g.title
|
|
2707
|
-
}),
|
|
2704
|
+
}), f(g));
|
|
2708
2705
|
}
|
|
2709
2706
|
},
|
|
2710
2707
|
C.id
|
|
2711
2708
|
))
|
|
2712
2709
|
}
|
|
2713
2710
|
),
|
|
2714
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2711
|
+
/* @__PURE__ */ r.jsx("div", { className: m.footer, children: /* @__PURE__ */ r.jsx(
|
|
2715
2712
|
"button",
|
|
2716
2713
|
{
|
|
2717
|
-
className:
|
|
2718
|
-
disabled: !
|
|
2714
|
+
className: m.proceedBtn,
|
|
2715
|
+
disabled: !c,
|
|
2719
2716
|
onClick: () => {
|
|
2720
|
-
|
|
2721
|
-
planId:
|
|
2722
|
-
planName:
|
|
2723
|
-
}), S(
|
|
2717
|
+
c && (j?.trackPlanProceedClicked?.({
|
|
2718
|
+
planId: c.id,
|
|
2719
|
+
planName: c.title
|
|
2720
|
+
}), S(c), o());
|
|
2724
2721
|
},
|
|
2725
|
-
children:
|
|
2722
|
+
children: c ? x?.("planProceedToPayment") ?? c.price + "Proceed to Payment" : "Select a plan"
|
|
2726
2723
|
}
|
|
2727
2724
|
) })
|
|
2728
2725
|
]
|
|
@@ -2730,7 +2727,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2730
2727
|
)
|
|
2731
2728
|
}
|
|
2732
2729
|
) : null;
|
|
2733
|
-
},
|
|
2730
|
+
}, Sn = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", En = (t, o) => mr[t]?.[o] ?? o, In = {
|
|
2734
2731
|
fullName: "",
|
|
2735
2732
|
phone: "",
|
|
2736
2733
|
gender: "",
|
|
@@ -2742,27 +2739,27 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2742
2739
|
birthPlace: "",
|
|
2743
2740
|
birthPlaceLat: void 0,
|
|
2744
2741
|
birthPlaceLng: void 0
|
|
2745
|
-
},
|
|
2742
|
+
}, Un = ({
|
|
2746
2743
|
className: t = "",
|
|
2747
2744
|
locale: o,
|
|
2748
|
-
showLanguageSelector:
|
|
2749
|
-
onBack:
|
|
2745
|
+
showLanguageSelector: c = !0,
|
|
2746
|
+
onBack: f,
|
|
2750
2747
|
initialValues: k,
|
|
2751
2748
|
onProceed: S,
|
|
2752
2749
|
onProceedGuidance: x,
|
|
2753
2750
|
proceedHref: j,
|
|
2754
2751
|
originalPriceLabel: A,
|
|
2755
2752
|
discountedPriceLabel: E,
|
|
2756
|
-
atlasSearchLocalities:
|
|
2753
|
+
atlasSearchLocalities: d,
|
|
2757
2754
|
analytics: N
|
|
2758
2755
|
}) => {
|
|
2759
|
-
const
|
|
2756
|
+
const h = Te(), I = qr(), p = h !== null, B = p ? h.locale : o, C = B ?? I?.locale ?? "en", [b, g] = W(C), $ = p ? h.locale : b, w = p ? h.setLocale : g, [F, K] = W(!1), z = H(null), J = H(B), G = H(
|
|
2760
2757
|
I?.locale
|
|
2761
2758
|
);
|
|
2762
2759
|
Y(() => {
|
|
2763
2760
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
2764
2761
|
}, []);
|
|
2765
|
-
const q = (v) =>
|
|
2762
|
+
const q = (v) => En($, v);
|
|
2766
2763
|
Y(() => {
|
|
2767
2764
|
B && J.current !== B && w(B), J.current = B;
|
|
2768
2765
|
}, [B, w]), Y(() => {
|
|
@@ -2771,23 +2768,23 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2771
2768
|
v && G.current !== v && w(v), G.current = v;
|
|
2772
2769
|
}, [I?.locale, B, w]);
|
|
2773
2770
|
const [ce, oe] = W({
|
|
2774
|
-
...
|
|
2771
|
+
...In,
|
|
2775
2772
|
...k,
|
|
2776
2773
|
phone: k?.phone ?? ""
|
|
2777
|
-
}),
|
|
2778
|
-
|
|
2774
|
+
}), D = p ? h?.config.isGlobal ?? !0 : !0, [T, O] = W(
|
|
2775
|
+
D ? "+1" : "+91"
|
|
2779
2776
|
);
|
|
2780
2777
|
Y(() => {
|
|
2781
|
-
|
|
2782
|
-
}, [
|
|
2783
|
-
const Q =
|
|
2778
|
+
O(D ? "+1" : "+91");
|
|
2779
|
+
}, [D]);
|
|
2780
|
+
const Q = p ? h.formValues : ce, pe = p ? h.setFormValues : oe, fe = p ? h.goToPage : f, V = p ? h.onProceed : S, ee = p ? h.onProceedGuidance : x, re = p ? h.config.proceedHref : j, de = p ? h.config.originalPriceLabel : A, te = p ? h.config.discountedPriceLabel : E, he = p ? h.config.showLanguageSelector ?? !0 : c, ie = (p ? h?.config?.analytics : N) ?? N;
|
|
2784
2781
|
Y(() => {
|
|
2785
|
-
if (!
|
|
2782
|
+
if (!F) return;
|
|
2786
2783
|
const v = (n) => {
|
|
2787
2784
|
z.current && !z.current.contains(n.target) && K(!1);
|
|
2788
2785
|
};
|
|
2789
2786
|
return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
|
|
2790
|
-
}, [
|
|
2787
|
+
}, [F]);
|
|
2791
2788
|
const [ge, ue] = W(!1), [X, be] = W(null), le = H(null), we = Ne((v) => {
|
|
2792
2789
|
le.current = v, ue(!0);
|
|
2793
2790
|
}, []), _e = Ne(() => {
|
|
@@ -2797,16 +2794,16 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2797
2794
|
}), !le.current || !X) return;
|
|
2798
2795
|
const v = { ...le.current, _selectedPlan: X };
|
|
2799
2796
|
X.id === br && ee ? ee(v) : V?.(v), ue(!1), le.current = null;
|
|
2800
|
-
}, [X, V, ee]), xe =
|
|
2797
|
+
}, [X, V, ee]), xe = h?.config.imageComponent ?? Be, ye = he ? /* @__PURE__ */ r.jsxs("div", { className: me.langDropdownWrap, ref: z, children: [
|
|
2801
2798
|
/* @__PURE__ */ r.jsxs(
|
|
2802
2799
|
"button",
|
|
2803
2800
|
{
|
|
2804
2801
|
type: "button",
|
|
2805
|
-
className:
|
|
2802
|
+
className: me.langTrigger,
|
|
2806
2803
|
onClick: () => {
|
|
2807
|
-
ie?.trackLanguageClickedFe?.({ language:
|
|
2804
|
+
ie?.trackLanguageClickedFe?.({ language: $ }), K((v) => !v);
|
|
2808
2805
|
},
|
|
2809
|
-
"aria-expanded":
|
|
2806
|
+
"aria-expanded": F,
|
|
2810
2807
|
"aria-haspopup": "listbox",
|
|
2811
2808
|
id: "kundli-form-lang",
|
|
2812
2809
|
"aria-label": q("language"),
|
|
@@ -2814,32 +2811,32 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2814
2811
|
/* @__PURE__ */ r.jsx(
|
|
2815
2812
|
xe,
|
|
2816
2813
|
{
|
|
2817
|
-
src:
|
|
2814
|
+
src: Sn,
|
|
2818
2815
|
alt: "",
|
|
2819
|
-
className:
|
|
2816
|
+
className: me.langIcon,
|
|
2820
2817
|
width: 16,
|
|
2821
2818
|
height: 16,
|
|
2822
2819
|
loading: "eager"
|
|
2823
2820
|
}
|
|
2824
2821
|
),
|
|
2825
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2822
|
+
/* @__PURE__ */ r.jsx("span", { className: me.langLabel, children: lr[$] })
|
|
2826
2823
|
]
|
|
2827
2824
|
}
|
|
2828
2825
|
),
|
|
2829
|
-
|
|
2826
|
+
F && /* @__PURE__ */ r.jsx(
|
|
2830
2827
|
"ul",
|
|
2831
2828
|
{
|
|
2832
|
-
className:
|
|
2829
|
+
className: me.langMenu,
|
|
2833
2830
|
role: "listbox",
|
|
2834
2831
|
"aria-labelledby": "kundli-form-lang",
|
|
2835
|
-
"aria-activedescendant": `kundli-form-lang-option-${
|
|
2836
|
-
children:
|
|
2832
|
+
"aria-activedescendant": `kundli-form-lang-option-${$}`,
|
|
2833
|
+
children: fr.map((v) => /* @__PURE__ */ r.jsx(
|
|
2837
2834
|
"li",
|
|
2838
2835
|
{
|
|
2839
2836
|
id: `kundli-form-lang-option-${v}`,
|
|
2840
2837
|
role: "option",
|
|
2841
|
-
"aria-selected": v ===
|
|
2842
|
-
className:
|
|
2838
|
+
"aria-selected": v === $,
|
|
2839
|
+
className: me.langOption,
|
|
2843
2840
|
onClick: () => {
|
|
2844
2841
|
ie?.trackLanguageChangedFe?.({ newLanguage: v }), w(v), K(!1);
|
|
2845
2842
|
},
|
|
@@ -2850,33 +2847,33 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2850
2847
|
}
|
|
2851
2848
|
)
|
|
2852
2849
|
] }) : null;
|
|
2853
|
-
return /* @__PURE__ */ r.jsxs("div", { className: `${
|
|
2850
|
+
return /* @__PURE__ */ r.jsxs("div", { className: `${me.container} ${t}`, children: [
|
|
2854
2851
|
/* @__PURE__ */ r.jsx(
|
|
2855
|
-
|
|
2852
|
+
Ra,
|
|
2856
2853
|
{
|
|
2857
2854
|
t: q,
|
|
2858
|
-
logoUrl:
|
|
2855
|
+
logoUrl: p ? h.config.logoUrl : void 0,
|
|
2859
2856
|
languageSelector: ye,
|
|
2860
|
-
className:
|
|
2857
|
+
className: me.kundliHeaderNoBorder
|
|
2861
2858
|
}
|
|
2862
2859
|
),
|
|
2863
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2864
|
-
/* @__PURE__ */ r.jsxs("main", { className:
|
|
2865
|
-
/* @__PURE__ */ r.jsx(ut, { t: q, onBack:
|
|
2860
|
+
/* @__PURE__ */ r.jsx("div", { className: me.headerSeparator, "aria-hidden": !0 }),
|
|
2861
|
+
/* @__PURE__ */ r.jsxs("main", { className: me.main, children: [
|
|
2862
|
+
/* @__PURE__ */ r.jsx(ut, { t: q, onBack: fe }),
|
|
2866
2863
|
/* @__PURE__ */ r.jsx(
|
|
2867
2864
|
pa,
|
|
2868
2865
|
{
|
|
2869
2866
|
t: q,
|
|
2870
2867
|
values: Q,
|
|
2871
|
-
onChange:
|
|
2872
|
-
atlasSearchLocalities:
|
|
2868
|
+
onChange: pe,
|
|
2869
|
+
atlasSearchLocalities: d,
|
|
2873
2870
|
phoneIsdCode: T,
|
|
2874
|
-
onPhoneIsdCodeChange:
|
|
2871
|
+
onPhoneIsdCodeChange: O
|
|
2875
2872
|
}
|
|
2876
2873
|
)
|
|
2877
2874
|
] }),
|
|
2878
2875
|
/* @__PURE__ */ r.jsx(
|
|
2879
|
-
|
|
2876
|
+
Na,
|
|
2880
2877
|
{
|
|
2881
2878
|
t: q,
|
|
2882
2879
|
values: Q,
|
|
@@ -2893,8 +2890,8 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2893
2890
|
selectedPlan: X
|
|
2894
2891
|
}
|
|
2895
2892
|
),
|
|
2896
|
-
|
|
2897
|
-
|
|
2893
|
+
h?.config.variant === "v1" && /* @__PURE__ */ r.jsx(
|
|
2894
|
+
Rn,
|
|
2898
2895
|
{
|
|
2899
2896
|
isOpen: ge,
|
|
2900
2897
|
onClose: () => ue(!1),
|
|
@@ -2908,7 +2905,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2908
2905
|
}
|
|
2909
2906
|
)
|
|
2910
2907
|
] });
|
|
2911
|
-
},
|
|
2908
|
+
}, Gn = {
|
|
2912
2909
|
banner_clicked_fe: "banner_clicked_fe",
|
|
2913
2910
|
primary_cta_clicked_fe: "primary_cta_clicked_fe",
|
|
2914
2911
|
language_changed_fe: "language_changed_fe",
|
|
@@ -2950,29 +2947,29 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2950
2947
|
export {
|
|
2951
2948
|
Be as D,
|
|
2952
2949
|
ut as F,
|
|
2953
|
-
|
|
2954
|
-
|
|
2950
|
+
Dn as I,
|
|
2951
|
+
Gn as K,
|
|
2955
2952
|
lr as L,
|
|
2956
2953
|
br as P,
|
|
2957
|
-
|
|
2954
|
+
fr as S,
|
|
2958
2955
|
pa as U,
|
|
2959
|
-
|
|
2956
|
+
pr as a,
|
|
2960
2957
|
Ke as b,
|
|
2961
|
-
|
|
2962
|
-
|
|
2958
|
+
Un as c,
|
|
2959
|
+
Mn as d,
|
|
2963
2960
|
it as e,
|
|
2964
2961
|
lt as f,
|
|
2965
2962
|
nt as g,
|
|
2966
2963
|
Te as h,
|
|
2967
|
-
|
|
2968
|
-
|
|
2964
|
+
On as i,
|
|
2965
|
+
$n as j,
|
|
2969
2966
|
r as k,
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2967
|
+
Ra as l,
|
|
2968
|
+
Na as m,
|
|
2969
|
+
Rn as n,
|
|
2970
|
+
Fn as r,
|
|
2974
2971
|
ot as s,
|
|
2975
|
-
|
|
2972
|
+
mr as t,
|
|
2976
2973
|
qr as u
|
|
2977
2974
|
};
|
|
2978
|
-
//# sourceMappingURL=analytics-
|
|
2975
|
+
//# sourceMappingURL=analytics-BaeU3LeE.js.map
|