PageSourceSearch

https://www.order2eatdelivery.com/glue/5868.7ab581d7f3be1f82.js

js order2eatdelivery.com collected 2026-10-02 00:02:47 UTC 177,880 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0f3b4-2b74-74f2-a4b2-6216e72f7bda")}catch(e){}}();"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5868],{65868:(bi,he,M)=>{M.r(he),M.d(he,{RestaurantPageModule:()=>Ai});var Q=M(94666),fe=M(2508),ne=M(81258),L=M(43475),g=M(71670),e=M(92135),Ce=M(45398),we=M(92469),X=M.n(we),ve=M(9012),Pe=M(94072),ie=M(92938),$=M(57225),Te=M(56908),ee=M.n(Te),Oe=M(63986),B=M(26549),H=M(90978),re=M(82176),oe=M(64068),ye=M(68132),ae=M(39688),se=M(90910),Ae=M(59162),le=M(63370),de=M(49670),be=M(71446),K=M(38699),Ee=M(42902),Se=M(74701),ce=M(53305),Re=M(73071),ue=M(96256),xe=M(34497),ke=M(51933),De=M(32853),Ze=M(16050),Le=M(85247),Ne=M(72835),Ye=M(89461);function Fe(r,s){if(1&r&&(e.TgZ(0,"p",12),e._uU(1),e.qZA()),2&r){const n=e.oxw();e.xp6(1),e.Oqu(n.item.menuItemPrice)}}function Ue(r,s){1&r&&(e.TgZ(0,"p",12),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"basedOnOptions")," "))}function He(r,s){if(1&r&&(e.TgZ(0,"p",13),e._uU(1),e.qZA()),2&r){const n=e.oxw();e.xp6(1),e.Oqu(n.item.menuItemDescription)}}function Je(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div",14)(1,"img",15),e.NdJ("error",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.item.imageError=!0)})("load",function(i){e.CHM(n);const o=e.oxw();return e.KtG(o.onImageLoadFunc(o.item,i))}),e.qZA()()}if(2&r){const n=e.oxw();e.xp6(1),e.s9C("src",n.item.menuItemImage,e.LSH)}}function Ve(r,s){1&r&&(e.TgZ(0,"div",14),e._UZ(1,"div",16),e.qZA())}function Qe(r,s){1&r&&e._UZ(0,"img",22)}function ze(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"img",23),e.NdJ("error",function(i){e.CHM(n);const o=e.oxw(3);return e.KtG(o.onLogoError(i))}),e.qZA()}if(2&r){const n=e.oxw(3);e.s9C("src",n.restaurant.logo,e.LSH)}}function Ge(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div"),e.YNc(1,Qe,1,0,"img",19),e.YNc(2,ze,1,1,"img",20),e.TgZ(3,"img",21),e.NdJ("load",function(i){e.CHM(n);const o=e.oxw(2);return e.KtG(o.onImageLoadFunc(o.item,i))}),e.qZA()()}if(2&r){const n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!n.item.isImageLoad),e.xp6(1),e.Q6J("ngIf",!n.item.isImageLoad&&n.isImageRemote(n.restaurant.logo)),e.xp6(1),e.s9C("src",n.item.menuItemImage,e.LSH)}}function qe(r,s){1&r&&e._UZ(0,"img",22)}function Be(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"img",23),e.NdJ("error",function(i){e.CHM(n);const o=e.oxw(3);return e.KtG(o.onLogoError(i))}),e.qZA()}if(2&r){const n=e.oxw(3);e.s9C("src",n.restaurant.logo,e.LSH)}}function Ke(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div"),e.YNc(1,qe,1,0,"img",19),e.YNc(2,Be,1,1,"img",20),e.TgZ(3,"img",21),e.NdJ("load",function(i){e.CHM(n);const o=e.oxw(2);return e.KtG(o.onImageLoadFunc(o.item,i))}),e.qZA()()}if(2&r){const n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!n.item.isImageLoad),e.xp6(1),e.Q6J("ngIf",!n.item.isImageLoad&&n.isImageRemote(n.restaurant.logo)),e.xp6(1),e.hYB("src","",n.url,"",n.item.menuItemImage,"",e.LSH)}}function je(r,s){if(1&r&&(e.TgZ(0,"div",17),e.YNc(1,Ge,4,3,"div",18),e.YNc(2,Ke,4,4,"div",18),e.qZA()),2&r){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.isImageRemote(n.item.menuItemImage)),e.xp6(1),e.Q6J("ngIf",!n.isImageRemote(n.item.menuItemImage))}}function We(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div",24)(1,"ion-icon",25),e.NdJ("click",function(i){e.CHM(n);const o=e.oxw();return e.KtG(o.handleAddButtonClick(i,o.item.hasOptions))}),e.qZA()()}if(2&r){const n=e.oxw();e.xp6(1),e.Q6J("ngClass",n.item.menuItemMaximum>0&&n.item.menuItemMaximum<=n.item.cartCount?"disabledicon":"")}}const Xe=function(r){return{"trash-icon":r}};function $e(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"ion-icon",29),e.NdJ("click",function(i){e.CHM(n);const o=e.oxw(2);return o.removeFromCart(i,o.item,null==o.restaurant?null:o.restaurant.entityId,null==o.restaurant?null:o.restaurant.isEstore),e.KtG(i.stopPropagation())}),e.qZA()}if(2&r){const n=e.oxw(2);e.Q6J("name",1==n.item.cartCount?"trash-outline":"remove-outline")("ngClass",e.VKq(2,Xe,1==n.item.cartCount))}}function et(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div",26),e.YNc(1,$e,1,4,"ion-icon",27),e.TgZ(2,"p",28),e._uU(3),e.qZA(),e.TgZ(4,"ion-icon",25),e.NdJ("click",function(i){e.CHM(n);const o=e.oxw();return o.addToCart(i,o.item,null==o.restaurant?null:o.restaurant.entityId,null==o.restaurant?null:o.restaurant.isEstore),e.KtG(i.stopPropagation())}),e.qZA()()}if(2&r){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",!n.item.hasOptions&&0==n.item.menuItemMinimum),e.xp6(2),e.Oqu(n.item.cartCount),e.xp6(1),e.Q6J("ngClass",n.item.menuItemMaximum>0&&n.item.menuItemMaximum<=n.item.cartCount?"disabledicon":"")}}const tt=function(r){return{"two-columns-menu-card":r}},nt=function(r){return{"two-columns-info":r}},it=function(r){return{"two-columns-iamge-container":r}};let rt=(()=>{var r;class s{constructor(t,i,o,a,l,d,f,C,y){this.sharedService=t,this.restAPI=i,this.resizeAPI=o,this.translate=a,this.cartAPI=l,this.modalCtrl=d,this.addressAPI=f,this.storage=C,this.config=y,this.restaurantClosed=!1,this.url="",this.url=this.config.rds_baseurl||""}ngOnInit(){B.dV.isNativePlatform()&&(H.A_.setStyle({style:H.bg.Light}
1),H.A_.setBackgroundColor({color:"#FFFFFF"}),H.A_.setOverlaysWebView({overlay:!1}))}ionViewWillEnter(){return(0,g.Z)(function*(){B.dV.isNativePlatform()&&(H.A_.setStyle({style:H.bg.Light}),H.A_.setBackgroundColor({color:"#FFFFFF"}),H.A_.setOverlaysWebView({overlay:!1}))})()}handleCardClick(){var t,i;this.viewItem(this.item,null===(t=this.restaurant)||void 0===t?void 0:t.entityId,null===(i=this.restaurant)||void 0===i?void 0:i.isEstore)}handleAddButtonClick(t,i){var o,a,l,d;t.stopPropagation(),i||this.item.menuItemMinimum>0?this.viewItem(this.item,null===(o=this.restaurant)||void 0===o?void 0:o.entityId,null===(a=this.restaurant)||void 0===a?void 0:a.isEstore):this.addToCart(t,this.item,null===(l=this.restaurant)||void 0===l?void 0:l.entityId,null===(d=this.restaurant)||void 0===d?void 0:d.isEstore)}getBackgroundImage(t,i,o){return i?this.isImageRemote(t)?`url(${t})`:`url(${this.url}${t})`:""}}return(r=s).\u0275fac=function(t){return new(t||r)(e.Y36(ue.B),e.Y36(oe.T),e.Y36(ce.v),e.Y36(K.sK),e.Y36(se.N),e.Y36(L.IN),e.Y36(ae.D),e.Y36(le.Ke),e.Y36(de.D))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-menu-card"]],inputs:{item:"item",restaurant:"restaurant",restaurantClosed:"restaurantClosed",viewItem:"viewItem",onImageLoadFunc:"onImageLoadFunc",isImageRemote:"isImageRemote",onLogoError:"onLogoError",shouldDisplayDescription:"shouldDisplayDescription",addToCart:"addToCart",removeFromCart:"removeFromCart",presentItemModal:"presentItemModal",addressModal:"addressModal",addressMakerFromEntity:"addressMakerFromEntity",order:"order",displaySpecialInstructions:"displaySpecialInstructions",specialInstructionsLength:"specialInstructionsLength"},decls:15,vars:18,consts:[[1,"menu-card",3,"ngClass","click"],[1,"menu-card-content"],[1,"menu-card-info",3,"ngClass"],[1,"menu-card-title"],["class","menu-card-price",4,"ngIf"],["class","menu-card-description",4,"ngIf"],[1,"menu-card-image-wrapper"],[1,"item-image-container",3,"ngClass"],["class","item-image-container",4,"ngIf"],["class","item-image-div",4,"ngIf"],["class","menu-card-add-button",4,"ngIf"],["class","menu-card-add-button item-add-remove-buttons",4,"ngIf"],[1,"menu-card-price"],[1,"menu-card-description"],[1,"item-image-container"],[1,"item-image",3,"src","error","load"],[1,"no-image"],[1,"item-image-div"],[4,"ngIf"],["class","item-image","src","assets/imgs/menu-default.jpg",4,"ngIf"],["class","item-image",3,"src","error",4,"ngIf"],[1,"item-image",3,"src","load"],["src","assets/imgs/menu-default.jpg",1,"item-image"],[1,"item-image",3,"src","error"],[1,"menu-card-add-button"],["name","add-outline",3,"ngClass","click"],[1,"menu-card-add-button","item-add-remove-buttons"],["class","add-remove-icon",3,"name","ngClass","click",4,"ngIf"],[1,"add-counter"],[1,"add-remove-icon",3,"name","ngClass","click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.NdJ("click",function(){return i.handleCardClick()}),e.TgZ(1,"div",1)(2,"div",2)(3,"h4",3),e._uU(4),e.qZA(),e.YNc(5,Fe,2,1,"p",4),e.YNc(6,Ue,3,3,"p",4),e.YNc(7,He,2,1,"p",5),e.qZA(),e.TgZ(8,"div",6)(9,"div",7),e.YNc(10,Je,2,1,"div",8),e.YNc(11,Ve,2,0,"div",8),e.YNc(12,je,3,2,"div",9),e.YNc(13,We,2,1,"div",10),e.YNc(14,et,5,3,"div",11),e.qZA()()()()),2&t&&(e.Q6J("ngClass",e.VKq(12,tt,i.restAPI.numOfColumns>1)),e.xp6(2),e.Q6J("ngClass",e.VKq(14,nt,2==i.restAPI.numOfColumns)),e.xp6(2),e.Oqu(i.item.menuItemName),e.xp6(1),e.Q6J("ngIf","$0.00"!=i.item.menuItemPrice),e.xp6(1),e.Q6J("ngIf","$0.00"==i.item.menuItemPrice),e.xp6(1),e.Q6J("ngIf",i.item.menuItemDescription),e.xp6(2),e.Q6J("ngClass",e.VKq(16,it,2==i.restAPI.numOfColumns)),e.xp6(1),e.Q6J("ngIf",i.item.menuItemImage&&!i.item.isImageLoad&&!(null!=i.item&&i.item.imageError)),e.xp6(1),e.Q6J("ngIf",!i.item.isImageLoad),e.xp6(1),e.Q6J("ngIf",(null==i.item?null:i.item.menuItemImage)&&i.sharedService.isValidUrl(null==i.item?null:i.item.menuItemImage)&&i.item.isImageLoad),e.xp6(1),e.Q6J("ngIf",0==i.item.cartCount),e.xp6(1),e.Q6J("ngIf",i.item.cartCount>0))},dependencies:[Q.mk,Q.O5,L.gu,K.X$],styles:[".menu-card[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:stretch;-webkit-box-align:stretch;border:1px solid #ddd;border-radius:10px;background-color:#fff;margin-bottom:.8rem;position:relative;overflow:hidden;cursor:pointer;transition:all .3s ease-in;padding-left:1rem;height:145px;max-height:145px;width:100%!important}.menu-card[_ngcontent-%COMP%]:hover{background-color:#c1c1c1}.menu-card-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.menu-card-info[_ngcontent-%COMP%]{overflow:hidden;padding:1rem 0}.menu-card-title[_ngcontent-%COMP%]{font-size:1.35rem;font-weight:700;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-card-price[_ngcontent-%COMP%]{font-size:1.1rem;color:#666;margin:5px 0 0}.menu-card-description[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;font-size:14px;color:#666;margin:5px 0 0;line-height:1.5}.menu-card-image-wrapper[_ngcontent-%COMP%]{overflow:hidden!important;display:flex;justify-content:flex-end;position:relative;max-width:145px;min-width:145px}.menu-card-image-wrapper[_ngcontent-%COMP%]   .item-image-container[_ngcontent-%COMP%]{height:100%;max-width:145px;min-width:145px}.menu-card-image-wrapper[_ngcontent-%COMP%]   .item-image-container[_ngcontent-%COMP%]   .item-image-div[_ngcontent-%COMP%]{max-width:145px;min-width:145px;height:100%}.menu-card-image-wrapper[_ngcontent-%COMP%]   .item-image-container[_ngcontent-%COMP%]   .item-image-div[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{height:100%}.menu-card-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:0 10px 10px 0;overflow-clip-margin:content-box;overflow:clip;object-fit:cover;height:145px;max-width:145px;min-width:145px}.menu-card-add-button[_ngcontent-%COMP%]{position:absolute;bottom:.75rem;right:.75rem;background:transparent;border:none;display:flex;justify-content:center;align-items:center;cursor:pointer;max-width:90%}.menu-card-add-button[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#fff;font-size:1.45rem;margin:0;padding:0 .5rem}.menu-card-add-button[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:1.75rem!important;padding:.18rem;color:#fff;background:var(--ion-color-secondary);border-radius:4px}.disabledicon[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}.item-add-remove-buttons[_ngcontent-%COMP%]{background-color:var(--ion-color-secondary);border-radius:4px}@media screen and (max-width: 1024px){.menu-card[_ngcontent-%COMP%]{height:110px;max-height:110px}.menu-card-title[_ngcontent-%COMP%]{font-size:1.25rem}.menu-card-image-wrapper[_ngcontent-%COMP%], .menu-card-image-wrapper[_ngcontent-%COMP%]   .item-image-container[_ngcontent-%COMP%], .menu-card-image-wrapper[_ngcontent-%COMP%]   .item-image-container[_ngcontent-%COMP%]   .item-image-div[_ngcontent-%COMP%]{max-width:110px;min-width:110px}.menu-card-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:110px;max-width:110px;min-width:110px}}@media screen and (max-width: 576px){.menu-card[_ngcontent-%COMP%]{height:120px;max-height:120px}.menu-card-title[_ngcontent-%COMP%]{font-size:1.4rem!important}.menu-card-price[_ngcontent-%COMP%], .menu-card-description[_ngcontent-%COMP%]{font-size:1.15rem!important}.menu-card-add-button[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:2.25rem!important;padding:.25rem}.menu-card-add-button[_ngcontent-%COMP%]   .trash-icon[_ngcontent-%COMP%]{font-size:1.75!important}.menu-card-image-wrapper[_ngcontent-%COMP%], .menu-card-image-wrapper[_ngcontent-%COMP%]   .item-image-container[_ngcontent-%COMP%], .menu-card-image-wrapper[_ngcontent-%COMP%]   .item-image-container[_ngcontent-%COMP%]   .item-image-div[_ngcontent-%COMP%]{max-width:120px;min-width:120px}.menu-card-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:120px;max-width:120px;min-width:120px}}@media (min-width: 769px) and (max-width: 800px){.menu-card[_ngcontent-%COMP%]{width:70%}}@media (min-width: 801px) and (max-width: 900px){.menu-card[_ngcontent-%COMP%]{width:78%}}@media (min-width: 576px){.menu-card[_ngcontent-%COMP%]{height:10rem}}@media (min-width: 576px) and (max-width: 900px){.menu-card[_ngcontent-%COMP%]{height:10rem}.menu-card-info[_ngcontent-%COMP%]{max-width:75%}}@media (min-width: 1024px){.two-columns-menu-card[_ngcontent-%COMP%]{height:100px;max-height:100px}.two-columns-menu-card[_ngcontent-%COMP%]   .menu-card-image-wrapper[_ngcontent-%COMP%], .two-columns-menu-card[_ngcontent-%COMP%]   .menu-card-image-wrapper[_ngcontent-%COMP%]   .item-image-container[_ngcontent-%COMP%], .two-columns-menu-card[_ngcontent-%COMP%]   .menu-card-image-wrapper[_ngcontent-%COMP%]   .item-image-container[_ngcontent-%COMP%]   .item-image-div[_ngcontent-%COMP%]{max-width:100px;min-width:100px}.two-columns-menu-card[_ngcontent-%COMP%]   .menu-card-image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100px;max-width:100px;min-width:100px}.two-columns-info[_ngcontent-%COMP%]   .menu-card-title[_ngcontent-%COMP%]{font-size:1rem}.two-columns-info[_ngcontent-%COMP%]   .menu-card-price[_ngcontent-%COMP%]{font-size:.9rem}.two-columns-info[_ngcontent-%COMP%]   .menu-card-description[_ngcontent-%COMP%]{font-size:1rem}}"]}),s})();function ot(r,s){if(1&r&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&r){const n=e.oxw().$implicit;e.xp6(1),e.Oqu(n.description)}}function at(r,s){if(1&r&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&r){const n=e.oxw().$implicit,t=e.oxw();e.xp6(1),e.Oqu(t.getTruncatedDescription(n.description))}}function st(r,s){if(1&r&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&r){const n=e.oxw().$implicit;e.xp6(1),e.Oqu(n.description)}}function lt(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(i){e.CHM(n);const o=e.oxw().index,a=e.oxw();return e.KtG(a.toggleExpanded(o,i))}),e._uU(1),e.qZA()}if(2&r){const n=e.oxw().index,t=e.oxw();e.xp6(1),e.hij(" ",t.isExpanded(n)?" ... See less":" ... See more"," ")}}
1function dt(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"ion-slide")(1,"div",8),e.NdJ("click",function(){const o=e.CHM(n).$implicit,a=e.oxw();return e.KtG(null!=o.miid?a.handleCardClick(o.menuItem):null)}),e.TgZ(2,"div",9),e._uU(3),e.qZA(),e.TgZ(4,"div",10)(5,"div",11),e._uU(6),e.qZA(),e.TgZ(7,"div",12),e._uU(8),e.qZA(),e.TgZ(9,"div",13),e.YNc(10,ot,2,1,"span",14),e.YNc(11,at,2,1,"span",14),e.YNc(12,st,2,1,"span",14),e.YNc(13,lt,2,1,"button",15),e.qZA()()()()}if(2&r){const n=s.$implicit,t=s.index,i=e.oxw();e.xp6(1),e.ekj("clickable",null!=n.miid),e.xp6(2),e.Oqu(n.icon),e.xp6(3),e.Oqu(n.title),e.xp6(2),e.Oqu(n.price>0?"Save $"+n.price:n.price),e.xp6(1),e.ekj("expanded",i.isDescriptionLong(n.description)&&i.isExpanded(t)),e.xp6(1),e.Q6J("ngIf",!i.isDescriptionLong(n.description)),e.xp6(1),e.Q6J("ngIf",i.isDescriptionLong(n.description)&&!i.isExpanded(t)),e.xp6(1),e.Q6J("ngIf",i.isDescriptionLong(n.description)&&i.isExpanded(t)),e.xp6(1),e.Q6J("ngIf",i.isDescriptionLong(n.description))}}let ct=(()=>{var r;class s{constructor(t,i,o,a,l,d,f,C,y){this.config=t,this.sharedService=i,this.restAPI=o,this.resizeAPI=a,this.translate=l,this.cartAPI=d,this.modalCtrl=f,this.addressAPI=C,this.storage=y,this.deals=[],this.restaurantClosed=!1,this.url="",this.expandedDeals={},this.MAX_DESCRIPTION_LENGTH=125,this.dealsSliderOptions={initialSlide:0,speed:400,slidesPerView:"auto",spaceBetween:10,freeMode:!0,freeModeSticky:!1,freeModeMomentum:!0,freeModeMomentumRatio:.25,freeModeMomentumVelocityRatio:.2,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:.3,snapToSlide:!1,resistance:!0,resistanceRatio:.85,width:400},this.url=this.config.rds_baseurl||""}handleCardClick(t){var i,o;this.item=t,this.restaurantClosed?this.addressModal(this.item,this.restaurant):this.viewItem(this.item,null===(i=this.restaurant)||void 0===i?void 0:i.entityId,null===(o=this.restaurant)||void 0===o?void 0:o.isEstore)}getBackgroundImage(t,i,o){return i?this.isImageRemote(t)?`url(${t})`:`url(${this.url}${t})`:""}ngOnInit(){}isDescriptionLong(t){return t&&t.length>this.MAX_DESCRIPTION_LENGTH}getTruncatedDescription(t){return t?t.length>this.MAX_DESCRIPTION_LENGTH?t.substring(0,this.MAX_DESCRIPTION_LENGTH):t:""}isExpanded(t){return this.expandedDeals[t]||!1}toggleExpanded(t,i){i.stopPropagation(),this.expandedDeals[t]=!this.expandedDeals[t]}}return(r=s).\u0275fac=function(t){return new(t||r)(e.Y36(de.D),e.Y36(ue.B),e.Y36(oe.T),e.Y36(ce.v),e.Y36(K.sK),e.Y36(se.N),e.Y36(L.IN),e.Y36(ae.D),e.Y36(le.Ke))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-deal-card"]],inputs:{deals:"deals",item:"item",restaurant:"restaurant",restaurantClosed:"restaurantClosed",viewItem:"viewItem",onImageLoadFunc:"onImageLoadFunc",isImageRemote:"isImageRemote",onLogoError:"onLogoError",shouldDisplayDescription:"shouldDisplayDescription",addToCart:"addToCart",removeFromCart:"removeFromCart",presentItemModal:"presentItemModal",addressModal:"addressModal",addressMakerFromEntity:"addressMakerFromEntity",order:"order",displaySpecialInstructions:"displaySpecialInstructions",specialInstructionsLength:"specialInstructionsLength",dealsSliderOptions:"dealsSliderOptions"},decls:9,vars:2,consts:[[1,"deals-section"],[1,"deals-header"],[1,"deals-icon"],["name","pricetag-sharp",1,"deals-icon-img"],[1,"deals-title"],[3,"options"],[4,"ngFor","ngForOf"],[1,"deals-section-border"],[1,"deal-card",3,"click"],[1,"deal-icon"],[1,"deal-content"],[1,"deal-title"],[1,"deal-price"],[1,"deal-desc"],[4,"ngIf"],["class","see-more-btn",3,"click",4,"ngIf"],[1,"see-more-btn",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span",2),e._UZ(3,"ion-icon",3),e.qZA(),e.TgZ(4,"span",4),e._uU(5,"Current Deals"),e.qZA()(),e.TgZ(6,"ion-slides",5),e.YNc(7,dt,14,11,"ion-slide",6),e.qZA(),e._UZ(8,"div",7),e.qZA()),2&t&&(e.xp6(6),e.Q6J("options",i.dealsSliderOptions),e.xp6(1),e.Q6J("ngForOf",i.deals))},dependencies:[Q.sg,Q.O5,L.gu,L.A$,L.Hr],styles:[".deals-section[_ngcontent-%COMP%]{width:100%;margin:clamp(16px,4vw,32px) 0 0 0;padding-bottom:clamp(1rem,3vw,1.5rem);overflow-x:hidden;position:relative}.deals-header[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:clamp(1.5rem,4vw,2rem);font-weight:700;color:var(--ion-color-secondary);margin-bottom:clamp(12px,3vw,16px);padding:0 clamp(8px,2vw,16px)}.deals-icon[_ngcontent-%COMP%]{font-size:clamp(1.8rem,4vw,2.2rem);margin-right:clamp(6px,2vw,8px)}.deals-icon[_ngcontent-%COMP%]   .deals-icon-img[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:clamp(25px,6vw,30px);height:clamp(20px,5vw,25px);object-fit:contain;font-size:clamp(1.5rem,4vw,2rem)}.deals-title[_ngcontent-%COMP%]{font-size:clamp(1.5rem,4vw,2rem);font-weight:600}ion-slides[_ngcontent-%COMP%]{width:100%;padding-bottom:0;padding-left:clamp(8px,2vw,16px);padding-right:clamp(8px,2vw,16px)}.deals-section[_ngcontent-%COMP%]   .swiper-wrapper[_ngcontent-%COMP%]{gap:0!important}.deal-card[_ngcontent-%COMP%]{background:#fff;border:2px dashed var(--ion-color-secondary);border-radius:clamp(6px,2vw,8px);padding:clamp(.5rem,2vw,.75rem) clamp(.25rem,1vw,.5rem);width:clamp(280px,85vw,300px);min-width:clamp(280px,85vw,300px);max-width:clamp(280px,85vw,300px);margin-right:clamp(8px,2vw,10px);box-sizing:border-box;display:flex;align-items:flex-start;box-shadow:none;height:100%;flex-shrink:0;transition:all .3s ease}.deal-card.clickable[_ngcontent-%COMP%]{cursor:pointer}.deal-card.clickable[_ngcontent-%COMP%]:hover{box-shadow:0 4px 12px #00000026;border-color:var(--ion-color-primary);background-color:#f8f9fa}.deal-card.clickable[_ngcontent-%COMP%]:active{transform:translateY(0);box-shadow:0 2px 6px #0000001a}@media (max-width: 480px){.deal-card[_ngcontent-%COMP%]{width:clamp(260px,90vw,300px);min-width:clamp(260px,90vw,300px);max-width:clamp(260px,90vw,300px);padding:.6rem .4rem}}@media (min-width: 481px) and (max-width: 1024px){.deal-card[_ngcontent-%COMP%]{width:clamp(300px,45vw,320px);min-width:clamp(300px,45vw,320px);max-width:clamp(300px,45vw,320px)}}@media (min-width: 1920px){.deal-card[_ngcontent-%COMP%]{width:clamp(320px,20vw,380px);min-width:clamp(320px,20vw,380px);max-width:clamp(320px,20vw,380px)}}.deal-icon[_ngcontent-%COMP%]{font-size:clamp(1.5rem,4vw,2rem);margin-right:clamp(8px,2vw,12px);margin-top:2px;flex-shrink:0}.deal-content[_ngcontent-%COMP%]{text-align:left;align-items:flex-start;display:flex;flex-direction:column;flex:1;min-width:0}.deal-title[_ngcontent-%COMP%]{font-weight:700;font-size:clamp(1rem,3vw,1.25rem);margin-bottom:clamp(2px,1vw,4px);line-height:1.2}.deal-price[_ngcontent-%COMP%]{color:#666;font-size:clamp(.9rem,2.5vw,1.1rem);font-weight:600;margin-bottom:clamp(2px,1vw,3px)}.deal-desc[_ngcontent-%COMP%]{color:#666;font-size:clamp(.9rem,2vw,1rem);text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;max-width:100%;line-height:1.3;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;height:calc(clamp(.9rem,2vw,1rem)*4.5);min-height:calc(clamp(.9rem,2vw,1rem)*4.5);position:relative}.deal-desc.expanded[_ngcontent-%COMP%]{height:auto;min-height:auto;-webkit-line-clamp:unset;display:block}.see-more-btn[_ngcontent-%COMP%]{background:none;border:none;color:var(--ion-color-secondary);font-size:clamp(.9rem,2vw,1rem);font-weight:600;padding:2px 0;margin-top:4px;cursor:pointer;text-decoration:none;transition:color .2s ease}.see-more-btn[_ngcontent-%COMP%]:hover, .see-more-btn[_ngcontent-%COMP%]:active{color:var(--ion-color-secondary)}.deals-section-text[_ngcontent-%COMP%]{margin:clamp(8px,2vw,12px) 0 0 0;font-size:clamp(.9rem,2.5vw,1.1rem);color:#222;text-align:left;padding:0 clamp(8px,2vw,16px)}.deals-section-row[_ngcontent-%COMP%]{padding:0px clamp(8px,3vw,13px) clamp(10px,3vw,15px) clamp(6px,2vw,8px);margin-bottom:clamp(.5rem,2vw,1rem);overflow-x:hidden;position:relative}ion-slides[_ngcontent-%COMP%]{--slides-per-view: auto}ion-slide[_ngcontent-%COMP%]{width:auto!important;min-width:auto!important}.deals-section[_ngcontent-%COMP%]   .swiper-wrapper[_ngcontent-%COMP%]{gap:0!important;align-items:stretch}.deals-section[_ngcontent-%COMP%]   .swiper-slide[_ngcontent-%COMP%]{width:auto!important;height:auto!important}@media (max-width: 320px){.deals-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:8px}.deal-card[_ngcontent-%COMP%]{margin-right:6px}}@media (hover: none) and (pointer: coarse){.deal-card.clickable[_ngcontent-%COMP%]{min-height:44px}.deal-card.clickable[_ngcontent-%COMP%]:active{background-color:#f0f0f0}}.deals-section-border[_ngcontent-%COMP%]{width:100vw;height:1px;background-color:#e0e0e0;margin-top:10px}"]}),s})();const ut=["popularSectionSlider"],pt=["contentScroll"],gt=["search_bar"],mt=["currentSearchInput"],_t=["stickyHeader"],ht=["myDivs"],ft=function(r){return{position:"absolute",top:r}};function vt(r,s){if(1&r&&e._UZ(0,"app-main-header",24),2&r){const n=e.oxw();e.Q6J("hideBackButton",!0)("pageTitle",n.restaurant&&n.restaurant.entityName||" ")("ngStyle",e.VKq(3,ft,n.headerScroll+"px"))}}const xt=function(r,s,n){return{sidebar:r,"filter-modal":s,"hide-modal":n}};function It(r,s){if(1&r){const n=e.EpF();
1e.TgZ(0,"ion-content",16),e._UZ(1,"ion-modal",25),e.TgZ(2,"app-filter-content",26),e.NdJ("onFiltered",function(i){e.CHM(n);const o=e.oxw();return e.KtG(o.onListFiltered(i))})("onOptionScroll",function(i){e.CHM(n);const o=e.oxw();return e.KtG(o.onOptionScroll(i))})("onClearAll",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.clearAndCloseSearchModal())})("onItemClicked",function(i){e.CHM(n);const o=e.oxw();return e.KtG(o.handlerItemClicked(i))})("onFilteredMenuItems",function(i){e.CHM(n);const o=e.oxw();return e.KtG(o.displayDietryFilter(i))})("onClose",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.closeSearchModal())}),e.qZA()()}if(2&r){const n=e.oxw();e.Q6J("ngClass",e.kEZ(11,xt,!n.isMobileView,n.isMobileView&&n.filterModalOpen,!n.filterModalOpen)),e.xp6(1),e.Q6J("isOpen",n.isHiddenModalOpen),e.xp6(1),e.Q6J("isMenuPage",!0)("textPlaceholder","items")("restaurants",n.allItemSections)("searchBarInput",n.searchBarValue)("activeDietaryFilters",n.activeDietryFilterArr)("dietaryFilterItems",n.nonActiveDietryFilterArr)("isRestaurantItems",!0)("orderType",n.type)("usesSort",!1)}}function Mt(r,s){1&r&&e._UZ(0,"img",32)}function Ct(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"img",33),e.NdJ("error",function(i){e.CHM(n);const o=e.oxw(2);return e.KtG(o.onImageError(i))}),e.qZA()}if(2&r){const n=e.oxw(2);e.s9C("src",n.restaurant.featured,e.LSH)}}function wt(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"img",33),e.NdJ("error",function(i){e.CHM(n);const o=e.oxw(2);return e.KtG(o.onImageError(i))}),e.qZA()}if(2&r){const n=e.oxw(2);e.hYB("src","",n.url,"",n.restaurant.featured,"",e.LSH)}}function Pt(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div",34)(1,"img",35),e.NdJ("error",function(i){e.CHM(n);const o=e.oxw(2);return e.KtG(o.onLogoError(i))}),e.qZA()()}if(2&r){const n=e.oxw(2);e.xp6(1),e.s9C("src",n.restaurant.logo,e.LSH)}}const Tt=function(r){return{height:"150px","margin-top":r}};function Ot(r,s){if(1&r&&(e.TgZ(0,"ion-row",27)(1,"ion-col",28),e.YNc(2,Mt,1,0,"img",29),e.YNc(3,Ct,1,1,"img",30),e.YNc(4,wt,1,2,"img",30),e.YNc(5,Pt,2,1,"div",31),e.qZA()()),2&r){const n=e.oxw();e.Q6J("ngStyle",e.VKq(5,Tt,n.singleEmbededLink?"0":"11px")),e.xp6(2),e.Q6J("ngIf",n.restaurant.entityName&&!n.restaurant.featured),e.xp6(1),e.Q6J("ngIf",n.restaurant.featured&&n.isImageRemote(n.restaurant.featured)),e.xp6(1),e.Q6J("ngIf",n.restaurant.featured&&!n.isImageRemote(n.restaurant.featured)),e.xp6(1),e.Q6J("ngIf",n.restaurant.logo&&n.isImageRemote(n.restaurant.logo))}}function yt(r,s){1&r&&e._UZ(0,"img",45)}function At(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"img",46),e.NdJ("error",function(i){e.CHM(n);const o=e.oxw(2);return e.KtG(o.onImageError(i))}),e.qZA()}if(2&r){const n=e.oxw(2);e.s9C("src",n.restaurant.featured,e.LSH)}}function bt(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"img",46),e.NdJ("error",function(i){e.CHM(n);const o=e.oxw(2);return e.KtG(o.onImageError(i))}),e.qZA()}if(2&r){const n=e.oxw(2);e.hYB("src","",n.url,"",n.restaurant.featured,"",e.LSH)}}function Et(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"ion-button",59),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.navigateBack())}
1),e._UZ(1,"ion-icon",60),e.qZA()}}function St(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div",61)(1,"div",62)(2,"img",63),e.NdJ("error",function(i){e.CHM(n);const o=e.oxw(3);return e.KtG(o.onLogoError(i))}),e.qZA()()()}if(2&r){const n=e.oxw(3);e.xp6(2),e.s9C("src",n.restaurant.logo,e.LSH)}}function Rt(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"span",64),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.showRestoAvailabilityMsg(!i.displayRestoAvailabilityMsg))}),e._UZ(1,"ion-icon",65),e.qZA()}}function kt(r,s){if(1&r&&e._UZ(0,"p",74),2&r){const n=e.oxw(4);e.Q6J("innerHTML",n.restaurant.hoursOverrideMessage,e.oJD)}}function Dt(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div",66)(1,"div",67)(2,"div",68)(3,"div",69)(4,"ion-row")(5,"ion-col",70)(6,"div",71)(7,"ion-icon",72),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.showRestoAvailabilityMsg(!1))}),e.qZA()()()(),e.YNc(8,kt,1,1,"p",73),e.qZA()()()()}if(2&r){const n=e.oxw(3);e.xp6(8),e.Q6J("ngIf",n.restaurant.hoursOverrideMessage)}}function Zt(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"span",75),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.showBoxMessage(!i.showOuterMessageBox))}
1),e._UZ(1,"ion-icon",76),e.qZA()}}function Lt(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div"),e._uU(1),e.TgZ(2,"a",80),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(5);return e.KtG(i.showHideMessage(!1))}),e._uU(3,"see more"),e.qZA()()}if(2&r){const n=e.oxw(5);e.xp6(1),e.hij(" ",n.restaurant.message.substring(0,100),"... ")}}function Nt(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div"),e._uU(1),e.TgZ(2,"a",80),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(5);return e.KtG(i.showHideMessage(!0))}),e._uU(3,"see less"),e.qZA()()}if(2&r){const n=e.oxw(5);e.xp6(1),e.hij(" ",n.restaurant.message," ")}}function Yt(r,s){if(1&r&&(e.TgZ(0,"div",79),e.YNc(1,Lt,4,1,"div",12),e.YNc(2,Nt,4,1,"div",12),e.qZA()),2&r){const n=e.oxw(4);e.xp6(1),e.Q6J("ngIf",n.showMoreMessage),e.xp6(1),e.Q6J("ngIf",n.showLessMessage)}}function Ft(r,s){if(1&r&&(e.TgZ(0,"p",79),e._uU(1),e.qZA()),2&r){const n=e.oxw(4);e.xp6(1),e.hij(" ",n.restaurant.message," ")}}function Ut(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div",77)(1,"div",67)(2,"div",68)(3,"div",69)(4,"ion-row")(5,"ion-col",70)(6,"div",71)(7,"ion-icon",72),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.showBoxMessage(!1))}),e.qZA()()()(),e.YNc(8,Yt,3,2,"div",78),e.YNc(9,Ft,2,1,"p",78),e.qZA()()()()}if(2&r){const n=e.oxw(3);e.xp6(8),e.Q6J("ngIf",n.restaurant.message&&n.restaurant.message.length>100),e.xp6(1),e.Q6J("ngIf",n.restaurant.message&&100>n.restaurant.message.length)}}function Ht(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div",47)(1,"div",48),e.YNc(2,Et,2,0,"ion-button",49),e.qZA(),e.YNc(3,St,3,1,"div",50),e.TgZ(4,"div",51)(5,"h4",52),e._uU(6),e.qZA(),e.TgZ(7,"span",53),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.openRestInfoModal())}),e._UZ(8,"ion-icon",54),e.qZA()(),e.YNc(9,Rt,2,0,"span",55),e.YNc(10,Dt,9,1,"div",56),e.YNc(11,Zt,2,0,"span",57),e.YNc(12,Ut,10,2,"div",58),e.qZA()}if(2&r){const n=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!n.singleEmbededLink),e.xp6(1),e.Q6J("ngIf",n.restaurant.logo&&n.isImageRemote(n.restaurant.logo)),e.xp6(3),e.Oqu(n.restaurant.entityName),e.xp6(3),e.Q6J("ngIf",n.showRestoAvailabilityIcon&&n.hoursOverrideMessage&&""!==n.hoursOverrideMessage),e.xp6(1),e.Q6J("ngIf",n.showRestoAvailabilityPopup&&n.displayRestoAvailabilityMsg&&n.hoursOverrideMessage&&""!==n.hoursOverrideMessage),e.xp6(1),e.Q6J("ngIf",n.showQuestionMarkIcon&&n.restaurant.message&&""!=n.restaurant.message),e.xp6(1),e.Q6J("ngIf",n.showOuterMessageBox&&n.restaurant.message&&""!=n.restaurant.message)}}function Jt(r,s){if(1&r&&(e.TgZ(0,"span",87),e._uU(1),e.qZA()),2&r){const n=e.oxw(3);e.xp6(1),e.hij(" ",n.cuisines," ")}}function Vt(r,s){if(1&r&&(e.TgZ(0,"span",88),e._uU(1),e.TgZ(2,"span",89),e._uU(3,"See More"),e.qZA()()),2&r){const n=e.oxw(3);e.xp6(1),e.hij(" ",n.getTruncatedCusines(n.cuisines)," ")}}function Qt(r,s){if(1&r&&(e.TgZ(0,"ion-content",90),e._uU(1),e.qZA()),2&r){const n=e.oxw(3);e.xp6(1),e.Oqu(n.cuisines)}}function zt(r,s){if(1&r&&(e.TgZ(0,"span",93),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r){const n=e.oxw(4);e.xp6(1),e.AsE(" $ ",n.infoRestaurant.MINORDER," ",e.lcZ(2,2,"min")," ")}}function Gt(r,s){1&r&&(e.TgZ(0,"span",94),e._uU(1," \u2022 "),e.qZA())}function qt(r,s){if(1&r&&(e.TgZ(0,"span"),e._UZ(1,"ion-icon",95),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&r){const n=e.oxw(4);e.xp6(2),e.AsE(" ",n.estWaitNdBuffer(n.infoRestaurant)," ",e.lcZ(3,2,"mins")," ")}}function Bt(r,s){if(1&r&&(e.TgZ(0,"span"),e._UZ(1,"ion-icon",96),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&r){const n=e.oxw(4);e.xp6(2),e.AsE("\xa0\xa0 ",n.restaurant.takeOutTime," ",e.lcZ(3,2,"mins")," ")}}function Kt(r,s){1&r&&(e.TgZ(0,"span",94),e._uU(1," \u2022 "),e.qZA())}function jt(r,s){if(1&r&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&r){const n=e.oxw(4);e.xp6(1),e.hij(" ",n.concatDollar(n.infoRestaurant.FEE)," Del. Fee ")}}function Wt(r,s){if(1&r&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&r){const n=e.oxw(4);e.xp6(1),e.AsE(" ",e.xi3(2,2,n.infoRestaurant.DISTANCE,"1.1-1")," ",n.vendorService.GLUE_DISTANCE_UNIT," ")}}function Xt(r,s){if(1&r&&(e.TgZ(0,"div"),e.YNc(1,zt,3,4,"span",91),e.YNc(2,Gt,2,0,"span",92),e.YNc(3,qt,4,4,"span",12),e.YNc(4,Bt,4,4,"span",12),e.YNc(5,Kt,2,0,"span",92),e.YNc(6,jt,2,1,"span",12),e.YNc(7,Wt,3,5,"span",12),e.qZA()),2&r){const n=e.oxw(3);e.xp6(1),e.Q6J("ngIf",n.infoRestaurant.MINORDER&&""!=n.infoRestaurant.MINORDER&&("DELIVERY"===n.order.TYPE||"TAKEOUT"===n.order.TYPE&&"Y"!==n.vendorService.DISABLE_TAKEOUT_MIN_ORDER)),e.xp6(1),e.Q6J("ngIf",n.infoRestaurant.ESTWAIT&&n.infoRestaurant.MINORDER&&("DELIVERY"===n.order.TYPE||"TAKEOUT"===n.order.TYPE&&"Y"!==n.vendorService.DISABLE_TAKEOUT_MIN_ORDER)),e.xp6(1),e.Q6J("ngIf",n.infoRestaurant.ESTWAIT&&""!=n.infoRestaurant.ESTWAIT&&"DELIVERY"==n.order.TYPE),e.xp6(1),e.Q6J("ngIf",n.infoRestaurant.ESTWAIT&&""!=n.infoRestaurant.ESTWAIT&&"TAKEOUT"==n.order.TYPE),e.xp6(1),e.Q6J("ngIf",("DELIVERY"==n.order.TYPE||"TAKEOUT"==n.order.TYPE)&&(n.infoRestaurant.MINORDER||n.infoRestaurant.ESTWAIT)),e.xp6(1),e.Q6J("ngIf",n.infoRestaurant.FEE&&"config.currency_symbol0.00"!=n.infoRestaurant.FEE&&"DELIVERY"==n.order.TYPE),e.xp6(1),e.Q6J("ngIf","TAKEOUT"==n.order.TYPE)}}function $t(r,s){if(1&r&&(e.TgZ(0,"div",81)(1,"div",82),e.YNc(2,Jt,2,1,"span",83),e.YNc(3,Vt,4,1,"span",84),e.TgZ(4,"ion-popover",85),e.YNc(5,Qt,2,1,"ng-template"),e.qZA(),e.YNc(6,Xt,8,7,"div",12),e.qZA(),e.TgZ(7,"h5",86),e._uU(8),e.qZA()()),2&r){const n=e.oxw(2);e.xp6(2),e.Q6J("ngIf",n.cuisines.split(",").length<=7),e.xp6(1),e.Q6J("ngIf",n.cuisines.split(",").length>7),e.xp6(3),e.Q6J("ngIf",n.infoRestaurant),e.xp6(2),e.HOy(" ",n.entityAddress.address,", ",n.entityAddress.city,", ",n.entityAddress.state," ",n.entityAddress.zip," ")}}const en=function(r){return{heightWithInfo:r}};function tn(r,s){if(1&r&&(e.TgZ(0,"ion-row",36)(1,"ion-col",28,37),e.YNc(3,yt,1,0,"img",38),e.YNc(4,At,1,1,"img",39),e.YNc(5,bt,1,2,"img",40),e.TgZ(6,"div",41),e.YNc(7,Ht,13,7,"div",42),e.YNc(8,$t,9,7,"div",43),e.qZA(),e._UZ(9,"div",44),e.qZA()()),2&r){const n=e.oxw();e.Q6J("ngClass",e.VKq(6,en,n.infoRestaurant)),e.xp6(3),e.Q6J("ngIf",n.restaurant.entityName&&!n.restaurant.featured),e.xp6(1),e.Q6J("ngIf",n.restaurant.featured&&n.isImageRemote(n.restaurant.featured)),e.xp6(1),e.Q6J("ngIf",n.restaurant.featured&&!n.isImageRemote(n.restaurant.featured)),e.xp6(2),e.Q6J("ngIf",n.hideSkeleton),e.xp6(1),e.Q6J("ngIf",n.hideSkeleton)}}function nn(r,s){1&r&&(e.TgZ(0,"ion-list",90)(1,"ion-list-header",97),e._UZ(2,"ion-skeleton-text",98),e.qZA(),e.TgZ(3,"ion-list-header",97),e._UZ(4,"ion-skeleton-text",99),e.qZA(),e.TgZ(5,"ion-list-header",97),e._UZ(6,"ion-skeleton-text",99),e.qZA()())}function rn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"ion-button",59),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.navigateBack())}
1),e._UZ(1,"ion-icon",60),e.qZA()}}function on(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div"),e._uU(1),e.TgZ(2,"a",80),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(5);return e.KtG(i.showHideMessage(!1))}),e._uU(3,"see more"),e.qZA()()}if(2&r){const n=e.oxw(5);e.xp6(1),e.hij(" ",n.restaurant.message.substring(0,100),"... ")}}function an(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div"),e._uU(1),e.TgZ(2,"a",80),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(5);return e.KtG(i.showHideMessage(!0))}),e._uU(3,"see less"),e.qZA()()}if(2&r){const n=e.oxw(5);e.xp6(1),e.hij(" ",n.restaurant.message," ")}}function sn(r,s){if(1&r&&(e.TgZ(0,"div",79),e.YNc(1,on,4,1,"div",12),e.YNc(2,an,4,1,"div",12),e.qZA()),2&r){const n=e.oxw(4);e.xp6(1),e.Q6J("ngIf",n.showMoreMessage),e.xp6(1),e.Q6J("ngIf",n.showLessMessage)}}function ln(r,s){if(1&r&&(e.TgZ(0,"p",79),e._uU(1),e.qZA()),2&r){const n=e.oxw(4);e.xp6(1),e.hij(" ",n.restaurant.message," ")}}function dn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"ion-col",113)(1,"div",114)(2,"div",115)(3,"div",69)(4,"ion-row")(5,"ion-col",70)(6,"div",71)(7,"ion-icon",72),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.showBoxMessage(!1))}),e.qZA()()()(),e.YNc(8,sn,3,2,"div",78),e.YNc(9,ln,2,1,"p",78),e.qZA()()()()}if(2&r){const n=e.oxw(3);e.xp6(8),e.Q6J("ngIf",n.restaurant.message&&n.restaurant.message.length>100),e.xp6(1),e.Q6J("ngIf",n.restaurant.message&&100>n.restaurant.message.length)}}function cn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div",104)(1,"ion-row",105)(2,"ion-col",106)(3,"div",107),e.YNc(4,rn,2,0,"ion-button",49),e.TgZ(5,"h4",108),e._uU(6),e.qZA(),e.TgZ(7,"span",53),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.openRestInfoModal())}),e._UZ(8,"ion-icon",54),e.qZA()()(),e.TgZ(9,"ion-col",109)(10,"app-location-header",110,111),e.NdJ("onLocationHeaderClick",function(i){e.CHM(n);const o=e.oxw(2);return e.KtG(o.onLocationHeaderClick(i))}),e.qZA()(),e.YNc(12,dn,10,2,"ion-col",112),e.qZA()()}if(2&r){const n=e.oxw(2);e.xp6(4),e.Q6J("ngIf",!n.singleEmbededLink),e.xp6(2),e.Oqu(n.restaurant.entityName),e.xp6(4),e.Q6J("isRestaurantScreen",!0)("shareableLink",n.shareableLink)("isOrderAvailable",n.isOrderAvailable)("orderType",n.orderType)("orderAddress",n.orderAddressForLocationHeader)("orderTime",n.orderTime),e.xp6(2),e.Q6J("ngIf",n.showOuterMessageBox&&n.restaurant.message&&!n.isMobileView&&""!=n.restaurant.message)}}function un(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"ion-button",59),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.navigateBack())}
1),e._UZ(1,"ion-icon",60),e.qZA()}}function pn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"span",53),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.showRestoAvailabilityMsg(!i.displayRestoAvailabilityMsg))}),e._UZ(1,"ion-icon",126),e.qZA()}}function gn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"span",53),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.showBoxMessage(!i.showOuterMessageBox))}),e._UZ(1,"ion-icon",127),e.qZA()}}function mn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div"),e._uU(1),e.TgZ(2,"a",80),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(5);return e.KtG(i.showHideMessage(!1))}),e._uU(3,"see more"),e.qZA()()}if(2&r){const n=e.oxw(5);e.xp6(1),e.hij(" ",n.restaurant.message.substring(0,100),"... ")}}function _n(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div"),e._uU(1),e.TgZ(2,"a",80),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(5);return e.KtG(i.showHideMessage(!0))}),e._uU(3,"see less"),e.qZA()()}if(2&r){const n=e.oxw(5);e.xp6(1),e.hij(" ",n.restaurant.message," ")}}function hn(r,s){if(1&r&&(e.TgZ(0,"div",79),e.YNc(1,mn,4,1,"div",12),e.YNc(2,_n,4,1,"div",12),e.qZA()),2&r){const n=e.oxw(4);e.xp6(1),e.Q6J("ngIf",n.showMoreMessage),e.xp6(1),e.Q6J("ngIf",n.showLessMessage)}}function fn(r,s){if(1&r&&(e.TgZ(0,"p",79),e._uU(1),e.qZA()),2&r){const n=e.oxw(4);e.xp6(1),e.hij(" ",n.restaurant.message," ")}}function vn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"ion-col")(1,"div",128)(2,"div",115)(3,"div",69)(4,"ion-row")(5,"ion-col",70)(6,"div",71)(7,"ion-icon",72),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.showBoxMessage(!1))}),e.qZA()()()(),e.YNc(8,hn,3,2,"div",78),e.YNc(9,fn,2,1,"p",78),e.qZA()()()()}if(2&r){const n=e.oxw(3);e.xp6(8),e.Q6J("ngIf",n.restaurant.message.length>100),e.xp6(1),e.Q6J("ngIf",100>n.restaurant.message.length)}}function xn(r,s){if(1&r&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r){const n=e.oxw(3);e.xp6(1),e.AsE("$ ",n.infoRestaurant.MINORDER," ",e.lcZ(2,2,"min"),"")}}function In(r,s){1&r&&(e.TgZ(0,"span",129),e._uU(1," \u2022 "),e.qZA())}function Mn(r,s){if(1&r&&(e.TgZ(0,"span"),e._UZ(1,"ion-icon",95),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&r){const n=e.oxw(3);e.xp6(2),e.AsE(" ",n.estWaitNdBuffer(n.infoRestaurant)," ",e.lcZ(3,2,"mins")," ")}}function Cn(r,s){if(1&r&&(e.TgZ(0,"span"),e._UZ(1,"ion-icon",96),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&r){const n=e.oxw(3);e.xp6(2),e.AsE("\xa0\xa0",n.restaurant.takeOutTime," ",e.lcZ(3,2,"mins")," ")}}function wn(r,s){1&r&&(e.TgZ(0,"span",129),e._uU(1," \u2022 "),e.qZA())}function Pn(r,s){if(1&r&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&r){const n=e.oxw(3);e.xp6(1),e.hij("",n.infoRestaurant.FEE," Del. Fee")}}function Tn(r,s){if(1&r&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&r){const n=e.oxw(3);e.xp6(1),e.AsE("",e.xi3(2,2,n.infoRestaurant.DISTANCE,"1.1-1")," ",n.vendorService.GLUE_DISTANCE_UNIT,"")}}function On(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"app-location-header",130,111),e.NdJ("onLocationHeaderClick",function(i){e.CHM(n);const o=e.oxw(3);return e.KtG(o.onLocationHeaderClick(i))}),e.qZA()}if(2&r){const n=e.oxw(3);e.Q6J("stickyMobile",!0)("removeMargin",0==n.showWebStickyInfo)("shareableLink",n.shareableLink)("isOrderAvailable",n.isOrderAvailable)("orderType",n.orderType)("orderAddress",n.orderAddressForLocationHeader)("orderTime",n.orderTime)}}function yn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"ion-col",131)(1,"div",132)(2,"span",133),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.clearAndCloseSearchModal())}),e._uU(3),e.ALo(4,"translate"),e.qZA()()()}2&r&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"clearFilters")," "))}function An(r,s){if(1&r&&e._UZ(0,"p",74),2&r){const n=e.oxw(4);e.Q6J("innerHTML",n.restaurant.hoursOverrideMessage,e.oJD)}}function bn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"ion-col",134)(1,"div",135)(2,"div",136)(3,"div",69)(4,"ion-row")(5,"ion-col",70)(6,"div",71)(7,"ion-icon",72),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.showRestoAvailabilityMsg(!1))}),e.qZA()()()(),e.YNc(8,An,1,1,"p",73),e.qZA()()()()}if(2&r){const n=e.oxw(3);e.xp6(8),e.Q6J("ngIf",n.restaurant.hoursOverrideMessage)}}function En(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div"),e._uU(1),e.TgZ(2,"a",141),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(5);
1return e.KtG(i.showHideMessage(!1))}),e._uU(3,"see more"),e.qZA()()}if(2&r){const n=e.oxw(5);e.xp6(1),e.hij(" ",n.restaurant.message.substring(0,100),"... ")}}function Sn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div"),e._uU(1),e.TgZ(2,"a",141),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(5);return e.KtG(i.showHideMessage(!0))}),e._uU(3,"see less"),e.qZA()()}if(2&r){const n=e.oxw(5);e.xp6(1),e.hij(" ",n.restaurant.message," ")}}function Rn(r,s){if(1&r&&(e.TgZ(0,"div",140),e.YNc(1,En,4,1,"div",12),e.YNc(2,Sn,4,1,"div",12),e.qZA()),2&r){const n=e.oxw(4);e.xp6(1),e.Q6J("ngIf",n.showMoreMessage),e.xp6(1),e.Q6J("ngIf",n.showLessMessage)}}function kn(r,s){if(1&r&&(e.TgZ(0,"div",142),e._uU(1),e.qZA()),2&r){const n=e.oxw(4);e.xp6(1),e.hij(" ",n.restaurant.message," ")}}function Dn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"ion-col",134)(1,"div",135)(2,"div",136)(3,"ion-row")(4,"ion-col",70)(5,"div",71)(6,"ion-icon",137),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(3);return e.KtG(i.showBoxMessage(!1))}),e.qZA()()()(),e.YNc(7,Rn,3,2,"div",138),e.YNc(8,kn,2,1,"div",139),e.qZA()()()}if(2&r){const n=e.oxw(3);e.xp6(7),e.Q6J("ngIf",n.restaurant.message.length>100),e.xp6(1),e.Q6J("ngIf",100>n.restaurant.message.length)}}const Zn=function(r){return{collapsed:r}};function Ln(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"ion-row",116)(1,"ion-col",117)(2,"div",107),e.YNc(3,un,2,0,"ion-button",49),e.TgZ(4,"h4",108),e._uU(5),e.qZA(),e.TgZ(6,"span",53),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.openRestInfoModal())}),e._UZ(7,"ion-icon",54),e.qZA(),e.YNc(8,pn,2,0,"span",118),e.YNc(9,gn,2,0,"span",118),e.YNc(10,vn,10,2,"ion-col",12),e.qZA(),e.TgZ(11,"div",119)(12,"div",120)(13,"span",88),e._uU(14),e.qZA(),e.YNc(15,xn,3,4,"span",12),e.YNc(16,In,2,0,"span",121),e.YNc(17,Mn,4,4,"span",12),e.YNc(18,Cn,4,4,"span",12),e.YNc(19,wn,2,0,"span",121),e.YNc(20,Pn,2,1,"span",12),e.YNc(21,Tn,3,5,"span",12),e.qZA(),e.TgZ(22,"h5",122),e._uU(23),e.qZA()()(),e.YNc(24,On,2,7,"app-location-header",123),e.YNc(25,yn,5,3,"ion-col",124),e.YNc(26,bn,9,1,"ion-col",125),e.YNc(27,Dn,9,2,"ion-col",125),e.qZA()}if(2&r){const n=e.oxw(2);e.xp6(3),e.Q6J("ngIf",!n.singleEmbededLink),e.xp6(2),e.Oqu(n.restaurant.entityName),e.xp6(3),e.Q6J("ngIf",n.showRestoAvailabilityIcon&&n.hoursOverrideMessage&&""!==n.hoursOverrideMessage),e.xp6(1),e.Q6J("ngIf",n.showQuestionMarkIcon&&""!=n.restaurant.message),e.xp6(1),e.Q6J("ngIf",n.showOuterMessageBox&&n.restaurant.message&&!n.isMobileView&&""!=n.restaurant.message),e.xp6(1),e.Q6J("ngClass",e.VKq(22,Zn,n.currentScrollPosition>200)),e.xp6(3),e.hij(" ",n.cuisines," "),e.xp6(1),e.Q6J("ngIf",n.infoRestaurant.MINORDER&&""!=n.infoRestaurant.MINORDER&&("DELIVERY"===n.order.TYPE||"TAKEOUT"===n.order.TYPE&&"Y"!==n.vendorService.DISABLE_TAKEOUT_MIN_ORDER)),e.xp6(1),e.Q6J("ngIf",n.infoRestaurant.ESTWAIT&&n.infoRestaurant.MINORDER&&("DELIVERY"===n.order.TYPE||"TAKEOUT"===n.order.TYPE&&"Y"!==n.vendorService.DISABLE_TAKEOUT_MIN_ORDER)),e.xp6(1),e.Q6J("ngIf",n.infoRestaurant.ESTWAIT&&""!=n.infoRestaurant.ESTWAIT&&"DELIVERY"==n.order.TYPE),e.xp6(1),e.Q6J("ngIf",n.infoRestaurant.ESTWAIT&&""!=n.infoRestaurant.ESTWAIT&&"TAKEOUT"==n.order.TYPE),e.xp6(1),e.Q6J("ngIf",("DELIVERY"==n.order.TYPE||"TAKEOUT"==n.order.TYPE)&&(n.infoRestaurant.MINORDER||n.infoRestaurant.ESTWAIT)),e.xp6(1),e.Q6J("ngIf",n.infoRestaurant.FEE&&"config.currency_symbol0.00"!=n.infoRestaurant.FEE&&"DELIVERY"==n.order.TYPE),e.xp6(1),e.Q6J("ngIf","TAKEOUT"==n.order.TYPE),e.xp6(2),e.HOy(" ",n.entityAddress.address,", ",n.entityAddress.city,", ",n.entityAddress.state," ",n.entityAddress.zip," "),e.xp6(1),e.Q6J("ngIf",n.isMobileView&&!n.showOuterMessageBox||""==n.restaurant.message),e.xp6(1),e.Q6J("ngIf",n.isMobileView&&(n.totalFilterCount>0||n.searchBarValue)),e.xp6(1),e.Q6J("ngIf",n.showRestoAvailabilityPopup&&n.displayRestoAvailabilityMsg&&n.hoursOverrideMessage&&""!==n.hoursOverrideMessage),e.xp6(1),e.Q6J("ngIf",n.showOuterMessageBox&&n.restaurant.message&&n.isMobileView&&""!=n.restaurant.message)}}function Nn(r,s){if(1&r&&(e.TgZ(0,"div",100,101),e.YNc(2,cn,13,9,"div",102),e.YNc(3,Ln,28,24,"ion-row",103),e.qZA()),2&r){const n=e.oxw();e.xp6(2),e.Q6J("ngIf",n.showWebStickyInfo&&!n.isMobileView),e.xp6(1),e.Q6J("ngIf",n.isMobileView)}}function Yn(r,s){1&r&&(e.TgZ(0,"ion-row")(1,"ion-col",147),e._UZ(2,"ion-skeleton-text",148),e.qZA()())}const Fn=function(){return[0,1,2,4,5,6,7,8,9,10,11,12,13,14,15]};
1function Un(r,s){1&r&&(e.TgZ(0,"ion-grid",143),e._UZ(1,"ion-skeleton-text",144)(2,"ion-skeleton-text",145),e.YNc(3,Yn,3,0,"ion-row",146),e.qZA()),2&r&&(e.xp6(3),e.Q6J("ngForOf",e.DdM(1,Fn)))}function Hn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div")(1,"app-filter-content",149),e.NdJ("onFiltered",function(i){e.CHM(n);const o=e.oxw();return e.KtG(o.onListFiltered(i))})("onOptionScroll",function(i){e.CHM(n);const o=e.oxw();return e.KtG(o.onOptionScroll(i))})("onClearAll",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.clearAndCloseSearchModal())})("onItemClicked",function(i){e.CHM(n);const o=e.oxw();return e.KtG(o.handlerItemClicked(i))})("onFilteredMenuItems",function(i){e.CHM(n);const o=e.oxw();return e.KtG(o.displayDietryFilter(i))}),e.qZA()()}if(2&r){const n=e.oxw();e.xp6(1),e.Q6J("isMenuPage",!0)("textPlaceholder","items")("restaurants",n.allItemSections)("isRestaurantItems",!0)("orderType",n.type)("usesSort",!1)}}function Jn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div",153),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.toggleFilterModal(!1))}
1),e._UZ(1,"ion-icon",154),e.qZA()}}function Vn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"app-location-header",155,111),e.NdJ("onLocationHeaderClick",function(i){e.CHM(n);const o=e.oxw(2);return e.KtG(o.onLocationHeaderClick(i))}),e.qZA()}if(2&r){const n=e.oxw(2);e.Q6J("shareableLink",n.shareableLink)("isOrderAvailable",n.isOrderAvailable)("orderType",n.orderType)("orderAddress",n.orderAddressForLocationHeader)("orderTime",n.orderTime)("menuIpadClass",!0)}}const te=function(r,s){return{sidebar:r,"hide-modal":s}};function Qn(r,s){if(1&r&&(e.TgZ(0,"div",150)(1,"div",16),e.YNc(2,Jn,2,0,"div",17),e.qZA(),e.TgZ(3,"div",151),e.YNc(4,Vn,2,6,"app-location-header",152),e.qZA()()),2&r){const n=e.oxw();e.xp6(1),e.Q6J("ngClass",e.WLB(3,te,!n.isMobileView,n.isMobileView)),e.xp6(1),e.Q6J("ngIf",n.isMobileView),e.xp6(2),e.Q6J("ngIf",!n.isMobileView)}}function zn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div",153),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.toggleFilterModal(!1))}),e._UZ(1,"ion-icon",154),e.qZA()}}function Gn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div",15)(1,"div",16),e.YNc(2,zn,2,0,"div",17),e.qZA(),e.TgZ(3,"div",156)(4,"div",157),e._UZ(5,"ion-icon",158),e.TgZ(6,"h1",159),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"p",160),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"ion-button",161),e.NdJ("click",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.clearAndCloseSearchModal())}),e._UZ(13,"ion-icon",162),e._uU(14),e.ALo(15,"translate"),e.qZA()()()()}if(2&r){const n=e.oxw();e.xp6(1),e.Q6J("ngClass",e.WLB(11,te,!n.isMobileView,n.isMobileView)),e.xp6(1),e.Q6J("ngIf",n.isMobileView),e.xp6(5),e.hij(" ",e.lcZ(8,5,"noResultsFound")," "),e.xp6(3),e.hij(" ",e.lcZ(11,7,"noItemsMatchFilters")," "),e.xp6(4),e.hij(" ",e.lcZ(15,9,"clearFilters")," ")}}function qn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div",153),e.NdJ("click",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.toggleFilterModal(!1))}
1),e._UZ(1,"ion-icon",154),e.qZA()}}function Bn(r,s){if(1&r&&(e.TgZ(0,"div",15)(1,"div",16),e.YNc(2,qn,2,0,"div",17),e.qZA(),e.TgZ(3,"div",163)(4,"h1",164),e._uU(5),e.ALo(6,"translate"),e.qZA()()()),2&r){const n=e.oxw();e.xp6(1),e.Q6J("ngClass",e.WLB(5,te,!n.isMobileView,n.isMobileView)),e.xp6(1),e.Q6J("ngIf",n.isMobileView),e.xp6(3),e.hij(" ",e.lcZ(6,3,"noItemsFound")," ")}}function Kn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div",153),e.NdJ("click",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.toggleFilterModal(!1))}),e._UZ(1,"ion-icon",154),e.qZA()}}function jn(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div",165)(1,"p",166),e._uU(2," Oops! No items were available at your selected date and time. Please select a different time to see the available items: "),e.TgZ(3,"a",167),e.NdJ("click",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.addressModal(null,i.restaurant.entityId))}),e._uU(4," Change Time. "),e.qZA()()()}}function Wn(r,s){if(1&r&&(e.TgZ(0,"ion-row",171),e._UZ(1,"app-deal-card",172),e.qZA()),2&r){const n=e.oxw(2);e.xp6(1),e.Q6J("deals",n.deals)("item",n.item)("restaurantClosed",n.restaurantClosed)("viewItem",n.viewItem)("last",n.last)("onImageLoadFunc",n.onImageLoadFunc)("isImageRemote",n.isImageRemote)("onLogoError",n.onLogoError)("shouldDisplayDescription",n.shouldDisplayDescription)("addToCart",n.addToCart)("removeFromCart",n.removeFromCart)("restaurant",n.restaurant)("presentItemModal",n.presentItemModal)("addressModal",n.addressModal)("addressMakerFromEntity",n.addressMakerFromEntity)("order",n.order)("displaySpecialInstructions",n.displaySpecialInstructions)("specialInstructionsLength",n.specialInstructionsLength)}}function Xn(r,s){1&r&&e._UZ(0,"ion-icon",183)}function $n(r,s){1&r&&e._UZ(0,"ion-icon",184)}const ei=function(r,s,n){return{"section-active":r,section:s,master_header:n}},ti=function(r){return{master_headings:r}};function ni(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"ion-list-header",177)(1,"div",178),e.NdJ("click",function(){e.CHM(n);const i=e.oxw().index,o=e.oxw(2);return e.KtG(o.toggleSection(i))}),e.TgZ(2,"div",179),e._UZ(3,"div",180),e.qZA(),e.YNc(4,Xn,1,0,"ion-icon",181),e.YNc(5,$n,1,0,"ion-icon",182),e.qZA()()}if(2&r){const n=e.oxw().$implicit;e.Q6J("id",n.menuHeadingId),e.xp6(1),e.Q6J("ngClass",e.kEZ(6,ei,n.open,!n.open,"Y"==n.master_header)),e.xp6(1),e.Q6J("ngClass",e.VKq(10,ti,"Y"==n.master_header)),e.xp6(1),e.Q6J("innerHTML",n.menuHeadingName,e.oJD),e.xp6(1),e.Q6J("ngIf",!n.open),e.xp6(1),e.Q6J("ngIf",n.open)}}function ii(r,s){if(1&r&&(e.TgZ(0,"div"),e._UZ(1,"div",186),e.qZA()),2&r){const n=e.oxw(2).$implicit;e.xp6(1),e.Q6J("innerHTML",n.menuHeadingDescription,e.oJD)}}function ri(r,s){if(1&r&&(e.TgZ(0,"div",185),e.YNc(1,ii,2,1,"div",12),e.qZA()),2&r){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",n.menuHeadingDescription)}}function oi(r,s){if(1&r&&e._UZ(0,"app-menu-card",192),2&r){const n=e.oxw(),t=n.$implicit,i=n.last,o=e.oxw(5);e.Q6J("item",t)("restaurantClosed",o.restaurantClosed)("viewItem",o.viewItem)("last",i)("onImageLoadFunc",o.onImageLoadFunc)("isImageRemote",o.isImageRemote)("onLogoError",o.onLogoError)("shouldDisplayDescription",o.shouldDisplayDescription)("addToCart",o.addToCart)("removeFromCart",o.removeFromCart)("restaurant",o.restaurant)("presentItemModal",o.presentItemModal)("addressModal",o.addressModal)("addressMakerFromEntity",o.addressMakerFromEntity)("order",o.order)("displaySpecialInstructions",o.displaySpecialInstructions)("specialInstructionsLength",o.specialInstructionsLength)}}function ai(r,s){if(1&r&&e._UZ(0,"app-menu-card",192),2&r){const n=e.oxw(),t=n.$implicit,i=n.last,o=e.oxw(5);e.Q6J("item",t)("restaurantClosed",o.restaurantClosed)("viewItem",o.viewItem)("last",i)("onImageLoadFunc",o.onImageLoadFunc)("isImageRemote",o.isImageRemote)("onLogoError",o.onLogoError)("shouldDisplayDescription",o.shouldDisplayDescription)("addToCart",o.addToCart)("removeFromCart",o.removeFromCart)("restaurant",o.restaurant)("presentItemModal",o.presentItemModal)("addressModal",o.addressModal)("addressMakerFromEntity",o.addressMakerFromEntity)("order",o.order)("displaySpecialInstructions",o.displaySpecialInstructions)("specialInstructionsLength",o.specialInstructionsLength)}}const Ie=function(r){return{"padding-0":r}};function si(r,s){if(1&r&&(e.TgZ(0,"ion-col",190),e.YNc(1,oi,1,17,"app-menu-card",191),e.YNc(2,ai,1,17,"app-menu-card",191),e.qZA()),2&r){const n=s.$implicit,t=e.oxw(5);e.Q6J("ngClass",e.VKq(4,Ie,1==t.restAPI.numOfColumns))("size",12/t.restAPI.numOfColumns),e.xp6(1),e.Q6J("ngIf",n.menuItemId&&!t.restaurantClosed),e.xp6(1),e.Q6J("ngIf",n.menuItemId&&t.restaurantClosed)}}const li=function(r,s,n){return{"item-list-active":r,"item-list-hidden":s,master_header_list:n}};
1function di(r,s){if(1&r&&(e.TgZ(0,"ion-list",16)(1,"ion-grid",188)(2,"ion-row",188),e.YNc(3,si,3,6,"ion-col",189),e.qZA()()()),2&r){const n=e.oxw(2).$implicit;e.Q6J("ngClass",e.kEZ(2,li,n.fadeIn,!n.fadeIn,"Y"==n.master_header)),e.xp6(3),e.Q6J("ngForOf",n.menuItems)}}function ci(r,s){if(1&r&&(e.TgZ(0,"div",187),e.YNc(1,di,4,6,"ion-list",1),e.qZA()),2&r){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",n.menuHeadingId&&n.open)}}function ui(r,s){if(1&r&&(e.TgZ(0,"ion-row",173),e.YNc(1,ni,6,12,"ion-list-header",174),e.YNc(2,ri,2,1,"div",175),e.YNc(3,ci,2,1,"div",176),e.qZA()),2&r){const n=s.$implicit,t=e.oxw(2);e.Q6J("id",n.menuHeadingId+"_CONTAINER"),e.xp6(1),e.Q6J("ngIf",!n.hide),e.xp6(1),e.Q6J("ngIf",""!=n.menuHeadingDescription&&!n.hide&&null!=n.menuHeadingDescription&&n.open),e.xp6(1),e.Q6J("ngIf",!n.largeMenu||t.xlMenu&&n.open)}}function pi(r,s){if(1&r&&(e.TgZ(0,"div",168),e.YNc(1,Wn,2,18,"ion-row",169),e.YNc(2,ui,4,4,"ion-row",170),e.qZA()),2&r){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",(null==n.deals?null:n.deals.length)>0&&(null==n.menuSections?null:n.menuSections.length)>0),e.xp6(1),e.Q6J("ngForOf",n.menuSections)}}function gi(r,s){if(1&r&&e._UZ(0,"app-menu-card",192),2&r){const n=e.oxw(),t=n.$implicit,i=n.last,o=e.oxw(2);e.Q6J("item",t)("restaurantClosed",o.restaurantClosed)("viewItem",o.viewItem)("last",i)("onImageLoadFunc",o.onImageLoadFunc)("isImageRemote",o.isImageRemote)("onLogoError",o.onLogoError)("shouldDisplayDescription",o.shouldDisplayDescription)("addToCart",o.addToCart)("removeFromCart",o.removeFromCart)("restaurant",o.restaurant)("presentItemModal",o.presentItemModal)("addressModal",o.addressModal)("addressMakerFromEntity",o.addressMakerFromEntity)("order",o.order)("displaySpecialInstructions",o.displaySpecialInstructions)("specialInstructionsLength",o.specialInstructionsLength)}}function mi(r,s){if(1&r&&e._UZ(0,"app-menu-card",192),2&r){const n=e.oxw(),t=n.$implicit,i=n.last,o=e.oxw(2);e.Q6J("item",t)("restaurantClosed",o.restaurantClosed)("viewItem",o.viewItem)("last",i)("onImageLoadFunc",o.onImageLoadFunc)("isImageRemote",o.isImageRemote)("onLogoError",o.onLogoError)("shouldDisplayDescription",o.shouldDisplayDescription)("addToCart",o.addToCart)("removeFromCart",o.removeFromCart)("restaurant",o.restaurant)("presentItemModal",o.presentItemModal)("addressModal",o.addressModal)("addressMakerFromEntity",o.addressMakerFromEntity)("order",o.order)("displaySpecialInstructions",o.displaySpecialInstructions)("specialInstructionsLength",o.specialInstructionsLength)}}function _i(r,s){if(1&r&&(e.TgZ(0,"ion-col",195),e.YNc(1,gi,1,17,"app-menu-card",191),e.YNc(2,mi,1,17,"app-menu-card",191),e.qZA()),2&r){const n=s.$implicit,t=e.oxw(2);e.Q6J("ngClass",e.VKq(4,Ie,1==t.restAPI.numOfColumns))("size",12/t.restAPI.numOfColumns),e.xp6(1),e.Q6J("ngIf",n.menuItemId&&!t.restaurantClosed),e.xp6(1),e.Q6J("ngIf",n.menuItemId&&t.restaurantClosed)}}function hi(r,s){if(1&r&&(e.TgZ(0,"ion-grid",188)(1,"ion-row",193),e.YNc(2,_i,3,6,"ion-col",194),e.qZA()()),2&r){const n=e.oxw();e.xp6(2),e.Q6J("ngForOf",n.dietryItems)}}function fi(r,s){if(1&r){const n=e.EpF();e.TgZ(0,"div",196)(1,"h3"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"p"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"span",197),e.NdJ("click",function(){e.CHM(n);const i=e.oxw();return e.KtG(i.clearSearch())}),e._uU(8),e.ALo(9,"translate"),e.qZA()()}2&r&&(e.xp6(2),e.Oqu(e.lcZ(3,3,"noMatches")),e.xp6(3),e.Oqu(e.lcZ(6,5,"trySearchAgain")),e.xp6(3),e.Oqu(e.lcZ(9,7,"clearSearch")))}function vi(r,s){if(1&r&&(e.TgZ(0,"ion-col",203),e._UZ(1,"ion-skeleton-text",205),e.qZA()),2&r){const n=e.oxw(3);e.Q6J("size",12/n.numOfColumns)}}const xi=function(){return[0,1,3,4,5,6]};function Ii(r,s){1&r&&(e.TgZ(0,"ion-row")(1,"ion-col",203),e._UZ(2,"ion-skeleton-text",148),e.qZA(),e.YNc(3,vi,2,1,"ion-col",204),e.qZA()),2&r&&(e.xp6(1),e.Q6J("size",12),e.xp6(2),e.Q6J("ngForOf",e.DdM(2,xi)))}const Mi=function(){return[0,1,2]};function Ci(r,s){1&r&&(e.TgZ(0,"ion-grid",198)(1,"ion-row",199)(2,"ion-col",200),e._UZ(3,"ion-skeleton-text",201),e.qZA(),e.TgZ(4,"ion-col",202),e._UZ(5,"ion-skeleton-text",201),e.qZA()(),e.YNc(6,Ii,4,3,"ion-row",146
1),e.qZA()),2&r&&(e.xp6(6),e.Q6J("ngForOf",e.DdM(1,Mi)))}const wi=function(r){return{"padding-top":r}},Pi=function(r,s,n){return{filter:r,sidebar:s,"hide-modal":n}};let Ti=(()=>{var r;class s{constructor(t,i,o,a,l,d,f,C,y,E,b,c,v,w,R,k,m,p,S,U,N,x,_,T,D,I,u,P,O,Z){var J,V,z,h=this;this.route=t,this.restAPI=i,this.orderAPI=o,this.addressAPI=a,this.cartAPI=l,this.router=d,this.location=f,this.statusBar=C,this.modalCtrl=y,this.alertCtrl=E,this.loadingCtrl=b,this.storage=c,this.config=v,this.keyboard=w,this.translate=R,this.footerService=k,this.platform=m,this.device=p,this.changeRef=S,this.screenResize=U,this.userAPI=N,this.sharedService=x,this.titleService=_,this.meta=T,this.vendorService=D,this.gtmService=I,this.document=u,this.toastCtrl=P,this.alertManager=O,this.routerOutlet=Z,this.isOverflow=!1,this.mainXlMenuCheck=!1,this.popularSectionSlideOpts={initialSlide:0,slidesPerView:1.2,speed:400,breakpoints:{320:{slidesPerView:1.2},640:{slidesPerView:2.2},769:{slidesPerView:1.2},1024:{slidesPerView:2.2},1400:{slidesPerView:3.2},1920:{slidesPerView:4.2},2560:{slidesPerView:5.2}}},this.activeDietryFilterArr=[],this.nonActiveDietryFilterArr=[{id:"gluten-free",value:"Gluten-free"},{id:"low-carb",value:"Low-carb"},{id:"organic",value:"Organic"},{id:"spicy",value:"Spicy"},{id:"vegetarian",value:"Vegetarian"},{id:"vegan",value:"Vegan"}
1],this.searchBarValue="",this.searchBarFilterCount=0,this.dietryFilterCount=0,this.totalFilterCount=0,this.showSticky=!1,this.restaurant={},this.infoRestaurant={},this.entityAddress={},this.order={},this.unavailRestoFlag=!1,this.suppressAvailabilityAreaAlert=!1,this.isImageLoad=!1,this.singleEmbededLink=!1,this.menuSections=[],this.sliderNextPrev=!1,this.allPopularSectionMenuItems=[],this.activeSliderIndex=0,this.dietryItems=[],this.menuId="",this.url=this.config.rds_baseurl,this.itemData={},this.cuisines=[],this.hideSkeleton=!1,this.menuResponse={},this.hits=0,this.zipOnly=!1,this.showingResults=!1,this.showMoreMessage=!0,this.showLessMessage=!1,this.dietryLabelTrue=!1,this.dietryLabelFalse=!0,this.noResults=!1,this.showOuterMessageBox=!0,this.displayRestoAvailabilityMsg=!1,this.showRestoAvailabilityPopup=!1,this.scrollPosition=0,this.keyboardVisible=!1,this.xlMenu=!1,this.timer=null,this.suggestions=[],this.useSuggestion=!0,this.logoPlaceholder="assets/imgs/rest-logo-placeholder.jpg",this.isSearching=!1,this.headerScroll=0,this.contentPadding=0,this.allItemSections=[],this.upcomingOrders=[],this.cartEmpty=!0,this.showLessDesc=!1,this.showMoreDesc=!0,this.showWebStickyInfo=!1,this.showQuestionMarkIcon=!1,this.showRestoAvailabilityIcon=!0,this.hasSearched=!1,this.orderAddress="",this.orderAddressForLocationHeader="",this.routeChange=!1,this.orderType="",this.isOrderAvailable=!1,this.shareableLink="",this.orderTime="",this.isHiddenModalOpen=!1,this.fromViewAll=!1,this.lastScrollPosition=0,this.currentScrollPosition=0,this.isAtBottom=!1,this.orderHours=[],this.hoursAvail=!1,this.timeEmpty=!0,this.orderDate="",this.currentTime="",this.firstTime=!0,this.loadedRid=null,this.params={},this.previousDeltaY=0,this.lastDeltaY=0,this.threshold=50,this.accumulatedDeltaY=0,this.isHidden=!1,this.isNewScroll=!0,this.previousScrollY=0,this.specialInstructionsLength=2e3,this.activeSubscription=[],this.remainingMinutes=0,this.closingCountdown="",this.showClosingCountdown=!1,this.remainingSeconds=0,this.minuteChanged=!1,this.numOfColumns=1,this.closingSoonAlertShown=!1,this.dealsSliderOptions={initialSlide:0,slidesPerView:"auto",speed:500,spaceBetween:10,breakpoints:{320:{slidesPerView:1.2,spaceBetween:10},640:{slidesPerView:1.8,spaceBetween:10},900:{slidesPerView:2.5,spaceBetween:10},1200:{slidesPerView:3.2,spaceBetween:10},1920:{slidesPerView:4.2,spaceBetween:10},2560:{slidesPerView:5.2,spaceBetween:10}}},this.deals=[],this.addToCart=function(){var A=(0,g.Z)(function*(F,Y,q,G){var j,pe,ge,me,_e;console.log("addToCart===>"),F&&F.stopPropagation();const Me=yield h.storage.get("cached_address");if(h.restaurantClosed)h.tempMIID=Y,h.tempRID=q,h.addressAPI.addressModalOpen.emit({alert:h.translate.instant("locationCurrentlyClosed"),useCachedAddress:!0,openItemAfter:!0,...h.addressModalRestaurantOrderTypeProps()});else if(null===(j=h.order)||void 0===j||!j.infoDeliveryAddress||!h.order.TYPE||!Me&&"DELIVERY"==h.order.TYPE.toUpperCase()||!Me&&h.restAPI.isRestaurantPage&&"TAKEOUT"==h.order.TYPE.toUpperCase()&&(null===(pe=h.order)||void 0===pe||null===(ge=pe.infoDeliveryAddress)||void 0===ge||null===(me=ge.ADDRESS1)||void 0===me?void 0:me.toLowerCase().replace(/[^a-zA-Z0-9\s]/g,""))!==(null===(_e=h.addressMakerFromEntity())||void 0===_e?void 0:_e.ADDRESS1.toLowerCase().replace(/[^a-zA-Z0-9\s]/g,"")))h.tempMIID=Y,h.tempRID=q,h.addressAPI.addressModalOpen.emit({useCachedAddress:!1,openItemAfter:!0,...h.addressModalRestaurantOrderTypeProps()});else if(console.log("addToCart else===>"),Y.hasOptions||Y.menuItemMinimum>0)h.viewItem(Y,q,G);else{h.cartAPI.restaurant=h.restaurant,h.cartAPI.item={},h.cartAPI.item.MIID=Y.menuItemId,h.cartAPI.item.ITEM=Y.menuItemName,h.cartAPI.item.QUANTITY=Y.cartCount,h.cartAPI.item.ISREGULAR=!0,h.cartAPI.item.OPTIONS=[],Y.cartCount=Y.cartCount+1;var W=Y.menuItemPrice.split("$");(null==W?void 0:W.length)>0?(h.cartAPI.item.BASEPRICE=W[1],h.cartAPI.item.PRICE=W[1]*+Y.cartCount):(h.cartAPI.item.BASEPRICE=Y.menuItemPrice,h.cartAPI.item.PRICE=Y.menuItemPrice),h.restaurant&&(h.cartAPI.item.RID=h.restaurant.entityId,h.cartAPI.restaurant=h.restaurant),h.cartAPI.addItem(null,h.restaurant.isEstore,!0,!1)}});return function(F,Y,q,G){return A.apply(this,arguments)}}(),this.removeFromCart=(A,F,Y,q)=>{if(A.stopPropagation(),this.restaurantClosed)this.tempMIID=F,this.tempRID=Y,this.addressAPI.addressModalOpen.emit({alert:this.translate.instant("locationCurrentlyClosed"),useCachedAddress:!0,openItemAfter:!0,...this.addressModalRestaurantOrderTypeProps()});else if(F.hasOptions)this.viewItem(F,Y,q);else{this.cartAPI.restaurant=this.restaurant,this.cartAPI.item={},this.cartAPI.item.MIID=F.menuItemId,this.cartAPI.item.ITEM=F.menuItemName,this.cartAPI.item.QUANTITY=F.cartCount,this.cartAPI.item.ISREMOVE=!0,this.cartAPI.item.OPTIONS=[],F.cartCount=F.cartCount-1;var G=F.menuItemPrice.split("$");(null==G?void 0:G.length)>0?(this.cartAPI.item.BASEPRICE=G[1],this.cartAPI.item.PRICE=G[1]*+F.cartCount):(this.cartAPI.item.BASEPRICE=F.menuItemPrice,this.cartAPI.item.PRICE=F.menuItemPrice),this.restaurant&&(this.cartAPI.item.RID=this.restaurant.entityId,this.cartAPI.restaurant=this.restaurant),this.cartAPI.addItem(null,this.restaurant.isEstore,!0,!1)}},this.viewItem=function(){var A=(0,g.Z)(function*(F,Y,q,G=!1,j=null){h.presentItemModal(F,Y,q,G,j)});return function(F,Y,q){return A.apply(this,arguments)}}(),this.vendorService.settingsEmit.subscribe(A=>{this.sharedService.defaultOrderType||this.sharedService.setDefaultOrderType((null==A?void 0:A.GLUE_DEFAULT_ORDER_TYPE)||"DELIVERY"),this.setOrderType(),this.setCssCustomProperties()}),this.setOrderType(),this.handleDeliveryAddressDisplay(this.params),this.removeAddressAndOrder(this.params),this.getUserInfo(),this.addressChange=i.addressChange.subscribe(A=>{setTimeout(()=>{A?"savedAddresses"!=A&&!A.type&&this.getRestaurantInfo():1==this.sharedService.placeOrderEmitAddressChange&&this.getRestaurantInfo(),this.fromViewAll=!1,this.storage.get("order").then(Y=>{Y&&(this.order=Y,this.setupLocationHeader())})},100)}),this.activeSubscription.push(o.newSettings.subscribe(A=>{A&&(A.routeChange?(this.routeChange=!0,this.router.navigate(["restaurants"]),this.ngOnInit()):0==A.routeChange&&(this.routeChange=!1,this.ngOnInit()))}
1)),this.activeSubscription.push(a.order.subscribe(A=>{this.setupLocationHeader()})),this.activeSubscription.push(a.order_hours.subscribe(A=>{this.orderHours=A})),d.events.subscribe(A=>{this.page=t.snapshot.routeConfig.component.name}),N.userChange.subscribe(A=>{setTimeout(()=>{this.getUserInfo()},500)}),this.cartChange=this.cartAPI.cartChange.subscribe(A=>{"itemsOutOfStock"==A?this.getRestaurantInfo(!1):"old_cart"==A&&this.updateMenuItemCartCounts()}),this.footerCartCountSubscription=this.footerService.cartCount.subscribe(function(){var A=(0,g.Z)(function*(F){h.updateMenuItemCartCounts()});return function(F){return A.apply(this,arguments)}}()),this.footerMenuSectionSubscription=this.footerService.selectedMenuSection.subscribe(A=>{this.scrollToSection(A)}),this.footerFilterSubscription=this.footerService.toggleFilterModal.subscribe(A=>{this.platform.is("android")&&(this.isHiddenModalOpen=!0),this.filterModalOpen=A,this.filterModalOpen||this.sharedService.statusBar.emit("filter-modal")}),null!==(J=this.router.getCurrentNavigation())&&void 0!==J&&null!==(V=J.extras)&&void 0!==V&&null!==(z=V.state)&&void 0!==z&&z.fromViewAll&&(this.fromViewAll=!0)}navigateBack(){var t;if(this.vendorService.IS_SINGLE_RESTAURANT)return this.storage.set("allowSeeLandig",!0),void this.router.navigateByUrl("/landing");null!==(t=this.routerOutlet)&&void 0!==t&&t.canGoBack()?this.routerOutlet.pop():this.orderAddress?this.router.navigate(["/restaurants"]):this.router.navigate(["/restaurants"],{queryParams:{view:"all"}})}setOrderType(){try{this.route.queryParams.subscribe(t=>{"true"===t.delivery?(this.orderType="DELIVERY",this.order.TYPE="DELIVERY"):"true"===t.pickup?(this.orderType="TAKEOUT",this.order.TYPE="TAKEOUT"):!t.delivery&&!t.pickup&&this.storage.get("order").then(i=>{this.orderType=null!=i&&(null==i?void 0:i.TYPE)||this.sharedService.defaultOrderType.toUpperCase(),this.order.TYPE=this.orderType}),this.storage.get("owg-order-settings").then(i=>{null!=i&&i.rwg_token||this.storage.set("owg-order-settings",{utm_source:t.utm_source?t.utm_source:null,utm_medium:t.utm_medium?t.utm_medium:null,utm_campaign:t.utm_campaign?t.utm_campaign:null,rwg_token:t.rwg_token?t.rwg_token:null,order_type:t.pickup?"TAKEOUT":this.sharedService.defaultOrderType.toUpperCase(),rid:this.route.snapshot.params.rid?this.route.snapshot.params.rid:null,menu_slug:this.route.snapshot.params["title-menu"]?this.route.snapshot.params["title-menu"]:null})})})}catch(t){console.log(t)}}setCssCustomProperties(){this.vendorService.GLUE_MENU_PAGE_ITEMS_SECTION_BACKGROUND_COLOR&&this.document.documentElement.style.setProperty("--glue-menu-page-items-section-background-color",this.vendorService.GLUE_MENU_PAGE_ITEMS_SECTION_BACKGROUND_COLOR),this.vendorService.GLUE_MENU_PAGE_FILTERS_SECTION_BACKGROUND_COLOR&&this.document.documentElement.style.setProperty("--glue-menu-page-filters-section-background-color",this.vendorService.GLUE_MENU_PAGE_FILTERS_SECTION_BACKGROUND_COLOR),this.vendorService.GLUE_MENU_PAGE_FILTER_BTNS_BG_HIGHLIGHTED&&this.document.documentElement.style.setProperty("--glue-menu-page-filter-btns-bg-highlighted",this.vendorService.GLUE_MENU_PAGE_FILTER_BTNS_BG_HIGHLIGHTED),this.vendorService.GLUE_MENU_PAGE_FILTER_BTNS_BG_UNHIGHLIGHTED&&this.document.documentElement.style.setProperty("--glue-menu-page-filter-btns-bg-unhighlighted",this.vendorService.GLUE_MENU_PAGE_FILTER_BTNS_BG_UNHIGHLIGHTED),this.vendorService.GLUE_MENU_PAGE_FILTER_BUTTONS_TEXT_COLOR&&this.document.documentElement.style.setProperty("--glue-menu-page-filter-buttons-text-color",this.vendorService.GLUE_MENU_PAGE_FILTER_BUTTONS_TEXT_COLOR)}extractParamsFromUrl(){this.route.queryParams.subscribe(t=>{try{t.rwg_token&&this.sharedService.setRwgToken(t.rwg_token);const i=Object.keys(t).find(o=>"ref"===o.toLowerCase());i&&t[i]&&this.sharedService.setReferral(t[i].toUpperCase()),this.route.paramMap.subscribe(o=>{const a=o.get("rid");a?this.sharedService.setRid(a):this.extractRidFromUrl()})}catch(i){console.error("Error extracting params:",i)}})}extractRidFromUrl(){const o=this.router.url.match(/(?:\/|-menu\/)(\d+)(?:\?|$)/);o&&o[1]&&this.sharedService.setRid(o[1])}removeAddressAndOrder(t){var i=this;return(0,g.Z)(function*(){const o=yield i.storage.get("order");o&&o.TYPE&&("DELIVERY"==o.TYPE||"DELIVERY"==i.orderType)&&i.addressMatcher(o)&&(i.clearOrderRelatedInfo(),o.TYPE=i.orderType,i.storage.set("order",o),i.order=o)})()}setStatusBarColor(t){this.platform.is("cordova")}clearOrderRelatedInfoTimeWrapper(){this.clearOrderRelatedInfo(),this.clearOrderRelatedInfo()}clearOrderRelatedInfo(){try{var t,i;this.orderAddress="",this.orderAddressForLocationHeader="",this.orderTime="",null!==(t=this.order)&&void 0!==t&&t.infoDelivery&&null!==(i=this.order)&&void 0!==i&&i.infoDeliveryAddress&&(this.order.infoDeliveryAddress.PLACE="",this.order.infoDeliveryAddress.ADDRESS1="",this.restaurantClosed=!0,this.storage.remove("cart"),this.storage.remove("estore_cart"),this.footerService.cartCount.emit(0))}catch(o){console.log("EXCEPTION",o)}}handleDeliveryAddressDisplay(t){this.storage.get("showDeliveryAddress").then(i=>{"DELIVERY"==this.orderType?(this.sharedService.showDeliveryAddress=!0===i,this.storage.set("showDeliveryAddress",i)):"TAKEOUT"==this.orderType&&(this.sharedService.showDeliveryAddress=!0,this.storage.set("showDeliveryAddress",!1))})}addressMatcher(t){if(!t)return!1;let i=!1;try{var o,a,l,d,f,C,y,E,b,c,v,w,R,k,m,p;if(null!=t&&null!==(o=t.infoDeliveryAddress)&&void 0!==o&&o.ADDRESS1&&this.entityAddress)if((null===(a=this.entityAddress)||void 0===a?void 0:a.address)+" "+(null===(l=this.entityAddress)||void 0===l?void 0:l.city)+" "+(null===(d=this.entityAddress)||void 0===d?void 0:d.state)==t.infoDeliveryAddress.ADDRESS1||(null==t||null===(f=t.infoDeliveryAddress)||void 0===f?void 0:f.LAT)==(null===(C=this.entityAddress)||void 0===C||null===(y=C.geolocation)||void 0===y?void 0:y.lat)&&(null==t||null===(E=t.infoDeliveryAddress)||void 0===E?void 0:E.LONG)==(null===(b=this.entityAddress)||void 0===b||null===(c=b.geolocation)||void 0===c?void 0:c.lng))i=!0;else if(null!=t&&null!==(v=t.infoDeliveryAddress)&&void 0!==v&&v.LAT&&null!=t&&null!==(w=t.infoDeliveryAddress)&&void 0!==w&&w.LONG&&null!==(R=this.entityAddress)&&void 0!==R&&null!==(k=R.geolocation)&&void 0!==k&&k.lat&&null!==(m=this.entityAddress)&&void 0!==m&&null!==(p=m.geolocation)&&void 0!==p&&p.lng){const U=Math.abs(parseFloat(t.infoDeliveryAddress.LAT)-parseFloat(this.entityAddress.geolocation.lat)),N=Math.abs(parseFloat(t.infoDeliveryAddress.LONG)-parseFloat(this.entityAddress.geolocation.lng));i=U<2e-4&&N<2e-4}else i=!1}catch(S){return console.log("Exception in delivery-address vs restaurant matching",S),!1}return i}showRestaurantAddressDeliveryAlert(){var t=this;return(0,g.Z)(function*(){const i=t.restaurantSupportsTakeout(),o=[{text:t.translate.instant("editAddress"),role:"cancel",cssClass:"secondary",handler:(l=(0,g.Z)(function*(){yield t.openAddressModal()}),function(){return l.apply(this,arguments)})}];var l;i&&o.push({text:t.translate.instant("continueWithPickup"),cssClass:"primary",handler:function(){var l=(0,g.Z)(function*(){t.orderType="TAKEOUT",t.order.TYPE="TAKEOUT",yield t.storage.set("order",t.order),yield t.getRestaurantInfo()});return function(){return l.apply(this,arguments)}}()}),yield(yield t.alertCtrl.create({header:t.translate.instant("invalidDeliveryAddress"),backdropDismiss:!1,message:t.translate.instant(i?"restaurantAddressForDeliveryMessage":"restaurantAddressForDeliveryNoPickupMessage"),buttons:o})).present()})()}updateMenuItemCartCounts(){var t=this;return(0,g.Z)(function*(){let i=yield t.cartAPI.getCartData();t.menuSections.map(o=>{o.menuItems&&o.menuItems.map(function(){var a=(0,g.Z)(function*(l){l.cartCount=0,i&&i.items.forEac
1h(d=>{d.MIID==l.menuItemId&&(l.cartCount=l.cartCount+d.QUANTITY)})});return function(l){return a.apply(this,arguments)}}()),"POPULAR"==o.menuHeadingId&&(t.popularSection=o,t.popularSection.menuItems.forEach(a=>{""!=a.menuItemImage&&(t.sliderNextPrev=!0)}))})})()}slidePrev(){this.popularSectionSlider.slidePrev()}slideNext(){this.popularSectionSlider.slideNext()}onSliderChange(t){var i=this;return(0,g.Z)(function*(){i.activeSliderIndex=(yield i.popularSectionSlider.isEnd())?-1:yield i.popularSectionSlider.getActiveIndex()})()}onSlideChange(t){var i=this;return(0,g.Z)(function*(){yield i.popularSectionSlider.isBeginning(),yield i.popularSectionSlider.isEnd()})()}updateContentPadding(){this.contentPadding=this.singleEmbededLink?0:this.isMobileView?64:74}getTruncatedCusines(t){const i=t.split(",").map(o=>o.trim());return(null==i?void 0:i.length)>7?`${i.slice(0,7).join(", ")} ... `:t}onListFiltered(t){var i;this.searchBarValue=t.searchBarVal,""!=this.searchBarValue?(this.searchBarFilterCount=1,this.hasSearched=!0,this.popularSection&&this.popularSection.menuItems&&(this.popularSection.menuItems=this.popularSection.menuItems.filter(o=>o.menuItemName.toLowerCase().includes(this.searchBarValue.toLowerCase())))):(this.hasSearched=!1,0!=(null===(i=this.allPopularSectionMenuItems)||void 0===i?void 0:i.length)&&(this.popularSection.menuItems=this.allPopularSectionMenuItems),this.searchBarFilterCount=0),this.totalFilterCount=this.searchBarFilterCount+this.dietryFilterCount,this.menuSections=t.list,this.footerService.filterCount.emit(this.totalFilterCount),this.closeSearchModal()}scrollToSection(t){let i=document.getElementById(t+"_CONTAINER");var o;if(null==i&&(null===(o=this.menuSections)||void 0===o?void 0:o.length)>0){this.menuSections;let C=!1;for(let y=(null===(l=this.menuSections)||void 0===l?void 0:l.length)-1;y>=0;y--){var l;if(this.menuSections[y].sourceId==t&&(C=!0),1==C&&"Y"==this.menuSections[y].master_header){i=document.getElementById(this.menuSections[y].sourceId);break}}}let d=this.findPos(i);this.contentScroll.scrollToPoint(0,d,500),setTimeout(()=>this.footerService.buttonScrollInProgress=!1,1e3)}ngOnInit(){var t=this;this.storage.remove("pendingItemReopen"),this.router.url.includes("single_embed")&&(this.singleEmbededLink=!0,console.log("Single.php URL detected, hiding main header")),this.restAPI.setResponsiveColumns(),this.numOfColumns=this.restAPI.numOfColumns,this.setCssCustomProperties(),this.extractParamsFromUrl(),this.sharedService.comingValue(!0),this.currency_symbol=this.config.currency_symbol,this.selectedSection=0,this.isMobileView=this.screenResize.isMobileView,this.updateContentPadding(),this.screenSizeEvent=this.screenResize.screenSizeChange.subscribe(i=>{this.isMobileView=i,this.updateContentPadding()}),$.AE(this,"contentScroll",(0,g.Z)(function*(){const i=yield t.contentScroll.getScrollElement();i.addEventListener("scroll",()=>{const o=t.document.querySelector("app-restaurant > ion-content.restaurant-content .scrollable img");o&&(t.headerScroll=-(i.scrollTop-o.clientHeight),t.showWebStickyInfo=!(t.headerScroll>1),t.headerScroll>=0?(t.headerScroll=0,t.showSticky=!1):t.showSticky=!0)})}))}onScroll(t){this.currentScrollPosition=t.detail.scrollTop;const i=t.detail.deltaY;this.contentScroll.getScrollElement().then(a=>{this.isAtBottom=a.scrollHeight-a.scrollTop<=a.clientHeight+50}),this.isAtBottom&&this.footerService.hideBottomBar.emit(!0),0===i&&(this.previousScrollY=0);const o=i-this.previousScrollY;if(!1===this.footerService.buttonScrollInProgress&&!1===this.isAtBottom){this.footerService.sectionScrollInProgress=!0,this.platform.is("ios")&&this.updateStatusBarColorDuringScroll();const a=this.stickyHeader?this.stickyHeader.nativeElement:null;this.isNewScroll&&o>165||o<-165?o>165&&this.currentScrollPosition>600?(a&&(a.style.display="none"),this.isNewScroll=!1,this.showSticky=!1,this.footerService.hideBottomBar.emit(!0),this.previousScrollY=i):o<-165&&(a&&(a.style.display="block"),this.isNewScroll=!1,this.showSticky=!0,this.footerService.hideBottomBar.emit(!1),this.previousScrollY=i):!1===this.isNewScroll&&(this.lastDeltaY>i&&Math.abs(o)>=165?(a&&(a.style.display="block"),this.previousScrollY=i,this.showSticky=!0,this.footerService.hideBottomBar.emit(!1)):this.lastDeltaY<i&&Math.abs(o)>=165&&this.currentScrollPosition>600&&(a&&(a.style.display="none"),this.footerService.hideBottomBar.emit(!0),this.showSticky=!1,this.previousScrollY=i))}this.lastDeltaY=i}updateStatusBarColorDuringScroll(){const t=document.querySelectorAll(".section-list-header"),i=this.findStickyHeader(t);if(i&&!this.showSticky){const o=null==i?void 0:i.getAttribute("id"),a=this.menuSections.find(l=>l.menuHeadingId.toString()===o);if(o&&a&&!this.showSticky&&B.dV.isNativePlatform()){const l=getComputedStyle(document.documentElement).getPropertyValue("--glue-menu-page-items-section-background-color");H.A_.setStyle({style:H.bg.Light}),(0,re.s)(l),H.A_.setOverlaysWebView({overlay:!1})}}else B.dV.isNativePlatform()&&(H.A_.setStyle({style:H.bg.Light}),(0,re.s)("#FFFFFF"),H.A_.setOverlaysWebView({overlay:!1}))}onScrollEnd(t){this.isNewScroll=!0,this.platform.is("android")&&this.updateStatusBarColorDuringScroll();const i=document.querySelectorAll(".section-list-header"),o=this.findStickyHeader(i);if(o){const l=null==o?void 0:o.getAttribute("id"),d=this.menuSections.find(f=>f.menuHeadingId.toString()===l);l&&d&&!0===d.open&&this.footerService.scrollMenuSelection.next(l)}else{var a;this.footerService.scrollMenuSelection.next(null===(a=i[0])||void 0===a?void 0:a.getAttribute("id"))}this.footerService.sectionScrollInProgress=!1}findStickyHeader(t){let i=null;return t.forEach(o=>{o.getBoundingClientRect().top<=100&&(i=o)}),i}setupStickyHeader(){var t=this;$.AE(this,"stickyHeader",(0,g.Z)(function*(){const i=yield t.contentScroll.getScrollElement();i.addEventListener("scroll",()=>{t.showSticky=i.scrollTop==t.stickyHeader.nativeElement.offsetTop})}))}ionViewWillEnter(){var t=this;return(0,g.Z)(function*(){t.updateStatusBarColorDuringScroll()})()}ionViewDidEnter(){var t=this;
1return(0,g.Z)(function*(){t.unavailRestoFlag=!1,t.closingSoonAlertShown=!1,t.setupStickyHeader(),t.getRestaurantInfo(),yield t.initBottomMargin(),t.footerService.filterCount.emit(0),t.hideMessageBox(),B.dV.isNativePlatform()&&(H.A_.setStyle({style:H.bg.Light}),(0,re.s)("#FFFFFF"),H.A_.setOverlaysWebView({overlay:!1}))})()}initBottomMargin(){var t=this;return(0,g.Z)(function*(){t.cart=yield t.storage.get("cart"),t._user=yield t.storage.get("user")})()}seeMoreOrLessDesc(t,i){this.menuSections[i].showFullDesc=t}toggleFilterModal(t){this.filterModalOpen=t,this.footerService.toggleFilterModal.emit(t)}ionViewWillLeave(){var t;this.titleService.setTitle(Oe.company),this.meta.removeTag("property='og:title'"),this.meta.removeTag("property='og:keywords'"),this.meta.removeTag("property='og:description'"),this.meta.removeTag("name='keywords'"),this.meta.removeTag("name='description'"),this.footerService.filterCount.emit(0),this.footerService.pageInfo.emit({restaurantId:this.restaurant.entityId,restaurantName:null!==(t=this.restaurant)&&void 0!==t&&t.entityName?this.restaurant.entityName.replace(/\s+/g,"-")+"-menu":"restaurants"})}onPopularImageError(t){t.target.src="assets/imgs/no-image.png"}shouldDisplayDescription(t){return!(this.isMobileView&&2==this.restAPI.numOfColumns&&null!=t&&t.menuItemImage&&this.sharedService.isValidUrl(null==t?void 0:t.menuItemImage)&&t.isImageLoad)}displayDietryFilter(t){var i;this.activeDietryFilterArr=t.activeDietaryFilters,this.nonActiveDietryFilterArr=t.nonActiveDietaryFilters;let o=t.showDietaryFilter;var a;this.dietryLabelTrue=o,this.dietryLabelFalse=!o,this.dietryItems=t.resultingDietryArray,(null===(i=this.activeDietryFilterArr)||void 0===i?void 0:i.length)>=0&&(this.dietryFilterCount=null===(a=this.activeDietryFilterArr)||void 0===a?void 0:a.length),this.totalFilterCount=this.searchBarFilterCount+this.dietryFilterCount,this.footerService.filterCount.emit(this.totalFilterCount)}setRestaurantLogo(){var t;"merchant"===(null===(t=this.route.snapshot.queryParams.branding)||void 0===t?void 0:t.toLowerCase())&&(this.sharedService.restaurantLogo=this.restaurant.logo&&this.isImageRemote(this.restaurant.logo)?this.restaurant.logo:this.restaurant.logo&&!this.isImageRemote(this.restaurant.logo)?this.url+this.restaurant.logo:this.isImageRemote(this.vendorService.GLUE_LOGO)?this.vendorService.GLUE_LOGO?this.vendorService.GLUE_LOGO:""==this.vendorService.GLUE_LOGO?"assets/imgs/logo.png":"":this.vendorService.GLUE_LOGO?this.url+this.vendorService.GLUE_LOGO:""==this.vendorService.GLUE_LOGO?"assets/imgs/logo.png":"")}convertTo24Hour(t){if("ASAP"==t||null==t||""==t||t.toString().includes("ASAP"))return;let[i,o,a]=t.toString().split(/[:\s]/);if(i=parseInt(i,10),o=parseInt(o,10),isNaN(i)||isNaN(o))return;const l=a?a.toLowerCase():"";return"pm"===l&&12!==i?i+=12:"am"===l&&12===i&&(i=0),`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`}appendDateForTakeout(){var t,i;"TAKEOUT"===this.orderType&&(this.orderTime=this.orderTime+", "+ee()(null===(t=this.order)||void 0===t||null===(i=t.infoDelivery)||void 0===i?void 0:i.DELIVERYDATE,"MM/DD/YYYY").format("MM/DD"))}formatDate(t){return t<10?"0"+t.toString():t.toString()}getTime(t,i){for(let o=0;o<(null==i?void 0:i.length);o++)if(i[o][0]===t)return t;return"ASAP"==i[0][0]?"ASAP":i[0][1]===this.translate.instant("selectTime...")&&void 0!==i[1][1]?i[
11][0]:""}setTimeInfo(t,i,o=!0){this.orderTime=t,o&&"select time"!==this.orderTime.toLowerCase()&&"unavailable"!==this.orderTime.toLowerCase()&&(this.order.infoDelivery.DELIVERYTIME="ASAP"!=this.orderTime?this.convertTo24Hour(this.orderTime):this.orderTime),this.restaurantClosed=i}calculateTimeRemaining(t){const i=t[t.length-1][0],o=new Date((new Date).toLocaleString("en-US",{timeZone:this.order.TIMEZONE})),a=o.getHours().toString().padStart(2,"0")+":"+o.getMinutes().toString().padStart(2,"0");return this.convertToMinutes(i)-this.convertToMinutes(a)}convertToMinutes(t){const[i,o]=t.split(":").map(Number);return 60*i+o}getOrderHours(){var t=this;return(0,g.Z)(function*(){var i=t.route.snapshot.params.rid;t.router.url.includes("/order-history")&&(i=yield(yield t.storage.get("cart")).restaurant.entityId),t.orderAPI.getNewOrderHours(t.order,i).subscribe(function(){var o=(0,g.Z)(function*(a){var l,d,f;t.orderHours=[],t.orderTime="",t.orderHours=t.orderAPI.mapOrderHours(a),t.orderAPI.orderHoursUnAvailable(a.UNAVAILABLE)&&(t.orderTime="Unavailable",t.restaurantClosed=!0);var C=null===(l=t.orderDate)||void 0===l?void 0:l.split("T"),y=ee()(C[0],"MM/DD/YYYY").format("MM/DD/YYYY"),E=new Date,b=t.formatDate(E.getMonth()+1)+"/"+t.formatDate(E.getDate())+"/"+E.getFullYear();if(y==b)if(X().tz.setDefault(t.order.TIMEZONE),t.currentTime=t.order.SETTINGS.DELIVERYTIMEPADDING>0?X()().add(t.order.SETTINGS.DELIVERYTIMEPADDING,"minutes").format("HH:mm"):X()().format("HH:mm"),t.currentTime=X()(b+"T"+t.currentTime,"MM/DD/YYYYTHH:mm").tz(t.order.TIMEZONE).format("HH:mm"),t.currentTime>=t.order.infoDelivery.DELIVERYTIME||"ASAP"==t.order.infoDelivery.DELIVERYTIME)if(t.orderAPI.isSelectedTimeInOrderHours(t.orderHours,t.order.infoDelivery.DELIVERYTIME))t.setTimeInfo(t.order.infoDelivery.DELIVERYTIME,!1);else{let p=t.orderAPI.getNextAvailableTime(t.orderHours,t.order.infoDelivery.DELIVERYTIME);""===p?t.setTimeInfo("",!0):t.setTimeInfo(p.hours24,!1,!1)}else{var c=t.getTime(t.order.infoDelivery.DELIVERYTIME,t.orderHours);t.config.international&&t.config.militaryTime&&""!=c&&(t.newOrderTime=c,t.setTimeInfo(c,!1)),"ASAP"==c&&t.setTimeInfo("ASAP",!1),""==c&&t.setTimeInfo(t.translate.instant("selectTime"),!0),c.toString();var v=c.indexOf(":"),k=(w=+c.substr(0,v))<12||24===w?"AM":"PM";c=(w%12||12)+c.substr(v,3)+" "+k,t.setTimeInfo(c,!1,!1)}else if(console.log("inside else",t.order.infoDelivery.DELIVERYTIME),"ASAP"!=t.order.infoDelivery.DELIVERYTIME){const S=t.orderAPI.isSelectedTimeInOrderHours(t.orderHours,c=t.order.infoDelivery.DELIVERYTIME);if(console.log("isTimeAvailable===>",S),!S){let T=t.orderAPI.getNextAvailableTime(t.orderHours,c);if(console.log("nextTime===>",T),""!==T&&T)c=T.hours24;else if(t.orderHours[0][1]===t.translate.instant("selectTime...")&&void 0!==t.orderHours[1][1])c=t.orderHours[1][0];else{if(!t.orderHours[0][0]||""===t.orderHours[0][0])return void t.setTimeInfo(t.translate.instant("selectTime"),!0,!1);c=t.orderHours[0][0]}}var w;t.config.international&&t.config.militaryTime&&""!=c&&(t.newOrderTime=c,console.log("time===>",c),t.setTimeInfo(t.convertTo12(c),!1,!1)),"ASAP"==c&&t.setTimeInfo("ASAP",!1,!1),""==c&&t.setTimeInfo(t.translate.instant("selectTime"),!0,!1),c.toString(),v=c.indexOf(":"),k=(w=+c.substr(0,v))<12||24===w?"AM":"PM",c=(w%12||12)+c.substr(v,3)+" "+k,t.timeEmpty=!1,t.orderTime=c,t.restaurantClosed=!1}else t.orderHours[0][1]===t.translate.instant("selectTime...")&&void 0!==t.orderHours[1][1]?t.setTimeInfo(t.orderHours[1][1],!1):t.setTimeInfo(t.translate.instant("selectTime"),!0);t.orderTime=t.orderTime+", "+t.orderDate.substring(0,5),"12M AM"==(null===(d=t.order)||void 0===d||null===(f=d.infoDelivery)||void 0===f?void 0:f.DELIVERYTIME)&&(t.order.infoDelivery.DELIVERYTIME="");const m=yield t.storage.get("order");m&&(t.order.infoOrder=null==m?void 0:m.infoOrder,t.order.driverTip=null==m?void 0:m.driverTip),yield t.storage.set("order",t.order),t.removeAddressAndOrder(t.params),yield t.getRestaurantInfo()});return function(a){return o.apply(this,arguments)}}(),o=>{})})()}getExpressHours(){var t=this;return(0,g.Z)(function*(){var i,o;if(null!==(i=t.params)&&void 0!==i&&i.pickup||null!==(o=t.params)&&void 0!==o&&o.delivery||""!=t.orderType){var a,l,d,f;t.firstTime=!1,(new Date).toISOString().split("T");let m={ADDRESS1:"",FORMATTED:"",ZIP:"",DIRECTIONS:""};m=t.addressMakerFromEntity();const p=yield t.storage.get("order"),S=yield t.storage.get("cached_address");var E,b;if("DELIVERY"===(null===(a=t.orderType)||void 0===a?void 0:a.toUpperCase()))if(null!=S&&S.ADDRESS1)t.sharedService.showDeliveryAddress=!0,m={ADDRESS1:S.ADDRESS1,FORMATTED:S.FORMATTED,ZIP:S.ZIP,DIRECTIONS:(null==S?void 0:S.DIRECTIONS)||(null==S?void 0:S.directions)};else if("DELIVERY"===(null==p||null===(E=p.TYPE)||void 0===E?void 0:E.toUpperCase())&&null!=p&&null!==(b=p.infoDeliveryAddress)&&void 0!==b&&b.ADDRESS1){var c,v,w,R;t.sharedService.showDeliveryAddress=!0,m={ADDRESS1:p.infoDeliveryAddress.ADDRESS1,FORMATTED:null==p||null===(c=p.infoDeliveryAddress)||void 0===c?void 0:c.FORMATTED,ZIP:null==p||null===(v=p.infoDeliveryAddress)||void 0===v?void 0:v.ZIP,DIRECTIONS:(null==p||null===(w=p.infoDeliveryAddress)||void 0===w?void 0:w.DIRECTIONS)||(null==p||null===(R=p.infoDeliveryAddress)||void 0===R?void 0:R.directions)}}t.order.TYPE=null==t?void 0:t.orderType;let N=null!=p&&null!==(l=p.infoDelivery)&&void 0!==l&&l.DELIVERYTIME?null==p||null===(d=p.infoDelivery)||void 0===d?void 0:d.DELIVERYTIME:"ASAP";N="Unavailable"==N||"Select Time"==N?"ASAP":N,t.restAPI.getRestaurants(m,p&&null!=p&&p.infoDelivery?(null==p||null===(f=p.infoDelivery)||void 0===f?void 0:f.DELIVERYDATE)+"T"+N:"ASAP",t.orderType.toUpperCase(),null,!1,null,t.route.snapshot.params.rid).subscribe(function(){var x=(0,g.Z)(function*(_){var T,D;_.order.infoDelivery.ADDRESS1=m.ADDRESS1,t.orderDate=null==_||null===(T=_.order)||void 0===T||null===(D=T.infoDelivery)||void 0===D?void 0:D.DELIVERYDATE,t.order=null==_?void 0:_.order;
1const I=yield t.storage.get("cached_address");t.orderAddress=(null==I?void 0:I.ADDRESS1)||"",t.orderAddressForLocationHeader=t.orderAddress,t.orderAddress&&(t.orderAddressForLocationHeader=(null!=I&&I.DIRECTIONS||null!=I&&I.directions?((null==I?void 0:I.DIRECTIONS)||(null==I?void 0:I.directions))+" - ":"")+t.orderAddress);try{const u=String(t.route.snapshot.params.rid||""),P=!(!t.loadedRid||t.loadedRid===u);t.storage.get("order").then(O=>{(P||null==O||!O.infoOrder||null==(null==O?void 0:O.infoOrder))&&t.storage.set("order",_.order)}),t.loadedRid=u||t.loadedRid}catch(u){console.log("error",u)}yield t.getOrderHours(),setTimeout(()=>{t.removeAddressAndOrder(t.params)},500)});return function(_){return x.apply(this,arguments)}}(),x=>{console.log("Error fetching restaurants:",x)})}})()}addressMakerFromEntity(){var t,i,o,a,l,d,f,C,y,E,b,c,v,w;return{ADDRESS1:(null===(t=this.restaurant)||void 0===t||null===(i=t.entityAddress)||void 0===i?void 0:i.address)+" "+(null===(o=this.restaurant.entityAddress)||void 0===o?void 0:o.city)+" "+(null===(a=this.restaurant.entityAddress)||void 0===a?void 0:a.state),FORMATTED:(null===(l=this.restaurant)||void 0===l||null===(d=l.entityAddress)||void 0===d?void 0:d.address)+" "+(null===(f=this.restaurant)||void 0===f||null===(C=f.entityAddress)||void 0===C?void 0:C.city)+" "+(null===(y=this.restaurant)||void 0===y||null===(E=y.entityAddress)||void 0===E?void 0:E.state)+" "+(null===(b=this.restaurant)||void 0===b||null===(c=b.entityAddress)||void 0===c?void 0:c.zip),ZIP:null===(v=this.restaurant)||void 0===v||null===(w=v.entityAddress)||void 0===w?void 0:w.zip}}goToRestaurantsAlert(){var t=this;return(0,g.Z)(function*(){yield t.alertManager.presentAlert({backdropDismiss:!1,header:t.translate.instant("somethingWrong"),message:t.translate.instant("menuFetchError"),buttons:[{text:"Ok",role:"cancel",handler:()=>{t.router.navigate(["/restaurants"])}}]})})()}setClosingTime(t){try{if(!t)return;if(t&&"unavailable"!=t.toLowerCase()){var i;this.closingTime=t;var o=null===(i=this.orderDate)||void 0===i?void 0:i.split("T"),a=ee()(o[0],"MM/DD/YYYY").format("MM/DD/YYYY"),l=new Date;if(a!=this.formatDate(l.getMonth()+1)+"/"+this.formatDate(l.getDate())+"/"+l.getFullYear())return;const f=new Date,[C,y]=this.closingTime.split(":").map(Number),E=new Date;E.setHours(C,y,0,0);const b=E.getTime()-f.getTime();Math.abs(b)/1e3/60<=30?this.closingSoonAlert():(this.waitingForCountdownInterval&&clearInterval(this.waitingForCountdownInterval),this.waitingForCountdownInterval=setInterval(()=>{const R=new Date,[k,m]=this.closingTime.split(":").map(Number),p=new Date;p.setHours(k,m,0,0);const S=p.getTime()-R.getTime();Math.abs(S)/1e3/60<=30&&this.closingSoonAlert()},6e4))}else"unavailable"==t.toLowerCase()&&this.showClosingAlert(!0)}catch(f){console.error("Error setting closing time:",f)}}closingSoonAlert(){var t=this;return(0,g.Z)(function*(){if(t.closingSoonAlertShown)return;const i=t.router.url;!i.includes("/express/")&&(!(i.split("/").length>=3)||i.includes("/track/")||i.includes("/restaurants")||i.includes("/account")||i.includes("/cart-modal")||i.includes("/item-modal")||i.includes("/login-modal")||i.includes("/address-modal")||i.includes("/payment-modal"))||(t.closingSoonAlertShown=!0,yield t.alertManager.presentAlert({header:t.translate.instant("hurryOrderDeadlineApproaching"),backdropDismiss:!1,message:`Place order by ${t.sharedService.convertTo12Hour(t.closingTime)}.`,buttons:[{text:"Continue Ordering",role:"cancel",cssClass:"secondary",handler:()=>{}}]}),t.waitingForCountdownInterval&&clearInterval(t.waitingForCountdownInterval))})()}getNextAvailableTimeForRestaurant(){var t,i,o,a,l,d,f;return(null===(t=this.orderHours)||void 0===t?void 0:t.length)>0&&"Unavailable"!==this.orderHours[0][0]&&"ASAP"==(null===(i=this.order)||void 0===i||null===(o=i.infoDelivery)||void 0===o?void 0:o.DELIVERYTIME)&&!this.orderAPI.isSelectedTimeInOrderHours(this.orderHours,null===(a=this.order)||void 0===a||null===(l=a.infoDelivery)||void 0===l?void 0:l.DELIVERYTIME)?"":null===(d=this.order)||void 0===d||null===(f=d.infoDelivery)||void 0===f?void 0:f.DELIVERYTIME}getRestaurantInfo(){var t=this;return(0,g.Z)(function*(i=!0){const o=String(t.route.snapshot.params.rid||"");o&&t.loadedRid&&t.loadedRid!==o&&(t.firstTime=!0),t.storage.get("order").then(function(){var a=(0,g.Z)(function*(l){let d;if(i&&(d=yield t.loadingCtrl.create({message:"Loading"})),null!=l){var f,C,y,E;if(""!=t.orderType&&!0===t.firstTime)return t.restAPI.getRestaurantWithDummyAddress(t.route.snapshot.params.rid,t.orderDate,t.orderTime,t.orderType).subscribe(function(){var c=(0,g.Z)(function*(v){t.restaurant=v,t.gtmService.pushCustomEvent("RestaurantMenuView",{restaurantName:t.restaurant.entityName,restaurantId:t.restaurant.entityId,cuisine:t.restaurant.cuisines}),t.entityAddress=v.entityAddress,t.setRestaurantLogo(),t.getExpressHours()});return function(v){return c.apply(this,arguments)}}()),void d.dismiss();t.order=l,t.loadedRid=o,t.setupLocationHeader(),t.address1="Ks"==t.config.currency_symbol?"special":null==l||null===(E=l.infoDeliveryAddress)||void 0===E?void 0:E.ADDRESS1,t.orderAPI.getNewOrderHours(t.order,t.route.snapshot.params.rid).subscribe(function(){var c=(0,g.Z)(function*(v){let w=[];if(t.orderTime="",w=t.orderAPI.mapOrderHours(v),null!=v.UNAVAILABLE&&"Unavailable"==v.UNAVAILABLE)return t.orderTime="Unavailable",void(t.restaurantClosed=!0);if("ASAP"==l.infoDelivery.DELIVERYTIME||t.convertTo24Hour(t.convertTo12(l.infoDelivery.DELIVERYTIME))<t.convertTo24Hour(w[1][1])&&"ASAP"!=w[1[1]]||t.convertTo24Hour(t.convertTo12(l.infoDelivery.DELIVERYTIME))<t.convertTo24Hour(w[1][1])&&"ASAP"!=w[1[1]]&&!t.sharedService.timeChangedFromModal){if(t.sharedService.timeChangedFromModal=!1,t.orderAPI.isSelectedTimeInOrderHours(t.orderHours,t.order.infoDelivery.DELIVERYTIME))t.setTimeInfo(t.order.infoDelivery.DELIVERYTIME,!1);else{let R=t.orderAPI.getNextAvailableTime(t.orderHours,l.infoDelivery.DELIVERYTIME);""===R?t.setTimeInfo("",!0):t.setTimeInfo(R.hours24,!1,!1)}t.appendDateForTakeout()}else{if(t.orderAPI.isSelectedTimeInOrderHours(w,l.infoDelivery.DELIVERYTIME))t.orderTime=t.convertTo12(l.infoDelivery.DELIVERYTIME),t.restaurantClosed=!1;else{let R=t.orderAPI.getNextAvailableTime(w,l.infoDelivery.DELIVERYTIME);""===R?t.setTimeInfo("",!0):t.setTimeInfo(R.hours24,!1,!1)}t.appendDateForTakeout()}});return function(v){return c.apply(this,arguments)}}(),c=>{});let b=l.infoDelivery.SHIFT;t.sharedService.restaurantShift&&(b=t.sharedService.restaurantShift),t.restAPI.getRestaurant(t.route.snapshot.params.rid,l.infoDelivery.DZID,b,t.address1,null==l||null===(f=l.infoDeliveryAddress)||void 0===f?void 0:f.ZIP,null==l||null===(C=l.infoDelivery)||void 0===C?void 0:C.DELIVERYDATE,null==l||null===(y=l.infoDelivery)||void 0===y?void 0:y.DELIVERYTIME,t.orderType).subscribe(function(){var c=(0,g.Z)(function*(v){var w,R;
1500==v.status&&(d.dismiss(),t.goToRestaurantsAlert()),t.restaurant=v,t.entityAddress=v.entityAddress,t.setRestaurantLogo();const k=yield t.storage.get("cached_address");if(t.footerService.pageInfo.emit({restaurantId:t.restaurant.entityId,restaurantName:null!==(w=t.restaurant)&&void 0!==w&&w.entityName?t.restaurant.entityName.replace(/\s+/g,"-")+"-menu":"restaurants"}),"DELIVERY"===t.orderType&&k&&t.addressMatcher(t.order)&&t.restAPI.isRestaurantPage&&(d&&(yield d.dismiss()),yield t.showRestaurantAddressDeliveryAlert()),t.titleService.setTitle(v.seoInfo.seoTitle),t.meta.addTag({name:"keywords",content:v.seoInfo.seoMetaKeyWords}),t.meta.addTag({name:"description",content:v.seoInfo.seoMetaDescription}),t.meta.addTag({property:"og:keywords",content:v.seoInfo.seoMetaKeyWords}),t.meta.addTag({property:"og:title",content:v.seoInfo.seoTitle}),t.meta.addTag({property:"og:description",content:v.seoInfo.seoMetaDescription}),t.deals=((null!==(R=null==v?void 0:v.filtered_deals)&&void 0!==R?R:null==v?void 0:v.deals)||[]).map(p=>({rdid:p.RDID,title:p.LINEITEM,description:p.DESCRIPTION,price:p.AMOUNT,miid:p.MIID,menuItem:p.MENUITEM})),t.infoRestaurant=v.infoRestaurant,t.entityAddress=v.entityAddress,t.removeAddressAndOrder(t.params),t.cuisines=[],ie.each(t.restaurant.cuisines,p=>{t.cuisines.push(p.name)}),t.cuisines=t.cuisines.join(", "),""!=v.hoursOverrideMessage&&(t.hoursOverrideMessage=v.hoursOverrideMessage),v.hoursOverrides&&Object.keys(v.hoursOverrides).length>0?(t.showRestoAvailabilityPopup="1"===v.hoursOverrides.POPUPMESSAGE,t.displayRestoAvailabilityMsg="1"===v.hoursOverrides.POPUPMESSAGE):(t.showRestoAvailabilityPopup=!1,t.displayRestoAvailabilityMsg=!1),t.restaurant&&t.restaurant.menu){var m;t.menuId=t.restaurant.menu.menuId;let p=t.getNextAvailableTimeForRestaurant(),S="N";console.log("order?.infoDeliveryAddress?.ADDRESS1:",null==l||null===(m=l.infoDeliveryAddress)||void 0===m?void 0:m.ADDRESS1),console.log("viewAll:",S);const U=yield t.storage.get("cached_address");!U&&"DELIVERY"==t.order.TYPE.toUpperCase()&&(console.log("inside if"),S="Y"),console.log("cached_address:",U),console.log("viewAll:",S),t.restAPI.getMenu(t.route.snapshot.params.rid,l.infoDelivery.SHIFT,l.infoDelivery.DELIVERYDOW,p,l.infoDelivery.DLID,S).subscribe(function(){var N=(0,g.Z)(function*(x){if
1(t.restAPI.displaySpecialInstructions=(null==x?void 0:x.hide_special_instructions)||!1,t.specialInstructionsLength=(null==x?void 0:x.item_si_limit)>0?null==x?void 0:x.item_si_limit:2e3,1==(null==x?void 0:x.xl_menu)||0==(null==x?void 0:x.xl_menu)?(t.xlMenu=x.xl_menu,t.mainXlMenuCheck=x.xl_menu):(t.xlMenu=!0,t.mainXlMenuCheck=!0),1==t.xlMenu){let T=!1,D=yield t.cartAPI.getCartData();if(null!=x&&x.sections){var _=yield x.sections.map(u=>(u.open=!1,u.fadeIn=!0,u.largeMenu=!0,u.xlCheck=!0,u.menuItems&&u.menuItems.map(function(){var P=(0,g.Z)(function*(O){O.isImageLoad=!1,O.cartCount=0,D&&D.items.forEach(Z=>{Z.MIID==O.menuItemId&&(O.cartCount=O.cartCount+Z.QUANTITY)})});return function(O){return P.apply(this,arguments)}}()),"POPULAR"==u.menuHeadingId&&(t.popularSection=u,t.popularSection.menuItems.forEach(P=>{""!=P.menuItemImage&&(t.sliderNextPrev=!0)}),t.allPopularSectionMenuItems=t.popularSection.menuItems),T&&"Y"!=u.master_header&&(u.open=!1),"Y"==u.master_header&&(T=!0),0==t.xlMenu&&(u.open=!0),u));let I=[];_.forEach((u,P)=>{var O,Z,h;if(P<(null===(O=_)||void 0===O?void 0:O.length)-1)"Y"==_[P].master_header&&"Y"==_[P+1].master_header||("Y"==_[P].master_header||_[P].menuItems&&(null===(h=_[P].menuItems)||void 0===h?void 0:h.length)>0)&&I.push(u);else if(P==(null===(Z=_)||void 0===Z?void 0:Z.length)-1&&"Y"!=_[P].master_header){var J;_[P].menuItems&&(null===(J=_[P].menuItems)||void 0===J?void 0:J.length)>0&&I.push(u)}}),t.menuSections=I}else console.log("\u26a0\ufe0f No menu sections returned - menu may be empty for this time/date"),t.menuSections=[],t.allItemSections=[];t.allItemSections=t.menuSections.map(I=>I),t.footerService.menuSections.emit(t.menuSections),""==l.infoDelivery.DELIVERYTIME&&(l.infoDelivery.DELIVERYTIME="Unavailable");try{t.appendRWGTokenintoOrder(l)}catch(I){console.log(I)}t.restAPI.restaurantAvailiability(t.route.snapshot.params.rid,l).subscribe(function(){var I=(0,g.Z)(function*(u){let P;const O=t.consumeAvailabilityAreaAlertSuppress();u&&"unavailable"==u[0]&&t.restAPI.isRestaurantPage||u&&"unavailable_geo"==u[0]&&t.restAPI.isRestaurantPage?(O||t.presentRestaurantUnavailableInAreaAlert(u[0]),t.restaurantClosed=!0):u&&"open"!=u[0]?(t.restaurantClosed=!0,t.restAPI.isRestaurantPage&&t.setClosingTime((null==u?void 0:u.closing_time)||"")):(u&&"open"==u[0]&&u.closing_time&&"unavailable"!=u.closing_time.toLowerCase()&&t.restAPI.isRestaurantPage&&t.setClosingTime((null==u?void 0:u.closing_time)||""),t.restaurantClosed=!1,null!=u&&u.takeout_prep_time&&(t.restaurant.takeOutTime=null==u?void 0:u.takeout_prep_time),t.allItemSections.forEach(Z=>{P||Z.menuItems&&t.tempMIID&&(P=Z.menuItems.find(h=>h.menuItemId==t.tempMIID.menuItemId))})),t.removeAddressAndOrder(t.params),t.tempMIID&&t.tempRID&&(t.restaurantClosed?t.presentAlert():P?0==t.hits&&!t.restaurantClosed&&(t.addToCart(null,t.tempMIID,t.tempRID,t.restaurant.isEstore),t.presentItemAddedToast(t.tempMIID.menuItemName),t.hits++):t.presentItemNotFoundAlert()),t.storage.get("pendingItemReopen").then(function(){var Z=(0,g.Z)(function*(h){if(h){if(h.rid!=t.route.snapshot.params.rid)return console.log("RID mismatch, removing pendingItemReopen"),void t.storage.remove("pendingItemReopen");if("DELIVERY"==t.order.TYPE.toUpperCase()&&!(yield t.storage.get("cached_address")))return console.log("No cached address for DELIVERY, removing pendingItemReopen"),void t.storage.remove("pendingItemReopen");t.storage.remove("pendingItemReopen");let V=null;t.allItemSections.forEach(z=>{!V&&z.menuItems&&(V=z.menuItems.find(A=>A.menuItemId==h.item.menuItemId))}),V?t.addPendingItemToCart(h):t.presentItemNotFoundAlert()}});return function(h){return Z.apply(this,arguments)}}()),i&&d.dismiss(),t.hideSkeleton=!0,t.showingResults=!1});return function(u){return I.apply(this,arguments)}}(),I=>{console.log("err===>",I),i&&d.dismiss()}),t.storage.set("estores",null!=x.estores?x.estores:[])}else{let D=yield t.cartAPI.getCartData();if(null!=x&&x.sections){_=yield x.sections.map(P=>(P.open=!1,P.fadeIn=!0,P.largeMenu=!1,P.menuItems&&P.menuItems.map(function(){var O=(0,g.Z)(function*(Z){Z.isImageLoad=!1,Z.cartCount=0,D&&D.items.forEac
1h(h=>{h.MIID==Z.menuItemId&&(Z.cartCount=Z.cartCount+h.QUANTITY)})});return function(Z){return O.apply(this,arguments)}}()),"POPULAR"==P.menuHeadingId&&(t.popularSection=P,t.popularSection.menuItems.forEach(O=>{""!=O.menuItemImage&&(t.sliderNextPrev=!0)}),t.allPopularSectionMenuItems=t.popularSection.menuItems),0==t.xlMenu&&(P.open=!0),P));let u=[];_.forEach((P,O)=>{var Z,h,J;if(O<(null===(Z=_)||void 0===Z?void 0:Z.length)-1)"Y"==_[O].master_header&&"Y"==_[O+1].master_header||("Y"==_[O].master_header||_[O].menuItems&&(null===(J=_[O].menuItems)||void 0===J?void 0:J.length)>0)&&u.push(P);else if(O==(null===(h=_)||void 0===h?void 0:h.length)-1&&"Y"!=_[O].master_header){var V;_[O].menuItems&&(null===(V=_[O].menuItems)||void 0===V?void 0:V.length)>0&&u.push(P)}}),t.menuSections=u}else t.menuSections=[],t.allItemSections=[];t.allItemSections=t.menuSections.map(I=>I),t.footerService.menuSections.emit(t.menuSections),""==l.infoDelivery.DELIVERYTIME&&(l.infoDelivery.DELIVERYTIME="Unavailable");try{t.appendRWGTokenintoOrder(l)}catch(I){console.log(I)}t.restAPI.restaurantAvailiability(t.route.snapshot.params.rid,l).subscribe(function(){var I=(0,g.Z)(function*(u){let P;console.log("availability=11==>",u);const O=t.consumeAvailabilityAreaAlertSuppress();u&&"unavailable"==u[0]&&t.restAPI.isRestaurantPage||u&&"unavailable_geo"==u[0]&&t.restAPI.isRestaurantPage?(O||t.presentRestaurantUnavailableInAreaAlert(u[0]),t.restaurantClosed=!0):u&&"open"!=u[0]?(t.restAPI.isRestaurantPage&&t.setClosingTime((null==u?void 0:u.closing_time)||""),t.restaurantClosed=!0):(u&&"open"==u[0]&&u.closing_time&&"unavailable"!=u.closing_time.toLowerCase()&&t.restAPI.isRestaurantPage&&t.setClosingTime((null==u?void 0:u.closing_time)||""),t.restaurantClosed=!1,null!=u&&u.takeout_prep_time&&(t.restaurant.takeOutTime=null==u?void 0:u.takeout_prep_time),t.allItemSections.forEach(Z=>{P||Z.menuItems&&t.tempMIID&&(P=Z.menuItems.find(h=>h.menuItemId==t.tempMIID.menuItemId))})),t.removeAddressAndOrder(t.params),t.tempMIID&&t.tempRID&&(t.restaurantClosed?t.presentAlert():P?0==t.hits&&!t.restaurantClosed&&(t.addToCart(null,t.tempMIID,t.tempRID,t.restaurant.isEstore),t.presentItemAddedToast(t.tempMIID.menuItemName),t.hits++):t.presentItemNotFoundAlert()),t.storage.get("pendingItemReopen").then(function(){var Z=(0,g.Z)(function*(h){if(h&&!t.restaurantClosed&&0==t.hits){if(h.rid!=t.route.snapshot.params.rid)return console.log("RID mismatch, removing pendingItemReopen"),void t.storage.remove("pendingItemReopen");if("DELIVERY"==t.order.TYPE.toUpperCase()&&!(yield t.storage.get("cached_address")))return console.log("No cached address for DELIVERY, removing pendingItemReopen"),void t.storage.remove("pendingItemReopen");t.storage.remove("pendingItemReopen");let V=null;t.allItemSections.forEach(z=>{!V&&z.menuItems&&(V=z.menuItems.find(A=>A.menuItemId==h.item.menuItemId))}),V?t.addPendingItemToCart(h):t.presentItemNotFoundAlert()}});return function(h){return Z.apply(this,arguments)}}()),i&&d.dismiss(),t.hideSkeleton=!0,t.showingResults=!1});return function(u){return I.apply(this,arguments)}}(),I=>{i&&d.dismiss()}),t.storage.set("estores",null!=x.estores?x.estores:[])}});return function(x){return N.apply(this,arguments)}}(),N=>{i&&d.dismiss()})}});return function(v){return c.apply(this,arguments)}}(),function(){var c=(0,g.Z)(function*(v){i&&d.dismiss()});return function(v){return c.apply(this,arguments)}}())}else t.restAPI.getRestaurantWithDummyAddress(t.route.snapshot.params.rid,t.orderDate,t.orderTime,t.orderType).subscribe(function(){var b=(0,g.Z)(function*(c){var v,w,R;if(t.restaurant=c,t.entityAddress=null==c?void 0:c.entityAddress,t.setRestaurantLogo(),t.getExpressHours(),t.footerService.pageInfo.emit({restaurantId:t.restaurant.entityId,restaurantName:null!==(v=t.restaurant)&&void 0!==v&&v.entityName?t.restaurant.entityName.replace(/\s+/g,"-")+"-menu":"restaurants"}),t.titleService.setTitle(c.seoInfo.seoTitle),t.meta.addTag({name:"keywords",content:c.seoInfo.seoMetaKeyWords}),t.meta.addTag({name:"description",content:c.seoInfo.seoMetaDescription}),t.meta.addTag({property:"og:keywords",content:c.seoInfo.seoMetaKeyWords}),t.meta.addTag({property:"og:title",content:c.seoInfo.seoTitle}),t.meta.addTag({property:"og:description",content:c.seoInfo.seoMetaDescription}),t.deals=((null!==(w=null==c?void 0:c.filtered_deals)&&void 0!==w?w:null==c?void 0:c.deals)||[]).map(k=>({rdid:k.RDID,title:k.LINEITEM,description:k.DESCRIPTION,price:k.AMOUNT,miid:k.MIID,menuItem:k.MENUITEM})),t.infoRestaurant=c.infoRestaurant,t.entityAddress=c.entityAddress,t.removeAddressAndOrder(t.params),t.cuisines=[],ie.each(t.restaurant.cuisines,k=>{t.cuisines.push(k.name)}),t.cuisines=t.cuisines.join(", "),""!=c.hoursOverrideMessage&&(t.hoursOverrideMessage=c.hoursOverrideMessage),c.hoursOverrides&&Object.keys(c.hoursOverrides).length>0?(t.showRestoAvailabilityPopup="1"===c.hoursOverrides.POPUPMESSAGE,t.dis
1playRestoAvailabilityMsg="1"===c.hoursOverrides.POPUPMESSAGE):(t.showRestoAvailabilityPopup=!1,t.displayRestoAvailabilityMsg=!1),t.restaurant&&t.restaurant.menu&&(t.menuId=t.restaurant.menu.menuId,t.restAPI.getFullMenu(t.restaurant.menu.menuId,t.route.snapshot.params.rid).subscribe(function(){var k=(0,g.Z)(function*(m){if(t.menuSections.length>0)t.hideSkeleton=!0;else if(1==(null==m?void 0:m.xl_menu)||0==(null==m?void 0:m.xl_menu)?(t.xlMenu=m.xl_menu,t.mainXlMenuCheck=m.xl_menu):(t.xlMenu=!0,t.mainXlMenuCheck=!0),1==t.xlMenu){let S=!1,U=yield t.cartAPI.getCartData();if(null!=m&&m.sections){var p=yield m.sections.map(x=>(x.open=!1,x.fadeIn=!0,x.largeMenu=!0,x.xlCheck=!0,x.menuItems&&x.menuItems.map(function(){var _=(0,g.Z)(function*(T){T.isImageLoad=!1,T.cartCount=0,U&&U.items.forEach(D=>{D.MIID==T.menuItemId&&(T.cartCount=T.cartCount+D.QUANTITY)})});return function(T){return _.apply(this,arguments)}}()),"POPULAR"==x.menuHeadingId&&(t.popularSection=x,t.popularSection.menuItems.forEach(_=>{""!=_.menuItemImage&&(t.sliderNextPrev=!0)}),t.allPopularSectionMenuItems=t.popularSection.menuItems),S&&"Y"!=x.master_header&&(x.open=!1),"Y"==x.master_header&&(S=!0),0==t.xlMenu&&(x.open=!0),x));let N=[];p.forEach((x,_)=>{var T,D,I;if(_<(null===(T=p)||void 0===T?void 0:T.length)-1)"Y"==p[_].master_header&&"Y"==p[_+1].master_header||("Y"==p[_].master_header||p[_].menuItems&&(null===(I=p[_].menuItems)||void 0===I?void 0:I.length)>0)&&N.push(x);else if(_==(null===(D=p)||void 0===D?void 0:D.length)-1&&"Y"!=p[_].master_header){var u;p[_].menuItems&&(null===(u=p[_].menuItems)||void 0===u?void 0:u.length)>0&&N.push(x)}}),t.menuSections=N}else t.menuSections=[],t.allItemSections=[];t.allItemSections=t.menuSections.map(N=>N),t.footerService.menuSections.emit(t.menuSections),t.hideSkeleton=!0,t.showingResults=!1,t.storage.set("estores",null!=m.estores?m.estores:[])}else{let U=yield t.cartAPI.getCartData();if(null!=m&&m.sections){p=yield m.sections.map(_=>(_.open=!1,_.fadeIn=!0,_.largeMenu=!1,_.menuItems&&_.menuItems.map(function(){var T=(0,g.Z)(function*(D){D.isImageLoad=!1,D.cartCount=0,U&&U.items.forEach(I=>{I.MIID==D.menuItemId&&(D.cartCount=D.cartCount+I.QUANTITY)})});return function(D){return T.apply(this,arguments)}}()),"POPULAR"==_.menuHeadingId&&(t.popularSection=_,t.popularSection.menuItems.forEach(T=>{""!=T.menuItemImage&&(t.sliderNextPrev=!0)}),t.allPopularSectionMenuItems=t.popularSection.menuItems),0==t.xlMenu&&(_.open=!0),_));let x=[];p.forEach((_,T)=>{var D,I,u;if(T<(null===(D=p)||void 0===D?void 0:D.length)-1)"Y"==p[T].master_header&&"Y"==p[T+1].master_header||("Y"==p[T].master_header||p[T].menuItems&&(null===(u=p[T].menuItems)||void 0===u?void 0:u.length)>0)&&x.push(_);else if(T==(null===(I=p)||void 0===I?void 0:I.length)-1&&"Y"!=p[T].master_header){var P;p[T].menuItems&&(null===(P=p[T].menuItems)||void 0===P?void 0:P.length)>0&&x.push(_)}}),t.menuSections=x}else console.log("\u26a0\ufe0f No menu sections returned - menu may be empty for this time/date"),t.menuSections=[],t.allItemSections=[];t.allItemSections=t.menuSections.map(N=>N),t.footerService.menuSections.emit(t.menuSections),t.hideSkeleton=!0,t.showingResults=!1,t.storage.set("estores",null!=m.estores?m.estores:[])}});return function(m){return k.apply(this,arguments)}}(),k=>{i&&d.dismiss()})),l&&l.infoDelivery&&""==(null===(R=l.infoDelivery)||void 0===R?void 0:R.DELIVERYTIME)){l.infoDelivery.DELIVERYTIME="Unavailable";try{t.appendRWGTokenintoOrder(l)}catch(k){console.log(k)}t.restAPI.restaurantAvailiability(t.route.snapshot.params.rid,l).subscribe(function(){var k=(0,g.Z)(function*(m){const p=t.consumeAvailabilityAreaAlertSuppress();m&&"unavailable"==m[0]&&t.restAPI.isRestaurantPage||m&&"unavailable_geo"==m[0]&&t.restAPI.isRestaurantPage?(p||t.presentRestaurantUnavailableInAreaAlert(m[0]),t.restaurantClosed=!0):m&&"open"!=m[0]?(t.restaurantClosed=!0,t.restAPI.isRestaurantPage&&t.setClosingTime((null==m?void 0:m.closing_time)||"")):m&&"open"==m[0]&&m.closing_time&&"unavailable"!=m.closing_time.toLowerCase()&&t.restAPI.isRestaurantPage&&(t.setClosingTime((null==m?void 0:m.closing_time)||""),t.restaurantClosed=!1),null!=m&&m.takeout_prep_time&&(t.restaurant.takeOutTime=null==m?void 0:m.takeout_prep_time),t.removeAddressAndOrder(t.params),t.tempMIID&&t.tempRID&&(t.restaurantClosed&&t.presentAlert(),0==t.hits&&!t.restaurantClosed&&(t.addToCart(null,t.tempMIID,t.tempRID,t.restaurant.isEstore),t.presentItemAddedToast(t.tempMIID.menuItemName),t.hits++)),t.storage.get("pendingItemReopen").then(function(){var S=(0,g.Z)(function*(U){if(U&&!t.restaurantClosed&&0==t.hits){if(U.rid!=t.route.snapshot.params.rid)return console.log("RID mismatch, removing pendingItemReopen"),void t.storage.remove("pendingItemReopen");if("DELIVERY"==t.order.TYPE.toUpperCase()&&!(yield t.storage.get("cached_address")))return console.log("No cached address for DELIVERY, removing pendingItemReopen"),void t.storage.remove("pendingItemReopen");t.storage.remove("pendingItemReopen");let x=null;t.allItemSections.forEach(_=>{!x&&_.menuItems&&(x=_.menuItems.find(T=>T.menuItemId==U.item.menuItemId))}),x?t.addPendingItemToCart(U):t.presentItemNotFoundAlert()}});return function(U){return S.apply(this,arguments)}}())});return function(m){return k.apply(this,arguments)}}())}i&&d.dismiss()});return function(c){return b.apply(this,arguments)}}(),function(){var b=(0,g.Z)(function*(c){i&&d.dismiss()});return function(c){return b.apply(this,arguments)}}())});return function(l){return a.apply(this,arguments)}}())}).apply(this,arguments)}showClosingAlert(){var t=this;return(0,g.Z)(function*(i=!1){try{const a=Array.isArray(t.orderHours)&&t.orderHours.length>0&&t.orderHours[0]&&"UNAVAILABLE"===t.orderHours[0][0];var o;if((t.restaurantClosed&&a&&t.restAPI.isRestaurantPage||i)&&0==t.showRestoAvailabilityPopup)return(yield t.storage.get("cached_address"))?void(yield t.alertManager.presentAlert({header:t.translate.instant("storeClosed"),backdropDismiss:!1,message:"This restaurant is closed for today's orders. You can still place an order for future dates.",buttons:null!==(o=t.vendorService)&&void 0!==o&&o.IS_SINGLE_RESTAURANT||t.singleEmbededLink?[{text:"Change Date/Time",handler:()=>{t.openAddressModal()}}]:[{text:"Continue Ordering",role:"cancel",cssClass:"secondary",handler:()=>{}},{text:"View Available Stores",handler:(d=(0,g.Z)(function*(){t.router.navigate(["/restaurants"])}),function(){return d.apply(this,arguments)})}]})):void t.openAddressModal()}catch(a){console.log("error",a)}var d}).apply(this,arguments)}openRestInfoModal(){this.presentRestInfoModal(this.restaurant)}showBoxMessage(t){this.showOuterMessageBox=t,this.showQuestionMarkIcon=!0}
1showHideMessage(t){this.showMoreMessage=t,this.showLessMessage=!t}showRestoAvailabilityMsg(t){this.showRestoAvailabilityIcon=!0,this.showRestoAvailabilityPopup=!0,this.displayRestoAvailabilityMsg=t}toggleSection(t,i){var o=this;return(0,g.Z)(function*(){let a=t;const l=yield o.loadingCtrl.create({message:"Loading"}),d=!o.menuSections[t].open;var f;if(f=!o.xlMenu||1!=o.menuSections[t].xlCheck&&1!=o.mainXlMenuCheck?o.menuSections[t].largeMenu:!o.menuSections[t].largeMenu,!i||1!=o.menuSections[t].open){if(o.menuSections[t].open=d,0==o.menuSections[t].open&&1==o.menuSections[t].xlCheck)if("Y"==o.menuSections[a].master_header){if(o.menuSections[a+1])for(;"N"==o.menuSections[a+1].master_header;){var C;if(a+=1,o.menuSections[a].xlCheck=!1,a+1==(null===(C=o.menuSections)||void 0===C?void 0:C.length))break}}else o.menuSections[t].xlCheck=!1;if(o.menuSections[t].largeMenu=f,setTimeout(()=>{o.menuSections[t].fadeIn=!0},200),"Y"==o.menuSections[t].master_header){if(o.menuSections[t].xlCheck=!0,o.xlMenu=!0,o.menuSections[t+1])for(;"N"==(null===(E=o.menuSections[t+1])||void 0===E?void 0:E.master_header);){var E,b;o.menuSections[t+1].xlCheck=!0,o.menuSections[t+=1].open=!1,o.menuSections[t].largeMenu=!0,o.menuSections[t].hide=!d,setTimeout(()=>{o.menuSections[t].fadeIn=!0},200),t+1==(null===(b=o.menuSections)||void 0===b?void 0:b.length)&&(yield l.dismiss())}yield l.dismiss()}yield l.dismiss()}})()}presentEditItemModal(t,i,o,a,l){var d=this;return(0,g.Z)(function*(){const f=yield d.modalCtrl.create({component:ve.X,animated:!0,componentProps:{item:t,rid:i,currentItem:o,edit:a,isestore:l},cssClass:"itemModalPage"});return f.onDidDismiss().then(()=>{d.updateStatusBarColorDuringScroll()}),yield f.present()})()}startNewOrder(){var t=this;this.storage.get("cached_address").then(i=>{null!=i?this.restAPI.getRestaurants(i,"ASAP","DELIVERY").subscribe(function(){var o=(0,g.Z)(function*(a){yield t.storage.get("order").then(function(){var l=(0,g.Z)(function*(d){yield t.storage.get("prev_tipOption").then(function(){var f=(0,g.Z)(function*(C){var y;null!=d&&null!==(y=d.infoOrder)&&void 0!==y&&y.tipOption?yield t.storage.set("prev_tipOption",d.infoOrder.tipOption):yield t.storage.set("prev_tipOption",C)});return function(C){return f.apply(this,arguments)}}())});return function(d){return l.apply(this,arguments)}}()),t.storage.remove("restaurants"),t.storage.remove("order"),t.storage.remove("order_hours"),t.storage.remove("payment_methods"),t.storage.set("restaurants",a.restaurants),t.storage.set("order",a.order),t.storage.set("order_hours",a.order_hours),t.storage.set("payment_methods",a.payment_methods),t.orderAPI.newSettings.emit()});return function(a){return o.apply(this,arguments)}}()):this.addressAPI.addressModalOpen.emit({...this.addressModalRestaurantOrderTypeProps()})})}presentItemModal(t,i,o){var a=this;return(0,g.Z)(function*(l,d,f,C=!1,y=null){var E,b;let c="";a.restaurant&&a.restaurant.logo&&(c=a.restaurant.logo);const v=yield a.storage.get("cached_address");let w=a.restaurantClosed;return"DELIVERY"===(null===(E=a.order)||void 0===E||null===(b=E.TYPE)||void 0===b?void 0:b.toUpperCase())&&!v&&(w=!0),yield(yield a.modalCtrl.create({component:ve.X,animated:!0,componentProps:{item:l,rid:d,restaurant:a.restaurant,closed:w,isestore:f,restLogo:c,pendingItem:C,pendingCartItem:y,specialInstructionsLength:a.specialInstructionsLength},cssClass:"itemModalPage"})).present()}).apply(this,arguments)}presentRestInfoModal(t){var i=this;return(0,g.Z)(function*(){return yield(yield i.modalCtrl.create({component:Pe.M,animated:!0,componentProps:{restaurant:t}})).present()})()}addressModal(t,i){var o=this;return(0,g.Z)(function*(){o.tempMIID=t,o.tempRID=i.entityId;let a=!0;"DELIVERY"==o.orderType&&o.addressMatcher(o.order)&&(a=!1),o.addressAPI.addressModalOpen.emit({alert:o.translate.instant("locationCurrentlyClosed"),useCachedAddress:a,openItemAfter:!0,...o.addressModalRestaurantOrderTypeProps()})})()}ngOnDestroy(){void 0!==this.addressChange&&this.addressChange.unsubscribe(),void 0!==this.cartChange&&this.cartChange.unsubscribe(),this.footerService.hideBottomBar.emit(!1),this.footerService.menuSections.emit([]),this.footerCartCountSubscription.unsubscribe(),this.footerMenuSectionSubscription.unsubscribe(),this.countdownInterval&&clearInterval(this.countdownInterval),this.waitingForCountdownInterval&&clearInterval(this.waitingForCountdownInterval)}presentAlert(){var t=this;return(0,g.Z)(function*(){if(!t.router.url.includes("/restaurants")){const i=yield t.alertManager.presentAlert({header:t.translate.instant("restaurantUnavailable"),backdropDismiss:!1,message:t.translate.instant("restaurantUnavailableMessage"),buttons:[t.translate.instant("ok")]});
1t.unavailRestoFlag||(t.unavailRestoFlag=!0),i.onDidDismiss().then(o=>{t.unavailRestoFlag=!1})}})()}presentRestaurantUnavailableAlert(){var t=this;return(0,g.Z)(function*(){yield t.alertManager.presentAlert({header:t.translate.instant("restaurantUnavailable"),backdropDismiss:!1,message:t.translate.instant("restaurantCurrentlyUnavailable"),buttons:[{text:t.translate.instant("viewAvailableRestaurants"),handler:()=>{t.router.navigate(["/restaurants"])}}]})})()}restaurantSupportsTakeout(){var t,i,o;const a=null!==(t=null===(i=this.restaurant)||void 0===i?void 0:i.takeout)&&void 0!==t?t:null===(o=this.infoRestaurant)||void 0===o?void 0:o.takeout;return $.XJ(a)}restaurantSupportsDelivery(){var t,i,o;const a=null!==(t=null===(i=this.restaurant)||void 0===i?void 0:i.delivery)&&void 0!==t?t:null===(o=this.infoRestaurant)||void 0===o?void 0:o.delivery;return $.XJ(a)}addressModalRestaurantOrderTypeProps(){return{takeoutAvailable:this.restaurantSupportsTakeout(),deliveryAvailable:this.restaurantSupportsDelivery(),restaurantOrderTypesReady:!0}}presentIsNotTakeoutRestaurantAlert(){var t=this;return(0,g.Z)(function*(){yield t.alertManager.presentAlert({header:t.translate.instant("orderTypeNotSupported"),backdropDismiss:!1,message:t.translate.instant("restaurantDoesNotSupportTakeout"),buttons:[t.translate.instant("ok")]})})()}presentIsNotDeliveryRestaurantAlert(){var t=this;return(0,g.Z)(function*(){yield t.alertManager.presentAlert({header:t.translate.instant("orderTypeNotSupported"),backdropDismiss:!1,message:t.translate.instant("restaurantDoesNotSupportDelivery"),buttons:[t.translate.instant("ok")]})})()}dismissTopModalIfPresent(){var t=this;return(0,g.Z)(function*(){try{const i=yield t.modalCtrl.getTop();i&&(yield i.dismiss())}catch{}})()}suppressNextAvailabilityAreaAlert(){this.suppressAvailabilityAreaAlert=!0}consumeAvailabilityAreaAlertSuppress(){const t=this.suppressAvailabilityAreaAlert;return this.suppressAvailabilityAreaAlert=!1,t}switchToPickupFromAvailabilityAlert(){var t=this;return(0,g.Z)(function*(){return t.restaurantSupportsTakeout()?(t.orderType="TAKEOUT",t.order&&(t.order.TYPE="TAKEOUT",yield t.storage.set("order",t.order)),t.restaurantClosed=!1,t.suppressNextAvailabilityAreaAlert(),t.firstTime=!0,yield t.getRestaurantInfo(),!0):(yield t.presentIsNotTakeoutRestaurantAlert(),!1)})()}switchToDeliveryFromAvailabilityAlert(){var t=this;return(0,g.Z)(function*(){return t.restaurantSupportsDelivery()?(t.orderType="DELIVERY",t.order&&(t.order.TYPE="DELIVERY",yield t.storage.set("order",t.order)),t.restaurantClosed=!1,t.suppressNextAvailabilityAreaAlert(),yield t.openAddressModal(),yield t.getRestaurantInfo(),!0):(yield t.presentIsNotDeliveryRestaurantAlert(),!1)})()}presentRestaurantUnavailableInAreaAlert(t){var i=this;return(0,g.Z)(function*(){var o;if(!i.restAPI.isRestaurantPage)return;const a=((null===(o=i.order)||void 0===o?void 0:o.TYPE)||i.orderType||"").toUpperCase();if("TAKEOUT"===a&&!i.restaurantSupportsTakeout()){const d=[];return i.restaurantSupportsDelivery()&&d.push({text:i.translate.instant("continueWithDelivery"),handler:(f=(0,g.Z)(function*(){yield i.switchToDeliveryFromAvailabilityAlert()}),function(){return f.apply(this,arguments)})}),d.push({text:i.translate.instant("viewPickupRestaurants"),handler:function(){var f=(0,g.Z)(function*(){yield i.dismissTopModalIfPresent(),i.router.navigate(["/restaurants"])});return function(){return f.apply(this,arguments)}}()}),void(yield i.alertManager.presentAlert({header:i.translate.instant("restaurantUnavailable"),backdropDismiss:!1,message:i.translate.instant("restaurantDoesNotOfferPickup"),buttons:d}))}var f,d;if("TAKEOUT"===a){if("unavailable_geo"===t)return;return"unavailable"===t?void(yield i.alertManager.presentAlert({header:i.translate.instant("restaurantUnavailable"),backdropDismiss:!1,message:i.translate.instant("restaurantNotAvailableForLocation"),buttons:[{text:i.translate.instant("updateOrderSettings"),handler:()=>{i.openAddressModal()}},{text:i.translate.instant("viewOtherRestaurants"),handler:(d=(0,g.Z)(function*(){yield i.dismissTopModalIfPresent(),i.router.navigate(["/restaurants"])}),function(){return d.apply(this,arguments)})}]})):void(yield i.alertManager.presentAlert({header:i.translate.instant("restaurantClosed"),backdropDismiss:!1,message:i.translate.instant("restaurantClosedForDayMessage"),buttons:[{text:i.translate.instant("placeFutureOrder"),handler:()=>{i.openAddressModal()}},{text:i.translate.instant("viewOtherRestaurants"),handler:function(){var d=(0,g.Z)(function*(){yield i.dism
1issTopModalIfPresent(),i.router.navigate(["/restaurants"])});return function(){return d.apply(this,arguments)}}()}]}))}if("DELIVERY"===a&&!i.restaurantSupportsDelivery()){const d=[];return i.restaurantSupportsTakeout()&&d.push({text:i.translate.instant("continueWithPickup"),handler:function(){var f=(0,g.Z)(function*(){yield i.switchToPickupFromAvailabilityAlert()});return function(){return f.apply(this,arguments)}}()}),d.push({text:i.translate.instant("viewDeliveryRestaurants"),handler:function(){var f=(0,g.Z)(function*(){yield i.dismissTopModalIfPresent(),i.router.navigate(["/restaurants"])});return function(){return f.apply(this,arguments)}}()}),void(yield i.alertManager.presentAlert({header:i.translate.instant("restaurantUnavailable"),backdropDismiss:!1,message:i.translate.instant("restaurantDoesNotOfferDelivery"),buttons:d}))}if("DELIVERY"!==a||"unavailable_geo"!==t&&"unavailable"!==t)return;const l=[];i.restaurantSupportsTakeout()&&l.push({text:i.translate.instant("continueWithPickup"),handler:function(){var d=(0,g.Z)(function*(){yield i.switchToPickupFromAvailabilityAlert()});return function(){return d.apply(this,arguments)}}()}),l.push({text:i.translate.instant("viewDeliveryRestaurants"),handler:function(){var d=(0,g.Z)(function*(){yield i.dismissTopModalIfPresent(),i.router.navigate(["/restaurants"])});return function(){return d.apply(this,arguments)}}()}),yield i.alertManager.presentAlert({header:i.translate.instant("restaurantUnavailable"),backdropDismiss:!1,message:i.translate.instant("restaurantDoesNotDeliverToAddress"),buttons:l})})()}presentItemNotFoundAlert(){var t=this;return(0,g.Z)(function*(){yield t.alertManager.presentAlert({header:t.translate.instant("itemUnavailable"),backdropDismiss:!1,message:t.translate.instant("itemUnavailableMessage"),buttons:[t.translate.instant("ok")]})})()}addPendingItemToCart(t){null!=t&&t.cartItem&&this.cartAPI.addToCart(t.cartItem,this.restaurant,!1).then(i=>{i&&this.presentItemAddedToast(t.cartItem.ITEM)}).catch(i=>console.error("GLT-7327 - pending item re-add failed",i))}presentItemAddedToast(t){var i=this;return(0,g.Z)(function*(){yield i.alertManager.presentToast({message:`\u2713 "${t}" has been added to your cart!`,duration:3500,position:"middle",color:"dark",cssClass:"item-added-toast"})})()}itemSearch(){var t=this;return(0,g.Z)(function*(){if(null==t.search_criteria||null==t.search_criteria||""==t.search_criteria)return t.keyboard.hide(),t.clearSearch(),void(t.isSearching=!1);t.menuSections=t.allItemSections.map(i=>{const o=i.menuItems?i.menuItems.filter(a=>a.menuItemName.toLowerCase().includes(t.search_criteria.toLowerCase())):[];return{...i,menuItems:o}}).filter(i=>{var o;return(null===(o=i.menuItems)||void 0===o?void 0:o.length)>0}),t.keyboardVisible=!1,t.isSearching=!1})()}applyPartialFilter(t){const i=[];return this.allItemSections.map(o=>{o.menuItems&&o.menuItems.map(a=>{a.menuItemName.toLowerCase().includes(t)&&i.push(a)})}),i}onSuggestionClicked(t){this.useSuggestion=!1,this.suggestions=[],this.viewItem(t,this.restaurant.entityId,this.restaurant.isEstore)}handlerItemClicked(t){this.viewItem(t.item,this.restaurant.entityId,this.restaurant.isEstore),this.clearAndCloseSearchModal()}onSuggestion(t){var i;if(!this.isSearching)if(0==(null===(i=this.search_criteria.toString())||void 0===i?void 0:i.length))this.suggestions=[];else{let o=this.applyPartialFilter(t.target.value.toLowerCase());this.useSuggestion&&(this.suggestions=o),this.useSuggestion=!0}
1}searchHandler(){clearTimeout(this.timer),this.timer=setTimeout(()=>this.itemSearch(),1500)}closeSearchModal(){this.toggleFilterModal(!1),this.keyboardVisible=!1}clearAndCloseSearchModal(){this.searchBarValue="",this.searchBarFilterCount=0,this.totalFilterCount=0,this.footerService.filterCount.emit(0),this.dietryLabelTrue=!1,this.dietryLabelFalse=!0,this.clearSearch(),this.closeSearchModal()}clearSearch(){var t;this.search_criteria="",this.noResults=!1,this.keyboardVisible=!1,this.menuSections=this.allItemSections,0!=(null===(t=this.allPopularSectionMenuItems)||void 0===t?void 0:t.length)&&(this.popularSection.menuItems=this.allPopularSectionMenuItems)}searchPopup(){var t=this;return(0,g.Z)(function*(){t.keyboardVisible=!0,t.currentSearchInput.setFocus(),t.keyboard.show(),t.toggleFilterModal(!0)})()}findPos(t){var i=0;if(t&&t.offsetParent){do{i+=t.offsetTop}while(t=t.offsetParent);return i}return 0}scrollTo(t){this.selectedSection=t,this.changeRef&&!this.changeRef.destroyed&&this.changeRef.detectChanges(),this.scrollSelectedLeft(t),this.xlMenu&&this.toggleSection(t,!0);let i=this.document.getElementById(t),a=this.findPos(i)+this.scrollPosition,l=0;this.platform.is("cordova")?"iOS"==this.device.platform?l=a-80-this.contentPadding:"Android"==this.device.platform&&(l=a-52-this.contentPadding):l=a-60-this.contentPadding,this.showSticky&&(l+=40),"search_wrapper"==t&&(l-=5,this.searchInput.setFocus(),this.keyboard.show()),this.content.scrollToPoint(0,l,500)}scrollSelectedLeft(t){let i=this.document.getElementById(t);this.document.getElementById("menu_scroller").scrollTo({top:0,left:i.offsetLeft-20,behavior:"smooth"})}isImageRemote(t){return!!t&&0==t.search("https")}logScrolling(t){this.scrollPosition=t.detail.scrollTop}onOptionScroll(t){this.scrollToSection(t)}onImageLoadFunc(t){t.isImageLoad=!0}onImageError(t){t.target.src="assets/imgs/image-placeholder.png"}onLogoError(t){t.target.src=this.logoPlaceholder}getUserInfo(){this.storage.get("user").then(t=>{null!=t&&this.getOrders(t.email)})}getOrders(t){this.userAPI.getOrderHistory(t).subscribe(i=>{this.upcomingOrders=[],ie.each(i.orders,o=>{"DELIVERED"!=o.deliveryStatus&&"CANCELLED"!=o.deliveryStatus&&this.upcomingOrders.push(o)})},i=>{})}estWaitNdBuffer(t){return Number(t.ESTWAITBUFFER)>0?Number(t.ESTWAIT)+" - "+(Number(t.ESTWAIT)+Number(t.ESTWAITBUFFER)):Number(t.ESTWAIT)}getMenuItemDescriptionToShow(t){const i=this.isMobileView?65:115;return(null==t?void 0:t.length)<i?t:t.substr(0,i)+"\u2026"}hideMessageBox(){(0,Ce.H)(1e4).subscribe(()=>{this.showBoxMessage(!1),this.showQuestionMarkIcon=!0})}concatDollar(t){if(t)return t.includes("$")?t:"$"+t}setupLocationHeader(){var t=this;return(0,g.Z)(function*(){if(t.order){t.orderType=t.order.TYPE||t.sharedService.defaultOrderType.toUpperCase();const i=yield t.storage.get("cached_address");i?(t.orderAddress=i.ADDRESS1,t.orderAddressForLocationHeader=i.ADDRESS1,t.isOrderAvailable=!0,console.log("cachedAddress===>",t.orderAddressForLocationHeader)):t.isOrderAvailable=!1,t.order.infoDelivery.DELIVERYTIME?(t.convertTo12(t.order.infoDelivery.DELIVERYTIME),"TAKEOUT"==t.orderType&&(t.orderTime+=", "+ee()(t.order.infoDelivery.DELIVERYDATE,"MM/DD/YYYY").format("MM/DD"),t.isOrderAvailable=!0)):t.isOrderAvailable=!1}})()}convertTo12(t){if(console.log("time===>",t),this.config.international&&this.config.militaryTime&&""!=t)this.orderTime=t;else{if("ASAP"==t)return this.orderTime=this.translate.instant("asap"),void this.appendDateForTakeout();if(""!=t){t.toString();var i=t.indexOf(":"),o=+t.substr(0,i),l=o<12||24===o?"AM":"PM";return t=(o%12||12)+t.substr(i,3)+" "+l,this.orderTime=t,t}this.orderTime=this.translate.instant("selectTime")}}onLocationHeaderClick(t){t&&this.openAddressModal()}openAddressModal(){var t=this;return(0,g.Z)(function*(){const i=yield t.loadingCtrl.create({message:t.translate.instant("action.pleaseWait")});i.present();const o=yield t.storage.get("cached_address");if(o&&o.ADDRESS1){var a,l,d,f;let{ADDRESS1:C,ZIP:y,STATE:E,CITY:b,PLACE:c}=o;"DELIVERY"==t.orderType&&!1===t.sharedService.showDeliveryAddress&&(C="",c=""),t.addressMatcher(t.order)&&(C="",c=""),t.addressAPI.addressModalOpen.emit({preselectedAddress:{ZIP:y,ADDRESS1:C,STATE:E,CITY:b,PLACE:c,DIRECTIONS:(null===(a=t.order)||void 0===a||null===(l=a.infoDeliveryAddress)||void 0===l?void 0:l.DIRECTIONS)||(null===(d=t.order)||void 0===d||null===(f=d.infoDeliveryAddress)||void 0===f?void 0:f.directions)},...t.addressModalRestaurantOrderTypeProps()})}else t.addressAPI.addressModalOpen.emit({...t.addressModalRestaurantOrderTypeProps()});i&&(null==i||i.dismiss())})()}checkRemainingTime(t,i){var o=this;return(0,g.Z)(function*(){i?yield o.alertManager.presentAlert({header:o.translate.instant("storeClosingSoon"),message:"This restaurant will close shortly. Please complete your order quickly.",cssClass:"closing-alert",buttons:[{text:"Continue Ordering",role:"confirm",cssClass:"primary"}]}):t<=20&&t>0&&!o.restaurantClosed&&!i&&(yield o.alertManager.presentAlert({header:o.translate.instant("storeClosingSoon"),message:`This restaurant will close in ${t} minute${1===t?"":"s"}. Please complete your order quickly.`,cssClass:"closing-alert",buttons:[{text:"Continue Ordering",role:"confirm",cssClass:"primary"}]}))})()}appendRWGTokenintoOrder(t){if(null==t)return;let i=null,o=null;this.sharedService.getRwgToken()&&(i=this.sharedService.getRwgToken()),this.sharedService.getRid()&&(o=this.sharedService.getRid()),i&&o&&(t.additionalInfo.rwg_token=i,t.additionalInfo.rid=o,this.sharedService.isLogin&&(t.additionalInfo.uid=this.sharedService.userObj.uid));const a=this.sharedService.getReferral();a&&(t.additionalInfo.referral=a)}onResize(t){this.restAPI.setResponsiveColumns(),this.numOfColumns=this.restAPI.numOfColumns}}return(r=s).\u0275fac=function(t){return new(t||r)(e.Y36(ne.gz),e.Y36(oe.T),e.Y36(ye.p),e.Y36(ae.D),e.Y36(se.N),e.Y36(ne.F0),e.Y36(Q.Ye),e.Y36(Ae.A),e.Y36(L.IN),e.Y36(L.Br),e.Y36(L.HT),e.Y36(le.Ke),e.Y36(de.D),e.Y36(be.N1),e.Y36(K.sK),e.Y36(Ee.M),e.Y36(L.t4),e.Y36(Se.A),e.Y36(e.sBO),e.Y36(ce.v),e.Y36(Re.K),e.Y36(ue.B),e.Y36(xe.Dx),e.Y36(xe.h_),e.Y36(ke.n),e.Y36(De.b),e.Y36(Q.K0),e.Y36(L.yF),e.Y36(Ze.r),e.Y36(L.jP,8))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-restaurant"]],viewQuery:function(t,i){if(1&t&&(e.Gf(ut,5),e.Gf(pt,5),e.Gf(L.W2,5),e.Gf(gt,5),e.Gf(mt,5),e.Gf(_t,5),e.Gf(ht,5,e.SBq)),2&t){let o;e.iGM(o=e.CRH())&&(i.popularSectionSlider=o.first),e.iGM(o=e.CRH())&&(i.contentScroll=o.first),e.iGM(o=e.CRH())&&(i.content=o.first),e.iGM(o=e.CRH())&&(i.searchInput=o.first),e.iGM(o=e.CRH())&&(i.currentSearchInput=o.first),e.iGM(o=e.CRH())&&(i.stickyHeader=o.first),e.iGM(o=e.CRH())&&(i.myDivs=o)}},hostBindings:function(t,i){1&t&&e.NdJ("resize",function(a){return i.onResize(a)},!1,e.Jf7)},decls:25,vars:30,consts:[[3,"hideBackButton","pageTitle","ngStyle",4,"ngIf"],[3,"ngClass",4,"ngIf"],[1,"restaurant-content",3,"scrollEvents","ionScroll","ionScrollEnd"],["contentScroll",""],[1,"scrollable",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],["style","height: 316px;",3,"ngClass",4,"ngIf"],["class","ion-padding",4,"ngIf"],["id","stickyHeader","class","sticky-header",4,"ngIf"],[1,"sticky-header"],[1,"ion_scroll_rest",3,"ngClass"],["class","menu_wrapper ion-
1padding","style","background: var(--glue-menu-page-filters-section-background-color);",4,"ngIf"],[4,"ngIf"],["class","restaurants-cards-container","style","background: var(--glue-menu-page-items-section-background-color);",4,"ngIf"],["class","clearfix restaurants-cards-container",4,"ngIf"],[1,"clearfix","restaurants-cards-container"],[3,"ngClass"],["class","close",3,"click",4,"ngIf"],[1,"content"],["class","no-items-container",4,"ngIf"],["class","ion-innerMenu","style","background: var(--glue-menu-page-items-section-background-color);",4,"ngIf"],["style","padding: 0;",4,"ngIf"],["class","no_matches",4,"ngIf"],["class","menu_wrapper","style","background: var(--glue-menu-page-items-section-background-color);",4,"ngIf"],[3,"hideBackButton","pageTitle","ngStyle"],["hidden","true",3,"isOpen"],[3,"isMenuPage","textPlaceholder","restaurants","searchBarInput","activeDietaryFilters","dietaryFilterItems","isRestaurantItems","orderType","usesSort","onFiltered","onOptionScroll","onClearAll","onItemClicked","onFilteredMenuItems","onClose"],[3,"ngStyle"],["size","12",1,"ion-no-padding",2,"height","100%"],["src","assets/imgs/image-placeholder.png","alt","Restaurant background header","class","background-restaurant",4,"ngIf"],["class","background-restaurant",3,"src","error",4,"ngIf"],["class","restaurant-logo-container",4,"ngIf"],["src","assets/imgs/image-placeholder.png","alt","Restaurant background header",1,"background-restaurant"],[1,"background-restaurant",3,"src","error"],[1,"restaurant-logo-container"],[3,"src","error"],[2,"height","316px",3,"ngClass"],["scroller",""],["src","assets/imgs/image-placeholder.png","alt","Restaurant background header","class"," background-restaurant-web",4,"ngIf"],["class","background-restaurant-web",3,"src","error",4,"ngIf"],["class"," background-restaurant-web",3,"src","error",4,"ngIf"],[1,"position-class"],["style","display: flex; gap: 8px;margin-left: 12px;",4,"ngIf"],["class","restaurant-description","style","margin-top: 26px;",4,"ngIf"],[1,"slide_ion_outside","shadow-card"],["src","assets/imgs/image-placeholder.png","alt","Restaurant background header",1,"background-restaurant-web"],[1,"background-restaurant-web",3,"src","error"],[2,"display","flex","gap","8px","margin-left","12px"],[2,"padding-top","4px"],["fill","clear","class","menu-back-button","aria-label","Back",3,"click",4,"ngIf"],["style","height: 130px;width: 130px;",4,"ngIf"],[2,"display","flex","padding-top","6px"],[1,"media-heading",2,"margin","0"],[1,"mobile_panel_btn",3,"click"],["name","information-circle-outline"],["class","mobile_panel_btn","style","position: absolute; width: 10%; right: 0; top: 0; padding-right: 50px; display: flex; justify-content: end;",3,"click",4,"ngIf"],["style","position: absolute; z-index: 100; width:40%; top: 0; right: 0; padding-right: 50px;display: flex;justify-content: end;",4,"ngIf"],["class","mobile_panel_btn","style","position: absolute;width: 10%;right: 0; top: 40px; padding-right: 50px;display: flex;justify-content: end;",3,"click",4,"ngIf"],["style","position: absolute;width: 40%; right: 0; top: 40px; padding-right: 50px; display: flex; justify-content: end;",4,"ngIf"],["fill","clear","aria-label","Back",1,"menu-back-button",3,"click"],["slot","icon-only","name","chevron-back-outline"],[2,"height","130px","width","130px"],[1,"restaurant-logo-container-web",2,"width","100%","height","100%","margin-right","6px"],[2,"width","100%","height","100%",3,"src","error"],[1,"mobile_panel_btn",2,"position","absolute","width","10%","right","0","top","0","padding-right","50px","display","flex","justify-content","end",3,"click"],["name","time-outline",1,"web-icon",2,"font-size","25px","padding","5px","box-shadow","0 0 3px 2px rgba(0, 0, 0, 0.45)"],[2,"position","absolute","z-index","100","width","40%","top","0","right","0","padding-right","50px","display","flex","justify-content","end"],[1,"animate__animated","animate__backInRight","animation-wrapper",2,"width","100% !important"],[1,"animation-inner","animate__animated","animate__wobble","animate__delay-1s","animate__faster",2,"background","white","opacity","0.9"],[1,"animation-content-div"],[1,"ion_col_pad0"],[1,"ion_col_icon"],["_ngcontent-xbs-c4","","name","close","ng-reflect-name","close","role","img","aria-label","close",1,"ios","hydrated",2,"position","absolute","width","18px","height","18px","cursor","pointer",3,"click"],["class","ani-para ion_message_customer ion-no-margin",3,"innerHTML",4,"ngIf"],[1,"ani-para","ion_message_customer","ion-no-margin",3,"innerHTML"],[1,"mobile_panel_btn",2,"position","absolute","width","10%","right","0","top","40px","padding-right","50px","display","flex","justify-content","end",3,"click"],["name","help-circle-outline",1,"web-icon",2,"font-size","25px","padding","5px","box-shadow","0 0 3px 2px rgba(0, 0, 0, 0.45)"],[2,"position","absolute","width","40%","right","0","top","40px","padding-right","50px","display","flex","justify-content","end"],["class","ani-para ion_message_customer",4,"ngIf"],[1,"ani-para","ion_message_customer"],["href","javascript:;",1,"ion_green_app_color",3,"click"],[1,"restaurant-description",2,"margin-top","26px"],[1,"restaurant_menu_info",2,"margin-left","61px"],["class","cuisines rest_cuisines","style","color:black; font-weight: 400;margin-bottom: 10px;",4,"ngIf"],["class","cuisines rest_cuisines",4,"ngIf"],["side","to
1p","trigger","hover-trigger","triggerAction","hover"],[1,"restaurant-address",2,"margin-left","61px","color","black","font-weight","400","margin-top","13px"],[1,"cuisines","rest_cuisines",2,"color","black","font-weight","400","margin-bottom","10px"],[1,"cuisines","rest_cuisines"],["id","hover-trigger"],[1,"ion-padding"],["style"," font-weight: 500;",4,"ngIf"],["style","margin-left: 10px; margin-right: 10px;","class","bullet",4,"ngIf"],[2,"font-weight","500"],[1,"bullet",2,"margin-left","10px","margin-right","10px"],["name","time-sharp"],["name","time"],[1,"section_header","ion-no-padding"],["animated","",1,"skeleton_header_title"],["animated","",1,"skeleton_header_description"],["id","stickyHeader",1,"sticky-header"],["stickyHeader",""],["class","restaurant-info-wrapper ion-padding-horizontal",4,"ngIf"],["class","restaurant-info-wrapper ion-padding-horizontal ion-align-items-center",4,"ngIf"],[1,"restaurant-info-wrapper","ion-padding-horizontal"],[1,"ion-align-items-center"],["size","4"],[1,"title-container"],[1,"media-heading"],["size","5",1,"ion-align-self-center"],[2,"width","100%",3,"isRestaurantScreen","shareableLink","isOrderAvailable","orderType","orderAddress","orderTime","onLocationHeaderClick"],["locationHeader",""],["size","3",4,"ngIf"],["size","3"],[1,"animate__animated","animate__backInRight","animation-wrapper","message-container"],[1,"animation-inner","animate__animated","animate__wobble","animate__delay-1s","animate__faster"],[1,"restaurant-info-wrapper","ion-padding-horizontal","ion-align-items-center"],["size","12",1,"info_container",2,"margin-bottom","0","padding-bottom","0"],["class","mobile_panel_btn",3,"click",4,"ngIf"],[1,"restaurant-description",3,"ngClass"],[1,"restaurant_menu_info"],["class","bullet",4,"ngIf"],[1,"restaurant-address"],["style","width: 100%;",3,"stickyMobile","removeMargin","shareableLink","isOrderAvailable","orderType","orderAddress","orderTime","onLocationHeaderClick",4,"ngIf"],["size","12","class","clear-filters-col",4,"ngIf"],["size","12","class","info_container info-no-margin-top",4,"ngIf"],["name","time-outline"],["name","help-circle-outline"],[1,"animate__animated","animate__backInRight","animation-wrapper"],[1,"bullet"],[2,"width","100%",3,"stickyMobile","removeMargin","shareableLink","isOrderAvailable","orderType","orderAddress","orderTime","onLocationHeaderClick"],["size","12",1,"clear-filters-col"],[1,"clear-filters-text-wrapper"],[1,"clear-filters-link",3,"click"],["size","12",1,"info_container","info-no-margin-top"],[1,"animate__animated","animate__backInRight","animation-wrapper-mobile"],[1,"bounce-in-right","animation-inner","animate__animated","animate__wobble","animate__delay-1s","animate__faster"],["_ngcontent-xbs-c4","","name","close","ng-reflect-name","close","role","img","aria-label","close",1,"ios","hydrated",2,"position","absolute","width","18px","height","18px",3,"click"],["style","width: 94%",4,"ngIf"],["style","width: 95%",4,"ngIf"],[2,"width","94%"],["href","javascript:;",3,"click"],[2,"width","95%"],[1,"menu_wrapper","ion-padding",2,"background","var(--glue-menu-page-filters-section-background-color)"],["animated","",1,"skeleton_sections",2,"height","20px","width","10%"],["animated","",1,"skeleton_sections",2,"height","30px","width","25%","margin-bottom","20px"],[4,"ngFor","ngForOf"],["size","12",1,"menu-skeleton-item"],["animated","",1,"skeleton_sections",2,"height","30px","width","20%"],[3,"isMenuPage","textPlaceholder","restaurants","isRestaurantItems","orderType","usesSort","onFiltered","onOptionScroll","onClearAll","onItemClicked","onFilteredMenuItems"],[1,"restaurants-cards-container",2,"background","var(--glue-menu-page-items-section-background-color)"],[2,"display","flex","align-items","center","flex","1","background","var(--glue-menu-page-items-section-background-color)"],["style","width: 100%;",3,"shareableLink","isOrderAvailable","orderType","orderAddress","orderTime","menuIpadClass","onLocationHeaderClick",4,"ngIf"],[1,"close",3,"click"],["name","close-outline"],[2,"width","100%",3,"shareableLink","isOrderAvailable","orderType","orderAddress","orderTime","menuIpadClass","onLocationHeaderClick"],[1,"content","no-results-content-wrapper"],[1,"no-results-inner"],["name","search-outline",1,"no-results-icon"],[1,"restaurants_page_heading","featured","no-results-heading"],[1,"no-results-message"],["color","primary",1,"clear-filters-button",3,"click"],["slot","start","name","close-circle-outline"],[1,"content","no-items-simple-wrapper"],[1,"no-items-heading"],[1,"no-items-container"],[1,"no-items"],[1,"change-time-text",3,"click"],[1,"ion-innerMenu",2,"background","var(--glue-menu-page-items-section-background-color)"],["class","restaurant-info-wrapper ion-
1padding-horizontal menu_wrapper deals-section-row",4,"ngIf"],["style","padding: 0 8px;","class","restaurant-info-wrapper ion-padding-horizontal menu_wrapper",3,"id",4,"ngFor","ngForOf"],[1,"restaurant-info-wrapper","ion-padding-horizontal","menu_wrapper","deals-section-row"],[3,"deals","item","restaurantClosed","viewItem","last","onImageLoadFunc","isImageRemote","onLogoError","shouldDisplayDescription","addToCart","removeFromCart","restaurant","presentItemModal","addressModal","addressMakerFromEntity","order","displaySpecialInstructions","specialInstructionsLength"],[1,"restaurant-info-wrapper","ion-padding-horizontal","menu_wrapper",2,"padding","0 8px",3,"id"],["class"," ion-no-padding section-list-header",3,"id",4,"ngIf"],["class","ion_menuHeadingDesc",4,"ngIf"],["style","width: 100%;","class","transparent-bg",4,"ngIf"],[1,"ion-no-padding","section-list-header",3,"id"],[1,"ion-no-padding","section-header-container",3,"ngClass","click"],[1,"menu_headings",3,"ngClass"],[2,"display","-ms-block","display","block","text-transform","capitalize",3,"innerHTML"],["name","chevron-forward-outline",4,"ngIf"],["name","chevron-down-outline",4,"ngIf"],["name","chevron-forward-outline"],["name","chevron-down-outline"],[1,"ion_menuHeadingDesc"],[3,"innerHTML"],[1,"transparent-bg",2,"width","100%"],[2,"padding","0"],[3,"ngClass","size",4,"ngFor","ngForOf"],[3,"ngClass","size"],[3,"item","restaurantClosed","viewItem","last","onImageLoadFunc","isImageRemote","onLogoError","shouldDisplayDescription","addToCart","removeFromCart","restaurant","presentItemModal","addressModal","addressMakerFromEntity","order","displaySpecialInstructions","specialInstructionsLength",4,"ngIf"],[3,"item","restaurantClosed","viewItem","last","onImageLoadFunc","isImageRemote","onLogoError","shouldDisplayDescription","addToCart","removeFromCart","restaurant","presentItemModal","addressModal","addressMakerFromEntity","order","displaySpecialInstructions","specialInstructionsLength"],[1,"restaurant-info-wrapper","menu_wrapper","ion-padding-horizontal","ion-innerMenu","menu_card_wrapper",2,"padding","0"],["style","margin-top: 18px",3,"ngClass","size",4,"ngFor","ngForOf"],[2,"margin-top","18px",3,"ngClass","size"],[1,"no_matches"],[1,"clear",3,"click"],[1,"menu_wrapper",2,"background","var(--glue-menu-page-items-section-background-color)"],[2,"justify-content","center","margin-bottom","30px"],["size","6",2,"display","flex","justify-content","center"],["animated","",1,"skeleton_sections",2,"height","50px","width","100%"],["size","1",2,"display","flex","justify-content","center"],[3,"size"],[3,"size",4,"ngFor","ngForOf"],["animated","",1,"skeleton_sections"]],template:function(t,i){1&t&&(e.YNc(0,vt,1,5,"app-main-header",0),e.YNc(1,It,3,15,"ion-content",1),e.TgZ(2,"ion-content",2,3),e.NdJ("ionScroll",function(a){return i.onScroll(a)})("ionScrollEnd",function(a){return i.onScrollEnd(a)}),e.TgZ(4,"div",4),e.YNc(5,Ot,6,7,"ion-row",5),e.YNc(6,tn,10,8,"ion-row",6),e.YNc(7,nn,7,0,"ion-list",7),e.YNc(8,Nn,4,2,"div",8),e.TgZ(9,"div",9)(10,"div",10),e.YNc(11,Un,4,2,"ion-grid",11),e.YNc(12,Hn,2,6,"div",12),e.qZA()(),e.YNc(13,Qn,5,6,"div",13),e.YNc(14,Gn,16,14,"div",14),e.YNc(15,Bn,7,8,"div",14),e.TgZ(16,"div",15)(17,"div",16),e.YNc(18,Kn,2,0,"div",17),e.qZA(),e.TgZ(19,"div",18),e.YNc(20,jn,5,0,"div",19),e.YNc(21,pi,3,2,"div",20),e.YNc(22,hi,3,1,"ion-grid",21),e.YNc(23,fi,10,9,"div",22),e.YNc(24,Ci,7,2,"ion-grid",23),e.qZA()()()()),2&t&&(e.Q6J("ngIf",!i.singleEmbededLink),e.xp6(1),e.Q6J("ngIf",i.isMobileView&&i.filterModalOpen),e.xp6(1),e.Q6J("scrollEvents",!0),e.xp6(2),e.Q6J("ngStyle",e.VKq(21,wi,i.contentPadding+"px")),e.xp6(1),e.Q6J("ngIf",i.isMobileView),e.xp6(1),e.Q6J("ngIf",!i.isMobileView),e.xp6(1),e.Q6J("ngIf",!i.hideSkeleton&&i.isMobileView),e.xp6(1),e.Q6J("ngIf",i.hideSkeleton),e.xp6(2),e.Q6J("ngClass",e.kEZ(23,Pi,!i.isMobileView,!i.isMobileView,i.isMobileView)),e.xp6(1),e.Q6J("ngIf",!(i.hideSkeleton||i.menuSections&&0!==i.menuSections.length)),e.xp6(1),e.Q6J("ngIf",i.hideSkeleton),e.xp6(1),e.Q6J("ngIf",i.hideSkeleton&&!i.showWebStickyInfo),e.xp6(1),e.Q6J("ngIf",(null==i.popularSection||null==i.popularSection.menuItems?null:i.popularSection.menuItems.length)<=0&&(null==i.menuSections?null:i.menuSections.length)<1&&(null==i.dietryItems?null:i.dietryItems.length)<1&&i.hideSkeleton&&(i.totalFilterCount>0||i.searchBarValue)),e.xp6(1),e.Q6J("ngIf",(null==i.popularSection||null==i.popularSection.menuItems?null:i.popularSection.menuItems.length)<=0&&(null==i.menuSections?null:i.menuSections.length)<1&&(null==i.dietryItems?null:i.dietryItems.length)<1&&i.hideSkeleton&&!i.totalFilterCount&&!i.searchBarValue),e.xp6(2),e.Q6J("ngClass",e.WLB(27,te,!i.isMobileView,i.isMobileView)),e.xp6(1),e.Q6J("ngIf",i.isMobileView),e.xp6(2),e.Q6J("ngIf",(null==i.menuSections?null:i.menuSections.length)<1&&i.hideSkeleton&&!i.hasSearched),e.xp6(1),e.Q6J("ngIf",i.dietryLabelFalse),e.xp6(1),e.Q6J("ngIf",i.dietryLabelTrue),e.xp6(1),e.Q6J("ngIf",i.hideSkeleton&&i.noResults),e.xp6(1),e.Q6J("ngIf",!i.hideSkeleton))},dependencies:[Q.mk,Q.sg,Q.O5,Q.PC,L.YG,L.wI,L.W2,L.jY,L.gu,L.q_,L.yh,L.Nd,L.CK,L.ki,L.d8,Le.c,Ne.$,Ye.N,rt,ct,Q.JJ,K.X$],styles:['.info_container[_ngcontent-%COMP%]{margin:10px 0}.ion_col_pad0[_ngcontent-%COMP%]{padding:0}ion-popover[_ngcontent-%COMP%]{--width: auto}@media (max-width: 786px){ion-popover[_ngcontent-%COMP%]{--width: 90vw}}.ion_solo_card[_ngcontent-%COMP%]{width:300px;
1height:415px}.info-no-margin-top[_ngcontent-%COMP%]{margin-top:0!important}.disabledicon[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}.popular-card-skelton[_ngcontent-%COMP%]{width:300px;height:300px}.popular-card-skelton[_ngcontent-%COMP%]   ion-skeleton-text[_ngcontent-%COMP%]{width:100%!important;height:100%!important}.ion_col_icon[_ngcontent-%COMP%]{display:flex;justify-content:end}.ion_message_customer[_ngcontent-%COMP%]{text-align:left;width:94%}.ion-mob-message-customer[_ngcontent-%COMP%]{width:100%;justify-content:center;display:flex}.slider-back-btn[_ngcontent-%COMP%]{position:absolute;font-size:34px;z-index:10;height:340px;width:150px;background:linear-gradient(90deg,white 0%,rgba(255,255,255,0) 75%,rgba(255,255,255,0) 150%)}.slider-back-btn[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{position:absolute;top:42%;left:0;margin-left:12px}.slider-back-btn[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]:hover{cursor:pointer}.slider-forward-btn[_ngcontent-%COMP%]{position:absolute;right:0;font-size:34px;z-index:10;height:340px;width:150px;background:linear-gradient(270deg,white 0%,rgba(255,255,255,0) 75%,rgba(255,255,255,0) 150%)}.slider-forward-btn[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{position:absolute;top:42%;right:0;margin-right:12px}.slider-forward-btn[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]:hover{cursor:pointer}.slider-back-btn-noImg[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{position:absolute;top:42%;left:0;margin-left:12px}.slider-forward-btn-noImg[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{position:absolute;top:42%;right:0;margin-right:12px}.slider-back-btn-noImg[_ngcontent-%COMP%]{position:absolute;left:25%;font-size:34px;z-index:10;height:160px;width:150px;background:linear-gradient(90deg,white 0%,rgba(255,255,255,0) 75%,rgba(255,255,255,0) 150%)}.slider-back-btn-noImg[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:0;margin-left:12px}.slider-back-btn-noImg[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]:hover{cursor:pointer}.slider-forward-btn-noImg[_ngcontent-%COMP%]{position:absolute;right:0;font-size:34px;z-index:10;height:160px;width:150px;background:linear-gradient(270deg,white 0%,rgba(255,255,255,0) 75%,rgba(255,255,255,0) 150%)}.slider-forward-btn-noImg[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{position:absolute;top:50%;right:0;margin-right:12px}.slider-forward-btn-noImg[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]:hover{cursor:pointer}.bounce-in-right[_ngcontent-%COMP%]{padding-top:10px!important;padding-right:10px!important;margin:auto;background-color:#fff;height:auto!important;width:100%;padding:16px;border-radius:8px;border:1px solid var(--ion-color-secondary);color:#3c3c3c;font-size:13px;text-align:left;font-family:Poppins,sans-serif;font-weight:400;box-shadow:1px 1px 2px -.5px var(--ion-color-secondary)}.bounce-in-right[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.ion_cursor_pointer[_ngcontent-%COMP%]{cursor:pointer}.ion_green_app_color[_ngcontent-%COMP%]{color:var(--ion-color-secondary)}.info_container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:90px;width:90px;margin-right:15px;float:left}.animation-wrapper[_ngcontent-%COMP%]{width:40%;float:right}.animation-wrapper-mobile[_ngcontent-%COMP%]{width:100%;float:right}.animation-inner[_ngcontent-%COMP%]{padding:6px 10px;border:1.5px solid var(--ion-color-secondary);border-radius:8px}.mobile_panel_btn[_ngcontent-%COMP%]{font-size:22px;color:var(--ion-color-secondary);cursor:pointer}.mobile_panel_btn[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}.mobile_panel_btn[_ngcontent-%COMP%]   ion-icon.web-icon[_ngcontent-%COMP%]{background-color:#fff;border-radius:50%}.ion_scroll_rest[_ngcontent-%COMP%]{overflow:scroll;background:var(--glue-menu-page-filters-section-background-color, #ffffff)}.menu_wrapper[_ngcontent-%COMP%]{width:100%}.menu_headings[_ngcontent-%COMP%]{width:100%;font-size:24px;font-weight:700;margin:0 0 10px}.master_headings[_ngcontent-%COMP%]{margin:0}.media-heading[_ngcontent-%COMP%]{margin-top:12px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.section_header[_ngcontent-%COMP%]{display:-ms-block;display:block;text-transform:capitalize}.menu_item[_ngcontent-%COMP%]{text-transform:capitalize;font-size:16px;color:#333;border:1px solid #ccc;border-radius:5px;margin-bottom:15px;cursor:pointer;display:flex;overflow:hidden}.menu_item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:5px}.menu_item[_ngcontent-%COMP%]:hover{background:#c1c1c1;border:1px solid #ccc}.containor_select_description[_ngcontent-%COMP%]{height:77px}.containor_select_description_mob[_ngcontent-%COMP%]{height:auto}.description-height[_ngcontent-%COMP%]{height:62px}.height_full[_ngcontent-%COMP%]{height:100%;justify-content:end!important}.item-name-price-container[_ngcontent-%COMP%]{display:flex;align-items:start;justify-content:space-between}ion-item.menu_item[_ngcontent-%COMP%]   .menu_item_title[_ngcontent-%COMP%], ion-item.menu_item[_ngcontent-%COMP%]   .menu_item_description[_ngcontent-%COMP%], ion-item.menu_item[_ngcontent-%COMP%]   .menu_item_price[_ngcontent-%COMP%]{display:block}.menu_item_inside[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:42px;flex-direction:column-reverse}.menu_item_title[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:12px;font-size:18px;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.menu_item_description[_ngcontent-%COMP%]{margin-top:0;font-weight:lighter;color:#545353;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.margin_zero[_ngcontent-%COMP%]{margin:0!important}.menu_item_price[_ngcontent-%COMP%]{font-size:14px;text-transform:none;color:#545454;font-weight:700;margin-top:8px}.no_data_masterHeader[_ngcontent-%COMP%]{display:none}.section[_ngcontent-%COMP%]{color:#333;width:100%;--inner-border-width: 0px 0px .55px 0px;margin:5px 0 0}.section-active[_ngcontent-%COMP%]{color:#333;width:100%;margin:17px 0 0;position:sticky;top:30}.list[_ngcontent-%COMP%]{margin-bottom:4px}.has-image[_ngcontent-%COMP%]{overflow:hidden}.has-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;object-position:center;width:100%;height:100%}.header-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:55px;max-height:55px;margin:5px 10px 5px 0}.ion_menuHeadingDesc[_ngcontent-%COMP%]{width:100%;background:#f7f7f7;border-radius:2px;border:1px solid #dadada;margin-bottom:8px;margin-top:8px;height:auto!important;font-style:italic;text-align:justify;padding:10px}.item_wrapper[_ngcontent-%COMP%]{width:100%;padding:10px 12px}.restaurant_menu_info[_ngcontent-%COMP%]{margin:0 0 5px}.info_margin[_ngcontent-%COMP%]{margin:5px 10px 5px 0;float:left;font-size:14px}.restaurant-card-cuisine[_ngcontent-%COMP%]{margin-bottom:0}.no_margin[_ngcontent-%COMP%]{margin:0}.skeleton_sections[_ngcontent-%COMP%]{height:165px;width:100%;border-radius:10px;margin-bottom:5px}.skeleton_header_title[_ngcontent-%COMP%]{height:35px;width:60%;border-radius:8px;margin-bottom:5px}.skeleton_header_description[_ngcontent-%COMP%]{height:35px;width:100%;border-radius:8px;margin-bottom:5px}#search_wrapper[_ngcontent-%COMP%]{padding:0 5px}#search_wrapper[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:20px;top:20%;position:relative}#search_wrapper[_ngcontent-%COMP%]   ion-input[_ngcontent-%COMP%]{font-size:16px}.clear_search[_ngcontent-%COMP%]{color:var(--ion-color-primary);margin:5px 20px 10px;text-decoration:underline}#arrow_clear[_ngcontent-%COMP%]{margin:0 0 0 -11px;font-size:32px}.showing_for[_ngcontent-%COMP%]{font-size:14px;margin:5px 0 0}.clear[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.no_matches[_ngcontent-%COMP%]{text-align:center;font-size:16px;margin-top:20%}.hidden[_ngcontent-%COMP%]{display:none}.header-icon[_ngcontent-%COMP%]{color:#8b8b8b}.menu-scroller[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.menu-scroller[_ngcontent-%COMP%]   .scroller-option[_ngcontent-%COMP%]{padding:5px 20px;display:inline-block;margin:1px 3px;font-size:15px;font-weight:400;cursor:pointer}.menu-scroller[_ngcontent-%COMP%]   .last-section[_ngcontent-%COMP%]{margin-right:60px}.scroller-option.unselected[_ngcontent-%COMP%]{background:#eee;color:#333;border-radius:12px}.scroller-option.selected[_ngcontent-%COMP%]{background:var(--ion-color-secondary);color:#fff;border-radius:12px}.mh-bold[_ngcontent-%COMP%]{font-weight:700!important}.master_header[_ngcontent-%COMP%]{font-weight:700;text-align:center;background-color:#eee;--inner-border-width: 0px;--background: transparent}ion-list[_ngcontent-%COMP%]{margin-bottom:10px}.master_header_list[_ngcontent-%COMP%]{margin:0}.last-child[_ngcontent-%COMP%]{--inner-border-width: 0}.search-fixed-right[_ngcontent-%COMP%]{height:60px;width:55px;padding:1px 0 0 4px;float:right;background:#fff}.menu-scroller[_ngcontent-%COMP%]{position:sticky;top:0px;z-index:10;overflow-x:scroll;overflow-y:hidden;white-space:nowrap;background:#fff;padding:15px 0;transform:translateZ(0);width:100%;min-height:105px}.item-list-active[_ngcontent-%COMP%], .item-list-hidden[_ngcontent-%COMP%]{opacity:0;transition:opacity .4s ease-in-out;width:100%}.item-list-active[_ngcontent-%COMP%]{opacity:1}.restaurant-logo-container[_ngcontent-%COMP%]{position:absolute;bottom:10px;z-index:101}.restaurant-logo-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:10px}.align-center[_ngcontent-%COMP%]{display:flex;align-items:center}.restaurant-address[_ngcontent-%COMP%]{margin-top:7px;margin-bottom:0;font-weight:500;margin-left:45px;font-size:17px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.search-section-container[_ngcontent-%COMP%]{display:flex}.search_criteria_container[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;position:relative;padding-left:10px}.clear_search_button[_ngcontent-%COMP%]{margin:0 20px;color:var(--ion-color-secondary);font-size:14px;text-decoration:underline}.clear-filters-col[_ngcontent-%COMP%]{padding:0 16px 8px}.clear-filters-col[_ngcontent-%COMP%]   .clear-filters-text-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.clear-filters-col[_ngcontent-%COMP%]   .clear-filters-text-wrapper[_ngcontent-%COMP%]   .clear-filters-link[_ngcontent-%COMP%]{color:var(--ion-color-primary);font-size:16px;font-weight:600;text-decoration:underline;cursor:pointer;padding:0;transition:opacity .2s ease;display:inline-block}.clear-filters-col[_ngcontent-%COMP%]   .clear-filters-text-wrapper[_ngcontent-%COMP%]   .clear-filters-link[_ngcontent-%COMP%]:active{opacity:.7}.search_input[_ngcontent-%COMP%]{margin:0 15px;--padding-bottom: 5px !important}.background-restaurant[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.menu-back-button[_ngcontent-%COMP%]{--background: black;--background-activated: black;--background-focused: black;--background-hover: black;
1--box-shadow: none;--color: white;--border-radius: 4px;--padding-start: 0;--padding-end: 0;height:34px;width:34px;margin:0}.menu-back-button[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:20px}.title-container[_ngcontent-%COMP%]{display:flex;align-items:center;max-width:100%}@media (min-width: 567px){.only-desktop[_ngcontent-%COMP%]{display:flex}.skeleton_header_title[_ngcontent-%COMP%]{height:35px;width:30%;border-radius:8px;margin-bottom:5px}.skeleton_header_description[_ngcontent-%COMP%]{height:35px;width:70%;border-radius:8px;margin-bottom:5px}.only-mobile[_ngcontent-%COMP%]{display:none}.menu_item_description[_ngcontent-%COMP%]{font-size:14px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.has-image[_ngcontent-%COMP%]{width:171px;height:140px}#section-search_wrapper[_ngcontent-%COMP%]{font-size:30px;position:absolute;background:var(--ion-color-primary);border-radius:25px;padding:5px;color:#fff;width:40px;cursor:pointer;right:0px;z-index:10}.search_criteria_input[_ngcontent-%COMP%]{border:1px solid #aaa;border-radius:20px;height:40px;width:100%;position:relative}.restaurant-logo-container[_ngcontent-%COMP%]{width:120px;right:10px}.restaurant-card-cuisine[_ngcontent-%COMP%]{font-size:16px}.media-heading[_ngcontent-%COMP%]{font-size:26px}.search_input[_ngcontent-%COMP%]{font-size:17px;--padding-top: 6px !important}}#stickyHeader[_ngcontent-%COMP%]{z-index:101}.sticky-header[_ngcontent-%COMP%]{position:sticky;top:0;z-index:100;background:white;box-shadow:0 3px 8px #a6adc933;margin:0 0 20px}@media (max-width: 567px){.only-desktop[_ngcontent-%COMP%]{display:none}.only-mobile[_ngcontent-%COMP%]{display:flex}.menu_item_description[_ngcontent-%COMP%]{margin-bottom:6px;font-size:12px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.has-image[_ngcontent-%COMP%]{width:85px;height:85px;flex-shrink:0}.menu_item[_ngcontent-%COMP%]{height:85px}#section-search_wrapper[_ngcontent-%COMP%]{font-size:20px;position:relative;top:18px;margin:0 20px 0 7px;left:2px;background:var(--ion-color-secondary);border-radius:25px;padding:5px;color:#fff}.search_criteria_input[_ngcontent-%COMP%]{border:1px solid #aaa;border-radius:20px;height:30px;margin-top:5px;width:100%}.restaurant-logo-container[_ngcontent-%COMP%]{width:85px;right:10px}.restaurant-card-cuisine[_ngcontent-%COMP%]{font-size:14px}.media-heading[_ngcontent-%COMP%]{font-size:20px}.search_input[_ngcontent-%COMP%]{font-size:14px;--padding-top: 5px !important;--padding-end: 30px !important}.search-section-container[_ngcontent-%COMP%]{height:65px;transition:height .35s,padding-top .15s}.menu_item_title[_ngcontent-%COMP%]{font-size:1.1rem!important}.add-remove-icon[_ngcontent-%COMP%]{font-size:30px!important}}.menu_item.menu_item_double[_ngcontent-%COMP%]{flex-direction:column!important;height:100%!important}.menu_item.menu_item_double[_ngcontent-%COMP%]   .has-image[_ngcontent-%COMP%], .menu_item.menu_item_double[_ngcontent-%COMP%]   .has-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%!important}.menu_item.menu_item_double[_ngcontent-%COMP%]   .item_wrapper[_ngcontent-%COMP%]{margin-left:0!important}.message-container[_ngcontent-%COMP%]{width:90%;display:flex;justify-content:center}.section-header-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;cursor:pointer;background-color:var(--glue-menu-page-items-section-background-color, #ffffff)}.suggestions[_ngcontent-%COMP%]{position:absolute;width:84%;border-radius:10px;background:white;border:1px solid #afafaf;box-shadow:1px 2px 7px #00000075;z-index:1000}.suggestions[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;padding:5px;height:35px;display:flex;border-bottom:1px solid #afafaf}.suggestions[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:hover{cursor:pointer;background:#e9e9e9}.suggestions[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:active{background:#d8d8d8}.suggestions[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{border-bottom:none;border-radius:0 0 10px 10px}.suggestions[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{border-radius:10px 10px 0 0}.suggestions[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%], .suggestions[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%}.suggestions[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{width:28px}.suggestions[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:18px;padding-left:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 768px){.suggestions[_ngcontent-%COMP%]{width:80%}}.popuplar-thumbnail[_ngcontent-%COMP%]{margin:auto;width:100%;height:auto;position:relative}.popuplar-thumbnail[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:contain}.popuplar-thumbnail-one[_ngcontent-%COMP%]{margin:auto;width:100%;height:auto;position:relative}.popuplar-thumbnail-one[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:contain}.popular-card[_ngcontent-%COMP%]{width:100%;height:auto}.no-img-popular-card[_ngcontent-%COMP%]{height:160px!important}.addtocart-wrapper[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0;width:100%}.popular-card-des[_ngcontent-%COMP%]{margin-bottom:46px}.font_bold[_ngcontent-%COMP%]{font-weight:700}.popular-card-title[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.popular-card-price[_ngcontent-%COMP%]{font-weight:700;margin:10px}.popular-card-one[_ngcontent-%COMP%]{padding:12px;margin-left:6vw;height:-moz-fit-content;height:fit-content}.popular-card-one[_ngcontent-%COMP%]   ion-card[_ngcontent-%COMP%]{margin:auto}.popular_heading[_ngcontent-%COMP%]{margin:0!important;padding-top:32px;padding-left:7%}.ion-innerMenu[_ngcontent-%COMP%]{margin-bottom:100px;display:flex;flex-direction:column;align-items:center}.popular-slides[_ngcontent-%COMP%]{width:100%;padding-left:7%}.rest_cuisines[_ngcontent-%COMP%]{margin-bottom:5px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.no-description-padding-bottom[_ngcontent-%COMP%]{padding-bottom:20px!important}.addtocart-icons[_ngcontent-%COMP%]{text-align:end;position:absolute;bottom:20px;right:20px}@media (max-width: 768px){.addtocart-icons[_ngcontent-%COMP%]{bottom:10px!important;right:10px!important}}.addtocart-icons[_ngcontent-%COMP%]   .added[_ngcontent-%COMP%]{display:inline-flex}.addtocart-icons[_ngcontent-%COMP%]   .added[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:28px;color:var(--ion-color-secondary)!important}.addtocart-icons[_ngcontent-%COMP%]   .first-add-icon[_ngcontent-%COMP%]{font-size:36px;color:var(--ion-color-secondary)!important}.addtocart-icons[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]:hover{cursor:pointer}.addtocart-icons[_ngcontent-%COMP%]   .add-counter[_ngcontent-%COMP%]{font-weight:700;font-size:16px;margin:auto 8px}.addtocart-icons.bottom-30[_ngcontent-%COMP%]{bottom:30px!important}.no-items-container[_ngcontent-%COMP%]{margin-top:5vh}.no-items[_ngcontent-%COMP%]{padding:1.25rem;border-radius:10px;border:1px solid #afafaf;font-weight:600;font-size:1.25rem;color:#545353}.no-results-content-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:flex-start;width:100%}.no-results-inner[_ngcontent-%COMP%]{text-align:center;padding:2rem;margin-top:3rem}.no-results-inner[_ngcontent-%COMP%]   .no-results-icon[_ngcontent-%COMP%]{font-size:64px;color:#999;margin-bottom:1rem}.no-results-inner[_ngcontent-%COMP%]   .no-results-heading[_ngcontent-%COMP%]{margin-bottom:.5rem}.no-results-inner[_ngcontent-%COMP%]   .no-results-message[_ngcontent-%COMP%]{color:#666;font-size:16px;margin-bottom:1.5rem;max-width:400px;margin-left:auto;margin-right:auto}.no-results-inner[_ngcontent-%COMP%]   .clear-filters-button[_ngcontent-%COMP%]{--border-radius: 8px}.no-items-simple-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:flex-start;width:100%}.no-items-simple-wrapper[_ngcontent-%COMP%]   .no-items-heading[_ngcontent-%COMP%]{margin-top:3rem}.change-time-text[_ngcontent-%COMP%]{font-size:1.1rem;color:#545353;border-bottom:1px solid #afafaf;transition:all .3s linear;margin-left:.5rem;cursor:pointer}.change-time-text[_ngcontent-%COMP%]:hover{color:#545353b6}.ion-image-full[_ngcontent-%COMP%]{position:relative;height:auto;width:100%}.ion-image-full[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:250px;object-fit:fill}.overlay-logo[_ngcontent-%COMP%]{width:50%;height:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);opacity:.7}.ion-nonload-image[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:cover!important}.ion-nonload-image.menu-default[_ngcontent-%COMP%], .ion-load-image.menu-default[_ngcontent-%COMP%]{object-fit:fill!important;opacity:40%}.hide-notLoad-image[_ngcontent-%COMP%]{display:none}.popular_des[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.single-line-content[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}@media (max-width: 768px){.only-desktop[_ngcontent-%COMP%]{display:"none"}}@media (min-width: 768px){.only-desktop[_ngcontent-%COMP%]{display:"block";margin-right:10px}}.menu-back-button[_ngcontent-%COMP%]{margin-right:10px}.search-opened[_ngcontent-%COMP%]{position:relative;height:100%}.search-opened[_ngcontent-%COMP%]   .search-fixed-right[_ngcontent-%COMP%]{background:transparent}.search-opened[_ngcontent-%COMP%]   #section-search_wrapper[_ngcontent-%COMP%]{margin-left:0}.search-opened[_ngcontent-%COMP%]   .suggestions[_ngcontent-%COMP%]{z-index:25;width:90%;top:65px;left:0;right:0;margin:auto}.content[_ngcontent-%COMP%]{width:100%;flex:5;margin-bottom:100px;background:var(--glue-menu-page-items-section-background-color, #ffffff)}.filter[_ngcontent-%COMP%]{position:absolute}.sidebar[_ngcontent-%COMP%]{--padding-top: 35px;--padding-bottom: 35px;--padding-start: 25px;--padding-end: 25px;z-index:0;width:360px;flex:none;padding-left:25px;padding-right:25px}.filter[_ngcontent-%COMP%]{box-shadow:2px 36px 27px -1px #0006;box-shadow:2px 20px 27px -1px #0006;padding-bottom:300px;position:absolute;z-index:0;padding-top:15px;height:100vh}.restaurants-cards-container[_ngcontent-%COMP%]{display:flex;height:100%;background:var(--glue-menu-page-items-section-background-color, #ffffff)}@media (min-width: 1024px){.content[_ngcontent-%COMP%]{width:100%}}
1@media (max-width: 768px){.no-items-container[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:2vh}.no-items[_ngcontent-%COMP%]{width:90%;font-size:1.25rem}.hide-modal[_ngcontent-%COMP%], .filter[_ngcontent-%COMP%]{display:none}.menu_item_price[_ngcontent-%COMP%]{margin-top:5px}.menu_item_inside[_ngcontent-%COMP%]{gap:24px}.menu_item_title[_ngcontent-%COMP%]{margin-top:5px;font-size:16px;margin-bottom:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.has-image[_ngcontent-%COMP%]{width:115px;height:115px;padding-right:0;flex-shrink:0}.menu_item[_ngcontent-%COMP%]{height:115px}.item_wrapper[_ngcontent-%COMP%]{padding-right:5px;padding-left:5px;margin-left:10px;padding-bottom:5px}}.restaurant_menu_info[_ngcontent-%COMP%]{margin-left:45px;font-size:17px;font-weight:700;color:#7c7c7c}@media (max-width: 768px){.restaurant_menu_info[_ngcontent-%COMP%]{margin-left:0;font-size:15px}.restaurant_menu_info[_ngcontent-%COMP%]   .cuisines[_ngcontent-%COMP%], .restaurant_menu_info[_ngcontent-%COMP%]   .cuisines[_ngcontent-%COMP%] + .bullet[_ngcontent-%COMP%]{display:none}.restaurant-address[_ngcontent-%COMP%]{margin-left:0;font-size:16px}.menu_headings[_ngcontent-%COMP%]{margin-top:5px}.filter-modal[_ngcontent-%COMP%]{--background: rgba(255, 255, 255, .9);position:absolute;width:100%;height:100%;z-index:1000;top:0;text-align:center;--padding-top: 15px;--padding-start: 35px;--padding-end: 35px;--padding-bottom: 35px}.close[_ngcontent-%COMP%]{font-size:28px;text-align:right}.close-filter-content[_ngcontent-%COMP%]{position:fixed;right:35px;z-index:100;top:20px}.restaurant-description[_ngcontent-%COMP%]{height:auto;overflow:auto;transition:height .3s}}.restaurant-description.collapsed[_ngcontent-%COMP%]{display:none}.restaurant-card-image[_ngcontent-%COMP%]{height:100%;width:100%;background-size:cover;background-position:center center;position:relative}.bold[_ngcontent-%COMP%]{font-weight:700}.background-restaurant-web[_ngcontent-%COMP%]{width:100%!important;height:100%!important;float:right;object-fit:cover!important}.slide_ion_outside[_ngcontent-%COMP%]{width:16%;float:right}.heightWithInfo[_ngcontent-%COMP%]{height:350px!important}.shadow-card[_ngcontent-%COMP%]{position:absolute;left:0;width:35%;height:100%;z-index:2;top:0;bottom:0;background:linear-gradient(to left,rgba(255,255,255,0) 3%,rgb(255,255,255))}.position-class[_ngcontent-%COMP%]{position:absolute;top:52px;width:100%;z-index:100;padding-left:1.5%}.restaurant-logo-container-web[_ngcontent-%COMP%]{z-index:101}.restaurant-logo-container-web[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:5px;box-shadow:0 3px 8px #a6adc933}.restaurant-logo-container-web[_ngcontent-%COMP%]{width:120px;right:10px}.restaurant-logo-container[_ngcontent-%COMP%]{width:85px;right:10px}.ellipsis[_ngcontent-%COMP%]{white-space:normal;overflow:hidden;text-overflow:ellipsis;display:-webkit-box!important;-webkit-line-clamp:1;-webkit-box-orient:vertical}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical}.overflow[_ngcontent-%COMP%]{height:auto!important}.more-less[_ngcontent-%COMP%]{display:inline-block}.more-less[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:pointer;color:#00f!important}ion-list-header[_ngcontent-%COMP%]{position:sticky;top:0;z-index:50}ion-list-header[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#fff;box-shadow:0 3px 8px #a6adc933;z-index:-1}.section-header-container[_ngcontent-%COMP%]{margin-top:0!important;display:flex;align-items:center}.right-aligned[_ngcontent-%COMP%]{display:flex!important;justify-content:flex-end!important;width:100%!important}.padding-0[_ngcontent-%COMP%]{padding:0!important}@media (min-width: 1400px){.menu_wrapper[_ngcontent-%COMP%]{min-width:1000px!important;max-width:1050px!important}}@media (min-width: 1200px) and (max-width: 1400px){.menu_wrapper[_ngcontent-%COMP%]{min-width:660px!important;max-width:700px!important}}@media (min-width: 1024px) and (max-width: 1200px){.menu_wrapper[_ngcontent-%COMP%]{min-width:600px!important;max-width:660px!important}}@media (min-width: 940px) and (max-width: 1024px){.menu_wrapper[_ngcontent-%COMP%]{min-width:550px!important;max-width:600px!important}}@media (min-width: 800px) and (max-width: 940px){.menu_wrapper[_ngcontent-%COMP%]{min-width:450px!important;max-width:450px!important}}@media (min-width: 768px) and (max-width: 800px){.menu_wrapper[_ngcontent-%COMP%]{min-width:370px!important;max-width:400px!important}}@media (max-width: 576px){.menu_wrapper[_ngcontent-%COMP%]{min-width:300px!important;max-width:520px!important}}@media (min-width: 576px) and (max-width: 768px){.menu_wrapper[_ngcontent-%COMP%]{min-width:500px!important;max-width:600px!important}}@media (min-width: 769px){[_nghost-%COMP%]     app-location-header:not([stickyMobile=true]){background-color:var(--location-header-bg)!important}[_nghost-%COMP%]     app-location-header:not([stickyMobile=true]) .location-input, [_nghost-%COMP%]     app-location-header:not([stickyMobile=true]) .location-input:hover{background-color:#fff!important}[_nghost-%COMP%]     app-location-header:not([stickyMobile=true]) .far-message-container p{background-color:var(--ion-color-secondary)!important}}[_nghost-%COMP%]     .closing-alert .alert-wrapper{--background: #fff3cd;border-left:4px solid var(--ion-color-warning)}[_nghost-%COMP%]     .closing-alert .alert-head{color:var(--ion-color-danger)}[_nghost-%COMP%]     .closing-alert .alert-message{color:var(--ion-color-dark);font-weight:500}[_nghost-%COMP%]     .closing-alert .alert-button{--background: var(--ion-color-primary);--color: white}.deals-section-row[_ngcontent-%COMP%]{padding:0 13px 15px 8px;margin-bottom:1rem;overflow-x:hidden;position:relative}.deals-header[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:clamp(1.5rem,4vw,2rem);font-weight:700;color:var(--ion-color-secondary);margin-bottom:clamp(12px,3vw,16px);padding:0 clamp(8px,2vw,16px)}.deals-icon[_ngcontent-%COMP%]{font-size:clamp(1.8rem,4vw,2.2rem);margin-right:clamp(6px,2vw,8px)}.deals-icon[_ngcontent-%COMP%]   .deals-icon-img[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:clamp(20px,5vw,25px);height:clamp(20px,5vw,25px);object-fit:contain}.transparent-bg[_ngcontent-%COMP%], .transparent-bg[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{background:transparent!important}[_nghost-%COMP%]     app-location-header ion-toolbar.transparent-toolbar{--background: transparent !important}']}),s})();var Oi=M(77147);const yi=[{path:"",component:Ti}];let Ai=(()=>{var r;class s{}return(r=s).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[Q.ez,fe.u5,L.Pc,Oi.m,fe.UX,ne.Bz.forChild(yi)]}),s})()}}]);
2//# chunkId=01a0f3b4-2b74-74f2-a4b2-6216e72f7bda

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.