@srimandir/kundli-generator 5.30.33 → 5.30.34
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-B0Qcb00q.js → analytics-DI8j9UTs.js} +459 -457
- package/dist/analytics-DI8j9UTs.js.map +1 -0
- package/dist/analytics.d.ts +3 -1
- package/dist/{criticalCss-BDwGM-dx.js → criticalCss-DIdz7L_w.js} +2 -2
- package/dist/{criticalCss-BDwGM-dx.js.map → criticalCss-DIdz7L_w.js.map} +1 -1
- package/dist/form-entry.js +1 -1
- package/dist/kundli-generator.js +2 -2
- package/dist/page-entry.js +2 -2
- package/package.json +2 -2
- package/dist/analytics-B0Qcb00q.js.map +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import Ge, { useContext as We, createContext as ur, useState as
|
|
1
|
+
import Ge, { useContext as We, createContext as ur, useState as W, useRef as H, useEffect as Y, useMemo as Ue, useCallback as Te } from "react";
|
|
2
2
|
import { FormSectionHeader as Mr, FooterCTAButton as $r, FooterShell as Ur, CircularMarquee as Gr, footerShellStyles as ke, PageHeader as Wr } from "@srimandir/astrology-common";
|
|
3
|
-
var
|
|
3
|
+
var Le = { exports: {} }, Ie = {};
|
|
4
4
|
var nr;
|
|
5
5
|
function Kr() {
|
|
6
|
-
if (nr) return
|
|
6
|
+
if (nr) return Ie;
|
|
7
7
|
nr = 1;
|
|
8
|
-
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty,
|
|
9
|
-
function
|
|
8
|
+
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, w = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
|
+
function x(N, P, L) {
|
|
10
10
|
var d, T = {}, p = null, E = null;
|
|
11
11
|
L !== void 0 && (p = "" + L), P.key !== void 0 && (p = "" + P.key), P.ref !== void 0 && (E = P.ref);
|
|
12
12
|
for (d in P) m.call(P, d) && !S.hasOwnProperty(d) && (T[d] = P[d]);
|
|
13
13
|
if (N && N.defaultProps) for (d in P = N.defaultProps, P) T[d] === void 0 && (T[d] = P[d]);
|
|
14
|
-
return { $$typeof: o, type: N, key: p, ref: E, props: T, _owner:
|
|
14
|
+
return { $$typeof: o, type: N, key: p, ref: E, props: T, _owner: w.current };
|
|
15
15
|
}
|
|
16
|
-
return
|
|
16
|
+
return Ie.Fragment = c, Ie.jsx = x, Ie.jsxs = x, Ie;
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var Be = {};
|
|
19
19
|
var or;
|
|
20
20
|
function Hr() {
|
|
21
21
|
return or || (or = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
-
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"),
|
|
22
|
+
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), w = /* @__PURE__ */ Symbol.for("react.strict_mode"), S = /* @__PURE__ */ Symbol.for("react.profiler"), x = /* @__PURE__ */ Symbol.for("react.provider"), N = /* @__PURE__ */ Symbol.for("react.context"), P = /* @__PURE__ */ Symbol.for("react.forward_ref"), L = /* @__PURE__ */ Symbol.for("react.suspense"), d = /* @__PURE__ */ Symbol.for("react.suspense_list"), T = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), E = /* @__PURE__ */ Symbol.for("react.offscreen"), h = Symbol.iterator, I = "@@iterator";
|
|
23
23
|
function C(e) {
|
|
24
24
|
if (e === null || typeof e != "object")
|
|
25
25
|
return null;
|
|
@@ -31,10 +31,10 @@ function Hr() {
|
|
|
31
31
|
{
|
|
32
32
|
for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)
|
|
33
33
|
l[u - 1] = arguments[u];
|
|
34
|
-
|
|
34
|
+
F("error", e, l);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function F(e, i, l) {
|
|
38
38
|
{
|
|
39
39
|
var u = b.ReactDebugCurrentFrame, A = u.getStackAddendum();
|
|
40
40
|
A !== "" && (i += "%s", l = l.concat([A]));
|
|
@@ -44,26 +44,26 @@ function Hr() {
|
|
|
44
44
|
j.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, j);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
var v = !1,
|
|
48
|
-
|
|
49
|
-
function
|
|
50
|
-
return !!(typeof e == "string" || typeof e == "function" || e === m || e === S ||
|
|
47
|
+
var v = !1, O = !1, z = !1, J = !1, ae = !1, q;
|
|
48
|
+
q = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
|
+
function $(e) {
|
|
50
|
+
return !!(typeof e == "string" || typeof e == "function" || e === m || e === S || ae || e === w || e === L || e === d || J || e === E || v || O || z || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === T || e.$$typeof === x || e.$$typeof === N || e.$$typeof === P || // This needs to include all possible module reference object
|
|
51
51
|
// types supported by any Flight configuration anywhere since
|
|
52
52
|
// we don't know which Flight build this will end up being used
|
|
53
53
|
// with.
|
|
54
|
-
e.$$typeof ===
|
|
54
|
+
e.$$typeof === q || e.getModuleId !== void 0));
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function ie(e, i, l) {
|
|
57
57
|
var u = e.displayName;
|
|
58
58
|
if (u)
|
|
59
59
|
return u;
|
|
60
60
|
var A = i.displayName || i.name || "";
|
|
61
61
|
return A !== "" ? l + "(" + A + ")" : l;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Z(e) {
|
|
64
64
|
return e.displayName || "Context";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function U(e) {
|
|
67
67
|
if (e == null)
|
|
68
68
|
return null;
|
|
69
69
|
if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -77,7 +77,7 @@ function Hr() {
|
|
|
77
77
|
return "Portal";
|
|
78
78
|
case S:
|
|
79
79
|
return "Profiler";
|
|
80
|
-
case
|
|
80
|
+
case w:
|
|
81
81
|
return "StrictMode";
|
|
82
82
|
case L:
|
|
83
83
|
return "Suspense";
|
|
@@ -88,19 +88,19 @@ function Hr() {
|
|
|
88
88
|
switch (e.$$typeof) {
|
|
89
89
|
case N:
|
|
90
90
|
var i = e;
|
|
91
|
-
return
|
|
92
|
-
case
|
|
91
|
+
return Z(i) + ".Consumer";
|
|
92
|
+
case x:
|
|
93
93
|
var l = e;
|
|
94
|
-
return
|
|
94
|
+
return Z(l._context) + ".Provider";
|
|
95
95
|
case P:
|
|
96
|
-
return
|
|
96
|
+
return ie(e, e.render, "ForwardRef");
|
|
97
97
|
case T:
|
|
98
98
|
var u = e.displayName || null;
|
|
99
|
-
return u !== null ? u :
|
|
99
|
+
return u !== null ? u : U(e.type) || "Memo";
|
|
100
100
|
case p: {
|
|
101
101
|
var A = e, j = A._payload, y = A._init;
|
|
102
102
|
try {
|
|
103
|
-
return
|
|
103
|
+
return U(y(j));
|
|
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
|
|
112
|
-
function
|
|
111
|
+
var D = Object.assign, B = 0, Q, ee, _e, le, V, ce, re;
|
|
112
|
+
function de() {
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
function
|
|
114
|
+
de.__reactDisabledLog = !0;
|
|
115
|
+
function ne() {
|
|
116
116
|
{
|
|
117
|
-
if (
|
|
118
|
-
|
|
117
|
+
if (B === 0) {
|
|
118
|
+
Q = console.log, ee = console.info, _e = console.warn, le = console.error, V = console.group, ce = console.groupCollapsed, re = console.groupEnd;
|
|
119
119
|
var e = {
|
|
120
120
|
configurable: !0,
|
|
121
121
|
enumerable: !0,
|
|
122
|
-
value:
|
|
122
|
+
value: de,
|
|
123
123
|
writable: !0
|
|
124
124
|
};
|
|
125
125
|
Object.defineProperties(console, {
|
|
@@ -132,77 +132,77 @@ function Hr() {
|
|
|
132
132
|
groupEnd: e
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
B++;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function oe() {
|
|
139
139
|
{
|
|
140
|
-
if (
|
|
140
|
+
if (B--, B === 0) {
|
|
141
141
|
var e = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
147
|
-
log:
|
|
148
|
-
value:
|
|
147
|
+
log: D({}, e, {
|
|
148
|
+
value: Q
|
|
149
149
|
}),
|
|
150
|
-
info:
|
|
151
|
-
value:
|
|
150
|
+
info: D({}, e, {
|
|
151
|
+
value: ee
|
|
152
152
|
}),
|
|
153
|
-
warn:
|
|
154
|
-
value:
|
|
153
|
+
warn: D({}, e, {
|
|
154
|
+
value: _e
|
|
155
155
|
}),
|
|
156
|
-
error:
|
|
157
|
-
value:
|
|
156
|
+
error: D({}, e, {
|
|
157
|
+
value: le
|
|
158
158
|
}),
|
|
159
|
-
group:
|
|
160
|
-
value:
|
|
159
|
+
group: D({}, e, {
|
|
160
|
+
value: V
|
|
161
161
|
}),
|
|
162
|
-
groupCollapsed:
|
|
163
|
-
value:
|
|
162
|
+
groupCollapsed: D({}, e, {
|
|
163
|
+
value: ce
|
|
164
164
|
}),
|
|
165
|
-
groupEnd:
|
|
166
|
-
value:
|
|
165
|
+
groupEnd: D({}, e, {
|
|
166
|
+
value: re
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
B < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
var
|
|
174
|
-
function
|
|
173
|
+
var ue = b.ReactCurrentDispatcher, ge;
|
|
174
|
+
function K(e, i, l) {
|
|
175
175
|
{
|
|
176
|
-
if (
|
|
176
|
+
if (ge === void 0)
|
|
177
177
|
try {
|
|
178
178
|
throw Error();
|
|
179
179
|
} catch (A) {
|
|
180
180
|
var u = A.stack.trim().match(/\n( *(at )?)/);
|
|
181
|
-
|
|
181
|
+
ge = u && u[1] || "";
|
|
182
182
|
}
|
|
183
183
|
return `
|
|
184
|
-
` +
|
|
184
|
+
` + ge + e;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var ye = !1, me;
|
|
188
188
|
{
|
|
189
189
|
var we = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
|
-
|
|
190
|
+
me = 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 = me.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 A = Error.prepareStackTrace;
|
|
203
203
|
Error.prepareStackTrace = void 0;
|
|
204
204
|
var j;
|
|
205
|
-
j =
|
|
205
|
+
j = ue.current, ue.current = null, ne();
|
|
206
206
|
try {
|
|
207
207
|
if (i) {
|
|
208
208
|
var y = function() {
|
|
@@ -238,94 +238,94 @@ function Hr() {
|
|
|
238
238
|
} catch (te) {
|
|
239
239
|
if (te && u && typeof te.stack == "string") {
|
|
240
240
|
for (var _ = te.stack.split(`
|
|
241
|
-
`),
|
|
242
|
-
`), M = _.length - 1,
|
|
243
|
-
|
|
244
|
-
for (; M >= 1 &&
|
|
245
|
-
if (_[M] !==
|
|
246
|
-
if (M !== 1 ||
|
|
241
|
+
`), X = u.stack.split(`
|
|
242
|
+
`), M = _.length - 1, G = X.length - 1; M >= 1 && G >= 0 && _[M] !== X[G]; )
|
|
243
|
+
G--;
|
|
244
|
+
for (; M >= 1 && G >= 0; M--, G--)
|
|
245
|
+
if (_[M] !== X[G]) {
|
|
246
|
+
if (M !== 1 || G !== 1)
|
|
247
247
|
do
|
|
248
|
-
if (M--,
|
|
249
|
-
var
|
|
248
|
+
if (M--, G--, G < 0 || _[M] !== X[G]) {
|
|
249
|
+
var se = `
|
|
250
250
|
` + _[M].replace(" at new ", " at ");
|
|
251
|
-
return e.displayName &&
|
|
251
|
+
return e.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", e.displayName)), typeof e == "function" && me.set(e, se), se;
|
|
252
252
|
}
|
|
253
|
-
while (M >= 1 &&
|
|
253
|
+
while (M >= 1 && G >= 0);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
} finally {
|
|
258
|
-
|
|
258
|
+
ye = !1, ue.current = j, oe(), Error.prepareStackTrace = A;
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
return typeof e == "function" &&
|
|
260
|
+
var Ce = e ? e.displayName || e.name : "", ve = Ce ? K(Ce) : "";
|
|
261
|
+
return typeof e == "function" && me.set(e, ve), ve;
|
|
262
262
|
}
|
|
263
263
|
function xe(e, i, l) {
|
|
264
|
-
return
|
|
264
|
+
return be(e, !1);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Pe(e) {
|
|
267
267
|
var i = e.prototype;
|
|
268
268
|
return !!(i && i.isReactComponent);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function k(e, i, l) {
|
|
271
271
|
if (e == null)
|
|
272
272
|
return "";
|
|
273
273
|
if (typeof e == "function")
|
|
274
|
-
return
|
|
274
|
+
return be(e, Pe(e));
|
|
275
275
|
if (typeof e == "string")
|
|
276
|
-
return
|
|
276
|
+
return K(e);
|
|
277
277
|
switch (e) {
|
|
278
278
|
case L:
|
|
279
|
-
return
|
|
279
|
+
return K("Suspense");
|
|
280
280
|
case d:
|
|
281
|
-
return
|
|
281
|
+
return K("SuspenseList");
|
|
282
282
|
}
|
|
283
283
|
if (typeof e == "object")
|
|
284
284
|
switch (e.$$typeof) {
|
|
285
285
|
case P:
|
|
286
286
|
return xe(e.render);
|
|
287
287
|
case T:
|
|
288
|
-
return
|
|
288
|
+
return k(e.type, i, l);
|
|
289
289
|
case p: {
|
|
290
290
|
var u = e, A = u._payload, j = u._init;
|
|
291
291
|
try {
|
|
292
|
-
return
|
|
292
|
+
return k(j(A), 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 R(e) {
|
|
301
301
|
if (e) {
|
|
302
|
-
var i = e._owner, l =
|
|
303
|
-
|
|
302
|
+
var i = e._owner, l = k(e.type, e._source, i ? i.type : null);
|
|
303
|
+
s.setExtraStackFrame(l);
|
|
304
304
|
} else
|
|
305
|
-
|
|
305
|
+
s.setExtraStackFrame(null);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function fe(e, i, l, u, A) {
|
|
308
308
|
{
|
|
309
|
-
var j = Function.call.bind(
|
|
309
|
+
var j = Function.call.bind(pe);
|
|
310
310
|
for (var y in e)
|
|
311
311
|
if (j(e, y)) {
|
|
312
312
|
var _ = void 0;
|
|
313
313
|
try {
|
|
314
314
|
if (typeof e[y] != "function") {
|
|
315
|
-
var
|
|
316
|
-
throw
|
|
315
|
+
var X = Error((u || "React class") + ": " + l + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
316
|
+
throw X.name = "Invariant Violation", X;
|
|
317
317
|
}
|
|
318
318
|
_ = e[y](i, y, u, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
319
|
} catch (M) {
|
|
320
320
|
_ = M;
|
|
321
321
|
}
|
|
322
|
-
_ && !(_ instanceof Error) && (
|
|
322
|
+
_ && !(_ instanceof Error) && (R(A), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", l, y, typeof _), R(null)), _ instanceof Error && !(_.message in n) && (n[_.message] = !0, R(A), g("Failed %s type: %s", l, _.message), R(null));
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
var
|
|
327
|
-
function
|
|
328
|
-
return
|
|
326
|
+
var Se = Array.isArray;
|
|
327
|
+
function Ee(e) {
|
|
328
|
+
return Se(e);
|
|
329
329
|
}
|
|
330
330
|
function yr(e) {
|
|
331
331
|
{
|
|
@@ -354,7 +354,7 @@ function Hr() {
|
|
|
354
354
|
__source: !0
|
|
355
355
|
}, ze, Je;
|
|
356
356
|
function wr(e) {
|
|
357
|
-
if (
|
|
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;
|
|
@@ -362,7 +362,7 @@ function Hr() {
|
|
|
362
362
|
return e.ref !== void 0;
|
|
363
363
|
}
|
|
364
364
|
function xr(e) {
|
|
365
|
-
if (
|
|
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;
|
|
@@ -425,26 +425,26 @@ function Hr() {
|
|
|
425
425
|
};
|
|
426
426
|
function Nr(e, i, l, u, A) {
|
|
427
427
|
{
|
|
428
|
-
var j, y = {}, _ = null,
|
|
429
|
-
l !== void 0 && (qe(l), _ = "" + l), xr(i) && (qe(i.key), _ = "" + i.key), wr(i) && (
|
|
428
|
+
var j, y = {}, _ = null, X = null;
|
|
429
|
+
l !== void 0 && (qe(l), _ = "" + l), xr(i) && (qe(i.key), _ = "" + i.key), wr(i) && (X = i.ref, Pr(i, A));
|
|
430
430
|
for (j in i)
|
|
431
|
-
|
|
431
|
+
pe.call(i, j) && !kr.hasOwnProperty(j) && (y[j] = i[j]);
|
|
432
432
|
if (e && e.defaultProps) {
|
|
433
433
|
var M = e.defaultProps;
|
|
434
434
|
for (j in M)
|
|
435
435
|
y[j] === void 0 && (y[j] = M[j]);
|
|
436
436
|
}
|
|
437
|
-
if (_ ||
|
|
438
|
-
var
|
|
439
|
-
_ && Ar(y,
|
|
437
|
+
if (_ || X) {
|
|
438
|
+
var G = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
439
|
+
_ && Ar(y, G), X && Cr(y, G);
|
|
440
440
|
}
|
|
441
|
-
return jr(e, _,
|
|
441
|
+
return jr(e, _, X, A, u, Ve.current, y);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
var Fe = b.ReactCurrentOwner, Qe = b.ReactDebugCurrentFrame;
|
|
445
|
-
function
|
|
445
|
+
function Ae(e) {
|
|
446
446
|
if (e) {
|
|
447
|
-
var i = e._owner, l =
|
|
447
|
+
var i = e._owner, l = k(e.type, e._source, i ? i.type : null);
|
|
448
448
|
Qe.setExtraStackFrame(l);
|
|
449
449
|
} else
|
|
450
450
|
Qe.setExtraStackFrame(null);
|
|
@@ -457,7 +457,7 @@ function Hr() {
|
|
|
457
457
|
function Xe() {
|
|
458
458
|
{
|
|
459
459
|
if (Fe.current) {
|
|
460
|
-
var e =
|
|
460
|
+
var e = U(Fe.current.type);
|
|
461
461
|
if (e)
|
|
462
462
|
return `
|
|
463
463
|
|
|
@@ -492,14 +492,14 @@ Check the top-level render call using <` + l + ">.");
|
|
|
492
492
|
return;
|
|
493
493
|
Ze[l] = !0;
|
|
494
494
|
var u = "";
|
|
495
|
-
e && e._owner && e._owner !== Fe.current && (u = " It was passed a child from " +
|
|
495
|
+
e && e._owner && e._owner !== Fe.current && (u = " It was passed a child from " + U(e._owner.type) + "."), Ae(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, u), Ae(null);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
function rr(e, i) {
|
|
499
499
|
{
|
|
500
500
|
if (typeof e != "object")
|
|
501
501
|
return;
|
|
502
|
-
if (
|
|
502
|
+
if (Ee(e))
|
|
503
503
|
for (var l = 0; l < e.length; l++) {
|
|
504
504
|
var u = e[l];
|
|
505
505
|
Me(u) && er(u, i);
|
|
@@ -529,11 +529,11 @@ Check the top-level render call using <` + l + ">.");
|
|
|
529
529
|
else
|
|
530
530
|
return;
|
|
531
531
|
if (l) {
|
|
532
|
-
var u =
|
|
533
|
-
|
|
532
|
+
var u = U(i);
|
|
533
|
+
fe(l, e.props, "prop", u, e);
|
|
534
534
|
} else if (i.PropTypes !== void 0 && !Oe) {
|
|
535
535
|
Oe = !0;
|
|
536
|
-
var A =
|
|
536
|
+
var A = U(i);
|
|
537
537
|
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
|
|
538
538
|
}
|
|
539
539
|
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -544,43 +544,43 @@ Check the top-level render call using <` + l + ">.");
|
|
|
544
544
|
for (var i = Object.keys(e.props), l = 0; l < i.length; l++) {
|
|
545
545
|
var u = i[l];
|
|
546
546
|
if (u !== "children" && u !== "key") {
|
|
547
|
-
|
|
547
|
+
Ae(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), Ae(null);
|
|
548
548
|
break;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
e.ref !== null && (
|
|
551
|
+
e.ref !== null && (Ae(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
var tr = {};
|
|
555
555
|
function ar(e, i, l, u, A, j) {
|
|
556
556
|
{
|
|
557
|
-
var y =
|
|
557
|
+
var y = $(e);
|
|
558
558
|
if (!y) {
|
|
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
|
|
562
|
-
|
|
561
|
+
var X = Tr();
|
|
562
|
+
X ? _ += X : _ += Xe();
|
|
563
563
|
var M;
|
|
564
|
-
e === null ? M = "null" :
|
|
564
|
+
e === null ? M = "null" : Ee(e) ? M = "array" : e !== void 0 && e.$$typeof === o ? (M = "<" + (U(e.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : M = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", M, _);
|
|
565
565
|
}
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
return
|
|
566
|
+
var G = Nr(e, i, l, A, j);
|
|
567
|
+
if (G == null)
|
|
568
|
+
return G;
|
|
569
569
|
if (y) {
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
570
|
+
var se = i.children;
|
|
571
|
+
if (se !== void 0)
|
|
572
572
|
if (u)
|
|
573
|
-
if (
|
|
574
|
-
for (var
|
|
575
|
-
rr(
|
|
576
|
-
Object.freeze && Object.freeze(
|
|
573
|
+
if (Ee(se)) {
|
|
574
|
+
for (var Ce = 0; Ce < se.length; Ce++)
|
|
575
|
+
rr(se[Ce], e);
|
|
576
|
+
Object.freeze && Object.freeze(se);
|
|
577
577
|
} else
|
|
578
578
|
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
579
579
|
else
|
|
580
|
-
rr(
|
|
580
|
+
rr(se, e);
|
|
581
581
|
}
|
|
582
|
-
if (
|
|
583
|
-
var ve =
|
|
582
|
+
if (pe.call(i, "key")) {
|
|
583
|
+
var ve = U(e), te = Object.keys(i).filter(function(Or) {
|
|
584
584
|
return Or !== "key";
|
|
585
585
|
}), $e = te.length > 0 ? "{key: someKey, " + te.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
586
|
if (!tr[ve + $e]) {
|
|
@@ -593,22 +593,22 @@ React keys must be passed directly to JSX without using spread:
|
|
|
593
593
|
<%s key={someKey} {...props} />`, $e, ve, Fr, ve), tr[ve + $e] = !0;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
return e === m ? Er(
|
|
596
|
+
return e === m ? Er(G) : Sr(G), G;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
function Ir(e, i, l) {
|
|
600
600
|
return ar(e, i, l, !0);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function Br(e, i, l) {
|
|
603
603
|
return ar(e, i, l, !1);
|
|
604
604
|
}
|
|
605
|
-
var
|
|
606
|
-
|
|
607
|
-
})()),
|
|
605
|
+
var Lr = Br, Dr = Ir;
|
|
606
|
+
Be.Fragment = m, Be.jsx = Lr, Be.jsxs = Dr;
|
|
607
|
+
})()), Be;
|
|
608
608
|
}
|
|
609
609
|
var ir;
|
|
610
610
|
function Yr() {
|
|
611
|
-
return ir || (ir = 1, process.env.NODE_ENV === "production" ?
|
|
611
|
+
return ir || (ir = 1, process.env.NODE_ENV === "production" ? Le.exports = Kr() : Le.exports = Hr()), Le.exports;
|
|
612
612
|
}
|
|
613
613
|
var r = Yr();
|
|
614
614
|
const mr = ["en", "hi"], lr = {
|
|
@@ -1050,13 +1050,13 @@ const mr = ["en", "hi"], lr = {
|
|
|
1050
1050
|
locale: t,
|
|
1051
1051
|
children: o
|
|
1052
1052
|
}) => {
|
|
1053
|
-
const m = { locale: t, t: (
|
|
1053
|
+
const m = { locale: t, t: (w) => fr[t]?.[w] ?? w };
|
|
1054
1054
|
return /* @__PURE__ */ r.jsx(pr.Provider, { value: m, children: o });
|
|
1055
1055
|
};
|
|
1056
1056
|
function qr() {
|
|
1057
1057
|
return We(pr);
|
|
1058
1058
|
}
|
|
1059
|
-
const Vr = "_container_1e1th_1", zr = "_main_1e1th_7", Jr = "_kundliHeaderNoBorder_1e1th_12", Qr = "_headerSeparator_1e1th_16", Xr = "_langDropdownWrap_1e1th_21", Zr = "_langTrigger_1e1th_25", et = "_langIcon_1e1th_37", rt = "_langLabel_1e1th_44", tt = "_langMenu_1e1th_49", at = "_langOption_1e1th_55",
|
|
1059
|
+
const Vr = "_container_1e1th_1", zr = "_main_1e1th_7", Jr = "_kundliHeaderNoBorder_1e1th_12", Qr = "_headerSeparator_1e1th_16", Xr = "_langDropdownWrap_1e1th_21", Zr = "_langTrigger_1e1th_25", et = "_langIcon_1e1th_37", rt = "_langLabel_1e1th_44", tt = "_langMenu_1e1th_49", at = "_langOption_1e1th_55", he = {
|
|
1060
1060
|
container: Vr,
|
|
1061
1061
|
main: zr,
|
|
1062
1062
|
kundliHeaderNoBorder: Jr,
|
|
@@ -1067,12 +1067,12 @@ const Vr = "_container_1e1th_1", zr = "_main_1e1th_7", Jr = "_kundliHeaderNoBord
|
|
|
1067
1067
|
langLabel: rt,
|
|
1068
1068
|
langMenu: tt,
|
|
1069
1069
|
langOption: at
|
|
1070
|
-
},
|
|
1071
|
-
const { priority: o, fetchPriority: c, width: m, height:
|
|
1070
|
+
}, De = (t) => {
|
|
1071
|
+
const { priority: o, fetchPriority: c, width: m, height: w, ...S } = t;
|
|
1072
1072
|
return Ge.createElement("img", {
|
|
1073
1073
|
...S,
|
|
1074
1074
|
width: m ?? 1,
|
|
1075
|
-
height:
|
|
1075
|
+
height: w ?? 1,
|
|
1076
1076
|
decoding: "async",
|
|
1077
1077
|
loading: S.loading ?? (o ? "eager" : "lazy"),
|
|
1078
1078
|
...c && { fetchPriority: c }
|
|
@@ -1136,9 +1136,9 @@ const Ke = ur(null), st = {
|
|
|
1136
1136
|
showLanguageSelector: o = !0,
|
|
1137
1137
|
showSheet: c,
|
|
1138
1138
|
userId: m,
|
|
1139
|
-
isGlobal:
|
|
1139
|
+
isGlobal: w,
|
|
1140
1140
|
variant: S,
|
|
1141
|
-
atlasSearchLocalities:
|
|
1141
|
+
atlasSearchLocalities: x,
|
|
1142
1142
|
logoUrl: N,
|
|
1143
1143
|
reportImageUrl: P,
|
|
1144
1144
|
reportImagePriority: L,
|
|
@@ -1151,39 +1151,39 @@ const Ke = ur(null), st = {
|
|
|
1151
1151
|
onBack: C,
|
|
1152
1152
|
readMoreReviewsHref: b,
|
|
1153
1153
|
onProceed: g,
|
|
1154
|
-
proceedHref:
|
|
1154
|
+
proceedHref: F,
|
|
1155
1155
|
originalPriceLabel: v,
|
|
1156
|
-
discountedPriceLabel:
|
|
1157
|
-
discountPillLabel:
|
|
1156
|
+
discountedPriceLabel: O,
|
|
1157
|
+
discountPillLabel: z,
|
|
1158
1158
|
analytics: J,
|
|
1159
|
-
onProceedGuidance:
|
|
1160
|
-
onLocaleChange:
|
|
1161
|
-
imageComponent:
|
|
1162
|
-
resolvedUtmBannerImageUrl:
|
|
1163
|
-
children:
|
|
1159
|
+
onProceedGuidance: ae,
|
|
1160
|
+
onLocaleChange: q,
|
|
1161
|
+
imageComponent: $ = De,
|
|
1162
|
+
resolvedUtmBannerImageUrl: ie,
|
|
1163
|
+
children: Z
|
|
1164
1164
|
}) => {
|
|
1165
|
-
const [
|
|
1166
|
-
|
|
1167
|
-
const
|
|
1168
|
-
|
|
1169
|
-
}, []),
|
|
1170
|
-
lt(
|
|
1171
|
-
}, [
|
|
1172
|
-
if (
|
|
1173
|
-
|
|
1165
|
+
const [U, D] = W("landing"), [B, Q] = W(t ?? "en"), [ee, _e] = W(st), le = H(!0);
|
|
1166
|
+
Y(() => {
|
|
1167
|
+
const ne = it();
|
|
1168
|
+
ne && Q(ne);
|
|
1169
|
+
}, []), Y(() => {
|
|
1170
|
+
lt(B);
|
|
1171
|
+
}, [B]), Y(() => {
|
|
1172
|
+
if (le.current) {
|
|
1173
|
+
le.current = !1;
|
|
1174
1174
|
return;
|
|
1175
1175
|
}
|
|
1176
|
-
|
|
1177
|
-
}, [
|
|
1178
|
-
const
|
|
1176
|
+
q?.(B);
|
|
1177
|
+
}, [B, q]);
|
|
1178
|
+
const V = Ue(
|
|
1179
1179
|
() => ({
|
|
1180
1180
|
locale: t,
|
|
1181
1181
|
showLanguageSelector: o,
|
|
1182
1182
|
showSheet: c,
|
|
1183
1183
|
userId: m,
|
|
1184
|
-
isGlobal:
|
|
1184
|
+
isGlobal: w,
|
|
1185
1185
|
variant: S,
|
|
1186
|
-
atlasSearchLocalities:
|
|
1186
|
+
atlasSearchLocalities: x,
|
|
1187
1187
|
logoUrl: N,
|
|
1188
1188
|
reportImageUrl: P,
|
|
1189
1189
|
reportImagePriority: L,
|
|
@@ -1196,24 +1196,24 @@ const Ke = ur(null), st = {
|
|
|
1196
1196
|
onBack: C,
|
|
1197
1197
|
readMoreReviewsHref: b,
|
|
1198
1198
|
onProceed: g,
|
|
1199
|
-
proceedHref:
|
|
1199
|
+
proceedHref: F,
|
|
1200
1200
|
originalPriceLabel: v,
|
|
1201
|
-
discountedPriceLabel:
|
|
1202
|
-
discountPillLabel:
|
|
1201
|
+
discountedPriceLabel: O,
|
|
1202
|
+
discountPillLabel: z,
|
|
1203
1203
|
analytics: J,
|
|
1204
|
-
onProceedGuidance:
|
|
1205
|
-
onLocaleChange:
|
|
1206
|
-
imageComponent:
|
|
1207
|
-
resolvedUtmBannerImageUrl:
|
|
1204
|
+
onProceedGuidance: ae,
|
|
1205
|
+
onLocaleChange: q,
|
|
1206
|
+
imageComponent: $,
|
|
1207
|
+
resolvedUtmBannerImageUrl: ie
|
|
1208
1208
|
}),
|
|
1209
1209
|
[
|
|
1210
1210
|
t,
|
|
1211
1211
|
o,
|
|
1212
1212
|
c,
|
|
1213
1213
|
m,
|
|
1214
|
-
k,
|
|
1215
|
-
S,
|
|
1216
1214
|
w,
|
|
1215
|
+
S,
|
|
1216
|
+
x,
|
|
1217
1217
|
N,
|
|
1218
1218
|
P,
|
|
1219
1219
|
L,
|
|
@@ -1226,38 +1226,38 @@ const Ke = ur(null), st = {
|
|
|
1226
1226
|
C,
|
|
1227
1227
|
b,
|
|
1228
1228
|
g,
|
|
1229
|
-
$,
|
|
1230
|
-
v,
|
|
1231
1229
|
F,
|
|
1232
|
-
|
|
1230
|
+
v,
|
|
1231
|
+
O,
|
|
1232
|
+
z,
|
|
1233
1233
|
J,
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1234
|
+
ae,
|
|
1235
|
+
q,
|
|
1236
|
+
$,
|
|
1237
|
+
ie
|
|
1238
1238
|
]
|
|
1239
|
-
),
|
|
1240
|
-
|
|
1241
|
-
}, [
|
|
1242
|
-
|
|
1243
|
-
}, [
|
|
1239
|
+
), ce = Te(() => {
|
|
1240
|
+
D("form");
|
|
1241
|
+
}, [V.analytics]), re = Te(() => {
|
|
1242
|
+
D("landing"), V.onBack?.();
|
|
1243
|
+
}, [V.onBack]), de = Ue(
|
|
1244
1244
|
() => ({
|
|
1245
|
-
view:
|
|
1246
|
-
locale:
|
|
1247
|
-
setLocale:
|
|
1248
|
-
config:
|
|
1249
|
-
formValues:
|
|
1250
|
-
setFormValues:
|
|
1251
|
-
goToForm:
|
|
1252
|
-
goToPage:
|
|
1253
|
-
onProceed:
|
|
1254
|
-
onProceedGuidance:
|
|
1245
|
+
view: U,
|
|
1246
|
+
locale: B,
|
|
1247
|
+
setLocale: Q,
|
|
1248
|
+
config: V,
|
|
1249
|
+
formValues: ee,
|
|
1250
|
+
setFormValues: _e,
|
|
1251
|
+
goToForm: ce,
|
|
1252
|
+
goToPage: re,
|
|
1253
|
+
onProceed: V.onProceed,
|
|
1254
|
+
onProceedGuidance: V.onProceedGuidance
|
|
1255
1255
|
}),
|
|
1256
|
-
[
|
|
1256
|
+
[U, B, V, ee, ce, re]
|
|
1257
1257
|
);
|
|
1258
|
-
return /* @__PURE__ */ r.jsx(Ke.Provider, { value:
|
|
1258
|
+
return /* @__PURE__ */ r.jsx(Ke.Provider, { value: de, children: Z });
|
|
1259
1259
|
};
|
|
1260
|
-
function
|
|
1260
|
+
function Re() {
|
|
1261
1261
|
return We(Ke);
|
|
1262
1262
|
}
|
|
1263
1263
|
function $n() {
|
|
@@ -1283,7 +1283,7 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1283
1283
|
backAriaLabel: t("back"),
|
|
1284
1284
|
className: `${sr.header} ${m === "center" ? sr.centered : ""} ${c}`
|
|
1285
1285
|
}
|
|
1286
|
-
), mt = "_wrap_119w3_1", ft = "_card_119w3_5", pt = "_cardInner_119w3_12", ht = "_field_119w3_44", gt = "_labelRow_119w3_48", _t = "_label_119w3_48", bt = "_req_119w3_57", yt = "_help_119w3_61", vt = "_choiceRow_119w3_68", kt = "_choiceBtn_119w3_74", wt = "_choiceBtnActive_119w3_99", xt = "_infoBtn_119w3_105", Pt = "_infoImg_119w3_122", At = "_infoWrap_119w3_128", Ct = "_tooltip_119w3_134", jt = "_tooltipArrow_119w3_150", Nt = "_inputWrap_119w3_161", Tt = "_isdWrap_119w3_165", Rt = "_phoneInputGroup_119w3_169", St = "_isdSelectWrap_119w3_178", Et = "_isdSelectTrigger_119w3_197", It = "_isdDropdown_119w3_214",
|
|
1286
|
+
), mt = "_wrap_119w3_1", ft = "_card_119w3_5", pt = "_cardInner_119w3_12", ht = "_field_119w3_44", gt = "_labelRow_119w3_48", _t = "_label_119w3_48", bt = "_req_119w3_57", yt = "_help_119w3_61", vt = "_choiceRow_119w3_68", kt = "_choiceBtn_119w3_74", wt = "_choiceBtnActive_119w3_99", xt = "_infoBtn_119w3_105", Pt = "_infoImg_119w3_122", At = "_infoWrap_119w3_128", Ct = "_tooltip_119w3_134", jt = "_tooltipArrow_119w3_150", Nt = "_inputWrap_119w3_161", Tt = "_isdWrap_119w3_165", Rt = "_phoneInputGroup_119w3_169", St = "_isdSelectWrap_119w3_178", Et = "_isdSelectTrigger_119w3_197", It = "_isdDropdown_119w3_214", Bt = "_isdSearchWrap_119w3_229", Lt = "_isdSearchInput_119w3_237", Dt = "_isdOption_119w3_255", Ft = "_isdOptionActive_119w3_275", Ot = "_isdCountryName_119w3_281", Mt = "_isdCountryCode_119w3_288", $t = "_isdNoResult_119w3_295", Ut = "_suggestions_119w3_302", Gt = "_suggestionItem_119w3_315", Wt = "_suggestionMain_119w3_333", Kt = "_suggestionSecondary_119w3_339", Ht = "_suggestionsHint_119w3_344", Yt = "_fieldError_119w3_359", qt = "_timePopover_119w3_366", Vt = "_timePickerRow_119w3_382", zt = "_timePickerSelect_119w3_388", Jt = "_timePickerColon_119w3_404", Qt = "_meridiemToggle_119w3_412", Xt = "_meridiemBtn_119w3_421", Zt = "_meridiemActive_119w3_436", ea = "_timePopoverActions_119w3_441", ra = "_timePopoverBtn_119w3_447", ta = "_timePopoverOk_119w3_466", aa = "_input_119w3_161", na = "_phoneInput_119w3_169", oa = "_iconBtn_119w3_519", ia = "_iconBtnInteractive_119w3_525", la = "_iconImg_119w3_544", sa = "_checkboxRow_119w3_550", ca = "_checkbox_119w3_550", da = "_checkboxText_119w3_588", a = {
|
|
1287
1287
|
wrap: mt,
|
|
1288
1288
|
card: ft,
|
|
1289
1289
|
cardInner: pt,
|
|
@@ -1306,8 +1306,8 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1306
1306
|
isdSelectWrap: St,
|
|
1307
1307
|
isdSelectTrigger: Et,
|
|
1308
1308
|
isdDropdown: It,
|
|
1309
|
-
isdSearchWrap:
|
|
1310
|
-
isdSearchInput:
|
|
1309
|
+
isdSearchWrap: Bt,
|
|
1310
|
+
isdSearchInput: Lt,
|
|
1311
1311
|
isdOption: Dt,
|
|
1312
1312
|
isdOptionActive: Ft,
|
|
1313
1313
|
isdCountryName: Ot,
|
|
@@ -1345,18 +1345,18 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1345
1345
|
restrictCountry: t?.restrictCountry
|
|
1346
1346
|
};
|
|
1347
1347
|
}, ma = (t) => {
|
|
1348
|
-
const { searchLocalities: o, restrictCountry: c } = t, [m,
|
|
1349
|
-
|
|
1348
|
+
const { searchLocalities: o, restrictCountry: c } = t, [m, w] = W([]), [S, x] = W(!1), [N, P] = W(null), L = H(0);
|
|
1349
|
+
Y(() => {
|
|
1350
1350
|
P(null);
|
|
1351
1351
|
}, [o]);
|
|
1352
|
-
const d =
|
|
1352
|
+
const d = Te(
|
|
1353
1353
|
async (p) => {
|
|
1354
1354
|
if (!p || p.length < 2 || !o) {
|
|
1355
|
-
|
|
1355
|
+
w([]);
|
|
1356
1356
|
return;
|
|
1357
1357
|
}
|
|
1358
1358
|
const E = ++L.current;
|
|
1359
|
-
|
|
1359
|
+
x(!0), P(null);
|
|
1360
1360
|
try {
|
|
1361
1361
|
const h = ua({ restrictCountry: c }), I = await o(p, h);
|
|
1362
1362
|
if (E !== L.current) return;
|
|
@@ -1369,16 +1369,16 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1369
1369
|
lat: b.lat,
|
|
1370
1370
|
lng: b.lng
|
|
1371
1371
|
}));
|
|
1372
|
-
|
|
1372
|
+
w(C);
|
|
1373
1373
|
} catch (h) {
|
|
1374
1374
|
if (E !== L.current) return;
|
|
1375
|
-
|
|
1375
|
+
w([]), P(h?.message || "Failed to fetch locations");
|
|
1376
1376
|
} finally {
|
|
1377
|
-
E === L.current &&
|
|
1377
|
+
E === L.current && x(!1);
|
|
1378
1378
|
}
|
|
1379
1379
|
},
|
|
1380
1380
|
[c, o]
|
|
1381
|
-
), T =
|
|
1381
|
+
), T = Te(() => w([]), []);
|
|
1382
1382
|
return {
|
|
1383
1383
|
predictions: m,
|
|
1384
1384
|
isSearching: S,
|
|
@@ -1386,7 +1386,7 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1386
1386
|
searchPlaces: d,
|
|
1387
1387
|
clearPredictions: T
|
|
1388
1388
|
};
|
|
1389
|
-
},
|
|
1389
|
+
}, je = {
|
|
1390
1390
|
time: "https://srm-cdn.a4b.io/yoda/1770372014782.svg",
|
|
1391
1391
|
location: "https://srm-cdn.a4b.io/yoda/1770372031092.svg",
|
|
1392
1392
|
date: "https://srm-cdn.a4b.io/yoda/1770372045894.svg",
|
|
@@ -1468,104 +1468,106 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1468
1468
|
values: o,
|
|
1469
1469
|
onChange: c,
|
|
1470
1470
|
phoneIsdCode: m,
|
|
1471
|
-
onPhoneIsdCodeChange:
|
|
1471
|
+
onPhoneIsdCodeChange: w,
|
|
1472
1472
|
showV1ExtraFields: S = !1,
|
|
1473
|
-
analytics:
|
|
1473
|
+
analytics: x,
|
|
1474
1474
|
atlasSearchLocalities: N,
|
|
1475
1475
|
className: P = ""
|
|
1476
1476
|
}) => {
|
|
1477
|
-
const L =
|
|
1477
|
+
const L = Re(), d = L?.config?.analytics ?? x, T = L?.config.isGlobal ?? !0, p = L?.config?.atlasSearchLocalities, [E, h] = W(!1), [I, C] = W(""), b = H(null), g = H(null), F = H({}), v = (n) => c({ ...o, ...n }), O = (n, s) => {
|
|
1478
1478
|
if (n === "phone") {
|
|
1479
|
-
const
|
|
1480
|
-
|
|
1479
|
+
const R = pa(s, m, F.current);
|
|
1480
|
+
R.shouldTrack && d?.trackPhoneSectionFilled?.({ phone: R.fullPhone });
|
|
1481
1481
|
return;
|
|
1482
1482
|
}
|
|
1483
|
-
s.trim() &&
|
|
1483
|
+
s.trim() && !F.current[n] && (F.current[n] = !0, {
|
|
1484
1484
|
fullName: () => d?.trackNameSectionFilled?.(),
|
|
1485
|
-
email: () => d?.trackEmailSectionFilled?.(),
|
|
1486
1485
|
dateOfBirth: () => d?.trackDobFilled?.(),
|
|
1487
1486
|
birthTime: () => d?.trackTimeFilled?.(),
|
|
1488
1487
|
birthPlace: () => d?.trackPlaceOfBirthChosen?.()
|
|
1489
1488
|
}[n]?.());
|
|
1490
|
-
},
|
|
1491
|
-
|
|
1492
|
-
|
|
1489
|
+
}, z = (n) => {
|
|
1490
|
+
const s = n.target.value;
|
|
1491
|
+
s.trim() && !F.current.email && (F.current.email = !0, d?.trackEmailSectionFilled?.({ email: s }));
|
|
1492
|
+
}, J = I.trim().toLowerCase(), ae = gr.filter((n) => J ? n.country.toLowerCase().includes(J) || n.code.includes(J) : !0), q = H(null);
|
|
1493
|
+
H(null);
|
|
1494
|
+
const $ = H(null), ie = H(0), Z = H(null), [U, D] = W(!1), [B, Q] = W({ hour12: 12, minute: "00", meridiem: "AM" }), ee = (n) => String(n).padStart(2, "0"), _e = (n) => {
|
|
1493
1495
|
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
1494
1496
|
if (!s) return n;
|
|
1495
|
-
const
|
|
1496
|
-
return `${
|
|
1497
|
-
},
|
|
1497
|
+
const R = Number(s[1]), fe = s[2], Se = R >= 12 ? "PM" : "AM";
|
|
1498
|
+
return `${R % 12 === 0 ? 12 : R % 12}:${fe} ${Se}`;
|
|
1499
|
+
}, le = (n) => {
|
|
1498
1500
|
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
1499
1501
|
if (!s) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
1500
|
-
const
|
|
1501
|
-
return { hour12:
|
|
1502
|
-
},
|
|
1503
|
-
const s = Math.min(12, Math.max(1, n.hour12)),
|
|
1504
|
-
let
|
|
1505
|
-
return n.meridiem === "PM" && (
|
|
1506
|
-
},
|
|
1502
|
+
const R = Number(s[1]), fe = s[2], Se = R >= 12 ? "PM" : "AM";
|
|
1503
|
+
return { hour12: R % 12 === 0 ? 12 : R % 12, minute: fe, meridiem: Se };
|
|
1504
|
+
}, V = (n) => {
|
|
1505
|
+
const s = Math.min(12, Math.max(1, n.hour12)), R = /^([0-5]\d)$/.test(n.minute) ? n.minute : "00";
|
|
1506
|
+
let fe = s % 12;
|
|
1507
|
+
return n.meridiem === "PM" && (fe += 12), `${ee(fe)}:${R}`;
|
|
1508
|
+
}, ce = H(null), [re, de] = W(!1), [ne, oe] = W(
|
|
1507
1509
|
null
|
|
1508
|
-
),
|
|
1509
|
-
predictions:
|
|
1510
|
-
isSearching:
|
|
1511
|
-
loadError:
|
|
1512
|
-
searchPlaces:
|
|
1513
|
-
clearPredictions:
|
|
1510
|
+
), ue = (o.birthPlace ?? "").trim(), ge = T ? void 0 : "in", K = N ?? p, ye = Number.isFinite(o.birthPlaceLat) && Number.isFinite(o.birthPlaceLng), me = ue.length > 0 && !ye && !re, {
|
|
1511
|
+
predictions: we,
|
|
1512
|
+
isSearching: be,
|
|
1513
|
+
loadError: xe,
|
|
1514
|
+
searchPlaces: Pe,
|
|
1515
|
+
clearPredictions: k
|
|
1514
1516
|
} = ma({
|
|
1515
|
-
searchLocalities:
|
|
1517
|
+
searchLocalities: K,
|
|
1516
1518
|
restrictCountry: ge
|
|
1517
1519
|
});
|
|
1518
|
-
|
|
1520
|
+
Y(() => {
|
|
1519
1521
|
const n = (s) => {
|
|
1520
|
-
|
|
1522
|
+
ce.current && (ce.current.contains(s.target) || de(!1));
|
|
1521
1523
|
};
|
|
1522
1524
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1523
|
-
}, []),
|
|
1525
|
+
}, []), Y(() => {
|
|
1524
1526
|
const n = (s) => {
|
|
1525
1527
|
b.current && (b.current.contains(s.target) || (h(!1), C("")));
|
|
1526
1528
|
};
|
|
1527
1529
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1528
|
-
}, []),
|
|
1530
|
+
}, []), Y(() => {
|
|
1529
1531
|
if (!E) return;
|
|
1530
1532
|
const n = window.setTimeout(() => {
|
|
1531
1533
|
g.current?.focus();
|
|
1532
1534
|
}, 0);
|
|
1533
1535
|
return () => window.clearTimeout(n);
|
|
1534
|
-
}, [E]),
|
|
1535
|
-
if (!
|
|
1536
|
-
if (
|
|
1537
|
-
|
|
1536
|
+
}, [E]), Y(() => {
|
|
1537
|
+
if (!re) return;
|
|
1538
|
+
if (ue.length < 2) {
|
|
1539
|
+
k();
|
|
1538
1540
|
return;
|
|
1539
1541
|
}
|
|
1540
1542
|
const n = window.setTimeout(async () => {
|
|
1541
|
-
await
|
|
1543
|
+
await Pe(ue);
|
|
1542
1544
|
}, 250);
|
|
1543
1545
|
return () => window.clearTimeout(n);
|
|
1544
|
-
}, [
|
|
1545
|
-
const
|
|
1546
|
+
}, [k, re, ue, Pe]);
|
|
1547
|
+
const pe = (n) => {
|
|
1546
1548
|
const s = n.current;
|
|
1547
1549
|
if (!(!s || s.disabled)) {
|
|
1548
|
-
if (document.activeElement === s &&
|
|
1550
|
+
if (document.activeElement === s && $.current === s && Date.now() - ie.current < 6e4) {
|
|
1549
1551
|
s.blur();
|
|
1550
1552
|
return;
|
|
1551
1553
|
}
|
|
1552
1554
|
if (typeof s.showPicker == "function") {
|
|
1553
|
-
s.showPicker(),
|
|
1555
|
+
s.showPicker(), $.current = s, ie.current = Date.now();
|
|
1554
1556
|
return;
|
|
1555
1557
|
}
|
|
1556
|
-
s.focus(),
|
|
1558
|
+
s.focus(), $.current = s, ie.current = Date.now();
|
|
1557
1559
|
}
|
|
1558
1560
|
};
|
|
1559
|
-
return
|
|
1561
|
+
return Y(() => {
|
|
1560
1562
|
const n = (s) => {
|
|
1561
|
-
|
|
1563
|
+
Z.current && (Z.current.contains(s.target) || D(!1));
|
|
1562
1564
|
};
|
|
1563
1565
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1564
|
-
}, []),
|
|
1565
|
-
const n = (
|
|
1566
|
-
|
|
1567
|
-
}, s = (
|
|
1568
|
-
|
|
1566
|
+
}, []), Y(() => {
|
|
1567
|
+
const n = (R) => {
|
|
1568
|
+
R.target?.closest?.("[data-info-tooltip]") == null && oe(null);
|
|
1569
|
+
}, s = (R) => {
|
|
1570
|
+
R.key === "Escape" && oe(null);
|
|
1569
1571
|
};
|
|
1570
1572
|
return document.addEventListener("mousedown", n), document.addEventListener("keydown", s), () => {
|
|
1571
1573
|
document.removeEventListener("mousedown", n), document.removeEventListener("keydown", s);
|
|
@@ -1591,7 +1593,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1591
1593
|
onFocus: () => d?.trackNameSectionClicked?.(),
|
|
1592
1594
|
onChange: (n) => {
|
|
1593
1595
|
const s = n.target.value;
|
|
1594
|
-
v({ fullName: s }),
|
|
1596
|
+
v({ fullName: s }), O("fullName", s);
|
|
1595
1597
|
},
|
|
1596
1598
|
placeholder: t("formFullNamePlaceholder"),
|
|
1597
1599
|
autoComplete: "name"
|
|
@@ -1628,7 +1630,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1628
1630
|
onFocus: () => d?.trackPhoneSectionClicked?.(),
|
|
1629
1631
|
onChange: (n) => {
|
|
1630
1632
|
const s = n.target.value;
|
|
1631
|
-
v({ phone: dr(s) }),
|
|
1633
|
+
v({ phone: dr(s) }), O("phone", dr(s));
|
|
1632
1634
|
},
|
|
1633
1635
|
placeholder: t("formPhonePlaceholder"),
|
|
1634
1636
|
autoComplete: "tel",
|
|
@@ -1659,7 +1661,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1659
1661
|
"aria-label": "Search country"
|
|
1660
1662
|
}
|
|
1661
1663
|
) }),
|
|
1662
|
-
|
|
1664
|
+
ae.length > 0 ? ae.map((n) => /* @__PURE__ */ r.jsxs(
|
|
1663
1665
|
"button",
|
|
1664
1666
|
{
|
|
1665
1667
|
type: "button",
|
|
@@ -1667,7 +1669,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1667
1669
|
"aria-selected": n.code === m,
|
|
1668
1670
|
className: `${a.isdOption} ${n.code === m ? a.isdOptionActive : ""}`,
|
|
1669
1671
|
onClick: () => {
|
|
1670
|
-
|
|
1672
|
+
w(n.code), h(!1), C("");
|
|
1671
1673
|
},
|
|
1672
1674
|
children: [
|
|
1673
1675
|
/* @__PURE__ */ r.jsx("span", { className: a.isdCountryName, children: n.country }),
|
|
@@ -1744,9 +1746,9 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1744
1746
|
value: o.email,
|
|
1745
1747
|
onFocus: () => d?.trackEmailSectionClicked?.(),
|
|
1746
1748
|
onChange: (n) => {
|
|
1747
|
-
|
|
1748
|
-
v({ email: s }), F("email", s);
|
|
1749
|
+
v({ email: n.target.value });
|
|
1749
1750
|
},
|
|
1751
|
+
onBlur: z,
|
|
1750
1752
|
placeholder: t("formEmailPlaceholder"),
|
|
1751
1753
|
autoComplete: "email",
|
|
1752
1754
|
required: !0,
|
|
@@ -1767,22 +1769,22 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1767
1769
|
type: "button",
|
|
1768
1770
|
className: a.infoBtn,
|
|
1769
1771
|
"aria-label": t("info"),
|
|
1770
|
-
"aria-expanded":
|
|
1772
|
+
"aria-expanded": ne === "dob",
|
|
1771
1773
|
onClick: () => {
|
|
1772
|
-
|
|
1774
|
+
oe((n) => n === "dob" ? null : "dob"), d?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
1773
1775
|
},
|
|
1774
1776
|
children: /* @__PURE__ */ r.jsx(
|
|
1775
1777
|
"img",
|
|
1776
1778
|
{
|
|
1777
1779
|
className: a.infoImg,
|
|
1778
|
-
src:
|
|
1780
|
+
src: je.info,
|
|
1779
1781
|
alt: "",
|
|
1780
1782
|
"aria-hidden": !0
|
|
1781
1783
|
}
|
|
1782
1784
|
)
|
|
1783
1785
|
}
|
|
1784
1786
|
),
|
|
1785
|
-
|
|
1787
|
+
ne === "dob" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
|
|
1786
1788
|
t("formDobInfo"),
|
|
1787
1789
|
/* @__PURE__ */ r.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
|
|
1788
1790
|
] })
|
|
@@ -1795,20 +1797,20 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1795
1797
|
id: "kundli-dob",
|
|
1796
1798
|
className: a.input,
|
|
1797
1799
|
type: "date",
|
|
1798
|
-
ref:
|
|
1800
|
+
ref: q,
|
|
1799
1801
|
value: o.dateOfBirth,
|
|
1800
1802
|
max: (() => {
|
|
1801
1803
|
const n = /* @__PURE__ */ new Date();
|
|
1802
|
-
return `${n.getFullYear()}-${
|
|
1804
|
+
return `${n.getFullYear()}-${ee(n.getMonth() + 1)}-${ee(n.getDate())}`;
|
|
1803
1805
|
})(),
|
|
1804
1806
|
onChange: (n) => {
|
|
1805
|
-
const s = n.target.value,
|
|
1806
|
-
s && s >
|
|
1807
|
+
const s = n.target.value, R = /* @__PURE__ */ new Date(), fe = `${R.getFullYear()}-${ee(R.getMonth() + 1)}-${ee(R.getDate())}`;
|
|
1808
|
+
s && s > fe || (v({ dateOfBirth: s }), O("dateOfBirth", s), $.current = null);
|
|
1807
1809
|
},
|
|
1808
1810
|
onFocus: () => d?.trackDobClicked?.(),
|
|
1809
|
-
onClick: () =>
|
|
1811
|
+
onClick: () => pe(q),
|
|
1810
1812
|
onBlur: () => {
|
|
1811
|
-
|
|
1813
|
+
$.current === q.current && ($.current = null);
|
|
1812
1814
|
}
|
|
1813
1815
|
}
|
|
1814
1816
|
),
|
|
@@ -1820,13 +1822,13 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1820
1822
|
"aria-label": "Open date picker",
|
|
1821
1823
|
onMouseDown: (n) => n.preventDefault(),
|
|
1822
1824
|
onClick: (n) => {
|
|
1823
|
-
n.preventDefault(), n.stopPropagation(),
|
|
1825
|
+
n.preventDefault(), n.stopPropagation(), pe(q);
|
|
1824
1826
|
},
|
|
1825
1827
|
children: /* @__PURE__ */ r.jsx(
|
|
1826
1828
|
"img",
|
|
1827
1829
|
{
|
|
1828
1830
|
className: a.iconImg,
|
|
1829
|
-
src:
|
|
1831
|
+
src: je.date,
|
|
1830
1832
|
alt: "",
|
|
1831
1833
|
"aria-hidden": !0
|
|
1832
1834
|
}
|
|
@@ -1848,45 +1850,45 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1848
1850
|
type: "button",
|
|
1849
1851
|
className: a.infoBtn,
|
|
1850
1852
|
"aria-label": t("info"),
|
|
1851
|
-
"aria-expanded":
|
|
1853
|
+
"aria-expanded": ne === "time",
|
|
1852
1854
|
onClick: () => {
|
|
1853
|
-
d?.trackInfoIconClicked?.({ fieldName: "time" }),
|
|
1855
|
+
d?.trackInfoIconClicked?.({ fieldName: "time" }), oe((n) => n === "time" ? null : "time");
|
|
1854
1856
|
},
|
|
1855
1857
|
children: /* @__PURE__ */ r.jsx(
|
|
1856
1858
|
"img",
|
|
1857
1859
|
{
|
|
1858
1860
|
className: a.infoImg,
|
|
1859
|
-
src:
|
|
1861
|
+
src: je.info,
|
|
1860
1862
|
alt: "",
|
|
1861
1863
|
"aria-hidden": !0
|
|
1862
1864
|
}
|
|
1863
1865
|
)
|
|
1864
1866
|
}
|
|
1865
1867
|
),
|
|
1866
|
-
|
|
1868
|
+
ne === "time" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
|
|
1867
1869
|
t("formBirthTimeInfo"),
|
|
1868
1870
|
/* @__PURE__ */ r.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
|
|
1869
1871
|
] })
|
|
1870
1872
|
] })
|
|
1871
1873
|
] }),
|
|
1872
|
-
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref:
|
|
1874
|
+
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref: Z, children: [
|
|
1873
1875
|
/* @__PURE__ */ r.jsx(
|
|
1874
1876
|
"input",
|
|
1875
1877
|
{
|
|
1876
1878
|
id: "kundli-birth-time",
|
|
1877
1879
|
className: a.input,
|
|
1878
1880
|
type: "text",
|
|
1879
|
-
value: o.birthTime ?
|
|
1881
|
+
value: o.birthTime ? _e(o.birthTime) : "",
|
|
1880
1882
|
readOnly: !0,
|
|
1881
1883
|
onFocus: () => d?.trackTimeClicked?.(),
|
|
1882
1884
|
onChange: (n) => {
|
|
1883
1885
|
const s = n.target.value;
|
|
1884
|
-
v({ birthTime: s }),
|
|
1886
|
+
v({ birthTime: s }), O("birthTime", s);
|
|
1885
1887
|
},
|
|
1886
1888
|
disabled: o.birthTimeUnknown,
|
|
1887
1889
|
placeholder: "HH:MM AM",
|
|
1888
1890
|
onClick: () => {
|
|
1889
|
-
o.birthTimeUnknown || (
|
|
1891
|
+
o.birthTimeUnknown || (Q(le(o.birthTime || "12:00")), D((n) => !n));
|
|
1890
1892
|
}
|
|
1891
1893
|
}
|
|
1892
1894
|
),
|
|
@@ -1899,20 +1901,20 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1899
1901
|
disabled: o.birthTimeUnknown,
|
|
1900
1902
|
onMouseDown: (n) => n.preventDefault(),
|
|
1901
1903
|
onClick: (n) => {
|
|
1902
|
-
n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (
|
|
1904
|
+
n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (Q(le(o.birthTime || "12:00")), D((s) => !s));
|
|
1903
1905
|
},
|
|
1904
1906
|
children: /* @__PURE__ */ r.jsx(
|
|
1905
1907
|
"img",
|
|
1906
1908
|
{
|
|
1907
1909
|
className: a.iconImg,
|
|
1908
|
-
src:
|
|
1910
|
+
src: je.time,
|
|
1909
1911
|
alt: "",
|
|
1910
1912
|
"aria-hidden": !0
|
|
1911
1913
|
}
|
|
1912
1914
|
)
|
|
1913
1915
|
}
|
|
1914
1916
|
),
|
|
1915
|
-
|
|
1917
|
+
U && !o.birthTimeUnknown && /* @__PURE__ */ r.jsxs(
|
|
1916
1918
|
"div",
|
|
1917
1919
|
{
|
|
1918
1920
|
className: a.timePopover,
|
|
@@ -1924,8 +1926,8 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1924
1926
|
"select",
|
|
1925
1927
|
{
|
|
1926
1928
|
className: a.timePickerSelect,
|
|
1927
|
-
value:
|
|
1928
|
-
onChange: (n) =>
|
|
1929
|
+
value: B.hour12,
|
|
1930
|
+
onChange: (n) => Q((s) => ({
|
|
1929
1931
|
...s,
|
|
1930
1932
|
hour12: Number(n.target.value)
|
|
1931
1933
|
})),
|
|
@@ -1938,10 +1940,10 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1938
1940
|
"select",
|
|
1939
1941
|
{
|
|
1940
1942
|
className: a.timePickerSelect,
|
|
1941
|
-
value:
|
|
1942
|
-
onChange: (n) =>
|
|
1943
|
+
value: B.minute,
|
|
1944
|
+
onChange: (n) => Q((s) => ({ ...s, minute: n.target.value })),
|
|
1943
1945
|
"aria-label": "Minute",
|
|
1944
|
-
children: Array.from({ length: 60 }, (n, s) =>
|
|
1946
|
+
children: Array.from({ length: 60 }, (n, s) => ee(s)).map(
|
|
1945
1947
|
(n) => /* @__PURE__ */ r.jsx("option", { value: n, children: n }, n)
|
|
1946
1948
|
)
|
|
1947
1949
|
}
|
|
@@ -1951,8 +1953,8 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1951
1953
|
"button",
|
|
1952
1954
|
{
|
|
1953
1955
|
type: "button",
|
|
1954
|
-
className: `${a.meridiemBtn} ${
|
|
1955
|
-
onClick: () =>
|
|
1956
|
+
className: `${a.meridiemBtn} ${B.meridiem === "AM" ? a.meridiemActive : ""}`,
|
|
1957
|
+
onClick: () => Q((n) => ({ ...n, meridiem: "AM" })),
|
|
1956
1958
|
children: "AM"
|
|
1957
1959
|
}
|
|
1958
1960
|
),
|
|
@@ -1960,8 +1962,8 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1960
1962
|
"button",
|
|
1961
1963
|
{
|
|
1962
1964
|
type: "button",
|
|
1963
|
-
className: `${a.meridiemBtn} ${
|
|
1964
|
-
onClick: () =>
|
|
1965
|
+
className: `${a.meridiemBtn} ${B.meridiem === "PM" ? a.meridiemActive : ""}`,
|
|
1966
|
+
onClick: () => Q((n) => ({ ...n, meridiem: "PM" })),
|
|
1965
1967
|
children: "PM"
|
|
1966
1968
|
}
|
|
1967
1969
|
)
|
|
@@ -1973,7 +1975,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1973
1975
|
{
|
|
1974
1976
|
type: "button",
|
|
1975
1977
|
className: a.timePopoverBtn,
|
|
1976
|
-
onClick: () =>
|
|
1978
|
+
onClick: () => D(!1),
|
|
1977
1979
|
children: "Cancel"
|
|
1978
1980
|
}
|
|
1979
1981
|
),
|
|
@@ -1983,8 +1985,8 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1983
1985
|
type: "button",
|
|
1984
1986
|
className: `${a.timePopoverBtn} ${a.timePopoverOk}`,
|
|
1985
1987
|
onClick: () => {
|
|
1986
|
-
const n =
|
|
1987
|
-
v({ birthTime: n }),
|
|
1988
|
+
const n = V(B);
|
|
1989
|
+
v({ birthTime: n }), O("birthTime", n), D(!1);
|
|
1988
1990
|
},
|
|
1989
1991
|
"aria-label": "OK",
|
|
1990
1992
|
children: /* @__PURE__ */ r.jsx(
|
|
@@ -2058,30 +2060,30 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2058
2060
|
type: "button",
|
|
2059
2061
|
className: a.infoBtn,
|
|
2060
2062
|
"aria-label": t("info"),
|
|
2061
|
-
"aria-expanded":
|
|
2063
|
+
"aria-expanded": ne === "place",
|
|
2062
2064
|
onClick: () => {
|
|
2063
2065
|
d?.trackInfoIconClicked?.({
|
|
2064
2066
|
fieldName: "birthPlace"
|
|
2065
|
-
}),
|
|
2067
|
+
}), oe((n) => n === "place" ? null : "place");
|
|
2066
2068
|
},
|
|
2067
2069
|
children: /* @__PURE__ */ r.jsx(
|
|
2068
2070
|
"img",
|
|
2069
2071
|
{
|
|
2070
2072
|
className: a.infoImg,
|
|
2071
|
-
src:
|
|
2073
|
+
src: je.info,
|
|
2072
2074
|
alt: "",
|
|
2073
2075
|
"aria-hidden": !0
|
|
2074
2076
|
}
|
|
2075
2077
|
)
|
|
2076
2078
|
}
|
|
2077
2079
|
),
|
|
2078
|
-
|
|
2080
|
+
ne === "place" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
|
|
2079
2081
|
t("formBirthPlaceInfo"),
|
|
2080
2082
|
/* @__PURE__ */ r.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
|
|
2081
2083
|
] })
|
|
2082
2084
|
] })
|
|
2083
2085
|
] }),
|
|
2084
|
-
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref:
|
|
2086
|
+
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref: ce, children: [
|
|
2085
2087
|
/* @__PURE__ */ r.jsx(
|
|
2086
2088
|
"input",
|
|
2087
2089
|
{
|
|
@@ -2095,10 +2097,10 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2095
2097
|
birthPlace: s,
|
|
2096
2098
|
birthPlaceLat: void 0,
|
|
2097
2099
|
birthPlaceLng: void 0
|
|
2098
|
-
}),
|
|
2100
|
+
}), O("birthPlace", s), de(!0);
|
|
2099
2101
|
},
|
|
2100
2102
|
onFocus: () => {
|
|
2101
|
-
d?.trackPlaceOfBirthClicked?.(),
|
|
2103
|
+
d?.trackPlaceOfBirthClicked?.(), de(!0);
|
|
2102
2104
|
},
|
|
2103
2105
|
placeholder: t("formBirthPlacePlaceholder"),
|
|
2104
2106
|
autoComplete: "address-level2"
|
|
@@ -2108,12 +2110,12 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2108
2110
|
"img",
|
|
2109
2111
|
{
|
|
2110
2112
|
className: a.iconImg,
|
|
2111
|
-
src:
|
|
2113
|
+
src: je.location,
|
|
2112
2114
|
alt: "",
|
|
2113
2115
|
"aria-hidden": !0
|
|
2114
2116
|
}
|
|
2115
2117
|
) }),
|
|
2116
|
-
|
|
2118
|
+
re && we.length > 0 && /* @__PURE__ */ r.jsx("div", { className: a.suggestions, role: "listbox", children: we.slice(0, 8).map((n) => /* @__PURE__ */ r.jsxs(
|
|
2117
2119
|
"button",
|
|
2118
2120
|
{
|
|
2119
2121
|
type: "button",
|
|
@@ -2123,7 +2125,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2123
2125
|
birthPlace: n.description,
|
|
2124
2126
|
birthPlaceLat: n.lat,
|
|
2125
2127
|
birthPlaceLng: n.lng
|
|
2126
|
-
}),
|
|
2128
|
+
}), k(), de(!1);
|
|
2127
2129
|
},
|
|
2128
2130
|
children: [
|
|
2129
2131
|
/* @__PURE__ */ r.jsx("span", { className: a.suggestionMain, children: n.description }),
|
|
@@ -2132,10 +2134,10 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2132
2134
|
},
|
|
2133
2135
|
n.id
|
|
2134
2136
|
)) }),
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
+
re && !!K && be && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: "Loading…" }),
|
|
2138
|
+
re && !!K && !be && !!xe && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: xe })
|
|
2137
2139
|
] }),
|
|
2138
|
-
|
|
2140
|
+
me && /* @__PURE__ */ r.jsx("p", { className: a.fieldError, children: "Please select a place from the dropdown list." })
|
|
2139
2141
|
] }),
|
|
2140
2142
|
S && /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
|
|
2141
2143
|
/* @__PURE__ */ r.jsx("div", { className: a.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: a.label, children: [
|
|
@@ -2268,13 +2270,13 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2268
2270
|
] }) })
|
|
2269
2271
|
}
|
|
2270
2272
|
);
|
|
2271
|
-
}, ga = "_ctaButton_rhimw_2", _a = "_ctaFilled_rhimw_21", ba = "_ctaFilledContent_rhimw_52", ya = "_chevronRight_rhimw_61",
|
|
2273
|
+
}, ga = "_ctaButton_rhimw_2", _a = "_ctaFilled_rhimw_21", ba = "_ctaFilledContent_rhimw_52", ya = "_chevronRight_rhimw_61", Ne = {
|
|
2272
2274
|
ctaButton: ga,
|
|
2273
2275
|
ctaFilled: _a,
|
|
2274
2276
|
ctaFilledContent: ba,
|
|
2275
2277
|
chevronRight: ya
|
|
2276
2278
|
}, br = "kundli-report-astrologer", va = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", ka = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", wa = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", xa = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", Pa = ({ t }) => {
|
|
2277
|
-
const c =
|
|
2279
|
+
const c = Re()?.config.imageComponent ?? De;
|
|
2278
2280
|
return /* @__PURE__ */ r.jsxs("div", { className: ke.marqueeContent, children: [
|
|
2279
2281
|
/* @__PURE__ */ r.jsxs("span", { className: ke.badge, children: [
|
|
2280
2282
|
/* @__PURE__ */ r.jsx(
|
|
@@ -2338,9 +2340,9 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2338
2340
|
values: o,
|
|
2339
2341
|
phoneIsdCode: c,
|
|
2340
2342
|
requireV1ExtraFields: m = !1,
|
|
2341
|
-
onValidationFailed:
|
|
2343
|
+
onValidationFailed: w,
|
|
2342
2344
|
onProceed: S,
|
|
2343
|
-
onProceedGuidance:
|
|
2345
|
+
onProceedGuidance: x,
|
|
2344
2346
|
href: N,
|
|
2345
2347
|
analytics: P,
|
|
2346
2348
|
className: L = "",
|
|
@@ -2351,49 +2353,49 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2351
2353
|
planSheetOpen: h,
|
|
2352
2354
|
selectedPlan: I
|
|
2353
2355
|
}) => {
|
|
2354
|
-
const C =
|
|
2356
|
+
const C = Re(), b = C?.config.isGlobal ?? !0, g = C?.config?.variant, [F, v] = W(!1), O = Ue(
|
|
2355
2357
|
() => ja(o, b, m),
|
|
2356
2358
|
[o, b, m]
|
|
2357
|
-
),
|
|
2358
|
-
|
|
2359
|
-
if (
|
|
2360
|
-
const
|
|
2359
|
+
), z = O === null, J = g === "v1" && C?.config?.showSheet;
|
|
2360
|
+
Y(() => {
|
|
2361
|
+
if (!F) return;
|
|
2362
|
+
const Z = window.setTimeout(() => {
|
|
2361
2363
|
v(!1);
|
|
2362
2364
|
}, 2200);
|
|
2363
|
-
return () => window.clearTimeout(
|
|
2364
|
-
}, [
|
|
2365
|
-
const
|
|
2366
|
-
if (
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
),
|
|
2365
|
+
return () => window.clearTimeout(Z);
|
|
2366
|
+
}, [F]);
|
|
2367
|
+
const ae = b ? d ?? t("formDiscountedPrice") : J ? "" : "₹499", q = C?.config.imageComponent ?? De, $ = (Z) => {
|
|
2368
|
+
if (Z.preventDefault(), g === "v1" && !z && P?.trackKundliDetailedClicked?.(), !z) {
|
|
2369
|
+
O && (w?.(
|
|
2370
|
+
O === "birthPlaceCoordinates" ? "birthPlace" : O
|
|
2371
|
+
), O === "birthPlaceCoordinates" && v(!0));
|
|
2370
2372
|
return;
|
|
2371
2373
|
}
|
|
2372
|
-
const
|
|
2374
|
+
const U = !!x && g === "v1" && I?.id === br, D = (o.phone ?? "").trim(), B = {
|
|
2373
2375
|
...o,
|
|
2374
|
-
phone:
|
|
2376
|
+
phone: D && `${c}-${D}`
|
|
2375
2377
|
};
|
|
2376
2378
|
if (J) {
|
|
2377
|
-
h ? E?.() : p?.(
|
|
2379
|
+
h ? E?.() : p?.(B);
|
|
2378
2380
|
return;
|
|
2379
2381
|
}
|
|
2380
|
-
P?.trackPrimaryCtaClickedL1?.({ avenue: "form" }),
|
|
2381
|
-
},
|
|
2382
|
+
P?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), U ? x(B) : S?.(B);
|
|
2383
|
+
}, ie = /* @__PURE__ */ r.jsx(
|
|
2382
2384
|
$r,
|
|
2383
2385
|
{
|
|
2384
2386
|
href: N,
|
|
2385
|
-
disabled: g === "v1" ? !1 : !
|
|
2386
|
-
onClick:
|
|
2387
|
+
disabled: g === "v1" ? !1 : !z,
|
|
2388
|
+
onClick: $,
|
|
2387
2389
|
"aria-label": t("formPriceAria"),
|
|
2388
|
-
className: g === "v1" &&
|
|
2389
|
-
children: g === "v1" ?
|
|
2390
|
-
J ? t("selectPackage") : h && I ? `${t("proceedWithPlan")}${I.price}` : `${t("formProceed")} ${
|
|
2390
|
+
className: g === "v1" && z ? Ne.ctaFilled : g === "v1" ? Ne.ctaButton : void 0,
|
|
2391
|
+
children: g === "v1" ? z ? /* @__PURE__ */ r.jsxs("span", { className: Ne.ctaFilledContent, children: [
|
|
2392
|
+
J ? t("selectPackage") : h && I ? `${t("proceedWithPlan")}${I.price}` : `${t("formProceed")} ${ae}`,
|
|
2391
2393
|
/* @__PURE__ */ r.jsx(
|
|
2392
|
-
|
|
2394
|
+
q,
|
|
2393
2395
|
{
|
|
2394
2396
|
src: xa,
|
|
2395
2397
|
alt: "",
|
|
2396
|
-
className:
|
|
2398
|
+
className: Ne.chevronRight,
|
|
2397
2399
|
width: 20,
|
|
2398
2400
|
height: 20,
|
|
2399
2401
|
loading: "lazy"
|
|
@@ -2402,18 +2404,18 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2402
2404
|
] }) : t("formCtaDefault") : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2403
2405
|
t("formProceed"),
|
|
2404
2406
|
" ",
|
|
2405
|
-
|
|
2407
|
+
ae
|
|
2406
2408
|
] })
|
|
2407
2409
|
}
|
|
2408
2410
|
);
|
|
2409
2411
|
return /* @__PURE__ */ r.jsxs(
|
|
2410
2412
|
Ur,
|
|
2411
2413
|
{
|
|
2412
|
-
className: `${
|
|
2414
|
+
className: `${Ne.footerContainer} ${L}`,
|
|
2413
2415
|
marquee: /* @__PURE__ */ r.jsx(Gr, { children: /* @__PURE__ */ r.jsx(Pa, { t }) }),
|
|
2414
2416
|
children: [
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
+
F && /* @__PURE__ */ r.jsx("div", { className: Ne.validationToast, role: "alert", "aria-live": "assertive", children: t("formFillAllFields") }),
|
|
2418
|
+
ie
|
|
2417
2419
|
]
|
|
2418
2420
|
}
|
|
2419
2421
|
);
|
|
@@ -2423,15 +2425,15 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2423
2425
|
logoUrl: c = Ta,
|
|
2424
2426
|
className: m = ""
|
|
2425
2427
|
}) => {
|
|
2426
|
-
const
|
|
2428
|
+
const w = Re(), S = w?.config.isGlobal ?? !0, x = o != null && !S;
|
|
2427
2429
|
return /* @__PURE__ */ r.jsx(
|
|
2428
2430
|
Wr,
|
|
2429
2431
|
{
|
|
2430
2432
|
t,
|
|
2431
2433
|
logoUrl: c,
|
|
2432
|
-
imageComponent:
|
|
2434
|
+
imageComponent: w?.config.imageComponent,
|
|
2433
2435
|
languageSelector: o,
|
|
2434
|
-
showLanguageSelector:
|
|
2436
|
+
showLanguageSelector: x,
|
|
2435
2437
|
className: m
|
|
2436
2438
|
}
|
|
2437
2439
|
);
|
|
@@ -2452,11 +2454,11 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2452
2454
|
strokeWidth: "1.8",
|
|
2453
2455
|
strokeLinecap: "round"
|
|
2454
2456
|
}
|
|
2455
|
-
) }), Ia = () => /* @__PURE__ */ r.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx("path", { d: "M15 18l-6-6 6-6" }) }),
|
|
2457
|
+
) }), Ia = () => /* @__PURE__ */ r.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx("path", { d: "M15 18l-6-6 6-6" }) }), Ba = () => /* @__PURE__ */ r.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: [
|
|
2456
2458
|
/* @__PURE__ */ r.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
2457
2459
|
/* @__PURE__ */ r.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
2458
|
-
] }),
|
|
2459
|
-
overlay:
|
|
2460
|
+
] }), La = "_overlay_18irl_2", Da = "_sheet_18irl_12", Fa = "_header_18irl_36", Oa = "_backBtn_18irl_48", Ma = "_title_18irl_66", $a = "_plansContainer_18irl_78", Ua = "_planCard_18irl_87", Ga = "_withBadgeSpacing_18irl_101", Wa = "_planCardSelected_18irl_105", Ka = "_planCardPopular_18irl_110", Ha = "_popularBadge_18irl_119", Ya = "_planCardInner_18irl_137", qa = "_planTitleRow_18irl_148", Va = "_planTitle_18irl_148", za = "_radioCircle_18irl_163", Ja = "_radioChecked_18irl_176", Qa = "_radioInner_18irl_181", Xa = "_priceRow_18irl_189", Za = "_price_18irl_189", en = "_originalPrice_18irl_202", rn = "_savingsBadge_18irl_209", tn = "_featureList_18irl_219", an = "_featureItem_18irl_228", nn = "_featureIcon_18irl_234", on = "_featureText_18irl_240", ln = "_astrologerHeading_18irl_251", sn = "_astrologerList_18irl_258", cn = "_astrologerCard_18irl_274", dn = "_astrologerAvatar_18irl_290", un = "_astrologerAvatarPlaceholder_18irl_307", mn = "_astrologerTop_18irl_313", fn = "_astrologerBasicInfo_18irl_319", pn = "_astrologerName_18irl_326", hn = "_astrologerExp_18irl_335", gn = "_astrologerDivider_18irl_341", _n = "_planDivider_18irl_347", bn = "_astrologerCertList_18irl_354", yn = "_astrologerCertItem_18irl_360", vn = "_bullet_18irl_368", kn = "_footer_18irl_373", wn = "_proceedBtn_18irl_383", f = {
|
|
2461
|
+
overlay: La,
|
|
2460
2462
|
sheet: Da,
|
|
2461
2463
|
header: Fa,
|
|
2462
2464
|
backBtn: Oa,
|
|
@@ -2533,11 +2535,11 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2533
2535
|
o?.(c) ?? c
|
|
2534
2536
|
] }, m)) })
|
|
2535
2537
|
] }), Cn = ({ label: t }) => /* @__PURE__ */ r.jsxs("div", { className: f.popularBadge, "aria-label": t, children: [
|
|
2536
|
-
/* @__PURE__ */ r.jsx(
|
|
2538
|
+
/* @__PURE__ */ r.jsx(Ba, {}),
|
|
2537
2539
|
/* @__PURE__ */ r.jsx("span", { children: t })
|
|
2538
2540
|
] }), jn = ({ plan: t, isSelected: o, onSelect: c, t: m }) => {
|
|
2539
|
-
const
|
|
2540
|
-
(
|
|
2541
|
+
const w = () => c(t.id), S = (x) => {
|
|
2542
|
+
(x.key === " " || x.key === "Enter") && (x.preventDefault(), c(t.id));
|
|
2541
2543
|
};
|
|
2542
2544
|
return /* @__PURE__ */ r.jsxs(
|
|
2543
2545
|
"div",
|
|
@@ -2547,7 +2549,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2547
2549
|
o ? f.planCardSelected : "",
|
|
2548
2550
|
o && f.planCardPopular
|
|
2549
2551
|
].filter(Boolean).join(" "),
|
|
2550
|
-
onClick:
|
|
2552
|
+
onClick: w,
|
|
2551
2553
|
role: "radio",
|
|
2552
2554
|
"aria-checked": o,
|
|
2553
2555
|
tabIndex: 0,
|
|
@@ -2576,7 +2578,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2576
2578
|
t.astrologers && /* @__PURE__ */ r.jsx("div", { className: f.planDivider }),
|
|
2577
2579
|
t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2578
2580
|
/* @__PURE__ */ r.jsx("p", { className: f.astrologerHeading, children: m?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
|
|
2579
|
-
/* @__PURE__ */ r.jsx("div", { className: f.astrologerList, role: "list", children: t.astrologers.map((
|
|
2581
|
+
/* @__PURE__ */ r.jsx("div", { className: f.astrologerList, role: "list", children: t.astrologers.map((x, N) => /* @__PURE__ */ r.jsx("div", { role: "listitem", children: /* @__PURE__ */ r.jsx(An, { astrologer: x, t: m }) }, N)) })
|
|
2580
2582
|
] })
|
|
2581
2583
|
] })
|
|
2582
2584
|
]
|
|
@@ -2645,13 +2647,13 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2645
2647
|
onClose: o,
|
|
2646
2648
|
selectedPlan: c,
|
|
2647
2649
|
onSelectPlan: m,
|
|
2648
|
-
plans:
|
|
2650
|
+
plans: w,
|
|
2649
2651
|
onProceed: S,
|
|
2650
|
-
t:
|
|
2652
|
+
t: x,
|
|
2651
2653
|
analytics: N
|
|
2652
2654
|
}) => {
|
|
2653
|
-
const L =
|
|
2654
|
-
|
|
2655
|
+
const L = Re()?.config.isGlobal ?? !0, d = w ?? Tn(L), T = c?.id || d.find((C) => C.badge)?.id || d[0]?.id || "", p = H(null), E = H(null), h = H(!1);
|
|
2656
|
+
Y(() => {
|
|
2655
2657
|
if (t) {
|
|
2656
2658
|
if (!c) {
|
|
2657
2659
|
const C = d.find((b) => b.badge) ?? d[0];
|
|
@@ -2664,7 +2666,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2664
2666
|
const I = () => {
|
|
2665
2667
|
N?.trackPlanPageClosed?.(), o();
|
|
2666
2668
|
};
|
|
2667
|
-
return
|
|
2669
|
+
return Y(() => {
|
|
2668
2670
|
if (!t) return;
|
|
2669
2671
|
const C = document.body.style.overflow;
|
|
2670
2672
|
return document.body.style.overflow = "hidden", () => {
|
|
@@ -2676,7 +2678,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2676
2678
|
className: f.overlay,
|
|
2677
2679
|
role: "dialog",
|
|
2678
2680
|
"aria-modal": "true",
|
|
2679
|
-
"aria-label":
|
|
2681
|
+
"aria-label": x?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
2680
2682
|
children: /* @__PURE__ */ r.jsxs(
|
|
2681
2683
|
"div",
|
|
2682
2684
|
{
|
|
@@ -2686,7 +2688,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2686
2688
|
/* @__PURE__ */ r.jsx(
|
|
2687
2689
|
xn,
|
|
2688
2690
|
{
|
|
2689
|
-
title:
|
|
2691
|
+
title: x?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
2690
2692
|
onBack: I
|
|
2691
2693
|
}
|
|
2692
2694
|
),
|
|
@@ -2702,9 +2704,9 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2702
2704
|
{
|
|
2703
2705
|
plan: C,
|
|
2704
2706
|
isSelected: C.id === T,
|
|
2705
|
-
t:
|
|
2707
|
+
t: x,
|
|
2706
2708
|
onSelect: (b) => {
|
|
2707
|
-
const g = d.find((
|
|
2709
|
+
const g = d.find((F) => F.id === b);
|
|
2708
2710
|
g && (N?.trackPlanSelected?.({
|
|
2709
2711
|
planId: g.id,
|
|
2710
2712
|
planName: g.title
|
|
@@ -2726,7 +2728,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2726
2728
|
planName: c.title
|
|
2727
2729
|
}), S(c), o());
|
|
2728
2730
|
},
|
|
2729
|
-
children: c ?
|
|
2731
|
+
children: c ? x?.("planProceedToPayment") ?? c.price + "Proceed to Payment" : "Select a plan"
|
|
2730
2732
|
}
|
|
2731
2733
|
) })
|
|
2732
2734
|
]
|
|
@@ -2751,167 +2753,167 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2751
2753
|
locale: o,
|
|
2752
2754
|
showLanguageSelector: c = !0,
|
|
2753
2755
|
onBack: m,
|
|
2754
|
-
initialValues:
|
|
2756
|
+
initialValues: w,
|
|
2755
2757
|
onProceed: S,
|
|
2756
|
-
onProceedGuidance:
|
|
2758
|
+
onProceedGuidance: x,
|
|
2757
2759
|
proceedHref: N,
|
|
2758
2760
|
originalPriceLabel: P,
|
|
2759
2761
|
discountedPriceLabel: L,
|
|
2760
2762
|
atlasSearchLocalities: d,
|
|
2761
2763
|
analytics: T
|
|
2762
2764
|
}) => {
|
|
2763
|
-
const p =
|
|
2765
|
+
const p = Re(), E = qr(), h = p !== null, I = h ? p.locale : o, C = I ?? E?.locale ?? "en", [b, g] = W(C), F = h ? p.locale : b, v = h ? p.setLocale : g, [O, z] = W(!1), J = H(null), ae = H(I), q = H(
|
|
2764
2766
|
E?.locale
|
|
2765
2767
|
);
|
|
2766
|
-
|
|
2768
|
+
Y(() => {
|
|
2767
2769
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
2768
2770
|
}, []);
|
|
2769
|
-
const
|
|
2770
|
-
|
|
2771
|
-
I &&
|
|
2772
|
-
}, [I, v]),
|
|
2771
|
+
const $ = (k) => En(F, k);
|
|
2772
|
+
Y(() => {
|
|
2773
|
+
I && ae.current !== I && v(I), ae.current = I;
|
|
2774
|
+
}, [I, v]), Y(() => {
|
|
2773
2775
|
if (I) return;
|
|
2774
|
-
const
|
|
2775
|
-
|
|
2776
|
+
const k = E?.locale;
|
|
2777
|
+
k && q.current !== k && v(k), q.current = k;
|
|
2776
2778
|
}, [E?.locale, I, v]);
|
|
2777
|
-
const [
|
|
2779
|
+
const [ie, Z] = W({
|
|
2778
2780
|
...In,
|
|
2779
|
-
...
|
|
2780
|
-
phone:
|
|
2781
|
-
}),
|
|
2782
|
-
|
|
2781
|
+
...w,
|
|
2782
|
+
phone: w?.phone ?? ""
|
|
2783
|
+
}), U = h ? p?.config.isGlobal ?? !0 : !0, [D, B] = W(
|
|
2784
|
+
U ? "+1" : "+91"
|
|
2783
2785
|
);
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
}, [
|
|
2787
|
-
const
|
|
2788
|
-
|
|
2789
|
-
if (!
|
|
2790
|
-
const
|
|
2791
|
-
J.current && !J.current.contains(
|
|
2786
|
+
Y(() => {
|
|
2787
|
+
B(U ? "+1" : "+91");
|
|
2788
|
+
}, [U]);
|
|
2789
|
+
const Q = h ? p.formValues : ie, ee = h ? p.setFormValues : Z, _e = h ? p.goToPage : m, le = h ? p.onProceed : S, V = h ? p.onProceedGuidance : x, ce = h ? p.config.proceedHref : N, re = h ? p.config.originalPriceLabel : P, de = h ? p.config.discountedPriceLabel : L, ne = h ? p.config.showLanguageSelector ?? !0 : c, oe = (h ? p?.config?.analytics : T) ?? T;
|
|
2790
|
+
Y(() => {
|
|
2791
|
+
if (!O) return;
|
|
2792
|
+
const k = (pe) => {
|
|
2793
|
+
J.current && !J.current.contains(pe.target) && z(!1);
|
|
2792
2794
|
};
|
|
2793
|
-
return document.addEventListener("mousedown",
|
|
2794
|
-
}, [
|
|
2795
|
-
const [
|
|
2796
|
-
|
|
2797
|
-
}, []),
|
|
2798
|
-
if (!
|
|
2799
|
-
|
|
2800
|
-
planId:
|
|
2801
|
-
planName:
|
|
2802
|
-
price:
|
|
2803
|
-
currency:
|
|
2795
|
+
return document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
|
|
2796
|
+
}, [O]);
|
|
2797
|
+
const [ue, ge] = W(!1), [K, ye] = W(null), me = H(null), we = Te((k) => {
|
|
2798
|
+
me.current = k, ge(!0);
|
|
2799
|
+
}, []), be = Te(() => {
|
|
2800
|
+
if (!me.current || !K) return;
|
|
2801
|
+
oe?.trackPlanProceedClicked?.({
|
|
2802
|
+
planId: K.id,
|
|
2803
|
+
planName: K.title,
|
|
2804
|
+
price: K.price,
|
|
2805
|
+
currency: U ? "USD" : "INR"
|
|
2804
2806
|
});
|
|
2805
|
-
const
|
|
2806
|
-
|
|
2807
|
-
}, [
|
|
2807
|
+
const k = { ...me.current, _selectedPlan: K };
|
|
2808
|
+
K.id === br && V ? V(k) : le?.(k), ge(!1), me.current = null;
|
|
2809
|
+
}, [K, le, V]), xe = p?.config.imageComponent ?? De, Pe = ne ? /* @__PURE__ */ r.jsxs("div", { className: he.langDropdownWrap, ref: J, children: [
|
|
2808
2810
|
/* @__PURE__ */ r.jsxs(
|
|
2809
2811
|
"button",
|
|
2810
2812
|
{
|
|
2811
2813
|
type: "button",
|
|
2812
|
-
className:
|
|
2814
|
+
className: he.langTrigger,
|
|
2813
2815
|
onClick: () => {
|
|
2814
|
-
|
|
2816
|
+
oe?.trackLanguageClickedFe?.({ language: F }), z((k) => !k);
|
|
2815
2817
|
},
|
|
2816
|
-
"aria-expanded":
|
|
2818
|
+
"aria-expanded": O,
|
|
2817
2819
|
"aria-haspopup": "listbox",
|
|
2818
2820
|
id: "kundli-form-lang",
|
|
2819
|
-
"aria-label":
|
|
2821
|
+
"aria-label": $("language"),
|
|
2820
2822
|
children: [
|
|
2821
2823
|
/* @__PURE__ */ r.jsx(
|
|
2822
2824
|
xe,
|
|
2823
2825
|
{
|
|
2824
2826
|
src: Sn,
|
|
2825
2827
|
alt: "",
|
|
2826
|
-
className:
|
|
2828
|
+
className: he.langIcon,
|
|
2827
2829
|
width: 16,
|
|
2828
2830
|
height: 16,
|
|
2829
2831
|
loading: "eager"
|
|
2830
2832
|
}
|
|
2831
2833
|
),
|
|
2832
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2834
|
+
/* @__PURE__ */ r.jsx("span", { className: he.langLabel, children: lr[F] })
|
|
2833
2835
|
]
|
|
2834
2836
|
}
|
|
2835
2837
|
),
|
|
2836
|
-
|
|
2838
|
+
O && /* @__PURE__ */ r.jsx(
|
|
2837
2839
|
"ul",
|
|
2838
2840
|
{
|
|
2839
|
-
className:
|
|
2841
|
+
className: he.langMenu,
|
|
2840
2842
|
role: "listbox",
|
|
2841
2843
|
"aria-labelledby": "kundli-form-lang",
|
|
2842
|
-
"aria-activedescendant": `kundli-form-lang-option-${
|
|
2843
|
-
children: mr.map((
|
|
2844
|
+
"aria-activedescendant": `kundli-form-lang-option-${F}`,
|
|
2845
|
+
children: mr.map((k) => /* @__PURE__ */ r.jsx(
|
|
2844
2846
|
"li",
|
|
2845
2847
|
{
|
|
2846
|
-
id: `kundli-form-lang-option-${
|
|
2848
|
+
id: `kundli-form-lang-option-${k}`,
|
|
2847
2849
|
role: "option",
|
|
2848
|
-
"aria-selected":
|
|
2849
|
-
className:
|
|
2850
|
+
"aria-selected": k === F,
|
|
2851
|
+
className: he.langOption,
|
|
2850
2852
|
onClick: () => {
|
|
2851
|
-
|
|
2853
|
+
oe?.trackLanguageChangedFe?.({ newLanguage: k }), v(k), z(!1);
|
|
2852
2854
|
},
|
|
2853
|
-
children: lr[
|
|
2855
|
+
children: lr[k]
|
|
2854
2856
|
},
|
|
2855
|
-
|
|
2857
|
+
k
|
|
2856
2858
|
))
|
|
2857
2859
|
}
|
|
2858
2860
|
)
|
|
2859
2861
|
] }) : null;
|
|
2860
|
-
return /* @__PURE__ */ r.jsxs("div", { className: `${
|
|
2862
|
+
return /* @__PURE__ */ r.jsxs("div", { className: `${he.container} ${t}`, children: [
|
|
2861
2863
|
/* @__PURE__ */ r.jsx(
|
|
2862
2864
|
Ra,
|
|
2863
2865
|
{
|
|
2864
|
-
t:
|
|
2866
|
+
t: $,
|
|
2865
2867
|
logoUrl: h ? p.config.logoUrl : void 0,
|
|
2866
|
-
languageSelector:
|
|
2867
|
-
className:
|
|
2868
|
+
languageSelector: Pe,
|
|
2869
|
+
className: he.kundliHeaderNoBorder
|
|
2868
2870
|
}
|
|
2869
2871
|
),
|
|
2870
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2871
|
-
/* @__PURE__ */ r.jsxs("main", { className:
|
|
2872
|
-
/* @__PURE__ */ r.jsx(ut, { t:
|
|
2872
|
+
/* @__PURE__ */ r.jsx("div", { className: he.headerSeparator, "aria-hidden": !0 }),
|
|
2873
|
+
/* @__PURE__ */ r.jsxs("main", { className: he.main, children: [
|
|
2874
|
+
/* @__PURE__ */ r.jsx(ut, { t: $, onBack: _e }),
|
|
2873
2875
|
/* @__PURE__ */ r.jsx(
|
|
2874
2876
|
ha,
|
|
2875
2877
|
{
|
|
2876
|
-
t:
|
|
2877
|
-
values:
|
|
2878
|
-
onChange:
|
|
2878
|
+
t: $,
|
|
2879
|
+
values: Q,
|
|
2880
|
+
onChange: ee,
|
|
2879
2881
|
atlasSearchLocalities: d,
|
|
2880
|
-
phoneIsdCode:
|
|
2881
|
-
onPhoneIsdCodeChange:
|
|
2882
|
+
phoneIsdCode: D,
|
|
2883
|
+
onPhoneIsdCodeChange: B
|
|
2882
2884
|
}
|
|
2883
2885
|
)
|
|
2884
2886
|
] }),
|
|
2885
2887
|
/* @__PURE__ */ r.jsx(
|
|
2886
2888
|
Na,
|
|
2887
2889
|
{
|
|
2888
|
-
t:
|
|
2889
|
-
values:
|
|
2890
|
-
phoneIsdCode:
|
|
2891
|
-
onProceed:
|
|
2892
|
-
onProceedGuidance:
|
|
2893
|
-
href:
|
|
2894
|
-
originalPriceLabel:
|
|
2895
|
-
discountedPriceLabel:
|
|
2896
|
-
analytics:
|
|
2890
|
+
t: $,
|
|
2891
|
+
values: Q,
|
|
2892
|
+
phoneIsdCode: D,
|
|
2893
|
+
onProceed: le,
|
|
2894
|
+
onProceedGuidance: V,
|
|
2895
|
+
href: ce,
|
|
2896
|
+
originalPriceLabel: re,
|
|
2897
|
+
discountedPriceLabel: de,
|
|
2898
|
+
analytics: oe,
|
|
2897
2899
|
showPlanSheet: we,
|
|
2898
|
-
confirmPlan:
|
|
2899
|
-
planSheetOpen:
|
|
2900
|
-
selectedPlan:
|
|
2900
|
+
confirmPlan: be,
|
|
2901
|
+
planSheetOpen: ue,
|
|
2902
|
+
selectedPlan: K
|
|
2901
2903
|
}
|
|
2902
2904
|
),
|
|
2903
2905
|
p?.config.variant === "v1" && /* @__PURE__ */ r.jsx(
|
|
2904
2906
|
Rn,
|
|
2905
2907
|
{
|
|
2906
|
-
isOpen:
|
|
2907
|
-
onClose: () =>
|
|
2908
|
-
selectedPlan:
|
|
2909
|
-
onSelectPlan:
|
|
2908
|
+
isOpen: ue,
|
|
2909
|
+
onClose: () => ge(!1),
|
|
2910
|
+
selectedPlan: K,
|
|
2911
|
+
onSelectPlan: ye,
|
|
2910
2912
|
onProceed: () => {
|
|
2911
|
-
|
|
2913
|
+
be?.();
|
|
2912
2914
|
},
|
|
2913
|
-
t:
|
|
2914
|
-
analytics:
|
|
2915
|
+
t: $,
|
|
2916
|
+
analytics: oe
|
|
2915
2917
|
}
|
|
2916
2918
|
)
|
|
2917
2919
|
] });
|
|
@@ -2962,7 +2964,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2962
2964
|
};
|
|
2963
2965
|
export {
|
|
2964
2966
|
Ia as C,
|
|
2965
|
-
|
|
2967
|
+
De as D,
|
|
2966
2968
|
ut as F,
|
|
2967
2969
|
Dn as I,
|
|
2968
2970
|
Gn as K,
|
|
@@ -2975,7 +2977,7 @@ export {
|
|
|
2975
2977
|
Mn as c,
|
|
2976
2978
|
it as d,
|
|
2977
2979
|
lt as e,
|
|
2978
|
-
|
|
2980
|
+
Re as f,
|
|
2979
2981
|
nt as g,
|
|
2980
2982
|
$n as h,
|
|
2981
2983
|
On as i,
|
|
@@ -2989,4 +2991,4 @@ export {
|
|
|
2989
2991
|
fr as t,
|
|
2990
2992
|
qr as u
|
|
2991
2993
|
};
|
|
2992
|
-
//# sourceMappingURL=analytics-
|
|
2994
|
+
//# sourceMappingURL=analytics-DI8j9UTs.js.map
|