"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[7816],{87816:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c});var o=t(51280),a=t(87287),l=t(93396),r=t(61744),s=t(88496);const c=(0,s.memo)((()=>{const[e,n]=(0,s.useState)(""),[t,c]=(0,s.useState)(!1);let i=t||0===e.length;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(a.TextareaControl,{disabled:t,placeholder:(0,l.__)("Type your question here","complianz-gdpr"),onChange:e=>(e=>{n(e)})(e)}),(0,o.createElement)("div",null,(0,o.createElement)("button",{className:"button button-primary",disabled:i,variant:"secondary",onClick:n=>(c(!0),r.doAction("supportData",{}).then((n=>{let t=e.replace(/(?:\r\n|\r|\n)/g,"--br--"),o="https://complianz.io/support?user="+encodeURIComponent(n.customer_name)+"&email="+n.email+"&website="+n.domain+"&license="+encodeURIComponent(n.license_key)+"&question="+encodeURIComponent(t)+"&details="+encodeURIComponent(n.system_status);window.location.assign(o)})))},(0,l.__)("Send","complianz-gdpr"))))}))}}]);