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
14 KiB

6 months ago
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[366],{34994:function($e,w,e){e.d(w,{A:function(){return S}});var y=e(1413),P=e(8232),h=e(67294),V=e(78733),ce=e(9105),Z=e(4942),k=e(97685),ve=e(87462),pe=e(50756),ge=e(46976),fe=function(v,B){return h.createElement(ge.Z,(0,ve.Z)({},v,{ref:B,icon:pe.Z}))},l=h.forwardRef(fe),M=e(21770),me=e(48874),he=e(28459),xe=e(42075),q=e(93967),_=e.n(q),$=e(66758),ye=e(2514),Pe=e(98082),Ze=function(v){return(0,Z.Z)({},v.componentCls,{"&-title":{marginBlockEnd:v.marginXL,fontWeight:"bold"},"&-container":(0,Z.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(v.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)({display:"block",width:"100%"},"".concat(v.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(v.componentCls,"-container"),{paddingInlineStart:16}),"".concat(v.antCls,"-space-item,").concat(v.antCls,"-form-item"),{width:"100%"}),"".concat(v.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function Se(n){return(0,Pe.Xj)("ProFormGroup",function(v){var B=(0,y.Z)((0,y.Z)({},v),{},{componentCls:".".concat(n)});return[Ze(B)]})}var c=e(85893),G=h.forwardRef(function(n,v){var B=h.useContext($.Z),H=B.groupProps,p=(0,y.Z)((0,y.Z)({},H),n),ee=p.children,ne=p.collapsible,Fe=p.defaultCollapsed,W=p.style,Me=p.labelLayout,te=p.title,N=te===void 0?n.label:te,re=p.tooltip,oe=p.align,ae=oe===void 0?"start":oe,D=p.direction,b=p.size,X=b===void 0?32:b,Te=p.titleStyle,le=p.titleRender,T=p.spaceProps,K=p.extra,Y=p.autoFocus,Le=(0,M.Z)(function(){return Fe||!1},{value:n.collapsed,onChange:n.onCollapse}),J=(0,k.Z)(Le,2),Q=J[0],C=J[1],Re=(0,h.useContext)(he.ZP.ConfigContext),Ie=Re.getPrefixCls,se=(0,ye.zx)(n),Be=se.ColWrapper,ie=se.RowWrapper,E=Ie("pro-form-group"),de=Se(E),Ee=de.wrapSSR,U=de.hashId,o=ne&&(0,c.jsx)(l,{style:{marginInlineEnd:8},rotate:Q?void 0:90}),r=(0,c.jsx)(me.G,{label:o?(0,c.jsxs)("div",{children:[o,N]}):N,tooltip:re}),t=(0,h.useCallback)(function(u){var x=u.children;return(0,c.jsx)(xe.Z,(0,y.Z)((0,y.Z)({},T),{},{className:_()("".concat(E,"-container ").concat(U),T==null?void 0:T.className),size:X,align:ae,direction:D,style:(0,y.Z)({rowGap:0},T==null?void 0:T.style),children:x}))},[ae,E,D,U,X,T]),i=le?le(r,n):r,g=(0,h.useMemo)(function(){var u=[],x=h.Children.toArray(ee).map(function(s,a){var z;return h.isValidElement(s)&&s!==null&&s!==void 0&&(z=s.props)!==null&&z!==void 0&&z.hidden?(u.push(s),null):a===0&&h.isValidElement(s)&&Y?h.cloneElement(s,(0,y.Z)((0,y.Z)({},s.props),{},{autoFocus:Y})):s});return[(0,c.jsx)(ie,{Wrapper:t,children:x},"children"),u.length>0?(0,c.jsx)("div",{style:{display:"none"},children:u}):null]},[ee,ie,t,Y]),m=(0,k.Z)(g,2),f=m[0],j=m[1];return Ee((0,c.jsx)(Be,{children:(0,c.jsxs)("div",{className:_()(E,U,(0,Z.Z)({},"".concat(E,"-twoLine"),Me==="twoLine")),style:W,ref:v,children:[j,(N||re||K)&&(0,c.jsx)("div",{className:"".concat(E,"-title ").concat(U).trim(),style:Te,onClick:function(){C(!Q)},children:K?(0,c.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[i,(0,c.jsx)("span",{onClick:function(x){return x.stopPropagation()},children:K})]}):i}),(0,c.jsx)("div",{style:{display:ne&&Q?"none":void 0},children:f})]})}))});G.displayName="ProForm-Group";var Ce=G,je=e(4499);function S(n){return(0,c.jsx)(V.I,(0,y.Z)({layout:"vertical",contentRender:function(B,H){return(0,c.jsxs)(c.Fragment,{children:[B,H]})}},n))}S.Group=Ce,S.useForm=P.Z.useForm,S.Item=je.Z,S.useWatch=P.Z.useWatch,S.ErrorList=P.Z.ErrorList,S.Provider=P.Z.Provider,S.useFormInstance=P.Z.useFormInstance,S.EditOrReadOnlyContext=ce.A},14525:function($e,w,e){e.r(w),e.d(w,{default:function(){return U}});var y=e(15009),P=e.n(y),h=e(97857),V=e.n(h),ce=e(99289),Z=e.n(ce),k=e(5574),ve=e.n(k),pe=e.p+"static/loginBg.12a730ec.jpg",ge=e(48357),fe=e(87547),l=e(1413),M=e(67294),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"fa