import{k as m,R as l,U as t,F as c,ac as v,Z as r,u as o,V as d,a6 as f,a9 as _,an as y,y as V}from"./vendor/json-editor-vue-gplv2x2n.js";import{y as g}from"./howhlbef.js";const h={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base"},k=["disabled","title"],x=["disabled","value","title"],D=m({__name:"NSelectTabs",props:{modelValue:{default:void 0},disabled:{type:Boolean,default:!1},options:{}},setup(i,{emit:b}){const a=g(i,"modelValue",b,{passive:!0});return(s,n)=>(l(),t("fieldset",h,[(l(!0),t(c,null,v(s.options,(e,p)=>(l(),t("label",{key:e.label,disabled:s.disabled,class:r(["relative n-border-base hover:n-bg-active px-0.5em py-0.1em",[p?"border-l n-border-base ml--1px":"",e.value===o(a)?"n-bg-active":""]]),title:e.label},[d("div",{class:r([e.value===o(a)?"":"op35"])},f(e.label),3),_(d("input",{"onUpdate:modelValue":n[0]||(n[0]=u=>V(a)?a.value=u:null),type:"radio",disabled:s.disabled,value:e.value,title:e.label,class:"absolute inset-0 op-0.1"},null,8,x),[[y,o(a)]])],10,k))),128))]))}});export{D as _};
