1"use strict";(self.webpackChunkSelfcareWebNew=self.webpackChunkSelfcareWebNew||[]).push([[770],{9986:(Q,S,l)=>{l.d(S,{x:()=>O});var u=l(4548),f=l(4004),g=l(262),m=l(2843),y=l(4650),e=l(529);let O=(()=>{const v=class{constructor(s,p){this.environment=s,this.http=p,this.invoicesBasePath="/invoice"}getInvoices(s){return this.http.post(this.environment.baseUrlApi+this.invoicesBasePath+"/get",s).pipe((0,f.U)(p=>p.data),(0,g.K)(p=>(0,m._)(p)))}getDashboardInvoice(s){return this.http.post(this.environment.baseUrlApi+this.invoicesBasePath+"/getDashboard",s).pipe((0,f.U)(p=>p.data),(0,g.K)(p=>(0,m._)(p)))}downloadInvoicePdf(s){return this.http.post(this.environment.baseUrlApi+this.invoicesBasePath+"/downloadPdf",s,{responseType:"blob"}).pipe((0,f.U)(p=>p),(0,g.K)(p=>(0,m._)(p)))}downloadInvoice(s){return this.http.post(this.environment.baseUrlApi+this.invoicesBasePath+"/download",s).pipe((0,f.U)(p=>p),(0,g.K)(p=>(0,m._)(p)))}invoicePaymentCdc(s){return this.http.post(this.environment.baseUrlApi+this.invoicesBasePath+"/startPaymentCdcV2",s).pipe((0,f.U)(p=>p.data),(0,g.K)(p=>(0,m._)(p)))}downloadDynamicInvoice(s){return this.http.post(this.environment.baseUrlApi+this.invoicesBasePath+"/dynamicInvoice",s,{responseType:"blob"}).pipe((0,f.U)(p=>p),(0,g.K)(p=>(0,m._)(p)))}invoicePaymentPaypal(s){return this.http.post(this.environment.baseUrlApi+this.invoicesBasePath+"/startPaypalPaymentV2",s).pipe((0,f.U)(p=>p.data),(0,g.K)(p=>(0,m._)(p)))}invoiceEndPaymentPaypal(s){return this.http.post(this.environment.baseUrlApi+this.invoicesBasePath+"/endPaypalPaymentV2",{orderId:s}).pipe((0,f.U)(p=>p.data),(0,g.K)(p=>(0,m._)(p)))}};let x=v;return v.\u0275fac=function(p){return new(p||v)(y.LFG(u.p),y.LFG(e.eN))},v.\u0275prov=y.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),x})()},9412:(Q,S,l)=>{l.d(S,{s:()=>k});var u=l(8429),f=l(5439),m=l(4650),y=l(3060),e=l(9986),O=l(4578),x=l(7028),v=l(3947),U=l(6895);function s(M,I){if(1&M){const J=m.EpF();m.TgZ(0,"a",3),m.NdJ("click",function(){m.CHM(J);const b=m.oxw();return m.KtG(b.goToInvoiceDetail())}),m._UZ(1,"img",5),m.qZA()}}function p(M,I){if(1&M){const J=m.EpF();m.TgZ(0,"a",3),m.NdJ("click",function(){m.CHM(J);const b=m.oxw();return m.KtG(b.downloadInvoiceXls("zip"))}),m._UZ(1,"img",6),m.qZA()}}let k=(()=>{const I=class{constructor(h,b,C,Z,T){this.router=h,this.invoicesService=b,this.spinnerService=C,this.dialogService=Z,this.fileSaverService=T,this.startInvoiceDate=null,this.endInvoiceDate=null,this.pinXls="",this.urlXls=""}set invoice(h){this.invoiceSelected=h}set filterStartInvoices(h){this.startInvoiceDate=h}set filterEndInvoices(h){this.endInvoiceDate=h}ngOnInit(){this.showIcon()}showIcon(){this.isCreditNote=!(this.invoiceSelected.numberInvoice&&this.invoiceSelected.numberInvoice.length>=5&&/^20[0-9]{2}[TFA]/.test(this.invoiceSelected.numberInvoice.substring(0,5))),this.show=!!(this.invoiceSelected.startInvoice&&this.invoiceSelected.endInvoice&&this.invoiceSelected.transmitInvoice)}goToInvoiceDetail(){this.router.navigateByUrl("/conto/dettaglio-fattura",{state:{invoice:this.invoiceSelected,backUrl:"/conto/fatturazione/fatture",dateFrom:this.startInvoiceDate,dateTo:this.endInvoiceDate}}).then(h=>console.log(h))}downloadInvoice(h){this.spinnerService.enable();const b=new u.N(this.invoiceSelected.account,this.invoiceSelected.numberInvoice,{dateFrom:this.startInvoiceDate?this.startInvoiceDate:null,dateTo:this.endInvoiceDate?this.endInvoiceDate:null});this.invoicesService.downloadInvoicePdf(b).subscribe(C=>{this.spinnerService.disable(),C.size&&C.size>1e3?this.fileSaverService.save(C,"fattura_"+this.invoiceSelected.numberInvoice+"."+h):this.dialogService.open({title:"Errore nel download",message:"pdf"===h?"Il PDF del documento "+this.invoiceSelected.numberInvoice+" non \xe8 ancora disponibile. Ti invitiamo a riprovare tra qualche giorno.":"Il dettaglio traffico del documento "+this.invoiceSelected.numberInvoice+" non \xe8 ancora disponibile. Ti invitiamo a riprovare tra qualche giorno.",cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})},C=>{this.spinnerService.disable(),this.dialogService.open({title:"Errore nel download",message:"pdf"===h?"Il PDF del documento "+this.invoiceSelected.numberInvoice+" non \xe8 ancora disponibile. Ti invitiamo a riprovare tra qualche giorno.":"Il dettaglio traffico del documento "+this.invoiceSelected.numberInvoice+" non \xe8 ancora disponibile. Ti invitiamo a riprovare tra qualche giorno.",cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})})}downloadInvoiceXls(h){var b=f().subtract(6,"month"),C=this.invoiceSelected.transmitInvoice,Z={};if(C){var T=C.substring(2,3),E=f(C,"DD"+T+"MM"+T+"YYYY").toDate();Z=Object.assign({},this.invoiceSelected,{isOld:f(E).isBefore(b)})}else Z=Object.assign({},this.invoiceSelected,{isOld:!0});if(Z.isOld)this.dialogService.open({title:"Attenzione",message:"In rispetto all'art. 123 del D. Lgs. 196/03 codice in materia di protezione dei dati personali, superati i 6 mesi dalla data di fatturazione, il dettaglio di traffico non \xe8 pi\xf9 disponibile.",hasEscape:!0});else{const P=new u.N(this.invoiceSelected.account,this.invoiceSelected.numberInvoice,{dateFrom:this.startInvoiceDate?this.startInvoiceDate:null,dateTo:this.endInvoiceDate?this.endInvoiceDate:null});this.spinnerService.enable(),this.invoicesService.downloadInvoice(P).subscribe(w=>{this.responseXls=w,w.data.pin&&""!==w.data.pin&&w.data.url&&""!==w.data.url?(this.pinXls=w.data.pin,this.urlXls=w.data.url,this.spinnerService.disable(),this.dialogService.open({title:"Dettaglio Chiamate",message:"Per garantire la sicurezza dei dati aziendali, il file \u201cDettaglio Chiamate\u201d \xe8 protetto.<br><br>Utilizza il seguente PIN per aprirlo:",cancelText:"Cancel",confirmText:"Scarica .zip",confirmOnly:!0,logo:!0,logoType:"info",pin:this.pinXls,copyIcon:"assets/images/copy.svg",hasEscape:!0}),this.dialogService.confirmed().subscribe(q=>{q&&this.urlXls&&""!==this.urlXls&&(window.location.href=this.urlXls)})):(this.spinnerService.disable(),this.dialogService.open({title:"Errore nel download",message:"pdf"===h?"Il PDF del documento "+this.invoiceSelected.numberInvoice+" non \xe8 ancora disponibile. Ti invitiamo a riprovare tra qualche giorno.":"Il dettaglio traffico del documento "+this.invoiceSelected.numberInvoice+" non \xe8 ancora disponibile. Ti invitiamo a riprovare tra qualche giorno.",cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"}))},w=>{this.spinnerService.disable(),this.dialogService.open({title:"Errore nel download",message:"pdf"===h?"Il PDF del documento "+this.invoiceSelected.numberInvoice+" non \xe8 ancora disponibile. Ti invitiamo a riprovare tra qualche giorno.":"Il dettaglio traffico del documento "+this.invoiceSelected.numberInvoice+" non \xe8 ancora disponibile. Ti invitiamo a riprovare tra qualche giorno.",cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})})}}};let M=I;return I.\u0275fac=function(b){return new(b||I)(m.Y36(y.F0),m.Y36(e.x),m.Y36(O.V),m.Y36(x.D),m.Y36(v.m9))},I.\u0275cmp=m.Xpm({type:I,selectors:[["app-invoice-extra-element"]],inputs:{invoice:"invoice",filterStartInvoices:"filterStartInvoices",filterEndInvoices:"filterEndInvoices"},decls:6,vars:2,consts:[[1,"cell-table","serviceMenu","invoice-extra-component-class"],[1,"serviceMenuItem"],["class","cursor-pointer",3,"click",4,"ngIf"],[1,"curs
1or-pointer",3,"click"],["src","assets/images/ico-pdf-white.svg","alt","pdf",1,"ico-downloads"],["src","assets/images/ico-find-white.svg","alt","find",1,"ico-downloads"],["src","assets/images/ico-xls-white.svg","alt","xls",1,"ico-downloads"]],template:function(b,C){1&b&&(m.TgZ(0,"div",0)(1,"div",1),m.YNc(2,s,2,0,"a",2),m.TgZ(3,"a",3),m.NdJ("click",function(){return C.downloadInvoice("pdf")}),m._UZ(4,"img",4),m.qZA(),m.YNc(5,p,2,0,"a",2),m.qZA()()),2&b&&(m.xp6(2),m.Q6J("ngIf",!C.isCreditNote&&C.show),m.xp6(3),m.Q6J("ngIf",!C.isCreditNote&&C.show))},dependencies:[U.O5],styles:[".invoice-extra-component-class[_ngcontent-%COMP%]{min-height:100%}"]}),M})()},8429:(Q,S,l)=>{l.d(S,{N:()=>u});class u{constructor(g,m,y){this.cdf=g,this.nfattura=m,this.filter=y}}},1745:(Q,S,l)=>{l.d(S,{g:()=>u});class u{constructor(g,m){this.dateFrom=g,this.dateTo=m}}},6770:(Q,S,l)=>{var F;l.r(S),l.d(S,{AssistenzaModule:()=>gi});var u=l(6895),f=l(3060),g=l(7579),m=l(2722),y=l(5439),e=l(4650),O=l(5986),x=l(4578),v=l(7028),U=l(2834),s=l(4006);const p={ASSISTENZA_TECNICA:{subject:[{value:"Sostituzione Handset per ATE o Kasko",key:"SOSTITUZIONE_HANDSET_ATE_KASKO"},{value:"Sim guasta",key:"SIM_GUASTA"},{value:"Apparato guasto",key:"APPARATO_MODEM_GUASTO"},{value:"Sostituzione Handset per DOA",key:"SOSTITUZIONE_HANDSET_DOA"},{value:"Sede isolata",key:"SEDE_ISOLATA"},{value:"Problema linea in ingresso",key:"LINEA_BLOCC_IN"},{value:"Problema linea in uscita",key:"LINEA_BLOCC_OUT"},{value:"Fruscio/Eco",key:"FRUSCIO_ECO"},{value:"Problema chiamate cellulari",key:"NO_CHIAM_CELL"},{value:"Problema chiamate num. internazionali",key:"NO_CHIAM_NUM_ITZ"}],service:[{value:"Voce",key:"VOCE"},{value:"Internet",key:"INTERNET"}],domain:[{value:"Mobile",key:"Mobile"},{value:"Fisso",key:"Fisso"}],scope:[{value:"Offerta unica mobile",key:"MOBILE"},{value:"Fisso standard",key:"FISSO STANDARD"},{value:"Fibra ftth",key:"FIBRA FTTH"},{value:"Accesso fttc",key:"ACCESSO FTTC"}],model:[{value:"Router",key:"router"},{value:"Smartphone",key:"smartphone"},{value:"Accessorio",key:"accessorio"}],channelNotification:[{value:"SMS Referente",key:"Sms"},{value:"Email Referente",key:"Email"}]},RICHIESTE_AMM_COMM:{subject:[{value:"Ritardo attivazione servizio",key:"RITARDO_ATTIVAZIONE_SERVIZIO"},{value:"Ritardo consegna materiale",key:"RITARDO_CONSEGNA_MATERIALE"},{value:"Errata Tariffazione/Costo Chiamate",key:"ERRATA_TARIFFAZIONE_COSTO_CHIAMATE"},{value:"Errato addebito ricariche",key:"ERRATO_ADDEBITO_RICARICHE"},{value:"Errata Fatturazione Canoni e Contributi",key:"ERRATA_FATTURAZIONE_CANONI_E_CONTRIBUTI"},{value:"Mancata Attivazione/Disattivazione Servizi a Sovrapprezzo",key:"MANCATA_ATTIVAZIONE_DISATTIVAZIONE_SERVIZI_A_SOVRAPPREZZO"},{value:"Errato formato fattura",key:"ERRATO_FORMATO_FATTURA"},{value:"Legge di Bilancio 2020",key:"LEGGE_BILANCIO_2020"},{value:"Recesso/Disdetta Totale",key:"RECESSO_DISDETTA_TOTALE"},{value:"Recesso/Disdetta Parziale",key:"RECESSO_DISDETTA_PARZIALE"}],idTripletta:{RITARDO_ATTIVAZIONE_SERVIZIO:{Mobile:"117501",Fisso:"117502"},RITARDO_CONSEGNA_MATERIALE:{Mobile:"117503",Fisso:"117504"},ERRATA_TARIFFAZIONE_COSTO_CHIAMATE:"117505",ERRATO_ADDEBITO_RICARICHE:"117510",ERRATA_FATTURAZIONE_CANONI_E_CONTRIBUTI:"117515",MANCATA_ATTIVAZIONE_DISATTIVAZIONE_SERVIZI_A_SOVRAPPREZZO:"117516",ERRATO_FORMATO_FATTURA:"117708",RECESSO_DISDETTA_PARZIALE:{Mobile:"121125",Fisso:"121089",Fisso_e_Mobile:"121126"},RECESSO_DISDETTA_TOTALE:{Default:"121088"},LEGGE_BILANCIO_2020:"121736"},domain:{isConditional:!0,options:{standard:[{value:"Mobile",key:"Mobile"},{value:"Fisso",key:"Fisso"}],mobileOnly:[{value:"Mobile",key:"Mobile"}],fixedOnly:[{value:"Fisso",key:"Fisso"}],combined:[{value:"Mobile",key:"Mobile"},{value:"Fisso",key:"Fisso"},{value:"Fisso e Mobile",key:"Fisso_e_Mobile"}]}},specifics:[{value:"Modulo Accredito Penali",key:"MODULO_ACCREDITO_PENALI"}],refundType:[{value:"Assegno",key:"Assegno"},{value:"Bonifico bancario",key:"Bonifico bancario"}],channelNotification:[{value:"SMS Referente",key:"Sms"},{value:"Email Referente",key:"Email"}]},REINTEGRO_FURTO_SMARRIMENTO:{subject:[{value:"Blocco IMEI",key:"BLOCCO_IMEI"}],service:[{value:"Voce",key:"VOCE"},{value:"Dati",key:"DATI"}],tipology:[{value:"Furto",key:"SOSTITUZIONE_SIM_FURTO"},{value:"Smarrimento",key:"SOSTITUZIONE_SIM_SMARR"}]}};var k=l(5697),M=l(8395),I=l(3480),J=l(7582),h=l(4548),b=l(4004),C=l(529);let Z=((F=class{constructor(r,o){this.environment=r,this.http=o,this.companyApiUrl="/company"}removeFavouriteOffice(){return this.http.post(this.environment.baseUrlApi+this.companyApiUrl+"/removeFavouriteOffice",{}).pipe((0,b.U)(r=>r.error?r.error:r.data?.esito||"KO"))}getOfficeList(r){return this.http.post(this.environment.baseUrlApi+this.companyApiUrl+"/officelist",r).pipe((0,b.U)(o=>o.error?o.error:o.data))}getOfficeDetails(r,o,t){return this.http.post(this.environment.baseUrlApi+this.companyApiUrl+"/detailoffice",{officeCode:r,offset:o,pageSize:t}).pipe((0,b.U)(i=>i.error?i.error:i.data))}}).\u0275fac=function(o){return new(o||F)(e.LFG(h.p),e.LFG(C.eN))},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F);Z=(0,J.gn)([(0,e.GSi)()],Z);var T=l(9549),E=l(4385),P=l(3238),w=l(4077),q=l(9349),R=l(284),H=l(1948),z=l(9602);function oe(n,r){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.qZA()),2&n){const o=r.$implicit;e.Q6J("value",o.key),e.xp6(1),e.hij(" ",o.value," ")}}function ae(n,r){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.qZA()),2&n){const o=r.$implicit;e.Q6J("value",o.key),e.xp6(1),e.hij(" ",o.value," ")}}function re(n,r){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.qZA()),2&n){const o=r.$implicit;e.Q6J("value",o.key),e.xp6(1),e.hij(" ",o.value," ")}}function se(n,r){1&n&&(e.TgZ(0,"mat-error",37),e._uU(1," Questo campo \xe8 obbligatorio "),e.qZA())}function ce(n,r){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.qZA()),2&n){const o=r.$implicit;e.Q6J("value",o),e.xp6(1),e.hij(" ",o.officeName," ")}}function le(n,r){if(1&n&&(e.TgZ(0,"mat-form-field",4)(1,"mat-label"),e._uU(2,"Indirizzo sede"),e.qZA(),e._UZ(3,"input",26),e.qZA()),2&n){const o=e.oxw();e.xp6(3),e.Q6J("formControl",o.officeAddressTicket)}}function me(n,r){1&n&&e._UZ(0,"div",9)}function de(n,r){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.qZA()),2&n){const o=r.$implicit;e.Q6J("value",o),e.xp6(1),e.hij(" ",o.name+" "+o.surname," ")}}function pe(n,r){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.qZA()),2&n){const o=r.$implicit;e.Q6J("value",o.key),e.xp6(1),e.hij(" ",o.value," ")}}let ue=(()=>{const r=class{constructor(t,i,a,c,d,_){this.companyService=t,this.userUtilsService=i,this.supportService=a,this.spinnerService=c,this.dialogService=d,this.router=_,this._officeList=[],this.subjectTicket=null,this.isHcUser=!1,this.serviceTicket=null,this.resetForm=new e.vpe,this.loadOfficeList=new e.vpe,this.todayDate=new Date,this.referentList=[],this.isLoadingReferentList=!1,this.newTicketFaultForm=new s.cw({domain:new s.NI(null,s.kI.required),scope:new s.NI(null,s.kI.required),model:new s.NI(null),phoneNumber:new s.NI(null,s.kI.required),notes:new s.NI(null),isBlocking:new s.NI(null,s.kI.required),startDate:new s.NI(null,s.kI.required),office:new s.NI({value:null,disabled:!0},s.kI.required),officeAddress:new s.NI({value:null,disabled:!0}),officeType:new s.NI({value:null,disabled:!0}),referent:new s.NI({value:null,disabled:!0},s.kI.required),referentPhone:new s.NI(null),referentMail:new s.NI(null,s.kI.email),applicantName:new s.NI(null),applicantSurname:new s.NI(null),applicantEmail:new s.NI(null,s.kI.email),applicantPhone:new s.NI(null),applicantFax:new s.NI(null),notificationChannel:new s.NI(null,s.kI.required)}),this._unsubscribeSignal$=new g.x,this.returnToRichiesteSegnalazioni=new e.vpe}set officeList(t){this._officeList=t,t&&t.length?this.officeTicket.enable():this.officeTicket.disable()}get domainTicket(){return this.newTicketFaultForm.get("domain")}get scopeTicket(){return this.newTicketFaultForm.get("scope")}get modelTicket(){return this.newTicketFaultForm.get("model")}get phoneNumberTicket(){return this.newTicketFaultForm.get("phoneNumber")}get notesTicket(){return this.newTicketFaultForm.get("notes")}get isBlockingTicket(){return this.newTicketFaultForm.get("isBlocking")}get startDateTicket(){return this.newTicketFaultForm.get("startDate")}get officeTicket(){return this.newTicketFaultForm.get("office")}get officeAddressTicket(){return this.newTicketFaultForm.get("officeAddress")}get officeTypeTicket(){return this.newTicketFaultForm.get("officeType")}get referentTicket(){return this.newTicketFaultForm.get("referent")}get referentPhoneTicket(){return this.newTicketFaultForm.get("referentPhone")}get referentMailTicket(){return this.newTicketFaultForm.get("referentMail")}get applicantNameTicket(){return this.newTicketFaultForm.get("applicantName")}get applicantSurnameTicket(){return this.newTicketFaultForm.get("applicantSurname")}get applicantEmailTicket(){return this.newTicketFaultForm.get("applicantEmail")}get applicantPhoneTicket(){return this.newTicketFaultForm.get("applicantPhone")}get applicantFaxTicket(){return this.newTicketFaultForm.get("applicantFax")}get notificationChannelTicket(){return this.newTicketFaultForm.get("notificationChannel")}
1get technicalSupport(){return p.ASSISTENZA_TECNICA}ngOnInit(){this.loadOfficeList.emit(),"SIM_GUASTA"!==this.subjectTicket&&this.modelTicket.addValidators(s.kI.required)}onOfficeChange(t){this.getOfficeReferents(t.value.officeId)}onChannelNotificationChange(t){"Email"===t.value?(this.referentMailTicket.setValidators([s.kI.required,s.kI.email]),this.referentPhoneTicket.setValidators([])):(this.referentMailTicket.setValidators([]),this.referentPhoneTicket.setValidators([s.kI.required])),this.referentMailTicket.updateValueAndValidity(),this.referentPhoneTicket.updateValueAndValidity()}getOfficeReferents(t){this.spinnerService.enable(),this.isLoadingReferentList=!0,this.companyService.getOfficeDetails(t).pipe((0,m.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:i=>{(0,k.G)(i)?this.setEmptyReferentList():(this.referentList=i.referents,this.referentTicket.enable(),this.selectedOfficeDetail=i.officeDetail,this.officeAddressTicket.setValue(this.selectedOfficeDetail?.address),this.officeTypeTicket.setValue(this.selectedOfficeDetail.type)),this.isLoadingReferentList=!1,this.spinnerService.disable()},error:i=>{this.setEmptyReferentList(),this.isLoadingReferentList=!1,this.spinnerService.disable()}})}setEmptyReferentList(){this.referentList=[],this.referentTicket.disable(),this.selectedOfficeDetail=void 0,this.officeAddressTicket.setValue(null),this.officeTypeTicket.setValue(null)}onReferentChange(t){const i=t.value;this.referentPhoneTicket.setValue(i.phone),this.referentMailTicket.setValue(i.email)}confirmRequest(){this.spinnerService.enable();const t={username:this.userUtilsService.getUserName()||"",description:this.subjectTicket||"",notificationChannel:this.notificationChannelTicket.value||"",note:this.notesTicket.value||"",phoneNumber:this.phoneNumberTicket.value||"",severityReported:this.isBlockingTicket.value||"",faultStartDate:this.getUTCStartDay(),deviceModel:this.modelTicket.value||"",fax:this.applicantFaxTicket.value||"",applicantPhone:this.applicantPhoneTicket.value||"",applicantEmail:this.applicantEmailTicket.value||"",applicantName:this.applicantNameTicket.value||"",applicantLastName:this.applicantSurnameTicket.value||"",referentRowId:this.referentTicket.value?.rowIdReferent||"",referentName:this.referentTicket.value?.name||"",referentLastname:this.referentTicket.value?.surname||"",referentEmail:this.referentMailTicket.value||"",referentPhone:this.referentPhoneTicket.value||"",problemArea:this.scopeTicket.value||"",problemDomain:this.domainTicket.value||"",problemService:this.serviceTicket||"",requestedTypology:this.subjectTicket||"",officeRowId:this.officeTicket.value?.officeId||"",officeAddress:this.officeAddressTicket.value||"",officeType:this.officeTypeTicket.value||"",siteId:19};this.supportService.faultManagement(t).pipe((0,m.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:i=>{(0,k.G)(i)?this.errorHttpModal(i.message):(this.dialogService.open({title:"Segnalazione inviata",message:"La segnalazione è stata presa in carico. <br/><br/> Non sar\xe0 possibile effettuare altre operazioni su questa linea fino all'evasione della modifica che si sta inviando, pertanto ti chiediamo di attendere il completamento di questa pratica prima di inserirne una nuova. Verifica direttamente nella sezione \u201cRichieste e segnalazioni\u201d lo stato della tua pratica.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"confirm"}),this.dialogService.confirmed().subscribe(a=>{this.goToRequestsAndReports()})),this.spinnerService.disable()},error:i=>{this.errorHttpModal(),this.spinnerService.disable()}})}goToRequestsAndReports(){this.returnToRichiesteSegnalazioni.emit()}getUTCStartDay(){if(this.startDateTicket.value){const t=this.startDateTicket.value;return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)).toISOString()}return""}errorHttpModal(t){this.spinnerService.disable(),this.dialogService.open({title:"Attenzione!",message:t||"Il servizio non \xe8 al momento disponibile, riprova pi\xf9 tardi.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})}ngOnDestroy(){this._unsubscribeSignal$.next(),this._unsubscribeSignal$.unsubscribe()}};let n=r;return r.\u0275fac=function(i){return new(i||r)(e.Y36(Z),e.Y36(M.r),e.Y36(O.g),e.Y36(x.V),e.Y36(v.D),e.Y36(f.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-new-ticket-fault-form"]],inputs:{officeList:"officeList",subjectTicket:"subjectTicket",isHcUser:"isHcUser",serviceTicket:"serviceTicket"},outputs:{resetForm:"resetForm",loadOfficeList:"loadOfficeList",returnToRichiesteSegnalazioni:"returnToRichiesteSegnalazioni"},decls:139,vars:32,consts:[[3,"formGroup"],[1,"row"],[1,"box"],[1,"itemBox","faultTicket"],["appearance","legacy"],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],["matInput","","id","phoneNumber","type","text","autocomplete","off",3,"formControl"],["style","font-size: 1.1rem;",4,"ngIf"],[1,"containerDiv"],[1,"textArea"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","5",3,"formControl"],["autosize","cdkTextareaAutosize"],[1,"row","checkboxArea","containerDiv"],[1,"required"],[1,"radioBox"],["aria-label","Select an option",3,"formControl"],[1,"row","radioGroup"],["value","Bloccante"],["value","Non bloccante"],["appearance","legacy",1,"advanced-search-form-field"],["matInput","","placeholder","DD/MM/YYYY",3,"matDatepicker","max","formControl"],["matSuffix","",3,"for"],["pickerStart",""],[3,"formControl","selectionChange"],["appearance","legacy",4,"ngIf"],["matInput","",3,"formControl"],["class","containerDiv",4,"ngIf"],[1,"small"],["matInput","","type","string","autocomplete","off",3,"formControl"],["appearance","legacy",1,"subItemMargin"],["matInput","","type","email","autocomplete","off",3,"formControl"],["matInput","","type","text","autocomplete","off",3,"formControl"],[1,"buttonWrapper"],[1,"cta","empty",3,"click"],[1,"cta",3,"disabled","click"],[3,"value"],[2,"font-size","1.1rem"]],template:function(i,a){if(1&i&&(e.TgZ(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),e._uU(6,"Dominio"),e.qZA(),e.TgZ(7,"mat-select",5),e.YNc(8,oe,2,2,"mat-option",6),e.qZA()(),e.TgZ(9,"mat-form-field",4)(10,"mat-label"),e._uU(11,"Ambito"),e.qZA(),e.TgZ(12,"mat-select",5),e.YNc(13,ae,2,2,"mat-option",6),e.qZA()(),e.TgZ(14,"mat-form-field",4)(15,"mat-label"),e._uU(16,"Modello"),e.qZA(),e.TgZ(17,"mat-select",5),e.YNc(18,re,2,2,"mat-option",6),e.qZA()()()()(),e.TgZ(19,"div",1)(20,"div",2)(21,"div",3)(22,"mat-form-field",4)(23,"mat-label"),e._uU(24,"Numero di telefono/Numero seriale/IMEI"),e.qZA(),e._UZ(25,"input",7),e.YNc(26,se,2,0,"mat-error",8),e.qZA(),e._UZ(27,"div",9)(28,"div",9),e.qZA()()(),e.TgZ(29,"h3"),e._uU(30,"Note"),e.qZA(),e.TgZ(31,"div",10),e._UZ(32,"textarea",11,12),e.qZA(),e.TgZ(34,"div",1)(35,"div",2)(36,"div",3)(37,"div",13)(38,"mat-label"),e._uU(39,"Guasto bloccante "),e.TgZ(40,"span",14),e._uU(41,"*"),e.qZA()(),e.TgZ(42,"div",15)(43,"mat-radio-group",16)(44,"div",17)(45,"mat-radio-button",18),e._uU(46,"Si"),e.qZA(),e.TgZ(47,"mat-radio-button",19),e._uU(48,"No"),e.qZA()()()()(),e.TgZ(49,"mat-form-field",20)(50,"mat-label"),e._uU(51,"Data inizio guasto"),e.qZA(),e._UZ(52,"input",21)(53,"mat-datepicker-toggle",22)(54,"mat-datepicker",null,23),e.qZA(),e._UZ(56,"div",9),e.qZA()()(),e.TgZ(57,"h4"),e._uU(58,"Per completare la segnalazione \xe8 necessario indicare l'indirizzo della sede disservita."),e.qZA(),e.TgZ(59,"div",1)(60,"div",2)(61,"div",3)(62,"mat-form-field",4)(63,"mat-label"),e._uU(64,"Nome sede"),e.qZA(),e.TgZ(65,"mat-select",24),e.NdJ("selectionChange",function(d){return a.onOfficeChange(d)}),e.YNc(66,ce,2,2,"mat-option",6),e.qZA()(),e.YNc(67,le,4,1,"mat-form-field",25),e.TgZ(68,"mat-form-field",4)(69,"mat-label"),e._uU(70,"Tipologia sede"),e.qZA(),e._UZ(71,"input",26),e.qZA(),e.YNc(72,me,1,0,"div",27),e.qZA()()(),e.TgZ(73,"h3",28),e._uU(74,"Dati anagrafici Referente Legale"),e.qZA(),e.TgZ(75,"div",1)(76,"div",2)(77,"div",3)(78,"mat-form-field",4)(79,"mat-label"),e._uU(80,"Referente"),e.qZA(),e.TgZ(81,"mat-select",24),e.NdJ("selectionChange",function(d){return a.onReferentChange(d)}),e.YNc(82,de,2,2,"mat-option",6),e.qZA()(),e.TgZ(83,"mat-form-field",4)(84,"mat-label"),e._uU(85,"Telefono"),e.qZA(),e._UZ(86,"input",29),e.qZA(),e.TgZ(87,"mat-form-field",30)(88,"mat-label"),e._uU(89,"Email"),e.qZA(),e._UZ(90,"input",31),e.qZA()()()(),e.TgZ(91,"h3",28),e._uU(92,"Dati anagrafici Richiede
1nte"),e.qZA(),e.TgZ(93,"div",1)(94,"div",2)(95,"div",3)(96,"mat-form-field",4)(97,"mat-label"),e._uU(98,"Nome Richiedente"),e.qZA(),e._UZ(99,"input",32),e.qZA(),e.TgZ(100,"mat-form-field",4)(101,"mat-label"),e._uU(102,"Cognome Richiedente"),e.qZA(),e._UZ(103,"input",32),e.qZA(),e.TgZ(104,"mat-form-field",4)(105,"mat-label"),e._uU(106,"Email Richiedente"),e.qZA(),e._UZ(107,"input",31),e.qZA()()()(),e.TgZ(108,"div",1)(109,"div",2)(110,"div",3)(111,"mat-form-field",4)(112,"mat-label"),e._uU(113,"Telefono Richiedente"),e.qZA(),e._UZ(114,"input",29),e.qZA(),e.TgZ(115,"mat-form-field",30)(116,"mat-label"),e._uU(117,"Fax"),e.qZA(),e._UZ(118,"input",29),e.qZA(),e._UZ(119,"div",9),e.qZA()()(),e.TgZ(120,"h3",28),e._uU(121,"Modalit\xe1 di notifica"),e.qZA(),e.TgZ(122,"div",1)(123,"div",2)(124,"div",3)(125,"mat-form-field",4)(126,"mat-label"),e._uU(127,"Canale di notifica"),e.qZA(),e.TgZ(128,"mat-select",24),e.NdJ("selectionChange",function(d){return a.onChannelNotificationChange(d)}),e.YNc(129,pe,2,2,"mat-option",6),e.qZA()(),e._UZ(130,"div",9)(131,"div",9),e.qZA()()()(),e.TgZ(132,"h4",28),e._uU(133,"Cliccando su CONFERMA procederai con l'invio della segnalazione."),e.qZA(),e.TgZ(134,"div",33)(135,"button",34),e.NdJ("click",function(){return a.resetForm.emit()}),e._uU(136," ANNULLA "),e.qZA(),e.TgZ(137,"button",35),e.NdJ("click",function(){return a.confirmRequest()}),e._uU(138," CONFERMA "),e.qZA()()),2&i){const c=e.MAs(55);let d;e.Q6J("formGroup",a.newTicketFaultForm),e.xp6(7),e.Q6J("formControl",a.domainTicket),e.xp6(1),e.Q6J("ngForOf",a.technicalSupp
1ort.domain),e.xp6(4),e.Q6J("formControl",a.scopeTicket),e.xp6(1),e.Q6J("ngForOf",a.technicalSupport.scope),e.xp6(4),e.Q6J("formControl",a.modelTicket),e.xp6(1),e.Q6J("ngForOf",a.technicalSupport.model),e.xp6(7),e.Q6J("formControl",a.phoneNumberTicket),e.xp6(1),e.Q6J("ngIf",(null==(d=a.newTicketFaultForm.get("phoneNumber"))?null:d.invalid)&&(null==(d=a.newTicketFaultForm.get("phoneNumber"))?null:d.touched)),e.xp6(6),e.Q6J("formControl",a.notesTicket),e.xp6(11),e.Q6J("formControl",a.isBlockingTicket),e.xp6(9),e.Q6J("matDatepicker",c)("max",a.todayDate)("formControl",a.startDateTicket),e.xp6(1),e.Q6J("for",c),e.xp6(12),e.Q6J("formControl",a.officeTicket),e.xp6(1),e.Q6J("ngForOf",a._officeList),e.xp6(1),e.Q6J("ngIf",!a.isHcUser),e.xp6(4),e.Q6J("formControl",a.officeTypeTicket),e.xp6(1),e.Q6J("ngIf",a.isHcUser),e.xp6(9),e.Q6J("formControl",a.referentTicket),e.xp6(1),e.Q6J("ngForOf",a.referentList),e.xp6(4),e.Q6J("formControl",a.referentPhoneTicket),e.xp6(4),e.Q6J("formControl",a.referentMailTicket),e.xp6(9),e.Q6J("formControl",a.applicantNameTicket),e.xp6(4),e.Q6J("formControl",a.applicantSurnameTicket),e.xp6(4),e.Q6J("formControl",a.applicantEmailTicket),e.xp6(7),e.Q6J("formControl",a.applicantPhoneTicket),e.xp6(4),e.Q6J("formControl",a.applicantFaxTicket),e.xp6(10),e.Q6J("formControl",a.notificationChannelTicket),e.xp6(1),e.Q6J("ngForOf",a.technicalSupp
1ort.channelNotification),e.xp6(8),e.Q6J("disabled",a.newTicketFaultForm.invalid)}},dependencies:[u.sg,u.O5,q.IC,T.TO,T.KE,T.hX,T.R9,R.Nt,E.gD,P.ey,H.VQ,H.U0,s._Y,s.Fj,s.JJ,s.JL,s.oH,s.sg,z.Mq,z.hl,z.nW],styles:[".buttonWrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.checkboxArea[_ngcontent-%COMP%]{flex-direction:column;font-size:1.6rem;margin-top:2rem}.checkboxArea[_ngcontent-%COMP%] .radioBox[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;row-gap:1rem;margin-top:2rem}@media screen and (max-width: 767px){.checkboxArea[_ngcontent-%COMP%] .radioBox[_ngcontent-%COMP%]{margin-bottom:2rem}}@media screen and (max-width: 767px){.checkboxArea[_ngcontent-%COMP%] .radioBox[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{row-gap:1.5rem}}.checkboxArea[_ngcontent-%COMP%] .radioBox[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:not(:last-child):after{display:none}h3[_ngcontent-%COMP%]{margin-top:3.2rem;color:#08080d;font-size:24px;line-height:1.92rem;text-align:left;font-weight:700;letter-spacing:0px}h3.small[_ngcontent-%COMP%]{font-size:1.6rem;margin-top:4.2rem}h4[_ngcontent-%COMP%]{margin-top:4rem;font-size:1.6rem;font-weight:300;line-height:1.92rem;text-align:left;font-weight:400;letter-spacing:0px}h4.small[_ngcontent-%COMP%]{font-size:1.4rem}.textArea[_ngcontent-%COMP%]{padding:8px 16px;background:#ffffff;border:.5px solid #b3b3b3;font-size:1.6rem;margin-top:1.6rem}.textArea[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{min-height:8rem}.radioGroup[_ngcontent-%COMP%]{column-gap:4rem}.faultTicket[_ngcontent-%COMP%]{align-items:center;margin-top:1rem}.faultTicket[_ngcontent-%COMP%] .containerDiv[_ngcontent-%COMP%]{width:30rem}.faultTicket[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:30rem}@media screen and (max-width: 767px){.faultTicket[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}}"]}),n})();function _e(n,r){if(1&n&&(e.TgZ(0,"mat-option",20),e._uU(1),e.qZA()),2&n){const o=r.$implicit;e.Q6J("value",o),e.xp6(1),e.hij(" ",o.officeName," ")}}function fe(n,r){if(1&n&&(e.TgZ(0,"mat-form-field",4)(1,"mat-label"),e._uU(2,"Indirizzo sede"),e.qZA(),e._UZ(3,"input",5),e.qZA()),2&n){const o=e.oxw();e.xp6(3),e.Q6J("formControl",o.officeAddressTicket)}}function ge(n,r){1&n&&e._UZ(0,"div",6)}function he(n,r){if(1&n&&(e.TgZ(0,"mat-option",20),e._uU(1),e.qZA()),2&n){const o=r.$implicit;e.Q6J("value",o),e.xp6(1),e.hij(" ",o.name+" "+o.surname," ")}}function Te(n,r){if(1&n&&(e.TgZ(0,"mat-option",20),e._uU(1),e.qZA()),2&n){const o=r.$implicit;e.Q6J("value",o.key),e.xp6(1),e.hij(" ",o.value," ")}}let ve=(()=>{const r=class{constructor(t,i,a,c,d,_){this.userUtilsService=t,this.spinnerService=i,this.companyService=a,this.supportService=c,this.dialogService=d,this.router=_,this._officeList=[],this.subjectTicket=null,this.domainTicket=null,this.isHcUser=!1,this.resetForm=new e.vpe,this.loadOfficeList=new e.vpe,this.today=new Date,this.referentList=[],this.isLoadingReferentList=!1,this.newTicketComplaintForm=new s.cw({invoiceNumber:new s.NI(null),notes:new s.NI(null,s.kI.required),office:new s.NI(null,s.kI.required),officeAddress:new s.NI({value:null,disabled:!0}),officeType:new s.NI({value:null,disabled:!0}),referent:new s.NI({value:null,disabled:!0},s.kI.required),referentPhone:new s.NI(null),referentMail:new s.NI(null,s.kI.email),applicantName:new s.NI(null),applicantSurname:new s.NI(null),applicantEmail:new s.NI(null),applicantPhone:new s.NI(null),applicantFax:new s.NI(null),notificationChannel:new s.NI(null,s.kI.required)}),this._unsubscribeSignal$=new g.x,this.returnToRichiesteSegnalazioni=new e.vpe}set officeList(t){this._officeList=t,t&&t.length?this.officeTicket.enable():this.officeTicket.disable()}get invoiceNumberTicket(){return this.newTicketComplaintForm.get("invoiceNumber")}get notesTicket(){return this.newTicketComplaintForm.get("notes")}get officeTicket(){return this.newTicketComplaintForm.get("office")}get officeAddressTicket(){return this.newTicketComplaintForm.get("officeAddress")}get officeTypeTicket(){return this.newTicketComplaintForm.get("officeType")}get referentTicket(){return this.newTicketComplaintForm.get("referent")}get referentPhoneTicket(){return this.newTicketComplaintForm.get("referentPhone")}get referentMailTicket(){return this.newTicketComplaintForm.get("referentMail")}get applicantNameTicket(){return this.newTicketComplaintForm.get("applicantName")}get applicantSurnameTicket(){return this.newTicketComplaintForm.get("applicantSurname")}get applicantEmailTicket(){return this.newTicketComplaintForm.get("applicantEmail")}get applicantPhoneTicket(){return this.newTicketComplaintForm.get("applicantPhone")}get applicantFaxTicket(){return this.newTicketComplaintForm.get("applicantFax")}get notificationChannelTicket(){return this.newTicketComplaintForm.get("notificationChannel")}get amministrativeCommercialRequests(){return p.RICHIESTE_AMM_COMM}get tripletId(){const t=this.amministrativeCommercialRequests.idTripletta[this.subjectTicket];return"string"==typeof t?t:this.domainTicket&&t[this.domainTicket]||""}ngOnInit(){this.loadOfficeList.emit()}onOfficeChange(t){this.getOfficeReferents(t.value.officeId)}onChannelNotificationChange(t){"Email"===t.value?(this.referentMailTicket.setValidators([s.kI.required,s.kI.email]),this.referentPhoneTicket.setValidators([])):(this.referentMailTicket.setValidators([]),this.referentPhoneTicket.setValidators([s.kI.required]))}getOfficeReferents(t){this.spinnerService.enable(),this.isLoadingReferentList=!0,this.companyService.getOfficeDetails(t).pipe((0,m.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:i=>{(0,k.G)(i)?this.setEmptyReferentList():(this.referentList=i.referents,this.referentTicket.enable(),this.selectedOfficeDetail=i.officeDetail,this.officeAddressTicket.setValue(this.selectedOfficeDetail?.address),this.officeTypeTicket.setValue(this.selectedOfficeDetail?.type)),this.isLoadingReferentList=!1,this.spinnerService.disable()},error:i=>{this.setEmptyReferentList(),this.isLoadingReferentList=!1,this.spinnerService.disable()}})}setEmptyReferentList(){this.referentList=[],this.referentTicket.disable(),this.selectedOfficeDetail=void 0,this.officeAddressTicket.setValue(null),this.officeTypeTicket.setValue(null)}onReferentChange(t){const i=t.value;this.referentPhoneTicket.setValue(i.phone),this.referentMailTicket.setValue(i.email)}confirmRequest(){this.spinnerService.enable();const t={requestType:this.subjectTicket||"",piva:this.userUtilsService.getPiva()||"",user:this.userUtilsService.getUserName()||"",description:this.subjectTicket||"",referentName:this.referentTicket.value?.name||"",referentLastname:this.referentTicket.value?.surname||"",referentPhone:this.referentPhoneTicket.value||"",referentEmail:this.referentMailTicket.value||"",applicantName:this.applicantNameTicket.value||"",applicantLastname:this.applicantSurnameTicket.value||"",applicantPhone:this.applicantPhoneTicket.value||"",applicantEmail:this.applicantEmailTicket.value||"",fax:this.applicantFaxTicket.value||"",note:this.notesTicket.value||"",problemDomain:this.domainTicket||"",invoiceNumber:this.invoiceNumberTicket.value||"",officeRowId:this.officeTicket.value?.officeId||"",officeAddress:this.officeAddressTicket.value||"",officeType:this.officeTypeTicket.value||"",notificationChannel:this.notificationChannelTicket.value||"",tripletId:this.tripletId||"",referentRowId:this.referentTicket.value?.rowIdReferent||""};this.supportService.complaintReport(t).pipe((0,m.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:i=>{(0,k.G)(i)?this.errorHttpModal(i.message):(this.dialogService.open({title:"Segnalazione inviata",message:"La segnalazione è stata presa in carico. <br/><br/> Non sar\xe0 possibile effettuare altre operazioni su questa linea fino all'evasione della modifica che si sta inviando, pertanto t
1i chiediamo di attendere il completamento di questa pratica prima di inserirne una nuova. Verifica direttamente nella sezione \u201cRichieste e segnalazioni\u201d lo stato della tua pratica.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"confirm"}),this.dialogService.confirmed().subscribe(a=>{this.goToRequestsAndReports()})),this.spinnerService.disable()},error:i=>{this.errorHttpModal(),this.spinnerService.disable()}})}goToRequestsAndReports(){this.returnToRichiesteSegnalazioni.emit()}errorHttpModal(t){this.spinnerService.disable(),this.dialogService.open({title:"Attenzione!",message:t||"Il servizio non \xe8 al momento disponibile, riprova pi\xf9 tardi.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})}ngOnDestroy(){this._unsubscribeSignal$.next(),this._unsubscribeSignal$.unsubscribe()}};let n=r;return r.\u0275fac=function(i){return new(i||r)(e.Y36(M.r),e.Y36(x.V),e.Y36(Z),e.Y36(O.g),e.Y36(v.D),e.Y36(f.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-new-ticket-complaint-form"]],inputs:{officeList:"officeList",subjectTicket:"subjectTicket",domainTicket:"domainTicket",isHcUser:"isHcUser"},outputs:{resetForm:"resetForm",loadOfficeList:"loadOfficeList",returnToRichiesteSegnalazioni:"returnToRichiesteSegnalazioni"},decls:95,vars:20,consts:[[3,"formGroup"],[1,"row"],[1,"box"],[1,"itemBox","complaintTicket"],["appearance","legacy"],["matInput","","type","text","autocomplete","off",3,"formControl"],[1,"containerDiv"],[1,"textArea"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","5",3,"formControl"],["autosize","cdkTextareaAutosize"],[3,"formControl","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["appearance","legacy",4,"ngIf"],["class","containerDiv",4,"ngIf"],[1,"small"],["matInput","","type","string","autocomplete","off",3,"formControl"],["matInput","","type","email","autocomplete","off",3,"formControl"],[1,"buttonWrapper"],[1,"cta","empty",3,"click"],[1,"cta",3,"disabled","click"],[3,"value"]],template:function(i,a){1&i&&(e.TgZ(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),e._uU(6,"Numero fattura"),e.qZA(),e._UZ(7,"input",5),e.qZA(),e._UZ(8,"div",6)(9,"div",6),e.qZA()()(),e.TgZ(10,"h3"),e._uU(11,"Note: *"),e.qZA(),e.TgZ(12,"div",7),e._UZ(13,"textarea",8,9),e.qZA(),e.TgZ(15,"div",1)(16,"div",2)(17,"div",3)(18,"mat-form-field",4)(19,"mat-label"),e._uU(20,"Nome sede"),e.qZA(),e.TgZ(21,"mat-select",10),e.NdJ("selectionChange",function(d){return a.onOfficeChange(d)}),e.YNc(22,_e,2,2,"mat-option",11),e.qZA()(),e.YNc(23,fe,4,1,"mat-form-field",12),e.TgZ(24,"mat-form-field",4)(25,"mat-label"),e._uU(26,"Tipologia sede"),e.qZA(),e._UZ(27,"input",5),e.qZA(),e.YNc(28,ge,1,0,"div",13),e.qZA()()(),e.TgZ(29,"h3",14),e._uU(30,"Dati anagrafici Referente Legale"),e.qZA(),e.TgZ(31,"div",1)(32,"div",2)(33,"div",3)(34,"mat-form-field",4)(35,"mat-label"),e._uU(36,"Referente"),e.qZA(),e.TgZ(37,"mat-select",10),e.NdJ("selectionChange",function(d){return a.onReferentChange(d)}),e.YNc(38,he,2,2,"mat-option",11),e.qZA()(),e.TgZ(39,"mat-form-field",4)(40,"mat-label"),e._uU(41,"Telefono"),e.qZA(),e._UZ(42,"input",15),e.qZA(),e.TgZ(43,"mat-form-field",4)(44,"mat-label"),e._uU(45,"Email"),e.qZA(),e._UZ(46,"input",16),e.qZA()()()(),e.TgZ(47,"h3",14),e._uU(48,"Dati anagrafici Richiedente"),e.qZA(),e.TgZ(49,"div",1)(50,"div",2)(51,"div",3)(52,"mat-form-field",4)(53,"mat-label"),e._uU(54,"Nome Richiedente"),e.qZA(),e._UZ(55,"input",5),e.qZA(),e.TgZ(56,"mat-form-field",4)(57,"mat-label"),e._uU(58,"Cognome Richiedente"),e.qZA(),e._UZ(59,"input",5),e.qZA(),e.TgZ(60,"mat-form-field",4)(61,"mat-label"),e._uU(62,"Email Richiedente"),e.qZA(),e._UZ(63,"input",16),e.qZA()()()(),e.TgZ(64,"div",1)(65,"div",2)(66,"div",3)(67,"mat-form-field",4)(68,"mat-label"),e._uU(69,"Telefono Richiedente"),e.qZA(),e._UZ(70,"input",15),e.qZA(),e.TgZ(71,"mat-form-field",4)(72,"mat-label"),e._uU(73,"Fax"),e.qZA(),e._UZ(74,"input",15),e.qZA(),e._UZ(75,"div",6),e.qZA()()(),e.TgZ(76,"h3",14),e._uU(77,"Modalit\xe1 di notifica"),e.qZA(),e.TgZ(78,"div",1)(79,"div",2)(80,"div",3)(81,"mat-form-field",4)(82,"mat-label"),e._uU(83,"Canale di notifica"),e.qZA(),e.TgZ(84,"mat-select",10),e.NdJ("selectionChange",function(d){return a.onChannelNotificationChange(d)}),e.YNc(85,Te,2,2,"mat-option",11),e.qZA()(),e._UZ(86,"div",6)(87,"div",6),e.qZA()()()(),e.TgZ(88,"h4",14),e._uU(89,"Cliccando su CONFERMA procederai con l'invio della segnalazione."),e.qZA(),e.TgZ(90,"div",17)(91,"button",18),e.NdJ("click",function(){return a.resetForm.emit()}),e._uU(92," ANNULLA "),e.qZA(),e.TgZ(93,"button",19),e.NdJ("click",function(){return a.confirmRequest()}),e._uU(94," CONFERMA "),e.qZA()()),2&i&&(e.Q6J("formGroup",a.newTicketComplaintForm),e.xp6(7),e.Q6J("formControl",a.invoiceNumberTicket),e.xp6(6),e.Q6J("formControl",a.notesTicket),e.xp6(8),e.Q6J("formControl",a.officeTicket),e.xp6(1),e.Q6J("ngForOf",a._officeList),e.xp6(1),e.Q6J("ngIf",!a.isHcUser),e.xp6(4),e.Q6J("formControl",a.officeTypeTicket),e.xp6(1),e.Q6J("ngIf",a.isHcUser),e.xp6(9),e.Q6J("formControl",a.referentTicket),e.xp6(1),e.Q6J("ngForOf",a.referentList),e.xp6(4),e.Q6J("formControl",a.referentPhoneTicket),e.xp6(4),e.Q6J("formControl",a.referentMailTicket),e.xp6(9),e.Q6J("formControl",a.applicantNameTicket),e.xp6(4),e.Q6J("formControl",a.applicantSurnameTicket),e.xp6(4),e.Q6J("formControl",a.applicantEmailTicket),e.xp6(7),e.Q6J("formControl",a.applicantPhoneTicket),e.xp6(4),e.Q6J("formControl",a.applicantFaxTicket),e.xp6(10),e.Q6J("formControl",a.notificationChannelTicket),e.xp6(1),e.Q6J("ngForOf",a.amministrativeCommercialRequests.channelNotification),e.xp6(8),e.Q6J("disabled",a.newTicketComplaintForm.invali
1d))},dependencies:[u.sg,u.O5,q.IC,T.KE,T.hX,R.Nt,E.gD,P.ey,s._Y,s.Fj,s.JJ,s.JL,s.oH,s.sg],styles:[".buttonWrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}h3[_ngcontent-%COMP%]{margin-top:3.2rem;color:#08080d;font-size:24px;line-height:1.92rem;text-align:left;font-weight:700;letter-spacing:0px}h3.small[_ngcontent-%COMP%]{font-size:1.6rem;margin-top:4.2rem}h4[_ngcontent-%COMP%]{margin-top:4rem;font-size:1.6rem;font-weight:300;line-height:1.92rem;text-align:left;font-weight:400;letter-spacing:0px}h4.small[_ngcontent-%COMP%]{font-size:1.4rem}h4[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:700;text-decoration:underline}.textArea[_ngcontent-%COMP%]{padding:8px 16px;background:#ffffff;border:.5px solid #b3b3b3;font-size:1.6rem;margin-top:1.6rem}.textArea[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{min-height:8rem}.complaintTicket[_ngcontent-%COMP%]{align-items:center;margin-top:1rem}.complaintTicket[_ngcontent-%COMP%] .containerDiv[_ngcontent-%COMP%]{width:30rem}.complaintTicket[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:30rem}@media screen and (max-width: 767px){.complaintTicket[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}}"]}),n})();var Y=l(1712);function be(n,r){1&n&&(e.TgZ(0,"mat-error",17),e._uU(1," Questo campo \xe8 obbligatorio "),e.qZA())}let Ce=(()=>{const r=class{constructor(t,i,a,c){this.spinnerService=t,this.supportService=i,this.dialogService=a,this.router=c,this.serviceTicket=null,this.resetForm=new e.vpe,this.returnToRichiesteSegnalazioni=new e.vpe,this.imeiBlockForm=new s.cw({imei:new s.NI(null,s.kI.required),notes:new s.NI(null,s.kI.required),files:new s.NI([],this.emptyArrayValidator())}),this._unsubscribeSignal$=new g.x}get imeiTicket(){return this.imeiBlockForm.get("imei")}get notesTicket(){return this.imeiBlockForm.get("notes")}get filesTicket(){return this.imeiBlockForm.get("files")}confirmRequest(){this.spinnerService.enable(),this.supportService.imeiBlock({description:"BLOCCO_IMEI",reason:"REINTEGRO_FURTO_SMARRIMENTO",note:this.notesTicket.value||"",problemService:this.serviceTicket||"",msisdn:this.imeiTicket.value||""},this.filesTicket.value).pipe((0,m.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:i=>{(0,k.G)(i)?this.errorHttpModal(i.message):(this.dialogService.open({title:"Segnalazione inviata",message:"La segnalazione è stata presa in carico. <br/><br/> Non sar\xe0 possibile effettuare altre operazioni su questa linea fino all'evasione della modifica che si sta inviando, pertanto ti chiediamo di attendere il completamento di questa pratica prima di inserirne una nuova. Verifica direttamente nella sezione \u201cRichieste e segnalazioni\u201d lo stato della tua pratica.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"confirm"}),this.dialogService.confirmed().subscribe(a=>{this.goToRequestsAndReports()})),this.spinnerService.disable()},error:i=>{this.errorHttpModal(),this.spinnerService.disable()}})}goToRequestsAndReports(){this.returnToRichiesteSegnalazioni.emit()}emptyArrayValidator(){return t=>t.value&&t.value.length>0?null:{emptyArray:!0}}errorHttpModal(t){this.spinnerService.disable(),this.dialogService.open({title:"Attenzione!",message:t||"Il servizio non \xe8 al momento disponibile, riprova pi\xf9 tardi.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})}ngOnDestroy(){this._unsubscribeSignal$.next(),this._unsubscribeSignal$.unsubscribe()}};let n=r;return r.\u0275fac=function(i){return new(i||r)(e.Y36(x.V),e.Y36(O.g),e.Y36(v.D),e.Y36(f.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-new-ticket-imei-block-form"]],inputs:{serviceTicket:"serviceTicket"},outputs:{resetForm:"resetForm",returnToRichiesteSegnalazioni:"returnToRichiesteSegnalazioni"},decls:29,vars:6,consts:[[3,"formGroup"],[1,"row"],[1,"box"],[1,"itemBox","imeiTicket"],["appearance","legacy"],["matInput","","id","phone","type","text","autocomplete","off",3,"formControl"],["style","font-size: 1.1rem;",4,"ngIf"],[1,"containerDiv"],[1,"textArea"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","5",3,"formControl"],["autosize","cdkTextareaAutosize"],["target","_blank","href","https://windtrebusiness.it/Assets/M08/376/C_4_M08_118_0_0_f
1ile_it.pdf"],[3,"filesForm"],[1,"small"],[1,"buttonWrapper"],[1,"cta","empty",3,"click"],[1,"cta",3,"disabled","click"],[2,"font-size","1.1rem"]],template:function(i,a){if(1&i&&(e.TgZ(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),e._uU(6,"Codice IMEI da bloccare"),e.qZA(),e._UZ(7,"input",5),e.YNc(8,be,2,0,"mat-error",6),e.qZA(),e._UZ(9,"div",7)(10,"div",7),e.qZA()()(),e.TgZ(11,"h3"),e._uU(12,"Note: *"),e.qZA(),e.TgZ(13,"div",8),e._UZ(14,"textarea",9,10),e.qZA(),e.TgZ(16,"h4"),e._uU(17," Al fine della corretta evasione della pratica \xe8 necessario inviare il "),e.TgZ(18,"a",11),e._uU(19,"modulo"),e.qZA(),e._uU(20," di richiesta del blocco IMEI, debitamente compilato, unitamente alla fotocopia di un documento di identit\xe0 valido, e copia della denuncia all'autorit\xe0 competente. "),e.qZA(),e._UZ(21,"app-file-uploader",12),e.qZA(),e.TgZ(22,"h4",13),e._uU(23,"Cliccando su CONFERMA procederai con l'invio della segnalazione. Ti ricordiamo, ove non gi\xe0 fatto, di chiamare il 1928 per richiedere la sospensione della SIM."),e.qZA(),e.TgZ(24,"div",14)(25,"button",15),e.NdJ("click",function(){return a.resetForm.emit()}),e._uU(26," ANNULLA "),e.qZA(),e.TgZ(27,"button",16),e.NdJ("click",function(){return a.confirmRequest()}),e._uU(28," CONFERMA "),e.qZA()()),2&i){let c;e.Q6J("formGroup",a.imeiBlockForm),e.xp6(7),e.Q6J("formControl",a.imeiTicket),e.xp6(1),e.Q6J("ngIf",(null==(c=a.imeiBlockForm.get("imei"))?null:c.invalid)&&(null==(c=a.imeiBlockForm.get("imei"))?null:c.touched)),e.xp6(6),e.Q6J("formControl",a.notesTicket),e.xp6(7),e.Q6J("filesForm",a.filesTicket),e.xp6(6),e.Q6J("disabled",a.imeiBlockForm.invalid)}},dependencies:[u.O5,q.IC,T.TO,T.KE,T.hX,R.Nt,Y.G,s._Y,s.Fj,s.JJ,s.JL,s.oH,s.sg],styles:[".buttonWrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}h3[_ngcontent-%COMP%]{margin-top:3.2rem;color:#08080d;font-size:24px;line-height:1.92rem;text-align:left;font-weight:700;letter-spacing:0px}h3.small[_ngcontent-%COMP%]{font-size:1.6rem;margin-top:4.2rem}h4[_ngcontent-%COMP%]{margin-top:4rem;font-size:1.6rem;font-weight:300;line-height:1.92rem;text-align:left;font-weight:400;letter-spacing:0px}h4.small[_ngcontent-%COMP%]{font-size:1.4rem}h4[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:700;text-decoration:underline;color:#0044e0}.textArea[_ngcontent-%COMP%]{padding:8px 16px;background:#ffffff;border:.5px solid #b3b3b3;font-size:1.6rem;margin-top:1.6rem}.textArea[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{min-height:8rem}.imeiTicket[_ngcontent-%COMP%]{align-items:center;margin-top:1rem}.imeiTicket[_ngcontent-%COMP%] .containerDiv[_ngcontent-%COMP%]{width:30rem}.imeiTicket[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:30rem}@media screen and (max-width: 767px){.imeiTicket[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}}"]}),n})();var D=l(6433),L=l(6089),B=l(4074),j=l(8628),K=l(762),V=l(6709),$=l(3418),W=l(1208),X=l(7392);function ke(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"app-dropdown-table",34),e.NdJ("requestMoreDataEmitter",function(){e.CHM(o);const i=e.oxw(3);return e.KtG(i.fetchLineListNewPage())})("selectItemsEmitter",function(i){e.CHM(o);const a=e.oxw(3);return e.KtG(a.selectMobileLineChange(i))}),e.qZA()}if(2&n){const o=e.oxw(3);e.Q6J("data",o.tableData)("lazy",o.canLoadMoreLines)("flexColumns",o.flexColumns)("isDisabled",!0)}}function xe(n,r){if(1&n&&(e.ynx(0),e.YNc(1,ke,1,4,"app-dropdown-table",33),e.BQk()),2&n){const o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",o.tableData&&o.mobileLineList.length>0)}}function we(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"app-dropdown-table",34),e.NdJ("requestMoreDataEmitter",function(){e.CHM(o);const i=e.oxw(3);return e.KtG(i.fetchLineListNewPage())})("selectItemsEmitter",function(i){e.CHM(o);const a=e.oxw(3);return e.KtG(a.selectFixedLineChange(i))}),e.qZA()}if(2&n){const o=e.oxw(3);e.Q6J("data",o.tableData)("lazy",o.canLoadMoreLines)("flexColumns",o.flexColumns)("isDisabled",!0)}}function Oe(n,r){if(1&n&&(e.ynx(0),e.YNc(1,we,1,4,"app-dropdown-table",33),e.BQk()),2&n){const o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",o.tableData&&o.fixedLineList.length>0)}}function Me(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"app-dropdown-table",34),e.NdJ("requestMoreDataEmitter",function(){e.CHM(o);const i=e.oxw(3);return e.KtG(i.fetchLineListNewPage())})("selectItemsEmitter",function(i){e.CHM(o);const a=e.oxw(3);return e.KtG(a.selectMobileAndFixedLineChange(i))}),e.qZA()}if(2&n){const o=e.oxw(3);e.Q6J("data",o.tableData)("lazy",o.canLoadMoreLines)("flexColumns",o.flexColumns)("isDisabled",!0)}}
1function Ae(n,r){if(1&n&&(e.ynx(0),e.YNc(1,Me,1,4,"app-dropdown-table",33),e.BQk()),2&n){const o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",o.tableData&&o.mobileAndFixedLines.length>0)}}function Ie(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"div",27)(1,"button",29),e.NdJ("click",function(){e.CHM(o);const i=e.oxw(2);return e.KtG(i.addNumberToList())}),e._uU(2," CONFERMA "),e.qZA()()}if(2&n){const o=e.oxw(2);e.xp6(1),e.Q6J("disabled",0===o.selectedMobileAndFixedLines.length)}}function Ze(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"div",27)(1,"button",29),e.NdJ("click",function(){e.CHM(o);const i=e.oxw(2);return e.KtG(i.addNumberToList())}),e._uU(2," CONFERMA "),e.qZA()()}if(2&n){const o=e.oxw(2);e.xp6(1),e.Q6J("disabled",0===o.selectedMobileLines.length)}}function Se(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"div",27)(1,"button",29),e.NdJ("click",function(){e.CHM(o);const i=e.oxw(2);return e.KtG(i.addNumberToList())}),e._uU(2," CONFERMA "),e.qZA()()}if(2&n){const o=e.oxw(2);e.xp6(1),e.Q6J("disabled",0===o.selectedFixedLines.length)}}function ye(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"div",37)(1,"h4",38),e._uU(2),e.qZA(),e.TgZ(3,"button",39),e.NdJ("click",function(){const a=e.CHM(o).$implicit,c=e.oxw(3);return e.KtG(c.removeConfirmMobileLine(a))}),e.TgZ(4,"mat-icon"),e._uU(5,"delete"),e.qZA()()()}if(2&n){const o=r.$implicit;e.xp6(2),e.Oqu(o.msisdn)}}function Le(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"h4",35),e._uU(2,"Linee"),e.qZA(),e.YNc(3,ye,6,1,"div",36),e.BQk()),2&n){const o=e.oxw(2);e.xp6(3),e.Q6J("ngForOf",o.confirmedMobileLines)}}function Fe(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"div",37)(1,"h4",38),e._uU(2),e.qZA(),e.TgZ(3,"button",39),e.NdJ("click",function(){const a=e.CHM(o).$implicit,c=e.oxw(3);return e.KtG(c.removeConfirmFixedLine(a))}),e.TgZ(4,"mat-icon"),e._uU(5,"delete"),e.qZA()()()}if(2&n){const o=r.$implicit;e.xp6(2),e.Oqu(o.msisdn)}}function Ne(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"h4",35),e._uU(2,"Linee"),e.qZA(),e.YNc(3,Fe,6,1,"div",36),e.BQk()),2&n){const o=e.oxw(2);e.xp6(3),e.Q6J("ngForOf",o.confirmedFixedLines)}}function Ee(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"div",37)(1,"h4",38),e._uU(2),e.qZA(),e.TgZ(3,"button",39),e.NdJ("click",function(){const a=e.CHM(o).$implicit,c=e.oxw(3);return e.KtG(c.removeConfirmMobileAndFixedLine(a))}),e.TgZ(4,"mat-icon"),e._uU(5,"delete"),e.qZA()()()}if(2&n){const o=r.$implicit;e.xp6(2),e.Oqu(o.msisdn)}}function Pe(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"h4",35),e._uU(2,"Linee"),e.qZA(),e.YNc(3,Ee,6,1,"div",36),e.BQk()),2&n){const o=e.oxw(2);e.xp6(3),e.Q6J("ngForOf",o.confirmedMobileAndFixedLines)}}function qe(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"h3"),e._uU(2,"Le tue linee telefoniche"),e.qZA(),e.TgZ(3,"h4",6),e._uU(4,"Seleziona le linee sulle quali vuoi esercitare il diritto di recesso/disdetta"),e.qZA(),e._UZ(5,"app-filter-search",30),e.YNc(6,xe,2,1,"ng-container",5),e.YNc(7,Oe,2,1,"ng-container",5),e.YNc(8,Ae,2,1,"ng-container",5),e.TgZ(9,"h4",31),e._uU(10,"NOTA BENE: Il recesso/disdetta delle utenze potrebbe comportare l'addebito di corrispettivi o il pagamento delle eventuali rate residue di un device associato all'offerta e/o alla perdita della scontistica applicata."),e.qZA(),e.YNc(11,Ie,3,1,"div",32),e.YNc(12,Ze,3,1,"div",32),e.YNc(13,Se,3,1,"div",32),e.YNc(14,Le,4,1,"ng-container",5),e.YNc(15,Ne,4,1,"ng-container",5),e.YNc(16,Pe,4,1,"ng-container",5),e.BQk()),2&n){const o=e.oxw();e.xp6(5),e.Q6J("filters",o.config.filtersConfig),e.xp6(1),e.Q6J("ngIf","mobile"===o.lineType),e.xp6(1),e.Q6J("ngIf","fixed"===o.lineType),e.xp6(1),e.Q6J("ngIf","mobile_and_fixed"===o.lineType),e.xp6(3),e.Q6J("ngIf","mobile_and_fixed"===o.lineType),e.xp6(1),e.Q6J("ngIf","mobile"===o.lineType),e.xp6(1),e.Q6J("ngIf","fixed"===o.lineType),e.xp6(1),e.Q6J("ngIf","mobile"===o.lineType&&o.confirmedMobileLines.length>0),e.xp6(1),e.Q6J("ngIf","fixed"===o.lineType&&o.confirmedFixedLines.length>0),e.xp6(1),e.Q6J("ngIf","mobile_and_fixed"===o.lineType&&o.confirmedMobileAndFixedLines.length>0)}}function Re(n,r){1&n&&(e.TgZ(0,"mat-error",40),e._uU(1," Questo campo \xe8 obbligatorio "),e.qZA())}function Ue(n,r){1&n&&(e.TgZ(0,"mat-error",40),e._uU(1," Questo campo \xe8 obbligatorio "),e.qZA())}function De(n,r){1&n&&(e.TgZ(0,"mat-error",40),e._uU(1," Questo campo \xe8 obbligatorio "),e.qZA())}function Je(n,r){1&n&&(e.TgZ(0,"mat-error",40),e._uU(1," Questo campo \xe8 obbligatorio "),e.qZA())}function ze(n,r){1&n&&(e.TgZ(0,"mat-error",40),e._uU(1," Questo campo \xe8 obbligatorio "),e.qZA())}function Qe(n,r){if(1&n&&(e.TgZ(0,"mat-option",41),e._uU(1),e.qZA()),2&n){const o=r.$implicit;e.Q6J("value",o.key),e.xp6(1),e.hij(" ",o.value," ")}}let He=(()=>{const r=class{constructor(t,i,a,c,d,_,N,A,hi,Ti){this.tableHelper=t,this.userUtilsService=i,this.sidebarService=a,this.lineListService=c,this.supportService=d,this.filterService=_,this.spinnerService=N,this.dialogService=A,this.router=hi,this.environment=Ti,this.loadOfficeList=new e.vpe,this._subjectTicket=null,this._companyDataList=[],this._domainTicket=null,this.resetForm=new e.vpe,this.returnToRichiesteSegnalazioni=new e.vpe,this.errorMessageType="empty",this.displayErrorMessage=!1,this.selectedMobileLines=[],this.confirmedMobileLines=[],this.mobileLineList=[],this.selectedFixedLines=[],this.confirmedFixedLines=[],this.fixedLineList=[],this.mobileAndFixedLines=[],this.selectedMobileAndFixedLines=[],this.confirmedMobileAndFixedLines=[],this.isFullWithdrawal=!1,this.currentLineOffset=0,this.linePageSize=10,this.flexColumns=[1],this.canLoadMoreLines=!0,this.withdrawalForm=new s.cw({notes:new s.NI(null,s.kI.required),referent:new s.NI({value:null,disabled:!0},s.kI.required),referentPhone:new s.NI({value:null,disabled:!0}),referentEmail:new s.NI({value:null,disabled:!0}),applicantName:new s.NI(null,s.kI.required),applicantSurname:new s.NI(null,s.kI.required),applicantEmail:new s.NI(null,s.kI.required),applicantPhone:new s.NI(null,s.kI.required),applicantFax:new s.NI(null,s.kI.required),notificationChannel:new s.NI(null,s.kI.required),contractAgreement:new s.NI(null,s.kI.required),economicAgreement:new s.NI(null,s.kI.required),personalDataAgreement:new s.NI(null,s.kI.required),files:new s.NI([],this.emptyArrayValidator())}),this.filter={typology:"ALL"},this._unsubscribeSignal$=new g.x,this.config=this.sidebarService.getEUHomeDefaultConfiguration(),this.pdfUrl=this.environment.pdfUrl}set subjectTicket(t){this._subjectTicket=t,this.isFullWithdrawal="RECESSO_DISDETTA_TOTALE"===this._subjectTicket}set companyDataList(t){this._companyDataList=t||[],this._companyDataList.length>0&&this.fillReferentFields()}set domainTicket(t){switch(this._domainTicket=t,this._domainTicket){case"Fisso":this.lineType="fixed",this.currentLineOffset=0,this.fetchFixedLineList(!0),this.config.filtersConfig=[],this.config.filtersConfig.push(new L.J5(L.Kp.INPUT,!1,"msisdn","Ricerca per numero di telefono","",[],"",!1));break;case"Mobile":this.lineType="mobile",this.currentLineOffset=0,this.fetchMobileLineList(!0),this.config.filtersConfig=[],this.config.filtersConfig.push(new L.J5(L.Kp.INPUT,!1,"msisdn","Ricerca per numero di telefono","",[],"",!1));break;case"Fisso_e_Mobile":this.lineType="mobile_and_fixed",this.currentLineOffset=0,this.fetchLinesList(!0);const i=[];i.push(new L.IO("Fisso","fixed")),i.push(new L.IO("Mobile","mobile")),this.config.filtersConfig=[],this.config.filtersConfig.push(new L.J5(L.Kp.INPUT,!1,"msisdn","Ricerca per numero di telefono","",[],"",!1)),this.config.filtersConfig.push(new L.J5(L.Kp.SELECT,!1,"lineType","Tipologia linea","",i))}}get notesTicket(){return this.withdrawalForm.get("notes")}get referentTicket(){return this.withdrawalForm.get("referent")}get referentPhoneTicket(){return this.withdrawalForm.get("referentPhone")}get referentEmailTicket(){return this.withdrawalForm.get("referentEmail")}get applicantNameTicket(){return this.withdrawalForm.get("applicantName")}get applicantSurnameTicket(){return this.withdrawalForm.get("applicantSurname")}get applicantEmailTicket(){return this.withdrawalForm.get("applicantEmail")}get applicantPhoneTicket(){return this.withdrawalForm.get("applicantPhone")}get applicantFaxTicket(){return this.withdrawalForm.get("applicantFax")}get notificationChannelTicket(){return this.withdrawalForm.get("notificationChannel")}get contractAgreementTicket(){return this.withdrawalForm.get("contractAgreement")}get economicAgreementTicket(){return this.withdrawalForm.get("economicAgreement")}get personalDataAgreementTicket(){return this.withdrawalForm.get("personalDataAgreement")}get filesTicket(){return this.withdrawalForm.get("files")}get amministrativeCommercialRequests(){return p.RICHIESTE_AMM_COMM}get idTripletta(){const t=this.amministrativeCommercialRequests.idTripletta[this._subjectTicket];return"string"==typeof t?t:t[this._domainTicket||"Default"]}get invalidConfirm(){return"fixed"===this.lineType&&0===this.confirmedFixedLines.length||"mobile"===this.lineType&&0===this.confirmedMobileLines.length||"mobile_and_fixed"===this.lineType&&0===this.confirmedMobileAndFixedLines.length||this.withdrawalForm.invali
1d}ngOnInit(){this.loadOfficeList.emit(),this.isFullWithdrawal||this.setupFilterCallback()}onChannelNotificationChange(t){"Email"===t.value?(this.referentEmailTicket.setValidators([s.kI.required,s.kI.email]),this.referentPhoneTicket.setValidators([])):(this.referentEmailTicket.setValidators([]),this.referentPhoneTicket.setValidators([s.kI.required]))}fetchMobileLineList(t){this.spinnerService.enable(),this.displayErrorMessage=!1,this.piva||(this.piva=this.userUtilsService.getPiva()||void 0),t&&(this.mobileLineList=[],this.selectedMobileLines=[],this.confirmedMobileLines=[],this.canLoadMoreLines=!0,this.confirmedMobileAndFixedLines=[],this.selectedMobileAndFixedLines=[]),this.lineListService.getMobileList(void 0,void 0,void 0,this.currentLineOffset,this.linePageSize,this.piva).pipe((0,m.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:i=>{(0,k.G)(i)?(this.mobileLineList=[],this.handleFetchError("error")):(i.mobileLinesList&&i.mobileLinesList.length&&(this.mobileLineList=[...this.mobileLineList,...i.mobileLinesList],this.mapMobileLineTableData(this.mobileLineList)),this.canLoadMoreLines=!i.lastPage),this.spinnerService.disable()},error:i=>{this.mobileLineList=[],400===i.status?this.handleFetchError("empty"):(this.errorHttpModal(),this.handleFetchError("error")),this.spinnerService.disable()}})}fetchFixedLineList(t){this.spinnerService.enable(),this.displayErrorMessage=!1,this.piva||(this.piva=this.userUtilsService.getPiva()||void 0),t&&(this.mobileLineList=[],this.selectedMobileLines=[],this.confirmedMobileLines=[],this.fixedLineList=[],this.selectedFixedLines=[],this.confirmedFixedLines=[],this.canLoadMoreLines=!0),this.lineListService.getFixedList(void 0,this.piva,this.filter).pipe((0,m.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:i=>{(0,k.G)(i)?(this.fixedLineList=[],this.handleFetchError("error")):i.fixedLinesList&&i.fixedLinesList.length&&(this.fixedLineList=[...this.fixedLineList,...i.fixedLinesList],this.mapFixedLineTableData(this.fixedLineList),this.canLoadMoreLines=!i.lastPage),this.spinnerService.disable()},error:i=>{this.fixedLineList=[],400===i.status?this.handleFetchError("empty"):(this.errorHttpModal(),this.handleFetchError("error")),this.spinnerService.disable()}})}fetchLinesList(t){this.spinnerService.enable(),t&&(this.fixedLineList=[],this.selectedFixedLines=[],this.confirmedFixedLines=[],this.canLoadMoreLines=!0,this.confirmedMobileAndFixedLines=[],this.selectedMobileAndFixedLines=[]),this.piva||(this.piva=this.userUtilsService.getPiva()||void 0),this.lineListService.getLineList(void 0,void 0,this.piva,!1).pipe((0,m.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:i=>{(0,k.G)(i)?(this.mobileAndFixedLines=[],this.handleFetchError("error")):i.linesList&&i.linesList.length&&(this.mobileAndFixedLines=[...this.mobileAndFixedLines,...i.linesList],this.mapTableData(this.mobileAndFixedLines)),this.spinnerService.disable()},error:i=>{this.fixedLineList=[],400===i.status?this.handleFetchError("empty"):(this.errorHttpModal(),this.handleFetchError("error")),this.spinnerService.disable()}})}fillReferentFields(){this.referentName=void 0,this.referentSurname=void 0,this._companyDataList.forEach(t=>{if("Rappresentante Legale"===t.category)switch(t.label){case"Nome":this.referentName=t.value;break;case"Cognome":this.referentSurname=t.value;break;case"Numero telefonico":this.referentPhoneTicket.setValue(t.value);break;case"Indirizzo email":this.referentEmailTicket.setValue(t.value)}}),this.referentName&&this.referentSurname&&this.referentTicket.setValue(`${this.referentName} ${this.referentSurname}`)}downloadHTMLRecap(){this.spinnerService.enable();let t={requestType:this._subjectTicket||"",piva:this.userUtilsService.getPiva()||"",username:this.userUtilsService.getUserName()||"",referentName:this.referentName||"",referentLastname:this.referentSurname||"",referentPhone:this.referentPhoneTicket.value||"",referentEmail:this.referentEmailTicket.value||"",applicantName:this.applicantNameTicket.value||"",applicantLastname:this.applicantSurnameTicket.value||"",applicantEmail:this.applicantEmailTicket.value||"",applicantPhone:this.applicantPhoneTicket.value||"",fax:this.applicantFaxTicket.value||""};t.lines="fixed"===this.lineType?this.confirmedFixedLines.map(i=>i.msisdn):"mobile"===this.lineType?this.confirmedMobileLines.map(i=>i.msisdn):this.confirmedMobileAndFixedLines.map(i=>i.msisdn),this.supportService.withdrawalHTMLDownload(t).pipe((0,m.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:i=>{if((0,k.G)(i))this.errorDownloadReport();else if(i&&i.type&&i.type.includes("text/html")){const c=document.createElement("a");c.target="_self";const d=window.URL.createObjectURL(i);c.href=d,c.download="riepilogo.html",document.body.appendChild(c),c.click()}else this.errorDownloadReport();this.spinnerService.disable()},error:i=>{this.errorDownloadReport(),this.spinnerService.disable()}})}convertAndDownloadHTML(t){const a=window.atob(t),c=new ArrayBuffer(a.length),d=new Uint8Array(c);for(let A=0;A<a.length;
1A++)d[A]=a.charCodeAt(A);const _=new Blob([d],{type:"text/html"});new File([_],"name.png",{type:"text/html"})}errorDownloadReport(){this.spinnerService.disable(),this.dialogService.open({title:"Errore nel download",message:"Si \xe8 verificato un errore nel processo di download del riepilogo della richiesta.\n Si prega di riprovare pi\xf9 tardi.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})}selectMobileLineChange(t){this.selectedMobileLines=t.map(i=>i.fetchedElement)}selectFixedLineChange(t){this.selectedFixedLines=t.map(i=>i.fetchedElement)}selectMobileAndFixedLineChange(t){this.selectedMobileAndFixedLines=t.map(i=>i.fetchedElement)}setupFilterCallback(){this.filterService.filterEvent$.subscribe(t=>{switch(this.lineType){case"mobile":t&&this.mapMobileLineTableData(this.mobileLineList.slice().filter(i=>i.msisdn===t.msisdn)),!t&&this.mobileLineList&&this.mapMobileLineTableData(this.mobileLineList);break;case"fixed":t&&this.mapFixedLineTableData(this.fixedLineList.slice().filter(i=>i.msisdn===t.msisdn)),!t&&this.fixedLineList&&this.mapFixedLineTableData(this.fixedLineList);break;case"mobile_and_fixed":this.mobileAndFixedLines&&this.mobileAndFixedLines.length>0&&(t&&this.mapTableData(this.mobileAndFixedLines.slice().filter(i=>i.msisdn===t.msisdn||i.lineType===t.lineType)),!t&&this.mobileAndFixedLines&&this.mapTableData(this.mobileAndFixedLines))}})}mapTableData(t){t&&(t=t.map(i=>({msisdn:i.msisdn,tariffPlanDescription:i.tariffPlanDescription?i.tariffPlanDescription:i.tariffPlan})),this.tableData=this.tableHelper.createDropdownTableData(D.y.MOBILEANDFIXEDWITHDRAWAL,t),this.tableData.dataTableRow.forEach(i=>{i.rows.map(a=>{"DISPOSITIVI ASSOCIATI"===a.title&&(a.value="NO")})}))}mapMobileLineTableData(t){this.tableData=this.tableHelper.createDropdownTableData(D.y.MOBILEWITHDRAWAL,t),this.tableData.dataTableRow.forEach(i=>{i.rows.map(a=>{"DISPOSITIVI ASSOCIATI"===a.title&&(a.value="NO")})})}mapFixedLineTableData(t){this.tableData=this.tableHelper.createDropdownTableData(D.y.FIXEDWITHDRAWAL,t),this.tableData.dataTableRow.forEach(i=>{i.rows.map(a=>{"DISPOSITIVI ASSOCIATI"===a.title&&(a.value="NO")})})}fetchLineListNewPage(){switch(this.currentLineOffset+=this.linePageSize,this.lineType){case"mobile":this.fetchMobileLineList();break;case"fixed":this.fetchFixedLineList();break;case"mobile_and_fixed":this.fetchLinesList()}}addNumberToList(){switch(this.lineType){case"mobile":const i=this.selectedMobileLines.filter(d=>-1===this.confirmedMobileLines.findIndex(_=>_.msisdn===d.msisdn));this.confirmedMobileLines=[...this.confirmedMobileLines,...i],this.selectedMobileLines.map(d=>d.selected=!1);break;case"fixed":const a=this.selectedFixedLines.filter(d=>-1===this.confirmedFixedLines.findIndex(_=>_.msisdn===d.msisdn));this.confirmedFixedLines=[...this.confirmedFixedLines,...a];break;case"mobile_and_fixed":const c=this.selectedMobileAndFixedLines.filter(d=>-1===this.confirmedMobileAndFixedLines.findIndex(_=>_.msisdn===d.msisdn));this.confirmedMobileAndFixedLines=[...this.confirmedMobileAndFixedLines,...c],this.confirmedMobileAndFixedLines.map(d=>d.selected=!1)}const t=document.getElementsByClassName("empty")[0];t&&(t.click(),this.selectedFixedLines=[],this.selectedMobileLines=[],this.selectedMobileAndFixedLines=[]),console.log(this.confirmedFixedLines,"confirmed fixed lines")}removeConfirmMobileLine(t){const i=this.confirmedMobileLines.findIndex(a=>a.msisdn===t.msisdn);-1!==i&&this.confirmedMobileLines.splice(i,1)}removeConfirmFixedLine(t){const i=this.confirmedFixedLines.findIndex(a=>a.msisdn===t.msisdn);-1!==i&&this.confirmedFixedLines.splice(i,1)}removeConfirmMobileAndFixedLine(t){const i=this.confirmedMobileAndFixedLines.findIndex(a=>a.msisdn===t.msisdn);-1!==i&&this.confirmedMobileAndFixedLines.splice(i,1)}confirmRequest(){this.spinnerService.enable();let t={referentLastname:this.referentSurname||"",applicantLastname:this.applicantSurnameTicket.value||"",description:this._subjectTicket||"",problemDomain:this.domainTicket||"",referentEmail:this.referentEmailTicket.value||"",applicantEmail:this.applicantEmailTicket.value||"",fax:this.applicantFaxTicket.value||"",tripletId:this.idTripletta||"",referentName:this.referentName||"",applicantName:this.applicantNameTicket.value||"",notes:this.notesTicket.value||"",referentPhone:this.referentPhoneTicket.value||"",applicantPhone:this.applicantPhoneTicket.value||"",requestType:this._subjectTicket||"",username:this.userUtilsService.getUserName()||this.userUtilsService.getMsisdn()||"",notificationChannel:this.notificationChannelTicket.value||"",msisdn:this.applicantPhoneTicket.value||""};t.lines="fixed"===this.lineType?this.confirmedFixedLines.map(i=>i.msisdn):"mobile"===this.lineType?this.confirmedMobileLines.map(i=>i.msisdn):this.confirmedMobileAndFixedLines.map(i=>i.msisdn),this.supportService.withdrawalUploadFiles(t,this.filesTicket.value).pipe((0,m.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:i=>{(0,k.G)(i)?this.errorHttpModal(i.message):(this.dialogService.open({title:"Segnalazione inviata",message:"La segnalazione è stata presa in carico. <br/><br/> Non sar\xe0 possibile effettuare altre operazioni su questa linea fino all'evasione della modifica che si sta inviando, pertanto t
1i chiediamo di attendere il completamento di questa pratica prima di inserirne una nuova. Verifica direttamente nella sezione \u201cRichieste e segnalazioni\u201d lo stato della tua pratica.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"confirm"}),this.dialogService.confirmed().subscribe(a=>{this.goToRequestsAndReports()})),this.spinnerService.disable()},error:i=>{this.errorHttpModal(),this.spinnerService.disable()}})}goToRequestsAndReports(){this.returnToRichiesteSegnalazioni.emit()}handleFetchError(t){this.displayErrorMessage=!0,this.errorMessageType=t,this.canLoadMoreLines=!1,this.spinnerService.disable()}errorHttpModal(t){this.spinnerService.disable(),this.dialogService.open({title:"Attenzione!",message:t||"Il servizio non \xe8 al momento disponibile, riprova pi\xf9 tardi.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})}emptyArrayValidator(){return t=>t.value&&t.value.length>0?null:{emptyArray:!0}}ngOnDestroy(){this._unsubscribeSignal$.next(),this._unsubscribeSignal$.unsubscribe()}};let n=r;return r.\u0275fac=function(i){return new(i||r)(e.Y36(B.S),e.Y36(M.r),e.Y36(j.P),e.Y36(I.o),e.Y36(O.g),e.Y36(K.i),e.Y36(x.V),e.Y36(v.D),e.Y36(f.F0),e.Y36(h.p))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-new-ticket-withdrawal-form"]],inputs:{subjectTicket:"subjectTicket",companyDataList:"companyDataList",domainTicket:"domainTicket"},outputs:{loadOfficeList:"loadOfficeList",resetForm:"resetForm",returnToRichiesteSegnalazioni:"returnToRichiesteSegnalazioni"},decls:109,vars:26,consts:[[3,"formGroup"],[1,"small","extraMarginTop"],[1,"textArea"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","5",3,"formControl"],["autosize","cdkTextareaAutosize"],[4,"ngIf"],[1,"newSubTitle"],[1,"row"],[1,"box"],[1,"itemBox","withdrawalTicket"],["appearance","legacy"],["matInput","","type","text","autocomplete","off",3,"formControl"],["matInput","","type","string","autocomplete","off",3,"formControl"],["matInput","","type","email","autocomplete","off",3,"formControl"],[1,"topMargin"],["style","font-size: 1.1rem;",4,"ngIf"],[1,"containerDiv"],[3,"formControl","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"extraMarginTop"],[1,"bold"],["target","_blank",1,"new-ticket_download",3,"click"],[3,"filesForm"],[1,"row","checkboxArea"],[3,"formControl"],["target","_blank",3,"href"],[1,"small"],[1,"buttonWrapper"],[1,"cta","empty",3,"click"],[1,"cta",3,"disabled","click"],["noTitle","",1,"new-ticket-withdrawal-form-filters",3,"filters"],[1,"newSubTitle","warning"],["class","buttonWrapper",4,"ngIf"],[3,"data","lazy","flexColumns","isDisabled","requestMoreDataEmitter","selectItemsEmitter",4,"ngIf"],[3,"data","lazy","flexColumns","isDisabled","requestMoreDataEmitter","selectItemsEmitter"],[1,"newSubTitle","normal"],["class","row remove-line",4,"ngFor","ngForOf"],[1,"row","remove-line"],[1,"bold","newSubTitle"],["mat-icon-button","","aria-label","remove line",3,"click"],[2,"font-size","1.1rem"],[3,"value"]],template:function(i,a){if(1&i&&(e.TgZ(0,"form",0)(1,"h3",1),e._uU(2,"Note: *"),e.qZA(),e.TgZ(3,"div",2),e._UZ(4,"textarea",3,4),e.qZA(),e.YNc(6,qe,17,10,"ng-container",5),e.TgZ(7,"h3"),e._uU(8,"ANAGRAFICA"),e.qZA(),e.TgZ(9,"h4",6),e._uU(10,"Dati anagrafici Referente Legale"),e.qZA(),e.TgZ(11,"div",7)(12,"div",8)(13,"div",9)(14,"mat-form-field",10)(15,"mat-label"),e._uU(16,"Referente"),e.qZA(),e._UZ(17,"input",11),e.qZA(),e.TgZ(18,"mat-form-field",10)(19,"mat-label"),e._uU(20,"Telefono"),e.qZA(),e._UZ(21,"input",12),e.qZA(),e.TgZ(22,"mat-form-field",10)(23,"mat-label"),e._uU(24,"Email"),e.qZA(),e._UZ(25,"input",13),e.qZA()()()(),e.TgZ(26,"h4",14),e._uU(27,"Inserisci i tuoi data anagrafici in qualit\xe0 di Richiedente per un eventuale ricontatto."),e.qZA(),e.TgZ(28,"div",7)(29,"div",8)(30,"div",9)(31,"mat-form-field",10)(32,"mat-label"),e._uU(33,"Il tuo Nome"),e.qZA(),e._UZ(34,"input",11),e.YNc(35,Re,2,0,"mat-error",15),e.qZA(),e.TgZ(36,"mat-form-field",10)(37,"mat-label"),e._uU(38,"Il tuo Cognome"),e.qZA(),e._UZ(39,"input",11),e.YNc(40,Ue,2,0,"mat-error",15),e.qZA(),e.TgZ(41,"mat-form-field",10)(42,"mat-label"),e._uU(43,"La tua Email"),e.qZA(),e._UZ(44,"input",13),e.YNc(45,De,2,0,"mat-error",15),e.qZA()()()(),e.TgZ(46,"div",7)(47,"div",8)(48,"div",9)(49,"mat-form-field",10)(50,"mat-label"),e._uU(51,"Il tuo numero di telefono"),e.qZA(),e._UZ(52,"input",12),e.YNc(53,Je,2,0,"mat-error",15),e.qZA(),e.TgZ(54,"mat-form-field",10)(55,"mat-label"),e._uU(56,"Il tuo numero di Fax"),e.qZA(),e._UZ(57,"input",12),e.YNc(58,ze,2,0,"mat-error",15),e.qZA(),e._UZ(59,"div",16),e.qZA()()(),e.TgZ(60,"h3",1),e._uU(61,"Modalit\xe1 di notifica"),e.qZA(),e.TgZ(62,"div",7)(63,"div",8)(64,"div",9)(65,"mat-form-field",10)(66,"mat-label"),e._uU(67,"Canale di notifica"),e.qZA(),e.TgZ(68,"mat-select",17),e.NdJ("selectionChange",function(d){return a.onChannelNotificationChange(d)}),e.YNc(69,Qe,2,2,"mat-option",18),e.qZA()(),e._UZ(70,"div",16)(71,"div",16),e.qZA()()(),e.TgZ(72,"h3",19),e._uU(73,"Documenti da allegare"),e.qZA(),e.TgZ(74,"h4",20),e._uU(75,"\xc8 necessario scaricare ed inviare correttamente compilati e firmati i seguenti documenti:"),e.qZA(),e.TgZ(76,"h4",20),e._uU(77,"- Il tuo documento Carta di identit\xe0."),e.qZA(),e.TgZ(78,"h4",20),e._uU(79," - "),e.TgZ(80,"a",21),e.NdJ("click",function(){return a.downloadHTMLRecap()}),e._uU(81," Riepilogo della richiesta da te firmato "),e.qZA()(),e._UZ(82,"a
1pp-file-uploader",22),e.TgZ(83,"div",23)(84,"div",8),e._UZ(85,"mat-checkbox",24),e.TgZ(86,"h4")(87,"a",25),e._uU(88," PRENDO VISIONE "),e.qZA(),e._uU(89," e accetto le Condizioni di Contratto "),e.qZA()(),e.TgZ(90,"div",8),e._UZ(91,"mat-checkbox",24),e.TgZ(92,"h4")(93,"a",25),e._uU(94," PRENDO VISIONE "),e.qZA(),e._uU(95," e accetto le Condizioni Economiche di Contratto "),e.qZA()(),e.TgZ(96,"div",8),e._UZ(97,"mat-checkbox",24),e.TgZ(98,"h4")(99,"a",25),e._uU(100," PRENDO VISIONE "),e.qZA(),e._uU(101," del Trattamento dei Dati Personali "),e.qZA()()(),e.TgZ(102,"h4",26),e._uU(103,"Cliccando su CONFERMA procederai con l\u2019invio della richiesta."),e.qZA()(),e.TgZ(104,"div",27)(105,"button",28),e.NdJ("click",function(){return a.resetForm.emit()}),e._uU(106," ANNULLA "),e.qZA(),e.TgZ(107,"button",29),e.NdJ("click",function(){return a.confirmRequest()}),e._uU(108," CONFERMA "),e.qZA()()),2&i){let c,d,_,N,A;e.Q6J("formGroup",a.withdrawalForm),e.xp6(4),e.Q6J("formControl",a.notesTicket),e.xp6(2),e.Q6J("ngIf",!a.isFullWithdrawal),e.xp6(11),e.Q6J("formControl",a.referentTicket),e.xp6(4),e.Q6J("formControl",a.referentPhoneTicket),e.xp6(4),e.Q6J("formControl",a.referentEmailTicket),e.xp6(9),e.Q6J("formControl",a.applicantNameTicket),e.xp6(1),e.Q6J("ngIf",(null==(c=a.withdrawalForm.get("applicantName"))?null:c.invalid)&&(null==(c=a.withdrawalForm.get("applicantName"))?null:c.touched)),e.xp6(4),e.Q6J("formControl",a.applicantSurnameTicket),e.xp6(1),e.Q6J("ngIf",(null==(d=a.withdrawalForm.get("applicantSurname"))?null:d.invalid)&&(null==(d=a.withdrawalForm.get("applicantSurname"))?null:d.touched)),e.xp6(4),e.Q6J("formControl",a.applicantEmailTicket),e.xp6(1),e.Q6J("ngIf",(null==(_=a.withdrawalForm.get("applicantEmail"))?null:_.invalid)&&(null==(_=a.withdrawalForm.get("applicantEmail"))?null:_.touched)),e.xp6(7),e.Q6J("formControl",a.applicantPhoneTicket),e.xp6(1),e.Q6J("ngIf",(null==(N=a.withdrawalForm.get("applicantPhone"))?null:N.invalid)&&(null==(N=a.withdrawalForm.get("applicantPhone"))?null:N.touched)),e.xp6(4),e.Q6J("formControl",a.applicantFaxTicket),e.xp6(1),e.Q6J("ngIf",(null==(A=a.withdrawalForm.get("applicantFax"))?null:A.invalid)&&(null==(A=a.withdrawalForm.get("applicantFax"))?null:A.touched)),e.xp6(10),e.Q6J("formControl",a.notificationChannelTicket),e.xp6(1),e.Q6J("ngForOf",a.amministrativeCommercialRequests.channelNotification),e.xp6(13),e.Q6J("filesForm",a.filesTicket),e.xp6(3),e.Q6J("formControl",a.contractAgreementTicket),e.xp6(2),e.Q6J("href",a.pdfUrl+"cgc_unica.pdf",e.LSH),e.xp6(4),e.Q6J("formControl",a.economicAgreementTicket),e.xp6(2),e.Q6J("href",a.pdfUrl+"modulo_opzioni.pdf",e.LSH),e.xp6(4),e.Q6J("formControl",a.personalDataAgreementTicket),e.xp6(2),e.Q6J("href",a.pdfUrl+"informativa_privacy.pdf",e.LSH),e.xp6(8),e.Q6J("disabled",a.invalidConfirm)}},dependencies:[u.sg,u.O5,q.IC,T.TO,T.KE,T.hX,R.Nt,V.oG,E.gD,P.ey,$._,W.a,Y.G,s._Y,s.Fj,s.JJ,s.JL,s.oH,s.sg,X.Hw],styles:[".buttonWrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}h3[_ngcontent-%COMP%]{margin-top:3.2rem;color:#08080d;font-size:24px;line-height:1.92rem;text-align:left;font-weight:700;letter-spacing:0px}h3.small[_ngcontent-%COMP%]{font-size:1.6rem}h3.extraMarginTop[_ngcontent-%COMP%]{margin-top:4.2rem}h4[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:300;line-height:1.92rem;text-align:left;font-weight:400;letter-spacing:0px;margin-top:2rem}h4.small[_ngcontent-%COMP%]{font-size:1.4rem;margin-top:4rem}h4.normal[_ngcontent-%COMP%]{font-weight:400}h4.bold[_ngcontent-%COMP%]{font-weight:700}h4.newSubTitle[_ngcontent-%COMP%]{margin-top:2rem}h4.topMargin[_ngcontent-%COMP%]{margin-top:4rem}h4.warning[_ngcontent-%COMP%]{color:#ed1c24}h4[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fc4a14;font-weight:700;text-decoration:underline}.textArea[_ngcontent-%COMP%]{padding:8px 16px;background:#ffffff;border:.5px solid #b3b3b3;font-size:1.6rem;margin-top:1.6rem}.textArea[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{min-height:8rem}.withdrawalTicket[_ngcontent-%COMP%]{align-items:center;margin-top:1rem}.withdrawalTicket[_ngcontent-%COMP%] .containerDiv[_ngcontent-%COMP%]{width:30rem}.withdrawalTicket[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:30rem}@media screen and (max-width: 767px){.withdrawalTicket[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}}.checkboxArea[_ngcontent-%COMP%]{flex-direction:column;margin-top:4rem}.checkboxArea[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:2rem}.checkboxArea[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] h4[_ng
1content-%COMP%]{margin-top:0}.checkboxArea[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#0044e0;text-decoration:none}.remove-line[_ngcontent-%COMP%]{margin-left:5rem}.remove-line[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{min-width:10rem}.remove-line[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer;background:transparent;width:30px;height:30px;margin:0;border:none;text-transform:uppercase;transform:translate(6px,16px)}.remove-line[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{text-decoration:none}.new-ticket_download[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();var G=l(1745),Ye=l(9986),Be=l(9412);function Ve(n,r){if(1&n&&e._UZ(0,"app-dropdown-table",30),2&n){const o=e.oxw(),t=e.MAs(12);e.Q6J("data",o.tableData)("extraElement",t)("lazy",!1)("isDisabled",!0)}}function Ge(n,r){1&n&&e._UZ(0,"app-invoice-extra-element",31),2&n&&e.Q6J("invoice",r.data)}function je(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){const o=r.$implicit;e.Q6J("value",o.key),e.xp6(1),e.hij(" ",o.value," ")}}function Ke(n,r){if(1&n&&e._UZ(0,"app-error-message",33),2&n){const o=e.oxw();e.Q6J("type",o.errorMessageType)}}let $e=(()=>{const r=class{constructor(t,i,a,c,d,_,N,A){this.invoicesService=t,this.spinnerService=i,this.tableHelper=a,this.sidebarService=c,this.supportService=d,this.dialogService=_,this.filterService=N,this.router=A,this.loadOfficeList=new e.vpe,this._companyDataList=[],this.resetForm=new e.vpe,this.errorMessageType="empty",this.displayErrorMessage=!1,this.budgetLawForm=new s.cw({notes:new s.NI(null,s.kI.required),referent:new s.NI({value:null,disabled:!0},s.kI.required),referentPhone:new s.NI({value:null,disabled:!0}),referentMail:new s.NI({value:null,disabled:!0}),applicantName:new s.NI(null),applicantSurname:new s.NI(null),applicantEmail:new s.NI(null),applicantPhone:new s.NI(null),applicantFax:new s.NI(null),notificationChannel:new s.NI(null,s.kI.required),files:new s.NI([],this.emptyArrayValidator())}),this._unsubscribeSignal$=new g.x,this._destroy$=new g.x,this.returnToRichiesteSegnalazioni=new e.vpe,this.config=this.sidebarService.getFilterDefaultConfiguration(),this.config=this.filterService.getInvoiceFilters(this.config)}set companyDataList(t){this._companyDataList=t||[],this._companyDataList.length>0&&this.fillReferentFields()}get notesTicket(){return this.budgetLawForm.get("notes")}get referentTicket(){return this.budgetLawForm.get("referent")}get referentPhoneTicket(){return this.budgetLawForm.get("referentPhone")}get referentEmailTicket(){return this.budgetLawForm.get("referentMail")}get applicantNameTicket(){return this.budgetLawForm.get("applicantName")}get applicantSurnameTicket(){return this.budgetLawForm.get("applicantSurname")}get applicantEmailTicket(){return this.budgetLawForm.get("applicantEmail")}get applicantPhoneTicket(){return this.budgetLawForm.get("applicantPhone")}get applicantFaxTicket(){return this.budgetLawForm.get("applicantFax")}get notificationChannelTicket(){return this.budgetLawForm.get("notificationChannel")}get filesTicket(){return this.budgetLawForm.get("files")}get amministrativeCommercialRequests(){return p.RICHIESTE_AMM_COMM}get invalidConfirm(){return this.budgetLawForm.invalid}ngOnInit(){this.loadOfficeList.emit(),this.filterService.filterEvent$.pipe((0,m.R)(this._destroy$.asObservable())).subscribe(t=>{t?this.setupFilterCallback(t):(this.invoicesList&&this.invoicesList.length>0&&(this.spinnerService.enable(),this.mapTableData(this.invoicesList),this.spinnerService.disable()),this.getInvoices())})}onChannelNotificationChange(t){"Email"===t.value?(this.referentEmailTicket.setValidators([s.kI.required,s.kI.email]),this.referentPhoneTicket.setValidators([])):(this.referentEmailTicket.setValidators([]),this.referentPhoneTicket.setValidators([s.kI.required]))}fillReferentFields(){this.referentName=void 0,this.referentSurname=void 0,this._companyDataList.forEach(t=>{if("Rappresentante Legale"===t.category)switch(t.label){case"Nome":this.referentName=t.value;break;case"Cognome":this.referentSurname=t.value;break;case"Numero telefonico":this.referentPhoneTicket.setValue(t.value);break;case"Indirizzo email":this.referentEmailTicket.setValue(t.value)}}),this.referentName&&this.referentSurname&&this.referentTicket.setValue(`${this.referentName} ${this.referentSurname}`)}getInvoices(){this.spinnerService.enable();const t=new G.g;this.invoicesService.getInvoices(t).subscribe({next:i=>{i.invoices&&0!==i.invoices.length?(this.invoicesList=i.invoices,this.invoicesList.map(a=>a.amountView=a.amountInvoice+"\u20ac"),this.mapTableData(this.invoicesList),this.spinnerService.disable()):this.handleFetchError("empty")},error:()=>this.handleFetchError("error")})}setupFilterCallback(t){this.spinnerService.enable();let i=Object.assign({},t),a=new G.g("","");t.startInvoice&&""!==t.startInvoice&&t.endInvoice&&""!==t.endInvoice&&(a=new G.g(t.startInvoice.toLocaleDateString("it-IT"),t.endInvoice.toLocaleDateString("it-IT"))),this.invoicesService.getInvoices(a).subscribe({next:c=>{this.invoicesList=c.invoices,this.filterInvoicesForAllFilters(i,this.invoicesList)},error:()=>this.handleFetchError("error")})}filterInvoicesForAllFilters(t,i){delete t.startInvoice,delete t.endInvoice,"account"===t.researchType&&t.researchTypeValue&&t.researchTypeValue.length>0&&(delete t.researchType,t=this.filterService.remapFiltersKeys({researchTypeValue:"account"},t)),"numberInvoice"===t.researchType&&t.researchTypeValue&&t.researchTypeValue.length>0&&(delete t.researchType,t=this.filterService.remapFiltersKeys({researchTypeValue:"numberInvoice"},t)),t.researchTypeValue&&t.researchTypeValue.length<=0&&(delete t.researchType,t=this.filterService.remapFiltersKeys({researchTypeValue:""},t));const a=this.filterService.filterInvoiceList(i,t);a.length>0?(a.map(c=>c.amountView=c.amountInvoice+"\u20ac"),this.mapTableData(a)):this.handleFetchError("empty_invoices"),this.spinnerService.disable()}handleFetchError(t){this.displayErrorMessage=!0,this.errorMessageType=t,this.spinnerService.disable()}mapTableData(t){this.tableData=this.tableHelper.createDropdownTableData(D.y.INVOICES,t),this.tableData.dataTableRow.forEach(i=>
1{i.rows.map(a=>{"Stato"===a.title&&(a.advancedColumn=!0)})})}confirmRequest(){this.spinnerService.enable(),this.supportService.refundRequest({reason:"RICHIESTE_AMM_COMM",operationType:"LEGGE_BILANCIO_2020",specific:"MODULO_ACCREDITO_PENALI",tripletId:this.amministrativeCommercialRequests.idTripletta.LEGGE_BILANCIO_2020||"",notificationChannel:this.notificationChannelTicket.value||"",applicantName:this.applicantNameTicket.value||"",applicantLastname:this.applicantSurnameTicket.value||"",applicantEmail:this.applicantEmailTicket.value||"",applicantPhone:this.applicantPhoneTicket.value||"",fax:this.applicantFaxTicket.value||"",referentName:this.referentName||"",referentLastname:this.referentSurname||"",referentPhone:this.referentPhoneTicket.value||"",referentEmail:this.referentEmailTicket.value||"",note:this.notesTicket.value||"",siteId:19},this.filesTicket.value).pipe((0,m.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:i=>{(0,k.G)(i)?this.errorHttpModal(i.message):(this.dialogService.open({title:"Segnalazione inviata",message:"La segnalazione è stata presa in carico. <br/><br/> Non sar\xe0 possibile effettuare altre operazioni su questa linea fino all'evasione della modifica che si sta inviando, pertanto ti chiediamo di attendere il completamento di questa pratica prima di inserirne una nuova. Verifica direttamente nella sezione \u201cRichieste e segnalazioni\u201d lo stato della tua pratica.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"confirm"}),this.dialogService.confirmed().subscribe(a=>{this.goToRequestsAndReports()})),this.spinnerService.disable()},error:i=>{this.errorHttpModal(),this.spinnerService.disable()}})}goToRequestsAndReports(){this.returnToRichiesteSegnalazioni.emit()}emptyArrayValidator(){return t=>t.value&&t.value.length>0?null:{emptyArray:!0}}errorHttpModal(t){this.spinnerService.disable(),this.dialogService.open({title:"Attenzione!",message:t||"Il servizio non \xe8 al momento disponibile, riprova pi\xf9 tardi.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})}ngOnDestroy(){this._unsubscribeSignal$.next(),this._unsubscribeSignal$.unsubscribe(),this.filterService.resetFilterEvent(),this._destroy$.next(),this._destroy$.complete()}};let n=r;return r.\u0275fac=function(i){return new(i||r)(e.Y36(Ye.x),e.Y36(x.V),e.Y36(B.S),e.Y36(j.P),e.Y36(O.g),e.Y36(v.D),e.Y36(K.i),e.Y36(f.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-new-ticket-budget-law-form"]],inputs:{companyDataList:"companyDataList"},outputs:{loadOfficeList:"loadOfficeList",resetForm:"resetForm",returnToRichiesteSegnalazioni:"returnToRichiesteSegnalazioni"},decls:108,vars:16,consts:[[3,"formGroup"],[1,"big"],[1,"newTicket-filter-invoice",3,"filters"],[3,"data","extraElement","lazy","isDisabled",4,"ngIf"],["extraElem",""],[1,"small","extraMarginTop"],[1,"textArea"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","5",3,"formControl"],["autosize","cdkTextareaAutosize"],[1,"row"],[1,"box"],[1,"itemBox","budgetLawTicket"],["appearance","legacy"],["matInput","","type","text","autocomplete","off",3,"formControl"],["matInput","","type","string","autocomplete","off",3,"formControl"],["matInput","","type","email","autocomplete","off",3,"formControl"],[1,"topMargin"],[1,"containerDiv"],[3,"formControl","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"extraMarginTop"],[1,"bold"],["type","-"],[3,"filesForm"],["fileUploader",""],[1,"big","topMargin"],[1,"buttonWrapper"],[1,"cta","empty",3,"click"],[1,"cta",3,"disabled","click"],["errorTemplate",""],[3,"data","extraElement","lazy","isDisabled"],[3,"invoice"],[3,"value"],["marginTop","8rem",3,"type"]],template:function(i,a){1&i&&(e.ynx(0),e.TgZ(1,"form",0)(2,"h4",1),e._uU(3,' Compilare il modulo "Modulo Legge Bilancio 2020" in ogni sua parte, allegando i documenti a fondamento della contestazione. Inoltrare la documentazione richiesta come sotto indicato. '),e.qZA(),e.TgZ(4,"h3"),e._uU(5,"LE TUE FATTURE"),e.qZA(),e.TgZ(6,"h4"),e._uU(7,"Scarica le fatture sulle quali vuoi richiedere il rimborso da allegare al file .zip"),e.qZA(),e.ynx(8),e._UZ(9,"app-filter-search",2),e.YNc(10,Ve,1,4,"a
1pp-dropdown-table",3),e.YNc(11,Ge,1,1,"ng-template",null,4,e.W1O),e.BQk(),e.TgZ(13,"h3",5),e._uU(14,"Note: *"),e.qZA(),e.TgZ(15,"div",6),e._UZ(16,"textarea",7,8),e.qZA(),e.TgZ(18,"h4"),e._uU(19,"Dati anagrafici Referente Legale"),e.qZA(),e.TgZ(20,"div",9)(21,"div",10)(22,"div",11)(23,"mat-form-field",12)(24,"mat-label"),e._uU(25,"Referente"),e.qZA(),e._UZ(26,"input",13),e.qZA(),e.TgZ(27,"mat-form-field",12)(28,"mat-label"),e._uU(29,"Telefono"),e.qZA(),e._UZ(30,"input",14),e.qZA(),e.TgZ(31,"mat-form-field",12)(32,"mat-label"),e._uU(33,"Email"),e.qZA(),e._UZ(34,"input",15),e.qZA()()()(),e.TgZ(35,"h4",16),e._uU(36,"Dati anagrafici Richiedente"),e.qZA(),e.TgZ(37,"div",9)(38,"div",10)(39,"div",11)(40,"mat-form-field",12)(41,"mat-label"),e._uU(42,"Nome Richiedente"),e.qZA(),e._UZ(43,"input",13),e.qZA(),e.TgZ(44,"mat-form-field",12)(45,"mat-label"),e._uU(46,"Cognome Richiedente"),e.qZA(),e._UZ(47,"input",13),e.qZA(),e.TgZ(48,"mat-form-field",12)(49,"mat-label"),e._uU(50,"Email Richiedente"),e.qZA(),e._UZ(51,"input",15
1),e.qZA()()()(),e.TgZ(52,"div",9)(53,"div",10)(54,"div",11)(55,"mat-form-field",12)(56,"mat-label"),e._uU(57,"Telefono Richiedente"),e.qZA(),e._UZ(58,"input",14),e.qZA(),e.TgZ(59,"mat-form-field",12)(60,"mat-label"),e._uU(61,"Fax"),e.qZA(),e._UZ(62,"input",14),e.qZA(),e._UZ(63,"div",17),e.qZA()()(),e.TgZ(64,"h3",5),e._uU(65,"Modalit\xe1 di notifica"),e.qZA(),e.TgZ(66,"div",9)(67,"div",10)(68,"div",11)(69,"mat-form-field",12)(70,"mat-label"),e._uU(71,"Canale di notifica"),e.qZA(),e.TgZ(72,"mat-select",18),e.NdJ("selectionChange",function(d){return a.onChannelNotificationChange(d)}),e.YNc(73,je,2,2,"mat-option",19),e.qZA()(),e._UZ(74,"div",17)(75,"div",17),e.qZA()()(),e.TgZ(76,"h3",20),e._uU(77,"Documenti da allegare"),e.qZA(),e.TgZ(78,"h4",21),e._uU(79,"\xc8 necessario inviare i seguenti documenti correttamente compilati e firmati:"),e.qZA(),e.TgZ(80,"ol",22)(81,"li")(82,"h4",21),e._uU(83,"Modulo scaricabile nella seguente sezione del sito istituzionale:"),e.qZA(),e.TgZ(84,"ol",22)(85,"li")(86,"h4"),e._uU(87,"Assistenza/Fisso/Procedure e Documenti"),e.qZA()(),e.TgZ(88,"li")(89,"h4"),e._uU(90,"Assistenza/Mobile/Procedure e Documenti"),e.qZA()()()(),e.TgZ(91,"li")(92,"h4",21),e._uU(93,"Fatture contestate"),e.qZA()(),e.TgZ(94,"li")(95,"h4",21),e._uU(96,"Il tuo documento di identit\xe0"),e.qZA()()(),e._UZ(97,"app-file-uploader",23,24),e.TgZ(99,"h4",25),e._uU(100," WINDTRE BUSINESS informa che in mancanza di compilazione dei predetti campi e di presentazione degli allegati sopra indicati, la richiesta non verr\xe0 presa in considerazione e non sussister\xe0 obbligo di alcun riscontro. Cliccando su CONFERMA procederai con l'invio della richiesta. "),e.qZA()(),e.TgZ(101,"div",26)(102,"button",27),e.NdJ("click",function(){return a.resetForm.emit()}),e._uU(103," ANNULLA "),e.qZA(),e.TgZ(104,"button",28),e.NdJ("click",function(){return a.confirmRequest()}),e._uU(105," CONFERMA "),e.qZA()(),e.BQk(),e.YNc(106,Ke,1,1,"ng-template",null,29,e.W1O)),2&i&&(e.xp6(1),e.Q6J("formGroup",a.budgetLawForm),e.xp6(8),e.Q6J("filters",a.config.filtersConfig),e.xp6(1),e.Q6J("ngIf",a.tableData),e.xp6(6),e.Q6J("formControl",a.notesTicket),e.xp6(10),e.Q6J("formControl",a.referentTicket),e.xp6(4),e.Q6J("formControl",a.referentPhoneTicket),e.xp6(4),e.Q6J("formControl",a.referentEmailTicket),e.xp6(9),e.Q6J("formControl",a.applicantNameTicket),e.xp6(4),e.Q6J("formControl",a.applicantSurnameTicket),e.xp6(4),e.Q6J("formControl",a.applicantEmailTicket),e.xp6(7),e.Q6J("formControl",a.applicantPhoneTicket),e.xp6(4),e.Q6J("formControl",a.applicantFaxTicket),e.xp6(10),e.Q6J("formControl",a.notificationChannelTicket),e.xp6(1),e.Q6J("ngForOf",a.amministrativeCommercialRequests.channelNotification),e.xp6(24),e.Q6J("filesForm",a.filesTicket),e.xp6(7),e.Q6J("disabled",a.invalidConfirm))},dependencies:[u.sg,u.O5,q.IC,T.KE,T.hX,R.Nt,E.gD,P.ey,$._,W.a,w.H,Be.s,Y.G,s._Y,s.Fj,s.JJ,s.JL,s.oH,s.sg],styles:[".buttonWrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}h3[_ngcontent-%COMP%]{margin-top:3.2rem;color:#08080d;font-size:24px;line-height:1.92rem;text-align:left;font-weight:700;letter-spacing:0px}h3.small[_ngcontent-%COMP%]{font-size:1.6rem}h3.extraMarginTop[_ngcontent-%COMP%]{margin-top:4.2rem}h4[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:300;line-height:1.92rem;text-align:left;font-weight:400;letter-spacing:0px;margin-top:2rem}h4.big[_ngcontent-%COMP%]{font-size:2rem}h4.small[_ngcontent-%COMP%]{font-size:1.4rem;margin-top:4rem}h4.normal[_ngcontent-%COMP%]{font-weight:400}h4.bold[_ngcontent-%COMP%]{font-weight:700}h4.topMargin[_ngcontent-%COMP%]{margin-top:4rem}h4[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#0044e0}.textArea[_ngcontent-%COMP%]{padding:8px 16px;background:#ffffff;border:.5px solid #b3b3b3;font-size:1.6rem;margin-top:1.6rem}.textArea[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{min-height:8rem}.budgetLawTicket[_ngcontent-%COMP%]{align-items:center;margin-top:1rem}.budgetLawTicket[_ngcontent-%COMP%] .containerDiv[_ngcontent-%COMP%]{width:30rem}.budgetLawTicket[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:30rem}@media screen and (max-width: 767px){.budgetLawTicket[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}}"]}),n})();function We(n,r){if(1&n&&(e.TgZ(0,"mat-option",11),e._uU(1),e.qZA()),2&n){const o=r.$implicit;e.Q6J("value",o.key),e.xp6(1),e.Oqu(o.value)}}function Xe(n,r){if(1&n&&(e.TgZ(0,"mat-option",11),e._uU(1),e.qZA()),2&n){const o=r.$implicit;e.Q6J("value",o.key),e.xp6(1),e.hij(" ",o.value," ")}}function et(n,r){1&n&&e._UZ(0,"div",14)}function tt(n,r){if(1&n&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&n){const o=r.$implicit;e.Q6J("value",o.key),e.xp6(1),e.hij(" ",o.value," ")}}function it(n,r){if(1&n&&(e.TgZ(0,"mat-form-field",5)(1,"mat-label"),e._uU(2,"Servizio"),e.qZA(),e.TgZ(3,"mat-select",15),e.YNc(4,tt,2,2,"mat-option",16),e.qZA()()),2&n){const o=e.oxw(2);e.xp6(3),e.Q6J("formControl",o.serviceTicket),e.xp6(1),e.Q6J("ngForOf",o.serviceTicketList)}}function nt(n,r){if(1&n&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&n){const o=r.$implicit;e.Q6J("value",o.key),e.xp6(1),e.hij(" ",o.value," ")}}function ot(n,r){if(1&n&&(e.TgZ(0,"mat-form-field",5)(1,"mat-label"),e._uU(2,"Dominio"),e.qZA(),e.TgZ(3,"mat-select",15),e.YNc(4,nt,2,2,"mat-option",16),e.qZA()()),2&n){const o=e.oxw(2);e.xp6(3),e.Q6J("formControl",o.domainTicket),e.xp6(1),e.Q6J("ngForOf",o.domainOptions)}}function at(n,r){if(1&n&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&n){const o=r.$implicit;e.Q6J("value",o.key),e.xp6(1),e.hij(" ",o.value," ")}}function rt(n,r){if(1&n&&(e.TgZ(0,"mat-form-field",5)(1,"mat-label"),e._uU(2,"Specifica"),e.qZA(),e.TgZ(3,"mat-select",15),e.YNc(4,at,2,2,"mat-option",16),e.qZA()()),2&n){const o=e.oxw(2);e.xp6(3),e.Q6J("formControl",o.specificsTicket),e.xp6(1),e.Q6J("ngForOf",o.specificsTicketList)}}function st(n,r){if(1&n){const o=e.EpF();e.ynx(0),e.TgZ(1,"mat-form-field",5)(2,"mat-label"),e._uU(3,"Argomento"),e.qZA(),e.TgZ(4,"mat-select",6),e.NdJ("selectionChange",function(i){e.CHM(o);const a=e.oxw();return e.KtG(a.subjectChange(i))}),e.YNc(5,Xe,2,2,"mat-option",7),e.qZA()(),e.YNc(6,et,1,0,"div",12),e.YNc(7,it,5,2,"mat-form-field",13),e.YNc(8,ot,5,2,"mat-form-field",13),e.YNc(9,rt,5,2,"mat-form-field",13),e.BQk()}if(2&n){const o=e.oxw();e.xp6(4),e.Q6J("formControl",o.subjectTicket),e.xp6(1),e.Q6J("ngForOf",o.subjectTicketList),e.xp6(1),e.Q6J("ngIf",!o.isServiceRequired&&!o.isDomainRequired&&!o.isSpecificsRequired),e.xp6(1),e.Q6J("ngIf",o.isServiceRequired),e.xp6(1),e.Q6J("ngIf",o.isDomainRequired),e.xp6(1),e.Q6J("ngIf",o.isSpecificsRequired)}}function ct(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"app-new-ticket-fault-form",19),e.NdJ("loadOfficeList",function(){e.CHM(o);const i=e.oxw(2);return e.KtG(i.loadOfficeList())})("returnToRichiesteSegnalazioni",function(){e.CHM(o);const i=e.oxw(2);return e.KtG(i.returnToRichiesteSegnalazioniCall())})("resetForm",function(){e.CHM(o);const i=e.oxw(2);return e.KtG(i.resetForm())}),e.qZA()}if(2&n){const o=e.oxw(2);e.Q6J("serviceTicket",o.serviceTicket.value)("isHcUser",o.isHCUser)("officeList",o.officeList)("subjectTicket",o.subjectTicket.value)}}function lt(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"app-new-ticket-complaint-form",23),e.NdJ("loadOfficeList",function(){e.CHM(o);const i=e.oxw(3);return e.KtG(i.loadOfficeList())})("resetForm",function(){e.CHM(o);const i=e.oxw(3);return e.KtG(i.resetForm())})("returnToRichiesteSegnalazioni",function(){e.CHM(o);const i=e.oxw(3);return e.KtG(i.returnToRichiesteSegnalazioniCall())}),e.qZA()}if(2&n){const o=e.oxw(3);e.Q6J("isHcUser",o.isHCUser)("officeList",o.officeList)("subjectTicket",o.subjectTicket.value)("domainTicket",o.domainTicket.value)}}function mt(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"app-new-ticket-withdrawal-form",24),e.NdJ("loadOfficeList",function(){e.CHM(o);const i=e.oxw(3);return e.KtG(i.loadOfficeList())})("resetForm",function(){e.CHM(o);const i=e.oxw(3);return e.KtG(i.resetForm())})("returnToRichiesteSegnalazioni",function(){e.CHM(o);const i=e.oxw(3);return e.KtG(i.returnToRichiesteSegnalazioniCall())}),e.qZA()}if(2&n){const o=e.oxw(3);e.Q6J("subjectTicket",o.subjectTicket.value)("domainTicket",o.domainTicket.value)("companyDataList",o.companyDataList)}}function dt(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"app-new-ticket-budget-law-form",25),e.NdJ("loadOfficeList",function(){e.CHM(o);const i=e.oxw(3);return e.KtG(i.loadOfficeList())})("returnToRichiesteSegnalazioni",function(){e.CHM(o);const i=e.oxw(3);return e.KtG(i.returnToRichiesteSegnalazioniCall())})("resetForm",function(){e.CHM(o);const i=e.oxw(3);return e.KtG(i.resetForm())}),e.qZA()}if(2&n){const o=e.oxw(3);e.Q6J("companyDataList",o.companyDataList)}}
1function pt(n,r){if(1&n&&(e.ynx(0),e.YNc(1,lt,1,4,"app-new-ticket-complaint-form",20),e.YNc(2,mt,1,3,"app-new-ticket-withdrawal-form",21),e.YNc(3,dt,1,1,"app-new-ticket-budget-law-form",22),e.BQk()),2&n){const o=e.oxw(2);e.xp6(1),e.Q6J("ngIf","RECESSO_DISDETTA_TOTALE"!==o.subjectTicket.value&&"RECESSO_DISDETTA_PARZIALE"!==o.subjectTicket.value&&"LEGGE_BILANCIO_2020"!==o.subjectTicket.value),e.xp6(1),e.Q6J("ngIf","RECESSO_DISDETTA_TOTALE"===o.subjectTicket.value||"RECESSO_DISDETTA_PARZIALE"===o.subjectTicket.value&&!!o.domainTicket.value),e.xp6(1),e.Q6J("ngIf","LEGGE_BILANCIO_2020"===o.subjectTicket.value&&"MODULO_ACCREDITO_PENALI"===o.specificsTicket.value)}}function ut(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"app-new-ticket-imei-block-form",27,28),e.NdJ("resetForm",function(){e.CHM(o);const i=e.oxw(3);return e.KtG(i.resetForm())})("returnToRichiesteSegnalazioni",function(){e.CHM(o);const i=e.oxw(3);return e.KtG(i.returnToRichiesteSegnalazioniCall())}),e.qZA()}if(2&n){const o=e.oxw(3);e.Q6J("serviceTicket",o.serviceTicket.value)}}function _t(n,r){if(1&n&&(e.ynx(0),e.YNc(1,ut,2,1,"app-new-ticket-imei-block-form",26),e.BQk()),2&n){const o=e.oxw(2);e.xp6(1),e.Q6J("ngIf","BLOCCO_IMEI"===o.subjectTicket.value)}}function ft(n,r){if(1&n&&(e.ynx(0),e.YNc(1,ct,1,4,"app-new-ticket-fault-form",18),e.YNc(2,pt,4,3,"ng-container",8),e.YNc(3,_t,2,1,"ng-container",8),e.BQk()),2&n){const o=e.oxw();e.xp6(1),e.Q6J("ngIf","ASSISTENZA_TECNICA"===o.reasonTicket.value),e.xp6(1),e.Q6J("ngIf","RICHIESTE_AMM_COMM"===o.reasonTicket.value),e.xp6(1),e.Q6J("ngIf","REINTEGRO_FURTO_SMARRIMENTO"===o.reasonTicket.value)}}function gt(n,r){if(1&n&&e._UZ(0,"app-error-message",29),2&n){const o=e.oxw();e.Q6J("type",o.errorMessageType)("marginTop","80px")}}let ht=(()=>{const r=class{constructor(t,i,a,c,d){this.spinnerService=t,this.userUtilsService=i,this.dialogService=a,this.lineListService=c,this.companyService=d,this.errorMessageType="empty",this.displayErrorMessage=!1,this.officePageSize=100,this.officeList=[],this.companyDataList=[],this.currentMobileLineOffset=0,this.mobileLinePageSize=20,this.canLoadMoreLines=!0,this.mobileLineList=[],this.domainOptions=[],this.reasonList=[{value:"Assistenza tecnica",key:"ASSISTENZA_TECNICA"},{value:"Richieste Amministrative/Commerciali",key:"RICHIESTE_AMM_COMM"},{value:"Reintegro Furto/Smarrimento",key:"REINTEGRO_FURTO_SMARRIMENTO"}],this.newTicketForm=new s.cw({reason:new s.NI(null,s.kI.required),subject:new s.NI(null,s.kI.required),service:new s.NI(null,s.kI.nullValidator),domain:new s.NI({value:null,disabled:this.amministrativeCommercialDomain.isConditional&&this.domainOptions.length>0},s.kI.nullValidator),specifics:new s.NI(null,s.kI.nullValidator)}),this._unsubscribeSignal$=new g.x,this.returnToRichiesteSegnalazioniSection=new e.vpe,this.isHCUser=this.userUtilsService.isHcAc()}get isServiceRequired(){return"RICHIESTE_AMM_COMM"!==this.reasonTicket.value}get isDomainRequired(){return"RICHIESTE_AMM_COMM"===this.reasonTicket.value&&"RECESSO_DISDETTA_TOTALE"!==this.subjectTicket.value&&"LEGGE_BILANCIO_2020"!==this.subjectTicket.value}get isSpecificsRequired(){return"RICHIESTE_AMM_COMM"===this.reasonTicket.value&&"LEGGE_BILANCIO_2020"===this.subjectTicket.value}get subjectTicketList(){switch(this.reasonTicket.value){case"ASSISTENZA_TECNICA":return this.requestFormConfig.ASSISTENZA_TECNICA.subject;case"RICHIESTE_AMM_COMM":return this.requestFormConfig.RICHIESTE_AMM_COMM.subject;case"REINTEGRO_FURTO_SMARRIMENTO":return this.requestFormConfig.REINTEGRO_FURTO_SMARRIMENTO.subject;default:return[]}}get serviceTicketList(){switch(this.reasonTicket.value){case"ASSISTENZA_TECNICA":return this.requestFormConfig.ASSISTENZA_TECNICA.service;case"REINTEGRO_FURTO_SMARRIMENTO":return this.requestFormConfig.REINTEGRO_FURTO_SMARRIMENTO.service;default:return[]}}get specificsTicketList(){return"RICHIESTE_AMM_COMM"===this.reasonTicket.value?this.requestFormConfig.RICHIESTE_AMM_COMM.specifics:[]}get reasonTicket(){return this.newTicketForm.get("reason")}get subjectTicket(){return this.newTicketForm.get("subject")}get serviceTicket(){return this.newTicketForm.get("service")}get domainTicket(){return this.newTicketForm.get("domain")}get specificsTicket(){return this.newTicketForm.get("specifics")}get requestFormConfig(){return p}get amministrativeCommercialDomain(){return this.requestFormConfig.RICHIESTE_AMM_COMM.domain}reasonChange(){this.subjectTicket.reset(),this.domainTicket.reset(),this.domainOptions=[]}subjectChange(t){switch(this.updateFormValidators(),t.value){case"ERRATO_ADDEBITO_RICARICHE":case"MANCATA_ATTIVAZIONE_DISATTIVAZIONE_SERVIZI_A_SOVRAPPREZZO":this.domainOptions=p.RICHIESTE_AMM_COMM.domain.options.mobileOnly;break;case"RECESSO_DISDETTA_TOTALE":case null:this.domainOptions=[];break;case"RECESSO_DISDETTA_PARZIALE":this.getLineCounters();break;default:this.domainOptions=p.RICHIESTE_AMM_COMM.domain.options.standard}}fetchOfficeList(){this.spinnerService.enable(),this.displayErrorMessage=!1,this.companyService.getOfficeList({type:this.isHCUser?"HC":"SME",offset:0,pageSize:this.officePageSize}).pipe((0,m.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:t=>{(0,k.G)(t)?(this.officeList=[],this.companyDataList=[],this.errorMessageType="error"):(this.officeList=[...this.officeList,...t.officeList],this.companyDataList=t.companyData),this.spinnerService.disable()},error:t=>{this.officeList=[],this.companyDataList=[],400===t.status?this.handleFetchError("empty"):(this.errorHttpModal(),this.handleFetchError("error")),this.spinnerService.disable()}})}fetchMobileLineList(){this.spinnerService.enable(),this.displayErrorMessage=!1,this.lineListService.getMobileList(void 0,void 0,void 0,this.currentMobileLineOffset,this.mobileLinePageSize).pipe((0,m.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:t=>{(0,k.G)(t)?(this.mobileLineList=[],this.handleFetchError("error")):(t.mobileLinesList&&t.mobileLinesList.length&&(this.mobileLineList=[...this.mobileLineList,...t.mobileLinesList]),this.canLoadMoreLines=!t.lastPage),this.spinnerService.disable()},error:t=>{this.mobileLineList=[],400===t.status?this.handleFetchError("empty"):(this.errorHttpModal(),this.handleFetchError("error")),this.spinnerService.disable()}})}fetchMobileLinesListNewPage(){this.currentMobileLineOffset+=this.mobileLinePageSize,this.fetchMobileLineList()}handleFetchError(t){this.displayErrorMessage=!0,this.errorMessageType=t,this.spinnerService.disable()}updateFormValidators(){this.serviceTicket.reset(),this.domainTicket.reset(),this.specificsTicket.reset(),this.serviceTicket.setValidators(this.isServiceRequired?s.kI.required:s.kI.nullValidator),this.domainTicket.setValidators(this.isDomainRequired?s.kI.required:s.kI.nullValidator),this.specificsTicket.setValidators(this.isSpecificsRequired?s.kI.required:s.kI.nullValidator),this.newTicketForm.updateValueAndValidity()}resetForm(){this.reasonTicket.setValue(null),this.reasonTicket.markAsPristine(),this.subjectTicket.setValue(null),this.subjectTicket.markAsPristine(),this.serviceTicket.setValue(null),this.serviceTicket.markAsPristine(),this.domainTicket.setValue(null),this.domainTicket.markAsPristine(),this.specificsTicket.setValue(null),this.specificsTicket.markAsPristine()}returnToRichiesteSegnalazioniCall(){this.returnToRichiesteSegnalazioniSection.emit("SEGN_TECNICHE")}loadOfficeList(){0===this.officeList.length&&this.fetchOfficeList()}loadMobileLineList(){console.log("loadMobileLineList",this.canLoadMoreLines),this.canLoadMoreLines&&this.fetchMobileLineList()}getLineCounters(){this.lineListCounter?this.setDomainFromLineCounters():(this.spinnerService.enable(),this.displayErrorMessage=!1,this.piva||(this.piva=this.userUtilsService.getPiva()||void 0),this.lineListService.getLineList(void 0,void 0,this.piva,!0).pipe((0,m.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:t=>{(0,k.G)(t)?this.handleFetchError("error"):this.lineListCounter=t,this.setDomainFromLineCounters(),this.spinnerService.disable()},error:t=>{400===t.status?this.handleFetchError("empty"):(this.errorHttpModal(),this.handleFetchError("error")),this.setDomainFromLineCounters(),this.spinnerService.disable()}}))}setDomainFromLineCounters(){this.domainOptions=p.RICHIESTE_AMM_COMM.domain.options.combined,this.lineListCounter&&(0===this.lineListCounter.numFixed?this.domainOptions=p.RICHIESTE_AMM_COMM.domain.options.mobileOnly:0===this.lineListCounter.numMobile?this.domainOptions=p.RICHIESTE_AMM_COMM.domain.options.fixedOnly:(0===this.lineListCounter.numFixed||0===this.lineListCounter.numMobile)&&(this.domainOptions=[]))}openSuccessDialog(){this.dialogService.open({title:"Segnalazione inviata",message:"La segnalazione \xe8 stata presa in carico.\nNon sar\xe0 possibile effettuare altre operazioni su questa linea fino all'evasione della modifica che si sta inviando, pertanto t
1i chiediamo di attendere il completamento di questa pratica prima di inserirne una nuova. Verifica direttamente nella sezione \u201cRichieste e segnalazioni\u201d lo stato della tua pratica.",cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"confirm"})}errorHttpModal(){this.spinnerService.disable(),this.dialogService.open({title:"Attenzione!",message:"Il servizio non \xe8 al momento disponibile, riprova pi\xf9 tardi.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})}ngOnDestroy(){this._unsubscribeSignal$.next(),this._unsubscribeSignal$.unsubscribe()}};let n=r;return r.\u0275fac=function(i){return new(i||r)(e.Y36(x.V),e.Y36(M.r),e.Y36(v.D),e.Y36(I.o),e.Y36(Z))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-open-new-ticket"]],outputs:{returnToRichiesteSegnalazioniSection:"returnToRichiesteSegnalazioniSection"},decls:15,vars:6,consts:[[1,"subTitle"],[3,"formGroup"],[1,"row"],[1,"box"],[1,"itemBox","newTicket"],["appearance","legacy"],[3,"formControl","selectionChange"],["style","height: auto; overflow: visible; text-wrap: wrap;",3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["errorTemplate",""],[2,"height","auto","overflow","visible","text-wrap","wrap",3,"value"],["class","containerDiv",4,"ngIf"],["appearance","legacy",4,"ngIf"],[1,"containerDiv"],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[3,"serviceTicket","isHcUser","officeList","subjectTicket","loadOfficeList","returnToRichiesteSegnalazioni","resetForm",4,"ngIf"],[3,"serviceTicket","isHcUser","officeList","subjectTicket","loadOfficeList","returnToRichiesteSegnalazioni","resetForm"],[3,"isHcUser","officeList","subjectTicket","domainTicket","loadOfficeList","resetForm","returnToRichiesteSegnalazioni",4,"ngIf"],[3,"subjectTicket","domainTicket","companyDataList","loadOfficeList","resetForm","returnToRichiesteSegnalazioni",4,"ngIf"],[3,"companyDataList","loadOfficeList","returnToRichiesteSegnalazioni","resetForm",4,"ngIf"],[3,"isHcUser","officeList","subjectTicket","domainTicket","loadOfficeList","resetForm","returnToRichiesteSegnalazioni"],[3,"subjectTicket","domainTicket","companyDataList","loadOfficeList","resetForm","returnToRichiesteSegnalazioni"],[3,"companyDataList","loadOfficeList","returnToRichiesteSegnalazioni","resetForm"],[3,"serviceTicket","resetForm","returnToRichiesteSegnalazioni",4,"ngIf"],[3,"serviceTicket","resetForm","returnToRichiesteSegnalazioni"],["imeiBlockForm",""],[3,"type","marginTop"]],template:function(i,a){if(1&i&&(e.TgZ(0,"h1",0),e._uU(1,"NUOVO TICKET"),e.qZA(),e.TgZ(2,"form",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),e._uU(8,"Motivo"),e.qZA(),e.TgZ(9,"mat-select",6),e.NdJ("selectionChange",function(){return a.reasonChange()}),e.YNc(10,We,2,2,"mat-option",7),e.qZA()(),e.YNc(11,st,10,6,"ng-container",8),e.qZA()()(),e.YNc(12,ft,4,3,"ng-container",9),e.qZA(),e.YNc(13,gt,1,2,"ng-template",null,10,e.W1O)),2&i){const c=e.MAs(14);e.xp6(2),e.Q6J("formGroup",a.newTicketForm),e.xp6(7),e.Q6J("formControl",a.reasonTicket),e.xp6(1),e.Q6J("ngForOf",a.reasonList),e.xp6(1),e.Q6J("ngIf",!!a.reasonTicket.value),e.xp6(1),e.Q6J("ngIf",!a.displayErrorMessage)("ngIfElse",c)}},dependencies:[u.sg,u.O5,T.KE,T.hX,E.gD,P.ey,w.H,s._Y,s.JJ,s.JL,s.oH,s.sg,ue,ve,Ce,He,$e]}),n})();var ee=l(4984);function Tt(n,r){if(1&n&&e._UZ(0,"app-error-message",2),2&n){const o=e.oxw();e.Q6J("type",o.requestTabConfig.error)}}function vt(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"div",21),e._uU(2,"Descrizione estesa richiesta"),e.qZA(),e.TgZ(3,"div",22),e._uU(4),e.qZA(),e.BQk()),2&n){const o=e.oxw().$implicit;e.xp6(4),e.hij(" ",o.extendedDescription," ")}}const bt=function(n){return{closed:n}};function Ct(n,r){if(1&n){const o=e.EpF();e.ynx(0),e.TgZ(1,"div",7)(2,"div",8)(3,"div",9)(4,"div",10)(5,"div",11),e._uU(6,"Numero pratica"),e.qZA(),e.TgZ(7,"div",12),e._uU(8),e.qZA()(),e.TgZ(9,"div",10)(10,"div",11),e._uU(11,"Ambito"),e.qZA(),e.TgZ(12,"div",12),e._uU(13),e.qZA()(),e.TgZ(14,"div",10)(15,"div",11)(16,"a",13),e.NdJ("click",function(){const a=e.CHM(o).$implicit,c=e.oxw(2);return e.KtG(c.download(a))}),e._uU(17,"SCARICA ALLEGATO"),e.qZA()()()()(),e.TgZ(18,"div",14)(19,"div",15)(20,"div",10)(21,"div",16)(22,"div",17),e._uU(23,"Modalit\xe0 di apertura"),e.qZA(),e.TgZ(24,"div",18),e._uU(25),e.qZA()()(),e.TgZ(26,"div",10)(27,"div",19)(28,"div",17),e._uU(29,"Richiede
1nte"),e.qZA(),e.TgZ(30,"div",18),e._uU(31),e.qZA()(),e.TgZ(32,"div",16)(33,"div",17),e._uU(34,"Data creazione"),e.qZA(),e.TgZ(35,"div",18),e._uU(36),e.ALo(37,"date"),e.qZA()()(),e.TgZ(38,"div",10)(39,"div",19)(40,"div",17),e._uU(41,"Esito richiesta"),e.qZA(),e.TgZ(42,"div",18),e._uU(43),e.qZA()(),e.TgZ(44,"div",16)(45,"div",17),e._uU(46,"Data chiusura"),e.qZA(),e.TgZ(47,"div",18),e._uU(48),e.ALo(49,"date"),e.qZA()()()(),e.YNc(50,vt,5,1,"ng-container",20),e.qZA()(),e.BQk()}if(2&n){const o=r.$implicit;e.xp6(1),e.Q6J("ngClass",e.VKq(15,bt,o.closedDate)),e.xp6(7),e.Oqu(o.caseNumber),e.xp6(5),e.Oqu(o.scope),e.xp6(12),e.Oqu(o.openingMode),e.xp6(6),e.Oqu(o.applicant),e.xp6(5),e.Oqu(e.xi3(37,9,o.creationDate,"dd/MM/yyyy")),e.xp6(7),e.Oqu(o.status),e.xp6(5),e.Oqu(o.closedDate?e.xi3(49,12,o.closedDate,"dd/MM/yyyy"):"-"),e.xp6(2),e.Q6J("ngIf",o.extendedDescription)}}function kt(n,r){1&n&&e._UZ(0,"app-spinner",23),2&n&&e.Q6J("fixed",!1)}const xt=function(n){return{disabled:n}};function wt(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"a",24),e.NdJ("click",function(){e.CHM(o);const i=e.oxw(2);return e.KtG(i.requestLoadMore())}),e._uU(1," MOSTRA DI PI\xd9 "),e.qZA()}if(2&n){const o=e.oxw(2);e.Q6J("ngClass",e.VKq(1,xt,o.requestTabConfig.endList||"OM"!==o.requestTabConfig.requestType))}}function Ot(n,r){if(1&n&&(e.YNc(0,Ct,51,17,"ng-container",3),e.TgZ(1,"div",4),e._UZ(2,"div"),e.YNc(3,kt,1,1,"app-spinner",5),e.YNc(4,wt,2,3,"a",6),e._UZ(5,"div"),e.qZA()),2&n){const o=e.oxw();e.Q6J("ngForOf",o.requestTabConfig.list),e.xp6(3),e.Q6J("ngIf",o.requestTabConfig.isLoading),e.xp6(1),e.Q6J("ngIf",!o.requestTabConfig.isLoading)}}let Mt=(()=>{const r=class{constructor(){this.downloadDocument=new e.vpe,this.loadMore=new e.vpe}download(t){this.downloadDocument.emit(t.idDms)}requestLoadMore(){!this.requestTabConfig.endList&&"OM"===this.requestTabConfig.requestType&&this.loadMore.emit()}};let n=r;return r.\u0275fac=function(i){return new(i||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-request-and-report-list"]],inputs:{requestTabConfig:"requestTabConfig"},outputs:{downloadDocument:"downloadDocument",loadMore:"loadMore"},decls:3,vars:2,consts:[[3,"type",4,"ngIf","ngIfElse"],["requestListTemplate",""],[3,"type"],[4,"ngFor","ngForOf"],[1,"load-more"],["size","10rem","noBlur","",3,"fixed",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],[1,"boxTab",3,"ngClass"],[1,"header-boxTab"],[1,"row"],[1,"box"],[1,"header-boxTab-item"],[1,"header-boxTab-item","bold"],[1,"header-boxTab-link","download-link",3,"click"],[1,"main-boxTab"],[1,"row","separator"],[1,"itemBox"],[1,"itemRequest"],[1,"itemReply"],[1,"itemBox","first"],[4,"ngIf"],[1,"smallTitle"],[1,"boxEmphas"],["size","10rem","noBlur","",3,"fixed"],[3,"ngClass","click"]],template:function(i,a){if(1&i&&(e.YNc(0,Tt,1,1,"app-error-message",0),e.YNc(1,Ot,6,3,"ng-template",null,1,e.W1O)),2&i){const c=e.MAs(2);e.Q6J("ngIf",a.requestTabConfig.error)("ngIfElse",c)}},dependencies:[u.mk,u.sg,u.O5,ee.O,w.H,u.uU],styles:['[_nghost-%COMP%] .header-boxTab-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer;pointer-events:auto}[_nghost-%COMP%] .download-link[_ngcontent-%COMP%]{position:relative;z-index:1;font-weight:400}[_nghost-%COMP%] .itemBox.first[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] .boxTab.closed[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .boxTab.closed[_ngcontent-%COMP%]:after{content:"";width:100%;height:100%;display:block;position:absolute;bottom:0;left:0;background:rgba(255,255,255,.5);border-radius:1.6rem;z-index:0}[_nghost-%COMP%] .load-more[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:start;align-items:center}[_nghost-%COMP%] .load-more[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%;height:1px;background:#97999B;flex:1}[_nghost-%COMP%] .load-more[_ngcontent-%COMP%] app-spinner[_ngcontent-%COMP%]{padding:0 2rem}[_nghost-%COMP%] .load-more[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:0 1.6rem;font-size:1.4rem;font-style:normal;font-weight:700;line-height:2rem;color:#0044e0;cursor:pointer;pointer-events:auto}[_nghost-%COMP%] .load-more[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]{color:#6207ab66;cursor:auto;pointer-events:none}']}),n})();const te=function(n){return{selected:n}};function At(n,r){if(1&n){const o=e.EpF();e.ynx(0),e.TgZ(1,"input",10),e.NdJ("click",function(){const a=e.CHM(o).$implicit,c=e.oxw();return e.KtG(c.selectTab(a))}),e.qZA(),e.TgZ(2,"label",11),e._UZ(3,"img",12),e._uU(4),e.ALo(5,"uppercase"),e.qZA(),e.BQk()}if(2&n){const o=r.$implicit,t=r.index,i=e.oxw();e.xp6(1),e.Q6J("id","tab"+t)("ngClass",e.VKq(7,te,o===i.selectedTab)),e.xp6(1),e.Q6J("for","tab"+t),e.xp6(1),e.Q6J("src","assets/images/"+o.image
1+".svg",e.LSH),e.xp6(1),e.hij(" ",e.lcZ(5,5,o.label)," ")}}function It(n,r){if(1&n){const o=e.EpF();e.ynx(0),e.TgZ(1,"div",13)(2,"app-request-and-report-list",14),e.NdJ("loadMore",function(){e.CHM(o);const i=e.oxw();return e.KtG(i.getListByType())})("downloadDocument",function(i){e.CHM(o);const a=e.oxw();return e.KtG(a.downloadDocument(i))}),e.qZA()(),e.BQk()}if(2&n){const o=e.oxw();e.xp6(2),e.Q6J("requestTabConfig",o.selectedTab)}}function Zt(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"div",15)(1,"app-open-new-ticket",16),e.NdJ("returnToRichiesteSegnalazioniSection",function(i){e.CHM(o);const a=e.oxw();return e.KtG(a.returnToRichiesteSegnalazioniSectionCall(i))}),e.qZA()()}}let St=(()=>{const r=class{constructor(t,i,a,c){this.route=t,this.supportService=i,this.spinnerService=a,this.dialogService=c,this.tabsConfig=[{label:"Gestione prodotti",requestType:"OM",image:"request-report/gestione-opzioni",list:[]},{label:"Segnalazioni amministrative e commerciali",requestType:"SEGN_AMM_COMM",image:"request-report/segnalazioni-amministrative-commerciali",list:[]},{label:"Segnalazioni tecniche",requestType:"SEGN_TECNICHE",image:"request-report/segnalazioni-tecniche",list:[]},{label:"Servizi a contenuto",requestType:"GESTIONE_VAS",image:"request-report/servizi-a-contenuto",list:[]},{label:"Blocco IMEI",requestType:"BLOCCO_IMEI",image:"request-report/blocco-IMEI",list:[]},{label:"Legge di Bilancio 2020",requestType:"CONTESTAZIONE_FATTURA",image:"request-report/legge-di-bilancio",list:[]}],this._pageSize=5,this._unsubscribeSignal$=new g.x,this.selectedTab=this.tabsConfig.find(d=>"SEGN_TECNICHE"===d.requestType)}ngOnInit(){this.getListByType()}getListByType(){if("new"!==this.selectedTab&&!this.selectedTab.error&&!this.selectedTab.endList){const t=this.selectedTab;t.isLoading=!0;const i=t.list.length+1;this.supportService.getRequestsList({requestType:t.requestType,dateTo:y().toISOString(),dateFrom:y().subtract(3,"months").toISOString(),offset:i,pageSize:this._pageSize}).pipe((0,m.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:a=>{if(t.list=t.list.concat(a.requestList),0===t.list.length&&(t.endList=!0,this.handleFetchError(t,"empty")),"OM"===t.requestType){let c=parseInt(a.totCaseId);isNaN(c)&&(c=0),t.endList=0===a.requestList.length||t.list.length>=c}else t.endList=!0;t.isLoading=!1},error:()=>this.handleFetchError(t,"error")})}}handleFetchError(t,i){t.isLoading=!1,t.error=i}selectTab(t){this.selectedTab=t,this.getListByType()}downloadDocument(t){this.spinnerService.enable(),this.supportService.downloadDocument(t).pipe((0,m.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:i=>{if("application/octet-stream"===i.type){const a=document.createElement("a");a.href=window.URL.createObjectURL(i),a.download=`pratica_${t}.zip`,a.click()}else{const a=new Blob([i],{type:"text/html"}),c=document.createElement("a");c.href=window.URL.createObjectURL(a),c.download=`pratica_${t}.html`,c.click()}this.spinnerService.disable()},error:i=>{this.dialogService.open({title:"Errore nel download",message:"Si \xe8 verificato un errore nel processo di download dell'allegato. Si prega di riprovare pi\xf9 tardi.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"}),this.spinnerService.disable()}})}returnToRichiesteSegnalazioniSectionCall(t){this.selectedTab=this.tabsConfig.find(i=>i.requestType===t),location.reload()}ngOnDestroy(){this._unsubscribeSignal$.next(),this._unsubscribeSignal$.unsubscribe()}};let n=r;return r.\u0275fac=function(i){return new(i||r)(e.Y36(f.F0),e.Y36(O.g),e.Y36(x.V),e.Y36(v.D))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-request-and-report"]],decls:16,vars:6,consts:[[1,"main-pages-content","request-and-report"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],[1,"customTabs"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],["openNewTicket",""],[1,"labelTab","addTicket",3,"ngClass","click"],[1,"addSymbol"],["type","radio","name","tabs",3,"id","ngClass","click"],[1,"labelTab",3,"for"],["alt","img",1,"icoTabs",3,"src"],[1,"itemtab"],[3,"requestTabConfig","loadMore","downloadDocument"],[1,"itemtab","newTicket"],[3,"returnToRichiesteSegnalazioniSection"]],template:function(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"app-breadcrumbs"),e.TgZ(3,"h1",2),e._uU(4,"RICHIESTE E SEGNALAZIONI"),e.qZA(),e.TgZ(5,"h2",3),e._uU(6,'In questa pagina trovi l\'elenco delle richieste inviate, divise per tipologia, e il loro stato. Per inserirne una nuova clicca su "+ Inserisci nuovo ticket".'),e.qZA()(),e.TgZ(7,"div",4),e.YNc(8,At,6,9,"ng-container",5),e.YNc(9,It,3,1,"ng-container",6),e.YNc(10,Zt,2,0,"ng-template",null,7,e.W1O),e.TgZ(12,"a",8),e.NdJ("click",function(){return a.selectTab("new")}),e.TgZ(13,"span",9),e._uU(14,"+"),e.qZA(),e._uU(15," INSERISCI NUOVO TICKET "),e.qZA()()()),2&i){const c=e.MAs(11);e.xp6(8),e.Q6J("ngForOf",a.tabsConfig),e.xp6(1),e.Q6J("ngIf","new"!==a.selectedTab)("ngIfElse",c),e.xp6(3),e.Q6J("ngClass",e.VKq(4,te,"new"===a.selectedTab))}},dependencies:[u.mk,u.sg,u.O5,U.n,ht,Mt,u.gd],encapsulation:2}),n})();var yt=l(7923);function Lt(n,r){1&n&&(e.ynx(0),e.TgZ(1,"h2",5),e._uU(2,"Stai per essere rendirizzato alla pagina dedicata..."),e.qZA(),e.BQk())}function Ft(n,r){if(1&n&&e._UZ(0,"app-error-message",6),2&n){const o=e.oxw();e.Q6J("type",o.errorMessageType)}}let Nt=(()=>{const r=class{constructor(t,i){this.accountService=t,this.spinnerService=i,this.errorMessageType="empty",this.displayErrorMessage=!1,this._destroy$=new g.x}ngOnInit(){this.redirectToSmartArea()}handleFetchError(t){this.displayErrorMessage=!0,this.errorMessageType=t,this.spinnerService.disable()}redirectToSmartArea(){this.accountService.smartAreaGetUrl().pipe((0,m.R)(this._destroy$)).subscribe({next:t=>{window.open(t.redirectUrl,"_blank")},error:()=>this.handleFetchError("error")})}ngOnDestroy(){this.spinnerService.disable(),this._destroy$.next(),this._destroy$.unsubscribe()}};let n=r;return r.\u0275fac=function(i){return new(i||r)(e.Y36(yt.B),e.Y36(x.V))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-smart-area"]],decls:8,vars:2,consts:[[1,"main-pages-content","smart-area"],[1,"main-pages-content-header"],[1,"titlePage"],[4,"ngIf","ngIfElse"],["error_banner",""],[1,"subTitlePage"],[3,"type"]],template:function(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"app-breadcrumbs"),e.TgZ(3,"h1",2),e._uU(4,"SMART AREA"),e.qZA(),e.YNc(5,Lt,3,0,"ng-container",3),e.YNc(6,Ft,1,1,"ng-template",null,4,e.W1O),e.qZA()()),2&i){const c=e.MAs(7);e.xp6(5),e.Q6J("ngIf",!a.displayErrorMessage)("ngIfElse",c)}},dependencies:[u.O5,w.H,U.n]}),n})();var Et=l(5017);function Pt(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"div",29),e._uU(2),e.qZA(),e.BQk()),2&n){const o=r.$implicit;e.xp6(2),e.Oqu(o)}}function qt(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"div",29),e._uU(2),e.qZA(),e.BQk()),2&n){const o=r.$implicit;e.xp6(1),e.uIk("data-title",o.title),e.xp6(1),e.Oqu(o.value)}}function Rt(n,r){if(1&n){const o=e.EpF();e.ynx(0),e.TgZ(1,"div",30)(2,"div",26)(3,"mat-checkbox",31),e.NdJ("click",function(i){e.CHM(o);const a=e.oxw(3);return e.KtG(a.clickRow(i))})("change",function(){const a=e.CHM(o).$implicit,c=e.oxw(3);return e.KtG(c.onServiceSelect(a))}),e.qZA()(),e.YNc(4,qt,3,2,"ng-container",27),e.qZA(),e.BQk()}if(2&n){const o=r.$implicit;e.xp6(3),e.Q6J("checked",o.selected),e.xp6(1),e.Q6J("ngForOf",o.rows)}}function Ut(n,r){if(1&n&&(e.TgZ(0,"div",24)(1,"div",25),e._UZ(2,"div",26),e.YNc(3,Pt,3,1,"ng-container",27),e._UZ(4,"div",28),e.qZA(),e.YNc(5,Rt,5,2,"ng-container",27),e.qZA()),2&n){const o=e.oxw(2);e.xp6(3),e.Q6J("ngForOf",o.tableData.headers),e.xp6(2),e.Q6J("ngForOf",o.tableData.dataTableRow)}}function Dt(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"div")(1,"form",3)(2,"div",4)(3,"mat-radio-group",5)(4,"mat-radio-button",6),e._uU(5,"Richiesta Variazioni"),e.qZA(),e.TgZ(6,"mat-radio-button",7),e._uU(7,"Segnalazione Incident"),e.qZA()()(),e.YNc(8,Ut,6,2,"div",8),e.TgZ(9,"div",9)(10,"label"),e._uU(11,"Descrizione*"),e.qZA(),e.TgZ(12,"div",10),e._UZ(13,"textarea",11),e.qZA()(),e.TgZ(14,"div",12)(15,"mat-form-field",13)(16,"mat-label"),e._uU(17,"Sede"),e.qZA(),e._UZ(18,"input",14),e.qZA(),e.TgZ(19,"mat-form-field",13)(20,"mat-label"),e._uU(21,"Indirizzo sede"),e.qZA(),e._UZ(22,"input",15),e.qZA(),e.TgZ(23,"mat-form-field",13)(24,"mat-label"),e._uU(25,"Tipologia sede"),e.qZA(),e._UZ(26,"input",16),e.qZA(),e.TgZ(27,"mat-form-field",13)(28,"mat-label"),e._uU(29,"Recapito del tecnico da contattare"),e.qZA(),e._UZ(30,"input",17),e.qZA()(),e.TgZ(31,"div",18)(32,"p"),e._uU(33,"Se hai bisogno di condividere dei documenti con noi puoi caricarli nell'area sottostante fino ad un massimo di 2 Mega nel formato .pdf, .jpg, .png, .gif e .zip."),e.qZA(),e._UZ(34,"app-file-uploader",19,20),e.qZA(),e.TgZ(36,"div",21)(37,"div",22),e._uU(38,"Cliccando su CONFERMA procederai con l'invio della segnalazione"),e.qZA(),e.TgZ(39,"button",23),e.NdJ("click",function(){e.CHM(o);const i=e.oxw();return e.KtG(i.submitRequest())}),e._uU(40," CONFERMA "),e.qZA()()()()}if(2&n){const o=e.oxw();e.xp6(1),e.Q6J("formGroup",o.form),e.xp6(7),e.Q6J("ngIf",o.tableData),e.xp6(10),e.Q6J("formControl",o.sede),e.xp6(4),e.Q6J("formControl",o.address),e.xp6(4),e.Q6J("formControl",o.sedeTypology),e.xp6(4),e.Q6J("formControl",o.technicalPhone),e.xp6(4),e.Q6J("filesForm",o.filesTicket),e.xp6(5),e.Q6J("disabled",!o.form.valid)}}function Jt(n,r){if(1&n&&(e.TgZ(0,"div"),e._UZ(1,"app-error-message",32),e.qZA()),2&n){const o=e.oxw();
1e.xp6(1),e.Q6J("type",o.errorMessageType)("marginTop","80px")}}let ie=(()=>{const r=class{constructor(t,i,a,c,d,_){this.supportService=t,this.dialogService=i,this.tableHelper=a,this.spinnerService=c,this.fb=d,this.cdf=_,this.microservices=[],this.requestData={},this.apiError=!1,this.isLoading=!1,this.selectedKeyChild="",this._destroy$=new g.x,this.switchToHistory=new e.vpe,this.errorMessageType="empty",this.row=new Et.Ov(!1,[]),this.selectedServiceList=[]}get typeRequest(){return this.form.get("typeRequest")}get description(){return this.form.get("description")}get sede(){return this.form.get("sede")}get address(){return this.form.get("address")}get sedeTypology(){return this.form.get("sedeTypology")}get technicalPhone(){return this.form.get("technicalPhone")}get filesTicket(){return this.form.get("files")}get macroservice(){return this.form.get("macroservice")}ngOnInit(){this.requestMicroServices(),this.createForm()}createForm(){this.form=this.fb.group({typeRequest:[null,s.kI.required],macroservice:[null,s.kI.required],description:[null,s.kI.required],sede:[null,s.kI.required],address:[null,s.kI.required],sedeTypology:[null,s.kI.required],technicalPhone:[null,s.kI.compose([s.kI.required,s.kI.minLength(6)])],files:[null]})}requestMicroServices(){this.spinnerService.enable(),this.supportService.getManagedServices().pipe((0,m.R)(this._destroy$.asObservable())).subscribe({next:t=>{this.microservices=t.listManagedServices,this.microservices&&this.microservices.length>0&&this.mapTableData(),this.apiError=!1,this.spinnerService.disable()},error:t=>{this.apiError=!0,this.spinnerService.disable()}})}submitRequest(){const t=document.getElementById("ctaConfirm");t&&(t.disabled=!0),this.spinnerService.enable();const i={idOffice:this.idOffice,idReferent:this.idReferent,segment:this.segment,service:this.service,manager:this.manager,description:this.description.value,technicalPhone:this.technicalPhone.value};this.idReferent?("ritmRequestCall"===this.form.value.typeRequest?this.supportService.insertRitm(i,this.filesTicket.value).pipe((0,m.R)(this._destroy$.asObservable())).subscribe({next:()=>{this.openSuccessSubmitModal()},error:()=>{this.openGenericErrorModal()}}):this.supportService.insertIncidents(i,this.filesTicket.value).pipe((0,m.R)(this._destroy$.asObservable())).subscribe({next:()=>{this.openSuccessSubmitModal()},error:()=>{this.openGenericErrorModal()}}),this.spinnerService.disable()):(this.spinnerService.disable(),this.openGenericErrorModal())}openGenericErrorModal(){this.dialogService.open({title:"Attenzione",message:"Si \xe8 verificato un errore, riprova pi\xf9 tardi.",cancelText:"Annulla",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"}),this.dialogService.confirmed().subscribe(t=>{document.getElementById("ctaConfirm").disabled=!1})}openSuccessSubmitModal(){this.dialogService.open({title:"Richiesta inviata",message:"La tua richiesta e\u0300 stata inviata con successo",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"confirm"}),this.dialogService.confirmed().subscribe(t=>{document.getElementById("ctaConfirm").disabled=!1,this.switchToHistory.emit("HISTORY_TICKET")})}clickRow(t){t.stopPropagation()}onServiceSelect(t){t&&(t.selected=!0,this.selectedService=t.fetchedElement,this.selectedServiceList.push(t),this.selectedServiceList.length<=1?t.selected=!0:(this.selectedServiceList[0].selected=!1,this.selectedServiceList.shift()),this.selectedService&&(this.form.controls.macroservice.setValue(this.selectedService.macroService),this.form.controls.sede.setValue(this.selectedService.municipalityGIS),this.form.controls.address.setValue(this.selectedService.address),this.form.controls.sedeTypology.setValue(this.selectedService.venueType),this.idOffice=this.selectedService.idOffice,this.idReferent=this.selectedService.idRefTelco,this.segment=this.selectedService.segment,this.service=this.selectedService.service,this.manager=this.selectedService.manager))}mapTableData(){this.tableData=this.tableHelper.createDropdownTableData(D.y.MANAGEDSERVICESNEWTICKET,this.microservices)}};let n=r;return r.\u0275fac=function(i){return new(i||r)(e.Y36(O.g),e.Y36(v.D),e.Y36(B.S),e.Y36(x.V),e.Y36(s.qu),e.Y36(e.sBO))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-managed-services-new-ticket"]],outputs:{switchToHistory:"switchToHistory"},decls:5,vars:2,consts:[[1,"box_Component","box_Extended","managed-services_newTicket"],[1,"box-margin","title"],[4,"ngIf"],[3,"formGroup"],[1,"box-margin","checkboxArea","containerDiv"],["aria-label","Select an option","formControlName","typeRequest"],["id","ritmRequest","value","ritmRequestCall"],["id","incidentsInsert","value","incidentsInsertCall"],["class","wtb-table box-margin",4,"ngIf"],["id","newTicket-description box_Textarea",1,"box-margin"],[1,"textarea_Wrapper"],["name","description","maxlength","300","required","true","formControlName","description",1,"box_Textarea"],[1,"box_OfficeDetail","box-margin"],["appearance","legacy"],["matInput","","type","text","autocomplete","on","value","municipalityGIS",3,"formControl"],["matInput","","type","text","autocomplete","on","value","address",3,"formControl"],["matInput","","type","text","autocomplete","on","value","venueType",3,"formControl"],["matInput","","type","text","placeholder","Recapito del tecnico da contattare*","autocomplete","on",3,"formControl"],[1,"box-margin","new-ticket_uploadFiles"],[1,"new-ticket_fileUploader",3,"filesForm"],["fileUploader",""],[1,"box-margin","confirm_Section"],[1,"box_Text"],["type","button","id","ctaConfirm",1,"cta",3,"disabled","click"],[1,"wtb-table","box-margin"],[1,"row-table","heading"],[1,"cell-table","small"],[4,"ngFor","ngForOf"],[1,"cell-table","serviceMenu"],[1,"cell-table"],[1,"row-table"],[1,"example-margin",3,"checked","click","change"],[3,"type","marginTop"]],template:function(i,a){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e._uU(2,"Nuovo ticket"),e.qZA(),e.YNc(3,Dt,41,8,"div",2),e.YNc(4,Jt,2,2,"div",2),e.qZA()),2&i&&(e.xp6(3),e.Q6J("ngIf",!a.apiError&&!a.isLoading),e.xp6(1),e.Q6J("ngIf",a.apiError&&!a.isLoading))},dependencies:[u.sg,u.O5,T.KE,T.hX,R.Nt,V.oG,w.H,H.VQ,H.U0,Y.G,s._Y,s.Fj,s.JJ,s.JL,s.Q7,s.nD,s.oH,s.sg,s.u],styles:[".managed-services_newTicket[_ngcontent-%COMP%]{padding:0 4rem;font-size:1.6rem;display:block;margin:.8rem 0 3rem}.managed-services_newTicket[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{text-transform:uppercase;font-size:3rem;margin-bottom:1.6rem;color:#ff6900}.managed-services_newTicket[_ngcontent-%COMP%] .checkboxArea[_ngcontent-%COMP%]{margin-bottom:3rem}.managed-services_newTicket[_ngcontent-%COMP%] .checkboxArea[_ngcontent-%COMP%] .mat-radio-group[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%]{line-height:1.5rem;font-weight:500}.managed-services_newTicket[_ngcontent-%COMP%] .wtb-table[_ngcontent-%COMP%]{margin-bottom:3rem}.managed-services_newTicket[_ngcontent-%COMP%] .box_Textarea[_ngcontent-%COMP%]{display:inline-block;width:100%;font-weight:300;font-size:1.4rem;min-height:8rem}.managed-services_newTicket[_ngcontent-%COMP%] .box_OfficeDetail[_ngcontent-%COMP%]{width:75%;display:flex;flex-wrap:wrap}.managed-services_newTicket[_ngcontent-%COMP%] .box_OfficeDetail[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:calc((100% - 22rem)/2);margin-right:6rem}.managed-services_newTicket[_ngcontent-%COMP%] .box_OfficeDetail[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{line-height:1.5}.managed-services_newTicket[_ngcontent-%COMP%] .box_OfficeDetail[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{margin-top:-4px;padding-bottom:6px}.managed-services_newTicket[_ngcontent-%COMP%] .new-ticket_fileUploader[_ngcontent-%COMP%]{margin-bottom:3rem}.managed-services_newTicket[_ngcontent-%COMP%] .new-ticket_fileUploader[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{display:none}.managed-services_newTicket[_ngcontent-%COMP%] .confirm_Section[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.managed-services_newTicket[_ngcontent-%COMP%] .box-margin[_ngcontent-%COMP%]{padding:1rem 0;margin-bottom:4rem}"]}),n})();function zt(n,r){1&n&&e._UZ(0,"app-spinner")}function Qt(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"div",23)(1,"span",24),e.NdJ("click",function(){const a=e.CHM(o).$implicit,c=e.oxw(6);return e.KtG(c.downloadAttachment(a.sysId,a.fileName))}),e._uU(2),e.qZA()()}if(2&n){const o=r.$implicit;e.xp6(2),e.Oqu(o.fileName.length>20?o.fileName.substring(0,20)+"[...]":o.fileName)}}function Ht(n,r){if(1&n&&(e.TgZ(0,"div",18)(1,"div",19),e._uU(2,"SCARICA ALLEGATI"),e.qZA(),e.TgZ(3,"div",20)(4,"div",21),e.YNc(5,Qt,3,1,"div",22),e.qZA()()()),2&n){const o=e.oxw().$implicit;
1e.xp6(5),e.Q6J("ngForOf",o.attachments)}}const Yt=function(n){return{closedIncident:n}};function Bt(n,r){if(1&n&&(e.TgZ(0,"div",5)(1,"div",6)(2,"div",7),e._uU(3,"Numero pratica "),e.TgZ(4,"span"),e._uU(5),e.qZA()(),e.TgZ(6,"div",8)(7,"div",9)(8,"div",10)(9,"div",11),e._uU(10,"Data creazione"),e.qZA(),e.TgZ(11,"div",12),e._uU(12),e.qZA()()(),e.TgZ(13,"div",9)(14,"div",10)(15,"div",11),e._uU(16,"Data chiusura"),e.qZA(),e.TgZ(17,"div",12),e._uU(18),e.qZA()()(),e.TgZ(19,"div",9)(20,"div",10)(21,"div",11),e._uU(22,"Esito richiesta"),e.qZA(),e.TgZ(23,"div",12),e._uU(24),e.ALo(25,"uppercase"),e.qZA()()()()(),e.TgZ(26,"div",13)(27,"div",14)(28,"div",15),e._uU(29,"Descrizione estesa"),e.qZA(),e.TgZ(30,"div",16),e._uU(31),e.qZA()(),e.YNc(32,Ht,6,1,"div",17),e.qZA()()),2&n){const o=r.$implicit;e.Q6J("ngClass",e.VKq(9,Yt,"Chiuso"===o.state)),e.xp6(5),e.Oqu(o.number),e.xp6(7),e.Oqu(o.createdOn),e.xp6(6),e.Oqu(o.closedAt&&"Invalid Date"!==o.closedAt?o.closedAt:"-"),e.xp6(6),e.Oqu(e.lcZ(25,7,o.state)),e.xp6(7),e.Oqu(o.description),e.xp6(1),e.Q6J("ngIf",o.attachments&&o.attachments.length>0)}}function Vt(n,r){if(1&n&&(e.ynx(0),e.YNc(1,Bt,33,11,"div",4),e.BQk()),2&n){const o=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",o.incidents)}}function Gt(n,r){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Vt,2,1,"ng-container",2),e.qZA()),2&n){const o=e.oxw(2),t=e.MAs(4);e.xp6(1),e.Q6J("ngIf",!o.displayErrorDetails)("ngIfElse",t)}}function jt(n,r){if(1&n&&(e.ynx(0),e.YNc(1,Gt,2,2,"div",1),e.BQk()),2&n){const o=e.oxw();e.xp6(1),e.Q6J("ngIf",o.incidents)}}function Kt(n,r){if(1&n&&e._UZ(0,"app-error-message",25),2&n){const o=e.oxw();e.Q6J("type",o.errorMessageType)}}let $t=(()=>{const r=class{constructor(t,i){this.tableHelper=t,this.supportService=i,this.displayErrorMessage=!1,this.errorMessageType="empty",this.incidents=[],this._destroy$=new g.x,this.attachments=[],this.displayErrorDetails=!1,this.loading=!1,this.isLoading=!1}ngOnInit(){this.displayErrorMessage=!1,this.requestData()}mapTableData(t){this.tableHistoryData=this.tableHelper.createDropdownTableData(D.y.MANAGEDSERVICESHISTORY,t)}requestData(){this.loading=!0,this.supportService.getTicket().pipe((0,m.R)(this._destroy$.asObservable())).subscribe({next:t=>{this.incidents=t.data.incidents,this.incidents&&this.incidents.length>0?(this.incidents.map(i=>{i.createdOn=new Date(i.createdOn).toLocaleDateString("it-IT",{day:"2-digit",month:"2-digit",year:"numeric"}),i.closedAt=new Date(i.closedAt).toLocaleDateString("it-IT",{day:"2-digit",month:"2-digit",year:"numeric"})}),this.mapTableData(this.incidents),this.incidents.forEach(i=>{this.getExpandableData(i)})):(this.displayErrorMessage=!0,this.errorMessageType="empty_ticket"),this.loading=!1},error:t=>{this.displayErrorMessage=!0,this.loading=!1}})}getExpandableData(t){this.displayErrorDetails=!1,this.isLoading=!0,this.supportService.getTicketAttachment({incidentId:t.incidentId}).pipe((0,m.R)(this._destroy$.asObservable())).subscribe({next:a=>{t.attachments=a.attachmentList,this.isLoading=!1},error:a=>{this.displayErrorDetails=!0,this.isLoading=!1}})}downloadAttachment(t,i){this.supportService.getTicketAttachmentDownload(t).pipe((0,m.R)(this._destroy$.asObservable())).subscribe({next:c=>{const d=new Blob([c],{type:"blob"}),_=document.createElement("a");_.href=window.URL.createObjectURL(d),_.download=`${i}`,_.click()},error:c=>{console.log("Non \xe8 possibile scaricare i dati.")}})}};let n=r;return r.\u0275fac=function(i){return new(i||r)(e.Y36(B.S),e.Y36(O.g))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-managed-services-history"]],decls:5,vars:3,consts:[[1,"main-pages-content","managed-services_history"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["error_banner",""],["class","boxIncident",3,"ngClass",4,"ngFor","ngForOf"],[1,"boxIncident",3,"ngClass"],[1,"boxHeader"],[1,"headerItem"],[1,"row","separator"],[1,"box"],[1,"itemBox","no-wrap"],[1,"itemRequest"],[1,"itemReply"],[1,"incidentsDetails"],[1,"row","request-description"],[1,"titleDescription"],[1,"itemReply","request-description_textArea"],["class","attachments-container",4,"ngIf"],[1,"attachments-container"],[1,"titleAttachments"],[1,"row"],[1,"history_downloadAttachment"],["class","history_attachment",4,"ngFor","ngForOf"],[1,"history_attachment"],[3,"click"],[3,"type"]],template:function(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,zt,1,0,"app-spinner",1),e.YNc(2,jt,2,1,"ng-container",2),e.YNc(3,Kt,1,1,"ng-template",null,3,e.W1O),e.qZA()),2&i){const c=e.MAs(4);e.xp6(1),e.Q6J("ngIf",a.loading),e.xp6(1),e.Q6J("ngIf",!a.displayErrorMessage&&!a.loading)("ngIfElse",c)}},dependencies:[u.mk,u.sg,u.O5,ee.O,w.H,u.gd],styles:[".managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%]{border-radius:1.6rem;border:.2rem dashed #A5A6A7;margin-bottom:2rem}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .boxHeader[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;padding-right:2rem}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .boxHeader[_ngcontent-%COMP%] .headerItem[_ngcontent-%COMP%]{width:50%;padding:2.7rem;font-size:1.6rem}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .boxHeader[_ngcontent-%COMP%] .headerItem[_ngcontent-%COMP%]:first-of-type{border-radius:1.6rem 1.6rem 0 0;background:url(ondaOrange.4bfb42504274ee4f.svg);background-size:auto;color:#fff}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .boxHeader[_ngcontent-%COMP%] .headerItem[_ngcontent-%COMP%]:first-of-type span[_ngcontent-%COMP%]{font-weight:700}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .boxHeader[_ngcontent-%COMP%] .headerItem[_ngcontent-%COMP%]:nth-of-type(2){color:#0044e0;text-align:right}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .boxHeader[_ngcontent-%COMP%] .headerItem[_ngcontent-%COMP%]:nth-of-type(2) a{curs
1or:pointer}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .boxHeader[_ngcontent-%COMP%] .itemReply[_ngcontent-%COMP%]{font-weight:500}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .incidentsDetails[_ngcontent-%COMP%]{padding:2rem}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .incidentsDetails[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{font-size:1.6rem}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .incidentsDetails[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .itemBox[_ngcontent-%COMP%]{padding:1rem 0}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .incidentsDetails[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .itemBox[_ngcontent-%COMP%] .itemRequest[_ngcontent-%COMP%], .managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .incidentsDetails[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .itemBox[_ngcontent-%COMP%] .itemReply[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:300}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .incidentsDetails[_ngcontent-%COMP%] .row.request-description[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-size:1.6rem;font-weight:300}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .incidentsDetails[_ngcontent-%COMP%] .row.request-description[_ngcontent-%COMP%] .titleDescription[_ngcontent-%COMP%]{padding-bottom:2rem}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .incidentsDetails[_ngcontent-%COMP%] .row.request-description[_ngcontent-%COMP%] .request-description_textArea[_ngcontent-%COMP%]{text-wrap:wrap;background-color:#f4f4f4;padding:1.5rem;border-radius:1rem}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .incidentsDetails[_ngcontent-%COMP%] .row.separator[_ng
1content-%COMP%] .box[_ngcontent-%COMP%]:after{background:#F4F4F4}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .incidentsDetails[_ngcontent-%COMP%] .attachments-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .history_downloadAttachment[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:flex-start;flex-wrap:wrap;cursor:pointer}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .incidentsDetails[_ngcontent-%COMP%] .attachments-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .history_downloadAttachment[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#0044e0}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .incidentsDetails[_ngcontent-%COMP%] .attachments-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .history_downloadAttachment[_ngcontent-%COMP%] .history_attachment[_ngcontent-%COMP%]{width:25%}.managed-services_history[_ngcontent-%COMP%] .boxIncident[_ngcontent-%COMP%] .incidentsDetails[_ngcontent-%COMP%] .attachments-container[_ngcontent-%COMP%] .titleAttachments[_ngcontent-%COMP%]{font-size:1.6rem;text-transform:uppercase;padding-top:3.5rem;padding-bottom:2rem;font-weight:500}.managed-services_history[_ngcontent-%COMP%] .boxIncident.closedIncident[_ngcontent-%COMP%]{opacity:.4}"]}),n})();const Wt=function(n){return{selected:n}};function Xt(n,r){if(1&n){const o=e.EpF();e.ynx(0),e.TgZ(1,"div",8)(2,"input",9),e.NdJ("click",function(){const a=e.CHM(o).$implicit,c=e.oxw();return e.KtG(c.selectTab(a.requestType))}),e.qZA(),e.TgZ(3,"label",10),e._UZ(4,"img",11),e._uU(5),e.ALo(6,"uppercase"),e.qZA()(),e.BQk()}if(2&n){const o=r.$implicit,t=r.index,i=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(7,Wt,o.requestType===i.selectedTab)),e.xp6(1),e.Q6J("id","tab"+t),e.xp6(1),e.Q6J("for","tab"+t),e.xp6(1),e.Q6J("src","assets/images/"+o.image+".svg",e.LSH),e.xp6(1),e.hij(" ",e.lcZ(6,5,o.label)," ")}}function ei(n,r){if(1&n){const o=e.EpF();e.TgZ(0,"div",12)(1,"app-managed-services-new-ticket",13),e.NdJ("switchToHistory",function(i){e.CHM(o);const a=e.oxw();return e.KtG(a.onNewTicketSwitchTab(i))}),e.qZA()()}}function ti(n,r){1&n&&(e.TgZ(0,"div",12),e._UZ(1,"app-managed-services-history"),e.qZA())}let ii=(()=>{const r=class{constructor(){this.tabsConfig=[{label:"Nuovo ticket",requestType:"NEW_TICKET",image:"managed-service/new-ticket"},{label:"Storico ticket",requestType:"HISTORY_TICKET",image:"managed-service/history"}]}ngOnInit(){this.selectedTab="NEW_TICKET"}selectTab(t){this.selectedTab=t}onNewTicketSwitchTab(t){this.selectTab(t)}};let n=r;return r.\u0275fac=function(i){return new(i||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-managed-services"]],viewQuery:function(i,a){if(1&i&&e.Gf(ie,5),2&i){let c;e.iGM(c=e.CRH())&&(a.newTicketComponent=c.first)}},decls:13,vars:3,consts:[[1,"main-pages-content","managed-services"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],[1,"customTabs"],[1,"tab"],[4,"ngFor","ngForOf"],["class","child-component",4,"ngIf"],[1,"tabs__item",3,"ngClass"],["type","radio","name","tabs",3,"id","click"],[1,"labelTab",3,"for"],["alt","img",1,"icoTabs",3,"src"],[1,"child-component"],[3,"switchToHistory"]],template:function(i,a){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"app-breadcrumbs"),e.TgZ(3,"h1",2),e._uU(4,"MANAGED SERVICES"),e.qZA(),e.TgZ(5,"h2",3),e._uU(6,"In questa sezione puoi inserire una richiesta di variazione o una segnalazione di un problema su uno dei tuoi servizi. Inoltre puoi visualizzare lo storico delle richieste e segnalazioni inviate."),e.qZA()(),e.TgZ(7,"div",4)(8,"div",5),e.YNc(9,Xt,7,9,"ng-container",6),e.qZA(),e.ynx(10),e.YNc(11,ei,2,0,"div",7),e.YNc(12,ti,2,0,"div",7),e.BQk(),e.qZA()()),2&i&&(e.xp6(9),e.Q6J("ngForOf",a.tabsConfig),e.xp6(2),e.Q6J("ngIf","NEW_TICKET"===a.selectedTab),e.xp6(1),e.Q6J("ngIf","HISTORY_TICKET"===a.selectedTab))},dependencies:[u.mk,u.sg,u.O5,U.n,ie,$t,u.gd],styles:['.managed-services[_ngcontent-%COMP%] .customTabs[_ngcontent-%COMP%]{display:flex;flex-direction:column;column-gap:.2rem;margin-bottom:6rem}@media screen and (max-width: 767px){.managed-services[_ngcontent-%COMP%] .customTabs[_ngcontent-%COMP%]{column-gap:0;width:calc(100vw - 3.6rem)}}.managed-services[_ngcontent-%COMP%] .customTabs[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%]{display:flex}.managed-services[_ngcontent-%COMP%] .customTabs[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] .tabs__item[_ngcontent-%COMP%]{position:relative;opacity:.6;border-radius:1.6rem 1.6rem 0 0;border-bottom:none;box-shadow:0 2px 24px #919191a6}.managed-services[_ngcontent-%COMP%] .customTabs[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] .tabs__item[_ngcontent-%COMP%]:after{z-index:3;content:"";position:absolute;bottom:-1rem;width:100%;height:2.5rem;left:0;background-color:#fff}.managed-services[_ngcontent-%COMP%] .customTabs[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] .tabs__item.selected[_ngcontent-%COMP%]{background-color:#fff;opacity:1}.managed-services[_ngcontent-%COMP%] .customTabs[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] .tabs__item[_ngcontent-%COMP%] .labelTab[_ngcontent-%COMP%]{flex:1;width:16rem;height:15rem;display:flex;flex-direction:column;row-gap:.5rem;justify-content:flex-start;align-items:center;position:relative;text-align:center;border-radius:1.6rem 1.6rem 0 0;background-color:#fff;padding:1rem;font-size:1.4rem;font-weight:500;order:1;cursor:pointer;z-index:1;transition:.4s}@media screen and (max-width: 1200px){.managed-services[_ngcontent-%COMP%] .customTabs[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] .tabs__item[_ngcontent-%COMP%] .labelTab[_ngcontent-%COMP%]{height:12rem}}@media screen and (max-width: 1023px){.managed-services[_ngcontent-%COMP%] .customTabs[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] .tabs__item[_ngcontent-%COMP%] .labelTab[_ngcontent-%COMP%]{padding:1rem .5rem;font-size:1.2rem}}@media screen and (max-width: 767px){.managed-services[_ngcontent-%COMP%] .customTabs[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] .tabs__item[_ngcontent-%COMP%] .labelTab[_ngcontent-%COMP%]{flex:1 33%;width:100%;max-width:33.3333333333%;height:5rem;margin-right:0;margin-top:0;border-radius:0;justify-content:center;order:2}}@media screen and (max-width: 550px){.managed-services[_ngcontent-%COMP%] .customTabs[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] .tabs__item[_ngcontent-%COMP%] .labelTab[_ngcontent-%COMP%]{flex:1 100%;width:100%;max-width:unset;height:3rem}}.managed-services[_ngcontent-%COMP%] .customTabs[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] .tabs__item[_ngcontent-%COMP%] .labelTab[_ngcontent-%COMP%] .icoTabs[_ngcontent-%COMP%]{max-width:8rem;max-height:7.5rem;padding-bottom:1rem;display:block}@media screen and (max-width: 1200px){.managed-services[_ngcontent-%COMP%] .customTabs[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] .tabs__item[_ngcontent-%COMP%] .labelTab[_ngcontent-%COMP%] .icoTabs[_ngcontent-%COMP%]{max-width:5rem;max-height:4.5rem}}@media screen and (max-width: 767px){.managed-services[_ngcontent-%COMP%] .customTabs[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] .tabs__item[_ngcontent-%COMP%] .labelTab[_ngcontent-%COMP%] .icoTabs[_ngcontent-%COMP%]{display:none}}.managed-services[_ngcontent-%COMP%] .customTabs[_ngcontent-%COMP%] .tab[_ngcontent-%COMP%] .tabs__item[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{display:none}
1.managed-services[_ngcontent-%COMP%] .child-component[_ngcontent-%COMP%]{padding:3.2rem 0;border-top-right-radius:2rem;border-bottom-right-radius:2rem;border-bottom-left-radius:2rem;position:relative;z-index:2}.managed-services[_ngcontent-%COMP%] .tabs__item.selected[_ngcontent-%COMP%], .managed-services[_ngcontent-%COMP%] .child-component[_ngcontent-%COMP%]{box-shadow:0 2px 24px #919191a6;background-color:#fff}']}),n})();var ni=l(2340);let oi=(()=>{const r=class{constructor(){}ngOnInit(){this.redirectToAssurance()}redirectToAssurance(){window.location.assign(ni.N.assuranceUrl)}};let n=r;return r.\u0275fac=function(i){return new(i||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-assurance"]],decls:7,vars:0,consts:[[1,"main-pages-content","assurance"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"]],template:function(i,a){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"app-breadcrumbs"),e.TgZ(3,"h1",2),e._uU(4,"Assistenza Linee Fisse"),e.qZA(),e.TgZ(5,"h2",3),e._uU(6,"Stai per essere rendirizzato alla pagina dedicata..."),e.qZA()()())},dependencies:[U.n]}),n})();var ai=l(9646);const ri=[{path:"supporto/richieste-e-segnalazioni",component:St,canActivate:[(()=>{const r=class{constructor(t,i){this.userUtilService=t,this.router=i}canActivate(t,i){return this.router.navigateByUrl("presto-disponibile").then(a=>console.log("Coming Soon... Redirect to coming-soon page!")),(0,ai.of)(!1)}};let n=r;return r.\u0275fac=function(i){return new(i||r)(e.LFG(M.r),e.LFG(f.F0))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),n})()]},{path:"supporto/smart-area",component:Nt},{path:"supporto/managed-services",component:ii},{path:"supporto/fixed-assurance",component:oi}];let si=(()=>{const r=class{};let n=r;return r.\u0275fac=function(i){return new(i||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[f.Bz.forChild(ri),f.Bz]}),n})();var ne=l(1206),ci=l(7084),li=l(3162),mi=l(455),di=l(3848),pi=l(266),ui=l(4466),_i=l(9301),fi=l(118);let gi=(()=>{const r=class{};let n=r;return r.\u0275fac=function(i){return new(i||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({providers:[I.o,_i.f,z.FA,O.g,fi.O,ne._t],imports:[u.ez,si,R.c,V.p9,ci.To,di.Nh,E.LD,ui.m,s.u5,s.UX,mi.rP,X.Ps,ne._t,pi.AV,z.FA,li.Cv]}),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.