import{k as a,ad as e,ae as l,R as s,a2 as t,a3 as o,q as i,S as n,F as u,O as p,a7 as r,s as v,an as d}from"./vue.js?v=1763625242172";import{dQ as f,dR as c}from"./naive.js?v=1763625242172";import{p as m}from"./page_layout.js?v=1763625242172";const y=m(a({__name:"index",props:e({data:{},options:{default:()=>[]}},{value:{},valueModifiers:{}}),emits:e(["click"],["update:value"]),setup(a,{expose:e,emit:m}){const y=l(a,"value"),k=m,_=()=>{var a,e;y.value&&(null==(e=null==(a=b[y.value])?void 0:a.init)||e.call(a))},b={};return e({init:_,onConfirm:async a=>{var e,l;y.value&&await(null==(l=null==(e=b[y.value])?void 0:e.onConfirm)?void 0:l.call(e,a))},setValue:a=>{y.value=a},getCompRef:a=>b[a]}),(a,e)=>{const l=f,m=c;return s(),t(m,{value:y.value,"onUpdate:value":e[0]||(e[0]=a=>y.value=a),class:"bt-tabs h-full",type:"card",placement:"top"},{default:o((()=>[i(a.$slots,"default",{},void 0,!0),(s(!0),n(u,null,p(a.options,(e=>(s(),n(u,{key:e.key},[!1!==e.show?(s(),t(l,{key:0,name:e.key,tab:e.label,"display-directive":e.isLazy?"show:lazy":"if","tab-props":{onClick:a=>{((a,e)=>{k("click",a),e===y.value&&_()})(a,e.key)}}},{default:o((()=>[e.component?(s(),t(r(e.component),v({key:0,ref_for:!0,ref:a=>((a,e)=>{b[e]=a})(a,e.key)},{ref_for:!0},{...a.data,...e.data}),null,16)):d("",!0)])),_:2},1032,["name","tab","display-directive","tab-props"])):d("",!0)],64)))),128))])),_:3},8,["value"])}}}),[["__scopeId","data-v-aa13f51f"]]);export{y as _};
