import{l as m,R as l,U as t,F as c,ac as f,Z as d,u as o,V as r,a6 as v,a9 as _,am as y,y as V}from"./vendor/json-editor-vue-hrh84odz.js";import{z as g}from"./h48l6b7a.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"],C=m({__name:"NSelectTabs",props:{modelValue:{default:void 0},disabled:{type:Boolean,default:!1},options:{}},setup(i,{emit:u}){const a=g(i,"modelValue",u,{passive:!0});return(s,n)=>(l(),t("fieldset",h,[(l(!0),t(c,null,f(s.options,(e,b)=>(l(),t("label",{key:e.label,disabled:s.disabled,class:d(["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},[r("div",{class:d([e.value===o(a)?"":"op35"])},v(e.label),3),_(r("input",{"onUpdate:modelValue":n[0]||(n[0]=p=>V(a)?a.value=p:null),type:"radio",disabled:s.disabled,value:e.value,title:e.label,class:"absolute inset-0 op-0.1"},null,8,B),[[y,o(a)]])],10,x))),128))]))}});export{C as _};
