@srimandir/kundli-generator 7.6.4 → 7.6.5
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-D3A616My.js} +723 -721
- package/dist/analytics-D3A616My.js.map +1 -0
- package/dist/{criticalCss-Cc_9YRFI.js → criticalCss-B0LJpsZ_.js} +2 -2
- package/dist/{criticalCss-Cc_9YRFI.js.map → criticalCss-B0LJpsZ_.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 je, Fragment as za } from "react";
|
|
2
|
+
import { FormSectionHeader as Qa, FooterCTAButton as Xa, FooterShell as Za, CircularMarquee as et, footerShellStyles as Ee, PageHeader as at } from "@srimandir/astrology-common";
|
|
3
3
|
var Ve = { exports: {} }, He = {};
|
|
4
4
|
var ga;
|
|
5
|
-
function
|
|
5
|
+
function tt() {
|
|
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 rt() {
|
|
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) {
|
|
@@ -31,34 +31,34 @@ function tt() {
|
|
|
31
31
|
{
|
|
32
32
|
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), T = 1; T < l; T++)
|
|
33
33
|
u[T - 1] = arguments[T];
|
|
34
|
-
|
|
34
|
+
ie("error", a, u);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function ie(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
|
-
|
|
47
|
+
var S = !1, V = !1, j = !1, O = !1, N = !1, G;
|
|
48
|
+
G = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
49
|
function Z(a) {
|
|
50
|
-
return !!(typeof a == "string" || typeof a == "function" || a === p || a === h || N || a === d || a === Y || a === M ||
|
|
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
56
|
function ee(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";
|
|
@@ -98,7 +98,7 @@ function tt() {
|
|
|
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,14 +108,14 @@ function tt() {
|
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
111
|
-
var
|
|
111
|
+
var $ = Object.assign, Q = 0, E, _e, le, ue, pe, ae, ge;
|
|
112
112
|
function Ae() {
|
|
113
113
|
}
|
|
114
114
|
Ae.__reactDisabledLog = !0;
|
|
115
|
-
function
|
|
115
|
+
function Re() {
|
|
116
116
|
{
|
|
117
117
|
if (Q === 0) {
|
|
118
|
-
E = console.log,
|
|
118
|
+
E = console.log, _e = console.info, le = console.warn, ue = console.error, pe = console.group, ae = console.groupCollapsed, ge = console.groupEnd;
|
|
119
119
|
var a = {
|
|
120
120
|
configurable: !0,
|
|
121
121
|
enumerable: !0,
|
|
@@ -135,7 +135,7 @@ function tt() {
|
|
|
135
135
|
Q++;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function be() {
|
|
139
139
|
{
|
|
140
140
|
if (Q--, Q === 0) {
|
|
141
141
|
var a = {
|
|
@@ -144,65 +144,65 @@ 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:
|
|
151
|
-
value:
|
|
150
|
+
info: $({}, a, {
|
|
151
|
+
value: _e
|
|
152
152
|
}),
|
|
153
|
-
warn:
|
|
154
|
-
value:
|
|
153
|
+
warn: $({}, a, {
|
|
154
|
+
value: le
|
|
155
155
|
}),
|
|
156
|
-
error:
|
|
156
|
+
error: $({}, a, {
|
|
157
157
|
value: ue
|
|
158
158
|
}),
|
|
159
|
-
group:
|
|
160
|
-
value:
|
|
159
|
+
group: $({}, a, {
|
|
160
|
+
value: pe
|
|
161
161
|
}),
|
|
162
|
-
groupCollapsed:
|
|
162
|
+
groupCollapsed: $({}, a, {
|
|
163
163
|
value: ae
|
|
164
164
|
}),
|
|
165
|
-
groupEnd:
|
|
166
|
-
value:
|
|
165
|
+
groupEnd: $({}, a, {
|
|
166
|
+
value: ge
|
|
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
|
|
174
|
-
function
|
|
173
|
+
var de = y.ReactCurrentDispatcher, W;
|
|
174
|
+
function re(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 X = !1,
|
|
187
|
+
var X = !1, te;
|
|
188
188
|
{
|
|
189
|
-
var
|
|
190
|
-
|
|
189
|
+
var ne = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
|
+
te = new ne();
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function ve(a, l) {
|
|
193
193
|
if (!a || X)
|
|
194
194
|
return "";
|
|
195
195
|
{
|
|
196
|
-
var u =
|
|
196
|
+
var u = te.get(a);
|
|
197
197
|
if (u !== void 0)
|
|
198
198
|
return u;
|
|
199
199
|
}
|
|
200
200
|
var T;
|
|
201
201
|
X = !0;
|
|
202
|
-
var
|
|
202
|
+
var H = Error.prepareStackTrace;
|
|
203
203
|
Error.prepareStackTrace = void 0;
|
|
204
204
|
var J;
|
|
205
|
-
J =
|
|
205
|
+
J = de.current, de.current = null, Re();
|
|
206
206
|
try {
|
|
207
207
|
if (l) {
|
|
208
208
|
var F = function() {
|
|
@@ -215,55 +215,55 @@ function tt() {
|
|
|
215
215
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
216
216
|
try {
|
|
217
217
|
Reflect.construct(F, []);
|
|
218
|
-
} catch (
|
|
219
|
-
T =
|
|
218
|
+
} catch (Te) {
|
|
219
|
+
T = Te;
|
|
220
220
|
}
|
|
221
221
|
Reflect.construct(a, [], F);
|
|
222
222
|
} else {
|
|
223
223
|
try {
|
|
224
224
|
F.call();
|
|
225
|
-
} catch (
|
|
226
|
-
T =
|
|
225
|
+
} catch (Te) {
|
|
226
|
+
T = Te;
|
|
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 (Te) {
|
|
234
|
+
T = Te;
|
|
235
235
|
}
|
|
236
236
|
a();
|
|
237
237
|
}
|
|
238
|
-
} catch (
|
|
239
|
-
if (
|
|
240
|
-
for (var L =
|
|
238
|
+
} catch (Te) {
|
|
239
|
+
if (Te && T && typeof Te.stack == "string") {
|
|
240
|
+
for (var L = Te.stack.split(`
|
|
241
241
|
`), ye = T.stack.split(`
|
|
242
|
-
`),
|
|
242
|
+
`), oe = L.length - 1, ce = ye.length - 1; oe >= 1 && ce >= 0 && L[oe] !== ye[ce]; )
|
|
243
243
|
ce--;
|
|
244
|
-
for (;
|
|
245
|
-
if (L[
|
|
246
|
-
if (
|
|
244
|
+
for (; oe >= 1 && ce >= 0; oe--, ce--)
|
|
245
|
+
if (L[oe] !== ye[ce]) {
|
|
246
|
+
if (oe !== 1 || ce !== 1)
|
|
247
247
|
do
|
|
248
|
-
if (
|
|
249
|
-
var
|
|
250
|
-
` + L[
|
|
251
|
-
return a.displayName &&
|
|
248
|
+
if (oe--, ce--, ce < 0 || L[oe] !== ye[ce]) {
|
|
249
|
+
var Ce = `
|
|
250
|
+
` + L[oe].replace(" at new ", " at ");
|
|
251
|
+
return a.displayName && Ce.includes("<anonymous>") && (Ce = Ce.replace("<anonymous>", a.displayName)), typeof a == "function" && te.set(a, Ce), Ce;
|
|
252
252
|
}
|
|
253
|
-
while (
|
|
253
|
+
while (oe >= 1 && ce >= 0);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
} finally {
|
|
258
|
-
X = !1,
|
|
258
|
+
X = !1, de.current = J, be(), Error.prepareStackTrace = H;
|
|
259
259
|
}
|
|
260
|
-
var Me = a ? a.displayName || a.name : "", De = Me ?
|
|
261
|
-
return typeof a == "function" &&
|
|
260
|
+
var Me = a ? a.displayName || a.name : "", De = Me ? re(Me) : "";
|
|
261
|
+
return typeof a == "function" && te.set(a, De), De;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
264
|
-
return
|
|
263
|
+
function me(a, l, u) {
|
|
264
|
+
return ve(a, !1);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function fe(a) {
|
|
267
267
|
var l = a.prototype;
|
|
268
268
|
return !!(l && l.isReactComponent);
|
|
269
269
|
}
|
|
@@ -271,42 +271,42 @@ function tt() {
|
|
|
271
271
|
if (a == null)
|
|
272
272
|
return "";
|
|
273
273
|
if (typeof a == "function")
|
|
274
|
-
return
|
|
274
|
+
return ve(a, fe(a));
|
|
275
275
|
if (typeof a == "string")
|
|
276
|
-
return
|
|
276
|
+
return re(a);
|
|
277
277
|
switch (a) {
|
|
278
278
|
case Y:
|
|
279
|
-
return
|
|
279
|
+
return re("Suspense");
|
|
280
280
|
case M:
|
|
281
|
-
return
|
|
281
|
+
return re("SuspenseList");
|
|
282
282
|
}
|
|
283
283
|
if (typeof a == "object")
|
|
284
284
|
switch (a.$$typeof) {
|
|
285
285
|
case k:
|
|
286
|
-
return
|
|
286
|
+
return me(a.render);
|
|
287
287
|
case R:
|
|
288
288
|
return Ne(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 Ne(J(
|
|
292
|
+
return Ne(J(H), l, u);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
return "";
|
|
298
298
|
}
|
|
299
|
-
var
|
|
300
|
-
function
|
|
299
|
+
var Pe = Object.prototype.hasOwnProperty, ke = {}, xe = y.ReactDebugCurrentFrame;
|
|
300
|
+
function Se(a) {
|
|
301
301
|
if (a) {
|
|
302
302
|
var l = a._owner, u = Ne(a.type, a._source, l ? l.type : null);
|
|
303
|
-
|
|
303
|
+
xe.setExtraStackFrame(u);
|
|
304
304
|
} else
|
|
305
|
-
|
|
305
|
+
xe.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(Pe);
|
|
310
310
|
for (var F in a)
|
|
311
311
|
if (J(a, F)) {
|
|
312
312
|
var L = void 0;
|
|
@@ -316,10 +316,10 @@ function tt() {
|
|
|
316
316
|
throw ye.name = "Invariant Violation", ye;
|
|
317
317
|
}
|
|
318
318
|
L = a[F](l, F, T, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
|
-
} catch (
|
|
320
|
-
L =
|
|
319
|
+
} catch (oe) {
|
|
320
|
+
L = oe;
|
|
321
321
|
}
|
|
322
|
-
L && !(L instanceof Error) && (
|
|
322
|
+
L && !(L instanceof Error) && (Se(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), Se(null)), L instanceof Error && !(L.message in ke) && (ke[L.message] = !0, Se(H), w("Failed %s type: %s", u, L.message), Se(null));
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
@@ -327,7 +327,7 @@ function tt() {
|
|
|
327
327
|
function f(a) {
|
|
328
328
|
return b(a);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function he(a) {
|
|
331
331
|
{
|
|
332
332
|
var l = typeof Symbol == "function" && Symbol.toStringTag, u = l && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
333
333
|
return u;
|
|
@@ -345,16 +345,16 @@ function tt() {
|
|
|
345
345
|
}
|
|
346
346
|
function Oe(a) {
|
|
347
347
|
if (se(a))
|
|
348
|
-
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
348
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", he(a)), Ge(a);
|
|
349
349
|
}
|
|
350
350
|
var r = y.ReactCurrentOwner, c = {
|
|
351
351
|
key: !0,
|
|
352
352
|
ref: !0,
|
|
353
353
|
__self: !0,
|
|
354
354
|
__source: !0
|
|
355
|
-
}, K,
|
|
355
|
+
}, K, we;
|
|
356
356
|
function $e(a) {
|
|
357
|
-
if (
|
|
357
|
+
if (Pe.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 (Pe.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 Ea(a, l) {
|
|
373
373
|
typeof a.ref == "string" && r.current;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Ia(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,10 +383,10 @@ function tt() {
|
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Fa(a, l) {
|
|
387
387
|
{
|
|
388
388
|
var u = function() {
|
|
389
|
-
|
|
389
|
+
we || (we = !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));
|
|
390
390
|
};
|
|
391
391
|
u.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
392
392
|
get: u,
|
|
@@ -394,7 +394,7 @@ function tt() {
|
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
var
|
|
397
|
+
var Ma = 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,25 +420,25 @@ 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 Ua(a, l, u, T, H) {
|
|
427
427
|
{
|
|
428
428
|
var J, F = {}, L = null, ye = null;
|
|
429
|
-
u !== void 0 && (Oe(u), L = "" + u), ze(l) && (Oe(l.key), L = "" + l.key), $e(l) && (ye = l.ref,
|
|
429
|
+
u !== void 0 && (Oe(u), L = "" + u), ze(l) && (Oe(l.key), L = "" + l.key), $e(l) && (ye = l.ref, Ea(l, H));
|
|
430
430
|
for (J in l)
|
|
431
|
-
|
|
431
|
+
Pe.call(l, J) && !c.hasOwnProperty(J) && (F[J] = l[J]);
|
|
432
432
|
if (a && a.defaultProps) {
|
|
433
|
-
var
|
|
434
|
-
for (J in
|
|
435
|
-
F[J] === void 0 && (F[J] =
|
|
433
|
+
var oe = a.defaultProps;
|
|
434
|
+
for (J in oe)
|
|
435
|
+
F[J] === void 0 && (F[J] = oe[J]);
|
|
436
436
|
}
|
|
437
437
|
if (L || ye) {
|
|
438
438
|
var ce = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
439
|
-
L &&
|
|
439
|
+
L && Ia(F, ce), ye && Fa(F, ce);
|
|
440
440
|
}
|
|
441
|
-
return
|
|
441
|
+
return Ma(a, L, ye, H, T, r.current, F);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
var Qe = y.ReactCurrentOwner, ca = y.ReactDebugCurrentFrame;
|
|
@@ -466,11 +466,11 @@ Check the render method of \`` + a + "`.";
|
|
|
466
466
|
return "";
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Ga(a) {
|
|
470
470
|
return "";
|
|
471
471
|
}
|
|
472
472
|
var ua = {};
|
|
473
|
-
function
|
|
473
|
+
function Oa(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 = Oa(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 $a(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 Ha(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,76 +552,76 @@ 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
557
|
var F = Z(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 ye =
|
|
561
|
+
var ye = Ga();
|
|
562
562
|
ye ? L += ye : L += da();
|
|
563
|
-
var
|
|
564
|
-
a === null ?
|
|
563
|
+
var oe;
|
|
564
|
+
a === null ? oe = "null" : f(a) ? oe = "array" : a !== void 0 && a.$$typeof === n ? (oe = "<" + (D(a.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : oe = 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", oe, L);
|
|
565
565
|
}
|
|
566
|
-
var ce =
|
|
566
|
+
var ce = Ua(a, l, u, H, J);
|
|
567
567
|
if (ce == null)
|
|
568
568
|
return ce;
|
|
569
569
|
if (F) {
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
570
|
+
var Ce = l.children;
|
|
571
|
+
if (Ce !== void 0)
|
|
572
572
|
if (T)
|
|
573
|
-
if (f(
|
|
574
|
-
for (var Me = 0; Me <
|
|
575
|
-
ma(
|
|
576
|
-
Object.freeze && Object.freeze(
|
|
573
|
+
if (f(Ce)) {
|
|
574
|
+
for (var Me = 0; Me < Ce.length; Me++)
|
|
575
|
+
ma(Ce[Me], a);
|
|
576
|
+
Object.freeze && Object.freeze(Ce);
|
|
577
577
|
} else
|
|
578
578
|
w("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
|
-
ma(
|
|
580
|
+
ma(Ce, a);
|
|
581
581
|
}
|
|
582
|
-
if (
|
|
583
|
-
var De = D(a),
|
|
584
|
-
return
|
|
585
|
-
}), ea =
|
|
582
|
+
if (Pe.call(l, "key")) {
|
|
583
|
+
var De = D(a), Te = Object.keys(l).filter(function(Ja) {
|
|
584
|
+
return Ja !== "key";
|
|
585
|
+
}), ea = Te.length > 0 ? "{key: someKey, " + Te.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
586
|
if (!fa[De + ea]) {
|
|
587
|
-
var
|
|
587
|
+
var Va = Te.length > 0 ? "{" + Te.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, Va, De), fa[De + ea] = !0;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
return a === p ?
|
|
596
|
+
return a === p ? Ha(ce) : $a(ce), ce;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function Wa(a, l, u) {
|
|
600
600
|
return ha(a, l, u, !0);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function Ka(a, l, u) {
|
|
603
603
|
return ha(a, l, u, !1);
|
|
604
604
|
}
|
|
605
|
-
var
|
|
606
|
-
We.Fragment = p, We.jsx =
|
|
605
|
+
var qa = Ka, Ya = Wa;
|
|
606
|
+
We.Fragment = p, We.jsx = qa, We.jsxs = Ya;
|
|
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 nt() {
|
|
611
|
+
return _a || (_a = 1, process.env.NODE_ENV === "production" ? Ve.exports = tt() : Ve.exports = rt()), 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 = nt();
|
|
614
|
+
const ot = "_container_1e1th_1", it = "_main_1e1th_7", lt = "_kundliHeaderNoBorder_1e1th_12", st = "_headerSeparator_1e1th_16", ct = "_langDropdownWrap_1e1th_21", dt = "_langTrigger_1e1th_25", ut = "_langIcon_1e1th_37", pt = "_langLabel_1e1th_44", mt = "_langMenu_1e1th_49", ft = "_langOption_1e1th_55", Le = {
|
|
615
|
+
container: ot,
|
|
616
|
+
main: it,
|
|
617
|
+
kundliHeaderNoBorder: lt,
|
|
618
|
+
headerSeparator: st,
|
|
619
|
+
langDropdownWrap: ct,
|
|
620
|
+
langTrigger: dt,
|
|
621
|
+
langIcon: ut,
|
|
622
|
+
langLabel: pt,
|
|
623
|
+
langMenu: mt,
|
|
624
|
+
langOption: ft
|
|
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
|
+
}, ht = {
|
|
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
|
+
}, gt = {
|
|
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
|
+
}, bt = {
|
|
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
|
+
}, _t = {
|
|
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
|
+
}, kt = {
|
|
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
|
+
}, yt = {
|
|
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
|
+
}, At = {
|
|
2037
2037
|
kundli: "జాతకం",
|
|
2038
2038
|
birthChart: "జన్మ జాతకం",
|
|
2039
2039
|
details: "వివరాలు",
|
|
@@ -2264,16 +2264,16 @@ 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: ht,
|
|
2268
|
+
hi: gt,
|
|
2269
|
+
mr: bt,
|
|
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:
|
|
2276
|
-
}, Sa = Ta(null),
|
|
2272
|
+
gu: _t,
|
|
2273
|
+
ta: yt,
|
|
2274
|
+
te: At,
|
|
2275
|
+
kn: kt
|
|
2276
|
+
}, Sa = Ta(null), yi = ({
|
|
2277
2277
|
locale: t,
|
|
2278
2278
|
children: n
|
|
2279
2279
|
}) => {
|
|
@@ -2294,7 +2294,7 @@ const Ye = (t) => {
|
|
|
2294
2294
|
...s && { fetchPriority: s }
|
|
2295
2295
|
});
|
|
2296
2296
|
};
|
|
2297
|
-
function
|
|
2297
|
+
function vt(t) {
|
|
2298
2298
|
if (typeof window > "u" || !window.localStorage)
|
|
2299
2299
|
return null;
|
|
2300
2300
|
try {
|
|
@@ -2303,21 +2303,21 @@ function At(t) {
|
|
|
2303
2303
|
return null;
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
2306
|
-
function
|
|
2306
|
+
function Ca(t, n) {
|
|
2307
2307
|
if (!(typeof window > "u" || !window.localStorage))
|
|
2308
2308
|
try {
|
|
2309
2309
|
window.localStorage.setItem(t, n);
|
|
2310
2310
|
} catch {
|
|
2311
2311
|
}
|
|
2312
2312
|
}
|
|
2313
|
-
function
|
|
2313
|
+
function Ai(t) {
|
|
2314
2314
|
if (!(typeof window > "u" || !window.localStorage))
|
|
2315
2315
|
try {
|
|
2316
2316
|
window.localStorage.removeItem(t);
|
|
2317
2317
|
} catch {
|
|
2318
2318
|
}
|
|
2319
2319
|
}
|
|
2320
|
-
function
|
|
2320
|
+
function vi() {
|
|
2321
2321
|
if (typeof window > "u" || !window.localStorage)
|
|
2322
2322
|
return !1;
|
|
2323
2323
|
try {
|
|
@@ -2327,15 +2327,15 @@ function Ai() {
|
|
|
2327
2327
|
return !1;
|
|
2328
2328
|
}
|
|
2329
2329
|
}
|
|
2330
|
-
const
|
|
2330
|
+
const ja = "kundli_language";
|
|
2331
2331
|
function Tt() {
|
|
2332
|
-
const t =
|
|
2332
|
+
const t = vt(ja);
|
|
2333
2333
|
return t && Pa.includes(t) ? t : null;
|
|
2334
2334
|
}
|
|
2335
2335
|
function Pt(t) {
|
|
2336
|
-
|
|
2336
|
+
Ca(ja, t);
|
|
2337
2337
|
}
|
|
2338
|
-
const ia = Ta(null), xt = {
|
|
2338
|
+
const ia = Ta(null), xt = "language", St = {
|
|
2339
2339
|
fullName: "",
|
|
2340
2340
|
phone: "",
|
|
2341
2341
|
phoneCountryCode: "",
|
|
@@ -2346,7 +2346,7 @@ const ia = Ta(null), xt = {
|
|
|
2346
2346
|
birthTime: "",
|
|
2347
2347
|
birthTimeUnknown: !1,
|
|
2348
2348
|
birthPlace: ""
|
|
2349
|
-
},
|
|
2349
|
+
}, Ti = ({
|
|
2350
2350
|
locale: t,
|
|
2351
2351
|
showLanguageSelector: n = !0,
|
|
2352
2352
|
showSheet: s,
|
|
@@ -2366,43 +2366,45 @@ const ia = Ta(null), xt = {
|
|
|
2366
2366
|
backgroundImagePriority: v,
|
|
2367
2367
|
universityLogoUrls: y,
|
|
2368
2368
|
sampleReportHref: w,
|
|
2369
|
-
onViewSampleReport:
|
|
2369
|
+
onViewSampleReport: ie,
|
|
2370
2370
|
ctaHref: S,
|
|
2371
2371
|
onCtaClick: V,
|
|
2372
2372
|
onBack: j,
|
|
2373
|
-
readMoreReviewsHref:
|
|
2373
|
+
readMoreReviewsHref: O,
|
|
2374
2374
|
onProceed: N,
|
|
2375
|
-
proceedHref:
|
|
2375
|
+
proceedHref: G,
|
|
2376
2376
|
originalPriceLabel: Z,
|
|
2377
2377
|
discountedPriceLabel: ee,
|
|
2378
2378
|
discountPillLabel: B,
|
|
2379
2379
|
analytics: D,
|
|
2380
|
-
onProceedGuidance:
|
|
2380
|
+
onProceedGuidance: $,
|
|
2381
2381
|
onLocaleChange: Q,
|
|
2382
2382
|
imageComponent: E = Ye,
|
|
2383
|
-
resolvedUtmBannerImageUrl:
|
|
2384
|
-
children:
|
|
2383
|
+
resolvedUtmBannerImageUrl: _e,
|
|
2384
|
+
children: le
|
|
2385
2385
|
}) => {
|
|
2386
|
-
const ue = wa(), [
|
|
2386
|
+
const ue = wa(), [pe, ae] = I("landing"), [ge, Ae] = I(
|
|
2387
2387
|
t ?? ue?.locale ?? "en"
|
|
2388
|
-
),
|
|
2389
|
-
|
|
2388
|
+
), Re = t ?? ue?.locale;
|
|
2389
|
+
typeof window < "u" && Re && Ca(xt, Re);
|
|
2390
|
+
const [be, de] = I({
|
|
2391
|
+
...St,
|
|
2390
2392
|
..._
|
|
2391
|
-
}),
|
|
2393
|
+
}), W = U(!0);
|
|
2392
2394
|
q(() => {
|
|
2393
2395
|
if (t) return;
|
|
2394
|
-
const
|
|
2395
|
-
|
|
2396
|
+
const ve = Tt();
|
|
2397
|
+
ve && Ae(ve);
|
|
2396
2398
|
}, []), q(() => {
|
|
2397
|
-
Pt(
|
|
2398
|
-
}, [
|
|
2399
|
-
if (
|
|
2400
|
-
|
|
2399
|
+
Pt(ge);
|
|
2400
|
+
}, [ge]), q(() => {
|
|
2401
|
+
if (W.current) {
|
|
2402
|
+
W.current = !1;
|
|
2401
2403
|
return;
|
|
2402
2404
|
}
|
|
2403
|
-
Q?.(
|
|
2404
|
-
}, [
|
|
2405
|
-
const
|
|
2405
|
+
Q?.(ge);
|
|
2406
|
+
}, [ge, Q]);
|
|
2407
|
+
const re = Be(
|
|
2406
2408
|
() => ({
|
|
2407
2409
|
locale: t,
|
|
2408
2410
|
showLanguageSelector: n,
|
|
@@ -2423,21 +2425,21 @@ const ia = Ta(null), xt = {
|
|
|
2423
2425
|
backgroundImagePriority: v,
|
|
2424
2426
|
universityLogoUrls: y,
|
|
2425
2427
|
sampleReportHref: w,
|
|
2426
|
-
onViewSampleReport:
|
|
2428
|
+
onViewSampleReport: ie,
|
|
2427
2429
|
ctaHref: S,
|
|
2428
2430
|
onCtaClick: V,
|
|
2429
2431
|
onBack: j,
|
|
2430
|
-
readMoreReviewsHref:
|
|
2432
|
+
readMoreReviewsHref: O,
|
|
2431
2433
|
onProceed: N,
|
|
2432
|
-
proceedHref:
|
|
2434
|
+
proceedHref: G,
|
|
2433
2435
|
originalPriceLabel: Z,
|
|
2434
2436
|
discountedPriceLabel: ee,
|
|
2435
2437
|
discountPillLabel: B,
|
|
2436
2438
|
analytics: D,
|
|
2437
|
-
onProceedGuidance:
|
|
2439
|
+
onProceedGuidance: $,
|
|
2438
2440
|
onLocaleChange: Q,
|
|
2439
2441
|
imageComponent: E,
|
|
2440
|
-
resolvedUtmBannerImageUrl:
|
|
2442
|
+
resolvedUtmBannerImageUrl: _e
|
|
2441
2443
|
}),
|
|
2442
2444
|
[
|
|
2443
2445
|
t,
|
|
@@ -2459,47 +2461,47 @@ const ia = Ta(null), xt = {
|
|
|
2459
2461
|
v,
|
|
2460
2462
|
y,
|
|
2461
2463
|
w,
|
|
2462
|
-
|
|
2464
|
+
ie,
|
|
2463
2465
|
S,
|
|
2464
2466
|
V,
|
|
2465
2467
|
j,
|
|
2466
|
-
$,
|
|
2467
|
-
N,
|
|
2468
2468
|
O,
|
|
2469
|
+
N,
|
|
2470
|
+
G,
|
|
2469
2471
|
Z,
|
|
2470
2472
|
ee,
|
|
2471
2473
|
B,
|
|
2472
2474
|
D,
|
|
2473
|
-
|
|
2475
|
+
$,
|
|
2474
2476
|
Q,
|
|
2475
2477
|
E,
|
|
2476
|
-
|
|
2478
|
+
_e
|
|
2477
2479
|
]
|
|
2478
|
-
),
|
|
2480
|
+
), X = je(() => {
|
|
2479
2481
|
ae("form");
|
|
2480
|
-
}, [
|
|
2481
|
-
ae("landing"),
|
|
2482
|
-
}, [
|
|
2482
|
+
}, [re.analytics]), te = je(() => {
|
|
2483
|
+
ae("landing"), re.onBack?.();
|
|
2484
|
+
}, [re.onBack]), ne = Be(
|
|
2483
2485
|
() => ({
|
|
2484
|
-
view:
|
|
2485
|
-
locale:
|
|
2486
|
+
view: pe,
|
|
2487
|
+
locale: ge,
|
|
2486
2488
|
setLocale: Ae,
|
|
2487
|
-
config:
|
|
2488
|
-
formValues:
|
|
2489
|
-
setFormValues:
|
|
2490
|
-
goToForm:
|
|
2491
|
-
goToPage:
|
|
2492
|
-
onProceed:
|
|
2493
|
-
onProceedGuidance:
|
|
2489
|
+
config: re,
|
|
2490
|
+
formValues: be,
|
|
2491
|
+
setFormValues: de,
|
|
2492
|
+
goToForm: X,
|
|
2493
|
+
goToPage: te,
|
|
2494
|
+
onProceed: re.onProceed,
|
|
2495
|
+
onProceedGuidance: re.onProceedGuidance
|
|
2494
2496
|
}),
|
|
2495
|
-
[
|
|
2497
|
+
[pe, ge, re, be, X, te]
|
|
2496
2498
|
);
|
|
2497
|
-
return /* @__PURE__ */ e.jsx(ia.Provider, { value:
|
|
2499
|
+
return /* @__PURE__ */ e.jsx(ia.Provider, { value: ne, children: le });
|
|
2498
2500
|
};
|
|
2499
2501
|
function Ie() {
|
|
2500
2502
|
return oa(ia);
|
|
2501
2503
|
}
|
|
2502
|
-
function
|
|
2504
|
+
function Pi() {
|
|
2503
2505
|
const t = oa(ia);
|
|
2504
2506
|
if (!t)
|
|
2505
2507
|
throw new Error(
|
|
@@ -2507,16 +2509,16 @@ function Ti() {
|
|
|
2507
2509
|
);
|
|
2508
2510
|
return t;
|
|
2509
2511
|
}
|
|
2510
|
-
const
|
|
2511
|
-
header:
|
|
2512
|
-
centered:
|
|
2513
|
-
},
|
|
2512
|
+
const wt = "_header_19172_1", Ct = "_centered_19172_8", ya = {
|
|
2513
|
+
header: wt,
|
|
2514
|
+
centered: Ct
|
|
2515
|
+
}, jt = ({
|
|
2514
2516
|
t,
|
|
2515
2517
|
onBack: n,
|
|
2516
2518
|
className: s = "",
|
|
2517
2519
|
align: p = "left"
|
|
2518
2520
|
}) => /* @__PURE__ */ e.jsx(
|
|
2519
|
-
|
|
2521
|
+
Qa,
|
|
2520
2522
|
{
|
|
2521
2523
|
title: t("formTitle"),
|
|
2522
2524
|
subtitle: t("formSubtitle"),
|
|
@@ -2524,62 +2526,62 @@ const St = "_header_19172_1", wt = "_centered_19172_8", ya = {
|
|
|
2524
2526
|
backAriaLabel: t("back"),
|
|
2525
2527
|
className: `${ya.header} ${p === "center" ? ya.centered : ""} ${s}`
|
|
2526
2528
|
}
|
|
2527
|
-
),
|
|
2528
|
-
wrap:
|
|
2529
|
-
card:
|
|
2530
|
-
cardInner:
|
|
2531
|
-
field:
|
|
2532
|
-
labelRow:
|
|
2533
|
-
label:
|
|
2534
|
-
req:
|
|
2535
|
-
help:
|
|
2536
|
-
choiceRow:
|
|
2537
|
-
choiceBtn:
|
|
2538
|
-
choiceBtnActive:
|
|
2539
|
-
infoBtn:
|
|
2540
|
-
infoImg:
|
|
2541
|
-
infoWrap:
|
|
2542
|
-
tooltip:
|
|
2543
|
-
tooltipArrow:
|
|
2544
|
-
inputWrap:
|
|
2545
|
-
isdWrap:
|
|
2546
|
-
phoneInputGroup:
|
|
2547
|
-
isdSelectWrap:
|
|
2548
|
-
isdSelectTrigger:
|
|
2549
|
-
isdDropdown:
|
|
2550
|
-
isdSearchWrap:
|
|
2551
|
-
isdSearchInput:
|
|
2552
|
-
isdOption:
|
|
2553
|
-
isdOptionActive:
|
|
2554
|
-
isdCountryName:
|
|
2555
|
-
isdCountryCode:
|
|
2556
|
-
isdNoResult:
|
|
2557
|
-
suggestions:
|
|
2558
|
-
suggestionItem:
|
|
2559
|
-
suggestionMain:
|
|
2560
|
-
suggestionSecondary:
|
|
2561
|
-
suggestionsHint:
|
|
2562
|
-
timePopover:
|
|
2563
|
-
timePickerRow:
|
|
2564
|
-
timePickerSelect:
|
|
2565
|
-
timePickerColon:
|
|
2566
|
-
meridiemToggle:
|
|
2567
|
-
meridiemBtn:
|
|
2568
|
-
meridiemActive:
|
|
2569
|
-
timePopoverActions:
|
|
2570
|
-
timePopoverBtn:
|
|
2571
|
-
timePopoverOk:
|
|
2572
|
-
input:
|
|
2573
|
-
phoneInput:
|
|
2574
|
-
iconBtn:
|
|
2575
|
-
iconBtnInteractive:
|
|
2576
|
-
iconImg:
|
|
2577
|
-
checkboxRow:
|
|
2578
|
-
checkbox:
|
|
2579
|
-
checkboxText:
|
|
2529
|
+
), Rt = "_wrap_119w3_1", Nt = "_card_119w3_5", Lt = "_cardInner_119w3_12", Bt = "_field_119w3_44", Dt = "_labelRow_119w3_48", Et = "_label_119w3_48", It = "_req_119w3_57", Ft = "_help_119w3_61", Mt = "_choiceRow_119w3_68", Ut = "_choiceBtn_119w3_74", Gt = "_choiceBtnActive_119w3_99", Ot = "_infoBtn_119w3_105", $t = "_infoImg_119w3_122", Ht = "_infoWrap_119w3_128", Wt = "_tooltip_119w3_134", Kt = "_tooltipArrow_119w3_150", qt = "_inputWrap_119w3_161", Yt = "_isdWrap_119w3_165", Vt = "_phoneInputGroup_119w3_169", Jt = "_isdSelectWrap_119w3_178", zt = "_isdSelectTrigger_119w3_197", Qt = "_isdDropdown_119w3_214", Xt = "_isdSearchWrap_119w3_229", Zt = "_isdSearchInput_119w3_237", er = "_isdOption_119w3_255", ar = "_isdOptionActive_119w3_275", tr = "_isdCountryName_119w3_281", rr = "_isdCountryCode_119w3_288", nr = "_isdNoResult_119w3_295", or = "_suggestions_119w3_302", ir = "_suggestionItem_119w3_315", lr = "_suggestionMain_119w3_333", sr = "_suggestionSecondary_119w3_339", cr = "_suggestionsHint_119w3_344", dr = "_timePopover_119w3_366", ur = "_timePickerRow_119w3_382", pr = "_timePickerSelect_119w3_388", mr = "_timePickerColon_119w3_404", fr = "_meridiemToggle_119w3_412", hr = "_meridiemBtn_119w3_421", gr = "_meridiemActive_119w3_436", br = "_timePopoverActions_119w3_441", _r = "_timePopoverBtn_119w3_447", kr = "_timePopoverOk_119w3_466", yr = "_input_119w3_161", Ar = "_phoneInput_119w3_169", vr = "_iconBtn_119w3_519", Tr = "_iconBtnInteractive_119w3_525", Pr = "_iconImg_119w3_544", xr = "_checkboxRow_119w3_550", Sr = "_checkbox_119w3_550", wr = "_checkboxText_119w3_588", o = {
|
|
2530
|
+
wrap: Rt,
|
|
2531
|
+
card: Nt,
|
|
2532
|
+
cardInner: Lt,
|
|
2533
|
+
field: Bt,
|
|
2534
|
+
labelRow: Dt,
|
|
2535
|
+
label: Et,
|
|
2536
|
+
req: It,
|
|
2537
|
+
help: Ft,
|
|
2538
|
+
choiceRow: Mt,
|
|
2539
|
+
choiceBtn: Ut,
|
|
2540
|
+
choiceBtnActive: Gt,
|
|
2541
|
+
infoBtn: Ot,
|
|
2542
|
+
infoImg: $t,
|
|
2543
|
+
infoWrap: Ht,
|
|
2544
|
+
tooltip: Wt,
|
|
2545
|
+
tooltipArrow: Kt,
|
|
2546
|
+
inputWrap: qt,
|
|
2547
|
+
isdWrap: Yt,
|
|
2548
|
+
phoneInputGroup: Vt,
|
|
2549
|
+
isdSelectWrap: Jt,
|
|
2550
|
+
isdSelectTrigger: zt,
|
|
2551
|
+
isdDropdown: Qt,
|
|
2552
|
+
isdSearchWrap: Xt,
|
|
2553
|
+
isdSearchInput: Zt,
|
|
2554
|
+
isdOption: er,
|
|
2555
|
+
isdOptionActive: ar,
|
|
2556
|
+
isdCountryName: tr,
|
|
2557
|
+
isdCountryCode: rr,
|
|
2558
|
+
isdNoResult: nr,
|
|
2559
|
+
suggestions: or,
|
|
2560
|
+
suggestionItem: ir,
|
|
2561
|
+
suggestionMain: lr,
|
|
2562
|
+
suggestionSecondary: sr,
|
|
2563
|
+
suggestionsHint: cr,
|
|
2564
|
+
timePopover: dr,
|
|
2565
|
+
timePickerRow: ur,
|
|
2566
|
+
timePickerSelect: pr,
|
|
2567
|
+
timePickerColon: mr,
|
|
2568
|
+
meridiemToggle: fr,
|
|
2569
|
+
meridiemBtn: hr,
|
|
2570
|
+
meridiemActive: gr,
|
|
2571
|
+
timePopoverActions: br,
|
|
2572
|
+
timePopoverBtn: _r,
|
|
2573
|
+
timePopoverOk: kr,
|
|
2574
|
+
input: yr,
|
|
2575
|
+
phoneInput: Ar,
|
|
2576
|
+
iconBtn: vr,
|
|
2577
|
+
iconBtnInteractive: Tr,
|
|
2578
|
+
iconImg: Pr,
|
|
2579
|
+
checkboxRow: xr,
|
|
2580
|
+
checkbox: Sr,
|
|
2581
|
+
checkboxText: wr
|
|
2580
2582
|
};
|
|
2581
2583
|
let Je = null;
|
|
2582
|
-
const
|
|
2584
|
+
const Cr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promise.resolve() : Je || (Je = new Promise((s, p) => {
|
|
2583
2585
|
const d = document.querySelector(
|
|
2584
2586
|
'script[data-google-maps-places="true"]'
|
|
2585
2587
|
);
|
|
@@ -2609,8 +2611,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2609
2611
|
};
|
|
2610
2612
|
k();
|
|
2611
2613
|
}, h.onerror = () => p(new Error("Failed to load Google Maps API")), document.head.appendChild(h);
|
|
2612
|
-
}), Je),
|
|
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 =
|
|
2614
|
+
}), Je), jr = (t) => {
|
|
2615
|
+
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 = je(() => {
|
|
2614
2616
|
d && A(!0);
|
|
2615
2617
|
}, [d]);
|
|
2616
2618
|
q(() => {
|
|
@@ -2618,7 +2620,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2618
2620
|
_(!1), m(null);
|
|
2619
2621
|
return;
|
|
2620
2622
|
}
|
|
2621
|
-
|
|
2623
|
+
Cr(n, s).then(() => {
|
|
2622
2624
|
z.current = new google.maps.places.AutocompleteService();
|
|
2623
2625
|
const j = document.createElement("div");
|
|
2624
2626
|
v.current = new google.maps.places.PlacesService(j), y.current = new google.maps.places.AutocompleteSessionToken(), _(!0), m(null);
|
|
@@ -2626,7 +2628,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2626
2628
|
_(!1), m(j?.message || "Failed to load location service");
|
|
2627
2629
|
});
|
|
2628
2630
|
}, [n, s, C]);
|
|
2629
|
-
const
|
|
2631
|
+
const ie = je(
|
|
2630
2632
|
async (j) => {
|
|
2631
2633
|
if (!j || j.length < 2 || !z.current) {
|
|
2632
2634
|
k([]);
|
|
@@ -2634,27 +2636,27 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2634
2636
|
}
|
|
2635
2637
|
M(!0);
|
|
2636
2638
|
try {
|
|
2637
|
-
const
|
|
2639
|
+
const O = {
|
|
2638
2640
|
input: j,
|
|
2639
2641
|
types: ["(cities)"],
|
|
2640
2642
|
sessionToken: y.current ?? void 0
|
|
2641
2643
|
};
|
|
2642
|
-
p && (
|
|
2643
|
-
const N = await new Promise((
|
|
2644
|
+
p && (O.componentRestrictions = { country: p });
|
|
2645
|
+
const N = await new Promise((G, Z) => {
|
|
2644
2646
|
z.current.getPlacePredictions(
|
|
2645
|
-
|
|
2647
|
+
O,
|
|
2646
2648
|
(ee, B) => {
|
|
2647
|
-
B === google.maps.places.PlacesServiceStatus.OK && ee ?
|
|
2649
|
+
B === google.maps.places.PlacesServiceStatus.OK && ee ? G(ee) : B === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? G([]) : Z(new Error(`Places API error: ${B}`));
|
|
2648
2650
|
}
|
|
2649
2651
|
);
|
|
2650
2652
|
});
|
|
2651
2653
|
k(
|
|
2652
|
-
N.map((
|
|
2653
|
-
place_id:
|
|
2654
|
-
description:
|
|
2654
|
+
N.map((G) => ({
|
|
2655
|
+
place_id: G.place_id,
|
|
2656
|
+
description: G.description,
|
|
2655
2657
|
structured_formatting: {
|
|
2656
|
-
main_text:
|
|
2657
|
-
secondary_text:
|
|
2658
|
+
main_text: G.structured_formatting?.main_text || G.description,
|
|
2659
|
+
secondary_text: G.structured_formatting?.secondary_text || ""
|
|
2658
2660
|
}
|
|
2659
2661
|
}))
|
|
2660
2662
|
);
|
|
@@ -2665,12 +2667,12 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2665
2667
|
}
|
|
2666
2668
|
},
|
|
2667
2669
|
[p]
|
|
2668
|
-
), S =
|
|
2670
|
+
), S = je(
|
|
2669
2671
|
async (j) => {
|
|
2670
2672
|
if (!v.current) return null;
|
|
2671
2673
|
try {
|
|
2672
|
-
const
|
|
2673
|
-
(D,
|
|
2674
|
+
const O = await new Promise(
|
|
2675
|
+
(D, $) => {
|
|
2674
2676
|
v.current.getDetails(
|
|
2675
2677
|
{
|
|
2676
2678
|
placeId: j,
|
|
@@ -2678,20 +2680,20 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2678
2680
|
sessionToken: y.current ?? void 0
|
|
2679
2681
|
},
|
|
2680
2682
|
(Q, E) => {
|
|
2681
|
-
E === google.maps.places.PlacesServiceStatus.OK && Q ? D(Q) :
|
|
2683
|
+
E === google.maps.places.PlacesServiceStatus.OK && Q ? D(Q) : $(new Error(`Place details error: ${E}`));
|
|
2682
2684
|
}
|
|
2683
2685
|
);
|
|
2684
2686
|
}
|
|
2685
2687
|
);
|
|
2686
2688
|
y.current = new google.maps.places.AutocompleteSessionToken();
|
|
2687
|
-
const N =
|
|
2689
|
+
const N = O.geometry?.location?.lat() || 0, G = O.geometry?.location?.lng() || 0;
|
|
2688
2690
|
let Z = "", ee = "", B = "";
|
|
2689
|
-
return
|
|
2691
|
+
return O.address_components?.forEach((D) => {
|
|
2690
2692
|
D.types.includes("locality") && (Z = D.long_name), D.types.includes("administrative_area_level_1") && (ee = D.long_name), D.types.includes("country") && (B = D.long_name);
|
|
2691
2693
|
}), {
|
|
2692
|
-
display_name:
|
|
2694
|
+
display_name: O.formatted_address || "",
|
|
2693
2695
|
lat: N,
|
|
2694
|
-
lng:
|
|
2696
|
+
lng: G,
|
|
2695
2697
|
city: Z,
|
|
2696
2698
|
state: ee,
|
|
2697
2699
|
country: B
|
|
@@ -2701,31 +2703,31 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2701
2703
|
}
|
|
2702
2704
|
},
|
|
2703
2705
|
[]
|
|
2704
|
-
), V =
|
|
2706
|
+
), V = je(() => k([]), []);
|
|
2705
2707
|
return {
|
|
2706
2708
|
isLoaded: h,
|
|
2707
2709
|
predictions: P,
|
|
2708
2710
|
isSearching: Y,
|
|
2709
2711
|
loadError: R,
|
|
2710
|
-
searchPlaces:
|
|
2712
|
+
searchPlaces: ie,
|
|
2711
2713
|
getPlaceDetails: S,
|
|
2712
2714
|
clearPredictions: V,
|
|
2713
2715
|
triggerLoad: w
|
|
2714
2716
|
// Call this to start loading Google Maps when deferred
|
|
2715
2717
|
};
|
|
2716
|
-
}, Aa = (t) => typeof t == "number" && Number.isFinite(t),
|
|
2718
|
+
}, Aa = (t) => typeof t == "number" && Number.isFinite(t), Rr = (t) => {
|
|
2717
2719
|
const n = typeof t?.limit == "number" && t.limit > 0 ? Math.min(t.limit, 20) : 8, s = typeof t?.offset == "number" && t.offset >= 0 ? t.offset : 0;
|
|
2718
2720
|
return {
|
|
2719
2721
|
limit: n,
|
|
2720
2722
|
offset: s,
|
|
2721
2723
|
restrictCountry: t?.restrictCountry
|
|
2722
2724
|
};
|
|
2723
|
-
},
|
|
2724
|
-
const { searchLocalities: n, restrictCountry: s } = t, [p, d] = I([]), [h, _] = I(!1), [P, k] = I(null), Y =
|
|
2725
|
+
}, Nr = (t) => {
|
|
2726
|
+
const { searchLocalities: n, restrictCountry: s } = t, [p, d] = I([]), [h, _] = I(!1), [P, k] = I(null), Y = U(0);
|
|
2725
2727
|
q(() => {
|
|
2726
2728
|
k(null);
|
|
2727
2729
|
}, [n]);
|
|
2728
|
-
const M =
|
|
2730
|
+
const M = je(
|
|
2729
2731
|
async (m) => {
|
|
2730
2732
|
if (!m || m.length < 2 || !n) {
|
|
2731
2733
|
d([]);
|
|
@@ -2734,7 +2736,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2734
2736
|
const C = ++Y.current;
|
|
2735
2737
|
_(!0), k(null);
|
|
2736
2738
|
try {
|
|
2737
|
-
const A =
|
|
2739
|
+
const A = Rr({ restrictCountry: s }), z = await n(m, A);
|
|
2738
2740
|
if (C !== Y.current) return;
|
|
2739
2741
|
const v = (z || []).filter(
|
|
2740
2742
|
(y) => !!y?.id && !!y?.description && Aa(y?.lat) && Aa(y?.lng)
|
|
@@ -2754,7 +2756,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2754
2756
|
}
|
|
2755
2757
|
},
|
|
2756
2758
|
[s, n]
|
|
2757
|
-
), R =
|
|
2759
|
+
), R = je(() => d([]), []);
|
|
2758
2760
|
return {
|
|
2759
2761
|
predictions: p,
|
|
2760
2762
|
isSearching: h,
|
|
@@ -2767,7 +2769,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2767
2769
|
location: "https://srm-cdn.a4b.io/yoda/1770372031092.svg",
|
|
2768
2770
|
date: "https://srm-cdn.a4b.io/yoda/1770372045894.svg",
|
|
2769
2771
|
info: "https://srm-cdn.a4b.io/yoda/1770372066357.svg"
|
|
2770
|
-
},
|
|
2772
|
+
}, Ra = [
|
|
2771
2773
|
{ code: "+1", country: "USA / Canada" },
|
|
2772
2774
|
{ code: "+7", country: "Russia / Kazakhstan" },
|
|
2773
2775
|
{ code: "+20", country: "Egypt" },
|
|
@@ -2837,7 +2839,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2837
2839
|
{ code: "+975", country: "Bhutan" },
|
|
2838
2840
|
{ code: "+976", country: "Mongolia" },
|
|
2839
2841
|
{ code: "+977", country: "Nepal" }
|
|
2840
|
-
], ra =
|
|
2842
|
+
], ra = Ra.map((t) => t.code), Na = 10, la = (t) => t.replace(/\D/g, ""), va = (t) => la(t).slice(0, Na), Lr = (t) => la(t).length === Na, Br = (t, n, s) => Lr(t) ? s.phone ? { shouldTrack: !1 } : (s.phone = !0, { shouldTrack: !0, fullPhone: `${n}-${la(t)}` }) : (s.phone = !1, { shouldTrack: !1 }), Dr = {}, Er = ({
|
|
2841
2843
|
t,
|
|
2842
2844
|
values: n,
|
|
2843
2845
|
onChange: s,
|
|
@@ -2850,13 +2852,13 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2850
2852
|
googleMapsAutocompleteEnabled: Y,
|
|
2851
2853
|
className: M = ""
|
|
2852
2854
|
}) => {
|
|
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), [
|
|
2855
|
+
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), [ie, S] = I(""), V = U(null), j = U(null), O = U({}), N = (r) => s({ ...n, ...r }), G = (r, c) => {
|
|
2854
2856
|
if (r === "phone") {
|
|
2855
|
-
const K =
|
|
2857
|
+
const K = Br(c, p, O.current);
|
|
2856
2858
|
K.shouldTrack && m?.trackPhoneSectionFilled?.({ phone: K.fullPhone });
|
|
2857
2859
|
return;
|
|
2858
2860
|
}
|
|
2859
|
-
c.trim() &&
|
|
2861
|
+
c.trim() && !O.current[r] && (O.current[r] = !0, {
|
|
2860
2862
|
fullName: () => m?.trackNameSectionFilled?.(),
|
|
2861
2863
|
dateOfBirth: () => m?.trackDobFilled?.(),
|
|
2862
2864
|
birthTime: () => m?.trackTimeFilled?.(),
|
|
@@ -2865,54 +2867,54 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2865
2867
|
}, Z = (r) => {
|
|
2866
2868
|
const c = r.target.value;
|
|
2867
2869
|
c.trim() && m?.trackEmailSectionFilled?.({ email: c });
|
|
2868
|
-
}, ee =
|
|
2869
|
-
|
|
2870
|
-
const
|
|
2870
|
+
}, ee = ie.trim().toLowerCase(), B = Ra.filter((r) => ee ? r.country.toLowerCase().includes(ee) || r.code.includes(ee) : !0), D = U(null);
|
|
2871
|
+
U(null);
|
|
2872
|
+
const $ = U(null), Q = U(0), E = U(null), [_e, le] = I(!1), [ue, pe] = I({ hour12: 12, minute: "00", meridiem: "AM" }), ae = (r) => String(r).padStart(2, "0"), ge = (r) => {
|
|
2871
2873
|
const c = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
|
|
2872
2874
|
if (!c) return r;
|
|
2873
|
-
const K = Number(c[1]),
|
|
2874
|
-
return `${K % 12 === 0 ? 12 : K % 12}:${
|
|
2875
|
+
const K = Number(c[1]), we = c[2], $e = K >= 12 ? "PM" : "AM";
|
|
2876
|
+
return `${K % 12 === 0 ? 12 : K % 12}:${we} ${$e}`;
|
|
2875
2877
|
}, Ae = (r) => {
|
|
2876
2878
|
const c = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
|
|
2877
2879
|
if (!c) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
2878
|
-
const K = Number(c[1]),
|
|
2879
|
-
return { hour12: K % 12 === 0 ? 12 : K % 12, minute:
|
|
2880
|
-
},
|
|
2880
|
+
const K = Number(c[1]), we = c[2], $e = K >= 12 ? "PM" : "AM";
|
|
2881
|
+
return { hour12: K % 12 === 0 ? 12 : K % 12, minute: we, meridiem: $e };
|
|
2882
|
+
}, Re = (r) => {
|
|
2881
2883
|
const c = Math.min(12, Math.max(1, r.hour12)), K = /^([0-5]\d)$/.test(r.minute) ? r.minute : "00";
|
|
2882
|
-
let
|
|
2883
|
-
return r.meridiem === "PM" && (
|
|
2884
|
-
},
|
|
2884
|
+
let we = c % 12;
|
|
2885
|
+
return r.meridiem === "PM" && (we += 12), `${ae(we)}:${K}`;
|
|
2886
|
+
}, be = U(null), [de, W] = I(!1), re = U(n.birthPlace ?? ""), [X, te] = I(
|
|
2885
2887
|
null
|
|
2886
|
-
),
|
|
2887
|
-
apiKey:
|
|
2888
|
+
), ne = P ?? A ?? Dr?.VITE_GOOGLE_MAPS_API_KEY, ve = k ?? z, me = Y ?? v ?? !0, fe = (n.birthPlace ?? "").trim(), Ne = C ? void 0 : "in", ke = jr({
|
|
2889
|
+
apiKey: me ? ne : void 0,
|
|
2888
2890
|
language: "en",
|
|
2889
2891
|
restrictCountry: Ne
|
|
2890
|
-
}),
|
|
2891
|
-
searchLocalities:
|
|
2892
|
+
}), xe = Nr({
|
|
2893
|
+
searchLocalities: me ? void 0 : ve,
|
|
2892
2894
|
restrictCountry: Ne
|
|
2893
|
-
}),
|
|
2895
|
+
}), Se = me ? ke.predictions.map((r) => ({
|
|
2894
2896
|
id: r.place_id,
|
|
2895
2897
|
description: r.description,
|
|
2896
2898
|
secondaryText: r.structured_formatting?.secondary_text,
|
|
2897
2899
|
lat: void 0,
|
|
2898
2900
|
lng: void 0
|
|
2899
|
-
})) :
|
|
2901
|
+
})) : xe.predictions.map((r) => ({
|
|
2900
2902
|
id: r.id,
|
|
2901
2903
|
description: r.description,
|
|
2902
2904
|
secondaryText: r.secondary_text,
|
|
2903
2905
|
lat: r.lat,
|
|
2904
2906
|
lng: r.lng
|
|
2905
|
-
})), i =
|
|
2907
|
+
})), i = me ? ke.isSearching : xe.isSearching, b = me ? ke.loadError : xe.loadError, f = me ? !!ne : !!ve, he = me ? ke.searchPlaces : xe.searchPlaces, se = me ? ke.clearPredictions : xe.clearPredictions, Ge = U(() => {
|
|
2906
2908
|
});
|
|
2907
2909
|
Ge.current = () => {
|
|
2908
|
-
(n.birthPlace ?? "") !==
|
|
2910
|
+
(n.birthPlace ?? "") !== re.current && N({
|
|
2909
2911
|
birthPlace: "",
|
|
2910
2912
|
birthPlaceLat: void 0,
|
|
2911
2913
|
birthPlaceLng: void 0
|
|
2912
|
-
}),
|
|
2914
|
+
}), W(!1);
|
|
2913
2915
|
}, q(() => {
|
|
2914
2916
|
const r = (c) => {
|
|
2915
|
-
|
|
2917
|
+
be.current && (be.current.contains(c.target) || Ge.current());
|
|
2916
2918
|
};
|
|
2917
2919
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
2918
2920
|
}, []), q(() => {
|
|
@@ -2927,40 +2929,40 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2927
2929
|
}, 0);
|
|
2928
2930
|
return () => window.clearTimeout(r);
|
|
2929
2931
|
}, [y]), q(() => {
|
|
2930
|
-
if (!
|
|
2931
|
-
if (
|
|
2932
|
+
if (!de) return;
|
|
2933
|
+
if (fe.length < 2) {
|
|
2932
2934
|
se();
|
|
2933
2935
|
return;
|
|
2934
2936
|
}
|
|
2935
2937
|
const r = window.setTimeout(async () => {
|
|
2936
|
-
await fe
|
|
2938
|
+
await he(fe);
|
|
2937
2939
|
}, 250);
|
|
2938
2940
|
return () => window.clearTimeout(r);
|
|
2939
|
-
}, [se,
|
|
2941
|
+
}, [se, de, fe, he]);
|
|
2940
2942
|
const Oe = (r) => {
|
|
2941
2943
|
const c = r.current;
|
|
2942
2944
|
if (!(!c || c.disabled)) {
|
|
2943
|
-
if (document.activeElement === c &&
|
|
2945
|
+
if (document.activeElement === c && $.current === c && Date.now() - Q.current < 6e4) {
|
|
2944
2946
|
c.blur();
|
|
2945
2947
|
return;
|
|
2946
2948
|
}
|
|
2947
2949
|
if (typeof c.showPicker == "function") {
|
|
2948
|
-
c.showPicker(),
|
|
2950
|
+
c.showPicker(), $.current = c, Q.current = Date.now();
|
|
2949
2951
|
return;
|
|
2950
2952
|
}
|
|
2951
|
-
c.focus(),
|
|
2953
|
+
c.focus(), $.current = c, Q.current = Date.now();
|
|
2952
2954
|
}
|
|
2953
2955
|
};
|
|
2954
2956
|
return q(() => {
|
|
2955
2957
|
const r = (c) => {
|
|
2956
|
-
E.current && (E.current.contains(c.target) ||
|
|
2958
|
+
E.current && (E.current.contains(c.target) || le(!1));
|
|
2957
2959
|
};
|
|
2958
2960
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
2959
2961
|
}, []), q(() => {
|
|
2960
2962
|
const r = (K) => {
|
|
2961
|
-
K.target?.closest?.("[data-info-tooltip]") == null &&
|
|
2963
|
+
K.target?.closest?.("[data-info-tooltip]") == null && te(null);
|
|
2962
2964
|
}, c = (K) => {
|
|
2963
|
-
K.key === "Escape" &&
|
|
2965
|
+
K.key === "Escape" && te(null);
|
|
2964
2966
|
};
|
|
2965
2967
|
return document.addEventListener("mousedown", r), document.addEventListener("keydown", c), () => {
|
|
2966
2968
|
document.removeEventListener("mousedown", r), document.removeEventListener("keydown", c);
|
|
@@ -2986,7 +2988,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2986
2988
|
onFocus: () => m?.trackNameSectionClicked?.(),
|
|
2987
2989
|
onChange: (r) => {
|
|
2988
2990
|
const c = r.target.value;
|
|
2989
|
-
N({ fullName: c }),
|
|
2991
|
+
N({ fullName: c }), G("fullName", c);
|
|
2990
2992
|
},
|
|
2991
2993
|
placeholder: t("formFullNamePlaceholder"),
|
|
2992
2994
|
autoComplete: "name"
|
|
@@ -3023,7 +3025,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3023
3025
|
onFocus: () => m?.trackPhoneSectionClicked?.(),
|
|
3024
3026
|
onChange: (r) => {
|
|
3025
3027
|
const c = r.target.value;
|
|
3026
|
-
N({ phone: va(c) }),
|
|
3028
|
+
N({ phone: va(c) }), G("phone", va(c));
|
|
3027
3029
|
},
|
|
3028
3030
|
placeholder: t("formPhonePlaceholder"),
|
|
3029
3031
|
autoComplete: "tel",
|
|
@@ -3047,7 +3049,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3047
3049
|
{
|
|
3048
3050
|
ref: j,
|
|
3049
3051
|
type: "text",
|
|
3050
|
-
value:
|
|
3052
|
+
value: ie,
|
|
3051
3053
|
onChange: (r) => S(r.target.value),
|
|
3052
3054
|
placeholder: "Search country",
|
|
3053
3055
|
className: o.isdSearchInput,
|
|
@@ -3164,7 +3166,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3164
3166
|
"aria-label": t("info"),
|
|
3165
3167
|
"aria-expanded": X === "dob",
|
|
3166
3168
|
onClick: () => {
|
|
3167
|
-
|
|
3169
|
+
te((r) => r === "dob" ? null : "dob"), m?.trackInfoIconClicked?.({ fieldName: "dob" });
|
|
3168
3170
|
},
|
|
3169
3171
|
children: /* @__PURE__ */ e.jsx(
|
|
3170
3172
|
"img",
|
|
@@ -3197,13 +3199,13 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3197
3199
|
return `${r.getFullYear()}-${ae(r.getMonth() + 1)}-${ae(r.getDate())}`;
|
|
3198
3200
|
})(),
|
|
3199
3201
|
onChange: (r) => {
|
|
3200
|
-
const c = r.target.value, K = /* @__PURE__ */ new Date(),
|
|
3201
|
-
c && c >
|
|
3202
|
+
const c = r.target.value, K = /* @__PURE__ */ new Date(), we = `${K.getFullYear()}-${ae(K.getMonth() + 1)}-${ae(K.getDate())}`;
|
|
3203
|
+
c && c > we || (N({ dateOfBirth: c }), G("dateOfBirth", c), $.current = null);
|
|
3202
3204
|
},
|
|
3203
3205
|
onFocus: () => m?.trackDobClicked?.(),
|
|
3204
3206
|
onClick: () => Oe(D),
|
|
3205
3207
|
onBlur: () => {
|
|
3206
|
-
|
|
3208
|
+
$.current === D.current && ($.current = null);
|
|
3207
3209
|
}
|
|
3208
3210
|
}
|
|
3209
3211
|
),
|
|
@@ -3245,7 +3247,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3245
3247
|
"aria-label": t("info"),
|
|
3246
3248
|
"aria-expanded": X === "time",
|
|
3247
3249
|
onClick: () => {
|
|
3248
|
-
m?.trackInfoIconClicked?.({ fieldName: "time" }),
|
|
3250
|
+
m?.trackInfoIconClicked?.({ fieldName: "time" }), te((r) => r === "time" ? null : "time");
|
|
3249
3251
|
},
|
|
3250
3252
|
children: /* @__PURE__ */ e.jsx(
|
|
3251
3253
|
"img",
|
|
@@ -3271,17 +3273,17 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3271
3273
|
id: "kundli-birth-time",
|
|
3272
3274
|
className: o.input,
|
|
3273
3275
|
type: "text",
|
|
3274
|
-
value: n.birthTime ?
|
|
3276
|
+
value: n.birthTime ? ge(n.birthTime) : "",
|
|
3275
3277
|
readOnly: !0,
|
|
3276
3278
|
onFocus: () => m?.trackTimeClicked?.(),
|
|
3277
3279
|
onChange: (r) => {
|
|
3278
3280
|
const c = r.target.value;
|
|
3279
|
-
N({ birthTime: c }),
|
|
3281
|
+
N({ birthTime: c }), G("birthTime", c);
|
|
3280
3282
|
},
|
|
3281
3283
|
disabled: n.birthTimeUnknown,
|
|
3282
3284
|
placeholder: "HH:MM AM",
|
|
3283
3285
|
onClick: () => {
|
|
3284
|
-
n.birthTimeUnknown || (
|
|
3286
|
+
n.birthTimeUnknown || (pe(Ae(n.birthTime || "12:00")), le((r) => !r));
|
|
3285
3287
|
}
|
|
3286
3288
|
}
|
|
3287
3289
|
),
|
|
@@ -3294,7 +3296,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3294
3296
|
disabled: n.birthTimeUnknown,
|
|
3295
3297
|
onMouseDown: (r) => r.preventDefault(),
|
|
3296
3298
|
onClick: (r) => {
|
|
3297
|
-
r.preventDefault(), r.stopPropagation(), !n.birthTimeUnknown && (
|
|
3299
|
+
r.preventDefault(), r.stopPropagation(), !n.birthTimeUnknown && (pe(Ae(n.birthTime || "12:00")), le((c) => !c));
|
|
3298
3300
|
},
|
|
3299
3301
|
children: /* @__PURE__ */ e.jsx(
|
|
3300
3302
|
"img",
|
|
@@ -3307,7 +3309,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3307
3309
|
)
|
|
3308
3310
|
}
|
|
3309
3311
|
),
|
|
3310
|
-
|
|
3312
|
+
_e && !n.birthTimeUnknown && /* @__PURE__ */ e.jsxs(
|
|
3311
3313
|
"div",
|
|
3312
3314
|
{
|
|
3313
3315
|
className: o.timePopover,
|
|
@@ -3320,7 +3322,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3320
3322
|
{
|
|
3321
3323
|
className: o.timePickerSelect,
|
|
3322
3324
|
value: ue.hour12,
|
|
3323
|
-
onChange: (r) =>
|
|
3325
|
+
onChange: (r) => pe((c) => ({
|
|
3324
3326
|
...c,
|
|
3325
3327
|
hour12: Number(r.target.value)
|
|
3326
3328
|
})),
|
|
@@ -3334,7 +3336,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3334
3336
|
{
|
|
3335
3337
|
className: o.timePickerSelect,
|
|
3336
3338
|
value: ue.minute,
|
|
3337
|
-
onChange: (r) =>
|
|
3339
|
+
onChange: (r) => pe((c) => ({ ...c, minute: r.target.value })),
|
|
3338
3340
|
"aria-label": "Minute",
|
|
3339
3341
|
children: Array.from({ length: 60 }, (r, c) => ae(c)).map(
|
|
3340
3342
|
(r) => /* @__PURE__ */ e.jsx("option", { value: r, children: r }, r)
|
|
@@ -3347,7 +3349,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3347
3349
|
{
|
|
3348
3350
|
type: "button",
|
|
3349
3351
|
className: `${o.meridiemBtn} ${ue.meridiem === "AM" ? o.meridiemActive : ""}`,
|
|
3350
|
-
onClick: () =>
|
|
3352
|
+
onClick: () => pe((r) => ({ ...r, meridiem: "AM" })),
|
|
3351
3353
|
children: "AM"
|
|
3352
3354
|
}
|
|
3353
3355
|
),
|
|
@@ -3356,7 +3358,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3356
3358
|
{
|
|
3357
3359
|
type: "button",
|
|
3358
3360
|
className: `${o.meridiemBtn} ${ue.meridiem === "PM" ? o.meridiemActive : ""}`,
|
|
3359
|
-
onClick: () =>
|
|
3361
|
+
onClick: () => pe((r) => ({ ...r, meridiem: "PM" })),
|
|
3360
3362
|
children: "PM"
|
|
3361
3363
|
}
|
|
3362
3364
|
)
|
|
@@ -3368,7 +3370,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3368
3370
|
{
|
|
3369
3371
|
type: "button",
|
|
3370
3372
|
className: o.timePopoverBtn,
|
|
3371
|
-
onClick: () =>
|
|
3373
|
+
onClick: () => le(!1),
|
|
3372
3374
|
children: "Cancel"
|
|
3373
3375
|
}
|
|
3374
3376
|
),
|
|
@@ -3378,8 +3380,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3378
3380
|
type: "button",
|
|
3379
3381
|
className: `${o.timePopoverBtn} ${o.timePopoverOk}`,
|
|
3380
3382
|
onClick: () => {
|
|
3381
|
-
const r =
|
|
3382
|
-
N({ birthTime: r }),
|
|
3383
|
+
const r = Re(ue);
|
|
3384
|
+
N({ birthTime: r }), G("birthTime", r), le(!1);
|
|
3383
3385
|
},
|
|
3384
3386
|
"aria-label": "OK",
|
|
3385
3387
|
children: /* @__PURE__ */ e.jsx(
|
|
@@ -3457,7 +3459,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3457
3459
|
onClick: () => {
|
|
3458
3460
|
m?.trackInfoIconClicked?.({
|
|
3459
3461
|
fieldName: "birthPlace"
|
|
3460
|
-
}),
|
|
3462
|
+
}), te((r) => r === "place" ? null : "place");
|
|
3461
3463
|
},
|
|
3462
3464
|
children: /* @__PURE__ */ e.jsx(
|
|
3463
3465
|
"img",
|
|
@@ -3476,7 +3478,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3476
3478
|
] })
|
|
3477
3479
|
] })
|
|
3478
3480
|
] }),
|
|
3479
|
-
/* @__PURE__ */ e.jsxs("div", { className: o.inputWrap, ref:
|
|
3481
|
+
/* @__PURE__ */ e.jsxs("div", { className: o.inputWrap, ref: be, children: [
|
|
3480
3482
|
/* @__PURE__ */ e.jsx(
|
|
3481
3483
|
"input",
|
|
3482
3484
|
{
|
|
@@ -3490,10 +3492,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3490
3492
|
birthPlace: c,
|
|
3491
3493
|
birthPlaceLat: void 0,
|
|
3492
3494
|
birthPlaceLng: void 0
|
|
3493
|
-
}),
|
|
3495
|
+
}), G("birthPlace", c), W(!0);
|
|
3494
3496
|
},
|
|
3495
3497
|
onFocus: () => {
|
|
3496
|
-
m?.trackPlaceOfBirthClicked?.(),
|
|
3498
|
+
m?.trackPlaceOfBirthClicked?.(), W(!0);
|
|
3497
3499
|
},
|
|
3498
3500
|
placeholder: t("formBirthPlacePlaceholder"),
|
|
3499
3501
|
autoComplete: "address-level2"
|
|
@@ -3508,22 +3510,22 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3508
3510
|
"aria-hidden": !0
|
|
3509
3511
|
}
|
|
3510
3512
|
) }),
|
|
3511
|
-
|
|
3513
|
+
de && Se.length > 0 && /* @__PURE__ */ e.jsx("div", { className: o.suggestions, role: "listbox", children: Se.slice(0, 8).map((r) => /* @__PURE__ */ e.jsxs(
|
|
3512
3514
|
"button",
|
|
3513
3515
|
{
|
|
3514
3516
|
type: "button",
|
|
3515
3517
|
className: o.suggestionItem,
|
|
3516
3518
|
onClick: async () => {
|
|
3517
3519
|
const c = r.description;
|
|
3518
|
-
if (
|
|
3520
|
+
if (re.current = c, N({
|
|
3519
3521
|
birthPlace: c,
|
|
3520
3522
|
birthPlaceLat: r.lat,
|
|
3521
3523
|
birthPlaceLng: r.lng
|
|
3522
|
-
}), se(),
|
|
3524
|
+
}), se(), W(!1), me) {
|
|
3523
3525
|
const K = await ke.getPlaceDetails(
|
|
3524
3526
|
r.id
|
|
3525
3527
|
);
|
|
3526
|
-
K && (
|
|
3528
|
+
K && (re.current = c, s({
|
|
3527
3529
|
...n,
|
|
3528
3530
|
birthPlace: c,
|
|
3529
3531
|
birthPlaceLat: K.lat,
|
|
@@ -3538,8 +3540,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3538
3540
|
},
|
|
3539
3541
|
r.id
|
|
3540
3542
|
)) }),
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
+
de && f && i && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: "Loading…" }),
|
|
3544
|
+
de && f && !i && !!b && /* @__PURE__ */ e.jsx("div", { className: o.suggestionsHint, children: b })
|
|
3543
3545
|
] })
|
|
3544
3546
|
] }),
|
|
3545
3547
|
h && /* @__PURE__ */ e.jsxs("div", { className: o.field, children: [
|
|
@@ -3673,19 +3675,19 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3673
3675
|
] }) })
|
|
3674
3676
|
}
|
|
3675
3677
|
);
|
|
3676
|
-
},
|
|
3677
|
-
ctaButton:
|
|
3678
|
-
ctaFilled:
|
|
3679
|
-
ctaFilledContent:
|
|
3680
|
-
chevronRight:
|
|
3681
|
-
},
|
|
3678
|
+
}, Ir = "_ctaButton_rhimw_2", Fr = "_ctaFilled_rhimw_21", Mr = "_ctaFilledContent_rhimw_52", Ur = "_chevronRight_rhimw_61", Ke = {
|
|
3679
|
+
ctaButton: Ir,
|
|
3680
|
+
ctaFilled: Fr,
|
|
3681
|
+
ctaFilledContent: Mr,
|
|
3682
|
+
chevronRight: Ur
|
|
3683
|
+
}, La = "kundli-report-astrologer", Gr = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", Or = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", $r = "https://srm-cdn.a4b.io/yoda/1770707793537.svg", Hr = "https://srm-cdn.a4b.io/yoda/1771588545907.svg", Wr = ({ t }) => {
|
|
3682
3684
|
const s = Ie()?.config.imageComponent ?? Ye;
|
|
3683
3685
|
return /* @__PURE__ */ e.jsxs("div", { className: Ee.marqueeContent, children: [
|
|
3684
3686
|
/* @__PURE__ */ e.jsxs("span", { className: Ee.badge, children: [
|
|
3685
3687
|
/* @__PURE__ */ e.jsx(
|
|
3686
3688
|
s,
|
|
3687
3689
|
{
|
|
3688
|
-
src:
|
|
3690
|
+
src: Gr,
|
|
3689
3691
|
alt: "",
|
|
3690
3692
|
className: Ee.badgeIcon,
|
|
3691
3693
|
width: 16,
|
|
@@ -3699,7 +3701,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3699
3701
|
/* @__PURE__ */ e.jsx(
|
|
3700
3702
|
s,
|
|
3701
3703
|
{
|
|
3702
|
-
src:
|
|
3704
|
+
src: Or,
|
|
3703
3705
|
alt: "",
|
|
3704
3706
|
className: Ee.badgeIcon,
|
|
3705
3707
|
width: 16,
|
|
@@ -3713,7 +3715,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3713
3715
|
/* @__PURE__ */ e.jsx(
|
|
3714
3716
|
s,
|
|
3715
3717
|
{
|
|
3716
|
-
src:
|
|
3718
|
+
src: $r,
|
|
3717
3719
|
alt: "",
|
|
3718
3720
|
className: Ee.badgeIcon,
|
|
3719
3721
|
width: 16,
|
|
@@ -3724,11 +3726,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3724
3726
|
t("ctaSecurePayment")
|
|
3725
3727
|
] })
|
|
3726
3728
|
] });
|
|
3727
|
-
},
|
|
3729
|
+
}, Kr = (t) => /.+@.+\..+/.test(t), qr = (t) => /^\d{10}$/.test(t), Yr = (t, n, s) => {
|
|
3728
3730
|
if (!t.fullName.trim()) return "fullName";
|
|
3729
3731
|
if (n) {
|
|
3730
|
-
if (!
|
|
3731
|
-
} else if (!
|
|
3732
|
+
if (!Kr(t.email.trim())) return "email";
|
|
3733
|
+
} else if (!qr((t.phone ?? "").trim())) return "phone";
|
|
3732
3734
|
if (!t.dateOfBirth) return "dateOfBirth";
|
|
3733
3735
|
if (!t.birthPlace.trim()) return "birthPlace";
|
|
3734
3736
|
if (s) {
|
|
@@ -3736,7 +3738,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3736
3738
|
if (!t.language_code) return "language_code";
|
|
3737
3739
|
}
|
|
3738
3740
|
return !t.birthTimeUnknown && !t.birthTime ? "birthTime" : null;
|
|
3739
|
-
},
|
|
3741
|
+
}, Vr = ({
|
|
3740
3742
|
t,
|
|
3741
3743
|
values: n,
|
|
3742
3744
|
phoneIsdCode: s,
|
|
@@ -3754,15 +3756,15 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3754
3756
|
planSheetOpen: A,
|
|
3755
3757
|
selectedPlan: z
|
|
3756
3758
|
}) => {
|
|
3757
|
-
const v = Ie(), y = v?.config.isGlobal ?? !0, w = v?.config?.variant,
|
|
3758
|
-
() =>
|
|
3759
|
+
const v = Ie(), y = v?.config.isGlobal ?? !0, w = v?.config?.variant, ie = Be(
|
|
3760
|
+
() => Yr(n, y, p),
|
|
3759
3761
|
[n, y, p]
|
|
3760
|
-
), S =
|
|
3762
|
+
), S = ie === null, V = w === "v1" && v?.config?.showSheet, j = y ? M ?? t("formDiscountedPrice") : V ? "" : "₹499", O = v?.config.imageComponent ?? Ye, N = (Z) => {
|
|
3761
3763
|
if (Z.preventDefault(), w === "v1" && !S && k?.trackKundliDetailedClicked?.(), !S) {
|
|
3762
|
-
|
|
3764
|
+
ie && d?.(ie);
|
|
3763
3765
|
return;
|
|
3764
3766
|
}
|
|
3765
|
-
const ee = !!_ && w === "v1" && z?.id ===
|
|
3767
|
+
const ee = !!_ && w === "v1" && z?.id === La, B = (n.phone ?? "").trim(), D = {
|
|
3766
3768
|
...n,
|
|
3767
3769
|
phone: B && `${s}-${B}`
|
|
3768
3770
|
};
|
|
@@ -3771,8 +3773,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3771
3773
|
return;
|
|
3772
3774
|
}
|
|
3773
3775
|
k?.trackPrimaryCtaClickedL1?.({ avenue: "form" }), ee ? _(D) : h?.(D);
|
|
3774
|
-
},
|
|
3775
|
-
|
|
3776
|
+
}, G = /* @__PURE__ */ e.jsx(
|
|
3777
|
+
Xa,
|
|
3776
3778
|
{
|
|
3777
3779
|
href: P,
|
|
3778
3780
|
disabled: w === "v1" ? !1 : !S,
|
|
@@ -3782,9 +3784,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3782
3784
|
children: w === "v1" ? S ? /* @__PURE__ */ e.jsxs("span", { className: Ke.ctaFilledContent, children: [
|
|
3783
3785
|
V ? t("selectPackage") : A && z ? `${t("proceedWithPlan")}${z.price}` : `${t("formProceed")} ${j}`,
|
|
3784
3786
|
/* @__PURE__ */ e.jsx(
|
|
3785
|
-
|
|
3787
|
+
O,
|
|
3786
3788
|
{
|
|
3787
|
-
src:
|
|
3789
|
+
src: Hr,
|
|
3788
3790
|
alt: "",
|
|
3789
3791
|
className: Ke.chevronRight,
|
|
3790
3792
|
width: 20,
|
|
@@ -3800,22 +3802,22 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3800
3802
|
}
|
|
3801
3803
|
);
|
|
3802
3804
|
return /* @__PURE__ */ e.jsx(
|
|
3803
|
-
|
|
3805
|
+
Za,
|
|
3804
3806
|
{
|
|
3805
3807
|
className: `${Ke.footerContainer} ${Y}`,
|
|
3806
|
-
marquee: /* @__PURE__ */ e.jsx(
|
|
3807
|
-
children:
|
|
3808
|
+
marquee: /* @__PURE__ */ e.jsx(et, { children: /* @__PURE__ */ e.jsx(Wr, { t }) }),
|
|
3809
|
+
children: G
|
|
3808
3810
|
}
|
|
3809
3811
|
);
|
|
3810
|
-
},
|
|
3812
|
+
}, Jr = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", zr = ({
|
|
3811
3813
|
t,
|
|
3812
3814
|
languageSelector: n,
|
|
3813
|
-
logoUrl: s =
|
|
3815
|
+
logoUrl: s = Jr,
|
|
3814
3816
|
className: p = ""
|
|
3815
3817
|
}) => {
|
|
3816
3818
|
const d = Ie(), h = d?.config.isGlobal ?? !0, _ = n != null && !h;
|
|
3817
3819
|
return /* @__PURE__ */ e.jsx(
|
|
3818
|
-
|
|
3820
|
+
at,
|
|
3819
3821
|
{
|
|
3820
3822
|
t,
|
|
3821
3823
|
logoUrl: s,
|
|
@@ -3825,7 +3827,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3825
3827
|
className: p
|
|
3826
3828
|
}
|
|
3827
3829
|
);
|
|
3828
|
-
},
|
|
3830
|
+
}, Ba = () => /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
3829
3831
|
"path",
|
|
3830
3832
|
{
|
|
3831
3833
|
d: "M3.5 8.5l2.5 2.5 6-6",
|
|
@@ -3834,7 +3836,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3834
3836
|
strokeLinecap: "round",
|
|
3835
3837
|
strokeLinejoin: "round"
|
|
3836
3838
|
}
|
|
3837
|
-
) }),
|
|
3839
|
+
) }), Qr = () => /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
3838
3840
|
"path",
|
|
3839
3841
|
{
|
|
3840
3842
|
d: "M4.5 4.5l7 7M11.5 4.5l-7 7",
|
|
@@ -3842,10 +3844,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3842
3844
|
strokeWidth: "1.8",
|
|
3843
3845
|
strokeLinecap: "round"
|
|
3844
3846
|
}
|
|
3845
|
-
) }), sa = () => /* @__PURE__ */ e.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__ */ e.jsx("path", { d: "M15 18l-6-6 6-6" }) }),
|
|
3847
|
+
) }), sa = () => /* @__PURE__ */ e.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__ */ e.jsx("path", { d: "M15 18l-6-6 6-6" }) }), Xr = () => /* @__PURE__ */ e.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx("path", { d: "M6 9l6 6 6-6" }) }), Zr = () => /* @__PURE__ */ e.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: [
|
|
3846
3848
|
/* @__PURE__ */ e.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
3847
3849
|
/* @__PURE__ */ e.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
3848
|
-
] }),
|
|
3850
|
+
] }), en = () => /* @__PURE__ */ e.jsx(
|
|
3849
3851
|
"img",
|
|
3850
3852
|
{
|
|
3851
3853
|
src: "https://srm-cdn.a4b.io/yoda/1785316603029.svg",
|
|
@@ -3854,7 +3856,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3854
3856
|
alt: "",
|
|
3855
3857
|
"aria-hidden": !0
|
|
3856
3858
|
}
|
|
3857
|
-
),
|
|
3859
|
+
), an = () => /* @__PURE__ */ e.jsx(
|
|
3858
3860
|
"img",
|
|
3859
3861
|
{
|
|
3860
3862
|
src: "https://srm-cdn.a4b.io/yoda/1785316621747.svg",
|
|
@@ -3863,7 +3865,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3863
3865
|
alt: "",
|
|
3864
3866
|
"aria-hidden": !0
|
|
3865
3867
|
}
|
|
3866
|
-
),
|
|
3868
|
+
), tn = () => /* @__PURE__ */ e.jsx(
|
|
3867
3869
|
"img",
|
|
3868
3870
|
{
|
|
3869
3871
|
src: "https://srm-cdn.a4b.io/yoda/1785316635953.svg",
|
|
@@ -3872,57 +3874,57 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3872
3874
|
alt: "",
|
|
3873
3875
|
"aria-hidden": !0
|
|
3874
3876
|
}
|
|
3875
|
-
),
|
|
3877
|
+
), rn = () => /* @__PURE__ */ e.jsxs("svg", { width: "40", height: "40", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: [
|
|
3876
3878
|
/* @__PURE__ */ e.jsx("rect", { x: "3", y: "4.5", width: "18", height: "16", rx: "3", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
3877
3879
|
/* @__PURE__ */ e.jsx("path", { d: "M3 9.5h18", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
3878
3880
|
/* @__PURE__ */ e.jsx("path", { d: "M8 2.5v4M16 2.5v4", stroke: "#D1D5DB", strokeWidth: "1.6", strokeLinecap: "round" }),
|
|
3879
3881
|
/* @__PURE__ */ e.jsx("path", { d: "M7.5 20.5L17 6", stroke: "#9CA3AF", strokeWidth: "1.6", strokeLinecap: "round" })
|
|
3880
|
-
] }),
|
|
3881
|
-
overlay:
|
|
3882
|
-
sheet:
|
|
3883
|
-
sheetFullScreen:
|
|
3884
|
-
headerFull:
|
|
3885
|
-
titleFull:
|
|
3886
|
-
header:
|
|
3887
|
-
backBtn:
|
|
3888
|
-
title:
|
|
3889
|
-
plansContainer:
|
|
3890
|
-
planCard:
|
|
3891
|
-
withBadgeSpacing:
|
|
3892
|
-
planCardSelected:
|
|
3893
|
-
planCardPopular:
|
|
3894
|
-
popularBadge:
|
|
3895
|
-
planCardInner:
|
|
3896
|
-
planTitleRow:
|
|
3897
|
-
planTitle:
|
|
3898
|
-
radioCircle:
|
|
3899
|
-
radioChecked:
|
|
3900
|
-
radioInner:
|
|
3901
|
-
priceRow:
|
|
3902
|
-
price:
|
|
3903
|
-
originalPrice:
|
|
3904
|
-
savingsBadge:
|
|
3905
|
-
featureList:
|
|
3906
|
-
featureItem:
|
|
3907
|
-
featureIcon:
|
|
3908
|
-
featureText:
|
|
3909
|
-
astrologerHeading:
|
|
3910
|
-
astrologerList:
|
|
3911
|
-
astrologerCard:
|
|
3912
|
-
astrologerAvatar:
|
|
3913
|
-
astrologerAvatarPlaceholder:
|
|
3914
|
-
astrologerTop:
|
|
3915
|
-
astrologerBasicInfo:
|
|
3916
|
-
astrologerName:
|
|
3917
|
-
astrologerExp:
|
|
3918
|
-
astrologerDivider:
|
|
3919
|
-
planDivider:
|
|
3920
|
-
astrologerCertList:
|
|
3921
|
-
astrologerCertItem:
|
|
3922
|
-
bullet:
|
|
3923
|
-
footer:
|
|
3924
|
-
proceedBtn:
|
|
3925
|
-
},
|
|
3882
|
+
] }), nn = "_overlay_1u7x5_2", on = "_sheet_1u7x5_12", ln = "_sheetFullScreen_1u7x5_36", sn = "_headerFull_1u7x5_50", cn = "_titleFull_1u7x5_63", dn = "_header_1u7x5_50", un = "_backBtn_1u7x5_84", pn = "_title_1u7x5_63", mn = "_plansContainer_1u7x5_114", fn = "_planCard_1u7x5_123", hn = "_withBadgeSpacing_1u7x5_137", gn = "_planCardSelected_1u7x5_141", bn = "_planCardPopular_1u7x5_146", _n = "_popularBadge_1u7x5_155", kn = "_planCardInner_1u7x5_173", yn = "_planTitleRow_1u7x5_184", An = "_planTitle_1u7x5_184", vn = "_radioCircle_1u7x5_199", Tn = "_radioChecked_1u7x5_212", Pn = "_radioInner_1u7x5_217", xn = "_priceRow_1u7x5_225", Sn = "_price_1u7x5_225", wn = "_originalPrice_1u7x5_238", Cn = "_savingsBadge_1u7x5_245", jn = "_featureList_1u7x5_255", Rn = "_featureItem_1u7x5_264", Nn = "_featureIcon_1u7x5_270", Ln = "_featureText_1u7x5_276", Bn = "_astrologerHeading_1u7x5_287", Dn = "_astrologerList_1u7x5_294", En = "_astrologerCard_1u7x5_310", In = "_astrologerAvatar_1u7x5_326", Fn = "_astrologerAvatarPlaceholder_1u7x5_343", Mn = "_astrologerTop_1u7x5_349", Un = "_astrologerBasicInfo_1u7x5_355", Gn = "_astrologerName_1u7x5_362", On = "_astrologerExp_1u7x5_371", $n = "_astrologerDivider_1u7x5_377", Hn = "_planDivider_1u7x5_383", Wn = "_astrologerCertList_1u7x5_390", Kn = "_astrologerCertItem_1u7x5_396", qn = "_bullet_1u7x5_404", Yn = "_footer_1u7x5_409", Vn = "_proceedBtn_1u7x5_419", x = {
|
|
3883
|
+
overlay: nn,
|
|
3884
|
+
sheet: on,
|
|
3885
|
+
sheetFullScreen: ln,
|
|
3886
|
+
headerFull: sn,
|
|
3887
|
+
titleFull: cn,
|
|
3888
|
+
header: dn,
|
|
3889
|
+
backBtn: un,
|
|
3890
|
+
title: pn,
|
|
3891
|
+
plansContainer: mn,
|
|
3892
|
+
planCard: fn,
|
|
3893
|
+
withBadgeSpacing: hn,
|
|
3894
|
+
planCardSelected: gn,
|
|
3895
|
+
planCardPopular: bn,
|
|
3896
|
+
popularBadge: _n,
|
|
3897
|
+
planCardInner: kn,
|
|
3898
|
+
planTitleRow: yn,
|
|
3899
|
+
planTitle: An,
|
|
3900
|
+
radioCircle: vn,
|
|
3901
|
+
radioChecked: Tn,
|
|
3902
|
+
radioInner: Pn,
|
|
3903
|
+
priceRow: xn,
|
|
3904
|
+
price: Sn,
|
|
3905
|
+
originalPrice: wn,
|
|
3906
|
+
savingsBadge: Cn,
|
|
3907
|
+
featureList: jn,
|
|
3908
|
+
featureItem: Rn,
|
|
3909
|
+
featureIcon: Nn,
|
|
3910
|
+
featureText: Ln,
|
|
3911
|
+
astrologerHeading: Bn,
|
|
3912
|
+
astrologerList: Dn,
|
|
3913
|
+
astrologerCard: En,
|
|
3914
|
+
astrologerAvatar: In,
|
|
3915
|
+
astrologerAvatarPlaceholder: Fn,
|
|
3916
|
+
astrologerTop: Mn,
|
|
3917
|
+
astrologerBasicInfo: Un,
|
|
3918
|
+
astrologerName: Gn,
|
|
3919
|
+
astrologerExp: On,
|
|
3920
|
+
astrologerDivider: $n,
|
|
3921
|
+
planDivider: Hn,
|
|
3922
|
+
astrologerCertList: Wn,
|
|
3923
|
+
astrologerCertItem: Kn,
|
|
3924
|
+
bullet: qn,
|
|
3925
|
+
footer: Yn,
|
|
3926
|
+
proceedBtn: Vn
|
|
3927
|
+
}, Jn = ({ title: t, onBack: n }) => /* @__PURE__ */ e.jsxs("div", { className: x.header, children: [
|
|
3926
3928
|
/* @__PURE__ */ e.jsx(
|
|
3927
3929
|
"button",
|
|
3928
3930
|
{
|
|
@@ -3934,8 +3936,8 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3934
3936
|
}
|
|
3935
3937
|
),
|
|
3936
3938
|
/* @__PURE__ */ e.jsx("h2", { className: x.title, children: t })
|
|
3937
|
-
] }),
|
|
3938
|
-
/* @__PURE__ */ e.jsx("span", { className: x.featureIcon, children: s.included ? /* @__PURE__ */ e.jsx(
|
|
3939
|
+
] }), zn = ({ 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: [
|
|
3940
|
+
/* @__PURE__ */ e.jsx("span", { className: x.featureIcon, children: s.included ? /* @__PURE__ */ e.jsx(Ba, {}) : /* @__PURE__ */ e.jsx(Qr, {}) }),
|
|
3939
3941
|
/* @__PURE__ */ e.jsx(
|
|
3940
3942
|
"span",
|
|
3941
3943
|
{
|
|
@@ -3943,7 +3945,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3943
3945
|
children: n?.(s.text) ?? s.text
|
|
3944
3946
|
}
|
|
3945
3947
|
)
|
|
3946
|
-
] }, p)) }),
|
|
3948
|
+
] }, p)) }), Qn = ({ astrologer: t, t: n }) => /* @__PURE__ */ e.jsxs("div", { className: x.astrologerCard, children: [
|
|
3947
3949
|
/* @__PURE__ */ e.jsxs("div", { className: x.astrologerTop, children: [
|
|
3948
3950
|
/* @__PURE__ */ e.jsx("div", { className: x.astrologerAvatar, "aria-hidden": !0, children: t.imageUrl ? /* @__PURE__ */ e.jsx("img", { src: t.imageUrl, alt: n?.(t.name) ?? t.name, width: 40, height: 40 }) : /* @__PURE__ */ e.jsx("span", { className: x.astrologerAvatarPlaceholder, children: t.name.charAt(0) }) }),
|
|
3949
3951
|
/* @__PURE__ */ e.jsxs("div", { className: x.astrologerBasicInfo, children: [
|
|
@@ -3957,10 +3959,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3957
3959
|
" ",
|
|
3958
3960
|
n?.(s) ?? s
|
|
3959
3961
|
] }, p)) })
|
|
3960
|
-
] }),
|
|
3961
|
-
/* @__PURE__ */ e.jsx(
|
|
3962
|
+
] }), Xn = ({ label: t }) => /* @__PURE__ */ e.jsxs("div", { className: x.popularBadge, "aria-label": t, children: [
|
|
3963
|
+
/* @__PURE__ */ e.jsx(Zr, {}),
|
|
3962
3964
|
/* @__PURE__ */ e.jsx("span", { children: t })
|
|
3963
|
-
] }),
|
|
3965
|
+
] }), Zn = ({ plan: t, isSelected: n, onSelect: s, t: p }) => {
|
|
3964
3966
|
const d = () => s(t.id), h = (_) => {
|
|
3965
3967
|
(_.key === " " || _.key === "Enter") && (_.preventDefault(), s(t.id));
|
|
3966
3968
|
};
|
|
@@ -3979,7 +3981,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3979
3981
|
onKeyDown: h,
|
|
3980
3982
|
"data-plan-id": t.id,
|
|
3981
3983
|
children: [
|
|
3982
|
-
t.badge && /* @__PURE__ */ e.jsx(
|
|
3984
|
+
t.badge && /* @__PURE__ */ e.jsx(Xn, { label: p?.(t.badge) ?? t.badge }),
|
|
3983
3985
|
/* @__PURE__ */ e.jsxs("div", { className: x.planCardInner, children: [
|
|
3984
3986
|
/* @__PURE__ */ e.jsxs("div", { className: `${x.planTitleRow} ${t.badge ? x.withBadgeSpacing : ""}`, children: [
|
|
3985
3987
|
/* @__PURE__ */ e.jsx("span", { className: x.planTitle, children: p?.(t.title) ?? t.title }),
|
|
@@ -3997,11 +3999,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
3997
3999
|
t.originalPrice && /* @__PURE__ */ e.jsx("span", { className: x.originalPrice, children: t.originalPrice }),
|
|
3998
4000
|
t.savingsLabel && /* @__PURE__ */ e.jsx("span", { className: x.savingsBadge, children: p?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
|
|
3999
4001
|
] }),
|
|
4000
|
-
/* @__PURE__ */ e.jsx(
|
|
4002
|
+
/* @__PURE__ */ e.jsx(zn, { features: t.features, t: p }),
|
|
4001
4003
|
t.astrologers && /* @__PURE__ */ e.jsx("div", { className: x.planDivider }),
|
|
4002
4004
|
t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4003
4005
|
/* @__PURE__ */ e.jsx("p", { className: x.astrologerHeading, children: p?.("planAstrologerHeading") ?? "We will assign you a top astrologer from below" }),
|
|
4004
|
-
/* @__PURE__ */ e.jsx("div", { className: x.astrologerList, role: "list", children: t.astrologers.map((_, P) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(
|
|
4006
|
+
/* @__PURE__ */ e.jsx("div", { className: x.astrologerList, role: "list", children: t.astrologers.map((_, P) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(Qn, { astrologer: _, t: p }) }, P)) })
|
|
4005
4007
|
] })
|
|
4006
4008
|
] })
|
|
4007
4009
|
]
|
|
@@ -4012,7 +4014,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4012
4014
|
if (!n) return t;
|
|
4013
4015
|
const s = Number(n[1]), p = n[2], d = s >= 12 ? "PM" : "AM";
|
|
4014
4016
|
return `${s % 12 || 12}:${p} ${d}`;
|
|
4015
|
-
},
|
|
4017
|
+
}, eo = (t, n = /* @__PURE__ */ new Date()) => {
|
|
4016
4018
|
const s = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], p = /* @__PURE__ */ new Date(`${t}T00:00:00`);
|
|
4017
4019
|
if (Number.isNaN(p.getTime()))
|
|
4018
4020
|
return { id: t, dayLabel: t, dayNum: "" };
|
|
@@ -4020,11 +4022,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4020
4022
|
(d(p) - d(n)) / (1e3 * 60 * 60 * 24)
|
|
4021
4023
|
), _ = h === 0 ? "Today" : h === 1 ? "Tomorrow" : s[p.getDay()];
|
|
4022
4024
|
return { id: t, dayLabel: _, dayNum: String(p.getDate()) };
|
|
4023
|
-
},
|
|
4025
|
+
}, ao = [
|
|
4024
4026
|
"morning",
|
|
4025
4027
|
"afternoon",
|
|
4026
4028
|
"evening"
|
|
4027
|
-
],
|
|
4029
|
+
], to = [
|
|
4028
4030
|
{ id: "career_work", labelKey: "planTopicCareerWork", label: "Career & work" },
|
|
4029
4031
|
{ id: "health_wellbeing", labelKey: "planTopicHealthWellbeing", label: "Health & wellbeing" },
|
|
4030
4032
|
{ id: "love_marriage", labelKey: "planTopicLoveMarriage", label: "Love & marriage" },
|
|
@@ -4037,7 +4039,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4037
4039
|
{ code: "gu", labelKey: "formReportLanguageGujarati", label: "Gujarati" },
|
|
4038
4040
|
{ code: "mr", labelKey: "formReportLanguageMarathi", label: "Marathi" },
|
|
4039
4041
|
{ code: "ta", labelKey: "formReportLanguageTamil", label: "Tamil" }
|
|
4040
|
-
],
|
|
4042
|
+
], ro = {
|
|
4041
4043
|
en: ["hi", "en"],
|
|
4042
4044
|
hi: ["hi", "en"],
|
|
4043
4045
|
te: ["te", "en"],
|
|
@@ -4045,7 +4047,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4045
4047
|
gu: ["gu", "en"],
|
|
4046
4048
|
mr: ["mr", "hi"],
|
|
4047
4049
|
ta: ["ta", "en"]
|
|
4048
|
-
},
|
|
4050
|
+
}, no = {
|
|
4049
4051
|
en: ["en", "hi"],
|
|
4050
4052
|
hi: ["hi", "en"],
|
|
4051
4053
|
te: ["te", "en"],
|
|
@@ -4053,78 +4055,78 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4053
4055
|
gu: ["gu", "en"],
|
|
4054
4056
|
mr: ["mr", "en"],
|
|
4055
4057
|
ta: ["ta", "en"]
|
|
4056
|
-
},
|
|
4057
|
-
const p = s ?
|
|
4058
|
+
}, Da = (t) => !!t?.days?.some((n) => n.has_availability && n.slots.length > 0), oo = (t, n, s) => {
|
|
4059
|
+
const p = s ? no : ro, [d, h] = p[n || "en"] ?? p.en, _ = qe.map((k) => k.code).filter(
|
|
4058
4060
|
(k) => k !== d && k !== h
|
|
4059
4061
|
);
|
|
4060
|
-
return [d, h, ..._].find((k) =>
|
|
4061
|
-
},
|
|
4062
|
-
overlay:
|
|
4063
|
-
sheet:
|
|
4064
|
-
content:
|
|
4065
|
-
header:
|
|
4066
|
-
backBtn:
|
|
4067
|
-
title:
|
|
4068
|
-
languageRow:
|
|
4069
|
-
languageLabel:
|
|
4070
|
-
languageDropdown:
|
|
4071
|
-
languageDropdownBtn:
|
|
4072
|
-
languageMenu:
|
|
4073
|
-
languageMenuItem:
|
|
4074
|
-
languageMenuItemSelected:
|
|
4075
|
-
languageDivider:
|
|
4076
|
-
reportReadyBanner:
|
|
4077
|
-
reportReadyDuration:
|
|
4078
|
-
trustRow:
|
|
4079
|
-
trustAvatars:
|
|
4080
|
-
trustText:
|
|
4081
|
-
sectionHeading:
|
|
4082
|
-
dateTabs:
|
|
4083
|
-
dateTabIndicator:
|
|
4084
|
-
dateTab:
|
|
4085
|
-
dateTabDivider:
|
|
4086
|
-
dateTabSelected:
|
|
4087
|
-
dateTabLabel:
|
|
4088
|
-
dateTabNum:
|
|
4089
|
-
periodTabs:
|
|
4090
|
-
periodTabIndicator:
|
|
4091
|
-
periodTab:
|
|
4092
|
-
periodTabSelected:
|
|
4093
|
-
timeGrid:
|
|
4094
|
-
emptyState:
|
|
4095
|
-
timeSlot:
|
|
4096
|
-
timeSlotSelected:
|
|
4097
|
-
topicGrid:
|
|
4098
|
-
topicChip:
|
|
4099
|
-
topicChipSelected:
|
|
4100
|
-
stateMessage:
|
|
4101
|
-
emptyStateIcon:
|
|
4102
|
-
emptyStateTitle:
|
|
4103
|
-
emptyStateSubtitle:
|
|
4104
|
-
loadingWrap:
|
|
4105
|
-
skeletonShimmer:
|
|
4106
|
-
skeletonDateTabs:
|
|
4107
|
-
skeletonDateTab:
|
|
4108
|
-
skeletonPeriodTabs:
|
|
4109
|
-
skeletonPeriodTab:
|
|
4110
|
-
skeletonTimeGrid:
|
|
4111
|
-
skeletonTimeSlot:
|
|
4112
|
-
retryBtn:
|
|
4113
|
-
footer:
|
|
4114
|
-
proceedBtn:
|
|
4115
|
-
proceedBtnDisabled:
|
|
4116
|
-
}, ii = {
|
|
4117
|
-
morning: Zr,
|
|
4118
|
-
afternoon: en,
|
|
4119
|
-
evening: an
|
|
4062
|
+
return [d, h, ..._].find((k) => Da(t[k])) ?? d;
|
|
4063
|
+
}, io = "_overlay_12sjj_3", lo = "_sheet_12sjj_13", so = "_content_12sjj_35", co = "_header_12sjj_42", uo = "_backBtn_12sjj_55", po = "_title_12sjj_73", mo = "_languageRow_12sjj_89", fo = "_languageLabel_12sjj_97", ho = "_languageDropdown_12sjj_103", go = "_languageDropdownBtn_12sjj_107", bo = "_languageMenu_12sjj_122", _o = "_languageMenuItem_12sjj_139", ko = "_languageMenuItemSelected_12sjj_153", yo = "_languageDivider_12sjj_159", Ao = "_reportReadyBanner_12sjj_166", vo = "_reportReadyDuration_12sjj_175", To = "_trustRow_12sjj_181", Po = "_trustAvatars_12sjj_192", xo = "_trustText_12sjj_205", So = "_sectionHeading_12sjj_316", wo = "_dateTabs_12sjj_324", Co = "_dateTabIndicator_12sjj_336", jo = "_dateTab_12sjj_324", Ro = "_dateTabDivider_12sjj_370", No = "_dateTabSelected_12sjj_380", Lo = "_dateTabLabel_12sjj_385", Bo = "_dateTabNum_12sjj_392", Do = "_periodTabs_12sjj_406", Eo = "_periodTabIndicator_12sjj_334", Io = "_periodTab_12sjj_334", Fo = "_periodTabSelected_12sjj_453", Mo = "_timeGrid_12sjj_458", Uo = "_emptyState_12sjj_486", Go = "_timeSlot_12sjj_490", Oo = "_timeSlotSelected_12sjj_506", $o = "_topicGrid_12sjj_514", Ho = "_topicChip_12sjj_520", Wo = "_topicChipSelected_12sjj_536", Ko = "_stateMessage_12sjj_543", qo = "_emptyStateIcon_12sjj_563", Yo = "_emptyStateTitle_12sjj_574", Vo = "_emptyStateSubtitle_12sjj_581", Jo = "_loadingWrap_12sjj_590", zo = "_skeletonShimmer_12sjj_595", Qo = "_skeletonDateTabs_12sjj_609", Xo = "_skeletonDateTab_12sjj_609", Zo = "_skeletonPeriodTabs_12sjj_623", ei = "_skeletonPeriodTab_12sjj_623", ai = "_skeletonTimeGrid_12sjj_638", ti = "_skeletonTimeSlot_12sjj_644", ri = "_retryBtn_12sjj_649", ni = "_footer_12sjj_663", oi = "_proceedBtn_12sjj_670", ii = "_proceedBtnDisabled_12sjj_688", g = {
|
|
4064
|
+
overlay: io,
|
|
4065
|
+
sheet: lo,
|
|
4066
|
+
content: so,
|
|
4067
|
+
header: co,
|
|
4068
|
+
backBtn: uo,
|
|
4069
|
+
title: po,
|
|
4070
|
+
languageRow: mo,
|
|
4071
|
+
languageLabel: fo,
|
|
4072
|
+
languageDropdown: ho,
|
|
4073
|
+
languageDropdownBtn: go,
|
|
4074
|
+
languageMenu: bo,
|
|
4075
|
+
languageMenuItem: _o,
|
|
4076
|
+
languageMenuItemSelected: ko,
|
|
4077
|
+
languageDivider: yo,
|
|
4078
|
+
reportReadyBanner: Ao,
|
|
4079
|
+
reportReadyDuration: vo,
|
|
4080
|
+
trustRow: To,
|
|
4081
|
+
trustAvatars: Po,
|
|
4082
|
+
trustText: xo,
|
|
4083
|
+
sectionHeading: So,
|
|
4084
|
+
dateTabs: wo,
|
|
4085
|
+
dateTabIndicator: Co,
|
|
4086
|
+
dateTab: jo,
|
|
4087
|
+
dateTabDivider: Ro,
|
|
4088
|
+
dateTabSelected: No,
|
|
4089
|
+
dateTabLabel: Lo,
|
|
4090
|
+
dateTabNum: Bo,
|
|
4091
|
+
periodTabs: Do,
|
|
4092
|
+
periodTabIndicator: Eo,
|
|
4093
|
+
periodTab: Io,
|
|
4094
|
+
periodTabSelected: Fo,
|
|
4095
|
+
timeGrid: Mo,
|
|
4096
|
+
emptyState: Uo,
|
|
4097
|
+
timeSlot: Go,
|
|
4098
|
+
timeSlotSelected: Oo,
|
|
4099
|
+
topicGrid: $o,
|
|
4100
|
+
topicChip: Ho,
|
|
4101
|
+
topicChipSelected: Wo,
|
|
4102
|
+
stateMessage: Ko,
|
|
4103
|
+
emptyStateIcon: qo,
|
|
4104
|
+
emptyStateTitle: Yo,
|
|
4105
|
+
emptyStateSubtitle: Vo,
|
|
4106
|
+
loadingWrap: Jo,
|
|
4107
|
+
skeletonShimmer: zo,
|
|
4108
|
+
skeletonDateTabs: Qo,
|
|
4109
|
+
skeletonDateTab: Xo,
|
|
4110
|
+
skeletonPeriodTabs: Zo,
|
|
4111
|
+
skeletonPeriodTab: ei,
|
|
4112
|
+
skeletonTimeGrid: ai,
|
|
4113
|
+
skeletonTimeSlot: ti,
|
|
4114
|
+
retryBtn: ri,
|
|
4115
|
+
footer: ni,
|
|
4116
|
+
proceedBtn: oi,
|
|
4117
|
+
proceedBtnDisabled: ii
|
|
4120
4118
|
}, li = {
|
|
4119
|
+
morning: en,
|
|
4120
|
+
afternoon: an,
|
|
4121
|
+
evening: tn
|
|
4122
|
+
}, si = {
|
|
4121
4123
|
morning: "planPeriodMorning",
|
|
4122
4124
|
afternoon: "planPeriodAfternoon",
|
|
4123
4125
|
evening: "planPeriodEvening"
|
|
4124
|
-
}, ta = (t) => qe.find((n) => n.code === t)?.label ?? t,
|
|
4126
|
+
}, ta = (t) => qe.find((n) => n.code === t)?.label ?? t, ci = (t) => {
|
|
4125
4127
|
const n = t.match(/([+-]\d{2}:\d{2})$/);
|
|
4126
4128
|
return n ? `GMT${n[1]}` : t.endsWith("Z") ? "GMT+00:00" : "";
|
|
4127
|
-
},
|
|
4129
|
+
}, di = ({
|
|
4128
4130
|
isOpen: t,
|
|
4129
4131
|
onClose: n,
|
|
4130
4132
|
onProceed: s,
|
|
@@ -4134,31 +4136,31 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4134
4136
|
reportLanguage: _,
|
|
4135
4137
|
isPostPayment: P = !1
|
|
4136
4138
|
}) => {
|
|
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,
|
|
4139
|
+
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, ie] = I({}), [S, V] = I("en"), [j, O] = I(!1), N = U(null), G = Be(
|
|
4138
4140
|
() => w[S]?.days ?? [],
|
|
4139
4141
|
[w, S]
|
|
4140
|
-
), [Z, ee] = I(""), [B, D] = I(""), [
|
|
4142
|
+
), [Z, ee] = I(""), [B, D] = I(""), [$, Q] = I("morning"), [E, _e] = I(null), le = U(!1), ue = U(null), pe = U({}), [ae, ge] = I(null), Ae = U(null), Re = U(
|
|
4141
4143
|
{}
|
|
4142
|
-
), [
|
|
4143
|
-
() =>
|
|
4144
|
-
[
|
|
4145
|
-
),
|
|
4144
|
+
), [be, de] = I(null), W = Be(
|
|
4145
|
+
() => G.filter((i) => i.has_availability && i.slots.length > 0),
|
|
4146
|
+
[G]
|
|
4147
|
+
), re = je(() => {
|
|
4146
4148
|
M && (z(!0), y(!1), M().then((i) => {
|
|
4147
|
-
const b = i ?? {}, f =
|
|
4149
|
+
const b = i ?? {}, f = oo(
|
|
4148
4150
|
b,
|
|
4149
4151
|
m,
|
|
4150
4152
|
R
|
|
4151
4153
|
);
|
|
4152
|
-
|
|
4154
|
+
ie(b), V(f), h?.trackConsultationLanguageDefaultSelected?.({
|
|
4153
4155
|
language: ta(f),
|
|
4154
4156
|
status: C
|
|
4155
4157
|
});
|
|
4156
|
-
const
|
|
4158
|
+
const he = (b[f]?.days ?? []).filter(
|
|
4157
4159
|
(se) => se.has_availability && se.slots.length > 0
|
|
4158
4160
|
).length;
|
|
4159
4161
|
h?.trackAstrologerAvailabilityServed?.({
|
|
4160
4162
|
astrologers_shown: p.map((se) => se.name),
|
|
4161
|
-
dates_available_count:
|
|
4163
|
+
dates_available_count: he,
|
|
4162
4164
|
status: C
|
|
4163
4165
|
});
|
|
4164
4166
|
}).catch(() => {
|
|
@@ -4167,121 +4169,121 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4167
4169
|
}, [M, R, m, h, p, C]);
|
|
4168
4170
|
q(() => {
|
|
4169
4171
|
if (!t) {
|
|
4170
|
-
|
|
4172
|
+
le.current = !1;
|
|
4171
4173
|
return;
|
|
4172
4174
|
}
|
|
4173
|
-
ee(""),
|
|
4175
|
+
ee(""), O(!1), re();
|
|
4174
4176
|
}, [t]), q(() => {
|
|
4175
4177
|
if (!j) return;
|
|
4176
4178
|
const i = (b) => {
|
|
4177
|
-
N.current && !N.current.contains(b.target) &&
|
|
4179
|
+
N.current && !N.current.contains(b.target) && O(!1);
|
|
4178
4180
|
};
|
|
4179
4181
|
return document.addEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
|
|
4180
4182
|
}, [j]), q(() => {
|
|
4181
|
-
if (!
|
|
4182
|
-
D(""),
|
|
4183
|
+
if (!W.length) {
|
|
4184
|
+
D(""), _e(null);
|
|
4183
4185
|
return;
|
|
4184
4186
|
}
|
|
4185
|
-
const i =
|
|
4186
|
-
|
|
4187
|
+
const i = W[0];
|
|
4188
|
+
W.some((b) => b.date === B) || h?.trackConsultationDateDefaultSelected?.({
|
|
4187
4189
|
date: i.date,
|
|
4188
4190
|
status: C
|
|
4189
4191
|
}), D(
|
|
4190
|
-
(b) =>
|
|
4192
|
+
(b) => W.some((f) => f.date === b) ? b : i.date
|
|
4191
4193
|
);
|
|
4192
|
-
}, [
|
|
4194
|
+
}, [W]);
|
|
4193
4195
|
const X = Be(
|
|
4194
|
-
() =>
|
|
4195
|
-
[
|
|
4196
|
-
),
|
|
4196
|
+
() => W.find((i) => i.date === B) ?? null,
|
|
4197
|
+
[W, B]
|
|
4198
|
+
), te = Be(() => {
|
|
4197
4199
|
if (!X) return [];
|
|
4198
4200
|
const i = new Set(X.slots.map((b) => b.period));
|
|
4199
|
-
return
|
|
4201
|
+
return ao.filter((b) => i.has(b));
|
|
4200
4202
|
}, [X]);
|
|
4201
4203
|
q(() => {
|
|
4202
|
-
if (!
|
|
4203
|
-
Q("morning"),
|
|
4204
|
+
if (!te.length) {
|
|
4205
|
+
Q("morning"), _e(null);
|
|
4204
4206
|
return;
|
|
4205
4207
|
}
|
|
4206
4208
|
Q(
|
|
4207
|
-
(i) =>
|
|
4209
|
+
(i) => te.includes(i) ? i : te[0]
|
|
4208
4210
|
);
|
|
4209
|
-
}, [
|
|
4210
|
-
const
|
|
4211
|
+
}, [te]);
|
|
4212
|
+
const ne = Be(() => X ? X.slots.filter((i) => i.period === $) : [], [X, $]);
|
|
4211
4213
|
if (q(() => {
|
|
4212
4214
|
const i = () => {
|
|
4213
|
-
const b = ue.current, f =
|
|
4215
|
+
const b = ue.current, f = pe.current[B];
|
|
4214
4216
|
if (!b || !f) {
|
|
4215
|
-
|
|
4217
|
+
ge(null);
|
|
4216
4218
|
return;
|
|
4217
4219
|
}
|
|
4218
|
-
const
|
|
4219
|
-
|
|
4220
|
-
left: se.left -
|
|
4221
|
-
top: se.top -
|
|
4220
|
+
const he = b.getBoundingClientRect(), se = f.getBoundingClientRect();
|
|
4221
|
+
ge({
|
|
4222
|
+
left: se.left - he.left,
|
|
4223
|
+
top: se.top - he.top,
|
|
4222
4224
|
width: se.width,
|
|
4223
4225
|
height: se.height
|
|
4224
4226
|
});
|
|
4225
4227
|
};
|
|
4226
4228
|
return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
|
|
4227
|
-
}, [B,
|
|
4229
|
+
}, [B, W]), q(() => {
|
|
4228
4230
|
const i = () => {
|
|
4229
|
-
const b = Ae.current, f =
|
|
4231
|
+
const b = Ae.current, f = Re.current[$];
|
|
4230
4232
|
if (!b || !f) {
|
|
4231
|
-
|
|
4233
|
+
de(null);
|
|
4232
4234
|
return;
|
|
4233
4235
|
}
|
|
4234
|
-
const
|
|
4235
|
-
|
|
4236
|
-
left: se.left -
|
|
4236
|
+
const he = b.getBoundingClientRect(), se = f.getBoundingClientRect();
|
|
4237
|
+
de({
|
|
4238
|
+
left: se.left - he.left,
|
|
4237
4239
|
width: se.width
|
|
4238
4240
|
});
|
|
4239
4241
|
};
|
|
4240
4242
|
return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
|
|
4241
|
-
}, [
|
|
4242
|
-
if (!
|
|
4243
|
-
|
|
4243
|
+
}, [$, te]), q(() => {
|
|
4244
|
+
if (!ne.length) {
|
|
4245
|
+
_e(null);
|
|
4244
4246
|
return;
|
|
4245
4247
|
}
|
|
4246
|
-
if (!(E &&
|
|
4247
|
-
const b =
|
|
4248
|
+
if (!(E && ne.some((b) => b.start === E.start))) {
|
|
4249
|
+
const b = ne[0];
|
|
4248
4250
|
h?.trackConsultationTimeDefaultSelected?.({
|
|
4249
4251
|
time: aa(b.start),
|
|
4250
|
-
gmt_offset:
|
|
4252
|
+
gmt_offset: ci(b.start),
|
|
4251
4253
|
status: C
|
|
4252
4254
|
});
|
|
4253
4255
|
}
|
|
4254
|
-
|
|
4255
|
-
(b) => b &&
|
|
4256
|
+
_e(
|
|
4257
|
+
(b) => b && ne.some((f) => f.start === b.start) ? b : ne[0]
|
|
4256
4258
|
);
|
|
4257
|
-
}, [
|
|
4258
|
-
t &&
|
|
4259
|
+
}, [ne]), q(() => {
|
|
4260
|
+
t && W.length && !le.current && (h?.trackSlotScreenViewed?.({
|
|
4259
4261
|
astrologers_shown: p.map((i) => i.name),
|
|
4260
|
-
dates_available_count:
|
|
4262
|
+
dates_available_count: W.length,
|
|
4261
4263
|
status: C
|
|
4262
|
-
}),
|
|
4263
|
-
}, [t,
|
|
4264
|
-
const
|
|
4264
|
+
}), le.current = !0);
|
|
4265
|
+
}, [t, W, p, h, C]), !t) return null;
|
|
4266
|
+
const ve = !!E && (P || !!Z), me = (i) => {
|
|
4265
4267
|
D(i), h?.trackSlotDateSelected?.({
|
|
4266
4268
|
date: i,
|
|
4267
|
-
day_part_default:
|
|
4269
|
+
day_part_default: $,
|
|
4268
4270
|
status: C
|
|
4269
4271
|
});
|
|
4270
|
-
},
|
|
4272
|
+
}, fe = (i) => {
|
|
4271
4273
|
Q(i), h?.trackDayPartSelected?.({
|
|
4272
4274
|
day_part: i,
|
|
4273
4275
|
slots_available_count: X?.slots.filter((b) => b.period === i).length ?? 0,
|
|
4274
4276
|
status: C
|
|
4275
4277
|
});
|
|
4276
4278
|
}, Ne = (i) => {
|
|
4277
|
-
|
|
4279
|
+
_e(i), h?.trackSlotSelected?.({
|
|
4278
4280
|
date: B,
|
|
4279
4281
|
time: aa(i.start),
|
|
4280
4282
|
day_part: i.period,
|
|
4281
4283
|
topic: Z || null,
|
|
4282
4284
|
status: C
|
|
4283
4285
|
});
|
|
4284
|
-
},
|
|
4286
|
+
}, Pe = () => {
|
|
4285
4287
|
E && (h?.trackSlotReservationRequested?.({
|
|
4286
4288
|
slot_datetime: `${E.start} - ${E.end}`,
|
|
4287
4289
|
status: C
|
|
@@ -4294,14 +4296,14 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4294
4296
|
}));
|
|
4295
4297
|
}, ke = (i) => {
|
|
4296
4298
|
ee(i), h?.trackGuidanceTopicSelected?.({ topic: i, status: C });
|
|
4297
|
-
},
|
|
4299
|
+
}, xe = (i) => {
|
|
4298
4300
|
h?.trackConsultationLanguageChanged?.({
|
|
4299
4301
|
previous_language: ta(S),
|
|
4300
4302
|
new_language: ta(i),
|
|
4301
|
-
slots_available:
|
|
4303
|
+
slots_available: Da(w[i]) ? "yes" : "no",
|
|
4302
4304
|
status: C
|
|
4303
|
-
}), V(i),
|
|
4304
|
-
},
|
|
4305
|
+
}), V(i), O(!1);
|
|
4306
|
+
}, Se = qe.find((i) => i.code === S) ?? qe[0];
|
|
4305
4307
|
return /* @__PURE__ */ e.jsx(
|
|
4306
4308
|
"div",
|
|
4307
4309
|
{
|
|
@@ -4332,12 +4334,12 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4332
4334
|
{
|
|
4333
4335
|
type: "button",
|
|
4334
4336
|
className: g.languageDropdownBtn,
|
|
4335
|
-
onClick: () =>
|
|
4337
|
+
onClick: () => O((i) => !i),
|
|
4336
4338
|
"aria-haspopup": "listbox",
|
|
4337
4339
|
"aria-expanded": j,
|
|
4338
4340
|
children: [
|
|
4339
|
-
d?.(
|
|
4340
|
-
/* @__PURE__ */ e.jsx(
|
|
4341
|
+
d?.(Se.labelKey) ?? Se.label,
|
|
4342
|
+
/* @__PURE__ */ e.jsx(Xr, {})
|
|
4341
4343
|
]
|
|
4342
4344
|
}
|
|
4343
4345
|
),
|
|
@@ -4352,10 +4354,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4352
4354
|
g.languageMenuItem,
|
|
4353
4355
|
b ? g.languageMenuItemSelected : ""
|
|
4354
4356
|
].filter(Boolean).join(" "),
|
|
4355
|
-
onClick: () =>
|
|
4357
|
+
onClick: () => xe(i.code),
|
|
4356
4358
|
children: [
|
|
4357
4359
|
d?.(i.labelKey) ?? i.label,
|
|
4358
|
-
b && /* @__PURE__ */ e.jsx(
|
|
4360
|
+
b && /* @__PURE__ */ e.jsx(Ba, {})
|
|
4359
4361
|
]
|
|
4360
4362
|
},
|
|
4361
4363
|
i.code
|
|
@@ -4397,14 +4399,14 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4397
4399
|
] }),
|
|
4398
4400
|
!A && v && /* @__PURE__ */ e.jsxs("div", { className: g.stateMessage, children: [
|
|
4399
4401
|
d?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
4400
|
-
/* @__PURE__ */ e.jsx("button", { type: "button", className: g.retryBtn, onClick:
|
|
4402
|
+
/* @__PURE__ */ e.jsx("button", { type: "button", className: g.retryBtn, onClick: re, children: d?.("planRetry") ?? "Retry" })
|
|
4401
4403
|
] }),
|
|
4402
|
-
!A && !v &&
|
|
4403
|
-
/* @__PURE__ */ e.jsx("span", { className: g.emptyStateIcon, children: /* @__PURE__ */ e.jsx(
|
|
4404
|
+
!A && !v && W.length === 0 && /* @__PURE__ */ e.jsxs("div", { className: g.emptyState, children: [
|
|
4405
|
+
/* @__PURE__ */ e.jsx("span", { className: g.emptyStateIcon, children: /* @__PURE__ */ e.jsx(rn, {}) }),
|
|
4404
4406
|
/* @__PURE__ */ e.jsx("p", { className: g.emptyStateTitle, children: d?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
|
|
4405
4407
|
/* @__PURE__ */ e.jsx("p", { className: g.emptyStateSubtitle, children: d?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
|
|
4406
4408
|
] }),
|
|
4407
|
-
!A && !v &&
|
|
4409
|
+
!A && !v && W.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4408
4410
|
/* @__PURE__ */ e.jsxs("div", { className: g.dateTabs, ref: ue, role: "radiogroup", "aria-label": "Consultation date", children: [
|
|
4409
4411
|
ae && /* @__PURE__ */ e.jsx(
|
|
4410
4412
|
"span",
|
|
@@ -4418,15 +4420,15 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4418
4420
|
"aria-hidden": "true"
|
|
4419
4421
|
}
|
|
4420
4422
|
),
|
|
4421
|
-
|
|
4422
|
-
const b = i.date === B, { dayLabel: f, dayNum:
|
|
4423
|
-
return /* @__PURE__ */ e.jsxs(
|
|
4423
|
+
W.map((i) => {
|
|
4424
|
+
const b = i.date === B, { dayLabel: f, dayNum: he } = eo(i.date);
|
|
4425
|
+
return /* @__PURE__ */ e.jsxs(za, { children: [
|
|
4424
4426
|
/* @__PURE__ */ e.jsxs(
|
|
4425
4427
|
"button",
|
|
4426
4428
|
{
|
|
4427
4429
|
type: "button",
|
|
4428
4430
|
ref: (se) => {
|
|
4429
|
-
|
|
4431
|
+
pe.current[i.date] = se;
|
|
4430
4432
|
},
|
|
4431
4433
|
className: [
|
|
4432
4434
|
g.dateTab,
|
|
@@ -4434,10 +4436,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4434
4436
|
].filter(Boolean).join(" "),
|
|
4435
4437
|
role: "radio",
|
|
4436
4438
|
"aria-checked": b,
|
|
4437
|
-
onClick: () =>
|
|
4439
|
+
onClick: () => me(i.date),
|
|
4438
4440
|
children: [
|
|
4439
4441
|
/* @__PURE__ */ e.jsx("span", { className: g.dateTabLabel, children: d?.(f) ?? f }),
|
|
4440
|
-
/* @__PURE__ */ e.jsx("span", { className: g.dateTabNum, children:
|
|
4442
|
+
/* @__PURE__ */ e.jsx("span", { className: g.dateTabNum, children: he })
|
|
4441
4443
|
]
|
|
4442
4444
|
}
|
|
4443
4445
|
),
|
|
@@ -4446,33 +4448,33 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4446
4448
|
})
|
|
4447
4449
|
] }),
|
|
4448
4450
|
/* @__PURE__ */ e.jsxs("div", { className: g.periodTabs, ref: Ae, role: "tablist", "aria-label": "Time of day", children: [
|
|
4449
|
-
|
|
4451
|
+
be && /* @__PURE__ */ e.jsx(
|
|
4450
4452
|
"span",
|
|
4451
4453
|
{
|
|
4452
4454
|
className: g.periodTabIndicator,
|
|
4453
4455
|
style: {
|
|
4454
|
-
transform: `translateX(${
|
|
4455
|
-
width:
|
|
4456
|
+
transform: `translateX(${be.left}px)`,
|
|
4457
|
+
width: be.width
|
|
4456
4458
|
},
|
|
4457
4459
|
"aria-hidden": "true"
|
|
4458
4460
|
}
|
|
4459
4461
|
),
|
|
4460
|
-
|
|
4461
|
-
const b =
|
|
4462
|
+
te.map((i) => {
|
|
4463
|
+
const b = li[i], f = i === "evening" && R ? "planPeriodEveningNight" : si[i];
|
|
4462
4464
|
return /* @__PURE__ */ e.jsxs(
|
|
4463
4465
|
"button",
|
|
4464
4466
|
{
|
|
4465
|
-
ref: (
|
|
4466
|
-
|
|
4467
|
+
ref: (he) => {
|
|
4468
|
+
Re.current[i] = he;
|
|
4467
4469
|
},
|
|
4468
4470
|
type: "button",
|
|
4469
4471
|
className: [
|
|
4470
4472
|
g.periodTab,
|
|
4471
|
-
i ===
|
|
4473
|
+
i === $ ? g.periodTabSelected : ""
|
|
4472
4474
|
].filter(Boolean).join(" "),
|
|
4473
4475
|
role: "tab",
|
|
4474
|
-
"aria-selected": i ===
|
|
4475
|
-
onClick: () =>
|
|
4476
|
+
"aria-selected": i === $,
|
|
4477
|
+
onClick: () => fe(i),
|
|
4476
4478
|
children: [
|
|
4477
4479
|
/* @__PURE__ */ e.jsx(b, {}),
|
|
4478
4480
|
d?.(f) ?? (i === "evening" && R ? "Evening/Night" : i.charAt(0).toUpperCase() + i.slice(1))
|
|
@@ -4488,7 +4490,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4488
4490
|
className: g.timeGrid,
|
|
4489
4491
|
role: "radiogroup",
|
|
4490
4492
|
"aria-label": "Consultation time",
|
|
4491
|
-
children:
|
|
4493
|
+
children: ne.map((i, b) => /* @__PURE__ */ e.jsx(
|
|
4492
4494
|
"button",
|
|
4493
4495
|
{
|
|
4494
4496
|
type: "button",
|
|
@@ -4504,12 +4506,12 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4504
4506
|
`${i.start}-${b}`
|
|
4505
4507
|
))
|
|
4506
4508
|
},
|
|
4507
|
-
`${B}-${
|
|
4509
|
+
`${B}-${$}`
|
|
4508
4510
|
)
|
|
4509
4511
|
] }),
|
|
4510
4512
|
!P && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4511
4513
|
/* @__PURE__ */ e.jsx("p", { className: g.sectionHeading, children: d?.("planGuidanceHeading") ?? "What would you like guidance on?" }),
|
|
4512
|
-
/* @__PURE__ */ e.jsx("div", { className: g.topicGrid, role: "radiogroup", "aria-label": "Guidance topic", children:
|
|
4514
|
+
/* @__PURE__ */ e.jsx("div", { className: g.topicGrid, role: "radiogroup", "aria-label": "Guidance topic", children: to.map((i) => /* @__PURE__ */ e.jsx(
|
|
4513
4515
|
"button",
|
|
4514
4516
|
{
|
|
4515
4517
|
type: "button",
|
|
@@ -4546,9 +4548,9 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4546
4548
|
"button",
|
|
4547
4549
|
{
|
|
4548
4550
|
type: "button",
|
|
4549
|
-
className: [g.proceedBtn,
|
|
4550
|
-
disabled: !
|
|
4551
|
-
onClick:
|
|
4551
|
+
className: [g.proceedBtn, ve ? "" : g.proceedBtnDisabled].filter(Boolean).join(" "),
|
|
4552
|
+
disabled: !ve,
|
|
4553
|
+
onClick: Pe,
|
|
4552
4554
|
children: P ? d?.("planBookSlot") ?? "Book Slot" : d?.("planProceedToPayment") ?? "Proceed to payment"
|
|
4553
4555
|
}
|
|
4554
4556
|
)
|
|
@@ -4556,7 +4558,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4556
4558
|
] })
|
|
4557
4559
|
}
|
|
4558
4560
|
);
|
|
4559
|
-
},
|
|
4561
|
+
}, ui = [
|
|
4560
4562
|
{
|
|
4561
4563
|
id: "jyoti",
|
|
4562
4564
|
name: "planAstrologerNameJyoti",
|
|
@@ -4584,7 +4586,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4584
4586
|
experience: "planAstrologerExpNeeraj",
|
|
4585
4587
|
certifications: ["planAstrologerCertBhuCertified", "planAstrologerCertMantraRudraksha"]
|
|
4586
4588
|
}
|
|
4587
|
-
],
|
|
4589
|
+
], pi = (t) => [
|
|
4588
4590
|
{
|
|
4589
4591
|
id: "kundli-report",
|
|
4590
4592
|
title: "planNameBasic",
|
|
@@ -4610,11 +4612,11 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4610
4612
|
{ text: "planFeatureRealTimeAnswers", included: !0 },
|
|
4611
4613
|
{ text: "planFeatureTailoredRemedies", included: !0 }
|
|
4612
4614
|
],
|
|
4613
|
-
astrologers:
|
|
4615
|
+
astrologers: ui.filter(
|
|
4614
4616
|
(n) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(n.id)
|
|
4615
4617
|
)
|
|
4616
4618
|
}
|
|
4617
|
-
],
|
|
4619
|
+
], mi = ({
|
|
4618
4620
|
isOpen: t,
|
|
4619
4621
|
onClose: n,
|
|
4620
4622
|
selectedPlan: s,
|
|
@@ -4625,7 +4627,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4625
4627
|
analytics: P,
|
|
4626
4628
|
enableConsultationScheduling: k
|
|
4627
4629
|
}) => {
|
|
4628
|
-
const Y = Ie(), M = Y?.config.isGlobal ?? !0, R = k ?? Y?.config.enableConsultationScheduling ?? !1, m = d ??
|
|
4630
|
+
const Y = Ie(), M = Y?.config.isGlobal ?? !0, R = k ?? Y?.config.enableConsultationScheduling ?? !1, m = d ?? pi(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
4631
|
q(() => {
|
|
4630
4632
|
if (t) {
|
|
4631
4633
|
if (!s) {
|
|
@@ -4639,7 +4641,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4639
4641
|
} else
|
|
4640
4642
|
v.current = !1;
|
|
4641
4643
|
}, [t, m, s, p, P]);
|
|
4642
|
-
const
|
|
4644
|
+
const ie = () => {
|
|
4643
4645
|
P?.trackPlanPageClosed?.(), n();
|
|
4644
4646
|
};
|
|
4645
4647
|
return q(() => {
|
|
@@ -4667,7 +4669,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4667
4669
|
"button",
|
|
4668
4670
|
{
|
|
4669
4671
|
className: x.backBtn,
|
|
4670
|
-
onClick:
|
|
4672
|
+
onClick: ie,
|
|
4671
4673
|
"aria-label": "Go back",
|
|
4672
4674
|
type: "button",
|
|
4673
4675
|
children: /* @__PURE__ */ e.jsx(sa, {})
|
|
@@ -4675,10 +4677,10 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4675
4677
|
),
|
|
4676
4678
|
/* @__PURE__ */ e.jsx("h2", { className: x.titleFull, children: _?.("planSheetTitle") ?? "Choose Your Kundli Plan" })
|
|
4677
4679
|
] }) : /* @__PURE__ */ e.jsx(
|
|
4678
|
-
|
|
4680
|
+
Jn,
|
|
4679
4681
|
{
|
|
4680
4682
|
title: _?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
4681
|
-
onBack:
|
|
4683
|
+
onBack: ie
|
|
4682
4684
|
}
|
|
4683
4685
|
),
|
|
4684
4686
|
/* @__PURE__ */ e.jsx(
|
|
@@ -4689,13 +4691,13 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4689
4691
|
role: "radiogroup",
|
|
4690
4692
|
"aria-label": "Kundli plans",
|
|
4691
4693
|
children: m.map((S) => /* @__PURE__ */ e.jsx(
|
|
4692
|
-
|
|
4694
|
+
Zn,
|
|
4693
4695
|
{
|
|
4694
4696
|
plan: S,
|
|
4695
4697
|
isSelected: S.id === C,
|
|
4696
4698
|
t: _,
|
|
4697
4699
|
onSelect: (V) => {
|
|
4698
|
-
const j = m.find((
|
|
4700
|
+
const j = m.find((O) => O.id === V);
|
|
4699
4701
|
j && (P?.trackPlanSelected?.({
|
|
4700
4702
|
planId: j.id,
|
|
4701
4703
|
planName: j.title,
|
|
@@ -4744,7 +4746,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4744
4746
|
}
|
|
4745
4747
|
),
|
|
4746
4748
|
R && s?.astrologers && s.astrologers.length > 0 && /* @__PURE__ */ e.jsx(
|
|
4747
|
-
|
|
4749
|
+
di,
|
|
4748
4750
|
{
|
|
4749
4751
|
isOpen: y,
|
|
4750
4752
|
onClose: () => w(!1),
|
|
@@ -4764,7 +4766,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4764
4766
|
]
|
|
4765
4767
|
}
|
|
4766
4768
|
) : null;
|
|
4767
|
-
},
|
|
4769
|
+
}, fi = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", hi = (t, n) => xa[t]?.[n] ?? n, gi = (t, n) => t && ra.includes(t) ? t : n ? "+1" : "+91", bi = {
|
|
4768
4770
|
fullName: "",
|
|
4769
4771
|
phone: "",
|
|
4770
4772
|
phoneCountryCode: "",
|
|
@@ -4775,7 +4777,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4775
4777
|
birthTime: "",
|
|
4776
4778
|
birthTimeUnknown: !1,
|
|
4777
4779
|
birthPlace: ""
|
|
4778
|
-
},
|
|
4780
|
+
}, xi = ({
|
|
4779
4781
|
className: t = "",
|
|
4780
4782
|
locale: n,
|
|
4781
4783
|
showLanguageSelector: s = !0,
|
|
@@ -4791,15 +4793,15 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4791
4793
|
googleMapsAutocompleteEnabled: m,
|
|
4792
4794
|
analytics: C
|
|
4793
4795
|
}) => {
|
|
4794
|
-
const A = Ie(), z = wa(), v = A !== null, y = v ? A.locale : n, w = y ?? z?.locale ?? "en", [
|
|
4796
|
+
const A = Ie(), z = wa(), v = A !== null, y = v ? A.locale : n, w = y ?? z?.locale ?? "en", [ie, S] = I(w), V = v ? A.locale : ie, j = v ? A.setLocale : S, [O, N] = I(!1), G = U(null), Z = U(
|
|
4795
4797
|
y
|
|
4796
|
-
), ee =
|
|
4798
|
+
), ee = U(
|
|
4797
4799
|
z?.locale
|
|
4798
4800
|
);
|
|
4799
4801
|
q(() => {
|
|
4800
4802
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
4801
4803
|
}, []);
|
|
4802
|
-
const B = (f) =>
|
|
4804
|
+
const B = (f) => hi(V, f);
|
|
4803
4805
|
q(() => {
|
|
4804
4806
|
y && Z.current !== y && j(y), Z.current = y;
|
|
4805
4807
|
}, [y, j]), q(() => {
|
|
@@ -4807,69 +4809,69 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4807
4809
|
const f = z?.locale;
|
|
4808
4810
|
f && ee.current !== f && j(f), ee.current = f;
|
|
4809
4811
|
}, [z?.locale, y, j]);
|
|
4810
|
-
const [D,
|
|
4811
|
-
...
|
|
4812
|
+
const [D, $] = I({
|
|
4813
|
+
...bi,
|
|
4812
4814
|
...d,
|
|
4813
4815
|
phone: d?.phone ?? ""
|
|
4814
|
-
}), Q = v ? A?.config.isGlobal ?? !0 : !0, E = v ? A.formValues : D,
|
|
4815
|
-
() =>
|
|
4816
|
-
),
|
|
4816
|
+
}), Q = v ? A?.config.isGlobal ?? !0 : !0, E = v ? A.formValues : D, _e = v ? A.setFormValues : $, [le, ue] = I(
|
|
4817
|
+
() => gi(E.phoneCountryCode, Q)
|
|
4818
|
+
), pe = U(
|
|
4817
4819
|
!!(E.phoneCountryCode && ra.includes(E.phoneCountryCode))
|
|
4818
|
-
), ae =
|
|
4820
|
+
), ae = U(!1), ge = je((f) => {
|
|
4819
4821
|
ae.current = !0, ue(f);
|
|
4820
|
-
}, []), Ae =
|
|
4822
|
+
}, []), Ae = U(!0);
|
|
4821
4823
|
q(() => {
|
|
4822
4824
|
if (Ae.current) {
|
|
4823
4825
|
Ae.current = !1;
|
|
4824
4826
|
return;
|
|
4825
4827
|
}
|
|
4826
|
-
|
|
4828
|
+
pe.current || ae.current || ue(Q ? "+1" : "+91");
|
|
4827
4829
|
}, [Q]), q(() => {
|
|
4828
4830
|
if (!v || ae.current) return;
|
|
4829
4831
|
const f = E.phoneCountryCode;
|
|
4830
|
-
f && ra.includes(f) && f !==
|
|
4832
|
+
f && ra.includes(f) && f !== le && (pe.current = !0, ue(f));
|
|
4831
4833
|
}, [v, E.phoneCountryCode]);
|
|
4832
|
-
const
|
|
4834
|
+
const Re = v ? A.goToPage : p, be = v ? A.onProceed : h, de = v ? A.onProceedGuidance : _, W = v ? A.config.proceedHref : P, re = v ? A.config.originalPriceLabel : k, X = v ? A.config.discountedPriceLabel : Y, te = v ? A.config.showLanguageSelector ?? !0 : s, ne = (v ? A?.config?.analytics : C) ?? C;
|
|
4833
4835
|
q(() => {
|
|
4834
|
-
if (
|
|
4835
|
-
const f = (
|
|
4836
|
-
|
|
4836
|
+
if (!O) return;
|
|
4837
|
+
const f = (he) => {
|
|
4838
|
+
G.current && !G.current.contains(he.target) && N(!1);
|
|
4837
4839
|
};
|
|
4838
4840
|
return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
|
|
4839
|
-
}, [
|
|
4840
|
-
const [
|
|
4841
|
-
|
|
4842
|
-
}, []),
|
|
4841
|
+
}, [O]);
|
|
4842
|
+
const [ve, me] = I(!1), [fe, Ne] = I(null), Pe = U(null), ke = je((f) => {
|
|
4843
|
+
Pe.current = f, me(!0);
|
|
4844
|
+
}, []), xe = U(!1);
|
|
4843
4845
|
q(() => {
|
|
4844
|
-
if (
|
|
4846
|
+
if (xe.current || !v || !A?.config.autoOpenPlanSheet || A?.config.variant !== "v1")
|
|
4845
4847
|
return;
|
|
4846
|
-
|
|
4848
|
+
xe.current = !0;
|
|
4847
4849
|
const f = (E.phone ?? "").trim();
|
|
4848
4850
|
ke({
|
|
4849
4851
|
...E,
|
|
4850
|
-
phone: f && `${
|
|
4852
|
+
phone: f && `${le}-${f}`
|
|
4851
4853
|
});
|
|
4852
|
-
}, [v, A?.config.autoOpenPlanSheet, A?.config.variant, E,
|
|
4853
|
-
const
|
|
4854
|
-
if (!
|
|
4855
|
-
|
|
4856
|
-
planId:
|
|
4857
|
-
planName:
|
|
4858
|
-
price:
|
|
4854
|
+
}, [v, A?.config.autoOpenPlanSheet, A?.config.variant, E, le, ke]);
|
|
4855
|
+
const Se = je(() => {
|
|
4856
|
+
if (!Pe.current || !fe) return;
|
|
4857
|
+
ne?.trackPlanProceedClicked?.({
|
|
4858
|
+
planId: fe.id,
|
|
4859
|
+
planName: fe.title,
|
|
4860
|
+
price: fe.price,
|
|
4859
4861
|
currency: Q ? "USD" : "INR"
|
|
4860
4862
|
});
|
|
4861
|
-
const f = { ...
|
|
4862
|
-
|
|
4863
|
-
}, [
|
|
4863
|
+
const f = { ...Pe.current, _selectedPlan: fe };
|
|
4864
|
+
fe.id === La && de ? de(f) : be?.(f), me(!1), Pe.current = null;
|
|
4865
|
+
}, [fe, be, de]), i = A?.config.imageComponent ?? Ye, b = te ? /* @__PURE__ */ e.jsxs("div", { className: Le.langDropdownWrap, ref: G, children: [
|
|
4864
4866
|
/* @__PURE__ */ e.jsxs(
|
|
4865
4867
|
"button",
|
|
4866
4868
|
{
|
|
4867
4869
|
type: "button",
|
|
4868
4870
|
className: Le.langTrigger,
|
|
4869
4871
|
onClick: () => {
|
|
4870
|
-
|
|
4872
|
+
ne?.trackLanguageClickedFe?.({ language: V }), N((f) => !f);
|
|
4871
4873
|
},
|
|
4872
|
-
"aria-expanded":
|
|
4874
|
+
"aria-expanded": O,
|
|
4873
4875
|
"aria-haspopup": "listbox",
|
|
4874
4876
|
id: "kundli-form-lang",
|
|
4875
4877
|
"aria-label": B("language"),
|
|
@@ -4877,7 +4879,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4877
4879
|
/* @__PURE__ */ e.jsx(
|
|
4878
4880
|
i,
|
|
4879
4881
|
{
|
|
4880
|
-
src:
|
|
4882
|
+
src: fi,
|
|
4881
4883
|
alt: "",
|
|
4882
4884
|
className: Le.langIcon,
|
|
4883
4885
|
width: 16,
|
|
@@ -4889,7 +4891,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4889
4891
|
]
|
|
4890
4892
|
}
|
|
4891
4893
|
),
|
|
4892
|
-
|
|
4894
|
+
O && /* @__PURE__ */ e.jsx(
|
|
4893
4895
|
"ul",
|
|
4894
4896
|
{
|
|
4895
4897
|
className: Le.langMenu,
|
|
@@ -4904,7 +4906,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4904
4906
|
"aria-selected": f === V,
|
|
4905
4907
|
className: Le.langOption,
|
|
4906
4908
|
onClick: () => {
|
|
4907
|
-
|
|
4909
|
+
ne?.trackLanguageChangedFe?.({ newLanguage: f }), j(f), N(!1);
|
|
4908
4910
|
},
|
|
4909
4911
|
children: ka[f]
|
|
4910
4912
|
},
|
|
@@ -4915,7 +4917,7 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4915
4917
|
] }) : null;
|
|
4916
4918
|
return /* @__PURE__ */ e.jsxs("div", { className: `${Le.container} ${t}`, children: [
|
|
4917
4919
|
/* @__PURE__ */ e.jsx(
|
|
4918
|
-
|
|
4920
|
+
zr,
|
|
4919
4921
|
{
|
|
4920
4922
|
t: B,
|
|
4921
4923
|
logoUrl: v ? A.config.logoUrl : void 0,
|
|
@@ -4925,57 +4927,57 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
4925
4927
|
),
|
|
4926
4928
|
/* @__PURE__ */ e.jsx("div", { className: Le.headerSeparator, "aria-hidden": !0 }),
|
|
4927
4929
|
/* @__PURE__ */ e.jsxs("main", { className: Le.main, children: [
|
|
4928
|
-
/* @__PURE__ */ e.jsx(
|
|
4930
|
+
/* @__PURE__ */ e.jsx(jt, { t: B, onBack: Re }),
|
|
4929
4931
|
/* @__PURE__ */ e.jsx(
|
|
4930
|
-
|
|
4932
|
+
Er,
|
|
4931
4933
|
{
|
|
4932
4934
|
t: B,
|
|
4933
4935
|
values: E,
|
|
4934
|
-
onChange:
|
|
4936
|
+
onChange: _e,
|
|
4935
4937
|
googleMapsApiKey: M,
|
|
4936
4938
|
atlasSearchLocalities: R,
|
|
4937
4939
|
googleMapsAutocompleteEnabled: m,
|
|
4938
|
-
phoneIsdCode:
|
|
4939
|
-
onPhoneIsdCodeChange:
|
|
4940
|
+
phoneIsdCode: le,
|
|
4941
|
+
onPhoneIsdCodeChange: ge,
|
|
4940
4942
|
showV1ExtraFields: v ? A?.config.variant === "v1" : !1,
|
|
4941
|
-
analytics:
|
|
4943
|
+
analytics: ne
|
|
4942
4944
|
}
|
|
4943
4945
|
)
|
|
4944
4946
|
] }),
|
|
4945
4947
|
/* @__PURE__ */ e.jsx(
|
|
4946
|
-
|
|
4948
|
+
Vr,
|
|
4947
4949
|
{
|
|
4948
4950
|
t: B,
|
|
4949
4951
|
values: E,
|
|
4950
|
-
phoneIsdCode:
|
|
4951
|
-
onProceed:
|
|
4952
|
-
onProceedGuidance:
|
|
4953
|
-
href:
|
|
4954
|
-
originalPriceLabel:
|
|
4952
|
+
phoneIsdCode: le,
|
|
4953
|
+
onProceed: be,
|
|
4954
|
+
onProceedGuidance: de,
|
|
4955
|
+
href: W,
|
|
4956
|
+
originalPriceLabel: re,
|
|
4955
4957
|
discountedPriceLabel: X,
|
|
4956
|
-
analytics:
|
|
4958
|
+
analytics: ne,
|
|
4957
4959
|
showPlanSheet: ke,
|
|
4958
|
-
confirmPlan:
|
|
4959
|
-
planSheetOpen:
|
|
4960
|
-
selectedPlan:
|
|
4960
|
+
confirmPlan: Se,
|
|
4961
|
+
planSheetOpen: ve,
|
|
4962
|
+
selectedPlan: fe
|
|
4961
4963
|
}
|
|
4962
4964
|
),
|
|
4963
4965
|
A?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
|
|
4964
|
-
|
|
4966
|
+
mi,
|
|
4965
4967
|
{
|
|
4966
|
-
isOpen:
|
|
4967
|
-
onClose: () =>
|
|
4968
|
-
selectedPlan:
|
|
4968
|
+
isOpen: ve,
|
|
4969
|
+
onClose: () => me(!1),
|
|
4970
|
+
selectedPlan: fe,
|
|
4969
4971
|
onSelectPlan: Ne,
|
|
4970
4972
|
onProceed: () => {
|
|
4971
|
-
|
|
4973
|
+
Se?.();
|
|
4972
4974
|
},
|
|
4973
4975
|
t: B,
|
|
4974
|
-
analytics:
|
|
4976
|
+
analytics: ne
|
|
4975
4977
|
}
|
|
4976
4978
|
)
|
|
4977
4979
|
] });
|
|
4978
|
-
},
|
|
4980
|
+
}, Si = {
|
|
4979
4981
|
banner_clicked_fe: "banner_clicked_fe",
|
|
4980
4982
|
primary_cta_clicked_fe: "primary_cta_clicked_fe",
|
|
4981
4983
|
language_changed_fe: "language_changed_fe",
|
|
@@ -5048,34 +5050,34 @@ const wr = (t, n) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
5048
5050
|
kundli_view_sample_image_closed: "kundli_view_sample_image_closed"
|
|
5049
5051
|
};
|
|
5050
5052
|
export {
|
|
5051
|
-
|
|
5053
|
+
di as C,
|
|
5052
5054
|
Ye as D,
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5055
|
+
jt as F,
|
|
5056
|
+
yi as I,
|
|
5057
|
+
Si as K,
|
|
5056
5058
|
ka as L,
|
|
5057
|
-
|
|
5059
|
+
La as P,
|
|
5058
5060
|
Pa as S,
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
+
Er as U,
|
|
5062
|
+
ja as a,
|
|
5061
5063
|
ia as b,
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
+
xi as c,
|
|
5065
|
+
Ti as d,
|
|
5064
5066
|
Tt as e,
|
|
5065
5067
|
Pt as f,
|
|
5066
|
-
|
|
5068
|
+
vt as g,
|
|
5067
5069
|
Ie as h,
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5070
|
+
vi as i,
|
|
5071
|
+
Pi as j,
|
|
5072
|
+
pi as k,
|
|
5071
5073
|
e as l,
|
|
5072
|
-
|
|
5074
|
+
zr as m,
|
|
5073
5075
|
sa as n,
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5076
|
+
Vr as o,
|
|
5077
|
+
mi as p,
|
|
5078
|
+
Ai as r,
|
|
5079
|
+
Ca as s,
|
|
5078
5080
|
xa as t,
|
|
5079
5081
|
wa as u
|
|
5080
5082
|
};
|
|
5081
|
-
//# sourceMappingURL=analytics-
|
|
5083
|
+
//# sourceMappingURL=analytics-D3A616My.js.map
|