import{g as h,i as y,aH as b,a as O,j as S,_ as F,f as $,bG as x}from"./main-634.js";import{F as a}from"./bf-767-388.js";import{S as _}from"./bf-497-246.js";import"./bf-25-81.js";function k({className:d=""}){var e,i,s;const{fieldKey:t}=h(),[n,p]=y(b),{css:r}=O();if(!t)return null;const o=n[t],f=(i=(e=o==null?void 0:o.config)==null?void 0:e.optionIcon)!=null?i:!1,g=(s=o==null?void 0:o.adminLbl)!=null?s:"",m=u=>{const{checked:c}=u.target,l=$(n,I=>{I[t].config.optionIcon=c});p(l),x({event:`Option Icon ${c?"On":"Off"}: ${o.lbl||g||t}`,type:"optionIcon_change",state:{fields:l,fldKey:t}})};return S.jsx(_,{id:"opt-icn-stng",className:`${r(a.fieldSection,a.singleOption)} ${d}`,title:F("Option Icon/Image:"),action:m,isChecked:f,tip:"By disabling this option, the field option icon will be hidden",isPro:!0,proProperty:"optionIcon"})}export{k as default};
