"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[567,1030,2945],{11030:(e,l,a)=>{a.r(l),a.d(l,{default:()=>t});var i=a(86087),d=a(50567),o=a(10790);const t=(0,i.memo)(e=>(0,o.jsx)("div",{className:"cmplz-color-picker-control",children:e.field.fields.map((l,a)=>(0,o.jsx)(d.default,{item:l,field:e.field},a))}))},32945:(e,l,a)=>{a.r(l),a.d(l,{default:()=>t});var i=a(68394),d=a(86087),o=a(10790);const t=(0,d.memo)(({colorValue:e,onChangeComplete:l})=>{const[a,t]=(0,d.useState)(e);return(0,o.jsx)(i.xk,{color:a,onChange:e=>{t(e.hex)},onChangeComplete:l,disableAlpha:!0})})},50567:(e,l,a)=>{a.r(l),a.d(l,{default:()=>r});var i=a(86087),d=a(32945),o=a(45316),t=a(4219),c=a(10790);const r=e=>{const{updateField:l,setChangedField:a}=(0,t.default)(),[r,n]=(0,i.useState)(),s=e.field.value.hasOwnProperty(e.item.fieldname)?e.field.value[e.item.fieldname]:e.field.default[e.item.fieldname],m=e.item.label;return(0,c.jsxs)(o.bL,{children:[(0,c.jsx)(o.l9,{children:(0,c.jsxs)("div",{className:"cmplz-color-picker-control-item",onClick:e=>{n(e.currentTarget)},children:[(0,c.jsx)("div",{className:"cmplz-color-picker-color",style:{backgroundColor:s}}),m]})}),(0,c.jsx)(o.ZL,{children:(0,c.jsx)(o.UC,{children:(0,c.jsx)(d.default,{colorValue:s,onChangeComplete:i=>{const d={...e.field.value};d[e.item.fieldname]=i.hex,l(e.field.id,d),a(e.field.id,d)}})})})]})}}}]);