PageSourceSearch

https://portal.privacypillar.com/src_app_dashboard_ccpa-dsar_ccpa-dsar_module_ts.7124875e29eda4a4.js

js privacypillar.com collected 2026-09-24 09:08:54 UTC 34,819 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["src_app_dashboard_ccpa-dsar_ccpa-dsar_module_ts"],{85232:(Te,y,c)=>{c.r(y),c.d(y,{CcpaDsarModule:()=>be});var u=c(36895),D=c(51692),M=c(85493),C=c(24006),_=c(94829),A=c(3940),h=c(68078),O=c(92340),e=c(94650),k=c(20388),q=c(37407),Z=c(59922),w=c(98751),S=c(11481),R=c(1637),v=c(73747),L=c(4358),U=c(12553);const N=["noSup"];function I(s,o){if(1&s){const r=e.EpF();e.TgZ(0,"span",31),e.NdJ("click",function(){e.CHM(r),e.oxw();const n=e.MAs(19);return e.KtG(n.show())}),e._UZ(1,"i",32),e.qZA()}if(2&s){const r=e.oxw();e.xp6(1),e.Q6J("ngClass",""!==r.searchbydaterange?"":"fa-caret-down")}}function Y(s,o){if(1&s){const r=e.EpF();e.TgZ(0,"span",33),e.NdJ("click",function(){e.CHM(r);const n=e.oxw();return e.KtG(n.clearDatePicker())}),e._UZ(1,"i",34),e.qZA()}if(2&s){const r=e.oxw();e.xp6(1),e.Q6J("ngClass",null==r.searchbydaterange?"fa-caret-down":"fa-times color-red")}}function Q(s,o){if(1&s&&(e.TgZ(0,"span",58),e._uU(1),e.qZA()),2&s){const r=e.oxw().$implicit;e.xp6(1),e.Oqu(r.suffix)}}function F(s,o){if(1&s&&(e.TgZ(0,"section",53)(1,"div",54)(2,"span",55),e._uU(3),e.qZA(),e.YNc(4,Q,2,1,"span",56),e.qZA(),e.TgZ(5,"p",57),e._uU(6),e.qZA()()),2&s){const r=o.$implicit;e.Udp("--metric-accent",r.accent),e.xp6(3),e.Oqu(r.displayValue),e.xp6(1),e.Q6J("ngIf",r.suffix),e.xp6(2),e.Oqu(r.label)}}function J(s,o){if(1&s&&(e.TgZ(0,"span",58),e._uU(1),e.qZA()),2&s){const r=e.oxw().$implicit;e.xp6(1),e.Oqu(r.suffix)}}function B(s,o){if(1&s&&(e.TgZ(0,"section",53)(1,"div",54)(2,"span",55),e._uU(3),e.qZA(),e.YNc(4,J,2,1,"span",56),e.qZA(),e.TgZ(5,"p",57),e._uU(6),e.qZA()()),2&s){const r=o.$implicit;e.Udp("--metric-accent",r.accent),e.xp6(3),e.Oqu(r.displayValue),e.xp6(1),e.Q6J("ngIf",r.suffix),e.xp6(2),e.Oqu(r.label)}}function z(s,o){if(1&s&&(e.TgZ(0,"span",58),e._uU(1),e.qZA()),2&s){const r=e.oxw().$implicit;e.xp6(1),e.Oqu(r.suffix)}}function G(s,o){if(1&s&&(e.TgZ(0,"section",59)(1,"div",54)(2,"span",55),e._uU(3),e.qZA(),e.YNc(4,z,2,1,"span",56),e.qZA(),e.TgZ(5,"p",57),e._uU(6),e.qZA()()),2&s){const r=o.$implicit;e.Udp("--metric-accent",r.accent),e.xp6(3),e.Oqu(r.displayValue),e.xp6(1),e.Q6J("ngIf",r.suffix),e.xp6(2),e.Oqu(r.label)}}function V(s,o){if(1&s&&(e.ynx(0),e._UZ(1,"canvas",60),e.BQk()),2&s){const r=e.oxw(2);e.xp6(1),e.Q6J("datasets",r.processingPhaseChartData)("labels",r.processingPhaseChartLabels)("options",r.processingPhaseChartOptions)("chartType",r.processingPhaseChartType)}}function j(s,o){if(1&s&&(e.ynx(0),e._UZ(1,"canvas",61),e.BQk()),2&s){const r=e.oxw(2);e.xp6(1),e.Q6J("data",r.requestTypeChartData)("labels",r.requestTypeChartLabels)("options",r.requestTypeChartOptions)("colors",r.requestTypeChartColors)("chartType",r.requestTypeChartType)}}function $(s,o){if(1&s&&(e.TgZ(0,"div",64),e._UZ(1,"span",65),e.TgZ(2,"span",66),e._uU(3),e.qZA(),e.TgZ(4,"span",67),e._uU(5),e.qZA()()),2&s){const r=o.$implicit,t=e.oxw(3);e.xp6(1),e.Udp("background-color",r.color),e.xp6(2),e.Oqu(r.label),e.xp6(2),e.Oqu(t.formatCompactValue(r.value))}}function H(s,o){if(1&s&&(e.TgZ(0,"div",62),e.YNc(1,$,6,4,"div",63),e.qZA()),2&s){const r=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",r.requestTypeLegend)}}function W(s,o){if(1&s&&(e.TgZ(0,"span",70),e._UZ(1,"span",71),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&s){const r=o.$implicit;e.xp6(1),e.Udp("border-top-color",r.color),e.xp6(2),e.Oqu(r.label)}}function K(s,o){if(1&s&&(e.TgZ(0,"div",68),e.YNc(1,W,4,3,"span",69),e.qZA()),2&s){const r=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",r.requestsTrendLegend)}}function X(s,o){if(1&s&&(e.ynx(0),e._UZ(1,"canvas",60),e.BQk()),2&s){const r=e.oxw(2);e.xp6(1),e.Q6J("datasets",r.requestsTrendChartData)("labels",r.requestsTrendChartLabels)("options",r.requestsTrendChartOptions)("chartType",r.requestsTrendChartType)}}function ee(s,o){if(1&s&&(e.TgZ(0,"span",70),e._UZ(1,"span",71),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&s){const r=o.$implicit;e.xp6(1),e.Udp("border-top-color",r.color),e.xp6(2),e.Oqu(r.label)}}function te(s,o){if(1&s&&(e.TgZ(0,"div",68),e.YNc(1,ee,4,3,"span",69),e.qZA()),2&s){const r=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",r.categoryLegend)}}function ae(s,o){if(1&s&&(e.ynx(0),e._UZ(1,"canvas",60),e.BQk()),2&s){const r=e.oxw(2);e.xp6(1),e.Q6J("datasets",r.categoryChartData)("labels",r.categoryChartLabels)("options",r.categoryChartOptions)("chartType",r.categoryChartType)}}function ne(s,o){if(1&s&&(e.ynx(0),e.TgZ(1,"section",35)(2,"article",36),e.YNc(3,F,7,5,"section",37),e.ALo(4,"slice"),e.qZA(),e.TgZ(5,"article",38),e.YNc(6,B,7,5,"section",37),e.ALo(7,"slice"),e.qZA(),e.TgZ(8,"article",39),e.YNc(9,G,7,5,"section",40),e.ALo(10,"slice"),e.qZA()(),e.TgZ(11,"section",41)(12,"article",42)(13,"div",43)(14,"h5",44),e._uU(15,"Requests By Processing Phase"),e.qZA()(),e.TgZ(16,"div",45)(17,"div",46),e.YNc(18,V,2,4,"ng-container",22),e.qZA()()(),e.TgZ(19,"article",42)(20,"div",43)(21,"h5",44),e._uU(22,"By Request Type"),e.qZA()(),e.TgZ(23,"div",47)(24,"div",48),e.YNc(25,j,2,5,"ng-container",22),e.qZA(),e.YNc(26,H,2,1,"div",49),e.qZA()()(),e.TgZ(27,"article",50)(28,"div",43)(29,"h5",44),e._uU(30,"Requests Volume Trend"),e.qZA(),e.YNc(31,K,2,1,"div",51),e.qZA(),e.TgZ(32,"div",45)(33,"div",52),e.YNc(34,X,2,4,"ng-container",22),e.qZA()()(),e.TgZ(35,"article",50)(36,"div",43)(37,"h5",44),e._uU(38,"Requests By Category"),e.qZA(),e.YNc(39,te,2,1,"div",51),e.qZA(),e.TgZ(40,"div",45)(41,"div",52),e.YNc(42,ae,2,4,"ng-container",22),e.qZA()()(),e.BQk()),2&s){const r=e.oxw(),t=e.MAs(35),n=e.MAs(37),a=e.MAs(39),i=e.MAs(41);e.xp6(3),e.Q6J("ngForOf",e.Dn7(4,14,r.summaryCards,0,4)),e.xp6(3),e.Q6J("ngForOf",e.Dn7(7,18,r.summaryCards,4,7)),e.xp6(3),e.Q6J("ngForOf",e.Dn7(10,22,r.summaryCards,7,8)),e.xp6(9),e.Q6J("ngIf",r.hasProcessingPhaseData)("ngIfElse",t),e.xp6(7),e.Q6J("ngIf",r.hasRequestTypeData)("ngIfElse",n),e.xp6(1),e.Q6J("ngIf",r.hasRequestTypeData&&r.requestTypeLegend.length),e.xp6(
15),e.Q6J("ngIf",r.requestsTrendLegend.length),e.xp6(3),e.Q6J("ngIf",r.hasRequestsTrendData)("ngIfElse",a),e.xp6(5),e.Q6J("ngIf",r.categoryLegend.length),e.xp6(3),e.Q6J("ngIf",r.hasCategoryData)("ngIfElse",i)}}function re(s,o){1&s&&(e.TgZ(0,"section",35)(1,"article",72),e._UZ(2,"ngx-skeleton-loader",73),e.qZA(),e.TgZ(3,"article",72),e._UZ(4,"ngx-skeleton-loader",73),e.qZA(),e.TgZ(5,"article",72),e._UZ(6,"ngx-skeleton-loader",73),e.qZA()(),e.TgZ(7,"section",41)(8,"article",74),e._UZ(9,"ngx-skeleton-loader",75),e.qZA(),e.TgZ(10,"article",74),e._UZ(11,"ngx-skeleton-loader",75),e.qZA()(),e.TgZ(12,"article",76),e._UZ(13,"ngx-skeleton-loader",77),e.qZA(),e.TgZ(14,"article",76),e._UZ(15,"ngx-skeleton-loader",77),e.qZA())}function se(s,o){1&s&&(e.TgZ(0,"div",78),e._uU(1,"No processing phase data available"),e.qZA())}function ie(s,o){1&s&&(e.TgZ(0,"div",78),e._uU(1,"No request type data available"),e.qZA())}function oe(s,o){1&s&&(e.TgZ(0,"div",78),e._uU(1,"No request trend data available"),e.qZA())}function le(s,o){1&s&&(e.TgZ(0,"div",78),e._uU(1,"No request category data available"),e.qZA())}function ce(s,o){if(1&s){const r=e.EpF();e.TgZ(0,"alert",79),e.NdJ("onClosed",function(){e.CHM(r);const n=e.oxw();return e.KtG(n.onClosed(n.alertMsg))}),e._uU(1),e.qZA()}if(2&s){const r=e.oxw();e.Q6J("type",r.alertType)("dismissible",r.dismissible),e.xp6(1),e.hij(" ",r.alertMsg," ")}}function pe(s,o){if(1&s){const r=e.EpF();e.TgZ(0,"div",80)(1,"h4"),e._uU(2,"You haven't assigned a license to this organization"),e.qZA(),e.TgZ(3,"p",81),e.NdJ("click",function(){e.CHM(r);const n=e.oxw();return e.KtG(n.onGoBack())}),e._uU(4,"or Cancel & Go Back"),e.qZA()()}}const P=[{key:"REQUEST_RECEIVED",label:"Requests Received",accent:"#8fb7df"},{key:"REQUEST_IN_PROGRESS",label:"Requests In Progress",accent:"#111111"},{key:"REQUEST_COMPLETED",label:"Requests Completed",accent:"#95d684"},{key:"REQUEST_REJECTED",label:"Requests Rejected",accent:"#111111"},{key:"REQUEST_OVERDUE",label:"Requests Overdue",accent:"#ff6a62"},{key:"REQUEST_CLOSED_OUTSIDE_TIMEFRAME",label:"Requests Closed Outside Timeframe",accent:"#ff6a62"},{key:"SEVEN_DAYS_TO_COMPLETE",label:"7 Days To Complete Request",accent:"#ff6a62"},{key:"AVG_TIME_TO_COMPLETE",label:"Average Time To Complete Request",accent:"#111111",suffix:"days"}],E={AVG_TIME_TO_COMPLETE:0,REQUEST_CLOSED_OUTSIDE_TIMEFRAME:0,REQUEST_COMPLETED:0,REQUEST_IN_PROGRESS:0,REQUEST_OVERDUE:0,REQUEST_RECEIVED:0,REQUEST_REJECTED:0,SEVEN_DAYS_TO_COMPLETE:0},T=["#9cd887","#f4d484","#a6c3e8","#1f2f78","#42b3ee","#9d3bb7","#ff8c67","#71c8c1"],b=["#9cd887","#a6c3e8","#f4d484","#42b3ee","#ff8c67","#9d3bb7"],x=["#9cd887","#f4d484","#9d3bb7","#42b3ee","#ff8c67","#1f2f78"];let de=(()=>{const o=class{constructor(t,n,a,i,l,p,d,g){this.modalService=t,this.loading=n,this.dataService=a,this.location=i,this.activatedRoute=l,this.dashboardService=p,this.cdRef=d,this.titleService=g,this.formatCompactValue=h.D,this.dismissible=!0,this.isOpen=!1,this.skeletonLoading=!1,this.summaryCards=P.map(m=>({...m,value:0,displayValue:"0"})),this.processingPhaseChartLabels=[],this.processingPhaseChartData=[],this.processingPhaseChartType="bar",this.processingPhaseChartOptions=this.createBarChartOptions("Processing Phase","No. Of Requests"),this.requestTypeChartLabels=[],this.requestTypeChartData=[],this.requestTypeChartColors=[{backgroundColor:[...T],borderColor:"#ffffff",borderWidth:2}],this.requestTypeChartType="doughnut",this.requestTypeChartOptions={responsive:!0,maintainAspectRatio:!1,cutoutPercentage:62,legend:{display:!1},tooltips:{enabled:!0,callbacks:{label:(m,f)=>this.getDoughnutTooltipLabel(m,f)}}},this.requestsTrendChartLabels=[],this.requestsTrendChartData=[],this.requestsTrendChartType="line",this.requestsTrendChartOptions=this.createLineChartOptions("Timeline","No. Of Requests"),this.categoryChartLabels=[],this.categoryChartData=[],this.categoryChartType="line",this.categoryChartOptions=this.createLineChartOptions("Timeline","No. Of Requests"),this.requestTypeLegend=[],this.requestsTrendLegend=[],this.categoryLegend=[],this.dashboardCount={...E},this.isShowDashboard=!1,this.searchbydaterange="",this.ranges=[{value:[new Date,new Date],label:"Today"},{value:[new Date((new Date).setDate((new Date).getDate()-1)),new Date((new Date).setDate((new Date).getDate()-1))],label:"Yesterday"},{value:[new Date((new Date).setDate((new Date).getDate()-7)),new Date],label:"Last 7 Days"},{value:[new Date((new Date).setDate((new Date).getDate()-30)),new Date],label:"Last 30 Days"},{value:[new Date((new Date).getFullYear(),(new Date).getMonth(),1),new Date((new Date).getFullYear(),(new Date).getMonth()+1,0)],label:"This Month"},{value:[new Date((new Date).getFullYear(),(new Date).getMonth()-1,1),new Date((new Date).getFullYear(),(new Date).getMonth(),0)],label:"Last Month"},{value:[new Date((new Date).getFullYear(),0,1),new Date],label:"This Year"},{value:[new Date((new Date).setFullYear((new Date).getFullYear()-1)),new Date],label:"Last Year"}],(0,_.Dy)(),(0,_.bF)(),this.titleService.setTitle("DSAR Dashboard - "+O.N.portalPrefix)}ngOnInit(){this.searchbydaterange=[new Date((new Date).setDate((new Date).getDate()-30)),new Date],this.bsConfig=Object.assign({},{containerClass:"theme-dark-blue",showClearButton:!0,returnFocusToInput:!0,dateInputFormat:"MM-DD-YYYY",adaptivePosition:!0,showTodayButton:!0,ranges:this.ranges}),this.activatedRoute.queryParams.subscribe(t=>{this.queryOID=t.oid,this.queryPID=t.pid,this.onGetPropsAndOrgId(),this.onCheckSubscription(),this.loadDashboardIfAllowed()})}ngAfterViewInit(){this.cdRef.detectChanges()}
1get hasProcessingPhaseData(){return this.processingPhaseChartLabels.length>0&&this.processingPhaseChartData.length>0}get hasRequestTypeData(){return this.requestTypeChartData.reduce((t,n)=>t+this.toNumber(n),0)>0}get hasRequestsTrendData(){return this.requestsTrendChartLabels.length>0&&this.requestsTrendChartData.length>0}get hasCategoryData(){return this.categoryChartLabels.length>0&&this.categoryChartData.length>0}onCheckSubscription(){const t=this.dataService.getCurrentOrganizationPlanDetails(),n=""!==t?t.response.features:null;return null==n?(this.isShowDashboard=!1,void this.dataService.isLicenseApplied.next({requesttype:"organization",hasaccess:!1})):Object.keys(n).length>0?(this.isShowDashboard=!0,void this.dataService.isLicenseApplied.next({requesttype:"organization",hasaccess:!0})):(this.isShowDashboard=!1,void this.dataService.isLicenseApplied.next({requesttype:"organization",hasaccess:!1}))}onDateSelection(){null!==this.searchbydaterange&&""!==this.searchbydaterange&&(this.startDate=this.searchbydaterange[0].toJSON().split("T")[0],this.endDate=this.searchbydaterange[1].toJSON().split("T")[0],this.onGetCcpaAndDsar())}onOpenPopUp(){this.isShowDashboard||(this.modalRef=this.modalService.show(this.noSup,{class:"modal-md",ignoreBackdropClick:!0}))}onGetPropsAndOrgId(){if(null!==this.queryOID&&null!==this.queryPID&&void 0!==this.queryOID&&void 0!==this.queryPID)return this.currentManagedOrgID=this.queryOID,void(this.currrentManagedPropID=this.queryPID);const t=(0,h.Dq)(this.location.path());this.currentManagedOrgID=t[0],this.currrentManagedPropID=t[1]}onGetCcpaAndDsar(){void 0!==this.searchbydaterange&&""!==this.searchbydaterange&&(this.startDate=this.searchbydaterange[0].toJSON().split("T")[0],this.endDate=this.searchbydaterange[1].toJSON().split("T")[0]),this.loading.start("p1"),this.skeletonLoading=!0,void 0!==this.currentManagedOrgID&&void 0!==this.currrentManagedPropID&&this.dashboardService.getCcpaAndDsar(this.currentManagedOrgID,this.currrentManagedPropID,{from_date:this.startDate,to_date:this.endDate},this.constructor.name,A.e.ccpaDsarModule).subscribe(n=>{this.loading.stop("p1"),this.skeletonLoading=!1;const a=n&&n.response?n.response:{};Object.keys(a).length>0?this.mapDashboardResponse(a):(this.resetDashboardState(),this.isOpen=!0,this.alertMsg="Data not Found...",this.alertType="info")},n=>{this.skeletonLoading=!1,this.loading.stop("p1"),this.resetDashboardState(),this.isOpen=!0,this.alertMsg=n,this.alertType="danger"})}onPrint(){window.print()}onClosed(t){this.alertMsg=!t,this.isOpen=!1}onGoBack(){this.modalRef.hide(),this.location.back()}clearDatePicker(){this.searchbydaterange=""}loadDashboardIfAllowed(){this.isShowDashboard&&null!=this.currentManagedOrgID&&null!=this.currrentManagedPropID&&this.onGetCcpaAndDsar()}mapDashboardResponse(t){this.dashboardCount=this.normalizeDashboardCount(t.dashboardCount),this.summaryCards=this.buildSummaryCards(this.dashboardCount),this.mapProcessingPhaseChart(t.requestByProcessingPhase&&t.requestByProcessingPhase.data),this.mapRequestTypeChart(t.RequestType&&t.RequestType.data),this.mapRequestsTrendChart(t.requestsChart),this.mapCategoryChart(t.requestByCategory&&t.requestByCategory.raw)}mapProcessingPhaseChart(t){const n=Array.isArray(t)?t.map(a=>({label:this.normalizeLabel(a&&a.label),value:this.toNumber(a&&a.value)})).filter(a=>a.label):[];this.processingPhaseChartLabels=n.map(a=>this.formatProcessingPhaseAxisLabel(a.label)),this.processingPhaseChartData=n.length?[{data:n.map(a=>a.value),label:"Requests",backgroundColor:n.map((a,i)=>b[i%b.length]),hoverBackgroundColor:n.map((a,i)=>b[i%b.length]),borderWidth:0,maxBarThickness:58,categoryPercentage:.68,barPercentage:.78}]:[]}mapRequestTypeChart(t){const n=Array.isArray(t)?t.map((a,i)=>({label:this.normalizeLabel(a&&a.label),value:this.toNumber(a&&a.value),color:T[i%T.length]})).filter(a=>a.label):[];this.requestTypeLegend=n.map(a=>({label:a.label,color:a.color,value:a.value})),this.requestTypeChartLabels=n.map(a=>a.label),this.requestTypeChartData=n.map(a=>a.value),this.requestTypeChartColors=[{backgroundColor:n.map(a=>a.color),borderColor:"#ffffff",borderWidth:2}]}mapRequestsTrendChart(t){const n=Array.isArray(t&&t.belowLabel)?t.belowLabel.map(g=>this.normalizeLabel(g)):[],a=Array.isArray(t&&t.data)?t.data:[],i=a.find(g=>"received"===this.normalizeLabel(g&&g.label).toLowerCase())||a[0],l=this.normalizeLabel(i&&i.label)||"Received",p=i&&Array.isArray(i.value)?i.value.map(g=>this.toNumber(g)):[],d=this.shouldAggregateTrendByYear()?this.aggregateTrendD
1ataByYear(n,p):{labels:n,values:p};this.requestsTrendChartLabels=d.labels,this.requestsTrendChartData=d.labels.length&&d.values.length?[{data:d.values,label:l,borderColor:"#1f2329",backgroundColor:"transparent",pointBackgroundColor:"#a6c3e8",pointBorderColor:"#a6c3e8",pointHoverBackgroundColor:"#7aa9e7",pointHoverBorderColor:"#7aa9e7",pointRadius:4,pointHoverRadius:5,borderWidth:2,fill:!1,lineTension:0}]:[],this.requestsTrendLegend=this.requestsTrendChartData.length?[{label:l,color:"#1f2329"}]:[]}mapCategoryChart(t){const n=Array.isArray(t)?t.map(l=>({category:this.normalizeLabel(l&&l.category),duration:this.normalizeLabel(l&&l.duration),value:this.toNumber(l&&l.value)})).filter(l=>l.category&&l.duration):[],a=[],i=[];n.forEach(l=>{l.duration&&-1===a.indexOf(l.duration)&&a.push(l.duration),l.category&&-1===i.indexOf(l.category)&&i.push(l.category)}),this.categoryChartLabels=a,this.categoryChartData=i.map((l,p)=>{const d=x[p%x.length];return{data:a.map(g=>{const m=n.filter(f=>f.category===l&&f.duration===g);return m.length?m.reduce((f,xe)=>f+this.toNumber(xe.value),0):null}),label:l,borderColor:d,backgroundColor:"transparent",pointBackgroun
1dColor:d,pointBorderColor:d,pointHoverBackgroundColor:d,pointHoverBorderColor:d,pointRadius:1===a.length?5:3,pointHoverRadius:1===a.length?6:4,borderWidth:2,fill:!1,lineTension:0}}),this.categoryLegend=i.map((l,p)=>({label:l,color:x[p%x.length]}))}normalizeDashboardCount(t){return{AVG_TIME_TO_COMPLETE:this.toNumber(t&&t.AVG_TIME_TO_COMPLETE),REQUEST_CLOSED_OUTSIDE_TIMEFRAME:this.toNumber(t&&t.REQUEST_CLOSED_OUTSIDE_TIMEFRAME),REQUEST_COMPLETED:this.toNumber(t&&t.REQUEST_COMPLETED),REQUEST_IN_PROGRESS:this.toNumber(t&&t.REQUEST_IN_PROGRESS),REQUEST_OVERDUE:this.toNumber(t&&t.REQUEST_OVERDUE),REQUEST_RECEIVED:this.toNumber(t&&t.REQUEST_RECEIVED),REQUEST_REJECTED:this.toNumber(t&&t.REQUEST_REJECTED),SEVEN_DAYS_TO_COMPLETE:this.toNumber(t&&t.SEVEN_DAYS_TO_COMPLETE)}}buildSummaryCards(t){return P.map(n=>{const a=this.toNumber(t[n.key]);return{...n,value:a,displayValue:"AVG_TIME_TO_COMPLETE"===n.key?this.formatAverageTime(a):(0,h.D)(a)}})}createBarChartOptions(t,n){return{responsive:!0,maintainAspectRatio:!1,legend:{display:!1},tooltips:{mode:"index",intersect:!1,callbacks:{title:(a,i)=>this.getTooltipTitle(a,i),label:(a,i)=>this.getSeriesTooltipLabel(a,i)}},scales:{xAxes:[{gridLines:{display:!1,drawBorder:!1},scaleLabel:{display:!0,labelString:t,fontColor:"#111827",fontStyle:"600"},ticks:{autoSkip:!1,maxRotation:0,minRotation:0,padding:10,fontColor:"#6b7280",fontSize:11}}],yAxes:[{ticks:{beginAtZero:!0,precision:0,fontColor:"#6b7280",fontSize:11,callback:a=>(0,h.D)(a)},scaleLabel:{display:!0,labelString:n,fontColor:"#111827",fontStyle:"600"},gridLines:{color:"#e5e7eb",drawBorder:!1}}]}}}createLineChartOptions(t,n){return{responsive:!0,maintainAspectRatio:!1,legend:{display:!1},tooltips:{mode:"index",intersect:!1,callbacks:{title:(a,i)=>this.getTooltipTitle(a,i),label:(a,i)=>this.getSeriesTooltipLabel(a,i)}},elements:{line:{tension:0}},scales:{xAxes:[{gridLines:{display:!1,drawBorder:!1},scaleLabel:{display:!0,labelString:t,fontColor:"#111827",fontStyle:"600"},ticks:{autoSkip:!1,maxRotation:0,minRotation:0,fontColor:"#6b7280",fontSize:11}}],yAxes:[{ticks:{beginAtZero:!0,precision:0,fontColor:"#6b7280",fontSize:11,callback:a=>(0,h.D)(a)},scaleLabel:{display:!0,labelString:n,fontColor:"#111827",fontStyle:"600"},gridLines:{color:"#e5e7eb",drawBorder:!1}}]}}}resetDashboardState(){this.dashboardCount={...E},this.summaryCards=this.buildSummaryCards(this.dashboardCount),this.processingPhaseChartLabels=[],this.processingPhaseChartData=[],this.requestTypeChartLabels=[],this.requestTypeChartData=[],this.requestTypeLegend=[],this.requestsTrendChartLabels=[],this.requestsTrendChartData=[],this.requestsTrendLegend=[],this.categoryChartLabels=[],this.categoryChartData=[],this.categoryLegend=[]}normalizeLabel(t){return"string"==typeof t?t.trim():""}formatProcessingPhaseAxisLabel(t){const n=t.split(/\s+/).filter(Boolean);if(!n.length||t.length<=18)return t;const a=[];let i="";if(n.forEach(d=>{const g=i?`${i} ${d}`:d;!i||g.length<=18?i=g:(a.push(i),i=d)}),i&&a.push(i),a.length<=2)return a;const l=a[0],p=a.slice(1).join(" ");return[l,this.truncateAxisLine(p,18)]}truncateAxisLine(t,n){return t.length<=n?t:`${t.slice(0,Math.max(0,n-1)).trimEnd()}\u2026`}shouldAggregateTrendByYear(){if(!Array.isArray(this.searchbydaterange)||!this.searchbydaterange[0]||!this.searchbydaterange[1])return!1;const t=new Date(this.searchbydaterange[0]),n=new Date(this.searchbydaterange[1]);return!Number.isNaN(t.getTime())&&!Number.isNaN(n.getTime())&&this.getMonthDifference(t,n)>12}getMonthDifference(t,n){return 12*(n.getFullYear()-t.getFullYear())+(n.getMonth()-t.getMonth())+1}aggregateTrendDataByYear(t,n){const a=new Map;return t.forEach((i,l)=>{const p=this.getYearKeyFromTrendLabel(i),d=this.toNumber(n[l]);a.has(p)||a.set(p,0),a.set(p,this.toNumber(a.get(p))+d)}),{labels:Array.from(a.keys()),values:Array.from(a.values())}}getYearKeyFromTrendLabel(t){const n=this.normalizeLabel(t),a=n.match(/\b(19|20)\d{2}\b/);if(a)return a[0];const i=new Date(n);return Number.isNaN(i.getTime())?n:i.getFullYear().toString()}toNumber(t){const n=Number(t);return Number.isFinite(n)?n:0}formatAverageTime(t){return Math.abs(t)>=1e3?(0,h.D)(t):Number.isInteger(t)?t.toString():t.toFixed(2).replace(/0+$/,"").replace(/\.$/,"")}getSeriesTooltipLabel(t,n){const i=n?.datasets?.[t?.datasetIndex]?.label||"",l=t?.yLabel;return i?`${i}: ${(0,h.D)(l)}`:(0,h.D)(l)}getTooltipTitle(t,n){const a=Array.isArray(t)?t[0]:t,i=n?.labels?.[a?.index];return Array.isArray(i)?i.join(" "):i||""}getDoughnutTooltipLabel(t,n){const a=n?.labels?.[t?.index]||"",l=n?.datasets?.[t?.datasetIndex]?.data?.[t?.index];return a?`${a}: ${(0,h.D)(l)}`:(0,h.D)(l)}};let s=o;return o.\u0275fac=function(n){return new(n||o)(e.Y36(k.tT),e.Y36(q.LA),e.Y36(Z.D),e.Y36(u.Ye),e.Y36(D.gz),e.Y36(w.s),e.Y36(e.sBO),e.Y36(S.Dx))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-ccpa-dsar"]],viewQuery:function(n,a){if(1&n&&e.Gf(N,7),2&n){let i;e.iGM(i=e.CRH())&&(a.noSup=i.first)}},decls:46,vars:7,consts:[["appThemme","",1,"prd-dashboard"],[1,"d-sm-flex","align-items-center","justify-content-between","mg-b-5","mg-lg-b-10","mg-xl-b-15"],["aria-label","breadcrumb"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["aria-current","page",1,"breadcrumb-item","active"],[1,"mg-b-0","tx-spacing--1"],[1,"date-picker-wrapper"],[1,"col-sm-8","pr-0","pl-2","mr-2","d-flex","row-reverse"],[1,"input-group-prepend"],["class","input-group-text rounded-right border-left-0","id","inputGroup-sizing-sm",3,"click",4,"ngIf"],["class","input-group-text bg-transparent",3,"click",4,"ngIf"],["type","text","bsDaterangepicker","","placeholder","Select Date",1,"form-control","border-left-0","border-right-0","rounded-right",3,"ngModel","bsConfig","ngModelChange","onHidden"],["dp","b
1sDaterangepicker"],[1,"input-group-prepend","border-left-0",3,"click"],["id","inputGroup-sizing-sm",1,"input-group-text","rounded-left","border-right-0"],[1,"fa","fa-calendar"],["id","printReport",1,"btn","btn-sm","pd-x-15","btn-white","btn-uppercase","mg-l-5","d-flex",3,"click"],[1,"mr-2"],[1,"fas","fa-print"],[1,"btn","btn-sm","pd-x-15","btn-white","btn-uppercase","mg-l-5","d-flex",3,"click"],[1,"fas","fa-sync"],[4,"ngIf","ngIfElse"],["dashboardSkeleton",""],["processingPhaseEmpty",""],["requestTypeEmpty",""],["requestsTrendEmpty",""],["categoryEmpty",""],[1,"col-sm-5","mt-3","mr-0","float-right"],["dismissOnTimeout","5000",3,"type","dismissible","onClosed",4,"ngIf"],["noSup",""],["id","inputGroup-sizing-sm",1,"input-group-text","rounded-right","border-left-0",3,"click"],[1,"fa",3,"ngClass"],[1,"input-group-text","bg-transparent",3,"click"],["aria-hidden","true",1,"fa",3,"ngClass"],[1,"prd-kpi-groups"],[1,"prd-kpi-cluster","prd-kpi-cluster--wide"],["class","prd-kpi-metric",3,"--metric-accent",4,"ngFor","ngForOf"],[1,"prd-kpi-cluster","prd-kpi-cluster--medium"],[1,"prd-kpi-cluster","prd-kpi-cluster--compact"],["class","prd-kpi-metric prd-kpi-metric--compact",3,"--metric-accent",4,"ngFor","ngForOf"],[1,"prd-chart-grid","prd-chart-grid--two"],[1,"prd-card","prd-card--chart"],[1,"prd-card__header"],[1,"prd-card__title"],[1,"prd-card__body"],[1,"prd-chart-shell","prd-chart-shell--medium"],[1,"prd-request-type-layout"],[1,"prd-doughnut-shell"],["class","prd-legend prd-legend--stacked",4,"ngIf"],[1,"prd-card","prd-card--chart","prd-card--full"],["class","prd-inline-legend",4,"ngIf"],[1,"prd-chart-shell","prd-chart-shell--large"],[1,"prd-kpi-metric"],[1,"prd-kpi-metric__value-row"],[1,"prd-kpi-metric__value"],["class","prd-kpi-metric__suffix",4,"ngIf"],[1,"prd-kpi-metric__label"],[1,"prd-kpi-metric__suffix"],[1,"prd-kpi-metric","prd-kpi-metric--compact"],["baseChart","",3,"datasets","labels","options","chartType"],["baseChart","",3,"data","labels","options","colors","chartType"],[1,"prd-legend","prd-legend--stacked"],["class","prd-legend__item",4,"ngFor","ngForOf"],[1,"prd-legend__item"],[1,"prd-legend__swatch"],[1,"prd-legend__text"],[1,"prd-legend__value"],[1,"prd-inline-legend"],["class","prd-inline-legend__item",4,"ngFor","ngForOf"],[1,"prd-inline-legend__item"],[1,"prd-inline-legend__swatch","prd-inline-legend__swatch--line"],[1,"prd-kpi-cluster","prd-card--skeleton"],["count","3"],[1,"prd-card","prd-card--chart","prd-card--skeleton"],["count","12"],[1,"prd-card","prd-card--chart","prd-card--full","prd-card--skeleton"],["count","14"],[1,"prd-empty-state"],["dismissOnTimeout","5000",3,"type","dismissible","onClosed"],[1,"modal-body","text-center"],[1,"cancel-btn","btn","btn-primary","mt-2","mb-2",3,"click"]],template:function(n,a){if(1&n){const i=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"nav",2)(4,"ol",3)(5,"li",4),e._uU(6,"Privacy"),e.qZA(),e.TgZ(7,"li",4),e._uU(8,"Privacy Rights"),e.qZA(),e.TgZ(9,"li",5),e._uU(10,"Dashboard"),e.qZA()()(),e.TgZ(11,"h4",6),e._uU(12,"Privacy Rights Dashboard"),e.qZA()(),e.TgZ(13,"div",7)(14,"div",8)(15,"div",9),e.YNc(16,I,2,1,"span",10),e.YNc(17,Y,2,1,"span",11),e.qZA(),e.TgZ(18,"input",12,13),e.NdJ("ngModelChange",function(p){return a.searchbydaterange=p})("onHidden",function(){return a.onDateSelection()}),e.qZA(),e.TgZ(20,"div",14),e.NdJ("click",function(){e.CHM(i);const p=e.MAs(19);return e.KtG(p.show())}),e.TgZ(21,"span",15),e._UZ(22,"i",16),e.qZA()()(),e.TgZ(23,"button",17),e.NdJ("click",function(){return a.onPrint()}),e.TgZ(24,"span",18),e._UZ(25,"i",19),e.qZA(),e._uU(26," Print "),e.qZA(),e.TgZ(27,"button",20),e.NdJ("click",function(){return a.onGetPropsAndOrgId(),a.onGetCcpaAndDsar()}),e.TgZ(28,"span",18),e._UZ(29,"i",21),e.qZA(),e._uU(30," Refresh "),e.qZA()()(),e.YNc(31,ne,43,26,"ng-container",22),e.YNc(32,re,16,0,"ng-template",null,23,e.W1O),e.YNc(34,se,2,0,"ng-template",null,24,e.W1O),e.YNc(36,ie,2,0,"ng-template",null,25,e.W1O),e.YNc(38,oe,2,0,"ng-template",null,26,e.W1O),e.YNc(40,le,2,0,"ng-template",null,27,e.W1O),e.qZA(),e.TgZ(42,"div",28),e.YNc(43,ce,2,3,"alert",29),e.qZA(),e.YNc(44,pe,5,0,"ng-template",null,30,e.W1O)}if(2&n){const i=e.MAs(33);e.xp6(16),e.Q6J("ngIf",""==a.searchbydaterange),e.xp6(1),e.Q6J("ngIf",""!==a.searchbydaterange),e.xp6(1),e.Q6J("ngModel",a.searchbydaterange)("bsConfig",a.bsConfig),e.xp6(13),e.Q6J("ngIf",!a.skeletonLoading)("ngIfElse",i),e.xp6(12),e.Q6J("ngIf",a.isOpen)}},dependencies:[u.mk,u.sg,u.O5,R.xr,v.FR,v.TB,L.wx,U.mh,_.jh,C.Fj,C.JJ,C.On,u.OU],styles:['[_nghost-%COMP%]{display:block}.prd-dashboard[_ngcontent-%COMP%]{padding:0 2px 24px;color:#101828}.prd-kpi-groups[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(0,1.65fr) minmax(170px,.55fr);gap:16px;margin:16px 0 24px}.prd-kpi-cluster[_ngcontent-%COMP%], .prd-card[_ngcontent-%COMP%]{background:#ffffff;border:1px solid #cfd7e3;border-radius:0;box-shadow:none}.prd-kpi-cluster[_ngcontent-%COMP%]{display:grid;min-height:126px}.prd-kpi-cluster--wide[_ngcontent-%COMP%]{grid-template-columns:repeat(4,minmax(0,1fr))}
1.prd-kpi-cluster--medium[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}.prd-kpi-cluster--compact[_ngcontent-%COMP%]{grid-template-columns:1fr}.prd-kpi-metric[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;justify-content:flex-start;padding:18px 22px 16px;background:#ffffff}.prd-kpi-metric[_ngcontent-%COMP%]:not(:last-child):after{content:"";position:absolute;top:18px;right:0;bottom:18px;width:1px;background:#808891}.prd-kpi-metric__value-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:8px;margin-bottom:16px}.prd-kpi-metric__value[_ngcontent-%COMP%]{color:var(--metric-accent);font-size:2.45rem;line-height:.95;font-weight:700;letter-spacing:-.04em}.prd-kpi-metric__suffix[_ngcontent-%COMP%]{padding-bottom:3px;color:#111;font-size:1.9rem;line-height:1;font-weight:700;text-transform:lowercase}.prd-kpi-metric__label[_ngcontent-%COMP%]{margin:0;max-width:160px;color:#1f2937;font-size:.82rem;line-height:1.24;font-weight:600}.prd-kpi-metric--compact[_ngcontent-%COMP%]   .prd-kpi-metric__label[_ngcontent-%COMP%]{max-width:132px}.prd-chart-grid[_ngcontent-%COMP%]{display:grid;gap:16px}.prd-chart-grid--two[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1.16fr) minmax(0,1fr)}.prd-card[_ngcontent-%COMP%]{overflow:hidden}.prd-card--full[_ngcontent-%COMP%]{margin-top:16px}.prd-card__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:13px 16px 12px;border-bottom:1px solid #d8dee7;background:#ffffff}.prd-card__title[_ngcontent-%COMP%]{margin:0;color:#111;font-size:1.02rem;line-height:1.25;font-weight:600}.prd-card__body[_ngcontent-%COMP%]{padding:16px}.prd-chart-shell[_ngcontent-%COMP%]{position:relative;width:100%}.prd-chart-shell--medium[_ngcontent-%COMP%]{height:300px}.prd-chart-shell--large[_ngcontent-%COMP%]{height:326px}.prd-request-type-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) 218px;align-items:center;gap:16px 24px;min-height:332px;padding:16px}.prd-doughnut-shell[_ngcontent-%COMP%]{position:relative;width:100%;max-width:320px;height:255px;margin:0 auto}.prd-legend[_ngcontent-%COMP%]{display:grid;gap:14px}.prd-legend--stacked[_ngcontent-%COMP%]{align-content:center}.prd-legend__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;color:#1f2937;font-size:.95rem;font-weight:600}.prd-legend__swatch[_ngcontent-%COMP%], .prd-inline-legend__swatch[_ngcontent-%COMP%]{flex:0 0 auto;width:14px;height:14px;border-radius:0}.prd-legend__text[_ngcontent-%COMP%]{flex:1 1 auto}.prd-legend__value[_ngcontent-%COMP%]{color:#111;font-weight:700}.prd-inline-legend[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px 18px}.prd-inline-legend__item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;color:#475467;font-size:.8rem;font-weight:600}.prd-inline-legend__swatch--line[_ngcontent-%COMP%]{width:16px;height:0;border-radius:0;border-top:2px solid #111111}.prd-empty-state[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:220px;padding:24px;background:transparent;color:#667085;font-size:.9rem;font-weight:600;text-align:center}.prd-card--skeleton[_ngcontent-%COMP%]{padding:18px 22px}.date-picker-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center}.date-picker-wrapper[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{align-items:center;border-radius:0;box-shadow:none;text-transform:none;font-size:12px}.date-picker-wrapper[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%], .date-picker-wrapper[_ngcontent-%COMP%]   .input-group-text[_ngcontent-%COMP%]{border-radius:0!important;box-shadow:none}.row-reverse[_ngcontent-%COMP%]{flex-direction:row-reverse}.input-group-prepend[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background-color:#fff;border-color:#c0ccda!important;border-radius:0;cursor:pointer}.input-group-prepend[_ngcontent-%COMP%]   .bg-transparent[_ngcontent-%COMP%]{background-color:#fff!important;border-left:0!important;border-radius:0!important}  .theme-dark-blue{position:absolute;right:-140px;
1display:flex;flex-direction:row-reverse;flex-wrap:nowrap;justify-content:flex-start}  .theme-dark-blue .bs-datepicker-predefined-btns button{width:130px;margin-bottom:2px!important;border:1px solid #ccc;background:#fff;color:#333;border-radius:0}  .theme-dark-blue .bs-datepicker-predefined-btns button.selected{background:#16bf5e;color:#fff}  .theme-dark-blue .bs-datepicker-head{background-color:#000}@media (max-width: 1450px){.prd-kpi-groups[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.prd-kpi-cluster--compact[_ngcontent-%COMP%]{grid-column:1/-1;max-width:260px}}@media (max-width: 1199px){.prd-chart-grid--two[_ngcontent-%COMP%], .prd-request-type-layout[_ngcontent-%COMP%]{grid-template-columns:1fr}.prd-legend--stacked[_ngcontent-%COMP%]{max-width:360px;margin:0 auto}}@media (max-width: 991px){.prd-kpi-groups[_ngcontent-%COMP%]{grid-template-columns:1fr}.prd-kpi-cluster--wide[_ngcontent-%COMP%], .prd-kpi-cluster--medium[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.prd-kpi-cluster--compact[_ngcontent-%COMP%]{max-width:none}.prd-kpi-metric[_ngcontent-%COMP%]:nth-child(2):after{display:none}.date-picker-wrapper[_ngcontent-%COMP%]{flex-wrap:wrap;justify-content:flex-start;gap:10px;margin-top:14px}.date-picker-wrapper[_ngcontent-%COMP%]   .col-sm-8[_ngcontent-%COMP%]{flex:1 1 100%;max-width:100%;margin-right:0!important;padding-left:0!important}.prd-card__header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.prd-inline-legend[_ngcontent-%COMP%]{justify-content:flex-start}}@media (max-width: 767px){.prd-dashboard[_ngcontent-%COMP%]{padding-bottom:18px}.prd-kpi-cluster--wide[_ngcontent-%COMP%], .prd-kpi-cluster--medium[_ngcontent-%COMP%]{grid-template-columns:1fr}.prd-kpi-metric[_ngcontent-%COMP%]:not(:last-child):after{inset:auto 18px 0;width:auto;height:1px}.prd-kpi-metric__value[_ngcontent-%COMP%]{font-size:2.2rem}.prd-kpi-metric__suffix[_ngcontent-%COMP%]{font-size:1.5rem}.prd-card__header[_ngcontent-%COMP%], .prd-card__body[_ngcontent-%COMP%], .prd-request-type-layout[_ngcontent-%COMP%]{padding-right:14px;padding-left:14px}.prd-chart-shell--medium[_ngcontent-%COMP%], .prd-chart-shell--large[_ngcontent-%COMP%]{height:292px}.prd-doughnut-shell[_ngcontent-%COMP%]{height:238px}}']}),s})();var ge=c(19119),he=c(94284),ue=c(31456),me=c(23501),fe=c(55466),_e=c(91742);const Ce=[{path:"",component:de,canActivate:[M.a1,ue.p,he.g]}];let be=(()=>{const o=class{};let s=o;return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({providers:[_.fY],imports:[u.ez,D.Bz.forChild(Ce),ge.J,_.m9,C.u5,me.O.forRoot({themes:[fe.W,_e.$],active:O.N.theme})]}),s})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.