1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[778],{3778:(rn,C,d)=>{d.r(C),d.d(C,{BannerDashboardModule:()=>tn});var u=d(177),G=d(4412),A=d(8141),g=d(7167),e=d(7705),h=d(1626),m=d(4559);let B=(()=>{class n{constructor(t,r){this.http=t,this.router=r,this.isAuthenticatedSubject=new G.t(this.hasToken()),this.isAuthenticated$=this.isAuthenticatedSubject.asObservable()}hasToken(){return!!localStorage.getItem("token")}login(t,r){return this.http.post(`${g.W5}/banner/login`,{email:t,password:r}).pipe((0,A.M)(i=>{localStorage.setItem("token",JSON.parse(i.value).token),this.isAuthenticatedSubject.next(!0)}))}logout(){localStorage.removeItem("token"),this.isAuthenticatedSubject.next(!1),this.router.navigate(["/banner-dashboard/login"])}static{this.\u0275fac=function(r){return new(r||n)(e.KVO(h.Qq),e.KVO(m.Ix))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}}return n})(),T=(()=>{class n{constructor(t){this.http=t}createBanner(t){return this.http.post(`${g.W5}/banner/create`,t)}updateBanner(t,r){return this.http.put(`${g.W5}/banner/${t}`,r)}deleteBanner(t){return this.http.delete(`${g.W5}/banner/${t}`)}getBanners(t){return this.http.get(`${g.W5}/banner/all?page=${t}`)}static{this.\u0275fac=function(r){return new(r||n)(e.KVO(h.Qq))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}}return n})(),M=(()=>{class n{intercept(t,r){const i=localStorage.getItem("token");if(i){const a=t.clone({setHeaders:{Authorization:`Bearer ${i}`}});return r.handle(a)}return r.handle(t)}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}}return n})();const L=function(){return{"inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600":!0}};let H=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["pxlscn-d-header"]],decls:19,vars:2,consts:[[1,"bg-navBg"],[1,"p-0","lg:p-0","md:w-[57.25rem]","md:mx-auto","lg:w-[77rem]","lg:mx-auto"],[1,"max-w-screen-xl","flex","flex-wrap","items-center","mx-auto","p-4","gap-4"],["href","/",1,"flex","items-center","space-x-3","rtl:space-x-reverse"],["src","assets/Pixelscan-logo-white.svg","width","192","height","50"],[1,"flex","md:order-2","space-x-3","md:space-x-0","rtl:space-x-reverse","items-center"],["data-collapse-toggle","navbar-cta","type","button","aria-controls","navbar-cta","aria-expanded","false",3,"ngClass"],[1,"sr-only"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 17 14",1,"w-5","h-5"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 1h15M1 7h15M1 13h15"],["id","navbar-cta",1,"items-start","hidden","w-full","md:flex","md:w-auto","md:order-1"],[1,"flex","flex-col","font-medium","p-4","md:p-0","mt-4","md:space-x-4","md:flex-row","md:mt-0"],["routerLinkActive","border-b border-white","routerLink","/banner-dashboard/d-home",1,"cursor-pointer","py-2","px-3"],["routerLinkActive","border-b border-white","routerLink","/banner-dashboard/d-fingerprint",1,"cursor-pointer","py-2","px-3"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"nav",1)(2,"div",2)(3,"a",3),e.nrm(4,"img",4),e.k0s(),e.j41(5,"div",5)(6,"button",6)(7,"span",7),e.EFF(8,"Open main menu"),e.k0s(),e.qSk(),e.j41(9,"svg",8),e.nrm(10,"path",9),e.k0s()()(),e.joV(),e.j41(11,"div",10)(12,"ul",11)(13,"li")(14,"a",12),e.EFF(15,"Home[Dashboard]"),e.k0s()(),e.j41(16,"li")(17,"a",13),e.EFF(18,"Fingerprint[Dashboard]"),e.k0s()()()()()()()),2&r&&(e.R7$(6),e.Y8G("ngClass",e.lJ4(1,L)))},dependencies:[u.YU,m.Wk,m.wQ]})}}return n})(),O=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["pxlscn-banner-dashboard"]],decls:6,vars:0,consts:[[1,"w-full","h-screen","overflow-hidden","mt-[-54px]","relative"],[1,"row"],[1,"pb-8"],[1,"row","flex-grow-1","h-[100%]"],[1,"text-white","main-content","h-[100%]"]
1],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"header",1),e.nrm(2,"pxlscn-d-header",2),e.k0s(),e.j41(3,"main",3)(4,"div",4),e.nrm(5,"router-outlet"),e.k0s()()())},dependencies:[m.n3,H],encapsulation:2})}}return n})();var f=d(6354),s=d(4960);const D=(0,s.VP)("[Banner] Load Banners",(0,s.xk)()),$=(0,s.VP)("[Banner] Load Banners Success",(0,s.xk)()),v=(0,s.VP)("[Banner] Add Banner",(0,s.xk)()),x=(0,s.VP)("[Banner] Update Banner",(0,s.xk)()),k=(0,s.VP)("[Banner] Delete Banner",(0,s.xk)()),R=(0,s.VP)("[Banner] Add Banner Success",(0,s.xk)()),N=(0,s.VP)("[Banner] Update Banner Success",(0,s.xk)()),V=(0,s.VP)("[Banner] Delete Banner Success",(0,s.xk)()),w=(0,s.VP)("[Banner] Banner Failure",(0,s.xk)()),P=(0,s.UX)("banner"),I=(0,s.Mz)(P,n=>n.banners);var U=d(4572),l=d(4341);let y=(()=>{class n{transform(t){return`${g.W5}/banner${t}`}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275pipe=e.EJ8({name:"url",type:n,pure:!0,standalone:!0})}}return n})();function q(n,o){if(1&n&&(e.j41(0,"div")(1,"div",53),e.nrm(2,"img",54),e.nI1(3,"url"),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.Y8G("src",t.bannerPreview.desktop?t.bannerPreview.desktop:e.bMT(3,1,null==t.editBanner?null:t.editBanner.url_desktop),e.B4B)}}function W(n,o){if(1&n&&(e.j41(0,"div")(1,"div",53),e.nrm(2,"img",54),e.nI1(3,"url"),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.Y8G("src",t.bannerPreview.mobile?t.bannerPreview.mobile:e.bMT(3,1,null==t.editBanner?null:t.editBanner.url_mobile),e.B4B)}}const S=function(n){return{"absolute top-0 right-0":n}};let J=(()=>{class n{constructor(t){this.fb=t,this.editBanner=null,this.close=new e.bkB,this.save=new e.bkB,this.edit=new e.bkB,this.banners={desktop:null,mobile:null},this.bannerPreview={desktop:null,mobile:null},this.isEditing=!1,this.bannerForm=this.fb.group({title:[""],status:[!1,l.k0.required],preview:[!1,l.k0.required],placement:["",l.k0.required],banner_url:[""],activate_date:["",l.k0.required],deactivate_date:["",l.k0.required],link_to_client:["",[l.k0.required,l.k0.pattern(/https?:\/\/.+/)]]})}ngOnChanges(){this.editBanner&&(this.isEditing=!0,this.bannerForm.patchValue({...this.editBanner}))}onSave(){if(this.bannerForm.valid){const t={...this.bannerForm.value,desktop:this.banners.desktop?this.banners.desktop:null,mobile:this.banners.mobile?this.banners.mobile:null};this.isEditing?this.edit.emit({_id:this.editBanner._id,...t}):this.save.emit(t)}}onClose(){this.close.emit()}onBannerDesktopSelected(t){const r=t.target.files?.[0];this.banners.desktop=r,this.readFileAsDataURL(r).then(i=>{this.bannerPreview.desktop=i})}onBannerMobileSelected(t){const r=t.target.files?.[0];this.banners.mobile=r,this.readFileAsDataURL(r).then(i=>{this.bannerPreview.mobile=i})}readFileAsDataURL(t){return new Promise((r,i)=>{const a=new FileReader;a.onload=()=>r(a.result),a.onerror=c=>i(c),a.readAsDataURL(t)})}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(l.ok))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["pxlscn-d-banner-modal"]],inputs:{editBanner:"editBanner"},outputs:{close:"close",save:"save",edit:"edit"},features:[e.OA$],decls:91,vars:15,consts:[[3,"formGroup","ngSubmit"],[1,"space-y-12"],[1,"border-b","border-gray-900/10","pb-12"],[1,"flex","justify-between"],[1,"text-base/7","font-semibold","text-gray-900"],[1,"flex"],[1,"flex","items-center","gap-2"],[1,"flex","items-center","gap-x-3"],["id","push-everything","type","radio","formControlName","status","name","status",1,"relative","size-4","appearance-none","rounded-full","border","border-gray-300","bg-white","before:absolute","before:inset-1","before:rounded-full","before:bg-white","not-checked:before:hidden","checked:border-indigo-600","checked:bg-indigo-600","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-indigo-600","disabled:border-gray-300","disabled:bg-gray-100","disabled:before:bg-gray-400","forced-colors:appearance-auto","forced-colors:before:hidden",3,"value"],["for","push-everything",1,"block","text-sm/6","font-medium","text-gray-900"],["id","push-email","type","radio","formControlName","status","name","status",1,"relative","size-4","appearance-none","rounded-full","border","border-gray-300","bg-white","before:absolute","before:inset-1","before:rounded-full","before:bg-white","not-checked:before:hidden","checked:border-indigo-600","checked:bg-indigo-600","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-indigo-600","disabled:border-gray-300","disabled:bg-gray-100","disabled:before:bg-gray-400","forced-colors:appearance-auto","forced-colors:before:hidden",3,"value"],["for","push-email",1,"block","text-sm/6","font-medium","text-gray-900"],[1,"flex","gap-3","border-l-2","border-l-gray-500","pl-4"],[1,"flex","h-6","shrink-0","items-center"],[1,"group","grid","size-4","grid-cols-1"],["id","comments","formControlName","preview","type","checkbox","name","comments","aria-describedby","comments-description",1,"col-start-1","row-start-1","appearance-none","rounded-sm","border","border-gray-300","bg-white","checked:border-indigo-600","checked:bg-indigo-600","indeterminate:border-indigo-600","indeterminate:bg-indigo-600","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-indigo-600","disabled:border-gray-300","disabled:bg-gray-100","disabled:checked:bg-gray-100","forced-colors:appearance-auto"],["viewBox","0 0 14 14","fill","none",1,"pointer-events-none","col-start-1","row-start-1","size-3.5","self-center","justify-self-center","stroke-white","group-has-disabled:stroke-gray-950/25"],["d","M3 8L6 11L11 3.5","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"opacity-0","group-has-checked:opacity-100"],["d","M3 7H11","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"opacity-0","group-has-indeterminate:opacity-100"],[1,"text-sm/6"],["for","comments",1,"font-medium","text-gray-900"],[1,"mt-4","grid","grid-cols-1","gap-x-6","gap-y-4","sm:grid-cols-6"],[1,"col-span-full"],["for","street-address",1,"block","text-sm/6","font-medium","text-gray-900"],[1,"mt-2"],["formControlName","title","placeholder","Title","id","street-address","type","text","name","title",1,"block","w-full","rounded-md","bg-white","px-3","py-1.5","text-base","text-gray-900","outline-1","-outline-offset-1","outline-gray-300","placeholder:text-gray-400","focus:outline-2","focus:-outline-offset-2","focus:outline-indigo-600","sm:text-sm/6"],[1,"sm:col-span-3"],["for","country",1,"block","text-sm/6","font-medium","text-gray-900"],[1,"mt-2","grid","grid-cols-1"],["formControlName","placement","id","country","name","country",1,"col-start-1","row-start-1","w-full","appearance-none","rounded-md","bg-white","py-1.5","pr-8","pl-3","text-base","text-gray-900","outline-1","-outline-offset-1","outline-gray-300","focus:outline-2","focus:-outline-offset-2","focus:outline-indigo-600","sm:text-sm/6"],[3,"value"],["for","last-name",1,"block","text-sm/6","font-medium","text-gray-900"],["formControlName","link_to_client","
1id","last-name","type","text","name","last-name",1,"block","w-full","rounded-md","bg-white","px-3","py-1.5","text-base","text-gray-900","outline-1","-outline-offset-1","outline-gray-300","placeholder:text-gray-400","focus:outline-2","focus:-outline-offset-2","focus:outline-indigo-600","sm:text-sm/6"],["for","activate",1,"block","text-sm/6","font-medium","text-gray-900"],[1,"mt-2","relative"],[1,"absolute","inset-y-0","end-3","flex","items-center","ps-3.5","pointer-events-none"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"w-4","h-4","text-gray-500","dark:text-gray-400"],["d","M20 4a2 2 0 0 0-2-2h-2V1a1 1 0 0 0-2 0v1h-3V1a1 1 0 0 0-2 0v1H6V1a1 1 0 0 0-2 0v1H2a2 2 0 0 0-2 2v2h20V4ZM0 18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8H0v10Zm5-8h10a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2Z"],["name","activate","formControlName","activate_date","id","default-datepicker","type","datetime-local","placeholder","Activate date",1,"bg-gray-50","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","dark:bg-gray-700","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:ring-blue-500","dark:focus:border-blue-500"],["for","deactivate",1,"block","text-sm/6","font-medium","text-gray-900"],["name","deactivate_date","formControlName","deactivate_date","id","default-datepicker2","type","datetime-local","placeholder","Deactivate date",1,"bg-gray-50","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","dark:bg-gray-700","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:ring-blue-500","dark:focus:border-blue-500"],["for","cover-photo",1,"block","text-sm/6","font-medium","text-gray-900"],[1,"mt-2","flex","justify-center","items-center","rounded-lg","border","border-dashed","border-gray-900/25","px-2","py-2"],[1,"text-center","relative"],[1,"flex","text-sm/6","text-gray-600",3,"ngClass"],["for","file-upload",1,"relative","cursor-pointer","rounded-md","bg-white","font-semibold","text-indigo-600","focus-within:ring-2","focus-within:ring-indigo-600","focus-within:ring-offset-2","focus-within:outline-hidden","hover:text-indigo-500"],["id","file-upload","type","file","name","file-upload","accept",".png, .jpg, .jpeg, .gif",1,"sr-only",3,"change"],[4,"ngIf"],["for","file-upload2",1,"relative","cursor-pointer","rounded-md","bg-white","font-semibold","text-indigo-600","focus-within:ring-2","focus-within:ring-indigo-600","focus-within:ring-offset-2","focus-within:outline-hidden","hover:text-indigo-500"],["id","file-upload2","type","file","name","file-upload2","accept",".png, .jpg, .jpeg, .gif",1,"sr-only",3,"change"],[1,"mt-6","flex","items-center","justify-end","gap-x-6"],["type","button",1,"text-sm/6","font-semibold","text-gray-900",3,"click"],["type","submit",1,"rounded-md","bg-indigo-600","px-3","py-2","text-sm","font-semibold","text-white","shadow-xs","hover:bg-indigo-500","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-indigo-600","disabled:cursor-not-allowed",3,"disabled"],[2,"display","flex","gap","8px","flex-wrap","wrap"],["crossorigin","anonymous","alt","preview",2,"max-width","100%","height","auto","border","1px solid #ccc",3,"src"]],template:function(r,i){1&r&&(e.j41(0,"form",0),e.bIt("ngSubmit",function(){return i.onSave()}),e.j41(1,"div",1)(2,"div",2)(3,"div",3)(4,"h2",4),e.EFF(5,"Banner Information"),e.k0s(),e.j41(6,"fieldset",5)(7,"div",6)(8,"div",7),e.nrm(9,"input",8),e.j41(10,"label",9),e.EFF(11,"Active"),e.k0s()(),e.j41(12,"div",7),e.nrm(13,"input",10),e.j41(14,"label",11),e.EFF(15,"Inactive"),e.k0s()(),e.j41(16,"div",12)(17,"div",13)(18,"div",14),e.nrm(19,"input",15),e.qSk(),e.j41(20,"svg",16),e.nrm(21,"path",17)(22,"path",18),e.k0s()()(),e.joV(),e.j41(23,"div",19)(24,"label",20),e.EFF(25,"Preview"),e.k0s()()()()()(),e.j41(26,"div",21)(27,"div",22)(28,"label",23),e.EFF(29,"Title[optional]"),e.k0s(),e.j41(30,"div",24),e.nrm(31,"input",25),e.k0s()(),e.j41(32,"div",26)(33,"label",27),e.EFF(34,"Placement"),e.k0s(),e.j41(35,"div",28)(36,"select",29)(37,"option",30),e.EFF(38,"Banner 1"),e.k0s(),e.j41(39,"option",30),e.EFF(40,"Banner 2"),e.k0s(),e.j41(41,"option",30),e.EFF(42,"Banner 3"),e.k0s()()()(),e.j41(43,"div",26)(44,"label",31),e.EFF(45,"Link to client"),e.k0s(),e.j41(46,"div",24),e.nrm(47,"input",32),e.k0s()(),e.j41(48,"div",26)(49,"label",33),e.EFF(50,"Activate Date"),e.k0s(),e.j41(51,"div",34)(52,"div",35),e.qSk(),e.j41(53,"svg",36),e.nrm(54,"path",37),e.k0s()(),e.joV(),e.nrm(55,"input",38),e.k0s()(),e.j41(56,"div",26)(57,"label",39),e.EFF(58,"Deactivate date"),e.k0s(),e.j41(59,"div",34)(60,"div",35),e.qSk(),e.j41(61,"svg",36),e.nrm(62,"path",37),e.k0s()(),e.joV(),e.nrm(63,"input",40),e.k0s()(),e.j41(64,"div",22)(65,"label",41),e.EFF(66,"Banner desktop [PNG, JPG, GIF]"),e.k0s(),e.j41(67,"div",42)(68,"div",43)(69,"div",44)(70,"label",45)(71,"span"),e.EFF(72,"Upload banner for desktop view"),e.k0s(),e.j41(73,"input",46),e.bIt("change",function(c){return i.onBannerDe
1sktopSelected(c)}),e.k0s()()(),e.DNE(74,q,4,3,"div",47),e.k0s()()(),e.j41(75,"div",22)(76,"label",41),e.EFF(77,"Banner mobile [PNG, JPG, GIF]"),e.k0s(),e.j41(78,"div",42)(79,"div",43)(80,"div",44)(81,"label",48)(82,"span"),e.EFF(83,"Upload banner for mobile view"),e.k0s(),e.j41(84,"input",49),e.bIt("change",function(c){return i.onBannerMobileSelected(c)}),e.k0s()()(),e.DNE(85,W,4,3,"div",47),e.k0s()()()()()(),e.j41(86,"div",50)(87,"button",51),e.bIt("click",function(){return i.onClose()}),e.EFF(88,"Cancel"),e.k0s(),e.j41(89,"button",52),e.EFF(90,"Save"),e.k0s()()()),2&r&&(e.Y8G("formGroup",i.bannerForm),e.R7$(9),e.Y8G("value",!0),e.R7$(4),e.Y8G("value",!1),e.R7$(24),e.Y8G("value","banner_1"),e.R7$(2),e.Y8G("value","banner_2"),e.R7$(2),e.Y8G("value","banner_3"),e.R7$(28),e.Y8G("ngClass",e.eq3(11,S,null==i.banners?null:i.banners.desktop)),e.R7$(5),e.Y8G("ngIf",(null==i.banners?null:i.banners.desktop)||(null==i.editBanner?null:i.editBanner.url_desktop)),e.R7$(6),e.Y8G("ngClass",e.eq3(13,S,null==i.banners?null:i.banners.mobile)),e.R7$(5),e.Y8G("ngIf",(null==i.banners?null:i.banners.mobile)||(null==i.editBanner?null:i.editBanner.url_mobile)),e.R7$(4),e.Y8G("disabled",!i.bannerForm.valid))},dependencies:[u.YU,u.bT,l.qT,l.xH,l.y7,l.me,l.Zm,l.wz,l.Fm,l.BC,l.cb,l.j4,l.JD,y]})}}return n})();function Q(n,o){1&n&&(e.j41(0,"a",11),e.EFF(1," Preview Home page "),e.k0s())}function z(n,o){1&n&&(e.j41(0,"a",12),e.EFF(1," Preview Fingerprint page "),e.k0s())}function K(n,o){if(1&n&&(e.j41(0,"div",24),e.nrm(1,"img",25),e.nI1(2,"url"),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(1),e.Y8G("src",e.bMT(2,1,null==t?null:t.url_desktop),e.B4B)}}function Z(n,o){1&n&&(e.j41(0,"span",26),e.EFF(1,"Active"),e.k0s())}function ee(n,o){1&n&&(e.j41(0,"span",27),e.EFF(1,"Inactive"),e.k0s())}function ne(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",14)(1,"h2",15),e.EFF(2),e.k0s(),e.j41(3,"div",16),e.DNE(4,K,3,3,"div",17),e.j41(5,"div",18),e.DNE(6,Z,2,0,"span",19),e.DNE(7,ee,2,0,"span",20),e.k0s(),e.j41(8,"div",21)(9,"button",22),e.bIt("click",function(){const a=e.eBV(t).$implicit,c=e.XpG(3);return c.openModal(),e.Njj(c.bannerForEdit=a)}),e.EFF(10,"Edit"),e.k0s(),e.j41(11,"button",23),e.bIt("click",function(){const a=e.eBV(t).$implicit,c=e.XpG(3);return e.Njj(c.deleteBanner(a._id))}),e.EFF(12,"Delete"),e.k0s()()()()}if(2&n){const t=o.$implicit;e.R7$(2),e.JRh(null==t?null:t.title),e.R7$(2),e.Y8G("ngIf",t.url_desktop),e.R7$(2),e.Y8G("ngIf",null==t?null:t.status),e.R7$(1),e.Y8G("ngIf",!(null!=t&&t.status))}}function te(n,o){if(1&n&&(e.qex(0),e.DNE(1,ne,13,4,"div",13),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(1),e.Y8G("ngForOf",t)}}function re(n,o){if(1&n&&(e.qex(0),e.DNE(1,te,2,1,"ng-container",8),e.bVm()),2&n){const t=o.ngIf;e.XpG();const r=e.sdS(13);e.R7$(1),e.Y8G("ngIf",t.length>0)("ngIfElse",r)}}function ie(n,o){1&n&&(e.j41(0,"p",28),e.EFF(1,"No items found."),e.k0s())}function oe(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",29)(1,"div",30)(2,"pxlscn-d-banner-modal",31),e.bIt("close",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeModal())})("edit",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.updateBanner(i))})("save",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.addNewBanner(i))}),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(2),e.Y8G("editBanner",t.bannerForEdit)}}let Y=(()=>{class n{constructor(t){this.store=t,this.bannerLocation=null,this.placemetSubject=new G.t(null),this.isModalOpen=!1,this.bannerForEdit=null}ngOnChanges(){this.bannerLocation&&this.placemetSubject.next(this.bannerLocation)}ngOnInit(){this.banners$=(0,U.z)([this.store.select(I),this.placemetSubject.asObservable()]).pipe((0,f.T)(([t,r])=>t.filter(i=>i.page===r.page&&i.placement===r.placement)))}addNewBanner(t){const r={...t,page:this.bannerLocation.page};this.store.dispatch(v({formData:this.objectToFormData(r)})),this.closeModal()}updateBanner(t){this.store.dispatch(x({banner:t,formData:this.objectToFormData({...t,page:this.bannerLocation.page})})),this.closeModal()}deleteBanner(t){this.store.dispatch(k({id:t}))}openModal(){this.isModalOpen=!0}closeModal(){this.isModalOpen=!1}objectToFormData(t,r=new FormData,i){for(const a in t){if(!t.hasOwnProperty(a))continue;const c=t[a],p=i?`${i}[${a}]`:a;null!=c&&(c instanceof File?r.append(p,c):Array.isArray(c)?c.forEac
1h((b,E)=>{b instanceof File?r.append(`${p}[${E}]`,b):"object"==typeof b?this.objectToFormData(b,r,`${p}[${E}]`):r.append(`${p}[${E}]`,b)}):"object"!=typeof c||c instanceof Date?r.append(p,c.toString()):this.objectToFormData(c,r,p))}return r}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(s.il))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["pxlscn-d-banner-list"]],inputs:{bannerLocation:"bannerLocation"},features:[e.OA$],decls:15,vars:7,consts:[[1,"min-h-screen","bg-gray-100","p-8","w-full","rounded","overflow-auto"],[1,"flex","items-center","justify-between","mb-6","w-full"],[1,"flex","gap-4"],[1,"text-2xl","text-black","font-semibold"],["class","bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded shadow","target","_blank","href","/",4,"ngIf"],["class","bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded shadow","target","_blank","href","/fingerprint-check",4,"ngIf"],[1,"bg-blue-600","hover:bg-blue-700","text-white","px-4","py-2","rounded","shadow",3,"click"],[1,"space-y-4","w-full","h-full"],[4,"ngIf","ngIfElse"],["noItems",""],["id","modal","class","fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center",4,"ngIf"],["target","_blank","href","/",1,"bg-blue-600","hover:bg-blue-700","text-white","px-4","py-2","rounded","shadow"],["target","_blank","href","/fingerprint-check",1,"bg-blue-600","hover:bg-blue-700","text-white","px-4","py-2","rounded","shadow"],["class","text-black flex flex-col gap-2",4,"ngFor","ngForOf"],[1,"text-black","flex","flex-col","gap-2"],[1,"text-black"],[1,"relative","min-h-[8rem]","bg-white","shadow","rounded","hover:ring-2","hover:ring-blue-400","group","w-full"],["class","relative block w-full h-full max-w-full max-h-full overflow-hidden ",4,"ngIf"],[1,"absolute","top-2","left-2","flex","space-x-2"],["class","bg-green-500 text-white px-3 py-1 text-sm rounded",4,"ngIf"],["class","bg-red-500 text-white px-3 py-1 text-sm rounded",4,"ngIf"],[1,"absolute","bottom-2","right-2","hidden","group-hover:flex","space-x-2"],[1,"bg-yellow-500","hover:bg-yellow-600","text-white","px-3","py-1","text-sm","rounded",3,"click"],[1,"bg-red-500","hover:bg-red-600","text-white","px-3","py-1","text-sm","rounded",3,"click"],[1,"relative","block","w-full","h-full","max-w-full","max-h-full","overflow-hidden"],["crossorigin","anonymous",1,"max-w-full","max-h-full","object-contain","rounded",3,"src"],[1,"bg-green-500","text-white","px-3","py-1","text-sm","rounded"],[1,"bg-red-500","text-white","px-3","py-1","text-sm","rounded"],[1,"text-center","text-black"],["id","modal",1,"fixed","inset-0","bg-black","bg-opacity-50","flex","items-center","justify-center"],[1,"bg-white","p-6","rounded","shadow-lg","w-full","h-[80%]","md:w-[50%]","overflow-y-auto"],[3,"editBanner","close","edit","save"]],template:function(r,i){if(1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),e.EFF(4,"Banners list"),e.k0s(),e.DNE(5,Q,2,0,"a",4),e.DNE(6,z,2,0,"a",5),e.k0s(),e.j41(7,"button",6),e.bIt("click",function(){return i.openModal(),i.bannerForEdit=null}),e.EFF(8," Add banner "),e.k0s()(),e.j41(9,"div",7),e.DNE(10,re,2,2,"ng-container",8),e.nI1(11,"async"),e.DNE(12,ie,2,0,"ng-template",null,9,e.C5r),e.k0s(),e.DNE(14,oe,3,1,"div",10),e.k0s()),2&r){const a=e.sdS(13);e.R7$(5),e.Y8G("ngIf","home"===i.bannerLocation.page),e.R7$(1),e.Y8G("ngIf","fingerprint"===i.bannerLocation.page),e.R7$(4),e.Y8G("ngIf",e.bMT(11,5,i.banners$))("ngIfElse",a),e.R7$(4),e.Y8G("ngIf",i.isModalOpen)}},dependencies:[u.Sq,u.bT,J,u.Jj,y]})}}return n})();const ae=["carousel"];function se(n,o){if(1&n&&(e.j41(0,"div",21),e.nrm(1,"img",22),e.nI1(2,"url"),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(1),e.Y8G("src",e.bMT(2,1,null==t?null:t.url_desktop),e.B4B)}}function le(n,o){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"section",17)(2,"div",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.change("banner_1"))}),e.j41(3,"div",19),e.DNE(4,se,3,3,"div",20),e.k0s()()(),e.bVm()}if(2&n){const t=o.$implicit;e.R7$(4),e.Y8G("ngIf",t.url_desktop)}}function ce(n,o){if(1&n&&(e.qex(0),e.DNE(1,le,5,1,"ng-container",16),e.bVm()),2&n){const t=e.XpG().ngIf,r=e.XpG();e.R7$(1),e.Y8G("ngForOf",r.filterActiveBanners(t,"banner_1"))}}function de(n,o){if(1&n&&(e.qex(0),e.DNE(1,ce,2,1,"ng-container",8),e.bVm()),2&n){const t=o.ngIf,r=e.XpG(),i=e.sdS(12);e.R7$(1),e.Y8G("ngIf",r.filterActiveBanners(t,"banner_1").length)("ngIfElse",i)}}function ue(n,o){if(1&n){const t=e.RV6();e.j41(0,"section",17)(1,"div",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.change("banner_1"))}),e.j41(2,"div",19)(3,"div",21)(4,"h1",4),e.EFF(5,"Banner 1"),e.k0s()()()()()}}function pe(n,o){if(1&n&&(e.j41(0,"div",21),e.nrm(1,"img",22),e.nI1(2,"url"),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(1),e.Y8G("src",e.bMT(2,1,null==t?null:t.url_desktop),e.B4B)}}function me(n,o){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"section",17)(2,"div",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.change("banner_2"))}),e.j41(3,"div",19),e.DNE(4,pe,3,3,"div",20),e.k0s()()(),e.bVm()}if(2&n){const t=o.$implicit;e.R7$(4),e.Y8G("ngIf",t.url_desktop)}}function fe(n,o){if(1&n&&(e.qex(0),e.DNE(1,me,5,1,"ng-container",16),e.bVm()),2&n){const t=e.XpG().ngIf,r=e.XpG();e.R7$(1),e.Y8G("ngForOf",r.filterActiveBanners(t,"banner_2"))}}function ge(n,o){if(1&n&&(e.qex(0),e.DNE(1,fe,2,1,"ng-container",8),e.bVm()),2&n){const t=o.ngIf,r=e.XpG(),i=e.sdS(27);e.R7$(1),e.Y8G("ngIf",r.filterActiveBanners(t,"banner_2").length)("ngIfElse",i)}}function _e(n,o){if(1&n){const t=e.RV6();e.j41(0,"section",17)(1,"div",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.change("banner_2"))}),e.j41(2,"div",19)(3,"div",21)(4,"h1",4),e.EFF(5,"Banner 2"),e.k0s()()()()()}}function be(n,o){if(1&n&&(e.j41(0,"div",21),e.nrm(1,"img",22),e.nI1(2,"url"),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(1),e.Y8G("src",e.bMT(2,1,null==t?null:t.url_desktop),e.B4B)}}function he(n,o){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"section",17)(2,"div",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.change("banner_3"))}),e.j41(3,"div",19),e.DNE(4,be,3,3,"div",20),e.k0s()()(),e.bVm()}if(2&n){const t=o.$implicit;e.R7$(4),e.Y8G("ngIf",t.url_desktop)}}function ve(n,o){if(1&n&&(e.qex(0),e.DNE(1,he,5,1,"ng-container",16),e.bVm()),2&n){const t=e.XpG().ngIf,r=e.XpG();e.R7$(1),e.Y8G("ngForOf",r.filterActiveBanners(t,"banner_3"))}}function xe(n,o){if(1&n&&(e.qex(0),e.DNE(1,ve,2,1,"ng-container",8),e.bVm()),2&n){const t=o.ngIf,r=e.XpG(),i=e.sdS(38);e.R7$(1),e.Y8G("ngIf",r.filterActiveBanners(t,"banner_3").length)("ngIfElse",i)}}function ke(n,o){if(1&n){const t=e.RV6();e.j41(0,"section",17)(1,"div",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.change("banner_3"))}),e.j41(2,"div",19)(3,"div",21)(4,"h1",4),e.EFF(5,"Banner 3"),e.k0s()()()()()}}function we(n,o){if(1&n&&(e.j41(0,"div",23),e.nrm(1,"pxlscn-d-banner-list",24),e.k0s()),2&n){const t=e.XpG();e.R7$(1),e.Y8G("bannerLocation",t.selectedBanner)}}function ye(n,o){1&n&&(e.j41(0,"p",25),e.EFF(1,"No places selected for Banner Placement"),e.k0s())}let Fe=(()=>{class n{change(t){this.selectedBanner={...this.selectedBanner,placement:t}}constructor(t,r){this.store=t,this.platformId=r,this.activeIndex=0,this.selectedBanner={page:"home",placement:null},this.store.dispatch(D({page:"home"}))}ngOnInit(){this.banners$=this.store.select(I).pipe((0,f.T)(t=>{const r=this.selectedBanner;return t.filter(i=>i.page===r.page)}))}ngAfterViewInit(){(0,u.UE)(this.platformId)&&this.carouselRef?.nativeElement&&this.carouselRef.nativeElement.addEventListener("scroll",()=>{const r=this.carouselRef.nativeElement.firstElementChild;Math.round(this.carouselRef.nativeElement.scrollLeft/(r?r.offsetWidth:0)),this.activeIndex=0})}scrollToSlide(t){this.activeIndex=t;const r=this.carouselRef.nativeElement.firstElementChild;this.carouselRef.nativeElement.scrollTo({left:t*(r?r.offsetWidth:0),behavior:"smooth"})}filterActiveBanners(t,r){return t.filter(i=>i.placement===r&&i.preview)}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(s.il),e.rXU(e.Agw))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["pxlscn-d-home"]],viewQuery:function(r,i){if(1&r&&e.GBs(ae,5),2&r){let a;e.mGM(a=e.lsd())&&(i.carouselRef=a.first)}},decls:43,vars:14,consts:[[1,"flex","h-[100%]","overflow-hidden","w-full","gap-4","px-4","pb-[3rem]"],[1,"flex","flex-col","gap-6","overflow-y-auto","w-full","max-w-[50%]","md:w-[57.25rem]","lg:w-[77rem]"],[1,"px-4","lg:p-0"],[1,"h-60","bg-gray-200","rounded","flex","justify-center","items-center"],[1,"text-4xl"],[1,"slider"],[1,"flex","items-center","overflow-x-auto","overflow-y-hidden","scrollbar-hide","snap-x","snap-mandatory","space-x-4","scroll-smooth"],["carousel",""],[4,"ngIf","ngIfElse"],["noItems",""],["noItems2",""],[1,"slider","pb-[4rem]"],["noItems3",""],[1,"w-1/2","h-[100%]","bg-blue-100","flex","justify-center","items-center"],["class","w-full",4,"ngIf","ngIfElse"],["bannerNotSelected",""],[4,"ngFor","ngForOf"],[1,"px-4","min-w-full","lg:p-0"],[1,"h-40","min-w-full","relative","bg-gray-200","rounded","flex","justify-center","items-center",3,"click"],[1,"mx-auto","relative"],["class","block min-w-full max-h-full overflow-hidden ",4,"ngIf"],[1,"block","min-w-full","max-h-full","overflow-hidden"],["crossorigin","anonymous",1,"min-w-full","max-h-full","object-contain","rounded",3,"src"],[1,"w-full"],[3,"bannerLocation"],[1,"text-center","text-black"]],template:function(r,i){if(1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"section",2)(3,"div",3)(4,"h1",4),e.EFF(5,"Hero Section"),e.k0s()()(),e.j41(6,"div",5)(7,"div",6,7),e.DNE(9,de,2,2,"ng-container",8),e.nI1(10,"async"),e.DNE(11,ue,6,0,"ng-template",null,9,e.C5r),e.k0s()(),e.j41(13,"section",2)(14,"div",3)(15,"h1",4),e.EFF(16,"Checkers list"),e.k0s()()(),e.j41(17,"section",2)(18,"div",3)(19,"h1",4),e.EFF(20,"Pixelscan blog"),e.k0s()()(),e.j41(21,"div",5)(22,"div",6,7),e.DNE(24,ge,2,2,"ng-container",8),e.nI1(25,"async"),e.DNE(26,_e,6,0,"ng-template",null,10,e.C5r),e.k0s()(),e.j41(28,"section",2)(29,"div",3)(30,"h1",4),e.EFF(31,"Partners and FAQ"),e.k0s()()(),e.j41(32,"div",11)(33,"div",6,7),e.DNE(35,xe,2,2,"ng-container",8),e.nI1(36,"async"),e.DNE(37,ke,6,0,"ng-template",null,12,e.C5r),e.k0s()()(),e.j41(39,"div",13),e.DNE(40,we,2,1,"div",14),e.DNE(41,ye,2,0,"ng-template",null,15,e.C5r),e.k0s()()),2&r){const a=e.sdS(12),c=e.sdS(38),p=e.sdS(42);e.R7$(9),e.Y8G("ngIf",e.bMT(10,8,i.banners$))("ngIfElse",a),e.R7$(15),e.Y8G("ngIf",e.bMT(25,10,i.banners$))("ngIfElse",a),e.R7$(11),e.Y8G("ngIf",e.bMT(36,12,i.banners$))("ngIfElse",c),e.R7$(5),e.Y8G("ngIf",null==i.selectedBanner||null==i.selectedBanner.placement?null:i.selectedBanner.placement.length)("ngIfElse",p)}},dependencies:[u.Sq,u.bT,Y,u.Jj,y]})}}return n})();function je(n,o){1&n&&(e.j41(0,"div",9),e.EFF(1," Email is required "),e.k0s())}function Be(n,o){1&n&&(e.j41(0,"div",9),e.EFF(1," Invalid email format "),e.k0s())}function De(n,o){if(1&n&&(e.j41(0,"div"),e.DNE(1,je,2,0,"div",7),e.DNE(2,Be,2,0,"div",7),e.k0s()),2&n){const t=e.XpG();e.R7$(1),e.Y8G("ngIf",null==t.loginForm.controls.email.errors?null:t.loginForm.controls.email.errors.required),e.R7$(1),e.Y8G("ngIf",null==t.loginForm.controls.email.errors?null:t.loginForm.controls.email.errors.email)}}function Ie(n,o){1&n&&(e.j41(0,"div",9),e.EFF(1," Password is required "),e.k0s())}let Ee=(()=>{class n{constructor(t,r,i){this.fb=t,this.authService=r,this.router=i}ngOnInit(){this.loginForm=this.fb.group({email:["",l.k0.required,l.k0.email],password:["",l.k0.required]})}
1onSubmit(){if(this.loginForm.invalid)return;const{email:t,password:r}=this.loginForm.value;this.authService.login(t,r).subscribe(i=>{this.router.navigate(["/banner-dashboard/d-home"])})}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(l.ok),e.rXU(B),e.rXU(m.Ix))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["pxlscn-banner-auth"]],decls:11,vars:4,consts:[[1,"flex","items-center","justify-center","min-h-screen","bg-black-300","font-raleway","text-gray-600","w-full","h-screen","overflow-hidden","mt-[-55px]","relative"],[1,"bg-white","max-w-sm","w-full","p-10","rounded","shadow-md",3,"formGroup","ngSubmit"],[1,"text-2xl","font-bold","text-center","mb-2"],[1,"text-center","mb-8"],["type","text","autocomplete","email","formControlName","email","placeholder","Email",1,"w-full","block","box-border","mb-2","px-3","py-3","text-base","rounded","border","border-gray-400","focus:outline-none","focus:border-red-500","transition-all","duration-200"],[4,"ngIf"],["type","password","autocomplete","current-password","formControlName","password","placeholder","Password",1,"w-full","block","box-border","mb-2","px-3","py-3","text-base","rounded","border","border-gray-400","focus:outline-none","focus:border-red-500","transition-all","duration-200"],["class","text-red-600 mb-2 text-sm",4,"ngIf"],["type","submit","value","Log In",1,"w-full","mt-4","mb-6","py-3","bg-red-400","text-white","font-bold","rounded","hover:bg-red-500","transition","duration-200","cursor-pointer","disabled:opacity-50","disabled:cursor-not-allowed",3,"disabled"],[1,"text-red-600","mb-2","text-sm"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"form",1),e.bIt("ngSubmit",function(){return i.onSubmit()}),e.j41(2,"h2",2),e.EFF(3,"Welcome to Banner dashboard!"),e.k0s(),e.j41(4,"p",3),e.EFF(5,"Please log in"),e.k0s(),e.nrm(6,"input",4),e.DNE(7,De,3,2,"div",5),e.nrm(8,"input",6),e.DNE(9,Ie,2,0,"div",7),e.nrm(10,"input",8),e.k0s()()),2&r&&(e.R7$(1),e.Y8G("formGroup",i.loginForm),e.R7$(6),e.Y8G("ngIf",i.loginForm.controls.email.invalid&&i.loginForm.controls.email.touched),e.R7$(2),e.Y8G("ngIf",i.loginForm.controls.password.invalid&&i.loginForm.controls.password.touched),e.R7$(1),e.Y8G("disabled",i.loginForm.invalid))},dependencies:[u.bT,l.qT,l.me,l.BC,l.cb,l.j4,l.JD]})}}return n})();const X=(n,o)=>{const t=(0,e.WQX)(B),r=(0,e.WQX)(m.Ix);return!(!t.isAuthenticatedSubject.value||void 0===t.isAuthenticatedSubject.value)||(r.navigate(["/banner-dashboard/login"]),!1)},Ce=["carousel"];function Ge(n,o){if(1&n&&(e.j41(0,"div",23),e.nrm(1,"img",24),e.nI1(2,"url"),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(1),e.Y8G("src",e.bMT(2,1,null==t?null:t.url_desktop),e.B4B)}}function Te(n,o){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"section",19)(2,"div",20),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.change("banner_1"))}),e.j41(3,"div",21),e.DNE(4,Ge,3,3,"div",22),e.k0s()()(),e.bVm()}if(2&n){const t=o.$implicit;e.R7$(4),e.Y8G("ngIf",t.url_desktop)}}function $e(n,o){if(1&n&&(e.qex(0),e.DNE(1,Te,5,1,"ng-container",18),e.bVm()),2&n){const t=e.XpG().ngIf,r=e.XpG();e.R7$(1),e.Y8G("ngForOf",r.filterActiveBanners(t,"banner_1"))}}function Re(n,o){if(1&n&&(e.qex(0),e.DNE(1,$e,2,1,"ng-container",5),e.bVm()),2&n){const t=o.ngIf,r=e.XpG(),i=e.sdS(8);e.R7$(1),e.Y8G("ngIf",r.filterActiveBanners(t,"banner_1").length)("ngIfElse",i)}}function Ne(n,o){if(1&n){const t=e.RV6();e.j41(0,"section",19)(1,"div",20),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.change("banner_1"))}),e.j41(2,"div",21)(3,"div",23)(4,"h1",9),e.EFF(5,"Banner 1"),e.k0s()()()()()}}function Ve(n,o){if(1&n&&(e.j41(0,"div",23),e.nrm(1,"img",24),e.nI1(2,"url"),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(1),e.Y8G("src",e.bMT(2,1,null==t?null:t.url_desktop),e.B4B)}}function Se(n,o){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"section",19)(2,"div",20),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.change("banner_2"))}),e.j41(3,"div",21),e.DNE(4,Ve,3,3,"div",22),e.k0s()()(),e.bVm()}if(2&n){const t=o.$implicit;e.R7$(4),e.Y8G("ngIf",t.url_desktop)}}function Ye(n,o){if(1&n&&(e.qex(0),e.DNE(1,Se,5,1,"ng-container",18),e.bVm()),2&n){const t=e.XpG().ngIf,r=e.XpG();e.R7$(1),e.Y8G("ngForOf",r.filterActiveBanners(t,"banner_2"))}}function Xe(n,o){if(1&n&&(e.qex(0),e.DNE(1,Ye,2,1,"ng-container",5),e.bVm()),2&n){const t=o.ngIf,r=e.XpG(),i=e.sdS(19);e.R7$(1),e.Y8G("ngIf",r.filterActiveBanners(t,"banner_2").length)("ngIfElse",i)}}function Ae(n,o){if(1&n){const t=e.RV6();e.j41(0,"section",19)(1,"div",20),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.change("banner_2"))}),e.j41(2,"div",21)(3,"div",23)(4,"h1",9),e.EFF(5,"Banner 2"),e.k0s()()()()()}}function Me(n,o){if(1&n&&(e.j41(0,"div",23),e.nrm(1,"img",24),e.nI1(2,"url"),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(1),e.Y8G("src",e.bMT(2,1,null==t?null:t.url_desktop),e.B4B)}}function Le(n,o){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"section",19)(2,"div",25),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.change("banner_3"))}),e.j41(3,"div",21),e.DNE(4,Me,3,3,"div",22),e.k0s()()(),e.bVm()}if(2&n){const t=o.$implicit;e.R7$(4),e.Y8G("ngIf",t.url_desktop)}}function He(n,o){if(1&n&&(e.qex(0),e.DNE(1,Le,5,1,"ng-container",18),e.bVm()),2&n){const t=e.XpG().ngIf,r=e.XpG();e.R7$(1),e.Y8G("ngForOf",r.filterActiveBanners(t,"banner_3"))}}function Oe(n,o){if(1&n&&(e.qex(0),e.DNE(1,He,2,1,"ng-container",5),e.bVm()),2&n){const t=o.ngIf,r=e.XpG(),i=e.sdS(26);e.R7$(1),e.Y8G("ngIf",r.filterActiveBanners(t,"banner_3").length)("ngIfElse",i)}}function Pe(n,o){if(1&n){const t=e.RV6();e.j41(0,"section",19)(1,"div",20),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.change("banner_3"))}),e.j41(2,"div",21)(3,"div",23)(4,"h1",9),e.EFF(5,"Banner 3"),e.k0s()()()()()}}function Ue(n,o){if(1&n&&(e.j41(0,"div",26),e.nrm(1,"pxlscn-d-banner-list",27),e.k0s()),2&n){const t=e.XpG();e.R7$(1),e.Y8G("bannerLocation",t.selectedBanner)}}function qe(n,o){1&n&&(e.j41(0,"p",28),e.EFF(1,"No places selected for Banner Placement"),e.k0s())}const We=[{path:"",component:O,canActivateChild:[X],canActivate:[X],children:[{path:"d-home",component:Fe},{path:"d-fingerprint",component:(()=>{class n{change(t){this.selectedBanner={...this.selectedBanner,placement:t}}constructor(t,r){this.store=t,this.platformId=r,this.activeIndex=0,this.selectedBanner={page:"fingerprint",placement:null},this.store.dispatch(D({page:"fingerprint"}))}ngOnInit(){this.banners$=this.store.select(I).pipe((0,f.T)(t=>{const r=this.selectedBanner;return t.filter(i=>i.page===r.page)}))}ngAfterViewInit(){(0,u.UE)(this.platformId)&&this.carouselRef?.nativeElement&&this.carouselRef.nativeElement.addEventListener("scroll",()=>{const r=this.carouselRef.nativeElement.firstElementChild;Math.round(this.carouselRef.nativeElement.scrollLeft/(r?r.offsetWidth:0)),this.activeIndex=0})}filterActiveBanners(t,r){return t.filter(i=>i.placement===r&&i.preview)}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(s.il),e.rXU(e.Agw))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["pxlscn-d-fingerprint"]],viewQuery:function(r,i){if(1&r&&e.GBs(Ce,5),2&r){let a;e.mGM(a=e.lsd())&&(i.carouselRef=a.first)}},decls:42,vars:14,consts:[[1,"flex","h-[100%]","overflow-hidden","w-full","gap-4","px-4","pb-[3rem]"],[1,"flex","flex-col","gap-6","overflow-y-auto","w-full","max-w-[50%]","md:w-[57.25rem]","lg:w-[77rem]"],[1,"slider"],[1,"flex","items-center","overflow-x-auto","overflow-y-hidden","scrollbar-hide","snap-x","snap-mandatory","space-x-4","scroll-smooth"],["carousel",""],[4,"ngIf","ngIfElse"],["noItems",""],[1,"px-4","lg:p-0"],[1,"h-60","bg-gray-200","rounded","flex","justify-center","items-center"],[1,"text-4xl"],["noItems2",""],[1,"h-80","flex","justify-center","gap-6","items-center"],[1,"w-[30%]","h-full","rounded","bg-gray-200","flex","items-center"],["noItems3",""],[1,"w-[70%]","h-full","rounded","bg-gray-200","flex","justify-center","gap-6","items-center"],[1,"w-1/2","h-[100%]","bg-blue-100","flex","justify-center","items-center"],["class","w-full",4,"ngIf","ngIfElse"],["bannerNotSelected",""],[4,"ngFor","ngForOf"],[1,"px-4","min-w-full","lg:p-0"],[1,"h-40","min-w-full","relative","bg-gray-200","rounded","flex","justify-center","items-center",3,"click"],[1,"mx-auto","relative"],["class","block min-w-full max-h-full overflow-hidden ",4,"ngIf"],[1,"block","min-w-full","max-h-full","overflow-hidden"],["crossorigin","anonymous",1,"min-w-full","max-h-full","object-contain","rounded",3,"src"],[1,"h-full","min-w-full","relative","bg-gray-200","rounded",3,"click"],[1,"w-full"],[3,"bannerLocation"],[1,"text-center","text-black"]],template:function(r,i){if(1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3,4),e.DNE(
15,Re,2,2,"ng-container",5),e.nI1(6,"async"),e.DNE(7,Ne,6,0,"ng-template",null,6,e.C5r),e.k0s()(),e.j41(9,"section",7)(10,"div",8)(11,"h1",9),e.EFF(12,"Consistency check"),e.k0s()()(),e.j41(13,"div",2)(14,"div",3,4),e.DNE(16,Xe,2,2,"ng-container",5),e.nI1(17,"async"),e.DNE(18,Ae,6,0,"ng-template",null,10,e.C5r),e.k0s()(),e.j41(20,"section",7)(21,"div",11)(22,"div",12),e.DNE(23,Oe,2,2,"ng-container",5),e.nI1(24,"async"),e.DNE(25,Pe,6,0,"ng-template",null,13,e.C5r),e.k0s(),e.j41(27,"div",14)(28,"h1",9),e.EFF(29,"Other blogs"),e.k0s()()()(),e.j41(30,"section",7)(31,"div",8)(32,"h1",9),e.EFF(33,"What website see about you"),e.k0s()()(),e.j41(34,"section",7)(35,"div",8)(36,"h1",9),e.EFF(37," FAQ"),e.k0s()()()(),e.j41(38,"div",15),e.DNE(39,Ue,2,1,"div",16),e.DNE(40,qe,2,0,"ng-template",null,17,e.C5r),e.k0s()()),2&r){const a=e.sdS(8),c=e.sdS(26),p=e.sdS(41);e.R7$(5),e.Y8G("ngIf",e.bMT(6,8,i.banners$))("ngIfElse",a),e.R7$(11),e.Y8G("ngIf",e.bMT(17,10,i.banners$))("ngIfElse",a),e.R7$(7),e.Y8G("ngIf",e.bMT(24,12,i.banners$))("ngIfElse",c),e.R7$(16),e.Y8G("ngIf",null==i.selectedBanner||null==i.selectedBanner.placement?null:i.selectedBanner.placement.length)("ngIfElse",p)}},dependencies:[u.Sq,u.bT,Y,u.Jj,y]})}}return n})()}]},{path:"login",component:Ee}];let Je=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[m.iI.forChild(We),m.iI]})}}return n})();var _=d(7339);const ze=(0,s.vy)({banners:[]},(0,s.on)($,(n,{banners:o})=>({...n,banners:o})),(0,s.on)(v,n=>n),(0,s.on)(R,(n,{banner:o})=>({...n,banners:[...n.banners,o]})),(0,s.on)(x,n=>n),(0,s.on)(N,(n,{banner:o})=>({...n,banners:n.banners.map(t=>t._id===o._id?o:t)})),(0,s.on)(k,n=>n),(0,s.on)(V,(n,{id:o})=>({...n,banners:n.banners.filter(t=>t._id!==o)})));var Ke=d(5558),F=d(9437),j=d(7673),Ze=d(274),en=d(983);let nn=(()=>{class n{constructor(t,r){this.actions$=t,this.bannerService=r,this.toBool=i=>!0===i||"true"===i||1===i||"1"===i,this.toCorrectType=i=>{const a=JSON.parse(i);return{...a,status:this.toBool(a.status),preview:this.toBool(a.preview)}},this.loadBanners$=(0,_.EH)(()=>this.actions$.pipe((0,_.gp)(D),(0,Ke.n)(({page:i})=>this.bannerService.getBanners(i).pipe((0,f.T)(a=>{const c=JSON.parse(a.value).map(p=>({...p,status:this.toBool(p.status),preview:this.toBool(p.preview)}));return $({banners:c})}),(0,F.W)(a=>(0,j.of)(w({error:a}))))))),this.persistBanners$=(0,_.EH)(()=>this.actions$.pipe((0,_.gp)(v,x,k),(0,Ze.H)(i=>i.type===v.type?this.bannerService.createBanner(i.formData).pipe((0,f.T)(a=>R({banner:this.toCorrectType(a.value)})),(0,F.W)(a=>(0,j.of)(w({error:a})))):i.type===x.type?this.bannerService.updateBanner(i.banner._id,i.formData).pipe((0,f.T)(a=>N({banner:this.toCorrectType(a.value)})),(0,F.W)(a=>(0,j.of)(w({error:a})))):i.type===k.type?this.bannerService.deleteBanner(i.id).pipe((0,f.T)(()=>V({id:i.id})),(0,F.W)(a=>(0,j.of)(w({error:a})))):en.w)))}static{this.\u0275fac=function(r){return new(r||n)(e.KVO(_.En),e.KVO(T))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}}return n})(),tn=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({providers:[T,B,{provide:h.a7,useClass:M,multi:!0}],imports:[u.MD,l.YN,h.q1,l.X1,Je,_.Vm.forFeature([nn]),s.md.forFeature("banner",ze)]})}}return n})()}}]);
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.