"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[3420,4448],{23420:(e,l,t)=>{t.r(l),t.d(l,{default:()=>i});var a=t(51280),n=t(88496),c=t(94448),o=t(85760),r=t(25536);const m=e=>{const{updateField:l,setChangedField:t}=(0,r.default)(),[m,i]=(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.Ss,null,(0,a.createElement)(o.mf,null,(0,a.createElement)("div",{className:"cmplz-color-picker-control-item",onClick:e=>{i(e.currentTarget)}},(0,a.createElement)("div",{className:"cmplz-color-picker-color",style:{backgroundColor:d}}),u)),(0,a.createElement)(o.a8,null,(0,a.createElement)(o.kP,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)}}))))},i=(0,n.memo)((e=>(0,a.createElement)("div",{className:"cmplz-color-picker-control"},e.field.fields.map(((l,t)=>(0,a.createElement)(m,{key:t,item:l,field:e.field}))))))},94448:(e,l,t)=>{t.r(l),t.d(l,{default:()=>o});var a=t(51280),n=t(43408),c=t(88496);const o=(0,c.memo)((({colorValue:e,onChangeComplete:l})=>{const[t,o]=(0,c.useState)(e);return(0,a.createElement)(n.Wm,{color:t,onChange:e=>{o(e.hex)},onChangeComplete:l,disableAlpha:!0})}))}}]);