@srimandir/kundli-generator 7.3.0 → 7.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{analytics-CmNHIxia.js → analytics-BswF6AK5.js} +651 -633
- package/dist/analytics-BswF6AK5.js.map +1 -0
- package/dist/{criticalCss-xbBx1kzM.js → criticalCss-g-EUOILR.js} +116 -116
- package/dist/{criticalCss-xbBx1kzM.js.map → criticalCss-g-EUOILR.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/style.css +1 -1
- package/package.json +2 -2
- package/dist/analytics-CmNHIxia.js.map +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Ze, { useContext as er, createContext as _r, useState as U, useRef as $, useEffect as J, useMemo as Xe, useCallback as ye } from "react";
|
|
2
2
|
import { FormSectionHeader as $r, FooterCTAButton as Ur, FooterShell as Gr, CircularMarquee as Kr, footerShellStyles as je, PageHeader as Wr } from "@srimandir/astrology-common";
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var We = { exports: {} }, Fe = {};
|
|
4
|
+
var dr;
|
|
5
5
|
function Hr() {
|
|
6
|
-
if (
|
|
7
|
-
|
|
8
|
-
var t =
|
|
9
|
-
function h(T, v,
|
|
10
|
-
var x,
|
|
11
|
-
|
|
12
|
-
for (x in v) d.call(v, x) && !w.hasOwnProperty(x) && (
|
|
13
|
-
if (T && T.defaultProps) for (x in v = T.defaultProps, v)
|
|
14
|
-
return { $$typeof: o, type: T, key: u, ref:
|
|
6
|
+
if (dr) return Fe;
|
|
7
|
+
dr = 1;
|
|
8
|
+
var t = Ze, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
|
+
function h(T, v, O) {
|
|
10
|
+
var x, E = {}, u = null, I = null;
|
|
11
|
+
O !== void 0 && (u = "" + O), v.key !== void 0 && (u = "" + v.key), v.ref !== void 0 && (I = v.ref);
|
|
12
|
+
for (x in v) d.call(v, x) && !w.hasOwnProperty(x) && (E[x] = v[x]);
|
|
13
|
+
if (T && T.defaultProps) for (x in v = T.defaultProps, v) E[x] === void 0 && (E[x] = v[x]);
|
|
14
|
+
return { $$typeof: o, type: T, key: u, ref: I, props: E, _owner: _.current };
|
|
15
15
|
}
|
|
16
|
-
return
|
|
16
|
+
return Fe.Fragment = c, Fe.jsx = h, Fe.jsxs = h, Fe;
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
var
|
|
18
|
+
var Me = {};
|
|
19
|
+
var ur;
|
|
20
20
|
function Yr() {
|
|
21
|
-
return
|
|
22
|
-
var t =
|
|
21
|
+
return ur || (ur = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
+
var t = Ze, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), d = /* @__PURE__ */ Symbol.for("react.fragment"), _ = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), h = /* @__PURE__ */ Symbol.for("react.provider"), T = /* @__PURE__ */ Symbol.for("react.context"), v = /* @__PURE__ */ Symbol.for("react.forward_ref"), O = /* @__PURE__ */ Symbol.for("react.suspense"), x = /* @__PURE__ */ Symbol.for("react.suspense_list"), E = /* @__PURE__ */ Symbol.for("react.memo"), u = /* @__PURE__ */ Symbol.for("react.lazy"), I = /* @__PURE__ */ Symbol.for("react.offscreen"), b = Symbol.iterator, F = "@@iterator";
|
|
23
23
|
function p(e) {
|
|
24
24
|
if (e === null || typeof e != "object")
|
|
25
25
|
return null;
|
|
@@ -29,38 +29,38 @@ function Yr() {
|
|
|
29
29
|
var m = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
30
30
|
function y(e) {
|
|
31
31
|
{
|
|
32
|
-
for (var i = arguments.length,
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), f = 1; f < i; f++)
|
|
33
|
+
l[f - 1] = arguments[f];
|
|
34
|
+
Q("error", e, l);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Q(e, i, l) {
|
|
38
38
|
{
|
|
39
39
|
var f = m.ReactDebugCurrentFrame, N = f.getStackAddendum();
|
|
40
|
-
N !== "" && (i += "%s",
|
|
41
|
-
var
|
|
42
|
-
return String(
|
|
40
|
+
N !== "" && (i += "%s", l = l.concat([N]));
|
|
41
|
+
var L = l.map(function(A) {
|
|
42
|
+
return String(A);
|
|
43
43
|
});
|
|
44
|
-
|
|
44
|
+
L.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, L);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
var
|
|
47
|
+
var z = !1, W = !1, B = !1, M = !1, P = !1, S;
|
|
48
48
|
S = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
49
|
function Z(e) {
|
|
50
|
-
return !!(typeof e == "string" || typeof e == "function" || e === d || e === w ||
|
|
50
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === w || P || e === _ || e === O || e === x || M || e === I || z || W || B || typeof e == "object" && e !== null && (e.$$typeof === u || e.$$typeof === E || e.$$typeof === h || e.$$typeof === T || e.$$typeof === v || // 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
54
|
e.$$typeof === S || e.getModuleId !== void 0));
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function G(e, i, l) {
|
|
57
57
|
var f = e.displayName;
|
|
58
58
|
if (f)
|
|
59
59
|
return f;
|
|
60
60
|
var N = i.displayName || i.name || "";
|
|
61
|
-
return N !== "" ?
|
|
61
|
+
return N !== "" ? l + "(" + N + ")" : l;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function D(e) {
|
|
64
64
|
return e.displayName || "Context";
|
|
65
65
|
}
|
|
66
66
|
function j(e) {
|
|
@@ -79,7 +79,7 @@ function Yr() {
|
|
|
79
79
|
return "Profiler";
|
|
80
80
|
case _:
|
|
81
81
|
return "StrictMode";
|
|
82
|
-
case
|
|
82
|
+
case O:
|
|
83
83
|
return "Suspense";
|
|
84
84
|
case x:
|
|
85
85
|
return "SuspenseList";
|
|
@@ -88,19 +88,19 @@ function Yr() {
|
|
|
88
88
|
switch (e.$$typeof) {
|
|
89
89
|
case T:
|
|
90
90
|
var i = e;
|
|
91
|
-
return
|
|
91
|
+
return D(i) + ".Consumer";
|
|
92
92
|
case h:
|
|
93
|
-
var
|
|
94
|
-
return
|
|
93
|
+
var l = e;
|
|
94
|
+
return D(l._context) + ".Provider";
|
|
95
95
|
case v:
|
|
96
|
-
return
|
|
97
|
-
case
|
|
96
|
+
return G(e, e.render, "ForwardRef");
|
|
97
|
+
case E:
|
|
98
98
|
var f = e.displayName || null;
|
|
99
99
|
return f !== null ? f : j(e.type) || "Memo";
|
|
100
100
|
case u: {
|
|
101
|
-
var N = e,
|
|
101
|
+
var N = e, L = N._payload, A = N._init;
|
|
102
102
|
try {
|
|
103
|
-
return j(
|
|
103
|
+
return j(A(L));
|
|
104
104
|
} catch {
|
|
105
105
|
return null;
|
|
106
106
|
}
|
|
@@ -108,18 +108,18 @@ function Yr() {
|
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
111
|
-
var H = Object.assign, Y = 0,
|
|
112
|
-
function
|
|
111
|
+
var H = Object.assign, Y = 0, re, ae, ne, ce, de, ee, X;
|
|
112
|
+
function he() {
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
function
|
|
114
|
+
he.__reactDisabledLog = !0;
|
|
115
|
+
function we() {
|
|
116
116
|
{
|
|
117
117
|
if (Y === 0) {
|
|
118
|
-
|
|
118
|
+
re = console.log, ae = console.info, ne = console.warn, ce = console.error, de = console.group, ee = console.groupCollapsed, X = console.groupEnd;
|
|
119
119
|
var e = {
|
|
120
120
|
configurable: !0,
|
|
121
121
|
enumerable: !0,
|
|
122
|
-
value:
|
|
122
|
+
value: he,
|
|
123
123
|
writable: !0
|
|
124
124
|
};
|
|
125
125
|
Object.defineProperties(console, {
|
|
@@ -135,7 +135,7 @@ function Yr() {
|
|
|
135
135
|
Y++;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function ve() {
|
|
139
139
|
{
|
|
140
140
|
if (Y--, Y === 0) {
|
|
141
141
|
var e = {
|
|
@@ -145,224 +145,224 @@ function Yr() {
|
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
147
147
|
log: H({}, e, {
|
|
148
|
-
value:
|
|
148
|
+
value: re
|
|
149
149
|
}),
|
|
150
150
|
info: H({}, e, {
|
|
151
|
-
value:
|
|
151
|
+
value: ae
|
|
152
152
|
}),
|
|
153
153
|
warn: H({}, e, {
|
|
154
|
-
value:
|
|
154
|
+
value: ne
|
|
155
155
|
}),
|
|
156
156
|
error: H({}, e, {
|
|
157
|
-
value:
|
|
157
|
+
value: ce
|
|
158
158
|
}),
|
|
159
159
|
group: H({}, e, {
|
|
160
|
-
value:
|
|
160
|
+
value: de
|
|
161
161
|
}),
|
|
162
162
|
groupCollapsed: H({}, e, {
|
|
163
163
|
value: ee
|
|
164
164
|
}),
|
|
165
165
|
groupEnd: H({}, e, {
|
|
166
|
-
value:
|
|
166
|
+
value: X
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
170
|
Y < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
var
|
|
174
|
-
function
|
|
173
|
+
var oe = m.ReactCurrentDispatcher, ie;
|
|
174
|
+
function pe(e, i, l) {
|
|
175
175
|
{
|
|
176
|
-
if (
|
|
176
|
+
if (ie === void 0)
|
|
177
177
|
try {
|
|
178
178
|
throw Error();
|
|
179
179
|
} catch (N) {
|
|
180
180
|
var f = N.stack.trim().match(/\n( *(at )?)/);
|
|
181
|
-
|
|
181
|
+
ie = f && f[1] || "";
|
|
182
182
|
}
|
|
183
183
|
return `
|
|
184
|
-
` +
|
|
184
|
+
` + ie + e;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var se = !1, q;
|
|
188
188
|
{
|
|
189
189
|
var Te = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
|
-
|
|
190
|
+
q = new Te();
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
if (!e ||
|
|
192
|
+
function ge(e, i) {
|
|
193
|
+
if (!e || se)
|
|
194
194
|
return "";
|
|
195
195
|
{
|
|
196
|
-
var
|
|
197
|
-
if (
|
|
198
|
-
return
|
|
196
|
+
var l = q.get(e);
|
|
197
|
+
if (l !== void 0)
|
|
198
|
+
return l;
|
|
199
199
|
}
|
|
200
200
|
var f;
|
|
201
|
-
|
|
201
|
+
se = !0;
|
|
202
202
|
var N = Error.prepareStackTrace;
|
|
203
203
|
Error.prepareStackTrace = void 0;
|
|
204
|
-
var
|
|
205
|
-
|
|
204
|
+
var L;
|
|
205
|
+
L = oe.current, oe.current = null, we();
|
|
206
206
|
try {
|
|
207
207
|
if (i) {
|
|
208
|
-
var
|
|
208
|
+
var A = function() {
|
|
209
209
|
throw Error();
|
|
210
210
|
};
|
|
211
|
-
if (Object.defineProperty(
|
|
211
|
+
if (Object.defineProperty(A.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
|
-
f =
|
|
217
|
+
Reflect.construct(A, []);
|
|
218
|
+
} catch (le) {
|
|
219
|
+
f = le;
|
|
220
220
|
}
|
|
221
|
-
Reflect.construct(e, [],
|
|
221
|
+
Reflect.construct(e, [], A);
|
|
222
222
|
} else {
|
|
223
223
|
try {
|
|
224
|
-
|
|
225
|
-
} catch (
|
|
226
|
-
f =
|
|
224
|
+
A.call();
|
|
225
|
+
} catch (le) {
|
|
226
|
+
f = le;
|
|
227
227
|
}
|
|
228
|
-
e.call(
|
|
228
|
+
e.call(A.prototype);
|
|
229
229
|
}
|
|
230
230
|
} else {
|
|
231
231
|
try {
|
|
232
232
|
throw Error();
|
|
233
|
-
} catch (
|
|
234
|
-
f =
|
|
233
|
+
} catch (le) {
|
|
234
|
+
f = le;
|
|
235
235
|
}
|
|
236
236
|
e();
|
|
237
237
|
}
|
|
238
|
-
} catch (
|
|
239
|
-
if (
|
|
240
|
-
for (var k =
|
|
241
|
-
`),
|
|
242
|
-
`),
|
|
243
|
-
|
|
244
|
-
for (;
|
|
245
|
-
if (k[
|
|
246
|
-
if (
|
|
238
|
+
} catch (le) {
|
|
239
|
+
if (le && f && typeof le.stack == "string") {
|
|
240
|
+
for (var k = le.stack.split(`
|
|
241
|
+
`), te = f.stack.split(`
|
|
242
|
+
`), K = k.length - 1, V = te.length - 1; K >= 1 && V >= 0 && k[K] !== te[V]; )
|
|
243
|
+
V--;
|
|
244
|
+
for (; K >= 1 && V >= 0; K--, V--)
|
|
245
|
+
if (k[K] !== te[V]) {
|
|
246
|
+
if (K !== 1 || V !== 1)
|
|
247
247
|
do
|
|
248
|
-
if (
|
|
249
|
-
var
|
|
250
|
-
` + k[
|
|
251
|
-
return e.displayName &&
|
|
248
|
+
if (K--, V--, V < 0 || k[K] !== te[V]) {
|
|
249
|
+
var fe = `
|
|
250
|
+
` + k[K].replace(" at new ", " at ");
|
|
251
|
+
return e.displayName && fe.includes("<anonymous>") && (fe = fe.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, fe), fe;
|
|
252
252
|
}
|
|
253
|
-
while (
|
|
253
|
+
while (K >= 1 && V >= 0);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
} finally {
|
|
258
|
-
|
|
258
|
+
se = !1, oe.current = L, ve(), Error.prepareStackTrace = N;
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
return typeof e == "function" &&
|
|
260
|
+
var Re = e ? e.displayName || e.name : "", Ce = Re ? pe(Re) : "";
|
|
261
|
+
return typeof e == "function" && q.set(e, Ce), Ce;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
264
|
-
return
|
|
263
|
+
function ue(e, i, l) {
|
|
264
|
+
return ge(e, !1);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function xe(e) {
|
|
267
267
|
var i = e.prototype;
|
|
268
268
|
return !!(i && i.isReactComponent);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function ke(e, i, l) {
|
|
271
271
|
if (e == null)
|
|
272
272
|
return "";
|
|
273
273
|
if (typeof e == "function")
|
|
274
|
-
return
|
|
274
|
+
return ge(e, xe(e));
|
|
275
275
|
if (typeof e == "string")
|
|
276
|
-
return
|
|
276
|
+
return pe(e);
|
|
277
277
|
switch (e) {
|
|
278
|
-
case
|
|
279
|
-
return
|
|
278
|
+
case O:
|
|
279
|
+
return pe("Suspense");
|
|
280
280
|
case x:
|
|
281
|
-
return
|
|
281
|
+
return pe("SuspenseList");
|
|
282
282
|
}
|
|
283
283
|
if (typeof e == "object")
|
|
284
284
|
switch (e.$$typeof) {
|
|
285
285
|
case v:
|
|
286
|
-
return
|
|
287
|
-
case
|
|
288
|
-
return
|
|
286
|
+
return ue(e.render);
|
|
287
|
+
case E:
|
|
288
|
+
return ke(e.type, i, l);
|
|
289
289
|
case u: {
|
|
290
|
-
var f = e, N = f._payload,
|
|
290
|
+
var f = e, N = f._payload, L = f._init;
|
|
291
291
|
try {
|
|
292
|
-
return
|
|
292
|
+
return ke(L(N), i, l);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
return "";
|
|
298
298
|
}
|
|
299
|
-
var
|
|
299
|
+
var Pe = Object.prototype.hasOwnProperty, C = {}, _e = m.ReactDebugCurrentFrame;
|
|
300
300
|
function Ae(e) {
|
|
301
301
|
if (e) {
|
|
302
|
-
var i = e._owner,
|
|
303
|
-
|
|
302
|
+
var i = e._owner, l = ke(e.type, e._source, i ? i.type : null);
|
|
303
|
+
_e.setExtraStackFrame(l);
|
|
304
304
|
} else
|
|
305
|
-
|
|
305
|
+
_e.setExtraStackFrame(null);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function Ue(e, i, l, f, N) {
|
|
308
308
|
{
|
|
309
|
-
var
|
|
310
|
-
for (var
|
|
311
|
-
if (
|
|
309
|
+
var L = Function.call.bind(Pe);
|
|
310
|
+
for (var A in e)
|
|
311
|
+
if (L(e, A)) {
|
|
312
312
|
var k = void 0;
|
|
313
313
|
try {
|
|
314
|
-
if (typeof e[
|
|
315
|
-
var
|
|
316
|
-
throw
|
|
314
|
+
if (typeof e[A] != "function") {
|
|
315
|
+
var te = Error((f || "React class") + ": " + l + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
316
|
+
throw te.name = "Invariant Violation", te;
|
|
317
317
|
}
|
|
318
|
-
k = e[
|
|
319
|
-
} catch (
|
|
320
|
-
k =
|
|
318
|
+
k = e[A](i, A, f, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
|
+
} catch (K) {
|
|
320
|
+
k = K;
|
|
321
321
|
}
|
|
322
|
-
k && !(k instanceof Error) && (Ae(N), y("%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).", f || "React class",
|
|
322
|
+
k && !(k instanceof Error) && (Ae(N), y("%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).", f || "React class", l, A, typeof k), Ae(null)), k instanceof Error && !(k.message in C) && (C[k.message] = !0, Ae(N), y("Failed %s type: %s", l, k.message), Ae(null));
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
var
|
|
326
|
+
var Ge = Array.isArray;
|
|
327
327
|
function Ne(e) {
|
|
328
|
-
return
|
|
328
|
+
return Ge(e);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function Ke(e) {
|
|
331
331
|
{
|
|
332
|
-
var i = typeof Symbol == "function" && Symbol.toStringTag,
|
|
333
|
-
return
|
|
332
|
+
var i = typeof Symbol == "function" && Symbol.toStringTag, l = i && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
333
|
+
return l;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Le(e) {
|
|
337
337
|
try {
|
|
338
|
-
return
|
|
338
|
+
return Be(e), !1;
|
|
339
339
|
} catch {
|
|
340
340
|
return !0;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Be(e) {
|
|
344
344
|
return "" + e;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
if (
|
|
348
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
346
|
+
function De(e) {
|
|
347
|
+
if (Le(e))
|
|
348
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), Be(e);
|
|
349
349
|
}
|
|
350
|
-
var
|
|
350
|
+
var a = m.ReactCurrentOwner, s = {
|
|
351
351
|
key: !0,
|
|
352
352
|
ref: !0,
|
|
353
353
|
__self: !0,
|
|
354
354
|
__source: !0
|
|
355
|
-
},
|
|
356
|
-
function
|
|
357
|
-
if (
|
|
355
|
+
}, R, me;
|
|
356
|
+
function Oe(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 qe(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;
|
|
@@ -370,41 +370,41 @@ function Yr() {
|
|
|
370
370
|
return e.key !== void 0;
|
|
371
371
|
}
|
|
372
372
|
function Ar(e, i) {
|
|
373
|
-
typeof e.ref == "string" &&
|
|
373
|
+
typeof e.ref == "string" && a.current;
|
|
374
374
|
}
|
|
375
375
|
function Cr(e, i) {
|
|
376
376
|
{
|
|
377
|
-
var
|
|
378
|
-
|
|
377
|
+
var l = function() {
|
|
378
|
+
R || (R = !0, y("%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
|
-
|
|
381
|
-
get:
|
|
380
|
+
l.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
381
|
+
get: l,
|
|
382
382
|
configurable: !0
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
function jr(e, i) {
|
|
387
387
|
{
|
|
388
|
-
var
|
|
389
|
-
|
|
388
|
+
var l = function() {
|
|
389
|
+
me || (me = !0, y("%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
|
-
|
|
392
|
-
get:
|
|
391
|
+
l.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
392
|
+
get: l,
|
|
393
393
|
configurable: !0
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
var Tr = function(e, i,
|
|
397
|
+
var Tr = function(e, i, l, f, N, L, A) {
|
|
398
398
|
var k = {
|
|
399
399
|
// This tag allows us to uniquely identify this as a React Element
|
|
400
400
|
$$typeof: o,
|
|
401
401
|
// Built-in properties that belong on the element
|
|
402
402
|
type: e,
|
|
403
403
|
key: i,
|
|
404
|
-
ref:
|
|
405
|
-
props:
|
|
404
|
+
ref: l,
|
|
405
|
+
props: A,
|
|
406
406
|
// Record the component responsible for creating this element.
|
|
407
|
-
_owner:
|
|
407
|
+
_owner: L
|
|
408
408
|
};
|
|
409
409
|
return k._store = {}, Object.defineProperty(k._store, "validated", {
|
|
410
410
|
configurable: !1,
|
|
@@ -423,41 +423,41 @@ function Yr() {
|
|
|
423
423
|
value: N
|
|
424
424
|
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
|
425
425
|
};
|
|
426
|
-
function Nr(e, i,
|
|
426
|
+
function Nr(e, i, l, f, N) {
|
|
427
427
|
{
|
|
428
|
-
var
|
|
429
|
-
|
|
430
|
-
for (
|
|
431
|
-
|
|
428
|
+
var L, A = {}, k = null, te = null;
|
|
429
|
+
l !== void 0 && (De(l), k = "" + l), qe(i) && (De(i.key), k = "" + i.key), Oe(i) && (te = i.ref, Ar(i, N));
|
|
430
|
+
for (L in i)
|
|
431
|
+
Pe.call(i, L) && !s.hasOwnProperty(L) && (A[L] = i[L]);
|
|
432
432
|
if (e && e.defaultProps) {
|
|
433
|
-
var
|
|
434
|
-
for (
|
|
435
|
-
|
|
433
|
+
var K = e.defaultProps;
|
|
434
|
+
for (L in K)
|
|
435
|
+
A[L] === void 0 && (A[L] = K[L]);
|
|
436
436
|
}
|
|
437
|
-
if (k ||
|
|
438
|
-
var
|
|
439
|
-
k && Cr(
|
|
437
|
+
if (k || te) {
|
|
438
|
+
var V = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
439
|
+
k && Cr(A, V), te && jr(A, V);
|
|
440
440
|
}
|
|
441
|
-
return Tr(e, k,
|
|
441
|
+
return Tr(e, k, te, N, f, a.current, A);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
var
|
|
445
|
-
function
|
|
444
|
+
var Ve = m.ReactCurrentOwner, ar = m.ReactDebugCurrentFrame;
|
|
445
|
+
function Se(e) {
|
|
446
446
|
if (e) {
|
|
447
|
-
var i = e._owner,
|
|
448
|
-
|
|
447
|
+
var i = e._owner, l = ke(e.type, e._source, i ? i.type : null);
|
|
448
|
+
ar.setExtraStackFrame(l);
|
|
449
449
|
} else
|
|
450
|
-
|
|
450
|
+
ar.setExtraStackFrame(null);
|
|
451
451
|
}
|
|
452
|
-
var
|
|
453
|
-
|
|
454
|
-
function
|
|
452
|
+
var ze;
|
|
453
|
+
ze = !1;
|
|
454
|
+
function Je(e) {
|
|
455
455
|
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function nr() {
|
|
458
458
|
{
|
|
459
|
-
if (
|
|
460
|
-
var e = j(
|
|
459
|
+
if (Ve.current) {
|
|
460
|
+
var e = j(Ve.current.type);
|
|
461
461
|
if (e)
|
|
462
462
|
return `
|
|
463
463
|
|
|
@@ -469,48 +469,48 @@ Check the render method of \`` + e + "`.";
|
|
|
469
469
|
function Sr(e) {
|
|
470
470
|
return "";
|
|
471
471
|
}
|
|
472
|
-
var
|
|
472
|
+
var or = {};
|
|
473
473
|
function Rr(e) {
|
|
474
474
|
{
|
|
475
|
-
var i =
|
|
475
|
+
var i = nr();
|
|
476
476
|
if (!i) {
|
|
477
|
-
var
|
|
478
|
-
|
|
477
|
+
var l = typeof e == "string" ? e : e.displayName || e.name;
|
|
478
|
+
l && (i = `
|
|
479
479
|
|
|
480
|
-
Check the top-level render call using <` +
|
|
480
|
+
Check the top-level render call using <` + l + ">.");
|
|
481
481
|
}
|
|
482
482
|
return i;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function ir(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
|
|
491
|
-
if (
|
|
490
|
+
var l = Rr(i);
|
|
491
|
+
if (or[l])
|
|
492
492
|
return;
|
|
493
|
-
|
|
493
|
+
or[l] = !0;
|
|
494
494
|
var f = "";
|
|
495
|
-
e && e._owner && e._owner !==
|
|
495
|
+
e && e._owner && e._owner !== Ve.current && (f = " It was passed a child from " + j(e._owner.type) + "."), Se(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, f), Se(null);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function sr(e, i) {
|
|
499
499
|
{
|
|
500
500
|
if (typeof e != "object")
|
|
501
501
|
return;
|
|
502
502
|
if (Ne(e))
|
|
503
|
-
for (var
|
|
504
|
-
var f = e[
|
|
505
|
-
|
|
503
|
+
for (var l = 0; l < e.length; l++) {
|
|
504
|
+
var f = e[l];
|
|
505
|
+
Je(f) && ir(f, i);
|
|
506
506
|
}
|
|
507
|
-
else if (
|
|
507
|
+
else if (Je(e))
|
|
508
508
|
e._store && (e._store.validated = !0);
|
|
509
509
|
else if (e) {
|
|
510
510
|
var N = p(e);
|
|
511
511
|
if (typeof N == "function" && N !== e.entries)
|
|
512
|
-
for (var
|
|
513
|
-
|
|
512
|
+
for (var L = N.call(e), A; !(A = L.next()).done; )
|
|
513
|
+
Je(A.value) && ir(A.value, i);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
@@ -519,20 +519,20 @@ Check the top-level render call using <` + s + ">.");
|
|
|
519
519
|
var i = e.type;
|
|
520
520
|
if (i == null || typeof i == "string")
|
|
521
521
|
return;
|
|
522
|
-
var
|
|
522
|
+
var l;
|
|
523
523
|
if (typeof i == "function")
|
|
524
|
-
|
|
524
|
+
l = i.propTypes;
|
|
525
525
|
else if (typeof i == "object" && (i.$$typeof === v || // Note: Memo only checks outer props here.
|
|
526
526
|
// Inner props are checked in the reconciler.
|
|
527
|
-
i.$$typeof ===
|
|
528
|
-
|
|
527
|
+
i.$$typeof === E))
|
|
528
|
+
l = i.propTypes;
|
|
529
529
|
else
|
|
530
530
|
return;
|
|
531
|
-
if (
|
|
531
|
+
if (l) {
|
|
532
532
|
var f = j(i);
|
|
533
|
-
|
|
534
|
-
} else if (i.PropTypes !== void 0 && !
|
|
535
|
-
|
|
533
|
+
Ue(l, e.props, "prop", f, e);
|
|
534
|
+
} else if (i.PropTypes !== void 0 && !ze) {
|
|
535
|
+
ze = !0;
|
|
536
536
|
var N = j(i);
|
|
537
537
|
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
|
|
538
538
|
}
|
|
@@ -541,80 +541,91 @@ Check the top-level render call using <` + s + ">.");
|
|
|
541
541
|
}
|
|
542
542
|
function Ir(e) {
|
|
543
543
|
{
|
|
544
|
-
for (var i = Object.keys(e.props),
|
|
545
|
-
var f = i[
|
|
544
|
+
for (var i = Object.keys(e.props), l = 0; l < i.length; l++) {
|
|
545
|
+
var f = i[l];
|
|
546
546
|
if (f !== "children" && f !== "key") {
|
|
547
|
-
|
|
547
|
+
Se(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), Se(null);
|
|
548
548
|
break;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
e.ref !== null && (
|
|
551
|
+
e.ref !== null && (Se(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), Se(null));
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
var
|
|
555
|
-
function
|
|
554
|
+
var lr = {};
|
|
555
|
+
function cr(e, i, l, f, N, L) {
|
|
556
556
|
{
|
|
557
|
-
var
|
|
558
|
-
if (!
|
|
557
|
+
var A = Z(e);
|
|
558
|
+
if (!A) {
|
|
559
559
|
var k = "";
|
|
560
560
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (k += " 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
|
-
|
|
563
|
-
var
|
|
564
|
-
e === null ?
|
|
561
|
+
var te = Sr();
|
|
562
|
+
te ? k += te : k += nr();
|
|
563
|
+
var K;
|
|
564
|
+
e === null ? K = "null" : Ne(e) ? K = "array" : e !== void 0 && e.$$typeof === o ? (K = "<" + (j(e.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : K = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, k);
|
|
565
565
|
}
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
return
|
|
569
|
-
if (
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
566
|
+
var V = Nr(e, i, l, N, L);
|
|
567
|
+
if (V == null)
|
|
568
|
+
return V;
|
|
569
|
+
if (A) {
|
|
570
|
+
var fe = i.children;
|
|
571
|
+
if (fe !== void 0)
|
|
572
572
|
if (f)
|
|
573
|
-
if (Ne(
|
|
574
|
-
for (var
|
|
575
|
-
|
|
576
|
-
Object.freeze && Object.freeze(
|
|
573
|
+
if (Ne(fe)) {
|
|
574
|
+
for (var Re = 0; Re < fe.length; Re++)
|
|
575
|
+
sr(fe[Re], e);
|
|
576
|
+
Object.freeze && Object.freeze(fe);
|
|
577
577
|
} else
|
|
578
578
|
y("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
|
+
sr(fe, e);
|
|
581
581
|
}
|
|
582
|
-
if (
|
|
583
|
-
var Ce = j(e),
|
|
582
|
+
if (Pe.call(i, "key")) {
|
|
583
|
+
var Ce = j(e), le = Object.keys(i).filter(function(Mr) {
|
|
584
584
|
return Mr !== "key";
|
|
585
|
-
}),
|
|
586
|
-
if (!
|
|
587
|
-
var Fr =
|
|
585
|
+
}), Qe = le.length > 0 ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
|
+
if (!lr[Ce + Qe]) {
|
|
587
|
+
var Fr = le.length > 0 ? "{" + le.join(": ..., ") + ": ...}" : "{}";
|
|
588
588
|
y(`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} />`,
|
|
593
|
+
<%s key={someKey} {...props} />`, Qe, Ce, Fr, Ce), lr[Ce + Qe] = !0;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
return e === d ? Ir(
|
|
596
|
+
return e === d ? Ir(V) : Er(V), V;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
function Lr(e, i,
|
|
600
|
-
return
|
|
599
|
+
function Lr(e, i, l) {
|
|
600
|
+
return cr(e, i, l, !0);
|
|
601
601
|
}
|
|
602
|
-
function Br(e, i,
|
|
603
|
-
return
|
|
602
|
+
function Br(e, i, l) {
|
|
603
|
+
return cr(e, i, l, !1);
|
|
604
604
|
}
|
|
605
605
|
var Dr = Br, Or = Lr;
|
|
606
|
-
|
|
607
|
-
})()),
|
|
606
|
+
Me.Fragment = d, Me.jsx = Dr, Me.jsxs = Or;
|
|
607
|
+
})()), Me;
|
|
608
608
|
}
|
|
609
|
-
var
|
|
609
|
+
var mr;
|
|
610
610
|
function qr() {
|
|
611
|
-
return
|
|
611
|
+
return mr || (mr = 1, process.env.NODE_ENV === "production" ? We.exports = Hr() : We.exports = Yr()), We.exports;
|
|
612
612
|
}
|
|
613
613
|
var r = qr();
|
|
614
|
-
const
|
|
614
|
+
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", be = {
|
|
615
|
+
container: Vr,
|
|
616
|
+
main: zr,
|
|
617
|
+
kundliHeaderNoBorder: Jr,
|
|
618
|
+
headerSeparator: Qr,
|
|
619
|
+
langDropdownWrap: Xr,
|
|
620
|
+
langTrigger: Zr,
|
|
621
|
+
langIcon: et,
|
|
622
|
+
langLabel: rt,
|
|
623
|
+
langMenu: tt,
|
|
624
|
+
langOption: at
|
|
625
|
+
}, br = ["en", "hi"], fr = {
|
|
615
626
|
en: "English",
|
|
616
627
|
hi: "हिन्दी"
|
|
617
|
-
},
|
|
628
|
+
}, yr = {
|
|
618
629
|
en: {
|
|
619
630
|
kundli: "Kundli",
|
|
620
631
|
birthChart: "Birth Chart",
|
|
@@ -1046,30 +1057,19 @@ const gr = ["en", "hi"], ur = {
|
|
|
1046
1057
|
astrologyGuidance: "ज्योतिष से सलाह",
|
|
1047
1058
|
selectPackage: "पैकेज चुनें"
|
|
1048
1059
|
}
|
|
1049
|
-
},
|
|
1060
|
+
}, vr = _r(null), Mn = ({
|
|
1050
1061
|
locale: t,
|
|
1051
1062
|
children: o
|
|
1052
1063
|
}) => {
|
|
1053
|
-
const d = { locale: t, t: (_) =>
|
|
1054
|
-
return /* @__PURE__ */ r.jsx(
|
|
1064
|
+
const d = { locale: t, t: (_) => yr[t]?.[_] ?? _ };
|
|
1065
|
+
return /* @__PURE__ */ r.jsx(vr.Provider, { value: d, children: o });
|
|
1055
1066
|
};
|
|
1056
|
-
function
|
|
1057
|
-
return
|
|
1067
|
+
function nt() {
|
|
1068
|
+
return er(vr);
|
|
1058
1069
|
}
|
|
1059
|
-
const
|
|
1060
|
-
container: zr,
|
|
1061
|
-
main: Jr,
|
|
1062
|
-
kundliHeaderNoBorder: Qr,
|
|
1063
|
-
headerSeparator: Xr,
|
|
1064
|
-
langDropdownWrap: Zr,
|
|
1065
|
-
langTrigger: et,
|
|
1066
|
-
langIcon: rt,
|
|
1067
|
-
langLabel: tt,
|
|
1068
|
-
langMenu: at,
|
|
1069
|
-
langOption: nt
|
|
1070
|
-
}, He = (t) => {
|
|
1070
|
+
const Ye = (t) => {
|
|
1071
1071
|
const { priority: o, fetchPriority: c, width: d, height: _, ...w } = t;
|
|
1072
|
-
return
|
|
1072
|
+
return Ze.createElement("img", {
|
|
1073
1073
|
...w,
|
|
1074
1074
|
width: d ?? 1,
|
|
1075
1075
|
height: _ ?? 1,
|
|
@@ -1111,15 +1111,15 @@ function Un() {
|
|
|
1111
1111
|
return !1;
|
|
1112
1112
|
}
|
|
1113
1113
|
}
|
|
1114
|
-
const
|
|
1114
|
+
const kr = "kundli_language";
|
|
1115
1115
|
function st() {
|
|
1116
|
-
const t = ot(
|
|
1117
|
-
return t &&
|
|
1116
|
+
const t = ot(kr);
|
|
1117
|
+
return t && br.includes(t) ? t : null;
|
|
1118
1118
|
}
|
|
1119
1119
|
function lt(t) {
|
|
1120
|
-
it(
|
|
1120
|
+
it(kr, t);
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1122
|
+
const rr = _r(null), ct = {
|
|
1123
1123
|
fullName: "",
|
|
1124
1124
|
phone: "",
|
|
1125
1125
|
gender: "",
|
|
@@ -1139,43 +1139,43 @@ const Ze = hr(null), ct = {
|
|
|
1139
1139
|
googleMapsApiKey: h,
|
|
1140
1140
|
atlasSearchLocalities: T,
|
|
1141
1141
|
googleMapsAutocompleteEnabled: v,
|
|
1142
|
-
logoUrl:
|
|
1142
|
+
logoUrl: O,
|
|
1143
1143
|
reportImageUrl: x,
|
|
1144
|
-
reportImagePriority:
|
|
1144
|
+
reportImagePriority: E,
|
|
1145
1145
|
backgroundImagePriority: u,
|
|
1146
|
-
universityLogoUrls:
|
|
1146
|
+
universityLogoUrls: I,
|
|
1147
1147
|
sampleReportHref: b,
|
|
1148
1148
|
onViewSampleReport: F,
|
|
1149
1149
|
ctaHref: p,
|
|
1150
1150
|
onCtaClick: m,
|
|
1151
1151
|
onBack: y,
|
|
1152
|
-
readMoreReviewsHref:
|
|
1153
|
-
onProceed:
|
|
1152
|
+
readMoreReviewsHref: Q,
|
|
1153
|
+
onProceed: z,
|
|
1154
1154
|
proceedHref: W,
|
|
1155
|
-
originalPriceLabel:
|
|
1155
|
+
originalPriceLabel: B,
|
|
1156
1156
|
discountedPriceLabel: M,
|
|
1157
|
-
discountPillLabel:
|
|
1157
|
+
discountPillLabel: P,
|
|
1158
1158
|
analytics: S,
|
|
1159
1159
|
onProceedGuidance: Z,
|
|
1160
|
-
onLocaleChange:
|
|
1161
|
-
imageComponent:
|
|
1160
|
+
onLocaleChange: G,
|
|
1161
|
+
imageComponent: D = Ye,
|
|
1162
1162
|
resolvedUtmBannerImageUrl: j,
|
|
1163
1163
|
children: H
|
|
1164
1164
|
}) => {
|
|
1165
|
-
const [Y,
|
|
1166
|
-
|
|
1167
|
-
const
|
|
1168
|
-
|
|
1169
|
-
}, []),
|
|
1170
|
-
lt(
|
|
1171
|
-
}, [
|
|
1165
|
+
const [Y, re] = U("landing"), [ae, ne] = U(t ?? "en"), [ce, de] = U(ct), ee = $(!0);
|
|
1166
|
+
J(() => {
|
|
1167
|
+
const oe = st();
|
|
1168
|
+
oe && ne(oe);
|
|
1169
|
+
}, []), J(() => {
|
|
1170
|
+
lt(ae);
|
|
1171
|
+
}, [ae]), J(() => {
|
|
1172
1172
|
if (ee.current) {
|
|
1173
1173
|
ee.current = !1;
|
|
1174
1174
|
return;
|
|
1175
1175
|
}
|
|
1176
|
-
|
|
1177
|
-
}, [
|
|
1178
|
-
const
|
|
1176
|
+
G?.(ae);
|
|
1177
|
+
}, [ae, G]);
|
|
1178
|
+
const X = Xe(
|
|
1179
1179
|
() => ({
|
|
1180
1180
|
locale: t,
|
|
1181
1181
|
showLanguageSelector: o,
|
|
@@ -1186,26 +1186,26 @@ const Ze = hr(null), ct = {
|
|
|
1186
1186
|
googleMapsApiKey: h,
|
|
1187
1187
|
atlasSearchLocalities: T,
|
|
1188
1188
|
googleMapsAutocompleteEnabled: v,
|
|
1189
|
-
logoUrl:
|
|
1189
|
+
logoUrl: O,
|
|
1190
1190
|
reportImageUrl: x,
|
|
1191
|
-
reportImagePriority:
|
|
1191
|
+
reportImagePriority: E,
|
|
1192
1192
|
backgroundImagePriority: u,
|
|
1193
|
-
universityLogoUrls:
|
|
1193
|
+
universityLogoUrls: I,
|
|
1194
1194
|
sampleReportHref: b,
|
|
1195
1195
|
onViewSampleReport: F,
|
|
1196
1196
|
ctaHref: p,
|
|
1197
1197
|
onCtaClick: m,
|
|
1198
1198
|
onBack: y,
|
|
1199
|
-
readMoreReviewsHref:
|
|
1200
|
-
onProceed:
|
|
1199
|
+
readMoreReviewsHref: Q,
|
|
1200
|
+
onProceed: z,
|
|
1201
1201
|
proceedHref: W,
|
|
1202
|
-
originalPriceLabel:
|
|
1202
|
+
originalPriceLabel: B,
|
|
1203
1203
|
discountedPriceLabel: M,
|
|
1204
|
-
discountPillLabel:
|
|
1204
|
+
discountPillLabel: P,
|
|
1205
1205
|
analytics: S,
|
|
1206
1206
|
onProceedGuidance: Z,
|
|
1207
|
-
onLocaleChange:
|
|
1208
|
-
imageComponent:
|
|
1207
|
+
onLocaleChange: G,
|
|
1208
|
+
imageComponent: D,
|
|
1209
1209
|
resolvedUtmBannerImageUrl: j
|
|
1210
1210
|
}),
|
|
1211
1211
|
[
|
|
@@ -1218,59 +1218,59 @@ const Ze = hr(null), ct = {
|
|
|
1218
1218
|
h,
|
|
1219
1219
|
T,
|
|
1220
1220
|
v,
|
|
1221
|
-
|
|
1221
|
+
O,
|
|
1222
1222
|
x,
|
|
1223
|
-
R,
|
|
1224
|
-
u,
|
|
1225
1223
|
E,
|
|
1224
|
+
u,
|
|
1225
|
+
I,
|
|
1226
1226
|
b,
|
|
1227
1227
|
F,
|
|
1228
1228
|
p,
|
|
1229
1229
|
m,
|
|
1230
1230
|
y,
|
|
1231
|
-
|
|
1232
|
-
|
|
1231
|
+
Q,
|
|
1232
|
+
z,
|
|
1233
1233
|
W,
|
|
1234
|
-
|
|
1234
|
+
B,
|
|
1235
1235
|
M,
|
|
1236
|
-
|
|
1236
|
+
P,
|
|
1237
1237
|
S,
|
|
1238
1238
|
Z,
|
|
1239
|
-
|
|
1240
|
-
|
|
1239
|
+
G,
|
|
1240
|
+
D,
|
|
1241
1241
|
j
|
|
1242
1242
|
]
|
|
1243
|
-
),
|
|
1244
|
-
|
|
1245
|
-
}, [
|
|
1246
|
-
|
|
1247
|
-
}, [
|
|
1243
|
+
), he = ye(() => {
|
|
1244
|
+
re("form");
|
|
1245
|
+
}, [X.analytics]), we = ye(() => {
|
|
1246
|
+
re("landing"), X.onBack?.();
|
|
1247
|
+
}, [X.onBack]), ve = Xe(
|
|
1248
1248
|
() => ({
|
|
1249
1249
|
view: Y,
|
|
1250
|
-
locale:
|
|
1251
|
-
setLocale:
|
|
1252
|
-
config:
|
|
1253
|
-
formValues:
|
|
1254
|
-
setFormValues:
|
|
1255
|
-
goToForm:
|
|
1256
|
-
goToPage:
|
|
1257
|
-
onProceed:
|
|
1258
|
-
onProceedGuidance:
|
|
1250
|
+
locale: ae,
|
|
1251
|
+
setLocale: ne,
|
|
1252
|
+
config: X,
|
|
1253
|
+
formValues: ce,
|
|
1254
|
+
setFormValues: de,
|
|
1255
|
+
goToForm: he,
|
|
1256
|
+
goToPage: we,
|
|
1257
|
+
onProceed: X.onProceed,
|
|
1258
|
+
onProceedGuidance: X.onProceedGuidance
|
|
1259
1259
|
}),
|
|
1260
|
-
[Y,
|
|
1260
|
+
[Y, ae, X, ce, he, we]
|
|
1261
1261
|
);
|
|
1262
|
-
return /* @__PURE__ */ r.jsx(
|
|
1262
|
+
return /* @__PURE__ */ r.jsx(rr.Provider, { value: ve, children: H });
|
|
1263
1263
|
};
|
|
1264
|
-
function
|
|
1265
|
-
return
|
|
1264
|
+
function Ie() {
|
|
1265
|
+
return er(rr);
|
|
1266
1266
|
}
|
|
1267
1267
|
function Kn() {
|
|
1268
|
-
const t =
|
|
1268
|
+
const t = er(rr);
|
|
1269
1269
|
if (!t)
|
|
1270
1270
|
throw new Error("useKundliContextOrThrow must be used within KundliProvider");
|
|
1271
1271
|
return t;
|
|
1272
1272
|
}
|
|
1273
|
-
const dt = "_header_19172_1", ut = "_centered_19172_8",
|
|
1273
|
+
const dt = "_header_19172_1", ut = "_centered_19172_8", pr = {
|
|
1274
1274
|
header: dt,
|
|
1275
1275
|
centered: ut
|
|
1276
1276
|
}, mt = ({
|
|
@@ -1285,7 +1285,7 @@ const dt = "_header_19172_1", ut = "_centered_19172_8", mr = {
|
|
|
1285
1285
|
subtitle: t("formSubtitle"),
|
|
1286
1286
|
onBack: o,
|
|
1287
1287
|
backAriaLabel: t("back"),
|
|
1288
|
-
className: `${
|
|
1288
|
+
className: `${pr.header} ${d === "center" ? pr.centered : ""} ${c}`
|
|
1289
1289
|
}
|
|
1290
1290
|
), ft = "_wrap_119w3_1", pt = "_card_119w3_5", ht = "_cardInner_119w3_12", gt = "_field_119w3_44", _t = "_labelRow_119w3_48", bt = "_label_119w3_48", yt = "_req_119w3_57", vt = "_help_119w3_61", kt = "_choiceRow_119w3_68", wt = "_choiceBtn_119w3_74", xt = "_choiceBtnActive_119w3_99", Pt = "_infoBtn_119w3_105", At = "_infoImg_119w3_122", Ct = "_infoWrap_119w3_128", jt = "_tooltip_119w3_134", Tt = "_tooltipArrow_119w3_150", Nt = "_inputWrap_119w3_161", St = "_isdWrap_119w3_165", Rt = "_phoneInputGroup_119w3_169", Et = "_isdSelectWrap_119w3_178", It = "_isdSelectTrigger_119w3_197", Lt = "_isdDropdown_119w3_214", Bt = "_isdSearchWrap_119w3_229", Dt = "_isdSearchInput_119w3_237", Ot = "_isdOption_119w3_255", Ft = "_isdOptionActive_119w3_275", Mt = "_isdCountryName_119w3_281", $t = "_isdCountryCode_119w3_288", Ut = "_isdNoResult_119w3_295", Gt = "_suggestions_119w3_302", Kt = "_suggestionItem_119w3_315", Wt = "_suggestionMain_119w3_333", Ht = "_suggestionSecondary_119w3_339", Yt = "_suggestionsHint_119w3_344", 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", sa = "_iconImg_119w3_544", la = "_checkboxRow_119w3_550", ca = "_checkbox_119w3_550", da = "_checkboxText_119w3_588", n = {
|
|
1291
1291
|
wrap: ft,
|
|
@@ -1341,8 +1341,8 @@ const dt = "_header_19172_1", ut = "_centered_19172_8", mr = {
|
|
|
1341
1341
|
checkbox: ca,
|
|
1342
1342
|
checkboxText: da
|
|
1343
1343
|
};
|
|
1344
|
-
let
|
|
1345
|
-
const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() :
|
|
1344
|
+
let He = null;
|
|
1345
|
+
const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : He || (He = new Promise((c, d) => {
|
|
1346
1346
|
const _ = document.querySelector(
|
|
1347
1347
|
'script[data-google-maps-places="true"]'
|
|
1348
1348
|
);
|
|
@@ -1372,47 +1372,47 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1372
1372
|
};
|
|
1373
1373
|
v();
|
|
1374
1374
|
}, w.onerror = () => d(new Error("Failed to load Google Maps API")), document.head.appendChild(w);
|
|
1375
|
-
}),
|
|
1376
|
-
const { apiKey: o, language: c = "en", restrictCountry: d, deferLoad: _ = !1 } = t, [w, h] =
|
|
1375
|
+
}), He), ma = (t) => {
|
|
1376
|
+
const { apiKey: o, language: c = "en", restrictCountry: d, deferLoad: _ = !1 } = t, [w, h] = U(!1), [T, v] = U([]), [O, x] = U(!1), [E, u] = U(null), [I, b] = U(!_), F = $(null), p = $(null), m = $(null), y = ye(() => {
|
|
1377
1377
|
_ && b(!0);
|
|
1378
1378
|
}, [_]);
|
|
1379
|
-
|
|
1380
|
-
if (!o || !
|
|
1379
|
+
J(() => {
|
|
1380
|
+
if (!o || !I) {
|
|
1381
1381
|
h(!1), u(null);
|
|
1382
1382
|
return;
|
|
1383
1383
|
}
|
|
1384
1384
|
ua(o, c).then(() => {
|
|
1385
1385
|
F.current = new google.maps.places.AutocompleteService();
|
|
1386
|
-
const
|
|
1387
|
-
p.current = new google.maps.places.PlacesService(
|
|
1388
|
-
}).catch((
|
|
1389
|
-
h(!1), u(
|
|
1386
|
+
const B = document.createElement("div");
|
|
1387
|
+
p.current = new google.maps.places.PlacesService(B), m.current = new google.maps.places.AutocompleteSessionToken(), h(!0), u(null);
|
|
1388
|
+
}).catch((B) => {
|
|
1389
|
+
h(!1), u(B?.message || "Failed to load location service");
|
|
1390
1390
|
});
|
|
1391
|
-
}, [o, c,
|
|
1392
|
-
const
|
|
1393
|
-
async (
|
|
1394
|
-
if (!
|
|
1391
|
+
}, [o, c, I]);
|
|
1392
|
+
const Q = ye(
|
|
1393
|
+
async (B) => {
|
|
1394
|
+
if (!B || B.length < 2 || !F.current) {
|
|
1395
1395
|
v([]);
|
|
1396
1396
|
return;
|
|
1397
1397
|
}
|
|
1398
1398
|
x(!0);
|
|
1399
1399
|
try {
|
|
1400
1400
|
const M = {
|
|
1401
|
-
input:
|
|
1401
|
+
input: B,
|
|
1402
1402
|
types: ["(cities)"],
|
|
1403
1403
|
sessionToken: m.current ?? void 0
|
|
1404
1404
|
};
|
|
1405
1405
|
d && (M.componentRestrictions = { country: d });
|
|
1406
|
-
const
|
|
1406
|
+
const P = await new Promise((S, Z) => {
|
|
1407
1407
|
F.current.getPlacePredictions(
|
|
1408
1408
|
M,
|
|
1409
|
-
(
|
|
1410
|
-
|
|
1409
|
+
(G, D) => {
|
|
1410
|
+
D === google.maps.places.PlacesServiceStatus.OK && G ? S(G) : D === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? S([]) : Z(new Error(`Places API error: ${D}`));
|
|
1411
1411
|
}
|
|
1412
1412
|
);
|
|
1413
1413
|
});
|
|
1414
1414
|
v(
|
|
1415
|
-
|
|
1415
|
+
P.map((S) => ({
|
|
1416
1416
|
place_id: S.place_id,
|
|
1417
1417
|
description: S.description,
|
|
1418
1418
|
structured_formatting: {
|
|
@@ -1428,55 +1428,55 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1428
1428
|
}
|
|
1429
1429
|
},
|
|
1430
1430
|
[d]
|
|
1431
|
-
),
|
|
1432
|
-
async (
|
|
1431
|
+
), z = ye(
|
|
1432
|
+
async (B) => {
|
|
1433
1433
|
if (!p.current) return null;
|
|
1434
1434
|
try {
|
|
1435
1435
|
const M = await new Promise(
|
|
1436
1436
|
(j, H) => {
|
|
1437
1437
|
p.current.getDetails(
|
|
1438
1438
|
{
|
|
1439
|
-
placeId:
|
|
1439
|
+
placeId: B,
|
|
1440
1440
|
fields: ["geometry", "address_components", "formatted_address"],
|
|
1441
1441
|
sessionToken: m.current ?? void 0
|
|
1442
1442
|
},
|
|
1443
|
-
(Y,
|
|
1444
|
-
|
|
1443
|
+
(Y, re) => {
|
|
1444
|
+
re === google.maps.places.PlacesServiceStatus.OK && Y ? j(Y) : H(new Error(`Place details error: ${re}`));
|
|
1445
1445
|
}
|
|
1446
1446
|
);
|
|
1447
1447
|
}
|
|
1448
1448
|
);
|
|
1449
1449
|
m.current = new google.maps.places.AutocompleteSessionToken();
|
|
1450
|
-
const
|
|
1451
|
-
let Z = "",
|
|
1450
|
+
const P = M.geometry?.location?.lat() || 0, S = M.geometry?.location?.lng() || 0;
|
|
1451
|
+
let Z = "", G = "", D = "";
|
|
1452
1452
|
return M.address_components?.forEach((j) => {
|
|
1453
|
-
j.types.includes("locality") && (Z = j.long_name), j.types.includes("administrative_area_level_1") && (
|
|
1453
|
+
j.types.includes("locality") && (Z = j.long_name), j.types.includes("administrative_area_level_1") && (G = j.long_name), j.types.includes("country") && (D = j.long_name);
|
|
1454
1454
|
}), {
|
|
1455
1455
|
display_name: M.formatted_address || "",
|
|
1456
|
-
lat:
|
|
1456
|
+
lat: P,
|
|
1457
1457
|
lng: S,
|
|
1458
1458
|
city: Z,
|
|
1459
|
-
state:
|
|
1460
|
-
country:
|
|
1459
|
+
state: G,
|
|
1460
|
+
country: D
|
|
1461
1461
|
};
|
|
1462
1462
|
} catch {
|
|
1463
1463
|
return null;
|
|
1464
1464
|
}
|
|
1465
1465
|
},
|
|
1466
1466
|
[]
|
|
1467
|
-
), W =
|
|
1467
|
+
), W = ye(() => v([]), []);
|
|
1468
1468
|
return {
|
|
1469
1469
|
isLoaded: w,
|
|
1470
1470
|
predictions: T,
|
|
1471
|
-
isSearching:
|
|
1472
|
-
loadError:
|
|
1473
|
-
searchPlaces:
|
|
1474
|
-
getPlaceDetails:
|
|
1471
|
+
isSearching: O,
|
|
1472
|
+
loadError: E,
|
|
1473
|
+
searchPlaces: Q,
|
|
1474
|
+
getPlaceDetails: z,
|
|
1475
1475
|
clearPredictions: W,
|
|
1476
1476
|
triggerLoad: y
|
|
1477
1477
|
// Call this to start loading Google Maps when deferred
|
|
1478
1478
|
};
|
|
1479
|
-
},
|
|
1479
|
+
}, hr = (t) => typeof t == "number" && Number.isFinite(t), fa = (t) => {
|
|
1480
1480
|
const o = typeof t?.limit == "number" && t.limit > 0 ? Math.min(t.limit, 20) : 8, c = typeof t?.offset == "number" && t.offset >= 0 ? t.offset : 0;
|
|
1481
1481
|
return {
|
|
1482
1482
|
limit: o,
|
|
@@ -1484,23 +1484,23 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1484
1484
|
restrictCountry: t?.restrictCountry
|
|
1485
1485
|
};
|
|
1486
1486
|
}, pa = (t) => {
|
|
1487
|
-
const { searchLocalities: o, restrictCountry: c } = t, [d, _] =
|
|
1488
|
-
|
|
1487
|
+
const { searchLocalities: o, restrictCountry: c } = t, [d, _] = U([]), [w, h] = U(!1), [T, v] = U(null), O = $(0);
|
|
1488
|
+
J(() => {
|
|
1489
1489
|
v(null);
|
|
1490
1490
|
}, [o]);
|
|
1491
|
-
const x =
|
|
1491
|
+
const x = ye(
|
|
1492
1492
|
async (u) => {
|
|
1493
1493
|
if (!u || u.length < 2 || !o) {
|
|
1494
1494
|
_([]);
|
|
1495
1495
|
return;
|
|
1496
1496
|
}
|
|
1497
|
-
const
|
|
1497
|
+
const I = ++O.current;
|
|
1498
1498
|
h(!0), v(null);
|
|
1499
1499
|
try {
|
|
1500
1500
|
const b = fa({ restrictCountry: c }), F = await o(u, b);
|
|
1501
|
-
if (
|
|
1501
|
+
if (I !== O.current) return;
|
|
1502
1502
|
const p = (F || []).filter(
|
|
1503
|
-
(m) => !!m?.id && !!m?.description &&
|
|
1503
|
+
(m) => !!m?.id && !!m?.description && hr(m?.lat) && hr(m?.lng)
|
|
1504
1504
|
).map((m) => ({
|
|
1505
1505
|
id: m.id,
|
|
1506
1506
|
description: m.description,
|
|
@@ -1510,27 +1510,27 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1510
1510
|
}));
|
|
1511
1511
|
_(p);
|
|
1512
1512
|
} catch (b) {
|
|
1513
|
-
if (
|
|
1513
|
+
if (I !== O.current) return;
|
|
1514
1514
|
_([]), v(b?.message || "Failed to fetch locations");
|
|
1515
1515
|
} finally {
|
|
1516
|
-
|
|
1516
|
+
I === O.current && h(!1);
|
|
1517
1517
|
}
|
|
1518
1518
|
},
|
|
1519
1519
|
[c, o]
|
|
1520
|
-
),
|
|
1520
|
+
), E = ye(() => _([]), []);
|
|
1521
1521
|
return {
|
|
1522
1522
|
predictions: d,
|
|
1523
1523
|
isSearching: w,
|
|
1524
1524
|
loadError: T,
|
|
1525
1525
|
searchPlaces: x,
|
|
1526
|
-
clearPredictions:
|
|
1526
|
+
clearPredictions: E
|
|
1527
1527
|
};
|
|
1528
|
-
},
|
|
1528
|
+
}, Ee = {
|
|
1529
1529
|
time: "https://srm-cdn.a4b.io/yoda/1770372014782.svg",
|
|
1530
1530
|
location: "https://srm-cdn.a4b.io/yoda/1770372031092.svg",
|
|
1531
1531
|
date: "https://srm-cdn.a4b.io/yoda/1770372045894.svg",
|
|
1532
1532
|
info: "https://srm-cdn.a4b.io/yoda/1770372066357.svg"
|
|
1533
|
-
},
|
|
1533
|
+
}, wr = [
|
|
1534
1534
|
{ code: "+1", country: "USA / Canada" },
|
|
1535
1535
|
{ code: "+7", country: "Russia / Kazakhstan" },
|
|
1536
1536
|
{ code: "+20", country: "Egypt" },
|
|
@@ -1601,8 +1601,8 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1601
1601
|
{ code: "+976", country: "Mongolia" },
|
|
1602
1602
|
{ code: "+977", country: "Nepal" }
|
|
1603
1603
|
];
|
|
1604
|
-
|
|
1605
|
-
const
|
|
1604
|
+
wr.map((t) => t.code);
|
|
1605
|
+
const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr), ha = (t) => tr(t).length === xr, ga = (t, o, c) => ha(t) ? c.phone ? { shouldTrack: !1 } : (c.phone = !0, { shouldTrack: !0, fullPhone: `${o}-${tr(t)}` }) : (c.phone = !1, { shouldTrack: !1 }), _a = {}, ba = ({
|
|
1606
1606
|
t,
|
|
1607
1607
|
values: o,
|
|
1608
1608
|
onChange: c,
|
|
@@ -1612,116 +1612,123 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
1612
1612
|
analytics: h,
|
|
1613
1613
|
googleMapsApiKey: T,
|
|
1614
1614
|
atlasSearchLocalities: v,
|
|
1615
|
-
googleMapsAutocompleteEnabled:
|
|
1615
|
+
googleMapsAutocompleteEnabled: O,
|
|
1616
1616
|
className: x = ""
|
|
1617
1617
|
}) => {
|
|
1618
|
-
const
|
|
1618
|
+
const E = Ie(), u = E?.config?.analytics ?? h, I = E?.config.isGlobal ?? !0, b = E?.config?.googleMapsApiKey, F = E?.config?.atlasSearchLocalities, p = E?.config?.googleMapsAutocompleteEnabled, [m, y] = U(!1), [Q, z] = U(""), W = $(null), B = $(null), M = $({}), P = (a) => c({ ...o, ...a }), S = (a, s) => {
|
|
1619
1619
|
if (a === "phone") {
|
|
1620
|
-
const
|
|
1621
|
-
|
|
1620
|
+
const R = ga(s, d, M.current);
|
|
1621
|
+
R.shouldTrack && u?.trackPhoneSectionFilled?.({ phone: R.fullPhone });
|
|
1622
1622
|
return;
|
|
1623
1623
|
}
|
|
1624
|
-
|
|
1624
|
+
s.trim() && !M.current[a] && (M.current[a] = !0, {
|
|
1625
1625
|
fullName: () => u?.trackNameSectionFilled?.(),
|
|
1626
1626
|
dateOfBirth: () => u?.trackDobFilled?.(),
|
|
1627
1627
|
birthTime: () => u?.trackTimeFilled?.(),
|
|
1628
1628
|
birthPlace: () => u?.trackPlaceOfBirthChosen?.()
|
|
1629
1629
|
}[a]?.());
|
|
1630
1630
|
}, Z = (a) => {
|
|
1631
|
-
const
|
|
1632
|
-
|
|
1633
|
-
},
|
|
1634
|
-
|
|
1635
|
-
const H =
|
|
1636
|
-
const
|
|
1637
|
-
if (!
|
|
1638
|
-
const
|
|
1639
|
-
return `${
|
|
1640
|
-
},
|
|
1641
|
-
const
|
|
1642
|
-
if (!
|
|
1643
|
-
const
|
|
1644
|
-
return { hour12:
|
|
1645
|
-
},
|
|
1646
|
-
const
|
|
1647
|
-
let
|
|
1648
|
-
return a.meridiem === "PM" && (
|
|
1649
|
-
},
|
|
1631
|
+
const s = a.target.value;
|
|
1632
|
+
s.trim() && u?.trackEmailSectionFilled?.({ email: s });
|
|
1633
|
+
}, G = Q.trim().toLowerCase(), D = wr.filter((a) => G ? a.country.toLowerCase().includes(G) || a.code.includes(G) : !0), j = $(null);
|
|
1634
|
+
$(null);
|
|
1635
|
+
const H = $(null), Y = $(0), re = $(null), [ae, ne] = U(!1), [ce, de] = U({ hour12: 12, minute: "00", meridiem: "AM" }), ee = (a) => String(a).padStart(2, "0"), X = (a) => {
|
|
1636
|
+
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(a);
|
|
1637
|
+
if (!s) return a;
|
|
1638
|
+
const R = Number(s[1]), me = s[2], Oe = R >= 12 ? "PM" : "AM";
|
|
1639
|
+
return `${R % 12 === 0 ? 12 : R % 12}:${me} ${Oe}`;
|
|
1640
|
+
}, he = (a) => {
|
|
1641
|
+
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(a);
|
|
1642
|
+
if (!s) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
1643
|
+
const R = Number(s[1]), me = s[2], Oe = R >= 12 ? "PM" : "AM";
|
|
1644
|
+
return { hour12: R % 12 === 0 ? 12 : R % 12, minute: me, meridiem: Oe };
|
|
1645
|
+
}, we = (a) => {
|
|
1646
|
+
const s = Math.min(12, Math.max(1, a.hour12)), R = /^([0-5]\d)$/.test(a.minute) ? a.minute : "00";
|
|
1647
|
+
let me = s % 12;
|
|
1648
|
+
return a.meridiem === "PM" && (me += 12), `${ee(me)}:${R}`;
|
|
1649
|
+
}, ve = $(null), [oe, ie] = U(!1), pe = $(o.birthPlace ?? ""), [se, q] = U(
|
|
1650
1650
|
null
|
|
1651
|
-
),
|
|
1652
|
-
apiKey:
|
|
1651
|
+
), Te = T ?? b ?? _a?.VITE_GOOGLE_MAPS_API_KEY, ge = v ?? F, ue = O ?? p ?? !0, xe = (o.birthPlace ?? "").trim(), ke = I ? void 0 : "in", C = ma({
|
|
1652
|
+
apiKey: ue ? Te : void 0,
|
|
1653
1653
|
language: "en",
|
|
1654
|
-
restrictCountry:
|
|
1655
|
-
}),
|
|
1656
|
-
searchLocalities:
|
|
1657
|
-
restrictCountry:
|
|
1658
|
-
}),
|
|
1654
|
+
restrictCountry: ke
|
|
1655
|
+
}), _e = pa({
|
|
1656
|
+
searchLocalities: ue ? void 0 : ge,
|
|
1657
|
+
restrictCountry: ke
|
|
1658
|
+
}), Ae = ue ? C.predictions.map((a) => ({
|
|
1659
1659
|
id: a.place_id,
|
|
1660
1660
|
description: a.description,
|
|
1661
1661
|
secondaryText: a.structured_formatting?.secondary_text,
|
|
1662
1662
|
lat: void 0,
|
|
1663
1663
|
lng: void 0
|
|
1664
|
-
})) :
|
|
1664
|
+
})) : _e.predictions.map((a) => ({
|
|
1665
1665
|
id: a.id,
|
|
1666
1666
|
description: a.description,
|
|
1667
1667
|
secondaryText: a.secondary_text,
|
|
1668
1668
|
lat: a.lat,
|
|
1669
1669
|
lng: a.lng
|
|
1670
|
-
})),
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1670
|
+
})), Ue = ue ? C.isSearching : _e.isSearching, Ge = ue ? C.loadError : _e.loadError, Ne = ue ? !!Te : !!ge, Ke = ue ? C.searchPlaces : _e.searchPlaces, Le = ue ? C.clearPredictions : _e.clearPredictions, Be = $(() => {
|
|
1671
|
+
});
|
|
1672
|
+
Be.current = () => {
|
|
1673
|
+
(o.birthPlace ?? "") !== pe.current && P({
|
|
1674
|
+
birthPlace: "",
|
|
1675
|
+
birthPlaceLat: void 0,
|
|
1676
|
+
birthPlaceLng: void 0
|
|
1677
|
+
}), ie(!1);
|
|
1678
|
+
}, J(() => {
|
|
1679
|
+
const a = (s) => {
|
|
1680
|
+
ve.current && (ve.current.contains(s.target) || Be.current());
|
|
1674
1681
|
};
|
|
1675
1682
|
return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
|
|
1676
|
-
}, []),
|
|
1677
|
-
const a = (
|
|
1678
|
-
W.current && (W.current.contains(
|
|
1683
|
+
}, []), J(() => {
|
|
1684
|
+
const a = (s) => {
|
|
1685
|
+
W.current && (W.current.contains(s.target) || (y(!1), z("")));
|
|
1679
1686
|
};
|
|
1680
1687
|
return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
|
|
1681
|
-
}, []),
|
|
1688
|
+
}, []), J(() => {
|
|
1682
1689
|
if (!m) return;
|
|
1683
1690
|
const a = window.setTimeout(() => {
|
|
1684
|
-
|
|
1691
|
+
B.current?.focus();
|
|
1685
1692
|
}, 0);
|
|
1686
1693
|
return () => window.clearTimeout(a);
|
|
1687
|
-
}, [m]),
|
|
1688
|
-
if (!
|
|
1689
|
-
if (
|
|
1690
|
-
|
|
1694
|
+
}, [m]), J(() => {
|
|
1695
|
+
if (!oe) return;
|
|
1696
|
+
if (xe.length < 2) {
|
|
1697
|
+
Le();
|
|
1691
1698
|
return;
|
|
1692
1699
|
}
|
|
1693
1700
|
const a = window.setTimeout(async () => {
|
|
1694
|
-
await
|
|
1701
|
+
await Ke(xe);
|
|
1695
1702
|
}, 250);
|
|
1696
1703
|
return () => window.clearTimeout(a);
|
|
1697
|
-
}, [
|
|
1698
|
-
const
|
|
1699
|
-
const
|
|
1700
|
-
if (!(!
|
|
1701
|
-
if (document.activeElement ===
|
|
1702
|
-
|
|
1704
|
+
}, [Le, oe, xe, Ke]);
|
|
1705
|
+
const De = (a) => {
|
|
1706
|
+
const s = a.current;
|
|
1707
|
+
if (!(!s || s.disabled)) {
|
|
1708
|
+
if (document.activeElement === s && H.current === s && Date.now() - Y.current < 6e4) {
|
|
1709
|
+
s.blur();
|
|
1703
1710
|
return;
|
|
1704
1711
|
}
|
|
1705
|
-
if (typeof
|
|
1706
|
-
|
|
1712
|
+
if (typeof s.showPicker == "function") {
|
|
1713
|
+
s.showPicker(), H.current = s, Y.current = Date.now();
|
|
1707
1714
|
return;
|
|
1708
1715
|
}
|
|
1709
|
-
|
|
1716
|
+
s.focus(), H.current = s, Y.current = Date.now();
|
|
1710
1717
|
}
|
|
1711
1718
|
};
|
|
1712
|
-
return
|
|
1713
|
-
const a = (
|
|
1714
|
-
|
|
1719
|
+
return J(() => {
|
|
1720
|
+
const a = (s) => {
|
|
1721
|
+
re.current && (re.current.contains(s.target) || ne(!1));
|
|
1715
1722
|
};
|
|
1716
1723
|
return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
|
|
1717
|
-
}, []),
|
|
1718
|
-
const a = (
|
|
1719
|
-
|
|
1720
|
-
},
|
|
1721
|
-
|
|
1724
|
+
}, []), J(() => {
|
|
1725
|
+
const a = (R) => {
|
|
1726
|
+
R.target?.closest?.("[data-info-tooltip]") == null && q(null);
|
|
1727
|
+
}, s = (R) => {
|
|
1728
|
+
R.key === "Escape" && q(null);
|
|
1722
1729
|
};
|
|
1723
|
-
return document.addEventListener("mousedown", a), document.addEventListener("keydown",
|
|
1724
|
-
document.removeEventListener("mousedown", a), document.removeEventListener("keydown",
|
|
1730
|
+
return document.addEventListener("mousedown", a), document.addEventListener("keydown", s), () => {
|
|
1731
|
+
document.removeEventListener("mousedown", a), document.removeEventListener("keydown", s);
|
|
1725
1732
|
};
|
|
1726
1733
|
}, []), /* @__PURE__ */ r.jsx(
|
|
1727
1734
|
"section",
|
|
@@ -1743,8 +1750,8 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
1743
1750
|
value: o.fullName,
|
|
1744
1751
|
onFocus: () => u?.trackNameSectionClicked?.(),
|
|
1745
1752
|
onChange: (a) => {
|
|
1746
|
-
const
|
|
1747
|
-
|
|
1753
|
+
const s = a.target.value;
|
|
1754
|
+
P({ fullName: s }), S("fullName", s);
|
|
1748
1755
|
},
|
|
1749
1756
|
placeholder: t("formFullNamePlaceholder"),
|
|
1750
1757
|
autoComplete: "name"
|
|
@@ -1754,7 +1761,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
1754
1761
|
/* @__PURE__ */ r.jsxs("div", { className: n.field, children: [
|
|
1755
1762
|
/* @__PURE__ */ r.jsx("div", { className: n.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: n.label, htmlFor: "kundli-phone", children: [
|
|
1756
1763
|
t("formPhone"),
|
|
1757
|
-
!
|
|
1764
|
+
!I && /* @__PURE__ */ r.jsx("span", { className: n.req, children: "*" })
|
|
1758
1765
|
] }) }),
|
|
1759
1766
|
/* @__PURE__ */ r.jsx("div", { className: n.inputWrap, children: /* @__PURE__ */ r.jsxs("div", { className: n.isdWrap, ref: W, children: [
|
|
1760
1767
|
/* @__PURE__ */ r.jsxs("div", { className: n.phoneInputGroup, children: [
|
|
@@ -1766,7 +1773,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
1766
1773
|
"aria-haspopup": "listbox",
|
|
1767
1774
|
"aria-expanded": m,
|
|
1768
1775
|
onClick: () => {
|
|
1769
|
-
y((a) => !a),
|
|
1776
|
+
y((a) => !a), z("");
|
|
1770
1777
|
},
|
|
1771
1778
|
children: d
|
|
1772
1779
|
}
|
|
@@ -1780,16 +1787,16 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
1780
1787
|
value: o.phone ?? "",
|
|
1781
1788
|
onFocus: () => u?.trackPhoneSectionClicked?.(),
|
|
1782
1789
|
onChange: (a) => {
|
|
1783
|
-
const
|
|
1784
|
-
|
|
1790
|
+
const s = a.target.value;
|
|
1791
|
+
P({ phone: gr(s) }), S("phone", gr(s));
|
|
1785
1792
|
},
|
|
1786
1793
|
placeholder: t("formPhonePlaceholder"),
|
|
1787
1794
|
autoComplete: "tel",
|
|
1788
1795
|
inputMode: "numeric",
|
|
1789
1796
|
pattern: "[0-9]{10}",
|
|
1790
1797
|
maxLength: 10,
|
|
1791
|
-
required: !
|
|
1792
|
-
"aria-required": !
|
|
1798
|
+
required: !I,
|
|
1799
|
+
"aria-required": !I
|
|
1793
1800
|
}
|
|
1794
1801
|
)
|
|
1795
1802
|
] }),
|
|
@@ -1803,16 +1810,16 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
1803
1810
|
/* @__PURE__ */ r.jsx("div", { className: n.isdSearchWrap, children: /* @__PURE__ */ r.jsx(
|
|
1804
1811
|
"input",
|
|
1805
1812
|
{
|
|
1806
|
-
ref:
|
|
1813
|
+
ref: B,
|
|
1807
1814
|
type: "text",
|
|
1808
|
-
value:
|
|
1809
|
-
onChange: (a) =>
|
|
1815
|
+
value: Q,
|
|
1816
|
+
onChange: (a) => z(a.target.value),
|
|
1810
1817
|
placeholder: "Search country",
|
|
1811
1818
|
className: n.isdSearchInput,
|
|
1812
1819
|
"aria-label": "Search country"
|
|
1813
1820
|
}
|
|
1814
1821
|
) }),
|
|
1815
|
-
|
|
1822
|
+
D.length > 0 ? D.map((a) => /* @__PURE__ */ r.jsxs(
|
|
1816
1823
|
"button",
|
|
1817
1824
|
{
|
|
1818
1825
|
type: "button",
|
|
@@ -1820,7 +1827,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
1820
1827
|
"aria-selected": a.code === d,
|
|
1821
1828
|
className: `${n.isdOption} ${a.code === d ? n.isdOptionActive : ""}`,
|
|
1822
1829
|
onClick: () => {
|
|
1823
|
-
_(a.code), y(!1),
|
|
1830
|
+
_(a.code), y(!1), z("");
|
|
1824
1831
|
},
|
|
1825
1832
|
children: [
|
|
1826
1833
|
/* @__PURE__ */ r.jsx("span", { className: n.isdCountryName, children: a.country }),
|
|
@@ -1853,7 +1860,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
1853
1860
|
type: "button",
|
|
1854
1861
|
className: `${n.choiceBtn} ${o.gender === "male" ? n.choiceBtnActive : ""}`,
|
|
1855
1862
|
onClick: () => {
|
|
1856
|
-
|
|
1863
|
+
P({ gender: "male" }), u?.trackGenderSelected?.({
|
|
1857
1864
|
gender: "male"
|
|
1858
1865
|
});
|
|
1859
1866
|
},
|
|
@@ -1869,7 +1876,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
1869
1876
|
type: "button",
|
|
1870
1877
|
className: `${n.choiceBtn} ${o.gender === "female" ? n.choiceBtnActive : ""}`,
|
|
1871
1878
|
onClick: () => {
|
|
1872
|
-
|
|
1879
|
+
P({ gender: "female" }), u?.trackGenderSelected?.({
|
|
1873
1880
|
gender: "female"
|
|
1874
1881
|
});
|
|
1875
1882
|
},
|
|
@@ -1882,7 +1889,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
1882
1889
|
}
|
|
1883
1890
|
)
|
|
1884
1891
|
] }),
|
|
1885
|
-
|
|
1892
|
+
I && /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs("div", { className: n.field, children: [
|
|
1886
1893
|
/* @__PURE__ */ r.jsx("div", { className: n.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: n.label, htmlFor: "kundli-email", children: [
|
|
1887
1894
|
t("formEmail"),
|
|
1888
1895
|
/* @__PURE__ */ r.jsx("span", { className: n.req, children: "*" })
|
|
@@ -1897,7 +1904,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
1897
1904
|
value: o.email,
|
|
1898
1905
|
onFocus: () => u?.trackEmailSectionClicked?.(),
|
|
1899
1906
|
onChange: (a) => {
|
|
1900
|
-
|
|
1907
|
+
P({ email: a.target.value });
|
|
1901
1908
|
},
|
|
1902
1909
|
onBlur: Z,
|
|
1903
1910
|
placeholder: t("formEmailPlaceholder"),
|
|
@@ -1920,22 +1927,22 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
1920
1927
|
type: "button",
|
|
1921
1928
|
className: n.infoBtn,
|
|
1922
1929
|
"aria-label": t("info"),
|
|
1923
|
-
"aria-expanded":
|
|
1930
|
+
"aria-expanded": se === "dob",
|
|
1924
1931
|
onClick: () => {
|
|
1925
|
-
|
|
1932
|
+
q((a) => a === "dob" ? null : "dob"), u?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
1926
1933
|
},
|
|
1927
1934
|
children: /* @__PURE__ */ r.jsx(
|
|
1928
1935
|
"img",
|
|
1929
1936
|
{
|
|
1930
1937
|
className: n.infoImg,
|
|
1931
|
-
src:
|
|
1938
|
+
src: Ee.info,
|
|
1932
1939
|
alt: "",
|
|
1933
1940
|
"aria-hidden": !0
|
|
1934
1941
|
}
|
|
1935
1942
|
)
|
|
1936
1943
|
}
|
|
1937
1944
|
),
|
|
1938
|
-
|
|
1945
|
+
se === "dob" && /* @__PURE__ */ r.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
|
|
1939
1946
|
t("formDobInfo"),
|
|
1940
1947
|
/* @__PURE__ */ r.jsx("span", { className: n.tooltipArrow, "aria-hidden": !0 })
|
|
1941
1948
|
] })
|
|
@@ -1955,11 +1962,11 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
1955
1962
|
return `${a.getFullYear()}-${ee(a.getMonth() + 1)}-${ee(a.getDate())}`;
|
|
1956
1963
|
})(),
|
|
1957
1964
|
onChange: (a) => {
|
|
1958
|
-
const
|
|
1959
|
-
|
|
1965
|
+
const s = a.target.value, R = /* @__PURE__ */ new Date(), me = `${R.getFullYear()}-${ee(R.getMonth() + 1)}-${ee(R.getDate())}`;
|
|
1966
|
+
s && s > me || (P({ dateOfBirth: s }), S("dateOfBirth", s), H.current = null);
|
|
1960
1967
|
},
|
|
1961
1968
|
onFocus: () => u?.trackDobClicked?.(),
|
|
1962
|
-
onClick: () =>
|
|
1969
|
+
onClick: () => De(j),
|
|
1963
1970
|
onBlur: () => {
|
|
1964
1971
|
H.current === j.current && (H.current = null);
|
|
1965
1972
|
}
|
|
@@ -1973,13 +1980,13 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
1973
1980
|
"aria-label": "Open date picker",
|
|
1974
1981
|
onMouseDown: (a) => a.preventDefault(),
|
|
1975
1982
|
onClick: (a) => {
|
|
1976
|
-
a.preventDefault(), a.stopPropagation(),
|
|
1983
|
+
a.preventDefault(), a.stopPropagation(), De(j);
|
|
1977
1984
|
},
|
|
1978
1985
|
children: /* @__PURE__ */ r.jsx(
|
|
1979
1986
|
"img",
|
|
1980
1987
|
{
|
|
1981
1988
|
className: n.iconImg,
|
|
1982
|
-
src:
|
|
1989
|
+
src: Ee.date,
|
|
1983
1990
|
alt: "",
|
|
1984
1991
|
"aria-hidden": !0
|
|
1985
1992
|
}
|
|
@@ -2001,45 +2008,45 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2001
2008
|
type: "button",
|
|
2002
2009
|
className: n.infoBtn,
|
|
2003
2010
|
"aria-label": t("info"),
|
|
2004
|
-
"aria-expanded":
|
|
2011
|
+
"aria-expanded": se === "time",
|
|
2005
2012
|
onClick: () => {
|
|
2006
|
-
u?.trackInfoIconClicked?.({ fieldName: "time" }),
|
|
2013
|
+
u?.trackInfoIconClicked?.({ fieldName: "time" }), q((a) => a === "time" ? null : "time");
|
|
2007
2014
|
},
|
|
2008
2015
|
children: /* @__PURE__ */ r.jsx(
|
|
2009
2016
|
"img",
|
|
2010
2017
|
{
|
|
2011
2018
|
className: n.infoImg,
|
|
2012
|
-
src:
|
|
2019
|
+
src: Ee.info,
|
|
2013
2020
|
alt: "",
|
|
2014
2021
|
"aria-hidden": !0
|
|
2015
2022
|
}
|
|
2016
2023
|
)
|
|
2017
2024
|
}
|
|
2018
2025
|
),
|
|
2019
|
-
|
|
2026
|
+
se === "time" && /* @__PURE__ */ r.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
|
|
2020
2027
|
t("formBirthTimeInfo"),
|
|
2021
2028
|
/* @__PURE__ */ r.jsx("span", { className: n.tooltipArrow, "aria-hidden": !0 })
|
|
2022
2029
|
] })
|
|
2023
2030
|
] })
|
|
2024
2031
|
] }),
|
|
2025
|
-
/* @__PURE__ */ r.jsxs("div", { className: n.inputWrap, ref:
|
|
2032
|
+
/* @__PURE__ */ r.jsxs("div", { className: n.inputWrap, ref: re, children: [
|
|
2026
2033
|
/* @__PURE__ */ r.jsx(
|
|
2027
2034
|
"input",
|
|
2028
2035
|
{
|
|
2029
2036
|
id: "kundli-birth-time",
|
|
2030
2037
|
className: n.input,
|
|
2031
2038
|
type: "text",
|
|
2032
|
-
value: o.birthTime ?
|
|
2039
|
+
value: o.birthTime ? X(o.birthTime) : "",
|
|
2033
2040
|
readOnly: !0,
|
|
2034
2041
|
onFocus: () => u?.trackTimeClicked?.(),
|
|
2035
2042
|
onChange: (a) => {
|
|
2036
|
-
const
|
|
2037
|
-
|
|
2043
|
+
const s = a.target.value;
|
|
2044
|
+
P({ birthTime: s }), S("birthTime", s);
|
|
2038
2045
|
},
|
|
2039
2046
|
disabled: o.birthTimeUnknown,
|
|
2040
2047
|
placeholder: "HH:MM AM",
|
|
2041
2048
|
onClick: () => {
|
|
2042
|
-
o.birthTimeUnknown || (
|
|
2049
|
+
o.birthTimeUnknown || (de(he(o.birthTime || "12:00")), ne((a) => !a));
|
|
2043
2050
|
}
|
|
2044
2051
|
}
|
|
2045
2052
|
),
|
|
@@ -2052,20 +2059,20 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2052
2059
|
disabled: o.birthTimeUnknown,
|
|
2053
2060
|
onMouseDown: (a) => a.preventDefault(),
|
|
2054
2061
|
onClick: (a) => {
|
|
2055
|
-
a.preventDefault(), a.stopPropagation(), !o.birthTimeUnknown && (
|
|
2062
|
+
a.preventDefault(), a.stopPropagation(), !o.birthTimeUnknown && (de(he(o.birthTime || "12:00")), ne((s) => !s));
|
|
2056
2063
|
},
|
|
2057
2064
|
children: /* @__PURE__ */ r.jsx(
|
|
2058
2065
|
"img",
|
|
2059
2066
|
{
|
|
2060
2067
|
className: n.iconImg,
|
|
2061
|
-
src:
|
|
2068
|
+
src: Ee.time,
|
|
2062
2069
|
alt: "",
|
|
2063
2070
|
"aria-hidden": !0
|
|
2064
2071
|
}
|
|
2065
2072
|
)
|
|
2066
2073
|
}
|
|
2067
2074
|
),
|
|
2068
|
-
|
|
2075
|
+
ae && !o.birthTimeUnknown && /* @__PURE__ */ r.jsxs(
|
|
2069
2076
|
"div",
|
|
2070
2077
|
{
|
|
2071
2078
|
className: n.timePopover,
|
|
@@ -2077,13 +2084,13 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2077
2084
|
"select",
|
|
2078
2085
|
{
|
|
2079
2086
|
className: n.timePickerSelect,
|
|
2080
|
-
value:
|
|
2081
|
-
onChange: (a) =>
|
|
2082
|
-
...
|
|
2087
|
+
value: ce.hour12,
|
|
2088
|
+
onChange: (a) => de((s) => ({
|
|
2089
|
+
...s,
|
|
2083
2090
|
hour12: Number(a.target.value)
|
|
2084
2091
|
})),
|
|
2085
2092
|
"aria-label": "Hour",
|
|
2086
|
-
children: Array.from({ length: 12 }, (a,
|
|
2093
|
+
children: Array.from({ length: 12 }, (a, s) => s + 1).map((a) => /* @__PURE__ */ r.jsx("option", { value: a, children: a }, a))
|
|
2087
2094
|
}
|
|
2088
2095
|
),
|
|
2089
2096
|
/* @__PURE__ */ r.jsx("span", { className: n.timePickerColon, children: ":" }),
|
|
@@ -2091,10 +2098,10 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2091
2098
|
"select",
|
|
2092
2099
|
{
|
|
2093
2100
|
className: n.timePickerSelect,
|
|
2094
|
-
value:
|
|
2095
|
-
onChange: (a) =>
|
|
2101
|
+
value: ce.minute,
|
|
2102
|
+
onChange: (a) => de((s) => ({ ...s, minute: a.target.value })),
|
|
2096
2103
|
"aria-label": "Minute",
|
|
2097
|
-
children: Array.from({ length: 60 }, (a,
|
|
2104
|
+
children: Array.from({ length: 60 }, (a, s) => ee(s)).map(
|
|
2098
2105
|
(a) => /* @__PURE__ */ r.jsx("option", { value: a, children: a }, a)
|
|
2099
2106
|
)
|
|
2100
2107
|
}
|
|
@@ -2104,8 +2111,8 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2104
2111
|
"button",
|
|
2105
2112
|
{
|
|
2106
2113
|
type: "button",
|
|
2107
|
-
className: `${n.meridiemBtn} ${
|
|
2108
|
-
onClick: () =>
|
|
2114
|
+
className: `${n.meridiemBtn} ${ce.meridiem === "AM" ? n.meridiemActive : ""}`,
|
|
2115
|
+
onClick: () => de((a) => ({ ...a, meridiem: "AM" })),
|
|
2109
2116
|
children: "AM"
|
|
2110
2117
|
}
|
|
2111
2118
|
),
|
|
@@ -2113,8 +2120,8 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2113
2120
|
"button",
|
|
2114
2121
|
{
|
|
2115
2122
|
type: "button",
|
|
2116
|
-
className: `${n.meridiemBtn} ${
|
|
2117
|
-
onClick: () =>
|
|
2123
|
+
className: `${n.meridiemBtn} ${ce.meridiem === "PM" ? n.meridiemActive : ""}`,
|
|
2124
|
+
onClick: () => de((a) => ({ ...a, meridiem: "PM" })),
|
|
2118
2125
|
children: "PM"
|
|
2119
2126
|
}
|
|
2120
2127
|
)
|
|
@@ -2126,7 +2133,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2126
2133
|
{
|
|
2127
2134
|
type: "button",
|
|
2128
2135
|
className: n.timePopoverBtn,
|
|
2129
|
-
onClick: () =>
|
|
2136
|
+
onClick: () => ne(!1),
|
|
2130
2137
|
children: "Cancel"
|
|
2131
2138
|
}
|
|
2132
2139
|
),
|
|
@@ -2136,8 +2143,8 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2136
2143
|
type: "button",
|
|
2137
2144
|
className: `${n.timePopoverBtn} ${n.timePopoverOk}`,
|
|
2138
2145
|
onClick: () => {
|
|
2139
|
-
const a =
|
|
2140
|
-
|
|
2146
|
+
const a = we(ce);
|
|
2147
|
+
P({ birthTime: a }), S("birthTime", a), ne(!1);
|
|
2141
2148
|
},
|
|
2142
2149
|
"aria-label": "OK",
|
|
2143
2150
|
children: /* @__PURE__ */ r.jsx(
|
|
@@ -2177,7 +2184,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2177
2184
|
type: "checkbox",
|
|
2178
2185
|
checked: o.birthTimeUnknown,
|
|
2179
2186
|
onChange: (a) => {
|
|
2180
|
-
u?.trackTimeCheckboxClicked?.(),
|
|
2187
|
+
u?.trackTimeCheckboxClicked?.(), P({
|
|
2181
2188
|
birthTimeUnknown: a.target.checked,
|
|
2182
2189
|
birthTime: a.target.checked ? "" : o.birthTime
|
|
2183
2190
|
});
|
|
@@ -2211,30 +2218,30 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2211
2218
|
type: "button",
|
|
2212
2219
|
className: n.infoBtn,
|
|
2213
2220
|
"aria-label": t("info"),
|
|
2214
|
-
"aria-expanded":
|
|
2221
|
+
"aria-expanded": se === "place",
|
|
2215
2222
|
onClick: () => {
|
|
2216
2223
|
u?.trackInfoIconClicked?.({
|
|
2217
2224
|
fieldName: "birthPlace"
|
|
2218
|
-
}),
|
|
2225
|
+
}), q((a) => a === "place" ? null : "place");
|
|
2219
2226
|
},
|
|
2220
2227
|
children: /* @__PURE__ */ r.jsx(
|
|
2221
2228
|
"img",
|
|
2222
2229
|
{
|
|
2223
2230
|
className: n.infoImg,
|
|
2224
|
-
src:
|
|
2231
|
+
src: Ee.info,
|
|
2225
2232
|
alt: "",
|
|
2226
2233
|
"aria-hidden": !0
|
|
2227
2234
|
}
|
|
2228
2235
|
)
|
|
2229
2236
|
}
|
|
2230
2237
|
),
|
|
2231
|
-
|
|
2238
|
+
se === "place" && /* @__PURE__ */ r.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
|
|
2232
2239
|
t("formBirthPlaceInfo"),
|
|
2233
2240
|
/* @__PURE__ */ r.jsx("span", { className: n.tooltipArrow, "aria-hidden": !0 })
|
|
2234
2241
|
] })
|
|
2235
2242
|
] })
|
|
2236
2243
|
] }),
|
|
2237
|
-
/* @__PURE__ */ r.jsxs("div", { className: n.inputWrap, ref:
|
|
2244
|
+
/* @__PURE__ */ r.jsxs("div", { className: n.inputWrap, ref: ve, children: [
|
|
2238
2245
|
/* @__PURE__ */ r.jsx(
|
|
2239
2246
|
"input",
|
|
2240
2247
|
{
|
|
@@ -2243,15 +2250,15 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2243
2250
|
type: "text",
|
|
2244
2251
|
value: o.birthPlace,
|
|
2245
2252
|
onChange: (a) => {
|
|
2246
|
-
const
|
|
2247
|
-
|
|
2248
|
-
birthPlace:
|
|
2253
|
+
const s = a.target.value;
|
|
2254
|
+
P({
|
|
2255
|
+
birthPlace: s,
|
|
2249
2256
|
birthPlaceLat: void 0,
|
|
2250
2257
|
birthPlaceLng: void 0
|
|
2251
|
-
}), S("birthPlace",
|
|
2258
|
+
}), S("birthPlace", s), ie(!0);
|
|
2252
2259
|
},
|
|
2253
2260
|
onFocus: () => {
|
|
2254
|
-
u?.trackPlaceOfBirthClicked?.(),
|
|
2261
|
+
u?.trackPlaceOfBirthClicked?.(), ie(!0);
|
|
2255
2262
|
},
|
|
2256
2263
|
placeholder: t("formBirthPlacePlaceholder"),
|
|
2257
2264
|
autoComplete: "address-level2"
|
|
@@ -2261,22 +2268,33 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2261
2268
|
"img",
|
|
2262
2269
|
{
|
|
2263
2270
|
className: n.iconImg,
|
|
2264
|
-
src:
|
|
2271
|
+
src: Ee.location,
|
|
2265
2272
|
alt: "",
|
|
2266
2273
|
"aria-hidden": !0
|
|
2267
2274
|
}
|
|
2268
2275
|
) }),
|
|
2269
|
-
|
|
2276
|
+
oe && Ae.length > 0 && /* @__PURE__ */ r.jsx("div", { className: n.suggestions, role: "listbox", children: Ae.slice(0, 8).map((a) => /* @__PURE__ */ r.jsxs(
|
|
2270
2277
|
"button",
|
|
2271
2278
|
{
|
|
2272
2279
|
type: "button",
|
|
2273
2280
|
className: n.suggestionItem,
|
|
2274
|
-
onClick: () => {
|
|
2275
|
-
|
|
2276
|
-
|
|
2281
|
+
onClick: async () => {
|
|
2282
|
+
const s = a.description;
|
|
2283
|
+
if (pe.current = s, P({
|
|
2284
|
+
birthPlace: s,
|
|
2277
2285
|
birthPlaceLat: a.lat,
|
|
2278
2286
|
birthPlaceLng: a.lng
|
|
2279
|
-
}),
|
|
2287
|
+
}), Le(), ie(!1), ue) {
|
|
2288
|
+
const R = await C.getPlaceDetails(
|
|
2289
|
+
a.id
|
|
2290
|
+
);
|
|
2291
|
+
R && (pe.current = s, c({
|
|
2292
|
+
...o,
|
|
2293
|
+
birthPlace: s,
|
|
2294
|
+
birthPlaceLat: R.lat,
|
|
2295
|
+
birthPlaceLng: R.lng
|
|
2296
|
+
}));
|
|
2297
|
+
}
|
|
2280
2298
|
},
|
|
2281
2299
|
children: [
|
|
2282
2300
|
/* @__PURE__ */ r.jsx("span", { className: n.suggestionMain, children: a.description }),
|
|
@@ -2285,8 +2303,8 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2285
2303
|
},
|
|
2286
2304
|
a.id
|
|
2287
2305
|
)) }),
|
|
2288
|
-
|
|
2289
|
-
|
|
2306
|
+
oe && Ne && Ue && /* @__PURE__ */ r.jsx("div", { className: n.suggestionsHint, children: "Loading…" }),
|
|
2307
|
+
oe && Ne && !Ue && !!Ge && /* @__PURE__ */ r.jsx("div", { className: n.suggestionsHint, children: Ge })
|
|
2290
2308
|
] })
|
|
2291
2309
|
] }),
|
|
2292
2310
|
w && /* @__PURE__ */ r.jsxs("div", { className: n.field, children: [
|
|
@@ -2308,7 +2326,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2308
2326
|
type: "button",
|
|
2309
2327
|
className: `${n.choiceBtn} ${o.language_code === "hi" ? n.choiceBtnActive : ""}`,
|
|
2310
2328
|
onClick: () => {
|
|
2311
|
-
|
|
2329
|
+
P({ language_code: "hi" }), u?.trackLanguageOfReportSelected?.({
|
|
2312
2330
|
language: "hi"
|
|
2313
2331
|
});
|
|
2314
2332
|
},
|
|
@@ -2324,7 +2342,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2324
2342
|
type: "button",
|
|
2325
2343
|
className: `${n.choiceBtn} ${o.language_code === "en" ? n.choiceBtnActive : ""}`,
|
|
2326
2344
|
onClick: () => {
|
|
2327
|
-
|
|
2345
|
+
P({ language_code: "en" }), u?.trackLanguageOfReportSelected?.({
|
|
2328
2346
|
language: "en"
|
|
2329
2347
|
});
|
|
2330
2348
|
},
|
|
@@ -2340,7 +2358,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2340
2358
|
type: "button",
|
|
2341
2359
|
className: `${n.choiceBtn} ${o.language_code === "te" ? n.choiceBtnActive : ""}`,
|
|
2342
2360
|
onClick: () => {
|
|
2343
|
-
|
|
2361
|
+
P({ language_code: "te" }), u?.trackLanguageOfReportSelected?.({
|
|
2344
2362
|
language: "te"
|
|
2345
2363
|
});
|
|
2346
2364
|
},
|
|
@@ -2356,7 +2374,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2356
2374
|
type: "button",
|
|
2357
2375
|
className: `${n.choiceBtn} ${o.language_code === "ta" ? n.choiceBtnActive : ""}`,
|
|
2358
2376
|
onClick: () => {
|
|
2359
|
-
|
|
2377
|
+
P({ language_code: "ta" }), u?.trackLanguageOfReportSelected?.({
|
|
2360
2378
|
language: "ta"
|
|
2361
2379
|
});
|
|
2362
2380
|
},
|
|
@@ -2372,7 +2390,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2372
2390
|
type: "button",
|
|
2373
2391
|
className: `${n.choiceBtn} ${o.language_code === "kn" ? n.choiceBtnActive : ""}`,
|
|
2374
2392
|
onClick: () => {
|
|
2375
|
-
|
|
2393
|
+
P({ language_code: "kn" }), u?.trackLanguageOfReportSelected?.({
|
|
2376
2394
|
language: "kn"
|
|
2377
2395
|
});
|
|
2378
2396
|
},
|
|
@@ -2388,7 +2406,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2388
2406
|
type: "button",
|
|
2389
2407
|
className: `${n.choiceBtn} ${o.language_code === "gu" ? n.choiceBtnActive : ""}`,
|
|
2390
2408
|
onClick: () => {
|
|
2391
|
-
|
|
2409
|
+
P({ language_code: "gu" }), u?.trackLanguageOfReportSelected?.({
|
|
2392
2410
|
language: "gu"
|
|
2393
2411
|
});
|
|
2394
2412
|
},
|
|
@@ -2404,7 +2422,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2404
2422
|
type: "button",
|
|
2405
2423
|
className: `${n.choiceBtn} ${o.language_code === "mr" ? n.choiceBtnActive : ""}`,
|
|
2406
2424
|
onClick: () => {
|
|
2407
|
-
|
|
2425
|
+
P({ language_code: "mr" }), u?.trackLanguageOfReportSelected?.({
|
|
2408
2426
|
language: "mr"
|
|
2409
2427
|
});
|
|
2410
2428
|
},
|
|
@@ -2420,13 +2438,13 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2420
2438
|
] }) })
|
|
2421
2439
|
}
|
|
2422
2440
|
);
|
|
2423
|
-
}, ya = "_ctaButton_rhimw_2", va = "_ctaFilled_rhimw_21", ka = "_ctaFilledContent_rhimw_52", wa = "_chevronRight_rhimw_61",
|
|
2441
|
+
}, ya = "_ctaButton_rhimw_2", va = "_ctaFilled_rhimw_21", ka = "_ctaFilledContent_rhimw_52", wa = "_chevronRight_rhimw_61", $e = {
|
|
2424
2442
|
ctaButton: ya,
|
|
2425
2443
|
ctaFilled: va,
|
|
2426
2444
|
ctaFilledContent: ka,
|
|
2427
2445
|
chevronRight: wa
|
|
2428
|
-
},
|
|
2429
|
-
const c =
|
|
2446
|
+
}, Pr = "kundli-report-astrologer", xa = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", Pa = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", Aa = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", Ca = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", ja = ({ t }) => {
|
|
2447
|
+
const c = Ie()?.config.imageComponent ?? Ye;
|
|
2430
2448
|
return /* @__PURE__ */ r.jsxs("div", { className: je.marqueeContent, children: [
|
|
2431
2449
|
/* @__PURE__ */ r.jsxs("span", { className: je.badge, children: [
|
|
2432
2450
|
/* @__PURE__ */ r.jsx(
|
|
@@ -2493,47 +2511,47 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2493
2511
|
onProceedGuidance: h,
|
|
2494
2512
|
href: T,
|
|
2495
2513
|
analytics: v,
|
|
2496
|
-
className:
|
|
2514
|
+
className: O = "",
|
|
2497
2515
|
discountedPriceLabel: x,
|
|
2498
|
-
discountPillLabel:
|
|
2516
|
+
discountPillLabel: E,
|
|
2499
2517
|
showPlanSheet: u,
|
|
2500
|
-
confirmPlan:
|
|
2518
|
+
confirmPlan: I,
|
|
2501
2519
|
planSheetOpen: b,
|
|
2502
2520
|
selectedPlan: F
|
|
2503
2521
|
}) => {
|
|
2504
|
-
const p =
|
|
2522
|
+
const p = Ie(), m = p?.config.isGlobal ?? !0, y = p?.config?.variant, Q = Xe(
|
|
2505
2523
|
() => Sa(o, m, d),
|
|
2506
2524
|
[o, m, d]
|
|
2507
|
-
),
|
|
2508
|
-
if (Z.preventDefault(), y === "v1" && !
|
|
2509
|
-
|
|
2525
|
+
), z = Q === null, W = y === "v1" && p?.config?.showSheet, B = m ? x ?? t("formDiscountedPrice") : W ? "" : "₹499", M = p?.config.imageComponent ?? Ye, P = (Z) => {
|
|
2526
|
+
if (Z.preventDefault(), y === "v1" && !z && v?.trackKundliDetailedClicked?.(), !z) {
|
|
2527
|
+
Q && _?.(Q);
|
|
2510
2528
|
return;
|
|
2511
2529
|
}
|
|
2512
|
-
const
|
|
2530
|
+
const G = !!h && y === "v1" && F?.id === Pr, D = (o.phone ?? "").trim(), j = {
|
|
2513
2531
|
...o,
|
|
2514
|
-
phone:
|
|
2532
|
+
phone: D && `${c}-${D}`
|
|
2515
2533
|
};
|
|
2516
2534
|
if (W) {
|
|
2517
|
-
b ?
|
|
2535
|
+
b ? I?.() : u?.(j);
|
|
2518
2536
|
return;
|
|
2519
2537
|
}
|
|
2520
|
-
v?.trackPrimaryCtaClickedL1?.({ avenue: "form" }),
|
|
2538
|
+
v?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), G ? h(j) : w?.(j);
|
|
2521
2539
|
}, S = /* @__PURE__ */ r.jsx(
|
|
2522
2540
|
Ur,
|
|
2523
2541
|
{
|
|
2524
2542
|
href: T,
|
|
2525
|
-
disabled: y === "v1" ? !1 : !
|
|
2526
|
-
onClick:
|
|
2543
|
+
disabled: y === "v1" ? !1 : !z,
|
|
2544
|
+
onClick: P,
|
|
2527
2545
|
"aria-label": t("formPriceAria"),
|
|
2528
|
-
className: y === "v1" &&
|
|
2529
|
-
children: y === "v1" ?
|
|
2530
|
-
W ? t("selectPackage") : b && F ? `${t("proceedWithPlan")}${F.price}` : `${t("formProceed")} ${
|
|
2546
|
+
className: y === "v1" && z ? $e.ctaFilled : y === "v1" ? $e.ctaButton : void 0,
|
|
2547
|
+
children: y === "v1" ? z ? /* @__PURE__ */ r.jsxs("span", { className: $e.ctaFilledContent, children: [
|
|
2548
|
+
W ? t("selectPackage") : b && F ? `${t("proceedWithPlan")}${F.price}` : `${t("formProceed")} ${B}`,
|
|
2531
2549
|
/* @__PURE__ */ r.jsx(
|
|
2532
2550
|
M,
|
|
2533
2551
|
{
|
|
2534
2552
|
src: Ca,
|
|
2535
2553
|
alt: "",
|
|
2536
|
-
className:
|
|
2554
|
+
className: $e.chevronRight,
|
|
2537
2555
|
width: 20,
|
|
2538
2556
|
height: 20,
|
|
2539
2557
|
loading: "lazy"
|
|
@@ -2542,14 +2560,14 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2542
2560
|
] }) : t("formCtaDefault") : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2543
2561
|
t("formProceed"),
|
|
2544
2562
|
" ",
|
|
2545
|
-
|
|
2563
|
+
B
|
|
2546
2564
|
] })
|
|
2547
2565
|
}
|
|
2548
2566
|
);
|
|
2549
2567
|
return /* @__PURE__ */ r.jsx(
|
|
2550
2568
|
Gr,
|
|
2551
2569
|
{
|
|
2552
|
-
className: `${
|
|
2570
|
+
className: `${$e.footerContainer} ${O}`,
|
|
2553
2571
|
marquee: /* @__PURE__ */ r.jsx(Kr, { children: /* @__PURE__ */ r.jsx(ja, { t }) }),
|
|
2554
2572
|
children: S
|
|
2555
2573
|
}
|
|
@@ -2560,7 +2578,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2560
2578
|
logoUrl: c = Ea,
|
|
2561
2579
|
className: d = ""
|
|
2562
2580
|
}) => {
|
|
2563
|
-
const _ =
|
|
2581
|
+
const _ = Ie(), w = _?.config.isGlobal ?? !0, h = o != null && !w;
|
|
2564
2582
|
return /* @__PURE__ */ r.jsx(
|
|
2565
2583
|
Wr,
|
|
2566
2584
|
{
|
|
@@ -2787,8 +2805,8 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2787
2805
|
t: h,
|
|
2788
2806
|
analytics: T
|
|
2789
2807
|
}) => {
|
|
2790
|
-
const
|
|
2791
|
-
|
|
2808
|
+
const O = Ie()?.config.isGlobal ?? !0, x = _ ?? En(O), E = c?.id || x.find((p) => p.badge)?.id || x[0]?.id || "", u = $(null), I = $(null), b = $(!1);
|
|
2809
|
+
J(() => {
|
|
2792
2810
|
if (t) {
|
|
2793
2811
|
if (!c) {
|
|
2794
2812
|
const p = x.find((m) => m.badge) ?? x[0];
|
|
@@ -2801,7 +2819,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2801
2819
|
const F = () => {
|
|
2802
2820
|
T?.trackPlanPageClosed?.(), o();
|
|
2803
2821
|
};
|
|
2804
|
-
return
|
|
2822
|
+
return J(() => {
|
|
2805
2823
|
if (!t) return;
|
|
2806
2824
|
const p = document.body.style.overflow;
|
|
2807
2825
|
return document.body.style.overflow = "hidden", () => {
|
|
@@ -2830,7 +2848,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2830
2848
|
/* @__PURE__ */ r.jsx(
|
|
2831
2849
|
"div",
|
|
2832
2850
|
{
|
|
2833
|
-
ref:
|
|
2851
|
+
ref: I,
|
|
2834
2852
|
className: g.plansContainer,
|
|
2835
2853
|
role: "radiogroup",
|
|
2836
2854
|
"aria-label": "Kundli plans",
|
|
@@ -2838,10 +2856,10 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2838
2856
|
Sn,
|
|
2839
2857
|
{
|
|
2840
2858
|
plan: p,
|
|
2841
|
-
isSelected: p.id ===
|
|
2859
|
+
isSelected: p.id === E,
|
|
2842
2860
|
t: h,
|
|
2843
2861
|
onSelect: (m) => {
|
|
2844
|
-
const y = x.find((
|
|
2862
|
+
const y = x.find((Q) => Q.id === m);
|
|
2845
2863
|
y && (T?.trackPlanSelected?.({
|
|
2846
2864
|
planId: y.id,
|
|
2847
2865
|
planName: y.title
|
|
@@ -2871,7 +2889,7 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2871
2889
|
)
|
|
2872
2890
|
}
|
|
2873
2891
|
) : null;
|
|
2874
|
-
}, Ln = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Bn = (t, o) =>
|
|
2892
|
+
}, Ln = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Bn = (t, o) => yr[t]?.[o] ?? o, Dn = {
|
|
2875
2893
|
fullName: "",
|
|
2876
2894
|
phone: "",
|
|
2877
2895
|
gender: "",
|
|
@@ -2891,166 +2909,166 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
2891
2909
|
onProceedGuidance: h,
|
|
2892
2910
|
proceedHref: T,
|
|
2893
2911
|
originalPriceLabel: v,
|
|
2894
|
-
discountedPriceLabel:
|
|
2912
|
+
discountedPriceLabel: O,
|
|
2895
2913
|
googleMapsApiKey: x = "",
|
|
2896
|
-
atlasSearchLocalities:
|
|
2914
|
+
atlasSearchLocalities: E,
|
|
2897
2915
|
googleMapsAutocompleteEnabled: u,
|
|
2898
|
-
analytics:
|
|
2916
|
+
analytics: I
|
|
2899
2917
|
}) => {
|
|
2900
|
-
const b =
|
|
2918
|
+
const b = Ie(), F = nt(), p = b !== null, m = p ? b.locale : o, y = m ?? F?.locale ?? "en", [Q, z] = U(y), W = p ? b.locale : Q, B = p ? b.setLocale : z, [M, P] = U(!1), S = $(null), Z = $(m), G = $(
|
|
2901
2919
|
F?.locale
|
|
2902
2920
|
);
|
|
2903
|
-
|
|
2921
|
+
J(() => {
|
|
2904
2922
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
2905
2923
|
}, []);
|
|
2906
|
-
const
|
|
2907
|
-
|
|
2908
|
-
m && Z.current !== m &&
|
|
2909
|
-
}, [m,
|
|
2924
|
+
const D = (C) => Bn(W, C);
|
|
2925
|
+
J(() => {
|
|
2926
|
+
m && Z.current !== m && B(m), Z.current = m;
|
|
2927
|
+
}, [m, B]), J(() => {
|
|
2910
2928
|
if (m) return;
|
|
2911
2929
|
const C = F?.locale;
|
|
2912
|
-
C &&
|
|
2913
|
-
}, [F?.locale, m,
|
|
2914
|
-
const [j, H] =
|
|
2930
|
+
C && G.current !== C && B(C), G.current = C;
|
|
2931
|
+
}, [F?.locale, m, B]);
|
|
2932
|
+
const [j, H] = U({
|
|
2915
2933
|
...Dn,
|
|
2916
2934
|
..._,
|
|
2917
2935
|
phone: _?.phone ?? ""
|
|
2918
|
-
}), Y = p ? b?.config.isGlobal ?? !0 : !0, [
|
|
2936
|
+
}), Y = p ? b?.config.isGlobal ?? !0 : !0, [re, ae] = U(
|
|
2919
2937
|
Y ? "+1" : "+91"
|
|
2920
2938
|
);
|
|
2921
|
-
|
|
2922
|
-
|
|
2939
|
+
J(() => {
|
|
2940
|
+
ae(Y ? "+1" : "+91");
|
|
2923
2941
|
}, [Y]);
|
|
2924
|
-
const
|
|
2925
|
-
|
|
2942
|
+
const ne = p ? b.formValues : j, ce = p ? b.setFormValues : H, de = p ? b.goToPage : d, ee = p ? b.onProceed : w, X = p ? b.onProceedGuidance : h, he = p ? b.config.proceedHref : T, we = p ? b.config.originalPriceLabel : v, ve = p ? b.config.discountedPriceLabel : O, oe = p ? b.config.showLanguageSelector ?? !0 : c, ie = (p ? b?.config?.analytics : I) ?? I;
|
|
2943
|
+
J(() => {
|
|
2926
2944
|
if (!M) return;
|
|
2927
|
-
const C = (
|
|
2928
|
-
S.current && !S.current.contains(
|
|
2945
|
+
const C = (_e) => {
|
|
2946
|
+
S.current && !S.current.contains(_e.target) && P(!1);
|
|
2929
2947
|
};
|
|
2930
2948
|
return document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
|
|
2931
2949
|
}, [M]);
|
|
2932
|
-
const [
|
|
2933
|
-
|
|
2934
|
-
}, []),
|
|
2935
|
-
if (!
|
|
2936
|
-
|
|
2937
|
-
planId:
|
|
2938
|
-
planName:
|
|
2939
|
-
price:
|
|
2950
|
+
const [pe, se] = U(!1), [q, Te] = U(null), ge = $(null), ue = ye((C) => {
|
|
2951
|
+
ge.current = C, se(!0);
|
|
2952
|
+
}, []), xe = ye(() => {
|
|
2953
|
+
if (!ge.current || !q) return;
|
|
2954
|
+
ie?.trackPlanProceedClicked?.({
|
|
2955
|
+
planId: q.id,
|
|
2956
|
+
planName: q.title,
|
|
2957
|
+
price: q.price,
|
|
2940
2958
|
currency: Y ? "USD" : "INR"
|
|
2941
2959
|
});
|
|
2942
|
-
const C = { ...
|
|
2943
|
-
|
|
2944
|
-
}, [
|
|
2960
|
+
const C = { ...ge.current, _selectedPlan: q };
|
|
2961
|
+
q.id === Pr && X ? X(C) : ee?.(C), se(!1), ge.current = null;
|
|
2962
|
+
}, [q, ee, X]), ke = b?.config.imageComponent ?? Ye, Pe = oe ? /* @__PURE__ */ r.jsxs("div", { className: be.langDropdownWrap, ref: S, children: [
|
|
2945
2963
|
/* @__PURE__ */ r.jsxs(
|
|
2946
2964
|
"button",
|
|
2947
2965
|
{
|
|
2948
2966
|
type: "button",
|
|
2949
|
-
className:
|
|
2967
|
+
className: be.langTrigger,
|
|
2950
2968
|
onClick: () => {
|
|
2951
|
-
|
|
2969
|
+
ie?.trackLanguageClickedFe?.({ language: W }), P((C) => !C);
|
|
2952
2970
|
},
|
|
2953
2971
|
"aria-expanded": M,
|
|
2954
2972
|
"aria-haspopup": "listbox",
|
|
2955
2973
|
id: "kundli-form-lang",
|
|
2956
|
-
"aria-label":
|
|
2974
|
+
"aria-label": D("language"),
|
|
2957
2975
|
children: [
|
|
2958
2976
|
/* @__PURE__ */ r.jsx(
|
|
2959
|
-
|
|
2977
|
+
ke,
|
|
2960
2978
|
{
|
|
2961
2979
|
src: Ln,
|
|
2962
2980
|
alt: "",
|
|
2963
|
-
className:
|
|
2981
|
+
className: be.langIcon,
|
|
2964
2982
|
width: 16,
|
|
2965
2983
|
height: 16,
|
|
2966
2984
|
loading: "eager"
|
|
2967
2985
|
}
|
|
2968
2986
|
),
|
|
2969
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2987
|
+
/* @__PURE__ */ r.jsx("span", { className: be.langLabel, children: fr[W] })
|
|
2970
2988
|
]
|
|
2971
2989
|
}
|
|
2972
2990
|
),
|
|
2973
2991
|
M && /* @__PURE__ */ r.jsx(
|
|
2974
2992
|
"ul",
|
|
2975
2993
|
{
|
|
2976
|
-
className:
|
|
2994
|
+
className: be.langMenu,
|
|
2977
2995
|
role: "listbox",
|
|
2978
2996
|
"aria-labelledby": "kundli-form-lang",
|
|
2979
2997
|
"aria-activedescendant": `kundli-form-lang-option-${W}`,
|
|
2980
|
-
children:
|
|
2998
|
+
children: br.map((C) => /* @__PURE__ */ r.jsx(
|
|
2981
2999
|
"li",
|
|
2982
3000
|
{
|
|
2983
3001
|
id: `kundli-form-lang-option-${C}`,
|
|
2984
3002
|
role: "option",
|
|
2985
3003
|
"aria-selected": C === W,
|
|
2986
|
-
className:
|
|
3004
|
+
className: be.langOption,
|
|
2987
3005
|
onClick: () => {
|
|
2988
|
-
|
|
3006
|
+
ie?.trackLanguageChangedFe?.({ newLanguage: C }), B(C), P(!1);
|
|
2989
3007
|
},
|
|
2990
|
-
children:
|
|
3008
|
+
children: fr[C]
|
|
2991
3009
|
},
|
|
2992
3010
|
C
|
|
2993
3011
|
))
|
|
2994
3012
|
}
|
|
2995
3013
|
)
|
|
2996
3014
|
] }) : null;
|
|
2997
|
-
return /* @__PURE__ */ r.jsxs("div", { className: `${
|
|
3015
|
+
return /* @__PURE__ */ r.jsxs("div", { className: `${be.container} ${t}`, children: [
|
|
2998
3016
|
/* @__PURE__ */ r.jsx(
|
|
2999
3017
|
Ia,
|
|
3000
3018
|
{
|
|
3001
|
-
t:
|
|
3019
|
+
t: D,
|
|
3002
3020
|
logoUrl: p ? b.config.logoUrl : void 0,
|
|
3003
|
-
languageSelector:
|
|
3004
|
-
className:
|
|
3021
|
+
languageSelector: Pe,
|
|
3022
|
+
className: be.kundliHeaderNoBorder
|
|
3005
3023
|
}
|
|
3006
3024
|
),
|
|
3007
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
3008
|
-
/* @__PURE__ */ r.jsxs("main", { className:
|
|
3009
|
-
/* @__PURE__ */ r.jsx(mt, { t:
|
|
3025
|
+
/* @__PURE__ */ r.jsx("div", { className: be.headerSeparator, "aria-hidden": !0 }),
|
|
3026
|
+
/* @__PURE__ */ r.jsxs("main", { className: be.main, children: [
|
|
3027
|
+
/* @__PURE__ */ r.jsx(mt, { t: D, onBack: de }),
|
|
3010
3028
|
/* @__PURE__ */ r.jsx(
|
|
3011
3029
|
ba,
|
|
3012
3030
|
{
|
|
3013
|
-
t:
|
|
3014
|
-
values:
|
|
3015
|
-
onChange:
|
|
3031
|
+
t: D,
|
|
3032
|
+
values: ne,
|
|
3033
|
+
onChange: ce,
|
|
3016
3034
|
googleMapsApiKey: x,
|
|
3017
|
-
atlasSearchLocalities:
|
|
3035
|
+
atlasSearchLocalities: E,
|
|
3018
3036
|
googleMapsAutocompleteEnabled: u,
|
|
3019
|
-
phoneIsdCode:
|
|
3020
|
-
onPhoneIsdCodeChange:
|
|
3037
|
+
phoneIsdCode: re,
|
|
3038
|
+
onPhoneIsdCodeChange: ae
|
|
3021
3039
|
}
|
|
3022
3040
|
)
|
|
3023
3041
|
] }),
|
|
3024
3042
|
/* @__PURE__ */ r.jsx(
|
|
3025
3043
|
Ra,
|
|
3026
3044
|
{
|
|
3027
|
-
t:
|
|
3028
|
-
values:
|
|
3029
|
-
phoneIsdCode:
|
|
3045
|
+
t: D,
|
|
3046
|
+
values: ne,
|
|
3047
|
+
phoneIsdCode: re,
|
|
3030
3048
|
onProceed: ee,
|
|
3031
|
-
onProceedGuidance:
|
|
3032
|
-
href:
|
|
3033
|
-
originalPriceLabel:
|
|
3034
|
-
discountedPriceLabel:
|
|
3035
|
-
analytics:
|
|
3036
|
-
showPlanSheet:
|
|
3037
|
-
confirmPlan:
|
|
3038
|
-
planSheetOpen:
|
|
3039
|
-
selectedPlan:
|
|
3049
|
+
onProceedGuidance: X,
|
|
3050
|
+
href: he,
|
|
3051
|
+
originalPriceLabel: we,
|
|
3052
|
+
discountedPriceLabel: ve,
|
|
3053
|
+
analytics: ie,
|
|
3054
|
+
showPlanSheet: ue,
|
|
3055
|
+
confirmPlan: xe,
|
|
3056
|
+
planSheetOpen: pe,
|
|
3057
|
+
selectedPlan: q
|
|
3040
3058
|
}
|
|
3041
3059
|
),
|
|
3042
3060
|
b?.config.variant === "v1" && /* @__PURE__ */ r.jsx(
|
|
3043
3061
|
In,
|
|
3044
3062
|
{
|
|
3045
|
-
isOpen:
|
|
3046
|
-
onClose: () =>
|
|
3047
|
-
selectedPlan:
|
|
3063
|
+
isOpen: pe,
|
|
3064
|
+
onClose: () => se(!1),
|
|
3065
|
+
selectedPlan: q,
|
|
3048
3066
|
onSelectPlan: Te,
|
|
3049
3067
|
onProceed: () => {
|
|
3050
|
-
|
|
3068
|
+
xe?.();
|
|
3051
3069
|
},
|
|
3052
|
-
t:
|
|
3053
|
-
analytics:
|
|
3070
|
+
t: D,
|
|
3071
|
+
analytics: ie
|
|
3054
3072
|
}
|
|
3055
3073
|
)
|
|
3056
3074
|
] });
|
|
@@ -3101,31 +3119,31 @@ const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr),
|
|
|
3101
3119
|
};
|
|
3102
3120
|
export {
|
|
3103
3121
|
Da as C,
|
|
3104
|
-
|
|
3122
|
+
Ye as D,
|
|
3105
3123
|
mt as F,
|
|
3106
3124
|
Mn as I,
|
|
3107
3125
|
Hn as K,
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3126
|
+
fr as L,
|
|
3127
|
+
Pr as P,
|
|
3128
|
+
br as S,
|
|
3111
3129
|
ba as U,
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3130
|
+
kr as a,
|
|
3131
|
+
rr as b,
|
|
3132
|
+
Wn as c,
|
|
3133
|
+
Gn as d,
|
|
3134
|
+
st as e,
|
|
3135
|
+
lt as f,
|
|
3118
3136
|
ot as g,
|
|
3119
|
-
|
|
3137
|
+
Ie as h,
|
|
3120
3138
|
Un as i,
|
|
3121
|
-
|
|
3139
|
+
Kn as j,
|
|
3122
3140
|
r as k,
|
|
3123
3141
|
Ia as l,
|
|
3124
3142
|
Ra as m,
|
|
3125
3143
|
In as n,
|
|
3126
3144
|
$n as r,
|
|
3127
3145
|
it as s,
|
|
3128
|
-
|
|
3129
|
-
|
|
3146
|
+
yr as t,
|
|
3147
|
+
nt as u
|
|
3130
3148
|
};
|
|
3131
|
-
//# sourceMappingURL=analytics-
|
|
3149
|
+
//# sourceMappingURL=analytics-BswF6AK5.js.map
|