@srimandir/astrology-common 8.0.2 → 8.0.4

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.
Files changed (29) hide show
  1. package/dist/astrology-common.css +1 -1
  2. package/dist/components/AstrologersListCard/AstrologerCard.d.ts +11 -0
  3. package/dist/components/AstrologersListCard/AstrologerList.d.ts +18 -0
  4. package/dist/components/AstrologersListCard/AstrologerPhoto.d.ts +9 -0
  5. package/dist/components/AstrologersListCard/RecommendedBadge.d.ts +7 -0
  6. package/dist/components/AstrologersListCard/RecommendedRibbon.d.ts +17 -0
  7. package/dist/components/AstrologersListCard/icons.d.ts +5 -0
  8. package/dist/components/AstrologersListCard/index.d.ts +7 -0
  9. package/dist/components/AstrologersListCard/mockAstrologers.d.ts +2 -0
  10. package/dist/components/AstrologersListCard/types.d.ts +10 -0
  11. package/dist/components/ConsultationSlotSelector/AstrologyProfilesSection.d.ts +27 -0
  12. package/dist/components/ConsultationSlotSelector/ConsultationSlotSelector.d.ts +55 -0
  13. package/dist/components/ConsultationSlotSelector/PhoneNumberSection.d.ts +17 -0
  14. package/dist/components/ConsultationSlotSelector/SlotIcons.d.ts +13 -0
  15. package/dist/components/ConsultationSlotSelector/index.d.ts +6 -0
  16. package/dist/components/ConsultationSlotSelector/mockSlots.d.ts +5 -0
  17. package/dist/components/ConsultationSlotSelector/slotUtils.d.ts +18 -0
  18. package/dist/components/ConsultationSlotSelector/types.d.ts +34 -0
  19. package/dist/components/PhoneNumberInput/PhoneNumberInput.d.ts +27 -0
  20. package/dist/components/PhoneNumberInput/countries.d.ts +13 -0
  21. package/dist/components/PhoneNumberInput/icons.d.ts +3 -0
  22. package/dist/components/PhoneNumberInput/index.d.ts +3 -0
  23. package/dist/components/PhoneNumberInput/usePhoneNumberInput.d.ts +22 -0
  24. package/dist/index.cjs +1 -14
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.ts +6 -0
  27. package/dist/index.js +1551 -1169
  28. package/dist/index.js.map +1 -1
  29. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,757 +1,149 @@
1
1
  import "./styles.js";
