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