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