import{g as u,i as m,aH as y,a as k,H as b,j as l,_ as g,f as _,bG as v}from"./main-634.js";import{F as c}from"./bf-767-388.js";import{S as x}from"./bf-497-246.js";import"./bf-25-81.js";function D(){var i;const{fieldKey:t}=u(),[s,o]=m(y),{css:n}=k(),e=b(s[t]),f=!!((i=e.valid)!=null&&i.checked),r=h=>{const{checked:d}=h.target;d?e.valid.checked=!0:delete e.valid.checked;const a=_(s,p=>{p[t]=e});o(a),v({event:`Check by default ${d?"on":"off"} : ${e.adminLbl||t}`,type:"set_check_by_default",state:{fields:a,fldKey:t}})};return l.jsx("div",{className:n(c.fieldSection,c.hover_tip,{pr:"36px !important"}),children:l.jsx(x,{id:"chek-by-dflt",tip:"By disabling this option, the field checked by default will be hidden",title:g("Checked by Default"),action:r,isChecked:f})})}export{D as default};
