@srimandir/kundli-generator 5.30.0 → 5.30.3
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-DCkm-Koi.js → analytics-DL-R30Zw.js} +344 -351
- package/dist/{analytics-DCkm-Koi.js.map → analytics-DL-R30Zw.js.map} +1 -1
- package/dist/components/KundliForm/sections/UserInfoFormSection/useGooglePlacesAutocomplete.d.ts +5 -5
- package/dist/components/KundliPlanBottomSheet/AstrologerDetails.d.ts +9 -12
- package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuAstrologerCard.d.ts +6 -0
- package/dist/components/ThreeSkuPlanBottomSheet/ThreeSkuAstrologerProfiles.d.ts +22 -0
- package/dist/{criticalCss-R8hQ5IOD.js → criticalCss-DGh12F0K.js} +3 -2
- package/dist/{criticalCss-R8hQ5IOD.js.map → criticalCss-DGh12F0K.js.map} +1 -1
- package/dist/form-entry.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/kundli-generator.js +845 -24
- 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/kundli-generator.js
CHANGED
|
@@ -1,28 +1,849 @@
|
|
|
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 z, S as le, l as se, F as re, U as ie, P as oe, t as ce } from "./analytics-DL-R30Zw.js";
|
|
3
|
+
import { D as lt, I as st, K as rt, a as it, b as ot, j as ct, g as dt, d as ut, i as pt, r as xt, s as ht, e as mt, f as gt } from "./analytics-DL-R30Zw.js";
|
|
4
|
+
import { H as de } from "./criticalCss-DGh12F0K.js";
|
|
5
|
+
import { K as bt, a as jt, b as _t, c as wt, P as vt } from "./criticalCss-DGh12F0K.js";
|
|
6
|
+
import { useCallback as T, useMemo as M, useRef as j, useState as P, useEffect as S } from "react";
|
|
7
|
+
const ue = "_container_27slp_5", pe = "_main_27slp_10", xe = "_langDropdownWrap_27slp_16", he = "_langTrigger_27slp_20", me = "_langIcon_27slp_32", ge = "_langLabel_27slp_39", fe = "_langMenu_27slp_44", be = "_langOption_27slp_50", je = "_inlineFormWrap_27slp_61", _e = "_inlineProceedFooter_27slp_78", y = {
|
|
8
|
+
container: ue,
|
|
9
|
+
main: pe,
|
|
10
|
+
langDropdownWrap: xe,
|
|
11
|
+
langTrigger: he,
|
|
12
|
+
langIcon: me,
|
|
13
|
+
langLabel: ge,
|
|
14
|
+
langMenu: fe,
|
|
15
|
+
langOption: be,
|
|
16
|
+
inlineFormWrap: je,
|
|
17
|
+
inlineProceedFooter: _e
|
|
18
|
+
}, O = "https://srm-cdn.a4b.io/yoda/1773317492292.pdf", we = [
|
|
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
|
+
], ve = () => /* @__PURE__ */ e.jsx("span", { className: "inline-flex h-6 w-6 items-center justify-center rounded-full bg-[#14946b] font-bold text-white", children: "✓" }), ye = () => /* @__PURE__ */ e.jsx("span", { className: "inline-flex h-6 w-6 items-center justify-center rounded-full bg-[#e23f4e] font-bold text-white", children: "✕" }), Ne = () => /* @__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
|
+
), Pe = ({
|
|
70
|
+
isGlobal: a = !1,
|
|
71
|
+
kundliReportSampleHref: i = O,
|
|
72
|
+
oneQuestionSampleHref: s = O,
|
|
73
|
+
className: c = ""
|
|
74
|
+
}) => {
|
|
75
|
+
const n = a ? ["$25", "$31", "$41"] : ["₹499", "₹749", "₹999"];
|
|
76
|
+
return /* @__PURE__ */ e.jsxs("section", { className: `bg-white px-3 py-4 ${c}`, 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(Ne, {}),
|
|
95
|
+
/* @__PURE__ */ e.jsx("span", { children: "Popular" })
|
|
96
|
+
] }),
|
|
97
|
+
"Report + 30 min consultation"
|
|
98
|
+
] })
|
|
99
|
+
] }) }),
|
|
100
|
+
/* @__PURE__ */ e.jsxs("tbody", { children: [
|
|
101
|
+
we.map((d) => /* @__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: d.label.split(`
|
|
103
|
+
`).map((u) => /* @__PURE__ */ e.jsx("div", { children: u }, u)) }),
|
|
104
|
+
d.values.map((u, _) => /* @__PURE__ */ e.jsx(
|
|
105
|
+
"td",
|
|
106
|
+
{
|
|
107
|
+
className: `h-[64px] box-border bg-white py-1 text-center border-b border-[#e5ccb9] align-middle ${_ !== 2 ? "border-r border-[#e5ccb9]" : ""}`,
|
|
108
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center", children: u === "check" ? /* @__PURE__ */ e.jsx(ve, {}) : /* @__PURE__ */ e.jsx(ye, {}) })
|
|
109
|
+
},
|
|
110
|
+
`${d.label}-${_}`
|
|
111
|
+
))
|
|
112
|
+
] }, d.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
|
+
n.map((d, u) => /* @__PURE__ */ e.jsx(
|
|
116
|
+
"td",
|
|
117
|
+
{
|
|
118
|
+
className: `h-[64px] box-border bg-[#fff8ef] py-1 text-center align-middle ${u !== 2 ? "border-r border-[#e5ccb9]" : ""} ${u === 2 ? "rounded-br-[12px]" : ""}`,
|
|
119
|
+
children: /* @__PURE__ */ e.jsx("span", { className: "text-[16px] text-[#9a3f1b] max-[380px]:text-[16px]", children: d })
|
|
120
|
+
},
|
|
121
|
+
d
|
|
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: s,
|
|
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
|
+
}, ke = "_card_1gz82_1", Ce = "_top_1gz82_15", Le = "_avatar_1gz82_21", Fe = "_avatarPlaceholder_1gz82_38", Se = "_basicInfo_1gz82_44", Ie = "_name_1gz82_51", Re = "_exp_1gz82_61", Ae = "_langs_1gz82_62", Te = "_divider_1gz82_69", Ee = "_certList_1gz82_75", Qe = "_certItem_1gz82_81", Ue = "_bullet_1gz82_90", g = {
|
|
157
|
+
card: ke,
|
|
158
|
+
top: Ce,
|
|
159
|
+
avatar: Le,
|
|
160
|
+
avatarPlaceholder: Fe,
|
|
161
|
+
basicInfo: Se,
|
|
162
|
+
name: Ie,
|
|
163
|
+
exp: Re,
|
|
164
|
+
langs: Ae,
|
|
165
|
+
divider: Te,
|
|
166
|
+
certList: Ee,
|
|
167
|
+
certItem: Qe,
|
|
168
|
+
bullet: Ue
|
|
169
|
+
}, De = ({ astrologer: a, t: i }) => /* @__PURE__ */ e.jsxs("div", { className: g.card, children: [
|
|
170
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.top, children: [
|
|
171
|
+
/* @__PURE__ */ e.jsx("div", { className: g.avatar, "aria-hidden": !0, children: a.imageUrl ? /* @__PURE__ */ e.jsx("img", { src: a.imageUrl, alt: i?.(a.name) ?? a.name, width: 40, height: 40 }) : /* @__PURE__ */ e.jsx("span", { className: g.avatarPlaceholder, children: a.name.charAt(0) }) }),
|
|
172
|
+
/* @__PURE__ */ e.jsxs("div", { className: g.basicInfo, children: [
|
|
173
|
+
/* @__PURE__ */ e.jsx("p", { className: g.name, children: i?.(a.name) ?? a.name }),
|
|
174
|
+
/* @__PURE__ */ e.jsx("p", { className: g.exp, children: i?.(a.experience) ?? a.experience }),
|
|
175
|
+
a.languages && a.languages.length > 0 && /* @__PURE__ */ e.jsx("p", { className: g.langs, children: a.languages.map((s) => i?.(s) ?? s).join(" • ") })
|
|
176
|
+
] })
|
|
177
|
+
] }),
|
|
178
|
+
/* @__PURE__ */ e.jsx("div", { className: g.divider }),
|
|
179
|
+
/* @__PURE__ */ e.jsx("div", { className: g.certList, children: a.certifications.map((s, c) => /* @__PURE__ */ e.jsxs("p", { className: g.certItem, children: [
|
|
180
|
+
/* @__PURE__ */ e.jsx("span", { className: g.bullet, children: "✓" }),
|
|
181
|
+
" ",
|
|
182
|
+
i?.(s) ?? s
|
|
183
|
+
] }, c)) })
|
|
184
|
+
] }), W = [
|
|
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
|
+
}, Ke = (a) => [
|
|
282
|
+
{
|
|
283
|
+
id: "kundli-report",
|
|
284
|
+
title: "planNameBasic",
|
|
285
|
+
price: a ? "$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: a ? "$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: a ? "$41" : "₹999",
|
|
310
|
+
originalPrice: a ? "$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: W.filter(
|
|
320
|
+
(s) => ["jyoti", "samiksha", "neeraj", "ashwini"].includes(s.id)
|
|
321
|
+
)
|
|
322
|
+
}
|
|
323
|
+
], q = [
|
|
324
|
+
"planQuestionChip1",
|
|
325
|
+
"planQuestionChip2",
|
|
326
|
+
"planQuestionChip3",
|
|
327
|
+
"planQuestionChip4"
|
|
328
|
+
], He = W.slice(0, 3).map((a) => ({
|
|
329
|
+
id: a.id,
|
|
330
|
+
imageUrl: a.imageUrl,
|
|
331
|
+
name: a.name
|
|
332
|
+
})), V = 5e3, Ge = 84, ze = () => /* @__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" }) }), Me = () => /* @__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" }) }), Oe = () => /* @__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
|
+
), Be = ({
|
|
350
|
+
isOpen: a,
|
|
351
|
+
onClose: i,
|
|
352
|
+
selectedPlan: s,
|
|
353
|
+
onSelectPlan: c,
|
|
354
|
+
plans: n,
|
|
355
|
+
onProceed: d,
|
|
356
|
+
locale: u = "en",
|
|
357
|
+
t: _,
|
|
358
|
+
analytics: x,
|
|
359
|
+
isGlobal: f = !0
|
|
360
|
+
}) => {
|
|
361
|
+
const r = T((t) => ($[u] ?? $.en)[t] ?? _?.(t) ?? t, [u, _]), o = M(() => n ?? Ke(f), [n, f]), m = s?.id || o.find((t) => t.badge)?.id || o[0]?.id || "", I = j(null), E = j(null), L = j(!1), [b, k] = P(""), [C, Q] = P("custom"), [F, U] = P(null), [R, w] = P(!1), D = j(!1), K = j(null), h = M(() => o.find((t) => t.id === m) ?? o[0], [o, m]), v = !!h?.supportsQuestion, l = !v || b.trim().length > 0, N = T(() => {
|
|
362
|
+
const t = K.current;
|
|
363
|
+
t && (t.style.height = "auto", t.style.height = Math.min(t.scrollHeight, Ge) + "px");
|
|
364
|
+
}, []);
|
|
365
|
+
S(() => {
|
|
366
|
+
if (a) {
|
|
367
|
+
if (!s) {
|
|
368
|
+
const t = o.find((p) => p.badge) ?? o[0];
|
|
369
|
+
t && c(t);
|
|
370
|
+
}
|
|
371
|
+
L.current || (x?.trackPlanPageViewed?.(), L.current = !0);
|
|
372
|
+
} else
|
|
373
|
+
L.current = !1;
|
|
374
|
+
}, [a, o, s, c, x]);
|
|
375
|
+
const A = () => {
|
|
376
|
+
x?.trackPlanPageClosed?.(), i();
|
|
377
|
+
};
|
|
378
|
+
S(() => {
|
|
379
|
+
if (!a) return;
|
|
380
|
+
const t = document.body.style.overflow;
|
|
381
|
+
return document.body.style.overflow = "hidden", () => {
|
|
382
|
+
document.body.style.overflow = t;
|
|
383
|
+
};
|
|
384
|
+
}, [a]);
|
|
385
|
+
const H = (t) => {
|
|
386
|
+
D.current || (D.current = !0, x?.trackQuestionTextboxClicked?.({
|
|
387
|
+
entry_method: t,
|
|
388
|
+
textbox_empty: b.length === 0
|
|
389
|
+
}));
|
|
390
|
+
}, Y = (t) => {
|
|
391
|
+
const p = t.target.value.slice(0, V);
|
|
392
|
+
C === "chip" && p !== r(q[F ?? 0]) && Q("chip_edited"), k(p), N(), R && w(!1);
|
|
393
|
+
}, X = (t, p) => {
|
|
394
|
+
const G = r(t), J = b.length > 0 && C !== "chip";
|
|
395
|
+
x?.trackPreSuggestedQuestionSelected?.({
|
|
396
|
+
question_text_loaded: G,
|
|
397
|
+
chip_index: p,
|
|
398
|
+
previous_chip_index: F,
|
|
399
|
+
user_had_custom_text: J
|
|
400
|
+
}), k(G), Q("chip"), U(p), D.current = !1, setTimeout(N, 0);
|
|
401
|
+
}, Z = () => {
|
|
402
|
+
if (h) {
|
|
403
|
+
if (v && !b.trim()) {
|
|
404
|
+
w(!0);
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
x?.trackPlanProceedClicked?.({
|
|
408
|
+
planId: h.id,
|
|
409
|
+
planName: h.title,
|
|
410
|
+
question_asked: v ? !0 : void 0,
|
|
411
|
+
question_text: v ? b.trim() : void 0,
|
|
412
|
+
question_source: v ? C : void 0
|
|
413
|
+
}), d(h, v ? b.trim() : void 0), i();
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
return a ? /* @__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": r("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: r("planSheetTitle") })
|
|
454
|
+
] }),
|
|
455
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 overflow-y-auto px-4 pt-4 pb-4", ref: E, children: [
|
|
456
|
+
/* @__PURE__ */ e.jsx("h3", { className: "m-0 mb-5 text-[22px] leading-snug text-gray-900", children: r(h?.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: h && /* @__PURE__ */ e.jsx("ul", { className: "list-none m-0 p-0 flex flex-col gap-2", "aria-label": "Plan features", children: h.features.map((t, p) => /* @__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(ze, {}) : /* @__PURE__ */ e.jsx(Me, {}) }),
|
|
459
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-[12px] leading-[1.4] text-gray-700", children: r(t.text) })
|
|
460
|
+
] }, p)) }) }),
|
|
461
|
+
v && /* @__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: He.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: r(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: r("planQuestionHeader") })
|
|
480
|
+
] }),
|
|
481
|
+
/* @__PURE__ */ e.jsxs("label", { className: "text-[14px] font-semibold text-gray-900", htmlFor: "kundli-question", children: [
|
|
482
|
+
r("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: K,
|
|
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: r("planQuestionPlaceholder"),
|
|
492
|
+
value: b,
|
|
493
|
+
onFocus: () => H("keyboard_focus"),
|
|
494
|
+
onClick: () => H("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
|
+
b.length,
|
|
501
|
+
"/",
|
|
502
|
+
V
|
|
503
|
+
] }) }),
|
|
504
|
+
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 gap-2", children: q.map((t, p) => /* @__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, p),
|
|
511
|
+
children: r(t)
|
|
512
|
+
},
|
|
513
|
+
t
|
|
514
|
+
)) })
|
|
515
|
+
] }),
|
|
516
|
+
h?.astrologers && h.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: r("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: h.astrologers.map((t, p) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(De, { astrologer: t, t: r }) }, p))
|
|
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: o.map((t) => /* @__PURE__ */ e.jsxs(
|
|
544
|
+
"button",
|
|
545
|
+
{
|
|
546
|
+
type: "button",
|
|
547
|
+
role: "radio",
|
|
548
|
+
"aria-checked": t.id === m,
|
|
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 === m ? "border-[#e05c2a] bg-[#fff8f4]" : "border-gray-200 bg-white"
|
|
552
|
+
].join(" "),
|
|
553
|
+
onClick: () => {
|
|
554
|
+
x?.trackPlanSelected?.({ planId: t.id, planName: t.title }), c(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(Oe, {}),
|
|
559
|
+
r(t.badge)
|
|
560
|
+
] }),
|
|
561
|
+
/* @__PURE__ */ e.jsx("span", { className: `text-[14px] leading-snug ${t.id === m ? "font-bold text-gray-900" : "font-semibold text-gray-600"}`, children: r(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
|
+
R && /* @__PURE__ */ e.jsx("p", { className: "m-0 mb-2 text-xs text-[#e05c2a] text-center", role: "alert", children: r("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
|
+
l ? "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": !l,
|
|
577
|
+
onClick: Z,
|
|
578
|
+
children: [
|
|
579
|
+
l && /* @__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: r("planProceedToPayment") })
|
|
593
|
+
]
|
|
594
|
+
}
|
|
595
|
+
)
|
|
596
|
+
]
|
|
597
|
+
}
|
|
598
|
+
)
|
|
599
|
+
]
|
|
600
|
+
}
|
|
601
|
+
)
|
|
602
|
+
}
|
|
603
|
+
)
|
|
604
|
+
] }) : null;
|
|
605
|
+
}, $e = "kundli-report-astrologer", qe = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", Ve = (a, i) => ce[a]?.[i] ?? i;
|
|
606
|
+
function We({ className: a }) {
|
|
607
|
+
return /* @__PURE__ */ e.jsx(Ye, { className: a });
|
|
608
|
+
}
|
|
609
|
+
function Ye({ className: a }) {
|
|
610
|
+
const i = ae(), {
|
|
611
|
+
locale: s,
|
|
612
|
+
setLocale: c,
|
|
613
|
+
config: n,
|
|
614
|
+
formValues: d,
|
|
615
|
+
setFormValues: u
|
|
616
|
+
} = ne(), [_, x] = P(!1), [f, r] = P(null), o = j(null), m = j(void 0), I = T((l) => {
|
|
617
|
+
o.current = l, x(!0);
|
|
618
|
+
}, []), E = T(() => {
|
|
619
|
+
if (!o.current || !f) return;
|
|
620
|
+
const l = {
|
|
621
|
+
...o.current,
|
|
622
|
+
_selectedPlan: f,
|
|
623
|
+
...m.current !== void 0 ? { _question: m.current } : {}
|
|
624
|
+
};
|
|
625
|
+
m.current = void 0, f.id === $e && n.onProceedGuidance ? n.onProceedGuidance(l) : n.onProceed?.(l), x(!1), o.current = null;
|
|
626
|
+
}, [f, n.onProceed, n.onProceedGuidance]), [L, b] = P(
|
|
627
|
+
n.isGlobal ?? !0 ? "+1" : "+91"
|
|
628
|
+
), [k, C] = P(!1), Q = j(null), F = j(null), U = j(n.locale), R = j(i?.locale);
|
|
629
|
+
S(() => {
|
|
630
|
+
n.locale && U.current !== n.locale && c(n.locale), U.current = n.locale;
|
|
631
|
+
}, [n.locale, c]), S(() => {
|
|
632
|
+
if (n.locale) return;
|
|
633
|
+
const l = i?.locale;
|
|
634
|
+
l && R.current !== l && c(l), R.current = l;
|
|
635
|
+
}, [i?.locale, n.locale, c]), S(() => {
|
|
636
|
+
b(n.isGlobal ?? !0 ? "+1" : "+91");
|
|
637
|
+
}, [n.isGlobal]), S(() => {
|
|
638
|
+
if (!k) return;
|
|
639
|
+
const l = (N) => {
|
|
640
|
+
F.current && !F.current.contains(N.target) && C(!1);
|
|
641
|
+
};
|
|
642
|
+
return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
|
|
643
|
+
}, [k]);
|
|
644
|
+
const w = (l) => Ve(s, l), K = n.showLanguageSelector ?? !0 ? /* @__PURE__ */ e.jsxs("div", { className: y.langDropdownWrap, ref: F, children: [
|
|
645
|
+
/* @__PURE__ */ e.jsxs(
|
|
646
|
+
"button",
|
|
647
|
+
{
|
|
648
|
+
type: "button",
|
|
649
|
+
className: y.langTrigger,
|
|
650
|
+
onClick: () => {
|
|
651
|
+
n.analytics?.trackLanguageClickedFe?.({ language: s }), C((l) => !l);
|
|
652
|
+
},
|
|
653
|
+
"aria-expanded": k,
|
|
654
|
+
"aria-haspopup": "listbox",
|
|
655
|
+
id: "kundli-lang",
|
|
656
|
+
"aria-label": w("language"),
|
|
657
|
+
children: [
|
|
658
|
+
/* @__PURE__ */ e.jsx(
|
|
659
|
+
"img",
|
|
660
|
+
{
|
|
661
|
+
src: qe,
|
|
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: z[s] })
|
|
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-${s}`,
|
|
680
|
+
children: le.map((l) => /* @__PURE__ */ e.jsx(
|
|
681
|
+
"li",
|
|
682
|
+
{
|
|
683
|
+
id: `kundli-lang-option-${l}`,
|
|
684
|
+
role: "option",
|
|
685
|
+
"aria-selected": l === s,
|
|
686
|
+
className: y.langOption,
|
|
687
|
+
onClick: () => {
|
|
688
|
+
n.analytics?.trackLanguageChangedFe?.({ newLanguage: l }), c(l), C(!1);
|
|
689
|
+
},
|
|
690
|
+
children: z[l]
|
|
691
|
+
},
|
|
692
|
+
l
|
|
693
|
+
))
|
|
694
|
+
}
|
|
695
|
+
)
|
|
696
|
+
] }) : null, h = T((l) => {
|
|
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[l] ?? "kundli-full-name");
|
|
707
|
+
if (A) {
|
|
708
|
+
const H = A.getBoundingClientRect().top + window.scrollY - 120;
|
|
709
|
+
window.scrollTo({ top: H, behavior: "smooth" }), setTimeout(() => A.focus(), 500);
|
|
710
|
+
}
|
|
711
|
+
}, []), v = n;
|
|
712
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${y.container} ${a}`, children: [
|
|
713
|
+
/* @__PURE__ */ e.jsx(
|
|
714
|
+
se,
|
|
715
|
+
{
|
|
716
|
+
t: w,
|
|
717
|
+
logoUrl: n.logoUrl,
|
|
718
|
+
languageSelector: K
|
|
719
|
+
}
|
|
720
|
+
),
|
|
721
|
+
/* @__PURE__ */ e.jsxs("main", { className: y.main, children: [
|
|
722
|
+
/* @__PURE__ */ e.jsx(de, { t: w }),
|
|
723
|
+
/* @__PURE__ */ e.jsx(
|
|
724
|
+
Pe,
|
|
725
|
+
{
|
|
726
|
+
isGlobal: n.isGlobal,
|
|
727
|
+
kundliReportSampleHref: v.kundliReportSampleHref,
|
|
728
|
+
oneQuestionSampleHref: v.oneQuestionSampleHref
|
|
729
|
+
}
|
|
730
|
+
),
|
|
731
|
+
/* @__PURE__ */ e.jsxs("div", { className: y.inlineFormWrap, ref: Q, children: [
|
|
732
|
+
/* @__PURE__ */ e.jsx(re, { t: w, align: "center" }),
|
|
733
|
+
/* @__PURE__ */ e.jsx(
|
|
734
|
+
ie,
|
|
735
|
+
{
|
|
736
|
+
t: w,
|
|
737
|
+
values: d,
|
|
738
|
+
onChange: u,
|
|
739
|
+
phoneIsdCode: L,
|
|
740
|
+
onPhoneIsdCodeChange: b,
|
|
741
|
+
showV1ExtraFields: !0,
|
|
742
|
+
analytics: n.analytics
|
|
743
|
+
}
|
|
744
|
+
),
|
|
745
|
+
/* @__PURE__ */ e.jsx(
|
|
746
|
+
oe,
|
|
747
|
+
{
|
|
748
|
+
t: w,
|
|
749
|
+
values: d,
|
|
750
|
+
phoneIsdCode: L,
|
|
751
|
+
hideOriginalPrice: !0,
|
|
752
|
+
requireV1ExtraFields: !0,
|
|
753
|
+
onValidationFailed: h,
|
|
754
|
+
onProceed: n.onProceed,
|
|
755
|
+
href: n.proceedHref,
|
|
756
|
+
originalPriceLabel: n.originalPriceLabel,
|
|
757
|
+
discountedPriceLabel: n.discountedPriceLabel,
|
|
758
|
+
analytics: n.analytics,
|
|
759
|
+
className: y.inlineProceedFooter,
|
|
760
|
+
onProceedGuidance: n.onProceedGuidance,
|
|
761
|
+
showPlanSheet: I,
|
|
762
|
+
confirmPlan: E,
|
|
763
|
+
planSheetOpen: _,
|
|
764
|
+
selectedPlan: f
|
|
765
|
+
}
|
|
766
|
+
)
|
|
767
|
+
] })
|
|
768
|
+
] }),
|
|
769
|
+
/* @__PURE__ */ e.jsx(
|
|
770
|
+
Be,
|
|
771
|
+
{
|
|
772
|
+
isOpen: _,
|
|
773
|
+
onClose: () => x(!1),
|
|
774
|
+
selectedPlan: f,
|
|
775
|
+
onSelectPlan: r,
|
|
776
|
+
isGlobal: n.isGlobal,
|
|
777
|
+
locale: s,
|
|
778
|
+
onProceed: (l, N) => {
|
|
779
|
+
m.current = N, E();
|
|
780
|
+
},
|
|
781
|
+
t: w,
|
|
782
|
+
analytics: n.analytics
|
|
783
|
+
}
|
|
784
|
+
)
|
|
785
|
+
] });
|
|
786
|
+
}
|
|
787
|
+
const tt = ({
|
|
788
|
+
className: a = "",
|
|
789
|
+
locale: i,
|
|
790
|
+
userId: s,
|
|
791
|
+
isGlobal: c,
|
|
792
|
+
atlasSearchLocalities: n,
|
|
793
|
+
kundliReportSampleHref: d,
|
|
794
|
+
oneQuestionSampleHref: u,
|
|
795
|
+
onProceed: _,
|
|
796
|
+
onProceedGuidance: x,
|
|
797
|
+
proceedHref: f,
|
|
798
|
+
originalPriceLabel: r,
|
|
799
|
+
discountedPriceLabel: o,
|
|
800
|
+
analytics: m,
|
|
801
|
+
onLocaleChange: I
|
|
802
|
+
}) => /* @__PURE__ */ e.jsx(
|
|
803
|
+
te,
|
|
804
|
+
{
|
|
805
|
+
locale: i,
|
|
806
|
+
showLanguageSelector: !1,
|
|
807
|
+
showSheet: !0,
|
|
808
|
+
userId: s,
|
|
809
|
+
isGlobal: c,
|
|
810
|
+
variant: "v1",
|
|
811
|
+
atlasSearchLocalities: n,
|
|
812
|
+
onProceed: _,
|
|
813
|
+
onProceedGuidance: x,
|
|
814
|
+
proceedHref: f,
|
|
815
|
+
originalPriceLabel: r,
|
|
816
|
+
discountedPriceLabel: o,
|
|
817
|
+
analytics: m,
|
|
818
|
+
onLocaleChange: I,
|
|
819
|
+
kundliReportSampleHref: d,
|
|
820
|
+
oneQuestionSampleHref: u,
|
|
821
|
+
children: /* @__PURE__ */ e.jsx(We, { className: a })
|
|
822
|
+
}
|
|
823
|
+
);
|
|
4
824
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
825
|
+
lt as DefaultKundliImage,
|
|
826
|
+
st as I18nProvider,
|
|
827
|
+
rt as KUNDLI_ANALYTICS_EVENT_NAMES,
|
|
828
|
+
bt as KUNDLI_CRITICAL_CSS,
|
|
829
|
+
it as KUNDLI_LANGUAGE_STORAGE_KEY,
|
|
830
|
+
ot as KundliContext,
|
|
831
|
+
ct as KundliForm,
|
|
832
|
+
jt as KundliPage,
|
|
833
|
+
_t as KundliPageBase,
|
|
834
|
+
wt as KundliPageV1,
|
|
835
|
+
te as KundliProvider,
|
|
836
|
+
tt as KundliThreeSkuPage,
|
|
837
|
+
vt as PREMIUM_REPORT_BACKGROUND_IMAGE_URL,
|
|
838
|
+
le as SUPPORTED_LOCALES,
|
|
839
|
+
dt as getItem,
|
|
840
|
+
ut as getStoredKundliLocale,
|
|
841
|
+
pt as isLocalStorageAvailable,
|
|
842
|
+
xt as removeItem,
|
|
843
|
+
ht as setItem,
|
|
844
|
+
mt as setStoredKundliLocale,
|
|
845
|
+
ae as useI18n,
|
|
846
|
+
gt as useKundliContext,
|
|
847
|
+
ne as useKundliContextOrThrow
|
|
27
848
|
};
|
|
28
849
|
//# sourceMappingURL=kundli-generator.js.map
|