import{k as a,ab as e,ac as l,U as s,a1 as t,a2 as i,V as n,F as o,O as d,ax as p,a6 as u,s as c,al as r,Q as f,j as v,a3 as y,H as m}from"./vue.js?v=1753954525509";import{b$ as b,cB as k,cC as _}from"./naive.js?v=1753954525509";import{e as x}from"./page_layout.js?v=1753954525509";const g=x(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:x}){const g=x,j=l(a,"value"),B={},I=()=>{var a,e;j.value&&(null==(e=null==(a=B[j.value])?void 0:a.init)||e.call(a))};return e({init:I}),(a,e)=>{const l=b,x=k,h=_;return s(),t(h,{value:j.value,"onUpdate:value":e[0]||(e[0]=a=>j.value=a),class:m(["bt-tabs-modal",{"is-icon":a.isIcon}]),type:"card",placement:"left","pane-style":{padding:a.panePadding}},{default:i((()=>[(s(!0),n(o,null,d(a.data,(e=>(s(),n(o,null,[!1!==e.show?(s(),t(x,{key:e.key,name:e.key,tab:e.label,"display-directive":e.isLazy?"show:lazy":"if","tab-props":{onClick:a=>{e.key===j.value&&(I(),g("click-self"))}}},p({default:i((()=>[e.component?(s(),t(u(e.component),c({key:0,ref_for:!0,ref:a=>((a,e)=>{B[e]=a})(a,e.key)},{ref_for:!0},{...e.data?e.data:{}}),null,16)):r("",!0)])),_:2},[a.isEllipsis?{name:"tab",fn:i((()=>[f(l,null,{default:i((()=>[v(y(e.label),1)])),_:2},1024)])),key:"0"}:void 0]),1032,["name","tab","display-directive","tab-props"])):r("",!0)],64)))),256))])),_:1},8,["value","class","pane-style"])}}}),[["__scopeId","data-v-8e6d4370"]]);export{g as _};
