Files
appco_dist/.output/public/_nuxt/DAkDyVa1.js
T

4 lines
33 KiB
JavaScript
Raw Normal View History

2025-08-27 20:20:03 +03:30
import{ay as Fe,az as nt,aA as ht,cf as mt,de as gt,an as $t,s as H,e as Me,bx as me,d as re,r as Q,k as W,C as h,aM as ie,cq as Z,be as Ce,aF as T,aO as j,aU as we,cu as O,o as Te,a0 as oe,aX as yt,aZ as xt,df as he,aN as te,aT as ge,bs as _t,b5 as St,b1 as Ct,b2 as Tt,b9 as ot,cw as wt,dg as it,aH as rt,bO as Pt,bq as Rt,b4 as It,dh as Et,cR as Oe,aI as Bt,cB as Lt,br as At,aQ as xe,aP as Ot,aR as Dt}from"./BAjARngS.js";import{u as Mt,E as kt,M as Nt,_ as Ht}from"./D19XOyLS.js";import{D as Wt}from"./DLjY2jVd.js";import{R as je}from"./DX3u28oT.js";import{u as zt}from"./DQB7sloh.js";import{h as Gt}from"./DZj86G17.js";import{f as Kt}from"./haC2wmdZ.js";import{i as Xt}from"./-2fOlCHx.js";import{u as Ve}from"./DPwDOHKb.js";import{i as Ye}from"./_8s0YEqS.js";function Ft(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=ht(t[o]),c=a;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(o!=n){var f=s[v];c=void 0,c===void 0&&(c=Fe(f)?f:mt(t[o+1])?[]:{})}gt(s,v,c),s=s[v]}return e}function jt(e,t,a){for(var i=-1,o=t.length,r={};++i<o;){var n=t[i],s=$t(e,n);a(s,n)&&Ft(r,nt(n,e),s)}return r}function Vt(e,t){return jt(e,t,function(a,i){return Gt(e,i)})}var lt=Kt(function(e,t){return e==null?{}:Vt(e,t)});function Yt(e){const t=H(),a=H(!1);function i(){for(var o=arguments.length,r=new Array(o),n=0;n<o;n++)r[n]=arguments[n];a.value||(me.cancel(t.value),t.value=me(()=>{e(...r)}))}return Me(()=>{a.value=!0,me.cancel(t.value)}),i}function qt(e){const t=H([]),a=H(typeof e=="function"?e():e),i=Yt(()=>{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 Ut=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=Q();function r(v){var c;!((c=e.tab)===null||c===void 0)&&c.disabled||e.onClick(v)}a({domRef:o});function n(v){var c;v.preventDefault(),v.stopPropagation(),e.editable.onEdit("remove",{key:(c=e.tab)===null||c===void 0?void 0:c.key,event:v})}const s=W(()=>{var v;return e.editable&&e.closable!==!1&&!(!((v=e.tab)===null||v===void 0)&&v.disabled)});return()=>{var v;const{prefixCls:c,id:f,active:S,tab:{key:m,tab:d,disabled:y,closeIcon:x},renderWrapper:w,removeAriaLabel:C,editable:D,onFocus:G}=e,M=`${c}-tab`,l=h("div",{key:m,ref:o,class:ie(M,{[`${M}-with-remove`]:s.value,[`${M}-active`]:S,[`${M}-disabled`]:y}),style:i.style,onClick:r},[h("div",{role:"tab","aria-selected":S,id:f&&`${f}-tab-${m}`,class:`${M}-btn`,"aria-controls":f&&`${f}-panel-${m}`,"aria-disabled":y,tabindex:y?null:0,onClick:g=>{g.stopPropagation(),r(g)},onKeydown:g=>{[Z.SPACE,Z.ENTER].includes(g.which)&&(g.preventDefault(),r(g))},onFocus:G},[typeof d=="function"?d():d]),s.value&&h("button",{type:"button","aria-label":C||"remove",tabindex:0,class:`${M}-remove`,onClick:g=>{g.stopPropagation(),n(g)}},[x?.()||((v=D.removeIcon)===null||v===void 0?void 0:v.call(D))||"×"])]);return w?w(l):l}}}),qe={width:0,height:0,left:0,top:0};function Zt(e,t){const a=Q(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)||qe,v=s.left+s.width;for(let c=0;c<n.length;c+=1){const{key:f}=n[c];let S=t.value.get(f);S||(S=t.value.get((o=n[c-1])===null||o===void 0?void 0:o.key)||qe);const m=r.get(f)||T({},S);m.right=v-m.left-m.width,r.set(f,m)}a.value=new Map(r)}),a}const st=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=Q();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",{
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,
2025-08-27 20:20:03 +03:30
> 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}}}}}},va=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`}}}}}},ba=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}},it(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`}}}},fa=e=>{const{componentCls:t,tabsHorizontalGutter:a,iconCls:i,tabsCardGutter:o}=e;return{[`${t}-rtl`]:{direction:"