@srimandir/kundli-generator 7.5.3 → 7.5.5
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-Fyq-Amgh.js → analytics-C6U9JxHz.js} +551 -547
- package/dist/analytics-C6U9JxHz.js.map +1 -0
- package/dist/components/KundliForm/KundliForm.d.ts +2 -0
- package/dist/{criticalCss-ZT-kr9NW.js → criticalCss-BIM48wlh.js} +411 -400
- package/dist/{criticalCss-ZT-kr9NW.js.map → criticalCss-BIM48wlh.js.map} +1 -1
- package/dist/form-entry.js +1 -1
- package/dist/kundli-generator.js +2 -2
- package/dist/page-entry.js +2 -2
- package/package.json +2 -2
- package/dist/analytics-Fyq-Amgh.js.map +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import Ze, { useContext as er, createContext as _r, useState as U, useRef as
|
|
2
|
-
import { FormSectionHeader as $r, FooterCTAButton as Ur, FooterShell as Gr, CircularMarquee as Kr, footerShellStyles as
|
|
3
|
-
var We = { exports: {} },
|
|
1
|
+
import Ze, { useContext as er, createContext as _r, useState as U, useRef as O, useEffect as z, useMemo as Xe, useCallback as we } from "react";
|
|
2
|
+
import { FormSectionHeader as $r, FooterCTAButton as Ur, FooterShell as Gr, CircularMarquee as Kr, footerShellStyles as Te, PageHeader as Wr } from "@srimandir/astrology-common";
|
|
3
|
+
var We = { exports: {} }, Me = {};
|
|
4
4
|
var dr;
|
|
5
5
|
function Hr() {
|
|
6
|
-
if (dr) return
|
|
6
|
+
if (dr) return Me;
|
|
7
7
|
dr = 1;
|
|
8
|
-
var t = Ze, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
9
|
-
function g(T, v,
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
for (
|
|
13
|
-
if (T && T.defaultProps) for (
|
|
8
|
+
var t = Ze, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
|
+
function g(T, v, F) {
|
|
10
|
+
var x, E = {}, u = null, I = null;
|
|
11
|
+
F !== void 0 && (u = "" + F), 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
14
|
return { $$typeof: o, type: T, key: u, ref: I, props: E, _owner: b.current };
|
|
15
15
|
}
|
|
16
|
-
return
|
|
16
|
+
return Me.Fragment = c, Me.jsx = g, Me.jsxs = g, Me;
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var $e = {};
|
|
19
19
|
var ur;
|
|
20
20
|
function Yr() {
|
|
21
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"), b = /* @__PURE__ */ Symbol.for("react.strict_mode"),
|
|
22
|
+
var t = Ze, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), d = /* @__PURE__ */ Symbol.for("react.fragment"), b = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), g = /* @__PURE__ */ Symbol.for("react.provider"), T = /* @__PURE__ */ Symbol.for("react.context"), v = /* @__PURE__ */ Symbol.for("react.forward_ref"), F = /* @__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"), h = Symbol.iterator, M = "@@iterator";
|
|
23
23
|
function f(e) {
|
|
24
24
|
if (e === null || typeof e != "object")
|
|
25
25
|
return null;
|
|
@@ -31,10 +31,10 @@ function Yr() {
|
|
|
31
31
|
{
|
|
32
32
|
for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++)
|
|
33
33
|
l[p - 1] = arguments[p];
|
|
34
|
-
|
|
34
|
+
Z("error", e, l);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Z(e, i, l) {
|
|
38
38
|
{
|
|
39
39
|
var p = m.ReactDebugCurrentFrame, N = p.getStackAddendum();
|
|
40
40
|
N !== "" && (i += "%s", l = l.concat([N]));
|
|
@@ -44,16 +44,16 @@ function Yr() {
|
|
|
44
44
|
L.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, L);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
var
|
|
47
|
+
var q = !1, W = !1, B = !1, $ = !1, A = !1, S;
|
|
48
48
|
S = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
|
-
function
|
|
50
|
-
return !!(typeof e == "string" || typeof e == "function" || e === d || e ===
|
|
49
|
+
function ee(e) {
|
|
50
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === w || A || e === b || e === F || e === x || $ || e === I || q || W || B || typeof e == "object" && e !== null && (e.$$typeof === u || e.$$typeof === E || e.$$typeof === g || 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 V(e, i, l) {
|
|
57
57
|
var p = e.displayName;
|
|
58
58
|
if (p)
|
|
59
59
|
return p;
|
|
@@ -75,13 +75,13 @@ function Yr() {
|
|
|
75
75
|
return "Fragment";
|
|
76
76
|
case c:
|
|
77
77
|
return "Portal";
|
|
78
|
-
case
|
|
78
|
+
case w:
|
|
79
79
|
return "Profiler";
|
|
80
80
|
case b:
|
|
81
81
|
return "StrictMode";
|
|
82
|
-
case
|
|
82
|
+
case F:
|
|
83
83
|
return "Suspense";
|
|
84
|
-
case
|
|
84
|
+
case x:
|
|
85
85
|
return "SuspenseList";
|
|
86
86
|
}
|
|
87
87
|
if (typeof e == "object")
|
|
@@ -93,7 +93,7 @@ function Yr() {
|
|
|
93
93
|
var l = e;
|
|
94
94
|
return D(l._context) + ".Provider";
|
|
95
95
|
case v:
|
|
96
|
-
return
|
|
96
|
+
return V(e, e.render, "ForwardRef");
|
|
97
97
|
case E:
|
|
98
98
|
var p = e.displayName || null;
|
|
99
99
|
return p !== null ? p : j(e.type) || "Memo";
|
|
@@ -108,18 +108,18 @@ function Yr() {
|
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
111
|
-
var G = Object.assign, H = 0,
|
|
112
|
-
function
|
|
111
|
+
var G = Object.assign, H = 0, J, xe, re, Q, ae, oe, _e;
|
|
112
|
+
function de() {
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
de.__reactDisabledLog = !0;
|
|
115
115
|
function ue() {
|
|
116
116
|
{
|
|
117
117
|
if (H === 0) {
|
|
118
|
-
|
|
118
|
+
J = console.log, xe = console.info, re = console.warn, Q = console.error, ae = console.group, oe = console.groupCollapsed, _e = console.groupEnd;
|
|
119
119
|
var e = {
|
|
120
120
|
configurable: !0,
|
|
121
121
|
enumerable: !0,
|
|
122
|
-
value:
|
|
122
|
+
value: de,
|
|
123
123
|
writable: !0
|
|
124
124
|
};
|
|
125
125
|
Object.defineProperties(console, {
|
|
@@ -145,64 +145,64 @@ function Yr() {
|
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
147
147
|
log: G({}, e, {
|
|
148
|
-
value:
|
|
148
|
+
value: J
|
|
149
149
|
}),
|
|
150
150
|
info: G({}, e, {
|
|
151
|
-
value:
|
|
151
|
+
value: xe
|
|
152
152
|
}),
|
|
153
153
|
warn: G({}, e, {
|
|
154
|
-
value:
|
|
154
|
+
value: re
|
|
155
155
|
}),
|
|
156
156
|
error: G({}, e, {
|
|
157
|
-
value:
|
|
157
|
+
value: Q
|
|
158
158
|
}),
|
|
159
159
|
group: G({}, e, {
|
|
160
|
-
value:
|
|
160
|
+
value: ae
|
|
161
161
|
}),
|
|
162
162
|
groupCollapsed: G({}, e, {
|
|
163
|
-
value:
|
|
163
|
+
value: oe
|
|
164
164
|
}),
|
|
165
165
|
groupEnd: G({}, e, {
|
|
166
|
-
value:
|
|
166
|
+
value: _e
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
170
|
H < 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 ie = m.ReactCurrentDispatcher, fe;
|
|
174
|
+
function X(e, i, l) {
|
|
175
175
|
{
|
|
176
|
-
if (
|
|
176
|
+
if (fe === void 0)
|
|
177
177
|
try {
|
|
178
178
|
throw Error();
|
|
179
179
|
} catch (N) {
|
|
180
180
|
var p = N.stack.trim().match(/\n( *(at )?)/);
|
|
181
|
-
|
|
181
|
+
fe = p && p[1] || "";
|
|
182
182
|
}
|
|
183
183
|
return `
|
|
184
|
-
` +
|
|
184
|
+
` + fe + e;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var me = !1, se;
|
|
188
188
|
{
|
|
189
|
-
var
|
|
190
|
-
|
|
189
|
+
var le = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
|
+
se = new le();
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
if (!e ||
|
|
192
|
+
function Ce(e, i) {
|
|
193
|
+
if (!e || me)
|
|
194
194
|
return "";
|
|
195
195
|
{
|
|
196
|
-
var l =
|
|
196
|
+
var l = se.get(e);
|
|
197
197
|
if (l !== void 0)
|
|
198
198
|
return l;
|
|
199
199
|
}
|
|
200
200
|
var p;
|
|
201
|
-
|
|
201
|
+
me = !0;
|
|
202
202
|
var N = Error.prepareStackTrace;
|
|
203
203
|
Error.prepareStackTrace = void 0;
|
|
204
204
|
var L;
|
|
205
|
-
L =
|
|
205
|
+
L = ie.current, ie.current = null, ue();
|
|
206
206
|
try {
|
|
207
207
|
if (i) {
|
|
208
208
|
var C = function() {
|
|
@@ -215,116 +215,116 @@ function Yr() {
|
|
|
215
215
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
216
216
|
try {
|
|
217
217
|
Reflect.construct(C, []);
|
|
218
|
-
} catch (
|
|
219
|
-
p =
|
|
218
|
+
} catch (ce) {
|
|
219
|
+
p = ce;
|
|
220
220
|
}
|
|
221
221
|
Reflect.construct(e, [], C);
|
|
222
222
|
} else {
|
|
223
223
|
try {
|
|
224
224
|
C.call();
|
|
225
|
-
} catch (
|
|
226
|
-
p =
|
|
225
|
+
} catch (ce) {
|
|
226
|
+
p = ce;
|
|
227
227
|
}
|
|
228
228
|
e.call(C.prototype);
|
|
229
229
|
}
|
|
230
230
|
} else {
|
|
231
231
|
try {
|
|
232
232
|
throw Error();
|
|
233
|
-
} catch (
|
|
234
|
-
p =
|
|
233
|
+
} catch (ce) {
|
|
234
|
+
p = ce;
|
|
235
235
|
}
|
|
236
236
|
e();
|
|
237
237
|
}
|
|
238
|
-
} catch (
|
|
239
|
-
if (
|
|
240
|
-
for (var
|
|
241
|
-
`),
|
|
242
|
-
`), K =
|
|
243
|
-
|
|
244
|
-
for (; K >= 1 &&
|
|
245
|
-
if (
|
|
246
|
-
if (K !== 1 ||
|
|
238
|
+
} catch (ce) {
|
|
239
|
+
if (ce && p && typeof ce.stack == "string") {
|
|
240
|
+
for (var k = ce.stack.split(`
|
|
241
|
+
`), ne = p.stack.split(`
|
|
242
|
+
`), K = k.length - 1, Y = ne.length - 1; K >= 1 && Y >= 0 && k[K] !== ne[Y]; )
|
|
243
|
+
Y--;
|
|
244
|
+
for (; K >= 1 && Y >= 0; K--, Y--)
|
|
245
|
+
if (k[K] !== ne[Y]) {
|
|
246
|
+
if (K !== 1 || Y !== 1)
|
|
247
247
|
do
|
|
248
|
-
if (K--,
|
|
249
|
-
var
|
|
250
|
-
` +
|
|
251
|
-
return e.displayName &&
|
|
248
|
+
if (K--, Y--, Y < 0 || k[K] !== ne[Y]) {
|
|
249
|
+
var he = `
|
|
250
|
+
` + k[K].replace(" at new ", " at ");
|
|
251
|
+
return e.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", e.displayName)), typeof e == "function" && se.set(e, he), he;
|
|
252
252
|
}
|
|
253
|
-
while (K >= 1 &&
|
|
253
|
+
while (K >= 1 && Y >= 0);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
} finally {
|
|
258
|
-
|
|
258
|
+
me = !1, ie.current = L, be(), Error.prepareStackTrace = N;
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
return typeof e == "function" &&
|
|
260
|
+
var Ee = e ? e.displayName || e.name : "", je = Ee ? X(Ee) : "";
|
|
261
|
+
return typeof e == "function" && se.set(e, je), je;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
264
|
-
return
|
|
263
|
+
function te(e, i, l) {
|
|
264
|
+
return Ce(e, !1);
|
|
265
265
|
}
|
|
266
266
|
function Pe(e) {
|
|
267
267
|
var i = e.prototype;
|
|
268
268
|
return !!(i && i.isReactComponent);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function ye(e, i, l) {
|
|
271
271
|
if (e == null)
|
|
272
272
|
return "";
|
|
273
273
|
if (typeof e == "function")
|
|
274
|
-
return
|
|
274
|
+
return Ce(e, Pe(e));
|
|
275
275
|
if (typeof e == "string")
|
|
276
|
-
return
|
|
276
|
+
return X(e);
|
|
277
277
|
switch (e) {
|
|
278
|
-
case
|
|
279
|
-
return
|
|
280
|
-
case
|
|
281
|
-
return
|
|
278
|
+
case F:
|
|
279
|
+
return X("Suspense");
|
|
280
|
+
case x:
|
|
281
|
+
return X("SuspenseList");
|
|
282
282
|
}
|
|
283
283
|
if (typeof e == "object")
|
|
284
284
|
switch (e.$$typeof) {
|
|
285
285
|
case v:
|
|
286
|
-
return
|
|
286
|
+
return te(e.render);
|
|
287
287
|
case E:
|
|
288
|
-
return
|
|
288
|
+
return ye(e.type, i, l);
|
|
289
289
|
case u: {
|
|
290
290
|
var p = e, N = p._payload, L = p._init;
|
|
291
291
|
try {
|
|
292
|
-
return
|
|
292
|
+
return ye(L(N), i, l);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
return "";
|
|
298
298
|
}
|
|
299
|
-
var Ae = Object.prototype.hasOwnProperty,
|
|
300
|
-
function
|
|
299
|
+
var Ae = Object.prototype.hasOwnProperty, ge = {}, ve = m.ReactDebugCurrentFrame;
|
|
300
|
+
function P(e) {
|
|
301
301
|
if (e) {
|
|
302
|
-
var i = e._owner, l =
|
|
303
|
-
|
|
302
|
+
var i = e._owner, l = ye(e.type, e._source, i ? i.type : null);
|
|
303
|
+
ve.setExtraStackFrame(l);
|
|
304
304
|
} else
|
|
305
|
-
|
|
305
|
+
ve.setExtraStackFrame(null);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function Ne(e, i, l, p, N) {
|
|
308
308
|
{
|
|
309
309
|
var L = Function.call.bind(Ae);
|
|
310
310
|
for (var C in e)
|
|
311
311
|
if (L(e, C)) {
|
|
312
|
-
var
|
|
312
|
+
var k = void 0;
|
|
313
313
|
try {
|
|
314
314
|
if (typeof e[C] != "function") {
|
|
315
|
-
var
|
|
316
|
-
throw
|
|
315
|
+
var ne = Error((p || "React class") + ": " + l + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
316
|
+
throw ne.name = "Invariant Violation", ne;
|
|
317
317
|
}
|
|
318
|
-
|
|
318
|
+
k = e[C](i, C, p, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
319
|
} catch (K) {
|
|
320
|
-
|
|
320
|
+
k = K;
|
|
321
321
|
}
|
|
322
|
-
|
|
322
|
+
k && !(k instanceof Error) && (P(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).", p || "React class", l, C, typeof k), P(null)), k instanceof Error && !(k.message in ge) && (ge[k.message] = !0, P(N), y("Failed %s type: %s", l, k.message), P(null));
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
var Ge = Array.isArray;
|
|
327
|
-
function
|
|
327
|
+
function Se(e) {
|
|
328
328
|
return Ge(e);
|
|
329
329
|
}
|
|
330
330
|
function Ke(e) {
|
|
@@ -333,27 +333,27 @@ function Yr() {
|
|
|
333
333
|
return l;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Be(e) {
|
|
337
337
|
try {
|
|
338
|
-
return
|
|
338
|
+
return De(e), !1;
|
|
339
339
|
} catch {
|
|
340
340
|
return !0;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function De(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.", Ke(e)),
|
|
346
|
+
function Oe(e) {
|
|
347
|
+
if (Be(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)), De(e);
|
|
349
349
|
}
|
|
350
350
|
var a = m.ReactCurrentOwner, s = {
|
|
351
351
|
key: !0,
|
|
352
352
|
ref: !0,
|
|
353
353
|
__self: !0,
|
|
354
354
|
__source: !0
|
|
355
|
-
}, R,
|
|
356
|
-
function
|
|
355
|
+
}, R, pe;
|
|
356
|
+
function Fe(e) {
|
|
357
357
|
if (Ae.call(e, "ref")) {
|
|
358
358
|
var i = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
359
359
|
if (i && i.isReactWarning)
|
|
@@ -386,7 +386,7 @@ function Yr() {
|
|
|
386
386
|
function jr(e, i) {
|
|
387
387
|
{
|
|
388
388
|
var l = function() {
|
|
389
|
-
|
|
389
|
+
pe || (pe = !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
391
|
l.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
392
392
|
get: l,
|
|
@@ -395,7 +395,7 @@ function Yr() {
|
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
var Tr = function(e, i, l, p, N, L, C) {
|
|
398
|
-
var
|
|
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
|
|
@@ -406,27 +406,27 @@ function Yr() {
|
|
|
406
406
|
// Record the component responsible for creating this element.
|
|
407
407
|
_owner: L
|
|
408
408
|
};
|
|
409
|
-
return
|
|
409
|
+
return k._store = {}, Object.defineProperty(k._store, "validated", {
|
|
410
410
|
configurable: !1,
|
|
411
411
|
enumerable: !1,
|
|
412
412
|
writable: !0,
|
|
413
413
|
value: !1
|
|
414
|
-
}), Object.defineProperty(
|
|
414
|
+
}), Object.defineProperty(k, "_self", {
|
|
415
415
|
configurable: !1,
|
|
416
416
|
enumerable: !1,
|
|
417
417
|
writable: !1,
|
|
418
418
|
value: p
|
|
419
|
-
}), Object.defineProperty(
|
|
419
|
+
}), Object.defineProperty(k, "_source", {
|
|
420
420
|
configurable: !1,
|
|
421
421
|
enumerable: !1,
|
|
422
422
|
writable: !1,
|
|
423
423
|
value: N
|
|
424
|
-
}), Object.freeze && (Object.freeze(
|
|
424
|
+
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
|
425
425
|
};
|
|
426
426
|
function Nr(e, i, l, p, N) {
|
|
427
427
|
{
|
|
428
|
-
var L, C = {},
|
|
429
|
-
l !== void 0 && (
|
|
428
|
+
var L, C = {}, k = null, ne = null;
|
|
429
|
+
l !== void 0 && (Oe(l), k = "" + l), qe(i) && (Oe(i.key), k = "" + i.key), Fe(i) && (ne = i.ref, Ar(i, N));
|
|
430
430
|
for (L in i)
|
|
431
431
|
Ae.call(i, L) && !s.hasOwnProperty(L) && (C[L] = i[L]);
|
|
432
432
|
if (e && e.defaultProps) {
|
|
@@ -434,17 +434,17 @@ function Yr() {
|
|
|
434
434
|
for (L in K)
|
|
435
435
|
C[L] === void 0 && (C[L] = K[L]);
|
|
436
436
|
}
|
|
437
|
-
if (
|
|
438
|
-
var
|
|
439
|
-
|
|
437
|
+
if (k || ne) {
|
|
438
|
+
var Y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
439
|
+
k && Cr(C, Y), ne && jr(C, Y);
|
|
440
440
|
}
|
|
441
|
-
return Tr(e,
|
|
441
|
+
return Tr(e, k, ne, N, p, a.current, C);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
var Ve = m.ReactCurrentOwner, ar = m.ReactDebugCurrentFrame;
|
|
445
|
-
function
|
|
445
|
+
function Re(e) {
|
|
446
446
|
if (e) {
|
|
447
|
-
var i = e._owner, l =
|
|
447
|
+
var i = e._owner, l = ye(e.type, e._source, i ? i.type : null);
|
|
448
448
|
ar.setExtraStackFrame(l);
|
|
449
449
|
} else
|
|
450
450
|
ar.setExtraStackFrame(null);
|
|
@@ -492,14 +492,14 @@ Check the top-level render call using <` + l + ">.");
|
|
|
492
492
|
return;
|
|
493
493
|
or[l] = !0;
|
|
494
494
|
var p = "";
|
|
495
|
-
e && e._owner && e._owner !== Ve.current && (p = " It was passed a child from " + j(e._owner.type) + "."),
|
|
495
|
+
e && e._owner && e._owner !== Ve.current && (p = " It was passed a child from " + j(e._owner.type) + "."), Re(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, p), Re(null);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
function sr(e, i) {
|
|
499
499
|
{
|
|
500
500
|
if (typeof e != "object")
|
|
501
501
|
return;
|
|
502
|
-
if (
|
|
502
|
+
if (Se(e))
|
|
503
503
|
for (var l = 0; l < e.length; l++) {
|
|
504
504
|
var p = e[l];
|
|
505
505
|
Je(p) && ir(p, i);
|
|
@@ -530,7 +530,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
530
530
|
return;
|
|
531
531
|
if (l) {
|
|
532
532
|
var p = j(i);
|
|
533
|
-
|
|
533
|
+
Ne(l, e.props, "prop", p, e);
|
|
534
534
|
} else if (i.PropTypes !== void 0 && !ze) {
|
|
535
535
|
ze = !0;
|
|
536
536
|
var N = j(i);
|
|
@@ -544,56 +544,56 @@ Check the top-level render call using <` + l + ">.");
|
|
|
544
544
|
for (var i = Object.keys(e.props), l = 0; l < i.length; l++) {
|
|
545
545
|
var p = i[l];
|
|
546
546
|
if (p !== "children" && p !== "key") {
|
|
547
|
-
|
|
547
|
+
Re(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), Re(null);
|
|
548
548
|
break;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
e.ref !== null && (
|
|
551
|
+
e.ref !== null && (Re(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), Re(null));
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
var lr = {};
|
|
555
555
|
function cr(e, i, l, p, N, L) {
|
|
556
556
|
{
|
|
557
|
-
var C =
|
|
557
|
+
var C = ee(e);
|
|
558
558
|
if (!C) {
|
|
559
|
-
var
|
|
560
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
561
|
-
var
|
|
562
|
-
|
|
559
|
+
var k = "";
|
|
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 ne = Sr();
|
|
562
|
+
ne ? k += ne : k += nr();
|
|
563
563
|
var K;
|
|
564
|
-
e === null ? K = "null" :
|
|
564
|
+
e === null ? K = "null" : Se(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
|
|
566
|
+
var Y = Nr(e, i, l, N, L);
|
|
567
|
+
if (Y == null)
|
|
568
|
+
return Y;
|
|
569
569
|
if (C) {
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
570
|
+
var he = i.children;
|
|
571
|
+
if (he !== void 0)
|
|
572
572
|
if (p)
|
|
573
|
-
if (
|
|
574
|
-
for (var
|
|
575
|
-
sr(
|
|
576
|
-
Object.freeze && Object.freeze(
|
|
573
|
+
if (Se(he)) {
|
|
574
|
+
for (var Ee = 0; Ee < he.length; Ee++)
|
|
575
|
+
sr(he[Ee], e);
|
|
576
|
+
Object.freeze && Object.freeze(he);
|
|
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
|
-
sr(
|
|
580
|
+
sr(he, e);
|
|
581
581
|
}
|
|
582
582
|
if (Ae.call(i, "key")) {
|
|
583
|
-
var
|
|
583
|
+
var je = j(e), ce = Object.keys(i).filter(function(Mr) {
|
|
584
584
|
return Mr !== "key";
|
|
585
|
-
}), Qe =
|
|
586
|
-
if (!lr[
|
|
587
|
-
var Fr =
|
|
585
|
+
}), Qe = ce.length > 0 ? "{key: someKey, " + ce.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
|
+
if (!lr[je + Qe]) {
|
|
587
|
+
var Fr = ce.length > 0 ? "{" + ce.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} />`, Qe,
|
|
593
|
+
<%s key={someKey} {...props} />`, Qe, je, Fr, je), lr[je + Qe] = !0;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
return e === d ? Ir(
|
|
596
|
+
return e === d ? Ir(Y) : Er(Y), Y;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
function Lr(e, i, l) {
|
|
@@ -603,8 +603,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
603
603
|
return cr(e, i, l, !1);
|
|
604
604
|
}
|
|
605
605
|
var Dr = Br, Or = Lr;
|
|
606
|
-
|
|
607
|
-
})()),
|
|
606
|
+
$e.Fragment = d, $e.jsx = Dr, $e.jsxs = Or;
|
|
607
|
+
})()), $e;
|
|
608
608
|
}
|
|
609
609
|
var mr;
|
|
610
610
|
function qr() {
|
|
@@ -1057,7 +1057,7 @@ const Vr = "_container_1e1th_1", zr = "_main_1e1th_7", Jr = "_kundliHeaderNoBord
|
|
|
1057
1057
|
astrologyGuidance: "ज्योतिष से सलाह",
|
|
1058
1058
|
selectPackage: "पैकेज चुनें"
|
|
1059
1059
|
}
|
|
1060
|
-
}, vr = _r(null),
|
|
1060
|
+
}, vr = _r(null), Un = ({
|
|
1061
1061
|
locale: t,
|
|
1062
1062
|
children: o
|
|
1063
1063
|
}) => {
|
|
@@ -1068,13 +1068,13 @@ function nt() {
|
|
|
1068
1068
|
return er(vr);
|
|
1069
1069
|
}
|
|
1070
1070
|
const Ye = (t) => {
|
|
1071
|
-
const { priority: o, fetchPriority: c, width: d, height: b, ...
|
|
1071
|
+
const { priority: o, fetchPriority: c, width: d, height: b, ...w } = t;
|
|
1072
1072
|
return Ze.createElement("img", {
|
|
1073
|
-
...
|
|
1073
|
+
...w,
|
|
1074
1074
|
width: d ?? 1,
|
|
1075
1075
|
height: b ?? 1,
|
|
1076
1076
|
decoding: "async",
|
|
1077
|
-
loading:
|
|
1077
|
+
loading: w.loading ?? (o ? "eager" : "lazy"),
|
|
1078
1078
|
...c && { fetchPriority: c }
|
|
1079
1079
|
});
|
|
1080
1080
|
};
|
|
@@ -1094,14 +1094,14 @@ function it(t, o) {
|
|
|
1094
1094
|
} catch {
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1097
|
+
function Gn(t) {
|
|
1098
1098
|
if (!(typeof window > "u" || !window.localStorage))
|
|
1099
1099
|
try {
|
|
1100
1100
|
window.localStorage.removeItem(t);
|
|
1101
1101
|
} catch {
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function Kn() {
|
|
1105
1105
|
if (typeof window > "u" || !window.localStorage)
|
|
1106
1106
|
return !1;
|
|
1107
1107
|
try {
|
|
@@ -1122,6 +1122,7 @@ function lt(t) {
|
|
|
1122
1122
|
const rr = _r(null), ct = {
|
|
1123
1123
|
fullName: "",
|
|
1124
1124
|
phone: "",
|
|
1125
|
+
phoneCountryCode: "",
|
|
1125
1126
|
gender: "",
|
|
1126
1127
|
email: "",
|
|
1127
1128
|
language_code: "",
|
|
@@ -1129,18 +1130,18 @@ const rr = _r(null), ct = {
|
|
|
1129
1130
|
birthTime: "",
|
|
1130
1131
|
birthTimeUnknown: !1,
|
|
1131
1132
|
birthPlace: ""
|
|
1132
|
-
},
|
|
1133
|
+
}, Wn = ({
|
|
1133
1134
|
locale: t,
|
|
1134
1135
|
showLanguageSelector: o = !0,
|
|
1135
1136
|
showSheet: c,
|
|
1136
1137
|
userId: d,
|
|
1137
1138
|
isGlobal: b,
|
|
1138
|
-
variant:
|
|
1139
|
+
variant: w,
|
|
1139
1140
|
initialFormValues: g,
|
|
1140
1141
|
autoOpenPlanSheet: T,
|
|
1141
1142
|
googleMapsApiKey: v,
|
|
1142
|
-
atlasSearchLocalities:
|
|
1143
|
-
googleMapsAutocompleteEnabled:
|
|
1143
|
+
atlasSearchLocalities: F,
|
|
1144
|
+
googleMapsAutocompleteEnabled: x,
|
|
1144
1145
|
logoUrl: E,
|
|
1145
1146
|
reportImageUrl: u,
|
|
1146
1147
|
reportImagePriority: I,
|
|
@@ -1149,37 +1150,37 @@ const rr = _r(null), ct = {
|
|
|
1149
1150
|
sampleReportHref: f,
|
|
1150
1151
|
onViewSampleReport: m,
|
|
1151
1152
|
ctaHref: y,
|
|
1152
|
-
onCtaClick:
|
|
1153
|
-
onBack:
|
|
1153
|
+
onCtaClick: Z,
|
|
1154
|
+
onBack: q,
|
|
1154
1155
|
readMoreReviewsHref: W,
|
|
1155
1156
|
onProceed: B,
|
|
1156
1157
|
proceedHref: $,
|
|
1157
1158
|
originalPriceLabel: A,
|
|
1158
1159
|
discountedPriceLabel: S,
|
|
1159
|
-
discountPillLabel:
|
|
1160
|
-
analytics:
|
|
1160
|
+
discountPillLabel: ee,
|
|
1161
|
+
analytics: V,
|
|
1161
1162
|
onProceedGuidance: D,
|
|
1162
1163
|
onLocaleChange: j,
|
|
1163
1164
|
imageComponent: G = Ye,
|
|
1164
1165
|
resolvedUtmBannerImageUrl: H,
|
|
1165
|
-
children:
|
|
1166
|
+
children: J
|
|
1166
1167
|
}) => {
|
|
1167
|
-
const [
|
|
1168
|
+
const [xe, re] = U("landing"), [Q, ae] = U(t ?? "en"), [oe, _e] = U({
|
|
1168
1169
|
...ct,
|
|
1169
1170
|
...g
|
|
1170
|
-
}),
|
|
1171
|
-
|
|
1172
|
-
const
|
|
1173
|
-
|
|
1174
|
-
}, []),
|
|
1175
|
-
lt(
|
|
1176
|
-
}, [
|
|
1177
|
-
if (
|
|
1178
|
-
|
|
1171
|
+
}), de = O(!0);
|
|
1172
|
+
z(() => {
|
|
1173
|
+
const X = st();
|
|
1174
|
+
X && ae(X);
|
|
1175
|
+
}, []), z(() => {
|
|
1176
|
+
lt(Q);
|
|
1177
|
+
}, [Q]), z(() => {
|
|
1178
|
+
if (de.current) {
|
|
1179
|
+
de.current = !1;
|
|
1179
1180
|
return;
|
|
1180
1181
|
}
|
|
1181
|
-
j?.(
|
|
1182
|
-
}, [
|
|
1182
|
+
j?.(Q);
|
|
1183
|
+
}, [Q, j]);
|
|
1183
1184
|
const ue = Xe(
|
|
1184
1185
|
() => ({
|
|
1185
1186
|
locale: t,
|
|
@@ -1187,12 +1188,12 @@ const rr = _r(null), ct = {
|
|
|
1187
1188
|
showSheet: c,
|
|
1188
1189
|
userId: d,
|
|
1189
1190
|
isGlobal: b,
|
|
1190
|
-
variant:
|
|
1191
|
+
variant: w,
|
|
1191
1192
|
initialFormValues: g,
|
|
1192
1193
|
autoOpenPlanSheet: T,
|
|
1193
1194
|
googleMapsApiKey: v,
|
|
1194
|
-
atlasSearchLocalities:
|
|
1195
|
-
googleMapsAutocompleteEnabled:
|
|
1195
|
+
atlasSearchLocalities: F,
|
|
1196
|
+
googleMapsAutocompleteEnabled: x,
|
|
1196
1197
|
logoUrl: E,
|
|
1197
1198
|
reportImageUrl: u,
|
|
1198
1199
|
reportImagePriority: I,
|
|
@@ -1201,15 +1202,15 @@ const rr = _r(null), ct = {
|
|
|
1201
1202
|
sampleReportHref: f,
|
|
1202
1203
|
onViewSampleReport: m,
|
|
1203
1204
|
ctaHref: y,
|
|
1204
|
-
onCtaClick:
|
|
1205
|
-
onBack:
|
|
1205
|
+
onCtaClick: Z,
|
|
1206
|
+
onBack: q,
|
|
1206
1207
|
readMoreReviewsHref: W,
|
|
1207
1208
|
onProceed: B,
|
|
1208
1209
|
proceedHref: $,
|
|
1209
1210
|
originalPriceLabel: A,
|
|
1210
1211
|
discountedPriceLabel: S,
|
|
1211
|
-
discountPillLabel:
|
|
1212
|
-
analytics:
|
|
1212
|
+
discountPillLabel: ee,
|
|
1213
|
+
analytics: V,
|
|
1213
1214
|
onProceedGuidance: D,
|
|
1214
1215
|
onLocaleChange: j,
|
|
1215
1216
|
imageComponent: G,
|
|
@@ -1221,12 +1222,12 @@ const rr = _r(null), ct = {
|
|
|
1221
1222
|
c,
|
|
1222
1223
|
d,
|
|
1223
1224
|
b,
|
|
1224
|
-
|
|
1225
|
+
w,
|
|
1225
1226
|
g,
|
|
1226
1227
|
T,
|
|
1227
1228
|
v,
|
|
1228
|
-
|
|
1229
|
-
|
|
1229
|
+
F,
|
|
1230
|
+
x,
|
|
1230
1231
|
E,
|
|
1231
1232
|
u,
|
|
1232
1233
|
I,
|
|
@@ -1235,45 +1236,45 @@ const rr = _r(null), ct = {
|
|
|
1235
1236
|
f,
|
|
1236
1237
|
m,
|
|
1237
1238
|
y,
|
|
1238
|
-
|
|
1239
|
-
|
|
1239
|
+
Z,
|
|
1240
|
+
q,
|
|
1240
1241
|
W,
|
|
1241
1242
|
B,
|
|
1242
1243
|
$,
|
|
1243
1244
|
A,
|
|
1244
1245
|
S,
|
|
1245
|
-
|
|
1246
|
-
|
|
1246
|
+
ee,
|
|
1247
|
+
V,
|
|
1247
1248
|
D,
|
|
1248
1249
|
j,
|
|
1249
1250
|
G,
|
|
1250
1251
|
H
|
|
1251
1252
|
]
|
|
1252
1253
|
), be = we(() => {
|
|
1253
|
-
|
|
1254
|
-
}, [ue.analytics]),
|
|
1255
|
-
|
|
1256
|
-
}, [ue.onBack]),
|
|
1254
|
+
re("form");
|
|
1255
|
+
}, [ue.analytics]), ie = we(() => {
|
|
1256
|
+
re("landing"), ue.onBack?.();
|
|
1257
|
+
}, [ue.onBack]), fe = Xe(
|
|
1257
1258
|
() => ({
|
|
1258
|
-
view:
|
|
1259
|
-
locale:
|
|
1260
|
-
setLocale:
|
|
1259
|
+
view: xe,
|
|
1260
|
+
locale: Q,
|
|
1261
|
+
setLocale: ae,
|
|
1261
1262
|
config: ue,
|
|
1262
|
-
formValues:
|
|
1263
|
-
setFormValues:
|
|
1263
|
+
formValues: oe,
|
|
1264
|
+
setFormValues: _e,
|
|
1264
1265
|
goToForm: be,
|
|
1265
|
-
goToPage:
|
|
1266
|
+
goToPage: ie,
|
|
1266
1267
|
onProceed: ue.onProceed,
|
|
1267
1268
|
onProceedGuidance: ue.onProceedGuidance
|
|
1268
1269
|
}),
|
|
1269
|
-
[
|
|
1270
|
+
[xe, Q, ue, oe, be, ie]
|
|
1270
1271
|
);
|
|
1271
|
-
return /* @__PURE__ */ r.jsx(rr.Provider, { value:
|
|
1272
|
+
return /* @__PURE__ */ r.jsx(rr.Provider, { value: fe, children: J });
|
|
1272
1273
|
};
|
|
1273
|
-
function
|
|
1274
|
+
function Le() {
|
|
1274
1275
|
return er(rr);
|
|
1275
1276
|
}
|
|
1276
|
-
function
|
|
1277
|
+
function Hn() {
|
|
1277
1278
|
const t = er(rr);
|
|
1278
1279
|
if (!t)
|
|
1279
1280
|
throw new Error("useKundliContextOrThrow must be used within KundliProvider");
|
|
@@ -1362,8 +1363,8 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1362
1363
|
);
|
|
1363
1364
|
return;
|
|
1364
1365
|
}
|
|
1365
|
-
const
|
|
1366
|
-
g.searchParams.set("key", t), g.searchParams.set("libraries", "places"), g.searchParams.set("loading", "async"), o && g.searchParams.set("language", o),
|
|
1366
|
+
const w = document.createElement("script"), g = new URL("https://maps.googleapis.com/maps/api/js");
|
|
1367
|
+
g.searchParams.set("key", t), g.searchParams.set("libraries", "places"), g.searchParams.set("loading", "async"), o && g.searchParams.set("language", o), w.src = g.toString(), w.async = !0, w.defer = !0, w.setAttribute("data-google-maps-places", "true"), w.onload = () => {
|
|
1367
1368
|
const T = Date.now(), v = () => {
|
|
1368
1369
|
if (window.google?.maps?.places) {
|
|
1369
1370
|
c();
|
|
@@ -1380,12 +1381,12 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1380
1381
|
window.setTimeout(v, 50);
|
|
1381
1382
|
};
|
|
1382
1383
|
v();
|
|
1383
|
-
},
|
|
1384
|
+
}, w.onerror = () => d(new Error("Failed to load Google Maps API")), document.head.appendChild(w);
|
|
1384
1385
|
}), He), ma = (t) => {
|
|
1385
|
-
const { apiKey: o, language: c = "en", restrictCountry: d, deferLoad: b = !1 } = t, [
|
|
1386
|
+
const { apiKey: o, language: c = "en", restrictCountry: d, deferLoad: b = !1 } = t, [w, g] = U(!1), [T, v] = U([]), [F, x] = U(!1), [E, u] = U(null), [I, h] = U(!b), M = O(null), f = O(null), m = O(null), y = we(() => {
|
|
1386
1387
|
b && h(!0);
|
|
1387
1388
|
}, [b]);
|
|
1388
|
-
|
|
1389
|
+
z(() => {
|
|
1389
1390
|
if (!o || !I) {
|
|
1390
1391
|
g(!1), u(null);
|
|
1391
1392
|
return;
|
|
@@ -1398,13 +1399,13 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1398
1399
|
g(!1), u(B?.message || "Failed to load location service");
|
|
1399
1400
|
});
|
|
1400
1401
|
}, [o, c, I]);
|
|
1401
|
-
const
|
|
1402
|
+
const Z = we(
|
|
1402
1403
|
async (B) => {
|
|
1403
1404
|
if (!B || B.length < 2 || !M.current) {
|
|
1404
1405
|
v([]);
|
|
1405
1406
|
return;
|
|
1406
1407
|
}
|
|
1407
|
-
|
|
1408
|
+
x(!0);
|
|
1408
1409
|
try {
|
|
1409
1410
|
const $ = {
|
|
1410
1411
|
input: B,
|
|
@@ -1412,11 +1413,11 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1412
1413
|
sessionToken: m.current ?? void 0
|
|
1413
1414
|
};
|
|
1414
1415
|
d && ($.componentRestrictions = { country: d });
|
|
1415
|
-
const A = await new Promise((S,
|
|
1416
|
+
const A = await new Promise((S, ee) => {
|
|
1416
1417
|
M.current.getPlacePredictions(
|
|
1417
1418
|
$,
|
|
1418
|
-
(
|
|
1419
|
-
D === google.maps.places.PlacesServiceStatus.OK &&
|
|
1419
|
+
(V, D) => {
|
|
1420
|
+
D === google.maps.places.PlacesServiceStatus.OK && V ? S(V) : D === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? S([]) : ee(new Error(`Places API error: ${D}`));
|
|
1420
1421
|
}
|
|
1421
1422
|
);
|
|
1422
1423
|
});
|
|
@@ -1433,11 +1434,11 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1433
1434
|
} catch {
|
|
1434
1435
|
v([]);
|
|
1435
1436
|
} finally {
|
|
1436
|
-
|
|
1437
|
+
x(!1);
|
|
1437
1438
|
}
|
|
1438
1439
|
},
|
|
1439
1440
|
[d]
|
|
1440
|
-
),
|
|
1441
|
+
), q = we(
|
|
1441
1442
|
async (B) => {
|
|
1442
1443
|
if (!f.current) return null;
|
|
1443
1444
|
try {
|
|
@@ -1449,23 +1450,23 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1449
1450
|
fields: ["geometry", "address_components", "formatted_address"],
|
|
1450
1451
|
sessionToken: m.current ?? void 0
|
|
1451
1452
|
},
|
|
1452
|
-
(H,
|
|
1453
|
-
|
|
1453
|
+
(H, J) => {
|
|
1454
|
+
J === google.maps.places.PlacesServiceStatus.OK && H ? j(H) : G(new Error(`Place details error: ${J}`));
|
|
1454
1455
|
}
|
|
1455
1456
|
);
|
|
1456
1457
|
}
|
|
1457
1458
|
);
|
|
1458
1459
|
m.current = new google.maps.places.AutocompleteSessionToken();
|
|
1459
1460
|
const A = $.geometry?.location?.lat() || 0, S = $.geometry?.location?.lng() || 0;
|
|
1460
|
-
let
|
|
1461
|
+
let ee = "", V = "", D = "";
|
|
1461
1462
|
return $.address_components?.forEach((j) => {
|
|
1462
|
-
j.types.includes("locality") && (
|
|
1463
|
+
j.types.includes("locality") && (ee = j.long_name), j.types.includes("administrative_area_level_1") && (V = j.long_name), j.types.includes("country") && (D = j.long_name);
|
|
1463
1464
|
}), {
|
|
1464
1465
|
display_name: $.formatted_address || "",
|
|
1465
1466
|
lat: A,
|
|
1466
1467
|
lng: S,
|
|
1467
|
-
city:
|
|
1468
|
-
state:
|
|
1468
|
+
city: ee,
|
|
1469
|
+
state: V,
|
|
1469
1470
|
country: D
|
|
1470
1471
|
};
|
|
1471
1472
|
} catch {
|
|
@@ -1475,12 +1476,12 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1475
1476
|
[]
|
|
1476
1477
|
), W = we(() => v([]), []);
|
|
1477
1478
|
return {
|
|
1478
|
-
isLoaded:
|
|
1479
|
+
isLoaded: w,
|
|
1479
1480
|
predictions: T,
|
|
1480
|
-
isSearching:
|
|
1481
|
+
isSearching: F,
|
|
1481
1482
|
loadError: E,
|
|
1482
|
-
searchPlaces:
|
|
1483
|
-
getPlaceDetails:
|
|
1483
|
+
searchPlaces: Z,
|
|
1484
|
+
getPlaceDetails: q,
|
|
1484
1485
|
clearPredictions: W,
|
|
1485
1486
|
triggerLoad: y
|
|
1486
1487
|
// Call this to start loading Google Maps when deferred
|
|
@@ -1493,21 +1494,21 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1493
1494
|
restrictCountry: t?.restrictCountry
|
|
1494
1495
|
};
|
|
1495
1496
|
}, pa = (t) => {
|
|
1496
|
-
const { searchLocalities: o, restrictCountry: c } = t, [d, b] = U([]), [
|
|
1497
|
-
|
|
1497
|
+
const { searchLocalities: o, restrictCountry: c } = t, [d, b] = U([]), [w, g] = U(!1), [T, v] = U(null), F = O(0);
|
|
1498
|
+
z(() => {
|
|
1498
1499
|
v(null);
|
|
1499
1500
|
}, [o]);
|
|
1500
|
-
const
|
|
1501
|
+
const x = we(
|
|
1501
1502
|
async (u) => {
|
|
1502
1503
|
if (!u || u.length < 2 || !o) {
|
|
1503
1504
|
b([]);
|
|
1504
1505
|
return;
|
|
1505
1506
|
}
|
|
1506
|
-
const I = ++
|
|
1507
|
+
const I = ++F.current;
|
|
1507
1508
|
g(!0), v(null);
|
|
1508
1509
|
try {
|
|
1509
1510
|
const h = fa({ restrictCountry: c }), M = await o(u, h);
|
|
1510
|
-
if (I !==
|
|
1511
|
+
if (I !== F.current) return;
|
|
1511
1512
|
const f = (M || []).filter(
|
|
1512
1513
|
(m) => !!m?.id && !!m?.description && hr(m?.lat) && hr(m?.lng)
|
|
1513
1514
|
).map((m) => ({
|
|
@@ -1519,22 +1520,22 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1519
1520
|
}));
|
|
1520
1521
|
b(f);
|
|
1521
1522
|
} catch (h) {
|
|
1522
|
-
if (I !==
|
|
1523
|
+
if (I !== F.current) return;
|
|
1523
1524
|
b([]), v(h?.message || "Failed to fetch locations");
|
|
1524
1525
|
} finally {
|
|
1525
|
-
I ===
|
|
1526
|
+
I === F.current && g(!1);
|
|
1526
1527
|
}
|
|
1527
1528
|
},
|
|
1528
1529
|
[c, o]
|
|
1529
1530
|
), E = we(() => b([]), []);
|
|
1530
1531
|
return {
|
|
1531
1532
|
predictions: d,
|
|
1532
|
-
isSearching:
|
|
1533
|
+
isSearching: w,
|
|
1533
1534
|
loadError: T,
|
|
1534
|
-
searchPlaces:
|
|
1535
|
+
searchPlaces: x,
|
|
1535
1536
|
clearPredictions: E
|
|
1536
1537
|
};
|
|
1537
|
-
},
|
|
1538
|
+
}, Ie = {
|
|
1538
1539
|
time: "https://srm-cdn.a4b.io/yoda/1770372014782.svg",
|
|
1539
1540
|
location: "https://srm-cdn.a4b.io/yoda/1770372031092.svg",
|
|
1540
1541
|
date: "https://srm-cdn.a4b.io/yoda/1770372045894.svg",
|
|
@@ -1609,24 +1610,22 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1609
1610
|
{ code: "+975", country: "Bhutan" },
|
|
1610
1611
|
{ code: "+976", country: "Mongolia" },
|
|
1611
1612
|
{ code: "+977", country: "Nepal" }
|
|
1612
|
-
]
|
|
1613
|
-
wr.map((t) => t.code);
|
|
1614
|
-
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 = ({
|
|
1613
|
+
], ha = wr.map((t) => t.code), xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr), ga = (t) => tr(t).length === xr, _a = (t, o, c) => ga(t) ? c.phone ? { shouldTrack: !1 } : (c.phone = !0, { shouldTrack: !0, fullPhone: `${o}-${tr(t)}` }) : (c.phone = !1, { shouldTrack: !1 }), ba = {}, ya = ({
|
|
1615
1614
|
t,
|
|
1616
1615
|
values: o,
|
|
1617
1616
|
onChange: c,
|
|
1618
1617
|
phoneIsdCode: d,
|
|
1619
1618
|
onPhoneIsdCodeChange: b,
|
|
1620
|
-
showV1ExtraFields:
|
|
1619
|
+
showV1ExtraFields: w = !1,
|
|
1621
1620
|
analytics: g,
|
|
1622
1621
|
googleMapsApiKey: T,
|
|
1623
1622
|
atlasSearchLocalities: v,
|
|
1624
|
-
googleMapsAutocompleteEnabled:
|
|
1625
|
-
className:
|
|
1623
|
+
googleMapsAutocompleteEnabled: F,
|
|
1624
|
+
className: x = ""
|
|
1626
1625
|
}) => {
|
|
1627
|
-
const E =
|
|
1626
|
+
const E = Le(), u = E?.config?.analytics ?? g, I = E?.config.isGlobal ?? !0, h = E?.config?.googleMapsApiKey, M = E?.config?.atlasSearchLocalities, f = E?.config?.googleMapsAutocompleteEnabled, [m, y] = U(!1), [Z, q] = U(""), W = O(null), B = O(null), $ = O({}), A = (a) => c({ ...o, ...a }), S = (a, s) => {
|
|
1628
1627
|
if (a === "phone") {
|
|
1629
|
-
const R =
|
|
1628
|
+
const R = _a(s, d, $.current);
|
|
1630
1629
|
R.shouldTrack && u?.trackPhoneSectionFilled?.({ phone: R.fullPhone });
|
|
1631
1630
|
return;
|
|
1632
1631
|
}
|
|
@@ -1636,82 +1635,82 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
1636
1635
|
birthTime: () => u?.trackTimeFilled?.(),
|
|
1637
1636
|
birthPlace: () => u?.trackPlaceOfBirthChosen?.()
|
|
1638
1637
|
}[a]?.());
|
|
1639
|
-
},
|
|
1638
|
+
}, ee = (a) => {
|
|
1640
1639
|
const s = a.target.value;
|
|
1641
1640
|
s.trim() && u?.trackEmailSectionFilled?.({ email: s });
|
|
1642
|
-
},
|
|
1643
|
-
|
|
1644
|
-
const G =
|
|
1641
|
+
}, V = Z.trim().toLowerCase(), D = wr.filter((a) => V ? a.country.toLowerCase().includes(V) || a.code.includes(V) : !0), j = O(null);
|
|
1642
|
+
O(null);
|
|
1643
|
+
const G = O(null), H = O(0), J = O(null), [xe, re] = U(!1), [Q, ae] = U({ hour12: 12, minute: "00", meridiem: "AM" }), oe = (a) => String(a).padStart(2, "0"), _e = (a) => {
|
|
1645
1644
|
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(a);
|
|
1646
1645
|
if (!s) return a;
|
|
1647
|
-
const R = Number(s[1]),
|
|
1648
|
-
return `${R % 12 === 0 ? 12 : R % 12}:${
|
|
1649
|
-
},
|
|
1646
|
+
const R = Number(s[1]), pe = s[2], Fe = R >= 12 ? "PM" : "AM";
|
|
1647
|
+
return `${R % 12 === 0 ? 12 : R % 12}:${pe} ${Fe}`;
|
|
1648
|
+
}, de = (a) => {
|
|
1650
1649
|
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(a);
|
|
1651
1650
|
if (!s) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
1652
|
-
const R = Number(s[1]),
|
|
1653
|
-
return { hour12: R % 12 === 0 ? 12 : R % 12, minute:
|
|
1651
|
+
const R = Number(s[1]), pe = s[2], Fe = R >= 12 ? "PM" : "AM";
|
|
1652
|
+
return { hour12: R % 12 === 0 ? 12 : R % 12, minute: pe, meridiem: Fe };
|
|
1654
1653
|
}, ue = (a) => {
|
|
1655
1654
|
const s = Math.min(12, Math.max(1, a.hour12)), R = /^([0-5]\d)$/.test(a.minute) ? a.minute : "00";
|
|
1656
|
-
let
|
|
1657
|
-
return a.meridiem === "PM" && (
|
|
1658
|
-
}, be =
|
|
1655
|
+
let pe = s % 12;
|
|
1656
|
+
return a.meridiem === "PM" && (pe += 12), `${oe(pe)}:${R}`;
|
|
1657
|
+
}, be = O(null), [ie, fe] = U(!1), X = O(o.birthPlace ?? ""), [me, se] = U(
|
|
1659
1658
|
null
|
|
1660
|
-
),
|
|
1661
|
-
apiKey:
|
|
1659
|
+
), le = T ?? h ?? ba?.VITE_GOOGLE_MAPS_API_KEY, Ce = v ?? M, te = F ?? f ?? !0, Pe = (o.birthPlace ?? "").trim(), ye = I ? void 0 : "in", ge = ma({
|
|
1660
|
+
apiKey: te ? le : void 0,
|
|
1662
1661
|
language: "en",
|
|
1663
|
-
restrictCountry:
|
|
1664
|
-
}),
|
|
1665
|
-
searchLocalities:
|
|
1666
|
-
restrictCountry:
|
|
1667
|
-
}),
|
|
1662
|
+
restrictCountry: ye
|
|
1663
|
+
}), ve = pa({
|
|
1664
|
+
searchLocalities: te ? void 0 : Ce,
|
|
1665
|
+
restrictCountry: ye
|
|
1666
|
+
}), P = te ? ge.predictions.map((a) => ({
|
|
1668
1667
|
id: a.place_id,
|
|
1669
1668
|
description: a.description,
|
|
1670
1669
|
secondaryText: a.structured_formatting?.secondary_text,
|
|
1671
1670
|
lat: void 0,
|
|
1672
1671
|
lng: void 0
|
|
1673
|
-
})) :
|
|
1672
|
+
})) : ve.predictions.map((a) => ({
|
|
1674
1673
|
id: a.id,
|
|
1675
1674
|
description: a.description,
|
|
1676
1675
|
secondaryText: a.secondary_text,
|
|
1677
1676
|
lat: a.lat,
|
|
1678
1677
|
lng: a.lng
|
|
1679
|
-
})),
|
|
1678
|
+
})), Ne = te ? ge.isSearching : ve.isSearching, Ge = te ? ge.loadError : ve.loadError, Se = te ? !!le : !!Ce, Ke = te ? ge.searchPlaces : ve.searchPlaces, Be = te ? ge.clearPredictions : ve.clearPredictions, De = O(() => {
|
|
1680
1679
|
});
|
|
1681
|
-
|
|
1682
|
-
(o.birthPlace ?? "") !==
|
|
1680
|
+
De.current = () => {
|
|
1681
|
+
(o.birthPlace ?? "") !== X.current && A({
|
|
1683
1682
|
birthPlace: "",
|
|
1684
1683
|
birthPlaceLat: void 0,
|
|
1685
1684
|
birthPlaceLng: void 0
|
|
1686
|
-
}),
|
|
1687
|
-
},
|
|
1685
|
+
}), fe(!1);
|
|
1686
|
+
}, z(() => {
|
|
1688
1687
|
const a = (s) => {
|
|
1689
|
-
be.current && (be.current.contains(s.target) ||
|
|
1688
|
+
be.current && (be.current.contains(s.target) || De.current());
|
|
1690
1689
|
};
|
|
1691
1690
|
return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
|
|
1692
|
-
}, []),
|
|
1691
|
+
}, []), z(() => {
|
|
1693
1692
|
const a = (s) => {
|
|
1694
|
-
W.current && (W.current.contains(s.target) || (y(!1),
|
|
1693
|
+
W.current && (W.current.contains(s.target) || (y(!1), q("")));
|
|
1695
1694
|
};
|
|
1696
1695
|
return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
|
|
1697
|
-
}, []),
|
|
1696
|
+
}, []), z(() => {
|
|
1698
1697
|
if (!m) return;
|
|
1699
1698
|
const a = window.setTimeout(() => {
|
|
1700
1699
|
B.current?.focus();
|
|
1701
1700
|
}, 0);
|
|
1702
1701
|
return () => window.clearTimeout(a);
|
|
1703
|
-
}, [m]),
|
|
1704
|
-
if (!
|
|
1702
|
+
}, [m]), z(() => {
|
|
1703
|
+
if (!ie) return;
|
|
1705
1704
|
if (Pe.length < 2) {
|
|
1706
|
-
|
|
1705
|
+
Be();
|
|
1707
1706
|
return;
|
|
1708
1707
|
}
|
|
1709
1708
|
const a = window.setTimeout(async () => {
|
|
1710
1709
|
await Ke(Pe);
|
|
1711
1710
|
}, 250);
|
|
1712
1711
|
return () => window.clearTimeout(a);
|
|
1713
|
-
}, [
|
|
1714
|
-
const
|
|
1712
|
+
}, [Be, ie, Pe, Ke]);
|
|
1713
|
+
const Oe = (a) => {
|
|
1715
1714
|
const s = a.current;
|
|
1716
1715
|
if (!(!s || s.disabled)) {
|
|
1717
1716
|
if (document.activeElement === s && G.current === s && Date.now() - H.current < 6e4) {
|
|
@@ -1725,16 +1724,16 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
1725
1724
|
s.focus(), G.current = s, H.current = Date.now();
|
|
1726
1725
|
}
|
|
1727
1726
|
};
|
|
1728
|
-
return
|
|
1727
|
+
return z(() => {
|
|
1729
1728
|
const a = (s) => {
|
|
1730
|
-
|
|
1729
|
+
J.current && (J.current.contains(s.target) || re(!1));
|
|
1731
1730
|
};
|
|
1732
1731
|
return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
|
|
1733
|
-
}, []),
|
|
1732
|
+
}, []), z(() => {
|
|
1734
1733
|
const a = (R) => {
|
|
1735
|
-
R.target?.closest?.("[data-info-tooltip]") == null &&
|
|
1734
|
+
R.target?.closest?.("[data-info-tooltip]") == null && se(null);
|
|
1736
1735
|
}, s = (R) => {
|
|
1737
|
-
R.key === "Escape" &&
|
|
1736
|
+
R.key === "Escape" && se(null);
|
|
1738
1737
|
};
|
|
1739
1738
|
return document.addEventListener("mousedown", a), document.addEventListener("keydown", s), () => {
|
|
1740
1739
|
document.removeEventListener("mousedown", a), document.removeEventListener("keydown", s);
|
|
@@ -1742,7 +1741,7 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
1742
1741
|
}, []), /* @__PURE__ */ r.jsx(
|
|
1743
1742
|
"section",
|
|
1744
1743
|
{
|
|
1745
|
-
className: `${n.wrap} ${
|
|
1744
|
+
className: `${n.wrap} ${x}`,
|
|
1746
1745
|
"aria-label": t("formTitle"),
|
|
1747
1746
|
children: /* @__PURE__ */ r.jsx("div", { className: n.card, children: /* @__PURE__ */ r.jsxs("div", { className: n.cardInner, children: [
|
|
1748
1747
|
/* @__PURE__ */ r.jsxs("div", { className: n.field, children: [
|
|
@@ -1782,7 +1781,7 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
1782
1781
|
"aria-haspopup": "listbox",
|
|
1783
1782
|
"aria-expanded": m,
|
|
1784
1783
|
onClick: () => {
|
|
1785
|
-
y((a) => !a),
|
|
1784
|
+
y((a) => !a), q("");
|
|
1786
1785
|
},
|
|
1787
1786
|
children: d
|
|
1788
1787
|
}
|
|
@@ -1821,8 +1820,8 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
1821
1820
|
{
|
|
1822
1821
|
ref: B,
|
|
1823
1822
|
type: "text",
|
|
1824
|
-
value:
|
|
1825
|
-
onChange: (a) =>
|
|
1823
|
+
value: Z,
|
|
1824
|
+
onChange: (a) => q(a.target.value),
|
|
1826
1825
|
placeholder: "Search country",
|
|
1827
1826
|
className: n.isdSearchInput,
|
|
1828
1827
|
"aria-label": "Search country"
|
|
@@ -1836,7 +1835,7 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
1836
1835
|
"aria-selected": a.code === d,
|
|
1837
1836
|
className: `${n.isdOption} ${a.code === d ? n.isdOptionActive : ""}`,
|
|
1838
1837
|
onClick: () => {
|
|
1839
|
-
b(a.code), y(!1),
|
|
1838
|
+
b(a.code), y(!1), q("");
|
|
1840
1839
|
},
|
|
1841
1840
|
children: [
|
|
1842
1841
|
/* @__PURE__ */ r.jsx("span", { className: n.isdCountryName, children: a.country }),
|
|
@@ -1850,7 +1849,7 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
1850
1849
|
)
|
|
1851
1850
|
] }) })
|
|
1852
1851
|
] }),
|
|
1853
|
-
|
|
1852
|
+
w && /* @__PURE__ */ r.jsxs("div", { className: n.field, children: [
|
|
1854
1853
|
/* @__PURE__ */ r.jsx("div", { className: n.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: n.label, children: [
|
|
1855
1854
|
t("formGender"),
|
|
1856
1855
|
/* @__PURE__ */ r.jsx("span", { className: n.req, children: "*" })
|
|
@@ -1915,7 +1914,7 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
1915
1914
|
onChange: (a) => {
|
|
1916
1915
|
A({ email: a.target.value });
|
|
1917
1916
|
},
|
|
1918
|
-
onBlur:
|
|
1917
|
+
onBlur: ee,
|
|
1919
1918
|
placeholder: t("formEmailPlaceholder"),
|
|
1920
1919
|
autoComplete: "email",
|
|
1921
1920
|
required: !0,
|
|
@@ -1936,22 +1935,22 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
1936
1935
|
type: "button",
|
|
1937
1936
|
className: n.infoBtn,
|
|
1938
1937
|
"aria-label": t("info"),
|
|
1939
|
-
"aria-expanded":
|
|
1938
|
+
"aria-expanded": me === "dob",
|
|
1940
1939
|
onClick: () => {
|
|
1941
|
-
|
|
1940
|
+
se((a) => a === "dob" ? null : "dob"), u?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
1942
1941
|
},
|
|
1943
1942
|
children: /* @__PURE__ */ r.jsx(
|
|
1944
1943
|
"img",
|
|
1945
1944
|
{
|
|
1946
1945
|
className: n.infoImg,
|
|
1947
|
-
src:
|
|
1946
|
+
src: Ie.info,
|
|
1948
1947
|
alt: "",
|
|
1949
1948
|
"aria-hidden": !0
|
|
1950
1949
|
}
|
|
1951
1950
|
)
|
|
1952
1951
|
}
|
|
1953
1952
|
),
|
|
1954
|
-
|
|
1953
|
+
me === "dob" && /* @__PURE__ */ r.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
|
|
1955
1954
|
t("formDobInfo"),
|
|
1956
1955
|
/* @__PURE__ */ r.jsx("span", { className: n.tooltipArrow, "aria-hidden": !0 })
|
|
1957
1956
|
] })
|
|
@@ -1968,14 +1967,14 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
1968
1967
|
value: o.dateOfBirth,
|
|
1969
1968
|
max: (() => {
|
|
1970
1969
|
const a = /* @__PURE__ */ new Date();
|
|
1971
|
-
return `${a.getFullYear()}-${
|
|
1970
|
+
return `${a.getFullYear()}-${oe(a.getMonth() + 1)}-${oe(a.getDate())}`;
|
|
1972
1971
|
})(),
|
|
1973
1972
|
onChange: (a) => {
|
|
1974
|
-
const s = a.target.value, R = /* @__PURE__ */ new Date(),
|
|
1975
|
-
s && s >
|
|
1973
|
+
const s = a.target.value, R = /* @__PURE__ */ new Date(), pe = `${R.getFullYear()}-${oe(R.getMonth() + 1)}-${oe(R.getDate())}`;
|
|
1974
|
+
s && s > pe || (A({ dateOfBirth: s }), S("dateOfBirth", s), G.current = null);
|
|
1976
1975
|
},
|
|
1977
1976
|
onFocus: () => u?.trackDobClicked?.(),
|
|
1978
|
-
onClick: () =>
|
|
1977
|
+
onClick: () => Oe(j),
|
|
1979
1978
|
onBlur: () => {
|
|
1980
1979
|
G.current === j.current && (G.current = null);
|
|
1981
1980
|
}
|
|
@@ -1989,13 +1988,13 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
1989
1988
|
"aria-label": "Open date picker",
|
|
1990
1989
|
onMouseDown: (a) => a.preventDefault(),
|
|
1991
1990
|
onClick: (a) => {
|
|
1992
|
-
a.preventDefault(), a.stopPropagation(),
|
|
1991
|
+
a.preventDefault(), a.stopPropagation(), Oe(j);
|
|
1993
1992
|
},
|
|
1994
1993
|
children: /* @__PURE__ */ r.jsx(
|
|
1995
1994
|
"img",
|
|
1996
1995
|
{
|
|
1997
1996
|
className: n.iconImg,
|
|
1998
|
-
src:
|
|
1997
|
+
src: Ie.date,
|
|
1999
1998
|
alt: "",
|
|
2000
1999
|
"aria-hidden": !0
|
|
2001
2000
|
}
|
|
@@ -2017,35 +2016,35 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2017
2016
|
type: "button",
|
|
2018
2017
|
className: n.infoBtn,
|
|
2019
2018
|
"aria-label": t("info"),
|
|
2020
|
-
"aria-expanded":
|
|
2019
|
+
"aria-expanded": me === "time",
|
|
2021
2020
|
onClick: () => {
|
|
2022
|
-
u?.trackInfoIconClicked?.({ fieldName: "time" }),
|
|
2021
|
+
u?.trackInfoIconClicked?.({ fieldName: "time" }), se((a) => a === "time" ? null : "time");
|
|
2023
2022
|
},
|
|
2024
2023
|
children: /* @__PURE__ */ r.jsx(
|
|
2025
2024
|
"img",
|
|
2026
2025
|
{
|
|
2027
2026
|
className: n.infoImg,
|
|
2028
|
-
src:
|
|
2027
|
+
src: Ie.info,
|
|
2029
2028
|
alt: "",
|
|
2030
2029
|
"aria-hidden": !0
|
|
2031
2030
|
}
|
|
2032
2031
|
)
|
|
2033
2032
|
}
|
|
2034
2033
|
),
|
|
2035
|
-
|
|
2034
|
+
me === "time" && /* @__PURE__ */ r.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
|
|
2036
2035
|
t("formBirthTimeInfo"),
|
|
2037
2036
|
/* @__PURE__ */ r.jsx("span", { className: n.tooltipArrow, "aria-hidden": !0 })
|
|
2038
2037
|
] })
|
|
2039
2038
|
] })
|
|
2040
2039
|
] }),
|
|
2041
|
-
/* @__PURE__ */ r.jsxs("div", { className: n.inputWrap, ref:
|
|
2040
|
+
/* @__PURE__ */ r.jsxs("div", { className: n.inputWrap, ref: J, children: [
|
|
2042
2041
|
/* @__PURE__ */ r.jsx(
|
|
2043
2042
|
"input",
|
|
2044
2043
|
{
|
|
2045
2044
|
id: "kundli-birth-time",
|
|
2046
2045
|
className: n.input,
|
|
2047
2046
|
type: "text",
|
|
2048
|
-
value: o.birthTime ?
|
|
2047
|
+
value: o.birthTime ? _e(o.birthTime) : "",
|
|
2049
2048
|
readOnly: !0,
|
|
2050
2049
|
onFocus: () => u?.trackTimeClicked?.(),
|
|
2051
2050
|
onChange: (a) => {
|
|
@@ -2055,7 +2054,7 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2055
2054
|
disabled: o.birthTimeUnknown,
|
|
2056
2055
|
placeholder: "HH:MM AM",
|
|
2057
2056
|
onClick: () => {
|
|
2058
|
-
o.birthTimeUnknown || (
|
|
2057
|
+
o.birthTimeUnknown || (ae(de(o.birthTime || "12:00")), re((a) => !a));
|
|
2059
2058
|
}
|
|
2060
2059
|
}
|
|
2061
2060
|
),
|
|
@@ -2068,20 +2067,20 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2068
2067
|
disabled: o.birthTimeUnknown,
|
|
2069
2068
|
onMouseDown: (a) => a.preventDefault(),
|
|
2070
2069
|
onClick: (a) => {
|
|
2071
|
-
a.preventDefault(), a.stopPropagation(), !o.birthTimeUnknown && (
|
|
2070
|
+
a.preventDefault(), a.stopPropagation(), !o.birthTimeUnknown && (ae(de(o.birthTime || "12:00")), re((s) => !s));
|
|
2072
2071
|
},
|
|
2073
2072
|
children: /* @__PURE__ */ r.jsx(
|
|
2074
2073
|
"img",
|
|
2075
2074
|
{
|
|
2076
2075
|
className: n.iconImg,
|
|
2077
|
-
src:
|
|
2076
|
+
src: Ie.time,
|
|
2078
2077
|
alt: "",
|
|
2079
2078
|
"aria-hidden": !0
|
|
2080
2079
|
}
|
|
2081
2080
|
)
|
|
2082
2081
|
}
|
|
2083
2082
|
),
|
|
2084
|
-
|
|
2083
|
+
xe && !o.birthTimeUnknown && /* @__PURE__ */ r.jsxs(
|
|
2085
2084
|
"div",
|
|
2086
2085
|
{
|
|
2087
2086
|
className: n.timePopover,
|
|
@@ -2093,8 +2092,8 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2093
2092
|
"select",
|
|
2094
2093
|
{
|
|
2095
2094
|
className: n.timePickerSelect,
|
|
2096
|
-
value:
|
|
2097
|
-
onChange: (a) =>
|
|
2095
|
+
value: Q.hour12,
|
|
2096
|
+
onChange: (a) => ae((s) => ({
|
|
2098
2097
|
...s,
|
|
2099
2098
|
hour12: Number(a.target.value)
|
|
2100
2099
|
})),
|
|
@@ -2107,10 +2106,10 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2107
2106
|
"select",
|
|
2108
2107
|
{
|
|
2109
2108
|
className: n.timePickerSelect,
|
|
2110
|
-
value:
|
|
2111
|
-
onChange: (a) =>
|
|
2109
|
+
value: Q.minute,
|
|
2110
|
+
onChange: (a) => ae((s) => ({ ...s, minute: a.target.value })),
|
|
2112
2111
|
"aria-label": "Minute",
|
|
2113
|
-
children: Array.from({ length: 60 }, (a, s) =>
|
|
2112
|
+
children: Array.from({ length: 60 }, (a, s) => oe(s)).map(
|
|
2114
2113
|
(a) => /* @__PURE__ */ r.jsx("option", { value: a, children: a }, a)
|
|
2115
2114
|
)
|
|
2116
2115
|
}
|
|
@@ -2120,8 +2119,8 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2120
2119
|
"button",
|
|
2121
2120
|
{
|
|
2122
2121
|
type: "button",
|
|
2123
|
-
className: `${n.meridiemBtn} ${
|
|
2124
|
-
onClick: () =>
|
|
2122
|
+
className: `${n.meridiemBtn} ${Q.meridiem === "AM" ? n.meridiemActive : ""}`,
|
|
2123
|
+
onClick: () => ae((a) => ({ ...a, meridiem: "AM" })),
|
|
2125
2124
|
children: "AM"
|
|
2126
2125
|
}
|
|
2127
2126
|
),
|
|
@@ -2129,8 +2128,8 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2129
2128
|
"button",
|
|
2130
2129
|
{
|
|
2131
2130
|
type: "button",
|
|
2132
|
-
className: `${n.meridiemBtn} ${
|
|
2133
|
-
onClick: () =>
|
|
2131
|
+
className: `${n.meridiemBtn} ${Q.meridiem === "PM" ? n.meridiemActive : ""}`,
|
|
2132
|
+
onClick: () => ae((a) => ({ ...a, meridiem: "PM" })),
|
|
2134
2133
|
children: "PM"
|
|
2135
2134
|
}
|
|
2136
2135
|
)
|
|
@@ -2142,7 +2141,7 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2142
2141
|
{
|
|
2143
2142
|
type: "button",
|
|
2144
2143
|
className: n.timePopoverBtn,
|
|
2145
|
-
onClick: () =>
|
|
2144
|
+
onClick: () => re(!1),
|
|
2146
2145
|
children: "Cancel"
|
|
2147
2146
|
}
|
|
2148
2147
|
),
|
|
@@ -2152,8 +2151,8 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2152
2151
|
type: "button",
|
|
2153
2152
|
className: `${n.timePopoverBtn} ${n.timePopoverOk}`,
|
|
2154
2153
|
onClick: () => {
|
|
2155
|
-
const a = ue(
|
|
2156
|
-
A({ birthTime: a }), S("birthTime", a),
|
|
2154
|
+
const a = ue(Q);
|
|
2155
|
+
A({ birthTime: a }), S("birthTime", a), re(!1);
|
|
2157
2156
|
},
|
|
2158
2157
|
"aria-label": "OK",
|
|
2159
2158
|
children: /* @__PURE__ */ r.jsx(
|
|
@@ -2227,24 +2226,24 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2227
2226
|
type: "button",
|
|
2228
2227
|
className: n.infoBtn,
|
|
2229
2228
|
"aria-label": t("info"),
|
|
2230
|
-
"aria-expanded":
|
|
2229
|
+
"aria-expanded": me === "place",
|
|
2231
2230
|
onClick: () => {
|
|
2232
2231
|
u?.trackInfoIconClicked?.({
|
|
2233
2232
|
fieldName: "birthPlace"
|
|
2234
|
-
}),
|
|
2233
|
+
}), se((a) => a === "place" ? null : "place");
|
|
2235
2234
|
},
|
|
2236
2235
|
children: /* @__PURE__ */ r.jsx(
|
|
2237
2236
|
"img",
|
|
2238
2237
|
{
|
|
2239
2238
|
className: n.infoImg,
|
|
2240
|
-
src:
|
|
2239
|
+
src: Ie.info,
|
|
2241
2240
|
alt: "",
|
|
2242
2241
|
"aria-hidden": !0
|
|
2243
2242
|
}
|
|
2244
2243
|
)
|
|
2245
2244
|
}
|
|
2246
2245
|
),
|
|
2247
|
-
|
|
2246
|
+
me === "place" && /* @__PURE__ */ r.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
|
|
2248
2247
|
t("formBirthPlaceInfo"),
|
|
2249
2248
|
/* @__PURE__ */ r.jsx("span", { className: n.tooltipArrow, "aria-hidden": !0 })
|
|
2250
2249
|
] })
|
|
@@ -2264,10 +2263,10 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2264
2263
|
birthPlace: s,
|
|
2265
2264
|
birthPlaceLat: void 0,
|
|
2266
2265
|
birthPlaceLng: void 0
|
|
2267
|
-
}), S("birthPlace", s),
|
|
2266
|
+
}), S("birthPlace", s), fe(!0);
|
|
2268
2267
|
},
|
|
2269
2268
|
onFocus: () => {
|
|
2270
|
-
u?.trackPlaceOfBirthClicked?.(),
|
|
2269
|
+
u?.trackPlaceOfBirthClicked?.(), fe(!0);
|
|
2271
2270
|
},
|
|
2272
2271
|
placeholder: t("formBirthPlacePlaceholder"),
|
|
2273
2272
|
autoComplete: "address-level2"
|
|
@@ -2277,27 +2276,27 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2277
2276
|
"img",
|
|
2278
2277
|
{
|
|
2279
2278
|
className: n.iconImg,
|
|
2280
|
-
src:
|
|
2279
|
+
src: Ie.location,
|
|
2281
2280
|
alt: "",
|
|
2282
2281
|
"aria-hidden": !0
|
|
2283
2282
|
}
|
|
2284
2283
|
) }),
|
|
2285
|
-
|
|
2284
|
+
ie && P.length > 0 && /* @__PURE__ */ r.jsx("div", { className: n.suggestions, role: "listbox", children: P.slice(0, 8).map((a) => /* @__PURE__ */ r.jsxs(
|
|
2286
2285
|
"button",
|
|
2287
2286
|
{
|
|
2288
2287
|
type: "button",
|
|
2289
2288
|
className: n.suggestionItem,
|
|
2290
2289
|
onClick: async () => {
|
|
2291
2290
|
const s = a.description;
|
|
2292
|
-
if (
|
|
2291
|
+
if (X.current = s, A({
|
|
2293
2292
|
birthPlace: s,
|
|
2294
2293
|
birthPlaceLat: a.lat,
|
|
2295
2294
|
birthPlaceLng: a.lng
|
|
2296
|
-
}),
|
|
2297
|
-
const R = await
|
|
2295
|
+
}), Be(), fe(!1), te) {
|
|
2296
|
+
const R = await ge.getPlaceDetails(
|
|
2298
2297
|
a.id
|
|
2299
2298
|
);
|
|
2300
|
-
R && (
|
|
2299
|
+
R && (X.current = s, c({
|
|
2301
2300
|
...o,
|
|
2302
2301
|
birthPlace: s,
|
|
2303
2302
|
birthPlaceLat: R.lat,
|
|
@@ -2312,11 +2311,11 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2312
2311
|
},
|
|
2313
2312
|
a.id
|
|
2314
2313
|
)) }),
|
|
2315
|
-
|
|
2316
|
-
|
|
2314
|
+
ie && Se && Ne && /* @__PURE__ */ r.jsx("div", { className: n.suggestionsHint, children: "Loading…" }),
|
|
2315
|
+
ie && Se && !Ne && !!Ge && /* @__PURE__ */ r.jsx("div", { className: n.suggestionsHint, children: Ge })
|
|
2317
2316
|
] })
|
|
2318
2317
|
] }),
|
|
2319
|
-
|
|
2318
|
+
w && /* @__PURE__ */ r.jsxs("div", { className: n.field, children: [
|
|
2320
2319
|
/* @__PURE__ */ r.jsx("div", { className: n.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: n.label, children: [
|
|
2321
2320
|
t("formReportLanguage"),
|
|
2322
2321
|
/* @__PURE__ */ r.jsx("span", { className: n.req, children: "*" })
|
|
@@ -2447,21 +2446,21 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2447
2446
|
] }) })
|
|
2448
2447
|
}
|
|
2449
2448
|
);
|
|
2450
|
-
},
|
|
2451
|
-
ctaButton:
|
|
2452
|
-
ctaFilled:
|
|
2453
|
-
ctaFilledContent:
|
|
2454
|
-
chevronRight:
|
|
2455
|
-
}, Pr = "kundli-report-astrologer",
|
|
2456
|
-
const c =
|
|
2457
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
2458
|
-
/* @__PURE__ */ r.jsxs("span", { className:
|
|
2449
|
+
}, va = "_ctaButton_rhimw_2", ka = "_ctaFilled_rhimw_21", wa = "_ctaFilledContent_rhimw_52", xa = "_chevronRight_rhimw_61", Ue = {
|
|
2450
|
+
ctaButton: va,
|
|
2451
|
+
ctaFilled: ka,
|
|
2452
|
+
ctaFilledContent: wa,
|
|
2453
|
+
chevronRight: xa
|
|
2454
|
+
}, Pr = "kundli-report-astrologer", Pa = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", Aa = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", Ca = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", ja = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", Ta = ({ t }) => {
|
|
2455
|
+
const c = Le()?.config.imageComponent ?? Ye;
|
|
2456
|
+
return /* @__PURE__ */ r.jsxs("div", { className: Te.marqueeContent, children: [
|
|
2457
|
+
/* @__PURE__ */ r.jsxs("span", { className: Te.badge, children: [
|
|
2459
2458
|
/* @__PURE__ */ r.jsx(
|
|
2460
2459
|
c,
|
|
2461
2460
|
{
|
|
2462
|
-
src:
|
|
2461
|
+
src: Pa,
|
|
2463
2462
|
alt: "",
|
|
2464
|
-
className:
|
|
2463
|
+
className: Te.badgeIcon,
|
|
2465
2464
|
width: 16,
|
|
2466
2465
|
height: 16,
|
|
2467
2466
|
loading: "lazy"
|
|
@@ -2469,13 +2468,13 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2469
2468
|
),
|
|
2470
2469
|
t("ctaKundliCreated")
|
|
2471
2470
|
] }),
|
|
2472
|
-
/* @__PURE__ */ r.jsxs("span", { className:
|
|
2471
|
+
/* @__PURE__ */ r.jsxs("span", { className: Te.badge, children: [
|
|
2473
2472
|
/* @__PURE__ */ r.jsx(
|
|
2474
2473
|
c,
|
|
2475
2474
|
{
|
|
2476
|
-
src:
|
|
2475
|
+
src: Aa,
|
|
2477
2476
|
alt: "",
|
|
2478
|
-
className:
|
|
2477
|
+
className: Te.badgeIcon,
|
|
2479
2478
|
width: 16,
|
|
2480
2479
|
height: 16,
|
|
2481
2480
|
loading: "lazy"
|
|
@@ -2483,13 +2482,13 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2483
2482
|
),
|
|
2484
2483
|
t("ctaCertified")
|
|
2485
2484
|
] }),
|
|
2486
|
-
/* @__PURE__ */ r.jsxs("span", { className:
|
|
2485
|
+
/* @__PURE__ */ r.jsxs("span", { className: Te.badge, children: [
|
|
2487
2486
|
/* @__PURE__ */ r.jsx(
|
|
2488
2487
|
c,
|
|
2489
2488
|
{
|
|
2490
|
-
src:
|
|
2489
|
+
src: Ca,
|
|
2491
2490
|
alt: "",
|
|
2492
|
-
className:
|
|
2491
|
+
className: Te.badgeIcon,
|
|
2493
2492
|
width: 16,
|
|
2494
2493
|
height: 16,
|
|
2495
2494
|
loading: "lazy"
|
|
@@ -2498,11 +2497,11 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2498
2497
|
t("ctaSecurePayment")
|
|
2499
2498
|
] })
|
|
2500
2499
|
] });
|
|
2501
|
-
},
|
|
2500
|
+
}, Na = (t) => /.+@.+\..+/.test(t), Sa = (t) => /^\d{10}$/.test(t), Ra = (t, o, c) => {
|
|
2502
2501
|
if (!t.fullName.trim()) return "fullName";
|
|
2503
2502
|
if (o) {
|
|
2504
|
-
if (!
|
|
2505
|
-
} else if (!
|
|
2503
|
+
if (!Na(t.email.trim())) return "email";
|
|
2504
|
+
} else if (!Sa((t.phone ?? "").trim())) return "phone";
|
|
2506
2505
|
if (!t.dateOfBirth) return "dateOfBirth";
|
|
2507
2506
|
if (!t.birthPlace.trim()) return "birthPlace";
|
|
2508
2507
|
if (c) {
|
|
@@ -2510,33 +2509,33 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2510
2509
|
if (!t.language_code) return "language_code";
|
|
2511
2510
|
}
|
|
2512
2511
|
return !t.birthTimeUnknown && !t.birthTime ? "birthTime" : null;
|
|
2513
|
-
},
|
|
2512
|
+
}, Ea = ({
|
|
2514
2513
|
t,
|
|
2515
2514
|
values: o,
|
|
2516
2515
|
phoneIsdCode: c,
|
|
2517
2516
|
requireV1ExtraFields: d = !1,
|
|
2518
2517
|
onValidationFailed: b,
|
|
2519
|
-
onProceed:
|
|
2518
|
+
onProceed: w,
|
|
2520
2519
|
onProceedGuidance: g,
|
|
2521
2520
|
href: T,
|
|
2522
2521
|
analytics: v,
|
|
2523
|
-
className:
|
|
2524
|
-
discountedPriceLabel:
|
|
2522
|
+
className: F = "",
|
|
2523
|
+
discountedPriceLabel: x,
|
|
2525
2524
|
discountPillLabel: E,
|
|
2526
2525
|
showPlanSheet: u,
|
|
2527
2526
|
confirmPlan: I,
|
|
2528
2527
|
planSheetOpen: h,
|
|
2529
2528
|
selectedPlan: M
|
|
2530
2529
|
}) => {
|
|
2531
|
-
const f =
|
|
2532
|
-
() =>
|
|
2530
|
+
const f = Le(), m = f?.config.isGlobal ?? !0, y = f?.config?.variant, Z = Xe(
|
|
2531
|
+
() => Ra(o, m, d),
|
|
2533
2532
|
[o, m, d]
|
|
2534
|
-
),
|
|
2535
|
-
if (
|
|
2536
|
-
|
|
2533
|
+
), q = Z === null, W = y === "v1" && f?.config?.showSheet, B = m ? x ?? t("formDiscountedPrice") : W ? "" : "₹499", $ = f?.config.imageComponent ?? Ye, A = (ee) => {
|
|
2534
|
+
if (ee.preventDefault(), y === "v1" && !q && v?.trackKundliDetailedClicked?.(), !q) {
|
|
2535
|
+
Z && b?.(Z);
|
|
2537
2536
|
return;
|
|
2538
2537
|
}
|
|
2539
|
-
const
|
|
2538
|
+
const V = !!g && y === "v1" && M?.id === Pr, D = (o.phone ?? "").trim(), j = {
|
|
2540
2539
|
...o,
|
|
2541
2540
|
phone: D && `${c}-${D}`
|
|
2542
2541
|
};
|
|
@@ -2544,23 +2543,23 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2544
2543
|
h ? I?.() : u?.(j);
|
|
2545
2544
|
return;
|
|
2546
2545
|
}
|
|
2547
|
-
v?.trackPrimaryCtaClickedL1?.({ avenue: "form" }),
|
|
2546
|
+
v?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), V ? g(j) : w?.(j);
|
|
2548
2547
|
}, S = /* @__PURE__ */ r.jsx(
|
|
2549
2548
|
Ur,
|
|
2550
2549
|
{
|
|
2551
2550
|
href: T,
|
|
2552
|
-
disabled: y === "v1" ? !1 : !
|
|
2551
|
+
disabled: y === "v1" ? !1 : !q,
|
|
2553
2552
|
onClick: A,
|
|
2554
2553
|
"aria-label": t("formPriceAria"),
|
|
2555
|
-
className: y === "v1" &&
|
|
2556
|
-
children: y === "v1" ?
|
|
2554
|
+
className: y === "v1" && q ? Ue.ctaFilled : y === "v1" ? Ue.ctaButton : void 0,
|
|
2555
|
+
children: y === "v1" ? q ? /* @__PURE__ */ r.jsxs("span", { className: Ue.ctaFilledContent, children: [
|
|
2557
2556
|
W ? t("selectPackage") : h && M ? `${t("proceedWithPlan")}${M.price}` : `${t("formProceed")} ${B}`,
|
|
2558
2557
|
/* @__PURE__ */ r.jsx(
|
|
2559
2558
|
$,
|
|
2560
2559
|
{
|
|
2561
|
-
src:
|
|
2560
|
+
src: ja,
|
|
2562
2561
|
alt: "",
|
|
2563
|
-
className:
|
|
2562
|
+
className: Ue.chevronRight,
|
|
2564
2563
|
width: 20,
|
|
2565
2564
|
height: 20,
|
|
2566
2565
|
loading: "lazy"
|
|
@@ -2576,18 +2575,18 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2576
2575
|
return /* @__PURE__ */ r.jsx(
|
|
2577
2576
|
Gr,
|
|
2578
2577
|
{
|
|
2579
|
-
className: `${
|
|
2580
|
-
marquee: /* @__PURE__ */ r.jsx(Kr, { children: /* @__PURE__ */ r.jsx(
|
|
2578
|
+
className: `${Ue.footerContainer} ${F}`,
|
|
2579
|
+
marquee: /* @__PURE__ */ r.jsx(Kr, { children: /* @__PURE__ */ r.jsx(Ta, { t }) }),
|
|
2581
2580
|
children: S
|
|
2582
2581
|
}
|
|
2583
2582
|
);
|
|
2584
|
-
},
|
|
2583
|
+
}, Ia = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", La = ({
|
|
2585
2584
|
t,
|
|
2586
2585
|
languageSelector: o,
|
|
2587
|
-
logoUrl: c =
|
|
2586
|
+
logoUrl: c = Ia,
|
|
2588
2587
|
className: d = ""
|
|
2589
2588
|
}) => {
|
|
2590
|
-
const b =
|
|
2589
|
+
const b = Le(), w = b?.config.isGlobal ?? !0, g = o != null && !w;
|
|
2591
2590
|
return /* @__PURE__ */ r.jsx(
|
|
2592
2591
|
Wr,
|
|
2593
2592
|
{
|
|
@@ -2599,7 +2598,7 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2599
2598
|
className: d
|
|
2600
2599
|
}
|
|
2601
2600
|
);
|
|
2602
|
-
},
|
|
2601
|
+
}, Ba = () => /* @__PURE__ */ r.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx(
|
|
2603
2602
|
"path",
|
|
2604
2603
|
{
|
|
2605
2604
|
d: "M3.5 8.5l2.5 2.5 6-6",
|
|
@@ -2608,7 +2607,7 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2608
2607
|
strokeLinecap: "round",
|
|
2609
2608
|
strokeLinejoin: "round"
|
|
2610
2609
|
}
|
|
2611
|
-
) }),
|
|
2610
|
+
) }), Da = () => /* @__PURE__ */ r.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx(
|
|
2612
2611
|
"path",
|
|
2613
2612
|
{
|
|
2614
2613
|
d: "M4.5 4.5l7 7M11.5 4.5l-7 7",
|
|
@@ -2616,52 +2615,52 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2616
2615
|
strokeWidth: "1.8",
|
|
2617
2616
|
strokeLinecap: "round"
|
|
2618
2617
|
}
|
|
2619
|
-
) }),
|
|
2618
|
+
) }), Oa = () => /* @__PURE__ */ r.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx("path", { d: "M15 18l-6-6 6-6" }) }), Fa = () => /* @__PURE__ */ r.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: [
|
|
2620
2619
|
/* @__PURE__ */ r.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
2621
2620
|
/* @__PURE__ */ r.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
2622
|
-
] }),
|
|
2623
|
-
overlay:
|
|
2624
|
-
sheet:
|
|
2625
|
-
header:
|
|
2626
|
-
backBtn:
|
|
2627
|
-
title:
|
|
2628
|
-
plansContainer:
|
|
2629
|
-
planCard:
|
|
2630
|
-
withBadgeSpacing:
|
|
2631
|
-
planCardSelected:
|
|
2632
|
-
planCardPopular:
|
|
2633
|
-
popularBadge:
|
|
2634
|
-
planCardInner:
|
|
2635
|
-
planTitleRow:
|
|
2636
|
-
planTitle:
|
|
2637
|
-
radioCircle:
|
|
2638
|
-
radioChecked:
|
|
2639
|
-
radioInner:
|
|
2640
|
-
priceRow:
|
|
2641
|
-
price:
|
|
2642
|
-
originalPrice:
|
|
2643
|
-
savingsBadge:
|
|
2644
|
-
featureList:
|
|
2645
|
-
featureItem:
|
|
2646
|
-
featureIcon:
|
|
2647
|
-
featureText:
|
|
2648
|
-
astrologerHeading:
|
|
2649
|
-
astrologerList:
|
|
2650
|
-
astrologerCard:
|
|
2651
|
-
astrologerAvatar:
|
|
2652
|
-
astrologerAvatarPlaceholder:
|
|
2653
|
-
astrologerTop:
|
|
2654
|
-
astrologerBasicInfo:
|
|
2655
|
-
astrologerName:
|
|
2656
|
-
astrologerExp:
|
|
2657
|
-
astrologerDivider:
|
|
2658
|
-
planDivider:
|
|
2659
|
-
astrologerCertList:
|
|
2660
|
-
astrologerCertItem:
|
|
2661
|
-
bullet:
|
|
2662
|
-
footer:
|
|
2663
|
-
proceedBtn:
|
|
2664
|
-
},
|
|
2621
|
+
] }), Ma = "_overlay_18irl_2", $a = "_sheet_18irl_12", Ua = "_header_18irl_36", Ga = "_backBtn_18irl_48", Ka = "_title_18irl_66", Wa = "_plansContainer_18irl_78", Ha = "_planCard_18irl_87", Ya = "_withBadgeSpacing_18irl_101", qa = "_planCardSelected_18irl_105", Va = "_planCardPopular_18irl_110", za = "_popularBadge_18irl_119", Ja = "_planCardInner_18irl_137", Qa = "_planTitleRow_18irl_148", Xa = "_planTitle_18irl_148", Za = "_radioCircle_18irl_163", en = "_radioChecked_18irl_176", rn = "_radioInner_18irl_181", tn = "_priceRow_18irl_189", an = "_price_18irl_189", nn = "_originalPrice_18irl_202", on = "_savingsBadge_18irl_209", sn = "_featureList_18irl_219", ln = "_featureItem_18irl_228", cn = "_featureIcon_18irl_234", dn = "_featureText_18irl_240", un = "_astrologerHeading_18irl_251", mn = "_astrologerList_18irl_258", fn = "_astrologerCard_18irl_274", pn = "_astrologerAvatar_18irl_290", hn = "_astrologerAvatarPlaceholder_18irl_307", gn = "_astrologerTop_18irl_313", _n = "_astrologerBasicInfo_18irl_319", bn = "_astrologerName_18irl_326", yn = "_astrologerExp_18irl_335", vn = "_astrologerDivider_18irl_341", kn = "_planDivider_18irl_347", wn = "_astrologerCertList_18irl_354", xn = "_astrologerCertItem_18irl_360", Pn = "_bullet_18irl_368", An = "_footer_18irl_373", Cn = "_proceedBtn_18irl_383", _ = {
|
|
2622
|
+
overlay: Ma,
|
|
2623
|
+
sheet: $a,
|
|
2624
|
+
header: Ua,
|
|
2625
|
+
backBtn: Ga,
|
|
2626
|
+
title: Ka,
|
|
2627
|
+
plansContainer: Wa,
|
|
2628
|
+
planCard: Ha,
|
|
2629
|
+
withBadgeSpacing: Ya,
|
|
2630
|
+
planCardSelected: qa,
|
|
2631
|
+
planCardPopular: Va,
|
|
2632
|
+
popularBadge: za,
|
|
2633
|
+
planCardInner: Ja,
|
|
2634
|
+
planTitleRow: Qa,
|
|
2635
|
+
planTitle: Xa,
|
|
2636
|
+
radioCircle: Za,
|
|
2637
|
+
radioChecked: en,
|
|
2638
|
+
radioInner: rn,
|
|
2639
|
+
priceRow: tn,
|
|
2640
|
+
price: an,
|
|
2641
|
+
originalPrice: nn,
|
|
2642
|
+
savingsBadge: on,
|
|
2643
|
+
featureList: sn,
|
|
2644
|
+
featureItem: ln,
|
|
2645
|
+
featureIcon: cn,
|
|
2646
|
+
featureText: dn,
|
|
2647
|
+
astrologerHeading: un,
|
|
2648
|
+
astrologerList: mn,
|
|
2649
|
+
astrologerCard: fn,
|
|
2650
|
+
astrologerAvatar: pn,
|
|
2651
|
+
astrologerAvatarPlaceholder: hn,
|
|
2652
|
+
astrologerTop: gn,
|
|
2653
|
+
astrologerBasicInfo: _n,
|
|
2654
|
+
astrologerName: bn,
|
|
2655
|
+
astrologerExp: yn,
|
|
2656
|
+
astrologerDivider: vn,
|
|
2657
|
+
planDivider: kn,
|
|
2658
|
+
astrologerCertList: wn,
|
|
2659
|
+
astrologerCertItem: xn,
|
|
2660
|
+
bullet: Pn,
|
|
2661
|
+
footer: An,
|
|
2662
|
+
proceedBtn: Cn
|
|
2663
|
+
}, jn = ({ title: t, onBack: o }) => /* @__PURE__ */ r.jsxs("div", { className: _.header, children: [
|
|
2665
2664
|
/* @__PURE__ */ r.jsx(
|
|
2666
2665
|
"button",
|
|
2667
2666
|
{
|
|
@@ -2669,12 +2668,12 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2669
2668
|
onClick: o,
|
|
2670
2669
|
"aria-label": "Go back",
|
|
2671
2670
|
type: "button",
|
|
2672
|
-
children: /* @__PURE__ */ r.jsx(
|
|
2671
|
+
children: /* @__PURE__ */ r.jsx(Oa, {})
|
|
2673
2672
|
}
|
|
2674
2673
|
),
|
|
2675
2674
|
/* @__PURE__ */ r.jsx("h2", { className: _.title, children: t })
|
|
2676
|
-
] }),
|
|
2677
|
-
/* @__PURE__ */ r.jsx("span", { className: _.featureIcon, children: c.included ? /* @__PURE__ */ r.jsx(
|
|
2675
|
+
] }), Tn = ({ features: t, t: o }) => /* @__PURE__ */ r.jsx("ul", { className: _.featureList, "aria-label": "Plan features", children: t.map((c, d) => /* @__PURE__ */ r.jsxs("li", { className: _.featureItem, children: [
|
|
2676
|
+
/* @__PURE__ */ r.jsx("span", { className: _.featureIcon, children: c.included ? /* @__PURE__ */ r.jsx(Ba, {}) : /* @__PURE__ */ r.jsx(Da, {}) }),
|
|
2678
2677
|
/* @__PURE__ */ r.jsx(
|
|
2679
2678
|
"span",
|
|
2680
2679
|
{
|
|
@@ -2682,7 +2681,7 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2682
2681
|
children: o?.(c.text) ?? c.text
|
|
2683
2682
|
}
|
|
2684
2683
|
)
|
|
2685
|
-
] }, d)) }),
|
|
2684
|
+
] }, d)) }), Nn = ({ astrologer: t, t: o }) => /* @__PURE__ */ r.jsxs("div", { className: _.astrologerCard, children: [
|
|
2686
2685
|
/* @__PURE__ */ r.jsxs("div", { className: _.astrologerTop, children: [
|
|
2687
2686
|
/* @__PURE__ */ r.jsx("div", { className: _.astrologerAvatar, "aria-hidden": !0, children: t.imageUrl ? /* @__PURE__ */ r.jsx("img", { src: t.imageUrl, alt: o?.(t.name) ?? t.name, width: 40, height: 40 }) : /* @__PURE__ */ r.jsx("span", { className: _.astrologerAvatarPlaceholder, children: t.name.charAt(0) }) }),
|
|
2688
2687
|
/* @__PURE__ */ r.jsxs("div", { className: _.astrologerBasicInfo, children: [
|
|
@@ -2696,11 +2695,11 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2696
2695
|
" ",
|
|
2697
2696
|
o?.(c) ?? c
|
|
2698
2697
|
] }, d)) })
|
|
2699
|
-
] }),
|
|
2700
|
-
/* @__PURE__ */ r.jsx(
|
|
2698
|
+
] }), Sn = ({ label: t }) => /* @__PURE__ */ r.jsxs("div", { className: _.popularBadge, "aria-label": t, children: [
|
|
2699
|
+
/* @__PURE__ */ r.jsx(Fa, {}),
|
|
2701
2700
|
/* @__PURE__ */ r.jsx("span", { children: t })
|
|
2702
|
-
] }),
|
|
2703
|
-
const b = () => c(t.id),
|
|
2701
|
+
] }), Rn = ({ plan: t, isSelected: o, onSelect: c, t: d }) => {
|
|
2702
|
+
const b = () => c(t.id), w = (g) => {
|
|
2704
2703
|
(g.key === " " || g.key === "Enter") && (g.preventDefault(), c(t.id));
|
|
2705
2704
|
};
|
|
2706
2705
|
return /* @__PURE__ */ r.jsxs(
|
|
@@ -2715,10 +2714,10 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2715
2714
|
role: "radio",
|
|
2716
2715
|
"aria-checked": o,
|
|
2717
2716
|
tabIndex: 0,
|
|
2718
|
-
onKeyDown:
|
|
2717
|
+
onKeyDown: w,
|
|
2719
2718
|
"data-plan-id": t.id,
|
|
2720
2719
|
children: [
|
|
2721
|
-
t.badge && /* @__PURE__ */ r.jsx(
|
|
2720
|
+
t.badge && /* @__PURE__ */ r.jsx(Sn, { label: d?.(t.badge) ?? t.badge }),
|
|
2722
2721
|
/* @__PURE__ */ r.jsxs("div", { className: _.planCardInner, children: [
|
|
2723
2722
|
/* @__PURE__ */ r.jsxs("div", { className: `${_.planTitleRow} ${t.badge ? _.withBadgeSpacing : ""}`, children: [
|
|
2724
2723
|
/* @__PURE__ */ r.jsx("span", { className: _.planTitle, children: d?.(t.title) ?? t.title }),
|
|
@@ -2736,17 +2735,17 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2736
2735
|
t.originalPrice && /* @__PURE__ */ r.jsx("span", { className: _.originalPrice, children: t.originalPrice }),
|
|
2737
2736
|
t.savingsLabel && /* @__PURE__ */ r.jsx("span", { className: _.savingsBadge, children: d?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
|
|
2738
2737
|
] }),
|
|
2739
|
-
/* @__PURE__ */ r.jsx(
|
|
2738
|
+
/* @__PURE__ */ r.jsx(Tn, { features: t.features, t: d }),
|
|
2740
2739
|
t.astrologers && /* @__PURE__ */ r.jsx("div", { className: _.planDivider }),
|
|
2741
2740
|
t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2742
2741
|
/* @__PURE__ */ r.jsx("p", { className: _.astrologerHeading, children: d?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
|
|
2743
|
-
/* @__PURE__ */ r.jsx("div", { className: _.astrologerList, role: "list", children: t.astrologers.map((g, T) => /* @__PURE__ */ r.jsx("div", { role: "listitem", children: /* @__PURE__ */ r.jsx(
|
|
2742
|
+
/* @__PURE__ */ r.jsx("div", { className: _.astrologerList, role: "list", children: t.astrologers.map((g, T) => /* @__PURE__ */ r.jsx("div", { role: "listitem", children: /* @__PURE__ */ r.jsx(Nn, { astrologer: g, t: d }) }, T)) })
|
|
2744
2743
|
] })
|
|
2745
2744
|
] })
|
|
2746
2745
|
]
|
|
2747
2746
|
}
|
|
2748
2747
|
);
|
|
2749
|
-
},
|
|
2748
|
+
}, En = [
|
|
2750
2749
|
{
|
|
2751
2750
|
id: "jyoti",
|
|
2752
2751
|
name: "planAstrologerNameJyoti",
|
|
@@ -2774,7 +2773,7 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2774
2773
|
experience: "planAstrologerExpNeeraj",
|
|
2775
2774
|
certifications: ["planAstrologerCertBhuCertified", "planAstrologerCertMantraRudraksha"]
|
|
2776
2775
|
}
|
|
2777
|
-
],
|
|
2776
|
+
], In = (t) => [
|
|
2778
2777
|
{
|
|
2779
2778
|
id: "kundli-report",
|
|
2780
2779
|
title: "planNameBasic",
|
|
@@ -2800,35 +2799,35 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2800
2799
|
{ text: "planFeatureRealTimeAnswers", included: !0 },
|
|
2801
2800
|
{ text: "planFeatureTailoredRemedies", included: !0 }
|
|
2802
2801
|
],
|
|
2803
|
-
astrologers:
|
|
2802
|
+
astrologers: En.filter(
|
|
2804
2803
|
(o) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(o.id)
|
|
2805
2804
|
)
|
|
2806
2805
|
}
|
|
2807
|
-
],
|
|
2806
|
+
], Ln = ({
|
|
2808
2807
|
isOpen: t,
|
|
2809
2808
|
onClose: o,
|
|
2810
2809
|
selectedPlan: c,
|
|
2811
2810
|
onSelectPlan: d,
|
|
2812
2811
|
plans: b,
|
|
2813
|
-
onProceed:
|
|
2812
|
+
onProceed: w,
|
|
2814
2813
|
t: g,
|
|
2815
2814
|
analytics: T
|
|
2816
2815
|
}) => {
|
|
2817
|
-
const
|
|
2818
|
-
|
|
2816
|
+
const F = Le()?.config.isGlobal ?? !0, x = b ?? In(F), E = c?.id || x.find((f) => f.badge)?.id || x[0]?.id || "", u = O(null), I = O(null), h = O(!1);
|
|
2817
|
+
z(() => {
|
|
2819
2818
|
if (t) {
|
|
2820
2819
|
if (!c) {
|
|
2821
|
-
const f =
|
|
2820
|
+
const f = x.find((m) => m.badge) ?? x[0];
|
|
2822
2821
|
f && d(f);
|
|
2823
2822
|
}
|
|
2824
2823
|
h.current || (T?.trackPlanPageViewed?.(), h.current = !0);
|
|
2825
2824
|
} else
|
|
2826
2825
|
h.current = !1;
|
|
2827
|
-
}, [t,
|
|
2826
|
+
}, [t, x, c, d, T]);
|
|
2828
2827
|
const M = () => {
|
|
2829
2828
|
T?.trackPlanPageClosed?.(), o();
|
|
2830
2829
|
};
|
|
2831
|
-
return
|
|
2830
|
+
return z(() => {
|
|
2832
2831
|
if (!t) return;
|
|
2833
2832
|
const f = document.body.style.overflow;
|
|
2834
2833
|
return document.body.style.overflow = "hidden", () => {
|
|
@@ -2848,7 +2847,7 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2848
2847
|
className: _.sheet,
|
|
2849
2848
|
children: [
|
|
2850
2849
|
/* @__PURE__ */ r.jsx(
|
|
2851
|
-
|
|
2850
|
+
jn,
|
|
2852
2851
|
{
|
|
2853
2852
|
title: g?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
2854
2853
|
onBack: M
|
|
@@ -2861,14 +2860,14 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2861
2860
|
className: _.plansContainer,
|
|
2862
2861
|
role: "radiogroup",
|
|
2863
2862
|
"aria-label": "Kundli plans",
|
|
2864
|
-
children:
|
|
2865
|
-
|
|
2863
|
+
children: x.map((f) => /* @__PURE__ */ r.jsx(
|
|
2864
|
+
Rn,
|
|
2866
2865
|
{
|
|
2867
2866
|
plan: f,
|
|
2868
2867
|
isSelected: f.id === E,
|
|
2869
2868
|
t: g,
|
|
2870
2869
|
onSelect: (m) => {
|
|
2871
|
-
const y =
|
|
2870
|
+
const y = x.find((Z) => Z.id === m);
|
|
2872
2871
|
y && (T?.trackPlanSelected?.({
|
|
2873
2872
|
planId: y.id,
|
|
2874
2873
|
planName: y.title
|
|
@@ -2888,7 +2887,7 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2888
2887
|
c && (T?.trackPlanProceedClicked?.({
|
|
2889
2888
|
planId: c.id,
|
|
2890
2889
|
planName: c.title
|
|
2891
|
-
}),
|
|
2890
|
+
}), w(c), o());
|
|
2892
2891
|
},
|
|
2893
2892
|
children: c ? g?.("planProceedToPayment") ?? c.price + "Proceed to Payment" : "Select a plan"
|
|
2894
2893
|
}
|
|
@@ -2898,9 +2897,10 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2898
2897
|
)
|
|
2899
2898
|
}
|
|
2900
2899
|
) : null;
|
|
2901
|
-
},
|
|
2900
|
+
}, Bn = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Dn = (t, o) => yr[t]?.[o] ?? o, On = (t, o) => t && ha.includes(t) ? t : o ? "+1" : "+91", Fn = {
|
|
2902
2901
|
fullName: "",
|
|
2903
2902
|
phone: "",
|
|
2903
|
+
phoneCountryCode: "",
|
|
2904
2904
|
gender: "",
|
|
2905
2905
|
email: "",
|
|
2906
2906
|
language_code: "",
|
|
@@ -2908,85 +2908,89 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2908
2908
|
birthTime: "",
|
|
2909
2909
|
birthTimeUnknown: !1,
|
|
2910
2910
|
birthPlace: ""
|
|
2911
|
-
},
|
|
2911
|
+
}, Yn = ({
|
|
2912
2912
|
className: t = "",
|
|
2913
2913
|
locale: o,
|
|
2914
2914
|
showLanguageSelector: c = !0,
|
|
2915
2915
|
onBack: d,
|
|
2916
2916
|
initialValues: b,
|
|
2917
|
-
onProceed:
|
|
2917
|
+
onProceed: w,
|
|
2918
2918
|
onProceedGuidance: g,
|
|
2919
2919
|
proceedHref: T,
|
|
2920
2920
|
originalPriceLabel: v,
|
|
2921
|
-
discountedPriceLabel:
|
|
2922
|
-
googleMapsApiKey:
|
|
2921
|
+
discountedPriceLabel: F,
|
|
2922
|
+
googleMapsApiKey: x = "",
|
|
2923
2923
|
atlasSearchLocalities: E,
|
|
2924
2924
|
googleMapsAutocompleteEnabled: u,
|
|
2925
2925
|
analytics: I
|
|
2926
2926
|
}) => {
|
|
2927
|
-
const h =
|
|
2927
|
+
const h = Le(), M = nt(), f = h !== null, m = f ? h.locale : o, y = m ?? M?.locale ?? "en", [Z, q] = U(y), W = f ? h.locale : Z, B = f ? h.setLocale : q, [$, A] = U(!1), S = O(null), ee = O(m), V = O(
|
|
2928
2928
|
M?.locale
|
|
2929
2929
|
);
|
|
2930
|
-
|
|
2930
|
+
z(() => {
|
|
2931
2931
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
2932
2932
|
}, []);
|
|
2933
|
-
const D = (
|
|
2934
|
-
|
|
2935
|
-
m &&
|
|
2936
|
-
}, [m, B]),
|
|
2933
|
+
const D = (P) => Dn(W, P);
|
|
2934
|
+
z(() => {
|
|
2935
|
+
m && ee.current !== m && B(m), ee.current = m;
|
|
2936
|
+
}, [m, B]), z(() => {
|
|
2937
2937
|
if (m) return;
|
|
2938
|
-
const
|
|
2939
|
-
|
|
2938
|
+
const P = M?.locale;
|
|
2939
|
+
P && V.current !== P && B(P), V.current = P;
|
|
2940
2940
|
}, [M?.locale, m, B]);
|
|
2941
2941
|
const [j, G] = U({
|
|
2942
|
-
...
|
|
2942
|
+
...Fn,
|
|
2943
2943
|
...b,
|
|
2944
2944
|
phone: b?.phone ?? ""
|
|
2945
|
-
}), H = f ? h?.config.isGlobal ?? !0 : !0, [
|
|
2946
|
-
|
|
2947
|
-
);
|
|
2948
|
-
|
|
2949
|
-
|
|
2945
|
+
}), H = f ? h?.config.isGlobal ?? !0 : !0, J = f ? h.formValues : j, xe = f ? h.setFormValues : G, [re, Q] = U(
|
|
2946
|
+
() => On(J.phoneCountryCode, H)
|
|
2947
|
+
), ae = O(!0);
|
|
2948
|
+
z(() => {
|
|
2949
|
+
if (ae.current) {
|
|
2950
|
+
ae.current = !1;
|
|
2951
|
+
return;
|
|
2952
|
+
}
|
|
2953
|
+
Q(H ? "+1" : "+91");
|
|
2950
2954
|
}, [H]);
|
|
2951
|
-
const
|
|
2952
|
-
|
|
2955
|
+
const oe = f ? h.goToPage : d, _e = f ? h.onProceed : w, de = f ? h.onProceedGuidance : g, ue = f ? h.config.proceedHref : T, be = f ? h.config.originalPriceLabel : v, ie = f ? h.config.discountedPriceLabel : F, fe = f ? h.config.showLanguageSelector ?? !0 : c, X = (f ? h?.config?.analytics : I) ?? I;
|
|
2956
|
+
z(() => {
|
|
2953
2957
|
if (!$) return;
|
|
2954
|
-
const
|
|
2955
|
-
S.current && !S.current.contains(
|
|
2958
|
+
const P = (Ne) => {
|
|
2959
|
+
S.current && !S.current.contains(Ne.target) && A(!1);
|
|
2956
2960
|
};
|
|
2957
|
-
return document.addEventListener("mousedown",
|
|
2961
|
+
return document.addEventListener("mousedown", P), () => document.removeEventListener("mousedown", P);
|
|
2958
2962
|
}, [$]);
|
|
2959
|
-
const [
|
|
2960
|
-
|
|
2961
|
-
}, []),
|
|
2962
|
-
|
|
2963
|
-
if (
|
|
2963
|
+
const [me, se] = U(!1), [le, Ce] = U(null), te = O(null), Pe = we((P) => {
|
|
2964
|
+
te.current = P, se(!0);
|
|
2965
|
+
}, []), ye = O(!1);
|
|
2966
|
+
z(() => {
|
|
2967
|
+
if (ye.current || !f || !h?.config.autoOpenPlanSheet || h?.config.variant !== "v1")
|
|
2964
2968
|
return;
|
|
2965
|
-
|
|
2966
|
-
const
|
|
2967
|
-
|
|
2968
|
-
...
|
|
2969
|
-
phone:
|
|
2969
|
+
ye.current = !0;
|
|
2970
|
+
const P = (J.phone ?? "").trim();
|
|
2971
|
+
Pe({
|
|
2972
|
+
...J,
|
|
2973
|
+
phone: P && `${re}-${P}`
|
|
2970
2974
|
});
|
|
2971
|
-
}, [f, h?.config.autoOpenPlanSheet, h?.config.variant,
|
|
2972
|
-
const
|
|
2973
|
-
if (!
|
|
2974
|
-
|
|
2975
|
-
planId:
|
|
2976
|
-
planName:
|
|
2977
|
-
price:
|
|
2975
|
+
}, [f, h?.config.autoOpenPlanSheet, h?.config.variant, J, re, Pe]);
|
|
2976
|
+
const Ae = we(() => {
|
|
2977
|
+
if (!te.current || !le) return;
|
|
2978
|
+
X?.trackPlanProceedClicked?.({
|
|
2979
|
+
planId: le.id,
|
|
2980
|
+
planName: le.title,
|
|
2981
|
+
price: le.price,
|
|
2978
2982
|
currency: H ? "USD" : "INR"
|
|
2979
2983
|
});
|
|
2980
|
-
const
|
|
2981
|
-
|
|
2982
|
-
}, [
|
|
2984
|
+
const P = { ...te.current, _selectedPlan: le };
|
|
2985
|
+
le.id === Pr && de ? de(P) : _e?.(P), se(!1), te.current = null;
|
|
2986
|
+
}, [le, _e, de]), ge = h?.config.imageComponent ?? Ye, ve = fe ? /* @__PURE__ */ r.jsxs("div", { className: ke.langDropdownWrap, ref: S, children: [
|
|
2983
2987
|
/* @__PURE__ */ r.jsxs(
|
|
2984
2988
|
"button",
|
|
2985
2989
|
{
|
|
2986
2990
|
type: "button",
|
|
2987
2991
|
className: ke.langTrigger,
|
|
2988
2992
|
onClick: () => {
|
|
2989
|
-
|
|
2993
|
+
X?.trackLanguageClickedFe?.({ language: W }), A((P) => !P);
|
|
2990
2994
|
},
|
|
2991
2995
|
"aria-expanded": $,
|
|
2992
2996
|
"aria-haspopup": "listbox",
|
|
@@ -2994,9 +2998,9 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
2994
2998
|
"aria-label": D("language"),
|
|
2995
2999
|
children: [
|
|
2996
3000
|
/* @__PURE__ */ r.jsx(
|
|
2997
|
-
|
|
3001
|
+
ge,
|
|
2998
3002
|
{
|
|
2999
|
-
src:
|
|
3003
|
+
src: Bn,
|
|
3000
3004
|
alt: "",
|
|
3001
3005
|
className: ke.langIcon,
|
|
3002
3006
|
width: 16,
|
|
@@ -3015,86 +3019,86 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
3015
3019
|
role: "listbox",
|
|
3016
3020
|
"aria-labelledby": "kundli-form-lang",
|
|
3017
3021
|
"aria-activedescendant": `kundli-form-lang-option-${W}`,
|
|
3018
|
-
children: br.map((
|
|
3022
|
+
children: br.map((P) => /* @__PURE__ */ r.jsx(
|
|
3019
3023
|
"li",
|
|
3020
3024
|
{
|
|
3021
|
-
id: `kundli-form-lang-option-${
|
|
3025
|
+
id: `kundli-form-lang-option-${P}`,
|
|
3022
3026
|
role: "option",
|
|
3023
|
-
"aria-selected":
|
|
3027
|
+
"aria-selected": P === W,
|
|
3024
3028
|
className: ke.langOption,
|
|
3025
3029
|
onClick: () => {
|
|
3026
|
-
|
|
3030
|
+
X?.trackLanguageChangedFe?.({ newLanguage: P }), B(P), A(!1);
|
|
3027
3031
|
},
|
|
3028
|
-
children: fr[
|
|
3032
|
+
children: fr[P]
|
|
3029
3033
|
},
|
|
3030
|
-
|
|
3034
|
+
P
|
|
3031
3035
|
))
|
|
3032
3036
|
}
|
|
3033
3037
|
)
|
|
3034
3038
|
] }) : null;
|
|
3035
3039
|
return /* @__PURE__ */ r.jsxs("div", { className: `${ke.container} ${t}`, children: [
|
|
3036
3040
|
/* @__PURE__ */ r.jsx(
|
|
3037
|
-
|
|
3041
|
+
La,
|
|
3038
3042
|
{
|
|
3039
3043
|
t: D,
|
|
3040
3044
|
logoUrl: f ? h.config.logoUrl : void 0,
|
|
3041
|
-
languageSelector:
|
|
3045
|
+
languageSelector: ve,
|
|
3042
3046
|
className: ke.kundliHeaderNoBorder
|
|
3043
3047
|
}
|
|
3044
3048
|
),
|
|
3045
3049
|
/* @__PURE__ */ r.jsx("div", { className: ke.headerSeparator, "aria-hidden": !0 }),
|
|
3046
3050
|
/* @__PURE__ */ r.jsxs("main", { className: ke.main, children: [
|
|
3047
|
-
/* @__PURE__ */ r.jsx(mt, { t: D, onBack:
|
|
3051
|
+
/* @__PURE__ */ r.jsx(mt, { t: D, onBack: oe }),
|
|
3048
3052
|
/* @__PURE__ */ r.jsx(
|
|
3049
|
-
|
|
3053
|
+
ya,
|
|
3050
3054
|
{
|
|
3051
3055
|
t: D,
|
|
3052
|
-
values:
|
|
3053
|
-
onChange:
|
|
3054
|
-
googleMapsApiKey:
|
|
3056
|
+
values: J,
|
|
3057
|
+
onChange: xe,
|
|
3058
|
+
googleMapsApiKey: x,
|
|
3055
3059
|
atlasSearchLocalities: E,
|
|
3056
3060
|
googleMapsAutocompleteEnabled: u,
|
|
3057
|
-
phoneIsdCode:
|
|
3058
|
-
onPhoneIsdCodeChange:
|
|
3061
|
+
phoneIsdCode: re,
|
|
3062
|
+
onPhoneIsdCodeChange: Q,
|
|
3059
3063
|
showV1ExtraFields: f ? h?.config.variant === "v1" : !1,
|
|
3060
|
-
analytics:
|
|
3064
|
+
analytics: X
|
|
3061
3065
|
}
|
|
3062
3066
|
)
|
|
3063
3067
|
] }),
|
|
3064
3068
|
/* @__PURE__ */ r.jsx(
|
|
3065
|
-
|
|
3069
|
+
Ea,
|
|
3066
3070
|
{
|
|
3067
3071
|
t: D,
|
|
3068
|
-
values:
|
|
3069
|
-
phoneIsdCode:
|
|
3070
|
-
onProceed:
|
|
3071
|
-
onProceedGuidance:
|
|
3072
|
-
href:
|
|
3073
|
-
originalPriceLabel:
|
|
3074
|
-
discountedPriceLabel:
|
|
3075
|
-
analytics:
|
|
3076
|
-
showPlanSheet:
|
|
3077
|
-
confirmPlan:
|
|
3078
|
-
planSheetOpen:
|
|
3079
|
-
selectedPlan:
|
|
3072
|
+
values: J,
|
|
3073
|
+
phoneIsdCode: re,
|
|
3074
|
+
onProceed: _e,
|
|
3075
|
+
onProceedGuidance: de,
|
|
3076
|
+
href: ue,
|
|
3077
|
+
originalPriceLabel: be,
|
|
3078
|
+
discountedPriceLabel: ie,
|
|
3079
|
+
analytics: X,
|
|
3080
|
+
showPlanSheet: Pe,
|
|
3081
|
+
confirmPlan: Ae,
|
|
3082
|
+
planSheetOpen: me,
|
|
3083
|
+
selectedPlan: le
|
|
3080
3084
|
}
|
|
3081
3085
|
),
|
|
3082
3086
|
h?.config.variant === "v1" && /* @__PURE__ */ r.jsx(
|
|
3083
|
-
|
|
3087
|
+
Ln,
|
|
3084
3088
|
{
|
|
3085
|
-
isOpen:
|
|
3086
|
-
onClose: () =>
|
|
3087
|
-
selectedPlan:
|
|
3088
|
-
onSelectPlan:
|
|
3089
|
+
isOpen: me,
|
|
3090
|
+
onClose: () => se(!1),
|
|
3091
|
+
selectedPlan: le,
|
|
3092
|
+
onSelectPlan: Ce,
|
|
3089
3093
|
onProceed: () => {
|
|
3090
|
-
|
|
3094
|
+
Ae?.();
|
|
3091
3095
|
},
|
|
3092
3096
|
t: D,
|
|
3093
|
-
analytics:
|
|
3097
|
+
analytics: X
|
|
3094
3098
|
}
|
|
3095
3099
|
)
|
|
3096
3100
|
] });
|
|
3097
|
-
},
|
|
3101
|
+
}, qn = {
|
|
3098
3102
|
banner_clicked_fe: "banner_clicked_fe",
|
|
3099
3103
|
primary_cta_clicked_fe: "primary_cta_clicked_fe",
|
|
3100
3104
|
language_changed_fe: "language_changed_fe",
|
|
@@ -3140,32 +3144,32 @@ const xr = 10, tr = (t) => t.replace(/\D/g, ""), gr = (t) => tr(t).slice(0, xr),
|
|
|
3140
3144
|
kundli_view_sample_image_closed: "kundli_view_sample_image_closed"
|
|
3141
3145
|
};
|
|
3142
3146
|
export {
|
|
3143
|
-
|
|
3147
|
+
Oa as C,
|
|
3144
3148
|
Ye as D,
|
|
3145
3149
|
mt as F,
|
|
3146
|
-
|
|
3147
|
-
|
|
3150
|
+
Un as I,
|
|
3151
|
+
qn as K,
|
|
3148
3152
|
fr as L,
|
|
3149
3153
|
Pr as P,
|
|
3150
3154
|
br as S,
|
|
3151
|
-
|
|
3155
|
+
ya as U,
|
|
3152
3156
|
kr as a,
|
|
3153
3157
|
rr as b,
|
|
3154
|
-
|
|
3155
|
-
|
|
3158
|
+
Yn as c,
|
|
3159
|
+
Wn as d,
|
|
3156
3160
|
st as e,
|
|
3157
3161
|
lt as f,
|
|
3158
3162
|
ot as g,
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3163
|
+
Le as h,
|
|
3164
|
+
Kn as i,
|
|
3165
|
+
Hn as j,
|
|
3162
3166
|
r as k,
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
+
La as l,
|
|
3168
|
+
Ea as m,
|
|
3169
|
+
Ln as n,
|
|
3170
|
+
Gn as r,
|
|
3167
3171
|
it as s,
|
|
3168
3172
|
yr as t,
|
|
3169
3173
|
nt as u
|
|
3170
3174
|
};
|
|
3171
|
-
//# sourceMappingURL=analytics-
|
|
3175
|
+
//# sourceMappingURL=analytics-C6U9JxHz.js.map
|