import{a as u,g as f,i as F,aH as g,H as h,j as s,_ as v,f as x,bG as y}from"./main-634.js";import{F as l}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";function O(){const{css:o}=u(),{fieldKey:e}=f(),[i,n]=F(g);if(!e)return null;const t=h(i[e]),m=t.adminLbl||"",{valueFormat:d}=t.config,p=a=>{t.config.valueFormat=a;const r=x(i,c=>{c[e]=t});n(r),y({event:`Value Format Changed to '${a}': ${t.lbl||m||e}`,type:"valueFormat_changed",state:{fields:r,fldKey:e}})};return s.jsx(b,{id:"val-frmt-opt-stng",title:v("Value Format Option"),className:o(l.fieldSection),isPro:!0,proProperty:"valueFormatOptions",children:s.jsx("div",{className:o(l.placeholder),children:s.jsx("input",{"data-testid":"val-frmt-opt-inp","aria-label":"Value Format Option",placeholder:"Value Format(Ex: +c #### ### ###)",className:o(l.input),type:"text",value:d||"",onChange:a=>p(a.target.value)})})})}export{O as default};
