1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["src_app_dashboard_analytics_module_ts"],{8664:(y0,x,l)=>{l.r(x),l.d(x,{AnalyticsModule:()=>A0});var p=l(36895),P=l(22096),Z=l(67195),M=l(51692),H={prefix:"fab",iconName:"chrome",icon:[496,512,[],"f268","M131.5 217.5L55.1 100.1c47.6-59.2 119-91.8 192-92.1 42.3-.3 85.5 10.5 124.8 33.2 43.4 25.2 76.4 61.4 97.4 103L264 133.4c-58.1-3.4-113.4 29.3-132.5 84.1zm32.9 38.5c0 46.2 37.4 83.6 83.6 83.6s83.6-37.4 83.6-83.6-37.4-83.6-83.6-83.6-83.6 37.3-83.6 83.6zm314.9-89.2L339.6 174c37.9 44.3 38.5 108.2 6.6 157.2L234.1 503.6c46.5 2.5 94.4-7.7 137.8-32.9 107.4-62 150.9-192 107.4-303.9zM133.7 303.6L40.4 120.1C14.9 159.1 0 205.9 0 256c0 124 90.8 226.7 209.5 244.9l63.7-124.8c-57.6 10.8-113.2-20.8-139.5-72.5z"]},L={prefix:"fab",iconName:"edge",icon:[512,512,[],"f282","M481.92,134.48C440.87,54.18,352.26,8,255.91,8,137.05,8,37.51,91.68,13.47,203.66c26-46.49,86.22-79.14,149.46-79.14,79.27,0,121.09,48.93,122.25,50.18,22,23.8,33,50.39,33,83.1,0,10.4-5.31,25.82-15.11,38.57-1.57,2-6.39,4.84-6.39,11,0,5.06,3.29,9.92,9.14,14,27.86,19.37,80.37,16.81,80.51,16.81A115.39,115.39,0,0,0,444.94,322a118.92,118.92,0,0,0,58.95-102.44C504.39,176.13,488.39,147.26,481.92,134.48ZM212.77,475.67a154.88,154.88,0,0,1-46.64-45c-32.94-47.42-34.24-95.6-20.1-136A155.5,155.5,0,0,1,203,215.75c59-45.2,94.84-5.65,99.06-1a80,80,0,0,0-4.89-10.14c-9.24-15.93-24-36.41-56.56-53.51-33.72-17.69-70.59-18.59-77.64-18.59-38.71,0-77.9,13-107.53,35.69C35.68,183.3,12.77,208.72,8.6,243c-1.08,12.31-2.75,62.8,23,118.27a248,248,0,0,0,248.3,141.61C241.78,496.26,214.05,476.24,212.77,475.67Zm250.72-98.33a7.76,7.76,0,0,0-7.92-.23,181.66,181.66,0,0,1-20.41,9.12,197.54,197.54,0,0,1-69.55,12.52c-91.67,0-171.52-63.06-171.52-144A61.12,61.12,0,0,1,200.61,228,168.72,168.72,0,0,0,161.85,278c-14.92,29.37-33,88.13,13.33,151.66,6.51,8.91,23,30,56,47.67,23.57,12.65,49,19.61,71.7,19.61,35.14,0,115.43-33.44,163-108.87A7.75,7.75,0,0,0,463.49,377.34Z"]},V={prefix:"fab",iconName:"firefox",icon:[512,512,[],"f269","M503.52,241.48c-.12-1.56-.24-3.12-.24-4.68v-.12l-.36-4.68v-.12a245.86,245.86,0,0,0-7.32-41.15c0-.12,0-.12-.12-.24l-1.08-4c-.12-.24-.12-.48-.24-.6-.36-1.2-.72-2.52-1.08-3.72-.12-.24-.12-.6-.24-.84-.36-1.2-.72-2.4-1.08-3.48-.12-.36-.24-.6-.36-1-.36-1.2-.72-2.28-1.2-3.48l-.36-1.08c-.36-1.08-.84-2.28-1.2-3.36a8.27,8.27,0,0,0-.36-1c-.48-1.08-.84-2.28-1.32-3.36-.12-.24-.24-.6-.36-.84-.48-1.2-1-2.28-1.44-3.48,0-.12-.12-.24-.12-.36-1.56-3.84-3.24-7.68-5-11.4l-.36-.72c-.48-1-.84-1.8-1.32-2.64-.24-.48-.48-1.08-.72-1.56-.36-.84-.84-1.56-1.2-2.4-.36-.6-.6-1.2-1-1.8s-.84-1.44-1.2-2.28c-.36-.6-.72-1.32-1.08-1.92s-.84-1.44-1.2-2.16a18.07,18.07,0,0,0-1.2-2c-.36-.72-.84-1.32-1.2-2s-.84-1.32-1.2-2-.84-1.32-1.2-1.92-.84-1.44-1.32-2.16a15.63,15.63,0,0,0-1.2-1.8L463.2,119a15.63,15.63,0,0,0-1.2-1.8c-.48-.72-1.08-1.56-1.56-2.28-.36-.48-.72-1.08-1.08-1.56l-1.8-2.52c-.36-.48-.6-.84-1-1.32-1-1.32-1.8-2.52-2.76-3.72a248.76,248.76,0,0,0-23.51-26.64A186.82,186.82,0,0,0,412,62.46c-4-3.48-8.16-6.72-12.48-9.84a162.49,162.49,0,0,0-24.6-15.12c-2.4-1.32-4.8-2.52-7.2-3.72a254,254,0,0,0-55.43-19.56c-1.92-.36-3.84-.84-5.64-1.2h-.12c-1-.12-1.8-.36-2.76-.48a236.35,236.35,0,0,0-38-4H255.14a234.62,234.62,0,0,0-45.48,5c-33.59,7.08-63.23,21.24-82.91,39-1.08,1-1.92,1.68-2.4,2.16l-.48.48H124l-.12.12.12-.12a.12.12,0,0,0,.12-.12l-.12.12a.42.42,0,0,1,.24-.12c14.64-8.76,34.92-16,49.44-19.56l5.88-1.44c.36-.12.84-.12,1.2-.24,1.68-.36,3.36-.72,5.16-1.08.24,0,.6-.12.84-.12C250.94,20.94,319.34,40.14,367,85.61a171.49,171.49,0,0,1,26.88,32.76c30.36,49.2,27.48,111.11,3.84,147.59-34.44,53-111.35,71.27-159,24.84a84.19,84.19,0,0,1-25.56-59,74.05,74.05,0,0,1,6.24-31c1.68-3.84,13.08-25.67,18.24-24.59-13.08-2.76-37.55,2.64-54.71,28.19-15.36,22.92-14.52,58.2-5,83.28a132.85,132.85,0,0,1-12.12-39.24c-12.24-82.55,43.31-153,94.31-170.51-27.48-24-96.47-22.31-147.71,15.36-29.88,22-51.23,53.16-62.51,90.36,1.68-20.88,9.6-52.08,25.8-83.88-17.16,8.88-39,37-49.8,62.88-15.6,37.43-21,82.19-16.08,124.79.36,3.24.72,6.36,1.08,9.6,19.92,117.11,122,206.38,244.78,206.38C392.77,503.42,504,392.19,504,255,503.88,250.48,503.76,245.92,503.52,241.48Z"]},g={prefix:"fab",iconName:"opera",icon:[496,512,[],"f26a","M313.9 32.7c-170.2 0-252.6 223.8-147.5 355.1 36.5 45.4 88.6 75.6 147.5 75.6 36.3 0 70.3-11.1 99.4-30.4-43.8 39.2-101.9 63-165.3 63-3.9 0-8 0-11.9-.3C104.6 489.6 0 381.1 0 248 0 111 111 0 248 0h.8c63.1.3 120.7 24.1 164.4 63.1-29-19.4-63.1-30.4-99.3-30.4zm101.8 397.7c-40.9 24.7-90.7 23.6-132-5.8 56.2-20.5 97.7-91.6 97.7-176.6 0-84.7-41.2
1-155.8-97.4-176.6 41.8-29.2 91.2-30.3 132.9-5 105.9 98.7 105.5 265.7-1.2 364z"]},N={prefix:"fab",iconName:"safari",icon:[512,512,[],"f267","M274.69,274.69l-37.38-37.38L166,346ZM256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8ZM411.85,182.79l14.78-6.13A8,8,0,0,1,437.08,181h0a8,8,0,0,1-4.33,10.46L418,197.57a8,8,0,0,1-10.45-4.33h0A8,8,0,0,1,411.85,182.79ZM314.43,94l6.12-14.78A8,8,0,0,1,331,74.92h0a8,8,0,0,1,4.33,10.45l-6.13,14.78a8,8,0,0,1-10.45,4.33h0A8,8,0,0,1,314.43,94ZM256,60h0a8,8,0,0,1,8,8V84a8,8,0,0,1-8,8h0a8,8,0,0,1-8-8V68A8,8,0,0,1,256,60ZM181,74.92a8,8,0,0,1,10.46,4.33L197.57,94a8,8,0,1,1-14.78,6.12l-6.13-14.78A8,8,0,0,1,181,74.92Zm-63.58,42.49h0a8,8,0,0,1,11.31,0L140,128.72A8,8,0,0,1,140,140h0a8,8,0,0,1-11.31,0l-11.31-11.31A8,8,0,0,1,117.41,117.41ZM60,256h0a8,8,0,0,1,8-8H84a8,8,0,0,1,8,8h0a8,8,0,0,1-8,8H68A8,8,0,0,1,60,256Zm40.15,73.21-14.78,6.13A8,8,0,0,1,74.92,331h0a8,8,0,0,1,4.33-10.46L94,314.43a8,8,0,0,1,10.45,4.33h0A8,8,0,0,1,100.15,329.21Zm4.33-136h0A8,8,0,0,1,94,197.57l-14.78-6.12A8,8,0,0,1,74.92,181h0a8,8,0,0,1,10.45-4.33l14.78,6.13A8,8,0,0,1,104.48,193.24ZM197.57,418l-6.12,14.78a8,8,0,0,1-14.79-6.12l6.13-14.78A8,8,0,1,1,197.57,418ZM264,444a8,8,0,0,1-8,8h0a8,8,0,0,1-8-8V428a8,8,0,0,1,8-8h0a8,8,0,0,1,8,8Zm67-6.92h0a8,8,0,0,1-10.46-4.33L314.43,418a8,8,0,0,1,4.33-10.45h0a8,8,0,0,1,10.45,4.33l6.13,14.78A8,8,0,0,1,331,437.08Zm63.58-42.49h0a8,8,0,0,1-11.31,0L372,383.28A8,8,0,0,1,372,372h0a8,8,0,0,1,11.31,0l11.31,11.31A8,8,0,0,1,394.59,394.59ZM286.25,286.25,110.34,401.66,225.75,225.75,401.66,110.34ZM437.08,331h0a8,8,0,0,1-10.45,4.33l-14.78-6.13a8,8,0,0,1-4.33-10.45h0A8,8,0,0,1,418,314.43l14.78,6.12A8,8,0,0,1,437.08,331ZM444,264H428a8,8,0,0,1-8-8h0a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8h0A8,8,0,0,1,444,264Z"]},A=l(73177),y=l(3940),S=l(92340),c=l(94650),C=l(64491),$7=l(59922),X7=l(37407),c0=l(11481),a0=l(1637),e0=l(32320),i0=l(2854);const o0=function(){return{width:"100%",height:"340px","border-radius":"10px"}};function l0(i,n){1&i&&(c.TgZ(0,"li",7),c._UZ(1,"ngx-skeleton-loader",8),c.qZA()),2&i&&(c.xp6(1),c.Q6J("theme",c.DdM(1,o0)))}function n0(i,n){if(1&i&&(c.ynx(0),c.TgZ(1,"div",3)(2,"p",4),c._uU(3,"Welcome"),c.qZA(),c.TgZ(4,"h4"),c._uU(5,"Loading Apps"),c.qZA()(),c.TgZ(6,"div",5)(7,"ul"),c.YNc(8,l0,2,2,"li",6),c.qZA()(),c.BQk()),2&i){const o=c.oxw();c.xp6(8),c.Q6J("ngForOf",o.skeletonCards)}}function f0(i,n){if(1&i){const o=c.EpF();c.ynx(0),c.TgZ(1,"li",16)(2,"div")(3,"div",17)(4,"div",18)(5,"h5",19),c._uU(6),c.qZA(),c._UZ(7,"i"),c.TgZ(8,"p",20),c._uU(9),c.qZA(),c._UZ(10,"hr"),c.TgZ(11,"a",21),c.NdJ("click",function(a){const r=c.CHM(o).$implicit,s=c.oxw(3);return c.KtG(s.openApp(r,a))}),c._uU(12),c.qZA()()()()(),c.BQk()}if(2&i){const o=n.$implicit;c.xp6(6),c.Oqu(o.title),c.xp6(1),c.Tol(o.iconcss),c.xp6(2),c.hij(" ",o.content," "),c.xp6(2),c.s9C("tooltip",o.tooltipcontent),c.xp6(1),c.hij(" ",o.buttonText," ")}}function r0(i,n){if(1&i&&(c.TgZ(0,"div",14)(1,"ul"),c.YNc(2,f0,13,7,"ng-container",15),c.qZA()()),2&i){const o=c.oxw(2);c.xp6(2),c.Q6J("ngForOf",o.appsPositionRowOne)}}function s0(i,n){1&i&&(c.TgZ(0,"div",22)(1,"h4"),c._uU(2,"Other Apps"),c.qZA()())}function t0(i,n){if(1&i){const o=c.EpF();c.ynx(0),c.TgZ(1,"li",16)(2,"div")(3,"div",17)(4,"div",18)(5,"h5",19),c._uU(6),c.qZA(),c._UZ(7,"i"),c.TgZ(8,"p",20),c._uU(9),c.qZA(),c._UZ(10,"hr"),c.TgZ(11,"a",21),c.NdJ("click",function(a){const r=c.CHM(o).$implicit,s=c.oxw(3);return c.KtG(s.openApp(r,a))}),c._uU(12),c.qZA()()()()(),c.BQk()}if(2&i){const o=n.$implicit;c.xp6(6),c.Oqu(o.title),c.xp6(1),c.Tol(o.iconcss),c.xp6(2),c.hij(" ",o.content," "),c.xp6(2),c.s9C("tooltip",o.tooltipcontent),c.xp6(1),c.hij(" ",o.buttonText," ")}}const m0=function(i){return{"mb-4":i}};function h0(i,n){if(1&i&&(c.TgZ(0,"div",23)(1,"ul"),c.YNc(2,t0,13,7,"ng-container",15),c.qZA()()),2&i){const o=c.oxw(2);c.Q6J("ngClass",c.VKq(2,m0,(null==o.appsPositionRowTwo?null:o.appsPositionRowTwo.length)>0)),c.xp6(2),c.Q6J("ngForOf",o.appsPositionRowTwo)}}function z0(i,n){1&i&&(c.TgZ(0,"div",24)(1,"h4"),c._uU(2,"Other Apps"),c.qZA()())}function v0(i,n){if(1&i){const o=c.EpF();c.ynx(0),c.TgZ(1,"li",16)(2,"div")(3,"div",17)(4,"div",18)(5,"h5",19),c._uU(6),c.qZA(),c._UZ(7,"i"),c.TgZ(8,"p",20),c._uU(9),c.qZA(),c._UZ(10,"hr"),c.TgZ(11,"a",21),c.NdJ("click",function(a){const r=c.CHM(o).$implicit,s=c.oxw(3);return c.KtG(s.openApp(r,a))}),c._uU(12),c.qZA()()()()(),c.BQk()}if(2&i){const o=n.$implicit;c.xp6(6),c.Oqu(o.title),c.xp6(1),c.Tol(o.iconcss),c.xp6(2),c.hij(" ",o.content," "),c.xp6(2),c.s9C("tooltip",o.tooltipcontent),c.xp6(1),c.hij(" ",o.buttonText," ")}}function p0(i,n){if(1&i&&(c.TgZ(0,"div",5)(1,"ul"),c.YNc(2,v0,13,7,"ng-container",15),c.qZA()()),2&i){const o=c.oxw(2);c.xp6(2),c.Q6J("ngForOf",o.appsPositionRowThree)}}function M0(i,n){if(1&i&&(c.TgZ(0,"div",3)(1,"p",4),c._uU(2,"Welcome"),c.qZA(),c.TgZ(3,"h4"),c._uU(4),c.qZA()(),c.YNc(5,r0,3,1,"div",9),c.YNc(6,s0,3,0,"div",10),c.YNc(7,h0,3,4,"div",11),c.YNc(8,z0,3,0,"div",12),c.YNc(9,p0,3,1,"div",13)),2&i){const o=c.oxw();c.xp6(4),c.Oqu(o.noOfLicensePurchased>0?"My Apps":"Apps"),c.xp6(1),c.Q6J("ngIf",null==o.appsPositionRowOne?null:o.appsPositionRowOne.length),c.xp6(1),c.Q6J("ngIf",o.noOfLicensePurchased>0&&o.hasUnlicensedRowTwo),c.xp6(1),c.Q6J("ngIf",null==o.appsPositionRowTwo?null:o.appsPositionRowTwo.length),c.xp6(1),c.Q6J("ngIf",o.noOfLicensePurchased>0&&!o.hasUnlicensedRowTwo&&o.hasRowThree),c.xp6(1),c.Q6J("ngIf",null==o.appsPositionRowThree?null:o.appsPositionRowThree.length)}}let d0=(()=>{const n=class{constructor(e,a,f,r,s,z,t,h,b){this.router=e,this.activateRoute=a,this.authService=f,this.orgService=r,this.dataService=s,this.loading=z,this.userService=t,this.cdRef=h,this.titleService=b,this.faChrome=H,this.faEdge=L,this.faFirefox=V,this.faSafari=N,this.faOpera=g,this.isLicenseAssignedtoProperty=!1,this.isLicenseAssignedtoOrganization=!1,this.isConsentPreferenceLicenseAssignedToProperty=!1,this.isSocialFortunaLicenseAssignedToProperty=!1,this.skeletonLoading=!0,this.skeletonCards=[1,2,3,4,5,6],this.isRopaLicenseAssignedToOrganization=!1,this.isDataDiscoveryLicenseAssignedToOrganization=!1,this.isDpiaLicenseAssignedToOrganization=!1,this.isPolicyManagementLicenseAssignedToOrganization=!1,this.arryt=[],this.appsContent=[],this.purchsedApps=[],this.appsPositionRowOne=[],this.appsPositionRowTwo=[],this.appsPositionRowThree=[],this.noOfLicensePurchased=0,this.pendingPlanRequests=0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.authService.currentUser.subscribe(m=>this.currentUser=m),this.activateRoute.queryParamMap.subscribe(m=>{this.queryOID=m.get("oid"),this.queryPID=m.get("pid")}),this.titleService.setTitle("Home - "+S.N.portalPrefix)}ngOnInit(){if(this.userService.addUserActionOnActualButton.next({quickstartid:8,isclicked:null,isactualbtnclicked:!1}),null!=this.queryOID){const e={organization_id:this.queryOID,property_id:this.queryPID},a=null!=this.queryPID;return this.startPlanLoading(a?2:1),this.loadOrganizationPlanDetails(e),void(a&&this.loadPropertyPlanDetails(e))}this.skeletonLoading=!0,this.navigateToStoredWelcomeContext()}isPropertyLicenseAssigned(e){return this.isLicenseAssignedtoProperty=e,this.dataService.isLicenseAppliedForProperty.next({requesttype:"property",hasaccess:e}),this.cookieTooltiptext=this.isLicenseAssignedtoProperty?"":"The selected property has not been assigned to Cookie Consent subscription",this.isLicenseAssignedtoProperty}isOrganizationLicenseAssigned(e){return this.isLicenseAssignedtoOrganization=e,this.dsarTooltiptext=this.isLicenseAssignedtoOrganization?"":"The selected organization has not been assigned to DSAR subscription",this.dataService.isLicenseApplied.next({requesttype:"organization",hasaccess:e}),this.isLicenseAssignedtoOrganization}checkDivLength(){return this.appsContent.filter(e=>1==e.isLicensepurchased).length}loadAppContent(){return this.appsContent=[{id:1,isLicensepurchased:this.isLicenseAssignedtoProperty,title:"Cookie Consent",iconcss:"fas fa-chart-line tx-primary temp-blue center tx-64 margin-15",content:"Real-time dashboard and analytics to improve your opt-in rates with in-depth reporting.",tooltipcontent:this.isLicenseAssignedtoProperty?"":this.cookieTooltiptext,routerlinktext:this.isLicenseAssignedtoProperty?"/home/dashboard/cookie-consent":"/settings/billing/manage",buttonText:this.isLicenseAssignedtoProperty?"Go Now":"Try Now"},{id:4,isLicensepurchased:this.isLicenseAssignedtoOrganization,title:"Privacy Rights",iconcss:"fas fa-balance-scale tx-primary temp-blue center tx-64 margin-15",content:"Create dynamic forms and respond to privacy rights requests to meet regulatory deadlines.",tooltipcontent:this.isLicenseAssignedtoOrganization?"":this.dsarTooltiptext,routerlinktext:this.isLicenseAssignedtoOrganization?["/privacy/dsar/requests"]:["/settings/billing/manage"],buttonText:this.isLicenseAssignedtoOrganization?"Go Now":"Try Now"},{id:5,isLicensepurchased:this.isConsentPreferenceLicenseAssignedToProperty,title:"Consent Preference",iconcss:"fas fa-file-signature tx-primary temp-blue center tx-64 margin-15",content:"Collect user preference consent, document opt-ins/opt-outs via your web forms and systems.",tooltipcontent:this.isConsentPreferenceLicenseAssignedToProperty?"":this.consentTooltipText,routerlinktext:this.isConsentPreferenceLicenseAssignedToProperty?["/home/dashboard/consent-preference"]:["/settings/billing/manage"],buttonText:this.isConsentPreferenceLicenseAssignedToProperty?"Go Now":"Try Now"},{id:6,isLicensepurchased:this.isRopaLicenseAssignedToOrganization,title:"ROPA",iconcss:"fas fa-share tx-primary temp-blue center tx-64 margin-15",content:"Record of personal activities to meet regulatory deadlines.",tooltipcontent:this.isRopaLicenseAssignedToOrganization?"":this.ropaTooltiptext,routerlinktext:this.isRopaLicenseAssignedToOrganization?["/ropa/dashboard"]:["/settings/billing/manage"],buttonText:this.isRopaLicenseAssignedToOrganization?"Go Now":"Try Now"},{id:7,isLicensepurchased:this.isDataDiscoveryLicenseAssignedToOrganization,title:"Data Discovery",iconcss:"fas fa-database tx-primary temp-blue center tx-64 margin-15",content:"Discover and classify data across systems to identify sensitive information.",tooltipcontent:this.isDataDiscoveryLicenseAssignedToOrganization?"":this.dataDiscoveryTooltiptext,routerlinktext:this.isDataDiscoveryLicenseAssignedToOrganization?["/data-discovery/reports"]:["/settings/billing/manage"],buttonText:this.isDataDiscoveryLicenseAssignedToOrganization?"Go Now":"Try Now"},{id:8,isLicensepurchased:this.isDpiaLicenseAssignedToOrganization,title:"DPIA",iconcss:"fas fa-clipboard-check tx-primary temp-blue center tx-64 margin-15",content:"Create and manage Data Protection Impact Assessment templates.",tooltipcontent:this.isDpiaLicenseAssignedToOrganization?"":this.dpiaTooltiptext,routerlinktext:this.isDpiaLicenseAssignedToOrganization?["/assessment/dashboard"]:["/settings/billing/manage"],buttonText:this.isDpiaLicenseAssignedToOrganization?"Go Now":"Try Now"},{id:9,isLicensepurchased:this.isPolicyManagementLicenseAssignedToOrganization,title:"Policy Management",iconcss:"fas fa-file-contract tx-primary temp-blue center tx-64 margin-15",content:"Create, manage and track organisational policies with document upload and URL linking.",tooltipcontent:this.isPolicyManagementLicenseAssignedToOrganization?"":this.policyManagementTooltiptext,routerlinktext:this.isPolicyManagementLicenseAssignedToOrganization?["/policies/dashboard"]:["/settings/billing/manage"],buttonText:this.isPolicyManagementLicenseAssignedToOrganization?"Go Now":"Try Now"}],this.appsContent}allocateElementToRows(){this.appsPositionRowOne.length=0,this.appsPositionRowTwo.length=0,this.appsPositionRowThree.length=0;let e=this.checkDivLength();if(e!==this.noOfLicensePurchased&&(this.noOfLicensePurchased=e,this.cdRef.detectChanges()),void 0!==this.noOfLicensePurchased)if(5==this.noOfLicensePurchased)this.appsPositionRowOne.length=0,this.appsPositionRowTwo.length=0,this.appsPositionRowThree.length=0,this.appsPositionRowOne=this.appsContent.filter(a=>1==a.isLicensepurchased).slice(0,3),this.appsPositionRowTwo=this.appsContent.filter(a=>1==a.isLicensepurchased).slice(3,5),this.appsPositionRowThree=this.appsContent.filter(a=>0==a.isLicensepurchased);else if(4==this.noOfLicensePurchased)this.appsPositionRowOne.length=0,this.appsPositionRowTwo.length=0,this.appsPositionRowThree.length=0,this.appsPositionRowOne=this.appsContent.filter(a=>1==a.isLicensepurchased).slice(0,3),this.appsPositionRowTwo=this.appsContent.filter(a=>1==a.isLicensepurchased).slice(3,4),this.appsPositionRowThree=this.appsContent.filter(a=>0==a.isLicensepurchased);else if(3==this.noOfLicensePurchased)this.appsPositionRowOne.length=0,this.appsPositionRowThree.length=0,this.appsPositionRowTwo.length=0,this.appsPositionRowOne=this.appsContent.filter(a=>1==a.isLicensepurchased),this.appsPositionRowThree=this.appsContent.filter(a=>0==a.isLicensepurchased);else if(2==this.noOfLicensePurchased){this.appsPositionRowOne.length=0,this.appsPositionRowTwo.length=0,this.appsPositionRowThree.length=0,this.appsPositionRowOne=this.appsContent.filter(f=>1==f.isLicensepurchased);const a=this.appsContent.filter(f=>!f.isLicensepurchased);this.appsPositionRowTwo=a.slice(0,3),this.appsPositionRowThree=a.slice(3)}else if(1==this.noOfLicensePurchased){this.appsPositionRowOne.length=0,this.appsPositionRowTwo.length=0,this.appsPositionRowThree.length=0,this.appsPositionRowOne=this.appsContent.filter(f=>1==f.isLicensepurchased);const a=this.appsContent.filter(f=>!f.isLicensepurchased);this.appsPositionRowTwo=a.slice(0,3),this.appsPositionRowThree=a.slice(3)}else if(0==this.noOfLicensePurchased){this.appsPositionRowOne.length=0,this.appsPositionRowTwo.length=0,this.appsPositionRowThree.length=0;const a=this.appsContent.filter(f=>!f.isLicensepurchased);this.appsPositionRowTwo=a}else{const a=this.appsContent.filter(r=>1==r.isLicensepurchased),f=this.appsContent.filter(r=>0==r.isLicensepurchased);this.appsPositionRowOne=a.slice(0,3),this.appsPositionRowTwo=a.slice(3),this.appsPositionRowThree=f}}startPlanLoading(e){this.pendingPlanRequests=e,this.skeletonLoading=e>0,this.appsPositionRowOne=[],this.appsPositionRowTwo=[],this.appsPositionRowThree=[]}completePlanLoading(){this.pendingPlanRequests>0&&(this.pendingPlanRequests-=1),0===this.pendingPlanRequests&&(this.loadAppContent(),this.allocateElementToRows(),this.skeletonLoading=!1)}navigateToStoredWelcomeContext(){const e=this.orgService.getCurrentOrgWithProperty();null!=e&&void 0!==e.organization_id&&void 0!==e.property_id&&this.router.navigate(["/home/welcome"],{queryParams:{oid:e.organization_id,pid:e.property_id},queryParamsHandling:"merge",skipLocationChange:!1})}openApp(e,a){a?.preventDefault();const f=Array.isArray(e?.routerlinktext)?e.routerlinktext:[e?.routerlinktext];if(!f[0])return;const r={skipLocationChange:!1};null!=this.queryOID&&null!=this.queryPID&&(r.queryParams={oid:this.queryOID,pid:this.queryPID}),e?.queryParams&&(r.queryParams={...r.queryParams||{},...e.queryParams}),this.router.navigate(f,r)}loadOrganizationPlanDetails(e){this.isOrganizationLicenseAssigned(!1),this.isRopaLicenseAssignedToOrganization=!1,this.isDataDiscoveryLicenseAssignedToOrganization=!1,this.isDpiaLicenseAssignedToOrganization=!1,this.isPolicyManagementLicenseAssignedToOrganization=!1,this.ropaTooltiptext="The selected organization has not been assigned to RoPA subscription",this.dataDiscoveryTooltiptext="The selected organization has not been assigned to Data Discovery subscription",this.dpiaTooltiptext="The selected organization has not been assigned to DPIA subscription",this.policyManagementTooltiptext="The selected organization has not been assigned to Policy Management subscription",this.dataService.removeOrgPlanFromLocalStorage(),this.dataService.getOrgPlanInfo(this.constructor.name,y.e.cookieConsentModule,e.organization_id||e.id).subscribe(a=>{this.dataService.setOrgPlanToLocalStorage(a);const f=a?.response?.plan_details||{},r=void 0!==f.ropa?f:{ropa:f},s=v=>!!v&&"object"==typeof v&&Object.keys(v).length>0,z=s(r.dsar),t=s(r.ropa),h=s(r.dataDiscovery),b=s(r.dpia)||s(r.assessment),m=s(r.policyManagement);if(this.isOrganizationLicenseAssigned(z),this.isRopaLicenseAssignedToOrganization=t,this.isDataDiscoveryLicenseAssignedToOrganization=h,this.isDpiaLicenseAssignedToOrganization=b,this.isPolicyManagementLicenseAssignedToOrganization=m,this.ro
1paTooltiptext=t?"":"The selected organization has not been assigned to RoPA subscription",this.dataDiscoveryTooltiptext=h?"":"The selected organization has not been assigned to Data Discovery subscription",this.dpiaTooltiptext=b?"":"The selected organization has not been assigned to DPIA subscription",this.policyManagementTooltiptext=m?"":"The selected organization has not been assigned to Policy Management subscription",this.userService.isUserClickedOnProperty&&(this.userService.currentProductURL?.includes("dsar")||this.userService.currentProductRoute?.includes("dsar"))){const v=this.dataService.getCurrentOrgPlanDetails();this.dataService.openUpgradeModalForDsar(v)}this.completePlanLoading()},()=>{this.completePlanLoading()})}loadPropertyPlanDetails(e){this.isSocialFortunaLicenseAssignedToProperty=!1,this.isConsentPreferenceLicenseAssignedToProperty=!1,this.isPropertyLicenseAssigned(!1),this.consentTooltipText="The selected property has not been assigned to Consent Preference subscription",this.socialTooltiptext="The selected property has not been assigned to Social Fortuna subscription",this.dataService.isConsentPreferenceApplied.next({requesttype:"consentpreference",hasaccess:!1}),this.dataService.isSocialFortunaApplied.next({requesttype:"socialfortuna",hasaccess:!1}),this.dataService.removePropertyPlanFromLocalStorage(),this.dataService.getPropertyPlanDetails(this.constructor.name,y.e.cookieConsentModule,e.property_id).subscribe(a=>{this.dataService.setPropertyPlanToLocalStorage(a);const f=a?.response?.plan_details;if(!f)return void this.completePlanLoading();const s=f.consentPreference||{},z=f.cookieConsent||{};if(Object.keys(f.socialFortuna||{}).length>0){const t=this.dataService.isAllowFeatureByYes(a.response,A.f.SOCIAL_FORTUNA);if(this.dataService.isSocialFortunaApplied.next({requesttype:"socialfortuna",hasaccess:t}),this.isSocialFortunaLicenseAssignedToProperty=t,this.socialTooltiptext=t?"":"The selected property has not been assigned to Social Fortuna subscription",this.userService.isUserClickedOnProperty&&void 0!==this.userService.currentProductURL&&this.userService.currentProductURL.includes("social-fortuna")||void 0!==this.userService.currentProductRoute&&this.userService.currentProductRoute.includes("social-fortuna")){let h=this.dataService.getCurrentPropertyPlanDetails();this.dataService.openUpgradeModalForSocialFortuna(h)}}if(0===Object.keys(s).length)this.dataService.isConsentPreferenceApplied.next({requesttype:"consentpreference",hasaccess:!1}),this.isConsentPreferenceLicenseAssignedToProperty=!1,this.consentTooltipText="The selected property has not been assigned to Consent Preference subscription";else{const t=this.dataService.isAllowFeatureByYes(a.response,A.f.CONSENT_PREFERENCE);this.dataService.isConsentPreferenceApplied.next({requesttype:"consentpreference",hasaccess:t}),this.isConsentPreferenceLicenseAssignedToProperty=t,this.consentTooltipText=t?"":"The selected property has not been assigned to Consent Preference subscription"}this.isPropertyLicenseAssigned(Object.keys(z).length>0),this.showPopupForPropertyBasedSubscription(),this.completePlanLoading()},a=>{console.log(a),this.completePlanLoading()})}showPopupForPropertyBasedSubscription(){if(this.userService.isUserClickedOnProperty&&void 0!==this.userService.currentProductURL&&this.userService.currentProductURL.includes("/cookie-consent")||void 0!==this.userService.currentProductRoute&&this.userService.currentProductRoute.includes("/cookie-consent")){let e=this.dataService.getCurrentPropertyPlanDetails();this.dataService.openUpgradeModalForCookieConsent(e)}else if(this.userService.isUserClickedOnProperty&&void 0!==this.userService.currentProductURL&&this.userService.currentProductURL.includes("/cookie-tracking")){let e=this.dataService.getCurrentPropertyPlanDetails();this.dataService.openUpgradeModalForCookieConsent(e,"/cookie-consent/cookie-tracking")}else if(this.userService.isUserClickedOnProperty&&void 0!==this.userService.currentProductURL&&this.userService.currentProductURL.includes("consent-preference")||void 0!==this.userService.currentProductRoute&&this.userService.currentProductRoute.includes("consent-preference")){let e=this.dataService.getCurrentPropertyPlanDetails();this.dataService.openUpgradeModalForConsentPreference(e)}}get hasUnlicensedRowTwo(){return(this.appsPositionRowTwo||[]).some(e=>!e.isLicensepurchased)}get hasRowThree(){return(this.appsPositionRowThree||[]).length>0}get hasAnyUnlicensed(){return this.hasUnlicensedRowTwo||this.hasRowThree}};let i=n;return n.\u0275fac=function(a){return new(a||n)(c.Y36(M.F0),c.Y36(M.gz),c.Y36(C.$h),c.Y36(C.Mn),c.Y36($7.D),c.Y36(X7.LA),c.Y36(C.KD),c.Y36(c.sBO),c.Y36(c0.Dx))},n.\u0275cmp=c.Xpm({type:n,selectors:[["app-root"]],decls:4,vars:2,consts:[["appTheme","",1,"container","pd-x-0","pd-lg-x-10","pd-xl-x-0"],[4,"ngIf","ngIfElse"],["welcomeCards",""],[1,"col-sm-10","mb-3"],[1,"mb-2","font-weight-bold","tx-15"],[1,"dashboard-div"],["class","col-sm-4 skeleton-card",4,"ngFor","ngForOf"],[1,"col-sm-4","skeleton-card"],["appearance","circle",3,"theme"],["class","dashboard-div mb-4",4,"ngIf"],["class","col-sm-10 mt-5 mb-3",4,"ngIf"],["class","dashboard-div",3,"ngClass",4,"ngIf"],["class","col-sm-10 mt-3 mb-3",4,"ngIf"],["class","dashboard-div",4,"ngIf"],[1,"dashboard-div","mb-4"],[4,"ngFor","ngForOf"],[1,"col-sm-4"],[1,"col-md-10"],[1,"card","card-body"],[1,"mx-auto","card-title"],[1,"mx-auto","tx-11","tx-spacing-0","tx-color-02","tx-normal","mg-b-8","margin-30"],[1,"btn","btn-primary","bg-templ-blue",3,"tooltip","click"],[1,"col-sm-10","mt-5","mb-3"],[1,"dashboard-div",3,"ngClass"],[1,"col-sm-10","mt-3","mb-3"]],template:function(a,f){if(1&a&&(c.TgZ(0,"div",0),c.YNc(1,n0,9,1,"ng-container",1),c.YNc(2,M0,10,6,"ng-template",null,2,c.W1O),c.qZA()),2&a){const r=c.MAs(3);c.xp6(1),c.Q6J("ngIf",f.skeletonLoading)("ngIfElse",r)}},dependencies:[p.mk,p.sg,p.O5,a0.xr,e0.i9,i0.E],styles:['.center[_ngcontent-%COMP%]{text-align:center;width:100%}
1.card[_ngcontent-%COMP%] card-title[_ngcontent-%COMP%]{margin-top:100px}.fas[_ngcontent-%COMP%] fa-balance-scale[_ngcontent-%COMP%]{margin-top:40px}.margin-15[_ngcontent-%COMP%]{margin-top:15px}.margin-30[_ngcontent-%COMP%]{margin-top:30px}.text-divider[_ngcontent-%COMP%]{margin:1em 0;line-height:0;text-align:center}.text-divider[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-color:#f5f5f5;padding:.5em;opacity:.6;font-weight:700}.text-divider[_ngcontent-%COMP%]:before{content:" ";display:block;border-top:1px solid #e3e3e3;border-bottom:1px solid #f7f7f7}.hidetooltip[_ngcontent-%COMP%]{display:none}.temp-blue[_ngcontent-%COMP%]{color:var(--home-page-icons)}.bg-templ-blue[_ngcontent-%COMP%]{background-color:var(--user-preference)!important;border:0;color:#fff!important}.bg-templ-blue[_ngcontent-%COMP%]:hover{background-color:var(--user-preference)!important;border:0!important;color:#fff!important}.bg-templ-blue[_ngcontent-%COMP%]:focus{background-color:var(--user-preference)!important;border:0!important;color:#fff!important}.dashboard-div[_ngcontent-%COMP%]{margin:0;padding:0;display:flex;flex-direction:row;flex-wrap:nowrap!important}.dashboard-div[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{box-sizing:border-box;border:1px solid #cdcfd7!important;box-shadow:-1px -1px 20px #afafaf!important;height:100%;min-height:340px;display:flex;flex-direction:column;justify-content:space-between}.dashboard-div[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:24px 32px;align-items:stretch}.dashboard-div[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:0;list-style:none;display:flex;flex-direction:column;align-content:space-between;flex:0 0 calc(33.333% - 32px);margin-bottom:24px;align-items:stretch}.dashboard-no-license-div[_ngcontent-%COMP%]{margin:0;padding:0;display:inline-flex;flex-direction:row;flex-wrap:nowrap!important}.hide-dashboard-div[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.add-bottom-margin[_ngcontent-%COMP%], .remove-bottom-margin[_ngcontent-%COMP%]{margin:0 0 36px}']}),i})();var d=l(85493),b0=l(14471),u=l(31456),C0=l(25684),u0=l(94284);const x0=[{path:"welcome",component:d0,canActivate:[d.a1]},{path:"dashboard/ccpa-dsar",loadChildren:()=>Promise.all([l.e("default-node_modules_ng2-charts___ivy_ngcc___fesm2015_ng2-charts_js"),l.e("common"),l.e("src_app_dashboard_ccpa-dsar_ccpa-dsar_module_ts")]).then(l.bind(l,85232)).then(i=>i.CcpaDsarModule),canActivate:[d.a1,u.p,u0.g]},{path:"dashboard/cookie-consent",loadChildren:()=>Promise.all([l.e("default-node_modules_ng2-charts___ivy_ngcc___fesm2015_ng2-charts_js"),l.e("common"),l.e("src_app_dashboard_cookie-consent_cookie-consent_module_ts")]).then(l.bind(l,38471)).then(i=>i.CookieConsentModule),canActivate:[d.a1,u.p,b0.e]},{path:"dashboard/consent-preference",loadChildren:()=>Promise.all([l.e("default-node_modules_ng2-charts___ivy_ngcc___fesm2015_ng2-charts_js"),l.e("common"),l.e("src_app_dashboard_consent-solution_consent-solution_module_ts")]).then(l.bind(l,74962)).then(i=>i.ConsentSolutionModule),canActivate:[d.a1,u.p,C0.w]}];let H0=(()=>{const n=class{};let i=n;return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=c.oAB({type:n}),n.\u0275inj=c.cJS({imports:[M.Bz.forChild(x0),M.Bz]}),i})();var L0=l(19119),V0=l(23501),g0=l(55466),N0=l(91742);let A0=(()=>{const n=class{};let i=n;return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=c.oAB({type:n}),n.\u0275inj=c.cJS({imports:[p.ez,P.p.pick(Z.kEt),L0.J,H0,V0.O.forRoot({themes:[g0.W,N0.$],active:S.N.theme})]}),i})()}}]);
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.