PageSourceSearch

https://app.calcmenu.com/4254.070879bd2b65b802.js

js calcmenu.com collected 2026-10-03 19:48:45 UTC 103,645 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkActivMenu=self.webpackChunkActivMenu||[]).push([[4254],{36768:(q,S,g)=>{g.d(S,{S:()=>I});var M=g(78645),e=g(65879),k=g(58786);let I=(()=>{var v;class c{constructor(x){this.api=x,this.sub=new M.x}get(x,Z){const w=[{P:"@CodeUser",V:""},{P:"@CodeMenuPlan",V:x}];return Z&&w.push({P:"@EgswMPMain_ID",V:Z}),this.api.UniCall({C:"Kiosk_API_GETDetailByCodeMenuPlan",P:w}).subscribe(F=>{this.sub.next(F)}),this.sub.asObservable()}}return(v=c).\u0275fac=function(x){return new(x||v)(e.LFG(k.s))},v.\u0275prov=e.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),c})()},93231:(q,S,g)=>{g.d(S,{u:()=>I});var M=g(78645),e=g(65879),k=g(58786);let I=(()=>{var v;class c{constructor(x){this.api=x}get(x){const Z=new M.x;return this.api.UniCall({C:"Kiosk_API_GETMenuPlanInfo",P:[{P:"@CodeUser",V:""},{P:"@CodeMenuPlan",V:x}]}).subscribe(w=>{Z.next(w)}),Z.asObservable()}}return(v=c).\u0275fac=function(x){return new(x||v)(e.LFG(k.s))},v.\u0275prov=e.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),c})()},79391:(q,S,g)=>{g.d(S,{P:()=>Ft});var M=g(15861),e=g(65879),k=g(78645),I=g(48180),v=g(21619),c=g(20553),P=g(58786);let x=(()=>{var _;class r{constructor(n){this.api=n,this.sub=new k.x}get(n,i){return this.api.UniCall({C:"Kiosk_API_MPGetCyclePlan",P:[{P:"@CodeMenuPlan",V:n},{P:"@SelectedDate",V:i},{P:"@CodeUser",V:""}]}).subscribe(a=>{this.sub.next(a)}),this.sub.asObservable()}}return(_=r).\u0275fac=function(n){return new(n||_)(e.LFG(P.s))},_.\u0275prov=e.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),r})(),Z=(()=>{var _;class r{constructor(n){this.api=n,this.sub=new k.x}get(n,i,a){return this.api.UniCall({C:"Kiosk_API_MenuPlanGetMain",P:[{P:"@CodeUser",V:""},{P:"@dtsStartDate",V:n},{P:"@dtsEndDate",V:i},{P:"@intCodeMenuPlan",V:a}]}).subscribe(o=>{this.sub.next(o)}),this.sub.asObservable()}}return(_=r).\u0275fac=function(n){return new(n||_)(e.LFG(P.s))},_.\u0275prov=e.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),r})();var w=g(98737),F=g(29122),G=g(36768),J=g(23680),Y=g(37533),O=g(58726),N=g(96814),V=g(94394),Q=g(73941),H=g(27394),$=g(64170),E=g(56223),W=g(38034),K=g(16847),j=g(75986),X=g(92596),z=g(3956),R=g(77988),ee=g(2032);function te(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"mat-form-field",14)(1,"mat-date-range-input",15),e.NdJ("click",function(){e.CHM(t);const i=e.MAs(6);return e.KtG(i.open())}),e.TgZ(2,"input",16),e.NdJ("ngModelChange",function(i){e.CHM(t);const a=e.oxw(3);return e.KtG(a.firstDayOfTheWeek=i)})("dateChange",function(){e.CHM(t);const i=e.oxw(3);return e.KtG(i.dtFirstDayOfTheWeek=i.firstDayOfTheWeek)}),e.qZA(),e.TgZ(3,"input",17),e.NdJ("ngModelChange",function(i){e.CHM(t);const a=e.oxw(3);return e.KtG(a.lastDayOfTheWeek=i)})("dateChange",function(){e.CHM(t);const i=e.oxw(3);return i.dtLastDayOfTheWeek=i.lastDayOfTheWeek,e.KtG(i.date_changed())}),e.qZA()(),e._UZ(4,"mat-datepicker-toggle",18)(5,"mat-date-range-picker",null,19),e.qZA()}if(2&_){const t=e.MAs(6),n=e.oxw(3);e.xp6(1),e.Q6J("rangePicker",t)("min",n.orig_firstDayOfTheWeek)("max",n._MenuplanInfo.CyclePlan?n.orig_lastDayOfTheCycle:0),e.xp6(1),e.Q6J("ngModel",n.firstDayOfTheWeek),e.xp6(1),e.Q6J("ngModel",n.lastDayOfTheWeek),e.xp6(1),e.Q6J("for",t)}}function ne(_,r){if(1&_&&(e.TgZ(0,"span",26),e._uU(1),e.qZA()),2&_){const t=e.oxw(4);e.xp6(1),e.hij("(",t.tr.UIT[174882],":#1)")}}function ie(_,r){if(1&_&&(e.TgZ(0,"option",27),e._uU(1),e.qZA()),2&_){const t=r.$implicit;e.Q6J("value",+t.text),e.xp6(1),e.hij(" ",t.text," ")}}function ae(_,r){if(1&_&&(e.TgZ(0,"option",27),e._uU(1),e.qZA()),2&_){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function _e(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"div",20)(1,"span",21),e._uU(2),e.qZA(),e.YNc(3,ne,2,1,"span",22),e.TgZ(4,"select",23),e.NdJ("ngModelChange",function(i){e.CHM(t);const a=e.oxw(3);return e.KtG(a.currentWeek=i)})("change",function(){e.CHM(t);const i=e.oxw(3);return e.KtG(i.selectWeekDay())}),e.YNc(5,ie,2,2,"option",24),e.qZA(),e.TgZ(6,"select",23),e.NdJ("ngModelChange",function(i){e.CHM(t);const a=e.oxw(3);return e.KtG(a.curYearSelectedValue=i)})("change",function(){e.CHM(t);const i=e.oxw(3);return e.KtG(i.selectYear())}),e.YNc(7,ae,2,2,"option",25),e.qZA()()}if(2&_){const t=e.oxw(3);e.xp6(2),e.Oqu(t.bindLabelCurrentWeek()),e.xp6(1),e.Q6J("ngIf",t._MenuplanInfo.CyclePlan),e.xp6(1),e.Q6J("ngModel",t.currentWeek),e.xp6(1),e.Q6J("ngForOf",t.arrWeeks)("ngForTrackBy",t.trackByFn),e.xp6(1),e.Q6J("ngModel",t.curYearSelectedValue),e.xp6(1),e.Q6J("ngForOf",t.drpYears)}}const A=function(){return["1"]};function oe(_,r){if(1&_&&(e.TgZ(0,"div",8),e.YNc(1,te,7,6,"mat-form-field",9),e.YNc(2,_e,8,7,"div",10),e.TgZ(3,"div",11)(4,"span",12),e._uU(5),e.qZA(),e.TgZ(6,"span",13),e._uU(7),e.qZA()()()),2&_){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.arrWeeks.length>0),e.xp6(1),e.Q6J("ngIf",t.arrWeeks.length>0),e.xp6(3),e.hij("",t.tr.UIT[180557],"\xa0:\xa0"),e.xp6(2),e.Oqu(e.DdM(4,A).includes(t.tier)?"***":t.weeklyCostValueFormatted)}}function se(_,r){if(1&_){const t=e.EpF();e.ynx(0),e.TgZ(1,"app-adam-toggle",29),e.NdJ("toggle_paramChange",function(i){e.CHM(t);const a=e.oxw(3);return e.KtG(a._ViewPref.isPerDay=i)})("changed",function(){e.CHM(t);const i=e.oxw(3);return e.KtG(i.togglePerDay())}),e.qZA(),e.BQk()}if(2&_){const t=e.oxw(3);e.xp6(1),e.Q6J("toggle_param",t._ViewPref.isPerDay)("toggle_text",t._ViewPref.isPerDay?t.tr.UIT[180589]:t.tr.UIT[181190])}}function re(_,r){1&_&&e._UZ(0,"img",34)}function le(_,r){1&_&&(e.O4$(),e.TgZ(0,"svg",35)(1,"g",36),e._UZ(2,"line",37)(3,"path",38)(4,"path",39),e.TgZ(5,"g",40),e._UZ(6,"line",41),e.qZA()()())}function ce(_,r){if(1&_){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",42),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(4);return e.KtG(i.saveMPtrigger.emit(!0))}),e.O4$(),e.TgZ(2,"svg",43)(3,"g",44),e._UZ(4,"path",45),e.TgZ(5,"g",46),e._UZ(6,"rect",47)(7,"rect",48),e.qZA(),e._UZ(8,"path",49)(9,"path",50),e.qZA()()(),e.BQk()}if(2&_){const t=e.oxw(4);e.xp6(1),e.Q6J("disabled",0===t._MenuplanInfo.Name.trim().length||0===t._MenuplanInfo.StartDate.length)("matTooltip",t.tr.UIT[179062])}}function pe(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"div",30)(1,"div",31),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(3);return e.KtG(i.FCtrigger.emit(!0))}),e.YNc(2,re,1,0,"img",32),e.YNc(3,le,7,0,"svg",33),e.qZA(),e.YNc(4,ce,10,2,"ng-container",6),e.qZA()}if(2&_){const t=e.oxw(3);e.xp6(1),e.Q6J("matTooltip",t._isFC?t.tr.UIT[180600]:t.tr.UIT[180599]),e.xp6(1),e.Q6J("ngIf",t._isFC),e.xp6(1),e.Q6J("ngIf",!t._isFC),e.xp6(1),e.Q6J("ngIf",!t._isView)}}function de(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"div",52)(1,"button",53),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(4);return e.KtG(i.remove())}),e._UZ(2,"img",54)(3,"div",55),e.TgZ(4,"span"),e._uU(5),e.qZA()(),e.TgZ(6,"button",56),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(4);return e.KtG(i.lockBulk())}
1),e._UZ(7,"img",57)(8,"div",55),e.TgZ(9,"span"),e._uU(10),e.qZA()(),e.TgZ(11,"button",56),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(4);return e.KtG(i.unlockBulk())}),e._UZ(12,"img",58)(13,"div",55),e.TgZ(14,"span"),e._uU(15),e.qZA()()()}if(2&_){const t=e.oxw(4);e.xp6(5),e.Oqu(t.tr.UIT[180580]),e.xp6(5),e.Oqu(t.tr.UIT[180582]),e.xp6(5),e.Oqu(t.tr.UIT[180583])}}function ge(_,r){if(1&_&&(e.ynx(0),e.YNc(1,de,16,3,"div",51),e.BQk()),2&_){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!t._isFC)}}function ue(_,r){if(1&_&&(e.TgZ(0,"div",8),e.YNc(1,se,2,2,"ng-container",6),e.YNc(2,pe,5,4,"div",28),e.YNc(3,ge,2,1,"ng-container",6),e.qZA()),2&_){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t._isView),e.xp6(1),e.Q6J("ngIf",t._isFC),e.xp6(1),e.Q6J("ngIf",!t._isView)}}function me(_,r){if(1&_){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",8)(2,"div",59)(3,"app-adam-toggle",60),e.NdJ("toggle_paramChange",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a._ViewPref.isPerDay=i)}),e.qZA(),e.TgZ(4,"app-adam-toggle",60),e.NdJ("toggle_paramChange",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a._ViewPref.isTotalCost=i)}),e.qZA(),e.TgZ(5,"app-adam-toggle",60),e.NdJ("toggle_paramChange",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a._ViewPref.isDayCardDeets=i)}),e.qZA(),e.TgZ(6,"app-adam-toggle",60),e.NdJ("toggle_paramChange",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a._ViewPref.isMenuCardDeets=i)}),e.qZA(),e.TgZ(7,"app-adam-toggle",60),e.NdJ("toggle_paramChange",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a._ViewPref.isButtons=i)}),e.qZA()()(),e.BQk()}if(2&_){const t=e.oxw(2);e.xp6(3),e.Q6J("toggle_param",t._ViewPref.isPerDay)("toggle_text",t._ViewPref.isPerDay?t.tr.UIT[180589]:t.tr.UIT[181190]),e.xp6(1),e.Q6J("toggle_param",t._ViewPref.isTotalCost)("toggle_text",t.tr.UIT[180605]),e.xp6(1),e.Q6J("toggle_param",t._ViewPref.isDayCardDeets)("toggle_text",t.tr.UIT[180944]),e.xp6(1),e.Q6J("toggle_param",t._ViewPref.isMenuCardDeets)("toggle_text",t.tr.UIT[180945]),e.xp6(1),e.Q6J("toggle_param",t._ViewPref.isButtons)("toggle_text",t.tr.UIT[180946])}}function fe(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"div",77)(1,"mat-checkbox",78),e.NdJ("ngModelChange",function(i){const o=e.CHM(t).$implicit,s=e.oxw(3);return e.KtG(s.selectedMasterPlans[o.Code]=i)}),e.qZA(),e.TgZ(2,"span",79),e._uU(3),e.ALo(4,"uppercase"),e.qZA(),e.TgZ(5,"div"),e._uU(6,"\xa0\xa0\xa0"),e.qZA()()}if(2&_){const t=r.$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("ngModel",n.selectedMasterPlans[t.Code]),e.xp6(2),e.Oqu(e.lcZ(4,2,t.Name))}}function he(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"img",90),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).index,a=e.oxw(3),o=e.MAs(3);return e.KtG(a.copyAction(o,void 0,i+1))}),e.qZA()}if(2&_){const t=e.oxw(5);e.Q6J("matTooltip",t.tr.UIT[180577])}}function De(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"img",91),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2),a=i.index,o=i.$implicit,s=e.oxw(3);return e.KtG(s.printMPPerDay(s.dayNames[a],o.dayplan,o.IDMain))}),e.qZA()}if(2&_){const t=e.oxw(5);e.Q6J("matTooltip",t.tr.UIT[180610])}}function Ce(_,r){if(1&_&&(e.ynx(0),e.YNc(1,he,1,1,"img",88),e.YNc(2,De,1,1,"img",89),e.BQk()),2&_){const t=e.oxw(4);e.xp6(1),e.Q6J("ngIf",!t._isView&&"3"!==t.role),e.xp6(1),e.Q6J("ngIf",t._isView)}}function Me(_,r){1&_&&(e.ynx(0),e._UZ(1,"div",92),e.BQk())}function ve(_,r){if(1&_&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"uppercase"),e.qZA()),2&_){const t=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.AsE("",e.lcZ(2,2,n.tr.UIT[31800])," ",t.visibleCount,"")}}function Te(_,r){if(1&_&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&_){const t=e.oxw().index,n=e.oxw(3);e.xp6(1),e.Oqu(n.dayNames[t])}}function xe(_,r){if(1&_&&(e.ynx(0),e.TgZ(1,"div",93),e._uU(2),e.qZA(),e.TgZ(3,"div",94),e._uU(4),e.qZA(),e.TgZ(5,"div",94),e._uU(6),e.qZA(),e.TgZ(7,"div",95),e._uU(8),e.qZA(),e.BQk()),2&_){const t=e.oxw().$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(t.date),e.xp6(2),e.AsE("",n.tr.UIT[176214],": ",t.plannedtotal,""),e.xp6(2),e.hij("",n.tr.UIT[176417],":"),e.xp6(2),e.AsE("",t.plannedmargin,"% / ",t.actualmargin,"%")}}function Ie(_,r){if(1&_&&(e.TgZ(0,"div",96),e._uU(1),e.qZA()),2&_){const t=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.lnq(" ",n.tr.UIT[179082],"\xa0",n.tr.UIT[147727],": ",e.DdM(3,A).includes(n.tier)?"***":t.formattedCost," ")}}function ye(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"div")(1,"input",119),e.NdJ("ngModelChange",function(i){e.CHM(t);const a=e.oxw(3).$implicit,o=e.oxw(4);return e.KtG(o.isSearchItemEnabled[a.IDMain+"-"+a.DayPlan+"-"+a.CodeMasterPlan+"-"+a.IDMain].text=i)}),e.qZA()()}if(2&_){const t=e.oxw(3).$implicit,n=e.oxw(4);e.xp6(1),e.Q6J("ngModel",n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain].text)}}function ke(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"img",120),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(3).$implicit;return i.isTouched=!0,e.KtG(i.IsLock=!i.IsLock)}),e.qZA()}if(2&_){const t=e.oxw(7);e.Q6J("matTooltip",t.tr.UIT[157671])}}function Pe(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"img",121),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(3).$implicit;return i.isTouched=!0,e.KtG(i.IsLock=!i.IsLock)}),e.qZA()}if(2&_){const t=e.oxw(7);e.Q6J("matTooltip",t.tr.UIT[157671])}}function Ze(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"img",122),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(3).$implicit,a=e.oxw(4);return e.KtG(a._AddMenusTrigger.emit({NewDate:a.newDate,IDDetail:i.ID,IDMain:i.IDMain,DayPlan:i.DayPlan,CodeMasterPlan:i.CodeMasterPlan}))}),e.qZA()}if(2&_){const t=e.oxw(7);e.Q6J("matTooltip",t.tr.UIT[162687])}}function we(_,r){if(1&_&&(e.O4$(),e.TgZ(0,"svg",123),e._UZ(1,"circle",124)(2,"circle",125)(3,"circle",126),e.qZA()),2&_){e.oxw(2);const t=e.MAs(7);e.Q6J("matMenuTriggerFor",t)}}function Oe(_,r){if(1&_){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",8)(2,"img",114),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).$implicit,a=e.oxw(4);return e.KtG(a.searchItem(i))}),e.qZA(),e.YNc(3,ye,2,1,"div",6),e.YNc(4,ke,1,1,"img",115),e.YNc(5,Pe,1,1,"img",116),e.YNc(6,Ze,1,1,"img",117),e.qZA(),e.YNc(7,we,4,1,"svg",118),e.BQk()}if(2&_){const t=e.oxw(2).$implicit,n=e.oxw(4);e.xp6(2),e.Q6J("matTooltip",n.tr.UIT[180282]),e.xp6(1),e.Q6J("ngIf",n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain]&&n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain].gate),e.xp6(1),e.Q6J("ngIf",!n._isView&&t.IsLock&&!(n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain]&&n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain].gate)),e.xp6(1),e.Q6J("ngIf",!(n._isView||t.IsLock||n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain]&&n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain].gate)),e.xp6(1),e.Q6J("ngIf",!(n._isView||n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain]&&n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain].gate)),e.xp6(1),e.Q6J("ngIf",n._isView)}}function Ne(_,r){1&_&&(e.ynx(0),e._UZ(1,"div",92),e.BQk())}function Se(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"img",127),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).$implicit,a=e.oxw(4),o=e.MAs(3);return e.KtG(a.copyAction(o,i))}),e.qZA()}if(2&_){const t=e.oxw(6);e.Q6J("matTooltip",t.tr.UIT[180577])}}function We(_,r){if(1&_&&(e.TgZ(0,"div",129),e.O4$(),e.TgZ(1,"svg",146),e._UZ(2,"path",147),e.qZA(),e.kcU(),e.TgZ(3,"div",137)(4,"span",26),e._uU(5),e.qZA()()()),2&_){const t=e.oxw(3).$implicit,n=e.oxw(4);
1e.xp6(4),e.ekj("colorMyOrange",e.DdM(3,A).includes(n.tier)),e.xp6(1),e.Oqu(e.DdM(4,A).includes(n.tier)?"***":t.formattedCalcPrice)}}function Ee(_,r){if(1&_&&(e.TgZ(0,"div",128)(1,"div",129),e.O4$(),e.TgZ(2,"svg",130),e._UZ(3,"path",131)(4,"path",132)(5,"path",133)(6,"path",134)(7,"path",135)(8,"path",136),e.qZA(),e.kcU(),e.TgZ(9,"div",137)(10,"span"),e._uU(11),e.qZA(),e._uU(12,"\xa0/\xa0"),e.TgZ(13,"span"),e._uU(14),e.qZA()()(),e.YNc(15,We,6,5,"div",138),e.TgZ(16,"div",129),e.O4$(),e.TgZ(17,"svg",139)(18,"g",140),e._UZ(19,"path",141)(20,"path",142)(21,"path",143),e.qZA(),e.TgZ(22,"defs")(23,"clipPath",144),e._UZ(24,"rect",145),e.qZA()()(),e.kcU(),e.TgZ(25,"div",137)(26,"span",26),e._uU(27),e.qZA(),e._uU(28,"\xa0/\xa0"),e.TgZ(29,"span"),e._uU(30),e.qZA()()()()),2&_){const t=e.oxw(2).$implicit,n=e.oxw(4);e.ekj("DGray",t.IsLock)("LGray",!t.IsLock),e.xp6(11),e.Oqu(t.PlanValue1),e.xp6(3),e.Oqu(t.PlanValue2),e.xp6(1),e.Q6J("ngIf",n._ViewPref.isTotalCost),e.xp6(11),e.ekj("colorMyOrange",e.DdM(11,A).includes(n.tier)),e.xp6(1),e.Oqu(e.DdM(12,A).includes(n.tier)?"***":t.formattedSellingPrice),e.xp6(3),e.hij("",t.MarginInPct,"%")}}function Ae(_,r){if(1&_&&(e.ynx(0),e._uU(1),e.BQk()),2&_){const t=e.oxw().$implicit;e.xp6(1),e.hij(" \u2022 ",t.Name," ")}}function be(_,r){if(1&_&&(e.TgZ(0,"div"),e.YNc(1,Ae,2,1,"ng-container",6),e.qZA()),2&_){const t=r.$implicit,n=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngIf",n.ID===t.IDDetails)}}function Ue(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"div",148),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).$implicit,a=e.oxw(4);return e.KtG(a.editNoteBegin(i))}),e._UZ(1,"img",149),e.TgZ(2,"span",150),e._uU(3),e.qZA()()}if(2&_){const t=e.oxw(6);e.xp6(3),e.Oqu(t.tr.UIT[174492])}}function Fe(_,r){if(1&_&&(e.TgZ(0,"span",151),e._uU(1),e.qZA()),2&_){const t=e.oxw(2).$implicit;e.xp6(1),e.Oqu(t.Note)}}function Le(_,r){1&_&&e._UZ(0,"div",164)}function Je(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"div",152),e.YNc(1,Le,1,0,"div",153),e.TgZ(2,"input",154),e.NdJ("ngModelChange",function(i){e.CHM(t);const a=e.oxw(2).$implicit,o=e.oxw(4);return e.KtG(o._Note[a.IDMain.toString()+"-"+a.DayPlan.toString()+"-"+a.CodeMasterPlan.toString()].New=i)}),e.qZA(),e.O4$(),e.TgZ(3,"svg",155),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).$implicit,a=e.oxw(4);return e.KtG(a.saveNote(i))}),e.TgZ(4,"g",44),e._UZ(5,"path",156),e.TgZ(6,"g",157),e._UZ(7,"rect",47)(8,"rect",48),e.qZA(),e._UZ(9,"path",158)(10,"path",159),e.qZA()(),e.TgZ(11,"svg",160),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).$implicit;return e.KtG(i.IsEditNote=!1)}),e.TgZ(12,"g",161),e._UZ(13,"rect",162)(14,"rect",163),e.qZA()()()}if(2&_){const t=e.oxw(2).$implicit,n=e.oxw(4);e.xp6(1),e.Q6J("ngIf",t.IsNoteSaving),e.xp6(1),e.Q6J("ngModel",n._Note[t.IDMain.toString()+"-"+t.DayPlan.toString()+"-"+t.CodeMasterPlan.toString()].New)}}function qe(_,r){if(1&_){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",97)(2,"div",98)(3,"div",99),e.YNc(4,Oe,8,6,"ng-container",6),e.YNc(5,Ne,2,0,"ng-container",6),e.TgZ(6,"mat-menu",null,100)(8,"button",101),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(),a=i.index,o=i.$implicit,s=e.oxw().$implicit,l=e.oxw(3);return e.KtG(l.printMPCell(l.dayNames[a],s.dayplan,o.CodeMasterPlan,s.IDMain))}),e.TgZ(9,"span"),e._uU(10),e.qZA()()(),e.YNc(11,Se,1,1,"img",102),e.qZA(),e.TgZ(12,"div",103),e.YNc(13,Ee,31,13,"div",104),e.TgZ(14,"div",105)(15,"div",106),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit,a=e.oxw(4);return i.isTouched=!0,e.KtG(a._AddMenusTrigger.emit({NewDate:a.newDate,IDDetail:i.ID,IDMain:i.IDMain,DayPlan:i.DayPlan,CodeMasterPlan:i.CodeMasterPlan}))}),e.TgZ(16,"div",107),e.YNc(17,be,2,1,"div",108),e.qZA()()(),e.TgZ(18,"div",109),e.YNc(19,Ue,4,1,"div",110),e.TgZ(20,"div",111),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit,a=e.oxw(4);return e.KtG(a._isView?"":a.editNoteBegin(i))}),e.YNc(21,Fe,2,1,"span",112),e.qZA(),e.YNc(22,Je,15,2,"div",113),e.qZA()()()(),e.BQk()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(4);e.xp6(1),e.ekj("DGray",t.IsLock)("pointer-none",t.IsLock),e.Q6J("id","iddetail~"+t.ID),e.xp6(3),e.Q6J("ngIf",n._ViewPref.isButtons),e.xp6(1),e.Q6J("ngIf",!n._ViewPref.isButtons),e.xp6(
15),e.Oqu(n.tr.UIT[180611]),e.xp6(1),e.Q6J("ngIf",!(n._isView||n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain]&&n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain].gate)),e.xp6(2),e.Q6J("ngIf",n._ViewPref.isMenuCardDeets),e.xp6(4),e.Q6J("ngForOf",n.getDetailsData(t)),e.xp6(2),e.Q6J("ngIf",!n._isView&&!t.IsEditNote&&!t.Note),e.xp6(2),e.Q6J("ngIf",t.Note&&!t.IsEditNote),e.xp6(1),e.Q6J("ngIf",!n._isView&&t.IsEditNote)}}function Ge(_,r){if(1&_&&(e.TgZ(0,"div"),e.YNc(1,qe,23,14,"ng-container",6),e.qZA()),2&_){const t=r.$implicit,n=e.oxw().$implicit,i=e.oxw(3);e.ekj("d-none",n.dayplan!==t.DayPlan||i._MenuplanMasterPlanID!==t.IDMain),e.xp6(1),e.Q6J("ngIf",n.dayplan===t.DayPlan&&i._MenuplanMasterPlanID===t.IDMain)}}function Ye(_,r){if(1&_&&(e.TgZ(0,"div",80)(1,"div",8)(2,"div",81)(3,"div",82),e.YNc(4,Ce,3,2,"ng-container",6),e.YNc(5,Me,2,0,"ng-container",6),e.qZA(),e.TgZ(6,"div",83)(7,"div",84),e.YNc(8,ve,3,4,"span",6),e.YNc(9,Te,2,1,"span",6),e.qZA(),e.YNc(10,xe,9,6,"ng-container",6),e.YNc(11,Ie,2,4,"div",85),e.qZA()()(),e.TgZ(12,"div",86),e.YNc(13,Ge,2,3,"div",87),e.qZA()()),2&_){const t=r.$implicit,n=e.oxw(3);e.Q6J("ngClass",t.isShow?"d-flex p-2 gap-2":"d-none"),e.xp6(4),e.Q6J("ngIf",n._ViewPref.isButtons),e.xp6(1),e.Q6J("ngIf",!n._ViewPref.isButtons),e.xp6(3),e.Q6J("ngIf",n._MenuplanInfo.CyclePlan),e.xp6(1),e.Q6J("ngIf",!n._MenuplanInfo.CyclePlan),e.xp6(1),e.Q6J("ngIf",n._ViewPref.isDayCardDeets),e.xp6(1),e.Q6J("ngIf",n._ViewPref.isTotalCost),e.xp6(2),e.Q6J("ngForOf",n._MenuplanDetails)}}function Ve(_,r){if(1&_){const t=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"div",8)(1,"span",165),e.NdJ("click",function(){const a=e.CHM(t).$implicit,o=e.oxw(3);return e.KtG(o.selectWeekDay(a.value,!0))}),e._uU(2),e.qZA()()}if(2&_){const t=r.$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("ngClass",t.value==n.currentWeek?"colorMyOrange EGS_Empty16Bold EGS_Text_Underline pointer my-auto px-1":"pointer my-auto px-1"),e.xp6(1),e.hij(" ",t.text," ")}}function Qe(_,r){if(1&_){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",61)(2,"div",62)(3,"div",8)(4,"div",63),e._uU(5," \xa0 "),e.qZA()(),e.TgZ(6,"div",64),e.YNc(7,fe,7,4,"div",65),e.qZA()(),e.TgZ(8,"div")(9,"div",66),e.YNc(10,Ye,14,8,"div",67),e.qZA()()(),e.TgZ(11,"div",68)(12,"span",26),e._uU(13),e.qZA(),e.TgZ(14,"div",69),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.previousNext("first"))}),e.O4$(),e.TgZ(15,"svg",70),e._UZ(16,"path",71)(17,"path",72),e.qZA()(),e.kcU(),e.TgZ(18,"div",69),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.previousNext("previous"))}),e.O4$(),e.TgZ(19,"svg",73),e._UZ(20,"path",71),e.qZA()(),e.YNc(21,Ve,3,2,"div",74),e.kcU(),e.TgZ(22,"div",69),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.previousNext("next"))}),e.O4$(),e.TgZ(23,"svg",75),e._UZ(24,"path",71),e.qZA()(),e.kcU(),e.TgZ(25,"div",69),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.previousNext("last"))}),e.O4$(),e.TgZ(26,"svg",76),e._UZ(27,"path",71)(28,"path",72),e.qZA()()(),e.BQk()}if(2&_){const t=e.oxw(2);e.xp6(7),e.Q6J("ngForOf",t.masterplanList),e.xp6(3),e.Q6J("ngForOf",t.daysPerWeek),e.xp6(3),e.Oqu(t.tr.UIT[179107]),e.xp6(8),e.Q6J("ngForOf",t.arrWeeks)}}function Re(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"div",171)(1,"mat-checkbox",172),e.NdJ("ngModelChange",function(i){const o=e.CHM(t).$implicit,s=e.oxw(3);return e.KtG(s.selectedMasterPlans[o.Code]=i)}),e.qZA(),e.TgZ(2,"span",173),e._uU(3),e.ALo(4,"uppercase"),e.qZA(),e.TgZ(5,"div"),e._uU(6,"\xa0\xa0\xa0"),e.qZA()()}if(2&_){const t=r.$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("ngModel",n.selectedMasterPlans[t.Code]),e.xp6(2),e.Oqu(e.lcZ(4,2,t.Name))}}function $e(_,r){if(1&_&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"uppercase"),e.qZA()),2&_){const t=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.AsE("",e.lcZ(2,2,n.tr.UIT[31800])," ",t.visibleCount,"")}}function Be(_,r){if(1&_&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&_){const t=e.oxw().index,n=e.oxw(3);e.xp6(1),e.Oqu(n.dayNames[t])}}function He(_,r){if(1&_&&(e.ynx(0),e.TgZ(1,"div",93),e._uU(2),e.qZA(),e.TgZ(3,"div",94),e._uU(4),e.qZA(),e.TgZ(5,"div",94),e._uU(6),e.qZA(),e.TgZ(7,"div",95),e._uU(8),e.qZA(),e.BQk()),2&_){const t=e.oxw().$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(t.date),e.xp6(2),e.AsE("",n.tr.UIT[176214],": ",t.plannedtotal," "),e.xp6(2),e.hij("",n.tr.UIT[176417],":"),e.xp6(2),e.AsE("",t.plannedmargin,"% / ",t.actualmargin,"%")}}function Ke(_,r){if(1&_&&(e.TgZ(0,"div",96),e._uU(1),e.qZA()),2&_){const t=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.lnq(" ",n.tr.UIT[179082],"\xa0",n.tr.UIT[147727],": ",t.formattedCost," ")}}function je(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"div",101),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).index,a=e.oxw(3),o=e.MAs(3);return e.KtG(a.copyAction(o,void 0,i+1))}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&_){const t=e.oxw(5);e.xp6(2),e.Oqu(t.tr.UIT[10103])}}function Xe(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"div",101),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2),a=i.index,o=i.$implicit,s=e.oxw(3);return e.KtG(s.printMPPerDay(s.dayNames[a],o.dayplan,o.IDMain))}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&_){const t=e.oxw(5);e.xp6(2),e.Oqu(t.tr.UIT[180610])}}function ze(_,r){if(1&_&&(e.ynx(0),e.YNc(1,je,3,1,"div",183),e.YNc(2,Xe,3,1,"div",183),e.BQk()),2&_){const t=e.oxw(4);e.xp6(1),e.Q6J("ngIf",!t._isView&&"3"!==t.role),e.xp6(1),e.Q6J("ngIf",t._isView)}}function et(_,r){1&_&&(e.ynx(0),e._UZ(1,"div",92),e.BQk())}function tt(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"div")(1,"input",119),e.NdJ("ngModelChange",function(i){e.CHM(t);const a=e.oxw(3).$implicit,o=e.oxw(4);return e.KtG(o.isSearchItemEnabled[a.IDMain+"-"+a.DayPlan+"-"+a.CodeMasterPlan+"-"+a.IDMain].text=i)}),e.qZA()()}if(2&_){const t=e.oxw(3).$implicit,n=e.oxw(4);e.xp6(1),e.Q6J("ngModel",n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain].text)}}function nt(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"img",120),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(3).$implicit;return i.isTouched=!0,e.KtG(i.IsLock=!i.IsLock)}),e.qZA()}2&_&&e.Q6J("matTooltip","Lock/Unlock")}function it(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"img",121),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(3).$implicit;return i.isTouched=!0,e.KtG(i.IsLock=!i.IsLock)}),e.qZA()}2&_&&e.Q6J("matTooltip","Lock/Unlock")}function at(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"img",122),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(3).$implicit,a=e.oxw(4);return e.KtG(a._AddMenusTrigger.emit({NewDate:a.newDate,IDDetail:i.ID,IDMain:i.IDMain,DayPlan:i.DayPlan,CodeMasterPlan:i.CodeMasterPlan}))}),e.qZA()}if(2&_){const t=e.oxw(7);e.Q6J("matTooltip",t.tr.UIT[162687])}}function _t(_,r){if(1&_&&(e.O4$(),e.TgZ(0,"svg",123),e._UZ(1,"circle",124)(2,"circle",125)(3,"circle",126),e.qZA()),2&_){e.oxw(2);const t=e.MAs(7);e.Q6J("matMenuTriggerFor",t)}}function ot(_,r){if(1&_){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",8)(2,"img",114),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).$implicit,a=e.oxw(4);return e.KtG(a.searchItem(i))}),e.qZA(),e.YNc(3,tt,2,1,"div",6),e.YNc(4,nt,1,1,"img",115),e.YNc(5,it,1,1,"img",116),e.YNc(6,at,1,1,"img",117),e.qZA(),e.YNc(7,_t,4,1,"svg",118),e.BQk()}if(2&_){const t=e.oxw(2).$implicit,n=e.oxw(4);e.xp6(2),e.Q6J("matTooltip",n.tr.UIT[180282]),e.xp6(1),e.Q6J("ngIf",n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain]&&n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain].gate),e.xp6(1),e.Q6J("ngIf",!n._isView&&t.IsLock&&!(n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain]&&n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain].gate)),e.xp6(1),e.Q6J("ngIf",!(n._isView||t.IsLock||n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain]&&n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain].gate)),e.xp6(1),e.Q6J("ngIf",!(n._isView||n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain]&&n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain].gate)),e.xp6(1),e.Q6J("ngIf",n._isView)}}function st(_,r){1&_&&(e.ynx(0),e._UZ(1,"div",92),e.BQk())}function rt(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"img",127),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).$implicit,a=e.oxw(4),o=e.MAs(3);return e.KtG(a.copyAction(o,i))}),e.qZA()}if(2&_){const t=e.oxw(6);e.Q6J("matTooltip",t.tr.UIT[180577])}}function lt(_,r){if(1&_&&(e.TgZ(0,"div",129),e.O4$(),e.TgZ(1,"svg",146),e._UZ(2,"path",147),e.qZA(),e.kcU(),e.TgZ(3,"div",137),e._uU(4),e.qZA()()),2&_){const t=e.oxw(3).$implicit;e.xp6(4),e.Oqu(t.formattedCalcPrice)}}function ct(_,r){if(1&_&&(e.TgZ(0,"div",128)(1,"div",129),e.O4$(),e.TgZ(2,"svg",130),e._UZ(3,"path",131)(4,"path",132)(5,"path",133)(6,"path",134)(7,"path",135)(8,"path",136),e.qZA(),e.kcU(),e.TgZ(9,"div",137)(10,"span"),e._uU(11),e.qZA(),e._uU(12,"\xa0/\xa0"),e.TgZ(13,"span"),e._uU(14),e.qZA()()(),e.YNc(15,lt,5,1,"div",138),e.TgZ(16,"div",129),e.O4$(),e.TgZ(17,"svg",139)(18,"g",140),e._UZ(19,"path",141)(20,"path",142)(21,"path",143),e.qZA(),e.TgZ(22,"defs")(23,"clipPath",144),e._UZ(24,"rect",145),e.qZA()()(),e.kcU(),e.TgZ(25,"div",137)(26,"span"),e._uU(27),e.qZA(),e._uU(28,"\xa0/\xa0"),e.TgZ(29,"span"),e._uU(30),e.qZA()()()()),2&_){const t=e.oxw(2).$implicit,n=e.oxw(4);e.ekj("DGray",t.IsLock)("LGray",!t.IsLock),e.xp6(11),e.Oqu(t.PlanValue1),e.xp6(3),e.Oqu(t.PlanValue2),e.xp6(1),e.Q6J("ngIf",n._ViewPref.isTotalCost),e.xp6(12),e.Oqu(t.formattedSellingPrice),e.xp6(3),e.hij("",t.MarginInPct,"%")}}function pt(_,r){if(1&_&&(e.ynx(0),e._uU(1),e.BQk()),2&_){const t=e.oxw().$implicit;e.xp6(1),e.hij(" \u2022 ",t.Name," ")}}function dt(_,r){if(1&_&&(e.TgZ(0,"div"),e.YNc(1,pt,2,1,"ng-container",6),e.qZA()),2&_){const t=r.$implicit,n=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngIf",n.ID===t.IDDetails)}}function gt(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"div",148),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).$implicit,a=e.oxw(4);return e.KtG(a.editNoteBegin(i))}),e._UZ(1,"img",149),e.TgZ(2,"span",150),e._uU(3),e.qZA()()}if(2&_){const t=e.oxw(6);e.xp6(3),e.Oqu(t.tr.UIT[174492])}}function ut(_,r){if(1&_&&(e.TgZ(0,"span",151),e._uU(1),e.qZA()),2&_){const t=e.oxw(2).$implicit;e.xp6(1),e.Oqu(t.Note)}}function mt(_,r){1&_&&e._UZ(0,"div",164)}function ft(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"div",152),e.YNc(1,mt,1,0,"div",153),e.TgZ(2,"input",154),e.NdJ("ngModelChange",function(i){e.CHM(t);const a=e.oxw(2).$implicit,o=e.oxw(4);return e.KtG(o._Note[a.IDMain.toString()+"-"+a.DayPlan.toString()+"-"+a.CodeMasterPlan.toString()].New=i)}),e.qZA(),e.O4$(),e.TgZ(3,"svg",155),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).$implicit,a=e.oxw(4);return e.KtG(a.saveNote(i))}),e.TgZ(4,"g",44),e._UZ(5,"path",156),e.TgZ(6,"g",157),e._UZ(7,"rect",47)(8,"rect",48),e.qZA(),e._UZ(9,"path",158)(10,"path",159),e.qZA()(),e.TgZ(11,"svg",160),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).$implicit;return e.KtG(i.IsEditNote=!1)}),e.TgZ(12,"g",161),e._UZ(13,"rect",162)(14,"rect",163),e.qZA()()()}if(2&_){const t=e.oxw(2).$implicit,n=e.oxw(4);e.xp6(1),e.Q6J("ngIf",t.IsNoteSaving),e.xp6(1),e.Q6J("ngModel",n._Note[t.IDMain.toString()+"-"+t.DayPlan.toString()+"-"+t.CodeMasterPlan.toString()].New)}}function ht(_,r){if(1&_){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",97)(2,"div",98)(3,"div",99),e.YNc(4,ot,8,6,"ng-container",6),e.YNc(5,st,2,0,"ng-container",6),e.TgZ(6,"mat-menu",null,100)(8,"button",101),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(),a=i.index,o=i.$implicit,s=e.oxw().$implicit,l=e.oxw(3);return e.KtG(l.printMPCell(l.dayNames[a],s.dayplan,o.CodeMasterPlan,s.IDMain))}),e.TgZ(9,"span"),e._uU(10),e.qZA()()(),e.YNc(11,rt,1,1,"img",102),e.qZA(),e.TgZ(12,"div",103),e.YNc(13,ct,31,9,"div",104),e.TgZ(14,"div",105)(15,"div",106),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit,a=e.oxw(4);return i.isTouched=!0,e.KtG(a._AddMenusTrigger.emit({NewDate:a.newDate,IDDetail:i.ID,IDMain:i.IDMain,DayPlan:i.DayPlan,CodeMasterPlan:i.CodeMasterPlan}))}),e.TgZ(16,"div",107),e.YNc(17,dt,2,1,"div",108),e.qZA()()(),e.TgZ(18,"div",109),e.YNc(19,gt,4,1,"div",110),e.TgZ(20,"div",111),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit,a=e.oxw(4);return e.KtG(a._isView?"":a.editNoteBegin(i))}),e.YNc(21,ut,2,1,"span",112),e.qZA(),e.YNc(22,ft,15,2,"div",113),e.qZA()()()(),e.BQk()}if(2&_){const t=e.oxw().$implicit,n=e.oxw(4);e.xp6(1),e.ekj("DGray",t.IsLock)("pointer-none",t.IsLock),e.Q6J("id","iddetail~"+t.ID),e.xp6(3),e.Q6J("ngIf",n._ViewPref.isButtons),e.xp6(1),e.Q6J("ngIf",!n._ViewPref.isButtons),e.xp6(
15),e.Oqu(n.tr.UIT[180611]),e.xp6(1),e.Q6J("ngIf",!(n._isView||n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain]&&n.isSearchItemEnabled[t.IDMain+"-"+t.DayPlan+"-"+t.CodeMasterPlan+"-"+t.IDMain].gate)),e.xp6(2),e.Q6J("ngIf",n._ViewPref.isMenuCardDeets),e.xp6(4),e.Q6J("ngForOf",n.getDetailsData(t)),e.xp6(2),e.Q6J("ngIf",!n._isView&&!t.IsEditNote&&!t.Note),e.xp6(2),e.Q6J("ngIf",t.Note&&!t.IsEditNote),e.xp6(1),e.Q6J("ngIf",!n._isView&&t.IsEditNote)}}function Dt(_,r){if(1&_&&(e.TgZ(0,"div"),e.YNc(1,ht,23,14,"ng-container",6),e.qZA()),2&_){const t=r.$implicit,n=e.oxw().$implicit,i=e.oxw(3);e.ekj("d-none",n.dayplan!==t.DayPlan||i._MenuplanMasterPlanID!==t.IDMain),e.xp6(1),e.Q6J("ngIf",n.dayplan===t.DayPlan&&i._MenuplanMasterPlanID===t.IDMain)}}function Ct(_,r){if(1&_&&(e.TgZ(0,"div",80)(1,"div",174)(2,"div",175),e.YNc(3,$e,3,4,"span",6),e.YNc(4,Be,2,1,"span",6),e.qZA(),e.TgZ(5,"div",176),e._UZ(6,"img",177),e.TgZ(7,"mat-menu",null,178)(9,"div",179),e.YNc(10,He,9,6,"ng-container",6),e.YNc(11,Ke,2,3,"div",85),e.qZA()()(),e.TgZ(12,"div",180),e.O4$(),e.TgZ(13,"svg",181),e._UZ(14,"circle",124)(15,"circle",125)(16,"circle",126),e.qZA(),e.kcU(),e.TgZ(17,"mat-menu",182,100)(19,"div",179),e.YNc(20,ze,3,2,"ng-container",6),e.YNc(21,et,2,0,"ng-container",6),e.qZA()()()(),e.TgZ(22,"div",167),e.YNc(23,Dt,2,3,"div",87),e.qZA()()),2&_){const t=r.$implicit,n=e.MAs(8),i=e.MAs(18),a=e.oxw(3);e.Q6J("ngClass",t.isShow?"d-flex flex-column p-2 gap-2":"d-none"),e.xp6(3),e.Q6J("ngIf",a._MenuplanInfo.CyclePlan),e.xp6(1),e.Q6J("ngIf",!a._MenuplanInfo.CyclePlan),e.xp6(2),e.Q6J("matMenuTriggerFor",n),e.xp6(4),e.Q6J("ngIf",a._ViewPref.isDayCardDeets),e.xp6(1),e.Q6J("ngIf",a._ViewPref.isTotalCost),e.xp6(2),e.Q6J("mat-menu-trigger-for",i),e.xp6(7),e.Q6J("ngIf",a._ViewPref.isButtons),e.xp6(1),e.Q6J("ngIf",!a._ViewPref.isButtons),e.xp6(2),e.Q6J("ngForOf",a._MenuplanDetails)}}function Mt(_,r){if(1&_){const t=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"div",8)(1,"span",165),e.NdJ("click",function(){const a=e.CHM(t).$implicit,o=e.oxw(3);return e.KtG(o.selectWeekDay(a.value,!0))}),e._uU(2),e.qZA()()}if(2&_){const t=r.$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("ngClass",t.value==n.currentWeek?"colorMyOrange EGS_Empty16Bold EGS_Text_Underline pointer my-auto px-1":"pointer my-auto px-1"),e.xp6(1),e.hij(" ",t.text," ")}}function vt(_,r){if(1&_){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",166)(2,"div",167)(3,"div",8)(4,"div",168),e._uU(5," \xa0 "),e.qZA()(),e.TgZ(6,"div",169),e.YNc(7,Re,7,4,"div",170),e.qZA()(),e.TgZ(8,"div")(9,"div",8),e.YNc(10,Ct,24,10,"div",67),e.qZA()()(),e.TgZ(11,"div",68)(12,"span",26),e._uU(13),e.qZA(),e.TgZ(14,"div",69),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.previousNext("first"))}),e.O4$(),e.TgZ(15,"svg",70),e._UZ(16,"path",71)(17,"path",72),e.qZA()(),e.kcU(),e.TgZ(18,"div",69),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.previousNext("previous"))}),e.O4$(),e.TgZ(19,"svg",73),e._UZ(20,"path",71),e.qZA()(),e.YNc(21,Mt,3,2,"div",74),e.kcU(),e.TgZ(22,"div",69),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.previousNext("next"))}),e.O4$(),e.TgZ(23,"svg",75),e._UZ(24,"path",71),e.qZA()(),e.kcU(),e.TgZ(25,"div",69),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.previousNext("last"))}),e.O4$(),e.TgZ(26,"svg",76),e._UZ(27,"path",71)(28,"path",72),e.qZA()()(),e.BQk()}if(2&_){const t=e.oxw(2);e.xp6(7),e.Q6J("ngForOf",t.masterplanList),e.xp6(3),e.Q6J("ngForOf",t.daysPerWeek),e.xp6(3),e.Oqu(t.tr.UIT[179107]),e.xp6(8),e.Q6J("ngForOf",t.arrWeeks)}}function Tt(_,r){if(1&_&&(e.TgZ(0,"div",184)(1,"div",185)(2,"div",186),e._UZ(3,"img",187)(4,"div")(5,"span",188),e.qZA()()()),2&_){const t=e.oxw(2);e.xp6(5),e.Q6J("innerHTML",t.tr.UIT[180505].replace("%s","colorMyOrange").replace("%c","EGS_Empty16Bold"),e.oJD)}}function xt(_,r){if(1&_&&(e.TgZ(0,"div",4),e.YNc(1,oe,8,5,"div",5),e.YNc(2,ue,4,3,"div",5),e.YNc(3,me,8,10,"ng-container",6),e.YNc(4,Qe,29,4,"ng-container",6),e.YNc(5,vt,29,4,"ng-container",6),e.YNc(6,Tt,6,1,"div",7),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.masterplanList.length>0&&!t._isFC),e.xp6(1),e.Q6J("ngIf",!t._isView||t._isView&&t._isFC),e.xp6(1),e.Q6J("ngIf",t._isView),e.xp6(1),e.Q6J("ngIf",t.masterplanList.length>0&&t._ViewPref.isPerDay),e.xp6(1),e.Q6J("ngIf",t.masterplanList.length>
10&&!t._ViewPref.isPerDay),e.xp6(1),e.Q6J("ngIf",0===t.masterplanList.length)}}function It(_,r){1&_&&(e.TgZ(0,"div",189),e._UZ(1,"app-buffer",190),e.qZA()),2&_&&(e.xp6(1),e.Q6J("isFullH",!1))}function yt(_,r){1&_&&e._UZ(0,"img",215)}function kt(_,r){1&_&&e._UZ(0,"img",216)}function Pt(_,r){if(1&_&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&_){const t=r.$implicit;e.xp6(1),e.hij(" \u2022 ",t," ")}}function Zt(_,r){if(1&_&&(e.TgZ(0,"div")(1,"div",211)(2,"div",198)(3,"span",26),e._uU(4),e.qZA()(),e.TgZ(5,"div",200),e.YNc(6,yt,1,0,"img",212),e.YNc(7,kt,1,0,"img",213),e.qZA(),e.TgZ(8,"div",214),e.YNc(9,Pt,2,1,"div",108),e.qZA()()()),2&_){const t=r.$implicit,n=r.index;e.xp6(1),e.ekj("border-top",n>0),e.xp6(3),e.Oqu(t.Cat),e.xp6(2),e.Q6J("ngIf",t.isLocked),e.xp6(1),e.Q6J("ngIf",!t.isLocked),e.xp6(2),e.Q6J("ngForOf",t.Names)}}function wt(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"mat-checkbox",219),e.NdJ("change",function(i){const o=e.CHM(t).$implicit,s=e.oxw(3);return e.KtG(s.copyMasterPlanSelectionChange(i,o))}),e._uU(1),e.qZA()}if(2&_){const t=r.$implicit;e.ekj("mt-3",r.index>0),e.xp6(1),e.Oqu(t.Name)}}function Ot(_,r){if(1&_&&(e.TgZ(0,"div",217),e.YNc(1,wt,2,3,"mat-checkbox",218),e.qZA()),2&_){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t._CopyMenu._VIEW_MasterPlanLists)}}function Nt(_,r){if(1&_){const t=e.EpF();e.TgZ(0,"div",191)(1,"button",192)(2,"img",193),e.NdJ("click",function(){const a=e.CHM(t).$implicit;return e.KtG(a.close(0))}),e.qZA()(),e.TgZ(3,"div",194)(4,"span",195),e._uU(5),e.qZA()(),e.TgZ(6,"div",196)(7,"div",197)(8,"div",198)(9,"span",199),e._uU(10),e.qZA()(),e.TgZ(11,"div",200)(12,"span",199),e._uU(13),e.qZA()(),e.TgZ(14,"div",201)(15,"span",199),e._uU(16),e.qZA()()(),e.YNc(17,Zt,10,6,"div",108),e.qZA(),e.TgZ(18,"div",202)(19,"span",203),e._uU(20),e.qZA(),e._UZ(21,"div",55),e.TgZ(22,"div")(23,"mat-form-field",204)(24,"input",205),e.NdJ("click",function(){e.CHM(t);const i=e.MAs(27);return e.KtG(i.open())})("ngModelChange",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a._CopyMenu._DestinationDate=i)}),e.qZA(),e._UZ(25,"mat-datepicker-toggle",18)(26,"mat-datepicker",null,206),e.qZA()()(),e.YNc(28,Ot,2,1,"div",207),e.TgZ(29,"div",186)(30,"div",208)(31,"mat-checkbox",209),e.NdJ("ngModelChange",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a._CopyMenu._Override=i)}),e.TgZ(32,"span",66),e._uU(33),e.qZA()()(),e.TgZ(34,"button",210),e.NdJ("click",function(){const a=e.CHM(t).$implicit;return e.KtG(a.close(1))}),e._uU(35),e.qZA()()()}if(2&_){const t=e.MAs(27),n=e.oxw();e.xp6(5),e.Oqu(n.tr.UIT[180577]),e.xp6(5),e.Oqu(n.tr.UIT[175335]),e.xp6(3),e.Oqu(n.tr.UIT[10468]),e.xp6(3),e.Oqu(n.tr.UIT[180499]),e.xp6(1),e.Q6J("ngForOf",n._CopyMenu._Items),e.xp6(3),e.hij("",n.tr.UIT[180578],"\xa0:\xa0"),e.xp6(3),e.Q6J("appearance","outline"),e.xp6(1),e.Q6J("ngModel",n._CopyMenu._DestinationDate)("matDatepicker",t)("min",n.orig_firstDayOfTheWeek),e.xp6(1),e.Q6J("for",t),e.xp6(3),e.Q6J("ngIf",n._CopyMenu._isFromCell),e.xp6(3),e.Q6J("ngModel",n._CopyMenu._Override),e.xp6(2),e.Oqu(n.tr.UIT[180579]),e.xp6(2),e.Oqu(n.tr.UIT[172819])}}function St(_,r){if(1&_&&(e.TgZ(0,"option",27),e._uU(1),e.qZA()),2&_){const t=r.$implicit;e.Q6J("value",t.N),e.xp6(1),e.Oqu(t.N)}}function Wt(_,r){if(1&_&&(e.TgZ(0,"option",27),e._uU(1),e.qZA()),2&_){const t=r.$implicit;e.Q6J("value",t.N),e.xp6(1),e.Oqu(t.N)}}function Et(_,r){if(1&_&&(e.TgZ(0,"option",27),e._uU(1),e.qZA()),2&_){const t=r.$implicit;e.Q6J("value",t.N),e.xp6(1),e.Oqu(t.N)}}function At(_,r){if(1&_){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",192)(2,"img",193),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit;return e.KtG(i.close(0))}),e.qZA()(),e.TgZ(3,"div",8)(4,"span",220),e._uU(5),e.qZA()(),e.TgZ(6,"div",221)(7,"span",222),e._uU(8),e.qZA(),e.TgZ(9,"span",203),e._uU(10),e.qZA(),e.TgZ(11,"div",8)(12,"select",223),e.NdJ("ngModelChange",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a._CopyORmove._SEL._FROM_1=i)})("ngModelChange",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.change_moveCopy_f1())}),e.TgZ(13,"option",27),e._uU(14),e.qZA(),e.YNc(15,St,2,2,"option",25),e.qZA(),e.O4$(),e.TgZ(16,"svg",224),e._UZ(17,"line",225),e.qZA(),e.kcU(),e.TgZ(18,"select",223),e.NdJ("ngModelChange",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a._CopyORmove._SEL._FROM_2=i)})("ngModelChange",function(){e.CHM(t);const i=e.oxw(2);
1return e.KtG(i.change_moveCopy_f2())}),e.TgZ(19,"option",27),e._uU(20),e.qZA(),e.YNc(21,Wt,2,2,"option",25),e.qZA()()(),e.TgZ(22,"div",221)(23,"span",222),e._uU(24),e.qZA(),e.TgZ(25,"span",203),e._uU(26),e.qZA(),e.TgZ(27,"div",8)(28,"select",226),e.NdJ("ngModelChange",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a._CopyORmove._SEL._TO=i)}),e.TgZ(29,"option",27),e._uU(30),e.qZA(),e.YNc(31,Et,2,2,"option",25),e.qZA()()(),e.TgZ(32,"div",186)(33,"div",208)(34,"mat-checkbox",209),e.NdJ("ngModelChange",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a._CopyORmove._Override=i)}),e.TgZ(35,"span",66),e._uU(36),e.qZA()()(),e.TgZ(37,"div",86)(38,"button",227),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit;return e.KtG(i.close(1))}),e._uU(39),e.qZA(),e.TgZ(40,"button",227),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit;return e.KtG(i.close(2))}),e._uU(41),e.qZA()()(),e.BQk()}if(2&_){const t=e.oxw(2);e.xp6(5),e.AsE("",t.tr.UIT[10103],"/",t.tr.UIT[180587],""),e.xp6(3),e.Oqu(t.tr.UIT[3721]),e.xp6(2),e.Oqu(t.tr.UIT[179107]),e.xp6(2),e.Q6J("ngModel",t._CopyORmove._SEL._FROM_1),e.xp6(1),e.Q6J("value",-1),e.xp6(1),e.Oqu(t.tr.UIT[158306]),e.xp6(1),e.Q6J("ngForOf",t._CopyORmove._FROM_1),e.xp6(3),e.Q6J("ngModel",t._CopyORmove._SEL._FROM_2),e.xp6(1),e.Q6J("value",-1),e.xp6(1),e.Oqu(t.tr.UIT[158306]),e.xp6(1),e.Q6J("ngForOf",t._CopyORmove._FROM_2),e.xp6(3),e.Oqu(t.tr.UIT[180586]),e.xp6(2),e.Oqu(t.tr.UIT[179107]),e.xp6(2),e.Q6J("ngModel",t._CopyORmove._SEL._TO),e.xp6(1),e.Q6J("value",-1),e.xp6(1),e.Oqu(t.tr.UIT[158306]),e.xp6(1),e.Q6J("ngForOf",t._CopyORmove._TO),e.xp6(3),e.Q6J("ngModel",t._CopyORmove._Override),e.xp6(2),e.Oqu(t.tr.UIT[180579]),e.xp6(3),e.Oqu(t.tr.UIT[10103]),e.xp6(2),e.Oqu(t.tr.UIT[180587])}}function bt(_,r){1&_&&(e.ynx(0),e._UZ(1,"app-buffer",190),e.BQk()),2&_&&(e.xp6(1),e.Q6J("isFullH",!1))}function Ut(_,r){if(1&_&&(e.TgZ(0,"div",191),e.YNc(1,At,42,22,"ng-container",6),e.YNc(2,bt,2,1,"ng-container",6),e.qZA()),2&_){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t._CopyORmove._buffer),e.xp6(1),e.Q6J("ngIf",t._CopyORmove._buffer)}}let Ft=(()=>{var _;class r{constructor(n,i,a,o,s,l,p,m,d,f,T,y,D){this.menuplanGetCyclePlanWeeks=n,this.menuplanGetMain=i,this.unitFormat=a,this.getFilters=o,this.get_MP_DETAILS=s,this.DateAdapter=l,this.alertService=p,this.modal=m,this._location=d,this.api=f,this.dateService=T,this.printActionTriggerService=y,this.printTriggerService=D,this._MenuplanDetailsChange=new e.vpe,this._MenuplanInfo=c.X1.Info,this._MenuplanInfoChange=new e.vpe,this._AddMenusTrigger=new e.vpe,this._MenuplanDetailsDataChange=new e.vpe,this._MenuplanMasterPlanIDChange=new e.vpe,this.newDate=new Date,this._isSaveSensitiveData=!1,this._isSaveSensitiveDataChange=new e.vpe,this._isView=!1,this._Week=[],this.printButtonClick=new e.vpe,this._isFC=!1,this._isFCChange=new e.vpe,this.saveMPtrigger=new e.vpe,this.FCtrigger=new e.vpe,this._DeleteChange=new e.vpe,this._Note={},this._NoteChange=new e.vpe,this.role=c.n5.Data.su.toString(),this.tier=c.n5.Data.tierCode.toString(),this._CopyMenu_Default={_MenuplanDetails:[],_MenuplanDetailsData:[],_DestinationDate:new Date,_DestinationIDMain:0,_DestinationDayPlan:0,_DestinationCodeMasterPlan:0,_DestinationFirstDayOfTheWeek:new Date,_DestinationLastDayOfTheWeek:new Date,_Override:!1,_SourceDetailID:-1,_MasterPlans:{},_isFromCell:!1,_VIEW_MasterPlanLists:[]},this._CopyMenu=JSON.parse(JSON.stringify(this._CopyMenu_Default)),this._CopyORmove_Default={_StartDate:new Date,_EndDate:new Date,_DestinationDate:new Date,_MenuplanDetails:[],_MenuplanDetailsData:[],_Override:!1,_buffer:!1,_FROM_1:[],_FROM_2:[],_TO:[],_SEL:{_FROM_1:"-1",_FROM_2:"-1",_TO:"-1"}},this._CopyORmove=JSON.parse(JSON.stringify(this._CopyORmove_Default)),this.monthNames=[c.NZ.translations.UIT[7551],c.NZ.translations.UIT[7552],c.NZ.translations.UIT[7553],c.NZ.translations.UIT[7554],c.NZ.translations.UIT[7555],c.NZ.translations.UIT[7556],c.NZ.translations.UIT[7557],c.NZ.translations.UIT[7558],c.NZ.translations.UIT[7559],c.NZ.translations.UIT[7560],c.NZ.translations.UIT[7561],c.NZ.translations.UIT[7562]],this._ViewPref={isPerDay:c.NZ.menuplan_view,isTotalCost:!0,isDayCardDeets:!0,isMenuCardDeets:!0,isButtons:!0},this.selectedMasterPlans={},this.dayNames=[c.NZ.translations.UIT[7571],c.NZ.translations.UIT[7572],c.NZ.translations.UIT[7573],c.NZ.translations.UIT[7574],c.NZ.translations.UIT[7575],c.NZ.translations.UIT[7576],c.NZ.translations.UIT[7570]],this.tr=c.NZ.translations,this.isBuffering=!0,this.isEditNote=!1,this.stop=new k.x,this.isSearchItemEnabled={},this._Move={Source:{S:Date,E:Date},Destination:{S:Date,E:Date},Override:!1},this.cyclePlanWeeks=[],this.arrWeeks=[],this.masterplanList=[],this.daysPerWeek=[],this.drpYears=[],this.intCurrentWeek=-1,this.ttlWeeksPerYear=0,this.isFromPreviousNextFunction=!1,this.isFromCalendarSelect=!1,this.init=!1,this.weeklyCostValue=0,this.weeklyCostValueFormatted="",this.MPPrint={selectedDayName:"",selectedDayPlan:0,selectedCellID:0,selectedIDMain:0},this.DateAdapter.getFirstDayOfWeek=()=>c.NZ.firstDayOfWeek,this.printActionTriggerService.get().pipe((0,I.q)(1)).subscribe(b=>{this.printMPPerDay(this.MPPrint.selectedDayName,this.MPPrint.selectedDayPlan,this.MPPrint.selectedIDMain)})}ngOnInit(){this.newDate=new Date(this._MenuplanInfo.StartDate),c.X1.isReset&&(c.X1.Details=[],this._MenuplanDetails=c.X1.Details,this._MenuplanDetailsChange.emit(this._MenuplanDetails),c.X1.DetailsData=[],this._MenuplanDetailsData=c.X1.DetailsData,this._MenuplanDetailsDataChange.emit(this._MenuplanDetailsData),c.X1.TranslationList=[],c.X1.DailyCost=[],c.X1.DailyMargin=[],c.X1.IDMainList=[],this.arrWeeks=[],this.cyclePlanWeeks=[],this.masterplanList=[],this.daysPerWeek=[],this.drpYears=[],this.currentWeek=0,this._MenuplanMasterPlanID=-1,this._MenuplanMasterPlanIDChange.emit(this._MenuplanMasterPlanID),c.X1.isReset=!1)}ngOnChanges(n){var i=this;return(0,M.Z)(function*(){n._MenuplanInfo&&n._MenuplanInfo.isFirstChange()&&(i.isBuffering=!0),n._MenuplanDetails&&n._MenuplanDetails.firstChange&&(i._isSaveSensitiveData&&(yield i.saveMenuPlanInfo(i._isSaveSensitiveData)),i._MenuplanInfo.CyclePlan?i.bindCycleTabs(i._MenuplanMasterPlanID):i.bindWeekTabs())})()}trackByFn(n,i){return i.text}getMenuplanDetails(n,i=!1){return new Promise((a,o)=>{this.get_MP_DETAILS.get(c.X1.Info.Code,n).pipe((0,I.q)(1)).subscribe({next:s=>{if(!Array.isArray(s)||s.length<5)return o(!1);console.log("Menuplan Details fetched:",s);const l=(p,m,d)=>Array.from(new Map([...p,...m].map(f=>[f[d],f])).values());if(c.X1.Details=s[0].length>0?l(s[0],c.X1.Details.filter(p=>-1!==p.ID),"ID"):c.X1.Details,c.X1.DetailsData=s[1].length>0?l(s[1],c.X1.DetailsData.filter(p=>-1!==p.IDDetailsData),"IDDetailsData"):c.X1.DetailsData,c.X1.TranslationList=s[2].length>0?l(s[2],c.X1.TranslationList.filter(p=>-1!==p.IDDetails),"IDDetails"):c.X1.TranslationList,c.X1.DailyCost=s[3].length>0?[...s[3]]:c.X1.DailyCost,c.X1.DailyMargin=s[4].length>0?[...s[4]]:c.X1.DailyMargin,this._MenuplanDetails=c.X1.Details,this._MenuplanDetailsData=c.X1.DetailsData,this._MenuplanDetailsChange.emit(this._MenuplanDetails),this._MenuplanDetailsDataChange.emit(this._MenuplanDetailsData),i)return a(s);this._MenuplanInfo.CyclePlan?this.bindCycleTabs(n):this.bindWeekTabs(),a(!0)},error:()=>{o(!1)}})})}ngOnDestroy(){this.stop.next(void 0)}bindCycleTabs(n){const i=o=>{this.currentWeek=o.WeekNum,this._MenuplanMasterPlanID=o.IDMain,this._MenuplanMasterPlanIDChange.emit(this._MenuplanMasterPlanID),this.firstDayOfTheWeek=new Date(o.StartDate),this.lastDayOfTheWeek=new Date(o.EndDate)};if(-1===this._MenuplanInfo.Code)return;this.arrWeeks=[];let a=this.cyclePlanWeeks.find(o=>o.IDMain===n);!a&&this._INDATE&&(this._INDATE&&!(this._INDATE instanceof Date)&&(this._INDATE=new Date(this._INDATE)),a={StartDate:this._INDATE}),this.cyclePlanWeeks=[],c.X1.CyclePlanWeeks=[],this.menuplanGetCyclePlanWeeks.get(this._MenuplanInfo.Code,this._MenuplanInfo.StartDate).pipe((0,I.q)(1)).subscribe(o=>{if(this.cyclePlanWeeks=o[0],c.X1.CyclePlanWeeks=o[0],this.arrWeeks.length<this.cyclePlanWeeks.length){if(this.cyclePlanWeeks.forEach((l,p)=>{let m={idMain:l.IDMain,text:l.WeekNum.toString(),value:l.WeekNum,year:new Date(l.StartDate).getFullYear(),yearEnd:new Date(l.EndDate).getFullYear(),firstDayOfTheWeek:l.StartDate,lastDayOfTheWeek:l.EndDate,firstDayOfTheCycle:l.StartDate,weekNo:l.WeekNum};this.arrWeeks.push(m),this.currentRecurrence=l.Recurrence,this.lastDayOfTheCycle=l.LastDate,l.CurrentWeek&&!(this._INDATE&&this.cyclePlanWeeks.length>0)&&i(l)}),this._INDATE&&this.cyclePlanWeeks.length>0){const l=this.cyclePlanWeeks.find(p=>(p.StartDate<=this._INDATE||new Date(p.StartDate)<=this._INDATE)&&(p.End
1Date>=this._INDATE||new Date(p.EndDate)>=this._INDATE));delete this._INDATE,i(l)}if(n&&n>0&&this.cyclePlanWeeks.length>0){const l=this.cyclePlanWeeks.find(p=>p.IDMain===n);i(l)}this.dtFirstDayOfTheWeek=new Date(this.firstDayOfTheWeek),(!n||-1===n)&&(this.orig_firstDayOfTheWeek=this.firstDayOfTheWeek,this.orig_lastDayOfTheCycle=this.lastDayOfTheCycle),this.dtFirstDayOfTheWeek=this.isFromCalendarSelect?this.newDate:this.firstDayOfTheWeek,this.drpYears=[],this.arrWeeks.forEach(l=>{this.drpYears.includes(l.year)||this.drpYears.push(l.year)}),this.curYearSelectedValue=new Date(this.firstDayOfTheWeek).getFullYear()}this.populateMasterPlan()})}getMasterList(){return new Promise((n,i)=>{this._MenuplanInfo.Code>0?this.api.UniCall({C:"Kiosk_API_GetMasterPlanList_PerMenuplan",P:[{P:"@CodeUser",V:""},{P:"@CodeMenuPlan",V:this._MenuplanInfo.Code}]}).subscribe({next:a=>{this.masterplanList=a[0],this.sortMasterPlanList(),n(!0)},error:a=>{i(!1)}}):this.getFilters.get(!1,!1,!1,!0).pipe((0,I.q)(1)).subscribe({next:a=>{this.masterplanList=c.nf.MP.data,this.sortMasterPlanList(),n(!0)}})})}sortMasterPlanList(){this.masterplanList=this.masterplanList.sort((n,i)=>n.Code-i.Code)}populateMasterPlan(n){var i=this;return(0,M.Z)(function*(){!i.init&&0===i.masterplanList.length&&(yield i.getMasterList(),i.init=!0),i.masterplanList.length>0&&0===i._MenuplanDetails.filter(a=>a.IDMain===i._MenuplanMasterPlanID).length&&(yield i.getMenuplanDetails(i._MenuplanMasterPlanID)),i.fillItems(),i.populateWeekDate()})()}push_MenuplanDetails(n){this._MenuplanDetails.push(n),this.sortMpDetails(),this._MenuplanDetailsChange.emit(this._MenuplanDetails)}sortMpDetails(){this._MenuplanDetails.sort((n,i)=>{const a=n.CodeMasterPlan,o=i.CodeMasterPlan;return(this.masterplanList.find(p=>p.Code===a)?.Position||0)-(this.masterplanList.find(p=>p.Code===o)?.Position||0)})}fillItems(){this.isBuffering=!0;const n=this.getDateRange(this.firstDayOfTheWeek,this.lastDayOfTheWeek);for(var i=0;i<=n.length-1;i++){let o=i+1,s=new Date(this.firstDayOfTheWeek),l=new Date(s.setDate(s.getDate()-1));l=new Date(l.setDate(l.getDate()+o)),this.masterplanList.forEach(p=>{let m={ID:-1,IDMain:this._MenuplanMasterPlanID,DayPlan:o,CodeMasterPlan:p.Code,IsLock:!1,PlanValue1:0,PlanValue2:0,PlanValue1Total:0,PlanValue2Total:0,IsPlanValue1Cleared:!1,IsPlanValue2Cleared:!1,SellingPrice:0,CalcPrice:0,Percentage:0,NetMarginCHF:0,CodeSetPrice:0,CodeTax:0,TaxValue:0,TaxCost:0,Symbole:"",PriceFormat:"",Name:"",Name_EN:"",Name_DE:"",Name_FR:"",Name_IT:"",Note:"",Note_EN:"",Note_DE:"",Note_FR:"",Note_IT:"",N1:0,N2:0,N3:0,N4:0,N5:0,Delifit:!1,DelifitThroughNote:!1,DiscountedPrice:0,Position:p.Position,MarginInPct:"0",IDDetails:-1,Recalculate:!1,ModifyDate:new Date,CodeRestaurant:-1,IsEditNote:!1,IsNoteSaving:!1};this._MenuplanDetails.find(d=>d.IDMain===this._MenuplanMasterPlanID&&d.DayPlan===o&&d.CodeMasterPlan===p.Code)||this.push_MenuplanDetails(m)})}this._MenuplanDetails=this._MenuplanDetails.filter(o=>-1!==o.IDMain);let a=this._MenuplanDetails.filter(o=>o.IDMain===this._MenuplanMasterPlanID);this._MenuplanDetails=this._MenuplanDetails.map(function(o){return{...o,MarginInPct:"0"}}),a.length>0?(a.forEach((o,s)=>{if(this._MenuplanMasterPlanID===o.IDMain){a[s].formattedSellingPrice=this.unitFormat.format(a[s].SellingPrice,2,2),a[s].MarginInPct=this.unitFormat.format((a[s].SellingPrice-a[s].CalcPrice*(1+a[s].TaxValue/100))/a[s].SellingPrice*100,2,2),a[s].MarginInPct=["Infinity","-\u221e","NaN"].includes(a[s].MarginInPct)?"0":a[s].MarginInPct,a[s].formattedCalcPrice=this.unitFormat.format(parseFloat(`${a[s].CalcPrice??0}`),2,2);let l=this._MenuplanDetails.findIndex(d=>d.DayPlan==o.DayPlan&&d.CodeMasterPlan==o.CodeMasterPlan&&d.IDMain==this._MenuplanMasterPlanID);this._MenuplanDetails.splice(l,1),this.push_MenuplanDetails(a[s]);let m=[...[...this._MenuplanDetails].sort((d,f)=>d.DayPlan-f.DayPlan)].sort((d,f)=>d.Position-f.Position);this._MenuplanDetails=m}}),this.isBuffering=!1):this.isBuffering=!1,this.sortMpDetails(),this._MenuplanDetailsChange.emit(this._MenuplanDetails)}getDateRange(n,i){const a=[],o=new Date(n);for(i=new Date(i);o<=i;)a.push(new Date(o)),o.setDate(o.getDate()+1);return a}populateWeekDate(){this.isBuffering=!0,this.daysPerWeek=[];const n=this.getDateRange(this.firstDayOfTheWeek,this.lastDayOfTheWeek),i=this._Week.filter(s=>!s.isSelected).length;let a=0;for(var o=0;o<=n.length-1;o++){const s=this._MenuplanDetails.filter(u=>u.DayPlan===o+1&&u.IDMain===this._MenuplanMasterPlanID),l=s.reduce((u,h)=>
1u+h.CalcPrice,0),p=s.reduce((u,h)=>u+parseFloat(h.PlanValue1.toString()),0),m=s.reduce((u,h)=>u+parseFloat(h.PlanValue2.toString()),0),d=this._Week.find(u=>u.Number===n[o].getDay()).isSelected;d||a++;const f=s.reduce((u,h)=>u+(0===h.SellingPrice?0:(h.SellingPrice-h.CalcPrice)*h.PlanValue1/h.SellingPrice),0),T=parseFloat(f.toFixed(2))/parseFloat(p.toFixed(2))*100,y=s.reduce((u,h)=>u+(0===h.SellingPrice?0:(h.SellingPrice-h.CalcPrice)*h.PlanValue2/h.SellingPrice),0),D=parseFloat(y.toFixed(2))/parseFloat(m.toFixed(2))*100;let b={day:o+1,plannedtotal:p,visibleCount:o+1+(7-i)*(this.currentWeek-1)-a,date:this.monthNames[n[o].getMonth()]+" "+n[o].getDate()+", "+n[o].getFullYear(),dateFormatted:n[o].getFullYear()+"-"+(n[o].getMonth()+1)+"-"+n[o].getDate(),dayplan:o+1,plannedmargin:this.unitFormat.format(isNaN(T)?0:T,2,2),actualmargin:this.unitFormat.format(isNaN(D)?0:D,2,2),cost:l,formattedCost:this.unitFormat.format(l,2,2),isShow:d,IDMain:this._MenuplanMasterPlanID};this.daysPerWeek.push(b)}this.weeklyCostValue=this.daysPerWeek.reduce((s,l)=>s+l.cost,0),this.weeklyCostValueFormatted=this.unitFormat.format(this.weeklyCostValue,2,2),this.printActionTriggerService.setDaysPerWeek(this.daysPerWeek),this.printActionTriggerService.setSelectedIDMain(this._MenuplanMasterPlanID),this.isBuffering=!1}bindLabelCurrentWeek(){let n="",i=new Date(this.firstDayOfTheWeek),a=i.getFullYear(),o=this.monthNames[i.getMonth()],s=i.getDate(),l=new Date(this.lastDayOfTheWeek),p=l.getFullYear(),m=this.monthNames[l.getMonth()],d=l.getDate();return n=a==p?o==m?o+" "+s+" - "+d+", "+p:o+" "+s+" - "+m+" "+d+", "+p:o+" "+s+", "+a+" - "+m+" "+d+", "+p,this.printActionTriggerService.setLabelCurrentWeek(n),n}selectWeekDay(n,i=!1,a){var o=this;return(0,M.Z)(function*(){o.selectedMasterPlans={},o.currentWeek=i?n:parseInt(o.currentWeek.toString());let s=a??o.arrWeeks.find(l=>l.value===o.currentWeek&&l.year===parseInt(`${o.curYearSelectedValue}`));if(s)o._MenuplanMasterPlanID=s.idMain;else{let l=o.getWeekStartDate(o.curYearSelectedValue,o.currentWeek),m=o.arrWeeks[0].firstDayOfTheWeek.getDay();m!==c.NZ.firstDayOfWeek&&l.setDate(l.getDate()+(m-c.NZ.firstDayOfWeek));let d=new Date(l);d.setDate(l.getDate()+6),o._MenuplanMasterPlanID=yield o.getMainID(o.toCustomISOString(l),o.toCustomISOString(d,!0)),s={idMain:0,text:(n>o.ttlWeeksPerYear?n-o.ttlWeeksPerYear:n).toString(),value:n,year:n>o.ttlWeeksPerYear?o.curYearSelectedValue+1:o.curYearSelectedValue,yearEnd:l.getFullYear(),firstDayOfTheWeek:l,lastDayOfTheWeek:d}}o._MenuplanMasterPlanIDChange.emit(o._MenuplanMasterPlanID),o.firstDayOfTheWeek=s.firstDayOfTheWeek,o.lastDayOfTheWeek=s.lastDayOfTheWeek,o.newDate=o.firstDayOfTheWeek,o._MenuplanInfo.CyclePlan?o.populateMasterPlan():(o.isFromPreviousNextFunction=!0,o.bindWeekTabs())})()}selectYear(){this.selectedMasterPlans={},this.firstDayOfTheWeek=this.getWeekStartDate(this.curYearSelectedValue,this.currentWeek),this.lastDayOfTheWeek=new Date(this.firstDayOfTheWeek),this.lastDayOfTheWeek.setDate(this.lastDayOfTheWeek.getDate()+6),this.date_changed()}previousNext(n){this.selectedMasterPlans={};let i=this.currentWeek;if(i==this.arrWeeks.length&&"next"==n||1==i&&"previous"==n)return!1;if("next"==n)this.currentWeek+1<=(this._MenuplanInfo.CyclePlan?this.arrWeeks.length:this.ttlWeeksPerYear)&&(this.currentWeek+=1);else if("first"==n)this.currentWeek=this._MenuplanInfo.CyclePlan?this.arrWeeks[0].value:this.getISOWeekNumber(this.orig_firstDayOfTheWeek);else if("last"==n)this.currentWeek=this._MenuplanInfo.CyclePlan?this.arrWeeks[this.arrWeeks.length-1].value:this.ttlWeeksPerYear;else{if(!(this.currentWeek-1>=(this._MenuplanInfo.CyclePlan?this.arrWeeks[0].value:this.getISOWeekNumber(this.orig_firstDayOfTheWeek))))return;this.currentWeek-=1}this.selectWeekDay(this.currentWeek,!0)}bindWeekTabs(){var n=this;return(0,M.Z)(function*(){if(-1===n._MenuplanInfo.Code)return;let i,a;n.isBuffering=!0;const o=n.newDate??new Date,s=new Date(n._MenuplanInfo.StartDate);({firstDayFromIsoWeek:i,minDate:a}=n.initializeDates(o,s)),n.initializeYearDropdown(o,a),n.calculateTotalWeeks(),n.adjustForCurrentWeek(i),n.prepareWeeks(o,s,i,60,15),!n._MenuplanInfo.CyclePlan&&!n.isFromPreviousNextFunction&&n.setDefaultWeekRange(o),yield n.updateMenuPlanMasterID(),n.updateWeeksWithIDs(),n.populateMasterPlan()})()}initializeDates(n,i){let o,a=this.getFirstDayOfWeek(n,c.NZ.firstDayOfWeek);this.isFromPreviousNextFunction&&(this.arrWeeks=[]),this.orig_firstDayOfTheWeek||(this.orig_firstDayOfTheWeek=this.getFirstDayOfWeek(i,c.NZ.firstDayOfWeek));const s=new Date(i);return s.setFullYear(s.getFullYear()+2),o=n.getFullYear()>s.getFullYear()?s:n,{firstDayFromIsoWeek:a,minDate:o}}initializeYearDropdown(n,i){const a=Math.max(new Date(this._MenuplanInfo.StartDate).getFullYear(),i.getFullYear()-2),o=n.getFullYear()+2;this.drpYears=[];for(let s=a;s<=o;s++)this.drpYears.push(s);this.curYearSelectedValue=n.getFullYear()}calculateTotalWeeks(){this.ttlWeeksPerYear=[2004,2009,2015,2020,2026,2032,2037,2043,2048,2054,2060,2065,2071,2076,2082,2088,2093,2099,2105].includes(this.curYearSelectedValue)?53:52}adjustForCurrentWeek(n){53===this.intCurrentWeek&&(this.ttlWeeksPerYear=53,n.getFullYear()!==this.curYearSelectedValue&&(this.curYearSelectedValue=n.getFullYear())),-1===this.intCurrentWeek&&(this.intCurrentWeek=this.ttlWeeksPerYear),this.intCurrentWeek=this.getISOWeekNumber(n),this.currentWeek=this.intCurrentWeek}prepareWeeks(n,i,a,o,s){const l=this.getISOWeekNumber(i);let p=this.ttlWeeksPerYear;this.arrWeeks=[];let m=l,d=this.curYearSelectedValue;for(let f=0;f<s;f++)m>p&&(m=1,d++,p=this.isLeapYear(d)?53:52),this.addWeekToList(m,d),m++}addWeekToList(n,i=this.curYearSelectedValue){const a=this.getWeekStartDate(i,n),o=new Date(a),s=new Date(a);s.setDate(a.getDate()+6),this.arrWeeks.push({idMain:0,text:n.toString(),value:n,year:i,yearEnd:s.getFullYear(),firstDayOfTheWeek:o,lastDayOfTheWeek:s})}isLeapYear(n){return n%4==0&&n%100!=0||n%400==0}setDefaultWeekRange(n){const i=this._INDATE??new Date(this._MenuplanInfo.StartDate);delete this._INDATE,this.currentWeek=this.getISOWeekNumber(i),this.dtFirstDayOfTheWeek=this.getWeekStartDate(i.getFullYear(),this.currentWeek),this.firstDayOfTheWeek=new Date(this.dtFirstDayOfTheWeek),this.lastDayOfTheWeek=new Date(this.dtFirstDayOfTheWeek),this.lastDayOfTheWeek.setDate(this.dtFirstDayOfTheWeek.getDate()+6),this.dtFirstDayOfTheWeek=this.isFromCalendarSelect?this.newDate:this.firstDayOfTheWeek}updateMenuPlanMasterID(){var n=this;return(0,M.Z)(function*(){if((n._MenuplanMasterPlanID??-1)<=0){const i=yield n.getMainID(n.toCustomISOString(n.firstDayOfTheWeek),n.toCustomISOString(n.lastDayOfTheWeek,!0));n._MenuplanMasterPlanID=i,n._MenuplanMasterPlanIDChange.emit(n._MenuplanMasterPlanID)}})()}updateWeeksWithIDs(){for(const n of this.arrWeeks)if(0===n.idMain){const i=c.X1.IDMainList.find(a=>a.f===this.toCustomISOString(n.firstDayOfTheWeek)&&a.l===this.toCustomISOString(n.lastDayOfTheWeek,!0));n.idMain=i?i.ID:-1}}getMainID(n,i){var a=this;return(0,M.Z)(function*(){return new Promise((o,s)=>{a.menuplanGetMain.get(n,i,a._MenuplanInfo.Code).pipe((0,I.q)(1)).subscribe(l=>{let p=l[0][0].ID;c.X1.IDMainList.push({ID:p,f:n,l:i}),o(p)})})})()}getYearRange(n,i){const a=Number(i-n);return Math.floor(a/315576e5),a}getISOWeekNumber(n,i=1){const a=new Date(n.getFullYear(),0,1),o=(n.getTime()-a.getTime())/864e5,s=i<=a.getDay()?a.getDay()-i:7-i+a.getDay();return Math.ceil((o+s+1)/7)}getWeekStartDate(n,i,a=c.NZ.firstDayOfWeek){let s=new Date(n,0,1).getDay();return 1===a&&(s-=1,-1===s&&(s=6)),new Date(n,0,7*(i-1)-s+1)}date_changed(){if(this.firstDayOfTheWeek=new Date(this.firstDayOfTheWeek.setHours(0,0,0,0)),this.lastDayOfTheWeek=new Date(this.lastDayOfTheWeek.setHours(0,0,0,0)),this._MenuplanInfo.CyclePlan){let n;return n=this.arrWeeks.find(i=>this.toCustomISOString(this.firstDayOfTheWeek)>=this.toCustomISOString(new Date(i.firstDayOfTheWeek))&&this.toCustomISOString(this.firstDayOfTheWeek)<=this.toCustomISOString(new Date(i.lastDayOfTheWeek),!0)),this.currentWeek=parseInt(n.text),void this.selectWeekDay(this.currentWeek,!0)}this.currentWeek=this.getISOWeekNumber(this.firstDayOfTheWeek),this.selectWeekDay(this.currentWeek,!0)}saveNote(n){Object.keys(this._Note).find(a=>{const[o]=a.split("-");return Number(o)===n.IDMain})&&(n.Note=this._Note[`${n.IDMain}-${n.DayPlan}-${n.CodeMasterPlan}`].New??"",n.IsEditNote=!1,n.IsNoteSaving=!1)}getFirstDayOfWeek(n,i){const a=new Date(n.getTime());a.setHours(0,0,0,0);const o=a.getDay(),s=a.getDate()-o+(0===o?1===c.NZ.firstDayOfWeek?-6:0:i);return new Date(a.setDate(s))}getDetailsData(n){const i=`${n.IDMain}-${n.DayPlan}-${n.CodeMasterPlan}-${n.IDMain}`,a=this._MenuplanDetailsData.filter(o=>o.IDDetails===n.ID);return this.isSearchItemEnabled[i]&&this.isSearchItemEnabled[i].gate&&this.isSearchItemEnabled[i].text.trim().length>0?a.filter(o=>o.Name.toLowerCase().includes(this.isSearchItemEnabled[i].text.toLowerCase())):a}searchItem(n){const i=this.isSearchItemEnabled[n.IDMain+"-"+n.DayPlan+"-"+n.CodeMasterPlan+"-"+n.IDMain];if(i&&i.gate)return i.gate=!1,void(i.text="");this.isSearchItemEnabled[n.IDMain+"-"+n.DayPlan+"-"+n.CodeMasterPlan+"-"+n.IDMain]={gate:!0,text:""}}
1copyAction(n,i,a){var o=this;this._CopyMenu=JSON.parse(JSON.stringify(this._CopyMenu_Default));const s=this.arrWeeks.find(p=>p.value===this.currentWeek),l=this.modal.open(n,{size:"md",centered:!0});if(i){const p=this._MenuplanDetailsData.filter(m=>m.IDDetails===i.ID);if(p.length<1)return this.alertService.trigger("EGS_ERROR",c.NZ.translations.UIT[178458],c.NZ.translations.UIT[56350]),void l.dismiss();this._CopyMenu._VIEW_MasterPlanLists=this.masterplanList.filter(m=>m.Code!==i.CodeMasterPlan),this._CopyMenu._isFromCell=!0,this._CopyMenu._MenuplanDetails=[JSON.parse(JSON.stringify(i))],this._CopyMenu._Items=[],this._CopyMenu._Items.push({Cat:this.masterplanList.find(m=>m.Code===i.CodeMasterPlan).Name,isLocked:i.IsLock,Names:p.map(m=>m.Name)})}else{const p=this._MenuplanDetails.filter(d=>d.IDMain===s.idMain&&d.DayPlan===a);if(this._MenuplanDetailsData.filter(d=>p.map(f=>f.ID).includes(d.IDDetails)).length<1)return this.alertService.trigger("EGS_ERROR",c.NZ.translations.UIT[178458],c.NZ.translations.UIT[56350]),void l.dismiss();this._CopyMenu._MenuplanDetails=JSON.parse(JSON.stringify(p)),this._CopyMenu._Items=[];for(const d of p){const f=this._MenuplanDetailsData.filter(T=>T.IDDetails===d.ID);this._CopyMenu._Items.push({Cat:this.masterplanList.find(T=>T.Code===d.CodeMasterPlan).Name,isLocked:d.IsLock,Names:f.map(T=>T.Name)})}}this._CopyMenu._DestinationDayPlan=this._CopyMenu._MenuplanDetails[0].DayPlan,this._CopyMenu._DestinationCodeMasterPlan=this._CopyMenu._MenuplanDetails[0].CodeMasterPlan,this._CopyMenu._DestinationIDMain=this._CopyMenu._MenuplanDetails[0].IDMain,this._CopyMenu._DestinationDate=s.firstDayOfTheWeek,l.result.then(function(){var p=(0,M.Z)(function*(m){if(o.isBuffering=!0,1===m){let d,f;o._CopyMenu._DestinationDate=new Date(o._CopyMenu._DestinationDate);let T=o.getISOWeekNumber(new Date(o._CopyMenu._DestinationDate),c.NZ.firstDayOfWeek),y=o.getISOWeekNumber(new Date(o._MenuplanInfo.StartDate),c.NZ.firstDayOfWeek);if(o._MenuplanInfo.CyclePlan){if(d=o.getFirstDayOfWeek(o._CopyMenu._DestinationDate,new Date(o._MenuplanInfo.StartDate).getDay()),d.getDay()!==new Date(o._MenuplanInfo.StartDate).getDay()){const u=d.getDay()-new Date(o._MenuplanInfo.StartDate).getDay();d.setDate(d.getDate()-u)}T-=y,T++}else d=o.getFirstDayOfWeek(o._CopyMenu._DestinationDate,c.NZ.firstDayOfWeek);f=new Date(d),f.setDate(d.getDate()+6);const b={firstDayOfTheWeek:d,lastDayOfTheWeek:f,idMain:yield o.getMainID(o.toCustomISOString(d),o.toCustomISOString(f,!0)),text:T.toString(),value:T,year:o.curYearSelectedValue,yearEnd:d.getFullYear()};if(o._CopyMenu._DestinationFirstDayOfTheWeek=d,o._CopyMenu._DestinationLastDayOfTheWeek=f,i){const u=Object.keys(o._CopyMenu._MasterPlans).filter(h=>o._CopyMenu._MasterPlans[h]);if(u.length>0)for(const h of u){let U=JSON.parse(JSON.stringify(o._CopyMenu._MenuplanDetails[0]));U.CodeMasterPlan=parseInt(h),o._CopyMenu._MenuplanDetails.push(U)}}for(const u of o._CopyMenu._MenuplanDetails){let h=JSON.parse(JSON.stringify(o._MenuplanDetailsData.filter(C=>C.IDDetails===u.ID)));if(u.IDMain=b.idMain,u.DayPlan=o._MenuplanInfo.CyclePlan?o._CopyMenu._DestinationDate.getDay()-new Date(o._MenuplanInfo.StartDate).getDay()+1:o._CopyMenu._DestinationDate.getDay(),(0===o._CopyMenu._DestinationDate.getDay()||0===new Date(o._MenuplanInfo.StartDate).getDay())&&1===c.NZ.firstDayOfWeek&&(u.DayPlan+=7),i&&u.DayPlan===i.DayPlan&&u.CodeMasterPlan===i.CodeMasterPlan&&u.IDMain===i.IDMain)continue;u.ID=o._MenuplanDetails.find(C=>C.DayPlan===u.DayPlan&&C.IDMain===u.IDMain&&C.CodeMasterPlan===u.CodeMasterPlan)?.ID,(!u.ID||-1===u.ID)&&(u.ID=-((new Date).getTime()+Math.floor(1e3*Math.random()))),u.isTouched=!0;for(const C of h)o._MenuplanDetailsData.filter(L=>L.IDDetails===u.ID).length>3&&["1","2"].includes(o.tier)||(C.IDDetails=u.ID,C.IDDetailsData=-((new Date).getTime()+Math.floor(1e3*Math.random())));h=h.filter(C=>C.IDDetails===u.ID);const U=o._MenuplanDetails.findIndex(C=>C.DayPlan===u.DayPlan&&C.IDMain===u.IDMain&&C.CodeMasterPlan===u.CodeMasterPlan),B=o._MenuplanDetailsData.filter(C=>C.IDDetails===o._MenuplanDetails[U]?.ID);if(U>-1&&o._MenuplanDetails.splice(U,1),o.push_MenuplanDetails(u),o._MenuplanDetailsData.push(...h),o._CopyMenu._Override){const C=B.map(L=>L.IDDetailsData);o._MenuplanDetailsData=o._MenuplanDetailsData.filter(L=>!C.includes(L.IDDetailsData))}else for(const C of B)C.IDDetails=u.ID,C.IDDetailsData=-((new Date).getTime()+Math.floor(1e3*Math.random()))}o.selectWeekDay(b.value,!0,b)}l.dismiss(),o.isBuffering=!1});return function(m){return p.apply(this,arguments)}}()).catch(p=>{l.dismiss(),console.log(p),this.isBuffering=!1})}
1change_moveCopy_f1(){this._CopyORmove._SEL._FROM_2="-1",this._CopyORmove._SEL._TO="-1",this.load_f2()}change_moveCopy_f2(){this._CopyORmove._SEL._TO="-1",this.load_to()}load_f1(){const n=this.getISOWeekNumber(new Date(this._MenuplanInfo.StartDate));this._CopyORmove._FROM_1=[];for(let i=n;i<(this._MenuplanInfo.CyclePlan?this._MenuplanInfo.Duration/7:this.ttlWeeksPerYear);i++)this._CopyORmove._FROM_1.push({N:`${i}`,V:!0,S:!1})}load_f2(){this._CopyORmove._FROM_2=[];for(let n=parseInt(this._CopyORmove._SEL._FROM_1)+1;n<=(this._MenuplanInfo.CyclePlan?this._MenuplanInfo.Duration/7:this.ttlWeeksPerYear);n++)this._CopyORmove._FROM_2.push({N:`${n}`,V:!0,S:!1})}load_to(){this._CopyORmove._TO=[];const n=this.getISOWeekNumber(new Date(this._MenuplanInfo.StartDate)),i=parseInt(this._CopyORmove._SEL._FROM_2)-parseInt(this._CopyORmove._SEL._FROM_1),a=parseInt(this._CopyORmove._SEL._FROM_1)-i,o=parseInt(this._CopyORmove._SEL._FROM_2);for(let s=n;s<=(this._MenuplanInfo.CyclePlan?this._MenuplanInfo.Duration/7:this.ttlWeeksPerYear);s++)(s<a||s>o)&&this._CopyORmove._TO.push({N:`${s}`,V:!0,S:!1})}move_copy_weeks_select(n,i){n&&(this._CopyORmove._FROM_1[this._CopyORmove._FROM_1.findIndex(a=>`${a.N}`==`${n}`)].S=!0,this._CopyORmove._FROM_2[this._CopyORmove._FROM_2.findIndex(a=>a.S)].S=!1),i&&(this._CopyORmove._FROM_2[this._CopyORmove._FROM_2.findIndex(a=>`${a.N}`==`${i}`)].S=!0)}move_copy(n){var i=this;return(0,M.Z)(function*(){i._CopyORmove=JSON.parse(JSON.stringify(i._CopyORmove_Default));const a=i.modal.open(n,{size:"md",centered:!0});i._CopyORmove._SEL._FROM_1=i.currentWeek.toString(),i.load_f1(),i.change_moveCopy_f1();try{const o=yield a.result;if(i._CopyORmove._buffer=!0,1===o||2===o){const s=yield i.getSourceWeeks(),l=yield i.getDestinationWeeks(s);yield i.loadMenuplanDetails(s),yield i.loadMenuplanDetails(l),yield i.processWeeks(s,l,o);const p=l[0];p&&i.selectWeekDay(p.value,!0,p),a.dismiss()}else i._CopyORmove._buffer=!1,a.dismiss()}catch(o){console.error(o),i._CopyORmove._buffer=!1}})()}getSourceWeeks(){var n=this;return(0,M.Z)(function*(){const i=n._MenuplanInfo.CyclePlan?n.cyclePlanWeeks[0]:n.arrWeeks[0],a=[];for(let o=parseInt(n._CopyORmove._SEL._FROM_1);o<=parseInt(n._CopyORmove._SEL._FROM_2);o++){const s=yield n.calculateWeek(i,o);a.push(s)}return a})()}getDestinationWeeks(n){var i=this;return(0,M.Z)(function*(){const a=[];for(let o=0;o<n.length;o++){const s=yield i.calculateWeek(n[o],parseInt(i._CopyORmove._SEL._TO)+o);a.push(s)}return a})()}calculateWeek(n,i){var a=this;return(0,M.Z)(function*(){const o=new Date(n.firstDayOfTheWeek);o.setDate(o.getDate()+7*(i-n.value));const s=a.getFirstDayOfWeek(o,c.NZ.firstDayOfWeek),l=new Date(s);return l.setDate(s.getDate()+6),{idMain:yield a.getMainID(a.toCustomISOString(s),a.toCustomISOString(l,!0)),text:a.getISOWeekNumber(o,c.NZ.firstDayOfWeek).toString(),value:a.getISOWeekNumber(o,c.NZ.firstDayOfWeek),year:0,yearEnd:0,firstDayOfTheWeek:s,lastDayOfTheWeek:l}})()}loadMenuplanDetails(n){var i=this;return(0,M.Z)(function*(){for(const a of n){if(i._MenuplanDetails.some(s=>s.IDMain===a.idMain))continue;const o=yield i.getMenuplanDetails(a.idMain,!0);console.log(o)}})()}processWeeks(n,i,a){var o=this;return(0,M.Z)(function*(){for(let s=0;s<n.length;s++){const l=n[s],p=i[s],m=JSON.parse(JSON.stringify(o._MenuplanDetails.filter(d=>d.IDMain===l.idMain)));for(const d of m){const f=JSON.parse(JSON.stringify(d)),T=JSON.parse(JSON.stringify(o._MenuplanDetailsData.filter(D=>D.IDDetails===f.ID))),y=o._MenuplanDetails.find(D=>D.IDMain===p.idMain&&D.DayPlan===f.DayPlan&&D.CodeMasterPlan===f.CodeMasterPlan);f.IDMain=p.idMain,f.ID=y?.ID??-((new Date).getTime()+Math.floor(1e3*Math.random())),f.isTouched=!0,y||o.push_MenuplanDetails(f),o._CopyORmove._Override&&y&&(o._MenuplanDetailsData=o._MenuplanDetailsData.filter(D=>D.IDDetails!==y.ID));for(const D of T)D.IDDetails=f.ID,D.IDDetailsData=-((new Date).getTime()+Math.floor(1e3*Math.random())),o._MenuplanDetailsData.push(D);2===a&&(o._MenuplanDetails=o._MenuplanDetails.filter(D=>D.ID!==d.ID),o._MenuplanDetailsData=o._MenuplanDetailsData.filter(D=>D.IDDetails!==d.ID))}}})()}remove(){const n=Object.keys(this.selectedMasterPlans).filter(i=>this.selectedMasterPlans[i]);if(n&&n.length>0){const i=this._MenuplanDetails.filter(a=>a.CodeMasterPlan&&n.includes(a.CodeMasterPlan.toString())&&a.IDMain===this._MenuplanMasterPlanID);for(const a of i){if(a.IsLock)continue;this._Delete.Details.push(a.ID);const o=this._MenuplanDetailsData.filter(s=>s.IDDetails===a.ID);for(const s of o){const l=this._MenuplanDetailsData.findIndex(p=>p.IDDetailsData===s.IDDetailsData);l>-1&&this._MenuplanDetailsData.splice(l,1)}a.ID=-1,a.CalcPrice=0,a.PlanValue1=0,a.PlanValue2=0,a.PlanValue1Total=0,a.PlanValue2Total=0,a.IsPlanValue1Cleared=!1,a.IsPlanValue2Cleared=!1,a.SellingPrice=0,a.Percentage=0,a.NetMarginCHF=0,a.CodeSetPrice=0,a.CodeTax=0,a.TaxValue=0,a.TaxCost=0,a.Symbole="",a.PriceFormat="",a.MarginInPct="0",a.NetMarginCHF=0,a.formattedCalcPrice="0.00",a.formattedSellingPrice="0.00",a.PriceFormat=""}return this.selectedMasterPlans={},this.alertService.trigger("EGS_SUCCESS",void 0,c.NZ.translations.UIT[31460]),void this._DeleteChange.emit(this._Delete)}this.alertService.trigger("EGS_ERROR",c.NZ.translations.UIT[180584],c.NZ.translations.UIT[56350])}lockBulk(){const n=Object.keys(this.selectedMasterPlans).filter(i=>this.selectedMasterPlans[i]);if(n&&n.length>0){const i=this._MenuplanDetails.filter(a=>a.CodeMasterPlan&&n.includes(a.CodeMasterPlan.toString())&&a.IDMain===this._MenuplanMasterPlanID);for(const a of i)a.IsLock=!0,a.isTouched=!0;return this.selectedMasterPlans={},void this.alertService.trigger("EGS_SUCCESS",void 0,c.NZ.translations.UIT[31460])}this.alertService.trigger("EGS_ERROR",c.NZ.translations.UIT[180584],c.NZ.translations.UIT[56350])}unlockBulk(){const n=Object.keys(this.selectedMasterPlans).filter(i=>this.selectedMasterPlans[i]);if(n&&n.length>0){const i=this._MenuplanDetails.filter(a=>a.CodeMasterPlan&&n.includes(a.CodeMasterPlan.toString())&&a.IDMain===this._MenuplanMasterPlanID);for(const a of i)a.IsLock=!1,a.isTouched=!0;return this.selectedMasterPlans={},void this.alertService.trigger("EGS_SUCCESS",void 0,c.NZ.translations.UIT[31460])}this.alertService.trigger("EGS_ERROR",c.NZ.translations.UIT[180584],c.NZ.translations.UIT[56350])}editNoteBegin(n){n.isTouched=!0,n.IsEditNote=!0,this._Note[`${n.IDMain}-${n.DayPlan}-${n.CodeMasterPlan}`]?this._Note[`${n.IDMain}-${n.DayPlan}-${n.CodeMasterPlan}`].New=n.Note:this._Note[`${n.IDMain}-${n.DayPlan}-${n.CodeMasterPlan}`]={Original:n.Note,New:n.Note},this._NoteChange.emit(this._Note)}saveMenuPlanInfo(n=!1,i=!1){var a=this;return new Promise((o,s)=>{const l={CodeCategory:this._MenuplanInfo.CodeCategory,CodeSeason:this._MenuplanInfo.CodeSeason,CodeServiceType:this._MenuplanInfo.CodeServiceType,CyclePlan:this._MenuplanInfo.CyclePlan,DateCreated:this._MenuplanInfo.DateCreated,DateModified:this._MenuplanInfo.DateModified,Description:this._MenuplanInfo.Description,Duration:7*this._MenuplanInfo.Duration,Name:this._MenuplanInfo.Name,Number:this._MenuplanInfo.Number,Recurrence:this._MenuplanInfo.Recurrence,StartDate:this.dateService.get(void 0,void 0,void 0,!0,this._MenuplanInfo.StartDate,!1,void 0,void 0,!1),Monday:this._Week.find(p=>"Monday"===p.Name_Plain).isSelected,Tuesday:this._Week.find(p=>"Tuesday"===p.Name_Plain).isSelected,Wednesday:this._Week.find(p=>"Wednesday"===p.Name_Plain).isSelected,Thursday:this._Week.find(p=>"Thursday"===p.Name_Plain).isSelected,Friday:this._Week.find(p=>"Friday"===p.Name_Plain).isSelected,Saturday:this._Week.find(p=>"Saturday"===p.Name_Plain).isSelected,Sunday:this._Week.find(p=>"Sunday"===p.Name_Plain).isSelected,Code:this._MenuplanInfo.Code,Category:this._MenuplanInfo.Category,Season:this._MenuplanInfo.Season,TypeOfService:this._MenuplanInfo.TypeOfService};var p;-1!==this._MenuplanInfo.CodeCategory&&(l.CodeCategory=this._MenuplanInfo.CodeCategory),-1!==this._MenuplanInfo.CodeSeason&&(l.CodeSeason=this._MenuplanInfo.CodeSeason),-1!==this._MenuplanInfo.CodeServiceType&&(l.CodeServiceType=this._MenuplanInfo.CodeServiceType),l.isPlaceHolder=-1===l.Code&&!0===n,this.api.UPSERTMP(l).subscribe({next:(p=(0,M.Z)(function*(m){c.X1.Info.Code=m,a._location.go(window.location.pathname.replace(/-1/g,m)),a._isSaveSensitiveData=!1,a._isSaveSensitiveDataChange.emit(a._isSaveSensitiveData),a._MenuplanInfoChange.emit(),o(!0)}),function(d){return p.apply(this,arguments)}),error:p=>{s(!1)}})})}printMPPerDay(n,i,a){this.MPPrint.selectedDayName=n,this.MPPrint.selectedDayPlan=i,this.MPPrint.selectedIDMain=a,this.getFilters.get(!1,!1,!1,!0),this.printTriggerService.trigger({IDMain:this._MenuplanDetails[0].IDMain,Type:"MP",selectedDayName:this.MPPrint.selectedDayName,selectedDayPlan:this.MPPrint.selectedDayPlan,selectedIDMain:this.MPPrint.selectedIDMain,currentWeek:this.currentWeek,daysPerWeek:this.daysPerWeek})}printMPCell(n,i,a,o){let s=a;this.MPPrint.selectedDayName=n,this.MPPrint.selectedDayPlan=i,this.MPPrint.selectedIDMain=o,this.getFilters.get(!1,!1,!1,!0),this.printTriggerService.trigger({IDMain:this._MenuplanDetails[0].IDMain,Type:"MP",selectedDayName:this.MPPrint.selectedDayName,selectedDayPlan:this.MPPrint.selectedDayPlan,selectedCellID:this.MPPrint.selectedCellID,perMenuCellMP:!0,codeMPCellData:s,selectedIDMain:this.MPPrint.selectedIDMain,daysPerWeek:this.daysPerWeek})}copyMasterPlanSelectionChange(n,i){this._CopyMenu._MasterPlans[i.Code]=n.checked}toCustomISOString(n,i=!1){const a=p=>("00"+p).slice(-2);return`${n.getFullYear()}-${a(n.getMonth()+1)}-${a(n.getDate())}T00:00:00.000Z`}togglePerDay(){c.NZ.menuplan_view=this._ViewPref.isPerDay}}return(_=r).\u0275fac=function(n){return new(n||_)(e.Y36(x),e.Y36(Z),e.Y36(w.J),e.Y36(F.p),e.Y36(G.S),e.Y36(J._A),e.Y36(Y.c),e.Y36(O.FF),e.Y36(N.Ye),e.Y36(P.s),e.Y36(V.R),e.Y36(Q.Z),e.Y36(H.V))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-t-items"]],viewQuery:function(n,i){if
vendor: 10,739 bytes, line 1
1(1&n&&e.Gf(v.o,5),2&n){let a;e.iGM(a=e.CRH())&&(i.printoutComponent=a.first)}},inputs:{_MenuplanDetails:"_MenuplanDetails",_MenuplanInfo:"_MenuplanInfo",_MenuplanDetailsData:"_MenuplanDetailsData",_MenuplanMasterPlanID:"_MenuplanMasterPlanID",newDate:"newDate",_isSaveSensitiveData:"_isSaveSensitiveData",_isView:"_isView",_Week:"_Week",_isFC:"_isFC",_Delete:"_Delete",_Note:"_Note",_INDATE:"_INDATE"},outputs:{_MenuplanDetailsChange:"_MenuplanDetailsChange",_MenuplanInfoChange:"_MenuplanInfoChange",_AddMenusTrigger:"_AddMenusTrigger",_MenuplanDetailsDataChange:"_MenuplanDetailsDataChange",_MenuplanMasterPlanIDChange:"_MenuplanMasterPlanIDChange",_isSaveSensitiveDataChange:"_isSaveSensitiveDataChange",printButtonClick:"printButtonClick",_isFCChange:"_isFCChange",saveMPtrigger:"saveMPtrigger",FCtrigger:"FCtrigger",_DeleteChange:"_DeleteChange",_NoteChange:"_NoteChange"},features:[e.TTD],decls:6,vars:2,consts:[["class","bg-white shadow-sm overflow-auto blocks d-flex flex-grow-1 mt-2 p-3 overflow-auto",4,"ngIf"],["class","d-flex flex-column h-100 px-0 px-2 px-lg-4 pt-4 pb-2",4,"ngIf"],["copy",""],["copy2",""],[1,"bg-white","shadow-sm","overflow-auto","blocks","d-flex","flex-grow-1","mt-2","p-3","overflow-auto"],["class","d-flex",4,"ngIf"],[4,"ngIf"],["class","d-flex flex-grow-1",4,"ngIf"],[1,"d-flex"],["appearance","outline","class","my-auto w-auto",4,"ngIf"],["class","d-flex EGS_Paragraph_Default pb-3 px-4 gap-4",4,"ngIf"],[1,"d-flex","ms-auto"],[1,"EGS_BOLD16","mr-1","mt-4"],[1,"EGS_BOLD16","colorMyOrange","mt-4"],["appearance","outline",1,"my-auto","w-auto"],[3,"rangePicker","min","max","click"],["readonly","","matStartDate","","placeholder","Start date",3,"ngModel","ngModelChange","dateChange"],["readonly","","matEndDate","","placeholder","End date",3,"ngModel","ngModelChange","dateChange"],["matSuffix","",3,"for"],["picker",""],[1,"d-flex","EGS_Paragraph_Default","pb-3","px-4","gap-4"],[1,"my-auto","cls_menuplan_items_001"],["class","my-auto",4,"ngIf"],[1,"form-select","my-auto","cls_menuplan_items_002",3,"ngModel","ngModelChange","change"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[3,"value",4,"ngFor","ngForOf"],[1,"my-auto"],[3,"value"],["class","d-flex ms-auto flex-wrap",4,"ngIf"],[1,"my-auto","pointer",3,"toggle_param","toggle_text","toggle_paramChange","changed"],[1,"d-flex","ms-auto","flex-wrap"],["matTooltipPosition","below",1,"rounded-circle","pointer","btn4040","bg-orange","d-flex","justify-content-center","me-2","noselect",3,"matTooltip","click"],["class","d-block mt-auto mb-auto","src","assets/SVGLib/cook-mode-exit.svg","alt","cook",4,"ngIf"],["class","d-block mt-auto mb-auto","height","17.873","width","17.864",4,"ngIf"],["src","assets/SVGLib/cook-mode-exit.svg","alt","cook",1,"d-block","mt-auto","mb-auto"],["height","17.873","width","17.864",1,"d-block","mt-auto","mb-auto"],["id","RD5","transform","translate(0.803 1.061)"],["fill","none","id","RD6","stroke","#ebebeb","stroke-linecap","round","stroke-miterlimit","10","stroke-width","1.5","transform","translate(9.749 0)","x1","6.251","y2","6.26"],["d","M1122.377,1865.97h-5.464v-5.447","fill","none","id","RD7","stroke","#ebebeb","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(-1116.913 -1849.97)"],["d","M1340.615,1636.782h5.464v5.447","fill","none","id","RD8","stroke","#ebebeb","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(-1330.079 -1636.782)"],["id","RD9","transform","translate(0.258 9.492)"],["fill","none","id","RD10","stroke","#ebebeb","stroke-linecap","round","stroke-miterlimit","10","stroke-width","1.5","transform","translate(0 0)","x2","6.251","y1","6.26"],["type","button","aria-label","text-area","matTooltipPosition","below",1,"btn4040","rounded-circle","ms-auto","btn","btn-orange","shadow-sm",3,"disabled","matTooltip","click"],["height","14.532","viewBox","0 0 14.833 14.532","width","14.833",1,"d-block","m-auto"],["data-name","Group 2850","id","Group_2850","transform","translate(0.75 0.566)"],["d","M4520,4709.852h10.271l3.063,2.987v10.045H4520Z","data-name","Path 2542","fill","none","id","Path_2542","stroke","#ebebeb","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(-4520 -4709.668)"],["data-name","Rectangle 2512","fill","none","id","Rectangle_2512","stroke","#ebebeb","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(3.736)"],["height","4.444","stroke","none","width","5.696"],["fill","none","height","2.944","width","4.196","x","0.75","y","0.75"],["d","M4522.411,4719.144","data-name","Path 2543","fill","none","id","Path_2543","stroke","#ebebeb","stroke-width","1.5","transform","translate(-4519.196 -4705.421)"],["d","M4530.165,4719.7v-3.741h-7.8v3.444","data-name","Path 2544","fill","none","id","Path_2544","stroke","#ebebeb","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(-4519.213 -4706.483)"],["class","d-flex ms-auto flex-wrap gap-2",4,"ngIf"],[1,"d-flex","ms-auto","flex-wrap","gap-2"],["aria-label","remove",1,"btn","btn-outline-orange","rounded-pill","d-flex",3,"click"],["src","assets/SVGLib/menuplan-x.svg","alt","minus"],[1,"me-2"],["aria-label","move",1,"btn","btn-outline-orange","rounded-pill","d-flex",3,"click"],["src","assets/SVGLib/menuplan-lock-2.svg","alt","minus"],["src","assets/SVGLib/menuplan-unlock-2.svg","alt","minus"],[1,"d-flex","flex-wrap","gap-2"],[1,"my-auto","pointer",3,"toggle_param","toggle_text","toggle_paramChange"],[1,"overflow-auto","d-flex","flex-column"],[1,"d-flex","cls_menuplan_items_003"],[1,"cls_menuplan_items_004"],[1,"d-flex","p-2","gap-2"],["class","d-flex masterplanHeader EGS_Empty16Bold justify-content-between p-2",4,"ngFor","ngForOf"],[1,""],[3,"ngClass",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-end","border-top","pt-2"],[1,"pointer",3,"click"],["width","21","height","16","viewBox","0 0 21 16","fill","none","xmlns","http://www.w3.org/2000/svg",1,"my-auto"],["d","M10.625 2.75L5.375 8L10.625 13.25","stroke","#888E92","stroke-linecap","round","stroke-linejoin","round"],["d","M15.625 2.75L10.375 8L15.625 13.25","stroke","#888E92","stroke-linecap","round","stroke-linejoin","round"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg",1,"my-auto"],["class","d-flex",4,"ngFor","ngForOf"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg",1,"cls_menuplan_items_008","my-auto"],["width","21","height","16","viewBox","0 0 21 16","fill","none","xmlns","http://www.w3.org/2000/svg",1,"my-auto","cls_menuplan_items_008"],[1,"d-flex","masterplanHeader","EGS_Empty16Bold","justify-content-between","p-2"],[1,"d-block","my-auto",3,"ngModel","ngModelChange"],[1,"d-flex","my-auto"],[3,"ngClass"],[1,"dayHeader","d-flex","flex-column","gap-2"],[1,"border-bottom","gap-2","p-2","d-flex","justify-content-center"],[1,"d-flex","flex-column","flex-grow-1","p-2","justify-content-center"],[1,"EGS_20bold959595","colorMyOrange","text-center"],["class","EGS_Empty14Regular mt-3 colorMyOrange text-center",4,"ngIf"],[1,"d-flex","gap-2"],[3,"d-none",4,"ngFor","ngForOf"],["alt","copy","src","assets/SVGLib/menuplan-copy.svg","class","btn4040","matTooltipPosition","below",3,"matTooltip","click",4,"ngIf"],["alt","print","src","assets/SVGLib/menuplan-print.svg","class","btn4040","matTooltipPosition","below",3,"matTooltip","click",4,"ngIf"],["alt","copy","src","assets/SVGLib/menuplan-copy.svg","matTooltipPosition","below",1,"btn4040",3,"matTooltip","click"],["alt","print","src","assets/SVGLib/menuplan-print.svg","matTooltipPosition","below",1,"btn4040",3,"matTooltip","click"],[1,"btn4040"],[1,"EGS_16bold959595","text-center"],[1,"EGS_Empty14Regular","mt-3","text-center"],[1,"EGS_Empty14Regular","text-center"],[1,"EGS_Empty14Regular","mt-3","colorMyOrange","text-center"],[1,"d-flex","mr-2",3,"id"],[1,"dayItems","d-flex","flex-column","flex-grow-1"],[1,"d-flex","justify-content-between","p-2","border-bottom","cls_menuplan_items_005"],["menu","matMenu"],["mat-menu-item","",3,"click"],["alt","copy","src","assets/SVGLib/menuplan-copy.svg","class","btn4040 pointer","matTooltipPosition","below",3,"matTooltip","click",4,"ngIf"],[1,"d-flex","flex-column","flex-grow-1"],["class","d-flex justify-content-between py-2 px-3",3,"DGray","LGray",4,"ngIf"],[1,"d-flex","flex-grow-1","flex-column","pointer","itemMain"],[1,"p-2","w-100","flex-grow-1",3,"click"],[1,"d-flex","right-items","EGS_Empty14Regular","flex-column"],[4,"ngFor","ngForOf"],[1,"d-flex","border-top","p-2","cls_menuplan_items_006"],["class","d-flex justify-content-end w-100 pr-2 pointer cls_menuplan_items_005",3,"click",4,"ngIf"],[1,"overflow-auto","pointer",3,"click"],["class","EGS_Empty14Regular",4,"ngIf"],["class","d-flex justify-content-end w-100 gap-1",4,"ngIf"],["alt","copy","src","assets/SVGLib/menuplan-SEARCH.svg","matTooltipPosition","below",1,"btn4040","pointer",3,"matTooltip","click"],["alt","copy","src","assets/SVGLib/menuplan-lock-1.svg","class","btn4040 pointer-all pointer","matTooltipPosition","below",3,"matTooltip","click",4,"ngIf"],["alt","copy","src","assets/SVGLib/menuplan-UNLOCK.svg","class","btn4040 pointer-all pointer","matTooltipPosition","below",3,"matTooltip","click",4,"ngIf"],["alt","copy","src","assets/SVGLib/menuplan-PENCIL.svg","class","btn4040 pointer","matTooltipPosition","below",3,"matTooltip","click",4,"ngIf"],["class","d-block ","height","24px","width","10%",3,"matMenuTriggerFor",4,"ngIf"],["aria-label","search",1,"form-control","outline-none","pointer",3,"ngModel","ngModelChange"],["alt","copy","src","assets/SVGLib/menuplan-lock-1.svg","matTooltipPosition","below",1,"btn4040","pointer-all","pointer",3,"matTooltip","click"],["alt","copy","src","assets/SVGLib/menuplan-UNLOCK.svg","matTooltipPosition","below",1,"btn4040","pointer-all","pointer",3,"matTooltip","click"],["alt","copy","src","assets/SVGLib/menuplan-PENCIL.svg","matTooltipPosition","below",1,"btn4040","pointer",3,"matTooltip","click"],["height","24px","width","10%",1,"d-block",3,"matMenuTriggerFor"],["cx","50%","cy","12","fill","#747474","r","2"],["cx","50%","cy","5","fill","#747474","r","2"],["cx","50%","cy","19","fill","#747474","r","2"],["alt","copy","src","assets/SVGLib/menuplan-copy.svg","matTooltipPosition","below",1,"btn4040","pointer",3,"matTooltip","click"],[1,"d-flex","justify-content-between","py-2","px-3"],[1,"d-flex","EGS_Empty14Regular","flex-column"],["width","18","height","17","viewBox","0 0 18 17","fill","none","xmlns","http://www.w3.org/2000/svg",1,"btn2020","mx-auto"],["d","M4.41394 7.37941L4.42296 7.37974H4.432H4.69502C4.89242 7.75946 5.13857 8.11088 5.42664 8.4253C4.47463 8.8297
17 3.60973 9.42055 2.8843 10.1658L2.87376 10.1767L2.86389 10.1881L2.70008 10.3781L2.33698 10.7875L2.21103 10.9295V11.1193V13.7425H0.5V8.92531L0.525956 8.89502C1.03403 8.39289 1.63908 7.99945 2.30427 7.73874C2.97545 7.47568 3.69352 7.35337 4.41394 7.37941Z","stroke","#D21F3C"],["d","M17.5004 8.8865V13.7485H15.8824V11.1187V10.9315L15.7595 10.7903L15.4007 10.3783L15.4007 10.3783L15.3966 10.3737L15.2305 10.1877L15.2253 10.1819L15.22 10.1763C14.4534 9.3695 13.5246 8.73984 12.4988 8.3264C12.7639 8.03789 12.9938 7.71794 13.1831 7.3732C13.3185 7.36427 13.4541 7.35961 13.5898 7.35923L13.5981 7.3592L13.6064 7.3589C14.3268 7.33286 15.0449 7.45517 15.7161 7.71823C16.3763 7.977 16.9773 8.36653 17.483 8.86331L17.5004 8.8865Z","stroke","#D21F3C"],["d","M5.95454 1.29826C5.37976 1.7416 4.91125 2.31157 4.5873 2.9668C4.26073 3.62733 4.0922 4.35199 4.09156 5.08389H4.07066C3.80709 5.0427 3.55214 4.95414 3.31848 4.82154C2.98445 4.63197 2.70537 4.3589 2.50857 4.02906C2.31177 3.69921 2.204 3.32391 2.19582 2.9399C2.18763 2.55588 2.27931 2.17633 2.46188 1.8384C2.64445 1.50047 2.91164 1.21575 3.23729 1.01212C3.56294 0.808498 3.93589 0.692943 4.31961 0.676772C4.70333 0.6606 5.08468 0.744367 5.4263 0.91987L5.65478 0.475126L5.42631 0.91987C5.6208 1.01979 5.79863 1.14749 5.95454 1.29826Z","stroke","#D21F3C"],["d","M14.8283 4.73244C14.5099 4.93584 14.1448 5.05446 13.7678 5.07716C13.7677 5.07522 13.7676 5.07327 13.7675 5.07132C13.7621 4.27447 13.5601 3.49122 13.1792 2.79115C12.8808 2.2427 12.4799 1.75868 12 1.36448C12.1551 1.19531 12.3361 1.05056 12.5371 0.936078C12.8699 0.74658 13.246 0.646478 13.629 0.645515C14.0119 0.644552 14.3885 0.74276 14.7222 0.93058C15.0559 1.1184 15.3353 1.38943 15.5332 1.7173L15.9613 1.45894L15.5332 1.7173C15.7311 2.04516 15.8407 2.41868 15.8513 2.80148C15.862 3.18429 15.7734 3.56334 15.5941 3.90173C15.4148 4.24011 15.151 4.5263 14.8283 4.73244Z","stroke","#D21F3C"],["d","M11.3778 5.09241C11.3778 6.45678 10.2719 7.56276 8.90767 7.56276C7.54346 7.56276 6.4375 6.45678 6.4375 5.09241C6.4375 3.72805 7.54346 2.62207 8.90767 2.62207C10.2719 2.62207 11.3778 3.72805 11.3778 5.09241Z","stroke","#D21F3C"],["d","M9.04999 10.1442L9.07089 10.1451L9.09179 10.1442C9.8898 10.1096 10.6865 10.2384 11.4329 10.5227C12.1698 10.8034 12.8425 11.2297 13.4108 11.7761L13.4407 11.8135V15.8257C13.4389 15.8957 13.4235 15.9647 13.3955 16.0289C13.3669 16.0943 13.3258 16.1534 13.2744 16.2029C13.223 16.2524 13.1623 16.2912 13.0959 16.3173C13.0295 16.3433 12.9585 16.356 12.8872 16.3546L12.8872 16.3545H12.8776H5.24284V16.3544L5.23319 16.3546C5.16185 16.356 5.09095 16.3433 5.02452 16.3173C4.95809 16.2912 4.89743 16.2524 4.84602 16.2029C4.79461 16.1534 4.75345 16.0943 4.7249 16.0289C4.69687 15.9647 4.68152 15.8957 4.67969 15.8257V11.8156L4.70591 11.7862C5.28026 11.2369 5.95907 10.8084 6.70213 10.5262C7.45098 10.2419 8.24962 10.1119 9.04999 10.1442Z","stroke","#D21F3C"],[1,"d-flex","mx-auto"],["class","d-flex EGS_Empty14Regular flex-column",4,"ngIf"],["width","18","height","19","viewBox","0 0 18 19","fill","none","xmlns","http://www.w3.org/2000/svg",1,"mx-auto","btn2020"],["clip-path","url(#clip0_1514_170268)"],["d","M7.98612 10.5139V3.56256V3.00999L7.4363 3.06505C5.76837 3.23206 4.22335 3.96444 3.02543 5.16235C1.64907 6.53871 0.890874 8.37179 0.890874 10.3185C0.890874 12.2651 1.64907 14.0982 3.02543 15.4746C4.39292 16.8421 6.2127 17.6003 8.14637 17.6091C8.14631 17.6091 8.14625 17.6091 8.14618 17.6091L7.98612 10.5139ZM7.98612 10.5139H14.9375H15.4905L15.4349 11.0641C15.2658 12.7404 14.5269 14.2941 13.3138 15.4964L7.98612 10.5139ZM8.37698 9.62303V10.123H8.87698H15.8631L15.8631 10.3185L15.8631 10.3193C15.8649 11.3468 15.6592 12.364 15.2584 13.3101L15.2582 13.3107C14.8724 14.2242 14.3178 15.0458 13.6123 15.7513L13.6118 15.7518C12.8997 16.4659 12.0534 17.0322 11.1216 17.418C10.1898 17.8039 9.19089 18.0016 8.18237 18L8.18068 18C7.15321 18.0018 6.13596 17.7961 5.18989 17.3953L5.18934 17.3951C4.27576 17.0093 3.45421 16.4547 2.74871 15.7492L2.74822 15.7488C2.03408 15.0366 1.46781 14.1903 1.08198 13.2585C0.696141 12.3267 0.49836 11.3278 0.500015 10.3193L0.500012 10.3176C0.498216 9.29012 0.703887 8.27287 1.1047 7.3268L1.10493 7.32625C1.49014 6.41401 2.04892 5.58529 2.75021 4.88617L2.75125 4.88513C3.46339 4.171 4.3097 3.60473 5.24151 3.21889C6.17331 2.83306 7.17221 2.63528 8.18073 2.63693H8.18155H8.37698V9.62303ZM10.9405 17.0676C11.8271 16.7051 12.6336 16.1713 13.3136 15.4966L8.14655 17.6091C9.10441 17.6141 10.0538 17.4301 10.9405 17.0676ZM15.2367 3.25988L15.2369 3.26008C16.5002 4.51956 17.2853 6.18808 17.4483 7.95495L17.4675 8.16265L10.3179 8.18127V1.03231L10.5284 1.05166C10.5285 1.05167 10.5286 1.05168 10.5287 1.05169C12.3073 1.21701 13.9724 1.998 15.2367 3.25988ZM17.8358 8.1617L17.8345 8.1617L17.8358 8.1617ZM10.7046 7.29538V7.79675L11.206 7.79538L16.4504 7.78106L17.0633 7.77939L16.9385 7.17924C16.6527 5.8051 15.965 4.5312 14.9613 3.52974L14.961 3.52943C13.9597 2.5321 12.6903 1.84706 11.3071 1.55754L10.7046 1.43144V2.04693V7.29538Z","stroke","#D21F3C"],["d","M6.88347 12.2477C6.96217 12.5288 6.94046 12.7914 6.81834 13.0355C6.69522 13.2759 6.48595 13.4725 6.19056 13.6251L6.42968 14.4793L5.81337 14.6518L5.58333 13.8301C5.09649 13.9236 4.65802 13.8637 4.26792 13.6503L4.57264 13.052C4.89974 13.2208 5.23268 13.2578 5.57147 13.163C5.74807 13.1135 5.87573 13.0351 5.95445 12.9275C6.03317 12.82 6.05336 12.6977 6.01502 12.5608C5.98979 12.4707 5.95109 12.4018 5.8989 12.3542C5.84571 12.3031 5.7657 12.2672 5.65888 12.2465C5.55105 12.2223 5.40126 12.2079 5.20952 12.2033C4.77776 12.1881 4.45296 12.1177 4.23514 11.9922C4.02092 11.8656 3.87597 11.6671 3.8003 11.3968C3.72463 11.1265 3.75527 10.875 3.89224 10.6424C4.0282 10.4061 4.2433 10.2234 4.53754 10.
10944L4.31355 9.2943L4.92986 9.12177L5.15385 9.92189C5.5268 9.87967 5.8668 9.94189 6.17386 10.1086L5.90937 10.684C5.61499 10.5487 5.32544 10.521 5.04072 10.6007C4.88934 10.6431 4.77898 10.707 4.70964 10.7925C4.64029 10.878 4.62126 10.9766 4.65253 11.0883C4.67473 11.1676 4.71091 11.2274 4.76108 11.2678C4.81485 11.3071 4.89695 11.3366 5.00738 11.3562C5.1168 11.3722 5.27739 11.3836 5.48917 11.3904C5.88547 11.4038 6.19434 11.4728 6.41577 11.5974C6.6408 11.721 6.7967 11.9377 6.88347 12.2477Z","fill","#D21F3C"],["d","M14.0648 4.10505L14.2804 4.24653L12.7208 6.60442L12.5053 6.46295L14.0648 4.10505ZM12.6973 4.21284C12.8589 4.21284 12.9903 4.26449 13.0914 4.36779C13.1947 4.47109 13.2463 4.60919 13.2463 4.7821C13.2463 4.95502 13.1947 5.09312 13.0914 5.19642C12.9903 5.29972 12.8589 5.35137 12.6973 5.35137C12.5378 5.35137 12.4065 5.29972 12.3032 5.19642C12.2021 5.09312 12.1516 4.95502 12.1516 4.7821C12.1516 4.60919 12.2021 4.47109 12.3032 4.36779C12.4065 4.26449 12.5378 4.21284 12.6973 4.21284ZM12.6973 4.42168C12.5985 4.42168 12.5277 4.45537 12.4851 4.52274C12.4446 4.5901 12.4244 4.67656 12.4244 4.7821C12.4244 4.8854 12.4446 4.97186 12.4851 5.04147C12.5277 5.10884 12.5985 5.14253 12.6973 5.14253C12.8792 5.14253 12.9701 5.02239 12.9701 4.7821C12.9701 4.67881 12.9499 4.59347 12.9095 4.5261C12.8691 4.45649 12.7983 4.42168 12.6973 4.42168ZM14.0851 5.40189C14.2467 5.40189 14.3781 5.45354 14.4792 5.55684C14.5802 5.66014 14.6307 5.79825 14.6307 5.97116C14.6307 6.14407 14.5802 6.28218 14.4792 6.38547C14.3781 6.48877 14.2467 6.54042 14.0851 6.54042C13.9234 6.54042 13.7909 6.48877 13.6876 6.38547C13.5865 6.28218 13.536 6.14407 13.536 5.97116C13.536 5.79825 13.5865 5.66014 13.6876 5.55684C13.7909 5.45354 13.9234 5.40189 14.0851 5.40189ZM14.0851 5.61411C13.9862 5.61411 13.9155 5.64779 13.8728 5.71516C13.8324 5.78028 13.8122 5.86561 13.8122 5.97116C13.8122 6.07446 13.8324 6.16091 13.8728 6.23053C13.9155 6.29789 13.9862 6.33158 14.0851 6.33158C14.2669 6.33158 14.3579 6.21144 14.3579 5.97116C14.3579 5.86786 14.3377 5.78253 14.2973 5.71516C14.2568 5.64779 14.1861 5.61411 14.0851 5.61411Z","fill","#D21F3C"],["id","clip0_1514_170268"],["width","18","height","18","fill","white","transform","translate(0 0.5)"],["width","19","height","19","viewBox","0 0 19 19","fill","none","xmlns","http://www.w3.org/2000/svg",1,"btn2020","mx-auto"],["d","M18 9.5C18 14.1946 14.1946 18 9.5 18C4.80544 18 1 14.1946 1 9.5C1 4.80544 4.80544 1 9.5 1C14.1946 1 18 4.80544 18 9.5ZM10.3309 3.26915C10.1105 3.04879 9.81163 2.925 9.5 2.925C9.18837 2.925 8.8895 3.04879 8.66915 3.26915C8.47566 3.46264 8.35662 3.71667 8.33047 3.98671C6.86885 4.39944 5.625 5.59094 5.625 7.25C5.625 8.90699 6.86575 10.0976 8.325 10.5117V12.4235C8.08624 12.2102 7.975 11.9521 7.975 11.75C7.975 11.4384 7.8512 11.1395 7.63085 10.9191C7.4105 10.6988 7.11163 10.575 6.8 10.575C6.48837 10.575 6.1895 10.6988 5.96915 10.9191C5.74879 11.1395 5.625 11.4384 5.625 11.75C5.625 13.4091 6.86885 14.6006 8.33047 15.0133C8.35662 15.2833 8.47566 15.5374 8.66915 15.7309C8.88951 15.9512 9.18837 16.075 9.5 16.075C9.81163 16.075 10.1105 15.9512 10.3308 15.7309C10.5243 15.5374 10.6434 15.2833 10.6695 15.0133C12.1311 14.6006 13.375 13.4091 13.375 11.75C13.375 10.093 12.1342 8.90242 10.675 8.48826V6.57634C10.9138 6.78978 11.025 7.04798 11.025 7.25C11.025 7.56163 11.1488 7.8605 11.3691 8.08085C11.5895 8.30121 11.8884 8.425 12.2 8.425C12.5116 8.425 12.8105 8.30121 13.0309 8.08085C13.2512 7.8605 13.375 7.56163 13.375 7.25C13.375 5.59094 12.1311 4.39944 10.6695 3.98671C10.6434 3.71667 10.5243 3.46264 10.3309 3.26915Z","stroke","#D21F3C"],[1,"d-flex","justify-content-end","w-100","pr-2","pointer","cls_menuplan_items_005",3,"click"],["src","/assets/SVGLib/add_orange.svg","alt","plus",1,"me-1","my-auto"],[1,"colorMyOrange","my-auto"],[1,"EGS_Empty14Regular"],[1,"d-flex","justify-content-end","w-100","gap-1"],["class","loader my-auto cls_menuplan_items_007",4,"ngIf"],["type","text",1,"EGS_Empty14Regular","outline-none","form-control","my-auto",3,"ngModel","ngModelChange"],["height","14.532","viewBox","0 0 14.833 14.532","width","14.833",1,"d-block","my-auto","mx-1","pointer",3,"click"],["d","M4520,4709.852h10.271l3.063,2.987v10.045H4520Z","data-name","Path 2542","fill","none","id","Path_2542","stroke","#d21f3c","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(-4520 -4709.668)"],["data-name","Rectangle 2512","fill","none","id","Rectangle_2512","stroke","#d21f3c","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(3.736)"],["d","M4522.411,4719.144","data-name","Path 2543","fill","none","id","Path_2543","stroke","#d21f3c","stroke-width","1.5","transform","translate(-4519.196 -4705.421)"],["d","M4530.165,4719.7v-3.741h-7.8v3.444","data-name","Path 2544","fill","none","id","Path_2544","stroke","#d21f3c","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(-4519.213 -4706.483)"],["height","10.797","viewBox","0 0 10.702 10.797","width","10.702",1,"d-block","my-auto","mx-1","pointer",3,"click"],["data-name","Group 10639","id","Group_10639","transform","translate(-14.66 -14.666)"],["data-name","Rectangle 145","fill","#32332e","height","1.62","id","Rectangle_145","rx","0.81","transform","translate(25.35 15.918) rotate(135)","width","13.498"],["data-name","Rectangle 146","fill","#32332e","height","1.62","id","Rectangle_146","rx","0.81","transform","translate(24.217 25.355) rotate(-135)","width","13.497"],[1,"loader","my-auto","cls_menuplan_items_007"],[3,"ngClass","click"],[1,"overflow-auto","d-flex"],[1,"d-flex","flex-column","gap-2"],[1,"cls_menuplan_items_009"],[1,"p-2","gap-2","d-flex","flex-column"],["class","masterplanHeaderROT EGS_16bold959595 justify-content-between p-2 d-flex flex-column-reverse",4,"ngFor","ngForOf"],[1,"masterplanHeaderROT","EGS_16bold959595","justify-content-between","p-2","d-flex","flex-column-reverse"],[1,"d-block","mx-auto",3,"ngModel","ngModelChange"],[1,"d-flex","cls_menuplan_items_010"],[1,"masterplanHeader","d-flex","p-2"],[1,"EGS_BOLD16","my-auto"],[1,"btn2020","ms-2","my-auto"],["src","assets/SVGLib/info_circle.svg","alt","arrow-down",3,"matMenuTriggerFor"],["infoMenu","matMenu"],[1,"p-2"],[1,"ms-auto","my-auto"],["height","24px","width","10px",1,"pointer","mx-sm-auto","my-sm-auto","my-2",3,"mat-menu-trigger-for"],["xPosition","before"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"d-flex","flex-grow-1"],[1,"d-block","m-auto"],[1,"d-flex","flex-column"],["alt","go first","src","assets/SVGLib/Layer 7.svg",1,"d-block","mx-auto"],[1,"d-block","mx-auto","EGS_Empty14Regular","mt-5","text-center",3,"innerHTML"],[1,"d-flex","flex-column","h-100","px-0","px-2","px-lg-4","pt-4","pb-2"],[1,"m-auto",3,"isFullH"],[1,"bg-white","p-4","w-100","d-block","m-auto"],["aria-label","btn",1,"btn2020","me-3","d-flex","outline-none","shadow-none","btn","ms-auto"],["alt","img","src","/assets/SVGLib/close.svg",1,"m-auto",3,"click"],[1,"d-flex","mb-3"],[1,"EGS_SectionTitle","m-auto"],[1,"border"],[1,"border-bottom","bg-secondary-subtle","d-flex","p-2"],[1,"col-4"],[1,"my-auto","EGS_BOLD16"],[1,"col-2"],[1,"col-6"],[1,"d-flex","mt-3"],[1,"EGS_BOLD16","mt-3"],[1,"w-auto",3,"appearance"],["aria-label","label","matInput","","readonly","",3,"ngModel","matDatepicker","min","click","ngModelChange"],["dp2",""],["class","d-flex flex-column mt-3",4,"ngIf"],[1,"w-75","d-flex","mt-3","mx-auto"],[3,"ngModel","ngModelChange"],[1,"btn","btn-orange","w-75","mt-2","mx-auto",3,"click"],[1,"d-flex","p-2"],["alt","isLocked","src","assets/SVGLib/menuplan-lock-2.svg",4,"ngIf"],["alt","isLocked","src","assets/SVGLib/menuplan-unlock-2.svg",4,"ngIf"],[1,"col-6","d-flex","flex-column"],["alt","isLocked","src","assets/SVGLib/menuplan-lock-2.svg"],["alt","isLocked","src","assets/SVGLib/menuplan-unlock-2.svg"],[1,"d-flex","flex-column","mt-3"],[3,"mt-3","change",4,"ngFor","ngForOf"],[3,"change"],[1,"EGS_SectionTitle","my-auto"],[1,"d-flex","flex-column","border-bottom","pt-4","pb-2"],[1,"EGS_BOLD16"],[1,"form-control","form-select",3,"ngModel","ngModelChange"],["width","12","height","1","viewBox","0 0 12 1","fill","none","xmlns","http://www.w3.org/2000/svg",1,"mx-2","cls_menuplan_items_011"],["y1","0.5","x2","12","y2","0.5","stroke","#545E67"],[1,"form-control","form-select","w-50",3,"ngModel","ngModelChange"],[1,"btn","btn-orange","col","mt-2","mx-auto",3,"click"]],template:function(n,i){1&n&&(e.YNc(0,xt,7,6,"div",0),e.YNc(1,It,2,1,"div",1),e.YNc(2,Nt,36,15,"ng-template",null,2,e.W1O),e.YNc(4,Ut,3,2,"ng-template",null,3,e.W1O)),2&n&&(e.Q6J("ngIf",!i.isBuffering),e.xp6(1),e.Q6J("ngIf",i.isBuffering))},dependencies:[N.mk,N.sg,N.O5,$.KE,$.R9,E.YN,E.Kr,E.Fj,E.EJ,E.JJ,W.Mq,W.hl,W.nW,W.wx,W.zY,W.By,W._g,E.On,K.Y,j.oG,X.gM,z.V,R.VK,R.OP,R.p6,ee.Nt,N.gd],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%!important}.masterplanHeader[_ngcontent-%COMP%]{border:1px solid #BDBDBD!important;border-radius:3px;height:55px;width:260px!important;min-width:260px!important}.masterplanHeaderROT[_ngcontent-%COMP%]{border:1px solid #BDBDBD!important;border-radius:3px;width:55px;height:350px!important;min-height:350px!important}.dayHeader[_ngcontent-%COMP%], .dayItems[_ngcontent-%COMP%]{border:1px solid #BDBDBD!important;border-radius:3px;height:350px;width:230px}.dayItems[_ngcontent-%COMP%]{width:260px!important}.DGray[_ngcontent-%COMP%]{background-color:#ccc!important}.LGray[_ngcontent-%COMP%]{background-color:#f7f7f7!important}.dayItems[_ngcontent-%COMP%]   .itemMain[_ngcontent-%COMP%]{height:185px;overflow:auto}.cls_menuplan_items_001[_ngcontent-%COMP%]{white-space:nowrap}.cls_menuplan_items_002[_ngcontent-%COMP%]{width:150px}.cls_menuplan_items_003[_ngcontent-%COMP%]{align-items:center;column-gap:10px}.cls_menuplan_items_004[_ngcontent-%COMP%]{width:230px}.cls_menuplan_items_005[_ngcontent-%COMP%]{align-items:center}.cls_menuplan_items_006[_ngcontent-%COMP%]{height:50px}.cls_menuplan_items_007[_ngcontent-%COMP%]{width:15px;height:15px}.cls_menuplan_items_008[_ngcontent-%COMP%]{transform:rotate(180deg)!important}.cls_menuplan_items_009[_ngcontent-%COMP%]{height:55px}.cls_menuplan_items_010[_ngcontent-%COMP%]{transform:rotate(-90deg)}.cls_menuplan_items_011[_ngcontent-%COMP%]{margin-top:1.75rem}"]}),r})()},62923:(q,S,g)=>{g.d(S,{X:()=>Y});var M=g(96814),e=g(56223),k=g(75986),I=g(38034),v=g(64170),c=g(30617),P=g(2032),x=g(77988),Z=g(92596),w=g(90350),F=g(67823),G=g(36590),J=g(65879);let Y=(()=>{var O;class N{}return(O=N).\u0275fac=function(Q){return new(Q||O)},O.\u0275mod=J.oAB({type:O}),O.\u0275inj=J.cJS({imports:[M.ez,v.lN,e.UX,I.FA,e.u5,F.T,k.p9,Z.AV,G.s,w.e,x.Tx,c.Ps,P.c]}),N})()}}]);

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.