@srimandir/kundli-matching-generator 1.0.18 → 1.0.19
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./styles.js";
|
|
2
|
-
import ft, { useRef as K, useState as
|
|
2
|
+
import ft, { useRef as K, useState as $, useEffect as q, useCallback as Ne, useMemo as ze, useContext as Ke, createContext as _t } from "react";
|
|
3
3
|
import { PageHeader as Ht, FAQAccordion as Vt, FormField as ot, FooterShell as qt, CircularMarquee as Yt, FooterCTAButton as Jt, footerShellStyles as pe } from "@srimandir/astrology-common";
|
|
4
4
|
var Ee = { exports: {} }, je = {};
|
|
5
5
|
var ct;
|
|
@@ -7,12 +7,12 @@ function Qt() {
|
|
|
7
7
|
if (ct) return je;
|
|
8
8
|
ct = 1;
|
|
9
9
|
var t = ft, s = /* @__PURE__ */ Symbol.for("react.element"), l = /* @__PURE__ */ Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, c = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
10
|
-
function o(
|
|
11
|
-
var b, g = {},
|
|
12
|
-
w !== void 0 && (
|
|
10
|
+
function o(f, p, w) {
|
|
11
|
+
var b, g = {}, j = null, B = null;
|
|
12
|
+
w !== void 0 && (j = "" + w), p.key !== void 0 && (j = "" + p.key), p.ref !== void 0 && (B = p.ref);
|
|
13
13
|
for (b in p) r.call(p, b) && !h.hasOwnProperty(b) && (g[b] = p[b]);
|
|
14
|
-
if (
|
|
15
|
-
return { $$typeof: s, type:
|
|
14
|
+
if (f && f.defaultProps) for (b in p = f.defaultProps, p) g[b] === void 0 && (g[b] = p[b]);
|
|
15
|
+
return { $$typeof: s, type: f, key: j, ref: B, props: g, _owner: c.current };
|
|
16
16
|
}
|
|
17
17
|
return je.Fragment = l, je.jsx = o, je.jsxs = o, je;
|
|
18
18
|
}
|
|
@@ -20,39 +20,39 @@ var ke = {};
|
|
|
20
20
|
var lt;
|
|
21
21
|
function Xt() {
|
|
22
22
|
return lt || (lt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
23
|
-
var t = ft, s = /* @__PURE__ */ Symbol.for("react.element"), l = /* @__PURE__ */ Symbol.for("react.portal"), r = /* @__PURE__ */ Symbol.for("react.fragment"), c = /* @__PURE__ */ Symbol.for("react.strict_mode"), h = /* @__PURE__ */ Symbol.for("react.profiler"), o = /* @__PURE__ */ Symbol.for("react.provider"),
|
|
24
|
-
function
|
|
23
|
+
var t = ft, s = /* @__PURE__ */ Symbol.for("react.element"), l = /* @__PURE__ */ Symbol.for("react.portal"), r = /* @__PURE__ */ Symbol.for("react.fragment"), c = /* @__PURE__ */ Symbol.for("react.strict_mode"), h = /* @__PURE__ */ Symbol.for("react.profiler"), o = /* @__PURE__ */ Symbol.for("react.provider"), f = /* @__PURE__ */ Symbol.for("react.context"), p = /* @__PURE__ */ Symbol.for("react.forward_ref"), w = /* @__PURE__ */ Symbol.for("react.suspense"), b = /* @__PURE__ */ Symbol.for("react.suspense_list"), g = /* @__PURE__ */ Symbol.for("react.memo"), j = /* @__PURE__ */ Symbol.for("react.lazy"), B = /* @__PURE__ */ Symbol.for("react.offscreen"), x = Symbol.iterator, R = "@@iterator";
|
|
24
|
+
function H(a) {
|
|
25
25
|
if (a === null || typeof a != "object")
|
|
26
26
|
return null;
|
|
27
|
-
var n =
|
|
27
|
+
var n = x && a[x] || a[R];
|
|
28
28
|
return typeof n == "function" ? n : null;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
31
|
-
function
|
|
30
|
+
var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
31
|
+
function S(a) {
|
|
32
32
|
{
|
|
33
33
|
for (var n = arguments.length, d = new Array(n > 1 ? n - 1 : 0), y = 1; y < n; y++)
|
|
34
34
|
d[y - 1] = arguments[y];
|
|
35
|
-
|
|
35
|
+
T("error", a, d);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function T(a, n, d) {
|
|
39
39
|
{
|
|
40
|
-
var y =
|
|
40
|
+
var y = D.ReactDebugCurrentFrame, E = y.getStackAddendum();
|
|
41
41
|
E !== "" && (n += "%s", d = d.concat([E]));
|
|
42
|
-
var
|
|
43
|
-
return String(
|
|
42
|
+
var L = d.map(function(I) {
|
|
43
|
+
return String(I);
|
|
44
44
|
});
|
|
45
|
-
|
|
45
|
+
L.unshift("Warning: " + n), Function.prototype.apply.call(console[a], console, L);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
var
|
|
49
|
-
|
|
48
|
+
var k = !1, O = !1, U = !1, _ = !1, G = !1, F;
|
|
49
|
+
F = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
50
50
|
function re(a) {
|
|
51
|
-
return !!(typeof a == "string" || typeof a == "function" || a === r || a === h ||
|
|
51
|
+
return !!(typeof a == "string" || typeof a == "function" || a === r || a === h || G || a === c || a === w || a === b || _ || a === B || k || O || U || typeof a == "object" && a !== null && (a.$$typeof === j || a.$$typeof === g || a.$$typeof === o || a.$$typeof === f || a.$$typeof === p || // This needs to include all possible module reference object
|
|
52
52
|
// types supported by any Flight configuration anywhere since
|
|
53
53
|
// we don't know which Flight build this will end up being used
|
|
54
54
|
// with.
|
|
55
|
-
a.$$typeof ===
|
|
55
|
+
a.$$typeof === F || a.getModuleId !== void 0));
|
|
56
56
|
}
|
|
57
57
|
function ee(a, n, d) {
|
|
58
58
|
var y = a.displayName;
|
|
@@ -64,10 +64,10 @@ function Xt() {
|
|
|
64
64
|
function v(a) {
|
|
65
65
|
return a.displayName || "Context";
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function M(a) {
|
|
68
68
|
if (a == null)
|
|
69
69
|
return null;
|
|
70
|
-
if (typeof a.tag == "number" &&
|
|
70
|
+
if (typeof a.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
|
|
71
71
|
return a.displayName || a.name || null;
|
|
72
72
|
if (typeof a == "string")
|
|
73
73
|
return a;
|
|
@@ -87,7 +87,7 @@ function Xt() {
|
|
|
87
87
|
}
|
|
88
88
|
if (typeof a == "object")
|
|
89
89
|
switch (a.$$typeof) {
|
|
90
|
-
case
|
|
90
|
+
case f:
|
|
91
91
|
var n = a;
|
|
92
92
|
return v(n) + ".Consumer";
|
|
93
93
|
case o:
|
|
@@ -97,11 +97,11 @@ function Xt() {
|
|
|
97
97
|
return ee(a, a.render, "ForwardRef");
|
|
98
98
|
case g:
|
|
99
99
|
var y = a.displayName || null;
|
|
100
|
-
return y !== null ? y :
|
|
101
|
-
case
|
|
102
|
-
var E = a,
|
|
100
|
+
return y !== null ? y : M(a.type) || "Memo";
|
|
101
|
+
case j: {
|
|
102
|
+
var E = a, L = E._payload, I = E._init;
|
|
103
103
|
try {
|
|
104
|
-
return
|
|
104
|
+
return M(I(L));
|
|
105
105
|
} catch {
|
|
106
106
|
return null;
|
|
107
107
|
}
|
|
@@ -110,9 +110,9 @@ function Xt() {
|
|
|
110
110
|
return null;
|
|
111
111
|
}
|
|
112
112
|
var te = Object.assign, se = 0, ue, we, le, Pe, ye, Te, m;
|
|
113
|
-
function
|
|
113
|
+
function C() {
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
C.__reactDisabledLog = !0;
|
|
116
116
|
function J() {
|
|
117
117
|
{
|
|
118
118
|
if (se === 0) {
|
|
@@ -120,7 +120,7 @@ function Xt() {
|
|
|
120
120
|
var a = {
|
|
121
121
|
configurable: !0,
|
|
122
122
|
enumerable: !0,
|
|
123
|
-
value:
|
|
123
|
+
value: C,
|
|
124
124
|
writable: !0
|
|
125
125
|
};
|
|
126
126
|
Object.defineProperties(console, {
|
|
@@ -168,10 +168,10 @@ function Xt() {
|
|
|
168
168
|
})
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
|
-
se < 0 &&
|
|
171
|
+
se < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
var me =
|
|
174
|
+
var me = D.ReactCurrentDispatcher, ve;
|
|
175
175
|
function Ce(a, n, d) {
|
|
176
176
|
{
|
|
177
177
|
if (ve === void 0)
|
|
@@ -202,31 +202,31 @@ function Xt() {
|
|
|
202
202
|
Oe = !0;
|
|
203
203
|
var E = Error.prepareStackTrace;
|
|
204
204
|
Error.prepareStackTrace = void 0;
|
|
205
|
-
var
|
|
206
|
-
|
|
205
|
+
var L;
|
|
206
|
+
L = me.current, me.current = null, J();
|
|
207
207
|
try {
|
|
208
208
|
if (n) {
|
|
209
|
-
var
|
|
209
|
+
var I = function() {
|
|
210
210
|
throw Error();
|
|
211
211
|
};
|
|
212
|
-
if (Object.defineProperty(
|
|
212
|
+
if (Object.defineProperty(I.prototype, "props", {
|
|
213
213
|
set: function() {
|
|
214
214
|
throw Error();
|
|
215
215
|
}
|
|
216
216
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
217
217
|
try {
|
|
218
|
-
Reflect.construct(
|
|
218
|
+
Reflect.construct(I, []);
|
|
219
219
|
} catch (Z) {
|
|
220
220
|
y = Z;
|
|
221
221
|
}
|
|
222
|
-
Reflect.construct(a, [],
|
|
222
|
+
Reflect.construct(a, [], I);
|
|
223
223
|
} else {
|
|
224
224
|
try {
|
|
225
|
-
|
|
225
|
+
I.call();
|
|
226
226
|
} catch (Z) {
|
|
227
227
|
y = Z;
|
|
228
228
|
}
|
|
229
|
-
a.call(
|
|
229
|
+
a.call(I.prototype);
|
|
230
230
|
}
|
|
231
231
|
} else {
|
|
232
232
|
try {
|
|
@@ -238,25 +238,25 @@ function Xt() {
|
|
|
238
238
|
}
|
|
239
239
|
} catch (Z) {
|
|
240
240
|
if (Z && y && typeof Z.stack == "string") {
|
|
241
|
-
for (var
|
|
241
|
+
for (var P = Z.stack.split(`
|
|
242
242
|
`), Q = y.stack.split(`
|
|
243
|
-
`),
|
|
244
|
-
|
|
245
|
-
for (;
|
|
246
|
-
if (
|
|
247
|
-
if (
|
|
243
|
+
`), V = P.length - 1, Y = Q.length - 1; V >= 1 && Y >= 0 && P[V] !== Q[Y]; )
|
|
244
|
+
Y--;
|
|
245
|
+
for (; V >= 1 && Y >= 0; V--, Y--)
|
|
246
|
+
if (P[V] !== Q[Y]) {
|
|
247
|
+
if (V !== 1 || Y !== 1)
|
|
248
248
|
do
|
|
249
|
-
if (
|
|
249
|
+
if (V--, Y--, Y < 0 || P[V] !== Q[Y]) {
|
|
250
250
|
var ae = `
|
|
251
|
-
` +
|
|
251
|
+
` + P[V].replace(" at new ", " at ");
|
|
252
252
|
return a.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", a.displayName)), typeof a == "function" && Ie.set(a, ae), ae;
|
|
253
253
|
}
|
|
254
|
-
while (
|
|
254
|
+
while (V >= 1 && Y >= 0);
|
|
255
255
|
break;
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
} finally {
|
|
259
|
-
Oe = !1, me.current =
|
|
259
|
+
Oe = !1, me.current = L, ne(), Error.prepareStackTrace = E;
|
|
260
260
|
}
|
|
261
261
|
var fe = a ? a.displayName || a.name : "", he = fe ? Ce(fe) : "";
|
|
262
262
|
return typeof a == "function" && Ie.set(a, he), he;
|
|
@@ -287,17 +287,17 @@ function Xt() {
|
|
|
287
287
|
return jt(a.render);
|
|
288
288
|
case g:
|
|
289
289
|
return Se(a.type, n, d);
|
|
290
|
-
case
|
|
291
|
-
var y = a, E = y._payload,
|
|
290
|
+
case j: {
|
|
291
|
+
var y = a, E = y._payload, L = y._init;
|
|
292
292
|
try {
|
|
293
|
-
return Se(
|
|
293
|
+
return Se(L(E), n, d);
|
|
294
294
|
} catch {
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
return "";
|
|
299
299
|
}
|
|
300
|
-
var xe = Object.prototype.hasOwnProperty, Ve = {}, qe =
|
|
300
|
+
var xe = Object.prototype.hasOwnProperty, Ve = {}, qe = D.ReactDebugCurrentFrame;
|
|
301
301
|
function Re(a) {
|
|
302
302
|
if (a) {
|
|
303
303
|
var n = a._owner, d = Se(a.type, a._source, n ? n.type : null);
|
|
@@ -307,20 +307,20 @@ function Xt() {
|
|
|
307
307
|
}
|
|
308
308
|
function Nt(a, n, d, y, E) {
|
|
309
309
|
{
|
|
310
|
-
var
|
|
311
|
-
for (var
|
|
312
|
-
if (
|
|
313
|
-
var
|
|
310
|
+
var L = Function.call.bind(xe);
|
|
311
|
+
for (var I in a)
|
|
312
|
+
if (L(a, I)) {
|
|
313
|
+
var P = void 0;
|
|
314
314
|
try {
|
|
315
|
-
if (typeof a[
|
|
316
|
-
var Q = Error((y || "React class") + ": " + d + " type `" +
|
|
315
|
+
if (typeof a[I] != "function") {
|
|
316
|
+
var Q = Error((y || "React class") + ": " + d + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
317
317
|
throw Q.name = "Invariant Violation", Q;
|
|
318
318
|
}
|
|
319
|
-
|
|
320
|
-
} catch (
|
|
321
|
-
|
|
319
|
+
P = a[I](n, I, y, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
320
|
+
} catch (V) {
|
|
321
|
+
P = V;
|
|
322
322
|
}
|
|
323
|
-
|
|
323
|
+
P && !(P instanceof Error) && (Re(E), S("%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).", y || "React class", d, I, typeof P), Re(null)), P instanceof Error && !(P.message in Ve) && (Ve[P.message] = !0, Re(E), S("Failed %s type: %s", d, P.message), Re(null));
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
}
|
|
@@ -346,9 +346,9 @@ function Xt() {
|
|
|
346
346
|
}
|
|
347
347
|
function Je(a) {
|
|
348
348
|
if (Tt(a))
|
|
349
|
-
return
|
|
349
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pt(a)), Ye(a);
|
|
350
350
|
}
|
|
351
|
-
var Qe =
|
|
351
|
+
var Qe = D.ReactCurrentOwner, Ct = {
|
|
352
352
|
key: !0,
|
|
353
353
|
ref: !0,
|
|
354
354
|
__self: !0,
|
|
@@ -376,7 +376,7 @@ function Xt() {
|
|
|
376
376
|
function Et(a, n) {
|
|
377
377
|
{
|
|
378
378
|
var d = function() {
|
|
379
|
-
Xe || (Xe = !0,
|
|
379
|
+
Xe || (Xe = !0, S("%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)", n));
|
|
380
380
|
};
|
|
381
381
|
d.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
382
382
|
get: d,
|
|
@@ -387,7 +387,7 @@ function Xt() {
|
|
|
387
387
|
function Bt(a, n) {
|
|
388
388
|
{
|
|
389
389
|
var d = function() {
|
|
390
|
-
Ze || (Ze = !0,
|
|
390
|
+
Ze || (Ze = !0, S("%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)", n));
|
|
391
391
|
};
|
|
392
392
|
d.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
393
393
|
get: d,
|
|
@@ -395,54 +395,54 @@ function Xt() {
|
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
var At = function(a, n, d, y, E,
|
|
399
|
-
var
|
|
398
|
+
var At = function(a, n, d, y, E, L, I) {
|
|
399
|
+
var P = {
|
|
400
400
|
// This tag allows us to uniquely identify this as a React Element
|
|
401
401
|
$$typeof: s,
|
|
402
402
|
// Built-in properties that belong on the element
|
|
403
403
|
type: a,
|
|
404
404
|
key: n,
|
|
405
405
|
ref: d,
|
|
406
|
-
props:
|
|
406
|
+
props: I,
|
|
407
407
|
// Record the component responsible for creating this element.
|
|
408
|
-
_owner:
|
|
408
|
+
_owner: L
|
|
409
409
|
};
|
|
410
|
-
return
|
|
410
|
+
return P._store = {}, Object.defineProperty(P._store, "validated", {
|
|
411
411
|
configurable: !1,
|
|
412
412
|
enumerable: !1,
|
|
413
413
|
writable: !0,
|
|
414
414
|
value: !1
|
|
415
|
-
}), Object.defineProperty(
|
|
415
|
+
}), Object.defineProperty(P, "_self", {
|
|
416
416
|
configurable: !1,
|
|
417
417
|
enumerable: !1,
|
|
418
418
|
writable: !1,
|
|
419
419
|
value: y
|
|
420
|
-
}), Object.defineProperty(
|
|
420
|
+
}), Object.defineProperty(P, "_source", {
|
|
421
421
|
configurable: !1,
|
|
422
422
|
enumerable: !1,
|
|
423
423
|
writable: !1,
|
|
424
424
|
value: E
|
|
425
|
-
}), Object.freeze && (Object.freeze(
|
|
425
|
+
}), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
|
|
426
426
|
};
|
|
427
427
|
function Dt(a, n, d, y, E) {
|
|
428
428
|
{
|
|
429
|
-
var
|
|
430
|
-
d !== void 0 && (Je(d),
|
|
431
|
-
for (
|
|
432
|
-
xe.call(n,
|
|
429
|
+
var L, I = {}, P = null, Q = null;
|
|
430
|
+
d !== void 0 && (Je(d), P = "" + d), St(n) && (Je(n.key), P = "" + n.key), It(n) && (Q = n.ref, Rt(n, E));
|
|
431
|
+
for (L in n)
|
|
432
|
+
xe.call(n, L) && !Ct.hasOwnProperty(L) && (I[L] = n[L]);
|
|
433
433
|
if (a && a.defaultProps) {
|
|
434
|
-
var
|
|
435
|
-
for (
|
|
436
|
-
|
|
434
|
+
var V = a.defaultProps;
|
|
435
|
+
for (L in V)
|
|
436
|
+
I[L] === void 0 && (I[L] = V[L]);
|
|
437
437
|
}
|
|
438
|
-
if (
|
|
439
|
-
var
|
|
440
|
-
|
|
438
|
+
if (P || Q) {
|
|
439
|
+
var Y = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
440
|
+
P && Et(I, Y), Q && Bt(I, Y);
|
|
441
441
|
}
|
|
442
|
-
return At(a,
|
|
442
|
+
return At(a, P, Q, E, y, Qe.current, I);
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
var $e =
|
|
445
|
+
var $e = D.ReactCurrentOwner, et = D.ReactDebugCurrentFrame;
|
|
446
446
|
function ge(a) {
|
|
447
447
|
if (a) {
|
|
448
448
|
var n = a._owner, d = Se(a.type, a._source, n ? n.type : null);
|
|
@@ -458,7 +458,7 @@ function Xt() {
|
|
|
458
458
|
function tt() {
|
|
459
459
|
{
|
|
460
460
|
if ($e.current) {
|
|
461
|
-
var a =
|
|
461
|
+
var a = M($e.current.type);
|
|
462
462
|
if (a)
|
|
463
463
|
return `
|
|
464
464
|
|
|
@@ -493,7 +493,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
493
493
|
return;
|
|
494
494
|
at[d] = !0;
|
|
495
495
|
var y = "";
|
|
496
|
-
a && a._owner && a._owner !== $e.current && (y = " It was passed a child from " +
|
|
496
|
+
a && a._owner && a._owner !== $e.current && (y = " It was passed a child from " + M(a._owner.type) + "."), ge(a), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, y), ge(null);
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
function st(a, n) {
|
|
@@ -508,10 +508,10 @@ Check the top-level render call using <` + d + ">.");
|
|
|
508
508
|
else if (We(a))
|
|
509
509
|
a._store && (a._store.validated = !0);
|
|
510
510
|
else if (a) {
|
|
511
|
-
var E =
|
|
511
|
+
var E = H(a);
|
|
512
512
|
if (typeof E == "function" && E !== a.entries)
|
|
513
|
-
for (var
|
|
514
|
-
We(
|
|
513
|
+
for (var L = E.call(a), I; !(I = L.next()).done; )
|
|
514
|
+
We(I.value) && rt(I.value, n);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
}
|
|
@@ -530,14 +530,14 @@ Check the top-level render call using <` + d + ">.");
|
|
|
530
530
|
else
|
|
531
531
|
return;
|
|
532
532
|
if (d) {
|
|
533
|
-
var y =
|
|
533
|
+
var y = M(n);
|
|
534
534
|
Nt(d, a.props, "prop", y, a);
|
|
535
535
|
} else if (n.PropTypes !== void 0 && !Fe) {
|
|
536
536
|
Fe = !0;
|
|
537
|
-
var E =
|
|
538
|
-
|
|
537
|
+
var E = M(n);
|
|
538
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
|
|
539
539
|
}
|
|
540
|
-
typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved &&
|
|
540
|
+
typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
function $t(a) {
|
|
@@ -545,29 +545,29 @@ Check the top-level render call using <` + d + ">.");
|
|
|
545
545
|
for (var n = Object.keys(a.props), d = 0; d < n.length; d++) {
|
|
546
546
|
var y = n[d];
|
|
547
547
|
if (y !== "children" && y !== "key") {
|
|
548
|
-
ge(a),
|
|
548
|
+
ge(a), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), ge(null);
|
|
549
549
|
break;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
a.ref !== null && (ge(a),
|
|
552
|
+
a.ref !== null && (ge(a), S("Invalid attribute `ref` supplied to `React.Fragment`."), ge(null));
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
var it = {};
|
|
556
|
-
function nt(a, n, d, y, E,
|
|
556
|
+
function nt(a, n, d, y, E, L) {
|
|
557
557
|
{
|
|
558
|
-
var
|
|
559
|
-
if (!
|
|
560
|
-
var
|
|
561
|
-
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (
|
|
558
|
+
var I = re(a);
|
|
559
|
+
if (!I) {
|
|
560
|
+
var P = "";
|
|
561
|
+
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
562
562
|
var Q = Lt();
|
|
563
|
-
Q ?
|
|
564
|
-
var
|
|
565
|
-
a === null ?
|
|
563
|
+
Q ? P += Q : P += tt();
|
|
564
|
+
var V;
|
|
565
|
+
a === null ? V = "null" : Me(a) ? V = "array" : a !== void 0 && a.$$typeof === s ? (V = "<" + (M(a.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : V = typeof a, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, P);
|
|
566
566
|
}
|
|
567
|
-
var
|
|
568
|
-
if (
|
|
569
|
-
return
|
|
570
|
-
if (
|
|
567
|
+
var Y = Dt(a, n, d, E, L);
|
|
568
|
+
if (Y == null)
|
|
569
|
+
return Y;
|
|
570
|
+
if (I) {
|
|
571
571
|
var ae = n.children;
|
|
572
572
|
if (ae !== void 0)
|
|
573
573
|
if (y)
|
|
@@ -576,17 +576,17 @@ Check the top-level render call using <` + d + ">.");
|
|
|
576
576
|
st(ae[fe], a);
|
|
577
577
|
Object.freeze && Object.freeze(ae);
|
|
578
578
|
} else
|
|
579
|
-
|
|
579
|
+
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
580
580
|
else
|
|
581
581
|
st(ae, a);
|
|
582
582
|
}
|
|
583
583
|
if (xe.call(n, "key")) {
|
|
584
|
-
var he =
|
|
584
|
+
var he = M(a), Z = Object.keys(n).filter(function(Gt) {
|
|
585
585
|
return Gt !== "key";
|
|
586
586
|
}), Ue = Z.length > 0 ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
587
587
|
if (!it[he + Ue]) {
|
|
588
588
|
var Kt = Z.length > 0 ? "{" + Z.join(": ..., ") + ": ...}" : "{}";
|
|
589
|
-
|
|
589
|
+
S(`A props object containing a "key" prop is being spread into JSX:
|
|
590
590
|
let props = %s;
|
|
591
591
|
<%s {...props} />
|
|
592
592
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -594,7 +594,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
594
594
|
<%s key={someKey} {...props} />`, Ue, he, Kt, he), it[he + Ue] = !0;
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
return a === r ? $t(
|
|
597
|
+
return a === r ? $t(Y) : Mt(Y), Y;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
function Ft(a, n, d) {
|
|
@@ -807,37 +807,37 @@ const Fr = ({
|
|
|
807
807
|
title: l,
|
|
808
808
|
pdfUrl: r
|
|
809
809
|
}) => {
|
|
810
|
-
const c = K(null), [h, o] =
|
|
811
|
-
return
|
|
810
|
+
const c = K(null), [h, o] = $(!0), [f, p] = $(null), [w, b] = $(null);
|
|
811
|
+
return q(() => {
|
|
812
812
|
if (!t) return;
|
|
813
|
-
const g = (
|
|
814
|
-
|
|
813
|
+
const g = (j) => {
|
|
814
|
+
j.key === "Escape" && s();
|
|
815
815
|
};
|
|
816
816
|
return document.addEventListener("keydown", g), document.body.style.overflow = "hidden", () => {
|
|
817
817
|
document.removeEventListener("keydown", g), document.body.style.overflow = "";
|
|
818
818
|
};
|
|
819
|
-
}, [t, s]),
|
|
819
|
+
}, [t, s]), q(() => {
|
|
820
820
|
t && import("./pdf-CH8PifTT.js").then((g) => g.p).then((g) => {
|
|
821
821
|
b(g);
|
|
822
822
|
}).catch((g) => {
|
|
823
823
|
p("Failed to load PDF viewer"), o(!1);
|
|
824
824
|
});
|
|
825
|
-
}, [t]),
|
|
825
|
+
}, [t]), q(() => {
|
|
826
826
|
if (!t || !r || !c.current || !w) return;
|
|
827
827
|
o(!0), p(null), c.current.innerHTML = "", (async () => {
|
|
828
828
|
try {
|
|
829
829
|
$r(w);
|
|
830
|
-
const
|
|
831
|
-
if (!
|
|
832
|
-
const
|
|
833
|
-
for (let
|
|
834
|
-
const
|
|
835
|
-
|
|
836
|
-
const
|
|
837
|
-
|
|
830
|
+
const B = await w.getDocument({ url: r }).promise, x = c.current;
|
|
831
|
+
if (!x) return;
|
|
832
|
+
const R = x.clientWidth || 600, H = Math.min(R / 612, 2);
|
|
833
|
+
for (let D = 1; D <= B.numPages; D++) {
|
|
834
|
+
const S = await B.getPage(D), T = S.getViewport({ scale: H }), k = document.createElement("canvas");
|
|
835
|
+
k.height = T.height, k.width = T.width, k.style.display = "block", k.style.margin = "0 auto 1rem", k.style.maxWidth = "100%";
|
|
836
|
+
const O = k.getContext("2d");
|
|
837
|
+
O && await S.render({ canvasContext: O, viewport: T }).promise, x.appendChild(k);
|
|
838
838
|
}
|
|
839
|
-
} catch (
|
|
840
|
-
p(
|
|
839
|
+
} catch (j) {
|
|
840
|
+
p(j instanceof Error ? j.message : "Failed to load PDF");
|
|
841
841
|
} finally {
|
|
842
842
|
o(!1);
|
|
843
843
|
}
|
|
@@ -871,8 +871,8 @@ const Fr = ({
|
|
|
871
871
|
] }),
|
|
872
872
|
/* @__PURE__ */ e.jsxs("div", { className: oe.content, children: [
|
|
873
873
|
/* @__PURE__ */ e.jsxs("div", { className: oe.pdfFrame, children: [
|
|
874
|
-
|
|
875
|
-
/* @__PURE__ */ e.jsx("span", { children:
|
|
874
|
+
f && /* @__PURE__ */ e.jsxs("div", { className: oe.pdfError, children: [
|
|
875
|
+
/* @__PURE__ */ e.jsx("span", { children: f }),
|
|
876
876
|
/* @__PURE__ */ e.jsx("a", { href: r, target: "_blank", rel: "noopener noreferrer", children: "Open in new tab instead" })
|
|
877
877
|
] }),
|
|
878
878
|
/* @__PURE__ */ e.jsx("div", { ref: c, className: oe.pdfPages })
|
|
@@ -899,7 +899,7 @@ const Fr = ({
|
|
|
899
899
|
analytics: l,
|
|
900
900
|
className: r = ""
|
|
901
901
|
}) => {
|
|
902
|
-
const [c, h] =
|
|
902
|
+
const [c, h] = $(!1), o = t("viewSampleReport"), f = t("sampleReportModalTitle"), p = () => {
|
|
903
903
|
l?.trackViewSampleReportClicked?.(), h(!0);
|
|
904
904
|
}, w = () => {
|
|
905
905
|
l?.trackViewSampleReportClosed?.(), h(!1);
|
|
@@ -911,7 +911,7 @@ const Fr = ({
|
|
|
911
911
|
{
|
|
912
912
|
isOpen: c,
|
|
913
913
|
onClose: w,
|
|
914
|
-
title:
|
|
914
|
+
title: f,
|
|
915
915
|
pdfUrl: s
|
|
916
916
|
}
|
|
917
917
|
)
|
|
@@ -924,10 +924,10 @@ function Be({
|
|
|
924
924
|
children: r
|
|
925
925
|
}) {
|
|
926
926
|
const c = K(null), h = K(!1);
|
|
927
|
-
return
|
|
927
|
+
return q(() => {
|
|
928
928
|
const o = c.current;
|
|
929
929
|
if (!o) return;
|
|
930
|
-
const
|
|
930
|
+
const f = new IntersectionObserver(
|
|
931
931
|
([p]) => {
|
|
932
932
|
!p?.isIntersecting || h.current || (h.current = !0, l?.trackSneakPeekCardViewed?.({
|
|
933
933
|
cardNumber: t,
|
|
@@ -937,7 +937,7 @@ function Be({
|
|
|
937
937
|
{ threshold: 0.5 }
|
|
938
938
|
// Card must be 50% visible
|
|
939
939
|
);
|
|
940
|
-
return
|
|
940
|
+
return f.observe(o), () => f.disconnect();
|
|
941
941
|
}, [t, s, l]), /* @__PURE__ */ e.jsx("div", { ref: c, children: r });
|
|
942
942
|
}
|
|
943
943
|
const Yr = ({
|
|
@@ -1199,7 +1199,7 @@ const Yr = ({
|
|
|
1199
1199
|
)
|
|
1200
1200
|
] }) }),
|
|
1201
1201
|
/* @__PURE__ */ e.jsx("div", { className: i.buttonContainer, children: /* @__PURE__ */ e.jsx(Ur, { t, analytics: s }) })
|
|
1202
|
-
] }), Jr = "_testimonials_dcl7t_2", Qr = "_heading_dcl7t_7", Xr = "_subheading_dcl7t_20", Zr = "_carouselWrapper_dcl7t_36", es = "_carousel_dcl7t_36", ts = "_card_dcl7t_59", as = "_cardActive_dcl7t_72", rs = "_cardContent_dcl7t_77", ss = "_header_dcl7t_92", is = "_headerInfo_dcl7t_99", ns = "_avatar_dcl7t_105", os = "_name_dcl7t_113", cs = "_rating_dcl7t_120", ls = "_starFilled_dcl7t_124", ds = "_starEmpty_dcl7t_129", us = "_review_dcl7t_134", ms = "_statsBar_dcl7t_143", hs = "_stat_dcl7t_143", ps = "_statValue_dcl7t_164", gs = "_statLabel_dcl7t_185", fs = "_statDivider_dcl7t_197",
|
|
1202
|
+
] }), Jr = "_testimonials_dcl7t_2", Qr = "_heading_dcl7t_7", Xr = "_subheading_dcl7t_20", Zr = "_carouselWrapper_dcl7t_36", es = "_carousel_dcl7t_36", ts = "_card_dcl7t_59", as = "_cardActive_dcl7t_72", rs = "_cardContent_dcl7t_77", ss = "_header_dcl7t_92", is = "_headerInfo_dcl7t_99", ns = "_avatar_dcl7t_105", os = "_name_dcl7t_113", cs = "_rating_dcl7t_120", ls = "_starFilled_dcl7t_124", ds = "_starEmpty_dcl7t_129", us = "_review_dcl7t_134", ms = "_statsBar_dcl7t_143", hs = "_stat_dcl7t_143", ps = "_statValue_dcl7t_164", gs = "_statLabel_dcl7t_185", fs = "_statDivider_dcl7t_197", A = {
|
|
1203
1203
|
testimonials: Jr,
|
|
1204
1204
|
heading: Qr,
|
|
1205
1205
|
subheading: Xr,
|
|
@@ -1227,7 +1227,7 @@ const Yr = ({
|
|
|
1227
1227
|
className: l = "",
|
|
1228
1228
|
analytics: r
|
|
1229
1229
|
}) => {
|
|
1230
|
-
const c = K(null), [h, o] =
|
|
1230
|
+
const c = K(null), [h, o] = $(0), [f, p] = $(!1), w = K(null), b = K(!1), g = K(-1), j = s || [
|
|
1231
1231
|
{
|
|
1232
1232
|
name: t("testimonial1Name"),
|
|
1233
1233
|
avatarUrl: t("testimonial1Avatar"),
|
|
@@ -1276,79 +1276,79 @@ const Yr = ({
|
|
|
1276
1276
|
rating: 5,
|
|
1277
1277
|
review: t("testimonial8Review")
|
|
1278
1278
|
}
|
|
1279
|
-
],
|
|
1279
|
+
], B = [...j, ...j, ...j], x = j.length, R = x, H = (T, k = !0) => {
|
|
1280
1280
|
if (!c.current) return;
|
|
1281
1281
|
b.current = !0;
|
|
1282
|
-
const
|
|
1283
|
-
if (!
|
|
1284
|
-
const
|
|
1285
|
-
|
|
1286
|
-
left:
|
|
1287
|
-
behavior:
|
|
1282
|
+
const O = c.current, U = O.children[0];
|
|
1283
|
+
if (!U) return;
|
|
1284
|
+
const _ = U.offsetWidth, F = T * (_ + 16);
|
|
1285
|
+
O.scrollTo({
|
|
1286
|
+
left: F,
|
|
1287
|
+
behavior: k ? "smooth" : "auto"
|
|
1288
1288
|
}), setTimeout(() => {
|
|
1289
1289
|
b.current = !1;
|
|
1290
|
-
},
|
|
1290
|
+
}, k ? 700 : 50);
|
|
1291
1291
|
};
|
|
1292
|
-
|
|
1293
|
-
const
|
|
1294
|
-
o(
|
|
1292
|
+
q(() => {
|
|
1293
|
+
const T = setTimeout(() => {
|
|
1294
|
+
o(R), H(R, !1);
|
|
1295
1295
|
}, 50);
|
|
1296
|
-
return () => clearTimeout(
|
|
1297
|
-
}, [
|
|
1296
|
+
return () => clearTimeout(T);
|
|
1297
|
+
}, [R]), q(() => () => {
|
|
1298
1298
|
w.current && clearTimeout(w.current);
|
|
1299
|
-
}, []),
|
|
1300
|
-
if (
|
|
1301
|
-
const
|
|
1302
|
-
o((
|
|
1299
|
+
}, []), q(() => {
|
|
1300
|
+
if (f) return;
|
|
1301
|
+
const T = setInterval(() => {
|
|
1302
|
+
o((k) => k + 1);
|
|
1303
1303
|
}, _s);
|
|
1304
|
-
return () => clearInterval(
|
|
1305
|
-
}, [
|
|
1304
|
+
return () => clearInterval(T);
|
|
1305
|
+
}, [f]), q(() => {
|
|
1306
1306
|
if (!c.current || h === 0) return;
|
|
1307
|
-
|
|
1308
|
-
const
|
|
1307
|
+
H(h, !0);
|
|
1308
|
+
const T = setTimeout(() => {
|
|
1309
1309
|
if (c.current) {
|
|
1310
|
-
if (h >=
|
|
1311
|
-
const
|
|
1312
|
-
o(
|
|
1313
|
-
} else if (h <
|
|
1314
|
-
const
|
|
1315
|
-
o(
|
|
1310
|
+
if (h >= x * 2) {
|
|
1311
|
+
const k = h - x;
|
|
1312
|
+
o(k), H(k, !1);
|
|
1313
|
+
} else if (h < x) {
|
|
1314
|
+
const k = h + x;
|
|
1315
|
+
o(k), H(k, !1);
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
1318
|
}, 700);
|
|
1319
|
-
return () => clearTimeout(
|
|
1320
|
-
}, [h,
|
|
1321
|
-
const
|
|
1319
|
+
return () => clearTimeout(T);
|
|
1320
|
+
}, [h, x]);
|
|
1321
|
+
const D = () => {
|
|
1322
1322
|
!c.current || b.current || (w.current && clearTimeout(w.current), w.current = setTimeout(() => {
|
|
1323
1323
|
if (!c.current || b.current) return;
|
|
1324
|
-
const
|
|
1325
|
-
if (!
|
|
1326
|
-
const
|
|
1327
|
-
if (
|
|
1328
|
-
o(
|
|
1329
|
-
const
|
|
1330
|
-
g.current !==
|
|
1331
|
-
reviewIndex:
|
|
1332
|
-
reviewerName:
|
|
1324
|
+
const T = c.current, k = T.scrollLeft, O = T.children[0];
|
|
1325
|
+
if (!O) return;
|
|
1326
|
+
const U = O.offsetWidth, G = Math.round(k / (U + 16));
|
|
1327
|
+
if (G !== h && G >= 0 && G < B.length) {
|
|
1328
|
+
o(G);
|
|
1329
|
+
const F = G % x;
|
|
1330
|
+
g.current !== F && r?.trackTestimonialScrolled && (g.current = F, r.trackTestimonialScrolled({
|
|
1331
|
+
reviewIndex: F,
|
|
1332
|
+
reviewerName: j[F]?.name || "",
|
|
1333
1333
|
isManualScroll: !0
|
|
1334
1334
|
}));
|
|
1335
1335
|
}
|
|
1336
1336
|
}, 100));
|
|
1337
|
-
},
|
|
1337
|
+
}, S = (T) => Array.from({ length: 5 }, (k, O) => /* @__PURE__ */ e.jsx(
|
|
1338
1338
|
"span",
|
|
1339
1339
|
{
|
|
1340
|
-
className:
|
|
1340
|
+
className: O < T ? A.starFilled : A.starEmpty,
|
|
1341
1341
|
children: "★"
|
|
1342
1342
|
},
|
|
1343
|
-
|
|
1343
|
+
O
|
|
1344
1344
|
));
|
|
1345
|
-
return /* @__PURE__ */ e.jsxs("section", { className: `${
|
|
1346
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
1347
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
1345
|
+
return /* @__PURE__ */ e.jsxs("section", { className: `${A.testimonials} ${l}`, children: [
|
|
1346
|
+
/* @__PURE__ */ e.jsx("h2", { className: A.heading, children: t("testimonialsHeading") }),
|
|
1347
|
+
/* @__PURE__ */ e.jsx("p", { className: A.subheading, children: t("testimonialsSubheading") }),
|
|
1348
1348
|
/* @__PURE__ */ e.jsx(
|
|
1349
1349
|
"div",
|
|
1350
1350
|
{
|
|
1351
|
-
className:
|
|
1351
|
+
className: A.carouselWrapper,
|
|
1352
1352
|
onMouseEnter: () => p(!0),
|
|
1353
1353
|
onMouseLeave: () => p(!1),
|
|
1354
1354
|
onTouchStart: () => p(!0),
|
|
@@ -1357,57 +1357,57 @@ const Yr = ({
|
|
|
1357
1357
|
"div",
|
|
1358
1358
|
{
|
|
1359
1359
|
ref: c,
|
|
1360
|
-
className:
|
|
1361
|
-
onScroll:
|
|
1362
|
-
children:
|
|
1363
|
-
const
|
|
1360
|
+
className: A.carousel,
|
|
1361
|
+
onScroll: D,
|
|
1362
|
+
children: B.map((T, k) => {
|
|
1363
|
+
const O = k === h;
|
|
1364
1364
|
return /* @__PURE__ */ e.jsx(
|
|
1365
1365
|
"div",
|
|
1366
1366
|
{
|
|
1367
|
-
className: `${
|
|
1368
|
-
children: /* @__PURE__ */ e.jsxs("div", { className:
|
|
1369
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1367
|
+
className: `${A.card} ${O ? A.cardActive : ""}`,
|
|
1368
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: A.cardContent, children: [
|
|
1369
|
+
/* @__PURE__ */ e.jsxs("div", { className: A.header, children: [
|
|
1370
1370
|
/* @__PURE__ */ e.jsx(
|
|
1371
1371
|
"img",
|
|
1372
1372
|
{
|
|
1373
|
-
src:
|
|
1374
|
-
alt:
|
|
1375
|
-
className:
|
|
1373
|
+
src: T.avatarUrl,
|
|
1374
|
+
alt: T.name,
|
|
1375
|
+
className: A.avatar
|
|
1376
1376
|
}
|
|
1377
1377
|
),
|
|
1378
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1379
|
-
/* @__PURE__ */ e.jsx("h3", { className:
|
|
1380
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1378
|
+
/* @__PURE__ */ e.jsxs("div", { className: A.headerInfo, children: [
|
|
1379
|
+
/* @__PURE__ */ e.jsx("h3", { className: A.name, children: T.name }),
|
|
1380
|
+
/* @__PURE__ */ e.jsx("div", { className: A.rating, children: S(T.rating) })
|
|
1381
1381
|
] })
|
|
1382
1382
|
] }),
|
|
1383
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
1383
|
+
/* @__PURE__ */ e.jsx("p", { className: A.review, children: T.review })
|
|
1384
1384
|
] })
|
|
1385
1385
|
},
|
|
1386
|
-
|
|
1386
|
+
k
|
|
1387
1387
|
);
|
|
1388
1388
|
})
|
|
1389
1389
|
}
|
|
1390
1390
|
)
|
|
1391
1391
|
}
|
|
1392
1392
|
),
|
|
1393
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1394
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1395
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1396
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1393
|
+
/* @__PURE__ */ e.jsxs("div", { className: A.statsBar, children: [
|
|
1394
|
+
/* @__PURE__ */ e.jsxs("div", { className: A.stat, children: [
|
|
1395
|
+
/* @__PURE__ */ e.jsx("span", { className: A.statValue, children: t("statsRating") }),
|
|
1396
|
+
/* @__PURE__ */ e.jsx("span", { className: A.statLabel, children: t("statsRatingLabel") })
|
|
1397
1397
|
] }),
|
|
1398
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1399
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1400
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1401
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1398
|
+
/* @__PURE__ */ e.jsx("div", { className: A.statDivider }),
|
|
1399
|
+
/* @__PURE__ */ e.jsxs("div", { className: A.stat, children: [
|
|
1400
|
+
/* @__PURE__ */ e.jsx("span", { className: A.statValue, children: t("statsUsers") }),
|
|
1401
|
+
/* @__PURE__ */ e.jsx("span", { className: A.statLabel, children: t("statsUsersLabel") })
|
|
1402
1402
|
] }),
|
|
1403
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1404
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1405
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1406
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1403
|
+
/* @__PURE__ */ e.jsx("div", { className: A.statDivider }),
|
|
1404
|
+
/* @__PURE__ */ e.jsxs("div", { className: A.stat, children: [
|
|
1405
|
+
/* @__PURE__ */ e.jsx("span", { className: A.statValue, children: t("statsAstrologers") }),
|
|
1406
|
+
/* @__PURE__ */ e.jsx("span", { className: A.statLabel, children: t("statsAstrologersLabel") })
|
|
1407
1407
|
] })
|
|
1408
1408
|
] })
|
|
1409
1409
|
] });
|
|
1410
|
-
}, ys = "_benefits_1w6i0_1", vs = "_heading_1w6i0_6", xs = "_subheading_1w6i0_19", js = "_grid_1w6i0_36", ks = "_card_1w6i0_54", Ns = "_icon_1w6i0_76", ws = "_cardTitle_1w6i0_86", Ps = "_cardDescription_1w6i0_100", Ts = "_cardRed_1w6i0_113", Cs = "_cardBlue_1w6i0_117", Is = "_cardPurple_1w6i0_121", Ss = "_cardOrange_1w6i0_125",
|
|
1410
|
+
}, ys = "_benefits_1w6i0_1", vs = "_heading_1w6i0_6", xs = "_subheading_1w6i0_19", js = "_grid_1w6i0_36", ks = "_card_1w6i0_54", Ns = "_icon_1w6i0_76", ws = "_cardTitle_1w6i0_86", Ps = "_cardDescription_1w6i0_100", Ts = "_cardRed_1w6i0_113", Cs = "_cardBlue_1w6i0_117", Is = "_cardPurple_1w6i0_121", Ss = "_cardOrange_1w6i0_125", z = {
|
|
1411
1411
|
benefits: ys,
|
|
1412
1412
|
heading: vs,
|
|
1413
1413
|
subheading: xs,
|
|
@@ -1423,29 +1423,29 @@ const Yr = ({
|
|
|
1423
1423
|
}, Ae = "https://srm-cdn.a4b.io/yoda/1774526823534.svg", Rs = ({
|
|
1424
1424
|
t,
|
|
1425
1425
|
className: s = ""
|
|
1426
|
-
}) => /* @__PURE__ */ e.jsxs("section", { className: `${
|
|
1427
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
1428
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
1429
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1430
|
-
/* @__PURE__ */ e.jsxs("div", { className: `${
|
|
1431
|
-
/* @__PURE__ */ e.jsx("img", { src: Ae, alt: "", className:
|
|
1432
|
-
/* @__PURE__ */ e.jsx("h3", { className:
|
|
1433
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
1426
|
+
}) => /* @__PURE__ */ e.jsxs("section", { className: `${z.benefits} ${s}`, children: [
|
|
1427
|
+
/* @__PURE__ */ e.jsx("h2", { className: z.heading, children: t("benefitsHeading") }),
|
|
1428
|
+
/* @__PURE__ */ e.jsx("p", { className: z.subheading, children: t("benefitsSubheading") }),
|
|
1429
|
+
/* @__PURE__ */ e.jsxs("div", { className: z.grid, children: [
|
|
1430
|
+
/* @__PURE__ */ e.jsxs("div", { className: `${z.card} ${z.cardRed}`, children: [
|
|
1431
|
+
/* @__PURE__ */ e.jsx("img", { src: Ae, alt: "", className: z.icon, width: 20, height: 20 }),
|
|
1432
|
+
/* @__PURE__ */ e.jsx("h3", { className: z.cardTitle, children: t("benefit1Title") }),
|
|
1433
|
+
/* @__PURE__ */ e.jsx("p", { className: z.cardDescription, children: t("benefit1Description") })
|
|
1434
1434
|
] }),
|
|
1435
|
-
/* @__PURE__ */ e.jsxs("div", { className: `${
|
|
1436
|
-
/* @__PURE__ */ e.jsx("img", { src: Ae, alt: "", className:
|
|
1437
|
-
/* @__PURE__ */ e.jsx("h3", { className:
|
|
1438
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
1435
|
+
/* @__PURE__ */ e.jsxs("div", { className: `${z.card} ${z.cardBlue}`, children: [
|
|
1436
|
+
/* @__PURE__ */ e.jsx("img", { src: Ae, alt: "", className: z.icon, width: 20, height: 20 }),
|
|
1437
|
+
/* @__PURE__ */ e.jsx("h3", { className: z.cardTitle, children: t("benefit2Title") }),
|
|
1438
|
+
/* @__PURE__ */ e.jsx("p", { className: z.cardDescription, children: t("benefit2Description") })
|
|
1439
1439
|
] }),
|
|
1440
|
-
/* @__PURE__ */ e.jsxs("div", { className: `${
|
|
1441
|
-
/* @__PURE__ */ e.jsx("img", { src: Ae, alt: "", className:
|
|
1442
|
-
/* @__PURE__ */ e.jsx("h3", { className:
|
|
1443
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
1440
|
+
/* @__PURE__ */ e.jsxs("div", { className: `${z.card} ${z.cardPurple}`, children: [
|
|
1441
|
+
/* @__PURE__ */ e.jsx("img", { src: Ae, alt: "", className: z.icon, width: 20, height: 20 }),
|
|
1442
|
+
/* @__PURE__ */ e.jsx("h3", { className: z.cardTitle, children: t("benefit3Title") }),
|
|
1443
|
+
/* @__PURE__ */ e.jsx("p", { className: z.cardDescription, children: t("benefit3Description") })
|
|
1444
1444
|
] }),
|
|
1445
|
-
/* @__PURE__ */ e.jsxs("div", { className: `${
|
|
1446
|
-
/* @__PURE__ */ e.jsx("img", { src: Ae, alt: "", className:
|
|
1447
|
-
/* @__PURE__ */ e.jsx("h3", { className:
|
|
1448
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
1445
|
+
/* @__PURE__ */ e.jsxs("div", { className: `${z.card} ${z.cardOrange}`, children: [
|
|
1446
|
+
/* @__PURE__ */ e.jsx("img", { src: Ae, alt: "", className: z.icon, width: 20, height: 20 }),
|
|
1447
|
+
/* @__PURE__ */ e.jsx("h3", { className: z.cardTitle, children: t("benefit4Title") }),
|
|
1448
|
+
/* @__PURE__ */ e.jsx("p", { className: z.cardDescription, children: t("benefit4Description") })
|
|
1449
1449
|
] })
|
|
1450
1450
|
] })
|
|
1451
1451
|
] }), Es = "_section_tlutk_1", Bs = "_heading_tlutk_6", As = "_subtitle_tlutk_11", Ds = "_list_tlutk_15", Ls = "_item_tlutk_19", Os = "_starIcon_tlutk_23", _e = {
|
|
@@ -1503,7 +1503,7 @@ const Yr = ({
|
|
|
1503
1503
|
className: s,
|
|
1504
1504
|
headingClassName: l
|
|
1505
1505
|
}
|
|
1506
|
-
) }), Gs = "_formSection_1f07e_1", Hs = "_container_1f07e_6", Vs = "_personSection_1f07e_10", qs = "_contactSection_1f07e_14", Ys = "_sectionTitle_1f07e_19", Js = "_languageSection_1f07e_29", Qs = "_isdWrap_1f07e_33", Xs = "_phoneInputGroup_1f07e_37", Zs = "_isdSelectWrap_1f07e_46", ei = "_isdSelectTrigger_1f07e_65", ti = "_phoneInput_1f07e_37", ai = "_isdDropdown_1f07e_100", ri = "_isdSearchWrap_1f07e_115", si = "_isdSearchInput_1f07e_123", ii = "_isdOption_1f07e_141", ni = "_isdOptionActive_1f07e_161", oi = "_isdCountryName_1f07e_167", ci = "_isdCountryCode_1f07e_174", li = "_isdNoResult_1f07e_181", di = "_input_1f07e_188",
|
|
1506
|
+
) }), Gs = "_formSection_1f07e_1", Hs = "_container_1f07e_6", Vs = "_personSection_1f07e_10", qs = "_contactSection_1f07e_14", Ys = "_sectionTitle_1f07e_19", Js = "_languageSection_1f07e_29", Qs = "_isdWrap_1f07e_33", Xs = "_phoneInputGroup_1f07e_37", Zs = "_isdSelectWrap_1f07e_46", ei = "_isdSelectTrigger_1f07e_65", ti = "_phoneInput_1f07e_37", ai = "_isdDropdown_1f07e_100", ri = "_isdSearchWrap_1f07e_115", si = "_isdSearchInput_1f07e_123", ii = "_isdOption_1f07e_141", ni = "_isdOptionActive_1f07e_161", oi = "_isdCountryName_1f07e_167", ci = "_isdCountryCode_1f07e_174", li = "_isdNoResult_1f07e_181", di = "_input_1f07e_188", W = {
|
|
1507
1507
|
formSection: Gs,
|
|
1508
1508
|
container: Hs,
|
|
1509
1509
|
personSection: Vs,
|
|
@@ -1572,12 +1572,12 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1572
1572
|
}
|
|
1573
1573
|
const h = document.createElement("script"), o = new URL("https://maps.googleapis.com/maps/api/js");
|
|
1574
1574
|
o.searchParams.set("key", t), o.searchParams.set("libraries", "places"), o.searchParams.set("loading", "async"), s && o.searchParams.set("language", s), h.src = o.toString(), h.async = !0, h.defer = !0, h.setAttribute("data-google-maps-places", "true"), h.onload = () => {
|
|
1575
|
-
const
|
|
1575
|
+
const f = Date.now(), p = () => {
|
|
1576
1576
|
if (window.google?.maps?.places) {
|
|
1577
1577
|
l();
|
|
1578
1578
|
return;
|
|
1579
1579
|
}
|
|
1580
|
-
if (Date.now() -
|
|
1580
|
+
if (Date.now() - f > 2e3) {
|
|
1581
1581
|
r(
|
|
1582
1582
|
new Error(
|
|
1583
1583
|
"Google Maps loaded but Places library is unavailable. Check API key restrictions / enabled APIs."
|
|
@@ -1590,51 +1590,51 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1590
1590
|
p();
|
|
1591
1591
|
}, h.onerror = () => r(new Error("Failed to load Google Maps API")), document.head.appendChild(h);
|
|
1592
1592
|
}), De), Ki = (t) => {
|
|
1593
|
-
const { apiKey: s, language: l = "en", restrictCountry: r, deferLoad: c = !1 } = t, [h, o] =
|
|
1594
|
-
c &&
|
|
1593
|
+
const { apiKey: s, language: l = "en", restrictCountry: r, deferLoad: c = !1 } = t, [h, o] = $(!1), [f, p] = $([]), [w, b] = $(!1), [g, j] = $(null), [B, x] = $(!c), R = K(null), H = K(null), D = K(null), S = Ne(() => {
|
|
1594
|
+
c && x(!0);
|
|
1595
1595
|
}, [c]);
|
|
1596
|
-
|
|
1597
|
-
if (!s || !
|
|
1598
|
-
o(!1),
|
|
1596
|
+
q(() => {
|
|
1597
|
+
if (!s || !B) {
|
|
1598
|
+
o(!1), j(null);
|
|
1599
1599
|
return;
|
|
1600
1600
|
}
|
|
1601
1601
|
zi(s, l).then(() => {
|
|
1602
|
-
|
|
1603
|
-
const
|
|
1604
|
-
|
|
1605
|
-
}).catch((
|
|
1606
|
-
o(!1),
|
|
1602
|
+
R.current = new google.maps.places.AutocompleteService();
|
|
1603
|
+
const U = document.createElement("div");
|
|
1604
|
+
H.current = new google.maps.places.PlacesService(U), D.current = new google.maps.places.AutocompleteSessionToken(), o(!0), j(null);
|
|
1605
|
+
}).catch((U) => {
|
|
1606
|
+
o(!1), j(U?.message || "Failed to load location service");
|
|
1607
1607
|
});
|
|
1608
|
-
}, [s, l,
|
|
1609
|
-
const
|
|
1610
|
-
async (
|
|
1611
|
-
if (!
|
|
1608
|
+
}, [s, l, B]);
|
|
1609
|
+
const T = Ne(
|
|
1610
|
+
async (U) => {
|
|
1611
|
+
if (!U || U.length < 2 || !R.current) {
|
|
1612
1612
|
p([]);
|
|
1613
1613
|
return;
|
|
1614
1614
|
}
|
|
1615
1615
|
b(!0);
|
|
1616
1616
|
try {
|
|
1617
|
-
const
|
|
1618
|
-
input:
|
|
1617
|
+
const _ = {
|
|
1618
|
+
input: U,
|
|
1619
1619
|
types: ["(cities)"],
|
|
1620
|
-
sessionToken:
|
|
1620
|
+
sessionToken: D.current ?? void 0
|
|
1621
1621
|
};
|
|
1622
|
-
r && (
|
|
1623
|
-
const
|
|
1624
|
-
|
|
1625
|
-
|
|
1622
|
+
r && (_.componentRestrictions = { country: r });
|
|
1623
|
+
const G = await new Promise((F, re) => {
|
|
1624
|
+
R.current.getPlacePredictions(
|
|
1625
|
+
_,
|
|
1626
1626
|
(ee, v) => {
|
|
1627
|
-
v === google.maps.places.PlacesServiceStatus.OK && ee ?
|
|
1627
|
+
v === google.maps.places.PlacesServiceStatus.OK && ee ? F(ee) : v === google.maps.places.PlacesServiceStatus.ZERO_RESULTS ? F([]) : re(new Error(`Places API error: ${v}`));
|
|
1628
1628
|
}
|
|
1629
1629
|
);
|
|
1630
1630
|
});
|
|
1631
1631
|
p(
|
|
1632
|
-
|
|
1633
|
-
place_id:
|
|
1634
|
-
description:
|
|
1632
|
+
G.map((F) => ({
|
|
1633
|
+
place_id: F.place_id,
|
|
1634
|
+
description: F.description,
|
|
1635
1635
|
structured_formatting: {
|
|
1636
|
-
main_text:
|
|
1637
|
-
secondary_text:
|
|
1636
|
+
main_text: F.structured_formatting?.main_text || F.description,
|
|
1637
|
+
secondary_text: F.structured_formatting?.secondary_text || ""
|
|
1638
1638
|
}
|
|
1639
1639
|
}))
|
|
1640
1640
|
);
|
|
@@ -1645,33 +1645,33 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1645
1645
|
}
|
|
1646
1646
|
},
|
|
1647
1647
|
[r]
|
|
1648
|
-
),
|
|
1649
|
-
async (
|
|
1650
|
-
if (!
|
|
1648
|
+
), k = Ne(
|
|
1649
|
+
async (U) => {
|
|
1650
|
+
if (!H.current) return null;
|
|
1651
1651
|
try {
|
|
1652
|
-
const
|
|
1653
|
-
(
|
|
1654
|
-
|
|
1652
|
+
const _ = await new Promise(
|
|
1653
|
+
(M, te) => {
|
|
1654
|
+
H.current.getDetails(
|
|
1655
1655
|
{
|
|
1656
|
-
placeId:
|
|
1656
|
+
placeId: U,
|
|
1657
1657
|
fields: ["geometry", "address_components", "formatted_address"],
|
|
1658
|
-
sessionToken:
|
|
1658
|
+
sessionToken: D.current ?? void 0
|
|
1659
1659
|
},
|
|
1660
1660
|
(se, ue) => {
|
|
1661
|
-
ue === google.maps.places.PlacesServiceStatus.OK && se ?
|
|
1661
|
+
ue === google.maps.places.PlacesServiceStatus.OK && se ? M(se) : te(new Error(`Place details error: ${ue}`));
|
|
1662
1662
|
}
|
|
1663
1663
|
);
|
|
1664
1664
|
}
|
|
1665
1665
|
);
|
|
1666
|
-
|
|
1667
|
-
const
|
|
1666
|
+
D.current = new google.maps.places.AutocompleteSessionToken();
|
|
1667
|
+
const G = _.geometry?.location?.lat() || 0, F = _.geometry?.location?.lng() || 0;
|
|
1668
1668
|
let re = "", ee = "", v = "";
|
|
1669
|
-
return
|
|
1670
|
-
|
|
1669
|
+
return _.address_components?.forEach((M) => {
|
|
1670
|
+
M.types.includes("locality") && (re = M.long_name), M.types.includes("administrative_area_level_1") && (ee = M.long_name), M.types.includes("country") && (v = M.long_name);
|
|
1671
1671
|
}), {
|
|
1672
|
-
display_name:
|
|
1673
|
-
lat:
|
|
1674
|
-
lng:
|
|
1672
|
+
display_name: _.formatted_address || "",
|
|
1673
|
+
lat: G,
|
|
1674
|
+
lng: F,
|
|
1675
1675
|
city: re,
|
|
1676
1676
|
state: ee,
|
|
1677
1677
|
country: v
|
|
@@ -1681,18 +1681,18 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1681
1681
|
}
|
|
1682
1682
|
},
|
|
1683
1683
|
[]
|
|
1684
|
-
),
|
|
1684
|
+
), O = Ne(() => {
|
|
1685
1685
|
p([]);
|
|
1686
1686
|
}, []);
|
|
1687
1687
|
return {
|
|
1688
1688
|
isLoaded: h,
|
|
1689
|
-
predictions:
|
|
1689
|
+
predictions: f,
|
|
1690
1690
|
isSearching: w,
|
|
1691
1691
|
loadError: g,
|
|
1692
|
-
searchPlaces:
|
|
1693
|
-
getPlaceDetails:
|
|
1694
|
-
clearPredictions:
|
|
1695
|
-
triggerLoad:
|
|
1692
|
+
searchPlaces: T,
|
|
1693
|
+
getPlaceDetails: k,
|
|
1694
|
+
clearPredictions: O,
|
|
1695
|
+
triggerLoad: S
|
|
1696
1696
|
};
|
|
1697
1697
|
}, be = {
|
|
1698
1698
|
time: "https://srm-cdn.a4b.io/yoda/1770372014782.svg",
|
|
@@ -1707,26 +1707,26 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1707
1707
|
googleMapsApiKey: c,
|
|
1708
1708
|
isGlobal: h = !1,
|
|
1709
1709
|
analytics: o,
|
|
1710
|
-
className:
|
|
1710
|
+
className: f = ""
|
|
1711
1711
|
}) => {
|
|
1712
|
-
const [p, w] =
|
|
1713
|
-
|
|
1712
|
+
const [p, w] = $(!1), [b, g] = $({ hour12: 11, minute: "09", meridiem: "AM" }), [j, B] = $(null), [x, R] = $(!1), H = K(null), D = K(null), S = K(null), T = K({}), k = (m) => l({ ...s, ...m }), O = (m, C) => {
|
|
1713
|
+
C.trim() && !T.current[`${r}_${m}`] && (T.current[`${r}_${m}`] = !0, {
|
|
1714
1714
|
fullName: r === "boy" ? () => o?.trackBoyNameSectionFilled?.() : () => o?.trackGirlNameSectionFilled?.(),
|
|
1715
1715
|
dateOfBirth: r === "boy" ? () => o?.trackBoyDobFilled?.() : () => o?.trackGirlDobFilled?.(),
|
|
1716
1716
|
birthTime: r === "boy" ? () => o?.trackBoyTimeFilled?.() : () => o?.trackGirlTimeFilled?.(),
|
|
1717
1717
|
birthPlace: r === "boy" ? () => o?.trackBoyPlaceOfBirthChosen?.() : () => o?.trackGirlPlaceOfBirthChosen?.()
|
|
1718
1718
|
}[m]?.());
|
|
1719
|
-
},
|
|
1720
|
-
predictions:
|
|
1719
|
+
}, U = (s.birthPlace ?? "").trim(), _ = h ? void 0 : "in", G = "en", {
|
|
1720
|
+
predictions: F,
|
|
1721
1721
|
searchPlaces: re,
|
|
1722
1722
|
clearPredictions: ee,
|
|
1723
1723
|
triggerLoad: v
|
|
1724
1724
|
} = Ki({
|
|
1725
1725
|
apiKey: c,
|
|
1726
|
-
language:
|
|
1727
|
-
restrictCountry:
|
|
1726
|
+
language: G,
|
|
1727
|
+
restrictCountry: _,
|
|
1728
1728
|
deferLoad: !0
|
|
1729
|
-
}),
|
|
1729
|
+
}), M = () => {
|
|
1730
1730
|
r === "boy" ? o?.trackBoyNameSectionClicked?.() : o?.trackGirlNameSectionClicked?.();
|
|
1731
1731
|
}, te = () => {
|
|
1732
1732
|
r === "boy" ? o?.trackBoyDobClicked?.() : o?.trackGirlDobClicked?.();
|
|
@@ -1737,42 +1737,42 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1737
1737
|
}, we = () => {
|
|
1738
1738
|
r === "boy" ? o?.trackBoyPlaceOfBirthClicked?.() : o?.trackGirlPlaceOfBirthClicked?.();
|
|
1739
1739
|
}, le = (m) => String(m).padStart(2, "0"), Pe = (m) => {
|
|
1740
|
-
const
|
|
1741
|
-
if (!
|
|
1742
|
-
const J = Number(
|
|
1740
|
+
const C = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(m);
|
|
1741
|
+
if (!C) return m;
|
|
1742
|
+
const J = Number(C[1]), ne = C[2], me = J >= 12 ? "PM" : "AM";
|
|
1743
1743
|
return `${J % 12 === 0 ? 12 : J % 12}:${ne} ${me}`;
|
|
1744
1744
|
}, ye = (m) => {
|
|
1745
|
-
const
|
|
1746
|
-
if (!
|
|
1747
|
-
const J = Number(
|
|
1745
|
+
const C = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(m);
|
|
1746
|
+
if (!C) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
1747
|
+
const J = Number(C[1]), ne = C[2], me = J >= 12 ? "PM" : "AM";
|
|
1748
1748
|
return { hour12: J % 12 === 0 ? 12 : J % 12, minute: ne, meridiem: me };
|
|
1749
1749
|
}, Te = (m) => {
|
|
1750
|
-
const
|
|
1751
|
-
let ne =
|
|
1750
|
+
const C = Math.min(12, Math.max(1, m.hour12)), J = /^([0-5]\d)$/.test(m.minute) ? m.minute : "00";
|
|
1751
|
+
let ne = C % 12;
|
|
1752
1752
|
return m.meridiem === "PM" && (ne += 12), `${le(ne)}:${J}`;
|
|
1753
1753
|
};
|
|
1754
|
-
return
|
|
1755
|
-
const m = (
|
|
1756
|
-
|
|
1754
|
+
return q(() => {
|
|
1755
|
+
const m = (C) => {
|
|
1756
|
+
H.current && !H.current.contains(C.target) && w(!1);
|
|
1757
1757
|
};
|
|
1758
1758
|
if (p)
|
|
1759
1759
|
return document.addEventListener("mousedown", m), () => document.removeEventListener("mousedown", m);
|
|
1760
|
-
}, [p]),
|
|
1761
|
-
const m = (
|
|
1762
|
-
|
|
1760
|
+
}, [p]), q(() => {
|
|
1761
|
+
const m = (C) => {
|
|
1762
|
+
S.current && (S.current.contains(C.target) || R(!1));
|
|
1763
1763
|
};
|
|
1764
1764
|
return document.addEventListener("mousedown", m), () => document.removeEventListener("mousedown", m);
|
|
1765
|
-
}, []),
|
|
1766
|
-
if (!
|
|
1767
|
-
if (
|
|
1765
|
+
}, []), q(() => {
|
|
1766
|
+
if (!x) return;
|
|
1767
|
+
if (U.length < 2) {
|
|
1768
1768
|
ee();
|
|
1769
1769
|
return;
|
|
1770
1770
|
}
|
|
1771
1771
|
const m = window.setTimeout(async () => {
|
|
1772
|
-
await re(
|
|
1772
|
+
await re(U);
|
|
1773
1773
|
}, 250);
|
|
1774
1774
|
return () => window.clearTimeout(m);
|
|
1775
|
-
}, [
|
|
1775
|
+
}, [U, x, re, ee]), /* @__PURE__ */ e.jsx("div", { className: `${u.personForm} ${f}`, children: /* @__PURE__ */ e.jsxs("div", { className: `${u.card} ${r === "boy" ? u.cardBoy : u.cardGirl}`, children: [
|
|
1776
1776
|
/* @__PURE__ */ e.jsxs("div", { className: u.field, children: [
|
|
1777
1777
|
/* @__PURE__ */ e.jsxs("label", { className: u.label, htmlFor: `${r}-full-name`, children: [
|
|
1778
1778
|
t("formFullName"),
|
|
@@ -1785,9 +1785,9 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1785
1785
|
className: u.input,
|
|
1786
1786
|
type: "text",
|
|
1787
1787
|
value: s.fullName,
|
|
1788
|
-
onClick:
|
|
1788
|
+
onClick: M,
|
|
1789
1789
|
onChange: (m) => {
|
|
1790
|
-
|
|
1790
|
+
k({ fullName: m.target.value }), O("fullName", m.target.value);
|
|
1791
1791
|
},
|
|
1792
1792
|
placeholder: t("formFullNamePlaceholder")
|
|
1793
1793
|
}
|
|
@@ -1806,12 +1806,12 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1806
1806
|
type: "button",
|
|
1807
1807
|
className: u.infoBtn,
|
|
1808
1808
|
"aria-label": t("info"),
|
|
1809
|
-
"aria-expanded":
|
|
1810
|
-
onClick: () =>
|
|
1809
|
+
"aria-expanded": j === "dob",
|
|
1810
|
+
onClick: () => B((m) => m === "dob" ? null : "dob"),
|
|
1811
1811
|
children: /* @__PURE__ */ e.jsx("img", { className: u.infoImg, src: be.info, alt: "", width: 20, height: 20 })
|
|
1812
1812
|
}
|
|
1813
1813
|
),
|
|
1814
|
-
|
|
1814
|
+
j === "dob" && /* @__PURE__ */ e.jsxs("div", { className: u.tooltip, role: "tooltip", children: [
|
|
1815
1815
|
t("formDobInfo"),
|
|
1816
1816
|
/* @__PURE__ */ e.jsx("span", { className: u.tooltipArrow })
|
|
1817
1817
|
] })
|
|
@@ -1824,18 +1824,18 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1824
1824
|
id: `${r}-dob`,
|
|
1825
1825
|
className: u.input,
|
|
1826
1826
|
type: "date",
|
|
1827
|
-
ref:
|
|
1827
|
+
ref: D,
|
|
1828
1828
|
value: s.dateOfBirth,
|
|
1829
1829
|
max: (() => {
|
|
1830
1830
|
const m = /* @__PURE__ */ new Date();
|
|
1831
1831
|
return `${m.getFullYear()}-${le(m.getMonth() + 1)}-${le(m.getDate())}`;
|
|
1832
1832
|
})(),
|
|
1833
1833
|
onClick: () => {
|
|
1834
|
-
te(),
|
|
1834
|
+
te(), D.current?.showPicker?.();
|
|
1835
1835
|
},
|
|
1836
1836
|
onChange: (m) => {
|
|
1837
|
-
const
|
|
1838
|
-
|
|
1837
|
+
const C = m.target.value, J = /* @__PURE__ */ new Date(), ne = `${J.getFullYear()}-${le(J.getMonth() + 1)}-${le(J.getDate())}`;
|
|
1838
|
+
C && C > ne || (k({ dateOfBirth: C }), O("dateOfBirth", C));
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|
|
1841
1841
|
),
|
|
@@ -1845,7 +1845,7 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1845
1845
|
type: "button",
|
|
1846
1846
|
className: u.iconBtn,
|
|
1847
1847
|
"aria-label": "Select date",
|
|
1848
|
-
onClick: () =>
|
|
1848
|
+
onClick: () => D.current?.showPicker?.(),
|
|
1849
1849
|
children: /* @__PURE__ */ e.jsx("img", { src: be.date, alt: "", width: 20, height: 20 })
|
|
1850
1850
|
}
|
|
1851
1851
|
)
|
|
@@ -1864,18 +1864,18 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1864
1864
|
type: "button",
|
|
1865
1865
|
className: u.infoBtn,
|
|
1866
1866
|
"aria-label": t("info"),
|
|
1867
|
-
"aria-expanded":
|
|
1868
|
-
onClick: () =>
|
|
1867
|
+
"aria-expanded": j === "time",
|
|
1868
|
+
onClick: () => B((m) => m === "time" ? null : "time"),
|
|
1869
1869
|
children: /* @__PURE__ */ e.jsx("img", { className: u.infoImg, src: be.info, alt: "", width: 20, height: 20 })
|
|
1870
1870
|
}
|
|
1871
1871
|
),
|
|
1872
|
-
|
|
1872
|
+
j === "time" && /* @__PURE__ */ e.jsxs("div", { className: u.tooltip, role: "tooltip", children: [
|
|
1873
1873
|
t("formBirthTimeInfo"),
|
|
1874
1874
|
/* @__PURE__ */ e.jsx("span", { className: u.tooltipArrow })
|
|
1875
1875
|
] })
|
|
1876
1876
|
] })
|
|
1877
1877
|
] }),
|
|
1878
|
-
/* @__PURE__ */ e.jsxs("div", { className: u.inputWrap, ref:
|
|
1878
|
+
/* @__PURE__ */ e.jsxs("div", { className: u.inputWrap, ref: H, children: [
|
|
1879
1879
|
/* @__PURE__ */ e.jsx(
|
|
1880
1880
|
"input",
|
|
1881
1881
|
{
|
|
@@ -1917,8 +1917,8 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1917
1917
|
className: u.timePickerInput,
|
|
1918
1918
|
value: b.hour12,
|
|
1919
1919
|
onChange: (m) => {
|
|
1920
|
-
const
|
|
1921
|
-
|
|
1920
|
+
const C = parseInt(m.target.value, 10);
|
|
1921
|
+
C >= 1 && C <= 12 && g({ ...b, hour12: C });
|
|
1922
1922
|
}
|
|
1923
1923
|
}
|
|
1924
1924
|
)
|
|
@@ -1933,8 +1933,8 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1933
1933
|
className: u.timePickerInput,
|
|
1934
1934
|
value: b.minute,
|
|
1935
1935
|
onChange: (m) => {
|
|
1936
|
-
const
|
|
1937
|
-
|
|
1936
|
+
const C = m.target.value.replace(/\D/g, "");
|
|
1937
|
+
C.length <= 2 && (!C || parseInt(C, 10) < 60) && g({ ...b, minute: C.padStart(2, "0") });
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
1940
|
)
|
|
@@ -1970,7 +1970,7 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1970
1970
|
className: u.timePickerApply,
|
|
1971
1971
|
onClick: () => {
|
|
1972
1972
|
const m = Te(b);
|
|
1973
|
-
|
|
1973
|
+
k({ birthTime: m }), O("birthTime", m), w(!1);
|
|
1974
1974
|
},
|
|
1975
1975
|
children: t("formApply") || "Apply"
|
|
1976
1976
|
}
|
|
@@ -1986,7 +1986,7 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
1986
1986
|
className: u.checkbox,
|
|
1987
1987
|
checked: s.birthTimeUnknown,
|
|
1988
1988
|
onChange: (m) => {
|
|
1989
|
-
ue(),
|
|
1989
|
+
ue(), k({
|
|
1990
1990
|
birthTimeUnknown: m.target.checked,
|
|
1991
1991
|
birthTime: m.target.checked ? "" : s.birthTime
|
|
1992
1992
|
});
|
|
@@ -2013,18 +2013,18 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2013
2013
|
type: "button",
|
|
2014
2014
|
className: u.infoBtn,
|
|
2015
2015
|
"aria-label": t("info"),
|
|
2016
|
-
"aria-expanded":
|
|
2017
|
-
onClick: () =>
|
|
2016
|
+
"aria-expanded": j === "place",
|
|
2017
|
+
onClick: () => B((m) => m === "place" ? null : "place"),
|
|
2018
2018
|
children: /* @__PURE__ */ e.jsx("img", { className: u.infoImg, src: be.info, alt: "", width: 20, height: 20 })
|
|
2019
2019
|
}
|
|
2020
2020
|
),
|
|
2021
|
-
|
|
2021
|
+
j === "place" && /* @__PURE__ */ e.jsxs("div", { className: u.tooltip, role: "tooltip", children: [
|
|
2022
2022
|
t("formBirthPlaceInfo"),
|
|
2023
2023
|
/* @__PURE__ */ e.jsx("span", { className: u.tooltipArrow })
|
|
2024
2024
|
] })
|
|
2025
2025
|
] })
|
|
2026
2026
|
] }),
|
|
2027
|
-
/* @__PURE__ */ e.jsxs("div", { className: u.inputWrap, ref:
|
|
2027
|
+
/* @__PURE__ */ e.jsxs("div", { className: u.inputWrap, ref: S, children: [
|
|
2028
2028
|
/* @__PURE__ */ e.jsx(
|
|
2029
2029
|
"input",
|
|
2030
2030
|
{
|
|
@@ -2033,24 +2033,24 @@ const zi = (t, s) => typeof window > "u" || window.google?.maps?.places ? Promis
|
|
|
2033
2033
|
type: "text",
|
|
2034
2034
|
value: s.birthPlace,
|
|
2035
2035
|
onChange: (m) => {
|
|
2036
|
-
const
|
|
2037
|
-
|
|
2036
|
+
const C = m.target.value;
|
|
2037
|
+
k({ birthPlace: C }), R(!0);
|
|
2038
2038
|
},
|
|
2039
2039
|
onFocus: () => {
|
|
2040
|
-
we(),
|
|
2040
|
+
we(), R(!0), v();
|
|
2041
2041
|
},
|
|
2042
2042
|
placeholder: t("formBirthPlacePlaceholder"),
|
|
2043
2043
|
autoComplete: "address-level2"
|
|
2044
2044
|
}
|
|
2045
2045
|
),
|
|
2046
2046
|
/* @__PURE__ */ e.jsx("span", { className: u.iconBtn, "aria-hidden": !0, children: /* @__PURE__ */ e.jsx("img", { src: be.location, alt: "", width: 20, height: 20 }) }),
|
|
2047
|
-
|
|
2047
|
+
x && F.length > 0 && /* @__PURE__ */ e.jsx("div", { className: u.suggestions, role: "listbox", children: F.slice(0, 8).map((m) => /* @__PURE__ */ e.jsxs(
|
|
2048
2048
|
"button",
|
|
2049
2049
|
{
|
|
2050
2050
|
type: "button",
|
|
2051
2051
|
className: u.suggestionItem,
|
|
2052
2052
|
onClick: () => {
|
|
2053
|
-
|
|
2053
|
+
k({ birthPlace: m.description }), O("birthPlace", m.description), ee(), R(!1);
|
|
2054
2054
|
},
|
|
2055
2055
|
children: [
|
|
2056
2056
|
/* @__PURE__ */ e.jsx("span", { className: u.suggestionMain, children: m.structured_formatting?.main_text ?? m.description }),
|
|
@@ -2188,45 +2188,45 @@ const Qi = {
|
|
|
2188
2188
|
analytics: h,
|
|
2189
2189
|
className: o = ""
|
|
2190
2190
|
}) => {
|
|
2191
|
-
const
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
}, [c]),
|
|
2195
|
-
if (!
|
|
2196
|
-
const v = (
|
|
2197
|
-
|
|
2191
|
+
const f = K(null), [p, w] = $(!1), [b, g] = $(!1), [j, B] = $(!1), [x, R] = $(!1), [H, D] = $(""), [S, T] = $(c ? "+1" : "+91"), k = K(null), O = K(null), U = (v) => v.replace(/\D/g, "").slice(0, 10), _ = H.trim().toLowerCase(), G = bt.filter((v) => _ ? v.country.toLowerCase().includes(_) || v.code.includes(_) : !0);
|
|
2192
|
+
q(() => {
|
|
2193
|
+
T(c ? "+1" : "+91");
|
|
2194
|
+
}, [c]), q(() => {
|
|
2195
|
+
if (!x) return;
|
|
2196
|
+
const v = (M) => {
|
|
2197
|
+
k.current && !k.current.contains(M.target) && R(!1);
|
|
2198
2198
|
};
|
|
2199
2199
|
return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
|
|
2200
|
-
}, [
|
|
2200
|
+
}, [x]), q(() => {
|
|
2201
2201
|
if (p || !h?.trackKundliMatchingFormView) return;
|
|
2202
2202
|
const v = new IntersectionObserver(
|
|
2203
|
-
(
|
|
2204
|
-
|
|
2203
|
+
(M) => {
|
|
2204
|
+
M.forEach((te) => {
|
|
2205
2205
|
te.isIntersecting && !p && (h.trackKundliMatchingFormView?.(), w(!0));
|
|
2206
2206
|
});
|
|
2207
2207
|
},
|
|
2208
2208
|
{ threshold: 0.2 }
|
|
2209
2209
|
);
|
|
2210
|
-
return
|
|
2211
|
-
|
|
2210
|
+
return f.current && v.observe(f.current), () => {
|
|
2211
|
+
f.current && v.unobserve(f.current);
|
|
2212
2212
|
};
|
|
2213
2213
|
}, [h, p]);
|
|
2214
|
-
const
|
|
2214
|
+
const F = (v) => {
|
|
2215
2215
|
l({ boy: v });
|
|
2216
2216
|
}, re = (v) => {
|
|
2217
2217
|
l({ girl: v });
|
|
2218
2218
|
}, ee = (v) => {
|
|
2219
2219
|
l({ reportLanguage: v });
|
|
2220
2220
|
};
|
|
2221
|
-
return /* @__PURE__ */ e.jsx("div", { className: `${
|
|
2222
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2223
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
2221
|
+
return /* @__PURE__ */ e.jsx("div", { className: `${W.formSection} ${o}`, children: /* @__PURE__ */ e.jsxs("div", { className: W.container, children: [
|
|
2222
|
+
/* @__PURE__ */ e.jsxs("div", { className: W.personSection, children: [
|
|
2223
|
+
/* @__PURE__ */ e.jsx("h2", { className: W.sectionTitle, children: t("formBoyTitle") }),
|
|
2224
2224
|
/* @__PURE__ */ e.jsx(
|
|
2225
2225
|
ht,
|
|
2226
2226
|
{
|
|
2227
2227
|
t,
|
|
2228
2228
|
values: s.boy,
|
|
2229
|
-
onChange:
|
|
2229
|
+
onChange: F,
|
|
2230
2230
|
personType: "boy",
|
|
2231
2231
|
googleMapsApiKey: r,
|
|
2232
2232
|
isGlobal: c,
|
|
@@ -2234,8 +2234,8 @@ const Qi = {
|
|
|
2234
2234
|
}
|
|
2235
2235
|
)
|
|
2236
2236
|
] }),
|
|
2237
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2238
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
2237
|
+
/* @__PURE__ */ e.jsxs("div", { className: W.personSection, children: [
|
|
2238
|
+
/* @__PURE__ */ e.jsx("h2", { className: W.sectionTitle, children: t("formGirlTitle") }),
|
|
2239
2239
|
/* @__PURE__ */ e.jsx(
|
|
2240
2240
|
ht,
|
|
2241
2241
|
{
|
|
@@ -2249,41 +2249,41 @@ const Qi = {
|
|
|
2249
2249
|
}
|
|
2250
2250
|
)
|
|
2251
2251
|
] }),
|
|
2252
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2253
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
2254
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2252
|
+
/* @__PURE__ */ e.jsxs("div", { className: W.personSection, children: [
|
|
2253
|
+
/* @__PURE__ */ e.jsx("h2", { className: W.sectionTitle, children: t("formContactTitle") }),
|
|
2254
|
+
/* @__PURE__ */ e.jsxs("div", { className: W.contactSection, children: [
|
|
2255
2255
|
/* @__PURE__ */ e.jsx(
|
|
2256
2256
|
ot,
|
|
2257
2257
|
{
|
|
2258
2258
|
label: t("formPhone"),
|
|
2259
2259
|
required: !c,
|
|
2260
2260
|
htmlFor: "kundli-matching-phone",
|
|
2261
|
-
children: /* @__PURE__ */ e.jsxs("div", { className:
|
|
2262
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2263
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2261
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: W.isdWrap, ref: k, children: [
|
|
2262
|
+
/* @__PURE__ */ e.jsxs("div", { className: W.phoneInputGroup, children: [
|
|
2263
|
+
/* @__PURE__ */ e.jsx("div", { className: W.isdSelectWrap, children: /* @__PURE__ */ e.jsx(
|
|
2264
2264
|
"button",
|
|
2265
2265
|
{
|
|
2266
2266
|
type: "button",
|
|
2267
|
-
className:
|
|
2267
|
+
className: W.isdSelectTrigger,
|
|
2268
2268
|
"aria-haspopup": "listbox",
|
|
2269
|
-
"aria-expanded":
|
|
2269
|
+
"aria-expanded": x,
|
|
2270
2270
|
onClick: () => {
|
|
2271
|
-
|
|
2271
|
+
R((v) => !v), D("");
|
|
2272
2272
|
},
|
|
2273
|
-
children:
|
|
2273
|
+
children: S
|
|
2274
2274
|
}
|
|
2275
2275
|
) }),
|
|
2276
2276
|
/* @__PURE__ */ e.jsx(
|
|
2277
2277
|
"input",
|
|
2278
2278
|
{
|
|
2279
2279
|
id: "kundli-matching-phone",
|
|
2280
|
-
className:
|
|
2280
|
+
className: W.phoneInput,
|
|
2281
2281
|
type: "tel",
|
|
2282
2282
|
value: s.phone,
|
|
2283
2283
|
onFocus: () => h?.trackPhoneSectionClicked?.(),
|
|
2284
2284
|
onChange: (v) => {
|
|
2285
|
-
const
|
|
2286
|
-
l({ phone:
|
|
2285
|
+
const M = U(v.target.value);
|
|
2286
|
+
l({ phone: M }), M.length > 0 && !b && (h?.trackPhoneSectionFilled?.(), g(!0));
|
|
2287
2287
|
},
|
|
2288
2288
|
placeholder: t("formPhonePlaceholder"),
|
|
2289
2289
|
autoComplete: "tel",
|
|
@@ -2295,42 +2295,42 @@ const Qi = {
|
|
|
2295
2295
|
}
|
|
2296
2296
|
)
|
|
2297
2297
|
] }),
|
|
2298
|
-
|
|
2298
|
+
x && /* @__PURE__ */ e.jsxs(
|
|
2299
2299
|
"div",
|
|
2300
2300
|
{
|
|
2301
|
-
className:
|
|
2301
|
+
className: W.isdDropdown,
|
|
2302
2302
|
role: "listbox",
|
|
2303
2303
|
"aria-label": "ISD code options",
|
|
2304
2304
|
children: [
|
|
2305
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2305
|
+
/* @__PURE__ */ e.jsx("div", { className: W.isdSearchWrap, children: /* @__PURE__ */ e.jsx(
|
|
2306
2306
|
"input",
|
|
2307
2307
|
{
|
|
2308
|
-
ref:
|
|
2308
|
+
ref: O,
|
|
2309
2309
|
type: "text",
|
|
2310
|
-
value:
|
|
2311
|
-
onChange: (v) =>
|
|
2310
|
+
value: H,
|
|
2311
|
+
onChange: (v) => D(v.target.value),
|
|
2312
2312
|
placeholder: "Search country",
|
|
2313
|
-
className:
|
|
2313
|
+
className: W.isdSearchInput,
|
|
2314
2314
|
"aria-label": "Search country"
|
|
2315
2315
|
}
|
|
2316
2316
|
) }),
|
|
2317
|
-
|
|
2317
|
+
G.length > 0 ? G.map((v) => /* @__PURE__ */ e.jsxs(
|
|
2318
2318
|
"button",
|
|
2319
2319
|
{
|
|
2320
2320
|
type: "button",
|
|
2321
2321
|
role: "option",
|
|
2322
|
-
"aria-selected": v.code ===
|
|
2323
|
-
className: `${
|
|
2322
|
+
"aria-selected": v.code === S,
|
|
2323
|
+
className: `${W.isdOption} ${v.code === S ? W.isdOptionActive : ""}`,
|
|
2324
2324
|
onClick: () => {
|
|
2325
|
-
|
|
2325
|
+
T(v.code), R(!1), D("");
|
|
2326
2326
|
},
|
|
2327
2327
|
children: [
|
|
2328
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2329
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2328
|
+
/* @__PURE__ */ e.jsx("span", { className: W.isdCountryName, children: v.country }),
|
|
2329
|
+
/* @__PURE__ */ e.jsx("span", { className: W.isdCountryCode, children: v.code })
|
|
2330
2330
|
]
|
|
2331
2331
|
},
|
|
2332
2332
|
`${v.code}-${v.country}`
|
|
2333
|
-
)) : /* @__PURE__ */ e.jsx("div", { className:
|
|
2333
|
+
)) : /* @__PURE__ */ e.jsx("div", { className: W.isdNoResult, children: "No country found" })
|
|
2334
2334
|
]
|
|
2335
2335
|
}
|
|
2336
2336
|
)
|
|
@@ -2348,12 +2348,12 @@ const Qi = {
|
|
|
2348
2348
|
"input",
|
|
2349
2349
|
{
|
|
2350
2350
|
id: "kundli-matching-email",
|
|
2351
|
-
className:
|
|
2351
|
+
className: W.input,
|
|
2352
2352
|
type: "email",
|
|
2353
2353
|
value: s.email,
|
|
2354
2354
|
onFocus: () => h?.trackEmailSectionClicked?.(),
|
|
2355
2355
|
onChange: (v) => {
|
|
2356
|
-
l({ email: v.target.value }), v.target.value.trim().length > 0 && !
|
|
2356
|
+
l({ email: v.target.value }), v.target.value.trim().length > 0 && !j && (h?.trackEmailSectionFilled?.(), B(!0));
|
|
2357
2357
|
},
|
|
2358
2358
|
placeholder: t("formEmailPlaceholder"),
|
|
2359
2359
|
autoComplete: "email",
|
|
@@ -2365,8 +2365,8 @@ const Qi = {
|
|
|
2365
2365
|
)
|
|
2366
2366
|
] })
|
|
2367
2367
|
] }),
|
|
2368
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2369
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
2368
|
+
/* @__PURE__ */ e.jsxs("div", { className: W.languageSection, children: [
|
|
2369
|
+
/* @__PURE__ */ e.jsx("h2", { className: W.sectionTitle, children: t("formLanguageTitle") }),
|
|
2370
2370
|
/* @__PURE__ */ e.jsx(
|
|
2371
2371
|
Ji,
|
|
2372
2372
|
{
|
|
@@ -2446,7 +2446,7 @@ const Qi = {
|
|
|
2446
2446
|
const h = ze(
|
|
2447
2447
|
() => ln(s, r),
|
|
2448
2448
|
[s, r]
|
|
2449
|
-
), o = h === null,
|
|
2449
|
+
), o = h === null, f = (p) => {
|
|
2450
2450
|
if (p.preventDefault(), !o) {
|
|
2451
2451
|
if (h) {
|
|
2452
2452
|
const b = {
|
|
@@ -2473,7 +2473,7 @@ const Qi = {
|
|
|
2473
2473
|
/* @__PURE__ */ e.jsx(
|
|
2474
2474
|
Jt,
|
|
2475
2475
|
{
|
|
2476
|
-
onClick:
|
|
2476
|
+
onClick: f,
|
|
2477
2477
|
className: o ? pt.ctaCompleted : pt.ctaIncomplete,
|
|
2478
2478
|
children: t("ctaButton")
|
|
2479
2479
|
}
|
|
@@ -2499,7 +2499,7 @@ const Qi = {
|
|
|
2499
2499
|
) }), hn = () => /* @__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" }) }), pn = () => /* @__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: [
|
|
2500
2500
|
/* @__PURE__ */ e.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
2501
2501
|
/* @__PURE__ */ e.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
2502
|
-
] }), gn = "_overlay_1b9s5_2", fn = "_sheet_1b9s5_12", _n = "_header_1b9s5_36", bn = "_backBtn_1b9s5_48", yn = "_title_1b9s5_66", vn = "_plansContainer_1b9s5_78", xn = "_planCard_1b9s5_87", jn = "_withBadgeSpacing_1b9s5_101", kn = "_planCardSelected_1b9s5_105", Nn = "_planCardPopular_1b9s5_110", wn = "_popularBadge_1b9s5_119", Pn = "_planCardInner_1b9s5_137", Tn = "_planTitleRow_1b9s5_142", Cn = "_planTitle_1b9s5_142", In = "_radioCircle_1b9s5_157", Sn = "_radioChecked_1b9s5_170", Rn = "_radioInner_1b9s5_175", En = "_priceRow_1b9s5_183", Bn = "_price_1b9s5_183", An = "_originalPrice_1b9s5_196", Dn = "_savingsBadge_1b9s5_203", Ln = "_featureList_1b9s5_213", On = "_featureItem_1b9s5_222", Mn = "_featureIcon_1b9s5_228", $n = "_featureText_1b9s5_234", Fn = "_astrologerHeading_1b9s5_241", Wn = "_astrologerList_1b9s5_248", Un = "_astrologerCard_1b9s5_262", zn = "_astrologerAvatar_1b9s5_276", Kn = "_astrologerAvatarPlaceholder_1b9s5_293", Gn = "_astrologerTop_1b9s5_299", Hn = "_astrologerBasicInfo_1b9s5_305", Vn = "_astrologerName_1b9s5_312", qn = "_astrologerExp_1b9s5_321", Yn = "_astrologerDivider_1b9s5_327", Jn = "_planDivider_1b9s5_333", Qn = "_astrologerCertList_1b9s5_340", Xn = "_astrologerCertItem_1b9s5_346", Zn = "_bullet_1b9s5_354", eo = "_footer_1b9s5_359", to = "_proceedBtn_1b9s5_369",
|
|
2502
|
+
] }), gn = "_overlay_1b9s5_2", fn = "_sheet_1b9s5_12", _n = "_header_1b9s5_36", bn = "_backBtn_1b9s5_48", yn = "_title_1b9s5_66", vn = "_plansContainer_1b9s5_78", xn = "_planCard_1b9s5_87", jn = "_withBadgeSpacing_1b9s5_101", kn = "_planCardSelected_1b9s5_105", Nn = "_planCardPopular_1b9s5_110", wn = "_popularBadge_1b9s5_119", Pn = "_planCardInner_1b9s5_137", Tn = "_planTitleRow_1b9s5_142", Cn = "_planTitle_1b9s5_142", In = "_radioCircle_1b9s5_157", Sn = "_radioChecked_1b9s5_170", Rn = "_radioInner_1b9s5_175", En = "_priceRow_1b9s5_183", Bn = "_price_1b9s5_183", An = "_originalPrice_1b9s5_196", Dn = "_savingsBadge_1b9s5_203", Ln = "_featureList_1b9s5_213", On = "_featureItem_1b9s5_222", Mn = "_featureIcon_1b9s5_228", $n = "_featureText_1b9s5_234", Fn = "_astrologerHeading_1b9s5_241", Wn = "_astrologerList_1b9s5_248", Un = "_astrologerCard_1b9s5_262", zn = "_astrologerAvatar_1b9s5_276", Kn = "_astrologerAvatarPlaceholder_1b9s5_293", Gn = "_astrologerTop_1b9s5_299", Hn = "_astrologerBasicInfo_1b9s5_305", Vn = "_astrologerName_1b9s5_312", qn = "_astrologerExp_1b9s5_321", Yn = "_astrologerDivider_1b9s5_327", Jn = "_planDivider_1b9s5_333", Qn = "_astrologerCertList_1b9s5_340", Xn = "_astrologerCertItem_1b9s5_346", Zn = "_bullet_1b9s5_354", eo = "_footer_1b9s5_359", to = "_proceedBtn_1b9s5_369", N = {
|
|
2503
2503
|
overlay: gn,
|
|
2504
2504
|
sheet: fn,
|
|
2505
2505
|
header: _n,
|
|
@@ -2541,36 +2541,36 @@ const Qi = {
|
|
|
2541
2541
|
bullet: Zn,
|
|
2542
2542
|
footer: eo,
|
|
2543
2543
|
proceedBtn: to
|
|
2544
|
-
}, ao = ({ title: t, onBack: s }) => /* @__PURE__ */ e.jsxs("div", { className:
|
|
2544
|
+
}, ao = ({ title: t, onBack: s }) => /* @__PURE__ */ e.jsxs("div", { className: N.header, children: [
|
|
2545
2545
|
/* @__PURE__ */ e.jsx(
|
|
2546
2546
|
"button",
|
|
2547
2547
|
{
|
|
2548
|
-
className:
|
|
2548
|
+
className: N.backBtn,
|
|
2549
2549
|
onClick: s,
|
|
2550
2550
|
"aria-label": "Go back",
|
|
2551
2551
|
type: "button",
|
|
2552
2552
|
children: /* @__PURE__ */ e.jsx(hn, {})
|
|
2553
2553
|
}
|
|
2554
2554
|
),
|
|
2555
|
-
/* @__PURE__ */ e.jsx("h2", { className:
|
|
2556
|
-
] }), ro = ({ features: t, t: s }) => /* @__PURE__ */ e.jsx("ul", { className:
|
|
2557
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2558
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2559
|
-
] }, r)) }), so = ({ astrologer: t }) => /* @__PURE__ */ e.jsxs("div", { className:
|
|
2560
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2561
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2562
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2563
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
2564
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
2555
|
+
/* @__PURE__ */ e.jsx("h2", { className: N.title, children: t })
|
|
2556
|
+
] }), ro = ({ features: t, t: s }) => /* @__PURE__ */ e.jsx("ul", { className: N.featureList, "aria-label": "Plan features", children: t.map((l, r) => /* @__PURE__ */ e.jsxs("li", { className: N.featureItem, children: [
|
|
2557
|
+
/* @__PURE__ */ e.jsx("span", { className: N.featureIcon, children: l.included ? /* @__PURE__ */ e.jsx(un, {}) : /* @__PURE__ */ e.jsx(mn, {}) }),
|
|
2558
|
+
/* @__PURE__ */ e.jsx("span", { className: N.featureText, children: s?.(l.text) ?? l.text })
|
|
2559
|
+
] }, r)) }), so = ({ astrologer: t }) => /* @__PURE__ */ e.jsxs("div", { className: N.astrologerCard, children: [
|
|
2560
|
+
/* @__PURE__ */ e.jsxs("div", { className: N.astrologerTop, children: [
|
|
2561
|
+
/* @__PURE__ */ e.jsx("div", { className: N.astrologerAvatar, "aria-hidden": !0, children: t.imageUrl ? /* @__PURE__ */ e.jsx("img", { src: t.imageUrl, alt: t.name, width: 40, height: 40 }) : /* @__PURE__ */ e.jsx("span", { className: N.astrologerAvatarPlaceholder, children: t.name.charAt(0) }) }),
|
|
2562
|
+
/* @__PURE__ */ e.jsxs("div", { className: N.astrologerBasicInfo, children: [
|
|
2563
|
+
/* @__PURE__ */ e.jsx("p", { className: N.astrologerName, children: t.name }),
|
|
2564
|
+
/* @__PURE__ */ e.jsx("p", { className: N.astrologerExp, children: t.experience })
|
|
2565
2565
|
] })
|
|
2566
2566
|
] }),
|
|
2567
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2568
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2569
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2567
|
+
/* @__PURE__ */ e.jsx("div", { className: N.astrologerDivider }),
|
|
2568
|
+
/* @__PURE__ */ e.jsx("div", { className: N.astrologerCertList, children: t.certifications.map((s, l) => /* @__PURE__ */ e.jsxs("p", { className: N.astrologerCertItem, children: [
|
|
2569
|
+
/* @__PURE__ */ e.jsx("span", { className: N.bullet, children: "•" }),
|
|
2570
2570
|
" ",
|
|
2571
2571
|
s
|
|
2572
2572
|
] }, l)) })
|
|
2573
|
-
] }), io = ({ label: t }) => /* @__PURE__ */ e.jsxs("div", { className:
|
|
2573
|
+
] }), io = ({ label: t }) => /* @__PURE__ */ e.jsxs("div", { className: N.popularBadge, "aria-label": t, children: [
|
|
2574
2574
|
/* @__PURE__ */ e.jsx(pn, {}),
|
|
2575
2575
|
/* @__PURE__ */ e.jsx("span", { children: t })
|
|
2576
2576
|
] }), no = ({ plan: t, isSelected: s, onSelect: l, t: r }) => {
|
|
@@ -2581,9 +2581,9 @@ const Qi = {
|
|
|
2581
2581
|
"div",
|
|
2582
2582
|
{
|
|
2583
2583
|
className: [
|
|
2584
|
-
|
|
2585
|
-
s ?
|
|
2586
|
-
s &&
|
|
2584
|
+
N.planCard,
|
|
2585
|
+
s ? N.planCardSelected : "",
|
|
2586
|
+
s && N.planCardPopular
|
|
2587
2587
|
].filter(Boolean).join(" "),
|
|
2588
2588
|
onClick: c,
|
|
2589
2589
|
role: "radio",
|
|
@@ -2593,28 +2593,28 @@ const Qi = {
|
|
|
2593
2593
|
"data-plan-id": t.id,
|
|
2594
2594
|
children: [
|
|
2595
2595
|
t.badge && /* @__PURE__ */ e.jsx(io, { label: t.badge }),
|
|
2596
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2597
|
-
/* @__PURE__ */ e.jsxs("div", { className: `${
|
|
2598
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2596
|
+
/* @__PURE__ */ e.jsxs("div", { className: N.planCardInner, children: [
|
|
2597
|
+
/* @__PURE__ */ e.jsxs("div", { className: `${N.planTitleRow} ${t.badge ? N.withBadgeSpacing : ""}`, children: [
|
|
2598
|
+
/* @__PURE__ */ e.jsx("span", { className: N.planTitle, children: t.title }),
|
|
2599
2599
|
/* @__PURE__ */ e.jsx(
|
|
2600
2600
|
"span",
|
|
2601
2601
|
{
|
|
2602
|
-
className: `${
|
|
2602
|
+
className: `${N.radioCircle} ${s ? N.radioChecked : ""}`,
|
|
2603
2603
|
"aria-hidden": !0,
|
|
2604
|
-
children: s && /* @__PURE__ */ e.jsx("span", { className:
|
|
2604
|
+
children: s && /* @__PURE__ */ e.jsx("span", { className: N.radioInner })
|
|
2605
2605
|
}
|
|
2606
2606
|
)
|
|
2607
2607
|
] }),
|
|
2608
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2609
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2610
|
-
t.originalPrice && /* @__PURE__ */ e.jsx("span", { className:
|
|
2611
|
-
t.savingsLabel && /* @__PURE__ */ e.jsx("span", { className:
|
|
2608
|
+
/* @__PURE__ */ e.jsxs("div", { className: N.priceRow, children: [
|
|
2609
|
+
/* @__PURE__ */ e.jsx("span", { className: N.price, children: t.price }),
|
|
2610
|
+
t.originalPrice && /* @__PURE__ */ e.jsx("span", { className: N.originalPrice, children: t.originalPrice }),
|
|
2611
|
+
t.savingsLabel && /* @__PURE__ */ e.jsx("span", { className: N.savingsBadge, children: t.savingsLabel })
|
|
2612
2612
|
] }),
|
|
2613
2613
|
/* @__PURE__ */ e.jsx(ro, { features: t.features, t: r }),
|
|
2614
|
-
t.astrologers && /* @__PURE__ */ e.jsx("div", { className:
|
|
2614
|
+
t.astrologers && /* @__PURE__ */ e.jsx("div", { className: N.planDivider }),
|
|
2615
2615
|
t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2616
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
2617
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2616
|
+
/* @__PURE__ */ e.jsx("p", { className: N.astrologerHeading, children: "We will assign you a top astrologer from below" }),
|
|
2617
|
+
/* @__PURE__ */ e.jsx("div", { className: N.astrologerList, role: "list", children: t.astrologers.map((o, f) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(so, { astrologer: o, t: r }) }, f)) })
|
|
2618
2618
|
] })
|
|
2619
2619
|
] })
|
|
2620
2620
|
]
|
|
@@ -2689,15 +2689,15 @@ const Qi = {
|
|
|
2689
2689
|
plans: c,
|
|
2690
2690
|
onProceed: h,
|
|
2691
2691
|
isGlobal: o = !1,
|
|
2692
|
-
t:
|
|
2692
|
+
t: f
|
|
2693
2693
|
}) => {
|
|
2694
2694
|
const p = c ?? co(o), w = l?.id || p.find((g) => g.badge)?.id || p[0]?.id || "", b = K(null);
|
|
2695
|
-
return
|
|
2695
|
+
return q(() => {
|
|
2696
2696
|
if (t && !l) {
|
|
2697
|
-
const g = p.find((
|
|
2697
|
+
const g = p.find((j) => j.badge) ?? p[0];
|
|
2698
2698
|
g && r(g);
|
|
2699
2699
|
}
|
|
2700
|
-
}, [t, p, l, r]),
|
|
2700
|
+
}, [t, p, l, r]), q(() => {
|
|
2701
2701
|
if (!t) return;
|
|
2702
2702
|
const g = document.body.style.overflow;
|
|
2703
2703
|
return document.body.style.overflow = "hidden", () => {
|
|
@@ -2706,35 +2706,35 @@ const Qi = {
|
|
|
2706
2706
|
}, [t]), t ? /* @__PURE__ */ e.jsx(
|
|
2707
2707
|
"div",
|
|
2708
2708
|
{
|
|
2709
|
-
className:
|
|
2709
|
+
className: N.overlay,
|
|
2710
2710
|
role: "dialog",
|
|
2711
2711
|
"aria-modal": "true",
|
|
2712
|
-
"aria-label":
|
|
2713
|
-
children: /* @__PURE__ */ e.jsxs("div", { ref: b, className:
|
|
2712
|
+
"aria-label": f?.("Choose Your Kundli Plan") ?? "Choose Your Kundli Plan",
|
|
2713
|
+
children: /* @__PURE__ */ e.jsxs("div", { ref: b, className: N.sheet, children: [
|
|
2714
2714
|
/* @__PURE__ */ e.jsx(
|
|
2715
2715
|
ao,
|
|
2716
2716
|
{
|
|
2717
|
-
title:
|
|
2717
|
+
title: f?.("Choose Your Kundli Plan") ?? "Choose Your Kundli Plan",
|
|
2718
2718
|
onBack: s
|
|
2719
2719
|
}
|
|
2720
2720
|
),
|
|
2721
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2721
|
+
/* @__PURE__ */ e.jsx("div", { className: N.plansContainer, role: "radiogroup", "aria-label": "Kundli matching plans", children: p.map((g) => /* @__PURE__ */ e.jsx(
|
|
2722
2722
|
no,
|
|
2723
2723
|
{
|
|
2724
2724
|
plan: g,
|
|
2725
2725
|
isSelected: g.id === w,
|
|
2726
|
-
t:
|
|
2727
|
-
onSelect: (
|
|
2728
|
-
const
|
|
2729
|
-
|
|
2726
|
+
t: f,
|
|
2727
|
+
onSelect: (j) => {
|
|
2728
|
+
const B = p.find((x) => x.id === j);
|
|
2729
|
+
B && r(B);
|
|
2730
2730
|
}
|
|
2731
2731
|
},
|
|
2732
2732
|
g.id
|
|
2733
2733
|
)) }),
|
|
2734
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2734
|
+
/* @__PURE__ */ e.jsx("div", { className: N.footer, children: /* @__PURE__ */ e.jsx(
|
|
2735
2735
|
"button",
|
|
2736
2736
|
{
|
|
2737
|
-
className:
|
|
2737
|
+
className: N.proceedBtn,
|
|
2738
2738
|
disabled: !l,
|
|
2739
2739
|
onClick: () => {
|
|
2740
2740
|
l && (h(l), s());
|
|
@@ -2769,18 +2769,18 @@ const Qi = {
|
|
|
2769
2769
|
plans: c,
|
|
2770
2770
|
onProceed: h,
|
|
2771
2771
|
analytics: o,
|
|
2772
|
-
onLocaleChange:
|
|
2772
|
+
onLocaleChange: f,
|
|
2773
2773
|
children: p
|
|
2774
2774
|
}) => {
|
|
2775
|
-
const [w, b] =
|
|
2776
|
-
|
|
2777
|
-
if (
|
|
2778
|
-
|
|
2775
|
+
const [w, b] = $(t ?? "en"), [g, j] = $(uo), B = K(!0);
|
|
2776
|
+
q(() => {
|
|
2777
|
+
if (B.current) {
|
|
2778
|
+
B.current = !1;
|
|
2779
2779
|
return;
|
|
2780
2780
|
}
|
|
2781
|
-
|
|
2782
|
-
}, [w,
|
|
2783
|
-
const
|
|
2781
|
+
f?.(w);
|
|
2782
|
+
}, [w, f]);
|
|
2783
|
+
const x = ze(
|
|
2784
2784
|
() => ({
|
|
2785
2785
|
locale: t,
|
|
2786
2786
|
showLanguageSelector: s,
|
|
@@ -2789,7 +2789,7 @@ const Qi = {
|
|
|
2789
2789
|
plans: c,
|
|
2790
2790
|
onProceed: h,
|
|
2791
2791
|
analytics: o,
|
|
2792
|
-
onLocaleChange:
|
|
2792
|
+
onLocaleChange: f
|
|
2793
2793
|
}),
|
|
2794
2794
|
[
|
|
2795
2795
|
t,
|
|
@@ -2799,19 +2799,19 @@ const Qi = {
|
|
|
2799
2799
|
c,
|
|
2800
2800
|
h,
|
|
2801
2801
|
o,
|
|
2802
|
-
|
|
2802
|
+
f
|
|
2803
2803
|
]
|
|
2804
|
-
),
|
|
2804
|
+
), R = ze(
|
|
2805
2805
|
() => ({
|
|
2806
2806
|
locale: w,
|
|
2807
2807
|
setLocale: b,
|
|
2808
|
-
config:
|
|
2808
|
+
config: x,
|
|
2809
2809
|
formValues: g,
|
|
2810
|
-
setFormValues:
|
|
2810
|
+
setFormValues: j
|
|
2811
2811
|
}),
|
|
2812
|
-
[w,
|
|
2812
|
+
[w, x, g]
|
|
2813
2813
|
);
|
|
2814
|
-
return /* @__PURE__ */ e.jsx(Ge.Provider, { value:
|
|
2814
|
+
return /* @__PURE__ */ e.jsx(Ge.Provider, { value: R, children: p });
|
|
2815
2815
|
};
|
|
2816
2816
|
function ko() {
|
|
2817
2817
|
return Ke(Ge);
|
|
@@ -3207,12 +3207,12 @@ function de({
|
|
|
3207
3207
|
children: l
|
|
3208
3208
|
}) {
|
|
3209
3209
|
const r = K(null), c = K(!1);
|
|
3210
|
-
return
|
|
3210
|
+
return q(() => {
|
|
3211
3211
|
const h = r.current;
|
|
3212
3212
|
if (!h) return;
|
|
3213
3213
|
const o = new IntersectionObserver(
|
|
3214
|
-
([
|
|
3215
|
-
!
|
|
3214
|
+
([f]) => {
|
|
3215
|
+
!f?.isIntersecting || c.current || (c.current = !0, s(t));
|
|
3216
3216
|
},
|
|
3217
3217
|
{
|
|
3218
3218
|
threshold: 0.1,
|
|
@@ -3231,7 +3231,7 @@ const No = ({
|
|
|
3231
3231
|
analytics: c,
|
|
3232
3232
|
googleMapsApiKey: h,
|
|
3233
3233
|
plans: o,
|
|
3234
|
-
onProceed:
|
|
3234
|
+
onProceed: f,
|
|
3235
3235
|
onLocaleChange: p
|
|
3236
3236
|
}) => /* @__PURE__ */ e.jsx(
|
|
3237
3237
|
mo,
|
|
@@ -3241,16 +3241,16 @@ const No = ({
|
|
|
3241
3241
|
isGlobal: r,
|
|
3242
3242
|
googleMapsApiKey: h,
|
|
3243
3243
|
plans: o,
|
|
3244
|
-
onProceed:
|
|
3244
|
+
onProceed: f,
|
|
3245
3245
|
analytics: c,
|
|
3246
3246
|
onLocaleChange: p,
|
|
3247
3247
|
children: /* @__PURE__ */ e.jsx(bo, { className: t })
|
|
3248
3248
|
}
|
|
3249
3249
|
);
|
|
3250
3250
|
function bo({ className: t }) {
|
|
3251
|
-
const { locale: s, setLocale: l, config: r, formValues: c, setFormValues: h } = ho(), [o,
|
|
3251
|
+
const { locale: s, setLocale: l, config: r, formValues: c, setFormValues: h } = ho(), [o, f] = $(!1), [p, w] = $(
|
|
3252
3252
|
null
|
|
3253
|
-
), [b, g] =
|
|
3253
|
+
), [b, g] = $(!1), j = K(null), B = K(!1), x = (_) => _o(s, _), R = Ne((_) => {
|
|
3254
3254
|
({
|
|
3255
3255
|
hero: () => r.analytics?.trackHeroSectionViewed?.(),
|
|
3256
3256
|
features: () => r.analytics?.trackFeaturesSectionViewed?.(),
|
|
@@ -3260,46 +3260,46 @@ function bo({ className: t }) {
|
|
|
3260
3260
|
howItWorks: () => r.analytics?.trackHowItWorksSectionViewed?.(),
|
|
3261
3261
|
whyUs: () => r.analytics?.trackWhyUsSectionViewed?.(),
|
|
3262
3262
|
faq: () => r.analytics?.trackFaqSectionViewed?.()
|
|
3263
|
-
})[
|
|
3264
|
-
}, [r.analytics]),
|
|
3265
|
-
|
|
3263
|
+
})[_]?.();
|
|
3264
|
+
}, [r.analytics]), H = r.showLanguageSelector ?? !0;
|
|
3265
|
+
q(() => {
|
|
3266
3266
|
if (!b) return;
|
|
3267
|
-
const
|
|
3268
|
-
|
|
3267
|
+
const _ = (G) => {
|
|
3268
|
+
j.current && !j.current.contains(G.target) && g(!1);
|
|
3269
3269
|
};
|
|
3270
|
-
return document.addEventListener("mousedown",
|
|
3271
|
-
}, [b]),
|
|
3270
|
+
return document.addEventListener("mousedown", _), () => document.removeEventListener("mousedown", _);
|
|
3271
|
+
}, [b]), q(() => {
|
|
3272
3272
|
r.analytics?.trackKundliMatchingPageView?.();
|
|
3273
3273
|
}, [r.analytics]);
|
|
3274
|
-
const
|
|
3275
|
-
h((
|
|
3276
|
-
},
|
|
3274
|
+
const D = (_) => {
|
|
3275
|
+
h((G) => ({ ...G, ..._ }));
|
|
3276
|
+
}, S = () => {
|
|
3277
3277
|
r.analytics?.trackPrimaryCtaClickedL1?.({
|
|
3278
3278
|
avenue: "kundli_matching_form"
|
|
3279
|
-
}),
|
|
3280
|
-
},
|
|
3281
|
-
w(
|
|
3282
|
-
planId:
|
|
3283
|
-
planName:
|
|
3279
|
+
}), B.current = !1, f(!0);
|
|
3280
|
+
}, T = (_) => {
|
|
3281
|
+
w(_), r.analytics?.trackPlanSelected?.({
|
|
3282
|
+
planId: _.id,
|
|
3283
|
+
planName: _.title
|
|
3284
3284
|
});
|
|
3285
|
-
},
|
|
3286
|
-
r.analytics?.trackPlanProceedClicked?.({
|
|
3287
|
-
planId:
|
|
3288
|
-
planName:
|
|
3285
|
+
}, k = (_) => {
|
|
3286
|
+
B.current = !0, r.analytics?.trackPlanProceedClicked?.({
|
|
3287
|
+
planId: _.id,
|
|
3288
|
+
planName: _.title
|
|
3289
3289
|
}), r.analytics?.trackPaymentPartnerPageOpened?.({
|
|
3290
|
-
planId:
|
|
3291
|
-
planName:
|
|
3292
|
-
price:
|
|
3293
|
-
}), r.onProceed ? r.onProceed(c,
|
|
3294
|
-
},
|
|
3295
|
-
r.analytics?.trackPlanPageClosed?.(),
|
|
3296
|
-
},
|
|
3290
|
+
planId: _.id,
|
|
3291
|
+
planName: _.title,
|
|
3292
|
+
price: _.price
|
|
3293
|
+
}), r.onProceed ? r.onProceed(c, _) : console.log("Proceeding to payment:", { formValues: c, plan: _ });
|
|
3294
|
+
}, O = () => {
|
|
3295
|
+
B.current || r.analytics?.trackPlanPageClosed?.(), f(!1);
|
|
3296
|
+
}, U = H ? /* @__PURE__ */ e.jsxs("div", { className: "relative", ref: j, children: [
|
|
3297
3297
|
/* @__PURE__ */ e.jsxs(
|
|
3298
3298
|
"button",
|
|
3299
3299
|
{
|
|
3300
3300
|
type: "button",
|
|
3301
3301
|
onClick: () => {
|
|
3302
|
-
r.analytics?.trackLanguageClickedFe?.({ language: s }), g((
|
|
3302
|
+
r.analytics?.trackLanguageClickedFe?.({ language: s }), g((_) => !_);
|
|
3303
3303
|
},
|
|
3304
3304
|
"aria-expanded": b,
|
|
3305
3305
|
"aria-haspopup": "listbox",
|
|
@@ -3328,22 +3328,22 @@ function bo({ className: t }) {
|
|
|
3328
3328
|
{
|
|
3329
3329
|
role: "listbox",
|
|
3330
3330
|
className: "absolute right-0 mt-2 w-32 bg-white border border-gray-200 rounded-lg shadow-lg overflow-hidden z-50",
|
|
3331
|
-
children: po.map((
|
|
3331
|
+
children: po.map((_) => /* @__PURE__ */ e.jsx(
|
|
3332
3332
|
"li",
|
|
3333
3333
|
{
|
|
3334
3334
|
role: "option",
|
|
3335
|
-
"aria-selected":
|
|
3335
|
+
"aria-selected": _ === s,
|
|
3336
3336
|
onClick: () => {
|
|
3337
|
-
l(
|
|
3337
|
+
l(_), g(!1);
|
|
3338
3338
|
},
|
|
3339
3339
|
className: "px-4 py-2 text-sm cursor-pointer hover:bg-gray-50 transition-colors",
|
|
3340
3340
|
style: {
|
|
3341
|
-
backgroundColor:
|
|
3342
|
-
fontWeight:
|
|
3341
|
+
backgroundColor: _ === s ? "#f3f4f6" : "white",
|
|
3342
|
+
fontWeight: _ === s ? "600" : "400"
|
|
3343
3343
|
},
|
|
3344
|
-
children: gt[
|
|
3344
|
+
children: gt[_]
|
|
3345
3345
|
},
|
|
3346
|
-
|
|
3346
|
+
_
|
|
3347
3347
|
))
|
|
3348
3348
|
}
|
|
3349
3349
|
)
|
|
@@ -3352,36 +3352,36 @@ function bo({ className: t }) {
|
|
|
3352
3352
|
/* @__PURE__ */ e.jsx(
|
|
3353
3353
|
ta,
|
|
3354
3354
|
{
|
|
3355
|
-
t:
|
|
3356
|
-
languageSelector:
|
|
3355
|
+
t: x,
|
|
3356
|
+
languageSelector: U,
|
|
3357
3357
|
isGlobal: r.isGlobal
|
|
3358
3358
|
}
|
|
3359
3359
|
),
|
|
3360
|
-
/* @__PURE__ */ e.jsx(de, { section: "hero", onImpression:
|
|
3361
|
-
/* @__PURE__ */ e.jsx(de, { section: "features", onImpression:
|
|
3362
|
-
/* @__PURE__ */ e.jsx(de, { section: "sneakPeek", onImpression:
|
|
3363
|
-
/* @__PURE__ */ e.jsx(de, { section: "testimonials", onImpression:
|
|
3364
|
-
/* @__PURE__ */ e.jsx(de, { section: "benefits", onImpression:
|
|
3360
|
+
/* @__PURE__ */ e.jsx(de, { section: "hero", onImpression: R, children: /* @__PURE__ */ e.jsx(_a, { t: x }) }),
|
|
3361
|
+
/* @__PURE__ */ e.jsx(de, { section: "features", onImpression: R, children: /* @__PURE__ */ e.jsx(Na, { t: x }) }),
|
|
3362
|
+
/* @__PURE__ */ e.jsx(de, { section: "sneakPeek", onImpression: R, children: /* @__PURE__ */ e.jsx(Yr, { t: x, analytics: r.analytics }) }),
|
|
3363
|
+
/* @__PURE__ */ e.jsx(de, { section: "testimonials", onImpression: R, children: /* @__PURE__ */ e.jsx(bs, { t: x, analytics: r.analytics }) }),
|
|
3364
|
+
/* @__PURE__ */ e.jsx(de, { section: "benefits", onImpression: R, children: /* @__PURE__ */ e.jsx(Rs, { t: x }) }),
|
|
3365
3365
|
/* @__PURE__ */ e.jsx(
|
|
3366
3366
|
Zi,
|
|
3367
3367
|
{
|
|
3368
|
-
t:
|
|
3368
|
+
t: x,
|
|
3369
3369
|
values: c,
|
|
3370
|
-
onUpdate:
|
|
3370
|
+
onUpdate: D,
|
|
3371
3371
|
googleMapsApiKey: r.googleMapsApiKey,
|
|
3372
3372
|
isGlobal: r.isGlobal,
|
|
3373
3373
|
analytics: r.analytics
|
|
3374
3374
|
}
|
|
3375
3375
|
),
|
|
3376
|
-
/* @__PURE__ */ e.jsx(de, { section: "howItWorks", onImpression:
|
|
3377
|
-
/* @__PURE__ */ e.jsx(de, { section: "whyUs", onImpression:
|
|
3378
|
-
/* @__PURE__ */ e.jsx(de, { section: "faq", onImpression:
|
|
3376
|
+
/* @__PURE__ */ e.jsx(de, { section: "howItWorks", onImpression: R, children: /* @__PURE__ */ e.jsx(Oa, { t: x }) }),
|
|
3377
|
+
/* @__PURE__ */ e.jsx(de, { section: "whyUs", onImpression: R, children: /* @__PURE__ */ e.jsx(Fs, { t: x }) }),
|
|
3378
|
+
/* @__PURE__ */ e.jsx(de, { section: "faq", onImpression: R, children: /* @__PURE__ */ e.jsx(Ks, { t: x }) }),
|
|
3379
3379
|
/* @__PURE__ */ e.jsx(
|
|
3380
3380
|
dn,
|
|
3381
3381
|
{
|
|
3382
|
-
t:
|
|
3382
|
+
t: x,
|
|
3383
3383
|
values: c,
|
|
3384
|
-
onProceed:
|
|
3384
|
+
onProceed: S,
|
|
3385
3385
|
isGlobal: r.isGlobal
|
|
3386
3386
|
}
|
|
3387
3387
|
),
|
|
@@ -3389,13 +3389,13 @@ function bo({ className: t }) {
|
|
|
3389
3389
|
lo,
|
|
3390
3390
|
{
|
|
3391
3391
|
isOpen: o,
|
|
3392
|
-
onClose:
|
|
3392
|
+
onClose: O,
|
|
3393
3393
|
selectedPlan: p,
|
|
3394
|
-
onSelectPlan:
|
|
3395
|
-
onProceed:
|
|
3394
|
+
onSelectPlan: T,
|
|
3395
|
+
onProceed: k,
|
|
3396
3396
|
plans: r.plans,
|
|
3397
3397
|
isGlobal: r.isGlobal,
|
|
3398
|
-
t:
|
|
3398
|
+
t: x
|
|
3399
3399
|
}
|
|
3400
3400
|
)
|
|
3401
3401
|
] });
|