import{f as j}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 A,Ec as F,Gb as k,Hb as M,Jb as y,Ka as r,La as s,Lb as I,Pa as C,Qa as b,Ra as h,Rb as O,Sb as S,X as i,Zb as v,ba as g,bb as p,cb as _,cc as T,fc as E,gc as x,ia as f,ic as N,ja as w,jc as W,pa as e,pc as D,qa as n,ra as P,uc as R,vc as L}from"./chunk-IA4I4FFG.js";import{a as G}from"./chunk-LNEQX42T.js";function H(c,l){c&1&&(e(0,"ion-item",10)(1,"ion-note",11),r(2),p(3,"translate"),n()()),c&2&&(i(2),s(_(3,1,"WRONG_PASSWORD")))}var q=class c{constructor(){this.settings=u(j);this.modalCtrl=u(D);this.navCtrl=u(I);this.typedPassword="";this.wrongPassword=!1;G({close:z,lockClosed:X})}checkPassword(){this.typedPassword===this.password?this.dismiss(!0):(this.wrongPassword=!0,this.typedPassword="")}inputButton(l){l==="<"?this.typedPassword=this.typedPassword.substring(0,this.typedPassword.length-1):l==="x"?this.typedPassword="":isNaN(l)||(this.typedPassword+=l)}dismiss(l){this.modalCtrl.dismiss(l)}static{this.\u0275fac=function(d){return new(d||c)}}static{this.\u0275cmp=g({type:c,selectors:[["app-chef-password"]],inputs:{password:"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"],["type","password","autofocus","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&&(e(0,"ion-content",0)(1,"ion-buttons",1)(2,"ion-button",2),o("click",function(){return t.dismiss(!1)}),P(3,"ion-icon",3),n()(),e(4,"div",4),P(5,"ion-icon",5),e(6,"ion-list")(7,"ion-item")(8,"ion-label",6),r(9),p(10,"translate"),n(),e(11,"ion-input",7),h("ngModelChange",function(m){return b(t.typedPassword,m)||(t.typedPassword=m),m}),o("keyup.enter",function(){return t.checkPassword()}),n(),e(12,"ion-button",8),o("click",function(){return t.checkPassword()}),r(13),p(14,"translate"),n()(),e(15,"ion-item",9)(16,"ion-grid")(17,"ion-row")(18,"ion-button",8),o("click",function(){return t.inputButton(7)}),r(19),n(),e(20,"ion-button",8),o("click",function(){return t.inputButton(8)}),r(21),n(),e(22,"ion-button",8),o("click",function(){return t.inputButton(9)}),r(23),n()(),e(24,"ion-row")(25,"ion-button",8),o("click",function(){return t.inputButton(4)}),r(26),n(),e(27,"ion-button",8),o("click",function(){return t.inputButton(5)}),r(28),n(),e(29,"ion-button",8),o("click",function(){return t.inputButton(6)}),r(30),n()(),e(31,"ion-row")(32,"ion-button",8),o("click",function(){return t.inputButton(1)}),r(33),n(),e(34,"ion-button",8),o("click",function(){return t.inputButton(2)}),r(35),n(),e(36,"ion-button",8),o("click",function(){return t.inputButton(3)}),r(37),n()(),e(38,"ion-row")(39,"ion-button",8),o("click",function(){return t.inputButton(0)}),r(40),n(),e(41,"ion-button",8),o("click",function(){return t.inputButton("<")}),r(42),n(),e(43,"ion-button",8),o("click",function(){return t.inputButton("x")}),r(44,"X"),n()()()(),f(45,H,4,3,"ion-item",10),n()()()),d&2&&(i(9),s(_(10,15,"PASSWORD")),i(2),C("ngModel",t.typedPassword),i(2),s(_(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:[N,W,B,L,x,E,T,R,O,S,v,y,k,M,F,A],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};
