"use strict";(self.webpackChunkcomplianz_gdpr=self.webpackChunkcomplianz_gdpr||[]).push([[4139],{24139:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c});var o=t(51609),a=t(56427),l=t(27723),r=t(9588),s=t(86087);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"))))}))}}]);