import{d as h,l as v,o as t,x as s,F as y,h as b,D as c,u as o,B as f,z as n,A as k,b as p}from"./vue.1703796278973.js";import{$ as _}from"./index.17037962789733.js";import{_ as g}from"./_plugin-vue_export-helper.1703796278973.js";const V=["onClick"],x=["src"],B=h({__name:"index",props:{options:{type:Array,default:()=>[]},modelValue:{type:String,default:""},layout:{type:String,default:"vertical"},checkStyle:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(a,{emit:i}){const u=a,l=v({get:()=>u.modelValue,set:d=>{u.disabled||(i("update:modelValue",d),i("change"))}}),r=d=>{d.disabled||(l.value=d.value)};return(d,C)=>(t(),s("div",{class:c([a.layout==="horizontal"?"m-radio-checked":"m-radio",a.disabled?"disabled":""])},[(t(!0),s(y,null,b(a.options,(e,m)=>(t(),s("div",{class:c([a.layout==="horizontal"?"m-radio-checked-item":"m-radio-item",{active:o(l)===e.value},a.checkStyle&&o(l)===e.value?"checked":"",a.disabled&&o(l)===e.value?"active-checked-disabled":"",e.disabled?"disabled":""]),key:m,onClick:S=>r(e)},[e.logo?(t(),s("img",{key:0,class:"img",src:e.logo,alt:""},null,8,x)):f("",!0),n("span",null,k(e.label),1),n("div",{class:c(["checked-icon",a.disabled&&o(l)===e.value||e.disabled?"checked-icon-disabled":""])},[n("div",null,[p(o(_))])],2)],10,V))),128))],2))}});const D=g(B,[["__scopeId","data-v-8b9cceee"]]);export{D as _};
