PageSourceSearch

https://avrce.nslunch.ca/chunk-LK2RKWPP.js

js nslunch.ca collected 2026-10-01 15:29:32 UTC 64,053 bytes, 1 lines download raw bytes

1import{a as Ke}from"./chunk-ZNRWGTY3.js";import{a as Ze,b as et,c as tt,d as ot,e as it,f as nt}from"./chunk-TFH6NI67.js";import{K as Xe,a as ee,j as He,k as Y,q as Qe,s as Je}from"./chunk-77OLW534.js";import{F as W,H as Le,y as Ne,z as $e}from"./chunk-NZYHGLX4.js";import"./chunk-OCWBAQVZ.js";import{b as Ge}from"./chunk-OTE7M4B4.js";import{a as Ye,h as Ue}from"./chunk-BMTBTQLR.js";import"./chunk-WNEEIUKI.js";import"./chunk-6W7QHKR2.js";import"./chunk-FHPCC6H6.js";import"./chunk-RRWC3X3Z.js";import"./chunk-6SQZF4EI.js";import{d as je}from"./chunk-XZDHLG34.js";import"./chunk-QADK4VBI.js";import{E as B,Y as We,p as Re}from"./chunk-23SNUJD7.js";import{$a as m,A as re,Af as ve,Cf as Se,Cg as Te,Eg as Ee,Fa as n,Gb as P,I as le,Ib as a,Ig as De,Jb as h,Kb as V,Kf as we,Kg as Be,Lb as q,Lc as de,Mb as K,Mf as Oe,Mg as Ve,Nb as se,Nf as Me,Pa as ae,Qf as at,Se as Ce,Sf as X,Tg as Ae,Ub as A,Ud as _e,Vb as Q,Vg as Z,Wb as ce,Xd as pe,Yf as ke,Za as G,Zd as J,Zg as ze,ae as z,ag as be,ah as N,bb as u,bc as c,bh as $,cb as j,cc as p,da as M,dc as D,dh as qe,eb as T,ec as I,fb as E,g as lt,gb as O,hb as r,ia as f,ib as l,ja as y,jb as k,le as he,lg as Pe,ng as Ie,of as xe,qb as w,r as ne,sb as v,te as me,tf as ge,ub as d,ue,vf as fe,wf as ye,xg as Fe}from"./chunk-QZT25E7N.js";var R=lt(at());var U=class{};var st=(o,s)=>s.weekIndex,rt=(o,s)=>s.id,oe=(o,s)=>s.drink.id,ct=(o,s)=>s.index;function dt(o,s){if(o&1&&(k(0,"path-loading-spinner",1),c(1,"transloco")),o&2){let e=d();O("message",Q("",p(1,4,"common.Loading"),"..."))("isLoading",!e.ready)("overlay",!0)}}function _t(o,s){if(o&1){let e=w();r(0,"path-autocomplete",21),c(1,"transloco"),c(2,"transloco"),v("valueChanged",function(i){f(e);let _=d(3);return y(_.setSchool(i))}),l()}if(o&2){let e=d(3);O("label",A(p(1,9,"common.School")))("formGroup",e.form)("values",e.schools)("required",!0)("displayWith",e.displaySchoolName)("emitClears",!0)("hintMessage",e.selectedSchool&&!e.selectedSchool.active?p(2,11,"schoolAdmin.InactiveSchool"):null)("grayOutValue",e.grayOutValue)}}function pt(o,s){if(o&1){let e=w();k(0,"div",14),r(1,"div",18),m(2,_t,3,13,"path-autocomplete",19),r(3,"path-autocomplete",20),c(4,"transloco"),v("valueChanged",function(i){f(e);let _=d(2);return y(_.yearSelected(i))}),l()()}if(o&2){let e=d(2);n(2),u((e.schools==null?null:e.schools.length)>1?2:-1),n(),O("label",A(p(4,8,"common.Year")))("formGroup",e.form)("values",e.years)("required",!0)("displayWith",e.displayYearName)("emitClears",!0)}}function ht(o,s){if(o&1){let e=w();r(0,"button",25),v("click",function(){f(e);let i=d(3);return y(i.pickCycle(i.quickCurrentCycle))}),r(1,"span",26),k(2,"span",27),a(3),c(4,"transloco"),l(),r(5,"span",28),a(6),c(7,"dateFormat"),c(8,"dateFormat"),l()()}if(o&2){let e=d(3);P("school-orders__cycle-chip--active",(e.selectedCycle==null?null:e.selectedCycle.id)===e.quickCurrentCycle.id),n(3),h(p(4,6,"schoolAdmin.CurrentCycle")),n(3),K("",e.quickCurrentCycle.name," \xB7 ",I(7,8,e.quickCurrentCycle.serviceStartDate,"mdShort","school")," \u2013 ",I(8,12,e.quickCurrentCycle.serviceEndDate,"mdShort","school"))}}function mt(o,s){if(o&1){let e=w();r(0,"button",25),v("click",function(){f(e);let i=d(3);return y(i.pickCycle(i.quickNextCycle))}),r(1,"span",26),a(2),c(3,"transloco"),l(),r(4,"span",28),a(5),c(6,"dateFormat"),c(7,"dateFormat"),l()()}if(o&2){let e=d(3);P("school-orders__cycle-chip--active",(e.selectedCycle==null?null:e.selectedCycle.id)===e.quickNextCycle.id),n(2),h(p(3,6,"schoolAdmin.NextCycle")),n(3),K("",e.quickNextCycle.name," \xB7 ",I(6,8,e.quickNextCycle.serviceStartDate,"mdShort","school")," \u2013 ",I(7,12,e.quickNextCycle.serviceEndDate,"mdShort","school"))}}function ut(o,s){if(o&1){let e=w();m(0,ht,9,16,"button",22),m(1,mt,8,16,"button",22),r(2,"button",23),v("click",function(){f(e);let i=d(2);return y(i.otherCycleMode=!0)}),k(3,"mat-icon",24),a(4),c(5,"transloco"),l()}if(o&2){let e=d(2);u(e.quickCurrentCycle?0:-1),n(),u(e.quickNextCycle?1:-1),n(),P("school-orders__cycle-chip--active",e.selectedCycle&&e.selectedCycle.id!==(e.quickCurrentCycle==null?null:e.quickCurrentCycle.id)&&e.selectedCycle.id!==(e.quickNextCycle==null?null:e.quickNextCycle.id)),n(2),V("",p(5,5,"vendorAdmin.OtherCycle")," ")}}function Ct(o,s){if(o&1){let e=w();r(0,"button",31),v("click",function(){f(e);let i=d(3);return y(i.otherCycleMode=!1)}),r(1,"mat-icon"),a(2,"arrow_back"),l(),a(3),c(4,"transloco"),l()}o&2&&(n(3),V("",p(4,1,"vendorAdmin.CurrentNext")," "))}function xt(o,s){if(o&1){let e=w();m(0,Ct,5,3,"button",29),r(1,"path-autocomplete",30),c(2,"transloco"),v("valueChanged",function(i){f(e);let _=d(2);return y(_.cycleSelected(i))}),l()}if(o&2){let e=d(2);u(e.hasQuickCycles()?0:-1),n(),O("label",A(p(2,8,"vendorAdmin.OtherCycle")))("formGroup",e.form)("values",e.filteredCycles)("required",!0)("displayWith",e.displayCycleShort.bind(e))("emitClears",!0)}}function gt(o,s){if(o&1){let e=w();r(0,"path-loading-spinner",32),c(1,"transloco"),v("cancelled",function(){f(e);let i=d(2);return y(i.cancelCycleLoad())}),l()}if(o&2){let e=d(2);O("message",Q("",p(1,5,"common.Loading"),"..."))("isLoading",e.loadingCycles)("overlay",!0)("cancellable",!0)}}function ft(o,s){o&1&&(r(0,"section",33)(1,"mat-icon",34),a(2,"inbox"),l(),r(3,"div",35),a(4),c(5,"transloco"),l(),r(6,"div",36),a(7),c(8,"transloco"),l()()),o&2&&(n(4),h(p(5,2,"common.NoOrders")),n(3),h(p(8,4,"common.NoOrdersForCycle")))}function yt(o,s){if(o&1&&(r(0,"div",76),a(1),c(2,"transloco"),c(3,"transloco"),l()),o&2){let e=d(5
1);n(),se("",e.totalMeat," ",p(2,4,"common.Meat")," \xB7 ",e.totalVegetarian," ",p(3,6,"common.Vegetarian"))}}function vt(o,s){if(o&1&&(r(0,"div",44)(1,"div",73),k(2,"mat-icon",74),a(3),c(4,"transloco"),l(),r(5,"div",75),a(6),l(),m(7,yt,4,8,"div",76),l()),o&2){let e=d(4);n(3),h(p(4,3,"common.Meals")),n(3),h(e.totalMeals),n(),u(e.hasMultipleMealTypes()?7:-1)}}function St(o,s){o&1&&a(0,"\xA0\xB7\xA0")}function wt(o,s){if(o&1&&(a(0),c(1,"getLangText"),m(2,St,1,0)),o&2){let e=s.$implicit,t=s.$index,i=s.$count;q(" ",e.quantity," ",D(1,3,e.drink,"shortName")),n(2),u(t!==i-1?2:-1)}}function Ot(o,s){if(o&1&&(r(0,"div",45)(1,"div",73)(2,"mat-icon"),a(3,"local_drink"),l(),a(4),c(5,"transloco"),l(),r(6,"div",75),a(7),l(),r(8,"div",76),T(9,wt,3,6,null,null,oe),l()()),o&2){let e=d(4);n(4),h(p(5,2,"common.Drinks")),n(3),h(e.drinksKpiTotal()),n(2),E(e.drinkTotals)}}function Mt(o,s){o&1&&(r(0,"span",84),a(1),c(2,"transloco"),l()),o&2&&(n(),h(p(2,1,"common.Closed")))}function kt(o,s){if(o&1){let e=w();r(0,"button",80),v("click",function(){let i=f(e).$implicit,_=d(5);return y(_.selectDay(i.index))}),r(1,"span",81),a(2),c(3,"dateFormat"),l(),r(4,"span",82),a(5),c(6,"dateFormat"),l(),r(7,"span",83),a(8),c(9,"transloco"),l(),m(10,Mt,3,3,"span",84),l()}if(o&2){let e=s.$implicit,t=d(5);P("school-orders__day-chip--active",e.index===t.selectedDayIndex)("school-orders__day-chip--today",e.isToday)("school-orders__day-chip--closed",e.closed),n(2),h(I(3,10,e.date,"dayShort","school")),n(3),h(I(6,14,e.date,"dayOfMonth","school")),n(3),h(!e.closed&&e.isToday?p(9,18,"common.Today"):""),n(2),u(e.closed?10:-1)}}function bt(o,s){if(o&1&&(r(0,"div",52)(1,"span",77),a(2),c(3,"transloco"),l(),r(4,"div",78),T(5,kt,11,20,"button",79,ct),l()()),o&2){let e=s.$implicit;n(2),q("",p(3,2,"common.Week")," ",e.weekIndex+1),n(3),E(e.days)}}function Pt(o,s){o&1&&(r(0,"span",88),a(1),c(2,"transloco"),l()),o&2&&(n(),h(p(2,1,"common.Today")))}function It(o,s){o&1&&(r(0,"mat-icon"),a(1,"ac_unit"),l())}function Ft(o,s){o&1&&k(0,"mat-icon",96)}function Tt(o,s){if(o&1&&(r(0,"span",95),m(1,It,2,0,"mat-icon")(2,Ft,1,0,"mat-icon",96),a(3),c(4,"transloco"),l()),o&2){let e=d();P("school-orders__closure--snow",e.closure.snowDay),n(),u(e.closure.snowDay?1:2),n(2),V("",p(4,4,e.closure.snowDay?"schoolClosure.SnowDay":"common.Closed")," ")}}function Et(o,s){if(o&1){let e=w();r(0,"button",97),v("click",function(){f(e);let i=d(5);return y(i.printSchoolStudentReport(i.focusedMeta().dayIndex+1,i.focusedMeta().weekIndex+1))}),r(1,"mat-icon"),a(2,"badge"),l(),r(3,"span",69),a(4),c(5,"transloco"),l()()}if(o&2){let e=d(),t=d(4);O("disabled",t.loadingReportId!==null||(e.orders==null?null:e.orders.length)===0),n(4),h(p(5,2,"vendorAdmin.StudentReport"))}}function Dt(o,s){if(o&1){let e=w();r(0,"button",97),v("click",function(){f(e);let i=d(5);return y(i.printSchoolTotalsReport(i.focusedMeta().dayIndex+1,i.focusedMeta().weekIndex+1))}),r(1,"mat-icon"),a(2,"summarize"),l(),r(3,"span",69),a(4),c(5,"transloco"),l()()}if(o&2){let e=d(),t=d(4);O("disabled",t.loadingReportId!==null||(e.orders==null?null:e.orders.length)===0),n(4),h(p(5,2,"vendorAdmin.TotalsReport"))}}function Bt(o,s){o&1&&(r(0,"mat-icon"),a(1,"ac_unit"),l())}function Vt(o,s){o&1&&k(0,"mat-icon",96)}function At(o,s){if(o&1&&(r(0,"div",93),m(1,Bt,2,0,"mat-icon")(2,Vt,1,0,"mat-icon",96),r(3,"span"),a(4),c(5,"transloco"),l()()),o&2){let e=d(),t=d(4);n(),u(e.closure.snowDay?1:2),n(3),h(t.closureName(e.closure)||p(5,2,"common.Closed"))}}function zt(o,s){if(o&1&&(r(0,"div",104)(1,"mat-icon",105),a(2,"local_drink"),l(),r(3,"span",106),a(4),c(5,"getLangText"),l(),r(6,"span",107),a(7),l()()),o&2){let e=s.$implicit;n(4),h(D(5,2,e.drink,"shortName")),n(3),h(e.quantity)}}function Rt(o,s){if(o&1&&T(0,zt,8,5,"div",104,oe),o&2){let e=d(3);E(e.drinks)}}function qt(o,s){o&1&&(r(0,"div",103),a(1),c(2,"transloco"),l()),o&2&&(n(),h(p(2,1,"vendorAdmin.NoDrinksOrdered")))}function Nt(o,s){if(o&1&&(r(0,"div",101)(1,"div",102),a(2),c(3,"transloco"),l(),m(4,Rt,2,0)(5,qt,3,3,"div",103),l()),o&2){let e=d(2);n(2),h(p(3,2,"common.Drinks")),n(2),u(e.drinks.length>0?4:5)}}function $t(o,s){if(o&1&&(r(0,"div",98)(1,"div",99),k(2,"path-meal-breakdown-table",100),l(),m(3,Nt,6,4,"div",101),l()),o&2){let e=d(),t=d(4);P("school-orders__focus-grid--full",!t.showDrinks()),n(2),O("rows",t.mealRows(e))("glutenFriendly",t.hasGlutenFriendly())("showHeader",!0)("showTotal",!0)("showLabels",!1),n(),u(t.showDrinks()?3:-1)}}function Lt(o,s){if(o&1&&(r(0,"div",53)(1,"div",85)(2,"div",86)(3,"div",87),a(4),c(5,"dateFormat"),m(6,Pt,3,3,"span",88),m(7,Tt,5,6,"span",89),l(),r(8,"div",90),a(9),c(10,"dateFormat"),l()(),r(11,"div",91),m(12,Et,6,4,"button",92),m(13,Dt,6,4,"button",92),l()(),m(14,At,6,4,"div",93)(15,$t,4,8,"div",94),l()),o&2){let e,t=s,i=d(4);
1n(4),V(" ",I(5,7,t.date,"day","school")," "),n(2),u((e=i.focusedMeta())!=null&&e.isToday?6:-1),n(),u(t.closure?7:-1),n(2),h(I(10,11,t.date,"md","school")),n(3),u(i.catalog.shows(i.reportCode.SchoolStudent)?12:-1),n(),u(i.catalog.shows(i.reportCode.SchoolTotals)?13:-1),n(),u(i.isCollapsedClosure(t)?14:15)}}function Gt(o,s){if(o&1){let e=w();r(0,"button",108),c(1,"transloco"),v("click",function(){f(e);let i=d(4);return y(i.togglePinSchedule())}),r(2,"mat-icon"),a(3,"push_pin"),l()()}if(o&2){let e=d(4);P("school-orders__pin--active",e.pinSchedule),G("aria-label",p(1,3,"vendorAdmin.PinSection"))}}function Wt(o,s){o&1&&(r(0,"span",116),a(1),c(2,"transloco"),l(),r(3,"span",116),a(4),c(5,"transloco"),l()),o&2&&(n(),h(p(2,2,"common.Reg")),n(3),h(p(5,4,"common.GF")))}function Yt(o,s){o&1&&(r(0,"div",117),a(1),c(2,"transloco"),l()),o&2&&(n(),h(p(2,1,"common.Drinks")))}function Ut(o,s){o&1&&(r(0,"span",121),a(1),c(2,"transloco"),l()),o&2&&(n(),h(p(2,1,"common.Today")))}function Ht(o,s){o&1&&(r(0,"mat-icon"),a(1,"ac_unit"),l())}function jt(o,s){o&1&&k(0,"mat-icon",96)}function Kt(o,s){if(o&1&&(r(0,"span",95),m(1,Ht,2,0,"mat-icon")(2,jt,1,0,"mat-icon",96),a(3),c(4,"transloco"),l()),o&2){let e=d(2).$implicit;P("school-orders__closure--snow",e.closure.snowDay),n(),u(e.closure.snowDay?1:2),n(2),V("",p(4,4,e.closure.snowDay?"schoolClosure.SnowDay":"common.Closed")," ")}}function Qt(o,s){if(o&1){let e=w();r(0,"button",125),v("click",function(){f(e);let i=d(2).$index,_=d().$index,g=d(5);return y(g.printSchoolTotalsReport(i+1,_+1))}),r(1,"mat-icon"),a(2,"summarize"),l(),r(3,"span",69),a(4),c(5,"transloco"),l()()}if(o&2){let e=d(2).$implicit,t=d(6);O("disabled",t.loadingReportId!==null||(e.orders==null?null:e.orders.length)===0),n(4),h(p(5,2,"vendorAdmin.TotalsReport"))}}function Jt(o,s){o&1&&(r(0,"mat-icon"),a(1,"ac_unit"),l())}function Xt(o,s){o&1&&k(0,"mat-icon",96)}function Zt(o,s){if(o&1&&(r(0,"div",124),m(1,Jt,2,0,"mat-icon")(2,Xt,1,0,"mat-icon",96),r(3,"span"),a(4),c(5,"transloco"),l()()),o&2){let e=d(2).$implicit,t=d(6);n(),u(e.closure.snowDay?1:2),n(3),h(t.closureName(e.closure)||p(5,2,"common.Closed"))}}function eo(o,s){if(o&1&&(r(0,"div",104)(1,"mat-icon",105),a(2,"local_drink"),l(),r(3,"span",106),a(4),c(5,"getLangText"),l(),r(6,"span",107),a(7),l()()),o&2){let e=s.$implicit;n(4),h(D(5,2,e.drink,"shortName")),n(3),h(e.quantity)}}function to(o,s){if(o&1&&T(0,eo,8,5,"div",104,oe),o&2){let e=d(4).$implicit;E(e.drinks)}}function oo(o,s){o&1&&(r(0,"div",103),a(1),c(2,"transloco"),l()),o&2&&(n(),h(p(2,1,"vendorAdmin.NoDrinksOrdered")))}function io(o,s){if(o&1&&(r(0,"div",128),m(1,to,2,0)(2,oo,3,3,"div",103),l()),o&2){let e=d(3).$implicit;n(),u(e.drinks.length>0?1:2)}}function no(o,s){if(o&1&&(r(0,"div",126),k(1,"path-meal-breakdown-table",127),l(),m(2,io,3,1,"div",128)),o&2){let e=d(2).$implicit,t=d(6);n(),O("rows",t.mealRows(e))("glutenFriendly",t.hasGlutenFriendly())("showLabels",!1),n(),u(t.showDrinks()?2:-1)}}function ro(o,s){if(o&1&&(r(0,"div",118)(1,"div",119)(2,"div",120),a(3),c(4,"dateFormat"),m(5,Ut,3,3,"span",121),l(),r(6,"div",122),a(7),c(8,"dateFormat"),l(),m(9,Kt,5,6,"span",89)(10,Qt,6,4,"button",123),l(),m(11,Zt,6,4,"div",124)(12,no,3,4),l()),o&2){let e=d().$implicit,t=d(6);n(3),V(" ",I(4,5,e.date,"day","school")," "),n(2),u(t.isToday(e.date)?5:-1),n(2),h(I(8,9,e.date,"mdShort","school")),n(2),u(e.closure?9:t.catalog.shows(t.reportCode.SchoolTotals)?10:-1),n(2),u(t.isCollapsedClosure(e)?11:12)}}function lo(o,s){if(o&1&&m(0,ro,13,13,"div",118),o&2){let e=s.$implicit;u(e.meals.length>0||e.drinks.length>0||e.closure?0:-1)}}function ao(o,s){if(o&1&&(r(0,"div",109)(1,"div",110),a(2),c(3,"transloco"),l(),r(4,"div",111)(5,"div",112)(6,"div",113),a(7),c(8,"transloco"),l(),r(9,"div",114)(10,"span",115),a(11),c(12,"transloco"),l(),m(13,Wt,6,6),r(14,"span",116),a(15),c(16,"transloco"),l()(),m(17,Yt,3,3,"div",117),l(),T(18,lo,1,1,null,null,j),l()()),o&2){let e=s.$implicit,t=s.$index,i=d(5);n(2),q("",p(3,9,"common.Week")," ",t+1),n(2),P("school-orders__week-grid--no-drinks",!i.showDrinks()),n(3),h(p(8,11,"common.Date")),n(4),h(p(12,13,"common.Meals")),n(2),u(i.hasGlutenFriendly()?13:-1),n(2),h(p(16,15,"common.Total")),n(2),u(i.showDrinks()?17:-1),n(),E(e)}}function so(o,s){if(o&1&&(r(0,"div",60),T(1,ao,20,17,"div",109,j),l()),o&2){let e=d(4);n(),E(e.weeks)}}function co(o,s){if(o&1){let e=w();r(0,"path-autocomplete",129),c(1,"transloco"),v("valueChanged",function(i){f(e);let _=d(4);return y(_.classSelected(i))}),l()}if(o&2){let e=d(4);O("label",A(p(1,6,"common.Class")))("formGroup",e.reportFilterForm)("values",e.classes)("displayWith",e.displayClassName.bind(e))("emitClears",!0)}}function _o(o,s){if(o&1&&(r(0,"span",134),a(1),c(2,"getLangText"),l()),o&2){let e=d().$implicit;n(),h(D(2,1,e,"subtitle"))}}function po(o,s){o&1&&(r(0,"span",135),a(1),c(2,"transloco"),l()),o&2&&(n(),h(p(2,1,"common.AllDates")))}function ho(o,s){if(o&1){let e=w();r(0,"button",130),v("click",function(){let i=f(e).$implicit,_=d(4);return y(_.printReport(i))}),r(1,"span",131)(2,"mat-icon"),a(3),l()(),r(4,"span",132)(5,"span",133),a(6),c(7,"getLangText"),l(),m(8,_o,3,4,"span",134),c(9,"getLangText"),m(10,po,3,3,"span",135),l(),r(11,"mat-icon",136),a(12,"arrow_forward"),l()()}if(o&2){let e=s.$implicit,t=d(4);O("disabled",t.loadingReportId!==null||(t.schoolOrder==null||t.schoolOrder.orderMeals==null?null:t.schoolOrder.orderMeals.length)===0),n(3),h(e.icon??"description"),n(3),h(D(7,5,e,"title")),n(2),u(D(9,8,e,"subtitle")?8:-1),n(2),u(t.reportIgnoresDate(e)?10:-1)}}function mo(o,s){if(o&1&&(r(0,"span",134),a(1),c(2,"getLangText"),l()),o&2){let e=d().$implicit;n(),h(D(2,1,e,"subtitle"))}}function uo(o,s){o&1&&(r(0,"span",135),a(1),c(2,"transloco"),l()),o&2&&(n(),h(p(2,1,"common.AllDates")))}function Co(o,s){if(o&1){let e=w();r(0,"button",130),v("click",function(){let i=f(e).$implicit,_=d(5);return y(_.printReport(i))}),r(1,"span",131)(2,"mat-icon"),a(3),l()(),r(4,"span",132)(5,"span",133),a(6),c(7,"getLangText"),l(),m(8,mo,3,4,"span",134),c(9,"getLangText"),m(10,uo,3,3,"span",135),l(),r(11,"mat-icon",136),a(12,"arrow_forward"),l()()}if(o&2){let e=s.$implicit,t=d(5);O("disabled",t.loadingReportId!==null||(t.schoolOrder==null||t.schoolOrder.orderMeals==null?null:t.schoolOrder.orderMeals.length)===0),n(3),h(e.icon??"description"),n(3),h(D(7,5,e,"title")),n(2),u(D(9,8,e,"subtitle")?8:-1),n(2),u(t.reportIgnoresDate(e)?10:-1)}}
1function xo(o,s){if(o&1&&(r(0,"div",72),T(1,Co,13,11,"button",71,rt),l()),o&2){let e=d(4);n(),E(e.catalog.custom)}}function go(o,s){if(o&1){let e=w();r(0,"section",37)(1,"div",38)(2,"div",39)(3,"div",40)(4,"span",41),a(5),l()(),r(6,"div",42),a(7),c(8,"dateFormat"),c(9,"dateFormat"),l()(),r(10,"div",43),m(11,vt,8,5,"div",44),m(12,Ot,11,4,"div",45),l()()(),r(13,"div",46)(14,"section",47)(15,"div",48)(16,"span",49),a(17),c(18,"transloco"),l(),r(19,"button",50),c(20,"transloco"),v("click",function(){f(e);let i=d(3);return y(i.toggleReportsOrder())}),r(21,"mat-icon"),a(22),l()()(),r(23,"div",51),T(24,bt,7,4,"div",52,st),l(),m(26,Lt,16,15,"div",53),r(27,"div",54)(28,"div",55)(29,"button",56),v("click",function(){f(e);let i=d(3);return y(i.toggleSchedule())}),r(30,"mat-icon"),a(31,"calendar_month"),l(),r(32,"span",57),a(33),c(34,"transloco"),l(),r(35,"span",58),a(36),c(37,"transloco"),l(),r(38,"mat-icon",13),a(39,"expand_more"),l()(),m(40,Gt,4,5,"button",59),l(),m(41,so,3,0,"div",60),l()(),r(42,"section",61)(43,"div",48)(44,"span",49),a(45),c(46,"transloco"),l(),r(47,"button",50),c(48,"transloco"),v("click",function(){f(e);let i=d(3);return y(i.toggleReportsOrder())}),r(49,"mat-icon"),a(50),l()()(),r(51,"div",62)(52,"span",63),a(53),c(54,"transloco"),l(),r(55,"path-autocomplete",64),c(56,"transloco"),v("valueChanged",function(i){f(e);let _=d(3);return y(_.dateFilterSelected(i))}),l(),r(57,"path-autocomplete",65),c(58,"transloco"),v("valueChanged",function(i){f(e);let _=d(3);return y(_.gradeSelected(i))}),l(),m(59,co,2,8,"path-autocomplete",66),r(60,"button",67),v("click",function(){f(e);let i=d(3);return y(i.resetFilters())}),k(61,"mat-icon",68),r(62,"span",69),a(63),c(64,"transloco"),l()()(),r(65,"div",70),T(66,ho,13,11,"button",71,rt),l(),m(68,xo,3,0,"div",72),l()()}if(o&2){let e,t=d(3);n(5),h(t.schoolOrder.cycle==null?null:t.schoolOrder.cycle.name),n(2),q("",I(8,36,t.schoolOrder.cycle==null?null:t.schoolOrder.cycle.serviceStartDate,"md","school")," \u2013 ",I(9,40,t.schoolOrder.cycle==null?null:t.schoolOrder.cycle.serviceEndDate,"md","school")),n(4),u(t.hasAnyMeals()?11:-1),n(),u(t.showDrinks()?12:-1),n(5),h(p(18,44,"vendorAdmin.DailyOrders")),n(2),G("aria-label",p(20,46,"vendorAdmin.SwapSections")),n(3),h(t.reportsFirst?"move_up":"move_down"),n(2),E(t.dayGroups()),n(2),u((e=t.focusedDay())?26:-1,e),n(7),h(p(34,48,"vendorAdmin.FullCycleSchedule")),n(3),h(p(37,50,t.showAllSchedule?"common.Hide":"common.Show")),n(2),P("school-orders__chevron--open",t.showAllSchedule),n(2),u(t.showAllSchedule?40:-1),n(),u(t.showAllSchedule?41:-1),n(),P("school-orders__reports--first",t.reportsFirst),n(3),h(p(46,52,"schoolAdmin.Reports")),n(2),G("aria-label",p(48,54,"vendorAdmin.SwapSections")),n(3),h(t.reportsFirst?"move_down":"move_up"),n(3),h(p(54,56,"common.Filter")),n(2),O("label",A(p(56,58,"common.Date")))("formGroup",t.reportFilterForm)("values",t.orderMealDates)("displayWith",t.displayDateName.bind(t))("emitClears",!0),n(2),O("label",A(p(58,60,"common.Grade")))("formGroup",t.reportFilterForm)("values",t.grades)("displayWith",t.displayGradeName.bind(t))("emitClears",!0),n(2),u(t.gradeFilterSelection?59:-1),n(4),h(p(64,62,"common.ResetFilters")),n(3),E(t.catalog.builtIn),n(2),u(t.catalog.custom.length?68:-1)}}function fo(o,s){if(o&1&&m(0,ft,9,6,"section",33)(1,go,69,64),o&2){let e=d(2);u(e.hasCycleContent()?1:0)}}function yo(o,s){if(o&1){let e=w();r(0,"section",3)(1,"div",4)(2,"span",5),k(3,"mat-icon",6),l(),r(4,"div",7)(5,"span",8),a(6),c(7,"transloco"),l(),r(8,"span",9),a(9),c(10,"transloco"),l()(),r(11,"div",10)(12,"span",8),a(13),c(14,"transloco"),l(),r(15,"span",11),a(16),l()(),r(17,"button",12),v("click",function(){f(e);let i=d();return y(i.showFilter=!i.showFilter)}),r(18,"mat-icon"),a(19,"tune"),l(),a(20),c(21,"transloco"),r(22,"mat-icon",13),a(23,"expand_more"),l()()(),m(24,pt,5,10),k(25,"div",14),r(26,"div",15)(27,"div",16)(28,"div",17),m(29,ut,6,7)(30,xt,3,10),l()()()(),m(31,gt,2,7,"path-loading-spinner",2)(32,fo,2,1)}if(o&2){let e,t=d();n(6),h(p(7,10,"common.School")),n(3),h((t.selectedSchool==null?null:t.selectedSchool.name)??p(10,12,"common.School")),n(4),h(p(14,14,"common.Year")),n(3),h((e=t.form.get("yearId"))==null||e.value==null?null:e.value.description),n(4),V("",p(21,16,t.showFilter?"vendorAdmin.Done":"vendorAdmin.Change")," "),n(2),P("school-orders__chevron--open",t.showFilter),n(2),u(t.showFilter?24:-1),n(5),u(t.otherCycleMode?30:29),n(2),u(t.loadingCycles?31:t.schoolOrder?32:-1)}}function vo(o,s){if(o&1){let e=w();r(0,"path-loading-spinner",32),c(1,"transloco"),v("cancelled",function(){f(e);let i=d();return y(i.cancelReport())}),l()}if(o&2){let e=d();O("message",A(p(1,5,"schoolAdmin.GeneratingReport")))("isLoading",e.loadingReportId!==null)("overlay",!0)("cancellable",!0)}}var ie=(()=>{class o{constructor(){this.orderService=M($e),this.schoolService=M(Ge),this.cycleService=M(Ne),this.snackbarService=M(Re),this.yearService=M(Ue),this.configurationService=M(qe),this.featureService=M(ze),this.translocoService=M(we),this.storageService=M(Ae),this.dialog=M(xe),this.dateFormatPipe=M(N),this.languageText=M($),this.dateHelper=M(Le),this.route=M(ve),this.router=M(Se),this.reportCode=Y,this.catalog=new ot,this.quickCurrentCycle=null,this.quickNextCycle=null,this.otherCycleMode=!1,this.cycleOpen=!1,this.cycleMenus=[],this.closures=[],this.overrides=[],this.drinkTotals=[],this.totalMeals=0,this.totalMeat=0,this.totalVegetarian=0,this.loadingCycles=!1,this.loadingReportId=null,this.ready=!1,this.show
1Filter=!1,this.showAllSchedule=!1,this.pinSchedule=!1,this.reportsFirst=!1,this.dayList=[],this.selectedDayIndex=0,this.form=new J({schoolId:new z(null),yearId:new z(null),cycleId:new z(null,{validators:[_e.required]})}),this.reportFilterForm=new J({date:new z(null),gradeId:new z(null),classId:new z(null)}),this.applyingUrlState=!1}ngOnInit(){this.loadViewPrefs();let e=new He,t=this.cycleService.list(null,null,null,e),i=this.configurationService.getByCode$("food.defaultYearId"),_=this.yearService.listAll(),g=this.schoolService.listForDashboard({includeReportTemplateIds:!0}),x=this.schoolService.listReports().pipe(le(()=>(this.snackbarService.open(this.translocoService.translate("schoolAdmin.ErrorGeneratingReport"),null,3e3),ne([]))));re([t,_,i,g,x]).subscribe(([C,S,b,H,F])=>{this.cycles=C.list,this.years=S,this.defaultYearId=b.intValue,this.schools=H,this.catalog.setReports(F),this.applyUrlStateOnInit(),this.ready=!0})}applyUrlStateOnInit(){this.applyingUrlState=!0;let e=Number(this.route.snapshot.paramMap.get("id")),t=this.route.snapshot.queryParamMap,i=Number(t.get("year")),_=Number(t.get("cycle")),g=this.years.find(S=>S.id===i)??this.years.find(S=>S.id===this.defaultYearId);this.selectedYearId=g?.id,this.form.controls.yearId.setValue(g),this.cycles.sort((S,b)=>new Date(b.serviceStartDate).getTime()-new Date(S.serviceStartDate).getTime());let x=this.schools?.find(S=>S.id===e)??null;!x&&this.schools?.length===1&&(x=this.schools[0]),this.selectedSchool=x,this.refreshCatalog(),this.form.controls.schoolId.setValue(x),this.showFilter=!x,this.applyCycleFilter();let C=this.filteredCycles?.find(S=>S.id===_);C&&(this.selectedCycle=C,this.form.controls.cycleId.setValue(C),this.syncCycleMode()),this.cycleSelected(this.selectedCycle),(!this.selectedSchool||!this.selectedCycle)&&(this.applyingUrlState=!1)}syncUrl(){if(this.applyingUrlState)return;let e={year:this.selectedYearId??null,cycle:this.selectedCycle?.id??null},t=this.selectedSchool?["/school",this.selectedSchool.id]:["/school"];this.router.navigate(t,{queryParams:e,replaceUrl:!0})}yearSelected(e){this.selectedYearId=e?.id,this.form.controls.yearId.setValue(this.years.find(t=>t.id===this.selectedYearId)),this.form.controls.cycleId.setValue(null),this.filteredCycles=null,this.selectedCycle=null,this.cycles.sort((t,i)=>new Date(i.serviceStartDate).getTime()-new Date(t.serviceStartDate).getTime()),this.applyCycleFilter(),this.schools?.length===1&&(this.form.controls.schoolId.setValue(this.schools[0]),this.selectedSchool=this.schools[0],this.refreshCatalog()),this.cycleSelected(this.selectedCycle),this.syncUrl()}setSchool(e){this.selectedSchool=e,this.refreshCatalog(),this.applyCycleFilter(),this.cycleSelected(this.selectedCycle),this.syncUrl()}applyCycleFilter(){let e=this.featureService.hasFeature("schoolFood.cycleSets"),t=this.selectedSchool?.vendor?.cycleSetId;this.filteredCycles=this.cycles.filter(C=>C.yearId===this.selectedYearId&&(!e||!t||C.cycleSetId===t)).sort((C,S)=>new Date(S.serviceStartDate).getTime()-new Date(C.serviceStartDate).getTime()),this.selectedCycle&&!this.filteredCycles.some(C=>C.id===this.selectedCycle.id)&&(this.selectedCycle=null,this.form.controls.cycleId.setValue(null));let i=X.timezone,_=R.tz(i).startOf("day"),g=C=>R.tz(C.serviceStartDate,i).startOf("day"),x=C=>R.tz(C.serviceEndDate,i).startOf("day");this.quickCurrentCycle=[...this.filteredCycles].filter(C=>_.isSameOrAfter(g(C))&&_.isSameOrBefore(x(C))).sort((C,S)=>g(S).valueOf()-g(C).valueOf())[0]??null,this.quickNextCycle=[...this.filteredCycles].filter(C=>g(C).isAfter(_)).sort((C,S)=>g(C).valueOf()-g(S).valueOf())[0]??null,!this.selectedCycle&&this.defaultYearId===this.selectedYearId&&(this.selectedCycle=this.quickCurrentCycle??this.quickNextCycle??[...this.filteredCycles].sort((C,S)=>C.cycleOrder-S.cycleOrder)[0],this.form.controls.cycleId.setValue(this.selectedCycle)),this.syncCycleMode()}syncCycleMode(){this.otherCycleMode=!this.hasQuickCycles()||!!this.selectedCycle&&this.selectedCycle.id!==this.quickCurrentCycle?.id&&this.selectedCycle.id!==this.quickNextCycle?.id}hasQuickCycles(){return!!this.quickCurrentCycle||!!this.quickNextCycle}pickCycle(e){this.form.controls.cycleId.setValue(e),this.cycleSelected(e)}cycleSelected(e){this.selectedCycle=e,this.selectedSchool&&e?(this.loadingCycles=!0,this.cycleLoadSub?.unsubscribe(),this.cycleLoadSub=this.orderService.getSchoolCycleDashboard(this.selectedSchool.id,e.id).subscribe({next:t=>{this.loadingCycles=!1,this.schoolOrder={cycle:t.cycle,orderMeals:t.orderMeals??[],orderDrinks:t.orderDrinks??[]},this.cycleMenus=t.menus??[],this.closures=t.closures??[],this.overrides=t.overrides??[],this.schoolOrder.orderMeals.sort((i,_)=>(i.order.grade?.level??0)-(_.order.grade?.level??0)),this.createWeekArray(),this.createFilterLists(),this.computeDrinkTotals(),this.computeMealTotals(),this.resetFilters(),this.selectDefaultDay(),this.applyingUrlState=!1},error:()=>{this.loadingCycles=!1,this.applyingUrlState=!1}})):this.schoolOrder=null,this.cycleOpen=this.selectedCycle?.isBeforeOrderCloseDate,this.syncUrl()}cancelCycleLoad(){this.cycleLoadSub?.unsubscribe(),this.loadingCycles=!1,this.applyingUrlState=!1}cancelReport(){this.reportSub?.unsubscribe(),this.loadingReportId=null}sumMeals(e,t){return t.filter(i=>i.mealId===e.id&&i.glutenFree===!1).reduce((i,_)=>i+_.quantity,0)}sumGfMeals(e,t){return t.filter(i=>i.mealId===e.id&&i.glutenFree===!0).reduce((i,_)=>i+_.quantity,0)}mealRows(e){return e.meals.map(t=>{let i=this.sumMeals(t,e.orders),_=this.sumGfMeals(t,e.orders);return{meal:t,type:this.getMealType(t),reg:i,gf:_,isSubstitute:e.substituteMealIds.has(t.id),isOverrid
1den:i+_===0&&e.fullyOverriddenMealIds.has(t.id)}})}openReportDialog(e,t){this.dialog.open(tt,{width:"min(92vw, 1400px)",maxWidth:"95vw",maxHeight:"95vh",autoFocus:!1,data:{title:t,html:e}})}refreshCatalog(){this.catalog.setAssignment(this.selectedSchool?.reportTemplateIds,this.featureService.hasFeature("school.customReports"))}reportIgnoresDate(e){return this.dateFilterActive()&&e.reportScopeId===je.Cycle}dateFilterActive(){return!!this.dateFilterSelection}buildReportFilter(e,t,i){let _=new U;return _.schoolId=this.selectedSchool?.id,_.cycleId=this.selectedCycle?.id,_.day=t??this.dateFilterSelection?.day,_.week=i??this.dateFilterSelection?.week,_.gradeId=this.gradeFilterSelection?.id,_.classId=this.classFilterSelection?.id,_.templateId=e,_}printReport(e,t,i){this.loadingReportId=e.id;let _=this.buildReportFilter(e.id,t,i);this.reportSub=this.orderService.getSchoolReport(_).subscribe({next:g=>{this.loadingReportId=null,this.openReportDialog(g,this.languageText.transform(e,"title"))},error:()=>{this.loadingReportId=null,this.snackbarService.open(this.translocoService.translate("schoolAdmin.ErrorGeneratingReport"),null,3e3)}})}printSchoolTotalsReport(e,t){let i=this.catalog.byCode(Y.SchoolTotals);i&&this.printReport(i,e,t)}printSchoolStudentReport(e,t){let i=this.catalog.byCode(Y.SchoolStudent);i&&this.printReport(i,e,t)}dateFilterSelected(e){this.dateFilterSelection=e||null}gradeSelected(e){if(this.gradeFilterSelection=e,e){let t=new Map;this.schoolOrder.orderMeals.filter(i=>i.order.gradeId===e.id).forEach(i=>{i.order.class&&t.set(i.order.class?.id,i.order.class)}),this.classes=Array.from(t.values()).sort((i,_)=>i?.name.localeCompare(_?.name))}else this.gradeFilterSelection=null,this.classFilterSelection=null,this.reportFilterForm.controls.classId.setValue(null)}classSelected(e){this.classFilterSelection=e}resetFilters(){this.dateFilterSelection=null,this.gradeFilterSelection=null,this.classFilterSelection=null,this.reportFilterForm.controls.date.setValue(null),this.reportFilterForm.controls.classId.setValue(null),this.reportFilterForm.controls.gradeId.setValue(null)}static{this.PREFS_KEY="schoolOrders"}loadViewPrefs(){this.reportsFirst=this.storageService.getStoredMap(o.PREFS_KEY,"reportsFirst")==="true",this.pinSchedule=this.storageService.getStoredMap(o.PREFS_KEY,"pinSchedule")==="true",this.showAllSchedule=this.pinSchedule}savePref(e,t){this.storageService.setStoredMap(o.PREFS_KEY,e?"true":"false",t)}toggleReportsOrder(){this.reportsFirst=!this.reportsFirst,this.savePref(this.reportsFirst,"reportsFirst")}toggleSchedule(){this.showAllSchedule=!this.showAllSchedule,!this.showAllSchedule&&this.pinSchedule&&(this.pinSchedule=!1,this.savePref(this.pinSchedule,"pinSchedule"))}togglePinSchedule(){this.pinSchedule=!this.pinSchedule,this.savePref(this.pinSchedule,"pinSchedule")}displayCycleShort(e){if(!e)return"";let t=this.dateFormatPipe.transform(e.serviceStartDate,"mdShort","school"),i=this.dateFormatPipe.transform(e.serviceEndDate,"mdShort","school");return e.name+" \xB7 "+t+" \u2013 "+i}displaySchoolName(e){return e?.name}grayOutValue(e){return!e.active}displayDateName(e){return e?this.dateFormatPipe.transform(e.date,"md","dateOnly"):""}displayGradeName(e){let i=this.translocoService.getActiveLang()==="en"?e?.name:e?.name_fr;return e?i:""}displayClassName(e){return e?e.name:""}displayYearName(e){return e?.description}getMealType(e){return e.typeId===W.Vegetarian?"Vegetarian":"Meat"}hasGlutenFriendly(){return this.featureService.hasFeature("schoolFood.glutenFriendly")}hasMultipleMealTypes(){return!this.featureService.hasFeature("meals.singleMealType")}hasAnyMeals(){return this.totalMeals>0}hasCycleContent(){return this.hasAnyMeals()||this.showDrinks()}showDrinks(){return this.featureService.hasFeature("drinks.enabled")&&this.drinkTotals.length>0}drinksKpiTotal(){return this.drinkTotals.reduce((e,t)=>e+t.quantity,0)}createWeekArray(){this.weeks=[];let e=this.schoolOrder.cycle,t=e.cycleSetWeeks||(e.cycleSchoolTypeMenus?.find(x=>x.schoolType?.isDefault)?.menu?.weeks??0),i=new Set(this.overrides.flatMap(x=>{let C=this.dateHelper.getMenuSlotForDate(e,x.date);return C?(x.meals??[]).map(S=>`${C.week}-${C.day}-${S.mealId}`):[]})),_=(this.cycleMenus??[]).map(x=>({menu:x,schoolIds:[this.selectedSchool.id]})),g=it.fullyOverriddenMealIdsBySlot(this.overrides,_,x=>this.dateHelper.getMenuSlotForDate(e,x));for(let x=0;x<t;x++){this.weeks[x]=[];for(let C=0;C<5;C++){let S=this.schoolOrder.orderMeals.filter(F=>F.week-1===x&&F.day-1===C),b=new te,H=(this.cycleMenus??[]).flatMap(F=>(F.menuMeals??[]).filter(L=>L.week-1===x&&L.day-1===C).map(L=>L.meal));b.meals=this.dedupeMealsById([...H,...S.map(F=>F.meal)]),b.orders=S,b.drinks=this.groupDayDrinks(this.schoolOrder.orderDrinks,x,C),b.date=this.dateHelper.getDateForMenu(e,x,C),b.closure=this.findDayClosure(b.date),b.substituteMealIds=new Set(b.meals.filter(F=>i.has(`${x+1}-${C+1}-${F.id}`)).map(F=>F.id)),b.fullyOverriddenMealIds=g.get(`${x+1}-${C+1}`)??new Set,this.weeks[x][C]=b}}this.dayList=this.buildDayList(),this.selectedDayIndex>=this.dayList.length&&(this.selectedDayIndex=0)}dedupeMealsById(e){let t=new Map;return e.forEach(i=>
1{i&&!t.has(i.id)&&t.set(i.id,i)}),Array.from(t.values())}findDayClosure(e){return(this.closures??[]).find(t=>this.dateHelper.isSameDate(t.date,e))??null}isCollapsedClosure(e){return!!e?.closure&&(e.orders?.length??0)===0&&(e.drinks?.length??0)===0}closureName(e){return this.translocoService.getActiveLang()==="fr"?e.name_fr:e.name}createFilterLists(){this.orderMealDates=[...new Map(this.schoolOrder.orderMeals.map(t=>[t.date,t])).values()],this.orderMealDates=this.orderMealDates.sort((t,i)=>new Date(t.date).getTime()-new Date(i.date).getTime());let e=new Map;this.schoolOrder.orderMeals.forEach(t=>{e.set(t.order.grade?.id,t.order.grade)}),this.grades=Array.from(e.values()).filter(t=>t!==null).sort((t,i)=>t.level-i.level)}computeDrinkTotals(){let e=new Map;(this.schoolOrder?.orderDrinks??[]).forEach(t=>{let i=e.get(t.drinkId);i?i.quantity+=t.quantity:e.set(t.drinkId,{drink:t.drink,quantity:t.quantity})}),this.drinkTotals=Array.from(e.values()).sort((t,i)=>(t.drink?.shortName??"").localeCompare(i.drink?.shortName??""))}computeMealTotals(){let e=this.schoolOrder?.orderMeals??[];this.totalMeat=e.filter(t=>t.meal.typeId===W.Meat).reduce((t,i)=>t+i.quantity,0),this.totalVegetarian=e.filter(t=>t.meal.typeId===W.Vegetarian).reduce((t,i)=>t+i.quantity,0),this.totalMeals=this.totalMeat+this.totalVegetarian}groupDayDrinks(e,t,i){let _=new Map;return(e??[]).filter(g=>g.week-1===t&&g.day-1===i).forEach(g=>{let x=_.get(g.drinkId);x?x.quantity+=g.quantity:_.set(g.drinkId,{drink:g.drink,quantity:g.quantity})}),Array.from(_.values()).sort((g,x)=>(g.drink?.shortName??"").localeCompare(x.drink?.shortName??""))}focusedMeta(){return this.dayList[this.selectedDayIndex]??this.dayList[0]??null}focusedDay(){let e=this.focusedMeta();return e?this.weeks?.[e.weekIndex]?.[e.dayIndex]??null:null}dayGroups(){let e=[];return this.dayList.forEach(t=>{let i=e.find(_=>_.weekIndex===t.weekIndex);i||(i={weekIndex:t.weekIndex,days:[]},e.push(i)),i.days.push(t)}),e}selectDay(e){this.selectedDayIndex=e}selectDefaultDay(){let e=this.dayList.findIndex(t=>t.isToday);this.selectedDayIndex=e>=0?e:0}buildDayList(){let e=[];return(this.weeks??[]).forEach((t,i)=>{(t??[]).forEach((_,g)=>{((_.meals?.length??0)>0||(_.drinks?.length??0)>0||_.closure)&&e.push({index:e.length,weekIndex:i,dayIndex:g,date:_.date,isToday:this.isToday(_.date),closed:!!_.closure})})}),e}isToday(e){if(!e)return!1;let t=X.timezone;return R.tz(e,t).isSame(R.tz(t),"day")}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=ae({type:o,selectors:[["path-school"]],features:[ce([N,$])],decls:4,vars:2,consts:[[1,"school-orders"],[3,"isLoading","overlay","message"],[3,"isLoading","overlay","message","cancellable"],[1,"school-orders__card","school-orders__scope"],[1,"school-orders__scope-header"],[1,"school-orders__scope-badge"],["svgIcon","schools"],[1,"school-orders__scope-identity"],[1,"school-orders__chip-label"],[1,"school-orders__scope-name"],[1,"school-orders__scope-stat"],[1,"school-orders__scope-stat-value"],[1,"school-orders__scope-toggle",3,"click"],[1,"school-orders__chevron"],[1,"school-orders__divider"],[1,"school-orders__scope-pickers"],[1,"school-orders__cycle-picker"],[1,"school-orders__cycle-row"],[1,"school-orders__scope-fields","form--large"],["controlName","schoolId","subscriptSizing","dynamic",1,"school-orders__school-field",3,"label","formGroup","values","required","displayWith","emitClears","hintMessage","grayOutValue"],["controlName","yearId","subscriptSizing","dynamic",3,"valueChanged","label","formGroup","values","required","displayWith","emitClears"],["controlName","schoolId","subscriptSizing","dynamic",1,"school-orders__school-field",3,"valueChanged","label","formGroup","values","required","displayWith","emitClears","hintMessage","grayOutValue"],[1,"school-orders__cycle-chip",3,"school-orders__cycle-chip--active"],[1,"school-orders__cycle-chip","school-orders__cycle-chip--action","school-orders__cycle-chip--other",3,"click"],["svgIcon","cycles"],[1,"school-orders__cycle-chip",3,"click"],[1,"school-orders__cycle-chip-tag"],[1,"school-orders__cycle-chip-dot"],[1,"school-orders__cycle-chip-name"],[1,"school-orders__cycle-chip","school-orders__cycle-chip--action"],["controlName","cycleId","subscriptSizing","dynamic",1,"school-orders__cycle-select",3,"valueChanged","label","formGroup","values","required","displayWith","emitClears"],[1,"school-orders__cycle-chip","school-orders__cycle-chip--action",3,"click"],[3,"cancelled","isLoading","overlay","message","cancellable"],[1,"school-orders__card","school-orders__empty-state"],[1,"school-orders__empty-state-icon"],[1,"school-orders__empty-state-title"],[1,"school-orders__empty-state-sub"],[1,"school-orders__card","school-orders__summary"],[1,"school-orders__summary-head"],[1,"school-orders__summary-title"],[1,"school-orders__summary-heading"],[1,"school-orders__cycle-name"],[1,"school-orders__cycle-range"],[1,"school-orders__kpis"],[1,"school-orders__kpi","school-orders__kpi--meals"],[1,"school-orders__kpi","school-orders__kpi--drinks"],[1,"school-orders__stack"],[1,"school-orders__card","school-orders__day"],[1,"school-orders__section-head"],[1,"school-orders__section-title"],[1,"school-orders__swap",3,"click"],[1,"school-orders__day-selector"],[1,"school-orders__day-group"],[1,"school-orders__focus"],[1,"school-orders__schedule"],[1,"school-orders__section-bar"],[1,"school-orders__section-toggle",3,"click"],[1,"school-orders__section-toggle-title"],[1,"school-orders__section-toggle-hint"],[1,"school-orders__pin",3,"school-orders__pin--active"],[1,"school-orders__schedule-body"],[1,"school-orders__card","school-orders__reports"],[1,"school-orders__report-filter"],[1,"school-orders__report-filter-label"],["controlName","date","subscriptSizing","dynamic",3,"valueChanged","label","formGroup","values","displayWith","emitClears"],["controlName","gradeId","subscriptSizing","dynamic",3,"valueChanged","label","formGroup","values","displayWith","emitClears"],["controlName","classId","subscriptSizing","dynamic",3,"label","formGroup","values","displayWith","emitClears"],["matButton","text",1,"school-orders__report-filter-reset",3,"click"],["svgIcon","reset-filter"],[1,"button__label"],[1,"school-orders__report-tiles"],[1,"school-orders__tile",3,"disabled"],[1,"school-orders__report-tiles","school-orders__report-tiles--custom"],[1,"school-orders__kpi-label"],["svgIcon","meals"],[1,"school-orders__kpi-value"],[1,"school-orders__kpi-sub"],[1,"school-orders__day-group-label"],[1,"school-orders__day-chips"],[1,"school-orders__day-chip",3,"school-orders__day-chip--active","school-orders__day-chip--today","school-orders__day-chip--closed"],[1,"school-orders__day-chip",3,"click"],[1,"school-orders__day-chip-dow"],[1,"school-orders__day-chip-dom"],[1,"school-orders__day-chip-today"],[1,"school-orders__day-chip-closed"],[1,"school-orders__focus-head"],[1,"school-orders__focus-when"],[1,"school-orders__focus-weekday"],[1,"school-orders__badge"],[1,"school-orders__closure",3,"school-orders__closure--snow"],[1,"school-orders__focus-date"],[1,"school-orders__focus-actions"],["matButton","filled",3,"disabled"],[1,"school-orders__closed-note"],[1,"school-orders__focus-grid",3,"school-orders__focus-grid--full"],[1,"school-orders__closure"],["svgIcon","closed"],["matButton","filled",3,"click","disabled"],[1,"school-orders__focus-grid"],[1,"school-orders__focus-meals"],[3,"rows","glutenFriendly","showHeader","showTotal","showLabels"],[1,"school-orders__focus-drinks"],[1,"school-orders__col-label"],[1,"school-orders__empty"],[1,"school-orders__focus-drink"],[1,"school-orders__drink-icon"],[1,"school-orders__focus-drink-name"],[1,"school-orders__focus-drink-count"],[1,"school-orders__pin",3,"click"],[1,"school-orders__week"],[1,"school-orders__week-label"],[1,"school-orders__week-grid"],[1,"school-orders__week-head"],[1,"school-orders__week-head-cell"],[1,"school-orders__week-head-cell","school-orders__week-head-cell--meals"],[1,"school-orders__week-head-meals-label"],[1,"school-orders__week-head-num"],[1,"school-orders__week-head-cell","school-orders__week-head-cell--drinks"],[1,"school-orders__week-row"],[1,"school-orders__week-date"],[1,"school-orders__week-weekday"],[1,"school-orders__badge","school-orders__badge--sm"],[1,"school-orders__week-date-sub"],["matButton","outlined",1,"school-orders__day-report",3,"disabled"],[1,"school-orders__week-closed"],["matButton","outlined",1,"school-orders__day-report",3,"click","disabled"],[1,"school-orders__week-meals"],[3,"rows","glutenFriendly","showLabels"],[1,"school-orders__week-drinks"],["controlName","classId","subscriptSizing","dynamic",3,"valueChanged","label","formGroup","values","displayWith","emitClears"],[1,"school-orders__tile",3,"click","disabled"],[1,"school-orders__tile-icon"],[1,"school-orders__tile-text"],[1,"school-orders__tile-title"],[1,"school-orders__tile-sub"],[1,"school-orders__tile-chip"],[1,"school-orders__tile-arrow"]],template:function(t,i){t&1&&(r(0,"div",0),m(1,dt,2,6,"path-loading-spinner",1)(2,yo,33,18),m(3,vo,2,7,"path-loading-spinner",2),l()),t&2&&(n(),u(i.ready?2:1),n(2),u(i.loadingReportId!==null?3:-1))},dependencies:[de,me,pe,ue,he,be,ke,Pe,Ie,ge,Fe,ye,fe,Te,Ce,Ee,De,Be,Me,Ve,Ye,We,nt,Oe,N,$],styles:["[_nghost-%COMP%]{display:block}.school-orders[_ngcontent-%COMP%]{max-width:1180px;display:flex;flex-direction:column;gap:24px;--mat-button-text-icon-spacing: 8px;--mat-button-text-icon-offset: 4px}.school-orders__stack[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}.school-orders__reports--first[_ngcontent-%COMP%]{order:-1}.school-orders__card[_ngcontent-%COMP%]{background:var(--surface);border:1px solid var(--neutral-200);border-radius:8px;box-shadow:0 1px 2px #0000000f;padding:22px 28px}.school-orders__divider[_ngcontent-%COMP%]{height:1px;background:var(--neutral-200);margin:16px 0}.school-orders__chevron[_ngcontent-%COMP%]{transition:transform .2s}.school-orders__chevron--open[_ngcontent-%COMP%]{transform:rotate(180deg)}.school-orders__scope[_ngcontent-%COMP%]{padding:16px 22px}.school-orders__scope-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.school-orders__scope-badge[_ngcontent-%COMP%]{width:44px;height:44px;flex-shrink:0;border-radius:10px;background:var(--primary-50);display:flex;align-items:center;justify-content:center}.school-orders__scope-badge[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:24px;width:24px;height:24px;color:var(--primary-700)}.school-orders__scope-identity[_ngcontent-%COMP%]{flex:1;min-width:180px;display:flex;flex-direction:column;gap:2px}
1.school-orders__scope-name[_ngcontent-%COMP%]{font-weight:600;font-size:1.25rem;color:var(--mat-sys-on-surface)}.school-orders__scope-stat[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.school-orders__scope-stat-value[_ngcontent-%COMP%]{font-weight:600;color:var(--mat-sys-on-surface)}.school-orders__chip-label[_ngcontent-%COMP%]{font-weight:600;font-size:10px;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;color:var(--neutral-600)}.school-orders__scope-toggle[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--neutral-300);border-radius:8px;padding:9px 14px;cursor:pointer;color:var(--primary-700);font-weight:600;white-space:nowrap}.school-orders__scope-toggle[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.school-orders__scope-fields[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px}.school-orders__scope-fields[_ngcontent-%COMP%]   path-autocomplete[_ngcontent-%COMP%]{width:230px}.school-orders__scope-fields[_ngcontent-%COMP%]   .school-orders__school-field[_ngcontent-%COMP%]{flex:1 1 0;width:100%;min-width:320px;max-width:640px}.school-orders__scope-pickers[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:20px;width:100%}@media(max-width:899px){.school-orders__scope-pickers[_ngcontent-%COMP%]{flex-wrap:wrap}}.school-orders__cycle-picker[_ngcontent-%COMP%]{display:flex;flex:0 0 auto}.school-orders__cycle-row[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap;align-items:stretch}.school-orders__cycle-chip[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:48px;text-align:left;cursor:pointer;border-radius:8px;padding:0 14px;transition:border-color .15s,background .15s;border:1px solid var(--button-outline-color);background:var(--surface)}.school-orders__cycle-chip--active[_ngcontent-%COMP%]{border-color:var(--primary-accent);background:var(--primary-50)}.school-orders__cycle-chip--action[_ngcontent-%COMP%]{flex-direction:row;align-items:center;justify-content:center;gap:6px;font-weight:600;font-size:.875rem;white-space:nowrap;color:var(--mat-sys-on-surface)}.school-orders__cycle-chip--action[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px;color:var(--neutral-600)}.school-orders__cycle-chip--other[_ngcontent-%COMP%]{color:var(--primary-700)}.school-orders__cycle-chip--other[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:var(--primary-600)}.school-orders__cycle-chip-tag[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;font-weight:700;font-size:10px;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;color:var(--neutral-600)}.school-orders__cycle-chip-dot[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:999px;background:var(--neutral-300)}.school-orders__cycle-chip-name[_ngcontent-%COMP%]{font-weight:600;font-size:.875rem;color:var(--mat-sys-on-surface)}.school-orders__cycle-chip--active[_ngcontent-%COMP%]   .school-orders__cycle-chip-tag[_ngcontent-%COMP%]{color:var(--primary-800)}.school-orders__cycle-chip--active[_ngcontent-%COMP%]   .school-orders__cycle-chip-name[_ngcontent-%COMP%]{color:var(--primary-accent)}.school-orders__cycle-chip--active[_ngcontent-%COMP%]   .school-orders__cycle-chip-dot[_ngcontent-%COMP%]{background:var(--primary-accent)}.school-orders__cycle-select[_ngcontent-%COMP%]{width:260px}.school-orders__empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:56px 28px}.school-orders__empty-state-icon[_ngcontent-%COMP%]{font-size:44px;width:44px;height:44px;margin-bottom:6px;color:var(--neutral-400)}.school-orders__empty-state-title[_ngcontent-%COMP%]{font-weight:600;font-size:1.125rem;color:var(--mat-sys-on-surface)}.school-orders__empty-state-sub[_ngcontent-%COMP%]{color:var(--neutral-600)}.school-orders__summary-head[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:20px}.school-orders__summary-title[_ngcontent-%COMP%]{flex:1;
1min-width:200px}.school-orders__summary-heading[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.school-orders__cycle-name[_ngcontent-%COMP%]{font-weight:600;font-size:1.375rem;color:var(--mat-sys-on-surface)}.school-orders__cycle-range[_ngcontent-%COMP%]{margin-top:10px;color:var(--neutral-700)}.school-orders__kpis[_ngcontent-%COMP%]{display:flex;gap:14px;flex-wrap:wrap}.school-orders__kpi[_ngcontent-%COMP%]{min-width:150px;border-radius:8px;padding:12px 18px;border:1px solid var(--neutral-200)}.school-orders__kpi--meals[_ngcontent-%COMP%]{background:var(--primary-50);border-color:var(--primary-100)}.school-orders__kpi--drinks[_ngcontent-%COMP%]{background:var(--neutral-100)}.school-orders__kpi-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;margin-bottom:4px;font-weight:600;font-size:11px;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;color:var(--neutral-600)}.school-orders__kpi-label[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:17px;width:17px;height:17px}.school-orders__kpi-value[_ngcontent-%COMP%]{font-weight:800;font-size:1.875rem;line-height:1;font-variant-numeric:tabular-nums;color:var(--mat-sys-on-surface)}.school-orders__kpi-sub[_ngcontent-%COMP%]{font-weight:500;font-size:.75rem;margin-top:3px;color:var(--neutral-700)}.school-orders__kpi--meals[_ngcontent-%COMP%]   .school-orders__kpi-label[_ngcontent-%COMP%], .school-orders__kpi--meals[_ngcontent-%COMP%]   .school-orders__kpi-sub[_ngcontent-%COMP%]{color:var(--primary-700)}.school-orders__kpi--meals[_ngcontent-%COMP%]   .school-orders__kpi-value[_ngcontent-%COMP%]{color:var(--primary-800)}.school-orders__section-toggle[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;gap:10px;background:none;border:0;cursor:pointer;padding:6px 0;text-align:left;color:var(--mat-sys-on-surface)}.school-orders__section-toggle[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:var(--neutral-600)}.school-orders__section-toggle-title[_ngcontent-%COMP%]{font-weight:600;font-size:1rem;flex:1}.school-orders__section-toggle-hint[_ngcontent-%COMP%]{font-weight:500;font-size:.8125rem;color:var(--neutral-600)}.school-orders__section-bar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.school-orders__section-bar[_ngcontent-%COMP%]   .school-orders__section-toggle[_ngcontent-%COMP%]{flex:1;width:auto}.school-orders__pin[_ngcontent-%COMP%], .school-orders__swap[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;border-radius:8px;border:1px solid var(--neutral-200);background:transparent;cursor:pointer;transition:background .15s,border-color .15s,color .15s}.school-orders__pin[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .school-orders__swap[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px;color:var(--neutral-500)}.school-orders__pin[_ngcontent-%COMP%]:hover   mat-icon[_ngcontent-%COMP%], .school-orders__swap[_ngcontent-%COMP%]:hover   mat-icon[_ngcontent-%COMP%]{color:var(--neutral-700)}.school-orders__pin--active[_ngcontent-%COMP%]{border-color:var(--primary-300);background:var(--primary-50)}.school-orders__pin--active[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:var(--primary-700)}.school-orders__day-selector[_ngcontent-%COMP%]{display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start}.school-orders__day-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.school-orders__day-group-label[_ngcontent-%COMP%]{font-weight:700;font-size:11px;line-height:1;letter-spacing:.06em;text-transform:uppercase;color:var(--neutral-600)}.school-orders__day-chips[_ngcontent-%COMP%]{display:flex;gap:8px}.school-orders__day-chip[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:58px;padding:9px 10px;border-radius:10px;cursor:pointer;transition:all .15s;border:1px solid var(--neutral-200);background:var(--surface)}.school-orders__day-chip--today[_ngcontent-%COMP%]{border-color:var(--primary-300)}.school-orders__day-chip--active[_ngcontent-%COMP%]{border-color:var(--primary-600);background:var(--primary-500);box-shadow:0 1px 2px #0000000f}.school-orders__day-chip--closed[_ngcontent-%COMP%]:not(.school-orders__day-chip--active){opacity:.5;background:var(--surface-grey)}.school-orders__day-chip-closed[_ngcontent-%COMP%]{position:absolute;
1left:0;right:0;bottom:9px;height:9px;display:flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;font-weight:700;font-size:10px;line-height:1;text-transform:uppercase;color:var(--alert-500)}.school-orders__day-chip-dow[_ngcontent-%COMP%]{font-weight:600;font-size:11px;line-height:1;letter-spacing:.04em;text-transform:uppercase;color:var(--neutral-600)}.school-orders__day-chip-dom[_ngcontent-%COMP%]{font-weight:700;font-size:18px;line-height:1;font-variant-numeric:tabular-nums;color:var(--mat-sys-on-surface)}.school-orders__day-chip-today[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:9px;overflow:hidden;white-space:nowrap;font-weight:700;font-size:8px;line-height:1;letter-spacing:.04em;text-transform:uppercase;color:var(--primary-700)}.school-orders__day-chip--active[_ngcontent-%COMP%]   .school-orders__day-chip-dow[_ngcontent-%COMP%], .school-orders__day-chip--active[_ngcontent-%COMP%]   .school-orders__day-chip-dom[_ngcontent-%COMP%], .school-orders__day-chip--active[_ngcontent-%COMP%]   .school-orders__day-chip-today[_ngcontent-%COMP%], .school-orders__day-chip--active[_ngcontent-%COMP%]   .school-orders__day-chip-closed[_ngcontent-%COMP%]{color:var(--surface)}.school-orders__focus[_ngcontent-%COMP%]{margin-top:22px;border:1px solid var(--neutral-300);border-radius:10px;overflow:hidden}.school-orders__focus-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:16px 20px;background:var(--neutral-50);border-bottom:1px solid var(--neutral-200);flex-wrap:wrap}.school-orders__focus-when[_ngcontent-%COMP%]{flex:1;min-width:0}.school-orders__focus-weekday[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-weight:700;font-size:1.1875rem;color:var(--mat-sys-on-surface)}.school-orders__focus-date[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--neutral-700);margin-top:3px}.school-orders__focus-actions[_ngcontent-%COMP%]{display:flex;gap:10px;flex-shrink:0;flex-wrap:wrap}.school-orders__badge[_ngcontent-%COMP%]{font-weight:700;font-size:10px;line-height:1;letter-spacing:.06em;text-transform:uppercase;color:var(--surface);background:var(--primary-600);padding:4px 8px;border-radius:999px}.school-orders__badge--sm[_ngcontent-%COMP%]{font-size:8px;padding:3px 6px}.school-orders__closure[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;margin-top:2px;font-weight:700;font-size:10px;line-height:1;letter-spacing:.04em;text-transform:uppercase;color:var(--warning-900);background:var(--warning-100);padding:4px 8px;border-radius:999px}.school-orders__closure[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:13px;width:13px;height:13px}.school-orders__closure--snow[_ngcontent-%COMP%]{color:var(--info-900);background:var(--info-100)}.school-orders__week-closed[_ngcontent-%COMP%]{grid-column:2/-1;display:flex;align-items:center;gap:8px;padding:15px 16px;font-size:.875rem;color:var(--neutral-700)}.school-orders__week-closed[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:var(--warning-500)}.school-orders__closed-note[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;padding:28px 20px;font-size:.9375rem;color:var(--neutral-700)}.school-orders__closed-note[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:var(--warning-500)}.school-orders__focus-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) 260px}.school-orders__focus-grid--full[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr)}.school-orders__focus-meals[_ngcontent-%COMP%]{padding:12px 20px 16px}.school-orders__focus-drinks[_ngcontent-%COMP%]{padding:12px 20px 16px;border-left:1px solid var(--neutral-200);background:var(--neutral-50)}.school-orders__col-label[_ngcontent-%COMP%]{font-weight:600;font-size:11px;line-height:1;letter-spacing:.06em;text-transform:uppercase;color:var(--neutral-600);padding:8px 0 4px}.school-orders__focus-drink[_ngcontent-%COMP%]{display:flex;align-items:center;gap:9px;padding:11px 0;border-top:1px solid var(--neutral-200)}.school-orders__drink-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;color:var(--neutral-600);flex-shrink:0}
1.school-orders__focus-drink-name[_ngcontent-%COMP%]{flex:1;min-width:0;font-weight:500;font-size:.9375rem;color:var(--neutral-700)}.school-orders__focus-drink-count[_ngcontent-%COMP%]{flex-shrink:0;font-weight:700;font-size:1rem;font-variant-numeric:tabular-nums;color:var(--neutral-700)}.school-orders__empty[_ngcontent-%COMP%]{padding:14px 0;color:var(--neutral-500)}.school-orders__schedule[_ngcontent-%COMP%]{margin-top:22px;border-top:1px solid var(--neutral-200);padding-top:18px}.school-orders__schedule-body[_ngcontent-%COMP%]{margin-top:16px;display:flex;flex-direction:column;gap:22px}.school-orders__week-label[_ngcontent-%COMP%]{font-weight:600;font-size:.8125rem;line-height:1;letter-spacing:.04em;text-transform:uppercase;color:var(--neutral-600);margin-bottom:10px}.school-orders__week-grid[_ngcontent-%COMP%]{border:1px solid var(--neutral-200);border-radius:8px;overflow:hidden}.school-orders__week-grid--no-drinks[_ngcontent-%COMP%]   .school-orders__week-head[_ngcontent-%COMP%], .school-orders__week-grid--no-drinks[_ngcontent-%COMP%]   .school-orders__week-row[_ngcontent-%COMP%]{grid-template-columns:168px minmax(0,1fr)}.school-orders__week-head[_ngcontent-%COMP%]{display:grid;grid-template-columns:168px minmax(0,1.55fr) minmax(0,1fr);background:var(--neutral-100);border-bottom:1px solid var(--neutral-300)}.school-orders__week-head-cell[_ngcontent-%COMP%]{padding:10px 16px;font-weight:600;font-size:11px;line-height:1.3;letter-spacing:.06em;text-transform:uppercase;color:var(--neutral-600)}.school-orders__week-head-cell--drinks[_ngcontent-%COMP%]{border-left:1px solid var(--neutral-200)}.school-orders__week-head-cell--meals[_ngcontent-%COMP%]{display:flex;align-items:flex-end}.school-orders__week-head-meals-label[_ngcontent-%COMP%]{flex:1;min-width:0}.school-orders__week-head-num[_ngcontent-%COMP%]{box-sizing:border-box;width:64px;padding:0 10px;text-align:right}.school-orders__week-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:168px minmax(0,1.55fr) minmax(0,1fr);border-top:2px solid var(--neutral-300)}.school-orders__week-date[_ngcontent-%COMP%]{padding:15px 16px}.school-orders__week-weekday[_ngcontent-%COMP%]{display:flex;align-items:center;gap:7px;font-weight:700;font-size:.9375rem;color:var(--mat-sys-on-surface)}.school-orders__week-date-sub[_ngcontent-%COMP%]{font-size:.75rem;color:var(--neutral-700);margin:4px 0 8px}.school-orders__week-meals[_ngcontent-%COMP%]{padding:7px 16px}.school-orders__week-drinks[_ngcontent-%COMP%]{padding:12px 16px;border-left:1px solid var(--neutral-200);background:var(--neutral-50)}.school-orders__week-drinks[_ngcontent-%COMP%]   .school-orders__focus-drink[_ngcontent-%COMP%]:first-child{border-top:0}.school-orders__day-report[_ngcontent-%COMP%]{white-space:nowrap;--mat-button-outlined-container-height: 32px;--mat-button-outlined-label-text-size: .8125rem;--mat-button-outlined-horizontal-padding: 10px}.school-orders__day-report[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px}.school-orders__section-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}.school-orders__section-title[_ngcontent-%COMP%]{font-weight:600;font-size:1.125rem;color:var(--mat-sys-on-surface)}.school-orders__report-filter[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;background:var(--neutral-50);border:1px solid var(--neutral-200);border-radius:8px;padding:14px 16px;margin-bottom:20px}.school-orders__report-filter[_ngcontent-%COMP%]   path-autocomplete[_ngcontent-%COMP%]{width:230px}.school-orders__report-filter-label[_ngcontent-%COMP%]{font-weight:600;font-size:11px;line-height:1;letter-spacing:.06em;text-transform:uppercase;color:var(--neutral-600);align-self:center}.school-orders__report-filter-reset[_ngcontent-%COMP%]{margin-left:auto;align-self:center}.school-orders__report-tiles[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:14px}.school-orders__report-tiles[_ngcontent-%COMP%] > .school-orders__tile[_ngcontent-%COMP%]{flex:1 1 calc((100% - 42px)/4);min-width:0}@media(max-width:1199px){.school-orders__report-tiles[_ngcontent-%COMP%] >
1 .school-orders__tile[_ngcontent-%COMP%]{flex-basis:calc((100% - 14px)/2)}}@media(max-width:499px){.school-orders__report-tiles[_ngcontent-%COMP%] > .school-orders__tile[_ngcontent-%COMP%]{flex-basis:100%}}.school-orders__tile[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;text-align:left;background:var(--surface);border:1px solid var(--neutral-200);border-radius:10px;padding:15px 16px;cursor:pointer;transition:border-color .15s,box-shadow .15s}.school-orders__tile[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--primary-400);box-shadow:0 1px 2px #0000000f}.school-orders__tile[_ngcontent-%COMP%]:disabled{opacity:.6;border-style:dashed;cursor:default}.school-orders__tile-icon[_ngcontent-%COMP%]{width:42px;height:42px;flex-shrink:0;border-radius:10px;background:var(--primary-50);display:flex;align-items:center;justify-content:center}.school-orders__tile-icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:22px;width:22px;height:22px;color:var(--primary-700)}.school-orders__tile-text[_ngcontent-%COMP%]{flex:1;min-width:0}.school-orders__tile-title[_ngcontent-%COMP%]{display:block;font-weight:600;font-size:.9375rem;color:var(--mat-sys-on-surface)}.school-orders__tile-sub[_ngcontent-%COMP%]{display:block;font-size:.75rem;color:var(--neutral-700);margin-top:3px}.school-orders__tile-arrow[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;color:var(--neutral-600);flex-shrink:0}@media(max-width:899px){.school-orders__card[_ngcontent-%COMP%]{padding:18px 16px}.school-orders__focus-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.school-orders__focus-drinks[_ngcontent-%COMP%]{border-left:0;border-top:1px solid var(--neutral-200)}.school-orders__week-head[_ngcontent-%COMP%]{display:none}.school-orders__week-row[_ngcontent-%COMP%]{grid-template-columns:1fr}.school-orders__week-drinks[_ngcontent-%COMP%]{border-left:0;border-top:1px solid var(--neutral-200)}}.school-orders__report-tiles--custom[_ngcontent-%COMP%]{margin-top:14px}.school-orders__tile-chip[_ngcontent-%COMP%]{display:inline-block;margin-top:4px;padding:1px 8px;border:1px solid var(--neutral-300);border-radius:999px;background:var(--neutral-50);font-size:.6875rem;font-weight:600;color:var(--neutral-700)}"]})}}return o})(),te=class{constructor(){this.drinks=[],this.closure=null,this.substituteMealIds=new Set,this.fullyOverriddenMealIds=new Set}};var Ii=[{path:"",component:ie,pathMatch:"full",canActivate:[B],data:{permission:"SchoolDashboard"}},{path:"bulkOrders",component:Xe,pathMatch:"full",canActivate:[B],data:{permission:"SchoolDashboard",feature:"school.bulkOrders"}},{path:"proxyOrder",component:ee,pathMatch:"full",canActivate:[B],data:{permission:"SchoolDashboard",feature:"schoolFood.schoolProxyOrdering"}},{path:"proxyOrder/:id",component:ee,pathMatch:"full",canActivate:[B],data:{permission:"SchoolDashboard",feature:"schoolFood.schoolProxyOrdering"}},{path:"students",component:Ke,pathMatch:"full",canActivate:[B],data:{listRoute:!0,permission:"SchoolDashboard"}},{path:"qc-pages",component:et,pathMatch:"full",canActivate:[B],data:{scopeType:Z.School,permission:"SchoolDashboard|WorkflowSelected|WorkflowBasic|WorkflowAdmin",feature:"compliance"}},{path:"qc-pages/:code",component:Ze,pathMatch:"full",canActivate:[B],data:{scopeType:Z.School,permission:"SchoolDashboard|WorkflowSelected|WorkflowBasic|WorkflowAdmin",feature:"compliance"}},{path:"workflows",component:Je,pathMatch:"full",canActivate:[B],data:{workflowTypeId:Qe.School,listRoute:!0,permission:"WorkflowSelected|WorkflowBasic|WorkflowAdmin",feature:"compliance"}},{path:":id",component:ie,canActivate:[B],data:{permission:"SchoolDashboard"}}];export{Ii as SCHOOL_ROUTES};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.