import{d as b,G as h,X as g,o as y,ak as T,al as k,b as o,d2 as c,aL as r,v as m,es as w,H as I,W as A,a as $,e as _,u as f,eu as u,bu as C,ez as D,ew as x,c as B,b0 as M,eA as S}from"./registerWidgets.e46eca28.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="f297927f-d88c-4ded-89a2-0876e1fc8a9c",s._sentryDebugIdIdentifier="sentry-dbid-f297927f-d88c-4ded-89a2-0876e1fc8a9c")}catch{}})();const E={class:"tab"},N=b({__name:"Tab",props:{title:{},icon:{}},setup(s){const e=s,a=h({isActive:!1,title:e.title,icon:e.icon}),d=g("addTab");return y(()=>{d(a)}),(l,t)=>T((o(),c("div",E,[r(l.$slots,"default",{},void 0,!0)],512)),[[k,a.isActive]])}});const q=m(N,[["__scopeId","data-v-497e4e8e"]]),V={class:"tab-menu"},z={class:"tabs"},L={key:0,class:"group"},U={class:"group"},j=["onClick"],F={key:1,class:"group"},G={class:"content"},H=b({__name:"TabMenuUnderline",setup(s){const e=h([]),a=w(),d=t=>{const p=i=>i==t;e.forEach((i,n)=>{i.isActive=p(n)})},l=I(()=>e.findIndex(t=>t.isActive));return A("addTab",t=>{e.push(t)}),y(()=>{d(0)}),(t,p)=>{const i=$("icon");return o(),c("div",V,[_("div",z,[f(a).left?(o(),c("div",L,[r(t.$slots,"left",{},void 0,!0)])):u("",!0),_("div",U,[(o(!0),c(C,null,D(e,(n,v)=>(o(),c("button",{key:n.title,class:x(["form-tab",l.value==v&&"active"]),onClick:W=>d(v)},[n.icon?(o(),B(i,{key:0,path:n.icon,fill:"#8692A5",width:"10",height:"10"},null,8,["path"])):u("",!0),M(" "+S(n.title),1)],10,j))),128))]),f(a).right?(o(),c("div",F,[r(t.$slots,"right",{},void 0,!0)])):u("",!0)]),_("div",G,[r(t.$slots,"default",{},void 0,!0)])])}}});const J=m(H,[["__scopeId","data-v-1341a074"]]);export{J as T,q as a};
//# sourceMappingURL=TabMenuUnderline.c2559a28.js.map
