import{C as k,O as R}from"./chunk-KPL7BGNQ.js";import{$b as T,Ba as E,Cc as M,Ec as B,Ga as v,Ka as o,La as a,Ma as u,X as t,Yb as G,Zb as S,ac as _,ba as f,bb as c,cb as d,cc as h,gc as H,jc as N,ka as x,ma as C,na as g,nc as D,oc as w,pa as i,qa as n,ra as s,tb as P,ub as b,uc as y}from"./chunk-IA4I4FFG.js";import{a as O}from"./chunk-LNEQX42T.js";function F(m,l){if(m&1&&(i(0,"ion-item")(1,"ion-grid")(2,"ion-row")(3,"ion-col",0),o(4),n(),i(5,"ion-col",0),o(6),n(),i(7,"ion-col",0),o(8),c(9,"number"),n(),i(10,"ion-col",0),o(11),n(),i(12,"ion-col",0),o(13),n(),i(14,"ion-col",0),o(15),n()()()()),m&2){let e=l.$implicit,r=E();t(),v("background-color",r.colorHoraCantado(e)),t(3),a(e.Mesa),t(2),a(e.idComanda),t(2),a(d(9,8,e.Cantidad)),t(3),a(e.Hora),t(2),a(e.HoraCantado),t(2),u(" ",r.kitchenGroups[e.idGrupoCocina]!==void 0?r.kitchenGroups[e.idGrupoCocina].descripciones[1].nombre:""," ")}}var A=class m{constructor(){O({time:R,open:k})}colorHoraCantado(l){let e=l.HoraCantado!=="0"?l.HoraCantado.split(":"):[0,0],r=Number(e[0])*60+Number(e[1]),p=this.kitchenGroups[l.idGrupoCocina];if(p!==void 0){let I=new Date().getHours()*60+new Date().getMinutes()-r;return"#"+(r===0?"":I<Number(p.tiempo_color1)?p.color1:I<Number(p.tiempo_color2)?p.color2:p.color3)}return""}static{this.\u0275fac=function(e){return new(e||m)}}static{this.\u0275cmp=f({type:m,selectors:[["app-product-info"]],decls:30,vars:16,consts:[[1,"ion-text-center"],[1,"ion-padding"],["name","open"],["name","time"]],template:function(e,r){e&1&&(i(0,"ion-header")(1,"ion-toolbar")(2,"ion-title",0),o(3),n()()(),i(4,"ion-content",1)(5,"ion-list")(6,"ion-item")(7,"ion-grid")(8,"ion-row")(9,"ion-col",0),s(10,"ion-icon",2),n(),i(11,"ion-col",0),o(12),c(13,"translate"),n(),i(14,"ion-col",0),o(15),c(16,"translate"),n(),i(17,"ion-col",0),s(18,"ion-icon",3),o(19),c(20,"translate"),n(),i(21,"ion-col",0),s(22,"ion-icon",3),o(23),c(24,"translate"),n(),i(25,"ion-col",0),o(26),c(27,"translate"),n()()()(),C(28,F,16,10,"ion-item",null,x),n()()),e&2&&(t(3),a(r.productGroup.description),t(9),a(d(13,6,"ORDER_ID")),t(3),a(d(16,8,"QUANTITY")),t(4),u(" ",d(20,10,"ELABORATED")," "),t(4),u(" ",d(24,12,"ANNOUNCED")," "),t(3),a(d(27,14,"KITCHEN_GROUP")),t(2),g(r.productGroup))},dependencies:[N,y,T,h,S,H,G,D,w,_,B,b,M,P],styles:["ion-grid[_ngcontent-%COMP%]{width:100%}ion-grid[_ngcontent-%COMP%]   ion-row[_ngcontent-%COMP%]{width:100%}"]})}};export{A as a};
