Files
weiyu/deploy/server/admin/5167.8bb0b26e.async.js
jack ning 4445905084 update
2025-11-22 13:39:00 +08:00

1 line
8.4 KiB
JavaScript

"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5167],{26978:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(83910),o=t(44194),i={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"},l=t(54183),a=function(e,n){return o.createElement(l.Z,(0,r.Z)({},e,{ref:n,icon:i}))};var c=o.forwardRef(a)},40795:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(83910),o=t(44194),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},l=t(54183),a=function(e,n){return o.createElement(l.Z,(0,r.Z)({},e,{ref:n,icon:i}))};var c=o.forwardRef(a)},58087:function(e,n,t){var r=t(83910),o=t(44194),i=t(15323),l=t(54183),a=function(e,n){return o.createElement(l.Z,(0,r.Z)({},e,{ref:n,icon:i.Z}))},c=o.forwardRef(a);n.Z=c},3800:function(e,n,t){var r=t(94433),o=t(6321),i=t(7304),l=t(38956),a=t(32906),c=t(41196),s=t(32525),u=t(82770),d=t(44194),p=t(88116),f=t(31549),h=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],v=d.forwardRef((function(e,n){var t=c.Z.useFormInstance(),p=(0,d.useState)(e.countDown||60),v=(0,a.Z)(p,2),m=v[0],g=v[1],x=(0,d.useState)(!1),Z=(0,a.Z)(x,2),y=Z[0],P=Z[1],b=(0,d.useState)(),w=(0,a.Z)(b,2),k=w[0],j=w[1],C=(e.rules,e.name,e.phoneName),S=e.fieldProps,T=e.onTiming,B=e.captchaTextRender,F=void 0===B?function(e,n){return e?"".concat(n," 秒后重新获取"):"获取验证码"}:B,R=e.captchaProps,N=(0,l.Z)(e,h),z=function(){var e=(0,i.Z)((0,o.Z)().mark((function e(n){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,j(!0),e.next=4,N.onGetCaptcha(n);case 4:j(!1),P(!0),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),P(!1),j(!1),console.log(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(n){return e.apply(this,arguments)}}();return(0,d.useImperativeHandle)(n,(function(){return{startTiming:function(){return P(!0)},endTiming:function(){return P(!1)}}})),(0,d.useEffect)((function(){var n=0,t=e.countDown;return y&&(n=window.setInterval((function(){g((function(e){return e<=1?(P(!1),clearInterval(n),t||60):e-1}))}),1e3)),function(){return clearInterval(n)}}),[y]),(0,d.useEffect)((function(){T&&T(m)}),[m,T]),(0,f.jsxs)("div",{style:(0,r.Z)((0,r.Z)({},null==S?void 0:S.style),{},{display:"flex",alignItems:"center"}),ref:n,children:[(0,f.jsx)(s.Z,(0,r.Z)((0,r.Z)({},S),{},{style:(0,r.Z)({flex:1,transition:"width .3s",marginRight:8},null==S?void 0:S.style)})),(0,f.jsx)(u.ZP,(0,r.Z)((0,r.Z)({style:{display:"block"},disabled:y,loading:k},R),{},{onClick:(0,i.Z)((0,o.Z)().mark((function e(){var n;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!C){e.next=9;break}return e.next=4,t.validateFields([C].flat(1));case 4:return n=t.getFieldValue([C].flat(1)),e.next=7,z(n);case 7:e.next=11;break;case 9:return e.next=11,z("");case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),console.log(e.t0);case 16:case"end":return e.stop()}}),e,null,[[0,13]])}))),children:F(y,m)}))]})})),m=(0,p.G)(v);n.Z=m},89965:function(e,n,t){var r=t(32906),o=t(94433),i=t(38956),l=t(81424),a=t(41196),c=t(63924),s=t(34573),u=t(44194),d=t(35074),p=t(31549),f=["fieldProps","proFieldProps"],h=["fieldProps","proFieldProps"],v="text",m=function(e){var n=(0,l.Z)(e.open||!1,{value:e.open,onChange:e.onOpenChange}),t=(0,r.Z)(n,2),i=t[0],s=t[1];return(0,p.jsx)(a.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(n){var t,r=n.getFieldValue(e.name||[]);return(0,p.jsx)(c.Z,(0,o.Z)((0,o.Z)({getPopupContainer:function(e){return e&&e.parentNode?e.parentNode:e},onOpenChange:function(e){return s(e)},content:(0,p.jsxs)("div",{style:{padding:"4px 0"},children:[null===(t=e.statusRender)||void 0===t?void 0:t.call(e,r),e.strengthText?(0,p.jsx)("div",{style:{marginTop:10},children:(0,p.jsx)("span",{children:e.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},e.popoverProps),{},{open:i,children:e.children}))}})},g=function(e){var n=e.fieldProps,t=e.proFieldProps,r=(0,i.Z)(e,f);return(0,p.jsx)(d.Z,(0,o.Z)({valueType:v,fieldProps:n,filedConfig:{valueType:v},proFieldProps:t},r))};g.Password=function(e){var n=e.fieldProps,t=e.proFieldProps,l=(0,i.Z)(e,h),a=(0,u.useState)(!1),c=(0,r.Z)(a,2),f=c[0],g=c[1];return null!=n&&n.statusRender&&l.name?(0,p.jsx)(m,{name:l.name,statusRender:null==n?void 0:n.statusRender,popoverProps:null==n?void 0:n.popoverProps,strengthText:null==n?void 0:n.strengthText,open:f,onOpenChange:g,children:(0,p.jsx)("div",{children:(0,p.jsx)(d.Z,(0,o.Z)({valueType:"password",fieldProps:(0,o.Z)((0,o.Z)({},(0,s.Z)(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(e){var t;null==n||null===(t=n.onBlur)||void 0===t||t.call(n,e),g(!1)},onClick:function(e){var t;null==n||null===(t=n.onClick)||void 0===t||t.call(n,e),g(!0)}}),proFieldProps:t,filedConfig:{valueType:v}},l))})}):(0,p.jsx)(d.Z,(0,o.Z)({valueType:"password",fieldProps:n,proFieldProps:t,filedConfig:{valueType:v}},l))},g.displayName="ProFormComponent",n.Z=g},76689:function(e,n,t){t.d(n,{U:function(){return m}});var r=t(94433),o=t(38956),i=t(34020),l=t(69846),a=t(51865),c=t.n(a),s=t(44194),u=t(25784),d=t(1206),p=t(56078),f=function(e){return(0,d.Z)((0,d.Z)({},e.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:e.colorTextSecondary,fontSize:e.fontSize},"&-main":{minWidth:"328px",maxWidth:"580px",margin:"0 auto","&-other":{marginBlockStart:"24px",lineHeight:"22px",textAlign:"start"}}}),"@media (min-width: @screen-md-min)",(0,d.Z)({},"".concat(e.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}))};var h=t(31549),v=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function m(e){var n,t,a=e.logo,d=e.message,m=e.contentStyle,g=e.title,x=e.subTitle,Z=e.actions,y=e.children,P=e.containerStyle,b=e.otherStyle,w=(0,o.Z)(e,v),k=(0,i.YB)(),j=!1!==w.submitter&&(0,r.Z)((0,r.Z)({searchConfig:{submitText:k.getMessage("loginForm.submitText","登录")}},w.submitter),{},{submitButtonProps:(0,r.Z)({size:"large",style:{width:"100%"}},null===(n=w.submitter)||void 0===n?void 0:n.submitButtonProps),render:function(e,n){var t,r,o,i=n.pop();return"function"==typeof(null==w||null===(t=w.submitter)||void 0===t?void 0:t.render)?null==w||null===(r=w.submitter)||void 0===r||null===(o=r.render)||void 0===o?void 0:o.call(r,e,n):i}}),C=(0,s.useContext)(l.ZP.ConfigContext).getPrefixCls("pro-form-login"),S=(t=C,(0,p.Xj)("LoginForm",(function(e){var n=(0,r.Z)((0,r.Z)({},e),{},{componentCls:".".concat(t)});return[f(n)]}))),T=S.wrapSSR,B=S.hashId,F=function(e){return"".concat(C,"-").concat(e," ").concat(B)},R=(0,s.useMemo)((function(){return a?"string"==typeof a?(0,h.jsx)("img",{src:a}):a:null}),[a]);return T((0,h.jsxs)("div",{className:c()(F("container"),B),style:P,children:[(0,h.jsxs)("div",{className:"".concat(F("top")," ").concat(B).trim(),children:[g||R?(0,h.jsxs)("div",{className:"".concat(F("header")),children:[R?(0,h.jsx)("span",{className:F("logo"),children:R}):null,g?(0,h.jsx)("span",{className:F("title"),children:g}):null]}):null,x?(0,h.jsx)("div",{className:F("desc"),children:x}):null]}),(0,h.jsxs)("div",{className:F("main"),style:(0,r.Z)({width:328},m),children:[(0,h.jsxs)(u.A,(0,r.Z)((0,r.Z)({isKeyPressSubmit:!0},w),{},{submitter:j,children:[d,y]})),Z?(0,h.jsx)("div",{className:F("main-other"),style:b,children:Z}):null]})]}))}}}]);