| 1 |
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 _,H as j,a as F,j as r,I as P,_ as $,f as v,bI as C,b1 as A}from"./main-762.js";import{F as n}from"./bf-850-326.js";import{S as B}from"./bf-45-176.js";import"./bf-685-46.js";import"./bf-111-180.js";import"./bf-848-68.js";import"./bf-81-43.js";import"./bf-871-60.js";/* empty css */import"./bf-435-62.js";import"./bf-653-63.js";import"./bf-775-182.js";const I={showMaxSize:"Show Maximum Size",maxSizeLabel:"Maximum Size Label"};function G(){const{fieldKey:i}=L(),[e,t]=_(A),a=j(e[i]),{css:o}=F(),{showMaxSize:l,maxSizeLabel:f}=a.config,m=(s,d)=>{a.config[s]=d;const c=v(e,g=>{g[i]=a});t(c);const u=I[s]||s;C({event:`${u} '${String(d||"Off").replace("true","On")}': ${a.lbl||i}`,type:`${s}_changed`,state:{fields:c,fldKey:i}})};return r.jsx(B,h(S({id:"shw-mxmm-siz-stng",title:$("Show Maximum Size"),toggleAction:s=>m("showMaxSize",s.target.checked),toggleChecked:l,className:o(n.fieldSection,n.hover_tip),switching:!0,tip:"By disabling this option, the field show maximum size will be hidden",tipProps:{width:200,icnSize:17},open:l},P&&{disable:!l}),{isPro:!0,proProperty:"showMaxSize",children:r.jsx("div",{className:o({m:2}),children:r.jsx("input",{"data-testid":"mx-size-label-inp",className:o(n.input),type:"text",value:f,placeholder:"Write a Max Size Label Ex:(Max 2MB)",onChange:s=>m("maxSizeLabel",s.target.value)})})}))}export{G as default}; |