1!function(){function e(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function n(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}(self.webpackChunkskipres=self.webpackChunkskipres||[]).push([[4343],{54343:function(n,i,r){"use strict";r.r(i),r.d(i,{BuyTicketPageModule:function(){return N}});var o=r(38583),a=r(3679),c=r(26623),u=r(78094),s=r(64762),l=r(87415),p=r(77108),f=r(88720),d=r(53198),h=r(5469),g=r(3804),v=r(87764);function T(e,n){1&e&&(f.TgZ(0,"div",14),f.TgZ(1,"div",15),f._UZ(2,"div",16),f._UZ(3,"div",17),f.qZA(),f.qZA())}function m(e,n){1&e&&(f.TgZ(0,"div",18),f._UZ(1,"ion-icon",19),f._UZ(2,"br"),f.TgZ(3,"span"),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.qZA()),2&e&&(f.xp6(4),f.Oqu(f.lcZ(5,1,"NOT_TICKET_ENABLE")))}function Z(e,n){if(1&e&&(f.TgZ(0,"div",33),f._uU(1),f.qZA()),2&e){var t=f.oxw().$implicit;f.xp6(1),f.AsE(" ",t.opName," ",t.opSurname," ")}}function x(e,n){1&e&&(f.TgZ(0,"div",33),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&e&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"QUEUE_OF_DAY")," "))}function k(e,n){if(1&e&&(f.TgZ(0,"h1",34),f._uU(1),f.qZA()),2&e){var t=f.oxw().$implicit;f.xp6(1),f.AsE("",t.letter,"",t.current,"")}}function A(e,n){1&e&&(f.TgZ(0,"div",35),f._UZ(1,"ion-icon",36),f._UZ(2,"br"),f.qZA())}function S(e,n){1&e&&(f.TgZ(0,"ion-button",37),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&e&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"END_QUEUE")," "))}function I(e,n){if(1&e){var t=f.EpF();f.TgZ(0,"ion-button",38),f.NdJ("click",function(){f.CHM(t);var e=f.oxw().$implicit;return f.oxw(2).sureBuyTicket(e)}),f._UZ(1,"ion-icon",6),f._uU(2),f.ALo(3,"translate"),f.qZA()}2&e&&(f.xp6(2),f.hij(" ",f.lcZ(3,1,"OFFER_TICKET")," "))}function O(e,n){if(1&e){var t=f.EpF();f.TgZ(0,"ion-button",39),f.NdJ("click",function(){f.CHM(t);var e=f.oxw().$implicit;return f.oxw(2).viewTicket(e.virtualQueueItem)}),f._UZ(1,"ion-icon",40),f._uU(2),f.ALo(3,"translate"),f.qZA()}2&e&&(f.xp6(2),f.hij(" ",f.lcZ(3,1,"VIEW_TICKET")," "))}function b(e,n){if(1&e){var t=f.EpF();f.TgZ(0,"ion-button",41),f.NdJ("click",function(){f.CHM(t);var e=f.oxw().$implicit;return f.oxw(2).sureDelTicket(e)}),f._UZ(1,"ion-icon",42),f._uU(2),f.ALo(3,"translate"),f.qZA()}2&e&&(f.xp6(2),f.hij(" ",f.lcZ(3,1,"DEL_TICKET")," "))}function E(e,n){if(1&e&&(f.TgZ(0,"ion-slide"),f.TgZ(1,"ion-card",22),f.TgZ(2,"ion-card-content"),f.TgZ(3,"div"),f.YNc(4,Z,2,2,"div",23),f.YNc(5,x,3,3,"div",23),f.TgZ(6,"h5"),f._uU(7),f.ALo(8,"translate"),f.qZA(),f.YNc(9,k,2,2,"h1",24),f.YNc(10,A,3,0,"div",25),f._UZ(11,"ion-icon",26),f.TgZ(12,"p",27),f._uU(13),f.ALo(14,"translate"),f.TgZ(15,"b"),f._uU(16),f.ALo(17,"translate"),f.qZA(),f.qZA(),f.TgZ(18,"p",28),f._uU(19),f.ALo(20,"translate"),f.TgZ(21,"b"),f._uU(22),f.ALo(23,"translate"),f.qZA(),f.qZA(),f.YNc(24,S,3,3,"ion-button",29),f.YNc(25,I,4,3,"ion-button",30),f.YNc(26,O,4,3,"ion-button",31),f.YNc(27,b,4,3,"ion-button",32),f.qZA(),f.qZA(),f.qZA(),f.qZA()),2&e){var t=n.$implicit;f.xp6(4),f.Q6J("ngIf",t.opName&&t.opSurname),f.xp6(1),f.Q6J("ngIf",!t.opName&&!t.opSurname),f.xp6(2),f.Oqu(f.lcZ(8,15,"ACTUAL_NUMBER")),f.xp6(2),f.Q6J("ngIf",t.current),f.xp6(1),f.Q6J("ngIf",!t.current),f.xp6(3),f.hij("",f.lcZ(14,17,"TOTAL_TICKETS"),": "),f.xp6(3),f.AsE("",t.counter," ",f.lcZ(17,19,"PEOPLES"),""),f.xp6(3),f.hij("",f.lcZ(20,21,"IN_CODA"),": "),f.xp6(3),f.AsE("",t.counterActive," ",f.lcZ(23,23,"PEOPLES"),""),f.xp6(2),f.Q6J("ngIf",t.fullqueue),f.xp6(1),f.Q6J("ngIf",(!t.virtualQueueItem||t.virtualQueueItem&&t.virtualQueueItem.deleted)&&!t.fullqueue),f.xp6(1),f.Q6J("ngIf",t.virtualQueueItem&&!t.virtualQueueItem.deleted),f.xp6(1),f.Q6J("ngIf",t.virtualQueueItem&&!t.virtualQueueItem.deleted)}}function _(e,n){if(1&e&&(f.TgZ(0,"ion-slides",20),f.YNc(1,E,28,25,"ion-slide",21),f.qZA()),2&e){var t=f.oxw();f.Q6J("options",t.principal.slideOptionsTickets),f.xp6(1),f.Q6J("ngForOf",t.queues)}}var q,w,C=[{path:"",component:(q=function(){function n(t,i,r,o,a,c,u){e(this,n),this.principal=t,this.translateService=i,this.modalController=r,this.router=o,this.ticketService=a,this.navCtrl=c,this.alertController=u}return t(n,[{key:"ngOnInit",value:function(){var e=this;this.principal.start().then(function(n){e.load()})}},{key:"load",value:function(){if(!this.principal.currentOffice)return this.goHome(),!1;this.getQueues()}},{key:"getQueues",value:function(){var e=this;this.showSpinner=!0,this.ticketService.getListCode(this.principal.currentOffice.id).subscribe(function(n){n&&(e.queues=n.body,e.queues.forEac
1h(function(n){if(n.operatorId){var t=e.principal.currentOffice.operators.find(function(e){return e.id===n.operatorId});t&&(n.opName=t.name,n.opSurname=t.surname)}})),e.showSpinner=!1},function(n){var t=e.principal.checkErrorsRequest(n);e.principal.presentToastWithButton(t,"ERROR","danger","BOTTOM"),e.showSpinner=!1})}},{key:"sureBuyTicket",value:function(e){var n=this;this.principal&&this.principal.session?this.principal.checkCompletedProfile().then(function(t){t<5?n.goToSignup():n.sureAlertBuyTicket(e)}):this.goToSignup()}},{key:"sureAlertBuyTicket",value:function(e){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function n(){var t=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.alertController.create({header:this.translateService.instant("BOOK_POSITION"),message:this.translateService.instant("SURE_BOOK_POSITION"),buttons:[{text:this.translateService.instant("ANNULLA"),role:"cancel",handler:function(){}},{text:this.translateService.instant("CONFERMA"),handler:function(){t.goChooseService(e)}}]});case 2:n.sent.present();case 3:case"end":return n.stop()}},n,this)}))}},{key:"goChooseService",value:function(e){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function n(){var t,i=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.modalController.create({component:p.O,cssClass:"mediumModalSize",componentProps:{byTickets:!0}});case 2:return(t=n.sent).onDidDismiss().then(function(n){n&&n.data&&i.confirmBuyTiket(e,n.data)}),n.next=6,t.present();case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}},n,this)}))}},{key:"confirmBuyTiket",value:function(e,n){var t=this;this.showSpinner=!0,this.ticketService.requestTicket({idOffice:this.principal.currentOffice.id,idOperator:e.operatorId,idSoAss:n}).subscribe(function(e){e&&(t.viewTicket(e.body),t.principal.presentToastWithButton("TICKET_SUCCESS","","success","BOTTOM"),t.getQueues()),t.showSpinner=!1},function(e){var n=t.principal.checkErrorsRequest(e);t.principal.presentToastWithButton(n,"ERROR","danger","BOTTOM"),t.showSpinner=!1})}},{key:"viewTicket",value:function(e){this.router.navigate(["/ticket/"+e.id])}},{key:"sureDelTicket",value:function(e){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function n(){var t=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.alertController.create({header:this.translateService.instant("DEL_TICKET"),message:this.translateService.instant("SURE_DEL_TICKET"),buttons:[{text:this.translateService.instant("ANNULLA"),role:"cancel",handler:function(){}},{text:this.translateService.instant("CONFERMA"),handler:function(){t.confirmDelTiket(e)}}]});case 2:n.sent.present();case 3:case"end":return n.stop()}},n,this)}))}},{key:"confirmDelTiket",value:function(e){var n=this;this.showSpinner=!0,this.ticketService.delTicket(e.virtualQueueItem.id).subscribe(function(t){if(t){var i=t.body;n.principal.presentToastWithButton("TICKET_DEL_SUCCESS","","success","BOTTOM"),e.virtualQueueItem=i}n.showSpinner=!1},function(e){var t=n.principal.checkErrorsRequest(e);n.principal.presentToastWithButton(t,"ERROR","danger","BOTTOM"),n.showSpinner=!1})}},{key:"dismiss",value:function(){this.navCtrl.back()}},{key:"goHome",value:function(){this.navCtrl.navigateRoot("")}},{key:"goToSignup",value:function(){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.modalController.create({component:l.V,cssClass:"mediumModalSize",componentProps:{from:"CHECKOUT"}});case 2:return n=e.sent,e.next=5,n.present();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}},e,this)}))}}]),n}(),q.\u0275fac=function(e){return new(e||q)(f.Y36(d.x),f.Y36(h.sK),f.Y36(c.IN),f.Y36(u.F0),f.Y36(g.w),f.Y36(c.SH),f.Y36(c.Br))},q.\u0275cmp=f.Xpm({type:q,selectors:[["app-buy-ticket"]],decls:17,vars:7,consts:[[1,"ion-no-border"],["slot","start"],["fill","clear",3,"click"],["name","chevron-back-outline"],[1,"ion-text-center"],[1,"headerText"],["name","ticket-outline"],["slot","end"],[2,"--color","transparent"],["name","close"],[3,"scrollbar"],["class","splash",4,"ngIf"],["class","margin-top100 ion-text-center",4,"ngIf"],[3,"options",4,"ngIf"],[1,"splash"],[1,"spinner"],[1,"dot1"],[1,"dot2"],[1,"margin-top100","ion-text-center"],["name","ticket-outline",2,"font-size","200px"],[3,"options"],[4,"ngFor","ngForOf"],[1,"width-100","card","ion-text-center",2,"min-width","300px"],["class","padding-10 headerBox",4,"ngIf"],["class","animatedText1 text5em",4,"ngIf"],["class","padding-10",4,"ngIf"],["name","people",2,"font-size","45px"],[2,"margin-top","0px","padding-bottom","0px"],[2,"margin-top","0px","padding-bottom","20px"],["expand","full","color","danger","shape","round","fill","outline",4,"ngIf"],["expand","full","shape","round","color","secondary",3,"click",4,"ngIf"],["expand","full","shape","round",3,"click",4,"ngIf"],["expand","full","shape","round","color","danger",3,"click",4,"ngIf"],[1,"padding-10","headerBox"],[1,"animatedText1","text5em"],[1,"padding-10"],["name","ticket-outline",2,"font-size","150px"],["expand","full","color","danger","shape","round","fill","outline"],["expand","full","shape","round","color","secondary",3,"click"],["expand","full","shape","round",3,"click"],["name","eye-outline"],["expand","full","shape","round","color","danger",3,"click"],["name","trash-outline"]],template:function(e,n){1&e&&(f.TgZ(0,"ion-header",0),f.TgZ(1,"ion-toolbar"),f.TgZ(2,"ion-buttons",1),f.TgZ(3,"ion-button",2),f.NdJ("click",function(){return n.principal.backPage()}),f._UZ(4,"ion-icon",3),f.qZA(),f.qZA(),f.TgZ(5,"ion-title",4),f.TgZ(6,"h4",5),f._UZ(7,"ion-icon",6),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.qZA(),f.TgZ(10,"ion-buttons",7),f.TgZ(11,"ion-button",8),f._UZ(12,"ion-icon",9),f.qZA(),f.qZA(),f.qZA(),f.qZA(),f.TgZ(13,"ion-content",10),f.YNc(14,T,4,0,"div",11),f.YNc(15,m,6,3,"div",12),f.YNc(16,_,2,2,"ion-slides",13),f.qZA()),2&e&&(f.xp6(8),f.hij(" ",f.lcZ(9,5,"BOOK_POSITION_INFO")," "),f.xp6(5),f.Q6J("scrollbar",n.principal.isApp?"":n.principal.scrollbar),f.xp6(1),f.Q6J("ngIf",n.showSpinner),f.xp6(1),f.Q6J("ngIf",(null==n.queues?null:n.queues.length)<1&&!n.showSpinner),f.xp6(1),f.Q6J("ngIf",(null==n.queues?null:n.queues.length)>0&&!n.showSpinner))},directives:[c.Gu,c.sr,c.Sm,c.YG,c.gu,c.wd,c.W2,v.g,o.O5,c.Hr,o.sg,c.A$,c.PM,c.FN],pipes:[h.X$],styles:[""]}),q)}],U=function(){var n=t(function n(){e(this,n)});return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=f.oAB({type:n}),n.\u0275inj=f.cJS({imports:[[u.Bz.forChild(C)],u.Bz]}),n}(),y=r(35503),N=((w=t(function n(){e(this,n)})).\u0275fac=function(e){return new(e||w)},w.\u0275mod=f.oAB({type:w}),w.\u0275inj=f.cJS({imports:[[o.ez,a.u5,c.Pc,v.O,a.UX,h.aw.forChild(),y.D,U]]}),w)}}])}();
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.