import{aa as c,aR as h,n as f,ac as x}from"./index.ef672c15.js";import{d as b,c as _,o as n,a as o,F as g,x as y}from"./index.477073af.js";const v={class:"relative z-0 inline-flex rounded-lg shadow-sm"},z=["onClick"],B=b({__name:"InputRadioButton",props:{modelValue:{type:[String,Number],default:""},list:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(u,{emit:i}){const a=u,r=_(()=>h(a.list)),m=(t,s)=>{const e=[];return s==0?e.push("rounded-l-md"):s==r.value.length-1&&e.push("rounded-r-md"),s!=0&&e.push("-ml-px"),a.modelValue==t.value?e.push("bg-theme-400 border-theme-600 text-theme-0 z-20"):e.push("bg-theme-100 text-theme-600 border-theme-300 hover:border-theme-300"),e.join(" ")},p=t=>{i("update:modelValue",t.value)},d=["relative","inline-flex","items-center","border","px-input-x","py-input-y","text-input-size","text-theme-600","focus:z-10","focus:outline-none","focus:ring-0"];return(t,s)=>(n(),o("span",v,[(n(!0),o(g,null,y(c(r),(e,l)=>(n(),o("button",{key:l,type:"button",class:f([d,m(e,l)]),onClick:k=>p(e)},x(e.name),11,z))),128))]))}});export{B as default};
