import{g as h,i as g,aH as v,H as k,a as x,_ as r,j as o,f as C,bG as b}from"./main-634.js";import{F as c}from"./bf-767-388.js";import{S as j}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 U({type:e}){const{fieldKey:s}=h(),[d,u]=g(v),i=k(d[s]),{css:l}=x(),a={checked:{id:"chek-val-stng",title:r("Checked Value"),testId:"chek-val-inp",ariaLabel:"Checked value"},unchecked:{id:"unchek-val-stng",title:r("Unchecked Value"),testId:"unchek-val-inp",ariaLabel:"Unchecked value"}}[e],m=i.msg[e],p=t=>{i.msg[e]=t;const n=C(d,f=>{f[s]=i});u(n),b({event:`${e[0].toUpperCase()+e.slice(1)} Value Modified to "${t}"`,type:`${e}_value_modify`,state:{fields:n,fieldKey:s}})};return o.jsx(j,{id:a.id,title:a.title,className:l(c.fieldSection),open:!0,children:o.jsx("div",{className:l(c.placeholder),children:o.jsx("input",{"data-testid":a.testId,"aria-label":a.ariaLabel,className:l(c.input),type:"text",value:m||"",onChange:t=>p(t.target.value)})})})}export{U as default};
