PageSourceSearch

https://portal.privacypillar.com/src_app_privacy_cookie-consent_au…cookie-script_module_ts.b37f4b313d685ee6.js

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

1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["src_app_privacy_cookie-consent_auto-cookie-script_auto-cookie-script_module_ts"],{92681:($t,C,a)=>{a.r(C),a.d(C,{AutoCookieScriptModule:()=>Ht});var u=a(36895),m=a(51692),p=a(3940),f=a(6856),Z=a(17489),t=a(94650),h=a(42111),b=a(37407),k=a(11481),M=a(20388),v=a(59922),S=a(45597),y=a(18178),_=a(24006),w=a(22962),d=a(96923),P=a(82778),q=a(38611),N=a(98473),J=a(4358),U=a(32320),D=a(74642),I=a(12553),L=a(2854);const Q=["addCookieScriptsModal"],x=function(o,c){return{oid:o,pid:c}};function Y(o,c){if(1&o&&(t.TgZ(0,"div")(1,"nav",24)(2,"ol",25)(3,"li",26),t._uU(4,"Privacy"),t.qZA(),t.TgZ(5,"li",26)(6,"a",27),t._uU(7,"Cookie consent"),t.qZA()(),t.TgZ(8,"li",28),t._uU(9,"Auto cookie blocking"),t.qZA()()()()),2&o){const e=t.oxw();t.xp6(6),t.Q6J("queryParams",t.WLB(1,x,e.currentManagedOrgID,e.currrentManagedPropID))}}function G(o,c){if(1&o){const e=t.EpF();t.TgZ(0,"div",29)(1,"a",30),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(),r=t.MAs(28);return i.showAddDropdown=!1,t.KtG(i.openModal(r))}),t._uU(2," Choose Existing "),t.qZA(),t.TgZ(3,"a",31),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.openManualModal())}),t._uU(4," Add Manually "),t.qZA()()}}function O(o,c){if(1&o&&(t.TgZ(0,"div",32),t.O4$(),t.TgZ(1,"svg",33),t._UZ(2,"path",34),t.qZA(),t._uU(3," You need to Re-Publish the banner configuration to reflect the changes on Consent Banner Widget "),t.kcU(),t.TgZ(4,"a",35),t._uU(5," Go to Cookie Banner "),t.qZA()()),2&o){const e=t.oxw();
1t.xp6(4),t.Q6J("queryParams",t.WLB(1,x,e.currentManagedOrgID,e.currrentManagedPropID))}}function E(o,c){if(1&o){const e=t.EpF();t.TgZ(0,"button",36),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return i.filterTagType="",t.KtG(i.onGetBlockingList())}),t.qZA()}}function H(o,c){1&o&&(t.TgZ(0,"tr")(1,"th",37),t._uU(2,"Host"),t.qZA(),t.TgZ(3,"th",37),t._uU(4,"Src"),t.qZA(),t.TgZ(5,"th",38),t._uU(6,"Categories"),t.qZA(),t.TgZ(7,"th",37),t._uU(8,"Tag Type"),t.qZA(),t.TgZ(9,"th",39),t._uU(10,"Scan Date "),t._UZ(11,"p-sortIcon",40),t.qZA(),t.TgZ(12,"th",37),t._uU(13,"Status"),t.qZA(),t.TgZ(14,"th",37),t._uU(15,"Dynamic Params"),t.qZA(),t.TgZ(16,"th",37),t._uU(17,"Regulatory Rules"),t.qZA(),t.TgZ(18,"th",37),t._uU(19," Action"),t.qZA()())}function K(o,c){if(1&o){const e=t.EpF();t.TgZ(0,"input",51),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw(2).$implicit;return t.KtG(r.tag_src_host=i)}),t.qZA()}if(2&o){const e=t.oxw(2).$implicit;t.Q6J("ngModel",e.tag_src_host)}}function R(o,c){if(1&o&&(t.TgZ(0,"p",37),t._uU(1),t.qZA()),2&o){const e=t.oxw(2).$implicit;t.xp6(1),t.hij("",e.tag_src_host," ")}}function B(o,c){if(1&o){const e=t.EpF();t.TgZ(0,"input",52),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw(2).$implicit;return t.KtG(r.tag_src=i)}),t.qZA()}if(2&o){const e=t.oxw(2).$implicit;t.Q6J("ngModel",e.tag_src)}}function $(o,c){if(1&o&&(t.TgZ(0,"p",37),t._uU(1),t.qZA()),2&o){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.tag_src," ")}}const l=function(){return{width:"100%"}};function z(o,c){if(1&o){const e=t.EpF();t.TgZ(0,"p-multiSelect",53),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw(2).$implicit;return t.KtG(r.categories=i)})("onChange",function(){t.CHM(e);const i=t.oxw(2).$implicit,r=t.oxw();return t.KtG(r.onCategoriesChange(i))}),t.qZA()}if(2&o){const e=t.oxw(2).$implicit,n=t.oxw();t.Akn(t.DdM(5,l)),t.Q6J("ngModel",e.categories)("options",n.cookieCategories)("showToggleAll",!1)}}function F(o,c){if(1&o&&(t.TgZ(0,"p",37),t._uU(1),t.qZA()),2&o){const e=t.oxw(2).$implicit;t.xp6(1),t.Oqu(e.categories.includes("")?"-- Disable --":e.categories.length?e.categories.join(", "):"No categories selected")}}function j(o,c){if(1&o){const e=t.EpF();t.TgZ(0,"input",51),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw(2).$implicit;return t.KtG(r.tag_src_type=i)}),t.qZA()}if(2&o){const e=t.oxw(2).$implicit;t.Q6J("ngModel",e.tag_src_type)}}function V(o,c){if(1&o&&(t.TgZ(0,"p",37),t._uU(1),t.qZA()),2&o){const e=t.oxw(2).$implicit;t.xp6(1),t.hij("",e.tag_src_type," ")}}function W(o,c){}function X(o,c){if(1&o&&(t.TgZ(0,"p",37),t._uU(1),t.ALo(2,"date"),t.qZA()),2&o){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.created_at)," ")}}function tt(o,c){1&o&&(t.TgZ(0,"span",54),t._uU(1,"Disabled"),t.qZA())}function et(o,c){1&o&&(t.TgZ(0,"span",55),t._uU(1,"Enabled"),t.qZA())}function ot(o,c){if(1&o){const e=t.EpF();t.TgZ(0,"p-multiSelect",56),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw(2).$implicit;return t.KtG(r.params=i)}),t.qZA()}if(2&o){const e=t.oxw(2).$implicit,n=t.oxw();t.Akn(t.DdM(4,l)),t.Q6J("ngModel",e.params)("options",n.extractQueryParamKeys(e.tag_src))}}function it(o,c){if(1&o&&(t.ynx(0),t.TgZ(1,"span",37),t._uU(2),t.qZA(),t.BQk()),2&o){const e=t.oxw(3).$implicit;t.xp6(2),t.hij(" ",e.params.join(", ")," ")}}function nt(o,c){1&o&&(t.TgZ(0,"span",59),t._uU(1,"No params"),t.qZA())}function rt(o,c){if(1&o&&(t.YNc(0,it,3,1,"ng-container",57),t.YNc(1,nt,2,0,"ng-template",null,58,t.W1O)),2&o){const e=t.MAs(2),n=t.oxw(2).$implicit;t.Q6J("ngIf",null==n.params?null:n.params.length)("ngIfElse",e)}}function ct(o,c){if(1&o){const e=t.EpF();t.TgZ(0,"tr",43)(1,"td")(2,"p-cellEditor"),t.YNc(3,K,1,1,"ng-template",44),t.YNc(4,R,2,1,"ng-template",45),t.qZA()(),t.TgZ(5,"td")(6,"p-cellEditor"),t.YNc(7,B,1,1,"ng-template",44),t.YNc(8,$,2,1,"ng-template",45),t.qZA()(),t.TgZ(9,"td")(10,"p-cellEditor"),t.YNc(11,z,1,6,"ng-template",44),t.YNc(12,F,2,1,"ng-template",45),t.qZA()(),t.TgZ(13,"td")(14,"p-cellEditor"),t.YNc(15,j,1,1,"ng-template",44),t.YNc(16,V,2,1,"ng-template",45),t.qZA()(),t.TgZ(17,"td")(18,"p-cellEditor"),t.YNc(19,W,0,0,"ng-template",44),t.YNc(20,X,3,3,"ng-template",45),t.qZA()(),t.TgZ(21,"td"),t.YNc(22,tt,2,0,"span",46),t.YNc(23,et,2,0,"span",47),t.qZA(),t.TgZ(24,"td")(25,"p-cellEditor"),t.YNc(26,ot,1,5,"ng-template",44),t.YNc(27,rt,3,2,"ng-template",45),t.qZA()(),t.TgZ(28,"td")(29,"div",48)(30,"span",37),t._uU(31),t.qZA(),t.TgZ(32,"span",37),t._uU(33,"GDPR: Explicit"),t.qZA(),t.TgZ(34,"span",37),t._uU(35,"DPDPA: Explicit"),t.qZA(),t.TgZ(36,"span",37),t._uU(37),t.qZA(),t.TgZ(38,"span",37),t._uU(39),t.qZA()()(),t.TgZ(40,"td")(41,"button",49),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,r=t.oxw();return t.KtG(r.openRegulationModal(i))}),t.qZA(),t.TgZ(42,"button",50),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,r=t.oxw();return t.KtG(r.onRowDelete(i))}),t.qZA()()()}if(2&o){const e=t.oxw().$implicit;t.Q6J("pEditableRow",e),t.xp6(22),t.Q6J("ngIf",!e.categories.length||e.categories.includes("")),t.xp6(1),t.Q6J("ngIf",e.categories.length&&!e.categories.includes("")),t.xp6(8),t.hij("CCPA: ",e.ccpa_implicit?"Implicit":"Explicit",""),t.xp6(6),t.hij("Generic: ",e.generic_implicit?"Implicit":"Explicit",""),t.xp6(2),t.hij("CIPA: ",e.cipa_implicit?"Implicit":"Explicit","")}}function at(o,c){1&o&&(t.TgZ(0,"div",60),t._uU(1,"No Record Found"),t.qZA())}function lt(o,c){if(1&o&&(t.YNc(0,ct,43,6,"tr",41),t.YNc(1,at,2,0,"div",42)),2&o){const e=t.oxw();t.Q6J("ngIf",e.blockingscriptList.length>0),t.xp6(1),t.Q6J("ngIf",0===e.blockingscriptList.length)}}function st(o,c){1&o&&(t.TgZ(0,"tr")(1,"td",61),t._uU(2," No Scripts added "),t.qZA()()),2&o&&(t.xp6(1),t.uIk("colspan",8))}function pt(o,c){if(1&o){const e=t.EpF();
1t.TgZ(0,"alert",62),t.NdJ("onClosed",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.onClosed(i.alertMsg))}),t._uU(1),t.qZA()}if(2&o){const e=t.oxw();t.Q6J("dismissible",e.dismissible)("type",e.alertType),t.xp6(1),t.Oqu(e.alertMsg)}}function _t(o,c){1&o&&(t.TgZ(0,"span",84),t._uU(1,"*"),t.qZA())}function dt(o,c){1&o&&(t.TgZ(0,"span",84),t._uU(1,"*"),t.qZA())}const gt=function(){return{label:"JavaScript",value:"JavaScript"}},A=function(){return{label:"Iframe",value:"iframe"}},T=function(){return{label:"Image",value:"image"}},ut=function(o,c,e){return[o,c,e]};function mt(o,c){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"div",63)(2,"div",64)(3,"p",65),t._uU(4,"URL "),t.YNc(5,_t,2,0,"span",66),t.qZA()(),t.TgZ(6,"div",67)(7,"input",68),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.selectedProduct.tag_src=i)})("blur",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.onUrlChange())}),t.qZA()()(),t.TgZ(8,"div",63)(9,"div",64)(10,"p",65),t._uU(11,"Host"),t.qZA()(),t.TgZ(12,"div",67)(13,"input",69),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.selectedProduct.tag_src_host=i)}),t.qZA()()(),t.TgZ(14,"div",63)(15,"div",64)(16,"p",65),t._uU(17,"Type"),t.qZA()(),t.TgZ(18,"div",67)(19,"p-dropdown",70),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.selectedProduct.tag_src_type=i)}),t.qZA()()(),t.TgZ(20,"div",63)(21,"div",64)(22,"label",71),t._uU(23,"Categories "),t.YNc(24,dt,2,0,"span",66),t.qZA()(),t.TgZ(25,"div",67)(26,"p-multiSelect",72),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.selectedProduct.categories=i)})("onChange",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.onCategoriesChange(i.selectedProduct))}),t.qZA()()(),t.TgZ(27,"div",63)(28,"div",64)(29,"p",65),t._uU(30,"Dynamic Params"),t.qZA()(),t.TgZ(31,"div",67)(32,"p-multiSelect",73),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.selectedProduct.params=i)}),t.qZA()()(),t.TgZ(33,"p",74),t._uU(34,"Script Loading"),t.qZA(),t._UZ(35,"hr",75),t.TgZ(36,"div",63)(37,"div",64)(38,"p",76),t._uU(39,"GDPR"),t.qZA()(),t.TgZ(40,"div",67),t._UZ(41,"p-dropdown",77),t.qZA()(),t.TgZ(42,"div",78)(43,"div",64)(44,"p",65),t._uU(45,"CCPA"),t.qZA()(),t.TgZ(46,"div",67)(47,"p-dropdown",79),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.selectedProduct.ccpa_implicit=i)}),t.qZA()()(),t.TgZ(48,"div",63),t._UZ(49,"div",80),t.TgZ(50,"div",81)(51,"input",82),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.selectedProduct.cipa_implicit=!i)}),t.qZA(),t.TgZ(52,"span",83),t._uU(53,"Apply Explicit for California (CIPA)"),t.qZA()()(),t.TgZ(54,"div",63)(55,"div",64)(56,"p",65),t._uU(57,"Generic"),t.qZA()(),t.TgZ(58,"div",67)(59,"p-dropdown",79),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.selectedProduct.generic_implicit=i)}),t.qZA()()(),t.TgZ(60,"div",63)(61,"div",64)(62,"p",76),t._uU(63,"DPDPA"),t.qZA()(),t.TgZ(64,"div",67),t._UZ(65,"p-dropdown",77),t.qZA()()()}if(2&o){const e=t.oxw();
1t.xp6(5),t.Q6J("ngIf","manual"===e.scriptModalMode),t.xp6(2),t.Akn(t.DdM(41,l)),t.Q6J("ngModel",e.selectedProduct.tag_src),t.xp6(6),t.Akn(t.DdM(42,l)),t.Q6J("ngModel",e.selectedProduct.tag_src_host)("placeholder","manual"===e.scriptModalMode?"Auto-filled from URL":""),t.xp6(6),t.Akn(t.DdM(43,l)),t.Q6J("ngModel",e.selectedProduct.tag_src_type)("options",t.kEZ(47,ut,t.DdM(44,gt),t.DdM(45,A),t.DdM(46,T))),t.xp6(5),t.Q6J("ngIf","manual"===e.scriptModalMode),t.xp6(2),t.Akn(t.DdM(51,l)),t.Q6J("ngModel",e.selectedProduct.categories)("options",e.cookieCategories)("showToggleAll",!1),t.xp6(6),t.Akn(t.DdM(52,l)),t.Q6J("ngModel",e.selectedProduct.params)("options",e.selectedProductParamOptions),t.xp6(9),t.Akn(t.DdM(53,l)),t.Q6J("ngModel",!1)("options",e.blockingCategories)("disabled",!0),t.xp6(6),t.Akn(t.DdM(54,l)),t.Q6J("ngModel",e.selectedProduct.ccpa_implicit)("options",e.blockingCategories),t.xp6(4),t.Q6J("ngModel",!e.selectedProduct.cipa_implicit),t.xp6(8),t.Akn(t.DdM(55,l)),t.Q6J("ngModel",e.selectedProduct.generic_implicit)("options",e.blockingCategories),t.xp6(6),t.Akn(t.DdM(56,l)),t.Q6J("ngModel",!1)("options",e.blockingCategories)("disabled",!0)}}function ht(o,c){if(1&o){const e=t.EpF();t.TgZ(0,"button",85),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.regulationModalVisible=!1)}),t.qZA(),t.TgZ(1,"button",86),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.onSaveScriptModal())}),t.qZA()}}function Ct(o,c){if(1&o){const e=t.EpF();t.TgZ(0,"div",87),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.showAddDropdown=!1)}),t.qZA()}}function ft(o,c){1&o&&(t.TgZ(0,"tr")(1,"th",37),t._uU(2,"Host"),t.qZA(),t.TgZ(3,"th",37),t._uU(4,"Script"),t.qZA(),t.TgZ(5,"th",37),t._uU(6,"Category"),t.qZA(),t.TgZ(7,"th",37),t._uU(8,"Scan Date"),t.qZA(),t.TgZ(9,"th",37),t._uU(10,"Status"),t.qZA(),t.TgZ(11,"th",37),t._uU(12," Add "),t.qZA()())}function xt(o,c){if(1&o){const e=t.EpF();t.TgZ(0,"input",51),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw(2).$implicit;return t.KtG(r.tag_src_host=i)}),t.qZA()}if(2&o){const e=t.oxw(2).$implicit;t.Q6J("ngModel",e.tag_src_host)}}function At(o,c){if(1&o&&(t.TgZ(0,"p",95),t._uU(1),t.qZA()),2&o){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.tag_src_host,"")}}function Tt(o,c){if(1&o){const e=t.EpF();t.TgZ(0,"input",52),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw(2).$implicit;return t.KtG(r.tag_src=i)}),t.qZA()}if(2&o){const e=t.oxw(2).$implicit;t.Q6J("ngModel",e.tag_src)}}function Zt(o,c){if(1&o&&(t.TgZ(0,"p",95),t._uU(1),t.qZA()),2&o){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.tag_src," ")}}function bt(o,c){if(1&o){const e=t.EpF();t.TgZ(0,"p-dropdown",70),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw(2).$implicit;return t.KtG(r.category=i)}),t.qZA()}if(2&o){const e=t.oxw(2).$implicit,n=t.oxw(2);t.Akn(t.DdM(4,l)),t.Q6J("ngModel",e.category)("options",n.cookieCategories)}}function kt(o,c){if(1&o&&(t.TgZ(0,"p",95),t._uU(1),t.qZA()),2&o){const e=t.oxw(3).$implicit;t.xp6(1),t.hij(" ",e.category,"")}}function Mt(o,c){1&o&&(t.TgZ(0,"p",95),t._uU(1," Please Select the Category"),t.qZA())}function vt(o,c){if(1&o&&(t.YNc(0,kt,2,1,"p",96),t.YNc(1,Mt,2,0,"p",96)),2&o){const e=t.oxw(2).$implicit;t.Q6J("ngIf",e.category),t.xp6(1),t.Q6J("ngIf",!e.category)}}function St(o,c){}function yt(o,c){if(1&o&&(t.TgZ(0,"p",37),t._uU(1),t.ALo(2,"date"),t.qZA()),2&o){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.created_at)," ")}}function wt(o,c){1&o&&(t.TgZ(0,"span",54),t._uU(1,"Disabled"),t.qZA())}function Pt(o,c){1&o&&(t.TgZ(0,"span",55),t._uU(1,"Enabled"),t.qZA())}function qt(o,c){if(1&o){const e=t.EpF();t.TgZ(0,"tr",43)(1,"td")(2,"p-cellEditor"),t.YNc(3,xt,1,1,"ng-template",44),t.YNc(4,At,2,1,"ng-template",45),t.qZA()(),t.TgZ(5,"td")(6,"p-cellEditor"),t.YNc(7,Tt,1,1,"ng-template",44),t.YNc(8,Zt,2,1,"ng-template",45),t.qZA()(),t.TgZ(9,"td")(10,"p-cellEditor"),t.YNc(11,bt,1,5,"ng-template",44),t.YNc(12,vt,2,2,"ng-template",45),t.qZA()(),t.TgZ(13,"td")(14,"p-cellEditor"),t.YNc(15,St,0,0,"ng-template",44),t.YNc(16,yt,3,3,"ng-template",45),t.qZA()(),t.TgZ(17,"td"),t.YNc(18,wt,2,0,"span",46),t.YNc(19,Pt,2,0,"span",47),t.qZA(),t.TgZ(20,"td")(21,"button",94),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,r=t.oxw(2);return t.KtG(r.AddToList(i))}),t.qZA()()()}if(2&o){const e=t.oxw().$implicit;t.Q6J("pEditableRow",e),t.xp6(18),t.Q6J("ngIf",""===e.category),t.xp6(1),t.Q6J("ngIf",""!==e.category)}}function Nt(o,c){if(1&o&&t.YNc(0,qt,22,3,"tr",41),2&o){const e=t.oxw(2);t.Q6J("ngIf",e.scriptList.length>0)}}function Jt(o,c){1&o&&(t.TgZ(0,"tr")(1,"td",61),t._uU(2," No Scripts found, Scan your website to add scripts "),t.qZA()()),2&o&&(t.xp6(1),t.uIk("colspan",6)
1)}function Ut(o,c){if(1&o){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",88)(2,"h5",89),t._uU(3,"Add Script"),t.qZA(),t.TgZ(4,"button",90),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.hideDialog())}),t.TgZ(5,"span",91),t._uU(6,"\xd7"),t.qZA()()(),t.TgZ(7,"div",92)(8,"p-table",93),t.YNc(9,ft,13,0,"ng-template",15),t.YNc(10,Nt,1,1,"ng-template",16),t.YNc(11,Jt,3,1,"ng-template",17),t.qZA()()()}if(2&o){const e=t.oxw();t.xp6(8),t.Q6J("scrollable",!0)("value",e.scriptList)}}const Dt=function(){return{width:"140px","font-size":"0.875rem"}},It=function(){return{label:"All Types",value:""}},Lt=function(){return{label:"JavaScript",value:"script"}},Qt=function(o,c,e,n){return[o,c,e,n]},Yt=function(){return[10,20,30]},Gt=function(o){return{hide:o}},Ot=function(){return{width:"500px",padding:"1rem"}},Et=[{path:"enables",component:(()=>{const c=class{openManualModal(){this.showAddDropdown=!1,this.selectedProduct={tag_src:"",tag_src_host:"",tag_src_type:"JavaScript",categories:[],ccpa_implicit:!0,generic_implicit:!0,cipa_implicit:!1,params:[]},this.selectedProductParamOptions=[],this.scriptModalMode="manual",this.regulationModalVisible=!0}onCategoriesChange(n){n.categories.includes("")&&(n.categories=[""])}onUrlChange(){this.selectedProductParamOptions=this.extractQueryParamKeys(this.selectedProduct.tag_src);try{const n=this.selectedProduct.tag_src.startsWith("//")?"https:"+this.selectedProduct.tag_src:this.selectedProduct.tag_src;this.selectedProduct.tag_src_host=new URL(n).hostname}catch{}}onSaveScriptModal(){if("manual"===this.scriptModalMode){if(!this.selectedProduct.tag_src||!this.selectedProduct.categories?.length)return this.isOpen=!0,this.alertMsg="URL and at least one category are required.",void(this.alertType="danger");const n=this.extractQueryParamKeys(this.selectedProduct.tag_src);this.selectedProduct.params=(this.selectedProduct.params||[]).filter(i=>n.includes(i)),this.loading.start(),this.cookieCategoryService.AddManualScript(this.selectedProduct,this.constructor.name,p.e.autoCookieBlocking,this.currrentManagedPropID).subscribe(()=>{this.loading.stop(),this.regulationModalVisible=!1,this.isOpen=!0,this.showNote=!0,this.alertMsg="Script added successfully",this.alertType="success",this.onGetBlockingList()},i=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=i,this.alertType="danger"})}else this.onSaveRegulationModal()}constructor(n,i,r,s,g,Kt,Rt,Bt){this.messageService=n,this.loading=i,this.titleService=r,this.activatedRouter=s,this.router=g,this.modalService=Kt,this.dataService=Rt,this.cookieCategoryService=Bt,this.isChild=!1,this.scriptList=[],this.cookieCategories=f.Y,this.blockingCategories=f.S,this.regulationModalVisible=!1,this.selectedProduct=null,this.selectedProductParamOptions=[],this.regulationList=[{name:"CCPA",field:"ccpa_implicit"},{name:"Generic",field:"generic_implicit"},{name:"CIPA",field:"cipa_implicit"}],this.dismissible=!0,this.isOpen=!1,this.filterType="",this.showNote=!1,this.blockingscriptList=[],this.isLoading=!1,this.filterTagType="",this.showAddDropdown=!1,this.scriptModalMode="edit"}ngOnInit(){this.activatedRouter.queryParams.subscribe(n=>{let i=n.oid,r=n.pid;null!=this.currentManagedOrgID&&(this.currentManagedOrgID!=i||this.currrentManagedPropID!=r)&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.navigateByUrl(this.router.url)),this.currentManagedOrgID=i,this.currrentManagedPropID=r}),this.titleService.setTitle("Auto Cookie Blocking - Cookie Banner"),this.dataService.isSubscriptionExistForProperty()||this.onCheckSubscription(),this.dataService.isSubscriptionExistForProperty()&&(this.onGetTagsList(),this.onGetBlockingList())}extractQueryParamKeys(n){if(!n||!n.includes("?"))return[];try{const i=n.startsWith("//")?"https:"+n:n,r=new URL(i);return Array.from(new Set(Array.from(r.searchParams.keys())))}catch{return[]}}normalizeScript(n){const{category:i,...r}=n;return{...r,categories:Array.isArray(r.categories)?[...r.categories]:i?[i]:[]}}onGetTagsList(){this.loading.start(),this.cookieCategoryService.getTagList({type:"script"},this.constructor.name,p.e.autoCookieBlocking).subscribe(n=>{this.loading.stop(),this.scriptList=n.response.filter(i=>0==i.tag_added)},n=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=n,this.alertType="error"})}
1onGetBlockingList(){this.loading.start(),this.isLoading=!0;const n={};this.filterTagType&&(n.type=this.filterTagType),this.cookieCategoryService.getCookieTagList(n,this.constructor.name,p.e.autoCookieBlocking).subscribe(i=>{this.loading.stop(),this.isLoading=!1,this.blockingscriptList=(0,Z.orderBy)(i.response.map(r=>({...this.normalizeScript(r),params:Array.isArray(r.params)?r.params:[]})),["created_at"],["desc"])},i=>{this.loading.stop(),this.isLoading=!1,this.isOpen=!0,this.alertMsg=i,this.alertType="danger"})}onRowEditSave(n){const i=this.extractQueryParamKeys(n.tag_src);n.params=(n.params||[]).filter(r=>i.includes(r)),this.loading.start(),this.cookieCategoryService.editAutoCookieScript(n,this.constructor.name,p.e.autoCookieBlocking).subscribe(()=>{this.loading.stop(),this.isOpen=!0,this.showNote=!0,this.alertMsg="Record updated Successfully",this.alertType="success"},r=>{this.loading.stop(),this.isOpen=!0,this.showNote=!0,this.alertMsg=r,this.alertType="danger"})}onClosed(n){this.alertMsg=!n,this.isOpen=!1}AddToList(n){this.loading.start();const i={PID:n.PID,categories:this.normalizeScript(n).categories,cookie_scan_tag_id:n.id,pages:n.pages,resources_action:n.resources_action,scanner_job_id:n.scanner_job_id,tag_src:n.tag_src,tag_src_type:n.tag_src_type,tag_src_host:n?.tag_src_host};this.cookieCategoryService.AddScript(i,this.constructor.name,p.e.autoCookieBlocking,n.PID).subscribe(r=>{this.loading.stop(),this.isOpen=!0,this.showNote=!0,this.alertMsg="Script has been added successfully",this.alertType="success",this.onGetTagsList(),this.onGetBlockingList()},r=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=r,this.alertType="danger"})}onRowDelete(n){this.loading.start(),this.cookieCategoryService.DeleteScript(this.constructor.name,p.e.autoCookieBlocking,n.PID,n.id).subscribe(i=>{this.loading.stop(),this.isOpen=!0,this.showNote=!0,this.alertMsg="Record removed Successfully",this.alertType="success",this.onGetBlockingList(),this.onGetTagsList()},i=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=i,this.alertType="danger"})}hideDialog(){this.modalRef.hide()}onRowEditCancel(n,i){this.onGetBlockingList()}openModal(n){this.modalRef=this.modalService.show(n,{animated:!1,keyboard:!1,class:"modal-lg"})}openRegulationModal(n){this.selectedProduct={...this.normalizeScript(n),ccpa_implicit:n.ccpa_implicit??!0,generic_implicit:n.generic_implicit??!0,cipa_implicit:n.cipa_implicit??!1},this.selectedProductParamOptions=this.extractQueryParamKeys(this.selectedProduct.tag_src),this.scriptModalMode="edit",this.regulationModalVisible=!0}onSaveRegulationModal(){const n=this.extractQueryParamKeys(this.selectedProduct.tag_src);this.selectedProduct.params=(this.selectedProduct.params||[]).filter(i=>n.includes(i)),this.loading.start(),this.cookieCategoryService.editAutoCookieScript(this.selectedProduct,this.constructor.name,p.e.autoCookieBlocking).subscribe(()=>{this.loading.stop(),this.regulationModalVisible=!1,this.isOpen=!0,this.showNote=!0,this.alertMsg="Record updated Successfully",this.alertType="success",this.onGetBlockingList()},i=>{this.loading.stop(),this.isOpen=!0,this.showNote=!0,this.alertMsg=i,this.alertType="danger"})}onCheckSubscription(){const n=this.dataService.getCurrentPropertyPlanDetails(),i=void 0!==n&&void 0!==n.response?n.response.features:null;null!==i&&Object.keys(i).length>0?this.dataService.isLicenseAppliedForProperty.next({requesttype:"property",hasaccess:!0}):this.dataService.isLicenseAppliedForProperty.next({requesttype:"property",hasaccess:!1})}};let o=c;return c.\u0275fac=function(i){return new(i||c)(t.Y36(h.ez),t.Y36(b.LA),t.Y36(k.Dx),t.Y36(m.gz),t.Y36(m.F0),t.Y36(M.tT),t.Y36(v.D),t.Y36(S.o))},c.\u0275cmp=t.Xpm({type:c,selectors:[["app-auto-cookie-script"]],viewQuery:function(i,r){if(1&i&&t.Gf(Q,5),2&i){let s;t.iGM(s=t.CRH())&&(r.addCookieScriptsModal=s.first)}},inputs:{isChild:"isChild"},decls:29,vars:41,consts:[[4,"ngIf"],["appTheme","",1,"card"],[1,"card-header",2,"display","flex","justify-content","space-between"],[1,"float-left"],[2,"position","relative"],[1,"btn","btn-sm","btn-primary",2,"display","flex","align-items","center","gap","6px",3,"click"],[1,"pi","pi-chevron-down",2,"font-size","0.7rem"],["style","position:absolute; right:0; top:110%; background:#fff; border:1px solid #d1d5db; border-radius:6px; box-shadow:0 4px 12px rgba(0,0,0,0.12); min-width:170px; z-index:999;",4,"ngIf"],[1,"card-body","p-0"],["class","alert alert-warning p-2",4,"ngIf"],[2,"display","flex","align-items","center","gap","1rem","padding","0.75rem 1rem","border-bottom","1px solid #e5e7eb","flex-wrap","wrap"],[2,"font-size","0.875rem","font-weight","600","color","#374151"],["optionLabel","label","optionValue","value","placeholder","Type",3,"ngModel","options","ngModelChange","onChange"],["pButton","","type","button","label","Clear","icon","pi pi-times","class","p-button-text p-button-sm",3,"click",4,"ngIf"],["currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries","styleClass","p-datatable-sm","editMode","row","dataKey","id",1,"bannner-history-table","p-paginator-alignment",3,"value","responsive","paginator","rows","rowHover","showCurrentPageReport","totalRecords","loading","rowsPerPageOptions"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[1,"col-sm-5","mr-0","float-right","flotingdiv",3,"ngClass"],["dismissOnTimeout","5000",3,"dismissible","type","onClosed",4,"ngIf"],[3,"header","visible","modal","closable","visibleChange","onHide"],["pTemplate","footer"],["style","position:fixed;inset:0;z-index:998;",3,"click",4,"ngIf"],["addCookieScriptsModal",""],["aria-label","breadcrumb"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["routerLink","/home/dashboard/cookie-consent",3,"queryParams"],[1,"breadcrumb-item","active"],[2,"position","absolute","right","0","top","110%","background","#fff","border","1p
1x solid #d1d5db","border-radius","6px","box-shadow","0 4px 12px rgba(0,0,0,0.12)","min-width","170px","z-index","999"],[2,"display","block","padding","10px 18px","font-size","0.875rem","cursor","pointer","color","#111827","border-bottom","1px solid #f3f4f6",3,"click"],[2,"display","block","padding","10px 18px","font-size","0.875rem","cursor","pointer","color","#111827",3,"click"],[1,"alert","alert-warning","p-2"],["viewBox","0 0 512 512","xmlns","http://www.w3.org/2000/svg",2,"fill","#856404","height","15px"],["d","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 128c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S224 177.7 224 160C224 142.3 238.3 128 256 128zM296 384h-80C202.8 384 192 373.3 192 360s10.75-24 24-24h16v-64H224c-13.25 0-24-10.75-24-24S210.8 224 224 224h32c13.25 0 24 10.75 24 24v88h16c13.25 0 24 10.75 24 24S309.3 384 296 384z"],["routerLink","/cookie-consent/banner-configuration",1,"float-right",3,"queryParams"],["pButton","","type","button","label","Clear","icon","pi pi-times",1,"p-button-text","p-button-sm",3,"click"],[1,"tx-12"],["id","blockingCategoriesLabel",1,"tx-12"],["pSortableColumn","created_at",1,"tx-12"],["field","created_at"],[3,"pEditableRow",4,"ngIf"],["class","alert-info",4,"ngIf"],[3,"pEditableRow"],["pTemplate","input"],["pTemplate","output"],["class","tx-12 product-badge status-outofstock",4,"ngIf"],["class","tx-12 product-badge status-instock",4,"ngIf"],[2,"display","flex","flex-direction","column","gap","2px"],["icon","pi pi-pencil","pButton","","pRipple","","type","button","tooltip","Edit Script Loading",1,"p-button-rounded","p-button-text",3,"click"],["tooltip","Delete Cookie Details","icon","pi pi-trash","pButton","","pRipple","","type","button",1,"p-button-rounded","p-button-text","p-button-danger",3,"click"],["pInputText","","type","text",3,"ngModel","ngModelChange"],["pInputText","","required","","type","text",1,"tx-12",3,"ngModel","ngModelChange"],["ariaLabelledBy","blockingCategoriesLabel","defaultLabel","Select categories",3,"ngModel","options","showToggleAll","ngModelChange","onChange"],[1,"tx-12","product-badge","status-outofstock"],[1,"tx-12","product-badge","status-instock"],["appendTo","body","placeholder","Select query params","display","chip",3,"ngModel","options","ngModelChange"],[4,"ngIf","ngIfElse"],["noParams",""],[1,"tx-12","text-muted"],[1,"alert-info"],[1,"text-center"],["dismissOnTimeout","5000",3,"dismissible","type","onClosed"],[1,"row","mb-3"],[1,"col-md-4","d-flex","align-items-center"],[1,"mb-0","input-label"],["style","color:red",4,"ngIf"],[1,"col-md-8"],["pInputText","","placeholder","https://example.com/script.js",3,"ngModel","ngModelChange","blur"],["pInputText","",3,"ngModel","placeholder","ngModelChange"],[3,"ngModel","options","ngModelChange"],["for","scriptCategories",1,"mb-0","input-label"],["inputId","scriptCategories","defaultLabel","Select categories","display","chip",3,"ngModel","options","showToggleAll","ngModelChange","onChange"],["placeholder","Select query params","display","chip",3,"ngModel","options","ngModelChange"],[1,"input-label","mb-2",2,"font-weight","600","font-size","1.1rem"],[1,"mt-2","mb-3"],[1,"mb-0","input-label","text-muted"],["optionLabel","label","optionValue","value",3,"ngModel","options","disabled"],[1,"row","mb-2"],["optionLabel","label","optionValue","value",3,"ngModel","options","ngModelChange"],[1,"col-md-4"],[1,"col-md-8","d-flex","align-items-center"],["type","checkbox",1,"mr-2",3,"ngModel","ngModelChange"],[1,"text-muted",2,"font-size","12px"],[2,"color","red"],["pButton","","type","button","label","Cancel",1,"p-button-text",3,"click"],["pButton","","type","button","label","Save",1,"p-button-primary",3,"click"],[2,"position","fixed","inset","0","z-index","998",3,"click"],[1,"card-header"],[2,"float","left"],["type","button","aria-label","Close",1,"close",2,"float","right",3,"click"],["aria-hidden","true"],[1,"card-body"],["dataKey","id","editMode","row","responsiveLayout","scroll","scrollHeight","600px","styleClass","p-datatable-md",3,"scrollable","value"],["title","Add this script","icon","pi pi-plus-circle","pButton","","pRipple","","type","button",1,"p-button-rounded","p-button-text","p-button-primary",3,"click"],[1,"tx-12","text-center"],["class","tx-12 text-center",4,"ngIf"]],template:function(i,r){1&i&&(t.YNc(0,Y,10,4,"div",0),t.TgZ(1,"div",1)(2,"div",2)(3,"h5",3),t._uU(4,"Auto Cookie Blocking"),t.qZA(),t.TgZ(5,"div",4)(6,"button",5),t.NdJ("click",function(){return r.showAddDropdown=!r.showAddDropdown}),t._uU(7," Add Tag "),t._UZ(8,"i",6),t.qZA(),t.YNc(9,G,5,0,"div",7),t.qZA()(),t.TgZ(10,"div",8),t.YNc(11,O,6,4,"div",9),t.TgZ(12,"div",10)(13,"span",11),t._uU(14,"Filter:"),t.qZA(),t.TgZ(15,"p-dropdown",12),t.NdJ("ngModelChange",function(g){return r.filterTagType=g}
1)("onChange",function(){return r.onGetBlockingList()}),t.qZA(),t.YNc(16,E,1,0,"button",13),t.qZA(),t.TgZ(17,"p-table",14),t.YNc(18,H,20,0,"ng-template",15),t.YNc(19,lt,2,2,"ng-template",16),t.YNc(20,st,3,1,"ng-template",17),t.qZA()()(),t.TgZ(21,"div",18),t.YNc(22,pt,2,3,"alert",19),t.qZA(),t.TgZ(23,"p-dialog",20),t.NdJ("visibleChange",function(g){return r.regulationModalVisible=g})("onHide",function(){return r.regulationModalVisible=!1}),t.YNc(24,mt,66,57,"div",0),t.YNc(25,ht,2,0,"ng-template",21),t.qZA(),t.YNc(26,Ct,1,0,"div",22),t.YNc(27,Ut,12,2,"ng-template",null,23,t.W1O)),2&i&&(t.Q6J("ngIf",!r.isChild),t.xp6(9),t.Q6J("ngIf",r.showAddDropdown),t.xp6(2),t.Q6J("ngIf",r.showNote),t.xp6(4),t.Akn(t.DdM(27,Dt)),t.Q6J("ngModel",r.filterTagType)("options",t.l5B(32,Qt,t.DdM(28,It),t.DdM(29,Lt),t.DdM(30,A),t.DdM(31,T))),t.xp6(1),t.Q6J("ngIf",r.filterTagType),t.xp6(1),t.Q6J("value",r.blockingscriptList)("responsive",!0)("paginator",!0)("rows",10)("rowHover",!0)("showCurrentPageReport",!0)("totalRecords",r.blockingscriptList.length)("loading",r.isLoading)("rowsPerPageOptions",t.DdM(37,Yt)),t.xp6(4),t.Q6J("ngClass",t.VKq(38,Gt,!r.isOpen)),t.xp6(1),t.Q6J("ngIf",r.isOpen),t.xp6(1),t.Akn(t.DdM(40,Ot)),t.Q6J("header","edit"===r.scriptModalMode?"Edit Script":"Add Script")("visible",r.regulationModalVisible)("modal",!0)("closable",!0),t.xp6(1),t.Q6J("ngIf",r.selectedProduct),t.xp6(2),t.Q6J("ngIf",r.showAddDropdown))},dependencies:[u.mk,u.O5,h.jx,m.rH,y.Lt,_.Fj,_.Wl,_.JJ,_.Q7,_.On,w.NU,d.iA,d.lQ,d.YL,d.fz,d.D$,P.o,q.Hq,N.H,J.wx,U.i9,D.V,I.mh,L.E,u.uU],styles:[".alert-info[_ngcontent-%COMP%]{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-success[_ngcontent-%COMP%]{background-color:#10b759;border-color:#10b759;color:#fff}.alert-danger[_ngcontent-%COMP%]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.flotingdiv[_ngcontent-%COMP%]{position:fixed;bottom:0;top:84%;right:0;overflow-x:hidden;overflow-y:auto}.cursorpointer[_ngcontent-%COMP%]{cursor:pointer}.colorblue[_ngcontent-%COMP%]{color:#00f}.hide[_ngcontent-%COMP%]{display:none}  .p-dialog{box-shadow:none!important}  .p-dialog .p-inputtext{display:block!important;width:100%!important;box-sizing:border-box!important}  .p-dialog .p-dropdown,   .p-dialog .p-multiselect{width:100%!important;box-sizing:border-box!important}.product-badge[_ngcontent-%COMP%]{border-radius:2px;padding:.25em .5rem;text-transform:uppercase;font-weight:700;font-size:10px;letter-spacing:.3px}.product-badge.status-instock[_ngcontent-%COMP%]{background:#c8e6c9;color:#256029}.product-badge.status-lowstock[_ngcontent-%COMP%]{background:#feedaf;color:#8a5340}.product-badge.status-outofstock[_ngcontent-%COMP%]{background:#ffcdd2;color:#c63737}"]}),o})()}];let Ht=(()=>{const c=class{};let o=c;return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=t.oAB({type:c}),c.\u0275inj=t.cJS({providers:[h.ez],imports:[u.ez,m.Bz.forChild(Et)]}),o})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.