| 1 |
import{g as h,i as g,aH as v,z as k,a as x,_ as r,j as o,f as C,bG as b}from"./main-294.js";import{F as c}from"./bf-821-385.js";import{S as j}from"./bf-908-241.js";import"./bf-176-80.js";import"./bf-764-245.js";import"./bf-5-86.js";import"./bf-487-72.js";import"./bf-867-113.js";function y({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{y as default}; |