1"use strict";(self.webpackChunkratings_ui_v2=self.webpackChunkratings_ui_v2||[]).push([["src_app_components_new-navigation_discovery_discovery_module_ts"],{3071:(J,T,h)=>{h.r(T),h.d(T,{DiscoveryModule:()=>Do});var C=h(496),w=h(1083),O=h(83126),x=h(89204),e=h(37580),y=h(84975),F=h(52223),R=h(4231);const B=[{title:"",active:!1,collapsed:!1,reports:[{title:"Adult Content",active:!1,icon:"/assets/images/icon-report.svg",filters:{adultContentRating:"H"},mainFilters:{region:"GLOBAL"}},{title:"Violence Content",active:!1,icon:"/assets/images/icon-report.svg",filters:{violenceContentRating:"H"},mainFilters:{region:"GLOBAL"}},{title:"High IVT",active:!1,icon:"/assets/images/icon-report.svg",filters:{givtSivtRate:"[0.1,1]"},mainFilters:{region:"GLOBAL"}},{title:"No Privacy Policy",active:!1,icon:"/assets/images/icon-report.svg",filters:{hasPrivacyLink:"F"},mainFilters:{region:"GLOBAL"}},{title:"No Clean Programmatic Ads Detected",active:!1,icon:"/assets/images/icon-report.svg",filters:{hasAds:"F"},mainFilters:{region:"GLOBAL"}},{title:"Anonymous (WHOIS Info Hidden)",active:!1,icon:"/assets/images/icon-report.svg",filters:{isPrivateDomain:"T"},mainFilters:{region:"GLOBAL"}}]}];var I=h(69299),_=h(60316);const G_getFilterStrings=function(o,a,t,i,n,s,r,l){const p=[];if(r||o.mainFilterItems.filter(u=>!u.ignore).forEach(u=>{const d=u.selected.apiValue;u.selected.ignore||d&&d.length&&(d.indexOf(",")>0?d.split(",").forEach(f=>{p.push(`${u.apiKey}=${f}`)}):p.push(`${u.apiKey}=${d}`))}),!l){let u=o.gridHeaders.filter(d=>d.sort&&d.sort.length>0&&d.sortColumnKey).map(d=>d.sortColumnKey.concat("sort-desc"===d.sort?" DESC":"")).join(",");u&&u.indexOf("bidRange")>=0&&(u=u.replace("bidRange","priceBidLow")),u&&u.length>0&&p.push(`sortBy=${u}`)}a&&a.length>0&&a.forEach(u=>{const d=encodeURIComponent(u.value);p.push(`${u.param}=${d}`)});let c=!1;return t&&t.length>0&&t.forEach(u=>{u.reports.forEach(d=>{const m=d.filters,f=d.mainFilters;let g=!0;const v=m?Object.keys(m):[],S=f?Object.keys(f):[];S&&v&&S.length>0&&v.length>0?(v.forEach(b=>{if(a&&a.length>0){const k=a.filter(M=>M.param===b&&M.value===m[b]);k&&k[0]||(g=!1)}}),S.forEach(b=>{const k=o.mainFilterItems.filter(M=>M.apiKey===b);k&&k[0]&&k[0].selected.value===d.mainFilters[b]||(g=!1)})):S.length>0&&v.length<=0?S.forEach(b=>{const k=o.mainFilterItems.filter(M=>M.apiKey===b);k&&k[0]&&k[0].selected.value===d.mainFilters[b]||(g=!1)}):v.length>0&&S.length<=0?v.forEach(b=>{const k=a.filter(M=>M.param===b&&M.value===m[b]);k&&k[0]||(g=!1)}):g=!1,a&&a.length>0&&(d.active=g&&Object.keys(d.filters).length===a.length),g&&(u.collapsed=!1,c=!0,n.emit(u))})}),c||n.emit(null),i?p.push(`bulkUploadReportId=${i}`):s.emit(null),p},de=[{title:"App Age",active:!1,collapsed:!1,reports:[{title:"App Age < 3 Months",active:!1,icon:"/assets/images/icon-report.svg",filters:{appAge:"[0,2]"},mainFilters:{region:"GLOBAL"}},{title:"App Age < 6 Months",active:!1,icon:"/assets/images/icon-report.svg",filters:{appAge:"[0,5]"},mainFilters:{region:"GLOBAL"}},{title:"App Age < 12 Months",active:!1,icon:"/assets/images/icon-report.svg",filters:{appAge:"[0,11]"},mainFilters:{region:"GLOBAL"}}]}];var ue=h(90166),A=h(17170),$=h(8269),U=h(60314),me=h(18129),L=h(16262),K=h(84205);let N=(()=>{class o{constructor(){this.clearFilterAnnouncedSource=new K.B,this.clearFilterConfirmedSource=new K.B,this.clearFilterAnnounced$=this.clearFilterAnnouncedSource.asObservable(),this.clearFilterConfirmed$=this.clearFilterConfirmedSource.asObservable()}announceclearFilter(t){this.clearFilterAnnouncedSource.next(t)}confirmclearFilter(t){this.clearFilterConfirmedSource.next(t)}static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275prov=e.jDH({token:o,factory:o.\u0275fac})}}return o})();var Y=h(42534),ge=h(20771),he=h(44796);let W=(()=>{class o{constructor(t){this._userService=t}generateReportConfigs(){const t=[];return y.St.forEach(i=>{const n={key:i.key,title:i.title,viewDetailsText:i.viewDetailsText,mainFilterItems:[],gridHeaders:[],disabled:i.permission&&!this._userService.hasPermission(i.permission),topLevelCategories:i.topLevelCategories,permission:i.permission,importParams:i.importParams};t.push(n)}),console.log("REPORT CONFIGS: ",t),t}
1deselectAllFilters(t){t.topLevelCategories.forEach(i=>{i.groups.forEach(n=>{n.selected=!1,n.items.forEach(s=>{s.selected=!1,s.options.forEach(r=>{r.selected=!1})})})})}selectFilterFromKey(t,i){let n=null;return t.topLevelCategories.forEach(s=>{s.groups.forEach(r=>{r.items.forEach(l=>{l.param===i&&(n=l,r.selected=!0,l.selected=!0)})})}),n}initializeRangeValue(t,i){const n=t.split(",");i.fromValue=Number.parseFloat(n[0]),i.toValue=Number.parseFloat(n[1]),i.rangePercent&&(i.fromValue=Number.parseFloat(Number.parseFloat(""+100*i.fromValue).toFixed(2)),i.toValue=Number.parseFloat(Number.parseFloat(""+100*i.toValue).toFixed(2)))}generateMultipleValues(t,i){let n=[];return n="range"===i.type||"range-ratio"===i.type?t.split("],["):t.indexOf("()")?t.split("()"):t.split(","),n}generateRangeValue(t){let i=null;return i=t.rangePercent&&!t.rangeRatio?`${Number.parseFloat(`${t.fromValue}`).toFixed(2)}% - ${Number.parseFloat(`${t.toValue}`).toFixed(2)}%`:t.labelFormat?`${R.Kh.formatValue(t.fromValue,t.labelFormat).toUpperCase()} - ${R.Kh.formatValue(t.toValue,t.labelFormat).toUpperCase()}`:`${t.fromValue} - ${t.toValue}`,i}static{this.\u0275fac=function(i){return new(i||o)(e.KVO(L.KJ))}}static{this.\u0275prov=e.jDH({token:o,factory:o.\u0275fac})}}return o})();var Z=h(84198),fe=h(89364),_e=h(80436),ve=h(22198),ye=h(60153);function Ce(o,a){1&o&&(e.qex(0),e.EFF(1," Discovery "),e.bVm())}function Se(o,a){if(1&o){const t=e.RV6();e.qex(0),e.j41(1,"a",17),e.bIt("click",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.closeFollowing())}),e.EFF(2,"X"),e.k0s(),e.EFF(3," Watchlist "),e.bVm()}}function be(o,a){1&o&&e.nrm(0,"i",22)}const ke=function(o,a){return{active:o,disabled:a}};function Re(o,a){if(1&o){const t=e.RV6();e.qex(0),e.j41(1,"button",20),e.bIt("click",function(){const s=e.eBV(t).$implicit,r=e.XpG(4);return e.Njj(r.discoveryTypeClick(s))}),e.EFF(2),e.DNE(3,be,1,0,"i",21),e.k0s(),e.bVm()}if(2&o){const t=a.$implicit,i=e.XpG(4);e.R7$(1),e.Y8G("ngClass",e.l_i(3,ke,(null==i.currentConfig?null:i.currentConfig.key)===t.key,null==t?null:t.disabled)),e.R7$(1),e.SpI(" ",t.title," "),e.R7$(1),e.Y8G("ngIf",null==t?null:t.disabled)}}function we(o,a){if(1&o&&(e.j41(0,"div",18),e.DNE(1,Re,4,6,"ng-container",19),e.k0s()),2&o){const t=e.XpG(3);e.R7$(1),e.Y8G("ngForOf",t.reportConfigs)}}function Fe(o,a){if(1&o&&(e.j41(0,"div",13)(1,"div",14),e.DNE(2,Ce,2,0,"ng-container",0),e.DNE(3,Se,4,0,"ng-container",0),e.k0s(),e.DNE(4,we,2,1,"div",15),e.nrm(5,"div",16),e.k0s()),2&o){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",!t.showFollowing),e.R7$(1),e.Y8G("ngIf",t.showFollowing),e.R7$(1),e.Y8G("ngIf",(null==t.reportConfigs?null:t.reportConfigs.length)>0)}}function xe(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",13)(1,"a",17),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.closeImportedFile())}),e.EFF(2,"X"),e.k0s(),e.EFF(3),e.nrm(4,"div",16),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(3),e.SpI(" ",t.importedFileName," ")}}const Me=function(o){return{active:o}};function Pe(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){const s=e.eBV(t).$implicit,r=e.XpG(3).$implicit,l=e.XpG(3);return e.Njj(l.mainFilterOptionClick(r,s))}),e.k0s()}if(2&o){const t=a.$implicit,i=e.XpG(3).$implicit;e.Y8G("ngClass",e.eq3(4,Me,i.selected.value===t.value))("innerHTML",t.label,e.npT)("hidden",null==t?null:t.hidden)("hasStorePermissions",t.permissions)}}function Ie(o,a){if(1&o&&(e.j41(0,"div",31),e.DNE(1,Pe,1,6,"button",32),e.k0s()),2&o){const t=e.XpG(2).$implicit;e.R7$(1),e.Y8G("ngForOf",t.options)}}const De=function(o){return{off:o}};function Oe(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2).$implicit,s=e.XpG(3);return e.Njj(s.mainFilterToggleClick(n))}),e.EFF(1),e.j41(2,"div",35),e.nrm(3,"div",36),e.k0s()()}if(2&o){const t=e.XpG(2).$implicit;e.Y8G("ngClass",e.eq3(2,De,"F"===t.selected.value)),e.R7$(1),e.SpI(" ",t.label," ")}}function Ve(o,a){if(1&o){const t=e.RV6();e.j41(0,"a",41),e.bIt("click",function(){const s=e.eBV(t).$implicit,r=e.XpG(3).$implicit,l=e.XpG(3);return e.Njj(l.mainFilterOptionClick(r,s))}),e.k0s()}if(2&o){const t=a.$implicit;e.Y8G("innerHTML",t.label,e.npT)("hidden",null==t?null:t.hidden)}}function Te(o,a){if(1&o&&(e.j41(0,"div",37)(1,"button",38),e.EFF(2),e.k0s(),e.j41(3,"div",39),e.DNE(4,Ve,1,2,"a",40),e.k0s()()),2&o){const t=e.XpG(2).$implicit;e.R7$(2),e.SpI(" ",t.selected.label," "),e.R7$(2),e.Y8G("ngForOf",t.options)}}function Ee(o,a){if(1&o&&(e.j41(0,"div",27),e.DNE(1,Ie,2,1,"div",28),e.DNE(2,Oe,4,4,"button",29),e.DNE(3,Te,5,2,"div",30),e.k0s()),2&o){const t=e.XpG().$implicit;e.R7$(1),e.Y8G("ngIf","toggle"===t.type),e.R7$(1),e.Y8G("ngIf","slider-toggle"===t.type),e.R7$(1),e.Y8G("ngIf","dropdown"===t.type)}}function je(o,a){if(1&o&&(e.qex(0),e.DNE(1,Ee,4,3,"div",26),e.bVm()),2&o){const t=a.$implicit;e.R7$(1),e.Y8G("ngIf",!t.hidden)}}function Ge(o,a){if(1&o&&(e.j41(0,"div",42),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(1),e.SpI(" Last update as of ",t.currentMonthLabel," ")}}function Ae(o,a){if(1&o&&(e.j41(0,"div",46)(1,"a",47),e.nrm(2,"span",48),e.EFF(3,"\xa0"),e.nrm(4,"span",48),e.EFF(5," not found. "),e.k0s(),e.nrm(6,"div",49),e.j41(7,"a",50),e.EFF(8,"Download"),e.k0s()()),2&o){const t=e.XpG(4);e.R7$(2),e.Y8G("innerHTML",t.notFoundCount,e.npT),e.R7$(2),e.Y8G("innerHTML",t.notFoundConfigKey,e.npT),e.R7$(2),e.Y8G("innerHTML",t.notFoundListHTML,e.npT),e.R7$(1),e.BMQ("href",t.notFoundListUri,e.B4B)}}function $e(o,a){if(1&o&&(e.j41(0,"div",43),e.DNE(1,Ae,9,4,"div",44),e.j41(2,"div",45)(3,"strong"),e.EFF(4,"Total Quota: "),e.k0s(),e.EFF(5),e.nI1(6,"num"),e.k0s(),e.j41(7,"div",45)(8,"strong"),e.EFF(9,"Consumed:"),e.k0s(),e.EFF(10),e.nI1(11,"num"),e.k0s(),e.j41(12,"div",45)(13,"strong"),e.EFF(14,"Remaining:"),e.k0s(),e.EFF(15),e.nI1(16,"num"),e.k0s()()),2&o){const t=e.XpG(3);e.R7$(1),e.Y8G("ngIf",t.notFoundCount>0),e.R7$(4),e.SpI("\xa0",e.bMT(6,4,t.currentQuota),"\xa0 "),e.R7$(5),e.SpI("\xa0",e.bMT(11,6,t.consumedQuota),"\xa0 "),e.R7$(5),e.SpI("\xa0",e.bMT(16,8,t.remainingQuota),"\xa0 ")}}function Ne(o,a){if(1&o&&(e.j41(0,"div")(1,"div",23),e.DNE(2,je,2,1,"ng-container",19),e.k0s(),e.DNE(3,Ge,2,1,"div",24),e.DNE(4,$e,17,10,"div",25),e.k0s()),2&o){const t=e.XpG(2);e.ZvI("main-filters-cont ",null==t.currentConfig?null:t.currentConfig.key,""),e.R7$(2),e.Y8G("ngForOf",null==t.currentConfig?null:t.currentConfig.mainFilterItems),e.R7$(1),e.Y8G("ngIf",!t.notAllowed&&t.currentMonthLabel&&!t.importedFileName),e.R7$(1),e.Y8G("ngIf",t.importedFileName)}}function Be(o,a){if(1&o){const t=e.RV6();e.j41(0,"app-side-filters",75),e.bIt("closeMobileNavClick",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.toggleMobileSideNav())})("clearAllFiltersClick",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.clearAllSelectedFilters())})("followingClickAction",function(n){e.eBV(t);const s=e.XpG(3);return e.Njj(s.followingClick(n))}),e.k0s()}if(2&o){const t=e.XpG(3);e.Y8G("loadingData",t.loadingData)("facets",t.facets)("appGlobalSearchParam",t.appGlobalSearchParam)("bulkUploadReportId",t.bulkUploadReportId)("showFollowing",t.showFollowing)("currentConfig",t.currentConfig)("currentCannedReportUpdater",t.currentCannedReportUpdater)("importedFileNameUpdater",t.importedFileNameUpdater)("facetsUpdater",t.facetsUpdater)("routeFilterValuesUpdater",t.routeFilterValuesUpdater)("foundFiltersUpdater",t.foundFiltersUpdater)("searchInputValueUpdater",t.searchInputValueUpdater)("selectedFilterValues",t.selectedFilterValues)("cannedreports",t.cannedreports)("followingCount",t.followingCount)("routeRefreshUpdater",t.routeRefreshUpdater)("importStatusInvoker",t.importStatusInvoker)("refreshDataInvoker",t.refreshDataInvoker)("clearAp
1pGlobalSearchInputInvoker",t.clearAppGlobalSearchInputInvoker)("onDropdownFilterSelectInvoker",t.onDropdownFilterSelectInvoker)("showOptionsInvoker",t.showOptionsInvoker)("importListInvoker",t.importListInvoker)("presetsListInvoker",t.presetsListInvoker)("prepareFiltersInvoker",t.prepareFiltersInvoker)}}function Ue(o,a){1&o&&(e.j41(0,"div",76),e.EFF(1,"none"),e.k0s())}function Le(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",77),e.nrm(1,"span",48),e.EFF(2,":\xa0"),e.nrm(3,"span",48),e.j41(4,"a",78),e.bIt("click",function(){const s=e.eBV(t).$implicit,r=e.XpG(3);return e.Njj(r.removedSelectedFilterValue(s,r.event))}),e.nrm(5,"i",79),e.k0s()()}if(2&o){const t=a.$implicit;e.R7$(1),e.Y8G("innerHTML",t.label,e.npT),e.R7$(2),e.Y8G("innerHTML",t.valueLabel,e.npT)}}function Ye(o,a){if(1&o&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"num"),e.k0s()),2&o){const t=e.XpG(3);e.R7$(1),e.SpI("",e.bMT(2,1,t.totalCount),"\xa0")}}function Xe(o,a){1&o&&(e.j41(0,"span"),e.EFF(1,"No results found."),e.k0s())}function Qe(o,a){1&o&&(e.qex(0),e.EFF(1,"following\xa0"),e.bVm())}function Ke(o,a){1&o&&(e.qex(0),e.EFF(1,"app"),e.bVm())}function He(o,a){1&o&&(e.qex(0),e.EFF(1,"domain"),e.bVm())}function ze(o,a){1&o&&(e.qex(0),e.EFF(1,"app"),e.bVm())}function qe(o,a){1&o&&(e.qex(0),e.EFF(1,"s"),e.bVm())}function Je(o,a){if(1&o&&(e.j41(0,"span",80),e.DNE(1,Qe,2,0,"ng-container",0),e.DNE(2,Ke,2,0,"ng-container",0),e.DNE(3,He,2,0,"ng-container",0),e.DNE(4,ze,2,0,"ng-container",0),e.DNE(5,qe,2,0,"ng-container",0),e.k0s()),2&o){const t=e.XpG(3);e.R7$(1),e.Y8G("ngIf",t.showFollowing),e.R7$(1),e.Y8G("ngIf","apps"===(null==t.currentConfig?null:t.currentConfig.key)),e.R7$(1),e.Y8G("ngIf","domains"===(null==t.currentConfig?null:t.currentConfig.key)),e.R7$(1),e.Y8G("ngIf","ctv"===(null==t.currentConfig?null:t.currentConfig.key)),e.R7$(1),e.Y8G("ngIf",t.totalCount>1)}}const ee=function(o){return{active:o}};function We(o,a){if(1&o){const t=e.RV6();e.qex(0),e.j41(1,"div",81)(2,"button",20),e.bIt("click",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.reportViewTypeClick("dashboard"))}),e.EFF(3,"Summary "),e.k0s(),e.j41(4,"button",20),e.bIt("click",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.reportViewTypeClick("list"))}),e.EFF(5,"List "),e.k0s()(),e.j41(6,"button",82),e.bIt("click",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.importCSVclick())}),e.nrm(7,"div",83)(8,"img",84),e.j41(9,"span",85),e.EFF(10,"CSV Import"),e.k0s()(),e.nrm(11,"div",83),e.j41(12,"input",86,87),e.bIt("change",function(n){e.eBV(t);const s=e.XpG(3);return e.Njj(s.importCSV(n))}),e.k0s(),e.j41(14,"div",88)(15,"button",89),e.bIt("click",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.showSavePresetClick())}),e.nrm(16,"img",90),e.EFF(17," Save as Preset "),e.k0s(),e.nrm(18,"div",83),e.k0s(),e.bVm()}if(2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("ngClass",e.eq3(9,ee,"dashboard"===t.reportViewType)),e.R7$(2),e.Y8G("ngClass",e.eq3(11,ee,"list"===t.reportViewType)),e.R7$(2),e.Y8G("hidden",t.showImportProgress)("disabled",t.isComputingQuota),e.R7$(1),e.Y8G("hidden",!t.isComputingQuota),e.R7$(1),e.Y8G("hidden",t.isComputingQuota),e.R7$(3),e.Y8G("hidden",!t.importing),e.R7$(3),e.Y8G("hidden",t.savingPreset||t.selectedFilterValues.length<=0),e.R7$(4),e.Y8G("hidden",!t.importing)}}function Ze(o,a){if(1&o&&(e.qex(0),e.nrm(1,"app-app-summary-view",91),e.bVm()),2&o){const t=e.XpG(3);e.R7$(1),e.Y8G("currentConfig",t.currentConfig)("facets",t.facets)("filterStrings",t.filterStrings)("loadingData",t.loadingData)}}function et(o,a){if(1&o){const t=e.RV6();e.qex(0),e.j41(1,"app-app-list-view",92),e.bIt("loadMoreClick",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.loadMore())})("unfollowItem",function(n){e.eBV(t);const s=e.XpG(3);return e.Njj(s.unfollowItem(n))})("toggleSortClick",function(n){e.eBV(t);const s=e.XpG(3);return e.Njj(s.toggleSort(n))})("appGlobalSearch",function(n){e.eBV(t);const s=e.XpG(3);return e.Njj(s.appGlobalSearch(n))})("clearAppGlobalSearch",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.clearAppGlobalSearch())}),e.k0s(),e.bVm()}if(2&o){const t=e.XpG(3);e.R7$(1),e.Y8G("reportViewType",t.reportViewType)("showFollowing",t.showFollowing)("currentConfig",t.currentConfig)("showDetail
1s",t.showDetails)("gridData",t.gridData)("showLoadMore",t.showLoadMore)("showLoadingMore",t.showLoadingMore)("appGlobalSearchParamModel",t.appGlobalSearchParamModel)("isFreemium",t.isFreemium)("notificationSettings",t.notificationSettings)}}function tt(o,a){if(1&o){const t=e.RV6();e.qex(0),e.j41(1,"app-no-following",93),e.bIt("closeFollowingClick",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.closeFollowing())}),e.k0s(),e.bVm()}if(2&o){const t=e.XpG(3);e.R7$(1),e.Y8G("currentConfig",t.currentConfig)}}const nt=function(o,a){return{"hide-advanced-filters":o,"watchlist-view":a}},it=function(o,a){return{loading:o,loadingData:a}},ot=function(o){return{invisible:o}},st=function(o,a){return{"fa-check-square-o":o,"fa-square-o":a}};function rt(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",51),e.DNE(1,Be,1,24,"app-side-filters",52),e.j41(2,"div",53),e.nrm(3,"div",54),e.j41(4,"div",55)(5,"div",56)(6,"div",57),e.EFF(7,"Filters:"),e.k0s(),e.DNE(8,Ue,2,0,"div",58),e.DNE(9,Le,6,2,"div",59),e.j41(10,"a",60),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.clearAllSelectedFilters())}),e.EFF(11,"Clear All"),e.k0s()(),e.j41(12,"div",61)(13,"div",62)(14,"h5",63)(15,"span",64),e.DNE(16,Ye,3,3,"span",0),e.DNE(17,Xe,2,0,"span",0),e.DNE(18,Je,6,5,"span",65),e.k0s(),e.nrm(19,"div",66),e.j41(20,"button",67),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.toggleMobileSideNav())}),e.nrm(21,"img",68),e.k0s()()(),e.j41(22,"div",69)(23,"div",70)(24,"div",71)(25,"a",72),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);
1return e.Njj(n.showDetails=!n.showDetails)}),e.nrm(26,"i",73),e.EFF(27),e.k0s()(),e.DNE(28,We,19,13,"ng-container",0),e.nrm(29,"app-discovery-download-csv",74),e.k0s()()(),e.DNE(30,Ze,2,4,"ng-container",0),e.DNE(31,et,2,10,"ng-container",0),e.DNE(32,tt,2,1,"ng-container",0),e.k0s()()()}if(2&o){const t=e.XpG(2);e.Y8G("ngClass",e.l_i(33,nt,t.hideAdvancedFilters,t.showFollowing)),e.R7$(1),e.Y8G("ngIf",null==t.currentConfig?null:t.currentConfig.mainFilterItems),e.R7$(3),e.Y8G("ngClass",e.l_i(36,it,t.loading,t.loadingData)),e.R7$(4),e.Y8G("ngIf",!t.selectedFilterValues||(null==t.selectedFilterValues?null:t.selectedFilterValues.length)<=0),e.R7$(1),e.Y8G("ngForOf",t.selectedFilterValues),e.R7$(1),e.Y8G("hidden",!t.selectedFilterValues||(null==t.selectedFilterValues?null:t.selectedFilterValues.length)<=0),e.R7$(5),e.Y8G("hidden",t.loading||t.loadingData),e.R7$(1),e.Y8G("ngIf",t.totalCount>0),e.R7$(1),e.Y8G("ngIf",0===t.totalCount&&!t.showFollowing),e.R7$(1),e.Y8G("ngIf",t.totalCount>0),e.R7$(6),e.Y8G("ngClass",e.eq3(39,ot,!("list"===t.reportViewType&&t.totalCount>0))),e.R7$(2),e.Y8G("ngClass",e.l_i(41,st,t.showDetails,!t.showDetails)),e.R7$(1),e.SpI(" ",null==t.currentConfig?null:t.currentConfig.viewDetailsText," "),e.R7$(1),e.Y8G("ngIf",!t.showFollowing),e.R7$(1),e.Y8G("totalCount",t.totalCount)("showFollowing",t.showFollowing)("currentConfig",t.currentConfig)("appGlobalSearchParam",t.appGlobalSearchParam)("downloadButtonDisabled",t.downloadButtonDisabled)("downloadColumns",t.downloadColumns)("importedFileName",t.importedFileName)("canDownloadCSV",t.canDownloadCSV)("hideUnfilteredDownloadCsv",t.hideUnfilteredDownloadCsv)("selectedFilterValues",t.selectedFilterValues)("cannedreports",t.cannedreports)("currentCannedReportUpdater",t.currentCannedReportUpdater)("importedFileNameUpdater",t.importedFileNameUpdater)("followingCount",t.followingCount)("followIdMapping",t.followIdMapping)("watchlistTypeMapping",t.watchlistTypeMapping),e.R7$(1),e.Y8G("ngIf",t.totalCount>0&&"dashboard"===t.reportViewType),e.R7$(1),e.Y8G("ngIf","list"===t.reportViewType&&!(t.showFollowing&&t.gridData.length<=0)),e.R7$(1),e.Y8G("ngIf",t.showFollowing&&t.gridData.length<=0&&!t.loadingData)}}function at(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",94)(1,"div",95)(2,"a",96),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return n.showUploadSuccess=!1,e.Njj(n.uploadingCsv=!1)}),e.nrm(3,"i",97),e.k0s(),e.j41(4,"p",98),e.EFF(5,"CSV import was successful and has been queued for processing."),e.k0s(),e.j41(6,"p",99),e.EFF(7,"Once the results are generated we will send an email to the email address associated with this account."),e.k0s(),e.j41(8,"div",100)(9,"button",101),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return n.showUploadSuccess=!1,e.Njj(n.uploadingCsv=!1)})("keydown",function(){e.eBV(t);const n=e.XpG(2);return n.showUploadSuccess=!1,e.Njj(n.uploadingCsv=!1)}),e.EFF(10," OK "),e.k0s()()()()}}function lt(o,a){if(1&o&&(e.j41(0,"p",104),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(1),e.JRh(t.errorMessage)}}function pt(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",94)(1,"div",102)(2,"a",96),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return n.showServerError=!1,e.Njj(n.uploadingCsv=!1)}),e.nrm(3,"i",97),e.k0s(),e.j41(4,"p",98),e.EFF(5,"Importing operation failed."),e.k0s(),e.DNE(6,lt,2,1,"p",103),e.j41(7,"p",99),e.EFF(8," Contact [email protected]."),e.k0s(),e.j41(9,"div",100)(10,"button",101),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return n.showServerError=!1,e.Njj(n.uploadingCsv=!1)})("keydown",function(){e.eBV(t);const n=e.XpG(2);return n.showServerError=!1,e.Njj(n.uploadingCsv=!1)}),e.EFF(11," OK "),e.k0s()()()()}if(2&o){const t=e.XpG(2);e.R7$(6),e.Y8G("ngIf",""!=t.errorMessage)}}function ct(o,a){if(1&o&&(e.j41(0,"p",98),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(1),e.E5c(" Quota(",t.quotaCount,") exceeded for the duration ",t.quotaStartDate," to ",t.quotaEndDate,".")}}function dt(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",94)(1,"div",105)(2,"a",96),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return n.showQuotaExceeded=!1,e.Njj(n.uploadingCsv=!1)}),e.nrm(3,"i",97),e.k0s(),e.DNE(4,ct,2,3,"p",106),e.j41(5,"p",99),e.EFF(6,"Please contact your sales representative for more details."),e.k0s(),e.j41(7,"div",100)(8,"button",101),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.contact())})("keydown",function(){e.eBV(t);const n=e.XpG(2);return n.showQuotaExceeded=!1,e.Njj(n.uploadingCsv=!1)}),e.EFF(9,"Contact Sales"),e.k0s()()()()}if(2&o){const t=e.XpG(2);e.R7$(4),e.Y8G("ngIf",t.quotaCount&&t.quotaStartDate&&t.quotaEndDate)}}function ut(o,a){1&o&&e.nrm(0,"div",107)}function mt(o,a){1&o&&(e.j41(0,"div"),e.nrm(1,"i",109)(2,"br"),e.EFF(3," Loading data..."),e.nrm(4,"br"),e.EFF(5,"Please wait on this page, or save the URL,"),e.nrm(6,"br"),e.EFF(7,"and check back in approximately 3-30 minutes."),e.nrm(8,"br"),e.EFF(9,"This URL will be valid for 7 days. "),e.k0s())}function gt(o,a){if(1&o){const t=e.RV6();e.j41(0,"div"),e.EFF(1),e.j41(2,"div")(3,"a",110),e.bIt("click",function(){e.eBV(t);const n=e.XpG(3);return e.Njj(n.goBackToDiscovery())}),e.EFF(4),e.k0s()()()}if(2&o){const t=e.XpG(3);e.R7$(1),e.SpI(" ",t.importErrorMessage," "),e.R7$(3),e.JRh(t.importErrorButtonText)}}function ht(o,a){if(1&o&&(e.j41(0,"div",108),e.DNE(1,mt,10,0,"div",0),e.DNE(2,gt,5,2,"div",0),e.k0s()),2&o){const t=e.XpG(2);e.R7$(1),e.Y8G("ngIf",!t.importErrorMessage),e.R7$(1),e.Y8G("ngIf",t.importErrorMessage)}}function ft(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",111)(1,"div",105)(2,"a",96),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.showSavePreset=!1)}),e.nrm(3,"i",97),e.k0s(),e.j41(4,"p",98),e.EFF(5,"Title"),e.k0s(),e.j41(6,"p",99)(7,"input",112),e.bIt("ngModelChange",function(n){e.eBV(t);const s=e.XpG(2);return e.Njj(s.savedPresetTitle=n)})("keydown.enter",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.savePreset())}),e.k0s()(),e.j41(8,"div",100)(9,"button",113),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.savePreset())}),e.EFF(10,"Save as Preset"),e.k0s()()()()}if(2&o){const t=e.XpG(2);e.R7$(7),e.Y8G("ngModel",t.savedPresetTitle)}}function _t(o,a){if(1&o){const t=e.RV6();e.qex(0),e.j41(1,"p",124)(2,"label",125)(3,"input",126),e.bIt("change",function(n){const r=e.eBV(t).$implicit,l=e.XpG(2).$implicit,p=e.XpG(3);return e.Njj(p.updateImportParam(p.currentConfig,l,r,n.target.checked))}),e.nI1(4,"arrayContainsValue"),e.k0s(),e.EFF(5),e.k0s()(),e.bVm()}if(2&o){const t=a.$implicit,i=e.XpG(2).$implicit,n=e.XpG(3);e.R7$(1),e.Y8G("hasStorePermissions",t.permissions),e.R7$(2),e.Y8G("checked",e.i5U(4,3,n.selectedImportParams[n.currentConfig.key][i.key],t.value)),e.R7$(2),e.SpI(" ",t.label," ")}}function vt(o,a){if(1&o&&(e.qex(0),e.DNE(1,_t,6,6,"ng-container",19),e.bVm()),2&o){const t=e.XpG().$implicit;e.R7$(1),e.Y8G("ngForOf",t.options)}}function yt(o,a){if(1&o){const t=e.RV6();e.j41(0,"p",128)(1,"label",125)(2,"input",129),e.bIt("click",function(){const s=e.eBV(t).$implicit,r=e.XpG(2).$implicit,l=e.XpG(3);return e.Njj(l.updateImportParam(l.currentConfig,r,s))}),e.nI1(3,"arrayContainsValue"),e.k0s(),e.EFF(4),e.k0s()()}if(2&o){const t=a.$implicit,i=e.XpG(2).$implicit,n=e.XpG(3);e.R7$(2),e.FS9("id","option"+t.label),e.Y8G("checked",e.i5U(3,3,n.selectedImportParams[n.currentConfig.key][i.key],t.value)),e.R7$(2),e.SpI(" ",t.label," ")}}function Ct(o,a){if(1&o&&(e.qex(0),e.DNE(1,yt,5,6,"p",127),e.bVm()),2&o){const t=e.XpG().$implicit;e.R7$(1),e.Y8G("ngForOf",t.options)}}function St(o,a){if(1&o&&(e.j41(0,"div",122)(1,"span",123),e.EFF(2),e.k0s(),e.DNE(3,vt,2,1,"ng-container",0),e.DNE(4,Ct,2,1,"ng-container",0),e.k0s()),2&o){const t=a.$implicit;e.R7$(2),e.JRh(t.label),e.R7$(1),e.Y8G("ngIf","checkbox"===t.type),e.R7$(1),e.Y8G("ngIf","radio"===t.type)}}function bt(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",130)(1,"label",125)(2,"input",131),e.bIt("ngModelChange",function(n){e.eBV(t);const s=e.XpG(3);return e.Njj(s.importCsvRemoveDuplicates=n)}),e.k0s(),e.EFF(3," Remove Duplicates "),e.k0s()()}if(2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("ngModel",t.importCsvRemoveDuplicates)}}function kt(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",114)(1,"div",102)(2,"a",96),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.showImportParam=!1)}),e.nrm(3,"i",97),e.k0s(),e.j41(4,"p",98),e.EFF(5),e.k0s(),e.j41(6,"div",115),e.DNE(7,St,5,3,"div",116),e.k0s(),e.DNE(8,bt,4,1,"div",117),e.j41(9,"div",118)(10,"a",119),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.showImportParam=!1)}),e.EFF(11,"Cancel"),e.k0s(),e.j41(12,"button",120),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.toggleImportOptions(!1))}),e.EFF(13,"Deselect All"),e.k0s(),e.j41(14,"button",121),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.proceedWithImport())}),e.EFF(15,"Proceed with Import"),e.k0s()()()()}if(2&o){const t=e.XpG(2);e.R7$(5),e.SpI("Import Filter for ",t.currentConfig.title,""),e.R7$(2),e.Y8G("ngForOf",t.currentConfig.importParams),e.R7$(1),e.Y8G("ngIf","ctv"==t.currentConfig.key)}}function Rt(o,a){if(1&o&&(e.qex(0),e.j41(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),e.DNE(
15,Fe,6,3,"div",5),e.DNE(6,xe,5,1,"div",5),e.DNE(7,Ne,5,6,"div",6),e.k0s()()()(),e.DNE(8,rt,33,44,"div",7),e.DNE(9,at,11,0,"div",8),e.DNE(10,pt,12,1,"div",8),e.DNE(11,dt,10,1,"div",8),e.DNE(12,ut,1,0,"div",9),e.DNE(13,ht,3,2,"div",10),e.DNE(14,ft,11,1,"div",11),e.DNE(15,kt,16,3,"div",12),e.bVm()),2&o){const t=e.XpG();e.R7$(5),e.Y8G("ngIf",!t.importedFileName),e.R7$(1),e.Y8G("ngIf",t.importedFileName),e.R7$(1),e.Y8G("ngIf",!t.showFollowing),e.R7$(1),e.Y8G("ngIf",!t.notAllowed),e.R7$(1),e.Y8G("ngIf",t.showUploadSuccess),e.R7$(1),e.Y8G("ngIf",t.showServerError),e.R7$(1),e.Y8G("ngIf",t.showQuotaExceeded),e.R7$(1),e.Y8G("ngIf",t.showImportProgress),e.R7$(1),e.Y8G("ngIf",t.showImportProgress),e.R7$(1),e.Y8G("ngIf",t.showSavePreset),e.R7$(1),e.Y8G("ngIf",t.showImportParam)}}function wt(o,a){if(1&o){const t=e.RV6();e.qex(0),e.j41(1,"div",132)(2,"div",2)(3,"div",133)(4,"h3",134),e.EFF(5,"Discovery"),e.k0s()()(),e.j41(6,"div",2)(7,"div",135)(8,"p",136),e.EFF(9,"Building a high quality, low fraud platform across inventory sources is challenging. Our Discovery tool helps you build your inclusion and exclusion lists with the ability to filter across 500 metrics, like app details, traffic and brand safely. These exclusive Mobile App, Domain and CTV insights are useful to craft a scaled platform that meets your marketing needs. "),e.k0s(),e.j41(10,"button",137),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n._eventService.openScheduleADemo())}),e.EFF(11,"Schedule a Demo!"),e.k0s()(),e.j41(12,"div",138),e.nrm(13,"img",139),e.k0s()(),e.j41(14,"div",140)(15,"div",135)(16,"h4",141),e.EFF(17," Media Ratings Terminal By the Numbers "),e.k0s(),e.j41(18,"p",136),e.EFF(19,"Pixalate\u2019s Discovery brings you unique, granular Mobile App, Domains and CTV ratings. We bring together 3rd party sources, such as app store profiles or registration data, along with Pixalate analytics, like IVT levels and share of voice to give you supply quality ratings for secure platform growth. "),e.k0s(),e.j41(20,"button",137),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n._eventService.openScheduleADemo())}),e.EFF(21,"Schedule a Demo!"),e.k0s()(),e.j41(22,"div",135)(23,"div",142)(24,"div",143)(25,"div",144),e.nrm(26,"i",145),e.k0s(),e.j41(27,"div",146)(28,"div",147),e.EFF(29,"5M+"),e.k0s(),e.j41(30,"div",148),e.EFF(31,"Number of Mobile"),e.nrm(32,"br"),e.EFF(33,"Apps Monitored"),e.k0s()()(),e.j41(34,"div",143)(35,"div",144),e.nrm(36,"i",149),e.k0s(),e.j41(37,"div",146)(38,"div",147),e.EFF(39,"550K+"),e.k0s(),e.j41(40,"div",148),e.EFF(41,"Number of Domains"),e.nrm(42,"br"),e.EFF(43,"Monitored"),e.k0s()()(),e.j41(44,"div",143)(45,"div",144),e.nrm(46,"i",150),e.k0s(),e.j41(47,"div",146)(48,"div",147),e.EFF(49,"40K+"),e.k0s(),e.j41(50,"div",148),e.EFF(51,"Number of CTV Apps"),e.nrm(52,"br"),e.EFF(53,"Monitored"),e.k0s()()(),e.j41(54,"div",143)(55,"div",144),e.nrm(56,"i",151),e.k0s(),e.j41(57,"div",146)(58,"div",147),e.EFF(59,"500+"),e.k0s(),e.j41(60,"div",148),e.EFF(61,"Number of Metrics"),e.nrm(62,"br"),e.EFF(63,"Monitored"),e.k0s()()()()()(),e.j41(64,"div",140)(65,"div",133)(66,"h4",141),e.EFF(67," Filter across 500 metrics "),e.k0s()()(),e.j41(68,"div",152)(69,"div",153)(70,"p",136),e.EFF(71," Our comprehensive set of data points and filters allow you to create the insights you need, including: "),e.k0s()()(),e.j41(72,"div",152)(73,"div",154)(74,"div",155),e.nrm(75,"i",145),e.k0s()(),e.j41(76,"div",156)(77,"h5"),e.EFF(78," Mobile Apps "),e.k0s(),e.j41(79,"div",2)(80,"div",157)(81,"h6"),e.EFF(82,"Google Play"),e.k0s(),e.j41(83,"p"),e.EFF(84," App Details, Adult Content, Violence Content, High IVT, No Privacy Policy, No Ads, AOnymous (Private Domain), Play Store Categories, IAB Categories, Risk, Permission Risk, COPPA Violation Risk, Ad Fraud Risk, Brand Safety Risk, Content Brand Safety Rating, Marketing Compliance Risk, Developer Details, Ad Capabilities, App Performance, Reach, Trusted Seller, Viewabiltiy(%) and more... "),e.k0s()(),e.j41(85,"div",157)(86,"h6"),e.EFF(87,"Apple App Store"),e.k0s(),e.j41(88,"p"),e.EFF(89," App Details, Adult Content, Violence Content, High IVT, No Privacy Policy, No Ads, AOnymous (Private Domain), App Store Categories, IAB Categories, Risk,
1COPPA Violation Risk, Ad Fraud Risk, Brand Safety Risk, Content Brand Safety Rating, Marketing Compliance Risk, Developer Details, Ad Capabilities, App Performance, Reach, Trusted Seller, Viewabiltiy(%) and more... "),e.k0s()()()()(),e.j41(90,"div",152)(91,"div",154)(92,"div",155),e.nrm(93,"i",149),e.k0s()(),e.j41(94,"div",156)(95,"h5"),e.EFF(96," Domains "),e.k0s(),e.j41(97,"p"),e.EFF(98," Domain Details, IAB Categories, Risk, IVT%, Publisher Details, Ad Capabilities, CTR, Bid Range, Day of the Week, Device, Geo, Privacy Policy, Terms and Conditions, Trusted Seller, Top Level Domain, Top Traffic, Source Traffic, Viewability and more... "),e.k0s()()(),e.j41(99,"div",152)(100,"div",154)(101,"div",155),e.nrm(102,"i",150),e.k0s()(),e.j41(103,"div",156)(104,"h5"),e.EFF(105," Connected TV "),e.k0s(),e.j41(106,"div",2)(107,"div",157)(108,"h6"),e.EFF(109,"Roku"),e.k0s(),e.j41(110,"p"),e.EFF(111," App Age, Roku Store Categories, Risk, App Age Risk, SSAI%, Transparent SSAI%, Ad Fraud Risk, Brand Safety Risk, Brand Safety Content Risk, Marketing Compliance Risk, Developer Details, Ads Detected, App Age, Keywords, Parental Hint, Revenue Sources, CVAA Compliant, Trusted Seller, Ad Capabilities, Channels, Geo, Reach and more\u2026 "),e.k0s(),e.j41(112,"button",137),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n._eventService.openScheduleADemo())}),e.EFF(113,"Schedule a Demo!"),e.k0s()(),e.j41(114,"div",157)(115,"h6"),e.EFF(116,"Fire TV"),e.k0s(),e.j41(117,"p"),e.EFF(118," App Age, Fire TV Store Categories, Risk, App Age Risk, SSAI%, Transparent SSAI%, Ad Fraud Risk, Brand Safety Risk, Brand Safety Content Risk, Marketing Compliance Risk, Developer Details, Ads Detected, App Age, Keywords, Parental Hint, Revenue Sources, CVAA Compliant, Trusted Seller, Ad Capabilities, Channels, Reach and more\u2026 "),e.k0s()(),e.j41(119,"div",157)(120,"h6"),e.EFF(121,"Samsung"),e.k0s(),e.j41(122,"p"),e.EFF(123," App Age, Samsung Store Categories, Risk, App Age Risk, SSAI%, Transparent SSAI%, Ad Fraud Risk, Brand Safety Risk, Brand Safety Content Risk, Marketing Compliance Risk, Developer Details, Ads Detected, App Age, Keywords, Parental Hint, Revenue Sources, CVAA Compliant, Trusted Seller, Ad Capabilities, Channels, Reach and more\u2026 "),e.k0s()(),e.j41(124,"div",157)(125,"h6"),e.EFF(126,"tvOS"),e.k0s(),e.j41(127,"p"),e.EFF(128," App Age, tvOS Store Categories, Risk, App Age Risk, SSAI%, Transparent SSAI%, Ad Fraud Risk, Brand Safety Risk, Brand Safety Content Risk, Marketing Compliance Risk, Developer Details, Ads Detected, App Age, Keywords, Parental Hint, Revenue Sources, CVAA Compliant, Trusted Seller, Ad Capabilities, Channels, Reach and more\u2026 "),e.k0s()(),e.j41(129,"div",157)(130,"h6"),e.EFF(131,"LG TV"),e.k0s(),e.j41(132,"p"),e.EFF(133," App Age, LG TV Store Categories, Risk, App Age Risk, SSAI%, Transparent SSAI%, Ad Fraud Risk, Brand Safety Risk, Brand Safety Content Risk, Marketing Compliance Risk, Developer Details, Ads Detected, App Age, Keywords, Parental Hint, Revenue Sources, CVAA Compliant, Trusted Seller, Ad Capabilities, Channels, Reach and more\u2026 "),e.k0s()()()()(),e.j41(134,"div",140)(135,"div",135)(136,"h5"),e.
1EFF(137,"Customize Your Lists"),e.k0s(),e.j41(138,"p",136),e.EFF(139," Pixalate\u2019s Discovery has multiple presets to help you get started. You also have the ability to create custom filters based on our 500 metrics and save those as your own presets, as well as import CSV from existing inventory sources to match and see your risk factors. You can also download your created list in a CSV format. "),e.k0s(),e.j41(140,"button",137),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n._eventService.openScheduleADemo())}),e.EFF(141,"Schedule a Demo!"),e.k0s()(),e.j41(142,"div",138),e.nrm(143,"img",158),e.k0s()()(),e.bVm()}}var Ft=h(81749);const te="pix-imported-csv-columns",ne="pix-imported-csv-columns-domains";let H=(()=>{class o{get isAnonymous(){return this._userService.isAnonymous()}get isFreemium(){return this._userService.isFreemium()}get isEnterprise(){return this._userService.isEnterprise()}constructor(t,i,n,s,r,l,p,c,u,d,m,f,g,v,S,b,k,M){this._route=t,this._router=i,this._appService=n,this._domainService=s,this._ctvService=r,this._quotaService=l,this._userService=p,this._clearFilterService=c,this._eventService=u,this._tracking=d,this._auth=m,this._discoveryService=f,this._watchlistService=g,this._notificationService=v,this._title=S,this._appnavService=b,this._changeDetector=k,this.pageMeta=M,this.tabbedGroups=[],this.gridData=[],this.selectedFilterValues=[],this.isInited=!1,this.noFacets=!1,this.facets={},this.reportViewType="dashboard",this.topLevelCategories=I.r,this.datePipe=new _.vh("en-US"),this.urlfixPipe=new ue.f,this.importStartMap=new Map,this.importErrorButtonText="OK",this.maxTimeout=18e5,this.downloadColumns=new Array(0),this.currentCannedReportUpdater=new e.bkB,this.importedFileNameUpdater=new e.bkB,this.facetsUpdater=new e.bkB,this.routeFilterValuesUpdater=new e.bkB,this.foundFiltersUpdater=new e.bkB,this.searchInputValueUpdater=new e.bkB,this.routeRefreshUpdater=new e.bkB,this.importStatusInvoker=new e.bkB,this.refreshDataInvoker=new e.bkB,this.clearAppGlobalSearchInputInvoker=new e.bkB,this.onDropdownFilterSelectInvoker=new e.bkB,this.showOptionsInvoker=new e.bkB,this.importListInvoker=new e.bkB,this.presetsListInvoker=new e.bkB,this.prepareFiltersInvoker=new e.bkB,this.watchlistTypeMapping={apps:"app",domains:"domain",ctv:"ctv"},this.followIdMapping={apps:"appId",domains:"adDomain",ctv:"appId"},this.selectedImportParams={ctv:{},apps:{},domains:{}},this._onAuthStateChange=this._auth.onAuthStateChange.subscribe(P=>this.onAuthStateChange(P))}ngOnInit(){this.reportConfigs=this._discoveryService.generateReportConfigs();const t=this._route.snapshot.params.viewtype;if(t&&(this.reportViewType=t),this.hideUnfilteredDownloadCsv="pbm"===this._userService.getSessionScope(),this.currentCannedReportUpdater.subscribe(i=>{this.currentCannedReport=i}),this.importedFileNameUpdater.subscribe(i=>{this.importedFileName=i}),this.facetsUpdater.subscribe(i=>{this.facets[i.param]=i.mapping}),this.routeFilterValuesUpdater.subscribe(i=>{this.routeWithFilterValues(i)}),this.routeRefreshUpdater.subscribe(i=>{this.routeRefresh(null!=i?i.additionalQueryParams:{})}),this.importStatusInvoker.subscribe(i=>{this.getImportStatus(i)}),this.refreshDataInvoker.subscribe(i=>{this.refreshData()}),this.clearAppGlobalSearchInputInvoker.subscribe(i=>{this.appGlobalSearchParamModel=null,this.appGlobalSearchParam=null}),this.isFreemium)this._eventService.showPopupEvent.emit(!0);else if(this.isEnterprise){const i=this._route.snapshot.params.discoverytype,n=y.St.filter(s=>s.key===i)[0];if(n)if(this._userService.hasPermission(n.permission))this.discoveryTypeClick(n),this.autoHidePtiRankColumn();else{const s=y.St.filter(r=>r.key!==i)[0];this._userService.hasPermission(s.permission)?(this.discoveryTypeClick(s),this.autoHidePtiRankColumn()):(this._eventService.showPopupEvent.emit(!0),this._userService.appEnabled()||this._userService.domainEnabled()?this._router.navigate(["/insight"]):this._userService.rankingsEnabled()&&this._router.navigate(["/rankings"]))}else this._router.navigate(["/discovery"],{replaceUrl:!0,queryParams:this._route.snapshot.queryParams})}this._eventService.watchlistUpdate.subscribe(i=>{this.updateNumFollowing(),this.gridData=[],this.loadDiscoveryData(),this.computeQuotaUsage("",!0).finally()}),this._notificationService.getAllNotificationSettings().then(i=>{this.notificationSettings=i}),this.updatePageTitle(),this._appnavService.setSelected("nav-discovery"),this._appnavService.setIsMrtSearch(void 0),this._router.events.subscribe(i=>{i instanceof w.wF&&this.refreshData()}),this.mobileBreakPoint=window.matchMedia("(max-width: 576px)"),this.loadFilterStats()}ngOnDestroy(){this._onAuthStateChange&&this._onAuthStateChange.unsubscribe()}onAuthStateChange(t){this._changeDetector.detectChanges()}initializeQueryFilters(){if(this.currentConfig){const t=[];t.push(this.currentConfig),this._discoveryService.deselectAllFilters(t[0]),this.selectedFilterValues=[];const i=this._route.snapshot.queryParams;
1Object.keys(i).forEach(n=>{if("sort"!==n&&"bulkUploadReportId"!==n&&"showFollowing"!==n&&"appGlobalSearchParam"!==n&&"includeSpoofing"!=n){const s=this._discoveryService.selectFilterFromKey(t[0],n);if(s&&s.param){const r=s?s.label:null,l=i[n];let p=[l];s.multiple&&(p=this._discoveryService.generateMultipleValues(l,s)),s.options.forEach(c=>c.selected=!1),p.forEach(c=>{let u=c,d=c;if("range"===s.type||"range-ratio"===s.type){const g=c.replace("[","").replace("]","");u=g.replace(","," - "),d=`[${g}]`,this._discoveryService.initializeRangeValue(g,s)}if(s.options&&s.options.length>0){const g=s.options.filter(v=>v.value===c)[0];g&&(g.selected=!0,u=g.text?g.text:g.name)}"range"===s.type||"range-ratio"===s.type?u=this._discoveryService.generateRangeValue(s):u.indexOf("_")>=0&&(u=u.split("_").join(" "));const m=s.options.filter(g=>g.value===d)[0];m&&(m.selected=!0);const f={param:n,value:d,label:r,valueLabel:u};if("dayOfWeek"===f.param&&(f.valueLabel=F.OI[Number.parseInt(d)]),"ctv"===this.currentConfig.key&&"category"===f.param){const g=this.currentConfig.mainFilterItems.filter(S=>"device"===S.apiKey)[0];f.label=`${{roku:"Roku",firetv:"Fire TV",samsung:"Samsung",tvos:"tvOS",lgtv:"LG TV"}[g.selected.value]} Store Categories`}this.selectedFilterValues.push(f)})}}else if("sort"===n){const s=i[n].split(",");t[0].gridHeaders.forEach(r=>{r.sort=null}
1),s.forEach(r=>{const l=r.split(" ");let p="asc";l&&l.length>1&&"DESC"===l[1]&&(p="desc");const c=t[0].gridHeaders.filter(u=>u.key===l[0]);c&&c.length>0&&(c[0].sort=p)})}else"bulkUploadReportId"===n?t&&t[0]&&this.bulkUploadReportId!==i[n]&&(this.bulkUploadReportId=i[n]):"showFollowing"===n?this.showFollowing="true"===i[n]:"appGlobalSearchParam"===n&&(this.appGlobalSearchParam=i[n],this.appGlobalSearchParamModel=i[n])})}this.updatePageTitle()}recalculateSideFilterNav(){let t="0px";jQuery(".precanned-reports-cont").hasClass("show")&&(t=jQuery(window).width()+"px"),jQuery(".precanned-reports-cont").css("width",t)}toggleMobileSideNav(){jQuery(".precanned-reports-cont").toggleClass("show"),setTimeout(()=>{this.recalculateSideFilterNav()})}onWindowResize(){this.mobileBreakPoint.matches?this.recalculateSideFilterNav():jQuery(".precanned-reports-cont").css("width","")}showSavePresetClick(){this.showSavePreset=!0,this.savedPresetTitle="",jQuery(".save-preset input").val(""),setTimeout(()=>{jQuery(".save-preset input").focus()},500)}toggleAdvancedFilters(){this.hideAdvancedFilters=!this.hideAdvancedFilters}discoveryTypeClick(t){if(this.foundFiltersUpdater.emit(null),this.searchInputValueUpdater.emit(null),!(this.loadingData||this.currentConfig&&this.currentConfig.key===t.key)){const i=y.St.filter(s=>s.key===t.key)[0],n={key:t.key,title:t.title,viewDetailsText:t.viewDetailsText,mainFilterItems:[],permission:i.permission,gridHeaders:i.gridHeaders,topLevelCategories:i.topLevelCategories,dashboardViewConfig:i.dashboardViewConfig,importParams:i.importParams};this._userService.setCurrentInsightsKey(t.key),this._userService.hasPermission(n.permission)?(this.currentConfig=n,this.canDownloadCSV="ctv"!==this.currentConfig.key||!("ctv"!==this.currentConfig.key||!this._userService.ottDownloadCsvEnabled()),this.loadCannedReports(),this.currentConfig.gridHeaders.forEach(s=>{s.permission&&(this._userService.hasPermission(s.permission)||(s.hidden=!0))}),this.currentConfig.topLevelCategories.forEach(s=>{!s.permission||this._userService.hasPermission(s.permission)?s.groups.forEach(r=>{r.items.forEach(l=>{l.permission&&(this._userService.hasPermission(l.permission)||(l.hidden=!0))})}):s.hidden=!0}),this.loadingData=!0,this.notAllowed=!1,i.mainFilterItems.forEach(s=>{const r=this._route.snapshot;let l=r.params[s.key];l||(l=r.queryParams[s.apiKey]);let p=!1;s.options.filter(d=>d.value===l)[0]&&(p=!0);const u={key:s.key,apiKey:s.apiKey,label:s.label,type:s.type,hidden:s.hidden,ignore:s.ignore,position:s.position,selected:null,options:[]};s.options.forEach(d=>{let m=d.selected;p&&(m=d.value===l);const f={apiValue:d.apiValue,value:d.value,label:d.label,selected:m,permissions:d.permissions,hidden:!!d.hidden,ignore:!!d.ignore};m&&(u.selected=f),u.options.push(f)}),n.mainFilterItems.push(u)}),setTimeout(()=>{jQuery(".right-content.discovery").removeClass("key-apps"),jQuery(".right-content.discovery").removeClass("key-domains"),jQuery(".right-content.discovery").removeClass("key-ctv"),jQuery(".right-content.discovery").addClass("key-"+n.key)},100),"apps"!==this.currentConfig.key&&(this.appGlobalSearchParamModel=null,this.appGlobalSearchParam=null),this.isInited?this.showFollowing?this.followingClick():this.routeRefresh({}):(this.bulkUploadReportId=this._route.snapshot.queryParams.bulkUploadReportId,this.bulkUploadReportId?this.getImportStatus(this.bulkUploadReportId):this.showFollowing?this.followingClick():this.refreshData()),this.isInited=!0):this._eventService.showPopupEvent.emit(!0)}}loadCannedReports(){this.cannedreports="apps"===this.currentConfig.key?B:"ctv"===this.currentConfig.key?de:[]}mainFilterToggleClick(t){var n="T"===t.selected.value?"F":"T";t.options.forEach(s=>{s.selected=s.value===n,s.selected&&(t.selected=s)}
1),this.showDetails=!1,this._appService.excludeFacetParam=null,this.routeRefresh({},"merge")}mainFilterOptionClick(t,i){this.foundFiltersUpdater.emit(null),this.searchInputValueUpdater.emit(null);const n=this._route.snapshot.queryParams.bulkUploadReportId;"apps"===this.currentConfig.key&&"region"===t.apiKey&&this.updatePtiRankColumn("GLOBAL"===i.apiValue,!!n),(t.selected.value!==i.value||n)&&(("appStore"===t.apiKey||"device"===t.apiKey)&&t.selected.value===i.value&&(i=t.options.filter(r=>"all"===r.value)[0]),t.options.forEach(s=>{s.selected=i.value===s.value,s.selected&&(t.selected=s)}),this.showDetails=!1,this._appService.excludeFacetParam=null,this.routeRefresh({},"merge"))}autoHidePtiRankColumn(){const t=this._route.snapshot.params;"apps"===t.discoverytype&&this.updatePtiRankColumn("GLOBAL"===t.param3,!!this._route.snapshot.queryParams.bulkUploadReportId)}updatePtiRankColumn(t,i){const n=this.currentConfig.gridHeaders.find(r=>"inventory"===r.key),s=this.currentConfig.gridHeaders.find(r=>"ptiRank"===r.key);s&&n&&(t||i?(s.hidden=!0,s.sort&&(n.sort="sort-asc"===s.sort?"sort-desc":"sort-asc",s.sort="")):(s.hidden=!1,n.sort&&(s.sort="sort-asc"===n.sort?"sort-desc":"sort-asc",n.sort="")))}reportViewTypeClick(t){this.reportViewType=t,this.routeRefresh({},"preserve")}appGlobalSearch(t){if(this.appGlobalSearchParamModel=t,this.appGlobalSearchParam!==this.appGlobalSearchParamModel){this.appGlobalSearchParam=this.appGlobalSearchParamModel;const i={appGlobalSearchParam:this.appGlobalSearchParam&&this.appGlobalSearchParam?this.appGlobalSearchParam:null},n=this._route.snapshot.queryParams;n&&Object.keys(n).length>0&&Object.keys(n).filter(s=>"appGlobalSearchParam"!==s).forEach(s=>{i[s]=n[s]}),this.routeRefresh(i)}}clearAppGlobalSearch(){this.appGlobalSearchParamModel=null,this.appGlobalSearch()}routeRefresh(t,i=""){(t.showFollowing||t.appGlobalSearchParam)&&(this.reportViewType="list");const n=["/discovery",this.currentConfig.key,this.reportViewType],s=[];this.currentConfig.mainFilterItems.forEach(r=>{"query"===r.position?t[r.apiKey]=r.selected.value:s.push(r.selected.value)}),this._router.navigate(n.concat(s),{queryParams:t,queryParamsHandling:i})}refreshData(){const t=this._route.snapshot.params.discoverytype,i=y.St.filter(n=>n.key===t)[0];this.autoHidePtiRankColumn(),this.currentConfig.key!==i.key?(this.isInited=!1,this.discoveryTypeClick(i)):(this.gridData=[],this.showLoadingMore=!1,this.showLoadMore=!1,setTimeout(()=>{this.initializeQueryFilters(),this.loadDiscoveryData()},100),setTimeout(()=>{this.prepareFiltersInvoker.emit(!0)},200))}imageErrorListen(){setTimeout(()=>{jQuery(".trusted-seller img").on("error",function(){console.log(">>>>>>>> ERROR IMG: "+this.src),this.style.display="none"}),jQuery("img.appIcon").on("error",function(){console.log(">>>>>>>> ERROR IMG: "+this.src),this.style.opacity=0})})}getFilterStrings(t,i){const s=G_getFilterStrings(this.currentConfig,this.selectedFilterValues,this.cannedreports,this._route.snapshot.queryParams.bulkUploadReportId,this.currentCannedReportUpdater,this.importedFileNameUpdater,t,i);return this.filterStrings=s,s}processAppsResponse(t,i,n){!t.docs||this.currentSearchFilter!=i||(n&&(this.gridData=[]),this.gridData=this.gridData.concat(this.prepareAppsData(t.docs)),this.totalCount=t.numFound,this.showLoadMore=this.gridData.length<this.totalCount,this.showLoadingMore=!1,setTimeout(()=>{this.loadingData=!1},500),this.initAppHovers(),this.initTooltips(),"apps"===this.currentConfig.key?this.initAppLinks():"domains"===this.currentConfig.key?this.initDomainLinks():"ctv"===this.currentConfig.key&&this.initCtvLinks(),this.initDiscoveryLinks(),this.imageErrorListen(),this.initGridHeaders())}processAvailableMonthsResponse(t){if(t.availableMonths){const i=t.availableMonths[0].label;this.currentMonthLabel=i[0]+i.toLowerCase().substring(1)}}processReportDataResponse(t){const i=t.importExportResultFields,n=t.reportHeader.columnMetadata;if(i&&n){const s=i.map(r=>({key:r,label:n[r]?n[r].label:r,selected:!1}));this.downloadColumns=s.filter(r=>"ptiRank"!==r.key),this.updateSelectedDownloadColumns()}}updateNumFollowing(){if(this.currentConfig){const i=this._watchlistService.watchlist.getFollowListByType(this.watchlistTypeMapping[this.currentConfig.key]);this.followingCount=i.length}}loadDiscoveryData(t=!0){const i=t?0:this.gridData.length,n=this.mobileBreakPoint.matches?10:50;this.loadingData=!0;const s=this.getFilterStrings();this.updateNumFollowing();const r=this.currentConfig.key,l=this._watchlistService.watchlist.getFollowListByType(this.watchlistTypeMapping[r]);
1if(this.showFollowing&&(this.followingCount>0?l.forEach(p=>{s.push(`${this.followIdMapping[r]}=${p.followId}`)}):s.push(`${this.followIdMapping[r]}=XXXX`)),this.appGlobalSearchParam&&this.appGlobalSearchParam.length>0&&s.push(`appGlobalSearchParam=${this.appGlobalSearchParam}`),this.showFollowing&&"dashboard"===this.reportViewType)this.routeRefresh({showFollowing:"true"});else{if(this.showImportProgress)return;const p=s.join("&");if(this.currentSearchFilter=p,this.fetchFacets(),"apps"===this.currentConfig.key)this._appService.searchForApps(i,n,p).then(c=>{this.processAppsResponse(c,p,t)}),this._appService.getAvailableMonths().then(c=>{this.processAvailableMonthsResponse(c)}),this.importListInvoker.emit(!0),this.presetsListInvoker.emit(!0),this.bulkUploadReportId&&this._appService.getReportData().then(c=>{this.processReportDataResponse(c)});else if("ctv"===this.currentConfig.key){if(this._ctvService.searchForApps(i,n,p).then(c=>{this.processAppsResponse(c,p,t)}),this._ctvService.getAvailableMonths().then(c=>{this.processAvailableMonthsResponse(c)}),this.importListInvoker.emit(!0),this.presetsListInvoker.emit(!0),this.bulkUploadReportId){const u=this.currentConfig.mainFilterItems.filter(d=>"device"===d.apiKey)[0].selected.value;this._ctvService.getReportData("all"!==u?u:"roku").then(d=>{this.processReportDataResponse(d)})}}else this._domainService.searchForDomains(i,n,p).then(c=>{this.processAppsResponse(c,p,t)}),this._domainService.getAvailableMonths().then(c=>{this.processAvailableMonthsResponse(c)}),this.importListInvoker.emit(!0),this.presetsListInvoker.emit(!0),this.bulkUploadReportId&&this._domainService.getReportData().then(c=>{this.processReportDataResponse(c)})}}loadFilterStats(){let t=null;t="domains"===this.currentConfig.key?this._domainService:"apps"===this.currentConfig.key?this._appService:this._ctvService;const i=this.getFilterStrings();t.getStats(i).then(n=>{this.currentConfig.topLevelCategories.forEach(s=>{s.groups.forEach(r=>{r.items.forEach(l=>{if(l.updateMaxValue){const p=n[l.param];p&&"range"===l.type&&(l.initMaxValue=p.max)}})})})})}updateSelectedDownloadColumns(){let i=te;"domains"===this._route.snapshot.params.discoverytype&&(i=ne);const n=localStorage.getItem(i);n&&n.split(",").forEach(r=>{const l=this.downloadColumns.filter(p=>p.key===r)[0];l&&(l.selected=!0,this.downloadButtonDisabled=!1)})}prepareAppsData(t){return t.forEach((i,n)=>{this.currentConfig.gridHeaders.forEach(r=>{i[r.key+"HTML"]=r.permission?this._userService.hasPermission(r.permission)?this.getDataHTML(i,r,`${n}`):"":this.getDataHTML(i,r,`${n}`)});const s=R.Kh.toWebsiteURL(i.developerWebsite,Ft);i.developerWebsite=s}),t}closeImportedFile(){"apps"===this.currentConfig.key?this.currentConfig.mainFilterItems.forEach(t=>{const i=y.oh.filter(n=>n.apiKey===t.apiKey)[0];t.selected=JSON.parse(JSON.stringify(i.selected)),t.options=JSON.parse(JSON.stringify(i.options))}):"ctv"===this.currentConfig.key&&this.currentConfig.mainFilterItems.forEach(t=>{const i=y.gZ.filter(n=>n.apiKey===t.apiKey)[0];t.selected=JSON.parse(JSON.stringify(i.selected)),t.options=JSON.parse(JSON.stringify(i.options))}),this.bulkUploadReportId=null,this.routeRefresh({bulkUploadReportId:null})}closeFollowing(){"apps"===this.currentConfig.key?this.currentConfig.mainFilterItems.forEach(t=>{const i=y.oh.filter(n=>n.apiKey===t.apiKey)[0];t.selected=JSON.parse(JSON.stringify(i.selected)),t.options=JSON.parse(JSON.stringify(i.options))}):"ctv"===this.currentConfig.key?this.currentConfig.mainFilterItems.forEach(t=>{const i=y.gZ.filter(n=>n.apiKey===t.apiKey)[0];t.selected=JSON.parse(JSON.stringify(i.selected)),t.options=JSON.parse(JSON.stringify(i.options))}):"domains"===this.currentConfig.key&&this.currentConfig.mainFilterItems.forEach(t=>{const i=y.ll.filter(n=>n.apiKey===t.apiKey)[0];t.selected=JSON.parse(JSON.stringify(i.selected)),t.options=JSON.parse(JSON.stringify(i.options))}),this.showFollowing=!1,this.routeRefresh({showFollowing:null}),this.updatePageTitle()}followingClick(t){this.initializeAsAllOptions(),this.routeRefresh({showFollowing:"true"})}unfollowItem(t){var i=this;return(0,x.A)(function*(){jQuery("*[title]").tooltip("hide");let n=t.appId;
1const s=i.currentConfig.key;i.totalCount-=1,"apps"===i.currentConfig.key||"ctv"===i.currentConfig.key?(n=t.appId,i.gridData=i.gridData.filter(r=>r.appId!==n)):"domains"===i.currentConfig.key&&(n=t.domain,i.gridData=i.gridData.filter(r=>r.domain!==n)),i.followingCount-=1,yield i._watchlistService.removeFollow(n,s,t.device,!0),i._eventService.updateEyeNumFollowing.emit(!0)})()}initHovers(){setTimeout(()=>{jQuery(".domain-cell img").mouseenter(t=>{jQuery(t.target).parent().next().addClass("asTooltip");let i=jQuery(t.target)[0].getBoundingClientRect(),n=jQuery(t.target).parent().next().outerHeight(),s=i.top-n-20,r=i.left;jQuery(t.target).parent().next().css("top",s+"px"),jQuery(t.target).parent().next().css("left",r+"px")}),jQuery(".domain-cell img").mouseleave(t=>{jQuery(t.target).parent().next().removeClass("asTooltip")})},100)}initAppHovers(){setTimeout(()=>{jQuery(".aptitleCont img").mouseenter(t=>{jQuery(t.target).parent().next().addClass("asTooltip");const i=jQuery(t.target)[0].getBoundingClientRect(),n=jQuery(t.target).parent().next().outerHeight(),s=i.top-n-20,r=i.left;jQuery(t.target).parent().next().css("top",s+"px"),jQuery(t.target).parent().next().css("left",r+"px")}),jQuery(".aptitleCont img").mouseleave(t=>{jQuery(t.target).parent().next().removeClass("asTooltip")})},100)}initDomainLinks(){setTimeout(()=>{jQuery(".domain-link").on("click",t=>{if(t.stopPropagation(),jQuery("div.details-overlay-transition-message").length<=0)if(this._userService.domainEnabled()){const i=jQuery(t.target).attr("class").split(" ");let n=i.filter(d=>d.indexOf("region-")>=0)[0].replace("region-","");"Non"===n&&(n="NON-US");const s=i.filter(d=>d.indexOf("device-")>=0)[0].replace("device-",""),r=i.filter(d=>d.indexOf("id-")>=0)[0].replace("id-",""),l=i.filter(d=>d.indexOf("domainname-")>=0)[0].replace("domainname-",""),p=i.filter(d=>d.indexOf("section-")>=0)[0].replace("section-",""),c=jQuery(`img.domainIcon.id-${r}`)[0],u=R.Kh.focusLogo(c);this._domainService.getAvailableMonths().then(d=>{this._domainService.setRegion(n),this._domainService.setDevice(s),this._domainService.getAllData(l).then(m=>{this._domainService.storeDomainIconCoordinates(u),this._domainService.storeDomainDetailsCache(l,m),setTimeout(()=>{jQuery(".details-overlay-transition").remove()},500),this._router.navigate(["/insight/domains/",l,n,s],{queryParams:{section:`#${p}`}}),jQuery("div.details-overlay-transition-message").remove()})})}else this._eventService.showPopupEvent.emit(!0)})},300)}initAppLinks(){setTimeout(()=>{jQuery(".app-link").on("click",t=>{if(t.stopPropagation(),"N/A"!==jQuery(t.target).text()&&jQuery("div.details-overlay-transition-message").length<=0)if(this._userService.appEnabled()){const i=jQuery(t.target).attr("class").split(" ");let n=i.filter(m=>m.indexOf("region-")>=0)[0].replace("region-","");const s=i.filter(m=>m.indexOf("device-")>=0)[0].replace("device-",""),r=i.filter(m=>m.indexOf("appid-")>=0)[0].replace("appid-",""),l=i.filter(m=>m.indexOf("id-")>=0)[0].replace("id-",""),p=i.filter(m=>m.indexOf("store-")>=0)[0].replace("store-",""),c=i.filter(m=>m.indexOf("section-")>=0)[0].replace("section-",""),u=jQuery(`img.appIcon.id-${l}`)[0],d=R.Kh.focusLogo(u);"North"===n&&(n="NA"),this._appService.setDevice(s),this._appService.setOs(p),this._appService.setRegion(n),this._appService.getAvailableMonths().then(m=>{this._appService.getAllData(r).then(f=>{this._appService.storeAppIconCoordinates(d),setTimeout(()=>{jQuery(".details-overlay-transition").remove()},1e3),this._router.navigate(["/insight/apps/",r,n,p,s],{queryParams:{section:`#${c}`}}),jQuery("div.details-overlay-transition-message").remove()})})}else this._eventService.showPopupEvent.emit(!0)})},300)}initCtvLinks(){setTimeout(()=>{jQuery(".ctv-link").on("click",t=>{if(t.stopPropagation(),"N/A"!==jQuery(t.target).text()&&jQuery("div.details-overlay-transition-message").length<=0)if(this._userService.ctvEnabled()){const i=jQuery(t.currentTarget).attr("class").split(" ");let n=i.filter(d=>d.indexOf("region-")>=0)[0].replace("region-","");const s=i.filter(d=>d.indexOf("device-")>=0)[0].replace("device-",""),r=i.filter(d=>d.indexOf("appid-")>=0)[0].replace("appid-",""),l=i.filter(d=>d.indexOf("id-")>=0)[0].replace("id-",""),p=i.filter(d=>d.indexOf("section-")>=0)[0].replace("section-",""),c=jQuery(`img.appIcon.id-${l}`)[0],u=R.Kh.focusLogo(c);"North"===n&&(n="NA"),this._ctvService.setDevice(s),this._ctvService.setRegion(n),this._ctvService.getAvailableMonths().then(d=>{this._ctvService.getAllData(r).then(m=>{this._ctvService.storeAppIconCoordinates(u),setTimeout(()=>{jQuery(".details-overlay-transition").remove()},1e3),this._router.navigate(["/insight/ctv/",r,n,s],{queryParams:{section:`#${p}`}}),jQuery("div.details-overlay-transition-message").remove()})})}else this._eventService.showPopupEvent.emit(!0)})},300)}initDiscoveryLinks(){setTimeout(()=>{jQuery(".discovery-link").on("click",t=>{if(t.stopPropagation(),"N/A"!==jQuery(t.target).text()){const i=jQuery(t.target).attr("class").split(" "),n=i.filter(c=>c.indexOf("discovery-param-")>=0)[0].replace("discovery-param-","");let s=jQuery(t.target).text();const r=i.filter(c=>c.indexOf("discovery-param-value-")>=0)[0];r&&(s=r.replace("discovery-param-value-",""));let l=null;
1this.currentConfig.topLevelCategories.forEach(c=>{c.groups.forEach(u=>{u.items.forEach(d=>{d.param===n&&(l=u)})})});const p=l?l.items.filter(c=>c.param===n)[0]:null;if(p){const c={text:p.label,value:s};jQuery("*[title]").tooltip("hide"),this.selectedFilterValues.filter(d=>d.param===n)[0]||this.onDropdownFilterSelectInvoker.emit({tabbedFilterItem:p,option:c,event:null})}}})},300)}initGridHeaders(){const t=this.currentConfig.mainFilterItems.filter(n=>"device"===n.apiKey)[0],i=t&&t.selected?t.selected.value:null;this.currentConfig.gridHeaders.forEach(n=>{"ctv"===this.currentConfig.key&&"isCvaaCompliant"===n.key&&(n.hidden="roku"!==i)})}initTooltips(){setTimeout(()=>{jQuery("*[title]").tooltip({container:"body",html:!0,animation:!1,trigger:"hover"})},200)}getDataHTML(t,i,n){try{return R.Kh.getDataHTML(t,i,this.currentConfig.gridHeaders,this._userService)}catch(s){console.log("error: ",s),console.log("dataitem: ",t),console.log("header: ",i),console.log("indexId: ",n)}}selectTab(t){this.selectedTabbedGroup=t,this.currentConfig.topLevelCategories.forEach(i=>{i.groups.forEach(n=>{n.selected=t.label===n.label})})}fetchFacets(){const t=this.getFilterStrings(!1,!0);this.showFollowing&&t.push(`userId=${this._userService.getIdentity().userEmailAddress}`);let i=!1;this.selectedFilterValues.forEach(s=>{s.param===this._appService.excludeFacetParam&&(i=!0)});let n=null;"apps"===this.currentConfig.key?(this.appGlobalSearchParam&&this.appGlobalSearchParam.length>0&&t.push(`appGlobalSearchParam=${this.appGlobalSearchParam}`),n=this._appService.getFacets(t.join("&"))):"domains"===this.currentConfig.key?n=this._domainService.getFacets(t.join("&")):"ctv"===this.currentConfig.key&&(n=this._ctvService.getFacets(t.join("&"))),null!==n&&(n.then(s=>{const r=s.facets;if(r){const l=JSON.parse(JSON.stringify(this.facets)),p=Object.keys(r);for(const c of p){const u=r[c];if(c!==this._appService.excludeFacetParam||c===this._appService.excludeFacetParam&&!i){const d={},m=[];if(u&&u.length>0)for(const f of u){const v=Object.keys(f)[0];m.push(v),d[v]=f[v]}l[c]=d}}this.facets=l,this._eventService.updateEyeNumFollowing.emit(!0)}}),this.currentConfig.topLevelCategories.forEach(s=>{s.groups.forEach(r=>{r.items.filter(l=>!l.hideSearch).forEach(l=>{"dropdown"===l.type&&!l.hideSearch&&(l.options.length>0||!r.collapsed)&&this.showOptionsInvoker.emit({tabbedFilterItem:l,forceRefresh:!0})})})}))}removedSelectedFilterValue(t,i){if(i&&i.stopPropagation(),!this.loadingData){this._clearFilterService.confirmclearFilter({tab:null,text:null,param:t.param,iconHtml:null,values:[t.value],aggregate:!1});const s=[];this.selectedFilterValues.forEach(r=>{r.param===t.param&&r.value===t.value||s.push(r)}),this.currentConfig.topLevelCategories.forEach(r=>{r.groups.forEach(l=>{const p=l.items.filter(c=>c.param===t.param)[0];if(p){const c=p.options.filter(u=>u.value===t.value)[0];c&&(c.selected=!1)}})}),this._appService.excludeFacetParam=t.param,setTimeout(()=>{this.routeWithFilterValues(s)},100)}}routeWithFilterValues(t){let i={};t&&t.length>0&&t.forEach(n=>{i[n.param]?i[n.param]+="()"+n.value:i[n.param]=n.value}),this.bulkUploadReportId=this._route.snapshot.queryParams.bulkUploadReportId,this.bulkUploadReportId&&(i.bulkUploadReportId=this.bulkUploadReportId),this.appGlobalSearchParam&&this.appGlobalSearchParam.length>0&&(i.appGlobalSearchParam=this.appGlobalSearchParam),this.routeRefresh(i)}clearAllSelectedFilters(){this.selectedFilterValues&&this.selectedFilterValues.length>0&&this.selectedFilterValues.forEach(t=>{let i=[];i.push(t.value),this._clearFilterService.confirmclearFilter({tab:null,text:null,param:t.param,iconHtml:null,values:i,aggregate:!1})}),this.routeWithFilterValues(null)}toggleSort(t){t.sortColumnKey&&!this.loadingData&&(this.currentConfig.gridHeaders.forEach(i=>{if(i.key===t.key){const n=i.sort;""===n?(i.sort="sort-desc",("appTitle"===i.sortColumnKey||"domain"===i.sortColumnKey)&&(i.sort="sort-asc")):"sort-desc"===n?(i.sort="sort-asc",("appTitle"===i.sortColumnKey||"domain"===i.sortColumnKey)&&(i.sort="")):(i.sort="",("appTitle"===i.sortColumnKey||"domain"===i.sortColumnKey)&&(i.sort="sort-desc"))}else i.sort=""}),this.gridData=[],this.showLoadMore=!1,this.showLoadingMore=!1,this.loadDiscoveryData())}loadMore(){this.showLoadingMore=!0,this.loadDiscoveryData(!1)}importCSVclick(){let t=!1;switch(this.currentConfig.key){case"ctv":t=!this._userService.ctvBulkUploadEnabled();break;case"apps":t=!this._userService.appBulkUploadEnabled();break;case"domains":t=!this._userService.domainBulkUploadEnabled()}
1t?this._eventService.showPopup():this.computeQuotaUsage().then(()=>{this.withCsvImportPermission?this.actualRemainingQuota<=0?this.showQuotaExceeded=!0:(this.toggleImportOptions(!0),this.importCsvRemoveDuplicates=!1,this.showImportParam=!0):this._eventService.showPopup()})}toggleImportOptions(t){const i={ctv:{},apps:{},domains:{}};t&&this.currentConfig.importParams.forEach(n=>{if("checkbox"==n.type){const s=n.options.map(r=>r.value);i[this.currentConfig.key][n.key]=s}else i[this.currentConfig.key][n.key]=["T"]}),this.selectedImportParams=i,this.importCsvRemoveDuplicates=t}updateImportParam(t,i,n,s){const r=this.selectedImportParams;let l=this.selectedImportParams[t.key][i.key]||[];"checkbox"===i.type?l=s?[...l,n.value]:l.filter(p=>p!=n.value):"radio"===i.type&&(l=[n.value]),r[t.key][i.key]=l,this.selectedImportParams=r}proceedWithImport(){this.showImportParam=!1,jQuery(".csvFileUpload").trigger("click")}checkImportQuota(){this.computeQuotaUsage(this._route.snapshot.params.discoverytype,!0).finally()}computeQuotaUsage(t,i=!1){return new Promise(n=>{this._eventService.showFeedback(),!this.quota||i?(this.isComputingQuota=!0,this._quotaService.getQuotaUsage().then(s=>{if(this.isComputingQuota=!1,401===s.status)return void this._auth.logout();t=t||this.currentConfig.key;const r={apps:"App",ctv:"CTV",domains:"Domain"},l=s.accountBalance.filter(p=>p.Entity===r[t])[0];l?(this.withCsvImportPermission=!0,this.currentQuota=l["Display Quota"],this.consumedQuota=l.Consumed,this.remainingQuota=l["Display Remaining"],this.actualRemainingQuota=l.Remaining,this.quotaCount=l["Display Quota"],this.quotaStartDate=this.datePipe.transform(l["Quota Start Date"].split(" ")[0].replace(/-/g,"/"),"y-MM-dd"),this.quotaEndDate=this.datePipe.transform(l["Quota End Date"].split(" ")[0].replace(/-/g,"/"),"y-MM-dd")):(this.withCsvImportPermission=!1,this.currentQuota=0,this.consumedQuota=0,this.remainingQuota=0,this.actualRemainingQuota=0,this.quotaCount=0),this.quota=s,n(!0)})):n(!0)})}importCSV(t){"domains"===this.currentConfig.key?this.domainImportCSV(t):"apps"===this.currentConfig.key?this.appImportCSV(t):"ctv"===this.currentConfig.key&&this.ctvImportCSV(t)}getImportQueryParam(){const t=[];return this.currentConfig.importParams.forEach(i=>{const n=this.selectedImportParams[this.currentConfig.key][i.key];n&&t.push(`${i.key}=`+n.join(","))}),t.join("&")}appImportCSV(t){const i=new FormData;i.append("name",t.target.files[0].name),i.append("file",t.target.files[0]),this.uploadingCsv=!0;let n={};this._tracking.eventTrack("initiate_app_bulk_upload",n),this._appService.importCSV(i,this.getImportQueryParam()).then(s=>{if(this.uploadingCsv=!1,200===s.status||"OK"===s.status){const r=s.bulkUploadReportId;this._tracking.eventTrack("initiate_app_bulk_succeeded",n),t.target.value="",this.routeRefresh({bulkUploadReportId:r}),this.getImportStatus(r)}else 401===s.status?(n={},this._tracking.eventTrack("initiate_app_bulk_upload_failed_invalid_session",n)):(404===s.status&&(this.errorMessage="Apps count in the file exceeded the maximum limit (5000)."),n={errorMessage:this.errorMessage},this._tracking.eventTrack("initiate_app_bulk_upload_failed_server_error",n),this.showServerError=!0)})}ctvImportCSV(t){const i=new FormData;i.append("name",t.target.files[0].name),i.append("file",t.target.files[0]),this.uploadingCsv=!0;let n={};this._tracking.eventTrack("initiate_ctv_bulk_upload",n),this._ctvService.importCSV(this.importCsvRemoveDuplicates,i,this.getImportQueryParam()).then(s=>{if(this.uploadingCsv=!1,200===s.status||"OK"===s.status){const r=s.bulkUploadReportId;this._tracking.eventTrack("initiate_ctv_bulk_succeeded",n),t.target.value="",this.routeRefresh({bulkUploadReportId:r}),this.getImportStatus(r)}else 401===s.status?(n={},this._tracking.eventTrack("initiate_ctv_bulk_upload_failed_invalid_session",n),this._router.navigate(["/Login"])):(404===s.status&&(this.errorMessage="Ctv count in the file exceeded the maximum limit (5000)."),n={errorMessage:this.errorMessage},this._tracking.eventTrack("initiate_app_bulk_upload_failed_server_error",n),this.showServerError=!0)})}domainImportCSV(t){const i=new FormData;i.append("name",t.target.files[0].name),i.append("file",t.target.files[0]),this.uploadingCsv=!0;let n={};this._tracking.eventTrack("initiate_bulk_upload",n),this._domainService.importCSV(i,this.getImportQueryParam()).then(s=>{if(this.uploadingCsv=!1,200===s.status||"OK"===s.status){const r=s.bulkUploadReportId;this._tracking.eventTrack("initiate_bulk_upload_succeeded",n),t.target.value="",this.routeRefresh({bulkUploadReportId:r}),this.getImportStatus(r)}else 401===s.status?(n={}
1,this._tracking.eventTrack("initiate_bulk_upload_failed_invalid_session",n),this._router.navigate(["/Login"])):(404===s.status&&(this.errorMessage="Domains count in the file exceeded the maximum limit (5000)."),n={errorMesage:this.errorMessage},this._tracking.eventTrack("initiate_bulk_upload_failed_server_error",n),this.showServerError=!0)})}getImportStatus(t){this.showImportProgress=!0;let i=this.importStartMap.get(t);if(null==i)i=Date.now(),this.importStartMap.set(t,i);else if(Date.now()-i>this.maxTimeout)return this.importStartMap.delete(t),void(this.importErrorMessage="The import is taking longer than expected, you may save this URL and check back later, or wait for the completion email notification. This URL will be valid for 7 days.");this._appService.getImportStatus(t).then(n=>{if(404===n.status)this.importStartMap.delete(t),this.importErrorMessage=n.message;else{const s=n[t].uploadData.status;"Success"===s?setTimeout(()=>{this.importStartMap.delete(t),this.showImportProgress=!1,this.checkNotFound(n[t].uploadData),this.checkImportQuota(),this.initializeImportFilterOptions(t)},100):"Failed"===s?(this.importStartMap.delete(t),this.importErrorMessage=n[t].uploadData.errMsg):setTimeout(()=>{this.getImportStatus(t)},1e4)}}).catch(n=>{this.importStartMap.delete(t),this.showImportProgress=!1,console.log("ERROR:"+JSON.stringify(n)),this.showServerError=!0,this.routeRefresh({bulkUploadReportId:null})})}initializeAsAllOptions(){if("apps"===this.currentConfig.key){this.currentConfig.mainFilterItems.forEach(n=>{const s=y.oh.filter(r=>r.apiKey===n.apiKey)[0];n.selected=JSON.parse(JSON.stringify(s.selected)),n.options=JSON.parse(JSON.stringify(s.options))});const t=this.currentConfig.mainFilterItems.filter(n=>"appStore"===n.apiKey)[0],i=t.options.filter(n=>"all"===n.value)[0];t.options.forEach(n=>n.selected=!1),t.selected=i,i.selected=!0}else if("ctv"===this.currentConfig.key){this.currentConfig.mainFilterItems.forEach(n=>{const s=y.gZ.filter(r=>r.apiKey===n.apiKey)[0];n.selected=JSON.parse(JSON.stringify(s.selected)),n.options=JSON.parse(JSON.stringify(s.options))});const t=this.currentConfig.mainFilterItems.filter(n=>"device"===n.apiKey)[0],i=t.options.filter(n=>"all"===n.value)[0];t.options.forEach(n=>n.selected=!1),t.selected=i,i.selected=!0}else if("domains"===this.currentConfig.key){const t=this.currentConfig.mainFilterItems.filter(n=>"isSubDomain"===n.apiKey)[0],i=t.options.filter(n=>"T"===n.value)[0];t.options.forEach(n=>n.selected=!1),t.selected=i,i.selected=!0}}initializeImportFilterOptions(t){let i=null,n=null;"apps"===this.currentConfig.key?(i=this._appService.getImportFacets(t),n=y.oh):"ctv"===this.currentConfig.key?(i=this._ctvService.getImportFacets(t),n=y.gZ):"domains"===this.currentConfig.key&&(i=this._domainService.getImportFacets(t),n=y.ll),i.then(s=>{this.currentConfig.mainFilterItems.forEach(r=>{const l=n.filter(f=>f.apiKey===r.apiKey)[0];if(!l)return;const p=s.facets[r.apiKey];if(!p)return;const c=p.filter(f=>f[r.selected.apiValue])[0]||p[0],u=Object.keys(c);if(!u)return;const d=u[0],m=l.options.filter(f=>f.apiValue==d)[0]||l.options[0];r.selected=JSON.parse(JSON.stringify(m)),r.options=JSON.parse(JSON.stringify(l.options))})}).finally(()=>{this.routeRefresh({bulkUploadReportId:t}),this.refreshData()})}checkNotFound(t){if(t&&t.importedFileName&&(this.importedFileName=t.importedFileName),this.notFoundCount=0,t.notFound&&t.notFound>0&&t.notFoundList&&t.notFoundList.length>0){this.notFoundCount=t.notFound,this.notFoundList=t.notFoundList,this.notFoundListUri=t.notFoundListUri;let i="",s=this.currentConfig.key;1===(t.notFound<25?t.notFound:25)&&(s=s.replace("s","")),this.notFoundList.forEach(l=>{i+=`<div class='text-left not-found-list-item'>${l}</div>`}),this.notFoundCount>25&&(i+='<div class="text-left">Download to see more...</div>');let r="CTV app";this.notFoundCount>1&&(r="CTV apps"),this.notFoundConfigKey="ctv"===s?r:s,this.notFoundListHTML=i,setTimeout(()=>{jQuery('[data-toggle="tooltip"]').tooltip({container:"body",html:!0,animation:!1,trigger:"hover"})},500)}this._eventService.showFeedback()}savePreset(){if(this.savedPresetTitle&&(this.savedPresetTitle=this.savedPresetTitle.trim(),this.savedPresetTitle.length>0)){const t=[];
1this.selectedFilterValues.forEach(s=>{const r={};r[s.param]=s.value,t.push(r)});const i={};this.currentConfig.mainFilterItems.forEach(s=>{i[s.apiKey]=s.selected.value});let n=null;if("apps"===this.currentConfig.key?(this.appGlobalSearchParam&&this.appGlobalSearchParam.length>0&&t.push({appGlobalSearchParam:this.appGlobalSearchParam}),n="appDiscovery"):"domains"===this.currentConfig.key?n="domainDiscovery":"ctv"===this.currentConfig.key&&(n="ctvDiscovery"),null!==n){const s={abstract:{title:this.savedPresetTitle,group:n},reportConfig:{topFilters:i,otherFilters:t}};this.savingPreset=!0,this._appService.savePreset(s).then(r=>{this.savingPreset=!1,r.reportId&&(this.showSavePreset=!1),this.presetsListInvoker.emit(!0)}).catch(r=>{toastr.error("Please try again next time.","Saving Failed!",{timeOut:2e3})})}}}goBackToDiscovery(){this.importErrorMessage="",this.showImportProgress=!1,this.routeRefresh({bulkUploadReportId:null})}updatePageTitle(){let t;this.showFollowing?(t="Watchlist - Pixalate Media Ratings Terminal",this.pageMeta.setInternalPageName("Watchlist")):(t="Discovery - Pixalate Media Ratings Terminal",this.pageMeta.setInternalPageName("Discovery")),this._title.setTitle(t)}onScroll(){const t=jQuery(document).scrollTop();if(!this.currentConfig||"apps"!==this.currentConfig.key&&"ctv"!==this.currentConfig.key){const i=jQuery(".right-content.discovery .grid-data").offset();i&&(t>=i.top-jQuery(".right-content.discovery .grid-header").outerHeight()?jQuery(".right-content.discovery").addClass("sticky"):jQuery(".right-content.discovery").removeClass("sticky"))}else{t>=jQuery(".right-content.discovery .right-content-inner").offset().top?jQuery(".main-center-content .right-content.discovery.key-apps").addClass("sticky"):jQuery(".main-center-content .right-content.discovery.key-apps").removeClass("sticky");const n=jQuery(".right-content.discovery .right-content-inner .results-header"),p=(n&&jQuery(n).offset(),jQuery(n).outerHeight(),jQuery(".right-content.discovery .grid-data"));t>=(p&&p.offset()?p.offset().top:0)-jQuery(".right-content.discovery .grid-header").outerHeight()?jQuery(".right-content.discovery .right-content-inner").addClass("sticky-header"):jQuery(".right-content.discovery .right-content-inner").removeClass("sticky-header")}}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(w.nX),e.rXU(w.Ix),e.rXU(A.d),e.rXU($.i),e.rXU(U.$),e.rXU(me.E),e.rXU(L.KJ),e.rXU(N),e.rXU(Y.W),e.rXU(ge.b),e.rXU(he.u),e.rXU(W),e.rXU(Z.P),e.rXU(fe.J),e.rXU(_e.hE),e.rXU(ve.v),e.rXU(e.gRc),e.rXU(ye.U))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-new-discovery"]],hostBindings:function(i,n){1&i&&e.bIt("resize",function(){return n.onWindowResize()},!1,e.tSv)("scroll",function(r){return n.onScroll(r)},!1,e.tSv)},decls:2,vars:2,consts:[[4,"ngIf"],[1,"container-fluid","title-header-cont"],[1,"row"],[1,"col-md-12"],[1,"title-header"],["class","title",4,"ngIf"],[3,"class",4,"ngIf"],["class","right-content discovery",3,"ngClass",4,"ngIf"],["class","aa-app-data-notice",4,"ngIf"],["class","import-status",4,"ngIf"],["class","label-import-status",4,"ngIf"],["class","aa-app-data-notice save-preset",4,"ngIf"],["class","aa-app-data-notice import-filter",4,"ngIf"],[1,"title"],[1,"title-label"],["class","btn-group toggle-filter ml-4","role","group","aria-label","Basic example",4,"ngIf"],[1,"triangle"],[1,"btn","btn-link","close-imported-file",3,"click"],["role","group","aria-label","Basic example",1,"btn-group","toggle-filter","ml-4"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-secondary",3,"ngClass","click"],["class","fa fa-lock ml-2",4,"ngIf"],[1,"fa","fa-lock","ml-2"],[1,"top-main-filters"],["class","last-update",4,"ngIf"],["class","quota-remaining",4,"ngIf"],["class","main-filter mb-2",4,"ngIf"],[1,"main-filter","mb-2"],["class","btn-group toggle-filter insight-toggle-filter","role","group","aria-label","Main Filter Selection",4,"ngIf"],["class","btn btn-link btn-slider-toggle ml-2 position-relative",3,"ngClass","click",4,"ngIf"],["class","dropdown filter-dropdown",4,"ngIf"],["role","group","aria-label","Main Filter Selection",1,"btn-group","toggle-filter","insight-toggle-filter"],["type","button","class","btn btn-secondary",3,"ngClass","innerHTML","hidden","hasStorePermissions","click",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-secondary",3,"ngClass","innerHTML","hidden","hasStorePermissions","click"],[1,"btn","btn-link","btn-slider-toggle","ml-2","position-relative",3,"ngClass","click"],[1,"d-inline-block"],[1,"circle-indicator"],[1,"dropdown","filter-dropdown"],["type","button","id","dropdownMenuButton1","data-toggle","dropdown","aria-haspopup","true","aria-expanded","fal
1se",1,"btn","btn-secondary","dropdown-toggle"],["aria-labelledby","dropdownMenuButton1",1,"dropdown-menu"],["class","dropdown-item",3,"innerHTML","hidden","click",4,"ngFor","ngForOf"],[1,"dropdown-item",3,"innerHTML","hidden","click"],[1,"last-update"],[1,"quota-remaining"],["class","not-found-list",4,"ngIf"],[1,"info"],[1,"not-found-list"],[1,"btn","btn-link","not-found-count"],[3,"innerHTML"],[1,"tooltip",3,"innerHTML"],["target","_blank",1,"btn","btn-link"],[1,"right-content","discovery",3,"ngClass"],[3,"loadingData","facets","appGlobalSearchParam","bulkUploadReportId","showFollowing","currentConfig","currentCannedReportUpdater","importedFileNameUpdater","facetsUpdater","routeFilterValuesUpdater","foundFiltersUpdater","searchInputValueUpdater","selectedFilterValues","cannedreports","followingCount","routeRefreshUpdater","importStatusInvoker","refreshDataInvoker","clearAppGlobalSearchInputInvoker","onDropdownFilterSelectInvoker","showOptionsInvoker","importListInvoker","presetsListInvoker","prepareFiltersInvoker","closeMobileNavClick","clearAllFiltersClick","followingClickAction",4,"ngIf"],[1,"right-content-inner"],[1,"tabbed-filters-cont"],[1,"container-fluid","main-content",3,"ngClass"],[1,"selected-filters-cont"],[1,"filters-label"],["class","none-label",4,"ngIf"],["class","selected-filter-item",4,"ngFor","ngForOf"],[1,"btn","btn-link","btn-sm","clear-all",3,"hidden","click"],[1,"summary-heading"],[1,"canned-filter-title"],[1,"d-flex","align-items-center","justify-content-sm-between"],[3,"hidden"],["class","text-lowercase",4,"ngIf"],["data-loader","circle-side",1,"loader","d-inline"],[1,"btn","btn-link","mobile-filter-btn",3,"click"],["src","/assets/images/icon-filter.svg","alt","Toggle Side Nav"],[1,"results-header"],[1,"action-buttons"],[1,"view-details",3,"ngClass"],[1,"",3,"click"],[1,"fa",3,"ngClass"],[3,"totalCount","showFollowing","currentConfig","appGlobalSearchParam","downloadButtonDisabled","downloadColumns","importedFileName","canDownloadCSV","hideUnfilteredDownloadCsv","selectedFilterValues","cannedreports","currentCannedReportUpdater","importedFileNameUpdater","followingCount","followIdMapping","watchlistTypeMapping"],[3,"loadingData","facets","appGlobalSearchParam","bulkUploadReportId","showFollowing","currentConfig","currentCannedReportUpdater","importedFileNameUpdater","facetsUpdater","routeFilterValuesUpdater","foundFiltersUpdater","searchInputValueUpdater","selectedFilterValues","cannedreports","followingCount","routeRefreshUpdater","importStatusInvoker","refreshDataInvoker","clearAppGlobalSearchInputInvoker","onDropdownFilterSelectInvoker","showOptionsInvoker","importListInvoker","presetsListInvoker","prepareFiltersInvoker","closeMobileNavClick","clearAllFiltersClick","followingClickAction"],[1,"none-label"],[1,"selected-filter-item"],[1,"ml-2","d-flex","align-items-center",3,"click"],[1,"fa","fa-times-circle"],[1,"text-lowercase"],["role","group","aria-label","Basic example",1,"btn-group","toggle-filter","view-type"],[1,"import-csv","btn","btn-outline-secondary","d-flex","flex-row","flex-nowrap","align-items-center","gap-3",3,"hidden","disabled","click"],["data-loader","circle-side",1,"loading-icon",3,"hidden"],["src","/assets/images/icon-16-download-right.svg","alt","Import CSV",3,"hidden"],[1,"ml-1"],["value","upload","type","file","accept","text/csv",1,"csvFileUpload",2,"visibility","hidden","opacity","0","width","0px","height","0px",3,"change"],["csvFileUpload",""],[1,"save-preset",3,"hidden"],[1,"btn","btn-outline-secondary",3,"click"],["src","/assets/images/icon-16-add.svg","alt","Save Preset"],[3,"currentConfig","facets","filterStrings","loadingData"],[3,"reportViewType","showFollowing","currentConfig","showDetails","gridData","showLoadMore","showLoadingMore","appGlobalSearchParamModel","isFreemium","notificationSettings","loadMoreClick","unfollowItem","toggleSortClick","appGlobalSearch","clearAppGlobalSearch"],[3,"currentConfig","closeFollowingClick"],[1,"aa-app-data-notice"],[1,"aa-paywall-section","uploadSuccess"],[1,"close","pull-xl-right",3,"click"],[1,"fa","fa-close"],[1,"header","mb-1"],[1,"mb-2"],[1,"button-bar"],["autofocus","",1,"btn","btn-lg","btn-primary",3,"click","keydown"],[1,"aa-p
1aywall-section"],["class","m-b-1",4,"ngIf"],[1,"m-b-1"],[1,"aa-paywall-section","quotaMessageCont"],["class","header mb-1",4,"ngIf"],[1,"import-status"],[1,"label-import-status"],[1,"fa","fa-spin","fa-spinner","ml-2"],[1,"btn","btn-link",3,"click"],[1,"aa-app-data-notice","save-preset"],["type","text",1,"form-control",3,"ngModel","ngModelChange","keydown.enter"],[1,"btn","btn-lg","btn-primary",3,"click"],[1,"aa-app-data-notice","import-filter"],[1,"d-flex","flex-row","justify-content-between","mt-5"],["class","d-flex flex-column",4,"ngFor","ngForOf"],["class","remove-duplicates",4,"ngIf"],[1,"d-flex","align-items-center","mt-5"],[1,"btn","btn-link","mr-auto",3,"click"],[1,"btn","btn-secondary","mr-2",3,"click"],[1,"btn","btn-primary",3,"click"],[1,"d-flex","flex-column"],[1,"group-title","font-weight-bold","mb-1"],[1,"group-option","form-check",3,"hasStorePermissions"],[1,"form-check-label"],["type","checkbox",1,"form-check-input","mr-2",3,"checked","change"],["class","group-option form-check",4,"ngFor","ngForOf"],[1,"group-option","form-check"],["type","radio","name","optionsRadios",1,"form-check-input",3,"id","checked","click"],[1,"remove-duplicates"],["type","checkbox",1,"form-check-input","mr-2",3,"ngModel","ngModelChange"],[1,"container","discovery-freemium-container"],[1,"col"],[1,"mt-5","mb-3"],[1,"col-lg"],[1,"body-text"],[1,"btn","btn-primary","btn-schedule-a-demo",3,"click"],[1,"col-lg","text-center"],["src","/assets/images/discovery-preview.png","alt","Discovery Preview",2,"max-height","300px"],[1,"row","mt-100px"],[1,"mb-3"],[1,"feature-grid"],[1,"feature-cell"],[1,"feature-icon"],[1,"fa","fa-mobile"],[1,"feature-text"],[1,"feature-text-head"],[1,"feature-text-body"],[1,"fa","fa-globe"],[1,"fa","fa-tv"],[1,"fa","fa-bar-chart"],[1,"row","mb-5"],[1,"col-lg-7"],[1,"col-lg-4"],[1,"large-icon-badge"],[1,"col-lg-8"],[1,"col-md"],["src","/assets/images/discovery-presets.png","alt","Discovery Presets"]],template:function(i,n){1&i&&(e.DNE(0,Rt,16,11,"ng-container",0),e.DNE(1,wt,144,0,"ng-container",0)),2&i&&(e.Y8G("ngIf",!n.isAnonymous),e.R7$(1),e.Y8G("ngIf",n.isAnonymous))},styles:['.main-filters-cont[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{height:34px}.main-filters-cont[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .btn.btn-secondary[_ngcontent-%COMP%]{min-width:120px;width:auto;color:#0b1731;font-style:normal;font-weight:400;font-size:15px;line-height:20px;position:relative;padding:8px 32px 8px 16px}.main-filters-cont[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .btn.btn-secondary.dropdown-toggle[_ngcontent-%COMP%]:after{content:"\\f078";border:none;font: 10px/1 FontAwesome;position:absolute;right:0;margin-right:8px;margin-top:4px}.main-filters-cont[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%] .btn.btn-secondary.dropdown-toggle[aria-expanded=true][_ngcontent-%COMP%]:after{content:"\\f077"}.main-filters-cont[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{border-color:#2652b2}.main-filters-cont[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.15)}.main-filters-cont[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .input-group-addon[_ngcontent-%COMP%]{border:none;background:none;font-size:14px;padding-top:0;padding-right:0;color:#000000a6}.main-filters-cont[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{border:none;font-size:14px;padding-top:0}.main-filters-cont[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-menu-items[_ngcontent-%COMP%]{max-height:350px;overflow-y:auto;min-width:220px}.main-filters-cont[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-menu-items[_ngcontent-%COMP%] .dropdown-menu-item[_ngcontent-%COMP%], .main-filters-cont[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-menu-items[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:15px;line-height:20px;max-width:250px;overflow:hidden;text-overflow:ellipsis}.main-filters-cont[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-menu-items[_ngcontent-%COMP%] .dropdown-menu-item[_ngcontent-%COMP%] img, .main-filters-cont[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-menu-items[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] img{width:18px}.input-group.search-app[_ngcontent-%COMP%]{position:relative;width:auto;font-size:14px;border:1px solid rgba(24,53,114,.3);border-radius:4px;background:#fff;padding:2px 10px 2px 0;margin-right:12px}.input-group.search-app[_ngcontent-%COMP%] .input-group-addon[_ngcontent-%COMP%]{padding:2px 0 2px 10px;border:none;background:none;font-size:14px}.input-group.search-app[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{border:none;background:none;padding:2px 10px;font-size:14px;width:220px}.input-group.search-app[_ngcontent-%COMP%] .clear-app-search[_ngcontent-%COMP%]{opacity:.7;position:absolute;right:0;margin-right:4px;top:0;margin-top:4px}@keyframes _ngcontent-%COMP%_fade-down{0%{transform:translate(-40px);opacity:0}
1to{transform:translate(0);opacity:1}}.import-csv[_ngcontent-%COMP%] .loading-icon[_ngcontent-%COMP%]{width:16px;height:16px;margin:0}.mt-100px[_ngcontent-%COMP%]{margin-top:100px!important}.discovery-freemium-container[_ngcontent-%COMP%]{padding-bottom:150px}.feature-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:48px 16px;grid-template-areas:". ." ". .";font-family:proxima-nova;line-height:initial}.feature-cell[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;color:#000;opacity:0;animation-name:_ngcontent-%COMP%_fade-down;animation-fill-mode:forwards;animation-duration:1s}.feature-cell[_ngcontent-%COMP%]:nth-child(1){animation-delay:.5s}.feature-cell[_ngcontent-%COMP%]:nth-child(2){animation-delay:.6s}.feature-cell[_ngcontent-%COMP%]:nth-child(3){animation-delay:.7s}.feature-cell[_ngcontent-%COMP%]:nth-child(4){animation-delay:.8s}.feature-icon[_ngcontent-%COMP%]{font-size:64px;color:#2652b2}.feature-text[_ngcontent-%COMP%]{flex-shrink:0}.feature-text-head[_ngcontent-%COMP%]{font-size:36px;font-weight:700}.feature-text-body[_ngcontent-%COMP%]{font-size:16px;font-weight:500}h3[_ngcontent-%COMP%]{font-size:42px}h4[_ngcontent-%COMP%]{font-size:30px;margin-bottom:48px;font-weight:600}h5[_ngcontent-%COMP%]{font-size:24px;font-weight:600;margin-bottom:48px}h6[_ngcontent-%COMP%]{font-size:16px;font-weight:600;margin-bottom:16px}p[_ngcontent-%COMP%]{font-size:15px}.body-text[_ngcontent-%COMP%]{font-size:20px}.large-icon-badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:200px;height:200px;border-radius:50%;background-color:#2652b2;color:#fff;font-size:72px}.aa-app-data-notice.import-filter[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .aa-app-data-notice.import-filter[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:left}.aa-app-data-notice.import-filter[_ngcontent-%COMP%] .aa-paywall-section[_ngcontent-%COMP%]{border-radius:5px;width:534px}.aa-app-data-notice.import-filter[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{font-weight:600;font-size:20px;line-height:100%;letter-spacing:0%}.aa-app-data-notice.import-filter[_ngcontent-%COMP%] .group-title[_ngcontent-%COMP%]{font-weight:600;font-size:16px;line-height:100%;letter-spacing:0%}.aa-app-data-notice.import-filter[_ngcontent-%COMP%] .group-option[_ngcontent-%COMP%]{font-weight:400;font-size:16px;line-height:135%;letter-spacing:0%}.aa-app-data-notice.import-filter[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]{width:20px;height:20px;vertical-align:text-bottom;margin-right:7px}.aa-app-data-notice.import-filter[_ngcontent-%COMP%] .remove-duplicates[_ngcontent-%COMP%]{border-top:1px solid lightgray;margin-top:20px;padding-top:20px;text-align:left}.aa-app-data-notice.import-filter[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:6px;padding:12px 24px}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}','.title-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-label[_ngcontent-%COMP%]{display:inline-block}.right-content.discovery[_ngcontent-%COMP%] .summary-heading{display:flex;flex-flow:row wrap;justify-content:space-between}.right-content.discovery[_ngcontent-%COMP%] .canned-filter-title h5{justify-content:space-between}.right-content.discovery[_ngcontent-%COMP%] .canned-filter-title h5 .mobile-filter-btn{color:#000;display:none;padding:0}.right-content.discovery[_ngcontent-%COMP%] pix-dropdown-rating-filter3 .wrapper .title, .right-content.discovery[_ngcontent-%COMP%] pix-dropdown-range-slider3 .wrapper .title, .right-content.discovery[_ngcontent-%COMP%] pix-dropdown-range-ratio .wrapper .title, .right-content.discovery[_ngcontent-%COMP%] app-side-filter-item .item-list .title{display:none}.right-content.discovery[_ngcontent-%COMP%] app-side-filter-item .item-list .title .btn{margin-bottom:16px;color:#000}.right-content.discovery[_ngcontent-%COMP%] pix-dropdown-rating-filter3 .wrapper .title .mobile-btn-close, .right-content.discovery[_ngcontent-%COMP%] pix-dropdown-range-slider3 .wrapper .title .mobile-btn-close, .right-content.discovery[_ngcontent-%COMP%] pix-dropdown-range-ratio .wrapper .title .mobile-btn-close{position:absolute;top:0;right:0;margin-right:24px;font-size:16px;color:#000;display:none}.right-content.discovery[_ngcontent-%COMP%] .app-list-container .mobile-load-more{display:none;position:absolute;bottom:0;right:0;left:0;margin-right:16px;margin-left:16px;margin-bottom:8px}.right-content.discovery[_ngcontent-%COMP%] .app-list-container .mobile-load-more .btn{background:#FFFFFF;border:1px solid #9EABC7;font-size:14px;line-height:16px;color:#000;width:100%}.right-content.discovery[_ngcontent-%COMP%] .right-content-inner[_ngcontent-%COMP%]{overflow:auto}.right-content.discovery[_ngcontent-%COMP%] .right-content-inner[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%]{min-width:950px} .precanned-reports-cont .side-navigation.trends .mobile-btn-close{display:none;color:#000;position:absolute;right:0;top:0} .precanned-reports-cont .side-navigation.trends .toplevel-categories>.title{display:none!important} .presets-list{flex-flow:column wrap}.main-filters-cont[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap}
1.main-filters-cont[_ngcontent-%COMP%] .top-main-filters[_ngcontent-%COMP%] .main-filter[_ngcontent-%COMP%] .insight-toggle-filter[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:5px 12px}@media (max-width: 576px){.btn-group.toggle-filter[_ngcontent-%COMP%]{border:none}.title-header[_ngcontent-%COMP%]{position:relative;display:block}.title-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{padding:16px 0;text-align:left;margin:0!important;width:100%}.title-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .title-label[_ngcontent-%COMP%]{display:none}.title-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .btn-group.toggle-filter[_ngcontent-%COMP%]{margin-left:0!important}.title-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .btn-group.toggle-filter[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:first-child{flex:1 0}.title-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .btn-group.toggle-filter[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:not(:first-child){padding-left:12px;padding-right:12px}.main-filters-cont[_ngcontent-%COMP%]{position:absolute;left:0;right:0;align-items:flex-start;padding:0!important;z-index:10;flex-flow:column wrap;align-items:stretch!important;margin-bottom:0;bottom:unset;margin-top:16px}.main-filters-cont[_ngcontent-%COMP%] .top-main-filters[_ngcontent-%COMP%]{flex-flow:column wrap;padding-right:0}.main-filters-cont[_ngcontent-%COMP%] .top-main-filters[_ngcontent-%COMP%] .main-filter[_ngcontent-%COMP%]{margin-right:0;margin-bottom:8px}.main-filters-cont[_ngcontent-%COMP%] .top-main-filters[_ngcontent-%COMP%] .main-filter[_ngcontent-%COMP%] .insight-toggle-filter[_ngcontent-%COMP%]{width:100%}.main-filters-cont[_ngcontent-%COMP%] .top-main-filters[_ngcontent-%COMP%] .main-filter[_ngcontent-%COMP%] .insight-toggle-filter[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{width:50%}.main-filters-cont[_ngcontent-%COMP%] .top-main-filters[_ngcontent-%COMP%] .main-filter[_ngcontent-%COMP%] .filter-dropdown[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%], .main-filters-cont[_ngcontent-%COMP%] .top-main-filters[_ngcontent-%COMP%] .main-filter[_ngcontent-%COMP%] .filter-dropdown[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{width:100%}.main-filters-cont[_ngcontent-%COMP%] .top-main-filters[_ngcontent-%COMP%] .main-filter[_ngcontent-%COMP%] .filter-dropdown[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]{color:#000;font-size:16px;font-weight:500;text-align:left}.main-filters-cont[_ngcontent-%COMP%] .last-update[_ngcontent-%COMP%]{padding-right:0;text-align:center!important} .precanned-reports-cont{position:fixed!important;background:#fff;z-index:10;top:0;bottom:0;width:0px;overflow-x:hidden;transition:width .3s} .precanned-reports-cont .side-navigation.trends{width:100%!important;padding-top:40px!important} .precanned-reports-cont .side-navigation.trends .mobile-btn-close{display:inline-block} .precanned-reports-cont .side-navigation.trends .precanned-reports>.title{padding-left:0!important} .precanned-reports-cont .side-navigation.trends .precanned-reports.save-presets .title{border-top:1px solid rgba(52,79,138,.4);margin-bottom:22px!important;padding-top:22px!important} .precanned-reports-cont .side-navigation.trends .toplevel-categories .nav .nav-item .canned-cont .canned-link .fa-plus, .precanned-reports-cont .side-navigation.trends .nav .nav-item.saved-presets .nav-link .fa-plus{margin-right:16px!important} .precanned-reports-cont .side-navigation.trends .toplevel-categories .nav .nav-item .canned-cont .canned-link .fa-plus:before, .precanned-reports-cont .side-navigation.trends .nav .nav-item.saved-presets .nav-link .fa-plus:before{content:"\\f054"} .precanned-reports-cont .side-navigation.trends .toplevel-categories{margin-top:30px} .precanned-reports-cont .side-navigation.trends .toplevel-categories>.title{padding-bottom:34px!important;padding-left:0!important;border-top:1px solid rgba(52,79,138,.4);display:flex!important;justify-content:space-between} .precanned-reports-cont .side-navigation.trends .toplevel-categories>.title .btn-clear-filters{color:#2652b2} .precanned-reports-cont .side-navigation.trends .toplevel-categories .toplevel-category{padding-left:16px} .precanned-reports-cont .side-navigation.trends .toplevel-categories .toplevel-category>.title{color:#fff;border-bottom:1px solid rgba(52,79,138,.15);margin-bottom:22px!important;padding-top:0!important} .precanned-reports-cont .side-navigation.trends .toplevel-categories .toplevel-category:first-of-type>.title{display:none!important} .precanned-reports-cont .side-navigation.trends .toplevel-categories .card .card-header h5>a{padding-left:0!important} .precanned-reports-cont .side-navigation.trends .nav .nav-item .canned-link{padding-left:0!important} .precanned-reports-cont .presets-list{flex-flow:row wrap} .precanned-reports-cont .presets-list .nav-item{margin-right:8px} .precanned-reports-cont .presets-list .nav-item .nav-link{background:#EFF2F5;padding:11px!important;border-radius:22px}.right-content.discovery[_ngcontent-%COMP%]{padding-top:200px!important;display:block;background:#ffffff}.right-content.discovery[_ngcontent-%COMP%] .right-content-inner[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%]{min-width:unset}.right-content.discovery.key-ctv[_ngcontent-%COMP%]{padding-top:160px!important}.right-content.discovery.key-ctv[_ngcontent-%COMP%] .app-list-container .app-list-inner-cont{min-width:1200px}.right-content.discovery.key-apps[_ngcontent-%COMP%]{padding-top:160px!important}.right-content.discovery.key-apps[_ngcontent-%COMP%] .app-list-container .app-list-inner-cont{min-width:950px}.right-content.discovery.key-domains[_ngcontent-%COMP%]{padding-top:160px!important}.right-content.discovery.key-domains[_ngcontent-%COMP%] .main-content .grid-header .grid-header-item:not(.seller):not(.title):not(.appTitle):not(.adSpent):not(.impressionSov), .right-content.discovery.key-domains[_ngcontent-%COMP%] .main-content .grid-data .grid-data-item-col:not(.domain):not(.appTitle){width:70px}.right-content.discovery.watchlist-view[_ngcontent-%COMP%]{padding-top:0!important}.right-content.discovery.watchlist-view[_ngcontent-%COMP%] .main-content{padding-top:18px;min-height:560px}.right-content.discovery.watchlist-view[_ngcontent-%COMP%] .main-content .grid-header-item .input-group.search-app{display:none}.right-content.discovery[_ngcontent-%COMP%] .grid-data.dashboard-view .wrapper{margin-left:0;margin-right:0;padding:0;border:none;box-shadow:none}.right-content.discovery[_ngcontent-%COMP%] .grid-data .appTitle .aptitleCont .titleCont .title a{font-size:14px;overflow:hidden;white-space:pre-wrap;display:block;text-align:left}.right-content.discovery[_ngcontent-%COMP%] .grid-data .grid-data-item{align-items:start}
1.right-content.discovery[_ngcontent-%COMP%] .grid-data .grid-data-item .grid-data-item-col{padding:8px 0}.right-content.discovery[_ngcontent-%COMP%] .grid-data .grid-data-item.load-more{display:none}.right-content.discovery[_ngcontent-%COMP%] .grid-data .big-number{line-height:unset}.right-content.discovery[_ngcontent-%COMP%] .container-fluid{padding-top:0}.right-content.discovery[_ngcontent-%COMP%] .summary-heading{padding:0!important}.right-content.discovery[_ngcontent-%COMP%] .selected-filters-cont{display:none}.right-content.discovery[_ngcontent-%COMP%] .canned-filter-title h5 .mobile-filter-btn{display:inline-block}.right-content.discovery[_ngcontent-%COMP%] .summary-heading{flex-flow:column wrap}.right-content.discovery[_ngcontent-%COMP%] .summary-heading .results-header .action-buttons{flex-flow:column wrap;width:100%;justify-content:stretch;align-items:stretch}.right-content.discovery[_ngcontent-%COMP%] .summary-heading .results-header .action-buttons .toggle-filter .btn{width:50%}.right-content.discovery[_ngcontent-%COMP%] .summary-heading .results-header .action-buttons .toggle-filter, .right-content.discovery[_ngcontent-%COMP%] .summary-heading .results-header .action-buttons .save-preset{margin-bottom:8px}.right-content.discovery[_ngcontent-%COMP%] .summary-heading .results-header .action-buttons .toggle-filter{margin-right:0}.right-content.discovery[_ngcontent-%COMP%] .summary-heading .results-header .action-buttons .import-csv{display:none}.right-content.discovery[_ngcontent-%COMP%] .summary-heading .results-header .action-buttons .save-preset .btn{width:100%}.right-content.discovery[_ngcontent-%COMP%] .summary-heading .results-header .action-buttons .download-csv{display:none}.right-content.discovery[_ngcontent-%COMP%] .summary-heading .results-header .action-buttons .view-details{margin-bottom:8px;display:none}.right-content.discovery[_ngcontent-%COMP%] .app-list-container{overflow-x:auto;padding-bottom:50px}.right-content.discovery[_ngcontent-%COMP%] .app-list-container .app-list-inner-cont{min-width:600px}.right-content.discovery[_ngcontent-%COMP%] .app-list-container .mobile-load-more{display:block}.right-content.discovery[_ngcontent-%COMP%] .grid-header, .right-content.discovery[_ngcontent-%COMP%] .grid-data-item{flex-wrap:nowrap!important}.right-content.discovery[_ngcontent-%COMP%] .grid-header{border:none;padding:0;background:none;border-bottom:2px solid rgba(52,79,138,.15)}.right-content.discovery[_ngcontent-%COMP%] .grid-header .grid-header-item.sort-desc{background:none}.right-content.discovery[_ngcontent-%COMP%] .grid-data .grid-data-item{border:none}.right-content.discovery[_ngcontent-%COMP%] .grid-data .grid-data-item:not(:last-child){border-bottom:1px solid rgba(52,79,138,.15)}.right-content.discovery[_ngcontent-%COMP%] .canned-cont.show{position:absolute;inset:0;z-index:10;background:#fff;padding-top:48px;padding-left:16px}.right-content.discovery[_ngcontent-%COMP%] .canned-cont.show .canned-link{font-size:26px!important;line-height:34px}.right-content.discovery[_ngcontent-%COMP%] .canned-cont.show .canned-link.selected .fa{color:#000!important;background:none!important}.right-content.discovery[_ngcontent-%COMP%] .canned-cont.show .fa.fa-minus{position:absolute;left:0;top:0;margin-top:24px!important;margin-left:24px!important}.right-content.discovery[_ngcontent-%COMP%] .canned-cont.show .fa.fa-minus:before{content:"\\f060"!important;font-size:14px}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show .card-block{z-index:100;border:1px solid transparent;position:fixed;inset:0;background:rgba(0,0,0,.75)}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show .card-block .item-list .items-cont{max-height:unset!important;height:calc(100% - 150px)}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-rating-filter3, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio app-side-filter-item .item-list{display:block;position:absolute;bottom:0;right:0;left:0;background:#ffffff;z-index:10;padding-top:16px;padding-bottom:16px;border-top-left-radius:16px;border-top-right-radius:16px}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-rating-filter3 .wrapper, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3 .wrapper, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio app-side-filter-item .item-list .wrapper{padding:0 26px;max-width:unset;max-height:unset}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-rating-filter3 .wrapper .title, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3 .wrapper .title, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio app-side-filter-item .item-list .wrapper .title{display:block;font-weight:600;font-size:20px;line-height:26px;margin-bottom:18px;text-align:left}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-rating-filter3 .wrapper .btn-group, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3 .wrapper .btn-group, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio app-side-filter-item .item-list .wrapper .btn-group{width:100%;padding:2px;border:none;background:#EFF2F5;border-radius:6px}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-rating-filter3 .wrapper .btn-group .btn, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3 .wrapper .btn-group .btn, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio app-side-filter-item .item-list .wrapper .btn-group .btn{width:50%;border:none;border-radius:6px;text-align:left;padding-left:16px}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-rating-filter3 .wrapper .btn-group .btn .facet, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3 .wrapper .btn-group .btn .facet, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio app-side-filter-item .item-list .wrapper .btn-group .btn .facet{font-size:13px}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-rating-filter3 .wrapper .btn-group .btn:first-child:not(:last-child):not(.dropdown-toggle), .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3 .wrapper .btn-group .btn:first-child:not(:last-child):not(.dropdown-toggle), .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio app-side-filter-item .item-list .wrapper .btn-group .btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:6px;border-bottom-left-radius:6px}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-rating-filter3 .wrapper .title .mobile-btn-close, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3 .wrapper .title .mobile-btn-close, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio .wrapper .title .mobile-btn-close{display:block}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio{color:#fff}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3 .wrapper .title, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio .wrapper .title{margin-bottom:8px}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3 .applyBtn, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio .applyBtn{font-size:16px}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3 input, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio input{max-width:unset;width:50%;padding:9px 8px 12px;text-align:right;border-radius:4px;font-size:16px;border:1px solid #2652B2}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3 .irs--flat .irs-handle, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio .irs--flat .irs-handle{margin-top:-22px;height:32px;width:32px;border-radius:32px;background:#fff;border:2px solid #2652B2}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3 .irs--flat .irs-handle i, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio .irs--flat .irs-handle i{display:none}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3 .value-inputs, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio .value-inputs{margin-bottom:18px}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3 .inventory-slider, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio .inventory-slider{margin-bottom:8px}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3 .inventory-slider.idle .pix-slider .irs-bar, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio .inventory-slider.idle .pix-slider .irs-bar{background:#2652B2}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-slider3 .inventory-slider .irs-bar, .right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show pix-dropdown-range-ratio .inventory-slider .irs-bar{background:#2652B2}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show app-side-filter-item .item-list{top:0}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show app-side-filter-item .item-list .title{display:block;font-size:26px;line-height:34px;padding-left:16px;padding-bottom:16px}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show app-side-filter-item .item-list .input-group.search-keywords{padding-left:16px!important;padding-right:16px!important;padding-bottom:16px!important}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show app-side-filter-item .item-list .input-group.search-keywords .form-control.search-keywords{margin-right:0!important}.right-content.discovery[_ngcontent-%COMP%] .level2.collapse.show app-side-filter-item .item-list .items-cont li{padding-top:8px;padding-bottom:8px;font-size:16px}}']}
1)}}return o})();var xt=h(36921);const Mt=[{path:":discoverytype",component:H,canActivate:(0,w.lv)([O.q])},{path:":discoverytype/:viewtype/:param1/:param2/:param3",component:H,canActivate:(0,w.lv)([O.q,xt.k]),data:{storePermissions:["mrtCtvStoreLG"],paramKey:"param1"}}],Pt=[],It=w.iI.forChild(Mt);var Dt=h(41683),Ot=h(74804),ie=h(52575),oe=h(91817),se=h(75797),Vt=h(56240),z=h(59001),Tt=h(68373),q=h(60914);const Et=["dropdownEl"];function jt(o,a){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"roundsig"),e.k0s()),2&o){const t=e.XpG(2);e.R7$(1),e.SpI(" (",e.bMT(2,1,t.facets[t.param].L),") ")}}function Gt(o,a){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"roundsig"),e.k0s()),2&o){const t=e.XpG(2);e.R7$(1),e.SpI(" (",e.bMT(2,1,t.facets[t.param].M),") ")}}function At(o,a){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"roundsig"),e.k0s()),2&o){const t=e.XpG(2);e.R7$(1),e.SpI(" (",e.bMT(2,1,t.facets[t.param].H),") ")}}const $t=function(o){return{"btn-success":o}},Nt=function(o){return{"btn-warning":o}},Bt=function(o){return{"btn-danger":o}};function Ut(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",6)(1,"button",7),e.bIt("click",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.onSelect("L",n))}),e.EFF(2," Low "),e.DNE(3,jt,3,3,"div",8),e.k0s(),e.j41(4,"button",7),e.bIt("click",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.onSelect("M",n))}),e.EFF(5," Medium "),e.DNE(6,Gt,3,3,"div",8),e.k0s(),e.j41(7,"button",9),e.bIt("click",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.onSelect("H",n))}),e.EFF(8," High "),e.DNE(9,At,3,3,"div",8),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(1),e.Y8G("ngClass",e.eq3(9,$t,t.selected.L))("disabled",t.disabled),e.R7$(2),e.Y8G("ngIf",t.facets&&t.facets[t.param]&&t.facets[t.param].L),e.R7$(1),e.Y8G("ngClass",e.eq3(11,Nt,t.selected.M))("disabled",t.disabled),e.R7$(2),e.Y8G("ngIf",t.facets&&t.facets[t.param]&&t.facets[t.param].M),e.R7$(1),e.Y8G("ngClass",e.eq3(13,Bt,t.selected.H)),e.BMQ("disabled",t.disabled),e.R7$(2),e.Y8G("ngIf",t.facets&&t.facets[t.param]&&t.facets[t.param].H)}}function Lt(o,a){if(1&o&&(e.j41(0,"span",14),e.EFF(1),e.nI1(2,"roundsig"),e.k0s()),2&o){const t=e.XpG(2).$implicit,i=e.XpG(2);e.R7$(1),e.SpI("(",e.bMT(2,1,i.facets[i.param][t.value]),")")}}function Yt(o,a){if(1&o&&(e.j41(0,"span",14),e.EFF(1),e.nI1(2,"num"),e.k0s()),2&o){const t=e.XpG(2).$implicit,i=e.XpG(2);e.R7$(1),e.SpI("(",e.bMT(2,1,i.facets[i.param][t.value]),")")}}function Xt(o,a){if(1&o&&(e.j41(0,"div"),e.DNE(1,Lt,3,3,"span",13),e.DNE(2,Yt,3,3,"span",13),e.k0s()),2&o){const t=e.XpG().$implicit,i=e.XpG(2);e.R7$(1),e.Y8G("ngIf",i.facets[i.param][t.value]>9999),e.R7$(1),e.Y8G("ngIf",i.facets[i.param][t.value]<=9999)}}function Qt(o,a){if(1&o&&(e.j41(0,"div",15)(1,"span",14),e.EFF(2,"(0)"),e.k0s()()),2&o){const t=e.XpG(3);e.Y8G("hidden",t.noFacets)}}const Kt=function(o,a,t,i,n,s,r){return{"btn-outline-secondary":o,"btn-secondary":a,"btn-success":t,"btn-warning":i,"btn-danger":n,"btn-critical":s,disabled:r}};function Ht(o,a){if(1&o){const t=e.RV6();e.j41(0,"button",11),e.bIt("click",function(n){const r=e.eBV(t).$implicit,l=e.XpG(2);return e.Njj(l.onSelect2(r,n))}),e.EFF(1),e.DNE(2,Xt,3,2,"div",8),e.DNE(3,Qt,3,1,"div",12),e.k0s()}if(2&o){const t=a.$implicit,i=e.XpG(2);e.Y8G("disabled",i.disabled)("ngClass",e.sGs(5,Kt,!t.selected,t.selected&&("T"===t.value||"F"===t.value),t.selected&&"L"===t.value,t.selected&&"M"===t.value,t.selected&&"H"===t.value,t.selected&&"C"===t.value,!i.noFacets&&(!i.facets||!i.facets[i.param]||!i.facets[i.param][t.value]||i.facets[i.param][t.value]<=0))),e.R7$(1),e.SpI(" ",t.name," "),e.R7$(1),e.Y8G("ngIf",i.facets&&i.facets[i.param]&&i.facets[i.param][t.value]),e.R7$(1),e.Y8G("ngIf",!i.facets||!i.facets[i.param]||!i.facets[i.param][t.value])}}function zt(o,a){if(1&o&&(e.j41(0,"div",6),e.DNE(1,Ht,4,13,"button",10),e.k0s()),2&o){const t=e.XpG();e.R7$(1),e.Y8G("ngForOf",t.items)}}let qt=(()=>{class o{constructor(t){this.clearFilterService=t,this.onRangeChanged=new e.bkB,this.onRemoveFilterItem=new e.bkB,this.close=new e.bkB,this.selected={L:!1,M:!1,H:!1,C:!1},this.clearFilterService.clearFilterConfirmed$.subscribe(i=>{i.param===this.param&&(this.selected[i.values[0]]=!1)})}ngAfterViewInit(){}onSelect(t,i){if(!this.disabled){const r={event:i,tab:this.tab,aggregate:!this.isMultiple,iconHtml:this.iconHtml,param:this.param,text:`${this.title}: ${"L"===t?"LOW":"M"===t?"MEDIUM":"H"===t?"HIGH":"CRITICAL"}`,values:[t]};this.isMultiple?(this.selected[t]=!this.selected[t],this.selected[t]?this.onRangeChanged.emit(r):this.onRemoveFilterItem.emit(r)):(this.selected={L:!1,M:!1,H:!1,C:!1},this.selected[t]=!0,this.onRangeChanged.emit(r))}}onSelect2(t,i){if(!this.disabled)if(this.facets&&this.facets[this.param]&&this.facets[this.param][t.value]>0){let r={tab:this.tab,aggregate:!this.isMultiple,iconHtml:this.iconHtml,param:this.param,text:`${this.title}: ${t.name}`,values:[t.value],event:i};this.isMultiple?(t.selected=!t.selected,t.selected?this.onRangeChanged.emit(r):this.onRemoveFilterItem.emit(r)):(this.items.forEac
1h(l=>{l.selected=!1}),t.selected=!0,this.onRangeChanged.emit(r))}else if(this.noFacets){let r={tab:this.tab,aggregate:!this.isMultiple,iconHtml:this.iconHtml,param:this.param,text:`${this.title}: ${t.name}`,values:[t.value]};this.isMultiple?(t.selected=!t.selected,t.selected?this.onRangeChanged.emit(r):this.onRemoveFilterItem.emit(r)):(this.items.forEach(l=>{l.selected=!1}),t.selected=!0,this.onRangeChanged.emit(r))}}closeClick(t){this.close.emit(t)}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(N))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["pix-dropdown-rating-filter3"]],viewQuery:function(i,n){if(1&i&&e.GBs(Et,5),2&i){let s;e.mGM(s=e.lsd())&&(n.dropdownEl=s.first)}},inputs:{tab:"tab",title:"title",param:"param",iconHtml:"iconHtml",isMultiple:"isMultiple",facets:"facets",noFacets:"noFacets",items:"items",disabled:"disabled"},outputs:{onRangeChanged:"onRangeChanged",onRemoveFilterItem:"onRemoveFilterItem",close:"close"},decls:8,vars:3,consts:[[1,"wrapper"],["dropdownEl",""],[1,"title"],[1,"btn","btn-link","p-0","mobile-btn-close",3,"click"],[1,"fa","fa-close"],["class","btn-group","role","group","aria-label","Basic example",4,"ngIf"],["role","group","aria-label","Basic example",1,"btn-group"],["type","button",1,"btn","btn-outline-secondary",3,"ngClass","disabled","click"],[4,"ngIf"],["type","button",1,"btn","btn-outline-secondary",3,"ngClass","click"],["type","button","class","btn",3,"disabled","ngClass","click",4,"ngFor","ngForOf"],["type","button",1,"btn",3,"disabled","ngClass","click"],[3,"hidden",4,"ngIf"],["class","facet",4,"ngIf"],[1,"facet"],[3,"hidden"]],template:function(i,n){1&i&&(e.j41(0,"div",0,1)(2,"div",2),e.EFF(3),e.j41(4,"button",3),e.bIt("click",function(r){return n.closeClick(r)}),e.nrm(5,"i",4),e.k0s()(),e.DNE(6,Ut,10,15,"div",5),e.DNE(7,zt,2,1,"div",5),e.k0s()),2&i&&(e.R7$(3),e.SpI(" ",n.title," "),e.R7$(3),e.Y8G("ngIf",!n.items||n.items.length<=0),e.R7$(1),e.Y8G("ngIf",n.items&&n.items.length>0))},dependencies:[_.YU,_.Sq,_.bT,Tt.U,q.jE],styles:[".btn[_ngcontent-%COMP%]:disabled{cursor:not-allowed}.dropdown-menu[_ngcontent-%COMP%]{min-width:255px}.facet[_ngcontent-%COMP%]{font-size:10px;opacity:.6}.btn[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{font-size:12px;cursor:pointer}.dropdown-menu[_ngcontent-%COMP%]{top:unset;left:unset}.dropdown-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex}.dropdown-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{overflow:hidden;text-overflow:ellipsis}.dropdown-header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px}.dropdown-header[_ngcontent-%COMP%] span.pull-xs-left[_ngcontent-%COMP%]{margin-left:-10px}.dropdown-header[_ngcontent-%COMP%] span.pull-xs-right[_ngcontent-%COMP%]{margin-right:-20px}.dropdown-header[_ngcontent-%COMP%] .inventory-slider[_ngcontent-%COMP%]{margin-top:1.5em}.dropdown-item.active[_ngcontent-%COMP%]{color:#fff!important}.dropdown-item-container[_ngcontent-%COMP%]{max-height:250px;overflow:auto}.dropdown-item-container[_ngcontent-%COMP%]::-webkit-scrollbar{-webkit-appearance:none;width:7px}.dropdown-item-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:4px;background-color:#00000080;-webkit-box-shadow:0 0 1px rgba(255,255,255,.5)}.dropdown-item.input-group[_ngcontent-%COMP%]{border-bottom:1px solid #adadad}.dropdown-item.input-group[_ngcontent-%COMP%] .input-group-addon[_ngcontent-%COMP%], .dropdown-item.input-group[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{border:none;background:#fff;border-radius:0;font-size:12px;border-top-right-radius:.25rem}.dropdown-item.input-group[_ngcontent-%COMP%] .input-group-addon[_ngcontent-%COMP%]{padding-right:0}.dropdown-item.input-group[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{padding-left:10px}.dropdown-item.disabled[_ngcontent-%COMP%], .dropdown-item.disabled[_ngcontent-%COMP%]:hover{cursor:not-allowed!important}.wrapper[_ngcontent-%COMP%]{padding:5px 0 5px 32px;position:relative}.wrapper[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{box-sizing:border-box;width:auto;left:0;right:0;border-top-left-radius:0;
1border-color:#adadad;box-shadow:1px 10px 20px 2px #0006;margin-top:1px;min-width:180px}.wrapper[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .quick-options[_ngcontent-%COMP%]{font-size:10px;margin-left:12px;color:#adadad}.wrapper[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;text-align:left;padding-right:1.25rem}.wrapper[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]:after{position:absolute;right:0;margin-right:10px;margin-top:5px}.wrapper.open[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}.wrapper.open[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]:after{border-top:none;border-bottom:.3em solid}a.btn-load-more[_ngcontent-%COMP%]{padding:0;margin:0}a.btn-load-more[_ngcontent-%COMP%]:hover{text-decoration:underline}.facet[_ngcontent-%COMP%]{font-size:10px;opacity:.6;margin-top:1px}.btn-outline-secondary[_ngcontent-%COMP%]{color:#000!important}.wrapper.open[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{width:200px;padding:15px}.wrapper.open[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]{border-bottom:none;margin-top:10px}.wrapper.open[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%]{display:flex;justify-content:stretch}.wrapper.open[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:5px;width:100%}.wrapper.open[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .btn.btn-outline-secondary[_ngcontent-%COMP%]{color:#000}.btn-group[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]{padding:5px 8px;width:auto}.btn-critical[_ngcontent-%COMP%]{color:#fff;background-color:#d9534f;border-color:#d9534f}@media (max-width: 576px){.btn[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{font-size:16px}}\n\n/*# sourceMappingURL=dropdown-rating-filter3.component.css.map*/"]})}}return o})();var Jt=h(54687),X=h.n(Jt);const Wt=["rangeslider"],Zt=["minField"],en=function(o){return{hidden:o}};let tn=(()=>{class o{constructor(t,i){this.eventBus=t,this.clearFilterService=i,this.fromText="From",this.toText="To",this.step=1,this.isPercent=!1,this.dropdownPosition="left",this.onRangeChanged=new e.bkB,this.close=new e.bkB,this.prevMaxValue=-1,this.prevMinValue=-1,this.clearFilterService.clearFilterConfirmed$.subscribe(n=>{n.param===this.param&&(this.maxValue=this.initMaxValue,this.minValue=this.initMinValue,this.fromValue=this.initMinValue,this.toValue=this.initMaxValue,this.prevMaxValue=-1,this.prevMinValue=-1,this.slider.update({from:this.minValue,to:this.maxValue}))})}ngOnInit(){this.initMaxValue=this.maxValue,this.initMinValue=this.minValue,this.initFromValue=this.fromValue,this.initToValue=this.toValue}ngOnChanges(t){t.initMaxValue&&t.initMaxValue.currentValue&&(this.initMaxValue=parseFloat(t.initMaxValue.currentValue.toFixed(2)),this.maxValue=this.initMaxValue,5e3==this.toValue&&(this.toValue=this.initMaxValue,this.initToValue=this.initMaxValue),this.initMaxValue>1e4&&(this.step=Math.round(this.initMaxValue/1e3)),this.slider&&this.slider.update({max:this.initMaxValue,to:this.toValue,step:this.step}))}rangeChange(t){if(this.toValue>this.initMaxValue&&(this.toValue=this.initMaxValue),this.fromValue>this.initMaxValue&&(this.fromValue=this.initMaxValue),this.fromValue<this.initMinValue&&(this.fromValue=this.initMinValue),this.fromValue<=this.toValue&&this.toValue>=this.fromValue&&(this.prevMinValue!=this.fromValue||this.prevMaxValue!=this.toValue)){let i="";if(this.isPercent)i=`${this.title}: ${this.fromValue}% - ${this.toValue}%`;else{let r=this.fromValue>999?X()(this.fromValue).format("0a"):this.fromValue,l=this.toValue>999?X()(this.toValue).format("0a"):this.toValue;i=`${this.title}: ${`${r} - ${l}`.toUpperCase()}`}this.onRangeChanged.emit({event:t,tab:this.tab,aggregate:!0,iconHtml:this.iconHtml,param:this.param,text:i,values:[`[${this.isPercent?this.fromValue/100:this.fromValue},${this.isPercent?this.toValue/100:this.toValue}]`]}),this.prevMinValue=this.fromValue,this.prevMaxValue=this.toValue,this.slider.update({from:this.fromValue,to:this.toValue})}}onKeyUpInput(t){if(Math.floor(t)!==t){let i=t.toString().split(".")[1].length;return i>2&&(i=2),t.toFixed(i)}return t}ngAfterViewInit(){setTimeout(t=>{jQuery(this.rangeSlider.nativeElement).ionRangeSlider({type:"double",hide_from_to:!0,hide_min_max:!0,min:this.minValue,max:this.maxValue,from:this.fromValue>0?this.fromValue:this.minValue,to:this.toValue>0?this.toValue:this.maxValue,step:this.step,extra_classes:"pix-slider",onChange:i=>{this.fromValue=i.from,this.toValue=i.to,this.fromValue!==this.initFromValue||this.toValue!==this.initToValue?(this.valuesChange=!0,jQuery(this.rangeSlider.nativeElement).parent().removeClass("idle")):(this.valuesChange=!1,jQuery(this.rangeSlider.nativeElement).parent().addClass("idle"))}}),this.slider=jQuery(this.rangeSlider.nativeElement).data("ionRangeSlider"),this.slider.dragging=!1},100)}triggerKeyEnter(t){jQuery.Event("keydown").which=13,jQuery(this.minField.nativeElement).focus(),jQuery(this.minField.nativeElement).trigger(jQuery.Event("keydown",{which:13})),this.rangeChange(t)}
1closeClick(t){this.close.emit(t)}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(Y.W),e.rXU(N))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["pix-dropdown-range-slider3"]],viewQuery:function(i,n){if(1&i&&(e.GBs(Wt,5),e.GBs(Zt,5)),2&i){let s;e.mGM(s=e.lsd())&&(n.rangeSlider=s.first),e.mGM(s=e.lsd())&&(n.minField=s.first)}},inputs:{fromText:"fromText",toText:"toText",tab:"tab",step:"step",title:"title",param:"param",minValue:"minValue",maxValue:"maxValue",iconHtml:"iconHtml",isPercent:"isPercent",dropdownPosition:"dropdownPosition",fromValue:"fromValue",toValue:"toValue",disabled:"disabled",initMaxValue:"initMaxValue",initMinValue:"initMinValue"},outputs:{onRangeChanged:"onRangeChanged",close:"close"},features:[e.OA$],decls:16,vars:8,consts:[[1,"wrapper"],["dropdownEl",""],[1,"title"],[1,"btn","btn-link","p-0","mobile-btn-close",3,"click"],[1,"fa","fa-close"],[1,"btn","btn-secondary","btn-sm","applyBtn","pull-xs-right",3,"ngClass","click"],[1,"text-xs-center","value-inputs",3,"click"],["type","number",1,"pull-xs-left",3,"ngModel","step","ngModelChange","keydown.enter","keyup"],["minField",""],["type","number",1,"pull-xs-right",3,"ngModel","step","ngModelChange","keydown.enter","keyup"],[1,"inventory-slider","idle",3,"click"],["type","text","name","example_name","value","",1,"inventory-slider"],["rangeslider",""]],template:function(i,n){1&i&&(e.j41(0,"div",0,1)(2,"div",2),e.EFF(3),e.j41(4,"button",3),e.bIt("click",function(r){return n.closeClick(r)}),e.nrm(5,"i",4),e.k0s()(),e.j41(6,"button",5),e.bIt("click",function(r){return n.rangeChange(r)}),e.EFF(7,"Apply"),e.k0s(),e.j41(8,"div",6),e.bIt("click",function(r){return r.stopPropagation()}),e.j41(9,"input",7,8),e.bIt("ngModelChange",function(r){return n.fromValue=r})("keydown.enter",function(r){return n.rangeChange(r)})("keyup",function(){return n.fromValue=n.onKeyUpInput(n.fromValue)}),e.k0s(),e.EFF(11,"\xa0-\xa0 "),e.j41(12,"input",9),e.bIt("ngModelChange",function(r){return n.toValue=r})("keydown.enter",function(r){return n.rangeChange(r)})("keyup",function(){return n.toValue=n.onKeyUpInput(n.toValue)}),e.k0s()(),e.j41(13,"div",10),e.bIt("click",function(r){return r.stopPropagation()}),e.nrm(14,"input",11,12),e.k0s()()),2&i&&(e.R7$(3),e.SpI(" ",n.title," "),e.R7$(3),e.Y8G("ngClass",e.eq3(6,en,!n.valuesChange)),e.R7$(3),e.FS9("step",n.step),e.Y8G("ngModel",n.fromValue),e.R7$(3),e.FS9("step",n.step),e.Y8G("ngModel",n.toValue))},dependencies:[_.YU,C.me,C.Q0,C.BC,C.vS],styles:[".dropdown-menu[_ngcontent-%COMP%]{min-width:255px}.facet[_ngcontent-%COMP%]{font-size:10px;opacity:.6}.btn[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{font-size:12px;cursor:pointer}.dropdown-menu[_ngcontent-%COMP%]{top:unset;left:unset}.dropdown-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex}.dropdown-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{overflow:hidden;text-overflow:ellipsis}.dropdown-header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px}.dropdown-header[_ngcontent-%COMP%] span.pull-xs-left[_ngcontent-%COMP%]{margin-left:-10px}.dropdown-header[_ngcontent-%COMP%] span.pull-xs-right[_ngcontent-%COMP%]{margin-right:-20px}.dropdown-header[_ngcontent-%COMP%] .inventory-slider[_ngcontent-%COMP%]{margin-top:1.5em}.dropdown-item.active[_ngcontent-%COMP%]{color:#fff!important}.dropdown-item-container[_ngcontent-%COMP%]{max-height:250px;overflow:auto}.dropdown-item-container[_ngcontent-%COMP%]::-webkit-scrollbar{-webkit-appearance:none;width:7px}.dropdown-item-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:4px;background-color:#00000080;-webkit-box-shadow:0 0 1px rgba(255,255,255,.5)}.dropdown-item.input-group[_ngcontent-%COMP%]{border-bottom:1px solid #adadad}.dropdown-item.input-group[_ngcontent-%COMP%] .input-group-addon[_ngcontent-%COMP%], .dropdown-item.input-group[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{border:none;background:#fff;border-radius:0;font-size:12px}.dropdown-item.input-group[_ngcontent-%COMP%] .input-group-addon[_ngcontent-%COMP%]{padding-right:0}.dropdown-item.input-group[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{padding-left:10px}.dropdown-item.disabled[_ngcontent-%COMP%], .dropdown-item.disabled[_ngcontent-%COMP%]:hover{cursor:not-allowed!important}
1.wrapper[_ngcontent-%COMP%]{max-width:200px;position:relative;text-align:right;max-height:90px;overflow:hidden;white-space:nowrap;margin-left:auto;margin-right:auto}.wrapper[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{box-sizing:border-box;width:auto;left:0;right:0;border-top-left-radius:0;border-color:#adadad;box-shadow:1px 10px 20px 2px #0006;margin-top:1px;min-width:180px}.wrapper[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .quick-options[_ngcontent-%COMP%]{font-size:10px;margin-left:12px;color:#adadad}.wrapper[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;text-align:left;padding-right:1.25rem}.wrapper[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]:after{position:absolute;right:0;margin-right:10px;margin-top:5px}.wrapper.open[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}.wrapper.open[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]:after{border-top:none;border-bottom:.3em solid}.hidden[_ngcontent-%COMP%]{visibility:hidden}a.btn-load-more[_ngcontent-%COMP%]{padding:0;margin:0}a.btn-load-more[_ngcontent-%COMP%]:hover{text-decoration:underline}.facet[_ngcontent-%COMP%]{font-size:10px;opacity:.6;margin-top:1px}.wrapper.open[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{width:200px;padding:15px}.wrapper.open[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]{border-bottom:none;margin-top:10px}.wrapper.open[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%]{display:flex;justify-content:stretch}.wrapper.open[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{color:#000;background:none;padding:5px;width:100%}input[_ngcontent-%COMP%]{font-size:.85em;max-width:80px}.applyBtn[_ngcontent-%COMP%]{padding:2px 8px;background:#99caec;font-weight:700;border-color:#ccc}.value-inputs[_ngcontent-%COMP%]{margin-top:4px;display:flex;justify-content:space-between}.irs-hidden-input[_ngcontent-%COMP%]{border:none!important}span.irs[_ngcontent-%COMP%], .inventory-slider[_ngcontent-%COMP%]{margin-top:0}.inventory-slider[_ngcontent-%COMP%] .irs-bar[_ngcontent-%COMP%]{background:#99caec}.inventory-slider.idle[_ngcontent-%COMP%] .pix-slider[_ngcontent-%COMP%] .irs-bar[_ngcontent-%COMP%]{background:#7083a3}\n\n/*# sourceMappingURL=dropdown-range-slider3.component.css.map*/"]})}}return o})();const nn=function(o){return{hidden:o}};let on=(()=>{class o{constructor(t,i){this.eventBus=t,this.clearFilterService=i,this.fromText="From",this.toText="To",this.step=1,this.isPercent=!1,this.onRangeChanged=new e.bkB,this.close=new e.bkB,this.prevMaxValue=-1,this.prevMinValue=-1,this.clearFilterService.clearFilterConfirmed$.subscribe(n=>{n.param===this.param&&(this.maxValue=this.initMaxValue,this.minValue=this.initMinValue,this.fromValue=this.initMinValue,this.toValue=this.initMaxValue)})}ngOnInit(){this.initMaxValue=this.maxValue,this.initMinValue=this.minValue}ngAfterViewInit(){}ngOnChanges(t){}rangeChange(t){this.toValue>this.initMaxValue&&(this.toValue=this.initMaxValue),this.fromValue>this.initMaxValue&&(this.fromValue=this.initMaxValue),this.fromValue<this.initMinValue&&(this.fromValue=this.initMinValue);let i="";if(this.isPercent)i=`${this.title}: ${this.fromValue}% - ${this.toValue}%`;else{let r=this.fromValue>999?X()(this.fromValue).format("0a"):this.fromValue,l=this.toValue>999?X()(this.toValue).format("0a"):this.toValue;i=`${this.title}: ${`${r} - ${l}`.toUpperCase()}`}this.onRangeChanged.emit({event:t,tab:this.tab,aggregate:!0,iconHtml:this.iconHtml,param:this.param,text:i,values:[`[${this.isPercent?this.fromValue/100:this.fromValue},${this.isPercent?this.toValue/100:this.toValue}]`]}),this.prevMinValue=this.fromValue,this.prevMaxValue=this.toValue,this.valuesChange=!1}onChangeFromInput(){this.fromValue<this.initMinValue?this.fromValue=this.initMinValue:this.fromValue>this.initMaxValue&&(this.fromValue=this.initMaxValue),this.toValue=this.maxValue-this.fromValue,this.valuesChange=this.prevMinValue!=this.fromValue}onChangeToInput(){this.toValue>this.initMaxValue?this.toValue=this.initMaxValue:this.toValue<this.initMinValue&&(this.toValue=this.initMinValue),this.fromValue=this.maxValue-this.toValue,this.valuesChange=this.prevMinValue!=this.fromValue}closeClick(t){this.close.emit(t)}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(Y.W),e.rXU(N))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["pix-dropdown-range-ratio"]],inputs:{fromText:"fromText",toText:"toText",tab:"tab",step:"step",title:"title",param:"param",minValue:"minValue",maxValue:"maxValue",iconHtml:"iconHtml",isPercent:"isPercent",fromValue:"fromValue",toValue:"toValue",initMaxValue:"initMaxValue",initMinValue:"initMinValue"},outputs:{onRangeChanged:"onRangeChanged",close:"close"},features:[e.OA$],decls:12,vars:8,consts:[[1,"wrapper"],["dropdownEl",""],[1,"title"],[1,"btn","btn-link","p-0","mobile-btn-close",3,"click"],[1,"fa","fa-close"],[1,"btn","btn-secondary","btn-sm","applyBtn","pull-xs-right",3,"ngClass","click"],[1,"text-xs-center","value-inputs",3,"click"],["type","number",1,"pull-xs-left",3,"ngModel","step","ngModelChange","keydown.enter","keyup","change"],["type","number",1,"pull-xs-right",3,"ngModel","step","ngModelChange","keydown.enter","keyup","change"]],template:function(i,n){1&i&&(e.j41(0,"div",0,1)(2,"div",2),e.EFF(3),e.j41(4,"button",3),e.bIt("click",function(r){return n.closeClick(r)}
1),e.nrm(5,"i",4),e.k0s()(),e.j41(6,"button",5),e.bIt("click",function(r){return n.rangeChange(r)}),e.EFF(7,"Apply"),e.k0s(),e.j41(8,"div",6),e.bIt("click",function(r){return r.stopPropagation()}),e.j41(9,"input",7),e.bIt("ngModelChange",function(r){return n.fromValue=r})("keydown.enter",function(r){return n.rangeChange(r)})("keyup",function(){return n.onChangeFromInput()})("change",function(){return n.onChangeFromInput()}),e.k0s(),e.EFF(10,"\xa0-\xa0 "),e.j41(11,"input",8),e.bIt("ngModelChange",function(r){return n.toValue=r})("keydown.enter",function(r){return n.rangeChange(r)})("keyup",function(){return n.onChangeToInput()})("change",function(){return n.onChangeToInput()}),e.k0s()()()),2&i&&(e.R7$(3),e.SpI(" ",n.title," "),e.R7$(3),e.Y8G("ngClass",e.eq3(6,nn,!n.valuesChange)),e.R7$(3),e.FS9("step",n.step),e.Y8G("ngModel",n.fromValue),e.R7$(2),e.FS9("step",n.step),e.Y8G("ngModel",n.toValue))},dependencies:[_.YU,C.me,C.Q0,C.BC,C.vS],styles:[".btn[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{font-size:12px;cursor:pointer}.wrapper[_ngcontent-%COMP%]{max-width:200px;position:relative;text-align:right;max-height:90px;overflow:hidden;white-space:nowrap;margin-left:auto;margin-right:auto}.hidden[_ngcontent-%COMP%]{visibility:hidden}input[_ngcontent-%COMP%]{font-size:.85em;max-width:80px}.applyBtn[_ngcontent-%COMP%]{padding:2px 8px;background:#99caec;font-weight:700;border-color:#ccc}.value-inputs[_ngcontent-%COMP%]{margin-top:4px;display:flex;justify-content:space-between}\n\n/*# sourceMappingURL=dropdown-range-ratio.component.css.map*/"]})}}return o})();var sn=h(33900);let rn=(()=>{class o{constructor(t){this.model=t,this.onDebounce=new e.bkB,this.debounceTime=500,this.isFirstChange=!0,this.ngUnsubscribe=new K.B}ngOnInit(){this.model.valueChanges.pipe((0,sn.Q)(this.ngUnsubscribe),(0,ie.B)(this.debounceTime),(0,oe.F)()).subscribe(t=>{this.isFirstChange?this.isFirstChange=!1:this.onDebounce.emit(t)})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(C.vO))}}static{this.\u0275dir=e.FsC({type:o,selectors:[["","ngModel","","debounce",""]],inputs:{debounceTime:["debounce","debounceTime"]},outputs:{onDebounce:"onDebounce"}})}}return o})();function an(o,a){if(1&o&&e.nrm(0,"img",21),2&o){const t=e.XpG().$implicit;e.Mz_("alt","",t.text," Icon"),e.BMQ("src",t.icon,e.B4B)}}function ln(o,a){if(1&o&&(e.j41(0,"span",22),e.EFF(1),e.nI1(2,"num"),e.k0s()),2&o){const t=e.XpG().$implicit,i=e.XpG(2);e.R7$(1),e.SpI(" (",e.bMT(2,1,i.facets[i.item.param][t.value]),") ")}}function pn(o,a){1&o&&(e.j41(0,"span",22),e.EFF(1,"(0)"),e.k0s())}const cn=function(o,a){return{selected:o,disabled:a}};function dn(o,a){if(1&o){const t=e.RV6();e.j41(0,"li")(1,"a",16),e.bIt("click",function(n){const r=e.eBV(t).$implicit,l=e.XpG(2);return e.Njj(l.onDropdownFilterSelect(l.item,r,n))}),e.nrm(2,"img",17),e.DNE(3,an,1,2,"img",18),e.nrm(4,"span",19),e.EFF(5," \xa0 "),e.DNE(6,ln,3,3,"span",20),e.DNE(7,pn,2,0,"span",20),e.k0s()()}if(2&o){const t=a.$implicit,i=e.XpG(2);e.R7$(1),e.Y8G("ngClass",e.l_i(6,cn,i.isSelectedFilter(i.item,t),!(i.noFacets||i.facets&&i.facets[i.item.param]&&i.facets[i.item.param][t.value])))("title",t.text),e.R7$(2),e.Y8G("ngIf",t.icon&&t.icon.length>0),e.R7$(1),e.Y8G("innerHTML",t.text,e.npT),e.R7$(2),e.Y8G("ngIf",!i.noFacets&&i.facets&&i.facets[i.item.param]&&i.facets[i.item.param][t.value]>=0),e.R7$(1),e.Y8G("ngIf",!(i.noFacets||i.facets&&i.facets[i.item.param]&&i.facets[i.item.param][t.value]))}}function un(o,a){if(1&o&&(e.j41(0,"span",23),e.EFF(1,"No results found."),e.k0s()),2&o){const t=e.XpG(2);e.Y8G("hidden",t.item.optionsLoading)}}function mn(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",3)(1,"div",4)(2,"button",5),e.bIt("click",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.close(n))}),e.nrm(3,"i",6),e.k0s(),e.EFF(4),e.k0s(),e.j41(5,"div",7)(6,"div",8),e.nrm(7,"img",9),e.k0s(),e.j41(8,"input",10),e.bIt("ngModelChange",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.item.searchString=n)})("onDebounce",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.showOptions(n.item))}),e.k0s()(),e.j41(9,"div")(10,"ul"),e.DNE(11,dn,8,9,"li",11),e.k0s(),e.j41(12,"a",12),e.nrm(13,"i",13),e.j41(14,"span",14),e.EFF(15,"Loading..."),e.k0s(),e.DNE(16,un,2,1,"span",15),e.k0s()()()}if(2&o){const t=e.XpG();e.R7$(4),e.SpI(" ",null==t.item?null:t.item.label," "),e.R7$(1),e.Y8G("hidden",t.item.hideSearch),e.R7$(3),e.Y8G("debounce",500)("ngModel",t.item.searchString),e.R7$(1),e.BMQ("class","items-cont "+t.item.param),e.R7$(2),e.Y8G("ngForOf",t.item.options),e.R7$(1),e.Y8G("hidden",!t.item.optionsLoading),e.R7$(4),e.Y8G("ngIf",t.item.options.length<=0)}}function gn(o,a){if(1&o){const t=e.RV6();e.j41(0,"pix-dropdown-range-slider3",24),e.bIt("minValueChange",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.item.minValue=n)})("close",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.close(n))})("maxValueChange",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.item.maxValue=n)})("fromValueChange",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.item.fromValue=n)})("toValueChange",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.item.toValue=n)})("onRangeChanged",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.onRangeChanged(s.item,n))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("disabled",t.loadingData)("tab","siteinfo")("title",t.item.label)("iconHtml","")("initMaxValue",t.item.initMaxValue)("minValue",t.item.minValue)("maxValue",t.item.maxValue)("fromValue",t.item.fromValue)("toValue",t.item.toValue)("step",t.item.rangeStep)("isPercent",t.item.rangePercent)("param",t.item.param)}}function hn(o,a){if(1&o){const t=e.RV6();e.j41(0,"pix-dropdown-rating-filter3",25),e.bIt("close",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.close(n))})("onRangeChanged",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.onRangeChanged(s.item,n))})("onRemoveFilterItem",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.onRangeChanged(s.item,n))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("disabled",t.loadingData)("facets",t.facets)("items",t.item.options)("tab","siteinfo")("noFacets",t.noFacets)("param",t.item.param)("title",t.item.label)("isMultiple",!0)}}function fn(o,a){if(1&o){const t=e.RV6();e.j41(0,"pix-dropdown-range-ratio",24),e.bIt("minValueChange",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.item.minValue=n)})("close",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.close(n))})("maxValueChange",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.item.maxValue=n)})("fromValueChange",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.item.fromValue=n)})("toValueChange",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.item.toValue=n)})("onRangeChanged",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.onRangeChanged(s.item,n))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("disabled",t.loadingData)("tab","siteinfo")("title",t.item.label)("iconHtml","")("initMaxValue",t.item.initMaxValue)("minValue",t.item.minValue)("maxValue",t.item.maxValue)("fromValue",t.item.fromValue)("toValue",t.item.toValue)("step",t.item.rangeStep)("isPercent",t.item.rangePercent)("param",t.item.param)}}let _n=(()=>{class o{constructor(t,i,n){this._domainService=t,this._appService=i,this._route=n}ngOnInit(){this.onDropdownFilterSelectInvoker.subscribe(t=>{this.onDropdownFilterSelect(t.tabbedFilterItem,t.option,t.event)})}close(t){jQuery(t.target).parents(".level2.collapse").parents(".card.level2").find('[data-toggle="collapse"]').click()}closeWithDelay(t){setTimeout(()=>{this.close(t)},300)}isSelectedFilter(t,i){let n=null;return this.selectedFilterValues&&this.selectedFilterValues.length>0&&(n=this.selectedFilterValues.filter(s=>s.param===t.param&&s.value===i.value)),!!(n&&n.length>0)}onDropdownFilterSelect(t,i,n){if(n&&n.stopPropagation(),!this.loadingData&&(this.noFacets||this.facets&&this.facets[t.param]&&this.facets[t.param][i.value])){let s=!1;const r=[],l=i.value,p=i.text;
1this.selectedFilterValues.forEach(c=>{t.multiple?c.param===t.param&&c.value===l?s=!0:r.push(c):c.param===t.param?(c.value!==l&&(c.value=l,c.valueLabel=p,r.push(c)),s=!0):r.push(c)}),s||r.push({param:t.param,value:l,valueLabel:p,label:t.label}),this._appService.excludeFacetParam=t.param,this.routeFilterValuesUpdater.emit(r)}this.close(n)}onRangeChanged(t,i){if(!this.loadingData){let n=!1;const s=[],r=i.values[0],l=i.text;this.selectedFilterValues.forEach(p=>{t.multiple?p.param===t.param&&p.value===r?n=!0:s.push(p):p.param===t.param?(p.value!==r&&(p.value=r,p.valueLabel=l,s.push(p)),n=!0):s.push(p)}),n||s.push({param:t.param,value:i.values[0],valueLabel:i.text,label:t.label}),this._appService.excludeFacetParam=t.param,this.routeFilterValuesUpdater.emit(s),this.closeWithDelay(i.event)}}showOptions(t){this.showOptionsInvoker.emit({tabbedFilterItem:t})}static{this.\u0275fac=function(i){return new(i||o)(e.rXU($.i),e.rXU(A.d),e.rXU(w.nX))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-side-filter-item"]],inputs:{item:"item",tabbedGroup:"tabbedGroup",currentConfig:"currentConfig",selectedFilterValues:"selectedFilterValues",cannedreports:"cannedreports",loadingData:"loadingData",noFacets:"noFacets",facets:"facets",currentCannedReportUpdater:"currentCannedReportUpdater",importedFileNameUpdater:"importedFileNameUpdater",facetsUpdater:"facetsUpdater",showOptionsInvoker:"showOptionsInvoker",routeFilterValuesUpdater:"routeFilterValuesUpdater",onDropdownFilterSelectInvoker:"onDropdownFilterSelectInvoker"},decls:4,vars:4,consts:[["class","item-list",4,"ngIf"],[3,"disabled","tab","title","iconHtml","initMaxValue","minValue","maxValue","fromValue","toValue","step","isPercent","param","minValueChange","close","maxValueChange","fromValueChange","toValueChange","onRangeChanged",4,"ngIf"],[3,"disabled","facets","items","tab","noFacets","param","title","isMultiple","close","onRangeChanged","onRemoveFilterItem",4,"ngIf"],[1,"item-list"],[1,"title"],[1,"btn","btn-link","btn-block","text-left","p-0",3,"click"],[1,"fa","fa-arrow-left"],[1,"input-group","search-keywords",3,"hidden"],[1,"input-group-prepend"],["src","/assets/images/icon-search-keywords.svg","alt","Search Icon"],["autofocus","","type","text","placeholder","Input...","aria-describedby","basic-addon2",1,"form-control","search-keywords",3,"debounce","ngModel","ngModelChange","onDebounce"],[4,"ngFor","ngForOf"],[1,"btn","btn-link","btn-sm","btn-block","text-xs-center","disabled",3,"hidden"],[1,"fa","fa-spinner","fa-spin","fa-fw"],[1,"sr-only"],["class","no-results-found",3,"hidden",4,"ngIf"],["enTooltip","","data-tooltip-placement","left",3,"ngClass","title","click"],["src","/assets/images/icon-indicator-check.png","alt","Check Icon",1,"check-icon"],["onerror","this.style.opacity=0;this.style.fontSize=0;","width","16","height","16",3,"alt",4,"ngIf"],[3,"innerHTML"],["class","facet",4,"ngIf"],["onerror","this.style.opacity=0;this.style.fontSize=0;","width","16","height","16",3,"alt"],[1,"facet"],[1,"no-results-found",3,"hidden"],[3,"disabled","tab","title","iconHtml","initMaxValue","minValue","maxValue","fromValue","toValue","step","isPercent","param","minValueChange","close","maxValueChange","fromValueChange","toValueChange","onRangeChanged"],[3,"disabled","facets","items","tab","noFacets","param","title","isMultiple","close","onRangeChanged","onRemoveFilterItem"]],template:function(i,n){1&i&&(e.DNE(0,mn,17,8,"div",0),e.DNE(1,gn,1,12,"pix-dropdown-range-slider3",1),e.DNE(2,hn,1,8,"pix-dropdown-rating-filter3",2),e.DNE(3,fn,1,12,"pix-dropdown-range-ratio",1)),2&i&&(e.Y8G("ngIf","dropdown"===n.item.type),e.R7$(1),e.Y8G("ngIf","range"===n.item.type),e.R7$(1),e.Y8G("ngIf","rating"===n.item.type),e.R7$(1),e.Y8G("ngIf","range-ratio"===n.item.type))},dependencies:[z.d,qt,tn,on,_.YU,_.Sq,_.bT,C.me,C.BC,C.vS,rn,q.jE]})}}return o})();var vn=h(19127);const yn=["mobileBtnClose"];function Cn(o,a){if(1&o){const t=e.RV6();e.j41(0,"a",19),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.clearSearchFilters())}),e.nrm(1,"i",20),e.k0s()}}function Sn(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",26)(1,"div",27)(2,"h5",28)(3,"a",29),e.bIt("click",function(){const s=e.eBV(t).$implicit,r=e.XpG(3);return e.Njj(r.showOptions(s))}),e.j41(4,"div",30),e.EFF(5),e.k0s()()()(),e.j41(6,"div",31)(7,"div",32)(8,"app-side-filter-item",33),e.bIt("closeMobileNav",function(n){e.eBV(t);const s=e.XpG(3);return e.Njj(s.closeMobileNav(n))}),e.k0s()()()()}if(2&o){const t=a.$implicit,i=e.XpG(3);e.Y8G("hidden",null==t?null:t.hidden),e.R7$(1),e.BMQ("id","heading-"+t.param),e.R7$(2),e.BMQ("href","#collapse-"+t.param,e.B4B)("aria-controls","collapse-"+t.param),e.R7$(2),e.JRh(t.label),e.R7$(1),e.BMQ("id","collapse-"+t.param)("aria-labelledby","heading-"+t.param),e.R7$(2),e.Y8G("item",t)("tabbedGroup",i.tabbedGroup)("currentConfig",i.currentConfig)("selectedFilterValues",i.selectedFilterValues)("cannedreports",i.cannedreports)("loadingData",i.loadingData)("noFacets",
1i.noFacets)("facets",i.facets)("currentCannedReportUpdater",i.currentCannedReportUpdater)("importedFileNameUpdater",i.importedFileNameUpdater)("facetsUpdater",i.facetsUpdater)("showOptionsInvoker",i.showOptionsInvoker)("routeFilterValuesUpdater",i.routeFilterValuesUpdater)("onDropdownFilterSelectInvoker",i.onDropdownFilterSelectInvoker)}}function bn(o,a){if(1&o&&(e.j41(0,"div",24),e.DNE(1,Sn,9,21,"div",25),e.k0s()),2&o){const t=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",t.foundFilters)}}function kn(o,a){1&o&&(e.j41(0,"ul",34)(1,"li",35)(2,"a",36),e.EFF(3,"No filters found."),e.k0s()()())}function Rn(o,a){if(1&o&&(e.j41(0,"div",21)(1,"h6",13),e.EFF(2," Searched Filters "),e.k0s(),e.DNE(3,bn,2,1,"div",22),e.DNE(4,kn,4,0,"ul",23),e.k0s()),2&o){const t=e.XpG();e.R7$(3),e.Y8G("ngIf",(null==t.foundFilters?null:t.foundFilters.length)>0),e.R7$(1),e.Y8G("ngIf",(null==t.foundFilters?null:t.foundFilters.length)<=0)}}const wn=function(o){return{active:o}},Fn=function(){return[]};function xn(o,a){if(1&o){const t=e.RV6();e.j41(0,"li",39)(1,"div",40)(2,"a",41),e.bIt("click",function(){const s=e.eBV(t).$implicit,r=e.XpG(2);return e.Njj(r.importFileClick(s.bulkUploadReportId))}),e.j41(3,"div",42)(4,"div",43),e.EFF(5),e.j41(6,"a",44),e.bIt("click",function(){e.eBV(t);const n=e.XpG(2);return e.Njj(n.deleteImportedFile(n.bulkUploadReportId))}),e.nrm(7,"i",45),e.k0s()(),e.j41(8,"div",46),e.EFF(9),e.nI1(10,"duration"),e.k0s()()()()()}if(2&o){const t=a.$implicit,i=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.eq3(8,wn,t.bulkUploadReportId===i.bulkUploadReportId))("routerLink",e.lJ4(10,Fn)),e.R7$(3),e.SpI(" ",null==t?null:t.importedFileName," "),e.R7$(4),e.SpI("",e.brH(10,4,(null==t?null:t.expiresOn)-i.currentTimeMills,"ms","ddhhmmssShort")," left")}}function Mn(o,a){if(1&o&&(e.j41(0,"div")(1,"h6",13),e.EFF(2," Imported "),e.k0s(),e.j41(3,"ul",37),e.DNE(4,xn,11,11,"li",38),e.k0s()()),2&o){const t=e.XpG();e.R7$(4),e.Y8G("ngForOf",t.importList)}}function Pn(o,a){1&o&&(e.qex(0),e.EFF(1,"app"),e.bVm())}function In(o,a){1&o&&(e.qex(0),e.EFF(1,"domain"),e.bVm())}function Dn(o,a){1&o&&(e.qex(0),e.EFF(1,"ctv app"),e.bVm())}function On(o,a){1&o&&(e.qex(0),e.EFF(1,"s"),e.bVm())}function Vn(o,a){1&o&&(e.j41(0,"h6",13),e.EFF(1," Presets "),e.k0s())}function Tn(o,a){if(1&o){const t=e.RV6();e.j41(0,"li",56)(1,"a",57),e.bIt("click",function(){const s=e.eBV(t).$implicit,r=e.XpG(3);return e.Njj(r.loadPreset(s))}),e.EFF(2),e.j41(3,"a",58),e.bIt("click",function(n){const r=e.eBV(t).$implicit,l=e.XpG(3);return e.Njj(l.deletePreset(n,r))}),e.nrm(4,"i",45),e.k0s()()()}if(2&o){const t=a.$implicit;e.R7$(2),e.SpI(" ",null==t?null:t.title," ")}}function En(o,a){if(1&o&&(e.qex(0),e.j41(1,"ul",34)(2,"li",49)(3,"div",40)(4,"a",50),e.EFF(5," My Presets "),e.nrm(6,"i",51)(7,"i",52),e.k0s(),e.j41(8,"div",53)(9,"ul",54),e.DNE(10,Tn,5,1,"li",55),e.k0s()()()()(),e.bVm()),2&o){const t=e.XpG(2);e.R7$(10),e.Y8G("ngForOf",t.presetsList)}}const jn=function(o){return{disabled:o}};function Gn(o,a){if(1&o){const t=e.RV6();e.j41(0,"li",35)(1,"a",62),e.bIt("click",function(){const s=e.eBV(t).$implicit,r=e.XpG(4);return e.Njj(r.cannedClick(s))}),e.j41(2,"div",30),e.EFF(3),e.k0s()()()}if(2&o){const t=a.$implicit;e.R7$(1),e.Y8G("ngClass",e.eq3(2,jn,!(null!=t&&t.filters||null!=t&&t.mainFilters))),e.R7$(2),e.JRh(t.title)}}function An(o,a){if(1&o&&(e.j41(0,"ul",60),e.DNE(1,Gn,4,4,"li",61),e.k0s()),2&o){const t=a.$implicit;e.R7$(1),e.Y8G("ngForOf",t.reports)}}function $n(o,a){if(1&o&&(e.qex(0),e.DNE(1,An,2,1,"ul",59),e.bVm()),2&o){const t=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",t.cannedreports)}}function Nn(o,a){if(1&o&&(e.j41(0,"div",47),e.DNE(1,Vn,2,0,"h6",48),e.DNE(2,En,11,1,"ng-container",11),e.DNE(3,$n,2,1,"ng-container",11),e.k0s()),2&o){const t=e.XpG();e.R7$(1),e.Y8G("ngIf",(null==t.presetsList?null:t.presetsList.length)>0||(null==t.cannedreports?null:t.cannedreports.length)),e.R7$(1),e.Y8G("ngIf",(null==t.presetsList?null:t.presetsList.length)>0),e.R7$(1),e.Y8G("ngIf",t.cannedreports&&(null==t.cannedreports?null:t.cannedreports.length)>0)}}const Bn=function(o,a){return{collapsed:o,selected:a}};function Un(o,a){if(1&o&&(e.j41(0,"a",74),e.EFF(1),e.nrm(2,"i",52)(3,"i",51),e.k0s()),2&o){const t=e.XpG(2),i=t.index,n=t.$implicit,s=e.XpG(2).index;e.FCK("href","#sidefilterCollapse2",s,"",i,"",e.B4B),e.Y8G("ngClass",e.l_i(4,Bn,n.collapsed,n.selected)),e.R7$(1),e.SpI(" ",n.label," ")}}const Ln=function(o,a){return{"pl-0":o,"py-4px":a}},Yn=function(o){return{"font-weight-600":o}};function Xn(o,a){if(1&o){const t=e.RV6();e.qex(0),e.j41(1,"div",76)(2,"h5",28)(3,"a",77),e.bIt("click",function(){e.eBV(t);const n=e.XpG().$implicit,s=e.XpG(2).$implicit,r=e.XpG(4);return e.Njj(r.showGroupOptions(s,n))}),e.EFF(4),e.k0s(),e.nrm(5,"img",78),e.k0s()(),e.j41(6,"div",79)(7,"div",32),e.nrm(8,"app-side-filter-item",80),e.k0s()(),e.bVm()}if(2&o){const t=e.XpG().$implicit,i=e.XpG(2).$implicit,n=e.XpG(4);e.R7$(1),e.Y8G("ngClass",e.l_i(23,Ln,1===(null==i||null==i.items?null:i.items.length),1===(null==i||null==i.items?null:i.items.length))),e.BMQ("id","heading"+i.key+t.param),e.R7$(2),e.Y8G("ngClass",e.eq3(26,Yn,1===(null==i||null==i.items?null:i.items.length))),e.BMQ("data-parent","#accordion"+i.key)("href","#collapse"+i.key+t.param,e.B4B)("aria-controls","collapse"+i.key+t.param),e.R7$(1),e.SpI(" ",t.label," "),e.R7$(2),e.BMQ("id","collapse"+i.key+t.param)("aria-labelledby","heading"+i.key+t.param),e.R7$(2),e.Y8G("item",t)("tabbedGroup",i)("currentConfig",n.currentConfig)("selectedFilterValues",n.selectedFilterValues)("cannedreports",n.cannedreports)("loadingData",n.loadingData)("noFacets",n.noFacets)("facets",n.facets)("currentCannedReportUpdater",n.currentCannedReportUpdater)("importedFileNameUpdater",n.importedFileNameUpdater)("facetsUpdater",n.facetsUpdater)("showOptionsInvoker",n.showOptionsInvoker)("routeFilterValuesUpdater",n.routeFilterValuesUpdater)("onDropdownFilterSelectInvoker",n.onDropdownFilterSelectInvoker)}}const Qn=function(o,a,t){return{selected:o,"border-0":a,"pl-0":t}};function Kn(o,a){if(1&o&&(e.j41(0,"div",75),e.DNE(1,Xn,9,28,"ng-container",11),e.k0s()),2&o){const t=a.$implicit,i=e.XpG(2).$implicit;e.Y8G("ngClass",e.sMw(3,Qn,t.selected,1===(null==i||null==i.items?null:i.items.length),1===(null==i||null==i.items?null:i.items.length)))("hidden",null==t?null:t.hidden),e.R7$(1),e.Y8G("ngIf",!t.hidden)}}const Hn=function(o){return{"only-one-item":o}},zn=function(o){return{show:o}},qn=function(o){return{"border-0":o}};function Jn(o,a){if(1&o&&(e.qex(0),e.j41(1,"div",68),e.DNE(2,Un,4,7,"a",69),e.j41(3,"div",70)(4,"div",71)(5,"div",72),e.DNE(6,Kn,2,7,"div",73),e.k0s()()()(),e.bVm()),2&o){const t=e.XpG(),i=t.$
1implicit,n=t.index,s=e.XpG(2).index;e.R7$(1),e.Y8G("ngClass",e.eq3(9,Hn,1===(null==i||null==i.items?null:i.items.length))),e.R7$(1),e.Y8G("ngIf",(null==i||null==i.items?null:i.items.length)>1),e.R7$(1),e.FCK("id","sidefilterCollapse2",s,"",n,""),e.Y8G("ngClass",e.eq3(11,zn,!i.collapsed||1===(null==i||null==i.items?null:i.items.length))),e.BMQ("data-tabbedgroup-key",i.key),e.R7$(1),e.Y8G("ngClass",e.eq3(13,qn,1===(null==i||null==i.items?null:i.items.length))),e.R7$(1),e.BMQ("id","accordion"+i.key),e.R7$(1),e.Y8G("ngForOf",null==i?null:i.items)}}function Wn(o,a){if(1&o&&(e.j41(0,"li",35),e.DNE(1,Jn,7,15,"ng-container",11),e.k0s()),2&o){const t=a.$implicit;e.R7$(1),e.Y8G("ngIf",!(null!=t&&t.hidden))}}function Zn(o,a){if(1&o&&(e.j41(0,"div",67)(1,"h6",13),e.EFF(2),e.k0s(),e.j41(3,"ul",34),e.DNE(4,Wn,2,1,"li",61),e.k0s()()),2&o){const t=e.XpG().$implicit;e.R7$(2),e.SpI(" ",t.label," "),e.R7$(2),e.Y8G("ngForOf",null==t?null:t.groups)}}function ei(o,a){if(1&o&&(e.qex(0),e.DNE(1,Zn,5,2,"div",66),e.bVm()),2&o){const t=a.$implicit;e.R7$(1),e.Y8G("ngIf",!t.hidden)}}function ti(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",63)(1,"h6",13),e.EFF(2," Filters "),e.j41(3,"a",64),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.clearAllFilters())}),e.EFF(4,"Clear All"),e.k0s()(),e.DNE(5,ei,2,1,"ng-container",65),e.k0s()}if(2&o){const t=e.XpG();e.R7$(5),e.Y8G("ngForOf",null==t.currentConfig?null:t.currentConfig.topLevelCategories)}}const ni=function(o){return{disabled:o}};let ii=(()=>{class o{constructor(t,i,n,s,r,l){this._domainService=t,this._appService=i,this._ctvService=n,this._route=s,this._router=r,this._userService=l,this.followingClickAction=new e.bkB,this.closeMobileNavClick=new e.bkB,this.clearAllFiltersClick=new e.bkB,this.foundFilters=null,this.inputSubject=new se.t(void 0),this.searchInputValue=null,this.IMG_URL_PREFIX="<img width='16' height='16' src='https://cdn.pixalate.com/sellers/icons/apn/16x16/",this.capitalizePipe=new Vt.F}ngOnInit(){this.inputSubject=new se.t(void 0),this.inputSubject.pipe((0,ie.B)(300),(0,oe.F)()).subscribe(t=>{this.searchInputValue=t,this.showFilters(t)}),this.foundFiltersUpdater.subscribe(t=>{this.foundFilters=t}),this.searchInputValueUpdater.subscribe(t=>{this.searchInputValue=t}),this.importListInvoker.subscribe(t=>{let i=null;"apps"===this.currentConfig.key?i=this._appService.getImportList():"domains"===this.currentConfig.key?i=this._domainService.getImportList():"ctv"===this.currentConfig.key&&(i=this._ctvService.getImportList()),i?i.then(n=>{n&&n.docs&&n.docs.length>0?(this.importList=n.docs,this.currentTimeMills=(new Date).getTime(),setTimeout(()=>{const s=document.querySelector(".imported-list");s&&new PerfectScrollbar(s)},100)):this.importList=[]}):this.importList=[]}),this.presetsListInvoker.subscribe(t=>{let i=null;"apps"===this.currentConfig.key?i="appDiscovery":"domains"===this.currentConfig.key?i="domainDiscovery":"ctv"===this.currentConfig.key&&(i="ctvDiscovery"),this._appService.listPresets(i).then(n=>{this.presetsList=[],n&&n.docs&&n.docs.length>0&&(this.presetsList=n.docs,this.initializeCollapseComps())})}),this.prepareFiltersInvoker.subscribe(t=>{this.prepareFilters()}),this.showOptionsInvoker.subscribe(t=>{this.showOptions(t.tabbedFilterItem,t.forceRefresh)}),this.mobileBreakPoint=window.matchMedia("(max-width: 576px)")}closeMobileNav(t){this.mobileBreakPoint.matches&&this.closeMobileNavClick.emit(!0)}showGroupOptions(t,i){t.collapsed=!t.collapsed,this.showOptions(i)}showOptions(t,i){if(t.previousSearchString!==t.searchString||t.options.length<=0||i){let n=[];if(t.previousSearchString=t.searchString,t.optionsLoading=!0,t.metadataKey)this._domainService.getDropdownItems(t.metadataKey,t.searchString,t.options.length,50).then(r=>{t.optionsCount=r.numFound;const l=r.docs.map(p=>({text:"sellerId"===t.metadataKey?`${this.IMG_URL_PREFIX}${p.id}.jpg'/> ${p.name}`:p.name,value:p.id,icon:null,selected:!1}));setTimeout(()=>{n=n.concat(l),t.options=n,t.optionsLoading=!1},1),"sellerId"===t.metadataKey&&setTimeout(()=>{jQuery("img").on("error",function(){this.style.opacity=0})},300),setTimeout(()=>{const p=document.querySelector(".items-cont."+t.param);p&&new PerfectScrollbar(p)},5e3)});else{const p=G_getFilterStrings(this.currentConfig,this.selectedFilterValues,this.cannedreports,this._route.snapshot.queryParams.bulkUploadReportId,this.currentCannedReportUpdater,this.importedFileNameUpdater).filter(g=>g.indexOf(t.param+"=")<0),c=this.currentConfig.mainFilterItems.filter(g=>"device"===g.apiKey)[0].selected.apiValue,u=this.currentConfig.mainFilterItems.filter(g=>"region"===g.apiKey)[0].selected.apiValue;let d=[t.param];"trustedSellerName"===t.param&&(d=["trustedSellerNameId"]);const m=t.skipApiSearch?"":t.param+"Contains";let f=null;
1if(this.showFollowing&&p.push(`userId=${this._userService.getIdentity().userEmailAddress}`),"apps"===this.currentConfig.key)this.appGlobalSearchParam&&this.appGlobalSearchParam.length>0&&p.push(`appGlobalSearchParam=${this.appGlobalSearchParam}`),f=this._appService.getFacetsBySearch(c,u,d,m,t.searchString,p.join("&"));else if("domains"===this.currentConfig.key){const g=this.currentConfig.mainFilterItems.filter(v=>"isSubDomain"===v.apiKey)[0].selected.apiValue;f=this._domainService.getFacetsBySearch(c,u,g,d,m,t.searchString,p.join("&"))}else"ctv"===this.currentConfig.key&&(f=this._ctvService.getFacetsBySearch(c,u,d,m,t.searchString,p.join("&")));null!==f&&f.then(g=>{let v=[];const S={};if(g&&g.facets&&g.facets[d[0]]){const b=g.facets[d[0]];if(b&&b.length>0)for(const k of b){const M=Object.keys(k);let P=M[0];const Oo=k[P];let pe="";if("trustedSellerName"===t.param){const Q=M[0],ce=Q.lastIndexOf("("),Vo=Q.lastIndexOf(")");P=Q.substring(0,ce),pe=`https://cdn.pixalate.com/sellers/icons/apn/16x16/${Q.substring(ce+1,Vo)}.jpg?cb=`+Math.random()}S[P]=Oo;const j={icon:pe,text:P,value:P,selected:!1};"dayOfWeek"===t.param&&(j.text=F.OI[Number.parseInt(P)]),"developerCountry"===t.param&&(j.text=this.capitalizePipe.transform(j.text)),"tld"===t.param&&(j.text=j.text.toLowerCase()),P&&P.length>0&&"N/A"!==P&&"Other"!==P&&"null"!==P&&v.push(j)}}if(t.skipApiSearch&&t.searchString){const b=t.searchString.toLowerCase();v=v.filter(k=>k.text?.toLowerCase().includes(b)??!1)}this.facetsUpdater.emit({param:t.param,mapping:S}),t.optionsLoading=!1,n=n.concat(v),t.options=n,t.optionsCount=t.options.length,setTimeout(()=>{const b=document.querySelector(".items-cont."+t.param);b&&new PerfectScrollbar(b)},100)})}}}prepareFilters(){const t=this.currentConfig.mainFilterItems.filter(c=>"appStore"===c.apiKey);this.currentConfig.mainFilterItems.filter(c=>"region"===c.apiKey);let n=!1,s=!1,r=!1,l=!1;t&&t[0]&&(n="android"!==t[0].selected.apiValue,s="android"!==t[0].selected.apiValue,r="android"!==t[0].selected.apiValue,l="android"!==t[0].selected.apiValue),this.currentConfig.topLevelCategories.forEach(c=>{c.groups.forEach(u=>{const d=this._route.snapshot.params.param1;u.hidden=u.hiddenFor?.indexOf(d)>-1,u.items.forEach(m=>{if("downloads"===m.param?m.hidden=n:"hasInAppPurchases"===m.param?m.hidden=s:"overallIvtPermissionRisk"===m.param?m.hidden=r:"bundleId"===m.param&&(m.hidden=l),"domains"===this.currentConfig.key){const f=this.currentConfig.mainFilterItems.filter(g=>"region"===g.apiKey);if(f&&f[0]){let g=f[0].selected.label;if("totalInventory"===m.param){"US"!==g&&(g=g[0]+g.toLocaleLowerCase().substring(1));let v=m.label;v=`${g} Inventory Available`,m.label=v}else"country"===m.param?m.hidden="US"===g:"dma"===m.param&&(m.hidden="US"!==g)}}if("apps"===this.currentConfig.key){if("category"===m.param){let f="App Store Categories";"android"===t[0].selected.apiValue&&(f="Play Store Categories"),m.label=f}else if("isExistInAppStore"===m.param){let f="Exist In App Store";"android"===t[0].selected.apiValue&&(f="Exist In Play Store"),m.label=f}}else if("ctv"===this.currentConfig.key){if("category"===m.param){let f="Roku Store Categories";"firetv"===d?f="Fire TV Store Categories":"samsung"===d?f="Samsung Store Categories":"tvos"===d?f="tvOS Store Categories":"lgtv"===d&&(f="LG TV Store Categories"),m.label=f}m.hidden=m.hiddenFor?.indexOf(d)>-1}})})}),this.initializeCollapseComps()}initializeCollapseComps(){setTimeout(()=>{jQuery(".collapse.level2").on("show.bs.collapse",function(){jQuery(this).parent(".card").addClass("show"),jQuery(".precanned-reports-cont").scrollTop(0)}),jQuery(".collapse.level2").on("hide.bs.collapse",function(){jQuery(this).parent(".card").removeClass("show")});const t=this;jQuery(".collapse.level1").on("show.bs.collapse",function(){jQuery(this).parent(".canned-cont").addClass("show");const i=jQuery(this).data("tabbedgroup-key");t.currentConfig.topLevelCategories.forEach(n=>{n.groups.forEach(s=>{s.key!==i&&(s.items.length>1?jQuery('.collapse[data-tabbedgroup-key="'+s.key+'"]').collapse("hide"):jQuery('.collapse[data-tabbedgroup-key="'+s.key+'"] .collapse.level2').collapse("hide"))})}),jQuery(".precanned-reports-cont").scrollTop(0)}),jQuery(".collapse.level1").on("hide.bs.collapse",function(i){(jQuery(i.target).hasClass("level1")||jQuery(this).parent(".canned-cont").hasClass("only-one-item"))&&jQuery(this).parent(".canned-cont").removeClass("show")})},300)}searchFilters(t){this.inputSubject.next(t)}showFilters(t){const i=this._route.snapshot.params.param1,n=this.currentConfig.mainFilterItems.filter(c=>"appStore"===c.apiKey);this.currentConfig.mainFilterItems.filter(c=>"region"===c.apiKey);let r=!1,l=!1;if(n&&n[0]&&(r="android"!==n[0].selected.apiValue,l="android"!==n[0].selected.apiValue),t&&t.length>0){const c=new Array;t&&t.length>
10&&this.currentConfig.topLevelCategories.forEach(u=>{u.groups.forEach(d=>{d.items.forEach(m=>{if(m.label.toLowerCase().indexOf(t.toLowerCase())>=0){let g=!0;if(("downloads"===m.param&&r||"hasInAppPurchases"===m.param&&l)&&(g=!1),"domains"===this.currentConfig.key){const v=this.currentConfig.mainFilterItems.filter(S=>"region"===S.apiKey);if(v&&v[0]){let S=v[0].selected.label;if("totalInventory"===m.param){"US"!==S&&(S=S[0]+S.toLocaleLowerCase().substring(1));let b=m.label;b=`${S} Inventory Available`,m.label=b}else"country"===m.param?"US"===S&&(g=!1):"dma"===m.param&&"US"!==S&&(g=!1)}}else"ctv"===this.currentConfig.key&&m.hiddenFor?.indexOf(i)>-1&&(g=!1);g&&c.push(m)}})})}),this.foundFilters=c,setTimeout(()=>{jQuery(".searched-filters .collapse").on("show.bs.collapse",function(){jQuery(this).parent(".card").addClass("show")}),jQuery(".searched-filters .collapse").on("hide.bs.collapse",function(){jQuery(this).parent(".card").removeClass("show")})},300)}else this.foundFilters=null}followingClick(){this.followingClickAction.emit(!0),this.closeMobileNav()}importFileClick(t){t&&(this.routeRefreshUpdater.emit({additionalQueryParams:{bulkUploadReportId:t}}),this.importStatusInvoker.emit(t))}deleteImportedFile(t){}loadPreset(t){var i=this;let n=null,s=null;"apps"===this.currentConfig.key?(n=this._appService.loadPreset(t.reportId),s=["/discovery","apps","dashboard"]):"domains"===this.currentConfig.key?(n=this._appService.loadPreset(t.reportId),s=["/discovery","domains","dashboard"]):"ctv"===this.currentConfig.key&&(n=this._appService.loadPreset(t.reportId),s=["/discovery","ctv","dashboard"]),null!==n&&null!==s&&n.then(function(){var r=(0,x.A)(function*(l){const p={};if(l.reportConfig.otherFilters)if(Array.isArray(l.reportConfig.otherFilters))l.reportConfig.otherFilters.forEach(c=>{const u=Object.keys(c)[0];p[u]?p[u]+="()"+c[u]:p[u]=c[u]});else{const c=Object.keys(l.reportConfig.otherFilters)[0];p[c]=l.reportConfig.otherFilters[c]}"apps"===i.currentConfig.key?(s.push(l.reportConfig.topFilters.appStore),s.push(l.reportConfig.topFilters.device),s.push(l.reportConfig.topFilters.region)):"domains"===i.currentConfig.key?(s.push(l.reportConfig.topFilters.device),s.push(l.reportConfig.topFilters.region),s.push(l.reportConfig.topFilters.isSubDomain)):"ctv"===i.currentConfig.key&&(s.push(l.reportConfig.topFilters.device),s.push(l.reportConfig.topFilters.region),s.push(l.reportConfig.topFilters.brand)),yield i._router.navigate(s,{queryParams:p}),i.currentPreset=t,p.appGlobalSearchParam||i.clearAppGlobalSearchInputInvoker.emit(!0),i.refreshDataInvoker.emit(!0),i.closeMobileNav()});return function(l){return r.apply(this,arguments)}}())}deletePreset(t,i){t&&t.stopPropagation(),this._appService.deletePreset(i.reportId).then(n=>{this.currentPreset&&this.currentPreset.reportId===i.reportId&&(this.routeRefreshUpdater.emit(null),this.currentPreset=null),this.refreshDataInvoker.emit(!0),this.presetsListInvoker.emit(!0)})}cannedClick(t){const i=t.filters,n=t.mainFilters;n&&Object.keys(n).forEach(r=>{const l=this.currentConfig.mainFilterItems.filter(p=>p.apiKey===r);if(l&&l[0]){const p=l[0].options.filter(c=>c.value===n[r]);p&&p[0]&&(l[0].selected=p[0])}}),this.clearAppGlobalSearchInputInvoker.emit(!0),this.routeRefreshUpdater.emit({additionalQueryParams:i}),this.closeMobileNav()}clearSearchFilters(){this.searchFilters(""),jQuery("input.search-keywords").focus()}clearAllFilters(){this.clearAllFiltersClick.emit(!0)}static{this.\u0275fac=function(i){return new(i||o)(e.rXU($.i),e.rXU(A.d),e.rXU(U.$),e.rXU(w.nX),e.rXU(w.Ix),e.rXU(L.KJ))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-side-filters"]],viewQuery:function(i,n){if(1&i&&e.GBs(yn,5),2&i){let s;e.mGM(s=e.lsd())&&(n.mobileBtnClose=s.first)}},inputs:{currentConfig:"currentConfig",currentCannedReportUpdater:"currentCannedReportUpdater",importedFileNameUpdater:"importedFileNameUpdater",facetsUpdater:"facetsUpdater",routeFilterValuesUpdater:"routeFilterValuesUpdater",foundFiltersUpdater:"foundFiltersUpdater",searchInputValueUpdater:"searchInputValueUpdater",routeRefreshUpdater:"routeRefreshUpdater",importStatusInvoker:"importStatusInvoker",refreshDataInvoker:"refreshDataInvoker",clearAppGlobalSearchInputInvoker:"clearAp
1pGlobalSearchInputInvoker",selectedFilterValues:"selectedFilterValues",cannedreports:"cannedreports",loadingData:"loadingData",noFacets:"noFacets",facets:"facets",onDropdownFilterSelectInvoker:"onDropdownFilterSelectInvoker",showOptionsInvoker:"showOptionsInvoker",importListInvoker:"importListInvoker",presetsListInvoker:"presetsListInvoker",prepareFiltersInvoker:"prepareFiltersInvoker",bulkUploadReportId:"bulkUploadReportId",showFollowing:"showFollowing",followingCount:"followingCount",appGlobalSearchParam:"appGlobalSearchParam"},outputs:{followingClickAction:"followingClickAction",closeMobileNavClick:"closeMobileNavClick",clearAllFiltersClick:"clearAllFiltersClick"},decls:25,vars:14,consts:[[1,"precanned-reports-cont"],[1,"side-navigation","trends"],[1,"btn","btn-link","mobile-btn-close",3,"click"],["mobileBtnClose",""],[1,"fa","fa-close"],[1,"input-group","search-keywords"],[1,"input-group-prepend"],["src","/assets/images/icon-search-keywords.svg","alt","Search Icon"],["type","text","placeholder","Search for filters","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","search-keywords",3,"ngModel","ngModelChange"],["class","btn btn-link clear-search",3,"click",4,"ngIf"],["class","searched-filters",4,"ngIf"],[4,"ngIf"],[1,"precanned-reports","pt-0"],[1,"title"],[1,"btn","btn-link","p-0","d-flex","justify-content-between","align-items-center","width-100p",3,"ngClass","click"],[1,"following-count","text-lowercase"],[1,"mr-1"],["class","precanned-reports pt-0 save-presets",4,"ngIf"],["class","toplevel-categories",4,"ngIf"],[1,"btn","btn-link","clear-search",3,"click"],[1,"fa","fa-times"],[1,"searched-filters"],["id","accordion-found-filters","role","tablist","aria-multiselectable","true",4,"ngIf"],["class","nav flex-column",4,"ngIf"],["id","accordion-found-filters","role","tablist","aria-multiselectable","true"],["class","card",3,"hidden",4,"ngFor","ngForOf"],[1,"card",3,"hidden"],["role","tab",1,"card-header"],[1,"mb-0"],["data-toggle","collapse","data-parent","#accordion-found-filters","aria-expanded","false",3,"click"],[1,"report-title"],["role","tabpanel",1,"collapse"],[1,"card-block"],[3,"item","tabbedGroup","currentConfig","selectedFilterValues","cannedreports","loadingData","noFacets","facets","currentCannedReportUpdater","importedFileNameUpdater","facetsUpdater","showOptionsInvoker","routeFilterValuesUpdater","onDropdownFilterSelectInvoker","closeMobileNav"],[1,"nav","flex-column"],[1,"nav-item"],[1,"nav-link"],[1,"nav","flex-column","imported-list"],["class","nav-item flex-column flex-wrap align-items-start justify-content-start",4,"ngFor","ngForOf"],[1,"nav-item","flex-column","flex-wrap","align-items-start","justify-content-start"],[1,"canned-cont"],[1,"btn","canned-link","importedFile",3,"ngClass","routerLink","click"],[1,"d-flex","justify-content-between","align-items-center"],[1,"d-flex","align-items-center"],["hidden","",1,"btn","btn-link","p-0",3,"click"],[1,"fa","fa-times-circle"],[1,"expiration"],[1,"precanned-reports","pt-0","save-presets"],["class","title",4,"ngIf"],[1,"nav-item","flex-column","saved-presets","align-items-start"],["data-toggle","collapse","href","#myPresets","aria-expanded","false","aria-controls","myPresets",1,"nav-link","d-flex","justify-content-between","font-weight-600"],[1,"fa","fa-plus"],[1,"fa","fa-minus"],["id","myPresets",1,"collapse"],[1,"list-group"],["class","list-group-item",4,"ngFor","ngForOf"],[1,"list-group-item"],[1,"btn","btn-link","p-0",3,"click"],[1,"btn","btn-link","p-0","ml-1","delete-preset",3,"click"],["class","nav presets-list",4,"ngFor","ngForOf"],[1,"nav","presets-list"],["class","nav-item",4,"ngFor","ngForOf"],[1,"nav-link","font-weight-600",3,"ngClass","click"],[1,"toplevel-categories"],[1,"btn","btn-link","btn-clear-filters","p-0",3,"click"],[4,"ngFor","ngForOf"],["class","toplevel-category",4,"ngIf"],[1,"toplevel-category"],[1,"canned-cont",3,"ngClass"],["class","btn canned-link font-weight-600","data-toggle","collapse","role","button","aria-expanded","false","aria-controls","sidefilterCollapse",3,"ngClass","href",4,"ngIf"],[1,"collapse","level1",3,"ngClass","id"],[1,"card",3,"ngClass"],["role","tablist","aria-multiselectable","true",1,"accordion"],["class","card level2",3,"ngClass","hidden",4,"ngFor","ngForOf"],["data-toggle","collapse","role","button","aria-expanded","fal
1se","aria-controls","sidefilterCollapse",1,"btn","canned-link","font-weight-600",3,"ngClass","href"],[1,"card","level2",3,"ngClass","hidden"],["role","tab",1,"card-header",3,"ngClass"],["data-toggle","collapse","aria-expanded","false",3,"ngClass","click"],["src","/assets/images/icon-12-filter-applied.svg","alt","Filter Icon",1,"icon-filter-applied"],["role","tabpanel",1,"collapse","level2"],[3,"item","tabbedGroup","currentConfig","selectedFilterValues","cannedreports","loadingData","noFacets","facets","currentCannedReportUpdater","importedFileNameUpdater","facetsUpdater","showOptionsInvoker","routeFilterValuesUpdater","onDropdownFilterSelectInvoker"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"button",2,3),e.bIt("click",function(){return n.closeMobileNav()}),e.nrm(4,"i",4),e.k0s(),e.j41(5,"div",5)(6,"div",6),e.nrm(7,"img",7),e.k0s(),e.j41(8,"input",8),e.bIt("ngModelChange",function(r){return n.searchFilters(r)})("ngModelChange",function(r){return n.searchInputValue=r}),e.k0s(),e.DNE(9,Cn,2,0,"a",9),e.k0s(),e.DNE(10,Rn,5,2,"div",10),e.DNE(11,Mn,5,1,"div",11),e.j41(12,"div",12)(13,"h6",13)(14,"a",14),e.bIt("click",function(){return n.followingClick()}),e.EFF(15," Following "),e.j41(16,"span",15)(17,"span",16),e.EFF(18),e.k0s(),e.DNE(19,Pn,2,0,"ng-container",11),e.DNE(20,In,2,0,"ng-container",11),e.DNE(21,Dn,2,0,"ng-container",11),e.DNE(22,On,2,0,"ng-container",11),e.k0s()()()(),e.DNE(23,Nn,4,3,"div",17),e.DNE(24,ti,6,1,"div",18),e.k0s()()),2&i&&(e.R7$(8),e.Y8G("ngModel",n.searchInputValue),e.R7$(1),e.Y8G("ngIf",(null==n.searchInputValue?null:n.searchInputValue.length)>0),e.R7$(1),e.Y8G("ngIf",n.foundFilters),e.R7$(1),e.Y8G("ngIf",!n.foundFilters&&n.importList&&(null==n.importList?null:n.importList.length)>0),e.R7$(3),e.Y8G("ngClass",e.eq3(12,ni,n.followingCount<=0)),e.R7$(4),e.JRh(n.followingCount),e.R7$(1),e.Y8G("ngIf","apps"===(null==n.currentConfig?null:n.currentConfig.key)),e.R7$(1),e.Y8G("ngIf","domains"===(null==n.currentConfig?null:n.currentConfig.key)),e.R7$(1),e.Y8G("ngIf","ctv"===(null==n.currentConfig?null:n.currentConfig.key)),e.R7$(1),e.Y8G("ngIf",n.followingCount>1||0===n.followingCount),e.R7$(1),e.Y8G("ngIf",!n.foundFilters),e.R7$(1),e.Y8G("ngIf",!n.foundFilters))},dependencies:[_.YU,_.Sq,_.bT,C.me,C.BC,C.vS,w.Wk,_n,vn.i],styles:[".following-count[_ngcontent-%COMP%]{background:#FA574B;color:#fff;padding:2px 8px;border-radius:8px}.width-100p[_ngcontent-%COMP%]{width:100%}.btn[_ngcontent-%COMP%] .tooltip-cont[_ngcontent-%COMP%]{position:absolute}"]})}}return o})();var oi=h(13721),si=h(93412);class ri{}const ai={L:"Low",M:"Medium",H:"High"},li={L:"#3CC778",M:"#EFAA2B",H:"#FA574B"},pi=["pixalateRating","appDescriptionBrandSafetyRating","adultContentRating","alcoholContentRating","drugContentRating","hateSpeechRating","offensiveContentRating","gamblingContentRating","violenceContentRating","isIncentivizedApp"],ci=["pixalateRisk","brandSafetyRisk","advisoriesRisk","adultContentRisk","drugContentRisk","alcoholContentRisk","hateSpeechRisk","offensiveContentRisk"],di=["isExistInAppStore","hasAdsTxt","hasPrivacyLink","isBlacklisted","isPrivateDomain"],ui=["isAdsTxtEnabled"],mi=["isVideoAvailable","isAdsDotTxtExist"],gi=["risk","brandSafetyRisk","adultContentRating","alcoholContentRating","drugsContentRating","numberOfHateSpeechWordsRating","isIncentivizedApp"],hi=[{key:"adultContentRating",label:"Adult Content"},{key:"alcoholContentRating",label:"Alcohol Content"},{key:"drugContentRating",label:"Drug Content"},{key:"hateSpeechRating",label:"Hate Speech"},{key:"offensiveContentRating",label:"Offensive Content"},{key:"gamblingContentRating",label:"Gambling Content"},{key:"violenceContentRating",label:"Violence Content"}],fi=[{key:"adultContentRating",label:"Adult Content"},{key:"alcoholContentRating",label:"Alcohol Content"},{key:"drugsContentRating",label:"Drug Content"},{key:"numberOfHateSpeechWordsRating",label:"Hate Speech"}],_i=[{key:"advisoriesRisk",label:"Advisories"},{key:"adultContentRisk",label:"Adult Content"},{key:"drugContentRisk",label:"Drug Content"},{key:"alcoholContentRisk",label:"Alcohol Content"},{key:"hateSpeechRisk",label:"Hate Speech"},{key:"offensiveContentRisk",label:"Offensive Content"}];class vi{}const E={T:0,F:0},D={H:0,M:0,L:0,showMedHigh:!1,singleRating:"low"},yi={total:0,isExistInAppStore:E,hasAdsTxt:E,hasPrivacyLink:E,isBlacklisted:E,isPrivateDomain:E,isIncentivizedApp:{true:0,false:0},pixalateRating:D,appDescriptionBrandSafetyRating:D,adultContentRating:D,alcoholContentRating:D,drugContentRating:D,hateSpeechRating:D,offensiveContentRating:D,gambling
1ContentRating:D,violenceContentRating:D,givtSivtRate:{average:0,appsLess5percent:0},nonGivtSivtViewability:0,topAdSizes:[{size:"0x0",count:0}],givtRate:0,sivtRate:0,risk:D,brandSafetyRisk:D,isAdsDotTxtExist:E,trafficSource:{"N/A":0}};var Ci=h(64384),Si=h(78767);function bi(o,a){if(1&o&&(e.j41(0,"div",35)(1,"app-progress-circle",36),e.nrm(2,"div",37),e.k0s(),e.j41(3,"div",21)(4,"div",38),e.EFF(5),e.nI1(6,"roundpercent"),e.k0s(),e.j41(7,"div",39),e.EFF(8,"Med & High Risk "),e.k0s()()()),2&o){const t=e.XpG();e.R7$(1),e.Y8G("classref",".risk-chart")("max",100)("value",(t.appSummaryResponse[t.riskProgressCircleChartKey].M+t.appSummaryResponse[t.riskProgressCircleChartKey].H)/t.totalCount*100),e.R7$(4),e.SpI(" ",e.i5U(6,4,(t.appSummaryResponse[t.riskProgressCircleChartKey].M+t.appSummaryResponse[t.riskProgressCircleChartKey].H)/t.totalCount,0)," ")}}function ki(o,a){if(1&o&&(e.j41(0,"div")(1,"app-progress-circle",40),e.nrm(2,"div",41),e.k0s(),e.j41(3,"div",21)(4,"div"),e.EFF(5),e.k0s()()()),2&o){const t=e.XpG();e.ZvI("graph-cont d-flex align-items-center justify-content-center ",t.riskRateMapping[null==t.appSummaryResponse[t.riskProgressCircleChartKey]?null:t.appSummaryResponse[t.riskProgressCircleChartKey].singleRating],""),e.R7$(1),e.Y8G("classref",".risk-chart-2")("max",100)("value",100)("icon","L"===(null==t.appSummaryResponse[t.riskProgressCircleChartKey]?null:t.appSummaryResponse[t.riskProgressCircleChartKey].singleRating)?"\u2713":null)("overridecolor",t.colorMapping[null==t.appSummaryResponse[t.riskProgressCircleChartKey]?null:t.appSummaryResponse[t.riskProgressCircleChartKey].singleRating]),e.R7$(3),e.ZvI("desc-text color-",null==t.appSummaryResponse[t.riskProgressCircleChartKey]?null:t.appSummaryResponse[t.riskProgressCircleChartKey].singleRating,""),e.R7$(1),e.SpI(" ",t.riskRateMapping[null==t.appSummaryResponse[t.riskProgressCircleChartKey]?null:t.appSummaryResponse[t.riskProgressCircleChartKey].singleRating]," Risk ")}}function Ri(o,a){if(1&o&&(e.j41(0,"div",8)(1,"div",9),e.EFF(2," High "),e.k0s(),e.j41(3,"div",42),e.nI1(4,"roundpercent"),e.k0s(),e.j41(5,"div",11),e.EFF(6),e.nI1(7,"roundpercent"),e.k0s()()),2&o){const t=e.XpG();e.R7$(3),e.xc7("width",e.i5U(4,3,(null==t.appSummaryResponse[t.riskProgressCircleChartKey]?null:t.appSummaryResponse[t.riskProgressCircleChartKey].H)/t.totalCount,0)),e.R7$(3),e.SpI(" ",e.i5U(7,6,(null==t.appSummaryResponse[t.riskProgressCircleChartKey]?null:t.appSummaryResponse[t.riskProgressCircleChartKey].H)/t.totalCount,0)," ")}}function wi(o,a){if(1&o&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"roundpercent"),e.k0s()),2&o){const t=e.XpG().$implicit,i=e.XpG();e.ZvI("big-number ",null==t?null:t.class,""),e.R7$(1),e.SpI(" ",e.i5U(2,4,t.value/i.totalCount,0)," ")}}function Fi(o,a){if(1&o&&(e.j41(0,"div"),e.EFF(1,"0%"),e.k0s()),2&o){const t=e.XpG().$implicit;e.ZvI("big-number ",null==t?null:t.class,"")}}function xi(o,a){if(1&o&&(e.j41(0,"div"),e.EFF(1,"100%"),e.k0s()),2&o){const t=e.XpG().$implicit;e.ZvI("big-number ",null==t?null:t.class,"")}}function Mi(o,a){1&o&&(e.qex(0),e.nrm(1,"i",45),e.bVm())}function Pi(o,a){if(1&o&&(e.qex(0),e.j41(1,"div",43),e.DNE(2,wi,3,7,"div",6),e.DNE(3,Fi,2,3,"div",6),e.DNE(4,xi,2,3,"div",6),e.j41(5,"div",44),e.DNE(6,Mi,2,0,"ng-container",29),e.EFF(7),e.k0s()(),e.bVm()),2&o){const t=a.$implicit,i=e.XpG();e.R7$(2),e.Y8G("ngIf",t.value/i.totalCount*100>0&&t.value/i.totalCount*100<100),e.R7$(1),e.Y8G("ngIf",t.value/i.totalCount*100<=0),e.R7$(1),e.Y8G("ngIf",t.value/i.totalCount*100>=100),e.R7$(2),e.Y8G("ngIf",null==t?null:t.showWarningIcon),e.R7$(1),e.SpI(" ",t.label," ")}}function Ii(o,a){if(1&o&&(e.j41(0,"div",35)(1,"app-progress-circle",36),e.nrm(2,"div",50),e.k0s(),e.j41(3,"div",21)(4,"div",38),e.EFF(5),e.nI1(6,"roundpercent"),e.k0s(),e.j41(7,"div",39),e.EFF(8,"Med & High Risk "),e.k0s()()()),2&o){const t=e.XpG(2);e.R7$(1),e.Y8G("classref",".brandsafety-risk-chart")("max",100)("value",((null==t.appSummaryResponse?null:t.appSummaryResponse.appDescriptionBrandSafetyRating.M)+(null==t.appSummaryResponse?null:t.appSummaryResponse.appDescriptionBrandSafetyRating.H))/t.totalCount*100),e.R7$(4),e.SpI(" ",e.i5U(6,4,((null==t.appSummaryResponse?null:t.appSummaryResponse.appDescriptionBrandSafetyRating.M)+(null==t.appSummaryResponse?null:t.appSummaryResponse.appDescriptionBrandSafetyRating.H))/t.totalCount,0)," ")}}function Di(o,a){if(1&o&&(e.j41(0,"div")(1,"app-progress-circle",40),e.nrm(2,"div",51),e.k0s(),e.j41(3,"div",21)(4,"div"),e.EFF(5),e.k0s()()()),2&o){const t=e.XpG(2);e.ZvI("graph-cont ",t.riskRateMapping[null==t.appSummaryResponse||null==t.appSummaryResponse.appDescriptionBrandSafetyRating?null:t.appSummaryResponse.appDescriptionBrandSafetyRating.singleRating],""),e.R7$(1),e.Y8G("classref",".brandsafety-risk-chart-2")("max",100)("value",100)("icon","L"===(null==t.appSummaryResponse||null==t.appSummaryResponse.appDescriptionBrandSafetyRating?null:t.appSummaryResponse.appDescriptionBrandSafetyRating.singleRating)?"\u2713":null)("overridecolor",t.colorMapping[null==t.appSummaryResponse||null==t.appSummaryResponse.appDescriptionBrandSafetyRating?null:t.appSummaryResponse.appDescriptionBrandSafetyRating.singleRating]),e.R7$(3),e.ZvI("desc-text color-",null==t.appSummaryResponse||null==t.appSummaryResponse.appDescriptionBrandSafetyRating?null:t.appSummaryResponse.appDescriptionBrandSafetyRating.singleRating,""),e.R7$(1),e.SpI(" ",t.riskRateMapping[null==t.appSummaryResponse||null==t.appSummaryResponse.appDescriptionBrandSafetyRating?null:t.appSummaryResponse.appDescriptionBrandSafetyRating.singleRating]," Risk ")}}function Oi(o,a){if(1&o&&(e.j41(0,"div",56),e.nI1(1,"roundpercent"),e.k0s()),2&o){const t=e.XpG().$implicit,i=e.XpG(3);e.xc7("width",e.i5U(1,2,(i.appSummaryResponse[t.key].M+i.appSummaryResponse[t.key].H)/i.totalCount,0))}}function Vi(o,a){if(1&o&&(e.j41(0,"div",11),e.EFF(1),e.nI1(2,"roundpercent"),e.k0s()),2&o){const t=e.XpG().$implicit,i=e.XpG(3);e.R7$(1),e.SpI(" ",e.i5U(2,1,(i.appSummaryResponse[t.key].M+i.appSummaryResponse[t.key].H)/i.totalCount,0)," ")}}const re=function(o,a){return{"fa-check-circle":o,"fa-exclamation-circle":a}};function Ti(o,a){if(1&o&&(e.j41(0,"div")(1,"a",57),e.nrm(2,"i",58),e.k0s()()),2&o){const t=e.XpG(4);e.ZvI("rating-icon color-",null==t.appSummaryResponse||null==t.appSummaryResponse.appDescriptionBrandSafetyRating?null:t.appSummaryResponse.appDescriptionBrandSafetyRating.singleRating,""),e.R7$(1),e.BMQ("title",t.riskRateMapping[null==t.appSummaryResponse||null==t.appSummaryResponse.appDescriptionBrandSafetyRating?null:t.appSummaryResponse.appDescriptionBrandSafetyRating.singleRating]),e.R7$(1),e.Y8G("ngClass",e.l_i(5,re,"L"===(null==t.appSummaryResponse||null==t.appSummaryResponse.appDescriptionBrandSafetyRating?null:t.appSummaryResponse.appDescriptionBrandSafetyRating.singleRating),"L"!==(null==t.appSummaryResponse||null==t.appSummaryResponse.appDescriptionBrandSafetyRating?null:t.appSummaryResponse.appDescriptionBrandSafetyRating.singleRating)))}}function Ei(o,a){if(1&o&&(e.j41(0,"div",8)(1,"div",9),e.EFF(2),e.k0s(),e.DNE(3,Oi,2,5,"div",54),e.DNE(4,Vi,3,4,"div",55),e.DNE(5,Ti,3,8,"div",6),e.k0s()),2&o){const t=a.$implicit,i=e.XpG(3);e.R7$(2),e.SpI(" ",t.label," "),e.R7$(1),e.Y8G("ngIf",null==i.appSummaryResponse||null==i.appSummaryResponse.appDescriptionBrandSafetyRating?null:i.appSummaryResponse.appDescriptionBrandSafetyRating.showMedHigh),e.R7$(1),e.Y8G("ngIf",null==i.appSummaryResponse||null==i.appSummaryResponse.appDescriptionBrandSafetyRating?null:i.appSummaryResponse.appDescriptionBrandSafetyRating.showMedHigh),e.R7$(1),e.Y8G("ngIf",!(null!=i.appSummaryResponse&&null!=i.appSummaryResponse.appDescriptionBrandSafetyRating&&i.appSummaryResponse.appDescriptionBrandSafetyRating.showMedHigh))}}function ji(o,a){if(1&o&&(e.j41(0,"div",52),e.DNE(1,Ei,6,4,"div",53),e.k0s()),2&o){const t=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",t.brandSafetyRatingKeys)}}function Gi(o,a){if(1&o&&(e.j41(0,"div",38),e.EFF(1),e.nI1(2,"roundpercent"),e.k0s()),2&o){const t=e.XpG(3);e.R7$(1),e.SpI(" ",e.i5U(2,1,(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)/t.totalCount,0)," ")}}const V=function(o,a){return{"color-H":o,"color-L":a}};function Ai(o,a){if(1&o&&(e.j41(0,"div",61),e.EFF(1," Missing "),e.k0s()),2&o){const t=e.XpG(3);e.Y8G("ngClass",e.l_i(1,V,(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)>
10,(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)<=0))}}function $i(o,a){if(1&o&&(e.j41(0,"div",61),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.Y8G("ngClass",e.l_i(2,V,(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)>0,(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)<=0)),e.R7$(1),e.SpI(" ",(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)>0?"High":"Low"," Risk ")}}const ae=function(o){return{green:o}};function Ni(o,a){if(1&o&&(e.j41(0,"div",59)(1,"app-progress-circle",19),e.nrm(2,"div",60),e.k0s(),e.j41(3,"div",21),e.DNE(4,Gi,3,4,"div",26),e.DNE(5,Ai,2,4,"div",23),e.DNE(6,$i,2,5,"div",23),e.k0s()()),2&o){const t=e.XpG(2);e.Y8G("ngClass",e.eq3(9,ae,(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)<=0)),e.R7$(1),e.Y8G("classref",".appadstxt-chart")("max",100)("icon",(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)<=0?"\u2713":null)("value",(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)>0?(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)/t.totalCount*100:100)("overridecolor",(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)>0?t.colorMapping.H:t.colorMapping.L),e.R7$(3),e.Y8G("ngIf",(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)>0&&(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)<t.totalCount),e.R7$(1),e.Y8G("ngIf",(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)>0&&(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)<t.totalCount),e.R7$(1),e.Y8G("ngIf",0===(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)||(null==t.appSummaryResponse||null==t.appSummaryResponse.hasAdsTxt?null:t.appSummaryResponse.hasAdsTxt.F)===t.totalCount)}}function Bi(o,a){if(1&o&&(e.j41(0,"div",46)(1,"div",47)(2,"div",3),e.EFF(3,"Brand Safety Risk"),e.k0s(),e.j41(4,"div",4),e.DNE(5,Ii,9,7,"div",5),e.DNE(6,Di,6,12,"div",6),e.DNE(7,ji,2,1,"div",48),e.k0s()(),e.j41(8,"div",47)(9,"div",3),e.EFF(10,"App-Ads.txt Detected"),e.k0s(),e.j41(11,"div",4),e.DNE(12,Ni,7,11,"div",49),e.k0s()()()),2&o){const t=e.XpG();e.R7$(5),e.Y8G("ngIf",t.appSummaryResponse&&(null==t.appSummaryResponse||null==t.appSummaryResponse.appDescriptionBrandSafetyRating?null:t.appSummaryResponse.appDescriptionBrandSafetyRating.showMedHigh)),e.R7$(1),e.Y8G("ngIf",t.appSummaryResponse&&!(null!=t.appSummaryResponse&&null!=t.appSummaryResponse.appDescriptionBrandSafetyRating&&t.appSummaryResponse.appDescriptionBrandSafetyRating.showMedHigh)&&(null==t.appSummaryResponse||null==t.appSummaryResponse.appDescriptionBrandSafetyRating?null:t.appSummaryResponse.appDescriptionBrandSafetyRating.singleRating)),e.R7$(1),e.Y8G("ngIf",t.appSummaryResponse),e.R7$(5),e.Y8G("ngIf",t.appSummaryResponse&&(null==t.appSummaryResponse?null:t.appSummaryResponse.hasAdsTxt))}}function Ui(o,a){if(1&o&&(e.j41(0,"div",35)(1,"app-progress-circle",36),e.nrm(2,"div",50),e.k0s(),e.j41(3,"div",21)(4,"div",38),e.EFF(5),e.nI1(6,"roundpercent"),e.k0s(),e.j41(7,"div",39),e.EFF(8,"Med & High Risk "),e.k0s()()()),2&o){const t=e.XpG(2);e.R7$(1),e.Y8G("classref",".brandsafety-risk-chart")("max",100)("value",((null==t.appSummaryResponse?null:t.appSummaryResponse.brandSafetyRisk.M)+(null==t.appSummaryResponse?null:t.appSummaryResponse.brandSafetyRisk.H))/t.totalCount*100),e.R7$(4),e.SpI(" ",e.i5U(6,4,((null==t.appSummaryResponse?null:t.appSummaryResponse.brandSafetyRisk.M)+(null==t.appSummaryResponse?null:t.appSummaryResponse.brandSafetyRisk.H))/t.totalCount,0)," ")}}function Li(o,a){if(1&o&&(e.j41(0,"div")(1,"app-progress-circle",40),e.nrm(2,"div",51),e.k0s(),e.j41(3,"div",21)(4,"div"),e.EFF(5),e.k0s()()()),2&o){const t=e.XpG(2);e.ZvI("graph-cont ",t.riskRateMapping[null==t.appSummaryResponse||null==t.appSummaryResponse.brandSafetyRisk?null:t.appSummaryResponse.brandSafetyRisk.singleRating],""),e.R7$(1),e.Y8G("classref",".brandsafety-risk-chart-2")("max",100)("value",100)("icon","L"===(null==t.appSummaryResponse||null==t.appSummaryResponse.brandSafetyRisk?null:t.appSummaryResponse.brandSafetyRisk.singleRating)?"\u2713":null)("overridecolor",t.colorMapping[null==t.appSummaryResponse||null==t.appSummaryResponse.brandSafetyRisk?null:t.appSummaryResponse.brandSafetyRisk.singleRating]),e.R7$(3),e.ZvI("desc-text color-",null==t.appSummaryResponse||null==t.appSummaryResponse.brandSafetyRisk?null:t.appSummaryResponse.brandSafetyRisk.singleRating,""),e.R7$(1),e.SpI(" ",t.riskRateMapping[null==t.appSummaryResponse||null==t.appSummaryResponse.brandSafetyRisk?null:t.appSummaryResponse.brandSafetyRisk.singleRating]," Risk ")}}function Yi(o,a){if(1&o&&(e.j41(0,"div",56),e.nI1(1,"roundpercent"),e.k0s()),2&o){const t=e.XpG().$implicit,i=e.XpG(3);e.xc7("width",e.i5U(1,2,(i.appSummaryResponse[t.key].M+i.appSummaryResponse[t.key].H)/i.totalCount,0))}}function Xi(o,a){if(1&o&&(e.j41(0,"div",11),e.EFF(1),e.nI1(2,"roundpercent"),e.k0s()),2&o){const t=e.XpG().$implicit,i=e.XpG(3);e.R7$(1),e.SpI(" ",e.i5U(2,1,(i.appSummaryResponse[t.key].M+i.appSummaryResponse[t.key].H)/i.totalCount,0)," ")}}function Qi(o,a){if(1&o&&(e.j41(0,"div")(1,"a",57),e.nrm(2,"i",58),e.k0s()()),2&o){const t=e.XpG(4);e.ZvI("rating-icon color-",null==t.appSummaryResponse||null==t.appSummaryResponse.brandSafetyRisk?null:t.appSummaryResponse.brandSafetyRisk.singleRating,""),e.R7$(1),e.BMQ("title",t.riskRateMapping[null==t.appSummaryResponse||null==t.appSummaryResponse.brandSafetyRisk?null:t.appSummaryResponse.brandSafetyRisk.singleRating]),e.R7$(1),e.Y8G("ngClass",e.l_i(5,re,"L"===(null==t.appSummaryResponse||null==t.appSummaryResponse.brandSafetyRisk?null:t.appSummaryResponse.brandSafetyRisk.singleRating),"L"!==(null==t.appSummaryResponse||null==t.appSummaryResponse.brandSafetyRisk?null:t.appSummaryResponse.brandSafetyRisk.singleRating)))}}function Ki(o,a){if(1&o&&(e.j41(0,"div",8)(1,"div",9),e.EFF(2),e.k0s(),e.DNE(3,Yi,2,5,"div",54),e.DNE(4,Xi,3,4,"div",55),e.DNE(5,Qi,3,8,"div",6),e.k0s()),2&o){const t=a.$implicit,i=e.XpG(3);e.R7$(2),e.SpI(" ",t.label," "),e.R7$(1),e.Y8G("ngIf",null==i.appSummaryResponse||null==i.appSummaryResponse.brandSafetyRisk?null:i.appSummaryResponse.brandSafetyRisk.showMedHigh),e.R7$(1),e.Y8G("ngIf",null==i.appSummaryResponse||null==i.appSummaryResponse.brandSafetyRisk?null:i.appSummaryResponse.brandSafetyRisk.showMedHigh),e.R7$(1),e.Y8G("ngIf",!(null!=i.appSummaryResponse&&null!=i.appSummaryResponse.brandSafetyRisk&&i.appSummaryResponse.brandSafetyRisk.showMedHigh))}}function Hi(o,a){if(1&o&&(e.j41(0,"div",52),e.DNE(1,Ki,6,4,"div",53),e.k0s()),2&o){const t=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",t.brandSafetyRatingKeys)}}function zi(o,a){if(1&o&&(e.j41(0,"div",38),e.EFF(1),e.nI1(2,"roundpercent"),e.k0s()),2&o){const t=e.XpG(3);e.R7$(1),e.SpI(" ",e.i5U(2,1,(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)/t.totalCount,0)," ")}}function qi(o,a){if(1&o&&(e.j41(0,"div",61),e.EFF(1," Missing "),e.k0s()),2&o){const t=e.XpG(3);e.Y8G("ngClass",e.l_i(1,V,(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)>
10,(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)<=0))}}function Ji(o,a){if(1&o&&(e.j41(0,"div",61),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.Y8G("ngClass",e.l_i(2,V,(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)>0,(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)<=0)),e.R7$(1),e.SpI(" ",0===(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)?"Low":"High"," Risk ")}}function Wi(o,a){if(1&o&&(e.j41(0,"div",59)(1,"app-progress-circle",19),e.nrm(2,"div",60),e.k0s(),e.j41(3,"div",21),e.DNE(4,zi,3,4,"div",26),e.DNE(5,qi,2,4,"div",23),e.DNE(6,Ji,2,5,"div",23),e.k0s()()),2&o){const t=e.XpG(2);e.Y8G("ngClass",e.eq3(9,ae,(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)<=0)),e.R7$(1),e.Y8G("classref",".appadstxt-chart")("max",100)("icon",(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)<=0?"\u2713":null)("value",(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)>0?(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)/t.totalCount*100:100)("overridecolor",(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)>0?t.colorMapping.H:t.colorMapping.L),e.R7$(3),e.Y8G("ngIf",(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)>0&&(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)<t.totalCount),e.R7$(1),e.Y8G("ngIf",(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)>0&&(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)<t.totalCount),e.R7$(1),e.Y8G("ngIf",0===(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)||(null==t.appSummaryResponse||null==t.appSummaryResponse.isAdsDotTxtExist?null:t.appSummaryResponse.isAdsDotTxtExist.F)===t.totalCount)}}function Zi(o,a){if(1&o&&(e.j41(0,"div",46)(1,"div",47)(2,"div",3),e.EFF(3,"Brand Safety Risk"),e.k0s(),e.j41(4,"div",4),e.DNE(5,Ui,9,7,"div",5),e.DNE(6,Li,6,12,"div",6),e.DNE(7,Hi,2,1,"div",48),e.k0s()(),e.j41(8,"div",47)(9,"div",3),e.EFF(10,"Ads.txt"),e.k0s(),e.j41(11,"div",4),e.DNE(12,Wi,7,11,"div",49),e.k0s()()()),2&o){const t=e.XpG();e.R7$(5),e.Y8G("ngIf",t.appSummaryResponse&&(null==t.appSummaryResponse||null==t.appSummaryResponse.brandSafetyRisk?null:t.appSummaryResponse.brandSafetyRisk.showMedHigh)),e.R7$(1),e.Y8G("ngIf",t.appSummaryResponse&&!(null!=t.appSummaryResponse&&null!=t.appSummaryResponse.brandSafetyRisk&&t.appSummaryResponse.brandSafetyRisk.showMedHigh)&&(null==t.appSummaryResponse||null==t.appSummaryResponse.brandSafetyRisk?null:t.appSummaryResponse.brandSafetyRisk.singleRating)),e.R7$(1),e.Y8G("ngIf",t.appSummaryResponse),e.R7$(5),e.Y8G("ngIf",t.appSummaryResponse&&(null==t.appSummaryResponse?null:t.appSummaryResponse.isAdsDotTxtExist))}}function eo(o,a){if(1&o&&(e.j41(0,"div",62),e.EFF(1),e.nI1(2,"roundpercent"),e.k0s()),2&o){const t=e.XpG();e.Y8G("ngClass",e.l_i(5,V,100*(null==t.appSummaryResponse||null==t.appSummaryResponse.givtSivtRate?null:t.appSummaryResponse.givtSivtRate.average)>0,100*(null==t.appSummaryResponse||null==t.appSummaryResponse.givtSivtRate?null:t.appSummaryResponse.givtSivtRate.average)<=0)),e.R7$(1),e.SpI(" ",e.i5U(2,2,null==t.appSummaryResponse||null==t.appSummaryResponse.givtSivtRate?null:t.appSummaryResponse.givtSivtRate.average,0)," ")}}function to(o,a){if(1&o&&(e.j41(0,"div",61),e.EFF(1," Average "),e.k0s()),2&o){const t=e.XpG();e.Y8G("ngClass",e.l_i(1,V,100*(null==t.appSummaryResponse||null==t.appSummaryResponse.givtSivtRate?null:t.appSummaryResponse.givtSivtRate.average)>0,100*(null==t.appSummaryResponse||null==t.appSummaryResponse.givtSivtRate?null:t.appSummaryResponse.givtSivtRate.average)<=0))}}function no(o,a){if(1&o&&(e.j41(0,"div",61),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.Y8G("ngClass",e.l_i(2,V,100*(null==t.appSummaryResponse||null==t.appSummaryResponse.givtSivtRate?null:t.appSummaryResponse.givtSivtRate.average)>0,100*(null==t.appSummaryResponse||null==t.appSummaryResponse.givtSivtRate?null:t.appSummaryResponse.givtSivtRate.average)<=0)),e.R7$(1),e.SpI(" ",100*(null==t.appSummaryResponse||null==t.appSummaryResponse.givtSivtRate?null:t.appSummaryResponse.givtSivtRate.average)==0?"Low":"High"," Risk ")}}function io(o,a){if(1&o&&(e.j41(0,"div",63),e.EFF(1),e.nI1(2,"roundpercent"),e.k0s()),2&o){const t=e.XpG();e.R7$(1),e.SpI(" ",e.i5U(2,1,(null==t.appSummaryResponse||null==t.appSummaryResponse.givtSivtRate?null:t.appSummaryResponse.givtSivtRate.appsLess5percent)/t.totalCount,0)," ")}}function oo(o,a){1&o&&(e.j41(0,"div",38),e.EFF(1," 0% "),e.k0s())}function so(o,a){1&o&&(e.j41(0,"div",64),e.EFF(1," 100% "),e.k0s())}function ro(o,a){if(1&o&&(e.qex(0),e.j41(1,"div",65)(2,"div",66)(3,"div",44),e.EFF(4,"SIVT"),e.k0s(),e.j41(5,"div",67)(6,"div",68),e.nI1(7,"roundpercent"),e.k0s(),e.j41(8,"div",44),e.EFF(9),e.nI1(10,"roundpercent"),e.k0s()()(),e.j41(11,"div",66)(12,"div",44),e.EFF(13,"GIVT"),e.k0s(),e.j41(14,"div",67)(15,"div",69),e.nI1(16,"roundpercent"),e.k0s(),e.j41(17,"div",44),e.EFF(18),e.nI1(19,"roundpercent"),e.k0s()()()(),e.bVm()),2&o){const t=e.XpG();e.R7$(6),e.xc7("width",e.i5U(7,6,null==t.appSummaryResponse?null:t.appSummaryResponse.sivtRate,0)),e.R7$(3),e.JRh(e.i5U(10,9,null==t.appSummaryResponse?null:t.appSummaryResponse.sivtRate,0)),e.R7$(6),e.xc7("width",e.i5U(16,12,null==t.appSummaryResponse?null:t.appSummaryResponse.givtRate,0)),e.R7$(3),e.JRh(e.i5U(19,15,null==t.appSummaryResponse?null:t.appSummaryResponse.givtRate,0))}}function ao(o,a){if(1&o&&(e.j41(0,"div",64),e.EFF(1),e.nI1(2,"roundpercent"),e.k0s()),2&o){const t=e.XpG();e.R7$(1),e.SpI(" ",e.i5U(2,1,null==t.appSummaryResponse?null:t.appSummaryResponse.nonGivtSivtViewability,0)," ")}}function lo(o,a){1&o&&(e.j41(0,"div",70),e.EFF(1," Average "),e.k0s())}function po(o,a){1&o&&(e.j41(0,"div",70),e.EFF(1," Low Risk "),e.k0s())}function co(o,a){if(1&o&&(e.j41(0,"div",66)(1,"div",44),e.EFF(2),e.k0s(),e.j41(3,"div",67)(4,"div",68),e.nI1(5,"roundpercent"),e.k0s(),e.j41(6,"div",44),e.EFF(7),e.nI1(8,"roundpercent"),e.k0s()()()),2&o){const t=a.$implicit,i=e.XpG(2);e.R7$(2),e.JRh(t.size),e.R7$(2),e.xc7("width",e.i5U(5,4,(null==t?null:t.count)/i.totalCount,0)),e.R7$(3),e.JRh(e.i5U(8,7,(null==t?null:t.count)/i.totalCount,0))}}function uo(o,a){if(1&o&&(e.j41(0,"div",24)(1,"div",44),e.EFF(2,"Top Ad Sizes"),e.k0s(),e.j41(3,"div",65),e.DNE(4,co,9,10,"div",71),e.k0s()()),2&o){const t=e.XpG();e.R7$(4),e.Y8G("ngForOf",null==t.appSummaryResponse?null:t.appSummaryResponse.topAdSizes)}}const mo=function(o){return{invisible:o}},go=function(o){return{Low:o}};let ho=(()=>{class o{constructor(t,i,n,s){this._appService=t,this._domainService=i,this._ctvService=n,this._route=s,this.riskRateMapping=ai,this.colorMapping=li,this.brandSafetyRatingKeys=null,this.brandSafetyRatings=[]}ngOnInit(){this.totalCount=0,this.appSummaryResponse=yi}ngOnChanges(t){for(const i in t)"facets"===i&&JSON.stringify(t[i].currentValue)!==JSON.stringify(t[i].previousValue)&&(console.log("FACETS UPDATING..."+Math.random()),this.fetchStats())}
1fetchStats(){let t=null,i=null,n=null,s=null;this.viewabilityLabel="","apps"===this.currentConfig.key?(t=this._appService.getStats(this.filterStrings),i=pi,n=hi,s=di,this.riskProgressCircleChartKey="pixalateRating"):"ctv"===this.currentConfig.key?(t=this._ctvService.getStats(this.filterStrings),i=ci,n=_i,s=ui,this.riskProgressCircleChartKey="pixalateRisk",this.viewabilityLabel="Est. SSAI Rate"):"domains"===this.currentConfig.key&&(t=this._domainService.getStats(this.filterStrings),i=gi,n=fi,s=mi,this.riskProgressCircleChartKey="risk"),t.then(r=>{this.appStats=r,this.brandSafetyRatings=[],this.brandSafetyRatingKeys=n;const l=JSON.parse(JSON.stringify(this.appSummaryResponse));i.forEach(p=>{if(r[p]){l[p]={L:0,M:0,H:0};const c=Object.keys(r[p]);this.sortRatingKeys(c),c.forEach(d=>{l[p][d]=r[p][d]}),l[p].showMedHigh=3===c.length||2===c.length&&c.indexOf("L")>=0,c.length<3&&(l[p].singleRating=c[c.length-1]);const u=this.brandSafetyRatingKeys.filter(d=>d.key===p);u&&u[0]&&this.brandSafetyRatings.push(u[0])}}),s.forEach(p=>{l[p]={T:0,F:0},r[p]?Object.keys(r[p]).forEach(u=>{l[p][u]=r[p][u]}):this.facets[p]&&Object.keys(this.facets[p]).forEach(u=>{l[p][u]=this.facets[p][u]})}),l.givtSivtRate=new vi,l.givtSivtRate.average=0,l.givtSivtRate.appsLess5percent=0,r.givtSivtRate&&(l.givtSivtRate.average=Math.abs(r.givtSivtRate.average),l.givtSivtRate.appsLess5percent=r.givtSivtRate["[0,0.05]"]),r.ivtRate&&(l.givtSivtRate.average=Math.abs(r.ivtRate.average),l.givtSivtRate.appsLess5percent=r.ivtRate["[0,0.05]"]),r.givtRate&&(l.givtRate=r.givtRate.average),r.sivtRate&&(l.sivtRate=r.sivtRate.average),l.nonGivtSivtViewability=0,r.nonGivtSivtViewability&&(this.viewabilityChartIcon="✓",l.nonGivtSivtViewability=r.nonGivtSivtViewability.average),r.ssaiRate&&(this.viewabilityChartIcon="✓",l.nonGivtSivtViewability=r.ssaiRate.average),r.topAdSizes&&(l.topAdSizes=new Array,Object.keys(r.topAdSizes).forEach(c=>{if("N/A"!==c){const u=new ri;u.size=c,u.count=r.topAdSizes[c],l.topAdSizes.push(u)}})),setTimeout(()=>{},100),this.totalCount=r.total,this.appSummaryResponse=l,this.processSummaryResponse(r)})}processSummaryResponse(t){this.riskSummaryItems=[],"domains"===this.currentConfig.key?t.trafficSource&&(this.riskSummaryItems.push({class:"color-blue",label:"With Direct as Top Traffic Source",value:t.trafficSource.Direct?t.trafficSource.Direct:0}),this.riskSummaryItems.push({class:"color-blue",label:"With Search as Top Traffic Source",value:t.trafficSource.Search?t.trafficSource.Search:0}),this.riskSummaryItems.push({class:"color-blue",label:"With Social as Top Traffic Source",value:t.trafficSource.Social?t.trafficSource.Social:0}),this.riskSummaryItems.push({class:"color-blue",label:"With Paid as Top Traffic Source",value:t.trafficSource.Paid?t.trafficSource.Paid:0})):"apps"===this.currentConfig.key?(t.hasPrivacyLink&&this.riskSummaryItems.push({showWarningIcon:t.hasPrivacyLink.F>0,label:"Without Privacy Policy",value:t.hasPrivacyLink.F?t.hasPrivacyLink.F:0}),t.isBlacklisted&&this.riskSummaryItems.push({class:!t.isBlacklisted.T||t.isBlacklisted.T<=0?"color-L":null,showWarningIcon:t.isBlacklisted.T>0,label:"Blocklisted",value:t.isBlacklisted.T?t.isBlacklisted.T:0}),t.isPrivateDomain&&this.riskSummaryItems.push({showWarningIcon:t.isPrivateDomain.T>0,label:"With Private Domain",value:t.isPrivateDomain.T?t.isPrivateDomain.T:0}),t.isExistInAppStore&&this.riskSummaryItems.push({showWarningIcon:!0,label:"Not in App Store",value:t.isExistInAppStore.F?t.isExistInAppStore.F:0})):"ctv"===this.currentConfig.key&&(t.revenueSource&&(t.revenueSource.Ads||(t.revenueSource.Ads=0),this.riskSummaryItems.push({class:t.isAdsDetected.T<=0||!t.isAdsDetected.T?"color-blue":null,showWarningIcon:t.isAdsDetected.T>0,label:"Has Ads",value:t.isAdsDetected.T?t.isAdsDetected.T:0}),t.revenueSource.InAppSubscriptions||(t.revenueSource.InAppSubscriptions=0),this.riskSummaryItems.push({class:t.revenueSource.InAppSubscriptions<=0?"color-blue":null,showWarningIcon:t.revenueSource.InAppSubscriptions>0,label:"Has In-app Subscriptions",value:t.revenueSource.InAppSubscriptions?t.revenueSource.InAppSubscriptions:0})),t.isCvaaCompliant&&(t.isCvaaCompliant.F||(t.isCvaaCompliant.F=0),"roku"===this._route.snapshot.params.param1&&this.riskSummaryItems.push({class:t.isCvaaCompliant.F<=0?"color-blue":null,showWarningIcon:t.isCvaaCompliant.F>0,label:"Not CVAA Compliant",value:t.isCvaaCompliant.F?t.isCvaaCompliant.F:0})),t.hasPrivacyLink&&(t.hasPrivacyLink.F||(t.hasPrivacyLink.F=0),this.riskSummaryItems.push({class:t.hasPrivacyLink.F<=0?"color-blue":null,showWarningIcon:t.hasPrivacyLink.F>0,label:"Without Privacy Policy",value:t.hasPrivacyLink.F?t.hasPrivacyLink.F:0})),this.appSummaryResponse.topAdSizes=[],this.appSummaryResponse.hasAdsTxt=this.appSummaryResponse.isAdsTxtEnabled,this.appSummaryResponse.appDescriptionBrandSafetyRating=this.appSummaryResponse.brandSafetyRisk)}sortRatingKeys(t){t.sort((i,n)=>i!==n?"L"===i||"M"===i&&"H"===n?-1:1:0)}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(A.d),e.rXU($.i),e.rXU(U.$),e.rXU(w.nX))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-app-summary-view"]],inputs:{currentConfig:"currentConfig",facets:"facets",loadingData:"loadingData",filterStrings:"filterStrings"},features:[e.OA$],decls:51,vars:45,consts:[[1,"grid-data","dashboard-view"],[1,"wrappers-cont","risk-overview"],[1,"wrapper","section2"],[1,"graph-label"],[1,"risk-cont"],["class","graph-cont d-flex align-items-center justify-content-center",4,"ngIf"],[3,"class",4,"ngIf"],[1,"d-flex","flex-column","justify-content-center","risk-content-ratings",3,"ngClass"],[1,"d-flex","align-items-center"],[1,"risk-content-label"],[1,"progress","bg-M"],[1,"risk-content-percent"],["class","d-flex align-items-center",4,"ngIf"],[1,"d-flex","flex-row","flex-wrap","summary-wrapper","justify-content-between","align-items-center"],[4,"ngFor","ngForOf"],["class","wrappers-cont brand-safety-risk",4,"ngIf"],[1,"wrappers-cont"],[1,"wrapper","section5"],[1,"graph-cont",3,"ngClass"],[3,"classref","max","icon","value","overridecolor"],[1,"ivt-risk-chart",2,"width","214px","height","214px"],[1,"graph-legend","progress-circle"],["class","big-number",3,"ngClass",4,"ngIf"],["class","desc-text",3,"ngClass",4,"ngIf"],[1,"summary-cont"],["class","big-number",4,"ngIf"],["class","big-number color-H",4,"ngIf"],["class","big-number color-L",4,"ngIf"],[1,"desc-text"],[4,"ngIf"],[1,"graph-cont","viewability-graph"],[3,"classref","reverse","max","icon","value","overridecolor"],[1,"view-risk-chart",2,"width","214px","height","214px"],["class","desc-text color-L",4,"ngIf"],["class","summary-cont",4,"ngIf"],[1,"graph-cont","d-flex","align-items-center","justify-content-center"],[3,"classref","max","value"],[1,"risk-chart",2,"width","214px","height","214px"],[1,"big-number","color-H"],[1,"desc-text","color-H"],[3,"classref","max","value","icon","overridecolor"],[1,"risk-chart-2",2,"width","214px","height","214px"],[1,"progress","bg-H"],[1,"summary-cont-value"],[1,"label"],[1,"fa","fa-exclamation-circle","color-H"],[1,"wrappers-cont","brand-safety-risk"],[1,"wrapper"],["class","d-flex flex-column justify-content-center risk-content-ratings",4,"ngIf"],["class","graph-cont d-flex align-items-center justify-content-center app-ads-txt-graph",3,"ngClass",4,"ngIf"],[1,"brandsafety-risk-chart",2,"width","214px","height","214px"],[1,"brandsafety-risk-chart-2",2,"width","214px","height","214px"],[1,"d-flex","flex-column","justify-content-center","risk-content-ratings"],["class","d-flex align-items-center",4,"ngFor","ngForOf"],["class","progress bg-red",3,"width",4,"ngIf"],["class","risk-content-percent",4,"ngIf"],[1,"progress","bg-red"],["data-toggle","tooltip",1,"p-0"],[1,"fa",3,"ngClass"],[1,"graph-cont","d-flex","align-items-center","justify-content-center","app-ads-txt-graph",3,"ngClass"],[1,"appadstxt-chart",2,"width","214px","height","214px"],[1,"desc-text",3,"ngClass"],[1,"big-number",3,"ngClass"],[1,"big-number"],[1,"big-number","color-L"],[1,"percentage-bars"],[1,"d-flex"],[1,"percentage-bar"],[2,"background","#2652B2","border-radius","10px","height","16px"],[2,"width","26%","background","#61A5ED","border-radius","10px","height","16px"],[1,"desc-text","color-L"],["class","d-flex",4,"ngFor","ngForOf"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.EFF(4,"Risk Overview"),e.k0s(),e.j41(5,"div",4),e.DNE(6,bi,9,7,"div",5),e.DNE(7,ki,6,12,"div",6),e.j41(8,"div",7)(9,"div",8)(10,"div",9),e.EFF(11," Medium "),e.k0s(),e.j41(12,"div",10),e.nI1(13,"roundpercent"),e.k0s(),e.j41(14,"div",11),e.EFF(15),e.nI1(16,"roundpercent"),e.k0s()(),e.DNE(17,Ri,8,9,"div",12),e.k0s(),e.j41(18,"div",13),e.DNE(19,Pi,8,5,"ng-container",14),e.k0s()()()(),e.DNE(20,Bi,13,4,"div",15),e.DNE(21,Zi,13,4,"div",15),e.j41(22,"div",16)(23,"div",17)(24,"div",3),e.EFF(25,"IVT"),e.k0s(),e.j41(26,"div",18)(27,"app-progress-circle",19),e.nrm(28,"div",20),e.k0s(),e.j41(29,"div",21),e.DNE(30,eo,3,8,"div",22),e.DNE(31,to,2,4,"div",23),e.DNE(32,no,2,5,"div",23),e.k0s()(),e.j41(33,"div",24),e.DNE(34,io,3,4,"div",25),e.DNE(35,oo,2,0,"div",26),e.DNE(36,so,2,0,"div",27),e.j41(37,"div",28),e.EFF(38),e.k0s(),e.DNE(39,ro,20,18,"ng-container",29),e.k0s()(),e.j41(40,"div",17)(41,"div",3),e.EFF(42),e.k0s(),e.j41(43,"div",30)(44,"app-progress-circle",31),e.nrm(45,"div",32),e.k0s(),e.j41(46,"div",21),e.DNE(47,ao,3,4,"div",27),e.DNE(48,lo,2,0,"div",33),e.DNE(49,po,2,0,"div",33),e.k0s()(),e.DNE(50,uo,5,1,"div",34),e.k0s()()()),2&i&&(e.R7$(6),e.Y8G("ngIf",n.appSummaryResponse&&(null==n.appSummaryResponse[n.riskProgressCircleChartKey]?null:n.appSummaryResponse[n.riskProgressCircleChartKey].showMedHigh)),e.R7$(1),e.Y8G("ngIf",n.appSummaryResponse&&!(null!=n.appSummaryResponse[n.riskProgressCircleChartKey]&&n.appSummaryResponse[n.riskProgressCircleChartKey].showMedHigh)&&(null==n.appSummaryResponse[n.riskProgressCircleChartKey]?null:n.appSummaryResponse[n.riskProgressCircleChartKey].singleRating)),e.R7$(1),e.Y8G("ngClass",e.eq3(41,mo,n.appSummaryResponse&&!(null!=n.appSummaryResponse[n.riskProgressCircleChartKey]&&n.appSummaryResponse[n.riskProgressCircleChartKey].showMedHigh)&&(null==n.appSummaryResponse[n.riskProgressCircleChartKey]?null:n.appSummaryResponse[n.riskProgressCircleChartKey].singleRating))),e.R7$(4),e.xc7("width",e.i5U(13,35,(null==n.appSummaryResponse[n.riskProgressCircleChartKey]?null:n.appSummaryResponse[n.riskProgressCircleChartKey].M)/n.totalCount,0)),e.R7$(3),e.SpI(" ",e.i5U(16,38,(null==n.appSummaryResponse[n.riskProgressCircleChartKey]?null:n.appSummaryResponse[n.riskProgressCircleChartKey].M)/n.totalCount,0)," "),e.R7$(2),e.Y8G("ngIf",n.appSummaryResponse[n.riskProgressCircleChartKey]),e.R7$(2),e.Y8G("ngForOf",n.riskSummaryItems),e.R7$(1),e.Y8G("ngIf","apps"===(null==n.currentConfig?null:n.currentConfig.key)||"ctv"===(null==n.currentConfig?null:n.currentConfig.key)),e.R7$(1),e.Y8G("ngIf","domains"===(null==n.currentConfig?null:n.currentConfig.key)),e.R7$(5),e.Y8G("ngClass",e.eq3(43,go,100*(null==n.appSummaryResponse||null==n.appSummaryResponse.givtSivtRate?null:n.appSummaryResponse.givtSivtRate.average)<=0)),e.R7$(1),e.Y8G("classref",".ivt-risk-chart")("max",100)("icon",100*(null==n.appSummaryResponse||null==n.appSummaryResponse.givtSivtRate?null:n.appSummaryResponse.givtSivtRate.average)<=0?"\u2713":null)("value",(null==n.appSummaryResponse||null==n.appSummaryResponse.givtSivtRate?null:n.appSummaryResponse.givtSivtRate.average)>0?100*(null==n.appSummaryResponse||null==n.appSummaryResponse.givtSivtRate?null:n.appSummaryResponse.givtSivtRate.average):100)("overridecolor",100*(null==n.appSummaryResponse||null==n.appSummaryResponse.givtSivtRate?null:n.appSummaryResponse.givtSivtRate.average)>0?"#FA574B":"#3CC778"),e.R7$(3),e.Y8G("ngIf",100*(null==n.appSummaryResponse||null==n.appSummaryResponse.givtSivtRate?null:n.appSummaryResponse.givtSivtRate.average)>0&&100*(null==n.appSummaryResponse||null==n.appSummaryResponse.givtSivtRate?null:n.appSummaryResponse.givtSivtRate.average)<100),e.R7$(1),e.Y8G("ngIf",100*(null==n.appSummaryResponse||null==n.appSummaryResponse.givtSivtRate?null:n.appSummaryResponse.givtSivtRate.average)>0&&100*(null==n.appSummaryResponse||null==n.appSummaryResponse.givtSivtRate?null:n.appSummaryResponse.givtSivtRate.average)<100),e.R7$(1),e.Y8G("ngIf",100*(null==n.appSummaryResponse||null==n.appSummaryResponse.givtSivtRate?null:n.appSummaryResponse.givtSivtRate.average)==0||
1100*(null==n.appSummaryResponse||null==n.appSummaryResponse.givtSivtRate?null:n.appSummaryResponse.givtSivtRate.average)==100),e.R7$(2),e.Y8G("ngIf",(null==n.appSummaryResponse||null==n.appSummaryResponse.givtSivtRate?null:n.appSummaryResponse.givtSivtRate.appsLess5percent)>0&&(null==n.appSummaryResponse||null==n.appSummaryResponse.givtSivtRate?null:n.appSummaryResponse.givtSivtRate.appsLess5percent)<n.totalCount),e.R7$(1),e.Y8G("ngIf",(null==n.appSummaryResponse||null==n.appSummaryResponse.givtSivtRate?null:n.appSummaryResponse.givtSivtRate.appsLess5percent)<=0),e.R7$(1),e.Y8G("ngIf",(null==n.appSummaryResponse||null==n.appSummaryResponse.givtSivtRate?null:n.appSummaryResponse.givtSivtRate.appsLess5percent)===n.totalCount),e.R7$(2),e.SpI("","apps"===(null==n.currentConfig?null:n.currentConfig.key)||"ctv"===(null==n.currentConfig?null:n.currentConfig.key)?"Apps":"Domains"," Less than 5% IVT"),e.R7$(1),e.Y8G("ngIf","ctv"!==(null==n.currentConfig?null:n.currentConfig.key)),e.R7$(3),e.JRh(n.viewabilityLabel?n.viewabilityLabel:"Viewability"),e.R7$(2),e.Y8G("classref",".view-risk-chart")("reverse",!0)("max",100)("icon","\u2713")("value",(null==n.appSummaryResponse?null:n.appSummaryResponse.nonGivtSivtViewability)>0?100*(null==n.appSummaryResponse?null:n.appSummaryResponse.nonGivtSivtViewability):100)("overridecolor","#3CC778"),e.R7$(3),e.Y8G("ngIf",100*(null==n.appSummaryResponse?null:n.appSummaryResponse.nonGivtSivtViewability)>0&&100*(null==n.appSummaryResponse?null:n.appSummaryResponse.nonGivtSivtViewability)<100),e.R7$(1),e.Y8G("ngIf",100*(null==n.appSummaryResponse?null:n.appSummaryResponse.nonGivtSivtViewability)>0&&100*(null==n.appSummaryResponse?null:n.appSummaryResponse.nonGivtSivtViewability)<100),e.R7$(1),e.Y8G("ngIf",!(100*(null==n.appSummaryResponse?null:n.appSummaryResponse.nonGivtSivtViewability)>0&&100*(null==n.appSummaryResponse?null:n.appSummaryResponse.nonGivtSivtViewability)<100)),e.R7$(1),e.Y8G("ngIf",(null==n.appSummaryResponse||null==n.appSummaryResponse.topAdSizes?null:n.appSummaryResponse.topAdSizes.length)>0))},dependencies:[Ci.j,z.d,_.YU,_.Sq,_.bT,Si.G]})}}return o})();function fo(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",1)(1,"button",2),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.downloadWithPermission())}),e.nrm(2,"img",3),e.EFF(3," Download as CSV "),e.k0s(),e.nrm(4,"div",4),e.k0s()}if(2&o){const t=e.XpG();e.R7$(1),e.Y8G("hidden",t.downloading),e.R7$(3),e.Y8G("hidden",!t.downloading)}}const le=function(o){return{selected:o}};function _o(o,a){if(1&o){const t=e.RV6();e.j41(0,"a",9),e.bIt("click",function(n){const r=e.eBV(t).$implicit,l=e.XpG(2);return e.Njj(l.toggleDownloadColumn(n,r))}),e.nrm(1,"i",10)(2,"i",11),e.EFF(3),e.k0s()}if(2&o){const t=a.$implicit;e.Y8G("ngClass",e.eq3(2,le,t.selected)),e.R7$(3),e.SpI(" ",t.label," ")}}function vo(o,a){if(1&o){const t=e.RV6();e.j41(0,"a",21),e.bIt("click",function(n){e.eBV(t);const s=e.XpG(2);return e.Njj(s.downloadCsvWithColumns(n,!0))}),e.EFF(1,"Unfiltered"),e.k0s()}}const yo=function(o){return{disabled:o}};function Co(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",1)(1,"div",5)(2,"button",6),e.nrm(3,"img",3),e.EFF(4," Download as CSV "),e.k0s(),e.j41(5,"div",7)(6,"div",8)(7,"a",9),e.bIt("click",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.toggleSelectAllColumns(n))}),e.nrm(8,"i",10)(9,"i",11),e.EFF(10,"\xa0Select all "),e.k0s()(),e.j41(11,"div",12),e.DNE(12,_o,4,4,"a",13),e.k0s(),e.j41(13,"div",14)(14,"a",15),e.EFF(15,"Cancel"),e.k0s(),e.j41(16,"button",16),e.bIt("click",function(n){return n.stopPropagation()}),e.EFF(17," Download "),e.nrm(18,"i",17),e.j41(19,"div",18)(20,"a",19),e.bIt("click",function(n){e.eBV(t);const s=e.XpG();return e.Njj(s.downloadCsvWithColumns(n))}),e.EFF(21,"Filtered"),e.k0s(),e.DNE(22,vo,2,0,"a",20),e.k0s()()()()(),e.nrm(23,"div",4),e.k0s()}if(2&o){const t=e.XpG();e.R7$(1),e.Y8G("hidden",t.downloading||!t.downloadColumns),e.R7$(6),e.Y8G("ngClass",e.eq3(6,le,t.selectAllColumns)),e.R7$(5),e.Y8G("ngForOf",t.downloadColumns),e.R7$(4),e.Y8G("ngClass",e.eq3(8,yo,t.downloadButtonDisabled)),e.R7$(6),e.Y8G("ngIf",!t.hideUnfilteredDownloadCsv),e.R7$(1),e.Y8G("hidden",!t.downloading)}}let So=(()=>{class o{constructor(t,i,n,s,r,l,p){this._eventService=t,this._appService=i,this._domainService=n,this._ctvService=s,this._route=r,this._watchlistService=l,this._userService=p}ngOnInit(){this._eventService.downloadCsvClickPopupEvent.subscribe(t=>{t&&this.downloadCsv(!1)})}ngOnChanges(t){t.downloadColumns&&(this.updateSelectAllStatus(),this.updateLocalStorage())}updateLocalStorage(){const t=this.downloadColumns.filter(s=>s.selected);let n=te;if("domains"===this._route.snapshot.params.discoverytype&&(n=ne),t&&t[0]){const s=t.map(r=>r.key).join(",");localStorage.setItem(n,s)}}updateSelectAllStatus(){const t=this.downloadColumns.filter(n=>n.selected).length,i=this.downloadColumns.length;this.selectAllColumns=i>0&&i===t}toggleDownloadColumn(t,i){t.stopPropagation(),i.selected=!i.selected;const n=this.downloadColumns.filter(s=>s.selected);this.downloadButtonDisabled=!n||n.length<=0,this.updateSelectAllStatus(),this.updateLocalStorage()}toggleSelectAllColumns(t){t.stopPropagation(),this.selectAllColumns=!this.selectAllColumns,this.downloadColumns.forEach(i=>
1{i.selected=this.selectAllColumns}),this.downloadButtonDisabled=!this.selectAllColumns,this.updateLocalStorage()}downloadWithPermission(){if(this.totalCount>1e6)return this._eventService.showDownloadCsvLimitPopup();this._userService.hasPermission("quotaExpansion")?this._eventService.showDownloadDeductionPopup(this.totalCount):this.downloadCsv(!1)}downloadCsvWithColumns(t,i){this.downloadButtonDisabled?t&&t.stopPropagation():this.downloadCsv(!0,i)}downloadCsv(t,i){if(this.totalCount>1e6)this._eventService.showDownloadCsvLimitPopup();else{let n=null;const s=this.getFilterStrings(i);if(t){const r=this.downloadColumns.filter(l=>l.selected).map(l=>l.key);if(r&&r[0]){const l=r.join(",");s.push(`columns=${l}`)}}if(this.showFollowing){const r=this.currentConfig.key,l=this._watchlistService.watchlist.getFollowListByType(this.watchlistTypeMapping[r]);this.followingCount>0?l.forEach(p=>{s.push(`${this.followIdMapping[r]}=${p.followId}`)}):s.push(`${this.followIdMapping[r]}=XXXX`)}"apps"===this.currentConfig.key?(this.appGlobalSearchParam&&this.appGlobalSearchParam.length>0&&s.push(`appGlobalSearchParam=${this.appGlobalSearchParam}`),n=this._appService.downloadCsv("appSearch",s.join("&"))):"domains"===this.currentConfig.key?n=this._domainService.downloadCsv(s.join("&")):"ctv"===this.currentConfig.key&&(n=this._ctvService.downloadCsv(s.join("&"))),this.callDownloadService(n)}}getFilterStrings(t,i){return G_getFilterStrings(this.currentConfig,this.selectedFilterValues,this.cannedreports,this._route.snapshot.queryParams.bulkUploadReportId,this.currentCannedReportUpdater,this.importedFileNameUpdater,t,i)}callDownloadService(t){if(t){this.downloading=!0;let i=!1;const n=this._userService.hasPermission("quotaExpansion");t.then(s=>{s=s.replace(/"/g,"");const r=setInterval(l=>{jQuery.ajax({url:s,dataType:"jsonp",timeout:5e3,success:p=>{},error:p=>{i||(200===p.status||0===p.readyState&&0===p.status&&"timeout"===p.statusText?(clearInterval(r),i=!0,this.downloading=!1,window.location.href=s):n&&4===p.readyState&&(clearInterval(r),i=!0,this.downloading=!1,this._eventService.showQuotaError("Download failed due to insufficient quota.",!1)))}})},5005)})}}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(Y.W),e.rXU(A.d),e.rXU($.i),e.rXU(U.$),e.rXU(w.nX),e.rXU(Z.P),e.rXU(L.KJ))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-discovery-download-csv"]],inputs:{totalCount:"totalCount",showFollowing:"showFollowing",currentConfig:"currentConfig",appGlobalSearchParam:"appGlobalSearchParam",downloadButtonDisabled:"downloadButtonDisabled",downloadColumns:"downloadColumns",importedFileName:"importedFileName",canDownloadCSV:"canDownloadCSV",hideUnfilteredDownloadCsv:"hideUnfilteredDownloadCsv",selectedFilterValues:"selectedFilterValues",cannedreports:"cannedreports",currentCannedReportUpdater:"currentCannedReportUpdater",importedFileNameUpdater:"importedFileNameUpdater",followingCount:"followingCount",followIdMapping:"followIdMapping",watchlistTypeMapping:"watchlistTypeMapping"},features:[e.OA$],decls:2,vars:2,consts:[["class","download-csv",4,"ngIf"],[1,"download-csv"],[1,"btn","btn-outline-secondary",3,"hidden","click"],["src","/assets/images/icon-16-download.svg","alt","Download Icon"],["data-loader","circle-side",1,"loading-icon",3,"hidden"],[1,"dropdown","filter-dropdown","import-csv-dropdown",3,"hidden"],["id","download-csv-dropdown","type","button","id","dropdownMenuButton","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","dropdown-toggle"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu"],[1,"select-all-cont"],[1,"dropdown-item",3,"ngClass","click"],[1,"fa","fa-check-square-o"],[1,"fa","fa-square-o"],[1,"dropdown-menu-list-cont"],["class","dropdown-item",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"download-cont"],[1,"btn","btn-link"],[1,"btn","btn-primary","btn-dropdown",3,"ngClass","click"],[1,"fa","fa-caret-down"],[1,"menu-list"],[1,"menu-item",3,"click"],["class","menu-item","data-toggle","tooltip","title","Downloads all combinations",3,"click",4,"ngIf"],["data-toggle","tooltip","title","Downloads all combinations",1,"menu-item",3,"click"]],template:function(i,n){1&i&&(e.DNE(0,fo,5,2,"div",0),e.DNE(1,Co,24,10,"div",0)),2&i&&(e.Y8G("ngIf",!n.importedFileName&&n.canDownloadCSV&&n.totalCount>0),e.R7$(1),e.Y8G("ngIf",n.importedFileName))},dependencies:[z.d,_.YU,_.Sq,_.bT]})}}return o}
1)();function bo(o,a){1&o&&(e.qex(0),e.EFF(1,"mobile apps"),e.bVm())}function ko(o,a){1&o&&(e.qex(0),e.EFF(1,"connected tv apps"),e.bVm())}function Ro(o,a){1&o&&(e.qex(0),e.EFF(1,"domains"),e.bVm())}function wo(o,a){1&o&&(e.qex(0),e.EFF(1,"Domains"),e.bVm())}function Fo(o,a){1&o&&(e.qex(0),e.EFF(1,"Apps"),e.bVm())}let xo=(()=>{class o{constructor(){this.closeFollowingClick=new e.bkB}ngOnInit(){}closeFollowing(){this.closeFollowingClick.emit(!0)}static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-no-following"]],inputs:{currentConfig:"currentConfig"},outputs:{closeFollowingClick:"closeFollowingClick"},decls:12,vars:5,consts:[[1,"text-center","mt-5"],["src","/assets/images/empty-graphic.svg","alt","Empty Graphic"],[1,"text-label"],[4,"ngIf"],[1,"btn","btn-primary","discovery-apps",3,"click"]],template:function(i,n){1&i&&(e.j41(0,"div",0),e.nrm(1,"img",1),e.j41(2,"div",2),e.EFF(3," You are not following any "),e.DNE(4,bo,2,0,"ng-container",3),e.DNE(5,ko,2,0,"ng-container",3),e.DNE(6,Ro,2,0,"ng-container",3),e.EFF(7," . "),e.k0s(),e.j41(8,"button",4),e.bIt("click",function(){return n.closeFollowing()}),e.EFF(9," Discover "),e.DNE(10,wo,2,0,"ng-container",3),e.DNE(11,Fo,2,0,"ng-container",3),e.k0s()()),2&i&&(e.R7$(4),e.Y8G("ngIf","apps"===n.currentConfig.key),e.R7$(1),e.Y8G("ngIf","ctv"===n.currentConfig.key),e.R7$(1),e.Y8G("ngIf","domains"===n.currentConfig.key),e.R7$(4),e.Y8G("ngIf","domains"===n.currentConfig.key),e.R7$(1),e.Y8G("ngIf","domains"!==n.currentConfig.key))},dependencies:[_.bT],styles:[".text-label[_ngcontent-%COMP%]{font-size:16px;line-height:22px;text-align:center;color:#000;margin-top:24px;margin-bottom:24px}.btn-primary.discovery-apps[_ngcontent-%COMP%]{display:none;margin-bottom:64px;background:#2652B2}@media (max-width: 576px){.btn-primary.discovery-apps[_ngcontent-%COMP%]{display:inline-block}}"]})}}return o})();var Mo=h(69192),Po=h(59673);let Io=(()=>{class o{constructor(){}transform(t,i){return void 0!==t&&void 0!==i&&t.some(n=>n===i)}static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275pipe=e.EJ8({name:"arrayContainsValue",type:o,pure:!0})}}return o})(),Do=(()=>{class o{static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275mod=e.$C({type:o})}static{this.\u0275inj=e.G2t({providers:[N,Pt,W],imports:[si.h,oi.h,Dt.Y,Ot.b,_.MD,C.YN,It]})}}return o})();e.wjB(H,function(){return[Mo.e,Po.Q,_.YU,_.Sq,_.bT,C.me,C.Zm,C.BC,C.vS,ii,ho,So,xo]},function(){return[q.jE,Io]})},64384:(J,T,h)=>{h.d(T,{j:()=>x});var C=h(37580);const w=["#3CC778","#5FC168","#83BB59","#A7B549","#CBAF3A","#EFAA2B"],O=["#EFAA2B","#F19931","#F38837","#F5783E","#F76744","#FA574B"];let x=(()=>{class e{constructor(){}ngOnInit(){}ngOnChanges(F){for(const R in F)"value"===R&&this.updateChart()}updateChart(){jQuery(this.classref+" svg").css("visibility","hidden"),jQuery(this.classref).circleProgress({max:this.max,value:this.value}),jQuery(this.classref+" svg .icon-circle").remove(),setTimeout(()=>{const F=jQuery(this.classref+" svg path").attr("d");if(F){const R=F.split(" "),B=document.createElementNS("http://www.w3.org/2000/svg","defs");jQuery(B).html('<linearGradient id=\'grad\' x1="0" y1="1" x2="0" y2="0" ><stop offset="0.85" stop-color=\'#fa574b\'/><stop offset="1" stop-color=\'#EFAA2B\'/></linearGradient>'),jQuery(this.classref+" svg").prepend(B);const I=document.createElementNS("http://www.w3.org/2000/svg","circle");jQuery(I).attr("cx",R[9]),jQuery(I).attr("cy",R[10]),jQuery(I).attr("r","7"),jQuery(I).attr("fill","#FA574B"),jQuery(I).attr("stroke","white"),jQuery(I).attr("stroke-width","1"),jQuery(I).attr("class","icon-circle"),jQuery(this.classref+" svg text").before(I),jQuery(this.classref+" svg text").text("!"),this.icon&&jQuery(this.classref+" svg text").html(this.icon),jQuery(this.classref+" svg text").attr("stroke","none"),jQuery(this.classref+" svg text").attr("fill","#ffffff"),jQuery(this.classref+" svg text").attr("dy","0.33em"),jQuery(this.classref+" svg text").attr("x",R[9]),jQuery(this.classref+" svg text").attr("y",R[10]),jQuery(this.classref+" svg text").show(),jQuery(this.classref+" svg").css("visibility","visible");let _="#3CC778";this.reverse&&(_="#FA574B"),this.overridecolor?(_=this.overridecolor,jQuery(I).attr("fill",_)):this.value>5&&this.value<=10?(_=w[Math.round((this.value-5)/5*100/20)],this.reverse&&(_=[...O][Math.round((this.value-10)/90*100/20)])):this.value<100&&(_=O[Math.round((this.value-10)/90*100/20)],this.reverse&&(_=[...w][Math.round((this.value-5)/5*100/20)])),jQuery(this.classref+" svg .circle-progress-value").attr("stroke",_)}},1500)}static{this.\u0275fac=function(R){return new(R||e)}}static{this.\u0275dir=C.FsC({type:e,selectors:[["app-progress-circle"]],inputs:{value:"value",classref:"classref",max:"max",locked:"locked",icon:"icon",reverse:"reverse",overridecolor:"overridecolor"},features:[C.OA$]})}}return e})()},78767:(J,T,h)=>{h.d(T,{G:()=>O,K:()=>w});var C=h(37580);let w=(()=>{class x{transform(y,F){return isNaN(y)?y:y?y.toFixed(F):0}static{this.\u0275fac=function(F){return new(F||x)}}static{this.\u0275pipe=C.EJ8({name:"rounddecimal",type:x,pure:!0})}}return x})(),O=(()=>{class x{transform(y,F){if(!y)return"0%";y*=100;const R=Math.round(y);return y>=1?`${R}%`:"< 1%"}static{this.\u0275fac=function(F){return new(F||x)}}static{this.\u0275pipe=C.EJ8({name:"roundpercent",type:x,pure:!0})}}return x})()}}]); 2//# sourceMappingURL=src_app_components_new-navigation_discovery_discovery_module_ts.7fcc24f6519140ea.js.map
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.