System.register(["../../../../common/index-legacy.DRKniymH.js","../../../../common/settings-store-legacy.DRLLI9we.js","../../../../common/pinia-legacy.CU8UeoTp.js","../../../../common/PresetControl.vue_vue_type_style_index_0_scoped_c9e2dd9e_lang-legacy.CBGxOGwC.js","../../../../common/Preview.vue_vue_type_style_index_0_scoped_e226939c_lang-legacy.Ceu-Swp9.js","../../../../common/Confirmation.vue_vue_type_script_setup_true_lang-legacy.CIhxBO6H.js","../../../../common/LabelControl.vue_vue_type_script_setup_true_lang-legacy.DL25Ke3f.js","../../../../common/Tooltip.vue_vue_type_script_setup_true_lang-legacy.C9WyNJUi.js","../../../../common/transition-legacy.DZbCmrRe.js","../../../../common/keyboard-legacy.ItkZdbDJ.js","../../../../common/open-closed-legacy.CWZrlJ6W.js","../../../../common/micro-task-legacy.D9KKWy-6.js"],(function(e,t){"use strict";var l,s,a,n,i,o,u,c,r,w,m,p,_,d,v,y,g;return{setters:[e=>{l=e.d,s=e.t,a=e.r,n=e.o,i=e.c,o=e.b,u=e.e,c=e.u,r=e.Z,w=e.$,m=e.a,p=e.Q,_=e.g},e=>{d=e.u},e=>{v=e.s},null,null,null,e=>{y=e._},e=>{g=e._},null,null,null,null],execute:function(){const t={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-mb-2 stwlite-tw-gap-2"},f={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-mb-2 stwlite-tw-gap-2"},b={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-space-x-2"},x=["id"],j=["for"],C=["innerHTML"];e("default",l({__name:"CheckboxControl",props:{params:{type:Object,required:!0}},emits:["fieldData"],setup(e,{emit:l}){const h=e,{params:k}=s(h),T=d(),{showPopup:D,componentUpgrade:L}=v(T),P=k.value;let H=!1;"yes"!==P.default&&"true"!==P.default||(H=!0);const M=a(H),S=a(P.disabled??!1),U=l,q=a([]);M.value&&!S.value&&(q.value[P.id]="yes",U("fieldData",q.value));const A=()=>{void 0!==P.pro&&null!==P.pro?(void 0!==P.pro_on_active&&null!==P.pro_on_active?P.pro_on_active&&M.value&&(D.value=!0,M.value=!1):(D.value=!0,M.value=!M.value),L.value=P.pro):(q.value[P.id]=M.value?"yes":"no",U("fieldData",q.value))};return(e,l)=>(n(),i("div",null,[o("div",t,[u(c(y),{params:c(P)},null,8,["params"])]),o("div",f,[o("div",b,[r(o("input",{id:c(P).id,type:"checkbox",class:"stwlite-tw-h-4 stwlite-tw-w-4 stwlite-tw-rounded stwlite-tw-border-gray-300 stwlite-tw-text-blue-600 focus:stwlite-tw-ring-blue-500","onUpdate:modelValue":l[0]||(l[0]=e=>M.value=e),onChange:A},null,40,x),[[w,M.value]]),o("label",{for:c(P).id,class:"stwlite-tw-text-sm stwlite-tw-text-gray-700"},m(c(P).input_label),9,j)]),u(c(g),{params:c(P)},null,8,["params"])]),"undefined"!==c(P).description?(n(),i("p",{key:0,class:"stwlite-tw-text-sm stwlite-tw-text-gray-600 stwlite-tw-mt-2",innerHTML:c(p)(c(P)?.description??"")},null,8,C)):_("",!0)]))}}))}}}));
