import{az as e}from"./vendor-element-plus.js?ver=3.1.8";import{W as a,X as l,ab as s,a5 as t,Z as d,aa as o,a8 as i}from"./vendor.js?ver=3.1.8";import{_ as c}from"./fc-bits-ui.js?ver=3.1.8";const r={class:"fcrm_checkbox_row"},m={class:"fcrm_checkbox_text"},n={class:"fcrm_checkbox_text_title"},u={key:0,class:"fcrm_checkbox_text_desc"};const f=c({name:"InlineCheckbox",props:["field","modelValue"],emits:["update:modelValue"],data(){return{model:this.modelValue,isInternalUpdate:!1}},watch:{model(e){this.isInternalUpdate||this.$emit("update:modelValue",e)},modelValue(e){this.model!==e&&(this.isInternalUpdate=!0,this.model=e,this.$nextTick(()=>{this.isInternalUpdate=!1}))}}},[["render",function(c,f,b,h,p,_){const x=e;return a(),l("label",r,[s(x,{class:"fcrm_checkbox","true-value":b.field.true_label,disabled:b.field.disabled,"false-value":b.field.false_label,modelValue:p.model,"onUpdate:modelValue":f[0]||(f[0]=e=>p.model=e)},{default:t(()=>[d("div",m,[d("span",n,o(c.$t(b.field.checkbox_label)),1),b.field.checkbox_description?(a(),l("span",u,o(c.$t(b.field.checkbox_description)),1)):i("",!0)])],void 0),_:1},8,["true-value","disabled","false-value","modelValue"])])}]]);export{f as I};
