PageSourceSearch

https://portal.privacypillar.com/src_app_dashboard_cookie-consent_cookie-consent_module_ts.3203cb93133a55d9.js

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

1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["src_app_dashboard_cookie-consent_cookie-consent_module_ts"],{38471:(we,v,c)=>{c.r(v),c.d(v,{CookieConsentModule:()=>xe});var h=c(36895),b=c(3940),g=c(68078),k=c(92340),e=c(94650),O=c(98751),T=c(37407),Z=c(59922),P=c(20388),f=c(51692),A=c(11481),S=c(64491),q=c(1637),D=c(73747),I=c(32320),N=c(4358),U=c(12553),C=c(24006),w=c(18178),M=c(94829);const L=["noSup"];function R(o,r){if(1&o){const s=e.EpF();e.TgZ(0,"p-dropdown",45),e.NdJ("ngModelChange",function(n){e.CHM(s);const a=e.oxw();return e.KtG(a.subDomain=n)})("onChange",function(){e.CHM(s);const n=e.oxw();return e.KtG(n.onRefreshAll())}),e.qZA()}if(2&o){const s=e.oxw();e.Q6J("options",s.subDomainFilters)("ngModel",s.subDomain)("showClear",!!s.subDomain)}}function Y(o,r){if(1&o&&(e.TgZ(0,"span",54),e._uU(1),e.ALo(2,"number"),e.qZA()),2&o){const s=e.oxw().$implicit;e.xp6(1),e.hij(" (",e.xi3(2,1,s.progress,"1.0-0"),"%) ")}}function F(o,r){if(1&o&&(e.TgZ(0,"div",55),e._UZ(1,"span",56),e.qZA()),2&o){const s=e.oxw().$implicit;e.xp6(1),e.Udp("width",s.progress,"%")("background-color",s.color)}}function J(o,r){if(1&o&&(e.TgZ(0,"div",48)(1,"div",49)(2,"h2",50),e._uU(3),e.qZA(),e.YNc(4,Y,3,4,"span",51),e.qZA(),e.YNc(5,F,2,4,"div",52),e.TgZ(6,"p",53),e._uU(7),e.qZA()()),2&o){const s=r.$implicit,t=e.oxw(2);e.xp6(3),e.Oqu(t.formatCompactValue(s.value)),e.xp6(1),e.Q6J("ngIf",null!==s.progress),e.xp6(1),e.Q6J("ngIf",null!==s.progress),e.xp6(2),e.Oqu(s.label)}}function Q(o,r){if(1&o&&(e.ynx(0),e.TgZ(1,"div",46),e.YNc(2,J,8,4,"div",47),e.qZA(),e.BQk()),2&o){const s=e.oxw();e.xp6(2),e.Q6J("ngForOf",s.summaryCards)}}const j=function(){return{height:"82px"}};function K(o,r){1&o&&(e.TgZ(0,"div",57),e._UZ(1,"ngx-skeleton-loader",58),e.qZA()),2&o&&(e.xp6(1),e.Q6J("theme",e.DdM(1,j)))}function B(o,r){if(1&o&&(e.TgZ(0,"span",61),e._UZ(1,"span",62),e._uU(2),e.qZA()),2&o){const s=r.$implicit;e.xp6(1),e.Udp("background-color",s.color),e.xp6(1),e.hij(" ",s.label," ")}}function z(o,r){if(1&o&&(e.TgZ(0,"div",59),e.YNc(1,B,3,3,"span",60),e.qZA()),2&o){const s=e.oxw();e.xp6(1),e.Q6J("ngForOf",s.lineLegendItems)}}function E(o,r){if(1&o&&(e.TgZ(0,"div",64),e._UZ(1,"canvas",65),e.qZA()),2&o){const s=e.oxw(2);e.xp6(1),e.Q6J("datasets",s.lineChartData)("labels",s.lineChartLabels)("options",s.lineChartOptions)("legend",s.lineChartLegend)("chartType",s.lineChartType)("plugins",s.lineChartPlugins)}}function G(o,r){if(1&o&&(e.ynx(0),e.YNc(1,E,2,6,"div",63),e.BQk()),2&o){const s=e.oxw(),t=e.MAs(41);e.xp6(1),e.Q6J("ngIf",s.lineChartLabels.length>0)("ngIfElse",t)}}function W(o,r){1&o&&(e.TgZ(0,"div",66),e._uU(1,"No consent data available for the selected period."),e.qZA())}const y=function(){return{height:"320px"}};function H(o,r){1&o&&e._UZ(0,"ngx-skeleton-loader",67),2&o&&e.Q6J("theme",e.DdM(1,y))}function $(o,r){if(1&o&&(e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td",75),e._uU(4),e.ALo(5,"number"),e.qZA()()),2&o){const s=r.$implicit;e.xp6(2),e.Oqu(s.name),e.xp6(2),e.Oqu(e.xi3(5,2,s.count,"1.0-0"))}}function V(o,r){if(1&o&&(e.TgZ(0,"table",74)(1,"thead")(2,"tr")(3,"th"),e._uU(4,"Country"),e.qZA(),e.TgZ(5,"th",75),e._uU(6,"Active Consent Count"),e.qZA()()(),e.TgZ(7,"tbody"),e.YNc(8,$,6,5,"tr",76),e.qZA()()),2&o){const s=e.oxw(2);e.xp6(8),e.Q6J("ngForOf",s.countryRequests)}}function X(o,r){1&o&&(e.TgZ(0,"div",77),e._uU(1,"No country requests available."),e.qZA())}function ee(o,r){if(1&o&&(e.ynx(0),e.TgZ(1,"div",68)(2,"div",69),e._UZ(3,"div",70),e.qZA(),e.TgZ(4,"div",71),e.YNc(5,V,9,1,"table",72),e.YNc(6,X,2,0,"ng-template",null,73,e.W1O),e.qZA()(),e.BQk()),2&o){const s=e.MAs(7),t=e.oxw();e.xp6(5),e.Q6J("ngIf",t.countryRequests.length>0)("ngIfElse",s)}}function te(o,r){1&o&&e._UZ(0,"ngx-skeleton-loader",67),2&o&&e.Q6J("theme",e.DdM(1,y))}function ne(o,r){if(1&o&&(e.TgZ(0,"span",61),e._UZ(1,"span",62),e._uU(2),e.qZA()),2&o){const s=r.$implicit;e.xp6(1),e.Udp("background-color",s.color),e.xp6(1),e.hij(" ",s.label," ")}}function oe(o,r){if(1&o&&(e.TgZ(0,"div",59),e.YNc(1,ne,3,3,"span",60),e.qZA()),2&o){const s=e.oxw();e.xp6(1),e.Q6J("ngForOf",s.barLegendItems)}}function ae(o,r){if(1&o&&(e.TgZ(0,"div",79),e._UZ(1,"canvas",80),e.qZA()),2&o){const s=e.oxw(2);e.xp6(1),e.Q6J("datasets",s.barChartData)("labels",s.barChartLabels)("options",s.barChartOptions)("plugins",s.barChartPlugins)("legend",s.barChartLegend)("chartType",s.barChartType)}}function se(o,r){if(1&o&&(e.ynx(0),e.YNc(1,ae,2,6,"div",78),e.BQk()),2&o){const s=e.oxw(),t=e.MAs(63);e.xp6(1),e.Q6J("ngIf",s.barChartLabels.length>0)("ngIfElse",t)}}function re(o,r){1&o&&(e.TgZ(0,"div",66),e._uU(1,"No category data available for the selected period."),e.qZA())}function ie(o,r){1&o&&e._UZ(0,"ngx-skeleton-loader",67),2&o&&e.Q6J("theme",e.DdM(1,y))}function le(o,r){if(1&o&&(e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td",75),e._uU(4),e.ALo(5,"number"),e.qZA(),e.TgZ(6,"td",75),e._uU(7),e.ALo(8,"number"),e.qZA(),e.TgZ(9,"td",75),e._uU(10),e.ALo(11,"number"),e.qZA(),e.TgZ(12,"td",75),e._uU(13),e.ALo(14,"number"),e.qZA(),e.TgZ(15,"td",75),e._uU(16),e.ALo(17,"number"),e.qZA(),e.TgZ(18,"td",75),e._uU(19),e.ALo(20,"number"),e.qZA()()),2&o){const s=r.$implicit;e.xp6(2),e.Oqu(s.status),e.xp6(2),e.Oqu(e.xi3(5,7,s.essentialCookies,"1.0-0")),e.xp6(3),e.Oqu(e.xi3(8,10,s.functionalCookies,"1.0-0")),e.xp6(3),e.Oqu(e.xi3(11,13,s.analyticsCookies,"1.0-0")),e.xp6(3),e.Oqu(e.xi3(14,16,s.advertisingCookies,"1.0-0")),e.xp6(3),e.Oqu(e.xi3(17,19,s.socialMediaCookie
1s,"1.0-0")),e.xp6(3),e.Oqu(e.xi3(20,22,s.uncategorizedCookies,"1.0-0"))}}function ce(o,r){if(1&o&&(e.ynx(0),e.TgZ(1,"table",81)(2,"thead")(3,"tr")(4,"th"),e._uU(5,"Status"),e.qZA(),e.TgZ(6,"th",75),e._uU(7,"Essential Cookies"),e.qZA(),e.TgZ(8,"th",75),e._uU(9,"Functional Cookies"),e.qZA(),e.TgZ(10,"th",75),e._uU(11,"Analytics Cookies"),e.qZA(),e.TgZ(12,"th",75),e._uU(13,"Advertising Cookies"),e.qZA(),e.TgZ(14,"th",75),e._uU(15,"Social Media Cookies"),e.qZA(),e.TgZ(16,"th",75),e._uU(17,"Uncategorized Cookies"),e.qZA()()(),e.TgZ(18,"tbody"),e.YNc(19,le,21,25,"tr",76),e.qZA()(),e.BQk()),2&o){const s=e.oxw();e.xp6(19),e.Q6J("ngForOf",s.consentDetailsRows)}}const de=function(){return{height:"36px"}};function pe(o,r){1&o&&(e.TgZ(0,"div",57),e._UZ(1,"ngx-skeleton-loader",82),e.qZA()),2&o&&(e.xp6(1),e.Q6J("theme",e.DdM(1,de)))}function ue(o,r){if(1&o){const s=e.EpF();e.TgZ(0,"alert",83),e.NdJ("onClosed",function(){e.CHM(s);const n=e.oxw();return e.KtG(n.onClosed(n.alertMsg))}),e._uU(1),e.qZA()}if(2&o){const s=e.oxw();e.Q6J("type",s.alertType)("dismissible",s.dismissible),e.xp6(1),e.hij(" ",s.alertMsg," ")}}function ge(o,r){if(1&o){const s=e.EpF();e.TgZ(0,"div",84)(1,"h4"),e._uU(2,"You haven't assigned license to this property"),e.qZA(),e.TgZ(3,"p",85),e.NdJ("click",function(){e.CHM(s);const n=e.oxw();return e.KtG(n.onGoBack())}),e._uU(4,"or Cancel & Go Back"),e.qZA()()}}const u=[{summaryKey:"accept_all",trendKey:"accept_all",label:"Accept All",tableLabel:"Accept All",color:"#8fd37d"},{summaryKey:"save_settings",trendKey:"save_setting",label:"Save Settings",tableLabel:"Save Setting",color:"#a8c4ec"},{summaryKey:"reject_all",trendKey:"reject_all",label:"Reject All",tableLabel:"Reject All",color:"#f5d37a"},{summaryKey:"close",trendKey:"close",label:"Close",tableLabel:"Close",color:"#ff7669"},{summaryKey:"do_not_sell",trendKey:"do_not_sell",label:"Do Not Sell",tableLabel:"Do Not Sell",color:"#8b8b8b"}],he={in:"India",us:"USA",fr:"France",gb:"United Kingdom",nl:"Netherlands",ro:"Romania"};let me=(()=>{const r=class{constructor(t,n,a,i,l,d,m,_,ve,De){this.dashboardService=t,this.cd=n,this.loading=a,this.dataService=i,this.modalService=l,this._location=d,this.router=m,this.activateRoute=_,this.titleService=ve,this.userService=De,this.formatCompactValue=g.D,this.lineChartData=[],this.lineChartLabels=[],this.lineChartOptions={responsive:!0,maintainAspectRatio:!1,legend:{display:!1},tooltips:{mode:"index",intersect:!1,callbacks:{label:(p,x)=>this.getChartTooltipLabel(p,x)}},hover:{mode:"nearest",intersect:!1},elements:{line:{tension:.35},point:{radius:2,hoverRadius:4}},scales:{xAxes:[{gridLines:{display:!1},ticks:{fontColor:"#64748b"}}],yAxes:[{ticks:{beginAtZero:!0,precision:0,fontColor:"#64748b",callback:p=>(0,g.D)(p)},gridLines:{color:"rgba(148, 163, 184, 0.18)",drawBorder:!1}}]}},this.lineChartLegend=!1,this.lineChartType="line",this.lineChartPlugins=[],this.barChartOptions={responsive:!0,maintainAspectRatio:!1,legend:{display:!1},tooltips:{mode:"index",intersect:!1,callbacks:{label:(p,x)=>this.getChartTooltipLabel(p,x)}},scales:{xAxes:[{gridLines:{display:!1},ticks:{autoSkip:!1,maxRotation:0,minRotation:0,fontColor:"#64748b"}}],yAxes:[{ticks:{beginAtZero:!0,precision:0,fontColor:"#64748b",callback:p=>(0,g.D)(p)},gridLines:{color:"rgba(148, 163, 184, 0.18)",drawBorder:!1}}]}},this.barChartLabels=[],this.barChartType="bar",this.barChartLegend=!1,this.barChartPlugins=[],this.barChartData=[],this.loadingSkeleton={summary:!0,trend:!0,country:!0,category:!0,details:!0},this.dismissible=!0,this.isOpen=!1,this.summaryCards=[],this.countryRequests=[],this.consentDetailsRows=this.buildConsentDetailsRows(),this.lineLegendItems=u.map(p=>({label:p.label,color:p.color})),this.barLegendItems=u.map(p=>({label:p.label,color:p.color})),this.totalConsents=0,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],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.subDomainFilters=[],this.subDomain="",this.countryColorMap={},this.dateCustomClasses=[{date:new Date,classes:["theme-dark-blue"]}],this.searchbydaterange=[new Date((new Date).setDate((new Date).getDate()-30)),new Date],this.titleService.setTitle("C
1ookie Consent Dashboard - "+k.N.portalPrefix)}ngOnInit(){this.activateRoute.queryParamMap.subscribe(t=>{const n=t.get("oid"),a=t.get("pid");void 0!==this.queryOID&&(this.queryOID!==n||this.queryPID!==a)&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.navigateByUrl(this.router.url)),this.queryOID=n,this.queryPID=a}),this.bsConfig=Object.assign({},{containerClass:"theme-dark-blue",showClearButton:!0,returnFocusToInput:!0,dateInputFormat:"yyyy-mm-dd",adaptivePosition:!1,showTodayButton:!0,ranges:this.ranges}),this.dataService.isSubscriptionExistForProperty()||this.onCheckSubscription(),this.dataService.isSubscriptionExistForProperty()&&(this.onGetPropsAndOrgId(),this.onGetDashboardData(),this.onGetSubDomainFilter()),this.userService.isUserClickedOnProperty||this.onCheckSubscription()}onGetSubDomainFilter(){this.loading.start("source"),this.dashboardService.getSubDomainFilters(this.currrentManagedPropID,this.constructor.name,b.e.cookieConsentModule).subscribe(t=>{this.loading.stop("source"),Array.isArray(t?.response)&&(this.subDomainFilters=t.response.filter(n=>n?.source).map(n=>({name:n.source+" - "+this.convertToCompactCount(n.count),code:n.source})))},()=>{this.loading.stop("source")})}onCheckSubscription(){const t=this.dataService.getCurrentPropertyPlanDetails(),n=void 0!==t&&void 0!==t.response?t.response.features:null;null==n?this.isShowDashboard=!1:Object.keys(n).length>0?(this.isShowDashboard=!0,this.dataService.isLicenseAppliedForProperty.next({requesttype:"property",hasaccess:!0})):(this.isShowDashboard=!1,this.dataService.isLicenseAppliedForProperty.next({requesttype:"property",hasaccess:!1}))}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)this.currentManagedOrgID=this.queryOID,this.currrentManagedPropID=this.queryPID;else{const t=(0,g.Dq)(this._location.path());this.currentManagedOrgID=t[0],this.currrentManagedPropID=t[1]}}convertToCompactCount(t){return(0,g.D)(this.toNumber(t))}onGetDashboardData(){const t=this.getDashboardQueryParams();this.loading.start("dashboard"),this.setSectionLoading(!0),this.dashboardService.getDashboardData(t,this.currrentManagedPropID,this.constructor.name,b.e.cookieConsentModule).subscribe(n=>{this.loading.stop("dashboard"),this.applyDashboardResponse(n),this.setDashboardSectionLoading(!1),this.onGetConsentDetails(t)},n=>{this.loading.stop("dashboard"),this.setSectionLoading(!1),this.isOpen=!0,this.alertMsg=n,this.alertType="danger",this.resetDashboardState()})}onGetConsentDetails(t){this.dashboardService.getConsentDetails(t,this.currrentManagedPropID,this.constructor.name,b.e.cookieConsentModule).subscribe(n=>{const a=Array.isArray(n?.response)?n.response:[];this.consentDetailsRows=this.buildConsentDetailsRows(a),this.setConsentDetailsLoading(!1),this.cd.detectChanges()},()=>{this.consentDetailsRows=this.buildConsentDetailsRows(),this.setConsentDetailsLoading(!1),this.cd.detectChanges()})}onClosed(t){this.alertMsg=!t,this.isOpen=!1}onRefreshAll(){this.onGetDashboardData()}onGoBack(){this.router.navigate(["/home/dashboard/analytics"],{queryParams:{oid:this.queryOID,pid:this.queryPID},queryParamsHandling:"merge",skipLocationChange:!1}),this.modalRef.hide()}backToParentlink(){this.router.navigate(["/home/dashboard/cookie-consent"],{queryParams:{oid:this.queryOID,pid:this.queryPID},queryParamsHandling:"merge",skipLocationChange:!1})}applyDashboardResponse(t){const n=Array.isArray(t?.response)?t.response:[],a=Array.isArray(t?.consentOverTime)?t.consentOverTime:[],i=Array.isArray(t?.requestByCountry)?t.requestByCountry:[],l=this.createResponseCountMap(n);this.totalConsents=Object.values(l).reduce((d,m)=>d+m,0),this.summaryCards=this.buildSummaryCards(this.toNumber(t?.pageView),l),this.setupConsentOverTimeChart(a),this.setupConsentByCategoryChart(l),this.setupCountrySection(i),this.cd.detectChanges()}buildSummaryCards(t,n){return[{label:"Total Page Views",value:t,progress:null,color:"#111827"},{label:"Total Consents",value:this.totalConsents,progress:null,color:"#111827"},...u.map(a=>{const i=n[a.summaryKey];return{label:a.label,value:i,progress:this.totalConsents>0?100*i/this.totalConsents:0,color:a.color}})]}
1setupConsentOverTimeChart(t){this.lineChartLabels=t.map(n=>this.formatMonthLabel(n?.date)),this.lineChartData=u.map(n=>({data:t.map(a=>this.getTrendCount(a,n.trendKey)),label:n.label,borderColor:n.color,backgroundColor:n.color,pointBackgroundColor:n.color,pointBorderColor:n.color,fill:!1,borderWidth:2,lineTension:.35,pointRadius:2,pointHoverRadius:4}))}setupConsentByCategoryChart(t){this.barChartLabels=u.map(n=>n.label),this.barChartData=[{data:u.map(n=>t[n.summaryKey]),label:"Consent Count",backgroundColor:u.map(n=>n.color),hoverBackgroundColor:u.map(n=>n.color),borderWidth:0,barPercentage:.7,categoryPercentage:.72}]}setupCountrySection(t){this.countryRequests=t.map(n=>{const a=(n?.country||"").toLowerCase();return{code:a,name:he[a]||a.toUpperCase(),count:this.toNumber(n?.count)}}).filter(n=>!!n.code).sort((n,a)=>a.count-n.count),this.countryColorMap=this.buildCountryColorMap(this.countryRequests),setTimeout(()=>{this.onInitWorldMap(this.countryRequests)})}onInitWorldMap(t){if(jQuery&&jQuery.fn&&jQuery.fn.vectorMap)try{jQuery("#worldMap").empty(),jQuery("#worldMap").vectorMap({map:"world_en",backgroundColor:"#ffffff",color:"#e5e7eb",colors:this.countryColorMap,hoverOpacity:.85,selectedColor:"#2563eb",enableZoom:!1,showTooltip:!0,borderWidth:.5,borderColor:"#ffffff",scaleColors:["#d7e7ff","#2757df"],normalizeFunction:"polynomial",onLabelShow:(n,a,i)=>{const l=t.find(d=>d.code===i.toLowerCase());l&&a.append(" : "+(0,g.D)(l.count))}})}catch{}}createResponseCountMap(t){const n={accept_all:0,save_settings:0,reject_all:0,close:0,do_not_sell:0};return t.forEach(a=>{const i=this.normalizeSummaryStatus(a?.status);i&&(n[i]+=this.toNumber(a?.count))}),n}buildConsentDetailsRows(t=[]){const n=t.reduce((a,i)=>{const l=this.normalizeSummaryStatus(i?.status);return l&&(a[l]={essentialCookies:this.toNumber(i?.allow_essantial_count),functionalCookies:this.toNumber(i?.allow_functional_count),analyticsCookies:this.toNumber(i?.allow_analytics_count),advertisingCookies:this.toNumber(i?.allow_advertising_count),socialMediaCookies:this.toNumber(i?.allow_social_media_count),uncategorizedCookies:this.toNumber(i?.allow_unknown_count)}),a},{});return u.slice().sort((a,i)=>{const l=["save_settings","accept_all","reject_all","do_not_sell","close"];return l.indexOf(a.summaryKey)-l.indexOf(i.summaryKey)}).map(a=>({status:a.tableLabel,essentialCookies:n[a.summaryKey]?.essentialCookies||0,functionalCookies:n[a.summaryKey]?.functionalCookies||0,analyticsCookies:n[a.summaryKey]?.analyticsCookies||0,advertisingCookies:n[a.summaryKey]?.advertisingCookies||0,socialMediaCookies:n[a.summaryKey]?.socialMediaCookies||0,uncategorizedCookies:n[a.summaryKey]?.uncategorizedCookies||0}
1))}buildCountryColorMap(t){const n=t.reduce((a,i)=>Math.max(a,i.count),0);return t.reduce((a,i)=>(a[i.code]=this.getCountryFillColor(i.count,n),a),{})}getCountryFillColor(t,n){if(n<=0)return"#d7e7ff";const a=t/n;return a>=.8?"#2757df":a>=.55?"#4f82f1":a>=.3?"#82aef9":"#cfe0ff"}getTrendCount(t,n){return this.toNumber("save_setting"===n?t?.save_setting??t?.save_settings:t?.[n])}normalizeSummaryStatus(t){if(!t)return null;const n="save_setting"===t?"save_settings":t;return u.some(i=>i.summaryKey===n)?n:null}formatMonthLabel(t){if(!t)return"";const[n,a]=t.split("-"),i=Number(n),l=Number(a);return!i||!l||l<1||l>12?t:`${["January","February","March","April","May","June","July","August","September","October","November","December"][l-1]} ${i}`}getDashboardQueryParams(){const[t,n]=this.getSelectedDateRange();return{startDate:this.formatApiDate(t),endDate:this.formatApiDate(n),subDomain:this.subDomain||""}}getSelectedDateRange(){if(Array.isArray(this.searchbydaterange)&&this.searchbydaterange[0]&&this.searchbydaterange[1])return[new Date(this.searchbydaterange[0]),new Date(this.searchbydaterange[1])];const t=new Date,n=new Date;return n.setDate(t.getDate()-30),this.searchbydaterange=[n,t],[n,t]}formatApiDate(t){return new Date(t.getTime()-6e4*t.getTimezoneOffset()).toISOString().split("T")[0]}toNumber(t){const n=Number(t);return Number.isFinite(n)?n:0}getChartTooltipLabel(t,n){const i=n?.datasets?.[t?.datasetIndex]?.label||"",l=t?.yLabel;return i?`${i}: ${(0,g.D)(l)}`:(0,g.D)(l)}setSectionLoading(t){this.loadingSkeleton={summary:t,trend:t,country:t,category:t,details:t}}setDashboardSectionLoading(t){this.loadingSkeleton={...this.loadingSkeleton,summary:t,trend:t,country:t,category:t}}setConsentDetailsLoading(t){this.loadingSkeleton={...this.loadingSkeleton,details:t}}resetDashboardState(){this.totalConsents=0,this.summaryCards=this.buildSummaryCards(0,{accept_all:0,save_settings:0,reject_all:0,close:0,do_not_sell:0}),this.lineChartLabels=[],this.lineChartData=[],this.barChartLabels=[],this.barChartData=[],this.countryRequests=[],this.countryColorMap={},this.consentDetailsRows=this.buildConsentDetailsRows(),setTimeout(()=>{this.onInitWorldMap([])})}};let o=r;return r.\u0275fac=function(n){return new(n||r)(e.Y36(O.s),e.Y36(e.sBO),e.Y36(T.LA),e.Y36(Z.D),e.Y36(P.tT),e.Y36(h.Ye),e.Y36(f.F0),e.Y36(f.gz),e.Y36(A.Dx),e.Y36(S.KD))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-cookie-consent"]],viewQuery:function(n,a){if(1&n&&e.Gf(L,7),2&n){let i;e.iGM(i=e.CRH())&&(a.noSup=i.first)}},decls:79,vars:17,consts:[[1,"pd-x-0","pd-lg-x-10","pd-xl-x-0","cookie-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"],["href","javascript:;"],[1,"breadcrumb-item","active"],[1,"mg-b-0","tx-spacing--1","pl-1"],[1,"datepickerwrapper"],["tooltipPosition","top","placeholder","Filter by Source","optionLabel","name","optionValue","code","tooltip","Click here to select any domain or subdomain and view its data.",3,"options","ngModel","showClear","ngModelChange","onChange",4,"ngIf"],[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"],[1,"card","dashboard-summary-card","mg-b-15"],[1,"card-body","pd-0"],[4,"ngIf","ngIfElse"],["summarySkeleton",""],[1,"card","dashboard-panel","mg-b-15"],[1,"card-header","panel-header"],[1,"panel-title"],["class","chart-legend",4,"ngIf"],[1,"card-body","panel-body","chart-panel-body"],["trendEmpty",""],["trendSkeleton",""],[1,"row","row-xs"],[1,"col-xl-6","col-lg-12"],[1,"card","dashboard-panel","mg-b-15","h-100"],[1,"card-body","panel-body"],["countrySkeleton",""],["categoryEmpty",""],["categorySkeleton",""],[1,"col-12"],[1,"card","dashboard-panel","mg-b-10"],[1,"table-responsive"],["detailsSkeleton",""],[1,"col-sm-5","mr-0","float-right","flotingdiv"],["dismissOnTimeout","5000",3,"type","dismissible","onClosed",4,"ngIf"],["noSup",""],["tooltipPosition","top","placeholder","Filter by Source","optionLabel","name","optionValue","code","tooltip","Click here to select any domain or subdomain and view its data.",3,"options","ngModel","showClear","ngModelChange","onChange"],[1,"summary-grid"],["class","summary-item",4,"ngFor","ngForOf"],[1,"summary-item"],[1,"summary-value-row"],[1,"summary-value"],["class","summary-percent",4,"ngIf"],["class","summary-progress-track",4,"ngIf"],[1,"summary-label"],[1,"summary-percent"],[1,"summary-progress-track"],[1,"summary-progress-fill"],[1,"pd-20"],["count","3",3,"theme"],[1,"chart-legend"],["class","legend-item",4,"ngFor","ngForOf"],[1,"legend-item"],[1,"legend-swatch"],["class","chart-canvas-wrapper",4,"ngIf","ngIfElse"],[1,"chart-canvas-wrapper"],["baseChart","","height","110",3,"datasets","labels","options","legend","chartType","plugins"],[1,"empty-state"],["count","1",3,"theme"],[1,"country-layout"],[1,"country-map-wrapper"],["id","worldMap",1,"country-map"],[1,"country-table-wrapper"],["class","table country-table mg-b-0",4,"ngIf","ngIfElse"],["countryEmpty",""],[1,"table","country-table","mg-b-0"],[1,"text-right"],[4,"ngFor","ngForOf"],[1,"empty-state","empty-state--small"],["class","chart-canvas-wrapper chart-canvas-wrapper--bar",4,"ngIf","ngIfElse"],[1,"chart-canvas-wrapper","chart
1-canvas-wrapper--bar"],["baseChart","","height","110",3,"datasets","labels","options","plugins","legend","chartType"],[1,"table","consent-details-table","mg-b-0"],["count","5",3,"theme"],["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)(6,"a",5),e._uU(7,"Privacy"),e.qZA()(),e.TgZ(8,"li",4)(9,"a",5),e._uU(10,"Cookie"),e.qZA()(),e.TgZ(11,"li",6),e._uU(12,"Consent Analytics"),e.qZA()()(),e.TgZ(13,"h4",7),e._uU(14,"Cookie Consent Dashboard"),e.qZA()(),e.TgZ(15,"div",8),e.YNc(16,R,1,3,"p-dropdown",9),e.TgZ(17,"div",10)(18,"div",11),e.NdJ("click",function(){e.CHM(i);const d=e.MAs(22);return e.KtG(d.show())}),e.TgZ(19,"span",12),e._UZ(20,"i",13),e.qZA()(),e.TgZ(21,"input",14,15),e.NdJ("ngModelChange",function(d){return a.searchbydaterange=d})("onHidden",function(){return a.onRefreshAll()}),e.qZA(),e.TgZ(23,"div",16),e.NdJ("click",function(){e.CHM(i);const d=e.MAs(22);return e.KtG(d.show())}),e.TgZ(24,"span",17),e._UZ(25,"i",18),e.qZA()()(),e.TgZ(26,"button",19),e.NdJ("click",function(){return a.onRefreshAll()}),e._uU(27," Refresh "),e.qZA()()(),e.TgZ(28,"div",20)(29,"div",21),e.YNc(30,Q,3,1,"ng-container",22),e.YNc(31,K,2,2,"ng-template",null,23,e.W1O),e.qZA()(),e.TgZ(33,"div",24)(34,"div",25)(35,"h6",26),e._uU(36,"Consent Over Time"),e.qZA(),e.YNc(37,z,2,1,"div",27),e.qZA(),e.TgZ(38,"div",28),e.YNc(39,G,2,2,"ng-container",22),e.YNc(40,W,2,0,"ng-template",null,29,e.W1O),e.YNc(42,H,1,2,"ng-template",null,30,e.W1O),e.qZA()(),e.TgZ(44,"div",31)(45,"div",32)(46,"div",33)(47,"div",25)(48,"h6",26),e._uU(49,"Request By Country"),e.qZA()(),e.TgZ(50,"div",34),e.YNc(51,ee,8,2,"ng-container",22),e.YNc(52,te,1,2,"ng-template",null,35,e.W1O),e.qZA()()(),e.TgZ(54,"div",32)(55,"div",33)(56,"div",25)(57,"h6",26),e._uU(58,"Consent By Category"),e.qZA(),e.YNc(59,oe,2,1,"div",27),e.qZA(),e.TgZ(60,"div",28),e.YNc(61,se,2,2,"ng-container",22),e.YNc(62,re,2,0,"ng-template",null,36,e.W1O),e.YNc(64,ie,1,2,"ng-template",null,37,e.W1O),e.qZA()()(),e.TgZ(66,"div",38)(67,"div",39)(68,"div",25)(69,"h6",26),e._uU(70,"Consent Details"),e.qZA()(),e.TgZ(71,"div",40),e.YNc(72,ce,20,1,"ng-container",22),e.YNc(73,pe,2,2,"ng-template",null,41,e.W1O),e.qZA()()()()(),e.TgZ(75,"div",42),e.YNc(76,ue,2,3,"alert",43),e.qZA(),e.YNc(77,ge,5,0,"ng-template",null,44,e.W1O)}if(2&n){const i=e.MAs(32),l=e.MAs(43),d=e.MAs(53),m=e.MAs(65),_=e.MAs(74);e.xp6(16),e.Q6J("ngIf",a.subDomainFilters.length>0),e.xp6(4),e.Q6J("ngClass",""!==a.searchbydaterange?"fa-caret-down":"fa-search"),e.xp6(1),e.Q6J("ngModel",a.searchbydaterange)("bsConfig",a.bsConfig),e.xp6(9),e.Q6J("ngIf",!a.loadingSkeleton.summary)("ngIfElse",i),e.xp6(7),e.Q6J("ngIf",a.lineLegendItems.length>0),e.xp6(2),e.Q6J("ngIf",!a.loadingSkeleton.trend)("ngIfElse",l),e.xp6(12),e.Q6J("ngIf",!a.loadingSkeleton.country)("ngIfElse",d),e.xp6(8),e.Q6J("ngIf",a.barLegendItems.length>0),e.xp6(2),e.Q6J("ngIf",!a.loadingSkeleton.category)("ngIfElse",m),e.xp6(11),e.Q6J("ngIf",!a.loadingSkeleton.details)("ngIfElse",_),e.xp6(4),e.Q6J("ngIf",a.isOpen)}},dependencies:[h.mk,h.sg,h.O5,q.xr,D.FR,D.TB,I.i9,N.wx,U.mh,C.Fj,C.JJ,C.On,w.Lt,M.jh,h.JJ],styles:["[_nghost-%COMP%]{display:block}.cookie-dashboard[_ngcontent-%COMP%]{color:#0f172a}.dashboard-summary-card[_ngcontent-%COMP%], .dashboard-panel[_ngcontent-%COMP%]{border:1px solid #d8dee8;border-radius:0;box-shadow:none}.summary-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.summary-item[_ngcontent-%COMP%]{min-height:84px;padding:16px 18px 14px;border-left:1px solid #d8dee8}.summary-item[_ngcontent-%COMP%]:first-child{border-left:0}.summary-value-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:6px;margin-bottom:8px}.summary-value[_ngcontent-%COMP%]{margin:0;font-size:28px;font-weight:700;line-height:1;color:#111827}.summary-percent[_ngcontent-%COMP%]{padding-bottom:4px;font-size:11px;font-weight:600;color:#94a3b8}.summary-progress-track[_ngcontent-%COMP%]{width:100%;max-width:126px;height:8px;margin-bottom:7px;background:#d7dbe1;border-radius:2px;overflow:hidden}.summary-progress-fill[_ngcontent-%COMP%]{display:block;height:100%;border-radius:2px}.summary-label[_ngcontent-%COMP%]{margin:0;font-size:13px;font-weight:500;color:#111827}.panel-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 12px;background:#ffffff;border-bottom:1px solid #e8edf4}.panel-title[_ngcontent-%COMP%]{margin:0;font-size:18px;font-weight:600;color:#111827}.panel-body[_ngcontent-%COMP%]{padding:16px 18px 18px}.chart-panel-body[_ngcontent-%COMP%]{min-height:360px}.chart-canvas-wrapper[_ngcontent-%COMP%]{position:relative;min-height:300px}
1.chart-canvas-wrapper--bar[_ngcontent-%COMP%]{min-height:300px}.chart-legend[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:14px;font-size:11px;color:#475569}.legend-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.legend-swatch[_ngcontent-%COMP%]{width:18px;height:8px;border-radius:2px;display:inline-block}.country-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(220px,.85fr);gap:18px;min-height:300px}.country-map-wrapper[_ngcontent-%COMP%]{border:1px solid #edf2f7;background:#ffffff;min-height:300px;padding:12px}.country-map[_ngcontent-%COMP%]{width:100%;height:274px}.country-table-wrapper[_ngcontent-%COMP%]{max-height:300px;overflow:auto}.country-table[_ngcontent-%COMP%], .consent-details-table[_ngcontent-%COMP%]{margin-bottom:0}.country-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .consent-details-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-top:0;border-bottom:1px solid #e8edf4;font-size:12px;font-weight:600;color:#475569;white-space:nowrap;padding:12px}.country-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .consent-details-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:12px;vertical-align:middle;border-top:1px solid #eef2f7;color:#111827}.country-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child, .consent-details-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child{font-weight:500}.empty-state[_ngcontent-%COMP%]{min-height:300px;display:flex;align-items:center;justify-content:center;text-align:center;color:#64748b;font-size:14px}.empty-state--small[_ngcontent-%COMP%]{min-height:240px}.refresh-button[_ngcontent-%COMP%]{text-transform:none;font-size:12px}.form-control[_ngcontent-%COMP%]{height:29px;padding-right:1px;padding-left:5px}.datepickerwrapper[_ngcontent-%COMP%]{display:flex!important;justify-content:flex-end!important;align-items:center;gap:8px}.datepickerwrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:38px!important}.datepickerwrapper[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{border-radius:0!important}.datepickerwrapper[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{outline:none;border-radius:0 5px 5px 0;box-shadow:none;border-color:#c0ccda}.datepickerwrapper[_ngcontent-%COMP%]   .input-group-prepend[_ngcontent-%COMP%]{height:38px}.date-input[_ngcontent-%COMP%]{width:240px;height:34px}.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}  .datepickerwrapper .p-dropdown{min-width:180px;height:38px}  .datepickerwrapper .p-dropdown .p-dropdown-label{display:flex;align-items:center;font-size:13px}  .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}  .jvectormap-container{width:100%;height:100%}@media (max-width: 1399.98px){.summary-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(4,minmax(0,1fr))}.summary-item[_ngcontent-%COMP%]{border-top:1px solid #d8dee8}.summary-item[_ngcontent-%COMP%]:nth-child(-n+4){border-top:0}.summary-item[_ngcontent-%COMP%]:nth-child(4n+1){border-left:0}}@media (max-width: 1199.98px){.country-layout[_ngcontent-%COMP%]{grid-template-columns:1fr}.country-table-wrapper[_ngcontent-%COMP%]{max-height:none}}@media (max-width: 991.98px){.summary-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-item[_ngcontent-%COMP%]:nth-child(-n+2){border-top:0}.summary-item[_ngcontent-%COMP%]:nth-child(2n+1){border-left:0}.chart-panel-body[_ngcontent-%COMP%]{min-height:320px}
1.chart-canvas-wrapper[_ngcontent-%COMP%], .chart-canvas-wrapper--bar[_ngcontent-%COMP%], .country-layout[_ngcontent-%COMP%], .country-map-wrapper[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%]{min-height:260px}.country-map[_ngcontent-%COMP%]{height:234px}}@media (max-width: 767.98px){.panel-header[_ngcontent-%COMP%]{align-items:flex-start;flex-direction:column}.chart-legend[_ngcontent-%COMP%]{justify-content:flex-start}.datepickerwrapper[_ngcontent-%COMP%]{width:100%;justify-content:flex-start!important;flex-wrap:wrap}.datepickerwrapper[_ngcontent-%COMP%]   .col-sm-6[_ngcontent-%COMP%]{max-width:100%;flex:0 0 100%;padding-right:0!important}}@media (max-width: 575.98px){.summary-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.summary-item[_ngcontent-%COMP%]{border-left:0}.summary-item[_ngcontent-%COMP%] + .summary-item[_ngcontent-%COMP%]{border-top:1px solid #d8dee8}.summary-value[_ngcontent-%COMP%]{font-size:24px}.date-input[_ngcontent-%COMP%]{width:100%}}"]}),o})();var Ce=c(19119),be=c(85493),fe=c(31456),ye=c(14471);const _e=[{path:"",component:me,canActivate:[be.a1,fe.p,ye.e]}];let xe=(()=>{const r=class{};let o=r;return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[h.ez,Ce.J,f.Bz.forChild(_e),C.u5,w.kW,M.m9]}),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.