doct-ui-auth-kit 1.0.21 → 1.0.22
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.
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as u, jsxs as R, Fragment as fe } from "react/jsx-runtime";
|
|
3
|
-
import K, { createContext as
|
|
4
|
-
import { DoctButton as B, DoctTypography as O, DoctCircularProgress as be, DoctPhoneInput as
|
|
5
|
-
import { MdArrowBack as
|
|
6
|
-
import { useFormContext as
|
|
3
|
+
import K, { createContext as lt, useContext as it, useState as Y, useEffect as J, useRef as le } from "react";
|
|
4
|
+
import { DoctButton as B, DoctTypography as O, DoctCircularProgress as be, DoctPhoneInput as ot, DoctLabeledInput as rt, DoctOtpInput as st } from "docthub-core-components";
|
|
5
|
+
import { MdArrowBack as at, MdChevronRight as ct } from "react-icons/md";
|
|
6
|
+
import { useFormContext as ie, Controller as me, useForm as we, FormProvider as Ne } from "react-hook-form";
|
|
7
7
|
import { z as j } from "zod";
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
if (
|
|
12
|
-
|
|
8
|
+
var ce = { exports: {} }, ye = {};
|
|
9
|
+
var ke;
|
|
10
|
+
function ut() {
|
|
11
|
+
if (ke) return ye;
|
|
12
|
+
ke = 1;
|
|
13
13
|
var n = K.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
14
|
-
return
|
|
14
|
+
return ye.c = function(e) {
|
|
15
15
|
return n.H.useMemoCache(e);
|
|
16
|
-
},
|
|
16
|
+
}, ye;
|
|
17
17
|
}
|
|
18
18
|
var Ce = {};
|
|
19
|
-
var
|
|
20
|
-
function
|
|
21
|
-
return
|
|
19
|
+
var De;
|
|
20
|
+
function dt() {
|
|
21
|
+
return De || (De = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
22
|
var n = K.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
23
23
|
Ce.c = function(e) {
|
|
24
24
|
var t = n.H;
|
|
@@ -32,30 +32,30 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
32
32
|
};
|
|
33
33
|
})()), Ce;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
36
|
-
function
|
|
37
|
-
return
|
|
35
|
+
var $e;
|
|
36
|
+
function ft() {
|
|
37
|
+
return $e || ($e = 1, process.env.NODE_ENV === "production" ? ce.exports = ut() : ce.exports = dt()), ce.exports;
|
|
38
38
|
}
|
|
39
|
-
var E =
|
|
40
|
-
const
|
|
41
|
-
function
|
|
39
|
+
var E = ft();
|
|
40
|
+
const Ve = "/main-logo.svg", mt = "/docthub.svg", Ge = ["/slider/slide-1.png", "/slider/slide-2.png", "/slider/slide-3.png", "/slider/slide-4.png", "/slider/slide-5.png"], ht = 5e3, Ee = "[&_main]:!justify-start [&_main]:!pt-5 md:[&_main]:!pt-[104px]";
|
|
41
|
+
function ve(n) {
|
|
42
42
|
const e = E.c(4), {
|
|
43
43
|
onClick: t,
|
|
44
44
|
ariaLabel: l
|
|
45
45
|
} = n, i = l === void 0 ? "Go back" : l;
|
|
46
46
|
let o;
|
|
47
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ u(
|
|
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
48
|
let r;
|
|
49
49
|
return e[1] !== i || e[2] !== t ? (r = /* @__PURE__ */ u(B, { icon: o, iconOnly: !0, onClick: t, size: "medium", variant: "outline", "aria-label": i, className: "mb-4 md:mb-6 h-10 w-10" }), e[1] = i, e[2] = t, e[3] = r) : r = e[3], r;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function gt() {
|
|
52
52
|
const n = typeof window < "u" ? window.location.hostname : "";
|
|
53
53
|
return n.endsWith(".com") || n.includes(".com:") ? "https://www.dochub.com" : "https://dev.dochub.in/";
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function He() {
|
|
56
56
|
const n = E.c(4);
|
|
57
57
|
let e;
|
|
58
|
-
n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e =
|
|
58
|
+
n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = gt(), n[0] = e) : e = n[0];
|
|
59
59
|
const t = e;
|
|
60
60
|
let l, i;
|
|
61
61
|
n[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ u("br", {}), i = /* @__PURE__ */ u("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]);
|
|
@@ -70,15 +70,15 @@ function Ge() {
|
|
|
70
70
|
/* @__PURE__ */ u("a", { href: `${t}/privacy-policy`, className: "font-semibold text-neutral-black underline", children: "Privacy Policy." })
|
|
71
71
|
] }), n[3] = o) : o = n[3], o;
|
|
72
72
|
}
|
|
73
|
-
const
|
|
74
|
-
function
|
|
73
|
+
const pt = "https://docthub.com/";
|
|
74
|
+
function bt(n) {
|
|
75
75
|
const e = E.c(8);
|
|
76
76
|
let t;
|
|
77
77
|
e[0] !== n ? (t = n === void 0 ? {} : n, e[0] = n, e[1] = t) : t = e[1];
|
|
78
78
|
const {
|
|
79
79
|
onClick: l,
|
|
80
80
|
href: i
|
|
81
|
-
} = t, o = i === void 0 ?
|
|
81
|
+
} = t, o = i === void 0 ? pt : i;
|
|
82
82
|
let r;
|
|
83
83
|
e[2] !== o || e[3] !== l ? (r = () => {
|
|
84
84
|
if (l) {
|
|
@@ -89,34 +89,34 @@ function pt(n) {
|
|
|
89
89
|
}, e[2] = o, e[3] = l, e[4] = r) : r = e[4];
|
|
90
90
|
const s = r;
|
|
91
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(
|
|
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
93
|
let c;
|
|
94
94
|
return e[6] !== s ? (c = /* @__PURE__ */ u(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
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function qe(n) {
|
|
97
97
|
var e, t, l = "";
|
|
98
98
|
if (typeof n == "string" || typeof n == "number") l += n;
|
|
99
99
|
else if (typeof n == "object") if (Array.isArray(n)) {
|
|
100
100
|
var i = n.length;
|
|
101
|
-
for (e = 0; e < i; e++) n[e] && (t =
|
|
101
|
+
for (e = 0; e < i; e++) n[e] && (t = qe(n[e])) && (l && (l += " "), l += t);
|
|
102
102
|
} else for (t in n) n[t] && (l && (l += " "), l += t);
|
|
103
103
|
return l;
|
|
104
104
|
}
|
|
105
105
|
function k() {
|
|
106
|
-
for (var n, e, t = 0, l = "", i = arguments.length; t < i; t++) (n = arguments[t]) && (e =
|
|
106
|
+
for (var n, e, t = 0, l = "", i = arguments.length; t < i; t++) (n = arguments[t]) && (e = qe(n)) && (l && (l += " "), l += e);
|
|
107
107
|
return l;
|
|
108
108
|
}
|
|
109
|
-
const
|
|
110
|
-
function
|
|
111
|
-
const n =
|
|
109
|
+
const Ke = lt(null);
|
|
110
|
+
function _e() {
|
|
111
|
+
const n = it(Ke);
|
|
112
112
|
if (!n)
|
|
113
113
|
throw new Error("AuthLayout compound components must be used within AuthLayout.Root");
|
|
114
114
|
return n;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function vt(n, e) {
|
|
117
117
|
return e === "md" ? "max-w-md" : e === "lg" ? "max-w-lg" : n === "desktop" ? "max-w-[320px]" : "max-w-[360px]";
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Pe(n = "center") {
|
|
120
120
|
switch (n) {
|
|
121
121
|
case "left":
|
|
122
122
|
return {
|
|
@@ -135,7 +135,7 @@ function _e(n = "center") {
|
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
const
|
|
138
|
+
const Ae = "flex w-full mb-4 md:mb-4";
|
|
139
139
|
function yt(n) {
|
|
140
140
|
const e = E.c(15), {
|
|
141
141
|
children: t,
|
|
@@ -144,7 +144,7 @@ function yt(n) {
|
|
|
144
144
|
className: o
|
|
145
145
|
} = n, r = l === void 0 ? "mobile" : l, s = i === void 0 ? "sm" : i;
|
|
146
146
|
let a;
|
|
147
|
-
e[0] !== s || e[1] !== r ? (a =
|
|
147
|
+
e[0] !== s || e[1] !== r ? (a = vt(r, s), e[0] = s, e[1] = r, e[2] = a) : a = e[2];
|
|
148
148
|
const c = a;
|
|
149
149
|
let f;
|
|
150
150
|
e[3] !== s || e[4] !== c || e[5] !== r ? (f = {
|
|
@@ -158,15 +158,15 @@ function yt(n) {
|
|
|
158
158
|
let m;
|
|
159
159
|
e[9] !== t || e[10] !== d ? (m = /* @__PURE__ */ u("div", { className: d, children: t }), e[9] = t, e[10] = d, e[11] = m) : m = e[11];
|
|
160
160
|
let p;
|
|
161
|
-
return e[12] !== h || e[13] !== m ? (p = /* @__PURE__ */ u(
|
|
161
|
+
return e[12] !== h || e[13] !== m ? (p = /* @__PURE__ */ u(Ke.Provider, { value: h, children: m }), e[12] = h, e[13] = m, e[14] = p) : p = e[14], p;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Ct(n) {
|
|
164
164
|
const e = E.c(12), {
|
|
165
165
|
children: t,
|
|
166
166
|
className: l
|
|
167
167
|
} = n, {
|
|
168
168
|
variant: i
|
|
169
|
-
} =
|
|
169
|
+
} = _e();
|
|
170
170
|
if (i === "desktop") {
|
|
171
171
|
let s;
|
|
172
172
|
e[0] !== l ? (s = k("flex justify-end px-5 pt-5", l), e[0] = l, e[1] = s) : s = e[1];
|
|
@@ -180,7 +180,7 @@ function vt(n) {
|
|
|
180
180
|
let r;
|
|
181
181
|
return e[9] !== t || e[10] !== o ? (r = /* @__PURE__ */ u("div", { className: o, children: t }), e[9] = t, e[10] = o, e[11] = r) : r = e[11], r;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function St(n) {
|
|
184
184
|
const e = E.c(6), {
|
|
185
185
|
children: t,
|
|
186
186
|
align: l,
|
|
@@ -190,14 +190,14 @@ function Ct(n) {
|
|
|
190
190
|
if (e[0] !== o || e[1] !== i) {
|
|
191
191
|
const {
|
|
192
192
|
flex: a
|
|
193
|
-
} =
|
|
194
|
-
r = k(
|
|
193
|
+
} = Pe(o);
|
|
194
|
+
r = k(Ae, a, i), e[0] = o, e[1] = i, e[2] = r;
|
|
195
195
|
} else
|
|
196
196
|
r = e[2];
|
|
197
197
|
let s;
|
|
198
198
|
return e[3] !== t || e[4] !== r ? (s = /* @__PURE__ */ u("div", { className: r, children: t }), e[3] = t, e[4] = r, e[5] = s) : s = e[5], s;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function xt(n) {
|
|
201
201
|
const e = E.c(6), {
|
|
202
202
|
children: t,
|
|
203
203
|
align: l,
|
|
@@ -208,14 +208,14 @@ function St(n) {
|
|
|
208
208
|
const {
|
|
209
209
|
flex: a,
|
|
210
210
|
text: c
|
|
211
|
-
} =
|
|
212
|
-
r = k(
|
|
211
|
+
} = Pe(o);
|
|
212
|
+
r = k(Ae, a, c, i), e[0] = o, e[1] = i, e[2] = r;
|
|
213
213
|
} else
|
|
214
214
|
r = e[2];
|
|
215
215
|
let s;
|
|
216
216
|
return e[3] !== t || e[4] !== r ? (s = /* @__PURE__ */ u("div", { className: r, children: t }), e[3] = t, e[4] = r, e[5] = s) : s = e[5], s;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function wt(n) {
|
|
219
219
|
const e = E.c(6), {
|
|
220
220
|
children: t,
|
|
221
221
|
align: l,
|
|
@@ -226,14 +226,14 @@ function xt(n) {
|
|
|
226
226
|
const {
|
|
227
227
|
flex: a,
|
|
228
228
|
text: c
|
|
229
|
-
} =
|
|
230
|
-
r = k(
|
|
229
|
+
} = Pe(o);
|
|
230
|
+
r = k(Ae, a, c, i), e[0] = o, e[1] = i, e[2] = r;
|
|
231
231
|
} else
|
|
232
232
|
r = e[2];
|
|
233
233
|
let s;
|
|
234
234
|
return e[3] !== t || e[4] !== r ? (s = /* @__PURE__ */ u("div", { className: r, children: t }), e[3] = t, e[4] = r, e[5] = s) : s = e[5], s;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Nt(n) {
|
|
237
237
|
const e = E.c(5), {
|
|
238
238
|
children: t,
|
|
239
239
|
className: l
|
|
@@ -243,14 +243,14 @@ function wt(n) {
|
|
|
243
243
|
let o;
|
|
244
244
|
return e[2] !== t || e[3] !== i ? (o = /* @__PURE__ */ u("div", { className: i, children: t }), e[2] = t, e[3] = i, e[4] = o) : o = e[4], o;
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Et(n) {
|
|
247
247
|
const e = E.c(10), {
|
|
248
248
|
children: t,
|
|
249
249
|
sm: l,
|
|
250
250
|
className: i
|
|
251
251
|
} = n, {
|
|
252
252
|
maxWidthClass: o
|
|
253
|
-
} =
|
|
253
|
+
} = _e();
|
|
254
254
|
let r;
|
|
255
255
|
e[0] !== i ? (r = k("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
256
|
const s = l ? "max-w-[320px]" : o;
|
|
@@ -261,13 +261,13 @@ function Nt(n) {
|
|
|
261
261
|
let f;
|
|
262
262
|
return e[7] !== r || e[8] !== c ? (f = /* @__PURE__ */ u("main", { className: r, children: c }), e[7] = r, e[8] = c, e[9] = f) : f = e[9], f;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function _t(n) {
|
|
265
265
|
const e = E.c(10), {
|
|
266
266
|
children: t,
|
|
267
267
|
className: l
|
|
268
268
|
} = n, {
|
|
269
269
|
maxWidthClass: i
|
|
270
|
-
} =
|
|
270
|
+
} = _e();
|
|
271
271
|
let o;
|
|
272
272
|
e[0] !== l ? (o = k("px-5 py-6 md:py-8 w-full flex justify-center", l), e[0] = l, e[1] = o) : o = e[1];
|
|
273
273
|
let r;
|
|
@@ -279,15 +279,15 @@ function Et(n) {
|
|
|
279
279
|
}
|
|
280
280
|
const q = {
|
|
281
281
|
Root: yt,
|
|
282
|
-
Header:
|
|
283
|
-
Main:
|
|
284
|
-
Logo:
|
|
285
|
-
Title:
|
|
286
|
-
Description:
|
|
287
|
-
Body:
|
|
288
|
-
Footer:
|
|
282
|
+
Header: Ct,
|
|
283
|
+
Main: Et,
|
|
284
|
+
Logo: St,
|
|
285
|
+
Title: xt,
|
|
286
|
+
Description: wt,
|
|
287
|
+
Body: Nt,
|
|
288
|
+
Footer: _t
|
|
289
289
|
};
|
|
290
|
-
function
|
|
290
|
+
function Pt(n) {
|
|
291
291
|
const e = E.c(38), {
|
|
292
292
|
images: t,
|
|
293
293
|
autoPlayInterval: l,
|
|
@@ -307,15 +307,15 @@ function _t(n) {
|
|
|
307
307
|
return () => clearInterval(A);
|
|
308
308
|
}
|
|
309
309
|
}, b = [c, t.length, m, d, r], e[0] = c, e[1] = m, e[2] = t.length, e[3] = d, e[4] = r, e[5] = p, e[6] = b) : (p = e[5], b = e[6]), J(p, b);
|
|
310
|
-
let g,
|
|
310
|
+
let g, v;
|
|
311
311
|
e[7] !== t.length || e[8] !== d || e[9] !== r ? (g = () => {
|
|
312
312
|
!d && t.length > 0 && r?.(0);
|
|
313
|
-
},
|
|
314
|
-
let
|
|
315
|
-
e[12] !== d || e[13] !== a || e[14] !== r ? (
|
|
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]), J(g, v);
|
|
314
|
+
let y;
|
|
315
|
+
e[12] !== d || e[13] !== a || e[14] !== r ? (y = (A) => {
|
|
316
316
|
d ? (a?.(A), r?.(A)) : (h(A), r?.(A));
|
|
317
|
-
}, e[12] = d, e[13] = a, e[14] = r, e[15] =
|
|
318
|
-
const C =
|
|
317
|
+
}, e[12] = d, e[13] = a, e[14] = r, e[15] = y) : y = e[15];
|
|
318
|
+
const C = y;
|
|
319
319
|
if (t.length === 0)
|
|
320
320
|
return null;
|
|
321
321
|
const w = t.length;
|
|
@@ -345,7 +345,7 @@ function _t(n) {
|
|
|
345
345
|
D
|
|
346
346
|
] }), e[34] = T, e[35] = D, e[36] = S, e[37] = W) : W = e[37], W;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function At(n) {
|
|
349
349
|
const e = E.c(20), {
|
|
350
350
|
sliderImages: t,
|
|
351
351
|
sliderAutoPlayInterval: l,
|
|
@@ -363,11 +363,11 @@ function Pt(n) {
|
|
|
363
363
|
let h;
|
|
364
364
|
e[2] !== a ? (h = k("relative w-full h-[100dvh] transition-colors duration-500", a), e[2] = a, e[3] = h) : h = e[3];
|
|
365
365
|
let d;
|
|
366
|
-
e[4] !== i || e[5] !== o || e[6] !== t ? (d = t.length > 1 && /* @__PURE__ */ u("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,
|
|
366
|
+
e[4] !== i || e[5] !== o || e[6] !== t ? (d = t.length > 1 && /* @__PURE__ */ u("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__ */ u("button", { type: "button", onClick: () => o(v), "aria-label": `Go to slide ${v + 1}`, "aria-current": v === i ? "true" : void 0, className: k("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
367
|
let m;
|
|
368
368
|
e[8] !== f ? (m = f != null && /* @__PURE__ */ u("div", { className: k("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: f }), e[8] = f, e[9] = m) : m = e[9];
|
|
369
369
|
let p;
|
|
370
|
-
e[10] !== i || e[11] !== o || e[12] !== l || e[13] !== t ? (p = /* @__PURE__ */ u("div", { className: "absolute inset-0", children: t.length > 0 ? /* @__PURE__ */ u(
|
|
370
|
+
e[10] !== i || e[11] !== o || e[12] !== l || e[13] !== t ? (p = /* @__PURE__ */ u("div", { className: "absolute inset-0", children: t.length > 0 ? /* @__PURE__ */ u(Pt, { images: t, autoPlayInterval: l, className: "h-full w-full", hideIndicators: !0, activeIndex: i, 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(O, { 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
371
|
let b;
|
|
372
372
|
return e[15] !== h || e[16] !== d || e[17] !== m || e[18] !== p ? (b = /* @__PURE__ */ R("div", { className: h, children: [
|
|
373
373
|
d,
|
|
@@ -375,7 +375,7 @@ function Pt(n) {
|
|
|
375
375
|
p
|
|
376
376
|
] }), e[15] = h, e[16] = d, e[17] = m, e[18] = p, e[19] = b) : b = e[19], b;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function Ot(n) {
|
|
379
379
|
const e = E.c(22), {
|
|
380
380
|
sliderImages: t,
|
|
381
381
|
sliderAutoPlayInterval: l,
|
|
@@ -385,7 +385,7 @@ function At(n) {
|
|
|
385
385
|
marketingClassName: s,
|
|
386
386
|
contentClassName: a,
|
|
387
387
|
children: c
|
|
388
|
-
} = n, f = l === void 0 ? 5e3 : l, [h, d] = Y(0), m = t ??
|
|
388
|
+
} = n, f = l === void 0 ? 5e3 : l, [h, d] = Y(0), m = t ?? Ge;
|
|
389
389
|
let p;
|
|
390
390
|
e[0] !== r ? (p = k("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
391
|
let b;
|
|
@@ -393,20 +393,20 @@ function At(n) {
|
|
|
393
393
|
className: s
|
|
394
394
|
}, e[2] = s, e[3] = b) : b = e[3];
|
|
395
395
|
let g;
|
|
396
|
-
e[4] !== h || e[5] !== i || e[6] !== m || e[7] !== f || e[8] !== o || e[9] !== b ? (g = /* @__PURE__ */ u("div", { className: "hidden lg:block lg:w-[432px] lg:h-[100dvh] lg:flex-shrink-0 lg:flex-grow-0", children: /* @__PURE__ */ u(
|
|
397
|
-
let y;
|
|
398
|
-
e[11] !== a ? (y = k("flex-1 min-w-0 flex flex-col overflow-x-hidden", a), e[11] = a, e[12] = y) : y = e[12];
|
|
396
|
+
e[4] !== h || e[5] !== i || e[6] !== m || e[7] !== f || e[8] !== o || e[9] !== b ? (g = /* @__PURE__ */ u("div", { className: "hidden lg:block lg:w-[432px] lg:h-[100dvh] lg:flex-shrink-0 lg:flex-grow-0", children: /* @__PURE__ */ u(At, { sliderImages: m, sliderAutoPlayInterval: f, activeSlideIndex: h, onSlideChange: d, ctaText: i, sliderTitles: o, ...b }) }), e[4] = h, e[5] = i, e[6] = m, e[7] = f, e[8] = o, e[9] = b, e[10] = g) : g = e[10];
|
|
399
397
|
let v;
|
|
400
|
-
e[
|
|
398
|
+
e[11] !== a ? (v = k("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__ */ u("div", { className: v, children: c }), e[13] = c, e[14] = v, e[15] = y) : y = e[15];
|
|
401
401
|
let C;
|
|
402
|
-
e[16] !== g || e[17] !==
|
|
402
|
+
e[16] !== g || e[17] !== y ? (C = /* @__PURE__ */ R("div", { className: "flex w-full h-full min-h-svh flex-col lg:flex-row", children: [
|
|
403
403
|
g,
|
|
404
|
-
|
|
405
|
-
] }), e[16] = g, e[17] =
|
|
404
|
+
y
|
|
405
|
+
] }), e[16] = g, e[17] = y, e[18] = C) : C = e[18];
|
|
406
406
|
let w;
|
|
407
407
|
return e[19] !== p || e[20] !== C ? (w = /* @__PURE__ */ u("div", { className: p, children: C }), e[19] = p, e[20] = C, e[21] = w) : w = e[21], w;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function oe(n) {
|
|
410
410
|
const e = E.c(58), {
|
|
411
411
|
children: t,
|
|
412
412
|
layoutType: l,
|
|
@@ -423,11 +423,11 @@ function ie(n) {
|
|
|
423
423
|
variant: p,
|
|
424
424
|
maxWidth: b,
|
|
425
425
|
contentWidth: g,
|
|
426
|
-
align:
|
|
427
|
-
className:
|
|
428
|
-
} = n, C = l === void 0 ? "withSlider" : l, w = h === void 0 ?
|
|
426
|
+
align: v,
|
|
427
|
+
className: y
|
|
428
|
+
} = n, C = l === void 0 ? "withSlider" : l, w = h === void 0 ? Ge : h, S = d === void 0 ? ht : d, x = b === void 0 ? "sm" : b, _ = g === void 0 ? "default" : g, N = v === void 0 ? "center" : v, P = _ === "sm", T = p ?? (C === "withSlider" ? "desktop" : "mobile");
|
|
429
429
|
let D;
|
|
430
|
-
e[0] !== f || e[1] !== i || e[2] !== c ? (D = () => f ?? (c != null ? /* @__PURE__ */ u(
|
|
430
|
+
e[0] !== f || e[1] !== i || e[2] !== c ? (D = () => f ?? (c != null ? /* @__PURE__ */ u(ve, { onClick: c }) : i ? typeof i == "string" ? /* @__PURE__ */ u("div", { className: "h-[30px] w-[140px]", children: /* @__PURE__ */ u("img", { src: i, alt: "Docthub", className: "block h-full w-full object-cover" }) }) : i : null), e[0] = f, e[1] = i, e[2] = c, e[3] = D) : D = e[3];
|
|
431
431
|
const W = D;
|
|
432
432
|
let A;
|
|
433
433
|
e[4] !== N || e[5] !== o ? (A = () => o ? typeof o == "string" ? /* @__PURE__ */ u(O, { variant: "h5", weight: "extraBold", align: N, className: "text-neutral-black", children: o }) : o : null, e[4] = N, e[5] = o, e[6] = A) : A = e[6];
|
|
@@ -456,62 +456,62 @@ function ie(n) {
|
|
|
456
456
|
] }), e[27] = V, e[28] = G, e[29] = H, e[30] = $, e[31] = P, e[32] = z) : z = e[32];
|
|
457
457
|
let X;
|
|
458
458
|
e[33] !== s ? (X = s && /* @__PURE__ */ u(q.Footer, { children: s }), e[33] = s, e[34] = X) : X = e[34];
|
|
459
|
-
let
|
|
460
|
-
e[35] !== L || e[36] !== z || e[37] !== X ? (
|
|
459
|
+
let re;
|
|
460
|
+
e[35] !== L || e[36] !== z || e[37] !== X ? (re = /* @__PURE__ */ R(fe, { children: [
|
|
461
461
|
L,
|
|
462
462
|
z,
|
|
463
463
|
X
|
|
464
|
-
] }), e[35] = L, e[36] = z, e[37] = X, e[38] =
|
|
465
|
-
const Z =
|
|
464
|
+
] }), e[35] = L, e[36] = z, e[37] = X, e[38] = re) : re = e[38];
|
|
465
|
+
const Z = re;
|
|
466
466
|
if (C === "withSlider") {
|
|
467
467
|
let ee;
|
|
468
|
-
e[39] !==
|
|
469
|
-
className:
|
|
470
|
-
}, e[39] =
|
|
468
|
+
e[39] !== y ? (ee = y && {
|
|
469
|
+
className: y
|
|
470
|
+
}, e[39] = y, e[40] = ee) : ee = e[40];
|
|
471
471
|
let te;
|
|
472
472
|
e[41] !== Z || e[42] !== x || e[43] !== T ? (te = /* @__PURE__ */ u(q.Root, { variant: T, maxWidth: x, className: "bg-transparent", children: Z }), e[41] = Z, e[42] = x, e[43] = T, e[44] = te) : te = e[44];
|
|
473
|
-
let
|
|
474
|
-
return e[45] !== S || e[46] !== w || e[47] !== m || e[48] !== ee || e[49] !== te ? (
|
|
473
|
+
let ae;
|
|
474
|
+
return e[45] !== S || e[46] !== w || e[47] !== m || e[48] !== ee || e[49] !== te ? (ae = /* @__PURE__ */ u(Ot, { sliderImages: w, sliderAutoPlayInterval: S, sliderTitles: m, ...ee, children: te }), e[45] = S, e[46] = w, e[47] = m, e[48] = ee, e[49] = te, e[50] = ae) : ae = e[50], ae;
|
|
475
475
|
}
|
|
476
476
|
let Q;
|
|
477
|
-
e[51] !==
|
|
478
|
-
className:
|
|
479
|
-
}, e[51] =
|
|
480
|
-
let
|
|
481
|
-
return e[53] !== Z || e[54] !== x || e[55] !== T || e[56] !== Q ? (
|
|
477
|
+
e[51] !== y ? (Q = y && {
|
|
478
|
+
className: y
|
|
479
|
+
}, e[51] = y, e[52] = Q) : Q = e[52];
|
|
480
|
+
let se;
|
|
481
|
+
return e[53] !== Z || e[54] !== x || e[55] !== T || e[56] !== Q ? (se = /* @__PURE__ */ u(q.Root, { variant: T, maxWidth: x, ...Q, children: Z }), e[53] = Z, e[54] = x, e[55] = T, e[56] = Q, e[57] = se) : se = e[57], se;
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Tt(n) {
|
|
484
484
|
return {
|
|
485
485
|
triggerSignIn() {
|
|
486
486
|
}
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
|
-
const
|
|
490
|
-
function
|
|
489
|
+
const We = "https://accounts.google.com/gsi/client";
|
|
490
|
+
function It() {
|
|
491
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="${
|
|
492
|
+
if (document.querySelector(`script[src="${We}"]`)) {
|
|
493
493
|
const i = () => window.google?.accounts?.id ? n() : setTimeout(i, 50);
|
|
494
494
|
i();
|
|
495
495
|
return;
|
|
496
496
|
}
|
|
497
497
|
const l = document.createElement("script");
|
|
498
|
-
l.src =
|
|
498
|
+
l.src = We, 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
499
|
});
|
|
500
500
|
}
|
|
501
|
-
const
|
|
502
|
-
function
|
|
501
|
+
const Lt = "openid email profile", Me = 2e3;
|
|
502
|
+
function Rt(n) {
|
|
503
503
|
const e = E.c(18), {
|
|
504
504
|
clientId: t,
|
|
505
505
|
onCredential: l,
|
|
506
506
|
enableOneTap: i
|
|
507
|
-
} = n, o = i === void 0 ? !1 : i, r =
|
|
507
|
+
} = n, o = i === void 0 ? !1 : i, r = le(!1), s = le(null), a = le(l), c = le(0), f = le(!1);
|
|
508
508
|
let h, d;
|
|
509
509
|
e[0] !== l ? (h = () => {
|
|
510
510
|
a.current = l;
|
|
511
511
|
}, d = [l], e[0] = l, e[1] = h, e[2] = d) : (h = e[1], d = e[2]), J(h, d);
|
|
512
512
|
let m;
|
|
513
513
|
e[3] !== t ? (m = async () => {
|
|
514
|
-
t && (await
|
|
514
|
+
t && (await It(), !(!window.google?.accounts?.id || !window.google?.accounts?.oauth2) && (r.current || (window.google.accounts.id.initialize({
|
|
515
515
|
client_id: t,
|
|
516
516
|
callback: (x) => {
|
|
517
517
|
a.current(x.credential);
|
|
@@ -519,12 +519,12 @@ function Lt(n) {
|
|
|
519
519
|
auto_select: !1
|
|
520
520
|
}), s.current = window.google.accounts.oauth2.initCodeClient({
|
|
521
521
|
client_id: t,
|
|
522
|
-
scope:
|
|
522
|
+
scope: Lt,
|
|
523
523
|
ux_mode: "popup",
|
|
524
524
|
callback: (x) => {
|
|
525
525
|
a.current(x.code);
|
|
526
526
|
},
|
|
527
|
-
error_callback:
|
|
527
|
+
error_callback: Ft
|
|
528
528
|
}), r.current = !0)));
|
|
529
529
|
}, e[3] = t, e[4] = m) : m = e[4];
|
|
530
530
|
const p = m;
|
|
@@ -533,20 +533,20 @@ function Lt(n) {
|
|
|
533
533
|
if (!t)
|
|
534
534
|
return;
|
|
535
535
|
const x = Date.now();
|
|
536
|
-
x - c.current <
|
|
536
|
+
x - c.current < Me || (c.current = x, s.current?.requestCode());
|
|
537
537
|
}, e[5] = t, e[6] = b) : b = e[6];
|
|
538
538
|
const g = b;
|
|
539
|
-
let
|
|
540
|
-
e[7] !== t || e[8] !== p ? (
|
|
539
|
+
let v, y;
|
|
540
|
+
e[7] !== t || e[8] !== p ? (v = () => {
|
|
541
541
|
t && p();
|
|
542
|
-
},
|
|
542
|
+
}, y = [t, p], e[7] = t, e[8] = p, e[9] = v, e[10] = y) : (v = e[9], y = e[10]), J(v, y);
|
|
543
543
|
let C, w;
|
|
544
544
|
e[11] !== t || e[12] !== o || e[13] !== p ? (C = () => {
|
|
545
545
|
!o || !t || f.current || (f.current = !0, p().then(() => {
|
|
546
546
|
if (!window.google?.accounts?.id)
|
|
547
547
|
return;
|
|
548
548
|
const x = Date.now();
|
|
549
|
-
x - c.current <
|
|
549
|
+
x - c.current < Me || (c.current = x, window.google.accounts.id.prompt());
|
|
550
550
|
}));
|
|
551
551
|
}, w = [o, t, p], e[11] = t, e[12] = o, e[13] = p, e[14] = C, e[15] = w) : (C = e[14], w = e[15]), J(C, w);
|
|
552
552
|
let S;
|
|
@@ -554,9 +554,9 @@ function Lt(n) {
|
|
|
554
554
|
loginWithGoogle: g
|
|
555
555
|
}, e[16] = g, e[17] = S) : S = e[17], S;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Ft() {
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function ne(n) {
|
|
560
560
|
const e = E.c(7), {
|
|
561
561
|
label: t,
|
|
562
562
|
value: l
|
|
@@ -573,7 +573,11 @@ function ce(n) {
|
|
|
573
573
|
o
|
|
574
574
|
] }), e[4] = i, e[5] = o, e[6] = r) : r = e[6], r;
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function Se(n, e) {
|
|
577
|
+
if (e)
|
|
578
|
+
return `${n ? `+${n} ` : ""}${e}`;
|
|
579
|
+
}
|
|
580
|
+
function Ln(n) {
|
|
577
581
|
const {
|
|
578
582
|
details: e,
|
|
579
583
|
onBack: t,
|
|
@@ -588,25 +592,27 @@ function In(n) {
|
|
|
588
592
|
o(!1);
|
|
589
593
|
}
|
|
590
594
|
};
|
|
591
|
-
return /* @__PURE__ */ u(
|
|
595
|
+
return /* @__PURE__ */ u(oe, { layoutType: "standalone", variant: "mobile", contentWidth: "sm", align: "left", backButton: t != null ? /* @__PURE__ */ u(ve, { onClick: t }) : void 0, title: /* @__PURE__ */ u(O, { variant: "h5", weight: "extraBold", align: "left", className: "-mb-1.5", children: c }), description: /* @__PURE__ */ u(O, { variant: "body1", align: "left", className: "mb-4 md:mb-4", children: f }), className: Ee, children: /* @__PURE__ */ R("div", { className: "flex w-full flex-col gap-4", children: [
|
|
592
596
|
a ? /* @__PURE__ */ R(fe, { children: [
|
|
593
|
-
/* @__PURE__ */ u(
|
|
594
|
-
/* @__PURE__ */ u(
|
|
597
|
+
/* @__PURE__ */ u(ne, { label: "Existing Email", value: e.oldEmail }),
|
|
598
|
+
/* @__PURE__ */ u(ne, { label: "Existing Mobile Number", value: Se(e.oldCountryCode, e.oldPhone) }),
|
|
599
|
+
/* @__PURE__ */ u(ne, { label: "New Email", value: e.newEmail })
|
|
595
600
|
] }) : /* @__PURE__ */ R(fe, { children: [
|
|
596
|
-
/* @__PURE__ */ u(
|
|
597
|
-
/* @__PURE__ */ u(
|
|
601
|
+
/* @__PURE__ */ u(ne, { label: "Existing Email", value: e.oldEmail }),
|
|
602
|
+
/* @__PURE__ */ u(ne, { label: "Existing Mobile Number", value: Se(e.oldCountryCode, e.oldPhone) }),
|
|
603
|
+
/* @__PURE__ */ u(ne, { label: "New Mobile Number", value: Se(e.newCountryCode, e.newPhone) })
|
|
598
604
|
] }),
|
|
599
605
|
r ? /* @__PURE__ */ u(O, { variant: "body5", className: "text-error", children: r }) : null,
|
|
600
606
|
/* @__PURE__ */ u(B, { type: "button", variant: "primary", size: "large", fullWidth: !0, disabled: i, onClick: h, children: i ? /* @__PURE__ */ u(be, { size: 32, strokeWidth: 2 }) : "Verify" })
|
|
601
607
|
] }) });
|
|
602
608
|
}
|
|
603
|
-
function
|
|
609
|
+
function xe(n) {
|
|
604
610
|
const e = E.c(43);
|
|
605
|
-
let t, l, i, o, r, s, a, c, f, h, d, m, p, b, g,
|
|
611
|
+
let t, l, i, o, r, s, a, c, f, h, d, m, p, b, g, v, y, C;
|
|
606
612
|
e[0] !== n ? ({
|
|
607
613
|
name: f,
|
|
608
|
-
label:
|
|
609
|
-
countryCode:
|
|
614
|
+
label: v,
|
|
615
|
+
countryCode: y,
|
|
610
616
|
countryCodeName: o,
|
|
611
617
|
phoneArrayName: p,
|
|
612
618
|
selectedCountryName: g,
|
|
@@ -622,14 +628,14 @@ function Se(n) {
|
|
|
622
628
|
helperText: c,
|
|
623
629
|
control: l,
|
|
624
630
|
...a
|
|
625
|
-
} = 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] = f, e[10] = h, e[11] = d, e[12] = m, e[13] = p, e[14] = b, e[15] = g, e[16] =
|
|
626
|
-
const w =
|
|
631
|
+
} = 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] = f, e[10] = h, e[11] = d, e[12] = m, 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], f = e[9], h = e[10], d = e[11], m = e[12], p = e[13], b = e[14], g = e[15], v = e[16], y = e[17], C = e[18]);
|
|
632
|
+
const w = v === void 0 ? "Phone Number" : v, S = y === void 0 ? "91" : y, x = C === void 0 ? "Enter phone number" : C, _ = ie(), N = l || _.control;
|
|
627
633
|
let P;
|
|
628
634
|
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] !== w || e[28] !== _ || e[29] !== f || e[30] !== h || e[31] !== d || e[32] !== m || e[33] !== p || e[34] !== x || e[35] !== b || e[36] !== N || e[37] !== g ? (P = (D) => {
|
|
629
635
|
const {
|
|
630
636
|
field: W,
|
|
631
637
|
fieldState: A
|
|
632
|
-
} = D, I = (F, M) => /* @__PURE__ */ u(
|
|
638
|
+
} = D, I = (F, M) => /* @__PURE__ */ u(ot, { ...a, id: f, value: String(W.value ?? ""), ...w !== void 0 && {
|
|
633
639
|
label: w
|
|
634
640
|
}, ...F ? {
|
|
635
641
|
countryCode: F
|
|
@@ -691,14 +697,14 @@ function de(n) {
|
|
|
691
697
|
maxLength: h,
|
|
692
698
|
numericOnly: d,
|
|
693
699
|
autoFocus: m
|
|
694
|
-
} = n, p =
|
|
700
|
+
} = n, p = ie(), b = r || p.control;
|
|
695
701
|
let g;
|
|
696
|
-
e[0] !== m || e[1] !== o || e[2] !== c || e[3] !== l || e[4] !== h || e[5] !== d || e[6] !== f || e[7] !== i || e[8] !== s || e[9] !== a ? (g = (
|
|
702
|
+
e[0] !== m || e[1] !== o || e[2] !== c || e[3] !== l || e[4] !== h || e[5] !== d || e[6] !== f || e[7] !== i || e[8] !== s || e[9] !== a ? (g = (y) => {
|
|
697
703
|
const {
|
|
698
704
|
field: C,
|
|
699
705
|
fieldState: w
|
|
700
|
-
} =
|
|
701
|
-
return /* @__PURE__ */ u(
|
|
706
|
+
} = y;
|
|
707
|
+
return /* @__PURE__ */ u(rt, { ...C, value: C.value ?? "", ...m !== void 0 && {
|
|
702
708
|
autoFocus: m
|
|
703
709
|
}, ...l !== void 0 && {
|
|
704
710
|
label: l
|
|
@@ -732,18 +738,18 @@ function de(n) {
|
|
|
732
738
|
C.onBlur();
|
|
733
739
|
} });
|
|
734
740
|
}, e[0] = m, e[1] = o, e[2] = c, e[3] = l, e[4] = h, e[5] = d, e[6] = f, e[7] = i, e[8] = s, e[9] = a, e[10] = g) : g = e[10];
|
|
735
|
-
let
|
|
736
|
-
return e[11] !== t || e[12] !== b || e[13] !== g ? (
|
|
741
|
+
let v;
|
|
742
|
+
return e[11] !== t || e[12] !== b || e[13] !== g ? (v = /* @__PURE__ */ u(me, { name: t, control: b, render: g }), e[11] = t, e[12] = b, e[13] = g, e[14] = v) : v = e[14], v;
|
|
737
743
|
}
|
|
738
|
-
function
|
|
744
|
+
function kt(n, e) {
|
|
739
745
|
const t = (n ?? "").trim();
|
|
740
746
|
if (t.length === 0) return "";
|
|
741
747
|
if (t.startsWith("+")) return t;
|
|
742
748
|
const l = (e ?? "").replaceAll(/\D/g, "");
|
|
743
749
|
return l.length > 0 ? `+${l}${t}` : t;
|
|
744
750
|
}
|
|
745
|
-
const
|
|
746
|
-
function
|
|
751
|
+
const Oe = "doct-auth-kit:form:";
|
|
752
|
+
function Te() {
|
|
747
753
|
if (typeof window > "u") return null;
|
|
748
754
|
try {
|
|
749
755
|
return window.sessionStorage;
|
|
@@ -751,38 +757,38 @@ function Oe() {
|
|
|
751
757
|
return null;
|
|
752
758
|
}
|
|
753
759
|
}
|
|
754
|
-
function
|
|
755
|
-
const e =
|
|
760
|
+
function Dt(n) {
|
|
761
|
+
const e = Te();
|
|
756
762
|
if (!e) return null;
|
|
757
763
|
try {
|
|
758
|
-
const t = e.getItem(
|
|
764
|
+
const t = e.getItem(Oe + n);
|
|
759
765
|
return t ? JSON.parse(t) : null;
|
|
760
766
|
} catch {
|
|
761
767
|
return null;
|
|
762
768
|
}
|
|
763
769
|
}
|
|
764
|
-
function
|
|
765
|
-
const t =
|
|
770
|
+
function $t(n, e) {
|
|
771
|
+
const t = Te();
|
|
766
772
|
if (t)
|
|
767
773
|
try {
|
|
768
|
-
t.setItem(
|
|
774
|
+
t.setItem(Oe + n, JSON.stringify(e));
|
|
769
775
|
} catch {
|
|
770
776
|
}
|
|
771
777
|
}
|
|
772
|
-
function
|
|
773
|
-
const n =
|
|
778
|
+
function Rn() {
|
|
779
|
+
const n = Te();
|
|
774
780
|
if (n)
|
|
775
781
|
try {
|
|
776
782
|
const e = [];
|
|
777
783
|
for (let t = 0; t < n.length; t++) {
|
|
778
784
|
const l = n.key(t);
|
|
779
|
-
l && l.startsWith(
|
|
785
|
+
l && l.startsWith(Oe) && e.push(l);
|
|
780
786
|
}
|
|
781
787
|
e.forEach((t) => n.removeItem(t));
|
|
782
788
|
} catch {
|
|
783
789
|
}
|
|
784
790
|
}
|
|
785
|
-
function
|
|
791
|
+
function Ye(n, e) {
|
|
786
792
|
for (const t of n.issues) {
|
|
787
793
|
const l = t.path[0];
|
|
788
794
|
typeof l == "string" && e(l, {
|
|
@@ -790,59 +796,59 @@ function Ke(n, e) {
|
|
|
790
796
|
});
|
|
791
797
|
}
|
|
792
798
|
}
|
|
793
|
-
function
|
|
799
|
+
function Wt(n) {
|
|
794
800
|
return n.trim().replace(/\b\w/g, (e) => e.toUpperCase());
|
|
795
801
|
}
|
|
796
|
-
const
|
|
802
|
+
const Ie = 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(Wt), Le = j.string().trim().min(1, "Phone number is required").refine((n) => {
|
|
797
803
|
if (n == null || n.length === 0) return !0;
|
|
798
804
|
const [, e] = n.split("-"), l = (e ?? n).replaceAll(/\D/g, "");
|
|
799
805
|
return l.length >= 7 && l.length <= 15;
|
|
800
|
-
}, "Phone number must be between 7 and 15 digits"),
|
|
801
|
-
fullName:
|
|
802
|
-
phone:
|
|
803
|
-
countryCode:
|
|
804
|
-
}), Mt = j.object({
|
|
805
|
-
fullName: Te,
|
|
806
|
-
email: Re
|
|
806
|
+
}, "Phone number must be between 7 and 15 digits"), Re = j.string().trim().transform((n) => n.replaceAll(/\D/g, "")).optional(), Fe = 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()), Mt = j.object({
|
|
807
|
+
fullName: Ie,
|
|
808
|
+
phone: Le,
|
|
809
|
+
countryCode: Re
|
|
807
810
|
}), Ut = j.object({
|
|
808
|
-
fullName:
|
|
809
|
-
email:
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
phone:
|
|
814
|
-
|
|
815
|
-
foreign: Ut
|
|
816
|
-
}, Bt = j.object({
|
|
817
|
-
phone: Ie,
|
|
818
|
-
countryCode: Le
|
|
819
|
-
}), jt = j.object({
|
|
820
|
-
email: Re
|
|
811
|
+
fullName: Ie,
|
|
812
|
+
email: Fe
|
|
813
|
+
}), Bt = j.object({
|
|
814
|
+
fullName: Ie,
|
|
815
|
+
email: Fe,
|
|
816
|
+
phone: Le,
|
|
817
|
+
countryCode: Re
|
|
821
818
|
}), Ue = {
|
|
822
|
-
phone:
|
|
823
|
-
email:
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
819
|
+
phone: Mt,
|
|
820
|
+
email: Ut,
|
|
821
|
+
foreign: Bt
|
|
822
|
+
}, jt = j.object({
|
|
823
|
+
phone: Le,
|
|
824
|
+
countryCode: Re
|
|
825
|
+
}), zt = j.object({
|
|
826
|
+
email: Fe
|
|
827
|
+
}), Be = {
|
|
828
|
+
phone: jt,
|
|
829
|
+
email: zt
|
|
830
|
+
}, he = 6, Vt = 60, Gt = 120;
|
|
831
|
+
function Ht(n) {
|
|
832
|
+
return n === "phone" ? Vt : Gt;
|
|
827
833
|
}
|
|
828
|
-
const
|
|
834
|
+
const Je = j.object({
|
|
829
835
|
otp: j.array(j.string()).length(he, "Enter all 6 digits").refine((n) => n.every((e) => /^\d$/.test(e)) && n.join("").length === he, "Invalid OTP! Please use correct code and submit again.")
|
|
830
836
|
});
|
|
831
|
-
function
|
|
832
|
-
const t =
|
|
837
|
+
function Xe(n, e) {
|
|
838
|
+
const t = le(null);
|
|
833
839
|
J(() => {
|
|
834
840
|
if (t.current === n) return;
|
|
835
841
|
t.current = n;
|
|
836
|
-
const l =
|
|
842
|
+
const l = Dt(n);
|
|
837
843
|
l && e.reset(l);
|
|
838
844
|
}, [n]), J(() => {
|
|
839
845
|
const l = e.watch((i) => {
|
|
840
|
-
|
|
846
|
+
$t(n, i);
|
|
841
847
|
});
|
|
842
848
|
return () => l.unsubscribe();
|
|
843
849
|
}, [e, n]);
|
|
844
850
|
}
|
|
845
|
-
function
|
|
851
|
+
function qt(n) {
|
|
846
852
|
const e = E.c(19), {
|
|
847
853
|
mode: t,
|
|
848
854
|
onSubmit: l,
|
|
@@ -863,19 +869,19 @@ function Ht(n) {
|
|
|
863
869
|
defaultValues: h,
|
|
864
870
|
mode: "onChange"
|
|
865
871
|
}, e[2] = h, e[3] = d) : d = e[3];
|
|
866
|
-
const m =
|
|
867
|
-
|
|
872
|
+
const m = we(d);
|
|
873
|
+
Xe(`login-entry:${t}`, m);
|
|
868
874
|
let p;
|
|
869
875
|
e[4] !== m || e[5] !== t || e[6] !== r || e[7] !== l || e[8] !== o || e[9] !== i ? (p = (C) => {
|
|
870
|
-
const S =
|
|
876
|
+
const S = Be[t].safeParse(C);
|
|
871
877
|
if (!S.success) {
|
|
872
|
-
|
|
878
|
+
Ye(S.error, (_, N) => m.setError(_, N));
|
|
873
879
|
return;
|
|
874
880
|
}
|
|
875
881
|
const x = S.data;
|
|
876
882
|
if (i) {
|
|
877
883
|
a(!0);
|
|
878
|
-
const _ = x.phone ?
|
|
884
|
+
const _ = x.phone ? kt(x.phone, x.countryCode) : x.email ?? "", N = {
|
|
879
885
|
mode: t,
|
|
880
886
|
recipient: _
|
|
881
887
|
};
|
|
@@ -892,27 +898,27 @@ function Ht(n) {
|
|
|
892
898
|
}, e[4] = m, e[5] = t, e[6] = r, e[7] = l, e[8] = o, e[9] = i, e[10] = p) : p = e[10];
|
|
893
899
|
const b = p;
|
|
894
900
|
let g;
|
|
895
|
-
e[11] !== t ? (g = (C) =>
|
|
896
|
-
const
|
|
897
|
-
let
|
|
898
|
-
return e[13] !== b || e[14] !==
|
|
901
|
+
e[11] !== t ? (g = (C) => Be[t].safeParse(C).success, e[11] = t, e[12] = g) : g = e[12];
|
|
902
|
+
const v = g;
|
|
903
|
+
let y;
|
|
904
|
+
return e[13] !== b || e[14] !== v || e[15] !== c || e[16] !== s || e[17] !== m ? (y = {
|
|
899
905
|
methods: m,
|
|
900
906
|
handleSubmit: b,
|
|
901
907
|
isPhone: c,
|
|
902
|
-
isFormValid:
|
|
908
|
+
isFormValid: v,
|
|
903
909
|
isSubmitting: s
|
|
904
|
-
}, e[13] = b, e[14] =
|
|
910
|
+
}, e[13] = b, e[14] = v, e[15] = c, e[16] = s, e[17] = m, e[18] = y) : y = e[18], y;
|
|
905
911
|
}
|
|
906
|
-
function
|
|
912
|
+
function Kt(n) {
|
|
907
913
|
const e = E.c(14), {
|
|
908
914
|
isPhone: t,
|
|
909
915
|
handleSubmit: l,
|
|
910
916
|
isSubmitting: i
|
|
911
|
-
} = n, o =
|
|
917
|
+
} = n, o = ie();
|
|
912
918
|
let r;
|
|
913
919
|
e[0] !== l || e[1] !== o ? (r = o.handleSubmit(l), e[0] = l, e[1] = o, e[2] = r) : r = e[2];
|
|
914
920
|
let s;
|
|
915
|
-
e[3] !== t ? (s = /* @__PURE__ */ u("div", { className: "mb-6 flex w-full flex-col gap-[12px]", children: t ? /* @__PURE__ */ u(
|
|
921
|
+
e[3] !== t ? (s = /* @__PURE__ */ u("div", { className: "mb-6 flex w-full flex-col gap-[12px]", children: t ? /* @__PURE__ */ u(xe, { name: "phone", label: "", placeholder: "Phone number", countryCode: "+91", countryCodeName: "countryCode", defaultCountry: "IN", className: "[&_button]:!h-[44px] [&_input]:!h-[44px]", autoFocus: !0 }) : /* @__PURE__ */ u(de, { name: "email", placeholder: "Enter email address", type: "email", className: "[&_input]:!h-[44px]", autoFocus: !0 }) }), e[3] = t, e[4] = s) : s = e[4];
|
|
916
922
|
let a;
|
|
917
923
|
e[5] !== i ? (a = i ? /* @__PURE__ */ u(be, { size: 32, strokeWidth: 2 }) : "Continue", e[5] = i, e[6] = a) : a = e[6];
|
|
918
924
|
let c;
|
|
@@ -923,7 +929,7 @@ function qt(n) {
|
|
|
923
929
|
c
|
|
924
930
|
] }), e[10] = r, e[11] = s, e[12] = c, e[13] = f) : f = e[13], f;
|
|
925
931
|
}
|
|
926
|
-
function
|
|
932
|
+
function Yt(n) {
|
|
927
933
|
const e = E.c(13), {
|
|
928
934
|
mode: t,
|
|
929
935
|
onSubmit: l,
|
|
@@ -944,20 +950,20 @@ function Kt(n) {
|
|
|
944
950
|
handleSubmit: c,
|
|
945
951
|
isPhone: f,
|
|
946
952
|
isSubmitting: h
|
|
947
|
-
} =
|
|
953
|
+
} = qt(s);
|
|
948
954
|
let d;
|
|
949
|
-
e[6] !== c || e[7] !== f || e[8] !== h ? (d = /* @__PURE__ */ u(
|
|
955
|
+
e[6] !== c || e[7] !== f || e[8] !== h ? (d = /* @__PURE__ */ u(Kt, { isPhone: f, handleSubmit: c, isSubmitting: h }), e[6] = c, e[7] = f, e[8] = h, e[9] = d) : d = e[9];
|
|
950
956
|
let m;
|
|
951
|
-
return e[10] !== a || e[11] !== d ? (m = /* @__PURE__ */ u(
|
|
957
|
+
return e[10] !== a || e[11] !== d ? (m = /* @__PURE__ */ u(Ne, { ...a, children: d }), e[10] = a, e[11] = d, e[12] = m) : m = e[12], m;
|
|
952
958
|
}
|
|
953
|
-
const
|
|
959
|
+
const Jt = {
|
|
954
960
|
phone: "Enter Phone Number",
|
|
955
961
|
email: "Enter Email Address"
|
|
956
|
-
},
|
|
962
|
+
}, Xt = {
|
|
957
963
|
phone: "We will send you 6 digit OTP on the given Phone Number.",
|
|
958
964
|
email: "We will send you 6 digit OTP on the given Email Address."
|
|
959
965
|
};
|
|
960
|
-
function
|
|
966
|
+
function Fn(n) {
|
|
961
967
|
const e = E.c(27), {
|
|
962
968
|
mode: t,
|
|
963
969
|
title: l,
|
|
@@ -969,13 +975,13 @@ function Rn(n) {
|
|
|
969
975
|
onError: c,
|
|
970
976
|
layoutType: f,
|
|
971
977
|
variant: h
|
|
972
|
-
} = n, d = f === void 0 ? "withSlider" : f, m = h === void 0 ? "desktop" : h, p = l ??
|
|
978
|
+
} = n, d = f === void 0 ? "withSlider" : f, m = h === void 0 ? "desktop" : h, p = l ?? Jt[t], b = i ?? Xt[t];
|
|
973
979
|
let g;
|
|
974
|
-
e[0] !== o ? (g = o != null ? /* @__PURE__ */ u(
|
|
975
|
-
let y;
|
|
976
|
-
e[2] !== p ? (y = /* @__PURE__ */ u(O, { variant: "h5", weight: "extraBold", align: "left", className: "-mb-1.5", children: p }), e[2] = p, e[3] = y) : y = e[3];
|
|
980
|
+
e[0] !== o ? (g = o != null ? /* @__PURE__ */ u(ve, { onClick: o }) : void 0, e[0] = o, e[1] = g) : g = e[1];
|
|
977
981
|
let v;
|
|
978
|
-
e[
|
|
982
|
+
e[2] !== p ? (v = /* @__PURE__ */ u(O, { variant: "h5", weight: "extraBold", align: "left", className: "-mb-1.5", children: p }), e[2] = p, e[3] = v) : v = e[3];
|
|
983
|
+
let y;
|
|
984
|
+
e[4] !== b ? (y = /* @__PURE__ */ u(O, { variant: "body1", align: "left", className: "mb-4 md:mb-4", children: b }), e[4] = b, e[5] = y) : y = e[5];
|
|
979
985
|
let C;
|
|
980
986
|
e[6] !== r ? (C = r && {
|
|
981
987
|
onSubmit: r
|
|
@@ -993,20 +999,20 @@ function Rn(n) {
|
|
|
993
999
|
onError: c
|
|
994
1000
|
}, e[12] = c, e[13] = x) : x = e[13];
|
|
995
1001
|
let _;
|
|
996
|
-
e[14] !== t || e[15] !== C || e[16] !== w || e[17] !== S || e[18] !== x ? (_ = /* @__PURE__ */ u(
|
|
1002
|
+
e[14] !== t || e[15] !== C || e[16] !== w || e[17] !== S || e[18] !== x ? (_ = /* @__PURE__ */ u(Yt, { mode: t, ...C, ...w, ...S, ...x }), e[14] = t, e[15] = C, e[16] = w, e[17] = S, e[18] = x, e[19] = _) : _ = e[19];
|
|
997
1003
|
let N;
|
|
998
|
-
return e[20] !== d || e[21] !== g || e[22] !==
|
|
1004
|
+
return e[20] !== d || e[21] !== g || e[22] !== v || e[23] !== y || e[24] !== _ || e[25] !== m ? (N = /* @__PURE__ */ u(oe, { layoutType: d, variant: m, contentWidth: "sm", align: "left", backButton: g, title: v, description: y, className: Ee, children: _ }), e[20] = d, e[21] = g, e[22] = v, e[23] = y, e[24] = _, e[25] = m, e[26] = N) : N = e[26], N;
|
|
999
1005
|
}
|
|
1000
|
-
var
|
|
1006
|
+
var Ze = {
|
|
1001
1007
|
color: void 0,
|
|
1002
1008
|
size: void 0,
|
|
1003
1009
|
className: void 0,
|
|
1004
1010
|
style: void 0,
|
|
1005
1011
|
attr: void 0
|
|
1006
|
-
},
|
|
1007
|
-
function
|
|
1012
|
+
}, je = K.createContext && /* @__PURE__ */ K.createContext(Ze), Zt = ["attr", "size", "title"];
|
|
1013
|
+
function Qt(n, e) {
|
|
1008
1014
|
if (n == null) return {};
|
|
1009
|
-
var t =
|
|
1015
|
+
var t = en(n, e), l, i;
|
|
1010
1016
|
if (Object.getOwnPropertySymbols) {
|
|
1011
1017
|
var o = Object.getOwnPropertySymbols(n);
|
|
1012
1018
|
for (i = 0; i < o.length; i++)
|
|
@@ -1014,7 +1020,7 @@ function Zt(n, e) {
|
|
|
1014
1020
|
}
|
|
1015
1021
|
return t;
|
|
1016
1022
|
}
|
|
1017
|
-
function
|
|
1023
|
+
function en(n, e) {
|
|
1018
1024
|
if (n == null) return {};
|
|
1019
1025
|
var t = {};
|
|
1020
1026
|
for (var l in n)
|
|
@@ -1034,7 +1040,7 @@ function ge() {
|
|
|
1034
1040
|
return n;
|
|
1035
1041
|
}, ge.apply(this, arguments);
|
|
1036
1042
|
}
|
|
1037
|
-
function
|
|
1043
|
+
function ze(n, e) {
|
|
1038
1044
|
var t = Object.keys(n);
|
|
1039
1045
|
if (Object.getOwnPropertySymbols) {
|
|
1040
1046
|
var l = Object.getOwnPropertySymbols(n);
|
|
@@ -1047,22 +1053,22 @@ function je(n, e) {
|
|
|
1047
1053
|
function pe(n) {
|
|
1048
1054
|
for (var e = 1; e < arguments.length; e++) {
|
|
1049
1055
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1050
|
-
e % 2 ?
|
|
1051
|
-
|
|
1052
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) :
|
|
1056
|
+
e % 2 ? ze(Object(t), !0).forEach(function(l) {
|
|
1057
|
+
tn(n, l, t[l]);
|
|
1058
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : ze(Object(t)).forEach(function(l) {
|
|
1053
1059
|
Object.defineProperty(n, l, Object.getOwnPropertyDescriptor(t, l));
|
|
1054
1060
|
});
|
|
1055
1061
|
}
|
|
1056
1062
|
return n;
|
|
1057
1063
|
}
|
|
1058
|
-
function
|
|
1059
|
-
return e =
|
|
1064
|
+
function tn(n, e, t) {
|
|
1065
|
+
return e = nn(e), e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
|
|
1060
1066
|
}
|
|
1061
|
-
function
|
|
1062
|
-
var e =
|
|
1067
|
+
function nn(n) {
|
|
1068
|
+
var e = ln(n, "string");
|
|
1063
1069
|
return typeof e == "symbol" ? e : e + "";
|
|
1064
1070
|
}
|
|
1065
|
-
function
|
|
1071
|
+
function ln(n, e) {
|
|
1066
1072
|
if (typeof n != "object" || !n) return n;
|
|
1067
1073
|
var t = n[Symbol.toPrimitive];
|
|
1068
1074
|
if (t !== void 0) {
|
|
@@ -1072,23 +1078,23 @@ function nn(n, e) {
|
|
|
1072
1078
|
}
|
|
1073
1079
|
return (e === "string" ? String : Number)(n);
|
|
1074
1080
|
}
|
|
1075
|
-
function
|
|
1081
|
+
function Qe(n) {
|
|
1076
1082
|
return n && n.map((e, t) => /* @__PURE__ */ K.createElement(e.tag, pe({
|
|
1077
1083
|
key: t
|
|
1078
|
-
}, e.attr),
|
|
1084
|
+
}, e.attr), Qe(e.child)));
|
|
1079
1085
|
}
|
|
1080
|
-
function
|
|
1081
|
-
return (e) => /* @__PURE__ */ K.createElement(
|
|
1086
|
+
function et(n) {
|
|
1087
|
+
return (e) => /* @__PURE__ */ K.createElement(on, ge({
|
|
1082
1088
|
attr: pe({}, n.attr)
|
|
1083
|
-
}, e),
|
|
1089
|
+
}, e), Qe(n.child));
|
|
1084
1090
|
}
|
|
1085
|
-
function
|
|
1091
|
+
function on(n) {
|
|
1086
1092
|
var e = (t) => {
|
|
1087
1093
|
var {
|
|
1088
1094
|
attr: l,
|
|
1089
1095
|
size: i,
|
|
1090
1096
|
title: o
|
|
1091
|
-
} = n, r =
|
|
1097
|
+
} = n, r = Qt(n, Zt), s = i || t.size || "1em", a;
|
|
1092
1098
|
return t.className && (a = t.className), n.className && (a = (a ? a + " " : "") + n.className), /* @__PURE__ */ K.createElement("svg", ge({
|
|
1093
1099
|
stroke: "currentColor",
|
|
1094
1100
|
fill: "currentColor",
|
|
@@ -1103,26 +1109,26 @@ function ln(n) {
|
|
|
1103
1109
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1104
1110
|
}), o && /* @__PURE__ */ K.createElement("title", null, o), n.children);
|
|
1105
1111
|
};
|
|
1106
|
-
return
|
|
1107
|
-
}
|
|
1108
|
-
function on(n) {
|
|
1109
|
-
return Qe({ 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);
|
|
1112
|
+
return je !== void 0 ? /* @__PURE__ */ K.createElement(je.Consumer, null, (t) => e(t)) : e(Ze);
|
|
1110
1113
|
}
|
|
1111
1114
|
function rn(n) {
|
|
1112
|
-
return
|
|
1115
|
+
return et({ 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);
|
|
1116
|
+
}
|
|
1117
|
+
function sn(n) {
|
|
1118
|
+
return et({ 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
|
|
1113
1119
|
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
|
|
1114
1120
|
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
|
|
1115
1121
|
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
|
|
1116
1122
|
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
|
|
1117
1123
|
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);
|
|
1118
1124
|
}
|
|
1119
|
-
function
|
|
1125
|
+
function tt(n) {
|
|
1120
1126
|
const e = E.c(23);
|
|
1121
1127
|
let t;
|
|
1122
1128
|
e[0] !== n ? (t = n === void 0 ? {} : n, e[0] = n, e[1] = t) : t = e[1];
|
|
1123
|
-
const l = t, i =
|
|
1129
|
+
const l = t, i = un, o = l.providers?.google?.clientId ?? "";
|
|
1124
1130
|
let r;
|
|
1125
|
-
e[2] !== l.providers?.google?.onCredential ? (r = l.providers?.google?.onCredential ??
|
|
1131
|
+
e[2] !== l.providers?.google?.onCredential ? (r = l.providers?.google?.onCredential ?? cn, e[2] = l.providers?.google?.onCredential, e[3] = r) : r = e[3];
|
|
1126
1132
|
const s = l.providers?.google?.enableOneTap ?? !1;
|
|
1127
1133
|
let a;
|
|
1128
1134
|
e[4] !== o || e[5] !== r || e[6] !== s ? (a = {
|
|
@@ -1132,9 +1138,9 @@ function et(n) {
|
|
|
1132
1138
|
}, e[4] = o, e[5] = r, e[6] = s, e[7] = a) : a = e[7];
|
|
1133
1139
|
const {
|
|
1134
1140
|
loginWithGoogle: c
|
|
1135
|
-
} =
|
|
1141
|
+
} = Rt(a), f = l.providers?.apple?.clientId ?? "", h = l.providers?.apple?.redirectUri ?? "";
|
|
1136
1142
|
let d;
|
|
1137
|
-
e[8] !== l.providers?.apple?.onCredential ? (d = l.providers?.apple?.onCredential ??
|
|
1143
|
+
e[8] !== l.providers?.apple?.onCredential ? (d = l.providers?.apple?.onCredential ?? an, e[8] = l.providers?.apple?.onCredential, e[9] = d) : d = e[9];
|
|
1138
1144
|
let m;
|
|
1139
1145
|
e[10] !== f || e[11] !== h || e[12] !== d ? (m = {
|
|
1140
1146
|
clientId: f,
|
|
@@ -1143,34 +1149,34 @@ function et(n) {
|
|
|
1143
1149
|
}, e[10] = f, e[11] = h, e[12] = d, e[13] = m) : m = e[13];
|
|
1144
1150
|
const {
|
|
1145
1151
|
triggerSignIn: p
|
|
1146
|
-
} =
|
|
1147
|
-
let
|
|
1148
|
-
e[14] !== c || e[15] !== l.onContinueWithGoogle || e[16] !== l.providers?.google?.clientId ? (
|
|
1152
|
+
} = Tt(), b = l.onContinueWithMobile ?? i, g = l.onContinueWithEmail ?? i;
|
|
1153
|
+
let v;
|
|
1154
|
+
e[14] !== c || e[15] !== l.onContinueWithGoogle || e[16] !== l.providers?.google?.clientId ? (v = l.onContinueWithGoogle ?? (l.providers?.google?.clientId ? () => {
|
|
1149
1155
|
c();
|
|
1150
|
-
} : i), e[14] = c, e[15] = l.onContinueWithGoogle, e[16] = l.providers?.google?.clientId, e[17] =
|
|
1151
|
-
const
|
|
1156
|
+
} : i), e[14] = c, e[15] = l.onContinueWithGoogle, e[16] = l.providers?.google?.clientId, e[17] = v) : v = e[17];
|
|
1157
|
+
const y = l.onContinueWithApple ?? (l.providers?.apple?.clientId ? p : i);
|
|
1152
1158
|
let C;
|
|
1153
|
-
return e[18] !== b || e[19] !== g || e[20] !==
|
|
1159
|
+
return e[18] !== b || e[19] !== g || e[20] !== v || e[21] !== y ? (C = {
|
|
1154
1160
|
onContinueWithMobile: b,
|
|
1155
1161
|
onContinueWithEmail: g,
|
|
1156
|
-
onContinueWithGoogle:
|
|
1157
|
-
onContinueWithApple:
|
|
1158
|
-
}, e[18] = b, e[19] = g, e[20] =
|
|
1159
|
-
}
|
|
1160
|
-
function sn() {
|
|
1162
|
+
onContinueWithGoogle: v,
|
|
1163
|
+
onContinueWithApple: y
|
|
1164
|
+
}, e[18] = b, e[19] = g, e[20] = v, e[21] = y, e[22] = C) : C = e[22], C;
|
|
1161
1165
|
}
|
|
1162
1166
|
function an() {
|
|
1163
1167
|
}
|
|
1164
1168
|
function cn() {
|
|
1165
1169
|
}
|
|
1166
|
-
|
|
1170
|
+
function un() {
|
|
1171
|
+
}
|
|
1172
|
+
const dn = {
|
|
1167
1173
|
phone: "Kindly check your Mobile.",
|
|
1168
1174
|
email: "Kindly check your Email Inbox."
|
|
1169
|
-
},
|
|
1175
|
+
}, fn = {
|
|
1170
1176
|
phone: "6 digit OTP has been sent to your Mobile",
|
|
1171
1177
|
email: "6 digit OTP has been sent to your Email"
|
|
1172
1178
|
};
|
|
1173
|
-
function
|
|
1179
|
+
function mn(n) {
|
|
1174
1180
|
const e = E.c(30), {
|
|
1175
1181
|
mode: t,
|
|
1176
1182
|
onSubmit: l,
|
|
@@ -1181,34 +1187,34 @@ function fn(n) {
|
|
|
1181
1187
|
validate: a
|
|
1182
1188
|
} = n, [c, f] = Y(!1);
|
|
1183
1189
|
let h;
|
|
1184
|
-
e[0] !== t ? (h =
|
|
1190
|
+
e[0] !== t ? (h = Ht(t), e[0] = t, e[1] = h) : h = e[1];
|
|
1185
1191
|
const d = h, [m, p] = Y(d), b = m <= 0;
|
|
1186
1192
|
let g;
|
|
1187
1193
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = Array.from({
|
|
1188
1194
|
length: he
|
|
1189
|
-
},
|
|
1190
|
-
const
|
|
1191
|
-
let
|
|
1192
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1195
|
+
}, pn), e[2] = g) : g = e[2];
|
|
1196
|
+
const v = g;
|
|
1197
|
+
let y;
|
|
1198
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
|
|
1193
1199
|
defaultValues: {
|
|
1194
|
-
otp:
|
|
1200
|
+
otp: v
|
|
1195
1201
|
},
|
|
1196
1202
|
mode: "onChange"
|
|
1197
|
-
}, e[3] =
|
|
1198
|
-
const C =
|
|
1203
|
+
}, e[3] = y) : y = e[3];
|
|
1204
|
+
const C = we(y);
|
|
1199
1205
|
let w, S;
|
|
1200
1206
|
e[4] !== m ? (w = () => {
|
|
1201
1207
|
if (m <= 0)
|
|
1202
1208
|
return;
|
|
1203
1209
|
const V = setInterval(() => {
|
|
1204
|
-
p(
|
|
1210
|
+
p(gn);
|
|
1205
1211
|
}, 1e3);
|
|
1206
1212
|
return () => clearInterval(V);
|
|
1207
1213
|
}, S = [m], e[4] = m, e[5] = w, e[6] = S) : (w = e[5], S = e[6]), J(w, S);
|
|
1208
1214
|
let x;
|
|
1209
1215
|
e[7] !== C || e[8] !== s || e[9] !== l || e[10] !== r || e[11] !== o || e[12] !== a ? (x = async (V) => {
|
|
1210
1216
|
C.clearErrors("otp");
|
|
1211
|
-
const G =
|
|
1217
|
+
const G = Je.safeParse(V);
|
|
1212
1218
|
if (!G.success) {
|
|
1213
1219
|
const $ = G.error.issues[0]?.message ?? "Invalid OTP";
|
|
1214
1220
|
C.setError("otp", {
|
|
@@ -1255,7 +1261,7 @@ function fn(n) {
|
|
|
1255
1261
|
e[14] !== b || e[15] !== d || e[16] !== i ? (N = () => {
|
|
1256
1262
|
b && (i?.(), p(d));
|
|
1257
1263
|
}, e[14] = b, e[15] = d, e[16] = i, e[17] = N) : N = e[17];
|
|
1258
|
-
const P = N, T =
|
|
1264
|
+
const P = N, T = hn, D = Math.floor(m / 60), W = m % 60, A = String(D);
|
|
1259
1265
|
let I;
|
|
1260
1266
|
e[18] !== A ? (I = A.padStart(2, "0"), e[18] = A, e[19] = I) : I = e[19];
|
|
1261
1267
|
const F = String(W);
|
|
@@ -1274,17 +1280,17 @@ function fn(n) {
|
|
|
1274
1280
|
isSubmitting: c
|
|
1275
1281
|
}, e[22] = b, e[23] = P, e[24] = _, e[25] = c, e[26] = C, e[27] = m, e[28] = L, e[29] = U) : U = e[29], U;
|
|
1276
1282
|
}
|
|
1277
|
-
function mn(n) {
|
|
1278
|
-
return Ye.safeParse(n).success;
|
|
1279
|
-
}
|
|
1280
1283
|
function hn(n) {
|
|
1284
|
+
return Je.safeParse(n).success;
|
|
1285
|
+
}
|
|
1286
|
+
function gn(n) {
|
|
1281
1287
|
return n <= 1 ? 0 : n - 1;
|
|
1282
1288
|
}
|
|
1283
|
-
function
|
|
1289
|
+
function pn() {
|
|
1284
1290
|
return "";
|
|
1285
1291
|
}
|
|
1286
|
-
const
|
|
1287
|
-
function
|
|
1292
|
+
const bn = "Mobile";
|
|
1293
|
+
function vn(n) {
|
|
1288
1294
|
const e = E.c(11);
|
|
1289
1295
|
let t;
|
|
1290
1296
|
e[0] !== n ? (t = n === void 0 ? {} : n, e[0] = n, e[1] = t) : t = e[1];
|
|
@@ -1294,7 +1300,7 @@ function bn(n) {
|
|
|
1294
1300
|
continueApi: a,
|
|
1295
1301
|
onSuccess: c,
|
|
1296
1302
|
onError: f
|
|
1297
|
-
} = l, h = r === void 0 ?
|
|
1303
|
+
} = l, h = r === void 0 ? bn : r;
|
|
1298
1304
|
let d;
|
|
1299
1305
|
e[2] !== a || e[3] !== s || e[4] !== f || e[5] !== c ? (d = () => {
|
|
1300
1306
|
if (a) {
|
|
@@ -1346,13 +1352,13 @@ function yn(n) {
|
|
|
1346
1352
|
defaultValues: p,
|
|
1347
1353
|
mode: "onChange"
|
|
1348
1354
|
}, e[4] = p, e[5] = b) : b = e[5];
|
|
1349
|
-
const g =
|
|
1350
|
-
|
|
1351
|
-
let
|
|
1352
|
-
e[6] !== g || e[7] !== t || e[8] !== s || e[9] !== i || e[10] !== r || e[11] !== o ? (
|
|
1353
|
-
const N =
|
|
1355
|
+
const g = we(b);
|
|
1356
|
+
Xe(`signup:${t}`, g);
|
|
1357
|
+
let v;
|
|
1358
|
+
e[6] !== g || e[7] !== t || e[8] !== s || e[9] !== i || e[10] !== r || e[11] !== o ? (v = (x) => {
|
|
1359
|
+
const N = Ue[t].safeParse(x);
|
|
1354
1360
|
if (!N.success) {
|
|
1355
|
-
|
|
1361
|
+
Ye(N.error, (T, D) => g.setError(T, D));
|
|
1356
1362
|
return;
|
|
1357
1363
|
}
|
|
1358
1364
|
const P = {
|
|
@@ -1378,22 +1384,22 @@ function yn(n) {
|
|
|
1378
1384
|
return;
|
|
1379
1385
|
}
|
|
1380
1386
|
i?.(P);
|
|
1381
|
-
}, e[6] = g, e[7] = t, e[8] = s, e[9] = i, e[10] = r, e[11] = o, e[12] =
|
|
1382
|
-
const
|
|
1387
|
+
}, e[6] = g, e[7] = t, e[8] = s, e[9] = i, e[10] = r, e[11] = o, e[12] = v) : v = e[12];
|
|
1388
|
+
const y = v;
|
|
1383
1389
|
let C;
|
|
1384
|
-
e[13] !== t ? (C = (x) =>
|
|
1390
|
+
e[13] !== t ? (C = (x) => Ue[t].safeParse(x).success, e[13] = t, e[14] = C) : C = e[14];
|
|
1385
1391
|
const w = C;
|
|
1386
1392
|
let S;
|
|
1387
|
-
return e[15] !==
|
|
1393
|
+
return e[15] !== y || e[16] !== d || e[17] !== w || e[18] !== h || e[19] !== c || e[20] !== g ? (S = {
|
|
1388
1394
|
methods: g,
|
|
1389
|
-
handleSubmit:
|
|
1395
|
+
handleSubmit: y,
|
|
1390
1396
|
isPhone: h,
|
|
1391
1397
|
isForeign: d,
|
|
1392
1398
|
isFormValid: w,
|
|
1393
1399
|
isSubmitting: c
|
|
1394
|
-
}, e[15] =
|
|
1400
|
+
}, e[15] = y, e[16] = d, e[17] = w, e[18] = h, e[19] = c, e[20] = g, e[21] = S) : S = e[21], S;
|
|
1395
1401
|
}
|
|
1396
|
-
const
|
|
1402
|
+
const nt = (n) => {
|
|
1397
1403
|
const e = E.c(19), {
|
|
1398
1404
|
handlers: t
|
|
1399
1405
|
} = n, {
|
|
@@ -1411,24 +1417,24 @@ const tt = (n) => {
|
|
|
1411
1417
|
let f;
|
|
1412
1418
|
e[4] !== i ? (f = /* @__PURE__ */ u(B, { variant: "outline", size: "large", fullWidth: !0, onClick: i, children: c }), e[4] = i, e[5] = f) : f = e[5];
|
|
1413
1419
|
let h;
|
|
1414
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ u(
|
|
1420
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ u(sn, { "aria-hidden": !0 }), e[6] = h) : h = e[6];
|
|
1415
1421
|
let d;
|
|
1416
1422
|
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ u(ue, { children: "Continue with Google" }), e[7] = d) : d = e[7];
|
|
1417
1423
|
let m;
|
|
1418
1424
|
e[8] !== o ? (m = /* @__PURE__ */ u(B, { variant: "outline", size: "large", fullWidth: !0, icon: h, iconPosition: "left", onClick: o, children: d }), e[8] = o, e[9] = m) : m = e[9];
|
|
1419
1425
|
let p;
|
|
1420
|
-
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ u(
|
|
1426
|
+
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ u(rn, { "aria-hidden": !0 }), e[10] = p) : p = e[10];
|
|
1421
1427
|
let b;
|
|
1422
1428
|
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ u(ue, { children: "Continue with Apple" }), e[11] = b) : b = e[11];
|
|
1423
1429
|
let g;
|
|
1424
1430
|
e[12] !== r ? (g = /* @__PURE__ */ u(B, { variant: "outline", size: "large", fullWidth: !0, icon: p, iconPosition: "left", onClick: r, children: b }), e[12] = r, e[13] = g) : g = e[13];
|
|
1425
|
-
let
|
|
1426
|
-
return e[14] !== g || e[15] !== a || e[16] !== f || e[17] !== m ? (
|
|
1431
|
+
let v;
|
|
1432
|
+
return e[14] !== g || e[15] !== a || e[16] !== f || e[17] !== m ? (v = /* @__PURE__ */ R("div", { className: "w-full flex flex-col gap-2", children: [
|
|
1427
1433
|
a,
|
|
1428
1434
|
f,
|
|
1429
1435
|
m,
|
|
1430
1436
|
g
|
|
1431
|
-
] }), e[14] = g, e[15] = a, e[16] = f, e[17] = m, e[18] =
|
|
1437
|
+
] }), e[14] = g, e[15] = a, e[16] = f, e[17] = m, e[18] = v) : v = e[18], v;
|
|
1432
1438
|
}, ue = (n) => {
|
|
1433
1439
|
const e = E.c(2), {
|
|
1434
1440
|
children: t
|
|
@@ -1436,13 +1442,13 @@ const tt = (n) => {
|
|
|
1436
1442
|
let l;
|
|
1437
1443
|
return e[0] !== t ? (l = /* @__PURE__ */ u(O, { variant: "textLabel1", weight: "semiBold", align: "center", className: "opacity-80", children: t }), e[0] = t, e[1] = l) : l = e[1], l;
|
|
1438
1444
|
};
|
|
1439
|
-
function
|
|
1440
|
-
const e = E.c(2), t =
|
|
1445
|
+
function kn(n) {
|
|
1446
|
+
const e = E.c(2), t = tt(n);
|
|
1441
1447
|
let l;
|
|
1442
|
-
return e[0] !== t ? (l = /* @__PURE__ */ u(
|
|
1448
|
+
return e[0] !== t ? (l = /* @__PURE__ */ u(nt, { handlers: t }), e[0] = t, e[1] = l) : l = e[1], l;
|
|
1443
1449
|
}
|
|
1444
|
-
const
|
|
1445
|
-
const e = E.c(17), t =
|
|
1450
|
+
const Dn = (n) => {
|
|
1451
|
+
const e = E.c(17), t = tt(n);
|
|
1446
1452
|
let l;
|
|
1447
1453
|
e[0] !== n.onEnterpriseLogin ? (l = n.onEnterpriseLogin != null && {
|
|
1448
1454
|
onClick: n.onEnterpriseLogin
|
|
@@ -1458,15 +1464,15 @@ const kn = (n) => {
|
|
|
1458
1464
|
}, e[4] = l, e[5] = i, e[6] = o) : o = e[6];
|
|
1459
1465
|
const r = o;
|
|
1460
1466
|
let s;
|
|
1461
|
-
e[7] !== r ? (s = /* @__PURE__ */ u(
|
|
1467
|
+
e[7] !== r ? (s = /* @__PURE__ */ u(bt, { ...r }), e[7] = r, e[8] = s) : s = e[8];
|
|
1462
1468
|
let a, c, f;
|
|
1463
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ u(O, { 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(O, { 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." }), f = /* @__PURE__ */ u(
|
|
1469
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ u(O, { 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(O, { 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." }), f = /* @__PURE__ */ u(He, {}), e[9] = a, e[10] = c, e[11] = f) : (a = e[9], c = e[10], f = e[11]);
|
|
1464
1470
|
let h;
|
|
1465
|
-
e[12] !== t ? (h = /* @__PURE__ */ u(
|
|
1471
|
+
e[12] !== t ? (h = /* @__PURE__ */ u(nt, { handlers: t }), e[12] = t, e[13] = h) : h = e[13];
|
|
1466
1472
|
let d;
|
|
1467
|
-
return e[14] !== s || e[15] !== h ? (d = /* @__PURE__ */ u(
|
|
1473
|
+
return e[14] !== s || e[15] !== h ? (d = /* @__PURE__ */ u(oe, { layoutType: "withSlider", variant: "desktop", header: s, logo: Ve, align: "center", title: a, description: c, footer: f, children: h }), e[14] = s, e[15] = h, e[16] = d) : d = e[16], d;
|
|
1468
1474
|
};
|
|
1469
|
-
function
|
|
1475
|
+
function Cn(n) {
|
|
1470
1476
|
const e = E.c(10), {
|
|
1471
1477
|
name: t,
|
|
1472
1478
|
label: l,
|
|
@@ -1475,7 +1481,7 @@ function vn(n) {
|
|
|
1475
1481
|
length: r,
|
|
1476
1482
|
inputClassName: s,
|
|
1477
1483
|
autoFocus: a
|
|
1478
|
-
} = n, c = r === void 0 ? 6 : r, f =
|
|
1484
|
+
} = n, c = r === void 0 ? 6 : r, f = ie(), h = o || f.control;
|
|
1479
1485
|
let d;
|
|
1480
1486
|
e[0] !== a || e[1] !== i || e[2] !== s || e[3] !== l || e[4] !== c ? (d = (p) => {
|
|
1481
1487
|
const {
|
|
@@ -1484,7 +1490,7 @@ function vn(n) {
|
|
|
1484
1490
|
} = p;
|
|
1485
1491
|
return /* @__PURE__ */ R("div", { children: [
|
|
1486
1492
|
l && /* @__PURE__ */ u("label", { className: "block mb-1", children: l }),
|
|
1487
|
-
/* @__PURE__ */ u(
|
|
1493
|
+
/* @__PURE__ */ u(st, { length: c, value: b.value || [], onChange: b.onChange, ...a !== void 0 && {
|
|
1488
1494
|
autoFocus: a
|
|
1489
1495
|
}, ...i && {
|
|
1490
1496
|
className: i
|
|
@@ -1498,7 +1504,7 @@ function vn(n) {
|
|
|
1498
1504
|
let m;
|
|
1499
1505
|
return e[6] !== t || e[7] !== h || e[8] !== d ? (m = /* @__PURE__ */ u(me, { name: t, control: h, render: d }), e[6] = t, e[7] = h, e[8] = d, e[9] = m) : m = e[9], m;
|
|
1500
1506
|
}
|
|
1501
|
-
function
|
|
1507
|
+
function Sn(n) {
|
|
1502
1508
|
const e = E.c(28), {
|
|
1503
1509
|
mode: t,
|
|
1504
1510
|
title: l,
|
|
@@ -1509,7 +1515,7 @@ function Cn(n) {
|
|
|
1509
1515
|
canResend: a,
|
|
1510
1516
|
timerText: c,
|
|
1511
1517
|
isSubmitting: f
|
|
1512
|
-
} = n, h =
|
|
1518
|
+
} = n, h = ie();
|
|
1513
1519
|
let d;
|
|
1514
1520
|
e[0] !== r || e[1] !== h ? (d = h.handleSubmit(r), e[0] = r, e[1] = h, e[2] = d) : d = e[2];
|
|
1515
1521
|
let m;
|
|
@@ -1518,26 +1524,26 @@ function Cn(n) {
|
|
|
1518
1524
|
let b;
|
|
1519
1525
|
e[5] !== i || e[6] !== p ? (b = /* @__PURE__ */ u(O, { variant: "title2", align: "left", className: p, children: i }), e[5] = i, e[6] = p, e[7] = b) : b = e[7];
|
|
1520
1526
|
let g;
|
|
1521
|
-
e[8] !== o || e[9] !== t ? (g = o && /* @__PURE__ */ u(O, { variant: "textLabel1", weight: "semiBold", align: "left", className: "mb-6 text-neutral-black", children:
|
|
1522
|
-
let y;
|
|
1523
|
-
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(vn, { name: "otp", length: he, autoFocus: !0, inputClassName: "!h-[44px] !w-[44px]" }) }), e[11] = y) : y = e[11];
|
|
1527
|
+
e[8] !== o || e[9] !== t ? (g = o && /* @__PURE__ */ u(O, { variant: "textLabel1", weight: "semiBold", align: "left", className: "mb-6 text-neutral-black", children: dn[t] }), e[8] = o, e[9] = t, e[10] = g) : g = e[10];
|
|
1524
1528
|
let v;
|
|
1525
|
-
e[
|
|
1529
|
+
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ u("div", { className: "mb-4 flex w-full flex-col gap-[12px]", children: /* @__PURE__ */ u(Cn, { name: "otp", length: he, autoFocus: !0, inputClassName: "!h-[44px] !w-[44px]" }) }), e[11] = v) : v = e[11];
|
|
1530
|
+
let y;
|
|
1531
|
+
e[12] !== a || e[13] !== s || e[14] !== c ? (y = /* @__PURE__ */ u("div", { className: "mb-6 font-medium flex items-center gap-2", children: a ? /* @__PURE__ */ u(B, { type: "button", variant: "outline", size: "small", onClick: s, className: "!h-[28px]", children: "Resend Code" }) : /* @__PURE__ */ u(O, { variant: "textLabel3", align: "left", className: "text-neutral-black", children: c }) }), e[12] = a, e[13] = s, e[14] = c, e[15] = y) : y = e[15];
|
|
1526
1532
|
let C;
|
|
1527
1533
|
e[16] !== f ? (C = f ? /* @__PURE__ */ u(be, { size: 32, strokeWidth: 2 }) : "Submit", e[16] = f, e[17] = C) : C = e[17];
|
|
1528
1534
|
let w;
|
|
1529
1535
|
e[18] !== f || e[19] !== C ? (w = /* @__PURE__ */ u(B, { type: "submit", variant: "primary", size: "large", fullWidth: !0, disabled: f, children: C }), e[18] = f, e[19] = C, e[20] = w) : w = e[20];
|
|
1530
1536
|
let S;
|
|
1531
|
-
return e[21] !== d || e[22] !== m || e[23] !== b || e[24] !== g || e[25] !==
|
|
1537
|
+
return e[21] !== d || e[22] !== m || e[23] !== b || e[24] !== g || e[25] !== y || e[26] !== w ? (S = /* @__PURE__ */ R("form", { onSubmit: d, className: "flex w-full flex-col", noValidate: !0, children: [
|
|
1532
1538
|
m,
|
|
1533
1539
|
b,
|
|
1534
1540
|
g,
|
|
1535
|
-
y,
|
|
1536
1541
|
v,
|
|
1542
|
+
y,
|
|
1537
1543
|
w
|
|
1538
|
-
] }), e[21] = d, e[22] = m, e[23] = b, e[24] = g, e[25] =
|
|
1544
|
+
] }), e[21] = d, e[22] = m, e[23] = b, e[24] = g, e[25] = y, e[26] = w, e[27] = S) : S = e[27], S;
|
|
1539
1545
|
}
|
|
1540
|
-
function
|
|
1546
|
+
function xn(n) {
|
|
1541
1547
|
const e = E.c(21), {
|
|
1542
1548
|
mode: t,
|
|
1543
1549
|
title: l,
|
|
@@ -1564,16 +1570,16 @@ function Sn(n) {
|
|
|
1564
1570
|
methods: p,
|
|
1565
1571
|
handleSubmit: b,
|
|
1566
1572
|
handleResend: g,
|
|
1567
|
-
canResend:
|
|
1568
|
-
timerText:
|
|
1573
|
+
canResend: v,
|
|
1574
|
+
timerText: y,
|
|
1569
1575
|
isSubmitting: C
|
|
1570
|
-
} =
|
|
1576
|
+
} = mn(m), w = l ?? fn[t];
|
|
1571
1577
|
let S;
|
|
1572
|
-
e[8] !==
|
|
1578
|
+
e[8] !== v || e[9] !== w || e[10] !== g || e[11] !== b || e[12] !== d || e[13] !== C || e[14] !== t || e[15] !== i || e[16] !== y ? (S = /* @__PURE__ */ u(Sn, { mode: t, title: w, recipientDisplay: i, isForeignUser: d, handleSubmit: b, handleResend: g, canResend: v, timerText: y, isSubmitting: C }), e[8] = v, e[9] = w, 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];
|
|
1573
1579
|
let x;
|
|
1574
|
-
return e[18] !== p || e[19] !== S ? (x = /* @__PURE__ */ u(
|
|
1580
|
+
return e[18] !== p || e[19] !== S ? (x = /* @__PURE__ */ u(Ne, { ...p, children: S }), e[18] = p, e[19] = S, e[20] = x) : x = e[20], x;
|
|
1575
1581
|
}
|
|
1576
|
-
function
|
|
1582
|
+
function $n(n) {
|
|
1577
1583
|
const e = E.c(24);
|
|
1578
1584
|
let t, l, i, o;
|
|
1579
1585
|
e[0] !== n ? ({
|
|
@@ -1584,13 +1590,13 @@ function Dn(n) {
|
|
|
1584
1590
|
} = 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]);
|
|
1585
1591
|
const r = i === void 0 ? "withSlider" : i;
|
|
1586
1592
|
let s;
|
|
1587
|
-
e[5] !== l ? (s = l != null ? /* @__PURE__ */ u(
|
|
1593
|
+
e[5] !== l ? (s = l != null ? /* @__PURE__ */ u(ve, { onClick: l }) : void 0, e[5] = l, e[6] = s) : s = e[6];
|
|
1588
1594
|
let a;
|
|
1589
|
-
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(
|
|
1595
|
+
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(xn, { 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];
|
|
1590
1596
|
let c;
|
|
1591
|
-
return e[19] !== r || e[20] !== s || e[21] !== a || e[22] !== o ? (c = /* @__PURE__ */ u(
|
|
1597
|
+
return e[19] !== r || e[20] !== s || e[21] !== a || e[22] !== o ? (c = /* @__PURE__ */ u(oe, { layoutType: r, variant: o, contentWidth: "sm", align: "left", backButton: s, className: Ee, children: a }), e[19] = r, e[20] = s, e[21] = a, e[22] = o, e[23] = c) : c = e[23], c;
|
|
1592
1598
|
}
|
|
1593
|
-
function
|
|
1599
|
+
function wn(n) {
|
|
1594
1600
|
const e = E.c(21);
|
|
1595
1601
|
let t, l;
|
|
1596
1602
|
e[0] !== n ? ({
|
|
@@ -1609,7 +1615,7 @@ function xn(n) {
|
|
|
1609
1615
|
handleContinue: o,
|
|
1610
1616
|
isSubmitting: r,
|
|
1611
1617
|
lastUsedMethod: s
|
|
1612
|
-
} =
|
|
1618
|
+
} = vn(i), a = r ? "Continuing…" : `Continue with ${s}`;
|
|
1613
1619
|
let c;
|
|
1614
1620
|
e[9] !== a ? (c = /* @__PURE__ */ u(O, { variant: "textLabel1", weight: "semiBold", align: "center", className: "text-neutral-white", children: a }), e[9] = a, e[10] = c) : c = e[10];
|
|
1615
1621
|
let f;
|
|
@@ -1624,7 +1630,7 @@ function xn(n) {
|
|
|
1624
1630
|
d
|
|
1625
1631
|
] }), e[18] = f, e[19] = d, e[20] = m) : m = e[20], m;
|
|
1626
1632
|
}
|
|
1627
|
-
function
|
|
1633
|
+
function Wn(n) {
|
|
1628
1634
|
const e = E.c(18), {
|
|
1629
1635
|
lastUsedMethod: t,
|
|
1630
1636
|
onContinueWithLastMethod: l,
|
|
@@ -1648,19 +1654,19 @@ function $n(n) {
|
|
|
1648
1654
|
" to log in."
|
|
1649
1655
|
] }), e[2] = f, e[3] = p) : p = e[3];
|
|
1650
1656
|
let b;
|
|
1651
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ u(
|
|
1657
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ u(He, {}), e[4] = b) : b = e[4];
|
|
1652
1658
|
let g;
|
|
1653
|
-
e[5] !== o || e[6] !== f || e[7] !== l || e[8] !== s || e[9] !== r || e[10] !== i ? (g = /* @__PURE__ */ u(
|
|
1654
|
-
let
|
|
1655
|
-
return e[12] !== h || e[13] !== m || e[14] !== p || e[15] !== g || e[16] !== c ? (
|
|
1659
|
+
e[5] !== o || e[6] !== f || e[7] !== l || e[8] !== s || e[9] !== r || e[10] !== i ? (g = /* @__PURE__ */ u(wn, { lastUsedMethod: f, onContinueWithLastMethod: l, onUseAnotherMethod: i, continueApi: o, onSuccess: r, onError: s }), e[5] = o, e[6] = f, e[7] = l, e[8] = s, e[9] = r, e[10] = i, e[11] = g) : g = e[11];
|
|
1660
|
+
let v;
|
|
1661
|
+
return e[12] !== h || e[13] !== m || e[14] !== p || e[15] !== g || e[16] !== c ? (v = /* @__PURE__ */ u(oe, { layoutType: h, variant: c, logo: Ve, title: m, description: p, footer: b, children: g }), e[12] = h, e[13] = m, e[14] = p, e[15] = g, e[16] = c, e[17] = v) : v = e[17], v;
|
|
1656
1662
|
}
|
|
1657
|
-
function
|
|
1663
|
+
function Nn(n) {
|
|
1658
1664
|
const e = E.c(16), {
|
|
1659
1665
|
isPhone: t,
|
|
1660
1666
|
isForeign: l,
|
|
1661
1667
|
handleSubmit: i,
|
|
1662
1668
|
isSubmitting: o
|
|
1663
|
-
} = n, r =
|
|
1669
|
+
} = n, r = ie();
|
|
1664
1670
|
let s;
|
|
1665
1671
|
e[0] !== i || e[1] !== r ? (s = r.handleSubmit(i), e[0] = i, e[1] = r, e[2] = s) : s = e[2];
|
|
1666
1672
|
let a;
|
|
@@ -1670,8 +1676,8 @@ function wn(n) {
|
|
|
1670
1676
|
a,
|
|
1671
1677
|
l ? /* @__PURE__ */ R(fe, { children: [
|
|
1672
1678
|
/* @__PURE__ */ u(de, { name: "email", placeholder: "Email address", type: "email", className: "w-full" }),
|
|
1673
|
-
/* @__PURE__ */ u(
|
|
1674
|
-
] }) : t ? /* @__PURE__ */ u(
|
|
1679
|
+
/* @__PURE__ */ u(xe, { name: "phone", label: "", placeholder: "Phone number", countryCode: "+91", countryCodeName: "countryCode", defaultCountry: "IN" })
|
|
1680
|
+
] }) : t ? /* @__PURE__ */ u(xe, { name: "phone", label: "", placeholder: "Phone number", countryCode: "+91", countryCodeName: "countryCode", defaultCountry: "IN" }) : /* @__PURE__ */ u(de, { name: "email", placeholder: "Email address", type: "email", className: "w-full" })
|
|
1675
1681
|
] }), e[4] = l, e[5] = t, e[6] = c) : c = e[6];
|
|
1676
1682
|
let f;
|
|
1677
1683
|
e[7] !== o ? (f = o ? /* @__PURE__ */ u(be, { size: 32, strokeWidth: 2 }) : "Continue", e[7] = o, e[8] = f) : f = e[8];
|
|
@@ -1683,7 +1689,7 @@ function wn(n) {
|
|
|
1683
1689
|
h
|
|
1684
1690
|
] }), e[12] = s, e[13] = c, e[14] = h, e[15] = d) : d = e[15], d;
|
|
1685
1691
|
}
|
|
1686
|
-
function
|
|
1692
|
+
function En(n) {
|
|
1687
1693
|
const e = E.c(15), {
|
|
1688
1694
|
userType: t,
|
|
1689
1695
|
signupCollectField: l,
|
|
@@ -1709,12 +1715,12 @@ function Nn(n) {
|
|
|
1709
1715
|
isForeign: b,
|
|
1710
1716
|
isSubmitting: g
|
|
1711
1717
|
} = yn(h);
|
|
1712
|
-
let y;
|
|
1713
|
-
e[7] !== m || e[8] !== b || e[9] !== p || e[10] !== g ? (y = /* @__PURE__ */ u(wn, { isPhone: p, isForeign: b, handleSubmit: m, isSubmitting: g }), e[7] = m, e[8] = b, e[9] = p, e[10] = g, e[11] = y) : y = e[11];
|
|
1714
1718
|
let v;
|
|
1715
|
-
|
|
1719
|
+
e[7] !== m || e[8] !== b || e[9] !== p || e[10] !== g ? (v = /* @__PURE__ */ u(Nn, { isPhone: p, isForeign: b, handleSubmit: m, isSubmitting: g }), e[7] = m, e[8] = b, e[9] = p, e[10] = g, e[11] = v) : v = e[11];
|
|
1720
|
+
let y;
|
|
1721
|
+
return e[12] !== d || e[13] !== v ? (y = /* @__PURE__ */ u(Ne, { ...d, children: v }), e[12] = d, e[13] = v, e[14] = y) : y = e[14], y;
|
|
1716
1722
|
}
|
|
1717
|
-
function
|
|
1723
|
+
function Mn(n) {
|
|
1718
1724
|
const e = E.c(21), {
|
|
1719
1725
|
layoutType: t,
|
|
1720
1726
|
variant: l
|
|
@@ -1732,7 +1738,7 @@ function Wn(n) {
|
|
|
1732
1738
|
}, 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];
|
|
1733
1739
|
const s = r;
|
|
1734
1740
|
let a;
|
|
1735
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ u("img", { src:
|
|
1741
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ u("img", { src: mt, alt: "Docthub Logo", width: 46, height: 46 }), e[9] = a) : a = e[9];
|
|
1736
1742
|
const c = a;
|
|
1737
1743
|
let f;
|
|
1738
1744
|
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ u(O, { variant: "h5", weight: "extraBold", align: "center", className: "text-neutral-black mt-4 md:mt-6 -mb-1", children: "Welcome to Docthub" }), e[10] = f) : f = e[10];
|
|
@@ -1751,43 +1757,43 @@ function Wn(n) {
|
|
|
1751
1757
|
"for extended security of your account."
|
|
1752
1758
|
] }), e[12] = p, e[13] = b) : b = e[13];
|
|
1753
1759
|
const g = b;
|
|
1754
|
-
let y;
|
|
1755
|
-
e[14] !== s ? (y = /* @__PURE__ */ u(Nn, { ...s }), e[14] = s, e[15] = y) : y = e[15];
|
|
1756
1760
|
let v;
|
|
1757
|
-
|
|
1761
|
+
e[14] !== s ? (v = /* @__PURE__ */ u(En, { ...s }), e[14] = s, e[15] = v) : v = e[15];
|
|
1762
|
+
let y;
|
|
1763
|
+
return e[16] !== g || e[17] !== i || e[18] !== v || e[19] !== o ? (y = /* @__PURE__ */ u(oe, { 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;
|
|
1758
1764
|
}
|
|
1759
1765
|
export {
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1766
|
+
oe as A,
|
|
1767
|
+
ve as B,
|
|
1768
|
+
fn as D,
|
|
1769
|
+
bt as E,
|
|
1770
|
+
Pt as I,
|
|
1771
|
+
Ln as L,
|
|
1772
|
+
kn as M,
|
|
1773
|
+
xn as O,
|
|
1774
|
+
wn as R,
|
|
1775
|
+
En as S,
|
|
1776
|
+
Yt as a,
|
|
1777
|
+
Fn as b,
|
|
1778
|
+
Dn as c,
|
|
1779
|
+
$n as d,
|
|
1780
|
+
Wn as e,
|
|
1781
|
+
Mn as f,
|
|
1776
1782
|
E as g,
|
|
1777
1783
|
q as h,
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1784
|
+
Tt as i,
|
|
1785
|
+
Rn as j,
|
|
1786
|
+
kt as k,
|
|
1787
|
+
He as l,
|
|
1788
|
+
Ot as m,
|
|
1783
1789
|
he as n,
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1790
|
+
Gt as o,
|
|
1791
|
+
Vt as p,
|
|
1792
|
+
Xe as q,
|
|
1793
|
+
qt as r,
|
|
1794
|
+
tt as s,
|
|
1795
|
+
mn as t,
|
|
1796
|
+
Rt as u,
|
|
1797
|
+
vn as v,
|
|
1792
1798
|
yn as w
|
|
1793
1799
|
};
|