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

4 lines
40 KiB
JavaScript
Raw Normal View History

2025-08-14 09:43:06 +00:00
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[199],{49199:function(Sn,Zt,$){$.d(Zt,{Z:function(){return en}});var a=$(67294),Ot=$(97937),zt=$(89705),At=$(24969),_t=$(93967),q=$.n(_t),se=$(87462),ee=$(4942),ne=$(1413),N=$(97685),Be=$(71002),Re=$(91),Je=$(21770),Dt=$(31131),Ne=(0,a.createContext)(null),qe=$(74902),He=$(9220),Bt=$(66680),ge=$(42550),We=$(75164),Ht=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,b=(0,a.useState)(),u=(0,N.Z)(b,2),m=u[0],M=u[1],B=(0,a.useRef)(),w=a.useCallback(function(g){return typeof o=="function"?o(g):typeof o=="number"?o:g},[o]);function A(){We.Z.cancel(B.current)}return(0,a.useEffect)(function(){var g={};if(n)if(r){g.width=w(n.width);var h=i?"right":"left";d==="start"&&(g[h]=n[h]),d==="center"&&(g[h]=n[h]+n.width/2,g.transform=i?"translateX(50%)":"translateX(-50%)"),d==="end"&&(g[h]=n[h]+n.width,g.transform="translateX(-100%)")}else g.height=w(n.height),d==="start"&&(g.top=n.top),d==="center"&&(g.top=n.top+n.height/2,g.transform="translateY(-50%)"),d==="end"&&(g.top=n.top+n.height,g.transform="translateY(-100%)");return A(),B.current=(0,We.Z)(function(){var E=m&&g&&Object.keys(g).every(function(Z){var O=g[Z],D=m[Z];return typeof O=="number"&&typeof D=="number"?Math.round(O)===Math.round(D):O===D});E||M(g)}),A},[JSON.stringify(n),r,i,d,w]),{style:m}},Wt=Ht,et={width:0,height:0,left:0,top:0};function kt(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)||et,c=l.left+l.width,o=0;o<e.length;o+=1){var s=e[o].key,d=t.get(s);if(!d){var b;d=t.get((b=e[o-1])===null||b===void 0?void 0:b.key)||et}var u=i.get(s)||(0,ne.Z)({},d);u.right=c-u.left-u.width,i.set(s,u)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function tt(e,t){var n=a.useRef(e),r=a.useState({}),i=(0,N.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,at=.01,Ze=20,nt=Math.pow(.995,Ze);function jt(e,t){var n=(0,a.useState)(),r=(0,N.Z)(n,2),i=r[0],l=r[1],c=(0,a.useState)(0),o=(0,N.Z)(c,2),s=o[0],d=o[1],b=(0,a.useState)(0),u=(0,N.Z)(b,2),m=u[0],M=u[1],B=(0,a.useState)(),w=(0,N.Z)(B,2),A=w[0],g=w[1],h=(0,a.useRef)();function E(x){var R=x.touches[0],v=R.screenX,S=R.screenY;l({x:v,y:S}),window.clearInterval(h.current)}function Z(x){if(i){var R=x.touches[0],v=R.screenX,S=R.screenY;l({x:v,y:S});var p=v-i.x,C=S-i.y;t(p,C);var H=Date.now();d(H),M(H-s),g({x:p,y:C})}}function O(){if(i&&(l(null),g(null),A)){var x=A.x/m,R=A.y/m,v=Math.abs(x),S=Math.abs(R);if(Math.max(v,S)<Gt)return;var p=x,C=R;h.current=window.setInterval(function(){if(Math.abs(p)<at&&Math.abs(C)<at){window.clearInterval(h.current);return}p*=nt,C*=nt,t(p*Ze,C*Ze)},Ze)}}var D=(0,a.useRef)();function G(x){var R=x.deltaX,v=x.deltaY,S=0,p=Math.abs(R),C=Math.abs(v);p===C?S=D.current==="x"?R:v:p>C?(S=R,D.current="x"):(S=v,D.current="y"),t(-S,-S)&&x.preventDefault()}var I=(0,a.useRef)(null);I.current={onTouchStart:E,onTouchMove:Z,onTouchEnd:O,onWheel:G},a.useEffect(function(){function x(p){I.current.onTouchStart(p)}function R(p){I.current.onTouchMove(p)}function v(p){I.current.onTouchEnd(p)}function S(p){I.current.onWheel(p)}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",v,{passive:!0}),e.current.addEventListener("touchstart",x,{passive:!0}),e.current.addEventListener("wheel",S,{passive:!1}),function(){document.removeEventListener("touchmove",R),document.removeEventListener("touchend",v)}},[])}var Vt=$(8410);function rt(e){var t=(0,a.useState)(0),n=(0,N.Z)(t,2),r=n[0],i=n[1],l=(0,a.useRef)(0),c=(0,a.useRef)();return c.current=e,(0,Vt.o)(function(){var o;(o=c.current)===null||o===void 0||o.call(c)},[r]),function(){l.current===r&&(l.current+=1,i(l.current))}}function Kt(e){var t=(0,a.useRef)([]),n=(0,a.useState)({}),r=(0,N.Z)(n,2),i=r[1],l=(0,a.useRef)(typeof e=="function"?e():e),c=rt(function(){var s=l.current;t.current.forEach(function(d){s=d(s)}),t.current=[],l.current=s,
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,T.bf)(o(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,T.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,T.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ka=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,T.bf)(e.borderRadius)} ${(0,T.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,T.bf)(e.borderRadius)} ${(0,T.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,T.bf)(e.borderRadius)} ${(0,T.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,T.bf)(e.borderRadius)} 0 0 ${(0,T.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:l,minHeight:l}}}}}},Fa=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