login-3I-QNHaj.js 18 KB

1
  1. import{$n as e,Bn as t,Br as n,Dr as r,Fn as i,Fr as a,Gn as o,Gr as s,Hr as c,Ir as l,Jn as u,Kt as d,Ln as f,Pn as p,Un as m,Vn as h,Vr as g,Vt as _,Wr as v,Yn as y,_ as b,a as x,bt as S,c as C,d as w,dr as T,hr as E,i as D,l as O,lr as k,n as A,nt as j,o as ee,on as M,pr as te,qr as N,r as P,s as F,t as I,u as L,un as ne,wn as R,zr as z}from"./styles-CLwaXWnz.js";var B=N(g()),V=N(v()),H=function(e,t){if(!e)return null;var n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},U=function(e){return e===void 0?void 0:`${e}px`};function re(e){var t=e.prefixCls,n=e.containerRef,o=e.value,s=e.getValueIndex,c=e.motionName,l=e.onMotionStart,u=e.onMotionEnd,d=e.direction,f=e.vertical,p=f===void 0?!1:f,m=V.useRef(null),h=E(V.useState(o),2),g=h[0],_=h[1],v=function(e){var r=s(e),i=n.current?.querySelectorAll(`.${t}-item`)[r];return i?.offsetParent&&i},y=E(V.useState(null),2),b=y[0],x=y[1],S=E(V.useState(null),2),C=S[0],w=S[1];k(function(){if(g!==o){var e=v(g),t=v(o),n=H(e,p),r=H(t,p);_(o),x(n),w(r),e&&t?l():u()}},[o]);var T=V.useMemo(function(){return U(p?b?.top??0:d===`rtl`?-b?.right:b?.left)},[p,d,b]),D=V.useMemo(function(){return U(p?C?.top??0:d===`rtl`?-C?.right:C?.left)},[p,d,C]);return!b||!C?null:V.createElement(i,{visible:!0,motionName:c,motionAppear:!0,onAppearStart:function(){return p?{transform:`translateY(var(--thumb-start-top))`,height:`var(--thumb-start-height)`}:{transform:`translateX(var(--thumb-start-left))`,width:`var(--thumb-start-width)`}},onAppearActive:function(){return p?{transform:`translateY(var(--thumb-active-top))`,height:`var(--thumb-active-height)`}:{transform:`translateX(var(--thumb-active-left))`,width:`var(--thumb-active-width)`}},onVisibleChanged:function(){x(null),w(null),u()}},function(e,n){var i=e.className,o=e.style,s=a(a({},o),{},{"--thumb-start-left":T,"--thumb-start-width":U(b?.width),"--thumb-active-left":D,"--thumb-active-width":U(C?.width),"--thumb-start-top":T,"--thumb-start-height":U(b?.height),"--thumb-active-top":D,"--thumb-active-height":U(C?.height)}),c={ref:r(m,n),style:s,className:(0,B.default)(`${t}-thumb`,i)};return V.createElement(`div`,c)})}var ie=[`prefixCls`,`direction`,`vertical`,`options`,`disabled`,`defaultValue`,`value`,`name`,`onChange`,`className`,`motionName`];function W(e){if(e.title!==void 0)return e.title;if(z(e.label)!==`object`)return e.label?.toString()}function ae(e){return e.map(function(e){if(z(e)===`object`&&e!==null){var t=W(e);return a(a({},e),{},{title:t})}return{label:e?.toString(),title:e?.toString(),value:e}})}var oe=function(e){var t=e.prefixCls,n=e.className,r=e.disabled,i=e.checked,a=e.label,o=e.title,s=e.value,c=e.name,u=e.onChange,d=e.onFocus,f=e.onBlur,p=e.onKeyDown,m=e.onKeyUp,h=e.onMouseDown;return V.createElement(`label`,{className:(0,B.default)(n,l({},`${t}-item-disabled`,r)),onMouseDown:h},V.createElement(`input`,{name:c,className:`${t}-item-input`,type:`radio`,disabled:r,checked:i,onChange:function(e){r||u(e,s)},onFocus:d,onBlur:f,onKeyDown:p,onKeyUp:m}),V.createElement(`div`,{className:`${t}-item-label`,title:o},a))},G=V.forwardRef(function(e,t){var i=e.prefixCls,a=i===void 0?`rc-segmented`:i,o=e.direction,s=e.vertical,c=e.options,u=c===void 0?[]:c,d=e.disabled,f=e.defaultValue,p=e.value,m=e.name,h=e.onChange,g=e.className,_=g===void 0?``:g,v=e.motionName,b=v===void 0?`thumb-motion`:v,x=te(e,ie),S=V.useRef(null),C=V.useMemo(function(){return r(S,t)},[S,t]),w=V.useMemo(function(){return ae(u)},[u]),T=E(y(w[0]?.value,{value:p,defaultValue:f}),2),D=T[0],O=T[1],k=E(V.useState(!1),2),A=k[0],j=k[1],ee=function(e,t){O(t),h?.(t)},M=ne(x,[`children`]),N=E(V.useState(!1),2),P=N[0],F=N[1],I=E(V.useState(!1),2),L=I[0],R=I[1],z=function(){R(!0)},H=function(){R(!1)},U=function(){F(!1)},W=function(e){e.key===`Tab`&&F(!0)},G=function(e){var t=w.findIndex(function(e){return e.value===D}),n=w.length,r=w[(t+e+n)%n];r&&(O(r.value),h?.(r.value))},K=function(e){switch(e.key){case`ArrowLeft`:case`ArrowUp`:G(-1);break;case`ArrowRight`:case`ArrowDown`:G(1);break}};return V.createElement(`div`,n({role:`radiogroup`,"aria-label":`segmented control`,tabIndex:d?void 0:0,"aria-orientation":s?`vertical`:`horizontal`},M,{className:(0,B.default)(a,l(l(l({},`${a}-rtl`,o===`rtl`),`${a}-disabled`,d),`${a}-vertical`,s),_),ref:C}),V.createElement(`div`,{className:`${a}-group`},V.createElement(re,{vertical:s,prefixCls:a,value:D,containerRef:S,motionName:`${a}-${b}`,direction:o,getValueIndex:function(e){return w.findIndex(function(t){return t.value===e})},onMotionStart:function(){j(!0)},onMotionEnd:function(){j(!1)}}),w.map(function(e){return V.createElement(oe,n({},e,{name:m,key:e.value,prefixCls:a,className:(0,B.default)(e.className,`${a}-item`,l(l({},`${a}-item-selected`,e.value===D&&!A),`${a}-item-focused`,L&&P&&e.value===D)),checked:e.value===D,onChange:ee,onFocus:z,onBlur:H,onKeyDown:K,onKeyUp:W,onMouseDown:U,disabled:!!d||!!e.disabled}))})))});function K(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}function q(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}var se=Object.assign({overflow:`hidden`},o),ce=e=>{let{componentCls:n}=e,r=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m(e)),{display:`inline-block`,padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`}),h(e)),{[`${n}-group`]:{position:`relative`,display:`flex`,alignItems:`stretch`,justifyItems:`flex-start`,flexDirection:`row`,width:`100%`},[`&${n}-rtl`]:{direction:`rtl`},[`&${n}-vertical`]:{[`${n}-group`]:{flexDirection:`column`},[`${n}-thumb`]:{width:`100%`,height:0,padding:`0 ${T(e.paddingXXS)}`}},[`&${n}-block`]:{display:`flex`},[`&${n}-block ${n}-item`]:{flex:1,minWidth:0},[`${n}-item`]:{position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`color ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,transform:`translateZ(0)`,"&-selected":Object.assign(Object.assign({},q(e)),{color:e.itemSelectedColor}),"&-focused":t(e),"&::after":{content:`""`,position:`absolute`,zIndex:-1,width:`100%`,height:`100%`,top:0,insetInlineStart:0,borderRadius:`inherit`,opacity:0,transition:`opacity ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,pointerEvents:`none`},[`&:not(${n}-item-selected):not(${n}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:r,lineHeight:T(r),padding:`0 ${T(e.segmentedPaddingHorizontal)}`},se),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:`none`}},[`${n}-thumb`]:Object.assign(Object.assign({},q(e)),{position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${T(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${n}-item:not(${n}-item-selected):not(${n}-item-disabled)::after`]:{backgroundColor:`transparent`}}),[`&${n}-lg`]:{borderRadius:e.borderRadiusLG,[`${n}-item-label`]:{minHeight:i,lineHeight:T(i),padding:`0 ${T(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${n}-item, ${n}-thumb`]:{borderRadius:e.borderRadius}},[`&${n}-sm`]:{borderRadius:e.borderRadiusSM,[`${n}-item-label`]:{minHeight:a,lineHeight:T(a),padding:`0 ${T(e.segmentedPaddingHorizontalSM)}`},[`${n}-item, ${n}-thumb`]:{borderRadius:e.borderRadiusXS}}}),K(`&-disabled ${n}-item`,e)),K(`${n}-item-disabled`,e)),{[`${n}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:`transform, width`},[`&${n}-shape-round`]:{borderRadius:9999,[`${n}-item, ${n}-thumb`]:{borderRadius:9999}}})}},le=f(`Segmented`,e=>{let{lineWidth:t,calc:n}=e;return ce(u(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}}),J=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function ue(e){return typeof e==`object`&&!!e?.icon}var de=V.forwardRef((t,n)=>{let r=_(),{prefixCls:i,className:a,rootClassName:o,block:s,options:c=[],size:l=`middle`,style:u,vertical:d,shape:f=`default`,name:p=r}=t,m=J(t,[`prefixCls`,`className`,`rootClassName`,`block`,`options`,`size`,`style`,`vertical`,`shape`,`name`]),{getPrefixCls:h,direction:g,className:v,style:y}=e(`segmented`),b=h(`segmented`,i),[x,S,C]=le(b),w=M(l),T=V.useMemo(()=>c.map(e=>{if(ue(e)){let{icon:t,label:n}=e,r=J(e,[`icon`,`label`]);return Object.assign(Object.assign({},r),{label:V.createElement(V.Fragment,null,V.createElement(`span`,{className:`${b}-item-icon`},t),n&&V.createElement(`span`,null,n))})}return e}),[c,b]),E=(0,B.default)(a,o,v,{[`${b}-block`]:s,[`${b}-sm`]:w===`small`,[`${b}-lg`]:w===`large`,[`${b}-vertical`]:d,[`${b}-shape-${f}`]:f===`round`},S,C),D=Object.assign(Object.assign({},y),u);return x(V.createElement(G,Object.assign({},m,{name:p,className:E,style:D,options:T,ref:n,prefixCls:b,direction:g,vertical:d})))}),fe=N(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z`}},{tag:`path`,attrs:{d:`M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 003 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 00-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z`}}]},name:`cloud-sync`,theme:`outlined`}}))());function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(this,arguments)}var pe=V.forwardRef((e,t)=>V.createElement(F,Y({},e,{ref:t,icon:fe.default}))),me=N(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z`}}]},name:`lock`,theme:`outlined`}}))());function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(this,arguments)}var he=V.forwardRef((e,t)=>V.createElement(F,X({},e,{ref:t,icon:me.default}))),ge=N(s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z`}}]},name:`safety-certificate`,theme:`outlined`}}))());function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z.apply(this,arguments)}var _e=V.forwardRef((e,t)=>V.createElement(F,Z({},e,{ref:t,icon:ge.default}))),ve=c(),Q=P();function ye(){let{locale:e,locales:t,setLocale:n,t:r}=A(),[i,a]=(0,V.useState)(()=>window.location.pathname===`/register`?`register`:`login`),[o,s]=(0,V.useState)(``),[c,l]=(0,V.useState)(!1),[u]=L.useForm(),[f]=L.useForm();(0,V.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get(`error`);e&&(s(e),window.history.replaceState(null,``,window.location.pathname))},[]);let p=(0,V.useMemo)(()=>[{label:r(`auth.login`),value:`login`},{label:r(`auth.register`),value:`register`}],[r]);async function m(e,t){l(!0),s(``);try{let n=await fetch(e,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)}),i=await n.json().catch(()=>({}));if(!n.ok)throw Error(i.error||r(`auth.requestFailed`));window.location.href=`/`}catch(e){s(e instanceof Error?e.message:r(`auth.requestFailed`))}finally{l(!1)}}return(0,Q.jsxs)(`main`,{className:`auth-page`,children:[(0,Q.jsxs)(`section`,{className:`auth-brand-panel`,children:[(0,Q.jsxs)(`div`,{className:`auth-brand-top`,children:[(0,Q.jsx)(`div`,{className:`brand-logo auth-logo`,children:`MH`}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(C.Title,{level:1,children:`MailHub`}),(0,Q.jsx)(C.Text,{children:r(`auth.subtitle`)})]})]}),(0,Q.jsxs)(`div`,{className:`auth-signal-list`,children:[(0,Q.jsx)($,{icon:(0,Q.jsx)(pe,{}),title:`DNS`,text:r(`auth.valueDns`)}),(0,Q.jsx)($,{icon:(0,Q.jsx)(_e,{}),title:`SMTP`,text:r(`auth.valueIsolation`)}),(0,Q.jsx)($,{icon:(0,Q.jsx)(ee,{}),title:`API`,text:r(`auth.valueObservability`)})]})]}),(0,Q.jsxs)(`section`,{className:`auth-form-panel`,children:[(0,Q.jsx)(`div`,{className:`auth-language-row`,children:(0,Q.jsx)(j,{value:e,options:t,onChange:n,className:`language-select`})}),(0,Q.jsx)(b,{className:`auth-card`,children:(0,Q.jsxs)(w,{direction:`vertical`,size:22,className:`full-width`,children:[(0,Q.jsxs)(`div`,{className:`auth-heading`,children:[(0,Q.jsx)(C.Text,{className:`auth-eyebrow`,children:r(i===`login`?`auth.loginEyebrow`:`auth.registerEyebrow`)}),(0,Q.jsx)(C.Title,{level:2,children:r(i===`login`?`auth.loginTitle`:`auth.registerTitle`)})]}),(0,Q.jsx)(de,{block:!0,value:i,options:p,onChange:e=>{let t=e;a(t),s(``),window.history.replaceState(null,``,t===`register`?`/register`:`/login`)}}),o?(0,Q.jsx)(R,{type:`error`,showIcon:!0,message:o}):null,i===`login`?(0,Q.jsxs)(L,{form:u,layout:`vertical`,onFinish:e=>m(`/api/login`,e),requiredMark:!1,children:[(0,Q.jsx)(L.Item,{name:`username`,label:r(`auth.usernameOrEmail`),rules:[{required:!0,message:r(`auth.usernameOrEmail`)}],children:(0,Q.jsx)(O,{prefix:(0,Q.jsx)(D,{}),autoComplete:`username`,autoFocus:!0})}),(0,Q.jsx)(L.Item,{name:`password`,label:r(`auth.password`),rules:[{required:!0,message:r(`auth.password`)}],children:(0,Q.jsx)(O.Password,{prefix:(0,Q.jsx)(he,{}),autoComplete:`current-password`})}),(0,Q.jsx)(d,{type:`primary`,htmlType:`submit`,loading:c,block:!0,size:`large`,children:r(`auth.submitLogin`)})]}):(0,Q.jsxs)(L,{form:f,layout:`vertical`,onFinish:e=>m(`/api/register`,e),requiredMark:!1,children:[(0,Q.jsx)(L.Item,{name:`username`,label:r(`auth.username`),rules:[{required:!0,min:3,message:r(`auth.username`)}],children:(0,Q.jsx)(O,{prefix:(0,Q.jsx)(D,{}),autoComplete:`username`,autoFocus:!0})}),(0,Q.jsx)(L.Item,{name:`email`,label:r(`auth.email`),rules:[{required:!0,type:`email`,message:r(`auth.email`)}],children:(0,Q.jsx)(O,{prefix:(0,Q.jsx)(x,{}),autoComplete:`email`,placeholder:r(`auth.emailPlaceholder`)})}),(0,Q.jsx)(L.Item,{name:`password`,label:r(`auth.password`),rules:[{required:!0,min:8,message:r(`auth.password`)}],children:(0,Q.jsx)(O.Password,{prefix:(0,Q.jsx)(he,{}),autoComplete:`new-password`})}),(0,Q.jsx)(d,{type:`primary`,htmlType:`submit`,loading:c,block:!0,size:`large`,children:r(`auth.registerButton`)})]})]})})]})]})}function $({icon:e,title:t,text:n}){return(0,Q.jsxs)(`div`,{className:`auth-signal-item`,children:[(0,Q.jsx)(`span`,{children:e}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(C.Text,{children:t}),(0,Q.jsx)(C.Title,{level:5,children:n})]})]})}(0,ve.createRoot)(document.getElementById(`auth-root`)).render((0,Q.jsx)(p,{theme:{token:{colorPrimary:`#1677ff`,borderRadius:10,colorBgLayout:`#f5f7fb`,colorBorderSecondary:`#e5eaf2`},components:{Card:{borderRadiusLG:12}}},children:(0,Q.jsx)(S,{children:(0,Q.jsx)(I,{children:(0,Q.jsx)(ye,{})})})}));