1import{v as a,o as e}from"./D7gybEw0.js";import{av as s,al as t,s as o,p as n,F as l,at as c,a9 as d,q as b,r,au as u,w as m,aB as i,n as p}from"./DHW7zE2j.js";const g={class:"wg-tabs"},v=["onClick"],$={class:"wg-tabs-content"};const h=a({name:"WGTabs",components:{WGIcon:e},emits:["update:modelValue"],props:{modelValue:{},backgroundType:{type:String,default:"success"},name:String,tabs:Object},setup:(a,{emit:e})=>({changeTab:a=>{e("update:modelValue",a)},tabPanelSlotName:p(()=>`tab-panel-${a.modelValue.value}`),tabHeadSlotName:a=>`tab-head-${a}`})},[["render",function(a,e,p,h,k,w){const y=s("WGIcon");return t(),o("div",g,[n("div",{class:d(["wg-tabs-header",[`wg-tabs-header--${p.backgroundType}`]])},[(t(!0),o(l,null,c(p.tabs,(e,s)=>(t(),o("div",{class:d(["wg-tabs-header-item",{[`wg-tabs-header-item-${p.backgroundType}--active`]:a.$props.modelValue.value===e.value,[`wg-tabs-header-item-${p.backgroundType}`]:!0}]),key:s,onClick:a=>h.changeTab(e)},[e.icon?(t(),b(y,{key:0,icon:e.icon},null,8,["icon"])):r("",!0),u(a.$slots,h.tabHeadSlotName(e.value),{},()=>[m(i(a.$t(e.name)),1)])],10,v))),128))],2),n("div",$,[u(a.$slots,h.tabPanelSlotName)])])}]]);export{h as W};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.