@srimandir/kundli-generator 5.30.22 → 5.30.24
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-BDueklE6.js → analytics-BwvFb8DQ.js} +575 -582
- package/dist/analytics-BwvFb8DQ.js.map +1 -0
- package/dist/analytics.d.ts +0 -34
- package/dist/components/KundliForm/sections/ProceedFooter/ProceedFooter.d.ts +0 -1
- package/dist/components/KundliForm/sections/UserInfoFormSection/useGooglePlacesAutocomplete.d.ts +5 -5
- package/dist/components/KundliPage/KundliContext.d.ts +6 -0
- package/dist/components/KundliPage/KundliPage.d.ts +6 -6
- package/dist/components/KundliPage/KundliPageV1.d.ts +6 -6
- package/dist/components/KundliPage/sections/UtmBannerSection/UtmBannerSection.d.ts +8 -0
- package/dist/components/KundliPage/sections/UtmBannerSection/index.d.ts +2 -0
- package/dist/components/KundliPage/sections/index.d.ts +1 -0
- package/dist/components/KundliPlanBottomSheet/types.d.ts +0 -1
- package/dist/criticalCss-CpJxtpfG.js +1271 -0
- package/dist/criticalCss-CpJxtpfG.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/dist/style.css +1 -1
- package/dist/utils/utmBanner.d.ts +18 -0
- package/package.json +2 -2
- package/dist/analytics-BDueklE6.js.map +0 -1
- package/dist/components/KundliPage/sections/KundliTableSection/KundliTableSection.constants.d.ts +0 -32
- package/dist/components/KundliPage/sections/KundliTableSection/SampleReportsSection.d.ts +0 -10
- package/dist/components/KundliPage/sections/KundliTableSection/index.d.ts +0 -3
- package/dist/components/ThreeSkuPlanBottomSheet/AstrologerSection.d.ts +0 -8
- package/dist/components/ThreeSkuPlanBottomSheet/PlanFeatureList.d.ts +0 -7
- package/dist/components/ThreeSkuPlanBottomSheet/PlanSelectorStrip.d.ts +0 -11
- package/dist/components/ThreeSkuPlanBottomSheet/ProceedButton.d.ts +0 -9
- package/dist/components/ThreeSkuPlanBottomSheet/QuestionChips.d.ts +0 -7
- package/dist/components/ThreeSkuPlanBottomSheet/QuestionInput.d.ts +0 -15
- package/dist/components/ThreeSkuPlanBottomSheet/SheetHeader.d.ts +0 -6
- package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuAstrologerCard.d.ts +0 -6
- package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuAstrologerProfiles.d.ts +0 -15
- package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuPlanBottomSheet.d.ts +0 -3
- package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuPlanBottomSheet.icons.d.ts +0 -3
- package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuPlanBottomSheet.types.d.ts +0 -51
- package/dist/components/ThreeSkuPlanBottomSheet/constants.d.ts +0 -87
- package/dist/components/ThreeSkuPlanBottomSheet/index.d.ts +0 -4
- package/dist/criticalCss-gcaPLPsl.js +0 -1921
- package/dist/criticalCss-gcaPLPsl.js.map +0 -1
- package/dist/utils/keyframeStyles.d.ts +0 -10
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import Ge, { useContext as We, createContext as ur, useState as
|
|
1
|
+
import Ge, { useContext as We, createContext as ur, useState as K, useRef as Y, useEffect as q, useMemo as Ue, useCallback as Ne } from "react";
|
|
2
2
|
import { FormSectionHeader as Mr, FooterCTAButton as $r, FooterShell as Ur, CircularMarquee as Gr, footerShellStyles as ke, PageHeader as Wr } from "@srimandir/astrology-common";
|
|
3
3
|
var Ie = { exports: {} }, Se = {};
|
|
4
4
|
var nr;
|
|
5
5
|
function Kr() {
|
|
6
6
|
if (nr) return Se;
|
|
7
7
|
nr = 1;
|
|
8
|
-
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.fragment"),
|
|
9
|
-
function
|
|
10
|
-
var d,
|
|
11
|
-
|
|
12
|
-
for (d in
|
|
13
|
-
if (
|
|
14
|
-
return { $$typeof: o, type:
|
|
8
|
+
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, k = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
|
+
function x(j, A, E) {
|
|
10
|
+
var d, N = {}, h = null, I = null;
|
|
11
|
+
E !== void 0 && (h = "" + E), A.key !== void 0 && (h = "" + A.key), A.ref !== void 0 && (I = A.ref);
|
|
12
|
+
for (d in A) f.call(A, d) && !S.hasOwnProperty(d) && (N[d] = A[d]);
|
|
13
|
+
if (j && j.defaultProps) for (d in A = j.defaultProps, A) N[d] === void 0 && (N[d] = A[d]);
|
|
14
|
+
return { $$typeof: o, type: j, key: h, ref: I, props: N, _owner: k.current };
|
|
15
15
|
}
|
|
16
|
-
return Se.Fragment = c, Se.jsx =
|
|
16
|
+
return Se.Fragment = c, Se.jsx = x, Se.jsxs = x, Se;
|
|
17
17
|
}
|
|
18
18
|
var Ee = {};
|
|
19
19
|
var or;
|
|
20
20
|
function Hr() {
|
|
21
21
|
return or || (or = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
-
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"),
|
|
22
|
+
var t = Ge, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), f = /* @__PURE__ */ Symbol.for("react.fragment"), k = /* @__PURE__ */ Symbol.for("react.strict_mode"), S = /* @__PURE__ */ Symbol.for("react.profiler"), x = /* @__PURE__ */ Symbol.for("react.provider"), j = /* @__PURE__ */ Symbol.for("react.context"), A = /* @__PURE__ */ Symbol.for("react.forward_ref"), E = /* @__PURE__ */ Symbol.for("react.suspense"), d = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), h = /* @__PURE__ */ Symbol.for("react.lazy"), I = /* @__PURE__ */ Symbol.for("react.offscreen"), p = Symbol.iterator, L = "@@iterator";
|
|
23
23
|
function C(e) {
|
|
24
24
|
if (e === null || typeof e != "object")
|
|
25
25
|
return null;
|
|
26
|
-
var i =
|
|
26
|
+
var i = p && e[p] || e[L];
|
|
27
27
|
return typeof i == "function" ? i : null;
|
|
28
28
|
}
|
|
29
29
|
var b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -36,34 +36,34 @@ function Hr() {
|
|
|
36
36
|
}
|
|
37
37
|
function $(e, i, l) {
|
|
38
38
|
{
|
|
39
|
-
var u = b.ReactDebugCurrentFrame,
|
|
40
|
-
|
|
41
|
-
var
|
|
39
|
+
var u = b.ReactDebugCurrentFrame, P = u.getStackAddendum();
|
|
40
|
+
P !== "" && (i += "%s", l = l.concat([P]));
|
|
41
|
+
var T = l.map(function(y) {
|
|
42
42
|
return String(y);
|
|
43
43
|
});
|
|
44
|
-
|
|
44
|
+
T.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, T);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
var
|
|
47
|
+
var w = !1, O = !1, H = !1, z = !1, J = !1, G;
|
|
48
48
|
G = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
|
-
function
|
|
50
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
49
|
+
function V(e) {
|
|
50
|
+
return !!(typeof e == "string" || typeof e == "function" || e === f || e === S || J || e === k || e === E || e === d || z || e === I || w || O || H || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === N || e.$$typeof === x || 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
54
|
e.$$typeof === G || e.getModuleId !== void 0));
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function ne(e, i, l) {
|
|
57
57
|
var u = e.displayName;
|
|
58
58
|
if (u)
|
|
59
59
|
return u;
|
|
60
|
-
var
|
|
61
|
-
return
|
|
60
|
+
var P = i.displayName || i.name || "";
|
|
61
|
+
return P !== "" ? l + "(" + P + ")" : l;
|
|
62
62
|
}
|
|
63
63
|
function oe(e) {
|
|
64
64
|
return e.displayName || "Context";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function D(e) {
|
|
67
67
|
if (e == null)
|
|
68
68
|
return null;
|
|
69
69
|
if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -71,7 +71,7 @@ function Hr() {
|
|
|
71
71
|
if (typeof e == "string")
|
|
72
72
|
return e;
|
|
73
73
|
switch (e) {
|
|
74
|
-
case
|
|
74
|
+
case f:
|
|
75
75
|
return "Fragment";
|
|
76
76
|
case c:
|
|
77
77
|
return "Portal";
|
|
@@ -79,28 +79,28 @@ function Hr() {
|
|
|
79
79
|
return "Profiler";
|
|
80
80
|
case k:
|
|
81
81
|
return "StrictMode";
|
|
82
|
-
case
|
|
82
|
+
case E:
|
|
83
83
|
return "Suspense";
|
|
84
84
|
case d:
|
|
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
91
|
return oe(i) + ".Consumer";
|
|
92
|
-
case
|
|
92
|
+
case x:
|
|
93
93
|
var l = e;
|
|
94
94
|
return oe(l._context) + ".Provider";
|
|
95
|
-
case
|
|
96
|
-
return
|
|
97
|
-
case
|
|
95
|
+
case A:
|
|
96
|
+
return ne(e, e.render, "ForwardRef");
|
|
97
|
+
case N:
|
|
98
98
|
var u = e.displayName || null;
|
|
99
|
-
return u !== null ? u :
|
|
100
|
-
case
|
|
101
|
-
var
|
|
99
|
+
return u !== null ? u : D(e.type) || "Memo";
|
|
100
|
+
case h: {
|
|
101
|
+
var P = e, T = P._payload, y = P._init;
|
|
102
102
|
try {
|
|
103
|
-
return
|
|
103
|
+
return D(y(T));
|
|
104
104
|
} catch {
|
|
105
105
|
return null;
|
|
106
106
|
}
|
|
@@ -108,18 +108,18 @@ function Hr() {
|
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
111
|
-
var
|
|
112
|
-
function
|
|
111
|
+
var F = Object.assign, R = 0, Q, he, pe, ue, W, ee, ie;
|
|
112
|
+
function ae() {
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
function
|
|
114
|
+
ae.__reactDisabledLog = !0;
|
|
115
|
+
function le() {
|
|
116
116
|
{
|
|
117
|
-
if (
|
|
118
|
-
|
|
117
|
+
if (R === 0) {
|
|
118
|
+
Q = console.log, he = console.info, pe = console.warn, ue = console.error, W = console.group, ee = console.groupCollapsed, ie = 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,77 +132,77 @@ function Hr() {
|
|
|
132
132
|
groupEnd: e
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
R++;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function se() {
|
|
139
139
|
{
|
|
140
|
-
if (
|
|
140
|
+
if (R--, R === 0) {
|
|
141
141
|
var e = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
147
|
-
log:
|
|
148
|
-
value:
|
|
147
|
+
log: F({}, e, {
|
|
148
|
+
value: Q
|
|
149
149
|
}),
|
|
150
|
-
info:
|
|
150
|
+
info: F({}, e, {
|
|
151
151
|
value: he
|
|
152
152
|
}),
|
|
153
|
-
warn:
|
|
154
|
-
value:
|
|
153
|
+
warn: F({}, e, {
|
|
154
|
+
value: pe
|
|
155
155
|
}),
|
|
156
|
-
error:
|
|
157
|
-
value:
|
|
156
|
+
error: F({}, e, {
|
|
157
|
+
value: ue
|
|
158
158
|
}),
|
|
159
|
-
group:
|
|
160
|
-
value:
|
|
159
|
+
group: F({}, e, {
|
|
160
|
+
value: W
|
|
161
161
|
}),
|
|
162
|
-
groupCollapsed:
|
|
163
|
-
value:
|
|
162
|
+
groupCollapsed: F({}, e, {
|
|
163
|
+
value: ee
|
|
164
164
|
}),
|
|
165
|
-
groupEnd:
|
|
166
|
-
value:
|
|
165
|
+
groupEnd: F({}, e, {
|
|
166
|
+
value: ie
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
R < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
var ge = b.ReactCurrentDispatcher,
|
|
174
|
-
function
|
|
173
|
+
var ge = b.ReactCurrentDispatcher, fe;
|
|
174
|
+
function X(e, i, l) {
|
|
175
175
|
{
|
|
176
|
-
if (
|
|
176
|
+
if (fe === void 0)
|
|
177
177
|
try {
|
|
178
178
|
throw Error();
|
|
179
|
-
} catch (
|
|
180
|
-
var u =
|
|
181
|
-
|
|
179
|
+
} catch (P) {
|
|
180
|
+
var u = P.stack.trim().match(/\n( *(at )?)/);
|
|
181
|
+
fe = u && u[1] || "";
|
|
182
182
|
}
|
|
183
183
|
return `
|
|
184
|
-
` +
|
|
184
|
+
` + fe + e;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
var be = !1,
|
|
187
|
+
var be = !1, ce;
|
|
188
188
|
{
|
|
189
189
|
var we = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
|
-
|
|
190
|
+
ce = new we();
|
|
191
191
|
}
|
|
192
192
|
function _e(e, i) {
|
|
193
193
|
if (!e || be)
|
|
194
194
|
return "";
|
|
195
195
|
{
|
|
196
|
-
var l =
|
|
196
|
+
var l = ce.get(e);
|
|
197
197
|
if (l !== void 0)
|
|
198
198
|
return l;
|
|
199
199
|
}
|
|
200
200
|
var u;
|
|
201
201
|
be = !0;
|
|
202
|
-
var
|
|
202
|
+
var P = Error.prepareStackTrace;
|
|
203
203
|
Error.prepareStackTrace = void 0;
|
|
204
|
-
var
|
|
205
|
-
|
|
204
|
+
var T;
|
|
205
|
+
T = ge.current, ge.current = null, le();
|
|
206
206
|
try {
|
|
207
207
|
if (i) {
|
|
208
208
|
var y = function() {
|
|
@@ -215,29 +215,29 @@ function Hr() {
|
|
|
215
215
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
216
216
|
try {
|
|
217
217
|
Reflect.construct(y, []);
|
|
218
|
-
} catch (
|
|
219
|
-
u =
|
|
218
|
+
} catch (te) {
|
|
219
|
+
u = te;
|
|
220
220
|
}
|
|
221
221
|
Reflect.construct(e, [], y);
|
|
222
222
|
} else {
|
|
223
223
|
try {
|
|
224
224
|
y.call();
|
|
225
|
-
} catch (
|
|
226
|
-
u =
|
|
225
|
+
} catch (te) {
|
|
226
|
+
u = te;
|
|
227
227
|
}
|
|
228
228
|
e.call(y.prototype);
|
|
229
229
|
}
|
|
230
230
|
} else {
|
|
231
231
|
try {
|
|
232
232
|
throw Error();
|
|
233
|
-
} catch (
|
|
234
|
-
u =
|
|
233
|
+
} catch (te) {
|
|
234
|
+
u = te;
|
|
235
235
|
}
|
|
236
236
|
e();
|
|
237
237
|
}
|
|
238
|
-
} catch (
|
|
239
|
-
if (
|
|
240
|
-
for (var _ =
|
|
238
|
+
} catch (te) {
|
|
239
|
+
if (te && u && typeof te.stack == "string") {
|
|
240
|
+
for (var _ = te.stack.split(`
|
|
241
241
|
`), Z = u.stack.split(`
|
|
242
242
|
`), M = _.length - 1, U = Z.length - 1; M >= 1 && U >= 0 && _[M] !== Z[U]; )
|
|
243
243
|
U--;
|
|
@@ -246,19 +246,19 @@ function Hr() {
|
|
|
246
246
|
if (M !== 1 || U !== 1)
|
|
247
247
|
do
|
|
248
248
|
if (M--, U--, U < 0 || _[M] !== Z[U]) {
|
|
249
|
-
var
|
|
249
|
+
var de = `
|
|
250
250
|
` + _[M].replace(" at new ", " at ");
|
|
251
|
-
return e.displayName &&
|
|
251
|
+
return e.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", e.displayName)), typeof e == "function" && ce.set(e, de), de;
|
|
252
252
|
}
|
|
253
253
|
while (M >= 1 && U >= 0);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
} finally {
|
|
258
|
-
be = !1, ge.current =
|
|
258
|
+
be = !1, ge.current = T, se(), Error.prepareStackTrace = P;
|
|
259
259
|
}
|
|
260
|
-
var Ae = e ? e.displayName || e.name : "", ve = Ae ?
|
|
261
|
-
return typeof e == "function" &&
|
|
260
|
+
var Ae = e ? e.displayName || e.name : "", ve = Ae ? X(Ae) : "";
|
|
261
|
+
return typeof e == "function" && ce.set(e, ve), ve;
|
|
262
262
|
}
|
|
263
263
|
function xe(e, i, l) {
|
|
264
264
|
return _e(e, !1);
|
|
@@ -267,48 +267,48 @@ function Hr() {
|
|
|
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
274
|
return _e(e, ye(e));
|
|
275
275
|
if (typeof e == "string")
|
|
276
|
-
return
|
|
276
|
+
return X(e);
|
|
277
277
|
switch (e) {
|
|
278
|
-
case
|
|
279
|
-
return
|
|
278
|
+
case E:
|
|
279
|
+
return X("Suspense");
|
|
280
280
|
case d:
|
|
281
|
-
return
|
|
281
|
+
return X("SuspenseList");
|
|
282
282
|
}
|
|
283
283
|
if (typeof e == "object")
|
|
284
284
|
switch (e.$$typeof) {
|
|
285
|
-
case
|
|
285
|
+
case A:
|
|
286
286
|
return xe(e.render);
|
|
287
|
-
case
|
|
288
|
-
return
|
|
289
|
-
case
|
|
290
|
-
var u = e,
|
|
287
|
+
case N:
|
|
288
|
+
return v(e.type, i, l);
|
|
289
|
+
case h: {
|
|
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 n = Object.prototype.hasOwnProperty, s = {},
|
|
300
|
-
function
|
|
299
|
+
var n = Object.prototype.hasOwnProperty, s = {}, B = b.ReactDebugCurrentFrame;
|
|
300
|
+
function re(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
|
+
B.setExtraStackFrame(l);
|
|
304
304
|
} else
|
|
305
|
-
|
|
305
|
+
B.setExtraStackFrame(null);
|
|
306
306
|
}
|
|
307
|
-
function Re(e, i, l, u,
|
|
307
|
+
function Re(e, i, l, u, P) {
|
|
308
308
|
{
|
|
309
|
-
var
|
|
309
|
+
var T = Function.call.bind(n);
|
|
310
310
|
for (var y in e)
|
|
311
|
-
if (
|
|
311
|
+
if (T(e, y)) {
|
|
312
312
|
var _ = void 0;
|
|
313
313
|
try {
|
|
314
314
|
if (typeof e[y] != "function") {
|
|
@@ -319,7 +319,7 @@ function Hr() {
|
|
|
319
319
|
} catch (M) {
|
|
320
320
|
_ = M;
|
|
321
321
|
}
|
|
322
|
-
_ && !(_ instanceof Error) && (
|
|
322
|
+
_ && !(_ instanceof Error) && (re(P), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", l, y, typeof _), re(null)), _ instanceof Error && !(_.message in s) && (s[_.message] = !0, re(P), g("Failed %s type: %s", l, _.message), re(null));
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
@@ -394,7 +394,7 @@ function Hr() {
|
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
var jr = function(e, i, l, u,
|
|
397
|
+
var jr = function(e, i, l, u, P, T, y) {
|
|
398
398
|
var _ = {
|
|
399
399
|
// This tag allows us to uniquely identify this as a React Element
|
|
400
400
|
$$typeof: o,
|
|
@@ -404,7 +404,7 @@ function Hr() {
|
|
|
404
404
|
ref: l,
|
|
405
405
|
props: y,
|
|
406
406
|
// Record the component responsible for creating this element.
|
|
407
|
-
_owner:
|
|
407
|
+
_owner: T
|
|
408
408
|
};
|
|
409
409
|
return _._store = {}, Object.defineProperty(_._store, "validated", {
|
|
410
410
|
configurable: !1,
|
|
@@ -420,31 +420,31 @@ function Hr() {
|
|
|
420
420
|
configurable: !1,
|
|
421
421
|
enumerable: !1,
|
|
422
422
|
writable: !1,
|
|
423
|
-
value:
|
|
423
|
+
value: P
|
|
424
424
|
}), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
|
|
425
425
|
};
|
|
426
|
-
function Nr(e, i, l, u,
|
|
426
|
+
function Nr(e, i, l, u, P) {
|
|
427
427
|
{
|
|
428
|
-
var
|
|
429
|
-
l !== void 0 && (qe(l), _ = "" + l), xr(i) && (qe(i.key), _ = "" + i.key), wr(i) && (Z = i.ref, Pr(i,
|
|
430
|
-
for (
|
|
431
|
-
n.call(i,
|
|
428
|
+
var T, y = {}, _ = null, Z = null;
|
|
429
|
+
l !== void 0 && (qe(l), _ = "" + l), xr(i) && (qe(i.key), _ = "" + i.key), wr(i) && (Z = i.ref, Pr(i, P));
|
|
430
|
+
for (T in i)
|
|
431
|
+
n.call(i, T) && !kr.hasOwnProperty(T) && (y[T] = i[T]);
|
|
432
432
|
if (e && e.defaultProps) {
|
|
433
433
|
var M = e.defaultProps;
|
|
434
|
-
for (
|
|
435
|
-
y[
|
|
434
|
+
for (T in M)
|
|
435
|
+
y[T] === void 0 && (y[T] = M[T]);
|
|
436
436
|
}
|
|
437
437
|
if (_ || Z) {
|
|
438
438
|
var U = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
439
439
|
_ && Ar(y, U), Z && Cr(y, U);
|
|
440
440
|
}
|
|
441
|
-
return jr(e, _, Z,
|
|
441
|
+
return jr(e, _, Z, P, u, Ve.current, y);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
var Fe = b.ReactCurrentOwner, Qe = b.ReactDebugCurrentFrame;
|
|
445
445
|
function Pe(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 Hr() {
|
|
|
457
457
|
function Xe() {
|
|
458
458
|
{
|
|
459
459
|
if (Fe.current) {
|
|
460
|
-
var e =
|
|
460
|
+
var e = D(Fe.current.type);
|
|
461
461
|
if (e)
|
|
462
462
|
return `
|
|
463
463
|
|
|
@@ -492,7 +492,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
492
492
|
return;
|
|
493
493
|
Ze[l] = !0;
|
|
494
494
|
var u = "";
|
|
495
|
-
e && e._owner && e._owner !== Fe.current && (u = " It was passed a child from " +
|
|
495
|
+
e && e._owner && e._owner !== Fe.current && (u = " It was passed a child from " + D(e._owner.type) + "."), Pe(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, u), Pe(null);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
function rr(e, i) {
|
|
@@ -507,9 +507,9 @@ Check the top-level render call using <` + l + ">.");
|
|
|
507
507
|
else if (Me(e))
|
|
508
508
|
e._store && (e._store.validated = !0);
|
|
509
509
|
else if (e) {
|
|
510
|
-
var
|
|
511
|
-
if (typeof
|
|
512
|
-
for (var
|
|
510
|
+
var P = C(e);
|
|
511
|
+
if (typeof P == "function" && P !== e.entries)
|
|
512
|
+
for (var T = P.call(e), y; !(y = T.next()).done; )
|
|
513
513
|
Me(y.value) && er(y.value, i);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
@@ -522,19 +522,19 @@ 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 u =
|
|
532
|
+
var u = D(i);
|
|
533
533
|
Re(l, e.props, "prop", u, e);
|
|
534
534
|
} else if (i.PropTypes !== void 0 && !Oe) {
|
|
535
535
|
Oe = !0;
|
|
536
|
-
var
|
|
537
|
-
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
536
|
+
var P = D(i);
|
|
537
|
+
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
538
538
|
}
|
|
539
539
|
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
540
540
|
}
|
|
@@ -552,39 +552,39 @@ Check the top-level render call using <` + l + ">.");
|
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
var tr = {};
|
|
555
|
-
function ar(e, i, l, u,
|
|
555
|
+
function ar(e, i, l, u, P, T) {
|
|
556
556
|
{
|
|
557
|
-
var y =
|
|
557
|
+
var y = V(e);
|
|
558
558
|
if (!y) {
|
|
559
559
|
var _ = "";
|
|
560
560
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
561
561
|
var Z = Tr();
|
|
562
562
|
Z ? _ += Z : _ += Xe();
|
|
563
563
|
var M;
|
|
564
|
-
e === null ? M = "null" : De(e) ? M = "array" : e !== void 0 && e.$$typeof === o ? (M = "<" + (
|
|
564
|
+
e === null ? M = "null" : De(e) ? M = "array" : e !== void 0 && e.$$typeof === o ? (M = "<" + (D(e.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : M = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", M, _);
|
|
565
565
|
}
|
|
566
|
-
var U = Nr(e, i, l,
|
|
566
|
+
var U = Nr(e, i, l, P, T);
|
|
567
567
|
if (U == null)
|
|
568
568
|
return U;
|
|
569
569
|
if (y) {
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
570
|
+
var de = i.children;
|
|
571
|
+
if (de !== void 0)
|
|
572
572
|
if (u)
|
|
573
|
-
if (De(
|
|
574
|
-
for (var Ae = 0; Ae <
|
|
575
|
-
rr(
|
|
576
|
-
Object.freeze && Object.freeze(
|
|
573
|
+
if (De(de)) {
|
|
574
|
+
for (var Ae = 0; Ae < de.length; Ae++)
|
|
575
|
+
rr(de[Ae], e);
|
|
576
|
+
Object.freeze && Object.freeze(de);
|
|
577
577
|
} else
|
|
578
578
|
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
579
579
|
else
|
|
580
|
-
rr(
|
|
580
|
+
rr(de, e);
|
|
581
581
|
}
|
|
582
582
|
if (n.call(i, "key")) {
|
|
583
|
-
var ve =
|
|
583
|
+
var ve = D(e), te = Object.keys(i).filter(function(Or) {
|
|
584
584
|
return Or !== "key";
|
|
585
|
-
}), $e =
|
|
585
|
+
}), $e = te.length > 0 ? "{key: someKey, " + te.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
586
|
if (!tr[ve + $e]) {
|
|
587
|
-
var Fr =
|
|
587
|
+
var Fr = te.length > 0 ? "{" + te.join(": ..., ") + ": ...}" : "{}";
|
|
588
588
|
g(`A props object containing a "key" prop is being spread into JSX:
|
|
589
589
|
let props = %s;
|
|
590
590
|
<%s {...props} />
|
|
@@ -593,7 +593,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
593
593
|
<%s key={someKey} {...props} />`, $e, ve, Fr, ve), tr[ve + $e] = !0;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
return e ===
|
|
596
|
+
return e === f ? Er(U) : Sr(U), U;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
function Ir(e, i, l) {
|
|
@@ -603,7 +603,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
603
603
|
return ar(e, i, l, !1);
|
|
604
604
|
}
|
|
605
605
|
var Br = Lr, Dr = Ir;
|
|
606
|
-
Ee.Fragment =
|
|
606
|
+
Ee.Fragment = f, Ee.jsx = Br, Ee.jsxs = Dr;
|
|
607
607
|
})()), Ee;
|
|
608
608
|
}
|
|
609
609
|
var ir;
|
|
@@ -611,10 +611,10 @@ function Yr() {
|
|
|
611
611
|
return ir || (ir = 1, process.env.NODE_ENV === "production" ? Ie.exports = Kr() : Ie.exports = Hr()), Ie.exports;
|
|
612
612
|
}
|
|
613
613
|
var r = Yr();
|
|
614
|
-
const
|
|
614
|
+
const fr = ["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,17 +1046,17 @@ const mr = ["en", "hi"], lr = {
|
|
|
1046
1046
|
astrologyGuidance: "ज्योतिष से सलाह",
|
|
1047
1047
|
selectPackage: "पैकेज चुनें"
|
|
1048
1048
|
}
|
|
1049
|
-
},
|
|
1049
|
+
}, hr = ur(null), Dn = ({
|
|
1050
1050
|
locale: t,
|
|
1051
1051
|
children: o
|
|
1052
1052
|
}) => {
|
|
1053
|
-
const
|
|
1054
|
-
return /* @__PURE__ */ r.jsx(
|
|
1053
|
+
const f = { locale: t, t: (k) => mr[t]?.[k] ?? k };
|
|
1054
|
+
return /* @__PURE__ */ r.jsx(hr.Provider, { value: f, children: o });
|
|
1055
1055
|
};
|
|
1056
1056
|
function qr() {
|
|
1057
|
-
return We(
|
|
1057
|
+
return We(hr);
|
|
1058
1058
|
}
|
|
1059
|
-
const Vr = "_container_1e1th_1", zr = "_main_1e1th_7", Jr = "_kundliHeaderNoBorder_1e1th_12", Qr = "_headerSeparator_1e1th_16", Xr = "_langDropdownWrap_1e1th_21", Zr = "_langTrigger_1e1th_25", et = "_langIcon_1e1th_37", rt = "_langLabel_1e1th_44", tt = "_langMenu_1e1th_49", at = "_langOption_1e1th_55",
|
|
1059
|
+
const Vr = "_container_1e1th_1", zr = "_main_1e1th_7", Jr = "_kundliHeaderNoBorder_1e1th_12", Qr = "_headerSeparator_1e1th_16", Xr = "_langDropdownWrap_1e1th_21", Zr = "_langTrigger_1e1th_25", et = "_langIcon_1e1th_37", rt = "_langLabel_1e1th_44", tt = "_langMenu_1e1th_49", at = "_langOption_1e1th_55", me = {
|
|
1060
1060
|
container: Vr,
|
|
1061
1061
|
main: zr,
|
|
1062
1062
|
kundliHeaderNoBorder: Jr,
|
|
@@ -1068,10 +1068,10 @@ const Vr = "_container_1e1th_1", zr = "_main_1e1th_7", Jr = "_kundliHeaderNoBord
|
|
|
1068
1068
|
langMenu: tt,
|
|
1069
1069
|
langOption: at
|
|
1070
1070
|
}, Le = (t) => {
|
|
1071
|
-
const { priority: o, fetchPriority: c, width:
|
|
1071
|
+
const { priority: o, fetchPriority: c, width: f, height: k, ...S } = t;
|
|
1072
1072
|
return Ge.createElement("img", {
|
|
1073
1073
|
...S,
|
|
1074
|
-
width:
|
|
1074
|
+
width: f ?? 1,
|
|
1075
1075
|
height: k ?? 1,
|
|
1076
1076
|
decoding: "async",
|
|
1077
1077
|
loading: S.loading ?? (o ? "eager" : "lazy"),
|
|
@@ -1111,13 +1111,13 @@ function On() {
|
|
|
1111
1111
|
return !1;
|
|
1112
1112
|
}
|
|
1113
1113
|
}
|
|
1114
|
-
const
|
|
1114
|
+
const pr = "kundli_language";
|
|
1115
1115
|
function it() {
|
|
1116
|
-
const t = nt(
|
|
1117
|
-
return t &&
|
|
1116
|
+
const t = nt(pr);
|
|
1117
|
+
return t && fr.includes(t) ? t : null;
|
|
1118
1118
|
}
|
|
1119
1119
|
function lt(t) {
|
|
1120
|
-
ot(
|
|
1120
|
+
ot(pr, t);
|
|
1121
1121
|
}
|
|
1122
1122
|
const Ke = ur(null), st = {
|
|
1123
1123
|
fullName: "",
|
|
@@ -1135,124 +1135,127 @@ const Ke = ur(null), st = {
|
|
|
1135
1135
|
locale: t,
|
|
1136
1136
|
showLanguageSelector: o = !0,
|
|
1137
1137
|
showSheet: c,
|
|
1138
|
-
userId:
|
|
1138
|
+
userId: f,
|
|
1139
1139
|
isGlobal: k,
|
|
1140
1140
|
variant: S,
|
|
1141
|
-
atlasSearchLocalities:
|
|
1142
|
-
logoUrl:
|
|
1143
|
-
reportImageUrl:
|
|
1144
|
-
reportImagePriority:
|
|
1141
|
+
atlasSearchLocalities: x,
|
|
1142
|
+
logoUrl: j,
|
|
1143
|
+
reportImageUrl: A,
|
|
1144
|
+
reportImagePriority: E,
|
|
1145
1145
|
backgroundImagePriority: d,
|
|
1146
|
-
universityLogoUrls:
|
|
1147
|
-
sampleReportHref:
|
|
1148
|
-
onViewSampleReport:
|
|
1149
|
-
ctaHref:
|
|
1150
|
-
onCtaClick:
|
|
1146
|
+
universityLogoUrls: N,
|
|
1147
|
+
sampleReportHref: h,
|
|
1148
|
+
onViewSampleReport: I,
|
|
1149
|
+
ctaHref: p,
|
|
1150
|
+
onCtaClick: L,
|
|
1151
1151
|
onBack: C,
|
|
1152
1152
|
readMoreReviewsHref: b,
|
|
1153
1153
|
onProceed: g,
|
|
1154
1154
|
proceedHref: $,
|
|
1155
|
-
originalPriceLabel:
|
|
1156
|
-
discountedPriceLabel:
|
|
1157
|
-
discountPillLabel:
|
|
1158
|
-
analytics:
|
|
1159
|
-
onProceedGuidance:
|
|
1155
|
+
originalPriceLabel: w,
|
|
1156
|
+
discountedPriceLabel: O,
|
|
1157
|
+
discountPillLabel: H,
|
|
1158
|
+
analytics: z,
|
|
1159
|
+
onProceedGuidance: J,
|
|
1160
1160
|
onLocaleChange: G,
|
|
1161
|
-
imageComponent:
|
|
1162
|
-
|
|
1161
|
+
imageComponent: V = Le,
|
|
1162
|
+
utmBannerImageUrls: ne,
|
|
1163
|
+
children: oe
|
|
1163
1164
|
}) => {
|
|
1164
|
-
const [
|
|
1165
|
-
|
|
1166
|
-
const
|
|
1167
|
-
|
|
1168
|
-
}, []),
|
|
1169
|
-
lt(
|
|
1170
|
-
}, [
|
|
1171
|
-
if (
|
|
1172
|
-
|
|
1165
|
+
const [D, F] = K("landing"), [R, Q] = K(t ?? "en"), [he, pe] = K(st), ue = Y(!0);
|
|
1166
|
+
q(() => {
|
|
1167
|
+
const le = it();
|
|
1168
|
+
le && Q(le);
|
|
1169
|
+
}, []), q(() => {
|
|
1170
|
+
lt(R);
|
|
1171
|
+
}, [R]), q(() => {
|
|
1172
|
+
if (ue.current) {
|
|
1173
|
+
ue.current = !1;
|
|
1173
1174
|
return;
|
|
1174
1175
|
}
|
|
1175
|
-
G?.(
|
|
1176
|
-
}, [
|
|
1177
|
-
const
|
|
1176
|
+
G?.(R);
|
|
1177
|
+
}, [R, G]);
|
|
1178
|
+
const W = Ue(
|
|
1178
1179
|
() => ({
|
|
1179
1180
|
locale: t,
|
|
1180
1181
|
showLanguageSelector: o,
|
|
1181
1182
|
showSheet: c,
|
|
1182
|
-
userId:
|
|
1183
|
+
userId: f,
|
|
1183
1184
|
isGlobal: k,
|
|
1184
1185
|
variant: S,
|
|
1185
|
-
atlasSearchLocalities:
|
|
1186
|
-
logoUrl:
|
|
1187
|
-
reportImageUrl:
|
|
1188
|
-
reportImagePriority:
|
|
1186
|
+
atlasSearchLocalities: x,
|
|
1187
|
+
logoUrl: j,
|
|
1188
|
+
reportImageUrl: A,
|
|
1189
|
+
reportImagePriority: E,
|
|
1189
1190
|
backgroundImagePriority: d,
|
|
1190
|
-
universityLogoUrls:
|
|
1191
|
-
sampleReportHref:
|
|
1192
|
-
onViewSampleReport:
|
|
1193
|
-
ctaHref:
|
|
1194
|
-
onCtaClick:
|
|
1191
|
+
universityLogoUrls: N,
|
|
1192
|
+
sampleReportHref: h,
|
|
1193
|
+
onViewSampleReport: I,
|
|
1194
|
+
ctaHref: p,
|
|
1195
|
+
onCtaClick: L,
|
|
1195
1196
|
onBack: C,
|
|
1196
1197
|
readMoreReviewsHref: b,
|
|
1197
1198
|
onProceed: g,
|
|
1198
1199
|
proceedHref: $,
|
|
1199
|
-
originalPriceLabel:
|
|
1200
|
-
discountedPriceLabel:
|
|
1201
|
-
discountPillLabel:
|
|
1202
|
-
analytics:
|
|
1203
|
-
onProceedGuidance:
|
|
1200
|
+
originalPriceLabel: w,
|
|
1201
|
+
discountedPriceLabel: O,
|
|
1202
|
+
discountPillLabel: H,
|
|
1203
|
+
analytics: z,
|
|
1204
|
+
onProceedGuidance: J,
|
|
1204
1205
|
onLocaleChange: G,
|
|
1205
|
-
imageComponent:
|
|
1206
|
+
imageComponent: V,
|
|
1207
|
+
utmBannerImageUrls: ne
|
|
1206
1208
|
}),
|
|
1207
1209
|
[
|
|
1208
1210
|
t,
|
|
1209
1211
|
o,
|
|
1210
1212
|
c,
|
|
1211
|
-
|
|
1213
|
+
f,
|
|
1212
1214
|
k,
|
|
1213
1215
|
S,
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
L,
|
|
1218
|
-
d,
|
|
1219
|
-
R,
|
|
1220
|
-
p,
|
|
1216
|
+
x,
|
|
1217
|
+
j,
|
|
1218
|
+
A,
|
|
1221
1219
|
E,
|
|
1220
|
+
d,
|
|
1221
|
+
N,
|
|
1222
1222
|
h,
|
|
1223
1223
|
I,
|
|
1224
|
+
p,
|
|
1225
|
+
L,
|
|
1224
1226
|
C,
|
|
1225
1227
|
b,
|
|
1226
1228
|
g,
|
|
1227
1229
|
$,
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1230
|
+
w,
|
|
1231
|
+
O,
|
|
1232
|
+
H,
|
|
1233
|
+
z,
|
|
1231
1234
|
J,
|
|
1232
|
-
Q,
|
|
1233
1235
|
G,
|
|
1234
|
-
|
|
1236
|
+
V,
|
|
1237
|
+
ne
|
|
1235
1238
|
]
|
|
1236
1239
|
), ee = Ne(() => {
|
|
1237
|
-
|
|
1238
|
-
}, [
|
|
1239
|
-
|
|
1240
|
-
}, [
|
|
1240
|
+
F("form");
|
|
1241
|
+
}, [W.analytics]), ie = Ne(() => {
|
|
1242
|
+
F("landing"), W.onBack?.();
|
|
1243
|
+
}, [W.onBack]), ae = Ue(
|
|
1241
1244
|
() => ({
|
|
1242
|
-
view:
|
|
1243
|
-
locale:
|
|
1244
|
-
setLocale:
|
|
1245
|
-
config:
|
|
1246
|
-
formValues:
|
|
1247
|
-
setFormValues:
|
|
1245
|
+
view: D,
|
|
1246
|
+
locale: R,
|
|
1247
|
+
setLocale: Q,
|
|
1248
|
+
config: W,
|
|
1249
|
+
formValues: he,
|
|
1250
|
+
setFormValues: pe,
|
|
1248
1251
|
goToForm: ee,
|
|
1249
|
-
goToPage:
|
|
1250
|
-
onProceed:
|
|
1251
|
-
onProceedGuidance:
|
|
1252
|
+
goToPage: ie,
|
|
1253
|
+
onProceed: W.onProceed,
|
|
1254
|
+
onProceedGuidance: W.onProceedGuidance
|
|
1252
1255
|
}),
|
|
1253
|
-
[
|
|
1256
|
+
[D, R, W, he, ee, ie]
|
|
1254
1257
|
);
|
|
1255
|
-
return /* @__PURE__ */ r.jsx(Ke.Provider, { value:
|
|
1258
|
+
return /* @__PURE__ */ r.jsx(Ke.Provider, { value: ae, children: oe });
|
|
1256
1259
|
};
|
|
1257
1260
|
function Te() {
|
|
1258
1261
|
return We(Ke);
|
|
@@ -1270,7 +1273,7 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1270
1273
|
t,
|
|
1271
1274
|
onBack: o,
|
|
1272
1275
|
className: c = "",
|
|
1273
|
-
align:
|
|
1276
|
+
align: f = "left"
|
|
1274
1277
|
}) => /* @__PURE__ */ r.jsx(
|
|
1275
1278
|
Mr,
|
|
1276
1279
|
{
|
|
@@ -1278,13 +1281,13 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1278
1281
|
subtitle: t("formSubtitle"),
|
|
1279
1282
|
onBack: o,
|
|
1280
1283
|
backAriaLabel: t("back"),
|
|
1281
|
-
className: `${sr.header} ${
|
|
1284
|
+
className: `${sr.header} ${f === "center" ? sr.centered : ""} ${c}`
|
|
1282
1285
|
}
|
|
1283
|
-
),
|
|
1284
|
-
wrap:
|
|
1285
|
-
card:
|
|
1286
|
-
cardInner:
|
|
1287
|
-
field:
|
|
1286
|
+
), ft = "_wrap_119w3_1", mt = "_card_119w3_5", ht = "_cardInner_119w3_12", pt = "_field_119w3_44", gt = "_labelRow_119w3_48", _t = "_label_119w3_48", bt = "_req_119w3_57", yt = "_help_119w3_61", vt = "_choiceRow_119w3_68", kt = "_choiceBtn_119w3_74", wt = "_choiceBtnActive_119w3_99", xt = "_infoBtn_119w3_105", Pt = "_infoImg_119w3_122", At = "_infoWrap_119w3_128", Ct = "_tooltip_119w3_134", jt = "_tooltipArrow_119w3_150", Nt = "_inputWrap_119w3_161", Tt = "_isdWrap_119w3_165", Rt = "_phoneInputGroup_119w3_169", St = "_isdSelectWrap_119w3_178", Et = "_isdSelectTrigger_119w3_197", It = "_isdDropdown_119w3_214", Lt = "_isdSearchWrap_119w3_229", Bt = "_isdSearchInput_119w3_237", Dt = "_isdOption_119w3_255", Ft = "_isdOptionActive_119w3_275", Ot = "_isdCountryName_119w3_281", Mt = "_isdCountryCode_119w3_288", $t = "_isdNoResult_119w3_295", Ut = "_suggestions_119w3_302", Gt = "_suggestionItem_119w3_315", Wt = "_suggestionMain_119w3_333", Kt = "_suggestionSecondary_119w3_339", Ht = "_suggestionsHint_119w3_344", Yt = "_fieldError_119w3_359", qt = "_timePopover_119w3_366", Vt = "_timePickerRow_119w3_382", zt = "_timePickerSelect_119w3_388", Jt = "_timePickerColon_119w3_404", Qt = "_meridiemToggle_119w3_412", Xt = "_meridiemBtn_119w3_421", Zt = "_meridiemActive_119w3_436", ea = "_timePopoverActions_119w3_441", ra = "_timePopoverBtn_119w3_447", ta = "_timePopoverOk_119w3_466", aa = "_input_119w3_161", na = "_phoneInput_119w3_169", oa = "_iconBtn_119w3_519", ia = "_iconBtnInteractive_119w3_525", la = "_iconImg_119w3_544", sa = "_checkboxRow_119w3_550", ca = "_checkbox_119w3_550", da = "_checkboxText_119w3_588", a = {
|
|
1287
|
+
wrap: ft,
|
|
1288
|
+
card: mt,
|
|
1289
|
+
cardInner: ht,
|
|
1290
|
+
field: pt,
|
|
1288
1291
|
labelRow: gt,
|
|
1289
1292
|
label: _t,
|
|
1290
1293
|
req: bt,
|
|
@@ -1341,23 +1344,23 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1341
1344
|
offset: c,
|
|
1342
1345
|
restrictCountry: t?.restrictCountry
|
|
1343
1346
|
};
|
|
1344
|
-
},
|
|
1345
|
-
const { searchLocalities: o, restrictCountry: c } = t, [
|
|
1346
|
-
|
|
1347
|
-
|
|
1347
|
+
}, fa = (t) => {
|
|
1348
|
+
const { searchLocalities: o, restrictCountry: c } = t, [f, k] = K([]), [S, x] = K(!1), [j, A] = K(null), E = Y(0);
|
|
1349
|
+
q(() => {
|
|
1350
|
+
A(null);
|
|
1348
1351
|
}, [o]);
|
|
1349
1352
|
const d = Ne(
|
|
1350
|
-
async (
|
|
1351
|
-
if (!
|
|
1353
|
+
async (h) => {
|
|
1354
|
+
if (!h || h.length < 2 || !o) {
|
|
1352
1355
|
k([]);
|
|
1353
1356
|
return;
|
|
1354
1357
|
}
|
|
1355
|
-
const
|
|
1356
|
-
|
|
1358
|
+
const I = ++E.current;
|
|
1359
|
+
x(!0), A(null);
|
|
1357
1360
|
try {
|
|
1358
|
-
const
|
|
1359
|
-
if (
|
|
1360
|
-
const C = (
|
|
1361
|
+
const p = ua({ restrictCountry: c }), L = await o(h, p);
|
|
1362
|
+
if (I !== E.current) return;
|
|
1363
|
+
const C = (L || []).filter(
|
|
1361
1364
|
(b) => !!b?.id && !!b?.description && cr(b?.lat) && cr(b?.lng)
|
|
1362
1365
|
).map((b) => ({
|
|
1363
1366
|
id: b.id,
|
|
@@ -1367,21 +1370,21 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1367
1370
|
lng: b.lng
|
|
1368
1371
|
}));
|
|
1369
1372
|
k(C);
|
|
1370
|
-
} catch (
|
|
1371
|
-
if (
|
|
1372
|
-
k([]),
|
|
1373
|
+
} catch (p) {
|
|
1374
|
+
if (I !== E.current) return;
|
|
1375
|
+
k([]), A(p?.message || "Failed to fetch locations");
|
|
1373
1376
|
} finally {
|
|
1374
|
-
|
|
1377
|
+
I === E.current && x(!1);
|
|
1375
1378
|
}
|
|
1376
1379
|
},
|
|
1377
1380
|
[c, o]
|
|
1378
|
-
),
|
|
1381
|
+
), N = Ne(() => k([]), []);
|
|
1379
1382
|
return {
|
|
1380
|
-
predictions:
|
|
1383
|
+
predictions: f,
|
|
1381
1384
|
isSearching: S,
|
|
1382
|
-
loadError:
|
|
1385
|
+
loadError: j,
|
|
1383
1386
|
searchPlaces: d,
|
|
1384
|
-
clearPredictions:
|
|
1387
|
+
clearPredictions: N
|
|
1385
1388
|
};
|
|
1386
1389
|
}, Ce = {
|
|
1387
1390
|
time: "https://srm-cdn.a4b.io/yoda/1770372014782.svg",
|
|
@@ -1460,21 +1463,21 @@ const ct = "_header_19172_1", dt = "_centered_19172_8", sr = {
|
|
|
1460
1463
|
{ code: "+977", country: "Nepal" }
|
|
1461
1464
|
];
|
|
1462
1465
|
gr.map((t) => t.code);
|
|
1463
|
-
const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
1466
|
+
const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r), ma = (t) => He(t).length === _r, ha = (t, o, c) => ma(t) ? c.phone ? { shouldTrack: !1 } : (c.phone = !0, { shouldTrack: !0, fullPhone: `${o}-${He(t)}` }) : (c.phone = !1, { shouldTrack: !1 }), pa = ({
|
|
1464
1467
|
t,
|
|
1465
1468
|
values: o,
|
|
1466
1469
|
onChange: c,
|
|
1467
|
-
phoneIsdCode:
|
|
1470
|
+
phoneIsdCode: f,
|
|
1468
1471
|
onPhoneIsdCodeChange: k,
|
|
1469
1472
|
showV1ExtraFields: S = !1,
|
|
1470
|
-
analytics:
|
|
1471
|
-
atlasSearchLocalities:
|
|
1472
|
-
className:
|
|
1473
|
+
analytics: x,
|
|
1474
|
+
atlasSearchLocalities: j,
|
|
1475
|
+
className: A = ""
|
|
1473
1476
|
}) => {
|
|
1474
|
-
const
|
|
1477
|
+
const E = Te(), d = E?.config?.analytics ?? x, N = E?.config.isGlobal ?? !0, h = E?.config?.atlasSearchLocalities, [I, p] = K(!1), [L, C] = K(""), b = Y(null), g = Y(null), $ = Y({}), w = (n) => c({ ...o, ...n }), O = (n, s) => {
|
|
1475
1478
|
if (n === "phone") {
|
|
1476
|
-
const
|
|
1477
|
-
|
|
1479
|
+
const B = ha(s, f, $.current);
|
|
1480
|
+
B.shouldTrack && d?.trackPhoneSectionFilled?.({ phone: B.fullPhone });
|
|
1478
1481
|
return;
|
|
1479
1482
|
}
|
|
1480
1483
|
s.trim() && !$.current[n] && ($.current[n] = !0, {
|
|
@@ -1484,85 +1487,85 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1484
1487
|
birthTime: () => d?.trackTimeFilled?.(),
|
|
1485
1488
|
birthPlace: () => d?.trackPlaceOfBirthChosen?.()
|
|
1486
1489
|
}[n]?.());
|
|
1487
|
-
},
|
|
1488
|
-
|
|
1489
|
-
const G =
|
|
1490
|
+
}, H = L.trim().toLowerCase(), z = gr.filter((n) => H ? n.country.toLowerCase().includes(H) || n.code.includes(H) : !0), J = Y(null);
|
|
1491
|
+
Y(null);
|
|
1492
|
+
const G = Y(null), V = Y(0), ne = Y(null), [oe, D] = K(!1), [F, R] = K({ hour12: 12, minute: "00", meridiem: "AM" }), Q = (n) => String(n).padStart(2, "0"), he = (n) => {
|
|
1490
1493
|
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
1491
1494
|
if (!s) return n;
|
|
1492
|
-
const
|
|
1493
|
-
return `${
|
|
1494
|
-
},
|
|
1495
|
+
const B = Number(s[1]), re = s[2], Re = B >= 12 ? "PM" : "AM";
|
|
1496
|
+
return `${B % 12 === 0 ? 12 : B % 12}:${re} ${Re}`;
|
|
1497
|
+
}, pe = (n) => {
|
|
1495
1498
|
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(n);
|
|
1496
1499
|
if (!s) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
1497
|
-
const
|
|
1498
|
-
return { hour12:
|
|
1499
|
-
},
|
|
1500
|
-
const s = Math.min(12, Math.max(1, n.hour12)),
|
|
1501
|
-
let
|
|
1502
|
-
return n.meridiem === "PM" && (
|
|
1503
|
-
},
|
|
1500
|
+
const B = Number(s[1]), re = s[2], Re = B >= 12 ? "PM" : "AM";
|
|
1501
|
+
return { hour12: B % 12 === 0 ? 12 : B % 12, minute: re, meridiem: Re };
|
|
1502
|
+
}, ue = (n) => {
|
|
1503
|
+
const s = Math.min(12, Math.max(1, n.hour12)), B = /^([0-5]\d)$/.test(n.minute) ? n.minute : "00";
|
|
1504
|
+
let re = s % 12;
|
|
1505
|
+
return n.meridiem === "PM" && (re += 12), `${Q(re)}:${B}`;
|
|
1506
|
+
}, W = Y(null), [ee, ie] = K(!1), [ae, le] = K(
|
|
1504
1507
|
null
|
|
1505
|
-
),
|
|
1506
|
-
predictions:
|
|
1508
|
+
), se = (o.birthPlace ?? "").trim(), ge = N ? void 0 : "in", fe = j ?? h, X = Number.isFinite(o.birthPlaceLat) && Number.isFinite(o.birthPlaceLng), be = se.length > 0 && !X && !ee, {
|
|
1509
|
+
predictions: ce,
|
|
1507
1510
|
isSearching: we,
|
|
1508
1511
|
loadError: _e,
|
|
1509
1512
|
searchPlaces: xe,
|
|
1510
1513
|
clearPredictions: ye
|
|
1511
|
-
} =
|
|
1512
|
-
searchLocalities:
|
|
1514
|
+
} = fa({
|
|
1515
|
+
searchLocalities: fe,
|
|
1513
1516
|
restrictCountry: ge
|
|
1514
1517
|
});
|
|
1515
|
-
|
|
1518
|
+
q(() => {
|
|
1516
1519
|
const n = (s) => {
|
|
1517
|
-
|
|
1520
|
+
W.current && (W.current.contains(s.target) || ie(!1));
|
|
1518
1521
|
};
|
|
1519
1522
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1520
|
-
}, []),
|
|
1523
|
+
}, []), q(() => {
|
|
1521
1524
|
const n = (s) => {
|
|
1522
|
-
b.current && (b.current.contains(s.target) || (
|
|
1525
|
+
b.current && (b.current.contains(s.target) || (p(!1), C("")));
|
|
1523
1526
|
};
|
|
1524
1527
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1525
|
-
}, []),
|
|
1526
|
-
if (!
|
|
1528
|
+
}, []), q(() => {
|
|
1529
|
+
if (!I) return;
|
|
1527
1530
|
const n = window.setTimeout(() => {
|
|
1528
1531
|
g.current?.focus();
|
|
1529
1532
|
}, 0);
|
|
1530
1533
|
return () => window.clearTimeout(n);
|
|
1531
|
-
}, [
|
|
1532
|
-
if (!
|
|
1533
|
-
if (
|
|
1534
|
+
}, [I]), q(() => {
|
|
1535
|
+
if (!ee) return;
|
|
1536
|
+
if (se.length < 2) {
|
|
1534
1537
|
ye();
|
|
1535
1538
|
return;
|
|
1536
1539
|
}
|
|
1537
1540
|
const n = window.setTimeout(async () => {
|
|
1538
|
-
await xe(
|
|
1541
|
+
await xe(se);
|
|
1539
1542
|
}, 250);
|
|
1540
1543
|
return () => window.clearTimeout(n);
|
|
1541
|
-
}, [ye,
|
|
1542
|
-
const
|
|
1544
|
+
}, [ye, ee, se, xe]);
|
|
1545
|
+
const v = (n) => {
|
|
1543
1546
|
const s = n.current;
|
|
1544
1547
|
if (!(!s || s.disabled)) {
|
|
1545
|
-
if (document.activeElement === s && G.current === s && Date.now() -
|
|
1548
|
+
if (document.activeElement === s && G.current === s && Date.now() - V.current < 6e4) {
|
|
1546
1549
|
s.blur();
|
|
1547
1550
|
return;
|
|
1548
1551
|
}
|
|
1549
1552
|
if (typeof s.showPicker == "function") {
|
|
1550
|
-
s.showPicker(), G.current = s,
|
|
1553
|
+
s.showPicker(), G.current = s, V.current = Date.now();
|
|
1551
1554
|
return;
|
|
1552
1555
|
}
|
|
1553
|
-
s.focus(), G.current = s,
|
|
1556
|
+
s.focus(), G.current = s, V.current = Date.now();
|
|
1554
1557
|
}
|
|
1555
1558
|
};
|
|
1556
|
-
return
|
|
1559
|
+
return q(() => {
|
|
1557
1560
|
const n = (s) => {
|
|
1558
|
-
|
|
1561
|
+
ne.current && (ne.current.contains(s.target) || D(!1));
|
|
1559
1562
|
};
|
|
1560
1563
|
return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
|
|
1561
|
-
}, []),
|
|
1562
|
-
const n = (
|
|
1563
|
-
|
|
1564
|
-
}, s = (
|
|
1565
|
-
|
|
1564
|
+
}, []), q(() => {
|
|
1565
|
+
const n = (B) => {
|
|
1566
|
+
B.target?.closest?.("[data-info-tooltip]") == null && le(null);
|
|
1567
|
+
}, s = (B) => {
|
|
1568
|
+
B.key === "Escape" && le(null);
|
|
1566
1569
|
};
|
|
1567
1570
|
return document.addEventListener("mousedown", n), document.addEventListener("keydown", s), () => {
|
|
1568
1571
|
document.removeEventListener("mousedown", n), document.removeEventListener("keydown", s);
|
|
@@ -1570,7 +1573,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1570
1573
|
}, []), /* @__PURE__ */ r.jsx(
|
|
1571
1574
|
"section",
|
|
1572
1575
|
{
|
|
1573
|
-
className: `${a.wrap} ${
|
|
1576
|
+
className: `${a.wrap} ${A}`,
|
|
1574
1577
|
"aria-label": t("formTitle"),
|
|
1575
1578
|
children: /* @__PURE__ */ r.jsx("div", { className: a.card, children: /* @__PURE__ */ r.jsxs("div", { className: a.cardInner, children: [
|
|
1576
1579
|
/* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
|
|
@@ -1588,7 +1591,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1588
1591
|
onFocus: () => d?.trackNameSectionClicked?.(),
|
|
1589
1592
|
onChange: (n) => {
|
|
1590
1593
|
const s = n.target.value;
|
|
1591
|
-
|
|
1594
|
+
w({ fullName: s }), O("fullName", s);
|
|
1592
1595
|
},
|
|
1593
1596
|
placeholder: t("formFullNamePlaceholder"),
|
|
1594
1597
|
autoComplete: "name"
|
|
@@ -1598,7 +1601,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1598
1601
|
/* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
|
|
1599
1602
|
/* @__PURE__ */ r.jsx("div", { className: a.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: a.label, htmlFor: "kundli-phone", children: [
|
|
1600
1603
|
t("formPhone"),
|
|
1601
|
-
!
|
|
1604
|
+
!N && /* @__PURE__ */ r.jsx("span", { className: a.req, children: "*" })
|
|
1602
1605
|
] }) }),
|
|
1603
1606
|
/* @__PURE__ */ r.jsx("div", { className: a.inputWrap, children: /* @__PURE__ */ r.jsxs("div", { className: a.isdWrap, ref: b, children: [
|
|
1604
1607
|
/* @__PURE__ */ r.jsxs("div", { className: a.phoneInputGroup, children: [
|
|
@@ -1608,11 +1611,11 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1608
1611
|
type: "button",
|
|
1609
1612
|
className: a.isdSelectTrigger,
|
|
1610
1613
|
"aria-haspopup": "listbox",
|
|
1611
|
-
"aria-expanded":
|
|
1614
|
+
"aria-expanded": I,
|
|
1612
1615
|
onClick: () => {
|
|
1613
|
-
|
|
1616
|
+
p((n) => !n), C("");
|
|
1614
1617
|
},
|
|
1615
|
-
children:
|
|
1618
|
+
children: f
|
|
1616
1619
|
}
|
|
1617
1620
|
) }),
|
|
1618
1621
|
/* @__PURE__ */ r.jsx(
|
|
@@ -1625,19 +1628,19 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1625
1628
|
onFocus: () => d?.trackPhoneSectionClicked?.(),
|
|
1626
1629
|
onChange: (n) => {
|
|
1627
1630
|
const s = n.target.value;
|
|
1628
|
-
|
|
1631
|
+
w({ phone: dr(s) }), O("phone", dr(s));
|
|
1629
1632
|
},
|
|
1630
1633
|
placeholder: t("formPhonePlaceholder"),
|
|
1631
1634
|
autoComplete: "tel",
|
|
1632
1635
|
inputMode: "numeric",
|
|
1633
1636
|
pattern: "[0-9]{10}",
|
|
1634
1637
|
maxLength: 10,
|
|
1635
|
-
required: !
|
|
1636
|
-
"aria-required": !
|
|
1638
|
+
required: !N,
|
|
1639
|
+
"aria-required": !N
|
|
1637
1640
|
}
|
|
1638
1641
|
)
|
|
1639
1642
|
] }),
|
|
1640
|
-
|
|
1643
|
+
I && /* @__PURE__ */ r.jsxs(
|
|
1641
1644
|
"div",
|
|
1642
1645
|
{
|
|
1643
1646
|
className: a.isdDropdown,
|
|
@@ -1649,22 +1652,22 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1649
1652
|
{
|
|
1650
1653
|
ref: g,
|
|
1651
1654
|
type: "text",
|
|
1652
|
-
value:
|
|
1655
|
+
value: L,
|
|
1653
1656
|
onChange: (n) => C(n.target.value),
|
|
1654
1657
|
placeholder: "Search country",
|
|
1655
1658
|
className: a.isdSearchInput,
|
|
1656
1659
|
"aria-label": "Search country"
|
|
1657
1660
|
}
|
|
1658
1661
|
) }),
|
|
1659
|
-
|
|
1662
|
+
z.length > 0 ? z.map((n) => /* @__PURE__ */ r.jsxs(
|
|
1660
1663
|
"button",
|
|
1661
1664
|
{
|
|
1662
1665
|
type: "button",
|
|
1663
1666
|
role: "option",
|
|
1664
|
-
"aria-selected": n.code ===
|
|
1665
|
-
className: `${a.isdOption} ${n.code ===
|
|
1667
|
+
"aria-selected": n.code === f,
|
|
1668
|
+
className: `${a.isdOption} ${n.code === f ? a.isdOptionActive : ""}`,
|
|
1666
1669
|
onClick: () => {
|
|
1667
|
-
k(n.code),
|
|
1670
|
+
k(n.code), p(!1), C("");
|
|
1668
1671
|
},
|
|
1669
1672
|
children: [
|
|
1670
1673
|
/* @__PURE__ */ r.jsx("span", { className: a.isdCountryName, children: n.country }),
|
|
@@ -1697,7 +1700,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1697
1700
|
type: "button",
|
|
1698
1701
|
className: `${a.choiceBtn} ${o.gender === "male" ? a.choiceBtnActive : ""}`,
|
|
1699
1702
|
onClick: () => {
|
|
1700
|
-
|
|
1703
|
+
w({ gender: "male" }), d?.trackGenderSelected?.({
|
|
1701
1704
|
gender: "male"
|
|
1702
1705
|
});
|
|
1703
1706
|
},
|
|
@@ -1713,7 +1716,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1713
1716
|
type: "button",
|
|
1714
1717
|
className: `${a.choiceBtn} ${o.gender === "female" ? a.choiceBtnActive : ""}`,
|
|
1715
1718
|
onClick: () => {
|
|
1716
|
-
|
|
1719
|
+
w({ gender: "female" }), d?.trackGenderSelected?.({
|
|
1717
1720
|
gender: "female"
|
|
1718
1721
|
});
|
|
1719
1722
|
},
|
|
@@ -1726,7 +1729,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1726
1729
|
}
|
|
1727
1730
|
)
|
|
1728
1731
|
] }),
|
|
1729
|
-
|
|
1732
|
+
N && /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs("div", { className: a.field, children: [
|
|
1730
1733
|
/* @__PURE__ */ r.jsx("div", { className: a.labelRow, children: /* @__PURE__ */ r.jsxs("label", { className: a.label, htmlFor: "kundli-email", children: [
|
|
1731
1734
|
t("formEmail"),
|
|
1732
1735
|
/* @__PURE__ */ r.jsx("span", { className: a.req, children: "*" })
|
|
@@ -1739,7 +1742,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1739
1742
|
className: a.input,
|
|
1740
1743
|
type: "email",
|
|
1741
1744
|
value: o.email,
|
|
1742
|
-
onChange: (n) =>
|
|
1745
|
+
onChange: (n) => w({ email: n.target.value }),
|
|
1743
1746
|
placeholder: t("formEmailPlaceholder"),
|
|
1744
1747
|
autoComplete: "email",
|
|
1745
1748
|
required: !0,
|
|
@@ -1760,9 +1763,9 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1760
1763
|
type: "button",
|
|
1761
1764
|
className: a.infoBtn,
|
|
1762
1765
|
"aria-label": t("info"),
|
|
1763
|
-
"aria-expanded":
|
|
1766
|
+
"aria-expanded": ae === "dob",
|
|
1764
1767
|
onClick: () => {
|
|
1765
|
-
|
|
1768
|
+
le((n) => n === "dob" ? null : "dob"), d?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
1766
1769
|
},
|
|
1767
1770
|
children: /* @__PURE__ */ r.jsx(
|
|
1768
1771
|
"img",
|
|
@@ -1775,7 +1778,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1775
1778
|
)
|
|
1776
1779
|
}
|
|
1777
1780
|
),
|
|
1778
|
-
|
|
1781
|
+
ae === "dob" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
|
|
1779
1782
|
t("formDobInfo"),
|
|
1780
1783
|
/* @__PURE__ */ r.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
|
|
1781
1784
|
] })
|
|
@@ -1788,20 +1791,20 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1788
1791
|
id: "kundli-dob",
|
|
1789
1792
|
className: a.input,
|
|
1790
1793
|
type: "date",
|
|
1791
|
-
ref:
|
|
1794
|
+
ref: J,
|
|
1792
1795
|
value: o.dateOfBirth,
|
|
1793
1796
|
max: (() => {
|
|
1794
1797
|
const n = /* @__PURE__ */ new Date();
|
|
1795
|
-
return `${n.getFullYear()}-${
|
|
1798
|
+
return `${n.getFullYear()}-${Q(n.getMonth() + 1)}-${Q(n.getDate())}`;
|
|
1796
1799
|
})(),
|
|
1797
1800
|
onChange: (n) => {
|
|
1798
|
-
const s = n.target.value,
|
|
1799
|
-
s && s >
|
|
1801
|
+
const s = n.target.value, B = /* @__PURE__ */ new Date(), re = `${B.getFullYear()}-${Q(B.getMonth() + 1)}-${Q(B.getDate())}`;
|
|
1802
|
+
s && s > re || (w({ dateOfBirth: s }), O("dateOfBirth", s), G.current = null);
|
|
1800
1803
|
},
|
|
1801
1804
|
onFocus: () => d?.trackDobClicked?.(),
|
|
1802
|
-
onClick: () =>
|
|
1805
|
+
onClick: () => v(J),
|
|
1803
1806
|
onBlur: () => {
|
|
1804
|
-
G.current ===
|
|
1807
|
+
G.current === J.current && (G.current = null);
|
|
1805
1808
|
}
|
|
1806
1809
|
}
|
|
1807
1810
|
),
|
|
@@ -1813,7 +1816,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1813
1816
|
"aria-label": "Open date picker",
|
|
1814
1817
|
onMouseDown: (n) => n.preventDefault(),
|
|
1815
1818
|
onClick: (n) => {
|
|
1816
|
-
n.preventDefault(), n.stopPropagation(),
|
|
1819
|
+
n.preventDefault(), n.stopPropagation(), v(J);
|
|
1817
1820
|
},
|
|
1818
1821
|
children: /* @__PURE__ */ r.jsx(
|
|
1819
1822
|
"img",
|
|
@@ -1841,9 +1844,9 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1841
1844
|
type: "button",
|
|
1842
1845
|
className: a.infoBtn,
|
|
1843
1846
|
"aria-label": t("info"),
|
|
1844
|
-
"aria-expanded":
|
|
1847
|
+
"aria-expanded": ae === "time",
|
|
1845
1848
|
onClick: () => {
|
|
1846
|
-
d?.trackInfoIconClicked?.({ fieldName: "time" }),
|
|
1849
|
+
d?.trackInfoIconClicked?.({ fieldName: "time" }), le((n) => n === "time" ? null : "time");
|
|
1847
1850
|
},
|
|
1848
1851
|
children: /* @__PURE__ */ r.jsx(
|
|
1849
1852
|
"img",
|
|
@@ -1856,13 +1859,13 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1856
1859
|
)
|
|
1857
1860
|
}
|
|
1858
1861
|
),
|
|
1859
|
-
|
|
1862
|
+
ae === "time" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
|
|
1860
1863
|
t("formBirthTimeInfo"),
|
|
1861
1864
|
/* @__PURE__ */ r.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
|
|
1862
1865
|
] })
|
|
1863
1866
|
] })
|
|
1864
1867
|
] }),
|
|
1865
|
-
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref:
|
|
1868
|
+
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref: ne, children: [
|
|
1866
1869
|
/* @__PURE__ */ r.jsx(
|
|
1867
1870
|
"input",
|
|
1868
1871
|
{
|
|
@@ -1874,12 +1877,12 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1874
1877
|
onFocus: () => d?.trackTimeClicked?.(),
|
|
1875
1878
|
onChange: (n) => {
|
|
1876
1879
|
const s = n.target.value;
|
|
1877
|
-
|
|
1880
|
+
w({ birthTime: s }), O("birthTime", s);
|
|
1878
1881
|
},
|
|
1879
1882
|
disabled: o.birthTimeUnknown,
|
|
1880
1883
|
placeholder: "HH:MM AM",
|
|
1881
1884
|
onClick: () => {
|
|
1882
|
-
o.birthTimeUnknown || (
|
|
1885
|
+
o.birthTimeUnknown || (R(pe(o.birthTime || "12:00")), D((n) => !n));
|
|
1883
1886
|
}
|
|
1884
1887
|
}
|
|
1885
1888
|
),
|
|
@@ -1892,7 +1895,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1892
1895
|
disabled: o.birthTimeUnknown,
|
|
1893
1896
|
onMouseDown: (n) => n.preventDefault(),
|
|
1894
1897
|
onClick: (n) => {
|
|
1895
|
-
n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (
|
|
1898
|
+
n.preventDefault(), n.stopPropagation(), !o.birthTimeUnknown && (R(pe(o.birthTime || "12:00")), D((s) => !s));
|
|
1896
1899
|
},
|
|
1897
1900
|
children: /* @__PURE__ */ r.jsx(
|
|
1898
1901
|
"img",
|
|
@@ -1917,8 +1920,8 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1917
1920
|
"select",
|
|
1918
1921
|
{
|
|
1919
1922
|
className: a.timePickerSelect,
|
|
1920
|
-
value:
|
|
1921
|
-
onChange: (n) =>
|
|
1923
|
+
value: F.hour12,
|
|
1924
|
+
onChange: (n) => R((s) => ({
|
|
1922
1925
|
...s,
|
|
1923
1926
|
hour12: Number(n.target.value)
|
|
1924
1927
|
})),
|
|
@@ -1931,10 +1934,10 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1931
1934
|
"select",
|
|
1932
1935
|
{
|
|
1933
1936
|
className: a.timePickerSelect,
|
|
1934
|
-
value:
|
|
1935
|
-
onChange: (n) =>
|
|
1937
|
+
value: F.minute,
|
|
1938
|
+
onChange: (n) => R((s) => ({ ...s, minute: n.target.value })),
|
|
1936
1939
|
"aria-label": "Minute",
|
|
1937
|
-
children: Array.from({ length: 60 }, (n, s) =>
|
|
1940
|
+
children: Array.from({ length: 60 }, (n, s) => Q(s)).map(
|
|
1938
1941
|
(n) => /* @__PURE__ */ r.jsx("option", { value: n, children: n }, n)
|
|
1939
1942
|
)
|
|
1940
1943
|
}
|
|
@@ -1944,8 +1947,8 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1944
1947
|
"button",
|
|
1945
1948
|
{
|
|
1946
1949
|
type: "button",
|
|
1947
|
-
className: `${a.meridiemBtn} ${
|
|
1948
|
-
onClick: () =>
|
|
1950
|
+
className: `${a.meridiemBtn} ${F.meridiem === "AM" ? a.meridiemActive : ""}`,
|
|
1951
|
+
onClick: () => R((n) => ({ ...n, meridiem: "AM" })),
|
|
1949
1952
|
children: "AM"
|
|
1950
1953
|
}
|
|
1951
1954
|
),
|
|
@@ -1953,8 +1956,8 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1953
1956
|
"button",
|
|
1954
1957
|
{
|
|
1955
1958
|
type: "button",
|
|
1956
|
-
className: `${a.meridiemBtn} ${
|
|
1957
|
-
onClick: () =>
|
|
1959
|
+
className: `${a.meridiemBtn} ${F.meridiem === "PM" ? a.meridiemActive : ""}`,
|
|
1960
|
+
onClick: () => R((n) => ({ ...n, meridiem: "PM" })),
|
|
1958
1961
|
children: "PM"
|
|
1959
1962
|
}
|
|
1960
1963
|
)
|
|
@@ -1966,7 +1969,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1966
1969
|
{
|
|
1967
1970
|
type: "button",
|
|
1968
1971
|
className: a.timePopoverBtn,
|
|
1969
|
-
onClick: () =>
|
|
1972
|
+
onClick: () => D(!1),
|
|
1970
1973
|
children: "Cancel"
|
|
1971
1974
|
}
|
|
1972
1975
|
),
|
|
@@ -1976,8 +1979,8 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
1976
1979
|
type: "button",
|
|
1977
1980
|
className: `${a.timePopoverBtn} ${a.timePopoverOk}`,
|
|
1978
1981
|
onClick: () => {
|
|
1979
|
-
const n =
|
|
1980
|
-
|
|
1982
|
+
const n = ue(F);
|
|
1983
|
+
w({ birthTime: n }), O("birthTime", n), D(!1);
|
|
1981
1984
|
},
|
|
1982
1985
|
"aria-label": "OK",
|
|
1983
1986
|
children: /* @__PURE__ */ r.jsx(
|
|
@@ -2017,7 +2020,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2017
2020
|
type: "checkbox",
|
|
2018
2021
|
checked: o.birthTimeUnknown,
|
|
2019
2022
|
onChange: (n) => {
|
|
2020
|
-
d?.trackTimeCheckboxClicked?.(),
|
|
2023
|
+
d?.trackTimeCheckboxClicked?.(), w({
|
|
2021
2024
|
birthTimeUnknown: n.target.checked,
|
|
2022
2025
|
birthTime: n.target.checked ? "" : o.birthTime
|
|
2023
2026
|
});
|
|
@@ -2051,11 +2054,11 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2051
2054
|
type: "button",
|
|
2052
2055
|
className: a.infoBtn,
|
|
2053
2056
|
"aria-label": t("info"),
|
|
2054
|
-
"aria-expanded":
|
|
2057
|
+
"aria-expanded": ae === "place",
|
|
2055
2058
|
onClick: () => {
|
|
2056
2059
|
d?.trackInfoIconClicked?.({
|
|
2057
2060
|
fieldName: "birthPlace"
|
|
2058
|
-
}),
|
|
2061
|
+
}), le((n) => n === "place" ? null : "place");
|
|
2059
2062
|
},
|
|
2060
2063
|
children: /* @__PURE__ */ r.jsx(
|
|
2061
2064
|
"img",
|
|
@@ -2068,13 +2071,13 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2068
2071
|
)
|
|
2069
2072
|
}
|
|
2070
2073
|
),
|
|
2071
|
-
|
|
2074
|
+
ae === "place" && /* @__PURE__ */ r.jsxs("div", { className: a.tooltip, role: "tooltip", children: [
|
|
2072
2075
|
t("formBirthPlaceInfo"),
|
|
2073
2076
|
/* @__PURE__ */ r.jsx("span", { className: a.tooltipArrow, "aria-hidden": !0 })
|
|
2074
2077
|
] })
|
|
2075
2078
|
] })
|
|
2076
2079
|
] }),
|
|
2077
|
-
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref:
|
|
2080
|
+
/* @__PURE__ */ r.jsxs("div", { className: a.inputWrap, ref: W, children: [
|
|
2078
2081
|
/* @__PURE__ */ r.jsx(
|
|
2079
2082
|
"input",
|
|
2080
2083
|
{
|
|
@@ -2084,14 +2087,14 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2084
2087
|
value: o.birthPlace,
|
|
2085
2088
|
onChange: (n) => {
|
|
2086
2089
|
const s = n.target.value;
|
|
2087
|
-
|
|
2090
|
+
w({
|
|
2088
2091
|
birthPlace: s,
|
|
2089
2092
|
birthPlaceLat: void 0,
|
|
2090
2093
|
birthPlaceLng: void 0
|
|
2091
|
-
}),
|
|
2094
|
+
}), O("birthPlace", s), ie(!0);
|
|
2092
2095
|
},
|
|
2093
2096
|
onFocus: () => {
|
|
2094
|
-
d?.trackPlaceOfBirthClicked?.(),
|
|
2097
|
+
d?.trackPlaceOfBirthClicked?.(), ie(!0);
|
|
2095
2098
|
},
|
|
2096
2099
|
placeholder: t("formBirthPlacePlaceholder"),
|
|
2097
2100
|
autoComplete: "address-level2"
|
|
@@ -2106,17 +2109,17 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2106
2109
|
"aria-hidden": !0
|
|
2107
2110
|
}
|
|
2108
2111
|
) }),
|
|
2109
|
-
|
|
2112
|
+
ee && ce.length > 0 && /* @__PURE__ */ r.jsx("div", { className: a.suggestions, role: "listbox", children: ce.slice(0, 8).map((n) => /* @__PURE__ */ r.jsxs(
|
|
2110
2113
|
"button",
|
|
2111
2114
|
{
|
|
2112
2115
|
type: "button",
|
|
2113
2116
|
className: a.suggestionItem,
|
|
2114
2117
|
onClick: () => {
|
|
2115
|
-
|
|
2118
|
+
w({
|
|
2116
2119
|
birthPlace: n.description,
|
|
2117
2120
|
birthPlaceLat: n.lat,
|
|
2118
2121
|
birthPlaceLng: n.lng
|
|
2119
|
-
}), ye(),
|
|
2122
|
+
}), ye(), ie(!1);
|
|
2120
2123
|
},
|
|
2121
2124
|
children: [
|
|
2122
2125
|
/* @__PURE__ */ r.jsx("span", { className: a.suggestionMain, children: n.description }),
|
|
@@ -2125,8 +2128,8 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2125
2128
|
},
|
|
2126
2129
|
n.id
|
|
2127
2130
|
)) }),
|
|
2128
|
-
|
|
2129
|
-
|
|
2131
|
+
ee && !!fe && we && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: "Loading…" }),
|
|
2132
|
+
ee && !!fe && !we && !!_e && /* @__PURE__ */ r.jsx("div", { className: a.suggestionsHint, children: _e })
|
|
2130
2133
|
] }),
|
|
2131
2134
|
be && /* @__PURE__ */ r.jsx("p", { className: a.fieldError, children: "Please select a place from the dropdown list." })
|
|
2132
2135
|
] }),
|
|
@@ -2149,7 +2152,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2149
2152
|
type: "button",
|
|
2150
2153
|
className: `${a.choiceBtn} ${o.language_code === "hi" ? a.choiceBtnActive : ""}`,
|
|
2151
2154
|
onClick: () => {
|
|
2152
|
-
|
|
2155
|
+
w({ language_code: "hi" }), d?.trackLanguageOfReportSelected?.({
|
|
2153
2156
|
language: "hi"
|
|
2154
2157
|
});
|
|
2155
2158
|
},
|
|
@@ -2165,7 +2168,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2165
2168
|
type: "button",
|
|
2166
2169
|
className: `${a.choiceBtn} ${o.language_code === "en" ? a.choiceBtnActive : ""}`,
|
|
2167
2170
|
onClick: () => {
|
|
2168
|
-
|
|
2171
|
+
w({ language_code: "en" }), d?.trackLanguageOfReportSelected?.({
|
|
2169
2172
|
language: "en"
|
|
2170
2173
|
});
|
|
2171
2174
|
},
|
|
@@ -2181,7 +2184,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2181
2184
|
type: "button",
|
|
2182
2185
|
className: `${a.choiceBtn} ${o.language_code === "te" ? a.choiceBtnActive : ""}`,
|
|
2183
2186
|
onClick: () => {
|
|
2184
|
-
|
|
2187
|
+
w({ language_code: "te" }), d?.trackLanguageOfReportSelected?.({
|
|
2185
2188
|
language: "te"
|
|
2186
2189
|
});
|
|
2187
2190
|
},
|
|
@@ -2197,7 +2200,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2197
2200
|
type: "button",
|
|
2198
2201
|
className: `${a.choiceBtn} ${o.language_code === "ta" ? a.choiceBtnActive : ""}`,
|
|
2199
2202
|
onClick: () => {
|
|
2200
|
-
|
|
2203
|
+
w({ language_code: "ta" }), d?.trackLanguageOfReportSelected?.({
|
|
2201
2204
|
language: "ta"
|
|
2202
2205
|
});
|
|
2203
2206
|
},
|
|
@@ -2213,7 +2216,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2213
2216
|
type: "button",
|
|
2214
2217
|
className: `${a.choiceBtn} ${o.language_code === "kn" ? a.choiceBtnActive : ""}`,
|
|
2215
2218
|
onClick: () => {
|
|
2216
|
-
|
|
2219
|
+
w({ language_code: "kn" }), d?.trackLanguageOfReportSelected?.({
|
|
2217
2220
|
language: "kn"
|
|
2218
2221
|
});
|
|
2219
2222
|
},
|
|
@@ -2229,7 +2232,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2229
2232
|
type: "button",
|
|
2230
2233
|
className: `${a.choiceBtn} ${o.language_code === "gu" ? a.choiceBtnActive : ""}`,
|
|
2231
2234
|
onClick: () => {
|
|
2232
|
-
|
|
2235
|
+
w({ language_code: "gu" }), d?.trackLanguageOfReportSelected?.({
|
|
2233
2236
|
language: "gu"
|
|
2234
2237
|
});
|
|
2235
2238
|
},
|
|
@@ -2245,7 +2248,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2245
2248
|
type: "button",
|
|
2246
2249
|
className: `${a.choiceBtn} ${o.language_code === "mr" ? a.choiceBtnActive : ""}`,
|
|
2247
2250
|
onClick: () => {
|
|
2248
|
-
|
|
2251
|
+
w({ language_code: "mr" }), d?.trackLanguageOfReportSelected?.({
|
|
2249
2252
|
language: "mr"
|
|
2250
2253
|
});
|
|
2251
2254
|
},
|
|
@@ -2330,57 +2333,57 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2330
2333
|
t,
|
|
2331
2334
|
values: o,
|
|
2332
2335
|
phoneIsdCode: c,
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
showPlanSheet:
|
|
2343
|
-
confirmPlan:
|
|
2344
|
-
planSheetOpen:
|
|
2345
|
-
selectedPlan:
|
|
2336
|
+
hideOriginalPrice: f = !1,
|
|
2337
|
+
requireV1ExtraFields: k = !1,
|
|
2338
|
+
onValidationFailed: S,
|
|
2339
|
+
onProceed: x,
|
|
2340
|
+
onProceedGuidance: j,
|
|
2341
|
+
href: A,
|
|
2342
|
+
analytics: E,
|
|
2343
|
+
className: d = "",
|
|
2344
|
+
discountedPriceLabel: N,
|
|
2345
|
+
showPlanSheet: h,
|
|
2346
|
+
confirmPlan: I,
|
|
2347
|
+
planSheetOpen: p,
|
|
2348
|
+
selectedPlan: L
|
|
2346
2349
|
}) => {
|
|
2347
|
-
const C = Te(), b = C?.config.isGlobal ?? !0, g = C?.config?.variant, [$,
|
|
2348
|
-
() => ja(o, b,
|
|
2349
|
-
[o, b,
|
|
2350
|
-
),
|
|
2351
|
-
|
|
2350
|
+
const C = Te(), b = C?.config.isGlobal ?? !0, g = C?.config?.variant, [$, w] = K(!1), O = Ue(
|
|
2351
|
+
() => ja(o, b, k),
|
|
2352
|
+
[o, b, k]
|
|
2353
|
+
), H = O === null, z = g === "v1" && C?.config?.showSheet;
|
|
2354
|
+
q(() => {
|
|
2352
2355
|
if (!$) return;
|
|
2353
2356
|
const oe = window.setTimeout(() => {
|
|
2354
|
-
|
|
2357
|
+
w(!1);
|
|
2355
2358
|
}, 2200);
|
|
2356
2359
|
return () => window.clearTimeout(oe);
|
|
2357
2360
|
}, [$]);
|
|
2358
|
-
const
|
|
2359
|
-
if (oe.preventDefault(), g === "v1" && !
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
),
|
|
2361
|
+
const J = b ? N ?? t("formDiscountedPrice") : z ? "" : "₹499", G = C?.config.imageComponent ?? Le, V = (oe) => {
|
|
2362
|
+
if (oe.preventDefault(), g === "v1" && !H && E?.trackKundliDetailedClicked?.(), !H) {
|
|
2363
|
+
O && (S?.(
|
|
2364
|
+
O === "birthPlaceCoordinates" ? "birthPlace" : O
|
|
2365
|
+
), O === "birthPlaceCoordinates" && w(!0));
|
|
2363
2366
|
return;
|
|
2364
2367
|
}
|
|
2365
|
-
const
|
|
2368
|
+
const D = !!j && g === "v1" && L?.id === br, F = (o.phone ?? "").trim(), R = {
|
|
2366
2369
|
...o,
|
|
2367
|
-
phone:
|
|
2370
|
+
phone: F && `${c}-${F}`
|
|
2368
2371
|
};
|
|
2369
|
-
if (
|
|
2370
|
-
|
|
2372
|
+
if (z) {
|
|
2373
|
+
p ? I?.() : h?.(R);
|
|
2371
2374
|
return;
|
|
2372
2375
|
}
|
|
2373
|
-
|
|
2374
|
-
},
|
|
2376
|
+
E?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), D ? j(R) : x?.(R);
|
|
2377
|
+
}, ne = /* @__PURE__ */ r.jsx(
|
|
2375
2378
|
$r,
|
|
2376
2379
|
{
|
|
2377
|
-
href:
|
|
2378
|
-
disabled: g === "v1" ? !1 : !
|
|
2379
|
-
onClick:
|
|
2380
|
+
href: A,
|
|
2381
|
+
disabled: g === "v1" ? !1 : !H,
|
|
2382
|
+
onClick: V,
|
|
2380
2383
|
"aria-label": t("formPriceAria"),
|
|
2381
|
-
className: g === "v1" &&
|
|
2382
|
-
children: g === "v1" ?
|
|
2383
|
-
|
|
2384
|
+
className: g === "v1" && H ? je.ctaFilled : g === "v1" ? je.ctaButton : void 0,
|
|
2385
|
+
children: g === "v1" ? H ? /* @__PURE__ */ r.jsxs("span", { className: je.ctaFilledContent, children: [
|
|
2386
|
+
z ? t("selectPackage") : p && L ? `${t("proceedWithPlan")}${L.price}` : `${t("formProceed")} ${J}`,
|
|
2384
2387
|
/* @__PURE__ */ r.jsx(
|
|
2385
2388
|
G,
|
|
2386
2389
|
{
|
|
@@ -2395,18 +2398,18 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2395
2398
|
] }) : t("formCtaDefault") : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2396
2399
|
t("formProceed"),
|
|
2397
2400
|
" ",
|
|
2398
|
-
|
|
2401
|
+
J
|
|
2399
2402
|
] })
|
|
2400
2403
|
}
|
|
2401
2404
|
);
|
|
2402
2405
|
return /* @__PURE__ */ r.jsxs(
|
|
2403
2406
|
Ur,
|
|
2404
2407
|
{
|
|
2405
|
-
className: `${je.footerContainer} ${
|
|
2408
|
+
className: `${je.footerContainer} ${d}`,
|
|
2406
2409
|
marquee: /* @__PURE__ */ r.jsx(Gr, { children: /* @__PURE__ */ r.jsx(Pa, { t }) }),
|
|
2407
2410
|
children: [
|
|
2408
2411
|
$ && /* @__PURE__ */ r.jsx("div", { className: je.validationToast, role: "alert", "aria-live": "assertive", children: t("formFillAllFields") }),
|
|
2409
|
-
|
|
2412
|
+
ne
|
|
2410
2413
|
]
|
|
2411
2414
|
}
|
|
2412
2415
|
);
|
|
@@ -2414,9 +2417,9 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2414
2417
|
t,
|
|
2415
2418
|
languageSelector: o,
|
|
2416
2419
|
logoUrl: c = Ta,
|
|
2417
|
-
className:
|
|
2420
|
+
className: f = ""
|
|
2418
2421
|
}) => {
|
|
2419
|
-
const k = Te(), S = k?.config.isGlobal ?? !0,
|
|
2422
|
+
const k = Te(), S = k?.config.isGlobal ?? !0, x = o != null && !S;
|
|
2420
2423
|
return /* @__PURE__ */ r.jsx(
|
|
2421
2424
|
Wr,
|
|
2422
2425
|
{
|
|
@@ -2424,8 +2427,8 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2424
2427
|
logoUrl: c,
|
|
2425
2428
|
imageComponent: k?.config.imageComponent,
|
|
2426
2429
|
languageSelector: o,
|
|
2427
|
-
showLanguageSelector:
|
|
2428
|
-
className:
|
|
2430
|
+
showLanguageSelector: x,
|
|
2431
|
+
className: f
|
|
2429
2432
|
}
|
|
2430
2433
|
);
|
|
2431
2434
|
}, Sa = () => /* @__PURE__ */ r.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx(
|
|
@@ -2448,7 +2451,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2448
2451
|
) }), Ia = () => /* @__PURE__ */ r.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ r.jsx("path", { d: "M15 18l-6-6 6-6" }) }), La = () => /* @__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: [
|
|
2449
2452
|
/* @__PURE__ */ r.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
2450
2453
|
/* @__PURE__ */ r.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
2451
|
-
] }), Ba = "_overlay_18irl_2", Da = "_sheet_18irl_12", Fa = "_header_18irl_36", Oa = "_backBtn_18irl_48", Ma = "_title_18irl_66", $a = "_plansContainer_18irl_78", Ua = "_planCard_18irl_87", Ga = "_withBadgeSpacing_18irl_101", Wa = "_planCardSelected_18irl_105", Ka = "_planCardPopular_18irl_110", Ha = "_popularBadge_18irl_119", Ya = "_planCardInner_18irl_137", qa = "_planTitleRow_18irl_148", Va = "_planTitle_18irl_148", za = "_radioCircle_18irl_163", Ja = "_radioChecked_18irl_176", Qa = "_radioInner_18irl_181", Xa = "_priceRow_18irl_189", Za = "_price_18irl_189", en = "_originalPrice_18irl_202", rn = "_savingsBadge_18irl_209", tn = "_featureList_18irl_219", an = "_featureItem_18irl_228", nn = "_featureIcon_18irl_234", on = "_featureText_18irl_240", ln = "_astrologerHeading_18irl_251", sn = "_astrologerList_18irl_258", cn = "_astrologerCard_18irl_274", dn = "_astrologerAvatar_18irl_290", un = "_astrologerAvatarPlaceholder_18irl_307",
|
|
2454
|
+
] }), Ba = "_overlay_18irl_2", Da = "_sheet_18irl_12", Fa = "_header_18irl_36", Oa = "_backBtn_18irl_48", Ma = "_title_18irl_66", $a = "_plansContainer_18irl_78", Ua = "_planCard_18irl_87", Ga = "_withBadgeSpacing_18irl_101", Wa = "_planCardSelected_18irl_105", Ka = "_planCardPopular_18irl_110", Ha = "_popularBadge_18irl_119", Ya = "_planCardInner_18irl_137", qa = "_planTitleRow_18irl_148", Va = "_planTitle_18irl_148", za = "_radioCircle_18irl_163", Ja = "_radioChecked_18irl_176", Qa = "_radioInner_18irl_181", Xa = "_priceRow_18irl_189", Za = "_price_18irl_189", en = "_originalPrice_18irl_202", rn = "_savingsBadge_18irl_209", tn = "_featureList_18irl_219", an = "_featureItem_18irl_228", nn = "_featureIcon_18irl_234", on = "_featureText_18irl_240", ln = "_astrologerHeading_18irl_251", sn = "_astrologerList_18irl_258", cn = "_astrologerCard_18irl_274", dn = "_astrologerAvatar_18irl_290", un = "_astrologerAvatarPlaceholder_18irl_307", fn = "_astrologerTop_18irl_313", mn = "_astrologerBasicInfo_18irl_319", hn = "_astrologerName_18irl_326", pn = "_astrologerExp_18irl_335", gn = "_astrologerDivider_18irl_341", _n = "_planDivider_18irl_347", bn = "_astrologerCertList_18irl_354", yn = "_astrologerCertItem_18irl_360", vn = "_bullet_18irl_368", kn = "_footer_18irl_373", wn = "_proceedBtn_18irl_383", m = {
|
|
2452
2455
|
overlay: Ba,
|
|
2453
2456
|
sheet: Da,
|
|
2454
2457
|
header: Fa,
|
|
@@ -2479,10 +2482,10 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2479
2482
|
astrologerCard: cn,
|
|
2480
2483
|
astrologerAvatar: dn,
|
|
2481
2484
|
astrologerAvatarPlaceholder: un,
|
|
2482
|
-
astrologerTop:
|
|
2483
|
-
astrologerBasicInfo:
|
|
2484
|
-
astrologerName:
|
|
2485
|
-
astrologerExp:
|
|
2485
|
+
astrologerTop: fn,
|
|
2486
|
+
astrologerBasicInfo: mn,
|
|
2487
|
+
astrologerName: hn,
|
|
2488
|
+
astrologerExp: pn,
|
|
2486
2489
|
astrologerDivider: gn,
|
|
2487
2490
|
planDivider: _n,
|
|
2488
2491
|
astrologerCertList: bn,
|
|
@@ -2490,55 +2493,55 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2490
2493
|
bullet: vn,
|
|
2491
2494
|
footer: kn,
|
|
2492
2495
|
proceedBtn: wn
|
|
2493
|
-
}, xn = ({ title: t, onBack: o }) => /* @__PURE__ */ r.jsxs("div", { className:
|
|
2496
|
+
}, xn = ({ title: t, onBack: o }) => /* @__PURE__ */ r.jsxs("div", { className: m.header, children: [
|
|
2494
2497
|
/* @__PURE__ */ r.jsx(
|
|
2495
2498
|
"button",
|
|
2496
2499
|
{
|
|
2497
|
-
className:
|
|
2500
|
+
className: m.backBtn,
|
|
2498
2501
|
onClick: o,
|
|
2499
2502
|
"aria-label": "Go back",
|
|
2500
2503
|
type: "button",
|
|
2501
2504
|
children: /* @__PURE__ */ r.jsx(Ia, {})
|
|
2502
2505
|
}
|
|
2503
2506
|
),
|
|
2504
|
-
/* @__PURE__ */ r.jsx("h2", { className:
|
|
2505
|
-
] }), Pn = ({ features: t, t: o }) => /* @__PURE__ */ r.jsx("ul", { className:
|
|
2506
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2507
|
+
/* @__PURE__ */ r.jsx("h2", { className: m.title, children: t })
|
|
2508
|
+
] }), Pn = ({ features: t, t: o }) => /* @__PURE__ */ r.jsx("ul", { className: m.featureList, "aria-label": "Plan features", children: t.map((c, f) => /* @__PURE__ */ r.jsxs("li", { className: m.featureItem, children: [
|
|
2509
|
+
/* @__PURE__ */ r.jsx("span", { className: m.featureIcon, children: c.included ? /* @__PURE__ */ r.jsx(Sa, {}) : /* @__PURE__ */ r.jsx(Ea, {}) }),
|
|
2507
2510
|
/* @__PURE__ */ r.jsx(
|
|
2508
2511
|
"span",
|
|
2509
2512
|
{
|
|
2510
|
-
className: `${
|
|
2513
|
+
className: `${m.featureText} `,
|
|
2511
2514
|
children: o?.(c.text) ?? c.text
|
|
2512
2515
|
}
|
|
2513
2516
|
)
|
|
2514
|
-
] },
|
|
2515
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
2516
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2517
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
2518
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
2519
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
2517
|
+
] }, f)) }), An = ({ astrologer: t, t: o }) => /* @__PURE__ */ r.jsxs("div", { className: m.astrologerCard, children: [
|
|
2518
|
+
/* @__PURE__ */ r.jsxs("div", { className: m.astrologerTop, children: [
|
|
2519
|
+
/* @__PURE__ */ r.jsx("div", { className: m.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: m.astrologerAvatarPlaceholder, children: t.name.charAt(0) }) }),
|
|
2520
|
+
/* @__PURE__ */ r.jsxs("div", { className: m.astrologerBasicInfo, children: [
|
|
2521
|
+
/* @__PURE__ */ r.jsx("p", { className: m.astrologerName, children: o?.(t.name) ?? t.name }),
|
|
2522
|
+
/* @__PURE__ */ r.jsx("p", { className: m.astrologerExp, children: o?.(t.experience) ?? t.experience })
|
|
2520
2523
|
] })
|
|
2521
2524
|
] }),
|
|
2522
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2523
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2524
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2525
|
+
/* @__PURE__ */ r.jsx("div", { className: m.astrologerDivider }),
|
|
2526
|
+
/* @__PURE__ */ r.jsx("div", { className: m.astrologerCertList, children: t.certifications.map((c, f) => /* @__PURE__ */ r.jsxs("p", { className: m.astrologerCertItem, children: [
|
|
2527
|
+
/* @__PURE__ */ r.jsx("span", { className: m.bullet, children: "•" }),
|
|
2525
2528
|
" ",
|
|
2526
2529
|
o?.(c) ?? c
|
|
2527
|
-
] },
|
|
2528
|
-
] }), Cn = ({ label: t }) => /* @__PURE__ */ r.jsxs("div", { className:
|
|
2530
|
+
] }, f)) })
|
|
2531
|
+
] }), Cn = ({ label: t }) => /* @__PURE__ */ r.jsxs("div", { className: m.popularBadge, "aria-label": t, children: [
|
|
2529
2532
|
/* @__PURE__ */ r.jsx(La, {}),
|
|
2530
2533
|
/* @__PURE__ */ r.jsx("span", { children: t })
|
|
2531
|
-
] }), jn = ({ plan: t, isSelected: o, onSelect: c, t:
|
|
2532
|
-
const k = () => c(t.id), S = (
|
|
2533
|
-
(
|
|
2534
|
+
] }), jn = ({ plan: t, isSelected: o, onSelect: c, t: f }) => {
|
|
2535
|
+
const k = () => c(t.id), S = (x) => {
|
|
2536
|
+
(x.key === " " || x.key === "Enter") && (x.preventDefault(), c(t.id));
|
|
2534
2537
|
};
|
|
2535
2538
|
return /* @__PURE__ */ r.jsxs(
|
|
2536
2539
|
"div",
|
|
2537
2540
|
{
|
|
2538
2541
|
className: [
|
|
2539
|
-
|
|
2540
|
-
o ?
|
|
2541
|
-
o &&
|
|
2542
|
+
m.planCard,
|
|
2543
|
+
o ? m.planCardSelected : "",
|
|
2544
|
+
o && m.planCardPopular
|
|
2542
2545
|
].filter(Boolean).join(" "),
|
|
2543
2546
|
onClick: k,
|
|
2544
2547
|
role: "radio",
|
|
@@ -2547,29 +2550,29 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2547
2550
|
onKeyDown: S,
|
|
2548
2551
|
"data-plan-id": t.id,
|
|
2549
2552
|
children: [
|
|
2550
|
-
t.badge && /* @__PURE__ */ r.jsx(Cn, { label:
|
|
2551
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
2552
|
-
/* @__PURE__ */ r.jsxs("div", { className: `${
|
|
2553
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2553
|
+
t.badge && /* @__PURE__ */ r.jsx(Cn, { label: f?.(t.badge) ?? t.badge }),
|
|
2554
|
+
/* @__PURE__ */ r.jsxs("div", { className: m.planCardInner, children: [
|
|
2555
|
+
/* @__PURE__ */ r.jsxs("div", { className: `${m.planTitleRow} ${t.badge ? m.withBadgeSpacing : ""}`, children: [
|
|
2556
|
+
/* @__PURE__ */ r.jsx("span", { className: m.planTitle, children: f?.(t.title) ?? t.title }),
|
|
2554
2557
|
/* @__PURE__ */ r.jsx(
|
|
2555
2558
|
"span",
|
|
2556
2559
|
{
|
|
2557
|
-
className: `${
|
|
2560
|
+
className: `${m.radioCircle} ${o ? m.radioChecked : ""}`,
|
|
2558
2561
|
"aria-hidden": !0,
|
|
2559
|
-
children: o && /* @__PURE__ */ r.jsx("span", { className:
|
|
2562
|
+
children: o && /* @__PURE__ */ r.jsx("span", { className: m.radioInner })
|
|
2560
2563
|
}
|
|
2561
2564
|
)
|
|
2562
2565
|
] }),
|
|
2563
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
2564
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2565
|
-
t.originalPrice && /* @__PURE__ */ r.jsx("span", { className:
|
|
2566
|
-
t.savingsLabel && /* @__PURE__ */ r.jsx("span", { className:
|
|
2566
|
+
/* @__PURE__ */ r.jsxs("div", { className: m.priceRow, children: [
|
|
2567
|
+
/* @__PURE__ */ r.jsx("span", { className: m.price, children: t.price }),
|
|
2568
|
+
t.originalPrice && /* @__PURE__ */ r.jsx("span", { className: m.originalPrice, children: t.originalPrice }),
|
|
2569
|
+
t.savingsLabel && /* @__PURE__ */ r.jsx("span", { className: m.savingsBadge, children: f?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
|
|
2567
2570
|
] }),
|
|
2568
|
-
/* @__PURE__ */ r.jsx(Pn, { features: t.features, t:
|
|
2569
|
-
t.astrologers && /* @__PURE__ */ r.jsx("div", { className:
|
|
2571
|
+
/* @__PURE__ */ r.jsx(Pn, { features: t.features, t: f }),
|
|
2572
|
+
t.astrologers && /* @__PURE__ */ r.jsx("div", { className: m.planDivider }),
|
|
2570
2573
|
t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2571
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
2572
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2574
|
+
/* @__PURE__ */ r.jsx("p", { className: m.astrologerHeading, children: f?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
|
|
2575
|
+
/* @__PURE__ */ r.jsx("div", { className: m.astrologerList, role: "list", children: t.astrologers.map((x, j) => /* @__PURE__ */ r.jsx("div", { role: "listitem", children: /* @__PURE__ */ r.jsx(An, { astrologer: x, t: f }) }, j)) })
|
|
2573
2576
|
] })
|
|
2574
2577
|
] })
|
|
2575
2578
|
]
|
|
@@ -2637,27 +2640,27 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2637
2640
|
isOpen: t,
|
|
2638
2641
|
onClose: o,
|
|
2639
2642
|
selectedPlan: c,
|
|
2640
|
-
onSelectPlan:
|
|
2643
|
+
onSelectPlan: f,
|
|
2641
2644
|
plans: k,
|
|
2642
2645
|
onProceed: S,
|
|
2643
|
-
t:
|
|
2644
|
-
analytics:
|
|
2646
|
+
t: x,
|
|
2647
|
+
analytics: j
|
|
2645
2648
|
}) => {
|
|
2646
|
-
const
|
|
2647
|
-
|
|
2649
|
+
const E = Te()?.config.isGlobal ?? !0, d = k ?? Tn(E), N = c?.id || d.find((C) => C.badge)?.id || d[0]?.id || "", h = Y(null), I = Y(null), p = Y(!1);
|
|
2650
|
+
q(() => {
|
|
2648
2651
|
if (t) {
|
|
2649
2652
|
if (!c) {
|
|
2650
2653
|
const C = d.find((b) => b.badge) ?? d[0];
|
|
2651
|
-
C &&
|
|
2654
|
+
C && f(C);
|
|
2652
2655
|
}
|
|
2653
|
-
|
|
2656
|
+
p.current || (j?.trackPlanPageViewed?.(), p.current = !0);
|
|
2654
2657
|
} else
|
|
2655
|
-
|
|
2656
|
-
}, [t, d, c,
|
|
2657
|
-
const
|
|
2658
|
-
|
|
2658
|
+
p.current = !1;
|
|
2659
|
+
}, [t, d, c, f, j]);
|
|
2660
|
+
const L = () => {
|
|
2661
|
+
j?.trackPlanPageClosed?.(), o();
|
|
2659
2662
|
};
|
|
2660
|
-
return
|
|
2663
|
+
return q(() => {
|
|
2661
2664
|
if (!t) return;
|
|
2662
2665
|
const C = document.body.style.overflow;
|
|
2663
2666
|
return document.body.style.overflow = "hidden", () => {
|
|
@@ -2666,60 +2669,60 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2666
2669
|
}, [t]), t ? /* @__PURE__ */ r.jsx(
|
|
2667
2670
|
"div",
|
|
2668
2671
|
{
|
|
2669
|
-
className:
|
|
2672
|
+
className: m.overlay,
|
|
2670
2673
|
role: "dialog",
|
|
2671
2674
|
"aria-modal": "true",
|
|
2672
|
-
"aria-label":
|
|
2675
|
+
"aria-label": x?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
2673
2676
|
children: /* @__PURE__ */ r.jsxs(
|
|
2674
2677
|
"div",
|
|
2675
2678
|
{
|
|
2676
|
-
ref:
|
|
2677
|
-
className:
|
|
2679
|
+
ref: h,
|
|
2680
|
+
className: m.sheet,
|
|
2678
2681
|
children: [
|
|
2679
2682
|
/* @__PURE__ */ r.jsx(
|
|
2680
2683
|
xn,
|
|
2681
2684
|
{
|
|
2682
|
-
title:
|
|
2683
|
-
onBack:
|
|
2685
|
+
title: x?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
2686
|
+
onBack: L
|
|
2684
2687
|
}
|
|
2685
2688
|
),
|
|
2686
2689
|
/* @__PURE__ */ r.jsx(
|
|
2687
2690
|
"div",
|
|
2688
2691
|
{
|
|
2689
|
-
ref:
|
|
2690
|
-
className:
|
|
2692
|
+
ref: I,
|
|
2693
|
+
className: m.plansContainer,
|
|
2691
2694
|
role: "radiogroup",
|
|
2692
2695
|
"aria-label": "Kundli plans",
|
|
2693
2696
|
children: d.map((C) => /* @__PURE__ */ r.jsx(
|
|
2694
2697
|
jn,
|
|
2695
2698
|
{
|
|
2696
2699
|
plan: C,
|
|
2697
|
-
isSelected: C.id ===
|
|
2698
|
-
t:
|
|
2700
|
+
isSelected: C.id === N,
|
|
2701
|
+
t: x,
|
|
2699
2702
|
onSelect: (b) => {
|
|
2700
2703
|
const g = d.find(($) => $.id === b);
|
|
2701
|
-
g && (
|
|
2704
|
+
g && (j?.trackPlanSelected?.({
|
|
2702
2705
|
planId: g.id,
|
|
2703
2706
|
planName: g.title
|
|
2704
|
-
}),
|
|
2707
|
+
}), f(g));
|
|
2705
2708
|
}
|
|
2706
2709
|
},
|
|
2707
2710
|
C.id
|
|
2708
2711
|
))
|
|
2709
2712
|
}
|
|
2710
2713
|
),
|
|
2711
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2714
|
+
/* @__PURE__ */ r.jsx("div", { className: m.footer, children: /* @__PURE__ */ r.jsx(
|
|
2712
2715
|
"button",
|
|
2713
2716
|
{
|
|
2714
|
-
className:
|
|
2717
|
+
className: m.proceedBtn,
|
|
2715
2718
|
disabled: !c,
|
|
2716
2719
|
onClick: () => {
|
|
2717
|
-
c && (
|
|
2720
|
+
c && (j?.trackPlanProceedClicked?.({
|
|
2718
2721
|
planId: c.id,
|
|
2719
2722
|
planName: c.title
|
|
2720
2723
|
}), S(c), o());
|
|
2721
2724
|
},
|
|
2722
|
-
children: c ?
|
|
2725
|
+
children: c ? x?.("planProceedToPayment") ?? c.price + "Proceed to Payment" : "Select a plan"
|
|
2723
2726
|
}
|
|
2724
2727
|
) })
|
|
2725
2728
|
]
|
|
@@ -2727,7 +2730,7 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2727
2730
|
)
|
|
2728
2731
|
}
|
|
2729
2732
|
) : null;
|
|
2730
|
-
}, Sn = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", En = (t, o) =>
|
|
2733
|
+
}, Sn = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", En = (t, o) => mr[t]?.[o] ?? o, In = {
|
|
2731
2734
|
fullName: "",
|
|
2732
2735
|
phone: "",
|
|
2733
2736
|
gender: "",
|
|
@@ -2743,168 +2746,165 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2743
2746
|
className: t = "",
|
|
2744
2747
|
locale: o,
|
|
2745
2748
|
showLanguageSelector: c = !0,
|
|
2746
|
-
onBack:
|
|
2749
|
+
onBack: f,
|
|
2747
2750
|
initialValues: k,
|
|
2748
2751
|
onProceed: S,
|
|
2749
|
-
onProceedGuidance:
|
|
2750
|
-
proceedHref:
|
|
2751
|
-
originalPriceLabel:
|
|
2752
|
-
discountedPriceLabel:
|
|
2752
|
+
onProceedGuidance: x,
|
|
2753
|
+
proceedHref: j,
|
|
2754
|
+
originalPriceLabel: A,
|
|
2755
|
+
discountedPriceLabel: E,
|
|
2753
2756
|
atlasSearchLocalities: d,
|
|
2754
|
-
analytics:
|
|
2757
|
+
analytics: N
|
|
2755
2758
|
}) => {
|
|
2756
|
-
const
|
|
2757
|
-
|
|
2759
|
+
const h = Te(), I = qr(), p = h !== null, L = p ? h.locale : o, C = L ?? I?.locale ?? "en", [b, g] = K(C), $ = p ? h.locale : b, w = p ? h.setLocale : g, [O, H] = K(!1), z = Y(null), J = Y(L), G = Y(
|
|
2760
|
+
I?.locale
|
|
2758
2761
|
);
|
|
2759
|
-
|
|
2762
|
+
q(() => {
|
|
2760
2763
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
2761
2764
|
}, []);
|
|
2762
|
-
const
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
}, [
|
|
2766
|
-
if (
|
|
2767
|
-
const
|
|
2768
|
-
|
|
2769
|
-
}, [
|
|
2770
|
-
const [
|
|
2765
|
+
const V = (v) => En($, v);
|
|
2766
|
+
q(() => {
|
|
2767
|
+
L && J.current !== L && w(L), J.current = L;
|
|
2768
|
+
}, [L, w]), q(() => {
|
|
2769
|
+
if (L) return;
|
|
2770
|
+
const v = I?.locale;
|
|
2771
|
+
v && G.current !== v && w(v), G.current = v;
|
|
2772
|
+
}, [I?.locale, L, w]);
|
|
2773
|
+
const [ne, oe] = K({
|
|
2771
2774
|
...In,
|
|
2772
2775
|
...k,
|
|
2773
2776
|
phone: k?.phone ?? ""
|
|
2774
|
-
}),
|
|
2775
|
-
|
|
2777
|
+
}), D = p ? h?.config.isGlobal ?? !0 : !0, [F, R] = K(
|
|
2778
|
+
D ? "+1" : "+91"
|
|
2776
2779
|
);
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
}, [
|
|
2780
|
-
const
|
|
2781
|
-
|
|
2782
|
-
if (!
|
|
2783
|
-
const
|
|
2784
|
-
|
|
2780
|
+
q(() => {
|
|
2781
|
+
R(D ? "+1" : "+91");
|
|
2782
|
+
}, [D]);
|
|
2783
|
+
const Q = p ? h.formValues : ne, he = p ? h.setFormValues : oe, pe = p ? h.goToPage : f, ue = p ? h.onProceed : S, W = p ? h.onProceedGuidance : x, ee = p ? h.config.proceedHref : j, ie = p ? h.config.originalPriceLabel : A, ae = p ? h.config.discountedPriceLabel : E, le = p ? h.config.showLanguageSelector ?? !0 : c, se = (p ? h?.config?.analytics : N) ?? N;
|
|
2784
|
+
q(() => {
|
|
2785
|
+
if (!O) return;
|
|
2786
|
+
const v = (n) => {
|
|
2787
|
+
z.current && !z.current.contains(n.target) && H(!1);
|
|
2785
2788
|
};
|
|
2786
|
-
return document.addEventListener("mousedown",
|
|
2787
|
-
}, [
|
|
2788
|
-
const [ge,
|
|
2789
|
-
|
|
2789
|
+
return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
|
|
2790
|
+
}, [O]);
|
|
2791
|
+
const [ge, fe] = K(!1), [X, be] = K(null), ce = Y(null), we = Ne((v) => {
|
|
2792
|
+
ce.current = v, fe(!0);
|
|
2790
2793
|
}, []), _e = Ne(() => {
|
|
2791
|
-
if (
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
const x = { ...le.current, _selectedPlan: z };
|
|
2799
|
-
z.id === br && ee ? ee(x) : V?.(x), ue(!1), le.current = null;
|
|
2800
|
-
}, [z, V, ee]), xe = p?.config.imageComponent ?? Le, ye = pe ? /* @__PURE__ */ r.jsxs("div", { className: fe.langDropdownWrap, ref: J, children: [
|
|
2794
|
+
if (se?.trackPlanProceedClicked?.({
|
|
2795
|
+
planId: X.id,
|
|
2796
|
+
planName: X.title
|
|
2797
|
+
}), !ce.current || !X) return;
|
|
2798
|
+
const v = { ...ce.current, _selectedPlan: X };
|
|
2799
|
+
X.id === br && W ? W(v) : ue?.(v), fe(!1), ce.current = null;
|
|
2800
|
+
}, [X, ue, W]), xe = h?.config.imageComponent ?? Le, ye = le ? /* @__PURE__ */ r.jsxs("div", { className: me.langDropdownWrap, ref: z, children: [
|
|
2801
2801
|
/* @__PURE__ */ r.jsxs(
|
|
2802
2802
|
"button",
|
|
2803
2803
|
{
|
|
2804
2804
|
type: "button",
|
|
2805
|
-
className:
|
|
2805
|
+
className: me.langTrigger,
|
|
2806
2806
|
onClick: () => {
|
|
2807
|
-
|
|
2807
|
+
se?.trackLanguageClickedFe?.({ language: $ }), H((v) => !v);
|
|
2808
2808
|
},
|
|
2809
|
-
"aria-expanded":
|
|
2809
|
+
"aria-expanded": O,
|
|
2810
2810
|
"aria-haspopup": "listbox",
|
|
2811
2811
|
id: "kundli-form-lang",
|
|
2812
|
-
"aria-label":
|
|
2812
|
+
"aria-label": V("language"),
|
|
2813
2813
|
children: [
|
|
2814
2814
|
/* @__PURE__ */ r.jsx(
|
|
2815
2815
|
xe,
|
|
2816
2816
|
{
|
|
2817
2817
|
src: Sn,
|
|
2818
2818
|
alt: "",
|
|
2819
|
-
className:
|
|
2819
|
+
className: me.langIcon,
|
|
2820
2820
|
width: 16,
|
|
2821
2821
|
height: 16,
|
|
2822
2822
|
loading: "eager"
|
|
2823
2823
|
}
|
|
2824
2824
|
),
|
|
2825
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2825
|
+
/* @__PURE__ */ r.jsx("span", { className: me.langLabel, children: lr[$] })
|
|
2826
2826
|
]
|
|
2827
2827
|
}
|
|
2828
2828
|
),
|
|
2829
|
-
|
|
2829
|
+
O && /* @__PURE__ */ r.jsx(
|
|
2830
2830
|
"ul",
|
|
2831
2831
|
{
|
|
2832
|
-
className:
|
|
2832
|
+
className: me.langMenu,
|
|
2833
2833
|
role: "listbox",
|
|
2834
2834
|
"aria-labelledby": "kundli-form-lang",
|
|
2835
2835
|
"aria-activedescendant": `kundli-form-lang-option-${$}`,
|
|
2836
|
-
children:
|
|
2836
|
+
children: fr.map((v) => /* @__PURE__ */ r.jsx(
|
|
2837
2837
|
"li",
|
|
2838
2838
|
{
|
|
2839
|
-
id: `kundli-form-lang-option-${
|
|
2839
|
+
id: `kundli-form-lang-option-${v}`,
|
|
2840
2840
|
role: "option",
|
|
2841
|
-
"aria-selected":
|
|
2842
|
-
className:
|
|
2841
|
+
"aria-selected": v === $,
|
|
2842
|
+
className: me.langOption,
|
|
2843
2843
|
onClick: () => {
|
|
2844
|
-
|
|
2844
|
+
se?.trackLanguageChangedFe?.({ newLanguage: v }), w(v), H(!1);
|
|
2845
2845
|
},
|
|
2846
|
-
children: lr[
|
|
2846
|
+
children: lr[v]
|
|
2847
2847
|
},
|
|
2848
|
-
|
|
2848
|
+
v
|
|
2849
2849
|
))
|
|
2850
2850
|
}
|
|
2851
2851
|
)
|
|
2852
2852
|
] }) : null;
|
|
2853
|
-
return /* @__PURE__ */ r.jsxs("div", { className: `${
|
|
2853
|
+
return /* @__PURE__ */ r.jsxs("div", { className: `${me.container} ${t}`, children: [
|
|
2854
2854
|
/* @__PURE__ */ r.jsx(
|
|
2855
2855
|
Ra,
|
|
2856
2856
|
{
|
|
2857
|
-
t:
|
|
2858
|
-
logoUrl:
|
|
2857
|
+
t: V,
|
|
2858
|
+
logoUrl: p ? h.config.logoUrl : void 0,
|
|
2859
2859
|
languageSelector: ye,
|
|
2860
|
-
className:
|
|
2860
|
+
className: me.kundliHeaderNoBorder
|
|
2861
2861
|
}
|
|
2862
2862
|
),
|
|
2863
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2864
|
-
/* @__PURE__ */ r.jsxs("main", { className:
|
|
2865
|
-
/* @__PURE__ */ r.jsx(ut, { t:
|
|
2863
|
+
/* @__PURE__ */ r.jsx("div", { className: me.headerSeparator, "aria-hidden": !0 }),
|
|
2864
|
+
/* @__PURE__ */ r.jsxs("main", { className: me.main, children: [
|
|
2865
|
+
/* @__PURE__ */ r.jsx(ut, { t: V, onBack: pe }),
|
|
2866
2866
|
/* @__PURE__ */ r.jsx(
|
|
2867
|
-
|
|
2867
|
+
pa,
|
|
2868
2868
|
{
|
|
2869
|
-
t:
|
|
2870
|
-
values:
|
|
2869
|
+
t: V,
|
|
2870
|
+
values: Q,
|
|
2871
2871
|
onChange: he,
|
|
2872
2872
|
atlasSearchLocalities: d,
|
|
2873
|
-
phoneIsdCode:
|
|
2874
|
-
onPhoneIsdCodeChange:
|
|
2873
|
+
phoneIsdCode: F,
|
|
2874
|
+
onPhoneIsdCodeChange: R
|
|
2875
2875
|
}
|
|
2876
2876
|
)
|
|
2877
2877
|
] }),
|
|
2878
2878
|
/* @__PURE__ */ r.jsx(
|
|
2879
2879
|
Na,
|
|
2880
2880
|
{
|
|
2881
|
-
t:
|
|
2882
|
-
values:
|
|
2883
|
-
phoneIsdCode:
|
|
2884
|
-
onProceed:
|
|
2885
|
-
onProceedGuidance:
|
|
2886
|
-
href:
|
|
2887
|
-
originalPriceLabel:
|
|
2888
|
-
discountedPriceLabel:
|
|
2889
|
-
analytics:
|
|
2881
|
+
t: V,
|
|
2882
|
+
values: Q,
|
|
2883
|
+
phoneIsdCode: F,
|
|
2884
|
+
onProceed: ue,
|
|
2885
|
+
onProceedGuidance: W,
|
|
2886
|
+
href: ee,
|
|
2887
|
+
originalPriceLabel: ie,
|
|
2888
|
+
discountedPriceLabel: ae,
|
|
2889
|
+
analytics: se,
|
|
2890
2890
|
showPlanSheet: we,
|
|
2891
2891
|
confirmPlan: _e,
|
|
2892
2892
|
planSheetOpen: ge,
|
|
2893
|
-
selectedPlan:
|
|
2893
|
+
selectedPlan: X
|
|
2894
2894
|
}
|
|
2895
2895
|
),
|
|
2896
|
-
|
|
2896
|
+
h?.config.variant === "v1" && /* @__PURE__ */ r.jsx(
|
|
2897
2897
|
Rn,
|
|
2898
2898
|
{
|
|
2899
2899
|
isOpen: ge,
|
|
2900
|
-
onClose: () =>
|
|
2901
|
-
selectedPlan:
|
|
2900
|
+
onClose: () => fe(!1),
|
|
2901
|
+
selectedPlan: X,
|
|
2902
2902
|
onSelectPlan: be,
|
|
2903
|
-
onProceed: () => {
|
|
2904
|
-
_e?.();
|
|
2903
|
+
onProceed: (v) => {
|
|
2904
|
+
_e?.(v);
|
|
2905
2905
|
},
|
|
2906
|
-
t:
|
|
2907
|
-
analytics:
|
|
2906
|
+
t: V,
|
|
2907
|
+
analytics: se
|
|
2908
2908
|
}
|
|
2909
2909
|
)
|
|
2910
2910
|
] });
|
|
@@ -2945,25 +2945,18 @@ const _r = 10, He = (t) => t.replace(/\D/g, ""), dr = (t) => He(t).slice(0, _r),
|
|
|
2945
2945
|
/** Legacy / alias: when landing page is viewed */
|
|
2946
2946
|
kundli_page_view: "kundli_page_view",
|
|
2947
2947
|
/** Legacy / alias: when L1 form page is viewed (same as l1_page_opened) */
|
|
2948
|
-
kundli_form_view: "kundli_form_view"
|
|
2949
|
-
/** 3-SKU: sample report viewed for the 1-question plan */
|
|
2950
|
-
one_question_view_sample_report_clicked: "1_question_view_sample_report_clicked",
|
|
2951
|
-
one_question_view_sample_report_closed: "1_question_view_sample_report_closed",
|
|
2952
|
-
/** Sample image modal events */
|
|
2953
|
-
kundli_view_sample_image_clicked: "kundli_view_sample_image_clicked",
|
|
2954
|
-
kundli_view_sample_image_closed: "kundli_view_sample_image_closed"
|
|
2948
|
+
kundli_form_view: "kundli_form_view"
|
|
2955
2949
|
};
|
|
2956
2950
|
export {
|
|
2957
|
-
Ia as C,
|
|
2958
2951
|
Le as D,
|
|
2959
2952
|
ut as F,
|
|
2960
2953
|
Dn as I,
|
|
2961
2954
|
Gn as K,
|
|
2962
2955
|
lr as L,
|
|
2963
2956
|
br as P,
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2957
|
+
fr as S,
|
|
2958
|
+
pa as U,
|
|
2959
|
+
pr as a,
|
|
2967
2960
|
Ke as b,
|
|
2968
2961
|
Un as c,
|
|
2969
2962
|
Mn as d,
|
|
@@ -2979,7 +2972,7 @@ export {
|
|
|
2979
2972
|
Rn as n,
|
|
2980
2973
|
Fn as r,
|
|
2981
2974
|
ot as s,
|
|
2982
|
-
|
|
2975
|
+
mr as t,
|
|
2983
2976
|
qr as u
|
|
2984
2977
|
};
|
|
2985
|
-
//# sourceMappingURL=analytics-
|
|
2978
|
+
//# sourceMappingURL=analytics-BwvFb8DQ.js.map
|