import{f as A}from"./chunk-MYV7LOMK.js";import{o as z,x as X}from"./chunk-KPL7BGNQ.js";import{$b as B,Aa as o,B as u,Cc as L,Ec as j,Gb as h,Hb as M,Jb as I,Ka as r,La as s,Lb as O,Pa as C,Qa as b,Ra as k,Rb as y,Sb as v,X as i,Zb as S,ba as P,bb as m,cb as p,cc as T,fc as E,gc as x,ia as f,ic as N,ja as w,jc as W,pa as n,pc as D,qa as e,ra as g,uc as R,vc as F}from"./chunk-IA4I4FFG.js";import{a as G}from"./chunk-LNEQX42T.js";function H(c,l){c&1&&(n(0,"ion-item",10)(1,"ion-note",11),r(2),m(3,"translate"),e()()),c&2&&(i(2),s(p(3,1,"WRONG_PASSWORD")))}var q=class c{constructor(){this.settings=u(A);this.modalCtrl=u(D);this.navCtrl=u(O);this.typedPassword="";G({close:z,lockClosed:X})}ngOnInit(){this.configPassword=this.settings.currentSettings[this.settings.PASSWORD],this.miniConfigPassword="1999"}checkPassword(){this.typedPassword===this.configPassword?(this.dismiss(),this.navCtrl.navigateForward("config")):this.typedPassword===this.miniConfigPassword?(this.dismiss(),this.navCtrl.navigateForward("/mini-config")):(this.wrongPassword=!0,this.typedPassword="")}inputButton(l){l==="<"?this.typedPassword=this.typedPassword.substring(0,this.typedPassword.length-1):l==="x"?this.typedPassword="":this.typedPassword+=l}dismiss(){this.modalCtrl.dismiss()}static{this.\u0275fac=function(d){return new(d||c)}}static{this.\u0275cmp=P({type:c,selectors:[["app-config-password"]],decls:46,vars:19,consts:[[1,"ion-padding"],[1,"ion-float-right"],[3,"click"],["color","medium","name","close"],[1,"center"],["name","lock-closed","color","medium"],["position","inline","color","medium",2,"margin-right","5px"],["type","password","autofocus","true","readonly","true",3,"ngModelChange","keyup.enter","ngModel"],["fill","outline","color","medium",3,"click"],[1,"numberButtons"],[1,"ion-text-center"],["color","danger"]],template:function(d,t){d&1&&(n(0,"ion-content",0)(1,"ion-buttons",1)(2,"ion-button",2),o("click",function(){return t.dismiss()}),g(3,"ion-icon",3),e()(),n(4,"div",4),g(5,"ion-icon",5),n(6,"ion-list")(7,"ion-item")(8,"ion-label",6),r(9),m(10,"translate"),e(),n(11,"ion-input",7),k("ngModelChange",function(_){return b(t.typedPassword,_)||(t.typedPassword=_),_}),o("keyup.enter",function(){return t.checkPassword()}),e(),n(12,"ion-button",8),o("click",function(){return t.checkPassword()}),r(13),m(14,"translate"),e()(),n(15,"ion-item",9)(16,"ion-grid")(17,"ion-row")(18,"ion-button",8),o("click",function(){return t.inputButton("7")}),r(19),e(),n(20,"ion-button",8),o("click",function(){return t.inputButton("8")}),r(21),e(),n(22,"ion-button",8),o("click",function(){return t.inputButton("9")}),r(23),e()(),n(24,"ion-row")(25,"ion-button",8),o("click",function(){return t.inputButton("4")}),r(26),e(),n(27,"ion-button",8),o("click",function(){return t.inputButton("5")}),r(28),e(),n(29,"ion-button",8),o("click",function(){return t.inputButton("6")}),r(30),e()(),n(31,"ion-row")(32,"ion-button",8),o("click",function(){return t.inputButton("1")}),r(33),e(),n(34,"ion-button",8),o("click",function(){return t.inputButton("2")}),r(35),e(),n(36,"ion-button",8),o("click",function(){return t.inputButton("3")}),r(37),e()(),n(38,"ion-row")(39,"ion-button",8),o("click",function(){return t.inputButton("0")}),r(40),e(),n(41,"ion-button",8),o("click",function(){return t.inputButton("<")}),r(42),e(),n(43,"ion-button",8),o("click",function(){return t.inputButton("x")}),r(44,"X"),e()()()(),f(45,H,4,3,"ion-item",10),e()()()),d&2&&(i(9),s(p(10,15,"PASSWORD")),i(2),C("ngModel",t.typedPassword),i(2),s(p(14,17,"ENTER")),i(6),s("7"),i(2),s("8"),i(2),s("9"),i(3),s("4"),i(2),s("5"),i(2),s("6"),i(3),s("1"),i(2),s("2"),i(2),s("3"),i(3),s("0"),i(2),s("<"),i(3),w(t.wrongPassword?45:-1))},dependencies:[B,N,W,T,v,R,x,E,F,y,S,I,h,M,j,L],styles:["ion-fab-button[_ngcontent-%COMP%]{--ion-color-contrast: var(--ion-color-medium) !important}.center[_ngcontent-%COMP%]{height:90%!important;display:flex!important;align-items:center!important;justify-content:center!important;clear:both}.center[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]{background:#0000}.center[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]   ion-item[_ngcontent-%COMP%]{--background: rgba(0, 0, 0, 0)}.center[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]   ion-item[_ngcontent-%COMP%]:last-child, .center[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]   ion-item.numberButtons[_ngcontent-%COMP%]{--inner-border-width: 0;--border-width: 0}.center[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]   ion-item[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]   ion-row[_ngcontent-%COMP%]{width:fit-content;margin:auto}.center[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]   ion-item[_ngcontent-%COMP%]   ion-grid[_ngcontent-%COMP%]   ion-row[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{padding:0 5px}.center[_ngcontent-%COMP%] > ion-icon[_ngcontent-%COMP%]{position:absolute;font-size:30rem;opacity:.05}"]})}};export{q as a};
