var z=Object.defineProperty,b=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var x=(i,e,t)=>e in i?z(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,S=(i,e)=>{for(var t in e||(e={}))M.call(e,t)&&x(i,t,e[t]);if(p)for(var t of p(e))y.call(e,t)&&x(i,t,e[t]);return i},h=(i,e)=>b(i,w(e));import{g as L,i as _,aH as j,H as F,a as P,j as n,_ as $,I as v,f as C,bG as A}from"./main-634.js";import{F as r}from"./bf-767-388.js";import{S as B}from"./bf-982-242.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 H={showMaxSize:"Show Maximum Size",maxSizeLabel:"Maximum Size Label"};function T(){const{fieldKey:i}=L(),[e,t]=_(j),a=F(e[i]),{css:o}=P(),{showMaxSize:l,maxSizeLabel:f}=a.config,d=(s,m)=>{a.config[s]=m;const c=C(e,g=>{g[i]=a});t(c);const u=H[s]||s;A({event:`${u} '${String(m||"Off").replace("true","On")}': ${a.lbl||i}`,type:`${s}_changed`,state:{fields:c,fldKey:i}})};return n.jsx(B,h(S({id:"shw-mxmm-siz-stng",title:$("Show Maximum Size"),toggleAction:s=>d("showMaxSize",s.target.checked),toggleChecked:l,className:o(r.fieldSection,r.hover_tip),switching:!0,tip:"By disabling this option, the field show maximum size will be hidden",tipProps:{width:200,icnSize:17},open:l},v&&{disable:!l}),{isPro:!0,proProperty:"showMaxSize",children:n.jsx("div",{className:o({m:2}),children:n.jsx("input",{"data-testid":"mx-size-label-inp",className:o(r.input),type:"text",value:f,placeholder:"Write a Max Size Label Ex:(Max 2MB)",onChange:s=>d("maxSizeLabel",s.target.value)})})}))}export{T as default};
