import{g as b,i as g,A as v,r as k,a as S,j as e,_ as n,E as F,h as x,f as C,bD as N,aF as D}from"./main-343.js";import{a as y}from"./bf-794-390.js";import{F as s}from"./bf-838-284.js";import{C as A}from"./bf-649-79.js";import{F as w,A as E,b as R,c as $}from"./bf-622-233.js";import{D as L}from"./bf-245-393.js";import{F as M}from"./bf-773-387.js";import{F as i}from"./bf-505-323.js";import{R as P}from"./bf-276-389.js";import{S as u}from"./bf-711-253.js";import"./bf-498-326.js";import"./bf-689-322.js";import"./bf-697-110.js";import"./bf-90-70.js";import"./bf-594-113.js";import"./bf-983-247.js";import"./bf-810-248.js";import"./bf-603-251.js";import"./bf-453-86.js";import"./bf-190-88.js";import"./bf-914-249.js";import"./bf-870-250.js";import"./bf-411-252.js";import"./bf-901-254.js";import"./bf-656-255.js";import"./bf-806-256.js";import"./bf-519-87.js";import"./bf-318-257.js";import"./bf-437-78.js";import"./bf-123-272.js";import"./bf-772-285.js";import"./bf-209-80.js";import"./bf-529-105.js";import"./bf-730-282.js";import"./bf-623-283.js";function fe(){const{fieldKey:r}=b(),[c,h]=g(D),a=v(c[r]),[j,o]=k.useState(!1),{css:t}=S(),m=(l,d)=>{a.msg[d]=l;const p=C(c,f=>{f[r]=a});h(p),N({event:`${d[0].toUpperCase()+d.slice(1)} Value Modified to "${l}"`,type:`${d}_value_modify`,state:{fields:p,fldKey:r}})};return window.selectedFieldData=a,e.jsxs("div",{children:[e.jsx(w,{title:"Field Settings",subtitle:a.typ,fieldKey:r}),e.jsxs("div",{className:t(s.fieldSection),children:[e.jsxs("div",{className:`flx flx-between ${s.hover_tip}`,children:[e.jsxs("div",{className:"flx",children:[e.jsx("b",{children:"Label "}),e.jsx(A,{width:250,icnSize:17,className:"hover-tip",children:e.jsx("div",{className:"txt-body",children:n("Edit GDPR Concent label by clicking on edit icon")})})]}),e.jsx("span",{"data-testid":"lbl-edt-btn",role:"button",tabIndex:"-1",className:"mr-2 cp",onClick:()=>o(!0),onKeyDown:()=>o(!0),children:e.jsx(F,{size:19})})]}),e.jsx("div",{className:`${t(y.errMsgBox)} ${t(x.mt2)}`,tabIndex:"0",role:"button",onClick:()=>o(!0),onKeyDown:()=>o(!0),children:e.jsx("p",{className:t(x.m0),children:"Click to edit GDPR Concent Label"})})]}),e.jsx(i,{}),e.jsx(L,{labelModal:j,setLabelModal:o,title:n("Edit GDPR Concent Label")}),e.jsx(E,{}),e.jsx(i,{}),e.jsx(R,{}),e.jsx(i,{}),e.jsx(P,{asteriskIsAllow:!1}),e.jsx(i,{}),e.jsx(M,{}),e.jsx(i,{}),e.jsx($,{}),e.jsx(i,{}),e.jsx(u,{id:"chek-val-stng",title:n("Checked Value"),className:t(s.fieldSection),open:!0,children:e.jsx("div",{className:t(s.placeholder),children:e.jsx("input",{"data-testid":"chek-val-inp","aria-label":"Checked value",className:t(s.input),type:"text",value:a.msg.checked||"",onChange:l=>m(l.target.value,"checked")})})}),e.jsx(i,{}),e.jsx(u,{id:"unchek-val-stng",title:n("Unchecked Value"),className:t(s.fieldSection),open:!0,children:e.jsx("div",{className:t(s.placeholder),children:e.jsx("input",{"data-testid":"unchek-val-inp","aria-label":"Uncheked value",className:t(s.input),type:"text",value:a.msg.unchecked||"",onChange:l=>m(l.target.value,"unchecked")})})}),e.jsx(i,{})]})}export{fe as default};
