@srimandir/kundli-generator 5.30.3 → 5.30.4
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/components/KundliThreeSkuPage/KundliThreeSkuPage.d.ts +2 -0
- package/dist/{criticalCss-DGh12F0K.js → criticalCss-fMFN3vjg.js} +53 -45
- package/dist/{criticalCss-DGh12F0K.js.map → criticalCss-fMFN3vjg.js.map} +1 -1
- package/dist/kundli-generator.js +331 -302
- package/dist/kundli-generator.js.map +1 -1
- package/dist/page-entry.js +1 -1
- package/package.json +2 -2
package/dist/kundli-generator.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import "./styles.js";
|
|
2
|
-
import { k as e, C as ee, c as te, u as ae, h as ne, L as
|
|
3
|
-
import { D as
|
|
4
|
-
import { H as de } from "./criticalCss-
|
|
5
|
-
import { K as
|
|
6
|
-
import { useCallback as
|
|
7
|
-
const
|
|
8
|
-
container:
|
|
9
|
-
main:
|
|
10
|
-
langDropdownWrap:
|
|
11
|
-
langTrigger:
|
|
12
|
-
langIcon:
|
|
13
|
-
langLabel:
|
|
14
|
-
langMenu:
|
|
15
|
-
langOption:
|
|
16
|
-
inlineFormWrap:
|
|
17
|
-
inlineProceedFooter:
|
|
18
|
-
},
|
|
2
|
+
import { k as e, C as ee, c as te, u as ae, h as ne, L as M, S as se, l as re, F as le, U as ie, P as oe, t as ce } from "./analytics-DL-R30Zw.js";
|
|
3
|
+
import { D as pt, I as xt, K as ht, a as mt, b as gt, j as ft, g as bt, d as jt, i as _t, r as vt, s as wt, e as yt, f as Nt } from "./analytics-DL-R30Zw.js";
|
|
4
|
+
import { H as de, b as ue, U as pe, T as xe, W as he, c as me, F as ge, d as fe, C as be } from "./criticalCss-fMFN3vjg.js";
|
|
5
|
+
import { K as kt, a as Ct, e as Lt, f as Ft, P as St } from "./criticalCss-fMFN3vjg.js";
|
|
6
|
+
import { useCallback as E, useMemo as O, useRef as _, useState as P, useEffect as R } from "react";
|
|
7
|
+
const je = "_container_27slp_5", _e = "_main_27slp_10", ve = "_langDropdownWrap_27slp_16", we = "_langTrigger_27slp_20", ye = "_langIcon_27slp_32", Ne = "_langLabel_27slp_39", Pe = "_langMenu_27slp_44", ke = "_langOption_27slp_50", Ce = "_inlineFormWrap_27slp_61", Le = "_inlineProceedFooter_27slp_78", y = {
|
|
8
|
+
container: je,
|
|
9
|
+
main: _e,
|
|
10
|
+
langDropdownWrap: ve,
|
|
11
|
+
langTrigger: we,
|
|
12
|
+
langIcon: ye,
|
|
13
|
+
langLabel: Ne,
|
|
14
|
+
langMenu: Pe,
|
|
15
|
+
langOption: ke,
|
|
16
|
+
inlineFormWrap: Ce,
|
|
17
|
+
inlineProceedFooter: Le
|
|
18
|
+
}, z = "https://srm-cdn.a4b.io/yoda/1773317492292.pdf", Fe = [
|
|
19
19
|
{ label: `Personalised
|
|
20
20
|
Report`, values: ["check", "check", "check"] },
|
|
21
21
|
{ label: `Remedies:
|
|
@@ -29,7 +29,7 @@ manager`, values: ["cross", "cross", "check"] },
|
|
|
29
29
|
{ label: `30-min
|
|
30
30
|
astrologer
|
|
31
31
|
call`, values: ["cross", "cross", "check"] }
|
|
32
|
-
],
|
|
32
|
+
], Se = () => /* @__PURE__ */ e.jsx("span", { className: "inline-flex h-6 w-6 items-center justify-center rounded-full bg-[#14946b] font-bold text-white", children: "✓" }), Re = () => /* @__PURE__ */ e.jsx("span", { className: "inline-flex h-6 w-6 items-center justify-center rounded-full bg-[#e23f4e] font-bold text-white", children: "✕" }), Ie = () => /* @__PURE__ */ e.jsxs(
|
|
33
33
|
"svg",
|
|
34
34
|
{
|
|
35
35
|
width: "14",
|
|
@@ -66,14 +66,14 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
66
66
|
}
|
|
67
67
|
)
|
|
68
68
|
}
|
|
69
|
-
),
|
|
70
|
-
isGlobal:
|
|
71
|
-
kundliReportSampleHref: i =
|
|
72
|
-
oneQuestionSampleHref:
|
|
73
|
-
className:
|
|
69
|
+
), Te = ({
|
|
70
|
+
isGlobal: n = !1,
|
|
71
|
+
kundliReportSampleHref: i = z,
|
|
72
|
+
oneQuestionSampleHref: r = z,
|
|
73
|
+
className: d = ""
|
|
74
74
|
}) => {
|
|
75
|
-
const
|
|
76
|
-
return /* @__PURE__ */ e.jsxs("section", { className: `bg-white px-3 py-4 ${
|
|
75
|
+
const a = n ? ["$25", "$31", "$41"] : ["₹499", "₹749", "₹999"];
|
|
76
|
+
return /* @__PURE__ */ e.jsxs("section", { className: `bg-white px-3 py-4 ${d}`, children: [
|
|
77
77
|
/* @__PURE__ */ e.jsx("h2", { className: "mb-3 text-center text-[18px] leading-6 text-[#f75e22] max-[380px]:text-[16px]", children: "Kundli Packages for you" }),
|
|
78
78
|
/* @__PURE__ */ e.jsx("div", { className: "relative mt-5 rounded-[14px] border-[1.5px] border-[#e5ccb9] shadow-[0_4px_16px_rgba(111,58,17,0.08)]", children: /* @__PURE__ */ e.jsxs("table", { className: "w-full table-fixed border-collapse", children: [
|
|
79
79
|
/* @__PURE__ */ e.jsxs("colgroup", { children: [
|
|
@@ -91,34 +91,34 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
91
91
|
] }),
|
|
92
92
|
/* @__PURE__ */ e.jsxs("th", { className: "relative h-[84px] box-border rounded-tr-[12px] align-middle border-b border-[#e5ccb9] bg-[#fff8f1] px-1 pt-6 pb-2 text-center text-[11px] font-bold text-[#9a3f1b]", children: [
|
|
93
93
|
/* @__PURE__ */ e.jsxs("div", { className: "absolute left-0 right-0 -top-[16px] z-2 flex items-center justify-center gap-1 whitespace-nowrap rounded-t-[12px] bg-[linear-gradient(180deg,#751139_0%,#D51F68_100%)] px-3 py-[6px] text-[11px] font-bold text-white shadow-[0_-4px_10px_rgba(187,42,93,0.2)]", children: [
|
|
94
|
-
/* @__PURE__ */ e.jsx(
|
|
94
|
+
/* @__PURE__ */ e.jsx(Ie, {}),
|
|
95
95
|
/* @__PURE__ */ e.jsx("span", { children: "Popular" })
|
|
96
96
|
] }),
|
|
97
97
|
"Report + 30 min consultation"
|
|
98
98
|
] })
|
|
99
99
|
] }) }),
|
|
100
100
|
/* @__PURE__ */ e.jsxs("tbody", { children: [
|
|
101
|
-
|
|
102
|
-
/* @__PURE__ */ e.jsx("td", { className: "h-[64px] box-border border-r border-b border-[#e5ccb9] py-1 pl-2 text-left text-[11px] font-semibold text-[#7b3f17] align-middle leading-tight", children:
|
|
103
|
-
`).map((
|
|
104
|
-
|
|
101
|
+
Fe.map((u) => /* @__PURE__ */ e.jsxs("tr", { children: [
|
|
102
|
+
/* @__PURE__ */ e.jsx("td", { className: "h-[64px] box-border border-r border-b border-[#e5ccb9] py-1 pl-2 text-left text-[11px] font-semibold text-[#7b3f17] align-middle leading-tight", children: u.label.split(`
|
|
103
|
+
`).map((p) => /* @__PURE__ */ e.jsx("div", { children: p }, p)) }),
|
|
104
|
+
u.values.map((p, v) => /* @__PURE__ */ e.jsx(
|
|
105
105
|
"td",
|
|
106
106
|
{
|
|
107
|
-
className: `h-[64px] box-border bg-white py-1 text-center border-b border-[#e5ccb9] align-middle ${
|
|
108
|
-
children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center", children:
|
|
107
|
+
className: `h-[64px] box-border bg-white py-1 text-center border-b border-[#e5ccb9] align-middle ${v !== 2 ? "border-r border-[#e5ccb9]" : ""}`,
|
|
108
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center", children: p === "check" ? /* @__PURE__ */ e.jsx(Se, {}) : /* @__PURE__ */ e.jsx(Re, {}) })
|
|
109
109
|
},
|
|
110
|
-
`${
|
|
110
|
+
`${u.label}-${v}`
|
|
111
111
|
))
|
|
112
|
-
] },
|
|
112
|
+
] }, u.label)),
|
|
113
113
|
/* @__PURE__ */ e.jsxs("tr", { className: "bg-[#fff8ef]", children: [
|
|
114
114
|
/* @__PURE__ */ e.jsx("td", { className: "h-[64px] box-border border-r border-[#e5ccb9] py-1 pl-2 text-left text-[12px] font-semibold text-[#7b3f17] rounded-bl-[12px] align-middle", children: "Only for" }),
|
|
115
|
-
|
|
115
|
+
a.map((u, p) => /* @__PURE__ */ e.jsx(
|
|
116
116
|
"td",
|
|
117
117
|
{
|
|
118
|
-
className: `h-[64px] box-border bg-[#fff8ef] py-1 text-center align-middle ${
|
|
119
|
-
children: /* @__PURE__ */ e.jsx("span", { className: "text-[16px] text-[#9a3f1b] max-[380px]:text-[16px]", children:
|
|
118
|
+
className: `h-[64px] box-border bg-[#fff8ef] py-1 text-center align-middle ${p !== 2 ? "border-r border-[#e5ccb9]" : ""} ${p === 2 ? "rounded-br-[12px]" : ""}`,
|
|
119
|
+
children: /* @__PURE__ */ e.jsx("span", { className: "text-[16px] text-[#9a3f1b] max-[380px]:text-[16px]", children: u })
|
|
120
120
|
},
|
|
121
|
-
|
|
121
|
+
u
|
|
122
122
|
))
|
|
123
123
|
] })
|
|
124
124
|
] })
|
|
@@ -141,7 +141,7 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
141
141
|
/* @__PURE__ */ e.jsxs(
|
|
142
142
|
"a",
|
|
143
143
|
{
|
|
144
|
-
href:
|
|
144
|
+
href: r,
|
|
145
145
|
target: "_blank",
|
|
146
146
|
rel: "noopener noreferrer",
|
|
147
147
|
className: "relative rounded-xl bg-[linear-gradient(180deg,#f97316_0%,#ea580c_100%)] p-5 pr-10 text-center text-[14px] font-semibold text-white no-underline shadow-[0_6px_14px_rgba(234,88,12,0.2)]",
|
|
@@ -153,35 +153,35 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
153
153
|
)
|
|
154
154
|
] })
|
|
155
155
|
] });
|
|
156
|
-
},
|
|
157
|
-
card:
|
|
158
|
-
top:
|
|
159
|
-
avatar:
|
|
160
|
-
avatarPlaceholder:
|
|
161
|
-
basicInfo:
|
|
162
|
-
name:
|
|
163
|
-
exp:
|
|
164
|
-
langs:
|
|
165
|
-
divider:
|
|
166
|
-
certList:
|
|
167
|
-
certItem:
|
|
168
|
-
bullet:
|
|
169
|
-
},
|
|
170
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
171
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
172
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
173
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
174
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
175
|
-
|
|
156
|
+
}, Ae = "_card_1gz82_1", Ee = "_top_1gz82_15", Qe = "_avatar_1gz82_21", Ue = "_avatarPlaceholder_1gz82_38", De = "_basicInfo_1gz82_44", He = "_name_1gz82_51", Ke = "_exp_1gz82_61", Ge = "_langs_1gz82_62", Me = "_divider_1gz82_69", Oe = "_certList_1gz82_75", ze = "_certItem_1gz82_81", Be = "_bullet_1gz82_90", f = {
|
|
157
|
+
card: Ae,
|
|
158
|
+
top: Ee,
|
|
159
|
+
avatar: Qe,
|
|
160
|
+
avatarPlaceholder: Ue,
|
|
161
|
+
basicInfo: De,
|
|
162
|
+
name: He,
|
|
163
|
+
exp: Ke,
|
|
164
|
+
langs: Ge,
|
|
165
|
+
divider: Me,
|
|
166
|
+
certList: Oe,
|
|
167
|
+
certItem: ze,
|
|
168
|
+
bullet: Be
|
|
169
|
+
}, $e = ({ astrologer: n, t: i }) => /* @__PURE__ */ e.jsxs("div", { className: f.card, children: [
|
|
170
|
+
/* @__PURE__ */ e.jsxs("div", { className: f.top, children: [
|
|
171
|
+
/* @__PURE__ */ e.jsx("div", { className: f.avatar, "aria-hidden": !0, children: n.imageUrl ? /* @__PURE__ */ e.jsx("img", { src: n.imageUrl, alt: i?.(n.name) ?? n.name, width: 40, height: 40 }) : /* @__PURE__ */ e.jsx("span", { className: f.avatarPlaceholder, children: n.name.charAt(0) }) }),
|
|
172
|
+
/* @__PURE__ */ e.jsxs("div", { className: f.basicInfo, children: [
|
|
173
|
+
/* @__PURE__ */ e.jsx("p", { className: f.name, children: i?.(n.name) ?? n.name }),
|
|
174
|
+
/* @__PURE__ */ e.jsx("p", { className: f.exp, children: i?.(n.experience) ?? n.experience }),
|
|
175
|
+
n.languages && n.languages.length > 0 && /* @__PURE__ */ e.jsx("p", { className: f.langs, children: n.languages.map((r) => i?.(r) ?? r).join(" • ") })
|
|
176
176
|
] })
|
|
177
177
|
] }),
|
|
178
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
179
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
180
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
178
|
+
/* @__PURE__ */ e.jsx("div", { className: f.divider }),
|
|
179
|
+
/* @__PURE__ */ e.jsx("div", { className: f.certList, children: n.certifications.map((r, d) => /* @__PURE__ */ e.jsxs("p", { className: f.certItem, children: [
|
|
180
|
+
/* @__PURE__ */ e.jsx("span", { className: f.bullet, children: "✓" }),
|
|
181
181
|
" ",
|
|
182
|
-
i?.(
|
|
183
|
-
] },
|
|
184
|
-
] }),
|
|
182
|
+
i?.(r) ?? r
|
|
183
|
+
] }, d)) })
|
|
184
|
+
] }), V = [
|
|
185
185
|
{
|
|
186
186
|
id: "jyoti",
|
|
187
187
|
name: "Astro Sadhana",
|
|
@@ -278,11 +278,11 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
278
278
|
planQuestionChip4: "क्या मेरा मौजूदा रिश्ता मेरे लिए सही है?",
|
|
279
279
|
planAstrologerExp: "साल का अनुभव"
|
|
280
280
|
}
|
|
281
|
-
},
|
|
281
|
+
}, qe = (n) => [
|
|
282
282
|
{
|
|
283
283
|
id: "kundli-report",
|
|
284
284
|
title: "planNameBasic",
|
|
285
|
-
price:
|
|
285
|
+
price: n ? "$25" : "₹499",
|
|
286
286
|
features: [
|
|
287
287
|
{ text: "planFeatureDetailedInsights", included: !0 },
|
|
288
288
|
{ text: "planFeaturePracticalRemedies", included: !0 },
|
|
@@ -294,7 +294,7 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
294
294
|
{
|
|
295
295
|
id: "kundli-report-question",
|
|
296
296
|
title: "planNameQuestion",
|
|
297
|
-
price:
|
|
297
|
+
price: n ? "$31" : "₹749",
|
|
298
298
|
supportsQuestion: !0,
|
|
299
299
|
features: [
|
|
300
300
|
{ text: "planFeatureIncludesPremium", included: !0 },
|
|
@@ -306,8 +306,8 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
306
306
|
{
|
|
307
307
|
id: "kundli-report-astrologer",
|
|
308
308
|
title: "planNameGuidance",
|
|
309
|
-
price:
|
|
310
|
-
originalPrice:
|
|
309
|
+
price: n ? "$41" : "₹999",
|
|
310
|
+
originalPrice: n ? "$25+$25" : "₹499+₹850",
|
|
311
311
|
savingsLabel: "planSaveLabel",
|
|
312
312
|
badge: "planMostPopular",
|
|
313
313
|
features: [
|
|
@@ -316,8 +316,8 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
316
316
|
{ text: "planFeatureRealTimeAnswers", included: !0 },
|
|
317
317
|
{ text: "planFeatureTailoredRemedies", included: !0 }
|
|
318
318
|
],
|
|
319
|
-
astrologers:
|
|
320
|
-
(
|
|
319
|
+
astrologers: V.filter(
|
|
320
|
+
(r) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(r.id)
|
|
321
321
|
)
|
|
322
322
|
}
|
|
323
323
|
], q = [
|
|
@@ -325,11 +325,11 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
325
325
|
"planQuestionChip2",
|
|
326
326
|
"planQuestionChip3",
|
|
327
327
|
"planQuestionChip4"
|
|
328
|
-
],
|
|
329
|
-
id:
|
|
330
|
-
imageUrl:
|
|
331
|
-
name:
|
|
332
|
-
})),
|
|
328
|
+
], We = V.slice(0, 3).map((n) => ({
|
|
329
|
+
id: n.id,
|
|
330
|
+
imageUrl: n.imageUrl,
|
|
331
|
+
name: n.name
|
|
332
|
+
})), W = 5e3, Ve = 84, Ye = () => /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx("path", { d: "M8 1.5C11.5901 1.5 14.5 4.40986 14.5 8C14.5 11.5901 11.5901 14.5 8 14.5C4.40986 14.5 1.5 11.5901 1.5 8C1.5 4.40986 4.40986 1.5 8 1.5ZM11.71 5.6709C11.5284 5.46331 11.2128 5.44187 11.0049 5.62305L6.75 9.33594L4.99609 7.80469C4.78809 7.62318 4.47163 7.64562 4.29004 7.85352C4.10887 8.06152 4.13011 8.37711 4.33789 8.55859L6.42188 10.377C6.61019 10.5409 6.89091 10.5411 7.0791 10.377L11.6621 6.37695C11.8699 6.1954 11.8913 5.87889 11.71 5.6709Z", fill: "#159169" }) }), Xe = () => /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx("path", { d: "M8 1.38086C11.6558 1.38086 14.619 4.34424 14.6191 8C14.6191 11.6559 11.6559 14.6191 8 14.6191C4.34424 14.619 1.38086 11.6558 1.38086 8C1.38101 4.34433 4.34433 1.38101 8 1.38086ZM11.1055 4.89648C10.8637 4.65473 10.4712 4.65473 10.2295 4.89648L8 7.125L5.77148 4.89648C5.52973 4.65473 5.13824 4.65473 4.89648 4.89648C4.65473 5.13824 4.65473 5.52973 4.89648 5.77148L7.125 8L4.89648 10.2295C4.65473 10.4712 4.65473 10.8637 4.89648 11.1055C5.13819 11.3464 5.52994 11.3467 5.77148 11.1055L8 8.87598L10.2295 11.1055C10.4713 11.3467 10.8639 11.347 11.1055 11.1055C11.347 10.8639 11.3467 10.4713 11.1055 10.2295L8.87598 8L11.1055 5.77148C11.3467 5.52994 11.3464 5.13819 11.1055 4.89648Z", fill: "#D93640" }) }), Ze = () => /* @__PURE__ */ e.jsxs(
|
|
333
333
|
"svg",
|
|
334
334
|
{
|
|
335
335
|
width: "14",
|
|
@@ -346,74 +346,74 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
346
346
|
/* @__PURE__ */ e.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
347
347
|
]
|
|
348
348
|
}
|
|
349
|
-
),
|
|
350
|
-
isOpen:
|
|
349
|
+
), Je = ({
|
|
350
|
+
isOpen: n,
|
|
351
351
|
onClose: i,
|
|
352
|
-
selectedPlan:
|
|
353
|
-
onSelectPlan:
|
|
354
|
-
plans:
|
|
355
|
-
onProceed:
|
|
356
|
-
locale:
|
|
357
|
-
t:
|
|
358
|
-
analytics:
|
|
359
|
-
isGlobal:
|
|
352
|
+
selectedPlan: r,
|
|
353
|
+
onSelectPlan: d,
|
|
354
|
+
plans: a,
|
|
355
|
+
onProceed: u,
|
|
356
|
+
locale: p = "en",
|
|
357
|
+
t: v,
|
|
358
|
+
analytics: h,
|
|
359
|
+
isGlobal: b = !0
|
|
360
360
|
}) => {
|
|
361
|
-
const
|
|
362
|
-
const t =
|
|
363
|
-
t && (t.style.height = "auto", t.style.height = Math.min(t.scrollHeight,
|
|
361
|
+
const l = E((t) => ($[p] ?? $.en)[t] ?? v?.(t) ?? t, [p, v]), c = O(() => a ?? qe(b), [a, b]), g = r?.id || c.find((t) => t.badge)?.id || c[0]?.id || "", I = _(null), L = _(null), F = _(!1), [j, k] = P(""), [C, Q] = P("custom"), [S, U] = P(null), [T, o] = P(!1), D = _(!1), H = _(null), m = O(() => c.find((t) => t.id === g) ?? c[0], [c, g]), w = !!m?.supportsQuestion, s = !w || j.trim().length > 0, N = E(() => {
|
|
362
|
+
const t = H.current;
|
|
363
|
+
t && (t.style.height = "auto", t.style.height = Math.min(t.scrollHeight, Ve) + "px");
|
|
364
364
|
}, []);
|
|
365
|
-
|
|
366
|
-
if (
|
|
367
|
-
if (!
|
|
368
|
-
const t =
|
|
369
|
-
t &&
|
|
365
|
+
R(() => {
|
|
366
|
+
if (n) {
|
|
367
|
+
if (!r) {
|
|
368
|
+
const t = c.find((x) => x.badge) ?? c[0];
|
|
369
|
+
t && d(t);
|
|
370
370
|
}
|
|
371
|
-
|
|
371
|
+
F.current || (h?.trackPlanPageViewed?.(), F.current = !0);
|
|
372
372
|
} else
|
|
373
|
-
|
|
374
|
-
}, [
|
|
373
|
+
F.current = !1;
|
|
374
|
+
}, [n, c, r, d, h]);
|
|
375
375
|
const A = () => {
|
|
376
|
-
|
|
376
|
+
h?.trackPlanPageClosed?.(), i();
|
|
377
377
|
};
|
|
378
|
-
|
|
379
|
-
if (!
|
|
378
|
+
R(() => {
|
|
379
|
+
if (!n) return;
|
|
380
380
|
const t = document.body.style.overflow;
|
|
381
381
|
return document.body.style.overflow = "hidden", () => {
|
|
382
382
|
document.body.style.overflow = t;
|
|
383
383
|
};
|
|
384
|
-
}, [
|
|
385
|
-
const
|
|
386
|
-
D.current || (D.current = !0,
|
|
384
|
+
}, [n]);
|
|
385
|
+
const K = (t) => {
|
|
386
|
+
D.current || (D.current = !0, h?.trackQuestionTextboxClicked?.({
|
|
387
387
|
entry_method: t,
|
|
388
|
-
textbox_empty:
|
|
388
|
+
textbox_empty: j.length === 0
|
|
389
389
|
}));
|
|
390
390
|
}, Y = (t) => {
|
|
391
|
-
const
|
|
392
|
-
C === "chip" &&
|
|
393
|
-
}, X = (t,
|
|
394
|
-
const G =
|
|
395
|
-
|
|
391
|
+
const x = t.target.value.slice(0, W);
|
|
392
|
+
C === "chip" && x !== l(q[S ?? 0]) && Q("chip_edited"), k(x), N(), T && o(!1);
|
|
393
|
+
}, X = (t, x) => {
|
|
394
|
+
const G = l(t), J = j.length > 0 && C !== "chip";
|
|
395
|
+
h?.trackPreSuggestedQuestionSelected?.({
|
|
396
396
|
question_text_loaded: G,
|
|
397
|
-
chip_index:
|
|
398
|
-
previous_chip_index:
|
|
397
|
+
chip_index: x,
|
|
398
|
+
previous_chip_index: S,
|
|
399
399
|
user_had_custom_text: J
|
|
400
|
-
}), k(G), Q("chip"), U(
|
|
400
|
+
}), k(G), Q("chip"), U(x), D.current = !1, setTimeout(N, 0);
|
|
401
401
|
}, Z = () => {
|
|
402
|
-
if (
|
|
403
|
-
if (
|
|
404
|
-
|
|
402
|
+
if (m) {
|
|
403
|
+
if (w && !j.trim()) {
|
|
404
|
+
o(!0);
|
|
405
405
|
return;
|
|
406
406
|
}
|
|
407
|
-
|
|
408
|
-
planId:
|
|
409
|
-
planName:
|
|
410
|
-
question_asked:
|
|
411
|
-
question_text:
|
|
412
|
-
question_source:
|
|
413
|
-
}),
|
|
407
|
+
h?.trackPlanProceedClicked?.({
|
|
408
|
+
planId: m.id,
|
|
409
|
+
planName: m.title,
|
|
410
|
+
question_asked: w ? !0 : void 0,
|
|
411
|
+
question_text: w ? j.trim() : void 0,
|
|
412
|
+
question_source: w ? C : void 0
|
|
413
|
+
}), u(m, w ? j.trim() : void 0), i();
|
|
414
414
|
}
|
|
415
415
|
};
|
|
416
|
-
return
|
|
416
|
+
return n ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
417
417
|
/* @__PURE__ */ e.jsx("style", { children: `
|
|
418
418
|
@keyframes three-sku-slide-up {
|
|
419
419
|
from { transform: translateY(100%); opacity: 0; }
|
|
@@ -431,7 +431,7 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
431
431
|
className: "fixed inset-0 z-[1000] flex items-end justify-center",
|
|
432
432
|
role: "dialog",
|
|
433
433
|
"aria-modal": "true",
|
|
434
|
-
"aria-label":
|
|
434
|
+
"aria-label": l("planSheetTitle"),
|
|
435
435
|
children: /* @__PURE__ */ e.jsxs(
|
|
436
436
|
"div",
|
|
437
437
|
{
|
|
@@ -450,17 +450,17 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
450
450
|
children: /* @__PURE__ */ e.jsx(ee, {})
|
|
451
451
|
}
|
|
452
452
|
),
|
|
453
|
-
/* @__PURE__ */ e.jsx("h2", { className: "flex-1 text-[22px] text-gray-900 m-0 pr-8", children:
|
|
453
|
+
/* @__PURE__ */ e.jsx("h2", { className: "flex-1 text-[22px] text-gray-900 m-0 pr-8", children: l("planSheetTitle") })
|
|
454
454
|
] }),
|
|
455
|
-
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 overflow-y-auto px-4 pt-4 pb-4", ref:
|
|
456
|
-
/* @__PURE__ */ e.jsx("h3", { className: "m-0 mb-5 text-[22px] leading-snug text-gray-900", children:
|
|
457
|
-
/* @__PURE__ */ e.jsx("div", { className: "rounded-2xl border border-gray-200 bg-white px-4 py-3 shadow-[0_2px_8px_rgba(17,24,39,0.06)]", children:
|
|
458
|
-
/* @__PURE__ */ e.jsx("span", { className: "shrink-0 mt-[1px]", children: t.included ? /* @__PURE__ */ e.jsx(
|
|
459
|
-
/* @__PURE__ */ e.jsx("span", { className: "text-[12px] leading-[1.4] text-gray-700", children:
|
|
460
|
-
] },
|
|
461
|
-
|
|
455
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 overflow-y-auto px-4 pt-4 pb-4", ref: L, children: [
|
|
456
|
+
/* @__PURE__ */ e.jsx("h3", { className: "m-0 mb-5 text-[22px] leading-snug text-gray-900", children: l(m?.title ?? "") }),
|
|
457
|
+
/* @__PURE__ */ e.jsx("div", { className: "rounded-2xl border border-gray-200 bg-white px-4 py-3 shadow-[0_2px_8px_rgba(17,24,39,0.06)]", children: m && /* @__PURE__ */ e.jsx("ul", { className: "list-none m-0 p-0 flex flex-col gap-2", "aria-label": "Plan features", children: m.features.map((t, x) => /* @__PURE__ */ e.jsxs("li", { className: "flex items-start gap-3", children: [
|
|
458
|
+
/* @__PURE__ */ e.jsx("span", { className: "shrink-0 mt-[1px]", children: t.included ? /* @__PURE__ */ e.jsx(Ye, {}) : /* @__PURE__ */ e.jsx(Xe, {}) }),
|
|
459
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-[12px] leading-[1.4] text-gray-700", children: l(t.text) })
|
|
460
|
+
] }, x)) }) }),
|
|
461
|
+
w && /* @__PURE__ */ e.jsxs("div", { className: "mt-4 flex flex-col gap-2", children: [
|
|
462
462
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
463
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex -space-x-2", "aria-hidden": !0, children:
|
|
463
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex -space-x-2", "aria-hidden": !0, children: We.map((t) => /* @__PURE__ */ e.jsx(
|
|
464
464
|
"span",
|
|
465
465
|
{
|
|
466
466
|
className: "inline-flex h-8 w-8 items-center justify-center overflow-hidden rounded-full border-2 border-white bg-gray-100",
|
|
@@ -472,48 +472,48 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
472
472
|
className: "h-full w-full object-cover",
|
|
473
473
|
loading: "lazy"
|
|
474
474
|
}
|
|
475
|
-
) : /* @__PURE__ */ e.jsx("span", { className: "text-[10px] font-semibold text-gray-600", children:
|
|
475
|
+
) : /* @__PURE__ */ e.jsx("span", { className: "text-[10px] font-semibold text-gray-600", children: l(t.name).slice(0, 1) })
|
|
476
476
|
},
|
|
477
477
|
t.id
|
|
478
478
|
)) }),
|
|
479
|
-
/* @__PURE__ */ e.jsx("p", { className: "m-0 text-[14px] font-semibold text-gray-900", children:
|
|
479
|
+
/* @__PURE__ */ e.jsx("p", { className: "m-0 text-[14px] font-semibold text-gray-900", children: l("planQuestionHeader") })
|
|
480
480
|
] }),
|
|
481
481
|
/* @__PURE__ */ e.jsxs("label", { className: "text-[14px] font-semibold text-gray-900", htmlFor: "kundli-question", children: [
|
|
482
|
-
|
|
482
|
+
l("planQuestionLabel"),
|
|
483
483
|
/* @__PURE__ */ e.jsx("span", { className: "text-[#e05c2a] ml-0.5", children: "*" })
|
|
484
484
|
] }),
|
|
485
485
|
/* @__PURE__ */ e.jsx(
|
|
486
486
|
"textarea",
|
|
487
487
|
{
|
|
488
488
|
id: "kundli-question",
|
|
489
|
-
ref:
|
|
489
|
+
ref: H,
|
|
490
490
|
className: "w-full min-h-[44px] max-h-[84px] resize-none overflow-y-auto border-[1.5px] border-[#F99724] rounded-[10px] px-4 py-3 text-left text-[14px] text-gray-900 leading-5 box-border outline-none focus:border-[#e05c2a] focus:shadow-[0_0_0_3px_rgba(224,92,42,0.12)] placeholder:text-left placeholder:text-gray-400",
|
|
491
|
-
placeholder:
|
|
492
|
-
value:
|
|
493
|
-
onFocus: () =>
|
|
494
|
-
onClick: () =>
|
|
491
|
+
placeholder: l("planQuestionPlaceholder"),
|
|
492
|
+
value: j,
|
|
493
|
+
onFocus: () => K("keyboard_focus"),
|
|
494
|
+
onClick: () => K("tap"),
|
|
495
495
|
onChange: Y,
|
|
496
496
|
rows: 1
|
|
497
497
|
}
|
|
498
498
|
),
|
|
499
499
|
/* @__PURE__ */ e.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ e.jsxs("span", { className: "text-[11px] text-gray-400", children: [
|
|
500
|
-
|
|
500
|
+
j.length,
|
|
501
501
|
"/",
|
|
502
|
-
|
|
502
|
+
W
|
|
503
503
|
] }) }),
|
|
504
|
-
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 gap-2", children: q.map((t,
|
|
504
|
+
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 gap-2", children: q.map((t, x) => /* @__PURE__ */ e.jsx(
|
|
505
505
|
"button",
|
|
506
506
|
{
|
|
507
507
|
type: "button",
|
|
508
508
|
className: "px-3 py-2 rounded-full bg-[#F1F7FF] text-[#104DA6] text-sm font-medium cursor-pointer text-left leading-snug active:opacity-70 transition-opacity",
|
|
509
509
|
style: { fontFamily: "inherit" },
|
|
510
|
-
onClick: () => X(t,
|
|
511
|
-
children:
|
|
510
|
+
onClick: () => X(t, x),
|
|
511
|
+
children: l(t)
|
|
512
512
|
},
|
|
513
513
|
t
|
|
514
514
|
)) })
|
|
515
515
|
] }),
|
|
516
|
-
|
|
516
|
+
m?.astrologers && m.astrologers.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
517
517
|
/* @__PURE__ */ e.jsx(
|
|
518
518
|
"div",
|
|
519
519
|
{
|
|
@@ -523,13 +523,13 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
),
|
|
526
|
-
/* @__PURE__ */ e.jsx("p", { className: "m-0 mt-4 text-sm font-semibold text-gray-500", children:
|
|
526
|
+
/* @__PURE__ */ e.jsx("p", { className: "m-0 mt-4 text-sm font-semibold text-gray-500", children: l("planAstrologerHeading") }),
|
|
527
527
|
/* @__PURE__ */ e.jsx(
|
|
528
528
|
"div",
|
|
529
529
|
{
|
|
530
530
|
className: "flex overflow-x-auto gap-3 mt-3 pb-1 scroll-smooth [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
531
531
|
role: "list",
|
|
532
|
-
children:
|
|
532
|
+
children: m.astrologers.map((t, x) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx($e, { astrologer: t, t: l }) }, x))
|
|
533
533
|
}
|
|
534
534
|
)
|
|
535
535
|
] })
|
|
@@ -540,43 +540,43 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
540
540
|
className: "px-4 pt-3.5 bg-white border-t border-gray-100 sticky bottom-0 z-[5]",
|
|
541
541
|
style: { paddingBottom: "calc(14px + env(safe-area-inset-bottom))" },
|
|
542
542
|
children: [
|
|
543
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex gap-2 pb-3", role: "radiogroup", "aria-label": "Select plan", children:
|
|
543
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex gap-2 pb-3", role: "radiogroup", "aria-label": "Select plan", children: c.map((t) => /* @__PURE__ */ e.jsxs(
|
|
544
544
|
"button",
|
|
545
545
|
{
|
|
546
546
|
type: "button",
|
|
547
547
|
role: "radio",
|
|
548
|
-
"aria-checked": t.id ===
|
|
548
|
+
"aria-checked": t.id === g,
|
|
549
549
|
className: [
|
|
550
550
|
"flex-1 relative flex flex-col items-center justify-center gap-1 px-1 py-3 min-h-[125px] min-w-[106px] rounded-xl border-[1.5px] cursor-pointer text-center outline-none transition-colors",
|
|
551
|
-
t.id ===
|
|
551
|
+
t.id === g ? "border-[#e05c2a] bg-[#fff8f4]" : "border-gray-200 bg-white"
|
|
552
552
|
].join(" "),
|
|
553
553
|
onClick: () => {
|
|
554
|
-
|
|
554
|
+
h?.trackPlanSelected?.({ planId: t.id, planName: t.title }), d(t);
|
|
555
555
|
},
|
|
556
556
|
children: [
|
|
557
557
|
t.badge && /* @__PURE__ */ e.jsxs("span", { className: "absolute -top-[14px] left-0 right-0 inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-t-xl bg-[linear-gradient(180deg,#751139_0%,#D51F68_100%)] px-2 py-[6px] text-[11px] font-bold text-white", children: [
|
|
558
|
-
/* @__PURE__ */ e.jsx(
|
|
559
|
-
|
|
558
|
+
/* @__PURE__ */ e.jsx(Ze, {}),
|
|
559
|
+
l(t.badge)
|
|
560
560
|
] }),
|
|
561
|
-
/* @__PURE__ */ e.jsx("span", { className: `text-[14px] leading-snug ${t.id ===
|
|
561
|
+
/* @__PURE__ */ e.jsx("span", { className: `text-[14px] leading-snug ${t.id === g ? "font-bold text-gray-900" : "font-semibold text-gray-600"}`, children: l(t.title) }),
|
|
562
562
|
/* @__PURE__ */ e.jsx("span", { className: "text-[15px] font-extrabold text-[#e05c2a] leading-tight", children: t.price })
|
|
563
563
|
]
|
|
564
564
|
},
|
|
565
565
|
t.id
|
|
566
566
|
)) }),
|
|
567
|
-
|
|
567
|
+
T && /* @__PURE__ */ e.jsx("p", { className: "m-0 mb-2 text-xs text-[#e05c2a] text-center", role: "alert", children: l("planQuestionHint") }),
|
|
568
568
|
/* @__PURE__ */ e.jsxs(
|
|
569
569
|
"button",
|
|
570
570
|
{
|
|
571
571
|
className: [
|
|
572
572
|
"relative overflow-hidden w-full h-[50px] rounded-[14px] border-0 text-white text-[17px] font-bold cursor-pointer flex items-center justify-center transition-all duration-200",
|
|
573
|
-
|
|
573
|
+
s ? "bg-gradient-to-b from-[#F97316] to-[#EA580C] shadow-[0_6px_14px_rgba(234,88,12,0.25)] hover:from-[#fb923c] hover:to-[#f97316] active:scale-[0.98] active:shadow-[0_3px_8px_rgba(234,88,12,0.2)]" : "bg-gray-300 text-gray-400 shadow-none cursor-not-allowed"
|
|
574
574
|
].join(" "),
|
|
575
575
|
style: { fontFamily: "inherit" },
|
|
576
|
-
"aria-disabled": !
|
|
576
|
+
"aria-disabled": !s,
|
|
577
577
|
onClick: Z,
|
|
578
578
|
children: [
|
|
579
|
-
|
|
579
|
+
s && /* @__PURE__ */ e.jsx(
|
|
580
580
|
"span",
|
|
581
581
|
{
|
|
582
582
|
className: "absolute top-0 w-1/2 h-full pointer-events-none",
|
|
@@ -589,7 +589,7 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
),
|
|
592
|
-
/* @__PURE__ */ e.jsx("span", { className: "relative z-[1]", children:
|
|
592
|
+
/* @__PURE__ */ e.jsx("span", { className: "relative z-[1]", children: l("planProceedToPayment") })
|
|
593
593
|
]
|
|
594
594
|
}
|
|
595
595
|
)
|
|
@@ -602,63 +602,63 @@ call`, values: ["cross", "cross", "check"] }
|
|
|
602
602
|
}
|
|
603
603
|
)
|
|
604
604
|
] }) : null;
|
|
605
|
-
},
|
|
606
|
-
function
|
|
607
|
-
return /* @__PURE__ */ e.jsx(
|
|
605
|
+
}, et = "kundli-report-astrologer", tt = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", at = (n, i) => ce[n]?.[i] ?? i;
|
|
606
|
+
function nt({ className: n }) {
|
|
607
|
+
return /* @__PURE__ */ e.jsx(st, { className: n });
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function st({ className: n }) {
|
|
610
610
|
const i = ae(), {
|
|
611
|
-
locale:
|
|
612
|
-
setLocale:
|
|
613
|
-
config:
|
|
614
|
-
formValues:
|
|
615
|
-
setFormValues:
|
|
616
|
-
} = ne(), [
|
|
617
|
-
|
|
618
|
-
}, []),
|
|
619
|
-
if (!
|
|
620
|
-
const
|
|
621
|
-
...
|
|
622
|
-
_selectedPlan:
|
|
623
|
-
...
|
|
611
|
+
locale: r,
|
|
612
|
+
setLocale: d,
|
|
613
|
+
config: a,
|
|
614
|
+
formValues: u,
|
|
615
|
+
setFormValues: p
|
|
616
|
+
} = ne(), [v, h] = P(!1), [b, l] = P(null), c = _(null), g = _(void 0), I = E((s) => {
|
|
617
|
+
c.current = s, h(!0);
|
|
618
|
+
}, []), L = E(() => {
|
|
619
|
+
if (!c.current || !b) return;
|
|
620
|
+
const s = {
|
|
621
|
+
...c.current,
|
|
622
|
+
_selectedPlan: b,
|
|
623
|
+
...g.current !== void 0 ? { _question: g.current } : {}
|
|
624
624
|
};
|
|
625
|
-
|
|
626
|
-
}, [
|
|
627
|
-
|
|
628
|
-
), [k, C] = P(!1), Q =
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
}, [
|
|
632
|
-
if (
|
|
633
|
-
const
|
|
634
|
-
|
|
635
|
-
}, [i?.locale,
|
|
636
|
-
|
|
637
|
-
}, [
|
|
625
|
+
g.current = void 0, b.id === et && a.onProceedGuidance ? a.onProceedGuidance(s) : a.onProceed?.(s), h(!1), c.current = null;
|
|
626
|
+
}, [b, a.onProceed, a.onProceedGuidance]), [F, j] = P(
|
|
627
|
+
a.isGlobal ?? !0 ? "+1" : "+91"
|
|
628
|
+
), [k, C] = P(!1), Q = _(null), S = _(null), U = _(a.locale), T = _(i?.locale);
|
|
629
|
+
R(() => {
|
|
630
|
+
a.locale && U.current !== a.locale && d(a.locale), U.current = a.locale;
|
|
631
|
+
}, [a.locale, d]), R(() => {
|
|
632
|
+
if (a.locale) return;
|
|
633
|
+
const s = i?.locale;
|
|
634
|
+
s && T.current !== s && d(s), T.current = s;
|
|
635
|
+
}, [i?.locale, a.locale, d]), R(() => {
|
|
636
|
+
j(a.isGlobal ?? !0 ? "+1" : "+91");
|
|
637
|
+
}, [a.isGlobal]), R(() => {
|
|
638
638
|
if (!k) return;
|
|
639
|
-
const
|
|
640
|
-
|
|
639
|
+
const s = (N) => {
|
|
640
|
+
S.current && !S.current.contains(N.target) && C(!1);
|
|
641
641
|
};
|
|
642
|
-
return document.addEventListener("mousedown",
|
|
642
|
+
return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
|
|
643
643
|
}, [k]);
|
|
644
|
-
const
|
|
644
|
+
const o = (s) => at(r, s), H = a.showLanguageSelector ?? !0 ? /* @__PURE__ */ e.jsxs("div", { className: y.langDropdownWrap, ref: S, children: [
|
|
645
645
|
/* @__PURE__ */ e.jsxs(
|
|
646
646
|
"button",
|
|
647
647
|
{
|
|
648
648
|
type: "button",
|
|
649
649
|
className: y.langTrigger,
|
|
650
650
|
onClick: () => {
|
|
651
|
-
|
|
651
|
+
a.analytics?.trackLanguageClickedFe?.({ language: r }), C((s) => !s);
|
|
652
652
|
},
|
|
653
653
|
"aria-expanded": k,
|
|
654
654
|
"aria-haspopup": "listbox",
|
|
655
655
|
id: "kundli-lang",
|
|
656
|
-
"aria-label":
|
|
656
|
+
"aria-label": o("language"),
|
|
657
657
|
children: [
|
|
658
658
|
/* @__PURE__ */ e.jsx(
|
|
659
659
|
"img",
|
|
660
660
|
{
|
|
661
|
-
src:
|
|
661
|
+
src: tt,
|
|
662
662
|
alt: "",
|
|
663
663
|
className: y.langIcon,
|
|
664
664
|
width: 16,
|
|
@@ -666,7 +666,7 @@ function Ye({ className: a }) {
|
|
|
666
666
|
"aria-hidden": !0
|
|
667
667
|
}
|
|
668
668
|
),
|
|
669
|
-
/* @__PURE__ */ e.jsx("span", { className: y.langLabel, children:
|
|
669
|
+
/* @__PURE__ */ e.jsx("span", { className: y.langLabel, children: M[r] })
|
|
670
670
|
]
|
|
671
671
|
}
|
|
672
672
|
),
|
|
@@ -676,24 +676,24 @@ function Ye({ className: a }) {
|
|
|
676
676
|
className: y.langMenu,
|
|
677
677
|
role: "listbox",
|
|
678
678
|
"aria-labelledby": "kundli-lang",
|
|
679
|
-
"aria-activedescendant": `kundli-lang-option-${
|
|
680
|
-
children:
|
|
679
|
+
"aria-activedescendant": `kundli-lang-option-${r}`,
|
|
680
|
+
children: se.map((s) => /* @__PURE__ */ e.jsx(
|
|
681
681
|
"li",
|
|
682
682
|
{
|
|
683
|
-
id: `kundli-lang-option-${
|
|
683
|
+
id: `kundli-lang-option-${s}`,
|
|
684
684
|
role: "option",
|
|
685
|
-
"aria-selected":
|
|
685
|
+
"aria-selected": s === r,
|
|
686
686
|
className: y.langOption,
|
|
687
687
|
onClick: () => {
|
|
688
|
-
|
|
688
|
+
a.analytics?.trackLanguageChangedFe?.({ newLanguage: s }), d(s), C(!1);
|
|
689
689
|
},
|
|
690
|
-
children:
|
|
690
|
+
children: M[s]
|
|
691
691
|
},
|
|
692
|
-
|
|
692
|
+
s
|
|
693
693
|
))
|
|
694
694
|
}
|
|
695
695
|
)
|
|
696
|
-
] }) : null,
|
|
696
|
+
] }) : null, m = E((s) => {
|
|
697
697
|
const N = {
|
|
698
698
|
fullName: "kundli-full-name",
|
|
699
699
|
phone: "kundli-phone",
|
|
@@ -703,147 +703,176 @@ function Ye({ className: a }) {
|
|
|
703
703
|
birthPlace: "kundli-birth-place",
|
|
704
704
|
gender: "kundli-gender-male",
|
|
705
705
|
language_code: "kundli-report-lang-hi"
|
|
706
|
-
}, A = document.getElementById(N[
|
|
706
|
+
}, A = document.getElementById(N[s] ?? "kundli-full-name");
|
|
707
707
|
if (A) {
|
|
708
|
-
const
|
|
709
|
-
window.scrollTo({ top:
|
|
708
|
+
const K = A.getBoundingClientRect().top + window.scrollY - 120;
|
|
709
|
+
window.scrollTo({ top: K, behavior: "smooth" }), setTimeout(() => A.focus(), 500);
|
|
710
710
|
}
|
|
711
|
-
}, []),
|
|
712
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `${y.container} ${
|
|
711
|
+
}, []), w = a;
|
|
712
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${y.container} ${n}`, children: [
|
|
713
713
|
/* @__PURE__ */ e.jsx(
|
|
714
|
-
|
|
714
|
+
re,
|
|
715
715
|
{
|
|
716
|
-
t:
|
|
717
|
-
logoUrl:
|
|
718
|
-
languageSelector:
|
|
716
|
+
t: o,
|
|
717
|
+
logoUrl: a.logoUrl,
|
|
718
|
+
languageSelector: H
|
|
719
719
|
}
|
|
720
720
|
),
|
|
721
721
|
/* @__PURE__ */ e.jsxs("main", { className: y.main, children: [
|
|
722
|
-
/* @__PURE__ */ e.jsx(de, { t:
|
|
722
|
+
/* @__PURE__ */ e.jsx(de, { t: o }),
|
|
723
723
|
/* @__PURE__ */ e.jsx(
|
|
724
|
-
|
|
724
|
+
Te,
|
|
725
725
|
{
|
|
726
|
-
isGlobal:
|
|
727
|
-
kundliReportSampleHref:
|
|
728
|
-
oneQuestionSampleHref:
|
|
726
|
+
isGlobal: a.isGlobal,
|
|
727
|
+
kundliReportSampleHref: w.kundliReportSampleHref,
|
|
728
|
+
oneQuestionSampleHref: w.oneQuestionSampleHref
|
|
729
729
|
}
|
|
730
730
|
),
|
|
731
|
+
/* @__PURE__ */ e.jsx(
|
|
732
|
+
ue,
|
|
733
|
+
{
|
|
734
|
+
t: o,
|
|
735
|
+
reportImageUrl: a.reportImageUrl,
|
|
736
|
+
analytics: a.analytics
|
|
737
|
+
}
|
|
738
|
+
),
|
|
739
|
+
/* @__PURE__ */ e.jsx(
|
|
740
|
+
pe,
|
|
741
|
+
{
|
|
742
|
+
t: o,
|
|
743
|
+
logoUrl: a.universityLogoUrls?.find((s) => !!s)
|
|
744
|
+
}
|
|
745
|
+
),
|
|
746
|
+
/* @__PURE__ */ e.jsx(xe, { t: o, locale: r, isGlobal: a.isGlobal }),
|
|
731
747
|
/* @__PURE__ */ e.jsxs("div", { className: y.inlineFormWrap, ref: Q, children: [
|
|
732
|
-
/* @__PURE__ */ e.jsx(
|
|
748
|
+
/* @__PURE__ */ e.jsx(le, { t: o, align: "center" }),
|
|
733
749
|
/* @__PURE__ */ e.jsx(
|
|
734
750
|
ie,
|
|
735
751
|
{
|
|
736
|
-
t:
|
|
737
|
-
values:
|
|
738
|
-
onChange:
|
|
739
|
-
phoneIsdCode:
|
|
740
|
-
onPhoneIsdCodeChange:
|
|
752
|
+
t: o,
|
|
753
|
+
values: u,
|
|
754
|
+
onChange: p,
|
|
755
|
+
phoneIsdCode: F,
|
|
756
|
+
onPhoneIsdCodeChange: j,
|
|
741
757
|
showV1ExtraFields: !0,
|
|
742
|
-
analytics:
|
|
758
|
+
analytics: a.analytics
|
|
743
759
|
}
|
|
744
760
|
),
|
|
745
761
|
/* @__PURE__ */ e.jsx(
|
|
746
762
|
oe,
|
|
747
763
|
{
|
|
748
|
-
t:
|
|
749
|
-
values:
|
|
750
|
-
phoneIsdCode:
|
|
764
|
+
t: o,
|
|
765
|
+
values: u,
|
|
766
|
+
phoneIsdCode: F,
|
|
751
767
|
hideOriginalPrice: !0,
|
|
752
768
|
requireV1ExtraFields: !0,
|
|
753
|
-
onValidationFailed:
|
|
754
|
-
onProceed:
|
|
755
|
-
href:
|
|
756
|
-
originalPriceLabel:
|
|
757
|
-
discountedPriceLabel:
|
|
758
|
-
analytics:
|
|
769
|
+
onValidationFailed: m,
|
|
770
|
+
onProceed: a.onProceed,
|
|
771
|
+
href: a.proceedHref,
|
|
772
|
+
originalPriceLabel: a.originalPriceLabel,
|
|
773
|
+
discountedPriceLabel: a.discountedPriceLabel,
|
|
774
|
+
analytics: a.analytics,
|
|
759
775
|
className: y.inlineProceedFooter,
|
|
760
|
-
onProceedGuidance:
|
|
776
|
+
onProceedGuidance: a.onProceedGuidance,
|
|
761
777
|
showPlanSheet: I,
|
|
762
|
-
confirmPlan:
|
|
763
|
-
planSheetOpen:
|
|
764
|
-
selectedPlan:
|
|
778
|
+
confirmPlan: L,
|
|
779
|
+
planSheetOpen: v,
|
|
780
|
+
selectedPlan: b
|
|
765
781
|
}
|
|
766
782
|
)
|
|
767
|
-
] })
|
|
783
|
+
] }),
|
|
784
|
+
/* @__PURE__ */ e.jsx(he, { t: o }),
|
|
785
|
+
/* @__PURE__ */ e.jsx(me, { t: o }),
|
|
786
|
+
/* @__PURE__ */ e.jsx(
|
|
787
|
+
ge,
|
|
788
|
+
{
|
|
789
|
+
t: o,
|
|
790
|
+
readMoreHref: a.readMoreReviewsHref,
|
|
791
|
+
onReadMore: a.analytics?.trackReadMoreReviewsClicked ? () => a.analytics.trackReadMoreReviewsClicked() : void 0
|
|
792
|
+
}
|
|
793
|
+
),
|
|
794
|
+
/* @__PURE__ */ e.jsx(fe, { t: o }),
|
|
795
|
+
/* @__PURE__ */ e.jsx(be, { t: o })
|
|
768
796
|
] }),
|
|
769
797
|
/* @__PURE__ */ e.jsx(
|
|
770
|
-
|
|
798
|
+
Je,
|
|
771
799
|
{
|
|
772
|
-
isOpen:
|
|
773
|
-
onClose: () =>
|
|
774
|
-
selectedPlan:
|
|
775
|
-
onSelectPlan:
|
|
776
|
-
isGlobal:
|
|
777
|
-
locale:
|
|
778
|
-
onProceed: (
|
|
779
|
-
|
|
800
|
+
isOpen: v,
|
|
801
|
+
onClose: () => h(!1),
|
|
802
|
+
selectedPlan: b,
|
|
803
|
+
onSelectPlan: l,
|
|
804
|
+
isGlobal: a.isGlobal,
|
|
805
|
+
locale: r,
|
|
806
|
+
onProceed: (s, N) => {
|
|
807
|
+
g.current = N, L();
|
|
780
808
|
},
|
|
781
|
-
t:
|
|
782
|
-
analytics:
|
|
809
|
+
t: o,
|
|
810
|
+
analytics: a.analytics
|
|
783
811
|
}
|
|
784
812
|
)
|
|
785
813
|
] });
|
|
786
814
|
}
|
|
787
|
-
const
|
|
788
|
-
className:
|
|
815
|
+
const ct = ({
|
|
816
|
+
className: n = "",
|
|
789
817
|
locale: i,
|
|
790
|
-
userId:
|
|
791
|
-
isGlobal:
|
|
792
|
-
atlasSearchLocalities:
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
818
|
+
userId: r,
|
|
819
|
+
isGlobal: d,
|
|
820
|
+
atlasSearchLocalities: a,
|
|
821
|
+
showLanguageSelector: u = !0,
|
|
822
|
+
kundliReportSampleHref: p,
|
|
823
|
+
oneQuestionSampleHref: v,
|
|
824
|
+
onProceed: h,
|
|
825
|
+
onProceedGuidance: b,
|
|
826
|
+
proceedHref: l,
|
|
827
|
+
originalPriceLabel: c,
|
|
828
|
+
discountedPriceLabel: g,
|
|
829
|
+
analytics: I,
|
|
830
|
+
onLocaleChange: L
|
|
802
831
|
}) => /* @__PURE__ */ e.jsx(
|
|
803
832
|
te,
|
|
804
833
|
{
|
|
805
834
|
locale: i,
|
|
806
|
-
showLanguageSelector:
|
|
835
|
+
showLanguageSelector: u,
|
|
807
836
|
showSheet: !0,
|
|
808
|
-
userId:
|
|
809
|
-
isGlobal:
|
|
837
|
+
userId: r,
|
|
838
|
+
isGlobal: d,
|
|
810
839
|
variant: "v1",
|
|
811
|
-
atlasSearchLocalities:
|
|
812
|
-
onProceed:
|
|
813
|
-
onProceedGuidance:
|
|
814
|
-
proceedHref:
|
|
815
|
-
originalPriceLabel:
|
|
816
|
-
discountedPriceLabel:
|
|
817
|
-
analytics:
|
|
818
|
-
onLocaleChange:
|
|
819
|
-
kundliReportSampleHref:
|
|
820
|
-
oneQuestionSampleHref:
|
|
821
|
-
children: /* @__PURE__ */ e.jsx(
|
|
840
|
+
atlasSearchLocalities: a,
|
|
841
|
+
onProceed: h,
|
|
842
|
+
onProceedGuidance: b,
|
|
843
|
+
proceedHref: l,
|
|
844
|
+
originalPriceLabel: c,
|
|
845
|
+
discountedPriceLabel: g,
|
|
846
|
+
analytics: I,
|
|
847
|
+
onLocaleChange: L,
|
|
848
|
+
kundliReportSampleHref: p,
|
|
849
|
+
oneQuestionSampleHref: v,
|
|
850
|
+
children: /* @__PURE__ */ e.jsx(nt, { className: n })
|
|
822
851
|
}
|
|
823
852
|
);
|
|
824
853
|
export {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
854
|
+
pt as DefaultKundliImage,
|
|
855
|
+
xt as I18nProvider,
|
|
856
|
+
ht as KUNDLI_ANALYTICS_EVENT_NAMES,
|
|
857
|
+
kt as KUNDLI_CRITICAL_CSS,
|
|
858
|
+
mt as KUNDLI_LANGUAGE_STORAGE_KEY,
|
|
859
|
+
gt as KundliContext,
|
|
860
|
+
ft as KundliForm,
|
|
861
|
+
Ct as KundliPage,
|
|
862
|
+
Lt as KundliPageBase,
|
|
863
|
+
Ft as KundliPageV1,
|
|
835
864
|
te as KundliProvider,
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
865
|
+
ct as KundliThreeSkuPage,
|
|
866
|
+
St as PREMIUM_REPORT_BACKGROUND_IMAGE_URL,
|
|
867
|
+
se as SUPPORTED_LOCALES,
|
|
868
|
+
bt as getItem,
|
|
869
|
+
jt as getStoredKundliLocale,
|
|
870
|
+
_t as isLocalStorageAvailable,
|
|
871
|
+
vt as removeItem,
|
|
872
|
+
wt as setItem,
|
|
873
|
+
yt as setStoredKundliLocale,
|
|
845
874
|
ae as useI18n,
|
|
846
|
-
|
|
875
|
+
Nt as useKundliContext,
|
|
847
876
|
ne as useKundliContextOrThrow
|
|
848
877
|
};
|
|
849
878
|
//# sourceMappingURL=kundli-generator.js.map
|