| 1 |
import{g as T,i as A,a as L,j as p,_ as N,f as w,bI as y,b1 as k}from"./main-762.js";import{F as t}from"./bf-850-326.js";import{S as B}from"./bf-45-176.js";import"./bf-685-46.js";import"./bf-111-180.js";import"./bf-848-68.js";import"./bf-81-43.js";import"./bf-871-60.js";/* empty css */import"./bf-435-62.js";import"./bf-653-63.js";import"./bf-775-182.js";function U({className:v="",propsFldKey:s}){var f,P,u,S,b;const{fieldKey:x}=T(),o=s!=null?s:x,[i,m]=A(k),{css:h}=L();if(!o)return null;const e=i[o],n=(P=(f=e==null?void 0:e.config)==null?void 0:f.showSearchPh)!=null?P:!1,$=(S=(u=e==null?void 0:e.config)==null?void 0:u.searchPlaceholder)!=null?S:"",g=(b=e==null?void 0:e.adminLbl)!=null?b:"",_=d=>{const{checked:a}=d.target,c=w(i,C=>{const r=C[o];a?(r.config.searchPlaceholder="Search Options...",r.config.showSearchPh=!0):(r.config.searchPlaceholder="",r.config.showSearchPh=!1)}),l=a?"Show":"Hide";m(c),y({event:`${l} Search Placeholder: ${e.lbl||g||o}`,type:`${l.toLowerCase()}_placeholder`,state:{fields:c,fldKey:o}})},j=d=>{const{value:a}=d.target,c=w(i,l=>{l[o].config.searchPlaceholder=a});m(c),y({event:`Search Placeholder updated: ${e.lbl||g||o}`,type:"change_placeholder",state:{fields:c,fldKey:o}})};return p.jsx(B,{id:"srch-plchldr-stng",title:N("Search Placeholder"),className:`${h(t.fieldSection,t.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:h(t.placeholder),children:p.jsx("input",{"data-testid":"srch-plchldr-stng-inp","aria-label":"Placeholder for Search",placeholder:"Type Placeholder here...",className:h(t.input),type:"text",value:$,onChange:j})})})}export{U as default}; |