vdi/web-fe/serve/dist/587.async.js

10 lines
29 KiB
JavaScript
Raw Normal View History

2025-08-13 01:23:37 +00:00
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[587],{86587:function(Xe,Ee,a){a.d(Ee,{Z:function(){return nn}});var i=a(65223),z=a(74902),o=a(67294),ve=a(93967),re=a.n(ve),Re=a(29372),Ne=a(33603),be=a(35792);function ye(e){const[t,n]=o.useState(e);return o.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}var k=a(11568),C=a(14747),$e=a(50438),ue=a(33507),U=a(83262),Q=a(83559),_=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}};const H=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,k.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,k.bf)(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),y=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},D=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,C.Wf)(e)),H(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},y(e,e.controlHeightSM)),"&-large":Object.assign({},y(e,e.controlHeightLG))})}},B=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:l,labelRequiredMarkColor:c,labelColor:f,labelFontSize:m,labelHeight:p,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:v,itemMarginBottom:g}=e;return{[t]:Object.assign(Object.assign({},(0,C.Wf)(e)),{marginBottom:g,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${l}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:p,color:f,fontSize:m,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:c,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:v},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${l}-switch:only-child, > ${l}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:$e.kr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},oe=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},ae=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},F=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),fe=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:F(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Te=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
${r}-col-24${n}-label,
${r}-col-xl-24${n}-label`]:F(e)}},[`@media (max-width: ${(0,k.bf)(e.screenXSMax)})`]:[fe(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:F(e)}}}],[`@media (max-width: ${(0,k.bf)(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:F(e)}}},[`@media (max-width: ${(0,k.bf)(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:F(e)}}},[`@media (max-width: ${(0,k.bf)(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:F(e)}}}}},Le=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
${n}-col-24${t}-label,
${n}-col-xl-24${t}-label`]:F(e),[`@media (max-width: ${(0,k.bf)(e.screenXSMax)})`]:[fe(e),{[t]:{[`${n}-col-xs-24${t}-label`]:F(e)}}],[`@media (max-width: ${(0,k.bf)(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:F(e)}},[`@media (max-width: ${(0,k.bf)(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:F(e)}},[`@media (max-width: ${(0,k.bf)(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:F(e)}}}},w=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Ce=(e,t)=>(0,U.IX)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t});var xe=(0,Q.I$)("Form",(e,{rootPrefixCls:t})=>{const n=Ce(e,t);return[D(n),B(n),_(n),oe(n,n.componentCls),oe(n,n.formItemCls),ae(n),Te(n),Le(n),(0,ue.Z)(n),$e.kr]},w,{order:-1e3});const Se=[];function le(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}var Ve=({help:e,helpStatus:t,errors:n=Se,warnings:r=Se,className:l,fieldId:c,onVisibleChanged:f})=>{const{prefixCls:m}=o.useContext(i.Rk),p=`${m}-item-explain`,u=(0,be.Z)(m),[v,g,A]=xe(m,u),J=o.useMemo(()=>(0,Ne.Z)(m),[m]),G=ye(n),I=ye(r),b=o.useMemo(()=>e!=null?[le(e,"help",t)]:[].concat((0,z.Z)(G.map((d,s)=>le(d,"error","error",s))),(0,z.Z)(I.map((d,s)=>le(d,"warning","warning",s)))),[e,t,G,I]),L=o.useMemo(()=>{const d={};return b.forEach(({key:s})=>{d[s]=(d[s]||0)+1}),b.map((s,j)=>Object.assign(Object.assign({},s),{key:d[s.key]>1?`${s.key}-fallback-${j}`:s.key}))},[b]),V={};return c&&(V.id=`${c}_help`),v(o.createElement(Re.ZP,{motionDeadline:J.motionDeadline,motionName:`${m}-show-help`,visible:!!L.length,onVisibleChanged:f},d=>{const{className:s,style:j}=d;return o.createElement("div",Object.assign({},V,{className:re()(p,s,A,u,l,g),style:j}),o.createElement(Re.V4,Object.assign({keys:L},(0,Ne.Z)(m),{motionName:`${m}-show-help-item`,component:!1}),K=>{const{key:R,error:x,errorStatus:O,className:N,style:Z}=K;return o.createElement("div",{key:R,className:re()(N,{[`${p}-${O}`]:O}),style:Z},x)}))}))},Y=a(88692),S=a(53124),$=a(98866),ce=a(98675),ze=a(97647),De=a(88942),Ae=a(37920),Ue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};const ct=(e,t)=>{const n=o.useContext($.Z),{getPrefixCls:r,direction:l,requiredMark:c,colon:f,scrollToFirstError:m,className:p,style:u}=(0,S.dj)("form"),{prefixCls:v,className:g,rootClassName:A,size:J,disabled:G=n,form:I,colon:b,labelAlign:L,labelWrap:V,labelCol:d,wrapperCol:s,hideRequiredMark:j,layout:K="horizontal",scrollToFirstError:R,requiredMark:x,onFinishFailed:O,name:N,style:Z,feedbackIcons:me,variant:pe}=e,ee=Ue(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),te=(0,ce.Z)(J),se=o.useContext(Ae.Z),de=o.useMemo(()=>x!==void 0?x:j?!1:c!==void 0?c:!0,[j,x,c]),q=b!=null?b:f,M=r("form",v),ne=(0,be.Z)(M),[je,We,Me]=xe(M,ne),He=re()(M,`${M}-${K}`,{[`${M}-hide-required-mark`]:de===!1,[`${M}-rtl`]:l==="rtl",[`${M}-${te}`]:te},Me,ne,We,p,g,A),[Oe]=(0,De.Z)(I),{__INTERNAL__:Be}=Oe;Be.name=N;const Pe=o.useMemo(()=>({name:N,labelAlign:L,labelCol:d,labelWrap:V,wrapperCol:s,vertical:K==="vertical",colon:q,requiredMark:de,itemRef:Be.itemRef,form:Oe,feedbackIcons:me}),[N,L,d,s,K,q,de,Oe,me]),E=o.useRef(null);o.useImperativeHandle(t,()=>{var P;return Object.assign(Object.assign({},Oe),{nativeElement:(P=E.current)===null||P===void 0?void 0:P.nativeElement})});const X=(P,ie)=>{if(P){let he={block:"nearest"};typeof P=="object"&&(he=Object.assign(Object.ass