/
home
/
rekodeb
/
webrodez
/
wp-content
/
plugins
/
complianz-gdpr
/
settings
/
build
/
Upload File
HOME
"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[9567,6716,3192,1699,8217,5228],{19567:(e,t,n)=>{n.r(t),n.d(t,{default:()=>u});var a=n(86087),o=n(56716),l=n(91699),r=n(3192),c=n(45111),i=n(27723),s=n(4219),m=n(99695),d=n(96979);const p=e=>{const{document:t}=e,{showSavedSettingsNotice:n}=(0,s.default)();let o="sync"===t.status?"green":"grey",l="sync"===t.status?(0,i.__)("Document is kept up to date by Complianz","complianz-gdpr"):(0,i.__)("Document is not kept up to date by Complianz","complianz-gdpr"),r=t.exists?"green":"grey",m=t.exists?(0,i.__)("Validated","complianz-gdpr"):(0,i.__)("Missing document","complianz-gdpr"),d=t.required?(0,i.__)("Click to copy the document shortcode","complianz-gdpr"):(0,i.__)("Not enabled","complianz-gdpr");return t.required&&t.exists||(r=o="grey",m=l=(0,i.__)("Not enabled","complianz-gdpr")),(0,a.createElement)("div",{className:"cmplz-single-document"},(0,a.createElement)("div",{className:"cmplz-single-document-title"},t.permalink&&(0,a.createElement)("a",{href:t.permalink},t.title),!t.permalink&&t.readmore&&(0,a.createElement)("a",{href:t.readmore},t.title),!t.permalink&&!t.readmore&&t.title),(0,a.createElement)(c.default,{name:"sync",color:o,tooltip:l,size:14}),(0,a.createElement)(c.default,{name:"circle-check",color:r,tooltip:m,size:14}),(0,a.createElement)("div",{onClick:e=>((e,t)=>{let a;e.target.classList.add("cmplz-click-animation");let o=window.document.createElement("input");window.document.getElementsByTagName("body")[0].appendChild(o),o.value=t,o.select();try{a=window.document.execCommand("copy")}catch(e){a=!1}o.parentElement.removeChild(o),a&&n((0,i.__)("Copied shortcode","complianz-gdpr"))})(e,t.shortcode)},(0,a.createElement)(c.default,{name:"shortcode",color:r,tooltip:d,size:14})))},u=()=>{const{region:e,documentDataLoaded:t,getDocuments:n,documents:c}=(0,o.default)(),{documentsChanged:i}=(0,d.UseDocumentsData)(),[s,u]=(0,a.useState)([]);return(0,a.useEffect)((()=>{t||n()}),[]),(0,a.useEffect)((()=>{t&&i&&n()}),[i]),(0,a.useEffect)((()=>{let t=c.filter((t=>t.region===e))[0];t&&(t=t.documents,u(t))}),[e,c]),t?(0,a.createElement)(a.Fragment,null,s.map(((e,t)=>(0,a.createElement)(p,{key:t,document:e}))),!cmplz_settings.is_premium&&(0,a.createElement)(l.default,null),cmplz_settings.is_premium&&(0,a.createElement)(r.default,null)):(0,a.createElement)(m.default,{lines:"3"})}},56716:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var a=n(81621),o=n(9588);const l=(0,a.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:a,dataBreachOptions:l}=await o.doAction("documents_block_data").then((e=>e));e((e=>({documentDataLoaded:!0,documents:t,processingAgreementOptions:n,proofOfConsentOptions:a,dataBreachOptions:l})))}})))},3192:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var a=n(86087),o=n(27723),l=n(56716),r=n(4219),c=n(98217);const i=()=>{const{getFieldValue:e,fields:t}=(0,r.default)(),[n,i]=(0,a.useState)(!1);(0,a.useEffect)((()=>{i(e("records_of_consent"))}),[t]);const{processingAgreementOptions:s,dataBreachOptions:m,proofOfConsentOptions:d}=(0,l.default)();return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("h3",{className:"cmplz-h4"},(0,o.__)("Other documents","complianz-gdpr")),(0,a.createElement)(c.default,{type:"processing-agreements",link:"#tools/processing-agreements",name:(0,o.__)("Processing Agreement","complianz-gdpr"),options:s}),(0,a.createElement)(c.default,{type:"data-breaches",link:"#tools/data-breach-reports",name:(0,o.__)("Data Breach","complianz-gdpr"),options:m}),(0,a.createElement)(c.default,{type:"proof-of-consent",link:n?"#tools/records-of-consent":"#tools/proof-of-consent",name:(0,o.__)("Proof of Consent","complianz-gdpr"),options:d}))}},91699:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var a=n(86087),o=n(27723),l=n(56716);const r=({document:e,index:t})=>{const{region:n}=(0,l.default)();let o=e.regions.filter((e=>e!==n));return(0,a.createElement)("div",{key:t,className:"cmplz-single-document-other-regions"},(0,a.createElement)("a",{href:e.readmore,target:"_blank",rel:"noopener noreferrer"},e.title),o.map(((e,t)=>(0,a.createElement)("div",{key:t,className:"cmplz-region-indicator"},(0,a.createElement)("img",{alt:e,width:"16px",height:"16px",src:cmplz_settings.plugin_url+"/assets/images/"+e+".svg"})))))},c=()=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"cmplz-document-header"},(0,a.createElement)("h3",{className:"cmplz-h4"},(0,o.__)("Other regions")),(0,a.createElement)("a",{href:"https://complianz.io/features/",target:"_blank",rel:"noopener noreferrer"},(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.createElement)(r,{key:t,index:t,document:e}))))},98217:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var a=n(86087),o=n(45111),l=n(27723),r=n(25228);const c=e=>{const[t,n]=(0,a.useState)(!1),[c,i]=(0,a.useState)(!1),[s,m]=(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)}m(t)}),[e.options]);const d=()=>{if(c||!t||0===t)return;i(!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",s.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){i(!0)}};return(0,a.createElement)("div",{className:"cmplz-single-document-other-documents"},(0,a.createElement)(r.default,{onChange:e=>n(e),defaultValue:"0",canBeEmpty:!1,value:t,options:s}),(0,a.createElement)("div",{onClick:()=>d()},(0,a.createElement)(o.default,{name:"file-download",color:0==t||c?"grey":"black",tooltip:(0,l.__)("Download file","complianz-gdpr"),size:14})),s.length>0&&(0,a.createElement)("a",{href:e.link},(0,a.createElement)(o.default,{name:"circle-chevron-right",color:"black",tooltip:(0,l.__)("Go to overview","complianz-gdpr"),size:14})),0===s.length&&(0,a.createElement)("a",{href:e.link},(0,a.createElement)(o.default,{name:"plus",color:"black",tooltip:(0,l.__)("Create new","complianz-gdpr"),size:14})))}},25228:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var a=n(86087),o=n(45296),l=n(45111),r=n(27723);const c=(0,a.memo)((({value:e=!1,onChange:t,required:n,defaultValue:c,disabled:i,options:s={},canBeEmpty:m=!0,label:d})=>{if(Array.isArray(s)){let e={};s.map((t=>{e[t.value]=t.label})),s=e}return m?(""===e||!1===e||0===e)&&(e="0",s={0:(0,r.__)("Select an option","complianz-gdpr"),...s}):e||(e=Object.keys(s)[0]),(0,a.createElement)("div",{className:"cmplz-input-group cmplz-select-group",key:d},(0,a.createElement)(o.bL,{value:e,defaultValue:c,onValueChange:t,required:n,disabled:i&&!Array.isArray(i)},(0,a.createElement)(o.l9,{className:"cmplz-select-group__trigger"},(0,a.createElement)(o.WT,null),(0,a.createElement)(l.default,{name:"chevron-down"})),(0,a.createElement)(o.UC,{className:"cmplz-select-group__content",position:"popper"},(0,a.createElement)(o.PP,{className:"cmplz-select-group__scroll-button"},(0,a.createElement)(l.default,{name:"chevron-up"})),(0,a.createElement)(o.LM,{className:"cmplz-select-group__viewport"},(0,a.createElement)(o.YJ,null,Object.entries(s).map((([e,t])=>(0,a.createElement)(o.q7,{disabled:Array.isArray(i)&&i.includes(e),className:"cmplz-select-group__item",key:e,value:e},(0,a.createElement)(o.p4,null,t)))))),(0,a.createElement)(o.wn,{className:"cmplz-select-group__scroll-button"},(0,a.createElement)(l.default,{name:"chevron-down"})))))}))}}]);