| 1 |
import{g as m,i as w,a as b,j as y,_ as F,f as $,bI as x,b1 as I}from"./main-762.js";import{F as r}from"./bf-850-326.js";import{S as _}from"./bf-111-180.js";import"./bf-685-46.js";function B({className:l=""}){var o,n,i;const{fieldKey:s}=m(),[t,d]=w(I),{css:h}=b();if(!s)return null;const e=t[s],p=(n=(o=e==null?void 0:e.config)==null?void 0:o.showSearch)!=null?n:!0,u=(i=e==null?void 0:e.adminLbl)!=null?i:"",f=g=>{const{checked:a}=g.target,c=$(t,S=>{S[s].config.showSearch=a});d(c),x({event:`Search Input ${a?"On":"Off"}: ${e.lbl||u||s}`,type:"showSearch_change",state:{fields:c,fldKey:s}})};return y.jsx(_,{id:"show-srch-stng",className:`${h(r.fieldSection,r.singleOption)} ${l}`,title:F("Show Search Input"),action:f,isChecked:p,tip:"By disabling this option, the dropdown search input will be hidden"})}export{B as default}; |