1"use strict";(self.webpackChunkcli_stable=self.webpackChunkcli_stable||[]).push([[686],{79686:(Y,h,o)=>{o.r(h),o.d(h,{RicaricheModule:()=>U});var d=o(36895),s=o(24006),p=o(83327),e=o(94650),f=o(39281),m=o(87486),u=o(54883),_=o(99826),b=o(39139),T=o(88161),C=o(59549),M=o(3238),v=o(84385),l=o(59194);function R(t,c){1&t&&e._UZ(0,"app-spinner")}function O(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"app-elenco-ricariche",5),e.NdJ("closeElencoRicariche",function(r){e.CHM(n);const a=e.oxw();return e.KtG(a.onCloseElencoRicariche(r))}),e.ALo(1,"translate"),e.qZA()}if(2&t){const n=e.oxw();e.Q6J("ElencoRicaricheTitoloMessaggio",e.lcZ(1,2,"RicaricheMessaggio"))("cardRechargeable",n.cardRechargeable)}}function Z(t,c){if(1&t&&(e.TgZ(0,"div",13),e._UZ(1,"strong",14),e.ALo(2,"translate"),e._UZ(3,"span",14),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",e.lcZ(2,2,"recharge.alertBox.title"),e.oJD),e.xp6(2),e.Q6J("innerHTML",n.theErrors.error_description,e.oJD)}}function S(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"div",15)(1,"div",16)(2,"button",17),e.NdJ("click",function(){e.CHM(n);const r=e.oxw(2);return e.KtG(r.pageRecharge())}),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()()()}2&t&&(e.xp6(4),e.Oqu(e.lcZ(5,1,"cards.button.pageRecharge")))}function P(t,c){1&t&&(e.TgZ(0,"div"),e._UZ(1,"i",21),e.TgZ(2,"span",22),e._uU(3),e.ALo(4,"translate"),e.qZA()()),2&t&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"recharge.waitingSearchCard")," "))}function A(t,c){if(1&t&&(e.TgZ(0,"mat-option",27)(1,"div",28)(2,"span",29),e._uU(3),e.qZA(),e.TgZ(4,"span",30),e._uU(5),e.qZA(),e._uU(6," - "),e.TgZ(7,"span",31),e._uU(8),e.qZA(),e.TgZ(9,"div",32)(10,"span",33),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.TgZ(13,"span",33),e._uU(14),e.qZA()()()()),2&t){const n=c.$implicit;e.Q6J("value",n),e.xp6(3),e.Oqu(n.cognome),e.xp6(2),e.Oqu(n.nome),e.xp6(3),e.AsE("",n.saleDeviceID," ",n.serialNo,""),e.xp6(3),e.hij(" ",e.lcZ(12,7,"table.columnName.descriptionRecharge"),""),e.xp6(3),e.hij(" ",n.descrizione,"")}}function y(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"form")(1,"mat-form-field",23)(2,"mat-label"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-select",24,25),e.NdJ("valueChange",function(r){e.CHM(n);const a=e.oxw(3);return e.KtG(a.onChangeSelectTSC(r))}),e.TgZ(7,"mat-select-trigger"),e._uU(8),e.ALo(9,"translate"),e.TgZ(10,"strong"),e._uU(11),e.qZA()(),e.YNc(12,A,15,9,"mat-option",26),e.qZA()()()}if(2&t){const n=e.oxw(3);e.xp6(3),e.Oqu(e.lcZ(4,4,"recharge.cardSelected.placeholder")),e.xp6(5),e.hij("",e.lcZ(9,6,"recharge.cardSelected.cardSelected")," "),e.xp6(3),e.Oqu(n.tessera),e.xp6(1),e.Q6J("ngForOf",n.tessereRicaricabili)}}function J(t,c){if(1&t&&(e.TgZ(0,"div",18)(1,"table",19)(2,"td",20),e.YNc(3,P,5,3,"div",1),e.YNc(4,y,13,8,"form",1),e.qZA()()()),2&t){const n=e.oxw(2);e.xp6(3),e.Q6J("ngIf",!n.isLoadingTSC),e.xp6(1),e.Q6J("ngIf",n.isLoadingTSC)}}function L(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"div",6)(1,"div",7),e._UZ(2,"div",8),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Z,4,4,"div",9),e.YNc(5,S,6,3,"div",10),e._UZ(6,"br"),e.YNc(7,J,5,2,"div",11),e.TgZ(8,"app-mycard",12),e.NdJ("OnConfirm",function(r){e.CHM(n);const a=e.oxw();return e.KtG(a.OnConfirmMyCard(r))}),e.qZA()()}if(2&t){const n=e.oxw();e.xp6(2),e.Q6J("innerHTML",e.lcZ(3,5,"recharge.info"),e.oJD),e.xp6(2),e.Q6J("ngIf",n.errorRechargebleCards),e.xp6(1),e.Q6J("ngIf",n.errorRechargebleCards),e.xp6(2),e.Q6J("ngIf",n.existsTSC),e.xp6(1),e.Q6J("SetValue",n.SetValueMyCard)}}let E=(()=>{class t{constructor(n,i,r,a,g){this._router=n,this._ricaricheService=i,this._tessereService=r,this._translateService=a,this._comunicatorService=g,this.ElencoRicaricheTitoloMessaggio="Elenco dei contratti di Viaggio",this.isLoadingSpinner=!1,this.isErrorContrattiOrEmpty=!1,this.isLoadingTSC=!1,this.existsTSC=!0,this.SetValueMyCard=new e.vpe,this.getRechargebleCards(),this.subscription=this._comunicatorService.receiveMessage().subscribe(Q=>{Q.step>5&&(this.cardRechargeable=void 0,this.getRechargebleCards())})}ngOnInit(){}getRechargebleCards(){this.errorRechargebleCards=void 0,this.isLoadingTSC=!1,this.existsTSC=!0,this.tessereRicaricabili=void 0,this._tessereService.ElencoTessereRicaricabili().subscribe(n=>
1{if(null===n.item1)return this.errorRechargebleCards=n.item2,this.isLoadingTSC=!0,this.existsTSC=!1,void this._translateService.get("recharge.error").subscribe(i=>{this.theErrors=n.item2,this.theErrors.error_description=i[n.item2.error]+" - "+n.item2.error+" "+n.item2.error_description});this.tessereRicaricabili=n.item1,this.isLoadingTSC=!0,this.existsTSC=this.tessereRicaricabili.length>0},n=>{this.errorRechargebleCards=n,this.isLoadingTSC=!0,this.existsTSC=!1,this._translateService.get("recharge.error").subscribe(i=>{this.theErrors=n,this.theErrors.error_description=i[n.error]+" - "+n.error+" "+n.error_description})})}pageRecharge(){this.getRechargebleCards()}onChangeSelectTSC(n){this.tessera=n.cognome+" "+n.nome+" - "+n.saleDeviceID+" "+n.serialNo+" "+n.descrizione,this.SetValueMyCard.next(n),setTimeout(function(){const i=document.querySelector("#check-attivazione");i&&i.scrollIntoView({behavior:"smooth"})},300)}onCloseElencoRicariche(n){n&&("empty-rates"===n.status?this._translateService.get("recharge.error.200.01",{cardNumber:`${this.cardRechargeable.saleDeviceID} - ${this.cardRechargeable.serialNo}`}).subscribe(i=>{this.modal={title:"Attenzione",body:i,type:u.w.INFO}}):this._translateService.get("recharge.error").subscribe(i=>{this.modal={title:"Errore",body:i[n.error],type:u.w.ALERT}})),this.cardRechargeable=void 0}onCloseInfoModal(n){this.modal=void 0}OnConfirmMyCard(n){this.cardRechargeable=n}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(e.Y36(p.F0),e.Y36(f.T),e.Y36(m.G),e.Y36(_.sK),e.Y36(b.Tu))};static#n=this.\u0275cmp=e.Xpm({type:t,selectors:[["app-ricariche"]],features:[e._Bn([f.T,m.G])],decls:7,vars:8,consts:[[3,"modal","closeInfoModal"],[4,"ngIf"],[3,"heading","icon"],["showListRecharges",""],["class","explanation-container",4,"ngIf","ngIfElse"],[3,"ElencoRicaricheTitoloMessaggio","cardRechargeable","closeElencoRicariche"],[1,"explanation-container"],[1,"row"],["data-html","true",1,"col-md-12","divjustify",3,"innerHTML"],["class","alert alert-warning col-md-8 offset-2",4,"ngIf"],["class","col-md-8 offset-2",4,"ngIf"],["class","container",4,"ngIf"],[3,"SetValue","OnConfirm"],[1,"alert","alert-warning","col-md-8","offset-2"],[3,"innerHTML"],[1,"col-md-8","offset-2"],[1,"col-lg-5","col-xs-12","col-sm-12"],[1,"green","btn-block","btn-lg","pointer",3,"click"],[1,"container"],[1,"table","table-bordered"],[1,"col-md-12","saved-cards"],[1,"fa","fa-refresh","fa-2x","fa-spin","isLoading"],[1,"loading-label"],[1,"full-width"],["name","FavoriteTSC",1,"favorite-card-select",3,"valueChange"],["select",""],["class","favorite-card-option",3,"value",4,"ngFor","ngForOf"],[1,"favorite-card-option",3,"value"],[1,"favorite-card-container"],[1,"favorite-card","name"],[1,"favorite-card","surname"],[1,"serial-number"],[1,"favorite-card","desc"],[1,"favorite-card"]],template:function(i,r){if(1&i&&(e.TgZ(0,"app-infomodal",0),e.NdJ("closeInfoModal",function(g){return r.onCloseInfoModal(g)}),e.qZA(),e.YNc(1,R,1,0,"app-spinner",1),e._UZ(2,"app-page-header",2),e.ALo(3,"translate"),e.YNc(4,O,2,4,"ng-template",null,3,e.W1O),e.YNc(6,L,9,7,"div",4)),2&i){const a=e.MAs(5);e.Q6J("modal",r.modal),e.xp6(1),e.Q6J("ngIf",r.isLoadingSpinner),e.xp6(1),e.Q6J("heading",e.lcZ(3,6,"recharge.title"))("icon","fa-th-list"),e.xp6(4),e.Q6J("ngIf",!r.cardRechargeable)("ngIfElse",a)}},dependencies:[d.sg,d.O5,s._Y,s.JL,s.F,T.q,C.KE,C.hX,M.ey,v.gD,v.$L,l.N5,l.Sb,l.gJ,l.az,_.X$],styles:['.dimension-form[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n.sale-device-id[_ngcontent-%COMP%] {\n width: 25%;\n}\n\n.serial-no[_ngcontent-%COMP%] {\n width: 70%;\n}\n\n.full-width[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n.verticalAlign[_ngcontent-%COMP%] {\n vertical-align: middle;\n}\n\n\nselect[_ngcontent-%COMP%] {\n padding: 3px;\n margin: 0;\n border-radius: 4px;\n box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;\n background: #f8f8f8;\n color: #888;\n border: none;\n outline: none;\n display: inline-block;\n -moz-appearance: none;\n cursor: pointer;\n}\n\nlabel[_ngcontent-%COMP%] {\n position: relative;\n}
1\n\nlabel[_ngcontent-%COMP%]:after {\n content: "<>";\n font: 11px "Consolas", monospace;\n color: #aaa;\n transform: rotate(90deg);\n right: 8px;\n top: 2px;\n padding: 0 0 2px;\n border-bottom: 1px solid #ddd;\n position: absolute;\n pointer-events: none;\n}\n\nlabel[_ngcontent-%COMP%]:before {\n content: "";\n right: 6px;\n top: 0px;\n width: 20px;\n height: 20px;\n background: #f8f8f8;\n position: absolute;\n pointer-events: none;\n display: block;\n}\n\n.divjustify[_ngcontent-%COMP%] {\n text-align: justify;\n text-justify: inter-word;\n}\n\n.has-warning[_ngcontent-%COMP%] {\n color: red;\n font-size: small;\n}\n\n[_nghost-%COMP%] input.md-input-element[_ngcontent-%COMP%] {\n color: pink;\n font-size: 18px;\n}\n\n.textColorBlue[_ngcontent-%COMP%] {\n color: blue;\n font-size: 18px;\n}\n\n.modal-footer[_ngcontent-%COMP%] {\n border: none;\n}\n\n.modal-footer[_ngcontent-%COMP%] {\n border: none;\n}\n\n.explanation-container[_ngcontent-%COMP%] {\n margin-left: 7px;\n}\n\n.table-bordered[_ngcontent-%COMP%] {\n border: 1px solid #eceeef;\n padding-bottom: 25px;\n padding-top: 25px;\n box-shadow: 0 5px 7px -6px #353535;\n border-radius: 6px;\n}\n\n.saved-cards[_ngcontent-%COMP%] {\n padding: 45px;\n padding-bottom: 20px;\n padding-top: 23px;\n}\n\n.loading-label[_ngcontent-%COMP%] {\n margin-top: -29px;\n margin-left: 38px;\n display: block;\n}\n\n.favorite-card-container[_ngcontent-%COMP%] .favorite-card[_ngcontent-%COMP%] {\n font-size: 17px;\n}\n.favorite-card-container[_ngcontent-%COMP%] .name[_ngcontent-%COMP%], .favorite-card-container[_ngcontent-%COMP%] .surname[_ngcontent-%COMP%] {\n display: inline-block;\n font-weight: bold;\n}\n.favorite-card-container[_ngcontent-%COMP%] .surname[_ngcontent-%COMP%] {\n margin-left: 5px;\n}\n.favorite-card-container[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%] {\n margin-top: 7px;\n}\n\n.favorite-card-option[_ngcontent-%COMP%] {\n height: 80px !important;\n border-bottom: 1px solid rgba(234, 234, 234, 0.7294117647);\n}\n\n@media screen and (max-width: 500px) {\n .saved-cards[_ngcontent-%COMP%] {\n padding: 13px;\n }\n .favorite-card-select[_ngcontent-%COMP%] {\n min-width: 0;\n width: calc(100% - 30px);\n }\n}\n\n@media screen and (-webkit-min-device-pixel-ratio: 0) {\n select[_ngcontent-%COMP%] {\n padding-right: 18px;\n }\n}']})}return t})();var x=o(77243);const I=[{path:"",component:E,canActivate:[x.a1]}];let w=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#n=this.\u0275mod=e.oAB({type:t});static#t=this.\u0275inj=e.cJS({imports:[p.Bz.forChild(I),p.Bz]})}return t})();var N=o(2469);let U=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#n=this.\u0275mod=e.oAB({type:t});static#t=this.\u0275inj=e.cJS({imports:[d.ez,s.u5,s.UX,w,x.$n,N.m8]})}return t})()}}]);
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.