mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
25 KiB
JavaScript
1 line
25 KiB
JavaScript
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[3559],{83142:function(t,e,n){"use strict";n.d(e,{u:function(){return p}});var i=n(64762),o=n(84765),r=n(28354),a=n(37716),c=n(35957),l=n(37556),s=n(39895),d=n(66096),g=n(3679);let p=(()=>{class t{constructor(t,e,n,i,o){this.modalController=t,this.authService=e,this.animationController=n,this.router=i,this.localstoreService=o,this.userLoginPreference="",this.loggeduser=e.ValidatedUser,console.log(this.loggeduser.RoleDescription),this.checkState()}ngOnInit(){}close(){this.modalController.dismiss()}addPin(){return(0,i.mG)(this,void 0,void 0,function*(){const t=t=>{const e=this.animationController.create().addElement(t.querySelector("ion-backdrop")).fromTo("opacity","0.01","var(--backdrop-opacity)"),n=this.animationController.create().addElement(t.querySelector(".modal-wrapper")).keyframes([{offset:0,opacity:"1",right:"-100%"},{offset:1,opacity:"1",right:"0px"}]);return this.animationController.create().addElement(t).easing("ease-out").duration(500).addAnimation([e,n])};(yield this.modalController.create({enterAnimation:t,leaveAnimation:e=>t(e).direction("reverse"),component:r.W,cssClass:"model profile-modal",componentProps:{}})).present()})}addFingerprint(){return(0,i.mG)(this,void 0,void 0,function*(){const t=t=>{const e=this.animationController.create().addElement(t.querySelector("ion-backdrop")).fromTo("opacity","0.01","var(--backdrop-opacity)"),n=this.animationController.create().addElement(t.querySelector(".modal-wrapper")).keyframes([{offset:0,opacity:"1",right:"-100%"},{offset:1,opacity:"1",right:"0px"}]);return this.animationController.create().addElement(t).easing("ease-out").duration(500).addAnimation([e,n])};(yield this.modalController.create({enterAnimation:t,leaveAnimation:e=>t(e).direction("reverse"),component:o.a,cssClass:"model profile-modal",componentProps:{}})).present()})}logout(){window.localStorage.clear(),setTimeout(()=>{window.location.pathname="/",location.reload()},1e3)}LoginPreferenceMethod(t){let e=this.localstoreService.get("UserData",{});e.hasOwnProperty("loginPreference")&&e.loginPreference!=t?t&&(e.loginPreference=t):e.loginPreference="none",this.localstoreService.set("UserData",e)}checkState(){let t=this.localstoreService.get("UserData",{});this.userLoginPreference=t.hasOwnProperty("loginPreference")?t.loginPreference:""}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(c.IN),a.Y36(l.e),a.Y36(c.vB),a.Y36(s.F0),a.Y36(d.L))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-edit-profile"]],decls:57,vars:5,consts:[[1,"bg-blue"],[1,"main-content","width-100","overflow-y-auto","height-100"],[1,"profile-header","width-100"],[1,"div-logo","d-md-none"],[1,"logo","height-fit-content"],["src","assets/images/logo-no-bg.png","alt","logo",1,"img"],[1,"btn-close","d-flex",3,"click"],["src","assets/images/icons-search-close.svg",1,"icon"],[1,"profile-content","overflow-y-auto","width-100","height-100"],[1,"profile-title","d-flex","justify-space-between","align-center","width-100"],[1,"d-flex","align-center"],["src","assets/images/icons-default-profile.svg",1,"profile-pic"],[1,"profile-info"],[1,"user-role"],[1,"container-div","width-100"],[1,"ion-item-class-2"],[1,"ion-icon-class"],["slot","start","name","person"],[1,"ion-input-class"],["placeholder","Nome",3,"ngModel","ngModelChange"],["slot","start","name","mail"],["placeholder","Email",3,"ngModel","ngModelChange"],[1,"login-preference","width-100",3,"mouseover","click"],[1,"preference"],[1,"align-center","d-flex"],[1,"d-flex","align-center",3,"click"],[1,"checkBox",3,"checked"],[1,"d-flex","width-100","justify-center","mt-10"],["fill","clear","color","#fff",1,"btn-ok","buttonSize",3,"click"],["hidden","",1,"footer-container","ion-no-border","bg-blue"],[1,"d-flex","justify-space-between"],["slot","start",3,"click"],["fill","clear","color","#061b52",1,"btn-cancel"],["slot","end",3,"click"],["fill","clear","color","#fff",1,"btn-ok"]],template:function(t,e){1&t&&(a.TgZ(0,"ion-content",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.TgZ(3,"div",3),a.TgZ(4,"div",4),a._UZ(5,"img",5),a.qZA(),a.qZA(),a.TgZ(6,"div",6),a.NdJ("click",function(){return e.close()}),a._UZ(7,"ion-icon",7),a.qZA(),a.qZA(),a.TgZ(8,"div",8),a.TgZ(9,"div",9),a.TgZ(10,"div",10),a.TgZ(11,"div"),a._uU(12,"Dados do perfil"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(13,"div"),a.TgZ(14,"div",10),a._UZ(15,"ion-icon",11),a.qZA(),a.qZA(),a.TgZ(16,"div",12),a.TgZ(17,"div",13),a._uU(18),a.qZA(),a.TgZ(19,"div",14),a.TgZ(20,"div",15),a.TgZ(21,"div",16),a._UZ(22,"ion-icon",17),a.qZA(),a.TgZ(23,"div",18),a.TgZ(24,"ion-input",19),a.NdJ("ngModelChange",function(t){return e.loggeduser.FullName=t}),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(25,"div",14),a.TgZ(26,"div",15),a.TgZ(27,"div",16),a._UZ(28,"ion-icon",20),a.qZA(),a.TgZ(29,"div",18),a.TgZ(30,"ion-input",21),a.NdJ("ngModelChange",function(t){return e.loggeduser.Email=t}),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(31,"div",22),a.NdJ("mouseover",function(){return e.checkState()})("click",function(){return e.checkState()}),a.TgZ(32,"div",23),a._uU(33,"Prefer\xeancia Login"),a.qZA(),a.TgZ(34,"ion-row"),a.TgZ(35,"ion-col",24),a.TgZ(36,"div",25),a.NdJ("click",function(){return e.LoginPreferenceMethod("pin")}),a._UZ(37,"ion-checkbox",26),a._uU(38," PIN "),a.qZA(),a.qZA(),a.TgZ(39,"ion-col",24),a.TgZ(40,"div",25),a.NdJ("click",function(){return e.addFingerprint()}),a._UZ(41,"ion-checkbox",26),a._uU(42," Impress\xe3o Digital "),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(43,"div",27),a.TgZ(44,"button",28),a.NdJ("click",function(){return e.addPin()}),a.TgZ(45,"ion-label"),a._uU(46,"Alterar PIN"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(47,"ion-footer",29),a.TgZ(48,"div",30),a.TgZ(49,"ion-buttons",31),a.NdJ("click",function(){return e.close()}),a.TgZ(50,"button",32),a.TgZ(51,"ion-label"),a._uU(52,"Cancelar"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(53,"ion-buttons",33),a.NdJ("click",function(){return e.close()}),a.TgZ(54,"button",34),a.TgZ(55,"ion-label"),a._uU(56,"Gravar"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(18),a.Oqu(e.loggeduser.RoleDescription),a.xp6(6),a.Q6J("ngModel",e.loggeduser.FullName),a.xp6(6),a.Q6J("ngModel",e.loggeduser.Email),a.xp6(7),a.Q6J("checked","pin"==e.userLoginPreference),a.xp6(4),a.Q6J("checked",!1))},directives:[c.W2,c.gu,c.pK,c.j9,g.JJ,g.On,c.Nd,c.wI,c.nz,c.w,c.Q$,c.fr,c.Sm],styles:[".main-content[_ngcontent-%COMP%]{overflow:hidden!important}.profile-header[_ngcontent-%COMP%]{margin:0 em(20px);padding:20px;border:0!important;overflow:auto}.profile-header[_ngcontent-%COMP%] .div-logo[_ngcontent-%COMP%]{background:transparent;width:calc(100% - 40px)!important;justify-content:center;display:flex;float:left}.profile-header[_ngcontent-%COMP%] .div-logo[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{width:140px}.profile-header[_ngcontent-%COMP%] .div-logo[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .img[_ngcontent-%COMP%]{width:100%;margin:0 auto}.btn-close[_ngcontent-%COMP%]{float:right!important}.profile-content[_ngcontent-%COMP%]{width:100%!important;padding:0 20px 50px;float:left}.profile-content[_ngcontent-%COMP%] .profile-title[_ngcontent-%COMP%]{font-size:20px;font-weight:300;margin-bottom:20px}.profile-content[_ngcontent-%COMP%] .profile-info[_ngcontent-%COMP%]{margin-top:20px;color:#fff;font-family:Roboto;font-size:13px}.profile-content[_ngcontent-%COMP%] .profile-info[_ngcontent-%COMP%] .user-role[_ngcontent-%COMP%]{background-color:#fff;border-radius:5px;padding:12px;color:#000;text-align:center;margin-bottom:5px}.profile-content[_ngcontent-%COMP%] .profile-info[_ngcontent-%COMP%] .container-div[_ngcontent-%COMP%]{margin-bottom:5px;float:left;overflow:hidden}.profile-content[_ngcontent-%COMP%] .profile-info[_ngcontent-%COMP%] .container-div[_ngcontent-%COMP%] .ion-item-class-2[_ngcontent-%COMP%]{margin:0 auto}.profile-content[_ngcontent-%COMP%] .profile-info[_ngcontent-%COMP%] .container-div[_ngcontent-%COMP%] .ion-icon-class[_ngcontent-%COMP%]{color:#ebebeb;width:40px;height:40px;float:left;padding:5px;font-size:25px}.profile-content[_ngcontent-%COMP%] .profile-info[_ngcontent-%COMP%] .container-div[_ngcontent-%COMP%] .ion-input-class[_ngcontent-%COMP%]{width:calc(100% - 40px);height:40px;border:1px solid #ebebeb;border-radius:5px;padding-left:5px;padding-right:10px;float:left;background-color:transparent}.icon[_ngcontent-%COMP%]{font-size:40px}.profile-pic[_ngcontent-%COMP%]{width:150px;height:150px;border-radius:50%;margin:0 auto;border-color:transparent!important}.login-preference[_ngcontent-%COMP%]{margin-top:15px;float:left;font-family:Roboto;font-size:13px;font-weight:300}.login-preference[_ngcontent-%COMP%] .preference[_ngcontent-%COMP%]{font-size:20px;margin-bottom:0!important}.login-preference[_ngcontent-%COMP%] .checkBox[_ngcontent-%COMP%]{margin-right:10px}.buttonSize[_ngcontent-%COMP%]{width:100%!important;margin:15px 0!important}"]}),t})()},33559:function(t,e,n){"use strict";n.d(e,{G:function(){return Z}});var i=n(64762),o=n(83142),r=n(37716),a=n(35957),c=n(37556),l=n(39895),s=n(66096),d=n(18903),g=n(71188),p=n(38583);function f(t,e){1&t&&r._UZ(0,"img",26)}function u(t,e){1&t&&r._UZ(0,"img",27)}function m(t,e){1&t&&r._UZ(0,"img",28)}function h(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",17),r.NdJ("click",function(){const e=r.CHM(t).$implicit;return r.oxw().notificatinsRoutes(e.Service,e.Object,e.IdObject,e.FolderId)}),r.TgZ(1,"div",18),r.TgZ(2,"div",19),r.YNc(3,f,1,0,"img",20),r.YNc(4,u,1,0,"img",21),r.YNc(5,m,1,0,"img",22),r.qZA(),r.TgZ(6,"div",23),r.TgZ(7,"p"),r._uU(8),r.qZA(),r.TgZ(9,"p"),r._uU(10),r.qZA(),r.qZA(),r.TgZ(11,"div",24),r.TgZ(12,"p"),r._uU(13),r.qZA(),r.TgZ(14,"h3"),r._uU(15),r.qZA(),r.qZA(),r._UZ(16,"div",25),r.qZA(),r.qZA()}if(2&t){const t=e.$implicit;r.xp6(3),r.Q6J("ngIf","agenda"==t.Service),r.xp6(1),r.Q6J("ngIf","gabinete-digital"==t.Service),r.xp6(1),r.Q6J("ngIf","accoes"==t.Service),r.xp6(3),r.Oqu(t.dateInit),r.xp6(2),r.Oqu(t.dateEnd),r.xp6(3),r.Oqu(t.Location),r.xp6(2),r.Oqu(t.alert)}}let Z=(()=>{class t{constructor(t,e,n,i,o,r,a,c){this.modalController=t,this.authService=e,this.animationController=n,this.router=i,this.localstoreService=o,this.jsonstore=r,this.storageservice=a,this.zone=c,this.userLoginPreference="",this.notificationdata=[],this.DataArray=[],this.notificatinsRoutes=(t,e,n,i)=>{if("agenda"===t)this.zone.run(()=>this.router.navigate(["/home/agenda",n,"agenda"]));else if("gabinete-digital"===t&&"expediente"===e)this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/expediente",n,"gabinete-digital"]));else if("gabinete-digital"===t&&"event-list"===e)this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/event-list/approve-event",n,"gabinete-digital"]));else if("gabinete-digital"===t&&"despachos"===e)this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/despachos",n,"gabinete-digital"],{replaceUrl:!0}));else if("gabinete-digital"===t&&"parecer"===e)this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/pedidos",n,"gabinete-digital"]));else if("gabinete-digital"===t&&"deferimento"===e)this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/pedidos",n,"gabinete-digital"]));else if("gabinete-digital"===t&&"despachos-pr"===e){let t={queryParams:{serialNumber:n}};this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/despachos-pr/despacho-pr"],t))}else if("accoes"===t&&"accao"===e)this.zone.run(()=>this.router.navigate(["/home/publications",n]));else if("accoes"===t&&"publicacao"===e)this.zone.run(()=>this.router.navigate(["/home/publications/view-publications",i,n]));else if("gabinete-digital"===t&&"diplomas"===e)this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/diplomas",n,"gabinete-digital"]));else if("gabinete-digital"===t&&"diplomas-assinar"===e){let t={queryParams:{serialNumber:n}};this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/diplomas-assinar/diploma-assinar"],t))}else"gabinete-digital"===t&&"expedientes-pr"===e&&this.zone.run(()=>this.router.navigate(["/home/gabinete-digital/expedientes-pr",n,"gabinete-digital"]))},this.loggeduser=e.ValidatedUser,console.log(this.loggeduser.RoleDescription),this.checkState()}ngOnInit(){this.storageservice.get("Notifications").then(t=>{JSON.parse(t).forEach(t=>{console.log("ARaaAA",t);var e=JSON.parse(t.payload);this.DataArray.push({alert:t.alert,Service:e.Service,Object:e.Object,IdObject:e.IdObject,FolderId:e.FolderId,desc:e.desc,dateInit:e.dateInit,dateEnd:e.dateEnd,Location:e.Location,TypeAgenda:e.TypeAgenda,Status:e.Status})}),this.notificationdata=this.DataArray,console.log("Notificaaa",this.notificationdata)}),console.log("Notificaaa",this.notificationdata)}close(){this.modalController.dismiss()}notImplemented(){}logout(){window.localStorage.clear(),setTimeout(()=>{this.router.navigateByUrl("/",{replaceUrl:!0})},100)}checkState(){let t=this.localstoreService.get("UserData",{});this.userLoginPreference=t.hasOwnProperty("loginPreference")?t.loginPreference:""}editProfile(){return(0,i.mG)(this,void 0,void 0,function*(){const t=t=>{const e=this.animationController.create().addElement(t.querySelector("ion-backdrop")).fromTo("opacity","0.01","var(--backdrop-opacity)"),n=this.animationController.create().addElement(t.querySelector(".modal-wrapper")).keyframes([{offset:0,opacity:"1",right:"-100%"},{offset:1,opacity:"1",right:"0px"}]);return this.animationController.create().addElement(t).easing("ease-out").duration(500).addAnimation([e,n])},e=yield this.modalController.create({enterAnimation:t,leaveAnimation:e=>t(e).direction("reverse"),component:o.u,cssClass:"model profile-modal",componentProps:{}});return yield e.present()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.IN),r.Y36(c.e),r.Y36(a.vB),r.Y36(l.F0),r.Y36(s.L),r.Y36(d.G),r.Y36(g.V),r.Y36(r.R0b))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-profile"]],decls:25,vars:3,consts:[[1,"bg-blue"],[1,"profile-header","width-100"],[1,"div-logo","d-md-none"],[1,"logo","height-fit-content"],["src","assets/images/logo-no-bg.png","alt","logo",1,"img"],[1,"btn-close","d-flex",3,"click"],["src","assets/images/icons-search-close.svg",1,"icon"],[1,"profile-content"],[1,"profile-title","d-flex","justify-content-center","width-100"],[1,"d-flex","mt-10","width-100"],["slot","start",1,"buttonSize"],["fill","clear",1,"btn-delete",3,"click"],[2,"color","#d30a0a"],["fill","clear","color","#fff",1,"btn-cancel",3,"click"],[1,"line"],[1,"notifications-content"],["class","item cursor-pointer ion-no-padding ion-no-margin","lines","none",3,"click",4,"ngFor","ngForOf"],["lines","none",1,"item","cursor-pointer","ion-no-padding","ion-no-margin",3,"click"],[1,"item-content","width-100"],[1,"notification-item"],["class","notification-icon","slot","end","src","assets/images/icons-default-agenda.svg",4,"ngIf"],["class","notification-icon","slot","end","src","assets/images/icons-correspondencias.svg",4,"ngIf"],["class","notification-icon","slot","end","src","assets/images/icons-nav-actions.svg",4,"ngIf"],[1,"approve-event-time"],[1,"approve-event-detail"],[1,"notification-label"],["slot","end","src","assets/images/icons-default-agenda.svg",1,"notification-icon"],["slot","end","src","assets/images/icons-correspondencias.svg",1,"notification-icon"],["slot","end","src","assets/images/icons-nav-actions.svg",1,"notification-icon"]],template:function(t,e){1&t&&(r.TgZ(0,"ion-content",0),r.TgZ(1,"div",1),r.TgZ(2,"div",2),r.TgZ(3,"div",3),r._UZ(4,"img",4),r.qZA(),r.qZA(),r.TgZ(5,"div",5),r.NdJ("click",function(){return e.close()}),r._UZ(6,"ion-icon",6),r.qZA(),r.qZA(),r.TgZ(7,"div",7),r.TgZ(8,"div",8),r.TgZ(9,"ion-label"),r._uU(10),r.qZA(),r.qZA(),r.TgZ(11,"div",9),r.TgZ(12,"ion-buttons",10),r.TgZ(13,"button",11),r.NdJ("click",function(){return e.logout()}),r.TgZ(14,"ion-label",12),r._uU(15,"Terminar sess\xe3o"),r.qZA(),r.qZA(),r.TgZ(16,"button",13),r.NdJ("click",function(){return e.editProfile()}),r.TgZ(17,"ion-label"),r._uU(18,"Editar Perfil"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r._UZ(19,"div",14),r.qZA(),r.TgZ(20,"div",15),r.TgZ(21,"ion-label"),r._uU(22),r.qZA(),r.TgZ(23,"ion-list"),r.YNc(24,h,17,7,"div",16),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(10),r.Oqu(e.loggeduser.RoleDescription),r.xp6(12),r.hij("",e.notificationdata.length," novas notifica\xe7\xf5es"),r.xp6(2),r.Q6J("ngForOf",e.notificationdata))},directives:[a.W2,a.gu,a.Q$,a.Sm,a.q_,p.sg,p.O5],styles:[".profile-header[_ngcontent-%COMP%]{margin:0 em(20px);padding:20px;border:0!important;overflow:auto}.profile-header[_ngcontent-%COMP%] .div-logo[_ngcontent-%COMP%]{background:transparent;width:calc(100% - 40px)!important;justify-content:center;display:flex;float:left}.profile-header[_ngcontent-%COMP%] .div-logo[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{width:140px}.profile-header[_ngcontent-%COMP%] .div-logo[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .img[_ngcontent-%COMP%]{width:100%;margin:0 auto}.btn-close[_ngcontent-%COMP%]{float:right!important}.profile-content[_ngcontent-%COMP%]{padding:20px}.icon[_ngcontent-%COMP%]{font-size:40px}.profile-title[_ngcontent-%COMP%]{font-weight:300;font-size:20px!important;margin-bottom:40px!important}.line[_ngcontent-%COMP%]{width:100%!important;margin-top:15px;border-top:1px solid #d8d8d8}.btn-delete[_ngcontent-%COMP%]{background:#ffe0e0!important;width:40%!important;margin-left:0!important}.btn-cancel[_ngcontent-%COMP%]{width:40%!important;margin-right:0!important}.buttonSize[_ngcontent-%COMP%]{width:100%!important}ion-list[_ngcontent-%COMP%]{background-color:transparent!important}.notifications-content[_ngcontent-%COMP%]{padding:0 20px}.notifications-content[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{display:flex;border-radius:15px;box-shadow:0 0 10px 0 rgba(0,0,0,.07);border:1px solid #e9e9e9;background-color:var(--white);padding:10px;margin:0 auto 10px;color:#000;overflow:hidden}.notifications-content[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .notification-item[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;float:left;margin-right:10px;padding:0!important;overflow:auto}.notifications-content[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .notification-icon[_ngcontent-%COMP%]{font-size:35px!important}.notifications-content[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .approve-event-time[_ngcontent-%COMP%]{width:-webkit-fit-content!important;width:-moz-fit-content!important;width:fit-content!important;float:left}.notifications-content[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .approve-event-detail[_ngcontent-%COMP%]{width:calc(100% - 115px)!important;float:left}.notifications-content[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .notification-label[_ngcontent-%COMP%]{float:right;width:5px;height:100%;border-radius:0 100% 100% 0;background-color:#ffb703}.item-inner[_ngcontent-%COMP%]{padding:0!important}"]}),t})()},84765:function(t,e,n){"use strict";n.d(e,{a:function(){return a}});var i=n(64762),o=n(37716),r=n(35957);let a=(()=>{class t{constructor(t,e){this.modalController=t,this.animationController=e}ngOnInit(){}login(){}close(){this.modalController.dismiss()}save(){return(0,i.mG)(this,void 0,void 0,function*(){})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(r.IN),o.Y36(r.vB))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-fingerprint"]],decls:12,vars:0,consts:[[1,"main-content","d-flex","flex-column","align-center","justify-center"],[1,"div-top-header"],[1,"div-logo"],["src","assets/images/logo-bg.png","alt","logo"],[1,"title"],[1,"terminal","d-flex","align-center","justity-content-center","flex-column"],[1,"circle",3,"click"],[1,"mt-50","circle",3,"click"]],template:function(t,e){1&t&&(o.TgZ(0,"ion-content"),o.TgZ(1,"div",0),o.TgZ(2,"div",1),o.TgZ(3,"div",2),o._UZ(4,"img",3),o.qZA(),o.qZA(),o.TgZ(5,"ion-title",4),o._uU(6,"...."),o.qZA(),o.TgZ(7,"div",5),o.TgZ(8,"div",6),o.NdJ("click",function(){return e.login()}),o._uU(9,"Login"),o.qZA(),o.TgZ(10,"div",7),o.NdJ("click",function(){return e.save()}),o._uU(11,"Register"),o.qZA(),o.qZA(),o.qZA(),o.qZA())},directives:[r.W2,r.wd],styles:[".div-top-header[_ngcontent-%COMP%]{margin:0 1.25em;padding-top:.9375em;border:0!important}.div-logo[_ngcontent-%COMP%]{background:transparent;width:8.75em;justify-content:center;display:flex}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;margin:0 auto}[_nghost-%COMP%]{text-align:center;align-items:center;display:flex;justify-content:center;background-image:url(/assets/background/auth.svg);background-size:686px 674px;background-position:50%;background-position-y:78px;background-repeat:no-repeat}.circle[_ngcontent-%COMP%]{color:#fff;width:70px;height:70px;display:flex;align-items:center;justify-content:center;font-size:12pt;background:#44b5ea;border-radius:56px;margin-left:30px;margin-bottom:15px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.title[_ngcontent-%COMP%]{padding-top:32px}.terminal[_ngcontent-%COMP%]{padding-top:112px;margin-left:-30px}.clear[_ngcontent-%COMP%]{color:#44b5ea;font-size:12pt}.dot-active[_ngcontent-%COMP%]{background:#44b5ea}.dot[_ngcontent-%COMP%]{width:25px;height:25px;margin:0 10px 0 0;border:3px solid #44b5ea;box-sizing:border-box;border-radius:50px;-webkit-border-radius:50px;-moz-border-radius:50px;-ms-border-radius:50px;-o-border-radius:50px}"]}),t})()},28354:function(t,e,n){"use strict";n.d(e,{W:function(){return d}});var i=n(64762),o=n(2527),r=n.n(o),a=n(37716),c=n(35957),l=n(84465),s=n(66096);let d=(()=>{class t{constructor(t,e,n,i){this.modalController=t,this.animationController=e,this.toastService=n,this.localstoreService=i,this.code=[]}ngOnInit(){}setCode(t){this.code.length<4&&this.code.push(t),4==this.code.length&&this.save()}clearCode(){this.code=[]}close(){this.modalController.dismiss()}save(){return(0,i.mG)(this,void 0,void 0,function*(){if(4==this.code.length){this.close();const t=this.code.join(""),e=r().SHA1(t);localStorage.setItem("PIN",e),this.localstoreService.set("PIN",e)}else this.toastService.badRequest()})}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(c.IN),a.Y36(c.vB),a.Y36(l.k),a.Y36(s.L))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-pin"]],decls:39,vars:8,consts:[[1,"main-content","d-flex","flex-column","align-center","justify-center"],[1,"div-top-header"],[1,"div-logo"],["src","assets/images/logo-bg.png","alt","logo"],[1,"title"],[1,"d-flex","pt-25"],[1,"dot"],[1,"terminal"],[1,"d-flex"],[1,"circle",3,"click"],[1,"d-flex","align-center","justify-center"],[1,"d-flex","align-center","justify-center","pt-25","clear",3,"click"]],template:function(t,e){1&t&&(a.TgZ(0,"ion-content"),a.TgZ(1,"div",0),a.TgZ(2,"div",1),a.TgZ(3,"div",2),a._UZ(4,"img",3),a.qZA(),a.qZA(),a.TgZ(5,"ion-title",4),a._uU(6,"Digite o PIN novo"),a.qZA(),a.TgZ(7,"div",5),a._UZ(8,"div",6),a._UZ(9,"div",6),a._UZ(10,"div",6),a._UZ(11,"div",6),a.qZA(),a.TgZ(12,"div",7),a.TgZ(13,"div",8),a.TgZ(14,"div",9),a.NdJ("click",function(){return e.setCode("1")}),a._uU(15,"1"),a.qZA(),a.TgZ(16,"div",9),a.NdJ("click",function(){return e.setCode("2")}),a._uU(17,"2"),a.qZA(),a.TgZ(18,"div",9),a.NdJ("click",function(){return e.setCode("3")}),a._uU(19,"3"),a.qZA(),a.qZA(),a.TgZ(20,"div",8),a.TgZ(21,"div",9),a.NdJ("click",function(){return e.setCode("4")}),a._uU(22,"4"),a.qZA(),a.TgZ(23,"div",9),a.NdJ("click",function(){return e.setCode("5")}),a._uU(24,"5"),a.qZA(),a.TgZ(25,"div",9),a.NdJ("click",function(){return e.setCode("6")}),a._uU(26,"6"),a.qZA(),a.qZA(),a.TgZ(27,"div",8),a.TgZ(28,"div",9),a.NdJ("click",function(){return e.setCode("7")}),a._uU(29,"7"),a.qZA(),a.TgZ(30,"div",9),a.NdJ("click",function(){return e.setCode("8")}),a._uU(31,"8"),a.qZA(),a.TgZ(32,"div",9),a.NdJ("click",function(){return e.setCode("9")}),a._uU(33,"9"),a.qZA(),a.qZA(),a.TgZ(34,"div",10),a.TgZ(35,"div",9),a.NdJ("click",function(){return e.setCode("0")}),a._uU(36,"0"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(37,"div",11),a.NdJ("click",function(){return e.close()}),a._uU(38," Cancelar "),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(8),a.ekj("dot-active",e.code.length>=1),a.xp6(1),a.ekj("dot-active",e.code.length>=2),a.xp6(1),a.ekj("dot-active",e.code.length>=3),a.xp6(1),a.ekj("dot-active",e.code.length>=4))},directives:[c.W2,c.wd],styles:[".div-top-header[_ngcontent-%COMP%]{margin:0 1.25em;padding-top:.9375em;border:0!important}.div-logo[_ngcontent-%COMP%]{background:transparent;width:8.75em;justify-content:center;display:flex}.div-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;margin:0 auto}[_nghost-%COMP%]{text-align:center;align-items:center;display:flex;justify-content:center;background-image:url(/assets/background/auth.svg);background-size:686px 674px;background-position:50%;background-position-y:78px;background-repeat:no-repeat}.circle[_ngcontent-%COMP%]{color:#fff;width:70px;height:70px;display:flex;align-items:center;justify-content:center;font-size:19pt;background:#44b5ea;border-radius:56px;margin-left:30px;margin-bottom:15px}.title[_ngcontent-%COMP%]{padding-top:32px}.terminal[_ngcontent-%COMP%]{padding-top:112px;margin-left:-30px}.clear[_ngcontent-%COMP%]{color:#44b5ea;font-size:12pt}.dot-active[_ngcontent-%COMP%]{background:#44b5ea}.dot[_ngcontent-%COMP%]{width:25px;height:25px;margin:0 10px 0 0;border:3px solid #44b5ea;box-sizing:border-box;border-radius:50px;-webkit-border-radius:50px;-moz-border-radius:50px;-ms-border-radius:50px;-o-border-radius:50px}"]}),t})()}}]); |