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