doct-ui-auth-kit 1.0.4 → 1.0.5
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 +15 -0
- package/dist/doct-ui-auth-kit.css +1 -0
- package/dist/index.d.ts +18 -9
- package/dist/index.js +17 -12
- package/dist/pages/index.d.ts +5 -5
- package/dist/pages.js +11 -6
- package/dist/{signup-BpiNvZy4.js → signup-BJWKwg7j.js} +158 -149
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,6 +14,21 @@ Peer dependencies (install in your app if not already present):
|
|
|
14
14
|
npm install react react-dom docthub-core-components react-hook-form zod
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
## Global styles
|
|
18
|
+
|
|
19
|
+
Import the kit CSS once in your app (e.g. in `main.tsx` or `_app.tsx`) so Tailwind and base styles apply:
|
|
20
|
+
|
|
21
|
+
```tsx
|
|
22
|
+
import 'doct-ui-auth-kit/style.css';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
If you use `docthub-core-components`, import its styles first, then the auth kit:
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
import 'docthub-core-components/style.css';
|
|
29
|
+
import 'doct-ui-auth-kit/style.css';
|
|
30
|
+
```
|
|
31
|
+
|
|
17
32
|
## Consumer imports
|
|
18
33
|
|
|
19
34
|
Install the package and import components, layouts, and types from the library:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-inter),Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-top-10{top:-2.5rem}.left-1\/2{left:50%}.top-2\.5{top:.625rem}.top-\[152\.5px\]{top:152.5px}.z-10{z-index:10}.z-20{z-index:20}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.hidden{display:none}.h-1{height:.25rem}.h-10{height:2.5rem}.h-5{height:1.25rem}.h-\[100dvh\]{height:100dvh}.h-\[30px\]{height:30px}.h-full{height:100%}.min-h-0{min-height:0px}.min-h-svh{min-height:100svh}.w-10{width:2.5rem}.w-2{width:.5rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-\[140px\]{width:140px}.w-\[328px\]{width:328px}.w-auto{width:auto}.w-full{width:100%}.w-screen{width:100vw}.min-w-0{min-width:0px}.min-w-full{min-width:100%}.max-w-\[320px\]{max-width:320px}.max-w-\[360px\]{max-width:360px}.max-w-\[400px\]{max-width:400px}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-\[12px\]{gap:12px}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.whitespace-pre-line{white-space:pre-line}.rounded-\[10px\]{border-radius:10px}.rounded-\[3px\]{border-radius:3px}.border{border-width:1px}.border-\[rgba\(0\,0\,0\,0\.12\)\]{border-color:#0000001f}.bg-\[\#002830\]{--tw-bg-opacity: 1;background-color:rgb(0 40 48 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/40{background-color:#fff6}.bg-white\/50{background-color:#ffffff80}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-2{padding:.5rem}.p-8{padding:2rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-\[22px\]{padding-left:22px;padding-right:22px}.py-12{padding-top:3rem;padding-bottom:3rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[14px\]{padding-top:14px;padding-bottom:14px}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-bold{font-weight:700}.font-semibold{font-weight:600}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.text-\[\#002830\]{--tw-text-opacity: 1;color:rgb(0 40 48 / var(--tw-text-opacity, 1))}.text-\[\#1e595a\]{--tw-text-opacity: 1;color:rgb(30 89 90 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-black\/80{color:#000c}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.opacity-40{opacity:.4}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}:root{font-family:var( --font-inter, "Inter", system-ui, Avenir, Helvetica, Arial, sans-serif );line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px;min-height:100vh}#root{min-height:100vh;width:100%}.hover\:bg-white\/60:hover{background-color:#fff9}@media(min-width:640px){.sm\:flex{display:flex}}@media(min-width:768px){.md\:mb-6{margin-bottom:1.5rem}.md\:px-\[20px\]{padding-left:20px;padding-right:20px}.md\:py-12{padding-top:3rem;padding-bottom:3rem}.md\:py-8{padding-top:2rem;padding-bottom:2rem}.md\:pt-\[20px\]{padding-top:20px}}@media(min-width:1024px){.lg\:block{display:block}.lg\:h-\[100dvh\]{height:100dvh}.lg\:w-\[432px\]{width:432px}.lg\:flex-shrink-0{flex-shrink:0}.lg\:flex-grow-0{flex-grow:0}.lg\:flex-row{flex-direction:row}}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auth SDK UI Kit – library entry point.
|
|
3
|
-
* Consumers can import components, layouts, hooks, core (SSO provider, flow, session), and auth methods.
|
|
3
|
+
* Consumers can import components, layouts (composition + preset), hooks, core (SSO provider, flow, session), and auth methods.
|
|
4
|
+
*
|
|
5
|
+
* Import the kit styles once globally in your app (e.g. in main.tsx):
|
|
6
|
+
* `import 'doct-ui-auth-kit/style.css';`
|
|
4
7
|
*
|
|
5
8
|
* @example
|
|
6
9
|
* ```ts
|
|
@@ -11,17 +14,23 @@
|
|
|
11
14
|
* useAuthSession,
|
|
12
15
|
* MainLayout,
|
|
13
16
|
* AuthLayout,
|
|
17
|
+
* ImageSlider,
|
|
18
|
+
* AuthLayoutWrapper,
|
|
14
19
|
* LoginEntry,
|
|
15
20
|
* OtpVerification,
|
|
16
21
|
* useGoogleAuth,
|
|
17
22
|
* } from 'doct-ui-auth-kit';
|
|
18
23
|
* ```
|
|
19
24
|
*/
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export * from '
|
|
25
|
+
import './index.css';
|
|
26
|
+
export { createHttpAuthAdapter } from '@/adapters';
|
|
27
|
+
export { Auth } from '@/auth';
|
|
28
|
+
export type { UseAppleSignInOptions, UseGoogleAuthOptions, UseGoogleAuthReturn, } from '@/auth-methods';
|
|
29
|
+
export { useAppleSignIn, useGoogleAuth } from '@/auth-methods';
|
|
30
|
+
export type { AuthLayoutPresetProps, AuthLayoutType, AuthLayoutWrapperProps, } from '@/components/layout';
|
|
31
|
+
export { AuthLayout, AuthLayoutPreset, AuthLayoutWrapper, ImageSlider, MainLayout, } from '@/components/layout';
|
|
32
|
+
export * from '@/core';
|
|
33
|
+
export * from '@/hooks';
|
|
34
|
+
export type { LoginEntryPageProps, LoginEntryProps, MainLoginPageProps, MainLoginPageProvidersConfig, OtpVerificationPageProps, OtpVerificationProps, RepeatLoginPageProps, RepeatLoginProps, SignupPageFullProps, SignupPageProps, } from '@/pages';
|
|
35
|
+
export { LoginEntry, LoginEntryPage, MainLogin, MainLoginPage, OtpVerification, OtpVerificationPage, RepeatLogin, RepeatLoginPage, Signup, SignupPage, } from '@/pages';
|
|
36
|
+
export * from '@/types';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as G, Fragment as Kt } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { D as a1, I as o1,
|
|
2
|
+
import { f as le, A as Zr, g as Xr, u as Jr, d as zr, e as Qr, c as ei, a as Yt, b as ti, O as ni, S as ri } from "./signup-BJWKwg7j.js";
|
|
3
|
+
import { D as a1, I as o1, L as d1, h as u1, M as l1, i as s1, j as c1, k as f1, R as $1, l as p1, m as y1, n as h1, o as m1, p as g1, q as v1 } from "./signup-BJWKwg7j.js";
|
|
4
4
|
import N, { createContext as ii, useContext as tr, useRef as nr, useCallback as ae, useMemo as We, useReducer as ai, useEffect as oi } from "react";
|
|
5
5
|
import { DoctCircularProgress as di } from "docthub-core-components";
|
|
6
6
|
function Ft(e) {
|
|
@@ -7128,15 +7128,20 @@ export {
|
|
|
7128
7128
|
a1 as DEFAULT_OTP_TITLES,
|
|
7129
7129
|
Bl as INITIAL_STEP,
|
|
7130
7130
|
o1 as ImageSlider,
|
|
7131
|
+
d1 as LoginEntry,
|
|
7131
7132
|
Yt as LoginEntryPage,
|
|
7132
|
-
|
|
7133
|
+
u1 as MainLayout,
|
|
7134
|
+
l1 as MainLogin,
|
|
7133
7135
|
ti as MainLoginPage,
|
|
7134
|
-
|
|
7136
|
+
s1 as OTP_LENGTH,
|
|
7137
|
+
ni as OtpVerification,
|
|
7135
7138
|
ei as OtpVerificationPage,
|
|
7136
|
-
|
|
7137
|
-
|
|
7139
|
+
c1 as RESEND_COOLDOWN_EMAIL_SECONDS,
|
|
7140
|
+
f1 as RESEND_COOLDOWN_PHONE_SECONDS,
|
|
7141
|
+
$1 as RepeatLogin,
|
|
7138
7142
|
zr as RepeatLoginPage,
|
|
7139
7143
|
Hl as SSOAuthProvider,
|
|
7144
|
+
ri as Signup,
|
|
7140
7145
|
Qr as SignupPage,
|
|
7141
7146
|
Wl as authFlowReducer,
|
|
7142
7147
|
kl as clearRepeatLoginInfo,
|
|
@@ -7147,13 +7152,13 @@ export {
|
|
|
7147
7152
|
Gl as localStorageTokenStorage,
|
|
7148
7153
|
e1 as serverCookieTokenStorage,
|
|
7149
7154
|
jl as setRepeatLoginInfo,
|
|
7150
|
-
|
|
7155
|
+
p1 as useAppleSignIn,
|
|
7151
7156
|
fi as useAuthFlow,
|
|
7152
7157
|
Ql as useAuthSession,
|
|
7153
7158
|
Jr as useGoogleAuth,
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
+
y1 as useLoginEntryForm,
|
|
7160
|
+
h1 as useMainAuthPageHandlers,
|
|
7161
|
+
m1 as useOtpVerification,
|
|
7162
|
+
g1 as useRepeatLogin,
|
|
7163
|
+
v1 as useSignupForm
|
|
7159
7164
|
};
|
package/dist/pages/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { type LoginEntryMode, LoginEntryPage, type LoginEntryPageProps, type LoginEntryProps, } from './login-entry';
|
|
2
|
-
export { type MainLoginAppleProviderConfig, type MainLoginGoogleProviderConfig, MainLoginPage, type MainLoginPageProps, type MainLoginPageProvidersConfig, } from './main-login';
|
|
3
|
-
export { type OtpVerificationMode, OtpVerificationPage, type OtpVerificationPageProps, type OtpVerificationProps, } from './otp-verification';
|
|
4
|
-
export { RepeatLoginPage, type RepeatLoginPageProps, type RepeatLoginProps, } from './repeat-login';
|
|
5
|
-
export { SignupPage, type SignupPageFullProps, type SignupPageProps, } from './signup';
|
|
1
|
+
export { LoginEntry, type LoginEntryMode, LoginEntryPage, type LoginEntryPageProps, type LoginEntryProps, } from './login-entry';
|
|
2
|
+
export { MainLogin, type MainLoginAppleProviderConfig, type MainLoginGoogleProviderConfig, MainLoginPage, type MainLoginPageProps, type MainLoginPageProvidersConfig, } from './main-login';
|
|
3
|
+
export { OtpVerification, type OtpVerificationMode, OtpVerificationPage, type OtpVerificationPageProps, type OtpVerificationProps, } from './otp-verification';
|
|
4
|
+
export { RepeatLogin, RepeatLoginPage, type RepeatLoginPageProps, type RepeatLoginProps, } from './repeat-login';
|
|
5
|
+
export { Signup, SignupPage, type SignupPageFullProps, type SignupPageProps, } from './signup';
|
package/dist/pages.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { L as
|
|
1
|
+
import { L as n, a as e, M as g, b as o, O as s, c as t, R as p, d as L, S as r, e as P } from "./signup-BJWKwg7j.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
o as
|
|
7
|
-
s as
|
|
3
|
+
n as LoginEntry,
|
|
4
|
+
e as LoginEntryPage,
|
|
5
|
+
g as MainLogin,
|
|
6
|
+
o as MainLoginPage,
|
|
7
|
+
s as OtpVerification,
|
|
8
|
+
t as OtpVerificationPage,
|
|
9
|
+
p as RepeatLogin,
|
|
10
|
+
L as RepeatLoginPage,
|
|
11
|
+
r as Signup,
|
|
12
|
+
P as SignupPage
|
|
8
13
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as F, jsx as p, Fragment as
|
|
2
|
-
import { DoctTypography as I, DoctButton as M, DoctPhoneInput as
|
|
1
|
+
import { jsxs as F, jsx as p, Fragment as Ge } from "react/jsx-runtime";
|
|
2
|
+
import { DoctTypography as I, DoctButton as M, DoctPhoneInput as Ve, DoctLabeledInput as qe, DoctOtpInput as Ye } from "docthub-core-components";
|
|
3
3
|
import { useFormContext as ne, Controller as ve, useForm as be, FormProvider as ye } from "react-hook-form";
|
|
4
|
-
import H, { createContext as
|
|
4
|
+
import H, { createContext as Ke, useContext as Xe, useState as V, useEffect as te, useRef as le } from "react";
|
|
5
5
|
import { z as W } from "zod";
|
|
6
6
|
var ce = { exports: {} }, he = {};
|
|
7
7
|
var Ee;
|
|
8
|
-
function
|
|
8
|
+
function Ze() {
|
|
9
9
|
if (Ee) return he;
|
|
10
10
|
Ee = 1;
|
|
11
11
|
var n = H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
@@ -15,7 +15,7 @@ function Ke() {
|
|
|
15
15
|
}
|
|
16
16
|
var ge = {};
|
|
17
17
|
var Pe;
|
|
18
|
-
function
|
|
18
|
+
function Je() {
|
|
19
19
|
return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
20
20
|
var n = H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
21
21
|
ge.c = function(e) {
|
|
@@ -31,19 +31,19 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
31
31
|
})()), ge;
|
|
32
32
|
}
|
|
33
33
|
var Ae;
|
|
34
|
-
function
|
|
35
|
-
return Ae || (Ae = 1, process.env.NODE_ENV === "production" ? ce.exports =
|
|
34
|
+
function Qe() {
|
|
35
|
+
return Ae || (Ae = 1, process.env.NODE_ENV === "production" ? ce.exports = Ze() : ce.exports = Je()), ce.exports;
|
|
36
36
|
}
|
|
37
|
-
var E =
|
|
37
|
+
var E = Qe(), Me = {
|
|
38
38
|
color: void 0,
|
|
39
39
|
size: void 0,
|
|
40
40
|
className: void 0,
|
|
41
41
|
style: void 0,
|
|
42
42
|
attr: void 0
|
|
43
|
-
}, Oe = H.createContext && /* @__PURE__ */ H.createContext(Me),
|
|
44
|
-
function
|
|
43
|
+
}, Oe = H.createContext && /* @__PURE__ */ H.createContext(Me), et = ["attr", "size", "title"];
|
|
44
|
+
function tt(n, e) {
|
|
45
45
|
if (n == null) return {};
|
|
46
|
-
var t =
|
|
46
|
+
var t = nt(n, e), l, s;
|
|
47
47
|
if (Object.getOwnPropertySymbols) {
|
|
48
48
|
var o = Object.getOwnPropertySymbols(n);
|
|
49
49
|
for (s = 0; s < o.length; s++)
|
|
@@ -51,7 +51,7 @@ function Qe(n, e) {
|
|
|
51
51
|
}
|
|
52
52
|
return t;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function nt(n, e) {
|
|
55
55
|
if (n == null) return {};
|
|
56
56
|
var t = {};
|
|
57
57
|
for (var l in n)
|
|
@@ -85,21 +85,21 @@ function fe(n) {
|
|
|
85
85
|
for (var e = 1; e < arguments.length; e++) {
|
|
86
86
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
87
87
|
e % 2 ? Te(Object(t), !0).forEach(function(l) {
|
|
88
|
-
|
|
88
|
+
lt(n, l, t[l]);
|
|
89
89
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Te(Object(t)).forEach(function(l) {
|
|
90
90
|
Object.defineProperty(n, l, Object.getOwnPropertyDescriptor(t, l));
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
return n;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
return e =
|
|
95
|
+
function lt(n, e, t) {
|
|
96
|
+
return e = it(e), e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
var e =
|
|
98
|
+
function it(n) {
|
|
99
|
+
var e = ot(n, "string");
|
|
100
100
|
return typeof e == "symbol" ? e : e + "";
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function ot(n, e) {
|
|
103
103
|
if (typeof n != "object" || !n) return n;
|
|
104
104
|
var t = n[Symbol.toPrimitive];
|
|
105
105
|
if (t !== void 0) {
|
|
@@ -115,17 +115,17 @@ function ke(n) {
|
|
|
115
115
|
}, e.attr), ke(e.child)));
|
|
116
116
|
}
|
|
117
117
|
function me(n) {
|
|
118
|
-
return (e) => /* @__PURE__ */ H.createElement(
|
|
118
|
+
return (e) => /* @__PURE__ */ H.createElement(st, de({
|
|
119
119
|
attr: fe({}, n.attr)
|
|
120
120
|
}, e), ke(n.child));
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function st(n) {
|
|
123
123
|
var e = (t) => {
|
|
124
124
|
var {
|
|
125
125
|
attr: l,
|
|
126
126
|
size: s,
|
|
127
127
|
title: o
|
|
128
|
-
} = n, i =
|
|
128
|
+
} = n, i = tt(n, et), r = s || t.size || "1em", c;
|
|
129
129
|
return t.className && (c = t.className), n.className && (c = (c ? c + " " : "") + n.className), /* @__PURE__ */ H.createElement("svg", de({
|
|
130
130
|
stroke: "currentColor",
|
|
131
131
|
fill: "currentColor",
|
|
@@ -145,10 +145,10 @@ function it(n) {
|
|
|
145
145
|
function Se(n) {
|
|
146
146
|
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);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function rt(n) {
|
|
149
149
|
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);
|
|
150
150
|
}
|
|
151
|
-
const De = ["/slider/slide-1.png", "/slider/slide-2.png", "/slider/slide-3.png", "/slider/slide-4.png", "/slider/slide-5.png"],
|
|
151
|
+
const De = ["/slider/slide-1.png", "/slider/slide-2.png", "/slider/slide-3.png", "/slider/slide-4.png", "/slider/slide-5.png"], at = 5e3;
|
|
152
152
|
function We(n) {
|
|
153
153
|
var e, t, l = "";
|
|
154
154
|
if (typeof n == "string" || typeof n == "number") l += n;
|
|
@@ -162,14 +162,14 @@ function R() {
|
|
|
162
162
|
for (var n, e, t = 0, l = "", s = arguments.length; t < s; t++) (n = arguments[t]) && (e = We(n)) && (l && (l += " "), l += e);
|
|
163
163
|
return l;
|
|
164
164
|
}
|
|
165
|
-
const $e =
|
|
165
|
+
const $e = Ke(null);
|
|
166
166
|
function xe() {
|
|
167
|
-
const n =
|
|
167
|
+
const n = Xe($e);
|
|
168
168
|
if (!n)
|
|
169
169
|
throw new Error("AuthLayout compound components must be used within AuthLayout.Root");
|
|
170
170
|
return n;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function ct(n, e) {
|
|
173
173
|
return e === "md" ? "max-w-md" : e === "lg" ? "max-w-lg" : n === "desktop" ? "max-w-[320px]" : "max-w-[360px]";
|
|
174
174
|
}
|
|
175
175
|
function we(n = "center") {
|
|
@@ -191,7 +191,7 @@ function we(n = "center") {
|
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function ut(n) {
|
|
195
195
|
const e = E.c(18), {
|
|
196
196
|
children: t,
|
|
197
197
|
variant: l,
|
|
@@ -200,7 +200,7 @@ function at(n) {
|
|
|
200
200
|
contentClassName: i
|
|
201
201
|
} = n, r = l === void 0 ? "mobile" : l, c = s === void 0 ? "sm" : s;
|
|
202
202
|
let a;
|
|
203
|
-
e[0] !== c || e[1] !== r ? (a =
|
|
203
|
+
e[0] !== c || e[1] !== r ? (a = ct(r, c), e[0] = c, e[1] = r, e[2] = a) : a = e[2];
|
|
204
204
|
const m = a;
|
|
205
205
|
let g;
|
|
206
206
|
e[3] !== c || e[4] !== m || e[5] !== r ? (g = {
|
|
@@ -221,7 +221,7 @@ function at(n) {
|
|
|
221
221
|
h
|
|
222
222
|
] }), e[14] = u, e[15] = f, e[16] = h, e[17] = v) : v = e[17], v;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function dt(n) {
|
|
225
225
|
const e = E.c(12), {
|
|
226
226
|
children: t,
|
|
227
227
|
className: l
|
|
@@ -241,7 +241,7 @@ function ct(n) {
|
|
|
241
241
|
let i;
|
|
242
242
|
return e[9] !== t || e[10] !== o ? (i = /* @__PURE__ */ p("div", { className: o, children: t }), e[9] = t, e[10] = o, e[11] = i) : i = e[11], i;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function ft(n) {
|
|
245
245
|
const e = E.c(6), {
|
|
246
246
|
children: t,
|
|
247
247
|
align: l,
|
|
@@ -258,7 +258,7 @@ function ut(n) {
|
|
|
258
258
|
let r;
|
|
259
259
|
return e[3] !== t || e[4] !== i ? (r = /* @__PURE__ */ p("div", { className: i, children: t }), e[3] = t, e[4] = i, e[5] = r) : r = e[5], r;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function mt(n) {
|
|
262
262
|
const e = E.c(6), {
|
|
263
263
|
children: t,
|
|
264
264
|
align: l,
|
|
@@ -276,7 +276,7 @@ function dt(n) {
|
|
|
276
276
|
let r;
|
|
277
277
|
return e[3] !== t || e[4] !== i ? (r = /* @__PURE__ */ p("div", { className: i, children: t }), e[3] = t, e[4] = i, e[5] = r) : r = e[5], r;
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function ht(n) {
|
|
280
280
|
const e = E.c(6), {
|
|
281
281
|
children: t,
|
|
282
282
|
align: l,
|
|
@@ -294,7 +294,7 @@ function ft(n) {
|
|
|
294
294
|
let r;
|
|
295
295
|
return e[3] !== t || e[4] !== i ? (r = /* @__PURE__ */ p("div", { className: i, children: t }), e[3] = t, e[4] = i, e[5] = r) : r = e[5], r;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function gt(n) {
|
|
298
298
|
const e = E.c(5), {
|
|
299
299
|
children: t,
|
|
300
300
|
className: l
|
|
@@ -304,7 +304,7 @@ function mt(n) {
|
|
|
304
304
|
let o;
|
|
305
305
|
return e[2] !== t || e[3] !== s ? (o = /* @__PURE__ */ p("div", { className: s, children: t }), e[2] = t, e[3] = s, e[4] = o) : o = e[4], o;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function pt(n) {
|
|
308
308
|
const e = E.c(10), {
|
|
309
309
|
children: t,
|
|
310
310
|
sm: l,
|
|
@@ -322,7 +322,7 @@ function ht(n) {
|
|
|
322
322
|
let m;
|
|
323
323
|
return e[7] !== i || e[8] !== a ? (m = /* @__PURE__ */ p("main", { className: i, children: a }), e[7] = i, e[8] = a, e[9] = m) : m = e[9], m;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function vt(n) {
|
|
326
326
|
const e = E.c(10), {
|
|
327
327
|
children: t,
|
|
328
328
|
className: l
|
|
@@ -339,16 +339,16 @@ function gt(n) {
|
|
|
339
339
|
return e[7] !== o || e[8] !== r ? (c = /* @__PURE__ */ p("footer", { className: o, children: r }), e[7] = o, e[8] = r, e[9] = c) : c = e[9], c;
|
|
340
340
|
}
|
|
341
341
|
const B = {
|
|
342
|
-
Root:
|
|
343
|
-
Header:
|
|
344
|
-
Main:
|
|
345
|
-
Logo:
|
|
346
|
-
Title:
|
|
347
|
-
Description:
|
|
348
|
-
Body:
|
|
349
|
-
Footer:
|
|
342
|
+
Root: ut,
|
|
343
|
+
Header: dt,
|
|
344
|
+
Main: pt,
|
|
345
|
+
Logo: ft,
|
|
346
|
+
Title: mt,
|
|
347
|
+
Description: ht,
|
|
348
|
+
Body: gt,
|
|
349
|
+
Footer: vt
|
|
350
350
|
};
|
|
351
|
-
function
|
|
351
|
+
function bt(n) {
|
|
352
352
|
const e = E.c(38), {
|
|
353
353
|
images: t,
|
|
354
354
|
autoPlayInterval: l,
|
|
@@ -406,7 +406,7 @@ function pt(n) {
|
|
|
406
406
|
L
|
|
407
407
|
] }), e[34] = A, e[35] = L, e[36] = S, e[37] = k) : k = e[37], k;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function yt(n) {
|
|
410
410
|
const e = E.c(20), {
|
|
411
411
|
sliderImages: t,
|
|
412
412
|
sliderAutoPlayInterval: l,
|
|
@@ -428,7 +428,7 @@ function vt(n) {
|
|
|
428
428
|
let d;
|
|
429
429
|
e[8] !== m ? (d = m != null && /* @__PURE__ */ p("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: m }), e[8] = m, e[9] = d) : d = e[9];
|
|
430
430
|
let f;
|
|
431
|
-
e[10] !== s || e[11] !== o || e[12] !== l || e[13] !== t ? (f = /* @__PURE__ */ p("div", { className: "absolute inset-0", children: t.length > 0 ? /* @__PURE__ */ p(
|
|
431
|
+
e[10] !== s || e[11] !== o || e[12] !== l || e[13] !== t ? (f = /* @__PURE__ */ p("div", { className: "absolute inset-0", children: t.length > 0 ? /* @__PURE__ */ p(bt, { images: t, autoPlayInterval: l, className: "h-full w-full", hideIndicators: !0, activeIndex: s, onSlideChange: o, onNavigate: o }) : /* @__PURE__ */ p("div", { className: "flex h-full w-full items-center justify-center bg-white/50 p-8", children: /* @__PURE__ */ p(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] = f) : f = e[14];
|
|
432
432
|
let h;
|
|
433
433
|
return e[15] !== g || e[16] !== u || e[17] !== d || e[18] !== f ? (h = /* @__PURE__ */ F("div", { className: g, children: [
|
|
434
434
|
u,
|
|
@@ -436,7 +436,7 @@ function vt(n) {
|
|
|
436
436
|
f
|
|
437
437
|
] }), e[15] = g, e[16] = u, e[17] = d, e[18] = f, e[19] = h) : h = e[19], h;
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function St(n) {
|
|
440
440
|
const e = E.c(23), {
|
|
441
441
|
sliderImages: t,
|
|
442
442
|
sliderAutoPlayInterval: l,
|
|
@@ -458,7 +458,7 @@ function bt(n) {
|
|
|
458
458
|
className: r
|
|
459
459
|
}, e[3] = r, e[4] = v) : v = e[4];
|
|
460
460
|
let b;
|
|
461
|
-
e[5] !== g || e[6] !== s || e[7] !== d || e[8] !== m || e[9] !== o || e[10] !== v ? (b = /* @__PURE__ */ p("div", { className: "hidden lg:block lg:w-[432px] lg:h-[100dvh] lg:flex-shrink-0 lg:flex-grow-0", children: /* @__PURE__ */ p(
|
|
461
|
+
e[5] !== g || e[6] !== s || e[7] !== d || e[8] !== m || e[9] !== o || e[10] !== v ? (b = /* @__PURE__ */ p("div", { className: "hidden lg:block lg:w-[432px] lg:h-[100dvh] lg:flex-shrink-0 lg:flex-grow-0", children: /* @__PURE__ */ p(yt, { sliderImages: d, sliderAutoPlayInterval: m, activeSlideIndex: g, onSlideChange: u, ctaText: s, sliderTitles: o, ...v }) }), e[5] = g, e[6] = s, e[7] = d, e[8] = m, e[9] = o, e[10] = v, e[11] = b) : b = e[11];
|
|
462
462
|
let y;
|
|
463
463
|
e[12] !== c ? (y = R("flex-1 min-w-0 flex flex-col overflow-x-hidden", c), e[12] = c, e[13] = y) : y = e[13];
|
|
464
464
|
let w;
|
|
@@ -490,7 +490,7 @@ function oe(n) {
|
|
|
490
490
|
contentWidth: v,
|
|
491
491
|
align: b,
|
|
492
492
|
className: y
|
|
493
|
-
} = n, w = l === void 0 ? "withSlider" : l, x = g === void 0 ? De : g, S = u === void 0 ?
|
|
493
|
+
} = n, w = l === void 0 ? "withSlider" : l, x = g === void 0 ? De : g, S = u === void 0 ? at : u, C = h === void 0 ? "sm" : h, _ = v === void 0 ? "default" : v, N = b === void 0 ? "center" : b, P = _ === "sm", A = f ?? (w === "withSlider" ? "desktop" : "mobile");
|
|
494
494
|
let L;
|
|
495
495
|
e[0] !== m || e[1] !== s || e[2] !== a ? (L = () => m ?? (a != null ? /* @__PURE__ */ p(M, { icon: /* @__PURE__ */ p(Se, {}), iconOnly: !0, onClick: a, size: "medium", variant: "outline", "aria-label": "Go back", className: "h-10 w-10" }) : s ? typeof s == "string" ? /* @__PURE__ */ p("div", { className: "h-[30px] w-[140px]", children: /* @__PURE__ */ p("img", { src: s, alt: "Docthub", className: "block h-full w-full object-cover" }) }) : s : null), e[0] = m, e[1] = s, e[2] = a, e[3] = L) : L = e[3];
|
|
496
496
|
const k = L;
|
|
@@ -522,7 +522,7 @@ function oe(n) {
|
|
|
522
522
|
let X;
|
|
523
523
|
e[33] !== r ? (X = r && /* @__PURE__ */ p(B.Footer, { children: r }), e[33] = r, e[34] = X) : X = e[34];
|
|
524
524
|
let se;
|
|
525
|
-
e[35] !== $ || e[36] !== K || e[37] !== X ? (se = /* @__PURE__ */ F(
|
|
525
|
+
e[35] !== $ || e[36] !== K || e[37] !== X ? (se = /* @__PURE__ */ F(Ge, { children: [
|
|
526
526
|
$,
|
|
527
527
|
K,
|
|
528
528
|
X
|
|
@@ -536,7 +536,7 @@ function oe(n) {
|
|
|
536
536
|
let ee;
|
|
537
537
|
e[41] !== Z || e[42] !== C || e[43] !== A ? (ee = /* @__PURE__ */ p(B.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];
|
|
538
538
|
let ae;
|
|
539
|
-
return e[45] !== S || e[46] !== x || e[47] !== d || e[48] !== Q || e[49] !== ee ? (ae = /* @__PURE__ */ p(
|
|
539
|
+
return e[45] !== S || e[46] !== x || e[47] !== d || e[48] !== Q || e[49] !== ee ? (ae = /* @__PURE__ */ p(St, { sliderImages: x, sliderAutoPlayInterval: S, sliderTitles: d, ...Q, children: ee }), e[45] = S, e[46] = x, e[47] = d, e[48] = Q, e[49] = ee, e[50] = ae) : ae = e[50], ae;
|
|
540
540
|
}
|
|
541
541
|
let J;
|
|
542
542
|
e[51] !== y ? (J = y && {
|
|
@@ -546,7 +546,7 @@ function oe(n) {
|
|
|
546
546
|
return e[53] !== Z || e[54] !== C || e[55] !== A || e[56] !== J ? (re = /* @__PURE__ */ p(B.Root, { variant: A, maxWidth: C, ...J, children: Z }), e[53] = Z, e[54] = C, e[55] = A, e[56] = J, e[57] = re) : re = e[57], re;
|
|
547
547
|
}
|
|
548
548
|
const Ie = "https://accounts.google.com/gsi/client";
|
|
549
|
-
function
|
|
549
|
+
function xt() {
|
|
550
550
|
return typeof window > "u" ? Promise.reject(new Error("GSI requires browser")) : window.google?.accounts?.id ? Promise.resolve() : new Promise((n, e) => {
|
|
551
551
|
if (document.querySelector(`script[src="${Ie}"]`)) {
|
|
552
552
|
const s = () => window.google?.accounts?.id ? n() : setTimeout(s, 50);
|
|
@@ -557,8 +557,8 @@ function yt() {
|
|
|
557
557
|
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);
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
|
-
const
|
|
561
|
-
function
|
|
560
|
+
const wt = "openid email profile", Re = 2e3;
|
|
561
|
+
function Ct(n) {
|
|
562
562
|
const e = E.c(18), {
|
|
563
563
|
clientId: t,
|
|
564
564
|
onCredential: l,
|
|
@@ -570,7 +570,7 @@ function xt(n) {
|
|
|
570
570
|
}, u = [l], e[0] = l, e[1] = g, e[2] = u) : (g = e[1], u = e[2]), te(g, u);
|
|
571
571
|
let d;
|
|
572
572
|
e[3] !== t ? (d = async () => {
|
|
573
|
-
t && (await
|
|
573
|
+
t && (await xt(), !(!window.google?.accounts?.id || !window.google?.accounts?.oauth2) && (i.current || (window.google.accounts.id.initialize({
|
|
574
574
|
client_id: t,
|
|
575
575
|
callback: (C) => {
|
|
576
576
|
c.current(C.credential);
|
|
@@ -578,12 +578,12 @@ function xt(n) {
|
|
|
578
578
|
auto_select: !1
|
|
579
579
|
}), r.current = window.google.accounts.oauth2.initCodeClient({
|
|
580
580
|
client_id: t,
|
|
581
|
-
scope:
|
|
581
|
+
scope: wt,
|
|
582
582
|
ux_mode: "popup",
|
|
583
583
|
callback: (C) => {
|
|
584
584
|
c.current(C.code);
|
|
585
585
|
},
|
|
586
|
-
error_callback:
|
|
586
|
+
error_callback: Nt
|
|
587
587
|
}), i.current = !0)));
|
|
588
588
|
}, e[3] = t, e[4] = d) : d = e[4];
|
|
589
589
|
const f = d;
|
|
@@ -613,7 +613,7 @@ function xt(n) {
|
|
|
613
613
|
loginWithGoogle: v
|
|
614
614
|
}, e[16] = v, e[17] = S) : S = e[17], S;
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function Nt() {
|
|
617
617
|
}
|
|
618
618
|
function je(n) {
|
|
619
619
|
const e = E.c(14), {
|
|
@@ -635,7 +635,7 @@ function je(n) {
|
|
|
635
635
|
field: S,
|
|
636
636
|
fieldState: C
|
|
637
637
|
} = x, _ = g ?? C.error?.message;
|
|
638
|
-
return /* @__PURE__ */ p(
|
|
638
|
+
return /* @__PURE__ */ p(Ve, { placeholder: d, value: S.value ?? "", onValueChange: (N) => S.onChange(N ?? ""), defaultCountry: f, variant: h ?? "default", required: c ?? !1, disabled: a ?? !1, ...l != null && {
|
|
639
639
|
label: l
|
|
640
640
|
}, ...o != null && {
|
|
641
641
|
helperText: o
|
|
@@ -669,7 +669,7 @@ function pe(n) {
|
|
|
669
669
|
field: w,
|
|
670
670
|
fieldState: x
|
|
671
671
|
} = y;
|
|
672
|
-
return /* @__PURE__ */ p(
|
|
672
|
+
return /* @__PURE__ */ p(qe, { ...w, ...d !== void 0 && {
|
|
673
673
|
autoFocus: d
|
|
674
674
|
}, value: w.value ?? "", ...l !== void 0 && {
|
|
675
675
|
label: l
|
|
@@ -715,38 +715,38 @@ function Ue(n, e) {
|
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
|
-
function
|
|
718
|
+
function _t(n) {
|
|
719
719
|
return n.trim().replace(/\b\w/g, (e) => e.toUpperCase());
|
|
720
720
|
}
|
|
721
|
-
const Ce = W.string().trim().min(3, "Full name must be at least 3 characters").transform(
|
|
721
|
+
const Ce = W.string().trim().min(3, "Full name must be at least 3 characters").transform(_t), Ne = W.string().trim().min(1, "Phone number is required").refine((n) => /^\d+$/.test(n), "Phone number must contain only digits").refine((n) => n.length >= 7 && n.length <= 15, "Phone number must be between 7 and 15 digits"), _e = W.string().trim().min(1, "Email is required").email("Enter a valid email address").transform((n) => n.toLowerCase()), Et = W.object({
|
|
722
722
|
fullName: Ce,
|
|
723
723
|
phone: Ne
|
|
724
|
-
}),
|
|
724
|
+
}), Pt = W.object({
|
|
725
725
|
fullName: Ce,
|
|
726
726
|
email: _e
|
|
727
|
-
}),
|
|
727
|
+
}), At = W.object({
|
|
728
728
|
fullName: Ce,
|
|
729
729
|
email: _e,
|
|
730
730
|
phone: Ne
|
|
731
731
|
}), Le = {
|
|
732
|
-
phone:
|
|
733
|
-
email:
|
|
734
|
-
foreign:
|
|
735
|
-
},
|
|
732
|
+
phone: Et,
|
|
733
|
+
email: Pt,
|
|
734
|
+
foreign: At
|
|
735
|
+
}, Ot = W.object({
|
|
736
736
|
phone: Ne
|
|
737
|
-
}),
|
|
737
|
+
}), Tt = W.object({
|
|
738
738
|
email: _e
|
|
739
739
|
}), Fe = {
|
|
740
|
-
phone:
|
|
741
|
-
email:
|
|
742
|
-
}, ie = 6,
|
|
743
|
-
function
|
|
744
|
-
return n === "phone" ?
|
|
740
|
+
phone: Ot,
|
|
741
|
+
email: Tt
|
|
742
|
+
}, ie = 6, It = 60, Rt = 120;
|
|
743
|
+
function Lt(n) {
|
|
744
|
+
return n === "phone" ? It : Rt;
|
|
745
745
|
}
|
|
746
|
-
const
|
|
746
|
+
const Ft = W.object({
|
|
747
747
|
otp: W.array(W.string()).length(ie, "Enter all 6 digits").refine((n) => n.every((e) => /^\d$/.test(e)) && n.join("").length === ie, "Invalid OTP! Please use correct code and submit again.")
|
|
748
748
|
});
|
|
749
|
-
function
|
|
749
|
+
function Mt(n) {
|
|
750
750
|
const e = E.c(19), {
|
|
751
751
|
mode: t,
|
|
752
752
|
onSubmit: l,
|
|
@@ -800,10 +800,10 @@ function Lt(n) {
|
|
|
800
800
|
isSubmitting: r
|
|
801
801
|
}, e[13] = h, e[14] = b, e[15] = a, e[16] = r, e[17] = d, e[18] = y) : y = e[18], y;
|
|
802
802
|
}
|
|
803
|
-
const
|
|
803
|
+
const kt = {
|
|
804
804
|
phone: "Enter Phone Number",
|
|
805
805
|
email: "Enter Email Address"
|
|
806
|
-
},
|
|
806
|
+
}, Dt = {
|
|
807
807
|
phone: "We will send you 6 digit OTP on the given Phone Number.",
|
|
808
808
|
email: "We will send you 6 digit OTP on the given Email Address."
|
|
809
809
|
};
|
|
@@ -819,7 +819,7 @@ function vn(n) {
|
|
|
819
819
|
onError: a,
|
|
820
820
|
layoutType: m,
|
|
821
821
|
variant: g
|
|
822
|
-
} = n, u = m === void 0 ? "withSlider" : m, d = g === void 0 ? "desktop" : g, f = l ??
|
|
822
|
+
} = n, u = m === void 0 ? "withSlider" : m, d = g === void 0 ? "desktop" : g, f = l ?? kt[t], h = s ?? Dt[t];
|
|
823
823
|
let v;
|
|
824
824
|
e[0] !== d ? (v = d !== void 0 && {
|
|
825
825
|
variant: d
|
|
@@ -843,11 +843,11 @@ function vn(n) {
|
|
|
843
843
|
onError: a
|
|
844
844
|
}, e[10] = a, e[11] = S) : S = e[11];
|
|
845
845
|
let C;
|
|
846
|
-
e[12] !== t || e[13] !== y || e[14] !== w || e[15] !== x || e[16] !== S ? (C = /* @__PURE__ */ p(
|
|
846
|
+
e[12] !== t || e[13] !== y || e[14] !== w || e[15] !== x || e[16] !== S ? (C = /* @__PURE__ */ p($t, { mode: t, ...y, ...w, ...x, ...S }), e[12] = t, e[13] = y, e[14] = w, e[15] = x, e[16] = S, e[17] = C) : C = e[17];
|
|
847
847
|
let _;
|
|
848
848
|
return e[18] !== u || e[19] !== h || e[20] !== f || e[21] !== v || e[22] !== b || e[23] !== C ? (_ = /* @__PURE__ */ p(oe, { layoutType: u, ...v, contentWidth: "sm", align: "left", backButton: b, title: f, description: h, children: C }), e[18] = u, e[19] = h, e[20] = f, e[21] = v, e[22] = b, e[23] = C, e[24] = _) : _ = e[24], _;
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function Wt(n) {
|
|
851
851
|
const e = E.c(11), {
|
|
852
852
|
isPhone: t,
|
|
853
853
|
handleSubmit: l,
|
|
@@ -866,7 +866,7 @@ function kt(n) {
|
|
|
866
866
|
a
|
|
867
867
|
] }), e[7] = i, e[8] = r, e[9] = a, e[10] = m) : m = e[10], m;
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function $t(n) {
|
|
870
870
|
const e = E.c(21), {
|
|
871
871
|
mode: t,
|
|
872
872
|
onSubmit: l,
|
|
@@ -903,16 +903,16 @@ function Dt(n) {
|
|
|
903
903
|
handleSubmit: d,
|
|
904
904
|
isPhone: f,
|
|
905
905
|
isSubmitting: h
|
|
906
|
-
} =
|
|
906
|
+
} = Mt(g);
|
|
907
907
|
let v;
|
|
908
|
-
e[14] !== d || e[15] !== f || e[16] !== h ? (v = /* @__PURE__ */ p(
|
|
908
|
+
e[14] !== d || e[15] !== f || e[16] !== h ? (v = /* @__PURE__ */ p(Wt, { isPhone: f, handleSubmit: d, isSubmitting: h }), e[14] = d, e[15] = f, e[16] = h, e[17] = v) : v = e[17];
|
|
909
909
|
let b;
|
|
910
910
|
return e[18] !== u || e[19] !== v ? (b = /* @__PURE__ */ p(ye, { ...u, children: v }), e[18] = u, e[19] = v, e[20] = b) : b = e[20], b;
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function jt(n) {
|
|
913
913
|
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);
|
|
914
914
|
}
|
|
915
|
-
function
|
|
915
|
+
function Ut(n) {
|
|
916
916
|
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
|
|
917
917
|
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
|
|
918
918
|
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
|
|
@@ -920,19 +920,19 @@ function $t(n) {
|
|
|
920
920
|
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
|
|
921
921
|
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);
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function zt(n) {
|
|
924
924
|
return {
|
|
925
925
|
triggerSignIn() {
|
|
926
926
|
}
|
|
927
927
|
};
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function ze(n) {
|
|
930
930
|
const e = E.c(23);
|
|
931
931
|
let t;
|
|
932
932
|
e[0] !== n ? (t = n === void 0 ? {} : n, e[0] = n, e[1] = t) : t = e[1];
|
|
933
|
-
const l = t, s =
|
|
933
|
+
const l = t, s = Yt, o = qt, i = Vt, r = Gt, c = l.providers?.google?.clientId ?? "";
|
|
934
934
|
let a;
|
|
935
|
-
e[2] !== l.providers?.google?.onCredential ? (a = l.providers?.google?.onCredential ??
|
|
935
|
+
e[2] !== l.providers?.google?.onCredential ? (a = l.providers?.google?.onCredential ?? Ht, e[2] = l.providers?.google?.onCredential, e[3] = a) : a = e[3];
|
|
936
936
|
const m = l.providers?.google?.enableOneTap ?? !1;
|
|
937
937
|
let g;
|
|
938
938
|
e[4] !== c || e[5] !== a || e[6] !== m ? (g = {
|
|
@@ -942,9 +942,9 @@ function Ut(n) {
|
|
|
942
942
|
}, e[4] = c, e[5] = a, e[6] = m, e[7] = g) : g = e[7];
|
|
943
943
|
const {
|
|
944
944
|
loginWithGoogle: u
|
|
945
|
-
} =
|
|
945
|
+
} = Ct(g), d = l.providers?.apple?.clientId ?? "", f = l.providers?.apple?.redirectUri ?? "";
|
|
946
946
|
let h;
|
|
947
|
-
e[8] !== l.providers?.apple?.onCredential ? (h = l.providers?.apple?.onCredential ??
|
|
947
|
+
e[8] !== l.providers?.apple?.onCredential ? (h = l.providers?.apple?.onCredential ?? Bt, e[8] = l.providers?.apple?.onCredential, e[9] = h) : h = e[9];
|
|
948
948
|
let v;
|
|
949
949
|
e[10] !== d || e[11] !== f || e[12] !== h ? (v = {
|
|
950
950
|
clientId: d,
|
|
@@ -953,7 +953,7 @@ function Ut(n) {
|
|
|
953
953
|
}, e[10] = d, e[11] = f, e[12] = h, e[13] = v) : v = e[13];
|
|
954
954
|
const {
|
|
955
955
|
triggerSignIn: b
|
|
956
|
-
} =
|
|
956
|
+
} = zt(), y = l.onContinueWithMobile ?? s, w = l.onContinueWithEmail ?? o;
|
|
957
957
|
let x;
|
|
958
958
|
e[14] !== u || e[15] !== l.onContinueWithGoogle || e[16] !== l.providers?.google?.clientId ? (x = l.onContinueWithGoogle ?? (l.providers?.google?.clientId ? () => {
|
|
959
959
|
u();
|
|
@@ -967,8 +967,6 @@ function Ut(n) {
|
|
|
967
967
|
onContinueWithApple: S
|
|
968
968
|
}, e[18] = y, e[19] = w, e[20] = x, e[21] = S, e[22] = C) : C = e[22], C;
|
|
969
969
|
}
|
|
970
|
-
function zt() {
|
|
971
|
-
}
|
|
972
970
|
function Bt() {
|
|
973
971
|
}
|
|
974
972
|
function Ht() {
|
|
@@ -979,14 +977,16 @@ function Vt() {
|
|
|
979
977
|
}
|
|
980
978
|
function qt() {
|
|
981
979
|
}
|
|
982
|
-
|
|
980
|
+
function Yt() {
|
|
981
|
+
}
|
|
982
|
+
const Kt = {
|
|
983
983
|
phone: "Kindly check your Mobile.",
|
|
984
984
|
email: "Kindly check your Email Inbox."
|
|
985
|
-
},
|
|
985
|
+
}, Xt = {
|
|
986
986
|
phone: "6 digit OTP has been sent to your Mobile",
|
|
987
987
|
email: "6 digit OTP has been sent to your Email"
|
|
988
988
|
};
|
|
989
|
-
function
|
|
989
|
+
function Zt(n) {
|
|
990
990
|
const e = E.c(29), {
|
|
991
991
|
mode: t,
|
|
992
992
|
onSubmit: l,
|
|
@@ -996,12 +996,12 @@ function Xt(n) {
|
|
|
996
996
|
onError: r
|
|
997
997
|
} = n, [c, a] = V(!1);
|
|
998
998
|
let m;
|
|
999
|
-
e[0] !== t ? (m =
|
|
999
|
+
e[0] !== t ? (m = Lt(t), e[0] = t, e[1] = m) : m = e[1];
|
|
1000
1000
|
const g = m, [u, d] = V(g), f = u <= 0;
|
|
1001
1001
|
let h;
|
|
1002
1002
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = Array.from({
|
|
1003
1003
|
length: ie
|
|
1004
|
-
},
|
|
1004
|
+
}, Qt), e[2] = h) : h = e[2];
|
|
1005
1005
|
const v = h;
|
|
1006
1006
|
let b;
|
|
1007
1007
|
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
@@ -1016,13 +1016,13 @@ function Xt(n) {
|
|
|
1016
1016
|
if (u <= 0)
|
|
1017
1017
|
return;
|
|
1018
1018
|
const $ = setInterval(() => {
|
|
1019
|
-
d(
|
|
1019
|
+
d(Jt);
|
|
1020
1020
|
}, 1e3);
|
|
1021
1021
|
return () => clearInterval($);
|
|
1022
1022
|
}, x = [u], e[4] = u, e[5] = w, e[6] = x) : (w = e[5], x = e[6]), te(w, x);
|
|
1023
1023
|
let S;
|
|
1024
1024
|
e[7] !== y || e[8] !== r || e[9] !== l || e[10] !== i || e[11] !== o ? (S = ($) => {
|
|
1025
|
-
const j =
|
|
1025
|
+
const j = Ft.safeParse($);
|
|
1026
1026
|
if (!j.success) {
|
|
1027
1027
|
const U = j.error.issues[0]?.message ?? "Invalid OTP";
|
|
1028
1028
|
y.setError("otp", {
|
|
@@ -1066,14 +1066,14 @@ function Xt(n) {
|
|
|
1066
1066
|
isSubmitting: c
|
|
1067
1067
|
}, e[21] = f, e[22] = N, e[23] = C, e[24] = c, e[25] = y, e[26] = u, e[27] = D, e[28] = G) : G = e[28], G;
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1069
|
+
function Jt(n) {
|
|
1070
1070
|
return n <= 1 ? 0 : n - 1;
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function Qt() {
|
|
1073
1073
|
return "";
|
|
1074
1074
|
}
|
|
1075
|
-
const
|
|
1076
|
-
function
|
|
1075
|
+
const en = "Mobile";
|
|
1076
|
+
function tn(n) {
|
|
1077
1077
|
const e = E.c(11);
|
|
1078
1078
|
let t;
|
|
1079
1079
|
e[0] !== n ? (t = n === void 0 ? {} : n, e[0] = n, e[1] = t) : t = e[1];
|
|
@@ -1083,7 +1083,7 @@ function en(n) {
|
|
|
1083
1083
|
continueApi: c,
|
|
1084
1084
|
onSuccess: a,
|
|
1085
1085
|
onError: m
|
|
1086
|
-
} = l, g = i === void 0 ?
|
|
1086
|
+
} = l, g = i === void 0 ? en : i;
|
|
1087
1087
|
let u;
|
|
1088
1088
|
e[2] !== c || e[3] !== r || e[4] !== m || e[5] !== a ? (u = () => {
|
|
1089
1089
|
if (c) {
|
|
@@ -1106,7 +1106,7 @@ function en(n) {
|
|
|
1106
1106
|
lastUsedMethod: g
|
|
1107
1107
|
}, e[7] = d, e[8] = s, e[9] = g, e[10] = f) : f = e[10], f;
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1109
|
+
function nn(n) {
|
|
1110
1110
|
const e = E.c(22), {
|
|
1111
1111
|
mode: t,
|
|
1112
1112
|
defaultPhone: l,
|
|
@@ -1176,7 +1176,7 @@ function tn(n) {
|
|
|
1176
1176
|
isSubmitting: a
|
|
1177
1177
|
}, e[15] = y, e[16] = u, e[17] = x, e[18] = g, e[19] = a, e[20] = v, e[21] = S) : S = e[21], S;
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function Be() {
|
|
1180
1180
|
const n = E.c(3);
|
|
1181
1181
|
let e, t;
|
|
1182
1182
|
n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ p("br", {}), t = /* @__PURE__ */ p("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]);
|
|
@@ -1191,22 +1191,28 @@ function ze() {
|
|
|
1191
1191
|
/* @__PURE__ */ p("a", { href: "/privacy", className: "font-semibold text-black underline", children: "Privacy Policy." })
|
|
1192
1192
|
] }), n[2] = l) : l = n[2], l;
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function ln() {
|
|
1195
1195
|
const n = E.c(1);
|
|
1196
1196
|
let e;
|
|
1197
|
-
return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ p(M, { icon: /* @__PURE__ */ p("div", { className: "flex items-center justify-center p-2 bg-[#002830] rounded-[10px]", children: /* @__PURE__ */ p(
|
|
1197
|
+
return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ p(M, { icon: /* @__PURE__ */ p("div", { className: "flex items-center justify-center p-2 bg-[#002830] rounded-[10px]", children: /* @__PURE__ */ p(rt, { 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;
|
|
1198
1198
|
}
|
|
1199
1199
|
const bn = (n) => {
|
|
1200
|
-
const e = E.c(5), t =
|
|
1200
|
+
const e = E.c(5), t = ze(n);
|
|
1201
1201
|
let l;
|
|
1202
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ p(
|
|
1202
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ p(ln, {}), e[0] = l) : l = e[0];
|
|
1203
1203
|
let s;
|
|
1204
1204
|
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ p(I, { variant: "title1", weight: "bold", align: "center", children: "Healthcare Career App" }), e[1] = s) : s = e[1];
|
|
1205
1205
|
let o;
|
|
1206
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ p(
|
|
1206
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ p(Be, {}), e[2] = o) : o = e[2];
|
|
1207
1207
|
let i;
|
|
1208
|
-
return e[3] !== t ? (i = /* @__PURE__ */ p(oe, { 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__ */ p(
|
|
1209
|
-
}
|
|
1208
|
+
return e[3] !== t ? (i = /* @__PURE__ */ p(oe, { 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__ */ p(He, { handlers: t }) }), e[3] = t, e[4] = i) : i = e[4], i;
|
|
1209
|
+
};
|
|
1210
|
+
function yn(n) {
|
|
1211
|
+
const e = E.c(2), t = ze(n);
|
|
1212
|
+
let l;
|
|
1213
|
+
return e[0] !== t ? (l = /* @__PURE__ */ p(He, { handlers: t }), e[0] = t, e[1] = l) : l = e[1], l;
|
|
1214
|
+
}
|
|
1215
|
+
const He = (n) => {
|
|
1210
1216
|
const e = E.c(19), {
|
|
1211
1217
|
handlers: t
|
|
1212
1218
|
} = n, {
|
|
@@ -1224,13 +1230,13 @@ const bn = (n) => {
|
|
|
1224
1230
|
let m;
|
|
1225
1231
|
e[4] !== s ? (m = /* @__PURE__ */ p(M, { variant: "outline", size: "large", fullWidth: !0, onClick: s, children: a }), e[4] = s, e[5] = m) : m = e[5];
|
|
1226
1232
|
let g;
|
|
1227
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ p(
|
|
1233
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ p(Ut, { "aria-hidden": !0 }), e[6] = g) : g = e[6];
|
|
1228
1234
|
let u;
|
|
1229
1235
|
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ p(ue, { children: "Continue with Google" }), e[7] = u) : u = e[7];
|
|
1230
1236
|
let d;
|
|
1231
1237
|
e[8] !== o ? (d = /* @__PURE__ */ p(M, { variant: "outline", size: "large", fullWidth: !0, icon: g, iconPosition: "left", onClick: o, children: u }), e[8] = o, e[9] = d) : d = e[9];
|
|
1232
1238
|
let f;
|
|
1233
|
-
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ p(
|
|
1239
|
+
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ p(jt, { "aria-hidden": !0 }), e[10] = f) : f = e[10];
|
|
1234
1240
|
let h;
|
|
1235
1241
|
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ p(ue, { children: "Continue with Apple" }), e[11] = h) : h = e[11];
|
|
1236
1242
|
let v;
|
|
@@ -1267,7 +1273,7 @@ function on(n) {
|
|
|
1267
1273
|
} = f;
|
|
1268
1274
|
return /* @__PURE__ */ F("div", { children: [
|
|
1269
1275
|
l && /* @__PURE__ */ p("label", { className: "block mb-1", children: l }),
|
|
1270
|
-
/* @__PURE__ */ p(
|
|
1276
|
+
/* @__PURE__ */ p(Ye, { length: a, value: h.value || [], onChange: h.onChange, ...c !== void 0 && {
|
|
1271
1277
|
autoFocus: c
|
|
1272
1278
|
}, ...s && {
|
|
1273
1279
|
className: s
|
|
@@ -1281,7 +1287,7 @@ function on(n) {
|
|
|
1281
1287
|
let d;
|
|
1282
1288
|
return e[6] !== t || e[7] !== g || e[8] !== u ? (d = /* @__PURE__ */ p(ve, { name: t, control: g, render: u }), e[6] = t, e[7] = g, e[8] = u, e[9] = d) : d = e[9], d;
|
|
1283
1289
|
}
|
|
1284
|
-
function
|
|
1290
|
+
function Sn(n) {
|
|
1285
1291
|
const e = E.c(41);
|
|
1286
1292
|
let t, l, s, o;
|
|
1287
1293
|
e[0] !== n ? ({
|
|
@@ -1364,7 +1370,7 @@ function rn(n) {
|
|
|
1364
1370
|
let b;
|
|
1365
1371
|
e[7] !== s || e[8] !== v ? (b = /* @__PURE__ */ p(I, { variant: "title2", align: "left", className: v, children: s }), e[7] = s, e[8] = v, e[9] = b) : b = e[9];
|
|
1366
1372
|
let y;
|
|
1367
|
-
e[10] !== o || e[11] !== t ? (y = o && /* @__PURE__ */ p(I, { variant: "body2", align: "left", className: "mb-6 text-black/80", children:
|
|
1373
|
+
e[10] !== o || e[11] !== t ? (y = o && /* @__PURE__ */ p(I, { variant: "body2", align: "left", className: "mb-6 text-black/80", children: Kt[t] }), e[10] = o, e[11] = t, e[12] = y) : y = e[12];
|
|
1368
1374
|
let w;
|
|
1369
1375
|
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ p("div", { className: "mb-4 flex w-full flex-col gap-[12px]", children: /* @__PURE__ */ p(on, { name: "otp", length: ie, autoFocus: !0 }) }), e[13] = w) : w = e[13];
|
|
1370
1376
|
let x;
|
|
@@ -1430,13 +1436,13 @@ function an(n) {
|
|
|
1430
1436
|
canResend: S,
|
|
1431
1437
|
timerText: C,
|
|
1432
1438
|
isSubmitting: _
|
|
1433
|
-
} =
|
|
1439
|
+
} = Zt(b), N = l ?? Xt[t];
|
|
1434
1440
|
let P;
|
|
1435
1441
|
e[17] !== S || e[18] !== N || e[19] !== x || e[20] !== w || e[21] !== g || e[22] !== _ || e[23] !== t || e[24] !== s || e[25] !== C ? (P = /* @__PURE__ */ p(rn, { mode: t, title: N, recipientDisplay: s, isForeignUser: g, handleSubmit: w, handleResend: x, canResend: S, timerText: C, isSubmitting: _ }), e[17] = S, e[18] = N, e[19] = x, e[20] = w, e[21] = g, e[22] = _, e[23] = t, e[24] = s, e[25] = C, e[26] = P) : P = e[26];
|
|
1436
1442
|
let A;
|
|
1437
1443
|
return e[27] !== y || e[28] !== P ? (A = /* @__PURE__ */ p(ye, { ...y, children: P }), e[27] = y, e[28] = P, e[29] = A) : A = e[29], A;
|
|
1438
1444
|
}
|
|
1439
|
-
function
|
|
1445
|
+
function xn(n) {
|
|
1440
1446
|
const e = E.c(31), {
|
|
1441
1447
|
lastUsedMethod: t,
|
|
1442
1448
|
onContinueWithLastMethod: l,
|
|
@@ -1467,7 +1473,7 @@ function Sn(n) {
|
|
|
1467
1473
|
" to log in."
|
|
1468
1474
|
] }), e[5] = m, e[6] = b) : b = e[6];
|
|
1469
1475
|
let y;
|
|
1470
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ p(
|
|
1476
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ p(Be, {}), e[7] = y) : y = e[7];
|
|
1471
1477
|
let w;
|
|
1472
1478
|
e[8] !== l ? (w = l !== void 0 && {
|
|
1473
1479
|
onContinueWithLastMethod: l
|
|
@@ -1532,7 +1538,7 @@ function cn(n) {
|
|
|
1532
1538
|
handleContinue: m,
|
|
1533
1539
|
isSubmitting: g,
|
|
1534
1540
|
lastUsedMethod: u
|
|
1535
|
-
} =
|
|
1541
|
+
} = tn(a), d = g ? "Continuing…" : `Continue with ${u}`;
|
|
1536
1542
|
let f;
|
|
1537
1543
|
e[19] !== d ? (f = /* @__PURE__ */ p(I, { variant: "textLabel1", weight: "semiBold", align: "center", className: "text-white", children: d }), e[19] = d, e[20] = f) : f = e[20];
|
|
1538
1544
|
let h;
|
|
@@ -1547,7 +1553,7 @@ function cn(n) {
|
|
|
1547
1553
|
b
|
|
1548
1554
|
] }), e[28] = b, e[29] = h, e[30] = y) : y = e[30], y;
|
|
1549
1555
|
}
|
|
1550
|
-
function
|
|
1556
|
+
function wn(n) {
|
|
1551
1557
|
const e = E.c(31), {
|
|
1552
1558
|
layoutType: t,
|
|
1553
1559
|
variant: l
|
|
@@ -1681,7 +1687,7 @@ function dn(n) {
|
|
|
1681
1687
|
isPhone: b,
|
|
1682
1688
|
isFormValid: y,
|
|
1683
1689
|
isSubmitting: w
|
|
1684
|
-
} =
|
|
1690
|
+
} = nn(f);
|
|
1685
1691
|
let x;
|
|
1686
1692
|
e[15] !== v || e[16] !== y || e[17] !== b || e[18] !== w ? (x = /* @__PURE__ */ p(un, { isPhone: b, handleSubmit: v, isFormValid: y, isSubmitting: w }), e[15] = v, e[16] = y, e[17] = b, e[18] = w, e[19] = x) : x = e[19];
|
|
1687
1693
|
let S;
|
|
@@ -1689,26 +1695,29 @@ function dn(n) {
|
|
|
1689
1695
|
}
|
|
1690
1696
|
export {
|
|
1691
1697
|
oe as A,
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1698
|
+
Xt as D,
|
|
1699
|
+
bt as I,
|
|
1700
|
+
$t as L,
|
|
1701
|
+
yn as M,
|
|
1702
|
+
an as O,
|
|
1703
|
+
cn as R,
|
|
1704
|
+
dn as S,
|
|
1705
|
+
vn as a,
|
|
1706
|
+
bn as b,
|
|
1707
|
+
Sn as c,
|
|
1708
|
+
xn as d,
|
|
1709
|
+
wn as e,
|
|
1710
|
+
E as f,
|
|
1711
|
+
B as g,
|
|
1712
|
+
St as h,
|
|
1713
|
+
ie as i,
|
|
1714
|
+
Rt as j,
|
|
1715
|
+
It as k,
|
|
1716
|
+
zt as l,
|
|
1717
|
+
Mt as m,
|
|
1718
|
+
ze as n,
|
|
1719
|
+
Zt as o,
|
|
1720
|
+
tn as p,
|
|
1721
|
+
nn as q,
|
|
1722
|
+
Ct as u
|
|
1714
1723
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doct-ui-auth-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Composable React auth SDK – layouts, login/signup/OTP pages, SSO provider, and auth flow hooks for Docthub",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"types": "./dist/index.d.ts",
|
|
42
42
|
"import": "./dist/index.js"
|
|
43
43
|
},
|
|
44
|
-
"./style.css": "./dist/
|
|
44
|
+
"./style.css": "./dist/doct-ui-auth-kit.css",
|
|
45
45
|
"./pages": {
|
|
46
46
|
"types": "./dist/pages/index.d.ts",
|
|
47
47
|
"import": "./dist/pages.js"
|