import{g as O,i as h,aH as b,a as y,j as F,_ as $,f as x,bG as C}from"./main-634.js";import{F as a}from"./bf-767-388.js";import{S as _}from"./bf-497-246.js";import"./bf-25-81.js";function H({className:d=""}){var l,n,o;const{fieldKey:s}=O(),[t,r]=h(b),{css:f}=y();if(!s)return null;const e=t[s],g=(n=(l=e==null?void 0:e.config)==null?void 0:l.closeOnSelect)!=null?n:!1,m=(o=e==null?void 0:e.adminLbl)!=null?o:"",u=S=>{const{checked:i}=S.target,c=x(t,p=>{p[s].config.closeOnSelect=i});r(c),C({event:`Close On Select ${i?"On":"Off"}: ${e.lbl||m||s}`,type:"closeOnSelect_change",state:{fields:c,fldKey:s}})};return F.jsx(_,{id:"cls-on-slct-stng",className:`${f(a.fieldSection,a.singleOption)} ${d}`,title:$("Close On Select:"),action:u,isChecked:g,isPro:!0,tip:"By disabling this option, the field close on select will be hidden"})}export{H as default};
