import{C as R,O as A}from"./chunk-KPL7BGNQ.js";import{$ as f,$a as c,Ac as O,Cc as k,Ea as G,Ia as o,Ja as a,Ka as u,U as t,Wb as P,Xb as b,Zb as h,_b as H,ab as p,ac as N,ec as D,hc as _,ia as C,ka as E,la as g,lc as w,mc as M,na as i,oa as n,pa as s,rb as S,sb as T,sc as B,za as v}from"./chunk-DRW4ORQZ.js";import{a as y}from"./chunk-LNEQX42T.js";function U(I,l){if(I&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()()()()),I&2){let e=l.$implicit,r=v();t(),G("background-color",r.colorHoraCantado(e)),t(3),a(e.Mesa),t(2),a(e.idComanda),t(2),a(p(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 m=class m{constructor(){y({time:A,open:R})}colorHoraCantado(l){let e=l.HoraCantado!=="0"?l.HoraCantado.split(":"):[0,0],r=Number(e[0])*60+Number(e[1]),d=this.kitchenGroups[l.idGrupoCocina];if(d!==void 0){let x=new Date().getHours()*60+new Date().getMinutes()-r;return"#"+(r===0?"":x<Number(d.tiempo_color1)?d.color1:x<Number(d.tiempo_color2)?d.color2:d.color3)}return""}};m.\u0275fac=function(e){return new(e||m)},m.\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()()()(),E(28,U,16,10,"ion-item",null,C),n()()),e&2&&(t(3),a(r.productGroup.description),t(9),a(p(13,6,"ORDER_ID")),t(3),a(p(16,8,"QUANTITY")),t(4),u(" ",p(20,10,"ELABORATED")," "),t(4),u(" ",p(24,12,"ANNOUNCED")," "),t(3),a(p(27,14,"KITCHEN_GROUP")),t(2),g(r.productGroup))},dependencies:[_,B,h,N,b,D,P,w,M,H,k,T,O,S],styles:["ion-grid[_ngcontent-%COMP%]{width:100%}ion-grid[_ngcontent-%COMP%]   ion-row[_ngcontent-%COMP%]{width:100%}"]});var F=m;export{F as a};
