import{g as u,i as g,a as F,j as l,_,I as y,f as D,bD as v,aF as x}from"./main-343.js";import{F as s}from"./bf-838-284.js";import{t as S}from"./bf-689-322.js";import{a as h}from"./bf-603-251.js";function I({cls:o,tip:j}){const{fieldKey:e}=u(),[i,r]=g(x),n=i[e].valid.disabled||!1,{css:f}=F(),c=p=>{if(!y)return;const{checked:t}=p.target,a=D(i,m=>{const d=m[e];t?d.valid.disabled=!0:delete d.valid.disabled}),b=t?"on":"off";r(a),v({event:`Disabled field ${b}`,type:"disabled_field_on_off",state:{fields:a,fldKey:e}})};return l.jsx("div",{className:`${f(s.fieldSection,s.hover_tip,s.singleOption)} ${o}`,children:l.jsx(h,{id:"fld-dsbl-stng",tip:S.disabled,title:_("Disabled"),action:c,isChecked:n,isPro:!0,proProperty:"disabled"})})}export{I as F};
