@srimandir/astrology-common 8.37.4 → 8.37.5
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/astrology-common.css +1 -1
- package/dist/components/ConsultationSlotSelector/ConsultationSlotSelector.d.ts +7 -0
- package/dist/components/ConsultationSlotSelector/index.d.ts +1 -0
- package/dist/components/ConsultationSlotSelector/slotSelection.d.ts +24 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +901 -886
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
1
|
import "./styles.js";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { getMaxLengthForCountry as
|
|
5
|
-
import { getMaxLengthForCountry as
|
|
6
|
-
const
|
|
7
|
-
section:
|
|
8
|
-
heading:
|
|
9
|
-
trustLine:
|
|
10
|
-
star:
|
|
11
|
-
ratingNum:
|
|
12
|
-
trustText:
|
|
13
|
-
cardList:
|
|
14
|
-
card:
|
|
15
|
-
quote:
|
|
16
|
-
author:
|
|
17
|
-
avatar:
|
|
18
|
-
avatarPlaceholder:
|
|
19
|
-
authorInfo:
|
|
20
|
-
authorName:
|
|
21
|
-
stars:
|
|
22
|
-
readMoreWrap:
|
|
23
|
-
toggleBtn:
|
|
24
|
-
readMore:
|
|
25
|
-
arrow:
|
|
26
|
-
dot:
|
|
27
|
-
},
|
|
28
|
-
function
|
|
29
|
-
const
|
|
30
|
-
for (let l = 1; l <=
|
|
31
|
-
const
|
|
32
|
-
if (!
|
|
33
|
-
const f = `feedbackAuthor${l}`,
|
|
34
|
-
const w =
|
|
35
|
-
return w && w !== f ? w :
|
|
2
|
+
import { jsxs as i, jsx as e, Fragment as Re } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as A, useState as T, useEffect as oe, useRef as U, Fragment as Qe, useCallback as le } from "react";
|
|
4
|
+
import { getMaxLengthForCountry as Pe, validatePhoneByCountryCode as Ae } from "@srimandir/common";
|
|
5
|
+
import { getMaxLengthForCountry as wr, validatePhoneByCountryCode as yr } from "@srimandir/common";
|
|
6
|
+
const Ve = "_section_1fboo_1", et = "_heading_1fboo_5", tt = "_trustLine_1fboo_9", nt = "_star_1fboo_13", at = "_ratingNum_1fboo_17", ot = "_trustText_1fboo_21", st = "_cardList_1fboo_25", rt = "_card_1fboo_25", it = "_quote_1fboo_37", ct = "_author_1fboo_41", lt = "_avatar_1fboo_45", dt = "_avatarPlaceholder_1fboo_49", _t = "_authorInfo_1fboo_54", mt = "_authorName_1fboo_58", ut = "_stars_1fboo_62", ht = "_readMoreWrap_1fboo_66", pt = "_toggleBtn_1fboo_70", gt = "_readMore_1fboo_66", bt = "_arrow_1fboo_89", ft = "_dot_1fboo_93", v = {
|
|
7
|
+
section: Ve,
|
|
8
|
+
heading: et,
|
|
9
|
+
trustLine: tt,
|
|
10
|
+
star: nt,
|
|
11
|
+
ratingNum: at,
|
|
12
|
+
trustText: ot,
|
|
13
|
+
cardList: st,
|
|
14
|
+
card: rt,
|
|
15
|
+
quote: it,
|
|
16
|
+
author: ct,
|
|
17
|
+
avatar: lt,
|
|
18
|
+
avatarPlaceholder: dt,
|
|
19
|
+
authorInfo: _t,
|
|
20
|
+
authorName: mt,
|
|
21
|
+
stars: ut,
|
|
22
|
+
readMoreWrap: ht,
|
|
23
|
+
toggleBtn: pt,
|
|
24
|
+
readMore: gt,
|
|
25
|
+
arrow: bt,
|
|
26
|
+
dot: ft
|
|
27
|
+
}, Nt = 3, Ee = 15;
|
|
28
|
+
function vt(t) {
|
|
29
|
+
const n = /* @__PURE__ */ new Map();
|
|
30
|
+
for (let l = 1; l <= Ee; l += 1) {
|
|
31
|
+
const h = `feedbackTestimonial${l}`, _ = t(h);
|
|
32
|
+
if (!_ || _ === h) continue;
|
|
33
|
+
const f = `feedbackAuthor${l}`, u = (() => {
|
|
34
|
+
const w = t(f);
|
|
35
|
+
return w && w !== f ? w : t("guest");
|
|
36
36
|
})(), g = `feedbackAuthor${l}AvatarUrl`, b = (() => {
|
|
37
|
-
const w =
|
|
37
|
+
const w = t(g);
|
|
38
38
|
return w && w !== g ? w : void 0;
|
|
39
39
|
})();
|
|
40
|
-
|
|
41
|
-
quote:
|
|
42
|
-
authorName:
|
|
40
|
+
n.set(l, {
|
|
41
|
+
quote: _,
|
|
42
|
+
authorName: u,
|
|
43
43
|
authorAvatarUrl: b,
|
|
44
44
|
rating: 5
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
const a = [], s = [];
|
|
48
|
-
for (let l = 1; l <=
|
|
48
|
+
for (let l = 1; l <= Ee; l += 1)
|
|
49
49
|
l >= 9 ? s.push(l) : a.push(l);
|
|
50
50
|
const r = [];
|
|
51
|
-
let
|
|
52
|
-
for (;
|
|
51
|
+
let c = 0, d = 0;
|
|
52
|
+
for (; c < a.length || d < s.length; ) {
|
|
53
53
|
if (d < s.length) {
|
|
54
|
-
const l = s[d++],
|
|
55
|
-
|
|
54
|
+
const l = s[d++], h = n.get(l);
|
|
55
|
+
h && r.push(h);
|
|
56
56
|
}
|
|
57
|
-
if (
|
|
58
|
-
const l = a[
|
|
59
|
-
|
|
57
|
+
if (c < a.length) {
|
|
58
|
+
const l = a[c++], h = n.get(l);
|
|
59
|
+
h && r.push(h);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
return r;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
t
|
|
66
|
-
testimonials:
|
|
67
|
-
initialVisible: a =
|
|
64
|
+
function Us({
|
|
65
|
+
t,
|
|
66
|
+
testimonials: n,
|
|
67
|
+
initialVisible: a = Nt,
|
|
68
68
|
readMoreHref: s,
|
|
69
69
|
onReadMore: r,
|
|
70
|
-
className:
|
|
70
|
+
className: c = "",
|
|
71
71
|
headingClassName: d
|
|
72
72
|
}) {
|
|
73
|
-
const l =
|
|
74
|
-
return /* @__PURE__ */
|
|
73
|
+
const l = n ?? A(() => vt(t), [t]), [h, _] = T(!1), f = l.length > a, u = f && !h ? l.slice(0, a) : l, g = t("feedbackTitle"), b = t("feedbackRating"), w = t("feedbackTrust"), E = t("readMoreReviews"), S = t("readLess");
|
|
74
|
+
return /* @__PURE__ */ i(
|
|
75
75
|
"section",
|
|
76
76
|
{
|
|
77
|
-
className: `${v.section} ${
|
|
77
|
+
className: `${v.section} ${c}`,
|
|
78
78
|
"aria-labelledby": "reviews-heading",
|
|
79
79
|
children: [
|
|
80
80
|
/* @__PURE__ */ e(
|
|
@@ -85,15 +85,15 @@ function zs({
|
|
|
85
85
|
children: g
|
|
86
86
|
}
|
|
87
87
|
),
|
|
88
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ i("p", { className: v.trustLine, children: [
|
|
89
89
|
/* @__PURE__ */ e("span", { className: v.star, "aria-hidden": !0, children: "★" }),
|
|
90
90
|
/* @__PURE__ */ e("span", { className: v.ratingNum, children: b }),
|
|
91
91
|
/* @__PURE__ */ e("span", { className: v.dot, "aria-hidden": !0 }),
|
|
92
92
|
/* @__PURE__ */ e("span", { className: v.trustText, children: w })
|
|
93
93
|
] }),
|
|
94
|
-
/* @__PURE__ */ e("ul", { className: v.cardList, children:
|
|
94
|
+
/* @__PURE__ */ e("ul", { className: v.cardList, children: u.map(($, R) => /* @__PURE__ */ i("li", { className: v.card, children: [
|
|
95
95
|
/* @__PURE__ */ e("p", { className: v.quote, children: $.quote }),
|
|
96
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ i("div", { className: v.author, children: [
|
|
97
97
|
$.authorAvatarUrl ? /* @__PURE__ */ e(
|
|
98
98
|
"img",
|
|
99
99
|
{
|
|
@@ -104,26 +104,26 @@ function zs({
|
|
|
104
104
|
height: 40
|
|
105
105
|
}
|
|
106
106
|
) : /* @__PURE__ */ e("div", { className: v.avatarPlaceholder, "aria-hidden": !0 }),
|
|
107
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ i("div", { className: v.authorInfo, children: [
|
|
108
108
|
/* @__PURE__ */ e("span", { className: v.authorName, children: $.authorName }),
|
|
109
109
|
/* @__PURE__ */ e("span", { className: v.stars, "aria-hidden": !0, children: "★".repeat($.rating ?? 5) })
|
|
110
110
|
] })
|
|
111
111
|
] })
|
|
112
112
|
] }, R)) }),
|
|
113
|
-
f && /* @__PURE__ */ e("div", { className: v.readMoreWrap, children: /* @__PURE__ */
|
|
113
|
+
f && /* @__PURE__ */ e("div", { className: v.readMoreWrap, children: /* @__PURE__ */ i(
|
|
114
114
|
"button",
|
|
115
115
|
{
|
|
116
116
|
type: "button",
|
|
117
117
|
className: v.toggleBtn,
|
|
118
|
-
onClick: () =>
|
|
119
|
-
"aria-expanded":
|
|
118
|
+
onClick: () => _(($) => !$),
|
|
119
|
+
"aria-expanded": h,
|
|
120
120
|
children: [
|
|
121
|
-
|
|
121
|
+
h ? S : E,
|
|
122
122
|
/* @__PURE__ */ e("span", { className: v.arrow, "aria-hidden": !0, children: "›" })
|
|
123
123
|
]
|
|
124
124
|
}
|
|
125
125
|
) }),
|
|
126
|
-
(s || r) && !f && /* @__PURE__ */ e("div", { className: v.readMoreWrap, children: s ? /* @__PURE__ */
|
|
126
|
+
(s || r) && !f && /* @__PURE__ */ e("div", { className: v.readMoreWrap, children: s ? /* @__PURE__ */ i(
|
|
127
127
|
"a",
|
|
128
128
|
{
|
|
129
129
|
href: s,
|
|
@@ -131,18 +131,18 @@ function zs({
|
|
|
131
131
|
target: "_blank",
|
|
132
132
|
rel: "noopener noreferrer",
|
|
133
133
|
children: [
|
|
134
|
-
|
|
134
|
+
E,
|
|
135
135
|
/* @__PURE__ */ e("span", { className: v.arrow, "aria-hidden": !0, children: "›" })
|
|
136
136
|
]
|
|
137
137
|
}
|
|
138
|
-
) : /* @__PURE__ */
|
|
138
|
+
) : /* @__PURE__ */ i(
|
|
139
139
|
"button",
|
|
140
140
|
{
|
|
141
141
|
type: "button",
|
|
142
142
|
className: v.readMore,
|
|
143
143
|
onClick: () => r?.(),
|
|
144
144
|
children: [
|
|
145
|
-
|
|
145
|
+
E,
|
|
146
146
|
/* @__PURE__ */ e("span", { className: v.arrow, "aria-hidden": !0, children: "›" })
|
|
147
147
|
]
|
|
148
148
|
}
|
|
@@ -151,39 +151,39 @@ function zs({
|
|
|
151
151
|
}
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
155
|
-
section:
|
|
156
|
-
heading:
|
|
157
|
-
accordion:
|
|
158
|
-
item:
|
|
159
|
-
itemOpen:
|
|
160
|
-
question:
|
|
161
|
-
chevron:
|
|
162
|
-
chevronOpen:
|
|
163
|
-
answerWrap:
|
|
164
|
-
answerOpen:
|
|
165
|
-
answer:
|
|
154
|
+
const wt = "_section_4dc65_1", yt = "_heading_4dc65_5", St = "_accordion_4dc65_9", kt = "_item_4dc65_13", It = "_itemOpen_4dc65_17", Tt = "_question_4dc65_22", $t = "_chevron_4dc65_30", Ct = "_chevronOpen_4dc65_34", Lt = "_answerWrap_4dc65_38", Dt = "_answerOpen_4dc65_42", xt = "_answer_4dc65_38", B = {
|
|
155
|
+
section: wt,
|
|
156
|
+
heading: yt,
|
|
157
|
+
accordion: St,
|
|
158
|
+
item: kt,
|
|
159
|
+
itemOpen: It,
|
|
160
|
+
question: Tt,
|
|
161
|
+
chevron: $t,
|
|
162
|
+
chevronOpen: Ct,
|
|
163
|
+
answerWrap: Lt,
|
|
164
|
+
answerOpen: Dt,
|
|
165
|
+
answer: xt
|
|
166
166
|
};
|
|
167
|
-
function
|
|
168
|
-
t
|
|
169
|
-
items:
|
|
167
|
+
function Gs({
|
|
168
|
+
t,
|
|
169
|
+
items: n,
|
|
170
170
|
resolveAnswerKey: a,
|
|
171
171
|
defaultOpenIndex: s = 0,
|
|
172
172
|
onItemOpen: r,
|
|
173
|
-
className:
|
|
173
|
+
className: c = "",
|
|
174
174
|
headingClassName: d
|
|
175
175
|
}) {
|
|
176
|
-
const l =
|
|
177
|
-
() =>
|
|
178
|
-
question:
|
|
179
|
-
answer:
|
|
176
|
+
const l = A(
|
|
177
|
+
() => n.map(({ qKey: u, aKey: g }) => ({
|
|
178
|
+
question: t(u),
|
|
179
|
+
answer: t(a ? a(g) : g)
|
|
180
180
|
})),
|
|
181
|
-
[
|
|
182
|
-
), [
|
|
183
|
-
return /* @__PURE__ */
|
|
181
|
+
[t, n, a]
|
|
182
|
+
), [h, _] = T(s), f = t("faqTitle");
|
|
183
|
+
return /* @__PURE__ */ i(
|
|
184
184
|
"section",
|
|
185
185
|
{
|
|
186
|
-
className: `${B.section} ${
|
|
186
|
+
className: `${B.section} ${c}`,
|
|
187
187
|
"aria-labelledby": "faq-heading",
|
|
188
188
|
children: [
|
|
189
189
|
/* @__PURE__ */ e(
|
|
@@ -194,28 +194,28 @@ function Ks({
|
|
|
194
194
|
children: f
|
|
195
195
|
}
|
|
196
196
|
),
|
|
197
|
-
/* @__PURE__ */ e("div", { className: B.accordion, role: "list", children: l.map((
|
|
198
|
-
const b =
|
|
199
|
-
return /* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ e("div", { className: B.accordion, role: "list", children: l.map((u, g) => {
|
|
198
|
+
const b = h === g;
|
|
199
|
+
return /* @__PURE__ */ i(
|
|
200
200
|
"div",
|
|
201
201
|
{
|
|
202
202
|
className: `${B.item} ${b ? B.itemOpen : ""}`,
|
|
203
203
|
role: "listitem",
|
|
204
204
|
children: [
|
|
205
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ i(
|
|
206
206
|
"button",
|
|
207
207
|
{
|
|
208
208
|
type: "button",
|
|
209
209
|
className: B.question,
|
|
210
210
|
onClick: () => {
|
|
211
211
|
const w = !b;
|
|
212
|
-
|
|
212
|
+
_(b ? -1 : g), w && r?.(u.question);
|
|
213
213
|
},
|
|
214
214
|
"aria-expanded": b,
|
|
215
215
|
"aria-controls": `faq-answer-${g}`,
|
|
216
216
|
id: `faq-question-${g}`,
|
|
217
217
|
children: [
|
|
218
|
-
/* @__PURE__ */ e("span", { children:
|
|
218
|
+
/* @__PURE__ */ e("span", { children: u.question }),
|
|
219
219
|
/* @__PURE__ */ e(
|
|
220
220
|
"span",
|
|
221
221
|
{
|
|
@@ -252,7 +252,7 @@ function Ks({
|
|
|
252
252
|
"aria-labelledby": `faq-question-${g}`,
|
|
253
253
|
className: `${B.answerWrap} ${b ? B.answerOpen : ""}`,
|
|
254
254
|
hidden: !b,
|
|
255
|
-
children: /* @__PURE__ */ e("p", { className: B.answer, children:
|
|
255
|
+
children: /* @__PURE__ */ e("p", { className: B.answer, children: u.answer })
|
|
256
256
|
}
|
|
257
257
|
)
|
|
258
258
|
]
|
|
@@ -264,87 +264,87 @@ function Ks({
|
|
|
264
264
|
}
|
|
265
265
|
);
|
|
266
266
|
}
|
|
267
|
-
const
|
|
268
|
-
header:
|
|
269
|
-
brand:
|
|
270
|
-
logo:
|
|
271
|
-
logoImg:
|
|
272
|
-
logoPlaceholder:
|
|
273
|
-
brandText:
|
|
274
|
-
brandName:
|
|
275
|
-
rating:
|
|
276
|
-
langSlot:
|
|
277
|
-
},
|
|
278
|
-
function
|
|
279
|
-
t
|
|
280
|
-
logoUrl:
|
|
267
|
+
const Bt = "_header_dbx4y_1", Mt = "_brand_dbx4y_7", Rt = "_logo_dbx4y_11", Pt = "_logoImg_dbx4y_15", At = "_logoPlaceholder_dbx4y_21", Et = "_brandText_dbx4y_29", Ot = "_brandName_dbx4y_33", Ft = "_rating_dbx4y_38", qt = "_langSlot_dbx4y_49", P = {
|
|
268
|
+
header: Bt,
|
|
269
|
+
brand: Mt,
|
|
270
|
+
logo: Rt,
|
|
271
|
+
logoImg: Pt,
|
|
272
|
+
logoPlaceholder: At,
|
|
273
|
+
brandText: Et,
|
|
274
|
+
brandName: Ot,
|
|
275
|
+
rating: Ft,
|
|
276
|
+
langSlot: qt
|
|
277
|
+
}, Oe = 120, Fe = 40;
|
|
278
|
+
function Ys({
|
|
279
|
+
t,
|
|
280
|
+
logoUrl: n,
|
|
281
281
|
imageComponent: a,
|
|
282
282
|
languageSelector: s,
|
|
283
283
|
showLanguageSelector: r = !0,
|
|
284
|
-
className:
|
|
284
|
+
className: c = ""
|
|
285
285
|
}) {
|
|
286
|
-
const d = r && s != null, l =
|
|
287
|
-
return /* @__PURE__ */
|
|
288
|
-
/* @__PURE__ */
|
|
289
|
-
/* @__PURE__ */ e("div", { className:
|
|
286
|
+
const d = r && s != null, l = t("sriMandir"), h = t("ratingText");
|
|
287
|
+
return /* @__PURE__ */ i("header", { className: `${P.header} ${c}`, children: [
|
|
288
|
+
/* @__PURE__ */ i("div", { className: P.brand, children: [
|
|
289
|
+
/* @__PURE__ */ e("div", { className: P.logo, children: n ? a ? /* @__PURE__ */ e(
|
|
290
290
|
a,
|
|
291
291
|
{
|
|
292
|
-
src:
|
|
292
|
+
src: n,
|
|
293
293
|
alt: l,
|
|
294
|
-
className:
|
|
295
|
-
width:
|
|
296
|
-
height:
|
|
294
|
+
className: P.logoImg,
|
|
295
|
+
width: Oe,
|
|
296
|
+
height: Fe
|
|
297
297
|
}
|
|
298
298
|
) : /* @__PURE__ */ e(
|
|
299
299
|
"img",
|
|
300
300
|
{
|
|
301
|
-
src:
|
|
301
|
+
src: n,
|
|
302
302
|
alt: l,
|
|
303
|
-
className:
|
|
304
|
-
width:
|
|
305
|
-
height:
|
|
303
|
+
className: P.logoImg,
|
|
304
|
+
width: Oe,
|
|
305
|
+
height: Fe,
|
|
306
306
|
decoding: "async"
|
|
307
307
|
}
|
|
308
|
-
) : /* @__PURE__ */ e("div", { className:
|
|
309
|
-
/* @__PURE__ */
|
|
310
|
-
/* @__PURE__ */ e("span", { className:
|
|
311
|
-
|
|
308
|
+
) : /* @__PURE__ */ e("div", { className: P.logoPlaceholder, "aria-hidden": !0 }) }),
|
|
309
|
+
/* @__PURE__ */ i("div", { className: P.brandText, children: [
|
|
310
|
+
/* @__PURE__ */ e("span", { className: P.brandName, children: l }),
|
|
311
|
+
h != null && h !== "" && /* @__PURE__ */ e("span", { className: P.rating, children: h })
|
|
312
312
|
] })
|
|
313
313
|
] }),
|
|
314
|
-
d && /* @__PURE__ */ e("div", { className:
|
|
314
|
+
d && /* @__PURE__ */ e("div", { className: P.langSlot, children: s })
|
|
315
315
|
] });
|
|
316
316
|
}
|
|
317
|
-
const
|
|
318
|
-
wrap:
|
|
319
|
-
card:
|
|
320
|
-
cardInner:
|
|
317
|
+
const Wt = "_wrap_1vbpd_1", jt = "_card_1vbpd_5", Ht = "_cardInner_1vbpd_10", we = {
|
|
318
|
+
wrap: Wt,
|
|
319
|
+
card: jt,
|
|
320
|
+
cardInner: Ht
|
|
321
321
|
};
|
|
322
|
-
function
|
|
323
|
-
children:
|
|
324
|
-
className:
|
|
322
|
+
function Js({
|
|
323
|
+
children: t,
|
|
324
|
+
className: n = "",
|
|
325
325
|
"aria-label": a
|
|
326
326
|
}) {
|
|
327
327
|
return /* @__PURE__ */ e(
|
|
328
328
|
"section",
|
|
329
329
|
{
|
|
330
|
-
className: `${
|
|
330
|
+
className: `${we.wrap} ${n}`,
|
|
331
331
|
"aria-label": a,
|
|
332
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
332
|
+
children: /* @__PURE__ */ e("div", { className: we.card, children: /* @__PURE__ */ e("div", { className: we.cardInner, children: t }) })
|
|
333
333
|
}
|
|
334
334
|
);
|
|
335
335
|
}
|
|
336
|
-
const
|
|
337
|
-
header:
|
|
338
|
-
left:
|
|
339
|
-
backBtn:
|
|
340
|
-
titleWrap:
|
|
341
|
-
title:
|
|
342
|
-
subtitle:
|
|
343
|
-
backIcon:
|
|
344
|
-
},
|
|
336
|
+
const zt = "_header_a05ni_1", Kt = "_left_a05ni_7", Ut = "_backBtn_a05ni_11", Gt = "_titleWrap_a05ni_21", Yt = "_title_a05ni_21", Jt = "_subtitle_a05ni_31", Zt = "_backIcon_a05ni_37", K = {
|
|
337
|
+
header: zt,
|
|
338
|
+
left: Kt,
|
|
339
|
+
backBtn: Ut,
|
|
340
|
+
titleWrap: Gt,
|
|
341
|
+
title: Yt,
|
|
342
|
+
subtitle: Jt,
|
|
343
|
+
backIcon: Zt
|
|
344
|
+
}, Xt = () => /* @__PURE__ */ e(
|
|
345
345
|
"svg",
|
|
346
346
|
{
|
|
347
|
-
className:
|
|
347
|
+
className: K.backIcon,
|
|
348
348
|
viewBox: "0 0 24 24",
|
|
349
349
|
fill: "none",
|
|
350
350
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -361,107 +361,107 @@ const Hn = "_header_a05ni_1", zn = "_left_a05ni_7", Kn = "_backBtn_a05ni_11", Un
|
|
|
361
361
|
)
|
|
362
362
|
}
|
|
363
363
|
);
|
|
364
|
-
function
|
|
365
|
-
title:
|
|
366
|
-
subtitle:
|
|
364
|
+
function Zs({
|
|
365
|
+
title: t,
|
|
366
|
+
subtitle: n,
|
|
367
367
|
onBack: a,
|
|
368
368
|
backAriaLabel: s = "Back",
|
|
369
369
|
className: r = ""
|
|
370
370
|
}) {
|
|
371
|
-
return /* @__PURE__ */ e("header", { className: `${
|
|
371
|
+
return /* @__PURE__ */ e("header", { className: `${K.header} ${r}`, children: /* @__PURE__ */ i("div", { className: K.left, children: [
|
|
372
372
|
a != null && /* @__PURE__ */ e(
|
|
373
373
|
"button",
|
|
374
374
|
{
|
|
375
375
|
type: "button",
|
|
376
|
-
className:
|
|
376
|
+
className: K.backBtn,
|
|
377
377
|
onClick: a,
|
|
378
378
|
"aria-label": s,
|
|
379
|
-
children: /* @__PURE__ */ e(
|
|
379
|
+
children: /* @__PURE__ */ e(Xt, {})
|
|
380
380
|
}
|
|
381
381
|
),
|
|
382
|
-
/* @__PURE__ */
|
|
383
|
-
/* @__PURE__ */ e("h1", { className:
|
|
384
|
-
|
|
382
|
+
/* @__PURE__ */ i("div", { className: K.titleWrap, children: [
|
|
383
|
+
/* @__PURE__ */ e("h1", { className: K.title, children: t }),
|
|
384
|
+
n != null && n !== "" && /* @__PURE__ */ e("p", { className: K.subtitle, children: n })
|
|
385
385
|
] })
|
|
386
386
|
] }) });
|
|
387
387
|
}
|
|
388
|
-
const
|
|
389
|
-
banner:
|
|
390
|
-
icon:
|
|
391
|
-
text:
|
|
392
|
-
},
|
|
393
|
-
function
|
|
394
|
-
text:
|
|
395
|
-
iconUrl:
|
|
388
|
+
const Qt = "_banner_1jco0_1", Vt = "_icon_1jco0_12", en = "_text_1jco0_16", ye = {
|
|
389
|
+
banner: Qt,
|
|
390
|
+
icon: Vt,
|
|
391
|
+
text: en
|
|
392
|
+
}, tn = "https://srm-cdn.a4b.io/yoda/1770707793537.svg";
|
|
393
|
+
function Xs({
|
|
394
|
+
text: t,
|
|
395
|
+
iconUrl: n = tn,
|
|
396
396
|
className: a = ""
|
|
397
397
|
}) {
|
|
398
|
-
return /* @__PURE__ */ e("div", { className: `${
|
|
398
|
+
return /* @__PURE__ */ e("div", { className: `${ye.banner} ${a}`, role: "status", children: /* @__PURE__ */ i("span", { className: ye.text, children: [
|
|
399
399
|
" ",
|
|
400
400
|
/* @__PURE__ */ e(
|
|
401
401
|
"img",
|
|
402
402
|
{
|
|
403
|
-
src:
|
|
403
|
+
src: n,
|
|
404
404
|
alt: "",
|
|
405
|
-
className:
|
|
405
|
+
className: ye.icon,
|
|
406
406
|
width: 18,
|
|
407
407
|
height: 18,
|
|
408
408
|
"aria-hidden": !0
|
|
409
409
|
}
|
|
410
410
|
),
|
|
411
411
|
" ",
|
|
412
|
-
|
|
412
|
+
t
|
|
413
413
|
] }) });
|
|
414
414
|
}
|
|
415
|
-
const
|
|
416
|
-
field:
|
|
417
|
-
labelRow:
|
|
418
|
-
label:
|
|
419
|
-
req:
|
|
420
|
-
help:
|
|
421
|
-
infoBtn:
|
|
422
|
-
infoImg:
|
|
423
|
-
infoWrap:
|
|
424
|
-
tooltip:
|
|
425
|
-
tooltipArrow:
|
|
426
|
-
inputWrap:
|
|
427
|
-
},
|
|
428
|
-
function
|
|
429
|
-
label:
|
|
430
|
-
id:
|
|
415
|
+
const nn = "_field_eqt7q_1", an = "_labelRow_eqt7q_5", on = "_label_eqt7q_5", sn = "_req_eqt7q_14", rn = "_help_eqt7q_18", cn = "_infoBtn_eqt7q_22", ln = "_infoImg_eqt7q_30", dn = "_infoWrap_eqt7q_34", _n = "_tooltip_eqt7q_38", mn = "_tooltipArrow_eqt7q_45", un = "_inputWrap_eqt7q_50", M = {
|
|
416
|
+
field: nn,
|
|
417
|
+
labelRow: an,
|
|
418
|
+
label: on,
|
|
419
|
+
req: sn,
|
|
420
|
+
help: rn,
|
|
421
|
+
infoBtn: cn,
|
|
422
|
+
infoImg: ln,
|
|
423
|
+
infoWrap: dn,
|
|
424
|
+
tooltip: _n,
|
|
425
|
+
tooltipArrow: mn,
|
|
426
|
+
inputWrap: un
|
|
427
|
+
}, hn = "https://srm-cdn.a4b.io/yoda/1770372066357.svg";
|
|
428
|
+
function Qs({
|
|
429
|
+
label: t,
|
|
430
|
+
id: n,
|
|
431
431
|
required: a = !1,
|
|
432
432
|
help: s,
|
|
433
433
|
infoTooltip: r,
|
|
434
|
-
infoAriaLabel:
|
|
435
|
-
infoIconUrl: d =
|
|
434
|
+
infoAriaLabel: c = "Info",
|
|
435
|
+
infoIconUrl: d = hn,
|
|
436
436
|
children: l,
|
|
437
|
-
className:
|
|
437
|
+
className: h = ""
|
|
438
438
|
}) {
|
|
439
|
-
const [
|
|
440
|
-
return
|
|
439
|
+
const [_, f] = T(!1);
|
|
440
|
+
return oe(() => {
|
|
441
441
|
if (!r) return;
|
|
442
|
-
const
|
|
442
|
+
const u = (b) => {
|
|
443
443
|
b.target?.closest?.("[data-info-tooltip]") == null && f(!1);
|
|
444
444
|
}, g = (b) => {
|
|
445
445
|
b.key === "Escape" && f(!1);
|
|
446
446
|
};
|
|
447
|
-
return document.addEventListener("mousedown",
|
|
448
|
-
document.removeEventListener("mousedown",
|
|
447
|
+
return document.addEventListener("mousedown", u), document.addEventListener("keydown", g), () => {
|
|
448
|
+
document.removeEventListener("mousedown", u), document.removeEventListener("keydown", g);
|
|
449
449
|
};
|
|
450
|
-
}, [r]), /* @__PURE__ */
|
|
451
|
-
/* @__PURE__ */
|
|
452
|
-
/* @__PURE__ */
|
|
453
|
-
|
|
450
|
+
}, [r]), /* @__PURE__ */ i("div", { className: `${M.field} ${h}`, children: [
|
|
451
|
+
/* @__PURE__ */ i("div", { className: M.labelRow, children: [
|
|
452
|
+
/* @__PURE__ */ i("label", { className: M.label, htmlFor: n, children: [
|
|
453
|
+
t,
|
|
454
454
|
a && /* @__PURE__ */ e("span", { className: M.req, children: "*" })
|
|
455
455
|
] }),
|
|
456
|
-
r != null && r !== "" && /* @__PURE__ */
|
|
456
|
+
r != null && r !== "" && /* @__PURE__ */ i("div", { className: M.infoWrap, "data-info-tooltip": !0, children: [
|
|
457
457
|
/* @__PURE__ */ e(
|
|
458
458
|
"button",
|
|
459
459
|
{
|
|
460
460
|
type: "button",
|
|
461
461
|
className: M.infoBtn,
|
|
462
|
-
"aria-label":
|
|
463
|
-
"aria-expanded":
|
|
464
|
-
onClick: () => f((
|
|
462
|
+
"aria-label": c,
|
|
463
|
+
"aria-expanded": _,
|
|
464
|
+
onClick: () => f((u) => !u),
|
|
465
465
|
children: /* @__PURE__ */ e(
|
|
466
466
|
"img",
|
|
467
467
|
{
|
|
@@ -473,7 +473,7 @@ function Zs({
|
|
|
473
473
|
)
|
|
474
474
|
}
|
|
475
475
|
),
|
|
476
|
-
|
|
476
|
+
_ && /* @__PURE__ */ i("div", { className: M.tooltip, role: "tooltip", children: [
|
|
477
477
|
r,
|
|
478
478
|
/* @__PURE__ */ e("span", { className: M.tooltipArrow, "aria-hidden": !0 })
|
|
479
479
|
] })
|
|
@@ -483,45 +483,45 @@ function Zs({
|
|
|
483
483
|
/* @__PURE__ */ e("div", { className: M.inputWrap, children: l })
|
|
484
484
|
] });
|
|
485
485
|
}
|
|
486
|
-
const
|
|
487
|
-
wrap:
|
|
488
|
-
input:
|
|
489
|
-
iconBtn:
|
|
490
|
-
iconBtnInteractive:
|
|
491
|
-
iconImg:
|
|
486
|
+
const pn = "_wrap_1uy4o_1", gn = "_input_1uy4o_5", bn = "_iconBtn_1uy4o_21", fn = "_iconBtnInteractive_1uy4o_25", Nn = "_iconImg_1uy4o_39", Z = {
|
|
487
|
+
wrap: pn,
|
|
488
|
+
input: gn,
|
|
489
|
+
iconBtn: bn,
|
|
490
|
+
iconBtnInteractive: fn,
|
|
491
|
+
iconImg: Nn
|
|
492
492
|
};
|
|
493
|
-
function
|
|
494
|
-
id:
|
|
495
|
-
iconUrl:
|
|
493
|
+
function Vs({
|
|
494
|
+
id: t,
|
|
495
|
+
iconUrl: n,
|
|
496
496
|
iconAlt: a = "",
|
|
497
497
|
iconInteractive: s = !1,
|
|
498
498
|
onIconClick: r,
|
|
499
|
-
className:
|
|
499
|
+
className: c = "",
|
|
500
500
|
...d
|
|
501
501
|
}) {
|
|
502
|
-
return /* @__PURE__ */
|
|
502
|
+
return /* @__PURE__ */ i("div", { className: `${Z.wrap} ${c}`, children: [
|
|
503
503
|
/* @__PURE__ */ e(
|
|
504
504
|
"input",
|
|
505
505
|
{
|
|
506
506
|
...d,
|
|
507
|
-
id:
|
|
508
|
-
className:
|
|
507
|
+
id: t,
|
|
508
|
+
className: Z.input,
|
|
509
509
|
type: d.type ?? "text"
|
|
510
510
|
}
|
|
511
511
|
),
|
|
512
|
-
|
|
512
|
+
n != null && /* @__PURE__ */ e(
|
|
513
513
|
"button",
|
|
514
514
|
{
|
|
515
515
|
type: "button",
|
|
516
|
-
className: s ? `${
|
|
516
|
+
className: s ? `${Z.iconBtn} ${Z.iconBtnInteractive}` : Z.iconBtn,
|
|
517
517
|
"aria-label": a || void 0,
|
|
518
518
|
onClick: s ? r : void 0,
|
|
519
519
|
tabIndex: s ? 0 : -1,
|
|
520
520
|
children: /* @__PURE__ */ e(
|
|
521
521
|
"img",
|
|
522
522
|
{
|
|
523
|
-
className:
|
|
524
|
-
src:
|
|
523
|
+
className: Z.iconImg,
|
|
524
|
+
src: n,
|
|
525
525
|
alt: "",
|
|
526
526
|
"aria-hidden": !0,
|
|
527
527
|
width: 22,
|
|
@@ -532,43 +532,43 @@ function Xs({
|
|
|
532
532
|
)
|
|
533
533
|
] });
|
|
534
534
|
}
|
|
535
|
-
const
|
|
536
|
-
wrap:
|
|
537
|
-
input:
|
|
538
|
-
iconBtn:
|
|
539
|
-
iconImg:
|
|
540
|
-
},
|
|
541
|
-
function
|
|
542
|
-
id:
|
|
543
|
-
value:
|
|
535
|
+
const vn = "_wrap_t646o_1", wn = "_input_t646o_5", yn = "_iconBtn_t646o_28", Sn = "_iconImg_t646o_42", de = {
|
|
536
|
+
wrap: vn,
|
|
537
|
+
input: wn,
|
|
538
|
+
iconBtn: yn,
|
|
539
|
+
iconImg: Sn
|
|
540
|
+
}, kn = "https://srm-cdn.a4b.io/yoda/1770372045894.svg";
|
|
541
|
+
function er({
|
|
542
|
+
id: t,
|
|
543
|
+
value: n,
|
|
544
544
|
onChange: a,
|
|
545
545
|
onIconClick: s,
|
|
546
546
|
className: r = "",
|
|
547
|
-
...
|
|
547
|
+
...c
|
|
548
548
|
}) {
|
|
549
|
-
const d =
|
|
550
|
-
const
|
|
551
|
-
return `${
|
|
552
|
-
}, []),
|
|
549
|
+
const d = U(null), l = A(() => {
|
|
550
|
+
const _ = /* @__PURE__ */ new Date(), f = (u) => String(u).padStart(2, "0");
|
|
551
|
+
return `${_.getFullYear()}-${f(_.getMonth() + 1)}-${f(_.getDate())}`;
|
|
552
|
+
}, []), h = () => {
|
|
553
553
|
if (s) {
|
|
554
554
|
s();
|
|
555
555
|
return;
|
|
556
556
|
}
|
|
557
|
-
const
|
|
558
|
-
|
|
557
|
+
const _ = d.current;
|
|
558
|
+
_ && typeof _.showPicker == "function" ? _.showPicker() : _?.focus();
|
|
559
559
|
};
|
|
560
|
-
return /* @__PURE__ */
|
|
560
|
+
return /* @__PURE__ */ i("div", { className: `${de.wrap} ${r}`, children: [
|
|
561
561
|
/* @__PURE__ */ e(
|
|
562
562
|
"input",
|
|
563
563
|
{
|
|
564
|
-
...
|
|
564
|
+
...c,
|
|
565
565
|
ref: d,
|
|
566
|
-
id:
|
|
566
|
+
id: t,
|
|
567
567
|
type: "date",
|
|
568
568
|
className: de.input,
|
|
569
|
-
value:
|
|
569
|
+
value: n,
|
|
570
570
|
max: l,
|
|
571
|
-
onChange: (
|
|
571
|
+
onChange: (_) => a(_.target.value)
|
|
572
572
|
}
|
|
573
573
|
),
|
|
574
574
|
/* @__PURE__ */ e(
|
|
@@ -577,15 +577,15 @@ function Qs({
|
|
|
577
577
|
type: "button",
|
|
578
578
|
className: `${de.iconBtn}`,
|
|
579
579
|
"aria-label": "Open date picker",
|
|
580
|
-
onMouseDown: (
|
|
581
|
-
onClick: (
|
|
582
|
-
|
|
580
|
+
onMouseDown: (_) => _.preventDefault(),
|
|
581
|
+
onClick: (_) => {
|
|
582
|
+
_.preventDefault(), h();
|
|
583
583
|
},
|
|
584
584
|
children: /* @__PURE__ */ e(
|
|
585
585
|
"img",
|
|
586
586
|
{
|
|
587
587
|
className: de.iconImg,
|
|
588
|
-
src:
|
|
588
|
+
src: kn,
|
|
589
589
|
alt: "",
|
|
590
590
|
"aria-hidden": !0,
|
|
591
591
|
width: 22,
|
|
@@ -596,33 +596,33 @@ function Qs({
|
|
|
596
596
|
)
|
|
597
597
|
] });
|
|
598
598
|
}
|
|
599
|
-
const
|
|
600
|
-
wrap:
|
|
601
|
-
input:
|
|
602
|
-
iconBtn:
|
|
603
|
-
iconImg:
|
|
604
|
-
},
|
|
605
|
-
function
|
|
606
|
-
id:
|
|
607
|
-
value:
|
|
599
|
+
const In = "_wrap_1jdg7_1", Tn = "_input_1jdg7_5", $n = "_iconBtn_1jdg7_34", Cn = "_iconImg_1jdg7_48", _e = {
|
|
600
|
+
wrap: In,
|
|
601
|
+
input: Tn,
|
|
602
|
+
iconBtn: $n,
|
|
603
|
+
iconImg: Cn
|
|
604
|
+
}, Ln = "https://srm-cdn.a4b.io/yoda/1770372014782.svg";
|
|
605
|
+
function tr({
|
|
606
|
+
id: t,
|
|
607
|
+
value: n,
|
|
608
608
|
onChange: a,
|
|
609
609
|
placeholder: s = "HH:MM AM",
|
|
610
610
|
disabled: r = !1,
|
|
611
|
-
onIconClick:
|
|
611
|
+
onIconClick: c,
|
|
612
612
|
className: d = ""
|
|
613
613
|
}) {
|
|
614
|
-
return /* @__PURE__ */
|
|
614
|
+
return /* @__PURE__ */ i("div", { className: `${_e.wrap} ${d}`, children: [
|
|
615
615
|
/* @__PURE__ */ e(
|
|
616
616
|
"input",
|
|
617
617
|
{
|
|
618
|
-
id:
|
|
618
|
+
id: t,
|
|
619
619
|
type: "time",
|
|
620
620
|
className: _e.input,
|
|
621
|
-
value:
|
|
621
|
+
value: n,
|
|
622
622
|
onChange: (l) => a(l.target.value),
|
|
623
623
|
placeholder: s,
|
|
624
624
|
disabled: r,
|
|
625
|
-
onClick: () => !r &&
|
|
625
|
+
onClick: () => !r && c?.()
|
|
626
626
|
}
|
|
627
627
|
),
|
|
628
628
|
/* @__PURE__ */ e(
|
|
@@ -633,13 +633,13 @@ function Vs({
|
|
|
633
633
|
"aria-label": "Open time picker",
|
|
634
634
|
disabled: r,
|
|
635
635
|
onClick: (l) => {
|
|
636
|
-
l.preventDefault(), r ||
|
|
636
|
+
l.preventDefault(), r || c?.();
|
|
637
637
|
},
|
|
638
638
|
children: /* @__PURE__ */ e(
|
|
639
639
|
"img",
|
|
640
640
|
{
|
|
641
641
|
className: _e.iconImg,
|
|
642
|
-
src:
|
|
642
|
+
src: Ln,
|
|
643
643
|
alt: "",
|
|
644
644
|
"aria-hidden": !0,
|
|
645
645
|
width: 22,
|
|
@@ -650,25 +650,25 @@ function Vs({
|
|
|
650
650
|
)
|
|
651
651
|
] });
|
|
652
652
|
}
|
|
653
|
-
const
|
|
654
|
-
wrap:
|
|
655
|
-
input:
|
|
656
|
-
iconBtn:
|
|
657
|
-
iconImg:
|
|
658
|
-
},
|
|
659
|
-
function
|
|
660
|
-
id:
|
|
661
|
-
iconUrl:
|
|
653
|
+
const Dn = "_wrap_1bb6o_1", xn = "_input_1bb6o_5", Bn = "_iconBtn_1bb6o_21", Mn = "_iconImg_1bb6o_25", me = {
|
|
654
|
+
wrap: Dn,
|
|
655
|
+
input: xn,
|
|
656
|
+
iconBtn: Bn,
|
|
657
|
+
iconImg: Mn
|
|
658
|
+
}, Rn = "https://srm-cdn.a4b.io/yoda/1770372031092.svg";
|
|
659
|
+
function nr({
|
|
660
|
+
id: t,
|
|
661
|
+
iconUrl: n = Rn,
|
|
662
662
|
className: a = "",
|
|
663
663
|
...s
|
|
664
664
|
}) {
|
|
665
|
-
return /* @__PURE__ */
|
|
666
|
-
/* @__PURE__ */ e("input", { ...s, id:
|
|
665
|
+
return /* @__PURE__ */ i("div", { className: `${me.wrap} ${a}`, children: [
|
|
666
|
+
/* @__PURE__ */ e("input", { ...s, id: t, className: me.input, type: "text" }),
|
|
667
667
|
/* @__PURE__ */ e("div", { className: me.iconBtn, "aria-hidden": !0, children: /* @__PURE__ */ e(
|
|
668
668
|
"img",
|
|
669
669
|
{
|
|
670
670
|
className: me.iconImg,
|
|
671
|
-
src:
|
|
671
|
+
src: n,
|
|
672
672
|
alt: "",
|
|
673
673
|
width: 22,
|
|
674
674
|
height: 22
|
|
@@ -676,14 +676,14 @@ function er({
|
|
|
676
676
|
) })
|
|
677
677
|
] });
|
|
678
678
|
}
|
|
679
|
-
const
|
|
680
|
-
segmented:
|
|
681
|
-
segmentedOption:
|
|
682
|
-
active:
|
|
679
|
+
const Pn = "_segmented_3sa9v_1", An = "_segmentedOption_3sa9v_6", En = "_active_3sa9v_15", Se = {
|
|
680
|
+
segmented: Pn,
|
|
681
|
+
segmentedOption: An,
|
|
682
|
+
active: En
|
|
683
683
|
};
|
|
684
|
-
function
|
|
685
|
-
id:
|
|
686
|
-
options:
|
|
684
|
+
function ar({
|
|
685
|
+
id: t,
|
|
686
|
+
options: n,
|
|
687
687
|
value: a,
|
|
688
688
|
onChange: s,
|
|
689
689
|
className: r = ""
|
|
@@ -691,36 +691,36 @@ function nr({
|
|
|
691
691
|
return /* @__PURE__ */ e(
|
|
692
692
|
"div",
|
|
693
693
|
{
|
|
694
|
-
className: `${
|
|
694
|
+
className: `${Se.segmented} ${r}`,
|
|
695
695
|
role: "group",
|
|
696
|
-
"aria-labelledby": `${
|
|
697
|
-
children:
|
|
696
|
+
"aria-labelledby": `${t}-label`,
|
|
697
|
+
children: n.map((c) => /* @__PURE__ */ e(
|
|
698
698
|
"button",
|
|
699
699
|
{
|
|
700
700
|
type: "button",
|
|
701
|
-
id:
|
|
702
|
-
className: `${
|
|
703
|
-
onClick: () => s(
|
|
704
|
-
children:
|
|
701
|
+
id: c.value === a ? t : void 0,
|
|
702
|
+
className: `${Se.segmentedOption} ${c.value === a ? Se.active : ""}`,
|
|
703
|
+
onClick: () => s(c.value),
|
|
704
|
+
children: c.label
|
|
705
705
|
},
|
|
706
|
-
|
|
706
|
+
c.value
|
|
707
707
|
))
|
|
708
708
|
}
|
|
709
709
|
);
|
|
710
710
|
}
|
|
711
|
-
const
|
|
712
|
-
pillsWrap:
|
|
713
|
-
pill:
|
|
714
|
-
selected:
|
|
711
|
+
const On = "_pillsWrap_z1kui_1", Fn = "_pill_z1kui_1", qn = "_selected_z1kui_17", ke = {
|
|
712
|
+
pillsWrap: On,
|
|
713
|
+
pill: Fn,
|
|
714
|
+
selected: qn
|
|
715
715
|
};
|
|
716
|
-
function
|
|
717
|
-
id:
|
|
718
|
-
options:
|
|
716
|
+
function or({
|
|
717
|
+
id: t,
|
|
718
|
+
options: n,
|
|
719
719
|
selected: a,
|
|
720
720
|
onChange: s,
|
|
721
721
|
className: r = ""
|
|
722
722
|
}) {
|
|
723
|
-
const
|
|
723
|
+
const c = (d) => {
|
|
724
724
|
a.includes(d) ? s(a.filter((l) => l !== d)) : s([...a, d]);
|
|
725
725
|
};
|
|
726
726
|
return /* @__PURE__ */ e(
|
|
@@ -728,13 +728,13 @@ function tr({
|
|
|
728
728
|
{
|
|
729
729
|
className: `${ke.pillsWrap} ${r}`,
|
|
730
730
|
role: "group",
|
|
731
|
-
"aria-labelledby": `${
|
|
732
|
-
children:
|
|
731
|
+
"aria-labelledby": `${t}-label`,
|
|
732
|
+
children: n.map((d) => /* @__PURE__ */ e(
|
|
733
733
|
"button",
|
|
734
734
|
{
|
|
735
735
|
type: "button",
|
|
736
736
|
className: `${ke.pill} ${a.includes(d.key) ? ke.selected : ""}`,
|
|
737
|
-
onClick: () =>
|
|
737
|
+
onClick: () => c(d.key),
|
|
738
738
|
children: d.label
|
|
739
739
|
},
|
|
740
740
|
d.key
|
|
@@ -742,92 +742,92 @@ function tr({
|
|
|
742
742
|
}
|
|
743
743
|
);
|
|
744
744
|
}
|
|
745
|
-
const
|
|
746
|
-
wrapper:
|
|
747
|
-
checkboxRow:
|
|
748
|
-
checkbox:
|
|
749
|
-
checkboxText:
|
|
750
|
-
checkboxHelp:
|
|
745
|
+
const Wn = "_wrapper_i6a5b_2", jn = "_checkboxRow_i6a5b_6", Hn = "_checkbox_i6a5b_6", zn = "_checkboxText_i6a5b_31", Kn = "_checkboxHelp_i6a5b_37", te = {
|
|
746
|
+
wrapper: Wn,
|
|
747
|
+
checkboxRow: jn,
|
|
748
|
+
checkbox: Hn,
|
|
749
|
+
checkboxText: zn,
|
|
750
|
+
checkboxHelp: Kn
|
|
751
751
|
};
|
|
752
|
-
function
|
|
753
|
-
id:
|
|
754
|
-
checked:
|
|
752
|
+
function sr({
|
|
753
|
+
id: t,
|
|
754
|
+
checked: n,
|
|
755
755
|
onChange: a,
|
|
756
756
|
primaryText: s,
|
|
757
757
|
helpText: r,
|
|
758
|
-
className:
|
|
758
|
+
className: c = ""
|
|
759
759
|
}) {
|
|
760
|
-
return /* @__PURE__ */
|
|
761
|
-
/* @__PURE__ */
|
|
760
|
+
return /* @__PURE__ */ i("div", { className: `${te.wrapper} ${c}`, children: [
|
|
761
|
+
/* @__PURE__ */ i("div", { className: te.checkboxRow, children: [
|
|
762
762
|
/* @__PURE__ */ e(
|
|
763
763
|
"input",
|
|
764
764
|
{
|
|
765
|
-
id:
|
|
765
|
+
id: t,
|
|
766
766
|
type: "checkbox",
|
|
767
767
|
className: te.checkbox,
|
|
768
|
-
checked:
|
|
768
|
+
checked: n,
|
|
769
769
|
onChange: (d) => a(d.target.checked)
|
|
770
770
|
}
|
|
771
771
|
),
|
|
772
|
-
/* @__PURE__ */ e("label", { htmlFor:
|
|
772
|
+
/* @__PURE__ */ e("label", { htmlFor: t, className: te.checkboxText, children: s })
|
|
773
773
|
] }),
|
|
774
774
|
r != null && r !== "" && /* @__PURE__ */ e("p", { className: te.checkboxHelp, children: r })
|
|
775
775
|
] });
|
|
776
776
|
}
|
|
777
|
-
const
|
|
778
|
-
footerNote:
|
|
777
|
+
const Un = "_footerNote_laev3_1", Gn = {
|
|
778
|
+
footerNote: Un
|
|
779
779
|
};
|
|
780
|
-
function
|
|
781
|
-
children:
|
|
782
|
-
className:
|
|
780
|
+
function rr({
|
|
781
|
+
children: t,
|
|
782
|
+
className: n = ""
|
|
783
783
|
}) {
|
|
784
|
-
return /* @__PURE__ */ e("p", { className: `${
|
|
784
|
+
return /* @__PURE__ */ e("p", { className: `${Gn.footerNote} ${n}`, children: t });
|
|
785
785
|
}
|
|
786
|
-
const
|
|
787
|
-
footer:
|
|
788
|
-
inner:
|
|
789
|
-
badges:
|
|
790
|
-
marqueeContent:
|
|
791
|
-
badge:
|
|
792
|
-
badgeIcon:
|
|
793
|
-
ctaWrap:
|
|
794
|
-
ctaStruck:
|
|
795
|
-
ctaButton:
|
|
796
|
-
offerRow:
|
|
797
|
-
pill:
|
|
798
|
-
ctaStatic:
|
|
786
|
+
const Yn = "_footer_86zxt_1", Jn = "_inner_86zxt_8", Zn = "_badges_86zxt_12", Xn = "_marqueeContent_86zxt_20", Qn = "_badge_86zxt_12", Vn = "_badgeIcon_86zxt_35", ea = "_ctaWrap_86zxt_39", ta = "_ctaStruck_86zxt_43", na = "_ctaButton_86zxt_49", aa = "_offerRow_86zxt_69", oa = "_pill_86zxt_76", sa = "_ctaStatic_86zxt_85", Q = {
|
|
787
|
+
footer: Yn,
|
|
788
|
+
inner: Jn,
|
|
789
|
+
badges: Zn,
|
|
790
|
+
marqueeContent: Xn,
|
|
791
|
+
badge: Qn,
|
|
792
|
+
badgeIcon: Vn,
|
|
793
|
+
ctaWrap: ea,
|
|
794
|
+
ctaStruck: ta,
|
|
795
|
+
ctaButton: na,
|
|
796
|
+
offerRow: aa,
|
|
797
|
+
pill: oa,
|
|
798
|
+
ctaStatic: sa
|
|
799
799
|
};
|
|
800
|
-
function
|
|
801
|
-
marquee:
|
|
802
|
-
children:
|
|
800
|
+
function ir({
|
|
801
|
+
marquee: t,
|
|
802
|
+
children: n,
|
|
803
803
|
className: a = ""
|
|
804
804
|
}) {
|
|
805
|
-
return /* @__PURE__ */ e("footer", { className: `${
|
|
806
|
-
|
|
807
|
-
/* @__PURE__ */ e("div", { className:
|
|
805
|
+
return /* @__PURE__ */ e("footer", { className: `${Q.footer} ${a}`, role: "contentinfo", children: /* @__PURE__ */ i("div", { className: Q.inner, children: [
|
|
806
|
+
t != null && /* @__PURE__ */ e("div", { className: Q.badges, "aria-hidden": !0, children: t }),
|
|
807
|
+
/* @__PURE__ */ e("div", { className: Q.ctaWrap, children: n })
|
|
808
808
|
] }) });
|
|
809
809
|
}
|
|
810
|
-
function
|
|
811
|
-
children:
|
|
812
|
-
href:
|
|
810
|
+
function cr({
|
|
811
|
+
children: t,
|
|
812
|
+
href: n,
|
|
813
813
|
disabled: a = !1,
|
|
814
814
|
onClick: s,
|
|
815
815
|
static: r = !1,
|
|
816
|
-
className:
|
|
816
|
+
className: c = "",
|
|
817
817
|
"aria-label": d
|
|
818
818
|
}) {
|
|
819
|
-
const l = `${
|
|
820
|
-
return r ? /* @__PURE__ */ e("div", { className:
|
|
819
|
+
const l = `${Q.ctaButton} ${c}`.trim(), h = `${Q.ctaStatic} ${c}`.trim(), _ = d != null ? { "aria-label": d } : {};
|
|
820
|
+
return r ? /* @__PURE__ */ e("div", { className: h, role: "presentation", children: t }) : n != null ? /* @__PURE__ */ e(
|
|
821
821
|
"a",
|
|
822
822
|
{
|
|
823
|
-
href:
|
|
823
|
+
href: n,
|
|
824
824
|
className: l,
|
|
825
825
|
target: "_blank",
|
|
826
826
|
rel: "noopener noreferrer",
|
|
827
827
|
"aria-disabled": a,
|
|
828
828
|
onClick: (f) => a && f.preventDefault(),
|
|
829
|
-
...
|
|
830
|
-
children:
|
|
829
|
+
..._,
|
|
830
|
+
children: t
|
|
831
831
|
}
|
|
832
832
|
) : /* @__PURE__ */ e(
|
|
833
833
|
"button",
|
|
@@ -836,68 +836,68 @@ function rr({
|
|
|
836
836
|
className: l,
|
|
837
837
|
disabled: a,
|
|
838
838
|
onClick: s,
|
|
839
|
-
...
|
|
840
|
-
children:
|
|
839
|
+
..._,
|
|
840
|
+
children: t
|
|
841
841
|
}
|
|
842
842
|
);
|
|
843
843
|
}
|
|
844
|
-
const
|
|
845
|
-
wrapper:
|
|
846
|
-
track:
|
|
844
|
+
const ra = "_wrapper_wxjzs_1", ia = "_track_wxjzs_7", qe = {
|
|
845
|
+
wrapper: ra,
|
|
846
|
+
track: ia
|
|
847
847
|
};
|
|
848
|
-
function
|
|
849
|
-
return /* @__PURE__ */ e("div", { className: `${
|
|
850
|
-
|
|
851
|
-
|
|
848
|
+
function ca({ children: t, className: n = "" }) {
|
|
849
|
+
return /* @__PURE__ */ e("div", { className: `${qe.wrapper} ${n}`, "aria-hidden": !0, children: /* @__PURE__ */ i("div", { className: qe.track, children: [
|
|
850
|
+
t,
|
|
851
|
+
t
|
|
852
852
|
] }) });
|
|
853
853
|
}
|
|
854
|
-
const
|
|
855
|
-
strip:
|
|
854
|
+
const la = "_strip_2838b_1", da = {
|
|
855
|
+
strip: la
|
|
856
856
|
};
|
|
857
|
-
function
|
|
858
|
-
return /* @__PURE__ */ e("div", { className: `${
|
|
857
|
+
function lr({ children: t, className: n = "" }) {
|
|
858
|
+
return /* @__PURE__ */ e("div", { className: `${da.strip} ${n}`, role: "region", "aria-label": "Trust badges", children: /* @__PURE__ */ e(ca, { children: t }) });
|
|
859
859
|
}
|
|
860
|
-
const
|
|
861
|
-
section:
|
|
862
|
-
heading:
|
|
863
|
-
content:
|
|
864
|
-
line:
|
|
865
|
-
brandName:
|
|
860
|
+
const _a = "_section_8y3x9_1", ma = "_heading_8y3x9_6", ua = "_content_8y3x9_11", ha = "_line_8y3x9_16", pa = "_brandName_8y3x9_20", X = {
|
|
861
|
+
section: _a,
|
|
862
|
+
heading: ma,
|
|
863
|
+
content: ua,
|
|
864
|
+
line: ha,
|
|
865
|
+
brandName: pa
|
|
866
866
|
};
|
|
867
|
-
function
|
|
868
|
-
title:
|
|
869
|
-
brandName:
|
|
867
|
+
function dr({
|
|
868
|
+
title: t,
|
|
869
|
+
brandName: n,
|
|
870
870
|
whatsAppLine: a,
|
|
871
871
|
emailLine: s,
|
|
872
872
|
className: r = ""
|
|
873
873
|
}) {
|
|
874
|
-
return /* @__PURE__ */
|
|
875
|
-
/* @__PURE__ */ e("h2", { id: "contact-heading", className:
|
|
876
|
-
/* @__PURE__ */
|
|
877
|
-
/* @__PURE__ */ e("p", { className:
|
|
878
|
-
/* @__PURE__ */ e("p", { className:
|
|
879
|
-
/* @__PURE__ */ e("p", { className:
|
|
874
|
+
return /* @__PURE__ */ i("section", { className: `${X.section} ${r}`, "aria-labelledby": "contact-heading", children: [
|
|
875
|
+
/* @__PURE__ */ e("h2", { id: "contact-heading", className: X.heading, children: t }),
|
|
876
|
+
/* @__PURE__ */ i("div", { className: X.content, children: [
|
|
877
|
+
/* @__PURE__ */ e("p", { className: X.brandName, children: n }),
|
|
878
|
+
/* @__PURE__ */ e("p", { className: X.line, children: a }),
|
|
879
|
+
/* @__PURE__ */ e("p", { className: X.line, children: s })
|
|
880
880
|
] })
|
|
881
881
|
] });
|
|
882
882
|
}
|
|
883
|
-
const
|
|
884
|
-
const
|
|
885
|
-
if (!
|
|
886
|
-
const a = Number(
|
|
883
|
+
const ga = (t) => {
|
|
884
|
+
const n = t.match(/T(\d{2}):(\d{2})/);
|
|
885
|
+
if (!n) return t;
|
|
886
|
+
const a = Number(n[1]), s = n[2], r = a >= 12 ? "PM" : "AM";
|
|
887
887
|
return `${a % 12 || 12}:${s} ${r}`;
|
|
888
|
-
},
|
|
889
|
-
const a = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], s = /* @__PURE__ */ new Date(`${
|
|
888
|
+
}, ba = (t, n = /* @__PURE__ */ new Date()) => {
|
|
889
|
+
const a = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], s = /* @__PURE__ */ new Date(`${t}T00:00:00`);
|
|
890
890
|
if (Number.isNaN(s.getTime()))
|
|
891
|
-
return { id:
|
|
892
|
-
const r = (l) => new Date(l.getFullYear(), l.getMonth(), l.getDate()).getTime(),
|
|
893
|
-
(r(s) - r(
|
|
894
|
-
), d =
|
|
895
|
-
return { id:
|
|
896
|
-
},
|
|
891
|
+
return { id: t, dayLabel: t, dayNum: "" };
|
|
892
|
+
const r = (l) => new Date(l.getFullYear(), l.getMonth(), l.getDate()).getTime(), c = Math.round(
|
|
893
|
+
(r(s) - r(n)) / (1e3 * 60 * 60 * 24)
|
|
894
|
+
), d = c === 0 ? "Today" : c === 1 ? "Tomorrow" : a[s.getDay()];
|
|
895
|
+
return { id: t, dayLabel: d, dayNum: String(s.getDate()) };
|
|
896
|
+
}, ze = [
|
|
897
897
|
"morning",
|
|
898
898
|
"afternoon",
|
|
899
899
|
"evening"
|
|
900
|
-
],
|
|
900
|
+
], fa = [
|
|
901
901
|
{ code: "en", labelKey: "formReportLanguageEnglish", label: "English" },
|
|
902
902
|
{ code: "hi", labelKey: "formReportLanguageHindi", label: "Hindi" },
|
|
903
903
|
{ code: "te", labelKey: "formReportLanguageTelugu", label: "Telugu" },
|
|
@@ -905,7 +905,7 @@ const ua = (n) => {
|
|
|
905
905
|
{ code: "gu", labelKey: "formReportLanguageGujarati", label: "Gujarati" },
|
|
906
906
|
{ code: "mr", labelKey: "formReportLanguageMarathi", label: "Marathi" },
|
|
907
907
|
{ code: "ta", labelKey: "formReportLanguageTamil", label: "Tamil" }
|
|
908
|
-
],
|
|
908
|
+
], Na = () => /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
|
|
909
909
|
"path",
|
|
910
910
|
{
|
|
911
911
|
d: "M3.5 8.5l2.5 2.5 6-6",
|
|
@@ -914,7 +914,7 @@ const ua = (n) => {
|
|
|
914
914
|
strokeLinecap: "round",
|
|
915
915
|
strokeLinejoin: "round"
|
|
916
916
|
}
|
|
917
|
-
) }),
|
|
917
|
+
) }), va = () => /* @__PURE__ */ e(
|
|
918
918
|
"svg",
|
|
919
919
|
{
|
|
920
920
|
width: "14",
|
|
@@ -928,7 +928,7 @@ const ua = (n) => {
|
|
|
928
928
|
"aria-hidden": !0,
|
|
929
929
|
children: /* @__PURE__ */ e("path", { d: "M6 9l6 6 6-6" })
|
|
930
930
|
}
|
|
931
|
-
),
|
|
931
|
+
), wa = () => /* @__PURE__ */ e(
|
|
932
932
|
"img",
|
|
933
933
|
{
|
|
934
934
|
src: "https://srm-cdn.a4b.io/yoda/1785316603029.svg",
|
|
@@ -937,7 +937,7 @@ const ua = (n) => {
|
|
|
937
937
|
alt: "",
|
|
938
938
|
"aria-hidden": !0
|
|
939
939
|
}
|
|
940
|
-
),
|
|
940
|
+
), ya = () => /* @__PURE__ */ e(
|
|
941
941
|
"img",
|
|
942
942
|
{
|
|
943
943
|
src: "https://srm-cdn.a4b.io/yoda/1785316621747.svg",
|
|
@@ -946,7 +946,7 @@ const ua = (n) => {
|
|
|
946
946
|
alt: "",
|
|
947
947
|
"aria-hidden": !0
|
|
948
948
|
}
|
|
949
|
-
),
|
|
949
|
+
), Sa = () => /* @__PURE__ */ e(
|
|
950
950
|
"img",
|
|
951
951
|
{
|
|
952
952
|
src: "https://srm-cdn.a4b.io/yoda/1785316635953.svg",
|
|
@@ -955,52 +955,52 @@ const ua = (n) => {
|
|
|
955
955
|
alt: "",
|
|
956
956
|
"aria-hidden": !0
|
|
957
957
|
}
|
|
958
|
-
), ka = () => /* @__PURE__ */
|
|
958
|
+
), ka = () => /* @__PURE__ */ i("svg", { width: "40", height: "40", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: [
|
|
959
959
|
/* @__PURE__ */ e("rect", { x: "3", y: "4.5", width: "18", height: "16", rx: "3", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
960
960
|
/* @__PURE__ */ e("path", { d: "M3 9.5h18", stroke: "#D1D5DB", strokeWidth: "1.6" }),
|
|
961
961
|
/* @__PURE__ */ e("path", { d: "M8 2.5v4M16 2.5v4", stroke: "#D1D5DB", strokeWidth: "1.6", strokeLinecap: "round" }),
|
|
962
962
|
/* @__PURE__ */ e("path", { d: "M7.5 20.5L17 6", stroke: "#9CA3AF", strokeWidth: "1.6", strokeLinecap: "round" })
|
|
963
|
-
] }),
|
|
964
|
-
section:
|
|
965
|
-
headerRow:
|
|
966
|
-
title:
|
|
967
|
-
changeBtn:
|
|
968
|
-
numberRow:
|
|
969
|
-
countryCode:
|
|
963
|
+
] }), Ia = "_section_1ltqn_2", Ta = "_headerRow_1ltqn_10", $a = "_title_1ltqn_18", Ca = "_changeBtn_1ltqn_24", La = "_numberRow_1ltqn_35", Da = "_countryCode_1ltqn_44", xa = "_number_1ltqn_35", Ba = "_helper_1ltqn_59", j = {
|
|
964
|
+
section: Ia,
|
|
965
|
+
headerRow: Ta,
|
|
966
|
+
title: $a,
|
|
967
|
+
changeBtn: Ca,
|
|
968
|
+
numberRow: La,
|
|
969
|
+
countryCode: Da,
|
|
970
970
|
number: xa,
|
|
971
|
-
helper:
|
|
972
|
-
},
|
|
973
|
-
title:
|
|
974
|
-
countryCode:
|
|
971
|
+
helper: Ba
|
|
972
|
+
}, Ma = ({
|
|
973
|
+
title: t,
|
|
974
|
+
countryCode: n = "+91",
|
|
975
975
|
phoneNumber: a = "98765 43210",
|
|
976
976
|
helperText: s,
|
|
977
977
|
onEdit: r,
|
|
978
|
-
t:
|
|
978
|
+
t: c,
|
|
979
979
|
className: d = ""
|
|
980
|
-
}) => /* @__PURE__ */
|
|
981
|
-
/* @__PURE__ */
|
|
982
|
-
/* @__PURE__ */ e("span", { className:
|
|
983
|
-
r && /* @__PURE__ */ e("button", { type: "button", className:
|
|
980
|
+
}) => /* @__PURE__ */ i("section", { className: [j.section, d].filter(Boolean).join(" "), children: [
|
|
981
|
+
/* @__PURE__ */ i("div", { className: j.headerRow, children: [
|
|
982
|
+
/* @__PURE__ */ e("span", { className: j.title, children: t ?? c?.("planPhoneNumberHeading") ?? "Your phone number" }),
|
|
983
|
+
r && /* @__PURE__ */ e("button", { type: "button", className: j.changeBtn, onClick: r, children: c?.("planPhoneNumberChange") ?? "Change" })
|
|
984
984
|
] }),
|
|
985
|
-
/* @__PURE__ */
|
|
986
|
-
/* @__PURE__ */ e("span", { className:
|
|
987
|
-
/* @__PURE__ */ e("span", { className:
|
|
985
|
+
/* @__PURE__ */ i("div", { className: j.numberRow, children: [
|
|
986
|
+
/* @__PURE__ */ e("span", { className: j.countryCode, children: n }),
|
|
987
|
+
/* @__PURE__ */ e("span", { className: j.number, children: a })
|
|
988
988
|
] }),
|
|
989
|
-
/* @__PURE__ */ e("p", { className:
|
|
990
|
-
] }),
|
|
991
|
-
section:
|
|
992
|
-
title:
|
|
993
|
-
profileRow:
|
|
994
|
-
profileCard:
|
|
995
|
-
profileCardSelected:
|
|
996
|
-
profileTop:
|
|
997
|
-
avatar:
|
|
998
|
-
profileName:
|
|
999
|
-
relationPill:
|
|
1000
|
-
profileMeta:
|
|
1001
|
-
addCard:
|
|
1002
|
-
addIcon:
|
|
1003
|
-
},
|
|
989
|
+
/* @__PURE__ */ e("p", { className: j.helper, children: s ?? c?.("planPhoneNumberHelper") ?? "The astrologer will call you on this number at your booked slot." })
|
|
990
|
+
] }), Ra = "_section_12hk9_2", Pa = "_title_12hk9_6", Aa = "_profileRow_12hk9_13", Ea = "_profileCard_12hk9_26", Oa = "_profileCardSelected_12hk9_47", Fa = "_profileTop_12hk9_52", qa = "_avatar_12hk9_60", Wa = "_profileName_12hk9_74", ja = "_relationPill_12hk9_84", Ha = "_profileMeta_12hk9_98", za = "_addCard_12hk9_108", Ka = "_addIcon_12hk9_127", C = {
|
|
991
|
+
section: Ra,
|
|
992
|
+
title: Pa,
|
|
993
|
+
profileRow: Aa,
|
|
994
|
+
profileCard: Ea,
|
|
995
|
+
profileCardSelected: Oa,
|
|
996
|
+
profileTop: Fa,
|
|
997
|
+
avatar: qa,
|
|
998
|
+
profileName: Wa,
|
|
999
|
+
relationPill: ja,
|
|
1000
|
+
profileMeta: Ha,
|
|
1001
|
+
addCard: za,
|
|
1002
|
+
addIcon: Ka
|
|
1003
|
+
}, Ua = [
|
|
1004
1004
|
{
|
|
1005
1005
|
id: "self",
|
|
1006
1006
|
name: "Aarav Sharma",
|
|
@@ -1015,241 +1015,243 @@ const ua = (n) => {
|
|
|
1015
1015
|
birthPlace: "Pune, India",
|
|
1016
1016
|
relation: "Spouse"
|
|
1017
1017
|
}
|
|
1018
|
-
],
|
|
1019
|
-
title:
|
|
1020
|
-
profiles:
|
|
1018
|
+
], Ga = ({
|
|
1019
|
+
title: t,
|
|
1020
|
+
profiles: n = Ua,
|
|
1021
1021
|
selectedProfileId: a,
|
|
1022
1022
|
onProfileSelect: s,
|
|
1023
1023
|
onAddProfile: r,
|
|
1024
|
-
t:
|
|
1024
|
+
t: c,
|
|
1025
1025
|
className: d = ""
|
|
1026
1026
|
}) => {
|
|
1027
|
-
const [l,
|
|
1028
|
-
u
|
|
1027
|
+
const [l, h] = T(n[0]?.id ?? ""), _ = a ?? l, f = (u) => {
|
|
1028
|
+
h(u), s?.(u);
|
|
1029
1029
|
};
|
|
1030
|
-
return /* @__PURE__ */
|
|
1031
|
-
/* @__PURE__ */ e("p", { className: C.title, children:
|
|
1032
|
-
/* @__PURE__ */
|
|
1033
|
-
|
|
1034
|
-
const g =
|
|
1035
|
-
return /* @__PURE__ */
|
|
1030
|
+
return /* @__PURE__ */ i("section", { className: [C.section, d].filter(Boolean).join(" "), children: [
|
|
1031
|
+
/* @__PURE__ */ e("p", { className: C.title, children: t ?? c?.("planAstrologyProfilesHeading") ?? "Astrology profile" }),
|
|
1032
|
+
/* @__PURE__ */ i("div", { className: C.profileRow, role: "radiogroup", "aria-label": "Astrology profile", children: [
|
|
1033
|
+
n.map((u) => {
|
|
1034
|
+
const g = u.id === _;
|
|
1035
|
+
return /* @__PURE__ */ i(
|
|
1036
1036
|
"button",
|
|
1037
1037
|
{
|
|
1038
1038
|
type: "button",
|
|
1039
1039
|
role: "radio",
|
|
1040
1040
|
"aria-checked": g,
|
|
1041
1041
|
className: [C.profileCard, g ? C.profileCardSelected : ""].filter(Boolean).join(" "),
|
|
1042
|
-
onClick: () => f(
|
|
1042
|
+
onClick: () => f(u.id),
|
|
1043
1043
|
children: [
|
|
1044
|
-
/* @__PURE__ */
|
|
1045
|
-
/* @__PURE__ */ e("span", { className: C.avatar, "aria-hidden": !0, children:
|
|
1046
|
-
/* @__PURE__ */ e("span", { className: C.profileName, children:
|
|
1044
|
+
/* @__PURE__ */ i("span", { className: C.profileTop, children: [
|
|
1045
|
+
/* @__PURE__ */ e("span", { className: C.avatar, "aria-hidden": !0, children: u.name.charAt(0).toUpperCase() }),
|
|
1046
|
+
/* @__PURE__ */ e("span", { className: C.profileName, children: u.name })
|
|
1047
1047
|
] }),
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1048
|
+
u.relation && /* @__PURE__ */ e("span", { className: C.relationPill, children: u.relation }),
|
|
1049
|
+
u.birthDetails && /* @__PURE__ */ e("span", { className: C.profileMeta, children: u.birthDetails }),
|
|
1050
|
+
u.birthPlace && /* @__PURE__ */ e("span", { className: C.profileMeta, children: u.birthPlace })
|
|
1051
1051
|
]
|
|
1052
1052
|
},
|
|
1053
|
-
|
|
1053
|
+
u.id
|
|
1054
1054
|
);
|
|
1055
1055
|
}),
|
|
1056
|
-
r && /* @__PURE__ */
|
|
1056
|
+
r && /* @__PURE__ */ i("button", { type: "button", className: C.addCard, onClick: r, children: [
|
|
1057
1057
|
/* @__PURE__ */ e("span", { className: C.addIcon, "aria-hidden": !0, children: "+" }),
|
|
1058
|
-
|
|
1058
|
+
c?.("planAddAstrologyProfile") ?? "Add profile"
|
|
1059
1059
|
] })
|
|
1060
1060
|
] })
|
|
1061
1061
|
] });
|
|
1062
|
-
},
|
|
1063
|
-
root:
|
|
1064
|
-
languageRow:
|
|
1065
|
-
languageLabel:
|
|
1066
|
-
languageDropdown:
|
|
1067
|
-
languageDropdownBtn:
|
|
1068
|
-
languageMenu:
|
|
1069
|
-
languageMenuItem:
|
|
1070
|
-
languageMenuItemSelected:
|
|
1062
|
+
}, Ya = "_root_5uh42_6", Ja = "_languageRow_5uh42_19", Za = "_languageLabel_5uh42_27", Xa = "_languageDropdown_5uh42_33", Qa = "_languageDropdownBtn_5uh42_37", Va = "_languageMenu_5uh42_52", eo = "_languageMenuItem_5uh42_69", to = "_languageMenuItemSelected_5uh42_83", no = "_languageDivider_5uh42_89", ao = "_sectionHeadingRow_5uh42_96", oo = "_sectionHeading_5uh42_96", so = "_timezoneLabel_5uh42_111", ro = "_reportReadyBanner_5uh42_120", io = "_reportReadyDuration_5uh42_129", co = "_dateTabs_5uh42_135", lo = "_dateTabIndicator_5uh42_147", _o = "_dateTab_5uh42_135", mo = "_dateTabDivider_5uh42_181", uo = "_dateTabSelected_5uh42_191", ho = "_dateTabLabel_5uh42_196", po = "_dateTabNum_5uh42_203", go = "_periodTabs_5uh42_217", bo = "_periodTabIndicator_5uh42_145", fo = "_periodTab_5uh42_145", No = "_periodTabSelected_5uh42_264", vo = "_timeGrid_5uh42_269", wo = "_emptyState_5uh42_296", yo = "_timeSlot_5uh42_300", So = "_timeSlotSelected_5uh42_316", ko = "_timeSlotDisabled_5uh42_324", Io = "_stateMessage_5uh42_335", To = "_retryBtn_5uh42_342", $o = "_emptyStateIcon_5uh42_368", Co = "_emptyStateTitle_5uh42_379", Lo = "_emptyStateSubtitle_5uh42_386", Do = "_loadingWrap_5uh42_395", xo = "_skeletonShimmer_5uh42_400", Bo = "_skeletonDateTabs_5uh42_414", Mo = "_skeletonDateTab_5uh42_414", Ro = "_skeletonPeriodTabs_5uh42_428", Po = "_skeletonPeriodTab_5uh42_428", Ao = "_skeletonTimeGrid_5uh42_443", Eo = "_skeletonTimeSlot_5uh42_449", Oo = "_variantPage_5uh42_460", m = {
|
|
1063
|
+
root: Ya,
|
|
1064
|
+
languageRow: Ja,
|
|
1065
|
+
languageLabel: Za,
|
|
1066
|
+
languageDropdown: Xa,
|
|
1067
|
+
languageDropdownBtn: Qa,
|
|
1068
|
+
languageMenu: Va,
|
|
1069
|
+
languageMenuItem: eo,
|
|
1070
|
+
languageMenuItemSelected: to,
|
|
1071
1071
|
languageDivider: no,
|
|
1072
|
-
sectionHeadingRow:
|
|
1073
|
-
sectionHeading:
|
|
1074
|
-
timezoneLabel:
|
|
1075
|
-
reportReadyBanner:
|
|
1076
|
-
reportReadyDuration:
|
|
1072
|
+
sectionHeadingRow: ao,
|
|
1073
|
+
sectionHeading: oo,
|
|
1074
|
+
timezoneLabel: so,
|
|
1075
|
+
reportReadyBanner: ro,
|
|
1076
|
+
reportReadyDuration: io,
|
|
1077
1077
|
dateTabs: co,
|
|
1078
|
-
dateTabIndicator:
|
|
1079
|
-
dateTab:
|
|
1080
|
-
dateTabDivider:
|
|
1081
|
-
dateTabSelected:
|
|
1078
|
+
dateTabIndicator: lo,
|
|
1079
|
+
dateTab: _o,
|
|
1080
|
+
dateTabDivider: mo,
|
|
1081
|
+
dateTabSelected: uo,
|
|
1082
1082
|
dateTabLabel: ho,
|
|
1083
|
-
dateTabNum:
|
|
1084
|
-
periodTabs:
|
|
1085
|
-
periodTabIndicator:
|
|
1086
|
-
periodTab:
|
|
1087
|
-
periodTabSelected:
|
|
1088
|
-
timeGrid:
|
|
1089
|
-
emptyState:
|
|
1090
|
-
timeSlot:
|
|
1091
|
-
timeSlotSelected:
|
|
1083
|
+
dateTabNum: po,
|
|
1084
|
+
periodTabs: go,
|
|
1085
|
+
periodTabIndicator: bo,
|
|
1086
|
+
periodTab: fo,
|
|
1087
|
+
periodTabSelected: No,
|
|
1088
|
+
timeGrid: vo,
|
|
1089
|
+
emptyState: wo,
|
|
1090
|
+
timeSlot: yo,
|
|
1091
|
+
timeSlotSelected: So,
|
|
1092
1092
|
timeSlotDisabled: ko,
|
|
1093
|
-
stateMessage:
|
|
1094
|
-
retryBtn:
|
|
1095
|
-
emptyStateIcon:
|
|
1096
|
-
emptyStateTitle:
|
|
1097
|
-
emptyStateSubtitle:
|
|
1098
|
-
loadingWrap:
|
|
1093
|
+
stateMessage: Io,
|
|
1094
|
+
retryBtn: To,
|
|
1095
|
+
emptyStateIcon: $o,
|
|
1096
|
+
emptyStateTitle: Co,
|
|
1097
|
+
emptyStateSubtitle: Lo,
|
|
1098
|
+
loadingWrap: Do,
|
|
1099
1099
|
skeletonShimmer: xo,
|
|
1100
|
-
skeletonDateTabs:
|
|
1101
|
-
skeletonDateTab:
|
|
1102
|
-
skeletonPeriodTabs:
|
|
1103
|
-
skeletonPeriodTab:
|
|
1104
|
-
skeletonTimeGrid:
|
|
1105
|
-
skeletonTimeSlot:
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1100
|
+
skeletonDateTabs: Bo,
|
|
1101
|
+
skeletonDateTab: Mo,
|
|
1102
|
+
skeletonPeriodTabs: Ro,
|
|
1103
|
+
skeletonPeriodTab: Po,
|
|
1104
|
+
skeletonTimeGrid: Ao,
|
|
1105
|
+
skeletonTimeSlot: Eo,
|
|
1106
|
+
variantPage: Oo
|
|
1107
|
+
}, Fo = {
|
|
1108
|
+
morning: wa,
|
|
1109
|
+
afternoon: ya,
|
|
1110
|
+
evening: Sa
|
|
1111
|
+
}, qo = {
|
|
1111
1112
|
morning: "planPeriodMorning",
|
|
1112
1113
|
afternoon: "planPeriodAfternoon",
|
|
1113
1114
|
evening: "planPeriodEvening"
|
|
1114
|
-
},
|
|
1115
|
-
days:
|
|
1116
|
-
loading:
|
|
1115
|
+
}, H = (...t) => t.filter(Boolean).join(" "), _r = ({
|
|
1116
|
+
days: t,
|
|
1117
|
+
loading: n = !1,
|
|
1117
1118
|
error: a = !1,
|
|
1118
1119
|
onRetry: s,
|
|
1119
1120
|
selectedDate: r,
|
|
1120
|
-
onDateSelect:
|
|
1121
|
+
onDateSelect: c,
|
|
1121
1122
|
selectedPeriod: d,
|
|
1122
1123
|
onPeriodSelect: l,
|
|
1123
|
-
selectedSlotStart:
|
|
1124
|
-
onSlotSelect:
|
|
1124
|
+
selectedSlotStart: h,
|
|
1125
|
+
onSlotSelect: _,
|
|
1125
1126
|
hideLanguageSelector: f = !1,
|
|
1126
|
-
languageOptions:
|
|
1127
|
+
languageOptions: u = fa,
|
|
1127
1128
|
selectedLanguage: g,
|
|
1128
1129
|
onLanguageSelect: b,
|
|
1129
1130
|
showPhoneNumberSection: w = !0,
|
|
1130
|
-
phoneNumberSection:
|
|
1131
|
-
showAstrologyProfilesSection:
|
|
1131
|
+
phoneNumberSection: E,
|
|
1132
|
+
showAstrologyProfilesSection: S = !0,
|
|
1132
1133
|
astrologyProfilesSection: $,
|
|
1133
1134
|
heading: R,
|
|
1134
|
-
timezoneLabel:
|
|
1135
|
-
languageLabel:
|
|
1136
|
-
reportReadyNote:
|
|
1137
|
-
isGlobal:
|
|
1135
|
+
timezoneLabel: G,
|
|
1136
|
+
languageLabel: Y,
|
|
1137
|
+
reportReadyNote: J,
|
|
1138
|
+
isGlobal: V = !0,
|
|
1138
1139
|
t: y,
|
|
1139
|
-
|
|
1140
|
+
variant: he = "default",
|
|
1141
|
+
className: pe = ""
|
|
1140
1142
|
}) => {
|
|
1141
|
-
const L =
|
|
1142
|
-
() =>
|
|
1143
|
-
[
|
|
1144
|
-
), [
|
|
1145
|
-
const o = r ??
|
|
1143
|
+
const L = A(
|
|
1144
|
+
() => t.filter((o) => o.has_availability && o.slots.length > 0),
|
|
1145
|
+
[t]
|
|
1146
|
+
), [se, ge] = T(""), O = A(() => {
|
|
1147
|
+
const o = r ?? se;
|
|
1146
1148
|
return L.some((p) => p.date === o) ? o : L[0]?.date ?? "";
|
|
1147
|
-
}, [r,
|
|
1148
|
-
() => L.find((o) => o.date ===
|
|
1149
|
-
[L,
|
|
1150
|
-
),
|
|
1149
|
+
}, [r, se, L]), F = A(
|
|
1150
|
+
() => L.find((o) => o.date === O) ?? null,
|
|
1151
|
+
[L, O]
|
|
1152
|
+
), N = A(() => {
|
|
1151
1153
|
if (!F) return [];
|
|
1152
1154
|
const o = new Set(F.slots.map((p) => p.period));
|
|
1153
|
-
return
|
|
1154
|
-
}, [F]), [
|
|
1155
|
-
const o = d ??
|
|
1156
|
-
return o &&
|
|
1157
|
-
}, [d,
|
|
1158
|
-
() => F ? F.slots.filter((o) => o.period ===
|
|
1159
|
-
[F,
|
|
1160
|
-
), [
|
|
1161
|
-
if (
|
|
1162
|
-
const o =
|
|
1163
|
-
return
|
|
1164
|
-
}, [
|
|
1165
|
-
() =>
|
|
1166
|
-
),
|
|
1167
|
-
|
|
1168
|
-
if (!
|
|
1155
|
+
return ze.filter((p) => o.has(p));
|
|
1156
|
+
}, [F]), [q, re] = T(""), z = A(() => {
|
|
1157
|
+
const o = d ?? q;
|
|
1158
|
+
return o && N.includes(o) ? o : N[0] ?? "morning";
|
|
1159
|
+
}, [d, q, N]), ie = A(
|
|
1160
|
+
() => F ? F.slots.filter((o) => o.period === z) : [],
|
|
1161
|
+
[F, z]
|
|
1162
|
+
), [Ie, Ke] = T(""), Te = A(() => {
|
|
1163
|
+
if (h === null) return "";
|
|
1164
|
+
const o = h ?? Ie;
|
|
1165
|
+
return ie.some((p) => p.start === o) ? o : ie[0]?.start ?? "";
|
|
1166
|
+
}, [h, Ie, ie]), [Ue, Ge] = T(
|
|
1167
|
+
() => u[0]?.code ?? "en"
|
|
1168
|
+
), $e = g ?? Ue, be = u.find((o) => o.code === $e) ?? u[0], [ce, fe] = T(!1), Ne = U(null);
|
|
1169
|
+
oe(() => {
|
|
1170
|
+
if (!ce) return;
|
|
1169
1171
|
const o = (p) => {
|
|
1170
|
-
|
|
1172
|
+
Ne.current && !Ne.current.contains(p.target) && fe(!1);
|
|
1171
1173
|
};
|
|
1172
1174
|
return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
|
|
1173
|
-
}, [
|
|
1174
|
-
const
|
|
1175
|
+
}, [ce]);
|
|
1176
|
+
const Ce = U(null), Le = U({}), [ee, De] = T(null), xe = U(null), Be = U(
|
|
1175
1177
|
{}
|
|
1176
|
-
), [
|
|
1177
|
-
|
|
1178
|
+
), [ve, Me] = T(null);
|
|
1179
|
+
oe(() => {
|
|
1178
1180
|
const o = () => {
|
|
1179
|
-
const p =
|
|
1180
|
-
if (!p || !
|
|
1181
|
-
|
|
1181
|
+
const p = Ce.current, D = Le.current[O];
|
|
1182
|
+
if (!p || !D) {
|
|
1183
|
+
De(null);
|
|
1182
1184
|
return;
|
|
1183
1185
|
}
|
|
1184
|
-
const
|
|
1185
|
-
|
|
1186
|
-
left:
|
|
1187
|
-
top:
|
|
1188
|
-
width:
|
|
1189
|
-
height:
|
|
1186
|
+
const W = p.getBoundingClientRect(), x = D.getBoundingClientRect();
|
|
1187
|
+
De({
|
|
1188
|
+
left: x.left - W.left,
|
|
1189
|
+
top: x.top - W.top,
|
|
1190
|
+
width: x.width,
|
|
1191
|
+
height: x.height
|
|
1190
1192
|
});
|
|
1191
1193
|
};
|
|
1192
1194
|
return o(), window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
|
|
1193
|
-
}, [
|
|
1195
|
+
}, [O, L, n, a]), oe(() => {
|
|
1194
1196
|
const o = () => {
|
|
1195
|
-
const p = xe.current,
|
|
1196
|
-
if (!p || !
|
|
1197
|
-
|
|
1197
|
+
const p = xe.current, D = Be.current[z];
|
|
1198
|
+
if (!p || !D) {
|
|
1199
|
+
Me(null);
|
|
1198
1200
|
return;
|
|
1199
1201
|
}
|
|
1200
|
-
const
|
|
1201
|
-
|
|
1202
|
-
left:
|
|
1203
|
-
width:
|
|
1202
|
+
const W = p.getBoundingClientRect(), x = D.getBoundingClientRect();
|
|
1203
|
+
Me({
|
|
1204
|
+
left: x.left - W.left,
|
|
1205
|
+
width: x.width
|
|
1204
1206
|
});
|
|
1205
1207
|
};
|
|
1206
1208
|
return o(), window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
|
|
1207
|
-
}, [
|
|
1208
|
-
const
|
|
1209
|
-
|
|
1210
|
-
}, Ge = (o) => {
|
|
1211
|
-
K(o), l?.(o);
|
|
1212
|
-
}, Ye = (o) => {
|
|
1213
|
-
He(o.start), h?.(o);
|
|
1209
|
+
}, [z, N, n, a]);
|
|
1210
|
+
const Ye = (o) => {
|
|
1211
|
+
ge(o), c?.(o);
|
|
1214
1212
|
}, Je = (o) => {
|
|
1215
|
-
|
|
1213
|
+
re(o), l?.(o);
|
|
1214
|
+
}, Ze = (o) => {
|
|
1215
|
+
Ke(o.start), _?.(o);
|
|
1216
|
+
}, Xe = (o) => {
|
|
1217
|
+
Ge(o), fe(!1), b?.(o);
|
|
1216
1218
|
};
|
|
1217
|
-
return /* @__PURE__ */
|
|
1218
|
-
w && (
|
|
1219
|
-
|
|
1220
|
-
!f && /* @__PURE__ */
|
|
1221
|
-
/* @__PURE__ */
|
|
1222
|
-
/* @__PURE__ */ e("span", { className:
|
|
1223
|
-
/* @__PURE__ */
|
|
1224
|
-
/* @__PURE__ */
|
|
1219
|
+
return /* @__PURE__ */ i("div", { className: H(m.root, he === "page" && m.variantPage, pe), children: [
|
|
1220
|
+
w && (E ?? /* @__PURE__ */ e(Ma, { t: y })),
|
|
1221
|
+
S && ($ ?? /* @__PURE__ */ e(Ga, { t: y })),
|
|
1222
|
+
!f && /* @__PURE__ */ i(Re, { children: [
|
|
1223
|
+
/* @__PURE__ */ i("div", { className: m.languageRow, children: [
|
|
1224
|
+
/* @__PURE__ */ e("span", { className: m.languageLabel, children: Y ?? y?.("planConsultationLanguageLabel") ?? "Your consultation language" }),
|
|
1225
|
+
/* @__PURE__ */ i("div", { className: m.languageDropdown, ref: Ne, children: [
|
|
1226
|
+
/* @__PURE__ */ i(
|
|
1225
1227
|
"button",
|
|
1226
1228
|
{
|
|
1227
1229
|
type: "button",
|
|
1228
|
-
className:
|
|
1229
|
-
onClick: () =>
|
|
1230
|
+
className: m.languageDropdownBtn,
|
|
1231
|
+
onClick: () => fe((o) => !o),
|
|
1230
1232
|
"aria-haspopup": "listbox",
|
|
1231
|
-
"aria-expanded":
|
|
1233
|
+
"aria-expanded": ce,
|
|
1232
1234
|
children: [
|
|
1233
|
-
(
|
|
1234
|
-
/* @__PURE__ */ e(
|
|
1235
|
+
(be?.labelKey && y?.(be.labelKey)) ?? be?.label,
|
|
1236
|
+
/* @__PURE__ */ e(va, {})
|
|
1235
1237
|
]
|
|
1236
1238
|
}
|
|
1237
1239
|
),
|
|
1238
|
-
|
|
1239
|
-
const p = o.code ===
|
|
1240
|
-
return /* @__PURE__ */
|
|
1240
|
+
ce && /* @__PURE__ */ e("ul", { className: m.languageMenu, role: "listbox", children: u.map((o) => {
|
|
1241
|
+
const p = o.code === $e;
|
|
1242
|
+
return /* @__PURE__ */ i(
|
|
1241
1243
|
"li",
|
|
1242
1244
|
{
|
|
1243
1245
|
role: "option",
|
|
1244
1246
|
"aria-selected": p,
|
|
1245
|
-
className:
|
|
1246
|
-
|
|
1247
|
-
p &&
|
|
1247
|
+
className: H(
|
|
1248
|
+
m.languageMenuItem,
|
|
1249
|
+
p && m.languageMenuItemSelected
|
|
1248
1250
|
),
|
|
1249
|
-
onClick: () =>
|
|
1251
|
+
onClick: () => Xe(o.code),
|
|
1250
1252
|
children: [
|
|
1251
1253
|
(o.labelKey && y?.(o.labelKey)) ?? o.label,
|
|
1252
|
-
p && /* @__PURE__ */ e(
|
|
1254
|
+
p && /* @__PURE__ */ e(Na, {})
|
|
1253
1255
|
]
|
|
1254
1256
|
},
|
|
1255
1257
|
o.code
|
|
@@ -1257,118 +1259,118 @@ const ua = (n) => {
|
|
|
1257
1259
|
}) })
|
|
1258
1260
|
] })
|
|
1259
1261
|
] }),
|
|
1260
|
-
/* @__PURE__ */ e("hr", { className:
|
|
1262
|
+
/* @__PURE__ */ e("hr", { className: m.languageDivider })
|
|
1261
1263
|
] }),
|
|
1262
|
-
/* @__PURE__ */
|
|
1263
|
-
/* @__PURE__ */ e("p", { className:
|
|
1264
|
-
|
|
1264
|
+
/* @__PURE__ */ i("div", { className: m.sectionHeadingRow, children: [
|
|
1265
|
+
/* @__PURE__ */ e("p", { className: m.sectionHeading, children: R ?? y?.("planSelectSlotHeading") ?? "Book your preferred consultation slot" }),
|
|
1266
|
+
G && /* @__PURE__ */ e("p", { className: m.timezoneLabel, children: G })
|
|
1265
1267
|
] }),
|
|
1266
|
-
|
|
1268
|
+
J === void 0 ? /* @__PURE__ */ i("p", { className: m.reportReadyBanner, children: [
|
|
1267
1269
|
y?.("planReportReadyPrefix") ?? "Your Report will be ready in",
|
|
1268
1270
|
" ",
|
|
1269
|
-
/* @__PURE__ */ e("span", { className:
|
|
1271
|
+
/* @__PURE__ */ e("span", { className: m.reportReadyDuration, children: y?.("planReportReadyDuration") ?? "24-48 hours" }),
|
|
1270
1272
|
" ",
|
|
1271
1273
|
y?.("planReportReadySuffix") ?? "from today"
|
|
1272
|
-
] }) :
|
|
1273
|
-
|
|
1274
|
-
/* @__PURE__ */ e("div", { className:
|
|
1275
|
-
/* @__PURE__ */ e("div", { className:
|
|
1276
|
-
/* @__PURE__ */ e("div", { className:
|
|
1274
|
+
] }) : J,
|
|
1275
|
+
n && /* @__PURE__ */ i("div", { className: m.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
|
|
1276
|
+
/* @__PURE__ */ e("div", { className: m.skeletonDateTabs, children: Array.from({ length: 5 }).map((o, p) => /* @__PURE__ */ e("div", { className: H(m.skeletonDateTab, m.skeletonShimmer) }, p)) }),
|
|
1277
|
+
/* @__PURE__ */ e("div", { className: m.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((o, p) => /* @__PURE__ */ e("div", { className: H(m.skeletonPeriodTab, m.skeletonShimmer) }, p)) }),
|
|
1278
|
+
/* @__PURE__ */ e("div", { className: m.skeletonTimeGrid, children: Array.from({ length: 6 }).map((o, p) => /* @__PURE__ */ e("div", { className: H(m.skeletonTimeSlot, m.skeletonShimmer) }, p)) })
|
|
1277
1279
|
] }),
|
|
1278
|
-
!
|
|
1280
|
+
!n && a && /* @__PURE__ */ i("div", { className: m.stateMessage, children: [
|
|
1279
1281
|
y?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
|
|
1280
|
-
s && /* @__PURE__ */ e("button", { type: "button", className:
|
|
1282
|
+
s && /* @__PURE__ */ e("button", { type: "button", className: m.retryBtn, onClick: s, children: y?.("planRetry") ?? "Retry" })
|
|
1281
1283
|
] }),
|
|
1282
|
-
!
|
|
1283
|
-
/* @__PURE__ */ e("span", { className:
|
|
1284
|
-
/* @__PURE__ */ e("p", { className:
|
|
1285
|
-
/* @__PURE__ */ e("p", { className:
|
|
1284
|
+
!n && !a && L.length === 0 && /* @__PURE__ */ i("div", { className: m.emptyState, children: [
|
|
1285
|
+
/* @__PURE__ */ e("span", { className: m.emptyStateIcon, children: /* @__PURE__ */ e(ka, {}) }),
|
|
1286
|
+
/* @__PURE__ */ e("p", { className: m.emptyStateTitle, children: y?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
|
|
1287
|
+
/* @__PURE__ */ e("p", { className: m.emptyStateSubtitle, children: y?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
|
|
1286
1288
|
] }),
|
|
1287
|
-
!
|
|
1288
|
-
/* @__PURE__ */
|
|
1289
|
+
!n && !a && L.length > 0 && /* @__PURE__ */ i(Re, { children: [
|
|
1290
|
+
/* @__PURE__ */ i(
|
|
1289
1291
|
"div",
|
|
1290
1292
|
{
|
|
1291
|
-
className:
|
|
1292
|
-
ref:
|
|
1293
|
+
className: m.dateTabs,
|
|
1294
|
+
ref: Ce,
|
|
1293
1295
|
role: "radiogroup",
|
|
1294
1296
|
"aria-label": "Consultation date",
|
|
1295
1297
|
children: [
|
|
1296
|
-
|
|
1298
|
+
ee && /* @__PURE__ */ e(
|
|
1297
1299
|
"span",
|
|
1298
1300
|
{
|
|
1299
|
-
className:
|
|
1301
|
+
className: m.dateTabIndicator,
|
|
1300
1302
|
style: {
|
|
1301
|
-
transform: `translate(${
|
|
1302
|
-
width:
|
|
1303
|
-
height:
|
|
1303
|
+
transform: `translate(${ee.left}px, ${ee.top}px)`,
|
|
1304
|
+
width: ee.width,
|
|
1305
|
+
height: ee.height
|
|
1304
1306
|
},
|
|
1305
1307
|
"aria-hidden": "true"
|
|
1306
1308
|
}
|
|
1307
1309
|
),
|
|
1308
1310
|
L.map((o) => {
|
|
1309
|
-
const p = o.date ===
|
|
1310
|
-
return /* @__PURE__ */
|
|
1311
|
-
/* @__PURE__ */
|
|
1311
|
+
const p = o.date === O, { dayLabel: D, dayNum: W } = ba(o.date);
|
|
1312
|
+
return /* @__PURE__ */ i(Qe, { children: [
|
|
1313
|
+
/* @__PURE__ */ i(
|
|
1312
1314
|
"button",
|
|
1313
1315
|
{
|
|
1314
1316
|
type: "button",
|
|
1315
|
-
ref: (
|
|
1316
|
-
|
|
1317
|
+
ref: (x) => {
|
|
1318
|
+
Le.current[o.date] = x;
|
|
1317
1319
|
},
|
|
1318
|
-
className:
|
|
1320
|
+
className: H(m.dateTab, p && m.dateTabSelected),
|
|
1319
1321
|
role: "radio",
|
|
1320
1322
|
"aria-checked": p,
|
|
1321
|
-
onClick: () =>
|
|
1323
|
+
onClick: () => Ye(o.date),
|
|
1322
1324
|
children: [
|
|
1323
|
-
/* @__PURE__ */ e("span", { className:
|
|
1324
|
-
/* @__PURE__ */ e("span", { className:
|
|
1325
|
+
/* @__PURE__ */ e("span", { className: m.dateTabLabel, children: y?.(D) ?? D }),
|
|
1326
|
+
/* @__PURE__ */ e("span", { className: m.dateTabNum, children: W })
|
|
1325
1327
|
]
|
|
1326
1328
|
}
|
|
1327
1329
|
),
|
|
1328
|
-
/* @__PURE__ */ e("span", { className:
|
|
1330
|
+
/* @__PURE__ */ e("span", { className: m.dateTabDivider, "aria-hidden": !0 })
|
|
1329
1331
|
] }, o.date);
|
|
1330
1332
|
})
|
|
1331
1333
|
]
|
|
1332
1334
|
}
|
|
1333
1335
|
),
|
|
1334
|
-
/* @__PURE__ */
|
|
1336
|
+
/* @__PURE__ */ i(
|
|
1335
1337
|
"div",
|
|
1336
1338
|
{
|
|
1337
|
-
className:
|
|
1339
|
+
className: m.periodTabs,
|
|
1338
1340
|
ref: xe,
|
|
1339
1341
|
role: "tablist",
|
|
1340
1342
|
"aria-label": "Time of day",
|
|
1341
1343
|
children: [
|
|
1342
|
-
|
|
1344
|
+
ve && /* @__PURE__ */ e(
|
|
1343
1345
|
"span",
|
|
1344
1346
|
{
|
|
1345
|
-
className:
|
|
1347
|
+
className: m.periodTabIndicator,
|
|
1346
1348
|
style: {
|
|
1347
|
-
transform: `translateX(${
|
|
1348
|
-
width:
|
|
1349
|
+
transform: `translateX(${ve.left}px)`,
|
|
1350
|
+
width: ve.width
|
|
1349
1351
|
},
|
|
1350
1352
|
"aria-hidden": "true"
|
|
1351
1353
|
}
|
|
1352
1354
|
),
|
|
1353
|
-
|
|
1354
|
-
const p =
|
|
1355
|
-
return /* @__PURE__ */
|
|
1355
|
+
N.map((o) => {
|
|
1356
|
+
const p = Fo[o], D = o === "evening" && V, W = D ? "planPeriodEveningNight" : qo[o];
|
|
1357
|
+
return /* @__PURE__ */ i(
|
|
1356
1358
|
"button",
|
|
1357
1359
|
{
|
|
1358
|
-
ref: (
|
|
1359
|
-
|
|
1360
|
+
ref: (x) => {
|
|
1361
|
+
Be.current[o] = x;
|
|
1360
1362
|
},
|
|
1361
1363
|
type: "button",
|
|
1362
|
-
className:
|
|
1363
|
-
|
|
1364
|
-
o ===
|
|
1364
|
+
className: H(
|
|
1365
|
+
m.periodTab,
|
|
1366
|
+
o === z && m.periodTabSelected
|
|
1365
1367
|
),
|
|
1366
1368
|
role: "tab",
|
|
1367
|
-
"aria-selected": o ===
|
|
1368
|
-
onClick: () =>
|
|
1369
|
+
"aria-selected": o === z,
|
|
1370
|
+
onClick: () => Je(o),
|
|
1369
1371
|
children: [
|
|
1370
1372
|
/* @__PURE__ */ e(p, {}),
|
|
1371
|
-
y?.(
|
|
1373
|
+
y?.(W) ?? (D ? "Evening/Night" : o.charAt(0).toUpperCase() + o.slice(1))
|
|
1372
1374
|
]
|
|
1373
1375
|
},
|
|
1374
1376
|
o
|
|
@@ -1380,43 +1382,54 @@ const ua = (n) => {
|
|
|
1380
1382
|
/* @__PURE__ */ e(
|
|
1381
1383
|
"div",
|
|
1382
1384
|
{
|
|
1383
|
-
className:
|
|
1385
|
+
className: m.timeGrid,
|
|
1384
1386
|
role: "radiogroup",
|
|
1385
1387
|
"aria-label": "Consultation time",
|
|
1386
|
-
children:
|
|
1388
|
+
children: ie.map((o, p) => /* @__PURE__ */ e(
|
|
1387
1389
|
"button",
|
|
1388
1390
|
{
|
|
1389
1391
|
type: "button",
|
|
1390
|
-
className:
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
o.disabled &&
|
|
1392
|
+
className: H(
|
|
1393
|
+
m.timeSlot,
|
|
1394
|
+
Te === o.start && m.timeSlotSelected,
|
|
1395
|
+
o.disabled && m.timeSlotDisabled
|
|
1394
1396
|
),
|
|
1395
1397
|
role: "radio",
|
|
1396
|
-
"aria-checked":
|
|
1398
|
+
"aria-checked": Te === o.start,
|
|
1397
1399
|
"aria-disabled": o.disabled || void 0,
|
|
1398
1400
|
disabled: o.disabled,
|
|
1399
|
-
onClick: () => !o.disabled &&
|
|
1400
|
-
children:
|
|
1401
|
+
onClick: () => !o.disabled && Ze(o),
|
|
1402
|
+
children: ga(o.start)
|
|
1401
1403
|
},
|
|
1402
1404
|
`${o.start}-${p}`
|
|
1403
1405
|
))
|
|
1404
1406
|
},
|
|
1405
|
-
`${
|
|
1407
|
+
`${O}-${z}`
|
|
1406
1408
|
)
|
|
1407
1409
|
] })
|
|
1408
1410
|
] });
|
|
1409
|
-
},
|
|
1410
|
-
const
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1411
|
+
}, mr = (t, n) => {
|
|
1412
|
+
const a = t.filter((_) => _.has_availability && _.slots.length > 0), s = a.find((_) => _.date === n.date) ?? a[0];
|
|
1413
|
+
if (!s) return { date: "", period: "morning", slot: null };
|
|
1414
|
+
const r = new Set(s.slots.map((_) => _.period)), c = ze.filter((_) => r.has(_)), d = n.period && c.includes(n.period) ? n.period : c[0] ?? "morning";
|
|
1415
|
+
if (n.slotStart === null) return { date: s.date, period: d, slot: null };
|
|
1416
|
+
const l = s.slots.filter((_) => _.period === d && !_.disabled), h = l.find((_) => _.start === n.slotStart) ?? l[0] ?? null;
|
|
1417
|
+
return { date: s.date, period: d, slot: h };
|
|
1418
|
+
}, ur = (t) => {
|
|
1419
|
+
if (!t) return null;
|
|
1420
|
+
const n = Math.round((Date.parse(t.end) - Date.parse(t.start)) / 6e4);
|
|
1421
|
+
return Number.isFinite(n) && n > 0 ? n : null;
|
|
1422
|
+
}, We = "+05:30", Wo = (t) => {
|
|
1423
|
+
const n = String(t.getMonth() + 1).padStart(2, "0"), a = String(t.getDate()).padStart(2, "0");
|
|
1424
|
+
return `${t.getFullYear()}-${n}-${a}`;
|
|
1425
|
+
}, jo = (t, n, a, s) => {
|
|
1426
|
+
const r = (l) => String(l).padStart(2, "0"), c = a + 30, d = n + Math.floor(c / 60);
|
|
1414
1427
|
return {
|
|
1415
|
-
start: `${
|
|
1416
|
-
end: `${
|
|
1428
|
+
start: `${t}T${r(n)}:${r(a)}:00${We}`,
|
|
1429
|
+
end: `${t}T${r(d)}:${r(c % 60)}:00${We}`,
|
|
1417
1430
|
period: s
|
|
1418
1431
|
};
|
|
1419
|
-
},
|
|
1432
|
+
}, Ho = {
|
|
1420
1433
|
morning: [
|
|
1421
1434
|
[9, 0],
|
|
1422
1435
|
[9, 30],
|
|
@@ -1438,24 +1451,24 @@ const ua = (n) => {
|
|
|
1438
1451
|
[19, 0],
|
|
1439
1452
|
[20, 0]
|
|
1440
1453
|
]
|
|
1441
|
-
},
|
|
1454
|
+
}, ne = (t, n) => {
|
|
1442
1455
|
const a = /* @__PURE__ */ new Date();
|
|
1443
|
-
a.setDate(a.getDate() +
|
|
1444
|
-
const s =
|
|
1445
|
-
(
|
|
1456
|
+
a.setDate(a.getDate() + t);
|
|
1457
|
+
const s = Wo(a), r = n.flatMap(
|
|
1458
|
+
(c) => Ho[c].map(([d, l]) => jo(s, d, l, c))
|
|
1446
1459
|
);
|
|
1447
1460
|
return { date: s, has_availability: r.length > 0, slots: r };
|
|
1448
|
-
},
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
],
|
|
1455
|
-
...
|
|
1461
|
+
}, zo = [
|
|
1462
|
+
ne(0, ["morning", "afternoon", "evening"]),
|
|
1463
|
+
ne(1, ["morning", "afternoon"]),
|
|
1464
|
+
ne(2, ["afternoon", "evening"]),
|
|
1465
|
+
ne(3, ["morning", "evening"]),
|
|
1466
|
+
ne(4, ["morning", "afternoon", "evening"])
|
|
1467
|
+
], hr = zo.map((t) => ({
|
|
1468
|
+
...t,
|
|
1456
1469
|
has_availability: !1,
|
|
1457
1470
|
slots: []
|
|
1458
|
-
})),
|
|
1471
|
+
})), Ko = () => /* @__PURE__ */ e(
|
|
1459
1472
|
"svg",
|
|
1460
1473
|
{
|
|
1461
1474
|
width: "14",
|
|
@@ -1469,7 +1482,7 @@ const ua = (n) => {
|
|
|
1469
1482
|
"aria-hidden": !0,
|
|
1470
1483
|
children: /* @__PURE__ */ e("path", { d: "M6 9l6 6 6-6" })
|
|
1471
1484
|
}
|
|
1472
|
-
),
|
|
1485
|
+
), Uo = [
|
|
1473
1486
|
{ name: "United States", code: "+1", iso: "US" },
|
|
1474
1487
|
{ name: "United Kingdom", code: "+44", iso: "GB" },
|
|
1475
1488
|
{ name: "Australia", code: "+61", iso: "AU" },
|
|
@@ -1524,139 +1537,139 @@ const ua = (n) => {
|
|
|
1524
1537
|
{ name: "Austria", code: "+43", iso: "AT" },
|
|
1525
1538
|
{ name: "Réunion", code: "+262", iso: "RE" },
|
|
1526
1539
|
{ name: "India", code: "+91", iso: "IN" }
|
|
1527
|
-
],
|
|
1528
|
-
if (!
|
|
1529
|
-
const
|
|
1530
|
-
return String.fromCodePoint(...
|
|
1531
|
-
},
|
|
1532
|
-
countryCode:
|
|
1533
|
-
contactNumber:
|
|
1540
|
+
], Go = (t) => {
|
|
1541
|
+
if (!t || t.length !== 2) return "🏳️";
|
|
1542
|
+
const n = t.toUpperCase().split("").map((a) => 127397 + a.charCodeAt(0));
|
|
1543
|
+
return String.fromCodePoint(...n);
|
|
1544
|
+
}, Yo = ({
|
|
1545
|
+
countryCode: t,
|
|
1546
|
+
contactNumber: n,
|
|
1534
1547
|
countries: a,
|
|
1535
1548
|
onCountryCodeChange: s,
|
|
1536
1549
|
onPhoneNumberChange: r,
|
|
1537
|
-
onValidationChange:
|
|
1550
|
+
onValidationChange: c,
|
|
1538
1551
|
onDropdownFocus: d,
|
|
1539
1552
|
onInputFocus: l
|
|
1540
1553
|
}) => {
|
|
1541
|
-
const [
|
|
1542
|
-
(
|
|
1543
|
-
if (s(
|
|
1544
|
-
const { isValid: $, error: R } =
|
|
1545
|
-
|
|
1554
|
+
const [h, _] = T(!1), f = a.find((S) => S.code === t) ?? a[0], u = Pe(t), g = le(
|
|
1555
|
+
(S) => {
|
|
1556
|
+
if (s(S.code, S.name), _(!1), n && c) {
|
|
1557
|
+
const { isValid: $, error: R } = Ae(n, S.code);
|
|
1558
|
+
c($, R);
|
|
1546
1559
|
}
|
|
1547
1560
|
},
|
|
1548
|
-
[
|
|
1561
|
+
[n, s, c]
|
|
1549
1562
|
), b = le(
|
|
1550
|
-
(
|
|
1551
|
-
const R =
|
|
1552
|
-
if (r(R),
|
|
1553
|
-
const { isValid:
|
|
1554
|
-
|
|
1563
|
+
(S) => {
|
|
1564
|
+
const R = S.target.value.replace(/[^\d]/g, "").slice(0, Pe(t));
|
|
1565
|
+
if (r(R), c) {
|
|
1566
|
+
const { isValid: G, error: Y } = Ae(R, t);
|
|
1567
|
+
c(G, Y);
|
|
1555
1568
|
}
|
|
1556
1569
|
},
|
|
1557
|
-
[
|
|
1570
|
+
[t, r, c]
|
|
1558
1571
|
), w = le(() => {
|
|
1559
|
-
|
|
1560
|
-
}, [
|
|
1561
|
-
|
|
1562
|
-
}, [
|
|
1572
|
+
_((S) => (S || d?.(t), !S));
|
|
1573
|
+
}, [t, d]), E = le(() => {
|
|
1574
|
+
_(!1), l?.(t);
|
|
1575
|
+
}, [t, l]);
|
|
1563
1576
|
return {
|
|
1564
|
-
isDropdownOpen:
|
|
1577
|
+
isDropdownOpen: h,
|
|
1565
1578
|
selectedCountry: f,
|
|
1566
|
-
maxLength:
|
|
1579
|
+
maxLength: u,
|
|
1567
1580
|
handleCountrySelect: g,
|
|
1568
1581
|
handlePhoneChange: b,
|
|
1569
1582
|
handleDropdownToggle: w,
|
|
1570
|
-
handlePhoneFocus:
|
|
1571
|
-
closeDropdown: () =>
|
|
1583
|
+
handlePhoneFocus: E,
|
|
1584
|
+
closeDropdown: () => _(!1)
|
|
1572
1585
|
};
|
|
1573
|
-
},
|
|
1574
|
-
root:
|
|
1575
|
-
label:
|
|
1576
|
-
row:
|
|
1577
|
-
dropdownWrap:
|
|
1578
|
-
dropdownBtn:
|
|
1579
|
-
dropdownMenu:
|
|
1580
|
-
dropdownItem:
|
|
1581
|
-
dropdownItemCode:
|
|
1582
|
-
dropdownItemName:
|
|
1583
|
-
flagImg:
|
|
1584
|
-
flagEmoji:
|
|
1585
|
-
input:
|
|
1586
|
-
inputError:
|
|
1587
|
-
helper:
|
|
1588
|
-
error:
|
|
1589
|
-
},
|
|
1590
|
-
countryCode:
|
|
1591
|
-
contactNumber:
|
|
1586
|
+
}, Jo = "_root_3ywyc_2", Zo = "_label_3ywyc_9", Xo = "_row_3ywyc_17", Qo = "_dropdownWrap_3ywyc_23", Vo = "_dropdownBtn_3ywyc_29", es = "_dropdownMenu_3ywyc_50", ts = "_dropdownItem_3ywyc_64", ns = "_dropdownItemCode_3ywyc_80", as = "_dropdownItemName_3ywyc_85", os = "_flagImg_3ywyc_93", ss = "_flagEmoji_3ywyc_97", rs = "_input_3ywyc_102", is = "_inputError_3ywyc_121", cs = "_helper_3ywyc_129", ls = "_error_3ywyc_137", k = {
|
|
1587
|
+
root: Jo,
|
|
1588
|
+
label: Zo,
|
|
1589
|
+
row: Xo,
|
|
1590
|
+
dropdownWrap: Qo,
|
|
1591
|
+
dropdownBtn: Vo,
|
|
1592
|
+
dropdownMenu: es,
|
|
1593
|
+
dropdownItem: ts,
|
|
1594
|
+
dropdownItemCode: ns,
|
|
1595
|
+
dropdownItemName: as,
|
|
1596
|
+
flagImg: os,
|
|
1597
|
+
flagEmoji: ss,
|
|
1598
|
+
input: rs,
|
|
1599
|
+
inputError: is,
|
|
1600
|
+
helper: cs,
|
|
1601
|
+
error: ls
|
|
1602
|
+
}, je = (...t) => t.filter(Boolean).join(" "), pr = ({
|
|
1603
|
+
countryCode: t,
|
|
1604
|
+
contactNumber: n,
|
|
1592
1605
|
error: a,
|
|
1593
1606
|
label: s,
|
|
1594
1607
|
helperText: r,
|
|
1595
|
-
countries:
|
|
1608
|
+
countries: c = Uo,
|
|
1596
1609
|
getFlagUrl: d,
|
|
1597
1610
|
onCountryCodeChange: l,
|
|
1598
|
-
onPhoneNumberChange:
|
|
1599
|
-
onValidationChange:
|
|
1611
|
+
onPhoneNumberChange: h,
|
|
1612
|
+
onValidationChange: _,
|
|
1600
1613
|
onDropdownFocus: f,
|
|
1601
|
-
onInputFocus:
|
|
1614
|
+
onInputFocus: u,
|
|
1602
1615
|
inputRef: g,
|
|
1603
1616
|
t: b,
|
|
1604
1617
|
className: w = ""
|
|
1605
1618
|
}) => {
|
|
1606
|
-
const [
|
|
1607
|
-
isDropdownOpen:
|
|
1619
|
+
const [E, S] = T(c[0]?.code ?? "+91"), [$, R] = T(""), G = t ?? E, Y = n ?? $, J = U(null), {
|
|
1620
|
+
isDropdownOpen: V,
|
|
1608
1621
|
selectedCountry: y,
|
|
1609
|
-
maxLength:
|
|
1610
|
-
handleCountrySelect:
|
|
1611
|
-
handlePhoneChange:
|
|
1612
|
-
handleDropdownToggle:
|
|
1613
|
-
handlePhoneFocus:
|
|
1614
|
-
closeDropdown:
|
|
1615
|
-
} =
|
|
1616
|
-
countryCode:
|
|
1617
|
-
contactNumber:
|
|
1618
|
-
countries:
|
|
1619
|
-
onCountryCodeChange: (N,
|
|
1620
|
-
|
|
1622
|
+
maxLength: he,
|
|
1623
|
+
handleCountrySelect: pe,
|
|
1624
|
+
handlePhoneChange: L,
|
|
1625
|
+
handleDropdownToggle: se,
|
|
1626
|
+
handlePhoneFocus: ge,
|
|
1627
|
+
closeDropdown: O
|
|
1628
|
+
} = Yo({
|
|
1629
|
+
countryCode: G,
|
|
1630
|
+
contactNumber: Y,
|
|
1631
|
+
countries: c,
|
|
1632
|
+
onCountryCodeChange: (N, q) => {
|
|
1633
|
+
S(N), l?.(N, q);
|
|
1621
1634
|
},
|
|
1622
1635
|
onPhoneNumberChange: (N) => {
|
|
1623
|
-
R(N),
|
|
1636
|
+
R(N), h?.(N);
|
|
1624
1637
|
},
|
|
1625
|
-
onValidationChange:
|
|
1638
|
+
onValidationChange: _,
|
|
1626
1639
|
onDropdownFocus: f,
|
|
1627
|
-
onInputFocus:
|
|
1640
|
+
onInputFocus: u
|
|
1628
1641
|
});
|
|
1629
|
-
|
|
1630
|
-
const N = (
|
|
1631
|
-
|
|
1642
|
+
oe(() => {
|
|
1643
|
+
const N = (q) => {
|
|
1644
|
+
J.current && !J.current.contains(q.target) && O();
|
|
1632
1645
|
};
|
|
1633
|
-
return
|
|
1634
|
-
}, [
|
|
1635
|
-
const
|
|
1636
|
-
const
|
|
1637
|
-
return
|
|
1646
|
+
return V && document.addEventListener("mousedown", N), () => document.removeEventListener("mousedown", N);
|
|
1647
|
+
}, [V, O]);
|
|
1648
|
+
const F = (N, q) => {
|
|
1649
|
+
const re = N ? d?.(N) : null;
|
|
1650
|
+
return re ? /* @__PURE__ */ e("img", { src: re, alt: q, width: 20, height: 14, className: k.flagImg }) : /* @__PURE__ */ e("span", { className: k.flagEmoji, "aria-hidden": !0, children: Go(N) });
|
|
1638
1651
|
};
|
|
1639
|
-
return /* @__PURE__ */
|
|
1640
|
-
s && /* @__PURE__ */ e("div", { className:
|
|
1641
|
-
/* @__PURE__ */
|
|
1642
|
-
/* @__PURE__ */
|
|
1643
|
-
/* @__PURE__ */
|
|
1644
|
-
|
|
1652
|
+
return /* @__PURE__ */ i("div", { className: je(k.root, w), children: [
|
|
1653
|
+
s && /* @__PURE__ */ e("div", { className: k.label, children: s }),
|
|
1654
|
+
/* @__PURE__ */ i("div", { className: k.row, children: [
|
|
1655
|
+
/* @__PURE__ */ i("div", { className: k.dropdownWrap, ref: J, children: [
|
|
1656
|
+
/* @__PURE__ */ i("button", { type: "button", className: k.dropdownBtn, onClick: se, children: [
|
|
1657
|
+
F(y?.iso, y?.name ?? "Flag"),
|
|
1645
1658
|
/* @__PURE__ */ e("span", { children: y?.code ?? "+91" }),
|
|
1646
|
-
/* @__PURE__ */ e(
|
|
1659
|
+
/* @__PURE__ */ e(Ko, {})
|
|
1647
1660
|
] }),
|
|
1648
|
-
|
|
1661
|
+
V && /* @__PURE__ */ e("div", { className: k.dropdownMenu, role: "listbox", children: c.map((N) => /* @__PURE__ */ i(
|
|
1649
1662
|
"button",
|
|
1650
1663
|
{
|
|
1651
1664
|
type: "button",
|
|
1652
1665
|
role: "option",
|
|
1653
1666
|
"aria-selected": N.code === y?.code,
|
|
1654
|
-
className:
|
|
1655
|
-
onClick: () =>
|
|
1667
|
+
className: k.dropdownItem,
|
|
1668
|
+
onClick: () => pe(N),
|
|
1656
1669
|
children: [
|
|
1657
|
-
|
|
1658
|
-
/* @__PURE__ */ e("span", { className:
|
|
1659
|
-
/* @__PURE__ */ e("span", { className:
|
|
1670
|
+
F(N.iso, N.name),
|
|
1671
|
+
/* @__PURE__ */ e("span", { className: k.dropdownItemCode, children: N.code }),
|
|
1672
|
+
/* @__PURE__ */ e("span", { className: k.dropdownItemName, children: N.name })
|
|
1660
1673
|
]
|
|
1661
1674
|
},
|
|
1662
1675
|
`${N.code}-${N.iso}`
|
|
@@ -1668,20 +1681,20 @@ const ua = (n) => {
|
|
|
1668
1681
|
type: "tel",
|
|
1669
1682
|
inputMode: "numeric",
|
|
1670
1683
|
autoComplete: "off",
|
|
1671
|
-
value:
|
|
1672
|
-
maxLength:
|
|
1684
|
+
value: Y,
|
|
1685
|
+
maxLength: he,
|
|
1673
1686
|
ref: g,
|
|
1674
|
-
className:
|
|
1687
|
+
className: je(k.input, a && k.inputError),
|
|
1675
1688
|
placeholder: b?.("planPhoneNumberPlaceholder") ?? "0000000000",
|
|
1676
|
-
onChange:
|
|
1677
|
-
onFocus:
|
|
1689
|
+
onChange: L,
|
|
1690
|
+
onFocus: ge
|
|
1678
1691
|
}
|
|
1679
1692
|
)
|
|
1680
1693
|
] }),
|
|
1681
|
-
r && /* @__PURE__ */ e("div", { className:
|
|
1682
|
-
a && /* @__PURE__ */ e("p", { className:
|
|
1694
|
+
r && /* @__PURE__ */ e("div", { className: k.helper, children: r }),
|
|
1695
|
+
a && /* @__PURE__ */ e("p", { className: k.error, children: a })
|
|
1683
1696
|
] });
|
|
1684
|
-
},
|
|
1697
|
+
}, ds = () => /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
|
|
1685
1698
|
"path",
|
|
1686
1699
|
{
|
|
1687
1700
|
d: "M8 1.33337L10.06 5.50671L14.6667 6.18004L11.3333 9.42671L12.12 14.0134L8 11.8467L3.88 14.0134L4.66667 9.42671L1.33333 6.18004L5.94 5.50671L8 1.33337Z",
|
|
@@ -1691,7 +1704,7 @@ const ua = (n) => {
|
|
|
1691
1704
|
strokeLinecap: "round",
|
|
1692
1705
|
strokeLinejoin: "round"
|
|
1693
1706
|
}
|
|
1694
|
-
) }),
|
|
1707
|
+
) }), _s = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
|
|
1695
1708
|
"path",
|
|
1696
1709
|
{
|
|
1697
1710
|
fillRule: "evenodd",
|
|
@@ -1699,33 +1712,33 @@ const ua = (n) => {
|
|
|
1699
1712
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
1700
1713
|
fill: "#F97316"
|
|
1701
1714
|
}
|
|
1702
|
-
) }),
|
|
1703
|
-
card:
|
|
1704
|
-
cardSelected:
|
|
1705
|
-
photoWrap:
|
|
1706
|
-
photoFrame:
|
|
1707
|
-
photoImg:
|
|
1708
|
-
ratingPill:
|
|
1709
|
-
ratingValue:
|
|
1710
|
-
info:
|
|
1711
|
-
name:
|
|
1712
|
-
meta:
|
|
1713
|
-
languages:
|
|
1714
|
-
consultationCount:
|
|
1715
|
-
checkIcon:
|
|
1716
|
-
recommendedBadge:
|
|
1717
|
-
recommendedLabel:
|
|
1718
|
-
},
|
|
1719
|
-
photoUrl:
|
|
1720
|
-
name:
|
|
1715
|
+
) }), ms = "_card_1mv2d_3", us = "_cardSelected_1mv2d_25", hs = "_photoWrap_1mv2d_32", ps = "_photoFrame_1mv2d_38", gs = "_photoImg_1mv2d_46", bs = "_ratingPill_1mv2d_52", fs = "_ratingValue_1mv2d_67", Ns = "_info_1mv2d_75", vs = "_name_1mv2d_85", ws = "_meta_1mv2d_96", ys = "_languages_1mv2d_104", Ss = "_consultationCount_1mv2d_114", ks = "_checkIcon_1mv2d_122", Is = "_recommendedBadge_1mv2d_127", Ts = "_recommendedLabel_1mv2d_149", I = {
|
|
1716
|
+
card: ms,
|
|
1717
|
+
cardSelected: us,
|
|
1718
|
+
photoWrap: hs,
|
|
1719
|
+
photoFrame: ps,
|
|
1720
|
+
photoImg: gs,
|
|
1721
|
+
ratingPill: bs,
|
|
1722
|
+
ratingValue: fs,
|
|
1723
|
+
info: Ns,
|
|
1724
|
+
name: vs,
|
|
1725
|
+
meta: ws,
|
|
1726
|
+
languages: ys,
|
|
1727
|
+
consultationCount: Ss,
|
|
1728
|
+
checkIcon: ks,
|
|
1729
|
+
recommendedBadge: Is,
|
|
1730
|
+
recommendedLabel: Ts
|
|
1731
|
+
}, $s = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='78' viewBox='0 0 64 78'><rect width='64' height='78' fill='%23F3F4F6'/><circle cx='32' cy='30' r='12' fill='%23D1D5DB'/><path d='M12 70c2-14 12-22 20-22s18 8 20 22' fill='%23D1D5DB'/></svg>", Cs = ({
|
|
1732
|
+
photoUrl: t,
|
|
1733
|
+
name: n,
|
|
1721
1734
|
rating: a,
|
|
1722
|
-
fallbackPhotoUrl: s =
|
|
1723
|
-
}) => /* @__PURE__ */
|
|
1735
|
+
fallbackPhotoUrl: s = $s
|
|
1736
|
+
}) => /* @__PURE__ */ i("div", { className: I.photoWrap, children: [
|
|
1724
1737
|
/* @__PURE__ */ e("div", { className: I.photoFrame, children: /* @__PURE__ */ e(
|
|
1725
1738
|
"img",
|
|
1726
1739
|
{
|
|
1727
|
-
src:
|
|
1728
|
-
alt:
|
|
1740
|
+
src: t || s,
|
|
1741
|
+
alt: n,
|
|
1729
1742
|
width: 64,
|
|
1730
1743
|
height: 78,
|
|
1731
1744
|
className: I.photoImg,
|
|
@@ -1734,96 +1747,96 @@ const ua = (n) => {
|
|
|
1734
1747
|
}
|
|
1735
1748
|
}
|
|
1736
1749
|
) }),
|
|
1737
|
-
/* @__PURE__ */
|
|
1750
|
+
/* @__PURE__ */ i("div", { className: I.ratingPill, children: [
|
|
1738
1751
|
/* @__PURE__ */ e("span", { className: I.ratingValue, children: a }),
|
|
1739
|
-
/* @__PURE__ */ e(
|
|
1752
|
+
/* @__PURE__ */ e(ds, {})
|
|
1740
1753
|
] })
|
|
1741
|
-
] }),
|
|
1742
|
-
if (
|
|
1743
|
-
const
|
|
1744
|
-
return `${Number.isInteger(
|
|
1754
|
+
] }), Ls = ({ label: t, t: n }) => /* @__PURE__ */ e("div", { className: I.recommendedBadge, children: /* @__PURE__ */ e("span", { className: I.recommendedLabel, children: t ?? n?.("planRecommendedAstrologer") ?? "Recommended" }) }), Ds = (...t) => t.filter(Boolean).join(" "), xs = (t) => {
|
|
1755
|
+
if (t >= 1e3) {
|
|
1756
|
+
const n = t / 1e3;
|
|
1757
|
+
return `${Number.isInteger(n) ? n : n.toFixed(1)}K consultations`;
|
|
1745
1758
|
}
|
|
1746
|
-
return `${
|
|
1747
|
-
},
|
|
1748
|
-
astrologer:
|
|
1749
|
-
isSelected:
|
|
1759
|
+
return `${t} consultations`;
|
|
1760
|
+
}, Bs = ({
|
|
1761
|
+
astrologer: t,
|
|
1762
|
+
isSelected: n = !1,
|
|
1750
1763
|
onClick: a,
|
|
1751
1764
|
fallbackPhotoUrl: s,
|
|
1752
|
-
formatConsultationCount: r =
|
|
1753
|
-
}) => /* @__PURE__ */
|
|
1765
|
+
formatConsultationCount: r = xs
|
|
1766
|
+
}) => /* @__PURE__ */ i(
|
|
1754
1767
|
"button",
|
|
1755
1768
|
{
|
|
1756
1769
|
type: "button",
|
|
1757
|
-
onClick: () => a?.(
|
|
1758
|
-
className:
|
|
1770
|
+
onClick: () => a?.(t),
|
|
1771
|
+
className: Ds(I.card, n && I.cardSelected),
|
|
1759
1772
|
children: [
|
|
1760
1773
|
/* @__PURE__ */ e(
|
|
1761
|
-
|
|
1774
|
+
Cs,
|
|
1762
1775
|
{
|
|
1763
|
-
photoUrl:
|
|
1764
|
-
name:
|
|
1765
|
-
rating:
|
|
1776
|
+
photoUrl: t.photo_url,
|
|
1777
|
+
name: t.name,
|
|
1778
|
+
rating: t.rating,
|
|
1766
1779
|
fallbackPhotoUrl: s
|
|
1767
1780
|
}
|
|
1768
1781
|
),
|
|
1769
|
-
/* @__PURE__ */
|
|
1770
|
-
/* @__PURE__ */ e("span", { className: I.name, children:
|
|
1771
|
-
/* @__PURE__ */
|
|
1772
|
-
/* @__PURE__ */ e("span", { className: I.languages, children:
|
|
1773
|
-
/* @__PURE__ */ e("span", { className: I.consultationCount, children: r(
|
|
1782
|
+
/* @__PURE__ */ i("div", { className: I.info, children: [
|
|
1783
|
+
/* @__PURE__ */ e("span", { className: I.name, children: t.name }),
|
|
1784
|
+
/* @__PURE__ */ i("div", { className: I.meta, children: [
|
|
1785
|
+
/* @__PURE__ */ e("span", { className: I.languages, children: t.languages.join(", ") }),
|
|
1786
|
+
/* @__PURE__ */ e("span", { className: I.consultationCount, children: r(t.consultation_count) })
|
|
1774
1787
|
] })
|
|
1775
1788
|
] }),
|
|
1776
|
-
|
|
1777
|
-
|
|
1789
|
+
n && /* @__PURE__ */ e("div", { className: I.checkIcon, children: /* @__PURE__ */ e(_s, {}) }),
|
|
1790
|
+
t.is_recommended && /* @__PURE__ */ e(Ls, {})
|
|
1778
1791
|
]
|
|
1779
1792
|
}
|
|
1780
|
-
),
|
|
1781
|
-
wrapper:
|
|
1782
|
-
ribbon:
|
|
1783
|
-
fold:
|
|
1784
|
-
label:
|
|
1785
|
-
},
|
|
1786
|
-
label:
|
|
1787
|
-
t,
|
|
1793
|
+
), Ms = "_wrapper_vfs2z_41", Rs = "_ribbon_vfs2z_8", Ps = "_fold_vfs2z_64", As = "_label_vfs2z_74", ue = {
|
|
1794
|
+
wrapper: Ms,
|
|
1795
|
+
ribbon: Rs,
|
|
1796
|
+
fold: Ps,
|
|
1797
|
+
label: As
|
|
1798
|
+
}, gr = ({
|
|
1799
|
+
label: t,
|
|
1800
|
+
t: n,
|
|
1788
1801
|
className: a
|
|
1789
|
-
}) => /* @__PURE__ */
|
|
1790
|
-
/* @__PURE__ */ e("div", { className:
|
|
1791
|
-
/* @__PURE__ */ e("div", { className:
|
|
1792
|
-
] }),
|
|
1793
|
-
section:
|
|
1794
|
-
title:
|
|
1795
|
-
row:
|
|
1796
|
-
skeletonCard:
|
|
1797
|
-
skeletonShimmer:
|
|
1798
|
-
},
|
|
1799
|
-
astrologers:
|
|
1800
|
-
loading:
|
|
1802
|
+
}) => /* @__PURE__ */ i("div", { className: [ue.wrapper, a].filter(Boolean).join(" "), children: [
|
|
1803
|
+
/* @__PURE__ */ e("div", { className: ue.ribbon, children: /* @__PURE__ */ e("span", { className: ue.label, children: t ?? n?.("planRecommendedAstrologer") ?? "Recommended" }) }),
|
|
1804
|
+
/* @__PURE__ */ e("div", { className: ue.fold })
|
|
1805
|
+
] }), Es = "_section_jbaga_2", Os = "_title_jbaga_6", Fs = "_row_jbaga_13", qs = "_skeletonCard_jbaga_26", Ws = "_skeletonShimmer_jbaga_33", ae = {
|
|
1806
|
+
section: Es,
|
|
1807
|
+
title: Os,
|
|
1808
|
+
row: Fs,
|
|
1809
|
+
skeletonCard: qs,
|
|
1810
|
+
skeletonShimmer: Ws
|
|
1811
|
+
}, He = (...t) => t.filter(Boolean).join(" "), br = ({
|
|
1812
|
+
astrologers: t,
|
|
1813
|
+
loading: n = !1,
|
|
1801
1814
|
selectedAstrologerId: a,
|
|
1802
1815
|
onAstrologerSelect: s,
|
|
1803
1816
|
title: r,
|
|
1804
|
-
fallbackPhotoUrl:
|
|
1817
|
+
fallbackPhotoUrl: c,
|
|
1805
1818
|
formatConsultationCount: d,
|
|
1806
1819
|
t: l,
|
|
1807
|
-
className:
|
|
1820
|
+
className: h = ""
|
|
1808
1821
|
}) => {
|
|
1809
|
-
const [
|
|
1822
|
+
const [_, f] = T(""), u = a ?? _, g = (b) => {
|
|
1810
1823
|
f(b.astrologer_id), s?.(b);
|
|
1811
1824
|
};
|
|
1812
|
-
return /* @__PURE__ */
|
|
1813
|
-
/* @__PURE__ */ e("p", { className:
|
|
1814
|
-
/* @__PURE__ */ e("div", { className:
|
|
1815
|
-
|
|
1825
|
+
return /* @__PURE__ */ i("section", { className: He(ae.section, h), children: [
|
|
1826
|
+
/* @__PURE__ */ e("p", { className: ae.title, children: r ?? l?.("planSelectAstrologerHeading") ?? "Select an astrologer" }),
|
|
1827
|
+
/* @__PURE__ */ e("div", { className: ae.row, role: "radiogroup", "aria-label": "Astrologer", children: n ? Array.from({ length: 2 }).map((b, w) => /* @__PURE__ */ e("div", { className: He(ae.skeletonCard, ae.skeletonShimmer) }, w)) : t.map((b) => /* @__PURE__ */ e(
|
|
1828
|
+
Bs,
|
|
1816
1829
|
{
|
|
1817
1830
|
astrologer: b,
|
|
1818
|
-
isSelected: b.astrologer_id ===
|
|
1831
|
+
isSelected: b.astrologer_id === u,
|
|
1819
1832
|
onClick: g,
|
|
1820
|
-
fallbackPhotoUrl:
|
|
1833
|
+
fallbackPhotoUrl: c,
|
|
1821
1834
|
formatConsultationCount: d
|
|
1822
1835
|
},
|
|
1823
1836
|
b.astrologer_id
|
|
1824
1837
|
)) })
|
|
1825
1838
|
] });
|
|
1826
|
-
},
|
|
1839
|
+
}, fr = [
|
|
1827
1840
|
{
|
|
1828
1841
|
astrologer_id: "astro-1",
|
|
1829
1842
|
name: "Pandit Ramesh Sharma",
|
|
@@ -1851,46 +1864,48 @@ const ua = (n) => {
|
|
|
1851
1864
|
}
|
|
1852
1865
|
];
|
|
1853
1866
|
export {
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1867
|
+
Bs as AstrologerCard,
|
|
1868
|
+
br as AstrologerList,
|
|
1869
|
+
Cs as AstrologerPhoto,
|
|
1870
|
+
Ga as AstrologyProfilesSection,
|
|
1871
|
+
fa as CONSULTATION_LANGUAGE_OPTIONS,
|
|
1872
|
+
ze as CONSULTATION_PERIOD_ORDER,
|
|
1873
|
+
ca as CircularMarquee,
|
|
1874
|
+
_r as ConsultationSlotSelector,
|
|
1875
|
+
dr as ContactUsSection,
|
|
1876
|
+
Uo as DEFAULT_COUNTRIES,
|
|
1877
|
+
Gs as FAQAccordion,
|
|
1878
|
+
cr as FooterCTAButton,
|
|
1879
|
+
ir as FooterShell,
|
|
1880
|
+
sr as FormCheckboxWithHelp,
|
|
1881
|
+
Js as FormContainer,
|
|
1882
|
+
er as FormDateInput,
|
|
1883
|
+
Qs as FormField,
|
|
1884
|
+
rr as FormFooterNote,
|
|
1885
|
+
nr as FormLocationInput,
|
|
1886
|
+
Zs as FormSectionHeader,
|
|
1887
|
+
ar as FormSegmentedControl,
|
|
1888
|
+
or as FormTagPills,
|
|
1889
|
+
Vs as FormTextInput,
|
|
1890
|
+
tr as FormTimeInput,
|
|
1891
|
+
fr as MOCK_ASTROLOGERS,
|
|
1892
|
+
zo as MOCK_SLOT_DAYS,
|
|
1893
|
+
hr as MOCK_SLOT_DAYS_EMPTY,
|
|
1894
|
+
lr as MarqueeStrip,
|
|
1895
|
+
Ys as PageHeader,
|
|
1896
|
+
pr as PhoneNumberInput,
|
|
1897
|
+
Ma as PhoneNumberSection,
|
|
1898
|
+
Xs as PrivacyBanner,
|
|
1899
|
+
Ls as RecommendedBadge,
|
|
1900
|
+
gr as RecommendedRibbon,
|
|
1901
|
+
Us as UserReviewsSection,
|
|
1902
|
+
Q as footerShellStyles,
|
|
1903
|
+
ba as formatSlotDayLabel,
|
|
1904
|
+
ga as formatSlotTime,
|
|
1905
|
+
Go as getFlagEmoji,
|
|
1906
|
+
wr as getMaxLengthForCountry,
|
|
1907
|
+
mr as resolveSlotSelection,
|
|
1908
|
+
ur as slotDurationMinutes,
|
|
1909
|
+
yr as validatePhoneByCountryCode
|
|
1895
1910
|
};
|
|
1896
1911
|
//# sourceMappingURL=index.js.map
|