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