@srimandir/kundli-generator 4.38.0 → 5.1.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-mqYZuSm2.js} +829 -899
- package/dist/analytics-mqYZuSm2.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-DM3iYZlX.js} +6 -6
- package/dist/criticalCss-DM3iYZlX.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
|
|
1
|
+
import We, { useContext as Ke, createContext as dr, useState as W, useRef as K, useEffect as H, useMemo as Ge, useCallback as Te } from "react";
|
|
2
|
+
import { FormSectionHeader as Dr, FooterCTAButton as Or, FooterShell as Fr, CircularMarquee as Mr, footerShellStyles as we, PageHeader as $r } from "@srimandir/astrology-common";
|
|
3
|
+
var Le = { exports: {} }, Ee = {};
|
|
4
4
|
var nr;
|
|
5
5
|
function Ur() {
|
|
6
|
-
if (nr) return
|
|
6
|
+
if (nr) return Ee;
|
|
7
7
|
nr = 1;
|
|
8
|
-
var t =
|
|
9
|
-
function
|
|
10
|
-
var c,
|
|
11
|
-
|
|
12
|
-
for (c in
|
|
13
|
-
if (
|
|
14
|
-
return { $$typeof: o, type:
|
|
8
|
+
var t = We, o = /* @__PURE__ */ Symbol.for("react.element"), d = /* @__PURE__ */ Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, x = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, R = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
|
+
function w(j, A, I) {
|
|
10
|
+
var c, N = {}, p = null, S = null;
|
|
11
|
+
I !== void 0 && (p = "" + I), A.key !== void 0 && (p = "" + A.key), A.ref !== void 0 && (S = A.ref);
|
|
12
|
+
for (c in A) m.call(A, c) && !R.hasOwnProperty(c) && (N[c] = A[c]);
|
|
13
|
+
if (j && j.defaultProps) for (c in A = j.defaultProps, A) N[c] === void 0 && (N[c] = A[c]);
|
|
14
|
+
return { $$typeof: o, type: j, key: p, ref: S, props: N, _owner: x.current };
|
|
15
15
|
}
|
|
16
|
-
return
|
|
16
|
+
return Ee.Fragment = d, Ee.jsx = w, Ee.jsxs = w, Ee;
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var Ie = {};
|
|
19
19
|
var or;
|
|
20
20
|
function Gr() {
|
|
21
21
|
return or || (or = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
-
var t =
|
|
23
|
-
function
|
|
22
|
+
var t = We, o = /* @__PURE__ */ Symbol.for("react.element"), d = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), R = /* @__PURE__ */ Symbol.for("react.profiler"), w = /* @__PURE__ */ Symbol.for("react.provider"), j = /* @__PURE__ */ Symbol.for("react.context"), A = /* @__PURE__ */ Symbol.for("react.forward_ref"), I = /* @__PURE__ */ Symbol.for("react.suspense"), c = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), S = /* @__PURE__ */ Symbol.for("react.offscreen"), h = Symbol.iterator, E = "@@iterator";
|
|
23
|
+
function C(e) {
|
|
24
24
|
if (e === null || typeof e != "object")
|
|
25
25
|
return null;
|
|
26
|
-
var i =
|
|
26
|
+
var i = h && e[h] || e[E];
|
|
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[
|
|
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
34
|
G("error", e, l);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
function G(e, i, l) {
|
|
38
38
|
{
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
var
|
|
42
|
-
return String(
|
|
39
|
+
var u = b.ReactDebugCurrentFrame, P = u.getStackAddendum();
|
|
40
|
+
P !== "" && (i += "%s", l = l.concat([P]));
|
|
41
|
+
var T = l.map(function(k) {
|
|
42
|
+
return String(k);
|
|
43
43
|
});
|
|
44
|
-
|
|
44
|
+
T.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, T);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
function
|
|
50
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
47
|
+
var y = !1, O = !1, X = !1, Z = !1, ie = !1, Y;
|
|
48
|
+
Y = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
|
+
function F(e) {
|
|
50
|
+
return !!(typeof e == "string" || typeof e == "function" || e === m || e === R || ie || e === x || e === I || e === c || Z || e === S || y || O || X || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === N || e.$$typeof === w || e.$$typeof === j || e.$$typeof === A || // This needs to include all possible module reference object
|
|
51
51
|
// types supported by any Flight configuration anywhere since
|
|
52
52
|
// we don't know which Flight build this will end up being used
|
|
53
53
|
// with.
|
|
54
|
-
e.$$typeof ===
|
|
54
|
+
e.$$typeof === Y || e.getModuleId !== void 0));
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
var
|
|
58
|
-
if (
|
|
59
|
-
return
|
|
60
|
-
var
|
|
61
|
-
return
|
|
56
|
+
function ue(e, i, l) {
|
|
57
|
+
var u = e.displayName;
|
|
58
|
+
if (u)
|
|
59
|
+
return u;
|
|
60
|
+
var P = i.displayName || i.name || "";
|
|
61
|
+
return P !== "" ? l + "(" + P + ")" : l;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function z(e) {
|
|
64
64
|
return e.displayName || "Context";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function L(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 R:
|
|
79
79
|
return "Profiler";
|
|
80
|
-
case
|
|
80
|
+
case x:
|
|
81
81
|
return "StrictMode";
|
|
82
|
-
case
|
|
82
|
+
case I:
|
|
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 j:
|
|
90
90
|
var i = e;
|
|
91
|
-
return
|
|
92
|
-
case h:
|
|
93
|
-
var l = e;
|
|
94
|
-
return U(l._context) + ".Provider";
|
|
91
|
+
return z(i) + ".Consumer";
|
|
95
92
|
case w:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
return
|
|
93
|
+
var l = e;
|
|
94
|
+
return z(l._context) + ".Provider";
|
|
95
|
+
case A:
|
|
96
|
+
return ue(e, e.render, "ForwardRef");
|
|
97
|
+
case N:
|
|
98
|
+
var u = e.displayName || null;
|
|
99
|
+
return u !== null ? u : L(e.type) || "Memo";
|
|
100
100
|
case p: {
|
|
101
|
-
var
|
|
101
|
+
var P = e, T = P._payload, k = P._init;
|
|
102
102
|
try {
|
|
103
|
-
return
|
|
103
|
+
return L(k(T));
|
|
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 B = Object.assign, q = 0, J, te, ge, V, le, me, se;
|
|
112
|
+
function ae() {
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
function
|
|
114
|
+
ae.__reactDisabledLog = !0;
|
|
115
|
+
function _e() {
|
|
116
116
|
{
|
|
117
|
-
if (
|
|
118
|
-
J = console.log,
|
|
117
|
+
if (q === 0) {
|
|
118
|
+
J = console.log, te = console.info, ge = console.warn, V = console.error, le = console.group, me = console.groupCollapsed, se = console.groupEnd;
|
|
119
119
|
var e = {
|
|
120
120
|
configurable: !0,
|
|
121
121
|
enumerable: !0,
|
|
122
|
-
value:
|
|
122
|
+
value: ae,
|
|
123
123
|
writable: !0
|
|
124
124
|
};
|
|
125
125
|
Object.defineProperties(console, {
|
|
@@ -132,202 +132,202 @@ function Gr() {
|
|
|
132
132
|
groupEnd: e
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
q++;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function ee() {
|
|
139
139
|
{
|
|
140
|
-
if (
|
|
140
|
+
if (q--, q === 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:
|
|
147
|
+
log: B({}, e, {
|
|
148
148
|
value: J
|
|
149
149
|
}),
|
|
150
|
-
info:
|
|
151
|
-
value:
|
|
150
|
+
info: B({}, e, {
|
|
151
|
+
value: te
|
|
152
152
|
}),
|
|
153
|
-
warn:
|
|
153
|
+
warn: B({}, e, {
|
|
154
154
|
value: ge
|
|
155
155
|
}),
|
|
156
|
-
error:
|
|
157
|
-
value:
|
|
156
|
+
error: B({}, e, {
|
|
157
|
+
value: V
|
|
158
158
|
}),
|
|
159
|
-
group:
|
|
160
|
-
value:
|
|
159
|
+
group: B({}, e, {
|
|
160
|
+
value: le
|
|
161
161
|
}),
|
|
162
|
-
groupCollapsed:
|
|
163
|
-
value:
|
|
162
|
+
groupCollapsed: B({}, e, {
|
|
163
|
+
value: me
|
|
164
164
|
}),
|
|
165
|
-
groupEnd:
|
|
166
|
-
value:
|
|
165
|
+
groupEnd: B({}, e, {
|
|
166
|
+
value: se
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
q < 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 ne = b.ReactCurrentDispatcher, oe;
|
|
174
|
+
function M(e, i, l) {
|
|
175
175
|
{
|
|
176
|
-
if (
|
|
176
|
+
if (oe === void 0)
|
|
177
177
|
try {
|
|
178
178
|
throw Error();
|
|
179
|
-
} catch (
|
|
180
|
-
var
|
|
181
|
-
|
|
179
|
+
} catch (P) {
|
|
180
|
+
var u = P.stack.trim().match(/\n( *(at )?)/);
|
|
181
|
+
oe = u && u[1] || "";
|
|
182
182
|
}
|
|
183
183
|
return `
|
|
184
|
-
` +
|
|
184
|
+
` + oe + e;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var be = !1, fe;
|
|
188
188
|
{
|
|
189
|
-
var
|
|
190
|
-
|
|
189
|
+
var ke = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
|
+
fe = new ke();
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
if (!e ||
|
|
192
|
+
function ye(e, i) {
|
|
193
|
+
if (!e || be)
|
|
194
194
|
return "";
|
|
195
195
|
{
|
|
196
|
-
var l =
|
|
196
|
+
var l = fe.get(e);
|
|
197
197
|
if (l !== void 0)
|
|
198
198
|
return l;
|
|
199
199
|
}
|
|
200
|
-
var
|
|
201
|
-
|
|
202
|
-
var
|
|
200
|
+
var u;
|
|
201
|
+
be = !0;
|
|
202
|
+
var P = Error.prepareStackTrace;
|
|
203
203
|
Error.prepareStackTrace = void 0;
|
|
204
|
-
var
|
|
205
|
-
|
|
204
|
+
var T;
|
|
205
|
+
T = ne.current, ne.current = null, _e();
|
|
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 (re) {
|
|
219
|
+
u = re;
|
|
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 (re) {
|
|
226
|
+
u = re;
|
|
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 (re) {
|
|
234
|
+
u = re;
|
|
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 (re) {
|
|
239
|
+
if (re && u && typeof re.stack == "string") {
|
|
240
|
+
for (var g = re.stack.split(`
|
|
241
|
+
`), Q = u.stack.split(`
|
|
242
|
+
`), D = g.length - 1, U = Q.length - 1; D >= 1 && U >= 0 && g[D] !== Q[U]; )
|
|
243
|
+
U--;
|
|
244
|
+
for (; D >= 1 && U >= 0; D--, U--)
|
|
245
|
+
if (g[D] !== Q[U]) {
|
|
246
|
+
if (D !== 1 || U !== 1)
|
|
247
247
|
do
|
|
248
|
-
if (
|
|
248
|
+
if (D--, U--, U < 0 || g[D] !== Q[U]) {
|
|
249
249
|
var de = `
|
|
250
|
-
` +
|
|
251
|
-
return e.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
250
|
+
` + g[D].replace(" at new ", " at ");
|
|
251
|
+
return e.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", e.displayName)), typeof e == "function" && fe.set(e, de), de;
|
|
252
252
|
}
|
|
253
|
-
while (
|
|
253
|
+
while (D >= 1 && U >= 0);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
} finally {
|
|
258
|
-
|
|
258
|
+
be = !1, ne.current = T, ee(), Error.prepareStackTrace = P;
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
return typeof e == "function" &&
|
|
260
|
+
var je = e ? e.displayName || e.name : "", xe = je ? M(je) : "";
|
|
261
|
+
return typeof e == "function" && fe.set(e, xe), xe;
|
|
262
262
|
}
|
|
263
263
|
function Pe(e, i, l) {
|
|
264
|
-
return
|
|
264
|
+
return ye(e, !1);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Ae(e) {
|
|
267
267
|
var i = e.prototype;
|
|
268
268
|
return !!(i && i.isReactComponent);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function v(e, i, l) {
|
|
271
271
|
if (e == null)
|
|
272
272
|
return "";
|
|
273
273
|
if (typeof e == "function")
|
|
274
|
-
return
|
|
274
|
+
return ye(e, Ae(e));
|
|
275
275
|
if (typeof e == "string")
|
|
276
|
-
return
|
|
276
|
+
return M(e);
|
|
277
277
|
switch (e) {
|
|
278
|
-
case
|
|
279
|
-
return
|
|
278
|
+
case I:
|
|
279
|
+
return M("Suspense");
|
|
280
280
|
case c:
|
|
281
|
-
return
|
|
281
|
+
return M("SuspenseList");
|
|
282
282
|
}
|
|
283
283
|
if (typeof e == "object")
|
|
284
284
|
switch (e.$$typeof) {
|
|
285
|
-
case
|
|
285
|
+
case A:
|
|
286
286
|
return Pe(e.render);
|
|
287
|
-
case
|
|
288
|
-
return
|
|
287
|
+
case N:
|
|
288
|
+
return v(e.type, i, l);
|
|
289
289
|
case p: {
|
|
290
|
-
var
|
|
290
|
+
var u = e, P = u._payload, T = u._init;
|
|
291
291
|
try {
|
|
292
|
-
return
|
|
292
|
+
return v(T(P), i, l);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
return "";
|
|
298
298
|
}
|
|
299
|
-
var
|
|
300
|
-
function
|
|
299
|
+
var ce = Object.prototype.hasOwnProperty, Se = {}, n = b.ReactDebugCurrentFrame;
|
|
300
|
+
function s(e) {
|
|
301
301
|
if (e) {
|
|
302
|
-
var i = e._owner, l =
|
|
303
|
-
|
|
302
|
+
var i = e._owner, l = v(e.type, e._source, i ? i.type : null);
|
|
303
|
+
n.setExtraStackFrame(l);
|
|
304
304
|
} else
|
|
305
|
-
|
|
305
|
+
n.setExtraStackFrame(null);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function $(e, i, l, u, P) {
|
|
308
308
|
{
|
|
309
|
-
var
|
|
310
|
-
for (var
|
|
311
|
-
if (
|
|
312
|
-
var
|
|
309
|
+
var T = Function.call.bind(ce);
|
|
310
|
+
for (var k in e)
|
|
311
|
+
if (T(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 Q = 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 Q.name = "Invariant Violation", Q;
|
|
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) && (s(P), _("%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), s(null)), g instanceof Error && !(g.message in Se) && (Se[g.message] = !0, s(P), _("Failed %s type: %s", l, g.message), s(null));
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
var
|
|
327
|
-
function
|
|
328
|
-
return
|
|
326
|
+
var pe = Array.isArray;
|
|
327
|
+
function ve(e) {
|
|
328
|
+
return pe(e);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function Oe(e) {
|
|
331
331
|
{
|
|
332
332
|
var i = typeof Symbol == "function" && Symbol.toStringTag, l = i && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
333
333
|
return l;
|
|
@@ -345,16 +345,16 @@ function Gr() {
|
|
|
345
345
|
}
|
|
346
346
|
function qe(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.", Oe(e)), Ye(e);
|
|
349
349
|
}
|
|
350
|
-
var Ve =
|
|
350
|
+
var Ve = b.ReactCurrentOwner, br = {
|
|
351
351
|
key: !0,
|
|
352
352
|
ref: !0,
|
|
353
353
|
__self: !0,
|
|
354
354
|
__source: !0
|
|
355
|
-
},
|
|
355
|
+
}, ze, Je;
|
|
356
356
|
function yr(e) {
|
|
357
|
-
if (
|
|
357
|
+
if (ce.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 (ce.call(e, "key")) {
|
|
366
366
|
var i = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
367
367
|
if (i && i.isReactWarning)
|
|
368
368
|
return !1;
|
|
@@ -375,7 +375,7 @@ function Gr() {
|
|
|
375
375
|
function xr(e, i) {
|
|
376
376
|
{
|
|
377
377
|
var l = function() {
|
|
378
|
-
|
|
378
|
+
ze || (ze = !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
|
+
Je || (Je = !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,57 +394,57 @@ 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, P, T, 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: T
|
|
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: P
|
|
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, P) {
|
|
427
427
|
{
|
|
428
|
-
var
|
|
429
|
-
l !== void 0 && (qe(l),
|
|
430
|
-
for (
|
|
431
|
-
|
|
428
|
+
var T, k = {}, g = null, Q = null;
|
|
429
|
+
l !== void 0 && (qe(l), g = "" + l), kr(i) && (qe(i.key), g = "" + i.key), yr(i) && (Q = i.ref, vr(i, P));
|
|
430
|
+
for (T in i)
|
|
431
|
+
ce.call(i, T) && !br.hasOwnProperty(T) && (k[T] = i[T]);
|
|
432
432
|
if (e && e.defaultProps) {
|
|
433
|
-
var
|
|
434
|
-
for (
|
|
435
|
-
|
|
433
|
+
var D = e.defaultProps;
|
|
434
|
+
for (T in D)
|
|
435
|
+
k[T] === void 0 && (k[T] = D[T]);
|
|
436
436
|
}
|
|
437
|
-
if (
|
|
438
|
-
var
|
|
439
|
-
|
|
437
|
+
if (g || Q) {
|
|
438
|
+
var U = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
439
|
+
g && xr(k, U), Q && wr(k, U);
|
|
440
440
|
}
|
|
441
|
-
return Pr(e,
|
|
441
|
+
return Pr(e, g, Q, P, u, Ve.current, k);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
var Fe =
|
|
445
|
-
function
|
|
444
|
+
var Fe = b.ReactCurrentOwner, Qe = b.ReactDebugCurrentFrame;
|
|
445
|
+
function Ce(e) {
|
|
446
446
|
if (e) {
|
|
447
|
-
var i = e._owner, l =
|
|
447
|
+
var i = e._owner, l = v(e.type, e._source, i ? i.type : null);
|
|
448
448
|
Qe.setExtraStackFrame(l);
|
|
449
449
|
} else
|
|
450
450
|
Qe.setExtraStackFrame(null);
|
|
@@ -457,7 +457,7 @@ function Gr() {
|
|
|
457
457
|
function Xe() {
|
|
458
458
|
{
|
|
459
459
|
if (Fe.current) {
|
|
460
|
-
var e =
|
|
460
|
+
var e = L(Fe.current.type);
|
|
461
461
|
if (e)
|
|
462
462
|
return `
|
|
463
463
|
|
|
@@ -491,26 +491,26 @@ Check the top-level render call using <` + l + ">.");
|
|
|
491
491
|
if (Ze[l])
|
|
492
492
|
return;
|
|
493
493
|
Ze[l] = !0;
|
|
494
|
-
var
|
|
495
|
-
e && e._owner && e._owner !== Fe.current && (
|
|
494
|
+
var u = "";
|
|
495
|
+
e && e._owner && e._owner !== Fe.current && (u = " It was passed a child from " + L(e._owner.type) + "."), Ce(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), Ce(null);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
function rr(e, i) {
|
|
499
499
|
{
|
|
500
500
|
if (typeof e != "object")
|
|
501
501
|
return;
|
|
502
|
-
if (
|
|
502
|
+
if (ve(e))
|
|
503
503
|
for (var l = 0; l < e.length; l++) {
|
|
504
|
-
var
|
|
505
|
-
$e(
|
|
504
|
+
var u = e[l];
|
|
505
|
+
$e(u) && er(u, i);
|
|
506
506
|
}
|
|
507
507
|
else if ($e(e))
|
|
508
508
|
e._store && (e._store.validated = !0);
|
|
509
509
|
else if (e) {
|
|
510
|
-
var
|
|
511
|
-
if (typeof
|
|
512
|
-
for (var
|
|
513
|
-
$e(
|
|
510
|
+
var P = C(e);
|
|
511
|
+
if (typeof P == "function" && P !== e.entries)
|
|
512
|
+
for (var T = P.call(e), k; !(k = T.next()).done; )
|
|
513
|
+
$e(k.value) && er(k.value, i);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
@@ -522,78 +522,78 @@ 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 === A || // Note: Memo only checks outer props here.
|
|
526
526
|
// Inner props are checked in the reconciler.
|
|
527
|
-
i.$$typeof ===
|
|
527
|
+
i.$$typeof === N))
|
|
528
528
|
l = i.propTypes;
|
|
529
529
|
else
|
|
530
530
|
return;
|
|
531
531
|
if (l) {
|
|
532
|
-
var
|
|
533
|
-
|
|
532
|
+
var u = L(i);
|
|
533
|
+
$(l, e.props, "prop", u, e);
|
|
534
534
|
} else if (i.PropTypes !== void 0 && !Me) {
|
|
535
535
|
Me = !0;
|
|
536
|
-
var
|
|
537
|
-
|
|
536
|
+
var P = L(i);
|
|
537
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
538
538
|
}
|
|
539
|
-
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved &&
|
|
539
|
+
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && _("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
|
+
Ce(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), Ce(null);
|
|
548
548
|
break;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
e.ref !== null && (
|
|
551
|
+
e.ref !== null && (Ce(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), Ce(null));
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
var tr = {};
|
|
555
|
-
function ar(e, i, l,
|
|
555
|
+
function ar(e, i, l, u, P, T) {
|
|
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 Q = Cr();
|
|
562
|
+
Q ? g += Q : g += Xe();
|
|
563
|
+
var D;
|
|
564
|
+
e === null ? D = "null" : ve(e) ? D = "array" : e !== void 0 && e.$$typeof === o ? (D = "<" + (L(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 (
|
|
566
|
+
var U = Ar(e, i, l, P, T);
|
|
567
|
+
if (U == null)
|
|
568
|
+
return U;
|
|
569
|
+
if (k) {
|
|
570
570
|
var de = i.children;
|
|
571
571
|
if (de !== void 0)
|
|
572
|
-
if (
|
|
573
|
-
if (
|
|
574
|
-
for (var
|
|
575
|
-
rr(de[
|
|
572
|
+
if (u)
|
|
573
|
+
if (ve(de)) {
|
|
574
|
+
for (var je = 0; je < de.length; je++)
|
|
575
|
+
rr(de[je], e);
|
|
576
576
|
Object.freeze && Object.freeze(de);
|
|
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
|
rr(de, e);
|
|
581
581
|
}
|
|
582
|
-
if (
|
|
583
|
-
var
|
|
582
|
+
if (ce.call(i, "key")) {
|
|
583
|
+
var xe = L(e), re = Object.keys(i).filter(function(Lr) {
|
|
584
584
|
return Lr !== "key";
|
|
585
|
-
}), Ue =
|
|
586
|
-
if (!tr[
|
|
587
|
-
var Br =
|
|
588
|
-
|
|
585
|
+
}), Ue = re.length > 0 ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
|
+
if (!tr[xe + Ue]) {
|
|
587
|
+
var Br = re.length > 0 ? "{" + re.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} />`, Ue,
|
|
593
|
+
<%s key={someKey} {...props} />`, Ue, xe, Br, xe), tr[xe + Ue] = !0;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
return e ===
|
|
596
|
+
return e === m ? Tr(U) : Nr(U), U;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
function Rr(e, i, l) {
|
|
@@ -603,18 +603,18 @@ React keys must be passed directly to JSX without using spread:
|
|
|
603
603
|
return ar(e, i, l, !1);
|
|
604
604
|
}
|
|
605
605
|
var Er = Sr, Ir = Rr;
|
|
606
|
-
|
|
607
|
-
})()),
|
|
606
|
+
Ie.Fragment = m, Ie.jsx = Er, Ie.jsxs = Ir;
|
|
607
|
+
})()), Ie;
|
|
608
608
|
}
|
|
609
609
|
var ir;
|
|
610
|
-
function
|
|
611
|
-
return ir || (ir = 1, process.env.NODE_ENV === "production" ?
|
|
610
|
+
function Wr() {
|
|
611
|
+
return ir || (ir = 1, process.env.NODE_ENV === "production" ? Le.exports = Ur() : Le.exports = Gr()), Le.exports;
|
|
612
612
|
}
|
|
613
|
-
var r =
|
|
614
|
-
const
|
|
613
|
+
var r = Wr();
|
|
614
|
+
const ur = ["en", "hi"], lr = {
|
|
615
615
|
en: "English",
|
|
616
616
|
hi: "हिन्दी"
|
|
617
|
-
},
|
|
617
|
+
}, mr = {
|
|
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
|
+
}, fr = dr(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: (x) => mr[t]?.[x] ?? x };
|
|
1054
|
+
return /* @__PURE__ */ r.jsx(fr.Provider, { value: m, children: o });
|
|
1055
1055
|
};
|
|
1056
|
-
function
|
|
1057
|
-
return
|
|
1056
|
+
function Kr() {
|
|
1057
|
+
return Ke(fr);
|
|
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", he = {
|
|
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
|
+
}, De = (t) => {
|
|
1071
|
+
const { priority: o, fetchPriority: d, width: m, height: x, ...R } = t;
|
|
1072
|
+
return We.createElement("img", {
|
|
1073
|
+
...R,
|
|
1074
|
+
width: m ?? 1,
|
|
1075
|
+
height: x ?? 1,
|
|
1076
1076
|
decoding: "async",
|
|
1077
|
-
loading:
|
|
1077
|
+
loading: R.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 pr = "kundli_language";
|
|
1115
1115
|
function at() {
|
|
1116
|
-
const t = rt(
|
|
1117
|
-
return t &&
|
|
1116
|
+
const t = rt(pr);
|
|
1117
|
+
return t && ur.includes(t) ? t : null;
|
|
1118
1118
|
}
|
|
1119
1119
|
function nt(t) {
|
|
1120
|
-
tt(
|
|
1120
|
+
tt(pr, t);
|
|
1121
1121
|
}
|
|
1122
|
-
const He =
|
|
1122
|
+
const He = dr(null), ot = {
|
|
1123
1123
|
fullName: "",
|
|
1124
1124
|
phone: "",
|
|
1125
1125
|
gender: "",
|
|
@@ -1128,135 +1128,137 @@ 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: x,
|
|
1140
|
+
variant: R,
|
|
1141
|
+
atlasSearchLocalities: w,
|
|
1142
|
+
logoUrl: j,
|
|
1143
|
+
reportImageUrl: A,
|
|
1144
|
+
reportImagePriority: I,
|
|
1143
1145
|
backgroundImagePriority: c,
|
|
1144
|
-
universityLogoUrls:
|
|
1146
|
+
universityLogoUrls: N,
|
|
1145
1147
|
sampleReportHref: p,
|
|
1146
|
-
onViewSampleReport:
|
|
1147
|
-
ctaHref:
|
|
1148
|
+
onViewSampleReport: S,
|
|
1149
|
+
ctaHref: h,
|
|
1148
1150
|
onCtaClick: E,
|
|
1149
|
-
onBack:
|
|
1150
|
-
readMoreReviewsHref:
|
|
1151
|
-
onProceed:
|
|
1151
|
+
onBack: C,
|
|
1152
|
+
readMoreReviewsHref: b,
|
|
1153
|
+
onProceed: _,
|
|
1152
1154
|
proceedHref: G,
|
|
1153
|
-
originalPriceLabel:
|
|
1154
|
-
discountedPriceLabel:
|
|
1155
|
-
discountPillLabel:
|
|
1156
|
-
analytics:
|
|
1157
|
-
onProceedGuidance:
|
|
1158
|
-
onLocaleChange:
|
|
1159
|
-
imageComponent:
|
|
1160
|
-
children:
|
|
1155
|
+
originalPriceLabel: y,
|
|
1156
|
+
discountedPriceLabel: O,
|
|
1157
|
+
discountPillLabel: X,
|
|
1158
|
+
analytics: Z,
|
|
1159
|
+
onProceedGuidance: ie,
|
|
1160
|
+
onLocaleChange: Y,
|
|
1161
|
+
imageComponent: F = De,
|
|
1162
|
+
children: ue
|
|
1161
1163
|
}) => {
|
|
1162
|
-
const [
|
|
1163
|
-
|
|
1164
|
-
const
|
|
1165
|
-
|
|
1166
|
-
}, []),
|
|
1167
|
-
nt(
|
|
1168
|
-
}, [
|
|
1164
|
+
const [z, L] = W("landing"), [B, q] = W(t ?? "en"), [J, te] = W(ot), ge = K(!0);
|
|
1165
|
+
H(() => {
|
|
1166
|
+
const ae = at();
|
|
1167
|
+
ae && q(ae);
|
|
1168
|
+
}, []), H(() => {
|
|
1169
|
+
nt(B);
|
|
1170
|
+
}, [B]), H(() => {
|
|
1169
1171
|
if (ge.current) {
|
|
1170
1172
|
ge.current = !1;
|
|
1171
1173
|
return;
|
|
1172
1174
|
}
|
|
1173
|
-
|
|
1174
|
-
}, [
|
|
1175
|
-
const
|
|
1175
|
+
Y?.(B);
|
|
1176
|
+
}, [B, Y]);
|
|
1177
|
+
const V = Ge(
|
|
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: x,
|
|
1184
|
+
variant: R,
|
|
1185
|
+
atlasSearchLocalities: w,
|
|
1186
|
+
logoUrl: j,
|
|
1187
|
+
reportImageUrl: A,
|
|
1188
|
+
reportImagePriority: I,
|
|
1187
1189
|
backgroundImagePriority: c,
|
|
1188
|
-
universityLogoUrls:
|
|
1190
|
+
universityLogoUrls: N,
|
|
1189
1191
|
sampleReportHref: p,
|
|
1190
|
-
onViewSampleReport:
|
|
1191
|
-
ctaHref:
|
|
1192
|
+
onViewSampleReport: S,
|
|
1193
|
+
ctaHref: h,
|
|
1192
1194
|
onCtaClick: E,
|
|
1193
|
-
onBack:
|
|
1194
|
-
readMoreReviewsHref:
|
|
1195
|
-
onProceed:
|
|
1195
|
+
onBack: C,
|
|
1196
|
+
readMoreReviewsHref: b,
|
|
1197
|
+
onProceed: _,
|
|
1196
1198
|
proceedHref: G,
|
|
1197
|
-
originalPriceLabel:
|
|
1198
|
-
discountedPriceLabel:
|
|
1199
|
-
discountPillLabel:
|
|
1200
|
-
analytics:
|
|
1201
|
-
onProceedGuidance:
|
|
1202
|
-
onLocaleChange:
|
|
1203
|
-
imageComponent:
|
|
1199
|
+
originalPriceLabel: y,
|
|
1200
|
+
discountedPriceLabel: O,
|
|
1201
|
+
discountPillLabel: X,
|
|
1202
|
+
analytics: Z,
|
|
1203
|
+
onProceedGuidance: ie,
|
|
1204
|
+
onLocaleChange: Y,
|
|
1205
|
+
imageComponent: F
|
|
1204
1206
|
}),
|
|
1205
1207
|
[
|
|
1206
1208
|
t,
|
|
1207
1209
|
o,
|
|
1208
1210
|
d,
|
|
1209
|
-
|
|
1210
|
-
y,
|
|
1211
|
+
m,
|
|
1211
1212
|
x,
|
|
1212
|
-
|
|
1213
|
-
N,
|
|
1213
|
+
R,
|
|
1214
1214
|
w,
|
|
1215
|
-
|
|
1215
|
+
j,
|
|
1216
|
+
A,
|
|
1217
|
+
I,
|
|
1216
1218
|
c,
|
|
1217
|
-
|
|
1219
|
+
N,
|
|
1218
1220
|
p,
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
+
S,
|
|
1222
|
+
h,
|
|
1221
1223
|
E,
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
g,
|
|
1225
|
-
G,
|
|
1224
|
+
C,
|
|
1225
|
+
b,
|
|
1226
1226
|
_,
|
|
1227
|
-
|
|
1227
|
+
G,
|
|
1228
|
+
y,
|
|
1228
1229
|
O,
|
|
1229
|
-
|
|
1230
|
+
X,
|
|
1230
1231
|
Z,
|
|
1231
|
-
|
|
1232
|
-
|
|
1232
|
+
ie,
|
|
1233
|
+
Y,
|
|
1234
|
+
F
|
|
1233
1235
|
]
|
|
1234
|
-
),
|
|
1235
|
-
|
|
1236
|
-
}, [
|
|
1237
|
-
|
|
1238
|
-
}, [
|
|
1236
|
+
), le = Te(() => {
|
|
1237
|
+
L("form");
|
|
1238
|
+
}, [V.analytics]), me = Te(() => {
|
|
1239
|
+
L("landing"), V.onBack?.();
|
|
1240
|
+
}, [V.onBack]), se = Ge(
|
|
1239
1241
|
() => ({
|
|
1240
|
-
view:
|
|
1241
|
-
locale:
|
|
1242
|
-
setLocale:
|
|
1243
|
-
config:
|
|
1242
|
+
view: z,
|
|
1243
|
+
locale: B,
|
|
1244
|
+
setLocale: q,
|
|
1245
|
+
config: V,
|
|
1244
1246
|
formValues: J,
|
|
1245
|
-
setFormValues:
|
|
1246
|
-
goToForm:
|
|
1247
|
-
goToPage:
|
|
1248
|
-
onProceed:
|
|
1249
|
-
onProceedGuidance:
|
|
1247
|
+
setFormValues: te,
|
|
1248
|
+
goToForm: le,
|
|
1249
|
+
goToPage: me,
|
|
1250
|
+
onProceed: V.onProceed,
|
|
1251
|
+
onProceedGuidance: V.onProceedGuidance
|
|
1250
1252
|
}),
|
|
1251
|
-
[
|
|
1253
|
+
[z, B, V, J, le, me]
|
|
1252
1254
|
);
|
|
1253
|
-
return /* @__PURE__ */ r.jsx(He.Provider, { value:
|
|
1255
|
+
return /* @__PURE__ */ r.jsx(He.Provider, { value: se, children: ue });
|
|
1254
1256
|
};
|
|
1255
|
-
function
|
|
1256
|
-
return
|
|
1257
|
+
function Re() {
|
|
1258
|
+
return Ke(He);
|
|
1257
1259
|
}
|
|
1258
|
-
function
|
|
1259
|
-
const t =
|
|
1260
|
+
function Bn() {
|
|
1261
|
+
const t = Ke(He);
|
|
1260
1262
|
if (!t)
|
|
1261
1263
|
throw new Error("useKundliContextOrThrow must be used within KundliProvider");
|
|
1262
1264
|
return t;
|
|
@@ -1268,7 +1270,7 @@ const it = "_header_19172_1", lt = "_centered_19172_8", sr = {
|
|
|
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: `${sr.header} ${
|
|
1281
|
+
className: `${sr.header} ${m === "center" ? sr.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", a = {
|
|
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
|
+
}, cr = (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, x] = W([]), [R, w] = W(!1), [j, A] = W(null), I = K(0);
|
|
1345
|
+
H(() => {
|
|
1346
|
+
A(null);
|
|
1347
|
+
}, [o]);
|
|
1348
|
+
const c = Te(
|
|
1349
|
+
async (p) => {
|
|
1350
|
+
if (!p || p.length < 2 || !o) {
|
|
1351
|
+
x([]);
|
|
1387
1352
|
return;
|
|
1388
1353
|
}
|
|
1389
|
-
|
|
1354
|
+
const S = ++I.current;
|
|
1355
|
+
w(!0), A(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 }), E = await o(p, h);
|
|
1358
|
+
if (S !== I.current) return;
|
|
1359
|
+
const C = (E || []).filter(
|
|
1360
|
+
(b) => !!b?.id && !!b?.description && cr(b?.lat) && cr(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
|
+
x(C);
|
|
1369
|
+
} catch (h) {
|
|
1370
|
+
if (S !== I.current) return;
|
|
1371
|
+
x([]), A(h?.message || "Failed to fetch locations");
|
|
1417
1372
|
} finally {
|
|
1418
|
-
|
|
1419
|
-
}
|
|
1420
|
-
},
|
|
1421
|
-
[u]
|
|
1422
|
-
), _ = be(
|
|
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;
|
|
1373
|
+
S === I.current && w(!1);
|
|
1455
1374
|
}
|
|
1456
1375
|
},
|
|
1457
|
-
[]
|
|
1458
|
-
),
|
|
1376
|
+
[d, o]
|
|
1377
|
+
), N = Te(() => x([]), []);
|
|
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: R,
|
|
1381
|
+
loadError: j,
|
|
1382
|
+
searchPlaces: c,
|
|
1383
|
+
clearPredictions: N
|
|
1469
1384
|
};
|
|
1470
|
-
},
|
|
1385
|
+
}, Ne = {
|
|
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
|
+
}, hr = [
|
|
1476
1391
|
{ code: "+1", country: "USA / Canada" },
|
|
1477
1392
|
{ code: "+7", country: "Russia / Kazakhstan" },
|
|
1478
1393
|
{ code: "+20", country: "Egypt" },
|
|
@@ -1543,21 +1458,19 @@ 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
|
+
hr.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: x,
|
|
1468
|
+
showV1ExtraFields: R = !1,
|
|
1469
|
+
analytics: w,
|
|
1470
|
+
atlasSearchLocalities: j,
|
|
1471
|
+
className: A = ""
|
|
1557
1472
|
}) => {
|
|
1558
|
-
const
|
|
1559
|
-
F?.config?.variant;
|
|
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) => {
|
|
1473
|
+
const I = Re(), c = I?.config?.analytics ?? w, N = I?.config.isGlobal ?? !0, p = I?.config?.atlasSearchLocalities, [S, h] = W(!1), [E, C] = W(""), b = K(null), _ = K(null), G = K({}), y = (n) => d({ ...o, ...n }), O = (n, s) => {
|
|
1561
1474
|
s.trim() && !G.current[n] && (G.current[n] = !0, {
|
|
1562
1475
|
fullName: () => c?.trackNameSectionFilled?.(),
|
|
1563
1476
|
phone: () => c?.trackPhoneSectionFilled?.(),
|
|
@@ -1566,86 +1479,89 @@ const ca = {}, da = ({
|
|
|
1566
1479
|
birthTime: () => c?.trackTimeFilled?.(),
|
|
1567
1480
|
birthPlace: () => c?.trackPlaceOfBirthChosen?.()
|
|
1568
1481
|
}[n]?.());
|
|
1569
|
-
},
|
|
1570
|
-
|
|
1571
|
-
const
|
|
1482
|
+
}, X = (n) => n.replace(/\D/g, "").slice(0, 10), Z = E.trim().toLowerCase(), ie = hr.filter((n) => Z ? n.country.toLowerCase().includes(Z) || n.code.includes(Z) : !0), Y = K(null);
|
|
1483
|
+
K(null);
|
|
1484
|
+
const F = K(null), ue = K(0), z = K(null), [L, B] = W(!1), [q, J] = W({ hour12: 12, minute: "00", meridiem: "AM" }), te = (n) => String(n).padStart(2, "0"), ge = (n) => {
|
|
1572
1485
|
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
1573
1486
|
if (!s) return n;
|
|
1574
|
-
const
|
|
1575
|
-
return `${
|
|
1576
|
-
},
|
|
1487
|
+
const $ = Number(s[1]), pe = s[2], ve = $ >= 12 ? "PM" : "AM";
|
|
1488
|
+
return `${$ % 12 === 0 ? 12 : $ % 12}:${pe} ${ve}`;
|
|
1489
|
+
}, V = (n) => {
|
|
1577
1490
|
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
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, n.hour12)),
|
|
1583
|
-
let
|
|
1584
|
-
return n.meridiem === "PM" && (
|
|
1585
|
-
},
|
|
1492
|
+
const $ = Number(s[1]), pe = s[2], ve = $ >= 12 ? "PM" : "AM";
|
|
1493
|
+
return { hour12: $ % 12 === 0 ? 12 : $ % 12, minute: pe, meridiem: ve };
|
|
1494
|
+
}, le = (n) => {
|
|
1495
|
+
const s = Math.min(12, Math.max(1, n.hour12)), $ = /^([0-5]\d)$/.test(n.minute) ? n.minute : "00";
|
|
1496
|
+
let pe = s % 12;
|
|
1497
|
+
return n.meridiem === "PM" && (pe += 12), `${te(pe)}:${$}`;
|
|
1498
|
+
}, me = K(null), [se, ae] = W(!1), [_e, ee] = W(o.birthPlace), [ne, oe] = W(
|
|
1586
1499
|
null
|
|
1587
|
-
),
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1500
|
+
), M = Number.isFinite(o.birthPlaceLat) && Number.isFinite(o.birthPlaceLng), be = _e.trim(), fe = N ? void 0 : "in", ke = j ?? p;
|
|
1501
|
+
H(() => {
|
|
1502
|
+
M && o.birthPlace !== _e && ee(o.birthPlace), !o.birthPlace && _e && !M && ee("");
|
|
1503
|
+
}, [_e, M, o.birthPlace]);
|
|
1504
|
+
const {
|
|
1505
|
+
predictions: ye,
|
|
1506
|
+
isSearching: Pe,
|
|
1507
|
+
loadError: Ae,
|
|
1508
|
+
searchPlaces: v,
|
|
1509
|
+
clearPredictions: ce
|
|
1593
1510
|
} = sa({
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
restrictCountry: ee
|
|
1511
|
+
searchLocalities: ke,
|
|
1512
|
+
restrictCountry: fe
|
|
1597
1513
|
});
|
|
1598
|
-
|
|
1514
|
+
H(() => {
|
|
1599
1515
|
const n = (s) => {
|
|
1600
|
-
|
|
1516
|
+
me.current && (me.current.contains(s.target) || (ae(!1), M || ee("")));
|
|
1601
1517
|
};
|
|
1602
1518
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1603
|
-
}, []),
|
|
1519
|
+
}, [M]), H(() => {
|
|
1604
1520
|
const n = (s) => {
|
|
1605
|
-
|
|
1521
|
+
b.current && (b.current.contains(s.target) || (h(!1), C("")));
|
|
1606
1522
|
};
|
|
1607
1523
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1608
|
-
}, []),
|
|
1609
|
-
if (!
|
|
1524
|
+
}, []), H(() => {
|
|
1525
|
+
if (!S) return;
|
|
1610
1526
|
const n = window.setTimeout(() => {
|
|
1611
|
-
|
|
1527
|
+
_.current?.focus();
|
|
1612
1528
|
}, 0);
|
|
1613
1529
|
return () => window.clearTimeout(n);
|
|
1614
|
-
}, [
|
|
1615
|
-
if (!
|
|
1616
|
-
if (
|
|
1617
|
-
|
|
1530
|
+
}, [S]), H(() => {
|
|
1531
|
+
if (!se) return;
|
|
1532
|
+
if (be.length < 2) {
|
|
1533
|
+
ce();
|
|
1618
1534
|
return;
|
|
1619
1535
|
}
|
|
1620
1536
|
const n = window.setTimeout(async () => {
|
|
1621
|
-
await
|
|
1537
|
+
await v(be);
|
|
1622
1538
|
}, 250);
|
|
1623
1539
|
return () => window.clearTimeout(n);
|
|
1624
|
-
}, [
|
|
1625
|
-
const
|
|
1540
|
+
}, [ce, se, be, v]);
|
|
1541
|
+
const Se = (n) => {
|
|
1626
1542
|
const s = n.current;
|
|
1627
1543
|
if (!(!s || s.disabled)) {
|
|
1628
|
-
if (document.activeElement === s &&
|
|
1544
|
+
if (document.activeElement === s && F.current === s && Date.now() - ue.current < 6e4) {
|
|
1629
1545
|
s.blur();
|
|
1630
1546
|
return;
|
|
1631
1547
|
}
|
|
1632
1548
|
if (typeof s.showPicker == "function") {
|
|
1633
|
-
s.showPicker(),
|
|
1549
|
+
s.showPicker(), F.current = s, ue.current = Date.now();
|
|
1634
1550
|
return;
|
|
1635
1551
|
}
|
|
1636
|
-
s.focus(),
|
|
1552
|
+
s.focus(), F.current = s, ue.current = Date.now();
|
|
1637
1553
|
}
|
|
1638
1554
|
};
|
|
1639
|
-
return
|
|
1555
|
+
return H(() => {
|
|
1640
1556
|
const n = (s) => {
|
|
1641
|
-
|
|
1557
|
+
z.current && (z.current.contains(s.target) || B(!1));
|
|
1642
1558
|
};
|
|
1643
1559
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1644
|
-
}, []),
|
|
1645
|
-
const n = (
|
|
1646
|
-
|
|
1647
|
-
}, s = (
|
|
1648
|
-
|
|
1560
|
+
}, []), H(() => {
|
|
1561
|
+
const n = ($) => {
|
|
1562
|
+
$.target?.closest?.("[data-info-tooltip]") == null && oe(null);
|
|
1563
|
+
}, s = ($) => {
|
|
1564
|
+
$.key === "Escape" && oe(null);
|
|
1649
1565
|
};
|
|
1650
1566
|
return document.addEventListener("mousedown", n), document.addEventListener("keydown", s), () => {
|
|
1651
1567
|
document.removeEventListener("mousedown", n), document.removeEventListener("keydown", s);
|
|
@@ -1653,7 +1569,7 @@ const ca = {}, da = ({
|
|
|
1653
1569
|
}, []), /* @__PURE__ */ r.jsx(
|
|
1654
1570
|
"section",
|
|
1655
1571
|
{
|
|
1656
|
-
className: `${a.wrap} ${
|
|
1572
|
+
className: `${a.wrap} ${A}`,
|
|
1657
1573
|
"aria-label": t("formTitle"),
|
|
1658
1574
|
children: /* @__PURE__ */ r.jsx("div", { className: a.card, children: /* @__PURE__ */ r.jsxs("div", { className: a.cardInner, children: [
|
|
1659
1575
|
/* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
|
|
@@ -1671,7 +1587,7 @@ const ca = {}, da = ({
|
|
|
1671
1587
|
onFocus: () => c?.trackNameSectionClicked?.(),
|
|
1672
1588
|
onChange: (n) => {
|
|
1673
1589
|
const s = n.target.value;
|
|
1674
|
-
|
|
1590
|
+
y({ fullName: s }), O("fullName", s);
|
|
1675
1591
|
},
|
|
1676
1592
|
placeholder: t("formFullNamePlaceholder"),
|
|
1677
1593
|
autoComplete: "name"
|
|
@@ -1681,9 +1597,9 @@ const ca = {}, da = ({
|
|
|
1681
1597
|
/* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
|
|
1682
1598
|
/* @__PURE__ */ r.jsx("div", { className: a.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: a.label, htmlFor: "kundli-phone", children: [
|
|
1683
1599
|
t("formPhone"),
|
|
1684
|
-
!
|
|
1600
|
+
!N && /* @__PURE__ */ r.jsx("span", { className: a.req, children: "*" })
|
|
1685
1601
|
] }) }),
|
|
1686
|
-
/* @__PURE__ */ r.jsx("div", { className: a.inputWrap, children: /* @__PURE__ */ r.jsxs("div", { className: a.isdWrap, ref:
|
|
1602
|
+
/* @__PURE__ */ r.jsx("div", { className: a.inputWrap, children: /* @__PURE__ */ r.jsxs("div", { className: a.isdWrap, ref: b, children: [
|
|
1687
1603
|
/* @__PURE__ */ r.jsxs("div", { className: a.phoneInputGroup, children: [
|
|
1688
1604
|
/* @__PURE__ */ r.jsx("div", { className: a.isdSelectWrap, children: /* @__PURE__ */ r.jsx(
|
|
1689
1605
|
"button",
|
|
@@ -1691,11 +1607,11 @@ const ca = {}, da = ({
|
|
|
1691
1607
|
type: "button",
|
|
1692
1608
|
className: a.isdSelectTrigger,
|
|
1693
1609
|
"aria-haspopup": "listbox",
|
|
1694
|
-
"aria-expanded":
|
|
1610
|
+
"aria-expanded": S,
|
|
1695
1611
|
onClick: () => {
|
|
1696
|
-
|
|
1612
|
+
h((n) => !n), C("");
|
|
1697
1613
|
},
|
|
1698
|
-
children:
|
|
1614
|
+
children: m
|
|
1699
1615
|
}
|
|
1700
1616
|
) }),
|
|
1701
1617
|
/* @__PURE__ */ r.jsx(
|
|
@@ -1708,19 +1624,19 @@ const ca = {}, da = ({
|
|
|
1708
1624
|
onFocus: () => c?.trackPhoneSectionClicked?.(),
|
|
1709
1625
|
onChange: (n) => {
|
|
1710
1626
|
const s = n.target.value;
|
|
1711
|
-
|
|
1627
|
+
y({ phone: X(s) }), O("phone", X(s));
|
|
1712
1628
|
},
|
|
1713
1629
|
placeholder: t("formPhonePlaceholder"),
|
|
1714
1630
|
autoComplete: "tel",
|
|
1715
1631
|
inputMode: "numeric",
|
|
1716
1632
|
pattern: "[0-9]{10}",
|
|
1717
1633
|
maxLength: 10,
|
|
1718
|
-
required: !
|
|
1719
|
-
"aria-required": !
|
|
1634
|
+
required: !N,
|
|
1635
|
+
"aria-required": !N
|
|
1720
1636
|
}
|
|
1721
1637
|
)
|
|
1722
1638
|
] }),
|
|
1723
|
-
|
|
1639
|
+
S && /* @__PURE__ */ r.jsxs(
|
|
1724
1640
|
"div",
|
|
1725
1641
|
{
|
|
1726
1642
|
className: a.isdDropdown,
|
|
@@ -1730,24 +1646,24 @@ const ca = {}, da = ({
|
|
|
1730
1646
|
/* @__PURE__ */ r.jsx("div", { className: a.isdSearchWrap, children: /* @__PURE__ */ r.jsx(
|
|
1731
1647
|
"input",
|
|
1732
1648
|
{
|
|
1733
|
-
ref:
|
|
1649
|
+
ref: _,
|
|
1734
1650
|
type: "text",
|
|
1735
1651
|
value: E,
|
|
1736
|
-
onChange: (n) =>
|
|
1652
|
+
onChange: (n) => C(n.target.value),
|
|
1737
1653
|
placeholder: "Search country",
|
|
1738
1654
|
className: a.isdSearchInput,
|
|
1739
1655
|
"aria-label": "Search country"
|
|
1740
1656
|
}
|
|
1741
1657
|
) }),
|
|
1742
|
-
|
|
1658
|
+
ie.length > 0 ? ie.map((n) => /* @__PURE__ */ r.jsxs(
|
|
1743
1659
|
"button",
|
|
1744
1660
|
{
|
|
1745
1661
|
type: "button",
|
|
1746
1662
|
role: "option",
|
|
1747
|
-
"aria-selected": n.code ===
|
|
1748
|
-
className: `${a.isdOption} ${n.code ===
|
|
1663
|
+
"aria-selected": n.code === m,
|
|
1664
|
+
className: `${a.isdOption} ${n.code === m ? a.isdOptionActive : ""}`,
|
|
1749
1665
|
onClick: () => {
|
|
1750
|
-
|
|
1666
|
+
x(n.code), h(!1), C("");
|
|
1751
1667
|
},
|
|
1752
1668
|
children: [
|
|
1753
1669
|
/* @__PURE__ */ r.jsx("span", { className: a.isdCountryName, children: n.country }),
|
|
@@ -1761,7 +1677,7 @@ const ca = {}, da = ({
|
|
|
1761
1677
|
)
|
|
1762
1678
|
] }) })
|
|
1763
1679
|
] }),
|
|
1764
|
-
|
|
1680
|
+
R && /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
|
|
1765
1681
|
/* @__PURE__ */ r.jsx("div", { className: a.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: a.label, children: [
|
|
1766
1682
|
t("formGender"),
|
|
1767
1683
|
/* @__PURE__ */ r.jsx("span", { className: a.req, children: "*" })
|
|
@@ -1780,7 +1696,7 @@ const ca = {}, da = ({
|
|
|
1780
1696
|
type: "button",
|
|
1781
1697
|
className: `${a.choiceBtn} ${o.gender === "male" ? a.choiceBtnActive : ""}`,
|
|
1782
1698
|
onClick: () => {
|
|
1783
|
-
|
|
1699
|
+
y({ gender: "male" }), c?.trackGenderSelected?.({
|
|
1784
1700
|
gender: "male"
|
|
1785
1701
|
});
|
|
1786
1702
|
},
|
|
@@ -1796,7 +1712,7 @@ const ca = {}, da = ({
|
|
|
1796
1712
|
type: "button",
|
|
1797
1713
|
className: `${a.choiceBtn} ${o.gender === "female" ? a.choiceBtnActive : ""}`,
|
|
1798
1714
|
onClick: () => {
|
|
1799
|
-
|
|
1715
|
+
y({ gender: "female" }), c?.trackGenderSelected?.({
|
|
1800
1716
|
gender: "female"
|
|
1801
1717
|
});
|
|
1802
1718
|
},
|
|
@@ -1809,7 +1725,7 @@ const ca = {}, da = ({
|
|
|
1809
1725
|
}
|
|
1810
1726
|
)
|
|
1811
1727
|
] }),
|
|
1812
|
-
|
|
1728
|
+
N && /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
|
|
1813
1729
|
/* @__PURE__ */ r.jsx("div", { className: a.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: a.label, htmlFor: "kundli-email", children: [
|
|
1814
1730
|
t("formEmail"),
|
|
1815
1731
|
/* @__PURE__ */ r.jsx("span", { className: a.req, children: "*" })
|
|
@@ -1822,7 +1738,7 @@ const ca = {}, da = ({
|
|
|
1822
1738
|
className: a.input,
|
|
1823
1739
|
type: "email",
|
|
1824
1740
|
value: o.email,
|
|
1825
|
-
onChange: (n) =>
|
|
1741
|
+
onChange: (n) => y({ email: n.target.value }),
|
|
1826
1742
|
placeholder: t("formEmailPlaceholder"),
|
|
1827
1743
|
autoComplete: "email",
|
|
1828
1744
|
required: !0,
|
|
@@ -1843,7 +1759,7 @@ const ca = {}, da = ({
|
|
|
1843
1759
|
type: "button",
|
|
1844
1760
|
className: a.infoBtn,
|
|
1845
1761
|
"aria-label": t("info"),
|
|
1846
|
-
"aria-expanded":
|
|
1762
|
+
"aria-expanded": ne === "dob",
|
|
1847
1763
|
onClick: () => {
|
|
1848
1764
|
oe((n) => n === "dob" ? null : "dob"), c?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
1849
1765
|
},
|
|
@@ -1851,14 +1767,14 @@ const ca = {}, da = ({
|
|
|
1851
1767
|
"img",
|
|
1852
1768
|
{
|
|
1853
1769
|
className: a.infoImg,
|
|
1854
|
-
src:
|
|
1770
|
+
src: Ne.info,
|
|
1855
1771
|
alt: "",
|
|
1856
1772
|
"aria-hidden": !0
|
|
1857
1773
|
}
|
|
1858
1774
|
)
|
|
1859
1775
|
}
|
|
1860
1776
|
),
|
|
1861
|
-
|
|
1777
|
+
ne === "dob" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
|
|
1862
1778
|
t("formDobInfo"),
|
|
1863
1779
|
/* @__PURE__ */ r.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
|
|
1864
1780
|
] })
|
|
@@ -1871,20 +1787,20 @@ const ca = {}, da = ({
|
|
|
1871
1787
|
id: "kundli-dob",
|
|
1872
1788
|
className: a.input,
|
|
1873
1789
|
type: "date",
|
|
1874
|
-
ref:
|
|
1790
|
+
ref: Y,
|
|
1875
1791
|
value: o.dateOfBirth,
|
|
1876
1792
|
max: (() => {
|
|
1877
1793
|
const n = /* @__PURE__ */ new Date();
|
|
1878
|
-
return `${n.getFullYear()}-${
|
|
1794
|
+
return `${n.getFullYear()}-${te(n.getMonth() + 1)}-${te(n.getDate())}`;
|
|
1879
1795
|
})(),
|
|
1880
1796
|
onChange: (n) => {
|
|
1881
|
-
const s = n.target.value,
|
|
1882
|
-
s && s >
|
|
1797
|
+
const s = n.target.value, $ = /* @__PURE__ */ new Date(), pe = `${$.getFullYear()}-${te($.getMonth() + 1)}-${te($.getDate())}`;
|
|
1798
|
+
s && s > pe || (y({ dateOfBirth: s }), O("dateOfBirth", s), F.current = null);
|
|
1883
1799
|
},
|
|
1884
1800
|
onFocus: () => c?.trackDobClicked?.(),
|
|
1885
|
-
onClick: () =>
|
|
1801
|
+
onClick: () => Se(Y),
|
|
1886
1802
|
onBlur: () => {
|
|
1887
|
-
|
|
1803
|
+
F.current === Y.current && (F.current = null);
|
|
1888
1804
|
}
|
|
1889
1805
|
}
|
|
1890
1806
|
),
|
|
@@ -1896,13 +1812,13 @@ const ca = {}, da = ({
|
|
|
1896
1812
|
"aria-label": "Open date picker",
|
|
1897
1813
|
onMouseDown: (n) => n.preventDefault(),
|
|
1898
1814
|
onClick: (n) => {
|
|
1899
|
-
n.preventDefault(), n.stopPropagation(),
|
|
1815
|
+
n.preventDefault(), n.stopPropagation(), Se(Y);
|
|
1900
1816
|
},
|
|
1901
1817
|
children: /* @__PURE__ */ r.jsx(
|
|
1902
1818
|
"img",
|
|
1903
1819
|
{
|
|
1904
1820
|
className: a.iconImg,
|
|
1905
|
-
src:
|
|
1821
|
+
src: Ne.date,
|
|
1906
1822
|
alt: "",
|
|
1907
1823
|
"aria-hidden": !0
|
|
1908
1824
|
}
|
|
@@ -1924,7 +1840,7 @@ const ca = {}, da = ({
|
|
|
1924
1840
|
type: "button",
|
|
1925
1841
|
className: a.infoBtn,
|
|
1926
1842
|
"aria-label": t("info"),
|
|
1927
|
-
"aria-expanded":
|
|
1843
|
+
"aria-expanded": ne === "time",
|
|
1928
1844
|
onClick: () => {
|
|
1929
1845
|
c?.trackInfoIconClicked?.({ fieldName: "time" }), oe((n) => n === "time" ? null : "time");
|
|
1930
1846
|
},
|
|
@@ -1932,20 +1848,20 @@ const ca = {}, da = ({
|
|
|
1932
1848
|
"img",
|
|
1933
1849
|
{
|
|
1934
1850
|
className: a.infoImg,
|
|
1935
|
-
src:
|
|
1851
|
+
src: Ne.info,
|
|
1936
1852
|
alt: "",
|
|
1937
1853
|
"aria-hidden": !0
|
|
1938
1854
|
}
|
|
1939
1855
|
)
|
|
1940
1856
|
}
|
|
1941
1857
|
),
|
|
1942
|
-
|
|
1858
|
+
ne === "time" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
|
|
1943
1859
|
t("formBirthTimeInfo"),
|
|
1944
1860
|
/* @__PURE__ */ r.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
|
|
1945
1861
|
] })
|
|
1946
1862
|
] })
|
|
1947
1863
|
] }),
|
|
1948
|
-
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref:
|
|
1864
|
+
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref: z, children: [
|
|
1949
1865
|
/* @__PURE__ */ r.jsx(
|
|
1950
1866
|
"input",
|
|
1951
1867
|
{
|
|
@@ -1957,12 +1873,12 @@ const ca = {}, da = ({
|
|
|
1957
1873
|
onFocus: () => c?.trackTimeClicked?.(),
|
|
1958
1874
|
onChange: (n) => {
|
|
1959
1875
|
const s = n.target.value;
|
|
1960
|
-
|
|
1876
|
+
y({ birthTime: s }), O("birthTime", s);
|
|
1961
1877
|
},
|
|
1962
1878
|
disabled: o.birthTimeUnknown,
|
|
1963
1879
|
placeholder: "HH:MM AM",
|
|
1964
1880
|
onClick: () => {
|
|
1965
|
-
o.birthTimeUnknown || (J(
|
|
1881
|
+
o.birthTimeUnknown || (J(V(o.birthTime || "12:00")), B((n) => !n));
|
|
1966
1882
|
}
|
|
1967
1883
|
}
|
|
1968
1884
|
),
|
|
@@ -1975,20 +1891,20 @@ const ca = {}, da = ({
|
|
|
1975
1891
|
disabled: o.birthTimeUnknown,
|
|
1976
1892
|
onMouseDown: (n) => n.preventDefault(),
|
|
1977
1893
|
onClick: (n) => {
|
|
1978
|
-
n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (J(
|
|
1894
|
+
n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (J(V(o.birthTime || "12:00")), B((s) => !s));
|
|
1979
1895
|
},
|
|
1980
1896
|
children: /* @__PURE__ */ r.jsx(
|
|
1981
1897
|
"img",
|
|
1982
1898
|
{
|
|
1983
1899
|
className: a.iconImg,
|
|
1984
|
-
src:
|
|
1900
|
+
src: Ne.time,
|
|
1985
1901
|
alt: "",
|
|
1986
1902
|
"aria-hidden": !0
|
|
1987
1903
|
}
|
|
1988
1904
|
)
|
|
1989
1905
|
}
|
|
1990
1906
|
),
|
|
1991
|
-
|
|
1907
|
+
L && !o.birthTimeUnknown && /* @__PURE__ */ r.jsxs(
|
|
1992
1908
|
"div",
|
|
1993
1909
|
{
|
|
1994
1910
|
className: a.timePopover,
|
|
@@ -2000,7 +1916,7 @@ const ca = {}, da = ({
|
|
|
2000
1916
|
"select",
|
|
2001
1917
|
{
|
|
2002
1918
|
className: a.timePickerSelect,
|
|
2003
|
-
value:
|
|
1919
|
+
value: q.hour12,
|
|
2004
1920
|
onChange: (n) => J((s) => ({
|
|
2005
1921
|
...s,
|
|
2006
1922
|
hour12: Number(n.target.value)
|
|
@@ -2014,10 +1930,10 @@ const ca = {}, da = ({
|
|
|
2014
1930
|
"select",
|
|
2015
1931
|
{
|
|
2016
1932
|
className: a.timePickerSelect,
|
|
2017
|
-
value:
|
|
1933
|
+
value: q.minute,
|
|
2018
1934
|
onChange: (n) => J((s) => ({ ...s, minute: n.target.value })),
|
|
2019
1935
|
"aria-label": "Minute",
|
|
2020
|
-
children: Array.from({ length: 60 }, (n, s) =>
|
|
1936
|
+
children: Array.from({ length: 60 }, (n, s) => te(s)).map(
|
|
2021
1937
|
(n) => /* @__PURE__ */ r.jsx("option", { value: n, children: n }, n)
|
|
2022
1938
|
)
|
|
2023
1939
|
}
|
|
@@ -2027,7 +1943,7 @@ const ca = {}, da = ({
|
|
|
2027
1943
|
"button",
|
|
2028
1944
|
{
|
|
2029
1945
|
type: "button",
|
|
2030
|
-
className: `${a.meridiemBtn} ${
|
|
1946
|
+
className: `${a.meridiemBtn} ${q.meridiem === "AM" ? a.meridiemActive : ""}`,
|
|
2031
1947
|
onClick: () => J((n) => ({ ...n, meridiem: "AM" })),
|
|
2032
1948
|
children: "AM"
|
|
2033
1949
|
}
|
|
@@ -2036,7 +1952,7 @@ const ca = {}, da = ({
|
|
|
2036
1952
|
"button",
|
|
2037
1953
|
{
|
|
2038
1954
|
type: "button",
|
|
2039
|
-
className: `${a.meridiemBtn} ${
|
|
1955
|
+
className: `${a.meridiemBtn} ${q.meridiem === "PM" ? a.meridiemActive : ""}`,
|
|
2040
1956
|
onClick: () => J((n) => ({ ...n, meridiem: "PM" })),
|
|
2041
1957
|
children: "PM"
|
|
2042
1958
|
}
|
|
@@ -2049,7 +1965,7 @@ const ca = {}, da = ({
|
|
|
2049
1965
|
{
|
|
2050
1966
|
type: "button",
|
|
2051
1967
|
className: a.timePopoverBtn,
|
|
2052
|
-
onClick: () =>
|
|
1968
|
+
onClick: () => B(!1),
|
|
2053
1969
|
children: "Cancel"
|
|
2054
1970
|
}
|
|
2055
1971
|
),
|
|
@@ -2059,8 +1975,8 @@ const ca = {}, da = ({
|
|
|
2059
1975
|
type: "button",
|
|
2060
1976
|
className: `${a.timePopoverBtn} ${a.timePopoverOk}`,
|
|
2061
1977
|
onClick: () => {
|
|
2062
|
-
const n =
|
|
2063
|
-
|
|
1978
|
+
const n = le(q);
|
|
1979
|
+
y({ birthTime: n }), O("birthTime", n), B(!1);
|
|
2064
1980
|
},
|
|
2065
1981
|
"aria-label": "OK",
|
|
2066
1982
|
children: /* @__PURE__ */ r.jsx(
|
|
@@ -2100,7 +2016,7 @@ const ca = {}, da = ({
|
|
|
2100
2016
|
type: "checkbox",
|
|
2101
2017
|
checked: o.birthTimeUnknown,
|
|
2102
2018
|
onChange: (n) => {
|
|
2103
|
-
c?.trackTimeCheckboxClicked?.(),
|
|
2019
|
+
c?.trackTimeCheckboxClicked?.(), y({
|
|
2104
2020
|
birthTimeUnknown: n.target.checked,
|
|
2105
2021
|
birthTime: n.target.checked ? "" : o.birthTime
|
|
2106
2022
|
});
|
|
@@ -2134,7 +2050,7 @@ const ca = {}, da = ({
|
|
|
2134
2050
|
type: "button",
|
|
2135
2051
|
className: a.infoBtn,
|
|
2136
2052
|
"aria-label": t("info"),
|
|
2137
|
-
"aria-expanded":
|
|
2053
|
+
"aria-expanded": ne === "place",
|
|
2138
2054
|
onClick: () => {
|
|
2139
2055
|
c?.trackInfoIconClicked?.({
|
|
2140
2056
|
fieldName: "birthPlace"
|
|
@@ -2144,33 +2060,40 @@ const ca = {}, da = ({
|
|
|
2144
2060
|
"img",
|
|
2145
2061
|
{
|
|
2146
2062
|
className: a.infoImg,
|
|
2147
|
-
src:
|
|
2063
|
+
src: Ne.info,
|
|
2148
2064
|
alt: "",
|
|
2149
2065
|
"aria-hidden": !0
|
|
2150
2066
|
}
|
|
2151
2067
|
)
|
|
2152
2068
|
}
|
|
2153
2069
|
),
|
|
2154
|
-
|
|
2070
|
+
ne === "place" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
|
|
2155
2071
|
t("formBirthPlaceInfo"),
|
|
2156
2072
|
/* @__PURE__ */ r.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
|
|
2157
2073
|
] })
|
|
2158
2074
|
] })
|
|
2159
2075
|
] }),
|
|
2160
|
-
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref:
|
|
2076
|
+
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref: me, children: [
|
|
2161
2077
|
/* @__PURE__ */ r.jsx(
|
|
2162
2078
|
"input",
|
|
2163
2079
|
{
|
|
2164
2080
|
id: "kundli-birth-place",
|
|
2165
2081
|
className: a.input,
|
|
2166
2082
|
type: "text",
|
|
2167
|
-
value:
|
|
2083
|
+
value: _e,
|
|
2168
2084
|
onChange: (n) => {
|
|
2169
2085
|
const s = n.target.value;
|
|
2170
|
-
|
|
2086
|
+
ee(s), y({
|
|
2087
|
+
birthPlace: "",
|
|
2088
|
+
birthPlaceLat: void 0,
|
|
2089
|
+
birthPlaceLng: void 0
|
|
2090
|
+
}), ae(!0);
|
|
2171
2091
|
},
|
|
2172
2092
|
onFocus: () => {
|
|
2173
|
-
c?.trackPlaceOfBirthClicked?.(),
|
|
2093
|
+
c?.trackPlaceOfBirthClicked?.(), ae(!0);
|
|
2094
|
+
},
|
|
2095
|
+
onBlur: () => {
|
|
2096
|
+
M || (ee(""), ce(), ae(!1));
|
|
2174
2097
|
},
|
|
2175
2098
|
placeholder: t("formBirthPlacePlaceholder"),
|
|
2176
2099
|
autoComplete: "address-level2"
|
|
@@ -2180,31 +2103,36 @@ const ca = {}, da = ({
|
|
|
2180
2103
|
"img",
|
|
2181
2104
|
{
|
|
2182
2105
|
className: a.iconImg,
|
|
2183
|
-
src:
|
|
2106
|
+
src: Ne.location,
|
|
2184
2107
|
alt: "",
|
|
2185
2108
|
"aria-hidden": !0
|
|
2186
2109
|
}
|
|
2187
2110
|
) }),
|
|
2188
|
-
|
|
2111
|
+
se && ye.length > 0 && /* @__PURE__ */ r.jsx("div", { className: a.suggestions, role: "listbox", children: ye.slice(0, 8).map((n) => /* @__PURE__ */ r.jsxs(
|
|
2189
2112
|
"button",
|
|
2190
2113
|
{
|
|
2191
2114
|
type: "button",
|
|
2192
2115
|
className: a.suggestionItem,
|
|
2116
|
+
onMouseDown: (s) => s.preventDefault(),
|
|
2193
2117
|
onClick: () => {
|
|
2194
|
-
|
|
2118
|
+
y({
|
|
2119
|
+
birthPlace: n.description,
|
|
2120
|
+
birthPlaceLat: n.lat,
|
|
2121
|
+
birthPlaceLng: n.lng
|
|
2122
|
+
}), ee(n.description), O("birthPlace", n.description), ce(), ae(!1);
|
|
2195
2123
|
},
|
|
2196
2124
|
children: [
|
|
2197
|
-
/* @__PURE__ */ r.jsx("span", { className: a.suggestionMain, children: n.
|
|
2198
|
-
n.
|
|
2125
|
+
/* @__PURE__ */ r.jsx("span", { className: a.suggestionMain, children: n.description }),
|
|
2126
|
+
!!n.secondary_text && /* @__PURE__ */ r.jsx("span", { className: a.suggestionSecondary, children: n.secondary_text })
|
|
2199
2127
|
]
|
|
2200
2128
|
},
|
|
2201
|
-
n.
|
|
2129
|
+
n.id
|
|
2202
2130
|
)) }),
|
|
2203
|
-
|
|
2204
|
-
|
|
2131
|
+
se && !!ke && Pe && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: "Loading…" }),
|
|
2132
|
+
se && !!ke && !Pe && !!Ae && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: Ae })
|
|
2205
2133
|
] })
|
|
2206
2134
|
] }),
|
|
2207
|
-
|
|
2135
|
+
R && /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
|
|
2208
2136
|
/* @__PURE__ */ r.jsx("div", { className: a.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: a.label, children: [
|
|
2209
2137
|
t("formReportLanguage"),
|
|
2210
2138
|
/* @__PURE__ */ r.jsx("span", { className: a.req, children: "*" })
|
|
@@ -2223,7 +2151,7 @@ const ca = {}, da = ({
|
|
|
2223
2151
|
type: "button",
|
|
2224
2152
|
className: `${a.choiceBtn} ${o.language_code === "hi" ? a.choiceBtnActive : ""}`,
|
|
2225
2153
|
onClick: () => {
|
|
2226
|
-
|
|
2154
|
+
y({ language_code: "hi" }), c?.trackLanguageOfReportSelected?.({
|
|
2227
2155
|
language: "hi"
|
|
2228
2156
|
});
|
|
2229
2157
|
},
|
|
@@ -2239,7 +2167,7 @@ const ca = {}, da = ({
|
|
|
2239
2167
|
type: "button",
|
|
2240
2168
|
className: `${a.choiceBtn} ${o.language_code === "en" ? a.choiceBtnActive : ""}`,
|
|
2241
2169
|
onClick: () => {
|
|
2242
|
-
|
|
2170
|
+
y({ language_code: "en" }), c?.trackLanguageOfReportSelected?.({
|
|
2243
2171
|
language: "en"
|
|
2244
2172
|
});
|
|
2245
2173
|
},
|
|
@@ -2255,7 +2183,7 @@ const ca = {}, da = ({
|
|
|
2255
2183
|
type: "button",
|
|
2256
2184
|
className: `${a.choiceBtn} ${o.language_code === "te" ? a.choiceBtnActive : ""}`,
|
|
2257
2185
|
onClick: () => {
|
|
2258
|
-
|
|
2186
|
+
y({ language_code: "te" }), c?.trackLanguageOfReportSelected?.({
|
|
2259
2187
|
language: "te"
|
|
2260
2188
|
});
|
|
2261
2189
|
},
|
|
@@ -2271,7 +2199,7 @@ const ca = {}, da = ({
|
|
|
2271
2199
|
type: "button",
|
|
2272
2200
|
className: `${a.choiceBtn} ${o.language_code === "ta" ? a.choiceBtnActive : ""}`,
|
|
2273
2201
|
onClick: () => {
|
|
2274
|
-
|
|
2202
|
+
y({ language_code: "ta" }), c?.trackLanguageOfReportSelected?.({
|
|
2275
2203
|
language: "ta"
|
|
2276
2204
|
});
|
|
2277
2205
|
},
|
|
@@ -2287,7 +2215,7 @@ const ca = {}, da = ({
|
|
|
2287
2215
|
type: "button",
|
|
2288
2216
|
className: `${a.choiceBtn} ${o.language_code === "kn" ? a.choiceBtnActive : ""}`,
|
|
2289
2217
|
onClick: () => {
|
|
2290
|
-
|
|
2218
|
+
y({ language_code: "kn" }), c?.trackLanguageOfReportSelected?.({
|
|
2291
2219
|
language: "kn"
|
|
2292
2220
|
});
|
|
2293
2221
|
},
|
|
@@ -2303,7 +2231,7 @@ const ca = {}, da = ({
|
|
|
2303
2231
|
type: "button",
|
|
2304
2232
|
className: `${a.choiceBtn} ${o.language_code === "gu" ? a.choiceBtnActive : ""}`,
|
|
2305
2233
|
onClick: () => {
|
|
2306
|
-
|
|
2234
|
+
y({ language_code: "gu" }), c?.trackLanguageOfReportSelected?.({
|
|
2307
2235
|
language: "gu"
|
|
2308
2236
|
});
|
|
2309
2237
|
},
|
|
@@ -2319,7 +2247,7 @@ const ca = {}, da = ({
|
|
|
2319
2247
|
type: "button",
|
|
2320
2248
|
className: `${a.choiceBtn} ${o.language_code === "mr" ? a.choiceBtnActive : ""}`,
|
|
2321
2249
|
onClick: () => {
|
|
2322
|
-
|
|
2250
|
+
y({ language_code: "mr" }), c?.trackLanguageOfReportSelected?.({
|
|
2323
2251
|
language: "mr"
|
|
2324
2252
|
});
|
|
2325
2253
|
},
|
|
@@ -2335,21 +2263,21 @@ const ca = {}, da = ({
|
|
|
2335
2263
|
] }) })
|
|
2336
2264
|
}
|
|
2337
2265
|
);
|
|
2338
|
-
},
|
|
2339
|
-
ctaButton:
|
|
2340
|
-
ctaFilled:
|
|
2341
|
-
ctaFilledContent:
|
|
2342
|
-
chevronRight:
|
|
2343
|
-
},
|
|
2344
|
-
const d =
|
|
2345
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
2346
|
-
/* @__PURE__ */ r.jsxs("span", { className:
|
|
2266
|
+
}, da = "_ctaButton_rhimw_2", ua = "_ctaFilled_rhimw_21", ma = "_ctaFilledContent_rhimw_52", fa = "_chevronRight_rhimw_61", Be = {
|
|
2267
|
+
ctaButton: da,
|
|
2268
|
+
ctaFilled: ua,
|
|
2269
|
+
ctaFilledContent: ma,
|
|
2270
|
+
chevronRight: fa
|
|
2271
|
+
}, gr = "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 }) => {
|
|
2272
|
+
const d = Re()?.config.imageComponent ?? De;
|
|
2273
|
+
return /* @__PURE__ */ r.jsxs("div", { className: we.marqueeContent, children: [
|
|
2274
|
+
/* @__PURE__ */ r.jsxs("span", { className: we.badge, children: [
|
|
2347
2275
|
/* @__PURE__ */ r.jsx(
|
|
2348
2276
|
d,
|
|
2349
2277
|
{
|
|
2350
|
-
src:
|
|
2278
|
+
src: pa,
|
|
2351
2279
|
alt: "",
|
|
2352
|
-
className:
|
|
2280
|
+
className: we.badgeIcon,
|
|
2353
2281
|
width: 16,
|
|
2354
2282
|
height: 16,
|
|
2355
2283
|
loading: "lazy"
|
|
@@ -2357,13 +2285,13 @@ const ca = {}, da = ({
|
|
|
2357
2285
|
),
|
|
2358
2286
|
t("ctaKundliCreated")
|
|
2359
2287
|
] }),
|
|
2360
|
-
/* @__PURE__ */ r.jsxs("span", { className:
|
|
2288
|
+
/* @__PURE__ */ r.jsxs("span", { className: we.badge, children: [
|
|
2361
2289
|
/* @__PURE__ */ r.jsx(
|
|
2362
2290
|
d,
|
|
2363
2291
|
{
|
|
2364
|
-
src:
|
|
2292
|
+
src: ha,
|
|
2365
2293
|
alt: "",
|
|
2366
|
-
className:
|
|
2294
|
+
className: we.badgeIcon,
|
|
2367
2295
|
width: 16,
|
|
2368
2296
|
height: 16,
|
|
2369
2297
|
loading: "lazy"
|
|
@@ -2371,13 +2299,13 @@ const ca = {}, da = ({
|
|
|
2371
2299
|
),
|
|
2372
2300
|
t("ctaCertified")
|
|
2373
2301
|
] }),
|
|
2374
|
-
/* @__PURE__ */ r.jsxs("span", { className:
|
|
2302
|
+
/* @__PURE__ */ r.jsxs("span", { className: we.badge, children: [
|
|
2375
2303
|
/* @__PURE__ */ r.jsx(
|
|
2376
2304
|
d,
|
|
2377
2305
|
{
|
|
2378
|
-
src:
|
|
2306
|
+
src: ga,
|
|
2379
2307
|
alt: "",
|
|
2380
|
-
className:
|
|
2308
|
+
className: we.badgeIcon,
|
|
2381
2309
|
width: 16,
|
|
2382
2310
|
height: 16,
|
|
2383
2311
|
loading: "lazy"
|
|
@@ -2386,11 +2314,11 @@ const ca = {}, da = ({
|
|
|
2386
2314
|
t("ctaSecurePayment")
|
|
2387
2315
|
] })
|
|
2388
2316
|
] });
|
|
2389
|
-
},
|
|
2317
|
+
}, ya = (t) => /.+@.+\..+/.test(t), ka = (t) => /^\d{10}$/.test(t), va = (t, o, d) => {
|
|
2390
2318
|
if (!t.fullName.trim()) return "fullName";
|
|
2391
2319
|
if (o) {
|
|
2392
|
-
if (!
|
|
2393
|
-
} else if (!
|
|
2320
|
+
if (!ya(t.email.trim())) return "email";
|
|
2321
|
+
} else if (!ka((t.phone ?? "").trim())) return "phone";
|
|
2394
2322
|
if (!t.dateOfBirth) return "dateOfBirth";
|
|
2395
2323
|
if (!t.birthPlace.trim()) return "birthPlace";
|
|
2396
2324
|
if (d) {
|
|
@@ -2398,57 +2326,57 @@ const ca = {}, da = ({
|
|
|
2398
2326
|
if (!t.language_code) return "language_code";
|
|
2399
2327
|
}
|
|
2400
2328
|
return !t.birthTimeUnknown && !t.birthTime ? "birthTime" : null;
|
|
2401
|
-
},
|
|
2329
|
+
}, xa = ({
|
|
2402
2330
|
t,
|
|
2403
2331
|
values: o,
|
|
2404
2332
|
phoneIsdCode: d,
|
|
2405
|
-
hideOriginalPrice:
|
|
2406
|
-
requireV1ExtraFields:
|
|
2407
|
-
onValidationFailed:
|
|
2408
|
-
onProceed:
|
|
2409
|
-
onProceedGuidance:
|
|
2410
|
-
href:
|
|
2411
|
-
analytics:
|
|
2333
|
+
hideOriginalPrice: m = !1,
|
|
2334
|
+
requireV1ExtraFields: x = !1,
|
|
2335
|
+
onValidationFailed: R,
|
|
2336
|
+
onProceed: w,
|
|
2337
|
+
onProceedGuidance: j,
|
|
2338
|
+
href: A,
|
|
2339
|
+
analytics: I,
|
|
2412
2340
|
className: c = "",
|
|
2413
|
-
discountedPriceLabel:
|
|
2341
|
+
discountedPriceLabel: N,
|
|
2414
2342
|
showPlanSheet: p,
|
|
2415
|
-
confirmPlan:
|
|
2416
|
-
planSheetOpen:
|
|
2343
|
+
confirmPlan: S,
|
|
2344
|
+
planSheetOpen: h,
|
|
2417
2345
|
selectedPlan: E
|
|
2418
2346
|
}) => {
|
|
2419
|
-
const
|
|
2420
|
-
() =>
|
|
2421
|
-
[o,
|
|
2422
|
-
),
|
|
2423
|
-
if (
|
|
2424
|
-
G &&
|
|
2347
|
+
const C = Re(), b = C?.config.isGlobal ?? !0, _ = C?.config?.variant, G = Ge(
|
|
2348
|
+
() => va(o, b, x),
|
|
2349
|
+
[o, b, x]
|
|
2350
|
+
), y = G === null, O = _ === "v1" && C?.config?.showSheet, X = b ? N ?? t("formDiscountedPrice") : O ? "" : "₹499", Z = C?.config.imageComponent ?? De, ie = (F) => {
|
|
2351
|
+
if (F.preventDefault(), !y) {
|
|
2352
|
+
G && R?.(G);
|
|
2425
2353
|
return;
|
|
2426
2354
|
}
|
|
2427
|
-
const
|
|
2355
|
+
const ue = !!j && _ === "v1" && E?.id === gr, z = (o.phone ?? "").trim(), L = {
|
|
2428
2356
|
...o,
|
|
2429
|
-
phone:
|
|
2357
|
+
phone: z && `${d}-${z}`
|
|
2430
2358
|
};
|
|
2431
|
-
if (
|
|
2432
|
-
|
|
2359
|
+
if (O) {
|
|
2360
|
+
h ? S?.() : p?.(L);
|
|
2433
2361
|
return;
|
|
2434
2362
|
}
|
|
2435
|
-
|
|
2436
|
-
},
|
|
2363
|
+
I?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), ue ? j(L) : w?.(L);
|
|
2364
|
+
}, Y = /* @__PURE__ */ r.jsx(
|
|
2437
2365
|
Or,
|
|
2438
2366
|
{
|
|
2439
|
-
href:
|
|
2440
|
-
disabled:
|
|
2441
|
-
onClick:
|
|
2367
|
+
href: A,
|
|
2368
|
+
disabled: _ === "v1" ? !1 : !y,
|
|
2369
|
+
onClick: ie,
|
|
2442
2370
|
"aria-label": t("formPriceAria"),
|
|
2443
|
-
className:
|
|
2444
|
-
children:
|
|
2445
|
-
|
|
2371
|
+
className: _ === "v1" && y ? Be.ctaFilled : _ === "v1" ? Be.ctaButton : void 0,
|
|
2372
|
+
children: _ === "v1" ? y ? /* @__PURE__ */ r.jsxs("span", { className: Be.ctaFilledContent, children: [
|
|
2373
|
+
O ? t("selectPackage") : h && E ? `${t("proceedWithPlan")}${E.price}` : `${t("formProceed")} ${X}`,
|
|
2446
2374
|
/* @__PURE__ */ r.jsx(
|
|
2447
|
-
|
|
2375
|
+
Z,
|
|
2448
2376
|
{
|
|
2449
|
-
src:
|
|
2377
|
+
src: _a,
|
|
2450
2378
|
alt: "",
|
|
2451
|
-
className:
|
|
2379
|
+
className: Be.chevronRight,
|
|
2452
2380
|
width: 20,
|
|
2453
2381
|
height: 20,
|
|
2454
2382
|
loading: "lazy"
|
|
@@ -2457,37 +2385,37 @@ const ca = {}, da = ({
|
|
|
2457
2385
|
] }) : t("formCtaDefault") : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2458
2386
|
t("formProceed"),
|
|
2459
2387
|
" ",
|
|
2460
|
-
|
|
2388
|
+
X
|
|
2461
2389
|
] })
|
|
2462
2390
|
}
|
|
2463
2391
|
);
|
|
2464
2392
|
return /* @__PURE__ */ r.jsx(
|
|
2465
2393
|
Fr,
|
|
2466
2394
|
{
|
|
2467
|
-
className: `${
|
|
2468
|
-
marquee: /* @__PURE__ */ r.jsx(Mr, { children: /* @__PURE__ */ r.jsx(
|
|
2469
|
-
children:
|
|
2395
|
+
className: `${Be.footerContainer} ${c}`,
|
|
2396
|
+
marquee: /* @__PURE__ */ r.jsx(Mr, { children: /* @__PURE__ */ r.jsx(ba, { t }) }),
|
|
2397
|
+
children: Y
|
|
2470
2398
|
}
|
|
2471
2399
|
);
|
|
2472
|
-
},
|
|
2400
|
+
}, wa = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", Pa = ({
|
|
2473
2401
|
t,
|
|
2474
2402
|
languageSelector: o,
|
|
2475
|
-
logoUrl: d =
|
|
2476
|
-
className:
|
|
2403
|
+
logoUrl: d = wa,
|
|
2404
|
+
className: m = ""
|
|
2477
2405
|
}) => {
|
|
2478
|
-
const
|
|
2406
|
+
const x = Re(), R = x?.config.isGlobal ?? !0, w = o != null && !R;
|
|
2479
2407
|
return /* @__PURE__ */ r.jsx(
|
|
2480
2408
|
$r,
|
|
2481
2409
|
{
|
|
2482
2410
|
t,
|
|
2483
2411
|
logoUrl: d,
|
|
2484
|
-
imageComponent:
|
|
2412
|
+
imageComponent: x?.config.imageComponent,
|
|
2485
2413
|
languageSelector: o,
|
|
2486
|
-
showLanguageSelector:
|
|
2487
|
-
className:
|
|
2414
|
+
showLanguageSelector: w,
|
|
2415
|
+
className: m
|
|
2488
2416
|
}
|
|
2489
2417
|
);
|
|
2490
|
-
},
|
|
2418
|
+
}, Aa = () => /* @__PURE__ */ r.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx(
|
|
2491
2419
|
"path",
|
|
2492
2420
|
{
|
|
2493
2421
|
d: "M3.5 8.5l2.5 2.5 6-6",
|
|
@@ -2496,7 +2424,7 @@ const ca = {}, da = ({
|
|
|
2496
2424
|
strokeLinecap: "round",
|
|
2497
2425
|
strokeLinejoin: "round"
|
|
2498
2426
|
}
|
|
2499
|
-
) }),
|
|
2427
|
+
) }), Ca = () => /* @__PURE__ */ r.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx(
|
|
2500
2428
|
"path",
|
|
2501
2429
|
{
|
|
2502
2430
|
d: "M4.5 4.5l7 7M11.5 4.5l-7 7",
|
|
@@ -2504,52 +2432,52 @@ const ca = {}, da = ({
|
|
|
2504
2432
|
strokeWidth: "1.8",
|
|
2505
2433
|
strokeLinecap: "round"
|
|
2506
2434
|
}
|
|
2507
|
-
) }),
|
|
2435
|
+
) }), 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
2436
|
/* @__PURE__ */ r.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
2509
2437
|
/* @__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:
|
|
2438
|
+
] }), 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 = {
|
|
2439
|
+
overlay: Ta,
|
|
2440
|
+
sheet: Ra,
|
|
2441
|
+
header: Sa,
|
|
2442
|
+
backBtn: Ea,
|
|
2443
|
+
title: Ia,
|
|
2444
|
+
plansContainer: Ba,
|
|
2445
|
+
planCard: La,
|
|
2446
|
+
withBadgeSpacing: Da,
|
|
2447
|
+
planCardSelected: Oa,
|
|
2448
|
+
planCardPopular: Fa,
|
|
2449
|
+
popularBadge: Ma,
|
|
2450
|
+
planCardInner: $a,
|
|
2451
|
+
planTitleRow: Ua,
|
|
2452
|
+
planTitle: Ga,
|
|
2525
2453
|
radioCircle: Wa,
|
|
2526
|
-
radioChecked:
|
|
2527
|
-
radioInner:
|
|
2528
|
-
priceRow:
|
|
2529
|
-
price:
|
|
2530
|
-
originalPrice:
|
|
2454
|
+
radioChecked: Ka,
|
|
2455
|
+
radioInner: Ha,
|
|
2456
|
+
priceRow: Ya,
|
|
2457
|
+
price: qa,
|
|
2458
|
+
originalPrice: Va,
|
|
2531
2459
|
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
|
-
},
|
|
2460
|
+
featureList: Ja,
|
|
2461
|
+
featureItem: Qa,
|
|
2462
|
+
featureIcon: Xa,
|
|
2463
|
+
featureText: Za,
|
|
2464
|
+
astrologerHeading: en,
|
|
2465
|
+
astrologerList: rn,
|
|
2466
|
+
astrologerCard: tn,
|
|
2467
|
+
astrologerAvatar: an,
|
|
2468
|
+
astrologerAvatarPlaceholder: nn,
|
|
2469
|
+
astrologerTop: on,
|
|
2470
|
+
astrologerBasicInfo: ln,
|
|
2471
|
+
astrologerName: sn,
|
|
2472
|
+
astrologerExp: cn,
|
|
2473
|
+
astrologerDivider: dn,
|
|
2474
|
+
planDivider: un,
|
|
2475
|
+
astrologerCertList: mn,
|
|
2476
|
+
astrologerCertItem: fn,
|
|
2477
|
+
bullet: pn,
|
|
2478
|
+
footer: hn,
|
|
2479
|
+
proceedBtn: gn
|
|
2480
|
+
}, _n = ({ title: t, onBack: o }) => /* @__PURE__ */ r.jsxs("div", { className: f.header, children: [
|
|
2553
2481
|
/* @__PURE__ */ r.jsx(
|
|
2554
2482
|
"button",
|
|
2555
2483
|
{
|
|
@@ -2557,12 +2485,12 @@ const ca = {}, da = ({
|
|
|
2557
2485
|
onClick: o,
|
|
2558
2486
|
"aria-label": "Go back",
|
|
2559
2487
|
type: "button",
|
|
2560
|
-
children: /* @__PURE__ */ r.jsx(
|
|
2488
|
+
children: /* @__PURE__ */ r.jsx(ja, {})
|
|
2561
2489
|
}
|
|
2562
2490
|
),
|
|
2563
2491
|
/* @__PURE__ */ r.jsx("h2", { className: f.title, children: t })
|
|
2564
|
-
] }),
|
|
2565
|
-
/* @__PURE__ */ r.jsx("span", { className: f.featureIcon, children: d.included ? /* @__PURE__ */ r.jsx(
|
|
2492
|
+
] }), 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: [
|
|
2493
|
+
/* @__PURE__ */ r.jsx("span", { className: f.featureIcon, children: d.included ? /* @__PURE__ */ r.jsx(Aa, {}) : /* @__PURE__ */ r.jsx(Ca, {}) }),
|
|
2566
2494
|
/* @__PURE__ */ r.jsx(
|
|
2567
2495
|
"span",
|
|
2568
2496
|
{
|
|
@@ -2570,7 +2498,7 @@ const ca = {}, da = ({
|
|
|
2570
2498
|
children: o?.(d.text) ?? d.text
|
|
2571
2499
|
}
|
|
2572
2500
|
)
|
|
2573
|
-
] },
|
|
2501
|
+
] }, m)) }), yn = ({ astrologer: t, t: o }) => /* @__PURE__ */ r.jsxs("div", { className: f.astrologerCard, children: [
|
|
2574
2502
|
/* @__PURE__ */ r.jsxs("div", { className: f.astrologerTop, children: [
|
|
2575
2503
|
/* @__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
2504
|
/* @__PURE__ */ r.jsxs("div", { className: f.astrologerBasicInfo, children: [
|
|
@@ -2579,17 +2507,17 @@ const ca = {}, da = ({
|
|
|
2579
2507
|
] })
|
|
2580
2508
|
] }),
|
|
2581
2509
|
/* @__PURE__ */ r.jsx("div", { className: f.astrologerDivider }),
|
|
2582
|
-
/* @__PURE__ */ r.jsx("div", { className: f.astrologerCertList, children: t.certifications.map((d,
|
|
2510
|
+
/* @__PURE__ */ r.jsx("div", { className: f.astrologerCertList, children: t.certifications.map((d, m) => /* @__PURE__ */ r.jsxs("p", { className: f.astrologerCertItem, children: [
|
|
2583
2511
|
/* @__PURE__ */ r.jsx("span", { className: f.bullet, children: "•" }),
|
|
2584
2512
|
" ",
|
|
2585
2513
|
o?.(d) ?? d
|
|
2586
|
-
] },
|
|
2587
|
-
] }),
|
|
2588
|
-
/* @__PURE__ */ r.jsx(
|
|
2514
|
+
] }, m)) })
|
|
2515
|
+
] }), kn = ({ label: t }) => /* @__PURE__ */ r.jsxs("div", { className: f.popularBadge, "aria-label": t, children: [
|
|
2516
|
+
/* @__PURE__ */ r.jsx(Na, {}),
|
|
2589
2517
|
/* @__PURE__ */ r.jsx("span", { children: t })
|
|
2590
|
-
] }),
|
|
2591
|
-
const
|
|
2592
|
-
(
|
|
2518
|
+
] }), vn = ({ plan: t, isSelected: o, onSelect: d, t: m }) => {
|
|
2519
|
+
const x = () => d(t.id), R = (w) => {
|
|
2520
|
+
(w.key === " " || w.key === "Enter") && (w.preventDefault(), d(t.id));
|
|
2593
2521
|
};
|
|
2594
2522
|
return /* @__PURE__ */ r.jsxs(
|
|
2595
2523
|
"div",
|
|
@@ -2599,17 +2527,17 @@ const ca = {}, da = ({
|
|
|
2599
2527
|
o ? f.planCardSelected : "",
|
|
2600
2528
|
o && f.planCardPopular
|
|
2601
2529
|
].filter(Boolean).join(" "),
|
|
2602
|
-
onClick:
|
|
2530
|
+
onClick: x,
|
|
2603
2531
|
role: "radio",
|
|
2604
2532
|
"aria-checked": o,
|
|
2605
2533
|
tabIndex: 0,
|
|
2606
|
-
onKeyDown:
|
|
2534
|
+
onKeyDown: R,
|
|
2607
2535
|
"data-plan-id": t.id,
|
|
2608
2536
|
children: [
|
|
2609
|
-
t.badge && /* @__PURE__ */ r.jsx(
|
|
2537
|
+
t.badge && /* @__PURE__ */ r.jsx(kn, { label: m?.(t.badge) ?? t.badge }),
|
|
2610
2538
|
/* @__PURE__ */ r.jsxs("div", { className: f.planCardInner, children: [
|
|
2611
2539
|
/* @__PURE__ */ r.jsxs("div", { className: `${f.planTitleRow} ${t.badge ? f.withBadgeSpacing : ""}`, children: [
|
|
2612
|
-
/* @__PURE__ */ r.jsx("span", { className: f.planTitle, children:
|
|
2540
|
+
/* @__PURE__ */ r.jsx("span", { className: f.planTitle, children: m?.(t.title) ?? t.title }),
|
|
2613
2541
|
/* @__PURE__ */ r.jsx(
|
|
2614
2542
|
"span",
|
|
2615
2543
|
{
|
|
@@ -2622,19 +2550,19 @@ const ca = {}, da = ({
|
|
|
2622
2550
|
/* @__PURE__ */ r.jsxs("div", { className: f.priceRow, children: [
|
|
2623
2551
|
/* @__PURE__ */ r.jsx("span", { className: f.price, children: t.price }),
|
|
2624
2552
|
t.originalPrice && /* @__PURE__ */ r.jsx("span", { className: f.originalPrice, children: t.originalPrice }),
|
|
2625
|
-
t.savingsLabel && /* @__PURE__ */ r.jsx("span", { className: f.savingsBadge, children:
|
|
2553
|
+
t.savingsLabel && /* @__PURE__ */ r.jsx("span", { className: f.savingsBadge, children: m?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
|
|
2626
2554
|
] }),
|
|
2627
|
-
/* @__PURE__ */ r.jsx(
|
|
2555
|
+
/* @__PURE__ */ r.jsx(bn, { features: t.features, t: m }),
|
|
2628
2556
|
t.astrologers && /* @__PURE__ */ r.jsx("div", { className: f.planDivider }),
|
|
2629
2557
|
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((
|
|
2558
|
+
/* @__PURE__ */ r.jsx("p", { className: f.astrologerHeading, children: m?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
|
|
2559
|
+
/* @__PURE__ */ r.jsx("div", { className: f.astrologerList, role: "list", children: t.astrologers.map((w, j) => /* @__PURE__ */ r.jsx("div", { role: "listitem", children: /* @__PURE__ */ r.jsx(yn, { astrologer: w, t: m }) }, j)) })
|
|
2632
2560
|
] })
|
|
2633
2561
|
] })
|
|
2634
2562
|
]
|
|
2635
2563
|
}
|
|
2636
2564
|
);
|
|
2637
|
-
},
|
|
2565
|
+
}, xn = [
|
|
2638
2566
|
{
|
|
2639
2567
|
id: "jyoti",
|
|
2640
2568
|
name: "planAstrologerNameJyoti",
|
|
@@ -2662,7 +2590,7 @@ const ca = {}, da = ({
|
|
|
2662
2590
|
experience: "planAstrologerExpNeeraj",
|
|
2663
2591
|
certifications: ["planAstrologerCertBhuCertified", "planAstrologerCertMantraRudraksha"]
|
|
2664
2592
|
}
|
|
2665
|
-
],
|
|
2593
|
+
], wn = (t) => [
|
|
2666
2594
|
{
|
|
2667
2595
|
id: "kundli-report",
|
|
2668
2596
|
title: "planNameBasic",
|
|
@@ -2688,39 +2616,39 @@ const ca = {}, da = ({
|
|
|
2688
2616
|
{ text: "planFeatureRealTimeAnswers", included: !0 },
|
|
2689
2617
|
{ text: "planFeatureTailoredRemedies", included: !0 }
|
|
2690
2618
|
],
|
|
2691
|
-
astrologers:
|
|
2619
|
+
astrologers: xn.filter(
|
|
2692
2620
|
(o) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(o.id)
|
|
2693
2621
|
)
|
|
2694
2622
|
}
|
|
2695
|
-
],
|
|
2623
|
+
], Pn = ({
|
|
2696
2624
|
isOpen: t,
|
|
2697
2625
|
onClose: o,
|
|
2698
2626
|
selectedPlan: d,
|
|
2699
|
-
onSelectPlan:
|
|
2700
|
-
plans:
|
|
2701
|
-
onProceed:
|
|
2702
|
-
t:
|
|
2703
|
-
analytics:
|
|
2627
|
+
onSelectPlan: m,
|
|
2628
|
+
plans: x,
|
|
2629
|
+
onProceed: R,
|
|
2630
|
+
t: w,
|
|
2631
|
+
analytics: j
|
|
2704
2632
|
}) => {
|
|
2705
|
-
const
|
|
2706
|
-
|
|
2633
|
+
const I = Re()?.config.isGlobal ?? !0, c = x ?? wn(I), N = d?.id || c.find((C) => C.badge)?.id || c[0]?.id || "", p = K(null), S = K(null), h = K(!1);
|
|
2634
|
+
H(() => {
|
|
2707
2635
|
if (t) {
|
|
2708
2636
|
if (!d) {
|
|
2709
|
-
const
|
|
2710
|
-
|
|
2637
|
+
const C = c.find((b) => b.badge) ?? c[0];
|
|
2638
|
+
C && m(C);
|
|
2711
2639
|
}
|
|
2712
|
-
|
|
2640
|
+
h.current || (j?.trackPlanPageViewed?.(), h.current = !0);
|
|
2713
2641
|
} else
|
|
2714
|
-
|
|
2715
|
-
}, [t, c, d,
|
|
2642
|
+
h.current = !1;
|
|
2643
|
+
}, [t, c, d, m, j]);
|
|
2716
2644
|
const E = () => {
|
|
2717
|
-
|
|
2645
|
+
j?.trackPlanPageClosed?.(), o();
|
|
2718
2646
|
};
|
|
2719
|
-
return
|
|
2647
|
+
return H(() => {
|
|
2720
2648
|
if (!t) return;
|
|
2721
|
-
const
|
|
2649
|
+
const C = document.body.style.overflow;
|
|
2722
2650
|
return document.body.style.overflow = "hidden", () => {
|
|
2723
|
-
document.body.style.overflow =
|
|
2651
|
+
document.body.style.overflow = C;
|
|
2724
2652
|
};
|
|
2725
2653
|
}, [t]), t ? /* @__PURE__ */ r.jsx(
|
|
2726
2654
|
"div",
|
|
@@ -2728,7 +2656,7 @@ const ca = {}, da = ({
|
|
|
2728
2656
|
className: f.overlay,
|
|
2729
2657
|
role: "dialog",
|
|
2730
2658
|
"aria-modal": "true",
|
|
2731
|
-
"aria-label":
|
|
2659
|
+
"aria-label": w?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
2732
2660
|
children: /* @__PURE__ */ r.jsxs(
|
|
2733
2661
|
"div",
|
|
2734
2662
|
{
|
|
@@ -2736,34 +2664,34 @@ const ca = {}, da = ({
|
|
|
2736
2664
|
className: f.sheet,
|
|
2737
2665
|
children: [
|
|
2738
2666
|
/* @__PURE__ */ r.jsx(
|
|
2739
|
-
|
|
2667
|
+
_n,
|
|
2740
2668
|
{
|
|
2741
|
-
title:
|
|
2669
|
+
title: w?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
2742
2670
|
onBack: E
|
|
2743
2671
|
}
|
|
2744
2672
|
),
|
|
2745
2673
|
/* @__PURE__ */ r.jsx(
|
|
2746
2674
|
"div",
|
|
2747
2675
|
{
|
|
2748
|
-
ref:
|
|
2676
|
+
ref: S,
|
|
2749
2677
|
className: f.plansContainer,
|
|
2750
2678
|
role: "radiogroup",
|
|
2751
2679
|
"aria-label": "Kundli plans",
|
|
2752
|
-
children: c.map((
|
|
2753
|
-
|
|
2680
|
+
children: c.map((C) => /* @__PURE__ */ r.jsx(
|
|
2681
|
+
vn,
|
|
2754
2682
|
{
|
|
2755
|
-
plan:
|
|
2756
|
-
isSelected:
|
|
2757
|
-
t:
|
|
2758
|
-
onSelect: (
|
|
2759
|
-
const
|
|
2760
|
-
|
|
2761
|
-
planId:
|
|
2762
|
-
planName:
|
|
2763
|
-
}),
|
|
2683
|
+
plan: C,
|
|
2684
|
+
isSelected: C.id === N,
|
|
2685
|
+
t: w,
|
|
2686
|
+
onSelect: (b) => {
|
|
2687
|
+
const _ = c.find((G) => G.id === b);
|
|
2688
|
+
_ && (j?.trackPlanSelected?.({
|
|
2689
|
+
planId: _.id,
|
|
2690
|
+
planName: _.title
|
|
2691
|
+
}), m(_));
|
|
2764
2692
|
}
|
|
2765
2693
|
},
|
|
2766
|
-
|
|
2694
|
+
C.id
|
|
2767
2695
|
))
|
|
2768
2696
|
}
|
|
2769
2697
|
),
|
|
@@ -2773,12 +2701,12 @@ const ca = {}, da = ({
|
|
|
2773
2701
|
className: f.proceedBtn,
|
|
2774
2702
|
disabled: !d,
|
|
2775
2703
|
onClick: () => {
|
|
2776
|
-
d && (
|
|
2704
|
+
d && (j?.trackPlanProceedClicked?.({
|
|
2777
2705
|
planId: d.id,
|
|
2778
2706
|
planName: d.title
|
|
2779
|
-
}),
|
|
2707
|
+
}), R(d), o());
|
|
2780
2708
|
},
|
|
2781
|
-
children: d ?
|
|
2709
|
+
children: d ? w?.("planProceedToPayment") ?? d.price + "Proceed to Payment" : "Select a plan"
|
|
2782
2710
|
}
|
|
2783
2711
|
) })
|
|
2784
2712
|
]
|
|
@@ -2786,7 +2714,7 @@ const ca = {}, da = ({
|
|
|
2786
2714
|
)
|
|
2787
2715
|
}
|
|
2788
2716
|
) : null;
|
|
2789
|
-
},
|
|
2717
|
+
}, An = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Cn = (t, o) => mr[t]?.[o] ?? o, jn = {
|
|
2790
2718
|
fullName: "",
|
|
2791
2719
|
phone: "",
|
|
2792
2720
|
gender: "",
|
|
@@ -2795,80 +2723,82 @@ const ca = {}, da = ({
|
|
|
2795
2723
|
dateOfBirth: "",
|
|
2796
2724
|
birthTime: "",
|
|
2797
2725
|
birthTimeUnknown: !1,
|
|
2798
|
-
birthPlace: ""
|
|
2799
|
-
|
|
2726
|
+
birthPlace: "",
|
|
2727
|
+
birthPlaceLat: void 0,
|
|
2728
|
+
birthPlaceLng: void 0
|
|
2729
|
+
}, Ln = ({
|
|
2800
2730
|
className: t = "",
|
|
2801
2731
|
locale: o,
|
|
2802
2732
|
showLanguageSelector: d = !0,
|
|
2803
|
-
onBack:
|
|
2804
|
-
initialValues:
|
|
2805
|
-
onProceed:
|
|
2806
|
-
onProceedGuidance:
|
|
2807
|
-
proceedHref:
|
|
2808
|
-
originalPriceLabel:
|
|
2809
|
-
discountedPriceLabel:
|
|
2810
|
-
|
|
2811
|
-
analytics:
|
|
2733
|
+
onBack: m,
|
|
2734
|
+
initialValues: x,
|
|
2735
|
+
onProceed: R,
|
|
2736
|
+
onProceedGuidance: w,
|
|
2737
|
+
proceedHref: j,
|
|
2738
|
+
originalPriceLabel: A,
|
|
2739
|
+
discountedPriceLabel: I,
|
|
2740
|
+
atlasSearchLocalities: c,
|
|
2741
|
+
analytics: N
|
|
2812
2742
|
}) => {
|
|
2813
|
-
const p =
|
|
2814
|
-
|
|
2743
|
+
const p = Re(), S = Kr(), h = p !== null, E = h ? p.locale : o, C = E ?? S?.locale ?? "en", [b, _] = W(C), G = h ? p.locale : b, y = h ? p.setLocale : _, [O, X] = W(!1), Z = K(null), ie = K(E), Y = K(
|
|
2744
|
+
S?.locale
|
|
2815
2745
|
);
|
|
2816
|
-
|
|
2746
|
+
H(() => {
|
|
2817
2747
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
2818
2748
|
}, []);
|
|
2819
|
-
const
|
|
2820
|
-
|
|
2821
|
-
E &&
|
|
2822
|
-
}, [E,
|
|
2749
|
+
const F = (v) => Cn(G, v);
|
|
2750
|
+
H(() => {
|
|
2751
|
+
E && ie.current !== E && y(E), ie.current = E;
|
|
2752
|
+
}, [E, y]), H(() => {
|
|
2823
2753
|
if (E) return;
|
|
2824
|
-
const
|
|
2825
|
-
|
|
2826
|
-
}, [
|
|
2827
|
-
const [
|
|
2828
|
-
...
|
|
2829
|
-
...
|
|
2830
|
-
phone:
|
|
2831
|
-
}),
|
|
2832
|
-
|
|
2754
|
+
const v = S?.locale;
|
|
2755
|
+
v && Y.current !== v && y(v), Y.current = v;
|
|
2756
|
+
}, [S?.locale, E, y]);
|
|
2757
|
+
const [ue, z] = W({
|
|
2758
|
+
...jn,
|
|
2759
|
+
...x,
|
|
2760
|
+
phone: x?.phone ?? ""
|
|
2761
|
+
}), L = h ? p?.config.isGlobal ?? !0 : !0, [B, q] = W(
|
|
2762
|
+
L ? "+1" : "+91"
|
|
2833
2763
|
);
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
}, [
|
|
2837
|
-
const J =
|
|
2838
|
-
|
|
2839
|
-
if (!
|
|
2840
|
-
const
|
|
2841
|
-
|
|
2764
|
+
H(() => {
|
|
2765
|
+
q(L ? "+1" : "+91");
|
|
2766
|
+
}, [L]);
|
|
2767
|
+
const J = h ? p.formValues : ue, te = h ? p.setFormValues : z, ge = h ? p.goToPage : m, V = h ? p.onProceed : R, le = h ? p.onProceedGuidance : w, me = h ? p.config.proceedHref : j, se = h ? p.config.originalPriceLabel : A, ae = h ? p.config.discountedPriceLabel : I, _e = h ? p.config.showLanguageSelector ?? !0 : d, ee = (h ? p?.config?.analytics : N) ?? N;
|
|
2768
|
+
H(() => {
|
|
2769
|
+
if (!O) return;
|
|
2770
|
+
const v = (ce) => {
|
|
2771
|
+
Z.current && !Z.current.contains(ce.target) && X(!1);
|
|
2842
2772
|
};
|
|
2843
|
-
return document.addEventListener("mousedown",
|
|
2844
|
-
}, [
|
|
2845
|
-
const [
|
|
2846
|
-
|
|
2847
|
-
}, []),
|
|
2848
|
-
if (
|
|
2849
|
-
planId:
|
|
2850
|
-
planName:
|
|
2851
|
-
}), !
|
|
2852
|
-
const
|
|
2853
|
-
|
|
2854
|
-
}, [
|
|
2773
|
+
return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
|
|
2774
|
+
}, [O]);
|
|
2775
|
+
const [ne, oe] = W(!1), [M, be] = W(null), fe = K(null), ke = Te((v) => {
|
|
2776
|
+
fe.current = v, oe(!0);
|
|
2777
|
+
}, []), ye = Te(() => {
|
|
2778
|
+
if (ee?.trackPlanProceedClicked?.({
|
|
2779
|
+
planId: M.id,
|
|
2780
|
+
planName: M.title
|
|
2781
|
+
}), !fe.current || !M) return;
|
|
2782
|
+
const v = { ...fe.current, _selectedPlan: M };
|
|
2783
|
+
M.id === gr && le ? le(v) : V?.(v), oe(!1), fe.current = null;
|
|
2784
|
+
}, [M, V, le]), Pe = p?.config.imageComponent ?? De, Ae = _e ? /* @__PURE__ */ r.jsxs("div", { className: he.langDropdownWrap, ref: Z, children: [
|
|
2855
2785
|
/* @__PURE__ */ r.jsxs(
|
|
2856
2786
|
"button",
|
|
2857
2787
|
{
|
|
2858
2788
|
type: "button",
|
|
2859
2789
|
className: he.langTrigger,
|
|
2860
2790
|
onClick: () => {
|
|
2861
|
-
|
|
2791
|
+
ee?.trackLanguageClickedFe?.({ language: G }), X((v) => !v);
|
|
2862
2792
|
},
|
|
2863
|
-
"aria-expanded":
|
|
2793
|
+
"aria-expanded": O,
|
|
2864
2794
|
"aria-haspopup": "listbox",
|
|
2865
2795
|
id: "kundli-form-lang",
|
|
2866
|
-
"aria-label":
|
|
2796
|
+
"aria-label": F("language"),
|
|
2867
2797
|
children: [
|
|
2868
2798
|
/* @__PURE__ */ r.jsx(
|
|
2869
2799
|
Pe,
|
|
2870
2800
|
{
|
|
2871
|
-
src:
|
|
2801
|
+
src: An,
|
|
2872
2802
|
alt: "",
|
|
2873
2803
|
className: he.langIcon,
|
|
2874
2804
|
width: 16,
|
|
@@ -2880,89 +2810,89 @@ const ca = {}, da = ({
|
|
|
2880
2810
|
]
|
|
2881
2811
|
}
|
|
2882
2812
|
),
|
|
2883
|
-
|
|
2813
|
+
O && /* @__PURE__ */ r.jsx(
|
|
2884
2814
|
"ul",
|
|
2885
2815
|
{
|
|
2886
2816
|
className: he.langMenu,
|
|
2887
2817
|
role: "listbox",
|
|
2888
2818
|
"aria-labelledby": "kundli-form-lang",
|
|
2889
2819
|
"aria-activedescendant": `kundli-form-lang-option-${G}`,
|
|
2890
|
-
children:
|
|
2820
|
+
children: ur.map((v) => /* @__PURE__ */ r.jsx(
|
|
2891
2821
|
"li",
|
|
2892
2822
|
{
|
|
2893
|
-
id: `kundli-form-lang-option-${
|
|
2823
|
+
id: `kundli-form-lang-option-${v}`,
|
|
2894
2824
|
role: "option",
|
|
2895
|
-
"aria-selected":
|
|
2825
|
+
"aria-selected": v === G,
|
|
2896
2826
|
className: he.langOption,
|
|
2897
2827
|
onClick: () => {
|
|
2898
|
-
|
|
2828
|
+
ee?.trackLanguageChangedFe?.({ newLanguage: v }), y(v), X(!1);
|
|
2899
2829
|
},
|
|
2900
|
-
children: lr[
|
|
2830
|
+
children: lr[v]
|
|
2901
2831
|
},
|
|
2902
|
-
|
|
2832
|
+
v
|
|
2903
2833
|
))
|
|
2904
2834
|
}
|
|
2905
2835
|
)
|
|
2906
2836
|
] }) : null;
|
|
2907
2837
|
return /* @__PURE__ */ r.jsxs("div", { className: `${he.container} ${t}`, children: [
|
|
2908
2838
|
/* @__PURE__ */ r.jsx(
|
|
2909
|
-
|
|
2839
|
+
Pa,
|
|
2910
2840
|
{
|
|
2911
|
-
t:
|
|
2912
|
-
logoUrl:
|
|
2913
|
-
languageSelector:
|
|
2841
|
+
t: F,
|
|
2842
|
+
logoUrl: h ? p.config.logoUrl : void 0,
|
|
2843
|
+
languageSelector: Ae,
|
|
2914
2844
|
className: he.kundliHeaderNoBorder
|
|
2915
2845
|
}
|
|
2916
2846
|
),
|
|
2917
2847
|
/* @__PURE__ */ r.jsx("div", { className: he.headerSeparator, "aria-hidden": !0 }),
|
|
2918
2848
|
/* @__PURE__ */ r.jsxs("main", { className: he.main, children: [
|
|
2919
|
-
/* @__PURE__ */ r.jsx(st, { t:
|
|
2849
|
+
/* @__PURE__ */ r.jsx(st, { t: F, onBack: ge }),
|
|
2920
2850
|
/* @__PURE__ */ r.jsx(
|
|
2921
|
-
|
|
2851
|
+
ca,
|
|
2922
2852
|
{
|
|
2923
|
-
t:
|
|
2853
|
+
t: F,
|
|
2924
2854
|
values: J,
|
|
2925
|
-
onChange:
|
|
2926
|
-
|
|
2927
|
-
phoneIsdCode:
|
|
2928
|
-
onPhoneIsdCodeChange:
|
|
2855
|
+
onChange: te,
|
|
2856
|
+
atlasSearchLocalities: c,
|
|
2857
|
+
phoneIsdCode: B,
|
|
2858
|
+
onPhoneIsdCodeChange: q
|
|
2929
2859
|
}
|
|
2930
2860
|
)
|
|
2931
2861
|
] }),
|
|
2932
2862
|
/* @__PURE__ */ r.jsx(
|
|
2933
|
-
|
|
2863
|
+
xa,
|
|
2934
2864
|
{
|
|
2935
|
-
t:
|
|
2865
|
+
t: F,
|
|
2936
2866
|
values: J,
|
|
2937
|
-
phoneIsdCode:
|
|
2938
|
-
onProceed:
|
|
2939
|
-
onProceedGuidance:
|
|
2940
|
-
href:
|
|
2941
|
-
originalPriceLabel:
|
|
2942
|
-
discountedPriceLabel:
|
|
2943
|
-
analytics:
|
|
2944
|
-
showPlanSheet:
|
|
2945
|
-
confirmPlan:
|
|
2946
|
-
planSheetOpen:
|
|
2947
|
-
selectedPlan:
|
|
2867
|
+
phoneIsdCode: B,
|
|
2868
|
+
onProceed: V,
|
|
2869
|
+
onProceedGuidance: le,
|
|
2870
|
+
href: me,
|
|
2871
|
+
originalPriceLabel: se,
|
|
2872
|
+
discountedPriceLabel: ae,
|
|
2873
|
+
analytics: ee,
|
|
2874
|
+
showPlanSheet: ke,
|
|
2875
|
+
confirmPlan: ye,
|
|
2876
|
+
planSheetOpen: ne,
|
|
2877
|
+
selectedPlan: M
|
|
2948
2878
|
}
|
|
2949
2879
|
),
|
|
2950
2880
|
p?.config.variant === "v1" && /* @__PURE__ */ r.jsx(
|
|
2951
|
-
|
|
2881
|
+
Pn,
|
|
2952
2882
|
{
|
|
2953
|
-
isOpen:
|
|
2954
|
-
onClose: () =>
|
|
2955
|
-
selectedPlan:
|
|
2956
|
-
onSelectPlan:
|
|
2957
|
-
onProceed: (
|
|
2958
|
-
|
|
2883
|
+
isOpen: ne,
|
|
2884
|
+
onClose: () => oe(!1),
|
|
2885
|
+
selectedPlan: M,
|
|
2886
|
+
onSelectPlan: be,
|
|
2887
|
+
onProceed: (v) => {
|
|
2888
|
+
ye?.(v);
|
|
2959
2889
|
},
|
|
2960
|
-
t:
|
|
2961
|
-
analytics:
|
|
2890
|
+
t: F,
|
|
2891
|
+
analytics: ee
|
|
2962
2892
|
}
|
|
2963
2893
|
)
|
|
2964
2894
|
] });
|
|
2965
|
-
},
|
|
2895
|
+
}, Dn = {
|
|
2966
2896
|
banner_clicked_fe: "banner_clicked_fe",
|
|
2967
2897
|
primary_cta_clicked_fe: "primary_cta_clicked_fe",
|
|
2968
2898
|
language_changed_fe: "language_changed_fe",
|
|
@@ -3002,31 +2932,31 @@ const ca = {}, da = ({
|
|
|
3002
2932
|
kundli_form_view: "kundli_form_view"
|
|
3003
2933
|
};
|
|
3004
2934
|
export {
|
|
3005
|
-
|
|
2935
|
+
De as D,
|
|
3006
2936
|
st as F,
|
|
3007
|
-
|
|
3008
|
-
|
|
2937
|
+
Rn as I,
|
|
2938
|
+
Dn as K,
|
|
3009
2939
|
lr as L,
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
2940
|
+
gr as P,
|
|
2941
|
+
ur as S,
|
|
2942
|
+
ca as U,
|
|
2943
|
+
pr as a,
|
|
3014
2944
|
He as b,
|
|
3015
|
-
|
|
3016
|
-
|
|
2945
|
+
Ln as c,
|
|
2946
|
+
In as d,
|
|
3017
2947
|
at as e,
|
|
3018
2948
|
nt as f,
|
|
3019
2949
|
rt as g,
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
2950
|
+
Re as h,
|
|
2951
|
+
En as i,
|
|
2952
|
+
Bn as j,
|
|
3023
2953
|
r as k,
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
2954
|
+
Pa as l,
|
|
2955
|
+
xa as m,
|
|
2956
|
+
Pn as n,
|
|
2957
|
+
Sn as r,
|
|
3028
2958
|
tt as s,
|
|
3029
|
-
|
|
3030
|
-
|
|
2959
|
+
mr as t,
|
|
2960
|
+
Kr as u
|
|
3031
2961
|
};
|
|
3032
|
-
//# sourceMappingURL=analytics-
|
|
2962
|
+
//# sourceMappingURL=analytics-mqYZuSm2.js.map
|