"use strict";const e=require("../../../../../common/vendor.js"),t={__name:"su-radio",props:{customStyle:{type:Object,default:()=>({})},ui:{type:String,default:"check"},modelValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:!1},bg:{type:String,default:"ui-BG-Main"},unbg:{type:String,default:"borderss"},src:{type:String,default:""},label:{type:String,default:""},labelStyle:{type:Object,default:()=>({})},none:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(t,{emit:u}){const a=e.reactive({currentValue:!1}),l=u,r=t;e.watchPostEffect((()=>{a.currentValue=r.modelValue,l("update:modelValue",a.currentValue)}));const n=e.computed((()=>a.currentValue)),c=()=>{r.disabled||(a.currentValue=!a.currentValue,l("update:modelValue",a.currentValue),l("change",{label:r.label,value:a.currentValue}))};return(u,a)=>e.e({a:!t.none},t.none?{}:{b:e.n(n.value?"cur "+t.bg:t.unbg),c:e.n(t.src?"radius":"round")},{d:t.src},t.src?{e:t.src}:{f:e.t(t.label),g:e.s(t.labelStyle)},{h:t.ui.includes("card")},t.ui.includes("card")?{i:e.n(n.value?"cur "+t.bg:"")}:{},{j:e.o(c),k:e.n({disabled:t.disabled}),l:e.n({img:t.src}),m:e.n(t.ui),n:e.s(t.customStyle)})}},u=e._export_sfc(t,[["__scopeId","data-v-d2a8e2c8"]]);wx.createComponent(u);