"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[5184],{65184:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});var l=a(51280),s=a(93396),c=a(88496),r=a(64224);const n=()=>{const{setFilter:e,filter:t,fetchFilter:a,notices:n,progressLoaded:i}=(0,r.default)();(0,c.useEffect)((()=>{a()}),[]);let m=0,p=0;return m=i?n.length:0,p=n.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"},"(",m,")")),(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"},"(",p,")")))))}}}]);