import{az as e}from"./vendor-element-plus.js?ver=3.1.0";import{c as l,o as a,d as s,w as t,b as d,L as o,P as i}from"./vendor.js?ver=3.1.0";import{_ as c}from"./fc-bits-ui.js?ver=3.1.0";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,i(c.$t(b.field.checkbox_label)),1),b.field.checkbox_description?(a(),l("span",u,i(c.$t(b.field.checkbox_description)),1)):o("",!0)])],void 0),_:1},8,["true-value","disabled","false-value","modelValue"])])}]]);export{f as I};
