@srimandir/kundli-generator 7.6.4 → 7.6.6
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-sKjiagpc.js → analytics-DOMI7QBu.js} +454 -456
- package/dist/analytics-DOMI7QBu.js.map +1 -0
- package/dist/{criticalCss-Cc_9YRFI.js → criticalCss-88cUGBe_.js} +2 -2
- package/dist/{criticalCss-Cc_9YRFI.js.map → criticalCss-88cUGBe_.js.map} +1 -1
- package/dist/form-entry.js +1 -1
- package/dist/kundli-generator.js +2 -2
- package/dist/page-entry.js +2 -2
- package/package.json +2 -2
- package/dist/analytics-sKjiagpc.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import na, { useContext as oa, createContext as Ta, useState as I, useRef as
|
|
2
|
-
import { FormSectionHeader as
|
|
1
|
+
import na, { useContext as oa, createContext as Ta, useState as I, useRef as U, useEffect as q, useMemo as Be, useCallback as Ce, Fragment as Va } from "react";
|
|
2
|
+
import { FormSectionHeader as Ja, FooterCTAButton as za, FooterShell as Qa, CircularMarquee as Xa, footerShellStyles as Ee, PageHeader as Za } from "@srimandir/astrology-common";
|
|
3
3
|
var Ve = { exports: {} }, He = {};
|
|
4
4
|
var ga;
|
|
5
|
-
function
|
|
5
|
+
function et() {
|
|
6
6
|
if (ga) return He;
|
|
7
7
|
ga = 1;
|
|
8
8
|
var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.fragment"), p = Object.prototype.hasOwnProperty, d = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
@@ -17,7 +17,7 @@ function at() {
|
|
|
17
17
|
}
|
|
18
18
|
var We = {};
|
|
19
19
|
var ba;
|
|
20
|
-
function
|
|
20
|
+
function at() {
|
|
21
21
|
return ba || (ba = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
22
|
var t = na, n = /* @__PURE__ */ Symbol.for("react.element"), s = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), d = /* @__PURE__ */ Symbol.for("react.strict_mode"), h = /* @__PURE__ */ Symbol.for("react.profiler"), _ = /* @__PURE__ */ Symbol.for("react.provider"), P = /* @__PURE__ */ Symbol.for("react.context"), k = /* @__PURE__ */ Symbol.for("react.forward_ref"), Y = /* @__PURE__ */ Symbol.for("react.suspense"), M = /* @__PURE__ */ Symbol.for("react.suspense_list"), R = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), C = /* @__PURE__ */ Symbol.for("react.offscreen"), A = Symbol.iterator, z = "@@iterator";
|
|
23
23
|
function v(a) {
|
|
@@ -36,29 +36,29 @@ function tt() {
|
|
|
36
36
|
}
|
|
37
37
|
function oe(a, l, u) {
|
|
38
38
|
{
|
|
39
|
-
var T = y.ReactDebugCurrentFrame,
|
|
40
|
-
|
|
39
|
+
var T = y.ReactDebugCurrentFrame, H = T.getStackAddendum();
|
|
40
|
+
H !== "" && (l += "%s", u = u.concat([H]));
|
|
41
41
|
var J = u.map(function(F) {
|
|
42
42
|
return String(F);
|
|
43
43
|
});
|
|
44
44
|
J.unshift("Warning: " + l), Function.prototype.apply.call(console[a], console, J);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
var S = !1, V = !1, j = !1,
|
|
48
|
-
|
|
49
|
-
function
|
|
50
|
-
return !!(typeof a == "string" || typeof a == "function" || a === p || a === h || N || a === d || a === Y || a === M ||
|
|
47
|
+
var S = !1, V = !1, j = !1, O = !1, N = !1, G;
|
|
48
|
+
G = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
|
+
function ee(a) {
|
|
50
|
+
return !!(typeof a == "string" || typeof a == "function" || a === p || a === h || N || a === d || a === Y || a === M || O || a === C || S || V || j || typeof a == "object" && a !== null && (a.$$typeof === m || a.$$typeof === R || a.$$typeof === _ || a.$$typeof === P || a.$$typeof === k || // 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
|
-
a.$$typeof ===
|
|
54
|
+
a.$$typeof === G || a.getModuleId !== void 0));
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function ae(a, l, u) {
|
|
57
57
|
var T = a.displayName;
|
|
58
58
|
if (T)
|
|
59
59
|
return T;
|
|
60
|
-
var
|
|
61
|
-
return
|
|
60
|
+
var H = l.displayName || l.name || "";
|
|
61
|
+
return H !== "" ? u + "(" + H + ")" : u;
|
|
62
62
|
}
|
|
63
63
|
function B(a) {
|
|
64
64
|
return a.displayName || "Context";
|
|
@@ -93,12 +93,12 @@ function tt() {
|
|
|
93
93
|
var u = a;
|
|
94
94
|
return B(u._context) + ".Provider";
|
|
95
95
|
case k:
|
|
96
|
-
return
|
|
96
|
+
return ae(a, a.render, "ForwardRef");
|
|
97
97
|
case R:
|
|
98
98
|
var T = a.displayName || null;
|
|
99
99
|
return T !== null ? T : D(a.type) || "Memo";
|
|
100
100
|
case m: {
|
|
101
|
-
var
|
|
101
|
+
var H = a, J = H._payload, F = H._init;
|
|
102
102
|
try {
|
|
103
103
|
return D(F(J));
|
|
104
104
|
} catch {
|
|
@@ -108,18 +108,18 @@ function tt() {
|
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
111
|
-
var
|
|
112
|
-
function
|
|
111
|
+
var $ = Object.assign, Q = 0, E, be, ie, de, ue, X, xe;
|
|
112
|
+
function ye() {
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
function
|
|
114
|
+
ye.__reactDisabledLog = !0;
|
|
115
|
+
function Ne() {
|
|
116
116
|
{
|
|
117
117
|
if (Q === 0) {
|
|
118
|
-
E = console.log, be = console.info, ie = console.warn,
|
|
118
|
+
E = console.log, be = console.info, ie = console.warn, de = console.error, ue = console.group, X = console.groupCollapsed, xe = console.groupEnd;
|
|
119
119
|
var a = {
|
|
120
120
|
configurable: !0,
|
|
121
121
|
enumerable: !0,
|
|
122
|
-
value:
|
|
122
|
+
value: ye,
|
|
123
123
|
writable: !0
|
|
124
124
|
};
|
|
125
125
|
Object.defineProperties(console, {
|
|
@@ -135,7 +135,7 @@ function tt() {
|
|
|
135
135
|
Q++;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function he() {
|
|
139
139
|
{
|
|
140
140
|
if (Q--, Q === 0) {
|
|
141
141
|
var a = {
|
|
@@ -144,53 +144,53 @@ function tt() {
|
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
147
|
-
log:
|
|
147
|
+
log: $({}, a, {
|
|
148
148
|
value: E
|
|
149
149
|
}),
|
|
150
|
-
info:
|
|
150
|
+
info: $({}, a, {
|
|
151
151
|
value: be
|
|
152
152
|
}),
|
|
153
|
-
warn:
|
|
153
|
+
warn: $({}, a, {
|
|
154
154
|
value: ie
|
|
155
155
|
}),
|
|
156
|
-
error:
|
|
157
|
-
value: ue
|
|
158
|
-
}),
|
|
159
|
-
group: H({}, a, {
|
|
156
|
+
error: $({}, a, {
|
|
160
157
|
value: de
|
|
161
158
|
}),
|
|
162
|
-
|
|
163
|
-
value:
|
|
159
|
+
group: $({}, a, {
|
|
160
|
+
value: ue
|
|
161
|
+
}),
|
|
162
|
+
groupCollapsed: $({}, a, {
|
|
163
|
+
value: X
|
|
164
164
|
}),
|
|
165
|
-
groupEnd:
|
|
166
|
-
value:
|
|
165
|
+
groupEnd: $({}, a, {
|
|
166
|
+
value: xe
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
170
|
Q < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
var
|
|
173
|
+
var Z = y.ReactCurrentDispatcher, W;
|
|
174
174
|
function ge(a, l, u) {
|
|
175
175
|
{
|
|
176
|
-
if (
|
|
176
|
+
if (W === void 0)
|
|
177
177
|
try {
|
|
178
178
|
throw Error();
|
|
179
|
-
} catch (
|
|
180
|
-
var T =
|
|
181
|
-
|
|
179
|
+
} catch (H) {
|
|
180
|
+
var T = H.stack.trim().match(/\n( *(at )?)/);
|
|
181
|
+
W = T && T[1] || "";
|
|
182
182
|
}
|
|
183
183
|
return `
|
|
184
|
-
` +
|
|
184
|
+
` + W + a;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var te = !1, re;
|
|
188
188
|
{
|
|
189
|
-
var
|
|
190
|
-
re = new
|
|
189
|
+
var ce = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
|
+
re = new ce();
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
if (!a ||
|
|
192
|
+
function je(a, l) {
|
|
193
|
+
if (!a || te)
|
|
194
194
|
return "";
|
|
195
195
|
{
|
|
196
196
|
var u = re.get(a);
|
|
@@ -198,11 +198,11 @@ function tt() {
|
|
|
198
198
|
return u;
|
|
199
199
|
}
|
|
200
200
|
var T;
|
|
201
|
-
|
|
202
|
-
var
|
|
201
|
+
te = !0;
|
|
202
|
+
var H = Error.prepareStackTrace;
|
|
203
203
|
Error.prepareStackTrace = void 0;
|
|
204
204
|
var J;
|
|
205
|
-
J =
|
|
205
|
+
J = Z.current, Z.current = null, Ne();
|
|
206
206
|
try {
|
|
207
207
|
if (l) {
|
|
208
208
|
var F = function() {
|
|
@@ -215,63 +215,63 @@ function tt() {
|
|
|
215
215
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
216
216
|
try {
|
|
217
217
|
Reflect.construct(F, []);
|
|
218
|
-
} catch (
|
|
219
|
-
T =
|
|
218
|
+
} catch (Ae) {
|
|
219
|
+
T = Ae;
|
|
220
220
|
}
|
|
221
221
|
Reflect.construct(a, [], F);
|
|
222
222
|
} else {
|
|
223
223
|
try {
|
|
224
224
|
F.call();
|
|
225
|
-
} catch (
|
|
226
|
-
T =
|
|
225
|
+
} catch (Ae) {
|
|
226
|
+
T = Ae;
|
|
227
227
|
}
|
|
228
228
|
a.call(F.prototype);
|
|
229
229
|
}
|
|
230
230
|
} else {
|
|
231
231
|
try {
|
|
232
232
|
throw Error();
|
|
233
|
-
} catch (
|
|
234
|
-
T =
|
|
233
|
+
} catch (Ae) {
|
|
234
|
+
T = Ae;
|
|
235
235
|
}
|
|
236
236
|
a();
|
|
237
237
|
}
|
|
238
|
-
} catch (
|
|
239
|
-
if (
|
|
240
|
-
for (var L =
|
|
241
|
-
`),
|
|
242
|
-
`), ne = L.length - 1,
|
|
243
|
-
|
|
244
|
-
for (; ne >= 1 &&
|
|
245
|
-
if (L[ne] !==
|
|
246
|
-
if (ne !== 1 ||
|
|
238
|
+
} catch (Ae) {
|
|
239
|
+
if (Ae && T && typeof Ae.stack == "string") {
|
|
240
|
+
for (var L = Ae.stack.split(`
|
|
241
|
+
`), ke = T.stack.split(`
|
|
242
|
+
`), ne = L.length - 1, se = ke.length - 1; ne >= 1 && se >= 0 && L[ne] !== ke[se]; )
|
|
243
|
+
se--;
|
|
244
|
+
for (; ne >= 1 && se >= 0; ne--, se--)
|
|
245
|
+
if (L[ne] !== ke[se]) {
|
|
246
|
+
if (ne !== 1 || se !== 1)
|
|
247
247
|
do
|
|
248
|
-
if (ne--,
|
|
248
|
+
if (ne--, se--, se < 0 || L[ne] !== ke[se]) {
|
|
249
249
|
var we = `
|
|
250
250
|
` + L[ne].replace(" at new ", " at ");
|
|
251
251
|
return a.displayName && we.includes("<anonymous>") && (we = we.replace("<anonymous>", a.displayName)), typeof a == "function" && re.set(a, we), we;
|
|
252
252
|
}
|
|
253
|
-
while (ne >= 1 &&
|
|
253
|
+
while (ne >= 1 && se >= 0);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
} finally {
|
|
258
|
-
|
|
258
|
+
te = !1, Z.current = J, he(), Error.prepareStackTrace = H;
|
|
259
259
|
}
|
|
260
260
|
var Me = a ? a.displayName || a.name : "", De = Me ? ge(Me) : "";
|
|
261
261
|
return typeof a == "function" && re.set(a, De), De;
|
|
262
262
|
}
|
|
263
263
|
function pe(a, l, u) {
|
|
264
|
-
return
|
|
264
|
+
return je(a, !1);
|
|
265
265
|
}
|
|
266
266
|
function me(a) {
|
|
267
267
|
var l = a.prototype;
|
|
268
268
|
return !!(l && l.isReactComponent);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function Re(a, l, u) {
|
|
271
271
|
if (a == null)
|
|
272
272
|
return "";
|
|
273
273
|
if (typeof a == "function")
|
|
274
|
-
return
|
|
274
|
+
return je(a, me(a));
|
|
275
275
|
if (typeof a == "string")
|
|
276
276
|
return ge(a);
|
|
277
277
|
switch (a) {
|
|
@@ -285,41 +285,41 @@ function tt() {
|
|
|
285
285
|
case k:
|
|
286
286
|
return pe(a.render);
|
|
287
287
|
case R:
|
|
288
|
-
return
|
|
288
|
+
return Re(a.type, l, u);
|
|
289
289
|
case m: {
|
|
290
|
-
var T = a,
|
|
290
|
+
var T = a, H = T._payload, J = T._init;
|
|
291
291
|
try {
|
|
292
|
-
return
|
|
292
|
+
return Re(J(H), l, u);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
return "";
|
|
298
298
|
}
|
|
299
|
-
var
|
|
300
|
-
function
|
|
299
|
+
var ve = Object.prototype.hasOwnProperty, _e = {}, Te = y.ReactDebugCurrentFrame;
|
|
300
|
+
function Pe(a) {
|
|
301
301
|
if (a) {
|
|
302
|
-
var l = a._owner, u =
|
|
303
|
-
|
|
302
|
+
var l = a._owner, u = Re(a.type, a._source, l ? l.type : null);
|
|
303
|
+
Te.setExtraStackFrame(u);
|
|
304
304
|
} else
|
|
305
|
-
|
|
305
|
+
Te.setExtraStackFrame(null);
|
|
306
306
|
}
|
|
307
|
-
function i(a, l, u, T,
|
|
307
|
+
function i(a, l, u, T, H) {
|
|
308
308
|
{
|
|
309
|
-
var J = Function.call.bind(
|
|
309
|
+
var J = Function.call.bind(ve);
|
|
310
310
|
for (var F in a)
|
|
311
311
|
if (J(a, F)) {
|
|
312
312
|
var L = void 0;
|
|
313
313
|
try {
|
|
314
314
|
if (typeof a[F] != "function") {
|
|
315
|
-
var
|
|
316
|
-
throw
|
|
315
|
+
var ke = Error((T || "React class") + ": " + u + " type `" + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[F] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
316
|
+
throw ke.name = "Invariant Violation", ke;
|
|
317
317
|
}
|
|
318
318
|
L = a[F](l, F, T, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
319
|
} catch (ne) {
|
|
320
320
|
L = ne;
|
|
321
321
|
}
|
|
322
|
-
L && !(L instanceof Error) && (
|
|
322
|
+
L && !(L instanceof Error) && (Pe(H), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", u, F, typeof L), Pe(null)), L instanceof Error && !(L.message in _e) && (_e[L.message] = !0, Pe(H), w("Failed %s type: %s", u, L.message), Pe(null));
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
@@ -333,7 +333,7 @@ function tt() {
|
|
|
333
333
|
return u;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function le(a) {
|
|
337
337
|
try {
|
|
338
338
|
return Ge(a), !1;
|
|
339
339
|
} catch {
|
|
@@ -344,7 +344,7 @@ function tt() {
|
|
|
344
344
|
return "" + a;
|
|
345
345
|
}
|
|
346
346
|
function Oe(a) {
|
|
347
|
-
if (
|
|
347
|
+
if (le(a))
|
|
348
348
|
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", fe(a)), Ge(a);
|
|
349
349
|
}
|
|
350
350
|
var r = y.ReactCurrentOwner, c = {
|
|
@@ -354,7 +354,7 @@ function tt() {
|
|
|
354
354
|
__source: !0
|
|
355
355
|
}, K, Se;
|
|
356
356
|
function $e(a) {
|
|
357
|
-
if (
|
|
357
|
+
if (ve.call(a, "ref")) {
|
|
358
358
|
var l = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
359
359
|
if (l && l.isReactWarning)
|
|
360
360
|
return !1;
|
|
@@ -362,17 +362,17 @@ function tt() {
|
|
|
362
362
|
return a.ref !== void 0;
|
|
363
363
|
}
|
|
364
364
|
function ze(a) {
|
|
365
|
-
if (
|
|
365
|
+
if (ve.call(a, "key")) {
|
|
366
366
|
var l = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
367
367
|
if (l && l.isReactWarning)
|
|
368
368
|
return !1;
|
|
369
369
|
}
|
|
370
370
|
return a.key !== void 0;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Ba(a, l) {
|
|
373
373
|
typeof a.ref == "string" && r.current;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Da(a, l) {
|
|
376
376
|
{
|
|
377
377
|
var u = function() {
|
|
378
378
|
K || (K = !0, w("%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)", l));
|
|
@@ -383,7 +383,7 @@ function tt() {
|
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Ea(a, l) {
|
|
387
387
|
{
|
|
388
388
|
var u = function() {
|
|
389
389
|
Se || (Se = !0, w("%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)", l));
|
|
@@ -394,7 +394,7 @@ function tt() {
|
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
var
|
|
397
|
+
var Ia = function(a, l, u, T, H, J, F) {
|
|
398
398
|
var L = {
|
|
399
399
|
// This tag allows us to uniquely identify this as a React Element
|
|
400
400
|
$$typeof: n,
|
|
@@ -420,31 +420,31 @@ function tt() {
|
|
|
420
420
|
configurable: !1,
|
|
421
421
|
enumerable: !1,
|
|
422
422
|
writable: !1,
|
|
423
|
-
value:
|
|
423
|
+
value: H
|
|
424
424
|
}), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
|
|
425
425
|
};
|
|
426
|
-
function
|
|
426
|
+
function Fa(a, l, u, T, H) {
|
|
427
427
|
{
|
|
428
|
-
var J, F = {}, L = null,
|
|
429
|
-
u !== void 0 && (Oe(u), L = "" + u), ze(l) && (Oe(l.key), L = "" + l.key), $e(l) && (
|
|
428
|
+
var J, F = {}, L = null, ke = null;
|
|
429
|
+
u !== void 0 && (Oe(u), L = "" + u), ze(l) && (Oe(l.key), L = "" + l.key), $e(l) && (ke = l.ref, Ba(l, H));
|
|
430
430
|
for (J in l)
|
|
431
|
-
|
|
431
|
+
ve.call(l, J) && !c.hasOwnProperty(J) && (F[J] = l[J]);
|
|
432
432
|
if (a && a.defaultProps) {
|
|
433
433
|
var ne = a.defaultProps;
|
|
434
434
|
for (J in ne)
|
|
435
435
|
F[J] === void 0 && (F[J] = ne[J]);
|
|
436
436
|
}
|
|
437
|
-
if (L ||
|
|
438
|
-
var
|
|
439
|
-
L &&
|
|
437
|
+
if (L || ke) {
|
|
438
|
+
var se = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
439
|
+
L && Da(F, se), ke && Ea(F, se);
|
|
440
440
|
}
|
|
441
|
-
return
|
|
441
|
+
return Ia(a, L, ke, H, T, r.current, F);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
var Qe = y.ReactCurrentOwner, ca = y.ReactDebugCurrentFrame;
|
|
445
445
|
function Fe(a) {
|
|
446
446
|
if (a) {
|
|
447
|
-
var l = a._owner, u =
|
|
447
|
+
var l = a._owner, u = Re(a.type, a._source, l ? l.type : null);
|
|
448
448
|
ca.setExtraStackFrame(u);
|
|
449
449
|
} else
|
|
450
450
|
ca.setExtraStackFrame(null);
|
|
@@ -466,11 +466,11 @@ Check the render method of \`` + a + "`.";
|
|
|
466
466
|
return "";
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Ma(a) {
|
|
470
470
|
return "";
|
|
471
471
|
}
|
|
472
472
|
var ua = {};
|
|
473
|
-
function
|
|
473
|
+
function Ua(a) {
|
|
474
474
|
{
|
|
475
475
|
var l = da();
|
|
476
476
|
if (!l) {
|
|
@@ -487,7 +487,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
487
487
|
if (!a._store || a._store.validated || a.key != null)
|
|
488
488
|
return;
|
|
489
489
|
a._store.validated = !0;
|
|
490
|
-
var u =
|
|
490
|
+
var u = Ua(l);
|
|
491
491
|
if (ua[u])
|
|
492
492
|
return;
|
|
493
493
|
ua[u] = !0;
|
|
@@ -507,14 +507,14 @@ Check the top-level render call using <` + u + ">.");
|
|
|
507
507
|
else if (Ze(a))
|
|
508
508
|
a._store && (a._store.validated = !0);
|
|
509
509
|
else if (a) {
|
|
510
|
-
var
|
|
511
|
-
if (typeof
|
|
512
|
-
for (var J =
|
|
510
|
+
var H = v(a);
|
|
511
|
+
if (typeof H == "function" && H !== a.entries)
|
|
512
|
+
for (var J = H.call(a), F; !(F = J.next()).done; )
|
|
513
513
|
Ze(F.value) && pa(F.value, l);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function Ga(a) {
|
|
518
518
|
{
|
|
519
519
|
var l = a.type;
|
|
520
520
|
if (l == null || typeof l == "string")
|
|
@@ -533,13 +533,13 @@ Check the top-level render call using <` + u + ">.");
|
|
|
533
533
|
i(u, a.props, "prop", T, a);
|
|
534
534
|
} else if (l.PropTypes !== void 0 && !Xe) {
|
|
535
535
|
Xe = !0;
|
|
536
|
-
var
|
|
537
|
-
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
536
|
+
var H = D(l);
|
|
537
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", H || "Unknown");
|
|
538
538
|
}
|
|
539
539
|
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Oa(a) {
|
|
543
543
|
{
|
|
544
544
|
for (var l = Object.keys(a.props), u = 0; u < l.length; u++) {
|
|
545
545
|
var T = l[u];
|
|
@@ -552,20 +552,20 @@ Check the top-level render call using <` + u + ">.");
|
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
var fa = {};
|
|
555
|
-
function ha(a, l, u, T,
|
|
555
|
+
function ha(a, l, u, T, H, J) {
|
|
556
556
|
{
|
|
557
|
-
var F =
|
|
557
|
+
var F = ee(a);
|
|
558
558
|
if (!F) {
|
|
559
559
|
var L = "";
|
|
560
560
|
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (L += " 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
|
-
|
|
561
|
+
var ke = Ma();
|
|
562
|
+
ke ? L += ke : L += da();
|
|
563
563
|
var ne;
|
|
564
564
|
a === null ? ne = "null" : f(a) ? ne = "array" : a !== void 0 && a.$$typeof === n ? (ne = "<" + (D(a.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof a, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, L);
|
|
565
565
|
}
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
return
|
|
566
|
+
var se = Fa(a, l, u, H, J);
|
|
567
|
+
if (se == null)
|
|
568
|
+
return se;
|
|
569
569
|
if (F) {
|
|
570
570
|
var we = l.children;
|
|
571
571
|
if (we !== void 0)
|
|
@@ -579,49 +579,49 @@ Check the top-level render call using <` + u + ">.");
|
|
|
579
579
|
else
|
|
580
580
|
ma(we, a);
|
|
581
581
|
}
|
|
582
|
-
if (
|
|
583
|
-
var De = D(a),
|
|
584
|
-
return
|
|
585
|
-
}), ea =
|
|
582
|
+
if (ve.call(l, "key")) {
|
|
583
|
+
var De = D(a), Ae = Object.keys(l).filter(function(Ya) {
|
|
584
|
+
return Ya !== "key";
|
|
585
|
+
}), ea = Ae.length > 0 ? "{key: someKey, " + Ae.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
586
|
if (!fa[De + ea]) {
|
|
587
|
-
var
|
|
587
|
+
var qa = Ae.length > 0 ? "{" + Ae.join(": ..., ") + ": ...}" : "{}";
|
|
588
588
|
w(`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} />`, ea, De,
|
|
593
|
+
<%s key={someKey} {...props} />`, ea, De, qa, De), fa[De + ea] = !0;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
return a === p ?
|
|
596
|
+
return a === p ? Oa(se) : Ga(se), se;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function $a(a, l, u) {
|
|
600
600
|
return ha(a, l, u, !0);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function Ha(a, l, u) {
|
|
603
603
|
return ha(a, l, u, !1);
|
|
604
604
|
}
|
|
605
|
-
var
|
|
606
|
-
We.Fragment = p, We.jsx =
|
|
605
|
+
var Wa = Ha, Ka = $a;
|
|
606
|
+
We.Fragment = p, We.jsx = Wa, We.jsxs = Ka;
|
|
607
607
|
})()), We;
|
|
608
608
|
}
|
|
609
609
|
var _a;
|
|
610
|
-
function
|
|
611
|
-
return _a || (_a = 1, process.env.NODE_ENV === "production" ? Ve.exports =
|
|
610
|
+
function tt() {
|
|
611
|
+
return _a || (_a = 1, process.env.NODE_ENV === "production" ? Ve.exports = et() : Ve.exports = at()), Ve.exports;
|
|
612
612
|
}
|
|
613
|
-
var e =
|
|
614
|
-
const
|
|
615
|
-
container:
|
|
616
|
-
main:
|
|
617
|
-
kundliHeaderNoBorder:
|
|
618
|
-
headerSeparator:
|
|
619
|
-
langDropdownWrap:
|
|
620
|
-
langTrigger:
|
|
621
|
-
langIcon:
|
|
622
|
-
langLabel:
|
|
623
|
-
langMenu:
|
|
624
|
-
langOption:
|
|
613
|
+
var e = tt();
|
|
614
|
+
const rt = "_container_1e1th_1", nt = "_main_1e1th_7", ot = "_kundliHeaderNoBorder_1e1th_12", it = "_headerSeparator_1e1th_16", lt = "_langDropdownWrap_1e1th_21", st = "_langTrigger_1e1th_25", ct = "_langIcon_1e1th_37", dt = "_langLabel_1e1th_44", ut = "_langMenu_1e1th_49", pt = "_langOption_1e1th_55", Le = {
|
|
615
|
+
container: rt,
|
|
616
|
+
main: nt,
|
|
617
|
+
kundliHeaderNoBorder: ot,
|
|
618
|
+
headerSeparator: it,
|
|
619
|
+
langDropdownWrap: lt,
|
|
620
|
+
langTrigger: st,
|
|
621
|
+
langIcon: ct,
|
|
622
|
+
langLabel: dt,
|
|
623
|
+
langMenu: ut,
|
|
624
|
+
langOption: pt
|
|
625
625
|
}, Pa = [
|
|
626
626
|
"en",
|
|
627
627
|
"hi",
|
|
@@ -638,7 +638,7 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
638
638
|
ta: "தமிழ்",
|
|
639
639
|
te: "తెలుగు",
|
|
640
640
|
kn: "ಕನ್ನಡ"
|
|
641
|
-
},
|
|
641
|
+
}, mt = {
|
|
642
642
|
kundli: "Kundli",
|
|
643
643
|
birthChart: "Birth Chart",
|
|
644
644
|
details: "Details",
|
|
@@ -876,7 +876,7 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
876
876
|
and: "And",
|
|
877
877
|
astrologyGuidance: "Astrology Guidance",
|
|
878
878
|
selectPackage: "Select Package"
|
|
879
|
-
},
|
|
879
|
+
}, ft = {
|
|
880
880
|
kundli: "कुंडली",
|
|
881
881
|
birthChart: "जन्म कुंडली",
|
|
882
882
|
details: "विवरण",
|
|
@@ -1113,7 +1113,7 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
1113
1113
|
and: "और",
|
|
1114
1114
|
astrologyGuidance: "ज्योतिष से सलाह",
|
|
1115
1115
|
selectPackage: "पैकेज चुनें"
|
|
1116
|
-
},
|
|
1116
|
+
}, ht = {
|
|
1117
1117
|
kundli: "कुंडली",
|
|
1118
1118
|
birthChart: "जन्मकुंडली",
|
|
1119
1119
|
details: "तपशील",
|
|
@@ -1343,7 +1343,7 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
1343
1343
|
and: "आणि",
|
|
1344
1344
|
astrologyGuidance: "ज्योतिष मार्गदर्शन",
|
|
1345
1345
|
selectPackage: "पॅकेज निवडा"
|
|
1346
|
-
},
|
|
1346
|
+
}, gt = {
|
|
1347
1347
|
kundli: "કુંડળી",
|
|
1348
1348
|
birthChart: "જન્મ કુંડળી",
|
|
1349
1349
|
details: "વિગતો",
|
|
@@ -1573,7 +1573,7 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
1573
1573
|
and: "અને",
|
|
1574
1574
|
astrologyGuidance: "જ્યોતિષ માર્ગદર્શન",
|
|
1575
1575
|
selectPackage: "પેકેજ પસંદ કરો"
|
|
1576
|
-
},
|
|
1576
|
+
}, bt = {
|
|
1577
1577
|
kundli: "ಕುಂಡಲಿ",
|
|
1578
1578
|
birthChart: "ಜನ್ಮ ಕುಂಡಲಿ",
|
|
1579
1579
|
details: "ವಿವರಗಳು",
|
|
@@ -1803,7 +1803,7 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
1803
1803
|
and: "ಮತ್ತು",
|
|
1804
1804
|
astrologyGuidance: "ಜ್ಯೋತಿಷ್ಯ ಮಾರ್ಗದರ್ಶನ",
|
|
1805
1805
|
selectPackage: "ಪ್ಯಾಕೇಜ್ ಆಯ್ಕೆಮಾಡಿ"
|
|
1806
|
-
},
|
|
1806
|
+
}, _t = {
|
|
1807
1807
|
kundli: "ஜாதகம்",
|
|
1808
1808
|
birthChart: "பிறப்பு ஜாதகம்",
|
|
1809
1809
|
details: "விவரங்கள்",
|
|
@@ -2033,7 +2033,7 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
2033
2033
|
and: "மற்றும்",
|
|
2034
2034
|
astrologyGuidance: "ஜோதிட வழிகாட்டுதல்",
|
|
2035
2035
|
selectPackage: "தொகுப்பைத் தேர்ந்தெடுக்கவும்"
|
|
2036
|
-
},
|
|
2036
|
+
}, kt = {
|
|
2037
2037
|
kundli: "జాతకం",
|
|
2038
2038
|
birthChart: "జన్మ జాతకం",
|
|
2039
2039
|
details: "వివరాలు",
|
|
@@ -2264,15 +2264,15 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
2264
2264
|
astrologyGuidance: "జ్యోతిష్య మార్గదర్శకం",
|
|
2265
2265
|
selectPackage: "ప్యాకేజీని ఎంచుకోండి"
|
|
2266
2266
|
}, xa = {
|
|
2267
|
-
en:
|
|
2268
|
-
hi:
|
|
2269
|
-
mr:
|
|
2267
|
+
en: mt,
|
|
2268
|
+
hi: ft,
|
|
2269
|
+
mr: ht,
|
|
2270
2270
|
// Dropdown/type support only for now — copy falls back to English until
|
|
2271
2271
|
// real gu/ta/te/kn translations are written.
|
|
2272
|
-
gu:
|
|
2273
|
-
ta:
|
|
2274
|
-
te:
|
|
2275
|
-
kn:
|
|
2272
|
+
gu: gt,
|
|
2273
|
+
ta: _t,
|
|
2274
|
+
te: kt,
|
|
2275
|
+
kn: bt
|
|
2276
2276
|
}, Sa = Ta(null), ki = ({
|
|
2277
2277
|
locale: t,
|
|
2278
2278
|
children: n
|
|
@@ -2280,7 +2280,7 @@ const nt = "_container_1e1th_1", ot = "_main_1e1th_7", it = "_kundliHeaderNoBord
|
|
|
2280
2280
|
const p = { locale: t, t: (d) => xa[t]?.[d] };
|
|
2281
2281
|
return /* @__PURE__ */ e.jsx(Sa.Provider, { value: p, children: n });
|
|
2282
2282
|
};
|
|
2283
|
-
function
|
|
2283
|
+
function yt() {
|
|
2284
2284
|
return oa(Sa);
|
|
2285
2285
|
}
|
|
2286
2286
|
const Ye = (t) => {
|
|
@@ -2327,13 +2327,13 @@ function Ai() {
|
|
|
2327
2327
|
return !1;
|
|
2328
2328
|
}
|
|
2329
2329
|
}
|
|
2330
|
-
const
|
|
2330
|
+
const wa = "kundli_language";
|
|
2331
2331
|
function Tt() {
|
|
2332
|
-
const t = At(
|
|
2332
|
+
const t = At(wa);
|
|
2333
2333
|
return t && Pa.includes(t) ? t : null;
|
|
2334
2334
|
}
|
|
2335
2335
|
function Pt(t) {
|
|
2336
|
-
vt(
|
|
2336
|
+
vt(wa, t);
|
|
2337
2337
|
}
|
|
2338
2338
|
const ia = Ta(null), xt = {
|
|
2339
2339
|
fullName: "",
|
|
@@ -2370,39 +2370,37 @@ const ia = Ta(null), xt = {
|
|
|
2370
2370
|
ctaHref: S,
|
|
2371
2371
|
onCtaClick: V,
|
|
2372
2372
|
onBack: j,
|
|
2373
|
-
readMoreReviewsHref:
|
|
2373
|
+
readMoreReviewsHref: O,
|
|
2374
2374
|
onProceed: N,
|
|
2375
|
-
proceedHref:
|
|
2376
|
-
originalPriceLabel:
|
|
2377
|
-
discountedPriceLabel:
|
|
2375
|
+
proceedHref: G,
|
|
2376
|
+
originalPriceLabel: ee,
|
|
2377
|
+
discountedPriceLabel: ae,
|
|
2378
2378
|
discountPillLabel: B,
|
|
2379
2379
|
analytics: D,
|
|
2380
|
-
onProceedGuidance:
|
|
2380
|
+
onProceedGuidance: $,
|
|
2381
2381
|
onLocaleChange: Q,
|
|
2382
2382
|
imageComponent: E = Ye,
|
|
2383
2383
|
resolvedUtmBannerImageUrl: be,
|
|
2384
2384
|
children: ie
|
|
2385
2385
|
}) => {
|
|
2386
|
-
const ue =
|
|
2387
|
-
t ?? ue?.locale ?? "en"
|
|
2388
|
-
), [je, _e] = I({
|
|
2386
|
+
const [de, ue] = I("landing"), [X, xe] = I(t ?? "en"), [ye, Ne] = I({
|
|
2389
2387
|
...xt,
|
|
2390
2388
|
..._
|
|
2391
|
-
}),
|
|
2389
|
+
}), he = U(!0);
|
|
2392
2390
|
q(() => {
|
|
2393
2391
|
if (t) return;
|
|
2394
|
-
const
|
|
2395
|
-
|
|
2392
|
+
const re = Tt();
|
|
2393
|
+
re && xe(re);
|
|
2396
2394
|
}, []), q(() => {
|
|
2397
|
-
Pt(
|
|
2398
|
-
}, [
|
|
2399
|
-
if (
|
|
2400
|
-
|
|
2395
|
+
Pt(X);
|
|
2396
|
+
}, [X]), q(() => {
|
|
2397
|
+
if (he.current) {
|
|
2398
|
+
he.current = !1;
|
|
2401
2399
|
return;
|
|
2402
2400
|
}
|
|
2403
|
-
Q?.(
|
|
2404
|
-
}, [
|
|
2405
|
-
const
|
|
2401
|
+
Q?.(X);
|
|
2402
|
+
}, [X, Q]);
|
|
2403
|
+
const Z = Be(
|
|
2406
2404
|
() => ({
|
|
2407
2405
|
locale: t,
|
|
2408
2406
|
showLanguageSelector: n,
|
|
@@ -2427,14 +2425,14 @@ const ia = Ta(null), xt = {
|
|
|
2427
2425
|
ctaHref: S,
|
|
2428
2426
|
onCtaClick: V,
|
|
2429
2427
|
onBack: j,
|
|
2430
|
-
readMoreReviewsHref:
|
|
2428
|
+
readMoreReviewsHref: O,
|
|
2431
2429
|
onProceed: N,
|
|
2432
|
-
proceedHref:
|
|
2433
|
-
originalPriceLabel:
|
|
2434
|
-
discountedPriceLabel:
|
|
2430
|
+
proceedHref: G,
|
|
2431
|
+
originalPriceLabel: ee,
|
|
2432
|
+
discountedPriceLabel: ae,
|
|
2435
2433
|
discountPillLabel: B,
|
|
2436
2434
|
analytics: D,
|
|
2437
|
-
onProceedGuidance:
|
|
2435
|
+
onProceedGuidance: $,
|
|
2438
2436
|
onLocaleChange: Q,
|
|
2439
2437
|
imageComponent: E,
|
|
2440
2438
|
resolvedUtmBannerImageUrl: be
|
|
@@ -2463,38 +2461,38 @@ const ia = Ta(null), xt = {
|
|
|
2463
2461
|
S,
|
|
2464
2462
|
V,
|
|
2465
2463
|
j,
|
|
2466
|
-
$,
|
|
2467
|
-
N,
|
|
2468
2464
|
O,
|
|
2469
|
-
|
|
2465
|
+
N,
|
|
2466
|
+
G,
|
|
2470
2467
|
ee,
|
|
2468
|
+
ae,
|
|
2471
2469
|
B,
|
|
2472
2470
|
D,
|
|
2473
|
-
|
|
2471
|
+
$,
|
|
2474
2472
|
Q,
|
|
2475
2473
|
E,
|
|
2476
2474
|
be
|
|
2477
2475
|
]
|
|
2478
|
-
),
|
|
2479
|
-
|
|
2480
|
-
}, [
|
|
2481
|
-
|
|
2482
|
-
}, [
|
|
2476
|
+
), W = Ce(() => {
|
|
2477
|
+
ue("form");
|
|
2478
|
+
}, [Z.analytics]), ge = Ce(() => {
|
|
2479
|
+
ue("landing"), Z.onBack?.();
|
|
2480
|
+
}, [Z.onBack]), te = Be(
|
|
2483
2481
|
() => ({
|
|
2484
2482
|
view: de,
|
|
2485
|
-
locale:
|
|
2486
|
-
setLocale:
|
|
2487
|
-
config:
|
|
2488
|
-
formValues:
|
|
2489
|
-
setFormValues:
|
|
2490
|
-
goToForm:
|
|
2491
|
-
goToPage:
|
|
2492
|
-
onProceed:
|
|
2493
|
-
onProceedGuidance:
|
|
2483
|
+
locale: X,
|
|
2484
|
+
setLocale: xe,
|
|
2485
|
+
config: Z,
|
|
2486
|
+
formValues: ye,
|
|
2487
|
+
setFormValues: Ne,
|
|
2488
|
+
goToForm: W,
|
|
2489
|
+
goToPage: ge,
|
|
2490
|
+
onProceed: Z.onProceed,
|
|
2491
|
+
onProceedGuidance: Z.onProceedGuidance
|
|
2494
2492
|
}),
|
|
2495
|
-
[de,
|
|
2493
|
+
[de, X, Z, ye, W, ge]
|
|
2496
2494
|
);
|
|
2497
|
-
return /* @__PURE__ */ e.jsx(ia.Provider, { value:
|
|
2495
|
+
return /* @__PURE__ */ e.jsx(ia.Provider, { value: te, children: ie });
|
|
2498
2496
|
};
|
|
2499
2497
|
function Ie() {
|
|
2500
2498
|
return oa(ia);
|
|
@@ -2516,7 +2514,7 @@ const St = "_header_19172_1", wt = "_centered_19172_8", ya = {
|
|
|
2516
2514
|
className: s = "",
|
|
2517
2515
|
align: p = "left"
|
|
2518
2516
|
}) => /* @__PURE__ */ e.jsx(
|
|
2519
|
-
|
|
2517
|
+
Ja,
|
|
2520
2518
|
{
|
|
2521
2519
|
title: t("formTitle"),
|
|
2522
2520
|
subtitle: t("formSubtitle"),
|
|
@@ -2610,7 +2608,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2610
2608
|
k();
|
|
2611
2609
|
}, h.onerror = () => p(new Error("Failed to load Google Maps API")), document.head.appendChild(h);
|
|
2612
2610
|
}), Je), Cr = (t) => {
|
|
2613
|
-
const { apiKey: n, language: s = "en", restrictCountry: p, deferLoad: d = !1 } = t, [h, _] = I(!1), [P, k] = I([]), [Y, M] = I(!1), [R, m] = I(null), [C, A] = I(!d), z =
|
|
2611
|
+
const { apiKey: n, language: s = "en", restrictCountry: p, deferLoad: d = !1 } = t, [h, _] = I(!1), [P, k] = I([]), [Y, M] = I(!1), [R, m] = I(null), [C, A] = I(!d), z = U(null), v = U(null), y = U(null), w = Ce(() => {
|
|
2614
2612
|
d && A(!0);
|
|
2615
2613
|
}, [d]);
|
|
2616
2614
|
q(() => {
|
|
@@ -2634,27 +2632,27 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2634
2632
|
}
|
|
2635
2633
|
M(!0);
|
|
2636
2634
|
try {
|
|
2637
|
-
const
|
|
2635
|
+
const O = {
|
|
2638
2636
|
input: j,
|
|
2639
2637
|
types: ["(cities)"],
|
|
2640
2638
|
sessionToken: y.current ?? void 0
|
|
2641
2639
|
};
|
|
2642
|
-
p && (
|
|
2643
|
-
const N = await new Promise((
|
|
2640
|
+
p && (O.componentRestrictions = { country: p });
|
|
2641
|
+
const N = await new Promise((G, ee) => {
|
|
2644
2642
|
z.current.getPlacePredictions(
|
|
2645
|
-
|
|
2646
|
-
(
|
|
2647
|
-
B === google.maps.places.PlacesServiceStatus.OK &&
|
|
2643
|
+
O,
|
|
2644
|
+
(ae, B) => {
|
|
2645
|
+
B === google.maps.places.PlacesServiceStatus.OK && ae ? G(ae) : B === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? G([]) : ee(new Error(`Places API error: ${B}`));
|
|
2648
2646
|
}
|
|
2649
2647
|
);
|
|
2650
2648
|
});
|
|
2651
2649
|
k(
|
|
2652
|
-
N.map((
|
|
2653
|
-
place_id:
|
|
2654
|
-
description:
|
|
2650
|
+
N.map((G) => ({
|
|
2651
|
+
place_id: G.place_id,
|
|
2652
|
+
description: G.description,
|
|
2655
2653
|
structured_formatting: {
|
|
2656
|
-
main_text:
|
|
2657
|
-
secondary_text:
|
|
2654
|
+
main_text: G.structured_formatting?.main_text || G.description,
|
|
2655
|
+
secondary_text: G.structured_formatting?.secondary_text || ""
|
|
2658
2656
|
}
|
|
2659
2657
|
}))
|
|
2660
2658
|
);
|
|
@@ -2669,8 +2667,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2669
2667
|
async (j) => {
|
|
2670
2668
|
if (!v.current) return null;
|
|
2671
2669
|
try {
|
|
2672
|
-
const
|
|
2673
|
-
(D,
|
|
2670
|
+
const O = await new Promise(
|
|
2671
|
+
(D, $) => {
|
|
2674
2672
|
v.current.getDetails(
|
|
2675
2673
|
{
|
|
2676
2674
|
placeId: j,
|
|
@@ -2678,22 +2676,22 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2678
2676
|
sessionToken: y.current ?? void 0
|
|
2679
2677
|
},
|
|
2680
2678
|
(Q, E) => {
|
|
2681
|
-
E === google.maps.places.PlacesServiceStatus.OK && Q ? D(Q) :
|
|
2679
|
+
E === google.maps.places.PlacesServiceStatus.OK && Q ? D(Q) : $(new Error(`Place details error: ${E}`));
|
|
2682
2680
|
}
|
|
2683
2681
|
);
|
|
2684
2682
|
}
|
|
2685
2683
|
);
|
|
2686
2684
|
y.current = new google.maps.places.AutocompleteSessionToken();
|
|
2687
|
-
const N =
|
|
2688
|
-
let
|
|
2689
|
-
return
|
|
2690
|
-
D.types.includes("locality") && (
|
|
2685
|
+
const N = O.geometry?.location?.lat() || 0, G = O.geometry?.location?.lng() || 0;
|
|
2686
|
+
let ee = "", ae = "", B = "";
|
|
2687
|
+
return O.address_components?.forEach((D) => {
|
|
2688
|
+
D.types.includes("locality") && (ee = D.long_name), D.types.includes("administrative_area_level_1") && (ae = D.long_name), D.types.includes("country") && (B = D.long_name);
|
|
2691
2689
|
}), {
|
|
2692
|
-
display_name:
|
|
2690
|
+
display_name: O.formatted_address || "",
|
|
2693
2691
|
lat: N,
|
|
2694
|
-
lng:
|
|
2695
|
-
city:
|
|
2696
|
-
state:
|
|
2692
|
+
lng: G,
|
|
2693
|
+
city: ee,
|
|
2694
|
+
state: ae,
|
|
2697
2695
|
country: B
|
|
2698
2696
|
};
|
|
2699
2697
|
} catch {
|
|
@@ -2721,7 +2719,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2721
2719
|
restrictCountry: t?.restrictCountry
|
|
2722
2720
|
};
|
|
2723
2721
|
}, Rr = (t) => {
|
|
2724
|
-
const { searchLocalities: n, restrictCountry: s } = t, [p, d] = I([]), [h, _] = I(!1), [P, k] = I(null), Y =
|
|
2722
|
+
const { searchLocalities: n, restrictCountry: s } = t, [p, d] = I([]), [h, _] = I(!1), [P, k] = I(null), Y = U(0);
|
|
2725
2723
|
q(() => {
|
|
2726
2724
|
k(null);
|
|
2727
2725
|
}, [n]);
|
|
@@ -2767,7 +2765,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2767
2765
|
location: "https://srm-cdn.a4b.io/yoda/1770372031092.svg",
|
|
2768
2766
|
date: "https://srm-cdn.a4b.io/yoda/1770372045894.svg",
|
|
2769
2767
|
info: "https://srm-cdn.a4b.io/yoda/1770372066357.svg"
|
|
2770
|
-
},
|
|
2768
|
+
}, Ca = [
|
|
2771
2769
|
{ code: "+1", country: "USA / Canada" },
|
|
2772
2770
|
{ code: "+7", country: "Russia / Kazakhstan" },
|
|
2773
2771
|
{ code: "+20", country: "Egypt" },
|
|
@@ -2837,7 +2835,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2837
2835
|
{ code: "+975", country: "Bhutan" },
|
|
2838
2836
|
{ code: "+976", country: "Mongolia" },
|
|
2839
2837
|
{ code: "+977", country: "Nepal" }
|
|
2840
|
-
], ra =
|
|
2838
|
+
], ra = Ca.map((t) => t.code), ja = 10, la = (t) => t.replace(/\D/g, ""), va = (t) => la(t).slice(0, ja), Nr = (t) => la(t).length === ja, Lr = (t, n, s) => Nr(t) ? s.phone ? { shouldTrack: !1 } : (s.phone = !0, { shouldTrack: !0, fullPhone: `${n}-${la(t)}` }) : (s.phone = !1, { shouldTrack: !1 }), Br = {}, Dr = ({
|
|
2841
2839
|
t,
|
|
2842
2840
|
values: n,
|
|
2843
2841
|
onChange: s,
|
|
@@ -2850,69 +2848,69 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2850
2848
|
googleMapsAutocompleteEnabled: Y,
|
|
2851
2849
|
className: M = ""
|
|
2852
2850
|
}) => {
|
|
2853
|
-
const R = Ie(), m = R?.config?.analytics ?? _, C = R?.config.isGlobal ?? !0, A = R?.config?.googleMapsApiKey, z = R?.config?.atlasSearchLocalities, v = R?.config?.googleMapsAutocompleteEnabled, [y, w] = I(!1), [oe, S] = I(""), V =
|
|
2851
|
+
const R = Ie(), m = R?.config?.analytics ?? _, C = R?.config.isGlobal ?? !0, A = R?.config?.googleMapsApiKey, z = R?.config?.atlasSearchLocalities, v = R?.config?.googleMapsAutocompleteEnabled, [y, w] = I(!1), [oe, S] = I(""), V = U(null), j = U(null), O = U({}), N = (r) => s({ ...n, ...r }), G = (r, c) => {
|
|
2854
2852
|
if (r === "phone") {
|
|
2855
|
-
const K = Lr(c, p,
|
|
2853
|
+
const K = Lr(c, p, O.current);
|
|
2856
2854
|
K.shouldTrack && m?.trackPhoneSectionFilled?.({ phone: K.fullPhone });
|
|
2857
2855
|
return;
|
|
2858
2856
|
}
|
|
2859
|
-
c.trim() &&
|
|
2857
|
+
c.trim() && !O.current[r] && (O.current[r] = !0, {
|
|
2860
2858
|
fullName: () => m?.trackNameSectionFilled?.(),
|
|
2861
2859
|
dateOfBirth: () => m?.trackDobFilled?.(),
|
|
2862
2860
|
birthTime: () => m?.trackTimeFilled?.(),
|
|
2863
2861
|
birthPlace: () => m?.trackPlaceOfBirthChosen?.()
|
|
2864
2862
|
}[r]?.());
|
|
2865
|
-
},
|
|
2863
|
+
}, ee = (r) => {
|
|
2866
2864
|
const c = r.target.value;
|
|
2867
2865
|
c.trim() && m?.trackEmailSectionFilled?.({ email: c });
|
|
2868
|
-
},
|
|
2869
|
-
|
|
2870
|
-
const
|
|
2866
|
+
}, ae = oe.trim().toLowerCase(), B = Ca.filter((r) => ae ? r.country.toLowerCase().includes(ae) || r.code.includes(ae) : !0), D = U(null);
|
|
2867
|
+
U(null);
|
|
2868
|
+
const $ = U(null), Q = U(0), E = U(null), [be, ie] = I(!1), [de, ue] = I({ hour12: 12, minute: "00", meridiem: "AM" }), X = (r) => String(r).padStart(2, "0"), xe = (r) => {
|
|
2871
2869
|
const c = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
|
|
2872
2870
|
if (!c) return r;
|
|
2873
2871
|
const K = Number(c[1]), Se = c[2], $e = K >= 12 ? "PM" : "AM";
|
|
2874
2872
|
return `${K % 12 === 0 ? 12 : K % 12}:${Se} ${$e}`;
|
|
2875
|
-
},
|
|
2873
|
+
}, ye = (r) => {
|
|
2876
2874
|
const c = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
|
|
2877
2875
|
if (!c) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
2878
2876
|
const K = Number(c[1]), Se = c[2], $e = K >= 12 ? "PM" : "AM";
|
|
2879
2877
|
return { hour12: K % 12 === 0 ? 12 : K % 12, minute: Se, meridiem: $e };
|
|
2880
|
-
},
|
|
2878
|
+
}, Ne = (r) => {
|
|
2881
2879
|
const c = Math.min(12, Math.max(1, r.hour12)), K = /^([0-5]\d)$/.test(r.minute) ? r.minute : "00";
|
|
2882
2880
|
let Se = c % 12;
|
|
2883
|
-
return r.meridiem === "PM" && (Se += 12), `${
|
|
2884
|
-
},
|
|
2881
|
+
return r.meridiem === "PM" && (Se += 12), `${X(Se)}:${K}`;
|
|
2882
|
+
}, he = U(null), [Z, W] = I(!1), ge = U(n.birthPlace ?? ""), [te, re] = I(
|
|
2885
2883
|
null
|
|
2886
|
-
),
|
|
2887
|
-
apiKey: pe ?
|
|
2884
|
+
), ce = P ?? A ?? Br?.VITE_GOOGLE_MAPS_API_KEY, je = k ?? z, pe = Y ?? v ?? !0, me = (n.birthPlace ?? "").trim(), Re = C ? void 0 : "in", _e = Cr({
|
|
2885
|
+
apiKey: pe ? ce : void 0,
|
|
2888
2886
|
language: "en",
|
|
2889
|
-
restrictCountry:
|
|
2890
|
-
}),
|
|
2891
|
-
searchLocalities: pe ? void 0 :
|
|
2892
|
-
restrictCountry:
|
|
2893
|
-
}),
|
|
2887
|
+
restrictCountry: Re
|
|
2888
|
+
}), Te = Rr({
|
|
2889
|
+
searchLocalities: pe ? void 0 : je,
|
|
2890
|
+
restrictCountry: Re
|
|
2891
|
+
}), Pe = pe ? _e.predictions.map((r) => ({
|
|
2894
2892
|
id: r.place_id,
|
|
2895
2893
|
description: r.description,
|
|
2896
2894
|
secondaryText: r.structured_formatting?.secondary_text,
|
|
2897
2895
|
lat: void 0,
|
|
2898
2896
|
lng: void 0
|
|
2899
|
-
})) :
|
|
2897
|
+
})) : Te.predictions.map((r) => ({
|
|
2900
2898
|
id: r.id,
|
|
2901
2899
|
description: r.description,
|
|
2902
2900
|
secondaryText: r.secondary_text,
|
|
2903
2901
|
lat: r.lat,
|
|
2904
2902
|
lng: r.lng
|
|
2905
|
-
})), i = pe ?
|
|
2903
|
+
})), i = pe ? _e.isSearching : Te.isSearching, b = pe ? _e.loadError : Te.loadError, f = pe ? !!ce : !!je, fe = pe ? _e.searchPlaces : Te.searchPlaces, le = pe ? _e.clearPredictions : Te.clearPredictions, Ge = U(() => {
|
|
2906
2904
|
});
|
|
2907
2905
|
Ge.current = () => {
|
|
2908
2906
|
(n.birthPlace ?? "") !== ge.current && N({
|
|
2909
2907
|
birthPlace: "",
|
|
2910
2908
|
birthPlaceLat: void 0,
|
|
2911
2909
|
birthPlaceLng: void 0
|
|
2912
|
-
}),
|
|
2910
|
+
}), W(!1);
|
|
2913
2911
|
}, q(() => {
|
|
2914
2912
|
const r = (c) => {
|
|
2915
|
-
|
|
2913
|
+
he.current && (he.current.contains(c.target) || Ge.current());
|
|
2916
2914
|
};
|
|
2917
2915
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
2918
2916
|
}, []), q(() => {
|
|
@@ -2927,28 +2925,28 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2927
2925
|
}, 0);
|
|
2928
2926
|
return () => window.clearTimeout(r);
|
|
2929
2927
|
}, [y]), q(() => {
|
|
2930
|
-
if (!
|
|
2928
|
+
if (!Z) return;
|
|
2931
2929
|
if (me.length < 2) {
|
|
2932
|
-
|
|
2930
|
+
le();
|
|
2933
2931
|
return;
|
|
2934
2932
|
}
|
|
2935
2933
|
const r = window.setTimeout(async () => {
|
|
2936
2934
|
await fe(me);
|
|
2937
2935
|
}, 250);
|
|
2938
2936
|
return () => window.clearTimeout(r);
|
|
2939
|
-
}, [
|
|
2937
|
+
}, [le, Z, me, fe]);
|
|
2940
2938
|
const Oe = (r) => {
|
|
2941
2939
|
const c = r.current;
|
|
2942
2940
|
if (!(!c || c.disabled)) {
|
|
2943
|
-
if (document.activeElement === c &&
|
|
2941
|
+
if (document.activeElement === c && $.current === c && Date.now() - Q.current < 6e4) {
|
|
2944
2942
|
c.blur();
|
|
2945
2943
|
return;
|
|
2946
2944
|
}
|
|
2947
2945
|
if (typeof c.showPicker == "function") {
|
|
2948
|
-
c.showPicker(),
|
|
2946
|
+
c.showPicker(), $.current = c, Q.current = Date.now();
|
|
2949
2947
|
return;
|
|
2950
2948
|
}
|
|
2951
|
-
c.focus(),
|
|
2949
|
+
c.focus(), $.current = c, Q.current = Date.now();
|
|
2952
2950
|
}
|
|
2953
2951
|
};
|
|
2954
2952
|
return q(() => {
|
|
@@ -2986,7 +2984,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2986
2984
|
onFocus: () => m?.trackNameSectionClicked?.(),
|
|
2987
2985
|
onChange: (r) => {
|
|
2988
2986
|
const c = r.target.value;
|
|
2989
|
-
N({ fullName: c }),
|
|
2987
|
+
N({ fullName: c }), G("fullName", c);
|
|
2990
2988
|
},
|
|
2991
2989
|
placeholder: t("formFullNamePlaceholder"),
|
|
2992
2990
|
autoComplete: "name"
|
|
@@ -3023,7 +3021,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3023
3021
|
onFocus: () => m?.trackPhoneSectionClicked?.(),
|
|
3024
3022
|
onChange: (r) => {
|
|
3025
3023
|
const c = r.target.value;
|
|
3026
|
-
N({ phone: va(c) }),
|
|
3024
|
+
N({ phone: va(c) }), G("phone", va(c));
|
|
3027
3025
|
},
|
|
3028
3026
|
placeholder: t("formPhonePlaceholder"),
|
|
3029
3027
|
autoComplete: "tel",
|
|
@@ -3141,7 +3139,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3141
3139
|
onChange: (r) => {
|
|
3142
3140
|
N({ email: r.target.value });
|
|
3143
3141
|
},
|
|
3144
|
-
onBlur:
|
|
3142
|
+
onBlur: ee,
|
|
3145
3143
|
placeholder: t("formEmailPlaceholder"),
|
|
3146
3144
|
autoComplete: "email",
|
|
3147
3145
|
required: !0,
|
|
@@ -3162,7 +3160,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3162
3160
|
type: "button",
|
|
3163
3161
|
className: o.infoBtn,
|
|
3164
3162
|
"aria-label": t("info"),
|
|
3165
|
-
"aria-expanded":
|
|
3163
|
+
"aria-expanded": te === "dob",
|
|
3166
3164
|
onClick: () => {
|
|
3167
3165
|
re((r) => r === "dob" ? null : "dob"), m?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
3168
3166
|
},
|
|
@@ -3177,7 +3175,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3177
3175
|
)
|
|
3178
3176
|
}
|
|
3179
3177
|
),
|
|
3180
|
-
|
|
3178
|
+
te === "dob" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
|
|
3181
3179
|
t("formDobInfo"),
|
|
3182
3180
|
/* @__PURE__ */ e.jsx("span", { className: o.tooltipArrow, "aria-hidden": !0 })
|
|
3183
3181
|
] })
|
|
@@ -3194,16 +3192,16 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3194
3192
|
value: n.dateOfBirth,
|
|
3195
3193
|
max: (() => {
|
|
3196
3194
|
const r = /* @__PURE__ */ new Date();
|
|
3197
|
-
return `${r.getFullYear()}-${
|
|
3195
|
+
return `${r.getFullYear()}-${X(r.getMonth() + 1)}-${X(r.getDate())}`;
|
|
3198
3196
|
})(),
|
|
3199
3197
|
onChange: (r) => {
|
|
3200
|
-
const c = r.target.value, K = /* @__PURE__ */ new Date(), Se = `${K.getFullYear()}-${
|
|
3201
|
-
c && c > Se || (N({ dateOfBirth: c }),
|
|
3198
|
+
const c = r.target.value, K = /* @__PURE__ */ new Date(), Se = `${K.getFullYear()}-${X(K.getMonth() + 1)}-${X(K.getDate())}`;
|
|
3199
|
+
c && c > Se || (N({ dateOfBirth: c }), G("dateOfBirth", c), $.current = null);
|
|
3202
3200
|
},
|
|
3203
3201
|
onFocus: () => m?.trackDobClicked?.(),
|
|
3204
3202
|
onClick: () => Oe(D),
|
|
3205
3203
|
onBlur: () => {
|
|
3206
|
-
|
|
3204
|
+
$.current === D.current && ($.current = null);
|
|
3207
3205
|
}
|
|
3208
3206
|
}
|
|
3209
3207
|
),
|
|
@@ -3243,7 +3241,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3243
3241
|
type: "button",
|
|
3244
3242
|
className: o.infoBtn,
|
|
3245
3243
|
"aria-label": t("info"),
|
|
3246
|
-
"aria-expanded":
|
|
3244
|
+
"aria-expanded": te === "time",
|
|
3247
3245
|
onClick: () => {
|
|
3248
3246
|
m?.trackInfoIconClicked?.({ fieldName: "time" }), re((r) => r === "time" ? null : "time");
|
|
3249
3247
|
},
|
|
@@ -3258,7 +3256,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3258
3256
|
)
|
|
3259
3257
|
}
|
|
3260
3258
|
),
|
|
3261
|
-
|
|
3259
|
+
te === "time" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
|
|
3262
3260
|
t("formBirthTimeInfo"),
|
|
3263
3261
|
/* @__PURE__ */ e.jsx("span", { className: o.tooltipArrow, "aria-hidden": !0 })
|
|
3264
3262
|
] })
|
|
@@ -3271,17 +3269,17 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3271
3269
|
id: "kundli-birth-time",
|
|
3272
3270
|
className: o.input,
|
|
3273
3271
|
type: "text",
|
|
3274
|
-
value: n.birthTime ?
|
|
3272
|
+
value: n.birthTime ? xe(n.birthTime) : "",
|
|
3275
3273
|
readOnly: !0,
|
|
3276
3274
|
onFocus: () => m?.trackTimeClicked?.(),
|
|
3277
3275
|
onChange: (r) => {
|
|
3278
3276
|
const c = r.target.value;
|
|
3279
|
-
N({ birthTime: c }),
|
|
3277
|
+
N({ birthTime: c }), G("birthTime", c);
|
|
3280
3278
|
},
|
|
3281
3279
|
disabled: n.birthTimeUnknown,
|
|
3282
3280
|
placeholder: "HH:MM AM",
|
|
3283
3281
|
onClick: () => {
|
|
3284
|
-
n.birthTimeUnknown || (
|
|
3282
|
+
n.birthTimeUnknown || (ue(ye(n.birthTime || "12:00")), ie((r) => !r));
|
|
3285
3283
|
}
|
|
3286
3284
|
}
|
|
3287
3285
|
),
|
|
@@ -3294,7 +3292,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3294
3292
|
disabled: n.birthTimeUnknown,
|
|
3295
3293
|
onMouseDown: (r) => r.preventDefault(),
|
|
3296
3294
|
onClick: (r) => {
|
|
3297
|
-
r.preventDefault(), r.stopPropagation(), !n.birthTimeUnknown && (
|
|
3295
|
+
r.preventDefault(), r.stopPropagation(), !n.birthTimeUnknown && (ue(ye(n.birthTime || "12:00")), ie((c) => !c));
|
|
3298
3296
|
},
|
|
3299
3297
|
children: /* @__PURE__ */ e.jsx(
|
|
3300
3298
|
"img",
|
|
@@ -3319,8 +3317,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3319
3317
|
"select",
|
|
3320
3318
|
{
|
|
3321
3319
|
className: o.timePickerSelect,
|
|
3322
|
-
value:
|
|
3323
|
-
onChange: (r) =>
|
|
3320
|
+
value: de.hour12,
|
|
3321
|
+
onChange: (r) => ue((c) => ({
|
|
3324
3322
|
...c,
|
|
3325
3323
|
hour12: Number(r.target.value)
|
|
3326
3324
|
})),
|
|
@@ -3333,10 +3331,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3333
3331
|
"select",
|
|
3334
3332
|
{
|
|
3335
3333
|
className: o.timePickerSelect,
|
|
3336
|
-
value:
|
|
3337
|
-
onChange: (r) =>
|
|
3334
|
+
value: de.minute,
|
|
3335
|
+
onChange: (r) => ue((c) => ({ ...c, minute: r.target.value })),
|
|
3338
3336
|
"aria-label": "Minute",
|
|
3339
|
-
children: Array.from({ length: 60 }, (r, c) =>
|
|
3337
|
+
children: Array.from({ length: 60 }, (r, c) => X(c)).map(
|
|
3340
3338
|
(r) => /* @__PURE__ */ e.jsx("option", { value: r, children: r }, r)
|
|
3341
3339
|
)
|
|
3342
3340
|
}
|
|
@@ -3346,8 +3344,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3346
3344
|
"button",
|
|
3347
3345
|
{
|
|
3348
3346
|
type: "button",
|
|
3349
|
-
className: `${o.meridiemBtn} ${
|
|
3350
|
-
onClick: () =>
|
|
3347
|
+
className: `${o.meridiemBtn} ${de.meridiem === "AM" ? o.meridiemActive : ""}`,
|
|
3348
|
+
onClick: () => ue((r) => ({ ...r, meridiem: "AM" })),
|
|
3351
3349
|
children: "AM"
|
|
3352
3350
|
}
|
|
3353
3351
|
),
|
|
@@ -3355,8 +3353,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3355
3353
|
"button",
|
|
3356
3354
|
{
|
|
3357
3355
|
type: "button",
|
|
3358
|
-
className: `${o.meridiemBtn} ${
|
|
3359
|
-
onClick: () =>
|
|
3356
|
+
className: `${o.meridiemBtn} ${de.meridiem === "PM" ? o.meridiemActive : ""}`,
|
|
3357
|
+
onClick: () => ue((r) => ({ ...r, meridiem: "PM" })),
|
|
3360
3358
|
children: "PM"
|
|
3361
3359
|
}
|
|
3362
3360
|
)
|
|
@@ -3378,8 +3376,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3378
3376
|
type: "button",
|
|
3379
3377
|
className: `${o.timePopoverBtn} ${o.timePopoverOk}`,
|
|
3380
3378
|
onClick: () => {
|
|
3381
|
-
const r =
|
|
3382
|
-
N({ birthTime: r }),
|
|
3379
|
+
const r = Ne(de);
|
|
3380
|
+
N({ birthTime: r }), G("birthTime", r), ie(!1);
|
|
3383
3381
|
},
|
|
3384
3382
|
"aria-label": "OK",
|
|
3385
3383
|
children: /* @__PURE__ */ e.jsx(
|
|
@@ -3453,7 +3451,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3453
3451
|
type: "button",
|
|
3454
3452
|
className: o.infoBtn,
|
|
3455
3453
|
"aria-label": t("info"),
|
|
3456
|
-
"aria-expanded":
|
|
3454
|
+
"aria-expanded": te === "place",
|
|
3457
3455
|
onClick: () => {
|
|
3458
3456
|
m?.trackInfoIconClicked?.({
|
|
3459
3457
|
fieldName: "birthPlace"
|
|
@@ -3470,13 +3468,13 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3470
3468
|
)
|
|
3471
3469
|
}
|
|
3472
3470
|
),
|
|
3473
|
-
|
|
3471
|
+
te === "place" && /* @__PURE__ */ e.jsxs("div", { className: o.tooltip, role: "tooltip", children: [
|
|
3474
3472
|
t("formBirthPlaceInfo"),
|
|
3475
3473
|
/* @__PURE__ */ e.jsx("span", { className: o.tooltipArrow, "aria-hidden": !0 })
|
|
3476
3474
|
] })
|
|
3477
3475
|
] })
|
|
3478
3476
|
] }),
|
|
3479
|
-
/* @__PURE__ */ e.jsxs("div", { className: o.inputWrap, ref:
|
|
3477
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.inputWrap, ref: he, children: [
|
|
3480
3478
|
/* @__PURE__ */ e.jsx(
|
|
3481
3479
|
"input",
|
|
3482
3480
|
{
|
|
@@ -3490,10 +3488,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3490
3488
|
birthPlace: c,
|
|
3491
3489
|
birthPlaceLat: void 0,
|
|
3492
3490
|
birthPlaceLng: void 0
|
|
3493
|
-
}),
|
|
3491
|
+
}), G("birthPlace", c), W(!0);
|
|
3494
3492
|
},
|
|
3495
3493
|
onFocus: () => {
|
|
3496
|
-
m?.trackPlaceOfBirthClicked?.(),
|
|
3494
|
+
m?.trackPlaceOfBirthClicked?.(), W(!0);
|
|
3497
3495
|
},
|
|
3498
3496
|
placeholder: t("formBirthPlacePlaceholder"),
|
|
3499
3497
|
autoComplete: "address-level2"
|
|
@@ -3508,7 +3506,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3508
3506
|
"aria-hidden": !0
|
|
3509
3507
|
}
|
|
3510
3508
|
) }),
|
|
3511
|
-
|
|
3509
|
+
Z && Pe.length > 0 && /* @__PURE__ */ e.jsx("div", { className: o.suggestions, role: "listbox", children: Pe.slice(0, 8).map((r) => /* @__PURE__ */ e.jsxs(
|
|
3512
3510
|
"button",
|
|
3513
3511
|
{
|
|
3514
3512
|
type: "button",
|
|
@@ -3519,8 +3517,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3519
3517
|
birthPlace: c,
|
|
3520
3518
|
birthPlaceLat: r.lat,
|
|
3521
3519
|
birthPlaceLng: r.lng
|
|
3522
|
-
}),
|
|
3523
|
-
const K = await
|
|
3520
|
+
}), le(), W(!1), pe) {
|
|
3521
|
+
const K = await _e.getPlaceDetails(
|
|
3524
3522
|
r.id
|
|
3525
3523
|
);
|
|
3526
3524
|
K && (ge.current = c, s({
|
|
@@ -3538,8 +3536,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3538
3536
|
},
|
|
3539
3537
|
r.id
|
|
3540
3538
|
)) }),
|
|
3541
|
-
|
|
3542
|
-
|
|
3539
|
+
Z && f && i && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: "Loading…" }),
|
|
3540
|
+
Z && f && !i && !!b && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: b })
|
|
3543
3541
|
] })
|
|
3544
3542
|
] }),
|
|
3545
3543
|
h && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
@@ -3678,7 +3676,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3678
3676
|
ctaFilled: Ir,
|
|
3679
3677
|
ctaFilledContent: Fr,
|
|
3680
3678
|
chevronRight: Mr
|
|
3681
|
-
},
|
|
3679
|
+
}, Ra = "kundli-report-astrologer", Ur = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", Gr = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", Or = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", $r = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", Hr = ({ t }) => {
|
|
3682
3680
|
const s = Ie()?.config.imageComponent ?? Ye;
|
|
3683
3681
|
return /* @__PURE__ */ e.jsxs("div", { className: Ee.marqueeContent, children: [
|
|
3684
3682
|
/* @__PURE__ */ e.jsxs("span", { className: Ee.badge, children: [
|
|
@@ -3757,12 +3755,12 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3757
3755
|
const v = Ie(), y = v?.config.isGlobal ?? !0, w = v?.config?.variant, oe = Be(
|
|
3758
3756
|
() => qr(n, y, p),
|
|
3759
3757
|
[n, y, p]
|
|
3760
|
-
), S = oe === null, V = w === "v1" && v?.config?.showSheet, j = y ? M ?? t("formDiscountedPrice") : V ? "" : "₹499",
|
|
3761
|
-
if (
|
|
3758
|
+
), S = oe === null, V = w === "v1" && v?.config?.showSheet, j = y ? M ?? t("formDiscountedPrice") : V ? "" : "₹499", O = v?.config.imageComponent ?? Ye, N = (ee) => {
|
|
3759
|
+
if (ee.preventDefault(), w === "v1" && !S && k?.trackKundliDetailedClicked?.(), !S) {
|
|
3762
3760
|
oe && d?.(oe);
|
|
3763
3761
|
return;
|
|
3764
3762
|
}
|
|
3765
|
-
const
|
|
3763
|
+
const ae = !!_ && w === "v1" && z?.id === Ra, B = (n.phone ?? "").trim(), D = {
|
|
3766
3764
|
...n,
|
|
3767
3765
|
phone: B && `${s}-${B}`
|
|
3768
3766
|
};
|
|
@@ -3770,9 +3768,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3770
3768
|
A ? C?.() : m?.(D);
|
|
3771
3769
|
return;
|
|
3772
3770
|
}
|
|
3773
|
-
k?.trackPrimaryCtaClickedL1?.({ avenue: "form" }),
|
|
3774
|
-
},
|
|
3775
|
-
|
|
3771
|
+
k?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), ae ? _(D) : h?.(D);
|
|
3772
|
+
}, G = /* @__PURE__ */ e.jsx(
|
|
3773
|
+
za,
|
|
3776
3774
|
{
|
|
3777
3775
|
href: P,
|
|
3778
3776
|
disabled: w === "v1" ? !1 : !S,
|
|
@@ -3782,7 +3780,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3782
3780
|
children: w === "v1" ? S ? /* @__PURE__ */ e.jsxs("span", { className: Ke.ctaFilledContent, children: [
|
|
3783
3781
|
V ? t("selectPackage") : A && z ? `${t("proceedWithPlan")}${z.price}` : `${t("formProceed")} ${j}`,
|
|
3784
3782
|
/* @__PURE__ */ e.jsx(
|
|
3785
|
-
|
|
3783
|
+
O,
|
|
3786
3784
|
{
|
|
3787
3785
|
src: $r,
|
|
3788
3786
|
alt: "",
|
|
@@ -3800,11 +3798,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3800
3798
|
}
|
|
3801
3799
|
);
|
|
3802
3800
|
return /* @__PURE__ */ e.jsx(
|
|
3803
|
-
|
|
3801
|
+
Qa,
|
|
3804
3802
|
{
|
|
3805
3803
|
className: `${Ke.footerContainer} ${Y}`,
|
|
3806
|
-
marquee: /* @__PURE__ */ e.jsx(
|
|
3807
|
-
children:
|
|
3804
|
+
marquee: /* @__PURE__ */ e.jsx(Xa, { children: /* @__PURE__ */ e.jsx(Hr, { t }) }),
|
|
3805
|
+
children: G
|
|
3808
3806
|
}
|
|
3809
3807
|
);
|
|
3810
3808
|
}, Vr = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", Jr = ({
|
|
@@ -3815,7 +3813,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3815
3813
|
}) => {
|
|
3816
3814
|
const d = Ie(), h = d?.config.isGlobal ?? !0, _ = n != null && !h;
|
|
3817
3815
|
return /* @__PURE__ */ e.jsx(
|
|
3818
|
-
|
|
3816
|
+
Za,
|
|
3819
3817
|
{
|
|
3820
3818
|
t,
|
|
3821
3819
|
logoUrl: s,
|
|
@@ -3825,7 +3823,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3825
3823
|
className: p
|
|
3826
3824
|
}
|
|
3827
3825
|
);
|
|
3828
|
-
},
|
|
3826
|
+
}, Na = () => /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
3829
3827
|
"path",
|
|
3830
3828
|
{
|
|
3831
3829
|
d: "M3.5 8.5l2.5 2.5 6-6",
|
|
@@ -3935,7 +3933,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3935
3933
|
),
|
|
3936
3934
|
/* @__PURE__ */ e.jsx("h2", { className: x.title, children: t })
|
|
3937
3935
|
] }), Jn = ({ features: t, t: n }) => /* @__PURE__ */ e.jsx("ul", { className: x.featureList, "aria-label": "Plan features", children: t.map((s, p) => /* @__PURE__ */ e.jsxs("li", { className: x.featureItem, children: [
|
|
3938
|
-
/* @__PURE__ */ e.jsx("span", { className: x.featureIcon, children: s.included ? /* @__PURE__ */ e.jsx(
|
|
3936
|
+
/* @__PURE__ */ e.jsx("span", { className: x.featureIcon, children: s.included ? /* @__PURE__ */ e.jsx(Na, {}) : /* @__PURE__ */ e.jsx(zr, {}) }),
|
|
3939
3937
|
/* @__PURE__ */ e.jsx(
|
|
3940
3938
|
"span",
|
|
3941
3939
|
{
|
|
@@ -4053,11 +4051,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4053
4051
|
gu: ["gu", "en"],
|
|
4054
4052
|
mr: ["mr", "en"],
|
|
4055
4053
|
ta: ["ta", "en"]
|
|
4056
|
-
},
|
|
4054
|
+
}, La = (t) => !!t?.days?.some((n) => n.has_availability && n.slots.length > 0), no = (t, n, s) => {
|
|
4057
4055
|
const p = s ? ro : to, [d, h] = p[n || "en"] ?? p.en, _ = qe.map((k) => k.code).filter(
|
|
4058
4056
|
(k) => k !== d && k !== h
|
|
4059
4057
|
);
|
|
4060
|
-
return [d, h, ..._].find((k) =>
|
|
4058
|
+
return [d, h, ..._].find((k) => La(t[k])) ?? d;
|
|
4061
4059
|
}, oo = "_overlay_12sjj_3", io = "_sheet_12sjj_13", lo = "_content_12sjj_35", so = "_header_12sjj_42", co = "_backBtn_12sjj_55", uo = "_title_12sjj_73", po = "_languageRow_12sjj_89", mo = "_languageLabel_12sjj_97", fo = "_languageDropdown_12sjj_103", ho = "_languageDropdownBtn_12sjj_107", go = "_languageMenu_12sjj_122", bo = "_languageMenuItem_12sjj_139", _o = "_languageMenuItemSelected_12sjj_153", ko = "_languageDivider_12sjj_159", yo = "_reportReadyBanner_12sjj_166", Ao = "_reportReadyDuration_12sjj_175", vo = "_trustRow_12sjj_181", To = "_trustAvatars_12sjj_192", Po = "_trustText_12sjj_205", xo = "_sectionHeading_12sjj_316", So = "_dateTabs_12sjj_324", wo = "_dateTabIndicator_12sjj_336", Co = "_dateTab_12sjj_324", jo = "_dateTabDivider_12sjj_370", Ro = "_dateTabSelected_12sjj_380", No = "_dateTabLabel_12sjj_385", Lo = "_dateTabNum_12sjj_392", Bo = "_periodTabs_12sjj_406", Do = "_periodTabIndicator_12sjj_334", Eo = "_periodTab_12sjj_334", Io = "_periodTabSelected_12sjj_453", Fo = "_timeGrid_12sjj_458", Mo = "_emptyState_12sjj_486", Uo = "_timeSlot_12sjj_490", Go = "_timeSlotSelected_12sjj_506", Oo = "_topicGrid_12sjj_514", $o = "_topicChip_12sjj_520", Ho = "_topicChipSelected_12sjj_536", Wo = "_stateMessage_12sjj_543", Ko = "_emptyStateIcon_12sjj_563", qo = "_emptyStateTitle_12sjj_574", Yo = "_emptyStateSubtitle_12sjj_581", Vo = "_loadingWrap_12sjj_590", Jo = "_skeletonShimmer_12sjj_595", zo = "_skeletonDateTabs_12sjj_609", Qo = "_skeletonDateTab_12sjj_609", Xo = "_skeletonPeriodTabs_12sjj_623", Zo = "_skeletonPeriodTab_12sjj_623", ei = "_skeletonTimeGrid_12sjj_638", ai = "_skeletonTimeSlot_12sjj_644", ti = "_retryBtn_12sjj_649", ri = "_footer_12sjj_663", ni = "_proceedBtn_12sjj_670", oi = "_proceedBtnDisabled_12sjj_688", g = {
|
|
4062
4060
|
overlay: oo,
|
|
4063
4061
|
sheet: io,
|
|
@@ -4134,14 +4132,14 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4134
4132
|
reportLanguage: _,
|
|
4135
4133
|
isPostPayment: P = !1
|
|
4136
4134
|
}) => {
|
|
4137
|
-
const k = Ie(), Y = k?.config.imageComponent ?? Ye, M = k?.config.fetchConsultationSlots, R = k?.config.isGlobal ?? !0, m = _ ?? k?.formValues?.language_code, C = P ? "post_payment" : "pre_payment", [A, z] = I(!1), [v, y] = I(!1), [w, oe] = I({}), [S, V] = I("en"), [j,
|
|
4135
|
+
const k = Ie(), Y = k?.config.imageComponent ?? Ye, M = k?.config.fetchConsultationSlots, R = k?.config.isGlobal ?? !0, m = _ ?? k?.formValues?.language_code, C = P ? "post_payment" : "pre_payment", [A, z] = I(!1), [v, y] = I(!1), [w, oe] = I({}), [S, V] = I("en"), [j, O] = I(!1), N = U(null), G = Be(
|
|
4138
4136
|
() => w[S]?.days ?? [],
|
|
4139
4137
|
[w, S]
|
|
4140
|
-
), [
|
|
4138
|
+
), [ee, ae] = I(""), [B, D] = I(""), [$, Q] = I("morning"), [E, be] = I(null), ie = U(!1), de = U(null), ue = U({}), [X, xe] = I(null), ye = U(null), Ne = U(
|
|
4141
4139
|
{}
|
|
4142
|
-
), [
|
|
4143
|
-
() =>
|
|
4144
|
-
[
|
|
4140
|
+
), [he, Z] = I(null), W = Be(
|
|
4141
|
+
() => G.filter((i) => i.has_availability && i.slots.length > 0),
|
|
4142
|
+
[G]
|
|
4145
4143
|
), ge = Ce(() => {
|
|
4146
4144
|
M && (z(!0), y(!1), M().then((i) => {
|
|
4147
4145
|
const b = i ?? {}, f = no(
|
|
@@ -4154,10 +4152,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4154
4152
|
status: C
|
|
4155
4153
|
});
|
|
4156
4154
|
const fe = (b[f]?.days ?? []).filter(
|
|
4157
|
-
(
|
|
4155
|
+
(le) => le.has_availability && le.slots.length > 0
|
|
4158
4156
|
).length;
|
|
4159
4157
|
h?.trackAstrologerAvailabilityServed?.({
|
|
4160
|
-
astrologers_shown: p.map((
|
|
4158
|
+
astrologers_shown: p.map((le) => le.name),
|
|
4161
4159
|
dates_available_count: fe,
|
|
4162
4160
|
status: C
|
|
4163
4161
|
});
|
|
@@ -4170,34 +4168,34 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4170
4168
|
ie.current = !1;
|
|
4171
4169
|
return;
|
|
4172
4170
|
}
|
|
4173
|
-
|
|
4171
|
+
ae(""), O(!1), ge();
|
|
4174
4172
|
}, [t]), q(() => {
|
|
4175
4173
|
if (!j) return;
|
|
4176
4174
|
const i = (b) => {
|
|
4177
|
-
N.current && !N.current.contains(b.target) &&
|
|
4175
|
+
N.current && !N.current.contains(b.target) && O(!1);
|
|
4178
4176
|
};
|
|
4179
4177
|
return document.addEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
|
|
4180
4178
|
}, [j]), q(() => {
|
|
4181
|
-
if (!
|
|
4179
|
+
if (!W.length) {
|
|
4182
4180
|
D(""), be(null);
|
|
4183
4181
|
return;
|
|
4184
4182
|
}
|
|
4185
|
-
const i =
|
|
4186
|
-
|
|
4183
|
+
const i = W[0];
|
|
4184
|
+
W.some((b) => b.date === B) || h?.trackConsultationDateDefaultSelected?.({
|
|
4187
4185
|
date: i.date,
|
|
4188
4186
|
status: C
|
|
4189
4187
|
}), D(
|
|
4190
|
-
(b) =>
|
|
4188
|
+
(b) => W.some((f) => f.date === b) ? b : i.date
|
|
4191
4189
|
);
|
|
4192
|
-
}, [
|
|
4193
|
-
const
|
|
4194
|
-
() =>
|
|
4195
|
-
[
|
|
4190
|
+
}, [W]);
|
|
4191
|
+
const te = Be(
|
|
4192
|
+
() => W.find((i) => i.date === B) ?? null,
|
|
4193
|
+
[W, B]
|
|
4196
4194
|
), re = Be(() => {
|
|
4197
|
-
if (!
|
|
4198
|
-
const i = new Set(
|
|
4195
|
+
if (!te) return [];
|
|
4196
|
+
const i = new Set(te.slots.map((b) => b.period));
|
|
4199
4197
|
return eo.filter((b) => i.has(b));
|
|
4200
|
-
}, [
|
|
4198
|
+
}, [te]);
|
|
4201
4199
|
q(() => {
|
|
4202
4200
|
if (!re.length) {
|
|
4203
4201
|
Q("morning"), be(null);
|
|
@@ -4207,44 +4205,44 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4207
4205
|
(i) => re.includes(i) ? i : re[0]
|
|
4208
4206
|
);
|
|
4209
4207
|
}, [re]);
|
|
4210
|
-
const
|
|
4208
|
+
const ce = Be(() => te ? te.slots.filter((i) => i.period === $) : [], [te, $]);
|
|
4211
4209
|
if (q(() => {
|
|
4212
4210
|
const i = () => {
|
|
4213
|
-
const b =
|
|
4211
|
+
const b = de.current, f = ue.current[B];
|
|
4214
4212
|
if (!b || !f) {
|
|
4215
|
-
|
|
4213
|
+
xe(null);
|
|
4216
4214
|
return;
|
|
4217
4215
|
}
|
|
4218
|
-
const fe = b.getBoundingClientRect(),
|
|
4219
|
-
|
|
4220
|
-
left:
|
|
4221
|
-
top:
|
|
4222
|
-
width:
|
|
4223
|
-
height:
|
|
4216
|
+
const fe = b.getBoundingClientRect(), le = f.getBoundingClientRect();
|
|
4217
|
+
xe({
|
|
4218
|
+
left: le.left - fe.left,
|
|
4219
|
+
top: le.top - fe.top,
|
|
4220
|
+
width: le.width,
|
|
4221
|
+
height: le.height
|
|
4224
4222
|
});
|
|
4225
4223
|
};
|
|
4226
4224
|
return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
|
|
4227
|
-
}, [B,
|
|
4225
|
+
}, [B, W]), q(() => {
|
|
4228
4226
|
const i = () => {
|
|
4229
|
-
const b =
|
|
4227
|
+
const b = ye.current, f = Ne.current[$];
|
|
4230
4228
|
if (!b || !f) {
|
|
4231
|
-
|
|
4229
|
+
Z(null);
|
|
4232
4230
|
return;
|
|
4233
4231
|
}
|
|
4234
|
-
const fe = b.getBoundingClientRect(),
|
|
4235
|
-
|
|
4236
|
-
left:
|
|
4237
|
-
width:
|
|
4232
|
+
const fe = b.getBoundingClientRect(), le = f.getBoundingClientRect();
|
|
4233
|
+
Z({
|
|
4234
|
+
left: le.left - fe.left,
|
|
4235
|
+
width: le.width
|
|
4238
4236
|
});
|
|
4239
4237
|
};
|
|
4240
4238
|
return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
|
|
4241
|
-
}, [
|
|
4242
|
-
if (!
|
|
4239
|
+
}, [$, re]), q(() => {
|
|
4240
|
+
if (!ce.length) {
|
|
4243
4241
|
be(null);
|
|
4244
4242
|
return;
|
|
4245
4243
|
}
|
|
4246
|
-
if (!(E &&
|
|
4247
|
-
const b =
|
|
4244
|
+
if (!(E && ce.some((b) => b.start === E.start))) {
|
|
4245
|
+
const b = ce[0];
|
|
4248
4246
|
h?.trackConsultationTimeDefaultSelected?.({
|
|
4249
4247
|
time: aa(b.start),
|
|
4250
4248
|
gmt_offset: si(b.start),
|
|
@@ -4252,36 +4250,36 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4252
4250
|
});
|
|
4253
4251
|
}
|
|
4254
4252
|
be(
|
|
4255
|
-
(b) => b &&
|
|
4253
|
+
(b) => b && ce.some((f) => f.start === b.start) ? b : ce[0]
|
|
4256
4254
|
);
|
|
4257
|
-
}, [
|
|
4258
|
-
t &&
|
|
4255
|
+
}, [ce]), q(() => {
|
|
4256
|
+
t && W.length && !ie.current && (h?.trackSlotScreenViewed?.({
|
|
4259
4257
|
astrologers_shown: p.map((i) => i.name),
|
|
4260
|
-
dates_available_count:
|
|
4258
|
+
dates_available_count: W.length,
|
|
4261
4259
|
status: C
|
|
4262
4260
|
}), ie.current = !0);
|
|
4263
|
-
}, [t,
|
|
4264
|
-
const
|
|
4261
|
+
}, [t, W, p, h, C]), !t) return null;
|
|
4262
|
+
const je = !!E && (P || !!ee), pe = (i) => {
|
|
4265
4263
|
D(i), h?.trackSlotDateSelected?.({
|
|
4266
4264
|
date: i,
|
|
4267
|
-
day_part_default:
|
|
4265
|
+
day_part_default: $,
|
|
4268
4266
|
status: C
|
|
4269
4267
|
});
|
|
4270
4268
|
}, me = (i) => {
|
|
4271
4269
|
Q(i), h?.trackDayPartSelected?.({
|
|
4272
4270
|
day_part: i,
|
|
4273
|
-
slots_available_count:
|
|
4271
|
+
slots_available_count: te?.slots.filter((b) => b.period === i).length ?? 0,
|
|
4274
4272
|
status: C
|
|
4275
4273
|
});
|
|
4276
|
-
},
|
|
4274
|
+
}, Re = (i) => {
|
|
4277
4275
|
be(i), h?.trackSlotSelected?.({
|
|
4278
4276
|
date: B,
|
|
4279
4277
|
time: aa(i.start),
|
|
4280
4278
|
day_part: i.period,
|
|
4281
|
-
topic:
|
|
4279
|
+
topic: ee || null,
|
|
4282
4280
|
status: C
|
|
4283
4281
|
});
|
|
4284
|
-
},
|
|
4282
|
+
}, ve = () => {
|
|
4285
4283
|
E && (h?.trackSlotReservationRequested?.({
|
|
4286
4284
|
slot_datetime: `${E.start} - ${E.end}`,
|
|
4287
4285
|
status: C
|
|
@@ -4289,19 +4287,19 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4289
4287
|
start: E.start,
|
|
4290
4288
|
end: E.end,
|
|
4291
4289
|
period: E.period,
|
|
4292
|
-
topic:
|
|
4290
|
+
topic: ee,
|
|
4293
4291
|
language: S
|
|
4294
4292
|
}));
|
|
4295
|
-
},
|
|
4296
|
-
|
|
4297
|
-
},
|
|
4293
|
+
}, _e = (i) => {
|
|
4294
|
+
ae(i), h?.trackGuidanceTopicSelected?.({ topic: i, status: C });
|
|
4295
|
+
}, Te = (i) => {
|
|
4298
4296
|
h?.trackConsultationLanguageChanged?.({
|
|
4299
4297
|
previous_language: ta(S),
|
|
4300
4298
|
new_language: ta(i),
|
|
4301
|
-
slots_available:
|
|
4299
|
+
slots_available: La(w[i]) ? "yes" : "no",
|
|
4302
4300
|
status: C
|
|
4303
|
-
}), V(i),
|
|
4304
|
-
},
|
|
4301
|
+
}), V(i), O(!1);
|
|
4302
|
+
}, Pe = qe.find((i) => i.code === S) ?? qe[0];
|
|
4305
4303
|
return /* @__PURE__ */ e.jsx(
|
|
4306
4304
|
"div",
|
|
4307
4305
|
{
|
|
@@ -4332,11 +4330,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4332
4330
|
{
|
|
4333
4331
|
type: "button",
|
|
4334
4332
|
className: g.languageDropdownBtn,
|
|
4335
|
-
onClick: () =>
|
|
4333
|
+
onClick: () => O((i) => !i),
|
|
4336
4334
|
"aria-haspopup": "listbox",
|
|
4337
4335
|
"aria-expanded": j,
|
|
4338
4336
|
children: [
|
|
4339
|
-
d?.(
|
|
4337
|
+
d?.(Pe.labelKey) ?? Pe.label,
|
|
4340
4338
|
/* @__PURE__ */ e.jsx(Qr, {})
|
|
4341
4339
|
]
|
|
4342
4340
|
}
|
|
@@ -4352,10 +4350,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4352
4350
|
g.languageMenuItem,
|
|
4353
4351
|
b ? g.languageMenuItemSelected : ""
|
|
4354
4352
|
].filter(Boolean).join(" "),
|
|
4355
|
-
onClick: () =>
|
|
4353
|
+
onClick: () => Te(i.code),
|
|
4356
4354
|
children: [
|
|
4357
4355
|
d?.(i.labelKey) ?? i.label,
|
|
4358
|
-
b && /* @__PURE__ */ e.jsx(
|
|
4356
|
+
b && /* @__PURE__ */ e.jsx(Na, {})
|
|
4359
4357
|
]
|
|
4360
4358
|
},
|
|
4361
4359
|
i.code
|
|
@@ -4399,34 +4397,34 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4399
4397
|
d?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
4400
4398
|
/* @__PURE__ */ e.jsx("button", { type: "button", className: g.retryBtn, onClick: ge, children: d?.("planRetry") ?? "Retry" })
|
|
4401
4399
|
] }),
|
|
4402
|
-
!A && !v &&
|
|
4400
|
+
!A && !v && W.length === 0 && /* @__PURE__ */ e.jsxs("div", { className: g.emptyState, children: [
|
|
4403
4401
|
/* @__PURE__ */ e.jsx("span", { className: g.emptyStateIcon, children: /* @__PURE__ */ e.jsx(tn, {}) }),
|
|
4404
4402
|
/* @__PURE__ */ e.jsx("p", { className: g.emptyStateTitle, children: d?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
|
|
4405
4403
|
/* @__PURE__ */ e.jsx("p", { className: g.emptyStateSubtitle, children: d?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
|
|
4406
4404
|
] }),
|
|
4407
|
-
!A && !v &&
|
|
4408
|
-
/* @__PURE__ */ e.jsxs("div", { className: g.dateTabs, ref:
|
|
4409
|
-
|
|
4405
|
+
!A && !v && W.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4406
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.dateTabs, ref: de, role: "radiogroup", "aria-label": "Consultation date", children: [
|
|
4407
|
+
X && /* @__PURE__ */ e.jsx(
|
|
4410
4408
|
"span",
|
|
4411
4409
|
{
|
|
4412
4410
|
className: g.dateTabIndicator,
|
|
4413
4411
|
style: {
|
|
4414
|
-
transform: `translate(${
|
|
4415
|
-
width:
|
|
4416
|
-
height:
|
|
4412
|
+
transform: `translate(${X.left}px, ${X.top}px)`,
|
|
4413
|
+
width: X.width,
|
|
4414
|
+
height: X.height
|
|
4417
4415
|
},
|
|
4418
4416
|
"aria-hidden": "true"
|
|
4419
4417
|
}
|
|
4420
4418
|
),
|
|
4421
|
-
|
|
4419
|
+
W.map((i) => {
|
|
4422
4420
|
const b = i.date === B, { dayLabel: f, dayNum: fe } = Zn(i.date);
|
|
4423
|
-
return /* @__PURE__ */ e.jsxs(
|
|
4421
|
+
return /* @__PURE__ */ e.jsxs(Va, { children: [
|
|
4424
4422
|
/* @__PURE__ */ e.jsxs(
|
|
4425
4423
|
"button",
|
|
4426
4424
|
{
|
|
4427
4425
|
type: "button",
|
|
4428
|
-
ref: (
|
|
4429
|
-
|
|
4426
|
+
ref: (le) => {
|
|
4427
|
+
ue.current[i.date] = le;
|
|
4430
4428
|
},
|
|
4431
4429
|
className: [
|
|
4432
4430
|
g.dateTab,
|
|
@@ -4445,14 +4443,14 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4445
4443
|
] }, i.date);
|
|
4446
4444
|
})
|
|
4447
4445
|
] }),
|
|
4448
|
-
/* @__PURE__ */ e.jsxs("div", { className: g.periodTabs, ref:
|
|
4449
|
-
|
|
4446
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.periodTabs, ref: ye, role: "tablist", "aria-label": "Time of day", children: [
|
|
4447
|
+
he && /* @__PURE__ */ e.jsx(
|
|
4450
4448
|
"span",
|
|
4451
4449
|
{
|
|
4452
4450
|
className: g.periodTabIndicator,
|
|
4453
4451
|
style: {
|
|
4454
|
-
transform: `translateX(${
|
|
4455
|
-
width:
|
|
4452
|
+
transform: `translateX(${he.left}px)`,
|
|
4453
|
+
width: he.width
|
|
4456
4454
|
},
|
|
4457
4455
|
"aria-hidden": "true"
|
|
4458
4456
|
}
|
|
@@ -4463,15 +4461,15 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4463
4461
|
"button",
|
|
4464
4462
|
{
|
|
4465
4463
|
ref: (fe) => {
|
|
4466
|
-
|
|
4464
|
+
Ne.current[i] = fe;
|
|
4467
4465
|
},
|
|
4468
4466
|
type: "button",
|
|
4469
4467
|
className: [
|
|
4470
4468
|
g.periodTab,
|
|
4471
|
-
i ===
|
|
4469
|
+
i === $ ? g.periodTabSelected : ""
|
|
4472
4470
|
].filter(Boolean).join(" "),
|
|
4473
4471
|
role: "tab",
|
|
4474
|
-
"aria-selected": i ===
|
|
4472
|
+
"aria-selected": i === $,
|
|
4475
4473
|
onClick: () => me(i),
|
|
4476
4474
|
children: [
|
|
4477
4475
|
/* @__PURE__ */ e.jsx(b, {}),
|
|
@@ -4488,7 +4486,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4488
4486
|
className: g.timeGrid,
|
|
4489
4487
|
role: "radiogroup",
|
|
4490
4488
|
"aria-label": "Consultation time",
|
|
4491
|
-
children:
|
|
4489
|
+
children: ce.map((i, b) => /* @__PURE__ */ e.jsx(
|
|
4492
4490
|
"button",
|
|
4493
4491
|
{
|
|
4494
4492
|
type: "button",
|
|
@@ -4498,13 +4496,13 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4498
4496
|
].filter(Boolean).join(" "),
|
|
4499
4497
|
role: "radio",
|
|
4500
4498
|
"aria-checked": E?.start === i.start,
|
|
4501
|
-
onClick: () =>
|
|
4499
|
+
onClick: () => Re(i),
|
|
4502
4500
|
children: aa(i.start)
|
|
4503
4501
|
},
|
|
4504
4502
|
`${i.start}-${b}`
|
|
4505
4503
|
))
|
|
4506
4504
|
},
|
|
4507
|
-
`${B}-${
|
|
4505
|
+
`${B}-${$}`
|
|
4508
4506
|
)
|
|
4509
4507
|
] }),
|
|
4510
4508
|
!P && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
@@ -4515,11 +4513,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4515
4513
|
type: "button",
|
|
4516
4514
|
className: [
|
|
4517
4515
|
g.topicChip,
|
|
4518
|
-
|
|
4516
|
+
ee === i.id ? g.topicChipSelected : ""
|
|
4519
4517
|
].filter(Boolean).join(" "),
|
|
4520
4518
|
role: "radio",
|
|
4521
|
-
"aria-checked":
|
|
4522
|
-
onClick: () =>
|
|
4519
|
+
"aria-checked": ee === i.id,
|
|
4520
|
+
onClick: () => _e(i.id),
|
|
4523
4521
|
children: d?.(i.labelKey) ?? i.label
|
|
4524
4522
|
},
|
|
4525
4523
|
i.id
|
|
@@ -4546,9 +4544,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4546
4544
|
"button",
|
|
4547
4545
|
{
|
|
4548
4546
|
type: "button",
|
|
4549
|
-
className: [g.proceedBtn,
|
|
4550
|
-
disabled: !
|
|
4551
|
-
onClick:
|
|
4547
|
+
className: [g.proceedBtn, je ? "" : g.proceedBtnDisabled].filter(Boolean).join(" "),
|
|
4548
|
+
disabled: !je,
|
|
4549
|
+
onClick: ve,
|
|
4552
4550
|
children: P ? d?.("planBookSlot") ?? "Book Slot" : d?.("planProceedToPayment") ?? "Proceed to payment"
|
|
4553
4551
|
}
|
|
4554
4552
|
)
|
|
@@ -4625,7 +4623,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4625
4623
|
analytics: P,
|
|
4626
4624
|
enableConsultationScheduling: k
|
|
4627
4625
|
}) => {
|
|
4628
|
-
const Y = Ie(), M = Y?.config.isGlobal ?? !0, R = k ?? Y?.config.enableConsultationScheduling ?? !1, m = d ?? ui(M), C = s?.id || m.find((S) => S.badge)?.id || m[0]?.id || "", A =
|
|
4626
|
+
const Y = Ie(), M = Y?.config.isGlobal ?? !0, R = k ?? Y?.config.enableConsultationScheduling ?? !1, m = d ?? ui(M), C = s?.id || m.find((S) => S.badge)?.id || m[0]?.id || "", A = U(null), z = U(null), v = U(!1), [y, w] = I(!1);
|
|
4629
4627
|
q(() => {
|
|
4630
4628
|
if (t) {
|
|
4631
4629
|
if (!s) {
|
|
@@ -4695,7 +4693,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4695
4693
|
isSelected: S.id === C,
|
|
4696
4694
|
t: _,
|
|
4697
4695
|
onSelect: (V) => {
|
|
4698
|
-
const j = m.find((
|
|
4696
|
+
const j = m.find((O) => O.id === V);
|
|
4699
4697
|
j && (P?.trackPlanSelected?.({
|
|
4700
4698
|
planId: j.id,
|
|
4701
4699
|
planName: j.title,
|
|
@@ -4791,9 +4789,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4791
4789
|
googleMapsAutocompleteEnabled: m,
|
|
4792
4790
|
analytics: C
|
|
4793
4791
|
}) => {
|
|
4794
|
-
const A = Ie(), z =
|
|
4792
|
+
const A = Ie(), z = yt(), v = A !== null, y = v ? A.locale : n, w = y ?? z?.locale ?? "en", [oe, S] = I(w), V = v ? A.locale : oe, j = v ? A.setLocale : S, [O, N] = I(!1), G = U(null), ee = U(
|
|
4795
4793
|
y
|
|
4796
|
-
),
|
|
4794
|
+
), ae = U(
|
|
4797
4795
|
z?.locale
|
|
4798
4796
|
);
|
|
4799
4797
|
q(() => {
|
|
@@ -4801,75 +4799,75 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4801
4799
|
}, []);
|
|
4802
4800
|
const B = (f) => fi(V, f);
|
|
4803
4801
|
q(() => {
|
|
4804
|
-
y &&
|
|
4802
|
+
y && ee.current !== y && j(y), ee.current = y;
|
|
4805
4803
|
}, [y, j]), q(() => {
|
|
4806
4804
|
if (y) return;
|
|
4807
4805
|
const f = z?.locale;
|
|
4808
|
-
f &&
|
|
4806
|
+
f && ae.current !== f && j(f), ae.current = f;
|
|
4809
4807
|
}, [z?.locale, y, j]);
|
|
4810
|
-
const [D,
|
|
4808
|
+
const [D, $] = I({
|
|
4811
4809
|
...gi,
|
|
4812
4810
|
...d,
|
|
4813
4811
|
phone: d?.phone ?? ""
|
|
4814
|
-
}), Q = v ? A?.config.isGlobal ?? !0 : !0, E = v ? A.formValues : D, be = v ? A.setFormValues :
|
|
4812
|
+
}), Q = v ? A?.config.isGlobal ?? !0 : !0, E = v ? A.formValues : D, be = v ? A.setFormValues : $, [ie, de] = I(
|
|
4815
4813
|
() => hi(E.phoneCountryCode, Q)
|
|
4816
|
-
),
|
|
4814
|
+
), ue = U(
|
|
4817
4815
|
!!(E.phoneCountryCode && ra.includes(E.phoneCountryCode))
|
|
4818
|
-
),
|
|
4819
|
-
|
|
4820
|
-
}, []),
|
|
4816
|
+
), X = U(!1), xe = Ce((f) => {
|
|
4817
|
+
X.current = !0, de(f);
|
|
4818
|
+
}, []), ye = U(!0);
|
|
4821
4819
|
q(() => {
|
|
4822
|
-
if (
|
|
4823
|
-
|
|
4820
|
+
if (ye.current) {
|
|
4821
|
+
ye.current = !1;
|
|
4824
4822
|
return;
|
|
4825
4823
|
}
|
|
4826
|
-
|
|
4824
|
+
ue.current || X.current || de(Q ? "+1" : "+91");
|
|
4827
4825
|
}, [Q]), q(() => {
|
|
4828
|
-
if (!v ||
|
|
4826
|
+
if (!v || X.current) return;
|
|
4829
4827
|
const f = E.phoneCountryCode;
|
|
4830
|
-
f && ra.includes(f) && f !== ie && (
|
|
4828
|
+
f && ra.includes(f) && f !== ie && (ue.current = !0, de(f));
|
|
4831
4829
|
}, [v, E.phoneCountryCode]);
|
|
4832
|
-
const
|
|
4830
|
+
const Ne = v ? A.goToPage : p, he = v ? A.onProceed : h, Z = v ? A.onProceedGuidance : _, W = v ? A.config.proceedHref : P, ge = v ? A.config.originalPriceLabel : k, te = v ? A.config.discountedPriceLabel : Y, re = v ? A.config.showLanguageSelector ?? !0 : s, ce = (v ? A?.config?.analytics : C) ?? C;
|
|
4833
4831
|
q(() => {
|
|
4834
|
-
if (
|
|
4832
|
+
if (!O) return;
|
|
4835
4833
|
const f = (fe) => {
|
|
4836
|
-
|
|
4834
|
+
G.current && !G.current.contains(fe.target) && N(!1);
|
|
4837
4835
|
};
|
|
4838
4836
|
return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
|
|
4839
|
-
}, [
|
|
4840
|
-
const [
|
|
4841
|
-
|
|
4842
|
-
}, []),
|
|
4837
|
+
}, [O]);
|
|
4838
|
+
const [je, pe] = I(!1), [me, Re] = I(null), ve = U(null), _e = Ce((f) => {
|
|
4839
|
+
ve.current = f, pe(!0);
|
|
4840
|
+
}, []), Te = U(!1);
|
|
4843
4841
|
q(() => {
|
|
4844
|
-
if (
|
|
4842
|
+
if (Te.current || !v || !A?.config.autoOpenPlanSheet || A?.config.variant !== "v1")
|
|
4845
4843
|
return;
|
|
4846
|
-
|
|
4844
|
+
Te.current = !0;
|
|
4847
4845
|
const f = (E.phone ?? "").trim();
|
|
4848
|
-
|
|
4846
|
+
_e({
|
|
4849
4847
|
...E,
|
|
4850
4848
|
phone: f && `${ie}-${f}`
|
|
4851
4849
|
});
|
|
4852
|
-
}, [v, A?.config.autoOpenPlanSheet, A?.config.variant, E, ie,
|
|
4853
|
-
const
|
|
4854
|
-
if (!
|
|
4855
|
-
|
|
4850
|
+
}, [v, A?.config.autoOpenPlanSheet, A?.config.variant, E, ie, _e]);
|
|
4851
|
+
const Pe = Ce(() => {
|
|
4852
|
+
if (!ve.current || !me) return;
|
|
4853
|
+
ce?.trackPlanProceedClicked?.({
|
|
4856
4854
|
planId: me.id,
|
|
4857
4855
|
planName: me.title,
|
|
4858
4856
|
price: me.price,
|
|
4859
4857
|
currency: Q ? "USD" : "INR"
|
|
4860
4858
|
});
|
|
4861
|
-
const f = { ...
|
|
4862
|
-
me.id ===
|
|
4863
|
-
}, [me,
|
|
4859
|
+
const f = { ...ve.current, _selectedPlan: me };
|
|
4860
|
+
me.id === Ra && Z ? Z(f) : he?.(f), pe(!1), ve.current = null;
|
|
4861
|
+
}, [me, he, Z]), i = A?.config.imageComponent ?? Ye, b = re ? /* @__PURE__ */ e.jsxs("div", { className: Le.langDropdownWrap, ref: G, children: [
|
|
4864
4862
|
/* @__PURE__ */ e.jsxs(
|
|
4865
4863
|
"button",
|
|
4866
4864
|
{
|
|
4867
4865
|
type: "button",
|
|
4868
4866
|
className: Le.langTrigger,
|
|
4869
4867
|
onClick: () => {
|
|
4870
|
-
|
|
4868
|
+
ce?.trackLanguageClickedFe?.({ language: V }), N((f) => !f);
|
|
4871
4869
|
},
|
|
4872
|
-
"aria-expanded":
|
|
4870
|
+
"aria-expanded": O,
|
|
4873
4871
|
"aria-haspopup": "listbox",
|
|
4874
4872
|
id: "kundli-form-lang",
|
|
4875
4873
|
"aria-label": B("language"),
|
|
@@ -4889,7 +4887,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4889
4887
|
]
|
|
4890
4888
|
}
|
|
4891
4889
|
),
|
|
4892
|
-
|
|
4890
|
+
O && /* @__PURE__ */ e.jsx(
|
|
4893
4891
|
"ul",
|
|
4894
4892
|
{
|
|
4895
4893
|
className: Le.langMenu,
|
|
@@ -4904,7 +4902,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4904
4902
|
"aria-selected": f === V,
|
|
4905
4903
|
className: Le.langOption,
|
|
4906
4904
|
onClick: () => {
|
|
4907
|
-
|
|
4905
|
+
ce?.trackLanguageChangedFe?.({ newLanguage: f }), j(f), N(!1);
|
|
4908
4906
|
},
|
|
4909
4907
|
children: ka[f]
|
|
4910
4908
|
},
|
|
@@ -4925,7 +4923,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4925
4923
|
),
|
|
4926
4924
|
/* @__PURE__ */ e.jsx("div", { className: Le.headerSeparator, "aria-hidden": !0 }),
|
|
4927
4925
|
/* @__PURE__ */ e.jsxs("main", { className: Le.main, children: [
|
|
4928
|
-
/* @__PURE__ */ e.jsx(Ct, { t: B, onBack:
|
|
4926
|
+
/* @__PURE__ */ e.jsx(Ct, { t: B, onBack: Ne }),
|
|
4929
4927
|
/* @__PURE__ */ e.jsx(
|
|
4930
4928
|
Dr,
|
|
4931
4929
|
{
|
|
@@ -4936,9 +4934,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4936
4934
|
atlasSearchLocalities: R,
|
|
4937
4935
|
googleMapsAutocompleteEnabled: m,
|
|
4938
4936
|
phoneIsdCode: ie,
|
|
4939
|
-
onPhoneIsdCodeChange:
|
|
4937
|
+
onPhoneIsdCodeChange: xe,
|
|
4940
4938
|
showV1ExtraFields: v ? A?.config.variant === "v1" : !1,
|
|
4941
|
-
analytics:
|
|
4939
|
+
analytics: ce
|
|
4942
4940
|
}
|
|
4943
4941
|
)
|
|
4944
4942
|
] }),
|
|
@@ -4948,30 +4946,30 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4948
4946
|
t: B,
|
|
4949
4947
|
values: E,
|
|
4950
4948
|
phoneIsdCode: ie,
|
|
4951
|
-
onProceed:
|
|
4952
|
-
onProceedGuidance:
|
|
4953
|
-
href:
|
|
4949
|
+
onProceed: he,
|
|
4950
|
+
onProceedGuidance: Z,
|
|
4951
|
+
href: W,
|
|
4954
4952
|
originalPriceLabel: ge,
|
|
4955
|
-
discountedPriceLabel:
|
|
4956
|
-
analytics:
|
|
4957
|
-
showPlanSheet:
|
|
4958
|
-
confirmPlan:
|
|
4959
|
-
planSheetOpen:
|
|
4953
|
+
discountedPriceLabel: te,
|
|
4954
|
+
analytics: ce,
|
|
4955
|
+
showPlanSheet: _e,
|
|
4956
|
+
confirmPlan: Pe,
|
|
4957
|
+
planSheetOpen: je,
|
|
4960
4958
|
selectedPlan: me
|
|
4961
4959
|
}
|
|
4962
4960
|
),
|
|
4963
4961
|
A?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
|
|
4964
4962
|
pi,
|
|
4965
4963
|
{
|
|
4966
|
-
isOpen:
|
|
4964
|
+
isOpen: je,
|
|
4967
4965
|
onClose: () => pe(!1),
|
|
4968
4966
|
selectedPlan: me,
|
|
4969
|
-
onSelectPlan:
|
|
4967
|
+
onSelectPlan: Re,
|
|
4970
4968
|
onProceed: () => {
|
|
4971
|
-
|
|
4969
|
+
Pe?.();
|
|
4972
4970
|
},
|
|
4973
4971
|
t: B,
|
|
4974
|
-
analytics:
|
|
4972
|
+
analytics: ce
|
|
4975
4973
|
}
|
|
4976
4974
|
)
|
|
4977
4975
|
] });
|
|
@@ -5054,10 +5052,10 @@ export {
|
|
|
5054
5052
|
ki as I,
|
|
5055
5053
|
xi as K,
|
|
5056
5054
|
ka as L,
|
|
5057
|
-
|
|
5055
|
+
Ra as P,
|
|
5058
5056
|
Pa as S,
|
|
5059
5057
|
Dr as U,
|
|
5060
|
-
|
|
5058
|
+
wa as a,
|
|
5061
5059
|
ia as b,
|
|
5062
5060
|
Pi as c,
|
|
5063
5061
|
vi as d,
|
|
@@ -5076,6 +5074,6 @@ export {
|
|
|
5076
5074
|
yi as r,
|
|
5077
5075
|
vt as s,
|
|
5078
5076
|
xa as t,
|
|
5079
|
-
|
|
5077
|
+
yt as u
|
|
5080
5078
|
};
|
|
5081
|
-
//# sourceMappingURL=analytics-
|
|
5079
|
+
//# sourceMappingURL=analytics-DOMI7QBu.js.map
|