chainlesschain 0.157.5 → 0.157.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/assets/web-panel/.build-hash +1 -1
- package/src/assets/web-panel/assets/AIOps-CoVPS4_f.js +1 -0
- package/src/assets/web-panel/assets/{ActionButton-DiRyhKar.js → ActionButton-BYA9htq4.js} +1 -1
- package/src/assets/web-panel/assets/{Analytics-C-wKOKnM.js → Analytics-CkCmN3yh.js} +1 -1
- package/src/assets/web-panel/assets/AppLayout-BbhrUX4i.css +1 -0
- package/src/assets/web-panel/assets/AppLayout-CcqxQGmE.js +1 -0
- package/src/assets/web-panel/assets/{Backup-Bk1_Tsej.js → Backup-SPQtiUev.js} +1 -1
- package/src/assets/web-panel/assets/{BaseInput-BZ74CVZs.js → BaseInput-BAmfd4Ir.js} +1 -1
- package/src/assets/web-panel/assets/{Chat-DZ__6l_m.js → Chat-Cl9LpsTj.js} +2 -2
- package/src/assets/web-panel/assets/{Checkbox-CZEC61kY.js → Checkbox-BiSO-WqE.js} +1 -1
- package/src/assets/web-panel/assets/{Col-CNBJWyWl.js → Col-DIGPvqVy.js} +1 -1
- package/src/assets/web-panel/assets/{Community-DGQcJUCL.js → Community-RZzIND1A.js} +1 -1
- package/src/assets/web-panel/assets/{Compact-C8l08DTy.js → Compact-B-UF0szM.js} +1 -1
- package/src/assets/web-panel/assets/{Compliance-DYB_MbmT.js → Compliance-D7dNQEQ9.js} +1 -1
- package/src/assets/web-panel/assets/{Cowork-DV3JWBAJ.js → Cowork-CPj75S0j.js} +4 -4
- package/src/assets/web-panel/assets/{Cron-DGQz9J9u.js → Cron-PnlUFCIP.js} +1 -1
- package/src/assets/web-panel/assets/{Crosschain-CIWQ4dI-.js → Crosschain-C7Kxjjlo.js} +1 -1
- package/src/assets/web-panel/assets/{DID-CKd_c4PX.js → DID-B3aBXElX.js} +1 -1
- package/src/assets/web-panel/assets/{Dashboard-CtHAdcCn.js → Dashboard-XxsWjoEF.js} +2 -2
- package/src/assets/web-panel/assets/{Dropdown-a19vPJmP.js → Dropdown-B6FSgG11.js} +1 -1
- package/src/assets/web-panel/assets/{FormItemContext-B5ayZ9zK.js → FormItemContext-B0xgi547.js} +1 -1
- package/src/assets/web-panel/assets/{Git-CMTjLD8-.js → Git-BnVgKR_0.js} +2 -2
- package/src/assets/web-panel/assets/Inference-EFFc7eNZ.css +1 -0
- package/src/assets/web-panel/assets/Inference-pcPaCXHq.js +1 -0
- package/src/assets/web-panel/assets/{KnowledgeGraph-CO-ivdDK.js → KnowledgeGraph-CH3dpH-_.js} +1 -1
- package/src/assets/web-panel/assets/{Logs-sCDOUYuS.js → Logs-4wvIp1ss.js} +2 -2
- package/src/assets/web-panel/assets/Marketplace-BydQkgpf.js +1 -0
- package/src/assets/web-panel/assets/{McpTools-CqnNMG6W.js → McpTools-DBERPbTA.js} +3 -3
- package/src/assets/web-panel/assets/{Memory-D_O87sbR.js → Memory-CMNbDULN.js} +2 -2
- package/src/assets/web-panel/assets/NLProgramming-DVSbNLly.js +1 -0
- package/src/assets/web-panel/assets/NLProgramming-jURs-f-a.css +1 -0
- package/src/assets/web-panel/assets/{Notes-Bh7KP6cl.js → Notes-DMgBT122.js} +2 -2
- package/src/assets/web-panel/assets/{Organization-CoonBV6s.js → Organization-u7P1VpPr.js} +4 -4
- package/src/assets/web-panel/assets/{Overflow-_g4V_Ju_.js → Overflow-BYKMeaWJ.js} +1 -1
- package/src/assets/web-panel/assets/{P2P-DypZ1ege.js → P2P-DKDUTaaL.js} +2 -2
- package/src/assets/web-panel/assets/{Permissions-BgZSIvcr.js → Permissions-DlZ_n4w_.js} +3 -3
- package/src/assets/web-panel/assets/Pipeline-BUqsWXKt.js +1 -0
- package/src/assets/web-panel/assets/Pipeline-DyqCLFVr.css +1 -0
- package/src/assets/web-panel/assets/Privacy-5YZQ-neP.js +1 -0
- package/src/assets/web-panel/assets/Privacy-B_cAicd1.css +1 -0
- package/src/assets/web-panel/assets/{ProjectSettings-juTiV4PS.js → ProjectSettings-DnrhLjZI.js} +2 -2
- package/src/assets/web-panel/assets/{Projects-DmPNnqOJ.js → Projects-Bi66Yv3y.js} +2 -2
- package/src/assets/web-panel/assets/{Providers-BJsAfkjy.js → Providers-CikNkb5X.js} +1 -1
- package/src/assets/web-panel/assets/{Row-DrdDP98g.js → Row-Dq1TXcMH.js} +1 -1
- package/src/assets/web-panel/assets/{RssFeed-dYFn7J6x.js → RssFeed-NMgrJXli.js} +1 -1
- package/src/assets/web-panel/assets/{Security-kxRpCiKJ.js → Security-C8Ivt-oU.js} +1 -1
- package/src/assets/web-panel/assets/{Services-BP4AjEx_.js → Services-CEuZeNM6.js} +2 -2
- package/src/assets/web-panel/assets/{Skeleton-Cpa-ty0l.js → Skeleton-CVXI8LKZ.js} +1 -1
- package/src/assets/web-panel/assets/Skills-CIv4Cs3T.js +1 -0
- package/src/assets/web-panel/assets/{Tasks-DzX0K-kB.js → Tasks-DePDDw0g.js} +1 -1
- package/src/assets/web-panel/assets/Templates-h2flhfZ2.js +1 -0
- package/src/assets/web-panel/assets/Tenant-BJr-h-_0.css +1 -0
- package/src/assets/web-panel/assets/Tenant-BZN5JCLW.js +1 -0
- package/src/assets/web-panel/assets/{Trigger-CoAAYYBt.js → Trigger-DmhLeltH.js} +1 -1
- package/src/assets/web-panel/assets/{VideoEditing-CkgIUHZZ.js → VideoEditing-DP5Te9MV.js} +1 -1
- package/src/assets/web-panel/assets/{Wallet-CgA-lpLW.js → Wallet-DbdgPt_i.js} +1 -1
- package/src/assets/web-panel/assets/{WebAuthn-CY41bHIQ.js → WebAuthn-0qV34Bht.js} +3 -3
- package/src/assets/web-panel/assets/{WorkflowEditor-CE7u19Od.js → WorkflowEditor-C4sIrXd7.js} +1 -1
- package/src/assets/web-panel/assets/{colors-CIKN8L8n.js → colors-Iv3ft_s8.js} +1 -1
- package/src/assets/web-panel/assets/{compact-item-CrBQCz3V.js → compact-item-CtT5KcXA.js} +1 -1
- package/src/assets/web-panel/assets/{createContext-D1QXMs7U.js → createContext-CHLVxTn6.js} +1 -1
- package/src/assets/web-panel/assets/{hasIn-tTUZknBU.js → hasIn-B9IRZs23.js} +1 -1
- package/src/assets/web-panel/assets/icons-srBCpwXl.js +57 -0
- package/src/assets/web-panel/assets/{index-CYAkBhrQ.js → index--eBMlDjO.js} +1 -1
- package/src/assets/web-panel/assets/{index-DVLZZQ5c.js → index-4I01hpiN.js} +1 -1
- package/src/assets/web-panel/assets/{index-BIPWZw8B.js → index-4wtT_zvC.js} +1 -1
- package/src/assets/web-panel/assets/index-69KL83qL.js +1 -0
- package/src/assets/web-panel/assets/{index-DtayEBt0.js → index-B0IQIuHE.js} +1 -1
- package/src/assets/web-panel/assets/{index-COySbArp.js → index-B18bc0ut.js} +1 -1
- package/src/assets/web-panel/assets/index-B6JARzH-.js +3 -0
- package/src/assets/web-panel/assets/{index-p1nJ70IV.js → index-BOlkR4CB.js} +1 -1
- package/src/assets/web-panel/assets/{index-BX3rXaHn.js → index-BRlYu6_d.js} +1 -1
- package/src/assets/web-panel/assets/{index-DVRzAjWk.js → index-BWtxplKf.js} +1 -1
- package/src/assets/web-panel/assets/index-BaHFTtgz.js +55 -0
- package/src/assets/web-panel/assets/index-BjC8S1t1.js +12 -0
- package/src/assets/web-panel/assets/{index-CNlblI8D.js → index-C1uasX17.js} +1 -1
- package/src/assets/web-panel/assets/{index-CclY9-28.js → index-C8LBTJ8l.js} +1 -1
- package/src/assets/web-panel/assets/index-C8wxMp_Z.js +1 -0
- package/src/assets/web-panel/assets/{index-BDjky3rX.js → index-CDWpDZgD.js} +1 -1
- package/src/assets/web-panel/assets/{index-CwdYxBVA.js → index-CMKIwCKt.js} +1 -1
- package/src/assets/web-panel/assets/{index-D06WGcI3.js → index-CYQVfA_R.js} +1 -1
- package/src/assets/web-panel/assets/index-Cps5gHTC.js +1 -0
- package/src/assets/web-panel/assets/{index-CP2liZYV.js → index-CzGZa5Ow.js} +3 -3
- package/src/assets/web-panel/assets/{index-zKNadN9-.js → index-D5hcqkeW.js} +2 -2
- package/src/assets/web-panel/assets/{index-DZkS3V1X.js → index-D7VXIYiM.js} +1 -1
- package/src/assets/web-panel/assets/{index-Bi_6FYU5.js → index-DUg23xvw.js} +1 -1
- package/src/assets/web-panel/assets/{index-_3pzrgIO.js → index-DXEG5UZz.js} +1 -1
- package/src/assets/web-panel/assets/{index-BwiOpWc5.js → index-Dbaj1U7z.js} +1 -1
- package/src/assets/web-panel/assets/{index-BzqrE9NR.js → index-DiZ3aYcD.js} +1 -1
- package/src/assets/web-panel/assets/index-DlSUq1W3.js +36 -0
- package/src/assets/web-panel/assets/{index-X4HbBQbI.js → index-DzKYMmMu.js} +1 -1
- package/src/assets/web-panel/assets/{index-Dz_iVHtC.js → index-E7-XzEfE.js} +1 -1
- package/src/assets/web-panel/assets/{index-CqCf9te0.js → index-KZbeEKa2.js} +2 -2
- package/src/assets/web-panel/assets/{index-CROBuVak.js → index-NJzH4w-U.js} +2 -2
- package/src/assets/web-panel/assets/{index-V6QCm9nt.js → index-TOigBSzr.js} +1 -1
- package/src/assets/web-panel/assets/{index-BqDn_7rp.js → index-ThYPc1ub.js} +3 -3
- package/src/assets/web-panel/assets/{index-DhUBtkRD.js → index-UmTF1KQy.js} +1 -1
- package/src/assets/web-panel/assets/{index-BKHWN2tE.js → index-cqU5_E3h.js} +1 -1
- package/src/assets/web-panel/assets/{index-ClrnG3mQ.js → index-d3aFQf7u.js} +2 -2
- package/src/assets/web-panel/assets/{index-DvmvdIT_.js → index-dzwxxvlh.js} +1 -1
- package/src/assets/web-panel/assets/{index-vkHwRzrk.js → index-q__DPgfq.js} +1 -1
- package/src/assets/web-panel/assets/{initDefaultProps-Dl1s0-DH.js → initDefaultProps-BcWs5QbR.js} +1 -1
- package/src/assets/web-panel/assets/{motion-Bo_wsn2G.js → motion-CrLibvjP.js} +1 -1
- package/src/assets/web-panel/assets/{move-DkSBFThb.js → move-B5c6-VQr.js} +1 -1
- package/src/assets/web-panel/assets/{omit-D_kxdSL6.js → omit-DpIEkCg5.js} +1 -1
- package/src/assets/web-panel/assets/{pickAttrs-B4jAAmTy.js → pickAttrs-KtgV4VKB.js} +1 -1
- package/src/assets/web-panel/assets/{placementArrow-BQfy7E_I.js → placementArrow-UtY5srm7.js} +1 -1
- package/src/assets/web-panel/assets/{responsiveObserve-DBrNeOOt.js → responsiveObserve-C---VD6e.js} +1 -1
- package/src/assets/web-panel/assets/{slide-DSKBMx3Q.js → slide-hr0X8KAK.js} +1 -1
- package/src/assets/web-panel/assets/{statusUtils-BdGzd5fx.js → statusUtils-CgoYe6s3.js} +1 -1
- package/src/assets/web-panel/assets/{styleChecker-Ckbe4as7.js → styleChecker-DJv72QFU.js} +1 -1
- package/src/assets/web-panel/assets/{transition-6LOZvE9a.js → transition-D2wU6PAY.js} +1 -1
- package/src/assets/web-panel/assets/{useConfigInject-BfCzqqat.js → useConfigInject-DqhngD-R.js} +1 -1
- package/src/assets/web-panel/assets/{useFlexGapSupport-C8nzL1g7.js → useFlexGapSupport-CTWfwV__.js} +1 -1
- package/src/assets/web-panel/assets/{vnode-kNIbBJfF.js → vnode-B2xg11HE.js} +1 -1
- package/src/assets/web-panel/assets/{zoom-DafJyqPh.js → zoom-BGImMPSi.js} +1 -1
- package/src/assets/web-panel/index.html +2 -2
- package/src/assets/web-panel/assets/AIOps-CDadp-Le.js +0 -1
- package/src/assets/web-panel/assets/AppLayout-Byg_RLDB.js +0 -1
- package/src/assets/web-panel/assets/AppLayout-Gkhl4thM.css +0 -1
- package/src/assets/web-panel/assets/Marketplace-Ch5Xd0CC.js +0 -1
- package/src/assets/web-panel/assets/Skills-CE8wG-A0.js +0 -1
- package/src/assets/web-panel/assets/Templates-Bku01czW.js +0 -1
- package/src/assets/web-panel/assets/icons-Jk30QO6-.js +0 -57
- package/src/assets/web-panel/assets/index-8nKSWBcm.js +0 -3
- package/src/assets/web-panel/assets/index-B0z2XooE.js +0 -1
- package/src/assets/web-panel/assets/index-D7l8Uzgm.js +0 -55
- package/src/assets/web-panel/assets/index-MzZGrA5i.js +0 -36
- package/src/assets/web-panel/assets/index-cfS19Vfx.js +0 -1
- package/src/assets/web-panel/assets/index-d8uIZmCQ.js +0 -12
- package/src/assets/web-panel/assets/index-hU5rQLDQ.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e}from"./index-
|
|
1
|
+
import{_ as e}from"./index-DlSUq1W3.js";import{g as S,m as l,r as u,q as x}from"./useConfigInject-DqhngD-R.js";import{g as m}from"./compact-item-CtT5KcXA.js";const H=r=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:r,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),p=r=>({borderColor:r.inputBorderHoverColor,borderInlineEndWidth:r.lineWidth}),c=r=>({borderColor:r.inputBorderHoverColor,boxShadow:`0 0 0 ${r.controlOutlineWidth}px ${r.controlOutline}`,borderInlineEndWidth:r.lineWidth,outline:0}),R=r=>({color:r.colorTextDisabled,backgroundColor:r.colorBgContainerDisabled,borderColor:r.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":e({},p(l(r,{inputBorderHoverColor:r.colorBorder})))}),g=r=>{const{inputPaddingVerticalLG:i,fontSizeLG:o,lineHeightLG:t,borderRadiusLG:d,inputPaddingHorizontalLG:n}=r;return{padding:`${i}px ${n}px`,fontSize:o,lineHeight:t,borderRadius:d}},h=r=>({padding:`${r.inputPaddingVerticalSM}px ${r.controlPaddingHorizontalSM-1}px`,borderRadius:r.borderRadiusSM}),$=(r,i)=>{const{componentCls:o,colorError:t,colorWarning:d,colorErrorOutline:n,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:f}=r;return{[`&-status-error:not(${i}-disabled):not(${i}-borderless)${i}`]:{borderColor:t,"&:hover":{borderColor:s},"&:focus, &-focused":e({},c(l(r,{inputBorderActiveColor:t,inputBorderHoverColor:t,controlOutline:n}))),[`${o}-prefix`]:{color:t}},[`&-status-warning:not(${i}-disabled):not(${i}-borderless)${i}`]:{borderColor:d,"&:hover":{borderColor:f},"&:focus, &-focused":e({},c(l(r,{inputBorderActiveColor:d,inputBorderHoverColor:d,controlOutline:a}))),[`${o}-prefix`]:{color:d}}}},b=r=>e(e({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${r.inputPaddingVertical}px ${r.inputPaddingHorizontal}px`,color:r.colorText,fontSize:r.fontSize,lineHeight:r.lineHeight,backgroundColor:r.colorBgContainer,backgroundImage:"none",borderWidth:r.lineWidth,borderStyle:r.lineType,borderColor:r.colorBorder,borderRadius:r.borderRadius,transition:`all ${r.motionDurationMid}`},H(r.colorTextPlaceholder)),{"&:hover":e({},p(r)),"&:focus, &-focused":e({},c(r)),"&-disabled, &[disabled]":e({},R(r)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:r.controlHeight,lineHeight:r.lineHeight,verticalAlign:"bottom",transition:`all ${r.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":e({},g(r)),"&-sm":e({},h(r)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),I=r=>{const{componentCls:i,antCls:o}=r;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:r.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${i}, &-lg > ${i}-group-addon`]:e({},g(r)),[`&-sm ${i}, &-sm > ${i}-group-addon`]:e({},h(r)),[`> ${i}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${i}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${r.inputPaddingHorizontal}px`,color:r.colorText,fontWeight:"normal",fontSize:r.fontSize,textAlign:"center",backgroundColor:r.colorFillAlter,border:`${r.lineWidth}px ${r.lineType} ${r.colorBorder}`,borderRadius:r.borderRadius,transition:`all ${r.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`-${r.inputPaddingVertical+1}px -${r.inputPaddingHorizontal}px`,[`&${o}-select-single:not(${o}-select-customize-input)`]:{[`${o}-select-selector`]:{backgroundColor:"inherit",border:`${r.lineWidth}px ${r.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${o}-select-selector`]:{color:r.colorPrimary}}},[`${o}-cascader-picker`]:{margin:`-9px -${r.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${o}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${i}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${i}-search-with-button &`]:{zIndex:0}}},[`> ${i}:first-child, ${i}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${i}-affix-wrapper`]:{[`&:not(:first-child) ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${i}:last-child, ${i}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${i}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${i}-search &`]:{borderStartStartRadius:r.borderRadius,borderEndStartRadius:r.borderRadius}},[`&:not(:first-child), ${i}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${i}-group-compact`]:e(e({display:"block"},x()),{[`${i}-group-addon, ${i}-group-wrap, > ${i}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:r.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${i}-affix-wrapper`]:{display:"inline-flex"},[`& > ${o}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-r.lineWidth,borderInlineEndWidth:r.lineWidth},[`${i}`]:{float:"none"},[`& > ${o}-select > ${o}-select-selector,
|
|
2
2
|
& > ${o}-select-auto-complete ${i},
|
|
3
3
|
& > ${o}-cascader-picker ${i},
|
|
4
4
|
& > ${i}-group-wrapper ${i}`]:{borderInlineEndWidth:r.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${o}-select-focused`]:{zIndex:1},[`& > ${o}-select > ${o}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as Z,S as q,Q as J,g as Y,m as k,r as ee,B as te,u as le,_ as G,t as ne}from"./useConfigInject-
|
|
1
|
+
import{K as Z,S as q,Q as J,g as Y,m as k,r as ee,B as te,u as le,_ as G,t as ne}from"./useConfigInject-DqhngD-R.js";import{u as oe,r as X}from"./responsiveObserve-C---VD6e.js";import{_ as c}from"./index-DlSUq1W3.js";import{c as i,i as ie,r as O,H as re,d as K,Z as se,o as ae,j as de,p as ce,a4 as F}from"./vendor-BVetwVfk.js";import{P as B}from"./index-U4Zd5IK6.js";import{c as pe}from"./vnode-B2xg11HE.js";import"./icons-srBCpwXl.js";function I(e){return e!=null}const E=e=>{const{itemPrefixCls:t,component:l,span:o,labelStyle:n,contentStyle:r,bordered:d,label:a,content:s,colon:u}=e,p=l;return d?i(p,{class:[{[`${t}-item-label`]:I(a),[`${t}-item-content`]:I(s)}],colSpan:o},{default:()=>[I(a)&&i("span",{style:n},[a]),I(s)&&i("span",{style:r},[s])]}):i(p,{class:[`${t}-item`],colSpan:o},{default:()=>[i("div",{class:`${t}-item-container`},[(a||a===0)&&i("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!u}],style:n},[a]),(s||s===0)&&i("span",{class:`${t}-item-content`,style:r},[s])])]})},ue=e=>{const t=(u,p,P)=>{let{colon:m,prefixCls:x,bordered:b}=p,{component:y,type:w,showLabel:L,showContent:M,labelStyle:g,contentStyle:S}=P;return u.map((f,h)=>{var $,v;const _=f.props||{},{prefixCls:j=x,span:R=1,labelStyle:A=_["label-style"],contentStyle:H=_["content-style"],label:N=(v=($=f.children)===null||$===void 0?void 0:$.label)===null||v===void 0?void 0:v.call($)}=_,W=Z(f),z=q(f),D=J(f),{key:T}=f;return typeof y=="string"?i(E,{key:`${w}-${String(T)||h}`,class:z,style:D,labelStyle:c(c({},g),A),contentStyle:c(c({},S),H),span:R,colon:m,component:y,itemPrefixCls:j,bordered:b,label:L?N:null,content:M?W:null},null):[i(E,{key:`label-${String(T)||h}`,class:z,style:c(c(c({},g),D),A),span:1,colon:m,component:y[0],itemPrefixCls:j,bordered:b,label:N},null),i(E,{key:`content-${String(T)||h}`,class:z,style:c(c(c({},S),D),H),span:R*2-1,component:y[1],itemPrefixCls:j,bordered:b,content:W},null)]})},{prefixCls:l,vertical:o,row:n,index:r,bordered:d}=e,{labelStyle:a,contentStyle:s}=ie(V,{labelStyle:O({}),contentStyle:O({})});return o?i(re,null,[i("tr",{key:`label-${r}`,class:`${l}-row`},[t(n,e,{component:"th",type:"label",showLabel:!0,labelStyle:a.value,contentStyle:s.value})]),i("tr",{key:`content-${r}`,class:`${l}-row`},[t(n,e,{component:"td",type:"content",showContent:!0,labelStyle:a.value,contentStyle:s.value})])]):i("tr",{key:r,class:`${l}-row`},[t(n,e,{component:d?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:a.value,contentStyle:s.value})])},me=e=>{const{componentCls:t,descriptionsSmallPadding:l,descriptionsDefaultPadding:o,descriptionsMiddlePadding:n,descriptionsBg:r}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:r,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:l}}}}},fe=e=>{const{componentCls:t,descriptionsExtraColor:l,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:n,descriptionsItemLabelColonMarginLeft:r,descriptionsTitleMarginBottom:d}=e;return{[t]:c(c(c({},ee(e)),me(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:d},[`${t}-title`]:c(c({},te),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${r}px ${n}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},be=Y("Descriptions",e=>{const t=e.colorFillAlter,l=e.fontSizeSM*e.lineHeightSM,o=e.colorText,n=`${e.paddingXS}px ${e.padding}px`,r=`${e.padding}px ${e.paddingLG}px`,d=`${e.paddingSM}px ${e.paddingLG}px`,a=e.padding,s=e.marginXS,u=e.marginXXS/2,p=k(e,{descriptionsBg:t,descriptionsTitleMarginBottom:l,descriptionsExtraColor:o,descriptionItemPaddingBottom:a,descriptionsSmallPadding:n,descriptionsDefaultPadding:r,descriptionsMiddlePadding:d,descriptionsItemLabelColonMarginRight:s,descriptionsItemLabelColonMarginLeft:u});return[fe(p)]}),Le={prefixCls:String,label:B.any,span:Number},ye=()=>({prefixCls:String,label:B.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),ge=K({compatConfig:{MODE:3},name:"ADescriptionsItem",props:ye(),setup(e,t){let{slots:l}=t;return()=>{var o;return(o=l.default)===null||o===void 0?void 0:o.call(l)}}}),Q={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function Se(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let l=0;l<X.length;l++){const o=X[l];if(t[o]&&e[o]!==void 0)return e[o]||Q[o]}return 3}function U(e,t,l){let o=e;return(l===void 0||l>t)&&(o=pe(e,{span:t})),o}function $e(e,t){const l=ne(e),o=[];let n=[],r=t;return l.forEach((d,a)=>{var s;const u=(s=d.props)===null||s===void 0?void 0:s.span,p=u||1;if(a===l.length-1){n.push(U(d,r,u)),o.push(n);return}p<r?(r-=p,n.push(d)):(n.push(U(d,r,p)),o.push(n),r=t,n=[])}),o}const ve=()=>({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:B.any,extra:B.any,column:{type:[Number,Object],default:()=>Q},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),V=Symbol("descriptionsContext"),C=K({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:ve(),slots:Object,Item:ge,setup(e,t){let{slots:l,attrs:o}=t;const{prefixCls:n,direction:r}=le("descriptions",e);let d;const a=O({}),[s,u]=be(n),p=oe();se(()=>{d=p.value.subscribe(m=>{typeof e.column=="object"&&(a.value=m)})}),ae(()=>{p.value.unsubscribe(d)}),ce(V,{labelStyle:F(e,"labelStyle"),contentStyle:F(e,"contentStyle")});const P=de(()=>Se(e.column,a.value));return()=>{var m,x,b;const{size:y,bordered:w=!1,layout:L="horizontal",colon:M=!0,title:g=(m=l.title)===null||m===void 0?void 0:m.call(l),extra:S=(x=l.extra)===null||x===void 0?void 0:x.call(l)}=e,f=(b=l.default)===null||b===void 0?void 0:b.call(l),h=$e(f,P.value);return s(i("div",G(G({},o),{},{class:[n.value,{[`${n.value}-${y}`]:y!=="default",[`${n.value}-bordered`]:!!w,[`${n.value}-rtl`]:r.value==="rtl"},o.class,u.value]}),[(g||S)&&i("div",{class:`${n.value}-header`},[g&&i("div",{class:`${n.value}-title`},[g]),S&&i("div",{class:`${n.value}-extra`},[S])]),i("div",{class:`${n.value}-view`},[i("table",null,[i("tbody",null,[h.map(($,v)=>i(ue,{key:v,index:v,colon:M,prefixCls:n.value,vertical:L==="vertical",bordered:w,row:$},null))])])])]))}}});C.install=function(e){return e.component(C.name,C),e.component(C.Item.name,C.Item),e};export{ge as DescriptionsItem,Le as DescriptionsItemProps,C as default,V as descriptionsContext,ve as descriptionsProps};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{c as ie,E as me,_ as te,g as bt,m as ft,r as tt,B as mt,p as at,t as ht,z as gt,F as $t,u as yt}from"./useConfigInject-BfCzqqat.js";import{_ as T,q as j,o as he,x as xt,y as xe,n as St,z as _t}from"./index-MzZGrA5i.js";import{w as ge}from"./raf-Deuc0E8-.js";import{s as W,o as Me,d as re,c as h,r as J,j as H,f as Ce,l as Te,w as oe,i as Ct,p as Tt}from"./vendor-BVetwVfk.js";import{K as q}from"./KeyCode-D63Tfrq7.js";import wt,{Item as Pt}from"./index-DVLZZQ5c.js";import{D as Rt}from"./Dropdown-a19vPJmP.js";import{P as we}from"./index-U4Zd5IK6.js";import{u as D}from"./useState-DoAhV80c.js";import{aC as It,a1 as Et,ad as Bt}from"./icons-Jk30QO6-.js";import{u as Lt}from"./OverrideContext-DEW2m7K6.js";import{R as Xe}from"./index-DVRzAjWk.js";import{u as At}from"./useRefs-DRyTVik7.js";import{c as nt,t as Dt,a as kt,b as Mt,h as Nt,f as Ot}from"./hasIn-tTUZknBU.js";import{i as Wt}from"./Trigger-CoAAYYBt.js";import{h as Fe}from"./_getTag-CWA3v-Ds.js";import{c as Ht}from"./vnode-kNIbBJfF.js";import{i as zt}from"./isMobile--2fOlCHx.js";import{u as je}from"./useMergedState-DbHXwBgv.js";import{d as De}from"./devWarning-CNIS3FrJ.js";import{o as Kt}from"./omit-D_kxdSL6.js";import{i as Ve}from"./slide-DSKBMx3Q.js";import{i as ot}from"./initDefaultProps-Dl1s0-DH.js";import"./_arrayIncludes-B8uzE354.js";import"./injectionKey-BXVc-oGP.js";import"./Overflow-_g4V_Ju_.js";import"./index-CclY9-28.js";import"./placementArrow-BQfy7E_I.js";import"./firstNotUndefined-CLFzEa0p.js";import"./colors-CIKN8L8n.js";import"./zoom-DafJyqPh.js";import"./Keyframes-C7fCrnlS.js";import"./motion-Bo_wsn2G.js";import"./Portal-CHsntPCQ.js";import"./transition-6LOZvE9a.js";import"./collapseMotion-D3P4mRvK.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./isSymbol-CsP9Ob42.js";import"./isVisible-C7tPsqfj.js";import"./warning-Pq00owYb.js";function Gt(e,t,a,i){if(!Fe(e))return e;t=nt(t,e);for(var o=-1,r=t.length,n=r-1,s=e;s!=null&&++o<r;){var v=Dt(t[o]),d=a;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(o!=n){var b=s[v];d=void 0,d===void 0&&(d=Fe(b)?b:Wt(t[o+1])?[]:{})}kt(s,v,d),s=s[v]}return e}function Xt(e,t,a){for(var i=-1,o=t.length,r={};++i<o;){var n=t[i],s=Mt(e,n);a(s,n)&&Gt(r,nt(n,e),s)}return r}function Ft(e,t){return Xt(e,t,function(a,i){return Nt(e,i)})}var it=Ot(function(e,t){return e==null?{}:Ft(e,t)});function jt(e){const t=W(),a=W(!1);function i(){for(var o=arguments.length,r=new Array(o),n=0;n<o;n++)r[n]=arguments[n];a.value||(ge.cancel(t.value),t.value=ge(()=>{e(...r)}))}return Me(()=>{a.value=!0,ge.cancel(t.value)}),i}function Vt(e){const t=W([]),a=W(typeof e=="function"?e():e),i=jt(()=>{let r=a.value;t.value.forEach(n=>{r=n(r)}),t.value=[],a.value=r});function o(r){t.value.push(r),i()}return[a,o]}const Yt=re({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:a,attrs:i}=t;const o=J();function r(v){var d;!((d=e.tab)===null||d===void 0)&&d.disabled||e.onClick(v)}a({domRef:o});function n(v){var d;v.preventDefault(),v.stopPropagation(),e.editable.onEdit("remove",{key:(d=e.tab)===null||d===void 0?void 0:d.key,event:v})}const s=H(()=>{var v;return e.editable&&e.closable!==!1&&!(!((v=e.tab)===null||v===void 0)&&v.disabled)});return()=>{var v;const{prefixCls:d,id:b,active:_,tab:{key:m,tab:c,disabled:y,closeIcon:x},renderWrapper:w,removeAriaLabel:C,editable:k,onFocus:K}=e,M=`${d}-tab`,l=h("div",{key:m,ref:o,class:ie(M,{[`${M}-with-remove`]:s.value,[`${M}-active`]:_,[`${M}-disabled`]:y}),style:i.style,onClick:r},[h("div",{role:"tab","aria-selected":_,id:b&&`${b}-tab-${m}`,class:`${M}-btn`,"aria-controls":b&&`${b}-panel-${m}`,"aria-disabled":y,tabindex:y?null:0,onClick:g=>{g.stopPropagation(),r(g)},onKeydown:g=>{[q.SPACE,q.ENTER].includes(g.which)&&(g.preventDefault(),r(g))},onFocus:K},[typeof c=="function"?c():c]),s.value&&h("button",{type:"button","aria-label":C||"remove",tabindex:0,class:`${M}-remove`,onClick:g=>{g.stopPropagation(),n(g)}},[x?.()||((v=k.removeIcon)===null||v===void 0?void 0:v.call(k))||"×"])]);return w?w(l):l}}}),Ye={width:0,height:0,left:0,top:0};function Ut(e,t){const a=J(new Map);return Ce(()=>{var i,o;const r=new Map,n=e.value,s=t.value.get((i=n[0])===null||i===void 0?void 0:i.key)||Ye,v=s.left+s.width;for(let d=0;d<n.length;d+=1){const{key:b}=n[d];let _=t.value.get(b);_||(_=t.value.get((o=n[d-1])===null||o===void 0?void 0:o.key)||Ye);const m=r.get(b)||T({},_);m.right=v-m.left-m.width,r.set(b,m)}a.value=new Map(r)}),a}const rt=re({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(e,t){let{expose:a,attrs:i}=t;const o=J();return a({domRef:o}),()=>{const{prefixCls:r,editable:n,locale:s}=e;return!n||n.showAdd===!1?null:h("button",{ref:o,type:"button",class:`${r}-nav-add`,style:i.style,"aria-label":s?.addAriaLabel||"Add tab",onClick:v=>{n.onEdit("add",{event:v})}},[n.addIcon?n.addIcon():"+"])}}}),Zt={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:we.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:j()},qt=re({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:Zt,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:a,slots:i}=t;const[o,r]=D(!1),[n,s]=D(null),v=c=>{const y=e.tabs.filter(C=>!C.disabled);let x=y.findIndex(C=>C.key===n.value)||0;const w=y.length;for(let C=0;C<w;C+=1){x=(x+c+w)%w;const k=y[x];if(!k.disabled){s(k.key);return}}},d=c=>{const{which:y}=c;if(!o.value){[q.DOWN,q.SPACE,q.ENTER].includes(y)&&(r(!0),c.preventDefault());return}switch(y){case q.UP:v(-1),c.preventDefault();break;case q.DOWN:v(1),c.preventDefault();break;case q.ESC:r(!1);break;case q.SPACE:case q.ENTER:n.value!==null&&e.onTabClick(n.value,c);break}},b=H(()=>`${e.id}-more-popup`),_=H(()=>n.value!==null?`${b.value}-${n.value}`:null),m=(c,y)=>{c.preventDefault(),c.stopPropagation(),e.editable.onEdit("remove",{key:y,event:c})};return Te(()=>{oe(n,()=>{const c=document.getElementById(_.value);c&&c.scrollIntoView&&c.scrollIntoView(!1)},{flush:"post",immediate:!0})}),oe(o,()=>{o.value||s(null)}),Lt({}),()=>{var c;const{prefixCls:y,id:x,tabs:w,locale:C,mobile:k,moreIcon:K=((c=i.moreIcon)===null||c===void 0?void 0:c.call(i))||h(It,null,null),moreTransitionName:M,editable:l,tabBarGutter:g,rtl:u,onTabClick:$,popupClassName:E}=e;if(!w.length)return null;const R=`${y}-dropdown`,G=C?.dropdownAriaLabel,le={[u?"marginRight":"marginLeft"]:g};w.length||(le.visibility="hidden",le.order=1);const se=ie({[`${R}-rtl`]:u,[`${E}`]:!0}),ce=k?null:h(Rt,{prefixCls:R,trigger:["hover"],visible:o.value,transitionName:M,onVisibleChange:r,overlayClassName:se,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>h(wt,{onClick:I=>{let{key:Q,domEvent:N}=I;$(Q,N),r(!1)},id:b.value,tabindex:-1,role:"listbox","aria-activedescendant":_.value,selectedKeys:[n.value],"aria-label":G!==void 0?G:"expanded dropdown"},{default:()=>[w.map(I=>{var Q,N;const V=l&&I.closable!==!1&&!I.disabled;return h(Pt,{key:I.key,id:`${b.value}-${I.key}`,role:"option","aria-controls":x&&`${x}-panel-${I.key}`,disabled:I.disabled},{default:()=>[h("span",null,[typeof I.tab=="function"?I.tab():I.tab]),V&&h("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${R}-menu-item-remove`,onClick:Y=>{Y.stopPropagation(),m(Y,I.key)}},[((Q=I.closeIcon)===null||Q===void 0?void 0:Q.call(I))||((N=l.removeIcon)===null||N===void 0?void 0:N.call(l))||"×"])]})})]}),default:()=>h("button",{type:"button",class:`${y}-nav-more`,style:le,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":b.value,id:`${x}-more`,"aria-expanded":o.value,onKeydown:d},[K])});return h("div",{class:ie(`${y}-nav-operations`,a.class),style:a.style},[ce,h(rt,{prefixCls:y,locale:C,editable:l},null)])}}}),lt=Symbol("tabsContextKey"),Jt=e=>{Tt(lt,e)},st=()=>Ct(lt,{tabs:J([]),prefixCls:J()}),Qt=.1,Ue=.01,Se=20,Ze=Math.pow(.995,Se);function ea(e,t){const[a,i]=D(),[o,r]=D(0),[n,s]=D(0),[v,d]=D(),b=J();function _(l){const{screenX:g,screenY:u}=l.touches[0];i({x:g,y:u}),clearInterval(b.value)}function m(l){if(!a.value)return;l.preventDefault();const{screenX:g,screenY:u}=l.touches[0],$=g-a.value.x,E=u-a.value.y;t($,E),i({x:g,y:u});const R=Date.now();s(R-o.value),r(R),d({x:$,y:E})}function c(){if(!a.value)return;const l=v.value;if(i(null),d(null),l){const g=l.x/n.value,u=l.y/n.value,$=Math.abs(g),E=Math.abs(u);if(Math.max($,E)<Qt)return;let R=g,G=u;b.value=setInterval(()=>{if(Math.abs(R)<Ue&&Math.abs(G)<Ue){clearInterval(b.value);return}R*=Ze,G*=Ze,t(R*Se,G*Se)},Se)}}const y=J();function x(l){const{deltaX:g,deltaY:u}=l;let $=0;const E=Math.abs(g),R=Math.abs(u);E===R?$=y.value==="x"?g:u:E>R?($=g,y.value="x"):($=u,y.value="y"),t(-$,-$)&&l.preventDefault()}const w=J({onTouchStart:_,onTouchMove:m,onTouchEnd:c,onWheel:x});function C(l){w.value.onTouchStart(l)}function k(l){w.value.onTouchMove(l)}function K(l){w.value.onTouchEnd(l)}function M(l){w.value.onWheel(l)}Te(()=>{var l,g;document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",K,{passive:!1}),(l=e.value)===null||l===void 0||l.addEventListener("touchstart",C,{passive:!1}),(g=e.value)===null||g===void 0||g.addEventListener("wheel",M,{passive:!1})}),Me(()=>{document.removeEventListener("touchmove",k),document.removeEventListener("touchend",K)})}function qe(e,t){const a=J(e);function i(o){const r=typeof o=="function"?o(a.value):o;r!==a.value&&t(r,a.value),a.value=r}return[a,i]}const Je={width:0,height:0,left:0,top:0,right:0},ta=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:he(),editable:he(),moreIcon:we.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:he(),popupClassName:String,getPopupContainer:j(),onTabClick:{type:Function},onTabScroll:{type:Function}}),aa=(e,t)=>{const{offsetWidth:a,offsetHeight:i,offsetTop:o,offsetLeft:r}=e,{width:n,height:s,x:v,y:d}=e.getBoundingClientRect();return Math.abs(n-a)<1?[n,s,v-t.x,d-t.y]:[a,i,r,o]},Qe=re({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:ta(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:a,slots:i}=t;const{tabs:o,prefixCls:r}=st(),n=W(),s=W(),v=W(),d=W(),[b,_]=At(),m=H(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[c,y]=qe(0,(f,p)=>{m.value&&e.onTabScroll&&e.onTabScroll({direction:f>p?"left":"right"})}),[x,w]=qe(0,(f,p)=>{!m.value&&e.onTabScroll&&e.onTabScroll({direction:f>p?"top":"bottom"})}),[C,k]=D(0),[K,M]=D(0),[l,g]=D(null),[u,$]=D(null),[E,R]=D(0),[G,le]=D(0),[se,ce]=Vt(new Map),I=Ut(o,se),Q=H(()=>`${r.value}-nav-operations-hidden`),N=W(0),V=W(0);Ce(()=>{m.value?e.rtl?(N.value=0,V.value=Math.max(0,C.value-l.value)):(N.value=Math.min(0,l.value-C.value),V.value=0):(N.value=Math.min(0,u.value-K.value),V.value=0)});const Y=f=>f<N.value?N.value:f>V.value?V.value:f,ue=W(),[z,ve]=D(),pe=()=>{ve(Date.now())},be=()=>{clearTimeout(ue.value)},$e=(f,p)=>{f(S=>Y(S+p))};ea(n,(f,p)=>{if(m.value){if(l.value>=C.value)return!1;$e(y,f)}else{if(u.value>=K.value)return!1;$e(w,p)}return be(),pe(),!0}),oe(z,()=>{be(),z.value&&(ue.value=setTimeout(()=>{ve(0)},100))});const de=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const p=I.value.get(f)||{width:0,height:0,left:0,right:0,top:0};if(m.value){let S=c.value;e.rtl?p.right<c.value?S=p.right:p.right+p.width>c.value+l.value&&(S=p.right+p.width-l.value):p.left<-c.value?S=-p.left:p.left+p.width>-c.value+l.value&&(S=-(p.left+p.width-l.value)),w(0),y(Y(S))}else{let S=x.value;p.top<-x.value?S=-p.top:p.top+p.height>-x.value+u.value&&(S=-(p.top+p.height-u.value)),y(0),w(Y(S))}},Pe=W(0),Re=W(0);Ce(()=>{let f,p,S,P,L,B;const U=I.value;["top","bottom"].includes(e.tabPosition)?(f="width",P=l.value,L=C.value,B=E.value,p=e.rtl?"right":"left",S=Math.abs(c.value)):(f="height",P=u.value,L=C.value,B=G.value,p="top",S=-x.value);let O=P;L+B>P&&L<P&&(O=P-B);const F=o.value;if(!F.length)return[Pe.value,Re.value]=[0,0];const Z=F.length;let ne=Z;for(let X=0;X<Z;X+=1){const ee=U.get(F[X].key)||Je;if(ee[p]+ee[f]>S+O){ne=X-1;break}}let A=0;for(let X=Z-1;X>=0;X-=1)if((U.get(F[X].key)||Je)[p]<S){A=X+1;break}return[Pe.value,Re.value]=[A,ne]});const Ne=()=>{ce(()=>{var f;const p=new Map,S=(f=s.value)===null||f===void 0?void 0:f.getBoundingClientRect();return o.value.forEach(P=>{let{key:L}=P;const B=_.value.get(L),U=B?.$el||B;if(U){const[O,F,Z,ne]=aa(U,S);p.set(L,{width:O,height:F,left:Z,top:ne})}}),p})};oe(()=>o.value.map(f=>f.key).join("%%"),()=>{Ne()},{flush:"post"});const Ie=()=>{var f,p,S,P,L;const B=((f=n.value)===null||f===void 0?void 0:f.offsetWidth)||0,U=((p=n.value)===null||p===void 0?void 0:p.offsetHeight)||0,O=((S=d.value)===null||S===void 0?void 0:S.$el)||{},F=O.offsetWidth||0,Z=O.offsetHeight||0;g(B),$(U),R(F),le(Z);const ne=(((P=s.value)===null||P===void 0?void 0:P.offsetWidth)||0)-F,A=(((L=s.value)===null||L===void 0?void 0:L.offsetHeight)||0)-Z;k(ne),M(A),Ne()},Oe=H(()=>[...o.value.slice(0,Pe.value),...o.value.slice(Re.value+1)]),[ct,ut]=D(),ae=H(()=>I.value.get(e.activeKey)),We=W(),He=()=>{ge.cancel(We.value)};oe([ae,m,()=>e.rtl],()=>{const f={};ae.value&&(m.value?(e.rtl?f.right=me(ae.value.right):f.left=me(ae.value.left),f.width=me(ae.value.width)):(f.top=me(ae.value.top),f.height=me(ae.value.height))),He(),We.value=ge(()=>{ut(f)})}),oe([()=>e.activeKey,ae,I,m],()=>{de()},{flush:"post"}),oe([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>o.value],()=>{Ie()},{flush:"post"});const Ee=f=>{let{position:p,prefixCls:S,extra:P}=f;if(!P)return null;const L=P?.({position:p});return L?h("div",{class:`${S}-extra-content`},[L]):null};return Me(()=>{be(),He()}),()=>{const{id:f,animated:p,activeKey:S,rtl:P,editable:L,locale:B,tabPosition:U,tabBarGutter:O,onTabClick:F}=e,{class:Z,style:ne}=a,A=r.value,X=!!Oe.value.length,ee=`${A}-nav-wrap`;let Be,Le,ze,Ke;m.value?P?(Le=c.value>0,Be=c.value+l.value<C.value):(Be=c.value<0,Le=-c.value+l.value<C.value):(ze=x.value<0,Ke=-x.value+u.value<K.value);const ye={};U==="top"||U==="bottom"?ye[P?"marginRight":"marginLeft"]=typeof O=="number"?`${O}px`:O:ye.marginTop=typeof O=="number"?`${O}px`:O;const Ge=o.value.map((Ae,vt)=>{const{key:fe}=Ae;return h(Yt,{id:f,prefixCls:A,key:fe,tab:Ae,style:vt===0?void 0:ye,closable:Ae.closable,editable:L,active:fe===S,removeAriaLabel:B?.removeAriaLabel,ref:b(fe),onClick:pt=>{F(fe,pt)},onFocus:()=>{de(fe),pe(),n.value&&(P||(n.value.scrollLeft=0),n.value.scrollTop=0)}},i)});return h("div",{role:"tablist",class:ie(`${A}-nav`,Z),style:ne,onKeydown:()=>{pe()}},[h(Ee,{position:"left",prefixCls:A,extra:i.leftExtra},null),h(Xe,{onResize:Ie},{default:()=>[h("div",{class:ie(ee,{[`${ee}-ping-left`]:Be,[`${ee}-ping-right`]:Le,[`${ee}-ping-top`]:ze,[`${ee}-ping-bottom`]:Ke}),ref:n},[h(Xe,{onResize:Ie},{default:()=>[h("div",{ref:s,class:`${A}-nav-list`,style:{transform:`translate(${c.value}px, ${x.value}px)`,transition:z.value?"none":void 0}},[Ge,h(rt,{ref:d,prefixCls:A,locale:B,editable:L,style:T(T({},Ge.length===0?void 0:ye),{visibility:X?"hidden":null})},null),h("div",{class:ie(`${A}-ink-bar`,{[`${A}-ink-bar-animated`]:p.inkBar}),style:ct.value},null)])]})])]}),h(qt,te(te({},e),{},{removeAriaLabel:B?.removeAriaLabel,ref:v,prefixCls:A,tabs:Oe.value,class:!X&&Q.value}),it(i,["moreIcon"])),h(Ee,{position:"right",prefixCls:A,extra:i.rightExtra},null),h(Ee,{position:"right",prefixCls:A,extra:i.tabBarExtraContent},null)])}}}),na=re({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:a}=st();return()=>{const{id:i,activeKey:o,animated:r,tabPosition:n,rtl:s,destroyInactiveTabPane:v}=e,d=r.tabPane,b=a.value,_=t.value.findIndex(m=>m.key===o);return h("div",{class:`${b}-content-holder`},[h("div",{class:[`${b}-content`,`${b}-content-${n}`,{[`${b}-content-animated`]:d}],style:_&&d?{[s?"marginRight":"marginLeft"]:`-${_}00%`}:null},[t.value.map(m=>Ht(m.node,{key:m.key,prefixCls:b,tabKey:m.key,id:i,animated:d,active:m.key===o,destroyInactiveTabPane:v}))])])}}}),oa=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[Ve(e,"slide-up"),Ve(e,"slide-down")]]},ia=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeadBackground:i,tabsCardGutter:o,colorSplit:r}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:i,border:`${e.lineWidth}px ${e.lineType} ${r}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ra=e=>{const{componentCls:t,tabsHoverColor:a,dropdownEdgeChildVerticalPadding:i}=e;return{[`${t}-dropdown`]:T(T({},tt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${i}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":T(T({},mt),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},la=e=>{const{componentCls:t,margin:a,colorSplit:i}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${a}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${i}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
1
|
+
import{c as ie,E as me,_ as te,g as bt,m as ft,r as tt,B as mt,p as at,t as ht,z as gt,F as $t,u as yt}from"./useConfigInject-DqhngD-R.js";import{_ as T,q as j,o as he,x as xt,y as xe,n as St,z as _t}from"./index-DlSUq1W3.js";import{w as ge}from"./raf-Deuc0E8-.js";import{s as W,o as Me,d as re,c as h,r as J,j as H,f as Ce,l as Te,w as oe,i as Ct,p as Tt}from"./vendor-BVetwVfk.js";import{K as q}from"./KeyCode-D63Tfrq7.js";import wt,{Item as Pt}from"./index-4I01hpiN.js";import{D as Rt}from"./Dropdown-B6FSgG11.js";import{P as we}from"./index-U4Zd5IK6.js";import{u as D}from"./useState-DoAhV80c.js";import{aH as It,a6 as Et,ah as Bt}from"./icons-srBCpwXl.js";import{u as Lt}from"./OverrideContext-DEW2m7K6.js";import{R as Xe}from"./index-BWtxplKf.js";import{u as At}from"./useRefs-DRyTVik7.js";import{c as nt,t as Dt,a as kt,b as Mt,h as Nt,f as Ot}from"./hasIn-B9IRZs23.js";import{i as Wt}from"./Trigger-DmhLeltH.js";import{h as Fe}from"./_getTag-CWA3v-Ds.js";import{c as Ht}from"./vnode-B2xg11HE.js";import{i as zt}from"./isMobile--2fOlCHx.js";import{u as je}from"./useMergedState-DbHXwBgv.js";import{d as De}from"./devWarning-CNIS3FrJ.js";import{o as Kt}from"./omit-DpIEkCg5.js";import{i as Ve}from"./slide-hr0X8KAK.js";import{i as ot}from"./initDefaultProps-BcWs5QbR.js";import"./_arrayIncludes-B8uzE354.js";import"./injectionKey-BXVc-oGP.js";import"./Overflow-BYKMeaWJ.js";import"./index-C8LBTJ8l.js";import"./placementArrow-UtY5srm7.js";import"./firstNotUndefined-CLFzEa0p.js";import"./colors-Iv3ft_s8.js";import"./zoom-BGImMPSi.js";import"./Keyframes-C7fCrnlS.js";import"./motion-CrLibvjP.js";import"./Portal-CHsntPCQ.js";import"./transition-D2wU6PAY.js";import"./collapseMotion-D3P4mRvK.js";import"./ResizeObserver.es-D6qJbdzf.js";import"./isSymbol-CsP9Ob42.js";import"./isVisible-C7tPsqfj.js";import"./warning-Pq00owYb.js";function Gt(e,t,a,i){if(!Fe(e))return e;t=nt(t,e);for(var o=-1,r=t.length,n=r-1,s=e;s!=null&&++o<r;){var v=Dt(t[o]),d=a;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(o!=n){var b=s[v];d=void 0,d===void 0&&(d=Fe(b)?b:Wt(t[o+1])?[]:{})}kt(s,v,d),s=s[v]}return e}function Xt(e,t,a){for(var i=-1,o=t.length,r={};++i<o;){var n=t[i],s=Mt(e,n);a(s,n)&&Gt(r,nt(n,e),s)}return r}function Ft(e,t){return Xt(e,t,function(a,i){return Nt(e,i)})}var it=Ot(function(e,t){return e==null?{}:Ft(e,t)});function jt(e){const t=W(),a=W(!1);function i(){for(var o=arguments.length,r=new Array(o),n=0;n<o;n++)r[n]=arguments[n];a.value||(ge.cancel(t.value),t.value=ge(()=>{e(...r)}))}return Me(()=>{a.value=!0,ge.cancel(t.value)}),i}function Vt(e){const t=W([]),a=W(typeof e=="function"?e():e),i=jt(()=>{let r=a.value;t.value.forEach(n=>{r=n(r)}),t.value=[],a.value=r});function o(r){t.value.push(r),i()}return[a,o]}const Yt=re({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:a,attrs:i}=t;const o=J();function r(v){var d;!((d=e.tab)===null||d===void 0)&&d.disabled||e.onClick(v)}a({domRef:o});function n(v){var d;v.preventDefault(),v.stopPropagation(),e.editable.onEdit("remove",{key:(d=e.tab)===null||d===void 0?void 0:d.key,event:v})}const s=H(()=>{var v;return e.editable&&e.closable!==!1&&!(!((v=e.tab)===null||v===void 0)&&v.disabled)});return()=>{var v;const{prefixCls:d,id:b,active:_,tab:{key:m,tab:c,disabled:y,closeIcon:x},renderWrapper:w,removeAriaLabel:C,editable:k,onFocus:K}=e,M=`${d}-tab`,l=h("div",{key:m,ref:o,class:ie(M,{[`${M}-with-remove`]:s.value,[`${M}-active`]:_,[`${M}-disabled`]:y}),style:i.style,onClick:r},[h("div",{role:"tab","aria-selected":_,id:b&&`${b}-tab-${m}`,class:`${M}-btn`,"aria-controls":b&&`${b}-panel-${m}`,"aria-disabled":y,tabindex:y?null:0,onClick:g=>{g.stopPropagation(),r(g)},onKeydown:g=>{[q.SPACE,q.ENTER].includes(g.which)&&(g.preventDefault(),r(g))},onFocus:K},[typeof c=="function"?c():c]),s.value&&h("button",{type:"button","aria-label":C||"remove",tabindex:0,class:`${M}-remove`,onClick:g=>{g.stopPropagation(),n(g)}},[x?.()||((v=k.removeIcon)===null||v===void 0?void 0:v.call(k))||"×"])]);return w?w(l):l}}}),Ye={width:0,height:0,left:0,top:0};function Ut(e,t){const a=J(new Map);return Ce(()=>{var i,o;const r=new Map,n=e.value,s=t.value.get((i=n[0])===null||i===void 0?void 0:i.key)||Ye,v=s.left+s.width;for(let d=0;d<n.length;d+=1){const{key:b}=n[d];let _=t.value.get(b);_||(_=t.value.get((o=n[d-1])===null||o===void 0?void 0:o.key)||Ye);const m=r.get(b)||T({},_);m.right=v-m.left-m.width,r.set(b,m)}a.value=new Map(r)}),a}const rt=re({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(e,t){let{expose:a,attrs:i}=t;const o=J();return a({domRef:o}),()=>{const{prefixCls:r,editable:n,locale:s}=e;return!n||n.showAdd===!1?null:h("button",{ref:o,type:"button",class:`${r}-nav-add`,style:i.style,"aria-label":s?.addAriaLabel||"Add tab",onClick:v=>{n.onEdit("add",{event:v})}},[n.addIcon?n.addIcon():"+"])}}}),Zt={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:we.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:j()},qt=re({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:Zt,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:a,slots:i}=t;const[o,r]=D(!1),[n,s]=D(null),v=c=>{const y=e.tabs.filter(C=>!C.disabled);let x=y.findIndex(C=>C.key===n.value)||0;const w=y.length;for(let C=0;C<w;C+=1){x=(x+c+w)%w;const k=y[x];if(!k.disabled){s(k.key);return}}},d=c=>{const{which:y}=c;if(!o.value){[q.DOWN,q.SPACE,q.ENTER].includes(y)&&(r(!0),c.preventDefault());return}switch(y){case q.UP:v(-1),c.preventDefault();break;case q.DOWN:v(1),c.preventDefault();break;case q.ESC:r(!1);break;case q.SPACE:case q.ENTER:n.value!==null&&e.onTabClick(n.value,c);break}},b=H(()=>`${e.id}-more-popup`),_=H(()=>n.value!==null?`${b.value}-${n.value}`:null),m=(c,y)=>{c.preventDefault(),c.stopPropagation(),e.editable.onEdit("remove",{key:y,event:c})};return Te(()=>{oe(n,()=>{const c=document.getElementById(_.value);c&&c.scrollIntoView&&c.scrollIntoView(!1)},{flush:"post",immediate:!0})}),oe(o,()=>{o.value||s(null)}),Lt({}),()=>{var c;const{prefixCls:y,id:x,tabs:w,locale:C,mobile:k,moreIcon:K=((c=i.moreIcon)===null||c===void 0?void 0:c.call(i))||h(It,null,null),moreTransitionName:M,editable:l,tabBarGutter:g,rtl:u,onTabClick:$,popupClassName:E}=e;if(!w.length)return null;const R=`${y}-dropdown`,G=C?.dropdownAriaLabel,le={[u?"marginRight":"marginLeft"]:g};w.length||(le.visibility="hidden",le.order=1);const se=ie({[`${R}-rtl`]:u,[`${E}`]:!0}),ce=k?null:h(Rt,{prefixCls:R,trigger:["hover"],visible:o.value,transitionName:M,onVisibleChange:r,overlayClassName:se,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>h(wt,{onClick:I=>{let{key:Q,domEvent:N}=I;$(Q,N),r(!1)},id:b.value,tabindex:-1,role:"listbox","aria-activedescendant":_.value,selectedKeys:[n.value],"aria-label":G!==void 0?G:"expanded dropdown"},{default:()=>[w.map(I=>{var Q,N;const V=l&&I.closable!==!1&&!I.disabled;return h(Pt,{key:I.key,id:`${b.value}-${I.key}`,role:"option","aria-controls":x&&`${x}-panel-${I.key}`,disabled:I.disabled},{default:()=>[h("span",null,[typeof I.tab=="function"?I.tab():I.tab]),V&&h("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${R}-menu-item-remove`,onClick:Y=>{Y.stopPropagation(),m(Y,I.key)}},[((Q=I.closeIcon)===null||Q===void 0?void 0:Q.call(I))||((N=l.removeIcon)===null||N===void 0?void 0:N.call(l))||"×"])]})})]}),default:()=>h("button",{type:"button",class:`${y}-nav-more`,style:le,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":b.value,id:`${x}-more`,"aria-expanded":o.value,onKeydown:d},[K])});return h("div",{class:ie(`${y}-nav-operations`,a.class),style:a.style},[ce,h(rt,{prefixCls:y,locale:C,editable:l},null)])}}}),lt=Symbol("tabsContextKey"),Jt=e=>{Tt(lt,e)},st=()=>Ct(lt,{tabs:J([]),prefixCls:J()}),Qt=.1,Ue=.01,Se=20,Ze=Math.pow(.995,Se);function ea(e,t){const[a,i]=D(),[o,r]=D(0),[n,s]=D(0),[v,d]=D(),b=J();function _(l){const{screenX:g,screenY:u}=l.touches[0];i({x:g,y:u}),clearInterval(b.value)}function m(l){if(!a.value)return;l.preventDefault();const{screenX:g,screenY:u}=l.touches[0],$=g-a.value.x,E=u-a.value.y;t($,E),i({x:g,y:u});const R=Date.now();s(R-o.value),r(R),d({x:$,y:E})}function c(){if(!a.value)return;const l=v.value;if(i(null),d(null),l){const g=l.x/n.value,u=l.y/n.value,$=Math.abs(g),E=Math.abs(u);if(Math.max($,E)<Qt)return;let R=g,G=u;b.value=setInterval(()=>{if(Math.abs(R)<Ue&&Math.abs(G)<Ue){clearInterval(b.value);return}R*=Ze,G*=Ze,t(R*Se,G*Se)},Se)}}const y=J();function x(l){const{deltaX:g,deltaY:u}=l;let $=0;const E=Math.abs(g),R=Math.abs(u);E===R?$=y.value==="x"?g:u:E>R?($=g,y.value="x"):($=u,y.value="y"),t(-$,-$)&&l.preventDefault()}const w=J({onTouchStart:_,onTouchMove:m,onTouchEnd:c,onWheel:x});function C(l){w.value.onTouchStart(l)}function k(l){w.value.onTouchMove(l)}function K(l){w.value.onTouchEnd(l)}function M(l){w.value.onWheel(l)}Te(()=>{var l,g;document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",K,{passive:!1}),(l=e.value)===null||l===void 0||l.addEventListener("touchstart",C,{passive:!1}),(g=e.value)===null||g===void 0||g.addEventListener("wheel",M,{passive:!1})}),Me(()=>{document.removeEventListener("touchmove",k),document.removeEventListener("touchend",K)})}function qe(e,t){const a=J(e);function i(o){const r=typeof o=="function"?o(a.value):o;r!==a.value&&t(r,a.value),a.value=r}return[a,i]}const Je={width:0,height:0,left:0,top:0,right:0},ta=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:he(),editable:he(),moreIcon:we.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:he(),popupClassName:String,getPopupContainer:j(),onTabClick:{type:Function},onTabScroll:{type:Function}}),aa=(e,t)=>{const{offsetWidth:a,offsetHeight:i,offsetTop:o,offsetLeft:r}=e,{width:n,height:s,x:v,y:d}=e.getBoundingClientRect();return Math.abs(n-a)<1?[n,s,v-t.x,d-t.y]:[a,i,r,o]},Qe=re({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:ta(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:a,slots:i}=t;const{tabs:o,prefixCls:r}=st(),n=W(),s=W(),v=W(),d=W(),[b,_]=At(),m=H(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[c,y]=qe(0,(f,p)=>{m.value&&e.onTabScroll&&e.onTabScroll({direction:f>p?"left":"right"})}),[x,w]=qe(0,(f,p)=>{!m.value&&e.onTabScroll&&e.onTabScroll({direction:f>p?"top":"bottom"})}),[C,k]=D(0),[K,M]=D(0),[l,g]=D(null),[u,$]=D(null),[E,R]=D(0),[G,le]=D(0),[se,ce]=Vt(new Map),I=Ut(o,se),Q=H(()=>`${r.value}-nav-operations-hidden`),N=W(0),V=W(0);Ce(()=>{m.value?e.rtl?(N.value=0,V.value=Math.max(0,C.value-l.value)):(N.value=Math.min(0,l.value-C.value),V.value=0):(N.value=Math.min(0,u.value-K.value),V.value=0)});const Y=f=>f<N.value?N.value:f>V.value?V.value:f,ue=W(),[z,ve]=D(),pe=()=>{ve(Date.now())},be=()=>{clearTimeout(ue.value)},$e=(f,p)=>{f(S=>Y(S+p))};ea(n,(f,p)=>{if(m.value){if(l.value>=C.value)return!1;$e(y,f)}else{if(u.value>=K.value)return!1;$e(w,p)}return be(),pe(),!0}),oe(z,()=>{be(),z.value&&(ue.value=setTimeout(()=>{ve(0)},100))});const de=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const p=I.value.get(f)||{width:0,height:0,left:0,right:0,top:0};if(m.value){let S=c.value;e.rtl?p.right<c.value?S=p.right:p.right+p.width>c.value+l.value&&(S=p.right+p.width-l.value):p.left<-c.value?S=-p.left:p.left+p.width>-c.value+l.value&&(S=-(p.left+p.width-l.value)),w(0),y(Y(S))}else{let S=x.value;p.top<-x.value?S=-p.top:p.top+p.height>-x.value+u.value&&(S=-(p.top+p.height-u.value)),y(0),w(Y(S))}},Pe=W(0),Re=W(0);Ce(()=>{let f,p,S,P,L,B;const U=I.value;["top","bottom"].includes(e.tabPosition)?(f="width",P=l.value,L=C.value,B=E.value,p=e.rtl?"right":"left",S=Math.abs(c.value)):(f="height",P=u.value,L=C.value,B=G.value,p="top",S=-x.value);let O=P;L+B>P&&L<P&&(O=P-B);const F=o.value;if(!F.length)return[Pe.value,Re.value]=[0,0];const Z=F.length;let ne=Z;for(let X=0;X<Z;X+=1){const ee=U.get(F[X].key)||Je;if(ee[p]+ee[f]>S+O){ne=X-1;break}}let A=0;for(let X=Z-1;X>=0;X-=1)if((U.get(F[X].key)||Je)[p]<S){A=X+1;break}return[Pe.value,Re.value]=[A,ne]});const Ne=()=>{ce(()=>{var f;const p=new Map,S=(f=s.value)===null||f===void 0?void 0:f.getBoundingClientRect();return o.value.forEach(P=>{let{key:L}=P;const B=_.value.get(L),U=B?.$el||B;if(U){const[O,F,Z,ne]=aa(U,S);p.set(L,{width:O,height:F,left:Z,top:ne})}}),p})};oe(()=>o.value.map(f=>f.key).join("%%"),()=>{Ne()},{flush:"post"});const Ie=()=>{var f,p,S,P,L;const B=((f=n.value)===null||f===void 0?void 0:f.offsetWidth)||0,U=((p=n.value)===null||p===void 0?void 0:p.offsetHeight)||0,O=((S=d.value)===null||S===void 0?void 0:S.$el)||{},F=O.offsetWidth||0,Z=O.offsetHeight||0;g(B),$(U),R(F),le(Z);const ne=(((P=s.value)===null||P===void 0?void 0:P.offsetWidth)||0)-F,A=(((L=s.value)===null||L===void 0?void 0:L.offsetHeight)||0)-Z;k(ne),M(A),Ne()},Oe=H(()=>[...o.value.slice(0,Pe.value),...o.value.slice(Re.value+1)]),[ct,ut]=D(),ae=H(()=>I.value.get(e.activeKey)),We=W(),He=()=>{ge.cancel(We.value)};oe([ae,m,()=>e.rtl],()=>{const f={};ae.value&&(m.value?(e.rtl?f.right=me(ae.value.right):f.left=me(ae.value.left),f.width=me(ae.value.width)):(f.top=me(ae.value.top),f.height=me(ae.value.height))),He(),We.value=ge(()=>{ut(f)})}),oe([()=>e.activeKey,ae,I,m],()=>{de()},{flush:"post"}),oe([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>o.value],()=>{Ie()},{flush:"post"});const Ee=f=>{let{position:p,prefixCls:S,extra:P}=f;if(!P)return null;const L=P?.({position:p});return L?h("div",{class:`${S}-extra-content`},[L]):null};return Me(()=>{be(),He()}),()=>{const{id:f,animated:p,activeKey:S,rtl:P,editable:L,locale:B,tabPosition:U,tabBarGutter:O,onTabClick:F}=e,{class:Z,style:ne}=a,A=r.value,X=!!Oe.value.length,ee=`${A}-nav-wrap`;let Be,Le,ze,Ke;m.value?P?(Le=c.value>0,Be=c.value+l.value<C.value):(Be=c.value<0,Le=-c.value+l.value<C.value):(ze=x.value<0,Ke=-x.value+u.value<K.value);const ye={};U==="top"||U==="bottom"?ye[P?"marginRight":"marginLeft"]=typeof O=="number"?`${O}px`:O:ye.marginTop=typeof O=="number"?`${O}px`:O;const Ge=o.value.map((Ae,vt)=>{const{key:fe}=Ae;return h(Yt,{id:f,prefixCls:A,key:fe,tab:Ae,style:vt===0?void 0:ye,closable:Ae.closable,editable:L,active:fe===S,removeAriaLabel:B?.removeAriaLabel,ref:b(fe),onClick:pt=>{F(fe,pt)},onFocus:()=>{de(fe),pe(),n.value&&(P||(n.value.scrollLeft=0),n.value.scrollTop=0)}},i)});return h("div",{role:"tablist",class:ie(`${A}-nav`,Z),style:ne,onKeydown:()=>{pe()}},[h(Ee,{position:"left",prefixCls:A,extra:i.leftExtra},null),h(Xe,{onResize:Ie},{default:()=>[h("div",{class:ie(ee,{[`${ee}-ping-left`]:Be,[`${ee}-ping-right`]:Le,[`${ee}-ping-top`]:ze,[`${ee}-ping-bottom`]:Ke}),ref:n},[h(Xe,{onResize:Ie},{default:()=>[h("div",{ref:s,class:`${A}-nav-list`,style:{transform:`translate(${c.value}px, ${x.value}px)`,transition:z.value?"none":void 0}},[Ge,h(rt,{ref:d,prefixCls:A,locale:B,editable:L,style:T(T({},Ge.length===0?void 0:ye),{visibility:X?"hidden":null})},null),h("div",{class:ie(`${A}-ink-bar`,{[`${A}-ink-bar-animated`]:p.inkBar}),style:ct.value},null)])]})])]}),h(qt,te(te({},e),{},{removeAriaLabel:B?.removeAriaLabel,ref:v,prefixCls:A,tabs:Oe.value,class:!X&&Q.value}),it(i,["moreIcon"])),h(Ee,{position:"right",prefixCls:A,extra:i.rightExtra},null),h(Ee,{position:"right",prefixCls:A,extra:i.tabBarExtraContent},null)])}}}),na=re({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:a}=st();return()=>{const{id:i,activeKey:o,animated:r,tabPosition:n,rtl:s,destroyInactiveTabPane:v}=e,d=r.tabPane,b=a.value,_=t.value.findIndex(m=>m.key===o);return h("div",{class:`${b}-content-holder`},[h("div",{class:[`${b}-content`,`${b}-content-${n}`,{[`${b}-content-animated`]:d}],style:_&&d?{[s?"marginRight":"marginLeft"]:`-${_}00%`}:null},[t.value.map(m=>Ht(m.node,{key:m.key,prefixCls:b,tabKey:m.key,id:i,animated:d,active:m.key===o,destroyInactiveTabPane:v}))])])}}}),oa=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[Ve(e,"slide-up"),Ve(e,"slide-down")]]},ia=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeadBackground:i,tabsCardGutter:o,colorSplit:r}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:i,border:`${e.lineWidth}px ${e.lineType} ${r}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ra=e=>{const{componentCls:t,tabsHoverColor:a,dropdownEdgeChildVerticalPadding:i}=e;return{[`${t}-dropdown`]:T(T({},tt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${i}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":T(T({},mt),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},la=e=>{const{componentCls:t,margin:a,colorSplit:i}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${a}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${i}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
2
2
|
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,
|
|
3
3
|
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${a}px`,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:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${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:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${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:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},sa=e=>{const{componentCls:t,padding:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${a}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${a}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${a}px ${e.paddingXXS*1.5}px`}}}}}},da=e=>{const{componentCls:t,tabsActiveColor:a,tabsHoverColor:i,iconCls:o,tabsHorizontalGutter:r}=e,n=`${t}-tab`;return{[n]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":T({"&:focus:not(:focus-visible), &:active":{color:a}},at(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:i},[`&${n}-active ${n}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-disabled ${n}-btn, &${n}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${n}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${n} + ${n}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${r}px`}}}},ca=e=>{const{componentCls:t,tabsHorizontalGutter:a,iconCls:i,tabsCardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${a}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[i]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[i]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${o}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ua=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeight:i,tabsCardGutter:o,tabsHoverColor:r,tabsActiveColor:n,colorSplit:s}=e;return{[t]:T(T(T(T({},tt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:a,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:T({minWidth:`${i}px`,marginLeft:{_skip_check_:!0,value:`${o}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:r},"&:active, &:focus:not(:focus-visible)":{color:n}},at(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),da(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},va=bt("Tabs",e=>{const t=e.controlHeightLG,a=ft(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[sa(a),ca(a),la(a),ra(a),ia(a),ua(a),oa(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let et=0;const dt=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:j(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:xe(),animated:_t([Boolean,Object]),renderTabBar:j(),tabBarGutter:{type:Number},tabBarStyle:he(),tabPosition:xe(),destroyInactiveTabPane:St(),hideAdd:Boolean,type:xe(),size:xe(),centered:Boolean,onEdit:j(),onChange:j(),onTabClick:j(),onTabScroll:j(),"onUpdate:activeKey":j(),locale:he(),onPrevClick:j(),onNextClick:j(),tabBarExtraContent:we.any});function pa(e){return e.map(t=>{if(gt(t)){const a=T({},t.props||{});for(const[m,c]of Object.entries(a))delete a[m],a[$t(m)]=c;const i=t.children||{},o=t.key!==void 0?t.key:void 0,{tab:r=i.tab,disabled:n,forceRender:s,closable:v,animated:d,active:b,destroyInactiveTabPane:_}=a;return T(T({key:o},a),{node:t,closeIcon:i.closeIcon,tab:r,disabled:n===""||n,forceRender:s===""||s,closable:v===""||v,animated:d===""||d,active:b===""||b,destroyInactiveTabPane:_===""||_})}return null}).filter(t=>t)}const ba=re({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:T(T({},ot(dt(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:xt()}),slots:Object,setup(e,t){let{attrs:a,slots:i}=t;De(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),De(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),De(i.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:o,direction:r,size:n,rootPrefixCls:s,getPopupContainer:v}=yt("tabs",e),[d,b]=va(o),_=H(()=>r.value==="rtl"),m=H(()=>{const{animated:u,tabPosition:$}=e;return u===!1||["left","right"].includes($)?{inkBar:!1,tabPane:!1}:u===!0?{inkBar:!0,tabPane:!0}:T({inkBar:!0,tabPane:!1},typeof u=="object"?u:{})}),[c,y]=D(!1);Te(()=>{y(zt())});const[x,w]=je(()=>{var u;return(u=e.tabs[0])===null||u===void 0?void 0:u.key},{value:H(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[C,k]=D(()=>e.tabs.findIndex(u=>u.key===x.value));Ce(()=>{var u;let $=e.tabs.findIndex(E=>E.key===x.value);$===-1&&($=Math.max(0,Math.min(C.value,e.tabs.length-1)),w((u=e.tabs[$])===null||u===void 0?void 0:u.key)),k($)});const[K,M]=je(null,{value:H(()=>e.id)}),l=H(()=>c.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);Te(()=>{e.id||(M(`rc-tabs-${et}`),et+=1)});const g=(u,$)=>{var E,R;(E=e.onTabClick)===null||E===void 0||E.call(e,u,$);const G=u!==x.value;w(u),G&&((R=e.onChange)===null||R===void 0||R.call(e,u))};return Jt({tabs:H(()=>e.tabs),prefixCls:o}),()=>{const{id:u,type:$,tabBarGutter:E,tabBarStyle:R,locale:G,destroyInactiveTabPane:le,renderTabBar:se=i.renderTabBar,onTabScroll:ce,hideAdd:I,centered:Q}=e,N={id:K.value,activeKey:x.value,animated:m.value,tabPosition:l.value,rtl:_.value,mobile:c.value};let V;$==="editable-card"&&(V={onEdit:(ve,pe)=>{let{key:be,event:$e}=pe;var de;(de=e.onEdit)===null||de===void 0||de.call(e,ve==="add"?$e:be,ve)},removeIcon:()=>h(Bt,null,null),addIcon:i.addIcon?i.addIcon:()=>h(Et,null,null),showAdd:I!==!0});let Y;const ue=T(T({},N),{moreTransitionName:`${s.value}-slide-up`,editable:V,locale:G,tabBarGutter:E,onTabClick:g,onTabScroll:ce,style:R,getPopupContainer:v.value,popupClassName:ie(e.popupClassName,b.value)});se?Y=se(T(T({},ue),{DefaultTabBar:Qe})):Y=h(Qe,ue,it(i,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const z=o.value;return d(h("div",te(te({},a),{},{id:u,class:ie(z,`${z}-${l.value}`,{[b.value]:!0,[`${z}-${n.value}`]:n.value,[`${z}-card`]:["card","editable-card"].includes($),[`${z}-editable-card`]:$==="editable-card",[`${z}-centered`]:Q,[`${z}-mobile`]:c.value,[`${z}-editable`]:$==="editable-card",[`${z}-rtl`]:_.value},a.class)}),[Y,h(na,te(te({destroyInactiveTabPane:le},N),{},{animated:m.value}),null)]))}}}),_e=re({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:ot(dt(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:a,slots:i,emit:o}=t;const r=n=>{o("update:activeKey",n),o("change",n)};return()=>{var n;const s=pa(ht((n=i.default)===null||n===void 0?void 0:n.call(i)));return h(ba,te(te(te({},Kt(e,["onUpdate:activeKey"])),a),{},{onChange:r,tabs:s}),i)}}}),fa=()=>({tab:we.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),ke=re({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:fa(),slots:Object,setup(e,t){let{attrs:a,slots:i}=t;const o=J(e.forceRender);oe([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?o.value=!0:e.destroyInactiveTabPane&&(o.value=!1)},{immediate:!0});const r=H(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var n;const{prefixCls:s,forceRender:v,id:d,active:b,tabKey:_}=e;return h("div",{id:d&&`${d}-panel-${_}`,role:"tabpanel",tabindex:b?0:-1,"aria-labelledby":d&&`${d}-tab-${_}`,"aria-hidden":!b,style:[r.value,a.style],class:[`${s}-tabpane`,b&&`${s}-tabpane-active`,a.class]},[(b||o.value||v)&&((n=i.default)===null||n===void 0?void 0:n.call(i))])}}});_e.TabPane=ke;_e.install=function(e){return e.component(_e.name,_e),e.component(ke.name,ke),e};export{ke as TabPane,_e as default};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AppLayout-CcqxQGmE.js","./vendor-BVetwVfk.js","./ws-Bv7YH0VB.js","./_plugin-vue_export-helper-DlAUqK2U.js","./icons-srBCpwXl.js","./AppLayout-BbhrUX4i.css","./Dashboard-XxsWjoEF.js","./chat-CVn-r3oV.js","./Dashboard-Cviwdc26.css","./Chat-Cl9LpsTj.js","./markdown-vYH_ziAO.js","./markdown-xjUYbPSW.js","./markdown-Dfs9RUU9.css","./Chat-DmX5bWvL.css","./Cowork-CPj75S0j.js","./Cowork-DsOst4XK.css","./Services-CEuZeNM6.js","./Services-C8Qs6KXv.css","./Logs-4wvIp1ss.js","./Logs-Gf_Mv9Nx.css","./Skills-CIv4Cs3T.js","./parsers-DftYMnlk.js","./Skills-BdjRyorN.css","./Providers-CikNkb5X.js","./index-CzGZa5Ow.js","./useConfigInject-DqhngD-R.js","./transition-D2wU6PAY.js","./Keyframes-C7fCrnlS.js","./Portal-CHsntPCQ.js","./index-U4Zd5IK6.js","./Providers-BEakqcO5.css","./McpTools-DBERPbTA.js","./McpTools-CyhSLDwf.css","./ProjectSettings-DnrhLjZI.js","./ProjectSettings-pLSae-wy.css","./Notes-DMgBT122.js","./Notes-BG69sJKi.css","./Memory-CMNbDULN.js","./Memory-DRghrGJr.css","./KnowledgeGraph-CH3dpH-_.js","./KnowledgeGraph-U8ps3aGJ.css","./Cron-PnlUFCIP.js","./WorkflowEditor-C4sIrXd7.js","./WorkflowEditor-D5bX6woe.css","./Tasks-DePDDw0g.js","./Tasks-BJjN_YEm.css","./Security-C8Ivt-oU.js","./Security-Dwxw7rfP.css","./DID-B3aBXElX.js","./DID-BDvsVa08.css","./Permissions-DlZ_n4w_.js","./Permissions-C9WlkGl-.css","./P2P-DKDUTaaL.js","./P2P-OEzOeMZX.css","./Git-BnVgKR_0.js","./Git-DGcuBXST.css","./Projects-Bi66Yv3y.js","./Projects-DxKelI5h.css","./Wallet-DbdgPt_i.js","./Wallet-DnIumafl.css","./Organization-u7P1VpPr.js","./Organization-DdOOM4ic.css","./Analytics-CkCmN3yh.js","./Analytics-BFI7jbwM.css","./Templates-h2flhfZ2.js","./Templates-DOY_oZnm.css","./Backup-SPQtiUev.js","./Backup-fZqtfC1m.css","./RssFeed-NMgrJXli.js","./RssFeed-BlFC20eg.css","./WebAuthn-0qV34Bht.js","./WebAuthn-CNPl2VQR.css","./Community-RZzIND1A.js","./community-parser-CO25nZFt.js","./Community-DqDfLQui.css","./Marketplace-BydQkgpf.js","./Marketplace-B-4uYu_j.css","./Crosschain-C7Kxjjlo.js","./Crosschain-DThGgQk8.css","./AIOps-CoVPS4_f.js","./index-ThYPc1ub.js","./KeyCode-D63Tfrq7.js","./omit-DpIEkCg5.js","./pickAttrs-KtgV4VKB.js","./initDefaultProps-BcWs5QbR.js","./motion-CrLibvjP.js","./raf-Deuc0E8-.js","./index-TOigBSzr.js","./index-CMKIwCKt.js","./isVisible-C7tPsqfj.js","./useState-DoAhV80c.js","./devWarning-CNIS3FrJ.js","./warning-Pq00owYb.js","./compact-item-CtT5KcXA.js","./createContext-CHLVxTn6.js","./Compact-B-UF0szM.js","./_getTag-CWA3v-Ds.js","./styleChecker-DJv72QFU.js","./zoom-BGImMPSi.js","./ActionButton-BYA9htq4.js","./vnode-B2xg11HE.js","./AIOps-Bfzpnnlg.css","./Compliance-D7dNQEQ9.js","./Compliance-CKxw6vIq.css","./Privacy-5YZQ-neP.js","./Privacy-B_cAicd1.css","./Inference-pcPaCXHq.js","./Inference-EFFc7eNZ.css","./NLProgramming-DVSbNLly.js","./NLProgramming-jURs-f-a.css","./Tenant-BZN5JCLW.js","./Tenant-BJr-h-_0.css","./Pipeline-BUqsWXKt.js","./Pipeline-DyqCLFVr.css","./VideoEditing-DP5Te9MV.js","./VideoEditing-BA1N-5kq.css","./index-B6JARzH-.js","./index--eBMlDjO.js","./colors-Iv3ft_s8.js","./isNumeric-DjvBa-1E.js","./index-C1uasX17.js","./index-DiZ3aYcD.js","./index-4I01hpiN.js","./Trigger-DmhLeltH.js","./ResizeObserver.es-D6qJbdzf.js","./_arrayIncludes-B8uzE354.js","./injectionKey-BXVc-oGP.js","./Overflow-BYKMeaWJ.js","./index-BWtxplKf.js","./index-C8LBTJ8l.js","./placementArrow-UtY5srm7.js","./firstNotUndefined-CLFzEa0p.js","./collapseMotion-D3P4mRvK.js","./slide-hr0X8KAK.js","./OverrideContext-DEW2m7K6.js","./Dropdown-B6FSgG11.js","./useRefs-DRyTVik7.js","./hasIn-B9IRZs23.js","./isSymbol-CsP9Ob42.js","./isMobile--2fOlCHx.js","./useMergedState-DbHXwBgv.js","./isPlainObject-DSTnI585.js","./Skeleton-CVXI8LKZ.js","./index-E7-XzEfE.js","./Checkbox-BiSO-WqE.js","./FormItemContext-B0xgi547.js","./index-69KL83qL.js","./Col-DIGPvqVy.js","./index-dzwxxvlh.js","./index-KZbeEKa2.js","./index-Dbaj1U7z.js","./responsiveObserve-C---VD6e.js","./index-BOlkR4CB.js","./index-NJzH4w-U.js","./move-B5c6-VQr.js","./index-q__DPgfq.js","./Row-Dq1TXcMH.js","./useFlexGapSupport-CTWfwV__.js","./debounce-Q0BOJsYd.js","./index-BjC8S1t1.js","./statusUtils-CgoYe6s3.js","./BaseInput-BAmfd4Ir.js","./index-DXEG5UZz.js","./index-D5hcqkeW.js","./index-B0IQIuHE.js","./index-BRlYu6_d.js","./index-CYQVfA_R.js","./index-B18bc0ut.js","./index-DzKYMmMu.js","./index-D7VXIYiM.js","./index-d3aFQf7u.js","./index-cqU5_E3h.js","./index-Cps5gHTC.js","./index-CDWpDZgD.js","./index-UmTF1KQy.js","./index-4wtT_zvC.js","./index-C8wxMp_Z.js","./index-BaHFTtgz.js","./index-DUg23xvw.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{b as Ie,e as Le,i as le,s as D,g as Ce,d as se,w as U,u as w,p as ue,f as De,o as Re,j as E,r as me,t as Oe,k as Be,l as we,m as Ve,q as J,v as Me,x as ke,c as He,y as ze,z as Xe,A as Fe}from"./vendor-BVetwVfk.js";import{T as A,g as M}from"./icons-srBCpwXl.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();const Ne="modulepreload",$e=function(e,t){return new URL(e,t).href},Z={},i=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let d=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};const c=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),p=s?.nonce||s?.getAttribute("nonce");o=d(r.map(f=>{if(f=$e(f,n),f in Z)return;Z[f]=!0;const m=f.endsWith(".css"),_=m?'[rel="stylesheet"]':"";if(n)for(let h=c.length-1;h>=0;h--){const v=c[h];if(v.href===f&&(!m||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${_}`))return;const g=document.createElement("link");if(g.rel=m?"stylesheet":Ne,m||(g.as="script"),g.crossOrigin="",g.href=f,p&&g.setAttribute("nonce",p),document.head.appendChild(g),m)return new Promise((h,v)=>{g.addEventListener("load",h),g.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${f}`)))})}))}function a(c){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=c,window.dispatchEvent(s),!s.defaultPrevented)throw c}return o.then(c=>{for(const s of c||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})},Ge=[{path:"/",component:()=>i(()=>import("./AppLayout-CcqxQGmE.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),children:[{path:"",redirect:"/dashboard"},{path:"dashboard",name:"Dashboard",component:()=>i(()=>import("./Dashboard-XxsWjoEF.js"),__vite__mapDeps([6,1,2,7,3,4,8]),import.meta.url)},{path:"chat",name:"Chat",component:()=>i(()=>import("./Chat-Cl9LpsTj.js"),__vite__mapDeps([9,1,7,2,3,4,10,11,12,13]),import.meta.url)},{path:"cowork",name:"Cowork",component:()=>i(()=>import("./Cowork-CPj75S0j.js"),__vite__mapDeps([14,1,2,7,10,11,12,3,4,15]),import.meta.url)},{path:"services",name:"Services",component:()=>i(()=>import("./Services-CEuZeNM6.js"),__vite__mapDeps([16,2,1,3,4,17]),import.meta.url)},{path:"logs",name:"Logs",component:()=>i(()=>import("./Logs-4wvIp1ss.js"),__vite__mapDeps([18,2,1,3,4,19]),import.meta.url)},{path:"skills",name:"Skills",component:()=>i(()=>import("./Skills-CIv4Cs3T.js"),__vite__mapDeps([20,1,2,21,7,3,4,22]),import.meta.url)},{path:"providers",name:"Providers",component:()=>i(()=>import("./Providers-CikNkb5X.js"),__vite__mapDeps([23,1,2,21,3,24,25,4,26,27,28,29,30]),import.meta.url)},{path:"mcp",name:"McpTools",component:()=>i(()=>import("./McpTools-DBERPbTA.js"),__vite__mapDeps([31,2,1,3,4,32]),import.meta.url)},{path:"project-settings",name:"ProjectSettings",component:()=>i(()=>import("./ProjectSettings-DnrhLjZI.js"),__vite__mapDeps([33,2,1,3,24,25,4,26,27,28,29,34]),import.meta.url)},{path:"notes",name:"Notes",component:()=>i(()=>import("./Notes-DMgBT122.js"),__vite__mapDeps([35,2,1,3,4,24,25,26,27,28,29,36]),import.meta.url)},{path:"memory",name:"Memory",component:()=>i(()=>import("./Memory-CMNbDULN.js"),__vite__mapDeps([37,2,1,3,4,24,25,26,27,28,29,38]),import.meta.url)},{path:"knowledge",name:"Knowledge",component:()=>i(()=>import("./KnowledgeGraph-CH3dpH-_.js"),__vite__mapDeps([39,1,2,3,24,25,4,26,27,28,29,40]),import.meta.url)},{path:"cron",name:"Cron",component:()=>i(()=>import("./Cron-PnlUFCIP.js"),__vite__mapDeps([41,2,1,4,24,25,26,27,28,29]),import.meta.url)},{path:"workflow",name:"Workflow",component:()=>i(()=>import("./WorkflowEditor-C4sIrXd7.js"),__vite__mapDeps([42,1,2,3,4,24,25,26,27,28,29,43]),import.meta.url)},{path:"tasks",name:"Tasks",component:()=>i(()=>import("./Tasks-DePDDw0g.js"),__vite__mapDeps([44,1,2,3,4,45]),import.meta.url)},{path:"security",name:"Security",component:()=>i(()=>import("./Security-C8Ivt-oU.js"),__vite__mapDeps([46,2,1,3,24,25,4,26,27,28,29,47]),import.meta.url)},{path:"did",name:"DID",component:()=>i(()=>import("./DID-B3aBXElX.js"),__vite__mapDeps([48,2,1,3,24,25,4,26,27,28,29,49]),import.meta.url)},{path:"permissions",name:"Permissions",component:()=>i(()=>import("./Permissions-DlZ_n4w_.js"),__vite__mapDeps([50,2,1,3,24,25,4,26,27,28,29,51]),import.meta.url)},{path:"p2p",name:"P2P",component:()=>i(()=>import("./P2P-DKDUTaaL.js"),__vite__mapDeps([52,2,1,3,4,53]),import.meta.url)},{path:"git",name:"Git",component:()=>i(()=>import("./Git-BnVgKR_0.js"),__vite__mapDeps([54,2,1,3,4,24,25,26,27,28,29,55]),import.meta.url)},{path:"projects",name:"Projects",component:()=>i(()=>import("./Projects-Bi66Yv3y.js"),__vite__mapDeps([56,2,1,3,4,57]),import.meta.url)},{path:"wallet",name:"Wallet",component:()=>i(()=>import("./Wallet-DbdgPt_i.js"),__vite__mapDeps([58,2,1,3,24,25,4,26,27,28,29,59]),import.meta.url)},{path:"organization",name:"Organization",component:()=>i(()=>import("./Organization-u7P1VpPr.js"),__vite__mapDeps([60,1,2,3,24,25,4,26,27,28,29,61]),import.meta.url)},{path:"analytics",name:"Analytics",component:()=>i(()=>import("./Analytics-CkCmN3yh.js"),__vite__mapDeps([62,2,1,3,4,24,25,26,27,28,29,63]),import.meta.url)},{path:"templates",name:"Templates",component:()=>i(()=>import("./Templates-h2flhfZ2.js"),__vite__mapDeps([64,1,2,3,4,24,25,26,27,28,29,65]),import.meta.url)},{path:"backup",name:"Backup",component:()=>i(()=>import("./Backup-SPQtiUev.js"),__vite__mapDeps([66,2,1,3,4,67]),import.meta.url)},{path:"rssfeed",name:"RssFeed",component:()=>i(()=>import("./RssFeed-NMgrJXli.js"),__vite__mapDeps([68,1,2,3,4,24,25,26,27,28,29,69]),import.meta.url)},{path:"webauthn",name:"WebAuthn",component:()=>i(()=>import("./WebAuthn-0qV34Bht.js"),__vite__mapDeps([70,2,1,3,24,25,4,26,27,28,29,71]),import.meta.url)},{path:"community",name:"Community",component:()=>i(()=>import("./Community-RZzIND1A.js"),__vite__mapDeps([72,2,1,73,3,24,25,4,26,27,28,29,74]),import.meta.url)},{path:"marketplace",name:"Marketplace",component:()=>i(()=>import("./Marketplace-BydQkgpf.js"),__vite__mapDeps([75,2,1,73,3,24,25,4,26,27,28,29,76]),import.meta.url)},{path:"crosschain",name:"Crosschain",component:()=>i(()=>import("./Crosschain-C7Kxjjlo.js"),__vite__mapDeps([77,2,1,73,3,24,25,4,26,27,28,29,78]),import.meta.url)},{path:"aiops",name:"AIOps",component:()=>i(()=>import("./AIOps-CoVPS4_f.js"),__vite__mapDeps([79,2,1,73,3,24,25,4,26,27,28,29,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101]),import.meta.url)},{path:"compliance",name:"Compliance",component:()=>i(()=>import("./Compliance-D7dNQEQ9.js"),__vite__mapDeps([102,2,1,73,3,24,25,4,26,27,28,29,103]),import.meta.url)},{path:"privacy",name:"Privacy",component:()=>i(()=>import("./Privacy-5YZQ-neP.js"),__vite__mapDeps([104,2,1,73,3,24,25,4,26,27,28,29,105]),import.meta.url)},{path:"inference",name:"Inference",component:()=>i(()=>import("./Inference-pcPaCXHq.js"),__vite__mapDeps([106,2,1,73,3,24,25,4,26,27,28,29,107]),import.meta.url)},{path:"nlprog",name:"NLProgramming",component:()=>i(()=>import("./NLProgramming-DVSbNLly.js"),__vite__mapDeps([108,2,1,73,3,24,25,4,26,27,28,29,109]),import.meta.url)},{path:"tenant",name:"Tenant",component:()=>i(()=>import("./Tenant-BZN5JCLW.js"),__vite__mapDeps([110,2,1,73,3,24,25,4,26,27,28,29,111]),import.meta.url)},{path:"pipeline",name:"Pipeline",component:()=>i(()=>import("./Pipeline-BUqsWXKt.js"),__vite__mapDeps([112,2,1,73,3,24,25,4,26,27,28,29,113]),import.meta.url)},{path:"video",name:"VideoEditing",component:()=>i(()=>import("./VideoEditing-DP5Te9MV.js"),__vite__mapDeps([114,2,1,3,4,24,25,26,27,28,29,115]),import.meta.url)}]}],je=Ie({history:Le(),routes:Ge});function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(null,arguments)}const $t=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t},We=e=>{const t=e;return t.install=function(r){r.component(t.displayName||t.name,e)},e};function Gt(){return{type:[Function,Array]}}function de(e){return{type:Object,default:e}}function z(e){return{type:Boolean,default:e}}function jt(e){return{type:Function,default:e}}function Ue(e,t){const r={validator:()=>!0,default:e};return r}function Wt(){return{validator:()=>!0}}function ee(e){return{type:Array,default:e}}function te(e){return{type:String,default:e}}function Ke(e,t){return e?{type:e,default:t}:Ue(t)}function pe(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const oe="%";class qe{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(oe):t)||null}update(t,r){const n=Array.isArray(t)?t.join(oe):t,o=this.cache.get(n),a=r(o);a===null?this.cache.delete(n):this.cache.set(n,a)}}const Qe="data-token-hash",X="data-css-hash",I="__cssinjs_instance__";function R(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${X}]`)||[],{firstChild:r}=document.head;Array.from(t).forEach(o=>{o[I]=o[I]||e,o[I]===e&&document.head.insertBefore(o,r)});const n={};Array.from(document.querySelectorAll(`style[${X}]`)).forEach(o=>{var a;const c=o.getAttribute(X);n[c]?o[I]===e&&((a=o.parentNode)===null||a===void 0||a.removeChild(o)):n[c]=!0})}return new qe(e)}const fe=Symbol("StyleContextKey"),Ye=()=>{var e,t,r;const n=Ce();let o;if(n&&n.appContext){const a=(r=(t=(e=n.appContext)===null||e===void 0?void 0:e.config)===null||t===void 0?void 0:t.globalProperties)===null||r===void 0?void 0:r.__ANTDV_CSSINJS_CACHE__;a?o=a:(o=R(),n.appContext.config.globalProperties&&(n.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=o))}else o=R();return o},_e={cache:R(),defaultCache:!0,hashPriority:"low"},K=()=>{const e=Ye();return le(fe,D(u(u({},_e),{cache:e})))},Je=e=>{const t=K(),r=D(u(u({},_e),{cache:R()}));return U([()=>w(e),t],()=>{const n=u({},t.value),o=w(e);Object.keys(o).forEach(c=>{const s=o[c];o[c]!==void 0&&(n[c]=s)});const{cache:a}=o;n.cache=n.cache||R(),n.defaultCache=!a&&t.value.defaultCache,r.value=n},{immediate:!0}),ue(fe,r),r},Ze=()=>({autoClear:z(),mock:te(),cache:de(),defaultCache:z(),hashPriority:te(),container:Ke(),ssrInline:z(),transformers:ee(),linters:ee()});We(se({name:"AStyleProvider",inheritAttrs:!1,props:Ze(),setup(e,t){let{slots:r}=t;return Je(e),()=>{var n;return(n=r.default)===null||n===void 0?void 0:n.call(r)}}}));function et(e,t,r,n){const o=K(),a=D(""),c=D();De(()=>{a.value=[e,...t.value].join("%")});const s=p=>{o.value.cache.update(p,d=>{const[f=0,m]=d||[];return f-1===0?(n?.(m,!1),null):[f-1,m]})};return U(a,(p,d)=>{d&&s(d),o.value.cache.update(p,f=>{const[m=0,_]=f||[],h=_||r();return[m+1,h]}),c.value=o.value.cache.get(a.value)[1]},{immediate:!0}),Re(()=>{s(a.value)}),c}function ge(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function tt(e,t){return e&&e.contains?e.contains(t):!1}const re="data-vc-order",ot="vc-util-key",j=new Map;function he(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:ot}function k(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function rt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ve(e){return Array.from((j.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Ee(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ge())return null;const{csp:r,prepend:n}=t,o=document.createElement("style");o.setAttribute(re,rt(n)),r?.nonce&&(o.nonce=r?.nonce),o.innerHTML=e;const a=k(t),{firstChild:c}=a;if(n){if(n==="queue"){const s=ve(a).filter(p=>["prepend","prependQueue"].includes(p.getAttribute(re)));if(s.length)return a.insertBefore(o,s[s.length-1].nextSibling),o}a.insertBefore(o,c)}else a.appendChild(o);return o}function Ae(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=k(t);return ve(r).find(n=>n.getAttribute(he(t))===e)}function nt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=Ae(e,t);r&&k(t).removeChild(r)}function it(e,t){const r=j.get(e);if(!r||!tt(document,r)){const n=Ee("",t),{parentNode:o}=n;j.set(e,o),e.removeChild(n)}}function at(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n,o,a;const c=k(r);it(c,r);const s=Ae(t,r);if(s)return!((n=r.csp)===null||n===void 0)&&n.nonce&&s.nonce!==((o=r.csp)===null||o===void 0?void 0:o.nonce)&&(s.nonce=(a=r.csp)===null||a===void 0?void 0:a.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;const p=Ee(e,r);return p.setAttribute(he(r),t),p}function ct(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}class S{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n={map:this.cache};return t.forEach(o=>{var a;n?n=(a=n?.map)===null||a===void 0?void 0:a.get(o):n=void 0}),n?.value&&r&&(n.value[1]=this.cacheCallTimes++),n?.value}get(t){var r;return(r=this.internalGet(t,!0))===null||r===void 0?void 0:r[0]}has(t){return!!this.internalGet(t)}set(t,r){if(!this.has(t)){if(this.size()+1>S.MAX_CACHE_SIZE+S.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((a,c)=>{const[,s]=a;return this.internalGet(c)[1]<s?[c,this.internalGet(c)[1]]:a},[this.keys[0],this.cacheCallTimes]);this.delete(o)}this.keys.push(t)}let n=this.cache;t.forEach((o,a)=>{if(a===t.length-1)n.set(o,{value:[r,this.cacheCallTimes++]});else{const c=n.get(o);c?c.map||(c.map=new Map):n.set(o,{map:new Map}),n=n.get(o).map}})}deleteByPath(t,r){var n;const o=t.get(r[0]);if(r.length===1)return o.map?t.set(r[0],{map:o.map}):t.delete(r[0]),(n=o.value)===null||n===void 0?void 0:n[0];const a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&t.delete(r[0]),a}delete(t){if(this.has(t))return this.keys=this.keys.filter(r=>!ct(r,t)),this.deleteByPath(this.cache,t)}}S.MAX_CACHE_SIZE=20;S.MAX_CACHE_OFFSET=5;function lt(){}let st=lt,ne=0;class Te{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=ne,t.length===0&&st(t.length>0),ne+=1}getDerivativeToken(t){return this.derivatives.reduce((r,n)=>n(t,r),void 0)}}const F=new S;function ut(e){const t=Array.isArray(e)?e:[e];return F.has(t)||F.set(t,new Te(t)),F.get(t)}const ie=new WeakMap;function V(e){let t=ie.get(e)||"";return t||(Object.keys(e).forEach(r=>{const n=e[r];t+=r,n instanceof Te?t+=n.id:n&&typeof n=="object"?t+=V(n):t+=n}),ie.set(e,t)),t}function mt(e,t){return pe(`${t}_${V(e)}`)}const C=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),be="_bAmBoO_";function dt(e,t,r){var n,o;if(ge()){at(e,C);const a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",t?.(a),document.body.appendChild(a);const c=r?r(a):(n=getComputedStyle(a).content)===null||n===void 0?void 0:n.includes(be);return(o=a.parentNode)===null||o===void 0||o.removeChild(a),nt(C),c}return!1}let N;function Ut(){return N===void 0&&(N=dt(`@layer ${C} { .${C} { content: "${be}"!important; } }`,e=>{e.className=C})),N}const ae={},pt="css",y=new Map;function ft(e){y.set(e,(y.get(e)||0)+1)}function _t(e,t){typeof document<"u"&&document.querySelectorAll(`style[${Qe}="${e}"]`).forEach(n=>{var o;n[I]===t&&((o=n.parentNode)===null||o===void 0||o.removeChild(n))})}const gt=0;function ht(e,t){y.set(e,(y.get(e)||0)-1);const r=Array.from(y.keys()),n=r.filter(o=>(y.get(o)||0)<=0);r.length-n.length>gt&&n.forEach(o=>{_t(o,t),y.delete(o)})}const vt=(e,t,r,n)=>{const o=r.getDerivativeToken(e);let a=u(u({},o),t);return n&&(a=n(a)),a};function Et(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me({});const n=K(),o=E(()=>u({},...t.value)),a=E(()=>V(o.value)),c=E(()=>V(r.value.override||ae));return et("token",E(()=>[r.value.salt||"",e.value.id,a.value,c.value]),()=>{const{salt:p="",override:d=ae,formatToken:f,getComputedToken:m}=r.value,_=m?m(o.value,d,e.value):vt(o.value,d,e.value,f),g=mt(_,p);_._tokenKey=g,ft(g);const h=`${pt}-${pe(g)}`;return _._hashId=h,[_,h]},p=>{var d;ht(p[0]._tokenKey,(d=n.value)===null||d===void 0?void 0:d.cache.instanceId)})}const At="4.2.6",Tt=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function bt(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const q={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Q=u(u({},q),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
3
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
4
|
+
'Noto Color Emoji'`,fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});function ye(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:o,colorWarning:a,colorError:c,colorInfo:s,colorPrimary:p,colorBgBase:d,colorTextBase:f}=e,m=r(p),_=r(o),g=r(a),h=r(c),v=r(s),Pe=n(d,f);return u(u({},Pe),{colorPrimaryBg:m[1],colorPrimaryBgHover:m[2],colorPrimaryBorder:m[3],colorPrimaryBorderHover:m[4],colorPrimaryHover:m[5],colorPrimary:m[6],colorPrimaryActive:m[7],colorPrimaryTextHover:m[8],colorPrimaryText:m[9],colorPrimaryTextActive:m[10],colorSuccessBg:_[1],colorSuccessBgHover:_[2],colorSuccessBorder:_[3],colorSuccessBorderHover:_[4],colorSuccessHover:_[4],colorSuccess:_[6],colorSuccessActive:_[7],colorSuccessTextHover:_[8],colorSuccessText:_[9],colorSuccessTextActive:_[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorBgMask:new A("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const yt=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};function xt(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return u({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},yt(n))}const T=(e,t)=>new A(e).setAlpha(t).toRgbString(),P=(e,t)=>new A(e).darken(t).toHexString(),St=e=>{const t=M(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Pt=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:T(n,.88),colorTextSecondary:T(n,.65),colorTextTertiary:T(n,.45),colorTextQuaternary:T(n,.25),colorFill:T(n,.15),colorFillSecondary:T(n,.06),colorFillTertiary:T(n,.04),colorFillQuaternary:T(n,.02),colorBgLayout:P(r,4),colorBgContainer:P(r,0),colorBgElevated:P(r,0),colorBgSpotlight:T(n,.85),colorBorder:P(r,15),colorBorderSecondary:P(r,6)}};function It(e){const t=new Array(10).fill(null).map((r,n)=>{const o=n-1,a=e*Math.pow(2.71828,o/5),c=n>1?Math.floor(a):Math.ceil(a);return Math.floor(c/2)*2});return t[1]=e,t.map(r=>{const n=r+8;return{size:r,lineHeight:n/r}})}const Lt=e=>{const t=It(e),r=t.map(o=>o.size),n=t.map(o=>o.lineHeight);return{fontSizeSM:r[0],fontSize:r[1],fontSizeLG:r[2],fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:n[1],lineHeightLG:n[2],lineHeightSM:n[0],lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function Y(e){const t=Object.keys(q).map(r=>{const n=M(e[r]);return new Array(10).fill(1).reduce((o,a,c)=>(o[`${r}-${c+1}`]=n[c],o),{})}).reduce((r,n)=>(r=u(u({},r),n),r),{});return u(u(u(u(u(u(u({},e),t),ye(e,{generateColorPalettes:St,generateNeutralColorPalettes:Pt})),Lt(e.fontSize)),bt(e)),Tt(e)),xt(e))}function $(e){return e>=0&&e<=255}function O(e,t){const{r,g:n,b:o,a}=new A(e).toRgb();if(a<1)return e;const{r:c,g:s,b:p}=new A(t).toRgb();for(let d=.01;d<=1;d+=.01){const f=Math.round((r-c*(1-d))/d),m=Math.round((n-s*(1-d))/d),_=Math.round((o-p*(1-d))/d);if($(f)&&$(m)&&$(_))return new A({r:f,g:m,b:_,a:Math.round(d*100)/100}).toRgbString()}return new A({r,g:n,b:o,a:1}).toRgbString()}var Ct=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Dt(e){const{override:t}=e,r=Ct(e,["override"]),n=u({},t);Object.keys(Q).forEach(g=>{delete n[g]});const o=u(u({},r),n),a=480,c=576,s=768,p=992,d=1200,f=1600,m=2e3;return u(u(u({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:O(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:O(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:O(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:O(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
5
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
6
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
7
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
8
|
+
`,boxShadowSecondary:`
|
|
9
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
12
|
+
`,boxShadowTertiary:`
|
|
13
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
14
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
15
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
16
|
+
`,screenXS:a,screenXSMin:a,screenXSMax:c-1,screenSM:c,screenSMMin:c,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:p-1,screenLG:p,screenLGMin:p,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:f-1,screenXXL:f,screenXXLMin:f,screenXXLMax:m-1,screenXXXL:m,screenXXXLMin:m,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`
|
|
17
|
+
0 1px 2px -2px ${new A("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
18
|
+
0 3px 6px 0 ${new A("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
19
|
+
0 5px 12px 4px ${new A("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
20
|
+
`,boxShadowDrawerRight:`
|
|
21
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
22
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
23
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
24
|
+
`,boxShadowDrawerLeft:`
|
|
25
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
26
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
27
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
28
|
+
`,boxShadowDrawerUp:`
|
|
29
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
30
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
31
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
32
|
+
`,boxShadowDrawerDown:`
|
|
33
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
34
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
35
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
36
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}const Rt=ut(Y),xe={token:Q,hashed:!0},Se=Symbol("DesignTokenContext"),W=D(),Ot=e=>{ue(Se,e),U(e,()=>{W.value=w(e),Oe(W)},{immediate:!0,deep:!0})},Kt=se({props:{value:de()},setup(e,t){let{slots:r}=t;return Ot(E(()=>e.value)),()=>{var n;return(n=r.default)===null||n===void 0?void 0:n.call(r)}}});function qt(){const e=le(Se,E(()=>W.value||xe)),t=E(()=>`${At}-${e.value.hashed||""}`),r=E(()=>e.value.theme||Rt),n=Et(r,E(()=>[Q,e.value.token]),E(()=>({salt:t.value,override:u({override:e.value.token},e.value.components),formatToken:Dt})));return[r,E(()=>n.value[0]),E(()=>e.value.hashed?n.value[1]:"")]}const b=(e,t)=>new A(e).setAlpha(t).toRgbString(),x=(e,t)=>new A(e).lighten(t).toHexString(),Bt=e=>{const t=M(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},wt=(e,t)=>{const r=e||"#000",n=t||"#fff";return{colorBgBase:r,colorTextBase:n,colorText:b(n,.85),colorTextSecondary:b(n,.65),colorTextTertiary:b(n,.45),colorTextQuaternary:b(n,.25),colorFill:b(n,.18),colorFillSecondary:b(n,.12),colorFillTertiary:b(n,.08),colorFillQuaternary:b(n,.04),colorBgElevated:x(r,12),colorBgContainer:x(r,8),colorBgLayout:x(r,0),colorBgSpotlight:x(r,26),colorBorder:x(r,26),colorBorderSecondary:x(r,19)}},Vt=(e,t)=>{const r=Object.keys(q).map(o=>{const a=M(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((c,s,p)=>(c[`${o}-${p+1}`]=a[p],c),{})}).reduce((o,a)=>(o=u(u({},o),a),o),{}),n=t??Y(e);return u(u(u({},n),r),ye(e,{generateColorPalettes:Bt,generateNeutralColorPalettes:wt}))},B={defaultSeed:xe.token,defaultAlgorithm:Y,darkAlgorithm:Vt},ce="cc_theme",G={dark:{label:"暗黑",icon:"🌑",antd:{algorithm:B.darkAlgorithm,token:{colorPrimary:"#1677ff",colorBgBase:"#141414",colorBgContainer:"#1f1f1f",colorBgElevated:"#2a2a2a",borderRadius:8,fontFamily:'system-ui, -apple-system, "Segoe UI", sans-serif'},components:{Layout:{siderBg:"#1c1c1c",headerBg:"#1c1c1c",bodyBg:"#141414"},Menu:{darkItemBg:"#1c1c1c",darkSubMenuItemBg:"#171717"}}},vars:{"--bg-base":"#141414","--bg-sidebar":"#1c1c1c","--bg-header":"#1c1c1c","--bg-card":"#1f1f1f","--bg-card-hover":"#262626","--border-color":"#252525","--border-subtle":"#1e1e1e","--text-primary":"#e0e0e0","--text-secondary":"#888","--text-muted":"#444","--logo-text":"#ffffff","--menu-mode":"dark","--shadow-card":"0 2px 8px rgba(0,0,0,.45)","--group-title":"#3a3a3a"}},light:{label:"亮白",icon:"☀️",antd:{algorithm:B.defaultAlgorithm,token:{colorPrimary:"#1677ff",colorBgBase:"#ffffff",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",borderRadius:8,fontFamily:'system-ui, -apple-system, "Segoe UI", sans-serif'},components:{Layout:{siderBg:"#ffffff",headerBg:"#ffffff",bodyBg:"#f4f6fb"},Menu:{itemBg:"#ffffff"}}},vars:{"--bg-base":"#f4f6fb","--bg-sidebar":"#ffffff","--bg-header":"#ffffff","--bg-card":"#ffffff","--bg-card-hover":"#f0f4ff","--border-color":"#e8edf5","--border-subtle":"#f0f0f0","--text-primary":"#1a1a2e","--text-secondary":"#5a6474","--text-muted":"#b0b8c8","--logo-text":"#1a1a2e","--menu-mode":"light","--shadow-card":"0 2px 12px rgba(0,0,0,.07)","--group-title":"#aab0bc"}},blue:{label:"深蓝",icon:"🌊",antd:{algorithm:B.darkAlgorithm,token:{colorPrimary:"#2f80ed",colorBgBase:"#0d1117",colorBgContainer:"#161b22",colorBgElevated:"#1c2230",borderRadius:8,fontFamily:'system-ui, -apple-system, "Segoe UI", sans-serif'},components:{Layout:{siderBg:"#0f1923",headerBg:"#0f1923",bodyBg:"#0d1117"},Menu:{darkItemBg:"#0f1923",darkSubMenuItemBg:"#0b1520"}}},vars:{"--bg-base":"#0d1117","--bg-sidebar":"#0f1923","--bg-header":"#0f1923","--bg-card":"#161b22","--bg-card-hover":"#1c2230","--border-color":"#21303f","--border-subtle":"#182030","--text-primary":"#c9d8ef","--text-secondary":"#6e8caa","--text-muted":"#2d4060","--logo-text":"#e0eeff","--menu-mode":"dark","--shadow-card":"0 2px 8px rgba(0,40,80,.5)","--group-title":"#2d4060"}},green:{label:"翠绿",icon:"🌿",antd:{algorithm:B.darkAlgorithm,token:{colorPrimary:"#29a270",colorBgBase:"#0a1a12",colorBgContainer:"#0f2318",colorBgElevated:"#152e20",borderRadius:8,fontFamily:'system-ui, -apple-system, "Segoe UI", sans-serif'},components:{Layout:{siderBg:"#0c1e14",headerBg:"#0c1e14",bodyBg:"#0a1a12"},Menu:{darkItemBg:"#0c1e14",darkSubMenuItemBg:"#091810"}}},vars:{"--bg-base":"#0a1a12","--bg-sidebar":"#0c1e14","--bg-header":"#0c1e14","--bg-card":"#0f2318","--bg-card-hover":"#152e20","--border-color":"#1a3828","--border-subtle":"#122a1c","--text-primary":"#c0e8c8","--text-secondary":"#5a9a6a","--text-muted":"#1e4028","--logo-text":"#d8f0e0","--menu-mode":"dark","--shadow-card":"0 2px 8px rgba(0,40,20,.5)","--group-title":"#1e4028"}}},Mt=Be("theme",()=>{const e=me(localStorage.getItem(ce)||"light"),t=E(()=>G[e.value]||G.dark),r=E(()=>t.value.antd),n=E(()=>e.value!=="light");function o(){const s=t.value.vars,p=document.documentElement;for(const[d,f]of Object.entries(s))p.style.setProperty(d,f);p.setAttribute("data-theme",e.value)}function a(s){G[s]&&(e.value=s,localStorage.setItem(ce,s),o())}function c(){o()}return{current:e,config:t,antdTheme:r,isDark:n,setTheme:a,init:c}}),kt={__name:"App",setup(e){const t=Mt();return we(()=>t.init()),(r,n)=>{const o=J("router-view"),a=J("a-config-provider");return Me(),Ve(a,{theme:w(t).antdTheme},{default:ke(()=>[He(o)]),_:1},8,["theme"])}}};function l(e,t=r=>r.default){return ze({suspensible:!1,loader:()=>e().then(r=>t(r))})}const Ht={AAlert:l(()=>i(()=>import("./index-B6JARzH-.js"),__vite__mapDeps([116,25,1,4,29,26,100]),import.meta.url)),ABadge:l(()=>i(()=>import("./index--eBMlDjO.js"),__vite__mapDeps([117,25,1,4,29,100,26,27,118,119]),import.meta.url)),AButton:l(()=>i(()=>import("./index-TOigBSzr.js").then(e=>e.i),__vite__mapDeps([87,25,1,4,88,89,90,86,29,91,92,93,94,95,96,84]),import.meta.url)),ACard:l(()=>i(()=>import("./index-C1uasX17.js"),__vite__mapDeps([120,25,1,4,121,86,81,122,91,92,123,29,85,28,100,89,124,96,26,125,126,127,128,129,130,131,118,98,27,84,132,133,134,135,90,136,137,138,139,140,82,141,142]),import.meta.url)),ACheckbox:l(()=>i(()=>import("./index-E7-XzEfE.js").then(e=>e.i),__vite__mapDeps([143,25,1,4,144,29,84,145,94,27]),import.meta.url)),ACol:l(()=>i(()=>import("./index-69KL83qL.js"),__vite__mapDeps([146,147,25,1,4,148]),import.meta.url)),ACollapse:l(()=>i(()=>import("./index-KZbeEKa2.js"),__vite__mapDeps([149,25,1,4,100,29,131,132,84,91,92]),import.meta.url)),ACollapsePanel:l(()=>i(()=>import("./index-KZbeEKa2.js"),__vite__mapDeps([149,25,1,4,100,29,131,132,84,91,92]),import.meta.url),e=>e.default.Panel||e.CollapsePanel),AConfigProvider:l(()=>i(()=>import("./index-CzGZa5Ow.js").then(e=>e.i),__vite__mapDeps([24,25,1,4,26,27,28,29]),import.meta.url)),ADescriptions:l(()=>i(()=>import("./index-Dbaj1U7z.js"),__vite__mapDeps([150,25,1,4,151,29,100]),import.meta.url)),ADescriptionsItem:l(()=>i(()=>import("./index-Dbaj1U7z.js"),__vite__mapDeps([150,25,1,4,151,29,100]),import.meta.url),e=>e.DescriptionsItem),ADivider:l(()=>i(()=>import("./index-BOlkR4CB.js"),__vite__mapDeps([152,25,1,4]),import.meta.url)),ADropdown:l(()=>i(()=>import("./index-NJzH4w-U.js"),__vite__mapDeps([153,135,25,1,4,29,123,86,85,28,100,89,124,96,26,87,88,90,91,92,93,94,95,84,130,154,27,133,98,82,134]),import.meta.url)),AEmpty:l(()=>i(()=>import("./useConfigInject-DqhngD-R.js").then(e=>e.$),__vite__mapDeps([25,1,4]),import.meta.url)),AForm:l(()=>i(()=>import("./index-q__DPgfq.js"),__vite__mapDeps([155,25,1,4,29,123,86,85,28,100,89,124,96,26,137,138,141,156,151,157,97,148,92,125,158,147,129,130,131,118,98,27,84,132,145,94]),import.meta.url)),AFormItem:l(()=>i(()=>import("./index-q__DPgfq.js"),__vite__mapDeps([155,25,1,4,29,123,86,85,28,100,89,124,96,26,137,138,141,156,151,157,97,148,92,125,158,147,129,130,131,118,98,27,84,132,145,94]),import.meta.url),e=>e.default.Item||e.FormItem),AInput:l(()=>i(()=>import("./index-BjC8S1t1.js"),__vite__mapDeps([159,25,1,4,145,94,160,82,29,100,161,95,96,162,93,87,88,89,90,86,91,92,84,141,128,124]),import.meta.url)),AInputGroup:l(()=>i(()=>import("./index-BjC8S1t1.js"),__vite__mapDeps([159,25,1,4,145,94,160,82,29,100,161,95,96,162,93,87,88,89,90,86,91,92,84,141,128,124]),import.meta.url),e=>e.default.Group||e.InputGroup),AInputNumber:l(()=>i(()=>import("./index-D5hcqkeW.js"),__vite__mapDeps([163,25,1,4,139,92,86,81,145,94,100,82,29,160,162,93,95,96]),import.meta.url)),AInputPassword:l(()=>i(()=>import("./index-BjC8S1t1.js"),__vite__mapDeps([159,25,1,4,145,94,160,82,29,100,161,95,96,162,93,87,88,89,90,86,91,92,84,141,128,124]),import.meta.url),e=>e.default.Password||e.InputPassword),AInputSearch:l(()=>i(()=>import("./index-BjC8S1t1.js"),__vite__mapDeps([159,25,1,4,145,94,160,82,29,100,161,95,96,162,93,87,88,89,90,86,91,92,84,141,128,124]),import.meta.url),e=>e.default.Search||e.InputSearch),ALayout:l(()=>i(()=>import("./index-B0IQIuHE.js"),__vite__mapDeps([164,25,1,4,126,29,84,119]),import.meta.url)),ALayoutContent:l(()=>i(()=>import("./index-B0IQIuHE.js"),__vite__mapDeps([164,25,1,4,126,29,84,119]),import.meta.url),e=>e.LayoutContent||e.default.Content),ALayoutHeader:l(()=>i(()=>import("./index-B0IQIuHE.js"),__vite__mapDeps([164,25,1,4,126,29,84,119]),import.meta.url),e=>e.LayoutHeader||e.default.Header),ALayoutSider:l(()=>i(()=>import("./index-B0IQIuHE.js"),__vite__mapDeps([164,25,1,4,126,29,84,119]),import.meta.url),e=>e.LayoutSider||e.default.Sider),AList:l(()=>i(()=>import("./index-BRlYu6_d.js"),__vite__mapDeps([165,25,1,4,166,29,84,27,167,168,123,86,85,28,100,89,124,96,26,81,161,83,127,128,139,82,140,90,145,94,160,95,154,133,93,151,162,131,156,157,97,148,147]),import.meta.url)),AListItem:l(()=>i(()=>import("./index-BRlYu6_d.js"),__vite__mapDeps([165,25,1,4,166,29,84,27,167,168,123,86,85,28,100,89,124,96,26,81,161,83,127,128,139,82,140,90,145,94,160,95,154,133,93,151,162,131,156,157,97,148,147]),import.meta.url),e=>e.default.Item||e.Item),AMenu:l(()=>i(()=>import("./index-4I01hpiN.js"),__vite__mapDeps([122,25,1,4,91,92,123,29,86,85,28,100,89,124,96,26,125,126,127,128,129,130,131,118,98,27,84,81,132,133,134]),import.meta.url)),AMenuDivider:l(()=>i(()=>import("./index-4I01hpiN.js"),__vite__mapDeps([122,25,1,4,91,92,123,29,86,85,28,100,89,124,96,26,125,126,127,128,129,130,131,118,98,27,84,81,132,133,134]),import.meta.url),e=>e.default.Divider||e.Divider),AMenuItem:l(()=>i(()=>import("./index-4I01hpiN.js"),__vite__mapDeps([122,25,1,4,91,92,123,29,86,85,28,100,89,124,96,26,125,126,127,128,129,130,131,118,98,27,84,81,132,133,134]),import.meta.url),e=>e.default.Item||e.Item),AMenuItemGroup:l(()=>i(()=>import("./index-4I01hpiN.js"),__vite__mapDeps([122,25,1,4,91,92,123,29,86,85,28,100,89,124,96,26,125,126,127,128,129,130,131,118,98,27,84,81,132,133,134]),import.meta.url),e=>e.default.ItemGroup||e.ItemGroup),AModal:l(()=>i(()=>import("./index-ThYPc1ub.js"),__vite__mapDeps([80,25,1,4,81,82,83,84,26,29,85,28,86,87,88,89,90,91,92,93,94,95,96,97,27,98,99,24,100]),import.meta.url)),APopconfirm:l(()=>i(()=>import("./index-D7VXIYiM.js"),__vite__mapDeps([169,25,1,4,129,29,123,86,85,28,100,89,124,96,26,130,131,118,98,27,84,82,87,88,90,91,92,93,94,95,140,81,99]),import.meta.url)),AProgress:l(()=>i(()=>import("./index-d3aFQf7u.js"),__vite__mapDeps([170,25,1,4,84,91,92,136,129,29,123,86,85,28,100,89,124,96,26,130,131,118,98,27]),import.meta.url)),ARadioButton:l(()=>i(()=>import("./index-cqU5_E3h.js"),__vite__mapDeps([171,25,1,4,29,144,84,145,94,82,27]),import.meta.url),e=>e.default.Button||e.RadioButton),ARadioGroup:l(()=>i(()=>import("./index-cqU5_E3h.js"),__vite__mapDeps([171,25,1,4,29,144,84,145,94,82,27]),import.meta.url),e=>e.default.Group||e.RadioGroup),ARow:l(()=>i(()=>import("./index-Cps5gHTC.js"),__vite__mapDeps([172,156,25,1,4,151,157,97,148]),import.meta.url)),ASelect:l(()=>i(()=>import("./index-DzKYMmMu.js").then(e=>e.i),__vite__mapDeps([168,25,1,4,123,29,86,85,28,100,89,124,96,26,81,161,83,127,128,139,84,82,140,90,145,94,160,95,154,27,133,93]),import.meta.url)),ASelectOption:l(()=>i(()=>import("./index-DzKYMmMu.js").then(e=>e.i),__vite__mapDeps([168,25,1,4,123,29,86,85,28,100,89,124,96,26,81,161,83,127,128,139,84,82,140,90,145,94,160,95,154,27,133,93]),import.meta.url),e=>e.default.Option||e.Option),ASlider:l(()=>i(()=>import("./index-CDWpDZgD.js"),__vite__mapDeps([173,25,1,4,29,123,86,85,28,100,89,124,96,26,81,84,129,130,131,118,98,27,145,94]),import.meta.url)),ASpace:l(()=>i(()=>import("./index-UmTF1KQy.js"),__vite__mapDeps([174,25,1,4,29,157,97,95,94,96]),import.meta.url)),ASpin:l(()=>i(()=>import("./index-CYQVfA_R.js"),__vite__mapDeps([166,25,1,4,29,84,27]),import.meta.url)),AStatistic:l(()=>i(()=>import("./index-4wtT_zvC.js"),__vite__mapDeps([175,25,1,4,84,142,27,82]),import.meta.url)),ASwitch:l(()=>i(()=>import("./index-C8wxMp_Z.js"),__vite__mapDeps([176,25,1,4,29,81,88,89,90,86,145,94,82]),import.meta.url)),ATable:l(()=>i(()=>import("./index-BaHFTtgz.js"),__vite__mapDeps([177,25,1,4,97,167,168,123,29,86,85,28,100,89,124,96,26,81,161,83,127,128,139,84,82,140,90,145,94,160,95,154,27,133,93,151,162,131,132,91,92,166,143,144,153,135,87,88,130,98,134,122,125,126,129,118,171,159,141,158,138]),import.meta.url)),ATabPane:l(()=>i(()=>import("./index-DiZ3aYcD.js"),__vite__mapDeps([121,25,1,4,86,81,122,91,92,123,29,85,28,100,89,124,96,26,125,126,127,128,129,130,131,118,98,27,84,132,133,134,135,90,136,137,138,139,140,82]),import.meta.url),e=>e.default.TabPane||e.TabPane),ATabs:l(()=>i(()=>import("./index-DiZ3aYcD.js"),__vite__mapDeps([121,25,1,4,86,81,122,91,92,123,29,85,28,100,89,124,96,26,125,126,127,128,129,130,131,118,98,27,84,132,133,134,135,90,136,137,138,139,140,82]),import.meta.url)),ATag:l(()=>i(()=>import("./index-DUg23xvw.js"),__vite__mapDeps([178,25,1,4,29,88,89,90,86,118]),import.meta.url)),ATextarea:l(()=>i(()=>import("./index-BjC8S1t1.js"),__vite__mapDeps([159,25,1,4,145,94,160,82,29,100,161,95,96,162,93,87,88,89,90,86,91,92,84,141,128,124]),import.meta.url),e=>e.default.TextArea||e.Textarea),ATooltip:l(()=>i(()=>import("./index-C8LBTJ8l.js").then(e=>e.i),__vite__mapDeps([129,29,123,86,25,1,4,85,28,100,89,124,96,26,130,131,118,98,27,84]),import.meta.url))};function zt(e){Object.entries(Ht).forEach(([t,r])=>{e.component(t,r)})}const Xt=new URL(""+new URL("favicon-FSU2gSy6.ico",import.meta.url).href,import.meta.url).href;let L=document.querySelector('link[rel="icon"]');L||(L=document.createElement("link"),L.rel="icon",document.head.appendChild(L));L.href=Xt;const H=Xe(kt);H.use(Fe());H.use(je);zt(H);H.mount("#app");export{X as A,I as C,Kt as D,G as T,u as _,st as a,at as b,ge as c,qt as d,xe as e,ut as f,K as g,et as h,Qe as i,Ut as j,Ue as k,tt as l,pe as m,z as n,de as o,Gt as p,jt as q,nt as r,Q as s,$t as t,Mt as u,Wt as v,We as w,ee as x,te as y,Ke as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as k,c as ue,z as qe,t as Tt,r as Je,B as Ge,m as be,d as Mt,g as vn,u as gn,v as hn,X as bn}from"./useConfigInject-BfCzqqat.js";import{_ as S,c as Sn,q as yn,y as Te,n as wn,z as vt}from"./index-MzZGrA5i.js";import{T as In}from"./Trigger-CoAAYYBt.js";import{P as R}from"./index-U4Zd5IK6.js";import{d as fe,c as T,j as V,r as me,W as Cn,a2 as Et,i as Ne,f as Ce,l as Se,w as ne,J as Xe,H as Ee,s as X,o as Pe,p as Ze,R as xn,a as xe,Q as $n,M as On,U as ke,n as Me,_ as Tn,a4 as ge}from"./vendor-BVetwVfk.js";import{K as _}from"./KeyCode-D63Tfrq7.js";import{c as Ft}from"./vnode-kNIbBJfF.js";import{B as Mn}from"./BaseInput-BZ74CVZs.js";import{p as et}from"./pickAttrs-B4jAAmTy.js";import{O as En}from"./Overflow-_g4V_Ju_.js";import{i as Fn}from"./isMobile--2fOlCHx.js";import{i as tt}from"./initDefaultProps-Dl1s0-DH.js";import{R as Pn}from"./index-DVRzAjWk.js";import{w as ve}from"./raf-Deuc0E8-.js";import{s as he}from"./motion-Bo_wsn2G.js";import{o as Le}from"./omit-D_kxdSL6.js";import{u as gt}from"./useMergedState-DbHXwBgv.js";import{u as ht}from"./useState-DoAhV80c.js";import{ap as Rn,H as Dn,a9 as Vn,ad as Hn,Z as Nn,J as Ln}from"./icons-Jk30QO6-.js";import{u as Bn,F as _n}from"./FormItemContext-B5ayZ9zK.js";import{b as An,c as zn}from"./transition-6LOZvE9a.js";import{g as Wn,a as Kn}from"./statusUtils-BdGzd5fx.js";import{u as jn}from"./Compact-C8l08DTy.js";import{i as bt}from"./move-DkSBFThb.js";import{s as Un,a as Yn,b as Gn,c as Xn,i as St}from"./slide-DSKBMx3Q.js";import{g as Qn}from"./compact-item-CrBQCz3V.js";function yt(e,t){const{key:o}=e;let n;return"value"in e&&({value:n}=e),o??(n!==void 0?n:`rc-index-key-${t}`)}function Pt(e,t){const{label:o,value:n,options:l}=e||{};return{label:o||(t?"children":"label"),value:n||"value",options:l||"options"}}function qn(e){let{fieldNames:t,childrenAsData:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=[],{label:l,value:i,options:d}=Pt(t,!1);function a(f,s){f.forEach(r=>{const v=r[l];if(s||!(d in r)){const b=r[i];n.push({key:yt(r,n.length),groupOption:s,data:r,label:v,value:b})}else{let b=v;b===void 0&&o&&(b=r.label),n.push({key:yt(r,n.length),group:!0,data:r,label:b}),a(r[d],!0)}})}return a(e,!1),n}function Qe(e){const t=S({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function Jn(e,t){if(!t||!t.length)return null;let o=!1;function n(i,d){let[a,...f]=d;if(!a)return[i];const s=i.split(a);return o=o||s.length>1,s.reduce((r,v)=>[...r,...n(v,f)],[]).filter(r=>r)}const l=n(e,t);return o?l:null}var Zn=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const kn=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},eo=fe({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:R.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:R.oneOfType([Number,Boolean]).def(!0),popupElement:R.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:o,attrs:n,expose:l}=t;const i=V(()=>{const{dropdownMatchSelectWidth:a}=e;return kn(a)}),d=me();return l({getPopupElement:()=>d.value}),()=>{const a=S(S({},e),n),{empty:f=!1}=a,s=Zn(a,["empty"]),{visible:r,dropdownAlign:v,prefixCls:b,popupElement:$,dropdownClassName:h,dropdownStyle:y,direction:w="ltr",placement:C,dropdownMatchSelectWidth:D,containerWidth:N,dropdownRender:E,animation:g,transitionName:P,getPopupContainer:x,getTriggerDOMNode:F,onPopupVisibleChange:L,onPopupMouseEnter:A,onPopupFocusin:B,onPopupFocusout:U}=s,G=`${b}-dropdown`;let W=$;E&&(W=E({menuNode:$,props:e}));const Y=g?`${G}-${g}`:P,z=S({minWidth:`${N}px`},y);return typeof D=="number"?z.width=`${D}px`:D&&(z.width=`${N}px`),T(In,k(k({},e),{},{showAction:L?["click"]:[],hideAction:L?["click"]:[],popupPlacement:C||(w==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:i.value,prefixCls:G,popupTransitionName:Y,popupAlign:v,popupVisible:r,getPopupContainer:x,popupClassName:ue(h,{[`${G}-empty`]:f}),popupStyle:z,getTriggerDOMNode:F,onPopupVisibleChange:L}),{default:o.default,popup:()=>T("div",{ref:d,onMouseenter:A,onFocusin:B,onFocusout:U},[W])})}}}),we=(e,t)=>{let{slots:o}=t;var n;const{class:l,customizeIcon:i,customizeIconProps:d,onMousedown:a,onClick:f}=e;let s;return typeof i=="function"?s=i(d):s=Cn(i)?Et(i):i,T("span",{class:l,onMousedown:r=>{r.preventDefault(),a&&a(r)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:f,"aria-hidden":!0},[s!==void 0?s:T("span",{class:l.split(/\s+/).map(r=>`${r}-icon`)},[(n=o.default)===null||n===void 0?void 0:n.call(o)])])};we.inheritAttrs=!1;we.displayName="TransBtn";we.props={class:String,customizeIcon:R.any,customizeIconProps:R.any,onMousedown:Function,onClick:Function};const to={inputRef:R.any,prefixCls:String,id:String,inputElement:R.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:R.oneOfType([R.number,R.string]),attrs:R.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},Rt=fe({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:to,setup(e){let t=null;const o=Ne("VCSelectContainerEvent");return()=>{var n;const{prefixCls:l,id:i,inputElement:d,disabled:a,tabindex:f,autofocus:s,autocomplete:r,editable:v,activeDescendantId:b,value:$,onKeydown:h,onMousedown:y,onChange:w,onPaste:C,onCompositionstart:D,onCompositionend:N,onFocus:E,onBlur:g,open:P,inputRef:x,attrs:F}=e;let L=d||T(Mn,null,null);const A=L.props||{},{onKeydown:B,onInput:U,onFocus:G,onBlur:W,onMousedown:Y,onCompositionstart:z,onCompositionend:oe,style:ie}=A;return L=Ft(L,S(S(S(S(S({type:"search"},A),{id:i,ref:x,disabled:a,tabindex:f,lazy:!1,autocomplete:r||"off",autofocus:s,class:ue(`${l}-selection-search-input`,(n=L?.props)===null||n===void 0?void 0:n.class),role:"combobox","aria-expanded":P,"aria-haspopup":"listbox","aria-owns":`${i}_list`,"aria-autocomplete":"list","aria-controls":`${i}_list`,"aria-activedescendant":b}),F),{value:v?$:"",readonly:!v,unselectable:v?null:"on",style:S(S({},ie),{opacity:v?null:0}),onKeydown:p=>{h(p),B&&B(p)},onMousedown:p=>{y(p),Y&&Y(p)},onInput:p=>{w(p),U&&U(p)},onCompositionstart(p){D(p),z&&z(p)},onCompositionend(p){N(p),oe&&oe(p)},onPaste:C,onFocus:function(){clearTimeout(t),G&&G(arguments.length<=0?void 0:arguments[0]),E&&E(arguments.length<=0?void 0:arguments[0]),o?.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var p=arguments.length,H=new Array(p),O=0;O<p;O++)H[O]=arguments[O];t=setTimeout(()=>{W&&W(H[0]),g&&g(H[0]),o?.blur(H[0])},100)}}),L.type==="textarea"?{}:{type:"search"}),!0,!0),L}}}),no=Symbol("TreeSelectLegacyContextPropsKey");function nt(){return Ne(no,{})}const oo={id:String,prefixCls:String,values:R.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:R.any,placeholder:R.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:R.oneOfType([R.number,R.string]),compositionStatus:Boolean,removeIcon:R.any,choiceTransitionName:String,maxTagCount:R.oneOfType([R.number,R.string]),maxTagTextLength:Number,maxTagPlaceholder:R.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},wt=e=>{e.preventDefault(),e.stopPropagation()},lo=fe({name:"MultipleSelectSelector",inheritAttrs:!1,props:oo,setup(e){const t=X(),o=X(0),n=X(!1),l=nt(),i=V(()=>`${e.prefixCls}-selection`),d=V(()=>e.open||e.mode==="tags"?e.searchValue:""),a=V(()=>e.mode==="tags"||e.showSearch&&(e.open||n.value)),f=me("");Ce(()=>{f.value=d.value}),Se(()=>{ne(f,()=>{o.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function s(h,y,w,C,D){return T("span",{class:ue(`${i.value}-item`,{[`${i.value}-item-disabled`]:w}),title:typeof h=="string"||typeof h=="number"?h.toString():void 0},[T("span",{class:`${i.value}-item-content`},[y]),C&&T(we,{class:`${i.value}-item-remove`,onMousedown:wt,onClick:D,customizeIcon:e.removeIcon},{default:()=>[Xe("×")]})])}function r(h,y,w,C,D,N){var E;const g=x=>{wt(x),e.onToggleOpen(!open)};let P=N;return l.keyEntities&&(P=((E=l.keyEntities[h])===null||E===void 0?void 0:E.node)||{}),T("span",{key:h,onMousedown:g},[e.tagRender({label:y,value:h,disabled:w,closable:C,onClose:D,option:P})])}function v(h){const{disabled:y,label:w,value:C,option:D}=h,N=!e.disabled&&!y;let E=w;if(typeof e.maxTagTextLength=="number"&&(typeof w=="string"||typeof w=="number")){const P=String(E);P.length>e.maxTagTextLength&&(E=`${P.slice(0,e.maxTagTextLength)}...`)}const g=P=>{var x;P&&P.stopPropagation(),(x=e.onRemove)===null||x===void 0||x.call(e,h)};return typeof e.tagRender=="function"?r(C,E,y,N,g,D):s(w,E,y,N,g)}function b(h){const{maxTagPlaceholder:y=C=>`+ ${C.length} ...`}=e,w=typeof y=="function"?y(h):y;return s(w,w,!1)}const $=h=>{const y=h.target.composing;f.value=h.target.value,y||e.onInputChange(h)};return()=>{const{id:h,prefixCls:y,values:w,open:C,inputRef:D,placeholder:N,disabled:E,autofocus:g,autocomplete:P,activeDescendantId:x,tabindex:F,compositionStatus:L,onInputPaste:A,onInputKeyDown:B,onInputMouseDown:U,onInputCompositionStart:G,onInputCompositionEnd:W}=e,Y=T("div",{class:`${i.value}-search`,style:{width:o.value+"px"},key:"input"},[T(Rt,{inputRef:D,open:C,prefixCls:y,id:h,inputElement:null,disabled:E,autofocus:g,autocomplete:P,editable:a.value,activeDescendantId:x,value:f.value,onKeydown:B,onMousedown:U,onChange:$,onPaste:A,onCompositionstart:G,onCompositionend:W,tabindex:F,attrs:et(e,!0),onFocus:()=>n.value=!0,onBlur:()=>n.value=!1},null),T("span",{ref:t,class:`${i.value}-search-mirror`,"aria-hidden":!0},[f.value,Xe(" ")])]),z=T(En,{prefixCls:`${i.value}-overflow`,data:w,renderItem:v,renderRest:b,suffix:Y,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return T(Ee,null,[z,!w.length&&!d.value&&!L&&T("span",{class:`${i.value}-placeholder`},[N])])}}}),io={inputElement:R.any,id:String,prefixCls:String,values:R.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:R.any,placeholder:R.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:R.oneOfType([R.number,R.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},ot=fe({name:"SingleSelector",setup(e){const t=X(!1),o=V(()=>e.mode==="combobox"),n=V(()=>o.value||e.showSearch),l=V(()=>{let r=e.searchValue||"";return o.value&&e.activeValue&&!t.value&&(r=e.activeValue),r}),i=nt();ne([o,()=>e.activeValue],()=>{o.value&&(t.value=!1)},{immediate:!0});const d=V(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!l.value||e.compositionStatus),a=V(()=>{const r=e.values[0];return r&&(typeof r.label=="string"||typeof r.label=="number")?r.label.toString():void 0}),f=()=>{if(e.values[0])return null;const r=d.value?{visibility:"hidden"}:void 0;return T("span",{class:`${e.prefixCls}-selection-placeholder`,style:r},[e.placeholder])},s=r=>{r.target.composing||(t.value=!0,e.onInputChange(r))};return()=>{var r,v,b,$;const{inputElement:h,prefixCls:y,id:w,values:C,inputRef:D,disabled:N,autofocus:E,autocomplete:g,activeDescendantId:P,open:x,tabindex:F,optionLabelRender:L,onInputKeyDown:A,onInputMouseDown:B,onInputPaste:U,onInputCompositionStart:G,onInputCompositionEnd:W}=e,Y=C[0];let z=null;if(Y&&i.customSlots){const oe=(r=Y.key)!==null&&r!==void 0?r:Y.value,ie=((v=i.keyEntities[oe])===null||v===void 0?void 0:v.node)||{};z=i.customSlots[(b=ie.slots)===null||b===void 0?void 0:b.title]||i.customSlots.title||Y.label,typeof z=="function"&&(z=z(ie))}else z=L&&Y?L(Y.option):Y?.label;return T(Ee,null,[T("span",{class:`${y}-selection-search`},[T(Rt,{inputRef:D,prefixCls:y,id:w,open:x,inputElement:h,disabled:N,autofocus:E,autocomplete:g,editable:n.value,activeDescendantId:P,value:l.value,onKeydown:A,onMousedown:B,onChange:s,onPaste:U,onCompositionstart:G,onCompositionend:W,tabindex:F,attrs:et(e,!0)},null)]),!o.value&&Y&&!d.value&&T("span",{class:`${y}-selection-item`,title:a.value},[T(Ee,{key:($=Y.key)!==null&&$!==void 0?$:Y.value},[z])]),f()])}}});ot.props=io;ot.inheritAttrs=!1;function ao(e){return![_.ESC,_.SHIFT,_.BACKSPACE,_.TAB,_.WIN_KEY,_.ALT,_.META,_.WIN_KEY_RIGHT,_.CTRL,_.SEMICOLON,_.EQUALS,_.CAPS_LOCK,_.CONTEXT_MENU,_.F1,_.F2,_.F3,_.F4,_.F5,_.F6,_.F7,_.F8,_.F9,_.F10,_.F11,_.F12].includes(e)}function Dt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,o;Pe(()=>{clearTimeout(o)});function n(l){(l||t===null)&&(t=l),clearTimeout(o),o=setTimeout(()=>{t=null},e)}return[()=>t,n]}function Fe(){const e=t=>{e.current=t};return e}const ro=fe({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:R.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:R.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:R.oneOfType([R.number,R.string]),disabled:{type:Boolean,default:void 0},placeholder:R.any,removeIcon:R.any,maxTagCount:R.oneOfType([R.number,R.string]),maxTagTextLength:Number,maxTagPlaceholder:R.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:o}=t;const n=Fe(),l=me(!1),[i,d]=Dt(0),a=C=>{const{which:D}=C;(D===_.UP||D===_.DOWN)&&C.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(C),D===_.ENTER&&e.mode==="tags"&&!l.value&&!e.open&&e.onSearchSubmit(C.target.value),ao(D)&&e.onToggleOpen(!0)},f=()=>{d(!0)};let s=null;const r=C=>{e.onSearch(C,!0,l.value)!==!1&&e.onToggleOpen(!0)},v=()=>{l.value=!0},b=C=>{l.value=!1,e.mode!=="combobox"&&r(C.target.value)},$=C=>{let{target:{value:D}}=C;if(e.tokenWithEnter&&s&&/[\r\n]/.test(s)){const N=s.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(N,s)}s=null,r(D)},h=C=>{const{clipboardData:D}=C;s=D.getData("text")},y=C=>{let{target:D}=C;D!==n.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{n.current.focus()}):n.current.focus())},w=C=>{const D=i();C.target!==n.current&&!D&&C.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!D)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return o({focus:()=>{n.current.focus()},blur:()=>{n.current.blur()}}),()=>{const{prefixCls:C,domRef:D,mode:N}=e,E={inputRef:n,onInputKeyDown:a,onInputMouseDown:f,onInputChange:$,onInputPaste:h,compositionStatus:l.value,onInputCompositionStart:v,onInputCompositionEnd:b},g=N==="multiple"||N==="tags"?T(lo,k(k({},e),E),null):T(ot,k(k({},e),E),null);return T("div",{ref:D,class:`${C}-selector`,onClick:y,onMousedown:w},[g])}}});function so(e,t,o){function n(l){var i,d,a;let f=l.target;f.shadowRoot&&l.composed&&(f=l.composedPath()[0]||f);const s=[(i=e[0])===null||i===void 0?void 0:i.value,(a=(d=e[1])===null||d===void 0?void 0:d.value)===null||a===void 0?void 0:a.getPopupElement()];t.value&&s.every(r=>r&&!r.contains(f)&&r!==f)&&o(!1)}Se(()=>{window.addEventListener("mousedown",n)}),Pe(()=>{window.removeEventListener("mousedown",n)})}function uo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=X(!1);let o;const n=()=>{clearTimeout(o)};return Se(()=>{n()}),[t,(i,d)=>{n(),o=setTimeout(()=>{t.value=i,d&&d()},e)},n]}const Vt=Symbol("BaseSelectContextKey");function co(e){return Ze(Vt,e)}function fo(){return Ne(Vt,{})}function Ht(e){if(!xn(e))return xe(e);const t=new Proxy({},{get(o,n,l){return Reflect.get(e.value,n,l)},set(o,n,l){return e.value[n]=l,!0},deleteProperty(o,n){return Reflect.deleteProperty(e.value,n)},has(o,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return xe(t)}var po=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const mo=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],vo=()=>({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:R.any,emptyOptions:Boolean}),Nt=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:R.any,placeholder:R.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:R.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:R.any,clearIcon:R.any,removeIcon:R.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),go=()=>S(S({},vo()),Nt());function Lt(e){return e==="tags"||e==="multiple"}const ho=fe({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:tt(go(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:o,expose:n,slots:l}=t;const i=V(()=>Lt(e.mode)),d=V(()=>e.showSearch!==void 0?e.showSearch:i.value||e.mode==="combobox"),a=X(!1);Se(()=>{a.value=Fn()});const f=nt(),s=X(null),r=Fe(),v=X(null),b=X(null),$=X(null),h=me(!1),[y,w,C]=uo();n({focus:()=>{var u;(u=b.value)===null||u===void 0||u.focus()},blur:()=>{var u;(u=b.value)===null||u===void 0||u.blur()},scrollTo:u=>{var c;return(c=$.value)===null||c===void 0?void 0:c.scrollTo(u)}});const E=V(()=>{var u;if(e.mode!=="combobox")return e.searchValue;const c=(u=e.displayValues[0])===null||u===void 0?void 0:u.value;return typeof c=="string"||typeof c=="number"?String(c):""}),g=e.open!==void 0?e.open:e.defaultOpen,P=X(g),x=X(g),F=u=>{P.value=e.open!==void 0?e.open:u,x.value=P.value};ne(()=>e.open,()=>{F(e.open)});const L=V(()=>!e.notFoundContent&&e.emptyOptions);Ce(()=>{x.value=P.value,(e.disabled||L.value&&x.value&&e.mode==="combobox")&&(x.value=!1)});const A=V(()=>L.value?!1:x.value),B=u=>{const c=u!==void 0?u:!x.value;x.value!==c&&!e.disabled&&(F(c),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(c),!c&&K.value&&(K.value=!1,w(!1,()=>{H.value=!1,h.value=!1})))},U=V(()=>(e.tokenSeparators||[]).some(u=>[`
|
|
1
|
+
import{_ as k,c as ue,z as qe,t as Tt,r as Je,B as Ge,m as be,d as Mt,g as vn,u as gn,v as hn,X as bn}from"./useConfigInject-DqhngD-R.js";import{_ as S,c as Sn,q as yn,y as Te,n as wn,z as vt}from"./index-DlSUq1W3.js";import{T as In}from"./Trigger-DmhLeltH.js";import{P as R}from"./index-U4Zd5IK6.js";import{d as fe,c as T,j as V,r as me,W as Cn,a2 as Et,i as Ne,f as Ce,l as Se,w as ne,J as Xe,H as Ee,s as X,o as Pe,p as Ze,R as xn,a as xe,Q as $n,M as On,U as ke,n as Me,_ as Tn,a4 as ge}from"./vendor-BVetwVfk.js";import{K as _}from"./KeyCode-D63Tfrq7.js";import{c as Ft}from"./vnode-B2xg11HE.js";import{B as Mn}from"./BaseInput-BAmfd4Ir.js";import{p as et}from"./pickAttrs-KtgV4VKB.js";import{O as En}from"./Overflow-BYKMeaWJ.js";import{i as Fn}from"./isMobile--2fOlCHx.js";import{i as tt}from"./initDefaultProps-BcWs5QbR.js";import{R as Pn}from"./index-BWtxplKf.js";import{w as ve}from"./raf-Deuc0E8-.js";import{s as he}from"./motion-CrLibvjP.js";import{o as Le}from"./omit-DpIEkCg5.js";import{u as gt}from"./useMergedState-DbHXwBgv.js";import{u as ht}from"./useState-DoAhV80c.js";import{at as Rn,X as Dn,ad as Vn,ah as Hn,a2 as Nn,Y as Ln}from"./icons-srBCpwXl.js";import{u as Bn,F as _n}from"./FormItemContext-B0xgi547.js";import{b as An,c as zn}from"./transition-D2wU6PAY.js";import{g as Wn,a as Kn}from"./statusUtils-CgoYe6s3.js";import{u as jn}from"./Compact-B-UF0szM.js";import{i as bt}from"./move-B5c6-VQr.js";import{s as Un,a as Yn,b as Gn,c as Xn,i as St}from"./slide-hr0X8KAK.js";import{g as Qn}from"./compact-item-CtT5KcXA.js";function yt(e,t){const{key:o}=e;let n;return"value"in e&&({value:n}=e),o??(n!==void 0?n:`rc-index-key-${t}`)}function Pt(e,t){const{label:o,value:n,options:l}=e||{};return{label:o||(t?"children":"label"),value:n||"value",options:l||"options"}}function qn(e){let{fieldNames:t,childrenAsData:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=[],{label:l,value:i,options:d}=Pt(t,!1);function a(f,s){f.forEach(r=>{const v=r[l];if(s||!(d in r)){const b=r[i];n.push({key:yt(r,n.length),groupOption:s,data:r,label:v,value:b})}else{let b=v;b===void 0&&o&&(b=r.label),n.push({key:yt(r,n.length),group:!0,data:r,label:b}),a(r[d],!0)}})}return a(e,!1),n}function Qe(e){const t=S({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function Jn(e,t){if(!t||!t.length)return null;let o=!1;function n(i,d){let[a,...f]=d;if(!a)return[i];const s=i.split(a);return o=o||s.length>1,s.reduce((r,v)=>[...r,...n(v,f)],[]).filter(r=>r)}const l=n(e,t);return o?l:null}var Zn=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const kn=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},eo=fe({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:R.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:R.oneOfType([Number,Boolean]).def(!0),popupElement:R.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:o,attrs:n,expose:l}=t;const i=V(()=>{const{dropdownMatchSelectWidth:a}=e;return kn(a)}),d=me();return l({getPopupElement:()=>d.value}),()=>{const a=S(S({},e),n),{empty:f=!1}=a,s=Zn(a,["empty"]),{visible:r,dropdownAlign:v,prefixCls:b,popupElement:$,dropdownClassName:h,dropdownStyle:y,direction:w="ltr",placement:C,dropdownMatchSelectWidth:D,containerWidth:N,dropdownRender:E,animation:g,transitionName:P,getPopupContainer:x,getTriggerDOMNode:F,onPopupVisibleChange:L,onPopupMouseEnter:A,onPopupFocusin:B,onPopupFocusout:U}=s,G=`${b}-dropdown`;let W=$;E&&(W=E({menuNode:$,props:e}));const Y=g?`${G}-${g}`:P,z=S({minWidth:`${N}px`},y);return typeof D=="number"?z.width=`${D}px`:D&&(z.width=`${N}px`),T(In,k(k({},e),{},{showAction:L?["click"]:[],hideAction:L?["click"]:[],popupPlacement:C||(w==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:i.value,prefixCls:G,popupTransitionName:Y,popupAlign:v,popupVisible:r,getPopupContainer:x,popupClassName:ue(h,{[`${G}-empty`]:f}),popupStyle:z,getTriggerDOMNode:F,onPopupVisibleChange:L}),{default:o.default,popup:()=>T("div",{ref:d,onMouseenter:A,onFocusin:B,onFocusout:U},[W])})}}}),we=(e,t)=>{let{slots:o}=t;var n;const{class:l,customizeIcon:i,customizeIconProps:d,onMousedown:a,onClick:f}=e;let s;return typeof i=="function"?s=i(d):s=Cn(i)?Et(i):i,T("span",{class:l,onMousedown:r=>{r.preventDefault(),a&&a(r)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:f,"aria-hidden":!0},[s!==void 0?s:T("span",{class:l.split(/\s+/).map(r=>`${r}-icon`)},[(n=o.default)===null||n===void 0?void 0:n.call(o)])])};we.inheritAttrs=!1;we.displayName="TransBtn";we.props={class:String,customizeIcon:R.any,customizeIconProps:R.any,onMousedown:Function,onClick:Function};const to={inputRef:R.any,prefixCls:String,id:String,inputElement:R.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:R.oneOfType([R.number,R.string]),attrs:R.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},Rt=fe({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:to,setup(e){let t=null;const o=Ne("VCSelectContainerEvent");return()=>{var n;const{prefixCls:l,id:i,inputElement:d,disabled:a,tabindex:f,autofocus:s,autocomplete:r,editable:v,activeDescendantId:b,value:$,onKeydown:h,onMousedown:y,onChange:w,onPaste:C,onCompositionstart:D,onCompositionend:N,onFocus:E,onBlur:g,open:P,inputRef:x,attrs:F}=e;let L=d||T(Mn,null,null);const A=L.props||{},{onKeydown:B,onInput:U,onFocus:G,onBlur:W,onMousedown:Y,onCompositionstart:z,onCompositionend:oe,style:ie}=A;return L=Ft(L,S(S(S(S(S({type:"search"},A),{id:i,ref:x,disabled:a,tabindex:f,lazy:!1,autocomplete:r||"off",autofocus:s,class:ue(`${l}-selection-search-input`,(n=L?.props)===null||n===void 0?void 0:n.class),role:"combobox","aria-expanded":P,"aria-haspopup":"listbox","aria-owns":`${i}_list`,"aria-autocomplete":"list","aria-controls":`${i}_list`,"aria-activedescendant":b}),F),{value:v?$:"",readonly:!v,unselectable:v?null:"on",style:S(S({},ie),{opacity:v?null:0}),onKeydown:p=>{h(p),B&&B(p)},onMousedown:p=>{y(p),Y&&Y(p)},onInput:p=>{w(p),U&&U(p)},onCompositionstart(p){D(p),z&&z(p)},onCompositionend(p){N(p),oe&&oe(p)},onPaste:C,onFocus:function(){clearTimeout(t),G&&G(arguments.length<=0?void 0:arguments[0]),E&&E(arguments.length<=0?void 0:arguments[0]),o?.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var p=arguments.length,H=new Array(p),O=0;O<p;O++)H[O]=arguments[O];t=setTimeout(()=>{W&&W(H[0]),g&&g(H[0]),o?.blur(H[0])},100)}}),L.type==="textarea"?{}:{type:"search"}),!0,!0),L}}}),no=Symbol("TreeSelectLegacyContextPropsKey");function nt(){return Ne(no,{})}const oo={id:String,prefixCls:String,values:R.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:R.any,placeholder:R.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:R.oneOfType([R.number,R.string]),compositionStatus:Boolean,removeIcon:R.any,choiceTransitionName:String,maxTagCount:R.oneOfType([R.number,R.string]),maxTagTextLength:Number,maxTagPlaceholder:R.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},wt=e=>{e.preventDefault(),e.stopPropagation()},lo=fe({name:"MultipleSelectSelector",inheritAttrs:!1,props:oo,setup(e){const t=X(),o=X(0),n=X(!1),l=nt(),i=V(()=>`${e.prefixCls}-selection`),d=V(()=>e.open||e.mode==="tags"?e.searchValue:""),a=V(()=>e.mode==="tags"||e.showSearch&&(e.open||n.value)),f=me("");Ce(()=>{f.value=d.value}),Se(()=>{ne(f,()=>{o.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function s(h,y,w,C,D){return T("span",{class:ue(`${i.value}-item`,{[`${i.value}-item-disabled`]:w}),title:typeof h=="string"||typeof h=="number"?h.toString():void 0},[T("span",{class:`${i.value}-item-content`},[y]),C&&T(we,{class:`${i.value}-item-remove`,onMousedown:wt,onClick:D,customizeIcon:e.removeIcon},{default:()=>[Xe("×")]})])}function r(h,y,w,C,D,N){var E;const g=x=>{wt(x),e.onToggleOpen(!open)};let P=N;return l.keyEntities&&(P=((E=l.keyEntities[h])===null||E===void 0?void 0:E.node)||{}),T("span",{key:h,onMousedown:g},[e.tagRender({label:y,value:h,disabled:w,closable:C,onClose:D,option:P})])}function v(h){const{disabled:y,label:w,value:C,option:D}=h,N=!e.disabled&&!y;let E=w;if(typeof e.maxTagTextLength=="number"&&(typeof w=="string"||typeof w=="number")){const P=String(E);P.length>e.maxTagTextLength&&(E=`${P.slice(0,e.maxTagTextLength)}...`)}const g=P=>{var x;P&&P.stopPropagation(),(x=e.onRemove)===null||x===void 0||x.call(e,h)};return typeof e.tagRender=="function"?r(C,E,y,N,g,D):s(w,E,y,N,g)}function b(h){const{maxTagPlaceholder:y=C=>`+ ${C.length} ...`}=e,w=typeof y=="function"?y(h):y;return s(w,w,!1)}const $=h=>{const y=h.target.composing;f.value=h.target.value,y||e.onInputChange(h)};return()=>{const{id:h,prefixCls:y,values:w,open:C,inputRef:D,placeholder:N,disabled:E,autofocus:g,autocomplete:P,activeDescendantId:x,tabindex:F,compositionStatus:L,onInputPaste:A,onInputKeyDown:B,onInputMouseDown:U,onInputCompositionStart:G,onInputCompositionEnd:W}=e,Y=T("div",{class:`${i.value}-search`,style:{width:o.value+"px"},key:"input"},[T(Rt,{inputRef:D,open:C,prefixCls:y,id:h,inputElement:null,disabled:E,autofocus:g,autocomplete:P,editable:a.value,activeDescendantId:x,value:f.value,onKeydown:B,onMousedown:U,onChange:$,onPaste:A,onCompositionstart:G,onCompositionend:W,tabindex:F,attrs:et(e,!0),onFocus:()=>n.value=!0,onBlur:()=>n.value=!1},null),T("span",{ref:t,class:`${i.value}-search-mirror`,"aria-hidden":!0},[f.value,Xe(" ")])]),z=T(En,{prefixCls:`${i.value}-overflow`,data:w,renderItem:v,renderRest:b,suffix:Y,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return T(Ee,null,[z,!w.length&&!d.value&&!L&&T("span",{class:`${i.value}-placeholder`},[N])])}}}),io={inputElement:R.any,id:String,prefixCls:String,values:R.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:R.any,placeholder:R.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:R.oneOfType([R.number,R.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},ot=fe({name:"SingleSelector",setup(e){const t=X(!1),o=V(()=>e.mode==="combobox"),n=V(()=>o.value||e.showSearch),l=V(()=>{let r=e.searchValue||"";return o.value&&e.activeValue&&!t.value&&(r=e.activeValue),r}),i=nt();ne([o,()=>e.activeValue],()=>{o.value&&(t.value=!1)},{immediate:!0});const d=V(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!l.value||e.compositionStatus),a=V(()=>{const r=e.values[0];return r&&(typeof r.label=="string"||typeof r.label=="number")?r.label.toString():void 0}),f=()=>{if(e.values[0])return null;const r=d.value?{visibility:"hidden"}:void 0;return T("span",{class:`${e.prefixCls}-selection-placeholder`,style:r},[e.placeholder])},s=r=>{r.target.composing||(t.value=!0,e.onInputChange(r))};return()=>{var r,v,b,$;const{inputElement:h,prefixCls:y,id:w,values:C,inputRef:D,disabled:N,autofocus:E,autocomplete:g,activeDescendantId:P,open:x,tabindex:F,optionLabelRender:L,onInputKeyDown:A,onInputMouseDown:B,onInputPaste:U,onInputCompositionStart:G,onInputCompositionEnd:W}=e,Y=C[0];let z=null;if(Y&&i.customSlots){const oe=(r=Y.key)!==null&&r!==void 0?r:Y.value,ie=((v=i.keyEntities[oe])===null||v===void 0?void 0:v.node)||{};z=i.customSlots[(b=ie.slots)===null||b===void 0?void 0:b.title]||i.customSlots.title||Y.label,typeof z=="function"&&(z=z(ie))}else z=L&&Y?L(Y.option):Y?.label;return T(Ee,null,[T("span",{class:`${y}-selection-search`},[T(Rt,{inputRef:D,prefixCls:y,id:w,open:x,inputElement:h,disabled:N,autofocus:E,autocomplete:g,editable:n.value,activeDescendantId:P,value:l.value,onKeydown:A,onMousedown:B,onChange:s,onPaste:U,onCompositionstart:G,onCompositionend:W,tabindex:F,attrs:et(e,!0)},null)]),!o.value&&Y&&!d.value&&T("span",{class:`${y}-selection-item`,title:a.value},[T(Ee,{key:($=Y.key)!==null&&$!==void 0?$:Y.value},[z])]),f()])}}});ot.props=io;ot.inheritAttrs=!1;function ao(e){return![_.ESC,_.SHIFT,_.BACKSPACE,_.TAB,_.WIN_KEY,_.ALT,_.META,_.WIN_KEY_RIGHT,_.CTRL,_.SEMICOLON,_.EQUALS,_.CAPS_LOCK,_.CONTEXT_MENU,_.F1,_.F2,_.F3,_.F4,_.F5,_.F6,_.F7,_.F8,_.F9,_.F10,_.F11,_.F12].includes(e)}function Dt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,o;Pe(()=>{clearTimeout(o)});function n(l){(l||t===null)&&(t=l),clearTimeout(o),o=setTimeout(()=>{t=null},e)}return[()=>t,n]}function Fe(){const e=t=>{e.current=t};return e}const ro=fe({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:R.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:R.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:R.oneOfType([R.number,R.string]),disabled:{type:Boolean,default:void 0},placeholder:R.any,removeIcon:R.any,maxTagCount:R.oneOfType([R.number,R.string]),maxTagTextLength:Number,maxTagPlaceholder:R.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:o}=t;const n=Fe(),l=me(!1),[i,d]=Dt(0),a=C=>{const{which:D}=C;(D===_.UP||D===_.DOWN)&&C.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(C),D===_.ENTER&&e.mode==="tags"&&!l.value&&!e.open&&e.onSearchSubmit(C.target.value),ao(D)&&e.onToggleOpen(!0)},f=()=>{d(!0)};let s=null;const r=C=>{e.onSearch(C,!0,l.value)!==!1&&e.onToggleOpen(!0)},v=()=>{l.value=!0},b=C=>{l.value=!1,e.mode!=="combobox"&&r(C.target.value)},$=C=>{let{target:{value:D}}=C;if(e.tokenWithEnter&&s&&/[\r\n]/.test(s)){const N=s.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(N,s)}s=null,r(D)},h=C=>{const{clipboardData:D}=C;s=D.getData("text")},y=C=>{let{target:D}=C;D!==n.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{n.current.focus()}):n.current.focus())},w=C=>{const D=i();C.target!==n.current&&!D&&C.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!D)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return o({focus:()=>{n.current.focus()},blur:()=>{n.current.blur()}}),()=>{const{prefixCls:C,domRef:D,mode:N}=e,E={inputRef:n,onInputKeyDown:a,onInputMouseDown:f,onInputChange:$,onInputPaste:h,compositionStatus:l.value,onInputCompositionStart:v,onInputCompositionEnd:b},g=N==="multiple"||N==="tags"?T(lo,k(k({},e),E),null):T(ot,k(k({},e),E),null);return T("div",{ref:D,class:`${C}-selector`,onClick:y,onMousedown:w},[g])}}});function so(e,t,o){function n(l){var i,d,a;let f=l.target;f.shadowRoot&&l.composed&&(f=l.composedPath()[0]||f);const s=[(i=e[0])===null||i===void 0?void 0:i.value,(a=(d=e[1])===null||d===void 0?void 0:d.value)===null||a===void 0?void 0:a.getPopupElement()];t.value&&s.every(r=>r&&!r.contains(f)&&r!==f)&&o(!1)}Se(()=>{window.addEventListener("mousedown",n)}),Pe(()=>{window.removeEventListener("mousedown",n)})}function uo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=X(!1);let o;const n=()=>{clearTimeout(o)};return Se(()=>{n()}),[t,(i,d)=>{n(),o=setTimeout(()=>{t.value=i,d&&d()},e)},n]}const Vt=Symbol("BaseSelectContextKey");function co(e){return Ze(Vt,e)}function fo(){return Ne(Vt,{})}function Ht(e){if(!xn(e))return xe(e);const t=new Proxy({},{get(o,n,l){return Reflect.get(e.value,n,l)},set(o,n,l){return e.value[n]=l,!0},deleteProperty(o,n){return Reflect.deleteProperty(e.value,n)},has(o,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return xe(t)}var po=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const mo=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],vo=()=>({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:R.any,emptyOptions:Boolean}),Nt=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:R.any,placeholder:R.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:R.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:R.any,clearIcon:R.any,removeIcon:R.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),go=()=>S(S({},vo()),Nt());function Lt(e){return e==="tags"||e==="multiple"}const ho=fe({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:tt(go(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:o,expose:n,slots:l}=t;const i=V(()=>Lt(e.mode)),d=V(()=>e.showSearch!==void 0?e.showSearch:i.value||e.mode==="combobox"),a=X(!1);Se(()=>{a.value=Fn()});const f=nt(),s=X(null),r=Fe(),v=X(null),b=X(null),$=X(null),h=me(!1),[y,w,C]=uo();n({focus:()=>{var u;(u=b.value)===null||u===void 0||u.focus()},blur:()=>{var u;(u=b.value)===null||u===void 0||u.blur()},scrollTo:u=>{var c;return(c=$.value)===null||c===void 0?void 0:c.scrollTo(u)}});const E=V(()=>{var u;if(e.mode!=="combobox")return e.searchValue;const c=(u=e.displayValues[0])===null||u===void 0?void 0:u.value;return typeof c=="string"||typeof c=="number"?String(c):""}),g=e.open!==void 0?e.open:e.defaultOpen,P=X(g),x=X(g),F=u=>{P.value=e.open!==void 0?e.open:u,x.value=P.value};ne(()=>e.open,()=>{F(e.open)});const L=V(()=>!e.notFoundContent&&e.emptyOptions);Ce(()=>{x.value=P.value,(e.disabled||L.value&&x.value&&e.mode==="combobox")&&(x.value=!1)});const A=V(()=>L.value?!1:x.value),B=u=>{const c=u!==void 0?u:!x.value;x.value!==c&&!e.disabled&&(F(c),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(c),!c&&K.value&&(K.value=!1,w(!1,()=>{H.value=!1,h.value=!1})))},U=V(()=>(e.tokenSeparators||[]).some(u=>[`
|
|
2
2
|
`,`\r
|
|
3
3
|
`].includes(u))),G=(u,c,M)=>{var I,j;let q=!0,J=u;(I=e.onActiveValueChange)===null||I===void 0||I.call(e,null);const Z=M?null:Jn(u,e.tokenSeparators);return e.mode!=="combobox"&&Z&&(J="",(j=e.onSearchSplit)===null||j===void 0||j.call(e,Z),B(!1),q=!1),e.onSearch&&E.value!==J&&e.onSearch(J,{source:c?"typing":"effect"}),q},W=u=>{var c;!u||!u.trim()||(c=e.onSearch)===null||c===void 0||c.call(e,u,{source:"submit"})};ne(x,()=>{!x.value&&!i.value&&e.mode!=="combobox"&&G("",!1,!1)},{immediate:!0,flush:"post"}),ne(()=>e.disabled,()=>{P.value&&e.disabled&&F(!1),e.disabled&&!h.value&&w(!1)},{immediate:!0});const[Y,z]=Dt(),oe=function(u){var c;const M=Y(),{which:I}=u;if(I===_.ENTER&&(e.mode!=="combobox"&&u.preventDefault(),x.value||B(!0)),z(!!E.value),I===_.BACKSPACE&&!M&&i.value&&!E.value&&e.displayValues.length){const Z=[...e.displayValues];let Q=null;for(let le=Z.length-1;le>=0;le-=1){const ae=Z[le];if(!ae.disabled){Z.splice(le,1),Q=ae;break}}Q&&e.onDisplayValuesChange(Z,{type:"remove",values:[Q]})}for(var j=arguments.length,q=new Array(j>1?j-1:0),J=1;J<j;J++)q[J-1]=arguments[J];x.value&&$.value&&$.value.onKeydown(u,...q),(c=e.onKeydown)===null||c===void 0||c.call(e,u,...q)},ie=function(u){for(var c=arguments.length,M=new Array(c>1?c-1:0),I=1;I<c;I++)M[I-1]=arguments[I];x.value&&$.value&&$.value.onKeyup(u,...M),e.onKeyup&&e.onKeyup(u,...M)},p=u=>{const c=e.displayValues.filter(M=>M!==u);e.onDisplayValuesChange(c,{type:"remove",values:[u]})},H=X(!1),O=function(){w(!0),e.disabled||(e.onFocus&&!H.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&B(!0)),H.value=!0},K=me(!1),te=function(){if(K.value||(h.value=!0,w(!1,()=>{H.value=!1,h.value=!1,B(!1)}),e.disabled))return;const u=E.value;u&&(e.mode==="tags"?e.onSearch(u,{source:"submit"}):e.mode==="multiple"&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)},re=()=>{K.value=!0},se=()=>{K.value=!1};Ze("VCSelectContainerEvent",{focus:O,blur:te});const ee=[];Se(()=>{ee.forEach(u=>clearTimeout(u)),ee.splice(0,ee.length)}),Pe(()=>{ee.forEach(u=>clearTimeout(u)),ee.splice(0,ee.length)});const ce=function(u){var c,M;const{target:I}=u,j=(c=v.value)===null||c===void 0?void 0:c.getPopupElement();if(j&&j.contains(I)){const Q=setTimeout(()=>{var le;const ae=ee.indexOf(Q);ae!==-1&&ee.splice(ae,1),C(),!a.value&&!j.contains(document.activeElement)&&((le=b.value)===null||le===void 0||le.focus())});ee.push(Q)}for(var q=arguments.length,J=new Array(q>1?q-1:0),Z=1;Z<q;Z++)J[Z-1]=arguments[Z];(M=e.onMousedown)===null||M===void 0||M.call(e,u,...J)},de=X(null),m=()=>{};return Se(()=>{ne(A,()=>{var u;if(A.value){const c=Math.ceil((u=s.value)===null||u===void 0?void 0:u.offsetWidth);de.value!==c&&!Number.isNaN(c)&&(de.value=c)}},{immediate:!0,flush:"post"})}),so([s,v],A,B),co(Ht(S(S({},$n(e)),{open:x,triggerOpen:A,showSearch:d,multiple:i,toggleOpen:B}))),()=>{const u=S(S({},e),o),{prefixCls:c,id:M,open:I,defaultOpen:j,mode:q,showSearch:J,searchValue:Z,onSearch:Q,allowClear:le,clearIcon:ae,showArrow:Re,inputIcon:De,disabled:$e,loading:Ve,getInputElement:at,getPopupContainer:Yt,placement:Gt,animation:Xt,transitionName:Qt,dropdownStyle:qt,dropdownClassName:Jt,dropdownMatchSelectWidth:Zt,dropdownRender:kt,dropdownAlign:en,showAction:il,direction:tn,tokenSeparators:al,tagRender:nn,optionLabelRender:on,onPopupScroll:rl,onDropdownVisibleChange:sl,onFocus:ul,onBlur:cl,onKeyup:dl,onKeydown:fl,onMousedown:pl,onClear:_e,omitDomProps:Ae,getRawInputElement:rt,displayValues:He,onDisplayValuesChange:ln,emptyOptions:an,activeDescendantId:rn,activeValue:sn,OptionList:un}=u,cn=po(u,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),st=q==="combobox"&&at&&at()||null,Oe=typeof rt=="function"&&rt(),ze=S({},cn);let ut;Oe&&(ut=ye=>{B(ye)}),mo.forEach(ye=>{delete ze[ye]}),Ae?.forEach(ye=>{delete ze[ye]});const ct=Re!==void 0?Re:Ve||!i.value&&q!=="combobox";let dt;ct&&(dt=T(we,{class:ue(`${c}-arrow`,{[`${c}-arrow-loading`]:Ve}),customizeIcon:De,customizeIconProps:{loading:Ve,searchValue:E.value,open:x.value,focused:y.value,showSearch:d.value}},null));let ft;const dn=()=>{_e?.(),ln([],{type:"clear",values:He}),G("",!1,!1)};!$e&&le&&(He.length||E.value)&&(ft=T(we,{class:`${c}-clear`,onMousedown:dn,customizeIcon:ae},{default:()=>[Xe("×")]}));const fn=T(un,{ref:$},S(S({},f.customSlots),{option:l.option})),pn=ue(c,o.class,{[`${c}-focused`]:y.value,[`${c}-multiple`]:i.value,[`${c}-single`]:!i.value,[`${c}-allow-clear`]:le,[`${c}-show-arrow`]:ct,[`${c}-disabled`]:$e,[`${c}-loading`]:Ve,[`${c}-open`]:x.value,[`${c}-customize-input`]:st,[`${c}-show-search`]:d.value}),pt=T(eo,{ref:v,disabled:$e,prefixCls:c,visible:A.value,popupElement:fn,containerWidth:de.value,animation:Xt,transitionName:Qt,dropdownStyle:qt,dropdownClassName:Jt,direction:tn,dropdownMatchSelectWidth:Zt,dropdownRender:kt,dropdownAlign:en,placement:Gt,getPopupContainer:Yt,empty:an,getTriggerDOMNode:()=>r.current,onPopupVisibleChange:ut,onPopupMouseEnter:m,onPopupFocusin:re,onPopupFocusout:se},{default:()=>Oe?qe(Oe)&&Ft(Oe,{ref:r},!1,!0):T(ro,k(k({},e),{},{domRef:r,prefixCls:c,inputElement:st,ref:b,id:M,showSearch:d.value,mode:q,activeDescendantId:rn,tagRender:nn,optionLabelRender:on,values:He,open:x.value,onToggleOpen:B,activeValue:sn,searchValue:E.value,onSearch:G,onSearchSubmit:W,onRemove:p,tokenWithEnter:U.value}),null)});let We;return Oe?We=pt:We=T("div",k(k({},ze),{},{class:pn,ref:s,onMousedown:ce,onKeydown:oe,onKeyup:ie}),[y.value&&!x.value&&T("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${He.map(ye=>{let{label:mt,value:mn}=ye;return["number","string"].includes(typeof mt)?mt:mn}).join(", ")}`]),pt,dt,ft]),We}}}),Be=(e,t)=>{let{height:o,offset:n,prefixCls:l,onInnerResize:i}=e,{slots:d}=t;var a;let f={},s={display:"flex",flexDirection:"column"};return n!==void 0&&(f={height:`${o}px`,position:"relative",overflow:"hidden"},s=S(S({},s),{transform:`translateY(${n}px)`,position:"absolute",left:0,right:0,top:0})),T("div",{style:f},[T(Pn,{onResize:r=>{let{offsetHeight:v}=r;v&&i&&i()}},{default:()=>[T("div",{style:s,class:ue({[`${l}-holder-inner`]:l})},[(a=d.default)===null||a===void 0?void 0:a.call(d)])]})])};Be.displayName="Filter";Be.inheritAttrs=!1;Be.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const Bt=(e,t)=>{let{setRef:o}=e,{slots:n}=t;var l;const i=Tt((l=n.default)===null||l===void 0?void 0:l.call(n));return i&&i.length?Et(i[0],{ref:o}):i};Bt.props={setRef:{type:Function,default:()=>{}}};const bo=20;function It(e){return"touches"in e?e.touches[0].pageY:e.pageY}const So=fe({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:Fe(),thumbRef:Fe(),visibleTimeout:null,state:xe({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;(e=this.scrollbarRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onScrollbarTouchStart,he?{passive:!1}:!1),(t=this.thumbRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onMouseDown,he?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,he?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,he?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,he?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,he?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),ve.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;S(this.state,{dragging:!0,pageY:It(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:o,startTop:n}=this.state,{onScroll:l}=this.$props;if(ve.cancel(this.moveRaf),t){const i=It(e)-o,d=n+i,a=this.getEnableScrollRange(),f=this.getEnableHeightRange(),s=f?d/f:0,r=Math.ceil(s*a);this.moveRaf=ve(()=>{l(r)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let o=e/t*100;return o=Math.max(o,bo),o=Math.min(o,e/2),Math.floor(o)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),o=this.getEnableHeightRange();return e===0||t===0?0:e/t*o},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:o}=this.$props,n=this.getSpinHeight()+"px",l=this.getTop()+"px",i=this.showScroll(),d=i&&t;return T("div",{ref:this.scrollbarRef,class:ue(`${o}-scrollbar`,{[`${o}-scrollbar-show`]:i}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:d?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[T("div",{ref:this.thumbRef,class:ue(`${o}-scrollbar-thumb`,{[`${o}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:n,top:l,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function yo(e,t,o,n){const l=new Map,i=new Map,d=me(Symbol("update"));ne(e,()=>{d.value=Symbol("update")});let a;function f(){ve.cancel(a)}function s(){f(),a=ve(()=>{l.forEach((v,b)=>{if(v&&v.offsetParent){const{offsetHeight:$}=v;i.get(b)!==$&&(d.value=Symbol("update"),i.set(b,v.offsetHeight))}})})}function r(v,b){const $=t(v);l.get($),b?(l.set($,b.$el||b),s()):l.delete($)}return On(()=>{f()}),[r,s,i,d]}function wo(e,t,o,n,l,i,d,a){let f;return s=>{if(s==null){a();return}ve.cancel(f);const r=t.value,v=n.itemHeight;if(typeof s=="number")d(s);else if(s&&typeof s=="object"){let b;const{align:$}=s;"index"in s?{index:b}=s:b=r.findIndex(w=>l(w)===s.key);const{offset:h=0}=s,y=(w,C)=>{if(w<0||!e.value)return;const D=e.value.clientHeight;let N=!1,E=C;if(D){const g=C||$;let P=0,x=0,F=0;const L=Math.min(r.length,b);for(let U=0;U<=L;U+=1){const G=l(r[U]);x=P;const W=o.get(G);F=x+(W===void 0?v:W),P=F,U===b&&W===void 0&&(N=!0)}const A=e.value.scrollTop;let B=null;switch(g){case"top":B=x-h;break;case"bottom":B=F-D+h;break;default:{const U=A+D;x<A?E="top":F>U&&(E="bottom")}}B!==null&&B!==A&&d(B)}f=ve(()=>{N&&i(),y(w-1,E)},2)};y(5)}}}const Io=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),_t=((e,t)=>{let o=!1,n=null;function l(){clearTimeout(n),o=!0,n=setTimeout(()=>{o=!1},50)}return function(i){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const a=i<0&&e.value||i>0&&t.value;return d&&a?(clearTimeout(n),o=!1):(!a||o)&&l(),!o&&a}});function Co(e,t,o,n){let l=0,i=null,d=null,a=!1;const f=_t(t,o);function s(v){if(!e.value)return;ve.cancel(i);const{deltaY:b}=v;l+=b,d=b,!f(b)&&(Io||v.preventDefault(),i=ve(()=>{n(l*(a?10:1)),l=0}))}function r(v){e.value&&(a=v.detail===d)}return[s,r]}const xo=14/15;function $o(e,t,o){let n=!1,l=0,i=null,d=null;const a=()=>{i&&(i.removeEventListener("touchmove",f),i.removeEventListener("touchend",s))},f=b=>{if(n){const $=Math.ceil(b.touches[0].pageY);let h=l-$;l=$,o(h)&&b.preventDefault(),clearInterval(d),d=setInterval(()=>{h*=xo,(!o(h,!0)||Math.abs(h)<=.1)&&clearInterval(d)},16)}},s=()=>{n=!1,a()},r=b=>{a(),b.touches.length===1&&!n&&(n=!0,l=Math.ceil(b.touches[0].pageY),i=b.target,i.addEventListener("touchmove",f,{passive:!1}),i.addEventListener("touchend",s))},v=()=>{};Se(()=>{document.addEventListener("touchmove",v,{passive:!1}),ne(e,b=>{t.value.removeEventListener("touchstart",r),a(),clearInterval(d),b&&t.value.addEventListener("touchstart",r,{passive:!1})},{immediate:!0})}),Pe(()=>{document.removeEventListener("touchmove",v)})}var Oo=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const To=[],Mo={overflowY:"auto",overflowAnchor:"none"};function Eo(e,t,o,n,l,i){let{getKey:d}=i;return e.slice(t,o+1).map((a,f)=>{const s=t+f,r=l(a,s,{}),v=d(a);return T(Bt,{key:v,setRef:b=>n(a,b)},{default:()=>[r]})})}const Fo=fe({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:R.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:o}=t;const n=V(()=>{const{height:p,itemHeight:H,virtual:O}=e;return!!(O!==!1&&p&&H)}),l=V(()=>{const{height:p,itemHeight:H,data:O}=e;return n.value&&O&&H*O.length>p}),i=xe({scrollTop:0,scrollMoving:!1}),d=V(()=>e.data||To),a=X([]);ne(d,()=>{a.value=ke(d.value).slice()},{immediate:!0});const f=X(p=>{});ne(()=>e.itemKey,p=>{typeof p=="function"?f.value=p:f.value=H=>H?.[p]},{immediate:!0});const s=X(),r=X(),v=X(),b=p=>f.value(p),$={getKey:b};function h(p){let H;typeof p=="function"?H=p(i.scrollTop):H=p;const O=P(H);s.value&&(s.value.scrollTop=O),i.scrollTop=O}const[y,w,C,D]=yo(a,b),N=xe({scrollHeight:void 0,start:0,end:0,offset:void 0}),E=X(0);Se(()=>{Me(()=>{var p;E.value=((p=r.value)===null||p===void 0?void 0:p.offsetHeight)||0})}),Tn(()=>{Me(()=>{var p;E.value=((p=r.value)===null||p===void 0?void 0:p.offsetHeight)||0})}),ne([n,a],()=>{n.value||S(N,{scrollHeight:void 0,start:0,end:a.value.length-1,offset:void 0})},{immediate:!0}),ne([n,a,E,l],()=>{n.value&&!l.value&&S(N,{scrollHeight:E.value,start:0,end:a.value.length-1,offset:void 0}),s.value&&(i.scrollTop=s.value.scrollTop)},{immediate:!0}),ne([l,n,()=>i.scrollTop,a,D,()=>e.height,E],()=>{if(!n.value||!l.value)return;let p=0,H,O,K;const te=a.value.length,re=a.value,se=i.scrollTop,{itemHeight:ee,height:ce}=e,de=se+ce;for(let m=0;m<te;m+=1){const u=re[m],c=b(u);let M=C.get(c);M===void 0&&(M=ee);const I=p+M;H===void 0&&I>=se&&(H=m,O=p),K===void 0&&I>de&&(K=m),p=I}H===void 0&&(H=0,O=0,K=Math.ceil(ce/ee)),K===void 0&&(K=te-1),K=Math.min(K+1,te),S(N,{scrollHeight:p,start:H,end:K,offset:O})},{immediate:!0});const g=V(()=>N.scrollHeight-e.height);function P(p){let H=p;return Number.isNaN(g.value)||(H=Math.min(H,g.value)),H=Math.max(H,0),H}const x=V(()=>i.scrollTop<=0),F=V(()=>i.scrollTop>=g.value),L=_t(x,F);function A(p){h(p)}function B(p){var H;const{scrollTop:O}=p.currentTarget;O!==i.scrollTop&&h(O),(H=e.onScroll)===null||H===void 0||H.call(e,p)}const[U,G]=Co(n,x,F,p=>{h(H=>H+p)});$o(n,s,(p,H)=>L(p,H)?!1:(U({preventDefault(){},deltaY:p}),!0));function W(p){n.value&&p.preventDefault()}const Y=()=>{s.value&&(s.value.removeEventListener("wheel",U,he?{passive:!1}:!1),s.value.removeEventListener("DOMMouseScroll",G),s.value.removeEventListener("MozMousePixelScroll",W))};Ce(()=>{Me(()=>{s.value&&(Y(),s.value.addEventListener("wheel",U,he?{passive:!1}:!1),s.value.addEventListener("DOMMouseScroll",G),s.value.addEventListener("MozMousePixelScroll",W))})}),Pe(()=>{Y()});const z=wo(s,a,C,e,b,w,h,()=>{var p;(p=v.value)===null||p===void 0||p.delayHidden()});o({scrollTo:z});const oe=V(()=>{let p=null;return e.height&&(p=S({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},Mo),n.value&&(p.overflowY="hidden",i.scrollMoving&&(p.pointerEvents="none"))),p});return ne([()=>N.start,()=>N.end,a],()=>{if(e.onVisibleChange){const p=a.value.slice(N.start,N.end+1);e.onVisibleChange(p,a.value)}},{flush:"post"}),{state:i,mergedData:a,componentStyle:oe,onFallbackScroll:B,onScrollBar:A,componentRef:s,useVirtual:n,calRes:N,collectHeight:w,setInstance:y,sharedConfig:$,scrollBarRef:v,fillerInnerRef:r,delayHideScrollBar:()=>{var p;(p=v.value)===null||p===void 0||p.delayHidden()}}},render(){const e=S(S({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:o,itemHeight:n,fullHeight:l,data:i,itemKey:d,virtual:a,component:f="div",onScroll:s,children:r=this.$slots.default,style:v,class:b}=e,$=Oo(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),h=ue(t,b),{scrollTop:y}=this.state,{scrollHeight:w,offset:C,start:D,end:N}=this.calRes,{componentStyle:E,onFallbackScroll:g,onScrollBar:P,useVirtual:x,collectHeight:F,sharedConfig:L,setInstance:A,mergedData:B,delayHideScrollBar:U}=this;return T("div",k({style:S(S({},v),{position:"relative"}),class:h},$),[T(f,{class:`${t}-holder`,style:E,ref:"componentRef",onScroll:g,onMouseenter:U},{default:()=>[T(Be,{prefixCls:t,height:w,offset:C,onInnerResize:F,ref:"fillerInnerRef"},{default:()=>Eo(B,D,N,A,r,L)})]}),x&&T(So,{ref:"scrollBarRef",prefixCls:t,scrollTop:y,height:o,scrollHeight:w,count:B.length,onScroll:P,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function Po(e,t,o){const n=me(e());return ne(t,(l,i)=>{o?o(l,i)&&(n.value=e()):n.value=e()}),n}function Ro(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const At=Symbol("SelectContextKey");function Do(e){return Ze(At,e)}function Vo(){return Ne(At,{})}var Ho=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};function Ct(e){return typeof e=="string"||typeof e=="number"}const No=fe({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{expose:o,slots:n}=t;const l=fo(),i=Vo(),d=V(()=>`${l.prefixCls}-item`),a=Po(()=>i.flattenOptions,[()=>l.open,()=>i.flattenOptions],g=>g[0]),f=Fe(),s=g=>{g.preventDefault()},r=g=>{f.current&&f.current.scrollTo(typeof g=="number"?{index:g}:g)},v=function(g){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const x=a.value.length;for(let F=0;F<x;F+=1){const L=(g+F*P+x)%x,{group:A,data:B}=a.value[L];if(!A&&!B.disabled)return L}return-1},b=xe({activeIndex:v(0)}),$=function(g){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;b.activeIndex=g;const x={source:P?"keyboard":"mouse"},F=a.value[g];if(!F){i.onActiveValue(null,-1,x);return}i.onActiveValue(F.value,g,x)};ne([()=>a.value.length,()=>l.searchValue],()=>{$(i.defaultActiveFirstOption!==!1?v(0):-1)},{immediate:!0});const h=g=>i.rawValues.has(g)&&l.mode!=="combobox";ne([()=>l.open,()=>l.searchValue],()=>{if(!l.multiple&&l.open&&i.rawValues.size===1){const g=Array.from(i.rawValues)[0],P=ke(a.value).findIndex(x=>{let{data:F}=x;return F[i.fieldNames.value]===g});P!==-1&&($(P),Me(()=>{r(P)}))}l.open&&Me(()=>{var g;(g=f.current)===null||g===void 0||g.scrollTo(void 0)})},{immediate:!0,flush:"post"});const y=g=>{g!==void 0&&i.onSelect(g,{selected:!i.rawValues.has(g)}),l.multiple||l.toggleOpen(!1)},w=g=>typeof g.label=="function"?g.label():g.label;function C(g){const P=a.value[g];if(!P)return null;const x=P.data||{},{value:F}=x,{group:L}=P,A=et(x,!0),B=w(P);return P?T("div",k(k({"aria-label":typeof B=="string"&&!L?B:null},A),{},{key:g,role:L?"presentation":"option",id:`${l.id}_list_${g}`,"aria-selected":h(F)}),[F]):null}return o({onKeydown:g=>{const{which:P,ctrlKey:x}=g;switch(P){case _.N:case _.P:case _.UP:case _.DOWN:{let F=0;if(P===_.UP?F=-1:P===_.DOWN?F=1:Ro()&&x&&(P===_.N?F=1:P===_.P&&(F=-1)),F!==0){const L=v(b.activeIndex+F,F);r(L),$(L,!0)}break}case _.ENTER:{const F=a.value[b.activeIndex];F&&!F.data.disabled?y(F.value):y(void 0),l.open&&g.preventDefault();break}case _.ESC:l.toggleOpen(!1),l.open&&g.stopPropagation()}},onKeyup:()=>{},scrollTo:g=>{r(g)}}),()=>{const{id:g,notFoundContent:P,onPopupScroll:x}=l,{menuItemSelectedIcon:F,fieldNames:L,virtual:A,listHeight:B,listItemHeight:U}=i,G=n.option,{activeIndex:W}=b,Y=Object.keys(L).map(z=>L[z]);return a.value.length===0?T("div",{role:"listbox",id:`${g}_list`,class:`${d.value}-empty`,onMousedown:s},[P]):T(Ee,null,[T("div",{role:"listbox",id:`${g}_list`,style:{height:0,width:0,overflow:"hidden"}},[C(W-1),C(W),C(W+1)]),T(Fo,{itemKey:"key",ref:f,data:a.value,height:B,itemHeight:U,fullHeight:!1,onMousedown:s,onScroll:x,virtual:A},{default:(z,oe)=>{var ie;const{group:p,groupOption:H,data:O,value:K}=z,{key:te}=O,re=typeof z.label=="function"?z.label():z.label;if(p){const ae=(ie=O.title)!==null&&ie!==void 0?ie:Ct(re)&&re;return T("div",{class:ue(d.value,`${d.value}-group`),title:ae},[G?G(O):re!==void 0?re:te])}const{disabled:se,title:ee,children:ce,style:de,class:m,className:u}=O,c=Ho(O,["disabled","title","children","style","class","className"]),M=Le(c,Y),I=h(K),j=`${d.value}-option`,q=ue(d.value,j,m,u,{[`${j}-grouped`]:H,[`${j}-active`]:W===oe&&!se,[`${j}-disabled`]:se,[`${j}-selected`]:I}),J=w(z),Z=!F||typeof F=="function"||I,Q=typeof J=="number"?J:J||K;let le=Ct(Q)?Q.toString():void 0;return ee!==void 0&&(le=ee),T("div",k(k({},M),{},{"aria-selected":I,class:q,title:le,onMousemove:ae=>{c.onMousemove&&c.onMousemove(ae),!(W===oe||se)&&$(oe)},onClick:ae=>{se||y(K),c.onClick&&c.onClick(ae)},style:de}),[T("div",{class:`${j}-content`},[G?G(O):Q]),qe(F)||I,Z&&T(we,{class:`${d.value}-option-state`,customizeIcon:F,customizeIconProps:{isSelected:I}},{default:()=>[I?"✓":null]})])}})])}}});var Lo=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};function Bo(e){const t=e,{key:o,children:n}=t,l=t.props,{value:i,disabled:d}=l,a=Lo(l,["value","disabled"]),f=n?.default;return S({key:o,value:i!==void 0?i:o,children:f,disabled:d||d===""},a)}function zt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Tt(e).map((n,l)=>{var i;if(!qe(n)||!n.type)return null;const{type:{isSelectOptGroup:d},key:a,children:f,props:s}=n;if(t||!d)return Bo(n);const r=f&&f.default?f.default():void 0,v=s?.label||((i=f.label)===null||i===void 0?void 0:i.call(f))||a;return S(S({key:`__RC_SELECT_GRP__${a===null?l:String(a)}__`},s),{label:v,options:zt(r||[])})}).filter(n=>n)}function _o(e,t,o){const n=X(),l=X(),i=X(),d=X([]);return ne([e,t],()=>{e.value?d.value=ke(e.value).slice():d.value=zt(t.value)},{immediate:!0,deep:!0}),Ce(()=>{const a=d.value,f=new Map,s=new Map,r=o.value;function v(b){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let h=0;h<b.length;h+=1){const y=b[h];!y[r.options]||$?(f.set(y[r.value],y),s.set(y[r.label],y)):v(y[r.options],!0)}}v(a),n.value=a,l.value=f,i.value=s}),{options:n,valueOptions:l,labelOptions:i}}let xt=0;const Ao=Sn();function zo(){let e;return Ao?(e=xt,xt+=1):e="TEST_OR_SSR",e}function Wo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:me("");const t=`rc_select_${zo()}`;return e.value||t}function Wt(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Ke(e,t){return Wt(e).join("").toUpperCase().includes(t)}const Ko=((e,t,o,n,l)=>V(()=>{const i=o.value,d=l?.value,a=n?.value;if(!i||a===!1)return e.value;const{options:f,label:s,value:r}=t.value,v=[],b=typeof a=="function",$=i.toUpperCase(),h=b?a:(w,C)=>d?Ke(C[d],$):C[f]?Ke(C[s!=="children"?s:"label"],$):Ke(C[r],$),y=b?w=>Qe(w):w=>w;return e.value.forEach(w=>{if(w[f]){if(h(i,y(w)))v.push(w);else{const D=w[f].filter(N=>h(i,y(N)));D.length&&v.push(S(S({},w),{[f]:D}))}return}h(i,y(w))&&v.push(w)}),v})),jo=((e,t)=>{const o=X({values:new Map,options:new Map});return[V(()=>{const{values:i,options:d}=o.value,a=e.value.map(r=>{var v;return r.label===void 0?S(S({},r),{label:(v=i.get(r.value))===null||v===void 0?void 0:v.label}):r}),f=new Map,s=new Map;return a.forEach(r=>{f.set(r.value,r),s.set(r.value,t.value.get(r.value)||d.get(r.value))}),o.value.values=f,o.value.options=s,a}),i=>t.value.get(i)||o.value.options.get(i)]}),Uo=["inputValue"];function Kt(){return S(S({},Nt()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:R.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:R.any,defaultValue:R.any,onChange:Function,children:Array})}function Yo(e){return!e||typeof e!="object"}const Go=fe({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:tt(Kt(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:o,attrs:n,slots:l}=t;const i=Wo(ge(e,"id")),d=V(()=>Lt(e.mode)),a=V(()=>!!(!e.options&&e.children)),f=V(()=>e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption),s=V(()=>Pt(e.fieldNames,a.value)),[r,v]=gt("",{value:V(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:m=>m||""}),b=_o(ge(e,"options"),ge(e,"children"),s),{valueOptions:$,labelOptions:h,options:y}=b,w=m=>Wt(m).map(c=>{var M,I;let j,q,J,Z;Yo(c)?j=c:(J=c.key,q=c.label,j=(M=c.value)!==null&&M!==void 0?M:J);const Q=$.value.get(j);return Q&&(q===void 0&&(q=Q?.[e.optionLabelProp||s.value.label]),J===void 0&&(J=(I=Q?.key)!==null&&I!==void 0?I:j),Z=Q?.disabled),{label:q,value:j,key:J,disabled:Z,option:Q}}),[C,D]=gt(e.defaultValue,{value:ge(e,"value")}),N=V(()=>{var m;const u=w(C.value);return e.mode==="combobox"&&!(!((m=u[0])===null||m===void 0)&&m.value)?[]:u}),[E,g]=jo(N,$),P=V(()=>{if(!e.mode&&E.value.length===1){const m=E.value[0];if(m.value===null&&(m.label===null||m.label===void 0))return[]}return E.value.map(m=>{var u;return S(S({},m),{label:(u=typeof m.label=="function"?m.label():m.label)!==null&&u!==void 0?u:m.value})})}),x=V(()=>new Set(E.value.map(m=>m.value)));Ce(()=>{var m;if(e.mode==="combobox"){const u=(m=E.value[0])===null||m===void 0?void 0:m.value;u!=null&&v(String(u))}},{flush:"post"});const F=(m,u)=>{const c=u??m;return{[s.value.value]:m,[s.value.label]:c}},L=X();Ce(()=>{if(e.mode!=="tags"){L.value=y.value;return}const m=y.value.slice(),u=c=>$.value.has(c);[...E.value].sort((c,M)=>c.value<M.value?-1:1).forEach(c=>{const M=c.value;u(M)||m.push(F(M,c.label))}),L.value=m});const A=Ko(L,s,r,f,ge(e,"optionFilterProp")),B=V(()=>e.mode!=="tags"||!r.value||A.value.some(m=>m[e.optionFilterProp||"value"]===r.value)?A.value:[F(r.value),...A.value]),U=V(()=>e.filterSort?[...B.value].sort((m,u)=>e.filterSort(m,u)):B.value),G=V(()=>qn(U.value,{fieldNames:s.value,childrenAsData:a.value})),W=m=>{const u=w(m);if(D(u),e.onChange&&(u.length!==E.value.length||u.some((c,M)=>{var I;return((I=E.value[M])===null||I===void 0?void 0:I.value)!==c?.value}))){const c=e.labelInValue?u.map(I=>S(S({},I),{originLabel:I.label,label:typeof I.label=="function"?I.label():I.label})):u.map(I=>I.value),M=u.map(I=>Qe(g(I.value)));e.onChange(d.value?c:c[0],d.value?M:M[0])}},[Y,z]=ht(null),[oe,ie]=ht(0),p=V(()=>e.defaultActiveFirstOption!==void 0?e.defaultActiveFirstOption:e.mode!=="combobox"),H=function(m,u){let{source:c="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ie(u),e.backfill&&e.mode==="combobox"&&m!==null&&c==="keyboard"&&z(String(m))},O=(m,u)=>{const c=()=>{var M;const I=g(m),j=I?.[s.value.label];return[e.labelInValue?{label:typeof j=="function"?j():j,originLabel:j,value:m,key:(M=I?.key)!==null&&M!==void 0?M:m}:m,Qe(I)]};if(u&&e.onSelect){const[M,I]=c();e.onSelect(M,I)}else if(!u&&e.onDeselect){const[M,I]=c();e.onDeselect(M,I)}},K=(m,u)=>{let c;const M=d.value?u.selected:!0;M?c=d.value?[...E.value,m]:[m]:c=E.value.filter(I=>I.value!==m),W(c),O(m,M),e.mode==="combobox"?z(""):(!d.value||e.autoClearSearchValue)&&(v(""),z(""))},te=(m,u)=>{W(m),(u.type==="remove"||u.type==="clear")&&u.values.forEach(c=>{O(c.value,!1)})},re=(m,u)=>{var c;if(v(m),z(null),u.source==="submit"){const M=(m||"").trim();if(M){const I=Array.from(new Set([...x.value,M]));W(I),O(M,!0),v("")}return}u.source!=="blur"&&(e.mode==="combobox"&&W(m),(c=e.onSearch)===null||c===void 0||c.call(e,m))},se=m=>{let u=m;e.mode!=="tags"&&(u=m.map(M=>{const I=h.value.get(M);return I?.value}).filter(M=>M!==void 0));const c=Array.from(new Set([...x.value,...u]));W(c),c.forEach(M=>{O(M,!0)})},ee=V(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);Do(Ht(S(S({},b),{flattenOptions:G,onActiveValue:H,defaultActiveFirstOption:p,onSelect:K,menuItemSelectedIcon:ge(e,"menuItemSelectedIcon"),rawValues:x,fieldNames:s,virtual:ee,listHeight:ge(e,"listHeight"),listItemHeight:ge(e,"listItemHeight"),childrenAsData:a})));const ce=me();o({focus(){var m;(m=ce.value)===null||m===void 0||m.focus()},blur(){var m;(m=ce.value)===null||m===void 0||m.blur()},scrollTo(m){var u;(u=ce.value)===null||u===void 0||u.scrollTo(m)}});const de=V(()=>Le(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>T(ho,k(k(k({},de.value),n),{},{id:i,prefixCls:e.prefixCls,ref:ce,omitDomProps:Uo,mode:e.mode,displayValues:P.value,onDisplayValuesChange:te,searchValue:r.value,onSearch:re,onSearchSplit:se,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:No,emptyOptions:!G.value.length,activeValue:Y.value,activeDescendantId:`${i}_list_${oe.value}`}),l)}}),lt=()=>null;lt.isSelectOption=!0;lt.displayName="ASelectOption";const it=()=>null;it.isSelectOptGroup=!0;it.displayName="ASelectOptGroup";function Xo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{loading:o,multiple:n,prefixCls:l,hasFeedback:i,feedbackIcon:d,showArrow:a}=e,f=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),s=e.clearIcon||t.clearIcon&&t.clearIcon(),r=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),v=e.removeIcon||t.removeIcon&&t.removeIcon(),b=s??T(Rn,null,null),$=C=>T(Ee,null,[a!==!1&&C,i&&d]);let h=null;if(f!==void 0)h=$(f);else if(o)h=$(T(Dn,{spin:!0},null));else{const C=`${l}-suffix`;h=D=>{let{open:N,showSearch:E}=D;return $(N&&E?T(Nn,{class:C},null):T(Ln,{class:C},null))}}let y=null;r!==void 0?y=r:n?y=T(Vn,null,null):y=null;let w=null;return v!==void 0?w=v:w=T(Hn,null,null),{clearIcon:b,suffixIcon:h,itemIcon:y,removeIcon:w}}const $t=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},Qo=e=>{const{antCls:t,componentCls:o}=e,n=`${o}-item`;return[{[`${o}-dropdown`]:S(S({},Je(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
|
4
4
|
&${t}-slide-up-enter${t}-slide-up-enter-active${o}-dropdown-placement-bottomLeft,
|