D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
aramrprl
/
www
/
wp-content
/
plugins
/
complianz-gdpr
/
settings
/
build
/
Filename :
1249.6de9f730cac4c47b6e71.js
back
Copy
"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[1249,5228,6716],{25228:(e,l,s)=>{s.r(l),s.d(l,{default:()=>c});var n=s(86087),t=s(21366),a=s(45111),o=s(27723),r=s(10790);const c=(0,n.memo)(({value:e=!1,onChange:l,required:s,defaultValue:n,disabled:c,options:i={},canBeEmpty:d=!0,label:p})=>{if(Array.isArray(i)){let e={};i.map(l=>{e[l.value]=l.label}),i=e}return d?(""===e||!1===e||0===e)&&(e="0",i={0:(0,o.__)("Select an option","complianz-gdpr"),...i}):e||(e=Object.keys(i)[0]),(0,r.jsx)("div",{className:"cmplz-input-group cmplz-select-group",children:(0,r.jsxs)(t.bL,{value:e,defaultValue:n,onValueChange:l,required:s,disabled:c&&!Array.isArray(c),children:[(0,r.jsxs)(t.l9,{className:"cmplz-select-group__trigger",children:[(0,r.jsx)(t.WT,{}),(0,r.jsx)(a.default,{name:"chevron-down"})]}),(0,r.jsxs)(t.UC,{className:"cmplz-select-group__content",position:"popper",children:[(0,r.jsx)(t.PP,{className:"cmplz-select-group__scroll-button",children:(0,r.jsx)(a.default,{name:"chevron-up"})}),(0,r.jsx)(t.LM,{className:"cmplz-select-group__viewport",children:(0,r.jsx)(t.YJ,{children:Object.entries(i).map(([e,l])=>(0,r.jsx)(t.q7,{disabled:Array.isArray(c)&&c.includes(e),className:"cmplz-select-group__item",value:e,children:(0,r.jsx)(t.p4,{children:l})},e))})}),(0,r.jsx)(t.wn,{className:"cmplz-select-group__scroll-button",children:(0,r.jsx)(a.default,{name:"chevron-down"})})]})]})},p)})},56716:(e,l,s)=>{s.r(l),s.d(l,{default:()=>a});var n=s(81621),t=s(9588);const a=(0,n.vt)((e,l)=>({documents:[],documentDataLoaded:!1,processingAgreementOptions:[],proofOfConsentOptions:[],dataBreachOptions:[],region:"",setRegion:l=>{"undefined"!=typeof Storage&&(sessionStorage.cmplzSelectedRegion=l),e(e=>({region:l}))},getRegion:()=>{let l="all";"undefined"!=typeof Storage&&sessionStorage.cmplzSelectedRegion&&(l=sessionStorage.cmplzSelectedRegion),e(e=>({region:l}))},getDocuments:async()=>{const{documents:l,processingAgreementOptions:s,proofOfConsentOptions:n,dataBreachOptions:a}=await t.doAction("documents_block_data").then(e=>e);e(e=>({documentDataLoaded:!0,documents:l,processingAgreementOptions:s,proofOfConsentOptions:n,dataBreachOptions:a}))}}))},61249:(e,l,s)=>{s.r(l),s.d(l,{default:()=>i});var n=s(86087),t=s(27723),a=s(4219),o=s(56716),r=s(25228),c=s(10790);const i=e=>{const{getFieldValue:l,fieldsLoaded:s}=(0,a.default)(),{getRegion:i,setRegion:d,region:p}=(0,o.default)();if((0,n.useEffect)(()=>{i()},[]),!s)return null;let u=l("regions");Array.isArray(u)||(u=[u]),0===u.length&&(u=["eu"]),u||(u=[]);let g=[];for(const e of u){if(!cmplz_settings.regions.hasOwnProperty(e))continue;let l={};l.label=cmplz_settings.regions[e].label_full,l.value=e,g.push(l)}let m={};return m.label=(0,t.__)("General","complianz-gdpr"),m.value="all",g.push(m),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("h3",{className:"cmplz-grid-title cmplz-h4",children:(0,t.__)("Documents","complianz-gdpr")}),(0,c.jsx)("div",{className:"cmplz-grid-item-controls",children:(0,c.jsx)(r.default,{defaultValue:"all",canBeEmpty:!1,onChange:e=>d(e),value:p,options:g})})]})}}}]);