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

7 months ago
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[366],{72579:function(ke,W,r){r.r(W),r.d(W,{default:function(){return Ee}});var K=r(15009),F=r.n(K),w=r(97857),L=r.n(w),Q=r(99289),B=r.n(Q),X=r(5574),Y=r.n(X),J=r(39418),q=r(48357),_=r(87547),l=r(1413),S=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),U=function(t,e){return S.createElement(te.Z,(0,l.Z)((0,l.Z)({},t),{},{ref:e,icon:ne}))};U.displayName="LockOutlined";var re=S.forwardRef(U),T=r(91),oe=r(10915),ae=r(28459),le=r(93967),se=r.n(le),ie=r(34994),R=r(4942),de=r(98082),ue=function(t){return(0,R.Z)((0,R.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,R.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,P=o.actions,g=o.children,j=o.containerStyle,v=o.otherStyle,a=(0,T.Z)(o,ve),N=(0,oe.YB)(),Z=a.submitter===!1?!1:(0,l.Z)((0,l.Z)({searchConfig:{submitText:N.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,Ue=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 Ue}}),h=(0,S.useContext)(ae.ZP.ConfigContext),f=h.getPrefixCls("pro-form-login"),m=ce(f),p=m.wrapSSR,x=m.hashId,s=function(O){return"".concat(f,"-").concat(O," ").concat(x)},z=(0,S.useMemo)(function(){return e?typeof e=="string"?(0,n.jsx)("img",{src:e}):e:null},[e]);return p((0,n.jsxs)("div",{className:se()(s("container"),x),style:j,children:[(0,n.jsxs)("div",{className:"".concat(s("top")," ").concat(x).trim(),children:[c||z?(0,n.jsxs)("div",{className:"".concat(s("header")),children:[z?(0,n.jsx)("span",{className:s("logo"),children:z}):null,c?(0,n.jsx)("span",{className:s("title"),children:c}):null]}):null,u?(0,n.jsx)("div",{className:s("desc"),children:u}):null]}),(0,n.jsxs)("div",{className:s("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]})),P?(0,n.jsx)("div",{className:s("main-other"),style:v,children:P}):null]})]}))}var k=r(97685),fe=r(21770),he=r(8232),me=r(55241),pe=r(97435),C=r(11911),xe=["fieldProps","proFieldProps"],ye=["fieldProps","proFieldProps"],M="text",Pe=function(t){var e=t.fie