@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/index.js CHANGED
@@ -1,80 +1,80 @@
1
1
  import "./styles.js";
2
- import { jsxs as c, jsx as e, Fragment as Me } from "react/jsx-runtime";
3
- import { useMemo as E, useState as T, useEffect as se, useRef as G, Fragment as Ze, useCallback as le } from "react";
4
- import { getMaxLengthForCountry as Re, validatePhoneByCountryCode as Pe } from "@srimandir/common";
5
- import { getMaxLengthForCountry as br, validatePhoneByCountryCode as fr } from "@srimandir/common";
6
- const Xe = "_section_1fboo_1", Qe = "_heading_1fboo_5", Ve = "_trustLine_1fboo_9", en = "_star_1fboo_13", nn = "_ratingNum_1fboo_17", tn = "_trustText_1fboo_21", an = "_cardList_1fboo_25", on = "_card_1fboo_25", sn = "_quote_1fboo_37", rn = "_author_1fboo_41", cn = "_avatar_1fboo_45", ln = "_avatarPlaceholder_1fboo_49", dn = "_authorInfo_1fboo_54", _n = "_authorName_1fboo_58", mn = "_stars_1fboo_62", hn = "_readMoreWrap_1fboo_66", un = "_toggleBtn_1fboo_70", pn = "_readMore_1fboo_66", gn = "_arrow_1fboo_89", bn = "_dot_1fboo_93", v = {
7
- section: Xe,
8
- heading: Qe,
9
- trustLine: Ve,
10
- star: en,
11
- ratingNum: nn,
12
- trustText: tn,
13
- cardList: an,
14
- card: on,
15
- quote: sn,
16
- author: rn,
17
- avatar: cn,
18
- avatarPlaceholder: ln,
19
- authorInfo: dn,
20
- authorName: _n,
21
- stars: mn,
22
- readMoreWrap: hn,
23
- toggleBtn: un,
24
- readMore: pn,
25
- arrow: gn,
26
- dot: bn
27
- }, fn = 3, Ae = 15;
28
- function Nn(n) {
29
- const t = /* @__PURE__ */ new Map();
30
- for (let l = 1; l <= Ae; l += 1) {
31
- const u = `feedbackTestimonial${l}`, h = n(u);
32
- if (!h || h === u) continue;
33
- const f = `feedbackAuthor${l}`, m = (() => {
34
- const w = n(f);
35
- return w && w !== f ? w : n("guest");
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 = n(g);
37
+ const w = t(g);
38
38
  return w && w !== g ? w : void 0;
39
39
  })();
40
- t.set(l, {
41
- quote: h,
42
- authorName: m,
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 <= Ae; l += 1)
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 i = 0, d = 0;
52
- for (; i < a.length || d < s.length; ) {
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++], u = t.get(l);
55
- u && r.push(u);
54
+ const l = s[d++], h = n.get(l);
55
+ h && r.push(h);
56
56
  }
57
- if (i < a.length) {
58
- const l = a[i++], u = t.get(l);
59
- u && r.push(u);
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 zs({
65
- t: n,
66
- testimonials: t,
67
- initialVisible: a = fn,
64
+ function Us({
65
+ t,
66
+ testimonials: n,
67
+ initialVisible: a = Nt,
68
68
  readMoreHref: s,
69
69
  onReadMore: r,
70
- className: i = "",
70
+ className: c = "",
71
71
  headingClassName: d
72
72
  }) {
73
- const l = t ?? E(() => Nn(n), [n]), [u, h] = T(!1), f = l.length > a, m = f && !u ? l.slice(0, a) : l, g = n("feedbackTitle"), b = n("feedbackRating"), w = n("feedbackTrust"), O = n("readMoreReviews"), k = n("readLess");
74
- return /* @__PURE__ */ c(
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} ${i}`,
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__ */ c("p", { className: v.trustLine, children: [
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: m.map(($, R) => /* @__PURE__ */ c("li", { className: v.card, 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__ */ c("div", { className: v.author, children: [
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__ */ c("div", { className: v.authorInfo, children: [
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__ */ c(
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: () => h(($) => !$),
119
- "aria-expanded": u,
118
+ onClick: () => _(($) => !$),
119
+ "aria-expanded": h,
120
120
  children: [
121
- u ? k : O,
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__ */ c(
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
- O,
134
+ E,
135
135
  /* @__PURE__ */ e("span", { className: v.arrow, "aria-hidden": !0, children: "›" })
136
136
  ]
137
137
  }
138
- ) : /* @__PURE__ */ c(
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
- O,
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 vn = "_section_4dc65_1", wn = "_heading_4dc65_5", yn = "_accordion_4dc65_9", kn = "_item_4dc65_13", Sn = "_itemOpen_4dc65_17", In = "_question_4dc65_22", Tn = "_chevron_4dc65_30", $n = "_chevronOpen_4dc65_34", Cn = "_answerWrap_4dc65_38", Ln = "_answerOpen_4dc65_42", xn = "_answer_4dc65_38", B = {
155
- section: vn,
156
- heading: wn,
157
- accordion: yn,
158
- item: kn,
159
- itemOpen: Sn,
160
- question: In,
161
- chevron: Tn,
162
- chevronOpen: $n,
163
- answerWrap: Cn,
164
- answerOpen: Ln,
165
- answer: xn
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 Ks({
168
- t: n,
169
- items: t,
167
+ function Gs({
168
+ t,
169
+ items: n,
170
170
  resolveAnswerKey: a,
171
171
  defaultOpenIndex: s = 0,
172
172
  onItemOpen: r,
173
- className: i = "",
173
+ className: c = "",
174
174
  headingClassName: d
175
175
  }) {
176
- const l = E(
177
- () => t.map(({ qKey: m, aKey: g }) => ({
178
- question: n(m),
179
- answer: n(a ? a(g) : g)
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
- [n, t, a]
182
- ), [u, h] = T(s), f = n("faqTitle");
183
- return /* @__PURE__ */ c(
181
+ [t, n, a]
182
+ ), [h, _] = T(s), f = t("faqTitle");
183
+ return /* @__PURE__ */ i(
184
184
  "section",
185
185
  {
186
- className: `${B.section} ${i}`,
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((m, g) => {
198
- const b = u === g;
199
- return /* @__PURE__ */ c(
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__ */ c(
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
- h(b ? -1 : g), w && r?.(m.question);
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: m.question }),
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: m.answer })
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 Dn = "_header_dbx4y_1", Bn = "_brand_dbx4y_7", Mn = "_logo_dbx4y_11", Rn = "_logoImg_dbx4y_15", Pn = "_logoPlaceholder_dbx4y_21", An = "_brandText_dbx4y_29", En = "_brandName_dbx4y_33", On = "_rating_dbx4y_38", Fn = "_langSlot_dbx4y_49", A = {
268
- header: Dn,
269
- brand: Bn,
270
- logo: Mn,
271
- logoImg: Rn,
272
- logoPlaceholder: Pn,
273
- brandText: An,
274
- brandName: En,
275
- rating: On,
276
- langSlot: Fn
277
- }, Ee = 120, Oe = 40;
278
- function Us({
279
- t: n,
280
- logoUrl: t,
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: i = ""
284
+ className: c = ""
285
285
  }) {
286
- const d = r && s != null, l = n("sriMandir"), u = n("ratingText");
287
- return /* @__PURE__ */ c("header", { className: `${A.header} ${i}`, children: [
288
- /* @__PURE__ */ c("div", { className: A.brand, children: [
289
- /* @__PURE__ */ e("div", { className: A.logo, children: t ? a ? /* @__PURE__ */ e(
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: t,
292
+ src: n,
293
293
  alt: l,
294
- className: A.logoImg,
295
- width: Ee,
296
- height: Oe
294
+ className: P.logoImg,
295
+ width: Oe,
296
+ height: Fe
297
297
  }
298
298
  ) : /* @__PURE__ */ e(
299
299
  "img",
300
300
  {
301
- src: t,
301
+ src: n,
302
302
  alt: l,
303
- className: A.logoImg,
304
- width: Ee,
305
- height: Oe,
303
+ className: P.logoImg,
304
+ width: Oe,
305
+ height: Fe,
306
306
  decoding: "async"
307
307
  }
308
- ) : /* @__PURE__ */ e("div", { className: A.logoPlaceholder, "aria-hidden": !0 }) }),
309
- /* @__PURE__ */ c("div", { className: A.brandText, children: [
310
- /* @__PURE__ */ e("span", { className: A.brandName, children: l }),
311
- u != null && u !== "" && /* @__PURE__ */ e("span", { className: A.rating, children: u })
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: A.langSlot, children: s })
314
+ d && /* @__PURE__ */ e("div", { className: P.langSlot, children: s })
315
315
  ] });
316
316
  }
317
- const qn = "_wrap_1vbpd_1", Wn = "_card_1vbpd_5", jn = "_cardInner_1vbpd_10", ve = {
318
- wrap: qn,
319
- card: Wn,
320
- cardInner: jn
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 Gs({
323
- children: n,
324
- className: t = "",
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: `${ve.wrap} ${t}`,
330
+ className: `${we.wrap} ${n}`,
331
331
  "aria-label": a,
332
- children: /* @__PURE__ */ e("div", { className: ve.card, children: /* @__PURE__ */ e("div", { className: ve.cardInner, children: n }) })
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 Hn = "_header_a05ni_1", zn = "_left_a05ni_7", Kn = "_backBtn_a05ni_11", Un = "_titleWrap_a05ni_21", Gn = "_title_a05ni_21", Yn = "_subtitle_a05ni_31", Jn = "_backIcon_a05ni_37", U = {
337
- header: Hn,
338
- left: zn,
339
- backBtn: Kn,
340
- titleWrap: Un,
341
- title: Gn,
342
- subtitle: Yn,
343
- backIcon: Jn
344
- }, Zn = () => /* @__PURE__ */ e(
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: U.backIcon,
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 Ys({
365
- title: n,
366
- subtitle: t,
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: `${U.header} ${r}`, children: /* @__PURE__ */ c("div", { className: U.left, children: [
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: U.backBtn,
376
+ className: K.backBtn,
377
377
  onClick: a,
378
378
  "aria-label": s,
379
- children: /* @__PURE__ */ e(Zn, {})
379
+ children: /* @__PURE__ */ e(Xt, {})
380
380
  }
381
381
  ),
382
- /* @__PURE__ */ c("div", { className: U.titleWrap, children: [
383
- /* @__PURE__ */ e("h1", { className: U.title, children: n }),
384
- t != null && t !== "" && /* @__PURE__ */ e("p", { className: U.subtitle, children: t })
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 Xn = "_banner_1jco0_1", Qn = "_icon_1jco0_12", Vn = "_text_1jco0_16", we = {
389
- banner: Xn,
390
- icon: Qn,
391
- text: Vn
392
- }, et = "https://srm-cdn.a4b.io/yoda/1770707793537.svg";
393
- function Js({
394
- text: n,
395
- iconUrl: t = et,
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: `${we.banner} ${a}`, role: "status", children: /* @__PURE__ */ c("span", { className: we.text, children: [
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: t,
403
+ src: n,
404
404
  alt: "",
405
- className: we.icon,
405
+ className: ye.icon,
406
406
  width: 18,
407
407
  height: 18,
408
408
  "aria-hidden": !0
409
409
  }
410
410
  ),
411
411
  " ",
412
- n
412
+ t
413
413
  ] }) });
414
414
  }
415
- const nt = "_field_eqt7q_1", tt = "_labelRow_eqt7q_5", at = "_label_eqt7q_5", ot = "_req_eqt7q_14", st = "_help_eqt7q_18", rt = "_infoBtn_eqt7q_22", ct = "_infoImg_eqt7q_30", it = "_infoWrap_eqt7q_34", lt = "_tooltip_eqt7q_38", dt = "_tooltipArrow_eqt7q_45", _t = "_inputWrap_eqt7q_50", M = {
416
- field: nt,
417
- labelRow: tt,
418
- label: at,
419
- req: ot,
420
- help: st,
421
- infoBtn: rt,
422
- infoImg: ct,
423
- infoWrap: it,
424
- tooltip: lt,
425
- tooltipArrow: dt,
426
- inputWrap: _t
427
- }, mt = "https://srm-cdn.a4b.io/yoda/1770372066357.svg";
428
- function Zs({
429
- label: n,
430
- id: t,
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: i = "Info",
435
- infoIconUrl: d = mt,
434
+ infoAriaLabel: c = "Info",
435
+ infoIconUrl: d = hn,
436
436
  children: l,
437
- className: u = ""
437
+ className: h = ""
438
438
  }) {
439
- const [h, f] = T(!1);
440
- return se(() => {
439
+ const [_, f] = T(!1);
440
+ return oe(() => {
441
441
  if (!r) return;
442
- const m = (b) => {
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", m), document.addEventListener("keydown", g), () => {
448
- document.removeEventListener("mousedown", m), document.removeEventListener("keydown", g);
447
+ return document.addEventListener("mousedown", u), document.addEventListener("keydown", g), () => {
448
+ document.removeEventListener("mousedown", u), document.removeEventListener("keydown", g);
449
449
  };
450
- }, [r]), /* @__PURE__ */ c("div", { className: `${M.field} ${u}`, children: [
451
- /* @__PURE__ */ c("div", { className: M.labelRow, children: [
452
- /* @__PURE__ */ c("label", { className: M.label, htmlFor: t, children: [
453
- n,
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__ */ c("div", { className: M.infoWrap, "data-info-tooltip": !0, children: [
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": i,
463
- "aria-expanded": h,
464
- onClick: () => f((m) => !m),
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
- h && /* @__PURE__ */ c("div", { className: M.tooltip, role: "tooltip", children: [
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 ht = "_wrap_1uy4o_1", ut = "_input_1uy4o_5", pt = "_iconBtn_1uy4o_21", gt = "_iconBtnInteractive_1uy4o_25", bt = "_iconImg_1uy4o_39", X = {
487
- wrap: ht,
488
- input: ut,
489
- iconBtn: pt,
490
- iconBtnInteractive: gt,
491
- iconImg: bt
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 Xs({
494
- id: n,
495
- iconUrl: t,
493
+ function Vs({
494
+ id: t,
495
+ iconUrl: n,
496
496
  iconAlt: a = "",
497
497
  iconInteractive: s = !1,
498
498
  onIconClick: r,
499
- className: i = "",
499
+ className: c = "",
500
500
  ...d
501
501
  }) {
502
- return /* @__PURE__ */ c("div", { className: `${X.wrap} ${i}`, children: [
502
+ return /* @__PURE__ */ i("div", { className: `${Z.wrap} ${c}`, children: [
503
503
  /* @__PURE__ */ e(
504
504
  "input",
505
505
  {
506
506
  ...d,
507
- id: n,
508
- className: X.input,
507
+ id: t,
508
+ className: Z.input,
509
509
  type: d.type ?? "text"
510
510
  }
511
511
  ),
512
- t != null && /* @__PURE__ */ e(
512
+ n != null && /* @__PURE__ */ e(
513
513
  "button",
514
514
  {
515
515
  type: "button",
516
- className: s ? `${X.iconBtn} ${X.iconBtnInteractive}` : X.iconBtn,
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: X.iconImg,
524
- src: t,
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 ft = "_wrap_t646o_1", Nt = "_input_t646o_5", vt = "_iconBtn_t646o_28", wt = "_iconImg_t646o_42", de = {
536
- wrap: ft,
537
- input: Nt,
538
- iconBtn: vt,
539
- iconImg: wt
540
- }, yt = "https://srm-cdn.a4b.io/yoda/1770372045894.svg";
541
- function Qs({
542
- id: n,
543
- value: t,
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
- ...i
547
+ ...c
548
548
  }) {
549
- const d = G(null), l = E(() => {
550
- const h = /* @__PURE__ */ new Date(), f = (m) => String(m).padStart(2, "0");
551
- return `${h.getFullYear()}-${f(h.getMonth() + 1)}-${f(h.getDate())}`;
552
- }, []), u = () => {
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 h = d.current;
558
- h && typeof h.showPicker == "function" ? h.showPicker() : h?.focus();
557
+ const _ = d.current;
558
+ _ && typeof _.showPicker == "function" ? _.showPicker() : _?.focus();
559
559
  };
560
- return /* @__PURE__ */ c("div", { className: `${de.wrap} ${r}`, children: [
560
+ return /* @__PURE__ */ i("div", { className: `${de.wrap} ${r}`, children: [
561
561
  /* @__PURE__ */ e(
562
562
  "input",
563
563
  {
564
- ...i,
564
+ ...c,
565
565
  ref: d,
566
- id: n,
566
+ id: t,
567
567
  type: "date",
568
568
  className: de.input,
569
- value: t,
569
+ value: n,
570
570
  max: l,
571
- onChange: (h) => a(h.target.value)
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: (h) => h.preventDefault(),
581
- onClick: (h) => {
582
- h.preventDefault(), u();
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: yt,
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 kt = "_wrap_1jdg7_1", St = "_input_1jdg7_5", It = "_iconBtn_1jdg7_34", Tt = "_iconImg_1jdg7_48", _e = {
600
- wrap: kt,
601
- input: St,
602
- iconBtn: It,
603
- iconImg: Tt
604
- }, $t = "https://srm-cdn.a4b.io/yoda/1770372014782.svg";
605
- function Vs({
606
- id: n,
607
- value: t,
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: i,
611
+ onIconClick: c,
612
612
  className: d = ""
613
613
  }) {
614
- return /* @__PURE__ */ c("div", { className: `${_e.wrap} ${d}`, children: [
614
+ return /* @__PURE__ */ i("div", { className: `${_e.wrap} ${d}`, children: [
615
615
  /* @__PURE__ */ e(
616
616
  "input",
617
617
  {
618
- id: n,
618
+ id: t,
619
619
  type: "time",
620
620
  className: _e.input,
621
- value: t,
621
+ value: n,
622
622
  onChange: (l) => a(l.target.value),
623
623
  placeholder: s,
624
624
  disabled: r,
625
- onClick: () => !r && i?.()
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 || i?.();
636
+ l.preventDefault(), r || c?.();
637
637
  },
638
638
  children: /* @__PURE__ */ e(
639
639
  "img",
640
640
  {
641
641
  className: _e.iconImg,
642
- src: $t,
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 Ct = "_wrap_1bb6o_1", Lt = "_input_1bb6o_5", xt = "_iconBtn_1bb6o_21", Dt = "_iconImg_1bb6o_25", me = {
654
- wrap: Ct,
655
- input: Lt,
656
- iconBtn: xt,
657
- iconImg: Dt
658
- }, Bt = "https://srm-cdn.a4b.io/yoda/1770372031092.svg";
659
- function er({
660
- id: n,
661
- iconUrl: t = Bt,
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__ */ c("div", { className: `${me.wrap} ${a}`, children: [
666
- /* @__PURE__ */ e("input", { ...s, id: n, className: me.input, type: "text" }),
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: t,
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 Mt = "_segmented_3sa9v_1", Rt = "_segmentedOption_3sa9v_6", Pt = "_active_3sa9v_15", ye = {
680
- segmented: Mt,
681
- segmentedOption: Rt,
682
- active: Pt
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 nr({
685
- id: n,
686
- options: t,
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: `${ye.segmented} ${r}`,
694
+ className: `${Se.segmented} ${r}`,
695
695
  role: "group",
696
- "aria-labelledby": `${n}-label`,
697
- children: t.map((i) => /* @__PURE__ */ e(
696
+ "aria-labelledby": `${t}-label`,
697
+ children: n.map((c) => /* @__PURE__ */ e(
698
698
  "button",
699
699
  {
700
700
  type: "button",
701
- id: i.value === a ? n : void 0,
702
- className: `${ye.segmentedOption} ${i.value === a ? ye.active : ""}`,
703
- onClick: () => s(i.value),
704
- children: i.label
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
- i.value
706
+ c.value
707
707
  ))
708
708
  }
709
709
  );
710
710
  }
711
- const At = "_pillsWrap_z1kui_1", Et = "_pill_z1kui_1", Ot = "_selected_z1kui_17", ke = {
712
- pillsWrap: At,
713
- pill: Et,
714
- selected: Ot
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 tr({
717
- id: n,
718
- options: t,
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 i = (d) => {
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": `${n}-label`,
732
- children: t.map((d) => /* @__PURE__ */ e(
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: () => i(d.key),
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 Ft = "_wrapper_i6a5b_2", qt = "_checkboxRow_i6a5b_6", Wt = "_checkbox_i6a5b_6", jt = "_checkboxText_i6a5b_31", Ht = "_checkboxHelp_i6a5b_37", te = {
746
- wrapper: Ft,
747
- checkboxRow: qt,
748
- checkbox: Wt,
749
- checkboxText: jt,
750
- checkboxHelp: Ht
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 ar({
753
- id: n,
754
- checked: t,
752
+ function sr({
753
+ id: t,
754
+ checked: n,
755
755
  onChange: a,
756
756
  primaryText: s,
757
757
  helpText: r,
758
- className: i = ""
758
+ className: c = ""
759
759
  }) {
760
- return /* @__PURE__ */ c("div", { className: `${te.wrapper} ${i}`, children: [
761
- /* @__PURE__ */ c("div", { className: te.checkboxRow, children: [
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: n,
765
+ id: t,
766
766
  type: "checkbox",
767
767
  className: te.checkbox,
768
- checked: t,
768
+ checked: n,
769
769
  onChange: (d) => a(d.target.checked)
770
770
  }
771
771
  ),
772
- /* @__PURE__ */ e("label", { htmlFor: n, className: te.checkboxText, children: s })
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 zt = "_footerNote_laev3_1", Kt = {
778
- footerNote: zt
777
+ const Un = "_footerNote_laev3_1", Gn = {
778
+ footerNote: Un
779
779
  };
780
- function or({
781
- children: n,
782
- className: t = ""
780
+ function rr({
781
+ children: t,
782
+ className: n = ""
783
783
  }) {
784
- return /* @__PURE__ */ e("p", { className: `${Kt.footerNote} ${t}`, children: n });
784
+ return /* @__PURE__ */ e("p", { className: `${Gn.footerNote} ${n}`, children: t });
785
785
  }
786
- const Ut = "_footer_86zxt_1", Gt = "_inner_86zxt_8", Yt = "_badges_86zxt_12", Jt = "_marqueeContent_86zxt_20", Zt = "_badge_86zxt_12", Xt = "_badgeIcon_86zxt_35", Qt = "_ctaWrap_86zxt_39", Vt = "_ctaStruck_86zxt_43", ea = "_ctaButton_86zxt_49", na = "_offerRow_86zxt_69", ta = "_pill_86zxt_76", aa = "_ctaStatic_86zxt_85", V = {
787
- footer: Ut,
788
- inner: Gt,
789
- badges: Yt,
790
- marqueeContent: Jt,
791
- badge: Zt,
792
- badgeIcon: Xt,
793
- ctaWrap: Qt,
794
- ctaStruck: Vt,
795
- ctaButton: ea,
796
- offerRow: na,
797
- pill: ta,
798
- ctaStatic: aa
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 sr({
801
- marquee: n,
802
- children: t,
800
+ function ir({
801
+ marquee: t,
802
+ children: n,
803
803
  className: a = ""
804
804
  }) {
805
- return /* @__PURE__ */ e("footer", { className: `${V.footer} ${a}`, role: "contentinfo", children: /* @__PURE__ */ c("div", { className: V.inner, children: [
806
- n != null && /* @__PURE__ */ e("div", { className: V.badges, "aria-hidden": !0, children: n }),
807
- /* @__PURE__ */ e("div", { className: V.ctaWrap, children: t })
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 rr({
811
- children: n,
812
- href: t,
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: i = "",
816
+ className: c = "",
817
817
  "aria-label": d
818
818
  }) {
819
- const l = `${V.ctaButton} ${i}`.trim(), u = `${V.ctaStatic} ${i}`.trim(), h = d != null ? { "aria-label": d } : {};
820
- return r ? /* @__PURE__ */ e("div", { className: u, role: "presentation", children: n }) : t != null ? /* @__PURE__ */ e(
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: t,
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
- ...h,
830
- children: n
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
- ...h,
840
- children: n
839
+ ..._,
840
+ children: t
841
841
  }
842
842
  );
843
843
  }
844
- const oa = "_wrapper_wxjzs_1", sa = "_track_wxjzs_7", Fe = {
845
- wrapper: oa,
846
- track: sa
844
+ const ra = "_wrapper_wxjzs_1", ia = "_track_wxjzs_7", qe = {
845
+ wrapper: ra,
846
+ track: ia
847
847
  };
848
- function ra({ children: n, className: t = "" }) {
849
- return /* @__PURE__ */ e("div", { className: `${Fe.wrapper} ${t}`, "aria-hidden": !0, children: /* @__PURE__ */ c("div", { className: Fe.track, children: [
850
- n,
851
- n
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 ca = "_strip_2838b_1", ia = {
855
- strip: ca
854
+ const la = "_strip_2838b_1", da = {
855
+ strip: la
856
856
  };
857
- function cr({ children: n, className: t = "" }) {
858
- return /* @__PURE__ */ e("div", { className: `${ia.strip} ${t}`, role: "region", "aria-label": "Trust badges", children: /* @__PURE__ */ e(ra, { children: n }) });
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 la = "_section_8y3x9_1", da = "_heading_8y3x9_6", _a = "_content_8y3x9_11", ma = "_line_8y3x9_16", ha = "_brandName_8y3x9_20", Q = {
861
- section: la,
862
- heading: da,
863
- content: _a,
864
- line: ma,
865
- brandName: ha
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 ir({
868
- title: n,
869
- brandName: t,
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__ */ c("section", { className: `${Q.section} ${r}`, "aria-labelledby": "contact-heading", children: [
875
- /* @__PURE__ */ e("h2", { id: "contact-heading", className: Q.heading, children: n }),
876
- /* @__PURE__ */ c("div", { className: Q.content, children: [
877
- /* @__PURE__ */ e("p", { className: Q.brandName, children: t }),
878
- /* @__PURE__ */ e("p", { className: Q.line, children: a }),
879
- /* @__PURE__ */ e("p", { className: Q.line, children: s })
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 ua = (n) => {
884
- const t = n.match(/T(\d{2}):(\d{2})/);
885
- if (!t) return n;
886
- const a = Number(t[1]), s = t[2], r = a >= 12 ? "PM" : "AM";
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
- }, pa = (n, t = /* @__PURE__ */ new Date()) => {
889
- const a = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], s = /* @__PURE__ */ new Date(`${n}T00:00:00`);
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: n, dayLabel: n, dayNum: "" };
892
- const r = (l) => new Date(l.getFullYear(), l.getMonth(), l.getDate()).getTime(), i = Math.round(
893
- (r(s) - r(t)) / (1e3 * 60 * 60 * 24)
894
- ), d = i === 0 ? "Today" : i === 1 ? "Tomorrow" : a[s.getDay()];
895
- return { id: n, dayLabel: d, dayNum: String(s.getDate()) };
896
- }, ga = [
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
- ], ba = [
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
- ], fa = () => /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
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
- ) }), Na = () => /* @__PURE__ */ e(
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
- ), va = () => /* @__PURE__ */ e(
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
- ), wa = () => /* @__PURE__ */ e(
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
- ), ya = () => /* @__PURE__ */ e(
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__ */ c("svg", { width: "40", height: "40", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: [
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
- ] }), Sa = "_section_1ltqn_2", Ia = "_headerRow_1ltqn_10", Ta = "_title_1ltqn_18", $a = "_changeBtn_1ltqn_24", Ca = "_numberRow_1ltqn_35", La = "_countryCode_1ltqn_44", xa = "_number_1ltqn_35", Da = "_helper_1ltqn_59", H = {
964
- section: Sa,
965
- headerRow: Ia,
966
- title: Ta,
967
- changeBtn: $a,
968
- numberRow: Ca,
969
- countryCode: La,
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: Da
972
- }, Ba = ({
973
- title: n,
974
- countryCode: t = "+91",
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: i,
978
+ t: c,
979
979
  className: d = ""
980
- }) => /* @__PURE__ */ c("section", { className: [H.section, d].filter(Boolean).join(" "), children: [
981
- /* @__PURE__ */ c("div", { className: H.headerRow, children: [
982
- /* @__PURE__ */ e("span", { className: H.title, children: n ?? i?.("planPhoneNumberHeading") ?? "Your phone number" }),
983
- r && /* @__PURE__ */ e("button", { type: "button", className: H.changeBtn, onClick: r, children: i?.("planPhoneNumberChange") ?? "Change" })
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__ */ c("div", { className: H.numberRow, children: [
986
- /* @__PURE__ */ e("span", { className: H.countryCode, children: t }),
987
- /* @__PURE__ */ e("span", { className: H.number, children: a })
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: H.helper, children: s ?? i?.("planPhoneNumberHelper") ?? "The astrologer will call you on this number at your booked slot." })
990
- ] }), Ma = "_section_12hk9_2", Ra = "_title_12hk9_6", Pa = "_profileRow_12hk9_13", Aa = "_profileCard_12hk9_26", Ea = "_profileCardSelected_12hk9_47", Oa = "_profileTop_12hk9_52", Fa = "_avatar_12hk9_60", qa = "_profileName_12hk9_74", Wa = "_relationPill_12hk9_84", ja = "_profileMeta_12hk9_98", Ha = "_addCard_12hk9_108", za = "_addIcon_12hk9_127", C = {
991
- section: Ma,
992
- title: Ra,
993
- profileRow: Pa,
994
- profileCard: Aa,
995
- profileCardSelected: Ea,
996
- profileTop: Oa,
997
- avatar: Fa,
998
- profileName: qa,
999
- relationPill: Wa,
1000
- profileMeta: ja,
1001
- addCard: Ha,
1002
- addIcon: za
1003
- }, Ka = [
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
- ], Ua = ({
1019
- title: n,
1020
- profiles: t = Ka,
1018
+ ], Ga = ({
1019
+ title: t,
1020
+ profiles: n = Ua,
1021
1021
  selectedProfileId: a,
1022
1022
  onProfileSelect: s,
1023
1023
  onAddProfile: r,
1024
- t: i,
1024
+ t: c,
1025
1025
  className: d = ""
1026
1026
  }) => {
1027
- const [l, u] = T(t[0]?.id ?? ""), h = a ?? l, f = (m) => {
1028
- u(m), s?.(m);
1027
+ const [l, h] = T(n[0]?.id ?? ""), _ = a ?? l, f = (u) => {
1028
+ h(u), s?.(u);
1029
1029
  };
1030
- return /* @__PURE__ */ c("section", { className: [C.section, d].filter(Boolean).join(" "), children: [
1031
- /* @__PURE__ */ e("p", { className: C.title, children: n ?? i?.("planAstrologyProfilesHeading") ?? "Astrology profile" }),
1032
- /* @__PURE__ */ c("div", { className: C.profileRow, role: "radiogroup", "aria-label": "Astrology profile", children: [
1033
- t.map((m) => {
1034
- const g = m.id === h;
1035
- return /* @__PURE__ */ c(
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(m.id),
1042
+ onClick: () => f(u.id),
1043
1043
  children: [
1044
- /* @__PURE__ */ c("span", { className: C.profileTop, children: [
1045
- /* @__PURE__ */ e("span", { className: C.avatar, "aria-hidden": !0, children: m.name.charAt(0).toUpperCase() }),
1046
- /* @__PURE__ */ e("span", { className: C.profileName, children: m.name })
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
- m.relation && /* @__PURE__ */ e("span", { className: C.relationPill, children: m.relation }),
1049
- m.birthDetails && /* @__PURE__ */ e("span", { className: C.profileMeta, children: m.birthDetails }),
1050
- m.birthPlace && /* @__PURE__ */ e("span", { className: C.profileMeta, children: m.birthPlace })
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
- m.id
1053
+ u.id
1054
1054
  );
1055
1055
  }),
1056
- r && /* @__PURE__ */ c("button", { type: "button", className: C.addCard, onClick: r, children: [
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
- i?.("planAddAstrologyProfile") ?? "Add profile"
1058
+ c?.("planAddAstrologyProfile") ?? "Add profile"
1059
1059
  ] })
1060
1060
  ] })
1061
1061
  ] });
1062
- }, Ga = "_root_fo16p_6", Ya = "_languageRow_fo16p_19", Ja = "_languageLabel_fo16p_27", Za = "_languageDropdown_fo16p_33", Xa = "_languageDropdownBtn_fo16p_37", Qa = "_languageMenu_fo16p_52", Va = "_languageMenuItem_fo16p_69", eo = "_languageMenuItemSelected_fo16p_83", no = "_languageDivider_fo16p_89", to = "_sectionHeadingRow_fo16p_96", ao = "_sectionHeading_fo16p_96", oo = "_timezoneLabel_fo16p_111", so = "_reportReadyBanner_fo16p_120", ro = "_reportReadyDuration_fo16p_129", co = "_dateTabs_fo16p_135", io = "_dateTabIndicator_fo16p_147", lo = "_dateTab_fo16p_135", _o = "_dateTabDivider_fo16p_181", mo = "_dateTabSelected_fo16p_191", ho = "_dateTabLabel_fo16p_196", uo = "_dateTabNum_fo16p_203", po = "_periodTabs_fo16p_217", go = "_periodTabIndicator_fo16p_145", bo = "_periodTab_fo16p_145", fo = "_periodTabSelected_fo16p_264", No = "_timeGrid_fo16p_269", vo = "_emptyState_fo16p_296", wo = "_timeSlot_fo16p_300", yo = "_timeSlotSelected_fo16p_316", ko = "_timeSlotDisabled_fo16p_324", So = "_stateMessage_fo16p_335", Io = "_retryBtn_fo16p_342", To = "_emptyStateIcon_fo16p_368", $o = "_emptyStateTitle_fo16p_379", Co = "_emptyStateSubtitle_fo16p_386", Lo = "_loadingWrap_fo16p_395", xo = "_skeletonShimmer_fo16p_400", Do = "_skeletonDateTabs_fo16p_414", Bo = "_skeletonDateTab_fo16p_414", Mo = "_skeletonPeriodTabs_fo16p_428", Ro = "_skeletonPeriodTab_fo16p_428", Po = "_skeletonTimeGrid_fo16p_443", Ao = "_skeletonTimeSlot_fo16p_449", _ = {
1063
- root: Ga,
1064
- languageRow: Ya,
1065
- languageLabel: Ja,
1066
- languageDropdown: Za,
1067
- languageDropdownBtn: Xa,
1068
- languageMenu: Qa,
1069
- languageMenuItem: Va,
1070
- languageMenuItemSelected: eo,
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: to,
1073
- sectionHeading: ao,
1074
- timezoneLabel: oo,
1075
- reportReadyBanner: so,
1076
- reportReadyDuration: ro,
1072
+ sectionHeadingRow: ao,
1073
+ sectionHeading: oo,
1074
+ timezoneLabel: so,
1075
+ reportReadyBanner: ro,
1076
+ reportReadyDuration: io,
1077
1077
  dateTabs: co,
1078
- dateTabIndicator: io,
1079
- dateTab: lo,
1080
- dateTabDivider: _o,
1081
- dateTabSelected: mo,
1078
+ dateTabIndicator: lo,
1079
+ dateTab: _o,
1080
+ dateTabDivider: mo,
1081
+ dateTabSelected: uo,
1082
1082
  dateTabLabel: ho,
1083
- dateTabNum: uo,
1084
- periodTabs: po,
1085
- periodTabIndicator: go,
1086
- periodTab: bo,
1087
- periodTabSelected: fo,
1088
- timeGrid: No,
1089
- emptyState: vo,
1090
- timeSlot: wo,
1091
- timeSlotSelected: yo,
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: So,
1094
- retryBtn: Io,
1095
- emptyStateIcon: To,
1096
- emptyStateTitle: $o,
1097
- emptyStateSubtitle: Co,
1098
- loadingWrap: Lo,
1093
+ stateMessage: Io,
1094
+ retryBtn: To,
1095
+ emptyStateIcon: $o,
1096
+ emptyStateTitle: Co,
1097
+ emptyStateSubtitle: Lo,
1098
+ loadingWrap: Do,
1099
1099
  skeletonShimmer: xo,
1100
- skeletonDateTabs: Do,
1101
- skeletonDateTab: Bo,
1102
- skeletonPeriodTabs: Mo,
1103
- skeletonPeriodTab: Ro,
1104
- skeletonTimeGrid: Po,
1105
- skeletonTimeSlot: Ao
1106
- }, Eo = {
1107
- morning: va,
1108
- afternoon: wa,
1109
- evening: ya
1110
- }, Oo = {
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
- }, z = (...n) => n.filter(Boolean).join(" "), lr = ({
1115
- days: n,
1116
- loading: t = !1,
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: i,
1121
+ onDateSelect: c,
1121
1122
  selectedPeriod: d,
1122
1123
  onPeriodSelect: l,
1123
- selectedSlotStart: u,
1124
- onSlotSelect: h,
1124
+ selectedSlotStart: h,
1125
+ onSlotSelect: _,
1125
1126
  hideLanguageSelector: f = !1,
1126
- languageOptions: m = ba,
1127
+ languageOptions: u = fa,
1127
1128
  selectedLanguage: g,
1128
1129
  onLanguageSelect: b,
1129
1130
  showPhoneNumberSection: w = !0,
1130
- phoneNumberSection: O,
1131
- showAstrologyProfilesSection: k = !0,
1131
+ phoneNumberSection: E,
1132
+ showAstrologyProfilesSection: S = !0,
1132
1133
  astrologyProfilesSection: $,
1133
1134
  heading: R,
1134
- timezoneLabel: Y,
1135
- languageLabel: J,
1136
- reportReadyNote: Z,
1137
- isGlobal: ee = !0,
1135
+ timezoneLabel: G,
1136
+ languageLabel: Y,
1137
+ reportReadyNote: J,
1138
+ isGlobal: V = !0,
1138
1139
  t: y,
1139
- className: ue = ""
1140
+ variant: he = "default",
1141
+ className: pe = ""
1140
1142
  }) => {
1141
- const L = E(
1142
- () => n.filter((o) => o.has_availability && o.slots.length > 0),
1143
- [n]
1144
- ), [re, pe] = T(""), q = E(() => {
1145
- const o = r ?? re;
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, re, L]), F = E(
1148
- () => L.find((o) => o.date === q) ?? null,
1149
- [L, q]
1150
- ), W = E(() => {
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 ga.filter((p) => o.has(p));
1154
- }, [F]), [N, K] = T(""), P = E(() => {
1155
- const o = d ?? N;
1156
- return o && W.includes(o) ? o : W[0] ?? "morning";
1157
- }, [d, N, W]), ce = E(
1158
- () => F ? F.slots.filter((o) => o.period === P) : [],
1159
- [F, P]
1160
- ), [Se, He] = T(""), Ie = E(() => {
1161
- if (u === null) return "";
1162
- const o = u ?? Se;
1163
- return ce.some((p) => p.start === o) ? o : ce[0]?.start ?? "";
1164
- }, [u, Se, ce]), [ze, Ke] = T(
1165
- () => m[0]?.code ?? "en"
1166
- ), Te = g ?? ze, ge = m.find((o) => o.code === Te) ?? m[0], [ie, be] = T(!1), fe = G(null);
1167
- se(() => {
1168
- if (!ie) return;
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
- fe.current && !fe.current.contains(p.target) && be(!1);
1172
+ Ne.current && !Ne.current.contains(p.target) && fe(!1);
1171
1173
  };
1172
1174
  return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
1173
- }, [ie]);
1174
- const $e = G(null), Ce = G({}), [ne, Le] = T(null), xe = G(null), De = G(
1175
+ }, [ce]);
1176
+ const Ce = U(null), Le = U({}), [ee, De] = T(null), xe = U(null), Be = U(
1175
1177
  {}
1176
- ), [Ne, Be] = T(null);
1177
- se(() => {
1178
+ ), [ve, Me] = T(null);
1179
+ oe(() => {
1178
1180
  const o = () => {
1179
- const p = $e.current, x = Ce.current[q];
1180
- if (!p || !x) {
1181
- Le(null);
1181
+ const p = Ce.current, D = Le.current[O];
1182
+ if (!p || !D) {
1183
+ De(null);
1182
1184
  return;
1183
1185
  }
1184
- const j = p.getBoundingClientRect(), D = x.getBoundingClientRect();
1185
- Le({
1186
- left: D.left - j.left,
1187
- top: D.top - j.top,
1188
- width: D.width,
1189
- height: D.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
- }, [q, L, t, a]), se(() => {
1195
+ }, [O, L, n, a]), oe(() => {
1194
1196
  const o = () => {
1195
- const p = xe.current, x = De.current[P];
1196
- if (!p || !x) {
1197
- Be(null);
1197
+ const p = xe.current, D = Be.current[z];
1198
+ if (!p || !D) {
1199
+ Me(null);
1198
1200
  return;
1199
1201
  }
1200
- const j = p.getBoundingClientRect(), D = x.getBoundingClientRect();
1201
- Be({
1202
- left: D.left - j.left,
1203
- width: D.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
- }, [P, W, t, a]);
1208
- const Ue = (o) => {
1209
- pe(o), i?.(o);
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
- Ke(o), be(!1), b?.(o);
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__ */ c("div", { className: z(_.root, ue), children: [
1218
- w && (O ?? /* @__PURE__ */ e(Ba, { t: y })),
1219
- k && ($ ?? /* @__PURE__ */ e(Ua, { t: y })),
1220
- !f && /* @__PURE__ */ c(Me, { children: [
1221
- /* @__PURE__ */ c("div", { className: _.languageRow, children: [
1222
- /* @__PURE__ */ e("span", { className: _.languageLabel, children: J ?? y?.("planConsultationLanguageLabel") ?? "Your consultation language" }),
1223
- /* @__PURE__ */ c("div", { className: _.languageDropdown, ref: fe, children: [
1224
- /* @__PURE__ */ c(
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: _.languageDropdownBtn,
1229
- onClick: () => be((o) => !o),
1230
+ className: m.languageDropdownBtn,
1231
+ onClick: () => fe((o) => !o),
1230
1232
  "aria-haspopup": "listbox",
1231
- "aria-expanded": ie,
1233
+ "aria-expanded": ce,
1232
1234
  children: [
1233
- (ge?.labelKey && y?.(ge.labelKey)) ?? ge?.label,
1234
- /* @__PURE__ */ e(Na, {})
1235
+ (be?.labelKey && y?.(be.labelKey)) ?? be?.label,
1236
+ /* @__PURE__ */ e(va, {})
1235
1237
  ]
1236
1238
  }
1237
1239
  ),
1238
- ie && /* @__PURE__ */ e("ul", { className: _.languageMenu, role: "listbox", children: m.map((o) => {
1239
- const p = o.code === Te;
1240
- return /* @__PURE__ */ c(
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: z(
1246
- _.languageMenuItem,
1247
- p && _.languageMenuItemSelected
1247
+ className: H(
1248
+ m.languageMenuItem,
1249
+ p && m.languageMenuItemSelected
1248
1250
  ),
1249
- onClick: () => Je(o.code),
1251
+ onClick: () => Xe(o.code),
1250
1252
  children: [
1251
1253
  (o.labelKey && y?.(o.labelKey)) ?? o.label,
1252
- p && /* @__PURE__ */ e(fa, {})
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: _.languageDivider })
1262
+ /* @__PURE__ */ e("hr", { className: m.languageDivider })
1261
1263
  ] }),
1262
- /* @__PURE__ */ c("div", { className: _.sectionHeadingRow, children: [
1263
- /* @__PURE__ */ e("p", { className: _.sectionHeading, children: R ?? y?.("planSelectSlotHeading") ?? "Book your preferred consultation slot" }),
1264
- Y && /* @__PURE__ */ e("p", { className: _.timezoneLabel, children: Y })
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
- Z === void 0 ? /* @__PURE__ */ c("p", { className: _.reportReadyBanner, children: [
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: _.reportReadyDuration, children: y?.("planReportReadyDuration") ?? "24-48 hours" }),
1271
+ /* @__PURE__ */ e("span", { className: m.reportReadyDuration, children: y?.("planReportReadyDuration") ?? "24-48 hours" }),
1270
1272
  " ",
1271
1273
  y?.("planReportReadySuffix") ?? "from today"
1272
- ] }) : Z,
1273
- t && /* @__PURE__ */ c("div", { className: _.loadingWrap, "aria-busy": "true", "aria-live": "polite", children: [
1274
- /* @__PURE__ */ e("div", { className: _.skeletonDateTabs, children: Array.from({ length: 5 }).map((o, p) => /* @__PURE__ */ e("div", { className: z(_.skeletonDateTab, _.skeletonShimmer) }, p)) }),
1275
- /* @__PURE__ */ e("div", { className: _.skeletonPeriodTabs, children: Array.from({ length: 3 }).map((o, p) => /* @__PURE__ */ e("div", { className: z(_.skeletonPeriodTab, _.skeletonShimmer) }, p)) }),
1276
- /* @__PURE__ */ e("div", { className: _.skeletonTimeGrid, children: Array.from({ length: 6 }).map((o, p) => /* @__PURE__ */ e("div", { className: z(_.skeletonTimeSlot, _.skeletonShimmer) }, p)) })
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
- !t && a && /* @__PURE__ */ c("div", { className: _.stateMessage, children: [
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: _.retryBtn, onClick: s, children: y?.("planRetry") ?? "Retry" })
1282
+ s && /* @__PURE__ */ e("button", { type: "button", className: m.retryBtn, onClick: s, children: y?.("planRetry") ?? "Retry" })
1281
1283
  ] }),
1282
- !t && !a && L.length === 0 && /* @__PURE__ */ c("div", { className: _.emptyState, children: [
1283
- /* @__PURE__ */ e("span", { className: _.emptyStateIcon, children: /* @__PURE__ */ e(ka, {}) }),
1284
- /* @__PURE__ */ e("p", { className: _.emptyStateTitle, children: y?.("planNoSlotsAvailableTitle") ?? "No slots available" }),
1285
- /* @__PURE__ */ e("p", { className: _.emptyStateSubtitle, children: y?.("planNoSlotsAvailableSubtitle") ?? "Try a different consultation language above, or check back soon." })
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
- !t && !a && L.length > 0 && /* @__PURE__ */ c(Me, { children: [
1288
- /* @__PURE__ */ c(
1289
+ !n && !a && L.length > 0 && /* @__PURE__ */ i(Re, { children: [
1290
+ /* @__PURE__ */ i(
1289
1291
  "div",
1290
1292
  {
1291
- className: _.dateTabs,
1292
- ref: $e,
1293
+ className: m.dateTabs,
1294
+ ref: Ce,
1293
1295
  role: "radiogroup",
1294
1296
  "aria-label": "Consultation date",
1295
1297
  children: [
1296
- ne && /* @__PURE__ */ e(
1298
+ ee && /* @__PURE__ */ e(
1297
1299
  "span",
1298
1300
  {
1299
- className: _.dateTabIndicator,
1301
+ className: m.dateTabIndicator,
1300
1302
  style: {
1301
- transform: `translate(${ne.left}px, ${ne.top}px)`,
1302
- width: ne.width,
1303
- height: ne.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 === q, { dayLabel: x, dayNum: j } = pa(o.date);
1310
- return /* @__PURE__ */ c(Ze, { children: [
1311
- /* @__PURE__ */ c(
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: (D) => {
1316
- Ce.current[o.date] = D;
1317
+ ref: (x) => {
1318
+ Le.current[o.date] = x;
1317
1319
  },
1318
- className: z(_.dateTab, p && _.dateTabSelected),
1320
+ className: H(m.dateTab, p && m.dateTabSelected),
1319
1321
  role: "radio",
1320
1322
  "aria-checked": p,
1321
- onClick: () => Ue(o.date),
1323
+ onClick: () => Ye(o.date),
1322
1324
  children: [
1323
- /* @__PURE__ */ e("span", { className: _.dateTabLabel, children: y?.(x) ?? x }),
1324
- /* @__PURE__ */ e("span", { className: _.dateTabNum, children: j })
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: _.dateTabDivider, "aria-hidden": !0 })
1330
+ /* @__PURE__ */ e("span", { className: m.dateTabDivider, "aria-hidden": !0 })
1329
1331
  ] }, o.date);
1330
1332
  })
1331
1333
  ]
1332
1334
  }
1333
1335
  ),
1334
- /* @__PURE__ */ c(
1336
+ /* @__PURE__ */ i(
1335
1337
  "div",
1336
1338
  {
1337
- className: _.periodTabs,
1339
+ className: m.periodTabs,
1338
1340
  ref: xe,
1339
1341
  role: "tablist",
1340
1342
  "aria-label": "Time of day",
1341
1343
  children: [
1342
- Ne && /* @__PURE__ */ e(
1344
+ ve && /* @__PURE__ */ e(
1343
1345
  "span",
1344
1346
  {
1345
- className: _.periodTabIndicator,
1347
+ className: m.periodTabIndicator,
1346
1348
  style: {
1347
- transform: `translateX(${Ne.left}px)`,
1348
- width: Ne.width
1349
+ transform: `translateX(${ve.left}px)`,
1350
+ width: ve.width
1349
1351
  },
1350
1352
  "aria-hidden": "true"
1351
1353
  }
1352
1354
  ),
1353
- W.map((o) => {
1354
- const p = Eo[o], x = o === "evening" && ee, j = x ? "planPeriodEveningNight" : Oo[o];
1355
- return /* @__PURE__ */ c(
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: (D) => {
1359
- De.current[o] = D;
1360
+ ref: (x) => {
1361
+ Be.current[o] = x;
1360
1362
  },
1361
1363
  type: "button",
1362
- className: z(
1363
- _.periodTab,
1364
- o === P && _.periodTabSelected
1364
+ className: H(
1365
+ m.periodTab,
1366
+ o === z && m.periodTabSelected
1365
1367
  ),
1366
1368
  role: "tab",
1367
- "aria-selected": o === P,
1368
- onClick: () => Ge(o),
1369
+ "aria-selected": o === z,
1370
+ onClick: () => Je(o),
1369
1371
  children: [
1370
1372
  /* @__PURE__ */ e(p, {}),
1371
- y?.(j) ?? (x ? "Evening/Night" : o.charAt(0).toUpperCase() + o.slice(1))
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: _.timeGrid,
1385
+ className: m.timeGrid,
1384
1386
  role: "radiogroup",
1385
1387
  "aria-label": "Consultation time",
1386
- children: ce.map((o, p) => /* @__PURE__ */ e(
1388
+ children: ie.map((o, p) => /* @__PURE__ */ e(
1387
1389
  "button",
1388
1390
  {
1389
1391
  type: "button",
1390
- className: z(
1391
- _.timeSlot,
1392
- Ie === o.start && _.timeSlotSelected,
1393
- o.disabled && _.timeSlotDisabled
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": Ie === o.start,
1398
+ "aria-checked": Te === o.start,
1397
1399
  "aria-disabled": o.disabled || void 0,
1398
1400
  disabled: o.disabled,
1399
- onClick: () => !o.disabled && Ye(o),
1400
- children: ua(o.start)
1401
+ onClick: () => !o.disabled && Ze(o),
1402
+ children: ga(o.start)
1401
1403
  },
1402
1404
  `${o.start}-${p}`
1403
1405
  ))
1404
1406
  },
1405
- `${q}-${P}`
1407
+ `${O}-${z}`
1406
1408
  )
1407
1409
  ] })
1408
1410
  ] });
1409
- }, qe = "+05:30", Fo = (n) => {
1410
- const t = String(n.getMonth() + 1).padStart(2, "0"), a = String(n.getDate()).padStart(2, "0");
1411
- return `${n.getFullYear()}-${t}-${a}`;
1412
- }, qo = (n, t, a, s) => {
1413
- const r = (l) => String(l).padStart(2, "0"), i = a + 30, d = t + Math.floor(i / 60);
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: `${n}T${r(t)}:${r(a)}:00${qe}`,
1416
- end: `${n}T${r(d)}:${r(i % 60)}:00${qe}`,
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
- }, Wo = {
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
- }, ae = (n, t) => {
1454
+ }, ne = (t, n) => {
1442
1455
  const a = /* @__PURE__ */ new Date();
1443
- a.setDate(a.getDate() + n);
1444
- const s = Fo(a), r = t.flatMap(
1445
- (i) => Wo[i].map(([d, l]) => qo(s, d, l, i))
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
- }, jo = [
1449
- ae(0, ["morning", "afternoon", "evening"]),
1450
- ae(1, ["morning", "afternoon"]),
1451
- ae(2, ["afternoon", "evening"]),
1452
- ae(3, ["morning", "evening"]),
1453
- ae(4, ["morning", "afternoon", "evening"])
1454
- ], dr = jo.map((n) => ({
1455
- ...n,
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
- })), Ho = () => /* @__PURE__ */ e(
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
- ), zo = [
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
- ], Ko = (n) => {
1528
- if (!n || n.length !== 2) return "🏳️";
1529
- const t = n.toUpperCase().split("").map((a) => 127397 + a.charCodeAt(0));
1530
- return String.fromCodePoint(...t);
1531
- }, Uo = ({
1532
- countryCode: n,
1533
- contactNumber: t,
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: i,
1550
+ onValidationChange: c,
1538
1551
  onDropdownFocus: d,
1539
1552
  onInputFocus: l
1540
1553
  }) => {
1541
- const [u, h] = T(!1), f = a.find((k) => k.code === n) ?? a[0], m = Re(n), g = le(
1542
- (k) => {
1543
- if (s(k.code, k.name), h(!1), t && i) {
1544
- const { isValid: $, error: R } = Pe(t, k.code);
1545
- i($, R);
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
- [t, s, i]
1561
+ [n, s, c]
1549
1562
  ), b = le(
1550
- (k) => {
1551
- const R = k.target.value.replace(/[^\d]/g, "").slice(0, Re(n));
1552
- if (r(R), i) {
1553
- const { isValid: Y, error: J } = Pe(R, n);
1554
- i(Y, J);
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
- [n, r, i]
1570
+ [t, r, c]
1558
1571
  ), w = le(() => {
1559
- h((k) => (k || d?.(n), !k));
1560
- }, [n, d]), O = le(() => {
1561
- h(!1), l?.(n);
1562
- }, [n, l]);
1572
+ _((S) => (S || d?.(t), !S));
1573
+ }, [t, d]), E = le(() => {
1574
+ _(!1), l?.(t);
1575
+ }, [t, l]);
1563
1576
  return {
1564
- isDropdownOpen: u,
1577
+ isDropdownOpen: h,
1565
1578
  selectedCountry: f,
1566
- maxLength: m,
1579
+ maxLength: u,
1567
1580
  handleCountrySelect: g,
1568
1581
  handlePhoneChange: b,
1569
1582
  handleDropdownToggle: w,
1570
- handlePhoneFocus: O,
1571
- closeDropdown: () => h(!1)
1583
+ handlePhoneFocus: E,
1584
+ closeDropdown: () => _(!1)
1572
1585
  };
1573
- }, Go = "_root_3ywyc_2", Yo = "_label_3ywyc_9", Jo = "_row_3ywyc_17", Zo = "_dropdownWrap_3ywyc_23", Xo = "_dropdownBtn_3ywyc_29", Qo = "_dropdownMenu_3ywyc_50", Vo = "_dropdownItem_3ywyc_64", es = "_dropdownItemCode_3ywyc_80", ns = "_dropdownItemName_3ywyc_85", ts = "_flagImg_3ywyc_93", as = "_flagEmoji_3ywyc_97", os = "_input_3ywyc_102", ss = "_inputError_3ywyc_121", rs = "_helper_3ywyc_129", cs = "_error_3ywyc_137", S = {
1574
- root: Go,
1575
- label: Yo,
1576
- row: Jo,
1577
- dropdownWrap: Zo,
1578
- dropdownBtn: Xo,
1579
- dropdownMenu: Qo,
1580
- dropdownItem: Vo,
1581
- dropdownItemCode: es,
1582
- dropdownItemName: ns,
1583
- flagImg: ts,
1584
- flagEmoji: as,
1585
- input: os,
1586
- inputError: ss,
1587
- helper: rs,
1588
- error: cs
1589
- }, We = (...n) => n.filter(Boolean).join(" "), _r = ({
1590
- countryCode: n,
1591
- contactNumber: t,
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: i = zo,
1608
+ countries: c = Uo,
1596
1609
  getFlagUrl: d,
1597
1610
  onCountryCodeChange: l,
1598
- onPhoneNumberChange: u,
1599
- onValidationChange: h,
1611
+ onPhoneNumberChange: h,
1612
+ onValidationChange: _,
1600
1613
  onDropdownFocus: f,
1601
- onInputFocus: m,
1614
+ onInputFocus: u,
1602
1615
  inputRef: g,
1603
1616
  t: b,
1604
1617
  className: w = ""
1605
1618
  }) => {
1606
- const [O, k] = T(i[0]?.code ?? "+91"), [$, R] = T(""), Y = n ?? O, J = t ?? $, Z = G(null), {
1607
- isDropdownOpen: ee,
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: ue,
1610
- handleCountrySelect: L,
1611
- handlePhoneChange: re,
1612
- handleDropdownToggle: pe,
1613
- handlePhoneFocus: q,
1614
- closeDropdown: F
1615
- } = Uo({
1616
- countryCode: Y,
1617
- contactNumber: J,
1618
- countries: i,
1619
- onCountryCodeChange: (N, K) => {
1620
- k(N), l?.(N, K);
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), u?.(N);
1636
+ R(N), h?.(N);
1624
1637
  },
1625
- onValidationChange: h,
1638
+ onValidationChange: _,
1626
1639
  onDropdownFocus: f,
1627
- onInputFocus: m
1640
+ onInputFocus: u
1628
1641
  });
1629
- se(() => {
1630
- const N = (K) => {
1631
- Z.current && !Z.current.contains(K.target) && F();
1642
+ oe(() => {
1643
+ const N = (q) => {
1644
+ J.current && !J.current.contains(q.target) && O();
1632
1645
  };
1633
- return ee && document.addEventListener("mousedown", N), () => document.removeEventListener("mousedown", N);
1634
- }, [ee, F]);
1635
- const W = (N, K) => {
1636
- const P = N ? d?.(N) : null;
1637
- return P ? /* @__PURE__ */ e("img", { src: P, alt: K, width: 20, height: 14, className: S.flagImg }) : /* @__PURE__ */ e("span", { className: S.flagEmoji, "aria-hidden": !0, children: Ko(N) });
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__ */ c("div", { className: We(S.root, w), children: [
1640
- s && /* @__PURE__ */ e("div", { className: S.label, children: s }),
1641
- /* @__PURE__ */ c("div", { className: S.row, children: [
1642
- /* @__PURE__ */ c("div", { className: S.dropdownWrap, ref: Z, children: [
1643
- /* @__PURE__ */ c("button", { type: "button", className: S.dropdownBtn, onClick: pe, children: [
1644
- W(y?.iso, y?.name ?? "Flag"),
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(Ho, {})
1659
+ /* @__PURE__ */ e(Ko, {})
1647
1660
  ] }),
1648
- ee && /* @__PURE__ */ e("div", { className: S.dropdownMenu, role: "listbox", children: i.map((N) => /* @__PURE__ */ c(
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: S.dropdownItem,
1655
- onClick: () => L(N),
1667
+ className: k.dropdownItem,
1668
+ onClick: () => pe(N),
1656
1669
  children: [
1657
- W(N.iso, N.name),
1658
- /* @__PURE__ */ e("span", { className: S.dropdownItemCode, children: N.code }),
1659
- /* @__PURE__ */ e("span", { className: S.dropdownItemName, children: N.name })
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: J,
1672
- maxLength: ue,
1684
+ value: Y,
1685
+ maxLength: he,
1673
1686
  ref: g,
1674
- className: We(S.input, a && S.inputError),
1687
+ className: je(k.input, a && k.inputError),
1675
1688
  placeholder: b?.("planPhoneNumberPlaceholder") ?? "0000000000",
1676
- onChange: re,
1677
- onFocus: q
1689
+ onChange: L,
1690
+ onFocus: ge
1678
1691
  }
1679
1692
  )
1680
1693
  ] }),
1681
- r && /* @__PURE__ */ e("div", { className: S.helper, children: r }),
1682
- a && /* @__PURE__ */ e("p", { className: S.error, children: a })
1694
+ r && /* @__PURE__ */ e("div", { className: k.helper, children: r }),
1695
+ a && /* @__PURE__ */ e("p", { className: k.error, children: a })
1683
1696
  ] });
1684
- }, is = () => /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
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
- ) }), ls = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
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
- ) }), ds = "_card_1mv2d_3", _s = "_cardSelected_1mv2d_25", ms = "_photoWrap_1mv2d_32", hs = "_photoFrame_1mv2d_38", us = "_photoImg_1mv2d_46", ps = "_ratingPill_1mv2d_52", gs = "_ratingValue_1mv2d_67", bs = "_info_1mv2d_75", fs = "_name_1mv2d_85", Ns = "_meta_1mv2d_96", vs = "_languages_1mv2d_104", ws = "_consultationCount_1mv2d_114", ys = "_checkIcon_1mv2d_122", ks = "_recommendedBadge_1mv2d_127", Ss = "_recommendedLabel_1mv2d_149", I = {
1703
- card: ds,
1704
- cardSelected: _s,
1705
- photoWrap: ms,
1706
- photoFrame: hs,
1707
- photoImg: us,
1708
- ratingPill: ps,
1709
- ratingValue: gs,
1710
- info: bs,
1711
- name: fs,
1712
- meta: Ns,
1713
- languages: vs,
1714
- consultationCount: ws,
1715
- checkIcon: ys,
1716
- recommendedBadge: ks,
1717
- recommendedLabel: Ss
1718
- }, Is = "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>", Ts = ({
1719
- photoUrl: n,
1720
- name: t,
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 = Is
1723
- }) => /* @__PURE__ */ c("div", { className: I.photoWrap, children: [
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: n || s,
1728
- alt: t,
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__ */ c("div", { className: I.ratingPill, children: [
1750
+ /* @__PURE__ */ i("div", { className: I.ratingPill, children: [
1738
1751
  /* @__PURE__ */ e("span", { className: I.ratingValue, children: a }),
1739
- /* @__PURE__ */ e(is, {})
1752
+ /* @__PURE__ */ e(ds, {})
1740
1753
  ] })
1741
- ] }), $s = ({ label: n, t }) => /* @__PURE__ */ e("div", { className: I.recommendedBadge, children: /* @__PURE__ */ e("span", { className: I.recommendedLabel, children: n ?? t?.("planRecommendedAstrologer") ?? "Recommended" }) }), Cs = (...n) => n.filter(Boolean).join(" "), Ls = (n) => {
1742
- if (n >= 1e3) {
1743
- const t = n / 1e3;
1744
- return `${Number.isInteger(t) ? t : t.toFixed(1)}K consultations`;
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 `${n} consultations`;
1747
- }, xs = ({
1748
- astrologer: n,
1749
- isSelected: t = !1,
1759
+ return `${t} consultations`;
1760
+ }, Bs = ({
1761
+ astrologer: t,
1762
+ isSelected: n = !1,
1750
1763
  onClick: a,
1751
1764
  fallbackPhotoUrl: s,
1752
- formatConsultationCount: r = Ls
1753
- }) => /* @__PURE__ */ c(
1765
+ formatConsultationCount: r = xs
1766
+ }) => /* @__PURE__ */ i(
1754
1767
  "button",
1755
1768
  {
1756
1769
  type: "button",
1757
- onClick: () => a?.(n),
1758
- className: Cs(I.card, t && I.cardSelected),
1770
+ onClick: () => a?.(t),
1771
+ className: Ds(I.card, n && I.cardSelected),
1759
1772
  children: [
1760
1773
  /* @__PURE__ */ e(
1761
- Ts,
1774
+ Cs,
1762
1775
  {
1763
- photoUrl: n.photo_url,
1764
- name: n.name,
1765
- rating: n.rating,
1776
+ photoUrl: t.photo_url,
1777
+ name: t.name,
1778
+ rating: t.rating,
1766
1779
  fallbackPhotoUrl: s
1767
1780
  }
1768
1781
  ),
1769
- /* @__PURE__ */ c("div", { className: I.info, children: [
1770
- /* @__PURE__ */ e("span", { className: I.name, children: n.name }),
1771
- /* @__PURE__ */ c("div", { className: I.meta, children: [
1772
- /* @__PURE__ */ e("span", { className: I.languages, children: n.languages.join(", ") }),
1773
- /* @__PURE__ */ e("span", { className: I.consultationCount, children: r(n.consultation_count) })
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
- t && /* @__PURE__ */ e("div", { className: I.checkIcon, children: /* @__PURE__ */ e(ls, {}) }),
1777
- n.is_recommended && /* @__PURE__ */ e($s, {})
1789
+ n && /* @__PURE__ */ e("div", { className: I.checkIcon, children: /* @__PURE__ */ e(_s, {}) }),
1790
+ t.is_recommended && /* @__PURE__ */ e(Ls, {})
1778
1791
  ]
1779
1792
  }
1780
- ), Ds = "_wrapper_vfs2z_41", Bs = "_ribbon_vfs2z_8", Ms = "_fold_vfs2z_64", Rs = "_label_vfs2z_74", he = {
1781
- wrapper: Ds,
1782
- ribbon: Bs,
1783
- fold: Ms,
1784
- label: Rs
1785
- }, mr = ({
1786
- label: n,
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__ */ c("div", { className: [he.wrapper, a].filter(Boolean).join(" "), children: [
1790
- /* @__PURE__ */ e("div", { className: he.ribbon, children: /* @__PURE__ */ e("span", { className: he.label, children: n ?? t?.("planRecommendedAstrologer") ?? "Recommended" }) }),
1791
- /* @__PURE__ */ e("div", { className: he.fold })
1792
- ] }), Ps = "_section_jbaga_2", As = "_title_jbaga_6", Es = "_row_jbaga_13", Os = "_skeletonCard_jbaga_26", Fs = "_skeletonShimmer_jbaga_33", oe = {
1793
- section: Ps,
1794
- title: As,
1795
- row: Es,
1796
- skeletonCard: Os,
1797
- skeletonShimmer: Fs
1798
- }, je = (...n) => n.filter(Boolean).join(" "), hr = ({
1799
- astrologers: n,
1800
- loading: t = !1,
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: i,
1817
+ fallbackPhotoUrl: c,
1805
1818
  formatConsultationCount: d,
1806
1819
  t: l,
1807
- className: u = ""
1820
+ className: h = ""
1808
1821
  }) => {
1809
- const [h, f] = T(""), m = a ?? h, g = (b) => {
1822
+ const [_, f] = T(""), u = a ?? _, g = (b) => {
1810
1823
  f(b.astrologer_id), s?.(b);
1811
1824
  };
1812
- return /* @__PURE__ */ c("section", { className: je(oe.section, u), children: [
1813
- /* @__PURE__ */ e("p", { className: oe.title, children: r ?? l?.("planSelectAstrologerHeading") ?? "Select an astrologer" }),
1814
- /* @__PURE__ */ e("div", { className: oe.row, role: "radiogroup", "aria-label": "Astrologer", children: t ? Array.from({ length: 2 }).map((b, w) => /* @__PURE__ */ e("div", { className: je(oe.skeletonCard, oe.skeletonShimmer) }, w)) : n.map((b) => /* @__PURE__ */ e(
1815
- xs,
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 === m,
1831
+ isSelected: b.astrologer_id === u,
1819
1832
  onClick: g,
1820
- fallbackPhotoUrl: i,
1833
+ fallbackPhotoUrl: c,
1821
1834
  formatConsultationCount: d
1822
1835
  },
1823
1836
  b.astrologer_id
1824
1837
  )) })
1825
1838
  ] });
1826
- }, ur = [
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
- xs as AstrologerCard,
1855
- hr as AstrologerList,
1856
- Ts as AstrologerPhoto,
1857
- Ua as AstrologyProfilesSection,
1858
- ba as CONSULTATION_LANGUAGE_OPTIONS,
1859
- ga as CONSULTATION_PERIOD_ORDER,
1860
- ra as CircularMarquee,
1861
- lr as ConsultationSlotSelector,
1862
- ir as ContactUsSection,
1863
- zo as DEFAULT_COUNTRIES,
1864
- Ks as FAQAccordion,
1865
- rr as FooterCTAButton,
1866
- sr as FooterShell,
1867
- ar as FormCheckboxWithHelp,
1868
- Gs as FormContainer,
1869
- Qs as FormDateInput,
1870
- Zs as FormField,
1871
- or as FormFooterNote,
1872
- er as FormLocationInput,
1873
- Ys as FormSectionHeader,
1874
- nr as FormSegmentedControl,
1875
- tr as FormTagPills,
1876
- Xs as FormTextInput,
1877
- Vs as FormTimeInput,
1878
- ur as MOCK_ASTROLOGERS,
1879
- jo as MOCK_SLOT_DAYS,
1880
- dr as MOCK_SLOT_DAYS_EMPTY,
1881
- cr as MarqueeStrip,
1882
- Us as PageHeader,
1883
- _r as PhoneNumberInput,
1884
- Ba as PhoneNumberSection,
1885
- Js as PrivacyBanner,
1886
- $s as RecommendedBadge,
1887
- mr as RecommendedRibbon,
1888
- zs as UserReviewsSection,
1889
- V as footerShellStyles,
1890
- pa as formatSlotDayLabel,
1891
- ua as formatSlotTime,
1892
- Ko as getFlagEmoji,
1893
- br as getMaxLengthForCountry,
1894
- fr as validatePhoneByCountryCode
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