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