import{k as a,ad as e,ae as s,a2 as l,V as t,a3 as i,R as n,q as o,F as d,O as p,an as u,ay as r,a7 as c,s as f,W as v,j as y,a4 as m,H as k}from"./vue.js?v=1764233927359";import{dQ as _,dc as b,dP as g}from"./naive.js?v=1764233927359";import{p as j}from"./page_layout.js?v=1764233927359";const x=j(a({__name:"index",props:e({data:{default:()=>[]},isEllipsis:{type:Boolean,default:!1},isIcon:{type:Boolean,default:!1},panePadding:{default:"16px"}},{value:{},valueModifiers:{}}),emits:e(["click-self"],["update:value"]),setup(a,{expose:e,emit:j}){const x=j,I=s(a,"value"),P={},h=()=>{var a,e;I.value&&(null==(e=null==(a=P[I.value])?void 0:a.init)||e.call(a))};return e({init:h}),(a,e)=>{const s=b,j=_,w=g;return t(),l(w,{value:I.value,"onUpdate:value":e[0]||(e[0]=a=>I.value=a),class:k(["bt-tabs-modal",{"is-icon":a.isIcon}]),type:"card",placement:"left","pane-style":{padding:a.panePadding}},{default:i(()=>[(t(!0),n(d,null,p(a.data,e=>(t(),n(d,null,[!1!==e.show?(t(),l(j,{key:e.key,name:e.key,tab:e.label,"display-directive":e.isLazy?"show:lazy":"if","tab-props":{onClick:a=>{e.key===I.value&&(h(),x("click-self"))}}},r({default:i(()=>[e.component?(t(),l(c(e.component),f({key:0,ref_for:!0,ref:a=>((a,e)=>{P[e]=a})(a,e.key)},{ref_for:!0},{...e.data?e.data:{}}),null,16)):u("",!0)]),_:2},[a.isEllipsis?{name:"tab",fn:i(()=>[v(s,null,{default:i(()=>[y(m(e.label),1)]),_:2},1024)]),key:"0"}:void 0]),1032,["name","tab","display-directive","tab-props"])):u("",!0)],64))),256)),o(a.$slots,"default",{},void 0,!0)]),_:3},8,["value","class","pane-style"])}}}),[["__scopeId","data-v-9b556854"]]);export{x as _};
