File "5848.5f5221c2304cea5ce628.js"
Full path: /home/satkhirabarta/public_html/wp-content/plugins/complianz-gdpr/settings/build/5848.5f5221c2304cea5ce628.js
File
size: 934 B (934 B bytes)
MIME-type: text/plain
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[5848],{5848:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var o=n(86087),a=n(27723);const r=(0,o.memo)((function({field:e,label:t}){const[n,r]=(0,o.useState)(!1),s=()=>{if(n)return;r(!0);let t=new XMLHttpRequest;t.responseType="blob",t.open("get",e.url,!0),t.send(),t.onreadystatechange=function(){if(4===this.readyState&&200===this.status){var e=window.URL.createObjectURL(this.response),t=window.document.createElement("a");t.setAttribute("href",e),t.setAttribute("download","complianz-export.json"),window.document.body.appendChild(t),t.click(),setTimeout((function(){window.URL.revokeObjectURL(e)}),6e4)}},t.onprogress=function(e){r(!0)}};return(0,o.createElement)("div",{className:"cmplz-export-container"},(0,o.createElement)("button",{className:"button button-default",onClick:()=>s()},(0,a.__)("Export","complianz-gdpr")))}))}}]);