PageSourceSearch

https://portal.privacypillar.com/src_app_dashboard_consent-solutio…sent-solution_module_ts.053e0f6aa5e6bd3d.js

js privacypillar.com collected 2026-09-24 09:08:56 UTC 43,579 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["src_app_dashboard_consent-solution_consent-solution_module_ts"],{74962:(xt,x,p)=>{p.r(x),p.d(x,{ConsentSolutionModule:()=>Ct});var C=p(36895),w=p(51692),O=p(72986),M=p(40537),k=p(3940),_=p(68078),T=p(92340),t=p(94650),Z=p(11481),A=p(31496),S=p(45887),v=p(94829),P=p(1637),D=p(73747),L=p(12553),b=p(24006);function U(o,s){if(1&o&&(t.TgZ(0,"span",68),t._uU(1),t.qZA()),2&o){const a=t.oxw().$implicit;t.xp6(1),t.hij("(",a.percentLabel,")")}}function B(o,s){if(1&o&&(t.TgZ(0,"div",69),t._UZ(1,"span",70),t.qZA()),2&o){const a=t.oxw().$implicit;t.xp6(1),t.Udp("width",a.progress,"%")("background",a.accent)}}function N(o,s){if(1&o&&(t.TgZ(0,"article",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA(),t.YNc(4,U,2,1,"span",65),t.qZA(),t.YNc(5,B,2,4,"div",66),t.TgZ(6,"div",67),t._uU(7),t.qZA()()),2&o){const a=s.$implicit;t.ekj("cpd-summary-metric--primary",a.prominent),t.xp6(3),t.Oqu(a.count),t.xp6(1),t.Q6J("ngIf",a.percentLabel),t.xp6(1),t.Q6J("ngIf",null!==a.progress),t.xp6(2),t.Oqu(a.label)}}function q(o,s){if(1&o&&(t.TgZ(0,"article",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()(),t.TgZ(4,"div",69),t._UZ(5,"span",70),t.qZA(),t.TgZ(6,"div",67),t._uU(7),t.qZA()()),2&o){const a=s.$implicit;t.xp6(3),t.Oqu(a.count),t.xp6(2),t.Udp("width",a.progress,"%")("background",a.accent),t.xp6(2),t.Oqu(a.label)}}function R(o,s){if(1&o&&(t.TgZ(0,"article",71)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()(),t.TgZ(4,"div",67),t._uU(5),t.qZA()()),2&o){const a=s.$implicit;t.xp6(3),t.Oqu(a.count),t.xp6(2),t.Oqu(a.label)}}function F(o,s){if(1&o&&(t.ynx(0),t._UZ(1,"canvas",72),t.BQk()),2&o){const a=t.oxw(2);t.xp6(1),t.Q6J("data",a.donutChartData)("labels",a.donutChartLabels)("options",a.donutChartOptions)("colors",a.donutChartColors)("chartType",a.donutChartType)}}function Y(o,s){if(1&o&&(t.TgZ(0,"div",73),t._UZ(1,"span",74),t.TgZ(2,"span",75),t._uU(3),t.qZA()()),2&o){const a=s.$implicit;t.xp6(1),t.Udp("background-color",a.color),t.xp6(2),t.Oqu(a.label)}}function j(o,s){if(1&o&&(t.ynx(0),t._UZ(1,"canvas",76),t.BQk()),2&o){const a=t.oxw(2);t.xp6(1),t.Q6J("datasets",a.activityChartData)("labels",a.activityChartLabels)("options",a.activityChartOptions)("chartType",a.activityChartType)}}function J(o,s){if(1&o&&(t.TgZ(0,"span",79),t._UZ(1,"span",80),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&o){const a=s.$implicit;t.xp6(1),t.Udp("background-color",a.color),t.xp6(2),t.Oqu(a.label)}}function Q(o,s){if(1&o&&(t.TgZ(0,"div",77),t.YNc(1,J,4,3,"span",78),t.qZA()),2&o){const a=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",a.withdrawnBreakdownLegend)}}function z(o,s){if(1&o&&(t.ynx(0),t._UZ(1,"canvas",76),t.BQk()),2&o){const a=t.oxw(2);t.xp6(1),t.Q6J("datasets",a.withdrawnBreakdownData)("labels",a.withdrawnBreakdownLabels)("options",a.stackedBarChartOptions)("chartType",a.breakdownChartType)}}function E(o,s){if(1&o&&(t.TgZ(0,"span",79),t._UZ(1,"span",80),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&o){const a=s.$implicit;t.xp6(1),t.Udp("background-color",a.color),t.xp6(2),t.Oqu(a.label)}}function I(o,s){if(1&o&&(t.TgZ(0,"div",77),t.YNc(1,E,4,3,"span",78),t.qZA()),2&o){const a=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",a.expiredBreakdownLegend)}}function W(o,s){if(1&o&&(t.ynx(0),t._UZ(1,"canvas",76),t.BQk()),2&o){const a=t.oxw(2);t.xp6(1),t.Q6J("datasets",a.expiredBreakdownData)("labels",a.expiredBreakdownLabels)("options",a.stackedBarChartOptions)("chartType",a.breakdownChartType)}}function $(o,s){if(1&o){const a=t.EpF();t.TgZ(0,"button",81),t.NdJ("click",function(){const r=t.CHM(a).$implicit,i=t.oxw(2);return t.KtG(i.selectResidencyFilter(r.key))}),t._uU(1),t.qZA()}if(2&o){const a=s.$implicit,e=t.oxw(2);t.ekj("is-active",e.activeResidencyFilter===a.key),t.xp6(1),t.hij(" ",a.label," ")}}function K(o,s){if(1&o&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA()()),2&o){const a=s.$implicit;t.xp6(2),t.Oqu(a.country),t.xp6(2),t.Oqu(a.count)}}function V(o,s){1&o&&(t.TgZ(0,"tr")(1,"td",82),t._uU(2,"No data available"),t.qZA()())}function G(o,s){if(1&o&&(t.TgZ(0,"span",79),t._UZ(1,"span",80),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&o){const a=s.$implicit;t.xp6(1),t.Udp("background-color","line"===a.variant?"transparent":a.color)("border-top-color","line"===a.variant?a.color:"transparent"),t.ekj("cpd-inline-legend__swatch--line","line"===a.variant),t.xp6(2),t.Oqu(a.label)}}function H(o,s){if(1&o&&(t.TgZ(0,"div",77),t.YNc(1,G,4,7,"span",78),t.qZA()),2&o){const a=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",a.collectionPointLegend)}}function X(o,s){if(1&o&&(t.ynx(0),t._UZ(1,"canvas",76),t.BQk()),2&o){const a=t.oxw(2);t.xp6(1),t.Q6J("datasets",a.collectionPointChartData)("labels",a.collectionPointLabels)("options",a.collectionPointChartOptions)("chartType",a.collectionPointChartType)}}function tt(o,s){if(1&o&&(t.ynx(0),t.TgZ(1,"div",25)(2,"div",26)(3,"section",27)(4,"div",28),t.YNc(5,N,8,6,"article",29),t.qZA()(),t.TgZ(6,"section",30)(7,"div",31),t.YNc(8,q,8,6,"article",32),t.qZA()(),t.TgZ(9,"section",33)(10,"div",34),t.YNc(11,R,6,2,"article",35),t.qZA()()(),t.TgZ(12,"section",36)(13,"div",37)(14,"div",38),t.YNc(15,F,2,5,"ng-container",18),t.qZA(),t.TgZ(16,"div",39),t.YNc(17,Y,4,3,"div",40),t.qZA()()()(),t.TgZ(18,"section",41)(19,"div",42)(20,"h5",43),t._uU(21,"Consent Activity"),t.qZA()(),t.TgZ(22,"div",44),t.YNc(23,j,2,4,"ng-container",18),t.qZA()(),t.TgZ(24,"div",45)(25,"section",46)(26,"div",42)(27,"h5",43),t._uU(28,"Consent Receipts Breakdown by Withdrawn"),t.qZA(),t.YNc(29,Q,2,1,"div",47),t.qZA(),t.TgZ(30,"div",48),t.YNc(31,z,2,4,"ng-container",18),t.qZA()(),t.TgZ(32,"section",46)(33,"div",42)(34,"h5",43),t._uU(35,"Consent Receipts Breakdown by Expired"),t.qZA(),t.YNc(36,I,2,1,"div",47),t.qZA(),t.TgZ(37,"div",48),t.YNc(38,W,2,4,"ng-container",18),t.qZA()()(),t.TgZ(39,"section",49)(40,"div",50)(41,"h5",43),t._uU(42,"Consent By Residency"),t.qZA(),t.TgZ(43,"div",51),t.YNc(44,$,2,3,"button",52),t.qZA()(),t.TgZ(45,"div",53)(46,"div",54),t._UZ(47,"div",55),t.qZA(),t.TgZ(48,"div",56)(49,"table",57)(50,"thead")(51,"tr")(52,"th"),t._uU(53,"Country"),t.qZA(),t.TgZ(54,"th"),t._uU(55,"Active Consent"),t.qZA()()(),t.TgZ(56,"tbody"),t.YNc(57,K,5,2,"tr",58),t.YNc(58,V,3,0,"tr",59),t.qZA()()()()(),t.TgZ(59,"section",60)(60,"div",42)(61,"h5",43),t._uU(62,"Consent By Collection Point Type"),t.qZA(),t.YNc(63,H,2,1,"div",47),t.qZA(),t.TgZ(64,"div",61),t.YNc(65,X,2,4,"ng-container",18),t.qZA()(),t.BQk()),2&o){const a=t.oxw(),e=t.MAs(29),n=t.MAs(31),r=t.MAs(33),i=t.MAs(35),d=t.MAs(37);
1t.xp6(5),t.Q6J("ngForOf",a.summaryPrimaryCards),t.xp6(3),t.Q6J("ngForOf",a.summarySecondaryCards),t.xp6(3),t.Q6J("ngForOf",a.summaryAdditionalCards),t.xp6(4),t.Q6J("ngIf",a.hasDonutData)("ngIfElse",e),t.xp6(2),t.Q6J("ngForOf",a.donutLegend),t.xp6(6),t.Q6J("ngIf",a.hasActivityChartData)("ngIfElse",n),t.xp6(6),t.Q6J("ngIf",a.withdrawnBreakdownLegend.length),t.xp6(2),t.Q6J("ngIf",a.hasWithdrawnBreakdownData)("ngIfElse",r),t.xp6(5),t.Q6J("ngIf",a.expiredBreakdownLegend.length),t.xp6(2),t.Q6J("ngIf",a.hasExpiredBreakdownData)("ngIfElse",i),t.xp6(6),t.Q6J("ngForOf",a.residencyFilters),t.xp6(13),t.Q6J("ngForOf",a.activeResidencyCountries),t.xp6(1),t.Q6J("ngIf",!a.activeResidencyCountries.length),t.xp6(5),t.Q6J("ngIf",a.collectionPointLegend.length),t.xp6(2),t.Q6J("ngIf",a.hasCollectionPointData)("ngIfElse",d)}}function et(o,s){if(1&o&&(t.TgZ(0,"article",62),t._UZ(1,"ngx-skeleton-loader",93),t.qZA()),2&o){const a=s.$implicit;t.ekj("cpd-summary-metric--primary",1===a),t.xp6(1),t.Q6J("count",1===a?3:4)}}function nt(o,s){1&o&&(t.TgZ(0,"article",62),t._UZ(1,"ngx-skeleton-loader",94),t.qZA())}function at(o,s){1&o&&(t.TgZ(0,"article",71),t._UZ(1,"ngx-skeleton-loader",95),t.qZA())}const ot=function(){return[1,2,3,4]},rt=function(){return[1,2]},it=function(){return[1,2,3,4,5]};function ct(o,s){1&o&&(t.TgZ(0,"div",25)(1,"div",26)(2,"section",83)(3,"div",28),t.YNc(4,et,2,3,"article",29),t.qZA()(),t.TgZ(5,"section",84)(6,"div",31),t.YNc(7,nt,2,0,"article",32),t.qZA()(),t.TgZ(8,"section",85)(9,"div",34),t.YNc(10,at,2,0,"article",35),t.qZA()()(),t.TgZ(11,"section",86),t._UZ(12,"ngx-skeleton-loader",87),t.qZA()(),t.TgZ(13,"section",88),t._UZ(14,"ngx-skeleton-loader",89),t.qZA(),t.TgZ(15,"div",45)(16,"section",90),t._UZ(17,"ngx-skeleton-loader",87),t.qZA(),t.TgZ(18,"section",90),t._UZ(19,"ngx-skeleton-loader",87),t.qZA()(),t.TgZ(20,"section",91),t._UZ(21,"ngx-skeleton-loader",89),t.qZA(),t.TgZ(22,"section",92),t._UZ(23,"ngx-skeleton-loader",89),t.qZA()),2&o&&(t.xp6(4),t.Q6J("ngForOf",t.DdM(3,ot)),t.xp6(3),t.Q6J("ngForOf",t.DdM(4,rt)),t.xp6(3),t.Q6J("ngForOf",t.DdM(5,it)))}function st(o,s){1&o&&(t.TgZ(0,"div",96),t._uU(1,"No consent breakdown available"),t.qZA())}function lt(o,s){1&o&&(t.TgZ(0,"div",96),t._uU(1,"No activity data available"),t.qZA())}function dt(o,s){1&o&&(t.TgZ(0,"div",96),t._uU(1,"No withdrawn data available"),t.qZA())}function pt(o,s){1&o&&(t.TgZ(0,"div",96),t._uU(1,"No expired data available"),t.qZA())}function gt(o,s){1&o&&(t.TgZ(0,"div",96),t._uU(1,"No collection point data available"),t.qZA())}let ht=(()=>{const s=class{constructor(e,n,r,i,d){this.titleService=e,this.activatedRoute=n,this.location=r,this.organizationService=i,this.consentSolutionsService=d,this.colors={accept:"#a8c7eb",reject:"#dddddd",partial:"#ff6b61",withdrawn:"#f4d88c",expired:"#86cb70",unknown:"#b7bec8",neutral:"#111111",activityBorder:"#67a5ef",activityFill:"rgba(103, 165, 239, 0.24)"},this.palette=["#ff7065","#a8c7eb","#9bd37a","#ececec","#f5d88c","#7a7a7a","#59c4c4","#b583ff","#f4a259"],this.countryLookup={AE:{name:"UAE",mapCode:"ae"},AU:{name:"Australia",mapCode:"au"},CA:{name:"Canada",mapCode:"ca"},DE:{name:"Germany",mapCode:"de"},FR:{name:"France",mapCode:"fr"},IN:{name:"India",mapCode:"in"},JP:{name:"Japan",mapCode:"jp"},SG:{name:"Singapore",mapCode:"sg"},UK:{name:"UK",mapCode:"gb"},US:{name:"USA",mapCode:"us"},UNKNOWN:{name:"Unknown",mapCode:null}},this.isViewInitialized=!1,this.skeletonLoading=!0,this.summaryPrimaryCards=[],this.summarySecondaryCards=[],this.summaryAdditionalCards=[],this.donutLegend=[{label:"Accept All",color:this.colors.accept},{label:"Reject All",color:this.colors.reject},{label:"Partial Consent",color:this.colors.partial}],this.withdrawnBreakdownLegend=[],this.expiredBreakdownLegend=[],this.collectionPointLegend=[],this.residencyFilters=[{key:"Active",label:"Active"},{key:"NoConsent",label:"No Consent"},{key:"Unknown",label:"Unknown"},{key:"Withdrawn",label:"Withdrawn"},{key:"Expired",label:"Expired"}],this.activeResidencyFilter="Active",this.residencyData=this.createEmptyResidencyData(),this.hasDonutData=!1,this.hasActivityChartData=!1,this.hasWithdrawnBreakdownData=!1,this.hasExpiredBreakdownData=!1,this.hasCollectionPointData=!1,this.donutChartL
1abels=["Accept All","Reject All","Partial Consent"],this.donutChartData=[0,0,0],this.donutChartType="doughnut",this.donutChartColors=[{backgroundColor:[this.colors.accept,this.colors.reject,this.colors.partial],borderColor:[this.colors.accept,this.colors.reject,this.colors.partial],borderWidth:0}],this.donutChartOptions={responsive:!0,maintainAspectRatio:!1,cutoutPercentage:58,legend:{display:!1},tooltips:{enabled:!0,callbacks:{label:(c,l)=>this.getDoughnutTooltipLabel(c,l)}}},this.activityChartType="line",this.activityChartLabels=[],this.activityChartData=[],this.activityChartOptions={responsive:!0,maintainAspectRatio:!1,legend:{display:!1},tooltips:{mode:"index",intersect:!1,callbacks:{label:(c,l)=>this.getSeriesTooltipLabel(c,l)}},elements:{line:{tension:.25},point:{radius:3,hoverRadius:5}},scales:{xAxes:[{gridLines:{display:!1,drawBorder:!1},ticks:{fontColor:"#7c8188",fontSize:10,maxRotation:0,minRotation:0}}],yAxes:[{ticks:{beginAtZero:!0,precision:0,fontColor:"#7c8188",fontSize:10,callback:c=>(0,_.D)(c)},gridLines:{color:"#eceff3",drawBorder:!1}}]}},this.breakdownChartType="bar",this.withdrawnBreakdownLabels=[],this.expiredBreakdownLabels=[],this.stackedBarChartOptions={responsive:!0,maintainAspectRatio:!1,legend:{display:!1},tooltips:{mode:"index",intersect:!1,callbacks:{label:(c,l)=>this.getSeriesTooltipLabel(c,l)}},scales:{xAxes:[{stacked:!0,gridLines:{display:!1,drawBorder:!1},ticks:{fontColor:"#7c8188",fontSize:10}}],yAxes:[{stacked:!0,ticks:{beginAtZero:!0,precision:0,fontColor:"#7c8188",fontSize:10,callback:c=>(0,_.D)(c)},gridLines:{color:"#eceff3",drawBorder:!1}}]}},this.withdrawnBreakdownData=[],this.expiredBreakdownData=[],this.collectionPointChartType="line",this.collectionPointLabels=[],this.collectionPointChartOptions=this.createCollectionPointChartOptions(),this.collectionPointChartData=[],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],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"}],this.titleService.setTitle("Consent Preference Dashboard - "+T.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:"yyyy-mm-dd",adaptivePosition:!1,showTodayButton:!0,ranges:this.ranges}),this.loadDashboardData()}ngAfterViewInit(){this.isViewInitialized=!0,this.renderResidencyMap()}ngOnDestroy(){this.isViewInitialized=!1,this.destroyResidencyMap()}get activeResidencyCountries(){return this.residencyData[this.activeResidencyFilter]||[]}selectResidencyFilter(e){this.activeResidencyFilter!==e&&(this.activeResidencyFilter=e,this.isViewInitialized&&setTimeout(()=>this.renderResidencyMap(),0))}onDateSelection(){this.loadDashboardData()}onRefreshAll(){this.loadDashboardData()}loadDashboardData(){if(this.skeletonLoading=!0,this.resetDashboardState(),!this.resolvePropertyId())return void(this.skeletonLoading=!1);const e=this.buildDashboardParams();this.consentSolutionsService.getConsentDataForDashboard(this.constructor.name,e,k.e.consentSolutionModule).pipe((0,O.q)(1),(0,M.x)(()=>{this.skeletonLoading=!1})).subscribe(n=>{n&&200===n.status||n?.response?this.mapDashboardResponse(n):this.resetDashboardState()},()=>this.resetDashboardState())}buildDashboardParams(){const[e,n]=this.getSelectedDateRange();return{from_date:this.formatApiDate(e),to_date:this.formatApiDate(n)}}resolvePropertyId(){const e=this.activatedRoute.snapshot.queryParamMap.get("pid");if(e)return e;const n=this.location.path(),r=(0,_.Dq)(n);return r&&r.length>1&&r[1]?r[1]:this.organizationService.getCurrentOrgWithProperty()?.property_id||null}mapDashboardResponse(e){const n=e?.response||{},r=this.toNumber(n.consent_count),i=this.toNumber(n.accept_all_count),d=this.toNumber(n.reject_all_count),c=this.toNumber(n.partial_count),l=this.toNumber(n.withdrawn_consent_count),g=this.toNumber(n.expired_consent_count),h=this.getProgressBase([i,d,c],r),f=this.getProgressBase([l,g],r);this.summaryPrimaryCards=[{label:"Total Consents",count:this.formatCount(r),progress:null,accent:this.colors.neutral,prominent:!0},{label:"Accept All",count:this.formatCount(i),percentLabel:this.formatPercentLabel(i,h),progress:this.getProgressPercentage(i,h),accent:this.colors.accept},{label:"Reject All",count:this.formatCount(d),percentLabel:this.formatPercentLabel(d,h),progress:this.getProgressPercentage(d,h),accent:this.colors.reject},{label:"Partial Consent",count:this.formatCount(c),percentLabel:this.formatPercentLabel(c,h),progress:this.getProgressPercentage(c,h),accent:this.colors.partial}],this.summarySecondaryCards=[{label:"Withdrawn Consent",count:this.formatCount(l),progress:this.getProgressPercentage(l,f),accent:this.colors.withdrawn},{label:"Expired Consent",count:this.formatCount(g),progress:this.getProgressPercentage(g,f),accent:this.colors.expired}],this.summaryAdditionalCards=[{label:"Total Legal Notices",count:this.formatCount(this.toNumber(n.legal_notice_count)),progress:null,accent:this.colors.accept,compact:!0},{label:"Total Proofs",count:this.formatCount(this.toNumber(n.proof_count)),progress:null,accent:this.colors.accept,compact:!0},{label:"Newsletter",count:this.formatCount(this.toNumber(n.newsletter_count)),progress:null,accent:this.colors.accept,compact:!0},{label:"Terms and Conditions",count:this.formatCount(this.toNumber(n.terms_and_condition_count)),progress:null,accent:this.colors.accept,compact:!0},{label:"Privacy Policy",count:this.formatCount(this.toNumber(n.privacy_policy_count)),progress:null,accent:this.colors.accept,compact:!0}],this.donutChartData=[i,d,c],this.hasDonutData=this.donutChartData.some(bt=>bt>0),this.mapActivityChart(e?.chartData||[]);const u=this.buildStackedBarChart(n.withdrawn_chart||[]);this.withdrawnBreakdownLabels=u.labels,this.withdrawnBreakdownData=u.datasets,this.withdrawnBreakdownLegend=u.legend,this.hasWithdrawnBreakdownData=u.hasData;const m=this.buildStackedBarChart(n.expired_chart||[]);this.expiredBreakdownLabels=m.labels,this.expiredBreakdownData=m.datasets,this.expiredBreakdownLegend=m.legend,this.hasExpiredBreakdownData=m.hasData;const y=this.buildCollectionPointChart(n.consent_by_collection_point||[]);this.collectionPointLabels=y.labels,this.collectionPointChartData=y.datasets,this.collectionPointLegend=y.legend,this.collectionPointChartType=y.chartType,this.collectionPointChartOptions=this.createCollectionPointChartOptions("bar"===y.chartType),this.hasCollectionPointData=y.hasData,this.residencyData=this.buildResidencyData(n.consent_by_residency||[]),this.ensureActiveResidencyFilter(),this.isViewInitialized&&setTimeout(()=>this.renderResidencyMap(),0)}mapActivityChart(e){const n=[...e].filter(i=>!!i?.day).sort((i,d)=>new Date(i.day).getTime()-new Date(d.day).getTime()),r=n.map(i=>this.toNumber(i.number_of_users));this.activityChartLabels=n.map(i=>this.formatShortDate(i.day)),this.activityChartData=r.length?[{data:r,label:"Consent Activity",borderColor:this.colors.activityBorder,backgroundColor:this.colors.activityFill,pointBackgroun
1dColor:this.colors.activityBorder,pointBorderColor:this.colors.activityBorder,fill:!0,borderWidth:2}]:[],this.hasActivityChartData=r.some(i=>i>0)}buildStackedBarChart(e){const n=e.filter(c=>!!c?.day&&!!c?.purpose_name).map(c=>({dateKey:this.getDateKey(c.day),label:this.formatShortDate(c.day),series:c.purpose_name,value:this.toNumber(c.number_of_users)}));if(!n.length)return{labels:[],datasets:[],legend:[],hasData:!1};const r=this.getOrderedDates(n.map(c=>({key:c.dateKey,label:c.label}))),d=Array.from(new Set(n.map(c=>c.series))).map((c,l)=>({data:r.map(g=>n.filter(h=>h.series===c&&h.dateKey===g.key).reduce((h,f)=>h+f.value,0)),label:this.toDisplayLabel(c),backgroundColor:this.getPaletteColor(l),stack:"consent"}));return{labels:r.map(c=>c.label),datasets:d,legend:d.map(c=>({label:c.label||"",color:this.readDatasetColor(c.backgroundColor,this.colors.accept)})),hasData:d.some(c=>this.hasDatasetValues(c.data))}}buildCollectionPointChart(e){const n=e.filter(l=>!!l?.day&&!!l?.collection_point).map(l=>({dateKey:this.getDateKey(l.day),label:this.formatMonthDate(l.day),series:l.collection_point,value:this.toNumber(l.count)}));if(!n.length)return{labels:[],datasets:[],legend:[],hasData:!1,chartType:"line"};const r=this.getOrderedDates(n.map(l=>({key:l.dateKey,label:l.label}))),i=Array.from(new Set(n.map(l=>l.series)));if(1===r.length&&i.length>1){const l=i.map((g,h)=>{const f=this.getPaletteColor(h);return{data:r.map(u=>n.filter(m=>m.series===g&&m.dateKey===u.key).reduce((m,y)=>m+y.value,0)),label:this.toDisplayLabel(g),backgroundColor:f,borderColor:f,borderWidth:1,maxBarThickness:36,categoryPercentage:.72,barPercentage:.78}});return{labels:r.map(g=>g.label),datasets:l,legend:l.map(g=>({label:g.label||"",color:this.readDatasetColor(g.backgroundColor,this.colors.accept)})),hasData:l.some(g=>this.hasDatasetValues(g.data)),chartType:"bar"}}const c=i.map((l,g)=>{const h=this.getPaletteColor(g);return{data:r.map(f=>n.filter(u=>u.series===l&&u.dateKey===f.key).reduce((u,m)=>u+m.value,0)),label:this.toDisplayLabel(l),borderColor:h,backgroundColor:"transparent",pointBackgroun
1dColor:h,pointBorderColor:h,fill:!1,borderWidth:2}});return{labels:r.map(l=>l.label),datasets:c,legend:c.map(l=>({label:l.label||"",color:this.readDatasetColor(l.borderColor,this.colors.accept),variant:"line"})),hasData:c.some(l=>this.hasDatasetValues(l.data)),chartType:"line"}}createCollectionPointChartOptions(e=!1){return{responsive:!0,maintainAspectRatio:!1,legend:{display:!1},tooltips:{mode:"index",intersect:!1,callbacks:{label:(n,r)=>this.getSeriesTooltipLabel(n,r)}},elements:e?void 0:{line:{tension:0},point:{radius:3,hoverRadius:4}},scales:{xAxes:[{gridLines:{display:!1,drawBorder:!1},ticks:{fontColor:"#7c8188",fontSize:10,maxRotation:0,minRotation:0}}],yAxes:[{ticks:{beginAtZero:!0,precision:0,fontColor:"#7c8188",fontSize:10,callback:n=>(0,_.D)(n)},gridLines:{color:"#eceff3",drawBorder:!1}}]}}}buildResidencyData(e){const n=new Map;e.forEach(i=>{const d=this.normalizeResidencyStatus(i?.status);if(!d)return;const l=`${d}:${(i?.country||"Unknown").toUpperCase()}`;n.set(l,(n.get(l)||0)+this.toNumber(i?.count))});const r=this.createEmptyResidencyData();return n.forEach((i,d)=>{const[c,l]=d.split(":"),g=c,h=this.getCountryMeta(l);r[g].push({code:l,mapCode:h.mapCode,country:h.name,count:i})}),Object.keys(r).forEach(i=>{r[i]=r[i].sort((d,c)=>c.count-d.count)}),r}ensureActiveResidencyFilter(){if(this.activeResidencyCountries.length)return;const e=this.residencyFilters.find(n=>this.residencyData[n.key].length>0);this.activeResidencyFilter=e?e.key:"Active"}renderResidencyMap(){if(typeof jQuery>"u")return;const e=jQuery("#consentResidencyMap");if(!e.length||"function"!=typeof e.vectorMap)return;const n=this.activeResidencyCountries,r=this.buildResidencyColorMap(n);this.destroyResidencyMap(),e.vectorMap({map:"world_en",backgroundColor:"#ffffff",color:"#e5e7eb",colors:r,hoverOpacity:.9,selectedColor:"#4a8de8",enableZoom:!1,showTooltip:!0,borderWidth:1,borderColor:"#ffffff",onLabelShow:(i,d,c)=>{const l=n.find(g=>g.mapCode===c);l&&d.append(" : "+(0,_.D)(l.count))}})}destroyResidencyMap(){if(typeof jQuery>"u")return;const e=jQuery("#consentResidencyMap");e.length&&(e.empty(),e.removeData("mapObject"),e.off(".jqvmap"))}buildResidencyColorMap(e){const n=e.filter(i=>!!i.mapCode),r=n.reduce((i,d)=>Math.max(i,d.count),0);return n.reduce((i,d)=>(i[d.mapCode]=this.getMapShade(d.count,r),i),{})}getMapShade(e,n){if(!n)return"#c7d7f5";const r=e/n;return r>=.8?"#1f5fbf":r>=.55?"#3977d9":r>=.3?"#7cabef":"#b6cdf6"}resetDashboardState(){this.summaryPrimaryCards=[{label:"Total Consents",count:"0",progress:null,accent:this.colors.neutral,prominent:!0},{label:"Accept All",count:"0",percentLabel:"0.00%",progress:0,accent:this.colors.accept},{label:"Reject All",count:"0",percentLabel:"0.00%",progress:0,accent:this.colors.reject},{label:"Partial Consent",count:"0",percentLabel:"0.00%",progress:0,accent:this.colors.partial}],this.summarySecondaryCards=[{label:"Withdrawn Consent",count:"0",progress:0,accent:this.colors.withdrawn},{label:"Expired Consent",count:"0",progress:0,accent:this.colors.expired}],this.summaryAdditionalCards=[{label:"Total Legal Notices",count:"0",progress:null,accent:this.colors.accept,compact:!0},{label:"Total Proofs",count:"0",progress:null,accent:this.colors.accept,compact:!0},{label:"Newsletter",count:"0",progress:null,accent:this.colors.accept,compact:!0},{label:"Terms and Conditions",count:"0",progress:null,accent:this.colors.accept,compact:!0},{label:"Privacy Policy",count:"0",progress:null,accent:this.colors.accept,compact:!0}],this.donutChartData=[0,0,0],this.hasDonutData=!1,this.activityChartLabels=[],this.activityChartData=[],this.hasActivityChartData=!1,this.withdrawnBreakdownLabels=[],this.withdrawnBreakdownData=[],this.withdrawnBreakdownLegend=[],this.hasWithdrawnBreakdownData=!1,this.expiredBreakdownLabels=[],this.expiredBreakdownData=[],this.expiredBreakdownLegend=[],this.hasExpiredBreakdownData=!1,this.collectionPointLabels=[],this.collectionPointChartData=[],this.collectionPointChartType="line",this.collectionPointChartOptions=this.createCollectionPointChartOptions(),this.collectionPointLegend=[],this.hasCollectionPointData=!1,this.activeResidencyFilter="Active",this.residencyData=this.createEmptyResidencyData()}createEmptyResidencyData(){return{Active:[],NoConsent:[],Unknown:[],Withdrawn:[],Expired:[]}}getCountryMeta(e){return this.countryLookup[e]||{name:e,mapCode:e.toLowerCase()}}normalizeResidencyStatus(e){switch((e||"").toLowerCase()){case"active":return"Active";case"noconsent":return"NoConsent";case"unknown":return"Unknown";case"withdrawn":return"Withdrawn";case"expired":return"Expired";default:return null}}toNumber(e){const n=Number(e);return Number.isFinite(n)?n:0}formatCount(e){return(0,_.D)(e)}formatPercentLabel(e,n){return n?`${Math.min(e/n*100,100).toFixed(2)}%`:"0.00%"}getProgressPercentage(e,n){return n?Math.min(Math.round(e/n*100),100):0}getProgressBase(e,n){return e.reduce((i,d)=>i+this.toNumber(d),0)||n}getDateKey(e){return e.split("T")[0]}formatShortDate(e){return(0,C.p6)(e,"dd MMM","en-US","UTC")}formatMonthDate(e){return(0,C.p6)(e,"MMM yyyy","en-US","UTC")}getSelectedDateRange(){if(Array.isArray(this.searchbydaterange)&&this.searchbydaterange[0]&&this.searchbydaterange[1])return[new Date(this.searchbydaterange[0]),new Date(this.searchbydaterange[1])];const e=new Date,n=new Date;return n.setDate(e.getDate()-30),this.searchbydaterange=[n,e],[n,e]}formatApiDate(e){return new Date(e.getTime()-6e4*e.getTimezoneOffset()).toISOString().split("T")[0]}getOrderedDates(e){const n=new Map;return e.forEach(r=>{n.has(r.key)||n.set(r.key,r.label)}),Array.from(n.entries()).sort((r,i)=>new Date(r[0]).getTime()-new Date(i[0]).getTime()).map(([r,i])=>({key:r,label:i}))}getPaletteColor(e){return this.palette[e%this.palette.length]}hasDatasetValues(e){return Array.isArray(e)&&e.some(n=>this.toNumber(n)>0)}readDatasetColor(e,n){return"string"==typeof e?e:Array.isArray(e)&&e.length&&"string"==typeof e[0]?e[0]:n}toDisplayLabel(e){return e?-1!==e.indexOf("_")?e.split("_").filter(
1Boolean).map(n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).join(" "):e:""}getSeriesTooltipLabel(e,n){const i=n?.datasets?.[e?.datasetIndex]?.label||"",d=e?.yLabel;return i?`${i}: ${(0,_.D)(d)}`:(0,_.D)(d)}getDoughnutTooltipLabel(e,n){const r=n?.labels?.[e?.index]||"",d=n?.datasets?.[e?.datasetIndex]?.data?.[e?.index];return r?`${r}: ${(0,_.D)(d)}`:(0,_.D)(d)}};let o=s;return s.\u0275fac=function(n){return new(n||s)(t.Y36(Z.Dx),t.Y36(w.gz),t.Y36(C.Ye),t.Y36(A.M),t.Y36(S.e))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-consent-solution"]],decls:38,vars:5,consts:[[1,"pl-0","pr-0","consent-preference-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-6","pr-0","d-flex","row-reverse"],[1,"input-group-prepend",3,"click"],["id","inputGroup-sizing-sm",1,"input-group-text","rounded-right","border-left-0","bg-white"],[1,"fa",3,"ngClass"],["type","text","bsDaterangepicker","","placement","bottom right",1,"form-control","date-input","border-left-0","border-right-0","rounded-right",3,"ngModel","bsConfig","ngModelChange","onHidden"],["dp","bsDaterangepicker"],[1,"input-group-prepend","border-left-0",3,"click"],["id","inputGroup-sizing-sm",1,"input-group-text","rounded-left","border-right-0","bg-white"],[1,"fa","fa-calendar"],[1,"btn","btn-sm","btn-white","btn-uppercase","pd-x-15","mg-t-5","mg-sm-t-0","mg-sm-l-5","refresh-button",3,"click"],[4,"ngIf","ngIfElse"],["dashboardSkeleton",""],["donutEmpty",""],["activityEmpty",""],["withdrawnEmpty",""],["expiredEmpty",""],["collectionPointEmpty",""],[1,"cpd-top-grid"],[1,"cpd-summary-column"],[1,"cpd-card","cpd-summary-panel"],[1,"cpd-summary-panel__grid","cpd-summary-panel__grid--primary"],["class","cpd-summary-metric",3,"cpd-summary-metric--primary",4,"ngFor","ngForOf"],[1,"cpd-card","cpd-summary-panel","cpd-summary-panel--secondary"],[1,"cpd-summary-panel__grid","cpd-summary-panel__grid--secondary"],["class","cpd-summary-metric",4,"ngFor","ngForOf"],[1,"cpd-card","cpd-summary-panel","cpd-summary-panel--tertiary"],[1,"cpd-summary-panel__grid","cpd-summary-panel__grid--tertiary"],["class","cpd-summary-metric cpd-summary-metric--compact",4,"ngFor","ngForOf"],[1,"cpd-card","cpd-donut-card"],[1,"cpd-donut-layout"],[1,"cpd-chart-shell","cpd-chart-shell--donut"],[1,"cpd-legend","cpd-legend--donut"],["class","cpd-legend__item",4,"ngFor","ngForOf"],[1,"cpd-card","cpd-chart-card","cpd-chart-card--full","cpd-chart-card--activity"],[1,"cpd-card__header"],[1,"cpd-card__title"],[1,"cpd-chart-shell","cpd-chart-shell--activity"],[1,"cpd-chart-grid"],[1,"cpd-card","cpd-chart-card"],["class","cpd-inline-legend",4,"ngIf"],[1,"cpd-chart-shell","cpd-chart-shell--bar"],[1,"cpd-card","cpd-residency-card"],[1,"cpd-card__header","cpd-card__header--residency"],[1,"cpd-filter-tabs"],["type","button","class","cpd-filter-tab",3,"is-active","click",4,"ngFor","ngForOf"],[1,"cpd-residency-layout"],[1,"cpd-map-panel"],["id","consentResidencyMap",1,"cpd-residency-map"],[1,"cpd-table-panel"],[1,"cpd-residency-table"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"cpd-card","cpd-chart-card","cpd-chart-card--full"],[1,"cpd-chart-shell","cpd-chart-shell--line"],[1,"cpd-summary-metric"],[1,"cpd-summary-metric__value-row"],[1,"cpd-summary-metric__value"],["class","cpd-summary-metric__meta",4,"ngIf"],["class","cpd-summary-metric__progress",4,"ngIf"],[1,"cpd-summary-metric__label"],[1,"cpd-summary-metric__meta"],[1,"cpd-summary-metric__progress"],[1,"cpd-summary-metric__progress-fill"],[1,"cpd-summary-metric","cpd-summary-metric--compact"],["baseChart","",3,"data","labels","options","colors","chartType"],[1,"cpd-legend__item"],[1,"cpd-legend__swatch"],[1,"cpd-legend__label"],["baseChart","",3,"datasets","labels","options","chartType"],[1,"cpd-inline-legend"],["class","cpd-inline-legend__item",4,"ngFor","ngForOf"],[1,"cpd-inline-legend__item"],[1,"cpd-inline-legend__swatch"],["type","button",1,"cpd-filter-tab",3,"click"],["colspan","2",1,"cpd-residency-table__empty"],[1,"cpd-summary-panel"],[1,"cpd-summary-panel","cpd-summary-panel--secondary"],[1,"cpd-summary-panel","cpd-summary-panel--tertiary"],[1,"cpd-card","cpd-donut-card","cpd-card--skeleton"],["count","12"],[1,"cpd-card","cpd-chart-card","cpd-chart-card--full","cpd-chart-card--activity","cpd-card--skeleton"],["count","14"],[1,"cpd-card","cpd-chart-card","cpd-card--skeleton"],[1,"cpd-card","cpd-residency-card","cpd-card--skeleton"],[1,"cpd-card","cpd-chart-card","cpd-chart-card--full","cpd-card--skeleton"],[3,"count"],["count","4"],["count","3"],[1,"cpd-empty-state","cpd-empty-state--chart"]],template:function(n,r){if(1&n){const i=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"nav",2)(4,"ol",3)(5,"li",4),t._uU(6,"Privacy"),t.qZA(),t.TgZ(7,"li",4),t._uU(8,"consent preference"),t.qZA(),t.TgZ(9,"li",5),t._uU(10,"Dashboard"),t.qZA()()(),t.TgZ(11,"h4",6),t._uU(12,"Consent Preference Dashboard"),t.qZA()(),t.TgZ(13,"div",7)(14,"div",8)(15,"div",9),t.NdJ("click",function(){t.CHM(i);const c=t.MAs(19);return t.KtG(c.show())}),t.TgZ(16,"span",10),t._UZ(17,"i",11),t.qZA()(),t.TgZ(18,"input",12,13),t.NdJ("ngModelChange",function(c){return r.searchbydaterange=c})("onHidden",function(){return r.onDateSelection()}),t.qZA(),t.TgZ(20,"div",14),t.NdJ("click",function(){t.CHM(i);const c=t.MAs(19);return t.KtG(c.show())}),t.TgZ(21,"span",15),t._UZ(22,"i",16),t.qZA()()(),t.TgZ(23,"button",17),t.NdJ("click",function(){return r.onRefreshAll()}),t._uU(24," Refresh "),t.qZA()()(),t.YNc(25,tt,66,20,"ng-container",18),t.YNc(26,ct,24,6,"ng-template",null,19,t.W1O),t.YNc(28,st,2,0,"ng-template",null,20,t.W1O),t.YNc(30,lt,2,0,"ng-template",null,21,t.W1O),t.YNc(32,dt,2,0,"ng-template",null,22,t.W1O),t.YNc(34,pt,2,0,"ng-template",null,23,t.W1O),t.YNc(36,gt,2,0,"ng-template",null,24,t.W1O),t.qZA()}if(2&n){const i=t.MAs(27);t.xp6(17),t.Q6J("ngClass",""!==r.searchbydaterange?"fa-caret-down":"fa-search"),t.xp6(1),t.Q6J("ngModel",r.searchbydaterange)("bsConfig",r.bsConfig),t.xp6(7),t.Q6J("ngIf",!r.skeletonLoading)("ngIfElse",i)}},dependencies:[C.mk,C.sg,C.O5,v.jh,P.xr,D.FR,D.TB,L.mh,b.Fj,b.JJ,b.On],styles:[".consent-preference-dashboard[_ngcontent-%COMP%]{max-width:1840px;margin:0 auto;padding:6px 12px 42px}.date-picker-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:8px}.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}.date-input[_ngcontent-%COMP%]{width:240px;height:34px}.refresh-button[_ngcontent-%COMP%]{text-transform:none;font-size:12px}.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}  .theme-dark-blue{flex-direction:row-reverse;right:-30px;display:flex;position:absolute;flex-wrap:nowrap;justify-content:flex-start}  .theme-dark-blue .bs-datepicker-predefined-btns button{width:130px;margin-bottom:2px!important;background:#fff;color:#333;border:1px solid #ccc}  .theme-dark-blue .bs-datepicker-head{background-color:#000}  .theme-dark-blue .bs-datepicker-predefined-btns button.selected{color:#fff;background:#16bf5e}.cpd-card[_ngcontent-%COMP%]{background:#ffffff;border:1px solid #d7dbe2;box-sizing:border-box}.cpd-card--skeleton[_ngcontent-%COMP%]{padding:18px 22px}.cpd-top-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(420px,.95fr);gap:24px;align-items:stretch}.cpd-summary-column[_ngcontent-%COMP%]{display:grid;gap:16px}.cpd-summary-panel[_ngcontent-%COMP%]{overflow:visible;background:transparent;border:0}.cpd-summary-panel__grid[_ngcontent-%COMP%]{display:grid;gap:12px}.cpd-summary-panel__grid--primary[_ngcontent-%COMP%]{grid-template-columns:1.1fr repeat(3,1fr)}.cpd-summary-panel__grid--secondary[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.cpd-summary-panel__grid--tertiary[_ngcontent-%COMP%]{grid-template-columns:repeat(5,minmax(0,1fr))}.cpd-summary-panel--secondary[_ngcontent-%COMP%]{max-width:430px}.cpd-summary-panel--tertiary[_ngcontent-%COMP%]{width:100%}.cpd-summary-metric[_ngcontent-%COMP%]{min-height:106px;padding:18px 18px 16px;border:1px solid #d7dbe2;background:#ffffff;display:flex;flex-direction:column;justify-content:flex-start}.cpd-summary-metric--primary[_ngcontent-%COMP%]{min-height:106px;justify-content:center}.cpd-summary-metric--compact[_ngcontent-%COMP%]{min-height:96px}.cpd-summary-metric__value-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;
1gap:8px;margin-bottom:10px;flex-wrap:wrap}.cpd-summary-metric__value[_ngcontent-%COMP%]{font-size:20px;line-height:1;font-weight:800;color:#101114}.cpd-summary-metric--primary[_ngcontent-%COMP%]   .cpd-summary-metric__value[_ngcontent-%COMP%]{font-size:52px}.cpd-summary-metric--compact[_ngcontent-%COMP%]   .cpd-summary-metric__value[_ngcontent-%COMP%]{font-size:30px}.cpd-summary-metric__meta[_ngcontent-%COMP%]{font-size:11px;color:#7e838a;line-height:1.2;transform:translateY(-1px)}.cpd-summary-metric__progress[_ngcontent-%COMP%]{width:100%;height:9px;background:#111111;border-radius:2px;overflow:hidden;margin-bottom:12px}.cpd-summary-metric__progress-fill[_ngcontent-%COMP%]{display:block;height:100%;border-radius:2px}.cpd-summary-metric__label[_ngcontent-%COMP%]{font-size:15px;line-height:1.3;font-weight:600;color:#14161a}.cpd-donut-card[_ngcontent-%COMP%]{padding:22px 26px;min-height:100%;display:flex}.cpd-donut-layout[_ngcontent-%COMP%]{width:100%;min-height:100%;display:grid;grid-template-columns:minmax(260px,1fr) minmax(148px,auto);gap:30px;align-items:center}.cpd-chart-shell[_ngcontent-%COMP%]{position:relative}.cpd-chart-shell--donut[_ngcontent-%COMP%]{height:220px;display:flex;align-items:center;justify-content:center;padding:10px 12px}.cpd-legend[_ngcontent-%COMP%]{display:grid;gap:14px;align-content:center}.cpd-legend__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:14px;color:#1d1f24;white-space:nowrap}.cpd-legend__swatch[_ngcontent-%COMP%], .cpd-inline-legend__swatch[_ngcontent-%COMP%]{display:inline-block;flex:0 0 auto}.cpd-legend__swatch[_ngcontent-%COMP%]{width:16px;height:16px}.cpd-chart-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:24px}.cpd-chart-card--full[_ngcontent-%COMP%], .cpd-chart-card--activity[_ngcontent-%COMP%]{margin-top:24px}.cpd-card__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:20px 22px 8px}.cpd-card__header--residency[_ngcontent-%COMP%]{align-items:center;border-bottom:1px solid #e5e8ed;padding-bottom:16px}.cpd-card__title[_ngcontent-%COMP%]{margin:0;font-size:15px;line-height:1.35;font-weight:700;color:#101114}.cpd-inline-legend[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:14px;row-gap:10px}.cpd-inline-legend__item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;font-size:11px;line-height:1.2;color:#61656c;white-space:nowrap}.cpd-inline-legend__swatch[_ngcontent-%COMP%]{width:12px;height:12px}.cpd-inline-legend__swatch--line[_ngcontent-%COMP%]{width:18px;height:0;border-top:3px solid transparent}.cpd-chart-shell--bar[_ngcontent-%COMP%], .cpd-chart-shell--line[_ngcontent-%COMP%]{height:288px;padding:16px 20px 20px}.cpd-chart-shell--activity[_ngcontent-%COMP%]{height:320px;padding:16px 20px 22px}.cpd-filter-tabs[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid #cfd4db;background:#ffffff}.cpd-filter-tab[_ngcontent-%COMP%]{border:0;background:#ffffff;color:#16181d;padding:8px 14px;font-size:11px;line-height:1.2;font-weight:600;transition:background-color .15s ease,color .15s ease;min-height:32px}.cpd-filter-tab.is-active[_ngcontent-%COMP%]{background:#2da8f0;color:#fff}.cpd-residency-card[_ngcontent-%COMP%]{margin-top:24px}.cpd-residency-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,.8fr);gap:42px;align-items:start;padding:28px 26px 30px}.cpd-map-panel[_ngcontent-%COMP%]{min-height:280px;display:flex;align-items:center}.cpd-residency-map[_ngcontent-%COMP%]{width:100%;height:280px}.cpd-table-panel[_ngcontent-%COMP%]{display:flex;justify-content:center;padding-top:16px}.cpd-residency-table[_ngcontent-%COMP%]{width:100%;max-width:360px;border-collapse:collapse}.cpd-residency-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .cpd-residency-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:11px 10px;font-size:13px;line-height:1.2}.cpd-residency-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:#666b72;font-size:12px;font-weight:600;text-transform:uppercase;border-bottom:1px solid #4d5056}.cpd-residency-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{color:#34373d;border-bottom:1px solid #e5e8ed}.cpd-residency-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child, .cpd-residency-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:last-child{text-align:right}.cpd-residency-table__empty[_ngcontent-%COMP%]{text-align:center!important;color:#7c8188}.cpd-empty-state[_ngcontent-%COMP%]{width:100%;min-height:220px;display:flex;align-items:center;justify-content:center;border:1px dashed #dbe0e7;background:#fbfcfd;color:#7c8188;font-size:13px;line-height:1.4;text-align:center;padding:24px}.cpd-empty-state--chart[_ngcontent-%COMP%]{min-height:100%}[_nghost-%COMP%]     #consentResidencyMap .jqvmap-region{cursor:default}@media (max-width: 1439px){.cpd-top-grid[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1.15fr) minmax(360px,.9fr)}.cpd-summary-panel--secondary[_ngcontent-%COMP%]{max-width:400px}.cpd-residency-layout[_ngcontent-%COMP%]{gap:32px}}@media (max-width: 1199px){.cpd-top-grid[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:20px}.cpd-summary-panel--secondary[_ngcontent-%COMP%]{max-width:none}.cpd-summary-panel__grid--tertiary[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}.cpd-donut-card[_ngcontent-%COMP%], .cpd-donut-layout[_ngcontent-%COMP%]{min-height:0}.cpd-chart-grid[_ngcontent-%COMP%]{gap:20px;margin-top:20px}}@media (max-width: 991px){.cpd-chart-grid[_ngcontent-%COMP%], .cpd-residency-layout[_ngcontent-%COMP%]{grid-template-columns:1fr}.cpd-card__header[_ngcontent-%COMP%], .cpd-card__header--residency[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;padding:18px 18px 6px}.cpd-inline-legend[_ngcontent-%COMP%]{justify-content:flex-start}.cpd-filter-tabs[_ngcontent-%COMP%]{margin-top:4px}.cpd-summary-panel__grid--tertiary[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.cpd-residency-layout[_ngcontent-%COMP%]{padding:22px 20px 24px;gap:24px}.cpd-map-panel[_ngcontent-%COMP%]{min-height:240px}.cpd-residency-map[_ngcontent-%COMP%]{height:240px}.date-picker-wrapper[_ngcontent-%COMP%]{width:100%;justify-content:flex-start;flex-wrap:wrap}}@media (max-width: 767px){.cpd-summary-panel__grid--primary[_ngcontent-%COMP%], .cpd-summary-panel__grid--secondary[_ngcontent-%COMP%], .cpd-summary-panel__grid--tertiary[_ngcontent-%COMP%], .cpd-donut-layout[_ngcontent-%COMP%]{grid-template-columns:1fr}.consent-preference-dashboard[_ngcontent-%COMP%]{padding:4px 8px 32px}.cpd-top-grid[_ngcontent-%COMP%], .cpd-chart-grid[_ngcontent-%COMP%]{gap:16px}.cpd-summary-metric[_ngcontent-%COMP%]{min-height:92px;padding:16px}.cpd-summary-metric--primary[_ngcontent-%COMP%]   .cpd-summary-metric__value[_ngcontent-%COMP%]{font-size:42px}
1.cpd-chart-shell--bar[_ngcontent-%COMP%], .cpd-chart-shell--line[_ngcontent-%COMP%], .cpd-chart-shell--activity[_ngcontent-%COMP%]{height:280px;padding:14px 14px 18px}.cpd-residency-layout[_ngcontent-%COMP%]{padding:16px;gap:18px}.cpd-donut-card[_ngcontent-%COMP%]{padding:18px 16px}.cpd-chart-card--full[_ngcontent-%COMP%], .cpd-chart-card--activity[_ngcontent-%COMP%], .cpd-residency-card[_ngcontent-%COMP%]{margin-top:16px}.date-picker-wrapper[_ngcontent-%COMP%]   .col-sm-6[_ngcontent-%COMP%]{max-width:100%;flex:0 0 100%;padding-right:0!important}}@media (max-width: 575px){.cpd-summary-panel__grid--tertiary[_ngcontent-%COMP%]{grid-template-columns:1fr}.cpd-filter-tabs[_ngcontent-%COMP%]{width:100%}.cpd-filter-tab[_ngcontent-%COMP%]{flex:1 1 auto;justify-content:center}.date-input[_ngcontent-%COMP%]{width:100%}}"]}),o})();var ut=p(85493),mt=p(31456),_t=p(25684),ft=p(19119);const yt=[{path:"",component:ht,canActivate:[ut.a1,mt.p,_t.w]}];let Ct=(()=>{const s=class{};let o=s;return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[C.ez,w.Bz.forChild(yt),v.m9,ft.J,b.u5,P.hx]}),o})()}}]);

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.