@srimandir/kundli-generator 10.58.0 → 10.59.0
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-B-v30ZYS.js → analytics-1GaVXIM_.js} +300 -297
- package/dist/analytics-1GaVXIM_.js.map +1 -0
- package/dist/analytics.d.ts +4 -0
- package/dist/{criticalCss-DwfRDy7f.js → criticalCss-Bw_YX5MC.js} +2 -2
- package/dist/{criticalCss-DwfRDy7f.js.map → criticalCss-Bw_YX5MC.js.map} +1 -1
- package/dist/form-entry.js +1 -1
- package/dist/kundli-generator.js +3 -3
- package/dist/page-entry.js +2 -2
- package/package.json +1 -1
- package/dist/analytics-B-v30ZYS.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { j as e, e as xe, D as
|
|
2
|
-
import { useEffect as C, useState as y, useRef as j, useMemo as ie, useCallback as ce, Fragment as
|
|
3
|
-
import { FormSectionHeader as
|
|
4
|
-
import { createPortal as
|
|
5
|
-
const
|
|
6
|
-
header:
|
|
7
|
-
centered:
|
|
8
|
-
},
|
|
1
|
+
import { j as e, e as xe, D as Le, k as Re, l as Ae, u as Ee, m as Ce, n as Me, P as Fe, L as Te, S as Oe, U as $e, o as Ge, t as Ke } from "./ProceedFooter-C-SsbQlr.js";
|
|
2
|
+
import { useEffect as C, useState as y, useRef as j, useMemo as ie, useCallback as ce, Fragment as He } from "react";
|
|
3
|
+
import { FormSectionHeader as Ue, PageHeader as Ve } from "@srimandir/astrology-common";
|
|
4
|
+
import { createPortal as Be } from "react-dom";
|
|
5
|
+
const We = "_header_19172_1", Ye = "_centered_19172_8", we = {
|
|
6
|
+
header: We,
|
|
7
|
+
centered: Ye
|
|
8
|
+
}, qe = ({
|
|
9
9
|
t,
|
|
10
10
|
onBack: l,
|
|
11
11
|
className: n = "",
|
|
12
12
|
align: s = "left"
|
|
13
13
|
}) => /* @__PURE__ */ e.jsx(
|
|
14
|
-
|
|
14
|
+
Ue,
|
|
15
15
|
{
|
|
16
16
|
title: t("formTitle"),
|
|
17
17
|
subtitle: t("formSubtitle"),
|
|
@@ -19,36 +19,36 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
19
19
|
backAriaLabel: t("back"),
|
|
20
20
|
className: `${we.header} ${s === "center" ? we.centered : ""} ${n}`
|
|
21
21
|
}
|
|
22
|
-
),
|
|
23
|
-
container:
|
|
24
|
-
main:
|
|
25
|
-
kundliHeaderNoBorder:
|
|
26
|
-
headerSeparator:
|
|
27
|
-
langDropdownWrap:
|
|
28
|
-
langTrigger:
|
|
29
|
-
langIcon:
|
|
30
|
-
langLabel:
|
|
31
|
-
langMenu:
|
|
32
|
-
langOption:
|
|
33
|
-
},
|
|
22
|
+
), ze = "_container_1e1th_1", Xe = "_main_1e1th_7", Ze = "_kundliHeaderNoBorder_1e1th_12", Je = "_headerSeparator_1e1th_16", Qe = "_langDropdownWrap_1e1th_21", et = "_langTrigger_1e1th_25", tt = "_langIcon_1e1th_37", at = "_langLabel_1e1th_44", nt = "_langMenu_1e1th_49", ot = "_langOption_1e1th_55", G = {
|
|
23
|
+
container: ze,
|
|
24
|
+
main: Xe,
|
|
25
|
+
kundliHeaderNoBorder: Ze,
|
|
26
|
+
headerSeparator: Je,
|
|
27
|
+
langDropdownWrap: Qe,
|
|
28
|
+
langTrigger: et,
|
|
29
|
+
langIcon: tt,
|
|
30
|
+
langLabel: at,
|
|
31
|
+
langMenu: nt,
|
|
32
|
+
langOption: ot
|
|
33
|
+
}, lt = "https://srm-cdn.a4b.io/yoda/1770362904947.svg", rt = ({
|
|
34
34
|
t,
|
|
35
35
|
languageSelector: l,
|
|
36
|
-
logoUrl: n =
|
|
36
|
+
logoUrl: n = lt,
|
|
37
37
|
className: s = ""
|
|
38
38
|
}) => {
|
|
39
|
-
const _ = xe(),
|
|
39
|
+
const _ = xe(), g = l != null;
|
|
40
40
|
return /* @__PURE__ */ e.jsx(
|
|
41
|
-
|
|
41
|
+
Ve,
|
|
42
42
|
{
|
|
43
43
|
t,
|
|
44
44
|
logoUrl: n,
|
|
45
45
|
imageComponent: _?.config.imageComponent,
|
|
46
46
|
languageSelector: l,
|
|
47
|
-
showLanguageSelector:
|
|
47
|
+
showLanguageSelector: g,
|
|
48
48
|
className: s
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
|
-
},
|
|
51
|
+
}, De = (t) => {
|
|
52
52
|
C(() => {
|
|
53
53
|
if (!t) return;
|
|
54
54
|
const l = document.body.style.overflow, n = document.documentElement.style.overflow;
|
|
@@ -56,7 +56,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
56
56
|
document.body.style.overflow = l, document.documentElement.style.overflow = n;
|
|
57
57
|
};
|
|
58
58
|
}, [t]);
|
|
59
|
-
},
|
|
59
|
+
}, Pe = () => /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
60
60
|
"path",
|
|
61
61
|
{
|
|
62
62
|
d: "M3.5 8.5l2.5 2.5 6-6",
|
|
@@ -65,7 +65,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
65
65
|
strokeLinecap: "round",
|
|
66
66
|
strokeLinejoin: "round"
|
|
67
67
|
}
|
|
68
|
-
) }),
|
|
68
|
+
) }), st = () => /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
69
69
|
"path",
|
|
70
70
|
{
|
|
71
71
|
d: "M4.5 4.5l7 7M11.5 4.5l-7 7",
|
|
@@ -73,10 +73,10 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
73
73
|
strokeWidth: "1.8",
|
|
74
74
|
strokeLinecap: "round"
|
|
75
75
|
}
|
|
76
|
-
) }), Se = () => /* @__PURE__ */ e.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx("path", { d: "M15 18l-6-6 6-6" }) }),
|
|
76
|
+
) }), Se = () => /* @__PURE__ */ e.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx("path", { d: "M15 18l-6-6 6-6" }) }), it = () => /* @__PURE__ */ e.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ e.jsx("path", { d: "M6 9l6 6 6-6" }) }), ct = () => /* @__PURE__ */ e.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: [
|
|
77
77
|
/* @__PURE__ */ e.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
78
78
|
/* @__PURE__ */ e.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
79
|
-
] }),
|
|
79
|
+
] }), dt = () => /* @__PURE__ */ e.jsx(
|
|
80
80
|
"img",
|
|
81
81
|
{
|
|
82
82
|
src: "https://srm-cdn.a4b.io/yoda/1785316603029.svg",
|
|
@@ -85,7 +85,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
85
85
|
alt: "",
|
|
86
86
|
"aria-hidden": !0
|
|
87
87
|
}
|
|
88
|
-
),
|
|
88
|
+
), _t = () => /* @__PURE__ */ e.jsx(
|
|
89
89
|
"img",
|
|
90
90
|
{
|
|
91
91
|
src: "https://srm-cdn.a4b.io/yoda/1785316621747.svg",
|
|
@@ -94,7 +94,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
94
94
|
alt: "",
|
|
95
95
|
"aria-hidden": !0
|
|
96
96
|
}
|
|
97
|
-
),
|
|
97
|
+
), ut = () => /* @__PURE__ */ e.jsx(
|
|
98
98
|
"img",
|
|
99
99
|
{
|
|
100
100
|
src: "https://srm-cdn.a4b.io/yoda/1785316635953.svg",
|
|
@@ -103,57 +103,57 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
103
103
|
alt: "",
|
|
104
104
|
"aria-hidden": !0
|
|
105
105
|
}
|
|
106
|
-
),
|
|
106
|
+
), gt = () => /* @__PURE__ */ e.jsxs("svg", { width: "40", height: "40", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: [
|
|
107
107
|
/* @__PURE__ */ e.jsx("rect", { x: "3", y: "4.5", width: "18", height: "16", rx: "3", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
108
108
|
/* @__PURE__ */ e.jsx("path", { d: "M3 9.5h18", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
109
109
|
/* @__PURE__ */ e.jsx("path", { d: "M8 2.5v4M16 2.5v4", stroke: "#D1D5DB", strokeWidth: "1.6", strokeLinecap: "round" }),
|
|
110
110
|
/* @__PURE__ */ e.jsx("path", { d: "M7.5 20.5L17 6", stroke: "#9CA3AF", strokeWidth: "1.6", strokeLinecap: "round" })
|
|
111
|
-
] }),
|
|
112
|
-
overlay:
|
|
113
|
-
sheet:
|
|
114
|
-
sheetFullScreen:
|
|
115
|
-
headerFull:
|
|
116
|
-
titleFull:
|
|
117
|
-
header:
|
|
118
|
-
backBtn:
|
|
119
|
-
title:
|
|
120
|
-
plansContainer:
|
|
121
|
-
planCard:
|
|
122
|
-
withBadgeSpacing:
|
|
123
|
-
planCardSelected:
|
|
124
|
-
planCardPopular:
|
|
125
|
-
popularBadge:
|
|
126
|
-
planCardInner:
|
|
127
|
-
planTitleRow:
|
|
128
|
-
planTitle:
|
|
129
|
-
radioCircle:
|
|
130
|
-
radioChecked:
|
|
131
|
-
radioInner:
|
|
132
|
-
priceRow:
|
|
133
|
-
price:
|
|
134
|
-
originalPrice:
|
|
135
|
-
savingsBadge:
|
|
136
|
-
featureList:
|
|
137
|
-
featureItem:
|
|
138
|
-
featureIcon:
|
|
139
|
-
featureText:
|
|
140
|
-
astrologerHeading:
|
|
141
|
-
astrologerList:
|
|
142
|
-
astrologerCard:
|
|
143
|
-
astrologerAvatar:
|
|
144
|
-
astrologerAvatarPlaceholder:
|
|
145
|
-
astrologerTop:
|
|
146
|
-
astrologerBasicInfo:
|
|
147
|
-
astrologerName:
|
|
148
|
-
astrologerExp:
|
|
149
|
-
astrologerDivider:
|
|
150
|
-
planDivider:
|
|
151
|
-
astrologerCertList:
|
|
152
|
-
astrologerCertItem:
|
|
153
|
-
bullet:
|
|
154
|
-
footer:
|
|
155
|
-
proceedBtn:
|
|
156
|
-
},
|
|
111
|
+
] }), mt = "_overlay_pvy8j_3", pt = "_sheet_pvy8j_13", ht = "_sheetFullScreen_pvy8j_53", ft = "_headerFull_pvy8j_76", bt = "_titleFull_pvy8j_89", kt = "_header_pvy8j_76", xt = "_backBtn_pvy8j_110", vt = "_title_pvy8j_89", yt = "_plansContainer_pvy8j_140", jt = "_planCard_pvy8j_149", Ct = "_withBadgeSpacing_pvy8j_163", St = "_planCardSelected_pvy8j_167", Tt = "_planCardPopular_pvy8j_172", wt = "_popularBadge_pvy8j_181", Nt = "_planCardInner_pvy8j_199", Lt = "_planTitleRow_pvy8j_210", Bt = "_planTitle_pvy8j_210", Dt = "_radioCircle_pvy8j_225", Pt = "_radioChecked_pvy8j_238", It = "_radioInner_pvy8j_243", Rt = "_priceRow_pvy8j_251", At = "_price_pvy8j_251", Et = "_originalPrice_pvy8j_264", Mt = "_savingsBadge_pvy8j_271", Ft = "_featureList_pvy8j_281", Ot = "_featureItem_pvy8j_290", $t = "_featureIcon_pvy8j_296", Gt = "_featureText_pvy8j_302", Kt = "_astrologerHeading_pvy8j_313", Ht = "_astrologerList_pvy8j_320", Ut = "_astrologerCard_pvy8j_336", Vt = "_astrologerAvatar_pvy8j_352", Wt = "_astrologerAvatarPlaceholder_pvy8j_369", Yt = "_astrologerTop_pvy8j_375", qt = "_astrologerBasicInfo_pvy8j_381", zt = "_astrologerName_pvy8j_388", Xt = "_astrologerExp_pvy8j_397", Zt = "_astrologerDivider_pvy8j_403", Jt = "_planDivider_pvy8j_409", Qt = "_astrologerCertList_pvy8j_416", ea = "_astrologerCertItem_pvy8j_422", ta = "_bullet_pvy8j_430", aa = "_footer_pvy8j_435", na = "_proceedBtn_pvy8j_445", i = {
|
|
112
|
+
overlay: mt,
|
|
113
|
+
sheet: pt,
|
|
114
|
+
sheetFullScreen: ht,
|
|
115
|
+
headerFull: ft,
|
|
116
|
+
titleFull: bt,
|
|
117
|
+
header: kt,
|
|
118
|
+
backBtn: xt,
|
|
119
|
+
title: vt,
|
|
120
|
+
plansContainer: yt,
|
|
121
|
+
planCard: jt,
|
|
122
|
+
withBadgeSpacing: Ct,
|
|
123
|
+
planCardSelected: St,
|
|
124
|
+
planCardPopular: Tt,
|
|
125
|
+
popularBadge: wt,
|
|
126
|
+
planCardInner: Nt,
|
|
127
|
+
planTitleRow: Lt,
|
|
128
|
+
planTitle: Bt,
|
|
129
|
+
radioCircle: Dt,
|
|
130
|
+
radioChecked: Pt,
|
|
131
|
+
radioInner: It,
|
|
132
|
+
priceRow: Rt,
|
|
133
|
+
price: At,
|
|
134
|
+
originalPrice: Et,
|
|
135
|
+
savingsBadge: Mt,
|
|
136
|
+
featureList: Ft,
|
|
137
|
+
featureItem: Ot,
|
|
138
|
+
featureIcon: $t,
|
|
139
|
+
featureText: Gt,
|
|
140
|
+
astrologerHeading: Kt,
|
|
141
|
+
astrologerList: Ht,
|
|
142
|
+
astrologerCard: Ut,
|
|
143
|
+
astrologerAvatar: Vt,
|
|
144
|
+
astrologerAvatarPlaceholder: Wt,
|
|
145
|
+
astrologerTop: Yt,
|
|
146
|
+
astrologerBasicInfo: qt,
|
|
147
|
+
astrologerName: zt,
|
|
148
|
+
astrologerExp: Xt,
|
|
149
|
+
astrologerDivider: Zt,
|
|
150
|
+
planDivider: Jt,
|
|
151
|
+
astrologerCertList: Qt,
|
|
152
|
+
astrologerCertItem: ea,
|
|
153
|
+
bullet: ta,
|
|
154
|
+
footer: aa,
|
|
155
|
+
proceedBtn: na
|
|
156
|
+
}, oa = ({ title: t, onBack: l }) => /* @__PURE__ */ e.jsxs("div", { className: i.header, children: [
|
|
157
157
|
/* @__PURE__ */ e.jsx(
|
|
158
158
|
"button",
|
|
159
159
|
{
|
|
@@ -165,8 +165,8 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
165
165
|
}
|
|
166
166
|
),
|
|
167
167
|
/* @__PURE__ */ e.jsx("h2", { className: i.title, children: t })
|
|
168
|
-
] }),
|
|
169
|
-
/* @__PURE__ */ e.jsx("span", { className: i.featureIcon, children: n.included ? /* @__PURE__ */ e.jsx(
|
|
168
|
+
] }), la = ({ features: t, t: l }) => /* @__PURE__ */ e.jsx("ul", { className: i.featureList, "aria-label": "Plan features", children: t.map((n, s) => /* @__PURE__ */ e.jsxs("li", { className: i.featureItem, children: [
|
|
169
|
+
/* @__PURE__ */ e.jsx("span", { className: i.featureIcon, children: n.included ? /* @__PURE__ */ e.jsx(Pe, {}) : /* @__PURE__ */ e.jsx(st, {}) }),
|
|
170
170
|
/* @__PURE__ */ e.jsx(
|
|
171
171
|
"span",
|
|
172
172
|
{
|
|
@@ -174,7 +174,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
174
174
|
children: l?.(n.text) ?? n.text
|
|
175
175
|
}
|
|
176
176
|
)
|
|
177
|
-
] }, s)) }),
|
|
177
|
+
] }, s)) }), ra = ({ astrologer: t, t: l }) => /* @__PURE__ */ e.jsxs("div", { className: i.astrologerCard, children: [
|
|
178
178
|
/* @__PURE__ */ e.jsxs("div", { className: i.astrologerTop, children: [
|
|
179
179
|
/* @__PURE__ */ e.jsx("div", { className: i.astrologerAvatar, "aria-hidden": !0, children: t.imageUrl ? /* @__PURE__ */ e.jsx("img", { src: t.imageUrl, alt: l?.(t.name) ?? t.name, width: 40, height: 40 }) : /* @__PURE__ */ e.jsx("span", { className: i.astrologerAvatarPlaceholder, children: t.name.charAt(0) }) }),
|
|
180
180
|
/* @__PURE__ */ e.jsxs("div", { className: i.astrologerBasicInfo, children: [
|
|
@@ -188,11 +188,11 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
188
188
|
" ",
|
|
189
189
|
l?.(n) ?? n
|
|
190
190
|
] }, s)) })
|
|
191
|
-
] }),
|
|
192
|
-
/* @__PURE__ */ e.jsx(
|
|
191
|
+
] }), sa = ({ label: t }) => /* @__PURE__ */ e.jsxs("div", { className: i.popularBadge, "aria-label": t, children: [
|
|
192
|
+
/* @__PURE__ */ e.jsx(ct, {}),
|
|
193
193
|
/* @__PURE__ */ e.jsx("span", { children: t })
|
|
194
|
-
] }),
|
|
195
|
-
const _ = () => n(t.id),
|
|
194
|
+
] }), ia = ({ plan: t, isSelected: l, onSelect: n, t: s }) => {
|
|
195
|
+
const _ = () => n(t.id), g = (u) => {
|
|
196
196
|
(u.key === " " || u.key === "Enter") && (u.preventDefault(), n(t.id));
|
|
197
197
|
};
|
|
198
198
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -207,10 +207,10 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
207
207
|
role: "radio",
|
|
208
208
|
"aria-checked": l,
|
|
209
209
|
tabIndex: 0,
|
|
210
|
-
onKeyDown:
|
|
210
|
+
onKeyDown: g,
|
|
211
211
|
"data-plan-id": t.id,
|
|
212
212
|
children: [
|
|
213
|
-
t.badge && /* @__PURE__ */ e.jsx(
|
|
213
|
+
t.badge && /* @__PURE__ */ e.jsx(sa, { label: s?.(t.badge) ?? t.badge }),
|
|
214
214
|
/* @__PURE__ */ e.jsxs("div", { className: i.planCardInner, children: [
|
|
215
215
|
/* @__PURE__ */ e.jsxs("div", { className: `${i.planTitleRow} ${t.badge ? i.withBadgeSpacing : ""}`, children: [
|
|
216
216
|
/* @__PURE__ */ e.jsx("span", { className: i.planTitle, children: s?.(t.title) ?? t.title }),
|
|
@@ -228,11 +228,11 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
228
228
|
t.originalPrice && /* @__PURE__ */ e.jsx("span", { className: i.originalPrice, children: t.originalPrice }),
|
|
229
229
|
t.savingsLabel && /* @__PURE__ */ e.jsx("span", { className: i.savingsBadge, children: s?.(t.savingsLabel, { percent: 25 }) ?? t.savingsLabel })
|
|
230
230
|
] }),
|
|
231
|
-
/* @__PURE__ */ e.jsx(
|
|
231
|
+
/* @__PURE__ */ e.jsx(la, { features: t.features, t: s }),
|
|
232
232
|
t.astrologers && /* @__PURE__ */ e.jsx("div", { className: i.planDivider }),
|
|
233
233
|
t.astrologers && t.astrologers.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
234
234
|
/* @__PURE__ */ e.jsx("p", { className: i.astrologerHeading, children: s?.("planAstrologerHeading") ?? "We will match you with astrologer who speaks your language" }),
|
|
235
|
-
/* @__PURE__ */ e.jsx("div", { className: i.astrologerList, role: "list", children: t.astrologers.map((u,
|
|
235
|
+
/* @__PURE__ */ e.jsx("div", { className: i.astrologerList, role: "list", children: t.astrologers.map((u, m) => /* @__PURE__ */ e.jsx("div", { role: "listitem", children: /* @__PURE__ */ e.jsx(ra, { astrologer: u, t: s }) }, m)) })
|
|
236
236
|
] })
|
|
237
237
|
] })
|
|
238
238
|
]
|
|
@@ -243,19 +243,19 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
243
243
|
if (!l) return t;
|
|
244
244
|
const n = Number(l[1]), s = l[2], _ = n >= 12 ? "PM" : "AM";
|
|
245
245
|
return `${n % 12 || 12}:${s} ${_}`;
|
|
246
|
-
},
|
|
246
|
+
}, ca = (t, l = /* @__PURE__ */ new Date()) => {
|
|
247
247
|
const n = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], s = /* @__PURE__ */ new Date(`${t}T00:00:00`);
|
|
248
248
|
if (Number.isNaN(s.getTime()))
|
|
249
249
|
return { id: t, dayLabel: t, dayNum: "" };
|
|
250
|
-
const _ = (
|
|
250
|
+
const _ = (m) => new Date(m.getFullYear(), m.getMonth(), m.getDate()).getTime(), g = Math.round(
|
|
251
251
|
(_(s) - _(l)) / (1e3 * 60 * 60 * 24)
|
|
252
|
-
), u =
|
|
252
|
+
), u = g === 0 ? "Today" : g === 1 ? "Tomorrow" : n[s.getDay()];
|
|
253
253
|
return { id: t, dayLabel: u, dayNum: String(s.getDate()) };
|
|
254
|
-
},
|
|
254
|
+
}, da = [
|
|
255
255
|
"morning",
|
|
256
256
|
"afternoon",
|
|
257
257
|
"evening"
|
|
258
|
-
],
|
|
258
|
+
], _a = [
|
|
259
259
|
{ id: "career_work", labelKey: "planTopicCareerWork", label: "Career & work" },
|
|
260
260
|
{ id: "health_wellbeing", labelKey: "planTopicHealthWellbeing", label: "Health & wellbeing" },
|
|
261
261
|
{ id: "love_marriage", labelKey: "planTopicLoveMarriage", label: "Love & marriage" },
|
|
@@ -268,7 +268,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
268
268
|
{ code: "gu", labelKey: "formReportLanguageGujarati", label: "Gujarati" },
|
|
269
269
|
{ code: "mr", labelKey: "formReportLanguageMarathi", label: "Marathi" },
|
|
270
270
|
{ code: "ta", labelKey: "formReportLanguageTamil", label: "Tamil" }
|
|
271
|
-
],
|
|
271
|
+
], ua = {
|
|
272
272
|
en: ["hi", "en"],
|
|
273
273
|
hi: ["hi", "en"],
|
|
274
274
|
te: ["te", "en"],
|
|
@@ -276,7 +276,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
276
276
|
gu: ["gu", "en"],
|
|
277
277
|
mr: ["mr", "hi"],
|
|
278
278
|
ta: ["ta", "en"]
|
|
279
|
-
},
|
|
279
|
+
}, ga = {
|
|
280
280
|
en: ["en", "hi"],
|
|
281
281
|
hi: ["hi", "en"],
|
|
282
282
|
te: ["te", "en"],
|
|
@@ -284,89 +284,89 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
284
284
|
gu: ["gu", "en"],
|
|
285
285
|
mr: ["mr", "en"],
|
|
286
286
|
ta: ["ta", "en"]
|
|
287
|
-
},
|
|
288
|
-
const s = n ?
|
|
289
|
-
(
|
|
287
|
+
}, Ie = (t) => !!t?.days?.some((l) => l.has_availability && l.slots.length > 0), ma = (t, l, n) => {
|
|
288
|
+
const s = n ? ga : ua, [_, g] = s[l || "en"] ?? s.en, u = de.map((h) => h.code).filter(
|
|
289
|
+
(h) => h !== _ && h !== g
|
|
290
290
|
);
|
|
291
|
-
return [_,
|
|
292
|
-
},
|
|
293
|
-
overlay:
|
|
294
|
-
sheet:
|
|
295
|
-
content:
|
|
296
|
-
header:
|
|
297
|
-
backBtn:
|
|
298
|
-
title:
|
|
299
|
-
languageRow:
|
|
300
|
-
languageLabel:
|
|
301
|
-
languageDropdown:
|
|
302
|
-
languageDropdownBtn:
|
|
303
|
-
languageMenu:
|
|
304
|
-
languageMenuItem:
|
|
305
|
-
languageMenuItemSelected:
|
|
306
|
-
languageDivider:
|
|
307
|
-
reportReadyBanner:
|
|
308
|
-
reportReadyDuration:
|
|
309
|
-
trustRow:
|
|
310
|
-
trustAvatars:
|
|
311
|
-
trustText:
|
|
312
|
-
sectionHeading:
|
|
313
|
-
dateTabs:
|
|
314
|
-
dateTabIndicator:
|
|
315
|
-
dateTab:
|
|
316
|
-
dateTabDivider:
|
|
317
|
-
dateTabSelected:
|
|
318
|
-
dateTabLabel:
|
|
319
|
-
dateTabNum:
|
|
320
|
-
periodTabs:
|
|
321
|
-
periodTabIndicator:
|
|
322
|
-
periodTab:
|
|
323
|
-
periodTabSelected:
|
|
324
|
-
timeGrid:
|
|
325
|
-
emptyState:
|
|
326
|
-
timeSlot:
|
|
327
|
-
timeSlotSelected:
|
|
328
|
-
topicGrid:
|
|
329
|
-
topicChip:
|
|
330
|
-
topicChipSelected:
|
|
331
|
-
stateMessage:
|
|
332
|
-
emptyStateIcon:
|
|
333
|
-
emptyStateTitle:
|
|
334
|
-
emptyStateSubtitle:
|
|
335
|
-
loadingWrap:
|
|
336
|
-
skeletonShimmer:
|
|
337
|
-
skeletonDateTabs:
|
|
338
|
-
skeletonDateTab:
|
|
339
|
-
skeletonPeriodTabs:
|
|
340
|
-
skeletonPeriodTab:
|
|
341
|
-
skeletonTimeGrid:
|
|
342
|
-
skeletonTimeSlot:
|
|
343
|
-
retryBtn:
|
|
344
|
-
footer:
|
|
345
|
-
proceedBtn:
|
|
346
|
-
proceedBtnDisabled:
|
|
347
|
-
}, pn = {
|
|
348
|
-
morning: ct,
|
|
349
|
-
afternoon: dt,
|
|
350
|
-
evening: _t
|
|
291
|
+
return [_, g, ...u].find((h) => Ie(t[h])) ?? _;
|
|
292
|
+
}, pa = "_overlay_1mg8x_3", ha = "_sheet_1mg8x_13", fa = "_content_1mg8x_47", ba = "_header_1mg8x_54", ka = "_backBtn_1mg8x_67", xa = "_title_1mg8x_85", va = "_languageRow_1mg8x_101", ya = "_languageLabel_1mg8x_109", ja = "_languageDropdown_1mg8x_115", Ca = "_languageDropdownBtn_1mg8x_119", Sa = "_languageMenu_1mg8x_134", Ta = "_languageMenuItem_1mg8x_151", wa = "_languageMenuItemSelected_1mg8x_165", Na = "_languageDivider_1mg8x_171", La = "_reportReadyBanner_1mg8x_178", Ba = "_reportReadyDuration_1mg8x_187", Da = "_trustRow_1mg8x_193", Pa = "_trustAvatars_1mg8x_204", Ia = "_trustText_1mg8x_217", Ra = "_sectionHeading_1mg8x_328", Aa = "_dateTabs_1mg8x_336", Ea = "_dateTabIndicator_1mg8x_348", Ma = "_dateTab_1mg8x_336", Fa = "_dateTabDivider_1mg8x_382", Oa = "_dateTabSelected_1mg8x_392", $a = "_dateTabLabel_1mg8x_397", Ga = "_dateTabNum_1mg8x_404", Ka = "_periodTabs_1mg8x_418", Ha = "_periodTabIndicator_1mg8x_346", Ua = "_periodTab_1mg8x_346", Va = "_periodTabSelected_1mg8x_465", Wa = "_timeGrid_1mg8x_470", Ya = "_emptyState_1mg8x_498", qa = "_timeSlot_1mg8x_502", za = "_timeSlotSelected_1mg8x_518", Xa = "_topicGrid_1mg8x_526", Za = "_topicChip_1mg8x_532", Ja = "_topicChipSelected_1mg8x_548", Qa = "_stateMessage_1mg8x_555", en = "_emptyStateIcon_1mg8x_575", tn = "_emptyStateTitle_1mg8x_586", an = "_emptyStateSubtitle_1mg8x_593", nn = "_loadingWrap_1mg8x_602", on = "_skeletonShimmer_1mg8x_607", ln = "_skeletonDateTabs_1mg8x_621", rn = "_skeletonDateTab_1mg8x_621", sn = "_skeletonPeriodTabs_1mg8x_635", cn = "_skeletonPeriodTab_1mg8x_635", dn = "_skeletonTimeGrid_1mg8x_650", _n = "_skeletonTimeSlot_1mg8x_656", un = "_retryBtn_1mg8x_661", gn = "_footer_1mg8x_675", mn = "_proceedBtn_1mg8x_682", pn = "_proceedBtnDisabled_1mg8x_700", r = {
|
|
293
|
+
overlay: pa,
|
|
294
|
+
sheet: ha,
|
|
295
|
+
content: fa,
|
|
296
|
+
header: ba,
|
|
297
|
+
backBtn: ka,
|
|
298
|
+
title: xa,
|
|
299
|
+
languageRow: va,
|
|
300
|
+
languageLabel: ya,
|
|
301
|
+
languageDropdown: ja,
|
|
302
|
+
languageDropdownBtn: Ca,
|
|
303
|
+
languageMenu: Sa,
|
|
304
|
+
languageMenuItem: Ta,
|
|
305
|
+
languageMenuItemSelected: wa,
|
|
306
|
+
languageDivider: Na,
|
|
307
|
+
reportReadyBanner: La,
|
|
308
|
+
reportReadyDuration: Ba,
|
|
309
|
+
trustRow: Da,
|
|
310
|
+
trustAvatars: Pa,
|
|
311
|
+
trustText: Ia,
|
|
312
|
+
sectionHeading: Ra,
|
|
313
|
+
dateTabs: Aa,
|
|
314
|
+
dateTabIndicator: Ea,
|
|
315
|
+
dateTab: Ma,
|
|
316
|
+
dateTabDivider: Fa,
|
|
317
|
+
dateTabSelected: Oa,
|
|
318
|
+
dateTabLabel: $a,
|
|
319
|
+
dateTabNum: Ga,
|
|
320
|
+
periodTabs: Ka,
|
|
321
|
+
periodTabIndicator: Ha,
|
|
322
|
+
periodTab: Ua,
|
|
323
|
+
periodTabSelected: Va,
|
|
324
|
+
timeGrid: Wa,
|
|
325
|
+
emptyState: Ya,
|
|
326
|
+
timeSlot: qa,
|
|
327
|
+
timeSlotSelected: za,
|
|
328
|
+
topicGrid: Xa,
|
|
329
|
+
topicChip: Za,
|
|
330
|
+
topicChipSelected: Ja,
|
|
331
|
+
stateMessage: Qa,
|
|
332
|
+
emptyStateIcon: en,
|
|
333
|
+
emptyStateTitle: tn,
|
|
334
|
+
emptyStateSubtitle: an,
|
|
335
|
+
loadingWrap: nn,
|
|
336
|
+
skeletonShimmer: on,
|
|
337
|
+
skeletonDateTabs: ln,
|
|
338
|
+
skeletonDateTab: rn,
|
|
339
|
+
skeletonPeriodTabs: sn,
|
|
340
|
+
skeletonPeriodTab: cn,
|
|
341
|
+
skeletonTimeGrid: dn,
|
|
342
|
+
skeletonTimeSlot: _n,
|
|
343
|
+
retryBtn: un,
|
|
344
|
+
footer: gn,
|
|
345
|
+
proceedBtn: mn,
|
|
346
|
+
proceedBtnDisabled: pn
|
|
351
347
|
}, hn = {
|
|
348
|
+
morning: dt,
|
|
349
|
+
afternoon: _t,
|
|
350
|
+
evening: ut
|
|
351
|
+
}, fn = {
|
|
352
352
|
morning: "planPeriodMorning",
|
|
353
353
|
afternoon: "planPeriodAfternoon",
|
|
354
354
|
evening: "planPeriodEvening"
|
|
355
|
-
}, je = (t) => de.find((l) => l.code === t)?.label ?? t,
|
|
355
|
+
}, je = (t) => de.find((l) => l.code === t)?.label ?? t, bn = (t) => {
|
|
356
356
|
const l = t.match(/([+-]\d{2}:\d{2})$/);
|
|
357
357
|
return l ? `GMT${l[1]}` : t.endsWith("Z") ? "GMT+00:00" : "";
|
|
358
|
-
},
|
|
358
|
+
}, kn = ({
|
|
359
359
|
onProceed: t,
|
|
360
360
|
astrologers: l,
|
|
361
361
|
t: n,
|
|
362
362
|
analytics: s,
|
|
363
363
|
reportLanguage: _,
|
|
364
|
-
isPostPayment:
|
|
364
|
+
isPostPayment: g = !1,
|
|
365
365
|
showGuidanceTopic: u,
|
|
366
|
-
hideFooter:
|
|
367
|
-
onStateChange:
|
|
366
|
+
hideFooter: m = !1,
|
|
367
|
+
onStateChange: h
|
|
368
368
|
}) => {
|
|
369
|
-
const F = u ?? !
|
|
369
|
+
const F = u ?? !g, I = xe(), T = I?.config.imageComponent ?? Le, b = I?.config.fetchConsultationSlots, R = I?.config.isGlobal ?? !0, c = _ ?? I?.formValues?.language_code, k = g ? "post_payment" : "pre_payment", [d, L] = y(!1), [K, X] = y(!1), [x, A] = y({}), [f, H] = y("en"), [W, Y] = y(!1), J = j(null), ae = ie(
|
|
370
370
|
() => x[f]?.days ?? [],
|
|
371
371
|
[x, f]
|
|
372
372
|
), [P, _e] = y(""), [O, q] = y(""), [v, ne] = y("morning"), [S, U] = y(null), oe = j(!1), Q = j(null), ue = j({}), [z, ge] = y(null), ee = j(null), Z = j(
|
|
@@ -376,16 +376,16 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
376
376
|
[ae]
|
|
377
377
|
), pe = ce(() => {
|
|
378
378
|
b && (L(!0), X(!1), b().then((a) => {
|
|
379
|
-
const o = a ?? {},
|
|
379
|
+
const o = a ?? {}, p = ma(
|
|
380
380
|
o,
|
|
381
381
|
c,
|
|
382
382
|
R
|
|
383
383
|
);
|
|
384
|
-
A(o), H(
|
|
385
|
-
language: je(
|
|
384
|
+
A(o), H(p), s?.trackConsultationLanguageDefaultSelected?.({
|
|
385
|
+
language: je(p),
|
|
386
386
|
status: k
|
|
387
387
|
});
|
|
388
|
-
const $ = (o[
|
|
388
|
+
const $ = (o[p]?.days ?? []).filter(
|
|
389
389
|
(D) => D.has_availability && D.slots.length > 0
|
|
390
390
|
).length;
|
|
391
391
|
s?.trackAstrologerAvailabilityServed?.({
|
|
@@ -415,7 +415,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
415
415
|
date: a.date,
|
|
416
416
|
status: k
|
|
417
417
|
}), q(
|
|
418
|
-
(o) => w.some((
|
|
418
|
+
(o) => w.some((p) => p.date === o) ? o : a.date
|
|
419
419
|
);
|
|
420
420
|
}, [w]);
|
|
421
421
|
const N = ie(
|
|
@@ -424,7 +424,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
424
424
|
), V = ie(() => {
|
|
425
425
|
if (!N) return [];
|
|
426
426
|
const a = new Set(N.slots.map((o) => o.period));
|
|
427
|
-
return
|
|
427
|
+
return da.filter((o) => a.has(o));
|
|
428
428
|
}, [N]);
|
|
429
429
|
C(() => {
|
|
430
430
|
if (!V.length) {
|
|
@@ -438,12 +438,12 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
438
438
|
const E = ie(() => N ? N.slots.filter((a) => a.period === v) : [], [N, v]);
|
|
439
439
|
C(() => {
|
|
440
440
|
const a = () => {
|
|
441
|
-
const o = Q.current,
|
|
442
|
-
if (!o || !
|
|
441
|
+
const o = Q.current, p = ue.current[O];
|
|
442
|
+
if (!o || !p) {
|
|
443
443
|
ge(null);
|
|
444
444
|
return;
|
|
445
445
|
}
|
|
446
|
-
const $ = o.getBoundingClientRect(), D =
|
|
446
|
+
const $ = o.getBoundingClientRect(), D = p.getBoundingClientRect();
|
|
447
447
|
ge({
|
|
448
448
|
left: D.left - $.left,
|
|
449
449
|
top: D.top - $.top,
|
|
@@ -454,12 +454,12 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
454
454
|
return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
|
|
455
455
|
}, [O, w]), C(() => {
|
|
456
456
|
const a = () => {
|
|
457
|
-
const o = ee.current,
|
|
458
|
-
if (!o || !
|
|
457
|
+
const o = ee.current, p = Z.current[v];
|
|
458
|
+
if (!o || !p) {
|
|
459
459
|
me(null);
|
|
460
460
|
return;
|
|
461
461
|
}
|
|
462
|
-
const $ = o.getBoundingClientRect(), D =
|
|
462
|
+
const $ = o.getBoundingClientRect(), D = p.getBoundingClientRect();
|
|
463
463
|
me({
|
|
464
464
|
left: D.left - $.left,
|
|
465
465
|
width: D.width
|
|
@@ -475,12 +475,12 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
475
475
|
const o = E[0];
|
|
476
476
|
s?.trackConsultationTimeDefaultSelected?.({
|
|
477
477
|
time: ye(o.start),
|
|
478
|
-
gmt_offset:
|
|
478
|
+
gmt_offset: bn(o.start),
|
|
479
479
|
status: k
|
|
480
480
|
});
|
|
481
481
|
}
|
|
482
482
|
U(
|
|
483
|
-
(o) => o && E.some((
|
|
483
|
+
(o) => o && E.some((p) => p.start === o.start) ? o : E[0]
|
|
484
484
|
);
|
|
485
485
|
}, [E]), C(() => {
|
|
486
486
|
w.length && !oe.current && (s?.trackSlotScreenViewed?.({
|
|
@@ -522,15 +522,15 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
522
522
|
}));
|
|
523
523
|
}, he = j(se);
|
|
524
524
|
he.current = se, C(() => {
|
|
525
|
-
|
|
526
|
-
}, [B,
|
|
525
|
+
h?.({ canProceed: B, proceed: () => he.current() });
|
|
526
|
+
}, [B, h]);
|
|
527
527
|
const fe = (a) => {
|
|
528
528
|
_e(a), s?.trackGuidanceTopicSelected?.({ topic: a, status: k });
|
|
529
529
|
}, be = (a) => {
|
|
530
530
|
s?.trackConsultationLanguageChanged?.({
|
|
531
531
|
previous_language: je(f),
|
|
532
532
|
new_language: je(a),
|
|
533
|
-
slots_available:
|
|
533
|
+
slots_available: Ie(x[a]) ? "yes" : "no",
|
|
534
534
|
status: k
|
|
535
535
|
}), H(a), Y(!1);
|
|
536
536
|
}, ke = de.find((a) => a.code === f) ?? de[0];
|
|
@@ -549,7 +549,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
549
549
|
"aria-expanded": W,
|
|
550
550
|
children: [
|
|
551
551
|
n?.(ke.labelKey) ?? ke.label,
|
|
552
|
-
/* @__PURE__ */ e.jsx(
|
|
552
|
+
/* @__PURE__ */ e.jsx(it, {})
|
|
553
553
|
]
|
|
554
554
|
}
|
|
555
555
|
),
|
|
@@ -567,7 +567,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
567
567
|
onClick: () => be(a.code),
|
|
568
568
|
children: [
|
|
569
569
|
n?.(a.labelKey) ?? a.label,
|
|
570
|
-
o && /* @__PURE__ */ e.jsx(
|
|
570
|
+
o && /* @__PURE__ */ e.jsx(Pe, {})
|
|
571
571
|
]
|
|
572
572
|
},
|
|
573
573
|
a.code
|
|
@@ -612,7 +612,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
612
612
|
/* @__PURE__ */ e.jsx("button", { type: "button", className: r.retryBtn, onClick: pe, children: n?.("planRetry") ?? "Retry" })
|
|
613
613
|
] }),
|
|
614
614
|
!d && !K && w.length === 0 && /* @__PURE__ */ e.jsxs("div", { className: r.emptyState, children: [
|
|
615
|
-
/* @__PURE__ */ e.jsx("span", { className: r.emptyStateIcon, children: /* @__PURE__ */ e.jsx(
|
|
615
|
+
/* @__PURE__ */ e.jsx("span", { className: r.emptyStateIcon, children: /* @__PURE__ */ e.jsx(gt, {}) }),
|
|
616
616
|
/* @__PURE__ */ e.jsx("p", { className: r.emptyStateTitle, children: n?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
|
|
617
617
|
/* @__PURE__ */ e.jsx("p", { className: r.emptyStateSubtitle, children: n?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
|
|
618
618
|
] }),
|
|
@@ -631,8 +631,8 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
631
631
|
}
|
|
632
632
|
),
|
|
633
633
|
w.map((a) => {
|
|
634
|
-
const o = a.date === O, { dayLabel:
|
|
635
|
-
return /* @__PURE__ */ e.jsxs(
|
|
634
|
+
const o = a.date === O, { dayLabel: p, dayNum: $ } = ca(a.date);
|
|
635
|
+
return /* @__PURE__ */ e.jsxs(He, { children: [
|
|
636
636
|
/* @__PURE__ */ e.jsxs(
|
|
637
637
|
"button",
|
|
638
638
|
{
|
|
@@ -648,7 +648,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
648
648
|
"aria-checked": o,
|
|
649
649
|
onClick: () => ve(a.date),
|
|
650
650
|
children: [
|
|
651
|
-
/* @__PURE__ */ e.jsx("span", { className: r.dateTabLabel, children: n?.(
|
|
651
|
+
/* @__PURE__ */ e.jsx("span", { className: r.dateTabLabel, children: n?.(p) ?? p }),
|
|
652
652
|
/* @__PURE__ */ e.jsx("span", { className: r.dateTabNum, children: $ })
|
|
653
653
|
]
|
|
654
654
|
}
|
|
@@ -670,7 +670,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
670
670
|
}
|
|
671
671
|
),
|
|
672
672
|
V.map((a) => {
|
|
673
|
-
const o =
|
|
673
|
+
const o = hn[a], p = a === "evening" && R ? "planPeriodEveningNight" : fn[a];
|
|
674
674
|
return /* @__PURE__ */ e.jsxs(
|
|
675
675
|
"button",
|
|
676
676
|
{
|
|
@@ -687,7 +687,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
687
687
|
onClick: () => te(a),
|
|
688
688
|
children: [
|
|
689
689
|
/* @__PURE__ */ e.jsx(o, {}),
|
|
690
|
-
n?.(
|
|
690
|
+
n?.(p) ?? (a === "evening" && R ? "Evening/Night" : a.charAt(0).toUpperCase() + a.slice(1))
|
|
691
691
|
]
|
|
692
692
|
},
|
|
693
693
|
a
|
|
@@ -721,7 +721,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
721
721
|
] }),
|
|
722
722
|
F && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
723
723
|
/* @__PURE__ */ e.jsx("p", { className: r.sectionHeading, children: n?.("planGuidanceHeading") ?? "What would you like guidance on?" }),
|
|
724
|
-
/* @__PURE__ */ e.jsx("div", { className: r.topicGrid, role: "radiogroup", "aria-label": "Guidance topic", children:
|
|
724
|
+
/* @__PURE__ */ e.jsx("div", { className: r.topicGrid, role: "radiogroup", "aria-label": "Guidance topic", children: _a.map((a) => /* @__PURE__ */ e.jsx(
|
|
725
725
|
"button",
|
|
726
726
|
{
|
|
727
727
|
type: "button",
|
|
@@ -738,7 +738,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
738
738
|
)) })
|
|
739
739
|
] })
|
|
740
740
|
] }),
|
|
741
|
-
!
|
|
741
|
+
!m && /* @__PURE__ */ e.jsxs("div", { className: r.footer, children: [
|
|
742
742
|
/* @__PURE__ */ e.jsxs("div", { className: r.trustRow, children: [
|
|
743
743
|
/* @__PURE__ */ e.jsx("div", { className: r.trustAvatars, "aria-hidden": !0, children: /* @__PURE__ */ e.jsx(
|
|
744
744
|
T,
|
|
@@ -761,12 +761,12 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
761
761
|
className: [r.proceedBtn, B ? "" : r.proceedBtnDisabled].filter(Boolean).join(" "),
|
|
762
762
|
disabled: !B,
|
|
763
763
|
onClick: se,
|
|
764
|
-
children:
|
|
764
|
+
children: g ? n?.("planBookSlot") ?? "Book Slot" : n?.("planProceedToPayment") ?? "Proceed to payment"
|
|
765
765
|
}
|
|
766
766
|
)
|
|
767
767
|
] })
|
|
768
768
|
] });
|
|
769
|
-
},
|
|
769
|
+
}, xn = ({
|
|
770
770
|
isOpen: t,
|
|
771
771
|
onClose: l,
|
|
772
772
|
t: n,
|
|
@@ -792,10 +792,10 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
792
792
|
),
|
|
793
793
|
/* @__PURE__ */ e.jsx("h2", { className: r.title, children: n?.("planConsultationSlotTitle") ?? "Select consultation slot" })
|
|
794
794
|
] }),
|
|
795
|
-
/* @__PURE__ */ e.jsx(
|
|
795
|
+
/* @__PURE__ */ e.jsx(kn, { t: n, ...s })
|
|
796
796
|
] })
|
|
797
797
|
}
|
|
798
|
-
) : null,
|
|
798
|
+
) : null, vn = [
|
|
799
799
|
{
|
|
800
800
|
id: "samiksha",
|
|
801
801
|
name: "planAstrologerNameSamiksha",
|
|
@@ -813,7 +813,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
813
813
|
experience: "planAstrologerExpNeeraj",
|
|
814
814
|
certifications: ["planAstrologerCertBhuCertified", "planAstrologerCertMantraRudraksha"]
|
|
815
815
|
}
|
|
816
|
-
],
|
|
816
|
+
], yn = (t) => [
|
|
817
817
|
{
|
|
818
818
|
id: "kundli-report",
|
|
819
819
|
title: "planNameBasic",
|
|
@@ -839,39 +839,39 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
839
839
|
{ text: "planFeatureRealTimeAnswers", included: !0 },
|
|
840
840
|
{ text: "planFeatureTailoredRemedies", included: !0 }
|
|
841
841
|
],
|
|
842
|
-
astrologers:
|
|
842
|
+
astrologers: vn.filter(
|
|
843
843
|
(l) => ["samiksha", "neeraj", "ashwini"].includes(l.id)
|
|
844
844
|
)
|
|
845
845
|
}
|
|
846
|
-
],
|
|
846
|
+
], jn = ({
|
|
847
847
|
isOpen: t,
|
|
848
848
|
onClose: l,
|
|
849
849
|
selectedPlan: n,
|
|
850
850
|
onSelectPlan: s,
|
|
851
851
|
plans: _,
|
|
852
|
-
onProceed:
|
|
852
|
+
onProceed: g,
|
|
853
853
|
t: u,
|
|
854
|
-
analytics:
|
|
855
|
-
enableConsultationScheduling:
|
|
854
|
+
analytics: m,
|
|
855
|
+
enableConsultationScheduling: h
|
|
856
856
|
}) => {
|
|
857
|
-
const F = xe(), I = F?.config.isGlobal ?? !0, T =
|
|
857
|
+
const F = xe(), I = F?.config.isGlobal ?? !0, T = h ?? F?.config.enableConsultationScheduling ?? !1, b = _ ?? yn(I), R = n?.id || b.find((x) => x.badge)?.id || b[0]?.id || "", c = j(null), k = j(null), d = j(!1), [L, K] = y(!1);
|
|
858
858
|
C(() => {
|
|
859
859
|
if (t) {
|
|
860
860
|
if (!n) {
|
|
861
861
|
const x = b.find((A) => A.badge) ?? b[0];
|
|
862
862
|
x && s(x);
|
|
863
863
|
}
|
|
864
|
-
d.current || (
|
|
864
|
+
d.current || (m?.trackPlanPageViewed?.(), T && m?.trackPlanScreenViewed?.({
|
|
865
865
|
plans_shown: b.map((x) => x.id),
|
|
866
866
|
default_selected_plan: n?.id || b.find((x) => x.badge)?.id || b[0]?.id || ""
|
|
867
867
|
}), d.current = !0);
|
|
868
868
|
} else
|
|
869
869
|
d.current = !1;
|
|
870
|
-
}, [t, b, n, s,
|
|
870
|
+
}, [t, b, n, s, m]);
|
|
871
871
|
const X = () => {
|
|
872
|
-
|
|
872
|
+
m?.trackPlanPageClosed?.(), l();
|
|
873
873
|
};
|
|
874
|
-
return
|
|
874
|
+
return De(t), t ? Be(
|
|
875
875
|
/* @__PURE__ */ e.jsxs(
|
|
876
876
|
"div",
|
|
877
877
|
{
|
|
@@ -899,7 +899,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
899
899
|
),
|
|
900
900
|
/* @__PURE__ */ e.jsx("h2", { className: i.titleFull, children: u?.("planSheetTitle") ?? "Choose Your Kundli Plan" })
|
|
901
901
|
] }) : /* @__PURE__ */ e.jsx(
|
|
902
|
-
|
|
902
|
+
oa,
|
|
903
903
|
{
|
|
904
904
|
title: u?.("planSheetTitle") ?? "Choose Your Kundli Plan",
|
|
905
905
|
onBack: X
|
|
@@ -913,14 +913,14 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
913
913
|
role: "radiogroup",
|
|
914
914
|
"aria-label": "Kundli plans",
|
|
915
915
|
children: b.map((x) => /* @__PURE__ */ e.jsx(
|
|
916
|
-
|
|
916
|
+
ia,
|
|
917
917
|
{
|
|
918
918
|
plan: x,
|
|
919
919
|
isSelected: x.id === R,
|
|
920
920
|
t: u,
|
|
921
921
|
onSelect: (A) => {
|
|
922
922
|
const f = b.find((H) => H.id === A);
|
|
923
|
-
f && (
|
|
923
|
+
f && (m?.trackPlanSelected?.({
|
|
924
924
|
planId: f.id,
|
|
925
925
|
planName: f.title,
|
|
926
926
|
...T ? {
|
|
@@ -943,10 +943,10 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
943
943
|
onClick: () => {
|
|
944
944
|
if (n) {
|
|
945
945
|
if (T && n.astrologers && n.astrologers.length > 0) {
|
|
946
|
-
|
|
946
|
+
m?.trackSelectConsultationSlotClicked?.({
|
|
947
947
|
planId: n.id,
|
|
948
948
|
planName: n.title
|
|
949
|
-
}),
|
|
949
|
+
}), m?.trackPlanProceedClicked?.({
|
|
950
950
|
planId: n.id,
|
|
951
951
|
planName: n.title,
|
|
952
952
|
cta_type: "confirm_consultation_slot",
|
|
@@ -954,11 +954,11 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
954
954
|
}), K(!0);
|
|
955
955
|
return;
|
|
956
956
|
}
|
|
957
|
-
|
|
957
|
+
m?.trackPlanProceedClicked?.({
|
|
958
958
|
planId: n.id,
|
|
959
959
|
planName: n.title,
|
|
960
960
|
...T ? { cta_type: "proceed", next_step: "payment" } : {}
|
|
961
|
-
}),
|
|
961
|
+
}), g(n), l();
|
|
962
962
|
}
|
|
963
963
|
},
|
|
964
964
|
children: n ? T && n.astrologers && n.astrologers.length > 0 ? u?.("planSelectConsultationSlot") ?? "Select consultation slot →" : u?.("planProceedToPayment") ?? n.price + "Proceed to Payment" : "Select a plan"
|
|
@@ -968,20 +968,20 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
968
968
|
}
|
|
969
969
|
),
|
|
970
970
|
T && n?.astrologers && n.astrologers.length > 0 && /* @__PURE__ */ e.jsx(
|
|
971
|
-
|
|
971
|
+
xn,
|
|
972
972
|
{
|
|
973
973
|
isOpen: L,
|
|
974
974
|
onClose: () => K(!1),
|
|
975
975
|
astrologers: n.astrologers,
|
|
976
976
|
t: u,
|
|
977
|
-
analytics:
|
|
977
|
+
analytics: m,
|
|
978
978
|
onProceed: (x) => {
|
|
979
|
-
|
|
979
|
+
m?.trackPlanProceedClicked?.({
|
|
980
980
|
planId: n.id,
|
|
981
981
|
planName: n.title,
|
|
982
982
|
cta_type: "proceed",
|
|
983
983
|
next_step: "payment"
|
|
984
|
-
}),
|
|
984
|
+
}), g(n, x), K(!1), l();
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
)
|
|
@@ -990,19 +990,19 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
990
990
|
),
|
|
991
991
|
document.body
|
|
992
992
|
) : null;
|
|
993
|
-
},
|
|
994
|
-
overlay:
|
|
995
|
-
sheet:
|
|
996
|
-
title:
|
|
997
|
-
columns:
|
|
998
|
-
column:
|
|
999
|
-
row:
|
|
1000
|
-
rowLabel:
|
|
1001
|
-
rowValue:
|
|
1002
|
-
actions:
|
|
1003
|
-
editBtn:
|
|
1004
|
-
confirmBtn:
|
|
1005
|
-
},
|
|
993
|
+
}, Cn = "_overlay_i0ykt_3", Sn = "_sheet_i0ykt_14", Tn = "_title_i0ykt_40", wn = "_columns_i0ykt_50", Nn = "_column_i0ykt_50", Ln = "_row_i0ykt_63", Bn = "_rowLabel_i0ykt_70", Dn = "_rowValue_i0ykt_76", Pn = "_actions_i0ykt_85", In = "_editBtn_i0ykt_90", Rn = "_confirmBtn_i0ykt_91", M = {
|
|
994
|
+
overlay: Cn,
|
|
995
|
+
sheet: Sn,
|
|
996
|
+
title: Tn,
|
|
997
|
+
columns: wn,
|
|
998
|
+
column: Nn,
|
|
999
|
+
row: Ln,
|
|
1000
|
+
rowLabel: Bn,
|
|
1001
|
+
rowValue: Dn,
|
|
1002
|
+
actions: Pn,
|
|
1003
|
+
editBtn: In,
|
|
1004
|
+
confirmBtn: Rn
|
|
1005
|
+
}, An = {
|
|
1006
1006
|
hi: "formReportLanguageHindi",
|
|
1007
1007
|
en: "formReportLanguageEnglish",
|
|
1008
1008
|
te: "formReportLanguageTelugu",
|
|
@@ -1010,16 +1010,16 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1010
1010
|
kn: "formReportLanguageKannada",
|
|
1011
1011
|
gu: "formReportLanguageGujarati",
|
|
1012
1012
|
mr: "formReportLanguageMarathi"
|
|
1013
|
-
},
|
|
1013
|
+
}, En = ({
|
|
1014
1014
|
values: t,
|
|
1015
1015
|
birthTimeFormat: l,
|
|
1016
1016
|
t: n,
|
|
1017
1017
|
onClose: s,
|
|
1018
1018
|
onEdit: _,
|
|
1019
|
-
onConfirm:
|
|
1019
|
+
onConfirm: g
|
|
1020
1020
|
}) => {
|
|
1021
|
-
if (
|
|
1022
|
-
const u = t.birthTimeUnknown ? n("birthDetailsTimeUnknown") : l === "24h" ? t.birthTime :
|
|
1021
|
+
if (De(!!t), !t) return null;
|
|
1022
|
+
const u = t.birthTimeUnknown ? n("birthDetailsTimeUnknown") : l === "24h" ? t.birthTime : Re(t.birthTime), m = [
|
|
1023
1023
|
[n("birthDetailsLabelFullName"), t.fullName],
|
|
1024
1024
|
// Submitted phone is "+91-9876543210".
|
|
1025
1025
|
[n("birthDetailsLabelPhone"), t.phone?.replace("-", " ")],
|
|
@@ -1030,17 +1030,17 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1030
1030
|
],
|
|
1031
1031
|
[
|
|
1032
1032
|
n("formReportLanguage"),
|
|
1033
|
-
t.language_code && n(
|
|
1033
|
+
t.language_code && n(An[t.language_code])
|
|
1034
1034
|
]
|
|
1035
|
-
],
|
|
1036
|
-
[n("birthDetailsLabelDob"),
|
|
1035
|
+
], h = [
|
|
1036
|
+
[n("birthDetailsLabelDob"), Ae(t.dateOfBirth)],
|
|
1037
1037
|
[n("birthDetailsLabelBirthTime"), u],
|
|
1038
1038
|
[n("birthDetailsLabelBirthPlace"), t.birthPlace]
|
|
1039
1039
|
], F = (T) => /* @__PURE__ */ e.jsx("dl", { className: M.column, children: T.filter(([, b]) => b).map(([b, R]) => /* @__PURE__ */ e.jsxs("div", { className: M.row, children: [
|
|
1040
1040
|
/* @__PURE__ */ e.jsx("dt", { className: M.rowLabel, children: b }),
|
|
1041
1041
|
/* @__PURE__ */ e.jsx("dd", { className: M.rowValue, children: R })
|
|
1042
1042
|
] }, b)) }), I = n("birthDetailsConfirmTitle");
|
|
1043
|
-
return
|
|
1043
|
+
return Be(
|
|
1044
1044
|
/* @__PURE__ */ e.jsx("div", { className: M.overlay, onClick: s, children: /* @__PURE__ */ e.jsxs(
|
|
1045
1045
|
"div",
|
|
1046
1046
|
{
|
|
@@ -1052,54 +1052,57 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1052
1052
|
children: [
|
|
1053
1053
|
/* @__PURE__ */ e.jsx("h2", { className: M.title, children: I }),
|
|
1054
1054
|
/* @__PURE__ */ e.jsxs("div", { className: M.columns, children: [
|
|
1055
|
-
F(
|
|
1056
|
-
F(
|
|
1055
|
+
F(m),
|
|
1056
|
+
F(h)
|
|
1057
1057
|
] }),
|
|
1058
1058
|
/* @__PURE__ */ e.jsxs("div", { className: M.actions, children: [
|
|
1059
1059
|
/* @__PURE__ */ e.jsx("button", { type: "button", className: M.editBtn, onClick: _, children: n("birthDetailsEdit") }),
|
|
1060
|
-
/* @__PURE__ */ e.jsx("button", { type: "button", className: M.confirmBtn, onClick:
|
|
1060
|
+
/* @__PURE__ */ e.jsx("button", { type: "button", className: M.confirmBtn, onClick: g, children: n("birthDetailsConfirmProceed") })
|
|
1061
1061
|
] })
|
|
1062
1062
|
]
|
|
1063
1063
|
}
|
|
1064
1064
|
) }),
|
|
1065
1065
|
document.body
|
|
1066
1066
|
);
|
|
1067
|
-
},
|
|
1067
|
+
}, Mn = (t, l) => t.dateOfBirth !== l.dateOfBirth || t.birthTime !== l.birthTime || t.birthTimeUnknown !== l.birthTimeUnknown || t.birthPlace !== l.birthPlace, Ne = (t) => ({
|
|
1068
|
+
dob: t.dateOfBirth,
|
|
1069
|
+
tob: t.birthTimeUnknown ? "unknown" : t.birthTime,
|
|
1070
|
+
pob: t.birthPlace,
|
|
1071
|
+
gender: t.gender ?? ""
|
|
1072
|
+
}), Fn = ({
|
|
1068
1073
|
enabled: t,
|
|
1069
1074
|
showPlanSheet: l,
|
|
1070
1075
|
analytics: n
|
|
1071
1076
|
}) => {
|
|
1072
1077
|
const [s, _] = y(
|
|
1073
1078
|
null
|
|
1074
|
-
),
|
|
1079
|
+
), g = j(null);
|
|
1075
1080
|
return { showPlanSheetOrConfirm: ce(
|
|
1076
|
-
(
|
|
1081
|
+
(h) => {
|
|
1077
1082
|
if (!t) {
|
|
1078
|
-
l(
|
|
1083
|
+
l(h);
|
|
1079
1084
|
return;
|
|
1080
1085
|
}
|
|
1081
|
-
_(
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
pob: g.birthPlace,
|
|
1085
|
-
gender: g.gender ?? ""
|
|
1086
|
-
});
|
|
1086
|
+
_(h), n?.trackBirthDetailsConfirmScreenImpression?.(
|
|
1087
|
+
Ne(h)
|
|
1088
|
+
);
|
|
1087
1089
|
},
|
|
1088
1090
|
[t, l, n]
|
|
1089
1091
|
), confirmSheetProps: {
|
|
1090
1092
|
values: s,
|
|
1091
1093
|
onClose: () => _(null),
|
|
1092
1094
|
onEdit: () => {
|
|
1093
|
-
n?.trackBirthDetailsEditClicked?.(),
|
|
1095
|
+
n?.trackBirthDetailsEditClicked?.(), g.current ??= s, _(null);
|
|
1094
1096
|
},
|
|
1095
1097
|
onConfirm: () => {
|
|
1096
|
-
const
|
|
1097
|
-
n?.trackBirthDetailsConfirmClicked?.({
|
|
1098
|
-
edited: !!
|
|
1099
|
-
|
|
1098
|
+
const h = g.current;
|
|
1099
|
+
s && n?.trackBirthDetailsConfirmClicked?.({
|
|
1100
|
+
edited: !!h && Mn(h, s),
|
|
1101
|
+
...Ne(s)
|
|
1102
|
+
}), g.current = null, s && l(s), _(null);
|
|
1100
1103
|
}
|
|
1101
1104
|
} };
|
|
1102
|
-
},
|
|
1105
|
+
}, On = "https://srm-cdn.a4b.io/yoda/1770362713543.svg", $n = (t, l) => Ke[t]?.[l] ?? l, Gn = (t, l) => t && Ce.includes(t) ? t : l ? "+1" : "+91", Kn = {
|
|
1103
1106
|
fullName: "",
|
|
1104
1107
|
phone: "",
|
|
1105
1108
|
phoneCountryCode: "",
|
|
@@ -1110,23 +1113,23 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1110
1113
|
birthTime: "",
|
|
1111
1114
|
birthTimeUnknown: !1,
|
|
1112
1115
|
birthPlace: ""
|
|
1113
|
-
},
|
|
1116
|
+
}, Yn = ({
|
|
1114
1117
|
className: t = "",
|
|
1115
1118
|
locale: l,
|
|
1116
1119
|
showLanguageSelector: n = !0,
|
|
1117
1120
|
onBack: s,
|
|
1118
1121
|
initialValues: _,
|
|
1119
|
-
onProceed:
|
|
1122
|
+
onProceed: g,
|
|
1120
1123
|
onProceedGuidance: u,
|
|
1121
|
-
proceedHref:
|
|
1122
|
-
originalPriceLabel:
|
|
1124
|
+
proceedHref: m,
|
|
1125
|
+
originalPriceLabel: h,
|
|
1123
1126
|
discountedPriceLabel: F,
|
|
1124
1127
|
googleMapsApiKey: I = "",
|
|
1125
1128
|
atlasSearchLocalities: T,
|
|
1126
1129
|
googleMapsAutocompleteEnabled: b,
|
|
1127
1130
|
analytics: R
|
|
1128
1131
|
}) => {
|
|
1129
|
-
const c = xe(), k =
|
|
1132
|
+
const c = xe(), k = Ee(), d = c !== null, L = d ? c.locale : l, K = L ?? k?.locale ?? "en", [X, x] = y(K), A = d ? c.locale : X, f = d ? c.setLocale : x, [H, W] = y(!1), Y = j(null), J = j(
|
|
1130
1133
|
L
|
|
1131
1134
|
), ae = j(
|
|
1132
1135
|
k?.locale
|
|
@@ -1134,7 +1137,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1134
1137
|
C(() => {
|
|
1135
1138
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
|
|
1136
1139
|
}, []);
|
|
1137
|
-
const P = (o) =>
|
|
1140
|
+
const P = (o) => $n(A, o);
|
|
1138
1141
|
C(() => {
|
|
1139
1142
|
L && J.current !== L && f(L), J.current = L;
|
|
1140
1143
|
}, [L, f]), C(() => {
|
|
@@ -1143,11 +1146,11 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1143
1146
|
o && ae.current !== o && f(o), ae.current = o;
|
|
1144
1147
|
}, [k?.locale, L, f]);
|
|
1145
1148
|
const [_e, O] = y({
|
|
1146
|
-
...
|
|
1149
|
+
...Kn,
|
|
1147
1150
|
..._,
|
|
1148
1151
|
phone: _?.phone ?? ""
|
|
1149
1152
|
}), q = d ? c?.config.isGlobal ?? !0 : !0, v = d ? c.formValues : _e, ne = d ? c.setFormValues : O, [S, U] = y(
|
|
1150
|
-
() =>
|
|
1153
|
+
() => Gn(v.phoneCountryCode, q)
|
|
1151
1154
|
), oe = j(
|
|
1152
1155
|
!!(v.phoneCountryCode && Ce.includes(v.phoneCountryCode))
|
|
1153
1156
|
), Q = j(!1), ue = ce((o) => {
|
|
@@ -1164,17 +1167,17 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1164
1167
|
const o = v.phoneCountryCode;
|
|
1165
1168
|
o && Ce.includes(o) && o !== S && (oe.current = !0, U(o));
|
|
1166
1169
|
}, [d, v.phoneCountryCode]);
|
|
1167
|
-
const ge = d ? c.goToPage : s, ee = d ? c.onProceed :
|
|
1170
|
+
const ge = d ? c.goToPage : s, ee = d ? c.onProceed : g, Z = d ? c.onProceedGuidance : u, le = d ? c.config.proceedHref : m, me = d ? c.config.originalPriceLabel : h, w = d ? c.config.discountedPriceLabel : F, pe = d ? c.config.showLanguageSelector ?? !0 : n, N = (d ? c?.config?.analytics : R) ?? R;
|
|
1168
1171
|
C(() => {
|
|
1169
1172
|
if (!H) return;
|
|
1170
|
-
const o = (
|
|
1171
|
-
Y.current && !Y.current.contains(
|
|
1173
|
+
const o = (p) => {
|
|
1174
|
+
Y.current && !Y.current.contains(p.target) && W(!1);
|
|
1172
1175
|
};
|
|
1173
1176
|
return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
|
|
1174
1177
|
}, [H]);
|
|
1175
1178
|
const [V, E] = y(!1), [B, ve] = y(null), te = j(null), re = ce((o) => {
|
|
1176
1179
|
te.current = o, E(!0);
|
|
1177
|
-
}, []), { showPlanSheetOrConfirm: se, confirmSheetProps: he } =
|
|
1180
|
+
}, []), { showPlanSheetOrConfirm: se, confirmSheetProps: he } = Fn({
|
|
1178
1181
|
enabled: !!c?.config.enableBirthDetailsConfirmation,
|
|
1179
1182
|
showPlanSheet: re,
|
|
1180
1183
|
analytics: N
|
|
@@ -1184,11 +1187,11 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1184
1187
|
return;
|
|
1185
1188
|
fe.current = !0;
|
|
1186
1189
|
const o = v.email.trim();
|
|
1187
|
-
if (o && !
|
|
1188
|
-
const
|
|
1190
|
+
if (o && !Me(o)) return;
|
|
1191
|
+
const p = (v.phone ?? "").trim();
|
|
1189
1192
|
re({
|
|
1190
1193
|
...v,
|
|
1191
|
-
phone:
|
|
1194
|
+
phone: p && `${S}-${p}`
|
|
1192
1195
|
});
|
|
1193
1196
|
}, [d, c?.config.autoOpenPlanSheet, c?.config.variant, v, S, re]);
|
|
1194
1197
|
const be = ce(() => {
|
|
@@ -1200,8 +1203,8 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1200
1203
|
currency: q ? "USD" : "INR"
|
|
1201
1204
|
});
|
|
1202
1205
|
const o = { ...te.current, _selectedPlan: B };
|
|
1203
|
-
B.id ===
|
|
1204
|
-
}, [B, ee, Z]), ke = c?.config.imageComponent ??
|
|
1206
|
+
B.id === Fe && Z ? Z(o) : ee?.(o), E(!1), te.current = null;
|
|
1207
|
+
}, [B, ee, Z]), ke = c?.config.imageComponent ?? Le, a = pe ? /* @__PURE__ */ e.jsxs("div", { className: G.langDropdownWrap, ref: Y, children: [
|
|
1205
1208
|
/* @__PURE__ */ e.jsxs(
|
|
1206
1209
|
"button",
|
|
1207
1210
|
{
|
|
@@ -1218,7 +1221,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1218
1221
|
/* @__PURE__ */ e.jsx(
|
|
1219
1222
|
ke,
|
|
1220
1223
|
{
|
|
1221
|
-
src:
|
|
1224
|
+
src: On,
|
|
1222
1225
|
alt: "",
|
|
1223
1226
|
className: G.langIcon,
|
|
1224
1227
|
width: 16,
|
|
@@ -1237,7 +1240,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1237
1240
|
role: "listbox",
|
|
1238
1241
|
"aria-labelledby": "kundli-form-lang",
|
|
1239
1242
|
"aria-activedescendant": `kundli-form-lang-option-${A}`,
|
|
1240
|
-
children:
|
|
1243
|
+
children: Oe.map((o) => /* @__PURE__ */ e.jsx(
|
|
1241
1244
|
"li",
|
|
1242
1245
|
{
|
|
1243
1246
|
id: `kundli-form-lang-option-${o}`,
|
|
@@ -1256,7 +1259,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1256
1259
|
] }) : null;
|
|
1257
1260
|
return /* @__PURE__ */ e.jsxs("div", { className: `${G.container} ${t}`, children: [
|
|
1258
1261
|
/* @__PURE__ */ e.jsx(
|
|
1259
|
-
|
|
1262
|
+
rt,
|
|
1260
1263
|
{
|
|
1261
1264
|
t: P,
|
|
1262
1265
|
logoUrl: d ? c.config.logoUrl : void 0,
|
|
@@ -1266,9 +1269,9 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1266
1269
|
),
|
|
1267
1270
|
/* @__PURE__ */ e.jsx("div", { className: G.headerSeparator, "aria-hidden": !0 }),
|
|
1268
1271
|
/* @__PURE__ */ e.jsxs("main", { className: G.main, children: [
|
|
1269
|
-
/* @__PURE__ */ e.jsx(
|
|
1272
|
+
/* @__PURE__ */ e.jsx(qe, { t: P, onBack: ge }),
|
|
1270
1273
|
/* @__PURE__ */ e.jsx(
|
|
1271
|
-
|
|
1274
|
+
$e,
|
|
1272
1275
|
{
|
|
1273
1276
|
t: P,
|
|
1274
1277
|
values: v,
|
|
@@ -1284,7 +1287,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1284
1287
|
)
|
|
1285
1288
|
] }),
|
|
1286
1289
|
/* @__PURE__ */ e.jsx(
|
|
1287
|
-
|
|
1290
|
+
Ge,
|
|
1288
1291
|
{
|
|
1289
1292
|
t: P,
|
|
1290
1293
|
values: v,
|
|
@@ -1302,7 +1305,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1302
1305
|
}
|
|
1303
1306
|
),
|
|
1304
1307
|
/* @__PURE__ */ e.jsx(
|
|
1305
|
-
|
|
1308
|
+
En,
|
|
1306
1309
|
{
|
|
1307
1310
|
...he,
|
|
1308
1311
|
birthTimeFormat: c?.config.birthTimeFormat ?? "12h",
|
|
@@ -1310,7 +1313,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1310
1313
|
}
|
|
1311
1314
|
),
|
|
1312
1315
|
c?.config.variant === "v1" && /* @__PURE__ */ e.jsx(
|
|
1313
|
-
|
|
1316
|
+
jn,
|
|
1314
1317
|
{
|
|
1315
1318
|
isOpen: V,
|
|
1316
1319
|
onClose: () => E(!1),
|
|
@@ -1325,7 +1328,7 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1325
1328
|
}
|
|
1326
1329
|
)
|
|
1327
1330
|
] });
|
|
1328
|
-
},
|
|
1331
|
+
}, qn = {
|
|
1329
1332
|
banner_clicked_fe: "banner_clicked_fe",
|
|
1330
1333
|
primary_cta_clicked_fe: "primary_cta_clicked_fe",
|
|
1331
1334
|
language_changed_fe: "language_changed_fe",
|
|
@@ -1403,17 +1406,17 @@ const Ve = "_header_19172_1", We = "_centered_19172_8", we = {
|
|
|
1403
1406
|
birth_details_edit_clicked: "birth_details_edit_clicked"
|
|
1404
1407
|
};
|
|
1405
1408
|
export {
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1409
|
+
En as B,
|
|
1410
|
+
kn as C,
|
|
1411
|
+
qe as F,
|
|
1412
|
+
qn as K,
|
|
1413
|
+
Yn as a,
|
|
1414
|
+
xn as b,
|
|
1415
|
+
rt as c,
|
|
1413
1416
|
Se as d,
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1417
|
+
Fn as e,
|
|
1418
|
+
jn as f,
|
|
1419
|
+
yn as g,
|
|
1420
|
+
De as u
|
|
1418
1421
|
};
|
|
1419
|
-
//# sourceMappingURL=analytics-
|
|
1422
|
+
//# sourceMappingURL=analytics-1GaVXIM_.js.map
|