import{k as a,ad as e,ae as s,R as l,a2 as t,a3 as i,S as n,F as o,O as d,ay as p,a7 as u,s as r,an as c,X as f,j as v,a4 as y,q as m,H as k}from"./vue.js?v=1763625242172";import{dc as _,dQ as b,dR as g}from"./naive.js?v=1763625242172";import{p as j}from"./page_layout.js?v=1763625242172";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"),h={},w=()=>{var a,e;I.value&&(null==(e=null==(a=h[I.value])?void 0:a.init)||e.call(a))};return e({init:w}),(a,e)=>{const s=_,j=b,z=g;return l(),t(z,{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((()=>[(l(!0),n(o,null,d(a.data,(e=>(l(),n(o,null,[!1!==e.show?(l(),t(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&&(w(),x("click-self"))}}},p({default:i((()=>[e.component?(l(),t(u(e.component),r({key:0,ref_for:!0,ref:a=>((a,e)=>{h[e]=a})(a,e.key)},{ref_for:!0},{...e.data?e.data:{}}),null,16)):c("",!0)])),_:2},[a.isEllipsis?{name:"tab",fn:i((()=>[f(s,null,{default:i((()=>[v(y(e.label),1)])),_:2},1024)])),key:"0"}:void 0]),1032,["name","tab","display-directive","tab-props"])):c("",!0)],64)))),256)),m(a.$slots,"default",{},void 0,!0)])),_:3},8,["value","class","pane-style"])}}}),[["__scopeId","data-v-9b556854"]]);export{x as _};
