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