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