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