import{p as m,P as l,a1 as t,F as c,ae as v,X as r,u as o,Q as d,aa as f,a8 as _,ao as g,C as y}from"./vendor/json-editor-vue-llkaejaf.js";import{C as V}from"./m6q5jxyf.js";const h={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base"},x=["disabled","title"],B=["disabled","value","title"],F=m({__name:"NSelectTabs",props:{modelValue:{default:void 0},disabled:{type:Boolean,default:!1},options:{}},setup(i,{emit:p}){const a=V(i,"modelValue",p,{passive:!0});return(s,n)=>(t(),l("fieldset",h,[(t(!0),l(c,null,v(s.options,(e,b)=>(t(),l("label",{key:e.label,disabled:s.disabled,class:r(["relative n-border-base hover:n-bg-active px-0.5em py-0.1em",[b?"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"])},_(e.label),3),f(d("input",{"onUpdate:modelValue":n[0]||(n[0]=u=>y(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,B),[[g,o(a)]])],10,x))),128))]))}});export{F as _};
