@srimandir/kundli-generator 7.1.0 → 7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{analytics-hg37leiF.js → analytics-C_LPWd_f.js} +737 -707
- package/dist/analytics-C_LPWd_f.js.map +1 -0
- package/dist/analytics.d.ts +37 -1
- package/dist/components/KundliForm/sections/ProceedFooter/ProceedFooter.d.ts +1 -0
- package/dist/components/KundliForm/sections/UserInfoFormSection/useAtlasPlacesAutocomplete.d.ts +5 -5
- package/dist/components/KundliForm/sections/UserInfoFormSection/useGooglePlacesAutocomplete.d.ts +8 -8
- package/dist/components/KundliPage/KundliContext.d.ts +5 -0
- package/dist/components/KundliPage/KundliPage.d.ts +12 -0
- package/dist/components/KundliPage/KundliPageV1.d.ts +13 -0
- package/dist/components/KundliPage/sections/KundliTableSection/KundliTableSection.constants.d.ts +32 -0
- package/dist/components/KundliPage/sections/KundliTableSection/SampleReportsSection.d.ts +10 -0
- package/dist/components/KundliPage/sections/KundliTableSection/index.d.ts +3 -0
- package/dist/components/KundliPage/sections/PremiumReportOverview/PremiumReportOverview.d.ts +6 -0
- 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 +1 -0
- package/dist/components/ThreeSkuPlanBottomSheet/AstrologerSection.d.ts +8 -0
- package/dist/components/ThreeSkuPlanBottomSheet/PlanFeatureList.d.ts +7 -0
- package/dist/components/ThreeSkuPlanBottomSheet/PlanSelectorStrip.d.ts +11 -0
- package/dist/components/ThreeSkuPlanBottomSheet/ProceedButton.d.ts +9 -0
- package/dist/components/ThreeSkuPlanBottomSheet/QuestionChips.d.ts +7 -0
- package/dist/components/ThreeSkuPlanBottomSheet/QuestionInput.d.ts +15 -0
- package/dist/components/ThreeSkuPlanBottomSheet/SheetHeader.d.ts +6 -0
- package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuAstrologerCard.d.ts +6 -0
- package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuAstrologerProfiles.d.ts +15 -0
- package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuPlanBottomSheet.d.ts +3 -0
- package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuPlanBottomSheet.icons.d.ts +3 -0
- package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuPlanBottomSheet.types.d.ts +51 -0
- package/dist/components/ThreeSkuPlanBottomSheet/constants.d.ts +87 -0
- package/dist/components/ThreeSkuPlanBottomSheet/index.d.ts +4 -0
- package/dist/criticalCss-D7-LVEq2.js +1922 -0
- package/dist/criticalCss-D7-LVEq2.js.map +1 -0
- package/dist/form-entry.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/kundli-generator.js +58 -23
- package/dist/kundli-generator.js.map +1 -1
- package/dist/page-entry.js +2 -2
- package/dist/style.css +1 -1
- package/dist/utils/keyframeStyles.d.ts +10 -0
- package/dist/utils/utmBanner.d.ts +23 -0
- package/package.json +2 -2
- package/dist/analytics-hg37leiF.js.map +0 -1
- package/dist/criticalCss-VFyqntMr.js +0 -1200
- package/dist/criticalCss-VFyqntMr.js.map +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Qe, { useContext as Xe, createContext as hr, useState as $, useRef as K, useEffect as z, useMemo as Je, useCallback as be } from "react";
|
|
2
2
|
import { FormSectionHeader as $r, FooterCTAButton as Ur, FooterShell as Gr, CircularMarquee as Kr, footerShellStyles as je, PageHeader as Wr } from "@srimandir/astrology-common";
|
|
3
|
-
var
|
|
3
|
+
var Ke = { exports: {} }, De = {};
|
|
4
4
|
var lr;
|
|
5
5
|
function Hr() {
|
|
6
|
-
if (lr) return
|
|
6
|
+
if (lr) return De;
|
|
7
7
|
lr = 1;
|
|
8
|
-
var t =
|
|
9
|
-
function
|
|
10
|
-
var x,
|
|
11
|
-
|
|
12
|
-
for (x in v) d.call(v, x) && !w.hasOwnProperty(x) && (
|
|
13
|
-
if (
|
|
14
|
-
return { $$typeof: o, type:
|
|
8
|
+
var t = Qe, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
|
+
function h(T, v, O) {
|
|
10
|
+
var x, E = {}, u = null, I = null;
|
|
11
|
+
O !== void 0 && (u = "" + O), v.key !== void 0 && (u = "" + v.key), v.ref !== void 0 && (I = v.ref);
|
|
12
|
+
for (x in v) d.call(v, x) && !w.hasOwnProperty(x) && (E[x] = v[x]);
|
|
13
|
+
if (T && T.defaultProps) for (x in v = T.defaultProps, v) E[x] === void 0 && (E[x] = v[x]);
|
|
14
|
+
return { $$typeof: o, type: T, key: u, ref: I, props: E, _owner: _.current };
|
|
15
15
|
}
|
|
16
|
-
return
|
|
16
|
+
return De.Fragment = c, De.jsx = h, De.jsxs = h, De;
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var Oe = {};
|
|
19
19
|
var cr;
|
|
20
20
|
function Yr() {
|
|
21
21
|
return cr || (cr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
-
var t =
|
|
22
|
+
var t = Qe, o = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), d = /* @__PURE__ */ Symbol.for("react.fragment"), _ = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), h = /* @__PURE__ */ Symbol.for("react.provider"), T = /* @__PURE__ */ Symbol.for("react.context"), v = /* @__PURE__ */ Symbol.for("react.forward_ref"), O = /* @__PURE__ */ Symbol.for("react.suspense"), x = /* @__PURE__ */ Symbol.for("react.suspense_list"), E = /* @__PURE__ */ Symbol.for("react.memo"), u = /* @__PURE__ */ Symbol.for("react.lazy"), I = /* @__PURE__ */ Symbol.for("react.offscreen"), b = Symbol.iterator, F = "@@iterator";
|
|
23
23
|
function p(e) {
|
|
24
24
|
if (e === null || typeof e != "object")
|
|
25
25
|
return null;
|
|
@@ -29,41 +29,41 @@ function Yr() {
|
|
|
29
29
|
var m = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
30
30
|
function y(e) {
|
|
31
31
|
{
|
|
32
|
-
for (var i = arguments.length,
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), f = 1; f < i; f++)
|
|
33
|
+
l[f - 1] = arguments[f];
|
|
34
|
+
J("error", e, l);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function J(e, i, l) {
|
|
38
38
|
{
|
|
39
39
|
var f = m.ReactDebugCurrentFrame, N = f.getStackAddendum();
|
|
40
|
-
N !== "" && (i += "%s",
|
|
41
|
-
var L =
|
|
40
|
+
N !== "" && (i += "%s", l = l.concat([N]));
|
|
41
|
+
var L = l.map(function(P) {
|
|
42
42
|
return String(P);
|
|
43
43
|
});
|
|
44
44
|
L.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, L);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
var
|
|
47
|
+
var V = !1, W = !1, B = !1, M = !1, A = !1, S;
|
|
48
48
|
S = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
|
-
function
|
|
50
|
-
return !!(typeof e == "string" || typeof e == "function" || e === d || e === w || A || e ===
|
|
49
|
+
function ee(e) {
|
|
50
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === w || A || e === _ || e === O || e === x || M || e === I || V || W || B || typeof e == "object" && e !== null && (e.$$typeof === u || e.$$typeof === E || e.$$typeof === h || e.$$typeof === T || e.$$typeof === v || // This needs to include all possible module reference object
|
|
51
51
|
// types supported by any Flight configuration anywhere since
|
|
52
52
|
// we don't know which Flight build this will end up being used
|
|
53
53
|
// with.
|
|
54
54
|
e.$$typeof === S || e.getModuleId !== void 0));
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function U(e, i, l) {
|
|
57
57
|
var f = e.displayName;
|
|
58
58
|
if (f)
|
|
59
59
|
return f;
|
|
60
60
|
var N = i.displayName || i.name || "";
|
|
61
|
-
return N !== "" ?
|
|
61
|
+
return N !== "" ? l + "(" + N + ")" : l;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function D(e) {
|
|
64
64
|
return e.displayName || "Context";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function j(e) {
|
|
67
67
|
if (e == null)
|
|
68
68
|
return null;
|
|
69
69
|
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -73,34 +73,34 @@ function Yr() {
|
|
|
73
73
|
switch (e) {
|
|
74
74
|
case d:
|
|
75
75
|
return "Fragment";
|
|
76
|
-
case
|
|
76
|
+
case c:
|
|
77
77
|
return "Portal";
|
|
78
78
|
case w:
|
|
79
79
|
return "Profiler";
|
|
80
|
-
case
|
|
80
|
+
case _:
|
|
81
81
|
return "StrictMode";
|
|
82
|
-
case
|
|
82
|
+
case O:
|
|
83
83
|
return "Suspense";
|
|
84
84
|
case x:
|
|
85
85
|
return "SuspenseList";
|
|
86
86
|
}
|
|
87
87
|
if (typeof e == "object")
|
|
88
88
|
switch (e.$$typeof) {
|
|
89
|
-
case
|
|
89
|
+
case T:
|
|
90
90
|
var i = e;
|
|
91
|
-
return
|
|
92
|
-
case
|
|
93
|
-
var
|
|
94
|
-
return
|
|
91
|
+
return D(i) + ".Consumer";
|
|
92
|
+
case h:
|
|
93
|
+
var l = e;
|
|
94
|
+
return D(l._context) + ".Provider";
|
|
95
95
|
case v:
|
|
96
|
-
return
|
|
97
|
-
case
|
|
96
|
+
return U(e, e.render, "ForwardRef");
|
|
97
|
+
case E:
|
|
98
98
|
var f = e.displayName || null;
|
|
99
|
-
return f !== null ? f :
|
|
99
|
+
return f !== null ? f : j(e.type) || "Memo";
|
|
100
100
|
case u: {
|
|
101
101
|
var N = e, L = N._payload, P = N._init;
|
|
102
102
|
try {
|
|
103
|
-
return
|
|
103
|
+
return j(P(L));
|
|
104
104
|
} catch {
|
|
105
105
|
return null;
|
|
106
106
|
}
|
|
@@ -108,18 +108,18 @@ function Yr() {
|
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
111
|
-
var
|
|
112
|
-
function
|
|
111
|
+
var H = Object.assign, Y = 0, te, ne, oe, ue, me, re, Q;
|
|
112
|
+
function ge() {
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
function
|
|
114
|
+
ge.__reactDisabledLog = !0;
|
|
115
|
+
function ve() {
|
|
116
116
|
{
|
|
117
|
-
if (
|
|
118
|
-
|
|
117
|
+
if (Y === 0) {
|
|
118
|
+
te = console.log, ne = console.info, oe = console.warn, ue = console.error, me = console.group, re = console.groupCollapsed, Q = console.groupEnd;
|
|
119
119
|
var e = {
|
|
120
120
|
configurable: !0,
|
|
121
121
|
enumerable: !0,
|
|
122
|
-
value:
|
|
122
|
+
value: ge,
|
|
123
123
|
writable: !0
|
|
124
124
|
};
|
|
125
125
|
Object.defineProperties(console, {
|
|
@@ -132,77 +132,77 @@ function Yr() {
|
|
|
132
132
|
groupEnd: e
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
Y++;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function ye() {
|
|
139
139
|
{
|
|
140
|
-
if (
|
|
140
|
+
if (Y--, Y === 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: H({}, e, {
|
|
148
|
+
value: te
|
|
149
149
|
}),
|
|
150
|
-
info:
|
|
151
|
-
value: ae
|
|
152
|
-
}),
|
|
153
|
-
warn: z({}, e, {
|
|
150
|
+
info: H({}, e, {
|
|
154
151
|
value: ne
|
|
155
152
|
}),
|
|
156
|
-
|
|
157
|
-
value: se
|
|
158
|
-
}),
|
|
159
|
-
group: z({}, e, {
|
|
153
|
+
warn: H({}, e, {
|
|
160
154
|
value: oe
|
|
161
155
|
}),
|
|
162
|
-
|
|
163
|
-
value:
|
|
156
|
+
error: H({}, e, {
|
|
157
|
+
value: ue
|
|
158
|
+
}),
|
|
159
|
+
group: H({}, e, {
|
|
160
|
+
value: me
|
|
161
|
+
}),
|
|
162
|
+
groupCollapsed: H({}, e, {
|
|
163
|
+
value: re
|
|
164
164
|
}),
|
|
165
|
-
groupEnd:
|
|
166
|
-
value:
|
|
165
|
+
groupEnd: H({}, e, {
|
|
166
|
+
value: Q
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
Y < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
var
|
|
174
|
-
function
|
|
173
|
+
var ie = m.ReactCurrentDispatcher, se;
|
|
174
|
+
function le(e, i, l) {
|
|
175
175
|
{
|
|
176
|
-
if (
|
|
176
|
+
if (se === void 0)
|
|
177
177
|
try {
|
|
178
178
|
throw Error();
|
|
179
179
|
} catch (N) {
|
|
180
180
|
var f = N.stack.trim().match(/\n( *(at )?)/);
|
|
181
|
-
|
|
181
|
+
se = f && f[1] || "";
|
|
182
182
|
}
|
|
183
183
|
return `
|
|
184
|
-
` +
|
|
184
|
+
` + se + e;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var fe = !1, X;
|
|
188
188
|
{
|
|
189
|
-
var
|
|
190
|
-
|
|
189
|
+
var Te = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
|
+
X = new Te();
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
if (!e ||
|
|
192
|
+
function Z(e, i) {
|
|
193
|
+
if (!e || fe)
|
|
194
194
|
return "";
|
|
195
195
|
{
|
|
196
|
-
var
|
|
197
|
-
if (
|
|
198
|
-
return
|
|
196
|
+
var l = X.get(e);
|
|
197
|
+
if (l !== void 0)
|
|
198
|
+
return l;
|
|
199
199
|
}
|
|
200
200
|
var f;
|
|
201
|
-
|
|
201
|
+
fe = !0;
|
|
202
202
|
var N = Error.prepareStackTrace;
|
|
203
203
|
Error.prepareStackTrace = void 0;
|
|
204
204
|
var L;
|
|
205
|
-
L =
|
|
205
|
+
L = ie.current, ie.current = null, ve();
|
|
206
206
|
try {
|
|
207
207
|
if (i) {
|
|
208
208
|
var P = function() {
|
|
@@ -215,146 +215,146 @@ function Yr() {
|
|
|
215
215
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
216
216
|
try {
|
|
217
217
|
Reflect.construct(P, []);
|
|
218
|
-
} catch (
|
|
219
|
-
f =
|
|
218
|
+
} catch (de) {
|
|
219
|
+
f = de;
|
|
220
220
|
}
|
|
221
221
|
Reflect.construct(e, [], P);
|
|
222
222
|
} else {
|
|
223
223
|
try {
|
|
224
224
|
P.call();
|
|
225
|
-
} catch (
|
|
226
|
-
f =
|
|
225
|
+
} catch (de) {
|
|
226
|
+
f = de;
|
|
227
227
|
}
|
|
228
228
|
e.call(P.prototype);
|
|
229
229
|
}
|
|
230
230
|
} else {
|
|
231
231
|
try {
|
|
232
232
|
throw Error();
|
|
233
|
-
} catch (
|
|
234
|
-
f =
|
|
233
|
+
} catch (de) {
|
|
234
|
+
f = de;
|
|
235
235
|
}
|
|
236
236
|
e();
|
|
237
237
|
}
|
|
238
|
-
} catch (
|
|
239
|
-
if (
|
|
240
|
-
for (var k =
|
|
241
|
-
`),
|
|
242
|
-
`),
|
|
243
|
-
|
|
244
|
-
for (;
|
|
245
|
-
if (k[
|
|
246
|
-
if (
|
|
238
|
+
} catch (de) {
|
|
239
|
+
if (de && f && typeof de.stack == "string") {
|
|
240
|
+
for (var k = de.stack.split(`
|
|
241
|
+
`), ae = f.stack.split(`
|
|
242
|
+
`), G = k.length - 1, q = ae.length - 1; G >= 1 && q >= 0 && k[G] !== ae[q]; )
|
|
243
|
+
q--;
|
|
244
|
+
for (; G >= 1 && q >= 0; G--, q--)
|
|
245
|
+
if (k[G] !== ae[q]) {
|
|
246
|
+
if (G !== 1 || q !== 1)
|
|
247
247
|
do
|
|
248
|
-
if (
|
|
249
|
-
var
|
|
250
|
-
` + k[
|
|
251
|
-
return e.displayName &&
|
|
248
|
+
if (G--, q--, q < 0 || k[G] !== ae[q]) {
|
|
249
|
+
var pe = `
|
|
250
|
+
` + k[G].replace(" at new ", " at ");
|
|
251
|
+
return e.displayName && pe.includes("<anonymous>") && (pe = pe.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, pe), pe;
|
|
252
252
|
}
|
|
253
|
-
while (
|
|
253
|
+
while (G >= 1 && q >= 0);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
} finally {
|
|
258
|
-
|
|
258
|
+
fe = !1, ie.current = L, ye(), Error.prepareStackTrace = N;
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
return typeof e == "function" &&
|
|
260
|
+
var Ee = e ? e.displayName || e.name : "", Ce = Ee ? le(Ee) : "";
|
|
261
|
+
return typeof e == "function" && X.set(e, Ce), Ce;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
264
|
-
return
|
|
263
|
+
function ke(e, i, l) {
|
|
264
|
+
return Z(e, !1);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function we(e) {
|
|
267
267
|
var i = e.prototype;
|
|
268
268
|
return !!(i && i.isReactComponent);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function xe(e, i, l) {
|
|
271
271
|
if (e == null)
|
|
272
272
|
return "";
|
|
273
273
|
if (typeof e == "function")
|
|
274
|
-
return
|
|
274
|
+
return Z(e, we(e));
|
|
275
275
|
if (typeof e == "string")
|
|
276
|
-
return
|
|
276
|
+
return le(e);
|
|
277
277
|
switch (e) {
|
|
278
|
-
case
|
|
279
|
-
return
|
|
278
|
+
case O:
|
|
279
|
+
return le("Suspense");
|
|
280
280
|
case x:
|
|
281
|
-
return
|
|
281
|
+
return le("SuspenseList");
|
|
282
282
|
}
|
|
283
283
|
if (typeof e == "object")
|
|
284
284
|
switch (e.$$typeof) {
|
|
285
285
|
case v:
|
|
286
|
-
return
|
|
287
|
-
case
|
|
288
|
-
return
|
|
286
|
+
return ke(e.render);
|
|
287
|
+
case E:
|
|
288
|
+
return xe(e.type, i, l);
|
|
289
289
|
case u: {
|
|
290
290
|
var f = e, N = f._payload, L = f._init;
|
|
291
291
|
try {
|
|
292
|
-
return
|
|
292
|
+
return xe(L(N), i, l);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
return "";
|
|
298
298
|
}
|
|
299
|
-
var
|
|
300
|
-
function
|
|
299
|
+
var ce = Object.prototype.hasOwnProperty, C = {}, Pe = m.ReactDebugCurrentFrame;
|
|
300
|
+
function Ae(e) {
|
|
301
301
|
if (e) {
|
|
302
|
-
var i = e._owner,
|
|
303
|
-
|
|
302
|
+
var i = e._owner, l = xe(e.type, e._source, i ? i.type : null);
|
|
303
|
+
Pe.setExtraStackFrame(l);
|
|
304
304
|
} else
|
|
305
|
-
|
|
305
|
+
Pe.setExtraStackFrame(null);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function Me(e, i, l, f, N) {
|
|
308
308
|
{
|
|
309
|
-
var L = Function.call.bind(
|
|
309
|
+
var L = Function.call.bind(ce);
|
|
310
310
|
for (var P in e)
|
|
311
311
|
if (L(e, P)) {
|
|
312
312
|
var k = void 0;
|
|
313
313
|
try {
|
|
314
314
|
if (typeof e[P] != "function") {
|
|
315
|
-
var
|
|
316
|
-
throw
|
|
315
|
+
var ae = Error((f || "React class") + ": " + l + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
316
|
+
throw ae.name = "Invariant Violation", ae;
|
|
317
317
|
}
|
|
318
|
-
k = e[P](i, P, f,
|
|
319
|
-
} catch (
|
|
320
|
-
k =
|
|
318
|
+
k = e[P](i, P, f, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
|
+
} catch (G) {
|
|
320
|
+
k = G;
|
|
321
321
|
}
|
|
322
|
-
k && !(k instanceof Error) && (
|
|
322
|
+
k && !(k instanceof Error) && (Ae(N), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", f || "React class", l, P, typeof k), Ae(null)), k instanceof Error && !(k.message in C) && (C[k.message] = !0, Ae(N), y("Failed %s type: %s", l, k.message), Ae(null));
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
var
|
|
327
|
-
function
|
|
328
|
-
return
|
|
326
|
+
var $e = Array.isArray;
|
|
327
|
+
function Ne(e) {
|
|
328
|
+
return $e(e);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function Be(e) {
|
|
331
331
|
{
|
|
332
|
-
var i = typeof Symbol == "function" && Symbol.toStringTag,
|
|
333
|
-
return
|
|
332
|
+
var i = typeof Symbol == "function" && Symbol.toStringTag, l = i && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
333
|
+
return l;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Ue(e) {
|
|
337
337
|
try {
|
|
338
|
-
return
|
|
338
|
+
return a(e), !1;
|
|
339
339
|
} catch {
|
|
340
340
|
return !0;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function a(e) {
|
|
344
344
|
return "" + e;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
if (
|
|
348
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
346
|
+
function s(e) {
|
|
347
|
+
if (Ue(e))
|
|
348
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), a(e);
|
|
349
349
|
}
|
|
350
|
-
var
|
|
350
|
+
var R = m.ReactCurrentOwner, he = {
|
|
351
351
|
key: !0,
|
|
352
352
|
ref: !0,
|
|
353
353
|
__self: !0,
|
|
354
354
|
__source: !0
|
|
355
|
-
},
|
|
355
|
+
}, Se, Ge;
|
|
356
356
|
function xr(e) {
|
|
357
|
-
if (
|
|
357
|
+
if (ce.call(e, "ref")) {
|
|
358
358
|
var i = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
359
359
|
if (i && i.isReactWarning)
|
|
360
360
|
return !1;
|
|
@@ -362,7 +362,7 @@ function Yr() {
|
|
|
362
362
|
return e.ref !== void 0;
|
|
363
363
|
}
|
|
364
364
|
function Pr(e) {
|
|
365
|
-
if (
|
|
365
|
+
if (ce.call(e, "key")) {
|
|
366
366
|
var i = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
367
367
|
if (i && i.isReactWarning)
|
|
368
368
|
return !1;
|
|
@@ -370,38 +370,38 @@ function Yr() {
|
|
|
370
370
|
return e.key !== void 0;
|
|
371
371
|
}
|
|
372
372
|
function Ar(e, i) {
|
|
373
|
-
typeof e.ref == "string" &&
|
|
373
|
+
typeof e.ref == "string" && R.current;
|
|
374
374
|
}
|
|
375
375
|
function Cr(e, i) {
|
|
376
376
|
{
|
|
377
|
-
var
|
|
378
|
-
|
|
377
|
+
var l = function() {
|
|
378
|
+
Se || (Se = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
|
|
379
379
|
};
|
|
380
|
-
|
|
381
|
-
get:
|
|
380
|
+
l.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
381
|
+
get: l,
|
|
382
382
|
configurable: !0
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
function jr(e, i) {
|
|
387
387
|
{
|
|
388
|
-
var
|
|
389
|
-
|
|
388
|
+
var l = function() {
|
|
389
|
+
Ge || (Ge = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
|
|
390
390
|
};
|
|
391
|
-
|
|
392
|
-
get:
|
|
391
|
+
l.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
392
|
+
get: l,
|
|
393
393
|
configurable: !0
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
var Tr = function(e, i,
|
|
397
|
+
var Tr = function(e, i, l, f, N, L, P) {
|
|
398
398
|
var k = {
|
|
399
399
|
// This tag allows us to uniquely identify this as a React Element
|
|
400
400
|
$$typeof: o,
|
|
401
401
|
// Built-in properties that belong on the element
|
|
402
402
|
type: e,
|
|
403
403
|
key: i,
|
|
404
|
-
ref:
|
|
404
|
+
ref: l,
|
|
405
405
|
props: P,
|
|
406
406
|
// Record the component responsible for creating this element.
|
|
407
407
|
_owner: L
|
|
@@ -423,41 +423,41 @@ function Yr() {
|
|
|
423
423
|
value: N
|
|
424
424
|
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
|
425
425
|
};
|
|
426
|
-
function Nr(e, i,
|
|
426
|
+
function Nr(e, i, l, f, N) {
|
|
427
427
|
{
|
|
428
|
-
var L, P = {}, k = null,
|
|
429
|
-
|
|
428
|
+
var L, P = {}, k = null, ae = null;
|
|
429
|
+
l !== void 0 && (s(l), k = "" + l), Pr(i) && (s(i.key), k = "" + i.key), xr(i) && (ae = i.ref, Ar(i, N));
|
|
430
430
|
for (L in i)
|
|
431
|
-
|
|
431
|
+
ce.call(i, L) && !he.hasOwnProperty(L) && (P[L] = i[L]);
|
|
432
432
|
if (e && e.defaultProps) {
|
|
433
|
-
var
|
|
434
|
-
for (L in
|
|
435
|
-
P[L] === void 0 && (P[L] =
|
|
433
|
+
var G = e.defaultProps;
|
|
434
|
+
for (L in G)
|
|
435
|
+
P[L] === void 0 && (P[L] = G[L]);
|
|
436
436
|
}
|
|
437
|
-
if (k ||
|
|
438
|
-
var
|
|
439
|
-
k && Cr(P,
|
|
437
|
+
if (k || ae) {
|
|
438
|
+
var q = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
439
|
+
k && Cr(P, q), ae && jr(P, q);
|
|
440
440
|
}
|
|
441
|
-
return Tr(e, k,
|
|
441
|
+
return Tr(e, k, ae, N, f, R.current, P);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
var
|
|
445
|
-
function
|
|
444
|
+
var Ye = m.ReactCurrentOwner, rr = m.ReactDebugCurrentFrame;
|
|
445
|
+
function Re(e) {
|
|
446
446
|
if (e) {
|
|
447
|
-
var i = e._owner,
|
|
448
|
-
rr.setExtraStackFrame(
|
|
447
|
+
var i = e._owner, l = xe(e.type, e._source, i ? i.type : null);
|
|
448
|
+
rr.setExtraStackFrame(l);
|
|
449
449
|
} else
|
|
450
450
|
rr.setExtraStackFrame(null);
|
|
451
451
|
}
|
|
452
|
-
var
|
|
453
|
-
|
|
454
|
-
function
|
|
452
|
+
var qe;
|
|
453
|
+
qe = !1;
|
|
454
|
+
function Ve(e) {
|
|
455
455
|
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
456
456
|
}
|
|
457
457
|
function tr() {
|
|
458
458
|
{
|
|
459
|
-
if (
|
|
460
|
-
var e =
|
|
459
|
+
if (Ye.current) {
|
|
460
|
+
var e = j(Ye.current.type);
|
|
461
461
|
if (e)
|
|
462
462
|
return `
|
|
463
463
|
|
|
@@ -474,10 +474,10 @@ Check the render method of \`` + e + "`.";
|
|
|
474
474
|
{
|
|
475
475
|
var i = tr();
|
|
476
476
|
if (!i) {
|
|
477
|
-
var
|
|
478
|
-
|
|
477
|
+
var l = typeof e == "string" ? e : e.displayName || e.name;
|
|
478
|
+
l && (i = `
|
|
479
479
|
|
|
480
|
-
Check the top-level render call using <` +
|
|
480
|
+
Check the top-level render call using <` + l + ">.");
|
|
481
481
|
}
|
|
482
482
|
return i;
|
|
483
483
|
}
|
|
@@ -487,30 +487,30 @@ Check the top-level render call using <` + s + ">.");
|
|
|
487
487
|
if (!e._store || e._store.validated || e.key != null)
|
|
488
488
|
return;
|
|
489
489
|
e._store.validated = !0;
|
|
490
|
-
var
|
|
491
|
-
if (ar[
|
|
490
|
+
var l = Rr(i);
|
|
491
|
+
if (ar[l])
|
|
492
492
|
return;
|
|
493
|
-
ar[
|
|
493
|
+
ar[l] = !0;
|
|
494
494
|
var f = "";
|
|
495
|
-
e && e._owner && e._owner !==
|
|
495
|
+
e && e._owner && e._owner !== Ye.current && (f = " It was passed a child from " + j(e._owner.type) + "."), Re(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, f), Re(null);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
function or(e, i) {
|
|
499
499
|
{
|
|
500
500
|
if (typeof e != "object")
|
|
501
501
|
return;
|
|
502
|
-
if (
|
|
503
|
-
for (var
|
|
504
|
-
var f = e[
|
|
505
|
-
|
|
502
|
+
if (Ne(e))
|
|
503
|
+
for (var l = 0; l < e.length; l++) {
|
|
504
|
+
var f = e[l];
|
|
505
|
+
Ve(f) && nr(f, i);
|
|
506
506
|
}
|
|
507
|
-
else if (
|
|
507
|
+
else if (Ve(e))
|
|
508
508
|
e._store && (e._store.validated = !0);
|
|
509
509
|
else if (e) {
|
|
510
510
|
var N = p(e);
|
|
511
511
|
if (typeof N == "function" && N !== e.entries)
|
|
512
512
|
for (var L = N.call(e), P; !(P = L.next()).done; )
|
|
513
|
-
|
|
513
|
+
Ve(P.value) && nr(P.value, i);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
@@ -519,21 +519,21 @@ Check the top-level render call using <` + s + ">.");
|
|
|
519
519
|
var i = e.type;
|
|
520
520
|
if (i == null || typeof i == "string")
|
|
521
521
|
return;
|
|
522
|
-
var
|
|
522
|
+
var l;
|
|
523
523
|
if (typeof i == "function")
|
|
524
|
-
|
|
524
|
+
l = i.propTypes;
|
|
525
525
|
else if (typeof i == "object" && (i.$$typeof === v || // Note: Memo only checks outer props here.
|
|
526
526
|
// Inner props are checked in the reconciler.
|
|
527
|
-
i.$$typeof ===
|
|
528
|
-
|
|
527
|
+
i.$$typeof === E))
|
|
528
|
+
l = i.propTypes;
|
|
529
529
|
else
|
|
530
530
|
return;
|
|
531
|
-
if (
|
|
532
|
-
var f =
|
|
533
|
-
|
|
534
|
-
} else if (i.PropTypes !== void 0 && !
|
|
535
|
-
|
|
536
|
-
var N =
|
|
531
|
+
if (l) {
|
|
532
|
+
var f = j(i);
|
|
533
|
+
Me(l, e.props, "prop", f, e);
|
|
534
|
+
} else if (i.PropTypes !== void 0 && !qe) {
|
|
535
|
+
qe = !0;
|
|
536
|
+
var N = j(i);
|
|
537
537
|
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
|
|
538
538
|
}
|
|
539
539
|
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -541,74 +541,74 @@ Check the top-level render call using <` + s + ">.");
|
|
|
541
541
|
}
|
|
542
542
|
function Ir(e) {
|
|
543
543
|
{
|
|
544
|
-
for (var i = Object.keys(e.props),
|
|
545
|
-
var f = i[
|
|
544
|
+
for (var i = Object.keys(e.props), l = 0; l < i.length; l++) {
|
|
545
|
+
var f = i[l];
|
|
546
546
|
if (f !== "children" && f !== "key") {
|
|
547
|
-
|
|
547
|
+
Re(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), Re(null);
|
|
548
548
|
break;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
e.ref !== null && (
|
|
551
|
+
e.ref !== null && (Re(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), Re(null));
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
var ir = {};
|
|
555
|
-
function sr(e, i,
|
|
555
|
+
function sr(e, i, l, f, N, L) {
|
|
556
556
|
{
|
|
557
|
-
var P =
|
|
557
|
+
var P = ee(e);
|
|
558
558
|
if (!P) {
|
|
559
559
|
var k = "";
|
|
560
560
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
561
|
-
var
|
|
562
|
-
|
|
563
|
-
var
|
|
564
|
-
e === null ?
|
|
561
|
+
var ae = Sr();
|
|
562
|
+
ae ? k += ae : k += tr();
|
|
563
|
+
var G;
|
|
564
|
+
e === null ? G = "null" : Ne(e) ? G = "array" : e !== void 0 && e.$$typeof === o ? (G = "<" + (j(e.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : G = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, k);
|
|
565
565
|
}
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
return
|
|
566
|
+
var q = Nr(e, i, l, N, L);
|
|
567
|
+
if (q == null)
|
|
568
|
+
return q;
|
|
569
569
|
if (P) {
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
570
|
+
var pe = i.children;
|
|
571
|
+
if (pe !== void 0)
|
|
572
572
|
if (f)
|
|
573
|
-
if (
|
|
574
|
-
for (var
|
|
575
|
-
or(
|
|
576
|
-
Object.freeze && Object.freeze(
|
|
573
|
+
if (Ne(pe)) {
|
|
574
|
+
for (var Ee = 0; Ee < pe.length; Ee++)
|
|
575
|
+
or(pe[Ee], e);
|
|
576
|
+
Object.freeze && Object.freeze(pe);
|
|
577
577
|
} else
|
|
578
578
|
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
579
579
|
else
|
|
580
|
-
or(
|
|
580
|
+
or(pe, e);
|
|
581
581
|
}
|
|
582
|
-
if (
|
|
583
|
-
var Ce =
|
|
582
|
+
if (ce.call(i, "key")) {
|
|
583
|
+
var Ce = j(e), de = Object.keys(i).filter(function(Mr) {
|
|
584
584
|
return Mr !== "key";
|
|
585
|
-
}),
|
|
586
|
-
if (!ir[Ce +
|
|
587
|
-
var Fr =
|
|
585
|
+
}), ze = de.length > 0 ? "{key: someKey, " + de.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
|
+
if (!ir[Ce + ze]) {
|
|
587
|
+
var Fr = de.length > 0 ? "{" + de.join(": ..., ") + ": ...}" : "{}";
|
|
588
588
|
y(`A props object containing a "key" prop is being spread into JSX:
|
|
589
589
|
let props = %s;
|
|
590
590
|
<%s {...props} />
|
|
591
591
|
React keys must be passed directly to JSX without using spread:
|
|
592
592
|
let props = %s;
|
|
593
|
-
<%s key={someKey} {...props} />`,
|
|
593
|
+
<%s key={someKey} {...props} />`, ze, Ce, Fr, Ce), ir[Ce + ze] = !0;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
return e === d ? Ir(
|
|
596
|
+
return e === d ? Ir(q) : Er(q), q;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
function Lr(e, i,
|
|
600
|
-
return sr(e, i,
|
|
599
|
+
function Lr(e, i, l) {
|
|
600
|
+
return sr(e, i, l, !0);
|
|
601
601
|
}
|
|
602
|
-
function Br(e, i,
|
|
603
|
-
return sr(e, i,
|
|
602
|
+
function Br(e, i, l) {
|
|
603
|
+
return sr(e, i, l, !1);
|
|
604
604
|
}
|
|
605
605
|
var Dr = Br, Or = Lr;
|
|
606
|
-
|
|
607
|
-
})()),
|
|
606
|
+
Oe.Fragment = d, Oe.jsx = Dr, Oe.jsxs = Or;
|
|
607
|
+
})()), Oe;
|
|
608
608
|
}
|
|
609
609
|
var dr;
|
|
610
610
|
function qr() {
|
|
611
|
-
return dr || (dr = 1, process.env.NODE_ENV === "production" ?
|
|
611
|
+
return dr || (dr = 1, process.env.NODE_ENV === "production" ? Ke.exports = Hr() : Ke.exports = Yr()), Ke.exports;
|
|
612
612
|
}
|
|
613
613
|
var r = qr();
|
|
614
614
|
const gr = ["en", "hi"], ur = {
|
|
@@ -1050,13 +1050,13 @@ const gr = ["en", "hi"], ur = {
|
|
|
1050
1050
|
locale: t,
|
|
1051
1051
|
children: o
|
|
1052
1052
|
}) => {
|
|
1053
|
-
const d = { locale: t, t: (
|
|
1053
|
+
const d = { locale: t, t: (_) => _r[t]?.[_] ?? _ };
|
|
1054
1054
|
return /* @__PURE__ */ r.jsx(br.Provider, { value: d, children: o });
|
|
1055
1055
|
};
|
|
1056
1056
|
function Vr() {
|
|
1057
|
-
return
|
|
1057
|
+
return Xe(br);
|
|
1058
1058
|
}
|
|
1059
|
-
const zr = "_container_1e1th_1", Jr = "_main_1e1th_7", Qr = "_kundliHeaderNoBorder_1e1th_12", Xr = "_headerSeparator_1e1th_16", Zr = "_langDropdownWrap_1e1th_21", et = "_langTrigger_1e1th_25", rt = "_langIcon_1e1th_37", tt = "_langLabel_1e1th_44", at = "_langMenu_1e1th_49", nt = "_langOption_1e1th_55",
|
|
1059
|
+
const zr = "_container_1e1th_1", Jr = "_main_1e1th_7", Qr = "_kundliHeaderNoBorder_1e1th_12", Xr = "_headerSeparator_1e1th_16", Zr = "_langDropdownWrap_1e1th_21", et = "_langTrigger_1e1th_25", rt = "_langIcon_1e1th_37", tt = "_langLabel_1e1th_44", at = "_langMenu_1e1th_49", nt = "_langOption_1e1th_55", _e = {
|
|
1060
1060
|
container: zr,
|
|
1061
1061
|
main: Jr,
|
|
1062
1062
|
kundliHeaderNoBorder: Qr,
|
|
@@ -1067,15 +1067,15 @@ const zr = "_container_1e1th_1", Jr = "_main_1e1th_7", Qr = "_kundliHeaderNoBord
|
|
|
1067
1067
|
langLabel: tt,
|
|
1068
1068
|
langMenu: at,
|
|
1069
1069
|
langOption: nt
|
|
1070
|
-
},
|
|
1071
|
-
const { priority: o, fetchPriority:
|
|
1072
|
-
return
|
|
1070
|
+
}, He = (t) => {
|
|
1071
|
+
const { priority: o, fetchPriority: c, width: d, height: _, ...w } = t;
|
|
1072
|
+
return Qe.createElement("img", {
|
|
1073
1073
|
...w,
|
|
1074
1074
|
width: d ?? 1,
|
|
1075
|
-
height:
|
|
1075
|
+
height: _ ?? 1,
|
|
1076
1076
|
decoding: "async",
|
|
1077
1077
|
loading: w.loading ?? (o ? "eager" : "lazy"),
|
|
1078
|
-
...
|
|
1078
|
+
...c && { fetchPriority: c }
|
|
1079
1079
|
});
|
|
1080
1080
|
};
|
|
1081
1081
|
function ot(t) {
|
|
@@ -1119,7 +1119,7 @@ function st() {
|
|
|
1119
1119
|
function lt(t) {
|
|
1120
1120
|
it(yr, t);
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1122
|
+
const Ze = hr(null), ct = {
|
|
1123
1123
|
fullName: "",
|
|
1124
1124
|
phone: "",
|
|
1125
1125
|
gender: "",
|
|
@@ -1132,16 +1132,16 @@ const Xe = hr(null), ct = {
|
|
|
1132
1132
|
}, Gn = ({
|
|
1133
1133
|
locale: t,
|
|
1134
1134
|
showLanguageSelector: o = !0,
|
|
1135
|
-
showSheet:
|
|
1135
|
+
showSheet: c,
|
|
1136
1136
|
userId: d,
|
|
1137
|
-
isGlobal:
|
|
1137
|
+
isGlobal: _,
|
|
1138
1138
|
variant: w,
|
|
1139
|
-
googleMapsApiKey:
|
|
1140
|
-
atlasSearchLocalities:
|
|
1139
|
+
googleMapsApiKey: h,
|
|
1140
|
+
atlasSearchLocalities: T,
|
|
1141
1141
|
googleMapsAutocompleteEnabled: v,
|
|
1142
|
-
logoUrl:
|
|
1142
|
+
logoUrl: O,
|
|
1143
1143
|
reportImageUrl: x,
|
|
1144
|
-
reportImagePriority:
|
|
1144
|
+
reportImagePriority: E,
|
|
1145
1145
|
backgroundImagePriority: u,
|
|
1146
1146
|
universityLogoUrls: I,
|
|
1147
1147
|
sampleReportHref: b,
|
|
@@ -1149,45 +1149,46 @@ const Xe = hr(null), ct = {
|
|
|
1149
1149
|
ctaHref: p,
|
|
1150
1150
|
onCtaClick: m,
|
|
1151
1151
|
onBack: y,
|
|
1152
|
-
readMoreReviewsHref:
|
|
1153
|
-
onProceed:
|
|
1154
|
-
proceedHref:
|
|
1152
|
+
readMoreReviewsHref: J,
|
|
1153
|
+
onProceed: V,
|
|
1154
|
+
proceedHref: W,
|
|
1155
1155
|
originalPriceLabel: B,
|
|
1156
1156
|
discountedPriceLabel: M,
|
|
1157
1157
|
discountPillLabel: A,
|
|
1158
1158
|
analytics: S,
|
|
1159
|
-
onProceedGuidance:
|
|
1160
|
-
onLocaleChange:
|
|
1161
|
-
imageComponent:
|
|
1162
|
-
|
|
1159
|
+
onProceedGuidance: ee,
|
|
1160
|
+
onLocaleChange: U,
|
|
1161
|
+
imageComponent: D = He,
|
|
1162
|
+
resolvedUtmBannerImageUrl: j,
|
|
1163
|
+
children: H
|
|
1163
1164
|
}) => {
|
|
1164
|
-
const [
|
|
1165
|
-
|
|
1166
|
-
const
|
|
1167
|
-
|
|
1168
|
-
}, []),
|
|
1169
|
-
lt(
|
|
1170
|
-
}, [
|
|
1171
|
-
if (
|
|
1172
|
-
|
|
1165
|
+
const [Y, te] = $("landing"), [ne, oe] = $(t ?? "en"), [ue, me] = $(ct), re = K(!0);
|
|
1166
|
+
z(() => {
|
|
1167
|
+
const ie = st();
|
|
1168
|
+
ie && oe(ie);
|
|
1169
|
+
}, []), z(() => {
|
|
1170
|
+
lt(ne);
|
|
1171
|
+
}, [ne]), z(() => {
|
|
1172
|
+
if (re.current) {
|
|
1173
|
+
re.current = !1;
|
|
1173
1174
|
return;
|
|
1174
1175
|
}
|
|
1175
|
-
|
|
1176
|
-
}, [
|
|
1177
|
-
const
|
|
1176
|
+
U?.(ne);
|
|
1177
|
+
}, [ne, U]);
|
|
1178
|
+
const Q = Je(
|
|
1178
1179
|
() => ({
|
|
1179
1180
|
locale: t,
|
|
1180
1181
|
showLanguageSelector: o,
|
|
1181
|
-
showSheet:
|
|
1182
|
+
showSheet: c,
|
|
1182
1183
|
userId: d,
|
|
1183
|
-
isGlobal:
|
|
1184
|
+
isGlobal: _,
|
|
1184
1185
|
variant: w,
|
|
1185
|
-
googleMapsApiKey:
|
|
1186
|
-
atlasSearchLocalities:
|
|
1186
|
+
googleMapsApiKey: h,
|
|
1187
|
+
atlasSearchLocalities: T,
|
|
1187
1188
|
googleMapsAutocompleteEnabled: v,
|
|
1188
|
-
logoUrl:
|
|
1189
|
+
logoUrl: O,
|
|
1189
1190
|
reportImageUrl: x,
|
|
1190
|
-
reportImagePriority:
|
|
1191
|
+
reportImagePriority: E,
|
|
1191
1192
|
backgroundImagePriority: u,
|
|
1192
1193
|
universityLogoUrls: I,
|
|
1193
1194
|
sampleReportHref: b,
|
|
@@ -1195,30 +1196,31 @@ const Xe = hr(null), ct = {
|
|
|
1195
1196
|
ctaHref: p,
|
|
1196
1197
|
onCtaClick: m,
|
|
1197
1198
|
onBack: y,
|
|
1198
|
-
readMoreReviewsHref:
|
|
1199
|
-
onProceed:
|
|
1200
|
-
proceedHref:
|
|
1199
|
+
readMoreReviewsHref: J,
|
|
1200
|
+
onProceed: V,
|
|
1201
|
+
proceedHref: W,
|
|
1201
1202
|
originalPriceLabel: B,
|
|
1202
1203
|
discountedPriceLabel: M,
|
|
1203
1204
|
discountPillLabel: A,
|
|
1204
1205
|
analytics: S,
|
|
1205
|
-
onProceedGuidance:
|
|
1206
|
-
onLocaleChange:
|
|
1207
|
-
imageComponent:
|
|
1206
|
+
onProceedGuidance: ee,
|
|
1207
|
+
onLocaleChange: U,
|
|
1208
|
+
imageComponent: D,
|
|
1209
|
+
resolvedUtmBannerImageUrl: j
|
|
1208
1210
|
}),
|
|
1209
1211
|
[
|
|
1210
1212
|
t,
|
|
1211
1213
|
o,
|
|
1212
|
-
|
|
1214
|
+
c,
|
|
1213
1215
|
d,
|
|
1214
|
-
g,
|
|
1215
|
-
w,
|
|
1216
1216
|
_,
|
|
1217
|
-
|
|
1217
|
+
w,
|
|
1218
|
+
h,
|
|
1219
|
+
T,
|
|
1218
1220
|
v,
|
|
1219
|
-
|
|
1221
|
+
O,
|
|
1220
1222
|
x,
|
|
1221
|
-
|
|
1223
|
+
E,
|
|
1222
1224
|
u,
|
|
1223
1225
|
I,
|
|
1224
1226
|
b,
|
|
@@ -1226,43 +1228,44 @@ const Xe = hr(null), ct = {
|
|
|
1226
1228
|
p,
|
|
1227
1229
|
m,
|
|
1228
1230
|
y,
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1231
|
+
J,
|
|
1232
|
+
V,
|
|
1233
|
+
W,
|
|
1232
1234
|
B,
|
|
1233
1235
|
M,
|
|
1234
1236
|
A,
|
|
1235
1237
|
S,
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1238
|
+
ee,
|
|
1239
|
+
U,
|
|
1240
|
+
D,
|
|
1241
|
+
j
|
|
1239
1242
|
]
|
|
1240
|
-
),
|
|
1241
|
-
|
|
1242
|
-
}, [
|
|
1243
|
-
|
|
1244
|
-
}, [
|
|
1243
|
+
), ge = be(() => {
|
|
1244
|
+
te("form");
|
|
1245
|
+
}, [Q.analytics]), ve = be(() => {
|
|
1246
|
+
te("landing"), Q.onBack?.();
|
|
1247
|
+
}, [Q.onBack]), ye = Je(
|
|
1245
1248
|
() => ({
|
|
1246
|
-
view:
|
|
1247
|
-
locale:
|
|
1248
|
-
setLocale:
|
|
1249
|
-
config:
|
|
1250
|
-
formValues:
|
|
1251
|
-
setFormValues:
|
|
1252
|
-
goToForm:
|
|
1253
|
-
goToPage:
|
|
1254
|
-
onProceed:
|
|
1255
|
-
onProceedGuidance:
|
|
1249
|
+
view: Y,
|
|
1250
|
+
locale: ne,
|
|
1251
|
+
setLocale: oe,
|
|
1252
|
+
config: Q,
|
|
1253
|
+
formValues: ue,
|
|
1254
|
+
setFormValues: me,
|
|
1255
|
+
goToForm: ge,
|
|
1256
|
+
goToPage: ve,
|
|
1257
|
+
onProceed: Q.onProceed,
|
|
1258
|
+
onProceedGuidance: Q.onProceedGuidance
|
|
1256
1259
|
}),
|
|
1257
|
-
[
|
|
1260
|
+
[Y, ne, Q, ue, ge, ve]
|
|
1258
1261
|
);
|
|
1259
|
-
return /* @__PURE__ */ r.jsx(
|
|
1262
|
+
return /* @__PURE__ */ r.jsx(Ze.Provider, { value: ye, children: H });
|
|
1260
1263
|
};
|
|
1261
|
-
function
|
|
1262
|
-
return
|
|
1264
|
+
function Le() {
|
|
1265
|
+
return Xe(Ze);
|
|
1263
1266
|
}
|
|
1264
1267
|
function Kn() {
|
|
1265
|
-
const t =
|
|
1268
|
+
const t = Xe(Ze);
|
|
1266
1269
|
if (!t)
|
|
1267
1270
|
throw new Error("useKundliContextOrThrow must be used within KundliProvider");
|
|
1268
1271
|
return t;
|
|
@@ -1273,7 +1276,7 @@ const dt = "_header_19172_1", ut = "_centered_19172_8", mr = {
|
|
|
1273
1276
|
}, mt = ({
|
|
1274
1277
|
t,
|
|
1275
1278
|
onBack: o,
|
|
1276
|
-
className:
|
|
1279
|
+
className: c = "",
|
|
1277
1280
|
align: d = "left"
|
|
1278
1281
|
}) => /* @__PURE__ */ r.jsx(
|
|
1279
1282
|
$r,
|
|
@@ -1282,7 +1285,7 @@ const dt = "_header_19172_1", ut = "_centered_19172_8", mr = {
|
|
|
1282
1285
|
subtitle: t("formSubtitle"),
|
|
1283
1286
|
onBack: o,
|
|
1284
1287
|
backAriaLabel: t("back"),
|
|
1285
|
-
className: `${mr.header} ${d === "center" ? mr.centered : ""} ${
|
|
1288
|
+
className: `${mr.header} ${d === "center" ? mr.centered : ""} ${c}`
|
|
1286
1289
|
}
|
|
1287
1290
|
), ft = "_wrap_119w3_1", pt = "_card_119w3_5", ht = "_cardInner_119w3_12", gt = "_field_119w3_44", _t = "_labelRow_119w3_48", bt = "_label_119w3_48", yt = "_req_119w3_57", vt = "_help_119w3_61", kt = "_choiceRow_119w3_68", wt = "_choiceBtn_119w3_74", xt = "_choiceBtnActive_119w3_99", Pt = "_infoBtn_119w3_105", At = "_infoImg_119w3_122", Ct = "_infoWrap_119w3_128", jt = "_tooltip_119w3_134", Tt = "_tooltipArrow_119w3_150", Nt = "_inputWrap_119w3_161", St = "_isdWrap_119w3_165", Rt = "_phoneInputGroup_119w3_169", Et = "_isdSelectWrap_119w3_178", It = "_isdSelectTrigger_119w3_197", Lt = "_isdDropdown_119w3_214", Bt = "_isdSearchWrap_119w3_229", Dt = "_isdSearchInput_119w3_237", Ot = "_isdOption_119w3_255", Ft = "_isdOptionActive_119w3_275", Mt = "_isdCountryName_119w3_281", $t = "_isdCountryCode_119w3_288", Ut = "_isdNoResult_119w3_295", Gt = "_suggestions_119w3_302", Kt = "_suggestionItem_119w3_315", Wt = "_suggestionMain_119w3_333", Ht = "_suggestionSecondary_119w3_339", Yt = "_suggestionsHint_119w3_344", qt = "_timePopover_119w3_366", Vt = "_timePickerRow_119w3_382", zt = "_timePickerSelect_119w3_388", Jt = "_timePickerColon_119w3_404", Qt = "_meridiemToggle_119w3_412", Xt = "_meridiemBtn_119w3_421", Zt = "_meridiemActive_119w3_436", ea = "_timePopoverActions_119w3_441", ra = "_timePopoverBtn_119w3_447", ta = "_timePopoverOk_119w3_466", aa = "_input_119w3_161", na = "_phoneInput_119w3_169", oa = "_iconBtn_119w3_519", ia = "_iconBtnInteractive_119w3_525", sa = "_iconImg_119w3_544", la = "_checkboxRow_119w3_550", ca = "_checkbox_119w3_550", da = "_checkboxText_119w3_588", n = {
|
|
1288
1291
|
wrap: ft,
|
|
@@ -1338,26 +1341,26 @@ const dt = "_header_19172_1", ut = "_centered_19172_8", mr = {
|
|
|
1338
1341
|
checkbox: ca,
|
|
1339
1342
|
checkboxText: da
|
|
1340
1343
|
};
|
|
1341
|
-
let
|
|
1342
|
-
const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() :
|
|
1343
|
-
const
|
|
1344
|
+
let We = null;
|
|
1345
|
+
const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : We || (We = new Promise((c, d) => {
|
|
1346
|
+
const _ = document.querySelector(
|
|
1344
1347
|
'script[data-google-maps-places="true"]'
|
|
1345
1348
|
);
|
|
1346
|
-
if (
|
|
1347
|
-
|
|
1349
|
+
if (_) {
|
|
1350
|
+
_.addEventListener("load", () => c()), _.addEventListener(
|
|
1348
1351
|
"error",
|
|
1349
1352
|
() => d(new Error("Failed to load Google Maps API"))
|
|
1350
1353
|
);
|
|
1351
1354
|
return;
|
|
1352
1355
|
}
|
|
1353
|
-
const w = document.createElement("script"),
|
|
1354
|
-
|
|
1355
|
-
const
|
|
1356
|
+
const w = document.createElement("script"), h = new URL("https://maps.googleapis.com/maps/api/js");
|
|
1357
|
+
h.searchParams.set("key", t), h.searchParams.set("libraries", "places"), h.searchParams.set("loading", "async"), o && h.searchParams.set("language", o), w.src = h.toString(), w.async = !0, w.defer = !0, w.setAttribute("data-google-maps-places", "true"), w.onload = () => {
|
|
1358
|
+
const T = Date.now(), v = () => {
|
|
1356
1359
|
if (window.google?.maps?.places) {
|
|
1357
|
-
|
|
1360
|
+
c();
|
|
1358
1361
|
return;
|
|
1359
1362
|
}
|
|
1360
|
-
if (Date.now() -
|
|
1363
|
+
if (Date.now() - T > 2e3) {
|
|
1361
1364
|
d(
|
|
1362
1365
|
new Error(
|
|
1363
1366
|
"Google Maps loaded but Places library is unavailable. Check API key restrictions / enabled APIs."
|
|
@@ -1369,24 +1372,24 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1369
1372
|
};
|
|
1370
1373
|
v();
|
|
1371
1374
|
}, w.onerror = () => d(new Error("Failed to load Google Maps API")), document.head.appendChild(w);
|
|
1372
|
-
}),
|
|
1373
|
-
const { apiKey: o, language:
|
|
1374
|
-
|
|
1375
|
-
}, [
|
|
1376
|
-
|
|
1375
|
+
}), We), ma = (t) => {
|
|
1376
|
+
const { apiKey: o, language: c = "en", restrictCountry: d, deferLoad: _ = !1 } = t, [w, h] = $(!1), [T, v] = $([]), [O, x] = $(!1), [E, u] = $(null), [I, b] = $(!_), F = K(null), p = K(null), m = K(null), y = be(() => {
|
|
1377
|
+
_ && b(!0);
|
|
1378
|
+
}, [_]);
|
|
1379
|
+
z(() => {
|
|
1377
1380
|
if (!o || !I) {
|
|
1378
|
-
|
|
1381
|
+
h(!1), u(null);
|
|
1379
1382
|
return;
|
|
1380
1383
|
}
|
|
1381
|
-
ua(o,
|
|
1384
|
+
ua(o, c).then(() => {
|
|
1382
1385
|
F.current = new google.maps.places.AutocompleteService();
|
|
1383
1386
|
const B = document.createElement("div");
|
|
1384
|
-
p.current = new google.maps.places.PlacesService(B), m.current = new google.maps.places.AutocompleteSessionToken(),
|
|
1387
|
+
p.current = new google.maps.places.PlacesService(B), m.current = new google.maps.places.AutocompleteSessionToken(), h(!0), u(null);
|
|
1385
1388
|
}).catch((B) => {
|
|
1386
|
-
|
|
1389
|
+
h(!1), u(B?.message || "Failed to load location service");
|
|
1387
1390
|
});
|
|
1388
|
-
}, [o,
|
|
1389
|
-
const
|
|
1391
|
+
}, [o, c, I]);
|
|
1392
|
+
const J = be(
|
|
1390
1393
|
async (B) => {
|
|
1391
1394
|
if (!B || B.length < 2 || !F.current) {
|
|
1392
1395
|
v([]);
|
|
@@ -1400,11 +1403,11 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1400
1403
|
sessionToken: m.current ?? void 0
|
|
1401
1404
|
};
|
|
1402
1405
|
d && (M.componentRestrictions = { country: d });
|
|
1403
|
-
const A = await new Promise((S,
|
|
1406
|
+
const A = await new Promise((S, ee) => {
|
|
1404
1407
|
F.current.getPlacePredictions(
|
|
1405
1408
|
M,
|
|
1406
|
-
(
|
|
1407
|
-
|
|
1409
|
+
(U, D) => {
|
|
1410
|
+
D === google.maps.places.PlacesServiceStatus.OK && U ? S(U) : D === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? S([]) : ee(new Error(`Places API error: ${D}`));
|
|
1408
1411
|
}
|
|
1409
1412
|
);
|
|
1410
1413
|
});
|
|
@@ -1425,77 +1428,77 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1425
1428
|
}
|
|
1426
1429
|
},
|
|
1427
1430
|
[d]
|
|
1428
|
-
),
|
|
1431
|
+
), V = be(
|
|
1429
1432
|
async (B) => {
|
|
1430
1433
|
if (!p.current) return null;
|
|
1431
1434
|
try {
|
|
1432
1435
|
const M = await new Promise(
|
|
1433
|
-
(
|
|
1436
|
+
(j, H) => {
|
|
1434
1437
|
p.current.getDetails(
|
|
1435
1438
|
{
|
|
1436
1439
|
placeId: B,
|
|
1437
1440
|
fields: ["geometry", "address_components", "formatted_address"],
|
|
1438
1441
|
sessionToken: m.current ?? void 0
|
|
1439
1442
|
},
|
|
1440
|
-
(
|
|
1441
|
-
|
|
1443
|
+
(Y, te) => {
|
|
1444
|
+
te === google.maps.places.PlacesServiceStatus.OK && Y ? j(Y) : H(new Error(`Place details error: ${te}`));
|
|
1442
1445
|
}
|
|
1443
1446
|
);
|
|
1444
1447
|
}
|
|
1445
1448
|
);
|
|
1446
1449
|
m.current = new google.maps.places.AutocompleteSessionToken();
|
|
1447
1450
|
const A = M.geometry?.location?.lat() || 0, S = M.geometry?.location?.lng() || 0;
|
|
1448
|
-
let
|
|
1449
|
-
return M.address_components?.forEach((
|
|
1450
|
-
|
|
1451
|
+
let ee = "", U = "", D = "";
|
|
1452
|
+
return M.address_components?.forEach((j) => {
|
|
1453
|
+
j.types.includes("locality") && (ee = j.long_name), j.types.includes("administrative_area_level_1") && (U = j.long_name), j.types.includes("country") && (D = j.long_name);
|
|
1451
1454
|
}), {
|
|
1452
1455
|
display_name: M.formatted_address || "",
|
|
1453
1456
|
lat: A,
|
|
1454
1457
|
lng: S,
|
|
1455
|
-
city:
|
|
1456
|
-
state:
|
|
1457
|
-
country:
|
|
1458
|
+
city: ee,
|
|
1459
|
+
state: U,
|
|
1460
|
+
country: D
|
|
1458
1461
|
};
|
|
1459
1462
|
} catch {
|
|
1460
1463
|
return null;
|
|
1461
1464
|
}
|
|
1462
1465
|
},
|
|
1463
1466
|
[]
|
|
1464
|
-
),
|
|
1467
|
+
), W = be(() => v([]), []);
|
|
1465
1468
|
return {
|
|
1466
1469
|
isLoaded: w,
|
|
1467
|
-
predictions:
|
|
1468
|
-
isSearching:
|
|
1469
|
-
loadError:
|
|
1470
|
-
searchPlaces:
|
|
1471
|
-
getPlaceDetails:
|
|
1472
|
-
clearPredictions:
|
|
1470
|
+
predictions: T,
|
|
1471
|
+
isSearching: O,
|
|
1472
|
+
loadError: E,
|
|
1473
|
+
searchPlaces: J,
|
|
1474
|
+
getPlaceDetails: V,
|
|
1475
|
+
clearPredictions: W,
|
|
1473
1476
|
triggerLoad: y
|
|
1474
1477
|
// Call this to start loading Google Maps when deferred
|
|
1475
1478
|
};
|
|
1476
1479
|
}, fr = (t) => typeof t == "number" && Number.isFinite(t), fa = (t) => {
|
|
1477
|
-
const o = typeof t?.limit == "number" && t.limit > 0 ? Math.min(t.limit, 20) : 8,
|
|
1480
|
+
const o = typeof t?.limit == "number" && t.limit > 0 ? Math.min(t.limit, 20) : 8, c = typeof t?.offset == "number" && t.offset >= 0 ? t.offset : 0;
|
|
1478
1481
|
return {
|
|
1479
1482
|
limit: o,
|
|
1480
|
-
offset:
|
|
1483
|
+
offset: c,
|
|
1481
1484
|
restrictCountry: t?.restrictCountry
|
|
1482
1485
|
};
|
|
1483
1486
|
}, pa = (t) => {
|
|
1484
|
-
const { searchLocalities: o, restrictCountry:
|
|
1485
|
-
|
|
1487
|
+
const { searchLocalities: o, restrictCountry: c } = t, [d, _] = $([]), [w, h] = $(!1), [T, v] = $(null), O = K(0);
|
|
1488
|
+
z(() => {
|
|
1486
1489
|
v(null);
|
|
1487
1490
|
}, [o]);
|
|
1488
|
-
const x =
|
|
1491
|
+
const x = be(
|
|
1489
1492
|
async (u) => {
|
|
1490
1493
|
if (!u || u.length < 2 || !o) {
|
|
1491
|
-
|
|
1494
|
+
_([]);
|
|
1492
1495
|
return;
|
|
1493
1496
|
}
|
|
1494
|
-
const I = ++
|
|
1495
|
-
|
|
1497
|
+
const I = ++O.current;
|
|
1498
|
+
h(!0), v(null);
|
|
1496
1499
|
try {
|
|
1497
|
-
const b = fa({ restrictCountry:
|
|
1498
|
-
if (I !==
|
|
1500
|
+
const b = fa({ restrictCountry: c }), F = await o(u, b);
|
|
1501
|
+
if (I !== O.current) return;
|
|
1499
1502
|
const p = (F || []).filter(
|
|
1500
1503
|
(m) => !!m?.id && !!m?.description && fr(m?.lat) && fr(m?.lng)
|
|
1501
1504
|
).map((m) => ({
|
|
@@ -1505,24 +1508,24 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1505
1508
|
lat: m.lat,
|
|
1506
1509
|
lng: m.lng
|
|
1507
1510
|
}));
|
|
1508
|
-
|
|
1511
|
+
_(p);
|
|
1509
1512
|
} catch (b) {
|
|
1510
|
-
if (I !==
|
|
1511
|
-
|
|
1513
|
+
if (I !== O.current) return;
|
|
1514
|
+
_([]), v(b?.message || "Failed to fetch locations");
|
|
1512
1515
|
} finally {
|
|
1513
|
-
I ===
|
|
1516
|
+
I === O.current && h(!1);
|
|
1514
1517
|
}
|
|
1515
1518
|
},
|
|
1516
|
-
[
|
|
1517
|
-
),
|
|
1519
|
+
[c, o]
|
|
1520
|
+
), E = be(() => _([]), []);
|
|
1518
1521
|
return {
|
|
1519
1522
|
predictions: d,
|
|
1520
1523
|
isSearching: w,
|
|
1521
|
-
loadError:
|
|
1524
|
+
loadError: T,
|
|
1522
1525
|
searchPlaces: x,
|
|
1523
|
-
clearPredictions:
|
|
1526
|
+
clearPredictions: E
|
|
1524
1527
|
};
|
|
1525
|
-
},
|
|
1528
|
+
}, Ie = {
|
|
1526
1529
|
time: "https://srm-cdn.a4b.io/yoda/1770372014782.svg",
|
|
1527
1530
|
location: "https://srm-cdn.a4b.io/yoda/1770372031092.svg",
|
|
1528
1531
|
date: "https://srm-cdn.a4b.io/yoda/1770372045894.svg",
|
|
@@ -1599,124 +1602,126 @@ const ua = (t, o) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1599
1602
|
{ code: "+977", country: "Nepal" }
|
|
1600
1603
|
];
|
|
1601
1604
|
vr.map((t) => t.code);
|
|
1602
|
-
const kr = 10,
|
|
1605
|
+
const kr = 10, er = (t) => t.replace(/\D/g, ""), pr = (t) => er(t).slice(0, kr), ha = (t) => er(t).length === kr, ga = (t, o, c) => ha(t) ? c.phone ? { shouldTrack: !1 } : (c.phone = !0, { shouldTrack: !0, fullPhone: `${o}-${er(t)}` }) : (c.phone = !1, { shouldTrack: !1 }), _a = {}, ba = ({
|
|
1603
1606
|
t,
|
|
1604
1607
|
values: o,
|
|
1605
|
-
onChange:
|
|
1608
|
+
onChange: c,
|
|
1606
1609
|
phoneIsdCode: d,
|
|
1607
|
-
onPhoneIsdCodeChange:
|
|
1610
|
+
onPhoneIsdCodeChange: _,
|
|
1608
1611
|
showV1ExtraFields: w = !1,
|
|
1609
|
-
analytics:
|
|
1610
|
-
googleMapsApiKey:
|
|
1612
|
+
analytics: h,
|
|
1613
|
+
googleMapsApiKey: T,
|
|
1611
1614
|
atlasSearchLocalities: v,
|
|
1612
|
-
googleMapsAutocompleteEnabled:
|
|
1615
|
+
googleMapsAutocompleteEnabled: O,
|
|
1613
1616
|
className: x = ""
|
|
1614
1617
|
}) => {
|
|
1615
|
-
const
|
|
1618
|
+
const E = Le(), u = E?.config?.analytics ?? h, I = E?.config.isGlobal ?? !0, b = E?.config?.googleMapsApiKey, F = E?.config?.atlasSearchLocalities, p = E?.config?.googleMapsAutocompleteEnabled, [m, y] = $(!1), [J, V] = $(""), W = K(null), B = K(null), M = K({}), A = (a) => c({ ...o, ...a }), S = (a, s) => {
|
|
1616
1619
|
if (a === "phone") {
|
|
1617
|
-
const
|
|
1618
|
-
|
|
1620
|
+
const R = ga(s, d, M.current);
|
|
1621
|
+
R.shouldTrack && u?.trackPhoneSectionFilled?.({ phone: R.fullPhone });
|
|
1619
1622
|
return;
|
|
1620
1623
|
}
|
|
1621
|
-
|
|
1624
|
+
s.trim() && !M.current[a] && (M.current[a] = !0, {
|
|
1622
1625
|
fullName: () => u?.trackNameSectionFilled?.(),
|
|
1623
|
-
email: () => u?.trackEmailSectionFilled?.(),
|
|
1624
1626
|
dateOfBirth: () => u?.trackDobFilled?.(),
|
|
1625
1627
|
birthTime: () => u?.trackTimeFilled?.(),
|
|
1626
1628
|
birthPlace: () => u?.trackPlaceOfBirthChosen?.()
|
|
1627
1629
|
}[a]?.());
|
|
1628
|
-
},
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
const
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
const
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1630
|
+
}, ee = (a) => {
|
|
1631
|
+
const s = a.target.value;
|
|
1632
|
+
s.trim() && u?.trackEmailSectionFilled?.({ email: s });
|
|
1633
|
+
}, U = J.trim().toLowerCase(), D = vr.filter((a) => U ? a.country.toLowerCase().includes(U) || a.code.includes(U) : !0), j = K(null);
|
|
1634
|
+
K(null);
|
|
1635
|
+
const H = K(null), Y = K(0), te = K(null), [ne, oe] = $(!1), [ue, me] = $({ hour12: 12, minute: "00", meridiem: "AM" }), re = (a) => String(a).padStart(2, "0"), Q = (a) => {
|
|
1636
|
+
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(a);
|
|
1637
|
+
if (!s) return a;
|
|
1638
|
+
const R = Number(s[1]), he = s[2], Se = R >= 12 ? "PM" : "AM";
|
|
1639
|
+
return `${R % 12 === 0 ? 12 : R % 12}:${he} ${Se}`;
|
|
1640
|
+
}, ge = (a) => {
|
|
1641
|
+
const s = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(a);
|
|
1642
|
+
if (!s) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
1643
|
+
const R = Number(s[1]), he = s[2], Se = R >= 12 ? "PM" : "AM";
|
|
1644
|
+
return { hour12: R % 12 === 0 ? 12 : R % 12, minute: he, meridiem: Se };
|
|
1645
|
+
}, ve = (a) => {
|
|
1646
|
+
const s = Math.min(12, Math.max(1, a.hour12)), R = /^([0-5]\d)$/.test(a.minute) ? a.minute : "00";
|
|
1647
|
+
let he = s % 12;
|
|
1648
|
+
return a.meridiem === "PM" && (he += 12), `${re(he)}:${R}`;
|
|
1649
|
+
}, ye = K(null), [ie, se] = $(!1), [le, fe] = $(
|
|
1645
1650
|
null
|
|
1646
|
-
),
|
|
1647
|
-
apiKey:
|
|
1651
|
+
), X = T ?? b ?? _a?.VITE_GOOGLE_MAPS_API_KEY, Te = v ?? F, Z = O ?? p ?? !0, ke = (o.birthPlace ?? "").trim(), we = I ? void 0 : "in", ce = ma({
|
|
1652
|
+
apiKey: Z ? X : void 0,
|
|
1648
1653
|
language: "en",
|
|
1649
|
-
restrictCountry:
|
|
1650
|
-
}),
|
|
1651
|
-
searchLocalities:
|
|
1652
|
-
restrictCountry:
|
|
1653
|
-
}),
|
|
1654
|
+
restrictCountry: we
|
|
1655
|
+
}), C = pa({
|
|
1656
|
+
searchLocalities: Z ? void 0 : Te,
|
|
1657
|
+
restrictCountry: we
|
|
1658
|
+
}), Pe = Z ? ce.predictions.map((a) => ({
|
|
1654
1659
|
id: a.place_id,
|
|
1655
1660
|
description: a.description,
|
|
1656
1661
|
secondaryText: a.structured_formatting?.secondary_text,
|
|
1657
1662
|
lat: void 0,
|
|
1658
1663
|
lng: void 0
|
|
1659
|
-
})) :
|
|
1664
|
+
})) : C.predictions.map((a) => ({
|
|
1660
1665
|
id: a.id,
|
|
1661
1666
|
description: a.description,
|
|
1662
1667
|
secondaryText: a.secondary_text,
|
|
1663
1668
|
lat: a.lat,
|
|
1664
1669
|
lng: a.lng
|
|
1665
|
-
})),
|
|
1666
|
-
|
|
1667
|
-
const a = (
|
|
1668
|
-
|
|
1670
|
+
})), Ae = Z ? ce.isSearching : C.isSearching, Me = Z ? ce.loadError : C.loadError, $e = Z ? !!X : !!Te, Ne = Z ? ce.searchPlaces : C.searchPlaces, Be = Z ? ce.clearPredictions : C.clearPredictions;
|
|
1671
|
+
z(() => {
|
|
1672
|
+
const a = (s) => {
|
|
1673
|
+
ye.current && (ye.current.contains(s.target) || se(!1));
|
|
1669
1674
|
};
|
|
1670
1675
|
return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
|
|
1671
|
-
}, []),
|
|
1672
|
-
const a = (
|
|
1673
|
-
|
|
1676
|
+
}, []), z(() => {
|
|
1677
|
+
const a = (s) => {
|
|
1678
|
+
W.current && (W.current.contains(s.target) || (y(!1), V("")));
|
|
1674
1679
|
};
|
|
1675
1680
|
return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
|
|
1676
|
-
}, []),
|
|
1681
|
+
}, []), z(() => {
|
|
1677
1682
|
if (!m) return;
|
|
1678
1683
|
const a = window.setTimeout(() => {
|
|
1679
1684
|
B.current?.focus();
|
|
1680
1685
|
}, 0);
|
|
1681
1686
|
return () => window.clearTimeout(a);
|
|
1682
|
-
}, [m]),
|
|
1683
|
-
if (!
|
|
1684
|
-
if (
|
|
1685
|
-
|
|
1687
|
+
}, [m]), z(() => {
|
|
1688
|
+
if (!ie) return;
|
|
1689
|
+
if (ke.length < 2) {
|
|
1690
|
+
Be();
|
|
1686
1691
|
return;
|
|
1687
1692
|
}
|
|
1688
1693
|
const a = window.setTimeout(async () => {
|
|
1689
|
-
await
|
|
1694
|
+
await Ne(ke);
|
|
1690
1695
|
}, 250);
|
|
1691
1696
|
return () => window.clearTimeout(a);
|
|
1692
|
-
}, [
|
|
1693
|
-
const
|
|
1694
|
-
const
|
|
1695
|
-
if (!(!
|
|
1696
|
-
if (document.activeElement ===
|
|
1697
|
-
|
|
1697
|
+
}, [Be, ie, ke, Ne]);
|
|
1698
|
+
const Ue = (a) => {
|
|
1699
|
+
const s = a.current;
|
|
1700
|
+
if (!(!s || s.disabled)) {
|
|
1701
|
+
if (document.activeElement === s && H.current === s && Date.now() - Y.current < 6e4) {
|
|
1702
|
+
s.blur();
|
|
1698
1703
|
return;
|
|
1699
1704
|
}
|
|
1700
|
-
if (typeof
|
|
1701
|
-
|
|
1705
|
+
if (typeof s.showPicker == "function") {
|
|
1706
|
+
s.showPicker(), H.current = s, Y.current = Date.now();
|
|
1702
1707
|
return;
|
|
1703
1708
|
}
|
|
1704
|
-
|
|
1709
|
+
s.focus(), H.current = s, Y.current = Date.now();
|
|
1705
1710
|
}
|
|
1706
1711
|
};
|
|
1707
|
-
return
|
|
1708
|
-
const a = (
|
|
1709
|
-
|
|
1712
|
+
return z(() => {
|
|
1713
|
+
const a = (s) => {
|
|
1714
|
+
te.current && (te.current.contains(s.target) || oe(!1));
|
|
1710
1715
|
};
|
|
1711
1716
|
return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
|
|
1712
|
-
}, []),
|
|
1713
|
-
const a = (
|
|
1714
|
-
|
|
1715
|
-
},
|
|
1716
|
-
|
|
1717
|
+
}, []), z(() => {
|
|
1718
|
+
const a = (R) => {
|
|
1719
|
+
R.target?.closest?.("[data-info-tooltip]") == null && fe(null);
|
|
1720
|
+
}, s = (R) => {
|
|
1721
|
+
R.key === "Escape" && fe(null);
|
|
1717
1722
|
};
|
|
1718
|
-
return document.addEventListener("mousedown", a), document.addEventListener("keydown",
|
|
1719
|
-
document.removeEventListener("mousedown", a), document.removeEventListener("keydown",
|
|
1723
|
+
return document.addEventListener("mousedown", a), document.addEventListener("keydown", s), () => {
|
|
1724
|
+
document.removeEventListener("mousedown", a), document.removeEventListener("keydown", s);
|
|
1720
1725
|
};
|
|
1721
1726
|
}, []), /* @__PURE__ */ r.jsx(
|
|
1722
1727
|
"section",
|
|
@@ -1738,8 +1743,8 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
1738
1743
|
value: o.fullName,
|
|
1739
1744
|
onFocus: () => u?.trackNameSectionClicked?.(),
|
|
1740
1745
|
onChange: (a) => {
|
|
1741
|
-
const
|
|
1742
|
-
A({ fullName:
|
|
1746
|
+
const s = a.target.value;
|
|
1747
|
+
A({ fullName: s }), S("fullName", s);
|
|
1743
1748
|
},
|
|
1744
1749
|
placeholder: t("formFullNamePlaceholder"),
|
|
1745
1750
|
autoComplete: "name"
|
|
@@ -1751,7 +1756,7 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
1751
1756
|
t("formPhone"),
|
|
1752
1757
|
!I && /* @__PURE__ */ r.jsx("span", { className: n.req, children: "*" })
|
|
1753
1758
|
] }) }),
|
|
1754
|
-
/* @__PURE__ */ r.jsx("div", { className: n.inputWrap, children: /* @__PURE__ */ r.jsxs("div", { className: n.isdWrap, ref:
|
|
1759
|
+
/* @__PURE__ */ r.jsx("div", { className: n.inputWrap, children: /* @__PURE__ */ r.jsxs("div", { className: n.isdWrap, ref: W, children: [
|
|
1755
1760
|
/* @__PURE__ */ r.jsxs("div", { className: n.phoneInputGroup, children: [
|
|
1756
1761
|
/* @__PURE__ */ r.jsx("div", { className: n.isdSelectWrap, children: /* @__PURE__ */ r.jsx(
|
|
1757
1762
|
"button",
|
|
@@ -1761,7 +1766,7 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
1761
1766
|
"aria-haspopup": "listbox",
|
|
1762
1767
|
"aria-expanded": m,
|
|
1763
1768
|
onClick: () => {
|
|
1764
|
-
y((a) => !a),
|
|
1769
|
+
y((a) => !a), V("");
|
|
1765
1770
|
},
|
|
1766
1771
|
children: d
|
|
1767
1772
|
}
|
|
@@ -1775,8 +1780,8 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
1775
1780
|
value: o.phone ?? "",
|
|
1776
1781
|
onFocus: () => u?.trackPhoneSectionClicked?.(),
|
|
1777
1782
|
onChange: (a) => {
|
|
1778
|
-
const
|
|
1779
|
-
A({ phone: pr(
|
|
1783
|
+
const s = a.target.value;
|
|
1784
|
+
A({ phone: pr(s) }), S("phone", pr(s));
|
|
1780
1785
|
},
|
|
1781
1786
|
placeholder: t("formPhonePlaceholder"),
|
|
1782
1787
|
autoComplete: "tel",
|
|
@@ -1800,14 +1805,14 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
1800
1805
|
{
|
|
1801
1806
|
ref: B,
|
|
1802
1807
|
type: "text",
|
|
1803
|
-
value:
|
|
1804
|
-
onChange: (a) =>
|
|
1808
|
+
value: J,
|
|
1809
|
+
onChange: (a) => V(a.target.value),
|
|
1805
1810
|
placeholder: "Search country",
|
|
1806
1811
|
className: n.isdSearchInput,
|
|
1807
1812
|
"aria-label": "Search country"
|
|
1808
1813
|
}
|
|
1809
1814
|
) }),
|
|
1810
|
-
|
|
1815
|
+
D.length > 0 ? D.map((a) => /* @__PURE__ */ r.jsxs(
|
|
1811
1816
|
"button",
|
|
1812
1817
|
{
|
|
1813
1818
|
type: "button",
|
|
@@ -1815,7 +1820,7 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
1815
1820
|
"aria-selected": a.code === d,
|
|
1816
1821
|
className: `${n.isdOption} ${a.code === d ? n.isdOptionActive : ""}`,
|
|
1817
1822
|
onClick: () => {
|
|
1818
|
-
|
|
1823
|
+
_(a.code), y(!1), V("");
|
|
1819
1824
|
},
|
|
1820
1825
|
children: [
|
|
1821
1826
|
/* @__PURE__ */ r.jsx("span", { className: n.isdCountryName, children: a.country }),
|
|
@@ -1890,7 +1895,11 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
1890
1895
|
className: n.input,
|
|
1891
1896
|
type: "email",
|
|
1892
1897
|
value: o.email,
|
|
1893
|
-
|
|
1898
|
+
onFocus: () => u?.trackEmailSectionClicked?.(),
|
|
1899
|
+
onChange: (a) => {
|
|
1900
|
+
A({ email: a.target.value });
|
|
1901
|
+
},
|
|
1902
|
+
onBlur: ee,
|
|
1894
1903
|
placeholder: t("formEmailPlaceholder"),
|
|
1895
1904
|
autoComplete: "email",
|
|
1896
1905
|
required: !0,
|
|
@@ -1911,22 +1920,22 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
1911
1920
|
type: "button",
|
|
1912
1921
|
className: n.infoBtn,
|
|
1913
1922
|
"aria-label": t("info"),
|
|
1914
|
-
"aria-expanded":
|
|
1923
|
+
"aria-expanded": le === "dob",
|
|
1915
1924
|
onClick: () => {
|
|
1916
|
-
|
|
1925
|
+
fe((a) => a === "dob" ? null : "dob"), u?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
1917
1926
|
},
|
|
1918
1927
|
children: /* @__PURE__ */ r.jsx(
|
|
1919
1928
|
"img",
|
|
1920
1929
|
{
|
|
1921
1930
|
className: n.infoImg,
|
|
1922
|
-
src:
|
|
1931
|
+
src: Ie.info,
|
|
1923
1932
|
alt: "",
|
|
1924
1933
|
"aria-hidden": !0
|
|
1925
1934
|
}
|
|
1926
1935
|
)
|
|
1927
1936
|
}
|
|
1928
1937
|
),
|
|
1929
|
-
|
|
1938
|
+
le === "dob" && /* @__PURE__ */ r.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
|
|
1930
1939
|
t("formDobInfo"),
|
|
1931
1940
|
/* @__PURE__ */ r.jsx("span", { className: n.tooltipArrow, "aria-hidden": !0 })
|
|
1932
1941
|
] })
|
|
@@ -1939,20 +1948,20 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
1939
1948
|
id: "kundli-dob",
|
|
1940
1949
|
className: n.input,
|
|
1941
1950
|
type: "date",
|
|
1942
|
-
ref:
|
|
1951
|
+
ref: j,
|
|
1943
1952
|
value: o.dateOfBirth,
|
|
1944
1953
|
max: (() => {
|
|
1945
1954
|
const a = /* @__PURE__ */ new Date();
|
|
1946
|
-
return `${a.getFullYear()}-${
|
|
1955
|
+
return `${a.getFullYear()}-${re(a.getMonth() + 1)}-${re(a.getDate())}`;
|
|
1947
1956
|
})(),
|
|
1948
1957
|
onChange: (a) => {
|
|
1949
|
-
const
|
|
1950
|
-
|
|
1958
|
+
const s = a.target.value, R = /* @__PURE__ */ new Date(), he = `${R.getFullYear()}-${re(R.getMonth() + 1)}-${re(R.getDate())}`;
|
|
1959
|
+
s && s > he || (A({ dateOfBirth: s }), S("dateOfBirth", s), H.current = null);
|
|
1951
1960
|
},
|
|
1952
1961
|
onFocus: () => u?.trackDobClicked?.(),
|
|
1953
|
-
onClick: () =>
|
|
1962
|
+
onClick: () => Ue(j),
|
|
1954
1963
|
onBlur: () => {
|
|
1955
|
-
|
|
1964
|
+
H.current === j.current && (H.current = null);
|
|
1956
1965
|
}
|
|
1957
1966
|
}
|
|
1958
1967
|
),
|
|
@@ -1964,13 +1973,13 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
1964
1973
|
"aria-label": "Open date picker",
|
|
1965
1974
|
onMouseDown: (a) => a.preventDefault(),
|
|
1966
1975
|
onClick: (a) => {
|
|
1967
|
-
a.preventDefault(), a.stopPropagation(),
|
|
1976
|
+
a.preventDefault(), a.stopPropagation(), Ue(j);
|
|
1968
1977
|
},
|
|
1969
1978
|
children: /* @__PURE__ */ r.jsx(
|
|
1970
1979
|
"img",
|
|
1971
1980
|
{
|
|
1972
1981
|
className: n.iconImg,
|
|
1973
|
-
src:
|
|
1982
|
+
src: Ie.date,
|
|
1974
1983
|
alt: "",
|
|
1975
1984
|
"aria-hidden": !0
|
|
1976
1985
|
}
|
|
@@ -1992,45 +2001,45 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
1992
2001
|
type: "button",
|
|
1993
2002
|
className: n.infoBtn,
|
|
1994
2003
|
"aria-label": t("info"),
|
|
1995
|
-
"aria-expanded":
|
|
2004
|
+
"aria-expanded": le === "time",
|
|
1996
2005
|
onClick: () => {
|
|
1997
|
-
u?.trackInfoIconClicked?.({ fieldName: "time" }),
|
|
2006
|
+
u?.trackInfoIconClicked?.({ fieldName: "time" }), fe((a) => a === "time" ? null : "time");
|
|
1998
2007
|
},
|
|
1999
2008
|
children: /* @__PURE__ */ r.jsx(
|
|
2000
2009
|
"img",
|
|
2001
2010
|
{
|
|
2002
2011
|
className: n.infoImg,
|
|
2003
|
-
src:
|
|
2012
|
+
src: Ie.info,
|
|
2004
2013
|
alt: "",
|
|
2005
2014
|
"aria-hidden": !0
|
|
2006
2015
|
}
|
|
2007
2016
|
)
|
|
2008
2017
|
}
|
|
2009
2018
|
),
|
|
2010
|
-
|
|
2019
|
+
le === "time" && /* @__PURE__ */ r.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
|
|
2011
2020
|
t("formBirthTimeInfo"),
|
|
2012
2021
|
/* @__PURE__ */ r.jsx("span", { className: n.tooltipArrow, "aria-hidden": !0 })
|
|
2013
2022
|
] })
|
|
2014
2023
|
] })
|
|
2015
2024
|
] }),
|
|
2016
|
-
/* @__PURE__ */ r.jsxs("div", { className: n.inputWrap, ref:
|
|
2025
|
+
/* @__PURE__ */ r.jsxs("div", { className: n.inputWrap, ref: te, children: [
|
|
2017
2026
|
/* @__PURE__ */ r.jsx(
|
|
2018
2027
|
"input",
|
|
2019
2028
|
{
|
|
2020
2029
|
id: "kundli-birth-time",
|
|
2021
2030
|
className: n.input,
|
|
2022
2031
|
type: "text",
|
|
2023
|
-
value: o.birthTime ?
|
|
2032
|
+
value: o.birthTime ? Q(o.birthTime) : "",
|
|
2024
2033
|
readOnly: !0,
|
|
2025
2034
|
onFocus: () => u?.trackTimeClicked?.(),
|
|
2026
2035
|
onChange: (a) => {
|
|
2027
|
-
const
|
|
2028
|
-
A({ birthTime:
|
|
2036
|
+
const s = a.target.value;
|
|
2037
|
+
A({ birthTime: s }), S("birthTime", s);
|
|
2029
2038
|
},
|
|
2030
2039
|
disabled: o.birthTimeUnknown,
|
|
2031
2040
|
placeholder: "HH:MM AM",
|
|
2032
2041
|
onClick: () => {
|
|
2033
|
-
o.birthTimeUnknown || (
|
|
2042
|
+
o.birthTimeUnknown || (me(ge(o.birthTime || "12:00")), oe((a) => !a));
|
|
2034
2043
|
}
|
|
2035
2044
|
}
|
|
2036
2045
|
),
|
|
@@ -2043,20 +2052,20 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2043
2052
|
disabled: o.birthTimeUnknown,
|
|
2044
2053
|
onMouseDown: (a) => a.preventDefault(),
|
|
2045
2054
|
onClick: (a) => {
|
|
2046
|
-
a.preventDefault(), a.stopPropagation(), !o.birthTimeUnknown && (
|
|
2055
|
+
a.preventDefault(), a.stopPropagation(), !o.birthTimeUnknown && (me(ge(o.birthTime || "12:00")), oe((s) => !s));
|
|
2047
2056
|
},
|
|
2048
2057
|
children: /* @__PURE__ */ r.jsx(
|
|
2049
2058
|
"img",
|
|
2050
2059
|
{
|
|
2051
2060
|
className: n.iconImg,
|
|
2052
|
-
src:
|
|
2061
|
+
src: Ie.time,
|
|
2053
2062
|
alt: "",
|
|
2054
2063
|
"aria-hidden": !0
|
|
2055
2064
|
}
|
|
2056
2065
|
)
|
|
2057
2066
|
}
|
|
2058
2067
|
),
|
|
2059
|
-
|
|
2068
|
+
ne && !o.birthTimeUnknown && /* @__PURE__ */ r.jsxs(
|
|
2060
2069
|
"div",
|
|
2061
2070
|
{
|
|
2062
2071
|
className: n.timePopover,
|
|
@@ -2068,13 +2077,13 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2068
2077
|
"select",
|
|
2069
2078
|
{
|
|
2070
2079
|
className: n.timePickerSelect,
|
|
2071
|
-
value:
|
|
2072
|
-
onChange: (a) =>
|
|
2073
|
-
...
|
|
2080
|
+
value: ue.hour12,
|
|
2081
|
+
onChange: (a) => me((s) => ({
|
|
2082
|
+
...s,
|
|
2074
2083
|
hour12: Number(a.target.value)
|
|
2075
2084
|
})),
|
|
2076
2085
|
"aria-label": "Hour",
|
|
2077
|
-
children: Array.from({ length: 12 }, (a,
|
|
2086
|
+
children: Array.from({ length: 12 }, (a, s) => s + 1).map((a) => /* @__PURE__ */ r.jsx("option", { value: a, children: a }, a))
|
|
2078
2087
|
}
|
|
2079
2088
|
),
|
|
2080
2089
|
/* @__PURE__ */ r.jsx("span", { className: n.timePickerColon, children: ":" }),
|
|
@@ -2082,10 +2091,10 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2082
2091
|
"select",
|
|
2083
2092
|
{
|
|
2084
2093
|
className: n.timePickerSelect,
|
|
2085
|
-
value:
|
|
2086
|
-
onChange: (a) =>
|
|
2094
|
+
value: ue.minute,
|
|
2095
|
+
onChange: (a) => me((s) => ({ ...s, minute: a.target.value })),
|
|
2087
2096
|
"aria-label": "Minute",
|
|
2088
|
-
children: Array.from({ length: 60 }, (a,
|
|
2097
|
+
children: Array.from({ length: 60 }, (a, s) => re(s)).map(
|
|
2089
2098
|
(a) => /* @__PURE__ */ r.jsx("option", { value: a, children: a }, a)
|
|
2090
2099
|
)
|
|
2091
2100
|
}
|
|
@@ -2095,8 +2104,8 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2095
2104
|
"button",
|
|
2096
2105
|
{
|
|
2097
2106
|
type: "button",
|
|
2098
|
-
className: `${n.meridiemBtn} ${
|
|
2099
|
-
onClick: () =>
|
|
2107
|
+
className: `${n.meridiemBtn} ${ue.meridiem === "AM" ? n.meridiemActive : ""}`,
|
|
2108
|
+
onClick: () => me((a) => ({ ...a, meridiem: "AM" })),
|
|
2100
2109
|
children: "AM"
|
|
2101
2110
|
}
|
|
2102
2111
|
),
|
|
@@ -2104,8 +2113,8 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2104
2113
|
"button",
|
|
2105
2114
|
{
|
|
2106
2115
|
type: "button",
|
|
2107
|
-
className: `${n.meridiemBtn} ${
|
|
2108
|
-
onClick: () =>
|
|
2116
|
+
className: `${n.meridiemBtn} ${ue.meridiem === "PM" ? n.meridiemActive : ""}`,
|
|
2117
|
+
onClick: () => me((a) => ({ ...a, meridiem: "PM" })),
|
|
2109
2118
|
children: "PM"
|
|
2110
2119
|
}
|
|
2111
2120
|
)
|
|
@@ -2117,7 +2126,7 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2117
2126
|
{
|
|
2118
2127
|
type: "button",
|
|
2119
2128
|
className: n.timePopoverBtn,
|
|
2120
|
-
onClick: () =>
|
|
2129
|
+
onClick: () => oe(!1),
|
|
2121
2130
|
children: "Cancel"
|
|
2122
2131
|
}
|
|
2123
2132
|
),
|
|
@@ -2127,8 +2136,8 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2127
2136
|
type: "button",
|
|
2128
2137
|
className: `${n.timePopoverBtn} ${n.timePopoverOk}`,
|
|
2129
2138
|
onClick: () => {
|
|
2130
|
-
const a =
|
|
2131
|
-
A({ birthTime: a }), S("birthTime", a),
|
|
2139
|
+
const a = ve(ue);
|
|
2140
|
+
A({ birthTime: a }), S("birthTime", a), oe(!1);
|
|
2132
2141
|
},
|
|
2133
2142
|
"aria-label": "OK",
|
|
2134
2143
|
children: /* @__PURE__ */ r.jsx(
|
|
@@ -2202,30 +2211,30 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2202
2211
|
type: "button",
|
|
2203
2212
|
className: n.infoBtn,
|
|
2204
2213
|
"aria-label": t("info"),
|
|
2205
|
-
"aria-expanded":
|
|
2214
|
+
"aria-expanded": le === "place",
|
|
2206
2215
|
onClick: () => {
|
|
2207
2216
|
u?.trackInfoIconClicked?.({
|
|
2208
2217
|
fieldName: "birthPlace"
|
|
2209
|
-
}),
|
|
2218
|
+
}), fe((a) => a === "place" ? null : "place");
|
|
2210
2219
|
},
|
|
2211
2220
|
children: /* @__PURE__ */ r.jsx(
|
|
2212
2221
|
"img",
|
|
2213
2222
|
{
|
|
2214
2223
|
className: n.infoImg,
|
|
2215
|
-
src:
|
|
2224
|
+
src: Ie.info,
|
|
2216
2225
|
alt: "",
|
|
2217
2226
|
"aria-hidden": !0
|
|
2218
2227
|
}
|
|
2219
2228
|
)
|
|
2220
2229
|
}
|
|
2221
2230
|
),
|
|
2222
|
-
|
|
2231
|
+
le === "place" && /* @__PURE__ */ r.jsxs("div", { className: n.tooltip, role: "tooltip", children: [
|
|
2223
2232
|
t("formBirthPlaceInfo"),
|
|
2224
2233
|
/* @__PURE__ */ r.jsx("span", { className: n.tooltipArrow, "aria-hidden": !0 })
|
|
2225
2234
|
] })
|
|
2226
2235
|
] })
|
|
2227
2236
|
] }),
|
|
2228
|
-
/* @__PURE__ */ r.jsxs("div", { className: n.inputWrap, ref:
|
|
2237
|
+
/* @__PURE__ */ r.jsxs("div", { className: n.inputWrap, ref: ye, children: [
|
|
2229
2238
|
/* @__PURE__ */ r.jsx(
|
|
2230
2239
|
"input",
|
|
2231
2240
|
{
|
|
@@ -2234,15 +2243,15 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2234
2243
|
type: "text",
|
|
2235
2244
|
value: o.birthPlace,
|
|
2236
2245
|
onChange: (a) => {
|
|
2237
|
-
const
|
|
2246
|
+
const s = a.target.value;
|
|
2238
2247
|
A({
|
|
2239
|
-
birthPlace:
|
|
2248
|
+
birthPlace: s,
|
|
2240
2249
|
birthPlaceLat: void 0,
|
|
2241
2250
|
birthPlaceLng: void 0
|
|
2242
|
-
}), S("birthPlace",
|
|
2251
|
+
}), S("birthPlace", s), se(!0);
|
|
2243
2252
|
},
|
|
2244
2253
|
onFocus: () => {
|
|
2245
|
-
u?.trackPlaceOfBirthClicked?.(),
|
|
2254
|
+
u?.trackPlaceOfBirthClicked?.(), se(!0);
|
|
2246
2255
|
},
|
|
2247
2256
|
placeholder: t("formBirthPlacePlaceholder"),
|
|
2248
2257
|
autoComplete: "address-level2"
|
|
@@ -2252,22 +2261,33 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2252
2261
|
"img",
|
|
2253
2262
|
{
|
|
2254
2263
|
className: n.iconImg,
|
|
2255
|
-
src:
|
|
2264
|
+
src: Ie.location,
|
|
2256
2265
|
alt: "",
|
|
2257
2266
|
"aria-hidden": !0
|
|
2258
2267
|
}
|
|
2259
2268
|
) }),
|
|
2260
|
-
|
|
2269
|
+
ie && Pe.length > 0 && /* @__PURE__ */ r.jsx("div", { className: n.suggestions, role: "listbox", children: Pe.slice(0, 8).map((a) => /* @__PURE__ */ r.jsxs(
|
|
2261
2270
|
"button",
|
|
2262
2271
|
{
|
|
2263
2272
|
type: "button",
|
|
2264
2273
|
className: n.suggestionItem,
|
|
2265
|
-
onClick: () => {
|
|
2266
|
-
|
|
2267
|
-
|
|
2274
|
+
onClick: async () => {
|
|
2275
|
+
const s = a.description;
|
|
2276
|
+
if (A({
|
|
2277
|
+
birthPlace: s,
|
|
2268
2278
|
birthPlaceLat: a.lat,
|
|
2269
2279
|
birthPlaceLng: a.lng
|
|
2270
|
-
}),
|
|
2280
|
+
}), Be(), se(!1), Z) {
|
|
2281
|
+
const R = await ce.getPlaceDetails(
|
|
2282
|
+
a.id
|
|
2283
|
+
);
|
|
2284
|
+
R && c({
|
|
2285
|
+
...o,
|
|
2286
|
+
birthPlace: s,
|
|
2287
|
+
birthPlaceLat: R.lat,
|
|
2288
|
+
birthPlaceLng: R.lng
|
|
2289
|
+
});
|
|
2290
|
+
}
|
|
2271
2291
|
},
|
|
2272
2292
|
children: [
|
|
2273
2293
|
/* @__PURE__ */ r.jsx("span", { className: n.suggestionMain, children: a.description }),
|
|
@@ -2276,8 +2296,8 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2276
2296
|
},
|
|
2277
2297
|
a.id
|
|
2278
2298
|
)) }),
|
|
2279
|
-
|
|
2280
|
-
|
|
2299
|
+
ie && $e && Ae && /* @__PURE__ */ r.jsx("div", { className: n.suggestionsHint, children: "Loading…" }),
|
|
2300
|
+
ie && $e && !Ae && !!Me && /* @__PURE__ */ r.jsx("div", { className: n.suggestionsHint, children: Me })
|
|
2281
2301
|
] })
|
|
2282
2302
|
] }),
|
|
2283
2303
|
w && /* @__PURE__ */ r.jsxs("div", { className: n.field, children: [
|
|
@@ -2411,17 +2431,17 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2411
2431
|
] }) })
|
|
2412
2432
|
}
|
|
2413
2433
|
);
|
|
2414
|
-
}, ya = "_ctaButton_rhimw_2", va = "_ctaFilled_rhimw_21", ka = "_ctaFilledContent_rhimw_52", wa = "_chevronRight_rhimw_61",
|
|
2434
|
+
}, ya = "_ctaButton_rhimw_2", va = "_ctaFilled_rhimw_21", ka = "_ctaFilledContent_rhimw_52", wa = "_chevronRight_rhimw_61", Fe = {
|
|
2415
2435
|
ctaButton: ya,
|
|
2416
2436
|
ctaFilled: va,
|
|
2417
2437
|
ctaFilledContent: ka,
|
|
2418
2438
|
chevronRight: wa
|
|
2419
2439
|
}, wr = "kundli-report-astrologer", xa = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", Pa = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", Aa = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", Ca = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", ja = ({ t }) => {
|
|
2420
|
-
const
|
|
2440
|
+
const c = Le()?.config.imageComponent ?? He;
|
|
2421
2441
|
return /* @__PURE__ */ r.jsxs("div", { className: je.marqueeContent, children: [
|
|
2422
2442
|
/* @__PURE__ */ r.jsxs("span", { className: je.badge, children: [
|
|
2423
2443
|
/* @__PURE__ */ r.jsx(
|
|
2424
|
-
|
|
2444
|
+
c,
|
|
2425
2445
|
{
|
|
2426
2446
|
src: xa,
|
|
2427
2447
|
alt: "",
|
|
@@ -2435,7 +2455,7 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2435
2455
|
] }),
|
|
2436
2456
|
/* @__PURE__ */ r.jsxs("span", { className: je.badge, children: [
|
|
2437
2457
|
/* @__PURE__ */ r.jsx(
|
|
2438
|
-
|
|
2458
|
+
c,
|
|
2439
2459
|
{
|
|
2440
2460
|
src: Pa,
|
|
2441
2461
|
alt: "",
|
|
@@ -2449,7 +2469,7 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2449
2469
|
] }),
|
|
2450
2470
|
/* @__PURE__ */ r.jsxs("span", { className: je.badge, children: [
|
|
2451
2471
|
/* @__PURE__ */ r.jsx(
|
|
2452
|
-
|
|
2472
|
+
c,
|
|
2453
2473
|
{
|
|
2454
2474
|
src: Aa,
|
|
2455
2475
|
alt: "",
|
|
@@ -2462,14 +2482,14 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2462
2482
|
t("ctaSecurePayment")
|
|
2463
2483
|
] })
|
|
2464
2484
|
] });
|
|
2465
|
-
}, Ta = (t) => /.+@.+\..+/.test(t), Na = (t) => /^\d{10}$/.test(t), Sa = (t, o,
|
|
2485
|
+
}, Ta = (t) => /.+@.+\..+/.test(t), Na = (t) => /^\d{10}$/.test(t), Sa = (t, o, c) => {
|
|
2466
2486
|
if (!t.fullName.trim()) return "fullName";
|
|
2467
2487
|
if (o) {
|
|
2468
2488
|
if (!Ta(t.email.trim())) return "email";
|
|
2469
2489
|
} else if (!Na((t.phone ?? "").trim())) return "phone";
|
|
2470
2490
|
if (!t.dateOfBirth) return "dateOfBirth";
|
|
2471
2491
|
if (!t.birthPlace.trim()) return "birthPlace";
|
|
2472
|
-
if (
|
|
2492
|
+
if (c) {
|
|
2473
2493
|
if (!t.gender) return "gender";
|
|
2474
2494
|
if (!t.language_code) return "language_code";
|
|
2475
2495
|
}
|
|
@@ -2477,54 +2497,54 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2477
2497
|
}, Ra = ({
|
|
2478
2498
|
t,
|
|
2479
2499
|
values: o,
|
|
2480
|
-
phoneIsdCode:
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2500
|
+
phoneIsdCode: c,
|
|
2501
|
+
requireV1ExtraFields: d = !1,
|
|
2502
|
+
onValidationFailed: _,
|
|
2503
|
+
onProceed: w,
|
|
2504
|
+
onProceedGuidance: h,
|
|
2505
|
+
href: T,
|
|
2506
|
+
analytics: v,
|
|
2507
|
+
className: O = "",
|
|
2508
|
+
discountedPriceLabel: x,
|
|
2509
|
+
discountPillLabel: E,
|
|
2490
2510
|
showPlanSheet: u,
|
|
2491
2511
|
confirmPlan: I,
|
|
2492
2512
|
planSheetOpen: b,
|
|
2493
2513
|
selectedPlan: F
|
|
2494
2514
|
}) => {
|
|
2495
|
-
const p =
|
|
2496
|
-
() => Sa(o, m,
|
|
2497
|
-
[o, m,
|
|
2498
|
-
),
|
|
2499
|
-
if (
|
|
2500
|
-
|
|
2515
|
+
const p = Le(), m = p?.config.isGlobal ?? !0, y = p?.config?.variant, J = Je(
|
|
2516
|
+
() => Sa(o, m, d),
|
|
2517
|
+
[o, m, d]
|
|
2518
|
+
), V = J === null, W = y === "v1" && p?.config?.showSheet, B = m ? x ?? t("formDiscountedPrice") : W ? "" : "₹499", M = p?.config.imageComponent ?? He, A = (ee) => {
|
|
2519
|
+
if (ee.preventDefault(), y === "v1" && !V && v?.trackKundliDetailedClicked?.(), !V) {
|
|
2520
|
+
J && _?.(J);
|
|
2501
2521
|
return;
|
|
2502
2522
|
}
|
|
2503
|
-
const
|
|
2523
|
+
const U = !!h && y === "v1" && F?.id === wr, D = (o.phone ?? "").trim(), j = {
|
|
2504
2524
|
...o,
|
|
2505
|
-
phone:
|
|
2525
|
+
phone: D && `${c}-${D}`
|
|
2506
2526
|
};
|
|
2507
|
-
if (
|
|
2508
|
-
b ? I?.() : u?.(
|
|
2527
|
+
if (W) {
|
|
2528
|
+
b ? I?.() : u?.(j);
|
|
2509
2529
|
return;
|
|
2510
2530
|
}
|
|
2511
|
-
|
|
2531
|
+
v?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), U ? h(j) : w?.(j);
|
|
2512
2532
|
}, S = /* @__PURE__ */ r.jsx(
|
|
2513
2533
|
Ur,
|
|
2514
2534
|
{
|
|
2515
|
-
href:
|
|
2516
|
-
disabled: y === "v1" ? !1 : !
|
|
2535
|
+
href: T,
|
|
2536
|
+
disabled: y === "v1" ? !1 : !V,
|
|
2517
2537
|
onClick: A,
|
|
2518
2538
|
"aria-label": t("formPriceAria"),
|
|
2519
|
-
className: y === "v1" &&
|
|
2520
|
-
children: y === "v1" ?
|
|
2521
|
-
|
|
2539
|
+
className: y === "v1" && V ? Fe.ctaFilled : y === "v1" ? Fe.ctaButton : void 0,
|
|
2540
|
+
children: y === "v1" ? V ? /* @__PURE__ */ r.jsxs("span", { className: Fe.ctaFilledContent, children: [
|
|
2541
|
+
W ? t("selectPackage") : b && F ? `${t("proceedWithPlan")}${F.price}` : `${t("formProceed")} ${B}`,
|
|
2522
2542
|
/* @__PURE__ */ r.jsx(
|
|
2523
2543
|
M,
|
|
2524
2544
|
{
|
|
2525
2545
|
src: Ca,
|
|
2526
2546
|
alt: "",
|
|
2527
|
-
className:
|
|
2547
|
+
className: Fe.chevronRight,
|
|
2528
2548
|
width: 20,
|
|
2529
2549
|
height: 20,
|
|
2530
2550
|
loading: "lazy"
|
|
@@ -2540,7 +2560,7 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2540
2560
|
return /* @__PURE__ */ r.jsx(
|
|
2541
2561
|
Gr,
|
|
2542
2562
|
{
|
|
2543
|
-
className: `${
|
|
2563
|
+
className: `${Fe.footerContainer} ${O}`,
|
|
2544
2564
|
marquee: /* @__PURE__ */ r.jsx(Kr, { children: /* @__PURE__ */ r.jsx(ja, { t }) }),
|
|
2545
2565
|
children: S
|
|
2546
2566
|
}
|
|
@@ -2548,18 +2568,18 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2548
2568
|
}, Ea = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", Ia = ({
|
|
2549
2569
|
t,
|
|
2550
2570
|
languageSelector: o,
|
|
2551
|
-
logoUrl:
|
|
2571
|
+
logoUrl: c = Ea,
|
|
2552
2572
|
className: d = ""
|
|
2553
2573
|
}) => {
|
|
2554
|
-
const
|
|
2574
|
+
const _ = Le(), w = _?.config.isGlobal ?? !0, h = o != null && !w;
|
|
2555
2575
|
return /* @__PURE__ */ r.jsx(
|
|
2556
2576
|
Wr,
|
|
2557
2577
|
{
|
|
2558
2578
|
t,
|
|
2559
|
-
logoUrl:
|
|
2560
|
-
imageComponent:
|
|
2579
|
+
logoUrl: c,
|
|
2580
|
+
imageComponent: _?.config.imageComponent,
|
|
2561
2581
|
languageSelector: o,
|
|
2562
|
-
showLanguageSelector:
|
|
2582
|
+
showLanguageSelector: h,
|
|
2563
2583
|
className: d
|
|
2564
2584
|
}
|
|
2565
2585
|
);
|
|
@@ -2583,7 +2603,7 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2583
2603
|
) }), Da = () => /* @__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" }) }), Oa = () => /* @__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: [
|
|
2584
2604
|
/* @__PURE__ */ r.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
2585
2605
|
/* @__PURE__ */ r.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
2586
|
-
] }), Fa = "_overlay_18irl_2", Ma = "_sheet_18irl_12", $a = "_header_18irl_36", Ua = "_backBtn_18irl_48", Ga = "_title_18irl_66", Ka = "_plansContainer_18irl_78", Wa = "_planCard_18irl_87", Ha = "_withBadgeSpacing_18irl_101", Ya = "_planCardSelected_18irl_105", qa = "_planCardPopular_18irl_110", Va = "_popularBadge_18irl_119", za = "_planCardInner_18irl_137", Ja = "_planTitleRow_18irl_148", Qa = "_planTitle_18irl_148", Xa = "_radioCircle_18irl_163", Za = "_radioChecked_18irl_176", en = "_radioInner_18irl_181", rn = "_priceRow_18irl_189", tn = "_price_18irl_189", an = "_originalPrice_18irl_202", nn = "_savingsBadge_18irl_209", on = "_featureList_18irl_219", sn = "_featureItem_18irl_228", ln = "_featureIcon_18irl_234", cn = "_featureText_18irl_240", dn = "_astrologerHeading_18irl_251", un = "_astrologerList_18irl_258", mn = "_astrologerCard_18irl_274", fn = "_astrologerAvatar_18irl_290", pn = "_astrologerAvatarPlaceholder_18irl_307", hn = "_astrologerTop_18irl_313", gn = "_astrologerBasicInfo_18irl_319", _n = "_astrologerName_18irl_326", bn = "_astrologerExp_18irl_335", yn = "_astrologerDivider_18irl_341", vn = "_planDivider_18irl_347", kn = "_astrologerCertList_18irl_354", wn = "_astrologerCertItem_18irl_360", xn = "_bullet_18irl_368", Pn = "_footer_18irl_373", An = "_proceedBtn_18irl_383",
|
|
2606
|
+
] }), Fa = "_overlay_18irl_2", Ma = "_sheet_18irl_12", $a = "_header_18irl_36", Ua = "_backBtn_18irl_48", Ga = "_title_18irl_66", Ka = "_plansContainer_18irl_78", Wa = "_planCard_18irl_87", Ha = "_withBadgeSpacing_18irl_101", Ya = "_planCardSelected_18irl_105", qa = "_planCardPopular_18irl_110", Va = "_popularBadge_18irl_119", za = "_planCardInner_18irl_137", Ja = "_planTitleRow_18irl_148", Qa = "_planTitle_18irl_148", Xa = "_radioCircle_18irl_163", Za = "_radioChecked_18irl_176", en = "_radioInner_18irl_181", rn = "_priceRow_18irl_189", tn = "_price_18irl_189", an = "_originalPrice_18irl_202", nn = "_savingsBadge_18irl_209", on = "_featureList_18irl_219", sn = "_featureItem_18irl_228", ln = "_featureIcon_18irl_234", cn = "_featureText_18irl_240", dn = "_astrologerHeading_18irl_251", un = "_astrologerList_18irl_258", mn = "_astrologerCard_18irl_274", fn = "_astrologerAvatar_18irl_290", pn = "_astrologerAvatarPlaceholder_18irl_307", hn = "_astrologerTop_18irl_313", gn = "_astrologerBasicInfo_18irl_319", _n = "_astrologerName_18irl_326", bn = "_astrologerExp_18irl_335", yn = "_astrologerDivider_18irl_341", vn = "_planDivider_18irl_347", kn = "_astrologerCertList_18irl_354", wn = "_astrologerCertItem_18irl_360", xn = "_bullet_18irl_368", Pn = "_footer_18irl_373", An = "_proceedBtn_18irl_383", g = {
|
|
2587
2607
|
overlay: Fa,
|
|
2588
2608
|
sheet: Ma,
|
|
2589
2609
|
header: $a,
|
|
@@ -2625,57 +2645,57 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2625
2645
|
bullet: xn,
|
|
2626
2646
|
footer: Pn,
|
|
2627
2647
|
proceedBtn: An
|
|
2628
|
-
}, Cn = ({ title: t, onBack: o }) => /* @__PURE__ */ r.jsxs("div", { className:
|
|
2648
|
+
}, Cn = ({ title: t, onBack: o }) => /* @__PURE__ */ r.jsxs("div", { className: g.header, children: [
|
|
2629
2649
|
/* @__PURE__ */ r.jsx(
|
|
2630
2650
|
"button",
|
|
2631
2651
|
{
|
|
2632
|
-
className:
|
|
2652
|
+
className: g.backBtn,
|
|
2633
2653
|
onClick: o,
|
|
2634
2654
|
"aria-label": "Go back",
|
|
2635
2655
|
type: "button",
|
|
2636
2656
|
children: /* @__PURE__ */ r.jsx(Da, {})
|
|
2637
2657
|
}
|
|
2638
2658
|
),
|
|
2639
|
-
/* @__PURE__ */ r.jsx("h2", { className:
|
|
2640
|
-
] }), jn = ({ features: t, t: o }) => /* @__PURE__ */ r.jsx("ul", { className:
|
|
2641
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2659
|
+
/* @__PURE__ */ r.jsx("h2", { className: g.title, children: t })
|
|
2660
|
+
] }), jn = ({ features: t, t: o }) => /* @__PURE__ */ r.jsx("ul", { className: g.featureList, "aria-label": "Plan features", children: t.map((c, d) => /* @__PURE__ */ r.jsxs("li", { className: g.featureItem, children: [
|
|
2661
|
+
/* @__PURE__ */ r.jsx("span", { className: g.featureIcon, children: c.included ? /* @__PURE__ */ r.jsx(La, {}) : /* @__PURE__ */ r.jsx(Ba, {}) }),
|
|
2642
2662
|
/* @__PURE__ */ r.jsx(
|
|
2643
2663
|
"span",
|
|
2644
2664
|
{
|
|
2645
|
-
className: `${
|
|
2646
|
-
children: o?.(
|
|
2665
|
+
className: `${g.featureText} `,
|
|
2666
|
+
children: o?.(c.text) ?? c.text
|
|
2647
2667
|
}
|
|
2648
2668
|
)
|
|
2649
|
-
] }, d)) }), Tn = ({ astrologer: t, t: o }) => /* @__PURE__ */ r.jsxs("div", { className:
|
|
2650
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
2651
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2652
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
2653
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
2654
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
2669
|
+
] }, d)) }), Tn = ({ astrologer: t, t: o }) => /* @__PURE__ */ r.jsxs("div", { className: g.astrologerCard, children: [
|
|
2670
|
+
/* @__PURE__ */ r.jsxs("div", { className: g.astrologerTop, children: [
|
|
2671
|
+
/* @__PURE__ */ r.jsx("div", { className: g.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: g.astrologerAvatarPlaceholder, children: t.name.charAt(0) }) }),
|
|
2672
|
+
/* @__PURE__ */ r.jsxs("div", { className: g.astrologerBasicInfo, children: [
|
|
2673
|
+
/* @__PURE__ */ r.jsx("p", { className: g.astrologerName, children: o?.(t.name) ?? t.name }),
|
|
2674
|
+
/* @__PURE__ */ r.jsx("p", { className: g.astrologerExp, children: o?.(t.experience) ?? t.experience })
|
|
2655
2675
|
] })
|
|
2656
2676
|
] }),
|
|
2657
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2658
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2659
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2677
|
+
/* @__PURE__ */ r.jsx("div", { className: g.astrologerDivider }),
|
|
2678
|
+
/* @__PURE__ */ r.jsx("div", { className: g.astrologerCertList, children: t.certifications.map((c, d) => /* @__PURE__ */ r.jsxs("p", { className: g.astrologerCertItem, children: [
|
|
2679
|
+
/* @__PURE__ */ r.jsx("span", { className: g.bullet, children: "•" }),
|
|
2660
2680
|
" ",
|
|
2661
|
-
o?.(
|
|
2681
|
+
o?.(c) ?? c
|
|
2662
2682
|
] }, d)) })
|
|
2663
|
-
] }), Nn = ({ label: t }) => /* @__PURE__ */ r.jsxs("div", { className:
|
|
2683
|
+
] }), Nn = ({ label: t }) => /* @__PURE__ */ r.jsxs("div", { className: g.popularBadge, "aria-label": t, children: [
|
|
2664
2684
|
/* @__PURE__ */ r.jsx(Oa, {}),
|
|
2665
2685
|
/* @__PURE__ */ r.jsx("span", { children: t })
|
|
2666
|
-
] }), Sn = ({ plan: t, isSelected: o, onSelect:
|
|
2667
|
-
const
|
|
2668
|
-
(
|
|
2686
|
+
] }), Sn = ({ plan: t, isSelected: o, onSelect: c, t: d }) => {
|
|
2687
|
+
const _ = () => c(t.id), w = (h) => {
|
|
2688
|
+
(h.key === " " || h.key === "Enter") && (h.preventDefault(), c(t.id));
|
|
2669
2689
|
};
|
|
2670
2690
|
return /* @__PURE__ */ r.jsxs(
|
|
2671
2691
|
"div",
|
|
2672
2692
|
{
|
|
2673
2693
|
className: [
|
|
2674
|
-
|
|
2675
|
-
o ?
|
|
2676
|
-
o &&
|
|
2694
|
+
g.planCard,
|
|
2695
|
+
o ? g.planCardSelected : "",
|
|
2696
|
+
o && g.planCardPopular
|
|
2677
2697
|
].filter(Boolean).join(" "),
|
|
2678
|
-
onClick:
|
|
2698
|
+
onClick: _,
|
|
2679
2699
|
role: "radio",
|
|
2680
2700
|
"aria-checked": o,
|
|
2681
2701
|
tabIndex: 0,
|
|
@@ -2683,28 +2703,28 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2683
2703
|
"data-plan-id": t.id,
|
|
2684
2704
|
children: [
|
|
2685
2705
|
t.badge && /* @__PURE__ */ r.jsx(Nn, { label: d?.(t.badge) ?? t.badge }),
|
|
2686
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
2687
|
-
/* @__PURE__ */ r.jsxs("div", { className: `${
|
|
2688
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2706
|
+
/* @__PURE__ */ r.jsxs("div", { className: g.planCardInner, children: [
|
|
2707
|
+
/* @__PURE__ */ r.jsxs("div", { className: `${g.planTitleRow} ${t.badge ? g.withBadgeSpacing : ""}`, children: [
|
|
2708
|
+
/* @__PURE__ */ r.jsx("span", { className: g.planTitle, children: d?.(t.title) ?? t.title }),
|
|
2689
2709
|
/* @__PURE__ */ r.jsx(
|
|
2690
2710
|
"span",
|
|
2691
2711
|
{
|
|
2692
|
-
className: `${
|
|
2712
|
+
className: `${g.radioCircle} ${o ? g.radioChecked : ""}`,
|
|
2693
2713
|
"aria-hidden": !0,
|
|
2694
|
-
children: o && /* @__PURE__ */ r.jsx("span", { className:
|
|
2714
|
+
children: o && /* @__PURE__ */ r.jsx("span", { className: g.radioInner })
|
|
2695
2715
|
}
|
|
2696
2716
|
)
|
|
2697
2717
|
] }),
|
|
2698
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
2699
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2700
|
-
t.originalPrice && /* @__PURE__ */ r.jsx("span", { className:
|
|
2701
|
-
t.savingsLabel && /* @__PURE__ */ r.jsx("span", { className:
|
|
2718
|
+
/* @__PURE__ */ r.jsxs("div", { className: g.priceRow, children: [
|
|
2719
|
+
/* @__PURE__ */ r.jsx("span", { className: g.price, children: t.price }),
|
|
2720
|
+
t.originalPrice && /* @__PURE__ */ r.jsx("span", { className: g.originalPrice, children: t.originalPrice }),
|
|
2721
|
+
t.savingsLabel && /* @__PURE__ */ r.jsx("span", { className: g.savingsBadge, children: d?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
|
|
2702
2722
|
] }),
|
|
2703
2723
|
/* @__PURE__ */ r.jsx(jn, { features: t.features, t: d }),
|
|
2704
|
-
t.astrologers && /* @__PURE__ */ r.jsx("div", { className:
|
|
2724
|
+
t.astrologers && /* @__PURE__ */ r.jsx("div", { className: g.planDivider }),
|
|
2705
2725
|
t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2706
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
2707
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2726
|
+
/* @__PURE__ */ r.jsx("p", { className: g.astrologerHeading, children: d?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
|
|
2727
|
+
/* @__PURE__ */ r.jsx("div", { className: g.astrologerList, role: "list", children: t.astrologers.map((h, T) => /* @__PURE__ */ r.jsx("div", { role: "listitem", children: /* @__PURE__ */ r.jsx(Tn, { astrologer: h, t: d }) }, T)) })
|
|
2708
2728
|
] })
|
|
2709
2729
|
] })
|
|
2710
2730
|
]
|
|
@@ -2771,28 +2791,28 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2771
2791
|
], In = ({
|
|
2772
2792
|
isOpen: t,
|
|
2773
2793
|
onClose: o,
|
|
2774
|
-
selectedPlan:
|
|
2794
|
+
selectedPlan: c,
|
|
2775
2795
|
onSelectPlan: d,
|
|
2776
|
-
plans:
|
|
2796
|
+
plans: _,
|
|
2777
2797
|
onProceed: w,
|
|
2778
|
-
t:
|
|
2779
|
-
analytics:
|
|
2798
|
+
t: h,
|
|
2799
|
+
analytics: T
|
|
2780
2800
|
}) => {
|
|
2781
|
-
const
|
|
2782
|
-
|
|
2801
|
+
const O = Le()?.config.isGlobal ?? !0, x = _ ?? En(O), E = c?.id || x.find((p) => p.badge)?.id || x[0]?.id || "", u = K(null), I = K(null), b = K(!1);
|
|
2802
|
+
z(() => {
|
|
2783
2803
|
if (t) {
|
|
2784
|
-
if (!
|
|
2804
|
+
if (!c) {
|
|
2785
2805
|
const p = x.find((m) => m.badge) ?? x[0];
|
|
2786
2806
|
p && d(p);
|
|
2787
2807
|
}
|
|
2788
|
-
b.current || (
|
|
2808
|
+
b.current || (T?.trackPlanPageViewed?.(), b.current = !0);
|
|
2789
2809
|
} else
|
|
2790
2810
|
b.current = !1;
|
|
2791
|
-
}, [t, x,
|
|
2811
|
+
}, [t, x, c, d, T]);
|
|
2792
2812
|
const F = () => {
|
|
2793
|
-
|
|
2813
|
+
T?.trackPlanPageClosed?.(), o();
|
|
2794
2814
|
};
|
|
2795
|
-
return
|
|
2815
|
+
return z(() => {
|
|
2796
2816
|
if (!t) return;
|
|
2797
2817
|
const p = document.body.style.overflow;
|
|
2798
2818
|
return document.body.style.overflow = "hidden", () => {
|
|
@@ -2801,20 +2821,20 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2801
2821
|
}, [t]), t ? /* @__PURE__ */ r.jsx(
|
|
2802
2822
|
"div",
|
|
2803
2823
|
{
|
|
2804
|
-
className:
|
|
2824
|
+
className: g.overlay,
|
|
2805
2825
|
role: "dialog",
|
|
2806
2826
|
"aria-modal": "true",
|
|
2807
|
-
"aria-label":
|
|
2827
|
+
"aria-label": h?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
2808
2828
|
children: /* @__PURE__ */ r.jsxs(
|
|
2809
2829
|
"div",
|
|
2810
2830
|
{
|
|
2811
2831
|
ref: u,
|
|
2812
|
-
className:
|
|
2832
|
+
className: g.sheet,
|
|
2813
2833
|
children: [
|
|
2814
2834
|
/* @__PURE__ */ r.jsx(
|
|
2815
2835
|
Cn,
|
|
2816
2836
|
{
|
|
2817
|
-
title:
|
|
2837
|
+
title: h?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
2818
2838
|
onBack: F
|
|
2819
2839
|
}
|
|
2820
2840
|
),
|
|
@@ -2822,18 +2842,18 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2822
2842
|
"div",
|
|
2823
2843
|
{
|
|
2824
2844
|
ref: I,
|
|
2825
|
-
className:
|
|
2845
|
+
className: g.plansContainer,
|
|
2826
2846
|
role: "radiogroup",
|
|
2827
2847
|
"aria-label": "Kundli plans",
|
|
2828
2848
|
children: x.map((p) => /* @__PURE__ */ r.jsx(
|
|
2829
2849
|
Sn,
|
|
2830
2850
|
{
|
|
2831
2851
|
plan: p,
|
|
2832
|
-
isSelected: p.id ===
|
|
2833
|
-
t:
|
|
2852
|
+
isSelected: p.id === E,
|
|
2853
|
+
t: h,
|
|
2834
2854
|
onSelect: (m) => {
|
|
2835
|
-
const y = x.find((
|
|
2836
|
-
y && (
|
|
2855
|
+
const y = x.find((J) => J.id === m);
|
|
2856
|
+
y && (T?.trackPlanSelected?.({
|
|
2837
2857
|
planId: y.id,
|
|
2838
2858
|
planName: y.title
|
|
2839
2859
|
}), d(y));
|
|
@@ -2843,18 +2863,18 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2843
2863
|
))
|
|
2844
2864
|
}
|
|
2845
2865
|
),
|
|
2846
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2866
|
+
/* @__PURE__ */ r.jsx("div", { className: g.footer, children: /* @__PURE__ */ r.jsx(
|
|
2847
2867
|
"button",
|
|
2848
2868
|
{
|
|
2849
|
-
className:
|
|
2850
|
-
disabled: !
|
|
2869
|
+
className: g.proceedBtn,
|
|
2870
|
+
disabled: !c,
|
|
2851
2871
|
onClick: () => {
|
|
2852
|
-
|
|
2853
|
-
planId:
|
|
2854
|
-
planName:
|
|
2855
|
-
}), w(
|
|
2872
|
+
c && (T?.trackPlanProceedClicked?.({
|
|
2873
|
+
planId: c.id,
|
|
2874
|
+
planName: c.title
|
|
2875
|
+
}), w(c), o());
|
|
2856
2876
|
},
|
|
2857
|
-
children:
|
|
2877
|
+
children: c ? h?.("planProceedToPayment") ?? c.price + "Proceed to Payment" : "Select a plan"
|
|
2858
2878
|
}
|
|
2859
2879
|
) })
|
|
2860
2880
|
]
|
|
@@ -2875,170 +2895,173 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
2875
2895
|
}, Wn = ({
|
|
2876
2896
|
className: t = "",
|
|
2877
2897
|
locale: o,
|
|
2878
|
-
showLanguageSelector:
|
|
2898
|
+
showLanguageSelector: c = !0,
|
|
2879
2899
|
onBack: d,
|
|
2880
|
-
initialValues:
|
|
2900
|
+
initialValues: _,
|
|
2881
2901
|
onProceed: w,
|
|
2882
|
-
onProceedGuidance:
|
|
2883
|
-
proceedHref:
|
|
2902
|
+
onProceedGuidance: h,
|
|
2903
|
+
proceedHref: T,
|
|
2884
2904
|
originalPriceLabel: v,
|
|
2885
|
-
discountedPriceLabel:
|
|
2905
|
+
discountedPriceLabel: O,
|
|
2886
2906
|
googleMapsApiKey: x = "",
|
|
2887
|
-
atlasSearchLocalities:
|
|
2907
|
+
atlasSearchLocalities: E,
|
|
2888
2908
|
googleMapsAutocompleteEnabled: u,
|
|
2889
2909
|
analytics: I
|
|
2890
2910
|
}) => {
|
|
2891
|
-
const b =
|
|
2911
|
+
const b = Le(), F = Vr(), p = b !== null, m = p ? b.locale : o, y = m ?? F?.locale ?? "en", [J, V] = $(y), W = p ? b.locale : J, B = p ? b.setLocale : V, [M, A] = $(!1), S = K(null), ee = K(m), U = K(
|
|
2892
2912
|
F?.locale
|
|
2893
2913
|
);
|
|
2894
|
-
|
|
2914
|
+
z(() => {
|
|
2895
2915
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
2896
2916
|
}, []);
|
|
2897
|
-
const
|
|
2898
|
-
|
|
2899
|
-
m &&
|
|
2900
|
-
}, [m, B]),
|
|
2917
|
+
const D = (C) => Bn(W, C);
|
|
2918
|
+
z(() => {
|
|
2919
|
+
m && ee.current !== m && B(m), ee.current = m;
|
|
2920
|
+
}, [m, B]), z(() => {
|
|
2901
2921
|
if (m) return;
|
|
2902
|
-
const
|
|
2903
|
-
|
|
2922
|
+
const C = F?.locale;
|
|
2923
|
+
C && U.current !== C && B(C), U.current = C;
|
|
2904
2924
|
}, [F?.locale, m, B]);
|
|
2905
|
-
const [
|
|
2925
|
+
const [j, H] = $({
|
|
2906
2926
|
...Dn,
|
|
2907
|
-
...
|
|
2908
|
-
phone:
|
|
2909
|
-
}),
|
|
2910
|
-
|
|
2927
|
+
..._,
|
|
2928
|
+
phone: _?.phone ?? ""
|
|
2929
|
+
}), Y = p ? b?.config.isGlobal ?? !0 : !0, [te, ne] = $(
|
|
2930
|
+
Y ? "+1" : "+91"
|
|
2911
2931
|
);
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
}, [
|
|
2915
|
-
const
|
|
2916
|
-
|
|
2932
|
+
z(() => {
|
|
2933
|
+
ne(Y ? "+1" : "+91");
|
|
2934
|
+
}, [Y]);
|
|
2935
|
+
const oe = p ? b.formValues : j, ue = p ? b.setFormValues : H, me = p ? b.goToPage : d, re = p ? b.onProceed : w, Q = p ? b.onProceedGuidance : h, ge = p ? b.config.proceedHref : T, ve = p ? b.config.originalPriceLabel : v, ye = p ? b.config.discountedPriceLabel : O, ie = p ? b.config.showLanguageSelector ?? !0 : c, se = (p ? b?.config?.analytics : I) ?? I;
|
|
2936
|
+
z(() => {
|
|
2917
2937
|
if (!M) return;
|
|
2918
|
-
const
|
|
2919
|
-
S.current && !S.current.contains(
|
|
2938
|
+
const C = (Pe) => {
|
|
2939
|
+
S.current && !S.current.contains(Pe.target) && A(!1);
|
|
2920
2940
|
};
|
|
2921
|
-
return document.addEventListener("mousedown",
|
|
2941
|
+
return document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
|
|
2922
2942
|
}, [M]);
|
|
2923
|
-
const [
|
|
2924
|
-
|
|
2925
|
-
}, []),
|
|
2926
|
-
if (
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2943
|
+
const [le, fe] = $(!1), [X, Te] = $(null), Z = K(null), ke = be((C) => {
|
|
2944
|
+
Z.current = C, fe(!0);
|
|
2945
|
+
}, []), we = be(() => {
|
|
2946
|
+
if (!Z.current || !X) return;
|
|
2947
|
+
se?.trackPlanProceedClicked?.({
|
|
2948
|
+
planId: X.id,
|
|
2949
|
+
planName: X.title,
|
|
2950
|
+
price: X.price,
|
|
2951
|
+
currency: Y ? "USD" : "INR"
|
|
2952
|
+
});
|
|
2953
|
+
const C = { ...Z.current, _selectedPlan: X };
|
|
2954
|
+
X.id === wr && Q ? Q(C) : re?.(C), fe(!1), Z.current = null;
|
|
2955
|
+
}, [X, re, Q]), xe = b?.config.imageComponent ?? He, ce = ie ? /* @__PURE__ */ r.jsxs("div", { className: _e.langDropdownWrap, ref: S, children: [
|
|
2933
2956
|
/* @__PURE__ */ r.jsxs(
|
|
2934
2957
|
"button",
|
|
2935
2958
|
{
|
|
2936
2959
|
type: "button",
|
|
2937
|
-
className:
|
|
2960
|
+
className: _e.langTrigger,
|
|
2938
2961
|
onClick: () => {
|
|
2939
|
-
|
|
2962
|
+
se?.trackLanguageClickedFe?.({ language: W }), A((C) => !C);
|
|
2940
2963
|
},
|
|
2941
2964
|
"aria-expanded": M,
|
|
2942
2965
|
"aria-haspopup": "listbox",
|
|
2943
2966
|
id: "kundli-form-lang",
|
|
2944
|
-
"aria-label":
|
|
2967
|
+
"aria-label": D("language"),
|
|
2945
2968
|
children: [
|
|
2946
2969
|
/* @__PURE__ */ r.jsx(
|
|
2947
|
-
|
|
2970
|
+
xe,
|
|
2948
2971
|
{
|
|
2949
2972
|
src: Ln,
|
|
2950
2973
|
alt: "",
|
|
2951
|
-
className:
|
|
2974
|
+
className: _e.langIcon,
|
|
2952
2975
|
width: 16,
|
|
2953
2976
|
height: 16,
|
|
2954
2977
|
loading: "eager"
|
|
2955
2978
|
}
|
|
2956
2979
|
),
|
|
2957
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
2980
|
+
/* @__PURE__ */ r.jsx("span", { className: _e.langLabel, children: ur[W] })
|
|
2958
2981
|
]
|
|
2959
2982
|
}
|
|
2960
2983
|
),
|
|
2961
2984
|
M && /* @__PURE__ */ r.jsx(
|
|
2962
2985
|
"ul",
|
|
2963
2986
|
{
|
|
2964
|
-
className:
|
|
2987
|
+
className: _e.langMenu,
|
|
2965
2988
|
role: "listbox",
|
|
2966
2989
|
"aria-labelledby": "kundli-form-lang",
|
|
2967
|
-
"aria-activedescendant": `kundli-form-lang-option-${
|
|
2968
|
-
children: gr.map((
|
|
2990
|
+
"aria-activedescendant": `kundli-form-lang-option-${W}`,
|
|
2991
|
+
children: gr.map((C) => /* @__PURE__ */ r.jsx(
|
|
2969
2992
|
"li",
|
|
2970
2993
|
{
|
|
2971
|
-
id: `kundli-form-lang-option-${
|
|
2994
|
+
id: `kundli-form-lang-option-${C}`,
|
|
2972
2995
|
role: "option",
|
|
2973
|
-
"aria-selected":
|
|
2974
|
-
className:
|
|
2996
|
+
"aria-selected": C === W,
|
|
2997
|
+
className: _e.langOption,
|
|
2975
2998
|
onClick: () => {
|
|
2976
|
-
|
|
2999
|
+
se?.trackLanguageChangedFe?.({ newLanguage: C }), B(C), A(!1);
|
|
2977
3000
|
},
|
|
2978
|
-
children: ur[
|
|
3001
|
+
children: ur[C]
|
|
2979
3002
|
},
|
|
2980
|
-
|
|
3003
|
+
C
|
|
2981
3004
|
))
|
|
2982
3005
|
}
|
|
2983
3006
|
)
|
|
2984
3007
|
] }) : null;
|
|
2985
|
-
return /* @__PURE__ */ r.jsxs("div", { className: `${
|
|
3008
|
+
return /* @__PURE__ */ r.jsxs("div", { className: `${_e.container} ${t}`, children: [
|
|
2986
3009
|
/* @__PURE__ */ r.jsx(
|
|
2987
3010
|
Ia,
|
|
2988
3011
|
{
|
|
2989
|
-
t:
|
|
3012
|
+
t: D,
|
|
2990
3013
|
logoUrl: p ? b.config.logoUrl : void 0,
|
|
2991
|
-
languageSelector:
|
|
2992
|
-
className:
|
|
3014
|
+
languageSelector: ce,
|
|
3015
|
+
className: _e.kundliHeaderNoBorder
|
|
2993
3016
|
}
|
|
2994
3017
|
),
|
|
2995
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2996
|
-
/* @__PURE__ */ r.jsxs("main", { className:
|
|
2997
|
-
/* @__PURE__ */ r.jsx(mt, { t:
|
|
3018
|
+
/* @__PURE__ */ r.jsx("div", { className: _e.headerSeparator, "aria-hidden": !0 }),
|
|
3019
|
+
/* @__PURE__ */ r.jsxs("main", { className: _e.main, children: [
|
|
3020
|
+
/* @__PURE__ */ r.jsx(mt, { t: D, onBack: me }),
|
|
2998
3021
|
/* @__PURE__ */ r.jsx(
|
|
2999
3022
|
ba,
|
|
3000
3023
|
{
|
|
3001
|
-
t:
|
|
3002
|
-
values:
|
|
3003
|
-
onChange:
|
|
3024
|
+
t: D,
|
|
3025
|
+
values: oe,
|
|
3026
|
+
onChange: ue,
|
|
3004
3027
|
googleMapsApiKey: x,
|
|
3005
|
-
atlasSearchLocalities:
|
|
3028
|
+
atlasSearchLocalities: E,
|
|
3006
3029
|
googleMapsAutocompleteEnabled: u,
|
|
3007
|
-
phoneIsdCode:
|
|
3008
|
-
onPhoneIsdCodeChange:
|
|
3030
|
+
phoneIsdCode: te,
|
|
3031
|
+
onPhoneIsdCodeChange: ne
|
|
3009
3032
|
}
|
|
3010
3033
|
)
|
|
3011
3034
|
] }),
|
|
3012
3035
|
/* @__PURE__ */ r.jsx(
|
|
3013
3036
|
Ra,
|
|
3014
3037
|
{
|
|
3015
|
-
t:
|
|
3016
|
-
values:
|
|
3017
|
-
phoneIsdCode:
|
|
3018
|
-
onProceed:
|
|
3019
|
-
onProceedGuidance:
|
|
3020
|
-
href:
|
|
3021
|
-
originalPriceLabel:
|
|
3022
|
-
discountedPriceLabel:
|
|
3023
|
-
analytics:
|
|
3024
|
-
showPlanSheet:
|
|
3025
|
-
confirmPlan:
|
|
3026
|
-
planSheetOpen:
|
|
3027
|
-
selectedPlan:
|
|
3038
|
+
t: D,
|
|
3039
|
+
values: oe,
|
|
3040
|
+
phoneIsdCode: te,
|
|
3041
|
+
onProceed: re,
|
|
3042
|
+
onProceedGuidance: Q,
|
|
3043
|
+
href: ge,
|
|
3044
|
+
originalPriceLabel: ve,
|
|
3045
|
+
discountedPriceLabel: ye,
|
|
3046
|
+
analytics: se,
|
|
3047
|
+
showPlanSheet: ke,
|
|
3048
|
+
confirmPlan: we,
|
|
3049
|
+
planSheetOpen: le,
|
|
3050
|
+
selectedPlan: X
|
|
3028
3051
|
}
|
|
3029
3052
|
),
|
|
3030
3053
|
b?.config.variant === "v1" && /* @__PURE__ */ r.jsx(
|
|
3031
3054
|
In,
|
|
3032
3055
|
{
|
|
3033
|
-
isOpen:
|
|
3034
|
-
onClose: () =>
|
|
3035
|
-
selectedPlan:
|
|
3036
|
-
onSelectPlan:
|
|
3037
|
-
onProceed: (
|
|
3038
|
-
|
|
3056
|
+
isOpen: le,
|
|
3057
|
+
onClose: () => fe(!1),
|
|
3058
|
+
selectedPlan: X,
|
|
3059
|
+
onSelectPlan: Te,
|
|
3060
|
+
onProceed: () => {
|
|
3061
|
+
we?.();
|
|
3039
3062
|
},
|
|
3040
|
-
t:
|
|
3041
|
-
analytics:
|
|
3063
|
+
t: D,
|
|
3064
|
+
analytics: se
|
|
3042
3065
|
}
|
|
3043
3066
|
)
|
|
3044
3067
|
] });
|
|
@@ -3079,10 +3102,17 @@ const kr = 10, Ze = (t) => t.replace(/\D/g, ""), pr = (t) => Ze(t).slice(0, kr),
|
|
|
3079
3102
|
/** Legacy / alias: when landing page is viewed */
|
|
3080
3103
|
kundli_page_view: "kundli_page_view",
|
|
3081
3104
|
/** Legacy / alias: when L1 form page is viewed (same as l1_page_opened) */
|
|
3082
|
-
kundli_form_view: "kundli_form_view"
|
|
3105
|
+
kundli_form_view: "kundli_form_view",
|
|
3106
|
+
/** 3-SKU: sample report viewed for the 1-question plan */
|
|
3107
|
+
one_question_view_sample_report_clicked: "1_question_view_sample_report_clicked",
|
|
3108
|
+
one_question_view_sample_report_closed: "1_question_view_sample_report_closed",
|
|
3109
|
+
/** Sample image modal events */
|
|
3110
|
+
kundli_view_sample_image_clicked: "kundli_view_sample_image_clicked",
|
|
3111
|
+
kundli_view_sample_image_closed: "kundli_view_sample_image_closed"
|
|
3083
3112
|
};
|
|
3084
3113
|
export {
|
|
3085
|
-
|
|
3114
|
+
Da as C,
|
|
3115
|
+
He as D,
|
|
3086
3116
|
mt as F,
|
|
3087
3117
|
Mn as I,
|
|
3088
3118
|
Hn as K,
|
|
@@ -3091,15 +3121,15 @@ export {
|
|
|
3091
3121
|
gr as S,
|
|
3092
3122
|
ba as U,
|
|
3093
3123
|
yr as a,
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3124
|
+
Ze as b,
|
|
3125
|
+
Gn as c,
|
|
3126
|
+
st as d,
|
|
3127
|
+
lt as e,
|
|
3128
|
+
Le as f,
|
|
3099
3129
|
ot as g,
|
|
3100
|
-
|
|
3130
|
+
Kn as h,
|
|
3101
3131
|
Un as i,
|
|
3102
|
-
|
|
3132
|
+
Wn as j,
|
|
3103
3133
|
r as k,
|
|
3104
3134
|
Ia as l,
|
|
3105
3135
|
Ra as m,
|
|
@@ -3109,4 +3139,4 @@ export {
|
|
|
3109
3139
|
_r as t,
|
|
3110
3140
|
Vr as u
|
|
3111
3141
|
};
|
|
3112
|
-
//# sourceMappingURL=analytics-
|
|
3142
|
+
//# sourceMappingURL=analytics-C_LPWd_f.js.map
|