2
- import Xe, { useMemo as ve, useState as be, useEffect as St, useRef as Pt } from "react";
3
- var ee = { exports: {} }, H = {};
4
- var Ye;
5
- function qt() {
6
- if (Ye) return H;
7
- Ye = 1;
8
- var a = Xe, s = /* @__PURE__ */ Symbol.for("react.element"), o = /* @__PURE__ */ Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, u = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
9
- function f(c, d, h) {
10
- var v, x = {}, y = null, N = null;
11
- h !== void 0 && (y = "" + h), d.key !== void 0 && (y = "" + d.key), d.ref !== void 0 && (N = d.ref);
12
- for (v in d) i.call(d, v) && !_.hasOwnProperty(v) && (x[v] = d[v]);
13
- if (c && c.defaultProps) for (v in d = c.defaultProps, d) x[v] === void 0 && (x[v] = d[v]);
14
- return { $$typeof: s, type: c, key: y, ref: N, props: x, _owner: u.current };
15
- }
16
- return H.Fragment = o, H.jsx = f, H.jsxs = f, H;
17
- }
18
- var J = {};
19
- var ze;
20
- function Ft() {
21
- return ze || (ze = 1, process.env.NODE_ENV !== "production" && (function() {
22
- var a = Xe, s = /* @__PURE__ */ Symbol.for("react.element"), o = /* @__PURE__ */ Symbol.for("react.portal"), i = /* @__PURE__ */ Symbol.for("react.fragment"), u = /* @__PURE__ */ Symbol.for("react.strict_mode"), _ = /* @__PURE__ */ Symbol.for("react.profiler"), f = /* @__PURE__ */ Symbol.for("react.provider"), c = /* @__PURE__ */ Symbol.for("react.context"), d = /* @__PURE__ */ Symbol.for("react.forward_ref"), h = /* @__PURE__ */ Symbol.for("react.suspense"), v = /* @__PURE__ */ Symbol.for("react.suspense_list"), x = /* @__PURE__ */ Symbol.for("react.memo"), y = /* @__PURE__ */ Symbol.for("react.lazy"), N = /* @__PURE__ */ Symbol.for("react.offscreen"), R = Symbol.iterator, Y = "@@iterator";
23
- function ae(e) {
24
- if (e === null || typeof e != "object")
25
- return null;
26
- var n = R && e[R] || e[Y];
27
- return typeof n == "function" ? n : null;
28
- }
29
- var T = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
30
- function E(e) {
31
- {
32
- for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), l = 1; l < n; l++)
33
- r[l - 1] = arguments[l];
34
- Qe("error", e, r);
35
- }
36
- }
37
- function Qe(e, n, r) {
38
- {
39
- var l = T.ReactDebugCurrentFrame, b = l.getStackAddendum();
40
- b !== "" && (n += "%s", r = r.concat([b]));
41
- var g = r.map(function(m) {
42
- return String(m);
43
- });
44
- g.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, g);
45
- }
46
- }
47
- var Ze = !1, et = !1, tt = !1, nt = !1, rt = !1, ge;
48
- ge = /* @__PURE__ */ Symbol.for("react.module.reference");
49
- function at(e) {
50
- return !!(typeof e == "string" || typeof e == "function" || e === i || e === _ || rt || e === u || e === h || e === v || nt || e === N || Ze || et || tt || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === x || e.$$typeof === f || e.$$typeof === c || e.$$typeof === d || // This needs to include all possible module reference object
51
- // types supported by any Flight configuration anywhere since
52
- // we don't know which Flight build this will end up being used
53
- // with.
54
- e.$$typeof === ge || e.getModuleId !== void 0));
55
- }
56
- function st(e, n, r) {
57
- var l = e.displayName;
58
- if (l)
59
- return l;
60
- var b = n.displayName || n.name || "";
61
- return b !== "" ? r + "(" + b + ")" : r;
62
- }
63
- function xe(e) {
64
- return e.displayName || "Context";
65
- }
66
- function q(e) {
67
- if (e == null)
68
- return null;
69
- if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
70
- return e.displayName || e.name || null;
71
- if (typeof e == "string")
72
- return e;
73
- switch (e) {
74
- case i:
75
- return "Fragment";
76
- case o:
77
- return "Portal";
78
- case _:
79
- return "Profiler";
80
- case u:
81
- return "StrictMode";
82
- case h:
83
- return "Suspense";
84
- case v:
85
- return "SuspenseList";
86
- }
87
- if (typeof e == "object")
88
- switch (e.$$typeof) {
89
- case c:
90
- var n = e;
91
- return xe(n) + ".Consumer";
92
- case f:
93
- var r = e;
94
- return xe(r._context) + ".Provider";
95
- case d:
96
- return st(e, e.render, "ForwardRef");
97
- case x:
98
- var l = e.displayName || null;
99
- return l !== null ? l : q(e.type) || "Memo";
100
- case y: {
101
- var b = e, g = b._payload, m = b._init;
102
- try {
103
- return q(m(g));
104
- } catch {
105
- return null;
106
- }
107
- }
108
- }
109
- return null;
110
- }
111
- var F = Object.assign, z = 0, ye, je, we, Ne, $e, Ee, Re;
112
- function ke() {
113
- }
114
- ke.__reactDisabledLog = !0;
115
- function ot() {
116
- {
117
- if (z === 0) {
118
- ye = console.log, je = console.info, we = console.warn, Ne = console.error, $e = console.group, Ee = console.groupCollapsed, Re = console.groupEnd;
119
- var e = {
120
- configurable: !0,
121
- enumerable: !0,
122
- value: ke,
123
- writable: !0
124
- };
125
- Object.defineProperties(console, {
126
- info: e,
127
- log: e,
128
- warn: e,
129
- error: e,
130
- group: e,
131
- groupCollapsed: e,
132
- groupEnd: e
133
- });
134
- }
135
- z++;
136
- }
137
- }
138
- function it() {
139
- {
140
- if (z--, z === 0) {
141
- var e = {
142
- configurable: !0,
143
- enumerable: !0,
144
- writable: !0
145
- };
146
- Object.defineProperties(console, {
147
- log: F({}, e, {
148
- value: ye
149
- }),
150
- info: F({}, e, {
151
- value: je
152
- }),
153
- warn: F({}, e, {
154
- value: we
155
- }),
156
- error: F({}, e, {
157
- value: Ne
158
- }),
159
- group: F({}, e, {
160
- value: $e
161
- }),
162
- groupCollapsed: F({}, e, {
163
- value: Ee
164
- }),
165
- groupEnd: F({}, e, {
166
- value: Re
167
- })
168
- });
169
- }
170
- z < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
171
- }
172
- }
173
- var se = T.ReactCurrentDispatcher, oe;
174
- function K(e, n, r) {
175
- {
176
- if (oe === void 0)
177
- try {
178
- throw Error();
179
- } catch (b) {
180
- var l = b.stack.trim().match(/\n( *(at )?)/);
181
- oe = l && l[1] || "";
182
- }
183
- return `
184
- ` + oe + e;
185
- }
186
- }
187
- var ie = !1, X;
188
- {
189
- var ct = typeof WeakMap == "function" ? WeakMap : Map;
190
- X = new ct();
191
- }
192
- function Te(e, n) {
193
- if (!e || ie)
194
- return "";
195
- {
196
- var r = X.get(e);
197
- if (r !== void 0)
198
- return r;
199
- }
200
- var l;
201
- ie = !0;
202
- var b = Error.prepareStackTrace;
203
- Error.prepareStackTrace = void 0;
204
- var g;
205
- g = se.current, se.current = null, ot();
206
- try {
207
- if (n) {
208
- var m = function() {
209
- throw Error();
210
- };
211
- if (Object.defineProperty(m.prototype, "props", {
212
- set: function() {
213
- throw Error();
214
- }
215
- }), typeof Reflect == "object" && Reflect.construct) {
216
- try {
217
- Reflect.construct(m, []);
218
- } catch (O) {
219
- l = O;
220
- }
221
- Reflect.construct(e, [], m);
222
- } else {
223
- try {
224
- m.call();
225
- } catch (O) {
226
- l = O;
227
- }
228
- e.call(m.prototype);
229
- }
230
- } else {
231
- try {
232
- throw Error();
233
- } catch (O) {
234
- l = O;
235
- }
236
- e();
237
- }
238
- } catch (O) {
239
- if (O && l && typeof O.stack == "string") {
240
- for (var p = O.stack.split(`
241
- `), k = l.stack.split(`
242
- `), w = p.length - 1, $ = k.length - 1; w >= 1 && $ >= 0 && p[w] !== k[$]; )
243
- $--;
244
- for (; w >= 1 && $ >= 0; w--, $--)
245
- if (p[w] !== k[$]) {
246
- if (w !== 1 || $ !== 1)
247
- do
248
- if (w--, $--, $ < 0 || p[w] !== k[$]) {
249
- var I = `
250
- ` + p[w].replace(" at new ", " at ");
251
- return e.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, I), I;
252
- }
253
- while (w >= 1 && $ >= 0);
254
- break;
255
- }
256
- }
257
- } finally {
258
- ie = !1, se.current = g, it(), Error.prepareStackTrace = b;
259
- }
260
- var W = e ? e.displayName || e.name : "", A = W ? K(W) : "";
261
- return typeof e == "function" && X.set(e, A), A;
262
- }
263
- function lt(e, n, r) {
264
- return Te(e, !1);
265
- }
266
- function ut(e) {
267
- var n = e.prototype;
268
- return !!(n && n.isReactComponent);
269
- }
270
- function Q(e, n, r) {
271
- if (e == null)
272
- return "";
273
- if (typeof e == "function")
274
- return Te(e, ut(e));
275
- if (typeof e == "string")
276
- return K(e);
277
- switch (e) {
278
- case h:
279
- return K("Suspense");
280
- case v:
281
- return K("SuspenseList");
282
- }
283
- if (typeof e == "object")
284
- switch (e.$$typeof) {
285
- case d:
286
- return lt(e.render);
287
- case x:
288
- return Q(e.type, n, r);
289
- case y: {
290
- var l = e, b = l._payload, g = l._init;
291
- try {
292
- return Q(g(b), n, r);
293
- } catch {
294
- }
295
- }
296
- }
297
- return "";
298
- }
299
- var V = Object.prototype.hasOwnProperty, Oe = {}, Ie = T.ReactDebugCurrentFrame;
300
- function Z(e) {
301
- if (e) {
302
- var n = e._owner, r = Q(e.type, e._source, n ? n.type : null);
303
- Ie.setExtraStackFrame(r);
304
- } else
305
- Ie.setExtraStackFrame(null);
306
- }
307
- function dt(e, n, r, l, b) {
308
- {
309
- var g = Function.call.bind(V);
310
- for (var m in e)
311
- if (g(e, m)) {
312
- var p = void 0;
313
- try {
314
- if (typeof e[m] != "function") {
315
- var k = Error((l || "React class") + ": " + r + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
316
- throw k.name = "Invariant Violation", k;
317
- }
318
- p = e[m](n, m, l, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
319
- } catch (w) {
320
- p = w;
321
- }
322
- p && !(p instanceof Error) && (Z(b), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", l || "React class", r, m, typeof p), Z(null)), p instanceof Error && !(p.message in Oe) && (Oe[p.message] = !0, Z(b), E("Failed %s type: %s", r, p.message), Z(null));
323
- }
324
- }
325
- }
326
- var ft = Array.isArray;
327
- function ce(e) {
328
- return ft(e);
329
- }
330
- function _t(e) {
331
- {
332
- var n = typeof Symbol == "function" && Symbol.toStringTag, r = n && e[Symbol.toStringTag] || e.constructor.name || "Object";
333
- return r;
334
- }
335
- }
336
- function pt(e) {
337
- try {
338
- return Ce(e), !1;
339
- } catch {
340
- return !0;
341
- }
342
- }
343
- function Ce(e) {
344
- return "" + e;
345
- }
346
- function Se(e) {
347
- if (pt(e))
348
- return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _t(e)), Ce(e);
349
- }
350
- var Pe = T.ReactCurrentOwner, ht = {
351
- key: !0,
352
- ref: !0,
353
- __self: !0,
354
- __source: !0
355
- }, qe, Fe;
356
- function mt(e) {
357
- if (V.call(e, "ref")) {
358
- var n = Object.getOwnPropertyDescriptor(e, "ref").get;
359
- if (n && n.isReactWarning)
360
- return !1;
361
- }
362
- return e.ref !== void 0;
363
- }
364
- function vt(e) {
365
- if (V.call(e, "key")) {
366
- var n = Object.getOwnPropertyDescriptor(e, "key").get;
367
- if (n && n.isReactWarning)
368
- return !1;
369
- }
370
- return e.key !== void 0;
371
- }
372
- function bt(e, n) {
373
- typeof e.ref == "string" && Pe.current;
374
- }
375
- function gt(e, n) {
376
- {
377
- var r = function() {
378
- qe || (qe = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
379
- };
380
- r.isReactWarning = !0, Object.defineProperty(e, "key", {
381
- get: r,
382
- configurable: !0
383
- });
384
- }
385
- }
386
- function xt(e, n) {
387
- {
388
- var r = function() {
389
- Fe || (Fe = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
390
- };
391
- r.isReactWarning = !0, Object.defineProperty(e, "ref", {
392
- get: r,
393
- configurable: !0
394
- });
395
- }
396
- }
397
- var yt = function(e, n, r, l, b, g, m) {
398
- var p = {
399
- // This tag allows us to uniquely identify this as a React Element
400
- $$typeof: s,
401
- // Built-in properties that belong on the element
402
- type: e,
403
- key: n,
404
- ref: r,
405
- props: m,
406
- // Record the component responsible for creating this element.
407
- _owner: g
408
- };
409
- return p._store = {}, Object.defineProperty(p._store, "validated", {
410
- configurable: !1,
411
- enumerable: !1,
412
- writable: !0,
413
- value: !1
414
- }), Object.defineProperty(p, "_self", {
415
- configurable: !1,
416
- enumerable: !1,
417
- writable: !1,
418
- value: l
419
- }), Object.defineProperty(p, "_source", {
420
- configurable: !1,
421
- enumerable: !1,
422
- writable: !1,
423
- value: b
424
- }), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
425
- };
426
- function jt(e, n, r, l, b) {
427
- {
428
- var g, m = {}, p = null, k = null;
429
- r !== void 0 && (Se(r), p = "" + r), vt(n) && (Se(n.key), p = "" + n.key), mt(n) && (k = n.ref, bt(n, b));
430
- for (g in n)
431
- V.call(n, g) && !ht.hasOwnProperty(g) && (m[g] = n[g]);
432
- if (e && e.defaultProps) {
433
- var w = e.defaultProps;
434
- for (g in w)
435
- m[g] === void 0 && (m[g] = w[g]);
436
- }
437
- if (p || k) {
438
- var $ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
439
- p && gt(m, $), k && xt(m, $);
440
- }
441
- return yt(e, p, k, b, l, Pe.current, m);
442
- }
443
- }
444
- var le = T.ReactCurrentOwner, Ae = T.ReactDebugCurrentFrame;
445
- function D(e) {
446
- if (e) {
447
- var n = e._owner, r = Q(e.type, e._source, n ? n.type : null);
448
- Ae.setExtraStackFrame(r);
449
- } else
450
- Ae.setExtraStackFrame(null);
451
- }
452
- var ue;
453
- ue = !1;
454
- function de(e) {
455
- return typeof e == "object" && e !== null && e.$$typeof === s;
456
- }
457
- function Be() {
458
- {
459
- if (le.current) {
460
- var e = q(le.current.type);
461
- if (e)
462
- return `
463
-
464
- Check the render method of \`` + e + "`.";
465
- }
466
- return "";
467
- }
468
- }
469
- function wt(e) {
470
- return "";
471
- }
472
- var De = {};
473
- function Nt(e) {
474
- {
475
- var n = Be();
476
- if (!n) {
477
- var r = typeof e == "string" ? e : e.displayName || e.name;
478
- r && (n = `
479
-
480
- Check the top-level render call using <` + r + ">.");
481
- }
482
- return n;
483
- }
484
- }
485
- function We(e, n) {
486
- {
487
- if (!e._store || e._store.validated || e.key != null)
488
- return;
489
- e._store.validated = !0;
490
- var r = Nt(n);
491
- if (De[r])
492
- return;
493
- De[r] = !0;
494
- var l = "";
495
- e && e._owner && e._owner !== le.current && (l = " It was passed a child from " + q(e._owner.type) + "."), D(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, l), D(null);
496
- }
497
- }
498
- function Le(e, n) {
499
- {
500
- if (typeof e != "object")
501
- return;
502
- if (ce(e))
503
- for (var r = 0; r < e.length; r++) {
504
- var l = e[r];
505
- de(l) && We(l, n);
506
- }
507
- else if (de(e))
508
- e._store && (e._store.validated = !0);
509
- else if (e) {
510
- var b = ae(e);
511
- if (typeof b == "function" && b !== e.entries)
512
- for (var g = b.call(e), m; !(m = g.next()).done; )
513
- de(m.value) && We(m.value, n);
514
- }
515
- }
516
- }
517
- function $t(e) {
518
- {
519
- var n = e.type;
520
- if (n == null || typeof n == "string")
521
- return;
522
- var r;
523
- if (typeof n == "function")
524
- r = n.propTypes;
525
- else if (typeof n == "object" && (n.$$typeof === d || // Note: Memo only checks outer props here.
526
- // Inner props are checked in the reconciler.
527
- n.$$typeof === x))
528
- r = n.propTypes;
529
- else
530
- return;
531
- if (r) {
532
- var l = q(n);
533
- dt(r, e.props, "prop", l, e);
534
- } else if (n.PropTypes !== void 0 && !ue) {
535
- ue = !0;
536
- var b = q(n);
537
- E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
538
- }
539
- typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
540
- }
541
- }
542
- function Et(e) {
543
- {
544
- for (var n = Object.keys(e.props), r = 0; r < n.length; r++) {
545
- var l = n[r];
546
- if (l !== "children" && l !== "key") {
547
- D(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", l), D(null);
548
- break;
549
- }
550
- }
551
- e.ref !== null && (D(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
552
- }
553
- }
554
- var Me = {};
555
- function Ue(e, n, r, l, b, g) {
556
- {
557
- var m = at(e);
558
- if (!m) {
559
- var p = "";
560
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (p += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
561
- var k = wt();
562
- k ? p += k : p += Be();
563
- var w;
564
- e === null ? w = "null" : ce(e) ? w = "array" : e !== void 0 && e.$$typeof === s ? (w = "<" + (q(e.type) || "Unknown") + " />", p = " Did you accidentally export a JSX literal instead of a component?") : w = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", w, p);
565
- }
566
- var $ = jt(e, n, r, b, g);
567
- if ($ == null)
568
- return $;
569
- if (m) {
570
- var I = n.children;
571
- if (I !== void 0)
572
- if (l)
573
- if (ce(I)) {
574
- for (var W = 0; W < I.length; W++)
575
- Le(I[W], e);
576
- Object.freeze && Object.freeze(I);
577
- } else
578
- E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
579
- else
580
- Le(I, e);
581
- }
582
- if (V.call(n, "key")) {
583
- var A = q(e), O = Object.keys(n).filter(function(Ct) {
584
- return Ct !== "key";
585
- }), fe = O.length > 0 ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}";
586
- if (!Me[A + fe]) {
587
- var It = O.length > 0 ? "{" + O.join(": ..., ") + ": ...}" : "{}";
588
- E(`A props object containing a "key" prop is being spread into JSX:
589
- let props = %s;
590
- <%s {...props} />
591
- React keys must be passed directly to JSX without using spread:
592
- let props = %s;
593
- <%s key={someKey} {...props} />`, fe, A, It, A), Me[A + fe] = !0;
594
- }
595
- }
596
- return e === i ? Et($) : $t($), $;
597
- }
598
- }
599
- function Rt(e, n, r) {
600
- return Ue(e, n, r, !0);
601
- }
602
- function kt(e, n, r) {
603
- return Ue(e, n, r, !1);
604
- }
605
- var Tt = kt, Ot = Rt;
606
- J.Fragment = i, J.jsx = Tt, J.jsxs = Ot;
607
- })()), J;
608
- }
609
- var Ve;
610
- function At() {
611
- return Ve || (Ve = 1, process.env.NODE_ENV === "production" ? ee.exports = qt() : ee.exports = Ft()), ee.exports;
612
- }
613
- var t = At();
614
- const Bt = "_section_1fboo_1", Dt = "_heading_1fboo_5", Wt = "_trustLine_1fboo_9", Lt = "_star_1fboo_13", Mt = "_ratingNum_1fboo_17", Ut = "_trustText_1fboo_21", Yt = "_cardList_1fboo_25", zt = "_card_1fboo_25", Vt = "_quote_1fboo_37", Ht = "_author_1fboo_41", Jt = "_avatar_1fboo_45", Gt = "_avatarPlaceholder_1fboo_49", Kt = "_authorInfo_1fboo_54", Xt = "_authorName_1fboo_58", Qt = "_stars_1fboo_62", Zt = "_readMoreWrap_1fboo_66", en = "_toggleBtn_1fboo_70", tn = "_readMore_1fboo_66", nn = "_arrow_1fboo_89", rn = "_dot_1fboo_93", j = {
615
- section: Bt,
616
- heading: Dt,
617
- trustLine: Wt,
618
- star: Lt,
619
- ratingNum: Mt,
620
- trustText: Ut,
621
- cardList: Yt,
622
- card: zt,
623
- quote: Vt,
624
- author: Ht,
625
- avatar: Jt,
626
- avatarPlaceholder: Gt,
627
- authorInfo: Kt,
628
- authorName: Xt,
629
- stars: Qt,
630
- readMoreWrap: Zt,
631
- toggleBtn: en,
632
- readMore: tn,
633
- arrow: nn,
634
- dot: rn
635
- }, an = 3, He = 15;
636
- function sn(a) {
637
- const s = /* @__PURE__ */ new Map();
638
- for (let c = 1; c <= He; c += 1) {
639
- const d = `feedbackTestimonial${c}`, h = a(d);
640
- if (!h || h === d) continue;
641
- const v = `feedbackAuthor${c}`, x = (() => {
642
- const R = a(v);
643
- return R && R !== v ? R : a("guest");
644
- })(), y = `feedbackAuthor${c}AvatarUrl`, N = (() => {
645
- const R = a(y);
646
- return R && R !== y ? R : void 0;
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");
36
+ })(), g = `feedbackAuthor${l}AvatarUrl`, b = (() => {
37
+ const w = n(g);
38
+ return w && w !== g ? w : void 0;
647
39
  })();
648
- s.set(c, {
40
+ t.set(l, {
649
41
  quote: h,
650
- authorName: x,
651
- authorAvatarUrl: N,
42
+ authorName: m,
43
+ authorAvatarUrl: b,
652
44
  rating: 5
653
45
  });
654
46
  }
655
- const o = [], i = [];
656
- for (let c = 1; c <= He; c += 1)
657
- c >= 9 ? i.push(c) : o.push(c);
658
- const u = [];
659
- let _ = 0, f = 0;
660
- for (; _ < o.length || f < i.length; ) {
661
- if (f < i.length) {
662
- const c = i[f++], d = s.get(c);
663
- d && u.push(d);
47
+ const a = [], s = [];
48
+ for (let l = 1; l <= Ae; l += 1)
49
+ l >= 9 ? s.push(l) : a.push(l);
50
+ const r = [];
51
+ let i = 0, d = 0;
52
+ for (; i < a.length || d < s.length; ) {
53
+ if (d < s.length) {
54
+ const l = s[d++], u = t.get(l);
55
+ u && r.push(u);
664
56
  }
665
- if (_ < o.length) {
666
- const c = o[_++], d = s.get(c);
667
- d && u.push(d);
57
+ if (i < a.length) {
58
+ const l = a[i++], u = t.get(l);
59
+ u && r.push(u);
668
60
  }
669
61
  }
670
- return u;
62
+ return r;
671
63
  }
672
- function ra({
673
- t: a,
674
- testimonials: s,
675
- initialVisible: o = an,
676
- readMoreHref: i,
677
- onReadMore: u,
678
- className: _ = "",
679
- headingClassName: f
64
+ function zs({
65
+ t: n,
66
+ testimonials: t,
67
+ initialVisible: a = fn,
68
+ readMoreHref: s,
69
+ onReadMore: r,
70
+ className: i = "",
71
+ headingClassName: d
680
72
  }) {
681
- const c = s ?? ve(() => sn(a), [a]), [d, h] = be(!1), v = c.length > o, x = v && !d ? c.slice(0, o) : c, y = a("feedbackTitle"), N = a("feedbackRating"), R = a("feedbackTrust"), Y = a("readMoreReviews"), ae = a("readLess");
682
- return /* @__PURE__ */ t.jsxs(
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(
683
75
  "section",
684
76
  {
685
- className: `${j.section} ${_}`,
77
+ className: `${v.section} ${i}`,
686
78
  "aria-labelledby": "reviews-heading",
687
79
  children: [
688
- /* @__PURE__ */ t.jsx(
80
+ /* @__PURE__ */ e(
689
81
  "h2",
690
82
  {
691
83
  id: "reviews-heading",
692
- className: [j.heading, f].filter(Boolean).join(" "),
693
- children: y
84
+ className: [v.heading, d].filter(Boolean).join(" "),
85
+ children: g
694
86
  }
695
87
  ),
696
- /* @__PURE__ */ t.jsxs("p", { className: j.trustLine, children: [
697
- /* @__PURE__ */ t.jsx("span", { className: j.star, "aria-hidden": !0, children: "★" }),
698
- /* @__PURE__ */ t.jsx("span", { className: j.ratingNum, children: N }),
699
- /* @__PURE__ */ t.jsx("span", { className: j.dot, "aria-hidden": !0 }),
700
- /* @__PURE__ */ t.jsx("span", { className: j.trustText, children: R })
88
+ /* @__PURE__ */ c("p", { className: v.trustLine, children: [
89
+ /* @__PURE__ */ e("span", { className: v.star, "aria-hidden": !0, children: "★" }),
90
+ /* @__PURE__ */ e("span", { className: v.ratingNum, children: b }),
91
+ /* @__PURE__ */ e("span", { className: v.dot, "aria-hidden": !0 }),
92
+ /* @__PURE__ */ e("span", { className: v.trustText, children: w })
701
93
  ] }),
702
- /* @__PURE__ */ t.jsx("ul", { className: j.cardList, children: x.map((T, E) => /* @__PURE__ */ t.jsxs("li", { className: j.card, children: [
703
- /* @__PURE__ */ t.jsx("p", { className: j.quote, children: T.quote }),
704
- /* @__PURE__ */ t.jsxs("div", { className: j.author, children: [
705
- T.authorAvatarUrl ? /* @__PURE__ */ t.jsx(
94
+ /* @__PURE__ */ e("ul", { className: v.cardList, children: m.map(($, R) => /* @__PURE__ */ c("li", { className: v.card, children: [
95
+ /* @__PURE__ */ e("p", { className: v.quote, children: $.quote }),
96
+ /* @__PURE__ */ c("div", { className: v.author, children: [
97
+ $.authorAvatarUrl ? /* @__PURE__ */ e(
706
98
  "img",
707
99
  {
708
- src: T.authorAvatarUrl,
100
+ src: $.authorAvatarUrl,
709
101
  alt: "",
710
- className: j.avatar,
102
+ className: v.avatar,
711
103
  width: 40,
712
104
  height: 40
713
105
  }
714
- ) : /* @__PURE__ */ t.jsx("div", { className: j.avatarPlaceholder, "aria-hidden": !0 }),
715
- /* @__PURE__ */ t.jsxs("div", { className: j.authorInfo, children: [
716
- /* @__PURE__ */ t.jsx("span", { className: j.authorName, children: T.authorName }),
717
- /* @__PURE__ */ t.jsx("span", { className: j.stars, "aria-hidden": !0, children: "★".repeat(T.rating ?? 5) })
106
+ ) : /* @__PURE__ */ e("div", { className: v.avatarPlaceholder, "aria-hidden": !0 }),
107
+ /* @__PURE__ */ c("div", { className: v.authorInfo, children: [
108
+ /* @__PURE__ */ e("span", { className: v.authorName, children: $.authorName }),
109
+ /* @__PURE__ */ e("span", { className: v.stars, "aria-hidden": !0, children: "★".repeat($.rating ?? 5) })
718
110
  ] })
719
111
  ] })
720
- ] }, E)) }),
721
- v && /* @__PURE__ */ t.jsx("div", { className: j.readMoreWrap, children: /* @__PURE__ */ t.jsxs(
112
+ ] }, R)) }),
113
+ f && /* @__PURE__ */ e("div", { className: v.readMoreWrap, children: /* @__PURE__ */ c(
722
114
  "button",
723
115
  {
724
116
  type: "button",
725
- className: j.toggleBtn,
726
- onClick: () => h((T) => !T),
727
- "aria-expanded": d,
117
+ className: v.toggleBtn,
118
+ onClick: () => h(($) => !$),
119
+ "aria-expanded": u,
728
120
  children: [
729
- d ? ae : Y,
730
- /* @__PURE__ */ t.jsx("span", { className: j.arrow, "aria-hidden": !0, children: "›" })
121
+ u ? k : O,
122
+ /* @__PURE__ */ e("span", { className: v.arrow, "aria-hidden": !0, children: "›" })
731
123
  ]
732
124
  }
733
125
  ) }),
734
- (i || u) && !v && /* @__PURE__ */ t.jsx("div", { className: j.readMoreWrap, children: i ? /* @__PURE__ */ t.jsxs(
126
+ (s || r) && !f && /* @__PURE__ */ e("div", { className: v.readMoreWrap, children: s ? /* @__PURE__ */ c(
735
127
  "a",
736
128
  {
737
- href: i,
738
- className: j.readMore,
129
+ href: s,
130
+ className: v.readMore,
739
131
  target: "_blank",
740
132
  rel: "noopener noreferrer",
741
133
  children: [
742
- Y,
743
- /* @__PURE__ */ t.jsx("span", { className: j.arrow, "aria-hidden": !0, children: "›" })
134
+ O,
135
+ /* @__PURE__ */ e("span", { className: v.arrow, "aria-hidden": !0, children: "›" })
744
136
  ]
745
137
  }
746
- ) : /* @__PURE__ */ t.jsxs(
138
+ ) : /* @__PURE__ */ c(
747
139
  "button",
748
140
  {
749
141
  type: "button",
750
- className: j.readMore,
751
- onClick: () => u?.(),
142
+ className: v.readMore,
143
+ onClick: () => r?.(),
752
144
  children: [
753
- Y,
754
- /* @__PURE__ */ t.jsx("span", { className: j.arrow, "aria-hidden": !0, children: "›" })
145
+ O,
146
+ /* @__PURE__ */ e("span", { className: v.arrow, "aria-hidden": !0, children: "›" })
755
147
  ]
756
148
  }
757
149
  ) })
@@ -759,77 +151,77 @@ function ra({
759
151
  }
760
152
  );
761
153
  }
762
- const on = "_section_4dc65_1", cn = "_heading_4dc65_5", ln = "_accordion_4dc65_9", un = "_item_4dc65_13", dn = "_itemOpen_4dc65_17", fn = "_question_4dc65_22", _n = "_chevron_4dc65_30", pn = "_chevronOpen_4dc65_34", hn = "_answerWrap_4dc65_38", mn = "_answerOpen_4dc65_42", vn = "_answer_4dc65_38", C = {
763
- section: on,
764
- heading: cn,
765
- accordion: ln,
766
- item: un,
767
- itemOpen: dn,
768
- question: fn,
769
- chevron: _n,
770
- chevronOpen: pn,
771
- answerWrap: hn,
772
- answerOpen: mn,
773
- answer: vn
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
774
166
  };
775
- function aa({
776
- t: a,
777
- items: s,
778
- resolveAnswerKey: o,
779
- defaultOpenIndex: i = 0,
780
- onItemOpen: u,
781
- className: _ = "",
782
- headingClassName: f
167
+ function Ks({
168
+ t: n,
169
+ items: t,
170
+ resolveAnswerKey: a,
171
+ defaultOpenIndex: s = 0,
172
+ onItemOpen: r,
173
+ className: i = "",
174
+ headingClassName: d
783
175
  }) {
784
- const c = ve(
785
- () => s.map(({ qKey: x, aKey: y }) => ({
786
- question: a(x),
787
- answer: a(o ? o(y) : y)
176
+ const l = E(
177
+ () => t.map(({ qKey: m, aKey: g }) => ({
178
+ question: n(m),
179
+ answer: n(a ? a(g) : g)
788
180
  })),
789
- [a, s, o]
790
- ), [d, h] = be(i), v = a("faqTitle");
791
- return /* @__PURE__ */ t.jsxs(
181
+ [n, t, a]
182
+ ), [u, h] = T(s), f = n("faqTitle");
183
+ return /* @__PURE__ */ c(
792
184
  "section",
793
185
  {
794
- className: `${C.section} ${_}`,
186
+ className: `${B.section} ${i}`,
795
187
  "aria-labelledby": "faq-heading",
796
188
  children: [
797
- /* @__PURE__ */ t.jsx(
189
+ /* @__PURE__ */ e(
798
190
  "h2",
799
191
  {
800
192
  id: "faq-heading",
801
- className: [C.heading, f].filter(Boolean).join(" "),
802
- children: v
193
+ className: [B.heading, d].filter(Boolean).join(" "),
194
+ children: f
803
195
  }
804
196
  ),
805
- /* @__PURE__ */ t.jsx("div", { className: C.accordion, role: "list", children: c.map((x, y) => {
806
- const N = d === y;
807
- return /* @__PURE__ */ t.jsxs(
197
+ /* @__PURE__ */ e("div", { className: B.accordion, role: "list", children: l.map((m, g) => {
198
+ const b = u === g;
199
+ return /* @__PURE__ */ c(
808
200
  "div",
809
201
  {
810
- className: `${C.item} ${N ? C.itemOpen : ""}`,
202
+ className: `${B.item} ${b ? B.itemOpen : ""}`,
811
203
  role: "listitem",
812
204
  children: [
813
- /* @__PURE__ */ t.jsxs(
205
+ /* @__PURE__ */ c(
814
206
  "button",
815
207
  {
816
208
  type: "button",
817
- className: C.question,
209
+ className: B.question,
818
210
  onClick: () => {
819
- const R = !N;
820
- h(N ? -1 : y), R && u?.(x.question);
211
+ const w = !b;
212
+ h(b ? -1 : g), w && r?.(m.question);
821
213
  },
822
- "aria-expanded": N,
823
- "aria-controls": `faq-answer-${y}`,
824
- id: `faq-question-${y}`,
214
+ "aria-expanded": b,
215
+ "aria-controls": `faq-answer-${g}`,
216
+ id: `faq-question-${g}`,
825
217
  children: [
826
- /* @__PURE__ */ t.jsx("span", { children: x.question }),
827
- /* @__PURE__ */ t.jsx(
218
+ /* @__PURE__ */ e("span", { children: m.question }),
219
+ /* @__PURE__ */ e(
828
220
  "span",
829
221
  {
830
- className: `${C.chevron} ${N ? C.chevronOpen : ""}`,
222
+ className: `${B.chevron} ${b ? B.chevronOpen : ""}`,
831
223
  "aria-hidden": !0,
832
- children: /* @__PURE__ */ t.jsx(
224
+ children: /* @__PURE__ */ e(
833
225
  "svg",
834
226
  {
835
227
  width: "16",
@@ -838,7 +230,7 @@ function aa({
838
230
  fill: "none",
839
231
  "aria-hidden": !0,
840
232
  focusable: "false",
841
- children: /* @__PURE__ */ t.jsx(
233
+ children: /* @__PURE__ */ e(
842
234
  "path",
843
235
  {
844
236
  d: "M5.8 8.3a1 1 0 0 1 1.4 0L10 11.09l2.8-2.8a1 1 0 1 1 1.4 1.42l-3.5 3.5a1 1 0 0 1-1.4 0l-3.5-3.5A1 1 0 0 1 5.8 8.3z",
@@ -852,112 +244,112 @@ function aa({
852
244
  ]
853
245
  }
854
246
  ),
855
- /* @__PURE__ */ t.jsx(
247
+ /* @__PURE__ */ e(
856
248
  "div",
857
249
  {
858
- id: `faq-answer-${y}`,
250
+ id: `faq-answer-${g}`,
859
251
  role: "region",
860
- "aria-labelledby": `faq-question-${y}`,
861
- className: `${C.answerWrap} ${N ? C.answerOpen : ""}`,
862
- hidden: !N,
863
- children: /* @__PURE__ */ t.jsx("p", { className: C.answer, children: x.answer })
252
+ "aria-labelledby": `faq-question-${g}`,
253
+ className: `${B.answerWrap} ${b ? B.answerOpen : ""}`,
254
+ hidden: !b,
255
+ children: /* @__PURE__ */ e("p", { className: B.answer, children: m.answer })
864
256
  }
865
257
  )
866
258
  ]
867
259
  },
868
- y
260
+ g
869
261
  );
870
262
  }) })
871
263
  ]
872
264
  }
873
265
  );
874
266
  }
875
- const bn = "_header_dbx4y_1", gn = "_brand_dbx4y_7", xn = "_logo_dbx4y_11", yn = "_logoImg_dbx4y_15", jn = "_logoPlaceholder_dbx4y_21", wn = "_brandText_dbx4y_29", Nn = "_brandName_dbx4y_33", $n = "_rating_dbx4y_38", En = "_langSlot_dbx4y_49", P = {
876
- header: bn,
877
- brand: gn,
878
- logo: xn,
879
- logoImg: yn,
880
- logoPlaceholder: jn,
881
- brandText: wn,
882
- brandName: Nn,
883
- rating: $n,
884
- langSlot: En
885
- }, Je = 120, Ge = 40;
886
- function sa({
887
- t: a,
888
- logoUrl: s,
889
- imageComponent: o,
890
- languageSelector: i,
891
- showLanguageSelector: u = !0,
892
- className: _ = ""
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,
281
+ imageComponent: a,
282
+ languageSelector: s,
283
+ showLanguageSelector: r = !0,
284
+ className: i = ""
893
285
  }) {
894
- const f = u && i != null, c = a("sriMandir"), d = a("ratingText");
895
- return /* @__PURE__ */ t.jsxs("header", { className: `${P.header} ${_}`, children: [
896
- /* @__PURE__ */ t.jsxs("div", { className: P.brand, children: [
897
- /* @__PURE__ */ t.jsx("div", { className: P.logo, children: s ? o ? /* @__PURE__ */ t.jsx(
898
- o,
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(
290
+ a,
899
291
  {
900
- src: s,
901
- alt: c,
902
- className: P.logoImg,
903
- width: Je,
904
- height: Ge
292
+ src: t,
293
+ alt: l,
294
+ className: A.logoImg,
295
+ width: Ee,
296
+ height: Oe
905
297
  }
906
- ) : /* @__PURE__ */ t.jsx(
298
+ ) : /* @__PURE__ */ e(
907
299
  "img",
908
300
  {
909
- src: s,
910
- alt: c,
911
- className: P.logoImg,
912
- width: Je,
913
- height: Ge,
301
+ src: t,
302
+ alt: l,
303
+ className: A.logoImg,
304
+ width: Ee,
305
+ height: Oe,
914
306
  decoding: "async"
915
307
  }
916
- ) : /* @__PURE__ */ t.jsx("div", { className: P.logoPlaceholder, "aria-hidden": !0 }) }),
917
- /* @__PURE__ */ t.jsxs("div", { className: P.brandText, children: [
918
- /* @__PURE__ */ t.jsx("span", { className: P.brandName, children: c }),
919
- d != null && d !== "" && /* @__PURE__ */ t.jsx("span", { className: P.rating, children: d })
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 })
920
312
  ] })
921
313
  ] }),
922
- f && /* @__PURE__ */ t.jsx("div", { className: P.langSlot, children: i })
314
+ d && /* @__PURE__ */ e("div", { className: A.langSlot, children: s })
923
315
  ] });
924
316
  }
925
- const Rn = "_wrap_1vbpd_1", kn = "_card_1vbpd_5", Tn = "_cardInner_1vbpd_10", _e = {
926
- wrap: Rn,
927
- card: kn,
928
- cardInner: Tn
317
+ const qn = "_wrap_1vbpd_1", Wn = "_card_1vbpd_5", jn = "_cardInner_1vbpd_10", ve = {
318
+ wrap: qn,
319
+ card: Wn,
320
+ cardInner: jn
929
321
  };
930
- function oa({
931
- children: a,
932
- className: s = "",
933
- "aria-label": o
322
+ function Gs({
323
+ children: n,
324
+ className: t = "",
325
+ "aria-label": a
934
326
  }) {
935
- return /* @__PURE__ */ t.jsx(
327
+ return /* @__PURE__ */ e(
936
328
  "section",
937
329
  {
938
- className: `${_e.wrap} ${s}`,
939
- "aria-label": o,
940
- children: /* @__PURE__ */ t.jsx("div", { className: _e.card, children: /* @__PURE__ */ t.jsx("div", { className: _e.cardInner, children: a }) })
330
+ className: `${ve.wrap} ${t}`,
331
+ "aria-label": a,
332
+ children: /* @__PURE__ */ e("div", { className: ve.card, children: /* @__PURE__ */ e("div", { className: ve.cardInner, children: n }) })
941
333
  }
942
334
  );
943
335
  }
944
- const On = "_header_a05ni_1", In = "_left_a05ni_7", Cn = "_backBtn_a05ni_11", Sn = "_titleWrap_a05ni_21", Pn = "_title_a05ni_21", qn = "_subtitle_a05ni_31", Fn = "_backIcon_a05ni_37", B = {
945
- header: On,
946
- left: In,
947
- backBtn: Cn,
948
- titleWrap: Sn,
949
- title: Pn,
950
- subtitle: qn,
951
- backIcon: Fn
952
- }, An = () => /* @__PURE__ */ t.jsx(
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(
953
345
  "svg",
954
346
  {
955
- className: B.backIcon,
347
+ className: U.backIcon,
956
348
  viewBox: "0 0 24 24",
957
349
  fill: "none",
958
350
  xmlns: "http://www.w3.org/2000/svg",
959
351
  "aria-hidden": !0,
960
- children: /* @__PURE__ */ t.jsx(
352
+ children: /* @__PURE__ */ e(
961
353
  "path",
962
354
  {
963
355
  d: "M15 18l-6-6 6-6",
@@ -969,167 +361,167 @@ const On = "_header_a05ni_1", In = "_left_a05ni_7", Cn = "_backBtn_a05ni_11", Sn
969
361
  )
970
362
  }
971
363
  );
972
- function ia({
973
- title: a,
974
- subtitle: s,
975
- onBack: o,
976
- backAriaLabel: i = "Back",
977
- className: u = ""
364
+ function Ys({
365
+ title: n,
366
+ subtitle: t,
367
+ onBack: a,
368
+ backAriaLabel: s = "Back",
369
+ className: r = ""
978
370
  }) {
979
- return /* @__PURE__ */ t.jsx("header", { className: `${B.header} ${u}`, children: /* @__PURE__ */ t.jsxs("div", { className: B.left, children: [
980
- o != null && /* @__PURE__ */ t.jsx(
371
+ return /* @__PURE__ */ e("header", { className: `${U.header} ${r}`, children: /* @__PURE__ */ c("div", { className: U.left, children: [
372
+ a != null && /* @__PURE__ */ e(
981
373
  "button",
982
374
  {
983
375
  type: "button",
984
- className: B.backBtn,
985
- onClick: o,
986
- "aria-label": i,
987
- children: /* @__PURE__ */ t.jsx(An, {})
376
+ className: U.backBtn,
377
+ onClick: a,
378
+ "aria-label": s,
379
+ children: /* @__PURE__ */ e(Zn, {})
988
380
  }
989
381
  ),
990
- /* @__PURE__ */ t.jsxs("div", { className: B.titleWrap, children: [
991
- /* @__PURE__ */ t.jsx("h1", { className: B.title, children: a }),
992
- s != null && s !== "" && /* @__PURE__ */ t.jsx("p", { className: B.subtitle, children: s })
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 })
993
385
  ] })
994
386
  ] }) });
995
387
  }
996
- const Bn = "_banner_1jco0_1", Dn = "_icon_1jco0_12", Wn = "_text_1jco0_16", pe = {
997
- banner: Bn,
998
- icon: Dn,
999
- text: Wn
1000
- }, Ln = "https://srm-cdn.a4b.io/yoda/1770707793537.svg";
1001
- function ca({
1002
- text: a,
1003
- iconUrl: s = Ln,
1004
- className: o = ""
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,
396
+ className: a = ""
1005
397
  }) {
1006
- return /* @__PURE__ */ t.jsx("div", { className: `${pe.banner} ${o}`, role: "status", children: /* @__PURE__ */ t.jsxs("span", { className: pe.text, children: [
398
+ return /* @__PURE__ */ e("div", { className: `${we.banner} ${a}`, role: "status", children: /* @__PURE__ */ c("span", { className: we.text, children: [
1007
399
  " ",
1008
- /* @__PURE__ */ t.jsx(
400
+ /* @__PURE__ */ e(
1009
401
  "img",
1010
402
  {
1011
- src: s,
403
+ src: t,
1012
404
  alt: "",
1013
- className: pe.icon,
405
+ className: we.icon,
1014
406
  width: 18,
1015
407
  height: 18,
1016
408
  "aria-hidden": !0
1017
409
  }
1018
410
  ),
1019
411
  " ",
1020
- a
412
+ n
1021
413
  ] }) });
1022
414
  }
1023
- const Mn = "_field_eqt7q_1", Un = "_labelRow_eqt7q_5", Yn = "_label_eqt7q_5", zn = "_req_eqt7q_14", Vn = "_help_eqt7q_18", Hn = "_infoBtn_eqt7q_22", Jn = "_infoImg_eqt7q_30", Gn = "_infoWrap_eqt7q_34", Kn = "_tooltip_eqt7q_38", Xn = "_tooltipArrow_eqt7q_45", Qn = "_inputWrap_eqt7q_50", S = {
1024
- field: Mn,
1025
- labelRow: Un,
1026
- label: Yn,
1027
- req: zn,
1028
- help: Vn,
1029
- infoBtn: Hn,
1030
- infoImg: Jn,
1031
- infoWrap: Gn,
1032
- tooltip: Kn,
1033
- tooltipArrow: Xn,
1034
- inputWrap: Qn
1035
- }, Zn = "https://srm-cdn.a4b.io/yoda/1770372066357.svg";
1036
- function la({
1037
- label: a,
1038
- id: s,
1039
- required: o = !1,
1040
- help: i,
1041
- infoTooltip: u,
1042
- infoAriaLabel: _ = "Info",
1043
- infoIconUrl: f = Zn,
1044
- children: c,
1045
- className: d = ""
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,
431
+ required: a = !1,
432
+ help: s,
433
+ infoTooltip: r,
434
+ infoAriaLabel: i = "Info",
435
+ infoIconUrl: d = mt,
436
+ children: l,
437
+ className: u = ""
1046
438
  }) {
1047
- const [h, v] = be(!1);
1048
- return St(() => {
1049
- if (!u) return;
1050
- const x = (N) => {
1051
- N.target?.closest?.("[data-info-tooltip]") == null && v(!1);
1052
- }, y = (N) => {
1053
- N.key === "Escape" && v(!1);
439
+ const [h, f] = T(!1);
440
+ return se(() => {
441
+ if (!r) return;
442
+ const m = (b) => {
443
+ b.target?.closest?.("[data-info-tooltip]") == null && f(!1);
444
+ }, g = (b) => {
445
+ b.key === "Escape" && f(!1);
1054
446
  };
1055
- return document.addEventListener("mousedown", x), document.addEventListener("keydown", y), () => {
1056
- document.removeEventListener("mousedown", x), document.removeEventListener("keydown", y);
447
+ return document.addEventListener("mousedown", m), document.addEventListener("keydown", g), () => {
448
+ document.removeEventListener("mousedown", m), document.removeEventListener("keydown", g);
1057
449
  };
1058
- }, [u]), /* @__PURE__ */ t.jsxs("div", { className: `${S.field} ${d}`, children: [
1059
- /* @__PURE__ */ t.jsxs("div", { className: S.labelRow, children: [
1060
- /* @__PURE__ */ t.jsxs("label", { className: S.label, htmlFor: s, children: [
1061
- a,
1062
- o && /* @__PURE__ */ t.jsx("span", { className: S.req, children: "*" })
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,
454
+ a && /* @__PURE__ */ e("span", { className: M.req, children: "*" })
1063
455
  ] }),
1064
- u != null && u !== "" && /* @__PURE__ */ t.jsxs("div", { className: S.infoWrap, "data-info-tooltip": !0, children: [
1065
- /* @__PURE__ */ t.jsx(
456
+ r != null && r !== "" && /* @__PURE__ */ c("div", { className: M.infoWrap, "data-info-tooltip": !0, children: [
457
+ /* @__PURE__ */ e(
1066
458
  "button",
1067
459
  {
1068
460
  type: "button",
1069
- className: S.infoBtn,
1070
- "aria-label": _,
461
+ className: M.infoBtn,
462
+ "aria-label": i,
1071
463
  "aria-expanded": h,
1072
- onClick: () => v((x) => !x),
1073
- children: /* @__PURE__ */ t.jsx(
464
+ onClick: () => f((m) => !m),
465
+ children: /* @__PURE__ */ e(
1074
466
  "img",
1075
467
  {
1076
- className: S.infoImg,
1077
- src: f,
468
+ className: M.infoImg,
469
+ src: d,
1078
470
  alt: "",
1079
471
  "aria-hidden": !0
1080
472
  }
1081
473
  )
1082
474
  }
1083
475
  ),
1084
- h && /* @__PURE__ */ t.jsxs("div", { className: S.tooltip, role: "tooltip", children: [
1085
- u,
1086
- /* @__PURE__ */ t.jsx("span", { className: S.tooltipArrow, "aria-hidden": !0 })
476
+ h && /* @__PURE__ */ c("div", { className: M.tooltip, role: "tooltip", children: [
477
+ r,
478
+ /* @__PURE__ */ e("span", { className: M.tooltipArrow, "aria-hidden": !0 })
1087
479
  ] })
1088
480
  ] })
1089
481
  ] }),
1090
- i != null && i !== "" && /* @__PURE__ */ t.jsx("div", { className: S.help, children: i }),
1091
- /* @__PURE__ */ t.jsx("div", { className: S.inputWrap, children: c })
482
+ s != null && s !== "" && /* @__PURE__ */ e("div", { className: M.help, children: s }),
483
+ /* @__PURE__ */ e("div", { className: M.inputWrap, children: l })
1092
484
  ] });
1093
485
  }
1094
- const er = "_wrap_1uy4o_1", tr = "_input_1uy4o_5", nr = "_iconBtn_1uy4o_21", rr = "_iconBtnInteractive_1uy4o_25", ar = "_iconImg_1uy4o_39", L = {
1095
- wrap: er,
1096
- input: tr,
1097
- iconBtn: nr,
1098
- iconBtnInteractive: rr,
1099
- iconImg: ar
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
1100
492
  };
1101
- function ua({
1102
- id: a,
1103
- iconUrl: s,
1104
- iconAlt: o = "",
1105
- iconInteractive: i = !1,
1106
- onIconClick: u,
1107
- className: _ = "",
1108
- ...f
493
+ function Xs({
494
+ id: n,
495
+ iconUrl: t,
496
+ iconAlt: a = "",
497
+ iconInteractive: s = !1,
498
+ onIconClick: r,
499
+ className: i = "",
500
+ ...d
1109
501
  }) {
1110
- return /* @__PURE__ */ t.jsxs("div", { className: `${L.wrap} ${_}`, children: [
1111
- /* @__PURE__ */ t.jsx(
502
+ return /* @__PURE__ */ c("div", { className: `${X.wrap} ${i}`, children: [
503
+ /* @__PURE__ */ e(
1112
504
  "input",
1113
505
  {
1114
- ...f,
1115
- id: a,
1116
- className: L.input,
1117
- type: f.type ?? "text"
506
+ ...d,
507
+ id: n,
508
+ className: X.input,
509
+ type: d.type ?? "text"
1118
510
  }
1119
511
  ),
1120
- s != null && /* @__PURE__ */ t.jsx(
512
+ t != null && /* @__PURE__ */ e(
1121
513
  "button",
1122
514
  {
1123
515
  type: "button",
1124
- className: i ? `${L.iconBtn} ${L.iconBtnInteractive}` : L.iconBtn,
1125
- "aria-label": o || void 0,
1126
- onClick: i ? u : void 0,
1127
- tabIndex: i ? 0 : -1,
1128
- children: /* @__PURE__ */ t.jsx(
516
+ className: s ? `${X.iconBtn} ${X.iconBtnInteractive}` : X.iconBtn,
517
+ "aria-label": a || void 0,
518
+ onClick: s ? r : void 0,
519
+ tabIndex: s ? 0 : -1,
520
+ children: /* @__PURE__ */ e(
1129
521
  "img",
1130
522
  {
1131
- className: L.iconImg,
1132
- src: s,
523
+ className: X.iconImg,
524
+ src: t,
1133
525
  alt: "",
1134
526
  "aria-hidden": !0,
1135
527
  width: 22,
@@ -1140,60 +532,60 @@ function ua({
1140
532
  )
1141
533
  ] });
1142
534
  }
1143
- const sr = "_wrap_t646o_1", or = "_input_t646o_5", ir = "_iconBtn_t646o_28", cr = "_iconImg_t646o_42", te = {
1144
- wrap: sr,
1145
- input: or,
1146
- iconBtn: ir,
1147
- iconImg: cr
1148
- }, lr = "https://srm-cdn.a4b.io/yoda/1770372045894.svg";
1149
- function da({
1150
- id: a,
1151
- value: s,
1152
- onChange: o,
1153
- onIconClick: i,
1154
- className: u = "",
1155
- ..._
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,
544
+ onChange: a,
545
+ onIconClick: s,
546
+ className: r = "",
547
+ ...i
1156
548
  }) {
1157
- const f = Pt(null), c = ve(() => {
1158
- const h = /* @__PURE__ */ new Date(), v = (x) => String(x).padStart(2, "0");
1159
- return `${h.getFullYear()}-${v(h.getMonth() + 1)}-${v(h.getDate())}`;
1160
- }, []), d = () => {
1161
- if (i) {
1162
- i();
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 = () => {
553
+ if (s) {
554
+ s();
1163
555
  return;
1164
556
  }
1165
- const h = f.current;
557
+ const h = d.current;
1166
558
  h && typeof h.showPicker == "function" ? h.showPicker() : h?.focus();
1167
559
  };
1168
- return /* @__PURE__ */ t.jsxs("div", { className: `${te.wrap} ${u}`, children: [
1169
- /* @__PURE__ */ t.jsx(
560
+ return /* @__PURE__ */ c("div", { className: `${de.wrap} ${r}`, children: [
561
+ /* @__PURE__ */ e(
1170
562
  "input",
1171
563
  {
1172
- ..._,
1173
- ref: f,
1174
- id: a,
564
+ ...i,
565
+ ref: d,
566
+ id: n,
1175
567
  type: "date",
1176
- className: te.input,
1177
- value: s,
1178
- max: c,
1179
- onChange: (h) => o(h.target.value)
568
+ className: de.input,
569
+ value: t,
570
+ max: l,
571
+ onChange: (h) => a(h.target.value)
1180
572
  }
1181
573
  ),
1182
- /* @__PURE__ */ t.jsx(
574
+ /* @__PURE__ */ e(
1183
575
  "button",
1184
576
  {
1185
577
  type: "button",
1186
- className: `${te.iconBtn}`,
578
+ className: `${de.iconBtn}`,
1187
579
  "aria-label": "Open date picker",
1188
580
  onMouseDown: (h) => h.preventDefault(),
1189
581
  onClick: (h) => {
1190
- h.preventDefault(), d();
582
+ h.preventDefault(), u();
1191
583
  },
1192
- children: /* @__PURE__ */ t.jsx(
584
+ children: /* @__PURE__ */ e(
1193
585
  "img",
1194
586
  {
1195
- className: te.iconImg,
1196
- src: lr,
587
+ className: de.iconImg,
588
+ src: yt,
1197
589
  alt: "",
1198
590
  "aria-hidden": !0,
1199
591
  width: 22,
@@ -1204,50 +596,50 @@ function da({
1204
596
  )
1205
597
  ] });
1206
598
  }
1207
- const ur = "_wrap_1jdg7_1", dr = "_input_1jdg7_5", fr = "_iconBtn_1jdg7_34", _r = "_iconImg_1jdg7_48", ne = {
1208
- wrap: ur,
1209
- input: dr,
1210
- iconBtn: fr,
1211
- iconImg: _r
1212
- }, pr = "https://srm-cdn.a4b.io/yoda/1770372014782.svg";
1213
- function fa({
1214
- id: a,
1215
- value: s,
1216
- onChange: o,
1217
- placeholder: i = "HH:MM AM",
1218
- disabled: u = !1,
1219
- onIconClick: _,
1220
- className: f = ""
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,
608
+ onChange: a,
609
+ placeholder: s = "HH:MM AM",
610
+ disabled: r = !1,
611
+ onIconClick: i,
612
+ className: d = ""
1221
613
  }) {
1222
- return /* @__PURE__ */ t.jsxs("div", { className: `${ne.wrap} ${f}`, children: [
1223
- /* @__PURE__ */ t.jsx(
614
+ return /* @__PURE__ */ c("div", { className: `${_e.wrap} ${d}`, children: [
615
+ /* @__PURE__ */ e(
1224
616
  "input",
1225
617
  {
1226
- id: a,
618
+ id: n,
1227
619
  type: "time",
1228
- className: ne.input,
1229
- value: s,
1230
- onChange: (c) => o(c.target.value),
1231
- placeholder: i,
1232
- disabled: u,
1233
- onClick: () => !u && _?.()
620
+ className: _e.input,
621
+ value: t,
622
+ onChange: (l) => a(l.target.value),
623
+ placeholder: s,
624
+ disabled: r,
625
+ onClick: () => !r && i?.()
1234
626
  }
1235
627
  ),
1236
- /* @__PURE__ */ t.jsx(
628
+ /* @__PURE__ */ e(
1237
629
  "button",
1238
630
  {
1239
631
  type: "button",
1240
- className: ne.iconBtn,
632
+ className: _e.iconBtn,
1241
633
  "aria-label": "Open time picker",
1242
- disabled: u,
1243
- onClick: (c) => {
1244
- c.preventDefault(), u || _?.();
634
+ disabled: r,
635
+ onClick: (l) => {
636
+ l.preventDefault(), r || i?.();
1245
637
  },
1246
- children: /* @__PURE__ */ t.jsx(
638
+ children: /* @__PURE__ */ e(
1247
639
  "img",
1248
640
  {
1249
- className: ne.iconImg,
1250
- src: pr,
641
+ className: _e.iconImg,
642
+ src: $t,
1251
643
  alt: "",
1252
644
  "aria-hidden": !0,
1253
645
  width: 22,
@@ -1258,25 +650,25 @@ function fa({
1258
650
  )
1259
651
  ] });
1260
652
  }
1261
- const hr = "_wrap_1bb6o_1", mr = "_input_1bb6o_5", vr = "_iconBtn_1bb6o_21", br = "_iconImg_1bb6o_25", re = {
1262
- wrap: hr,
1263
- input: mr,
1264
- iconBtn: vr,
1265
- iconImg: br
1266
- }, gr = "https://srm-cdn.a4b.io/yoda/1770372031092.svg";
1267
- function _a({
1268
- id: a,
1269
- iconUrl: s = gr,
1270
- className: o = "",
1271
- ...i
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,
662
+ className: a = "",
663
+ ...s
1272
664
  }) {
1273
- return /* @__PURE__ */ t.jsxs("div", { className: `${re.wrap} ${o}`, children: [
1274
- /* @__PURE__ */ t.jsx("input", { ...i, id: a, className: re.input, type: "text" }),
1275
- /* @__PURE__ */ t.jsx("div", { className: re.iconBtn, "aria-hidden": !0, children: /* @__PURE__ */ t.jsx(
665
+ return /* @__PURE__ */ c("div", { className: `${me.wrap} ${a}`, children: [
666
+ /* @__PURE__ */ e("input", { ...s, id: n, className: me.input, type: "text" }),
667
+ /* @__PURE__ */ e("div", { className: me.iconBtn, "aria-hidden": !0, children: /* @__PURE__ */ e(
1276
668
  "img",
1277
669
  {
1278
- className: re.iconImg,
1279
- src: s,
670
+ className: me.iconImg,
671
+ src: t,
1280
672
  alt: "",
1281
673
  width: 22,
1282
674
  height: 22
@@ -1284,231 +676,1221 @@ function _a({
1284
676
  ) })
1285
677
  ] });
1286
678
  }
1287
- const xr = "_segmented_3sa9v_1", yr = "_segmentedOption_3sa9v_6", jr = "_active_3sa9v_15", he = {
1288
- segmented: xr,
1289
- segmentedOption: yr,
1290
- active: jr
679
+ const Mt = "_segmented_3sa9v_1", Rt = "_segmentedOption_3sa9v_6", Pt = "_active_3sa9v_15", ye = {
680
+ segmented: Mt,
681
+ segmentedOption: Rt,
682
+ active: Pt
1291
683
  };
1292
- function pa({
1293
- id: a,
1294
- options: s,
1295
- value: o,
1296
- onChange: i,
1297
- className: u = ""
684
+ function nr({
685
+ id: n,
686
+ options: t,
687
+ value: a,
688
+ onChange: s,
689
+ className: r = ""
1298
690
  }) {
1299
- return /* @__PURE__ */ t.jsx(
691
+ return /* @__PURE__ */ e(
1300
692
  "div",
1301
693
  {
1302
- className: `${he.segmented} ${u}`,
694
+ className: `${ye.segmented} ${r}`,
1303
695
  role: "group",
1304
- "aria-labelledby": `${a}-label`,
1305
- children: s.map((_) => /* @__PURE__ */ t.jsx(
696
+ "aria-labelledby": `${n}-label`,
697
+ children: t.map((i) => /* @__PURE__ */ e(
1306
698
  "button",
1307
699
  {
1308
700
  type: "button",
1309
- id: _.value === o ? a : void 0,
1310
- className: `${he.segmentedOption} ${_.value === o ? he.active : ""}`,
1311
- onClick: () => i(_.value),
1312
- children: _.label
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
1313
705
  },
1314
- _.value
706
+ i.value
1315
707
  ))
1316
708
  }
1317
709
  );
1318
710
  }
1319
- const wr = "_pillsWrap_z1kui_1", Nr = "_pill_z1kui_1", $r = "_selected_z1kui_17", me = {
1320
- pillsWrap: wr,
1321
- pill: Nr,
1322
- selected: $r
711
+ const At = "_pillsWrap_z1kui_1", Et = "_pill_z1kui_1", Ot = "_selected_z1kui_17", ke = {
712
+ pillsWrap: At,
713
+ pill: Et,
714
+ selected: Ot
1323
715
  };
1324
- function ha({
1325
- id: a,
1326
- options: s,
1327
- selected: o,
1328
- onChange: i,
1329
- className: u = ""
716
+ function tr({
717
+ id: n,
718
+ options: t,
719
+ selected: a,
720
+ onChange: s,
721
+ className: r = ""
1330
722
  }) {
1331
- const _ = (f) => {
1332
- o.includes(f) ? i(o.filter((c) => c !== f)) : i([...o, f]);
723
+ const i = (d) => {
724
+ a.includes(d) ? s(a.filter((l) => l !== d)) : s([...a, d]);
1333
725
  };
1334
- return /* @__PURE__ */ t.jsx(
726
+ return /* @__PURE__ */ e(
1335
727
  "div",
1336
728
  {
1337
- className: `${me.pillsWrap} ${u}`,
729
+ className: `${ke.pillsWrap} ${r}`,
1338
730
  role: "group",
1339
- "aria-labelledby": `${a}-label`,
1340
- children: s.map((f) => /* @__PURE__ */ t.jsx(
731
+ "aria-labelledby": `${n}-label`,
732
+ children: t.map((d) => /* @__PURE__ */ e(
1341
733
  "button",
1342
734
  {
1343
735
  type: "button",
1344
- className: `${me.pill} ${o.includes(f.key) ? me.selected : ""}`,
1345
- onClick: () => _(f.key),
1346
- children: f.label
736
+ className: `${ke.pill} ${a.includes(d.key) ? ke.selected : ""}`,
737
+ onClick: () => i(d.key),
738
+ children: d.label
1347
739
  },
1348
- f.key
740
+ d.key
1349
741
  ))
1350
742
  }
1351
743
  );
1352
744
  }
1353
- const Er = "_wrapper_i6a5b_2", Rr = "_checkboxRow_i6a5b_6", kr = "_checkbox_i6a5b_6", Tr = "_checkboxText_i6a5b_31", Or = "_checkboxHelp_i6a5b_37", G = {
1354
- wrapper: Er,
1355
- checkboxRow: Rr,
1356
- checkbox: kr,
1357
- checkboxText: Tr,
1358
- checkboxHelp: Or
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
1359
751
  };
1360
- function ma({
1361
- id: a,
1362
- checked: s,
1363
- onChange: o,
1364
- primaryText: i,
1365
- helpText: u,
1366
- className: _ = ""
752
+ function ar({
753
+ id: n,
754
+ checked: t,
755
+ onChange: a,
756
+ primaryText: s,
757
+ helpText: r,
758
+ className: i = ""
1367
759
  }) {
1368
- return /* @__PURE__ */ t.jsxs("div", { className: `${G.wrapper} ${_}`, children: [
1369
- /* @__PURE__ */ t.jsxs("div", { className: G.checkboxRow, children: [
1370
- /* @__PURE__ */ t.jsx(
760
+ return /* @__PURE__ */ c("div", { className: `${te.wrapper} ${i}`, children: [
761
+ /* @__PURE__ */ c("div", { className: te.checkboxRow, children: [
762
+ /* @__PURE__ */ e(
1371
763
  "input",
1372
764
  {
1373
- id: a,
765
+ id: n,
1374
766
  type: "checkbox",
1375
- className: G.checkbox,
1376
- checked: s,
1377
- onChange: (f) => o(f.target.checked)
767
+ className: te.checkbox,
768
+ checked: t,
769
+ onChange: (d) => a(d.target.checked)
1378
770
  }
1379
771
  ),
1380
- /* @__PURE__ */ t.jsx("label", { htmlFor: a, className: G.checkboxText, children: i })
772
+ /* @__PURE__ */ e("label", { htmlFor: n, className: te.checkboxText, children: s })
1381
773
  ] }),
1382
- u != null && u !== "" && /* @__PURE__ */ t.jsx("p", { className: G.checkboxHelp, children: u })
774
+ r != null && r !== "" && /* @__PURE__ */ e("p", { className: te.checkboxHelp, children: r })
1383
775
  ] });
1384
776
  }
1385
- const Ir = "_footerNote_laev3_1", Cr = {
1386
- footerNote: Ir
777
+ const zt = "_footerNote_laev3_1", Kt = {
778
+ footerNote: zt
1387
779
  };
1388
- function va({
1389
- children: a,
1390
- className: s = ""
780
+ function or({
781
+ children: n,
782
+ className: t = ""
1391
783
  }) {
1392
- return /* @__PURE__ */ t.jsx("p", { className: `${Cr.footerNote} ${s}`, children: a });
784
+ return /* @__PURE__ */ e("p", { className: `${Kt.footerNote} ${t}`, children: n });
1393
785
  }
1394
- const Sr = "_footer_86zxt_1", Pr = "_inner_86zxt_8", qr = "_badges_86zxt_12", Fr = "_marqueeContent_86zxt_20", Ar = "_badge_86zxt_12", Br = "_badgeIcon_86zxt_35", Dr = "_ctaWrap_86zxt_39", Wr = "_ctaStruck_86zxt_43", Lr = "_ctaButton_86zxt_49", Mr = "_offerRow_86zxt_69", Ur = "_pill_86zxt_76", Yr = "_ctaStatic_86zxt_85", U = {
1395
- footer: Sr,
1396
- inner: Pr,
1397
- badges: qr,
1398
- marqueeContent: Fr,
1399
- badge: Ar,
1400
- badgeIcon: Br,
1401
- ctaWrap: Dr,
1402
- ctaStruck: Wr,
1403
- ctaButton: Lr,
1404
- offerRow: Mr,
1405
- pill: Ur,
1406
- ctaStatic: Yr
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
1407
799
  };
1408
- function ba({
1409
- marquee: a,
1410
- children: s,
1411
- className: o = ""
800
+ function sr({
801
+ marquee: n,
802
+ children: t,
803
+ className: a = ""
1412
804
  }) {
1413
- return /* @__PURE__ */ t.jsx("footer", { className: `${U.footer} ${o}`, role: "contentinfo", children: /* @__PURE__ */ t.jsxs("div", { className: U.inner, children: [
1414
- a != null && /* @__PURE__ */ t.jsx("div", { className: U.badges, "aria-hidden": !0, children: a }),
1415
- /* @__PURE__ */ t.jsx("div", { className: U.ctaWrap, children: s })
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 })
1416
808
  ] }) });
1417
809
  }
1418
- function ga({
1419
- children: a,
1420
- href: s,
1421
- disabled: o = !1,
1422
- onClick: i,
1423
- static: u = !1,
1424
- className: _ = "",
1425
- "aria-label": f
810
+ function rr({
811
+ children: n,
812
+ href: t,
813
+ disabled: a = !1,
814
+ onClick: s,
815
+ static: r = !1,
816
+ className: i = "",
817
+ "aria-label": d
1426
818
  }) {
1427
- const c = `${U.ctaButton} ${_}`.trim(), d = `${U.ctaStatic} ${_}`.trim(), h = f != null ? { "aria-label": f } : {};
1428
- return u ? /* @__PURE__ */ t.jsx("div", { className: d, role: "presentation", children: a }) : s != null ? /* @__PURE__ */ t.jsx(
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(
1429
821
  "a",
1430
822
  {
1431
- href: s,
1432
- className: c,
823
+ href: t,
824
+ className: l,
1433
825
  target: "_blank",
1434
826
  rel: "noopener noreferrer",
1435
- "aria-disabled": o,
1436
- onClick: (v) => o && v.preventDefault(),
827
+ "aria-disabled": a,
828
+ onClick: (f) => a && f.preventDefault(),
1437
829
  ...h,
1438
- children: a
830
+ children: n
1439
831
  }
1440
- ) : /* @__PURE__ */ t.jsx(
832
+ ) : /* @__PURE__ */ e(
1441
833
  "button",
1442
834
  {
1443
835
  type: "button",
1444
- className: c,
1445
- disabled: o,
1446
- onClick: i,
836
+ className: l,
837
+ disabled: a,
838
+ onClick: s,
1447
839
  ...h,
1448
- children: a
840
+ children: n
1449
841
  }
1450
842
  );
1451
843
  }
1452
- const zr = "_wrapper_wxjzs_1", Vr = "_track_wxjzs_7", Ke = {
1453
- wrapper: zr,
1454
- track: Vr
844
+ const oa = "_wrapper_wxjzs_1", sa = "_track_wxjzs_7", Fe = {
845
+ wrapper: oa,
846
+ track: sa
1455
847
  };
1456
- function Hr({ children: a, className: s = "" }) {
1457
- return /* @__PURE__ */ t.jsx("div", { className: `${Ke.wrapper} ${s}`, "aria-hidden": !0, children: /* @__PURE__ */ t.jsxs("div", { className: Ke.track, children: [
1458
- a,
1459
- a
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
1460
852
  ] }) });
1461
853
  }
1462
- const Jr = "_strip_2838b_1", Gr = {
1463
- strip: Jr
854
+ const ca = "_strip_2838b_1", ia = {
855
+ strip: ca
1464
856
  };
1465
- function xa({ children: a, className: s = "" }) {
1466
- return /* @__PURE__ */ t.jsx("div", { className: `${Gr.strip} ${s}`, role: "region", "aria-label": "Trust badges", children: /* @__PURE__ */ t.jsx(Hr, { children: a }) });
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 }) });
1467
859
  }
1468
- const Kr = "_section_8y3x9_1", Xr = "_heading_8y3x9_6", Qr = "_content_8y3x9_11", Zr = "_line_8y3x9_16", ea = "_brandName_8y3x9_20", M = {
1469
- section: Kr,
1470
- heading: Xr,
1471
- content: Qr,
1472
- line: Zr,
1473
- brandName: ea
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
1474
866
  };
1475
- function ya({
1476
- title: a,
1477
- brandName: s,
1478
- whatsAppLine: o,
1479
- emailLine: i,
1480
- className: u = ""
867
+ function ir({
868
+ title: n,
869
+ brandName: t,
870
+ whatsAppLine: a,
871
+ emailLine: s,
872
+ className: r = ""
1481
873
  }) {
1482
- return /* @__PURE__ */ t.jsxs("section", { className: `${M.section} ${u}`, "aria-labelledby": "contact-heading", children: [
1483
- /* @__PURE__ */ t.jsx("h2", { id: "contact-heading", className: M.heading, children: a }),
1484
- /* @__PURE__ */ t.jsxs("div", { className: M.content, children: [
1485
- /* @__PURE__ */ t.jsx("p", { className: M.brandName, children: s }),
1486
- /* @__PURE__ */ t.jsx("p", { className: M.line, children: o }),
1487
- /* @__PURE__ */ t.jsx("p", { className: M.line, children: i })
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 })
1488
880
  ] })
1489
881
  ] });
1490
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";
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`);
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 = [
897
+ "morning",
898
+ "afternoon",
899
+ "evening"
900
+ ], ba = [
901
+ { code: "en", labelKey: "formReportLanguageEnglish", label: "English" },
902
+ { code: "hi", labelKey: "formReportLanguageHindi", label: "Hindi" },
903
+ { code: "te", labelKey: "formReportLanguageTelugu", label: "Telugu" },
904
+ { code: "kn", labelKey: "formReportLanguageKannada", label: "Kannada" },
905
+ { code: "gu", labelKey: "formReportLanguageGujarati", label: "Gujarati" },
906
+ { code: "mr", labelKey: "formReportLanguageMarathi", label: "Marathi" },
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(
909
+ "path",
910
+ {
911
+ d: "M3.5 8.5l2.5 2.5 6-6",
912
+ stroke: "#22c55e",
913
+ strokeWidth: "1.8",
914
+ strokeLinecap: "round",
915
+ strokeLinejoin: "round"
916
+ }
917
+ ) }), Na = () => /* @__PURE__ */ e(
918
+ "svg",
919
+ {
920
+ width: "14",
921
+ height: "14",
922
+ viewBox: "0 0 24 24",
923
+ fill: "none",
924
+ stroke: "currentColor",
925
+ strokeWidth: "2.2",
926
+ strokeLinecap: "round",
927
+ strokeLinejoin: "round",
928
+ "aria-hidden": !0,
929
+ children: /* @__PURE__ */ e("path", { d: "M6 9l6 6 6-6" })
930
+ }
931
+ ), va = () => /* @__PURE__ */ e(
932
+ "img",
933
+ {
934
+ src: "https://srm-cdn.a4b.io/yoda/1785316603029.svg",
935
+ width: 16,
936
+ height: 16,
937
+ alt: "",
938
+ "aria-hidden": !0
939
+ }
940
+ ), wa = () => /* @__PURE__ */ e(
941
+ "img",
942
+ {
943
+ src: "https://srm-cdn.a4b.io/yoda/1785316621747.svg",
944
+ width: 16,
945
+ height: 16,
946
+ alt: "",
947
+ "aria-hidden": !0
948
+ }
949
+ ), ya = () => /* @__PURE__ */ e(
950
+ "img",
951
+ {
952
+ src: "https://srm-cdn.a4b.io/yoda/1785316635953.svg",
953
+ width: 16,
954
+ height: 16,
955
+ alt: "",
956
+ "aria-hidden": !0
957
+ }
958
+ ), ka = () => /* @__PURE__ */ c("svg", { width: "40", height: "40", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: [
959
+ /* @__PURE__ */ e("rect", { x: "3", y: "4.5", width: "18", height: "16", rx: "3", stroke: "#D1D5DB", strokeWidth: "1.6" }),
960
+ /* @__PURE__ */ e("path", { d: "M3 9.5h18", stroke: "#D1D5DB", strokeWidth: "1.6" }),
961
+ /* @__PURE__ */ e("path", { d: "M8 2.5v4M16 2.5v4", stroke: "#D1D5DB", strokeWidth: "1.6", strokeLinecap: "round" }),
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,
970
+ number: xa,
971
+ helper: Da
972
+ }, Ba = ({
973
+ title: n,
974
+ countryCode: t = "+91",
975
+ phoneNumber: a = "98765 43210",
976
+ helperText: s,
977
+ onEdit: r,
978
+ t: i,
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" })
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 })
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 = [
1004
+ {
1005
+ id: "self",
1006
+ name: "Aarav Sharma",
1007
+ birthDetails: "12 Mar 1994 • 06:45 AM",
1008
+ birthPlace: "Bengaluru, India",
1009
+ relation: "Self"
1010
+ },
1011
+ {
1012
+ id: "spouse",
1013
+ name: "Diya Sharma",
1014
+ birthDetails: "04 Sep 1996 • 11:20 PM",
1015
+ birthPlace: "Pune, India",
1016
+ relation: "Spouse"
1017
+ }
1018
+ ], Ua = ({
1019
+ title: n,
1020
+ profiles: t = Ka,
1021
+ selectedProfileId: a,
1022
+ onProfileSelect: s,
1023
+ onAddProfile: r,
1024
+ t: i,
1025
+ className: d = ""
1026
+ }) => {
1027
+ const [l, u] = T(t[0]?.id ?? ""), h = a ?? l, f = (m) => {
1028
+ u(m), s?.(m);
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(
1036
+ "button",
1037
+ {
1038
+ type: "button",
1039
+ role: "radio",
1040
+ "aria-checked": g,
1041
+ className: [C.profileCard, g ? C.profileCardSelected : ""].filter(Boolean).join(" "),
1042
+ onClick: () => f(m.id),
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 })
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 })
1051
+ ]
1052
+ },
1053
+ m.id
1054
+ );
1055
+ }),
1056
+ r && /* @__PURE__ */ c("button", { type: "button", className: C.addCard, onClick: r, children: [
1057
+ /* @__PURE__ */ e("span", { className: C.addIcon, "aria-hidden": !0, children: "+" }),
1058
+ i?.("planAddAstrologyProfile") ?? "Add profile"
1059
+ ] })
1060
+ ] })
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,
1071
+ languageDivider: no,
1072
+ sectionHeadingRow: to,
1073
+ sectionHeading: ao,
1074
+ timezoneLabel: oo,
1075
+ reportReadyBanner: so,
1076
+ reportReadyDuration: ro,
1077
+ dateTabs: co,
1078
+ dateTabIndicator: io,
1079
+ dateTab: lo,
1080
+ dateTabDivider: _o,
1081
+ dateTabSelected: mo,
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,
1092
+ timeSlotDisabled: ko,
1093
+ stateMessage: So,
1094
+ retryBtn: Io,
1095
+ emptyStateIcon: To,
1096
+ emptyStateTitle: $o,
1097
+ emptyStateSubtitle: Co,
1098
+ loadingWrap: Lo,
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 = {
1111
+ morning: "planPeriodMorning",
1112
+ afternoon: "planPeriodAfternoon",
1113
+ evening: "planPeriodEvening"
1114
+ }, z = (...n) => n.filter(Boolean).join(" "), lr = ({
1115
+ days: n,
1116
+ loading: t = !1,
1117
+ error: a = !1,
1118
+ onRetry: s,
1119
+ selectedDate: r,
1120
+ onDateSelect: i,
1121
+ selectedPeriod: d,
1122
+ onPeriodSelect: l,
1123
+ selectedSlotStart: u,
1124
+ onSlotSelect: h,
1125
+ hideLanguageSelector: f = !1,
1126
+ languageOptions: m = ba,
1127
+ selectedLanguage: g,
1128
+ onLanguageSelect: b,
1129
+ showPhoneNumberSection: w = !0,
1130
+ phoneNumberSection: O,
1131
+ showAstrologyProfilesSection: k = !0,
1132
+ astrologyProfilesSection: $,
1133
+ heading: R,
1134
+ timezoneLabel: Y,
1135
+ languageLabel: J,
1136
+ reportReadyNote: Z,
1137
+ isGlobal: ee = !0,
1138
+ t: y,
1139
+ className: ue = ""
1140
+ }) => {
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;
1146
+ 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(() => {
1151
+ if (!F) return [];
1152
+ 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;
1169
+ const o = (p) => {
1170
+ fe.current && !fe.current.contains(p.target) && be(!1);
1171
+ };
1172
+ 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
+ {}
1176
+ ), [Ne, Be] = T(null);
1177
+ se(() => {
1178
+ const o = () => {
1179
+ const p = $e.current, x = Ce.current[q];
1180
+ if (!p || !x) {
1181
+ Le(null);
1182
+ return;
1183
+ }
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
1190
+ });
1191
+ };
1192
+ return o(), window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
1193
+ }, [q, L, t, a]), se(() => {
1194
+ const o = () => {
1195
+ const p = xe.current, x = De.current[P];
1196
+ if (!p || !x) {
1197
+ Be(null);
1198
+ return;
1199
+ }
1200
+ const j = p.getBoundingClientRect(), D = x.getBoundingClientRect();
1201
+ Be({
1202
+ left: D.left - j.left,
1203
+ width: D.width
1204
+ });
1205
+ };
1206
+ 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);
1214
+ }, Je = (o) => {
1215
+ Ke(o), be(!1), b?.(o);
1216
+ };
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(
1225
+ "button",
1226
+ {
1227
+ type: "button",
1228
+ className: _.languageDropdownBtn,
1229
+ onClick: () => be((o) => !o),
1230
+ "aria-haspopup": "listbox",
1231
+ "aria-expanded": ie,
1232
+ children: [
1233
+ (ge?.labelKey && y?.(ge.labelKey)) ?? ge?.label,
1234
+ /* @__PURE__ */ e(Na, {})
1235
+ ]
1236
+ }
1237
+ ),
1238
+ ie && /* @__PURE__ */ e("ul", { className: _.languageMenu, role: "listbox", children: m.map((o) => {
1239
+ const p = o.code === Te;
1240
+ return /* @__PURE__ */ c(
1241
+ "li",
1242
+ {
1243
+ role: "option",
1244
+ "aria-selected": p,
1245
+ className: z(
1246
+ _.languageMenuItem,
1247
+ p && _.languageMenuItemSelected
1248
+ ),
1249
+ onClick: () => Je(o.code),
1250
+ children: [
1251
+ (o.labelKey && y?.(o.labelKey)) ?? o.label,
1252
+ p && /* @__PURE__ */ e(fa, {})
1253
+ ]
1254
+ },
1255
+ o.code
1256
+ );
1257
+ }) })
1258
+ ] })
1259
+ ] }),
1260
+ /* @__PURE__ */ e("hr", { className: _.languageDivider })
1261
+ ] }),
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 })
1265
+ ] }),
1266
+ Z === void 0 ? /* @__PURE__ */ c("p", { className: _.reportReadyBanner, children: [
1267
+ y?.("planReportReadyPrefix") ?? "Your Report will be ready in",
1268
+ " ",
1269
+ /* @__PURE__ */ e("span", { className: _.reportReadyDuration, children: y?.("planReportReadyDuration") ?? "24-48 hours" }),
1270
+ " ",
1271
+ 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)) })
1277
+ ] }),
1278
+ !t && a && /* @__PURE__ */ c("div", { className: _.stateMessage, children: [
1279
+ y?.("planSlotsLoadError") ?? "Couldn't load slots. Please try again.",
1280
+ s && /* @__PURE__ */ e("button", { type: "button", className: _.retryBtn, onClick: s, children: y?.("planRetry") ?? "Retry" })
1281
+ ] }),
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." })
1286
+ ] }),
1287
+ !t && !a && L.length > 0 && /* @__PURE__ */ c(Me, { children: [
1288
+ /* @__PURE__ */ c(
1289
+ "div",
1290
+ {
1291
+ className: _.dateTabs,
1292
+ ref: $e,
1293
+ role: "radiogroup",
1294
+ "aria-label": "Consultation date",
1295
+ children: [
1296
+ ne && /* @__PURE__ */ e(
1297
+ "span",
1298
+ {
1299
+ className: _.dateTabIndicator,
1300
+ style: {
1301
+ transform: `translate(${ne.left}px, ${ne.top}px)`,
1302
+ width: ne.width,
1303
+ height: ne.height
1304
+ },
1305
+ "aria-hidden": "true"
1306
+ }
1307
+ ),
1308
+ 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(
1312
+ "button",
1313
+ {
1314
+ type: "button",
1315
+ ref: (D) => {
1316
+ Ce.current[o.date] = D;
1317
+ },
1318
+ className: z(_.dateTab, p && _.dateTabSelected),
1319
+ role: "radio",
1320
+ "aria-checked": p,
1321
+ onClick: () => Ue(o.date),
1322
+ children: [
1323
+ /* @__PURE__ */ e("span", { className: _.dateTabLabel, children: y?.(x) ?? x }),
1324
+ /* @__PURE__ */ e("span", { className: _.dateTabNum, children: j })
1325
+ ]
1326
+ }
1327
+ ),
1328
+ /* @__PURE__ */ e("span", { className: _.dateTabDivider, "aria-hidden": !0 })
1329
+ ] }, o.date);
1330
+ })
1331
+ ]
1332
+ }
1333
+ ),
1334
+ /* @__PURE__ */ c(
1335
+ "div",
1336
+ {
1337
+ className: _.periodTabs,
1338
+ ref: xe,
1339
+ role: "tablist",
1340
+ "aria-label": "Time of day",
1341
+ children: [
1342
+ Ne && /* @__PURE__ */ e(
1343
+ "span",
1344
+ {
1345
+ className: _.periodTabIndicator,
1346
+ style: {
1347
+ transform: `translateX(${Ne.left}px)`,
1348
+ width: Ne.width
1349
+ },
1350
+ "aria-hidden": "true"
1351
+ }
1352
+ ),
1353
+ W.map((o) => {
1354
+ const p = Eo[o], x = o === "evening" && ee, j = x ? "planPeriodEveningNight" : Oo[o];
1355
+ return /* @__PURE__ */ c(
1356
+ "button",
1357
+ {
1358
+ ref: (D) => {
1359
+ De.current[o] = D;
1360
+ },
1361
+ type: "button",
1362
+ className: z(
1363
+ _.periodTab,
1364
+ o === P && _.periodTabSelected
1365
+ ),
1366
+ role: "tab",
1367
+ "aria-selected": o === P,
1368
+ onClick: () => Ge(o),
1369
+ children: [
1370
+ /* @__PURE__ */ e(p, {}),
1371
+ y?.(j) ?? (x ? "Evening/Night" : o.charAt(0).toUpperCase() + o.slice(1))
1372
+ ]
1373
+ },
1374
+ o
1375
+ );
1376
+ })
1377
+ ]
1378
+ }
1379
+ ),
1380
+ /* @__PURE__ */ e(
1381
+ "div",
1382
+ {
1383
+ className: _.timeGrid,
1384
+ role: "radiogroup",
1385
+ "aria-label": "Consultation time",
1386
+ children: ce.map((o, p) => /* @__PURE__ */ e(
1387
+ "button",
1388
+ {
1389
+ type: "button",
1390
+ className: z(
1391
+ _.timeSlot,
1392
+ Ie === o.start && _.timeSlotSelected,
1393
+ o.disabled && _.timeSlotDisabled
1394
+ ),
1395
+ role: "radio",
1396
+ "aria-checked": Ie === o.start,
1397
+ "aria-disabled": o.disabled || void 0,
1398
+ disabled: o.disabled,
1399
+ onClick: () => !o.disabled && Ye(o),
1400
+ children: ua(o.start)
1401
+ },
1402
+ `${o.start}-${p}`
1403
+ ))
1404
+ },
1405
+ `${q}-${P}`
1406
+ )
1407
+ ] })
1408
+ ] });
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);
1414
+ return {
1415
+ start: `${n}T${r(t)}:${r(a)}:00${qe}`,
1416
+ end: `${n}T${r(d)}:${r(i % 60)}:00${qe}`,
1417
+ period: s
1418
+ };
1419
+ }, Wo = {
1420
+ morning: [
1421
+ [9, 0],
1422
+ [9, 30],
1423
+ [10, 0],
1424
+ [10, 30],
1425
+ [11, 0],
1426
+ [11, 30]
1427
+ ],
1428
+ afternoon: [
1429
+ [12, 30],
1430
+ [13, 0],
1431
+ [14, 0],
1432
+ [15, 30],
1433
+ [16, 0]
1434
+ ],
1435
+ evening: [
1436
+ [18, 0],
1437
+ [18, 30],
1438
+ [19, 0],
1439
+ [20, 0]
1440
+ ]
1441
+ }, ae = (n, t) => {
1442
+ 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))
1446
+ );
1447
+ 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,
1456
+ has_availability: !1,
1457
+ slots: []
1458
+ })), Ho = () => /* @__PURE__ */ e(
1459
+ "svg",
1460
+ {
1461
+ width: "14",
1462
+ height: "14",
1463
+ viewBox: "0 0 24 24",
1464
+ fill: "none",
1465
+ stroke: "currentColor",
1466
+ strokeWidth: "2.2",
1467
+ strokeLinecap: "round",
1468
+ strokeLinejoin: "round",
1469
+ "aria-hidden": !0,
1470
+ children: /* @__PURE__ */ e("path", { d: "M6 9l6 6 6-6" })
1471
+ }
1472
+ ), zo = [
1473
+ { name: "United States", code: "+1", iso: "US" },
1474
+ { name: "United Kingdom", code: "+44", iso: "GB" },
1475
+ { name: "Australia", code: "+61", iso: "AU" },
1476
+ { name: "Canada", code: "+1", iso: "CA" },
1477
+ { name: "United Arab Emirates", code: "+971", iso: "AE" },
1478
+ { name: "Singapore", code: "+65", iso: "SG" },
1479
+ { name: "New Zealand", code: "+64", iso: "NZ" },
1480
+ { name: "Mauritius", code: "+230", iso: "MU" },
1481
+ { name: "Netherlands", code: "+31", iso: "NL" },
1482
+ { name: "Malaysia", code: "+60", iso: "MY" },
1483
+ { name: "Germany", code: "+49", iso: "DE" },
1484
+ { name: "South Africa", code: "+27", iso: "ZA" },
1485
+ { name: "Qatar", code: "+974", iso: "QA" },
1486
+ { name: "Ireland", code: "+353", iso: "IE" },
1487
+ { name: "Oman", code: "+968", iso: "OM" },
1488
+ { name: "Saudi Arabia", code: "+966", iso: "SA" },
1489
+ { name: "Hong Kong", code: "+852", iso: "HK" },
1490
+ { name: "France", code: "+33", iso: "FR" },
1491
+ { name: "Switzerland", code: "+41", iso: "CH" },
1492
+ { name: "Bahrain", code: "+973", iso: "BH" },
1493
+ { name: "Trinidad and Tobago", code: "+1-868", iso: "TT" },
1494
+ { name: "Kuwait", code: "+965", iso: "KW" },
1495
+ { name: "Belgium", code: "+32", iso: "BE" },
1496
+ { name: "Japan", code: "+81", iso: "JP" },
1497
+ { name: "Italy", code: "+39", iso: "IT" },
1498
+ { name: "Spain", code: "+34", iso: "ES" },
1499
+ { name: "Norway", code: "+47", iso: "NO" },
1500
+ { name: "Sweden", code: "+46", iso: "SE" },
1501
+ { name: "Portugal", code: "+351", iso: "PT" },
1502
+ { name: "Poland", code: "+48", iso: "PL" },
1503
+ { name: "Denmark", code: "+45", iso: "DK" },
1504
+ { name: "Nepal", code: "+977", iso: "NP" },
1505
+ { name: "Bangladesh", code: "+880", iso: "BD" },
1506
+ { name: "Kenya", code: "+254", iso: "KE" },
1507
+ { name: "Mexico", code: "+52", iso: "MX" },
1508
+ { name: "Czechia", code: "+420", iso: "CZ" },
1509
+ { name: "Indonesia", code: "+62", iso: "ID" },
1510
+ { name: "Taiwan", code: "+886", iso: "TW" },
1511
+ { name: "Fiji", code: "+679", iso: "FJ" },
1512
+ { name: "Guyana", code: "+592", iso: "GY" },
1513
+ { name: "Finland", code: "+358", iso: "FI" },
1514
+ { name: "Nigeria", code: "+234", iso: "NG" },
1515
+ { name: "Jamaica", code: "+1-876", iso: "JM" },
1516
+ { name: "Sri Lanka", code: "+94", iso: "LK" },
1517
+ { name: "Thailand", code: "+66", iso: "TH" },
1518
+ { name: "Hungary", code: "+36", iso: "HU" },
1519
+ { name: "Tanzania", code: "+255", iso: "TZ" },
1520
+ { name: "Sint Maarten", code: "+1-721", iso: "SX" },
1521
+ { name: "Philippines", code: "+63", iso: "PH" },
1522
+ { name: "Estonia", code: "+372", iso: "EE" },
1523
+ { name: "Ukraine", code: "+380", iso: "UA" },
1524
+ { name: "Austria", code: "+43", iso: "AT" },
1525
+ { name: "Réunion", code: "+262", iso: "RE" },
1526
+ { 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,
1534
+ countries: a,
1535
+ onCountryCodeChange: s,
1536
+ onPhoneNumberChange: r,
1537
+ onValidationChange: i,
1538
+ onDropdownFocus: d,
1539
+ onInputFocus: l
1540
+ }) => {
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);
1546
+ }
1547
+ },
1548
+ [t, s, i]
1549
+ ), 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);
1555
+ }
1556
+ },
1557
+ [n, r, i]
1558
+ ), w = le(() => {
1559
+ h((k) => (k || d?.(n), !k));
1560
+ }, [n, d]), O = le(() => {
1561
+ h(!1), l?.(n);
1562
+ }, [n, l]);
1563
+ return {
1564
+ isDropdownOpen: u,
1565
+ selectedCountry: f,
1566
+ maxLength: m,
1567
+ handleCountrySelect: g,
1568
+ handlePhoneChange: b,
1569
+ handleDropdownToggle: w,
1570
+ handlePhoneFocus: O,
1571
+ closeDropdown: () => h(!1)
1572
+ };
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,
1592
+ error: a,
1593
+ label: s,
1594
+ helperText: r,
1595
+ countries: i = zo,
1596
+ getFlagUrl: d,
1597
+ onCountryCodeChange: l,
1598
+ onPhoneNumberChange: u,
1599
+ onValidationChange: h,
1600
+ onDropdownFocus: f,
1601
+ onInputFocus: m,
1602
+ inputRef: g,
1603
+ t: b,
1604
+ className: w = ""
1605
+ }) => {
1606
+ const [O, k] = T(i[0]?.code ?? "+91"), [$, R] = T(""), Y = n ?? O, J = t ?? $, Z = G(null), {
1607
+ isDropdownOpen: ee,
1608
+ 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);
1621
+ },
1622
+ onPhoneNumberChange: (N) => {
1623
+ R(N), u?.(N);
1624
+ },
1625
+ onValidationChange: h,
1626
+ onDropdownFocus: f,
1627
+ onInputFocus: m
1628
+ });
1629
+ se(() => {
1630
+ const N = (K) => {
1631
+ Z.current && !Z.current.contains(K.target) && F();
1632
+ };
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) });
1638
+ };
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"),
1645
+ /* @__PURE__ */ e("span", { children: y?.code ?? "+91" }),
1646
+ /* @__PURE__ */ e(Ho, {})
1647
+ ] }),
1648
+ ee && /* @__PURE__ */ e("div", { className: S.dropdownMenu, role: "listbox", children: i.map((N) => /* @__PURE__ */ c(
1649
+ "button",
1650
+ {
1651
+ type: "button",
1652
+ role: "option",
1653
+ "aria-selected": N.code === y?.code,
1654
+ className: S.dropdownItem,
1655
+ onClick: () => L(N),
1656
+ 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 })
1660
+ ]
1661
+ },
1662
+ `${N.code}-${N.iso}`
1663
+ )) })
1664
+ ] }),
1665
+ /* @__PURE__ */ e(
1666
+ "input",
1667
+ {
1668
+ type: "tel",
1669
+ inputMode: "numeric",
1670
+ autoComplete: "off",
1671
+ value: J,
1672
+ maxLength: ue,
1673
+ ref: g,
1674
+ className: We(S.input, a && S.inputError),
1675
+ placeholder: b?.("planPhoneNumberPlaceholder") ?? "0000000000",
1676
+ onChange: re,
1677
+ onFocus: q
1678
+ }
1679
+ )
1680
+ ] }),
1681
+ r && /* @__PURE__ */ e("div", { className: S.helper, children: r }),
1682
+ a && /* @__PURE__ */ e("p", { className: S.error, children: a })
1683
+ ] });
1684
+ }, is = () => /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
1685
+ "path",
1686
+ {
1687
+ 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",
1688
+ fill: "#F59E0B",
1689
+ stroke: "#F59E0B",
1690
+ strokeWidth: "1.2",
1691
+ strokeLinecap: "round",
1692
+ strokeLinejoin: "round"
1693
+ }
1694
+ ) }), ls = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ e(
1695
+ "path",
1696
+ {
1697
+ fillRule: "evenodd",
1698
+ clipRule: "evenodd",
1699
+ 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
+ fill: "#F97316"
1701
+ }
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,
1721
+ rating: a,
1722
+ fallbackPhotoUrl: s = Is
1723
+ }) => /* @__PURE__ */ c("div", { className: I.photoWrap, children: [
1724
+ /* @__PURE__ */ e("div", { className: I.photoFrame, children: /* @__PURE__ */ e(
1725
+ "img",
1726
+ {
1727
+ src: n || s,
1728
+ alt: t,
1729
+ width: 64,
1730
+ height: 78,
1731
+ className: I.photoImg,
1732
+ onError: (r) => {
1733
+ r.target.src = s;
1734
+ }
1735
+ }
1736
+ ) }),
1737
+ /* @__PURE__ */ c("div", { className: I.ratingPill, children: [
1738
+ /* @__PURE__ */ e("span", { className: I.ratingValue, children: a }),
1739
+ /* @__PURE__ */ e(is, {})
1740
+ ] })
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`;
1745
+ }
1746
+ return `${n} consultations`;
1747
+ }, xs = ({
1748
+ astrologer: n,
1749
+ isSelected: t = !1,
1750
+ onClick: a,
1751
+ fallbackPhotoUrl: s,
1752
+ formatConsultationCount: r = Ls
1753
+ }) => /* @__PURE__ */ c(
1754
+ "button",
1755
+ {
1756
+ type: "button",
1757
+ onClick: () => a?.(n),
1758
+ className: Cs(I.card, t && I.cardSelected),
1759
+ children: [
1760
+ /* @__PURE__ */ e(
1761
+ Ts,
1762
+ {
1763
+ photoUrl: n.photo_url,
1764
+ name: n.name,
1765
+ rating: n.rating,
1766
+ fallbackPhotoUrl: s
1767
+ }
1768
+ ),
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) })
1774
+ ] })
1775
+ ] }),
1776
+ t && /* @__PURE__ */ e("div", { className: I.checkIcon, children: /* @__PURE__ */ e(ls, {}) }),
1777
+ n.is_recommended && /* @__PURE__ */ e($s, {})
1778
+ ]
1779
+ }
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,
1788
+ 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,
1801
+ selectedAstrologerId: a,
1802
+ onAstrologerSelect: s,
1803
+ title: r,
1804
+ fallbackPhotoUrl: i,
1805
+ formatConsultationCount: d,
1806
+ t: l,
1807
+ className: u = ""
1808
+ }) => {
1809
+ const [h, f] = T(""), m = a ?? h, g = (b) => {
1810
+ f(b.astrologer_id), s?.(b);
1811
+ };
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,
1816
+ {
1817
+ astrologer: b,
1818
+ isSelected: b.astrologer_id === m,
1819
+ onClick: g,
1820
+ fallbackPhotoUrl: i,
1821
+ formatConsultationCount: d
1822
+ },
1823
+ b.astrologer_id
1824
+ )) })
1825
+ ] });
1826
+ }, ur = [
1827
+ {
1828
+ astrologer_id: "astro-1",
1829
+ name: "Pandit Ramesh Sharma",
1830
+ photo_url: "",
1831
+ languages: ["Hindi", "English"],
1832
+ rating: 4.8,
1833
+ consultation_count: 12500,
1834
+ is_recommended: !0
1835
+ },
1836
+ {
1837
+ astrologer_id: "astro-2",
1838
+ name: "Dr. Anjali Mehta",
1839
+ photo_url: "",
1840
+ languages: ["English", "Gujarati"],
1841
+ rating: 4.6,
1842
+ consultation_count: 870
1843
+ },
1844
+ {
1845
+ astrologer_id: "astro-3",
1846
+ name: "Acharya Vivek Joshi",
1847
+ photo_url: "",
1848
+ languages: ["Hindi", "Marathi", "English"],
1849
+ rating: 4.9,
1850
+ consultation_count: 3400
1851
+ }
1852
+ ];
1491
1853
  export {
1492
- Hr as CircularMarquee,
1493
- ya as ContactUsSection,
1494
- aa as FAQAccordion,
1495
- ga as FooterCTAButton,
1496
- ba as FooterShell,
1497
- ma as FormCheckboxWithHelp,
1498
- oa as FormContainer,
1499
- da as FormDateInput,
1500
- la as FormField,
1501
- va as FormFooterNote,
1502
- _a as FormLocationInput,
1503
- ia as FormSectionHeader,
1504
- pa as FormSegmentedControl,
1505
- ha as FormTagPills,
1506
- ua as FormTextInput,
1507
- fa as FormTimeInput,
1508
- xa as MarqueeStrip,
1509
- sa as PageHeader,
1510
- ca as PrivacyBanner,
1511
- ra as UserReviewsSection,
1512
- U as footerShellStyles
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
1513
1895
  };
1514
1896
  //# sourceMappingURL=index.js.map