| 1 |
import{g as $,i as p,a as x,j as _,_ as j,f as y,bI as O,b1 as T}from"./main-762.js";import{F as o}from"./bf-850-326.js";import{S as k}from"./bf-111-180.js";import"./bf-685-46.js";function A({className:d="",propsFldKey:s}){var t,i,n;const{fieldKey:b}=$(),a=s!=null?s:b,[l,f]=p(T),{css:h}=x();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=y(l,S=>{S[a].config.searchClearable=c});f(r),O({event:`Search Clearable ${c?"On":"Off"}: ${e.lbl||m||a}`,type:"searchClearable_change",state:{fields:r,fldKey:a}})};return _.jsx(k,{id:"srch-clrbl-stng",className:`${h(o.fieldSection,o.singleOption)} ${d}`,title:j("Search Clearable:"),action:u,isChecked:g,tip:"By disabling this option, the field search clearable will be hidden"})}export{A as default}; |