System.register(["../../../../common/preload-helper-legacy.CIXZiioE.js","../../index-legacy.CKwsq3d1.js","../../../../common/settings-store-legacy.BzmgUa8U.js","../../../../common/GroupControl.vue_vue_type_style_index_0_scoped_ac0e52be_lang-legacy.BhDSN6Mf.js","../../../../common/DnDDataTableControl.vue_vue_type_style_index_0_scoped_0b913e4f_lang-legacy.D1tDIuyM.js","../../../../common/GroupConditionalControl.vue_vue_type_style_index_0_scoped_96558d5e_lang-legacy.CHJO3hx-.js","../../../../common/LabelControl.vue_vue_type_script_setup_true_lang-legacy.9mLv6sKk.js","../../../../common/OptionsControl.vue_vue_type_style_index_0_scoped_f1f8db36_lang-legacy.Czfm27ET.js","../../../../common/index-legacy.CpVkut83.js","../../../../common/index-legacy.CO4MsCT9.js","../../../../common/motion-legacy.C4TziduP.js","../../../../common/Checkbox-legacy.BxM0QxXZ.js","../../../../common/FormItemContext-legacy.CWXRIB7M.js","../../../../common/createContext-legacy.DxkS4L9s.js"],function(e,l){"use strict";var n,o,a,t,u,c,s,r,d,i,_,v,p,m,y;return{setters:[e=>{n=e.d,o=e.ar,a=e.bm,t=e.A,u=e.bn,c=e.bo,s=e.bp,r=e.h,d=e.a9,i=e.bu,_=e.br},e=>{v=e.p},e=>{p=e.u},null,null,null,e=>{m=e._},null,e=>{y=e.C},null,null,null,null,null],execute:function(){const l={class:"wwp-row-handle"},g={class:"wwp-left-content"},b={class:"wwp-right-content"},j=["innerHTML"],f=["innerHTML"];e("default",n({__name:"CheckboxControl",props:{params:{type:Object,required:!0}},emits:["fieldData"],setup(e,{emit:n}){var x;const C=e,{params:h}=o(C),w=p(),{showPopup:k,componentUpgrade:D}=a(w),L=h.value;let T=!1;"yes"!==L.default&&"true"!==L.default||(T=!0);const H=t(T),M=t(null!==(x=L.disabled)&&void 0!==x&&x),q=n,G=t([]);H.value&&!M.value&&(G.value[L.id]="yes",q("fieldData",G.value));const O=()=>{void 0!==L.pro&&null!==L.pro?(void 0!==L.pro_on_active&&null!==L.pro_on_active?L.pro_on_active&&H.value&&(k.value=!0,H.value=!1):(k.value=!0,H.value=!H.value),D.value=L.pro):(G.value[L.id]=H.value?"yes":"no",q("fieldData",G.value))};return(e,n)=>{var o,a;return u(),c("div",l,[s("div",g,[r(d(m),{params:d(L)},null,8,["params"])]),s("div",b,[r(d(y),{class:"wwp-checkbox-control",checked:H.value,"onUpdate:checked":n[0]||(n[0]=e=>H.value=e),name:d(L).id,disabled:M.value,onChange:O},{default:i(()=>{var e,l;return[s("span",{innerHTML:d(v)(null!==(e=null===(l=d(L))||void 0===l?void 0:l.input_label)&&void 0!==e?e:"")},null,8,j)]}),_:1},8,["checked","name","disabled"]),"undefined"!==d(L).description?(u(),c("p",{key:0,innerHTML:d(v)(null!==(o=null===(a=d(L))||void 0===a?void 0:a.description)&&void 0!==o?o:"")},null,8,f)):_("",!0)])])}}}))}}});
