import{k as P,an as w,$ as o,a8 as p,a9 as t,Z as i,F as c,P as x,au as z,ad as E,s as I,ak as d,a0 as L,j as M,aa as N,q as S,L as V,ao as _}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{$,n as h,Z as D}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{c as F}from"./index-BTglIPU2.js?v=1773287522785";const R=P({__name:"index",props:_({data:{default:()=>[]},isEllipsis:{type:Boolean,default:!1},isIcon:{type:Boolean,default:!1},panePadding:{default:"16px"}},{value:{},valueModifiers:{}}),emits:_(["click-self"],["update:value"]),setup(f,{expose:m,emit:v}){const y=v,n=w(f,"value"),r={},k=(a,s)=>{r[s]=a},b=(a,s)=>{s===n.value&&(u(),y("click-self"))},u=()=>{var a,s;n.value&&((s=(a=r[n.value])==null?void 0:a.init)==null||s.call(a))};return m({init:u}),(a,s)=>{const g=h,C=$,B=D;return o(),p(B,{value:n.value,"onUpdate:value":s[0]||(s[0]=e=>n.value=e),class:V(["bt-tabs-modal",{"is-icon":a.isIcon}]),type:"card",placement:"left","pane-style":{padding:a.panePadding}},{default:t(()=>[(o(!0),i(c,null,x(a.data,e=>(o(),i(c,null,[e.show!==!1?(o(),p(C,{key:e.key,name:e.key,tab:e.label,"display-directive":e.isLazy?"show:lazy":"if","tab-props":{onClick:l=>{b(l,e.key)}}},z({default:t(()=>[e.component?(o(),p(E(e.component),I({key:0,ref_for:!0,ref:l=>k(l,e.key)},{ref_for:!0},{...e.data?e.data:{}}),null,16)):d("",!0)]),_:2},[a.isEllipsis?{name:"tab",fn:t(()=>[L(g,null,{default:t(()=>[M(N(e.label),1)]),_:2},1024)]),key:"0"}:void 0]),1032,["name","tab","display-directive","tab-props"])):d("",!0)],64))),256)),S(a.$slots,"default",{},void 0,!0)]),_:3},8,["value","class","pane-style"])}}}),T=F(R,[["__scopeId","data-v-9b556854"]]);export{T as _};
