1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["src_app_privacy_cookie-consent_manage-vendors_manage-vendors_module_ts"],{32270:(J,O,p)=>{p.d(O,{s:()=>L});var t=p(92340),b=p(28597),I=p(85740),V=p(24850),y=p(27221),C=p(61737),e=p(94650),U=p(80529),N=p(46262);let L=(()=>{const w=class{constructor(f,u){this.http=f,this.loki=u}onSubmitCookieBannerData(f,u,v,m,_){let i=I.R.CONSENT_BANNER.replace(":orgId",u);return i=i.replace(":propId",v),this.http.post(t.N.apiUrl+i,f).pipe((0,V.U)(c=>c),(0,y.K)(c=>(this.onSendLogs(b.o.INFO,c?.error?.error||c?.error||c,b.X.cookieBanner,m,_,i),(0,C._)(c))))}onUpdateCookieBannerData(f,u,v,m,_){let i=I.R.CONSENT_BANNER.replace(":orgId",u);return i=i.replace(":propId",v),this.http.put(t.N.apiUrl+i,f).pipe((0,V.U)(c=>c),(0,y.K)(c=>(this.onSendLogs(b.o.INFO,c?.error?.error||c?.error||c,b.X.cookieBanner,m,_,i),(0,C._)(c))))}onGetPlanType(f,u){const v=I.R.COMPANY_SERVICE;return this.http.get(t.N.apiUrl+v).pipe((0,V.U)(m=>m),(0,y.K)(m=>(this.onSendLogs(b.o.INFO,m,b.X.cookieBanner,f,u,v),(0,C._)(m))))}onGetCookieBannerData(f,u,v,m){let _=I.R.CONSENT_BANNER.replace(":orgId",f);return _=_.replace(":propId",u),this.http.get(t.N.apiUrl+_).pipe((0,V.U)(i=>i),(0,y.K)(i=>(this.onSendLogs(b.o.INFO,i?.error?.error||i?.error||i,b.X.cookieBanner,v,m,_),(0,C._)(i))))}onSendLogs(f,u,v,m,_,i){this.loki.onSendErrorLogs(f,u,v,m,_,i).subscribe()}updateVendors(f,u,v,m,_){let i=I.R.UPDATE_VENDORS.replace(":orgId",u);return i=i.replace(":propId",v),this.http.post(t.N.apiUrl+i,f).pipe((0,V.U)(c=>c),(0,y.K)(c=>(this.onSendLogs(b.o.INFO,c,b.X.cookieBanner,m,_,i),(0,C._)(c))))}getPropertyDetails(f,u){let v=I.R.PROPERTY_DETAILS.replace(":pid",u);return v=v.replace(":oid",f),this.http.get(t.N.apiUrl+v).pipe((0,V.U)(m=>m),(0,y.K)(m=>(0,C._)(m)))}onGetVendorsData(f,u,v,m){let _=I.R.UPDATE_VENDORS.replace(":orgId",f);return _=_.replace(":propId",u),this.http.get(t.N.apiUrl+_).pipe((0,V.U)(i=>i),(0,y.K)(i=>(this.onSendLogs(b.o.INFO,i,b.X.cookieBanner,v,m,_),(0,C._)(i))))}GetGlobleLangData(f){const u=t.N.globleLangURL.replace(":lang",f);return this.http.get(u)}
1GetCustomLangData(f,u,v,m,_){let i=I.R.COOKIE_BANNER_GET_LANG_FROM_DB.replace(":lang",v);return i=i.replace(":orgId",m),i=i.replace(":propId",_),this.http.get(t.N.apiUrl+i).pipe((0,V.U)(c=>c),(0,y.K)(c=>(this.onSendLogs(b.o.INFO,c,b.X.cookieBanner,f,u,i),(0,C._)(c))))}GetConsentBannerHistory(f,u,v,m){let _=I.R.CONSENT_BANNER_PUBLISH_HISTORY;return _=_.replace(":oid",v),_=_.replace(":pid",m),this.http.get(t.N.apiUrl+_).pipe((0,V.U)(i=>i),(0,y.K)(i=>(this.onSendLogs(b.o.INFO,i?.error?.error||i?.error||i,b.X.cookieBanner,f,u,_),(0,C._)(i))))}ActiveConsentBannerHistory(f,u,v,m,_){let i=I.R.ACTIVE_CONSENT_BANNER_PUBLISH_HISTORY;return i=i.replace(":oid",m),i=i.replace(":pid",v),i=i.replace(":id",_),this.http.get(t.N.apiUrl+i).pipe((0,V.U)(c=>c),(0,y.K)(c=>(this.onSendLogs(b.o.INFO,c?.error?.error||c?.error||c,b.X.cookieBanner,f,u,i),(0,C._)(c))))}DeleteConsentBannerHistory(f,u,v,m,_){let i=I.R.DELETE_CONSENT_BANNER_PUBLISH_HISTORY;return i=i.replace(":oid",m),i=i.replace(":pid",v),i=i.replace(":id",_),this.http.delete(t.N.apiUrl+i).pipe((0,V.U)(c=>c),(0,y.K)(c=>(this.onSendLogs(b.o.INFO,c?.error?.error||c?.error||c,b.X.cookieBanner,f,u,i),(0,C._)(c))))}saveCustomLang(f,u,v,m,_,i){let c=I.R.COOKIE_BANNER_LANG_PUBLISH_JSON.replace(":orgId",v);return c=c.replace(":propId",m),this.http.post(t.N.apiUrl+c,f,{params:{lang:u}}).pipe((0,V.U)(Z=>Z),(0,y.K)(Z=>(this.onSendLogs(b.o.INFO,Z?.error?.error||Z?.error||Z,b.X.cookieBanner,_,i,c),(0,C._)(Z
1))))}saveCustomLangInDB(f,u,v,m,_){let i=I.R.COOKIE_BANNER_LANG_SAVE_IN_DB.replace(":orgId",u);return i=i.replace(":propId",v),this.http.post(t.N.apiUrl+i,f).pipe((0,V.U)(c=>c),(0,y.K)(c=>(this.onSendLogs(b.o.INFO,c?.error?.error||c?.error||c,b.X.cookieBanner,m,_,i),(0,C._)(c))))}};let M=w;return w.\u0275fac=function(u){return new(u||w)(e.LFG(U.eN),e.LFG(N.L))},w.\u0275prov=e.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),M})()},8589:(J,O,p)=>{p.r(O),p.d(O,{ManageVendorsModule:()=>se});var t=p(36895),b=p(15861),I=p(3940),V=p(73177),y=p(68078),C=p(92340),e=p(94650),U=p(64491),N=p(37858),L=p(37407),M=p(51692),w=p(20388),B=p(32270),f=p(59922),u=p(11481),v=p(1637),m=p(42111),_=p(4358),i=p(96923),c=p(24006);function Z(l,g){if(1&l){const a=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(a);const s=e.oxw();return e.KtG(s.getAllVendorsData())}),e._UZ(1,"i",23),e._uU(2," Refresh "),e.qZA()}}function P(l,g){1&l&&(e.TgZ(0,"button",24),e._UZ(1,"span",25),e._uU(2," Refreshing "),e.qZA())}function S(l,g){if(1&l&&(e.TgZ(0,"button",26),e._UZ(1,"span",25),e._uU(2," Updating "),e.qZA()),2&l){const a=e.oxw();e.Q6J("disabled",a.updating)}}function R(l,g){if(1&l){const a=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){e.CHM(a);const s=e.oxw(),r=e.MAs(33);return e.KtG(s.openModal(r))}),e._UZ(1,"i",28),e._uU(2," Action "),e.qZA()}}function d(l,g){1&l&&e._UZ(0,"ngx-skeleton-loader",29)}function T(l,g){1&l&&(e.TgZ(0,"colgroup"),e._UZ(1,"col",42)(2,"col",43)(3,"col",44)(4,"col",45)(5,"col",46)(6,"col",46),e.qZA())}function n(l,g){if(1&l){const a=e.EpF();e.TgZ(0,"tr")(1,"th",47)(2,"div",48)(3,"input",49),e.NdJ("change",function(s){e.CHM(a);const r=e.oxw(3);return e.KtG(r.onAllowAllIabVendor(s))}),e.qZA(),e._UZ(4,"label",50),e.qZA()(),e.TgZ(5,"th",47),e._uU(6,"ID"),e.qZA(),e.TgZ(7,"th",47),e._uU(8,"Name"),e.qZA(),e.TgZ(9,"th",47),e._uU(10,"Policy URL"),e.qZA(),e.TgZ(11,"th",47),e._uU(12,"Framework"),e.qZA(),e.TgZ(13,"th",47),e._uU(14,"Status"),e.qZA()()}if(2&l){const a=e.oxw(3);e.xp6(3),e.Q6J("checked",a.iabVendorsList.length===a.iabVendorsID.length),e.xp6(1),e.s9C("title",a.tooltips)}}function h(l,g){1&l&&(e.TgZ(0,"span",57),e._uU(1,"Active"),e.qZA())}function x(l,g){1&l&&(e.TgZ(0,"span",58),e._uU(1,"Inactive"),e.qZA())}function A(l,g){if(1&l){const a=e.EpF();e.TgZ(0,"tr")(1,"td")(2,"div",48)(3,"input",51),e.NdJ("change",function(s){const D=e.CHM(a).$implicit,E=e.oxw(3);return e.KtG(E.onSelectIabVendor(s,D.id))}),e.qZA(),e._UZ(4,"label",52),e.qZA()(),e.TgZ(5,"th",53),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td")(10,"a",54),e._uU(11),e.qZA()(),e.TgZ(12,"td"),e._uU(13,"IAB TCF 2.0"),e.qZA(),e.TgZ(14,"td")(15,"p"),e.YNc(16,h,2,0,"span",55),e.YNc(17,x,2,0,"span",56),e.qZA()()()}if(2&l){const a=g.$implicit,o=e.oxw(3);e.xp6(3),e.MGl("id","customCheck",a.id,""),e.Q6J("checked",o.iabVendorsID.includes(a.id)),e.xp6(1),e.MGl("for","customCheck",a.id,""),e.xp6(2),e.Oqu(a.id),e.xp6(2),e.Oqu(a.name),e.xp6(2),e.Q6J("href",a.policyUrl,e.LSH),e.xp6(1),e.Oqu(a.policyUrl),e.xp6(5),e.Q6J("ngIf",o.iabVendorsDefaultID.includes(a.id)),e.xp6(1),e.Q6J("ngIf",!o.iabVendorsDefaultID.includes(a.id))}}function k(l,g){if(1&l){const a=e.EpF();e.TgZ(0,"div",32)(1,"div",33),e._UZ(2,"div",34),e.TgZ(3,"div",35)(4,"input",36,37),e.NdJ("keyup",function(s){e.CHM(a);const r=e.oxw(2);return e.KtG(r.onSearchIabVendors(s))}),e.qZA()()(),e.TgZ(6,"div",6)(7,"p-table",38),e.NdJ("onLazyLoad",function(s){e.CHM(a);const r=e.oxw(2);return e.KtG(r.loadIabVendorsLazy(s))}),e.YNc(8,T,7,0,"ng-template",39),e.YNc(9,n,15,2,"ng-template",40),e.YNc(10,A,18,9,"
1ng-template",41),e.qZA()()()}if(2&l){const a=e.MAs(5),o=e.oxw(2);e.xp6(7),e.Q6J("value",a.value?o.searchIabVendors:o.iabVendorsList)("virtualScroll",!0)("virtualRowHeight",34)("lazy",!0)("scrollable",!0)}}function F(l,g){1&l&&(e.TgZ(0,"colgroup"),e._UZ(1,"col",42)(2,"col",43)(3,"col",44)(4,"col",45)(5,"col",46)(6,"col",46),e.qZA())}function Q(l,g){if(1&l){const a=e.EpF();e.TgZ(0,"tr")(1,"th",47)(2,"div",48)(3,"input",61),e.NdJ("change",function(s){e.CHM(a);const r=e.oxw(3);return e.KtG(r.onAllowAllGoogleVendor(s))}),e.qZA(),e._UZ(4,"label",62),e.qZA()(),e.TgZ(5,"th",47),e._uU(6,"ID"),e.qZA(),e.TgZ(7,"th",47),e._uU(8,"Name"),e.qZA(),e.TgZ(9,"th",47),e._uU(10,"Policy URL"),e.qZA(),e.TgZ(11,"th",47),e._uU(12,"Framework"),e.qZA(),e.TgZ(13,"th",47),e._uU(14,"Status"),e.qZA()()}if(2&l){const a=e.oxw(3);e.xp6(3),e.Q6J("checked",a.googleVendorsList.length<=a.googleVendorsID.length)}}function Y(l,g){1&l&&(e.TgZ(0,"span",57),e._uU(1,"Active"),e.qZA())}function K(l,g){1&l&&(e.TgZ(0,"span",58),e._uU(1,"Inactive"),e.qZA())}function q(l,g){if(1&l){const a=e.EpF();e.TgZ(0,"tr")(1,"td")(2,"div",48)(3,"input",51),e.NdJ("change",function(s){const D=e.CHM(a).$implicit,E=e.oxw(3);return e.KtG(E.onSelectGoogleVendor(s,D.provider_id))}),e.qZA(),e._UZ(4,"label",52),e.qZA()(),e.TgZ(5,"th",53),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td")(10,"a",54),e._uU(11),e.qZA()(),e.TgZ(12,"td"),e._uU(13,"Google Vendor"),e.qZA(),e.TgZ(14,"td")(15,"p"),e.YNc(16,Y,2,0,"span",55),e.YNc(17,K,2,0,"span",56),e.qZA()()()}if(2&l){const a=g.$implicit,o=e.oxw(3);e.xp6(3),e.s9C("id","customCheckGoogle"+a.provider_id),e.Q6J("checked",o.googleVendorsID.includes(a.provider_id)),e.xp6(1),e.s9C("for","customCheckGoogle"+a.provider_id),e.xp6(2),e.Oqu(a.provider_id),e.xp6(2),e.Oqu(a.provider_name),e.xp6(2),e.Q6J("href",a.policy_url,e.LSH),e.xp6(1),e.Oqu(a.policy_url),e.xp6(5),e.Q6J("ngIf",o.googleVendorsDefaultID.includes(a.provider_id)),e.xp6(1),e.Q6J("ngIf",!o.googleVendorsDefaultID.includes(a.provider_id))}}function H(l,g){if(1&l){const a=e.EpF();e.TgZ(0,"div",59)(1,"div",33),e._UZ(2,"div",34),e.TgZ(3,"div",35)(4,"input",36,60),e.NdJ("keyup",function(s){e.CHM(a);const r=e.oxw(2);return e.KtG(r.onSearchGoogleVendors(s))}),e.qZA()()(),e.TgZ(6,"div",6)(7,"p-table",38),e.NdJ("onLazyLoad",function(s){e.CHM(a);const r=e.oxw(2);return e.KtG(r.loadIabGoogleLazy(s))}),e.YNc(8,F,7,0,"ng-template",39),e.YNc(9,Q,15,1,"ng-template",40),e.YNc(10,q,18,9,"ng-template",41),e.qZA()()()}if(2&l){const a=e.MAs(5),o=e.oxw(2);e.xp6(7),e.Q6J("value",a.value?o.searchGoogleVendors:o.googleVendorsList)("virtualScroll",!0)("virtualRowHeight",34)("lazy",!0)("scrollable",!0)}}function z(l,g){if(1&l&&(e.ynx(0),e.YNc(1,k,11,5,"div",30),e.YNc(2,H,11,5,"div",31),e.BQk()),2&l){const a=e.oxw();e.xp6(1),e.Q6J("ngIf",1===a.showVendorType),e.xp6(1),e.Q6J("ngIf",2===a.showVendorType)}}function W(l,g){if(1&l&&(e.TgZ(0,"alert",63),e._uU(1),e.qZA()),2&l){const a=e.oxw();e.Q6J("type",a.alertType)("dismissible",a.dismissible),e.xp6(1),e.Oqu(a.alertMsg)}}function j(l,g){if(1&l){const a=e.EpF();e.TgZ(0,"div",64)(1,"p"),e._uU(2,"You can update the vendor\u2019s status to Active or Inactive at any time. Once you set any vendors to Inactive, you can\u2019t send or receive signals from those vendors. "),e.qZA(),e.TgZ(3,"div",65)(4,"div",66)(5,"div",67)(6,"input",68),e.NdJ("ngModelChange",function(s){e.CHM(a);const r=e.oxw();return e.KtG(r.actionType=s)}),e.qZA(),e.TgZ(7,"label",69),e._uU(8," Inactive "),e.qZA()(),e.TgZ(9,"div",67)(10,"input",70),e.NdJ("ngModelChange",function(s){e.CHM(a);const r=e.oxw();return e.KtG(r.actionType=s)}),e.qZA(),e.TgZ(11,"label",69),e._uU(12," Active "),e.qZA()()()(),e.TgZ(13,"div",33)(14,"div",71)(15,"button",72),e.NdJ("click",function(){e.CHM(a);const s=e.oxw();return e.KtG(s.decline())}),e._uU(16,"Cancel"),e.qZA(),e.TgZ(17,"button",73),e.NdJ("click",function(){e.CHM(a);const s=e.oxw();return e.KtG(s.confirm())}),e._uU(18,"Save"),e.qZA()()()()}if(2&l){const a=e.oxw();e.xp6(6),e.Q6J("ngModel",a.actionType),e.xp6(4),e.Q6J("ngModel",a.actionType)}}const $=function(l,g){return{oid:l,pid:g}},G=function(l,g){return{color:l,"border-bottom":g}},X=function(l){return{hide:l}};let ee=(()=>{const g=class{constructor(o,s,r,D,E,ae,re,le,ce,de,pe){this.orgservice=o,this.gdprService=s,this.loading=r,this.activateRoute=D,this.modalService=E,this.cookieBanner=ae,this.dataService=re,this.location=le,this.router=ce,this.cd=de,this.titleService=pe,this.vendorsList=[],this.googleVendorsList=[],this.googleVendorsID=[],this.googleVendorsDefaultID=[],this.iabVendorsID=[],this.iabVendorsDefaultID=[],this.iabVendorsList=[],this.skeletonLoading={one:!0,two:!0},this.updating=!1,this.dismissible=!0,this.isEdit=!1,this.isOpen=!1,this.searchIabVendors=[],this.searchGoogleVendors=[],this.actionType="active",this.isFeatureAvaliable=!1,this.isAlliavinactive=!0,this.isAllgoogleinactive=!0,this.showVendorType=1,this.oIDPIDFromURL=[],this.tooltips="Select all",this.titleService.setTitle("Manage Vendors - "+C.N.portalPrefix),this.router.routeReuseStrategy.shouldReuseRoute=()=>!1}ngOnInit(){this.activateRoute.queryParams.subscribe(o=>{this.queryOID=o.oid,this.queryPID=o.pid}),this.onGetPropsAndOrgId(),this.getAllVendorsData(),this.onCheckSubscription()}onCheckSubscription(){const o=this.dataService.getCurrentPropertyPlanDetails(),s=this.dataService.isAllowFeatureByYes(o.response,V.f.MANAGE_VENDORS);this.isFeatureAvaliable=s,this.isFeatureAvaliable||this.onCheckAllowBannerConfig()}onCheckAllowBannerConfig(){this.planDetails=this.dataService.getCurrentPropertyPlanDetails(),this.isFeatureAvaliable||this.dataService.openSubcriptionModalForRestrication(this.planDetails)}openModal(o){this.modalRef=this.modalService.show(o,{class:"modal-md"})}onGetPropsAndOrgId(){if(this.cd.markForCheck(),null!==this.queryOID&&null!==this.queryPID&&void 0!==this.queryOID&&void 0!==this.queryPID)this.currentManagedOrgID=this.queryOID,this.currrentManagedPropID=this.queryPID;else{let o=(0,y.Dq)(this.location.path());this.currentManagedOrgID=o[0],this.currrentManagedPropID=o[1]}}getAllVendorsData(){var o=this;return(0,b.Z)(function*(){o.skeletonLoading.one=!0,o.vendorsList=yield o.gdprService.getAllData(),o.iabVendorsList=Object.values(o.vendorsList.vendors),o.skeletonLoading.one=!1,o.skeletonLoading.one=!0,o.gdprService.getGoogleVendors(o.constructor.name,I.e.companyModule).subscribe(s=>{o.skeletonLoading.one=!1,o.googleVendorsList=s,o.onGetAllowVendors()})})()}onGetAllowVendors(){this.loading.start(),this.skeletonLoading.two=!0,this.isOpen=!1,this.cookieBanner.onGetVendorsData(this.queryOID,this.queryPID,this.constructor.name,I.e.manageVendorsModule).subscribe(o=>{if(this.skeletonLoading.two=!1,this.loading.stop(),o){if(200===o.status){const s=o.response;this.googleVendorsDefaultID=JSON.parse(s.google_vendors),this.iabVendorsDefaultID=JSON.parse(s.iab_vendors),this.cd.detectChanges()}}else this.onAllowAllVendors()},o=>{this.skeletonLoading.two=!1,this.loading.stop(),this.isOpen=!0,this.alertMsg=o.message,this.alertType="danger"})}onAllowAllVendors(){const o=[...this.googleVendorsDefaultID],s=[...this.iabVendorsDefaultID];if(0===this.googleVendorsDefaultID.length)for(const r of this.googleVendorsList)o.push(r.provider_id);if(0===this.iabVendorsDefaultID.length)for(const r of this.iabVendorsList)s.push(r.i
1d);this.googleVendorsDefaultID=o,this.iabVendorsDefaultID=s,this.cd.detectChanges()}onSelectGoogleVendor(o,s){if(o.target.checked)this.googleVendorsID.push(s);else{const D=this.googleVendorsID.indexOf(s);D>-1&&this.googleVendorsID.splice(D,1)}}onSelectIabVendor(o,s){if(o.target.checked)this.iabVendorsID.push(s);else{const D=this.iabVendorsID.indexOf(s);D>-1&&this.iabVendorsID.splice(D,1)}}onAllowAllIabVendor(o){const s=o.target.checked;if(this.iabVendorsID=[],s)for(const r of this.iabVendorsList)this.iabVendorsID.push(r.id),this.tooltips="Clear all";else this.iabVendorsID=[],this.tooltips="Select all"}onAllowAllGoogleVendor(o){const s=o.target.checked;if(this.googleVendorsID=[],s)for(const r of this.googleVendorsList)this.googleVendorsID.push(r.provider_id);else this.googleVendorsID=[]}onUpdateVendors(o,s){const r={iab_vendors:JSON.stringify(o),google_vendors:JSON.stringify(s)};this.loading.start(),this.updating=!0,this.isOpen=!1,this.cookieBanner.updateVendors(r,this.currentManagedOrgID,this.currrentManagedPropID,this.constructor.name,I.e.manageVendorsModule).subscribe(D=>{this.loading.stop(),this.updating=!1,201===D.status&&(this.iabVendorsID=[],this.googleVendorsID=[],this.onGetAllowVendors()),this.isOpen=!0,this.alertMsg=D.message,this.alertType="success"},D=>{this.updating=!1,this.loading.stop(),this.isOpen=!0,this.alertMsg=D.message,this.alertType="danger"})}onSearchIabVendors(o){const s=o.target.value;this.searchIabVendors=[];for(const r of Object.values(this.iabVendorsList))r.name.toLowerCase().indexOf(s.toLowerCase())>-1&&this.searchIabVendors.push(r)}onSearchGoogleVendors(o){const s=o.target.value;this.searchGoogleVendors=[];for(const r of Object.values(this.googleVendorsList))r.provider_name.toLowerCase().indexOf(s.toLowerCase())>-1&&this.searchGoogleVendors.push(r)}confirm(){if(this.isFeatureAvaliable){if("active"===this.actionType){const o=this.iabVendorsDefaultID.concat(this.iabVendorsID),s=this.googleVendorsDefaultID.concat(this.googleVendorsID);this.onUpdateVendors(o,s)}else{const o=this.iabVendorsDefaultID.filter(r=>!this.iabVendorsID.includes(r)),s=this.googleVendorsDefaultID.filter(r=>!this.googleVendorsID.includes(r));this.onUpdateVendors(o,s)}this.decline()}else this.onCheckAllowBannerConfig()}decline(){this.modalRef.hide()}loadIabVendorsLazy(o){setTimeout(()=>{const s=this.iabVendorsList.slice(o.first,o.first+o.rows);Array.prototype.splice.apply(this.iabVendorsList,[o.first,o.rows,...s]),this.iabVendorsList=[...this.iabVendorsList]},1e3*Math.random()+250)}loadIabGoogleLazy(o){setTimeout(()=>{const s=this.googleVendorsList.slice(o.first,o.first+o.rows);Array.prototype.splice.apply(this.googleVendorsList,[o.first,o.rows,...s]),this.googleVendorsList=[...this.googleVendorsList],this.cd.detectChanges()},1e3*Math.random()+250)}};let l=g;return g.\u0275fac=function(s){return new(s||g)(e.Y36(U.Mn),e.Y36(N.Q),e.Y36(L.LA),e.Y36(M.gz),e.Y36(w.tT),e.Y36(B.s),e.Y36(f.D),e.Y36(t.Ye),e.Y36(M.F0),e.Y36(e.sBO),e.Y36(u.Dx))},g.\u0275cmp=e.Xpm({type:g,selectors:[["app-manage-vendors"]],decls:34,vars:22,consts:[[1,"d-sm-flex","align-items-center","justify-content-between"],["aria-label","breadcrumb"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["routerLink","/home/dashboard/cookie-consent",3,"queryParams"],[1,"breadcrumb-item","active"],[1,"card"],[1,"card-header"],[1,"mat-h2","m-0"],[1,"d-none","d-md-block"],["class","btn btn-sm btn-uppercase btn-outline-secondary","style","width: 102px;text-transform: none;font-size: 12px;",3,"click",4,"ngIf"],["class","btn btn-sm btn-uppercase btn-outline-secondary","style","width: 130px;text-transform: none;font-size: 12px;",4,"ngIf"],["type","button","class","ml-2 btn btn-sm pd-x-15 btn-primary mr-2 btn-uppercase","style","text-transform: none;font-size: 12px;",3,"disabled",4,"ngIf"],["type","button","class","ml-2 btn btn-sm pd-x-15 btn-primary mr-2 btn-uppercase","style","text-transform: none;font-size: 12px;",3,"click",4,"ngIf"],[1,"card-body","p-0"],[1,"btn-group-action"],["type","button",1,"btn","btn-link",3,"ngStyle","click"],["count","18","class","pt-4",4,"ngIf"],[4,"ngIf"],[1,"col-sm-5","mr-0","float-right","flotingdiv",3,"ngClass"],["dismissOnTimeout","5000",3,"type","dismissible",4,"ngIf"],["template",""],[1,"btn","btn-sm","btn-uppercase","btn-outline-secondary",2,"width","102px","text-transform","none","font-size","12px",3,"click"],[1,"fas","fa-sync"],[1,"btn","btn-sm","btn-uppercase","btn-outline-secondary",2,"width","130px","text-transform","none","font-size","12px"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","txt-info"],["type","button",1,"ml-2","btn","btn-sm","pd-x-15","btn-primary","mr-2","btn-uppercase",2,"text-transform","none","font-size","12px",3,"disabled"],["type","button",1,"ml-2","btn","btn-sm","pd-x-15","btn-primary","mr-2","btn-uppercase",2,"text-transform","none","font-size","12px",3,"click"],[1,"fas","fa-pencil-alt"],["count","18",1,"pt-4"],["class","iab-vendors",4,"ngIf"],["class","google-vendor",4,"ngIf"],[1,"iab-vendors"],[1,"row"],[1,"col-md-8"],[1,"col-md-4","form-group","m-0"],["type","text","placeholder","Search vendor by name",1,"m-0","form-control","search-input",3,"keyup"],["searchIAB",""],["styleClass","p-datatable-sm","scrollHeight","550px",3,"value","virtualScroll","virtualRowHeight","lazy","scrollable","onLazyLoad"],["pTemplate","colgroup"],["pTemplate","header"],["pTemplate","body"],[2,"width","5%"],[2,"width","7%"],[2,"width","18%"],[2,"width","50%"],[2,"width","10%"],["pResizableColumn",""],[1,"custom-control","custom-checkbox"],["type","checkbox","id","customCheckAll",1,"custom-control-input",3,"checked","change"],["for","customCheckAll",1,"custom-control-label",3,"title"],["type","checkbox",1,"custom-control-input",3,"id","checked","change"],[1,"custom-control-label",3,"for"],[1,"id-cell"],["target","_blank",3,"href"],["class","btn btn-primary btn-sm active-btn",4,"ngIf"],["class","btn btn-default btn-sm inactive-btn",4,"ngIf"],[1,"btn","btn-primary","btn-sm","active-btn"],[1,"btn","btn-default","btn-sm","inactive-btn"],[1,"google-vendor"],["searchGoogle",""],["type","checkbox","id","customCheckAllGoogle",1,"custom-control-input",3,"checked","change"],["for","customCheckAllGoogle",1,"custom-control-label"],["dismissOnTimeout","5000",3,"type","dismissible"],[1,"font-weight-bold","modal-body","text-center"],[1,"row","mt-2","mb-2"],[1,"col-md-5","radiobtn-wrapper"],[1,"form-check","d-flex"],["type","radio","value","inactive","name","optradio",1,"form-check-input","ml-n3","mt-1",3,"ngModel","ngModelChange"],["for","actionType",1,"form-check-label"],["type","radio","value","active","name","optradio",1,"form-check-input","ml-n3","mt-1",3,"ngModel","ngModelChange"],[1,"col-md-12","text-right"],["type","button",1,"btn","btn-sm","btn-default",3,"click"],["type","button",1,"btn","btn-sm","btn-primary",3,"click"]],template:function(s,r){1&s&&(e.TgZ(0,"div",0)(1,"div")(2,"nav",1)(3,"ol",2)(4,"li",3),e._uU(5,"Privacy"),e.qZA(),e.TgZ(6,"li",3)(7,"a",4),e._uU(8,"Cookie Consent"),e.qZA()(),e.TgZ(9,"li",5),e._uU(10,"Manage Vendors"),e.qZA()()()()(),e.TgZ(11,"div",6)(12,"div",7)(13,"div",0)(14,"div")(15,"h4",8),e._uU(16," Manage Vendors "),e.qZA()(),e.TgZ(17,"div",9),e.YNc(18,Z,3,0,"button",10),e.YNc(19,P,3,0,"button",11),e.YNc(20,S,3,1,"button",12),e.YNc(21,R,3,0,"button",13),e.qZA()()(),e.TgZ(22,"div",14)(23,"div",15)(24,"button",16),e.NdJ("click",function(){return r.showVendorType=1}),e._uU(25,"IAB Vendors"),e.qZA(),e.TgZ(26,"button",16),e.NdJ("click",function(){return r.showVendorType=2}),e._uU(27,"Google Vendors"),e.qZA()(),e.YNc(28,d,1,0,"ngx-skeleton-loader",17),e.YNc(29,z,3,2,"ng-container",18),e.qZA()(),e.TgZ(30,"div",19),e.YNc(31,W,2,3,"alert",20),e.qZA(),e.YNc(32,j,19,2,"ng-template",null,21,e.W1O)),2&s&&(e.xp6(7),e.Q6J("queryParams",e.WLB(11,$,r.queryOID,r.queryPID)),e.xp6(11),e.Q6J("ngIf",!r.skeletonLoading.one&&!r.skeletonLoading.two),e.xp6(1),e.Q6J("ngIf",r.skeletonLoading.one||r.skeletonLoading.two),e.xp6(1),e.Q6J("ngIf",r.updating),e.xp6(1),e.Q6J("ngIf",!r.updating),e.xp6(3),e.Q6J("ngStyle",e.WLB(14,G,1===r.showVendorType?"#2196f3":"#555",1===r.showVendorType?"2px solid":null)),e.xp6(2),e.Q6J("ngStyle",e.WLB(17,G,2===r.showVendorType?"#2196f3":"#555",2===r.showVendorType?"2px solid":null)),e.xp6(2),e.Q6J("ngIf",r.skeletonLoading.one||r.skeletonLoading.two),e.xp6(1),e.Q6J("ngIf",!r.skeletonLoading.one&&!r.skeletonLoading.two),e.xp6(1),e.Q6J("ngClass",e.VKq(20,X,!r.isOpen)),e.xp6(1),e.Q6J("ngIf",r.isOpen))},dependencies:[t.mk,t.O5,t.PC,M.rH,v.xr,m.jx,_.wx,i.iA,i.Q7,c.Fj,c._,c.JJ,c.On],styles:[".vend
1ors-list-table{max-height:490px;overflow:overlay}.cell-width{width:500px}.p-tabview .p-tabview-nav{align-items:center!important;justify-content:center!important;padding-left:0%!important}.p-tabview-panels{padding-left:0!important;padding-right:0!important}.alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-success{background-color:#10b759;border-color:#10b759;color:#fff}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.flotingdiv{position:fixed;bottom:0;top:84%;right:0;overflow-x:hidden;overflow-y:auto}.id-cell{text-align:left;border:1px solid #e9ecef;border-width:0 0 1px 0;padding:1rem}.active-btn{border-radius:30px;width:100px;padding-top:3px;height:25px;font-size:12px}.inactive-btn{border-radius:30px;width:100px;padding-top:3px;height:25px;font-size:12px;background:#c8c6c6}.p-tabview .p-tabview-panels{padding:0}.search-input{margin-top:5px!important;margin-bottom:5px!important}.p-tabview .p-tabview-nav li .p-tabview-nav-link:not(.p-disabled):focus{box-shadow:none}.radiobtn-wrapper{display:flex;justify-content:space-around;flex-direction:row;margin:0 auto}.btn-group-action{text-align:center;padding-top:25px;border-bottom:1px solid lightgray}.btn-group-action button{color:#555;font-weight:600}\n"],encapsulation:2}),l})();var te=p(59241),ne=p(70713),oe=p(38611);const ie=[{path:"",component:ee}];let se=(()=>{const g=class{};let l=g;return g.\u0275fac=function(s){return new(s||g)},g.\u0275mod=e.oAB({type:g}),g.\u0275inj=e.cJS({imports:[t.ez,M.Bz.forChild(ie),te.P4,v.hx,ne.LU,_.nM,i.U$,c.u5,oe.hJ]}),l})()},70713:(J,O,p)=>{p.d(O,{LU:()=>R,x4:()=>P,xf:()=>S});var t=p(94650),b=p(36895),I=p(49700),V=p(98473),y=p(42111),C=p(98606);function e(d,T){1&d&&t.GkF(0)}function U(d,T){if(1&d&&(t.ynx(0),t.YNc(1,e,1,0,"ng-container",3),t.BQk()),2&d){const n=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",n.contentTemplate)}}function N(d,T){if(1&d&&(t.TgZ(0,"div",1),t.Hsn(1),t.YNc(2,U,2,1,"ng-container",2),t.qZA()),2&d){const n=t.oxw();t.Q6J("hidden",!n.selected),t.uIk("id",n.id)("aria-hidden",!n.selected)("aria-labelledby",n.id+"-label"),t.xp6(2),t.Q6J("ngIf",n.contentTemplate&&(n.cache?n.loaded:n.selected))}}const L=["*"],M=["navbar"],w=["inkbar"];function B(d,T){if(1&d&&t._UZ(0,"span",16),2&d){const n=t.oxw(3).$implicit;t.Q6J("ngClass",n.leftIcon)}}function f(d,T){if(1&d&&t._UZ(0,"span",17),2&d){const n=t.oxw(3).$implicit;t.Q6J("ngClass",n.rightIcon)}}function u(d,T){if(1&d&&(t.ynx(0),t.YNc(1,B,1,1,"span",13),t.TgZ(2,"span",14),t._uU(3),t.qZA(),t.YNc(4,f,1,1,"span",15),t.BQk()),2&d){const n=t.oxw(2).$implicit;t.xp6(1),t.Q6J("ngIf",n.leftIcon),t.xp6(2),t.Oqu(n.header),t.xp6(1),t.Q6J("ngIf",n.rightIcon)}}function v(d,T){1&d&&t.GkF(0)}function m(d,T){if(1&d){const n=t.EpF();t.TgZ(0,"span",18),t.NdJ("click",function(x){t.CHM(n);const A=t.oxw(2).$implicit,k=t.oxw();return t.KtG(k.close(x,A))}),t.qZA()}}const _=function(d,T){return{"p-highlight":d,"p-disabled":T}};function i(d,T){if(1&d){const n=t.EpF();t.TgZ(0,"li",8)(1,"a",9),t.NdJ("click",function(x){t.CHM(n);const A=t.oxw().$implicit,k=t.oxw();return t.KtG(k.open(x,A))})("keydown.enter",function(x){t.CHM(n);const A=t.oxw().$implicit,k=t.oxw();return t.KtG(k.open(x,A))}),t.YNc(2,u,5,3,"ng-container",10),t.YNc(3,v,1,0,"ng-container",11),t.YNc(4,m,1,0,"span",12),t.qZA()()}if(2&d){const n=t.oxw().$implicit;t.Tol(n.headerStyleClass),t.Q6J("ngClass",t.WLB(16,_,n.selected,n.disabled))("ngStyle",n.headerStyle),t.xp6(1),t.Q6J("pTooltip",n.tooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass),t.uIk("id",n.id+"-label")("aria-selected",n.selected)("aria-controls",n.id)("aria-selected",n.selected)("tabindex",n.disabled?null:"0"),t.xp6(1),t.Q6J("ngIf",!n.headerTemplate),t.xp6(1),t.Q6J("ngTemplateOutlet",n.headerTemplate),t.xp6(1),t.Q6J("ngIf",n.closable)}}function c(d,T){1&d&&t.YNc(0,i,5,19,"li",7),2&d&&t.Q6J("ngIf",!T.$implicit.closed)}let Z=0,P=(()=>{class d{constructor(n,h,x){this.viewContainer=h,this.cd=x,this.cache=!0,this.tooltipPosition="top",this.tooltipPositionStyle="absolute",this.id="p-tabpanel-"+Z++,this.tabView=n}
1ngAfterContentInit(){this.templates.forEach(n=>{"header"===n.getType()?this.headerTemplate=n.template:this.contentTemplate=n.template})}get selected(){return this._selected}set selected(n){this._selected=n,this.loaded||this.cd.detectChanges(),n&&(this.loaded=!0)}get disabled(){return this._disabled}set disabled(n){this._disabled=n,this.tabView.cd.markForCheck()}get header(){return this._header}set header(n){this._header=n,this.tabView.cd.markForCheck()}get leftIcon(){return this._leftIcon}set leftIcon(n){this._leftIcon=n,this.tabView.cd.markForCheck()}get rightIcon(){return this._rightIcon}set rightIcon(n){this._rightIcon=n,this.tabView.cd.markForCheck()}ngOnDestroy(){this.view=null}}return d.\u0275fac=function(n){return new(n||d)(t.Y36((0,t.Gpc)(()=>S)),t.Y36(t.s_b),t.Y36(t.sBO))},d.\u0275cmp=t.Xpm({type:d,selectors:[["p-tabPanel"]],contentQueries:function(n,h,x){if(1&n&&t.Suo(x,y.jx,4),2&n){let A;t.iGM(A=t.CRH())&&(h.templates=A)}},inputs:{cache:"cache",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",selected:"selected",disabled:"disabled",header:"header",leftIcon:"leftIcon",rightIcon:"rightIcon",closable:"closable",headerStyle:"headerStyle",headerStyleClass:"headerStyleClass",tooltip:"tooltip",tooltipStyleClass:"tooltipStyleClass"},ngContentSelectors:L,decls:1,vars:1,consts:[["class","p-tabview-panel","role","tabpanel",3,"hidden",4,"ngIf"],["role","tabpanel",1,"p-tabview-panel",3,"hidden"],[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(n,h){1&n&&(t.F$t(),t.YNc(0,N,3,5,"div",0)),2&n&&t.Q6J("ngIf",!h.closed)},dependencies:[b.O5,b.tP],encapsulation:2}),d})(),S=(()=>{class d{constructor(n,h){this.el=n,this.cd=h,this.orientation="top",this.onChange=new t.vpe,this.onClose=new t.vpe,this.activeIndexChange=new t.vpe}ngAfterContentInit(){this.initTabs(),this.tabPanels.changes.subscribe(n=>{this.initTabs()})}ngAfterViewChecked(){this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}initTabs(){this.tabs=this.tabPanels.toArray(),!this.findSelectedTab()&&this.tabs.length&&(null!=this.activeIndex&&this.tabs.length>this.activeIndex?this.tabs[this.activeIndex].selected=!0:this.tabs[0].selected=!0,this.tabChanged=!0),this.cd.markForCheck()}open(n,h){if(h.disabled)n&&n.preventDefault();else{if(!h.selected){let x=this.findSelectedTab();x&&(x.selected=!1),this.tabChanged=!0,h.selected=!0;let A=this.findTabIndex(h);this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(A),this.onChange.emit({originalEvent:n,index:A})}n&&n.preventDefault()}}close(n,h){this.controlClose?this.onClose.emit({originalEvent:n,index:this.findTabIndex(h),close:()=>{this.closeTab(h)}}):(this.closeTab(h),this.onClose.emit({originalEvent:n,index:this.findTabIndex(h)})),n.stopPropagation()}closeTab(n){if(!n.disabled){if(n.selected){this.tabChanged=!0,n.selected=!1;for(let h=0;h<this.tabs.length;h++){let x=this.tabs[h];if(!x.closed&&!n.disabled){x.selected=!0;break}}}n.closed=!0}}findSelectedTab(){for(let n=0;n<this.tabs.length;n++)if(this.tabs[n].selected)return this.tabs[n];return null}findTabIndex(n){let h=-1;for(let x=0;x<this.tabs.length;x++)if(this.tabs[x]==n){h=x;break}return h}getBlockableElement(){return this.el.nativeElement.children[0]}get activeIndex(){return this._activeIndex}set activeIndex(n){this._activeIndex=n,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.tabs&&this.tabs.length&&null!=this._activeIndex&&this.tabs.length>this._activeIndex&&(this.findSelectedTab().selected=!1,this.tabs[this._activeIndex].selected=!0,this.tabChanged=!0)}updateInkBar(){let n=C.p.findSingle(this.navbar.nativeElement,"li.p-highlight");this.inkbar.nativeElement.style.width=C.p.getWidth(n)+"px",this.inkbar.nativeElement.style.left=C.p.getOffset(n).left-C.p.getOffset(this.navbar.nativeElement).left+"px"}}return d.\u0275fac=function(n){return new(n||d)(t.Y36(t.SBq),t.Y36(t.sBO))},d.\u0275cmp=t.Xpm({type:d,selectors:[["p-tabView"]],contentQueries:function(n,h,x){if(1&n&&t.Suo(x,P,4),2&n){let A;t.iGM(A=t.CRH())&&(h.tabPanels=A)}},viewQuery:function(n,h){if(1&n&&(t.Gf(M,5),t.Gf(w,5)),2&n){let x;t.iGM(x=t.CRH())&&(h.navbar=x.first),t.iGM(x=t.CRH())&&(h.inkbar=x.first)}},inputs:{orientation:"orientation",activeIndex:"activeIndex",style:"style",styleClass:"styleClass",controlClose:"controlClose"},outputs:{onChange:"onChange",onClose:"onClose",activeIndexChange:"activeIndexChange"},ngContentSelectors:L,decls:8,vars:5,consts:[[3,"ngClass","ngStyle"],["role","tablist",1,"p-tabview-nav"],["navbar",""],["ngFor","",3,"ngForOf"],[1,"p-tabview-ink-bar"],["inkbar",""],[1,"p-tabview-panels"],["role","presentation",3,"ngClass","ngStyle","class",4,"ngIf"],["role","presentation",3,"ngClass","ngStyle"],["role","tab","pRipple","",1,"p-tabview-nav-link",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","click","keydown.enter"],[4,"ngIf"],[4,"ngTemplateOutlet"],["class","p-tabview-close pi pi-times",3,"click",4,"ngIf"],["class","p-tabview-left-icon",3,"ngClass",4,"ngIf"],[1,"p-tabview-title"],["class","p-tabview-right-icon",3,"ngClass",4,"ngIf"],[1,"p-tabview-left-icon",3,"ngClass"],[1,"p-tabview-right-icon",3,"ngClass"],[1,"p-tabview-close","pi","pi-times",3,"click"]],template:function(n,h){1&n&&(t.F$t(),t.TgZ(0,"div",0)(1,"ul",1,2),t.YNc(3,c,1,1,"ng-template",3),t._UZ(4,"li",4,5),t.qZA(),t.TgZ(6,"div",6),t.Hsn(7),t.qZA()()),2&n&&(t.Tol(h.styleClass),t.Q6J("ngClass","p-tabview p-component")("ngStyle",h.style),t.xp6(3),t.Q6J("ngForOf",h.tabs))},dependencies:[b.mk,b.sg,b.O5,b.tP,b.PC,I.u,V.H],styles:[".p-tabview-nav{display:flex;flex-wrap:wrap;list-style-type:none;margin:0;padding:0}.p-tabview-nav-link{-ms-user-select:none;-webkit-user-select:none;align-items:center;cursor:pointer;display:flex;overflow:hidden;position:relative;text-decoration:none;user-select:none}.p-tabview-ink-bar{display:none;z-index:1}.p-tabview-nav-link:focus{z-index:1}.p-tabview-title{line-height:1}.p-tabview-close{z-index:1}"],encapsulation:2,changeDetection:0}),d})(),R=(()=>{class d{}return d.\u0275fac=function(n){return new(n||d)},d.\u0275mod=t.oAB({type:d}),d.\u0275inj=t.cJS({imports:[b.ez,y.m8,I.z,V.T,y.m8]}),d})()}}]);
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.