@srimandir/dosha-calculator 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dosha-calculator.js
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import Ea, { useRef as ae, useEffect as
|
|
3
|
-
import { FooterCTAButton as
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
function
|
|
7
|
-
if (
|
|
8
|
-
|
|
1
|
+
import * as se from "react";
|
|
2
|
+
import Ea, { useRef as ae, useEffect as xe, createContext as hr, useContext as fr, useMemo as pr, useState as E, forwardRef as gr, useCallback as Qe, useImperativeHandle as yr } from "react";
|
|
3
|
+
import { FooterCTAButton as ma, FormContainer as br, PrivacyBanner as vr, FormSectionHeader as xr, FormField as Me, FormTextInput as kr, FormSegmentedControl as jr, FormTagPills as wr, FormCheckboxWithHelp as Sr, FormLocationInput as _r, FormFooterNote as Nr, UserReviewsSection as Fa, FAQAccordion as Oa, ContactUsSection as La, PageHeader as Pr, MarqueeStrip as Tr, FooterShell as Ar, footerShellStyles as _e } from "@srimandir/astrology-common";
|
|
4
|
+
var Oe = { exports: {} }, Re = {};
|
|
5
|
+
var ha;
|
|
6
|
+
function Cr() {
|
|
7
|
+
if (ha) return Re;
|
|
8
|
+
ha = 1;
|
|
9
9
|
var r = Ea, a = /* @__PURE__ */ Symbol.for("react.element"), n = /* @__PURE__ */ Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
10
10
|
function m(b, u, v) {
|
|
11
|
-
var
|
|
12
|
-
v !== void 0 && (
|
|
13
|
-
for (
|
|
14
|
-
if (b && b.defaultProps) for (
|
|
15
|
-
return { $$typeof: a, type: b, key:
|
|
11
|
+
var h, g = {}, M = null, S = null;
|
|
12
|
+
v !== void 0 && (M = "" + v), u.key !== void 0 && (M = "" + u.key), u.ref !== void 0 && (S = u.ref);
|
|
13
|
+
for (h in u) s.call(u, h) && !d.hasOwnProperty(h) && (g[h] = u[h]);
|
|
14
|
+
if (b && b.defaultProps) for (h in u = b.defaultProps, u) g[h] === void 0 && (g[h] = u[h]);
|
|
15
|
+
return { $$typeof: a, type: b, key: M, ref: S, props: g, _owner: i.current };
|
|
16
16
|
}
|
|
17
|
-
return
|
|
17
|
+
return Re.Fragment = n, Re.jsx = m, Re.jsxs = m, Re;
|
|
18
18
|
}
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
return
|
|
23
|
-
var r = Ea, a = /* @__PURE__ */ Symbol.for("react.element"), n = /* @__PURE__ */ Symbol.for("react.portal"), s = /* @__PURE__ */ Symbol.for("react.fragment"), i = /* @__PURE__ */ Symbol.for("react.strict_mode"), d = /* @__PURE__ */ Symbol.for("react.profiler"), m = /* @__PURE__ */ Symbol.for("react.provider"), b = /* @__PURE__ */ Symbol.for("react.context"), u = /* @__PURE__ */ Symbol.for("react.forward_ref"), v = /* @__PURE__ */ Symbol.for("react.suspense"),
|
|
24
|
-
function
|
|
19
|
+
var Ie = {};
|
|
20
|
+
var fa;
|
|
21
|
+
function Mr() {
|
|
22
|
+
return fa || (fa = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
23
|
+
var r = Ea, a = /* @__PURE__ */ Symbol.for("react.element"), n = /* @__PURE__ */ Symbol.for("react.portal"), s = /* @__PURE__ */ Symbol.for("react.fragment"), i = /* @__PURE__ */ Symbol.for("react.strict_mode"), d = /* @__PURE__ */ Symbol.for("react.profiler"), m = /* @__PURE__ */ Symbol.for("react.provider"), b = /* @__PURE__ */ Symbol.for("react.context"), u = /* @__PURE__ */ Symbol.for("react.forward_ref"), v = /* @__PURE__ */ Symbol.for("react.suspense"), h = /* @__PURE__ */ Symbol.for("react.suspense_list"), g = /* @__PURE__ */ Symbol.for("react.memo"), M = /* @__PURE__ */ Symbol.for("react.lazy"), S = /* @__PURE__ */ Symbol.for("react.offscreen"), f = Symbol.iterator, T = "@@iterator";
|
|
24
|
+
function A(t) {
|
|
25
25
|
if (t === null || typeof t != "object")
|
|
26
26
|
return null;
|
|
27
|
-
var l =
|
|
27
|
+
var l = f && t[f] || t[T];
|
|
28
28
|
return typeof l == "function" ? l : null;
|
|
29
29
|
}
|
|
30
30
|
var k = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
31
|
-
function
|
|
31
|
+
function D(t) {
|
|
32
32
|
{
|
|
33
|
-
for (var l = arguments.length, c = new Array(l > 1 ? l - 1 : 0),
|
|
34
|
-
c[
|
|
35
|
-
|
|
33
|
+
for (var l = arguments.length, c = new Array(l > 1 ? l - 1 : 0), p = 1; p < l; p++)
|
|
34
|
+
c[p - 1] = arguments[p];
|
|
35
|
+
q("error", t, c);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function q(t, l, c) {
|
|
39
39
|
{
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
var
|
|
43
|
-
return String(
|
|
40
|
+
var p = k.ReactDebugCurrentFrame, P = p.getStackAddendum();
|
|
41
|
+
P !== "" && (l += "%s", c = c.concat([P]));
|
|
42
|
+
var I = c.map(function(_) {
|
|
43
|
+
return String(_);
|
|
44
44
|
});
|
|
45
|
-
|
|
45
|
+
I.unshift("Warning: " + l), Function.prototype.apply.call(console[t], console, I);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
var
|
|
49
|
-
|
|
50
|
-
function
|
|
51
|
-
return !!(typeof t == "string" || typeof t == "function" || t === s || t === d ||
|
|
48
|
+
var L = !1, F = !1, ke = !1, re = !1, ue = !1, G;
|
|
49
|
+
G = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
50
|
+
function he(t) {
|
|
51
|
+
return !!(typeof t == "string" || typeof t == "function" || t === s || t === d || ue || t === i || t === v || t === h || re || t === S || L || F || ke || typeof t == "object" && t !== null && (t.$$typeof === M || t.$$typeof === g || t.$$typeof === m || t.$$typeof === b || t.$$typeof === u || // 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
|
-
t.$$typeof ===
|
|
55
|
+
t.$$typeof === G || t.getModuleId !== void 0));
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
var
|
|
59
|
-
if (
|
|
60
|
-
return
|
|
61
|
-
var
|
|
62
|
-
return
|
|
57
|
+
function ce(t, l, c) {
|
|
58
|
+
var p = t.displayName;
|
|
59
|
+
if (p)
|
|
60
|
+
return p;
|
|
61
|
+
var P = l.displayName || l.name || "";
|
|
62
|
+
return P !== "" ? c + "(" + P + ")" : c;
|
|
63
63
|
}
|
|
64
64
|
function J(t) {
|
|
65
65
|
return t.displayName || "Context";
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Y(t) {
|
|
68
68
|
if (t == null)
|
|
69
69
|
return null;
|
|
70
|
-
if (typeof t.tag == "number" &&
|
|
70
|
+
if (typeof t.tag == "number" && D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
71
71
|
return t.displayName || t.name || null;
|
|
72
72
|
if (typeof t == "string")
|
|
73
73
|
return t;
|
|
@@ -82,7 +82,7 @@ function Cr() {
|
|
|
82
82
|
return "StrictMode";
|
|
83
83
|
case v:
|
|
84
84
|
return "Suspense";
|
|
85
|
-
case
|
|
85
|
+
case h:
|
|
86
86
|
return "SuspenseList";
|
|
87
87
|
}
|
|
88
88
|
if (typeof t == "object")
|
|
@@ -94,14 +94,14 @@ function Cr() {
|
|
|
94
94
|
var c = t;
|
|
95
95
|
return J(c._context) + ".Provider";
|
|
96
96
|
case u:
|
|
97
|
-
return
|
|
98
|
-
case
|
|
99
|
-
var
|
|
100
|
-
return
|
|
101
|
-
case
|
|
102
|
-
var
|
|
97
|
+
return ce(t, t.render, "ForwardRef");
|
|
98
|
+
case g:
|
|
99
|
+
var p = t.displayName || null;
|
|
100
|
+
return p !== null ? p : Y(t.type) || "Memo";
|
|
101
|
+
case M: {
|
|
102
|
+
var P = t, I = P._payload, _ = P._init;
|
|
103
103
|
try {
|
|
104
|
-
return
|
|
104
|
+
return Y(_(I));
|
|
105
105
|
} catch {
|
|
106
106
|
return null;
|
|
107
107
|
}
|
|
@@ -109,18 +109,18 @@ function Cr() {
|
|
|
109
109
|
}
|
|
110
110
|
return null;
|
|
111
111
|
}
|
|
112
|
-
var
|
|
113
|
-
function
|
|
112
|
+
var V = Object.assign, o = 0, j, C, N, K, x, y, O;
|
|
113
|
+
function me() {
|
|
114
114
|
}
|
|
115
|
-
|
|
116
|
-
function
|
|
115
|
+
me.__reactDisabledLog = !0;
|
|
116
|
+
function X() {
|
|
117
117
|
{
|
|
118
118
|
if (o === 0) {
|
|
119
|
-
j = console.log,
|
|
119
|
+
j = console.log, C = console.info, N = console.warn, K = console.error, x = console.group, y = console.groupCollapsed, O = console.groupEnd;
|
|
120
120
|
var t = {
|
|
121
121
|
configurable: !0,
|
|
122
122
|
enumerable: !0,
|
|
123
|
-
value:
|
|
123
|
+
value: me,
|
|
124
124
|
writable: !0
|
|
125
125
|
};
|
|
126
126
|
Object.defineProperties(console, {
|
|
@@ -136,7 +136,7 @@ function Cr() {
|
|
|
136
136
|
o++;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function te() {
|
|
140
140
|
{
|
|
141
141
|
if (o--, o === 0) {
|
|
142
142
|
var t = {
|
|
@@ -145,187 +145,187 @@ function Cr() {
|
|
|
145
145
|
writable: !0
|
|
146
146
|
};
|
|
147
147
|
Object.defineProperties(console, {
|
|
148
|
-
log:
|
|
148
|
+
log: V({}, t, {
|
|
149
149
|
value: j
|
|
150
150
|
}),
|
|
151
|
-
info:
|
|
152
|
-
value:
|
|
151
|
+
info: V({}, t, {
|
|
152
|
+
value: C
|
|
153
153
|
}),
|
|
154
|
-
warn:
|
|
155
|
-
value:
|
|
154
|
+
warn: V({}, t, {
|
|
155
|
+
value: N
|
|
156
156
|
}),
|
|
157
|
-
error:
|
|
157
|
+
error: V({}, t, {
|
|
158
158
|
value: K
|
|
159
159
|
}),
|
|
160
|
-
group:
|
|
160
|
+
group: V({}, t, {
|
|
161
161
|
value: x
|
|
162
162
|
}),
|
|
163
|
-
groupCollapsed:
|
|
164
|
-
value:
|
|
163
|
+
groupCollapsed: V({}, t, {
|
|
164
|
+
value: y
|
|
165
165
|
}),
|
|
166
|
-
groupEnd:
|
|
167
|
-
value:
|
|
166
|
+
groupEnd: V({}, t, {
|
|
167
|
+
value: O
|
|
168
168
|
})
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
|
-
o < 0 &&
|
|
171
|
+
o < 0 && D("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
var
|
|
175
|
-
function
|
|
174
|
+
var je = k.ReactCurrentDispatcher, z;
|
|
175
|
+
function ne(t, l, c) {
|
|
176
176
|
{
|
|
177
|
-
if (
|
|
177
|
+
if (z === void 0)
|
|
178
178
|
try {
|
|
179
179
|
throw Error();
|
|
180
|
-
} catch (
|
|
181
|
-
var
|
|
182
|
-
|
|
180
|
+
} catch (P) {
|
|
181
|
+
var p = P.stack.trim().match(/\n( *(at )?)/);
|
|
182
|
+
z = p && p[1] || "";
|
|
183
183
|
}
|
|
184
184
|
return `
|
|
185
|
-
` +
|
|
185
|
+
` + z + t;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var we = !1, fe;
|
|
189
189
|
{
|
|
190
|
-
var
|
|
191
|
-
|
|
190
|
+
var R = typeof WeakMap == "function" ? WeakMap : Map;
|
|
191
|
+
fe = new R();
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
if (!t ||
|
|
193
|
+
function de(t, l) {
|
|
194
|
+
if (!t || we)
|
|
195
195
|
return "";
|
|
196
196
|
{
|
|
197
|
-
var c =
|
|
197
|
+
var c = fe.get(t);
|
|
198
198
|
if (c !== void 0)
|
|
199
199
|
return c;
|
|
200
200
|
}
|
|
201
|
-
var
|
|
202
|
-
|
|
203
|
-
var
|
|
201
|
+
var p;
|
|
202
|
+
we = !0;
|
|
203
|
+
var P = Error.prepareStackTrace;
|
|
204
204
|
Error.prepareStackTrace = void 0;
|
|
205
|
-
var
|
|
206
|
-
|
|
205
|
+
var I;
|
|
206
|
+
I = je.current, je.current = null, X();
|
|
207
207
|
try {
|
|
208
208
|
if (l) {
|
|
209
|
-
var
|
|
209
|
+
var _ = function() {
|
|
210
210
|
throw Error();
|
|
211
211
|
};
|
|
212
|
-
if (Object.defineProperty(
|
|
212
|
+
if (Object.defineProperty(_.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(_, []);
|
|
219
219
|
} catch (ee) {
|
|
220
|
-
|
|
220
|
+
p = ee;
|
|
221
221
|
}
|
|
222
|
-
Reflect.construct(t, [],
|
|
222
|
+
Reflect.construct(t, [], _);
|
|
223
223
|
} else {
|
|
224
224
|
try {
|
|
225
|
-
|
|
225
|
+
_.call();
|
|
226
226
|
} catch (ee) {
|
|
227
|
-
|
|
227
|
+
p = ee;
|
|
228
228
|
}
|
|
229
|
-
t.call(
|
|
229
|
+
t.call(_.prototype);
|
|
230
230
|
}
|
|
231
231
|
} else {
|
|
232
232
|
try {
|
|
233
233
|
throw Error();
|
|
234
234
|
} catch (ee) {
|
|
235
|
-
|
|
235
|
+
p = ee;
|
|
236
236
|
}
|
|
237
237
|
t();
|
|
238
238
|
}
|
|
239
239
|
} catch (ee) {
|
|
240
|
-
if (ee &&
|
|
240
|
+
if (ee && p && typeof ee.stack == "string") {
|
|
241
241
|
for (var w = ee.stack.split(`
|
|
242
|
-
`), Q =
|
|
243
|
-
`),
|
|
242
|
+
`), Q = p.stack.split(`
|
|
243
|
+
`), $ = w.length - 1, W = Q.length - 1; $ >= 1 && W >= 0 && w[$] !== Q[W]; )
|
|
244
244
|
W--;
|
|
245
|
-
for (;
|
|
246
|
-
if (w[
|
|
247
|
-
if (
|
|
245
|
+
for (; $ >= 1 && W >= 0; $--, W--)
|
|
246
|
+
if (w[$] !== Q[W]) {
|
|
247
|
+
if ($ !== 1 || W !== 1)
|
|
248
248
|
do
|
|
249
|
-
if (
|
|
250
|
-
var
|
|
251
|
-
` + w[
|
|
252
|
-
return t.displayName &&
|
|
249
|
+
if ($--, W--, W < 0 || w[$] !== Q[W]) {
|
|
250
|
+
var ie = `
|
|
251
|
+
` + w[$].replace(" at new ", " at ");
|
|
252
|
+
return t.displayName && ie.includes("<anonymous>") && (ie = ie.replace("<anonymous>", t.displayName)), typeof t == "function" && fe.set(t, ie), ie;
|
|
253
253
|
}
|
|
254
|
-
while (
|
|
254
|
+
while ($ >= 1 && W >= 0);
|
|
255
255
|
break;
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
} finally {
|
|
259
|
-
|
|
259
|
+
we = !1, je.current = I, te(), Error.prepareStackTrace = P;
|
|
260
260
|
}
|
|
261
|
-
var
|
|
262
|
-
return typeof t == "function" &&
|
|
261
|
+
var Ce = t ? t.displayName || t.name : "", Se = Ce ? ne(Ce) : "";
|
|
262
|
+
return typeof t == "function" && fe.set(t, Se), Se;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
return
|
|
264
|
+
function B(t, l, c) {
|
|
265
|
+
return de(t, !1);
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function Z(t) {
|
|
268
268
|
var l = t.prototype;
|
|
269
269
|
return !!(l && l.isReactComponent);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function pe(t, l, c) {
|
|
272
272
|
if (t == null)
|
|
273
273
|
return "";
|
|
274
274
|
if (typeof t == "function")
|
|
275
|
-
return
|
|
275
|
+
return de(t, Z(t));
|
|
276
276
|
if (typeof t == "string")
|
|
277
|
-
return
|
|
277
|
+
return ne(t);
|
|
278
278
|
switch (t) {
|
|
279
279
|
case v:
|
|
280
|
-
return
|
|
281
|
-
case
|
|
282
|
-
return
|
|
280
|
+
return ne("Suspense");
|
|
281
|
+
case h:
|
|
282
|
+
return ne("SuspenseList");
|
|
283
283
|
}
|
|
284
284
|
if (typeof t == "object")
|
|
285
285
|
switch (t.$$typeof) {
|
|
286
286
|
case u:
|
|
287
|
-
return
|
|
288
|
-
case
|
|
289
|
-
return
|
|
290
|
-
case
|
|
291
|
-
var
|
|
287
|
+
return B(t.render);
|
|
288
|
+
case g:
|
|
289
|
+
return pe(t.type, l, c);
|
|
290
|
+
case M: {
|
|
291
|
+
var p = t, P = p._payload, I = p._init;
|
|
292
292
|
try {
|
|
293
|
-
return
|
|
293
|
+
return pe(I(P), l, c);
|
|
294
294
|
} catch {
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
return "";
|
|
299
299
|
}
|
|
300
|
-
var
|
|
301
|
-
function
|
|
300
|
+
var De = Object.prototype.hasOwnProperty, Xe = {}, Ze = k.ReactDebugCurrentFrame;
|
|
301
|
+
function Fe(t) {
|
|
302
302
|
if (t) {
|
|
303
|
-
var l = t._owner, c =
|
|
304
|
-
|
|
303
|
+
var l = t._owner, c = pe(t.type, t._source, l ? l.type : null);
|
|
304
|
+
Ze.setExtraStackFrame(c);
|
|
305
305
|
} else
|
|
306
|
-
|
|
306
|
+
Ze.setExtraStackFrame(null);
|
|
307
307
|
}
|
|
308
|
-
function Ga(t, l, c,
|
|
308
|
+
function Ga(t, l, c, p, P) {
|
|
309
309
|
{
|
|
310
|
-
var
|
|
311
|
-
for (var
|
|
312
|
-
if (
|
|
310
|
+
var I = Function.call.bind(De);
|
|
311
|
+
for (var _ in t)
|
|
312
|
+
if (I(t, _)) {
|
|
313
313
|
var w = void 0;
|
|
314
314
|
try {
|
|
315
|
-
if (typeof t[
|
|
316
|
-
var Q = Error((
|
|
315
|
+
if (typeof t[_] != "function") {
|
|
316
|
+
var Q = Error((p || "React class") + ": " + c + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[_] + "`.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
|
-
w = t[
|
|
320
|
-
} catch (
|
|
321
|
-
w =
|
|
319
|
+
w = t[_](l, _, p, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
320
|
+
} catch ($) {
|
|
321
|
+
w = $;
|
|
322
322
|
}
|
|
323
|
-
w && !(w instanceof Error) && (
|
|
323
|
+
w && !(w instanceof Error) && (Fe(P), D("%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).", p || "React class", c, _, typeof w), Fe(null)), w instanceof Error && !(w.message in Xe) && (Xe[w.message] = !0, Fe(P), D("Failed %s type: %s", c, w.message), Fe(null));
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
var Ha = Array.isArray;
|
|
328
|
-
function
|
|
328
|
+
function We(t) {
|
|
329
329
|
return Ha(t);
|
|
330
330
|
}
|
|
331
331
|
function Ya(t) {
|
|
@@ -336,26 +336,26 @@ function Cr() {
|
|
|
336
336
|
}
|
|
337
337
|
function Va(t) {
|
|
338
338
|
try {
|
|
339
|
-
return
|
|
339
|
+
return ea(t), !1;
|
|
340
340
|
} catch {
|
|
341
341
|
return !0;
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function ea(t) {
|
|
345
345
|
return "" + t;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function aa(t) {
|
|
348
348
|
if (Va(t))
|
|
349
|
-
return
|
|
349
|
+
return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ya(t)), ea(t);
|
|
350
350
|
}
|
|
351
|
-
var
|
|
351
|
+
var ra = k.ReactCurrentOwner, za = {
|
|
352
352
|
key: !0,
|
|
353
353
|
ref: !0,
|
|
354
354
|
__self: !0,
|
|
355
355
|
__source: !0
|
|
356
|
-
},
|
|
356
|
+
}, ta, na;
|
|
357
357
|
function Qa(t) {
|
|
358
|
-
if (
|
|
358
|
+
if (De.call(t, "ref")) {
|
|
359
359
|
var l = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
360
360
|
if (l && l.isReactWarning)
|
|
361
361
|
return !1;
|
|
@@ -363,7 +363,7 @@ function Cr() {
|
|
|
363
363
|
return t.ref !== void 0;
|
|
364
364
|
}
|
|
365
365
|
function Ja(t) {
|
|
366
|
-
if (
|
|
366
|
+
if (De.call(t, "key")) {
|
|
367
367
|
var l = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
368
368
|
if (l && l.isReactWarning)
|
|
369
369
|
return !1;
|
|
@@ -371,12 +371,12 @@ function Cr() {
|
|
|
371
371
|
return t.key !== void 0;
|
|
372
372
|
}
|
|
373
373
|
function Xa(t, l) {
|
|
374
|
-
typeof t.ref == "string" &&
|
|
374
|
+
typeof t.ref == "string" && ra.current;
|
|
375
375
|
}
|
|
376
376
|
function Za(t, l) {
|
|
377
377
|
{
|
|
378
378
|
var c = function() {
|
|
379
|
-
|
|
379
|
+
ta || (ta = !0, D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
380
380
|
};
|
|
381
381
|
c.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
382
382
|
get: c,
|
|
@@ -387,7 +387,7 @@ function Cr() {
|
|
|
387
387
|
function er(t, l) {
|
|
388
388
|
{
|
|
389
389
|
var c = function() {
|
|
390
|
-
|
|
390
|
+
na || (na = !0, D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
391
391
|
};
|
|
392
392
|
c.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
393
393
|
get: c,
|
|
@@ -395,7 +395,7 @@ function Cr() {
|
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
var ar = function(t, l, c,
|
|
398
|
+
var ar = function(t, l, c, p, P, I, _) {
|
|
399
399
|
var w = {
|
|
400
400
|
// This tag allows us to uniquely identify this as a React Element
|
|
401
401
|
$$typeof: a,
|
|
@@ -403,9 +403,9 @@ function Cr() {
|
|
|
403
403
|
type: t,
|
|
404
404
|
key: l,
|
|
405
405
|
ref: c,
|
|
406
|
-
props:
|
|
406
|
+
props: _,
|
|
407
407
|
// Record the component responsible for creating this element.
|
|
408
|
-
_owner:
|
|
408
|
+
_owner: I
|
|
409
409
|
};
|
|
410
410
|
return w._store = {}, Object.defineProperty(w._store, "validated", {
|
|
411
411
|
configurable: !1,
|
|
@@ -416,49 +416,49 @@ function Cr() {
|
|
|
416
416
|
configurable: !1,
|
|
417
417
|
enumerable: !1,
|
|
418
418
|
writable: !1,
|
|
419
|
-
value:
|
|
419
|
+
value: p
|
|
420
420
|
}), Object.defineProperty(w, "_source", {
|
|
421
421
|
configurable: !1,
|
|
422
422
|
enumerable: !1,
|
|
423
423
|
writable: !1,
|
|
424
|
-
value:
|
|
424
|
+
value: P
|
|
425
425
|
}), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
|
|
426
426
|
};
|
|
427
|
-
function rr(t, l, c,
|
|
427
|
+
function rr(t, l, c, p, P) {
|
|
428
428
|
{
|
|
429
|
-
var
|
|
430
|
-
c !== void 0 && (
|
|
431
|
-
for (
|
|
432
|
-
|
|
429
|
+
var I, _ = {}, w = null, Q = null;
|
|
430
|
+
c !== void 0 && (aa(c), w = "" + c), Ja(l) && (aa(l.key), w = "" + l.key), Qa(l) && (Q = l.ref, Xa(l, P));
|
|
431
|
+
for (I in l)
|
|
432
|
+
De.call(l, I) && !za.hasOwnProperty(I) && (_[I] = l[I]);
|
|
433
433
|
if (t && t.defaultProps) {
|
|
434
|
-
var
|
|
435
|
-
for (
|
|
436
|
-
|
|
434
|
+
var $ = t.defaultProps;
|
|
435
|
+
for (I in $)
|
|
436
|
+
_[I] === void 0 && (_[I] = $[I]);
|
|
437
437
|
}
|
|
438
438
|
if (w || Q) {
|
|
439
439
|
var W = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
440
|
-
w && Za(
|
|
440
|
+
w && Za(_, W), Q && er(_, W);
|
|
441
441
|
}
|
|
442
|
-
return ar(t, w, Q,
|
|
442
|
+
return ar(t, w, Q, P, p, ra.current, _);
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
var
|
|
446
|
-
function
|
|
445
|
+
var qe = k.ReactCurrentOwner, sa = k.ReactDebugCurrentFrame;
|
|
446
|
+
function Ae(t) {
|
|
447
447
|
if (t) {
|
|
448
|
-
var l = t._owner, c =
|
|
449
|
-
|
|
448
|
+
var l = t._owner, c = pe(t.type, t._source, l ? l.type : null);
|
|
449
|
+
sa.setExtraStackFrame(c);
|
|
450
450
|
} else
|
|
451
|
-
|
|
451
|
+
sa.setExtraStackFrame(null);
|
|
452
452
|
}
|
|
453
453
|
var Ge;
|
|
454
454
|
Ge = !1;
|
|
455
455
|
function He(t) {
|
|
456
456
|
return typeof t == "object" && t !== null && t.$$typeof === a;
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function ia() {
|
|
459
459
|
{
|
|
460
|
-
if (
|
|
461
|
-
var t =
|
|
460
|
+
if (qe.current) {
|
|
461
|
+
var t = Y(qe.current.type);
|
|
462
462
|
if (t)
|
|
463
463
|
return `
|
|
464
464
|
|
|
@@ -470,10 +470,10 @@ Check the render method of \`` + t + "`.";
|
|
|
470
470
|
function tr(t) {
|
|
471
471
|
return "";
|
|
472
472
|
}
|
|
473
|
-
var
|
|
473
|
+
var oa = {};
|
|
474
474
|
function nr(t) {
|
|
475
475
|
{
|
|
476
|
-
var l =
|
|
476
|
+
var l = ia();
|
|
477
477
|
if (!l) {
|
|
478
478
|
var c = typeof t == "string" ? t : t.displayName || t.name;
|
|
479
479
|
c && (l = `
|
|
@@ -483,35 +483,35 @@ Check the top-level render call using <` + c + ">.");
|
|
|
483
483
|
return l;
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function la(t, l) {
|
|
487
487
|
{
|
|
488
488
|
if (!t._store || t._store.validated || t.key != null)
|
|
489
489
|
return;
|
|
490
490
|
t._store.validated = !0;
|
|
491
491
|
var c = nr(l);
|
|
492
|
-
if (
|
|
492
|
+
if (oa[c])
|
|
493
493
|
return;
|
|
494
|
-
|
|
495
|
-
var
|
|
496
|
-
t && t._owner && t._owner !==
|
|
494
|
+
oa[c] = !0;
|
|
495
|
+
var p = "";
|
|
496
|
+
t && t._owner && t._owner !== qe.current && (p = " It was passed a child from " + Y(t._owner.type) + "."), Ae(t), D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', c, p), Ae(null);
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function ca(t, l) {
|
|
500
500
|
{
|
|
501
501
|
if (typeof t != "object")
|
|
502
502
|
return;
|
|
503
|
-
if (
|
|
503
|
+
if (We(t))
|
|
504
504
|
for (var c = 0; c < t.length; c++) {
|
|
505
|
-
var
|
|
506
|
-
He(
|
|
505
|
+
var p = t[c];
|
|
506
|
+
He(p) && la(p, l);
|
|
507
507
|
}
|
|
508
508
|
else if (He(t))
|
|
509
509
|
t._store && (t._store.validated = !0);
|
|
510
510
|
else if (t) {
|
|
511
|
-
var
|
|
512
|
-
if (typeof
|
|
513
|
-
for (var
|
|
514
|
-
He(
|
|
511
|
+
var P = A(t);
|
|
512
|
+
if (typeof P == "function" && P !== t.entries)
|
|
513
|
+
for (var I = P.call(t), _; !(_ = I.next()).done; )
|
|
514
|
+
He(_.value) && la(_.value, l);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
}
|
|
@@ -525,117 +525,117 @@ Check the top-level render call using <` + c + ">.");
|
|
|
525
525
|
c = l.propTypes;
|
|
526
526
|
else if (typeof l == "object" && (l.$$typeof === u || // Note: Memo only checks outer props here.
|
|
527
527
|
// Inner props are checked in the reconciler.
|
|
528
|
-
l.$$typeof ===
|
|
528
|
+
l.$$typeof === g))
|
|
529
529
|
c = l.propTypes;
|
|
530
530
|
else
|
|
531
531
|
return;
|
|
532
532
|
if (c) {
|
|
533
|
-
var
|
|
534
|
-
Ga(c, t.props, "prop",
|
|
533
|
+
var p = Y(l);
|
|
534
|
+
Ga(c, t.props, "prop", p, t);
|
|
535
535
|
} else if (l.PropTypes !== void 0 && !Ge) {
|
|
536
536
|
Ge = !0;
|
|
537
|
-
var
|
|
538
|
-
|
|
537
|
+
var P = Y(l);
|
|
538
|
+
D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
539
539
|
}
|
|
540
|
-
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved &&
|
|
540
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
function ir(t) {
|
|
544
544
|
{
|
|
545
545
|
for (var l = Object.keys(t.props), c = 0; c < l.length; c++) {
|
|
546
|
-
var
|
|
547
|
-
if (
|
|
548
|
-
|
|
546
|
+
var p = l[c];
|
|
547
|
+
if (p !== "children" && p !== "key") {
|
|
548
|
+
Ae(t), D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), Ae(null);
|
|
549
549
|
break;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
t.ref !== null && (
|
|
552
|
+
t.ref !== null && (Ae(t), D("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
var
|
|
556
|
-
function
|
|
555
|
+
var da = {};
|
|
556
|
+
function ua(t, l, c, p, P, I) {
|
|
557
557
|
{
|
|
558
|
-
var
|
|
559
|
-
if (!
|
|
558
|
+
var _ = he(t);
|
|
559
|
+
if (!_) {
|
|
560
560
|
var w = "";
|
|
561
561
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (w += " 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 = tr();
|
|
563
|
-
Q ? w += Q : w +=
|
|
564
|
-
var
|
|
565
|
-
t === null ?
|
|
563
|
+
Q ? w += Q : w += ia();
|
|
564
|
+
var $;
|
|
565
|
+
t === null ? $ = "null" : We(t) ? $ = "array" : t !== void 0 && t.$$typeof === a ? ($ = "<" + (Y(t.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof t, D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, w);
|
|
566
566
|
}
|
|
567
|
-
var W = rr(t, l, c,
|
|
567
|
+
var W = rr(t, l, c, P, I);
|
|
568
568
|
if (W == null)
|
|
569
569
|
return W;
|
|
570
|
-
if (
|
|
571
|
-
var
|
|
572
|
-
if (
|
|
573
|
-
if (
|
|
574
|
-
if (
|
|
575
|
-
for (var
|
|
576
|
-
|
|
577
|
-
Object.freeze && Object.freeze(
|
|
570
|
+
if (_) {
|
|
571
|
+
var ie = l.children;
|
|
572
|
+
if (ie !== void 0)
|
|
573
|
+
if (p)
|
|
574
|
+
if (We(ie)) {
|
|
575
|
+
for (var Ce = 0; Ce < ie.length; Ce++)
|
|
576
|
+
ca(ie[Ce], t);
|
|
577
|
+
Object.freeze && Object.freeze(ie);
|
|
578
578
|
} else
|
|
579
|
-
|
|
579
|
+
D("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
|
+
ca(ie, t);
|
|
582
582
|
}
|
|
583
|
-
if (
|
|
584
|
-
var
|
|
583
|
+
if (De.call(l, "key")) {
|
|
584
|
+
var Se = Y(t), ee = Object.keys(l).filter(function(mr) {
|
|
585
585
|
return mr !== "key";
|
|
586
586
|
}), Ye = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
587
|
-
if (!
|
|
587
|
+
if (!da[Se + Ye]) {
|
|
588
588
|
var ur = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
|
|
589
|
-
|
|
589
|
+
D(`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:
|
|
593
593
|
let props = %s;
|
|
594
|
-
<%s key={someKey} {...props} />`, Ye,
|
|
594
|
+
<%s key={someKey} {...props} />`, Ye, Se, ur, Se), da[Se + Ye] = !0;
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
return t === s ? ir(W) : sr(W), W;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
function or(t, l, c) {
|
|
601
|
-
return
|
|
601
|
+
return ua(t, l, c, !0);
|
|
602
602
|
}
|
|
603
603
|
function lr(t, l, c) {
|
|
604
|
-
return
|
|
604
|
+
return ua(t, l, c, !1);
|
|
605
605
|
}
|
|
606
606
|
var cr = lr, dr = or;
|
|
607
|
-
|
|
608
|
-
})()),
|
|
607
|
+
Ie.Fragment = s, Ie.jsx = cr, Ie.jsxs = dr;
|
|
608
|
+
})()), Ie;
|
|
609
609
|
}
|
|
610
|
-
var
|
|
611
|
-
function
|
|
612
|
-
return
|
|
610
|
+
var pa;
|
|
611
|
+
function Dr() {
|
|
612
|
+
return pa || (pa = 1, process.env.NODE_ENV === "production" ? Oe.exports = Cr() : Oe.exports = Mr()), Oe.exports;
|
|
613
613
|
}
|
|
614
|
-
var e =
|
|
615
|
-
const
|
|
614
|
+
var e = Dr();
|
|
615
|
+
const ga = {
|
|
616
616
|
all_fields_filled: "all_fields_filled",
|
|
617
617
|
fields_not_filled: "fields_not_filled",
|
|
618
618
|
puja_clicked: "puja_clicked"
|
|
619
|
-
},
|
|
620
|
-
container:
|
|
619
|
+
}, Rr = "_container_m8vst_1", Ir = {
|
|
620
|
+
container: Rr
|
|
621
621
|
};
|
|
622
|
-
function
|
|
623
|
-
return /* @__PURE__ */ e.jsx("div", { className:
|
|
624
|
-
}
|
|
625
|
-
const
|
|
626
|
-
ctaFilled:
|
|
627
|
-
ctaFilledContent:
|
|
628
|
-
chevronRight:
|
|
629
|
-
bookPujaButton:
|
|
630
|
-
bookPujaContent:
|
|
631
|
-
pujaInfo:
|
|
632
|
-
pujaName:
|
|
633
|
-
pujaPrice:
|
|
622
|
+
function Kr() {
|
|
623
|
+
return /* @__PURE__ */ e.jsx("div", { className: Ir.container, children: "100% Accurate • Secure • Trusted by 30L+ families" });
|
|
624
|
+
}
|
|
625
|
+
const Er = "_ctaFilled_13tvp_2", Fr = "_ctaFilledContent_13tvp_7", Or = "_chevronRight_13tvp_14", Lr = "_bookPujaButton_13tvp_21", Br = "_bookPujaContent_13tvp_27", $r = "_pujaInfo_13tvp_36", Ur = "_pujaName_13tvp_44", Wr = "_pujaPrice_13tvp_57", qr = "_priceLabel_13tvp_64", Gr = "_priceAmount_13tvp_68", Hr = "_bookButton_13tvp_74", oe = {
|
|
626
|
+
ctaFilled: Er,
|
|
627
|
+
ctaFilledContent: Fr,
|
|
628
|
+
chevronRight: Or,
|
|
629
|
+
bookPujaButton: Lr,
|
|
630
|
+
bookPujaContent: Br,
|
|
631
|
+
pujaInfo: $r,
|
|
632
|
+
pujaName: Ur,
|
|
633
|
+
pujaPrice: Wr,
|
|
634
634
|
priceLabel: qr,
|
|
635
|
-
priceAmount:
|
|
636
|
-
bookButton:
|
|
637
|
-
},
|
|
638
|
-
function
|
|
635
|
+
priceAmount: Gr,
|
|
636
|
+
bookButton: Hr
|
|
637
|
+
}, Yr = "https://srm-cdn.a4b.io/yoda/1771588545907.svg";
|
|
638
|
+
function Vr({
|
|
639
639
|
isFormComplete: r,
|
|
640
640
|
onPress: a,
|
|
641
641
|
labelDefault: n,
|
|
@@ -647,82 +647,82 @@ function Yr({
|
|
|
647
647
|
bookPujaLabel: u = "Book Puja"
|
|
648
648
|
}) {
|
|
649
649
|
return d === "book-puja" && m && b ? /* @__PURE__ */ e.jsx(
|
|
650
|
-
|
|
650
|
+
ma,
|
|
651
651
|
{
|
|
652
652
|
onClick: a,
|
|
653
653
|
disabled: i,
|
|
654
|
-
className:
|
|
655
|
-
children: /* @__PURE__ */ e.jsxs("div", { className:
|
|
656
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
657
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
658
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
659
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
660
|
-
/* @__PURE__ */ e.jsxs("span", { className:
|
|
654
|
+
className: oe.bookPujaButton,
|
|
655
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: oe.bookPujaContent, children: [
|
|
656
|
+
/* @__PURE__ */ e.jsxs("div", { className: oe.pujaInfo, children: [
|
|
657
|
+
/* @__PURE__ */ e.jsx("span", { className: oe.pujaName, children: m.name }),
|
|
658
|
+
/* @__PURE__ */ e.jsxs("div", { className: oe.pujaPrice, children: [
|
|
659
|
+
/* @__PURE__ */ e.jsx("span", { className: oe.priceLabel, children: "Starting from " }),
|
|
660
|
+
/* @__PURE__ */ e.jsxs("span", { className: oe.priceAmount, children: [
|
|
661
661
|
"₹",
|
|
662
662
|
m.price
|
|
663
663
|
] })
|
|
664
664
|
] })
|
|
665
665
|
] }),
|
|
666
|
-
/* @__PURE__ */ e.jsxs("span", { className:
|
|
666
|
+
/* @__PURE__ */ e.jsxs("span", { className: oe.bookButton, children: [
|
|
667
667
|
u,
|
|
668
668
|
" →"
|
|
669
669
|
] })
|
|
670
670
|
] })
|
|
671
671
|
}
|
|
672
672
|
) : /* @__PURE__ */ e.jsx(
|
|
673
|
-
|
|
673
|
+
ma,
|
|
674
674
|
{
|
|
675
675
|
onClick: a,
|
|
676
676
|
disabled: i,
|
|
677
|
-
className: r ?
|
|
678
|
-
children: i ? /* @__PURE__ */ e.jsx("span", { className:
|
|
677
|
+
className: r ? oe.ctaFilled : void 0,
|
|
678
|
+
children: i ? /* @__PURE__ */ e.jsx("span", { className: oe.ctaFilledContent, children: /* @__PURE__ */ e.jsx("span", { "aria-hidden": "true", children: "…" }) }) : r ? /* @__PURE__ */ e.jsxs("span", { className: oe.ctaFilledContent, children: [
|
|
679
679
|
s,
|
|
680
680
|
/* @__PURE__ */ e.jsx(
|
|
681
681
|
"img",
|
|
682
682
|
{
|
|
683
|
-
src:
|
|
683
|
+
src: Yr,
|
|
684
684
|
alt: "",
|
|
685
|
-
className:
|
|
685
|
+
className: oe.chevronRight,
|
|
686
686
|
width: 20,
|
|
687
687
|
height: 20,
|
|
688
|
-
"aria-hidden":
|
|
688
|
+
"aria-hidden": "true"
|
|
689
689
|
}
|
|
690
690
|
)
|
|
691
691
|
] }) : n
|
|
692
692
|
}
|
|
693
693
|
);
|
|
694
694
|
}
|
|
695
|
-
const
|
|
696
|
-
bannerContainer:
|
|
697
|
-
bannerImage:
|
|
698
|
-
ticker:
|
|
699
|
-
tickerContent:
|
|
695
|
+
const zr = "_bannerContainer_1s29r_1", Qr = "_bannerImage_1s29r_13", Jr = "_ticker_1s29r_20", Xr = "_tickerContent_1s29r_30", Le = {
|
|
696
|
+
bannerContainer: zr,
|
|
697
|
+
bannerImage: Qr,
|
|
698
|
+
ticker: Jr,
|
|
699
|
+
tickerContent: Xr
|
|
700
700
|
};
|
|
701
|
-
function
|
|
701
|
+
function Zr({
|
|
702
702
|
bannerConfig: r,
|
|
703
703
|
className: a = ""
|
|
704
704
|
}) {
|
|
705
|
-
return /* @__PURE__ */ e.jsxs("section", { className: `${
|
|
705
|
+
return /* @__PURE__ */ e.jsxs("section", { className: `${Le.bannerContainer} ${a}`, children: [
|
|
706
706
|
/* @__PURE__ */ e.jsx(
|
|
707
707
|
"img",
|
|
708
708
|
{
|
|
709
709
|
src: r.imageUrl,
|
|
710
710
|
alt: r.alt,
|
|
711
|
-
className:
|
|
711
|
+
className: Le.bannerImage,
|
|
712
712
|
loading: "eager"
|
|
713
713
|
}
|
|
714
714
|
),
|
|
715
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
715
|
+
/* @__PURE__ */ e.jsx("div", { className: Le.ticker, children: /* @__PURE__ */ e.jsx("div", { className: Le.tickerContent, children: r.tickerText }) })
|
|
716
716
|
] });
|
|
717
717
|
}
|
|
718
|
-
const
|
|
719
|
-
function
|
|
718
|
+
const et = 112;
|
|
719
|
+
function ge({
|
|
720
720
|
section: r,
|
|
721
721
|
children: a,
|
|
722
722
|
onImpression: n
|
|
723
723
|
}) {
|
|
724
724
|
const s = ae(null), i = ae(!1);
|
|
725
|
-
return
|
|
725
|
+
return xe(() => {
|
|
726
726
|
const d = s.current;
|
|
727
727
|
if (!d) return;
|
|
728
728
|
const m = new IntersectionObserver(
|
|
@@ -731,7 +731,7 @@ function he({
|
|
|
731
731
|
},
|
|
732
732
|
{
|
|
733
733
|
threshold: 0.1,
|
|
734
|
-
rootMargin: `0px 0px -${
|
|
734
|
+
rootMargin: `0px 0px -${et}px 0px`
|
|
735
735
|
}
|
|
736
736
|
);
|
|
737
737
|
return m.observe(d), () => m.disconnect();
|
|
@@ -740,7 +740,7 @@ function he({
|
|
|
740
740
|
const Hn = ["en", "hi"], Yn = {
|
|
741
741
|
en: "English",
|
|
742
742
|
hi: "हिन्दी"
|
|
743
|
-
},
|
|
743
|
+
}, at = {
|
|
744
744
|
en: {
|
|
745
745
|
language: "Language",
|
|
746
746
|
guest: "Guest",
|
|
@@ -1273,46 +1273,46 @@ Brings steady progress and long-term protection.`,
|
|
|
1273
1273
|
}
|
|
1274
1274
|
}, Ba = hr(null);
|
|
1275
1275
|
function Vn({ locale: r, children: a }) {
|
|
1276
|
-
const n = (s) =>
|
|
1276
|
+
const n = (s) => at[r]?.[s] ?? s;
|
|
1277
1277
|
return /* @__PURE__ */ e.jsx(Ba.Provider, { value: { locale: r, t: n }, children: a });
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function rt() {
|
|
1280
1280
|
return fr(Ba);
|
|
1281
1281
|
}
|
|
1282
|
-
const
|
|
1283
|
-
wrap:
|
|
1284
|
-
input:
|
|
1285
|
-
iconBtn:
|
|
1286
|
-
iconImg:
|
|
1287
|
-
},
|
|
1288
|
-
function
|
|
1282
|
+
const tt = "_wrap_pkduc_1", nt = "_input_pkduc_5", st = "_iconBtn_pkduc_28", it = "_iconImg_pkduc_42", Be = {
|
|
1283
|
+
wrap: tt,
|
|
1284
|
+
input: nt,
|
|
1285
|
+
iconBtn: st,
|
|
1286
|
+
iconImg: it
|
|
1287
|
+
}, ot = "https://srm-cdn.a4b.io/yoda/1770372045894.svg";
|
|
1288
|
+
function lt({
|
|
1289
1289
|
id: r,
|
|
1290
1290
|
value: a,
|
|
1291
1291
|
onChange: n,
|
|
1292
1292
|
onOpen: s,
|
|
1293
1293
|
className: i = ""
|
|
1294
1294
|
}) {
|
|
1295
|
-
const d = ae(null), m =
|
|
1296
|
-
const u = /* @__PURE__ */ new Date(), v = (
|
|
1295
|
+
const d = ae(null), m = pr(() => {
|
|
1296
|
+
const u = /* @__PURE__ */ new Date(), v = (h) => String(h).padStart(2, "0");
|
|
1297
1297
|
return `${u.getFullYear()}-${v(u.getMonth() + 1)}-${v(u.getDate())}`;
|
|
1298
1298
|
}, []), b = () => {
|
|
1299
1299
|
s?.();
|
|
1300
1300
|
const u = d.current;
|
|
1301
1301
|
u && typeof u.showPicker == "function" ? u.showPicker() : u?.focus();
|
|
1302
1302
|
};
|
|
1303
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `${
|
|
1303
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${Be.wrap} ${i}`, children: [
|
|
1304
1304
|
/* @__PURE__ */ e.jsx(
|
|
1305
1305
|
"input",
|
|
1306
1306
|
{
|
|
1307
1307
|
ref: d,
|
|
1308
1308
|
id: r,
|
|
1309
1309
|
type: "date",
|
|
1310
|
-
className:
|
|
1310
|
+
className: Be.input,
|
|
1311
1311
|
value: a,
|
|
1312
1312
|
max: m,
|
|
1313
1313
|
onChange: (u) => {
|
|
1314
|
-
const v = u.target.value,
|
|
1315
|
-
v && v >
|
|
1314
|
+
const v = u.target.value, h = /* @__PURE__ */ new Date(), g = (S) => String(S).padStart(2, "0"), M = `${h.getFullYear()}-${g(h.getMonth() + 1)}-${g(h.getDate())}`;
|
|
1315
|
+
v && v > M || n(v);
|
|
1316
1316
|
},
|
|
1317
1317
|
onClick: b
|
|
1318
1318
|
}
|
|
@@ -1321,7 +1321,7 @@ function ot({
|
|
|
1321
1321
|
"button",
|
|
1322
1322
|
{
|
|
1323
1323
|
type: "button",
|
|
1324
|
-
className:
|
|
1324
|
+
className: Be.iconBtn,
|
|
1325
1325
|
"aria-label": "Open date picker",
|
|
1326
1326
|
onMouseDown: (u) => u.preventDefault(),
|
|
1327
1327
|
onClick: (u) => {
|
|
@@ -1330,10 +1330,10 @@ function ot({
|
|
|
1330
1330
|
children: /* @__PURE__ */ e.jsx(
|
|
1331
1331
|
"img",
|
|
1332
1332
|
{
|
|
1333
|
-
className:
|
|
1334
|
-
src:
|
|
1333
|
+
className: Be.iconImg,
|
|
1334
|
+
src: ot,
|
|
1335
1335
|
alt: "",
|
|
1336
|
-
"aria-hidden":
|
|
1336
|
+
"aria-hidden": "true",
|
|
1337
1337
|
width: 22,
|
|
1338
1338
|
height: 22
|
|
1339
1339
|
}
|
|
@@ -1342,40 +1342,40 @@ function ot({
|
|
|
1342
1342
|
)
|
|
1343
1343
|
] });
|
|
1344
1344
|
}
|
|
1345
|
-
const
|
|
1346
|
-
wrap:
|
|
1347
|
-
input:
|
|
1348
|
-
iconBtn:
|
|
1349
|
-
iconImg:
|
|
1350
|
-
timePopover:
|
|
1351
|
-
timePickerRow:
|
|
1352
|
-
timePickerSelect:
|
|
1353
|
-
timePickerColon:
|
|
1354
|
-
meridiemToggle:
|
|
1355
|
-
meridiemBtn:
|
|
1356
|
-
meridiemActive:
|
|
1357
|
-
timePopoverActions:
|
|
1358
|
-
timePopoverBtn:
|
|
1359
|
-
timePopoverOk:
|
|
1360
|
-
},
|
|
1361
|
-
function
|
|
1345
|
+
const ct = "_wrap_1af76_1", dt = "_input_1af76_5", ut = "_iconBtn_1af76_21", mt = "_iconImg_1af76_35", ht = "_timePopover_1af76_39", ft = "_timePickerRow_1af76_55", pt = "_timePickerSelect_1af76_61", gt = "_timePickerColon_1af76_77", yt = "_meridiemToggle_1af76_85", bt = "_meridiemBtn_1af76_94", vt = "_meridiemActive_1af76_109", xt = "_timePopoverActions_1af76_114", kt = "_timePopoverBtn_1af76_120", jt = "_timePopoverOk_1af76_139", H = {
|
|
1346
|
+
wrap: ct,
|
|
1347
|
+
input: dt,
|
|
1348
|
+
iconBtn: ut,
|
|
1349
|
+
iconImg: mt,
|
|
1350
|
+
timePopover: ht,
|
|
1351
|
+
timePickerRow: ft,
|
|
1352
|
+
timePickerSelect: pt,
|
|
1353
|
+
timePickerColon: gt,
|
|
1354
|
+
meridiemToggle: yt,
|
|
1355
|
+
meridiemBtn: bt,
|
|
1356
|
+
meridiemActive: vt,
|
|
1357
|
+
timePopoverActions: xt,
|
|
1358
|
+
timePopoverBtn: kt,
|
|
1359
|
+
timePopoverOk: jt
|
|
1360
|
+
}, wt = "https://srm-cdn.a4b.io/yoda/1770372014782.svg", $a = (r) => String(r).padStart(2, "0");
|
|
1361
|
+
function St(r) {
|
|
1362
1362
|
const a = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
|
|
1363
1363
|
if (!a) return r;
|
|
1364
1364
|
const n = Number(a[1]), s = a[2], i = n >= 12 ? "PM" : "AM";
|
|
1365
1365
|
return `${n % 12 === 0 ? 12 : n % 12}:${s} ${i}`;
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1367
|
+
function _t(r) {
|
|
1368
1368
|
const a = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(r);
|
|
1369
1369
|
if (!a) return { hour12: 12, minute: "00", meridiem: "AM" };
|
|
1370
1370
|
const n = Number(a[1]), s = a[2], i = n >= 12 ? "PM" : "AM";
|
|
1371
1371
|
return { hour12: n % 12 === 0 ? 12 : n % 12, minute: s, meridiem: i };
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Nt(r) {
|
|
1374
1374
|
const a = Math.min(12, Math.max(1, r.hour12)), n = /^([0-5]\d)$/.test(r.minute) ? r.minute : "00";
|
|
1375
1375
|
let s = a % 12;
|
|
1376
1376
|
return r.meridiem === "PM" && (s += 12), `${$a(s)}:${n}`;
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function Pt({
|
|
1379
1379
|
id: r,
|
|
1380
1380
|
value: a,
|
|
1381
1381
|
onChange: n,
|
|
@@ -1384,51 +1384,51 @@ function Nt({
|
|
|
1384
1384
|
disabled: d = !1,
|
|
1385
1385
|
className: m = ""
|
|
1386
1386
|
}) {
|
|
1387
|
-
const b = ae(null), [u, v] =
|
|
1388
|
-
|
|
1389
|
-
const
|
|
1390
|
-
b.current && (b.current.contains(
|
|
1387
|
+
const b = ae(null), [u, v] = E(!1), [h, g] = E({ hour12: 12, minute: "00", meridiem: "AM" });
|
|
1388
|
+
xe(() => {
|
|
1389
|
+
const f = (T) => {
|
|
1390
|
+
b.current && (b.current.contains(T.target) || v(!1));
|
|
1391
1391
|
};
|
|
1392
|
-
return document.addEventListener("mousedown",
|
|
1392
|
+
return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
|
|
1393
1393
|
}, []);
|
|
1394
|
-
const
|
|
1395
|
-
d || (s?.(),
|
|
1394
|
+
const M = () => {
|
|
1395
|
+
d || (s?.(), g(_t(a || "12:00")), v((f) => !f));
|
|
1396
1396
|
}, S = () => {
|
|
1397
|
-
const
|
|
1398
|
-
n(
|
|
1397
|
+
const f = Nt(h);
|
|
1398
|
+
n(f), v(!1);
|
|
1399
1399
|
};
|
|
1400
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `${
|
|
1400
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${H.wrap} ${m}`, ref: b, children: [
|
|
1401
1401
|
/* @__PURE__ */ e.jsx(
|
|
1402
1402
|
"input",
|
|
1403
1403
|
{
|
|
1404
1404
|
id: r,
|
|
1405
|
-
className:
|
|
1405
|
+
className: H.input,
|
|
1406
1406
|
type: "text",
|
|
1407
|
-
value: a ?
|
|
1407
|
+
value: a ? St(a) : "",
|
|
1408
1408
|
readOnly: !0,
|
|
1409
1409
|
disabled: d,
|
|
1410
1410
|
placeholder: i,
|
|
1411
|
-
onClick:
|
|
1411
|
+
onClick: M
|
|
1412
1412
|
}
|
|
1413
1413
|
),
|
|
1414
1414
|
/* @__PURE__ */ e.jsx(
|
|
1415
1415
|
"button",
|
|
1416
1416
|
{
|
|
1417
1417
|
type: "button",
|
|
1418
|
-
className:
|
|
1418
|
+
className: H.iconBtn,
|
|
1419
1419
|
"aria-label": "Open time picker",
|
|
1420
1420
|
disabled: d,
|
|
1421
|
-
onMouseDown: (
|
|
1422
|
-
onClick: (
|
|
1423
|
-
|
|
1421
|
+
onMouseDown: (f) => f.preventDefault(),
|
|
1422
|
+
onClick: (f) => {
|
|
1423
|
+
f.preventDefault(), f.stopPropagation(), M();
|
|
1424
1424
|
},
|
|
1425
1425
|
children: /* @__PURE__ */ e.jsx(
|
|
1426
1426
|
"img",
|
|
1427
1427
|
{
|
|
1428
|
-
className:
|
|
1429
|
-
src:
|
|
1428
|
+
className: H.iconImg,
|
|
1429
|
+
src: wt,
|
|
1430
1430
|
alt: "",
|
|
1431
|
-
"aria-hidden":
|
|
1431
|
+
"aria-hidden": "true",
|
|
1432
1432
|
width: 22,
|
|
1433
1433
|
height: 22
|
|
1434
1434
|
}
|
|
@@ -1438,42 +1438,42 @@ function Nt({
|
|
|
1438
1438
|
u && !d && /* @__PURE__ */ e.jsxs(
|
|
1439
1439
|
"div",
|
|
1440
1440
|
{
|
|
1441
|
-
className:
|
|
1441
|
+
className: H.timePopover,
|
|
1442
1442
|
role: "dialog",
|
|
1443
1443
|
"aria-label": "Select time",
|
|
1444
1444
|
children: [
|
|
1445
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1445
|
+
/* @__PURE__ */ e.jsxs("div", { className: H.timePickerRow, children: [
|
|
1446
1446
|
/* @__PURE__ */ e.jsx(
|
|
1447
1447
|
"select",
|
|
1448
1448
|
{
|
|
1449
|
-
className:
|
|
1450
|
-
value:
|
|
1451
|
-
onChange: (
|
|
1452
|
-
...
|
|
1453
|
-
hour12: Number(
|
|
1449
|
+
className: H.timePickerSelect,
|
|
1450
|
+
value: h.hour12,
|
|
1451
|
+
onChange: (f) => g((T) => ({
|
|
1452
|
+
...T,
|
|
1453
|
+
hour12: Number(f.target.value)
|
|
1454
1454
|
})),
|
|
1455
1455
|
"aria-label": "Hour",
|
|
1456
|
-
children: Array.from({ length: 12 }, (
|
|
1456
|
+
children: Array.from({ length: 12 }, (f, T) => T + 1).map((f) => /* @__PURE__ */ e.jsx("option", { value: f, children: f }, f))
|
|
1457
1457
|
}
|
|
1458
1458
|
),
|
|
1459
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
1459
|
+
/* @__PURE__ */ e.jsx("span", { className: H.timePickerColon, children: ":" }),
|
|
1460
1460
|
/* @__PURE__ */ e.jsx(
|
|
1461
1461
|
"select",
|
|
1462
1462
|
{
|
|
1463
|
-
className:
|
|
1464
|
-
value:
|
|
1465
|
-
onChange: (
|
|
1463
|
+
className: H.timePickerSelect,
|
|
1464
|
+
value: h.minute,
|
|
1465
|
+
onChange: (f) => g((T) => ({ ...T, minute: f.target.value })),
|
|
1466
1466
|
"aria-label": "Minute",
|
|
1467
|
-
children: Array.from({ length: 60 }, (
|
|
1467
|
+
children: Array.from({ length: 60 }, (f, T) => $a(T)).map((f) => /* @__PURE__ */ e.jsx("option", { value: f, children: f }, f))
|
|
1468
1468
|
}
|
|
1469
1469
|
),
|
|
1470
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1470
|
+
/* @__PURE__ */ e.jsxs("div", { className: H.meridiemToggle, "aria-label": "AM/PM", children: [
|
|
1471
1471
|
/* @__PURE__ */ e.jsx(
|
|
1472
1472
|
"button",
|
|
1473
1473
|
{
|
|
1474
1474
|
type: "button",
|
|
1475
|
-
className: `${
|
|
1476
|
-
onClick: () =>
|
|
1475
|
+
className: `${H.meridiemBtn} ${h.meridiem === "AM" ? H.meridiemActive : ""}`,
|
|
1476
|
+
onClick: () => g((f) => ({ ...f, meridiem: "AM" })),
|
|
1477
1477
|
children: "AM"
|
|
1478
1478
|
}
|
|
1479
1479
|
),
|
|
@@ -1481,19 +1481,19 @@ function Nt({
|
|
|
1481
1481
|
"button",
|
|
1482
1482
|
{
|
|
1483
1483
|
type: "button",
|
|
1484
|
-
className: `${
|
|
1485
|
-
onClick: () =>
|
|
1484
|
+
className: `${H.meridiemBtn} ${h.meridiem === "PM" ? H.meridiemActive : ""}`,
|
|
1485
|
+
onClick: () => g((f) => ({ ...f, meridiem: "PM" })),
|
|
1486
1486
|
children: "PM"
|
|
1487
1487
|
}
|
|
1488
1488
|
)
|
|
1489
1489
|
] })
|
|
1490
1490
|
] }),
|
|
1491
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1491
|
+
/* @__PURE__ */ e.jsxs("div", { className: H.timePopoverActions, children: [
|
|
1492
1492
|
/* @__PURE__ */ e.jsx(
|
|
1493
1493
|
"button",
|
|
1494
1494
|
{
|
|
1495
1495
|
type: "button",
|
|
1496
|
-
className:
|
|
1496
|
+
className: H.timePopoverBtn,
|
|
1497
1497
|
onClick: () => v(!1),
|
|
1498
1498
|
children: "Cancel"
|
|
1499
1499
|
}
|
|
@@ -1502,7 +1502,7 @@ function Nt({
|
|
|
1502
1502
|
"button",
|
|
1503
1503
|
{
|
|
1504
1504
|
type: "button",
|
|
1505
|
-
className: `${
|
|
1505
|
+
className: `${H.timePopoverBtn} ${H.timePopoverOk}`,
|
|
1506
1506
|
onClick: S,
|
|
1507
1507
|
"aria-label": "OK",
|
|
1508
1508
|
children: /* @__PURE__ */ e.jsx(
|
|
@@ -1513,7 +1513,7 @@ function Nt({
|
|
|
1513
1513
|
viewBox: "0 0 24 24",
|
|
1514
1514
|
fill: "none",
|
|
1515
1515
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1516
|
-
"aria-hidden":
|
|
1516
|
+
"aria-hidden": "true",
|
|
1517
1517
|
children: /* @__PURE__ */ e.jsx(
|
|
1518
1518
|
"path",
|
|
1519
1519
|
{
|
|
@@ -1534,7 +1534,7 @@ function Nt({
|
|
|
1534
1534
|
)
|
|
1535
1535
|
] });
|
|
1536
1536
|
}
|
|
1537
|
-
async function
|
|
1537
|
+
async function Tt(r, a) {
|
|
1538
1538
|
const { visitorId: n, sessionId: s, problemStatements: i, language: d } = a;
|
|
1539
1539
|
if (i.length !== 0)
|
|
1540
1540
|
try {
|
|
@@ -1547,7 +1547,7 @@ async function Pt(r, a) {
|
|
|
1547
1547
|
} catch {
|
|
1548
1548
|
}
|
|
1549
1549
|
}
|
|
1550
|
-
async function
|
|
1550
|
+
async function At(r, a, n) {
|
|
1551
1551
|
const { data: s, error: i } = await r.functions.invoke("calculate-dosha", {
|
|
1552
1552
|
body: a,
|
|
1553
1553
|
headers: n ?? {}
|
|
@@ -1564,7 +1564,7 @@ async function Tt(r, a, n) {
|
|
|
1564
1564
|
error: "Invalid response from server"
|
|
1565
1565
|
};
|
|
1566
1566
|
}
|
|
1567
|
-
async function
|
|
1567
|
+
async function Ct(r, a, n = {}) {
|
|
1568
1568
|
const {
|
|
1569
1569
|
visitorId: s = "unknown",
|
|
1570
1570
|
sessionId: i = "unknown",
|
|
@@ -1572,17 +1572,17 @@ async function At(r, a, n = {}) {
|
|
|
1572
1572
|
problemStatements: m = [],
|
|
1573
1573
|
language: b = "en"
|
|
1574
1574
|
} = n;
|
|
1575
|
-
return d && m.length > 0 && await
|
|
1575
|
+
return d && m.length > 0 && await Tt(r, {
|
|
1576
1576
|
visitorId: s,
|
|
1577
1577
|
sessionId: i,
|
|
1578
1578
|
problemStatements: m,
|
|
1579
1579
|
language: b
|
|
1580
|
-
}),
|
|
1580
|
+
}), At(r, a, {
|
|
1581
1581
|
"x-visitor-id": s,
|
|
1582
1582
|
"x-session-id": i
|
|
1583
1583
|
});
|
|
1584
1584
|
}
|
|
1585
|
-
const
|
|
1585
|
+
const Mt = [
|
|
1586
1586
|
"formProblemMarriage",
|
|
1587
1587
|
"formProblemMoney",
|
|
1588
1588
|
"formProblemFamily",
|
|
@@ -1590,7 +1590,7 @@ const Ct = [
|
|
|
1590
1590
|
"formProblemEducation",
|
|
1591
1591
|
"formProblemCareer"
|
|
1592
1592
|
];
|
|
1593
|
-
function
|
|
1593
|
+
function Dt() {
|
|
1594
1594
|
try {
|
|
1595
1595
|
const r = "analytics_visitor_id";
|
|
1596
1596
|
let a = typeof localStorage < "u" ? localStorage.getItem(r) : null;
|
|
@@ -1606,7 +1606,7 @@ function Mt() {
|
|
|
1606
1606
|
return "unknown";
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1609
|
+
function Rt() {
|
|
1610
1610
|
try {
|
|
1611
1611
|
const r = "analytics_session_id";
|
|
1612
1612
|
let a = typeof localStorage < "u" ? localStorage.getItem(r) : null;
|
|
@@ -1622,7 +1622,7 @@ function Dt() {
|
|
|
1622
1622
|
return "unknown";
|
|
1623
1623
|
}
|
|
1624
1624
|
}
|
|
1625
|
-
const
|
|
1625
|
+
const ya = gr(
|
|
1626
1626
|
function({
|
|
1627
1627
|
t: a,
|
|
1628
1628
|
className: n = "",
|
|
@@ -1633,128 +1633,128 @@ const ba = pr(
|
|
|
1633
1633
|
resolvePlace: b,
|
|
1634
1634
|
onResult: u,
|
|
1635
1635
|
onError: v,
|
|
1636
|
-
onLoadingChange:
|
|
1637
|
-
analytics:
|
|
1638
|
-
},
|
|
1639
|
-
const [S,
|
|
1640
|
-
|
|
1641
|
-
}, [
|
|
1642
|
-
|
|
1643
|
-
d?.(
|
|
1644
|
-
}, [
|
|
1645
|
-
i?.({ name: S, gender:
|
|
1646
|
-
}, [S,
|
|
1647
|
-
const
|
|
1636
|
+
onLoadingChange: h,
|
|
1637
|
+
analytics: g
|
|
1638
|
+
}, M) {
|
|
1639
|
+
const [S, f] = E(s?.name ?? ""), [T, A] = E(s?.gender ?? "male"), [k, D] = E(s?.problems ?? []), [q, L] = E(s?.dateOfBirth ?? ""), [F, ke] = E(s?.birthTime ?? ""), [re, ue] = E(s?.birthTimeUnknown ?? !1), [G, he] = E(s?.birthPlace ?? ""), ce = ae(!1), J = ae(!1), Y = ae(!1), V = ae(!1), o = ae(!1), j = Qe(() => {
|
|
1640
|
+
ce.current || (ce.current = !0, g?.trackFormFillInitiated?.());
|
|
1641
|
+
}, [g]), C = S.trim() !== "" && q !== "" && (F !== "" || re) && G.trim() !== "";
|
|
1642
|
+
xe(() => {
|
|
1643
|
+
d?.(C);
|
|
1644
|
+
}, [C, d]), xe(() => {
|
|
1645
|
+
i?.({ name: S, gender: T, problems: k, dateOfBirth: q, birthTime: F, birthTimeUnknown: re, birthPlace: G });
|
|
1646
|
+
}, [S, T, k, q, F, re, G, i]);
|
|
1647
|
+
const N = async () => {
|
|
1648
1648
|
if (!m || !b) {
|
|
1649
1649
|
v?.(a("calculationError"));
|
|
1650
1650
|
return;
|
|
1651
1651
|
}
|
|
1652
|
-
if (!
|
|
1652
|
+
if (!C) {
|
|
1653
1653
|
v?.(a("calculationError"));
|
|
1654
1654
|
return;
|
|
1655
1655
|
}
|
|
1656
|
-
const x =
|
|
1656
|
+
const x = G.trim();
|
|
1657
1657
|
if (!x) {
|
|
1658
1658
|
v?.(a("calculationError"));
|
|
1659
1659
|
return;
|
|
1660
1660
|
}
|
|
1661
|
-
|
|
1661
|
+
h?.(!0);
|
|
1662
1662
|
try {
|
|
1663
|
-
const
|
|
1664
|
-
if (!
|
|
1665
|
-
v?.(a("calculationError")),
|
|
1663
|
+
const y = await b(x);
|
|
1664
|
+
if (!y) {
|
|
1665
|
+
v?.(a("calculationError")), h?.(!1);
|
|
1666
1666
|
return;
|
|
1667
1667
|
}
|
|
1668
|
-
const
|
|
1668
|
+
const O = {
|
|
1669
1669
|
name: S.trim(),
|
|
1670
|
-
gender:
|
|
1671
|
-
date:
|
|
1670
|
+
gender: T === "male" ? "M" : "F",
|
|
1671
|
+
date: q,
|
|
1672
1672
|
time: re ? "" : F || "12:00",
|
|
1673
1673
|
unknownTime: re,
|
|
1674
|
-
tz:
|
|
1675
|
-
lat:
|
|
1676
|
-
lon:
|
|
1674
|
+
tz: y.tz,
|
|
1675
|
+
lat: y.lat,
|
|
1676
|
+
lon: y.lon,
|
|
1677
1677
|
place: x,
|
|
1678
|
-
problemArea: k.length > 0 ? k.map((
|
|
1679
|
-
},
|
|
1680
|
-
visitorId:
|
|
1681
|
-
sessionId:
|
|
1678
|
+
problemArea: k.length > 0 ? k.map((ne) => a(ne)).join(", ") : void 0
|
|
1679
|
+
}, me = Dt(), X = Rt(), te = k.map((ne) => a(ne)), je = typeof navigator < "u" && navigator.language?.toLowerCase().startsWith("hi") ? "hi" : "en", z = await Ct(m, O, {
|
|
1680
|
+
visitorId: me,
|
|
1681
|
+
sessionId: X,
|
|
1682
1682
|
trackProblemStatements: !0,
|
|
1683
|
-
problemStatements:
|
|
1684
|
-
language:
|
|
1683
|
+
problemStatements: te,
|
|
1684
|
+
language: je
|
|
1685
1685
|
});
|
|
1686
|
-
if (
|
|
1687
|
-
const [
|
|
1688
|
-
day:
|
|
1689
|
-
month:
|
|
1690
|
-
year:
|
|
1691
|
-
hour:
|
|
1692
|
-
minute:
|
|
1693
|
-
lat:
|
|
1694
|
-
lon:
|
|
1695
|
-
tzone:
|
|
1686
|
+
if (z.success) {
|
|
1687
|
+
const [ne, we, fe] = (O.date || "").split("-").map(Number), R = O.time || "12:00", [de, B] = R.split(":").map((pe) => parseInt(pe, 10) || 0), Z = {
|
|
1688
|
+
day: fe || 1,
|
|
1689
|
+
month: we || 1,
|
|
1690
|
+
year: ne || 2e3,
|
|
1691
|
+
hour: de,
|
|
1692
|
+
minute: B,
|
|
1693
|
+
lat: y.lat,
|
|
1694
|
+
lon: y.lon,
|
|
1695
|
+
tzone: y.tzoneOffset ?? 5.5
|
|
1696
1696
|
};
|
|
1697
|
-
u?.(
|
|
1697
|
+
u?.(z, Z);
|
|
1698
1698
|
} else
|
|
1699
|
-
v?.(
|
|
1700
|
-
} catch (
|
|
1701
|
-
v?.(
|
|
1699
|
+
v?.(z.error ?? a("calculationError"));
|
|
1700
|
+
} catch (y) {
|
|
1701
|
+
v?.(y instanceof Error ? y.message : a("calculationError"));
|
|
1702
1702
|
} finally {
|
|
1703
|
-
|
|
1703
|
+
h?.(!1);
|
|
1704
1704
|
}
|
|
1705
1705
|
};
|
|
1706
|
-
|
|
1707
|
-
const K =
|
|
1706
|
+
yr(M, () => ({ submit: N }), [N]);
|
|
1707
|
+
const K = Mt.map((x) => ({
|
|
1708
1708
|
key: x,
|
|
1709
1709
|
label: a(x)
|
|
1710
1710
|
}));
|
|
1711
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1712
|
-
/* @__PURE__ */ e.jsx(
|
|
1711
|
+
return /* @__PURE__ */ e.jsxs(br, { className: n, "aria-label": a("formTitle"), children: [
|
|
1712
|
+
/* @__PURE__ */ e.jsx(vr, { text: a("formPrivacyBanner") }),
|
|
1713
1713
|
/* @__PURE__ */ e.jsx(
|
|
1714
|
-
|
|
1714
|
+
xr,
|
|
1715
1715
|
{
|
|
1716
1716
|
title: a("formTitle"),
|
|
1717
1717
|
subtitle: a("formSubtitle")
|
|
1718
1718
|
}
|
|
1719
1719
|
),
|
|
1720
1720
|
/* @__PURE__ */ e.jsx("div", { onFocusCapture: () => {
|
|
1721
|
-
j(),
|
|
1722
|
-
}, children: /* @__PURE__ */ e.jsx(
|
|
1723
|
-
|
|
1721
|
+
j(), g?.trackNameSectionClicked?.();
|
|
1722
|
+
}, children: /* @__PURE__ */ e.jsx(Me, { id: "dosha-name", label: a("formNameLabel"), children: /* @__PURE__ */ e.jsx(
|
|
1723
|
+
kr,
|
|
1724
1724
|
{
|
|
1725
1725
|
id: "dosha-name",
|
|
1726
1726
|
value: S,
|
|
1727
1727
|
onChange: (x) => {
|
|
1728
|
-
const
|
|
1729
|
-
|
|
1728
|
+
const y = x.target.value;
|
|
1729
|
+
y && !J.current && (J.current = !0, g?.trackNameSectionFilled?.()), f(y);
|
|
1730
1730
|
},
|
|
1731
1731
|
placeholder: a("formNamePlaceholder"),
|
|
1732
1732
|
autoComplete: "name"
|
|
1733
1733
|
}
|
|
1734
1734
|
) }) }),
|
|
1735
|
-
/* @__PURE__ */ e.jsx(
|
|
1736
|
-
|
|
1735
|
+
/* @__PURE__ */ e.jsx(Me, { id: "dosha-gender", label: a("formGenderLabel"), children: /* @__PURE__ */ e.jsx(
|
|
1736
|
+
jr,
|
|
1737
1737
|
{
|
|
1738
1738
|
id: "dosha-gender",
|
|
1739
1739
|
options: [
|
|
1740
1740
|
{ value: "male", label: a("formGenderMale") },
|
|
1741
1741
|
{ value: "female", label: a("formGenderFemale") }
|
|
1742
1742
|
],
|
|
1743
|
-
value:
|
|
1744
|
-
onChange: (x) =>
|
|
1743
|
+
value: T,
|
|
1744
|
+
onChange: (x) => A(x)
|
|
1745
1745
|
}
|
|
1746
1746
|
) }),
|
|
1747
|
-
/* @__PURE__ */ e.jsx(
|
|
1748
|
-
|
|
1747
|
+
/* @__PURE__ */ e.jsx(Me, { id: "dosha-problems", label: a("formProblemLabel"), children: /* @__PURE__ */ e.jsx(
|
|
1748
|
+
wr,
|
|
1749
1749
|
{
|
|
1750
1750
|
id: "dosha-problems",
|
|
1751
1751
|
options: K,
|
|
1752
1752
|
selected: k,
|
|
1753
|
-
onChange:
|
|
1753
|
+
onChange: D
|
|
1754
1754
|
}
|
|
1755
1755
|
) }),
|
|
1756
1756
|
/* @__PURE__ */ e.jsx(
|
|
1757
|
-
|
|
1757
|
+
Me,
|
|
1758
1758
|
{
|
|
1759
1759
|
id: "dosha-dob",
|
|
1760
1760
|
label: a("formDobLabel"),
|
|
@@ -1762,22 +1762,22 @@ const ba = pr(
|
|
|
1762
1762
|
infoTooltip: a("formDobInfo"),
|
|
1763
1763
|
infoAriaLabel: a("info"),
|
|
1764
1764
|
children: /* @__PURE__ */ e.jsx(
|
|
1765
|
-
|
|
1765
|
+
lt,
|
|
1766
1766
|
{
|
|
1767
1767
|
id: "dosha-dob",
|
|
1768
|
-
value:
|
|
1768
|
+
value: q,
|
|
1769
1769
|
onOpen: () => {
|
|
1770
|
-
j(),
|
|
1770
|
+
j(), g?.trackDobClicked?.();
|
|
1771
1771
|
},
|
|
1772
1772
|
onChange: (x) => {
|
|
1773
|
-
x && !
|
|
1773
|
+
x && !Y.current && (Y.current = !0, g?.trackDobFilled?.()), L(x);
|
|
1774
1774
|
}
|
|
1775
1775
|
}
|
|
1776
1776
|
)
|
|
1777
1777
|
}
|
|
1778
1778
|
),
|
|
1779
1779
|
/* @__PURE__ */ e.jsx(
|
|
1780
|
-
|
|
1780
|
+
Me,
|
|
1781
1781
|
{
|
|
1782
1782
|
id: "dosha-time",
|
|
1783
1783
|
label: a("formTimeLabel"),
|
|
@@ -1785,15 +1785,15 @@ const ba = pr(
|
|
|
1785
1785
|
infoTooltip: a("formTimeInfo"),
|
|
1786
1786
|
infoAriaLabel: a("info"),
|
|
1787
1787
|
children: /* @__PURE__ */ e.jsx(
|
|
1788
|
-
|
|
1788
|
+
Pt,
|
|
1789
1789
|
{
|
|
1790
1790
|
id: "dosha-time",
|
|
1791
1791
|
value: F,
|
|
1792
1792
|
onOpen: () => {
|
|
1793
|
-
j(),
|
|
1793
|
+
j(), g?.trackTimeClicked?.();
|
|
1794
1794
|
},
|
|
1795
1795
|
onChange: (x) => {
|
|
1796
|
-
x && !
|
|
1796
|
+
x && !V.current && (V.current = !0, g?.trackTimeFilled?.()), ke(x);
|
|
1797
1797
|
},
|
|
1798
1798
|
disabled: re
|
|
1799
1799
|
}
|
|
@@ -1801,21 +1801,21 @@ const ba = pr(
|
|
|
1801
1801
|
}
|
|
1802
1802
|
),
|
|
1803
1803
|
/* @__PURE__ */ e.jsx(
|
|
1804
|
-
|
|
1804
|
+
Sr,
|
|
1805
1805
|
{
|
|
1806
1806
|
id: "dosha-time-unknown",
|
|
1807
1807
|
checked: re,
|
|
1808
1808
|
onChange: (x) => {
|
|
1809
|
-
j(),
|
|
1809
|
+
j(), g?.trackTimeCheckboxClicked?.(), ue(x);
|
|
1810
1810
|
},
|
|
1811
1811
|
primaryText: a("formTimeUnknown"),
|
|
1812
1812
|
helpText: a("formTimeUnknownHelp")
|
|
1813
1813
|
}
|
|
1814
1814
|
),
|
|
1815
1815
|
/* @__PURE__ */ e.jsx("div", { onFocusCapture: () => {
|
|
1816
|
-
j(),
|
|
1816
|
+
j(), g?.trackPlaceOfBirthClicked?.();
|
|
1817
1817
|
}, children: /* @__PURE__ */ e.jsx(
|
|
1818
|
-
|
|
1818
|
+
Me,
|
|
1819
1819
|
{
|
|
1820
1820
|
id: "dosha-place",
|
|
1821
1821
|
label: a("formPlaceLabel"),
|
|
@@ -1823,20 +1823,20 @@ const ba = pr(
|
|
|
1823
1823
|
infoTooltip: a("formPlaceInfo"),
|
|
1824
1824
|
infoAriaLabel: a("info"),
|
|
1825
1825
|
children: /* @__PURE__ */ e.jsx(
|
|
1826
|
-
|
|
1826
|
+
_r,
|
|
1827
1827
|
{
|
|
1828
1828
|
id: "dosha-place",
|
|
1829
|
-
value:
|
|
1829
|
+
value: G,
|
|
1830
1830
|
onChange: (x) => {
|
|
1831
|
-
const
|
|
1832
|
-
|
|
1831
|
+
const y = x.target.value;
|
|
1832
|
+
y && !o.current && (o.current = !0, g?.trackPlaceOfBirthChosen?.(y)), he(y);
|
|
1833
1833
|
},
|
|
1834
1834
|
placeholder: a("formPlacePlaceholder")
|
|
1835
1835
|
}
|
|
1836
1836
|
)
|
|
1837
1837
|
}
|
|
1838
1838
|
) }),
|
|
1839
|
-
/* @__PURE__ */ e.jsxs(
|
|
1839
|
+
/* @__PURE__ */ e.jsxs(Nr, { children: [
|
|
1840
1840
|
"⚡ ",
|
|
1841
1841
|
a("formFooterNoteBefore"),
|
|
1842
1842
|
/* @__PURE__ */ e.jsx("strong", { children: a("formFooterNoteBold") }),
|
|
@@ -1844,7 +1844,7 @@ const ba = pr(
|
|
|
1844
1844
|
] })
|
|
1845
1845
|
] });
|
|
1846
1846
|
}
|
|
1847
|
-
),
|
|
1847
|
+
), ve = se.forwardRef(({ className: r = "", ...a }, n) => /* @__PURE__ */ e.jsx(
|
|
1848
1848
|
"div",
|
|
1849
1849
|
{
|
|
1850
1850
|
ref: n,
|
|
@@ -1852,10 +1852,10 @@ const ba = pr(
|
|
|
1852
1852
|
...a
|
|
1853
1853
|
}
|
|
1854
1854
|
));
|
|
1855
|
-
|
|
1856
|
-
const
|
|
1857
|
-
|
|
1858
|
-
const
|
|
1855
|
+
ve.displayName = "Card";
|
|
1856
|
+
const Ne = se.forwardRef(({ className: r = "", ...a }, n) => /* @__PURE__ */ e.jsx("div", { ref: n, className: `flex flex-col space-y-1.5 p-6 ${r}`, ...a }));
|
|
1857
|
+
Ne.displayName = "CardHeader";
|
|
1858
|
+
const Pe = se.forwardRef(({ className: r = "", ...a }, n) => /* @__PURE__ */ e.jsx(
|
|
1859
1859
|
"h3",
|
|
1860
1860
|
{
|
|
1861
1861
|
ref: n,
|
|
@@ -1863,12 +1863,12 @@ const je = te.forwardRef(({ className: r = "", ...a }, n) => /* @__PURE__ */ e.j
|
|
|
1863
1863
|
...a
|
|
1864
1864
|
}
|
|
1865
1865
|
));
|
|
1866
|
-
|
|
1867
|
-
const
|
|
1868
|
-
|
|
1869
|
-
const
|
|
1870
|
-
|
|
1871
|
-
const
|
|
1866
|
+
Pe.displayName = "CardTitle";
|
|
1867
|
+
const $e = se.forwardRef(({ className: r = "", ...a }, n) => /* @__PURE__ */ e.jsx("p", { ref: n, className: `text-sm text-muted-foreground ${r}`, ...a }));
|
|
1868
|
+
$e.displayName = "CardDescription";
|
|
1869
|
+
const Te = se.forwardRef(({ className: r = "", ...a }, n) => /* @__PURE__ */ e.jsx("div", { ref: n, className: `p-6 pt-0 ${r}`, ...a }));
|
|
1870
|
+
Te.displayName = "CardContent";
|
|
1871
|
+
const Ue = se.forwardRef(
|
|
1872
1872
|
({ className: r = "", variant: a = "default", ...n }, s) => {
|
|
1873
1873
|
const i = {
|
|
1874
1874
|
default: "border-transparent bg-primary text-primary-foreground",
|
|
@@ -1886,114 +1886,114 @@ const Be = te.forwardRef(
|
|
|
1886
1886
|
);
|
|
1887
1887
|
}
|
|
1888
1888
|
);
|
|
1889
|
-
|
|
1890
|
-
const
|
|
1891
|
-
function
|
|
1889
|
+
Ue.displayName = "Badge";
|
|
1890
|
+
const le = (r) => ({ width: r, height: r });
|
|
1891
|
+
function ba(r) {
|
|
1892
1892
|
const { size: a = 24, ...n } = r;
|
|
1893
|
-
return /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...
|
|
1893
|
+
return /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...le(a), ...n, children: [
|
|
1894
1894
|
/* @__PURE__ */ e.jsx("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }),
|
|
1895
1895
|
/* @__PURE__ */ e.jsx("path", { d: "M12 9v4" }),
|
|
1896
1896
|
/* @__PURE__ */ e.jsx("path", { d: "M12 17h.01" })
|
|
1897
1897
|
] });
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function va(r) {
|
|
1900
1900
|
const { size: a = 24, ...n } = r;
|
|
1901
|
-
return /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...
|
|
1901
|
+
return /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...le(a), ...n, children: [
|
|
1902
1902
|
/* @__PURE__ */ e.jsx("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
|
|
1903
1903
|
/* @__PURE__ */ e.jsx("path", { d: "m9 11 3 3L22 4" })
|
|
1904
1904
|
] });
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1906
|
+
function xa(r) {
|
|
1907
1907
|
const { size: a = 24, ...n } = r;
|
|
1908
|
-
return /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...
|
|
1908
|
+
return /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...le(a), ...n, children: [
|
|
1909
1909
|
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1910
1910
|
/* @__PURE__ */ e.jsx("path", { d: "M12 16v-4" }),
|
|
1911
1911
|
/* @__PURE__ */ e.jsx("path", { d: "M12 8h.01" })
|
|
1912
1912
|
] });
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function It(r) {
|
|
1915
1915
|
const { size: a = 24, ...n } = r;
|
|
1916
|
-
return /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...
|
|
1916
|
+
return /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...le(a), ...n, children: /* @__PURE__ */ e.jsx("path", { d: "M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z" }) });
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function Kt(r) {
|
|
1919
1919
|
const { size: a = 24, ...n } = r;
|
|
1920
|
-
return /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...
|
|
1920
|
+
return /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...le(a), ...n, children: [
|
|
1921
1921
|
/* @__PURE__ */ e.jsx("path", { d: "M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1" }),
|
|
1922
1922
|
/* @__PURE__ */ e.jsx("path", { d: "M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1" }),
|
|
1923
1923
|
/* @__PURE__ */ e.jsx("path", { d: "M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1" })
|
|
1924
1924
|
] });
|
|
1925
1925
|
}
|
|
1926
|
-
function
|
|
1926
|
+
function Et(r) {
|
|
1927
1927
|
const { size: a = 24, ...n } = r;
|
|
1928
|
-
return /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...
|
|
1928
|
+
return /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...le(a), ...n, children: [
|
|
1929
1929
|
/* @__PURE__ */ e.jsx("path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }),
|
|
1930
1930
|
/* @__PURE__ */ e.jsx("circle", { cx: "9", cy: "7", r: "4" }),
|
|
1931
1931
|
/* @__PURE__ */ e.jsx("path", { d: "M22 21v-2a4 4 0 0 0-3-3.87" }),
|
|
1932
1932
|
/* @__PURE__ */ e.jsx("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })
|
|
1933
1933
|
] });
|
|
1934
1934
|
}
|
|
1935
|
-
function
|
|
1935
|
+
function Ft(r) {
|
|
1936
1936
|
const { size: a = 24, ...n } = r;
|
|
1937
|
-
return /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...
|
|
1937
|
+
return /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...le(a), ...n, children: /* @__PURE__ */ e.jsx("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" }) });
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1939
|
+
function Ot(r) {
|
|
1940
1940
|
const { size: a = 24, ...n } = r;
|
|
1941
|
-
return /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...
|
|
1941
|
+
return /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...le(a), ...n, children: [
|
|
1942
1942
|
/* @__PURE__ */ e.jsx("path", { d: "m5 12 7-7 7 7" }),
|
|
1943
1943
|
/* @__PURE__ */ e.jsx("path", { d: "M12 19V5" })
|
|
1944
1944
|
] });
|
|
1945
1945
|
}
|
|
1946
1946
|
function Ua(r) {
|
|
1947
1947
|
const { size: a = 24, ...n } = r;
|
|
1948
|
-
return /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...
|
|
1948
|
+
return /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...le(a), ...n, children: /* @__PURE__ */ e.jsx("path", { d: "m6 9 6 6 6-6" }) });
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1950
|
+
function Lt(r) {
|
|
1951
1951
|
const { size: a = 24, className: n = "", ...s } = r;
|
|
1952
|
-
return /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: `animate-spin ${n}`, style: { animation: "spin 1s linear infinite" }, ...
|
|
1952
|
+
return /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: `animate-spin ${n}`, style: { animation: "spin 1s linear infinite" }, ...le(a), ...s, children: /* @__PURE__ */ e.jsx("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) });
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function Bt(r) {
|
|
1955
1955
|
const { size: a = 24, ...n } = r;
|
|
1956
|
-
return /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...
|
|
1956
|
+
return /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...le(a), ...n, children: [
|
|
1957
1957
|
/* @__PURE__ */ e.jsx("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
|
|
1958
1958
|
/* @__PURE__ */ e.jsx("polyline", { points: "15 3 21 3 21 9" }),
|
|
1959
1959
|
/* @__PURE__ */ e.jsx("line", { x1: "10", x2: "21", y1: "14", y2: "3" })
|
|
1960
1960
|
] });
|
|
1961
1961
|
}
|
|
1962
|
-
function
|
|
1962
|
+
function $t(r) {
|
|
1963
1963
|
const { size: a = 24, ...n } = r;
|
|
1964
|
-
return /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...
|
|
1964
|
+
return /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", ...le(a), ...n, children: [
|
|
1965
1965
|
/* @__PURE__ */ e.jsx("path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }),
|
|
1966
1966
|
/* @__PURE__ */ e.jsx("path", { d: "M3 3v5h5" })
|
|
1967
1967
|
] });
|
|
1968
1968
|
}
|
|
1969
|
-
const
|
|
1970
|
-
function
|
|
1969
|
+
const Je = se.createContext(null);
|
|
1970
|
+
function ka({
|
|
1971
1971
|
type: r = "single",
|
|
1972
1972
|
collapsible: a = !0,
|
|
1973
1973
|
className: n = "",
|
|
1974
1974
|
children: s,
|
|
1975
1975
|
onValueChange: i
|
|
1976
1976
|
}) {
|
|
1977
|
-
const [d, m] =
|
|
1977
|
+
const [d, m] = se.useState(null), b = se.useCallback(
|
|
1978
1978
|
(u) => {
|
|
1979
1979
|
m((v) => {
|
|
1980
|
-
const
|
|
1981
|
-
return i?.(
|
|
1980
|
+
const h = v === u ? a ? null : v : u;
|
|
1981
|
+
return i?.(h), h;
|
|
1982
1982
|
});
|
|
1983
1983
|
},
|
|
1984
1984
|
[a, i]
|
|
1985
1985
|
);
|
|
1986
|
-
return /* @__PURE__ */ e.jsx(
|
|
1986
|
+
return /* @__PURE__ */ e.jsx(Je.Provider, { value: { value: d, onToggle: b }, children: /* @__PURE__ */ e.jsx("div", { className: n, children: s }) });
|
|
1987
1987
|
}
|
|
1988
|
-
function
|
|
1988
|
+
function ja({ value: r, className: a = "", children: n }) {
|
|
1989
1989
|
return /* @__PURE__ */ e.jsx("div", { "data-state": r, className: `border-b border-border ${a}`, children: n });
|
|
1990
1990
|
}
|
|
1991
|
-
function
|
|
1991
|
+
function wa({
|
|
1992
1992
|
className: r = "",
|
|
1993
1993
|
children: a,
|
|
1994
1994
|
value: n
|
|
1995
1995
|
}) {
|
|
1996
|
-
const s =
|
|
1996
|
+
const s = se.useContext(Je), i = s?.value === n;
|
|
1997
1997
|
return /* @__PURE__ */ e.jsxs(
|
|
1998
1998
|
"button",
|
|
1999
1999
|
{
|
|
@@ -2013,14 +2013,14 @@ function Sa({
|
|
|
2013
2013
|
}
|
|
2014
2014
|
);
|
|
2015
2015
|
}
|
|
2016
|
-
function
|
|
2016
|
+
function Sa({
|
|
2017
2017
|
className: r = "",
|
|
2018
2018
|
children: a,
|
|
2019
2019
|
value: n
|
|
2020
2020
|
}) {
|
|
2021
|
-
return
|
|
2021
|
+
return se.useContext(Je)?.value === n ? /* @__PURE__ */ e.jsx("div", { className: `overflow-hidden text-sm pb-4 pt-0 ${r}`, children: a }) : null;
|
|
2022
2022
|
}
|
|
2023
|
-
const
|
|
2023
|
+
const Ee = se.forwardRef(
|
|
2024
2024
|
({ className: r = "", size: a = "default", variant: n = "default", ...s }, i) => {
|
|
2025
2025
|
const d = {
|
|
2026
2026
|
default: "h-10 px-4 py-2",
|
|
@@ -2045,8 +2045,8 @@ const Ie = te.forwardRef(
|
|
|
2045
2045
|
);
|
|
2046
2046
|
}
|
|
2047
2047
|
);
|
|
2048
|
-
|
|
2049
|
-
const
|
|
2048
|
+
Ee.displayName = "Button";
|
|
2049
|
+
const Wa = se.forwardRef(
|
|
2050
2050
|
({ className: r = "", ...a }, n) => /* @__PURE__ */ e.jsx(
|
|
2051
2051
|
"div",
|
|
2052
2052
|
{
|
|
@@ -2056,21 +2056,21 @@ const qa = te.forwardRef(
|
|
|
2056
2056
|
}
|
|
2057
2057
|
)
|
|
2058
2058
|
);
|
|
2059
|
-
|
|
2060
|
-
const
|
|
2061
|
-
function
|
|
2059
|
+
Wa.displayName = "Skeleton";
|
|
2060
|
+
const ze = /* @__PURE__ */ new Map(), _a = 1800 * 1e3;
|
|
2061
|
+
function Ut(r, a, n) {
|
|
2062
2062
|
return `D1|${a}|svg|${r.day}-${r.month}-${r.year}-${r.hour}-${r.minute}-${r.lat}-${r.lon}-${r.tzone}|${n}`;
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2065
|
-
const a =
|
|
2066
|
-
if (a && Date.now() - a.timestamp <
|
|
2064
|
+
function Wt(r) {
|
|
2065
|
+
const a = ze.get(r);
|
|
2066
|
+
if (a && Date.now() - a.timestamp < _a)
|
|
2067
2067
|
return a.svg;
|
|
2068
2068
|
try {
|
|
2069
2069
|
const n = sessionStorage.getItem(`kundali_${r}`);
|
|
2070
2070
|
if (n) {
|
|
2071
2071
|
const s = JSON.parse(n);
|
|
2072
|
-
if (Date.now() - s.timestamp <
|
|
2073
|
-
return
|
|
2072
|
+
if (Date.now() - s.timestamp < _a)
|
|
2073
|
+
return ze.set(r, s), s.svg;
|
|
2074
2074
|
sessionStorage.removeItem(`kundali_${r}`);
|
|
2075
2075
|
}
|
|
2076
2076
|
} catch {
|
|
@@ -2079,13 +2079,13 @@ function Ut(r) {
|
|
|
2079
2079
|
}
|
|
2080
2080
|
function qt(r, a) {
|
|
2081
2081
|
const n = { svg: a, timestamp: Date.now() };
|
|
2082
|
-
|
|
2082
|
+
ze.set(r, n);
|
|
2083
2083
|
try {
|
|
2084
2084
|
sessionStorage.setItem(`kundali_${r}`, JSON.stringify(n));
|
|
2085
2085
|
} catch {
|
|
2086
2086
|
}
|
|
2087
2087
|
}
|
|
2088
|
-
function
|
|
2088
|
+
function Gt(r) {
|
|
2089
2089
|
try {
|
|
2090
2090
|
const n = new DOMParser().parseFromString(r, "image/svg+xml"), s = n.querySelector("svg");
|
|
2091
2091
|
return s ? (s.removeAttribute("width"), s.removeAttribute("height"), s.getAttribute("viewBox") || s.setAttribute("viewBox", "0 0 350 350"), s.setAttribute("preserveAspectRatio", "xMidYMid meet"), s.setAttribute("style", "width:100%;height:auto;display:block;"), new XMLSerializer().serializeToString(n)) : r;
|
|
@@ -2093,8 +2093,8 @@ function Wt(r) {
|
|
|
2093
2093
|
return console.error("[kundaliChart] SVG transform error:", a), r;
|
|
2094
2094
|
}
|
|
2095
2095
|
}
|
|
2096
|
-
async function
|
|
2097
|
-
const { birthDetails: n, chartType: s, language: i, signal: d } = a, m =
|
|
2096
|
+
async function Ht(r, a) {
|
|
2097
|
+
const { birthDetails: n, chartType: s, language: i, signal: d } = a, m = Ut(n, s, i), b = Wt(m);
|
|
2098
2098
|
if (b) return b;
|
|
2099
2099
|
const u = await r.functions.invoke("get-kundali-chart", {
|
|
2100
2100
|
body: {
|
|
@@ -2110,44 +2110,44 @@ async function Gt(r, a) {
|
|
|
2110
2110
|
const v = u.data?.data?.svg;
|
|
2111
2111
|
if (!v)
|
|
2112
2112
|
throw new Error("No SVG data in response");
|
|
2113
|
-
const
|
|
2114
|
-
return qt(m,
|
|
2115
|
-
}
|
|
2116
|
-
function
|
|
2117
|
-
const [i, d] =
|
|
2118
|
-
async (
|
|
2119
|
-
|
|
2120
|
-
const
|
|
2121
|
-
|
|
2113
|
+
const h = Gt(v);
|
|
2114
|
+
return qt(m, h), h;
|
|
2115
|
+
}
|
|
2116
|
+
function Yt({ birthDetails: r, supabase: a, language: n, t: s }) {
|
|
2117
|
+
const [i, d] = E("North"), [m, b] = E("idle"), [u, v] = E(""), [h, g] = E(""), M = ae(null), S = ae(null), T = (n || "").toLowerCase().startsWith("hi") ? "hi" : "en", A = Qe(
|
|
2118
|
+
async (q) => {
|
|
2119
|
+
M.current && M.current.abort();
|
|
2120
|
+
const L = new AbortController();
|
|
2121
|
+
M.current = L, b("loading"), g("");
|
|
2122
2122
|
try {
|
|
2123
|
-
const F = await
|
|
2123
|
+
const F = await Ht(a, {
|
|
2124
2124
|
birthDetails: r,
|
|
2125
|
-
chartType:
|
|
2126
|
-
language:
|
|
2127
|
-
signal:
|
|
2125
|
+
chartType: q,
|
|
2126
|
+
language: T,
|
|
2127
|
+
signal: L.signal
|
|
2128
2128
|
});
|
|
2129
|
-
|
|
2129
|
+
L.signal.aborted || (v(F), b("success"));
|
|
2130
2130
|
} catch (F) {
|
|
2131
2131
|
if (F instanceof Error && F.name === "AbortError") return;
|
|
2132
|
-
console.error("[KundaliCard] Fetch error:", F),
|
|
2132
|
+
console.error("[KundaliCard] Fetch error:", F), L.signal.aborted || (g(F instanceof Error ? F.message : "Failed to load chart"), b("error"));
|
|
2133
2133
|
}
|
|
2134
2134
|
},
|
|
2135
|
-
[r, a,
|
|
2135
|
+
[r, a, T]
|
|
2136
2136
|
);
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
}), [i,
|
|
2140
|
-
const k = (
|
|
2141
|
-
|
|
2142
|
-
},
|
|
2143
|
-
|
|
2137
|
+
xe(() => (A(i), () => {
|
|
2138
|
+
M.current && M.current.abort();
|
|
2139
|
+
}), [i, A]);
|
|
2140
|
+
const k = (q) => {
|
|
2141
|
+
q !== i && d(q);
|
|
2142
|
+
}, D = () => {
|
|
2143
|
+
A(i);
|
|
2144
2144
|
};
|
|
2145
|
-
return /* @__PURE__ */ e.jsxs(
|
|
2146
|
-
/* @__PURE__ */ e.jsxs(
|
|
2147
|
-
/* @__PURE__ */ e.jsx(
|
|
2145
|
+
return /* @__PURE__ */ e.jsxs(ve, { ref: S, className: "spiritual-glow border border-primary/10", children: [
|
|
2146
|
+
/* @__PURE__ */ e.jsxs(Ne, { className: "pb-3", children: [
|
|
2147
|
+
/* @__PURE__ */ e.jsx(Pe, { className: "text-xl font-bold", children: s("drYourKundali") }),
|
|
2148
2148
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2 mt-3", children: [
|
|
2149
2149
|
/* @__PURE__ */ e.jsx(
|
|
2150
|
-
|
|
2150
|
+
Ee,
|
|
2151
2151
|
{
|
|
2152
2152
|
type: "button",
|
|
2153
2153
|
size: "sm",
|
|
@@ -2158,7 +2158,7 @@ function Ht({ birthDetails: r, supabase: a, language: n, t: s }) {
|
|
|
2158
2158
|
}
|
|
2159
2159
|
),
|
|
2160
2160
|
/* @__PURE__ */ e.jsx(
|
|
2161
|
-
|
|
2161
|
+
Ee,
|
|
2162
2162
|
{
|
|
2163
2163
|
type: "button",
|
|
2164
2164
|
size: "sm",
|
|
@@ -2170,8 +2170,8 @@ function Ht({ birthDetails: r, supabase: a, language: n, t: s }) {
|
|
|
2170
2170
|
)
|
|
2171
2171
|
] })
|
|
2172
2172
|
] }),
|
|
2173
|
-
/* @__PURE__ */ e.jsx(
|
|
2174
|
-
m === "loading" && /* @__PURE__ */ e.jsx(
|
|
2173
|
+
/* @__PURE__ */ e.jsx(Te, { children: /* @__PURE__ */ e.jsxs("div", { className: "w-full max-w-[360px] mx-auto", children: [
|
|
2174
|
+
m === "loading" && /* @__PURE__ */ e.jsx(Wa, { className: "w-full aspect-square rounded-lg" }),
|
|
2175
2175
|
m === "success" && u && /* @__PURE__ */ e.jsx(
|
|
2176
2176
|
"div",
|
|
2177
2177
|
{
|
|
@@ -2182,15 +2182,15 @@ function Ht({ birthDetails: r, supabase: a, language: n, t: s }) {
|
|
|
2182
2182
|
m === "error" && /* @__PURE__ */ e.jsxs("div", { className: "w-full aspect-square flex flex-col items-center justify-center bg-muted/30 rounded-lg border border-border", children: [
|
|
2183
2183
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground mb-3", children: s("kundaliChartLoadError") }),
|
|
2184
2184
|
/* @__PURE__ */ e.jsxs(
|
|
2185
|
-
|
|
2185
|
+
Ee,
|
|
2186
2186
|
{
|
|
2187
2187
|
type: "button",
|
|
2188
2188
|
variant: "outline",
|
|
2189
2189
|
size: "sm",
|
|
2190
|
-
onClick:
|
|
2190
|
+
onClick: D,
|
|
2191
2191
|
className: "gap-2",
|
|
2192
2192
|
children: [
|
|
2193
|
-
/* @__PURE__ */ e.jsx(
|
|
2193
|
+
/* @__PURE__ */ e.jsx($t, { className: "w-4 h-4" }),
|
|
2194
2194
|
s("kundaliChartRetry")
|
|
2195
2195
|
]
|
|
2196
2196
|
}
|
|
@@ -2199,11 +2199,11 @@ function Ht({ birthDetails: r, supabase: a, language: n, t: s }) {
|
|
|
2199
2199
|
] }) })
|
|
2200
2200
|
] });
|
|
2201
2201
|
}
|
|
2202
|
-
const
|
|
2202
|
+
const Vt = [
|
|
2203
2203
|
{ qKey: "faqQ1", aKey: "faqA1" },
|
|
2204
2204
|
{ qKey: "faqQ2", aKey: "faqA2" },
|
|
2205
2205
|
{ qKey: "faqQ3", aKey: "faqA3" }
|
|
2206
|
-
],
|
|
2206
|
+
], Na = [
|
|
2207
2207
|
{
|
|
2208
2208
|
type: "kaal-sarp",
|
|
2209
2209
|
detailKey: "kaalSarp",
|
|
@@ -2212,7 +2212,7 @@ const Yt = [
|
|
|
2212
2212
|
impactKey: "drKaalSarpImpact",
|
|
2213
2213
|
remediesKey: "drKaalSarpRemedies",
|
|
2214
2214
|
benefitsKey: "drPujaBenefitsKaalSarp",
|
|
2215
|
-
icon:
|
|
2215
|
+
icon: Kt,
|
|
2216
2216
|
summaryKey: "kaalSarp",
|
|
2217
2217
|
severityKey: "kaalSarpSeverity"
|
|
2218
2218
|
},
|
|
@@ -2224,7 +2224,7 @@ const Yt = [
|
|
|
2224
2224
|
impactKey: "drPitraImpact",
|
|
2225
2225
|
remediesKey: "drPitraRemedies",
|
|
2226
2226
|
benefitsKey: "drPujaBenefitsPitra",
|
|
2227
|
-
icon:
|
|
2227
|
+
icon: Et,
|
|
2228
2228
|
summaryKey: "pitra",
|
|
2229
2229
|
severityKey: "pitraSeverity"
|
|
2230
2230
|
},
|
|
@@ -2236,7 +2236,7 @@ const Yt = [
|
|
|
2236
2236
|
impactKey: "drSadeSatiImpact",
|
|
2237
2237
|
remediesKey: "drSadeSatiRemedies",
|
|
2238
2238
|
benefitsKey: "drPujaBenefitsShani",
|
|
2239
|
-
icon:
|
|
2239
|
+
icon: Ft,
|
|
2240
2240
|
summaryKey: "shaniSadeSati",
|
|
2241
2241
|
severityKey: "sadeSatiSeverity"
|
|
2242
2242
|
},
|
|
@@ -2248,12 +2248,12 @@ const Yt = [
|
|
|
2248
2248
|
impactKey: "drMangalImpact",
|
|
2249
2249
|
remediesKey: "drMangalRemedies",
|
|
2250
2250
|
benefitsKey: "drPujaBenefitsMangal",
|
|
2251
|
-
icon:
|
|
2251
|
+
icon: It,
|
|
2252
2252
|
summaryKey: "mangal",
|
|
2253
2253
|
severityKey: "mangalSeverity"
|
|
2254
2254
|
}
|
|
2255
2255
|
];
|
|
2256
|
-
function
|
|
2256
|
+
function ye(r) {
|
|
2257
2257
|
if (!r) return !1;
|
|
2258
2258
|
const a = r.toLowerCase();
|
|
2259
2259
|
return a === "present" || a === "active" || a === "partial" || a === "suggested";
|
|
@@ -2261,7 +2261,7 @@ function fe(r) {
|
|
|
2261
2261
|
function Ve(r) {
|
|
2262
2262
|
return r ? r.toLowerCase().includes("nullified") : !1;
|
|
2263
2263
|
}
|
|
2264
|
-
function
|
|
2264
|
+
function Pa(r, a) {
|
|
2265
2265
|
if (Array.isArray(r)) {
|
|
2266
2266
|
const n = r.find(
|
|
2267
2267
|
(d) => (d.name ?? d.type) === a
|
|
@@ -2287,22 +2287,22 @@ function Ta(r, a) {
|
|
|
2287
2287
|
};
|
|
2288
2288
|
}
|
|
2289
2289
|
}
|
|
2290
|
-
function
|
|
2290
|
+
function Ta(r, a) {
|
|
2291
2291
|
if (!r) return "";
|
|
2292
2292
|
const n = r.toLowerCase();
|
|
2293
2293
|
return n.includes("nullified") ? a("drStatusNullified") : n === "present" || n === "active" || n === "partial" || n === "suggested" ? a("drStatusPresent") : n === "absent" ? a("drStatusAbsent") : n === "inactive" ? a("drStatusInactive") : r;
|
|
2294
2294
|
}
|
|
2295
|
-
function
|
|
2295
|
+
function Aa(r) {
|
|
2296
2296
|
if (!r) return 2;
|
|
2297
2297
|
const a = r.toLowerCase();
|
|
2298
2298
|
return a === "severe" || a === "high" ? 3 : a === "moderate" || a === "medium" ? 2 : a === "mild" || a === "low" ? 1 : 2;
|
|
2299
2299
|
}
|
|
2300
|
-
function
|
|
2300
|
+
function Ca(r, a) {
|
|
2301
2301
|
if (!r) return a("drSeverityMedium");
|
|
2302
2302
|
const n = r.toLowerCase();
|
|
2303
2303
|
return a(n === "severe" || n === "high" ? "drSeverityHigh" : n === "moderate" || n === "medium" ? "drSeverityMedium" : n === "mild" || n === "low" ? "drSeverityLow" : "drSeverityMedium");
|
|
2304
2304
|
}
|
|
2305
|
-
function
|
|
2305
|
+
function zt({
|
|
2306
2306
|
result: r,
|
|
2307
2307
|
t: a,
|
|
2308
2308
|
onEdit: n,
|
|
@@ -2313,35 +2313,35 @@ function Vt({
|
|
|
2313
2313
|
isLoadingPujas: b = !1,
|
|
2314
2314
|
renderKundali: u,
|
|
2315
2315
|
birthDetails: v,
|
|
2316
|
-
supabase:
|
|
2317
|
-
language:
|
|
2318
|
-
readMoreReviewsHref:
|
|
2316
|
+
supabase: h,
|
|
2317
|
+
language: g = "en",
|
|
2318
|
+
readMoreReviewsHref: M,
|
|
2319
2319
|
inlineEditForm: S,
|
|
2320
|
-
analytics:
|
|
2320
|
+
analytics: f
|
|
2321
2321
|
}) {
|
|
2322
|
-
const
|
|
2323
|
-
for (const o of
|
|
2324
|
-
const j = o.summaryKey === "shaniSadeSati" ?
|
|
2325
|
-
if (!
|
|
2326
|
-
const
|
|
2327
|
-
`).map((
|
|
2328
|
-
`).map((
|
|
2329
|
-
|
|
2322
|
+
const T = !u && v && h, A = r.summary ?? {}, k = r.details ?? {}, D = A.shaniSadeSati ?? A.sadeSati, q = ye(A.mangal) && !Ve(A.mangal) || ye(A.kaalSarp) || ye(A.pitra) || ye(D), L = [];
|
|
2323
|
+
for (const o of Na) {
|
|
2324
|
+
const j = o.summaryKey === "shaniSadeSati" ? D : A[o.summaryKey];
|
|
2325
|
+
if (!ye(j) || o.type === "mangal" && Ve(j)) continue;
|
|
2326
|
+
const C = A[o.severityKey], N = o.type === "shani" ? A.shaniPhase ?? A.shaniPhase : void 0, K = Pa(k, o.detailKey === "sadeSati" ? "sadeSati" : o.detailKey), x = K?.explanation ?? a("drBasedOnPositions"), O = (K?.remedies ?? a(o.remediesKey)).split(`
|
|
2327
|
+
`).map((te) => te.trim()).filter(Boolean), X = a(o.benefitsKey).split(`
|
|
2328
|
+
`).map((te) => te.trim()).filter(Boolean);
|
|
2329
|
+
L.push({
|
|
2330
2330
|
type: o.type,
|
|
2331
2331
|
detailKey: o.detailKey,
|
|
2332
2332
|
label: a(o.nameKey),
|
|
2333
2333
|
icon: o.icon,
|
|
2334
2334
|
status: j ?? "",
|
|
2335
|
-
severity:
|
|
2336
|
-
phase:
|
|
2335
|
+
severity: C || "moderate",
|
|
2336
|
+
phase: N ?? void 0,
|
|
2337
2337
|
explanation: x,
|
|
2338
2338
|
placements: K?.placements,
|
|
2339
2339
|
impact: a(o.impactKey),
|
|
2340
|
-
remedies:
|
|
2341
|
-
benefits:
|
|
2340
|
+
remedies: O,
|
|
2341
|
+
benefits: X
|
|
2342
2342
|
});
|
|
2343
2343
|
}
|
|
2344
|
-
|
|
2344
|
+
L.sort((o, j) => Aa(j.severity) - Aa(o.severity));
|
|
2345
2345
|
const F = [
|
|
2346
2346
|
{ summaryKey: "grahan", detailKey: "grahan", labelKey: "drOtherGrahan" },
|
|
2347
2347
|
{ summaryKey: "shrapit", detailKey: "shrapit", labelKey: "drOtherShrapit" },
|
|
@@ -2354,28 +2354,28 @@ function Vt({
|
|
|
2354
2354
|
{ summaryKey: "ketuNaga", detailKey: "ketuNaga", labelKey: "drOtherKetuNaga" },
|
|
2355
2355
|
{ summaryKey: "navagrahaUmbrella", detailKey: "navagraha", labelKey: "drOtherNavagraha" }
|
|
2356
2356
|
], re = F.filter(
|
|
2357
|
-
(o) =>
|
|
2358
|
-
).length > 0, [
|
|
2359
|
-
|
|
2360
|
-
const j =
|
|
2357
|
+
(o) => ye(A[o.summaryKey])
|
|
2358
|
+
).length > 0, [ue, G] = E(!1), he = /\b(house|lagna|ascendant|moon|mars|saturn|rahu|ketu|sun|jupiter|venus|mercury|sign|degree|H\d+|conjunction|aspect)\b|भाव|लग्न|चंद्र|मंगल|शनि|राहु|केतु|सूर्य|बृहस्पति|शुक्र|बुध/i, ce = k && typeof k == "object" && !Array.isArray(k) ? k : {}, J = [];
|
|
2359
|
+
L.forEach((o) => {
|
|
2360
|
+
const j = ce[o.detailKey === "sadeSati" ? "sadeSati" : o.detailKey] || {}, C = [
|
|
2361
2361
|
...j.placements || [],
|
|
2362
2362
|
...j.triggeredBy || [],
|
|
2363
2363
|
...j.notes || []
|
|
2364
|
-
].map((
|
|
2364
|
+
].map((y) => String(y || "").trim()).filter(Boolean), N = Array.from(new Set(C)), K = N.filter((y) => he.test(y)), x = K.length > 0 ? K : N;
|
|
2365
2365
|
x.length > 0 && J.push({ label: o.label, evidence: x });
|
|
2366
2366
|
}), F.forEach((o) => {
|
|
2367
|
-
if (!
|
|
2368
|
-
const j =
|
|
2367
|
+
if (!ye(A[o.summaryKey])) return;
|
|
2368
|
+
const j = ce[o.detailKey] || {}, C = [
|
|
2369
2369
|
...j.placements || [],
|
|
2370
2370
|
...j.triggeredBy || [],
|
|
2371
2371
|
...j.notes || []
|
|
2372
|
-
].map((
|
|
2372
|
+
].map((y) => String(y || "").trim()).filter(Boolean), N = Array.from(new Set(C)), K = N.filter((y) => he.test(y)), x = K.length > 0 ? K : N;
|
|
2373
2373
|
if (x.length > 0) {
|
|
2374
|
-
const
|
|
2375
|
-
J.some((
|
|
2374
|
+
const y = a(o.labelKey);
|
|
2375
|
+
J.some((O) => O.label === y) || J.push({ label: y, evidence: x });
|
|
2376
2376
|
}
|
|
2377
2377
|
});
|
|
2378
|
-
const
|
|
2378
|
+
const Y = (o) => o === 1 ? a("drPhaseRising") : o === 2 ? a("drPhasePeak") : o === 3 ? a("drPhaseSetting") : "", V = [
|
|
2379
2379
|
"bg-orange-50/50 border-l-4 border-l-orange-400",
|
|
2380
2380
|
"bg-blue-50/50 border-l-4 border-l-blue-400",
|
|
2381
2381
|
"bg-purple-50/50 border-l-4 border-l-purple-400",
|
|
@@ -2409,7 +2409,7 @@ function Vt({
|
|
|
2409
2409
|
className: "mt-4 inline-flex items-center gap-2 min-h-[44px] px-4 text-sm font-medium border border-gray-300 bg-white rounded-md hover:bg-gray-50 transition-colors text-gray-700",
|
|
2410
2410
|
style: { fontFamily: '"Plus Jakarta Sans", sans-serif' },
|
|
2411
2411
|
children: [
|
|
2412
|
-
/* @__PURE__ */ e.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden":
|
|
2412
|
+
/* @__PURE__ */ e.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
2413
2413
|
/* @__PURE__ */ e.jsx("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
|
|
2414
2414
|
/* @__PURE__ */ e.jsx("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
|
|
2415
2415
|
] }),
|
|
@@ -2418,67 +2418,67 @@ function Vt({
|
|
|
2418
2418
|
}
|
|
2419
2419
|
) : null
|
|
2420
2420
|
] }),
|
|
2421
|
-
/* @__PURE__ */ e.jsxs(
|
|
2422
|
-
/* @__PURE__ */ e.jsx(
|
|
2423
|
-
|
|
2421
|
+
/* @__PURE__ */ e.jsxs(ve, { className: "spiritual-glow border-2 border-primary/20 mx-4", children: [
|
|
2422
|
+
/* @__PURE__ */ e.jsx(Ne, { children: /* @__PURE__ */ e.jsx(
|
|
2423
|
+
Pe,
|
|
2424
2424
|
{
|
|
2425
2425
|
id: "dosha-results-heading",
|
|
2426
|
-
className: `text-2xl sm:text-3xl font-bold break-words ${
|
|
2427
|
-
children:
|
|
2426
|
+
className: `text-2xl sm:text-3xl font-bold break-words ${q ? "text-primary" : "text-success"}`,
|
|
2427
|
+
children: q ? a("resultSomeDoshas") : `✓ ${a("resultNoDoshas")}`
|
|
2428
2428
|
}
|
|
2429
2429
|
) }),
|
|
2430
|
-
/* @__PURE__ */ e.jsx(
|
|
2430
|
+
/* @__PURE__ */ e.jsx(Te, { children: q ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2", children: L.map((o) => /* @__PURE__ */ e.jsxs(
|
|
2431
2431
|
"div",
|
|
2432
2432
|
{
|
|
2433
2433
|
className: "inline-flex items-center gap-2 bg-accent/20 border border-accent/30 px-4 py-2 rounded-full",
|
|
2434
2434
|
children: [
|
|
2435
|
-
/* @__PURE__ */ e.jsx(
|
|
2435
|
+
/* @__PURE__ */ e.jsx(ba, { className: "w-4 h-4 text-primary" }),
|
|
2436
2436
|
/* @__PURE__ */ e.jsxs("span", { className: "font-medium text-sm text-foreground", children: [
|
|
2437
2437
|
o.label,
|
|
2438
2438
|
": ",
|
|
2439
|
-
|
|
2439
|
+
Ta(o.status, a)
|
|
2440
2440
|
] })
|
|
2441
2441
|
]
|
|
2442
2442
|
},
|
|
2443
2443
|
o.type
|
|
2444
2444
|
)) }) : /* @__PURE__ */ e.jsxs("div", { className: "text-center py-8", children: [
|
|
2445
|
-
/* @__PURE__ */ e.jsx(
|
|
2445
|
+
/* @__PURE__ */ e.jsx(va, { className: "w-12 h-12 mx-auto mb-4 text-success" }),
|
|
2446
2446
|
/* @__PURE__ */ e.jsx("p", { className: "text-lg font-medium text-foreground", children: a("resultNoDoshas") }),
|
|
2447
2447
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground mt-2", children: a("resultNoDoshasDesc") })
|
|
2448
2448
|
] }) })
|
|
2449
2449
|
] }),
|
|
2450
|
-
|
|
2451
|
-
const
|
|
2450
|
+
L.map((o, j) => {
|
|
2451
|
+
const C = o.icon, N = o.type === "shani" && o.phase ? Y(o.phase) : "", K = V[j % V.length], x = a("drDoshaOf").replace("{{index}}", String(j + 1)).replace("{{total}}", String(L.length));
|
|
2452
2452
|
return /* @__PURE__ */ e.jsxs(
|
|
2453
|
-
|
|
2453
|
+
ve,
|
|
2454
2454
|
{
|
|
2455
2455
|
className: `spiritual-glow border border-primary/10 mx-4 ${K}`,
|
|
2456
2456
|
children: [
|
|
2457
|
-
/* @__PURE__ */ e.jsx("div", { className: "px-4 pt-3", children: /* @__PURE__ */ e.jsx(
|
|
2458
|
-
/* @__PURE__ */ e.jsxs(
|
|
2459
|
-
/* @__PURE__ */ e.jsxs(
|
|
2460
|
-
/* @__PURE__ */ e.jsx(
|
|
2457
|
+
/* @__PURE__ */ e.jsx("div", { className: "px-4 pt-3", children: /* @__PURE__ */ e.jsx(Ue, { variant: "outline", className: "text-xs font-normal text-muted-foreground", children: x }) }),
|
|
2458
|
+
/* @__PURE__ */ e.jsxs(Ne, { className: "pb-3 pt-2", children: [
|
|
2459
|
+
/* @__PURE__ */ e.jsxs(Pe, { className: "flex items-center gap-3 text-xl", children: [
|
|
2460
|
+
/* @__PURE__ */ e.jsx(C, { className: "w-6 h-6 text-primary" }),
|
|
2461
2461
|
o.label
|
|
2462
2462
|
] }),
|
|
2463
|
-
/* @__PURE__ */ e.jsxs(
|
|
2463
|
+
/* @__PURE__ */ e.jsxs($e, { children: [
|
|
2464
2464
|
a("drSeverity"),
|
|
2465
2465
|
": ",
|
|
2466
|
-
|
|
2466
|
+
Ca(o.severity, a),
|
|
2467
2467
|
o.phase != null && ` • ${a("drPhase")}: ${o.phase}`
|
|
2468
2468
|
] })
|
|
2469
2469
|
] }),
|
|
2470
|
-
/* @__PURE__ */ e.jsxs(
|
|
2470
|
+
/* @__PURE__ */ e.jsxs(Te, { className: "space-y-4", children: [
|
|
2471
2471
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
2472
2472
|
/* @__PURE__ */ e.jsxs("h4", { className: "font-semibold text-base flex items-center gap-2", children: [
|
|
2473
|
-
/* @__PURE__ */ e.jsx(
|
|
2473
|
+
/* @__PURE__ */ e.jsx(xa, { className: "w-4 h-4 text-primary" }),
|
|
2474
2474
|
a("drWhyMarked"),
|
|
2475
2475
|
i && /* @__PURE__ */ e.jsx(
|
|
2476
2476
|
"button",
|
|
2477
2477
|
{
|
|
2478
2478
|
type: "button",
|
|
2479
2479
|
onClick: () => {
|
|
2480
|
-
const
|
|
2481
|
-
|
|
2480
|
+
const y = document.getElementById(i);
|
|
2481
|
+
y && y.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
2482
2482
|
},
|
|
2483
2483
|
className: "text-xs text-primary hover:underline ml-auto",
|
|
2484
2484
|
children: "View Kundli ↓"
|
|
@@ -2486,13 +2486,13 @@ function Vt({
|
|
|
2486
2486
|
)
|
|
2487
2487
|
] }),
|
|
2488
2488
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground leading-relaxed", children: o.explanation }),
|
|
2489
|
-
|
|
2489
|
+
N && /* @__PURE__ */ e.jsxs("div", { className: "mt-3 p-3 bg-warning/10 rounded-md border border-warning/20", children: [
|
|
2490
2490
|
/* @__PURE__ */ e.jsx("h5", { className: "font-medium text-sm mb-2", children: a("drPhaseMeaning") }),
|
|
2491
|
-
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground", children:
|
|
2491
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground", children: N })
|
|
2492
2492
|
] }),
|
|
2493
2493
|
o.type !== "pitra" && o.placements && o.placements.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "mt-3 p-3 bg-accent/10 rounded-md border border-accent/20", children: [
|
|
2494
2494
|
/* @__PURE__ */ e.jsx("h5", { className: "font-medium text-sm mb-2", children: a("drPlanetaryPositions") }),
|
|
2495
|
-
/* @__PURE__ */ e.jsx("ul", { className: "list-disc list-inside text-sm text-muted-foreground space-y-1", children: o.placements.map((
|
|
2495
|
+
/* @__PURE__ */ e.jsx("ul", { className: "list-disc list-inside text-sm text-muted-foreground space-y-1", children: o.placements.map((y, O) => /* @__PURE__ */ e.jsx("li", { children: y }, O)) })
|
|
2496
2496
|
] })
|
|
2497
2497
|
] }),
|
|
2498
2498
|
/* @__PURE__ */ e.jsxs("div", { className: "p-4 bg-destructive/10 border border-destructive/20 rounded-lg", children: [
|
|
@@ -2501,14 +2501,14 @@ function Vt({
|
|
|
2501
2501
|
] }),
|
|
2502
2502
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
2503
2503
|
/* @__PURE__ */ e.jsx("h4", { className: "font-semibold text-base", children: a("drPujaRecommendation") }),
|
|
2504
|
-
m ? b ? /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center py-6", children: /* @__PURE__ */ e.jsx(
|
|
2504
|
+
m ? b ? /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center py-6", children: /* @__PURE__ */ e.jsx(Lt, { className: "w-6 h-6 text-primary animate-spin", size: 24 }) }) : m(o.type) || /* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground italic", children: a("drNoPujaAvailable") }) : /* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground italic", children: a("drNoPujaAvailable") })
|
|
2505
2505
|
] }),
|
|
2506
2506
|
o.benefits.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
2507
2507
|
/* @__PURE__ */ e.jsx("h4", { className: "font-semibold text-base flex items-center gap-2", children: a("drHowPujaHelps") }),
|
|
2508
|
-
/* @__PURE__ */ e.jsx("ul", { className: "text-sm text-muted-foreground space-y-3 ml-1", children: o.benefits.map((
|
|
2508
|
+
/* @__PURE__ */ e.jsx("ul", { className: "text-sm text-muted-foreground space-y-3 ml-1", children: o.benefits.map((y, O) => /* @__PURE__ */ e.jsxs("li", { className: "flex items-start gap-3", children: [
|
|
2509
2509
|
/* @__PURE__ */ e.jsx("span", { className: "text-primary mt-1.5 flex-shrink-0", children: "•" }),
|
|
2510
|
-
/* @__PURE__ */ e.jsx("span", { children:
|
|
2511
|
-
] },
|
|
2510
|
+
/* @__PURE__ */ e.jsx("span", { children: y })
|
|
2511
|
+
] }, O)) })
|
|
2512
2512
|
] })
|
|
2513
2513
|
] })
|
|
2514
2514
|
]
|
|
@@ -2516,7 +2516,7 @@ function Vt({
|
|
|
2516
2516
|
o.type
|
|
2517
2517
|
);
|
|
2518
2518
|
}),
|
|
2519
|
-
|
|
2519
|
+
L.length > 0 && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-muted-foreground text-center italic px-4", children: a("drFomoLine") }),
|
|
2520
2520
|
/* @__PURE__ */ e.jsxs("div", { className: "mx-4 p-4 bg-muted/30 rounded-lg border border-border/50 text-center", children: [
|
|
2521
2521
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-foreground/80 font-medium", children: a("drFeedbackContact") }),
|
|
2522
2522
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2528,94 +2528,94 @@ function Vt({
|
|
|
2528
2528
|
}
|
|
2529
2529
|
)
|
|
2530
2530
|
] }),
|
|
2531
|
-
/* @__PURE__ */ e.jsxs(
|
|
2532
|
-
/* @__PURE__ */ e.jsxs(
|
|
2533
|
-
/* @__PURE__ */ e.jsx(
|
|
2534
|
-
/* @__PURE__ */ e.jsx(
|
|
2531
|
+
/* @__PURE__ */ e.jsxs(ve, { className: "spiritual-glow mx-4", children: [
|
|
2532
|
+
/* @__PURE__ */ e.jsxs(Ne, { children: [
|
|
2533
|
+
/* @__PURE__ */ e.jsx(Pe, { className: "text-2xl font-bold text-center gradient-spiritual bg-clip-text text-transparent", children: a("drDetailedAnalysis") }),
|
|
2534
|
+
/* @__PURE__ */ e.jsx($e, { className: "text-center", children: a("drBasedOnChart") })
|
|
2535
2535
|
] }),
|
|
2536
|
-
/* @__PURE__ */ e.jsx(
|
|
2537
|
-
const j = o.detailKey === "sadeSati" ? "sadeSati" : o.detailKey,
|
|
2536
|
+
/* @__PURE__ */ e.jsx(Te, { className: "space-y-4", children: /* @__PURE__ */ e.jsx(ka, { type: "single", collapsible: !0, className: "w-full space-y-4", children: Na.map((o) => {
|
|
2537
|
+
const j = o.detailKey === "sadeSati" ? "sadeSati" : o.detailKey, C = o.summaryKey === "shaniSadeSati" ? D : A[o.summaryKey], N = Pa(
|
|
2538
2538
|
k,
|
|
2539
2539
|
o.detailKey === "sadeSati" ? "sadeSati" : o.detailKey
|
|
2540
|
-
), K =
|
|
2541
|
-
`).map((
|
|
2542
|
-
return /* @__PURE__ */ e.jsxs(
|
|
2543
|
-
/* @__PURE__ */ e.jsx(
|
|
2544
|
-
/* @__PURE__ */ e.jsx(
|
|
2540
|
+
), K = A[o.severityKey], x = o.type === "shani" ? A.shaniPhase : void 0, y = o.icon, me = (N?.remedies ?? a(o.remediesKey)).split(`
|
|
2541
|
+
`).map((X) => X.trim()).filter(Boolean);
|
|
2542
|
+
return /* @__PURE__ */ e.jsxs(ja, { value: j, className: "border border-border rounded-lg px-4", children: [
|
|
2543
|
+
/* @__PURE__ */ e.jsx(wa, { value: j, className: "hover:no-underline", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
2544
|
+
/* @__PURE__ */ e.jsx(y, { className: "w-5 h-5 text-destructive" }),
|
|
2545
2545
|
/* @__PURE__ */ e.jsxs("div", { className: "text-left", children: [
|
|
2546
2546
|
/* @__PURE__ */ e.jsx("h3", { className: "font-semibold text-lg", children: a(o.nameKey) }),
|
|
2547
2547
|
/* @__PURE__ */ e.jsxs("p", { className: "text-sm text-muted-foreground", children: [
|
|
2548
2548
|
a("drStatus"),
|
|
2549
2549
|
": ",
|
|
2550
|
-
|
|
2551
|
-
K && !Ve(
|
|
2550
|
+
Ta(C, a),
|
|
2551
|
+
K && !Ve(C) && ` • ${a("drSeverity")}: ${Ca(K, a)}`,
|
|
2552
2552
|
o.type === "shani" && x != null && ` • ${a("drPhase")}: ${x}`
|
|
2553
2553
|
] })
|
|
2554
2554
|
] })
|
|
2555
2555
|
] }) }),
|
|
2556
|
-
/* @__PURE__ */ e.jsxs(
|
|
2556
|
+
/* @__PURE__ */ e.jsxs(Sa, { value: j, className: "pt-4 space-y-4", children: [
|
|
2557
2557
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground italic", children: a(o.descKey) }),
|
|
2558
|
-
|
|
2558
|
+
N?.explanation && /* @__PURE__ */ e.jsxs("div", { children: [
|
|
2559
2559
|
/* @__PURE__ */ e.jsx("h4", { className: "font-medium mb-2", children: a("drExplanation") }),
|
|
2560
|
-
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground", children:
|
|
2560
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground", children: N.explanation })
|
|
2561
2561
|
] }),
|
|
2562
|
-
|
|
2562
|
+
N?.placements && N.placements.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "p-3 bg-accent/10 rounded-md", children: [
|
|
2563
2563
|
/* @__PURE__ */ e.jsx("h4", { className: "font-medium mb-2", children: a("drPlanetaryPositions") }),
|
|
2564
|
-
/* @__PURE__ */ e.jsx("ul", { className: "list-disc list-inside text-sm text-muted-foreground space-y-1", children:
|
|
2564
|
+
/* @__PURE__ */ e.jsx("ul", { className: "list-disc list-inside text-sm text-muted-foreground space-y-1", children: N.placements.map((X, te) => /* @__PURE__ */ e.jsx("li", { children: X }, te)) })
|
|
2565
2565
|
] }),
|
|
2566
2566
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
2567
2567
|
/* @__PURE__ */ e.jsx("h4", { className: "font-medium mb-2", children: a("drTraditionalRemedies") }),
|
|
2568
|
-
/* @__PURE__ */ e.jsx("ul", { className: "list-disc list-inside text-sm text-muted-foreground space-y-1", children:
|
|
2568
|
+
/* @__PURE__ */ e.jsx("ul", { className: "list-disc list-inside text-sm text-muted-foreground space-y-1", children: me.map((X, te) => /* @__PURE__ */ e.jsx("li", { children: X }, te)) })
|
|
2569
2569
|
] })
|
|
2570
2570
|
] })
|
|
2571
2571
|
] }, j);
|
|
2572
2572
|
}) }) })
|
|
2573
2573
|
] }),
|
|
2574
|
-
/* @__PURE__ */ e.jsxs(
|
|
2574
|
+
/* @__PURE__ */ e.jsxs(ve, { className: "mx-4", children: [
|
|
2575
2575
|
/* @__PURE__ */ e.jsx(
|
|
2576
|
-
|
|
2576
|
+
Ne,
|
|
2577
2577
|
{
|
|
2578
2578
|
className: "cursor-pointer hover:bg-accent/5 transition-colors",
|
|
2579
|
-
onClick: () =>
|
|
2579
|
+
onClick: () => G((o) => !o),
|
|
2580
2580
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
2581
2581
|
/* @__PURE__ */ e.jsxs("div", { className: "text-left flex-1 min-w-0", children: [
|
|
2582
|
-
/* @__PURE__ */ e.jsx(
|
|
2583
|
-
/* @__PURE__ */ e.jsx(
|
|
2582
|
+
/* @__PURE__ */ e.jsx(Pe, { className: "text-xl font-semibold", children: a("drOtherDoshas") }),
|
|
2583
|
+
/* @__PURE__ */ e.jsx($e, { children: a(re ? "drOtherDoshasStatusActive" : "drOtherDoshasStatusNone") })
|
|
2584
2584
|
] }),
|
|
2585
2585
|
/* @__PURE__ */ e.jsx(
|
|
2586
2586
|
Ua,
|
|
2587
2587
|
{
|
|
2588
|
-
className: `h-5 w-5 flex-shrink-0 text-muted-foreground transition-transform duration-200 ${
|
|
2588
|
+
className: `h-5 w-5 flex-shrink-0 text-muted-foreground transition-transform duration-200 ${ue ? "rotate-180" : ""}`
|
|
2589
2589
|
}
|
|
2590
2590
|
)
|
|
2591
2591
|
] })
|
|
2592
2592
|
}
|
|
2593
2593
|
),
|
|
2594
|
-
|
|
2595
|
-
const j =
|
|
2594
|
+
ue && /* @__PURE__ */ e.jsx(Te, { children: /* @__PURE__ */ e.jsx(ka, { type: "single", collapsible: !0, className: "w-full space-y-2", children: F.map((o) => {
|
|
2595
|
+
const j = A[o.summaryKey], C = ye(j), N = ce[o.detailKey] ?? {}, K = N.explanation, x = N.placements;
|
|
2596
2596
|
return /* @__PURE__ */ e.jsxs(
|
|
2597
|
-
|
|
2597
|
+
ja,
|
|
2598
2598
|
{
|
|
2599
2599
|
value: o.summaryKey,
|
|
2600
2600
|
className: "border border-border rounded-lg px-3",
|
|
2601
2601
|
children: [
|
|
2602
|
-
/* @__PURE__ */ e.jsx(
|
|
2602
|
+
/* @__PURE__ */ e.jsx(wa, { value: o.summaryKey, className: "hover:no-underline py-3", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 flex-1 min-w-0 mr-2", children: [
|
|
2603
2603
|
/* @__PURE__ */ e.jsx("span", { className: "font-semibold text-sm text-left leading-tight", children: a(o.labelKey) }),
|
|
2604
|
-
|
|
2605
|
-
/* @__PURE__ */ e.jsx(
|
|
2604
|
+
C ? /* @__PURE__ */ e.jsxs(Ue, { variant: "destructive", className: "flex-shrink-0 text-xs flex items-center gap-1", children: [
|
|
2605
|
+
/* @__PURE__ */ e.jsx(ba, { size: 10 }),
|
|
2606
2606
|
a("drStatusPresent")
|
|
2607
|
-
] }) : /* @__PURE__ */ e.jsxs(
|
|
2608
|
-
/* @__PURE__ */ e.jsx(
|
|
2607
|
+
] }) : /* @__PURE__ */ e.jsxs(Ue, { variant: "secondary", className: "flex-shrink-0 text-xs flex items-center gap-1 bg-green-50 text-green-700 border border-green-200", children: [
|
|
2608
|
+
/* @__PURE__ */ e.jsx(va, { size: 10 }),
|
|
2609
2609
|
a("drStatusAbsent")
|
|
2610
2610
|
] })
|
|
2611
2611
|
] }) }),
|
|
2612
|
-
/* @__PURE__ */ e.jsxs(
|
|
2612
|
+
/* @__PURE__ */ e.jsxs(Sa, { value: o.summaryKey, className: "space-y-3 pt-0 pb-3", children: [
|
|
2613
2613
|
x && x.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "p-3 bg-accent/10 rounded-md border border-accent/20", children: [
|
|
2614
2614
|
/* @__PURE__ */ e.jsxs("h5", { className: "font-medium mb-2 flex items-center gap-2 text-sm", children: [
|
|
2615
|
-
/* @__PURE__ */ e.jsx(
|
|
2615
|
+
/* @__PURE__ */ e.jsx(xa, { size: 14 }),
|
|
2616
2616
|
a("drPlanetaryPositions")
|
|
2617
2617
|
] }),
|
|
2618
|
-
/* @__PURE__ */ e.jsx("ul", { className: "list-disc list-inside text-sm text-muted-foreground space-y-1 leading-relaxed", children: x.map((
|
|
2618
|
+
/* @__PURE__ */ e.jsx("ul", { className: "list-disc list-inside text-sm text-muted-foreground space-y-1 leading-relaxed", children: x.map((y, O) => /* @__PURE__ */ e.jsx("li", { children: y }, O)) })
|
|
2619
2619
|
] }),
|
|
2620
2620
|
K && /* @__PURE__ */ e.jsx("div", { className: "p-3 bg-primary/5 rounded-md border-l-4 border-primary", children: /* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground leading-relaxed", children: K }) }),
|
|
2621
2621
|
!K && (!x || x.length === 0) && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground italic", children: a("drBasedOnPositions") })
|
|
@@ -2626,7 +2626,7 @@ function Vt({
|
|
|
2626
2626
|
);
|
|
2627
2627
|
}) }) })
|
|
2628
2628
|
] }),
|
|
2629
|
-
/* @__PURE__ */ e.jsx("div", { id: i || "kundali-chart-section", className: "px-4", children: (u ||
|
|
2629
|
+
/* @__PURE__ */ e.jsx("div", { id: i || "kundali-chart-section", className: "px-4", children: (u || T || J.length > 0) && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2630
2630
|
/* @__PURE__ */ e.jsx("div", { className: "flex justify-end mb-2", children: /* @__PURE__ */ e.jsxs(
|
|
2631
2631
|
"button",
|
|
2632
2632
|
{
|
|
@@ -2634,7 +2634,7 @@ function Vt({
|
|
|
2634
2634
|
onClick: () => document.getElementById("dosha-results-heading")?.scrollIntoView({ behavior: "smooth", block: "start" }),
|
|
2635
2635
|
className: "inline-flex items-center gap-1.5 text-sm text-primary hover:text-primary/80 transition-colors font-medium",
|
|
2636
2636
|
children: [
|
|
2637
|
-
/* @__PURE__ */ e.jsx(
|
|
2637
|
+
/* @__PURE__ */ e.jsx(Ot, { className: "w-4 h-4" }),
|
|
2638
2638
|
a("drGoBack")
|
|
2639
2639
|
]
|
|
2640
2640
|
}
|
|
@@ -2642,26 +2642,26 @@ function Vt({
|
|
|
2642
2642
|
u ? /* @__PURE__ */ e.jsxs("div", { className: "mt-2", children: [
|
|
2643
2643
|
/* @__PURE__ */ e.jsx("h2", { className: "text-xl font-semibold text-foreground mb-3", children: a("drYourKundali") }),
|
|
2644
2644
|
u()
|
|
2645
|
-
] }) :
|
|
2646
|
-
|
|
2645
|
+
] }) : T && v && h ? /* @__PURE__ */ e.jsx("div", { className: "mt-2", children: /* @__PURE__ */ e.jsx(
|
|
2646
|
+
Yt,
|
|
2647
2647
|
{
|
|
2648
2648
|
birthDetails: v,
|
|
2649
|
-
supabase:
|
|
2650
|
-
language:
|
|
2649
|
+
supabase: h,
|
|
2650
|
+
language: g,
|
|
2651
2651
|
t: a
|
|
2652
2652
|
}
|
|
2653
2653
|
) }) : null,
|
|
2654
|
-
J.length > 0 && /* @__PURE__ */ e.jsxs(
|
|
2655
|
-
/* @__PURE__ */ e.jsx(
|
|
2656
|
-
/* @__PURE__ */ e.jsx(
|
|
2654
|
+
J.length > 0 && /* @__PURE__ */ e.jsxs(ve, { className: "mt-4 bg-accent/10 border border-accent/30", children: [
|
|
2655
|
+
/* @__PURE__ */ e.jsx(Ne, { className: "pb-2", children: /* @__PURE__ */ e.jsx(Pe, { className: "text-base font-semibold", children: a("drPlanetaryPositionsCausing") }) }),
|
|
2656
|
+
/* @__PURE__ */ e.jsx(Te, { className: "pt-0", children: /* @__PURE__ */ e.jsx("ul", { className: "space-y-3 text-sm text-muted-foreground", children: J.map((o, j) => /* @__PURE__ */ e.jsxs("li", { children: [
|
|
2657
2657
|
/* @__PURE__ */ e.jsxs("div", { className: "font-semibold text-foreground mb-1", children: [
|
|
2658
2658
|
o.label,
|
|
2659
2659
|
":"
|
|
2660
2660
|
] }),
|
|
2661
|
-
/* @__PURE__ */ e.jsx("ul", { className: "ml-4 space-y-1", children: o.evidence.map((
|
|
2661
|
+
/* @__PURE__ */ e.jsx("ul", { className: "ml-4 space-y-1", children: o.evidence.map((C, N) => /* @__PURE__ */ e.jsxs("li", { className: "flex items-start gap-2", children: [
|
|
2662
2662
|
/* @__PURE__ */ e.jsx("span", { className: "text-primary flex-shrink-0", children: "→" }),
|
|
2663
|
-
/* @__PURE__ */ e.jsx("span", { children:
|
|
2664
|
-
] },
|
|
2663
|
+
/* @__PURE__ */ e.jsx("span", { children: C })
|
|
2664
|
+
] }, N)) })
|
|
2665
2665
|
] }, j)) }) })
|
|
2666
2666
|
] })
|
|
2667
2667
|
] }) }),
|
|
@@ -2670,11 +2670,11 @@ function Vt({
|
|
|
2670
2670
|
Fa,
|
|
2671
2671
|
{
|
|
2672
2672
|
t: a,
|
|
2673
|
-
readMoreHref:
|
|
2674
|
-
onReadMore:
|
|
2673
|
+
readMoreHref: M,
|
|
2674
|
+
onReadMore: f?.trackReadMoreReviewsClicked ? () => f.trackReadMoreReviewsClicked() : void 0
|
|
2675
2675
|
}
|
|
2676
2676
|
),
|
|
2677
|
-
/* @__PURE__ */ e.jsx(Oa, { t: a, items:
|
|
2677
|
+
/* @__PURE__ */ e.jsx(Oa, { t: a, items: Vt, defaultOpenIndex: 0 }),
|
|
2678
2678
|
/* @__PURE__ */ e.jsx(
|
|
2679
2679
|
La,
|
|
2680
2680
|
{
|
|
@@ -2686,17 +2686,17 @@ function Vt({
|
|
|
2686
2686
|
)
|
|
2687
2687
|
] });
|
|
2688
2688
|
}
|
|
2689
|
-
const
|
|
2690
|
-
section:
|
|
2691
|
-
heading:
|
|
2692
|
-
list:
|
|
2693
|
-
item:
|
|
2694
|
-
stepNumber:
|
|
2695
|
-
itemContent:
|
|
2696
|
-
itemTitle:
|
|
2697
|
-
itemDesc:
|
|
2689
|
+
const Qt = "_section_15ygl_1", Jt = "_heading_15ygl_5", Xt = "_list_15ygl_16", Zt = "_item_15ygl_20", en = "_stepNumber_15ygl_24", an = "_itemContent_15ygl_30", rn = "_itemTitle_15ygl_34", tn = "_itemDesc_15ygl_39", be = {
|
|
2690
|
+
section: Qt,
|
|
2691
|
+
heading: Jt,
|
|
2692
|
+
list: Xt,
|
|
2693
|
+
item: Zt,
|
|
2694
|
+
stepNumber: en,
|
|
2695
|
+
itemContent: an,
|
|
2696
|
+
itemTitle: rn,
|
|
2697
|
+
itemDesc: tn
|
|
2698
2698
|
};
|
|
2699
|
-
function
|
|
2699
|
+
function Ma({
|
|
2700
2700
|
t: r,
|
|
2701
2701
|
className: a = "",
|
|
2702
2702
|
bannerType: n = "generic"
|
|
@@ -2709,22 +2709,22 @@ function Da({
|
|
|
2709
2709
|
return /* @__PURE__ */ e.jsxs(
|
|
2710
2710
|
"section",
|
|
2711
2711
|
{
|
|
2712
|
-
className: `${
|
|
2712
|
+
className: `${be.section} ${a}`,
|
|
2713
2713
|
"aria-labelledby": "what-from-analysis-heading",
|
|
2714
2714
|
children: [
|
|
2715
|
-
/* @__PURE__ */ e.jsx("h2", { id: "what-from-analysis-heading", className:
|
|
2716
|
-
/* @__PURE__ */ e.jsx("ol", { className:
|
|
2717
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2718
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2719
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2720
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
2715
|
+
/* @__PURE__ */ e.jsx("h2", { id: "what-from-analysis-heading", className: be.heading, children: s }),
|
|
2716
|
+
/* @__PURE__ */ e.jsx("ol", { className: be.list, children: d.map(({ titleKey: m, descKey: b }, u) => /* @__PURE__ */ e.jsxs("li", { className: be.item, children: [
|
|
2717
|
+
/* @__PURE__ */ e.jsx("span", { className: be.stepNumber, "aria-hidden": "true", children: u + 1 }),
|
|
2718
|
+
/* @__PURE__ */ e.jsxs("div", { className: be.itemContent, children: [
|
|
2719
|
+
/* @__PURE__ */ e.jsx("span", { className: be.itemTitle, children: r(m) }),
|
|
2720
|
+
/* @__PURE__ */ e.jsx("span", { className: be.itemDesc, children: r(b) })
|
|
2721
2721
|
] })
|
|
2722
2722
|
] }, m)) })
|
|
2723
2723
|
]
|
|
2724
2724
|
}
|
|
2725
2725
|
);
|
|
2726
2726
|
}
|
|
2727
|
-
const
|
|
2727
|
+
const nn = {
|
|
2728
2728
|
marriage: {
|
|
2729
2729
|
en: {
|
|
2730
2730
|
imageUrl: "https://srm-cdn.a4b.io/yoda/1771830281383.webp",
|
|
@@ -2749,22 +2749,22 @@ const tn = {
|
|
|
2749
2749
|
tickerText: "★ 4.9 रेटिंग अपने दोषा को जानने वाले यूज़र्स ने दी"
|
|
2750
2750
|
}
|
|
2751
2751
|
}
|
|
2752
|
-
},
|
|
2752
|
+
}, sn = {
|
|
2753
2753
|
"marriage-what-you'll-get-first": "marriage",
|
|
2754
2754
|
"marriage-form-first": "marriage",
|
|
2755
2755
|
"generic-what-you'll-get-first": "generic",
|
|
2756
2756
|
"generic-form-first": "generic"
|
|
2757
2757
|
};
|
|
2758
|
-
function
|
|
2758
|
+
function Da(r, a) {
|
|
2759
2759
|
let n = "generic";
|
|
2760
2760
|
if (r) {
|
|
2761
|
-
for (const [s, i] of Object.entries(
|
|
2761
|
+
for (const [s, i] of Object.entries(sn))
|
|
2762
2762
|
if (r.includes(s)) {
|
|
2763
2763
|
n = i;
|
|
2764
2764
|
break;
|
|
2765
2765
|
}
|
|
2766
2766
|
}
|
|
2767
|
-
return
|
|
2767
|
+
return nn[n][a];
|
|
2768
2768
|
}
|
|
2769
2769
|
function on(r) {
|
|
2770
2770
|
return typeof window > "u" ? null : new URLSearchParams(window.location.search).get(r);
|
|
@@ -2774,45 +2774,45 @@ function Ra() {
|
|
|
2774
2774
|
}
|
|
2775
2775
|
const ln = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", cn = "https://srm-cdn.a4b.io/yoda/1770375694934.svg", dn = "https://srm-cdn.a4b.io/yoda/1770375720933.svg", un = "https://srm-cdn.a4b.io/yoda/1770707793537.svg";
|
|
2776
2776
|
function mn({ t: r }) {
|
|
2777
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
2778
|
-
/* @__PURE__ */ e.jsxs("span", { className:
|
|
2777
|
+
return /* @__PURE__ */ e.jsxs("div", { className: _e.marqueeContent, children: [
|
|
2778
|
+
/* @__PURE__ */ e.jsxs("span", { className: _e.badge, children: [
|
|
2779
2779
|
/* @__PURE__ */ e.jsx(
|
|
2780
2780
|
"img",
|
|
2781
2781
|
{
|
|
2782
2782
|
src: cn,
|
|
2783
2783
|
alt: "",
|
|
2784
|
-
className:
|
|
2784
|
+
className: _e.badgeIcon,
|
|
2785
2785
|
width: 16,
|
|
2786
2786
|
height: 16,
|
|
2787
|
-
"aria-hidden":
|
|
2787
|
+
"aria-hidden": "true"
|
|
2788
2788
|
}
|
|
2789
2789
|
),
|
|
2790
2790
|
r("ctaKundliCreated")
|
|
2791
2791
|
] }),
|
|
2792
|
-
/* @__PURE__ */ e.jsxs("span", { className:
|
|
2792
|
+
/* @__PURE__ */ e.jsxs("span", { className: _e.badge, children: [
|
|
2793
2793
|
/* @__PURE__ */ e.jsx(
|
|
2794
2794
|
"img",
|
|
2795
2795
|
{
|
|
2796
2796
|
src: dn,
|
|
2797
2797
|
alt: "",
|
|
2798
|
-
className:
|
|
2798
|
+
className: _e.badgeIcon,
|
|
2799
2799
|
width: 16,
|
|
2800
2800
|
height: 16,
|
|
2801
|
-
"aria-hidden":
|
|
2801
|
+
"aria-hidden": "true"
|
|
2802
2802
|
}
|
|
2803
2803
|
),
|
|
2804
2804
|
r("ctaCertified")
|
|
2805
2805
|
] }),
|
|
2806
|
-
/* @__PURE__ */ e.jsxs("span", { className:
|
|
2806
|
+
/* @__PURE__ */ e.jsxs("span", { className: _e.badge, children: [
|
|
2807
2807
|
/* @__PURE__ */ e.jsx(
|
|
2808
2808
|
"img",
|
|
2809
2809
|
{
|
|
2810
2810
|
src: un,
|
|
2811
2811
|
alt: "",
|
|
2812
|
-
className:
|
|
2812
|
+
className: _e.badgeIcon,
|
|
2813
2813
|
width: 16,
|
|
2814
2814
|
height: 16,
|
|
2815
|
-
"aria-hidden":
|
|
2815
|
+
"aria-hidden": "true"
|
|
2816
2816
|
}
|
|
2817
2817
|
),
|
|
2818
2818
|
r("ctaSecurePayment")
|
|
@@ -2840,62 +2840,69 @@ function zn({
|
|
|
2840
2840
|
onResult: b,
|
|
2841
2841
|
onError: u,
|
|
2842
2842
|
renderPujaCard: v,
|
|
2843
|
-
isLoadingPujas:
|
|
2844
|
-
renderKundali:
|
|
2845
|
-
kundaliSectionId:
|
|
2843
|
+
isLoadingPujas: h = !1,
|
|
2844
|
+
renderKundali: g,
|
|
2845
|
+
kundaliSectionId: M = "kundali-chart-section",
|
|
2846
2846
|
analytics: S,
|
|
2847
|
-
getFirstPujaInfo:
|
|
2848
|
-
onBookPujaClick:
|
|
2847
|
+
getFirstPujaInfo: f,
|
|
2848
|
+
onBookPujaClick: T
|
|
2849
2849
|
}) {
|
|
2850
|
-
const
|
|
2851
|
-
|
|
2850
|
+
const A = rt(), k = A?.t ?? ((R) => R), D = A?.locale ?? "en", q = ae(null), L = ae(null), [F, ke] = E(!1), [re, ue] = E(!1), [G, he] = E(null), [ce, J] = E(null), [Y, V] = E(void 0), [o, j] = E(!1), [C, N] = E(null), K = ae(!1);
|
|
2851
|
+
xe(() => {
|
|
2852
2852
|
K.current || (K.current = !0, S?.trackDoshaCalculatorWebView?.());
|
|
2853
2853
|
}, []);
|
|
2854
|
-
const
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2854
|
+
const [x, y] = E(
|
|
2855
|
+
() => Da(null, D)
|
|
2856
|
+
), [O, me] = E("generic");
|
|
2857
|
+
xe(() => {
|
|
2858
|
+
const R = Ra(), de = Da(R, D);
|
|
2859
|
+
y(de);
|
|
2860
|
+
let B = "generic";
|
|
2861
|
+
R && R.toLowerCase().includes("marriage") && (B = "marriage"), me(B);
|
|
2862
|
+
}, [D]);
|
|
2863
|
+
const [X, te] = E(!1);
|
|
2864
|
+
xe(() => {
|
|
2865
|
+
const R = Ra();
|
|
2866
|
+
R && R.toLowerCase().includes("what-you") && te(!0);
|
|
2867
|
+
}, []);
|
|
2868
|
+
const je = () => {
|
|
2869
|
+
q.current?.scrollIntoView({ behavior: "smooth" });
|
|
2870
|
+
}, z = Qe(
|
|
2871
|
+
(R) => {
|
|
2865
2872
|
S?.trackDoshaSectionImpression?.({
|
|
2866
|
-
section:
|
|
2873
|
+
section: R,
|
|
2867
2874
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
2868
2875
|
});
|
|
2869
2876
|
},
|
|
2870
2877
|
[S]
|
|
2871
|
-
),
|
|
2872
|
-
if (
|
|
2873
|
-
const
|
|
2878
|
+
), ne = (R, de) => {
|
|
2879
|
+
if (he(R), J(de ?? null), j(!1), f && R.summary) {
|
|
2880
|
+
const B = R.summary;
|
|
2874
2881
|
let Z = null;
|
|
2875
|
-
if (
|
|
2876
|
-
const
|
|
2877
|
-
|
|
2882
|
+
if (B.kaalSarp && B.kaalSarp.toLowerCase() === "present" ? Z = "kaal-sarp" : B.pitra && B.pitra.toLowerCase() === "present" ? Z = "pitra" : B.mangal && B.mangal.toLowerCase() === "present" && !B.mangal.toLowerCase().includes("nullified") ? Z = "mangal" : (B.shaniSadeSati || B.sadeSati) && (B.shaniSadeSati || B.sadeSati)?.toLowerCase() === "active" && (Z = "shani"), Z) {
|
|
2883
|
+
const pe = f(Z);
|
|
2884
|
+
N(pe);
|
|
2878
2885
|
} else
|
|
2879
|
-
|
|
2886
|
+
N(null);
|
|
2880
2887
|
} else
|
|
2881
|
-
|
|
2882
|
-
b?.(
|
|
2883
|
-
},
|
|
2888
|
+
N(null);
|
|
2889
|
+
b?.(R, de);
|
|
2890
|
+
}, we = () => {
|
|
2884
2891
|
j(!0), window.scrollTo({ top: 0, behavior: "smooth" });
|
|
2885
|
-
},
|
|
2886
|
-
if (
|
|
2887
|
-
|
|
2892
|
+
}, fe = () => {
|
|
2893
|
+
if (G && !o && C) {
|
|
2894
|
+
T ? T() : C.link && window.open(C.link, "_blank", "noopener,noreferrer");
|
|
2888
2895
|
return;
|
|
2889
2896
|
}
|
|
2890
|
-
d && m && F &&
|
|
2891
|
-
|
|
2892
|
-
),
|
|
2893
|
-
|
|
2894
|
-
),
|
|
2897
|
+
d && m && F && L.current ? (S?.trackFloatingCtaClicked?.(
|
|
2898
|
+
ga.all_fields_filled
|
|
2899
|
+
), L.current.submit()) : (S?.trackFloatingCtaClicked?.(
|
|
2900
|
+
ga.fields_not_filled
|
|
2901
|
+
), je());
|
|
2895
2902
|
};
|
|
2896
2903
|
return /* @__PURE__ */ e.jsxs("div", { className: r, children: [
|
|
2897
2904
|
/* @__PURE__ */ e.jsx(
|
|
2898
|
-
|
|
2905
|
+
Pr,
|
|
2899
2906
|
{
|
|
2900
2907
|
t: k,
|
|
2901
2908
|
logoUrl: a,
|
|
@@ -2903,49 +2910,49 @@ function zn({
|
|
|
2903
2910
|
showLanguageSelector: s
|
|
2904
2911
|
}
|
|
2905
2912
|
),
|
|
2906
|
-
/* @__PURE__ */ e.jsx(
|
|
2907
|
-
!
|
|
2908
|
-
|
|
2913
|
+
/* @__PURE__ */ e.jsx(Tr, { children: /* @__PURE__ */ e.jsx(mn, { t: k }) }),
|
|
2914
|
+
!G && /* @__PURE__ */ e.jsx(
|
|
2915
|
+
ge,
|
|
2909
2916
|
{
|
|
2910
2917
|
section: "banner",
|
|
2911
|
-
onImpression:
|
|
2912
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2918
|
+
onImpression: z,
|
|
2919
|
+
children: /* @__PURE__ */ e.jsx(Zr, { bannerConfig: x })
|
|
2913
2920
|
}
|
|
2914
2921
|
),
|
|
2915
|
-
/* @__PURE__ */ e.jsx("main", { className: "pb-28", children:
|
|
2916
|
-
|
|
2922
|
+
/* @__PURE__ */ e.jsx("main", { className: "pb-28", children: G ? /* @__PURE__ */ e.jsx(
|
|
2923
|
+
ge,
|
|
2917
2924
|
{
|
|
2918
2925
|
section: "result",
|
|
2919
|
-
onImpression:
|
|
2926
|
+
onImpression: z,
|
|
2920
2927
|
children: /* @__PURE__ */ e.jsx(
|
|
2921
|
-
|
|
2928
|
+
zt,
|
|
2922
2929
|
{
|
|
2923
|
-
result:
|
|
2930
|
+
result: G,
|
|
2924
2931
|
t: k,
|
|
2925
|
-
onEdit: o ? void 0 :
|
|
2932
|
+
onEdit: o ? void 0 : we,
|
|
2926
2933
|
inlineEditForm: o ? /* @__PURE__ */ e.jsx(
|
|
2927
|
-
|
|
2934
|
+
ya,
|
|
2928
2935
|
{
|
|
2929
|
-
ref:
|
|
2936
|
+
ref: L,
|
|
2930
2937
|
t: k,
|
|
2931
|
-
initialValues:
|
|
2932
|
-
onValuesChange:
|
|
2933
|
-
onFormValidityChange:
|
|
2938
|
+
initialValues: Y,
|
|
2939
|
+
onValuesChange: V,
|
|
2940
|
+
onFormValidityChange: ke,
|
|
2934
2941
|
supabase: d ?? void 0,
|
|
2935
2942
|
resolvePlace: m,
|
|
2936
|
-
onResult:
|
|
2943
|
+
onResult: ne,
|
|
2937
2944
|
onError: u,
|
|
2938
|
-
onLoadingChange:
|
|
2945
|
+
onLoadingChange: ue,
|
|
2939
2946
|
analytics: S
|
|
2940
2947
|
}
|
|
2941
2948
|
) : void 0,
|
|
2942
2949
|
renderPujaCard: v,
|
|
2943
|
-
isLoadingPujas:
|
|
2944
|
-
renderKundali:
|
|
2945
|
-
kundaliSectionId:
|
|
2946
|
-
birthDetails:
|
|
2950
|
+
isLoadingPujas: h,
|
|
2951
|
+
renderKundali: g,
|
|
2952
|
+
kundaliSectionId: M,
|
|
2953
|
+
birthDetails: ce,
|
|
2947
2954
|
supabase: d,
|
|
2948
|
-
language:
|
|
2955
|
+
language: A?.locale ?? "en",
|
|
2949
2956
|
readMoreReviewsHref: i,
|
|
2950
2957
|
analytics: S
|
|
2951
2958
|
}
|
|
@@ -2954,63 +2961,63 @@ function zn({
|
|
|
2954
2961
|
) : (
|
|
2955
2962
|
/* Landing page */
|
|
2956
2963
|
/* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2957
|
-
|
|
2958
|
-
|
|
2964
|
+
X && /* @__PURE__ */ e.jsx(
|
|
2965
|
+
ge,
|
|
2959
2966
|
{
|
|
2960
2967
|
section: "what_from_analysis",
|
|
2961
|
-
onImpression:
|
|
2962
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2968
|
+
onImpression: z,
|
|
2969
|
+
children: /* @__PURE__ */ e.jsx(Ma, { t: k, bannerType: O })
|
|
2963
2970
|
}
|
|
2964
2971
|
),
|
|
2965
2972
|
/* @__PURE__ */ e.jsx(
|
|
2966
|
-
|
|
2973
|
+
ge,
|
|
2967
2974
|
{
|
|
2968
2975
|
section: "form",
|
|
2969
|
-
onImpression:
|
|
2970
|
-
children: /* @__PURE__ */ e.jsx("div", { ref:
|
|
2971
|
-
|
|
2976
|
+
onImpression: z,
|
|
2977
|
+
children: /* @__PURE__ */ e.jsx("div", { ref: q, children: /* @__PURE__ */ e.jsx(
|
|
2978
|
+
ya,
|
|
2972
2979
|
{
|
|
2973
|
-
ref:
|
|
2980
|
+
ref: L,
|
|
2974
2981
|
t: k,
|
|
2975
|
-
initialValues:
|
|
2976
|
-
onValuesChange:
|
|
2977
|
-
onFormValidityChange:
|
|
2982
|
+
initialValues: Y,
|
|
2983
|
+
onValuesChange: V,
|
|
2984
|
+
onFormValidityChange: ke,
|
|
2978
2985
|
supabase: d ?? void 0,
|
|
2979
2986
|
resolvePlace: m,
|
|
2980
|
-
onResult:
|
|
2987
|
+
onResult: ne,
|
|
2981
2988
|
onError: u,
|
|
2982
|
-
onLoadingChange:
|
|
2989
|
+
onLoadingChange: ue,
|
|
2983
2990
|
analytics: S
|
|
2984
2991
|
}
|
|
2985
2992
|
) })
|
|
2986
2993
|
}
|
|
2987
2994
|
),
|
|
2988
|
-
!
|
|
2989
|
-
|
|
2995
|
+
!X && /* @__PURE__ */ e.jsx(
|
|
2996
|
+
ge,
|
|
2990
2997
|
{
|
|
2991
2998
|
section: "what_from_analysis",
|
|
2992
|
-
onImpression:
|
|
2993
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2999
|
+
onImpression: z,
|
|
3000
|
+
children: /* @__PURE__ */ e.jsx(Ma, { t: k, bannerType: O })
|
|
2994
3001
|
}
|
|
2995
3002
|
),
|
|
2996
3003
|
/* @__PURE__ */ e.jsx(
|
|
2997
|
-
|
|
3004
|
+
ge,
|
|
2998
3005
|
{
|
|
2999
3006
|
section: "user_reviews",
|
|
3000
|
-
onImpression:
|
|
3007
|
+
onImpression: z,
|
|
3001
3008
|
children: /* @__PURE__ */ e.jsx(
|
|
3002
3009
|
Fa,
|
|
3003
3010
|
{
|
|
3004
|
-
t: (
|
|
3005
|
-
if (
|
|
3006
|
-
if (
|
|
3011
|
+
t: (R) => {
|
|
3012
|
+
if (O === "marriage") {
|
|
3013
|
+
if (R === "feedbackTitle")
|
|
3007
3014
|
return k("feedbackTitleMarriage");
|
|
3008
|
-
if (
|
|
3009
|
-
const
|
|
3010
|
-
return Z ===
|
|
3015
|
+
if (R.startsWith("feedbackTestimonial")) {
|
|
3016
|
+
const B = `feedbackTestimonialMarriage${R.replace("feedbackTestimonial", "")}`, Z = k(B);
|
|
3017
|
+
return Z === B ? k(R) : Z;
|
|
3011
3018
|
}
|
|
3012
3019
|
}
|
|
3013
|
-
return k(
|
|
3020
|
+
return k(R);
|
|
3014
3021
|
},
|
|
3015
3022
|
readMoreHref: i,
|
|
3016
3023
|
onReadMore: S?.trackReadMoreReviewsClicked ? () => S.trackReadMoreReviewsClicked() : void 0
|
|
@@ -3019,26 +3026,26 @@ function zn({
|
|
|
3019
3026
|
}
|
|
3020
3027
|
),
|
|
3021
3028
|
/* @__PURE__ */ e.jsx(
|
|
3022
|
-
|
|
3029
|
+
ge,
|
|
3023
3030
|
{
|
|
3024
3031
|
section: "faq",
|
|
3025
|
-
onImpression:
|
|
3032
|
+
onImpression: z,
|
|
3026
3033
|
children: /* @__PURE__ */ e.jsx(
|
|
3027
3034
|
Oa,
|
|
3028
3035
|
{
|
|
3029
3036
|
t: k,
|
|
3030
|
-
items:
|
|
3037
|
+
items: O === "marriage" ? fn : hn,
|
|
3031
3038
|
defaultOpenIndex: 0,
|
|
3032
|
-
onItemOpen: (
|
|
3039
|
+
onItemOpen: (R) => S?.trackFaqQuestionClicked?.(R)
|
|
3033
3040
|
}
|
|
3034
3041
|
)
|
|
3035
3042
|
}
|
|
3036
3043
|
),
|
|
3037
3044
|
/* @__PURE__ */ e.jsx(
|
|
3038
|
-
|
|
3045
|
+
ge,
|
|
3039
3046
|
{
|
|
3040
3047
|
section: "contact",
|
|
3041
|
-
onImpression:
|
|
3048
|
+
onImpression: z,
|
|
3042
3049
|
children: /* @__PURE__ */ e.jsx(
|
|
3043
3050
|
La,
|
|
3044
3051
|
{
|
|
@@ -3052,26 +3059,26 @@ function zn({
|
|
|
3052
3059
|
)
|
|
3053
3060
|
] })
|
|
3054
3061
|
) }),
|
|
3055
|
-
/* @__PURE__ */ e.jsxs(
|
|
3056
|
-
!(
|
|
3062
|
+
/* @__PURE__ */ e.jsxs(Ar, { children: [
|
|
3063
|
+
!(G && !o && C) && /* @__PURE__ */ e.jsx(Kr, {}),
|
|
3057
3064
|
/* @__PURE__ */ e.jsx(
|
|
3058
|
-
|
|
3065
|
+
Vr,
|
|
3059
3066
|
{
|
|
3060
3067
|
isFormComplete: F,
|
|
3061
|
-
onPress:
|
|
3068
|
+
onPress: fe,
|
|
3062
3069
|
labelDefault: k("formCta"),
|
|
3063
3070
|
labelFilled: k("formCtaCalculate"),
|
|
3064
3071
|
isLoading: re,
|
|
3065
|
-
mode:
|
|
3066
|
-
firstPuja:
|
|
3067
|
-
showingResults: !!
|
|
3072
|
+
mode: G && !o && C ? "book-puja" : "form",
|
|
3073
|
+
firstPuja: C || void 0,
|
|
3074
|
+
showingResults: !!G && !o,
|
|
3068
3075
|
bookPujaLabel: k("bookPuja")
|
|
3069
3076
|
}
|
|
3070
3077
|
)
|
|
3071
3078
|
] })
|
|
3072
3079
|
] });
|
|
3073
3080
|
}
|
|
3074
|
-
const pn = "_section_ji9so_1", gn = "_heading_ji9so_6", yn = "_headingSuccess_ji9so_13", bn = "_card_ji9so_17", vn = "_cardPresent_ji9so_25", xn = "_cardAbsent_ji9so_29", kn = "_cardHeader_ji9so_33", jn = "_doshaName_ji9so_41", wn = "_badge_ji9so_46", Sn = "_badgePresent_ji9so_53", _n = "_badgeAbsent_ji9so_58", Nn = "_badgeInactive_ji9so_63", Pn = "_body_ji9so_68", Tn = "_bodyLabel_ji9so_75", An = "_noDoshas_ji9so_81", Cn = "_noDoshasDesc_ji9so_88", Mn = "_editBtn_ji9so_94", Dn = "_accordionContent_ji9so_128",
|
|
3081
|
+
const pn = "_section_ji9so_1", gn = "_heading_ji9so_6", yn = "_headingSuccess_ji9so_13", bn = "_card_ji9so_17", vn = "_cardPresent_ji9so_25", xn = "_cardAbsent_ji9so_29", kn = "_cardHeader_ji9so_33", jn = "_doshaName_ji9so_41", wn = "_badge_ji9so_46", Sn = "_badgePresent_ji9so_53", _n = "_badgeAbsent_ji9so_58", Nn = "_badgeInactive_ji9so_63", Pn = "_body_ji9so_68", Tn = "_bodyLabel_ji9so_75", An = "_noDoshas_ji9so_81", Cn = "_noDoshasDesc_ji9so_88", Mn = "_editBtn_ji9so_94", Dn = "_accordionContent_ji9so_128", U = {
|
|
3075
3082
|
section: pn,
|
|
3076
3083
|
heading: gn,
|
|
3077
3084
|
headingSuccess: yn,
|
|
@@ -3096,7 +3103,7 @@ const pn = "_section_ji9so_1", gn = "_heading_ji9so_6", yn = "_headingSuccess_ji
|
|
|
3096
3103
|
{ key: "pitra", labelKey: "resultPitra", summaryKey: "pitra" },
|
|
3097
3104
|
{ key: "sadeSati", labelKey: "resultSadeSati", summaryKey: "shaniSadeSati" }
|
|
3098
3105
|
];
|
|
3099
|
-
function
|
|
3106
|
+
function Ke(r) {
|
|
3100
3107
|
if (!r) return !1;
|
|
3101
3108
|
const a = r.toLowerCase();
|
|
3102
3109
|
return a === "present" || a === "active" || a === "partial" || a === "suggested";
|
|
@@ -3118,45 +3125,45 @@ function Kn(r, a) {
|
|
|
3118
3125
|
return n.includes("nullified") || n === "present" || n === "active" || n === "partial" || n === "suggested" ? a("resultStatusPresent") : n === "absent" ? a("resultStatusAbsent") : n === "inactive" ? a("resultStatusInactive") : r;
|
|
3119
3126
|
}
|
|
3120
3127
|
function Qn({ result: r, t: a, onEdit: n, className: s = "" }) {
|
|
3121
|
-
const i = r.summary ?? {}, d = r.details ?? {}, m = i.shaniSadeSati ?? i.sadeSati, b =
|
|
3122
|
-
return /* @__PURE__ */ e.jsxs("section", { className: `${
|
|
3123
|
-
/* @__PURE__ */ e.jsx("h2", { id: "dosha-results-heading", className: b ? `${
|
|
3124
|
-
b ? /* @__PURE__ */ e.jsx("div", { children: Rn.map(({ key: u, labelKey: v, summaryKey:
|
|
3125
|
-
const
|
|
3128
|
+
const i = r.summary ?? {}, d = r.details ?? {}, m = i.shaniSadeSati ?? i.sadeSati, b = Ke(i.mangal) || Ke(i.kaalSarp) || Ke(i.pitra) || Ke(m);
|
|
3129
|
+
return /* @__PURE__ */ e.jsxs("section", { className: `${U.section} ${s}`, "aria-labelledby": "dosha-results-heading", children: [
|
|
3130
|
+
/* @__PURE__ */ e.jsx("h2", { id: "dosha-results-heading", className: b ? `${U.heading} ${U.headingSuccess}` : U.heading, children: a(b ? "resultSomeDoshas" : "resultNoDoshas") }),
|
|
3131
|
+
b ? /* @__PURE__ */ e.jsx("div", { children: Rn.map(({ key: u, labelKey: v, summaryKey: h }) => {
|
|
3132
|
+
const g = h === "shaniSadeSati" ? m : i[h], M = Ke(g), S = In(d, u === "sadeSati" ? "sadeSati" : u), f = S?.explanation, T = typeof S?.remedies == "string" ? S.remedies : void 0;
|
|
3126
3133
|
return /* @__PURE__ */ e.jsxs(
|
|
3127
3134
|
"div",
|
|
3128
3135
|
{
|
|
3129
|
-
className: `${
|
|
3136
|
+
className: `${U.card} ${M ? U.cardPresent : U.cardAbsent}`,
|
|
3130
3137
|
children: [
|
|
3131
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
3132
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
3138
|
+
/* @__PURE__ */ e.jsxs("div", { className: U.cardHeader, children: [
|
|
3139
|
+
/* @__PURE__ */ e.jsx("span", { className: U.doshaName, children: a(v) }),
|
|
3133
3140
|
/* @__PURE__ */ e.jsx(
|
|
3134
3141
|
"span",
|
|
3135
3142
|
{
|
|
3136
|
-
className: `${
|
|
3137
|
-
children: Kn(
|
|
3143
|
+
className: `${U.badge} ${M ? U.badgePresent : g === "inactive" ? U.badgeInactive : U.badgeAbsent}`,
|
|
3144
|
+
children: Kn(g, a)
|
|
3138
3145
|
}
|
|
3139
3146
|
)
|
|
3140
3147
|
] }),
|
|
3141
|
-
(
|
|
3142
|
-
|
|
3143
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3144
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
3148
|
+
(f || T) && /* @__PURE__ */ e.jsxs("div", { className: U.body, children: [
|
|
3149
|
+
f && /* @__PURE__ */ e.jsxs("div", { children: [
|
|
3150
|
+
/* @__PURE__ */ e.jsx("div", { className: U.bodyLabel, children: a("resultExplanation") }),
|
|
3151
|
+
/* @__PURE__ */ e.jsx("p", { className: U.accordionContent, children: f })
|
|
3145
3152
|
] }),
|
|
3146
|
-
|
|
3147
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
3148
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
3153
|
+
T && /* @__PURE__ */ e.jsxs("div", { style: { marginTop: f ? "0.75rem" : 0 }, children: [
|
|
3154
|
+
/* @__PURE__ */ e.jsx("div", { className: U.bodyLabel, children: a("resultRemedies") }),
|
|
3155
|
+
/* @__PURE__ */ e.jsx("p", { className: U.accordionContent, children: T })
|
|
3149
3156
|
] })
|
|
3150
3157
|
] })
|
|
3151
3158
|
]
|
|
3152
3159
|
},
|
|
3153
3160
|
u
|
|
3154
3161
|
);
|
|
3155
|
-
}) }) : /* @__PURE__ */ e.jsxs("div", { className:
|
|
3162
|
+
}) }) : /* @__PURE__ */ e.jsxs("div", { className: U.noDoshas, children: [
|
|
3156
3163
|
/* @__PURE__ */ e.jsx("p", { children: a("resultNoDoshas") }),
|
|
3157
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
3164
|
+
/* @__PURE__ */ e.jsx("p", { className: U.noDoshasDesc, children: a("resultNoDoshasDesc") })
|
|
3158
3165
|
] }),
|
|
3159
|
-
n && /* @__PURE__ */ e.jsx("button", { type: "button", className:
|
|
3166
|
+
n && /* @__PURE__ */ e.jsx("button", { type: "button", className: U.editBtn, onClick: n, "aria-label": a("resultEditForm"), children: a("resultEditForm") })
|
|
3160
3167
|
] });
|
|
3161
3168
|
}
|
|
3162
3169
|
const Ia = {
|
|
@@ -3252,7 +3259,7 @@ function Fn(r) {
|
|
|
3252
3259
|
const n = parseInt(a[0], 10), s = parseInt(a[1], 10) - 1, i = parseInt(a[2], 10);
|
|
3253
3260
|
return new Date(i, s, n);
|
|
3254
3261
|
}
|
|
3255
|
-
function
|
|
3262
|
+
function qa(r) {
|
|
3256
3263
|
let a = r;
|
|
3257
3264
|
return Object.entries(En).sort((s, i) => i[0].length - s[0].length).forEach(([s, i]) => {
|
|
3258
3265
|
const d = new RegExp(s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "gi");
|
|
@@ -3264,7 +3271,7 @@ function On(r, a) {
|
|
|
3264
3271
|
if (n) return s;
|
|
3265
3272
|
if (i?.trim()) return i;
|
|
3266
3273
|
if (Ia[s]) return Ia[s];
|
|
3267
|
-
const d =
|
|
3274
|
+
const d = qa(s);
|
|
3268
3275
|
return d !== s ? d : s;
|
|
3269
3276
|
}
|
|
3270
3277
|
function Ln(r, a) {
|
|
@@ -3272,7 +3279,7 @@ function Ln(r, a) {
|
|
|
3272
3279
|
if (n) return s;
|
|
3273
3280
|
if (i?.trim()) return i;
|
|
3274
3281
|
if (Ka[s]) return Ka[s];
|
|
3275
|
-
const d =
|
|
3282
|
+
const d = qa(s);
|
|
3276
3283
|
return d !== s ? d : s;
|
|
3277
3284
|
}
|
|
3278
3285
|
function Bn(r, a = "en") {
|
|
@@ -3296,7 +3303,7 @@ function Un(r, a) {
|
|
|
3296
3303
|
const s = a?.toLowerCase().startsWith("hi") ? r.puja_link_hindi || r.puja_link : r.puja_link || r.puja_link_hindi;
|
|
3297
3304
|
return $n(s || "");
|
|
3298
3305
|
}
|
|
3299
|
-
function
|
|
3306
|
+
function Wn(r, a) {
|
|
3300
3307
|
return a?.toLowerCase().startsWith("hi") ? r.cover_media_url || r.cover_media_url_english || "" : r.cover_media_url_english || r.cover_media_url || "";
|
|
3301
3308
|
}
|
|
3302
3309
|
function Jn({
|
|
@@ -3305,16 +3312,16 @@ function Jn({
|
|
|
3305
3312
|
language: n,
|
|
3306
3313
|
onBookClick: s
|
|
3307
3314
|
}) {
|
|
3308
|
-
const i = n?.toLowerCase().startsWith("hi"), d = On(r, n), m = Ln(r, n), b = Bn(r.schedule_date_ist, n), u = Un(r, n), v =
|
|
3315
|
+
const i = n?.toLowerCase().startsWith("hi"), d = On(r, n), m = Ln(r, n), b = Bn(r.schedule_date_ist, n), u = Un(r, n), v = Wn(r, n), h = async () => {
|
|
3309
3316
|
if (s)
|
|
3310
3317
|
try {
|
|
3311
3318
|
await s();
|
|
3312
|
-
} catch (
|
|
3313
|
-
console.error("Error in onBookClick:",
|
|
3319
|
+
} catch (g) {
|
|
3320
|
+
console.error("Error in onBookClick:", g);
|
|
3314
3321
|
}
|
|
3315
3322
|
window.open(u, "_blank", "noopener,noreferrer");
|
|
3316
3323
|
};
|
|
3317
|
-
return /* @__PURE__ */ e.jsx(
|
|
3324
|
+
return /* @__PURE__ */ e.jsx(ve, { className: "overflow-hidden hover:shadow-lg transition-shadow relative", children: /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
3318
3325
|
/* @__PURE__ */ e.jsx("div", { className: "absolute -top-1 -left-1 z-10", children: /* @__PURE__ */ e.jsx("span", { className: "inline-flex items-center px-2 py-1 text-[10px] font-medium bg-destructive/90 text-destructive-foreground rounded-br-md shadow-sm", children: i ? "सीमित सीटें" : "Limited Seats" }) }),
|
|
3319
3326
|
v && /* @__PURE__ */ e.jsx("div", { className: "relative aspect-[16/10] w-full overflow-hidden bg-muted", children: /* @__PURE__ */ e.jsx(
|
|
3320
3327
|
"img",
|
|
@@ -3330,16 +3337,16 @@ function Jn({
|
|
|
3330
3337
|
r.schedule_date_ist && /* @__PURE__ */ e.jsx("p", { className: "text-sm font-medium text-card-foreground", children: b }),
|
|
3331
3338
|
r.individual_pack_price_inr > 0 && /* @__PURE__ */ e.jsx("p", { className: "text-base font-bold text-primary", children: i ? `₹${r.individual_pack_price_inr} से शुरू` : `Starting from ₹${r.individual_pack_price_inr}` }),
|
|
3332
3339
|
/* @__PURE__ */ e.jsxs(
|
|
3333
|
-
|
|
3340
|
+
Ee,
|
|
3334
3341
|
{
|
|
3335
3342
|
size: "lg",
|
|
3336
3343
|
className: "book-puja-cta w-full h-14 text-lg font-bold",
|
|
3337
|
-
onClick: async (
|
|
3338
|
-
|
|
3344
|
+
onClick: async (g) => {
|
|
3345
|
+
g.preventDefault(), await h();
|
|
3339
3346
|
},
|
|
3340
3347
|
children: [
|
|
3341
3348
|
i ? "पूजा बुक करें" : "Book Puja",
|
|
3342
|
-
/* @__PURE__ */ e.jsx(
|
|
3349
|
+
/* @__PURE__ */ e.jsx(Bt, { className: "ml-1.5 h-3.5 w-3.5", size: 14 })
|
|
3343
3350
|
]
|
|
3344
3351
|
}
|
|
3345
3352
|
),
|
|
@@ -3349,25 +3356,25 @@ function Jn({
|
|
|
3349
3356
|
}
|
|
3350
3357
|
export {
|
|
3351
3358
|
zn as DoshaCalculator,
|
|
3352
|
-
|
|
3353
|
-
|
|
3359
|
+
ya as DoshaFormSection,
|
|
3360
|
+
zt as DoshaResultsFull,
|
|
3354
3361
|
Qn as DoshaResultsView,
|
|
3355
|
-
|
|
3362
|
+
ga as FLOATING_CTA_STATUS,
|
|
3356
3363
|
Vn as I18nProvider,
|
|
3357
|
-
|
|
3364
|
+
Yt as KundaliCard,
|
|
3358
3365
|
Yn as LOCALE_LABELS,
|
|
3359
3366
|
Hn as SUPPORTED_LOCALES,
|
|
3360
3367
|
Jn as SriMandirPujaVerticalCard,
|
|
3361
|
-
|
|
3368
|
+
Ht as fetchKundaliSvg,
|
|
3362
3369
|
Bn as formatScheduleDate,
|
|
3363
|
-
|
|
3370
|
+
Wn as getCoverImageUrl,
|
|
3364
3371
|
Un as getPujaLink,
|
|
3365
3372
|
On as getPujaTitle,
|
|
3366
3373
|
Ln as getTempleName,
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3374
|
+
Tt as insertSessionProblemStatements,
|
|
3375
|
+
At as invokeCalculateDosha,
|
|
3376
|
+
Ct as submitDoshaCalculation,
|
|
3377
|
+
at as translations,
|
|
3378
|
+
rt as useI18n
|
|
3372
3379
|
};
|
|
3373
3380
|
//# sourceMappingURL=dosha-calculator.js.map
|