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