1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["src_app_privacy_cookie-consent_auto-cookie-script_auto-cookie-script_module_ts"],{6856:(G,k,d)=>{d.d(k,{S:()=>b,Y:()=>o});const o=[{label:"Essential",value:"essential"},{label:"Functional",value:"functional"},{label:"Analytics",value:"analytics"},{label:"Advertising",value:"advertising"},{label:"Social Media",value:"social_media"},{label:"Uncategorized",value:"uncategorized"},{label:"-- Disable --",value:""}],b=[{label:"Implicit",value:!0},{label:"Explicit",value:!1}]},92681:(G,k,d)=>{d.r(k),d.d(k,{AutoCookieScriptModule:()=>Le});var o=d(36895),b=d(51692),f=d(3940),A=d(6856),M=d(17489),e=d(94650),y=d(42111),I=d(37407),J=d(11481),S=d(59922),q=d(45597),O=d(18178),v=d(24006),B=d(22962),T=d(96923),Z=d(70713),U=d(82778),D=d(38611),N=d(98473),L=d(4358),E=d(32320),w=d(74642),P=d(12553),Q=d(2854);const c=function(n,r){return{oid:n,pid:r}};function _(n,r){if(1&n&&(e.TgZ(0,"div")(1,"nav",27)(2,"ol",28)(3,"li",29),e._uU(4,"Privacy"),e.qZA(),e.TgZ(5,"li",29)(6,"a",30),e._uU(7,"Cookie consent"),e.qZA()(),e.TgZ(8,"li",31),e._uU(9,"Auto cookie blocking"),e.qZA()()()()),2&n){const t=e.oxw();e.xp6(6),e.Q6J("queryParams",e.WLB(1,c,t.currentManagedOrgID,t.currrentManagedPropID))}}function l(n,r){if(1&n&&(e.TgZ(0,"div",32),e.O4$(),e.TgZ(1,"svg",33),e._UZ(2,"path",34),e.qZA(),e._uU(3," You need to Re-Publish the banner configuration to reflect the changes on Consent Banner Widget "),e.kcU(),e.TgZ(4,"a",35),e._uU(5," Go to Cookie Banner "),e.qZA()()),2&n){const t=e.oxw();e.xp6(4),e.Q6J("queryParams",e.WLB(1,c,t.currentManagedOrgID,t.currrentManagedPropID))}}function p(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",4),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return a.filterTagType="",a.filterTagStatus="",a.blockedSearch="",e.KtG(a.onGetBlockingList())}),e._uU(1," Clear "),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("disabled",t.isBulkSaving)}}function g(n,r){if(1&n&&(e.TgZ(0,"tr")(1,"th",36),e._UZ(2,"p-tableHeaderCheckbox",37),e.qZA(),e.TgZ(3,"th",38),e._uU(4,"Host"),e.qZA(),e.TgZ(5,"th",38),e._uU(6,"Src"),e.qZA(),e.TgZ(7,"th",39),e._uU(8,"Categories"),e.qZA(),e.TgZ(9,"th",38),e._uU(10,"Tag Type"),e.qZA(),e.TgZ(11,"th",40),e._uU(12,"Scan Date "),e._UZ(13,"p-sortIcon",41),e.qZA(),e.TgZ(14,"th",38),e._uU(15,"Status"),e.qZA(),e.TgZ(16,"th",38),e._uU(17,"Dynamic Params"),e.qZA(),e.TgZ(18,"th",38),e._uU(19,"Regulatory Rules"),e.qZA(),e.TgZ(20,"th",38),e._uU(21," Action"),e.qZA()()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("disabled",t.isLoading||t.isBulkSaving)}}function h(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"input",53),e.NdJ("ngModelChange",function(a){e.CHM(t);const s=e.oxw(2).$implicit;return e.KtG(s.tag_src_host=a)}),e.qZA()}if(2&n){const t=e.oxw(2).$implicit;e.Q6J("ngModel",t.tag_src_host)}}function x(n,r){if(1&n&&(e.TgZ(0,"p",38),e._uU(1),e.qZA()),2&n){const t=e.oxw(2).$implicit;e.xp6(1),e.hij("",t.tag_src_host," ")}}function $(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"input",54),e.NdJ("ngModelChange",function(a){e.CHM(t);const s=e.oxw(2).$implicit;return e.KtG(s.tag_src=a)}),e.qZA()}if(2&n){const t=e.oxw(2).$implicit;e.Q6J("ngModel",t.tag_src)}}function j(n,r){if(1&n&&(e.TgZ(0,"p",38),e._uU(1),e.qZA()),2&n){const t=e.oxw(2).$implicit;e.xp6(1),e.hij(" ",t.tag_src," ")}}const C=function(){return{width:"100%"}};function W(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"p-multiSelect",55),e.NdJ("ngModelChange",function(a){e.CHM(t);const s=e.oxw(2).$implicit;return e.KtG(s.categories=a)})("onChange",function(){e.CHM(t);const a=e.oxw(2).$implicit,s=e.oxw();return e.KtG(s.onCategoriesChange(a))}),e.qZA()}if(2&n){const t=e.oxw(2).$implicit,i=e.oxw();e.Akn(e.DdM(5,C)),e.Q6J("ngModel",t.categories)("options",i.cookieCategories)("showToggleAll",!1)}}function X(n,r){if(1&n&&(e.TgZ(0,"p",38),e._uU(1),e.qZA()),2&n){const t=e.oxw(2).$implicit;e.xp6(1),e.Oqu(t.categories.includes("")?"-- Disable --":t.categories.length?t.categories.join(", "):"No categories selected")}}function ee(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"input",53),e.NdJ("ngModelChange",function(a){e.CHM(t);const s=e.oxw(2).$implicit;return e.KtG(s.tag_src_type=a)}),e.qZA()}if(2&n){const t=e.oxw(2).$implicit;e.Q6J("ngModel",t.tag_src_type)}}function te(n,r){if(1&n&&(e.TgZ(0,"p",38),e._uU(1),e.qZA()),2&n){const t=e.oxw(2).$implicit;e.xp6(1),e.hij("",t.tag_src_type," ")}}function ie(n,r){}function oe(n,r){if(1&n&&(e.TgZ(0,"p",38),e._uU(1),e.ALo(2,"date"),e.qZA()),2&n){const t=e.oxw(2).$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,t.created_at)," ")}}function ne(n,r){1&n&&(e.TgZ(0,"span",56),e._uU(1,"Disabled"),e.qZA())}function ae(n,r){1&n&&(e.TgZ(0,"span",57),e._uU(1,"Enabled"),e.qZA())}function se(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"p-multiSelect",58),e.NdJ("ngModelChange",function(a){e.CHM(t);const s=e.oxw(2).$implicit;return e.KtG(s.params=a)}),e.qZA()}if(2&n){const t=e.oxw(2).$implicit,i=e.oxw();e.Akn(e.DdM(4,C)),e.Q6J("ngModel",t.params)("options",i.extractQueryParamKeys(t.tag_src))}}function le(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"span",38),e._uU(2),e.qZA(),e.BQk()),2&n){const t=e.oxw(3).$implicit;e.xp6(2),e.hij(" ",t.params.join(", ")," ")}}function re(n,r){1&n&&(e.TgZ(0,"span",61),e._uU(1,"No params"),e.qZA())}function ce(n,r){if(1&n&&(e.YNc(0,le,3,1,"ng-container",59),e.YNc(1,re,2,0,"ng-template",null,60,e.W1O)),2&n){const t=e.MAs(2),i=e.oxw(2).$implicit;e.Q6J("ngIf",null==i.params?null:i.params.length)("ngIfElse",t)}}function pe(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr",44)(1,"td"),e._UZ(2,"p-tableCheckbox",45),e.qZA(),e.TgZ(3,"td")(4,"p-cellEditor"),e.YNc(5,h,1,1,"ng-template",46),e.YNc(6,x,2,1,"ng-template",47),e.qZA()(),e.TgZ(7,"td")(8,"p-cellEditor"),e.YNc(9,$,1,1,"ng-template",46),e.YNc(10,j,2,1,"ng-template",47),e.qZA()(),e.TgZ(11,"td")(12,"p-cellEditor"),e.YNc(13,W,1,6,"ng-template",46),e.YNc(14,X,2,1,"ng-template",47),e.qZA()(),e.TgZ(15,"td")(16,"p-cellEditor"),e.YNc(17,ee,1,1,"ng-template",46),e.YNc(18,te,2,1,"ng-template",47),e.qZA()(),e.TgZ(19,"td")(20,"p-cellEditor"),e.YNc(21,ie,0,0,"ng-template",46),e.YNc(22,oe,3,3,"ng-template",47),e.qZA()(),e.TgZ(23,"td"),e.YNc(24,ne,2,0,"span",48),e.YNc(25,ae,2,0,"span",49),e.qZA(),e.TgZ(26,"td")(27,"p-cellEditor"),e.YNc(28,se,1,5,"ng-template",46),e.YNc(29,ce,3,2,"ng-template",47),e.qZA()(),e.TgZ(30,"td")(31,"div",50)(32,"span",38),e._uU(33),e.qZA(),e.TgZ(34,"span",38),e._uU(35,"GDPR: Explicit"),e.qZA(),e.TgZ(36,"span",38),e._uU(37,"DPDPA: Explicit"),e.qZA(),e.TgZ(38,"span",38),e._uU(39),e.qZA(),e.TgZ(40,"span",38),e._uU(41),e.qZA()()(),e.TgZ(42,"td")(43,"button",51),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().$implicit,s=e.oxw();return e.KtG(s.openRegulationModal(a))}),e.qZA(),e.TgZ(44,"button",52),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().$implicit,s=e.oxw();return e.KtG(s.onRowDelete(a))}),e.qZA()()()}if(2&n){const t=e.oxw().$implicit,i=e.oxw();e.Q6J("pEditableRow",t),e.xp6(2),e.Q6J("value",t)("disabled",i.isLoading||i.isBulkSaving),e.xp6(22),e.Q6J("ngIf",!t.categories.length||t.categories.includes("")),e.xp6(1),e.Q6J("ngIf",t.categories.length&&!t.categories.includes("")),e.xp6(8),e.hij("CCPA: ",t.ccpa_implicit?"Implicit":"Explicit",""),e.xp6(6),e.hij("Generic: ",t.generic_implicit?"Implicit":"Explicit",""),e.xp6(2),e.hij("CIPA: ",t.cipa_implicit?"Implicit":"Explicit","")}}function de(n,r){1&n&&(e.TgZ(0,"div",62),e._uU(1,"No Record Found"),e.qZA())}function ge(n,r){if(1&n&&(e.YNc(0,pe,45,8,"tr",42),e.YNc(1,de,2,0,"div",43)),2&n){const t=e.oxw();e.Q6J("ngIf",t.blockingscriptList.length>0),e.xp6(1),e.Q6J("ngIf",0===t.blockingscriptList.length)}}function _e(n,r){1&n&&(e.TgZ(0,"tr")(1,"td",63),e._uU(2," No Scripts added "),e.qZA()()),2&n&&(e.xp6(1),e.uIk("colspan",10))}function ue(n,r){1&n&&e.GkF(0)}function he(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"alert",64),e.NdJ("onClosed",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.onClosed(a.alertMsg))}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("dismissible",t.dismissible)("type",t.alertType),e.xp6(1),e.Oqu(t.alertMsg)}}function me(n,r){if(1&n&&(e.TgZ(0,"p",85),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij(" Applies to ",t.selectedBlockedTags.length," selected blocked tags. Values are prefilled from the first selected tag. ")}}function be(n,r){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",66)(2,"div",67)(3,"p",79),e._uU(4,"URL "),e.TgZ(5,"span",86),e._uU(6,"*"),e.qZA()()(),e.TgZ(7,"div",70)(8,"input",87),e.NdJ("ngModelChange",function(a){e.CHM(t);const s=e.oxw(2);return e.KtG(s.selectedProduct.tag_src=a)})("blur",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onUrlChange())}),e.qZA()()(),e.TgZ(9,"div",66)(10,"div",67)(11,"p",79),e._uU(12,"Host"),e.qZA()(),e.TgZ(13,"div",70)(14,"input",88),e.NdJ("ngModelChange",function(a){e.CHM(t);const s=e.oxw(2);return e.KtG(s.selectedProduct.tag_src_host=a)}),e.qZA()()(),e.TgZ(15,"div",66)(16,"div",67)(17,"p",79),e._uU(18,"Type"),e.qZA()(),e.TgZ(19,"div",70)(20,"p-dropdown",80),e.NdJ("ngModelChange",function(a){e.CHM(t);const s=e.oxw(2);return e.KtG(s.selectedProduct.tag_src_type=a)}),e.qZA()()(),e.BQk()}if(2&n){const t=e.oxw(2);e.xp6(8),e.Akn(e.DdM(11,C)),e.Q6J("ngModel",t.selectedProduct.tag_src),e.xp6(6),e.Akn(e.DdM(12,C)),e.Q6J("ngModel",t.selectedProduct.tag_src_host)("placeholder","manual"===t.scriptMod
1alMode?"Auto-filled from URL":""),e.xp6(6),e.Akn(e.DdM(13,C)),e.Q6J("ngModel",t.selectedProduct.tag_src_type)("options",t.tagTypeOptions)}}function fe(n,r){1&n&&(e.TgZ(0,"span",86),e._uU(1,"*"),e.qZA())}function Ce(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",93),e.NdJ("click",function(){const s=e.CHM(t).$implicit,u=e.oxw(3);return e.KtG(u.selectRecommendedCategory(s.value))}),e._UZ(1,"i",94),e._uU(2),e.qZA()}if(2&n){const t=r.$implicit,i=e.oxw(3);e.ekj("selected",i.selectedProduct.categories.includes(t.value)),e.uIk("aria-pressed",i.selectedProduct.categories.includes(t.value)),e.xp6(1),e.Q6J("ngClass",i.selectedProduct.categories.includes(t.value)?"pi-check":"pi-plus"),e.xp6(1),e.hij(" ",t.label," ")}}function Te(n,r){if(1&n&&(e.TgZ(0,"div",89)(1,"span",90),e._uU(2,"Recommended"),e.qZA(),e.TgZ(3,"div",91),e.YNc(4,Ce,3,5,"button",92),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(4),e.Q6J("ngForOf",t.recommendedCategories)}}function ve(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",66)(1,"div",67)(2,"p",79),e._uU(3,"Dynamic Params"),e.qZA()(),e.TgZ(4,"div",70)(5,"p-multiSelect",95),e.NdJ("ngModelChange",function(a){e.CHM(t);const s=e.oxw(2);return e.KtG(s.selectedProduct.params=a)}),e.qZA()()()}if(2&n){const t=e.oxw(2);e.xp6(5),e.Akn(e.DdM(4,C)),e.Q6J("ngModel",t.selectedProduct.params)("options",t.selectedProductParamOptions)}}function xe(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.YNc(1,me,2,1,"p",65),e.YNc(2,be,21,14,"ng-container",0),e.TgZ(3,"div",66)(4,"div",67)(5,"label",68),e._uU(6,"Categories "),e.YNc(7,fe,2,0,"span",69),e.qZA()(),e.TgZ(8,"div",70)(9,"p-multiSelect",71),e.NdJ("ngModelChange",function(a){e.CHM(t);const s=e.oxw();return e.KtG(s.selectedProduct.categories=a)})("onChange",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.onCategoriesChange(a.selectedProduct))}),e.qZA(),e.YNc(10,Te,5,1,"div",72),e.qZA()(),e.YNc(11,ve,6,5,"div",73),e.TgZ(12,"p",74),e._uU(13,"Script Loading"),e.qZA(),e._UZ(14,"hr",75),e.TgZ(15,"div",66)(16,"div",67)(17,"p",76),e._uU(18,"GDPR"),e.qZA()(),e.TgZ(19,"div",70),e._UZ(20,"p-dropdown",77),e.qZA()(),e.TgZ(21,"div",78)(22,"div",67)(23,"p",79),e._uU(24,"CCPA"),e.qZA()(),e.TgZ(25,"div",70)(26,"p-dropdown",80),e.NdJ("ngModelChange",function(a){e.CHM(t);const s=e.oxw();return e.KtG(s.selectedProduct.ccpa_implicit=a)}),e.qZA()()(),e.TgZ(27,"div",66),e._UZ(28,"div",81),e.TgZ(29,"div",82)(30,"input",83),e.NdJ("ngModelChange",function(a){e.CHM(t);const s=e.oxw();return e.KtG(s.selectedProduct.cipa_implicit=!a)}),e.qZA(),e.TgZ(31,"span",84),e._uU(32,"Apply Explicit for California (CIPA)"),e.qZA()()(),e.TgZ(33,"div",66)(34,"div",67)(35,"p",79),e._uU(36,"Generic"),e.qZA()(),e.TgZ(37,"div",70)(38,"p-dropdown",80),e.NdJ("ngModelChange",function(a){e.CHM(t);const s=e.oxw();return e.KtG(s.selectedProduct.generic_implicit=a)}),e.qZA()()(),e.TgZ(39,"div",66)(40,"div",67)(41,"p",76),e._uU(42,"DPDPA"),e.qZA()(),e.TgZ(43,"div",70),e._UZ(44,"p-dropdown",77),e.qZA()()()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf","bulk"===t.scriptModalMode),e.xp6(1),e.Q6J("ngIf","bulk"!==t.scriptModalMode),e.xp6(5),e.Q6J("ngIf","bulk"!==t.scriptModalMode),e.xp6(2),e.Akn(e.DdM(29,C)),e.Q6J("ngModel",t.selectedProduct.categories)("options",t.cookieCategories)("showToggleAll",!1),e.xp6(1),e.Q6J("ngIf","edit"===t.scriptModalMode&&t.recommendedCategories.length),e.xp6(1),e.Q6J("ngIf","bulk"!==t.scriptModalMode),e.xp6(9),e.Akn(e.DdM(30,C)),e.Q6J("ngModel",!1)("options",t.blockingCategories)("disabled",!0),e.xp6(6),e.Akn(e.DdM(31,C)),e.Q6J("ngModel",t.selectedProduct.ccpa_implicit)("options",t.blockingCategories),e.xp6(4),e.Q6J("ngModel",!t.selectedProduct.cipa_implicit),e.xp6(8),e.Akn(e.DdM(32,C)),e.Q6J("ngModel",t.selectedProduct.generic_implicit)("options",t.blockingCategories),e.xp6(6),e.Akn(e.DdM(33,C)),e.Q6J("ngModel",!1)("options",t.blockingCategories)("disabled",!0)}}function ke(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",96),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.regulationModalVisible=!1)}),e.qZA(),e.TgZ(1,"button",97),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();
1return e.KtG(a.onSaveScriptModal())}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("disabled",t.isBulkSaving),e.xp6(1),e.Q6J("disabled",t.isBulkSaving)}}function Ae(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"button",4),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return a.availableSearch="",a.availableTagType="",e.KtG(a.onGetTagsList())}),e._uU(1,"Clear"),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("disabled",t.isBulkSaving)}}function Me(n,r){if(1&n&&(e.TgZ(0,"tr")(1,"th",36),e._UZ(2,"p-tableHeaderCheckbox",37),e.qZA(),e.TgZ(3,"th",38),e._uU(4,"Host"),e.qZA(),e.TgZ(5,"th",38),e._uU(6,"Src"),e.qZA(),e.TgZ(7,"th",38),e._uU(8,"Categories"),e.qZA(),e.TgZ(9,"th",38),e._uU(10,"Tag Type"),e.qZA(),e.TgZ(11,"th",38),e._uU(12,"Scan Date"),e.qZA(),e.TgZ(13,"th",38),e._uU(14,"Status"),e.qZA(),e.TgZ(15,"th",38),e._uU(16," Add "),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("disabled",t.isAvailableLoading||t.isBulkSaving)}}function ye(n,r){1&n&&(e.TgZ(0,"span",56),e._uU(1,"Disabled"),e.qZA())}function Se(n,r){1&n&&(e.TgZ(0,"span",57),e._uU(1,"Enabled"),e.qZA())}function Ze(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"tr")(1,"td"),e._UZ(2,"p-tableCheckbox",45),e.qZA(),e.TgZ(3,"td")(4,"p",38),e._uU(5),e.qZA()(),e.TgZ(6,"td",102)(7,"p",38),e._uU(8),e.qZA()(),e.TgZ(9,"td")(10,"p",38),e._uU(11),e.qZA()(),e.TgZ(12,"td")(13,"p",38),e._uU(14),e.qZA()(),e.TgZ(15,"td")(16,"p",38),e._uU(17),e.ALo(18,"date"),e.qZA()(),e.TgZ(19,"td"),e.YNc(20,ye,2,0,"span",48),e.YNc(21,Se,2,0,"span",49),e.qZA(),e.TgZ(22,"td")(23,"button",103),e.NdJ("click",function(){const s=e.CHM(t).$implicit,u=e.oxw(2);return e.KtG(u.AddToList(s))}),e._UZ(24,"i",104),e.qZA()()()}if(2&n){const t=r.$implicit,i=e.oxw(2);e.xp6(2),e.Q6J("value",t)("disabled",i.isAvailableLoading||i.isBulkSaving),e.xp6(3),e.Oqu(t.tag_src_host),e.xp6(3),e.Oqu(t.tag_src),e.xp6(3),e.Oqu(t.categories.includes("")?"-- Disable --":t.categories.length?t.categories.join(", "):"No categories selected"),e.xp6(3),e.Oqu(t.tag_src_type),e.xp6(3),e.Oqu(e.lcZ(18,10,t.created_at)),e.xp6(3),e.Q6J("ngIf",!t.categories.length||t.categories.includes("")),e.xp6(1),e.Q6J("ngIf",t.categories.length&&!t.categories.includes("")),e.xp6(2),e.Q6J("disabled",i.isBulkSaving||i.isAvailableLoading)}}function we(n,r){1&n&&(e.TgZ(0,"tr")(1,"td",63),e._uU(2," No available tags found. Try another search or scan your website. "),e.qZA()()),2&n&&(e.xp6(1),e.uIk("colspan",8))}const R=function(){return{width:"140px","font-size":"0.875rem"}},Y=function(){return{label:"All Types",value:""}},K=function(){return{label:"JavaScript",value:"JavaScript"}},H=function(){return{label:"Iframe",value:"Iframe"}},F=function(){return{label:"Image",value:"Image"}},V=function(n,r,t,i){return[n,r,t,i]},Pe=function(){return{"min-width":"800px"}},z=function(){return[10,20,30]};function Ie(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"div",8)(1,"input",98),e.NdJ("ngModelChange",function(a){e.CHM(t);const s=e.oxw();return e.KtG(s.availableSearch=a)})("ngModelChange",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.onSearchChange("available"))}),e.qZA(),e.TgZ(2,"p-dropdown",10),e.NdJ("ngModelChange",function(a){e.CHM(t);const s=e.oxw();return e.KtG(s.availableTagType=a)})("onChange",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.onGetTagsList())}),e.qZA(),e.YNc(3,Ae,2,1,"button",12),e.TgZ(4,"div",13)(5,"span",14),e._uU(6),e.qZA(),e.TgZ(7,"button",4),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.saveBulkTags("add"))}),e._UZ(8,"i",99),e._uU(9,"Add Selected "),e.qZA()()(),e.TgZ(10,"div",100)(11,"p-table",101),e.NdJ("selectionChange",function(a){e.CHM(t);const s=e.oxw();return e.KtG(s.selectedTags=a)}),e.YNc(12,Me,17,1,"ng-template",17),e.YNc(13,Ze,25,12,"ng-template",18),e.YNc(14,we,3,1,"ng-template",19),e.qZA()()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngModel",t.availableSearch)("disabled",t.isBulkSaving),e.xp6(1),e.Akn(e.DdM(18,R)),e.Q6J("ngModel",t.availableTagType)("disabled",t.isBulkSaving)("options",e.l5B(23,V,e.DdM(19,Y),e.DdM(20,K),e.DdM(21,H),e.DdM(22,F))),e.xp6(1),e.Q6J("ngIf",t.availableSearch||t.availableTagType),e.xp6(3),e.hij("",t.selectedTags.length," selected"),e.xp6(1),e.Q6J("disabled",!t.selectedTags.length||t.isAvailableLoading||t.isBulkSaving),e.xp6(4),e.Q6J("value",t.scriptList)("selection",t.selectedTags)("tableStyle",e.Dd
1M(28,Pe))("paginator",!0)("rows",10)("rowsPerPageOptions",e.DdM(29,z))("loading",t.isAvailableLoading||t.isBulkSaving)("showCurrentPageReport",!0)}}const Je=function(){return{label:"All Status",value:""}},qe=function(){return{label:"Enabled",value:"enabled"}},Oe=function(){return{label:"Disabled",value:"disabled"}},Be=function(n,r,t){return[n,r,t]},Ue=function(n){return{hide:n}},De=function(){return{width:"500px",maxWidth:"95vw",padding:"1rem"}},Ne=[{path:"enables",component:(()=>{const r=class{openManualModal(){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(i){i.categories.includes("")&&(i.categories=[""])}get recommendedCategories(){const i=this.selectedProduct?.category_recommended,a=(Array.isArray(i)?i:[i]).filter(s=>"string"==typeof s).map(s=>s.trim().toLowerCase());return this.cookieCategories.filter(s=>""!==s.value&&(a.includes(s.value)||a.includes(s.label.toLowerCase())))}selectRecommendedCategory(i){"edit"!==this.scriptModalMode||!this.recommendedCategories.some(a=>a.value===i)||(this.selectedProduct.categories=Array.from(new Set([...this.selectedProduct.categories.filter(a=>""!==a),i])))}onUrlChange(){this.selectedProductParamOptions=this.extractQueryParamKeys(this.selectedProduct.tag_src);try{const i=this.selectedProduct.tag_src.startsWith("//")?"https:"+this.selectedProduct.tag_src:this.selectedProduct.tag_src;this.selectedProduct.tag_src_host=new URL(i).hostname}catch{}}onSaveScriptModal(){if("bulk"===this.scriptModalMode)this.saveBulkTags("update");else if("manual"===this.scriptModalMode||"edit"===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 i=this.extractQueryParamKeys(this.selectedProduct.tag_src);this.selectedProduct.params=(this.selectedProduct.params||[]).filter(s=>i.includes(s)),this.loading.start(),("manual"===this.scriptModalMode?this.cookieCategoryService.AddManualScript(this.selectedProduct,this.constructor.name,f.e.autoCookieBlocking,this.currrentManagedPropID):this.cookieCategoryService.editAutoCookieScript(this.selectedProduct,this.constructor.name,f.e.autoCookieBlocking)).subscribe(()=>{this.loading.stop(),this.regulationModalVisible=!1,this.isOpen=!0,this.showNote=!0,this.alertMsg="manual"===this.scriptModalMode?"Script added successfully":"Record updated Successfully",this.alertType="success",this.onGetBlockingList()},s=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=s,this.alertType="danger"})}else this.onSaveRegulationModal()}constructor(i,a,s,u,m,Ee,Qe){this.messageService=i,this.loading=a,this.titleService=s,this.activatedRouter=u,this.router=m,this.dataService=Ee,this.cookieCategoryService=Qe,this.isChild=!1,this.scriptList=[],this.cookieCategories=A.Y,this.blockingCategories=A.S,this.tagTypeOptions=[{label:"JavaScript",value:"JavaScript"},{label:"Iframe",value:"Iframe"},{label:"Image",value:"Image"}],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.isAvailableLoading=!1,this.isBulkSaving=!1,this.selectedTags=[],this.selectedBlockedTags=[],this.blockedSearch="",this.availableSearch="",this.searchTimers={},this.filterTagType="",this.availableTagType="",this.filterTagStatus="",this.scriptModalMode="edit"}ngOnInit(){this.activatedRouter.queryParams.subscribe(i=>{let a=i.oid,s=i.pid;null!=this.currentManagedOrgID&&(this.currentManagedOrgID!=a||this.currrentManagedPropID!=s)&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.navigateByUrl(this.router.url)),this.currentManagedOrgID=a,this.currrentManagedPropID=s}),this.titleService.setTitle("Auto Cookie Blocking - Cookie Banner"),this.dataService.isSubscriptionExistForProperty()||this.onCheckSubscription(),this.dataService.isSubscriptionExistForProperty()&&(this.onGetTagsList(),this.onGetBlockingList(
1))}ngOnDestroy(){clearTimeout(this.searchTimers.blocked),clearTimeout(this.searchTimers.available),this.blockedRequest?.unsubscribe(),this.availableRequest?.unsubscribe(),this.bulkRequest?.unsubscribe(),this.isBulkSaving&&this.loading.stop()}onSearchChange(i){clearTimeout(this.searchTimers[i]),"blocked"===i?(this.blockedRequest?.unsubscribe(),this.selectedBlockedTags=[],this.isLoading=!0):(this.availableRequest?.unsubscribe(),this.selectedTags=[],this.isAvailableLoading=!0),this.searchTimers[i]=setTimeout(()=>{"blocked"===i?this.onGetBlockingList():this.onGetTagsList()},350)}extractQueryParamKeys(i){if(!i||!i.includes("?"))return[];try{const a=i.startsWith("//")?"https:"+i:i,s=new URL(a);return Array.from(new Set(Array.from(s.searchParams.keys())))}catch{return[]}}normalizeScript(i){const{category:a,...s}=i;return{...s,categories:Array.isArray(s.categories)?[...s.categories]:a?[a]:[]}}normalizeTagType(i){const a=(i||"").toLowerCase();return"image"===a?"Image":"iframe"===a?"Iframe":"JavaScript"}onGetTagsList(){clearTimeout(this.searchTimers.available),this.availableRequest?.unsubscribe(),this.selectedTags=[],this.isAvailableLoading=!0;const i={search:this.availableSearch.trim()};this.availableTagType&&(i.type=this.availableTagType),this.availableRequest=this.cookieCategoryService.getTagList(i,this.constructor.name,f.e.autoCookieBlocking).subscribe(a=>{this.isAvailableLoading=!1,this.scriptList=a.response.filter(s=>this.isTagAvailable(s)).map(s=>this.normalizeScript(s))},a=>{this.isAvailableLoading=!1,this.scriptList=[],this.isOpen=!0,this.alertMsg=a,this.alertType="error"})}onGetBlockingList(){clearTimeout(this.searchTimers.blocked),this.blockedRequest?.unsubscribe(),this.selectedBlockedTags=[],this.isLoading=!0;const i={search:this.blockedSearch.trim()};this.filterTagType&&(i.type=this.filterTagType),this.filterTagStatus&&(i.status=this.filterTagStatus),this.blockedRequest=this.cookieCategoryService.getCookieTagList(i,this.constructor.name,f.e.autoCookieBlocking).subscribe(a=>{this.isLoading=!1,this.blockingscriptList=(0,M.orderBy)(a.response.map(s=>({...this.normalizeScript(s),params:Array.isArray(s.params)?s.params:[]})),["created_at"],["desc"])},a=>{this.isLoading=!1,this.blockingscriptList=[],this.isOpen=!0,this.alertMsg=a,this.alertType="danger"})}onRowEditSave(i){const a=this.extractQueryParamKeys(i.tag_src);i.params=(i.params||[]).filter(s=>a.includes(s)),this.loading.start(),this.cookieCategoryService.editAutoCookieScript(i,this.constructor.name,f.e.autoCookieBlocking).subscribe(()=>{this.loading.stop(),this.isOpen=!0,this.showNote=!0,this.alertMsg="Record updated Successfully",this.alertType="success"},s=>{this.loading.stop(),this.isOpen=!0,this.showNote=!0,this.alertMsg=s,this.alertType="danger"})}onClosed(i){this.alertMsg=!i,this.isOpen=!1}scriptAddPayload(i){return{PID:i.PID,categories:this.normalizeScript(i).categories,category_recommended:i.category_recommended,cookie_scan_tag_id:i.id,pages:i.pages,resources_action:i.resources_action,scanner_job_id:i.scanner_job_id,tag_src:i.tag_src,tag_src_type:i.tag_src_type,tag_src_host:i?.tag_src_host}}isTagAvailable(i){return!1===i.tag_added}AddToList(i){this.loading.start(),this.cookieCategoryService.AddScript(this.scriptAddPayload(i),this.constructor.name,f.e.autoCookieBlocking,i.PID).subscribe(a=>{this.loading.stop(),this.isOpen=!0,this.showNote=!0,this.alertMsg="Script has been added successfully",this.alertType="success",this.onGetTagsList(),this.onGetBlockingList()},a=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=a,this.alertType="danger"})}onRowDelete(i){this.loading.start(),this.cookieCategoryService.DeleteScript(this.constructor.name,f.e.autoCookieBlocking,i.PID,i.id).subscribe(a=>{this.loading.stop(),this.isOpen=!0,this.showNote=!0,this.alertMsg="Record removed Successfully",this.alertType="success",this.onGetBlockingList(),this.onGetTagsList()},a=>{this.loading.stop(),this.isOpen=!0,this.alertMsg=a,this.alertType="danger"})}onRowEditCancel(i,a){this.onGetBlockingList()}openBulkEdit(){!this.selectedBlockedTags.length||this.isBulkSaving||this.isLoading||(this.openRegulationModal(this.selectedBlockedTags[0]),this.scriptMod
1alMode="bulk")}saveBulkTags(i){const a="add"===i?this.selectedTags:this.selectedBlockedTags;if(!a.length||this.isBulkSaving||("add"===i?this.isAvailableLoading:this.isLoading))return;const s=a.map(m=>"add"===i?this.scriptAddPayload(m):{...this.normalizeScript(m),categories:[...this.selectedProduct.categories],ccpa_implicit:this.selectedProduct.ccpa_implicit,generic_implicit:this.selectedProduct.generic_implicit,cipa_implicit:this.selectedProduct.cipa_implicit});this.isBulkSaving=!0,this.loading.start();const u="add"===i?this.cookieCategoryService.AddScriptsBulk(s,this.constructor.name,f.e.autoCookieBlocking,this.currrentManagedPropID):this.cookieCategoryService.editAutoCookieScriptsBulk(s,this.constructor.name,f.e.autoCookieBlocking,this.currrentManagedPropID);this.bulkRequest=u.subscribe(()=>{this.isBulkSaving=!1,this.loading.stop(),this.regulationModalVisible=!1,this.selectedTags=[],this.selectedBlockedTags=[],this.isOpen=!0,this.showNote=!0,this.alertMsg="add"===i?"Tags added successfully":"Tags updated successfully",this.alertType="success",this.onGetTagsList(),this.onGetBlockingList()},m=>{this.isBulkSaving=!1,this.loading.stop(),this.isOpen=!0,this.alertMsg=m,this.alertType="danger"})}openRegulationModal(i){this.selectedProduct={...this.normalizeScript(i),tag_src_type:this.normalizeTagType(i.tag_src_type),ccpa_implicit:i.ccpa_implicit??!0,generic_implicit:i.generic_implicit??!0,cipa_implicit:i.cipa_implicit??!1},this.selectedProductParamOptions=this.extractQueryParamKeys(this.selectedProduct.tag_src),this.scriptModalMode="edit",this.regulationModalVisible=!0}onSaveRegulationModal(){const i=this.extractQueryParamKeys(this.selectedProduct.tag_src);this.selectedProduct.params=(this.selectedProduct.params||[]).filter(a=>i.includes(a)),this.loading.start(),this.cookieCategoryService.editAutoCookieScript(this.selectedProduct,this.constructor.name,f.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()},a=>{this.loading.stop(),this.isOpen=!0,this.showNote=!0,this.alertMsg=a,this.alertType="danger"})}onCheckSubscription(){const i=this.dataService.getCurrentPropertyPlanDetails(),a=void 0!==i&&void 0!==i.response?i.response.features:null;null!==a&&Object.keys(a).length>0?this.dataService.isLicenseAppliedForProperty.next({requesttype:"property",hasaccess:!0}):this.dataService.isLicenseAppliedForProperty.next({requesttype:"property",hasaccess:!1})}};let n=r;return r.\u0275fac=function(a){return new(a||r)(e.Y36(y.ez),e.Y36(I.LA),e.Y36(J.Dx),e.Y36(b.gz),e.Y36(b.F0),e.Y36(S.D),e.Y36(q.o))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-auto-cookie-script"]],inputs:{isChild:"isChild"},decls:35,vars:61,consts:[[4,"ngIf"],["appTheme","",1,"card"],[1,"card-header",2,"display","flex","justify-content","space-between"],[1,"float-left"],["type","button",1,"btn","btn-sm","btn-primary",3,"disabled","click"],[1,"card-body","p-0"],["class","alert alert-warning p-2",4,"ngIf"],["header","Blocked Tags"],[1,"d-flex","flex-wrap","align-items-center","p-3",2,"gap","0.5rem"],["pInputText","","type","search","name","blockedSearch","aria-label","Search blocked tags by source, domain or category","placeholder","Search src, domain or category",1,"tag-search",3,"ngModel","disabled","ngModelChange"],["optionLabel","label","optionValue","value","placeholder","Type",3,"ngModel","disabled","options","ngModelChange","onChange"],["optionLabel","label","optionValue","value","placeholder","Status",3,"ngModel","disabled","options","ngModelChange","onChange"],["type","button","class","btn btn-sm btn-primary",3,"disabled","click",4,"ngIf"],[1,"d-flex","align-items-center","ml-auto",2,"gap","0.5rem"],[1,"text-nowrap"],["aria-hidden","true",1,"pi","pi-pencil","mr-1"],["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","selection","loading","rowsPerPageOptions","selectionChange"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["header","Available Tags"],[4,"ngTemplateOutlet"],[1,"col-sm-5","mr-0","float-right","flotingdiv",3,"ngClass"],["dismissOnTimeout","5000",3,"dismissible","type","onClosed",4,"ngIf"],[3,"header","visible","modal","closable","closeOnEscape","visibleChange","onHide"],["pTemplate","footer"],["availableTagsTable",""],["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,"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"],[2,"width","40px"],[3,"disabled"],[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"],[3,"value","disabled"],["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 tag",1,"p-button-rounded","p-button-text",3,"click"],["tooltip","Remove tag","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"],["class","text-muted",4,"ngIf"],[1,"row","mb-3"],[1,"col-md-4","d-flex","align-items-center"],["for","scriptCategories",1,"mb-0","input-label"],["style","color:red",4,"ngIf"],[1,"col-md-8"],["inputId","scriptCategories","defaultLabel","Select categories","display","chip",3,"ngModel","options","showToggleAll","ngModelChange","onChange"],["class","category-recommendations",4,"ngIf"],["class","row mb-3",4,"ngIf"],[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"],[1,"mb-0","input-label"],["o
1ptionLabel","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"],[1,"text-muted"],[2,"color","red"],["pInputText","","placeholder","https://example.com/script.js",3,"ngModel","ngModelChange","blur"],["pInputText","",3,"ngModel","placeholder","ngModelChange"],[1,"category-recommendations"],[1,"category-recommendations-label"],[1,"category-recommendations-list"],["type","button","class","category-recommendation",3,"selected","click",4,"ngFor","ngForOf"],["type","button",1,"category-recommendation",3,"click"],["aria-hidden","true",1,"pi",3,"ngClass"],["placeholder","Select query params","display","chip",3,"ngModel","options","ngModelChange"],["pButton","","type","button","label","Cancel",1,"p-button-text",3,"disabled","click"],["pButton","","type","button","label","Save",1,"p-button-primary",3,"disabled","click"],["pInputText","","type","search","name","availableSearch","aria-label","Search available tags by source, domain or category","placeholder","Search src, domain or category",1,"tag-search",3,"ngModel","disabled","ngModelChange"],["aria-hidden","true",1,"pi","pi-plus","mr-1"],[1,"available-tags-table"],["dataKey","id","currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries","styleClass","p-datatable-sm",3,"value","selection","tableStyle","paginator","rows","rowsPerPageOptions","loading","showCurrentPageReport","selectionChange"],[2,"overflow-wrap","anywhere"],["title","Add this tag","aria-label","Add this tag","type","button",1,"btn","btn-sm","btn-primary",3,"disabled","click"],["aria-hidden","true",1,"pi","pi-plus"]],template:function(a,s){if(1&a&&(e.YNc(0,_,10,4,"div",0),e.TgZ(1,"div",1)(2,"div",2)(3,"h5",3),e._uU(4,"Auto Cookie Blocking"),e.qZA(),e.TgZ(5,"button",4),e.NdJ("click",function(){return s.openManualModal()}),e._uU(6," Add Manually "),e.qZA()(),e.TgZ(7,"div",5),e.YNc(8,l,6,4,"div",6),e.TgZ(9,"p-tabView")(10,"p-tabPanel",7)(11,"div",8)(12,"input",9),e.NdJ("ngModelChange",function(m){return s.blockedSearch=m})("ngModelChange",function(){return s.onSearchChange("blocked")}),e.qZA(),e.TgZ(13,"p-dropdown",10),e.NdJ("ngModelChange",function(m){return s.filterTagType=m})("onChange",function(){return s.onGetBlockingList()}),e.qZA(),e.TgZ(14,"p-dropdown",11),e.NdJ("ngModelChange",function(m){return s.filterTagStatus=m})("onChange",function(){return s.onGetBlockingList()}),e.qZA(),e.YNc(15,p,2,1,"button",12),e.TgZ(16,"div",13)(17,"span",14),e._uU(18),e.qZA(),e.TgZ(19,"button",4),e.NdJ("click",function(){return s.openBulkEdit()}),e._UZ(20,"i",15),e._uU(21,"Bulk Update "),e.qZA()()(),e.TgZ(22,"p-table",16),e.NdJ("selectionChange",function(m){return s.selectedBlockedTags=m}),e.YNc(23,g,22,1,"ng-template",17),e.YNc(24,ge,2,2,"ng-template",18),e.YNc(25,_e,3,1,"ng-template",19),e.qZA()(),e.TgZ(26,"p-tabPanel",20),e.YNc(27,ue,1,0,"ng-container",21),e.qZA()()()(),e.TgZ(28,"div",22),e.YNc(29,he,2,3,"alert",23),e.qZA(),e.TgZ(30,"p-dialog",24),e.NdJ("visibleChange",function(m){return s.regulationModalVisible=m})("onHide",function(){return s.regulationModalVisible=!1}),e.YNc(31,xe,45,34,"div",0),e.YNc(32,ke,2,2,"ng-template",25),e.qZA(),e.YNc(33,Ie,15,30,"ng-template",null,26,e.W1O)),2&a){const u=e.MAs(34);e.Q6J("ngIf",!s.isChild),e.xp6(5),e.Q6J("disabled",s.isBulkSaving),e.xp6(3),e.Q6J("ngIf",s.showNote),e.xp6(4),e.Q6J("ngModel",s.blockedSearch)("disabled",s.isBulkSaving),e.xp6(1),e.Akn(e.DdM(39,R)),e.Q6J("ngModel",s.filterTagType)("disabled",s.isBulkSaving)("options",e.l5B(44,V,e.DdM(40,Y),e.DdM(41,K),e.DdM(42,H),e.DdM(43,F))),e.xp6(1),e.Akn(e.DdM(49,R)),e.Q6J("ngModel",s.filterTagStatus)("disabled",s.isBulkSaving)("options",e.kEZ(53,Be,e.DdM(50,Je),e.DdM(51,qe),e.DdM(52,Oe))),e.xp6(1),e.Q6J("ngIf",s.filterTagType||s.filterTagStatus||s.blockedSearch),e.xp6(3),e.hij("",s.selectedBlockedTags.length," selected"),e.xp6(1),e.Q6J("disabled",!s.selectedBlockedTags.length||s.isLoading||s.isBulkSaving),e.xp6(3),e.Q6J("value",s.blockingscriptList)("responsive",!0)("paginator",!0)("rows",10)("rowHover",!0)("showCurrentPageReport",!0)("totalRecords",s.blockingscriptList.length)("selection",s.selectedBlockedTags)("loading",s.isLoading||s.isBulkSaving)("rowsPerPageOptions",e.DdM(57,z)),e.xp6(
15),e.Q6J("ngTemplateOutlet",u),e.xp6(1),e.Q6J("ngClass",e.VKq(58,Ue,!s.isOpen)),e.xp6(1),e.Q6J("ngIf",s.isOpen),e.xp6(1),e.Akn(e.DdM(60,De)),e.Q6J("header","bulk"===s.scriptModalMode?"Update Selected Tags":"edit"===s.scriptModalMode?"Edit Script":"Add Script")("visible",s.regulationModalVisible)("modal",!0)("closable",!s.isBulkSaving)("closeOnEscape",!s.isBulkSaving),e.xp6(1),e.Q6J("ngIf",s.selectedProduct)}},dependencies:[o.mk,o.sg,o.O5,o.tP,y.jx,b.rH,O.Lt,v.Fj,v.Wl,v.JJ,v.Q7,v.On,B.NU,T.iA,T.lQ,T.YL,T.fz,T.UA,T.Mo,T.D$,Z.xf,Z.x4,U.o,D.Hq,N.H,L.wx,E.i9,w.V,P.mh,Q.E,o.uU],styles:[".tag-search[_ngcontent-%COMP%]{width:280px;max-width:100%;font-size:.875rem}.available-tags-table[_ngcontent-%COMP%]{overflow-x:auto}.available-tags-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{overflow-wrap:anywhere}.category-recommendations[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.5rem;margin-top:.5rem;padding:.55rem .65rem;border-radius:4px}.category-recommendations-label[_ngcontent-%COMP%]{flex:0 0 auto;padding-top:.2rem;color:#526273;font-size:.75rem;font-weight:600}.category-recommendations-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.35rem}.category-recommendation[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;padding:.2rem .55rem;border:1px solid #9bbddd;border-radius:999px;background:#fff;color:#286090;cursor:pointer;font-size:.75rem;line-height:1.3}.category-recommendation[_ngcontent-%COMP%]:hover, .category-recommendation.selected[_ngcontent-%COMP%]{border-color:#286090;background:#286090;color:#fff}.category-recommendation[_ngcontent-%COMP%]:focus{outline:2px solid rgba(40,96,144,.35);outline-offset:1px}.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}"]}),n})()}];let Le=(()=>{const r=class{};let n=r;return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({providers:[y.ez],imports:[o.ez,b.Bz.forChild(Ne)]}),n})()},70713:(G,k,d)=>{d.d(k,{LU:()=>Q,x4:()=>w,xf:()=>P});var o=d(94650),b=d(36895),f=d(49700),A=d(98473),M=d(42111),e=d(98606);function y(c,_){1&c&&o.GkF(0)}function I(c,_){if(1&c&&(o.ynx(0),o.YNc(1,y,1,0,"ng-container",3),o.BQk()),2&c){const l=o.oxw(2);o.xp6(1),o.Q6J("ngTemplateOutlet",l.contentTemplate)}}function J(c,_){if(1&c&&(o.TgZ(0,"div",1),o.Hsn(1),o.YNc(2,I,2,1,"ng-container",2),o.qZA()),2&c){const l=o.oxw();o.Q6J("hidden",!l.selected),o.uIk("id",l.id)("aria-hidden",!l.selected)("aria-labelledby",l.id+"-label"),o.xp6(2),o.Q6J("ngIf",l.contentTemplate&&(l.cache?l.loaded:l.selected))}}const S=["*"],q=["navbar"],O=["inkbar"];function v(c,_){if(1&c&&o._UZ(0,"span",16),2&c){const l=o.oxw(3).$implicit;o.Q6J("ngClass",l.leftIcon)}}function B(c,_){if(1&c&&o._UZ(0,"span",17),2&c){const l=o.oxw(3).$implicit;o.Q6J("ngClass",l.rightIcon)}}function T(c,_){if(1&c&&(o.ynx(0),o.YNc(1,v,1,1,"span",13),o.TgZ(2,"span",14),o._uU(3),o.qZA(),o.YNc(4,B,1,1,"span",15),o.BQk()),2&c){const l=o.oxw(2).$implicit;o.xp6(1),o.Q6J("ngIf",l.leftIcon),o.xp6(2),o.Oqu(l.header),o.xp6(1),o.Q6J("ngIf",l.rightIcon)}}function Z(c,_){1&c&&o.GkF(0)}function U(c,_){if(1&c){const l=o.EpF();o.TgZ(0,"span",18),o.NdJ("click",function(g){o.CHM(l);const h=o.oxw(2).$implicit,x=o.oxw();return o.KtG(x.close(g,h))}),o.qZA()}}const D=function(c,_){return{"p-highlight":c,"p-disabled":_}};function N(c,_){if(1&c){const l=o.EpF();o.TgZ(0,"li",8)(1,"a",9),o.NdJ("click",function(g){o.CHM(l);const h=o.oxw().$implicit,x=o.oxw();return o.KtG(x.open(g,h))})("keydown.enter",function(g){o.CHM(l);const h=o.oxw().$implicit,x=o.oxw();return o.KtG(x.open(g,h))}),o.YNc(2,T,5,3,"ng-container",10),o.YNc(3,Z,1,0,"ng-container",11),o.YNc(4,U,1,0,"span",12),o.qZA()()}if(2&c){const l=o.oxw().$implicit;o.Tol(l.headerStyleClass),o.Q6J("ngClass",o.WLB(16,D,l.selected,l.disabled))("ngStyle",l.headerStyle),o.xp6(1),o.Q6J("pTooltip",l.tooltip)("tooltipPosition",l.tooltipPosition)("positionStyle",l.tooltipPositionStyle)("tooltipStyleClass",l.tooltipStyleClass),o.uIk("id",l.id+"-label")("aria-selected",l.selected)("aria-controls",l.id)("aria-selected",l.selected)("tabindex",l.disabled?null:"0"),o.xp6(1),o.Q6J("ngIf",!l.headerTemplate),o.xp6(1),o.Q6J("ngTemplateOutlet",l.headerTemplate),o.xp6(1),o.Q6J("ngIf",l.closable)}}function L(c,_){1&c&&o.YNc(0,N,5,19,"li",7),2&c&&o.Q6J("ngIf",!_.$implicit.closed)}let E=0,w=(()=>{class c{constructor(l,p,g){this.viewContainer=p,this.cd=g,this.cache=!0,this.tooltipPosition="top",this.tooltipPositionStyle="absolute",this.id="p-tabpanel-"+E++,this.tabView=l}
1ngAfterContentInit(){this.templates.forEach(l=>{"header"===l.getType()?this.headerTemplate=l.template:this.contentTemplate=l.template})}get selected(){return this._selected}set selected(l){this._selected=l,this.loaded||this.cd.detectChanges(),l&&(this.loaded=!0)}get disabled(){return this._disabled}set disabled(l){this._disabled=l,this.tabView.cd.markForCheck()}get header(){return this._header}set header(l){this._header=l,this.tabView.cd.markForCheck()}get leftIcon(){return this._leftIcon}set leftIcon(l){this._leftIcon=l,this.tabView.cd.markForCheck()}get rightIcon(){return this._rightIcon}set rightIcon(l){this._rightIcon=l,this.tabView.cd.markForCheck()}ngOnDestroy(){this.view=null}}return c.\u0275fac=function(l){return new(l||c)(o.Y36((0,o.Gpc)(()=>P)),o.Y36(o.s_b),o.Y36(o.sBO))},c.\u0275cmp=o.Xpm({type:c,selectors:[["p-tabPanel"]],contentQueries:function(l,p,g){if(1&l&&o.Suo(g,M.jx,4),2&l){let h;o.iGM(h=o.CRH())&&(p.templates=h)}},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:S,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(l,p){1&l&&(o.F$t(),o.YNc(0,J,3,5,"div",0)),2&l&&o.Q6J("ngIf",!p.closed)},dependencies:[b.O5,b.tP],encapsulation:2}),c})(),P=(()=>{class c{constructor(l,p){this.el=l,this.cd=p,this.orientation="top",this.onChange=new o.vpe,this.onClose=new o.vpe,this.activeIndexChange=new o.vpe}ngAfterContentInit(){this.initTabs(),this.tabPanels.changes.subscribe(l=>{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(l,p){if(p.disabled)l&&l.preventDefault();else{if(!p.selected){let g=this.findSelectedTab();g&&(g.selected=!1),this.tabChanged=!0,p.selected=!0;let h=this.findTabIndex(p);this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(h),this.onChange.emit({originalEvent:l,index:h})}l&&l.preventDefault()}}close(l,p){this.controlClose?this.onClose.emit({originalEvent:l,index:this.findTabIndex(p),close:()=>{this.closeTab(p)}}):(this.closeTab(p),this.onClose.emit({originalEvent:l,index:this.findTabIndex(p)})),l.stopPropagation()}closeTab(l){if(!l.disabled){if(l.selected){this.tabChanged=!0,l.selected=!1;for(let p=0;p<this.tabs.length;p++){let g=this.tabs[p];if(!g.closed&&!l.disabled){g.selected=!0;break}}}l.closed=!0}}findSelectedTab(){for(let l=0;l<this.tabs.length;l++)if(this.tabs[l].selected)return this.tabs[l];return null}findTabIndex(l){let p=-1;for(let g=0;g<this.tabs.length;g++)if(this.tabs[g]==l){p=g;break}return p}getBlockableElement(){return this.el.nativeElement.children[0]}get activeIndex(){return this._activeIndex}set activeIndex(l){this._activeIndex=l,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 l=e.p.findSingle(this.navbar.nativeElement,"li.p-highlight");this.inkbar.nativeElement.style.width=e.p.getWidth(l)+"px",this.inkbar.nativeElement.style.left=e.p.getOffset(l).left-e.p.getOffset(this.navbar.nativeElement).left+"px"}}return c.\u0275fac=function(l){return new(l||c)(o.Y36(o.SBq),o.Y36(o.sBO))},c.\u0275cmp=o.Xpm({type:c,selectors:[["p-tabView"]],contentQueries:function(l,p,g){if(1&l&&o.Suo(g,w,4),2&l){let h;o.iGM(h=o.CRH())&&(p.tabPanels=h)}},viewQuery:function(l,p){if(1&l&&(o.Gf(q,5),o.Gf(O,5)),2&l){let g;o.iGM(g=o.CRH())&&(p.navbar=g.first),o.iGM(g=o.CRH())&&(p.inkbar=g.first)}},inputs:{orientation:"orientation",activeIndex:"activeIndex",style:"style",styleClass:"styleClass",controlClose:"controlClose"},outputs:{onChange:"onChange",onClose:"onClose",activeIndexChange:"activeIndexChange"},ngContentSelectors:S,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(l,p){1&l&&(o.F$t(),o.TgZ(0,"div",0)(1,"ul",1,2),o.YNc(3,L,1,1,"ng-template",3),o._UZ(4,"li",4,5),o.qZA(),o.TgZ(6,"div",6),o.Hsn(7),o.qZA()()),2&l&&(o.Tol(p.styleClass),o.Q6J("ngClass","p-tabview p-component")("ngStyle",p.style),o.xp6(3),o.Q6J("ngForOf",p.tabs))},dependencies:[b.mk,b.sg,b.O5,b.tP,b.PC,f.u,A.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}),c})(),Q=(()=>{class c{}return c.\u0275fac=function(l){return new(l||c)},c.\u0275mod=o.oAB({type:c}),c.\u0275inj=o.cJS({imports:[b.ez,M.m8,f.z,A.T,M.m8]}),c})()}}]);
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.