mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-16 07:20:59 +00:00
1 line
19 KiB
JavaScript
1 line
19 KiB
JavaScript
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69035,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},4480,(e,t,r)=>{t.exports=e.r(96387)},48456,e=>{"use strict";let t=(0,e.i(83227).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],48456)},16700,e=>{"use strict";var t=e.i(60498),r=e.i(48456),n=e.i(14407);let a={sm:"h-4 w-4",default:"h-8 w-8",lg:"h-12 w-12"},o={sm:"text-xs",default:"text-sm",lg:"text-base"};function l({size:e="default",className:l,text:s="加载中...",fullPage:i=!1}){let u=(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)(r.Loader2,{className:(0,n.cn)("animate-spin text-primary",a[e],l)}),s&&(0,t.jsx)("p",{className:(0,n.cn)("text-muted-foreground",o[e]),children:s})]});return i?(0,t.jsx)("div",{className:"fixed inset-0 flex items-center justify-center bg-background",children:u}):u}function s({text:e}){return(0,t.jsx)(l,{fullPage:!0,text:e})}e.s(["LoadingPage",()=>s,"LoadingSpinner",()=>l])},66413,e=>{e.v("/_next/static/media/langbot-logo.41703e3d.webp")},28963,e=>{"use strict";let t={src:e.i(66413).default,width:548,height:548,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRkgBAABXRUJQVlA4TDwBAAAvB8ABEM1VICICHghADgIAAID9kaQyqoQRAgYAAAAAAAAAAgAAAAAAAAAAAAAAAAA8CEQq2ACp+X0AAIAHApCDAAAAcP73X1iZlvQiAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAi9FlrQzHkgaDkIAAAA579vFdLQshAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAARI60WJXS80AGDQAAAADOfwgAAAAAAAAAAA4AAAAAAAAAAAAAAADgCAAAAAAAAAAAQq7H/N7TgYqB84swNqv3dIDSDJdp2dhYkABUvKcDlW46uNVkSJ+yZV9U4QEqBAwpu54oU8IbpObN2wr6M3CUFHW4lf3rrTUAUGQIBOO8K7pPO55sLEIJUvNE2HEP7tzbr5Fu5+TMkYCxWePXLpbO8zf0qxUBY7MC"};e.s(["default",0,t])},47108,29136,23371,e=>{"use strict";var t=e.i(83227);let r=(0,t.default)("moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);e.s(["Moon",()=>r],47108);let n=(0,t.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",()=>n],29136);let a=(0,t.default)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);e.s(["Monitor",()=>a],23371)},67046,e=>{"use strict";var t=e.i(60498),r=e.i(49311),n=e.i(47977);let a=(0,e.i(83227).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.i(26128);var o=e.i(91830),l=e.i(18090);function s({triggerClassName:e,onOpenChange:s}){let{t:i}=(0,o.useTranslation)(),[u,c]=(0,r.useState)(l.default.language);(0,r.useEffect)(()=>{d()},[]);let d=()=>{"zh-CN"===l.default.language||"zh-Hans"===l.default.language?(c("zh-Hans"),localStorage.setItem("langbot_language","zh-Hans")):"zh-TW"===l.default.language||"zh-Hant"===l.default.language?(c("zh-Hant"),localStorage.setItem("langbot_language","zh-Hant")):"ja"===l.default.language||"ja-JP"===l.default.language?(c("ja-JP"),localStorage.setItem("langbot_language","ja-JP")):(c("en-US"),localStorage.setItem("langbot_language","en-US"));let e=localStorage.getItem("langbot_language");if(e)l.default.changeLanguage(e),c(e);else{let e=navigator.language;if(e){let t="zh-Hans";t="zh-CN"===e?"zh-Hans":"zh-TW"===e?"zh-Hant":"ja"===e||"ja-JP"===e?"ja-JP":"en-US",l.default.changeLanguage(t),c(t),localStorage.setItem("langbot_language",t)}}};return(0,t.jsxs)(n.Select,{value:u,onValueChange:e=>{l.default.changeLanguage(e),c(e),localStorage.setItem("langbot_language",e),window.location.reload()},onOpenChange:s,children:[(0,t.jsxs)(n.SelectTrigger,{className:e||"w-[140px]",children:[(0,t.jsx)(a,{className:"h-4 w-4 mr-2"}),(0,t.jsx)(n.SelectValue,{placeholder:i("common.language")})]}),(0,t.jsxs)(n.SelectContent,{children:[(0,t.jsx)(n.SelectItem,{value:"zh-Hans",children:"简体中文"}),(0,t.jsx)(n.SelectItem,{value:"zh-Hant",children:"繁體中文"}),(0,t.jsx)(n.SelectItem,{value:"en-US",children:"English"}),(0,t.jsx)(n.SelectItem,{value:"ja-JP",children:"日本語"})]})]})}e.s(["LanguageSelector",()=>s],67046)},69038,20847,84522,e=>{"use strict";var t=e.i(83227);let r=(0,t.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",()=>r],69038);let n=(0,t.default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",()=>n],20847);var a=e.i(60498),o=e.i(47108),l=e.i(29136),s=e.i(23371),i=e.i(73344),u=e.i(74035);function c(){let{theme:e,setTheme:t}=(0,i.useTheme)();return(0,a.jsxs)(u.Button,{variant:"outline",size:"icon",onClick:()=>t("light"===e?"dark":"dark"===e?"system":"light"),className:"h-9 w-9",children:["light"===e&&(0,a.jsx)(l.Sun,{className:"h-[1.2rem] w-[1.2rem]"}),"dark"===e&&(0,a.jsx)(o.Moon,{className:"h-[1.2rem] w-[1.2rem]"}),"system"===e&&(0,a.jsx)(s.Monitor,{className:"h-[1.2rem] w-[1.2rem]"})]})}e.s(["ThemeToggle",()=>c],84522)},75327,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return i},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function o(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function l(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,l(e));else t.set(r,l(n));return t}function i(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},61301,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return u},urlObjectKeys:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(11522)._(e.r(75327)),l=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",s=e.hash||"",i=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),i&&"object"==typeof i&&(i=String(o.urlQueryToSearchParams(i)));let c=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||l.test(n))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${a}${c}${s}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return s(e)}},48889,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(49311);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=o(e,n)),t&&(a.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},89673,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return A},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return j},NormalizeError:function(){return y},PageNotFoundError:function(){return x},SP:function(){return p},ST:function(){return g},WEB_VITALS:function(){return o},execOnce:function(){return l},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return i},isResSent:function(){return f},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return v}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function l(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>s.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let p="u">typeof performance,g=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class A extends Error{}class y extends Error{}class x extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},94546,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=e.r(89673),a=e.r(74976);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},66952,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},11789,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return A},useLinkStatus:function(){return x}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(11522),l=e.r(60498),s=o._(e.r(49311)),i=e.r(61301),u=e.r(98027),c=e.r(48889),d=e.r(89673),f=e.r(67719);e.r(69035);let h=e.r(7103),m=e.r(94546),p=e.r(93735);function g(e){return"string"==typeof e?e:(0,i.formatUrl)(e)}function A(t){var r;let n,a,o,[i,A]=(0,s.useOptimistic)(h.IDLE_LINK_STATUS),x=(0,s.useRef)(null),{href:j,as:b,children:v,prefetch:w=null,passHref:k,replace:S,shallow:N,scroll:P,onClick:C,onMouseEnter:L,onTouchStart:_,legacyBehavior:E=!1,onNavigate:I,ref:O,unstable_dynamicOnHover:T,...M}=t;n=v,E&&("string"==typeof n||"number"==typeof n)&&(n=(0,l.jsx)("a",{children:n}));let U=s.default.useContext(u.AppRouterContext),z=!1!==w,R=!1!==w?null===(r=w)||"auto"===r?p.FetchStrategy.PPR:p.FetchStrategy.Full:p.FetchStrategy.PPR,{href:F,as:B}=s.default.useMemo(()=>{let e=g(j);return{href:e,as:b?g(b):e}},[j,b]);if(E){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=s.default.Children.only(n)}let D=E?a&&"object"==typeof a&&a.ref:O,H=s.default.useCallback(e=>(null!==U&&(x.current=(0,h.mountLinkInstance)(e,F,U,R,z,A)),()=>{x.current&&((0,h.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,h.unmountPrefetchableInstance)(e)}),[z,F,U,R,A]),$={ref:(0,c.useMergedRef)(H,D),onClick(t){E||"function"!=typeof C||C(t),E&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!U||t.defaultPrevented||function(t,r,n,a,o,l,i){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(21946);s.default.startTransition(()=>{d(n||r,o?"replace":"push",l??!0,a.current)})}}(t,F,B,x,S,P,I)},onMouseEnter(e){E||"function"!=typeof L||L(e),E&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),U&&z&&(0,h.onNavigationIntent)(e.currentTarget,!0===T)},onTouchStart:function(e){E||"function"!=typeof _||_(e),E&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),U&&z&&(0,h.onNavigationIntent)(e.currentTarget,!0===T)}};return(0,d.isAbsoluteUrl)(B)?$.href=B:E&&!k&&("a"!==a.type||"href"in a.props)||($.href=(0,f.addBasePath)(B)),o=E?s.default.cloneElement(a,$):(0,l.jsx)("a",{...M,...$,children:n}),(0,l.jsx)(y.Provider,{value:i,children:o})}e.r(66952);let y=(0,s.createContext)(h.IDLE_LINK_STATUS),x=()=>(0,s.useContext)(y);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95559,e=>{"use strict";var t=e.i(60498),r=e.i(74035),n=e.i(87980),a=e.i(81817),o=e.i(67046),l=e.i(57728),s=e.i(16585),i=e.i(29176),u=e.i(64339),c=e.i(49311),d=e.i(15742),f=e.i(4480),h=e.i(69038),m=e.i(20847),p=e.i(48456),g=e.i(28963),A=e.i(50098);e.i(26128);var y=e.i(91830),x=e.i(11789),j=e.i(84522),b=e.i(16700);function v(){let e=(0,f.useRouter)(),{t:v}=(0,y.useTranslation)(),[w,k]=(0,c.useState)(!1),[S,N]=(0,c.useState)(null),[P,C]=(0,c.useState)(!1),[L,_]=(0,c.useState)(!0),E=(0,l.useForm)({resolver:(0,s.zodResolver)(i.object({email:i.string().email(v("common.invalidEmail")),password:i.string().min(1,v("common.emptyPassword"))})),defaultValues:{email:"",password:""}});async function I(){try{let t=await d.httpClient.getAccountInfo();if(!t.initialized)return void e.push("/register");N(t.account_type||"local"),C(t.has_password||!1),_(!1),d.httpClient.checkUserToken().then(t=>{t.token&&(localStorage.setItem("token",t.token),e.push("/home"))}).catch(()=>{})}catch{_(!1)}}(0,c.useEffect)(()=>{I()},[]);let O=async()=>{k(!0);try{let e=window.location.origin,t=`${e}/auth/space/callback`,r=await d.httpClient.getSpaceAuthorizeUrl(t);window.location.href=r.authorize_url}catch{A.toast.error(v("common.spaceLoginFailed")),k(!1)}};if(L)return(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 dark:bg-neutral-900",children:(0,t.jsx)(b.LoadingSpinner,{})});let T="local"===S||"space"===S&&P,M="space"===S;return(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 dark:dark:bg-neutral-900",children:(0,t.jsxs)(a.Card,{className:"w-[375px] shadow-lg dark:shadow-white/10",children:[(0,t.jsxs)(a.CardHeader,{children:[(0,t.jsxs)("div",{className:"flex justify-between items-center mb-6",children:[(0,t.jsx)(j.ThemeToggle,{}),(0,t.jsx)(o.LanguageSelector,{})]}),(0,t.jsx)("img",{src:g.default.src,alt:"LangBot",className:"w-16 h-16 mb-4 mx-auto"}),(0,t.jsx)(a.CardTitle,{className:"text-2xl text-center",children:v("common.welcome")}),(0,t.jsx)(a.CardDescription,{className:"text-center",children:v("common.continueToLogin")})]}),(0,t.jsxs)(a.CardContent,{className:"space-y-6",children:[M&&(0,t.jsx)("div",{className:"space-y-3",children:(0,t.jsxs)(r.Button,{type:"button",className:"w-full cursor-pointer",onClick:O,disabled:w,children:[w?(0,t.jsx)(p.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}):(0,t.jsxs)("svg",{className:"mr-2 h-4 w-4",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M12 2L2 7L12 12L22 7L12 2Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M2 17L12 22L22 17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M2 12L12 17L22 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),v("common.loginWithSpace")]})}),M&&T&&(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("span",{className:"w-full border-t"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,t.jsx)("span",{className:"bg-white dark:bg-card px-2 text-muted-foreground",children:v("common.or")})})]}),T&&(0,t.jsx)(u.Form,{...E,children:(0,t.jsxs)("form",{onSubmit:E.handleSubmit(function(t){var r,n;r=t.email,n=t.password,d.httpClient.authUser(r,n).then(async t=>{localStorage.setItem("token",t.token),localStorage.setItem("userEmail",r),await (0,d.initializeUserInfo)(),e.push("/home"),A.toast.success(v("common.loginSuccess"))}).catch(()=>{A.toast.error(v("common.loginFailed"))})}),className:"space-y-6",children:[(0,t.jsx)(u.FormField,{control:E.control,name:"email",render:({field:e})=>(0,t.jsxs)(u.FormItem,{children:[(0,t.jsx)(u.FormLabel,{children:v("common.email")}),(0,t.jsx)(u.FormControl,{children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(h.Mail,{className:"absolute left-3 top-3 h-4 w-4 text-gray-400"}),(0,t.jsx)(n.Input,{placeholder:v("common.enterEmail"),className:"pl-10",...e})]})}),(0,t.jsx)(u.FormMessage,{})]})}),(0,t.jsx)(u.FormField,{control:E.control,name:"password",render:({field:e})=>(0,t.jsxs)(u.FormItem,{children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(u.FormLabel,{children:v("common.password")}),(0,t.jsx)(x.default,{href:"/reset-password",className:"text-sm text-blue-500",children:v("common.forgotPassword")})]}),(0,t.jsx)(u.FormControl,{children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(m.Lock,{className:"absolute left-3 top-3 h-4 w-4 text-gray-400"}),(0,t.jsx)(n.Input,{type:"password",placeholder:v("common.enterPassword"),className:"pl-10",...e})]})}),(0,t.jsx)(u.FormMessage,{})]})}),(0,t.jsx)(r.Button,{type:"submit",variant:M?"outline":"default",className:"w-full cursor-pointer",children:v("common.loginWithPassword")})]})})]})]})})}e.s(["default",()=>v])}]); |