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

4 lines
37 KiB
JavaScript
Raw Normal View History

2025-08-13 08:45:06 +00:00
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[818],{37322:function(Ot,_e,v){v.d(_e,{Z:function(){return k}});var a=v(66283),we=v(75271),Ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},He=Ae,We=v(60101),X=function(I,Te){return we.createElement(We.Z,(0,a.Z)({},I,{ref:Te,icon:He}))},le=we.forwardRef(X),k=le},80818:function(Ot,_e,v){v.d(_e,{Z:function(){return Ga}});var a=v(75271),we=v(45659),Ae=v(35867),He=v(37322),We=v(82187),X=v.n(We),le=v(66283),k=v(781),q=v(28037),I=v(29705),Te=v(19505),Le=v(79843),qe=v(93954),Bt=v(21611),Me=(0,a.createContext)(null),et=v(49744),Ge=v(1728),Dt=v(59373),_t=v(42684),tt=v(49975),At=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,l=t.indicator,c=l===void 0?{}:l,o=c.size,s=c.align,d=s===void 0?"center":s,g=(0,a.useState)(),b=(0,I.Z)(g,2),S=b[0],M=b[1],H=(0,a.useRef)(),E=a.useCallback(function(m){return typeof o=="function"?o(m):typeof o=="number"?o:m},[o]);function B(){tt.Z.cancel(H.current)}return(0,a.useEffect)(function(){var m={};if(n)if(r){m.width=E(n.width);var h=i?"right":"left";d==="start"&&(m[h]=n[h]),d==="center"&&(m[h]=n[h]+n.width/2,m.transform=i?"translateX(50%)":"translateX(-50%)"),d==="end"&&(m[h]=n[h]+n.width,m.transform="translateX(-100%)")}else m.height=E(n.height),d==="start"&&(m.top=n.top),d==="center"&&(m.top=n.top+n.height/2,m.transform="translateY(-50%)"),d==="end"&&(m.top=n.top+n.height,m.transform="translateY(-100%)");return B(),H.current=(0,tt.Z)(function(){var R=S&&m&&Object.keys(m).every(function(z){var D=m[z],_=S[z];return typeof D=="number"&&typeof _=="number"?Math.round(D)===Math.round(_):D===_});R||M(m)}),B},[JSON.stringify(n),r,i,d,E]),{style:S}},Ht=At,at={width:0,height:0,left:0,top:0};function Wt(e,t,n){return(0,a.useMemo)(function(){for(var r,i=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||at,c=l.left+l.width,o=0;o<e.length;o+=1){var s=e[o].key,d=t.get(s);if(!d){var g;d=t.get((g=e[o-1])===null||g===void 0?void 0:g.key)||at}var b=i.get(s)||(0,q.Z)({},d);b.right=c-b.left-b.width,i.set(s,b)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function nt(e,t){var n=a.useRef(e),r=a.useState({}),i=(0,I.Z)(r,2),l=i[1];function c(o){var s=typeof o=="function"?o(n.current):o;s!==n.current&&t(s,n.current),n.current=s,l({})}return[n.current,c]}var Gt=.1,rt=.01,Ze=20,it=Math.pow(.995,Ze);function jt(e,t){var n=(0,a.useState)(),r=(0,I.Z)(n,2),i=r[0],l=r[1],c=(0,a.useState)(0),o=(0,I.Z)(c,2),s=o[0],d=o[1],g=(0,a.useState)(0),b=(0,I.Z)(g,2),S=b[0],M=b[1],H=(0,a.useState)(),E=(0,I.Z)(H,2),B=E[0],m=E[1],h=(0,a.useRef)();function R(P){var w=P.touches[0],f=w.screenX,C=w.screenY;l({x:f,y:C}),window.clearInterval(h.current)}function z(P){if(i){var w=P.touches[0],f=w.screenX,C=w.screenY;l({x:f,y:C});var p=f-i.x,x=C-i.y;t(p,x);var j=Date.now();d(j),M(j-s),m({x:p,y:x})}}function D(){if(i&&(l(null),m(null),B)){var P=B.x/S,w=B.y/S,f=Math.abs(P),C=Math.abs(w);if(Math.max(f,C)<Gt)return;var p=P,x=w;h.current=window.setInterval(function(){if(Math.abs(p)<rt&&Math.abs(x)<rt){window.clearInterval(h.current);return}p*=it,x*=it,t(p*Ze,x*Ze)},Ze)}}var _=(0,a.useRef)();function G(P){var w=P.deltaX,f=P.deltaY,C=0,p=Math.abs(w),x=Math.abs(f);p===x?C=_.current==="x"?w:f:p>x?(C=w,_.current="x"):(C=f,_.current="y"),t(-C,-C)&&P.preventDefault()}var O=(0,a.useRef)(null);O.current={onTouchStart:R,onTouchMove:z,onTouchEnd:D,onWheel:G},a.useEffect(function(){function P(p){O.current.onTouchStart(p)}function w(p){O.current.onTouchMove(p)}function f(p){O.current.onTouchEnd(p)}function C(p){O.current.onWheel(p)}return document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",f,{passive:!0}),e.current.addEventListener("touchstart",P,{passive:!0}),e.current.addEventListener("wheel",C,{passive:!1}),function(){document.removeEventListener("touchmove",w),document.removeEventListener("touchend",f)}},[])}var
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:o(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:l,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:c},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,y.bf)(o(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,y.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:o(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,y.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},za=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:l,horizontalItemPaddingSM:c,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:c,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,y.bf)(e.borderRadius)} ${(0,y.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,y.bf)(e.borderRadius)} ${(0,y.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,y.bf)(e.borderRadius)} ${(0,y.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,y.bf)(e.borderRadius)} 0 0 ${(0,y.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:l,minHeight:l}}}}}},Oa=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:l,horizontalItemPadding:c,itemSelectedColor:o,itemColor:s}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},(0,fe.Qy)(e)),"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:o,textShadow:e.tabsActiveTextShadow},[`&${d}-focus ${d}-btn:focus-visible