You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
10 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[366],{14525:function(He,W,r){r.r(W),r.d(W,{default:function(){return Ee}});var K=r(15009),F=r.n(K),w=r(97857),B=r.n(w),X=r(99289),R=r.n(X),Y=r(5574),J=r.n(Y),Q=r(48357),q=r(87547),l=r(1413),S=r(67294),_={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"},ee=_,te=r(91146),U=function(n,e){return S.createElement(te.Z,(0,l.Z)((0,l.Z)({},n),{},{ref:e,icon:ee}))};U.displayName="LockOutlined";var ne=S.forwardRef(U),T=r(91),re=r(10915),oe=r(28459),ae=r(93967),le=r.n(ae),se=r(34994),I=r(4942),ie=r(98082),de=function(n){return(0,I.Z)((0,I.Z)({},n.componentCls,{"&-container":{display:"flex",flex:"1",flexDirection:"column",height:"100%",paddingInline:32,paddingBlock:24,overflow:"auto",background:"inherit"},"&-top":{textAlign:"center"},"&-header":{display:"flex",alignItems:"center",justifyContent:"center",height:"44px",lineHeight:"44px",a:{textDecoration:"none"}},"&-title":{position:"relative",insetBlockStart:"2px",color:"@heading-color",fontWeight:"600",fontSize:"33px"},"&-logo":{width:"44px",height:"44px",marginInlineEnd:"16px",verticalAlign:"top",img:{width:"100%"}},"&-desc":{marginBlockStart:"12px",marginBlockEnd:"40px",color:n.colorTextSecondary,fontSize:n.fontSize},"&-main":{minWidth:"328px",maxWidth:"580px",margin:"0 auto","&-other":{marginBlockStart:"24px",lineHeight:"22px",textAlign:"start"}}}),"@media (min-width: @screen-md-min)",(0,I.Z)({},"".concat(n.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}))};function ue(o){return(0,ie.Xj)("LoginForm",function(n){var e=(0,l.Z)((0,l.Z)({},n),{},{componentCls:".".concat(o)});return[de(e)]})}var t=r(85893),ce=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function ve(o){var n,e=o.logo,i=o.message,d=o.contentStyle,c=o.title,u=o.subTitle,P=o.actions,g=o.children,j=o.containerStyle,v=o.otherStyle,a=(0,T.Z)(o,ce),O=(0,re.YB)(),Z=a.submitter===!1?!1:(0,l.Z)((0,l.Z)({searchConfig:{submitText:O.getMessage("loginForm.submitText","\u767B\u5F55")}},a.submitter),{},{submitButtonProps:(0,l.Z)({size:"large",style:{width:"100%"}},(n=a.submitter)===null||n===void 0?void 0:n.submitButtonProps),render:function(b,$){var A,Ue=$.pop();if(typeof(a==null||(A=a.submitter)===null||A===void 0?void 0:A.render)=="function"){var L,E;return a==null||(L=a.submitter)===null||L===void 0||(E=L.render)===null||E===void 0?void 0:E.call(L,b,$)}return Ue}}),h=(0,S.useContext)(oe.ZP.ConfigContext),f=h.getPrefixCls("pro-form-login"),m=ue(f),p=m.wrapSSR,x=m.hashId,s=function(b){return"".concat(f,"-").concat(b," ").concat(x)},z=(0,S.useMemo)(function(){return e?typeof e=="string"?(0,t.jsx)("img",{src:e}):e:null},[e]);return p((0,t.jsxs)("div",{className:le()(s("container"),x),style:j,children:[(0,t.jsxs)("div",{className:"".concat(s("top")," ").concat(x).trim(),children:[c||z?(0,t.jsxs)("div",{className:"".concat(s("header")),children:[z?(0,t.jsx)("span",{className:s("logo"),children:z}):null,c?(0,t.jsx)("span",{className:s("title"),children:c}):null]}):null,u?(0,t.jsx)("div",{className:s("desc"),children:u}):null]}),(0,t.jsxs)("div",{className:s("main"),style:(0,l.Z)({width:328},d),children:[(0,t.jsxs)(se.A,(0,l.Z)((0,l.Z)({isKeyPressSubmit:!0},a),{},{submitter:Z,children:[i,g]})),P?(0,t.jsx)("div",{className:s("main-other"),style:v,children:P}):null]})]}))}var H=r(97685),ge=r(21770),fe=r(8232),he=r(55241),me=r(97435),C=r(11911),pe=["fieldProps","proFieldProps"],xe=["fieldProps","proFieldProps"],M="text",ye=function(n){var e=n.fieldProps,i=n.p