import{g as b,i as x,aH as y,a as F,j as O,_ as $,f as _,bG as j}from"./main-634.js";import{F as h}from"./bf-767-388.js";import{S as T}from"./bf-497-246.js";import"./bf-25-81.js";function L({className:d=""}){var o,i,l,n,c;const{fieldKey:s}=b(),[t,r]=x(y),{css:f}=F();if(!s)return null;const e=t[s],u=(i=(o=e==null?void 0:e.config)==null?void 0:o.multipleSelect)!=null?i:!1,m=(n=(l=e==null?void 0:e.config)==null?void 0:l.showChip)!=null?n:!1,g=(c=e==null?void 0:e.adminLbl)!=null?c:"";if(!u)return null;const S=w=>{const{checked:a}=w.target,p=_(t,C=>{C[s].config.showChip=a});r(p),j({event:`Show Chip ${a?"On":"Off"}: ${e.lbl||g||s}`,type:"showChip_change",state:{fields:p,fldKey:s}})};return O.jsx(T,{id:"show-chip",className:`${f(h.fieldSection,h.singleOption)} ${d}`,title:$("Show Selected Option Chip:"),action:S,isChecked:m,tip:"Show selected options as chip (clearable). If disabled, count of selected options will be shown as text."})}export{L as default};
