"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[632,1136,4056],{41136:(e,t,l)=>{l.r(t),l.d(t,{default:()=>o});var a=l(30809),n=l(61744);const o=(0,a.Su)(((e,t)=>({documents:[],documentDataLoaded:!1,processingAgreementOptions:[],proofOfConsentOptions:[],dataBreachOptions:[],region:"",setRegion:t=>{"undefined"!=typeof Storage&&(sessionStorage.cmplzSelectedRegion=t),e((e=>({region:t})))},getRegion:()=>{let t="all";"undefined"!=typeof Storage&&sessionStorage.cmplzSelectedRegion&&(t=sessionStorage.cmplzSelectedRegion),e((e=>({region:t})))},getDocuments:async()=>{const{documents:t,processingAgreementOptions:l,proofOfConsentOptions:a,dataBreachOptions:o}=await n.doAction("documents_block_data").then((e=>e));e((e=>({documentDataLoaded:!0,documents:t,processingAgreementOptions:l,proofOfConsentOptions:a,dataBreachOptions:o})))}})))},10632:(e,t,l)=>{l.r(t),l.d(t,{default:()=>i});var a=l(51280),n=l(88496),o=l(93396),r=l(25536),s=l(41136),c=l(14056);const i=e=>{const{getFieldValue:t,fieldsLoaded:l}=(0,r.default)(),{getRegion:i,setRegion:m,region:p}=(0,s.default)();if((0,n.useEffect)((()=>{i()}),[]),!l)return null;let u=t("regions");Array.isArray(u)||(u=[u]),0===u.length&&(u=["eu"]),u||(u=[]);let d=[];for(const e of u){if(!cmplz_settings.regions.hasOwnProperty(e))continue;let t={};t.label=cmplz_settings.regions[e].label_full,t.value=e,d.push(t)}let g={};return g.label=(0,o.__)("General","complianz-gdpr"),g.value="all",d.push(g),(0,a.createElement)(a.Fragment,null,(0,a.createElement)("h3",{className:"cmplz-grid-title cmplz-h4"},(0,o.__)("Documents","complianz-gdpr")),(0,a.createElement)("div",{className:"cmplz-grid-item-controls"},(0,a.createElement)(c.default,{defaultValue:"all",canBeEmpty:!1,onChange:e=>m(e),value:p,options:d})))}},14056:(e,t,l)=>{l.r(t),l.d(t,{default:()=>c});var a=l(51280),n=l(88496),o=l(39992),r=l(15832),s=l(93396);const c=(0,n.memo)((({value:e=!1,onChange:t,required:l,defaultValue:n,disabled:c,options:i={},canBeEmpty:m=!0,label:p})=>{if(Array.isArray(i)){let e={};i.map((t=>{e[t.value]=t.label})),i=e}return m?(""===e||!1===e||0===e)&&(e="0",i={0:(0,s.__)("Select an option","complianz-gdpr"),...i}):e||(e=Object.keys(i)[0]),(0,a.createElement)("div",{className:"cmplz-input-group cmplz-select-group",key:p},(0,a.createElement)(o.Ss,{value:e,defaultValue:n,onValueChange:t,required:l,disabled:c&&!Array.isArray(c)},(0,a.createElement)(o.mf,{className:"cmplz-select-group__trigger"},(0,a.createElement)(o.s3,null),(0,a.createElement)(r.default,{name:"chevron-down"})),(0,a.createElement)(o.kP,{className:"cmplz-select-group__content",position:"popper"},(0,a.createElement)(o.O4,{className:"cmplz-select-group__scroll-button"},(0,a.createElement)(r.default,{name:"chevron-up"})),(0,a.createElement)(o.mm,{className:"cmplz-select-group__viewport"},(0,a.createElement)(o.WM,null,Object.entries(i).map((([e,t])=>(0,a.createElement)(o.iY,{disabled:Array.isArray(c)&&c.includes(e),className:"cmplz-select-group__item",key:e,value:e},(0,a.createElement)(o.CC,null,t)))))),(0,a.createElement)(o.y8,{className:"cmplz-select-group__scroll-button"},(0,a.createElement)(r.default,{name:"chevron-down"})))))}))}}]);