import{g as T,i as A,aH as H,a as L,j as p,_ as N,f as w,bG as y}from"./main-634.js";import{F as s}from"./bf-767-388.js";import{S as k}from"./bf-982-242.js";import"./bf-25-81.js";import"./bf-497-246.js";import"./bf-641-107.js";import"./bf-400-72.js";import"./bf-438-114.js";function I({className:v="",propsFldKey:t}){var m,P,u,S,b;const{fieldKey:x}=T(),c=t!=null?t:x,[h,g]=A(H),{css:i}=L();if(!c)return null;const e=h[c],n=(P=(m=e==null?void 0:e.config)==null?void 0:m.showSearchPh)!=null?P:!1,$=(S=(u=e==null?void 0:e.config)==null?void 0:u.searchPlaceholder)!=null?S:"",f=(b=e==null?void 0:e.adminLbl)!=null?b:"",_=d=>{const{checked:l}=d.target,a=w(h,C=>{const r=C[c];l?(r.config.searchPlaceholder="Search Options...",r.config.showSearchPh=!0):(r.config.searchPlaceholder="",r.config.showSearchPh=!1)}),o=l?"Show":"Hide";g(a),y({event:`${o} Search Placeholder: ${e.lbl||f||c}`,type:`${o.toLowerCase()}_placeholder`,state:{fields:a,fldKey:c}})},j=d=>{const{value:l}=d.target,a=w(h,o=>{o[c].config.searchPlaceholder=l});g(a),y({event:`Search Placeholder updated: ${e.lbl||f||c}`,type:"change_placeholder",state:{fields:a,fldKey:c}})};return p.jsx(k,{id:"srch-plchldr-stng",title:N("Search Placeholder"),className:`${i(s.fieldSection,s.hover_tip)} ${v}`,switching:!0,tip:"By disabling this option, the field search placeholder will be remove",tipProps:{width:250,icnSize:17},toggleAction:_,toggleChecked:n,open:n,disable:!n,proProperty:"searchPlaceholder",children:p.jsx("div",{className:i(s.placeholder),children:p.jsx("input",{"data-testid":"srch-plchldr-stng-inp","aria-label":"Placeholder for Search",placeholder:"Type Placeholder here...",className:i(s.input),type:"text",value:$,onChange:j})})})}export{I as default};
