D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
aramrprl
/
www
/
wp-content
/
plugins
/
complianz-gdpr
/
settings
/
build
/
Filename :
3990.4f2c03aad14e23760979.js
back
Copy
"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[2010,3990],{3990:(e,l,t)=>{t.r(l),t.d(l,{default:()=>p});var n=t(52010),i=t(27723),s=t(45111),a=t(86087),c=t(4219),o=t(99418),m=t(10790);const p=(0,a.memo)(e=>{const{updateField:l,setChangedField:t,getFieldValue:a}=(0,c.default)();return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(n.default,{summary:e.plugin.plugin_name,icon:e.icon,icons:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("button",{className:"cmplz-button-icon",onClick:n=>((e,n,i)=>{i.preventDefault();let s=a("custom_privacy_policy_text");s+="<h1>"+e+"</h1>"+n,l("custom_privacy_policy_text",s),t("custom_privacy_policy_text",s)})(e.plugin.plugin_name,e.plugin.policy_text,n),children:(0,m.jsx)(s.default,{tooltip:(0,i.__)("Add to annex of Privacy Statement","complianz-gdpr"),name:"plus"})}),"na"!==e.plugin.consent_api&&(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("button",{className:"cmplz-button-icon",children:[!e.plugin.consent_api&&(0,m.jsx)(s.default,{tooltip:(0,i.__)("Does not conform with the Consent API","complianz-gdpr"),name:"circle",color:"red"}),e.plugin.consent_api&&(0,m.jsx)(s.default,{tooltip:(0,i.__)("Conforms to the Consent API","complianz-gdpr"),name:"circle",color:"green"})]})})]}),details:(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{className:"cmplz-details-row",dangerouslySetInnerHTML:{__html:o.A.sanitize(e.plugin.policy_text)}})})})})})},52010:(e,l,t)=>{t.r(l),t.d(l,{default:()=>a});var n=t(45111),i=t(86087),s=t(10790);const a=e=>{const[l,t]=(0,i.useState)(!1);return(0,s.jsx)("div",{className:"cmplz-panel__list__item",style:e.style?e.style:{},children:(0,s.jsxs)("details",{open:l,children:[(0,s.jsxs)("summary",{onClick:e=>(e=>{e.preventDefault(),t(!l)})(e),children:[e.icon&&(0,s.jsx)(n.default,{name:e.icon}),(0,s.jsx)("h5",{className:"cmplz-panel__list__item__title",children:e.summary}),(0,s.jsx)("div",{className:"cmplz-panel__list__item__comment",children:e.comment}),(0,s.jsx)("div",{className:"cmplz-panel__list__item__icons",children:e.icons}),(0,s.jsx)(n.default,{name:"chevron-down",size:18})]}),(0,s.jsx)("div",{className:"cmplz-panel__list__item__details",children:l&&e.details})]})})}}}]);