mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
4.5 KiB
JavaScript
1 line
4.5 KiB
JavaScript
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[8805],{98805:function(t,e,n){"use strict";n.r(e),n.d(e,{PinPageModule:function(){return g}});var i=n(38583),o=n(3679),c=n(35957),r=n(39895),d=n(28354),s=n(37716);const a=[{path:"",component:d.W}];let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.Bz.forChild(a)],r.Bz]}),t})(),g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez,o.u5,c.Pc,l]]}),t})()},28354:function(t,e,n){"use strict";n.d(e,{W:function(){return l}});var i=n(64762),o=n(2527),c=n.n(o),r=n(37716),d=n(35957),s=n(84465),a=n(66096);let l=(()=>{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=c().SHA1(t);localStorage.setItem("PIN",e),this.localstoreService.set("PIN",e)}else this.toastService.badRequest()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(d.IN),r.Y36(d.vB),r.Y36(s.k),r.Y36(a.L))},t.\u0275cmp=r.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&&(r.TgZ(0,"ion-content"),r.TgZ(1,"div",0),r.TgZ(2,"div",1),r.TgZ(3,"div",2),r._UZ(4,"img",3),r.qZA(),r.qZA(),r.TgZ(5,"ion-title",4),r._uU(6,"Digite o PIN novo"),r.qZA(),r.TgZ(7,"div",5),r._UZ(8,"div",6),r._UZ(9,"div",6),r._UZ(10,"div",6),r._UZ(11,"div",6),r.qZA(),r.TgZ(12,"div",7),r.TgZ(13,"div",8),r.TgZ(14,"div",9),r.NdJ("click",function(){return e.setCode("1")}),r._uU(15,"1"),r.qZA(),r.TgZ(16,"div",9),r.NdJ("click",function(){return e.setCode("2")}),r._uU(17,"2"),r.qZA(),r.TgZ(18,"div",9),r.NdJ("click",function(){return e.setCode("3")}),r._uU(19,"3"),r.qZA(),r.qZA(),r.TgZ(20,"div",8),r.TgZ(21,"div",9),r.NdJ("click",function(){return e.setCode("4")}),r._uU(22,"4"),r.qZA(),r.TgZ(23,"div",9),r.NdJ("click",function(){return e.setCode("5")}),r._uU(24,"5"),r.qZA(),r.TgZ(25,"div",9),r.NdJ("click",function(){return e.setCode("6")}),r._uU(26,"6"),r.qZA(),r.qZA(),r.TgZ(27,"div",8),r.TgZ(28,"div",9),r.NdJ("click",function(){return e.setCode("7")}),r._uU(29,"7"),r.qZA(),r.TgZ(30,"div",9),r.NdJ("click",function(){return e.setCode("8")}),r._uU(31,"8"),r.qZA(),r.TgZ(32,"div",9),r.NdJ("click",function(){return e.setCode("9")}),r._uU(33,"9"),r.qZA(),r.qZA(),r.TgZ(34,"div",10),r.TgZ(35,"div",9),r.NdJ("click",function(){return e.setCode("0")}),r._uU(36,"0"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(37,"div",11),r.NdJ("click",function(){return e.close()}),r._uU(38," Cancelar "),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(8),r.ekj("dot-active",e.code.length>=1),r.xp6(1),r.ekj("dot-active",e.code.length>=2),r.xp6(1),r.ekj("dot-active",e.code.length>=3),r.xp6(1),r.ekj("dot-active",e.code.length>=4))},directives:[d.W2,d.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})()}}]); |