import{g as y,i as v,aH as x,u as z,b2 as L,H as P,a as C,j as o,_ as n,h as i,f as b,e9 as k,bG as j}from"./main-634.js";import{F as w}from"./bf-767-388.js";import{S as $}from"./bf-982-242.js";import{C as f}from"./bf-577-275.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";const _={showFileList:"Show File List",showFilePreview:"Show File Preview",showFileSize:"Show File Size"};function G(){const{fieldKey:s}=y(),[h,F]=v(x),S=z(L),t=P(h[s]),{css:l}=C(),{showFileList:a,showFilePreview:m,showFileSize:g}=t.config,d=(e,c)=>{t.config[e]=c;const r=b(h,u=>{u[s]=t});F(r),["showFileSize","showFilePreview","showFileList"].includes(e)&&c&&k(S,e);const p=_[e]||e;j({event:`${p} '${c?"On":"Off"}': ${t.lbl||s}`,type:`${e}_changed`,state:{fields:r,fldKey:s}})};return o.jsx($,{id:"shw-fil-lst-stng",title:n("Show File List"),toggleAction:e=>d("showFileList",e.target.checked),toggleChecked:a,className:l(w.fieldSection,w.hover_tip,i.px10),switching:!0,tip:"By enabling this feature, you will see file list with preview and size",tipProps:{width:200,icnSize:17},open:a,disable:!a,proProperty:"showFileList",children:o.jsxs("div",{className:l(i.ml1),children:[o.jsx(f,{id:"shw-fil-prvw",className:l(i.mr2,i.mt2,i.fw500),checked:m,title:n("Show File Preview"),onChange:e=>d("showFilePreview",e.target.checked)}),o.jsx(f,{id:"shw-fil-siz",className:l(i.mr2,i.mt2,i.fw500),checked:g,title:n("Show File Size"),onChange:e=>d("showFileSize",e.target.checked)})]})})}export{G as default};
