"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[9582],{99582:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var l=a(86087),s=a(27723),c=a(32828);const r=()=>{const{setFilter:e,filter:t,fetchFilter:a,notices:r,progressLoaded:n}=(0,c.default)();(0,l.useEffect)((()=>{a()}),[]);let i=0,m=0;return i=n?r.length:0,m=r.filter((function(e){return"completed"!==e.status})).length,(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h3",{className:"cmplz-grid-title cmplz-h4"},(0,s.__)("Progress","complianz-gdpr")),(0,l.createElement)("div",{className:"cmplz-grid-item-controls"},(0,l.createElement)("div",{className:"cmplz-task-switcher-container cmplz-active-filter-"+t},(0,l.createElement)("a",{href:"#",className:"cmplz-task-switcher cmplz-all-tasks",onClick:()=>e("all"),"data-filter":"all"},(0,s.__)("All tasks","complianz-gdpr"),(0,l.createElement)("span",{className:"rsssl_task_count"},"(",i,")")),(0,l.createElement)("a",{href:"#",className:"cmplz-task-switcher cmplz-remaining-tasks",onClick:()=>e("remaining"),"data-filter":"remaining"},(0,s.__)("Remaining tasks","complianz-gdpr"),(0,l.createElement)("span",{className:"rsssl_task_count"},"(",m,")")))))}}}]);