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