1"use strict";(self.webpackChunkperksweb=self.webpackChunkperksweb||[]).push([[295],{8295:(k,f,s)=>{s.r(f),s.d(f,{OnlineModule:()=>Re});var e=s(5e3),_=s(9808),x=s(4968),v=s(2340),g=s(9944),C=s(1426),p=s(1630),y=s(72),Z=s(7829),M=s(9573),I=s(4698),P=s(1086),S=s(9141),d=s(2382),A=s(3844),F=s(4835),N=s(543);function D(n,o){if(1&n&&(e.TgZ(0,"p",11),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.AsE(" ",t.CheckoutNotice," ",t.DeliveryFrom," ")}}function E(n,o){if(1&n&&(e.TgZ(0,"p",12),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.ClosingNotice," ")}}function J(n,o){1&n&&(e.TgZ(0,"span",23),e._uU(1,"\u2713"),e.qZA())}function Q(n,o){if(1&n&&(e.TgZ(0,"small"),e._uU(1),e.qZA()),2&n){const t=e.oxw(4);e.xp6(1),e.hij("Approx ",t.MinDeliveryTime," minutes")}}function Y(n,o){if(1&n&&(e.TgZ(0,"small"),e._uU(1),e.qZA()),2&n){const t=e.oxw(4);e.xp6(1),e.Oqu(t.DeliveryFrom)}}function q(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).changeDeliveryType("Home")}),e.YNc(1,J,2,0,"span",21),e.TgZ(2,"span",22),e._uU(3),e.YNc(4,Q,2,1,"small",6),e.YNc(5,Y,2,1,"small",6),e.qZA()()}if(2&n){const t=e.oxw(3);e.ekj("is-selected","Home"==t.deliveryType),e.xp6(1),e.Q6J("ngIf","Home"==t.deliveryType),e.xp6(2),e.hij(" ",null==t.deliveryTypes||null==t.deliveryTypes.Delivery?null:t.deliveryTypes.Delivery.Text," "),e.xp6(1),e.Q6J("ngIf",!t.DeliveryFrom&&t.MinDeliveryTime),e.xp6(1),e.Q6J("ngIf",t.DeliveryFrom)}}function U(n,o){1&n&&(e.TgZ(0,"span",23),e._uU(1,"\u2713"),e.qZA())}function R(n,o){if(1&n&&(e.TgZ(0,"small"),e._uU(1),e.qZA()),2&n){const t=e.oxw(4);e.xp6(1),e.hij("Approx ",t.MinCollectionTime," minutes")}}function j(n,o){if(1&n&&(e.TgZ(0,"small"),e._uU(1),e.qZA()),2&n){const t=e.oxw(4);e.xp6(1),e.Oqu(t.CollectionFrom)}}function B(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).changeDeliveryType("Store")}),e.YNc(1,U,2,0,"span",21),e.TgZ(2,"span",22),e._uU(3),e.YNc(4,R,2,1,"small",6),e.YNc(5,j,2,1,"small",6),e.qZA()()}if(2&n){const t=e.oxw(3);e.ekj("is-selected","Store"==t.deliveryType),e.xp6(1),e.Q6J("ngIf","Store"==t.deliveryType),e.xp6(2),e.hij(" ",null==t.deliveryTypes||null==t.deliveryTypes.Collection?null:t.deliveryTypes.Collection.Text," "),e.xp6(1),e.Q6J("ngIf",!t.CollectionFrom&&t.MinCollectionTime),e.xp6(1),e.Q6J("ngIf",t.CollectionFrom)}}function V(n,o){1&n&&(e.TgZ(0,"span",23),e._uU(1,"\u2713"),e.qZA())}function W(n,o){if(1&n&&(e.TgZ(0,"small"),e._uU(1),e.qZA()),2&n){const t=e.oxw(4);e.xp6(1),e.hij("Approx ",t.MinEatinTime," minutes")}}function H(n,o){if(1&n&&(e.TgZ(0,"small"),e._uU(1),e.qZA()),2&n){const t=e.oxw(4);e.xp6(1),e.Oqu(t.EatinFrom)}}function L(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).changeDeliveryType("EatIn")}),e.YNc(1,V,2,0,"span",21),e.TgZ(2,"span",22),e._uU(3),e.YNc(4,W,2,1,"small",6),e.YNc(5,H,2,1,"small",6),e.qZA()()}if(2&n){const t=e.oxw(3);e.ekj("is-selected","EatIn"==t.deliveryType),e.xp6(1),e.Q6J("ngIf","EatIn"==t.deliveryType),e.xp6(2),e.hij(" ",null==t.deliveryTypes||null==t.deliveryTypes.EatIn?null:t.deliveryTypes.EatIn.Text," "),e.xp6(1),e.Q6J("ngIf",!t.EatinFrom&&t.MinEatinTime),e.xp6(1),e.Q6J("ngIf",t.EatinFrom)}}function $(n,o){if(1&n&&(e.TgZ(0,"section",13)(1,"div",14)(2,"span",15)(3,"span",16),e._uU(4),e.qZA()()(),e.TgZ(5,"div",17)(6,"div",18),e.YNc(7,q,6,6,"button",19),e.YNc(8,B,6,6,"button",19),e.YNc(9,L,6,6,"button",19),e.qZA()()()),2&n){const t=e.oxw(2);e.xp6(4),e.Oqu(null==t.deliveryTypes||null==t.deliveryTypes.Title?null:t.deliveryTypes.Title.Text),e.xp6(3),e.Q6J("ngIf",null==t.deliveryTypes||null==t.deliveryTypes.Delivery?null:t.deliveryTypes.Delivery.Enabled),e.xp6(1),e.Q6J("ngIf",null==t.deliveryTypes||null==t.deliveryTypes.Collection?null:t.deliveryTypes.Collection.Enabled),e.xp6(1),e.Q6J("ngIf",null==t.deliveryTypes||null==t.deliveryTypes.EatIn?null:t.deliveryTypes.EatIn.Enabled)}}function z(n,o){1&n&&e._UZ(0,"span",30)}function G(n,o){if(1&n&&(e.TgZ(0,"p",31),e._uU(1," We are delivering to "),e.TgZ(2,"b"),e._uU(3),e.qZA()()),2&n){const t=e.oxw(3);e.xp6(3),e.Oqu(t.enteredPostCode)}}function K(n,o){if(1&n&&(e.TgZ(0,"p",32),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.hij(" ",null==t.postcodeValidation?null:t.postcodeValidation.PostcodeValidityField.ErrorMessage," ")}}function X(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"section",13)(1,"div",14)(2,"span",15)(3,"span",16),e._uU(4),e.qZA()()(),e.TgZ(5,"div",17)(6,"div",24)(7,"input",25),e.NdJ("keyup.enter",function(){e.CHM(t);const c=e.oxw(2);return c.checkPostCodeValidity(c.manualPostCode)})("ngModelChange",function(c){return e.CHM(t),e.oxw(2).manualPostCode=c}),e.qZA(),e.TgZ(8,"button",26),e.NdJ("click",function(){e.CHM(t);const c=e.oxw(2);return c.checkPostCodeValidity(c.manualPostCode)}),e._uU(9," Check "),e.YNc(10,z,1,0,"span",27),e.qZA()(),e.YNc(11,G,4,1,"p",28),e.YNc(12,K,2,1,"p",29),e.qZA()()}if(2&n){const t=e.oxw(2);e.xp6(4),e.hij(" ",null==t.postcodeValidation?null:t.postcodeValidation.PostcodeValidityField.Title," "),e.xp6(3),e.Q6J("ngModel",t.manualPostCode),e.xp6(1),e.Q6J("disabled",!(null!=t.manualPostCode&&t.manualPostCode.length)||t.postSpinner),e.xp6(2),e.Q6J("ngIf",t.postSpinner),e.xp6(1),e.Q6J("ngIf",t.validPostCode),e.xp6(1),e.Q6J("ngIf",t.InvalidPostCode)}}function ee(n,o){if(1&n&&(e.YNc(0,D,2,2,"p",8),e.YNc(1,E,2,1,"p",9),e.YNc(2,$,10,4,"section",10),e.YNc(3,X,13,6,"section",10)),2&n){const t=e.oxw();e.Q6J("ngIf",t.CheckoutNotice),e.xp6(1),e.Q6J("ngIf",t.ClosingNotice),e.xp6(1),e.Q6J("ngIf",null==t.deliveryTypes?null:t.deliveryTypes.Enabled),e.xp6(1),e.Q6J("ngIf",t.showDeliveryTemplate&&t.ShowDelivery&&t.showCollectionTemplate&&t.ShowCollection?"Home"==t.deliveryType&&(null==t.postcodeValidation?null:t.postcodeValidation.ShowPostcodeValidityField):null==t.postcodeValidation?null:t.postcodeValidation.ShowPostcodeValidityField)}}function te(n,o){1&n&&(e.TgZ(0,"span",23),e._uU(1,"\u2713"),e.qZA())}function ne(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).brandOffers()}),e.YNc(1,te,2,0,"span",21),e.TgZ(2,"span",22),e._uU(3),e.qZA(),e.TgZ(4,"span",35),e._uU(5,"\u203a"),e.qZA()()}if(2&n){const t=e.oxw(2);e.ekj("is-selected",t.showOffers),e.xp6(1),e.Q6J("ngIf",t.showOffers),e.xp6(2),e.Oqu(null==t.offers?null:t.offers.Title),e.xp6(1),e.ekj("is-open",t.showOffers)}}function ie(n,o){if(1&n&&e.YNc(0,ne,6,6,"button",33),2&n){const t=e.oxw();e.Q6J("ngIf",t.offers)}}function oe(n,o){if(1&n&&(e.TgZ(0,"span",41),e._UZ(1,"img",42),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("src",t.Image,e.LSH)}}function ce(n,o){if(1&n&&(e.TgZ(0,"div",37)(1,"div",38)(2,"b"),e._uU(3),e.qZA(),e.TgZ(4,"p",39),e._uU(5),e.qZA()(),e.YNc(6,oe,2,1,"span",40),e.qZA()),2&n){const t=o.$implicit;e.xp6(3),e.Oqu(t.Title),e.xp6(2),e.Oqu(t.Description),e.xp6(1),e.Q6J("ngIf",t.Image)}}function le(n,o){if(1&n&&(e.TgZ(0,"section",13)(1,"div",14)(2,"span",15)(3,"span",16),e._uU(4),e.qZA()()(),e.TgZ(5,"div",17),e.YNc(6,ce,7,3,"div",36),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(4),e.Oqu(null==t.offers?null:t.offers.Title),e.xp6(2),e.Q6J("ngForOf",t.offers.OfferTypes)}}function se(n,o){if(1&n&&e.YNc(0,le,7,2,"section",10),2&n){const t=e.oxw();e.Q6J("ngIf",t.showOffers&&t.offers)}}function re(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",54),e.NdJ("click",function(){return e.CHM(t),e.oxw(4).toggleExpand()}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw(4);e.xp6(1),e.hij(" ",t.isExpanded?"See less":"See more"," ")}}function ae(n,o){if(1&n&&(e.TgZ(0,"div",52)(1,"p"),e._uU(2),e.qZA(),e.YNc(3,re,2,1,"button",53),e.qZA()),2&n){const t=e.oxw(2).$implicit,i=e.oxw();e.xp6(1),e.ekj("is-clamped",!i.isExpanded),e.xp6(1),e.Oqu(t.CategoryDescription),e.xp6(1),e.Q6J("ngIf",i.needsExpansion(t.CategoryDescription))}}function _e(n,o){if(1&n&&(e.TgZ(0,"div",50),e._UZ(1,"img",42),e.YNc(2,ae,4,4,"div",51),e.qZA()),2&n){const t=e.oxw().$implicit,i=e.oxw();e.xp6(1),e.Q6J("src",t.CategoryImage,e.LSH),e.xp6(1),e.Q6J("ngIf",i.ShowCategoryDescriptionOverlay&&t.CategoryDescription)}}function pe(n,o){if(1&n&&(e.TgZ(0,"div",55),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.CategoryDescription," ")}}
1function ue(n,o){1&n&&(e.TgZ(0,"div",56),e._UZ(1,"img",57),e.TgZ(2,"span"),e._uU(3,"No dishes available in this category."),e.qZA()())}function ge(n,o){if(1&n&&(e.TgZ(0,"div",43),e.YNc(1,_e,3,2,"div",44),e.TgZ(2,"div",45)(3,"h2",46),e._uU(4),e.qZA()(),e.YNc(5,pe,2,1,"div",47),e._UZ(6,"app-new-recipe-card",48),e.YNc(7,ue,4,0,"div",49),e.qZA()),2&n){const t=o.$implicit;e.Q6J("id",t.CategoryId),e.xp6(1),e.Q6J("ngIf",t.CategoryImage),e.xp6(3),e.Oqu(t.CategoryTitle),e.xp6(1),e.Q6J("ngIf",!t.CategoryImage&&t.CategoryDescription),e.xp6(1),e.Q6J("recipes",t.Recipes),e.xp6(1),e.Q6J("ngIf",!t.Recipes.length)}}function de(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"section",58)(1,"app-new-side-cart",59),e.NdJ("checkout",function(){return e.CHM(t),e.oxw().openCheckout()})("updateCart",function(){return e.CHM(t),e.oxw().getCartTotal()}),e.qZA()()}}function me(n,o){1&n&&e.GkF(0)}function he(n,o){1&n&&e.GkF(0)}function fe(n,o){1&n&&e.GkF(0)}function xe(n,o){1&n&&e.GkF(0)}function ve(n,o){1&n&&(e.TgZ(0,"span",23),e._uU(1,"\u2713"),e.qZA())}function Ce(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",72),e.NdJ("click",function(){const l=e.CHM(t).$implicit;return e.oxw(3).getRecipies(l)}),e.YNc(1,ve,2,0,"span",21),e.TgZ(2,"span",22),e._uU(3),e.qZA()()}if(2&n){const t=o.$implicit,i=e.oxw(3);e.ekj("is-selected",i.selectedCategory==t.CategoryId),e.xp6(1),e.Q6J("ngIf",i.selectedCategory==t.CategoryId),e.xp6(2),e.Oqu(null==t?null:t.CategoryTitle)}}function ye(n,o){if(1&n&&(e.TgZ(0,"div",70),e.YNc(1,Ce,4,4,"button",71),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.categories)}}function Te(n,o){1&n&&e.GkF(0)}const w=function(n){return{$implicit:n}};function be(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Te,1,0,"ng-container",74),e.BQk()),2&n){const t=o.$implicit;e.oxw(3);const i=e.MAs(7);e.xp6(1),e.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",e.VKq(2,w,t))}}function Oe(n,o){if(1&n&&(e.ynx(0),e.YNc(1,be,2,4,"ng-container",73),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.recipies)}}function we(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",60)(2,"button",61),e.NdJ("click",function(){return e.CHM(t),e.oxw().showHideCart()}),e.TgZ(3,"span",62),e._uU(4),e.ALo(5,"async"),e.qZA(),e.TgZ(6,"span",63),e._uU(7),e.ALo(8,"currency"),e.qZA()(),e.TgZ(9,"button",64),e.NdJ("click",function(){return e.CHM(t),e.oxw().openCheckout()}),e._uU(10," Checkout "),e.qZA()(),e.TgZ(11,"div",65),e.YNc(12,me,1,0,"ng-container",66),e.YNc(13,he,1,0,"ng-container",66),e.YNc(14,fe,1,0,"ng-container",66),e.YNc(15,xe,1,0,"ng-container",66),e.YNc(16,ye,2,1,"div",67),e._UZ(17,"hr",68),e.YNc(18,Oe,2,1,"ng-container",6),e.qZA(),e.TgZ(19,"button",69),e.NdJ("click",function(){return e.CHM(t),e.oxw().scrollToTop()}),e._uU(20," \u2191 "),e.qZA(),e.BQk()}if(2&n){const t=e.oxw(),i=e.MAs(3),c=e.MAs(5),l=e.MAs(1),r=e.MAs(9);e.xp6(4),e.hij(" ",e.lcZ(5,8,t.requestService.cartCounter$)," "),e.xp6(3),e.hij(" ",e.gM2(8,10,t.cartTotal,t.CurrencySymbol,"symbol","1.2-2")," "),e.xp6(5),e.Q6J("ngTemplateOutlet",i),e.xp6(1),e.Q6J("ngTemplateOutlet",c),e.xp6(1),e.Q6J("ngTemplateOutlet",l),e.xp6(1),e.Q6J("ngTemplateOutlet",r),e.xp6(1),e.Q6J("ngIf",!t.hotCategoryStyle),e.xp6(2),e.Q6J("ngIf",!t.showOffers)}}function ke(n,o){1&n&&e.GkF(0)}function Ze(n,o){1&n&&(e.TgZ(0,"span",83),e._uU(1," \xb7 development"),e.qZA())}function Me(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",84),e.NdJ("click",function(){const l=e.CHM(t).$implicit;return e.oxw(2).getRecipies(l)}),e._uU(1),e.qZA()}if(2&n){const t=o.$implicit,i=e.oxw(2);e.ekj("is-selected",i.selectedCategory==t.CategoryId),e.xp6(1),e.hij(" ",null==t?null:t.CategoryTitle," ")}}function Ie(n,o){1&n&&e.GkF(0)}function Pe(n,o){1&n&&e.GkF(0)}function Se(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Pe,1,0,"ng-container",74),e.BQk()),2&n){const t=o.$implicit;e.oxw(3);const i=e.MAs(7);e.xp6(1),e.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",e.VKq(2,w,t))}}function Ae(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Se,2,4,"ng-container",73),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.recipies)}}function Fe(n,o){1&n&&e.GkF(0)}function Ne(n,o){1&n&&e.GkF(0)}function De(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"div",65)(2,"div",75)(3,"div",76)(4,"div",77),e.YNc(5,ke,1,0,"ng-container",66),e.TgZ(6,"section",78)(7,"div",14)(8,"span",15)(9,"span",16),e._uU(10," Menu"),e.YNc(11,Ze,2,0,"span",79),e.qZA()()(),e.TgZ(12,"div",80),e.YNc(13,Me,2,3,"button",81),e.qZA()()()(),e.TgZ(14,"div",82),e.YNc(15,Ie,1,0,"ng-container",66),e.YNc(16,Ae,2,1,"ng-container",6),e.qZA(),e.TgZ(17,"div",76)(18,"div",77),e.YNc(19,Fe,1,0,"ng-container",66),e.YNc(20,Ne,1,0,"ng-container",66),e.qZA()()()(),e.BQk()),2&n){const t=e.oxw(),i=e.MAs(3),c=e.MAs(5),l=e.MAs(1),r=e.MAs(9);e.xp6(5),e.Q6J("ngTemplateOutlet",i),e.xp6(6),e.Q6J("ngIf",t.currentEnvironment),e.xp6(2),e.Q6J("ngForOf",t.categories),e.xp6(2),e.Q6J("ngTemplateOutlet",c),e.xp6(1),e.Q6J("ngIf",!t.showOffers),e.xp6(3),e.Q6J("ngTemplateOutlet",l),e.xp6(1),e.Q6J("ngTemplateOutlet",r)}}let Ee=(()=>{class n{constructor(t,i,c,l,r,a,u,m,h){this.app=t,this.requestService=i,this.local=c,this.spinner=l,this.popupService=r,this.apiService=a,this.recomendeditems=u,this.recipeService=m,this.theme=h,this.accentVars=null,this.spinnerColor="#e11d62",this.spinnerBackdrop="rgba(0, 0, 0, 0.5)",this.renderedExtraList=[],this.renderExtralistChooseOnes=0,this.showPopup=!1,this.MenuBuilder=!1,this.stockFlag=!1,this.recipePrice=0,this.addedTocart=!1,this.addToCartQuantity=0,this.addedToCartResult=!1,this.MenuWebBanner=null,this.cartTotal=0,this.recomendedRecipies=[],this.recommendations=!1,this.ShowCategoryDescriptionOverlay=!1,this.isExpanded=!1,this.brandFlavour=window.location.pathname.split("/")[1],this.app.setAllergensFooter(!0)}scrollToElement(t){null==t||t.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}ngOnInit(){this.currentEnvironment=!v.N.production,this.checkoutBtnSub
1=this.requestService.headerCheckoutBtn.subscribe(()=>{this.openCheckout()}),this.popupServiceSub=this.popupService.addedToCartSuccessful.subscribe(t=>{this.getCartTotal()}),this.getCartTotal(),this.spinnerColor=this.theme.token("--ui-accent",this.spinnerColor),this.spinnerBackdrop=this.theme.token("--ui-scrim",this.spinnerBackdrop),this.spinner.show(),this.getWebCustomer(),this.getConfig(),this.resizeObservable$=(0,x.R)(window,"resize"),this.resizeSubscription$=this.resizeObservable$.subscribe(t=>{this.checkDeviceWidth()}),this.checkDeviceWidth(),this.getCategories(),this.deliveryTypeSub=this.requestService.deliveryType$.subscribe(t=>{this.deliveryType=t,this.getCategories()}),this.scrollFunc=()=>{this.timeOut&&clearTimeout(this.timeOut),this.timeOut=setTimeout(()=>{var t;for(let i=this.recipies.length-1;i>=0;i--)if((null===(t=document.getElementById(this.recipies[i].CategoryId.toString()))||void 0===t?void 0:t.offsetTop)-document.body.scrollTop<=10){this.selectedCategory=this.recipies[i].CategoryId;break}},1200)},document.body.addEventListener("scroll",this.scrollFunc)}checkDeviceWidth(){this.windowWidth=document.body.clientWidth}getConfig(){this.brandConfigSub=this.apiService.getbrandConfig$.subscribe({next:t=>{!t||(this.MinDeliveryTime=t.MinDeliveryTime,this.MinCollectionTime=t.MinCollectionTime,this.DeliveryFrom=t.DeliveryFrom,this.CollectionFrom=t.CollectionFrom,this.CheckoutNotice=t.CheckoutNotice,this.ClosingNotice=t.ClosingNotice,this.ShowDelivery=t.ShowDelivery,this.ShowCollection=t.ShowCollection,this.ShowEatin=t.ShowEatIn,this.EatinFrom=t.EatInFrom,this.MinEatinTime=t.MinEatInTime)}})}getWebCustomer(){this.webCusSub=this.apiService.getWebcustomer$.subscribe(t=>{var i,c,l,r,a,u,m,h,T,b,O;!t||(this.deliveryTypes=t.TemplateData.DeliveryTypes,this.showCollectionTemplate=null===(i=t.TemplateData.CheckoutDetail)||void 0===i?void 0:i.ClickAndCollect,this.showDeliveryTemplate=null===(c=t.TemplateData.CheckoutDetail)||void 0===c?void 0:c.HomeDelivery,this.showEatInTemplate=null===(l=t.TemplateData.CheckoutDetail)||void 0===l?void 0:l.EatIn,this.ShowCategoryDescriptionOverlay=null===(r=t.TemplateData.Menu)||void 0===r?void 0:r.ShowCategoryDescriptionOverlay,this.postcodeValidation=null===(a=t.TemplateData)||void 0===a?void 0:a.PostcodeValidation,this.SiteBackgroundColor=t.TemplateData.Theme?null:null===(m=null===(u=t.TemplateData.DynamicStyle)||void 0===u?void 0:u.PrimaryColors)||void 0===m?void 0:m.SiteBackgroundColor,this.WebsiteBackground=null===(h=t.TemplateData.DynamicStyle)||void 0===h?void 0:h.WebsiteBackground,this.accentVars=this.theme.legacyAccentVars(t),this.spinnerColor=(null===(T=this.accentVars)||void 0===T?void 0:T["--ui-accent"])||this.theme.token("--ui-accent",this.spinnerColor),this.MenuWebBanner=null===(b=t.TemplateData.DynamicStyle)||void 0===b?void 0:b.MenuWebBanner,this.hotCategoryStyle=t.TemplateData.DynamicStyle.HotCategoryStyle,this.offers=null===(O=t.TemplateData)||void 0===O?void 0:O.Offer,this.CurrencySymbol=t.TemplateData.CurrencySymbol||"GBP")})}getCategories(){this.recipeServiceSub=this.recipeService.data$.subscribe(t=>{if(!t)return;this.brandCategpriesBackup=t.Categories,this.completeRecipeList=t.CategoriesAndRecipes;const i=this.brandCategpriesBackup.filter(l=>!!(this.showDeliveryTemplate&&l.ForDelivery||this.showCollectionTemplate&&l.ForCollection||this.showEatInTemplate&&l.ForEatIn));this.brandCategpriesBackup=i,this.completeRecipeList=this.completeRecipeList.filter(l=>!!(this.showDeliveryTemplate&&l.ForDelivery||this.showCollectionTemplate&&l.ForCollection||this.showEatInTemplate&&l.ForEatIn)),"Home"==this.deliveryType&&(this.categories=t.Categories.filter(l=>l.ForDelivery),this.recipies=[],this.completeRecipeList.forEach(l=>{let a,r=[];l.ForDelivery&&(r=l.Recipes.filter(u=>u.ForDelivery),a=Object.assign(Object.assign({},l),{Recipes:r}),this.recipies.push(a))})),"Store"==this.deliveryType&&(this.categories=t.Categories.filter(l=>l.ForCollection),this.recipies=[],this.completeRecipeList.forEach(l=>{let a,r=[];l.ForCollection&&(r=l.Recipes.filter(u=>u.ForCollection),a=Object.assign(Object.assign({},l),{Recipes:r}),this.recipies.push(a))})),this.deliveryType||(this.categories=this.brandCategpriesBackup,this.recipies=this.completeRecipeList);let c=0;c=this.categories.findIndex(l=>l.CategoryId==this.selectedCategory),c>=0?this.getRecipies(this.categories[c]):(this.selectedCategory=this.categories[0].CategoryId,this.windowWidth>=768&&setTimeout(()=>{this.getRecipies(this.categories[0])},1)),this.spinner.hide()})}
1getRecipies(t){this.showOffers&&(this.showOffers=!1),setTimeout(()=>{var i;document.body.removeEventListener("scroll",this.scrollFunc),this.selectedCategory=t.CategoryId;let c=t.CategoryId.toString();null===(i=document.getElementById(c))||void 0===i||i.scrollIntoView(),document.body.addEventListener("scroll",this.scrollFunc)},1)}showHideCart(){var t;null===(t=document.getElementById("sideCart"))||void 0===t||t.scrollIntoView()}openCheckout(){this.recomendeditems.showRecomendations.next()}getCartTotal(){let t=0,i=JSON.parse(this.local.get("cartRecipeItems"));(null==i?void 0:i.length)&&i.forEach(c=>{t+=c.recipeTotal}),this.cartTotal=t}scrollToTop(){document.body.scrollTop=0}changeDeliveryType(t){this.local.set("deliveryType",t),this.requestService.deliveryType$.next(t)}checkPostCodeValidity(t){if(null==t)this.InvalidPostCode=!1,this.validPostCode=!1,this.manualPostCode="";else{this.postSpinner=!0;const i=this.requestService.getProductCartItems(),c=this.requestService.getCartRecipeItems();t=t.toUpperCase(),this.requestService.postRequest("api/CustomerAddress/checkPostcodeValidity",{BrandFlavor:this.brandFlavour,Postcode:t,ProductOrderDetail:i,RecipeOrderDetail:c}).subscribe(r=>{200==r.Info.Status?(this.requestService.postCode=this.manualPostCode,this.validPostCode=!0,this.InvalidPostCode=!1,this.enteredPostCode=t,this.manualPostCode=null):(this.InvalidMessage=r.Info.Message,this.InvalidPostCode=!0,this.validPostCode=!1,this.manualPostCode=null,this.requestService.postCode=""),this.postSpinner=!1})}}brandOffers(){document.body.removeEventListener("scroll",this.scrollFunc),setTimeout(()=>{this.showOffers=!this.showOffers,this.showOffers&&(this.selectedCategory=null),this.showOffers||(this.selectedCategory=this.categories[0].CategoryId),this.scrollToTop(),document.body.addEventListener("scroll",this.scrollFunc)},1)}toggleExpand(){this.isExpanded=!this.isExpanded}needsExpansion(t){return t&&t.length>110}ngOnDestroy(){this.app.setAllergensFooter(!1),this.resizeSubscription$.unsubscribe(),this.popupServiceSub.unsubscribe(),this.checkoutBtnSub.unsubscribe(),this.recipeServiceSub.unsubscribe(),this.webCusSub.unsubscribe(),this.brandConfigSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g.y),e.Y36(C.s),e.Y36(p.U),e.Y36(y.t2),e.Y36(Z.rA),e.Y36(M.s),e.Y36(I.B),e.Y36(P.j),e.Y36(S.fY))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-online"]],decls:14,vars:11,consts:[["notices",""],["offersToggle",""],["offersList",""],["categoryBlock",""],["cart",""],[1,"ui-online",3,"ngStyle"],[4,"ngIf"],["size","large","type","ball-scale-multiple",3,"bdColor","color"],["class","ui-alert ui-alert--success mt-0",4,"ngIf"],["class","ui-alert ui-alert--danger mt-0",4,"ngIf"],["class","ui-card online__card",4,"ngIf"],[1,"ui-alert","ui-alert--success","mt-0"],[1,"ui-alert","ui-alert--danger","mt-0"],[1,"ui-card","online__card"],[1,"ui-step"],[1,"ui-step__copy"],[1,"ui-step__title"],[1,"ui-card__body"],[1,"ui-choice-grid","online__methods"],["type","button","class","ui-choice ui-choice--stack",3,"is-selected","click",4,"ngIf"],["type","button",1,"ui-choice","ui-choice--stack",3,"click"],["class","ui-choice__check",4,"ngIf"],[1,"ui-choice__label"],[1,"ui-choice__check"],[1,"ui-input-group"],["name","manualCode","type","text","placeholder","Enter post code","autocomplete","postal-code","maxlength","10",1,"ui-input",3,"ngModel","keyup.enter","ngModelChange"],["type","button",1,"ui-btn",3,"disabled","click"],["class","ui-choice__spinner",4,"ngIf"],["class","ui-hint ui-hint--success",4,"ngIf"],["class","ui-hint ui-hint--danger",4,"ngIf"],[1,"ui-choice__spinner"],[1,"ui-hint","ui-hint--success"],[1,"ui-hint","ui-hint--danger"],["type","button","class","ui-choice online__offers",3,"is-selected","click",4,"ngIf"],["type","button",1,"ui-choice","online__offers",3,"click"],[1,"ui-step__chev"],["class","ui-item online__offer",4,"ngFor","ngForOf"],[1,"ui-item","online__offer"],[1,"online__offer-copy"],[1,"m-0"],["class","ui-thumb online__offer-thumb",4,"ngIf"],[1,"ui-thumb","online__offer-thumb"],["alt","",3,"src"],[1,"online__category",3,"id"],["class","online__hero",4,"ngIf"],[1,"ui-section","online__section"],[1,"ui-section__title"],["class","ui-note online__desc",4,"ngIf"],["card","main",3,"recipes"],["class","ui-note online__empty",4,"ngIf"],[1,"online__hero"],["class","online__hero-desc",4,"ngIf"],[1,"online__hero-desc"],["type","button","class","ui-link online__more",3,"click",4,"ngIf"],["type","button",1,"ui-link","online__more",3,"click"],[1,"ui-note","online__desc"],[1,"ui-note","online__empty"],["src","https://perkss.blob.core.windows.net/images/customer/no_item.png","alt",""],["id","sideCart",1,"ui-card","online__cart"],[3,"checkout","updateCart"],[1,"online__bar"],["type","button",1,"online__bar-summary",3,"click"],[1,"ui-badge","online__bar-count"],[1,"online__bar-total"],["type","button",1,"ui-btn","ui-btn--sm",3,"click"],[1,"container-fluid","ui-online__inner"],[4,"ngTemplateOutlet"],["class","online__chips","uiDragScroll","",4,"ngIf"],[1,"ui-hairline"],["type","button","aria-label","Back to top",1,"online__top",3,"click"],["uiDragScroll","",1,"online__chips"],["type","button","class","ui-choice ui-choice--chip online__chip",3,"is-selected","click",4,"ngFor","ngForOf"],["type","button",1,"ui-choice","ui-choice--chip","online__chip",3,"click"],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"row"],[1,"col-md-3"],[1,"online__sticky"],[1,"ui-card","online__card","online__nav"],["class","ui-hint--danger",4,"ngIf"],[1,"online__nav-list"],["type","button","class","online__nav-item",3,"is-selected","click",4,"ngFor","ngForOf"],[1,"col-md-6"],[1,"ui-hint--danger"],["type","button",1,"online__nav-item",3,"click"]],template:function(t,i){1&t&&(e.YNc(0,ee,4,4,"ng-template",null,0,e.W1O),e.YNc(2,ie,1,1,"ng-template",null,1,e.W1O),e.YNc(4,se,1,1,"ng-template",null,2,e.W1O),e.YNc(6,ge,8,6,"ng-template",null,3,e.W1O),e.YNc(8,de,2,0,"ng-template",null,4,e.W1O),e.TgZ(10,"main",5),e.YNc(11,we,21,15,"ng-container",6),e.YNc(12,De,21,7,"ng-container",6),e.qZA(),e._UZ(13,"ngx-spinner",7)),2&t&&(e.xp6(10),e.Udp("background-color",i.SiteBackgroun
1dColor||null)("background-image",i.WebsiteBackground?"url("+i.WebsiteBackground+")":null),e.ekj("is-mobile",i.windowWidth<768),e.Q6J("ngStyle",i.accentVars),e.xp6(1),e.Q6J("ngIf",i.windowWidth<768),e.xp6(1),e.Q6J("ngIf",i.windowWidth>=768),e.xp6(1),e.Q6J("bdColor",i.spinnerBackdrop)("color",i.spinnerColor))},directives:[_.O5,d.Fj,d.nD,d.JJ,d.On,_.sg,A.j,F.R,_.PC,_.tP,N.w,y.Ro],pipes:[_.Ov,_.H9],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block;background:var(--ui-ground);color:var(--ui-ink);min-height:100%}.ui-online[_ngcontent-%COMP%]{background-color:var(--ui-ground);background-repeat:no-repeat;background-size:cover;padding:18px 0 40px;min-height:calc(100vh - 104px)}.ui-online.is-mobile[_ngcontent-%COMP%]{padding-top:0}.ui-online__inner[_ngcontent-%COMP%]{padding-left:14px;padding-right:14px}.online__card[_ngcontent-%COMP%]{margin-bottom:12px}.online__sticky[_ngcontent-%COMP%]{position:sticky;top:12px}.online__methods[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.online__offers[_ngcontent-%COMP%]{min-height:52px;margin-bottom:12px}.online__offers[_ngcontent-%COMP%] .ui-step__chev[_ngcontent-%COMP%]{transition:transform .2s ease}.online__offers[_ngcontent-%COMP%] .ui-step__chev.is-open[_ngcontent-%COMP%]{transform:rotate(90deg)}.online__offer[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--ui-hairline)}.online__offer[_ngcontent-%COMP%]:first-child{border-top:0;padding-top:4px}.online__offer-copy[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;color:var(--ui-ink-2);font-size:.95rem}.online__offer-copy[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:block;margin-bottom:2px;font-weight:var(--ui-w-label);color:var(--ui-ink)}.online__offer-thumb[_ngcontent-%COMP%]{flex:0 0 96px;width:96px;height:96px}.online__offer-thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.online__category[_ngcontent-%COMP%]{margin-bottom:28px;scroll-margin-top:72px}.online__section[_ngcontent-%COMP%]{margin-top:4px}.online__hero[_ngcontent-%COMP%]{position:relative;margin-bottom:12px;border-radius:var(--ui-r-card);overflow:hidden;background:var(--ui-thumb-bg)}.online__hero[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:100%;height:200px;object-fit:cover}.online__hero-desc[_ngcontent-%COMP%]{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:flex-end;gap:10px;padding:10px 14px;background:var(--ui-scrim);color:var(--ui-semantic-ink);font-size:.85rem}.online__hero-desc[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;margin:0}.online__hero-desc[_ngcontent-%COMP%] p.is-clamped[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}.online__more[_ngcontent-%COMP%]{flex:0 0 auto;color:var(--ui-semantic-ink);white-space:nowrap}.online__desc[_ngcontent-%COMP%]{margin-bottom:12px}.online__empty[_ngcontent-%COMP%]{align-items:center;justify-content:center;gap:14px}.online__empty[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:72px}.online__cart[_ngcontent-%COMP%]{margin-bottom:12px}.online__nav-list[_ngcontent-%COMP%]{display:grid;grid-gap:4px;gap:4px;padding:0 6px 6px;max-height:calc(100vh - 140px);overflow-y:auto}.online__nav-item[_ngcontent-%COMP%]{width:100%;border:1px solid transparent;border-radius:var(--ui-r-choice);background:transparent;color:var(--ui-ink);padding:10px 12px;text-align:left;font:inherit;font-weight:var(--ui-w-label);cursor:pointer;overflow-wrap:anywhere;transition:background-color .2s ease,border-color .2s ease}.online__nav-item[_ngcontent-%COMP%]:hover{background:var(--ui-ground)}.online__nav-item.is-selected[_ngcontent-%COMP%]{border-color:var(--ui-accent-ring);background:var(--ui-accent-tint);box-shadow:inset 0 0 0 1px var(--ui-accent-ring)}.online__bar[_ngcontent-%COMP%]{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;margin-bottom:12px;background:var(--ui-card);border-bottom:1px solid var(--ui-line)}.online__bar-summary[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:10px;border:0;background:none;padding:0;font:inherit;color:var(--ui-ink);cursor:pointer}.online__bar-count[_ngcontent-%COMP%]{background:var(--ui-accent-badge);color:var(--ui-accent-ink)}.online__bar-total[_ngcontent-%COMP%]{font-weight:var(--ui-w-title);font-size:1.05rem}.online__chips[_ngcontent-%COMP%]{overflow-x:auto;overflow-y:hidden;white-space:nowrap;-webkit-overflow-scrolling:touch;touch-action:pan-x;scrollbar-width:none;padding:4px 0}.online__chips[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.online__chip[_ngcontent-%COMP%]{display:inline-flex;vertical-align:top;margin-right:8px;margin-bottom:4px;white-space:nowrap;touch-action:manipulation}.online__top[_ngcontent-%COMP%]{position:fixed;right:var(--ui-fab-inset);bottom:calc(var(--ui-fab-bottom-2) + var(--ui-fab-size) + var(--ui-fab-gap));z-index:40;width:var(--ui-fab-size);height:var(--ui-fab-size);border:1px solid var(--ui-line-strong);border-radius:var(--ui-r-badge);background:var(--ui-card);color:var(--ui-ink);box-shadow:var(--ui-shadow);font-size:1.3rem;font-weight:var(--ui-w-title);line-height:1;cursor:pointer}.online__offers[_ngcontent-%COMP%]:focus-visible, .online__chip[_ngcontent-%COMP%]:focus-visible, .online__bar-summary[_ngcontent-%COMP%]:focus-visible, .online__bar[_ngcontent-%COMP%] .ui-btn[_ngcontent-%COMP%]:focus-visible, .online__top[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--ui-accent-ring);outline-offset:2px;box-shadow:0 0 0 4px var(--ui-accent-tint)}']}),n})();var Je=s(2444),Qe=s(383),Ye=s(2980),qe=s(2747),Ue=s(7515);let Re=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[{provide:e.qLn,useClass:Je.r}],imports:[[_.ez,d.u5,Ye.Z,qe.Q,Ue.o,y.ef,Qe.Bz.forChild([{path:"",component:Ee}])]]}),n})()},1086:(k,f,s)=>{s.d(f,{j:()=>v});var e=s(1135),_=s(5e3),x=s(1426);let v=(()=>{class g{constructor(p){this._requestService=p,this.dataSubject=ne
1w e.X(null),this.data$=this.dataSubject.asObservable(),this.brandFlavour=window.location.pathname.split("/")[1],this.initateRecipes()}refreshRecipes(){this.dataSubject.next(null),this.initateRecipes()}initateRecipes(){this.dataSubject.getValue()||this.getCategories()}getCategories(){this._requestService.getRequest("api/Recipe/GetOnlineRecipesData/"+this.brandFlavour).subscribe(p=>{200==p.Info.Status&&this.dataSubject.next(p)})}}return g.\u0275fac=function(p){return new(p||g)(_.LFG(x.s))},g.\u0275prov=_.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()}}]);
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.