GhostManSec
Server: Apache
System: Linux webm019.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: exhehbu (1008962)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/exhehbu/wp/wp-content/plugins/complianz-gdpr/settings/build/8348.9b99a0a1b5003480c9cc.js
"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[8348,3404,2572,8912,1384],{13404:(e,t,n)=>{n.r(t),n.d(t,{UseCookieScanData:()=>r});var a=n(30809),o=n(61744);const r=(0,a.Su)(((e,t)=>({initialLoadCompleted:!1,setInitialLoadCompleted:t=>e({initialLoadCompleted:t}),iframeLoaded:!1,loading:!1,nextPage:!1,progress:0,cookies:[],lastLoadedIframe:"",setIframeLoaded:t=>e({iframeLoaded:t}),setLastLoadedIframe:t=>e((e=>({lastLoadedIframe:t}))),setProgress:t=>e({progress:t}),fetchProgress:()=>(e({loading:!0}),o.doAction("get_scan_progress",{}).then((t=>(e({initialLoadCompleted:!0,loading:!1,nextPage:t.next_page,progress:t.progress,cookies:t.cookies}),t))))})))},32572:(e,t,n)=>{n.r(t),n.d(t,{default:()=>u});var a=n(51280),o=n(88496),r=n(61744),s=n(25536),c=n(38924),i=n(87287),l=n(13404),d=n(64224);const u=(0,o.memo)((({type:e="action",style:t="tertiary",label:n,onClick:u,href:m="",target:p="",disabled:g,action:f,field:h,children:b})=>{if(!n&&!b)return null;const _=(h&&h.button_text?h.button_text:n)||b,{fetchFieldsData:v,showSavedSettingsNotice:E}=(0,s.default)(),{setInitialLoadCompleted:k,setProgress:y}=(0,l.UseCookieScanData)(),{setProgressLoaded:w}=(0,d.default)(),{selectedSubMenuItem:C}=(0,c.default)(),[N,L]=(0,o.useState)(!1),z=`button cmplz-button button--${t} button-${e}`,S=async e=>{await r.doAction(h.action,{}).then((e=>{e.success&&(v(C),"reset_settings"===e.id&&(k(!1),y(0),w(!1)),E(e.message))}))},D=h&&h.warn?h.warn:"";return"action"===e?(0,a.createElement)(a.Fragment,null,i.__experimentalConfirmDialog&&(0,a.createElement)(i.__experimentalConfirmDialog,{isOpen:N,onConfirm:async()=>{L(!1),await S()},onCancel:()=>{L(!1)}},D),(0,a.createElement)("button",{className:z,onClick:async t=>{if("action"!==e||!u)return"action"===e&&f?i.__experimentalConfirmDialog?void(h&&h.warn?L(!0):await S()):void await S():void(window.location.href=h.url);u(t)},disabled:g},_)):"link"===e?(0,a.createElement)("a",{className:z,href:m,target:p},_):void 0}))},38912:(e,t,n)=>{n.r(t),n.d(t,{default:()=>S});var a=n(51280),o=n(45072),r=n(40304),s=n(59016),c=n(3608),i=n(84664),l=n(37408),d=n(15920),u=n(76860),m=n(61480);const p="Checkbox",[g,f]=(0,s._)(p),[h,b]=g(p),_=(0,a.forwardRef)(((e,t)=>{const{__scopeCheckbox:n,name:s,checked:l,defaultChecked:d,required:u,disabled:p,value:g="on",onCheckedChange:f,...b}=e,[_,y]=(0,a.useState)(null),w=(0,r.q)(t,(e=>y(e))),C=(0,a.useRef)(!1),N=!_||Boolean(_.closest("form")),[L=!1,z]=(0,i.W)({prop:l,defaultProp:d,onChange:f}),S=(0,a.useRef)(L);return(0,a.useEffect)((()=>{const e=null==_?void 0:_.form;if(e){const t=()=>z(S.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[_,z]),(0,a.createElement)(h,{scope:n,state:L,disabled:p},(0,a.createElement)(m.K0.button,(0,o.c)({type:"button",role:"checkbox","aria-checked":E(L)?"mixed":L,"aria-required":u,"data-state":k(L),"data-disabled":p?"":void 0,disabled:p,value:g},b,{ref:w,onKeyDown:(0,c.K)(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:(0,c.K)(e.onClick,(e=>{z((e=>!!E(e)||!e)),N&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())}))})),N&&(0,a.createElement)(v,{control:_,bubbles:!C.current,name:s,value:g,checked:L,required:u,disabled:p,style:{transform:"translateX(-100%)"}}))})),v=e=>{const{control:t,checked:n,bubbles:r=!0,...s}=e,c=(0,a.useRef)(null),i=(0,l.i)(n),u=(0,d.k)(t);return(0,a.useEffect)((()=>{const e=c.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&a){const t=new Event("click",{bubbles:r});e.indeterminate=E(n),a.call(e,!E(n)&&n),e.dispatchEvent(t)}}),[i,n,r]),(0,a.createElement)("input",(0,o.c)({type:"checkbox","aria-hidden":!0,defaultChecked:!E(n)&&n},s,{tabIndex:-1,ref:c,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function E(e){return"indeterminate"===e}function k(e){return E(e)?"indeterminate":e?"checked":"unchecked"}const y=_,w=(0,a.forwardRef)(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...s}=e,c=b("CheckboxIndicator",n);return(0,a.createElement)(u.s,{present:r||E(c.state)||!0===c.state},(0,a.createElement)(m.K0.span,(0,o.c)({"data-state":k(c.state),"data-disabled":c.disabled?"":void 0},s,{ref:t,style:{pointerEvents:"none",...e.style}})))}));var C=n(93396),N=n(15832),L=n(88496),z=n(32572);const S=(0,L.memo)((({indeterminate:e,label:t,value:n,id:o,onChange:r,required:s,disabled:c,options:i={}})=>{const[l,d]=(0,L.useState)(!1),[u,m]=(0,L.useState)(!1);let p=n;Array.isArray(p)||(p=""===p?[]:[p]),(0,L.useEffect)((()=>{let e=1===Object.keys(i).length&&"true"===Object.keys(i)[0];d(e)}),[]),e&&(n=!0);const g=p;let f=!1;Object.keys(i).length>10&&(f=!0);const h=e=>l?n:g.includes(""+e)||g.includes(parseInt(e)),b=()=>{m(!u)};let _=c&&!Array.isArray(c);return 0===Object.keys(i).length?(0,a.createElement)(a.Fragment,null,(0,C.__)("No options found","complianz-gdpr")):(0,a.createElement)("div",{className:"cmplz-checkbox-group"},Object.entries(i).map((([i,d],m)=>(0,a.createElement)("div",{key:i,className:"cmplz-checkbox-group__item"+(!u&&m>9?" cmplz-hidden":"")},(0,a.createElement)(y,{className:"cmplz-checkbox-group__checkbox",id:o+"_"+i,checked:h(i),"aria-label":t,disabled:_||Array.isArray(c)&&c.includes(i),required:s,onCheckedChange:e=>((e,t)=>{if(l)r(!n);else{const e=g.includes(""+t)||g.includes(parseInt(t))?g.filter((e=>e!==""+t&&e!==parseInt(t))):[...g,t];r(e)}})(0,i)},(0,a.createElement)(w,{className:"cmplz-checkbox-group__indicator"},(0,a.createElement)(N.default,{name:e?"indeterminate":"check",size:14,color:"dark-blue"}))),(0,a.createElement)("label",{className:"cmplz-checkbox-group__label",htmlFor:o+"_"+i},d)))),!u&&f&&(0,a.createElement)(z.default,{onClick:()=>b()},(0,C.__)("Show more","complianz-gdpr")),u&&f&&(0,a.createElement)(z.default,{onClick:()=>b()},(0,C.__)("Show less","complianz-gdpr")))}))},38348:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var a=n(51280),o=n(91384),r=n(88496),s=n(93396),c=n(15832),i=n(38912);const l=(0,r.memo)((()=>{const{documents:e,documentsLoaded:t,fetchData:l,deleteDocuments:d,editDocument:u}=(0,o.default)(),[m,p]=(0,r.useState)(""),[g,f]=(0,r.useState)({}),[h,b]=(0,r.useState)(!1),[_,v]=(0,r.useState)(!1),[E,k]=(0,r.useState)(""),[y,w]=(0,r.useState)([]),[C,N]=(0,r.useState)(!1),[L,z]=(0,r.useState)(null);(0,r.useEffect)((()=>{n.e(2128).then(n.bind(n,32128)).then((({default:e})=>{z((()=>e))}))}),[]),cmplz_settings.is_premium,(0,r.useEffect)((()=>{t||l()}),[t]);const S=async()=>{let t=e.filter((e=>y.includes(e.id)));N(!0);const n=async()=>{if(t.length>0){const e=t.shift(),a=e.download_url;k(!0);try{let o=new XMLHttpRequest;o.responseType="blob",o.open("get",a,!0),o.send(),o.onreadystatechange=function(){if(4===this.readyState&&200===this.status){let n=window.URL.createObjectURL(this.response),a=window.document.createElement("a");a.setAttribute("href",n),a.setAttribute("download",e.title),window.document.body.appendChild(a),a.click(),w(t),N(!1),setTimeout((function(){window.URL.revokeObjectURL(n)}),6e4)}},await n()}catch(e){console.error(e),k(!1)}}};await n(),k(!1)},D=e=>((e=e.filter((e=>e.title.toLowerCase().includes(m.toLowerCase())||e.service.toLowerCase().includes(m.toLowerCase())))).sort(((e,t)=>e.title<t.title?-1:e.title>t.title?1:0)),e),I=[{name:(0,a.createElement)(i.default,{options:{true:""},indeterminate:h,value:_,onChange:t=>(t=>{if(t){v(!0);let t=g.currentPage?g.currentPage:1,n=D(e).slice(5*(t-1),5*t);w(n.map((e=>e.id)))}else v(!1),w([]);b(!1)})(t)}),selector:e=>e.selectControl,grow:1,minWidth:"50px"},{name:(0,s.__)("Document","complianz-gdpr"),selector:e=>e.title,sortable:!0,grow:6},{name:(0,s.__)("Region","complianz-gdpr"),selector:e=>(0,a.createElement)("img",{alt:"region",width:"20px",height:"20px",src:cmplz_settings.plugin_url+"assets/images/"+e.region+".svg"}),sortable:!0,grow:2,right:!0},{name:(0,s.__)("Date","complianz-gdpr"),selector:e=>e.date,sortable:!0,grow:4,minWidth:"200px",right:!0}];let x=D(e),A=[];return x.forEach((t=>{let n={...t};n.selectControl=(0,a.createElement)(i.default,{value:y.includes(n.id),options:{true:""},onChange:t=>((t,n)=>{let a=t,o=[...y];a?o.includes(n)||(o.push(n),w(o)):(o=[...y.filter((e=>e!==n))],w(o));let r=g.currentPage?g.currentPage:1,s=D(e).slice(5*(r-1),5*r),c=!0,i=!1;s.forEach((e=>{o.includes(e.id)?i=!0:c=!1})),c?(v(!0),b(!1)):i?(v(!1),b(!0)):b(!1)})(t,n.id)}),A.push(n)})),(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"cmplz-table-header"},(0,a.createElement)("div",{className:"cmplz-table-header-controls"},(0,a.createElement)("input",{className:"cmplz-datatable-search",type:"text",placeholder:(0,s.__)("Search","complianz-gdpr"),value:m,onChange:e=>p(e.target.value)}))),y.length>0&&(0,a.createElement)("div",{className:"cmplz-selected-document"},y.length>1&&(0,s.__)("%s items selected","complianz-gdpr").replace("%s",y.length),1===y.length&&(0,s.__)("1 item selected","complianz-gdpr"),(0,a.createElement)("div",{className:"cmplz-selected-document-controls"},(0,a.createElement)("button",{disabled:E||y.length>1,className:"button button-default",onClick:e=>u(y[0])},(0,s.__)("Edit","complianz-gdpr")),(0,a.createElement)("button",{disabled:E,className:"button button-default cmplz-btn-reset",onClick:()=>S()},(0,s.__)("Download Processing Agreement","complianz-gdpr"),C&&(0,a.createElement)(c.default,{name:"loading",color:"grey"})),(0,a.createElement)("button",{className:"button button-default cmplz-reset-button",onClick:()=>(async e=>{w([]),await d(e)})(y)},(0,s.__)("Delete","complianz-gdpr")))),L&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(L,{columns:I,data:A,dense:!0,pagination:!0,noDataComponent:(0,a.createElement)("div",{className:"cmplz-no-documents"},(0,s.__)("No documents","complianz-gdpr")),persistTableHead:!0,theme:"really-simple-plugins",customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}},paginationPerPage:5,onChangePage:e=>{f({...g,currentPage:e})},paginationState:g})))}))},91384:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var a=n(30809),o=n(524),r=n(61744),s=n(12648);const c=(0,a.Su)(((e,t)=>({documentsLoaded:!1,region:"",fileName:"",serviceName:"",fetching:!1,updating:!1,loadingFields:!1,documents:[],regions:[],fields:[],editDocumentId:!1,resetEditDocumentId:t=>{e({editDocumentId:!1,region:"",serviceName:""})},editDocument:async t=>{e({updating:!0}),await r.doAction("load_processing_agreement",{id:t}).then((t=>{e({fields:t.fields,region:t.region,serviceName:t.serviceName,updating:!1,fileName:t.file_name})})).catch((e=>{console.error(e)})),e({editDocumentId:t})},setRegion:t=>{e({region:t})},setServiceName:t=>{e({serviceName:t})},updateField:(n,a)=>{let r=!1,c=!1;e((0,o.cp)((e=>{e.fields.forEach((function(e,t){e.id===n&&(c=t,r=!0)})),!1!==c&&(e.fields[c].value=a)})));let i=(0,s.updateFieldsListWithConditions)(t().fields);e({fields:i})},save:async(n,a)=>{e({updating:!0});let o=t().editDocumentId;await r.doAction("save_processing_agreement",{fields:t().fields,region:n,serviceName:a,post_id:o}).then((t=>(e({updating:!1}),t))).catch((e=>{console.error(e)})),t().fetchData()},deleteDocuments:async n=>{let a=t().documents.filter((e=>n.includes(e.id)));e((e=>({documents:e.documents.filter((e=>!n.includes(e.id)))})));let o={};o.documents=a,await r.doAction("delete_processing_agreement",o).then((e=>e)).catch((e=>{console.error(e)}))},fetchData:async()=>{if(t().fetching)return;e({fetching:!0});const{documents:n,regions:a}=await r.doAction("get_processing_agreements",{}).then((e=>e)).catch((e=>{console.error(e)}));e((()=>({documentsLoaded:!0,documents:n,regions:a,fetching:!1})))},fetchFields:async t=>{let n={region:t};e({loadingFields:!0});const{fields:a}=await r.doAction("get_processing_agreement_fields",n).then((e=>e)).catch((e=>{console.error(e)}));let o=(0,s.updateFieldsListWithConditions)(a);e((e=>({fields:o,loadingFields:!1})))}})))},76860:(e,t,n)=>{n.d(t,{s:()=>c});var a=n(51280),o=n(81034),r=n(40304),s=n(84904);const c=e=>{const{present:t,children:n}=e,c=function(e){const[t,n]=(0,a.useState)(),r=(0,a.useRef)({}),c=(0,a.useRef)(e),l=(0,a.useRef)("none"),d=e?"mounted":"unmounted",[u,m]=function(e,t){return(0,a.useReducer)(((e,n)=>{const a=t[e][n];return null!=a?a:e}),e)}(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,a.useEffect)((()=>{const e=i(r.current);l.current="mounted"===u?e:"none"}),[u]),(0,s.w)((()=>{const t=r.current,n=c.current;if(n!==e){const a=l.current,o=i(t);e?m("MOUNT"):"none"===o||"none"===(null==t?void 0:t.display)?m("UNMOUNT"):m(n&&a!==o?"ANIMATION_OUT":"UNMOUNT"),c.current=e}}),[e,m]),(0,s.w)((()=>{if(t){const e=e=>{const n=i(r.current).includes(e.animationName);e.target===t&&n&&(0,o.flushSync)((()=>m("ANIMATION_END")))},n=e=>{e.target===t&&(l.current=i(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}m("ANIMATION_END")}),[t,m]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:(0,a.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),l="function"==typeof n?n({present:c.isPresent}):a.Children.only(n),d=(0,r.q)(c.ref,l.ref);return"function"==typeof n||c.isPresent?(0,a.cloneElement)(l,{ref:d}):null};function i(e){return(null==e?void 0:e.animationName)||"none"}c.displayName="Presence"},37408:(e,t,n)=>{n.d(t,{i:()=>o});var a=n(51280);function o(e){const t=(0,a.useRef)({value:e,previous:e});return(0,a.useMemo)((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}}}]);