doct-ui-auth-kit 1.0.24 → 1.0.25

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