@srimandir/kundli-generator 5.30.2 → 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/{analytics-Deq0Kl4U.js → analytics-DL-R30Zw.js} +9 -9
- package/dist/{analytics-Deq0Kl4U.js.map → analytics-DL-R30Zw.js.map} +1 -1
- package/dist/components/KundliPage/KundliPageVariant.d.ts +0 -5
- package/dist/components/KundliThreeSkuPage/KundliThreeSkuPage.d.ts +2 -0
- package/dist/criticalCss-fMFN3vjg.js +1201 -0
- package/dist/criticalCss-fMFN3vjg.js.map +1 -0
- package/dist/form-entry.js +1 -1
- package/dist/kundli-generator.js +874 -25
- package/dist/kundli-generator.js.map +1 -1
- package/dist/page-entry.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/criticalCss-lKR-u5PY.js +0 -1974
- package/dist/criticalCss-lKR-u5PY.js.map +0 -1
package/dist/kundli-generator.js
CHANGED
|
@@ -1,29 +1,878 @@
|
|
|
1
1
|
import "./styles.js";
|
|
2
|
-
import {
|
|
3
|
-
import { K as
|
|
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
|
+
{ label: `Personalised
|
|
20
|
+
Report`, values: ["check", "check", "check"] },
|
|
21
|
+
{ label: `Remedies:
|
|
22
|
+
gemstone,
|
|
23
|
+
pujas`, values: ["check", "check", "check"] },
|
|
24
|
+
{ label: `Detailed
|
|
25
|
+
question to
|
|
26
|
+
expert`, values: ["cross", "check", "check"] },
|
|
27
|
+
{ label: `Relationship
|
|
28
|
+
manager`, values: ["cross", "cross", "check"] },
|
|
29
|
+
{ label: `30-min
|
|
30
|
+
astrologer
|
|
31
|
+
call`, values: ["cross", "cross", "check"] }
|
|
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
|
+
"svg",
|
|
34
|
+
{
|
|
35
|
+
width: "14",
|
|
36
|
+
height: "14",
|
|
37
|
+
viewBox: "0 0 24 24",
|
|
38
|
+
fill: "none",
|
|
39
|
+
stroke: "currentColor",
|
|
40
|
+
strokeWidth: "2.5",
|
|
41
|
+
strokeLinecap: "round",
|
|
42
|
+
strokeLinejoin: "round",
|
|
43
|
+
"aria-hidden": !0,
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ e.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
46
|
+
/* @__PURE__ */ e.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
), B = () => /* @__PURE__ */ e.jsx(
|
|
50
|
+
"svg",
|
|
51
|
+
{
|
|
52
|
+
width: "20",
|
|
53
|
+
height: "20",
|
|
54
|
+
viewBox: "0 0 24 24",
|
|
55
|
+
fill: "none",
|
|
56
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
57
|
+
"aria-hidden": !0,
|
|
58
|
+
children: /* @__PURE__ */ e.jsx(
|
|
59
|
+
"path",
|
|
60
|
+
{
|
|
61
|
+
d: "M8 4L16 12L8 20",
|
|
62
|
+
stroke: "white",
|
|
63
|
+
strokeWidth: "4",
|
|
64
|
+
strokeLinecap: "round",
|
|
65
|
+
strokeLinejoin: "round"
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
}
|
|
69
|
+
), Te = ({
|
|
70
|
+
isGlobal: n = !1,
|
|
71
|
+
kundliReportSampleHref: i = z,
|
|
72
|
+
oneQuestionSampleHref: r = z,
|
|
73
|
+
className: d = ""
|
|
74
|
+
}) => {
|
|
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
|
+
/* @__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
|
+
/* @__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
|
+
/* @__PURE__ */ e.jsxs("colgroup", { children: [
|
|
80
|
+
/* @__PURE__ */ e.jsx("col", { className: "w-1/4" }),
|
|
81
|
+
/* @__PURE__ */ e.jsx("col", { className: "w-1/4" }),
|
|
82
|
+
/* @__PURE__ */ e.jsx("col", { className: "w-1/4" }),
|
|
83
|
+
/* @__PURE__ */ e.jsx("col", { className: "w-1/4" })
|
|
84
|
+
] }),
|
|
85
|
+
/* @__PURE__ */ e.jsx("thead", { children: /* @__PURE__ */ e.jsxs("tr", { children: [
|
|
86
|
+
/* @__PURE__ */ e.jsx("th", { className: "h-[84px] box-border rounded-tl-[12px] align-middle border-r border-b border-[#e5ccb9] bg-[#fff6eb] py-2 pl-2 pr-1 text-left text-[12px] text-[#7b3f17]", children: "Unique Features" }),
|
|
87
|
+
/* @__PURE__ */ e.jsx("th", { className: "h-[84px] box-border align-middle border-r border-b border-[#e5ccb9] bg-[#fff6eb] px-1 py-2 text-center text-[11px] text-[#7b3f17]", children: "Kundli Report" }),
|
|
88
|
+
/* @__PURE__ */ e.jsxs("th", { className: "h-[84px] box-border align-middle border-r border-b border-[#e5ccb9] bg-[#fff6eb] px-1 py-2 text-center text-[11px] text-[#7b3f17]", children: [
|
|
89
|
+
"Report + 1 Question",
|
|
90
|
+
/* @__PURE__ */ e.jsx("small", { className: "mt-1 block text-[10px] font-normal italic", children: "(Answered by Astrologer)" })
|
|
91
|
+
] }),
|
|
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
|
+
/* @__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(Ie, {}),
|
|
95
|
+
/* @__PURE__ */ e.jsx("span", { children: "Popular" })
|
|
96
|
+
] }),
|
|
97
|
+
"Report + 30 min consultation"
|
|
98
|
+
] })
|
|
99
|
+
] }) }),
|
|
100
|
+
/* @__PURE__ */ e.jsxs("tbody", { children: [
|
|
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
|
+
"td",
|
|
106
|
+
{
|
|
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
|
+
},
|
|
110
|
+
`${u.label}-${v}`
|
|
111
|
+
))
|
|
112
|
+
] }, u.label)),
|
|
113
|
+
/* @__PURE__ */ e.jsxs("tr", { className: "bg-[#fff8ef]", children: [
|
|
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
|
+
a.map((u, p) => /* @__PURE__ */ e.jsx(
|
|
116
|
+
"td",
|
|
117
|
+
{
|
|
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
|
+
},
|
|
121
|
+
u
|
|
122
|
+
))
|
|
123
|
+
] })
|
|
124
|
+
] })
|
|
125
|
+
] }) }),
|
|
126
|
+
/* @__PURE__ */ e.jsx("h3", { className: "mt-5 mb-3 text-center text-[18px] font-bold leading-[1.1] text-[#f75e22] max-[380px]:text-[16px]", children: "View Sample Reports" }),
|
|
127
|
+
/* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 gap-[10px]", children: [
|
|
128
|
+
/* @__PURE__ */ e.jsxs(
|
|
129
|
+
"a",
|
|
130
|
+
{
|
|
131
|
+
href: i,
|
|
132
|
+
target: "_blank",
|
|
133
|
+
rel: "noopener noreferrer",
|
|
134
|
+
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)]",
|
|
135
|
+
children: [
|
|
136
|
+
"200+ page Kundli Report",
|
|
137
|
+
/* @__PURE__ */ e.jsx("span", { className: "pointer-events-none absolute right-3 top-1/2 -translate-y-1/2", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(B, {}) })
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
/* @__PURE__ */ e.jsxs(
|
|
142
|
+
"a",
|
|
143
|
+
{
|
|
144
|
+
href: r,
|
|
145
|
+
target: "_blank",
|
|
146
|
+
rel: "noopener noreferrer",
|
|
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)]",
|
|
148
|
+
children: [
|
|
149
|
+
"1 Question Sample Report",
|
|
150
|
+
/* @__PURE__ */ e.jsx("span", { className: "pointer-events-none absolute right-3 top-1/2 -translate-y-1/2", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(B, {}) })
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
)
|
|
154
|
+
] })
|
|
155
|
+
] });
|
|
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
|
+
] })
|
|
177
|
+
] }),
|
|
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
|
+
" ",
|
|
182
|
+
i?.(r) ?? r
|
|
183
|
+
] }, d)) })
|
|
184
|
+
] }), V = [
|
|
185
|
+
{
|
|
186
|
+
id: "jyoti",
|
|
187
|
+
name: "Astro Sadhana",
|
|
188
|
+
imageUrl: "https://srm-cdn.a4b.io/yoda/1773992823100.webp",
|
|
189
|
+
experience: "21+ Years of experience",
|
|
190
|
+
languages: ["Hindi", "English", "Telugu"],
|
|
191
|
+
certifications: [
|
|
192
|
+
"25+ Years Vedic Astrology",
|
|
193
|
+
"Result-Oriented Spiritual Guidance"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
id: "samiksha",
|
|
198
|
+
name: "Astro Samiksha",
|
|
199
|
+
imageUrl: "https://srm-cdn.a4b.io/yoda/1773992841106.webp",
|
|
200
|
+
experience: "21+ Years of experience",
|
|
201
|
+
languages: ["Hindi", "English", "Telugu"],
|
|
202
|
+
certifications: [
|
|
203
|
+
"Certified Jyotish Acharya",
|
|
204
|
+
"Guaranteed accurate solutions"
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
id: "neeraj",
|
|
209
|
+
name: "Astro Neeraj",
|
|
210
|
+
imageUrl: "https://srm-cdn.a4b.io/yoda/1773992858276.webp",
|
|
211
|
+
experience: "18+ Years of experience",
|
|
212
|
+
languages: ["Hindi", "English", "Telugu"],
|
|
213
|
+
certifications: [
|
|
214
|
+
"BHU Certified Vedic Astrologer",
|
|
215
|
+
"Mantra & Rudraksha Specialist"
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
], $ = {
|
|
219
|
+
en: {
|
|
220
|
+
planSheetTitle: "Choose your Kundli Plan",
|
|
221
|
+
planProceedToPayment: "Proceed to Payment",
|
|
222
|
+
planAstrologerHeading: "Top astrologers who will consult you",
|
|
223
|
+
planMostPopular: "Most popular",
|
|
224
|
+
planNameBasic: "Kundli Report",
|
|
225
|
+
planNameQuestion: "Kundli + 1 Question",
|
|
226
|
+
planNameGuidance: "Kundli + Consultation",
|
|
227
|
+
planSaveLabel: "Save ~25%",
|
|
228
|
+
planFeatureDetailedInsights: "Detailed insights on love, marriage, career, health & finances",
|
|
229
|
+
planFeaturePracticalRemedies: "Practical remedies like gemstones, rudraksha & mantras",
|
|
230
|
+
planFeatureClearLanguage: "Clear, easy-to-understand language by expert astrologers",
|
|
231
|
+
planFeatureAstrologyConsultant: "Astrology consultant",
|
|
232
|
+
planFeaturePersonalizedReading: "Personalized reading",
|
|
233
|
+
planFeatureIncludesPremium: "Includes everything in the Premium Personalized Kundli",
|
|
234
|
+
planFeatureExpertAnswers: "PLUS: Expert Astrologer will answer your question in detail and suggest actionable remedies",
|
|
235
|
+
planFeatureFollowUpQuestions: "Go deeper into asking follow up questions",
|
|
236
|
+
planFeatureNoConsultation: "No personal consultation call",
|
|
237
|
+
planFeaturePlusConsultation: "PLUS: A 30-minute private consultation with an expert astrologer",
|
|
238
|
+
planFeatureRealTimeAnswers: "Get real-time answers & guidance for your biggest life concerns",
|
|
239
|
+
planFeatureTailoredRemedies: "Remedies & timelines tailored to your unique birth chart",
|
|
240
|
+
planQuestionLabel: "Ask your Question",
|
|
241
|
+
planQuestionHeader: "Ask our top astrologers",
|
|
242
|
+
planQuestionPlaceholder: "Ask follow up question",
|
|
243
|
+
planQuestionHint: "Please enter your question to continue.",
|
|
244
|
+
planQuestionChip1: "When will I get married?",
|
|
245
|
+
planQuestionChip2: "Will my marriage be love, arranged, or both?",
|
|
246
|
+
planQuestionChip3: "Is there any Dosha in my Kundli?",
|
|
247
|
+
planQuestionChip4: "Is my current relationship right for me?",
|
|
248
|
+
planAstrologerExp: "{{years}} Years of experience"
|
|
249
|
+
},
|
|
250
|
+
hi: {
|
|
251
|
+
planSheetTitle: "अपनी कुंडली प्लान चुनें",
|
|
252
|
+
planProceedToPayment: "पेमेंट करें",
|
|
253
|
+
planAstrologerHeading: "हम आपके लिए नीचे दिए गए टॉप ज्योतिषियों में से एक को चुनेंगे",
|
|
254
|
+
planMostPopular: "सबसे लोकप्रिय",
|
|
255
|
+
planNameBasic: "कुंडली रिपोर्ट",
|
|
256
|
+
planNameQuestion: "कुंडली + 1 सवाल",
|
|
257
|
+
planNameGuidance: "कुंडली रिपोर्ट + ज्योतिषी से बात",
|
|
258
|
+
planSaveLabel: "~25% बचाएं",
|
|
259
|
+
planFeatureDetailedInsights: "प्यार, विवाह, करियर, स्वास्थ्य और वित्त पर गहरी जानकारी",
|
|
260
|
+
planFeaturePracticalRemedies: "रत्न, रुद्राक्ष और मंत्रों जैसे व्यावहारिक उपाय",
|
|
261
|
+
planFeatureClearLanguage: "विशेषज्ञ ज्योतिषियों द्वारा स्पष्ट और आसान भाषा में",
|
|
262
|
+
planFeatureAstrologyConsultant: "ज्योतिषी से बात नहीं होगी",
|
|
263
|
+
planFeaturePersonalizedReading: "आपके लिए खास रीडिंग",
|
|
264
|
+
planFeatureIncludesPremium: "प्रीमियम कुंडली रिपोर्ट में जो कुछ भी है, सब मिलेगा",
|
|
265
|
+
planFeatureExpertAnswers: "PLUS: विशेषज्ञ ज्योतिषी आपके सवाल का विस्तार से जवाब देंगे और समाधान बताएंगे",
|
|
266
|
+
planFeatureFollowUpQuestions: "आगे के सवाल पूछने की सुविधा",
|
|
267
|
+
planFeatureNoConsultation: "कोई व्यक्तिगत परामर्श कॉल नहीं",
|
|
268
|
+
planFeaturePlusConsultation: "साथ ही: एक अनुभवी ज्योतिषी से 30 मिनट की प्राइवेट बात",
|
|
269
|
+
planFeatureRealTimeAnswers: "अपनी सबसे बड़ी परेशानियों का सीधा जवाब और सही सलाह पाएं",
|
|
270
|
+
planFeatureTailoredRemedies: "आपकी कुंडली के हिसाब से उपाय और सही समय की जानकारी",
|
|
271
|
+
planQuestionLabel: "अपना सवाल पूछें",
|
|
272
|
+
planQuestionHeader: "अपने सवाल हमारे टॉप ज्योतिषियों से पूछें",
|
|
273
|
+
planQuestionPlaceholder: "फॉलो अप सवाल लिखें",
|
|
274
|
+
planQuestionHint: "जारी रखने के लिए अपना सवाल लिखें।",
|
|
275
|
+
planQuestionChip1: "मेरी शादी कब होगी?",
|
|
276
|
+
planQuestionChip2: "मेरी शादी प्रेम, अरेंज, या दोनों में से कैसी होगी?",
|
|
277
|
+
planQuestionChip3: "क्या मेरी कुंडली में कोई दोष है?",
|
|
278
|
+
planQuestionChip4: "क्या मेरा मौजूदा रिश्ता मेरे लिए सही है?",
|
|
279
|
+
planAstrologerExp: "साल का अनुभव"
|
|
280
|
+
}
|
|
281
|
+
}, qe = (n) => [
|
|
282
|
+
{
|
|
283
|
+
id: "kundli-report",
|
|
284
|
+
title: "planNameBasic",
|
|
285
|
+
price: n ? "$25" : "₹499",
|
|
286
|
+
features: [
|
|
287
|
+
{ text: "planFeatureDetailedInsights", included: !0 },
|
|
288
|
+
{ text: "planFeaturePracticalRemedies", included: !0 },
|
|
289
|
+
{ text: "planFeatureClearLanguage", included: !0 },
|
|
290
|
+
{ text: "planFeatureAstrologyConsultant", included: !1 },
|
|
291
|
+
{ text: "planFeaturePersonalizedReading", included: !1 }
|
|
292
|
+
]
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
id: "kundli-report-question",
|
|
296
|
+
title: "planNameQuestion",
|
|
297
|
+
price: n ? "$31" : "₹749",
|
|
298
|
+
supportsQuestion: !0,
|
|
299
|
+
features: [
|
|
300
|
+
{ text: "planFeatureIncludesPremium", included: !0 },
|
|
301
|
+
{ text: "planFeatureExpertAnswers", included: !0 },
|
|
302
|
+
{ text: "planFeatureFollowUpQuestions", included: !0 },
|
|
303
|
+
{ text: "planFeatureNoConsultation", included: !1 }
|
|
304
|
+
]
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
id: "kundli-report-astrologer",
|
|
308
|
+
title: "planNameGuidance",
|
|
309
|
+
price: n ? "$41" : "₹999",
|
|
310
|
+
originalPrice: n ? "$25+$25" : "₹499+₹850",
|
|
311
|
+
savingsLabel: "planSaveLabel",
|
|
312
|
+
badge: "planMostPopular",
|
|
313
|
+
features: [
|
|
314
|
+
{ text: "planFeatureIncludesPremium", included: !0 },
|
|
315
|
+
{ text: "planFeaturePlusConsultation", included: !0 },
|
|
316
|
+
{ text: "planFeatureRealTimeAnswers", included: !0 },
|
|
317
|
+
{ text: "planFeatureTailoredRemedies", included: !0 }
|
|
318
|
+
],
|
|
319
|
+
astrologers: V.filter(
|
|
320
|
+
(r) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(r.id)
|
|
321
|
+
)
|
|
322
|
+
}
|
|
323
|
+
], q = [
|
|
324
|
+
"planQuestionChip1",
|
|
325
|
+
"planQuestionChip2",
|
|
326
|
+
"planQuestionChip3",
|
|
327
|
+
"planQuestionChip4"
|
|
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
|
+
"svg",
|
|
334
|
+
{
|
|
335
|
+
width: "14",
|
|
336
|
+
height: "14",
|
|
337
|
+
viewBox: "0 0 24 24",
|
|
338
|
+
fill: "none",
|
|
339
|
+
stroke: "currentColor",
|
|
340
|
+
strokeWidth: "2.5",
|
|
341
|
+
strokeLinecap: "round",
|
|
342
|
+
strokeLinejoin: "round",
|
|
343
|
+
"aria-hidden": !0,
|
|
344
|
+
children: [
|
|
345
|
+
/* @__PURE__ */ e.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
346
|
+
/* @__PURE__ */ e.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
347
|
+
]
|
|
348
|
+
}
|
|
349
|
+
), Je = ({
|
|
350
|
+
isOpen: n,
|
|
351
|
+
onClose: i,
|
|
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
|
+
}) => {
|
|
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
|
+
}, []);
|
|
365
|
+
R(() => {
|
|
366
|
+
if (n) {
|
|
367
|
+
if (!r) {
|
|
368
|
+
const t = c.find((x) => x.badge) ?? c[0];
|
|
369
|
+
t && d(t);
|
|
370
|
+
}
|
|
371
|
+
F.current || (h?.trackPlanPageViewed?.(), F.current = !0);
|
|
372
|
+
} else
|
|
373
|
+
F.current = !1;
|
|
374
|
+
}, [n, c, r, d, h]);
|
|
375
|
+
const A = () => {
|
|
376
|
+
h?.trackPlanPageClosed?.(), i();
|
|
377
|
+
};
|
|
378
|
+
R(() => {
|
|
379
|
+
if (!n) return;
|
|
380
|
+
const t = document.body.style.overflow;
|
|
381
|
+
return document.body.style.overflow = "hidden", () => {
|
|
382
|
+
document.body.style.overflow = t;
|
|
383
|
+
};
|
|
384
|
+
}, [n]);
|
|
385
|
+
const K = (t) => {
|
|
386
|
+
D.current || (D.current = !0, h?.trackQuestionTextboxClicked?.({
|
|
387
|
+
entry_method: t,
|
|
388
|
+
textbox_empty: j.length === 0
|
|
389
|
+
}));
|
|
390
|
+
}, Y = (t) => {
|
|
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
|
+
question_text_loaded: G,
|
|
397
|
+
chip_index: x,
|
|
398
|
+
previous_chip_index: S,
|
|
399
|
+
user_had_custom_text: J
|
|
400
|
+
}), k(G), Q("chip"), U(x), D.current = !1, setTimeout(N, 0);
|
|
401
|
+
}, Z = () => {
|
|
402
|
+
if (m) {
|
|
403
|
+
if (w && !j.trim()) {
|
|
404
|
+
o(!0);
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
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
|
+
}
|
|
415
|
+
};
|
|
416
|
+
return n ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
417
|
+
/* @__PURE__ */ e.jsx("style", { children: `
|
|
418
|
+
@keyframes three-sku-slide-up {
|
|
419
|
+
from { transform: translateY(100%); opacity: 0; }
|
|
420
|
+
to { transform: translateY(0); opacity: 1; }
|
|
421
|
+
}
|
|
422
|
+
@keyframes three-sku-shimmer {
|
|
423
|
+
0% { left: -75%; }
|
|
424
|
+
60% { left: 125%; }
|
|
425
|
+
100% { left: 125%; }
|
|
426
|
+
}
|
|
427
|
+
` }),
|
|
428
|
+
/* @__PURE__ */ e.jsx(
|
|
429
|
+
"div",
|
|
430
|
+
{
|
|
431
|
+
className: "fixed inset-0 z-[1000] flex items-end justify-center",
|
|
432
|
+
role: "dialog",
|
|
433
|
+
"aria-modal": "true",
|
|
434
|
+
"aria-label": l("planSheetTitle"),
|
|
435
|
+
children: /* @__PURE__ */ e.jsxs(
|
|
436
|
+
"div",
|
|
437
|
+
{
|
|
438
|
+
ref: I,
|
|
439
|
+
className: "pt-8 w-full max-w-[480px] h-dvh max-h-dvh bg-white flex flex-col overflow-hidden",
|
|
440
|
+
style: { animation: "three-sku-slide-up 0.28s cubic-bezier(0.32, 0.72, 0, 1)" },
|
|
441
|
+
children: [
|
|
442
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 px-4 pt-3 pb-1 sticky top-0 bg-white z-[2]", children: [
|
|
443
|
+
/* @__PURE__ */ e.jsx(
|
|
444
|
+
"button",
|
|
445
|
+
{
|
|
446
|
+
type: "button",
|
|
447
|
+
onClick: A,
|
|
448
|
+
"aria-label": "Go back",
|
|
449
|
+
className: "w-8 h-8 rounded-full bg-transparent border-0 flex items-center justify-center text-gray-700 hover:bg-gray-100",
|
|
450
|
+
children: /* @__PURE__ */ e.jsx(ee, {})
|
|
451
|
+
}
|
|
452
|
+
),
|
|
453
|
+
/* @__PURE__ */ e.jsx("h2", { className: "flex-1 text-[22px] text-gray-900 m-0 pr-8", children: l("planSheetTitle") })
|
|
454
|
+
] }),
|
|
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
|
+
/* @__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: We.map((t) => /* @__PURE__ */ e.jsx(
|
|
464
|
+
"span",
|
|
465
|
+
{
|
|
466
|
+
className: "inline-flex h-8 w-8 items-center justify-center overflow-hidden rounded-full border-2 border-white bg-gray-100",
|
|
467
|
+
children: t.imageUrl ? /* @__PURE__ */ e.jsx(
|
|
468
|
+
"img",
|
|
469
|
+
{
|
|
470
|
+
src: t.imageUrl,
|
|
471
|
+
alt: "",
|
|
472
|
+
className: "h-full w-full object-cover",
|
|
473
|
+
loading: "lazy"
|
|
474
|
+
}
|
|
475
|
+
) : /* @__PURE__ */ e.jsx("span", { className: "text-[10px] font-semibold text-gray-600", children: l(t.name).slice(0, 1) })
|
|
476
|
+
},
|
|
477
|
+
t.id
|
|
478
|
+
)) }),
|
|
479
|
+
/* @__PURE__ */ e.jsx("p", { className: "m-0 text-[14px] font-semibold text-gray-900", children: l("planQuestionHeader") })
|
|
480
|
+
] }),
|
|
481
|
+
/* @__PURE__ */ e.jsxs("label", { className: "text-[14px] font-semibold text-gray-900", htmlFor: "kundli-question", children: [
|
|
482
|
+
l("planQuestionLabel"),
|
|
483
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-[#e05c2a] ml-0.5", children: "*" })
|
|
484
|
+
] }),
|
|
485
|
+
/* @__PURE__ */ e.jsx(
|
|
486
|
+
"textarea",
|
|
487
|
+
{
|
|
488
|
+
id: "kundli-question",
|
|
489
|
+
ref: H,
|
|
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: l("planQuestionPlaceholder"),
|
|
492
|
+
value: j,
|
|
493
|
+
onFocus: () => K("keyboard_focus"),
|
|
494
|
+
onClick: () => K("tap"),
|
|
495
|
+
onChange: Y,
|
|
496
|
+
rows: 1
|
|
497
|
+
}
|
|
498
|
+
),
|
|
499
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ e.jsxs("span", { className: "text-[11px] text-gray-400", children: [
|
|
500
|
+
j.length,
|
|
501
|
+
"/",
|
|
502
|
+
W
|
|
503
|
+
] }) }),
|
|
504
|
+
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 gap-2", children: q.map((t, x) => /* @__PURE__ */ e.jsx(
|
|
505
|
+
"button",
|
|
506
|
+
{
|
|
507
|
+
type: "button",
|
|
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
|
+
style: { fontFamily: "inherit" },
|
|
510
|
+
onClick: () => X(t, x),
|
|
511
|
+
children: l(t)
|
|
512
|
+
},
|
|
513
|
+
t
|
|
514
|
+
)) })
|
|
515
|
+
] }),
|
|
516
|
+
m?.astrologers && m.astrologers.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
517
|
+
/* @__PURE__ */ e.jsx(
|
|
518
|
+
"div",
|
|
519
|
+
{
|
|
520
|
+
className: "w-full h-px my-3",
|
|
521
|
+
style: {
|
|
522
|
+
backgroundImage: "repeating-linear-gradient(to right, #D1D5DB, #D1D5DB 4px, transparent 4px, transparent 8px)"
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
),
|
|
526
|
+
/* @__PURE__ */ e.jsx("p", { className: "m-0 mt-4 text-sm font-semibold text-gray-500", children: l("planAstrologerHeading") }),
|
|
527
|
+
/* @__PURE__ */ e.jsx(
|
|
528
|
+
"div",
|
|
529
|
+
{
|
|
530
|
+
className: "flex overflow-x-auto gap-3 mt-3 pb-1 scroll-smooth [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
531
|
+
role: "list",
|
|
532
|
+
children: m.astrologers.map((t, x) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx($e, { astrologer: t, t: l }) }, x))
|
|
533
|
+
}
|
|
534
|
+
)
|
|
535
|
+
] })
|
|
536
|
+
] }),
|
|
537
|
+
/* @__PURE__ */ e.jsxs(
|
|
538
|
+
"div",
|
|
539
|
+
{
|
|
540
|
+
className: "px-4 pt-3.5 bg-white border-t border-gray-100 sticky bottom-0 z-[5]",
|
|
541
|
+
style: { paddingBottom: "calc(14px + env(safe-area-inset-bottom))" },
|
|
542
|
+
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
|
+
"button",
|
|
545
|
+
{
|
|
546
|
+
type: "button",
|
|
547
|
+
role: "radio",
|
|
548
|
+
"aria-checked": t.id === g,
|
|
549
|
+
className: [
|
|
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 === g ? "border-[#e05c2a] bg-[#fff8f4]" : "border-gray-200 bg-white"
|
|
552
|
+
].join(" "),
|
|
553
|
+
onClick: () => {
|
|
554
|
+
h?.trackPlanSelected?.({ planId: t.id, planName: t.title }), d(t);
|
|
555
|
+
},
|
|
556
|
+
children: [
|
|
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(Ze, {}),
|
|
559
|
+
l(t.badge)
|
|
560
|
+
] }),
|
|
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
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-[15px] font-extrabold text-[#e05c2a] leading-tight", children: t.price })
|
|
563
|
+
]
|
|
564
|
+
},
|
|
565
|
+
t.id
|
|
566
|
+
)) }),
|
|
567
|
+
T && /* @__PURE__ */ e.jsx("p", { className: "m-0 mb-2 text-xs text-[#e05c2a] text-center", role: "alert", children: l("planQuestionHint") }),
|
|
568
|
+
/* @__PURE__ */ e.jsxs(
|
|
569
|
+
"button",
|
|
570
|
+
{
|
|
571
|
+
className: [
|
|
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
|
+
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
|
+
].join(" "),
|
|
575
|
+
style: { fontFamily: "inherit" },
|
|
576
|
+
"aria-disabled": !s,
|
|
577
|
+
onClick: Z,
|
|
578
|
+
children: [
|
|
579
|
+
s && /* @__PURE__ */ e.jsx(
|
|
580
|
+
"span",
|
|
581
|
+
{
|
|
582
|
+
className: "absolute top-0 w-1/2 h-full pointer-events-none",
|
|
583
|
+
"aria-hidden": "true",
|
|
584
|
+
style: {
|
|
585
|
+
background: "linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%)",
|
|
586
|
+
transform: "skewX(-20deg)",
|
|
587
|
+
animation: "three-sku-shimmer 3s ease-in-out infinite",
|
|
588
|
+
left: "-75%"
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
),
|
|
592
|
+
/* @__PURE__ */ e.jsx("span", { className: "relative z-[1]", children: l("planProceedToPayment") })
|
|
593
|
+
]
|
|
594
|
+
}
|
|
595
|
+
)
|
|
596
|
+
]
|
|
597
|
+
}
|
|
598
|
+
)
|
|
599
|
+
]
|
|
600
|
+
}
|
|
601
|
+
)
|
|
602
|
+
}
|
|
603
|
+
)
|
|
604
|
+
] }) : null;
|
|
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
|
+
}
|
|
609
|
+
function st({ className: n }) {
|
|
610
|
+
const i = ae(), {
|
|
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
|
+
};
|
|
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
|
+
if (!k) return;
|
|
639
|
+
const s = (N) => {
|
|
640
|
+
S.current && !S.current.contains(N.target) && C(!1);
|
|
641
|
+
};
|
|
642
|
+
return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
|
|
643
|
+
}, [k]);
|
|
644
|
+
const o = (s) => at(r, s), H = a.showLanguageSelector ?? !0 ? /* @__PURE__ */ e.jsxs("div", { className: y.langDropdownWrap, ref: S, children: [
|
|
645
|
+
/* @__PURE__ */ e.jsxs(
|
|
646
|
+
"button",
|
|
647
|
+
{
|
|
648
|
+
type: "button",
|
|
649
|
+
className: y.langTrigger,
|
|
650
|
+
onClick: () => {
|
|
651
|
+
a.analytics?.trackLanguageClickedFe?.({ language: r }), C((s) => !s);
|
|
652
|
+
},
|
|
653
|
+
"aria-expanded": k,
|
|
654
|
+
"aria-haspopup": "listbox",
|
|
655
|
+
id: "kundli-lang",
|
|
656
|
+
"aria-label": o("language"),
|
|
657
|
+
children: [
|
|
658
|
+
/* @__PURE__ */ e.jsx(
|
|
659
|
+
"img",
|
|
660
|
+
{
|
|
661
|
+
src: tt,
|
|
662
|
+
alt: "",
|
|
663
|
+
className: y.langIcon,
|
|
664
|
+
width: 16,
|
|
665
|
+
height: 16,
|
|
666
|
+
"aria-hidden": !0
|
|
667
|
+
}
|
|
668
|
+
),
|
|
669
|
+
/* @__PURE__ */ e.jsx("span", { className: y.langLabel, children: M[r] })
|
|
670
|
+
]
|
|
671
|
+
}
|
|
672
|
+
),
|
|
673
|
+
k && /* @__PURE__ */ e.jsx(
|
|
674
|
+
"ul",
|
|
675
|
+
{
|
|
676
|
+
className: y.langMenu,
|
|
677
|
+
role: "listbox",
|
|
678
|
+
"aria-labelledby": "kundli-lang",
|
|
679
|
+
"aria-activedescendant": `kundli-lang-option-${r}`,
|
|
680
|
+
children: se.map((s) => /* @__PURE__ */ e.jsx(
|
|
681
|
+
"li",
|
|
682
|
+
{
|
|
683
|
+
id: `kundli-lang-option-${s}`,
|
|
684
|
+
role: "option",
|
|
685
|
+
"aria-selected": s === r,
|
|
686
|
+
className: y.langOption,
|
|
687
|
+
onClick: () => {
|
|
688
|
+
a.analytics?.trackLanguageChangedFe?.({ newLanguage: s }), d(s), C(!1);
|
|
689
|
+
},
|
|
690
|
+
children: M[s]
|
|
691
|
+
},
|
|
692
|
+
s
|
|
693
|
+
))
|
|
694
|
+
}
|
|
695
|
+
)
|
|
696
|
+
] }) : null, m = E((s) => {
|
|
697
|
+
const N = {
|
|
698
|
+
fullName: "kundli-full-name",
|
|
699
|
+
phone: "kundli-phone",
|
|
700
|
+
email: "kundli-email",
|
|
701
|
+
dateOfBirth: "kundli-dob",
|
|
702
|
+
birthTime: "kundli-birth-time",
|
|
703
|
+
birthPlace: "kundli-birth-place",
|
|
704
|
+
gender: "kundli-gender-male",
|
|
705
|
+
language_code: "kundli-report-lang-hi"
|
|
706
|
+
}, A = document.getElementById(N[s] ?? "kundli-full-name");
|
|
707
|
+
if (A) {
|
|
708
|
+
const K = A.getBoundingClientRect().top + window.scrollY - 120;
|
|
709
|
+
window.scrollTo({ top: K, behavior: "smooth" }), setTimeout(() => A.focus(), 500);
|
|
710
|
+
}
|
|
711
|
+
}, []), w = a;
|
|
712
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${y.container} ${n}`, children: [
|
|
713
|
+
/* @__PURE__ */ e.jsx(
|
|
714
|
+
re,
|
|
715
|
+
{
|
|
716
|
+
t: o,
|
|
717
|
+
logoUrl: a.logoUrl,
|
|
718
|
+
languageSelector: H
|
|
719
|
+
}
|
|
720
|
+
),
|
|
721
|
+
/* @__PURE__ */ e.jsxs("main", { className: y.main, children: [
|
|
722
|
+
/* @__PURE__ */ e.jsx(de, { t: o }),
|
|
723
|
+
/* @__PURE__ */ e.jsx(
|
|
724
|
+
Te,
|
|
725
|
+
{
|
|
726
|
+
isGlobal: a.isGlobal,
|
|
727
|
+
kundliReportSampleHref: w.kundliReportSampleHref,
|
|
728
|
+
oneQuestionSampleHref: w.oneQuestionSampleHref
|
|
729
|
+
}
|
|
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 }),
|
|
747
|
+
/* @__PURE__ */ e.jsxs("div", { className: y.inlineFormWrap, ref: Q, children: [
|
|
748
|
+
/* @__PURE__ */ e.jsx(le, { t: o, align: "center" }),
|
|
749
|
+
/* @__PURE__ */ e.jsx(
|
|
750
|
+
ie,
|
|
751
|
+
{
|
|
752
|
+
t: o,
|
|
753
|
+
values: u,
|
|
754
|
+
onChange: p,
|
|
755
|
+
phoneIsdCode: F,
|
|
756
|
+
onPhoneIsdCodeChange: j,
|
|
757
|
+
showV1ExtraFields: !0,
|
|
758
|
+
analytics: a.analytics
|
|
759
|
+
}
|
|
760
|
+
),
|
|
761
|
+
/* @__PURE__ */ e.jsx(
|
|
762
|
+
oe,
|
|
763
|
+
{
|
|
764
|
+
t: o,
|
|
765
|
+
values: u,
|
|
766
|
+
phoneIsdCode: F,
|
|
767
|
+
hideOriginalPrice: !0,
|
|
768
|
+
requireV1ExtraFields: !0,
|
|
769
|
+
onValidationFailed: m,
|
|
770
|
+
onProceed: a.onProceed,
|
|
771
|
+
href: a.proceedHref,
|
|
772
|
+
originalPriceLabel: a.originalPriceLabel,
|
|
773
|
+
discountedPriceLabel: a.discountedPriceLabel,
|
|
774
|
+
analytics: a.analytics,
|
|
775
|
+
className: y.inlineProceedFooter,
|
|
776
|
+
onProceedGuidance: a.onProceedGuidance,
|
|
777
|
+
showPlanSheet: I,
|
|
778
|
+
confirmPlan: L,
|
|
779
|
+
planSheetOpen: v,
|
|
780
|
+
selectedPlan: b
|
|
781
|
+
}
|
|
782
|
+
)
|
|
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 })
|
|
796
|
+
] }),
|
|
797
|
+
/* @__PURE__ */ e.jsx(
|
|
798
|
+
Je,
|
|
799
|
+
{
|
|
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();
|
|
808
|
+
},
|
|
809
|
+
t: o,
|
|
810
|
+
analytics: a.analytics
|
|
811
|
+
}
|
|
812
|
+
)
|
|
813
|
+
] });
|
|
814
|
+
}
|
|
815
|
+
const ct = ({
|
|
816
|
+
className: n = "",
|
|
817
|
+
locale: i,
|
|
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
|
|
831
|
+
}) => /* @__PURE__ */ e.jsx(
|
|
832
|
+
te,
|
|
833
|
+
{
|
|
834
|
+
locale: i,
|
|
835
|
+
showLanguageSelector: u,
|
|
836
|
+
showSheet: !0,
|
|
837
|
+
userId: r,
|
|
838
|
+
isGlobal: d,
|
|
839
|
+
variant: "v1",
|
|
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 })
|
|
851
|
+
}
|
|
852
|
+
);
|
|
4
853
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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,
|
|
864
|
+
te as KundliProvider,
|
|
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,
|
|
874
|
+
ae as useI18n,
|
|
875
|
+
Nt as useKundliContext,
|
|
876
|
+
ne as useKundliContextOrThrow
|
|
28
877
|
};
|
|
29
878
|
//# sourceMappingURL=kundli-generator.js.map
|