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],{72579:function(He,W,r){r.r(W),r.d(W,{default:function(){return Ee}});var K=r(15009),F=r.n(K),Q=r(97857),L=r.n(Q),X=r(99289),B=r.n(X),Y=r(5574),J=r.n(Y),w=r(39418),q=r(48357),_=r(87547),l=r(1413),P=r(67294),ee={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"},ne=ee,te=r(91146),k=function(t,e){return P.createElement(te.Z,(0,l.Z)((0,l.Z)({},t),{},{ref:e,icon:ne}))};k.displayName="LockOutlined";var re=P.forwardRef(k),T=r(91),oe=r(10915),ae=r(28459),le=r(93967),se=r.n(le),ie=r(34994),I=r(4942),de=r(98082),ue=function(t){return(0,I.Z)((0,I.Z)({},t.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:t.colorTextSecondary,fontSize:t.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(t.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}))};function ce(o){return(0,de.Xj)("LoginForm",function(t){var e=(0,l.Z)((0,l.Z)({},t),{},{componentCls:".".concat(o)});return[ue(e)]})}var n=r(85893),ve=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function ge(o){var t,e=o.logo,i=o.message,d=o.contentStyle,c=o.title,u=o.subTitle,y=o.actions,g=o.children,j=o.containerStyle,v=o.otherStyle,a=(0,T.Z)(o,ve),R=(0,oe.YB)(),Z=a.submitter===!1?!1:(0,l.Z)((0,l.Z)({searchConfig:{submitText:R.getMessage("loginForm.submitText","\u767B\u5F55")}},a.submitter),{},{submitButtonProps:(0,l.Z)({size:"large",style:{width:"100%"}},(t=a.submitter)===null||t===void 0?void 0:t.submitButtonProps),render:function(O,G){var b,ke=G.pop();if(typeof(a==null||(b=a.submitter)===null||b===void 0?void 0:b.render)=="function"){var A,E;return a==null||(A=a.submitter)===null||A===void 0||(E=A.render)===null||E===void 0?void 0:E.call(A,O,G)}return ke}}),h=(0,P.useContext)(ae.ZP.ConfigContext),f=h.getPrefixCls("pro-form-login"),m=ce(f),S=m.wrapSSR,s=m.hashId,p=function(O){return"".concat(f,"-").concat(O," ").concat(s)},z=(0,P.useMemo)(function(){return e?typeof e=="string"?(0,n.jsx)("img",{src:e}):e:null},[e]);return S((0,n.jsxs)("div",{className:se()(p("container"),s),style:j,children:[(0,n.jsxs)("div",{className:"".concat(p("top")," ").concat(s).trim(),children:[c||z?(0,n.jsxs)("div",{className:"".concat(p("header")),children:[z?(0,n.jsx)("span",{className:p("logo"),children:z}):null,c?(0,n.jsx)("span",{className:p("title"),children:c}):null]}):null,u?(0,n.jsx)("div",{className:p("desc"),children:u}):null]}),(0,n.jsxs)("div",{className:p("main"),style:(0,l.Z)({width:328},d),children:[(0,n.jsxs)(ie.A,(0,l.Z)((0,l.Z)({isKeyPressSubmit:!0},a),{},{submitter:Z,children:[i,g]})),y?(0,n.jsx)("div",{className:p("main-other"),style:v,children:y}):null]})]}))}var H=r(97685),fe=r(21770),he=r(8232),me=r(55241),pe=r(97435),C=r(2247),xe=["fieldProps","proFieldProps"],ye=["fieldProps","proFieldProps"],M="text",Pe=function(t){var e=t.fiel