doct-ui-auth-kit 1.0.12 → 1.0.13

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.
@@ -0,0 +1,1683 @@
1
+ "use client";
2
+ import { jsx as m, jsxs as k, Fragment as $e } from "react/jsx-runtime";
3
+ import { DoctButton as B, DoctTypography as R, DoctPhoneInput as Ze, DoctLabeledInput as Qe, DoctCircularProgress as ve, DoctOtpInput as et } from "docthub-core-components";
4
+ import { MdArrowBack as tt, MdChevronRight as nt } from "react-icons/md";
5
+ import q, { createContext as lt, useContext as it, useState as K, useEffect as te, useRef as le } from "react";
6
+ import { useFormContext as ne, Controller as de, useForm as ye, FormProvider as Ce } from "react-hook-form";
7
+ import { z as j } from "zod";
8
+ var ae = { exports: {} }, ge = {};
9
+ var Oe;
10
+ function ot() {
11
+ if (Oe) return ge;
12
+ Oe = 1;
13
+ var n = q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
14
+ return ge.c = function(e) {
15
+ return n.H.useMemoCache(e);
16
+ }, ge;
17
+ }
18
+ var pe = {};
19
+ var Te;
20
+ function rt() {
21
+ return Te || (Te = 1, process.env.NODE_ENV !== "production" && (function() {
22
+ var n = q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
23
+ pe.c = function(e) {
24
+ var t = n.H;
25
+ return t === null && console.error(
26
+ `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
27
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
28
+ 2. You might be breaking the Rules of Hooks
29
+ 3. You might have more than one copy of React in the same app
30
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
31
+ ), t.useMemoCache(e);
32
+ };
33
+ })()), pe;
34
+ }
35
+ var Ie;
36
+ function st() {
37
+ return Ie || (Ie = 1, process.env.NODE_ENV === "production" ? ae.exports = ot() : ae.exports = rt()), ae.exports;
38
+ }
39
+ var _ = st();
40
+ const Me = "/main-logo.svg", at = "/docthub.svg", Ue = ["/slider/slide-1.png", "/slider/slide-2.png", "/slider/slide-3.png", "/slider/slide-4.png", "/slider/slide-5.png"], ct = 5e3, je = "[&_main]:!justify-start [&_main]:!pt-5 md:[&_main]:!pt-[104px]";
41
+ function Se(n) {
42
+ const e = _.c(4), {
43
+ onClick: t,
44
+ ariaLabel: l
45
+ } = n, i = l === void 0 ? "Go back" : l;
46
+ let o;
47
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ m(tt, { className: "h-5 w-5 text-neutral-black" }), e[0] = o) : o = e[0];
48
+ let r;
49
+ return e[1] !== i || e[2] !== t ? (r = /* @__PURE__ */ m(B, { icon: o, iconOnly: !0, onClick: t, size: "medium", variant: "outline", "aria-label": i, className: "mb-6 h-10 w-10" }), e[1] = i, e[2] = t, e[3] = r) : r = e[3], r;
50
+ }
51
+ function ut() {
52
+ const n = typeof window < "u" ? window.location.hostname : "";
53
+ return n.endsWith(".com") || n.includes(".com:") ? "https://www.dochub.com" : "https://dev.dochub.in/";
54
+ }
55
+ function Be() {
56
+ const n = _.c(4);
57
+ let e;
58
+ n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ut(), n[0] = e) : e = n[0];
59
+ const t = e;
60
+ let l, i;
61
+ n[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ m("br", {}), i = /* @__PURE__ */ m("a", { href: `${t}/terms-conditions`, className: "font-semibold text-neutral-black underline", children: "Terms of Use" }), n[1] = l, n[2] = i) : (l = n[1], i = n[2]);
62
+ let o;
63
+ return n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ k(R, { variant: "body3", align: "center", className: "opacity-60 text-neutral-black", children: [
64
+ "by continuing you agree to Docthub's",
65
+ l,
66
+ i,
67
+ " ",
68
+ "and",
69
+ " ",
70
+ /* @__PURE__ */ m("a", { href: `${t}/privacy-policy`, className: "font-semibold text-neutral-black underline", children: "Privacy Policy." })
71
+ ] }), n[3] = o) : o = n[3], o;
72
+ }
73
+ const dt = "https://docthub.com/";
74
+ function ft(n) {
75
+ const e = _.c(8);
76
+ let t;
77
+ e[0] !== n ? (t = n === void 0 ? {} : n, e[0] = n, e[1] = t) : t = e[1];
78
+ const {
79
+ onClick: l,
80
+ href: i
81
+ } = t, o = i === void 0 ? dt : i;
82
+ let r;
83
+ e[2] !== o || e[3] !== l ? (r = () => {
84
+ if (l) {
85
+ l();
86
+ return;
87
+ }
88
+ typeof window < "u" && window.location.assign(o);
89
+ }, e[2] = o, e[3] = l, e[4] = r) : r = e[4];
90
+ const s = r;
91
+ let a;
92
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ m("div", { className: "flex items-center justify-center p-2 bg-primary rounded-[10px]", children: /* @__PURE__ */ m(nt, { color: "white", className: "h-5 w-5" }) }), e[5] = a) : a = e[5];
93
+ let c;
94
+ return e[6] !== s ? (c = /* @__PURE__ */ m(B, { icon: a, iconPosition: "right", size: "large", variant: "outline", "aria-label": "Go to Enterprise Login", className: "hidden sm:flex items-center gap-4 border border-neutral-12 px-[22px] py-[14px]", onClick: s, children: "Enterprise Login" }), e[6] = s, e[7] = c) : c = e[7], c;
95
+ }
96
+ function ze(n) {
97
+ var e, t, l = "";
98
+ if (typeof n == "string" || typeof n == "number") l += n;
99
+ else if (typeof n == "object") if (Array.isArray(n)) {
100
+ var i = n.length;
101
+ for (e = 0; e < i; e++) n[e] && (t = ze(n[e])) && (l && (l += " "), l += t);
102
+ } else for (t in n) n[t] && (l && (l += " "), l += t);
103
+ return l;
104
+ }
105
+ function F() {
106
+ for (var n, e, t = 0, l = "", i = arguments.length; t < i; t++) (n = arguments[t]) && (e = ze(n)) && (l && (l += " "), l += e);
107
+ return l;
108
+ }
109
+ const Ge = lt(null);
110
+ function xe() {
111
+ const n = it(Ge);
112
+ if (!n)
113
+ throw new Error("AuthLayout compound components must be used within AuthLayout.Root");
114
+ return n;
115
+ }
116
+ function mt(n, e) {
117
+ return e === "md" ? "max-w-md" : e === "lg" ? "max-w-lg" : n === "desktop" ? "max-w-[320px]" : "max-w-[360px]";
118
+ }
119
+ function Ne(n = "center") {
120
+ switch (n) {
121
+ case "left":
122
+ return {
123
+ flex: "justify-start",
124
+ text: "text-left"
125
+ };
126
+ case "right":
127
+ return {
128
+ flex: "justify-end",
129
+ text: "text-right"
130
+ };
131
+ default:
132
+ return {
133
+ flex: "justify-center",
134
+ text: "text-center"
135
+ };
136
+ }
137
+ }
138
+ const we = "flex w-full mb-4 md:mb-4";
139
+ function ht(n) {
140
+ const e = _.c(15), {
141
+ children: t,
142
+ variant: l,
143
+ maxWidth: i,
144
+ className: o
145
+ } = n, r = l === void 0 ? "mobile" : l, s = i === void 0 ? "sm" : i;
146
+ let a;
147
+ e[0] !== s || e[1] !== r ? (a = mt(r, s), e[0] = s, e[1] = r, e[2] = a) : a = e[2];
148
+ const c = a;
149
+ let u;
150
+ e[3] !== s || e[4] !== c || e[5] !== r ? (u = {
151
+ variant: r,
152
+ maxWidth: s,
153
+ maxWidthClass: c
154
+ }, e[3] = s, e[4] = c, e[5] = r, e[6] = u) : u = e[6];
155
+ const h = u;
156
+ let d;
157
+ e[7] !== o ? (d = F("min-h-svh w-full bg-neutral-white flex flex-col", o), e[7] = o, e[8] = d) : d = e[8];
158
+ let f;
159
+ e[9] !== t || e[10] !== d ? (f = /* @__PURE__ */ m("div", { className: d, children: t }), e[9] = t, e[10] = d, e[11] = f) : f = e[11];
160
+ let p;
161
+ return e[12] !== h || e[13] !== f ? (p = /* @__PURE__ */ m(Ge.Provider, { value: h, children: f }), e[12] = h, e[13] = f, e[14] = p) : p = e[14], p;
162
+ }
163
+ function gt(n) {
164
+ const e = _.c(12), {
165
+ children: t,
166
+ className: l
167
+ } = n, {
168
+ variant: i
169
+ } = xe();
170
+ if (i === "desktop") {
171
+ let s;
172
+ e[0] !== l ? (s = F("flex justify-end px-5 pt-5", l), e[0] = l, e[1] = s) : s = e[1];
173
+ let a;
174
+ e[2] !== t ? (a = /* @__PURE__ */ m("div", { className: "w-auto", children: t }), e[2] = t, e[3] = a) : a = e[3];
175
+ let c;
176
+ return e[4] !== s || e[5] !== a ? (c = /* @__PURE__ */ m("div", { className: s, children: a }), e[4] = s, e[5] = a, e[6] = c) : c = e[6], c;
177
+ }
178
+ let o;
179
+ e[7] !== l ? (o = F("mb-4 w-full md:mb-6", l), e[7] = l, e[8] = o) : o = e[8];
180
+ let r;
181
+ return e[9] !== t || e[10] !== o ? (r = /* @__PURE__ */ m("div", { className: o, children: t }), e[9] = t, e[10] = o, e[11] = r) : r = e[11], r;
182
+ }
183
+ function pt(n) {
184
+ const e = _.c(6), {
185
+ children: t,
186
+ align: l,
187
+ className: i
188
+ } = n, o = l === void 0 ? "center" : l;
189
+ let r;
190
+ if (e[0] !== o || e[1] !== i) {
191
+ const {
192
+ flex: a
193
+ } = Ne(o);
194
+ r = F(we, a, i), e[0] = o, e[1] = i, e[2] = r;
195
+ } else
196
+ r = e[2];
197
+ let s;
198
+ return e[3] !== t || e[4] !== r ? (s = /* @__PURE__ */ m("div", { className: r, children: t }), e[3] = t, e[4] = r, e[5] = s) : s = e[5], s;
199
+ }
200
+ function bt(n) {
201
+ const e = _.c(6), {
202
+ children: t,
203
+ align: l,
204
+ className: i
205
+ } = n, o = l === void 0 ? "center" : l;
206
+ let r;
207
+ if (e[0] !== o || e[1] !== i) {
208
+ const {
209
+ flex: a,
210
+ text: c
211
+ } = Ne(o);
212
+ r = F(we, a, c, i), e[0] = o, e[1] = i, e[2] = r;
213
+ } else
214
+ r = e[2];
215
+ let s;
216
+ return e[3] !== t || e[4] !== r ? (s = /* @__PURE__ */ m("div", { className: r, children: t }), e[3] = t, e[4] = r, e[5] = s) : s = e[5], s;
217
+ }
218
+ function vt(n) {
219
+ const e = _.c(6), {
220
+ children: t,
221
+ align: l,
222
+ className: i
223
+ } = n, o = l === void 0 ? "center" : l;
224
+ let r;
225
+ if (e[0] !== o || e[1] !== i) {
226
+ const {
227
+ flex: a,
228
+ text: c
229
+ } = Ne(o);
230
+ r = F(we, a, c, i), e[0] = o, e[1] = i, e[2] = r;
231
+ } else
232
+ r = e[2];
233
+ let s;
234
+ return e[3] !== t || e[4] !== r ? (s = /* @__PURE__ */ m("div", { className: r, children: t }), e[3] = t, e[4] = r, e[5] = s) : s = e[5], s;
235
+ }
236
+ function yt(n) {
237
+ const e = _.c(5), {
238
+ children: t,
239
+ className: l
240
+ } = n;
241
+ let i;
242
+ e[0] !== l ? (i = F("w-full flex flex-col space-y-4 mb-4 md:mb-6", l), e[0] = l, e[1] = i) : i = e[1];
243
+ let o;
244
+ return e[2] !== t || e[3] !== i ? (o = /* @__PURE__ */ m("div", { className: i, children: t }), e[2] = t, e[3] = i, e[4] = o) : o = e[4], o;
245
+ }
246
+ function Ct(n) {
247
+ const e = _.c(10), {
248
+ children: t,
249
+ sm: l,
250
+ className: i
251
+ } = n, {
252
+ maxWidthClass: o
253
+ } = xe();
254
+ let r;
255
+ e[0] !== i ? (r = F("flex-1 flex flex-col items-center justify-center", "px-5 py-8 md:py-12", "w-full", i), e[0] = i, e[1] = r) : r = e[1];
256
+ const s = l ? "max-w-[320px]" : o;
257
+ let a;
258
+ e[2] !== s ? (a = F("w-full flex flex-col items-center", s), e[2] = s, e[3] = a) : a = e[3];
259
+ let c;
260
+ e[4] !== t || e[5] !== a ? (c = /* @__PURE__ */ m("div", { className: a, children: t }), e[4] = t, e[5] = a, e[6] = c) : c = e[6];
261
+ let u;
262
+ return e[7] !== r || e[8] !== c ? (u = /* @__PURE__ */ m("main", { className: r, children: c }), e[7] = r, e[8] = c, e[9] = u) : u = e[9], u;
263
+ }
264
+ function St(n) {
265
+ const e = _.c(10), {
266
+ children: t,
267
+ className: l
268
+ } = n, {
269
+ maxWidthClass: i
270
+ } = xe();
271
+ let o;
272
+ e[0] !== l ? (o = F("px-5 py-6 md:py-8 w-full flex justify-center", l), e[0] = l, e[1] = o) : o = e[1];
273
+ let r;
274
+ e[2] !== i ? (r = F("w-full text-center", i), e[2] = i, e[3] = r) : r = e[3];
275
+ let s;
276
+ e[4] !== t || e[5] !== r ? (s = /* @__PURE__ */ m("div", { className: r, children: t }), e[4] = t, e[5] = r, e[6] = s) : s = e[6];
277
+ let a;
278
+ return e[7] !== o || e[8] !== s ? (a = /* @__PURE__ */ m("footer", { className: o, children: s }), e[7] = o, e[8] = s, e[9] = a) : a = e[9], a;
279
+ }
280
+ const H = {
281
+ Root: ht,
282
+ Header: gt,
283
+ Main: Ct,
284
+ Logo: pt,
285
+ Title: bt,
286
+ Description: vt,
287
+ Body: yt,
288
+ Footer: St
289
+ };
290
+ function xt(n) {
291
+ const e = _.c(38), {
292
+ images: t,
293
+ autoPlayInterval: l,
294
+ className: i,
295
+ hideIndicators: o,
296
+ onSlideChange: r,
297
+ activeIndex: s,
298
+ onNavigate: a
299
+ } = n, c = l === void 0 ? 5e3 : l, [u, h] = K(0), d = s !== void 0, f = d ? s : u;
300
+ let p, b;
301
+ e[0] !== c || e[1] !== f || e[2] !== t.length || e[3] !== d || e[4] !== r ? (p = () => {
302
+ if (c > 0 && t.length > 1) {
303
+ const P = setInterval(() => {
304
+ const T = (f + 1) % t.length;
305
+ d || h(T), r?.(T);
306
+ }, c);
307
+ return () => clearInterval(P);
308
+ }
309
+ }, b = [c, t.length, f, d, r], e[0] = c, e[1] = f, e[2] = t.length, e[3] = d, e[4] = r, e[5] = p, e[6] = b) : (p = e[5], b = e[6]), te(p, b);
310
+ let g, v;
311
+ e[7] !== t.length || e[8] !== d || e[9] !== r ? (g = () => {
312
+ !d && t.length > 0 && r?.(0);
313
+ }, v = [t.length, d, r], e[7] = t.length, e[8] = d, e[9] = r, e[10] = g, e[11] = v) : (g = e[10], v = e[11]), te(g, v);
314
+ let y;
315
+ e[12] !== d || e[13] !== a || e[14] !== r ? (y = (P) => {
316
+ d ? (a?.(P), r?.(P)) : (h(P), r?.(P));
317
+ }, e[12] = d, e[13] = a, e[14] = r, e[15] = y) : y = e[15];
318
+ const C = y;
319
+ if (t.length === 0)
320
+ return null;
321
+ const N = t.length;
322
+ let S;
323
+ e[16] !== i ? (S = F("relative w-full h-full min-h-0", i), e[16] = i, e[17] = S) : S = e[17];
324
+ const x = `${N * 100}%`, A = `translateX(-${f * 100 / N}%)`;
325
+ let w;
326
+ e[18] !== x || e[19] !== A ? (w = {
327
+ width: x,
328
+ transform: A
329
+ }, e[18] = x, e[19] = A, e[20] = w) : w = e[20];
330
+ let E;
331
+ if (e[21] !== t || e[22] !== N) {
332
+ let P;
333
+ e[24] !== N ? (P = (T, L) => /* @__PURE__ */ m("div", { className: "relative flex-shrink-0 h-full", style: {
334
+ width: `${100 / N}%`
335
+ }, children: /* @__PURE__ */ m("img", { src: T, alt: `Slide ${L + 1}`, className: "h-full w-full object-cover object-center" }) }, `${T}-${L}`), e[24] = N, e[25] = P) : P = e[25], E = t.map(P), e[21] = t, e[22] = N, e[23] = E;
336
+ } else
337
+ E = e[23];
338
+ let O;
339
+ e[26] !== w || e[27] !== E ? (O = /* @__PURE__ */ m("div", { className: "relative w-full h-full overflow-hidden", children: /* @__PURE__ */ m("div", { className: "flex h-full transition-transform duration-500 ease-in-out", style: w, children: E }) }), e[26] = w, e[27] = E, e[28] = O) : O = e[28];
340
+ let D;
341
+ e[29] !== f || e[30] !== C || e[31] !== o || e[32] !== t ? (D = t.length > 1 && !o && /* @__PURE__ */ m("div", { className: "absolute -top-10 left-1/2 flex -translate-x-1/2 gap-2 z-20", children: t.map((P, T) => /* @__PURE__ */ m("button", { type: "button", onClick: () => C(T), className: F("h-1 rounded-[3px] transition-all duration-300", T === f ? "w-8 bg-neutral-white" : "w-2 bg-neutral-white/40"), "aria-label": `Go to slide ${T + 1}` }, `indicator-${P}-${T}`)) }), e[29] = f, e[30] = C, e[31] = o, e[32] = t, e[33] = D) : D = e[33];
342
+ let $;
343
+ return e[34] !== O || e[35] !== D || e[36] !== S ? ($ = /* @__PURE__ */ k("div", { className: S, children: [
344
+ O,
345
+ D
346
+ ] }), e[34] = O, e[35] = D, e[36] = S, e[37] = $) : $ = e[37], $;
347
+ }
348
+ function Nt(n) {
349
+ const e = _.c(20), {
350
+ sliderImages: t,
351
+ sliderAutoPlayInterval: l,
352
+ activeSlideIndex: i,
353
+ onSlideChange: o,
354
+ ctaText: r,
355
+ sliderTitles: s,
356
+ className: a
357
+ } = n, c = s?.[i];
358
+ let u = r ?? null;
359
+ if (c != null) {
360
+ let g;
361
+ e[0] !== c ? (g = typeof c == "string" ? /* @__PURE__ */ m(R, { variant: "h6", weight: "medium", align: "center", className: "whitespace-pre-line text-primary-170", children: c }) : c, e[0] = c, e[1] = g) : g = e[1], u = g;
362
+ }
363
+ let h;
364
+ e[2] !== a ? (h = F("relative w-full h-[100dvh] transition-colors duration-500", a), e[2] = a, e[3] = h) : h = e[3];
365
+ let d;
366
+ e[4] !== i || e[5] !== o || e[6] !== t ? (d = t.length > 1 && /* @__PURE__ */ m("div", { className: "absolute top-2.5 left-1/2 z-20 flex w-full max-w-[400px] -translate-x-1/2 gap-1.5 px-4", children: t.map((g, v) => /* @__PURE__ */ m("button", { type: "button", onClick: () => o(v), "aria-label": `Go to slide ${v + 1}`, "aria-current": v === i ? "true" : void 0, className: F("h-1 flex-1 rounded-[3px] cursor-pointer transition-all duration-300", v === i ? "bg-neutral-white" : "bg-neutral-white/40 hover:bg-neutral-white/60") }, `indicator-${g}-${v}`)) }), e[4] = i, e[5] = o, e[6] = t, e[7] = d) : d = e[7];
367
+ let f;
368
+ e[8] !== u ? (f = u != null && /* @__PURE__ */ m("div", { className: F("absolute left-1/2 top-[152.5px] z-10 flex w-[328px] -translate-x-1/2 items-center justify-center text-center transition-opacity duration-300"), children: u }), e[8] = u, e[9] = f) : f = e[9];
369
+ let p;
370
+ e[10] !== i || e[11] !== o || e[12] !== l || e[13] !== t ? (p = /* @__PURE__ */ m("div", { className: "absolute inset-0", children: t.length > 0 ? /* @__PURE__ */ m(xt, { images: t, autoPlayInterval: l, className: "h-full w-full", hideIndicators: !0, activeIndex: i, onSlideChange: o, onNavigate: o }) : /* @__PURE__ */ m("div", { className: "flex h-full w-full items-center justify-center bg-neutral-white/50 p-8", children: /* @__PURE__ */ m(R, { variant: "h6", weight: "medium", align: "center", className: "opacity-40 text-primary-170", children: "No slides configured" }) }) }), e[10] = i, e[11] = o, e[12] = l, e[13] = t, e[14] = p) : p = e[14];
371
+ let b;
372
+ return e[15] !== h || e[16] !== d || e[17] !== f || e[18] !== p ? (b = /* @__PURE__ */ k("div", { className: h, children: [
373
+ d,
374
+ f,
375
+ p
376
+ ] }), e[15] = h, e[16] = d, e[17] = f, e[18] = p, e[19] = b) : b = e[19], b;
377
+ }
378
+ function wt(n) {
379
+ const e = _.c(22), {
380
+ sliderImages: t,
381
+ sliderAutoPlayInterval: l,
382
+ ctaText: i,
383
+ sliderTitles: o,
384
+ className: r,
385
+ marketingClassName: s,
386
+ contentClassName: a,
387
+ children: c
388
+ } = n, u = l === void 0 ? 5e3 : l, [h, d] = K(0), f = t ?? Ue;
389
+ let p;
390
+ e[0] !== r ? (p = F("min-h-svh w-full flex flex-1 flex-col bg-neutral-white transition-colors duration-500", r), e[0] = r, e[1] = p) : p = e[1];
391
+ let b;
392
+ e[2] !== s ? (b = s && {
393
+ className: s
394
+ }, e[2] = s, e[3] = b) : b = e[3];
395
+ let g;
396
+ e[4] !== h || e[5] !== i || e[6] !== f || e[7] !== u || e[8] !== o || e[9] !== b ? (g = /* @__PURE__ */ m("div", { className: "hidden lg:block lg:w-[432px] lg:h-[100dvh] lg:flex-shrink-0 lg:flex-grow-0", children: /* @__PURE__ */ m(Nt, { sliderImages: f, sliderAutoPlayInterval: u, activeSlideIndex: h, onSlideChange: d, ctaText: i, sliderTitles: o, ...b }) }), e[4] = h, e[5] = i, e[6] = f, e[7] = u, e[8] = o, e[9] = b, e[10] = g) : g = e[10];
397
+ let v;
398
+ e[11] !== a ? (v = F("flex-1 min-w-0 flex flex-col overflow-x-hidden", a), e[11] = a, e[12] = v) : v = e[12];
399
+ let y;
400
+ e[13] !== c || e[14] !== v ? (y = /* @__PURE__ */ m("div", { className: v, children: c }), e[13] = c, e[14] = v, e[15] = y) : y = e[15];
401
+ let C;
402
+ e[16] !== g || e[17] !== y ? (C = /* @__PURE__ */ k("div", { className: "flex w-full h-full min-h-svh flex-col lg:flex-row", children: [
403
+ g,
404
+ y
405
+ ] }), e[16] = g, e[17] = y, e[18] = C) : C = e[18];
406
+ let N;
407
+ return e[19] !== p || e[20] !== C ? (N = /* @__PURE__ */ m("div", { className: p, children: C }), e[19] = p, e[20] = C, e[21] = N) : N = e[21], N;
408
+ }
409
+ function ie(n) {
410
+ const e = _.c(58), {
411
+ children: t,
412
+ layoutType: l,
413
+ logo: i,
414
+ title: o,
415
+ description: r,
416
+ footer: s,
417
+ header: a,
418
+ onBack: c,
419
+ backButton: u,
420
+ sliderImages: h,
421
+ sliderAutoPlayInterval: d,
422
+ sliderTitles: f,
423
+ variant: p,
424
+ maxWidth: b,
425
+ contentWidth: g,
426
+ align: v,
427
+ className: y
428
+ } = n, C = l === void 0 ? "withSlider" : l, N = h === void 0 ? Ue : h, S = d === void 0 ? ct : d, x = b === void 0 ? "sm" : b, A = g === void 0 ? "default" : g, w = v === void 0 ? "center" : v, E = A === "sm", O = p ?? (C === "withSlider" ? "desktop" : "mobile");
429
+ let D;
430
+ e[0] !== u || e[1] !== i || e[2] !== c ? (D = () => u ?? (c != null ? /* @__PURE__ */ m(Se, { onClick: c }) : i ? typeof i == "string" ? /* @__PURE__ */ m("div", { className: "h-[30px] w-[140px]", children: /* @__PURE__ */ m("img", { src: i, alt: "Docthub", className: "block h-full w-full object-cover" }) }) : i : null), e[0] = u, e[1] = i, e[2] = c, e[3] = D) : D = e[3];
431
+ const $ = D;
432
+ let P;
433
+ e[4] !== w || e[5] !== o ? (P = () => o ? typeof o == "string" ? /* @__PURE__ */ m(R, { variant: "h5", weight: "extraBold", align: w, className: "text-neutral-black", children: o }) : o : null, e[4] = w, e[5] = o, e[6] = P) : P = e[6];
434
+ const T = P;
435
+ let L;
436
+ e[7] !== w || e[8] !== r ? (L = () => r ? typeof r == "string" ? /* @__PURE__ */ m(R, { variant: "body1", align: w, className: "text-neutral-black", children: r }) : r : null, e[7] = w, e[8] = r, e[9] = L) : L = e[9];
437
+ const M = L;
438
+ let I;
439
+ e[10] !== a ? (I = a && /* @__PURE__ */ m(H.Header, { children: a }), e[10] = a, e[11] = I) : I = e[11];
440
+ let U;
441
+ e[12] !== $ ? (U = $(), e[12] = $, e[13] = U) : U = e[13];
442
+ let z;
443
+ e[14] !== w || e[15] !== U ? (z = /* @__PURE__ */ m(H.Logo, { align: w, children: U }), e[14] = w, e[15] = U, e[16] = z) : z = e[16];
444
+ let G;
445
+ e[17] !== w || e[18] !== T || e[19] !== o ? (G = o && /* @__PURE__ */ m(H.Title, { align: w, children: T() }), e[17] = w, e[18] = T, e[19] = o, e[20] = G) : G = e[20];
446
+ let V;
447
+ e[21] !== w || e[22] !== r || e[23] !== M ? (V = r && /* @__PURE__ */ m(H.Description, { align: w, children: M() }), e[21] = w, e[22] = r, e[23] = M, e[24] = V) : V = e[24];
448
+ let W;
449
+ e[25] !== t ? (W = /* @__PURE__ */ m(H.Body, { children: t }), e[25] = t, e[26] = W) : W = e[26];
450
+ let Y;
451
+ e[27] !== z || e[28] !== G || e[29] !== V || e[30] !== W || e[31] !== E ? (Y = /* @__PURE__ */ k(H.Main, { sm: E, children: [
452
+ z,
453
+ G,
454
+ V,
455
+ W
456
+ ] }), e[27] = z, e[28] = G, e[29] = V, e[30] = W, e[31] = E, e[32] = Y) : Y = e[32];
457
+ let J;
458
+ e[33] !== s ? (J = s && /* @__PURE__ */ m(H.Footer, { children: s }), e[33] = s, e[34] = J) : J = e[34];
459
+ let oe;
460
+ e[35] !== I || e[36] !== Y || e[37] !== J ? (oe = /* @__PURE__ */ k($e, { children: [
461
+ I,
462
+ Y,
463
+ J
464
+ ] }), e[35] = I, e[36] = Y, e[37] = J, e[38] = oe) : oe = e[38];
465
+ const X = oe;
466
+ if (C === "withSlider") {
467
+ let Q;
468
+ e[39] !== y ? (Q = y && {
469
+ className: y
470
+ }, e[39] = y, e[40] = Q) : Q = e[40];
471
+ let ee;
472
+ e[41] !== X || e[42] !== x || e[43] !== O ? (ee = /* @__PURE__ */ m(H.Root, { variant: O, maxWidth: x, className: "bg-transparent", children: X }), e[41] = X, e[42] = x, e[43] = O, e[44] = ee) : ee = e[44];
473
+ let se;
474
+ return e[45] !== S || e[46] !== N || e[47] !== f || e[48] !== Q || e[49] !== ee ? (se = /* @__PURE__ */ m(wt, { sliderImages: N, sliderAutoPlayInterval: S, sliderTitles: f, ...Q, children: ee }), e[45] = S, e[46] = N, e[47] = f, e[48] = Q, e[49] = ee, e[50] = se) : se = e[50], se;
475
+ }
476
+ let Z;
477
+ e[51] !== y ? (Z = y && {
478
+ className: y
479
+ }, e[51] = y, e[52] = Z) : Z = e[52];
480
+ let re;
481
+ return e[53] !== X || e[54] !== x || e[55] !== O || e[56] !== Z ? (re = /* @__PURE__ */ m(H.Root, { variant: O, maxWidth: x, ...Z, children: X }), e[53] = X, e[54] = x, e[55] = O, e[56] = Z, e[57] = re) : re = e[57], re;
482
+ }
483
+ function _t(n) {
484
+ return {
485
+ triggerSignIn() {
486
+ }
487
+ };
488
+ }
489
+ const Le = "https://accounts.google.com/gsi/client";
490
+ function Et() {
491
+ return typeof window > "u" ? Promise.reject(new Error("GSI requires browser")) : window.google?.accounts?.id ? Promise.resolve() : new Promise((n, e) => {
492
+ if (document.querySelector(`script[src="${Le}"]`)) {
493
+ const i = () => window.google?.accounts?.id ? n() : setTimeout(i, 50);
494
+ i();
495
+ return;
496
+ }
497
+ const l = document.createElement("script");
498
+ l.src = Le, l.async = !0, l.defer = !0, l.onload = () => n(), l.onerror = () => e(new Error("Failed to load Google Identity Services script")), document.body.appendChild(l);
499
+ });
500
+ }
501
+ const Pt = "openid email profile", Re = 2e3;
502
+ function At(n) {
503
+ const e = _.c(18), {
504
+ clientId: t,
505
+ onCredential: l,
506
+ enableOneTap: i
507
+ } = n, o = i === void 0 ? !1 : i, r = le(!1), s = le(null), a = le(l), c = le(0), u = le(!1);
508
+ let h, d;
509
+ e[0] !== l ? (h = () => {
510
+ a.current = l;
511
+ }, d = [l], e[0] = l, e[1] = h, e[2] = d) : (h = e[1], d = e[2]), te(h, d);
512
+ let f;
513
+ e[3] !== t ? (f = async () => {
514
+ t && (await Et(), !(!window.google?.accounts?.id || !window.google?.accounts?.oauth2) && (r.current || (window.google.accounts.id.initialize({
515
+ client_id: t,
516
+ callback: (x) => {
517
+ a.current(x.credential);
518
+ },
519
+ auto_select: !1
520
+ }), s.current = window.google.accounts.oauth2.initCodeClient({
521
+ client_id: t,
522
+ scope: Pt,
523
+ ux_mode: "popup",
524
+ callback: (x) => {
525
+ a.current(x.code);
526
+ },
527
+ error_callback: Ot
528
+ }), r.current = !0)));
529
+ }, e[3] = t, e[4] = f) : f = e[4];
530
+ const p = f;
531
+ let b;
532
+ e[5] !== t ? (b = async () => {
533
+ if (!t)
534
+ return;
535
+ const x = Date.now();
536
+ x - c.current < Re || (c.current = x, s.current?.requestCode());
537
+ }, e[5] = t, e[6] = b) : b = e[6];
538
+ const g = b;
539
+ let v, y;
540
+ e[7] !== t || e[8] !== p ? (v = () => {
541
+ t && p();
542
+ }, y = [t, p], e[7] = t, e[8] = p, e[9] = v, e[10] = y) : (v = e[9], y = e[10]), te(v, y);
543
+ let C, N;
544
+ e[11] !== t || e[12] !== o || e[13] !== p ? (C = () => {
545
+ !o || !t || u.current || (u.current = !0, p().then(() => {
546
+ if (!window.google?.accounts?.id)
547
+ return;
548
+ const x = Date.now();
549
+ x - c.current < Re || (c.current = x, window.google.accounts.id.prompt());
550
+ }));
551
+ }, N = [o, t, p], e[11] = t, e[12] = o, e[13] = p, e[14] = C, e[15] = N) : (C = e[14], N = e[15]), te(C, N);
552
+ let S;
553
+ return e[16] !== g ? (S = {
554
+ loginWithGoogle: g
555
+ }, e[16] = g, e[17] = S) : S = e[17], S;
556
+ }
557
+ function Ot() {
558
+ }
559
+ function be(n) {
560
+ const e = _.c(43);
561
+ let t, l, i, o, r, s, a, c, u, h, d, f, p, b, g, v, y, C;
562
+ e[0] !== n ? ({
563
+ name: u,
564
+ label: v,
565
+ countryCode: y,
566
+ countryCodeName: o,
567
+ phoneArrayName: p,
568
+ selectedCountryName: g,
569
+ countries: i,
570
+ defaultCountry: r,
571
+ onValuesChange: f,
572
+ onCountryChange: h,
573
+ onCountryCodeChange: d,
574
+ placeholder: C,
575
+ disabled: s,
576
+ required: b,
577
+ className: t,
578
+ helperText: c,
579
+ control: l,
580
+ ...a
581
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = i, e[4] = o, e[5] = r, e[6] = s, e[7] = a, e[8] = c, e[9] = u, e[10] = h, e[11] = d, e[12] = f, e[13] = p, e[14] = b, e[15] = g, e[16] = v, e[17] = y, e[18] = C) : (t = e[1], l = e[2], i = e[3], o = e[4], r = e[5], s = e[6], a = e[7], c = e[8], u = e[9], h = e[10], d = e[11], f = e[12], p = e[13], b = e[14], g = e[15], v = e[16], y = e[17], C = e[18]);
582
+ const N = v === void 0 ? "Phone Number" : v, S = y === void 0 ? "91" : y, x = C === void 0 ? "Enter phone number" : C, A = ne(), w = l || A.control;
583
+ let E;
584
+ e[19] !== t || e[20] !== i || e[21] !== S || e[22] !== o || e[23] !== r || e[24] !== s || e[25] !== a || e[26] !== c || e[27] !== N || e[28] !== A || e[29] !== u || e[30] !== h || e[31] !== d || e[32] !== f || e[33] !== p || e[34] !== x || e[35] !== b || e[36] !== w || e[37] !== g ? (E = (D) => {
585
+ const {
586
+ field: $,
587
+ fieldState: P
588
+ } = D, T = (L, M) => /* @__PURE__ */ m(Ze, { ...a, id: u, value: String($.value ?? ""), ...N !== void 0 && {
589
+ label: N
590
+ }, ...L ? {
591
+ countryCode: L
592
+ } : {}, ...x !== void 0 && {
593
+ placeholder: x
594
+ }, ...s !== void 0 && {
595
+ disabled: s
596
+ }, ...b !== void 0 && {
597
+ required: b
598
+ }, ...i !== void 0 && {
599
+ countries: i
600
+ }, ...r !== void 0 && {
601
+ defaultCountry: r
602
+ }, ...t !== void 0 && {
603
+ className: t
604
+ }, ...P.error?.message !== void 0 && {
605
+ error: P.error?.message
606
+ }, ...P.error === void 0 && c !== void 0 && {
607
+ helperText: c
608
+ }, onPhoneChange: (I) => {
609
+ $.onChange(I.replaceAll(/\D/g, ""));
610
+ }, onCountryCodeChange: (I) => {
611
+ const U = String(I || "").replaceAll(/\D/g, "");
612
+ M?.(U), d?.(I);
613
+ }, onValuesChange: (I) => {
614
+ p && A.setValue(p, I, {
615
+ shouldDirty: !0
616
+ }), f?.(I);
617
+ }, onCountryChange: (I) => {
618
+ g && A.setValue(g, JSON.stringify(I), {
619
+ shouldDirty: !0
620
+ }), h?.(I);
621
+ }, onBlur: $.onBlur });
622
+ if (!o) {
623
+ const L = String(S || "").replaceAll(/\D/g, "");
624
+ return T(L);
625
+ }
626
+ return /* @__PURE__ */ m(de, { name: o, control: w, render: (L) => {
627
+ const {
628
+ field: M
629
+ } = L, I = String(M.value ?? S ?? "").replaceAll(/\D/g, "");
630
+ return T(I, M.onChange);
631
+ } });
632
+ }, e[19] = t, e[20] = i, e[21] = S, e[22] = o, e[23] = r, e[24] = s, e[25] = a, e[26] = c, e[27] = N, e[28] = A, e[29] = u, e[30] = h, e[31] = d, e[32] = f, e[33] = p, e[34] = x, e[35] = b, e[36] = w, e[37] = g, e[38] = E) : E = e[38];
633
+ let O;
634
+ return e[39] !== u || e[40] !== w || e[41] !== E ? (O = /* @__PURE__ */ m(de, { name: u, control: w, render: E }), e[39] = u, e[40] = w, e[41] = E, e[42] = O) : O = e[42], O;
635
+ }
636
+ function ue(n) {
637
+ const e = _.c(15), {
638
+ name: t,
639
+ label: l,
640
+ placeholder: i,
641
+ className: o,
642
+ control: r,
643
+ required: s,
644
+ type: a,
645
+ disabled: c,
646
+ onKeyDown: u,
647
+ maxLength: h,
648
+ numericOnly: d,
649
+ autoFocus: f
650
+ } = n, p = ne(), b = r || p.control;
651
+ let g;
652
+ e[0] !== f || e[1] !== o || e[2] !== c || e[3] !== l || e[4] !== h || e[5] !== d || e[6] !== u || e[7] !== i || e[8] !== s || e[9] !== a ? (g = (y) => {
653
+ const {
654
+ field: C,
655
+ fieldState: N
656
+ } = y;
657
+ return /* @__PURE__ */ m(Qe, { ...C, value: C.value ?? "", ...f !== void 0 && {
658
+ autoFocus: f
659
+ }, ...l !== void 0 && {
660
+ label: l
661
+ }, ...i !== void 0 && {
662
+ placeholder: i
663
+ }, ...N.error?.message !== void 0 && {
664
+ error: N.error.message
665
+ }, ...o !== void 0 && {
666
+ className: o
667
+ }, ...s !== void 0 && {
668
+ required: s
669
+ }, type: a, ...c !== void 0 && {
670
+ disabled: c
671
+ }, onKeyDown: d ? (S) => {
672
+ !/[0-9]/.test(S.key) && !["Backspace", "Tab", "Delete", "ArrowLeft", "ArrowRight", "Home", "End"].includes(S.key) && S.preventDefault(), u?.(S);
673
+ } : u, ...h !== void 0 && {
674
+ maxLength: h
675
+ }, onChange: (S) => {
676
+ const x = S?.target?.value;
677
+ if (typeof x == "string") {
678
+ let A = x.replace(/^\s+/, "");
679
+ d && (A = A.replace(/\D/g, "")), C.onChange(A);
680
+ } else
681
+ C.onChange(x);
682
+ }, onBlur: () => {
683
+ const S = C.value;
684
+ if (typeof S == "string") {
685
+ const x = S.trim();
686
+ x !== S && C.onChange(x);
687
+ }
688
+ C.onBlur();
689
+ } });
690
+ }, e[0] = f, e[1] = o, e[2] = c, e[3] = l, e[4] = h, e[5] = d, e[6] = u, e[7] = i, e[8] = s, e[9] = a, e[10] = g) : g = e[10];
691
+ let v;
692
+ return e[11] !== t || e[12] !== b || e[13] !== g ? (v = /* @__PURE__ */ m(de, { name: t, control: b, render: g }), e[11] = t, e[12] = b, e[13] = g, e[14] = v) : v = e[14], v;
693
+ }
694
+ function Tt(n, e) {
695
+ const t = (n ?? "").trim();
696
+ if (t.length === 0) return "";
697
+ if (t.startsWith("+")) return t;
698
+ const l = (e ?? "").replaceAll(/\D/g, "");
699
+ return l.length > 0 ? `+${l}${t}` : t;
700
+ }
701
+ function Ve(n, e) {
702
+ for (const t of n.issues) {
703
+ const l = t.path[0];
704
+ typeof l == "string" && e(l, {
705
+ message: t.message
706
+ });
707
+ }
708
+ }
709
+ function It(n) {
710
+ return n.trim().replace(/\b\w/g, (e) => e.toUpperCase());
711
+ }
712
+ const _e = j.string().trim().min(1, "Full name is required").refine((n) => n == null || n.length === 0 ? !0 : n.length >= 3, "Full name must be at least 3 characters").transform(It), Ee = j.string().trim().min(1, "Phone number is required").refine((n) => {
713
+ if (n == null || n.length === 0) return !0;
714
+ const [, e] = n.split("-"), l = (e ?? n).replaceAll(/\D/g, "");
715
+ return l.length >= 7 && l.length <= 15;
716
+ }, "Phone number must be between 7 and 15 digits"), Pe = j.string().trim().transform((n) => n.replaceAll(/\D/g, "")).optional(), Ae = j.string().trim().min(1, "Email is required").refine((n) => n == null || n.length === 0 ? !0 : j.string().email().safeParse(n).success, "Enter a valid email address").transform((n) => n.toLowerCase()), Lt = j.object({
717
+ fullName: _e,
718
+ phone: Ee,
719
+ countryCode: Pe
720
+ }), Rt = j.object({
721
+ fullName: _e,
722
+ email: Ae
723
+ }), Ft = j.object({
724
+ fullName: _e,
725
+ email: Ae,
726
+ phone: Ee,
727
+ countryCode: Pe
728
+ }), Fe = {
729
+ phone: Lt,
730
+ email: Rt,
731
+ foreign: Ft
732
+ }, Dt = j.object({
733
+ phone: Ee,
734
+ countryCode: Pe
735
+ }), kt = j.object({
736
+ email: Ae
737
+ }), De = {
738
+ phone: Dt,
739
+ email: kt
740
+ }, fe = 6, Wt = 60, $t = 120;
741
+ function Mt(n) {
742
+ return n === "phone" ? Wt : $t;
743
+ }
744
+ const He = j.object({
745
+ otp: j.array(j.string()).length(fe, "Enter all 6 digits").refine((n) => n.every((e) => /^\d$/.test(e)) && n.join("").length === fe, "Invalid OTP! Please use correct code and submit again.")
746
+ });
747
+ function Ut(n) {
748
+ const e = _.c(19), {
749
+ mode: t,
750
+ onSubmit: l,
751
+ submitApi: i,
752
+ onSuccess: o,
753
+ onError: r
754
+ } = n, [s, a] = K(!1), c = t === "phone";
755
+ let u;
756
+ e[0] !== c ? (u = c ? {
757
+ phone: "",
758
+ countryCode: "91"
759
+ } : {
760
+ email: ""
761
+ }, e[0] = c, e[1] = u) : u = e[1];
762
+ const h = u;
763
+ let d;
764
+ e[2] !== h ? (d = {
765
+ defaultValues: h,
766
+ mode: "onChange"
767
+ }, e[2] = h, e[3] = d) : d = e[3];
768
+ const f = ye(d);
769
+ let p;
770
+ e[4] !== f || e[5] !== t || e[6] !== r || e[7] !== l || e[8] !== o || e[9] !== i ? (p = (C) => {
771
+ const S = De[t].safeParse(C);
772
+ if (!S.success) {
773
+ Ve(S.error, (A, w) => f.setError(A, w));
774
+ return;
775
+ }
776
+ const x = S.data;
777
+ if (i) {
778
+ a(!0);
779
+ const A = x.phone ? Tt(x.phone, x.countryCode) : x.email ?? "", w = {
780
+ mode: t,
781
+ recipient: A
782
+ };
783
+ i(x).then(() => {
784
+ o?.(w);
785
+ }).catch((E) => {
786
+ r?.(E);
787
+ }).finally(() => {
788
+ a(!1);
789
+ });
790
+ return;
791
+ }
792
+ l?.(x);
793
+ }, e[4] = f, e[5] = t, e[6] = r, e[7] = l, e[8] = o, e[9] = i, e[10] = p) : p = e[10];
794
+ const b = p;
795
+ let g;
796
+ e[11] !== t ? (g = (C) => De[t].safeParse(C).success, e[11] = t, e[12] = g) : g = e[12];
797
+ const v = g;
798
+ let y;
799
+ return e[13] !== b || e[14] !== v || e[15] !== c || e[16] !== s || e[17] !== f ? (y = {
800
+ methods: f,
801
+ handleSubmit: b,
802
+ isPhone: c,
803
+ isFormValid: v,
804
+ isSubmitting: s
805
+ }, e[13] = b, e[14] = v, e[15] = c, e[16] = s, e[17] = f, e[18] = y) : y = e[18], y;
806
+ }
807
+ function jt(n) {
808
+ const e = _.c(14), {
809
+ isPhone: t,
810
+ handleSubmit: l,
811
+ isSubmitting: i
812
+ } = n, o = ne();
813
+ let r;
814
+ e[0] !== l || e[1] !== o ? (r = o.handleSubmit(l), e[0] = l, e[1] = o, e[2] = r) : r = e[2];
815
+ let s;
816
+ e[3] !== t ? (s = /* @__PURE__ */ m("div", { className: "mb-6 flex w-full flex-col gap-[12px]", children: t ? /* @__PURE__ */ m(be, { name: "phone", label: "Phone number", placeholder: "Phone number", countryCode: "+91", countryCodeName: "countryCode", required: !0, defaultCountry: "IN", autoFocus: !0 }) : /* @__PURE__ */ m(ue, { name: "email", label: "Email address", placeholder: "Enter email address", type: "email", autoFocus: !0 }) }), e[3] = t, e[4] = s) : s = e[4];
817
+ let a;
818
+ e[5] !== i ? (a = i ? /* @__PURE__ */ m(ve, { size: 32, strokeWidth: 2 }) : "Continue", e[5] = i, e[6] = a) : a = e[6];
819
+ let c;
820
+ e[7] !== i || e[8] !== a ? (c = /* @__PURE__ */ m(B, { type: "submit", variant: "primary", size: "large", fullWidth: !0, disabled: i, children: a }), e[7] = i, e[8] = a, e[9] = c) : c = e[9];
821
+ let u;
822
+ return e[10] !== r || e[11] !== s || e[12] !== c ? (u = /* @__PURE__ */ k("form", { onSubmit: r, className: "w-full flex flex-col", noValidate: !0, children: [
823
+ s,
824
+ c
825
+ ] }), e[10] = r, e[11] = s, e[12] = c, e[13] = u) : u = e[13], u;
826
+ }
827
+ function Bt(n) {
828
+ const e = _.c(13), {
829
+ mode: t,
830
+ onSubmit: l,
831
+ submitApi: i,
832
+ onSuccess: o,
833
+ onError: r
834
+ } = n;
835
+ let s;
836
+ e[0] !== t || e[1] !== r || e[2] !== l || e[3] !== o || e[4] !== i ? (s = {
837
+ mode: t,
838
+ onSubmit: l,
839
+ submitApi: i,
840
+ onSuccess: o,
841
+ onError: r
842
+ }, e[0] = t, e[1] = r, e[2] = l, e[3] = o, e[4] = i, e[5] = s) : s = e[5];
843
+ const {
844
+ methods: a,
845
+ handleSubmit: c,
846
+ isPhone: u,
847
+ isSubmitting: h
848
+ } = Ut(s);
849
+ let d;
850
+ e[6] !== c || e[7] !== u || e[8] !== h ? (d = /* @__PURE__ */ m(jt, { isPhone: u, handleSubmit: c, isSubmitting: h }), e[6] = c, e[7] = u, e[8] = h, e[9] = d) : d = e[9];
851
+ let f;
852
+ return e[10] !== a || e[11] !== d ? (f = /* @__PURE__ */ m(Ce, { ...a, children: d }), e[10] = a, e[11] = d, e[12] = f) : f = e[12], f;
853
+ }
854
+ const zt = {
855
+ phone: "Enter Phone Number",
856
+ email: "Enter Email Address"
857
+ }, Gt = {
858
+ phone: "We will send you 6 digit OTP on the given Phone Number.",
859
+ email: "We will send you 6 digit OTP on the given Email Address."
860
+ };
861
+ function _n(n) {
862
+ const e = _.c(23), {
863
+ mode: t,
864
+ title: l,
865
+ subtitle: i,
866
+ onBack: o,
867
+ onSubmit: r,
868
+ submitApi: s,
869
+ onSuccess: a,
870
+ onError: c,
871
+ layoutType: u,
872
+ variant: h
873
+ } = n, d = u === void 0 ? "withSlider" : u, f = h === void 0 ? "desktop" : h, p = l ?? zt[t], b = i ?? Gt[t];
874
+ let g;
875
+ e[0] !== o ? (g = o != null ? /* @__PURE__ */ m(Se, { onClick: o }) : void 0, e[0] = o, e[1] = g) : g = e[1];
876
+ let v;
877
+ e[2] !== r ? (v = r && {
878
+ onSubmit: r
879
+ }, e[2] = r, e[3] = v) : v = e[3];
880
+ let y;
881
+ e[4] !== s ? (y = s && {
882
+ submitApi: s
883
+ }, e[4] = s, e[5] = y) : y = e[5];
884
+ let C;
885
+ e[6] !== a ? (C = a && {
886
+ onSuccess: a
887
+ }, e[6] = a, e[7] = C) : C = e[7];
888
+ let N;
889
+ e[8] !== c ? (N = c && {
890
+ onError: c
891
+ }, e[8] = c, e[9] = N) : N = e[9];
892
+ let S;
893
+ e[10] !== t || e[11] !== v || e[12] !== y || e[13] !== C || e[14] !== N ? (S = /* @__PURE__ */ m(Bt, { mode: t, ...v, ...y, ...C, ...N }), e[10] = t, e[11] = v, e[12] = y, e[13] = C, e[14] = N, e[15] = S) : S = e[15];
894
+ let x;
895
+ return e[16] !== d || e[17] !== b || e[18] !== p || e[19] !== g || e[20] !== S || e[21] !== f ? (x = /* @__PURE__ */ m(ie, { layoutType: d, variant: f, contentWidth: "sm", align: "left", backButton: g, title: p, description: b, className: je, children: S }), e[16] = d, e[17] = b, e[18] = p, e[19] = g, e[20] = S, e[21] = f, e[22] = x) : x = e[22], x;
896
+ }
897
+ var qe = {
898
+ color: void 0,
899
+ size: void 0,
900
+ className: void 0,
901
+ style: void 0,
902
+ attr: void 0
903
+ }, ke = q.createContext && /* @__PURE__ */ q.createContext(qe), Vt = ["attr", "size", "title"];
904
+ function Ht(n, e) {
905
+ if (n == null) return {};
906
+ var t = qt(n, e), l, i;
907
+ if (Object.getOwnPropertySymbols) {
908
+ var o = Object.getOwnPropertySymbols(n);
909
+ for (i = 0; i < o.length; i++)
910
+ l = o[i], !(e.indexOf(l) >= 0) && Object.prototype.propertyIsEnumerable.call(n, l) && (t[l] = n[l]);
911
+ }
912
+ return t;
913
+ }
914
+ function qt(n, e) {
915
+ if (n == null) return {};
916
+ var t = {};
917
+ for (var l in n)
918
+ if (Object.prototype.hasOwnProperty.call(n, l)) {
919
+ if (e.indexOf(l) >= 0) continue;
920
+ t[l] = n[l];
921
+ }
922
+ return t;
923
+ }
924
+ function me() {
925
+ return me = Object.assign ? Object.assign.bind() : function(n) {
926
+ for (var e = 1; e < arguments.length; e++) {
927
+ var t = arguments[e];
928
+ for (var l in t)
929
+ Object.prototype.hasOwnProperty.call(t, l) && (n[l] = t[l]);
930
+ }
931
+ return n;
932
+ }, me.apply(this, arguments);
933
+ }
934
+ function We(n, e) {
935
+ var t = Object.keys(n);
936
+ if (Object.getOwnPropertySymbols) {
937
+ var l = Object.getOwnPropertySymbols(n);
938
+ e && (l = l.filter(function(i) {
939
+ return Object.getOwnPropertyDescriptor(n, i).enumerable;
940
+ })), t.push.apply(t, l);
941
+ }
942
+ return t;
943
+ }
944
+ function he(n) {
945
+ for (var e = 1; e < arguments.length; e++) {
946
+ var t = arguments[e] != null ? arguments[e] : {};
947
+ e % 2 ? We(Object(t), !0).forEach(function(l) {
948
+ Yt(n, l, t[l]);
949
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : We(Object(t)).forEach(function(l) {
950
+ Object.defineProperty(n, l, Object.getOwnPropertyDescriptor(t, l));
951
+ });
952
+ }
953
+ return n;
954
+ }
955
+ function Yt(n, e, t) {
956
+ return e = Kt(e), e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
957
+ }
958
+ function Kt(n) {
959
+ var e = Jt(n, "string");
960
+ return typeof e == "symbol" ? e : e + "";
961
+ }
962
+ function Jt(n, e) {
963
+ if (typeof n != "object" || !n) return n;
964
+ var t = n[Symbol.toPrimitive];
965
+ if (t !== void 0) {
966
+ var l = t.call(n, e);
967
+ if (typeof l != "object") return l;
968
+ throw new TypeError("@@toPrimitive must return a primitive value.");
969
+ }
970
+ return (e === "string" ? String : Number)(n);
971
+ }
972
+ function Ye(n) {
973
+ return n && n.map((e, t) => /* @__PURE__ */ q.createElement(e.tag, he({
974
+ key: t
975
+ }, e.attr), Ye(e.child)));
976
+ }
977
+ function Ke(n) {
978
+ return (e) => /* @__PURE__ */ q.createElement(Xt, me({
979
+ attr: he({}, n.attr)
980
+ }, e), Ye(n.child));
981
+ }
982
+ function Xt(n) {
983
+ var e = (t) => {
984
+ var {
985
+ attr: l,
986
+ size: i,
987
+ title: o
988
+ } = n, r = Ht(n, Vt), s = i || t.size || "1em", a;
989
+ return t.className && (a = t.className), n.className && (a = (a ? a + " " : "") + n.className), /* @__PURE__ */ q.createElement("svg", me({
990
+ stroke: "currentColor",
991
+ fill: "currentColor",
992
+ strokeWidth: "0"
993
+ }, t.attr, l, r, {
994
+ className: a,
995
+ style: he(he({
996
+ color: n.color || t.color
997
+ }, t.style), n.style),
998
+ height: s,
999
+ width: s,
1000
+ xmlns: "http://www.w3.org/2000/svg"
1001
+ }), o && /* @__PURE__ */ q.createElement("title", null, o), n.children);
1002
+ };
1003
+ return ke !== void 0 ? /* @__PURE__ */ q.createElement(ke.Consumer, null, (t) => e(t)) : e(qe);
1004
+ }
1005
+ function Zt(n) {
1006
+ return Ke({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z" }, child: [] }] })(n);
1007
+ }
1008
+ function Qt(n) {
1009
+ return Ke({ attr: { version: "1.1", x: "0px", y: "0px", viewBox: "0 0 48 48", enableBackground: "new 0 0 48 48" }, child: [{ tag: "path", attr: { fill: "#FFC107", d: `M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12\r
1010
+ c0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24\r
1011
+ c0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z` }, child: [] }, { tag: "path", attr: { fill: "#FF3D00", d: `M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657\r
1012
+ C34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z` }, child: [] }, { tag: "path", attr: { fill: "#4CAF50", d: `M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36\r
1013
+ c-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z` }, child: [] }, { tag: "path", attr: { fill: "#1976D2", d: `M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571\r
1014
+ c0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z` }, child: [] }] })(n);
1015
+ }
1016
+ function Je(n) {
1017
+ const e = _.c(23);
1018
+ let t;
1019
+ e[0] !== n ? (t = n === void 0 ? {} : n, e[0] = n, e[1] = t) : t = e[1];
1020
+ const l = t, i = nn, o = l.providers?.google?.clientId ?? "";
1021
+ let r;
1022
+ e[2] !== l.providers?.google?.onCredential ? (r = l.providers?.google?.onCredential ?? tn, e[2] = l.providers?.google?.onCredential, e[3] = r) : r = e[3];
1023
+ const s = l.providers?.google?.enableOneTap ?? !1;
1024
+ let a;
1025
+ e[4] !== o || e[5] !== r || e[6] !== s ? (a = {
1026
+ clientId: o,
1027
+ onCredential: r,
1028
+ enableOneTap: s
1029
+ }, e[4] = o, e[5] = r, e[6] = s, e[7] = a) : a = e[7];
1030
+ const {
1031
+ loginWithGoogle: c
1032
+ } = At(a), u = l.providers?.apple?.clientId ?? "", h = l.providers?.apple?.redirectUri ?? "";
1033
+ let d;
1034
+ e[8] !== l.providers?.apple?.onCredential ? (d = l.providers?.apple?.onCredential ?? en, e[8] = l.providers?.apple?.onCredential, e[9] = d) : d = e[9];
1035
+ let f;
1036
+ e[10] !== u || e[11] !== h || e[12] !== d ? (f = {
1037
+ clientId: u,
1038
+ redirectUri: h,
1039
+ onCredential: d
1040
+ }, e[10] = u, e[11] = h, e[12] = d, e[13] = f) : f = e[13];
1041
+ const {
1042
+ triggerSignIn: p
1043
+ } = _t(), b = l.onContinueWithMobile ?? i, g = l.onContinueWithEmail ?? i;
1044
+ let v;
1045
+ e[14] !== c || e[15] !== l.onContinueWithGoogle || e[16] !== l.providers?.google?.clientId ? (v = l.onContinueWithGoogle ?? (l.providers?.google?.clientId ? () => {
1046
+ c();
1047
+ } : i), e[14] = c, e[15] = l.onContinueWithGoogle, e[16] = l.providers?.google?.clientId, e[17] = v) : v = e[17];
1048
+ const y = l.onContinueWithApple ?? (l.providers?.apple?.clientId ? p : i);
1049
+ let C;
1050
+ return e[18] !== b || e[19] !== g || e[20] !== v || e[21] !== y ? (C = {
1051
+ onContinueWithMobile: b,
1052
+ onContinueWithEmail: g,
1053
+ onContinueWithGoogle: v,
1054
+ onContinueWithApple: y
1055
+ }, e[18] = b, e[19] = g, e[20] = v, e[21] = y, e[22] = C) : C = e[22], C;
1056
+ }
1057
+ function en() {
1058
+ }
1059
+ function tn() {
1060
+ }
1061
+ function nn() {
1062
+ }
1063
+ const ln = {
1064
+ phone: "Kindly check your Mobile.",
1065
+ email: "Kindly check your Email Inbox."
1066
+ }, on = {
1067
+ phone: "6 digit OTP has been sent to your Mobile",
1068
+ email: "6 digit OTP has been sent to your Email"
1069
+ };
1070
+ function rn(n) {
1071
+ const e = _.c(30), {
1072
+ mode: t,
1073
+ onSubmit: l,
1074
+ onResendCode: i,
1075
+ submitApi: o,
1076
+ onSuccess: r,
1077
+ onError: s,
1078
+ validate: a
1079
+ } = n, [c, u] = K(!1);
1080
+ let h;
1081
+ e[0] !== t ? (h = Mt(t), e[0] = t, e[1] = h) : h = e[1];
1082
+ const d = h, [f, p] = K(d), b = f <= 0;
1083
+ let g;
1084
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = Array.from({
1085
+ length: fe
1086
+ }, cn), e[2] = g) : g = e[2];
1087
+ const v = g;
1088
+ let y;
1089
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
1090
+ defaultValues: {
1091
+ otp: v
1092
+ },
1093
+ mode: "onChange"
1094
+ }, e[3] = y) : y = e[3];
1095
+ const C = ye(y);
1096
+ let N, S;
1097
+ e[4] !== f ? (N = () => {
1098
+ if (f <= 0)
1099
+ return;
1100
+ const z = setInterval(() => {
1101
+ p(an);
1102
+ }, 1e3);
1103
+ return () => clearInterval(z);
1104
+ }, S = [f], e[4] = f, e[5] = N, e[6] = S) : (N = e[5], S = e[6]), te(N, S);
1105
+ let x;
1106
+ e[7] !== C || e[8] !== s || e[9] !== l || e[10] !== r || e[11] !== o || e[12] !== a ? (x = async (z) => {
1107
+ const G = He.safeParse(z);
1108
+ if (!G.success) {
1109
+ const W = G.error.issues[0]?.message ?? "Invalid OTP";
1110
+ C.setError("otp", {
1111
+ message: W
1112
+ });
1113
+ return;
1114
+ }
1115
+ const V = G.data.otp.join("");
1116
+ if (a) {
1117
+ u(!0);
1118
+ try {
1119
+ const W = await a(V);
1120
+ if (W !== !0) {
1121
+ C.setError("otp", {
1122
+ type: "validate",
1123
+ message: W
1124
+ }), u(!1);
1125
+ return;
1126
+ }
1127
+ } catch (W) {
1128
+ s?.(W), u(!1);
1129
+ return;
1130
+ }
1131
+ o || u(!1);
1132
+ }
1133
+ if (o) {
1134
+ u(!0), o(V).then(() => {
1135
+ r?.();
1136
+ }).catch((W) => {
1137
+ s?.(W);
1138
+ }).finally(() => {
1139
+ u(!1);
1140
+ });
1141
+ return;
1142
+ }
1143
+ l?.(V);
1144
+ }, e[7] = C, e[8] = s, e[9] = l, e[10] = r, e[11] = o, e[12] = a, e[13] = x) : x = e[13];
1145
+ const A = x;
1146
+ let w;
1147
+ e[14] !== b || e[15] !== d || e[16] !== i ? (w = () => {
1148
+ b && (i?.(), p(d));
1149
+ }, e[14] = b, e[15] = d, e[16] = i, e[17] = w) : w = e[17];
1150
+ const E = w, O = sn, D = Math.floor(f / 60), $ = f % 60, P = String(D);
1151
+ let T;
1152
+ e[18] !== P ? (T = P.padStart(2, "0"), e[18] = P, e[19] = T) : T = e[19];
1153
+ const L = String($);
1154
+ let M;
1155
+ e[20] !== L ? (M = L.padStart(2, "0"), e[20] = L, e[21] = M) : M = e[21];
1156
+ const I = `Resend code in: ${T}:${M}`;
1157
+ let U;
1158
+ return e[22] !== b || e[23] !== E || e[24] !== A || e[25] !== c || e[26] !== C || e[27] !== f || e[28] !== I ? (U = {
1159
+ methods: C,
1160
+ handleSubmit: A,
1161
+ isFormValid: O,
1162
+ handleResend: E,
1163
+ resendSecondsLeft: f,
1164
+ canResend: b,
1165
+ timerText: I,
1166
+ isSubmitting: c
1167
+ }, e[22] = b, e[23] = E, e[24] = A, e[25] = c, e[26] = C, e[27] = f, e[28] = I, e[29] = U) : U = e[29], U;
1168
+ }
1169
+ function sn(n) {
1170
+ return He.safeParse(n).success;
1171
+ }
1172
+ function an(n) {
1173
+ return n <= 1 ? 0 : n - 1;
1174
+ }
1175
+ function cn() {
1176
+ return "";
1177
+ }
1178
+ const un = "Mobile";
1179
+ function dn(n) {
1180
+ const e = _.c(11);
1181
+ let t;
1182
+ e[0] !== n ? (t = n === void 0 ? {} : n, e[0] = n, e[1] = t) : t = e[1];
1183
+ const l = t, [i, o] = K(!1), {
1184
+ lastUsedMethod: r,
1185
+ onContinueWithLastMethod: s,
1186
+ continueApi: a,
1187
+ onSuccess: c,
1188
+ onError: u
1189
+ } = l, h = r === void 0 ? un : r;
1190
+ let d;
1191
+ e[2] !== a || e[3] !== s || e[4] !== u || e[5] !== c ? (d = () => {
1192
+ if (a) {
1193
+ o(!0), a().then(() => {
1194
+ c?.();
1195
+ }).catch((b) => {
1196
+ u?.(b);
1197
+ }).finally(() => {
1198
+ o(!1);
1199
+ });
1200
+ return;
1201
+ }
1202
+ s?.();
1203
+ }, e[2] = a, e[3] = s, e[4] = u, e[5] = c, e[6] = d) : d = e[6];
1204
+ const f = d;
1205
+ let p;
1206
+ return e[7] !== f || e[8] !== i || e[9] !== h ? (p = {
1207
+ handleContinue: f,
1208
+ isSubmitting: i,
1209
+ lastUsedMethod: h
1210
+ }, e[7] = f, e[8] = i, e[9] = h, e[10] = p) : p = e[10], p;
1211
+ }
1212
+ function fn(n) {
1213
+ const e = _.c(22), {
1214
+ mode: t,
1215
+ defaultPhone: l,
1216
+ onSubmit: i,
1217
+ submitApi: o,
1218
+ onSuccess: r,
1219
+ onError: s
1220
+ } = n, a = l === void 0 ? "" : l, [c, u] = K(!1), h = t === "phone", d = t === "foreign";
1221
+ let f;
1222
+ e[0] !== a || e[1] !== d || e[2] !== h ? (f = d ? {
1223
+ fullName: "",
1224
+ email: "",
1225
+ phone: a,
1226
+ countryCode: "91"
1227
+ } : h ? {
1228
+ fullName: "",
1229
+ phone: "",
1230
+ countryCode: "91"
1231
+ } : {
1232
+ fullName: "",
1233
+ email: ""
1234
+ }, e[0] = a, e[1] = d, e[2] = h, e[3] = f) : f = e[3];
1235
+ const p = f;
1236
+ let b;
1237
+ e[4] !== p ? (b = {
1238
+ defaultValues: p,
1239
+ mode: "onChange"
1240
+ }, e[4] = p, e[5] = b) : b = e[5];
1241
+ const g = ye(b);
1242
+ let v;
1243
+ e[6] !== g || e[7] !== t || e[8] !== s || e[9] !== i || e[10] !== r || e[11] !== o ? (v = (x) => {
1244
+ const w = Fe[t].safeParse(x);
1245
+ if (!w.success) {
1246
+ Ve(w.error, (O, D) => g.setError(O, D));
1247
+ return;
1248
+ }
1249
+ const E = {
1250
+ fullName: w.data.fullName,
1251
+ ..."phone" in w.data && w.data.phone && {
1252
+ phone: w.data.phone
1253
+ },
1254
+ ..."countryCode" in w.data && w.data.countryCode && {
1255
+ countryCode: w.data.countryCode
1256
+ },
1257
+ ..."email" in w.data && w.data.email && {
1258
+ email: w.data.email
1259
+ }
1260
+ };
1261
+ if (o) {
1262
+ u(!0), o(E).then(() => {
1263
+ r?.();
1264
+ }).catch((O) => {
1265
+ s?.(O);
1266
+ }).finally(() => {
1267
+ u(!1);
1268
+ });
1269
+ return;
1270
+ }
1271
+ i?.(E);
1272
+ }, e[6] = g, e[7] = t, e[8] = s, e[9] = i, e[10] = r, e[11] = o, e[12] = v) : v = e[12];
1273
+ const y = v;
1274
+ let C;
1275
+ e[13] !== t ? (C = (x) => Fe[t].safeParse(x).success, e[13] = t, e[14] = C) : C = e[14];
1276
+ const N = C;
1277
+ let S;
1278
+ return e[15] !== y || e[16] !== d || e[17] !== N || e[18] !== h || e[19] !== c || e[20] !== g ? (S = {
1279
+ methods: g,
1280
+ handleSubmit: y,
1281
+ isPhone: h,
1282
+ isForeign: d,
1283
+ isFormValid: N,
1284
+ isSubmitting: c
1285
+ }, e[15] = y, e[16] = d, e[17] = N, e[18] = h, e[19] = c, e[20] = g, e[21] = S) : S = e[21], S;
1286
+ }
1287
+ const Xe = (n) => {
1288
+ const e = _.c(19), {
1289
+ handlers: t
1290
+ } = n, {
1291
+ onContinueWithMobile: l,
1292
+ onContinueWithEmail: i,
1293
+ onContinueWithGoogle: o,
1294
+ onContinueWithApple: r
1295
+ } = t;
1296
+ let s;
1297
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ m(ce, { children: "Continue with Mobile" }), e[0] = s) : s = e[0];
1298
+ let a;
1299
+ e[1] !== l ? (a = /* @__PURE__ */ m(B, { variant: "outline", size: "large", fullWidth: !0, onClick: l, children: s }), e[1] = l, e[2] = a) : a = e[2];
1300
+ let c;
1301
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ m(ce, { children: "Continue with Email" }), e[3] = c) : c = e[3];
1302
+ let u;
1303
+ e[4] !== i ? (u = /* @__PURE__ */ m(B, { variant: "outline", size: "large", fullWidth: !0, onClick: i, children: c }), e[4] = i, e[5] = u) : u = e[5];
1304
+ let h;
1305
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ m(Qt, { "aria-hidden": !0 }), e[6] = h) : h = e[6];
1306
+ let d;
1307
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ m(ce, { children: "Continue with Google" }), e[7] = d) : d = e[7];
1308
+ let f;
1309
+ e[8] !== o ? (f = /* @__PURE__ */ m(B, { variant: "outline", size: "large", fullWidth: !0, icon: h, iconPosition: "left", onClick: o, children: d }), e[8] = o, e[9] = f) : f = e[9];
1310
+ let p;
1311
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ m(Zt, { "aria-hidden": !0 }), e[10] = p) : p = e[10];
1312
+ let b;
1313
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ m(ce, { children: "Continue with Apple" }), e[11] = b) : b = e[11];
1314
+ let g;
1315
+ e[12] !== r ? (g = /* @__PURE__ */ m(B, { variant: "outline", size: "large", fullWidth: !0, icon: p, iconPosition: "left", onClick: r, children: b }), e[12] = r, e[13] = g) : g = e[13];
1316
+ let v;
1317
+ return e[14] !== g || e[15] !== a || e[16] !== u || e[17] !== f ? (v = /* @__PURE__ */ k("div", { className: "w-full flex flex-col gap-2", children: [
1318
+ a,
1319
+ u,
1320
+ f,
1321
+ g
1322
+ ] }), e[14] = g, e[15] = a, e[16] = u, e[17] = f, e[18] = v) : v = e[18], v;
1323
+ }, ce = (n) => {
1324
+ const e = _.c(2), {
1325
+ children: t
1326
+ } = n;
1327
+ let l;
1328
+ return e[0] !== t ? (l = /* @__PURE__ */ m(R, { variant: "textLabel1", weight: "semiBold", align: "center", className: "opacity-80", children: t }), e[0] = t, e[1] = l) : l = e[1], l;
1329
+ };
1330
+ function En(n) {
1331
+ const e = _.c(2), t = Je(n);
1332
+ let l;
1333
+ return e[0] !== t ? (l = /* @__PURE__ */ m(Xe, { handlers: t }), e[0] = t, e[1] = l) : l = e[1], l;
1334
+ }
1335
+ const Pn = (n) => {
1336
+ const e = _.c(16), t = Je(n);
1337
+ let l;
1338
+ e[0] !== n.onEnterpriseLogin ? (l = n.onEnterpriseLogin != null && {
1339
+ onClick: n.onEnterpriseLogin
1340
+ }, e[0] = n.onEnterpriseLogin, e[1] = l) : l = e[1];
1341
+ let i;
1342
+ e[2] !== n.enterpriseLoginUrl ? (i = n.enterpriseLoginUrl != null && {
1343
+ href: n.enterpriseLoginUrl
1344
+ }, e[2] = n.enterpriseLoginUrl, e[3] = i) : i = e[3];
1345
+ let o;
1346
+ e[4] !== l || e[5] !== i ? (o = {
1347
+ ...l,
1348
+ ...i
1349
+ }, e[4] = l, e[5] = i, e[6] = o) : o = e[6];
1350
+ const r = o;
1351
+ let s;
1352
+ e[7] !== r ? (s = /* @__PURE__ */ m(ft, { ...r }), e[7] = r, e[8] = s) : s = e[8];
1353
+ let a;
1354
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ m(R, { variant: "title1", weight: "bold", align: "center", className: "max-w-[250px] mx-auto", children: "The Healthcare Career App" }), e[9] = a) : a = e[9];
1355
+ let c;
1356
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ m(Be, {}), e[10] = c) : c = e[10];
1357
+ let u;
1358
+ e[11] !== t ? (u = /* @__PURE__ */ m(Xe, { handlers: t }), e[11] = t, e[12] = u) : u = e[12];
1359
+ let h;
1360
+ return e[13] !== s || e[14] !== u ? (h = /* @__PURE__ */ m(ie, { layoutType: "withSlider", variant: "desktop", header: s, logo: Me, align: "center", title: a, description: "Continue to Signup, If you already have an account we'll log you in.", footer: c, children: u }), e[13] = s, e[14] = u, e[15] = h) : h = e[15], h;
1361
+ };
1362
+ function mn(n) {
1363
+ const e = _.c(10), {
1364
+ name: t,
1365
+ label: l,
1366
+ className: i,
1367
+ control: o,
1368
+ length: r,
1369
+ inputClassName: s,
1370
+ autoFocus: a
1371
+ } = n, c = r === void 0 ? 6 : r, u = ne(), h = o || u.control;
1372
+ let d;
1373
+ e[0] !== a || e[1] !== i || e[2] !== s || e[3] !== l || e[4] !== c ? (d = (p) => {
1374
+ const {
1375
+ field: b,
1376
+ fieldState: g
1377
+ } = p;
1378
+ return /* @__PURE__ */ k("div", { children: [
1379
+ l && /* @__PURE__ */ m("label", { className: "block mb-1", children: l }),
1380
+ /* @__PURE__ */ m(et, { length: c, value: b.value || [], onChange: b.onChange, ...a !== void 0 && {
1381
+ autoFocus: a
1382
+ }, ...i && {
1383
+ className: i
1384
+ }, ...s && {
1385
+ inputClassName: s
1386
+ }, ...g.error?.message !== void 0 && g.error?.message !== "" && {
1387
+ error: g.error.message
1388
+ } })
1389
+ ] });
1390
+ }, e[0] = a, e[1] = i, e[2] = s, e[3] = l, e[4] = c, e[5] = d) : d = e[5];
1391
+ let f;
1392
+ return e[6] !== t || e[7] !== h || e[8] !== d ? (f = /* @__PURE__ */ m(de, { name: t, control: h, render: d }), e[6] = t, e[7] = h, e[8] = d, e[9] = f) : f = e[9], f;
1393
+ }
1394
+ function hn(n) {
1395
+ const e = _.c(28), {
1396
+ mode: t,
1397
+ title: l,
1398
+ recipientDisplay: i,
1399
+ isForeignUser: o,
1400
+ handleSubmit: r,
1401
+ handleResend: s,
1402
+ canResend: a,
1403
+ timerText: c,
1404
+ isSubmitting: u
1405
+ } = n, h = ne();
1406
+ let d;
1407
+ e[0] !== r || e[1] !== h ? (d = h.handleSubmit(r), e[0] = r, e[1] = h, e[2] = d) : d = e[2];
1408
+ let f;
1409
+ e[3] !== l ? (f = /* @__PURE__ */ m(R, { variant: "h5", weight: "extraBold", align: "left", className: "mb-2 text-neutral-black", children: l }), e[3] = l, e[4] = f) : f = e[4];
1410
+ const p = o ? "mb-2 text-neutral-80" : "mb-6 text-neutral-80";
1411
+ let b;
1412
+ e[5] !== i || e[6] !== p ? (b = /* @__PURE__ */ m(R, { variant: "title2", align: "left", className: p, children: i }), e[5] = i, e[6] = p, e[7] = b) : b = e[7];
1413
+ let g;
1414
+ e[8] !== o || e[9] !== t ? (g = o && /* @__PURE__ */ m(R, { variant: "body2", align: "left", className: "mb-6 text-neutral-80", children: ln[t] }), e[8] = o, e[9] = t, e[10] = g) : g = e[10];
1415
+ let v;
1416
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ m("div", { className: "mb-4 flex w-full flex-col gap-[12px]", children: /* @__PURE__ */ m(mn, { name: "otp", length: fe, autoFocus: !0 }) }), e[11] = v) : v = e[11];
1417
+ let y;
1418
+ e[12] !== a || e[13] !== s || e[14] !== c ? (y = /* @__PURE__ */ m("div", { className: "mb-6 flex items-center gap-2", children: a ? /* @__PURE__ */ m(B, { type: "button", variant: "outline", size: "small", onClick: s, className: "!h-[28px]", children: "Resend Code" }) : /* @__PURE__ */ m(R, { variant: "body2", align: "left", className: "text-neutral-80", children: c }) }), e[12] = a, e[13] = s, e[14] = c, e[15] = y) : y = e[15];
1419
+ let C;
1420
+ e[16] !== u ? (C = u ? /* @__PURE__ */ m(ve, { size: 32, strokeWidth: 2 }) : "Submit", e[16] = u, e[17] = C) : C = e[17];
1421
+ let N;
1422
+ e[18] !== u || e[19] !== C ? (N = /* @__PURE__ */ m(B, { type: "submit", variant: "primary", size: "large", fullWidth: !0, disabled: u, children: C }), e[18] = u, e[19] = C, e[20] = N) : N = e[20];
1423
+ let S;
1424
+ return e[21] !== d || e[22] !== f || e[23] !== b || e[24] !== g || e[25] !== y || e[26] !== N ? (S = /* @__PURE__ */ k("form", { onSubmit: d, className: "flex w-full flex-col", noValidate: !0, children: [
1425
+ f,
1426
+ b,
1427
+ g,
1428
+ v,
1429
+ y,
1430
+ N
1431
+ ] }), e[21] = d, e[22] = f, e[23] = b, e[24] = g, e[25] = y, e[26] = N, e[27] = S) : S = e[27], S;
1432
+ }
1433
+ function gn(n) {
1434
+ const e = _.c(21), {
1435
+ mode: t,
1436
+ title: l,
1437
+ recipientDisplay: i,
1438
+ isForeignUser: o,
1439
+ onSubmit: r,
1440
+ onResendCode: s,
1441
+ submitApi: a,
1442
+ onSuccess: c,
1443
+ onError: u,
1444
+ validate: h
1445
+ } = n, d = o === void 0 ? !1 : o;
1446
+ let f;
1447
+ e[0] !== t || e[1] !== u || e[2] !== s || e[3] !== r || e[4] !== c || e[5] !== a || e[6] !== h ? (f = {
1448
+ mode: t,
1449
+ onSubmit: r,
1450
+ onResendCode: s,
1451
+ submitApi: a,
1452
+ onSuccess: c,
1453
+ onError: u,
1454
+ validate: h
1455
+ }, e[0] = t, e[1] = u, e[2] = s, e[3] = r, e[4] = c, e[5] = a, e[6] = h, e[7] = f) : f = e[7];
1456
+ const {
1457
+ methods: p,
1458
+ handleSubmit: b,
1459
+ handleResend: g,
1460
+ canResend: v,
1461
+ timerText: y,
1462
+ isSubmitting: C
1463
+ } = rn(f), N = l ?? on[t];
1464
+ let S;
1465
+ e[8] !== v || e[9] !== N || e[10] !== g || e[11] !== b || e[12] !== d || e[13] !== C || e[14] !== t || e[15] !== i || e[16] !== y ? (S = /* @__PURE__ */ m(hn, { mode: t, title: N, recipientDisplay: i, isForeignUser: d, handleSubmit: b, handleResend: g, canResend: v, timerText: y, isSubmitting: C }), e[8] = v, e[9] = N, e[10] = g, e[11] = b, e[12] = d, e[13] = C, e[14] = t, e[15] = i, e[16] = y, e[17] = S) : S = e[17];
1466
+ let x;
1467
+ return e[18] !== p || e[19] !== S ? (x = /* @__PURE__ */ m(Ce, { ...p, children: S }), e[18] = p, e[19] = S, e[20] = x) : x = e[20], x;
1468
+ }
1469
+ function An(n) {
1470
+ const e = _.c(24);
1471
+ let t, l, i, o;
1472
+ e[0] !== n ? ({
1473
+ layoutType: i,
1474
+ variant: o,
1475
+ onBack: l,
1476
+ ...t
1477
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = i, e[4] = o) : (t = e[1], l = e[2], i = e[3], o = e[4]);
1478
+ const r = i === void 0 ? "withSlider" : i;
1479
+ let s;
1480
+ e[5] !== l ? (s = l != null ? /* @__PURE__ */ m(Se, { onClick: l }) : void 0, e[5] = l, e[6] = s) : s = e[6];
1481
+ let a;
1482
+ e[7] !== t.isForeignUser || e[8] !== t.mode || e[9] !== t.onError || e[10] !== t.onResendCode || e[11] !== t.onSubmit || e[12] !== t.onSuccess || e[13] !== t.recipientDisplay || e[14] !== t.submitApi || e[15] !== t.title || e[16] !== t.validate || e[17] !== l ? (a = /* @__PURE__ */ m(gn, { mode: t.mode, recipientDisplay: t.recipientDisplay, title: t.title, isForeignUser: t.isForeignUser, onBack: l, onSubmit: t.onSubmit, onResendCode: t.onResendCode, submitApi: t.submitApi, onSuccess: t.onSuccess, onError: t.onError, validate: t.validate }), e[7] = t.isForeignUser, e[8] = t.mode, e[9] = t.onError, e[10] = t.onResendCode, e[11] = t.onSubmit, e[12] = t.onSuccess, e[13] = t.recipientDisplay, e[14] = t.submitApi, e[15] = t.title, e[16] = t.validate, e[17] = l, e[18] = a) : a = e[18];
1483
+ let c;
1484
+ return e[19] !== r || e[20] !== s || e[21] !== a || e[22] !== o ? (c = /* @__PURE__ */ m(ie, { layoutType: r, variant: o, contentWidth: "sm", align: "left", backButton: s, className: je, children: a }), e[19] = r, e[20] = s, e[21] = a, e[22] = o, e[23] = c) : c = e[23], c;
1485
+ }
1486
+ function pn(n) {
1487
+ const e = _.c(21);
1488
+ let t, l;
1489
+ e[0] !== n ? ({
1490
+ onUseAnotherMethod: l,
1491
+ ...t
1492
+ } = n, e[0] = n, e[1] = t, e[2] = l) : (t = e[1], l = e[2]);
1493
+ let i;
1494
+ e[3] !== t.continueApi || e[4] !== t.lastUsedMethod || e[5] !== t.onContinueWithLastMethod || e[6] !== t.onError || e[7] !== t.onSuccess ? (i = {
1495
+ lastUsedMethod: t.lastUsedMethod,
1496
+ onContinueWithLastMethod: t.onContinueWithLastMethod,
1497
+ continueApi: t.continueApi,
1498
+ onSuccess: t.onSuccess,
1499
+ onError: t.onError
1500
+ }, e[3] = t.continueApi, e[4] = t.lastUsedMethod, e[5] = t.onContinueWithLastMethod, e[6] = t.onError, e[7] = t.onSuccess, e[8] = i) : i = e[8];
1501
+ const {
1502
+ handleContinue: o,
1503
+ isSubmitting: r,
1504
+ lastUsedMethod: s
1505
+ } = dn(i), a = r ? "Continuing…" : `Continue with ${s}`;
1506
+ let c;
1507
+ e[9] !== a ? (c = /* @__PURE__ */ m(R, { variant: "textLabel1", weight: "semiBold", align: "center", className: "text-neutral-white", children: a }), e[9] = a, e[10] = c) : c = e[10];
1508
+ let u;
1509
+ e[11] !== o || e[12] !== r || e[13] !== c ? (u = /* @__PURE__ */ m(B, { variant: "primary", size: "large", fullWidth: !0, onClick: o, disabled: r, children: c }), e[11] = o, e[12] = r, e[13] = c, e[14] = u) : u = e[14];
1510
+ let h;
1511
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ m(R, { variant: "textLabel1", weight: "semiBold", align: "center", className: "opacity-80", children: "Use another method" }), e[15] = h) : h = e[15];
1512
+ let d;
1513
+ e[16] !== l ? (d = /* @__PURE__ */ m(B, { variant: "outline", size: "large", fullWidth: !0, onClick: l, children: h }), e[16] = l, e[17] = d) : d = e[17];
1514
+ let f;
1515
+ return e[18] !== u || e[19] !== d ? (f = /* @__PURE__ */ k("div", { className: "w-full flex flex-col gap-[12px]", children: [
1516
+ u,
1517
+ d
1518
+ ] }), e[18] = u, e[19] = d, e[20] = f) : f = e[20], f;
1519
+ }
1520
+ function On(n) {
1521
+ const e = _.c(18), {
1522
+ lastUsedMethod: t,
1523
+ onContinueWithLastMethod: l,
1524
+ onUseAnotherMethod: i,
1525
+ continueApi: o,
1526
+ onSuccess: r,
1527
+ onError: s,
1528
+ layoutType: a,
1529
+ variant: c
1530
+ } = n, u = t === void 0 ? "Mobile" : t, h = a === void 0 ? "withSlider" : a, d = c === "mobile" || h === "standalone";
1531
+ let f;
1532
+ e[0] !== d ? (f = d ? /* @__PURE__ */ m(R, { variant: "title1", weight: "bold", align: "center", className: "text-primary", children: "Welcome Back!" }) : /* @__PURE__ */ k(R, { variant: "h6", weight: "extraBold", align: "left", className: "text-neutral-black", children: [
1533
+ " ",
1534
+ "Welcome Back!",
1535
+ " "
1536
+ ] }), e[0] = d, e[1] = f) : f = e[1];
1537
+ let p;
1538
+ e[2] !== u ? (p = /* @__PURE__ */ k(R, { variant: "body1", align: "center", className: "text-neutral-black", children: [
1539
+ "Last time you used ",
1540
+ u,
1541
+ " to log in."
1542
+ ] }), e[2] = u, e[3] = p) : p = e[3];
1543
+ let b;
1544
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ m(Be, {}), e[4] = b) : b = e[4];
1545
+ let g;
1546
+ e[5] !== o || e[6] !== u || e[7] !== l || e[8] !== s || e[9] !== r || e[10] !== i ? (g = /* @__PURE__ */ m(pn, { lastUsedMethod: u, onContinueWithLastMethod: l, onUseAnotherMethod: i, continueApi: o, onSuccess: r, onError: s }), e[5] = o, e[6] = u, e[7] = l, e[8] = s, e[9] = r, e[10] = i, e[11] = g) : g = e[11];
1547
+ let v;
1548
+ return e[12] !== h || e[13] !== f || e[14] !== p || e[15] !== g || e[16] !== c ? (v = /* @__PURE__ */ m(ie, { layoutType: h, variant: c, logo: Me, title: f, description: p, footer: b, children: g }), e[12] = h, e[13] = f, e[14] = p, e[15] = g, e[16] = c, e[17] = v) : v = e[17], v;
1549
+ }
1550
+ function bn(n) {
1551
+ const e = _.c(16), {
1552
+ isPhone: t,
1553
+ isForeign: l,
1554
+ handleSubmit: i,
1555
+ isSubmitting: o
1556
+ } = n, r = ne();
1557
+ let s;
1558
+ e[0] !== i || e[1] !== r ? (s = r.handleSubmit(i), e[0] = i, e[1] = r, e[2] = s) : s = e[2];
1559
+ let a;
1560
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ m(ue, { name: "fullName", label: "Full name", placeholder: "Full name", type: "text", className: "w-full", autoFocus: !0 }), e[3] = a) : a = e[3];
1561
+ let c;
1562
+ e[4] !== l || e[5] !== t ? (c = /* @__PURE__ */ k("div", { className: "mb-6 flex w-full flex-col gap-[12px]", children: [
1563
+ a,
1564
+ l ? /* @__PURE__ */ k($e, { children: [
1565
+ /* @__PURE__ */ m(ue, { name: "email", label: "Email address", placeholder: "Email address", type: "email", className: "w-full" }),
1566
+ /* @__PURE__ */ m(be, { name: "phone", label: "Phone number", placeholder: "Phone number", countryCode: "+91", countryCodeName: "countryCode", required: !0, defaultCountry: "IN" })
1567
+ ] }) : t ? /* @__PURE__ */ m(be, { name: "phone", label: "Phone number", placeholder: "Phone number", countryCode: "+91", countryCodeName: "countryCode", required: !0, defaultCountry: "IN" }) : /* @__PURE__ */ m(ue, { name: "email", label: "Email address", placeholder: "Email address", type: "email", className: "w-full" })
1568
+ ] }), e[4] = l, e[5] = t, e[6] = c) : c = e[6];
1569
+ let u;
1570
+ e[7] !== o ? (u = o ? /* @__PURE__ */ m(ve, { size: 32, strokeWidth: 2 }) : "Continue", e[7] = o, e[8] = u) : u = e[8];
1571
+ let h;
1572
+ e[9] !== o || e[10] !== u ? (h = /* @__PURE__ */ m(B, { type: "submit", variant: "primary", size: "large", fullWidth: !0, disabled: o, children: u }), e[9] = o, e[10] = u, e[11] = h) : h = e[11];
1573
+ let d;
1574
+ return e[12] !== s || e[13] !== c || e[14] !== h ? (d = /* @__PURE__ */ k("form", { onSubmit: s, className: "w-full flex flex-col items-center", noValidate: !0, children: [
1575
+ c,
1576
+ h
1577
+ ] }), e[12] = s, e[13] = c, e[14] = h, e[15] = d) : d = e[15], d;
1578
+ }
1579
+ function vn(n) {
1580
+ const e = _.c(15), {
1581
+ userType: t,
1582
+ signupCollectField: l,
1583
+ pendingPhone: i,
1584
+ onSubmit: o,
1585
+ submitApi: r,
1586
+ onSuccess: s,
1587
+ onError: a
1588
+ } = n, c = i === void 0 ? "" : i, u = t === "FOREIGN" ? "foreign" : l === "phone" ? "phone" : "email";
1589
+ let h;
1590
+ e[0] !== u || e[1] !== a || e[2] !== o || e[3] !== s || e[4] !== c || e[5] !== r ? (h = {
1591
+ mode: u,
1592
+ defaultPhone: c,
1593
+ onSubmit: o,
1594
+ submitApi: r,
1595
+ onSuccess: s,
1596
+ onError: a
1597
+ }, e[0] = u, e[1] = a, e[2] = o, e[3] = s, e[4] = c, e[5] = r, e[6] = h) : h = e[6];
1598
+ const {
1599
+ methods: d,
1600
+ handleSubmit: f,
1601
+ isPhone: p,
1602
+ isForeign: b,
1603
+ isSubmitting: g
1604
+ } = fn(h);
1605
+ let v;
1606
+ e[7] !== f || e[8] !== b || e[9] !== p || e[10] !== g ? (v = /* @__PURE__ */ m(bn, { isPhone: p, isForeign: b, handleSubmit: f, isSubmitting: g }), e[7] = f, e[8] = b, e[9] = p, e[10] = g, e[11] = v) : v = e[11];
1607
+ let y;
1608
+ return e[12] !== d || e[13] !== v ? (y = /* @__PURE__ */ m(Ce, { ...d, children: v }), e[12] = d, e[13] = v, e[14] = y) : y = e[14], y;
1609
+ }
1610
+ function Tn(n) {
1611
+ const e = _.c(21), {
1612
+ layoutType: t,
1613
+ variant: l
1614
+ } = n, i = t === void 0 ? "standalone" : t, o = l === void 0 ? "mobile" : l;
1615
+ let r;
1616
+ e[0] !== n.loginMethod || e[1] !== n.onError || e[2] !== n.onSubmit || e[3] !== n.onSuccess || e[4] !== n.pendingPhone || e[5] !== n.signupCollectField || e[6] !== n.submitApi || e[7] !== n.userType ? (r = {
1617
+ userType: n.userType,
1618
+ loginMethod: n.loginMethod,
1619
+ signupCollectField: n.signupCollectField,
1620
+ pendingPhone: n.pendingPhone,
1621
+ onSubmit: n.onSubmit,
1622
+ submitApi: n.submitApi,
1623
+ onSuccess: n.onSuccess,
1624
+ onError: n.onError
1625
+ }, e[0] = n.loginMethod, e[1] = n.onError, e[2] = n.onSubmit, e[3] = n.onSuccess, e[4] = n.pendingPhone, e[5] = n.signupCollectField, e[6] = n.submitApi, e[7] = n.userType, e[8] = r) : r = e[8];
1626
+ const s = r;
1627
+ let a;
1628
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ m("img", { src: at, alt: "Docthub Logo", width: 46, height: 46 }), e[9] = a) : a = e[9];
1629
+ const c = a;
1630
+ let u;
1631
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ m(R, { variant: "h5", weight: "extraBold", align: "center", className: "text-neutral-black", children: "Welcome to Docthub" }), e[10] = u) : u = e[10];
1632
+ const h = u, d = n.userType === "FOREIGN" ? "email" : n.signupCollectField;
1633
+ let f;
1634
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ m("span", { className: "font-bold", children: "Full Name" }), e[11] = f) : f = e[11];
1635
+ const p = d === "phone" ? "Phone Number" : "Email Address";
1636
+ let b;
1637
+ e[12] !== p ? (b = /* @__PURE__ */ k(R, { variant: "title2", align: "center", children: [
1638
+ "Please tell us your ",
1639
+ f,
1640
+ " and",
1641
+ " ",
1642
+ /* @__PURE__ */ m("span", { className: "font-bold", children: p }),
1643
+ " ",
1644
+ "for extended security of your account."
1645
+ ] }), e[12] = p, e[13] = b) : b = e[13];
1646
+ const g = b;
1647
+ let v;
1648
+ e[14] !== s ? (v = /* @__PURE__ */ m(vn, { ...s }), e[14] = s, e[15] = v) : v = e[15];
1649
+ let y;
1650
+ return e[16] !== g || e[17] !== i || e[18] !== v || e[19] !== o ? (y = /* @__PURE__ */ m(ie, { layoutType: i, variant: o, contentWidth: "sm", logo: c, title: h, description: g, children: v }), e[16] = g, e[17] = i, e[18] = v, e[19] = o, e[20] = y) : y = e[20], y;
1651
+ }
1652
+ export {
1653
+ ie as A,
1654
+ Se as B,
1655
+ on as D,
1656
+ ft as E,
1657
+ xt as I,
1658
+ Bt as L,
1659
+ En as M,
1660
+ gn as O,
1661
+ pn as R,
1662
+ vn as S,
1663
+ _n as a,
1664
+ Pn as b,
1665
+ An as c,
1666
+ On as d,
1667
+ Tn as e,
1668
+ _ as f,
1669
+ H as g,
1670
+ _t as h,
1671
+ Tt as i,
1672
+ Be as j,
1673
+ wt as k,
1674
+ fe as l,
1675
+ $t as m,
1676
+ Wt as n,
1677
+ Ut as o,
1678
+ Je as p,
1679
+ rn as q,
1680
+ dn as r,
1681
+ fn as s,
1682
+ At as u
1683
+ };