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