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