1"use strict";(self.webpackChunkmultiutility=self.webpackChunkmultiutility||[]).push([[5774],{65774(gi,B,r){r.d(B,{HomePrivateComponent:()=>mi});var _=r(73308),p=r(87829),w=r(37569),f=r(59835),P=r(46347),L=r(89990),Y=r(73793),z=r(20756),X=r(48240),A=r(72831),H=r(93527),V=r(18361),U=r(41466),q=r(26685),G=r(33837),W=r(99798),K=r(28806),Z=r(21566),C=r(93327),Q=r(61641),S=r(12262),R=r(7134),E=r(32370),J=r(40965),ee=r.n(J),te=(r(65792),r(80660)),e=r(54303),u=r(80656),k=r(18635);const F=(i,o,t)=>[i,o,t],T=i=>({variant:"sc-badge",title:i,bgFull:!0}),$=i=>[i],ie=i=>({title:i,variant:"sc-badge-b",showIcon:!0});function ne(i,o){if(1&i&&e.nrm(0,"lib-badge",15),2&i){const t=e.XpG(3);e.Y8G("options",e.eq3(1,T,null==t.blogData.mainTag||null==t.blogData.mainTag[0]||null==t.blogData.mainTag[0].fields||null==t.blogData.mainTag[0].fields.title?null:t.blogData.mainTag[0].fields.title.value))}}function se(i,o){if(1&i){const t=e.RV6();e.j41(0,"div",11),e.DNE(1,ne,1,3,"lib-badge",12),e.j41(2,"a",13),e.bIt("click",function(){u.eBV(t);const s=e.XpG(2);return u.Njj(s.handleClick(s.blogData.url))}),e.nrm(3,"img",14),e.k0s()()}if(2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.blogData.mainTag&&t.blogData.mainTag.length>0),e.R7$(2),e.Y8G("src",t.blogData.image.src,e.B4B)("alt",t.blogData.image.alt||"Blog image")}}function oe(i,o){if(1&i){const t=e.RV6();e.j41(0,"div",2),e.DNE(1,se,4,3,"div",3),e.j41(2,"div",4)(3,"div",5)(4,"a",6),e.bIt("click",function(){u.eBV(t);const s=e.XpG();return u.Njj(s.handleClick(s.blogData.url))}),e.j41(5,"h3",7),e.EFF(6),e.k0s()(),e.j41(7,"p",8),e.EFF(8),e.k0s()(),e.j41(9,"div",9)(10,"span",10),e.EFF(11),e.k0s()()()()}if(2&i){const t=e.XpG();e.Y8G("ngClass",e.sMw(7,F,t.styleClass,t.layoutClass,t.isCarousel?t.carouselItemsCount>1?"w-[330px] sm:w-[380px]":"w-full sm:w-[380px]":"w-full")),e.R7$(),e.Y8G("ngIf","noMedia"!==t.variant&&t.blogData.image),e.R7$(4),e.Y8G("ngClass",null==t.sizeClasses?null:t.sizeClasses.titleTextSize),e.R7$(),e.SpI(" ",t.blogData.title," "),e.R7$(),e.Y8G("ngClass",null==t.sizeClasses?null:t.sizeClasses.descriptionTextSize),e.R7$(),e.SpI(" ",t.blogData.introText," "),e.R7$(3),e.SpI(" ",t.formatDateItalian(t.blogData.date||"")," ")}}function ae(i,o){if(1&i&&e.nrm(0,"lib-badge",26),2&i){const t=e.XpG(2);e.Y8G("options",e.eq3(1,T,null==t.blogData.mainTag||null==t.blogData.mainTag[0]||null==t.blogData.mainTag[0].fields||null==t.blogData.mainTag[0].fields.title?null:t.blogData.mainTag[0].fields.title.value))}}function re(i,o){if(1&i&&(e.j41(0,"span",27),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.blogData.municipality.displayName," ")}}function le(i,o){if(1&i&&(e.j41(0,"div"),e.nrm(1,"lib-badge",30),e.k0s()),2&i){const t=o.$implicit;e.R7$(),e.Y8G("options",e.eq3(1,ie,t.displayName))}}function ce(i,o){if(1&i&&(e.j41(0,"div",28),e.DNE(1,le,2,3,"div",29),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",t.blogData.tags)}}function ue(i,o){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.SpI(" - ",t.blogData.readingTime)}}function pe(i,o){if(1&i&&e.nrm(0,"lib-badge",34),2&i){const t=e.XpG(3);e.Y8G("options",e.eq3(1,T,null==t.blogData.mainTag||null==t.blogData.mainTag[0]||null==t.blogData.mainTag[0].fields||null==t.blogData.mainTag[0].fields.title?null:t.blogData.mainTag[0].fields.title.value))}}function de(i,o){if(1&i){const t=e.RV6();e.j41(0,"div",31),e.DNE(1,pe,1,3,"lib-badge",32),e.j41(2,"a",13),e.bIt("click",function(){u.eBV(t);const s=e.XpG(2);return u.Njj(s.handleClick(s.blogData.url))}),e.nrm(3,"img",33),e.k0s()()}if(2&i){const t=e.XpG(2);e.Y8G("ngClass",e.eq3(4,$,t.widthLayoutClass)),e.R7$(),e.Y8G("ngIf",t.blogData.mainTag&&t.blogData.mainTag.length>0),e.R7$(2),e.Y8G("src",t.blogData.image.src,e.B4B)("alt",t.blogData.image.alt||"Blog image")}}function me(i,o){if(1&i){const t=e.RV6();e.j41(0,"div",16)(1,"div",17),e.DNE(2,ae,1,3,"lib-badge",18)(3,re,2,1,"span",19),e.j41(4,"div",20)(5,"a",6),e.bIt("click",function(){u.eBV(t);const s=e.XpG();return u.Njj(s.handleClick(s.blogData.url))}),e.j41(6,"h2",21),e.EFF(7),e.k0s()(),e.j41(8,"h5",22),e.EFF(9),e.k0s()(),e.DNE(10,ce,2,1,"div",23),e.j41(11,"span",10),e.EFF(12),e.DNE(13,ue,2,1,"span",24),e.k0s()(),e.DNE(14,de,4,6,"div",25),e.k0s()}if(2&i){const t=e.XpG();e.Y8G("ngClass",e.sMw(12,F,t.styleClass,t.layoutClass,t.isCarousel?t.carouselItemsCount>1?"w-[330px] sm:w-[380px]":"w-full sm:w-[380px]":"w-full")),e.R7$(),e.Y8G("ngClass",e.eq3(16,$,t.widthLayoutClass)),e.R7$(),e.Y8G("ngIf",t.blogData.mainTag&&t.blogData.mainTag.length>0),e.R7$(),e.Y8G("ngIf",null==t.blogData.municipality?null:t.blogData.municipality.displayName),e.R7$(3),e.Y8G("ngClass",null==t.sizeClasses?null:t.sizeClasses.titleTextSize),e.R7$(),e.SpI(" ",t.blogData.title," "),e.R7$(),e.Y8G("ngClass",null==t.sizeClasses?null:t.sizeClasses.descriptionTextSize),e.R7$(),e.SpI(" ",t.blogData.introText," "),e.R7$(),e.Y8G("ngIf",t.blogData.tags&&t.blogData.tags.length>0),e.R7$(2),e.SpI(" ",t.formatDateItalian(t.blogData.date||"")," "),e.R7$(),e.Y8G("ngIf",t.blogData.readingTime),e.R7$(),e.Y8G("ngIf","noMedia"!==t.variant&&t.blogData.image)}}let ge=(()=>{class i{router;blogData;variant="withMedia";size="medium";isHorizontal=!1;isCarousel=!1;carouselItemsCount=1;styleClass="";layoutClass="";constructor(t){this.router=t}sizeClasses={titleTextSize:"text-2xl",descriptionTextSize:"text-base"};ngOnInit(){this.sizeClasses=this._getSizeClasses(this.size,this.isHorizontal)}formatDateItalian(t){const n=new Date(t||new Date);return ee()(n).locale("it").format("DD MMM YYYY").toUpperCase()}handleClick(t){t&&this.router.navigateByUrl(t)}_getSizeClasses(t,n){const s=n?"":"line-clamp-2",a={extraSmall:{titleTextSize:`text-xl ${s}`.trim(),descriptionTextSize:`text-sm ${s}`.trim()},small:{titleTextSize:`text-xl ${s}`.trim(),descriptionTextSize:`text-sm ${s}`.trim()},medium:{titleTextSize:`text-2xl ${s}`.trim(),descriptionTextSize:`text-base ${s}`.trim()},large:{titleTextSize:`text-[32px] leading-tight ${s}`.trim(),descriptionTextSize:`text-xl ${s}`.trim()},extraLarge:{titleTextSize:`text-[40px] ${s}`.trim(),descriptionTextSize:`text-lg ${s}`.trim()}};return a[t]||a.medium||{titleTextSize:"text-2xl",descriptionTextSize:"text-base"}}static \u0275fac=function(n){return new(n||i)(e.rXU(k.Ix))};static \u0275cmp=e.VBU({type:i,selectors:[["lib-post-blogs"]],inputs:{blogData:"blogData",variant:"variant",size:"size",isHorizontal:"isHorizontal",isCarousel:"isCarousel",carouselItemsCount:"carouselItemsCount",styleClass:"styleClass",layoutClass:"layoutClass"},decls:2,vars:2,consts:[["class","post-wrapper flex flex-col gap-4 h-full",3,"ngClass",4,"ngIf"],["class","post-wrapper flex flex-col-reverse gap-6 items-center",3,"ngClass",4,"ngIf"],[1,"post-wrapper","flex","flex-col","gap-4","h-full",3,"ngClass"],["class","relative w-full lg:mb-6 mb-4",4,"ngIf"],[1,"post-content","flex","flex-col","lg:gap-6","gap-4","justify-between","h-full","w-full"],[1,"flex","flex-col","gap-2","flex-1"],[1,"curs
1or-pointer",3,"click"],[1,"text-dark-900","font-semibold","leading-8",3,"ngClass"],[2,"max-width","100%",3,"ngClass"],[1,"flex","flex-col","gap-4"],[1,"text-light-500","uppercase","text-[12px]","font-semibold"],[1,"relative","w-full","lg:mb-6","mb-4"],["class","align-top-left-corner absolute m-4",3,"options",4,"ngIf"],[1,"cursor-pointer","block",3,"click"],[1,"rounded-2xl","img-radius","object-cover","object-center","w-full","h-72","aspect-2/1",3,"src","alt"],[1,"align-top-left-corner","absolute","m-4",3,"options"],[1,"post-wrapper","flex","flex-col-reverse","gap-6","items-center",3,"ngClass"],[1,"post-content","flex","flex-col","gap-4","lg:gap-8","w-full",3,"ngClass"],["class","align-top-left-corner hidden lg:block",3,"options",4,"ngIf"],["class","content-label pb-2 block font-semibold text-sm text-primary-1000 uppercase",4,"ngIf"],[1,"flex","flex-col","gap-2"],[1,"text-dark-900","font-semibold",3,"ngClass"],[1,"text-dark-700",2,"max-width","100%",3,"ngClass"],["class","flex flex-row flex-wrap gap-2",4,"ngIf"],[4,"ngIf"],["class","relative w-full",3,"ngClass",4,"ngIf"],[1,"align-top-left-corner","hidden","lg:block",3,"options"],[1,"content-label","pb-2","block","font-semibold","text-sm","text-primary-1000","uppercase"],[1,"flex","flex-row","flex-wrap","gap-2"],[4,"ngFor","ngForOf"],[3,"options"],[1,"relative","w-full",3,"ngClass"],["class","align-top-left-corner absolute lg:hidden m-4",3,"options",4,"ngIf"],[1,"rounded-2xl","img-radius","object-cover","object-center","w-full","min-h-72","max-h-96","aspect-2/1",3,"src","alt"],[1,"align-top-left-corner","absolute","lg:hidden","m-4",3,"options"]],template:function(n,s){1&n&&e.DNE(0,oe,12,11,"div",0)(1,me,15,18,"div",1),2&n&&(e.Y8G("ngIf",s.sizeClasses&&!s.isHorizontal),e.R7$(),e.Y8G("ngIf",s.sizeClasses&&s.isHorizontal))},dependencies:[p.MD,p.YU,p.Sq,p.bT,f.iu,te.n],encapsulation:2})}return i})();var fe=r(54823),he=r(59419),be=r(94934);const ve=()=>({label:"Vedi tutti",variant:"secondary",icon:"assets/imgs/arrow-right.svg",customClasses:"my-4"}),_e=()=>({label:"Riprova",variant:"primary"});function Ce(i,o){1&i&&(e.j41(0,"div",10),e.nrm(1,"div",11),e.k0s())}function xe(i,o){if(1&i){const t=e.RV6();e.j41(0,"div",12)(1,"p",13),e.EFF(2),e.k0s(),e.j41(3,"lib-button",9),e.bIt("click",function(){u.eBV(t);const s=e.XpG(2);return u.Njj(s.loadBlogPosts())}),e.k0s()()}if(2&i){const t=e.XpG(2);e.R7$(2),e.JRh(t.error),e.R7$(),e.Y8G("options",e.lJ4(2,_e))}}function ye(i,o){if(1&i&&(e.j41(0,"lib-carousel-slide",16),e.nrm(1,"lib-post-blogs",17),e.k0s()),2&i){const t=o.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("blogData",t)("variant","withMedia")("size","medium")("isCarousel",!0)("carouselItemsCount",n.blogPosts.length)}}function Se(i,o){if(1&i&&(e.qex(0),e.j41(1,"lib-carousel",14),e.DNE(2,ye,2,5,"lib-carousel-slide",15),e.k0s(),e.bVm()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("options",t.carouselOptions),e.R7$(),e.Y8G("ngForOf",t.blogPosts)("ngForTrackBy",t.trackByUrl)}}function ke(i,o){if(1&i&&(e.qex(0),e.nrm(1,"lib-post-blogs",17),e.bVm()),2&i){const t=o.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("blogData",t)("variant","withMedia")("size","medium")("isCarousel",!0)("carouselItemsCount",n.blogPosts.length)}}function Te(i,o){if(1&i&&e.DNE(0,ke,2,5,"ng-container",18),2&i){const t=e.XpG(2);e.Y8G("ngForOf",t.blogPosts)("ngForTrackBy",t.trackByUrl)}}function De(i,o){if(1&i){const t=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"div",4),e.DNE(3,Ce,2,0,"div",5)(4,xe,4,3,"div",6),e.j41(5,"h3",7),e.EFF(6,"Il nostro blog"),e.k0s(),e.DNE(7,Se,3,3,"ng-container",8)(8,Te,1,2,"ng-template",null,0,e.C5r),e.j41(10,"lib-button",9),e.bIt("click",function(){u.eBV(t);const s=e.XpG();return u.Njj(s.goToBlog())}),e.k0s()()()()}if(2&i){const t=e.sdS(9),n=e.XpG();e.R7$(3),e.Y8G("ngIf",n.loading),e.R7$(),e.Y8G("ngIf",n.error&&!n.loading),e.R7$(3),e.Y8G("ngIf",n.blogPosts.length>1)("ngIfElse",t),e.R7$(3),e.Y8G("options",e.lJ4(5,ve))}}const Ie=he.J1` 2 query BlogSearchQuery($path: String!, $language: String!, $templateId: String!, $first: Int!, $after: String!) { 3 pageOne: search( 4 where: { 5 AND: [ 6 { name: "_path", value: $path, operator: CONTAINS }, 7 { name: "_language", value: $language, operator: EQ }, 8 { name: "_templates", value: $templateId, operator: CONTAINS } 9 ] 10 }, 11 first: $first, 12 after: $after, 13 orderBy: { name: "date", direction: DESC } 14 ) { 15 total 16 pageInfo { 17 endCursor 18 hasNext 19 } 20 results { 21 template { name } 22 language { name } 23 displayName 24 url { path } 25 ... on BlogPage { 26 category { jsonValue } 27 mainTag { jsonValue } 28 tags { jsonValue } 29 title { value } 30 introText { value } 31 image { jsonValue, alt } 32 date { value } 33 readingTime { value } 34 } 35 } 36 } 37 } 38`;let we=(()=>{class i{router;graphqlService;maxPosts=6;isHome=!1;get carouselOptions(){const t=this.blogPosts.length>1;return{autoWidth:!0,gap:"16px",pagination:!1,arrows:!0,hasGradientRight:t,speed:600,padding:{right:t?"10%":"0%"},breakpoints:{640:{gap:"8px"}}}}blogPosts=[];loading=!1;error=null;PAGE_SIZE=6;PATH_ID="F07B9516-CC62-407E-94C6-DB69AA2AAE08";TEMPLATE_ID="DC2657C23A6B43919DC3A90149960B0F";LANGUAGE="it-IT";constructor(t,n){this.router=t,this.graphqlService=n}ngOnInit(){var t=this;return(0,_.A)(function*(){t.loadBlogPosts()})()}loadBlogPosts(){var t=this;return(0,_.A)(function*(){t.loading=!0,t.error=null;try{const n=t.graphqlService.query({query:Ie,variables:{path:t.PATH_ID,language:t.LANGUAGE,templateId:t.TEMPLATE_ID,first:t.maxPosts,after:""}}),s=yield(0,be.s)(n,{defaultValue:null});t.blogPosts=s?.data?.pageOne?.results?.length?s.data.pageOne.results.map(l=>t.mapBlogToBlogPostData(l)):[]}catch(n){console.error("Errore GraphQL:",n),t.error="Errore nel caricamento dei blog"}finally{t.loading=!1}})()}mapBlogToBlogPostData(t){const n=t.date?.value?.includes("-")&&t.date?.value?.includes("T")?t.date.value:t.date?.value.replace(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})Z$/,"$1-$2-$3T$4:$5:$6Z");return{title:t.title?.value||"",introText:t.introText?.value||"",image:{src:t.image?.jsonValue?.value?.src,alt:t.image?.alt||t.title?.value,width:t.image?.jsonValue?.value?.width,height:t.image?.jsonValue?.value?.height},date:n,url:t.url?.path||"",mainTag:t.mainTag?.jsonValue&&t.mainTag.jsonValue.length>0?[{fields:{title:{value:t.mainTag.jsonValue[0]?.fields?.title?.value||t.mainTag.jsonValue[0]?.displayName||""}}}]:[],tags:t.tags?.jsonValue?.map(s=>({displayName:s.displayName}))||[],municipality:t.category?.jsonValue?{displayName:t.category.jsonValue.fields?.title?.value||t.category.jsonValue.displayName}:void 0,readingTime:t.readingTime?.value||""}}trackByUrl(t,n){return n.url||t.toString()}goToBlog(){this.router.navigateByUrl("/blog")}static \u0275fac=function(n){return new(n||i)(e.rXU(k.Ix),e.rXU(fe.z))};static \u0275cmp=e.VBU({type:i,selectors:[["lib-blogs-private-area"]],inputs:{maxPosts:"maxPosts",isHome:"isHome"},decls:1,vars:1,consts:[["singleBlogPost",""],["class","bg-light-70",4,"ngIf"],[1,"bg-light-70"],[1,"lg:pb-8","pb-6","lg:pt-[72px]","pt-8","container","mx-auto","px-6"],[1,"blogs-private-area-container"],["class","flex justify-center py-8",4,"ngIf"],["class","text-center py-8",4,"ngIf"],[1,"lg:text-2xl","text-xl","font-semibold","text-dark-900","mb-8"],[4,"ngIf","ngIfElse"],[3,"click","options"],[1,"flex","justify-center","py-8"],[1,"animate-spin","rounded-full","h-8","w-8","border-b-2","border-primary-1000"],[1,"text-center","py-8"],[1,"text-red-600"],[3,"options"],["class","h-auto",4,"ngFor","ngForOf","ngForTrackBy"],[1,"h-auto"],[3,"blogData","variant","size","isCarousel","carouselItemsCount"],[4,"ngFor","ngForOf","ngForTrackBy"]],template:function(n,s){1&n&&e.DNE(0,De,11,6,"div",1),2&n&&e.Y8G("ngIf",!s.loading&&!s.error&&s.blogPosts.length>0)},dependencies:[p.MD,p.Sq,p.bT,f.iu,S.Q,R.T,E.q,ge],encapsulation:2})}return i})();var Pe=r(48744),Ae=r(77367),Ge=r(74007),Re=r(14474),Ee=r(3396),Fe=r(340),$e=r(82068),Oe=r(95028),je=r(7212),D=r(20850);const Ne=["*"];function Me(i,o){if(1&i&&(e.j41(0,"h3",3),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.label," ")}}function Be(i,o){if(1&i&&(e.j41(0,"section",1),e.DNE(1,Me,2,1,"h3",2),e.SdG(2),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.shouldShowDesktopSubtitle())}}let O=(()=>{class i{parent;key;label;visible=!0;isDesktop=D.Gj;constructor(t){this.parent=t}shouldRender(){return!!this.visible&&(!this.parent||this.isDesktop()&&this.parent.showAllDesktop||this.parent.activeSectionKey===this.key)}shouldShowDesktopSubtitle(){return!(!this.parent||!this.isDesktop())&&this.parent.showAllDesktop&&this.parent.shouldShowSectionSubtitles}static \u0275fac=function(n){return new(n||i)(e.rXU(j,9))};static \u0275cmp=e.VBU({type:i,selectors:[["lib-tab-group-section"]],inputs:{key:"key",label:"label",visible:"visible"},ngContentSelectors:Ne,decls:1,vars:1,consts:[["class","min-w-0",4,"ngIf"],[1,"min-w-0"],["class","mb-4 hidden text-[20px] leading-7 font-semibold text-dark-900 lg:block",4,"ngIf"],[1,"mb-4","hidden","text-[20px]","leading-7","font-semibold","text-dark-900","lg:block"]],template:function(n,s){1&n&&(e.NAR(),e.DNE(0,Be,3,1,"section",0)),2&n&&e.Y8G("ngIf",s.shouldRender())},dependencies:[p.MD,p.bT],encapsulation:2})}return i})();const Le=["*"];function Ye(i,o){if(1&i){const t=e.RV6();e.j41(0,"button",5),e.bIt("click",function(){const s=u.eBV(t).$implicit,a=e.XpG(2);return u.Njj(a.setActiveSection(s.key))}),e.EFF(1),e.k0s()}if(2&i){const t=o.$implicit,n=e.XpG(2);e.Y8G("ngClass",n.activeSectionKey===t.key?"bg-primary-1000 text-white":"bg-primary-100 text-primary-1000"),e.R7$(),e.SpI(" ",t.label," ")}}function ze(i,o){if(1&i&&(e.j41(0,"div",3),e.DNE(1,Ye,2,2,"button",4),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.visibleSections)}}let j=(()=>{class i{tabsCount;showAllDesktop=!1;showTabs=!0;showSectionSubtitles=!0;sections;activeSectionKey="";destroyRef=(0,u.WQX)(u.abz);get visibleSections(){const n=(this.sections?.toArray()??[]).filter(s=>s.visible);return!this.tabsCount||this.tabsCount<1?n:n.slice(0,this.tabsCount)}get activeSection(){return this.visibleSections.find(t=>t.key===this.activeSectionKey)??this.visibleSections[0]}get shouldShowTabs(){return this.showTabs&&this.visibleSections.length>1}get shouldShowSectionSubtitles(){return this.showSectionSubtitles&&this.visibleSections.length>1}get desktopColumnsClass(){return this.visibleSections.length>1?"lg:grid-cols-2":"lg:grid-cols-1"}ngAfterContentInit(){this.ensureActiveSection(),this.sections.changes.pipe((0,je.pQ)(this.destroyRef)).subscribe(()=>this.ensureActiveSection())}setActiveSection(t){this.activeSectionKey=t}ensureActiveSection(){this.visibleSections.some(n=>n.key===this.activeSectionKey)||(this.activeSectionKey=this.visibleSections[0]?.key??"")}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=e.VBU({type:i,selectors:[["lib-tab-group-new"]],contentQueries:function(n,s,a){if(1&n&&e.wni(a,O,4),2&n){let l;e.mGM(l=e.lsd())&&(s.sections=l)}},inputs:{tabsCount:"tabsCount",showAllDesktop:"showAllDesktop",showTabs:"showTabs",showSectionSubtitles:"showSectionSubtitles"},ngContentSelectors:Le,decls:4,vars:2,consts:[[1,"w-full"],["class","mb-4 flex items-center gap-2 lg:hidden",4,"ngIf"],[1,"grid","gap-6",3,"ngClass"],[1,"mb-4","flex","items-center","gap-2","lg:hidden"],["type","button","class","rounded-full px-4 py-2 text-sm leading-5 font-semibold transition-colors",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button",1,"rounded-full","px-4","py-2","text-sm","leading-5","font-semibold","transition-colors",3,"click","ngClass"]],template:function(n,s){1&n&&(e.NAR(),e.j41(0,"div",0),e.DNE(1,ze,2,1,"div",1),e.j41(2,"div",2),e.SdG(3),e.k0s()()),2&n&&(e.R7$(),e.Y8G("ngIf",s.shouldShowTabs),e.R7$(),e.Y8G("ngClass",s.desktopColumnsClass))},dependencies:[p.MD,p.YU,p.Sq,p.bT],encapsulation:2})}return i})();var Xe=r(67524),He=r(58252),Ve=r(11152),Ue=r(11565);const qe=["marqueeContainer"],We=["marqueeContent"],Ke=["*"];let Ze=(()=>{class i{renderer;ngZone;speed=10;marqueeContainer;marqueeContent;isHovered=!1;shouldScroll=!1;resizeObserver;checkTimeout;isDragging=!1;startX=0;startY=0;currentX=0;initialTransform=0;rafId=null;hasMoved=!1;dragThreshold=5;constructor(t,n){this.renderer=t,this.ngZone=n}ngAfterViewInit(){this.scheduleCheck(),this.marqueeContent?.nativeElement&&(this.resizeObserver=new ResizeObserver(()=>{this.scheduleCheck()}),this.resizeObserver.observe(this.marqueeContent.nativeElement)),this.setupDragEvents()}ngOnDestroy(){this.resizeObserver&&this.resizeObserver.disconnect(),this.checkTimeout&&clearTimeout(this.checkTimeout),this.rafId&&cancelAnimationFrame(this.rafId)}onResize(){this.checkIfScrollNeeded()}scheduleCheck(){this.checkTimeout&&clearTimeout(this.checkTimeout),this.checkTimeout=setTimeout(()=>{this.checkIfScrollNeeded()},100)}checkIfScrollNeeded(){this.marqueeContainer&&this.marqueeContent&&(this.shouldScroll=this.marqueeContent.nativeElement.scrollWidth>this.marqueeContainer.nativeElement.offsetWidth)}onMouseEnter(){this.isHovered=!0}onMouseLeave(){this.isHovered=!1,this.isDragging&&this.stopDragging()}setupDragEvents(){const t=this.marqueeContainer?.nativeElement;t&&this.ngZone.runOutsideAngular(()=>{this.renderer.listen(t,"mousedown",n=>this.startDragging(n)),this.renderer.listen(window,"mousemove",n=>this.onDrag(n)),this.renderer.listen(window,"mouseup",()=>this.stopDragging()),this.renderer.listen(t,"touchstart",n=>this.startDragging(n)),this.renderer.listen(window,"touchmove",n=>this.onDrag(n)),this.renderer.listen(window,"touchend",()=>this.stopDragging()),this.renderer.listen(t,"click",n=>this.handleClick(n))})}handleClick(t){if(this.hasMoved)return t.preventDefault(),void t.stopPropagation();const n=t.target;"A"===n?.tagName||n?.closest("a")}startDragging(t){if(!this.shouldScroll)return;this.isDragging=!0,this.hasMoved=!1;const n=this.marqueeContent.nativeElement;this.startX=t instanceof MouseEvent?t.clientX:t.touches[0].clientX,this.startY=t instanceof MouseEvent?t.clientY:t.touches[0].clientY;const a=window.getComputedStyle(n).transform;if(a&&"none"!==a){const c=new DOMMatrix(a);this.initialTransform=c.m41}else this.initialTransform=0;this.renderer.setStyle(this.marqueeContainer.nativeElement,"cursor","grabbing")}onDrag(t){if(!this.isDragging)return;const n=t instanceof MouseEvent?t.clientX:t.touches[0].clientX,s=t instanceof MouseEvent?t.clientY:t.touches[0].clientY,a=Math.abs(n-this.startX),l=Math.abs(s-this.startY);if(!this.hasMoved&&(a>this.dragThreshold||l>this.dragThreshold)){this.hasMoved=!0,t.preventDefault();const d=this.marqueeContent.nativeElement;this.renderer.addClass(d,"dragging"),d.querySelectorAll("a, p").forEach(g=>{this.renderer.setStyle(g,"pointer-events","none")})}if(!this.hasMoved)return;t.preventDefault();const c=n-this.startX;this.rafId&&cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(()=>{const d=this.marqueeContent.nativeElement,b=-(d.scrollWidth-this.marqueeContainer.nativeElement.offsetWidth);let m=this.initialTransform+c;m>0?m=0+.3*(m-0):m<b&&(m=b+.3*(m-b)),this.renderer.setStyle(d,"transform",`translate3d(${m}px, 0, 0)`),this.currentX=m})}stopDragging(){if(!this.isDragging)return;this.isDragging=!1;const n=this.marqueeContent.nativeElement;this.renderer.setStyle(this.marqueeContainer.nativeElement,"cursor","grab"),this.renderer.removeClass(n,"dragging"),n.querySelectorAll("a, p").forEach(a=>{this.renderer.removeStyle(a,"pointer-events")}),this.smoothResumeAnimation(),setTimeout(()=>{this.hasMoved=!1},100)}smoothResumeAnimation(){const t=this.marqueeContent.nativeElement;this.renderer.setStyle(t,"transition","transform 0.3s ease-out"),setTimeout(()=>{this.renderer.removeStyle(t,"transition"),this.renderer.removeStyle(t,"transform"),this.shouldScroll&&!this.isHovered&&this.renderer.removeClass(t,"dragging")},300)}static \u0275fac=function(n){return new(n||i)(e.rXU(e.sFG),e.rXU(e.SKi))};static \u0275cmp=e.VBU({type:i,selectors:[["app-marquee"]],viewQuery:function(n,s){if(1&n&&(e.GBs(qe,5),e.GBs(We,5)),2&n){let a;e.mGM(a=e.lsd())&&(s.marqueeContainer=a.first),e.mGM(a=e.lsd())&&(s.marqueeContent=a.first)}},hostBindings:function(n,s){1&n&&e.bIt("resize",function(){return s.onResize()},e.tSv)},inputs:{speed:"speed"},ngContentSelectors:Ke,decls:6,vars:10,consts:[["marqueeContai
38ner",""],["marqueeContent",""],[1,"marquee",3,"mouseenter","mouseleave"],[1,"marquee-content"],[1,"marquee-item"]],template:function(n,s){if(1&n){const a=e.RV6();e.NAR(),e.rj2(0,"div",2,0),e.VwU("mouseenter",function(){return u.eBV(a),u.Njj(s.onMouseEnter())})("mouseleave",function(){return u.eBV(a),u.Njj(s.onMouseLeave())}),e.rj2(2,"div",3,1)(4,"div",4),e.SdG(5),e.eux()()()}2&n&&(e.AVh("should-scroll",s.shouldScroll)("dragging",s.isDragging),e.R7$(2),e.xc7("animation-duration",s.speed+"s"),e.AVh("paused",s.isHovered)("dragging",s.isDragging))},styles:[".marquee[_ngcontent-%COMP%]{width:100%;overflow:hidden;background-color:transparent;height:auto;position:relative;cursor:default;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.marquee-content[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;white-space:nowrap;height:auto;will-change:transform;backface-visibility:hidden;-webkit-backface-visibility:hidden;transition:none}.marquee-content.dragging[_ngcontent-%COMP%]{animation-play-state:paused!important;cursor:-webkit-grabbing!important;cursor:grabbing!important}.marquee.should-scroll[_ngcontent-%COMP%]{cursor:-webkit-grab;cursor:grab}.marquee.should-scroll[_ngcontent-%COMP%]:active{cursor:-webkit-grabbing;cursor:grabbing}.marquee-item[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;align-items:stretch;height:auto;flex-shrink:0;pointer-events:auto}.marquee.dragging[_ngcontent-%COMP%] .marquee-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .marquee.dragging[_ngcontent-%COMP%] .marquee-item[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{pointer-events:none;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.marquee[_ngcontent-%COMP%]:not(.dragging) .marquee-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{pointer-events:auto;cursor:pointer}.marquee.should-scroll[_ngcontent-%COMP%] .marquee-content[_ngcontent-%COMP%]:not(.dragging){animation:_ngcontent-%COMP%_tennis-bounce linear infinite;width:-webkit-max-content;width:-moz-max-content;width:max-content;transform:translateZ(0)}.marquee.should-scroll[_ngcontent-%COMP%]:hover .marquee-content[_ngcontent-%COMP%]:not(.dragging){animation-play-state:paused}.marquee-content.elastic-bound[_ngcontent-%COMP%]{transition:transform .3s cubic-bezier(.25,.46,.45,.94)}@keyframes _ngcontent-%COMP%_tennis-bounce{0%{transform:translateZ(0)}50%{transform:translate3d(-80%,0,0)}to{transform:translateZ(0)}}.marquee[_ngcontent-%COMP%]:active{cursor:-webkit-grabbing;cursor:grabbing}@media(hover:none)and (pointer:coarse){.marquee[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch}}"]})}return i})();var N=r(59718),Qe=r(10048);function Je(i,o){if(1&i&&(e.j41(0,"span",9),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.SpI(" ",t.options.chipLabel," ")}}function et(i,o){if(1&i&&e.nrm(0,"lib-loyalty-tooltip",10),2&i){const t=e.XpG();e.Y8G("options",t.tooltipOptions)}}function tt(i,o){if(1&i&&e.nrm(0,"svg-icon",11),2&i){const t=e.XpG();e.Y8G("src",e.mNQ(t.isDesktop()?"./assets/imgs/arrow-right.svg":"./assets/imgs/chevron-right.svg"))}}let it=(()=>{class i{helpersService;options;canLoyalty=!1;isDesktop=D.Gj;tooltipOptions={theme:"light",mobileChangePosition:!1,icon:{value:"icon-leaf"},link:{value:{href:"/loyalty/landing",linktype:"external",url:"",anchor:"",target:""}},linkLoyaltyUser:{value:{href:"/loyalty",linktype:"internal",url:"",anchor:"",target:""}},linkText:{value:"Scopri di pi\xf9"},linkTextLoyaltyUser:{value:"Scopri di pi\xf9"},title:{value:"Raccogli i punti Plures!"},tooltipSubtitle:{value:"A ogni tua azione corrisponde un vantaggio in punti Plures. Entra a far parte della Community di persone che come te, hanno a cuore l\u2019ambiente!"},tooltipTitle:{value:"Noi pi\xf9, scopri tutti i vantaggi!"},tooltipSubtitleLoyaltyUser:{value:"A ogni tua azione corrisponde un vantaggio in punti Plures. Monitora i tuoi progressi e ottieni vantaggi reali."},tooltipTitleLoyaltyUser:{value:"Noi pi\xf9, scopri tutti i vantaggi!"}};constructor(t){this.helpersService=t}static \u0275fac=function(n){return new(n||i)(e.rXU(C.V))};static \u0275cmp=e.VBU({type:i,selectors:[["lib-info-card-new"]],inputs:{options:"options",canLoyalty:"canLoyalty"},decls:11,vars:10,consts:[[1,"flex","lg:flex-col","flex-row","max-lg:items-center","h-auto","lg:h-[268px]","rounded-[12px]","border","border-grey-500","bg-white","p-4","lg:p-6","w-full",3,"routerLink","queryParams"],[1,"lg:mb-3","mb-0","max-lg:me-4","h-10","w-10","shrink-0",3,"src","alt"],[1,"min-w-0","flex-1"],[1,"text-[18px]","leading-7","font-semibold","text-dark-900"],[1,"mt-1","text-[14px]","leading-5","text-dark-700","lg:text-base","lg:leading-6",3,"innerHTML"],["class","mt-2 inline-flex rounded-full bg-primary-100 px-2 py-1 text-[12px] leading-4 font-semibold text-primary-1000",4,"ngIf"],["class","mt-2 block",3,"options",4,"ngIf"],[1,"lg:mt-4","mt-0","inline-flex","items-center","gap-2","text-[16px]","leading-6","font-semibold","text-primary-1000"],["class","h-4 w-4 shrink-0 text-primary-1000",3,"src",4,"ngIf"],[1,"mt-2","inline-flex","rounded-full","bg-primary-100","px-2","py-1","text-[12px]","leading-4","font-semibold","text-primary-1000"],[1,"mt-2","block",3,"options"],[1,"h-4","w-4","shrink-0","text-primary-1000",3,"src"]],template:function(n,s){1&n&&(e.j41(0,"a",0),e.nrm(1,"img",1),e.j41(2,"div",2)(3,"p",3),e.
38EFF(4),e.k0s(),e.nrm(5,"p",4),e.DNE(6,Je,2,1,"span",5)(7,et,1,1,"lib-loyalty-tooltip",6),e.k0s(),e.j41(8,"span",7),e.EFF(9),e.DNE(10,tt,1,2,"svg-icon",8),e.k0s()()),2&n&&(e.Y8G("routerLink",s.options.url)("queryParams",s.options.queryParams),e.R7$(),e.Y8G("src",s.options.icon,e.B4B)("alt",s.options.title),e.R7$(3),e.SpI(" ",s.options.title," "),e.R7$(),e.Y8G("innerHTML",s.options.description,e.npT),e.R7$(),e.Y8G("ngIf",s.options.chipLabel),e.R7$(),e.Y8G("ngIf",s.canLoyalty),e.R7$(2),e.SpI(" ",s.isDesktop()?s.options.ctaLabel:""," "),e.R7$(),e.Y8G("ngIf",s.helpersService.isBrowser))},dependencies:[p.MD,p.bT,w.Wk,f.iu,f.DM,Qe.d],encapsulation:2})}return i})();var nt=r(15304),st=r(536),ot=r(33678),x=r(23877);const at=()=>({label:"Non mostrare pi\xf9",variant:"primary",customClasses:"w-full lg:w-auto"});function rt(i,o){1&i&&e.nrm(0,"svg-icon",13)}function lt(i,o){1&i&&e.nrm(0,"svg-icon",14)}let ct=(()=>{class i{featuresService;helpersService;closed=new e.bkB;constructor(t,n){this.featuresService=t,this.helpersService=n}close(){this.featuresService.closeMigrationStatusModal(),this.closed.emit()}closeAndPersist(){this.featuresService.closeMigrationStatusModal(!0),this.closed.emit()}static \u0275fac=function(n){return new(n||i)(e.rXU(G.D),e.rXU(C.V))};static \u0275cmp=e.VBU({type:i,selectors:[["lib-migration-status-modal"]],outputs:{closed:"closed"},decls:21,vars:7,consts:[[3,"openChange","open","mobileAsDrawer","backdropClose"],[1,"text-center","w-full","py-8","lg:px-8","px-6"],[1,"w-full","flex","justify-end"],["type","button","aria-label","Chiudi",1,"flex","size-6","items-center","justify-center","text-dark-900",3,"click"],["src","./assets/imgs/x-icon.svg","class","size-5",4,"ngIf"],[1,"w-full","flex","justify-center"],["src","./assets/imgs/ko-404.svg",4,"ngIf"],[1,"mx-auto","mt-4","text-20","font-semibold","leading-6","text-dark-900"],[1,"mx-auto","mt-2","flex","flex-col","gap-4","text-sm","leading-5","text-secondary"],[1,"mt-8","flex","flex-col","gap-3","lg:flex-row","lg:items-center","lg:justify-between"],["href","https://areaclienti.estra.it/","target","_blank","rel","noopener noreferrer",1,"text-sm","font-semibold","text-primary-1000","underline-offset-2","hover:underline"],[3,"click","options"],["libModalNewClose","","hidden",""],["src","./assets/imgs/x-icon.svg",1,"size-5"],["src","./assets/imgs/ko-404.svg"]],template:function(n,s){1&n&&(e.j41(0,"lib-modal-new",0),e.mxI("openChange",function(l){return e.DH7(s.featuresService.isMigrationStatusModalOpen,l)||(s.featuresService.isMigrationStatusModalOpen=l),l}),e.j41(1,"div",1)(2,"div",2)(3,"button",3),e.bIt("click",function(){return s.close()}),e.DNE(4,rt,1,0,"svg-icon",4),e.k0s()(),e.j41(5,"div",5),e.DNE(6,lt,1,0,"svg-icon",6),e.k0s(),e.j41(7,"h3",7),e.EFF(8," Alcuni dei tuoi contratti sono ancora su App Estra e Area Clienti Estra "),e.k0s(),e.j41(9,"div",8)(10,"p"),e.EFF(11," Al momento, alcuni dei tuoi contratti sono ancora accessibili solo dall\u2019App Estra e da areaclienti.estra.it. "),e.nrm(12,"br"),e.EFF(13,"Stiamo lavorando perch\xe9 al pi\xf9 presto tu possa gestire tutti i tuoi contratti Energia dalla nuova app Alia Estra. "),e.k0s(),e.j41(14,"p"),e.EFF(15," Nel frattempo, per i contratti che ancora non trovi qui, continua a usare l\u2019App Estra e l\u2019Area Clienti Estra per verificare lo stato dei tuoi pagamenti, gestire i tuoi contratti e visionare l\u2019Informativa privacy. "),e.k0s()(),e.j41(16,"div",9)(17,"a",10),e.EFF(18," Accedi ad areaclienti.estra.it "),e.k0s(),e.j41(19,"lib-button",11),e.bIt("click",function(){return s.closeAndPersist()}),e.k0s()()(),e.nrm(20,"div",12),e.k0s()),2&n&&(e.R50("open",s.featuresService.isMigrationStatusModalOpen),e.Y8G("mobileAsDrawer",!0)("backdropClose",!1),e.R7$(4),e.Y8G("ngIf",s.helpersService.isBrowser),e.R7$(2),e.Y8G("ngIf",s.helpersService.isBrowser),e.R7$(13),e.Y8G("options",e.lJ4(6,at)))},dependencies:[p.MD,p.bT,f.iu,f.DM,S.Q,x.T0,x.l4],encapsulation:2})}return i})();function ut(i,o){if(1&i&&(e.j41(0,"p",16),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.SpI(" ",t.alert.title.value," ")}}function pt(i,o){1&i&&e.nrm(0,"svg-icon",19)}function dt(i,o){if(1&i){const t=e.RV6();e.j41(0,"a",17),e.bIt("click",function(s){u.eBV(t);const a=e.XpG();return u.Njj(a.handleActionClick(s))}),e.EFF(1," Scopri di pi\xf9 "),e.DNE(2,pt,1,0,"svg-icon",18),e.k0s()}if(2&i){const t=e.XpG();e.Y8G("href",t.actionHref,e.B4B),e.R7$(2),e.Y8G("ngIf",t.helpersService.isBrowser)}}function mt(i,o){1&i&&e.nrm(0,"svg-icon",20)}function gt(i,o){1&i&&e.nrm(0,"svg-icon",24)}function ft(i,o){if(1&i){const t=e.RV6();e.j41(0,"div",21)(1,"button",22),e.bIt("click",function(){u.eBV(t);const s=e.XpG();return u.Njj(s.navigateToCta())}),e.EFF(2," Scopri di pi\xf9 "),e.DNE(3,gt,1,0,"svg-icon",23),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(3),e.Y8G("ngIf",t.helpersService.isBrowser)}}let ht=(()=>{class i{helpersService;alert=null;hasDescription=!1;hasCtaUrl=!1;showAction=!1;actionHref="#";isOpenAlertModal=(0,u.vPA)(!1);constructor(t){this.helpersService=t}ngOnInit(){this.hasDescription=!!this.alert?.description?.value,this.hasCtaUrl=!!this.alert?.CtaWeb?.url,this.showAction=this.hasDescription||this.hasCtaUrl,this.actionHref=this.hasCtaUrl?this.alert.CtaWeb.url:"#"}handleActionClick(t){t.preventDefault(),this.hasDescription?this.isOpenAlertModal.set(!0):this.hasCtaUrl&&this.navigateToCta()}navigateToCta(){this.hasCtaUrl&&this.helpersService.isBrowser&&window.open(this.alert.CtaWeb.url,"_blank")}static \u0275fac=function(n){return new(n||i)(e.rXU(C.V))};static \u0275cmp=e.VBU({type:i,selectors:[["app-card-alert"]],inputs:{alert:"alert"},decls:21,vars:12,consts:[[1,"flex","h-full","flex-col"],[1,"flex","gap-1","mb-1"],[1,"block","text-[12px]","font-semibold","uppercase","tracking-[0.02em]","text-tertiary"],[1,"block","text-[12px]","font-semibold","uppercase","tracking-[0.02em]","text-primary-1000"],["class","w-full overflow-hidden whitespace-normal break-words text-[14px] text-dark-900 lg:text-[16
38px]","style","display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; text-overflow: ellipsis;",4,"ngIf"],["class","inline-flex items-center gap-2 pt-2 text-[16px] font-semibold text-primary-1000",3,"href","click",4,"ngIf"],[3,"openChange","open","backdropClose","mobileAsDrawer","panelContainerClass"],[1,"p-6","lg:p-8"],[1,"mb-7","flex","items-start","justify-between","gap-4"],[1,"text-20","font-semibold","leading-7","text-dark-900","lg:text-2xl"],[1,"mt-1","text-small","text-secondary"],["libModalNewClose","","type","button","aria-label","Chiudi",1,"shrink-0","p-1","text-dark-900"],["src","./assets/imgs/x-icon.svg","class","h-6 w-6",4,"ngIf"],[1,"leading-6","text-dark-700","lg:text-base","mt-8",3,"innerHTML"],["class","mt-8 flex justify-end",4,"ngIf"],["libModalNewClose","","hidden",""],[1,"w-full","overflow-hidden","whitespace-normal","break-words","text-[14px]","text-dark-900","lg:text-[16px]",2,"display","-webkit-box","-webkit-box-orient","vertical","-webkit-line-clamp","2","text-overflow","ellipsis"],[1,"inline-flex","items-center","gap-2","pt-2","text-[16px]","font-semibold","text-primary-1000",3,"click","href"],["src","./assets/imgs/arrow-right.svg",4,"ngIf"],["src","./assets/imgs/arrow-right.svg"],["src","./assets/imgs/x-icon.svg",1,"h-6","w-6"],[1,"mt-8","flex","justify-end"],["type","button",1,"inline-flex","items-center","justify-center","gap-2","rounded-lg","border","border-primary-1000","px-5","py-3","text-base","font-semibold","text-primary-1000",3,"click"],["src","./assets/imgs/arrow-right.svg","class","h-5 w-5",4,"ngIf"],["src","./assets/imgs/arrow-right.svg",1,"h-5","w-5"]],template:function(n,s){1&n&&(e.j41(0,"div",0)(1,"div",1)(2,"span",2),e.EFF(3,"NOTIZIA"),e.k0s(),e.j41(4,"span",3),e.
38EFF(5),e.k0s()(),e.DNE(6,ut,2,1,"p",4)(7,dt,3,2,"a",5),e.k0s(),e.j41(8,"lib-modal-new",6),e.mxI("openChange",function(l){return e.DH7(s.isOpenAlertModal,l)||(s.isOpenAlertModal=l),l}),e.j41(9,"div",7)(10,"div",8)(11,"div")(12,"h3",9),e.EFF(13),e.k0s(),e.j41(14,"p",10),e.EFF(15),e.k0s()(),e.j41(16,"button",11),e.DNE(17,mt,1,0,"svg-icon",12),e.k0s()(),e.nrm(18,"p",13),e.DNE(19,ft,4,1,"div",14),e.k0s(),e.nrm(20,"div",15),e.k0s()),2&n&&(e.R7$(5),e.SpI(" ",null!=s.alert&&null!=s.alert.municipality&&s.alert.municipality.displayName?null==s.alert||null==s.alert.municipality?null:s.alert.municipality.displayName:"TUTTI I COMUNI ALIA PLURES"," "),e.R7$(),e.Y8G("ngIf",null==s.alert||null==s.alert.title?null:s.alert.title.value),e.R7$(),e.Y8G("ngIf",s.showAction),e.R7$(),e.R50("open",s.isOpenAlertModal),e.Y8G("backdropClose",!0)("mobileAsDrawer",!0)("panelContainerClass","max-w-[814px]"),e.R7$(5),e.SpI(" ",null==s.alert||null==s.alert.title?null:s.alert.title.value," "),e.R7$(2),e.SpI(" Tutti i Comuni Alia Plures / ",(null==s.alert||null==s.alert.municipality?null:s.alert.municipality.displayName)||"Nome comune"," "),e.R7$(2),e.Y8G("ngIf",s.helpersService.isBrowser),e.R7$(),e.Y8G("innerHTML",null==s.alert||null==s.alert.description?null:s.alert.description.value,e.npT),e.R7$(),e.Y8G("ngIf",s.hasCtaUrl))},dependencies:[p.MD,p.bT,f.iu,f.DM,x.T0,x.l4],encapsulation:2})}return i})();const bt={autoWidth:!0,gap:"16px",hasGradientRight:!0,breakpoints:{640:{gap:"8px"}}},vt={autoWidth:!0,arrows:!0,gap:"16px",hasGradientRight:!0,breakpoints:{640:{gap:"8px"}}},_t={autoWidth:!0,arrows:!0,gap:"16px",hasGradientRight:!0,breakpoints:{640:{gap:"8px"}}},Ct={autoWidth:!0,arrows:!0,gap:"16px",hasGradientRight:!0,breakpoints:{640:{gap:"8px"}}};function y(i){const t=(i.itemsCount??0)>1,s=i.hasGradientRight??!1;return{autoWidth:i.autoWidth,enableWheelScroll:i.enableWheelScroll??!1,arrows:i.arrows,gap:i.gap,breakpoints:i.breakpoints,navigationArrows:(i.navigationArrows??!1)&&t,hasGradientRight:s&&t,padding:{right:s&&t?"10%":i.paddingRight??"0%"}}}var xt=r(37222);const I=()=>({wait:!0}),yt=i=>[i],St=i=>({label:i,variant:"secondary-loyalty",customClasses:"w-auto"}),M=(i,o,t,n,s,a)=>({badge:i,date:o,title:t,caseNumber:n,address:s,when:a}),kt=()=>({openAmbiente:!0});function Tt(i,o){if(1&i&&(e.j41(0,"b"),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.SpI(" ",t.accountBusinessName)}}function Dt(i,o){1&i&&e.nrm(0,"lib-loading-spinner",29),2&i&&e.Y8G("options",e.lJ4(1,I))}function It(i,o){if(1&i&&(e.j41(0,"lib-carousel-slide"),e.nrm(1,"lib-chip",29),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.Y8G("options",t)}}function wt(i,o){if(1&i&&e.DNE(0,It,2,1,"lib-carousel-slide",8),2&i){const t=o.$implicit;e.Y8G("ngIf",t.itemLength>0||"no_bills_to_pay"===t.type)}}function Pt(i,o){1&i&&e.nrm(0,"lib-circular-progress-new",31),2&i&&e.Y8G("isHome",!0)}function At(i,o){if(1&i&&(e.j41(0,"lib-carousel-slide"),e.nrm(1,"lib-chip",29),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.Y8G("options",t)}}function Gt(i,o){1&i&&e.DNE(0,At,2,1,"lib-carousel-slide",8),2&i&&e.Y8G("ngIf",o.$implicit.itemLength>0)}function Rt(i,o){if(1&i&&(e.j41(0,"lib-carousel-slide"),e.nrm(1,"lib-chip",29),e.k0s()),2&i){const t=o.$implicit;e.R7$(),e.Y8G("options",t)}}function Et(i,o){if(1&i&&(e.j41(0,"div",16)(1,"lib-carousel",29),e.Z7z(2,wt,1,1,"lib-carousel-slide",null,e.Vm6),e.j41(4,"lib-carousel-slide"),e.DNE(5,Pt,1,1,"lib-circular-progress-new",30),e.k0s(),e.Z7z(6,Gt,1,1,"lib-carousel-slide",null,e.Vm6),e.Z7z(8,Rt,2,1,"lib-carousel-slide",null,e.Vm6),e.k0s()()),2&i){const t=e.XpG();e.R7$(),e.Y8G("options",t.chipsCarouselOptions),e.R7$(),e.Dyx(t.chipsBill),e.R7$(3),e.Y8G("ngIf",t.supplyCountActives),e.R7$(),e.Dyx(t.chips),e.R7$(2),e.Dyx(t.chipsInsert)}}function Ft(i,o){if(1&i&&(e.j41(0,"lib-carousel-slide",34),e.nrm(1,"lib-bill-payment-card",35),e.k0s()),2&i){const t=o.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",n.billsToPay.length>1?"w-[330px] sm:w-[380px]":"w-full sm:w-[380px]")("invoices",e.eq3(7,yt,t))("isHome",!0)("commodity",t.service)("supplyDataId",t.supplyDataId)("billingAccountId",t.b
38illingAccountId)("podPdr",t.podPdr)}}function $t(i,o){if(1&i&&(e.j41(0,"div",12)(1,"h3",32),e.EFF(2,"Bollette da pagare"),e.k0s(),e.j41(3,"lib-carousel",29),e.DNE(4,Ft,2,9,"lib-carousel-slide",33),e.k0s()()),2&i){const t=e.XpG();e.R7$(3),e.Y8G("options",t.billsCarouselOptions),e.R7$(),e.Y8G("ngForOf",t.billsToPay)}}function Ot(i,o){if(1&i&&e.nrm(0,"img",46),2&i){const t=e.XpG(2);e.Y8G("src",t.bannerLabels.img,e.B4B)}}function jt(i,o){if(1&i&&(e.j41(0,"div",36)(1,"div",37)(2,"div",38)(3,"div")(4,"p",39),e.EFF(5,"PROGRAMMA LOYALTY"),e.k0s(),e.j41(6,"h3",40),e.EFF(7),e.nrm(8,"br"),e.EFF(9," ottieni tutti i vantaggi"),e.k0s(),e.j41(10,"p",41),e.EFF(11),e.nrm(12,"br"),e.EFF(13," punti Plures accumulati in vantaggi! "),e.k0s()(),e.j41(14,"div",42),e.nrm(15,"lib-button",43),e.k0s()(),e.j41(16,"div",44),e.DNE(17,Ot,1,1,"img",45),e.k0s()()()),2&i){const t=e.XpG();e.R7$(7),e.SpI("",t.bannerLabels.title," a Noi pi\xf9, "),e.R7$(4),e.SpI(" ",t.bannerLabels.description," alla Community e dai valore alle tue azioni: converti i "),e.R7$(4),e.Y8G("options",e.eq3(4,St,t.bannerLabels.cta)),e.R7$(2),e.Y8G("ngIf",t.helpersService.isBrowser)}}function Nt(i,o){if(1&i){const t=e.RV6();e.j41(0,"lib-carousel-slide",34)(1,"lib-contract-card",52),e.bIt("click",function(){const s=u.eBV(t).$implicit,a=e.XpG(4);return u.Njj(a.goToPractice(s.id))}),e.k0s()()}if(2&i){const t=o.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("isCarousel",!0)("carouselItemsCount",n.practices.length)("options",t)}}function Mt(i,o){if(1&i&&(e.qex(0),e.j41(1,"lib-carousel",29),e.DNE(2,Nt,2,3,"lib-carousel-slide",33),e.k0s(),e.bVm()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("options",t.practicesCarouselOptions),e.R7$(),e.Y8G("ngForOf",t.practices)}}function Bt(i,o){if(1&i){const t=e.RV6();e.j41(0,"lib-contract-card",54),e.bIt("click",function(){const s=u.eBV(t).$implicit,a=e.XpG(4);return u.Njj(a.goToPractice(s.id))}),e.k0s()}if(2&i){const t=o.$implicit,n=e.XpG(4);e.Y8G("options",t)("isCarousel",!0)("carouselItemsCount",n.practices.length)}}function Lt(i,o){if(1&i&&e.DNE(0,Bt,1,3,"lib-contract-card",53),2&i){const t=e.XpG(3);e.Y8G("ngForOf",t.practices)}}function Yt(i,o){if(1&i&&(e.j41(0,"lib-tab",50),e.DNE(1,Mt,3,2,"ng-container",51)(2,Lt,1,1,"ng-template",null,0,e.C5r),e.k0s()),2&i){const t=e.sdS(3),n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.practices.length>1)("ngIfElse",t)}}function zt(i,o){if(1&i){const t=e.RV6();e.j41(0,"lib-carousel-slide",34)(1,"lib-card-requests",54),e.bIt("click",function(){const s=u.eBV(t).$implicit,a=e.XpG(4);return u.Njj(a.goToOnDemand(s.id))}),e.k0s()()}if(2&i){const t=o.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("options",e.l4e(3,M,t.badgeOptions,t.date,t.title,t.caseNumber,t.address,t.when))("isCarousel",!0)("carouselItemsCount",n.onDemands.length)}}function Xt(i,o){if(1&i&&(e.qex(0),e.j41(1,"lib-carousel",29),e.DNE(2,zt,2,10,"lib-carousel-slide",33),e.k0s(),e.bVm()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("options",t.onDemandCarouselOptions),e.R7$(),e.Y8G("ngForOf",t.onDemands)}}function Ht(i,o){if(1&i){const t=e.RV6();e.qex(0),e.j41(1,"lib-card-requests",54),e.bIt("click",function(){const s=u.eBV(t).$implicit,a=e.XpG(4);return u.Njj(a.goToOnDemand(s.id))}),e.k0s(),e.bVm()}if(2&i){const t=o.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("options",e.l4e(3,M,t.badgeOptions,t.date,t.title,t.caseNumber,t.address,t.when))("isCarousel",!0)("carouselItemsCount",n.onDemands.length)}}function Vt(i,o){if(1&i&&e.DNE(0,Ht,2,10,"ng-container",56),2&i){const t=e.XpG(3);e.Y8G("ngForOf",t.onDemands)}}function Ut(i,o){if(1&i&&(e.j41(0,"lib-tab",55),e.DNE(1,Xt,3,2,"ng-container",51)(2,Vt,1,1,"ng-template",null,1,e.C5r),e.k0s()),2&i){const t=e.sdS(3),n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.onDemands.length>1)("ngIfElse",t)}}function qt(i,o){if(1&i&&(e.j41(0,"div",17)(1,"h3",47),e.EFF(2,"Le tue richieste"),e.k0s(),e.j41(3,"lib-tab-group"),e.DNE(4,Yt,4,2,"lib-tab",48)(5,Ut,4,2,"lib-tab",49),e.k0s()()),2&i){const t=e.XpG();e.R7$(4),e.Y8G("ngIf",null==t.practices?null:t.practices.length),e.R7$(),e.Y8G("ngIf",null==t.onDemands?null:t.onDemands.length)}}function Wt(i,o){1&i&&(e.j41(0,"div",15)(1,"h3",57),e.EFF(2,"Servizi ambientali"),e.k0s(),e.j41(3,"a",58),e.EFF(4," Vedi tutti "),e.k0s()()),2&i&&(e.R7$(3),e.Y8G("queryParams",e.lJ4(1,kt)))}function Kt(i,o){1&i&&e.nrm(0,"lib-loading-spinner",29),2&i&&e.Y8G("options",e.lJ4(1,I))}function Zt(i,o){if(1&i&&e.nrm(0,"lib-info-card-new",62),2&i){const t=o.$implicit,n=e.XpG(3);e.Y8G("options",t)("canLoyalty",n.bannerLoyalty&&t.canLoyalty)}}function Qt(i,o){if(1&i&&(e.j41(0,"div",59)(1,"div",60),e.DNE(2,Zt,1,2,"lib-info-card-new",61),e.k0s()()),2&i){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.onDemandActionCards)}}function Jt(i,o){if(1&i&&(e.j41(0,"div",17),e.DNE(1,Kt,1,2,"lib-loading-spinner",10),e.nVh(2,Qt,3,1,"div",59),e.k0s()),2&i){let t;const n=e.XpG();e.R7$(),e.Y8G("ngIf",n.featuresService.userTypeLoading()),e.R7$(),e.vxM(n.onDemandActionCards.length&&!n.featuresService.userTypeLoading()&&(null!=(t=n.featuresService.userType())&&t.onDemand||null!=(t=n.featuresService.userType())&&t.abbandoni||null!=(t=n.featuresService.userType())&&t.segnalazioni||null!=(t=n.featuresService.userType())&&t.cartaCartoneUnesco)?2:-1)}}function ei(i,o){if(1&i&&(e.j41(0,"div",68),e.nrm(1,"app-card-alert",69),e.k0s()),2&i){const t=o.$implicit;e.R7$(),e.Y8G("alert",t)}}function ti(i,o){if(1&i&&(e.j41(0,"div",18)(1,"h3",63),e.EFF(2,"Notizie per te"),e.k0s(),e.j41(3,"div",64)(4,"app-marquee",65)(5,"div",66),e.DNE(6,ei,2,1,"div",67),e.k0s()()()()),2&i){const t=e.XpG();e.R7$(4),e.Y8G("speed",90),e.R7$(2),e.Y8G("ngForOf",t.contractAlerts)}}function ii(i,o){if(1&i&&e.nrm(0,"img",79),2&i){const t=e.XpG().$implicit;e.Y8G("src",t.icon,e.B4B)}}function ni(i,o){1&i&&e.nrm(0,"svg-icon",80)}function si(i,o){if(1&i&&(e.j41(0,"a",73),e.DNE(1,ii,1,1,"img",74),e.j41(2,"div",75)(3,"p",76),e.EFF(4),e.k0s(),e.j41(5,"p",77),e.EFF(6),e.k0s()(),e.DNE(7,ni,1,0,"svg-icon",78),e.k0s()),2&i){const t=o.$implicit,n=e.XpG(3);e.Y8G("routerLink",t.url),e.R7$(),e.Y8G("ngIf",n.helpersService.isBrowser),e.R7$(3),e.SpI(" ",t.title," "),e.R7$(2),e.SpI(" ",t.description," "),e.R7$(),e.Y8G("ngIf",n.helpersService.isBrowser)}}function oi(i,o){if(1&i&&(e.j41(0,"lib-tab-group-section",24)(1,"div",71),e.DNE(2,si,8,5,"a",72),e.k0s()()),2&i){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.wasteFaqLinks)}}function ai(i,o){if(1&i&&e.DNE(0,oi,3,1,"lib-tab-group-section",70),2&i){const t=e.XpG();e.Y8G("ngIf",t.wasteFaqLinks.length)}}function ri(i,o){if(1&i&&e.nrm(0,"img",79),2&i){const t=e.XpG().$implicit;e.Y8G("src",t.icon,e.B4B)}}function li(i,o){1&i&&e.nrm(0,"svg-icon",80)}function ci(i,o){if(1&i&&(e.j41(0,"a",73),e.DNE(1,ri,1,1,"img",74),e.j41(2,"div",75)(3,"p",76),e.EFF(4),e.k0s(),e.j41(5,"p",77),e.EFF(6),e.k0s()(),e.DNE(7,li,1,0,"svg-icon",78),e.k0s()),2&i){const t=o.$implicit,n=e.XpG(2);e.Y8G("routerLink",t.url),e.R7$(),e.Y8G("ngIf",n.helpersService.isBrowser),e.R7$(3),e.SpI(" ",t.title," "),e.R7$(2),e.SpI(" ",t.description," "),e.R7$(),e.Y8G("ngIf",n.helpersService.isBrowser)}}function ui(i,o){if(1&i&&(e.j41(0,"lib-tab-group-section",25)(1,"div",71),e.DNE(2,ci,8,5,"a",72),e.k0s()()),2&i){const t=e.XpG();e.R7$(2),e.Y8G("ngForOf",t.energyFaqLinks)}}function pi(i,o){1&i&&e.nrm(0,"lib-loading-spinner",29),2&i&&e.Y8G("options",e.lJ4(1,I))}function di(i,o){1&i&&(e.j41(0,"div",26),e.nrm(1,"lib-store-banners",31),e.k0s()),2&i&&(e.R7$(),e.Y8G("isHome",!0))}let mi=(()=>{class i{authService;featuresService;router;pagesService;addressStorageService;helpersService;flowService;sitecoreService;gmapService;gigyaService;formBuilder;billService;isDesktop=D.Gj;_store=N.l;practices=[];waitPractices=!0;billsToPay=[];waitBills=!0;_localizationStore=(0,N.l)().localization;onDemands=[];waitOnDemand=!0;percentageValue;waitEfficency=!0;supplyCount=0;hasTari=!1;hasTaric=!1;supplyCountActives=0;supplyList=[];firstAssetId;firstBillingAccountId;firstServicePointId;firstPodPdr;linkActivateSDD;supplyData;savedGeoAddress="";
38savedAddressDetails={};isLoyaltyGranted=!1;bannerLabels={title:"Iscriviti",description:"Unisciti",cta:"Iscriviti",img:"./assets/imgs/loyalty/img-banner-home.png"};contractAlerts=[];addressChangeSubscription;showOnDemandSection=!1;wasteFaqLinks=[];energyFaqLinks=[{icon:"./assets/imgs/cambio-fornitore.svg",title:"Cosa vuol dire Cambio fornitore?",description:"Tutte le informazioni di cui hai bisogno per cambiare fornitore, passo dopo passo.",url:"",scLinkKey:"cambioFornitore"},{icon:"./assets/imgs/first-activation.svg",title:"Devi effettuare un\u2019attivazione?",description:"Tutte le informazioni di cui hai bisogno per una nuova attivazione, passo dopo passo.",url:"",scLinkKey:"nuovaAttivazione"},{icon:"./assets/imgs/voltura.svg",title:"Cos\u2019\xe8 una voltura?",description:"Devi cambiare intestatario? Scopri di pi\xf9 con la nostra guida sulle Volture.",url:"",scLinkKey:"voltura"}];onDemandActionCards=[];options={disableTextWrap:!1,labelBeforeProgress:"Sei digital al",titleClasses:"text-grey-1000 font-semibold text-base text-center lg:text-left",subtitleClasses:"text-dark-500 text-xs leading-4 text-center lg:text-left whitespace-nowrap",ctaClasses:"text-primary-1000 text-xs font-bold",wrapperClasses:"flex flex-col lg:flex-row items-center gap-4 lg:gap-1",Cta:"",subtitle:"",recommendedAction:""};chips=[];chipsBill=[];chipsInsert=[];isDimostraPagamentoEnabled;isDimostraPagamentoEnergyEnabled;get chipsCarouselOptions(){return y({...bt,itemsCount:this.visibleChipsCarouselItemsCount})}get billsCarouselOptions(){return y({...vt,itemsCount:this.billsToPay?.length??0})}get practicesCarouselOptions(){return y({..._t,itemsCount:this.practices?.length??0})}get onDemandCarouselOptions(){return y({...Ct,itemsCount:this.onDemands?.length??0})}get visibleChipsCarouselItemsCount(){return this.chipsBill.filter(t=>t.itemLength>0||"no_bills_to_pay"===t.type).length+(this.supplyCountActives?1:0)+this.chips.filter(t=>t.itemLength>0).length+this.chipsInsert.length}tooltipOptions={theme:"dark",icon:{value:"icon-leaf"},link:{value:{href:"/loyalty/landing",linktype:"external",url:"",anchor:"",target:""}},linkLoyaltyUser:{value:{href:"/loyalty",linktype:"internal",url:"",anchor:"",target:""}},linkText:{value:"Scopri di pi\xf9"},linkTextLoyaltyUser:{value:"Scopri di pi\xf9"},title:{value:"Raccogli i punti Plures!"},tooltipSubtitle:{value:"A ogni tua azione corrisponde un vantaggio in punti Plures. Entra a far parte della Community di persone che come te, hanno a cuore l\u2019ambiente!"},tooltipTitle:{value:"Noi pi\xf9, scopri tutti i vantaggi!"},tooltipSubtitleLoyaltyUser:{value:"A ogni tua azione corrisponde un vantaggio in punti Plures. Monitora i tuoi progressi e ottieni vantaggi reali."},tooltipTitleLoyaltyUser:{value:"Noi pi\xf9, scopri tutti i vantaggi!"}};constructor(t,n,s,a,l,c,d,h,g,b,m,v){this.authService=t,this.featuresService=n,this.router=s,this.pagesService=a,this.addressStorageService=l,this.helpersService=c,this.flowService=d,this.sitecoreService=h,this.gmapService=g,this.gigyaService=b,this.formBuilder=m,this.billService=v}ngOnInit(){if(this.helpersService.isBrowser){const t=document.getElementById("screenset-container_content");t&&t.remove()}this.openMigrationStatusModal(),this.featuresService.loadUserType().pipe((0,P.j)(()=>{this.initializePage()})).subscribe()}ngOnDestroy(){this.addressChangeSubscription?.unsubscribe()}onMigrationStatusModalClosed(){this.featuresService.openLocalizationModalIfComuneMissing()}openMigrationStatusModal(){this.featuresService.isMigrationStatusModalClosedOrStored()?this.featuresService.openLocalizationModalIfComuneMissing():this.featuresService.openMigrationStatusModalIfNeeded().subscribe(t=>{t||this.featuresService.openLocalizationModalIfComuneMissing()})}initializePage(){var t=this;return(0,_.A)(function*(){yield t.featuresService.loadScLinks(["faq","sistemiDiRaccolta","doveLoPorto","doveLoButto","cambioFornitore","nuovaAttivazione","voltura"]),t.createFaqCards(),t.listenAddressChanges(),t.initPageData(),t.gmapService.checkBrowserGeolocation().then(()=>{t.saveGeolocatedAddressToFlow()}),t.checkConsentLoyalty().subscribe(n=>{n&&(t.bannerLabels.title="Accedi",t.bannerLabels.description="Accedi",t.bannerLabels.cta="Accedi",t.bannerLabels.img="./assets/imgs/loyalty/img-banner-home-signed.png")}),t.sitecoreService.isProofPaymentEnabledObservable().subscribe(n=>{t.isDimostraPagamentoEnabled=n}),t.sitecoreService.isProofPaymentEnergyEnabledObservable().subscribe(n=>{t.isDimostraPagamentoEnergyEnabled=n}),t.checkAbandonmentsVisibility(),t.checkOnDemandSection()})()}createFaqCards(){this.wasteFaqLinks=[],this.featuresService.userType()?.sistemaDiRaccolta&&this.wasteFaqLinks.push({icon:"./assets/imgs/raccolta-faq.svg",title:"Qual \xe8 il mio sistema di raccolta?",description:"Porta a porta, stradale o misto? Scopri il metodo di raccolta della tua zona.",url:"",scLinkKey:"sistemiDiRaccolta"}),this.featuresService.userType()?.doveLoPorto&&this.wasteFaqLinks.push({icon:"./assets/imgs/Dove lo porto.svg",title:"Dove lo porto?",description:"Porta a porta, stradale o misto? Scopri il metodo di raccolta della tua zona.",url:"",scLinkKey:"doveLoPorto"}),this.featuresService.userType()?.doveLoButto&&this.wasteFaqLinks.push({icon:"./assets/imgs/dove-lo-butto.svg",title:"Dove lo butto?",description:"Scopri come differenziare: c'\xe8 sempre qualcosa da imparare per fare una raccolta differenziata di qualit\xe0.",url:"",scLinkKey:"doveLoButto"}),this.wasteFaqLinks.forEach(t=>{t.url=this.helpersService.scLinks[t.scLinkKey]||t.url}),this.energyFaqLinks.length&&this.energyFaqLinks.forEach(t=>{t.url=this.helpersService.scLinks[t.scLinkKey]||t.url})}initPageData(){this.resetPageData(),this.createFaqCards(),this.buildOnDemandActionCards(),this.loadContractAlerts(),this.loadBills(),this.loadCart(),this.loadPractices(),this.loadOnDemands(),this.supplyData=this.pagesService.supplyData,this.linkActivateSDD=`/flussi/metodo-pagamento/method-payment-section?codiceMandato=${this.supplyData?.billingAccount?.bollettaMultiservizio?this.supplyData?.billingAccount?.caMaster?.firstAvailableMandate:this.supplyData?.billingAccount?.firstAvailableMandate}&billingAccountId=${this.supplyData?.billingAccountId}&podPdr=${this.supplyData?.billingAccount?.name}&assetId=${this.supplyData?.id}`}listenAddressChanges(){this.addressChangeSubscription?.unsubscribe(),this.addressChangeSubscription=this.addressStorageService.address$.pipe((0,L.i)(1),(0,Y.F)((t,n)=>this.getAddressChangeKey(t)===this.getAddressChangeKey(n))).subscribe(()=>{this.featuresService.loadUserType(!0).pipe((0,P.j)(()=>this.initPageData())).subscribe()})}getAddressChangeKey(t){return t?[t.comune??"",t.streetName??"",t.civico??"",t.cap??"",t.lat??"",t.lng??""].join("|"):"null"}resetPageData(){this.practices=[],this.billsToPay=[],this.onDemands=[],this.contractAlerts=[],this.chips=[],this.chipsBill=[],this.chipsInsert=[],this.supplyList=[],this.waitPractices=!0,this.waitBills=!0,this.waitOnDemand=!0,this.waitEfficency=!0,this.supplyCount=0,this.supplyCountActives=0,this.percentageValue=0,this.linkActivateSDD="",this.options={...this.options,Cta:"",subt
38itle:"",recommendedAction:""}}buildOnDemandActionCards(){const t=this._localizationStore()?.storedComune?.trim(),n=[];this.featuresService.userType()?.onDemand&&n.push({icon:"./assets/imgs/OnDemand.svg",title:"Ritiri OnDemand",description:"Tu prenoti, noi ritiriamo...<br/>ingombranti e non solo!",ctaLabel:"Prenota un ritiro",url:"/flussi/ritiri-on-demand/init",canLoyalty:!0}),this.featuresService.userType()?.abbandoni&&n.push({icon:"./assets/imgs/segnalazioni-abbandono.svg",title:"Abbandoni",description:"Segnala rifiuti abbandonati",ctaLabel:"Segnala ora",url:"/flussi/segnalazioni/init",queryParams:{preselect:"RIFIUTI_ABBANDONATI_IN_STRADA_O_AREE_VERDI"}}),this.featuresService.userType()?.segnalazioni&&n.push({icon:"./assets/imgs/mega_phone.svg",title:"Segnalazioni",description:"Richiedi il nostro intervento straordinario",ctaLabel:"Segnala ora",url:"/flussi/segnalazioni/init"}),t&&this.featuresService.userType()?.cartaCartoneUnesco&&n.push({icon:"./assets/imgs/ondemand-carta.svg",title:"Ritiro carta e cartone",description:`${t} - Zona UNESCO`,ctaLabel:"Prenota un ritiro",url:"/flussi/ritiri-on-demand/init",queryParams:{preselect:"CARTA_CARTONE_ZONA_UNESCO"}}),this.onDemandActionCards=n}get bannerLoyalty(){return this.authService.account.canLoyalty}checkConsentLoyalty(){return(this.gigyaService.isSDKReady?(0,z.of)(!0):(0,X.H)(this.gigyaService.loadSDK())).pipe((0,A.n)(n=>{if(!this.helpersService.isBrowser||!n||!this.gigyaService.isSDKReady)throw{errorMessage:"Gigya SDK non disponibile"};return this.gigyaService.getAccountInfo().pipe((0,H.T)(s=>!!s?.preferences["iscrizione-loyalty"]?.isConsentGranted))}))}saveGeolocatedAddressToFlow(){var t=this;return(0,_.A)(function*(){try{const n=yield t.gmapService.getUserLocationFromBrowser();if(!n)return;const s=yield t.gmapService.reverseGeocode(n);if(!s)return;const a=t.helpersService.buildAddressDetailsFromGoogleParsed(s);t.savedAddressDetails={...a,latitude:String(n.lat),longitude:String(n.lng)},t.savedGeoAddress=s.formatted_address}catch(n){console.warn("Impossibile salvare report_location da geolocalizzazione:",n)}})()}loadContractAlerts(){const t=[...new Set(this.supplyList.map(s=>s.premises?.codComImpianto).filter(Boolean))];this.featuresService.begru&&t.push(this.featuresService.begru);const n=this.sitecoreService.getActiveAlerts("BY_CONTRACT",t);(0,V.p)({contractAlerts:n}).subscribe({next:s=>{const l=[...s.contractAlerts].filter((c,d,h)=>d===h.findIndex(g=>g.id===c.id));this.contractAlerts=l,setTimeout(()=>{this.forceMarqueeRecalculation()},200)},error:s=>{this.contractAlerts=[]}})}forceMarqueeRecalculation(){typeof window<"u"&&window.dispatchEvent(new Event("resize"))}loadBills(){this.waitBills=!0;const t=this.authService.account?.accountId;t?this.pagesService.getSupplyData(t).pipe((0,A.n)(n=>{this.supplyList=Array.isArray(n?.results)?n.results:[],this.loadContractAlerts(),this.updateSupplyCounters();const s=new Ge.mf(this.supplyList,t);return this.billService.getBills(s,!0)})).subscribe({next:n=>{const s=Array.isArray(n?.partiteList)?n.partiteList:[],a=this.getBillingCount(n?.toPayInvoicesCount),l=new Set;this.billsToPay=s.map(c=>this.enrichHomeInvoice(c,this.supplyList,n?.isMultisito,n?.codiceCliente||n?.customerCode)).filter(c=>this.isHomeBillVisible(c)).filter(c=>{const d=this.getHomeInvoiceKey(c);return!l.has(d)&&(l.add(d),!0)}).map(c=>this.billService.mapInvoiceToBill(c,this.buildHomeBillContext(c))),this.updateBillsNotifications(a),this.waitBills=!1},error:()=>{this.billsToPay=[],this.waitBills=!1}}):this.waitBills=!1}enrichHomeInvoice(t,n,s=!1,a=""){const l=this.billService.getBillTransactionData(t,n),c=l.supply,d=this.billService.getInvoiceStatus(t);return{...t,statoDocumento:t?.statoDocumento||d,servizio:t?.servizio||t?.service||c?.commodity||"",codiceCliente:l.customerCode||a,contoContrattuale:l.contractualAccount,isMultisito:!0===t?.isMultisito||!0===s,address:t?.indirizzoFornitura||t?.address||(c?this.helpersService.prettyAddress(c):""),supplyDataId:c?.id||"",billingAccountId:t?.billingAccountId||c?.billingAccountId||"",podPdr:t?.podPdr||t?.puntoDiFornitura||c?.servicePoint?.name||c?.servicePoint?.servicePointNumber||"",begru:t?.begru||c?.premises?.codComImpianto||"",codiceClienteCRM:t?.codiceClienteCRM||c?.account?.codiceClienteCRM||""}}buildHomeBillContext(t){return this.billService.buildBillContext(null,{customerCode:t?.codiceCliente,service:t?.servizio,contractualAccount:t?.contoContrattuale,supplyDataId:t?.supplyDataId,supplyId:t?.supplyDataId,billingAccountId:t?.billingAccountId,podPdr:t?.podPdr,commodity:t?.servizio,supplyCommodity:t?.servizio,isHome:!0,isDimostraPagamentoEnabled:this.isDimostraPagamentoEnabled})}isHomeBillVisible(t){const n=this.billService.getInvoiceStatus(t),s=n.toLowerCase();return(0,Re.FZ)(n)||s.includes("rateizzat")||s.includes("pagamento in verifica")||s.includes("salvo buon fine")}getHomeInvoiceKey(t){return[t?.company,t?.contoContrattuale,t?.numeroDocumento||t?.numeroDocumentoAcconto||t?.numeroSollecito,t?.groupType,this.billService.getInvoiceStatus(t)].join("|")}getBillingCount(t){const n=Number(t);return Number.isFinite(n)?n:0}updateSupplyCounters(){this.supplyCount=this.supplyList.length;const t=this.supplyList.filter(s=>"Contratto Attivo"===s.statusWEB),n=t.map(s=>s.commodity?.toLowerCase()||"");this.supplyCountActives=t.length,this.hasTari=n.includes("tari"),this.hasTaric=n.some(s=>["ele","gas","taric"].includes(s))}updateBillsNotifications(t){this.supplyCountActives&&(t>0?this.initNotify("bills",t,this.billsToPay[0]?.podPdr):this.initNotify("no_bills_to_pay"))}loadPractices(){const t=this.authService.account?.accountId;t?this.pagesService.getPractices(t).subscribe({next:n=>{let l,s=n.results||[],a=0;s?.length&&(s.forEach(c=>{const d=c.statusWeb;d&&"in lavorazione"===d.toLowerCase()&&(l=c.id,a+=1,this.practices.push((0,Ue.fV)(c)))}),this.practices=this.practices.slice(0,10),1==a?this.initNotify("practices",a,l):this.initNotify("practices",a)),this.waitPractices=!1},error:n=>{this.waitPractices=!1}}):this.waitPractices=!1}loadCart(){const t=this.authService.account?.accountId;t?this.pagesService.getAbandonedCarts(t).subscribe({next:n=>{let l,s=n||[],a=0;s?.length&&(s.forEach(c=>{"In corso"==c.status&&(l=c.id,a+=1)}),1==a?this.initNotify("offer",a,l):this.initNotify("offer",a))}}):this.waitOnDemand=!1}loadOnDemands(){const t=this.authService.account?.accountId;t?this.flowService.getOnDemandReportCaseList(t).subscribe({next:n=>{if(n.results&&n.results.length)for(let s of n.results)this.onDemands.push(this.pagesService.buildContractCardFromReportOnDemand(s));else this.onDemands=[];if(n.results&&n.results.length>=1){const s=n.results.reduce((a,l)=>{const c=this.mapOndemand[l.typeL3]||"ondemand";return"IN_LAVORAZIONE"===l.status&&(a[c]=(a[c]||0)+1),a},{});
38Object.entries(s).forEach(([a,l])=>{this.initNotify(a,l)})}this.waitOnDemand=!1},error:n=>{this.waitOnDemand=!1}}):this.waitOnDemand=!1}goToPractice(t){this.router.navigateByUrl("/pratiche/utenza/"+t)}goToOnDemand(t){this.router.navigate(["on-demand/dettaglio"],{queryParams:{reportId:t}})}get userFirstName(){return this.authService.user?.Contact?.nome?.toLocaleLowerCase()||""}get accountBusinessName(){let t;return"Residenziale"!=this.authService.account.segmentoCliente&&this.authService.account.ragioneSociale&&(t=this.authService.account.nameAccount),t||""}ondemandSliderOptions={perPage:1,padding:{right:"34%"},arrows:!0,breakpoints:{1024:{perPage:1,padding:{right:"20%"},arrows:!1}}};ondemandCards=[{containerCustomClasses:"p-6 border-dark-300!",icon:"./assets/imgs/sofa.svg",layout:"border",title:"Ingombranti",titleClasses:"text-dark-900!",description:"Per il ritiro del frigo rotto, dell\u2019armadio o della poltrona che non usi pi\xf9.",descriptionClasses:"text-dark-700",url:"/flussi/ritiri-on-demand/init",urlText:"Prenota ora"},{containerCustomClasses:"p-6 border-dark-300!",icon:"./assets/imgs/green-grass.svg",layout:"border",title:"Sfalci e potature",titleClasses:"text-dark-900!",description:"Il modo pi\xf9 comodo per smaltire erba e rami del tuo giardino.",descriptionClasses:"text-dark-700",url:"/flussi/ritiri-on-demand/init",urlText:"Prenota ora"}];mapOndemand={"OnDemand - Ingombranti":"ritiroingombranti","OnDemand - Olio alimentare":"ritiroolialimentari","OnDemand - RUP/RAEE":"ritirorupepiccoliraee","OnDemand - Tessili":"ritirotessili","Carta e cartone UNESCO":"ritirocartaecartone","OnDemand - Sfalci e potature":"ritirosfalciepotature"};mapNotify={offer:{text:[" attivazioni da concludere"," attivazione da concludere"],imgs:"./assets/imgs/conclude-contract.svg",urls:["/pratiche/carrelli","/pratiche/carrelli"]},practices:{text:[" richieste in corso"," richiesta in corso"],imgs:"./assets/imgs/conclude-practices.svg",urls:["/pratiche/utenza","/pratiche/utenza"]},bills:{text:["Hai bollette da pagare","Hai bollette da pagare"],imgs:"./assets/imgs/wallet.svg",urls:["/utenze","/utenze/fornitura/bollette-pagamenti?assetId="]},no_bills_to_pay:{text:["Tutte le bollette sono pagate. Grazie!"],imgs:"./assets/imgs/wallet.svg",urls:[""]},ondemand:{text:[" ritiri OnDemand fissati"," ritiro OnDemand fissato"],imgs:"./assets/imgs/ondemand-generico.svg",urls:["/pratiche/on-demand","/on-demand/dettaglio?reportId="]},ritirotessili:{text:[" ritiri OnDemand tessili fissati"," ritiro OnDemand tessili fissato"],imgs:"./assets/imgs/ondemand-tessili.svg",urls:["/pratiche/on-demand","/on-demand/dettaglio?reportId="]},ritiroingombranti:{text:[" ritiri OnDemand ingombranti fissati"," ritiro OnDemand ingombranti fissato"],imgs:"./assets/imgs/first-level-icon.svg",urls:["/pratiche/on-demand","/on-demand/dettaglio?reportId="]},ritiroolialimentari:{text:[" ritiri OnDemand olii alimentari fissati"," ritiro OnDemand olii alimentari fissato"],imgs:"./assets/imgs/ondemand-olio.svg",urls:["/pratiche/on-demand","/on-demand/dettaglio?reportId="]},ritirorupepiccoliraee:{text:[" ritiri OnDemand RUP e piccoli RAEE fissati"," ritiro OnDemand RUP e piccoli RAEE fissato"],imgs:"./assets/imgs/ondemand-raee.svg",urls:["/pratiche/on-demand","/on-demand/dettaglio?reportId="]},ritirosfalciepotature:{text:[" ritiri OnDemand sfalci e potature fissati"," ritiro OnDemand sfalci e potature fissato"],imgs:"./assets/imgs/ondemand-sfalci.svg",urls:["/pratiche/on-demand","/on-demand/dettaglio?reportId="]},ritirocartaecartone:{text:[" ritiri OnDemand carta e cartone fissati"," ritiro OnDemand carta e cartone fissato"],imgs:"./assets/imgs/ondemand-carta.svg",urls:["/pratiche/on-demand","/on-demand/dettaglio?reportId="]}};initNotify(t,n=null,s=null,a=null){let l=0,c=!1,d=!1,h=!0;("bills"===t||"expired_bills"===t)&&(d=!0),"bills"===t&&(h=!1);const g=a||("bills"===t||"expired_bills"===t||"no_bills_to_pay"===t?this.chipsBill:this.chips);"number"==typeof n?(c=!1,d&&n>=1?l=0:d||(n>1?l=0:1==n&&(l=1))):"string"==typeof n&&(c=!0,l=1);const b=!c&&h&&"number"==typeof n&&n>0,m=1==n?this.mapNotify[t].text[1]:this.mapNotify[t].text[0],v=m.includes("{count}")?m.replace("{count}",String(n??"")):(b?n:"")+m+(c&&h?n:"");g.push({itemLength:"number"==typeof n?n:1,label:v,subLabel:"bills"===t?"Paga ora!":void 0,variant:"chip",type:t,icon:this.mapNotify[t].imgs,iconCustomClasses:{"width.px":24,"heigth.px":24},iconPosition:"left",containerCustomClasses:"w-full lg:h-[132px] h-[114px] p-3",customClasses:"text-primary-1000! text-nowrap",customSize:"py-3 px-3",url:this.mapNotify[t].urls[l]+(!s||c||d?"":"/"+s)+(s&&c&&!d?s:"")})}checkAbandonmentsVisibility(){this.sitecoreService.isAbandonmentsVisibleObservable().subscribe({next:t=>{},error:t=>{}})}checkOnDemandSection(){this.sitecoreService.isOnDemandEnabledObservable().subscribe({next:t=>{t&&(this.showOnDemandSection=t)},error:t=>{this.showOnDemandSection=!1}})}static \u0275fac=function(n){return new(n||i)(e.rXU(U.kX),e.rXU(G.D),e.rXU(k.Ix),e.rXU(Ve.W),e.rXU(K.h),e.rXU(C.V),e.rXU(W.U),e.rXU(Q.M),e.rXU(Z.d),e.rXU(q.t),e.rXU(xt.ok),e.rXU(Ae.p))};static \u0275cmp=e.VBU({type:i,selectors:[["app-home-private"]],decls:36,vars:18,consts:[["singlePracticeCard",""],["singleOnDemandCard",""],[1,"block-wrapper","full-template","relative"],[1,"bg-light-70","relative","z-1"],[1,"lg:pt-16","pt-10"],[1,"container","mx-auto","px-6","lg:items-center","flex","flex-col","justify-between","flex-wrap","lg:flex-row","gap-8","lg:gap-4"],[1,"text-grey-1000","font-semibold","mb-0","capitalize"],[1,"mt-2"],[4,"ngIf"],[1,"lg:pt-8","lg:pb-16","pt-6","pb-10"],[3,"options",4,"ngIf"],["class","container mx-auto px-6",4,"ngIf"],[1,"container","mx-auto","px-6","lg:pt-[72px]","pt-[50px]","lg:pb-8","pb-6"],["class","lg:pt-8 lg:pb-11 py-6 container mx-auto px-6",4,"ngIf"],["class","container mx-auto px-6 lg:pt-8 lg:pb-11 py-6",4,"ngIf"],[1,"container","mx-auto","px-6","flex","flex-row","justify-between","items-center","lg:mb-6","mb-5"],[1,"container","mx-auto","px-6"],[1,"container","mx-auto","px-6","lg:pt-8","lg:pb-11","py-6"],[1,"container","mx-auto","px-6","lg:pt-8","pt-6"],[1,"w-full"],[1,"lg:mb-8","mb-6","flex","items-center","justify-between","gap-4"],[1,"font-semibold","text-dark-900","lg:text-2xl","text-xl"],[1,"shrink-0","text-sm","font-semibold","text-primary-1000","lg:text-base",3,"routerLink"],[3,"tabsCount","showAllDesktop"],["key","environment","label","Ambiente"],["key","energy","label","Energia"],[1,"lg:pt-8","pt-6","lg:pb-16","pb-10","container","mx-auto","px-6"],[3,"maxPosts"],[3,"closed"],[3,"options"],[3,"isHome",4,"ngIf"],[3,"isHome"],[1,"lg:text-2xl","text-xl","font-semibold","text-dark-900","mb-8"],["class","h-auto",4,"ngFor","ngForOf"],[1,"h-auto"],[1,"block","h-full",3,"ngClass","invoices","isHome","commodity","supplyDataId","billingAccountId","podPdr"],[1,"lg:pt-8","lg:pb-11","py-6","container","mx-auto","px-6"],[1,"gradient-banner-loyalty","border","rounded-xl","lg:p-10","p-6","flex","flex-col","lg:flex-row","gap-6","items-center"],[1,"flex","flex-col","justify-center","w-full","lg:w-1/2","lg:order-1","order-2"],[1,"pb-3","text-accent-tertiary","text-12"],[1,"font-semibold","lg:text-4xl","text-20","mb-3","text-white"],[1,"text-white/80","lg:text-xl","leading-6"],[1,"mt-8"],["routerLink","/loyalty",3,"options"],[1,"flex","justify-center","lg:justify-end","w-full","lg:w-1/2","mb-6","lg:mb-0","lg:order-2","order-1"],["alt","","class","pointer-events-none select-none max-w-80 lg:max-w-none mx-auto max-h-[264px]",3,"src",4,"ngIf"],["alt","",1,"pointer-events-none","select-none","max-w-80","lg:max-w-none","mx-auto","max-h-[264px]",3,"src"],[1,"lg:text-2xl","text-xl","font-semibold","text-dark-900","mb-4"],["label","Richieste",4,"ngIf"],["label","Ritiri",4,"ngIf"],["label","Richieste"],[4,"ngIf","ngIfElse"],[3,"click","isCarousel","carouselItemsCount","options"],[3,"options","isCarousel","carouselItemsCount","click",4,"ngFor","ngForOf"],[3,"click","options","isCarousel","carouselItemsCount"],["label","Ritiri"],[4,"ngFor","ngForOf"],[1,"lg:text-2xl","text-xl","font-semibold","text-dark-900"],["routerLink","/servizi",1,"shrink-0","text-sm","font-semibold","text-primary-1000","lg:text-base",3,"queryParams"],[1,"lg:mb-8","mb-6"],[1,"flex","flex-col","gap-4","lg:flex-row","lg:justify-between","lg:items-center","lg:gap-6"],["class","block w-full lg:flex-1 h-full",3,"options","canLoyalty",4,"ngFor","ngForOf"],[1,"block","w-full","lg:flex-1","h-full",3,"options","canLoyalty"],[1,"lg:text-2xl","text-xl","font-semibold","text-dark-900","lg:mb-6","mb-5"],[1,"border-r","border-gray-200","py-2","mb-4"],[1,"block",3,"speed"],[1,"flex","min-w-max","gap-3","lg:gap-4"],["class","flex shrink-0 flex-col rounded-2xl border border-grey-500 bg-white p-4 w-[380px]",4,"ngFor","ngForOf"],[1,"flex","shrink-0","flex-col","rounded-2xl","border","border-grey-500","bg-white","p-4","w-[380px]"],[3,"alert"],["key","environment","label","Ambiente",4,"ngIf"],[1,"grid","gap-3","lg:gap-4"],["class","group flex items-center gap-4 roun
38ded-[12px] bg-primary-100 p-4 lg:p-6 lg:h-[128px] h-[140px]",3,"routerLink",4,"ngFor","ngForOf"],[1,"group","flex","items-center","gap-4","rounded-[12px]","bg-primary-100","p-4","lg:p-6","lg:h-[128px]","h-[140px]",3,"routerLink"],["alt","","class","h-10 w-10 shrink-0",3,"src",4,"ngIf"],[1,"min-w-0","flex-1"],[1,"text-[18px]","font-semibold","text-dark-900"],[1,"text-[14px]","text-dark-700","lg:text-base","lg:leading-6"],["src","./assets/imgs/chevron-right.svg","class","text-primary-1000",4,"ngIf"],["alt","",1,"h-10","w-10","shrink-0",3,"src"],["src","./assets/imgs/chevron-right.svg",1,"text-primary-1000"]],template:function(n,s){1&n&&(e.j41(0,"div",2)(1,"div",3),e.nrm(2,"div",4),e.j41(3,"div",5)(4,"div")(5,"h2",6),e.EFF(6),e.k0s(),e.j41(7,"p",7),e.EFF(8,"Ecco il tuo profilo"),e.DNE(9,Tt,2,1,"b",8),e.EFF(10," in breve"),e.k0s()()(),e.j41(11,"div",9),e.DNE(12,Dt,1,2,"lib-loading-spinner",10)(13,Et,10,2,"div",11),e.k0s()(),e.nVh(14,$t,5,2,"div",12),e.DNE(15,jt,18,6,"div",13)(16,qt,6,2,"div",14),e.nVh(17,Wt,5,2,"div",15),e.j41(18,"div",16),e.nrm(19,"lib-localization-card"),e.k0s(),e.nVh(20,Jt,3,2,"div",17),e.nVh(21,ti,7,2,"div",18),e.j41(22,"div",19)(23,"div",17)(24,"div",20)(25,"h3",21),e.EFF(26," Domande frequenti "),e.k0s(),e.j41(27,"a",22),e.EFF(28," Vedi tutte "),e.k0s()(),e.j41(29,"lib-tab-group-new",23),e.nVh(30,ai,1,1,"lib-tab-group-section",24),e.nVh(31,ui,3,1,"lib-tab-group-section",25),e.k0s()()(),e.DNE(32,pi,1,2,"lib-loading-spinner",10),e.nVh(33,di,2,1,"div",26),e.nrm(34,"lib-blogs-private-area",27),e.k0s(),e.j41(35,"lib-migration-status-modal",28),e.bIt("closed",function(){return s.onMigrationStatusModalClosed()}),e.k0s()),2&n&&(e.R7$(6),e.SpI("Ciao ",s.userFirstName,"! "),e.R7$(3),e.Y8G("ngIf",s.accountBusinessName),e.R7$(3),e.Y8G("ngIf",s.featuresService.userTypeLoading()||s.waitBills||s.waitPractices||s.waitOnDemand),e.R7$(),e.Y8G("ngIf",!s.featuresService.userTypeLoading()&&!s.waitBills&&!s.waitPractices&&!s.waitOnDemand&&((null==s.chipsBill?null:s.chipsBill.length)||(null==s.chips?null:s.chips.length)||(null==s.chipsInsert?null:s.chipsInsert.length))),e.R7$(),e.vxM(!s.waitBills&&null!=s.billsToPay&&s.billsToPay.length?14:-1),e.R7$(),e.Y8G("ngIf",s.bannerLoyalty),e.R7$(),e.Y8G("ngIf",!s.featuresService.userTypeLoading()&&!s.waitPractices&&!s.waitOnDemand&&((null==s.practices?null:s.practices.length)||(null==s.onDemands?null:s.onDemands.length))),e.R7$(),e.vxM(s.featuresService.city&&s.featuresService.isWasteUser&&s.showOnDemandSection?17:-1),e.R7$(3),e.vxM(s.featuresService.city&&s.featuresService.isWasteUser&&s.showOnDemandSection?20:-1),e.R7$(),e.vxM((s.featuresService.isWasteUser||s.featuresService.isTaricUser)&&null!=s.contractAlerts&&s.contractAlerts.length?21:-1),e.R7$(6),e.Y8G("routerLink",s.helpersService.scLinks.faq),e.R7$(2),e.Y8G("tabsCount",s.wasteFaqLinks.length&&s.energyFaqLinks.length?2:1)("showAllDesktop",s.isDesktop()),e.R7$(),e.vxM(s.wasteFaqLinks.length?30:-1),e.R7$(),e.vxM(s.energyFaqLinks.length?31:-1),e.R7$(),e.Y8G("ngIf",s.featuresService.userTypeLoading()),e.R7$(),e.vxM(s.featuresService.userTypeLoading()?-1:33),e.R7$(),e.Y8G("maxPosts",4))},dependencies:[p.MD,p.YU,p.Sq,p.bT,w.Wk,st.A,S.Q,E.q,Xe.W,He.j,Fe.G,Pe.J,R.T,f.iu,f.DM,$e.N,Ee.c,we,Ze,Oe.E,j,O,it,nt.$,ot.w,ct,ht],styles:["\n.text-gradient-home[_ngcontent-%COMP%]{background:linear-gradient(269deg,#46e266,#482dd5);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.gradient-banner-loyalty[_ngcontent-%COMP%]{background:#482dd5;background:linear-gradient(15deg,#482dd5 0% 50%,#482dd533 95%)}.gradient-banner-ondemand[_ngcontent-%COMP%]{background:#482dd5;background:linear-gradient(15deg,#482dd5 0% 50%,#46e266 95%)}"]})}return i})()}}]);
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.