import{f as L}from"./chunk-MT5VNIHV.js";import{o as X,x as q}from"./chunk-KPL7BGNQ.js";import{$ as f,$a as m,Ac as j,B as u,Cc as G,Eb as M,Fb as I,Hb as O,Ia as r,Ja as a,Jb as v,Na as b,Oa as k,Pa as h,Pb as S,Qb as y,U as i,Xb as B,Zb as T,ab as p,ac as E,dc as x,ec as N,ga as w,gc as W,ha as C,hc as D,na as n,nc as R,oa as e,pa as g,sc as F,tc as A,ya as o}from"./chunk-DRW4ORQZ.js";import{a as z}from"./chunk-LNEQX42T.js";function J(P,l){P&1&&(n(0,"ion-item",10)(1,"ion-note",11),r(2),m(3,"translate"),e()()),P&2&&(i(2),a(p(3,1,"WRONG_PASSWORD")))}var c=class c{constructor(){this.settings=u(L);this.modalCtrl=u(R);this.navCtrl=u(v);this.typedPassword="";z({close:X,lockClosed:q})}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()}};c.\u0275fac=function(d){return new(d||c)},c.\u0275cmp=f({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),h("ngModelChange",function(_){return k(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()()()(),w(45,J,4,3,"ion-item",10),e()()()),d&2&&(i(9),a(p(10,15,"PASSWORD")),i(2),b("ngModel",t.typedPassword),i(2),a(p(14,17,"ENTER")),i(6),a("7"),i(2),a("8"),i(2),a("9"),i(3),a("4"),i(2),a("5"),i(2),a("6"),i(3),a("1"),i(2),a("2"),i(2),a("3"),i(3),a("0"),i(2),a("<"),i(3),C(t.wrongPassword?45:-1))},dependencies:[T,W,D,E,y,F,N,x,A,S,B,O,M,I,G,j],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}"]});var H=c;export{H as a};
