System.register(["../../../../common/preload-helper-legacy.CIXZiioE.js","../../index-legacy.Bb8z3cGQ.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_a595eea6_lang-legacy.BOGbhEW3.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,i,d,_,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,i=e.a9,d=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"],x=["innerHTML"];e("default",n({__name:"CheckboxControl",props:{params:{type:Object,required:!0}},emits:["fieldData"],setup(e,{emit:n}){var C;const f=e,{params:h}=o(f),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!==(C=L.disabled)&&void 0!==C&&C),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(i(m),{params:i(L)},null,8,["params"])]),s("div",b,[r(i(y),{class:"wwp-checkbox-control",checked:H.value,"onUpdate:checked":n[0]||(n[0]=e=>H.value=e),name:i(L).id,disabled:M.value,onChange:O},{default:d(()=>{var e,l;return[s("span",{innerHTML:i(v)(null!==(e=null===(l=i(L))||void 0===l?void 0:l.input_label)&&void 0!==e?e:"")},null,8,j)]}),_:1},8,["checked","name","disabled"]),"undefined"!==i(L).description?(u(),c("p",{key:0,innerHTML:i(v)(null!==(o=null===(a=i(L))||void 0===a?void 0:a.description)&&void 0!==o?o:"")},null,8,x)):_("",!0)])])}}}))}}});
