PageSourceSearch

https://www.inail.it/app/myinfe/680.c3b7ce00ed0302e7.js

js inail.it collected 2026-10-01 08:48:05 UTC 47,193 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkgestione_kpi=self.webpackChunkgestione_kpi||[]).push([[680],{8680:(zt,b,r)=>{r.r(b),r.d(b,{PraticheModule:()=>Ht});var d=r(177),g=r(9934),T=r(7586),R=r(5190),O=r(4187),P=r(9517),N=r(9853),l=r(9417),v=r(5492),A=r(622),C=r(9146),u=r(6977),F=r(6697),c=r(3638),E=r(1922),B=r(5312),t=r(4438),k=r(5191),G=r(7807),y=r(6290),S=r(4061),L=r(6081),D=r(2695),_=r(5236);const M=["spinnerAggiorna2"];function U(n,s){if(1&n&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.JRh(e.statusPratiche)}}function $(n,s){1&n&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"PRATICHE.CONSULTA")))}function V(n,s){if(1&n){const e=t.RV6();t.j41(0,"app-dialog-rating",19),t.bIt("closeDialog",function(i){t.eBV(e);const o=t.XpG();return t.Njj(o.closeDialog(i))}),t.k0s()}if(2&n){const e=t.XpG();t.Y8G("isLoading",e.isLoading)("isError",e.isError)("user",e.userData)("setId",e.surveyResponse.id)("setDomande",e.surveyResponse.domande)("setFunzione",e.surveyResponse.tipologiaRating)("setFunctionBody",e.surveyResponse.funzione)}}function x(n,s){1&n&&(t.nrm(0,"p",25),t.nI1(1,"translate")),2&n&&t.Y8G("innerHTML",t.bMT(1,1,"PRATICHE.DESRIZIONE_BANNER"),t.npT)}function X(n,s){if(1&n){const e=t.RV6();t.j41(0,"div",20)(1,"h2"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,x,2,3,"p",21),t.j41(5,"div",22)(6,"button",23),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return i.startPolling(),t.Njj(i.changeFocus())}),t.j41(7,"span"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.nrm(10,"span",24),t.k0s()()()}if(2&n){const e=t.XpG();t.R7$(2),t.JRh(t.bMT(3,3,"PRATICHE.AVVISO_BANNER")),t.R7$(2),t.Y8G("ngIf",!e.disableAggiorna),t.R7$(4),t.JRh(t.bMT(9,5,"PRATICHE.RICHIEDI_AGGIORNAMENTO"))}}function w(n,s){1&n&&(t.j41(0,"div",20)(1,"h2"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"p",25),t.nI1(5,"translate"),t.k0s()),2&n&&(t.R7$(2),t.JRh(t.bMT(3,2,"PRATICHE.AVVISO_BANNER")),t.R7$(2),t.Y8G("innerHTML",t.bMT(5,4,"PRATICHE.AGGIORNAMENTO_BANNER"),t.npT))}function Y(n,s){1&n&&(t.j41(0,"div",26)(1,"div",27)(2,"span",28),t.EFF(3,"TESTO_GENERICO.MESSAGGIO_CARICAMENTO"),t.k0s()()())}function H(n,s){if(1&n&&(t.j41(0,"span",59),t.EFF(1,"PRATICHE.NUMERO_PRATICHE "),t.j41(2,"strong"),t.EFF(3),t.k0s()()),2&n){const e=t.XpG(2);t.R7$(3),t.JRh(e.filteredList.length)}}function z(n,s){if(1&n){const e=t.RV6();t.j41(0,"div",60)(1,"a",61),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.goToProvvedimenti())}),t.j41(3,"span",7),t.EFF(4,"PRATICHE.TUTTI_PROVVEDIMENTI"),t.k0s(),t.nrm(5,"span",62),t.k0s()()}2&n&&(t.R7$(),t.FS9("title",t.bMT(2,1,"PRATICHE.TUTTI_PROVVEDIMENTI")))}function J(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",63),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return i.startPolling(),t.Njj(i.changeFocus())}),t.j41(2,"span",7),t.EFF(3,"PRATICHE.RICHIEDI_AGGIORNAMENTO"),t.k0s(),t.nrm(4,"span",24),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("ngClass",e.disableAggiorna?"inail-link-goto disabled":"inail-link-goto"),t.BMQ("aria-label",t.bMT(1,2,"PRATICHE.RICHIEDI_AGGIORNAMENTO"))}}function Q(n,s){if(1&n){const e=t.RV6();t.j41(0,"a",64),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.goToProvvedimenti())}),t.j41(2,"span",7),t.EFF(3,"PRATICHE.TUTTI_PROVVEDIMENTI"),t.k0s(),t.nrm(4,"span",62),t.k0s()}2&n&&t.FS9("title",t.bMT(1,1,"PRATICHE.TUTTI_PROVVEDIMENTI"))}function W(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",65),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.sortPage("1",!1,"numeroCaso","caso-pratiche"))}),t.nrm(3,"span",66),t.k0s()}if(2&n){const e=t.XpG(2);t.qtP("aria-label","",t.bMT(1,4,"BUTTON_GENERICI.BUTTON_SORT.ARIALABEL")," ",e.firstStatus,""),t.FS9("title",t.bMT(2,6,"BUTTON_GENERICI.BUTTON_SORT.TITOLO"))}}function q(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",67),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.sortPage("1",!0,"numeroCaso","caso-pratiche"))}),t.nrm(3,"span",68),t.k0s()}if(2&n){const e=t.XpG(2);t.qtP("aria-label","",t.bMT(1,4,"BUTTON_GENERICI.BUTTON_SORT.ARIALABEL")," ",e.firstStatus,""),t.FS9("title",t.bMT(2,6,"BUTTON_GENERICI.BUTTON_SORT.TITOLO"))}}function Z(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",69),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.sortPage("2",!1,"dataInfortunio","data-evento-pratiche"))}),t.nrm(3,"span",66),t.k0s()}if(2&n){const e=t.XpG(2);t.qtP("aria-label","",t.bMT(1,4,"BUTTON_GENERICI.BUTTON_SORT.ARIALABEL")," ",e.secondStatus,""),t.FS9("title",t.bMT(2,6,"BUTTON_GENERICI.BUTTON_SORT.TITOLO"))}}function K(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",70),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.sortPage("2",!0,"dataInfortunio","data-evento-pratiche"))}),t.nrm(3,"span",68),t.k0s()}if(2&n){const e=t.XpG(2);t.qtP("aria-label","",t.bMT(1,4,"BUTTON_GENERICI.BUTTON_SORT.ARIALABEL")," ",e.secondStatus,""),t.FS9("title",t.bMT(2,6,"BUTTON_GENERICI.BUTTON_SORT.TITOLO"))}}
1function tt(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",71),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.sortPage("3",!1,"tipo","tipologia-pratiche"))}),t.nrm(3,"span",66),t.k0s()}if(2&n){const e=t.XpG(2);t.qtP("aria-label","",t.bMT(1,5,"BUTTON_GENERICI.BUTTON_SORT.ARIALABEL")," ",e.thirdStatus,""),t.Mz_("title","",t.bMT(2,7,"BUTTON_GENERICI.BUTTON_SORT.TITOLO")," tipologia")}}function et(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",72),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.sortPage("3",!0,"tipo","tipologia-pratiche"))}),t.nrm(3,"span",68),t.k0s()}if(2&n){const e=t.XpG(2);t.qtP("aria-label","",t.bMT(1,5,"BUTTON_GENERICI.BUTTON_SORT.ARIALABEL")," ",e.thirdStatus,""),t.Mz_("title","",t.bMT(2,7,"BUTTON_GENERICI.BUTTON_SORT.TITOLO")," tipologia")}}function it(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",73),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.sortPage("4",!1,"stato","stato-pratiche"))}),t.nrm(3,"span",66),t.k0s()}if(2&n){const e=t.XpG(2);t.qtP("aria-label","",t.bMT(1,5,"BUTTON_GENERICI.BUTTON_SORT.ARIALABEL")," ",e.fourthStatus,""),t.Mz_("title","",t.bMT(2,7,"BUTTON_GENERICI.BUTTON_SORT.TITOLO")," stato")}}function nt(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",74),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.sortPage("4",!0,"stato","stato-pratiche"))}),t.nrm(3,"span",68),t.k0s()}if(2&n){const e=t.XpG(2);t.qtP("aria-label","",t.bMT(1,5,"BUTTON_GENERICI.BUTTON_SORT.ARIALABEL")," ",e.fourthStatus,""),t.Mz_("title","",t.bMT(2,7,"BUTTON_GENERICI.BUTTON_SORT.TITOLO")," stato")}}function at(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",75),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.sortPage("5",!1,"codiceSede","codice-sede-pratiche"))}),t.nrm(3,"span",66),t.k0s()}if(2&n){const e=t.XpG(2);t.qtP("aria-label","",t.bMT(1,4,"BUTTON_GENERICI.BUTTON_SORT.ARIALABEL")," ",e.fifthStatus,""),t.FS9("title",t.bMT(2,6,"BUTTON_GENERICI.BUTTON_SORT.TITOLO"))}}function st(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",76),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.sortPage("5",!0,"codiceSede","codice-sede-pratiche"))}),t.nrm(3,"span",68),t.k0s()}if(2&n){const e=t.XpG(2);t.qtP("aria-label","",t.bMT(1,4,"BUTTON_GENERICI.BUTTON_SORT.ARIALABEL")," ",e.fifthStatus,""),t.FS9("title",t.bMT(2,6,"BUTTON_GENERICI.BUTTON_SORT.TITOLO"))}}function ot(n,s){1&n&&(t.j41(0,"tbody")(1,"tr")(2,"td",77)(3,"div",78),t.nrm(4,"span",79),t.EFF(5),t.nI1(6,"translate"),t.k0s()()()()),2&n&&(t.R7$(5),t.SpI("",t.bMT(6,1,"TESTO_GENERICO.SERVIZIO_NON_DISPONIBILE")," "))}function rt(n,s){1&n&&(t.j41(0,"tbody")(1,"tr")(2,"td",77)(3,"div",78),t.nrm(4,"span",79),t.EFF(5),t.nI1(6,"translate"),t.k0s()()()()),2&n&&(t.R7$(5),t.SpI("",t.bMT(6,1,"PRATICHE.NO_PRATICHE")," "))}function lt(n,s){if(1&n){const e=t.RV6();t.j41(0,"tr")(1,"td"),t.EFF(2),t.k0s(),t.j41(3,"td"),t.EFF(4),t.k0s(),t.j41(5,"td"),t.EFF(6),t.k0s(),t.j41(7,"td"),t.EFF(8),t.k0s(),t.j41(9,"td"),t.EFF(10),t.k0s(),t.j41(11,"td")(12,"a",82),t.nI1(13,"translate"),t.nI1(14,"translate"),t.bIt("click",function(){const i=t.eBV(e).$implicit,o=t.XpG(5);return t.Njj(o.goToDetail(i))}),t.j41(15,"span",7),t.EFF(16,"BUTTON_GENERICI.DETTAGLIO.TITOLO_CAPS"),t.k0s(),t.nrm(17,"span",62),t.k0s()()()}if(2&n){const e=s.$implicit;t.R7$(2),t.JRh(e.numeroCaso),t.R7$(2),t.JRh(e.dataInfortunio),t.R7$(2),t.JRh(e.tipo),t.R7$(2),t.JRh(e.stato),t.R7$(2),t.JRh(e.codiceSede),t.R7$(2),t.FS9("title",t.bMT(13,7,"BUTTON_GENERICI.DETTAGLIO.TITOLO_CAPS")),t.BMQ("aria-label",t.bMT(14,9,"BUTTON_GENERICI.DETTAGLIO.VEDI_DETT"))}}function ct(n,s){if(1&n&&(t.j41(0,"tbody"),t.DNE(1,lt,18,11,"tr",81),t.k0s()),2&n){const e=t.XpG(4);t.R7$(),t.Y8G("ngForOf",e.paginatedListPrimaryTab[e.currentPage-1].iteams)}}function dt(n,s){if(1&n&&(t.qex(0),t.DNE(1,ct,2,1,"tbody",80),t.bVm()),2&n){t.XpG(2);const e=t.sdS(59),a=t.XpG();t.R7$(),t.Y8G("ngIf",a.filteredList&&a.filteredList.length>0&&null!=a.filteredList.length)("ngIfElse",e)}}
1function pt(n,s){if(1&n&&(t.qex(0),t.DNE(1,dt,2,2,"ng-container",80),t.bVm()),2&n){t.XpG();const e=t.sdS(57),a=t.XpG();t.R7$(),t.Y8G("ngIf",!a.errorCall)("ngIfElse",e)}}function gt(n,s){if(1&n){const e=t.RV6();t.j41(0,"app-paginator",83),t.bIt("confirm",function(i){t.eBV(e);const o=t.XpG(2);return t.Njj(o.changePage(i))}),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("page",e.currentPage)("totalElement",e.paginatedListPrimaryTab.length)}}function ut(n,s){if(1&n){const e=t.RV6();t.j41(0,"section",29)(1,"h2",28),t.EFF(2,"PRATICHE.ELENCO_PRATICHE"),t.k0s(),t.j41(3,"div",4)(4,"div",30),t.DNE(5,H,4,1,"span",31),t.k0s(),t.j41(6,"div",32)(7,"div",33)(8,"app-tab-filtri-container",34),t.bIt("reset",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.reset(i.TabCounting.PRIMARY))})("submit",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.submit())}),t.nrm(9,"app-filter",35),t.k0s()(),t.j41(10,"div",36)(11,"h3",28),t.EFF(12,"PRATICHE.TABELLA.TITOLO"),t.k0s(),t.DNE(13,z,6,3,"div",37),t.j41(14,"div",38)(15,"div"),t.EFF(16),t.nI1(17,"translate"),t.nI1(18,"date"),t.nI1(19,"date"),t.DNE(20,J,5,4,"button",39)(21,Q,5,3,"a",40),t.k0s()(),t.j41(22,"div",41)(23,"table",42)(24,"caption",28),t.EFF(25," PRATICHE.TABELLA.TITOLO "),t.k0s(),t.j41(26,"thead")(27,"tr")(28,"th",43)(29,"abbr",44),t.EFF(30,"n\xb0"),t.k0s(),t.EFF(31),t.nI1(32,"translate"),t.DNE(33,W,4,8,"button",45)(34,q,4,8,"button",46),t.k0s(),t.j41(35,"th",47),t.EFF(36),t.nI1(37,"translate"),t.DNE(38,Z,4,8,"button",48)(39,K,4,8,"button",49),t.k0s(),t.j41(40,"th",50),t.EFF(41),t.nI1(42,"translate"),t.DNE(43,tt,4,9,"button",51)(44,et,4,9,"button",52),t.k0s(),t.j41(45,"th",53),t.EFF(46),t.nI1(47,"translate"),t.DNE(48,it,4,9,"button",54)(49,nt,4,9,"button",55),t.k0s(),t.j41(50,"th",43),t.EFF(51),t.nI1(52,"translate"),t.DNE(53,at,4,8,"button",56)(54,st,4,8,"button",57),t.k0s(),t.nrm(55,"th"),t.k0s()(),t.DNE(56,ot,7,3,"ng-template",null,0,t.C5r)(58,rt,7,3,"ng-template",null,1,t.C5r)(60,pt,2,2,"ng-container",8),t.k0s()(),t.DNE(61,gt,1,2,"app-paginator",58),t.k0s()()()()}if(2&n){const e=t.XpG();t.R7$(5),t.Y8G("ngIf",e.defaultList&&e.filteredList.length>0),t.R7$(4),t.Y8G("form",e.form)("section",e.Section)("fields",e.fields),t.R7$(4),t.Y8G("ngIf",e.isAggiornaVisible&&!e.disableAggiorna&&e.filteredList&&e.filteredList.length>0&&null!=e.filteredList.length),t.R7$(3),t.E5c(" ",t.bMT(17,27,"HOME.ULTIMO_AGGIORNAMENTO")," ",t.i5U(18,29,e.lastTimeUpdated,"dd/MM/yyyy")," ore ",t.i5U(19,32,e.lastTimeUpdated,"HH:mm")," "),t.R7$(4),t.Y8G("ngIf",e.isAggiornaVisible&&!e.disableAggiorna),t.R7$(),t.Y8G("ngIf",!(e.isAggiornaVisible&&!e.disableAggiorna)&&e.filteredList&&e.filteredList.length>0&&null!=e.filteredList.length),t.R7$(10),t.SpI(" ",t.bMT(32,35,"PRATICHE.TABELLA.T_HEAD.CASO")," "),t.R7$(2),t.Y8G("ngIf",e.seeDescFirst),t.R7$(),t.Y8G("ngIf",e.seeAscFirst),t.R7$(2),t.SpI(" ",t.bMT(37,37,"PRATICHE.TABELLA.T_HEAD.DATA_EVENTO")," "),t.R7$(2),t.Y8G("ngIf",e.seeDescSecond),t.R7$(),t.Y8G("ngIf",e.seeAscSecond),t.R7$(2),t.SpI(" ",t.bMT(42,39,"PRATICHE.TABELLA.T_HEAD.TIPOLOGIA")," "),t.R7$(2),t.Y8G("ngIf",e.seeDescThird),t.R7$(),t.Y8G("ngIf",e.seeAscThird),t.R7$(2),t.SpI(" ",t.bMT(47,41,"PRATICHE.TABELLA.T_HEAD.STATO")," "),t.R7$(2),t.Y8G("ngIf",e.seeDescFourth),t.R7$(),t.Y8G("ngIf",e.seeAscFourth),t.R7$(2),t.SpI(" ",t.bMT(52,43,"PRATICHE.TABELLA.T_HEAD.COD_SEDE")," "),t.R7$(2),t.Y8G("ngIf",e.seeDescFifth),t.R7$(),t.Y8G("ngIf",e.seeAscFifth),t.R7$(6),t.Y8G("ngIf",!e.disableAggiorna),t.R7$(),t.Y8G("ngIf",e.paginatedListPrimaryTab&&e.paginatedListPrimaryTab[e.currentPage-1].iteams.length)}}let _t=(()=>{class n extends P.b{constructor(e,a,i,o,p){super(e),this.utilityService=e,this.router=a,this.userService=i,this.praticheSessioneService=o,this.surveyService=p,this.surveyResponse={showFunctionSurvey:!1,tipologiaRating:A.w.PRATICHE},this.isDialogOpen=!1,this.isAggiornaVisible=!1,this.isUpdating=!1,this.disableAggiorna=!1,this.isLoading=!1,this.isError=!1,this.errorCall=!1}ngOnInit(){this.Section=N.w.PRATICHE,this.userService.getCurrentUser().pipe((0,u.Q)(this.onDestroy$)).subscribe(e=>{if(e){this.userData=e;try{this.surveyObj=JSON.parse(sessionStorage.getItem("surveyObj"))}catch(a){console.error("Error parsing surveyObj from session storage:",a)}if(!this.surveyObj){this.surveyObj={home:!1,dettaglio_pagamento:!1,pagamenti:!1,pratiche:!1,dett_richiesta_ass:!1,richiesta_ass:!1,servizi:!1,calendario:!1};try{sessionStorage.setItem("surveyObj",JSON.stringify(this.surveyObj))}catch(a){console.error("Error saving surveyObj to session storage:",a)}}if(super.ngOnInit(),this.checkAggiorna(),this.status=this.getStatus(),this.status===c.y.IN_PROGRESS||this.status===c.y.QUEUED){const a=sessionStorage.getItem("lastPollingTime"),i=(new Date).getTime(),o=1e4;(!a||i-parseInt(a,10)>o)&&(sessionStorage.setItem("lastPollingTime",i.toString()),this.startPolling())}this.status===c.y.FIRST_ENTRY||this.status===c.y.SUCCEEDED?this.getPratiche():this.showSpinner=!1}})}ngAfterViewInit(){}getPratiche(){this.praticheSessioneService.whenIsLoaded().then(e=>{this.fillListe(e||void 0)})}fillListe(e){this.filteredList=this.defaultList=e,this.filteredList?(this.paginatedListPrimaryTab=this.utilityService.arrayPaginated(this.filteredList),-1==this.paginatedListPrimaryTab.
1iteams&&-1==this.paginatedListPrimaryTab.numPag&&(this.filteredList.length=0)):this.paginatedListPrimaryTab=void 0,this.loadingPage=!1,this.showSpinner=!1}setFilter(e){return{keyWord:e.keyWord,dataInfortunio:e.dataInfortunio?T(e.dataInfortunio).format("DD/MM/yyyy"):null,tipo:e.tipo,states:e.states}}compare(e,a){let i=!0;return null!=e.keyWord&&""!==e.keyWord&&(i=this.checkKeyWordExist(i,e,a)),null!=e.dataInfortunio&&""!==e.dataInfortunio&&(i=this.checkDateIsEqual(i,e.dataInfortunio,a.dataInfortunio)),null!=e.states&&e.states.size&&""!==e.states&&(i=this.checkStateIsPresent(i,e,a)),null!=e.tipo&&e.tipo.size&&""!==e.tipo&&(i=this.checkTipoIsPresent(i,e,a)),i}checkKeyWordExist(e,a,i){const o=a.keyWord.toLowerCase();return e&&i.numeroCaso.toLowerCase().includes(o)||i.dataInfortunio===o||i.stato.toLowerCase().includes(o)||i.tipo.toLowerCase().includes(o)}checkDateIsEqual(e,a,i){const o=T(i,"DD/MM/yyyy").format("DD/MM/yyyy");return e&&a===o}checkStateIsPresent(e,a,i){return e&&a.states.has(i.stato)}checkTipoIsPresent(e,a,i){return e&&a.tipo.has(i.tipo)}checkCategoryIsPresent(e,a,i){throw new Error("Method not implemented.")}goToDetail(e){this.praticheSessioneService.setPratica(e),this.router.navigate(["pratiche/"+e.numeroCaso])}getFormGroup(){return new l.gE({keyWord:new l.MJ(null),dataInfortunio:new l.MJ(null),tipo:new l.MJ(null),states:new l.MJ(null)})}goToProvvedimenti(){window.location.replace(B.cA.basePath+"nso-access-page/?application=Provvedimenti%20Cittadini_Provvedimenti")}openDialog(){this.isDialogOpen=!0,this.isLoading=!0,this.surveyService.getSurvey(this.surveyResponse.tipologiaRating).pipe((0,u.Q)(this.onDestroy$)).subscribe(e=>{!e.status||404!=e.status&&401!=e.status?(this.surveyResponse.domande=e.survey.domande,this.surveyResponse.funzione=e.function,this.surveyResponse.id=e._id,this.isLoading=!1):(this.isLoading=!1,this.isError=!0)},e=>{console.error(e),this.isLoading=!1,this.isError=!0},()=>{this.isLoading=!1})}closeDialog(e){if(201==e||200==e){this.surveyObj.pratiche=!0;try{sessionStorage.setItem("surveyObj",JSON.stringify(this.surveyObj))}catch(a){console.error("Error saving surveyObj to session storage:",a)}}this.isDialogOpen=!1}ngOnDestroy(){super.ngOnDestroy()}checkAggiorna(){this.userService.getUserForPratichePagamenti().pipe((0,F.s)(1)).pipe((0,u.Q)(this.onDestroy$)).subscribe(e=>{this.isAggiornaVisible=e.selectable,this.lastTimeUpdated=e.lastTimeUpdated,this.isAggiornaVisible||this.userService.pollAggiorna(a=>{this.isAggiornaVisible=a})})}getStatus(){const e=sessionStorage.getItem("status");return e||sessionStorage.setItem("status",c.y.FIRST_ENTRY),this.statusPratiche=E.A.get(e),e}boldWordInString(e,a){const i=new RegExp(`(${a})`,"gi");return e.replace(i,"<b>$1</b>")}pollStatus(){this.showSpinner=!1,this.disableAggiorna=!0;let e=setInterval(()=>{this.status=this.getStatus(),(this.status===c.y.FAILED||this.status===c.y.CANCELED)&&(this.checkAggiorna(),this.disableAggiorna=!1,clearInterval(e),this.showSpinner=!1),this.status===c.y.SUCCEEDED&&(sessionStorage.setItem("UpdateCheck","Updating"),this.getPratiche(),this.checkAggiorna(),this.disableAggiorna=!1,clearInterval(e))},5e3)}startPolling(){this.disableAggiorna=!0,this.statusPratiche=E.A.get(c.y.IN_PROGRESS),this.userService.startPolling(e=>{this.getStatus(),e===c.y.SUCCEEDED&&(sessionStorage.setItem("UpdateCheck","Updating"),this.getPratiche(),this.checkAggiorna(),this.disableAggiorna=!1),(e===c.y.FAILED||e===c.y.CANCELED)&&(this.checkAggiorna(),this.disableAggiorna=!1)}),this.pollStatus()}lastTimeFormatted(e){const a=new Date(e);return`${String(a.getDate()).padStart(2,"0")}-${String(a.getMonth()+1).padStart(2,"0")}-${String(a.getFullYear())} ${String(a.getHours()).padStart(2,"0")}:${String(a.getMinutes()).padStart(2,"0")}`}changeFocus(){this.spinnerAggiorna2.nativeElement.focus()}static{this.\u0275fac=function(a){return new(a||n)(t.rXU(R.Q),t.rXU(g.Ix),t.rXU(O.D),t.rXU(v.N),t.rXU(C.I))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-pratiche"]],viewQuery:function(a,i){if(1&a&&t.GBs(M,5),2&a){let o;t.mGM(o=t.lsd())&&(i.spinnerAggiorna2=o.first)}},features:[t.Vt3],decls:27,vars:17,consts:[["servizioNonDisponibile",""],["praticheNonDisponibili",""],["id","main"],["
1id","page-table-intro"],[1,"container","p-0"],[1,"d-md-flex","justify-content-between"],[1,"w-100"],["translate",""],[4,"ngIf"],[1,"info-pages","d-flex","align-items-center","justify-content-end"],[1,"chips-container"],["title","","attr.aria-label","",1,"inail-chips",3,"href"],["data-toggle","modal","data-target","#userManualPratiche","translate","",1,"inail-chips",3,"title"],["translate","",1,"survey-link",3,"click","hidden"],[3,"isLoading","isError","user","setId","setDomande","setFunzione","setFunctionBody","closeDialog",4,"ngIf"],["class","inail-banner",4,"ngIf"],["class","inail-spinner margin-spinner",4,"ngIf"],["id","page-table-container",4,"ngIf"],[3,"key","userManual"],[3,"closeDialog","isLoading","isError","user","setId","setDomande","setFunzione","setFunctionBody"],[1,"inail-banner"],["class","mt-4",3,"innerHTML",4,"ngIf"],[1,"d-flex","justify-content-end"],["aria-label","Aggiorna",1,"inail-link-goto","ml-auto",3,"click"],[1,"inail-icons-change"],[1,"mt-4",3,"innerHTML"],[1,"inail-spinner","margin-spinner"],["role","status",1,"spinner-border"],["translate","",1,"sr-only"],["id","page-table-container"],[1,"info","d-flex","justify-content-between"],["class","number-in-page","translate","",4,"ngIf"],[1,"row"],[1,"col-md-3"],[3,"reset","submit"],["form","",3,"form","section","fields"],[1,"col-md-9"],["class","d-flex justify-content-end align-items-center title-action mr-2",4,"ngIf"],[1,"title-action"],["style","float: right;","translate","",3,"ngClass","click",4,"ngIf"],["href","javascript:","style","float: right;","class","inail-link-goto cursor-pointer-class color-blue","attr.aria-label","Vai a tutti i provvedimenti",3,"title","click",4,"ngIf"],[1,"inail-table","table-responsive"],[1,"table"],["scope","col",1,"number"],["title","numero"],["id","caso-pratiche-up","class","order",3,"title","click",4,"ngIf"],["id","caso-pratiche-down","class","order",3,"title","click",4,"ngIf"],["scope","col",1,"date"],["id","data-evento-pratiche-up","class","order",3,"title","click",4,"ngIf"],["id","data-evento-pratiche-down","class","order",3,"title","click",4,"ngIf"],["scope","col",1,""],["id","tipologia-pratiche-up","class","order",3,"title","click",4,"ngIf"],["id","tipologia-pratiche-down","class","order",3,"title","click",4,"ngIf"],["scope","col",1,"status"],["id","stato-pratiche-up","class","order",3,"title","click",4,"ngIf"],["id","stato-pratiche-down","class","order",3,"title","click",4,"ngIf"],["id","codice-sede-pratiche-up","class","order",3,"title","click",4,"ngIf"],["id","codice-sede-pratiche-down","class","order",3,"title","click",4,"ngIf"],[3,"page","totalElement","confirm",4,"ngIf"],["translate","",1,"number-in-page"],[1,"d-flex","justify-content-end","align-items-center","title-action","mr-2"],["href","javascript:","attr.aria-label","Vai a tutti i provvedimenti",1,"inail-link-goto","cursor-pointer-class","color-blue",3,"click","title"],[1,"inail-icons-slide-right"],["translate","",2,"float","right",3,"click","ngClass"],["href","javascript:","attr.aria-label","Vai a tutti i provvedimenti",1,"inail-link-goto","cursor-pointer-class","color-blue",2,"float","right",3,"click","title"],["id","caso-pratiche-up",1,"order",3,"click","title"],[1,"inail-icons-chevron-down"],["id","caso-pratiche-down",1,"order",3,"click","title"],[1,"inail-icons-chevron-up"],["id","data-evento-pratiche-up",1,"order",3,"click","title"],["id","data-evento-pratiche-down",1,"order",3,"click","title"],["id","tipologia-pratiche-up",1,"order",3,"click","title"],["id","tipologia-pratiche-down",1,"order",3,"click","title"],["id","stato-pratiche-up",1,"order",3,"click","title"],["id","stato-pratiche-down",1,"order",3,"click","title"],["id","codice-sede-pratiche-up",1,"order",3,"click","title"],["id","codice-sede-pratiche-down",1,"order",3,"click","title"],["colspan","5"],[1,"d-flex","justify-content-center","align-items-center"],[1,"inail-icons-alert","mr-2"],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],["href","javascript:",1,"inail-link-goto","cursor-pointer-class","color-blue",3,"click","title"],[3,"confirm","page","totalElement"]],template:function(a,i){1&a&&(t.j41(0,"main",2),t.nrm(1,"app-breadcrumb"),t.j41(2,"section",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"h1",7),t.EFF(7,"PRATICHE.TITOLO"),t.k0s(),t.DNE(8,U,2,1,"p",8)(9,$,3,3,"p",8),t.k0s(),t.j41(10,"div",9)(11,"div")(12,"div",10)(13,"a",11),t.EFF(14,"FAQ"),t.k0s(),t.j41(15,"button",12),t.nI1(16,"translate"),t.nI1(17,"translate"),t.EFF(18," BUTTON_GENERICI.AIUTO_NAVIGAZIONE.TITOLO "),t.k0s()(),t.j41(19,"button",13),t.bIt("click",function(){return i.openDialog()}),t.EFF(20," BUTTON_GENERICI.AIUTO_MIGLIORA_PAGINA "),t.k0s(),t.DNE(21,V,1,7,"app-dialog-rating",14),t.k0s()()(),t.DNE(22,X,11,7,"div",15)(23,w,6,6,"div",15),t.k0s()(),t.DNE(24,Y,4,0,"div",16)(25,ut,62,45,"section",17),t.k0s(),t.nrm(26,"app-modal-manuale",18)),2&a&&(t.R
17$(8),t.Y8G("ngIf","Failed"===i.status||"Cancelled"==i.status),t.R7$(),t.Y8G("ngIf",!("Failed"===i.status||"Cancelled"==i.status)),t.R7$(4),t.Y8G("href",i.environment.basePath+"portale/it/supporto/faq.html?categoria=myinail&page=1",t.B4B),t.R7$(2),t.FS9("title",t.bMT(16,13,"BUTTON_GENERICI.AIUTO_NAVIGAZIONE.TITOLO")),t.BMQ("aria-label",t.bMT(17,15,"BUTTON_GENERICI.AIUTO_NAVIGAZIONE.ARIALABEL")),t.R7$(4),t.Y8G("hidden",null==i.surveyObj?null:i.surveyObj.pratiche),t.R7$(2),t.Y8G("ngIf",i.isDialogOpen),t.R7$(),t.Y8G("ngIf","FirstEntry"===i.status&&i.filteredList&&0==i.filteredList.length&&!i.disableAggiorna&&"0001-01-01T00:00:00"===i.lastTimeUpdated),t.R7$(),t.Y8G("ngIf","InProgress"===i.status||"Queued"===i.status),t.R7$(),t.Y8G("ngIf",i.showSpinner),t.R7$(),t.Y8G("ngIf","InProgress"!==i.status&&"Queued"!==i.status&&("FirstEntry"!==i.status||"0001-01-01T00:00:00"!==i.lastTimeUpdated)||i.filteredList&&i.filteredList.length>0),t.R7$(),t.Y8G("key","pratiche")("userManual","userManualPratiche"))},dependencies:[d.YU,d.Sq,d.bT,k.h,G.D,y.C,S.A,L.i,D.N,_.Mm,d.vh,_.D9],styles:[".margin-spinner {\n  margin: auto;\n}"],encapsulation:2})}}return n})();var Tt=r(4127),It=r(2678),mt=r(1413),j=r(980),ft=r(3685),ht=r(7014);function Et(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",23),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.sortPage("2",!1,"dataPred","predisposto-pagamenti"))}),t.nrm(3,"span",24),t.k0s()}if(2&n){const e=t.XpG();t.qtP("aria-label","",t.bMT(1,4,"BUTTON_GENERICI.BUTTON_SORT.ARIALABEL")," ",e.secondStatus,""),t.FS9("title",t.bMT(2,6,"BUTTON_GENERICI.BUTTON_SORT.TITOLO"))}}function bt(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",25),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.sortPage("2",!0,"dataPred","predisposto-pagamenti"))}),t.nrm(3,"span",26),t.k0s()}if(2&n){const e=t.XpG();t.qtP("aria-label","",t.bMT(1,4,"BUTTON_GENERICI.BUTTON_SORT.ARIALABEL")," ",e.secondStatus,""),t.FS9("title",t.bMT(2,6,"BUTTON_GENERICI.BUTTON_SORT.TITOLO"))}}function Rt(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",27),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.sortPage("3",!1,"dataPagamento","pagato-pagamenti"))}),t.nrm(3,"span",24),t.k0s()}if(2&n){const e=t.XpG();t.qtP("aria-label","",t.bMT(1,4,"BUTTON_GENERICI.BUTTON_SORT.ARIALABEL")," ",e.thirdStatus,""),t.FS9("title",t.bMT(2,6,"BUTTON_GENERICI.BUTTON_SORT.TITOLO"))}}function Ot(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",28),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.sortPage("3",!0,"dataPagamento","pagato-pagamenti"))}),t.nrm(3,"span",26),t.k0s()}if(2&n){const e=t.XpG();t.qtP("aria-label","",t.bMT(1,4,"BUTTON_GENERICI.BUTTON_SORT.ARIALABEL")," ",e.thirdStatus,""),t.FS9("title",t.bMT(2,6,"BUTTON_GENERICI.BUTTON_SORT.TITOLO"))}}function Pt(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",29),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.sortPage("4",!1,"importoDouble","importo-pagamenti"))}),t.nrm(3,"span",24),t.k0s()}if(2&n){const e=t.XpG();t.qtP("aria-label","",t.bMT(1,4,"BUTTON_GENERICI.BUTTON_SORT.ARIALABEL")," ",e.fourthStatus,""),t.FS9("title",t.bMT(2,6,"BUTTON_GENERICI.BUTTON_SORT.TITOLO"))}}function Nt(n,s){if(1&n){const e=t.RV6();t.j41(0,"button",30),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.sortPage("4",!0,"importoDouble","importo-pagamenti"))}),t.nrm(3,"span",26),t.k0s()}if(2&n){const e=t.XpG();t.qtP("aria-label","",t.bMT(1,4,"BUTTON_GENERICI.BUTTON_SORT.ARIALABEL")," ",e.fourthStatus,""),t.FS9("title",t.bMT(2,6,"BUTTON_GENERICI.BUTTON_SORT.TITOLO"))}}function vt(n,s){1&n&&(t.j41(0,"tbody")(1,"tr")(2,"td",31)(3,"div",32),t.nrm(4,"span",33),t.EFF(5),t.nI1(6,"translate"),t.k0s()()()()),2&n&&(t.R7$(5),t.SpI(" ",t.bMT(6,1,"PAGAMENTI.NO_PAGAMENTI")," "))}function At(n,s){1&n&&(t.j41(0,"tbody")(1,"tr")(2,"td",31)(3,"div",32),t.nrm(4,"span",33),t.EFF(5),t.nI1(6,"translate"),t.k0s()()()()),2&n&&(t.R7$(5),t.SpI("",t.bMT(6,1,"TESTO_GENERICO.SERVIZIO_NON_DISPONIBILE")," "))}function Ct(n,s){1&n&&(t.j41(0,"tbody")(1,"tr")(2,"td",31)(3,"div",34)(4,"div",35)(5,"span",10),t.EFF(6,"TESTO_GENERICO.MESSAGGIO_CARICAMENTO"),t.k0s()()()()()())}function kt(n,s){1&n&&t.eu8(0)}
1function Gt(n,s){if(1&n&&(t.qex(0),t.DNE(1,kt,1,0,"ng-container",36),t.bVm()),2&n){t.XpG();const e=t.sdS(37);t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function yt(n,s){if(1&n){const e=t.RV6();t.j41(0,"tr")(1,"td"),t.EFF(2),t.k0s(),t.j41(3,"td"),t.EFF(4),t.k0s(),t.j41(5,"td")(6,"div",38)(7,"div",39),t.EFF(8),t.nI1(9,"currency"),t.k0s(),t.nrm(10,"div",40),t.k0s()(),t.j41(11,"td")(12,"a",41),t.nI1(13,"translate"),t.nI1(14,"translate"),t.bIt("click",function(){const i=t.eBV(e).$implicit,o=t.XpG(4);return t.Njj(o.goToDetail(i))}),t.j41(15,"span",42),t.EFF(16,"BUTTON_GENERICI.DETTAGLIO.TITOLO_CAPS"),t.k0s(),t.nrm(17,"span",43),t.k0s()()()}if(2&n){const e=s.$implicit;t.R7$(2),t.JRh(e.dataPred?e.dataPred:"-"),t.R7$(2),t.JRh("Diretta"===e.tipo?e.data:e.dataPagamento?e.dataPagamento:"-"),t.R7$(4),t.SpI(" ",t.brH(9,7,e.importoDouble,"EUR","symbol")," "),t.R7$(4),t.qtP("aria-label","",t.bMT(13,11,"BUTTON_GENERICI.DETTAGLIO.ATTR")," - Pagamento numero ",e.numeroCaso,""),t.FS9("title",t.bMT(14,13,"BUTTON_GENERICI.DETTAGLIO.TITOLO"))}}function St(n,s){if(1&n&&(t.j41(0,"tbody"),t.DNE(1,yt,18,15,"tr",37),t.k0s()),2&n){const e=t.XpG(3);t.R7$(),t.Y8G("ngForOf",e.paginatedListPrimaryTab[e.currentPage-1].iteams)}}function Lt(n,s){if(1&n&&(t.qex(0),t.DNE(1,St,2,1,"tbody",21),t.bVm()),2&n){const e=t.XpG(2),a=t.sdS(33);t.R7$(),t.Y8G("ngIf",e.filteredList&&e.filteredList.length>0)("ngIfElse",a)}}function Dt(n,s){if(1&n&&t.DNE(0,Lt,2,2,"ng-container",21),2&n){const e=t.XpG(),a=t.sdS(35);t.Y8G("ngIf",!e.errorCall)("ngIfElse",a)}}function jt(n,s){if(1&n){const e=t.RV6();t.j41(0,"app-paginator",44),t.bIt("confirm",function(i){t.eBV(e);const o=t.XpG();return t.Njj(o.changePage(i))}),t.k0s()}if(2&n){const e=t.XpG();t.Y8G("page",e.currentPage)("totalElement",e.paginatedListPrimaryTab.length)}}let Ft=(()=>{class n extends P.b{constructor(e,a,i,o){super(e),this.utilityService=e,this.pagamentiSessioneService=a,this.router=i,this.route=o,this.data=[],this.errorCall=!1,this.isLoading=!1,this.section=N.w.PAGAMENTI}ngOnChanges(e){console.log("data",this.data),e.data&&e.data.currentValue&&(this.data=e.data.currentValue),this.fillListe(this.data)}fillListe(e){console.log("listaPagamenti dettaglio",e),this.filteredList=this.defaultList=e,this.filteredList?(this.paginatedListPrimaryTab=this.utilityService.arrayPaginated(this.filteredList),-1==this.paginatedListPrimaryTab.iteams&&-1==this.paginatedListPrimaryTab.numPag&&(this.filteredList.length=0)):this.paginatedListPrimaryTab=void 0,this.loadingPage=!1,this.showSpinner=!1}setFilter(e){return{keyWord:e.keyWord,dataPred:e.dataPred?T(e.dataPred).format("DD/MM/yyyy"):null,dataPagamento:e.dataPagamento?T(e.dataPagamento).format("DD/MM/yyyy"):null}}compare(e,a){let i=!0;return null!=e.keyWord&&""!==e.keyWord&&(i=this.checkKeyWordExist(i,e,a)),null!=e.dataPred&&""!==e.dataPred&&(i=this.checkDateIsEqual(i,e.dataPred,a.dataPred)),null!=e.dataPagamento&&""!==e.dataPagamento&&(i=this.checkDateIsEqual(i,e.dataPagamento,a.dataPagamento)),i}checkKeyWordExist(e,a,i){const o=a.keyWord.toLowerCase();return e&&i.numeroCaso.toLowerCase().includes(o)||i.dataPred===o||i.dataPagamento===o}checkDateIsEqual(e,a,i){const o=T(i,"DD/MM/yyyy").format("DD/MM/yyyy");return e&&a===o}goToDetail(e){this.pagamentiSessioneService.setPagamento(e),this.router.navigate(["dettaglio-pagamento"],{relativeTo:this.route})}getFormGroup(){return new l.gE({keyWord:new l.MJ(null),dataPred:new l.MJ(null),dataPagamento:new l.MJ(null)})}checkStateIsPresent(e,a,i){throw new Error("Method not implemented.")}checkCategoryIsPresent(e,a,i){throw new Error("Method not implemented.")}checkTipoIsPresent(e,a,i){throw new Error("Method not implemented.")}static{this.\u0275fac=function(a){return new(a||n)(t.rXU(R.Q),t.rXU(ht.$),t.rXU(g.Ix),t.rXU(g.nX))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-filtered-table"]],inputs:{data:"data",errorCall:"errorCall",isLoading:"isLoading"},features:[t.Vt3,t.OA$],decls:42,vars:21,consts:[["pagamentiNonDisponibili",""],["servizioNonDisponibile",""],["loadingService",""],["tableDataState",""],[1,"row","mx-0","mt-3"],[1,"col-md-3"],[3,"reset","submit"],["form","",3,"form","section","fields"],[1,"col-md-9"],[1,"inail-table","table-responsive"],["translate","",1,"sr-only"],[1,"table"],["scope","col",1,"date"],["id","predisposto-pagamenti-up","class","order",3,"title","click",4,"ngIf"],["id","predisposto-pagamenti-down","class","order",3,"title","click",4,"ngIf"],["id","pagato-pagamenti-up","class","order",3,"title","click",4,"ngIf"],["id","pagato-pagamenti-down","class","order",3,"title","click",4,"ngIf"],["scope","col",1,"amount"],["id","importo-pagamenti-up","class","order",3,"title","click",4,"ngIf"],["id","importo-pagamenti-down","class","order",3,"title","click",4,"ngIf"],["scope","col",1,"action"],[4,"ngIf","ngIfElse"],[3,"page","totalElement","confirm",4,"ngIf"],["id","predisposto-pagamenti-up",1,"order",3,"click","title"],[1,"inail-icons-chevron-down"],["id","predisposto-pagamenti-down",1,"order",3,"click","title"],[1,"inail-icons-chevron-up"],["id","pagato-pagamenti-up",1,"order",3,"click","title"],["id","pagato-pagamenti-down",1,"order",3,"click","title"],["id","importo-pagamenti-up",1,"order",3,"click","title"],["id","importo-pagamenti-down",1,"order",3,"click","title"],["colspan","4"],[1,"d-flex","justify-content-center","align-items-center"],[1,"inail-icons-alert","mr-2"],[1,"inail-spinner","in-content"],["role","status",1,"spinner-border"],[4,"ngTemplateOutlet"],[4,"ngFor","ngForOf"],[1,"row"],[1,"col-lg-6",2,"text-align","right"],[1,"col-lg-6"],["href","javascript:",1,"inail-link-goto","cursor-pointer-class","color-blue",3,"click","title"],["translate",""],[1,"inail-icons-slide-right"],[3,"confirm","page","totalElement"]],template:function(a,i){if(1&a){const o=t.RV6();t.j41(0,"div",4)(1,"div",5)(2,"app-tab-filtri-container",6),t.bIt("reset",function(){return t.eBV(o),t.Njj(i.reset(i.TabCounting.PRIMARY))})("submit",function(){return t.eBV(o),t.Njj(i.submit())}),t.nrm(3,"app-filter",7),t.k0s()(),t.j41(4,"div",8)(5,"div",9)(6,"h4",10),t.EFF(7,"PAGAMENTI.TABELLA.TITOLO"),t.k0s(),t.j41(8,"table",11)(9,"caption",10),t.EFF(10," PAGAMENTI.TABELLA.TITOLO "),t.k0s(),t.j41(11,"thead")(12,"tr")(13,"th",12),t.EFF(14),t.nI1(15,"translate"),t.DNE(16,Et,4,8,"button",13)(17,bt,4,8,"button",14),t.k0s(),t.j41(18,"th",12),t.EFF(19),t.nI1(20,"translate"),t.DNE(21,Rt,4,8,"button",15)(22,Ot,4,8,"button",16),t.k0s(),t.j41(23,"th",17),t.EFF(24),t.nI1(25,"translate"),t.DNE(26,Pt,4,8,"button",18)(27,Nt,4,8,"button",19),t.k0s(),t.j41(28,"th",20)(29,"span",10),t.EFF(30,"BUTTON_GENERICI.AZIONI"),t.k0s()()()(),t.qex(31),t.DNE(32,vt,7,3,"ng-template",null,0,t.C5r)(34,At,7,3,"ng-template",null,1,t.C5r)(36,Ct,7,0,"ng-template",null,2,t.C5r)(38,Gt,2,1,"ng-container",21)(39,Dt,1,2,"ng-template",null,3,t.C5r),t.bVm(),t.k0s()(),t.DNE(41,jt,1,2,"app-paginator",22),t.k0s()()}if(2&a){const o=t.sdS(40);t.R7$(3),t.Y8G("form",i.form)("section",i.section)("fields",i.fields),t.R7$(11),t.SpI(" ",t.bMT(15,15,"PAGAMENTI.TABELLA.T_HEAD.PREDISPOSTO")," "),t.R7$(2),t.Y8G("ngIf",i.seeDescSecond),t.R7$(),t.Y8G("ngIf",i.seeAscSecond),t.R7$(2),t.SpI(" ",t.bMT(20,17,"PAGAMENTI.TABELLA.T_HEAD.PAGATO")," "),t.R7$(2),t.Y8G("ngIf",i.seeDescThird),t.R7$(),t.Y8G("ngIf",i.seeAscThird),t.R7$(2),t.SpI(" ",t.bMT(25,19,"PAGAMENTI.TABELLA.T_HEAD.IMPORTO")," "),t.R7$(2),t.Y8G("ngIf",i.seeDescFourth),t.R7$(),t.Y8G("ngIf",i.seeAscFourth),t.R7$(11),t.Y8G("ngIf",i.isLoading)("ngIfElse",o),t.R7$(3),t.Y8G("ngIf",i.paginatedListPrimaryTab&&i.paginatedListPrimaryTab[i.currentPage-1].iteams.length)}},dependencies:[d.Sq,d.bT,d.T3,_.Mm,k.h,S.A,L.i,d.oe,_.D9]})}}return n})();
1function Bt(n,s){if(1&n){const e=t.RV6();t.j41(0,"app-dialog-rating",34),t.bIt("closeDialog",function(i){t.eBV(e);const o=t.XpG();return t.Njj(o.closeDialog(i))}),t.k0s()}if(2&n){const e=t.XpG();t.Y8G("isLoading",e.isLoadingDialog)("isError",e.isError)("user",e.userData)("setId",e.surveyResponse.id)("setDomande",e.surveyResponse.domande)("setFunzione",e.surveyResponse.tipologiaRating)("setFunctionBody",e.surveyResponse.funzione)}}function Mt(n,s){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.JRh(e.indirizzoSede?e.indirizzoSede:"-")}}function Ut(n,s){1&n&&(t.j41(0,"span")(1,"div",35)(2,"div",36)(3,"span",5),t.EFF(4,"TESTO_GENERICO.MESSAGGIO_CARICAMENTO"),t.k0s()()()())}const xt=[{path:"",component:_t,data:{title:"Pratiche di infortunio e malattia professionale"}},{path:":id",component:(()=>{class n extends Tt.i{constructor(e,a,i,o,p,I){super(e,a,i,p),this.praticheSessioneService=o,this.praticaService=I,this.isDialogOpen=!1,this.surveyResponse={showFunctionSurvey:!1,tipologiaRating:A.w.DETTAGLIO_PRATICHE},this.isLoading=!0,this.isError=!1,this.isErrorDettaglio=!1,this.messaggioErrore="PRATICHE_DETTAGLIO.NO_PROVVEDIMENTI",this.provvedimentiAccordion=[],this.formFilter=new l.gE({keyWord:new l.MJ(null),dataPred:new l.MJ(null),dataPagamento:new l.MJ(null)}),this.onDestroy$=new mt.B,this.indirizzoSede="",this.pendingInitialRequests=0,this.isLoadingProvvedimenti=null,this.isLoadingDialog=!1}ngOnInit(){if(super.ngOnInit(),this.recuperoProfilo(),this.userData){try{this.surveyObj=JSON.parse(sessionStorage.getItem("surveyObj"))}catch(e){console.error("Error parsing surveyObj from session storage:",e)}if(!this.surveyObj){this.surveyObj={home:!1,dettaglio_pagamento:!1,pagamenti:!1,pratiche:!1,dett_richiesta_ass:!1,richiesta_ass:!1,servizi:!1,calendario:!1};try{sessionStorage.setItem("surveyObj",JSON.stringify(this.surveyObj))}catch(e){console.error("Error saving surveyObj to session storage:",e)}}}this.isLoading=!0,this.pendingInitialRequests=2,this.getProvvedimenti(),this.getDettaglioPratiche()}ngAfterViewInit(){}ngOnDestroy(){}getObject(){this.dettaglioPratica=this.praticheSessioneService.getPratica()}completeInitialRequest(){this.pendingInitialRequests>0&&this.pendingInitialRequests--,0===this.pendingInitialRequests&&(this.isLoading=!1)}getProvvedimenti(){let e=this.dettaglioPratica.tipo;this.isLoadingProvvedimenti="TESTO_GENERICO.LOADING","Diretta"==this.dettaglioPratica.tipo&&(e="Rendita diretta"),this.praticaService.getListaProvvedimenti(e,this.dettaglioPratica.numeroCaso).pipe((0,u.Q)(this.onDestroy$),(0,j.j)(()=>this.completeInitialRequest())).subscribe({next:a=>{"OK"==a.resultCode?(this.listProvvedimenti=a.ListaProvvedimenti[0].provvedimenti,this.listProvvedimenti.forEach(i=>{this.provvedimentiAccordion.push({titolo:"ID: "+i.idPdf,descrizione:i.dataElaborazione,classIconSX:"icon-file-pdf",styleIconSX:"background-color: #012e5d; width: 25px; height: 25px",classIconDX:"icon-download",styleIconDX:"font-size: 25px",onClick:()=>this.downloadProvvedimento(i.idPdf)})}),this.isLoadingProvvedimenti=null):this.messaggioErrore="PRATICHE_DETTAGLIO.NO_PROVVEDIMENTI"},error:a=>{this.isError=!0,this.messaggioErrore="TESTO_GENERICO.SERVIZIO_NON_DISPONIBILE"}})}getDettaglioPratiche(){this.dettaglioPratica&&this.userData?this.praticaService.getDettaglioPratica(this.userData.userName,this.dettaglioPratica).pipe((0,u.Q)(this.onDestroy$),(0,j.j)(()=>this.completeInitialRequest())).subscribe({next:e=>{"OK"==e.resultCode?(this.indirizzoSede=e.dettaglioPratica.sede.indirizzo.via+","+e.dettaglioPratica.sede.indirizzo.cap+" "+e.dettaglioPratica.sede.indirizzo.localita+" "+e.dettaglioPratica.sede.indirizzo.provincia,this.dataForTable=e.elencoPagamenti):this.messaggioErrore="PRATICHE_DETTAGLIO.NO_PROVVEDIMENTI"},error:e=>{this.isError=!0,this.isErrorDettaglio=!0,this.messaggioErrore="TESTO_GENERICO.SERVIZIO_NON_DISPONIBILE"}}):this.completeInitialRequest()}downloadProvvedimento(e){this.isLoading=!0,this.praticaService.downloadProvvedimenti(e).pipe((0,u.Q)(this.onDestroy$)).subscribe({next:a=>{this.downloadPdf(a.pdf,e),this.isLoading=!1},error:a=>{this.isLoading=!1}})}downloadPdf(e,a="documento.pdf"){const i=atob(e),o=new Array(i.length);for(let h=0;h<i.length;h++)o[h]=i.charCodeAt(h);const p=new Uint8Array(o),I=new Blob([p],{type:"application/pdf"}),f=URL.createObjectURL(I),m=document.createElement("a");m.href=f,m.download=a,document.body.appendChild(m),m.click(),document.body.removeChild(m),URL.revokeObjectURL(f)}openDialog(){this.isDialogOpen=!0,this.isLoadingDialog=!0,this.surveyService.getSurvey(this.surveyResponse.tipologiaRating).pipe((0,u.Q)(this.onDestroy$)).subscribe(e=>{!e.status||404!=e.status&&401!=e.status?(this.surveyResponse.domande=e.survey.domande,this.surveyResponse.funzione=e.function,this.surveyResponse.id=e._id,this.isLoadingDialog=!1):(this.isLoadingDialog=!1,this.isError=!0)},e=>{console.error(e),this.isLoadingDialog=!1,this.isError=!0},()=>{this.isLoadingDialog=!1})}closeDialog(e){if(201==e||200==e){this.surveyObj.dettaglio_pagamento=!0;
1try{sessionStorage.setItem("surveyObj",JSON.stringify(this.surveyObj))}catch(a){console.error("Error saving surveyObj to session storage:",a)}}this.isDialogOpen=!1}static{this.\u0275fac=function(a){return new(a||n)(t.rXU(g.Ix),t.rXU(g.nX),t.rXU(O.D),t.rXU(v.N),t.rXU(C.I),t.rXU(It.C))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-dettaglio-pratica"]],features:[t.Vt3],decls:76,vars:34,consts:[[1,"container-fluid","p-0","background-inail"],["id","main"],[3,"val"],["id","detail-intro"],[1,"container","p-0"],["translate","",1,"sr-only"],[1,"d-md-flex","justify-content-between"],["translate","",1,"title-detail"],["translate","",1,"info-pages-intro"],[1,"info-pages","d-flex","align-items-center","justify-content-end","flex-column"],[1,"ml-auto"],[1,"chips-container"],["href","#","title","Faq","aria-label","faq - vai alla pagina faq, apertura link esterno","target","_blank",1,"inail-chips"],["data-toggle","modal","data-target","#userManualDettaglioPratica","translate","",1,"inail-chips",3,"title"],["translate","",1,"survey-link",3,"click","hidden"],[3,"isLoading","isError","user","setId","setDomande","setFunzione","setFunctionBody","closeDialog",4,"ngIf"],["id","detail-card"],["translate",""],[1,"row"],[1,"col-xl-3","col-md-6"],[1,"card","detail-card","no-link"],[1,"d-flex","justify-content-between"],[1,"detail-card--multicontent"],[1,"col-xl-2","col-md-6"],[1,"col-xl-5","col-md-6"],[4,"ngIf"],[1,"row","mt-3"],[1,"col-12"],[1,"mt-3",3,"titolo","descrizione","items","noItemsMessage","isLoadingMessage"],[1,"col-12","p-0"],[3,"data","errorCall","isLoading"],[1,"d-flex","justify-content-end","action"],["translate","",1,"btn","inail-btn","inail-btn--primary","cursor-pointer-class","color-white",3,"click","title"],[3,"key","userManual"],[3,"closeDialog","isLoading","isError","user","setId","setDomande","setFunzione","setFunctionBody"],[1,"inail-spinner","in-content"],["role","status",1,"spinner-border"]],template:function(a,i){1&a&&(t.j41(0,"div",0)(1,"main",1),t.nrm(2,"app-breadcrumb",2),t.j41(3,"section",3)(4,"div",4)(5,"h1",5),t.EFF(6,"PRATICHE_DETTAGLIO.TITOLO"),t.k0s(),t.j41(7,"div",6)(8,"div")(9,"span",7),t.EFF(10),t.nI1(11,"translate"),t.j41(12,"span"),t.EFF(13),t.k0s()(),t.j41(14,"p",8),t.EFF(15,"PRATICHE_DETTAGLIO.DESCRIZIONE"),t.k0s()(),t.j41(16,"div",9)(17,"div",10)(18,"div",11)(19,"a",12),t.EFF(20,"FAQ"),t.k0s(),t.j41(21,"button",13),t.nI1(22,"translate"),t.nI1(23,"translate"),t.EFF(24," BUTTON_GENERICI.AIUTO_NAVIGAZIONE.TITOLO "),t.k0s()()(),t.j41(25,"button",14),t.bIt("click",function(){return i.openDialog()}),t.EFF(26," BUTTON_GENERICI.AIUTO_MIGLIORA_PAGINA "),t.k0s(),t.DNE(27,Bt,1,7,"app-dialog-rating",15),t.k0s()()()(),t.j41(28,"section",16)(29,"div",4)(30,"h2",17),t.EFF(31,"PRATICHE_DETTAGLIO.TITOLO"),t.k0s(),t.j41(32,"div",18)(33,"div",19)(34,"div",20)(35,"h3",5),t.EFF(36,"PRATICHE_DETTAGLIO.TIPOLOGIA"),t.k0s(),t.j41(37,"h4",17),t.EFF(38,"PRATICHE_DETTAGLIO.TIPOLOGIA"),t.k0s(),t.j41(39,"div",21)(40,"div",22)(41,"span"),t.EFF(42),t.k0s()()()()(),t.j41(43,"div",23)(44,"div",20)(45,"h4",17),t.EFF(46,"PRATICHE_DETTAGLIO.STATO"),t.k0s(),t.j41(47,"div",21)(48,"span"),t.EFF(49),t.k0s()()()(),t.j41(50,"div",23)(51,"div",20)(52,"h4",17),t.EFF(53,"PRATICHE_DETTAGLIO.DATA"),t.k0s(),t.j41(54,"div",21)(55,"span"),t.EFF(56),t.k0s()()()(),t.j41(57,"div",24)(58,"div",20)(59,"h4",17),t.EFF(60,"PRATICHE_DETTAGLIO.SEDE"),t.k0s(),t.j41(61,"div",21),t.DNE(62,Mt,2,1,"span",25)(63,Ut,5,0,"span",25),t.k0s()()()(),t.j41(64,"div",26)(65,"div",27),t.nrm(66,"app-accordion-item",28),t.k0s()(),t.j41(67,"div",26)(68,"div",29),t.nrm(69,"app-filtered-table",30),t.k0s()(),t.j41(70,"div",31)(71,"a",32),t.nI1(72,"translate"),t.nI1(73,"translate"),t.bIt("click",function(){return i.goBack()}),t.EFF(74,"TESTO_GENERICO.INDIETRO"),t.k0s()()()()()(),t.nrm(75,"app-modal-manuale",33)),2&a&&(t.R7$(2),t.Y8G("val","N\xb0 caso "+(null==i.dettaglioPratica?null:i.dettaglioPratica.numeroCaso)),t.R7$(8),t.SpI("N\xb0",t.bMT(11,24,"TESTO_GENERICO.CASO")," "),t.R7$(3),t.JRh(null==i.dettaglioPratica?null:i.dettaglioPratica.numeroCaso),t.R7$(8),t.FS9("title",t.bMT(22,26,"BUTTON_GENERICI.AIUTO_NAVIGAZIONE.TITOLO")),t.BMQ("aria-label",t.bMT(23,28,"BUTTON_GENERICI.AIUTO_NAVIGAZIONE.ARIALABEL")),t.R7$(4),t.Y8G("hidden",!1),t.R7$(2),t.Y8G("ngIf",i.isDialogOpen),t.R7$(15),t.JRh(null==i.dettaglioPratica?null:i.dettaglioPratica.tipo),t.R7$(7),t.JRh(null==i.dettaglioPratica?null:i.dettaglioPratica.stato),t.R7$(7),t.JRh(null==i.dettaglioPratica?null:i.dettaglioPratica.dataInfortunio),t.R7$(6),t.Y8G("ngIf",!i.isLoading),t.R7$(),t.Y8G("ngIf",i.isLoading),t.R7$(3),t.Y8G("titolo","Provvedimenti")("descrizione","Visualizza i provvedimenti della pratica")("items",i.provvedimentiAccordion)("noItemsMessage",i.messaggioErrore)("isLoadingMessage",i.isLoadingProvvedimenti),t.R7$(3),t.Y8G("data",i.dataForTable)("errorCall",i.isErrorDettaglio)("isLoading",i.isLoading),t.R7$(2),t.FS9("title",t.bMT(72,30,"TESTO_GENERICO.INDIETRO")),t.BMQ("aria-label",t.bMT(73,32,"TESTO_GENERICO.INDIETRO")),t.R7$(4),t.Y8G("key","dettPratica")("userManual","userManualDettaglioPratica"))},dependencies:[d.bT,G.D,y.C,D.N,_.Mm,ft.f,Ft,_.D9],styles:[".margin-spinner {\n  margin-top: 40px;\n  margin-bottom: 40px;\n}\n\n.margin-spinner2 {\n  margin: auto;\n}
1\n\n.icon-file-pdf {\n  width: 20px;\n  height: 20px;\n  display: block;\n  -webkit-mask-image: url('icon-file-pdf.bb84595339ae670e.svg');\n          mask-image: url('icon-file-pdf.bb84595339ae670e.svg');\n  background-color: white;\n}\n\n.icon-file-modulo {\n  width: 20px;\n  height: 20px;\n  display: block;\n  -webkit-mask-image: url('icon-book.dfc0bcc118038a22.svg');\n          mask-image: url('icon-book.dfc0bcc118038a22.svg');\n  background-color: white;\n}\n\n.chip-provvedimento {\n  cursor: pointer;\n}"],encapsulation:2})}}return n})(),data:{title:"Dettaglio pratica"}},{path:":id/dettaglio-pagamento",component:r(735).T,data:{title:"Dettaglio pagamento pratica"}}];let Xt=(()=>{class n{static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[g.iI.forChild(xt),g.iI]})}}return n})();var wt=r(1630),Yt=r(4675);let Ht=(()=>{class n{static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[d.MD,Xt,wt.G,l.YN,Yt.Q_.forRoot()]})}}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.