D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
aramrprl
/
www
/
wp-content
/
plugins
/
complianz-gdpr
/
settings
/
build
/
Filename :
9567.1bb4efce88343dfca145.js
back
Copy
"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[1699,3192,5228,6716,8217,9567],{3192:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var o=n(27723),s=n(86087),a=n(56716),i=n(4219),r=n(98217),l=n(10790);const c=()=>{const{getFieldValue:e,fields:t}=(0,i.default)(),[n,c]=(0,s.useState)(!1);(0,s.useEffect)(()=>{c(e("records_of_consent"))},[t]);const{processingAgreementOptions:d,dataBreachOptions:p,proofOfConsentOptions:m}=(0,a.default)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{className:"cmplz-h4",children:(0,o.__)("Other documents","complianz-gdpr")}),(0,l.jsx)(r.default,{type:"processing-agreements",link:"#tools/processing-agreements",name:(0,o.__)("Processing Agreement","complianz-gdpr"),options:d}),(0,l.jsx)(r.default,{type:"data-breaches",link:"#tools/data-breach-reports",name:(0,o.__)("Data Breach","complianz-gdpr"),options:p}),(0,l.jsx)(r.default,{type:"proof-of-consent",link:n?"#tools/records-of-consent":"#tools/proof-of-consent",name:(0,o.__)("Proof of Consent","complianz-gdpr"),options:m})]})}},19567:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var o=n(86087),s=n(56716),a=n(91699),i=n(3192),r=n(45111),l=n(27723),c=n(4219),d=n(99695),p=n(96979),m=n(10790);const u=e=>{const{document:t}=e,{showSavedSettingsNotice:n}=(0,c.default)();let o="sync"===t.status?"green":"grey",s="sync"===t.status?(0,l.__)("Document is kept up to date by Complianz","complianz-gdpr"):(0,l.__)("Document is not kept up to date by Complianz","complianz-gdpr"),a=t.exists?"green":"grey",i=t.exists?(0,l.__)("Validated","complianz-gdpr"):(0,l.__)("Missing document","complianz-gdpr"),d=t.required?(0,l.__)("Click to copy the document shortcode","complianz-gdpr"):(0,l.__)("Not enabled","complianz-gdpr");return t.required&&t.exists||(a=o="grey",i=s=(0,l.__)("Not enabled","complianz-gdpr")),(0,m.jsxs)("div",{className:"cmplz-single-document",children:[(0,m.jsxs)("div",{className:"cmplz-single-document-title",children:[t.permalink&&(0,m.jsx)("a",{href:t.permalink,children:t.title}),!t.permalink&&t.readmore&&(0,m.jsx)("a",{href:t.readmore,children:t.title}),!t.permalink&&!t.readmore&&t.title]}),(0,m.jsx)(r.default,{name:"sync",color:o,tooltip:s,size:14}),(0,m.jsx)(r.default,{name:"circle-check",color:a,tooltip:i,size:14}),(0,m.jsx)("div",{onClick:e=>((e,t)=>{let o;e.target.classList.add("cmplz-click-animation");let s=window.document.createElement("input");window.document.getElementsByTagName("body")[0].appendChild(s),s.value=t,s.select();try{o=window.document.execCommand("copy")}catch(e){o=!1}s.parentElement.removeChild(s),o&&n((0,l.__)("Copied shortcode","complianz-gdpr"))})(e,t.shortcode),children:(0,m.jsx)(r.default,{name:"shortcode",color:a,tooltip:d,size:14})})]})},g=()=>{const{region:e,documentDataLoaded:t,getDocuments:n,documents:r}=(0,s.default)(),{documentsChanged:l}=(0,p.UseDocumentsData)(),[c,g]=(0,o.useState)([]);return(0,o.useEffect)(()=>{t||n()},[]),(0,o.useEffect)(()=>{t&&l&&n()},[l]),(0,o.useEffect)(()=>{let t=r.filter(t=>t.region===e)[0];t&&(t=t.documents,g(t))},[e,r]),t?(0,m.jsxs)(m.Fragment,{children:[c.map((e,t)=>(0,m.jsx)(u,{document:e},t)),!cmplz_settings.is_premium&&(0,m.jsx)(a.default,{}),cmplz_settings.is_premium&&(0,m.jsx)(i.default,{})]}):(0,m.jsx)(d.default,{lines:"3"})}},25228:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var o=n(86087),s=n(21366),a=n(45111),i=n(27723),r=n(10790);const l=(0,o.memo)(({value:e=!1,onChange:t,required:n,defaultValue:o,disabled:l,options:c={},canBeEmpty:d=!0,label:p})=>{if(Array.isArray(c)){let e={};c.map(t=>{e[t.value]=t.label}),c=e}return d?(""===e||!1===e||0===e)&&(e="0",c={0:(0,i.__)("Select an option","complianz-gdpr"),...c}):e||(e=Object.keys(c)[0]),(0,r.jsx)("div",{className:"cmplz-input-group cmplz-select-group",children:(0,r.jsxs)(s.bL,{value:e,defaultValue:o,onValueChange:t,required:n,disabled:l&&!Array.isArray(l),children:[(0,r.jsxs)(s.l9,{className:"cmplz-select-group__trigger",children:[(0,r.jsx)(s.WT,{}),(0,r.jsx)(a.default,{name:"chevron-down"})]}),(0,r.jsxs)(s.UC,{className:"cmplz-select-group__content",position:"popper",children:[(0,r.jsx)(s.PP,{className:"cmplz-select-group__scroll-button",children:(0,r.jsx)(a.default,{name:"chevron-up"})}),(0,r.jsx)(s.LM,{className:"cmplz-select-group__viewport",children:(0,r.jsx)(s.YJ,{children:Object.entries(c).map(([e,t])=>(0,r.jsx)(s.q7,{disabled:Array.isArray(l)&&l.includes(e),className:"cmplz-select-group__item",value:e,children:(0,r.jsx)(s.p4,{children:t})},e))})}),(0,r.jsx)(s.wn,{className:"cmplz-select-group__scroll-button",children:(0,r.jsx)(a.default,{name:"chevron-down"})})]})]})},p)})},56716:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var o=n(81621),s=n(9588);const a=(0,o.vt)((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:n,proofOfConsentOptions:o,dataBreachOptions:a}=await s.doAction("documents_block_data").then(e=>e);e(e=>({documentDataLoaded:!0,documents:t,processingAgreementOptions:n,proofOfConsentOptions:o,dataBreachOptions:a}))}}))},91699:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var o=n(27723),s=n(56716),a=n(10790);const i=({document:e,index:t})=>{const{region:n}=(0,s.default)();let o=e.regions.filter(e=>e!==n);return(0,a.jsxs)("div",{className:"cmplz-single-document-other-regions",children:[(0,a.jsx)("a",{href:e.readmore,target:"_blank",rel:"noopener noreferrer",children:e.title}),o.map((e,t)=>(0,a.jsx)("div",{className:"cmplz-region-indicator",children:(0,a.jsx)("img",{alt:e,width:"16px",height:"16px",src:cmplz_settings.plugin_url+"/assets/images/"+e+".svg"})},t))]},t)},r=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"cmplz-document-header",children:[(0,a.jsx)("h3",{className:"cmplz-h4",children:(0,o.__)("Other regions")}),(0,a.jsx)("a",{href:"https://complianz.io/features/",target:"_blank",rel:"noopener noreferrer",children:(0,o.__)("Read more","complianz-gdpr")})]}),[{id:"privacy-statement",title:"Privacy Statements",regions:["eu","us","uk","ca","za","au","br"],readmore:"https://complianz.io/definition/what-is-a-privacy-statement/"},{id:"cookie-statement",title:"Cookie Policy",regions:["eu","us","uk","ca","za","au","br"],readmore:" https://complianz.io/definition/what-is-a-cookie-policy/"},{id:"impressum",title:"Impressum",regions:["eu"],readmore:"https://complianz.io/definition/what-is-an-impressum/"},{id:"do-not-sell-my-info",title:"Opt-out preferences",regions:["us"],readmore:"https://complianz.io/definition/what-is-do-not-sell-my-personal-information/"},{id:"privacy-statement-for-children",title:"Privacy Statement for Children",regions:["us","uk","ca","za","au","br"],readmore:"https://complianz.io/definition/what-is-a-privacy-statement-for-children/"}].map((e,t)=>(0,a.jsx)(i,{index:t,document:e},t))]})},98217:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var o=n(45111),s=n(27723),a=n(86087),i=n(25228),r=n(10790);const l=e=>{const[t,n]=(0,a.useState)(!1),[l,c]=(0,a.useState)(!1),[d,p]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let t=e.options;if(0===t.length){let n={label:e.name,value:0};t.unshift(n)}else if(!t.filter(e=>0===e.value).length>0){let n={label:e.name,value:0};t.unshift(n)}p(t)},[e.options]);const m=()=>{if(l||!t||0===t)return;c(!0);let e=new XMLHttpRequest;e.responseType="blob",e.open("get",t,!0),e.send(),e.onreadystatechange=function(){if(4==this.readyState&&200==this.status){var e=window.URL.createObjectURL(this.response),n=window.document.createElement("a");n.setAttribute("href",e),n.setAttribute("download",d.filter(e=>e.value===t)[0].label),window.document.body.appendChild(n),n.click(),setTimeout(function(){window.URL.revokeObjectURL(e)},6e4)}},e.onprogress=function(e){c(!0)}};return(0,r.jsxs)("div",{className:"cmplz-single-document-other-documents",children:[(0,r.jsx)(i.default,{onChange:e=>n(e),defaultValue:"0",canBeEmpty:!1,value:t,options:d}),(0,r.jsx)("div",{onClick:()=>m(),children:(0,r.jsx)(o.default,{name:"file-download",color:0==t||l?"grey":"black",tooltip:(0,s.__)("Download file","complianz-gdpr"),size:14})}),d.length>0&&(0,r.jsx)("a",{href:e.link,children:(0,r.jsx)(o.default,{name:"circle-chevron-right",color:"black",tooltip:(0,s.__)("Go to overview","complianz-gdpr"),size:14})}),0===d.length&&(0,r.jsx)("a",{href:e.link,children:(0,r.jsx)(o.default,{name:"plus",color:"black",tooltip:(0,s.__)("Create new","complianz-gdpr"),size:14})})]})}}}]);