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]="01a0f3b8-649c-79e0-9a47-09373e6b4ae2")}catch(e){}}();"use strict"; 2!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._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="13dc8146-917c-50b0-87ad-45c5b7026cd2")}catch(e){}}(); 3(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8401],{58401:(Ri,ue,m)=>{m.r(ue),m.d(ue,{RestaurantsPageModule:()=>gi});var O=m(94666),Ze=m(2508),q=m(81258),w=m(43475),e=m(92135);function Y(i,o=0){return function Fe(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}(i)?Number(i):o}var T=m(92218),j=m(64139),K=m(77473),ce=m(36312),de=m(58881),ge=m(69054);const Ue=new class Ve extends ge.v{flush(o){this.active=!0,this.scheduled=void 0;const{actions:s}=this;let t,n=-1,a=s.length;o=o||s.shift();do{if(t=o.execute(o.state,o.delay))break}while(++n<a&&(o=s.shift()));if(this.active=!1,t){for(;++n<a&&(o=s.shift());)o.unsubscribe();throw t}}}(class Be extends de.o{constructor(o,s){super(o,s),this.scheduler=o,this.work=s}requestAsyncId(o,s,t=0){return null!==t&&t>0?super.requestAsyncId(o,s,t):(o.actions.push(this),o.scheduled||(o.scheduled=requestAnimationFrame(()=>o.flush(null))))}recycleAsyncId(o,s,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(o,s,t);0===o.actions.length&&(cancelAnimationFrame(s),o.scheduled=void 0)}});let He=1;const Ye=Promise.resolve(),J={};function he(i){return i in J&&(delete J[i],!0)}const fe={setImmediate(i){const o=He++;return J[o]=!0,Ye.then(()=>he(o)&&i()),o},clearImmediate(i){he(i)}},We=new class Ge extends ge.v{flush(o){this.active=!0,this.scheduled=void 0;const{actions:s}=this;let t,n=-1,a=s.length;o=o||s.shift();do{if(t=o.execute(o.state,o.delay))break}while(++n<a&&(o=s.shift()));if(this.active=!1,t){for(;++n<a&&(o=s.shift());)o.unsubscribe();throw t}}}(class Je extends de.o{constructor(o,s){super(o,s),this.scheduler=o,this.work=s}requestAsyncId(o,s,t=0){return null!==t&&t>0?super.requestAsyncId(o,s,t):(o.actions.push(this),o.scheduled||(o.scheduled=fe.setImmediate(o.flush.bind(o,null))))}recycleAsyncId(o,s,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(o,s,t);0===o.actions.length&&(fe.clearImmediate(s),o.scheduled=void 0)}});var Qe=m(6957),pe=m(40020),qe=m(53298),je=m(10328),D=m(52831);class $e{constructor(o){this.durationSelector=o}call(o,s){return s.subscribe(new Xe(o,this.durationSelector))}}class Xe extends D.Ds{constructor(o,s){super(o),this.durationSelector=s,this.hasValue=!1}_next(o){if(this.value=o,this.hasValue=!0,!this.throttled){let s;try{const{durationSelector:n}=this;s=n(o)}catch(n){return this.destination.error(n)}const t=(0,D.ft)(s,new D.IY(this));!t||t.closed?this.clearThrottle():this.add(this.throttled=t)}}clearThrottle(){const{value:o,hasValue:s,throttled:t}=this;t&&(this.remove(t),this.throttled=void 0,t.unsubscribe()),s&&(this.value=void 0,this.hasValue=!1,this.destination.next(o))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var et=m(45398);function $(i,o=je.P){return function Ke(i){return function(s){return s.lift(new $e(i))}}(()=>(0,et.H)(i,o))}var tt=m(59151);function X(i){return o=>o.lift(new nt(i))}class nt{constructor(o){this.notifier=o}call(o,s){const t=new st(o),n=(0,D.ft)(this.notifier,new D.IY(t));return n&&!t.seenValue?(t.add(n),s.subscribe(t)):t}}class st extends D.Ds{constructor(o){super(o),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}var me=m(25722),it=m(60014);class ot{call(o,s){return s.subscribe(new at(o))}}class at extends it.L{constructor(o){super(o),this.hasPrev=!1}_next(o){let s;this.hasPrev?s=[this.prev,o]:this.hasPrev=!0,this.prev=o,s&&this.destination.next(s)}}var lt=m(59095),ut=m(39);let ee;try{ee=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ee=!1}let G,k,te=(()=>{class i{constructor(s){this._platformId=s,this.isBrowser=this._platformId?(0,O.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(m
3sie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!ee)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return i.\u0275fac=function(s){return new(s||i)(e.LFG(e.Lbi))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function B(){if("object"!=typeof document||!document)return 0;if(null==G){const i=document.createElement("div"),o=i.style;i.dir="rtl",o.width="1px",o.overflow="auto",o.visibility="hidden",o.pointerEvents="none",o.position="absolute";const s=document.createElement("div"),t=s.style;t.width="2px",t.height="1px",i.appendChild(s),document.body.appendChild(i),G=0,0===i.scrollLeft&&(i.scrollLeft=1,G=0===i.scrollLeft?1:2),i.remove()}return G}const ht=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function ft(){return(0,e.f3M)(O.K0)}}),pt=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let se=(()=>{class i{constructor(s){this.value="ltr",this.change=new e.vpe,s&&(this.value=function mt(i){var o;const s=(null==i?void 0:i.toLowerCase())||"";return"auto"===s&&typeof navigator<"u"&&null!==(o=navigator)&&void 0!==o&&o.language?pt.test(navigator.language)?"rtl":"ltr":"rtl"===s?"rtl":"ltr"}((s.body?s.body.dir:null)||(s.documentElement?s.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return i.\u0275fac=function(s){return new(s||i)(e.LFG(ht,8))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ve=(()=>{class i{}return i.\u0275fac=function(s){return new(s||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({}),i})();var _t=m(64483);class vt{}class xt extends vt{constructor(o){super(),this._data=o}connect(){return(0,pe.b)(this._data)?this._data:(0,j.of)(this._data)}disconnect(){}}class Rt{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(o,s,t,n,a){o.forEachOperation((r,l,u)=>{let c,g;var h;null==r.previousIndex?(c=this._insertView(()=>t(r,l,u),u,s,n(r)),g=c?1:0):null==u?(this._detachAndCacheView(l,s),g=3):(c=this._moveView(l,u,s,n(r)),g=2),a&&a({context:null===(h=c)||void 0===h?void 0:h.context,operation:g,record:r})})}detach(){for(const o of this._viewCache)o.destroy();this._viewCache=[]}_insertView(o,s,t,n){const a=this._insertViewFromCache(s,t);if(a)return void(a.context.$implicit=n);const r=o();return t.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(o,s){const t=s.detach(o);this._maybeCacheView(t,s)}_moveView(o,s,t,n){const a=t.get(o);return t.move(a,s),a.context.$implicit=n,a}_maybeCacheView(o,s){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(o);else{const t=s.indexOf(o);-1===t?o.destroy():s.remove(t)}}_insertViewFromCache(o,s){const t=this._viewCache.pop();return t&&s.insert(t,o),t||null}}const Ce=new e.OlP("_ViewRepeater"),wt=["contentWrapper"],yt=["*"],xe=new e.OlP("VIRTUAL_SCROLL_STRATEGY");class St{constructor(o,s,t){this._scrolledIndexChange=new T.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,qe.x)()),this._viewport=null,this._itemSize=o,this._minBufferPx=s,this._maxBufferPx=t}attach(o){this._viewport=o,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(o,s,t){this._itemSize=o,this._minBufferPx=s,this._maxBufferPx=t,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(o,s){this._viewport&&this._viewport.scrollToOffset(o*this._itemSize,s)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const o=this._viewport.getRenderedRange(),s={start:o.start,end:o.end},t=this._viewport.getViewportSize(),n=this._viewport.getDataLength();let a=this._viewport.measureScrollOffset(),r=this._itemSize>0?a/this._itemSize:0;if(s.end>n){const u=Math.ceil(t/this._itemSize),c=Math.max(0,Math.min(r,n-u));r!=c&&(r=c,a=c*this._itemSize,s.start=Math.floor(r)),s.end=Math.max(0,Math.min(n,s.start+u))}const l=a-s.start*this._itemSize;
3if(l<this._minBufferPx&&0!=s.start){const u=Math.ceil((this._maxBufferPx-l)/this._itemSize);s.start=Math.max(0,s.start-u),s.end=Math.min(n,Math.ceil(r+(t+this._minBufferPx)/this._itemSize))}else{const u=s.end*this._itemSize-(a+t);if(u<this._minBufferPx&&s.end!=n){const c=Math.ceil((this._maxBufferPx-u)/this._itemSize);c>0&&(s.end=Math.min(n,s.end+c),s.start=Math.max(0,Math.floor(r-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(s),this._viewport.setRenderedContentOffset(this._itemSize*s.start),this._scrolledIndexChange.next(Math.floor(r))}}function At(i){return i._scrollStrategy}let bt=(()=>{class i{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new St(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(s){this._itemSize=Y(s)}get minBufferPx(){return this._minBufferPx}set minBufferPx(s){this._minBufferPx=Y(s)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(s){this._maxBufferPx=Y(s)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return i.\u0275fac=function(s){return new(s||i)},i.\u0275dir=e.lG2({type:i,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[e._Bn([{provide:xe,useFactory:At,deps:[(0,e.Gpc)(()=>i)]}]),e.TTD]}),i})(),ie=(()=>{class i{constructor(s,t,n){this._ngZone=s,this._platform=t,this._scrolled=new T.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(s){this.scrollContainers.has(s)||this.scrollContainers.set(s,s.elementScrolled().subscribe(()=>this._scrolled.next(s)))}deregister(s){const t=this.scrollContainers.get(s);t&&(t.unsubscribe(),this.scrollContainers.delete(s))}scrolled(s=20){return this._platform.isBrowser?new K.y(t=>{this._globalSubscription||this._addGlobalListener();const n=s>0?this._scrolled.pipe($(s)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,j.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((s,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(s,t){const n=this.getAncestorScrollContainers(s);return this.scrolled(t).pipe((0,tt.h)(a=>!a||n.indexOf(a)>-1))}getAncestorScrollContainers(s){const t=[];return this.scrollContainers.forEach((n,a)=>{this._scrollableContainsElement(a,s)&&t.push(a)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(s,t){let n=function ze(i){return i instanceof e.SBq?i.nativeElement:i}(t),a=s.getElementRef().nativeElement;do{if(n==a)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const s=this._getWindow();return(0,ce.R)(s.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return i.\u0275fac=function(s){return new(s||i)(e.LFG(e.R0b),e.LFG(te),e.LFG(O.K0,8))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Re=(()=>{class i{constructor(s,t,n,a){this.elementRef=s,this.scrollDispatcher=t,this.ngZone=n,this.dir=a,this._destroyed=new T.xQ,this._elementScrolled=new K.y(r=>this.ngZone.runOutsideAngular(()=>(0,ce.R)(this.elementRef.nativeElement,"scroll").pipe(X(this._destroyed)).subscribe(r)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(s){const t=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==s.left&&(s.left=n?s.end:s.start),null==s.right&&(s.right=n?s.start:s.end),null!=s.bottom&&(s.top=t.scrollHeight-t.clientHeight-s.bottom),n&&0!=B()?(null!=s.left&&(s.right=t.scrollWidth-t.clientWidth-s.left),2==B()?s.left=s.right:1==B()&&(s.left
3=s.right?-s.right:s.right)):null!=s.right&&(s.left=t.scrollWidth-t.clientWidth-s.right),this._applyScrollToOptions(s)}_applyScrollToOptions(s){const t=this.elementRef.nativeElement;!function dt(){if(null==k){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return k=!1,k;if("scrollBehavior"in document.documentElement.style)k=!0;else{const i=Element.prototype.scrollTo;k=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return k}()?(null!=s.top&&(t.scrollTop=s.top),null!=s.left&&(t.scrollLeft=s.left)):t.scrollTo(s)}measureScrollOffset(s){const t="left",n="right",a=this.elementRef.nativeElement;if("top"==s)return a.scrollTop;if("bottom"==s)return a.scrollHeight-a.clientHeight-a.scrollTop;const r=this.dir&&"rtl"==this.dir.value;return"start"==s?s=r?n:t:"end"==s&&(s=r?t:n),r&&2==B()?s==t?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft:r&&1==B()?s==t?a.scrollLeft+a.scrollWidth-a.clientWidth:-a.scrollLeft:s==t?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft}}return i.\u0275fac=function(s){return new(s||i)(e.Y36(e.SBq),e.Y36(ie),e.Y36(e.R0b),e.Y36(se,8))},i.\u0275dir=e.lG2({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),i})(),Pt=(()=>{class i{constructor(s,t,n){this._platform=s,this._change=new T.xQ,this._changeListener=a=>{this._change.next(a)},this._document=n,t.runOutsideAngular(()=>{if(s.isBrowser){const a=this._getWindow();a.addEventListener("resize",this._changeListener),a.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const s=this._getWindow();s.removeEventListener("resize",this._changeListener),s.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const s={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),s}getViewportRect(){const s=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();return{top:s.top,left:s.left,bottom:s.top+n,right:s.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const s=this._document,t=this._getWindow(),n=s.documentElement,a=n.getBoundingClientRect();return{top:-a.top||s.body.scrollTop||t.scrollY||n.scrollTop||0,left:-a.left||s.body.scrollLeft||t.scrollX||n.scrollLeft||0}}change(s=20){return s>0?this._change.pipe($(s)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const s=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:s.innerWidth,height:s.innerHeight}:{width:0,height:0}}}return i.\u0275fac=function(s){return new(s||i)(e.LFG(te),e.LFG(e.R0b),e.LFG(O.K0,8))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const we=new e.OlP("VIRTUAL_SCROLLABLE");let Tt=(()=>{class i extends Re{constructor(s,t,n,a){super(s,t,n,a)}measureViewportSize(s){const t=this.elementRef.nativeElement;return"horizontal"===s?t.clientWidth:t.clientHeight}}return i.\u0275fac=function(s){return new(s||i)(e.Y36(e.SBq),e.Y36(ie),e.Y36(e.R0b),e.Y36(se,8))},i.\u0275dir=e.lG2({type:i,features:[e.qOj]}),i})();const kt=typeof requestAnimationFrame<"u"?Ue:We;let W=(()=>{class i extends Tt{get orientation(){return this._orientation}set orientation(s){this._orientation!==s&&(this._orientation=s,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(s){this._appendOnly=function Ne(i){return null!=i&&"false"!=`${i}`}(s)}constructor(s,t,n,a,r,l,u,c){super(s,l,n,r),this.elementRef=s,this._changeDetectorRef=t,this._scrollStrategy=a,this.scrollable=c,this._platform=(0,e.f3M)(te),this._detachedSubject=new T.xQ,this._renderedRangeSubject=new T.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new K.y(g=>this._scrollStrategy.scrolledIndexChange.subscribe(h=>Promise.resolve().then(()=>this.ngZone.run(()=>g.next(h))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Qe.w.EMPTY,this._viewportChanges=u.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,me.O)(null),$(0,kt)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(s){this.ngZone.runOutsideAngular(()=>{this._forOf=s,this._forOf.dataStream.pipe(X(this._detachedSubject)).subscribe(t=>{const n=t.length;n!==this._dataLength&&(this._dataLength=n,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(s){return this.getElementRef().nativeElement.getBoundingClientRect()[s]}setTotalContentSize(s){this._totalContentSize!==s&&(this._totalContentSize=s,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(s){(function Lt(i,o){return i.start==o.start&&i.end==o.end})(this._renderedRange,s)||(this.appendOnly&&(s={start:0,end:Math.max(this._renderedRange.end,s.end)}),this._renderedRangeSubject.next(this._renderedRange=s),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(s,t="to-start"){s=this.appendOnly&&"to-start"===t?0:s;const a="horizontal"==this.orientation,r=a?"X":"Y";let u=`translate${r}(${Number((a&&this.dir&&"rtl"==this.dir.value?-1:1)*s)}px)`;this._renderedContentOffset=s,"to-end"===t&&(u+=` translate${r}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=u&&(this._renderedContentTransform=u,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(s,t="auto"){const n={behavior:t};"horizontal"===this.orientation?n.start=s:n.top=s,this.scrollable.scrollTo(n)}scrollToIndex(s,t="auto"){this._scrollStrategy.scrollToIndex(s,t)}measureScrollOffset(s){let t;return t=this.scrollable==this?n=>super.measureScrollOffset(n):n=>this.scrollable.measureScrollOffset(n),Math.max(0,t(null!=s?s:"horizontal"===this.orientation?"start":"top")-this.measureViewportOffset())}measureViewportOffset(s){var t;let n;const a="left",r="right",l="rtl"==(null===(t=this.dir)||void 0===t?void 0:t.value);
3n="start"==s?l?r:a:"end"==s?l?a:r:s||("horizontal"===this.orientation?"left":"top");const u=this.scrollable.measureBoundingClientRectWithScrollOffset(n);return this.elementRef.nativeElement.getBoundingClientRect()[n]-u}measureRenderedContentSize(){const s=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?s.offsetWidth:s.offsetHeight}measureRangeSize(s){return this._forOf?this._forOf.measureRangeSize(s,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(s){s&&this._runAfterChangeDetection.push(s),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const s=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of s)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return i.\u0275fac=function(s){return new(s||i)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(xe,8),e.Y36(se,8),e.Y36(ie),e.Y36(Pt),e.Y36(we,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(s,t){if(1&s&&e.Gf(wt,7),2&s){let n;e.iGM(n=e.CRH())&&(t._contentWrapper=n.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(s,t){2&s&&e.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[e._Bn([{provide:Re,useFactory:(o,s)=>o||s,deps:[[new e.FiY,new e.tBr(we)],i]}]),e.qOj,e.jDz],ngContentSelectors:yt,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(s,t){1&s&&(e.F$t(),e.TgZ(0,"div",0,1),e.Hsn(2),e.qZA(),e._UZ(3,"div",2)),2&s&&(e.xp6(3),e.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),i})();
3function ye(i,o,s){if(!s.getBoundingClientRect)return 0;const n=s.getBoundingClientRect();return"horizontal"===i?"start"===o?n.left:n.right:"start"===o?n.top:n.bottom}let Et=(()=>{class i{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(s){this._cdkVirtualForOf=s,function Ct(i){return i&&"function"==typeof i.connect&&!(i instanceof _t.c)}(s)?this._dataSourceChanges.next(s):this._dataSourceChanges.next(new xt((0,pe.b)(s)?s:Array.from(s||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(s){this._needsUpdate=!0,this._cdkVirtualForTrackBy=s?(t,n)=>s(t+(this._renderedRange?this._renderedRange.start:0),n):void 0}set cdkVirtualForTemplate(s){s&&(this._needsUpdate=!0,this._template=s)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(s){this._viewRepeater.viewCacheSize=Y(s)}constructor(s,t,n,a,r,l){this._viewContainerRef=s,this._template=t,this._differs=n,this._viewRepeater=a,this._viewport=r,this.viewChange=new T.xQ,this._dataSourceChanges=new T.xQ,this.dataStream=this._dataSourceChanges.pipe((0,me.O)(null),function rt(){return i=>i.lift(new ot)}(),(0,lt.w)(([u,c])=>this._changeDataSource(u,c)),(0,ut.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new T.xQ,this.dataStream.subscribe(u=>{this._data=u,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(X(this._destroyed)).subscribe(u=>{this._renderedRange=u,this.viewChange.observers.length&&l.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(s,t){if(s.start>=s.end)return 0;const n=s.start-this._renderedRange.start,a=s.end-s.start;let r,l;for(let u=0;u<a;u++){const c=this._viewContainerRef.get(u+n);if(c&&c.rootNodes.length){r=l=c.rootNodes[0];break}}for(let u=a-1;u>-1;u--){const c=this._viewContainerRef.get(u+n);if(c&&c.rootNodes.length){l=c.rootNodes[c.rootNodes.length-1];break}}return r&&l?ye(t,"end",l)-ye(t,"start",r):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const s=this._differ.diff(this._renderedItems);s?this._applyChanges(s):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((s,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(s,t):t)),this._needsUpdate=!0)}_changeDataSource(s,t){return s&&s.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,j.of)()}_updateContext(){const s=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const n=this._viewContainerRef.get(t);n.context.index=this._renderedRange.start+t,n.context.count=s,this._updateComputedContextProperties(n.context),n.detectChanges()}}_applyChanges(s){this._viewRepeater.applyChanges(s,this._viewContainerRef,(a,r,l)=>this._getEmbeddedViewArgs(a,l),a=>a.item),s.forEachIdentityChange(a=>{this._viewContainerRef.get(a.currentIndex).context.$implicit=a.item});const t=this._data.length;let n=this._viewContainerRef.length;for(;n--;){const a=this._viewContainerRef.get(n);a.context.index=this._renderedRange.start+n,a.context.count=t,this._updateComputedContextProperties(a.context)}}_updateComputedContextProperties(s){s.first=0===s.index,s.last=s.index===s.count-1,s.even=s.index%2==0,s.odd=!s.even}_getEmbeddedViewArgs(s,t){return{templateRef:this._template,context:{$implicit:s.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return i.\u0275fac=function(s){return new(s||i)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Ce),e.Y36(W,4),e.Y36(e.R0b))},i.\u0275dir=e.lG2({type:i,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[e._Bn([{provide:Ce,useClass:Rt}])]}),i})(),Se=(()=>{class i{}return i.\u0275fac=function(s){return new(s||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({}),i})(),It=(()=>{class i{}return i.\u0275fac=function(s){return new(s||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[ve,Se,W,ve,Se]}),i})();var _=m(71670),Dt=m(81533),Q=m(92938),Zt=m(56908),V=m.n(Zt),Nt=m(92469),E=m.n(Nt),Ft=m(57225);
3const zt=JSON.parse('["glue/306-Barbecue-Athens-menu/189","glue/Applebee\'s-Athens-menu/190","glue/Captain-D\'s-Athens-menu/191","glue/Casa-Blanca-Athens-menu/192","glue/Lucia\'s-Cocina-Mexicana-Athens-menu/194","glue/Papa-Murphy\'s-Athens-menu/195","glue/Sabor-Latino-Taqueria-menu/196","glue/Wendy\'s-Athens-menu/197","glue/Zaxby\'s-Athens-menu/198","glue/Fiesta-Mexicana-Athens-menu/199","glue/Catfish-Cabin-II-menu/200","glue/Bojangles-Athens-menu/201","glue/Buffalo-Wild-Wings-Athens-menu/202","glue/IHOP-Athens-menu/203","glue/The-Village-Pizza-East-Limesto-menu/204","glue/Burrito-Express-Athens-menu/205","glue/Cracker-Barrel-Athens-menu/206","glue/Dub\'s-Burgers-Athens-menu/207","glue/Terranova\'s-Athens-menu/208","glue/Wildwood-Deli-Athens-menu/209","glue/Firehouse-Subs-Athens-menu/210","glue/Mozza-Pizza-menu/544","glue/Roosters-menu/552","glue/Bojangles-Catering-Athens-menu/611","glue/Chipotle-Athens-menu/679","glue/New-China-Athens-menu/680","glue/Mi-Casa-Athens-menu/681","glue/Samurai\'s-Steak-House-Athens-menu/684","glue/Smoothie-King-Athens-menu/734","glue/Logan\'s-Roadhouse-Athens-menu/735","glue/Panera-Bread-Athens-menu/737","glue/KFC-Athens-menu/738","glue/Taco-Bell-Jefferson-St.-menu/743","glue/Little-Caesars-HWY-31-menu/768","glue/Arby\'s-on-W-13th-menu/802","glue/Popeyes-on-72W-menu/812","glue/Jack\'s-Hwy-31-menu/865","glue/Test-POS-Hours-Resto-menu/925","glue/DJ\'s-Pizza-Kitchen-menu/289","glue/Fuji-Japanese-Restaurant-menu/295","glue/Rafael\'s-Pizzeria-Italian-Res-menu/343","glue/Wendy\'s-72-East-menu/368","glue/Zaxby\'s-Winchester-Rd.-menu/385","glue/Honeyb33s-menu/396","glue/Mary\'s-Pit-BBQ-menu/402","glue/Quiznos-Moore\'s-Mill-menu/419","glue/Ole-Hickory-BBQ-menu/497","glue/PigNOut-Barbecue-menu/499","glue/Tailgaters-menu/504","glue/Frankie\'s-Crab-Shack-menu/530","glue/Supper-Heroes-menu/557","glue/3rd-Base-72-East-menu/567","glue/El-Monte-menu/600","glue/Arby\'s-on-Shields-menu/774","glue/Burger-King-Winchester-Rd.-menu/777","glue/KFC-72-East-menu/778","glue/Meteor-Buffet-menu/787","glue/Taco-Bell-Hwy-72-E-menu/922","glue/McDonald\'s-Hwy-72-E-menu/923","glue/Applebee\'s-Cullman-menu/96","glue/Buffalo-Wild-Wings-Cullman-menu/97","glue/Captain-D\'s-Cullman-menu/98","glue/Clark-Street-Treats-&-Frios-menu/99","glue/La-Michoacanita-menu/100","glue/Papa-Murphy\'s-Cullman-menu/102","glue/Smith-Farms-Cullman-menu/103","glue/Stone-Bridge-Farms-menu/104","glue/William\'s-BBQ-Cullman-menu/105","glue/Guthrie\'s-Cullman-menu/106","glue/Karma\'s-Coffee-Shop-Cullman-menu/107","glue/Ninja-Japanese-Steakhouse-Cull-menu/108","glue/Valley-Tavern-Grille-menu/110","glue/Yummy-Oriental-Buffet-Cullman-menu/111","glue/Kernel-Kullman-menu/112","glue/Newk\'s-Eatery-Cullman-menu/113","glue/Zaxby\'s-Hwy-157-menu/114","glue/Zaxby\'s-Olive-St-menu/115","glue/Sweet-Peppers-Deli-Cullman-menu/116","glue/Flavors-Bakery-Cullman-menu/117","glue/Jersey-Mike\'s-Subs-Cullman-menu/118","glue/Moe\'s-BBQ-Cullman-menu/119","glue/Rock-N-Roll-Sushi-Cullman-menu/120","glue/Sonic-Cullman-menu/121","glue/Firehouse-Subs-Cullman-menu/122","glue/Alamitos-Mexican-Restaurant-menu/595","glue/Logan\'s-Roadhouse--menu/675","glue/Chipotle-Cullman-menu/676","glue/Little-Caesars-on-2nd-menu/683","glue/McAlister\'s-Deli-Cullman-menu/685","glue/Golden-Corral-Cullman-menu/686","glue/Panda-Express-Cullman-menu/687","glue/Pizza-Hut-Cullman-menu/689","glue/Little-Caesars-on-157-menu/762","glue/Dairy-Queen-Grill-&-Chill-menu/782","glue/Arby\'s-on-Hwy-157-menu/796","glue/Denny\'s--menu/808","glue/Chicken-Salad-Chick-menu/809","glue/Subway-on-4th-menu/811","glue/Moe\'s-Southwest-Grill-menu/820","glue/Taco-Bell-2nd-Ave-menu/835","glue/Milo\'s-Hamburgers-Cullman-menu/846","glue/Popeyes-on-Hwy-157-menu/875","glue/Applebee\'s-Decatur-menu/211","glue/Buffalo-Wild-Wings-Decatur-menu/212","glue/Buster\'s-Trinity-menu/213","glue/Great-American-Cookies-Decatur-menu/214","glue/Hibachi-Express-Decatur-menu/215","glue/High-Point-Market-menu/216","glue/Java-Jaay-menu/217","glue/Papa-Murphy\'s-Decatur-menu/219","glue/Popeyes-Louisiana-Kitchen-Deca-menu/221","glue/Rock-n-Roll-Sushi-Decatur-menu/222","glue/The-Brick-Deli-menu/223","glue/Wendy\'s-Beltline-menu/224","glue/Wendy\'s-Priceville-menu/225","glue/Zaxby\'s-Spring-Ave-menu/228","glue/Zaxby\'s-on-Grant-menu/229","glue/Big-Bob-Gibson-Danville-Rd-menu/230","glue/Big-Bob-Gibson\'s-6th-Ave-menu/231","glue/Casa-Santiago-Decatur-menu/232","glue/Mellow-Mushroom-Decatur-menu/233","glue/Moe\'s-BBQ-Decatur-menu/234","glue/Wings-To-Go-Decatur-menu/235","glue/Camino-Real-Decatur-menu/236","glue/Bank-Street-Grill-menu/237","glue/Bojangles-Decatur-menu/238","glue/Josies-Mediterranean-Cafe-menu/239","glue/Las-Vias-Mexican-Grill-Decatur-menu/240","glue/McDonalds-Beltline-menu/242","glue/Simp-McGhee\'s-menu/245","glue/b.b.-perrins-menu/246","glue/Five-Guys-Decatur-menu/248","glue/Krystal-Priceville-menu/250","glue/Minnie-Lee\'s-Downtown-Diner-menu/251","glue/Moe\'s-Southwest-Grill-Decatur-menu/252","glue/Apple-Lane-Beltline-menu/253","glue/Canton-House-menu/254","glue/Cracker-Barrel-Decatur-menu/256","glue/Fulins-Decatur-menu/258","glue/K-May-Donuts-Coffee-House-menu/259","glue/Whataburger-Decatur-menu/261","glue/Wings-and-Seafood-Decatur-menu/262","glue/Firehouse
3-Subs-Decatur-menu/263","glue/Freddy\'s-Steakburgers-Decatur-menu/578","glue/Alfonso\'s-Decatur-menu/596","glue/Bojangles-Catering-Decatur-menu/612","glue/O\'Charley\'s-menu/632","glue/Krispy-Kreme-Decatur-menu/677","glue/IHOP-Decatur-menu/696","glue/Sami\'s-Place-menu/707","glue/Current:-Coffee-+-Collectibles-menu/729","glue/Little-Caesars-Danville-menu/765","glue/Little-Caesars-on-6th-menu/766","glue/Arby\'s-on-6th-Ave-menu/798","glue/Mi-Hacienda-menu/847","glue/Let\'s-Do-Lunch-menu/859","glue/Logan\'s-Decatur-menu/861","glue/Olive-Garden-Decatur-menu/885","glue/Devons-Poke-Spotz-menu/924","glue/Mcdonald\'s-Gunter-Ave.-menu/876","glue/Arby\'s-Gunter-Ave.-menu/877","glue/Tropical-Smoothie-Hwy-431-menu/878","glue/Wendy\'s-Hwy-431-menu/879","glue/Krystal-Hwy-431-menu/881","glue/Wendy\'s-Hampton-Cove-menu/370","glue/El-Olmeca-OXR-menu/393","glue/Yoshi-Asian-Fusion-menu/474","glue/China-Cook-Hampton-Cove-menu/479","glue/Tortora\'s-Wood-Fired-Grille-menu/511","glue/Tortora\'s-menu/512","glue/Buenavista-Hampton-Cove-menu/797","glue/Arby\'s-Hampton-Cove-menu/806","glue/Mandarin-House-HC-menu/863","glue/Papa-Murphy\'s-Hartsellle-menu/220","glue/What\'s-Popp\'N-Hartselle-menu/226","glue/Zaxby\'s-Hartselle-menu/227","glue/Las-Vias-Mexican-Grill-Hartsel-menu/241","glue/El-Portal-Hartselle-menu/247","glue/Freight-House-Hartselle-menu/257","glue/Pizza-Ed-Hartselle-menu/260","glue/Eatin\'-in-the-Attic-Hartselle-menu/615","glue/Cracker-Barrel-Hartselle-menu/690","glue/Little-Caesars-menu/767","glue/Arby\'s-on-HWY-31-menu/799","glue/Hamley-Bake-Shoppe-menu/299","glue/Papa-Murphy\'s-Hazel-Green-menu/333","glue/Rafael\'s-Pizzeria-HG-menu/342","glue/Zaxby\'s-Hazel-Green-menu/379","glue/Billy\'s-Sports-Bar-Hazel-Green-menu/389","glue/Rookiez-Wingz-Hazel-Green-menu/409","glue/China-Cafe-Hazel-Green-menu/523","glue/Knight-Moves-Bar-and-Grill-menu/534","glue/La-Fuente-menu/536","glue/2-Chicks-on-a-Roll-menu/597","glue/China-One-Meridianville-menu/695","glue/Green-Light-Cafe-menu/744","glue/Arby\'s-Hazel-Green-menu/805","glue/Applebee\'s-S.-Pkwy-menu/265","glue/Applebees-N.-Pkwy-menu/266","glue/BJ\'s-Brewhouse-menu/269","glue/Big-Ed\'s-Pizza-menu/270","glue/Big-Oh\'s-menu/271","glue/Big-Shakes-Hot-Chicken-Univers-menu/273","glue/Big-Spring-Cafe-Huntsville-menu/274","glue/Bigfoot\'s-Little-Donuts-HSV-menu/275","glue/Captain-D\'s-Airport-Rd-menu/277","glue/Captain-D\'s-N.-Pkwy-menu/279","glue/Captain-D\'s-University-Dr.-menu/280","glue/Casa-Blanca-Bailey-Cove-menu/281","glue/Charrito\'s-Bar-Grill-menu/284","glue/China-Gourmet-Huntsville-menu/285","glue/Commerce-Kitchen-menu/287","glue/Cookie-Dough-Magic-of-Huntsvil-menu/288","glue/Dallas-Mill-Deli-menu/290","glue/Dipwich-Huntsville-menu/291","glue/Dolce-Pan-Bakery-menu/292","glue/Farm-Burger-menu/293","glue/Fiero-Mexican-Grill-Huntsville-menu/294","glue/Great-American-Cookie-&-Pretze-menu/296","glue/Great-American-Cookie-Company-menu/297","glue/Grille-on-Main-menu/298","glue/Happy-Tummy-menu/300","glue/Hibachi-Express-N-Pkwy-menu/302","glue/Hibachi-Express-University-menu/303","glue/Hildegard\'s-German-Cuisine-menu/304","glue/Jefferson-St-Pub-menu/305","glue/Kona-Grill-menu/306","glue/La-Alameda-menu/307","glue/Lynelle\'s-Huntsville-menu/317","glue/MaggieMoo\'s-menu/318","glue/Maki-Fresh-menu/319","glue/Mason-Dixon-Gluten-Free-Bistro-menu/320","glue/Mellow-Mushroom-Jones-Valley-menu/321","glue/Metro-Diner-Airport-Rd-menu/322","glue/New-China-Buffet-menu/326","glue/Olde-Towne-Coffee-menu/329","glue/Oshi-Poke-Bowl-and-Sushi-menu/330","glue/Pane-E-Vino-menu/331","glue/Papa-Murphy\'s-Whitesburg-menu/335","glue/Phuket-menu/336","glue/Piper-&-Leaf-Gates-Ave-menu/337","glue/Planet-Smoothie-Airport-Rd-menu/340","glue/Rock-n-Roll-Sushi-menu/345","glue/Rockabilly-Bakery-menu/346","glue/Rocket-City-Tavern-menu/347","glue/Ruggby\'s-Food-and-Spirits-menu/349","glue/Sam-&-Greg\'s-Huntsville-menu/351","glue/Surin-of-Thailand-menu/356","glue/The-Casual-Pint-menu/360","glue/The-Veggie-menu/363","glue/Tropical-Smoothie-Cafe-Jones-V-menu/364","glue/Tropical-Smoothie-Cafe-Whitesb-menu/366","glue/Urban-Cookhouse-menu/367","glue/Wendy\'s-Hobbs-Rd-menu/371","glue/Wendy\'s-Jones-Valley-menu/373","glue/Wendy\'s-South-Pkwy-menu/375","glue/Wendy\'s-Sparkman-menu/376","glue/Wendy\'s-University-Dr-menu/377","glue/Zaxby\'s-Carl-T-Jones-menu/378","glue/Zaxby\'s-North-Parkway-menu/382","glue/Zaxby\'s-South-Pkwy-menu/383","glue/Zaxby\'s-University-Dr.-menu/384","glue/Zoes-Kitchen-Research-Park-menu/386","glue/Zoes-Kitchen-Whitesburg-menu/387","glue/Charlie-Foster\'s-Stovehouse-menu/391","glue/Fire-Wok-Asian-Bistro-menu/394","glue/Gibson\'s-BBQ-menu/395","glue/Humphrey\'s-Bar-and-Grill-menu/397","glue/IHOP-University-menu/400","glue/La-Finka-Mexican-Restaurant-menu/401","glue/Mei-Wei-Twickenham-menu/403","glue/Mei-Wei-University-menu/404","glue/New-Orleans-Lunch-Box-menu/405","glue/Oak-Tree-Bistro-menu/406","glue/Pofta-Buna-International-Cafe-menu/407","glue/Rookiez-Wingz-Huntsville-menu/410","glue/Rookiez-Wingz-Jeff-Rd-menu/411","glue/Stanlieo\'s-Sub-Villa-Governors-menu/412","glue/Stanlieo\'s-Sub-Villa-Jordan-Ln-menu/413","glue/Superhero-Chefs-Huntsville-menu/414","glue/Wayback-Burgers-menu/415","glue/House-of-Kabob-menu/418","glue/Big-Bowl-Thai-Cuisine-menu/420","glue/Big-Papa-Gyro-menu/422","glue/Bojangles-North-Madison-menu/424","glue/Bojangles-North-Parkway-menu/425","glue/Bojangles-South-Parkway-menu/426","glue/Bojangles-University-menu/427","glue/Buffalo-Wild-Wings-Huntsville-menu/428","glue/Cajun-Grill-menu/429","glue/Dickey\'s-Barbecue-Pit-menu/433","glue/Earth-and-Stone-Huntsville-menu/434","glue/El-Vaquero-menu/436","glue/Four-Leaves-menu/437","glue/Good-Company-Cafe-menu/438","glue/Great-Panda-menu/440","glue/Guadalajara-South-Parkway-menu/441","glue/Island-Jerk-menu/442","glue/Jersey-Mike\'s-Subs-Whitesburg-menu/443","glue/Little-Rosie\'
3s-Taqueria-menu/444","glue/Los-Tres-Amigos-menu/445","glue/New-Ichiban-menu/449","glue/Newk\'s-Eatery-University-Dr.-menu/450","glue/Newk\'s-Eatery-Whitesburg-Dr-menu/451","glue/Poke-Aloha-menu/452","glue/Ruchi-Indian-Restaurant-menu/453","glue/Shaggys-Burgers-and-Tacos-Hunt-menu/454","glue/Taqueria-El-Cazador-South-Pkwy-menu/456","glue/Taqueria-El-Cazador-Stovehouse-menu/457","glue/Tazikis-Whitesburg-menu/459","glue/Teds-BBQ-Five-Points-menu/461","glue/Tellini\'s-Italiano-menu/462","glue/Thai-Garden-menu/463","glue/Thanks-a-Latte-menu/464","glue/The-Kaffeeklatsch-menu/467","glue/The-Pizzeria-menu/468","glue/Wahlburgers-Mid-City-menu/471","glue/Walton\'s-Southern-Table-menu/472","glue/Yolo-Rollo-menu/473","glue/The-Cozy-Cow-menu/475","glue/Ale\'s-Kitchen-menu/476","glue/Brass-Tap-menu/477","glue/Bubby\'s-Diner-menu/478","glue/Chuckwagon-BBQ-Southside-menu/480","glue/Five-Guys-Carl-T.-Jo-menu/481","glue/Five-Guys-Enterprise-Way-menu/482","glue/Five-Guys-North-Pkwy-menu/483","glue/I-Love-Korea-menu/484","glue/Jim-\'N-Nicks-University-menu/485","glue/Just-Love-Coffee-Cafe-Huntsvil-menu/486","glue/Melt-Huntsville-menu/489","glue/Moes-Southwest-Grill-Airport-R-menu/490","glue/Moes-Southwest-Grill-Bridgestr-menu/491","glue/Nothing-But-Noodles-University-menu/493","glue/Nothing-But-Noodles-Whitesburg-menu/494","glue/Nothing-Bundt-Cakes-menu/495","glue/Offbeat-Coffee-menu/496","glue/Phil-Sandoval\'s-menu/498","glue/Pretzel-Twister-menu/500","glue/Schlotzsky\'s-&-Cinnabon-South-menu/501","glue/Schlotzsky\'s-&-Cinnabon-Univer-menu/502","glue/Super-Chix-menu/503","glue/Tenders-5-Points-menu/505","glue/Tenders-Wynn-Dr-menu/507","glue/Tenders-by-Hsv-Hospital-menu/508","glue/Terry\'s-Pizza-menu/509","glue/The-Martin-menu/510","glue/Angel\'s-Island-Coffee-menu/515","glue/Bandito-Burrito-Governors-menu/516","glue/Baskin-Robbins-Whitesburg-menu/517","glue/Baumhower\'s-Victory-Grille-menu/518","glue/Blue-Plate-Cafe-Governors-menu/519","glue/Bruegger\'s-Bagels-Bailey-Cove-menu/520","glue/Cheeseburger-Bobby\'s-JV-menu/522","glue/Chips-and-Salsa-menu/524","glue/Cracker-Barrel-Drake-Ave.-menu/525","glue/El-Olmeca-University-Dr-menu/528","glue/Flight-Plan-menu/529","glue/Fresko-Grille-menu/531","glue/Full-Moon-Bar-B-Que-Huntsville-menu/533","glue/La-Esquina-Cocina-menu/535","glue/Lean-Kitchen-menu/537","glue/Mangia-Italian-Restaurant-menu/539","glue/Mellow-Mushroom-Providence-menu/540","glue/Moes-BBQ-Downtown-menu/542","glue/Moes-BBQ-Providence-menu/543","glue/Olive-Garden-menu/546","glue/Rhythm-on-Monroe-Huntsville-menu/550","glue/Roosters-Crow-Coffee-Roastery-menu/551","glue/Sac\'s-Kitchen-Huntsville-menu/553","glue/Sidetracks-Music-Hall-menu/556","glue/Suzy\'s-Pops-menu/558","glue/Terranova\'s-Huntsville-menu/560","glue/The-Camp-menu/561","glue/The-Greenroom-Coffee-at-The-Ca-menu/562","glue/Venice-Pizza-menu/565","glue/West-End-Grill-menu/566","glue/Firehouse-Subs-Jones-Valley-menu/569","glue/Firehouse-Subs-Research-Park-menu/571","glue/Firehouse-Subs-South-Pkwy-menu/572","glue/Bojangles-Catering-North-Madison--menu/590","glue/Bojangles-Catering-North-Parkway-menu/591","glue/Bojangles-Catering-South-Parkway-menu/592","glue/Bojangles-Catering-University-menu/594","glue/Boot-Pizzeria-menu/599","glue/Honest-Coffee-menu/602","glue/Hops-&-Guac-menu/603","glue/Lucky-Dice-Cafe-menu/604","glue/Phat-Sammy\'s-menu/605","glue/Pieology-menu/606","glue/Pizzelle\'s-Confections-menu/607","glue/Port-of-Madison-menu/608","glue/Sitar-Indian-Cuisine-menu/609","glue/Toy-Box-Bistro-menu/610","glue/Red-Robin-menu/621","glue/Red-Robin-menu/622","glue/Regale-Cupcakery-Huntsville-menu/668","glue/Subway-Jones-Valley-menu/678","glue/Krispy-Kreme-Huntsville-menu/688","glue/Whataburger-South-Parkway-menu/691","glue/Logan\'s-Roadhouse-Balmoral-menu/692","glue/Red-Lobster-Huntsville-menu/693","glue/Logan\'s-Roadhouse-University-menu/703","glue/Waffle-House-Five-Points-menu/709","glue/Viet-Huong-Vietnamese-Restaurant-menu/712","glue/Jason\'s-Deli-Whitesburg-menu/714","glue/Jason\'s-Deli-University-menu/715","glue/Kung-Fu-Tea-Huntsville-menu/723","glue/G\'s-Country-Kitchen-menu/725","glue/Ding-How-II-menu/739","glue/Viet-Cuisine-menu/741","glue/Oriental-Express-72-menu/742","glue/Little-Caesars-Triana-menu/763","glue/Little-Caesars-Sparkman-menu/764","glue/Little-Caesars-on-Redstone-menu/771","glue/Jason\'s-Deli-Catering-University-menu/772","glue/Jason\'s-Deli-Catering-Whitesburg-menu/773","glue/Sonic-on-Sparkman-menu/780","glue/Subway-on-Jordan-Ln.-menu/781","glue/Nothing-But-Noodles-University-Catering-menu/783","glue/Nothing-But-Noodles-Whitesburg-Catering-menu/784","glue/Chicken-Salad-Chick-menu/786","glue/Arby\'s-on-University-menu/803","glue/Arby\'s-S-Pkwy-menu/804","glue/Popeyes-on-N.-Pkwy-menu/813","glue/Clover-Bee\'s-Curry-Point-menu/832","glue/Wings-To-Go-Jordan-menu/833","glue/Wings-To-Go-N-Pkwy-menu/834","glue/The-Wine-Cellar-menu/845","glue/Carrabba\'s-Italian-Grill-menu/862","glue/Pier-88-Boiling-Seafood-menu/864","glue/Krystal-N.-Pkwy-menu/884","glue/Panda-Express-University-Dr.-menu/886","glue/Walgreens-Whitesburg-Dr.-menu/895","glue/Applebee\'s-Madison-menu/264","glue/Asian-House-menu/267","glue/Bigfoot\'s-Little-Donuts-MAD-menu/276","glue/Captain-D\'s-Madison-menu/278","glue/Casa-Blanca-Madison-menu/282","glue/Hibachi-Express-Madison-menu/301","glue/La-Placita-menu/308","glue/Lucia\'s-Cocina-Mexicana-Madiso-menu/316","glue/Metro-Diner-Madison-menu/323","glue/Papa-Murphy\'s-Clift-Farm-menu/332","glue/Papa-Murphy\'s-Wall-Triana-menu/334","glue/Piper-&-Leaf-Strong-Station-menu/338","glue/Pita-Street-Food-Madison-menu/339","glue/Planet-Smoothie-Madison-menu/341","glue/Red-Fish-menu/344","glue/Rome-2-Greece-menu/348","glue/Sakura-menu/350","glue/Schlotzsky\'s-Madison-menu/353","glue/SmashBurger-menu/354","glue/Sweet-Charlie\'s-Hand-Rolled-menu/357","glue/Teriyaki-Madness-menu/358","glue/Tropical-Smoothie-Cafe-Madison-menu/365","glue/Wendy\'s-County-Line-menu/369","glue/Wendy\'s-Hughes-Rd-menu/372","glue/Wendy\'s-Madison-Blvd-menu/374","glue/Zaxby\'s-Hwy-72-W-menu/380","glue/Zaxby\'s-Ivory-Pl-menu/381","glue/Donatos-Pizza-Madison-menu/388","glue/Hunt-Brothers-Pizza-Harvest-menu/398","glue/IHOP-Madison-menu/399","glue/Al-Shish-Palace-menu/421","glue/Bojangles-Madison-Blvd.-menu/423","glue/Champy\'s-Chicken-Madison-menu/430","glue/Cork-&-Crust-Pizzeria-menu/431","glue/El-Molcajete-Mexican-Grill-menu/435","glue/McDonalds-Hwy-53-menu/448","glue/Taqueria-El-Cazador-Hwy-72-menu/455","glue/Tazikis-Madison-menu/458","glue/Ted\'s-BBQ-Madison-menu/460","glue/Porcher\'s-Cafe-menu/466","glue/WOW-Donuts-menu/470","glue/Just-Love-Coffee-Cafe-Madison-menu/487","glue/Kobe-Sushi-Hibachi-Express-menu/488","glue/Moes-Southwest-Grill-Madison-menu/492","glue/Tenders-Madison-menu/506","glue/Valentina\'s-Pizzeria-Madison-menu/513","glue/Freddy\'s-Steakburgers-Madison-menu/514","glue/Bruegger\'s-Bagels-Hughes-Rd.-menu/52
31","glue/Cracker-Barrel-Madison-menu/526","glue/Dairy-Queen-Grill-&-Chill-72W-menu/527","glue/Fulin\'s-Madison-menu/532","glue/Mi-Casa-Mexican-Restaurant-Harvest-menu/541","glue/New-China-Madison-Blvd.-menu/545","glue/PuntaCana-Caribbean-Restaurant-menu/547","glue/Salsaritas-Madison-menu/554","glue/Shake-It-Boba-Madison-menu/555","glue/The-Station-menu/563","glue/Tide-Clean-7-Chevron-Deli-menu/564","glue/Firehouse-Subs-Balch-menu/568","glue/Firehouse-Subs-Madison-Blvd-menu/570","glue/Bojangles-Catering-Madison-Blvd.-menu/589","glue/Guadalajara-Jalisco-Madison-menu/601","glue/Thai-Elephant-Madison-menu/617","glue/Frida\'s-Cantina-Madison-menu/666","glue/Pho-Mous-Madison-menu/667","glue/Moes-BBQ-Madison-menu/669","glue/Logan\'s-Roadhouse-Madison-menu/694","glue/Little-Caesars-Hughes-Rd-menu/710","glue/Arby\'s-72-W-menu/795","glue/Arby\'s-on-Hwy-20-menu/801","glue/Chicken-Salad-Chick-Madison-menu/810","glue/Panda-Express-Madison-menu/889","glue/Alabama-Bliss-menu/123","glue/Applebee\'s-Florence-menu/124","glue/Buffalo-Wild-Wings-Florence-menu/125","glue/Captain-D\'s-Florence-menu/126","glue/Captain-D\'s-Muscle-Shoals-menu/127","glue/CiCi\'s-Pizza-Florence-menu/128","glue/Ichiban-Florence-menu/129","glue/Ichiban-Sheffield-menu/130","glue/Mr.-Hui\'s-Peacock-Express-menu/133","glue/Papa-Murphy\'s-Muscle-Shoals-menu/134","glue/Popeyes-Louisiana-Kitchen-Flor-menu/135","glue/Rick\'s-Barbecue-Cox-Creek-menu/136","glue/Rick\'s-Barbecue-Skypark-menu/137","glue/Rick\'s-Barbecue-Wilson-Dam-menu/138","glue/Rick\'s-Barbecue-on-Woodward-menu/139","glue/Wendy\'s-Florence-menu/142","glue/Wendy\'s-Muscle-Shoals-menu/143","glue/Wok-\'N-Roll-menu/144","glue/Yumm-Thai-Sushi-Beyond-Floren-menu/146","glue/China-Gourmet-Muscle-Shoals-menu/147","glue/Fiesta-Mexicana-7-Points-menu/148","glue/Fiesta-Mexicana-Muscle-Shoals-menu/149","glue/Fiesta-Mexicana-Sheffield-menu/150","glue/The-Chicago-Cafe-menu/151","glue/WildWood-Tavern-menu/152","glue/306-BBQ-Muscle-Shoals-menu/154","glue/Big-Bad-Breakfast-Florence-menu/155","glue/Bojangles-Florence-menu/157","glue/Bojangles-Muscle-Shoals-menu/158","glue/Champy\'s-Chicken-Muscle-Shoals-menu/159","glue/Lenny\'s-Grill-Subs-menu/160","glue/On-the-Rocks-menu/161","glue/Ricatonis-menu/162","glue/Rosie\'s-Mexican-Cantina-menu/163","glue/Smokin\'-Jalapeno-menu/164","glue/Soul-Wingery-Records-menu/165","glue/South\'s-Best-BBQ-menu/166","glue/Sweet-Basil-Alabama-Inc.-menu/167","glue/Tazikis-Florence-menu/168","glue/The-Pie-Factory-Florence-menu/169","glue/The-Pie-Factory-Muscle-Shoals-menu/170","glue/The-Rising-Crust-Florence-menu/171","glue/Zaxby\'s-Avalon-Ave-menu/172","glue/Zaxby\'s-Cloverdale-Rd-menu/173","glue/Zaxby\'s-Cox-Creek-menu/174","glue/Esther\'s-Eatery-Florence-menu/176","glue/Godfathers-Pizza-menu/177","glue/Mac\'s-Cafe-Sheffield-menu/178","glue/Odette-menu/179","glue/The-Coffee-&-Artsy-Place-Flore-menu/181","glue/The-Coffee-&-Artsy-Place-MS-menu/182","glue/Trowbridge\'s-Florence-menu/183","glue/UMI-Japanese-Steak-House-Flore-menu/184","glue/Vertillo-Pizza-menu/185","glue/Five-Guys-Florence-menu/186","glue/Swamp-John\'s-menu/187","glue/Sweet-Peppers-Deli-Muscle-Shoa-menu/188","glue/Bojangles-Catering-Muscle-Shoals-menu/613","glue/Bojangles-Catering-Florence-menu/614","glue/Yummies-Bakery-&-Deli-Muscle-Shoals-menu/672","glue/Yummies-Bakery-&-Deli-Florence-menu/673","glue/Arby\'s-Florence-menu/700","glue/Burger-Depot-menu/711","glue/Little-Caesars-Florence-menu/769","glue/Little-Caesars-Muscle-Shoals-menu/770","glue/Krispy-Kreme-Florence-menu/788","glue/Donna-&-Friends-Restaurant-menu/789","glue/Arby\'s-Muscle-Shoals-menu/800","glue/Logan\'s-Roadhouse-Florence-menu/867","glue/Panera-Bread-Florence-menu/868"]');var Ae=m(26549),N=m(90978),be=m(82176),re=m(64068),Bt=m(39688),Vt=m(59162),Ut=m(68132),Ht=m(73071),Yt=m(90910),Me=m(63370),Jt=m(58987),Oe=m(49670),oe=m(38699),ae=m(53305),Pe=m(96256),Gt=m(42902),Wt=m(70900),Te=m(51933),Qt=m(32853),qt=m(85247),jt=m(72835),Kt=m(89461);function $t(i,o){1&i&&(e.TgZ(0,"div",4),e._uU(1),e.qZA()),2&i&&(e.xp6(1),e.hij("\u2b1b "," ",""))}function Xt(i,o){if(1&i&&(e.TgZ(0,"ion-select-option",2),e.YNc(1,$t,2,1,"div",3),e.qZA()),2&i){const s=o.$implicit;e.Q6J("value",s.value),e.xp6(1),e.Q6J("ngForOf",s.blocks)}}const en=function(i){return{"remove-margin":i}};let tn=(()=>{var i;class o{constructor(t,n){this.restAPI=t,this.storage=n,this.options=[{value:"3",blocks:[1,2,3]},{value:"2",blocks:[1,2]},{value:"1",blocks:[1]}],this.removeMargin=!1,this.setOptionsFromWidth()}ngOnInit(){this.setResponsiveColumns(),window.addEventListener("resize",()=>{this.setResponsiveColumns()})}setOptionsFromWidth(){this.options=window.innerWidth>=1024?[{value:"2",blocks:[1,2]},{value:"1",blocks:[1]}]:[{value:"1",blocks:[1]}]}ngOnDestroy(){this.columnSubscription&&this.columnSubscription.unsubscribe()}setNumOfColumns(){var t=this;return(0,_.Z)(function*(){const n=yield t.storage.get("numOfCols");t.selectedOption=n?n.toString():window.innerWidth<1024?"1":"2",t.handleLayoutChange({detail
3:{value:parseInt(t.selectedOption)}})})()}handleLayoutChange(t){this.restAPI.numOfColumns=t.detail.value,this.storage.set("numOfCols",t.detail.value),this.restAPI.layoutChange.emit(this.restAPI.isRestaurantPage?"menu":"listing")}setResponsiveColumns(){typeof window<"u"&&(this.selectedOption=window.innerWidth>=1024?"2":"1",this.handleLayoutChange({detail:{value:parseInt(this.selectedOption)}}))}}return(i=o).\u0275fac=function(t){return new(t||i)(e.Y36(re.T),e.Y36(Me.Ke))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-layout-select"]],inputs:{removeMargin:"removeMargin"},decls:2,vars:5,consts:[["interface","popover","aria-label","Number of Columns","fill","outline",1,"layout-select",3,"ngClass","value","ionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["class","box",4,"ngFor","ngForOf"],[1,"box"]],template:function(t,n){1&t&&(e.TgZ(0,"ion-select",0),e.NdJ("ionChange",function(r){return n.handleLayoutChange(r)}),e.YNc(1,Xt,2,2,"ion-select-option",1),e.qZA()),2&t&&(e.Q6J("ngClass",e.VKq(3,en,n.removeMargin))("value",n.selectedOption),e.xp6(1),e.Q6J("ngForOf",n.options))},dependencies:[O.mk,O.sg,w.t9,w.n0,w.QI],styles:["ion-select[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #CACACA;border-radius:10px;box-shadow:0 1px 7px 1px #00000040!important;padding-left:10px;margin:0 1rem}ion-select[_ngcontent-%COMP%] [_ngcontent-%COMP%]:focus, ion-select[_ngcontent-%COMP%] [_ngcontent-%COMP%]:active{border:1px solid #CACACA;box-shadow:0 1px 7px 1px #00000040!important}ion-select[_ngcontent-%COMP%]::part(text){margin-right:10px;font-size:15px}.remove-margin[_ngcontent-%COMP%]{margin:0}"]}),o})();function nn(i,o){if(1&i&&(e.TgZ(0,"div",9),e._UZ(1,"ion-img",10),e.TgZ(2,"div")(3,"h6",11),e._uU(4),e.qZA(),e.TgZ(5,"p",12),e._uU(6),e.qZA()()()),2&i){const s=o.$implicit;e.xp6(4),e.Oqu(null==s?null:s.lineitem),e.xp6(2),e.Oqu(null==s?null:s.description)}}function sn(i,o){if(1&i&&(e.TgZ(0,"div",7),e.YNc(1,nn,7,2,"div",8),e.qZA()),2&i){const s=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",s.deals)}}function rn(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"div",3),e.NdJ("click",function(n){e.CHM(s);const a=e.oxw();return e.KtG(a.stopPropogation(n))}),e.TgZ(1,"div",4)(2,"ion-img",5),e.NdJ("click",function(n){e.CHM(s);const a=e.oxw();return e.KtG(a.handleShowDeals(n))}),e.qZA()(),e.YNc(3,sn,2,1,"div",6),e.qZA()}if(2&i){const s=e.oxw();e.xp6(3),e.Q6J("ngIf",(null==s.deals?null:s.deals.length)>0)}}const on=function(i){return{"mobile-styles-closed":i}};let Le=(()=>{var i;class o{constructor(){this.showDeals=!1,this.isMobileView=!1}ngOnInit(){}handleShowDeals(t){this.showDeals=!this.showDeals,t.stopPropagation()}stopPropogation(t){t.stopPropagation()}}return(i=o).\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-restaurant-card-deal"]],inputs:{deals:"deals",isMobileView:"isMobileView"},decls:5,vars:4,consts:[[1,"view-deals-text",3,"ngClass","click"],["src","assets/imgs/deal-icon.png","alt","deal tag icon",1,"tag-icon-card"],["class","deals-overlay",3,"click",4,"ngIf"],[1,"deals-overlay",3,"click"],[1,"close-icon-container"],["src","assets/imgs/cross.png","alt","close deals icon",2,"cursor","pointer !important","height","1.75rem","width","1.75rem",3,"click"],["class","deals-container",4,"ngIf"],[1,"deals-container"],["class","deal-container",4,"ngFor","ngForOf"],[1,"deal-container"],["src","assets/imgs/deal-icon.png","alt","deal tag icon",1,"tag-icon-deal"],[1,"deal-heading"],[1,"deal-text"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.NdJ("click",function(r){return n.handleShowDeals(r)}),e.TgZ(1,"h6"),e._UZ(2,"ion-img",1),e._uU(3," View Deals"),e.qZA()(),e.YNc(4,rn,4,1,"div",2)),2&t&&(e.Q6J("ngClass",e.VKq(2,on,n.isMobileView)),e.xp6(4),e.Q6J("ngIf",n.showDeals))},dependencies:[O.mk,O.sg,O.O5],styles:[".view-deals-text[_ngcontent-%COMP%]{position:absolute;left:3px;top:3px;background:#E74C3C;padding:0 3px 1px 1px;z-index:100;width:auto;height:auto;cursor:pointer;color:#fff;border-radius:5px}.view-deals-text[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:12px;display:flex;align-items:center;margin:4px;padding-bottom:0}.mobile-styles-closed[_ngcontent-%COMP%]{top:auto;bottom:0;right:0}.deals-overlay[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;background-color:#000c;z-index:101;overflow:scroll;cursor:auto}.close-icon-container[_ngcontent-%COMP%]{display:flex;justify-content:end;margin-right:5px;margin-top:5px;position:sticky;right:15;top:15}ion-icon[_ngcontent-%COMP%]{font-size:2rem!important}.tag-icon-deal[_ngcontent-%COMP%], .tag-icon-card[_ngcontent-%COMP%]{height:1rem;width:1rem;margin-right:.75rem}.deals-container[_ngcontent-%COMP%]{margin:0 1rem}.deal-container[_ngcontent-%COMP%]{margin-bottom:.25rem;display:flex}.deal-container[_ngcontent-%COMP%] .tag-icon-deal[_ngcontent-%COMP%]{margin-top:3px}.deal-item[_ngcontent-%COMP%]{--ion-item-background: transparent !important;flex-direction:column!important}.deal-text[_ngcontent-%COMP%], .deal-heading[_ngcontent-%COMP%]{color:#fff}.deal-heading[_ngcontent-%COMP%]{margin:0 0 2px;font-weight:700}.deal-text[_ngcontent-%COMP%]{margin:0}"]}),o})();function an(i,o){if(1&i&&e._UZ(0,"app-restaurant-card-deal",27),2&i){const s=e.oxw(2);e.Q6J("deals",s.rest.deals)}}const L=function(i){return{"background-image":i}};function ln(i,o){if(1&i&&(e.TgZ(0,"div"),e._UZ(1,"div",28),e.TgZ(2,"div",29),e._UZ(3,"div",28),e.qZA()()),2&i){const s=e.oxw(2);e.xp6(1),e.Q6J("ngStyle",e.VKq(2,L,"url("+s.getFeaturedDishImageUrl(s.rest.featured_dish)+")")),e.xp6(2),e.Q6J("ngStyle",e.VKq(4,L,"url("+s.sharedService.getLogo(s.rest)+")"))}}function un(i,o){if(1&i&&(e.TgZ(0,"div",30)(1,"div",31),e._UZ(2,"div",28),e.TgZ(3,"div",29),e._UZ(4,"div",28),e.qZA()()()),2&i){const s=e.oxw(2);e.xp6(2),e.Q6J("ngStyle",e.VKq(2,L,"url("+s.getFeaturedDishImageUrl(s.rest.featured_dish)+")")),e.xp6(2),e.Q6J("ngStyle",e.VKq(4,L,"url("+s.sharedService.getLogo(s.rest)+")"))}}function cn(i,o){1&i&&(e.TgZ(0,"h5",39),e._uU(1,"Pickup at "),e.qZA())}function dn(i,o){1&i&&(e.TgZ(0,"h5",39),e._uU(1,"Delivery at"),e.qZA())}function gn(i,o){if(1&i&&(e.TgZ(0,"div",32)(1,"div",33),e._UZ(2,"ion-icon",34),e.YNc(3,cn,2,0,"h5",35),e.YNc(4,dn,2,0,"h5",35),e.TgZ(5,"h1",36),e._uU(6),e.qZA()(),e.TgZ(7,"div",37),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"div",38),e._uU(11),e.ALo(12,"translate"),e.qZA()()),2&i){const s=e.oxw(2);e.xp6(3),e.Q6J("ngIf","Closed"!=s.rest.next_open&&("TAKEOUT"==s.orderType||"TAKEOUT"==s.type)),e.xp6(1),e.Q6J("ngIf","Closed"!=s.rest.next_open&&("DELIVERY"==s.orderType||"DELIVERY"==s.type)),e.xp6(2),e.Oqu(s.timeNextOpen(s.rest)),e.xp6(2),e.Oqu(e.l
3cZ(9,5,"preOrderLabel")),e.xp6(3),e.hij(" ",e.lcZ(12,7,"preOrderLabel")," ")}}function hn(i,o){1&i&&(e.TgZ(0,"span",40),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"delivery")))}function fn(i,o){1&i&&(e.TgZ(0,"span",41),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"takeout")))}function pn(i,o){1&i&&(e.TgZ(0,"div",42),e._UZ(1,"img",43),e.qZA())}function mn(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"span")(1,"div",44),e.NdJ("mouseenter",function(n){e.CHM(s);const a=e.oxw(2);return e.KtG(a.handleMouseEnter(n,a.rest.cuisines))})("mouseleave",function(){e.CHM(s);const n=e.oxw(2);return e.KtG(n.handleMouseLeave())}),e._uU(2),e.qZA()()}if(2&i){const s=e.oxw(2);e.xp6(2),e.hij(" ",s.sharedService.formatCuisines(s.rest.cuisines)," ")}}function _n(i,o){if(1&i&&(e.TgZ(0,"ion-content",49),e._uU(1),e.qZA()),2&i){const s=e.oxw(3);e.xp6(1),e.Oqu(s.sharedService.formatCuisines(s.rest.cuisines))}}const ke=function(i){return{"d-none":i}};function vn(i,o){if(1&i&&(e.TgZ(0,"span")(1,"span",45)(2,"span",46),e._uU(3),e.qZA(),e.TgZ(4,"span",47),e._uU(5," \xa0... See All"),e.qZA()(),e.TgZ(6,"ion-popover",48),e.YNc(7,_n,2,1,"ng-template"),e.qZA()()),2&i){const s=e.oxw(2);e.xp6(3),e.Oqu(s.restAPI.getCuisineText(s.rest.cuisines)),e.xp6(1),e.Q6J("id","feature-hover-trigger"+s.rest.rid)("ngClass",e.VKq(4,ke,s.rest.cuisines.length<25)),e.xp6(2),e.Q6J("trigger","feature-hover-trigger"+s.rest.rid)}}function Cn(i,o){if(1&i&&(e.TgZ(0,"span",50),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i){const s=e.oxw(2);e.xp6(1),e.lnq("",s.config.currency_symbol,"",s.rest.minorder," ",e.lcZ(2,3,"min"),"")}}function xn(i,o){1&i&&(e.TgZ(0,"span",51),e._uU(1," \u2022 "),e.qZA())}function Rn(i,o){if(1&i&&(e.TgZ(0,"span")(1,"span",51),e._uU(2," \u2022 "),e.qZA(),e.TgZ(3,"span",23),e._uU(4),e.qZA()()),2&i){const s=e.oxw(2);e.xp6(4),e.hij(" ",s.rest.fee," Del. Fee")}}function wn(i,o){if(1&i&&(e.TgZ(0,"span",23),e._UZ(1,"ion-icon",52),e._uU(2),e.ALo(3,"number"),e.qZA()),2&i){const s=e.oxw(2);e.xp6(2),e.AsE(" ",e.xi3(3,2,s.rest.distance,"1.1-1")," ",s.vendorService.GLUE_DISTANCE_UNIT," ")}}function yn(i,o){1&i&&(e.TgZ(0,"span",53),e._UZ(1,"img",43),e.qZA())}function Sn(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"ion-card",3),e.NdJ("click",function(){e.CHM(s);const n=e.oxw();return e.KtG(n.sharedService.goToRestaurant(n.rest.rid,n.rest.name,n.rest.shift))}),e.TgZ(1,"div",4),e.YNc(2,an,1,1,"app-restaurant-card-deal",5),e.TgZ(3,"ion-row",6)(4,"ion-col",7),e.YNc(5,ln,4,6,"div",8),e.YNc(6,un,5,6,"div",9),e.YNc(7,gn,13,9,"div",10),e.qZA(),e.TgZ(8,"ion-col",11)(9,"ion-card-title",12)(10,"div",13),e._uU(11),e.qZA()(),e.TgZ(12,"div",14)(13,"div",15),e.YNc(14,hn,3,3,"span",16),e.YNc(15,fn,3,3,"span",17),e.qZA()(),e.YNc(16,pn,2,0,"div",18),e.TgZ(17,"p",19),e.YNc(18,mn,3,1,"span",8),e.YNc(19,vn,8,6,"span",8),e.TgZ(20,"span",20)(21,"span"),e.YNc(22,Cn,3,5,"span",21),e.YNc(23,xn,2,0,"span",22),e.TgZ(24,"span",23),e._UZ(25,"ion-icon",24),e._uU(26),e.ALo(27,"translate"),e.qZA(),e.YNc(28,Rn,5,1,"span",8),e.YNc(29,wn,4,5,"span",25),e.qZA(),e.YNc(30,yn,2,0,"span",26),e.qZA()()()()()()}if(2&i){const s=e.oxw();e.xp6(2),e.Q6J("ngIf",(null==s.rest.deals?null:s.rest.deals.length)>0),e.xp6(2),e.Q6J("size",null!=s.resizeAPI&&s.resizeAPI.isMobileView?12:5),e.xp6(1),e.Q6J("ngIf",!s.isClosedRestaurant),e.xp6(1),e.Q6J("ngIf",s.isClosedRestaurant),e.xp6(1),e.Q6J("ngIf",s.isClosedRestaurant),e.xp6(1),e.Q6J("size",null!=s.resizeAPI&&s.resizeAPI.isMobileView?12:7),e.xp6(3),e.Oqu(s.rest.name),e.xp6(3),e.Q6J("ngIf","1"==s.rest.delivery&&"1"==s.rest.loc_delivery),e.xp6(1),e.Q6J("ngIf","1"==s.rest.takeout&&"1"==s.rest.loc_takeout),e.xp6(1),e.Q6J("ngIf","1"==s.rest.recommended&&(null==s.rest.deals?null:s.rest.deals.length)<1),e.xp6(2),e.Q6J("ngIf",s.rest.cuisines&&!(null!=s.resizeAPI&&s.resizeAPI.isMobileView)),e.xp6(1),e.Q6J("ngIf",s.rest.cuisines&&(null==s.resizeAPI?null:s.resizeAPI.isMobileView)),e.xp6(3),e.Q6J("ngIf","DELIVERY"===s.orderType||"TAKEOUT"===s.orderType&&"Y"!==s.vendorService.DISABLE_TAKEOUT_MIN_ORDER),e.xp6(1),e.Q6J("ngIf","DELIVERY"==s.orderType||"TAKEOUT"===s.orderType&&"Y"!==s.vendorService.DISABLE_TAKEOUT_MIN_ORDER),e.xp6(3),e.AsE(" ",s.sharedService.estWaitNdBuffer(s.rest,s.orderType)," ",e.lcZ(27,19,"mins")," "),e.xp6(2),e.Q6J("ngIf","DELIVERY"==s.orderType),e.xp6(1),e.Q6J("ngIf","TAKEOUT"==s.orderType),e.xp6(1),e.Q6J("ngIf",(null==s.rest.deals?null:s.rest.deals.length)>0)}}function An(i,o){if(1&i&&e._UZ(0,"app-restaurant-card-deal",27),2&i){const s=e.oxw(2);e.Q6J("deals",s.rest.deals)}}function bn(i,o){if(1&i&&(e.TgZ(0,"div"),e._UZ(1,"div",60),e.TgZ(2,"div",29),e._UZ(3,"div",60),e.qZA()()),2&i){const s=e.oxw(2);e.xp6(1),e.Q6J("ngStyle",e.VKq(2,L,"url("+s.getFeaturedDishImageUrl(s.rest.featured_dish)+")")),e.xp6(2),e.Q6J("ngStyle",e.VKq(4,L,"url("+s.sharedService.getLogo(s.rest)+")"))}}function Mn(i,o){if(1&i&&(e.TgZ(0,"div",30)(1,"div",31),e._UZ(2,"div",60),e.TgZ(3,"div",29),e._UZ(4,"div",60),e.qZA()()()),2&i){const s=e.oxw(2);e.xp6(2),e.Q6J("ngStyle",e.VKq(2,L,"url("+s.getFeaturedDishImageUrl(s.rest.featured_dish)+")")),e.xp6(2),e.Q6J("ngStyle",e.VKq(4,L,"url("+s.sharedService.getLogo(s.rest)+")"))}}function On(i,o){1&i&&(e.TgZ(0,"h5",39),e._uU(1,"Pickup at "),e.qZA())}function Pn(i,o){1&i&&(e.TgZ(0,"h5",39),e._uU(1,"Delivery at"),e.qZA())}function Tn(i,o){if(1&i&&(e.TgZ(0,"div",32)(1,"div",33),e._UZ(2,"ion-icon",34),e.YNc(3,On,2,0,"h5",35),e.YNc(4,Pn,2,0,"h5",35),e.TgZ(5,"h1",36),e._uU(6),e.qZA()(),e.TgZ(7,"div",37),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"div",38),e._uU(11),e.ALo(12,"translate"),e.qZA()()),2&i){const s=e.oxw(2);e.xp6(3),e.Q6J("ngIf","Closed"!=s.rest.next_open&&("TAKEOUT"==s.orderType||"TAKEOUT"==s.type)),e.xp6(1),e.Q6J("ngIf","Closed"!=s.rest.next_open&&("DELIVERY"==s.orderType||"DELIVERY"==s.type)),e.xp6(2),e.Oqu(s.timeNextOpen(s.rest)),e.xp6(2),e.Oqu(e.l
3cZ(9,5,"preOrderLabel")),e.xp6(3),e.hij(" ",e.lcZ(12,7,"preOrderLabel")," ")}}function Ln(i,o){1&i&&(e.TgZ(0,"span",40),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"delivery")))}function kn(i,o){1&i&&(e.TgZ(0,"span",41),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"takeout")))}const En=function(i,o){return{"three-col-icon":i,"two-col-icon":o}};function In(i,o){if(1&i&&(e.TgZ(0,"div",61),e._UZ(1,"img",43),e.qZA()),2&i){const s=e.oxw(2);e.Q6J("ngClass",e.WLB(1,En,3==s.restAPI.numOfColumns,2==s.restAPI.numOfColumns))}}function Dn(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"span")(1,"div",44),e.NdJ("mouseenter",function(n){e.CHM(s);const a=e.oxw(2);return e.KtG(a.handleMouseEnter(n,a.rest.cuisines))})("mouseleave",function(){e.CHM(s);const n=e.oxw(2);return e.KtG(n.handleMouseLeave())}),e._uU(2),e.qZA()()}if(2&i){const s=e.oxw(2);e.xp6(2),e.hij(" ",s.sharedService.formatCuisines(s.rest.cuisines)," ")}}function Zn(i,o){if(1&i&&(e.TgZ(0,"ion-content",49),e._uU(1),e.qZA()),2&i){const s=e.oxw(3);e.xp6(1),e.Oqu(s.sharedService.formatCuisines(s.rest.cuisines))}}function Nn(i,o){if(1&i&&(e.TgZ(0,"span")(1,"span",45)(2,"span",46),e._uU(3),e.qZA(),e.TgZ(4,"span",47),e._uU(5," \xa0... See All"),e.qZA()(),e.TgZ(6,"ion-popover",48),e.YNc(7,Zn,2,1,"ng-template"),e.qZA()()),2&i){const s=e.oxw(2);e.xp6(3),e.Oqu(s.restAPI.getCuisineText(s.rest.cuisines)),e.xp6(1),e.Q6J("id","feature-hover-trigger"+s.rest.rid)("ngClass",e.VKq(4,ke,s.rest.cuisines.length<25)),e.xp6(2),e.Q6J("trigger","feature-hover-trigger"+s.rest.rid)}}function Fn(i,o){if(1&i&&(e.TgZ(0,"span",50),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i){const s=e.oxw(2);e.xp6(1),e.lnq("",s.config.currency_symbol,"",s.rest.minorder," ",e.lcZ(2,3,"min"),"")}}function zn(i,o){1&i&&(e.TgZ(0,"span",51),e._uU(1," \u2022 "),e.qZA())}function Bn(i,o){if(1&i&&(e.TgZ(0,"span")(1,"span",51),e._uU(2," \u2022 "),e.qZA(),e.TgZ(3,"span",23),e._uU(4),e.qZA()()),2&i){const s=e.oxw(2);e.xp6(4),e.hij(" ",s.rest.fee," Del. Fee")}}function Vn(i,o){if(1&i&&(e.TgZ(0,"span",23),e._UZ(1,"ion-icon",52),e._uU(2),e.ALo(3,"number"),e.qZA()),2&i){const s=e.oxw(2);e.xp6(2),e.AsE(" ",e.xi3(3,2,s.rest.distance,"1.1-1")," ",s.vendorService.GLUE_DISTANCE_UNIT," ")}}const Un=function(i,o){return{"three-col-text":i,"two-col-text":o}},Hn=function(i,o){return{"three-col-subtext":i,"two-col-subtext":o}};function Yn(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"ion-card",54),e.NdJ("click",function(){e.CHM(s);const n=e.oxw();return e.KtG(n.sharedService.goToRestaurant(n.rest.rid,n.rest.name,n.rest.shift))}),e.TgZ(1,"div",4),e.YNc(2,An,1,1,"app-restaurant-card-deal",5),e.TgZ(3,"ion-row",6)(4,"ion-col",55),e.YNc(5,bn,4,6,"div",8),e.YNc(6,Mn,5,6,"div",9),e.YNc(7,Tn,13,9,"div",10),e.qZA(),e.TgZ(8,"ion-col",56)(9,"ion-card-title",57)(10,"div",13),e._uU(11),e.qZA()(),e.TgZ(12,"div",14)(13,"div",15),e.YNc(14,Ln,3,3,"span",16),e.YNc(15,kn,3,3,"span",17),e.qZA()(),e.YNc(16,In,2,4,"div",58),e.TgZ(17,"p",59),e.YNc(18,Dn,3,1,"span",8),e.YNc(19,Nn,8,6,"span",8),e.TgZ(20,"span",20)(21,"span"),e.YNc(22,Fn,3,5,"span",21),e.YNc(23,zn,2,0,"span",22),e.TgZ(24,"span",23),e._UZ(25,"ion-icon",24),e._uU(26),e.ALo(27,"translate"),e.qZA(),e.YNc(28,Bn,5,1,"span",8),e.YNc(29,Vn,4,5,"span",25),e.qZA()()()()()()()}if(2&i){const s=e.oxw();e.xp6(2),e.Q6J("ngIf",(null==s.rest.deals?null:s.rest.deals.length)>0),e.xp6(3),e.Q6J("ngIf",!s.isClosedRestaurant),e.xp6(1),e.Q6J("ngIf",s.isClosedRestaurant),e.xp6(1),e.Q6J("ngIf",s.isClosedRestaurant),e.xp6(2),e.Q6J("ngClass",e.WLB(20,Un,3==s.restAPI.numOfColumns,2==s.restAPI.numOfColumns)),e.xp6(2),e.Oqu(s.rest.name),e.xp6(3),e.Q6J("ngIf","1"==s.rest.delivery&&"1"==s.rest.loc_delivery),e.xp6(1),e.Q6J("ngIf","1"==s.rest.takeout&&"1"==s.rest.loc_takeout),e.xp6(1),e.Q6J("ngIf","1"==s.rest.recommended),e.xp6(1),e.Q6J("ngClass",e.WLB(23,Hn,3==s.restAPI.numOfColumns,2==s.restAPI.numOfColumns)),e.xp6(1),e.Q6J("ngIf",s.rest.cuisines&&!(null!=s.resizeAPI&&s.resizeAPI.isMobileView)),e.xp6(1),e.Q6J("ngIf",s.rest.cuisines&&(null==s.resizeAPI?null:s.resizeAPI.isMobileView)),e.xp6(3),e.Q6J("ngIf","DELIVERY"===s.orderType||"TAKEOUT"===s.orderType&&"Y"!==s.vendorService.DISABLE_TAKEOUT_MIN_ORDER),e.xp6(1),e.Q6J("ngIf","DELIVERY"==s.orderType||"TAKEOUT"===s.orderType&&"Y"!==s.vendorService.DISABLE_TAKEOUT_MIN_ORDER),e.xp6(3),e.AsE(" ",s.sharedService.estWaitNdBuffer(s.rest,s.orderType)," ",e.lcZ(27,18,"mins")," "),e.xp6(2),e.Q6J("ngIf","DELIVERY"==s.orderType),e.xp6(1),e.Q6J("ngIf","TAKEOUT"==s.orderType)}}let Jn=(()=>{var i;class o{constructor(t,n,a,r,l){this.sharedService=t,this.vendorService=n,this.config=a,this.restAPI=r,this.resizeAPI=l,this.url=this.config.rds_baseurl}ngOnInit(){}timeNextOpen(t){var n="";return"Closed"==t.next_open?n="Closed":t.next_open_date?n=this.dateToOrder==t.next_open_date?this.formatTime(t.next_open_time):V()(t.next_open_date,"YYYY-MM-DD").format("MM-DD")+" ("+this.formatTime(t.next_open_time)+")":t.next_open&&(n=this.formatTime(t.next_open)),n}formatTime(t){const[n,a]=t.split(":"),r=+n%24;return(r%12||12)+":"+a+(r<12?"AM":"PM")}handleMouseEnter(t,n){this.restAPI.hoverSubscription.emit({event:t,cuisines:n})}handleMouseLeave(){setTimeout(()=>{this.restAPI.hoverSubscription.emit()},200)}getFeaturedDishImageUrl(t){return t&&""!==t.trim()?this.sharedService.isImageRemote(t)?t:this.url+t:"assets/imgs/image-placeholder.png"}onImageError(t){t.target.style.backgroundImage="url(assets/imgs/image-placeholder.png)"}}return(i=o).\u0275fac=function(t){return new(t||i)(e.Y36(Pe.B),e.Y36(Te.n),e.Y36(Oe.D),e.Y36(re.T),e.Y36(ae.v))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-restaurant-card"]],inputs:{rest:"rest",orderType:"orderType",isClosedRestaurant:"isClosedRestaurant",dateToOrder:"dateToOrder"},decls:4,vars:4,consts:[[1,"popover",3,"id"],["class","restaurant-card-wrapper",3,"click",4,"ngIf"],["class","restaurant-card-wrapper","style","height: 100%;",3,"click",4,"ngIf"],[1,"restaurant-card-wrapper",3,"click"],[1,"restaurant-card"],[3,"deals",4,"ngIf"],[1,"restaurant-card-info-wrapper"],[1,"restaurant-card-logo",2,"padding","0",3,"size"],[4,"ngIf"],["class","ion_background",4,"ngIf"],["class","reorder-time-main",4,"ngIf"],[1,"restaurant-card-info",3,"size"],[1,"restaurant-card-title"],[1,"restaurant-title"],[1,"restaurant-service-info"],[1,"service-options"],["class","service-badge delivery-badge",4,"ngIf"],["class","service-badge takeout-badge",4,"ngIf"],["class","recommended",4,"ngIf"],[1,"restaurant-card-cuisine",2,"margin-top","0","margin-bottom","0"],[2,"display","flex","justify-content","space-between","align-items","center"],["class","restaurant-card-minimum",4,"ngIf"],["class","bullet",4,"ngIf"],[1,"restaurant-card-time"],["name","time-sharp"],["class","restaurant-card-time",4,"ngIf"],["class","recommended","style","display: inline-block;",4,"ngIf"],[3,"deals"],[1,"restaurant-card-image",3,"ngStyle"],[1,"logo"],[1,"ion_background"],[1,"closedRest_opacity"],[1,"reorder-time-main"],[1,"ion-text-center"],["name","time-outline",1,"closedRest_icon"],["class","closedRest_text_open",4,"ngIf"],[1,"closedRest_text"],[1,"status"],[1,"status-device"],[1,"closedRest_text_open"],[1,"service-badge","delivery-badge"],[1,"service-badge","takeout-badge"],[1,"recommended"],["src","assets/imgs/recommended.png","alt",""],[1,"truncate-desktop",3,"mouseenter","mouseleave"],[1,"rest_cuisines",2,"display","flex","justify-content","baseline","align-items","center","flex-wrap","wrap"],[1,"truncate"],[3,"id","ngClass"],["side","to
3p","alignment","center","triggerAction","hover",3,"trigger"],[1,"ion-padding"],[1,"restaurant-card-minimum"],[1,"bullet"],["name","location-sharp"],[1,"recommended",2,"display","inline-block"],[1,"restaurant-card-wrapper",2,"height","100%",3,"click"],["size","12",1,"restaurant-card-logo",2,"padding","0"],["size","12",1,"restaurant-card-info-multiple"],[1,"restaurant-card-title",3,"ngClass"],["class","recommended",3,"ngClass",4,"ngIf"],[2,"margin-top","0","margin-bottom","0",3,"ngClass"],[1,"restaurant-card-image","restaurant-card-image-multiple",3,"ngStyle"],[1,"recommended",3,"ngClass"]],template:function(t,n){1&t&&(e.TgZ(0,"span",0),e._uU(1),e.qZA(),e.YNc(2,Sn,31,21,"ion-card",1),e.YNc(3,Yn,30,26,"ion-card",2)),2&t&&(e.Q6J("id","popover-"+n.rest.rid),e.xp6(1),e.Oqu(n.sharedService.formatCuisines(n.rest.cuisines)),e.xp6(1),e.Q6J("ngIf",1==n.restAPI.numOfColumns),e.xp6(1),e.Q6J("ngIf",n.restAPI.numOfColumns>1))},dependencies:[O.mk,O.O5,O.PC,w.PM,w.Dq,w.wI,w.W2,w.gu,w.Nd,w.d8,Le,O.JJ,oe.X$],styles:[".restaurant-card-wrapper[_ngcontent-%COMP%]{margin:0 0 8px;padding:0!important;border-radius:5px;border-bottom:1px solid rgba(153,153,153,.4);border-top:1px solid rgba(153,153,153,.4);cursor:pointer;position:relative}.restaurant-card-wrapper[_ngcontent-%COMP%]:hover{background:#C1C1C1}.restaurant-card-image[_ngcontent-%COMP%]{height:145px;width:100%;background-size:cover;background-position:center center}.restaurant-card-image.fill[_ngcontent-%COMP%]{object-fit:fill}.restaurant-card-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.logo[_ngcontent-%COMP%]{position:absolute;top:10px;left:10px;width:95px;height:95px}.logo[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .logo[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{border-radius:5px;width:100%;height:100%}.restaurant-card-info[_ngcontent-%COMP%]{padding-left:25px;padding-top:15px;font-weight:500;background:white;z-index:2}.restaurant-card-info[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:16px;vertical-align:sub}.restaurant-card-info[_ngcontent-%COMP%]:hover{background:#C1C1C1}.bullet[_ngcontent-%COMP%]{margin:0 5px}.recommended[_ngcontent-%COMP%]{background:var(--ion-color-primary);padding:5px;height:30px;width:30px;border-radius:5px;margin-right:10px;position:absolute;right:0;top:10px}.recommended[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%}.restaurant-title[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:1px;max-width:80%}.restaurant-card-title[_ngcontent-%COMP%]{display:flex;justify-content:space-between;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rest_cuisines[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:4px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.restaurant-title[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:1px}.restaurant-card-image-multiple[_ngcontent-%COMP%]{height:10rem}.restaurant-card-info-multiple[_ngcontent-%COMP%]{padding:1rem}.restaurant-card-time-multiple[_ngcontent-%COMP%]{display:inline;align-items:center;margin-top:2px}.restaurant-card-title-multiple[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.restaurant-card-title-multiple[_ngcontent-%COMP%] .restaurant-title[_ngcontent-%COMP%]{font-size:1.5rem}.recommended-multiple[_ngcontent-%COMP%]{background-color:var(--ion-color-secondary);border-radius:5px}@media screen and (min-width: 768px) and (max-width: 980px){.restaurant-title[_ngcontent-%COMP%]{max-width:70%}}@media (max-width: 768px){.restaurant-card-info-wrapper[_ngcontent-%COMP%] ion-col[_ngcontent-%COMP%]{flex:0 0 100%!important;width:100%!important;max-width:100%!important}.restaurant-card-image[_ngcontent-%COMP%]{height:115px}.logo[_ngcontent-%COMP%]{width:75px;height:75px}.restaurant-card-info[_ngcontent-%COMP%]{padding-left:15px;padding-bottom:10px}.restaurant-card-title[_ngcontent-%COMP%]{font-size:20px}.restaurant-card-cuisine[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;white-space:break-spaces;font-size:12px;width:100%}.restaurant-card-cuisine[_ngcontent-%COMP%] .restaurant-card-cuisine-des[_ngcontent-%COMP%]{text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;overflow:hidden;width:50%;-webkit-box-orient:vertical}.restaurant-card-cuisine[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:visible!important}}.three-col-text[_ngcontent-%COMP%]{font-size:1.5rem}.three-col-subtext[_ngcontent-%COMP%]{font-size:1.1rem!important}.three-col-icon[_ngcontent-%COMP%]{height:2.2rem;width:2.2rem}.two-col-text[_ngcontent-%COMP%]{font-size:1.6rem!important}.three-col-subtext[_ngcontent-%COMP%]{font-size:1rem!important}.two-col-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem}.d-none[_ngcontent-%COMP%]{display:none!important}@media (min-width: 769px) and (max-width: 960px){.restaurant-card-title[_ngcontent-%COMP%]{font-size:1.5rem}}.ion_background[_ngcontent-%COMP%]{background-color:#000}.closedRest_opacity[_ngcontent-%COMP%]{opacity:.5}.reorder-time-main[_ngcontent-%COMP%]{height:100%;position:absolute;top:0;width:100%;display:flex;justify-content:center;align-items:center}.closedRest_icon[_ngcontent-%COMP%]{font-size:30px;color:#fff}.closedRest_text_open[_ngcontent-%COMP%]{margin:0;color:#fff;font-weight:300}.closedRest_text[_ngcontent-%COMP%]{margin:0;color:#fff}.status-device[_ngcontent-%COMP%], .filter[_ngcontent-%COMP%]{display:none}.status[_ngcontent-%COMP%], .status-device[_ngcontent-%COMP%]{position:absolute;background:var(--ion-color-secondary);top:25px;color:#fff;right:-45px;transform:rotate(45deg);text-transform:uppercase;font-weight:500;text-align:center;white-space:nowrap;
3width:200px;white-space:pre-wrap;z-index:1;padding-left:15px}.truncate-desktop[_ngcontent-%COMP%]{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:80%!important;position:relative!important;z-index:99999999999999!important;display:inline-block}.popover[_ngcontent-%COMP%]{display:none;background-color:#fff!important;color:#333!important;text-align:center;border-radius:8px;padding:10px;position:absolute;left:50%;transform:translate(-50%);font-size:14px!important;z-index:99999999999999!important;max-width:80%}.restaurant-service-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;width:100%}.service-options[_ngcontent-%COMP%]{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 6px}.service-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;padding:2px 10px;border-radius:12px;font-size:12px;font-weight:500;border:none}.service-badge.delivery-badge[_ngcontent-%COMP%]{background-color:#e3f2fd;color:#1565c0}.service-badge.takeout-badge[_ngcontent-%COMP%]{background-color:#fff3e0;color:#e88636}.three-col-text[_ngcontent-%COMP%] ~ .restaurant-service-info[_ngcontent-%COMP%] .service-badge[_ngcontent-%COMP%]{font-size:12px;padding:1px 10px}.two-col-text[_ngcontent-%COMP%] ~ .restaurant-service-info[_ngcontent-%COMP%] .service-badge[_ngcontent-%COMP%]{font-size:12px;padding:2px 10px}@media screen and (max-width: 576px){.recommended[_ngcontent-%COMP%]{height:2.5rem;max-height:2.5rem;min-height:2.5rem;width:2.75rem;max-width:2.75rem;min-width:2.75rem}.restaurant-card-title[_ngcontent-%COMP%]{font-size:1.25rem}}"]}),o})();const Gn=["restaurantsContent"],Wn=["openRestaurantsScroll"],Ee=["closedRestaurantsScroll"],Qn=["allRes1Scroll"],qn=["allResLocScroll"],Ie=["featuredRestaurantsScroll"],De=["cateringRestaurantsScroll"],jn=["stickyLocation"],Kn=["filterComp"],$n=["container"],Xn=["locationHeader"];function es(i,o){if(1&i&&(e.TgZ(0,"app-main-header",27),e._UZ(1,"i
3on-back-button",28),e.qZA()),2&i){const s=e.oxw();e.Q6J("hasBrandLogo",!s.showSticky)}}function ts(i,o){1&i&&e._UZ(0,"a",29),2&i&&e.s9C("href",o.$implicit,e.LSH)}const ns=function(i,o,s){return{sidebar:i,"filter-modal":o,"hide-modal":s}};function ss(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"ion-content",30)(1,"div",31)(2,"app-filter-content",32,33),e.NdJ("onFiltered",function(n){e.CHM(s);const a=e.oxw();return e.KtG(a.onListFiltered(n))})("changeCities",function(n){e.CHM(s);const a=e.oxw();return e.KtG(a.filterCities(n))})("onClearAll",function(){e.CHM(s);const n=e.oxw();return e.KtG(n.clearAllFilter())})("onItemClicked",function(n){e.CHM(s);const a=e.oxw();return e.KtG(a.handlerItemClicked(n))})("onAppliedFilter",function(n){e.CHM(s);const a=e.oxw();return e.KtG(a.handlerAppliedFilter(n))})("onClose",function(){e.CHM(s);const n=e.oxw();return e.KtG(n.toggleFilterModal(!1))}),e.qZA()()()}if(2&i){const s=e.oxw();let t;e.Q6J("ngClass",e.kEZ(9,ns,!(null!==(t=s.isMobileView)&&void 0!==t&&t),null!==(t=s.isMobileView)&&void 0!==t&&t&&s.filterModalOpen,!s.filterModalOpen)),e.xp6(2),e.Q6J("searchBarInput",s.searchBarValue)("textPlaceholder","restaurantOrItems")("when",s.when)("filterTitle",s.translate.instant("cuisine"))("restaurants",s.allRestaurants)("locations",s.restaurantLoc0)("orderType",s.type)("dietaryFilterItems",s.dietaryPreferences)}}function is(i,o){1&i&&(e.TgZ(0,"app-main-header"),e._UZ(1,"ion-back-button",28),e.qZA())}function rs(i,o){if(1&i&&(e.TgZ(0,"ion-col",37)(1,"ion-card",38)(2,"div",39)(3,"ion-row",40)(4,"ion-col",41)(5,"div",42),e._UZ(6,"ion-skeleton-text",43),e.TgZ(7,"div",44),e._UZ(8,"ion-skeleton-text",45),e.qZA()()(),e.TgZ(9,"ion-col",46),e._UZ(10,"ion-skeleton-text",47)(11,"ion-skeleton-text",48)(12,"ion-skeleton-text",49)(13,"ion-skeleton-text",50)(14,"ion-skeleton-text",51),e.qZA()()()()()),2&i){const s=e.oxw(2);e.Q6J("size",12/s.restAPI.numOfColumns)("sizeMd",12/s.restAPI.numOfColumns)}}function os(i,o){if(1&i&&(e.TgZ(0,"div",34)(1,"ion-grid",35)(2,"ion-row"),e.YNc(3,rs,15,2,"ion-col",36),e.qZA()()()),2&i){const s=e.oxw();e.xp6(3),e.Q6J("ngForOf",s.skeletons)}}function as(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"div",52),e._UZ(1,"ion-icon",53),e.TgZ(2,"h1",54),e._uU(3," No Results Found "),e.qZA(),e.TgZ(4,"p",55),e._uU(5," No restaurants match your current filters "),e.qZA(),e.TgZ(6,"ion-button",56),e.NdJ("click",function(){e.CHM(s);const n=e.oxw();return e.KtG(n.clearFiltersOnly())}),e._UZ(7,"ion-icon",57),e._uU(8," Clear Filters "),e.qZA()()}}function ls(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"div",52),e._UZ(1,"ion-icon",58),e.TgZ(2,"h1",54),e._uU(3," No Restaurants Available "),e.qZA(),e.TgZ(4,"p",55),e._uU(5," We're sorry, but there are currently no restaurants available for your address. "),e.qZA(),e.TgZ(6,"ion-button",56),e.NdJ("click",function(){e.CHM(s);const n=e.oxw();return e.KtG(n.openAddressModal())}),e._UZ(7,"ion-icon",59),e._uU(8," Update Address "),e.qZA()()}}function us(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"div",52),e._UZ(1,"ion-icon",60),e.TgZ(2,"h1",54),e._uU(3," Update/Add Your Address "),e.qZA(),e.TgZ(4,"p",55),e._uU(5," To see restaurants near you "),e.qZA(),e.TgZ(6,"ion-button",56),e.NdJ("click",function(){e.CHM(s);const n=e.oxw();return e.KtG(n.openAddressModal())}),e._UZ(7,"ion-icon",59),e._uU(8," Update/Add Address "),e.qZA()()}}function cs(i,o){if(1&i&&(e.TgZ(0,"h1",63),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i){const s=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,1==s.featuredRestaurants.length?"featuredRestaurant":"featuredRestaurants")," ")}}function ds(i,o){if(1&i&&(e.TgZ(0,"div",61),e.YNc(1,cs,3,3,"h1",62),e.qZA()),2&i){const s=e.oxw();e.xp6(1),e.Q6J("ngIf",s.featuredRestaurants.length>0&&s.hideSkeleton)}}function gs(i,o){if(1&i&&(e.TgZ(0,"ion-col",37),e._UZ(1,"app-restaurant-card",66),e.qZA()),2&i){const s=o.$implicit,t=e.oxw(2);e.Q6J("size",12/t.restAPI.numOfColumns)("sizeMd",12/t.restAPI.numOfColumns),e.xp6(1),e.Q6J("orderType",t.orderType)("rest",s)}}const U=function(i){return{height:i}};function hs(i,o){if(1&i&&(e.TgZ(0,"cdk-virtual-scroll-viewport",64)(1,"ion-grid",34)(2,"ion-row"),e.YNc(3,gs,2,4,"ion-col",65),e.qZA()()()),2&i){const s=e.oxw();e.Akn(e.VKq(4,U,s.cardHeight*s.getNumOfRows("featured")+"px")),e.Q6J("itemSize",s.cardHeight+"px"),e.xp6(3),e.Q6J("cdkVirtualForOf",s.featuredRestaurants)}}function fs(i,o){if(1&i&&(e.TgZ(0,"h1",68),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i){const s=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,1==s.openRestaurants.length?"restaurantAvailable":"restaurantsAvailable")," ")}}function ps(i,o){if(1&i&&(e.TgZ(0,"div",61),e.YNc(1,fs,3,3,"h1",67),e.qZA()),2&i){const s=e.oxw();e.xp6(1),e.Q6J("ngIf",s.openRestaurants>"0"&&s.hideSkeleton)}}function ms(i,o){if(1&i&&(e.TgZ(0,"ion-col",37),e._UZ(1,"app-restaurant-card",66),e.qZA()),2&i){const s=o.$implicit,t=e.oxw(2);e.Q6J("size",12/t.restAPI.numOfColumns)("sizeMd",12/t.restAPI.numOfColumns),e.xp6(1),e.Q6J("orderType",t.orderType)("rest",s)}}function _s(i,o){if(1&i&&(e.TgZ(0,"cdk-virtual-scroll-viewport",69)(1,"ion-grid",34)(2,"ion-row"),e.YNc(3,ms,2,4,"ion-col",65),e.qZA()()()),2&i){const s=e.oxw();e.Akn(e.VKq(4,U,s.cardHeight*s.getNumOfRows("open")+"px")),e.Q6J("itemSize",s.cardHeight+"px"),e.xp6(3),e.Q6J("cdkVirtualForOf",s.openRestaurants)}}function vs(i,o){1&i&&(e.TgZ(0,"div",70)(1,"div",61),e._UZ(2,"ion-spinner",71),e.TgZ(3,"h1",68),e._uU(4," Loading more restaurants... "),e.qZA()()())}function Cs(i,o){if(1&i&&(e.TgZ(0,"h1",68),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i){const s=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,1==s.cateringRestaurants.length?"cateringOption":"cateringOptions")," ")}}function xs(i,o){if(1&i&&(e.TgZ(0,"div",61),e.YNc(1,Cs,3,3,"h1",67),e.qZA()),2&i){const s=e.oxw();e.xp6(1),e.Q6J("ngIf",s.cateringRestaurants>"0"&&s.hideSkeleton)}}function Rs(i,o){if(1&i&&(e.TgZ(0,"ion-col",37),e._UZ(1,"app-restaurant-card",66),e.qZA()),2&i){const s=o.$implicit,t=e.oxw(2);e.Q6J("size",12/t.restAPI.numOfColumns)("sizeMd",12/t.restAPI.numOfColumns),e.xp6(1),e.Q6J("orderType",t.orderType)("rest",s)}}function ws(i,o){if(1&i&&(e.TgZ(0,"cdk-virtual-scroll-viewport",64)(1,"ion-grid",34)(2,"ion-row"),e.YNc(3,Rs,2,4,"ion-col",65),e.qZA()()()),2&i){const s=e.oxw();e.Akn(e.VKq(4,U,s.cardHeight*s.getNumOfRows("catering")+"px")),e.Q6J("itemSize",s.cardHeight+"px"),e.xp6(3),e.Q6J("cdkVirtualForOf",s.cateringRestaurants)}}function ys(i,o){1&i&&(e.TgZ(0,"h1",68),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"futureOrdering")," "))}function Ss(i,o){if(1&i&&(e.TgZ(0,"div",61),e.YNc(1,ys,3,3,"h1",67),e.qZA()),2&i){const s=e.oxw();e.xp6(1),e.Q6J("ngIf",s.closedRestaurants>"0"&&s.hideSkeleton)}}function As(i,o){if(1&i&&(e.TgZ(0,"ion-col",37),e._UZ(1,"app-restaurant-card",73),e.qZA()),2&i){const s=o.$implicit,t=e.oxw(2);e.Q6J("size",12/t.restAPI.numOfColumns)("sizeMd",12/t.restAPI.numOfColumns),e.xp6(1),e.Q6J("isClosedRestaurant",!0)("dateToOrder",t.dateToOrder)("orderType",t.orderType)("rest",s)}}function bs(i,o){if(1&i&&(e.TgZ(0,"cdk-virtual-scroll-viewport",72)(1,"ion-grid",34)(2,"ion-row"),e.YNc(3,As,2,6,"ion-col",65),e.qZA()()()),2&i){const s=e.oxw();e.Akn(e.VKq(4,U,s.cardHeight*s.getNumOfRows("closed")+"px")),e.Q6J("itemSize",s.cardHeight+"px"),e.xp6(3),e.Q6J("cdkVirtualForOf",s.closedRestaurants)}}function Ms(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"button",77),e.NdJ("click",function(){e.CHM(s);const n=e.oxw(2);return e.KtG(n.toggleShowMoreClosed())}),e._uU(1),e._UZ(2,"ion-icon",78),e.qZA()}if(2&i){const s=e.oxw(2);e.xp6(1),e.hij(" +",s.allClosedRestaurants.length-s.closedRestaurants.length," More ")}}function Os(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"button",79),e.NdJ("click",function(){e.CHM(s);const n=e.oxw(2);return e.KtG(n.toggleShowMoreClosed())}),e._uU(1," Show Less "),e._UZ(2,"ion-icon",80),e.qZA()}}function Ps(i,o){if(1&i&&(e.TgZ(0,"div",74),e.YNc(1,Ms,3,1,"button",75),e.YNc(2,Os,3,0,"button",76),e.qZA()),2&i){const s=e.oxw();e.xp6(1),e.Q6J("ngIf",!s.showAllClosedRestaurants),e.xp6(1),e.Q6J("ngIf",s.showAllClosedRestaurants)}}function Ts(i,o){if(1&i&&(e.TgZ(0,"div",88)(1,"div",89),e._uU(2),e.qZA()()),2&i){const s=e.oxw(2).$implicit,t=e.oxw(2);e.xp6(2),e.Oqu(t.getLocationName(s.rest))}}function Ls(i,o){1&i&&(e.TgZ(0,"div",90),e._UZ(1,"app-layout-select"),e.qZA())}function ks(i,o){if(1&i&&(e.TgZ(0,"div",85),e.YNc(1,Ts,3,1,"div",86),e.YNc(2,Ls,2,0,"div",87),e.qZA()),2&i){const s=e.oxw().index,t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.restaurantFilter[s]),e.xp6(1),e.Q6J("ngIf",!(!((null==t.restaurantArrLoc0[s]?null:t.restaurantArrLoc0[s].length)>0)||null!=t.featuredRestaurants&&t.featuredRestaurants.length||null!=t.openRestaurants&&t.openRestaurants.length||null!=t.cateringRestaurants&&t.cateringRestaurants.length||null!=t.closedRestaurants&&t.closedRestaurants.length))}}function Es(i,o){if(1&i&&e._UZ(0,"app-restaurant-card-deal",114),2&i){const s=e.oxw().$implicit;e.Q6J("deals",s.deals)}}function Is(i,o){1&i&&e._UZ(0,"img",118)}const le=function(i){return{"hide-notLoad-image":i}};function Ds(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"div",115),e.YNc(1,Is,1,0,"img",116),e.TgZ(2,"img",117),e.NdJ("load",function(n){e.CHM(s);const a=e.oxw(2).$implicit,r=e.oxw(4);return e.KtG(r.onImageLoadFunc(a,n))}),e.qZA()()}if(2&i){const s=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngIf",!s.isImageLoad),e.xp6(1),e.s9C("src",s.featured_dish,e.LSH),e.Q6J("ngClass",e.VKq(3,le,!s.isImageLoad))}}function Zs(i,o){1&i&&e._UZ(0,"img",118)}function Ns(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"div",115),e.YNc(1,Zs,1,0,"img",116),e.TgZ(2,"img",117),e.NdJ("load",function(n){e.CHM(s);const a=e.oxw(2).$implicit,r=e.oxw(4);return e.KtG(r.onImageLoadFunc(a,n))}),e.qZA()()}if(2&i){const s=e.oxw(2).$implicit,t=e.oxw(4);e.xp6(1),e.Q6J("ngIf",!s.isImageLoad),e.xp6(1),e.hYB("src","",t.url,"",s.featured_dish,"",e.LSH),e.Q6J("ngClass",e.VKq(4,le,!s.isImageLoad))}}function Fs(i,o){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Ds,3,5,"div",101),e.YNc(2,Ns,3,6,"div",101),e.qZA()),2&i){const s=e.oxw().$implicit,t=e.oxw(4);e.xp6(1),e.Q6J("ngIf",t.isImageRemote(s.featured_dish)),e.xp6(1),e.Q6J("ngIf",!t.isImageRemote(s.featured_dish))}}function zs(i,o){1&i&&(e.TgZ(0,"div",115),e._UZ(1,"img",118),e.qZA())}function Bs(i,o){1&i&&(e.TgZ(0,"div",119),e._UZ(1,"img",120),e.qZA())}function Vs(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"div",119)(1,"img",117),e.NdJ("load",function(n){e.CHM(s);const a=e.oxw().$implicit,r=e.oxw(4);return e.KtG(r.onLogoLoadFunc(a,n))}),e.qZA()()}if(2&i){const s=e.oxw().$implicit,t=e.oxw(4);e.xp6(1),e.Q6J("ngClass",e.VKq(2,le,!s.isLogoLoad))("src",t.getLogo(s),e.LSH)}}const Us=function(i,o){return{"three-col-icon":i,"two-col-icon":o}};function Hs(i,o){if(1&i&&(e.TgZ(0,"div",121),e._UZ(1,"img",122),e.qZA()),2&i){const s=e.oxw(5);e.Q6J("ngClass",e.WLB(1,Us,3==s.restAPI.numOfColumns,2==s.restAPI.numOfColumns))}}function Ys(i,o){1&i&&(e.TgZ(0,"span",123),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"delivery")," "))}function Js(i,o){1&i&&(e.TgZ(0,"span",124),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"takeout")," "))}function Gs(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"span")(1,"span",125),e.NdJ("mouseenter",function(){e.CHM(s);const n=e.oxw().$implicit,a=e.oxw(4);return e.KtG(a.handleMouseEnter(n.rid))})("mouseleave",function(){e.CHM(s);const n=e.oxw().$implicit,a=e.oxw(4);return e.KtG(a.handleMouseLeave(n.rid))}),e._uU(2),e.qZA()()}if(2&i){const s=e.oxw().$implicit,t=e.oxw(4);e.xp6(1),e.Q6J("id","truncate-text-"+s.rid),e.xp6(1),e.Oqu(t.sharedService.formatCuisines(s.cuisines))}}function Ws(i,o){if(1&i&&(e.TgZ(0,"ion-content",129),e._uU(1),e.qZA()),2&i){const s=e.oxw(2).$implicit,t=e.oxw(4);e.xp6(1),e.Oqu(t.sharedService.formatCuisines(s.cuisines))}}function Qs(i,o){if(1&i&&(e.TgZ(0,"span")(1,"span",126)(2,"span",127),e._uU(3),e.qZA(),e.TgZ(4,"span",82),e._uU(5," \xa0... See All"),e.qZA()(),e.TgZ(6,"ion-popover",128),e.YNc(7,Ws,2,1,"ng-template"),e.qZA()()),2&i){const s=e.oxw().$implicit,t=e.oxw(4);e.xp6(3),e.Oqu(t.restAPI.getCuisineText(t.sharedService.formatCuisines(s.cuisines))),e.xp6(1),e.Q6J("id","all-hover-trigger"+s.rid),e.xp6(2),e.Q6J("trigger","all-hover-trigger"+s.rid)}}const qs=function(i){return{"sparse-location-col":i}}
3,js=function(i,o){return{"three-col-text":i,"two-col-text":o}},Ks=function(i,o){return{"three-col-subtext":i,"two-col-subtext":o}};function $s(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"ion-col",95)(1,"span",96),e._uU(2),e.qZA(),e.TgZ(3,"ion-card",97),e.NdJ("click",function(){const a=e.CHM(s).$implicit,r=e.oxw(4);return e.KtG(r.goToRestaurant(a.rid,a.name,a.shift))}),e.TgZ(4,"div",39),e.YNc(5,Es,1,1,"app-restaurant-card-deal",98),e.TgZ(6,"ion-row",99)(7,"ion-col",100),e.YNc(8,Fs,3,2,"div",11),e.YNc(9,zs,2,0,"div",101),e.YNc(10,Bs,2,0,"div",102),e.YNc(11,Vs,2,4,"div",102),e.qZA(),e.TgZ(12,"ion-col",103)(13,"div",104)(14,"ion-card-title",105),e._uU(15),e.qZA(),e.YNc(16,Hs,2,4,"div",106),e.qZA(),e.TgZ(17,"div",107)(18,"div",108)(19,"span",109),e._uU(20),e.qZA()(),e.TgZ(21,"div",110),e.YNc(22,Ys,3,3,"span",111),e.YNc(23,Js,3,3,"span",112),e.qZA()(),e.TgZ(24,"p",113),e.YNc(25,Gs,3,2,"span",11),e.YNc(26,Qs,8,3,"span",11),e.qZA()()()()()()}if(2&i){const s=o.$implicit,t=e.oxw(2).index,n=e.oxw(2);let a,r;e.Q6J("ngClass",e.VKq(21,qs,n.isSparseLocationGroup(t)))("size",n.getLocationColSize(t))("sizeMd",n.getLocationColSize(t)),e.xp6(1),e.Q6J("id","popover-"+s.rid),e.xp6(1),e.Oqu(s.cuisines),e.xp6(3),e.Q6J("ngIf",(null==s.deals?null:s.deals.length)>0),e.xp6(2),e.Q6J("size",1!=n.restAPI.numOfColumns||n.isMobileView?12:5),e.xp6(1),e.Q6J("ngIf",null!=s.featured_dish),e.xp6(1),e.Q6J("ngIf",null==s.featured_dish),e.xp6(1),e.Q6J("ngIf",null==s.logo),e.xp6(1),e.Q6J("ngIf",null!=s.logo),e.xp6(1),e.Q6J("size",1!=n.restAPI.numOfColumns||n.isMobileView?12:7),e.xp6(2),e.Q6J("ngClass",e.WLB(23,js,3==n.restAPI.numOfColumns,2==n.restAPI.numOfColumns)),e.xp6(1),e.hij(" ",s.name," "),e.xp6(1),e.Q6J("ngIf","1"==s.recommended),e.xp6(4),e.hij(" Ready in ",s.preptime||"20-30"," mins "),e.xp6(2),e.Q6J("ngIf","1"==s.delivery&&"1"==s.loc_delivery),e.xp6(1),e.Q6J("ngIf","1"==s.takeout&&"1"==s.loc_takeout),e.xp6(1),e.Q6J("ngClass",e.WLB(26,Ks,3==n.restAPI.numOfColumns,2==n.restAPI.numOfColumns)),e.xp6(1),e.Q6J("ngIf",s.cuisines&&!(null!==(a=n.isMobileView)&&void 0!==a&&a)),e.xp6(1),e.Q6J("ngIf",s.cuisines&&null!==(r=n.isMobileView)&&void 0!==r&&r)}}function Xs(i,o){if(1&i&&(e.TgZ(0,"cdk-virtual-scroll-viewport",91)(1,"div")(2,"ion-grid",92)(3,"ion-row",93),e.YNc(4,$s,27,29,"ion-col",94),e.qZA()()()()),2&i){const s=e.oxw().index,t=e.oxw(2);e.Akn(e.VKq(4,U,t.cardHeight*t.getNumOfRows("all",s)+"px")),e.Q6J("itemSize",t.cardHeight*t.getNumOfRows("all",s)+"px"),e.xp6(4),e.Q6J("cdkVirtualForOf",t.restaurantArrLoc0[s])}}function ei(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"button",77),e.NdJ("click",function(n){e.CHM(s);const a=e.oxw(2),r=a.$implicit,l=a.index,u=e.oxw(2);return e.KtG(u.toggleCollapse(n,r,l,!0))}),e._uU(1),e._UZ(2,"ion-icon",78),e.qZA()}if(2&i){const s=e.oxw(2).index,t=e.oxw(2);e.xp6(1),e.hij(" +",((null==t.allRestaurantArrLoc0[s]?null:t.allRestaurantArrLoc0[s].length)||0)-t.restaurantArrLoc0[s].length," More ")}}function ti(i,o){if(1&i){const s=e.EpF();e.TgZ(0,"button",79),e.NdJ("click",function(n){e.CHM(s);const a=e.oxw(2),r=a.$implicit,l=a.index,u=e.oxw(2);return e.KtG(u.toggleCollapse(n,r,l,!0))}),e._uU(1," Show Less "),e._UZ(2,"ion-icon",80),e.qZA()}}function ni(i,o){if(1&i&&(e.TgZ(0,"div",74),e.YNc(1,ei,3,1,"button",75),e.YNc(2,ti,3,0,"button",76),e.qZA()),2&i){const s=e.oxw(),t=s.$implicit,n=s.index,a=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.isExpaned&&(3==a.restaurantArrLoc0[n].length||4==a.restaurantArrLoc0[n].length)),e.xp6(1),e.Q6J("ngIf",t.isExpaned)}}function si(i,o){if(1&i&&(e.TgZ(0,"div",82),e.YNc(1,ks,3,2,"div",83),e.TgZ(2,"div"),e.YNc(3,Xs,5,6,"cdk-virtual-scroll-viewport",84),e.YNc(4,ni,3,2,"div",25),e.qZA()()),2&i){const s=o.$implicit,t=o.index,n=e.oxw(2);e.Q6J("id",s.rest),e.xp6(1),e.Q6J("ngIf",n.restaurantFilter[t]),e.xp6(2),e.Q6J("ngIf",(null==n.restaurantArrLoc0[t]?null:n.restaurantArrLoc0[t].length)>0&&n.restaurantFilter[t]),e.xp6(1),e.Q6J("ngIf",(null==n.restaurantArrLoc0[t]?null:n.restaurantArrLoc0[t].length)>0&&n.restaurantFilter[t])}}function ii(i,o){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,si,5,4,"div",81),e.qZA()),2&i){const s=e.oxw();e.xp6(1),e.Q6J("ngForOf",s.restaurantLoc00)}}function ri(i,o){1&i&&e._UZ(0,"div",130)}const oi=function(i){return{"no-filter-sidebar":i}},ai=function(i){return{"padding-bottom":i}},li=function(i,o){return{header:i,notHeader:o}};let ui=(()=>{var i;class o{constructor(t,n,a,r,l,u,c,g,h,d,f,p,v,R,C,x,S,b,P,A,y,I,F,H,hi,fi,pi,mi,_i,vi,Ci){var xi=this;this.router=t,this.route=n,this.loadingCtrl=a,this.alertCtrl=r,this.restAPI=l,this.addressAPI=u,this.statusBar=c,this.orderAPI=g,this.userAPI=h,this.cartAPI=d,this.storage=f,this.toastCtrl=p,this.location=v,this.http=R,this.config=C,this.translate=x,this.modalCtrl=S,this.platform=b,this.changeRef=P,this.screenResize=A,this.sharedService=y,this.footerService=I,this.appService=F,this.vendorService=H,this.elRef=hi,this.renderer=fi,this.resizeAPI=pi,this.gtmService=mi,this.ngZone=_i,this.document=vi,this.routerOutlet=Ci,this.orderType="",this.orderAddress="",this.orderAddressForLocationHeader="",this.orderTime="",this.isOrderAvailable=!1,this.url=this.config.rds_baseurl,this.allRestaurants=[],this.dietaryPreferences=[],this.openRestaurants=[],this.cateringRestaurants=[],this.closedRestaurants=[],this.featuredRestaurants=[],this.allOpenRestaurants=[],this.allCateringRestaurants=[],this.allClosedRestaurants=[],this.allFeaturedRestaurants=[],this.favRestaurants=[],this.upcomingOrders=[],this.skeletons=[1,2,3,4,5,6,7,8],this.activeSubscription=[],this.restaurantLoc0=[],this.restaurantLoc00=[],this.restaurantFilter=[],this.restaurantArrLoc0=[],this.allRestaurantArrLoc0=[],this.allRestaurantArrLoc0Unfiltered=[],this.viewAllFilteredRestaurantArrLoc0=[],this.viewAllOrderTypeFilterApplied=!1,this.locationSeoNames={},this.locationDlids={}
3,this.cacheRestaurants=zt,this.isHiddenModalOpen=!1,this.isAddressChange=!1,this.showMoreClosed=!1,this.showAllClosedRestaurants=!1,this.trackpage=!1,this.homepage=!1,this.showSticky=!1,this.hideSkeleton=!1,this.singleLocation=!1,this.noAddress=!1,this.hasCachedAddress=!1,this.confirmSettings=!1,this.zipOnly=!1,this.cartEmpty=!0,this.offSetFlag=!1,this.isFirst=!0,this.viewFlag=!1,this.filteredResult=null,this.filteredDataBool=!1,this.notSubscription=!0,this.paginationLimit=100,this.paginationOffset=0,this.hasMoreOpenRestaurants=!1,this.hasMoreClosedRestaurants=!1,this.isLoadingMore=!1,this.totalOpenRestaurants=0,this.totalClosedRestaurants=0,this.paginationCallCount=0,this.enablePaginationTestMode=!0,this.lastScrollLogTime=0,this.forceRenderFlag=0,this.shareableLink="",this.searchBarValue="",this.scrollPosition=0,this.filterCount=0,this.collasibleIndex=0,this.cityIndex=-1,this.routeChange=!1,this.featuredImg="assets/imgs/placeholder-featured.jpg",this.logoPlaceholder="assets/imgs/rest-logo-placeholder.jpg",this.collasibleDomain=this.document.getElementsByClassName("collapsible"),this.oldPosition=0,this.hideBottom=!1,this.citiesCheck=null,this.addressCoordinates={},this.cardHeight=200,this.removeLocationMarginTop=!1,this.vendorService.IS_SINGLE_RESTAURANT?this.router.navigate(["/restaurant/"+this.vendorService.SINGLE_RESTAURANT_INFO.RID]):(this.restAPI.layoutChange.subscribe(M=>{"listing"===M&&(this.setCardHeight(),Promise.resolve().then(()=>{this.changeRef&&!this.changeRef.destroyed&&this.changeRef.detectChanges()}))}),this.restAPI.setResponsiveColumns(),this.storage.get("cached_address").then(M=>{this.hasCachedAddress=!!M,!M&&!this.router.url.includes("?view=all")&&this.router.navigate(["restaurants"],{queryParams:{view:"all"}})}),this.activeSubscription.push(l.addressChange.subscribe(M=>{if("isRestoUpdate"==M)return this.isRestoUpdate="isRestoUpdate",void this.checkOrder("");this.content.scrollToTop(),this.hideSkeleton=!1,this.openRestaurants=[],this.allOpenRestaurants=[],this.cateringRestaurants=[],this.allCateringRestaurants=[],this.closedRestaurants=[],this.allClosedRestaurants=[],this.featuredRestaurants=[],this.allFeaturedRestaurants=[],this.allRestaurants=[],this.favRestaurants=[],this.isAddressChange=!0,this.hasCachedAddress=!0,this.notSubscription=!1,this.showAllClosedRestaurants=!1,this.checkSettingsTimestamp(!0)})),this.activeSubscription.push(l.shareableLink.subscribe(M=>{this.shareableLink=M})),this.activeSubscription.push(y.statusBar.subscribe(M=>{})),this.activeSubscription.push(g.newSettings.subscribe(M=>{M&&(M.routeChange?(this.routeChange=!0,this.router.navigate(["restaurants"]),this.ngOnInit()):0==M.routeChange&&(this.routeChange=!1,this.ngOnInit()))})),this.activeSubscription.push(h.languageChange.subscribe(M=>{this.startNewOrder()})),this.activeSubscription.push(d.cartChange.subscribe(M=>{"clearCart"==M&&this.checkSettingsTimestamp(!1)})),this.activeSubscription.push(t.events.subscribe(M=>{this.homepage="/landing"==v.path(),this.trackpage=1==v.path().search(/track/)})),this.getUserInfo(),this.platform.is("cordova")&&(b.pause.subscribe((0,_.Z)(function*(){})),b.resume.subscribe((0,_.Z)(function*(){xi.checkSettingsTimestamp(!0)}))),this.footerSubscription=this.footerService.toggleFilterModal.subscribe(M=>{M&&this.vendorService.HIDE_GLUE_RESTAURANT_FILTERS||(!0===M&&(this.isHiddenModalOpen=!0),this.filterModalOpen=M)}),this.setCardHeight())}setStatusBarColor(t){this.platform.is("cordova")}toggleCollapse(t,n,a){var r=this;return(0,_.Z)(function*(l,u,c,g=!1){let h;try{if(u.isExpaned){r.restaurantArrLoc0[c]&&(r.restaurantArrLoc0[c]=r.restaurantArrLoc0[c].slice(0,r.isMobileView?3:4));let f=r.document.getElementById(u.rest);setTimeout(()=>{f.scrollIntoView({behavior:"smooth"})},200)}else h=yield r.loadingCtrl.create({message:"Loading ..."}),yield h.present(),c>=0&&(r.restaurantArrLoc0[c]=[],r.restaurantArrLoc0[c].push(...r.getDisplayLocationRestaurants(c)),"Y"==r.citiesCheck&&!g&&r.sharedService.citiesFilterEmitter.emit(r.restaurantArrLoc0[c])),setTimeout(()=>{h.dismiss()},100);setTimeout(()=>{c>=0&&(r.restaurantLoc00[c].isExpaned=!u.isExpaned)},600),r.changeRef&&!r.changeRef.destroyed&&r.changeRef.detectChanges()}catch{setTimeout(()=>{h.dismiss()},100),r.router.url.includes("/restaurants")&&(yield(yield r.alertCtrl.create({header:r.translate.instant("noRestaurantsFound"),backdropDismiss:!1,buttons:[r.translate.instant("ok")]})).present())}finally{setTimeout(()=>{r.adjustCdkScrollHeights()},500)}}).apply(this,arguments)}initBottomMargin(){var t=this;return(0,_.Z)(function*(){t.cart=yield t.storage.get("cart"),t._user=yield t.storage.get("user")})()}ionViewDidEnter(){var t=this;return(0,_.Z)(function*(){t.gtmService.pushCustomEventNoParams("RestaurantListView"),t.footerService.filterCount.emit(t.filterCount),t.isAddressChange||t.notSubscription?t.content.scrollToPoint(0,t.scrollPosition):t.ngOnInit(),window.dispatchEvent(new Event("resize")),t.getOrderObject(),Ae.dV.isNativePlatform()&&(N.A_.setStyle({style:N.bg.Light}),(0,be.s)("#FFFFFF"),N.A_.setOverlaysWebView({overlay:!1}))})()}ionViewDidLeave(){this.content.getScrollElement().then(t=>{this.scrollPosition=t.scrollTop}),this.footerService.filterCount.emit(0)}ngOnInit(){var t=this;return(0,_.Z)(function*(){var n,a,r,l,u;if(Ae.dV.isNativePlatform()&&(N.A_.setStyle({style:N.bg.Light}),(0,be.s)("#FFFFFF"),N.A_.setOverlaysWebView({overlay:!1})),t.platform.is("android"))try{const v=yield t.storage.get("shouldCloseOnRestaurants"),R=yield t.storage.get("cached_address"),C=yield t.storage.get("allowSeeLandig");t.platform.backButton.subscribe((0,_.Z)(function*(){var x,S,b;
3if(t.filterModalOpen||1==t.isHiddenModalOpen)t.isHiddenModalOpen=!1,t.toggleFilterModal(!1);else if(!t.router.url.includes("/restaurants")||null!==(x=t.routerOutlet)&&void 0!==x&&x.canGoBack()||!0!==v||!0!==t.sharedService.shouldClose||0!=t.sharedService.isAddressModalOpen)(t.router.url.includes("/restaurants")&&R&&!C&&(null===(S=t.routerOutlet)||void 0===S||!S.canGoBack())&&1==t.sharedService.shouldClose&&0==t.sharedService.isAddressModalOpen||t.router.url.includes("/restaurants")&&R&&!C&&null!==(b=t.routerOutlet)&&void 0!==b&&b.canGoBack()&&1==t.sharedService.shouldClose&&0==t.sharedService.isAddressModalOpen)&&navigator.app.exitApp();else{var P,A;null!==(P=t.routerOutlet)&&void 0!==P&&P.canGoBack()?null===(A=t.routerOutlet)||void 0===A||A.pop():navigator.app.exitApp()}}))}catch(v){console.log("this.router error",v)}if(0!=t.appService.getPlatformHeight()&&(t.platformHeight=t.appService.getPlatformHeight().toString()+"px"),t.isRestoUpdate="",!t.isAddressChange&&!t.notSubscription&&t.checkSettingsTimestamp(!0),t.singleLocation=t.config.singleLocation,t.isMobileView=null!==(n=null===(a=t.screenResize)||void 0===a?void 0:a.isMobileView)&&void 0!==n&&n,t.activeSubscription.push(t.screenResize.screenSizeChange.subscribe(v=>{t.isMobileView=v})),t.renderVirtualScrolls(),yield t.initBottomMargin(),t.hideSkeleton=!1,t.restaurantLoc0=[],t.restaurantArrLoc0=[],t.restaurantFilter=[],t.allRestaurantArrLoc0Unfiltered=[],t.viewAllFilteredRestaurantArrLoc0=[],t.viewAllOrderTypeFilterApplied=!1,t.featuredRestaurants=[],t.isFirst=!0,t.showAllClosedRestaurants=!1,t.platform.is("mobileweb")&&window.innerWidth<=768&&(t.showSticky=!0),t.setupStickyLocation(),window.location.href.includes("order/start"))t.filteredDataBool=!0,null===(r=t.filterComponent)||void 0===r||r.clearFields("cuisine"),null===(l=t.filterComponent)||void 0===l||l.clearFields("preferences"),null===(u=t.filterComponent)||void 0===u||u.clearFields("from_rest"),!1===t.restAPI.deepLinkingFitlersApplied&&t.applyShareableLink();else if(t.router.url.includes("?view=all")){var c,g,h;console.log("\u{1f7e1} NgOnInit: view=all route detected (routeChange="+t.routeChange+"), calling startNewOrder()"),t.filteredDataBool=!0,null===(c=t.filterComponent)||void 0===c||c.clearFields("cuisine"),null===(g=t.filterComponent)||void 0===g||g.clearFields("preferences"),null===(h=t.filterComponent)||void 0===h||h.clearFields("from_rest"),t.startNewOrder()}else if(t.filteredResult&&0==t.filteredDataBool)t.onListFiltered(t.filteredResult);else{var d,f,p;t.filteredDataBool=!1,null===(d=t.filterComponent)||void 0===d||d.clearFields("cuisine"),null===(f=t.filterComponent)||void 0===f||f.clearFields("preferences"),null===(p=t.filterComponent)||void 0===p||p.clearFields("from_rest"),t.getOrderObject().then(function(){var v=(0,_.Z)(function*(R){null!=t.order?t.order&&(t.type=t.order.TYPE,t.checkUser(t.order.infoUser.email),E().tz.setDefault(t.order.TIMEZONE),t.currentTime=t.order.SETTINGS.DELIVERYTIMEPADDING>0?E()().add(t.order.SETTINGS.DELIVERYTIMEPADDING,"minutes").format("HH:mm"):E()().format("HH:mm"),t.currentTime=E()(t.order.infoDelivery.DELIVERYDATE+"T"+t.currentTime,"MM/DD/YYYYTHH:mm").tz(t.order.TIMEZONE).format("HH:mm"),"ASAP"!=t.order.infoDelivery.DELIVERYTIME&&t.currentTime>=t.order.infoDelivery.DELIVERYTIME&&(t.isAddressChange||t.checkSettingsTimestamp(!0)),t.isAddressChange||t.checkOrder("")):t.isAddressChange||t.startNewOrder()});return function(R){return v.apply(this,arguments)}}())}t.content.scrollToPoint(0,t.scrollPosition),t.footerService.filterCount.emit(0),t.isAddressChange&&(t.isAddressChange=!t.isAddressChange),document.addEventListener("visibilitychange",()=>{if(!document.hidden){const v=()=>{if(t.hideSkeleton){let R=!0;t.cdkScrollElements.forEach(C=>{const S=C.elementRef.nativeElement.querySelector(".cdk-virtual-scroll-content-wrapper");S&&S.offsetHeight<=50&&(R=!1)}),R?t.adjustCdkScrollHeights():setTimeout(v,500)}else setTimeout(v,1e3)};setTimeout(v,500)}})})()}ngOnChanges(t){}ngAfterViewInit(){const t=()=>{this.isReadyToMeasure()?setTimeout(()=>{this.setCardHeight(),this.changeRef.detectChanges()},100):setTimeout(t,300)};t()}onLogoError(t,n){t.target.src=this.logoPlaceholder}onImgError(t,n){t.target.src="assets/imgs/restaurant-background.png"}getCurrentOrderType(){var t,n,a;return this.router.url.includes("?view=all")&&!this.routeChange&&null!==(t=this.sharedService)&&void 0!==t&&t.defaultOrderType?this.sharedService.defaultOrderType.toString().toUpperCase():(this.orderType||this.type||(null===(n=this.order)||void 0===n?void 0:n.TYPE)||(null===(a=this.sharedService)||void 0===a?void 0:a.defaultOrderType)||"").toString().toUpperCase()}restaurantSupportsDelivery(t){return"1"==(null==t?void 0:t.delivery)&&"1"==(null==t?void 0:t.loc_delivery)}restaurantSupportsTakeout(t){return"1"==(null==t?void 0:t.takeout)&&"1"==(null==t?void 0:t.loc_takeout)}captureViewAllRestaurantSource(){this.allRestaurantArrLoc0Unfiltered=(this.allRestaurantArrLoc0||[]).map(t=>t?[...t]:[])}getDisplayLocationRestaurants(t){return this.usesViewAllFilteredDisplay()?this.viewAllFilteredRestaurantArrLoc0[t]||[]:this.allRestaurantArrLoc0[t]||[]}
3usesViewAllFilteredDisplay(){return this.isViewAllListing()&&this.viewAllOrderTypeFilterApplied}stripLocationCountSuffix(t){return t.replace(/\s*\(\d+\)\s*$/,"").trim()}shouldShowRestaurantInViewAll(t,n){return"TAKEOUT"===n?this.restaurantSupportsTakeout(t):"DELIVERY"!==n||this.restaurantSupportsDelivery(t)}applyViewAllOrderTypeFilter(){var t;const n=this.getCurrentOrderType(),a=null!==(t=this.allRestaurantArrLoc0Unfiltered)&&void 0!==t&&t.length?this.allRestaurantArrLoc0Unfiltered:this.allRestaurantArrLoc0;if(!this.router.url.includes("?view=all")||this.routeChange||"TAKEOUT"!==n&&"DELIVERY"!==n||null==a||!a.length)this.viewAllOrderTypeFilterApplied=!1;else{this.allRestaurants=[],this.viewAllFilteredRestaurantArrLoc0=[],this.viewAllOrderTypeFilterApplied=!0;for(let r=0;r<a.length;r++){const l=a[r];if(null==l||!l.length){this.viewAllFilteredRestaurantArrLoc0[r]=[];continue}const u=l.filter(c=>this.shouldShowRestaurantInViewAll(c,n));if(this.viewAllFilteredRestaurantArrLoc0[r]=u,u.length>0){if(this.allRestaurants.push(...u),void 0!==this.restaurantLoc0[r]){const c=this.stripLocationCountSuffix(this.restaurantLoc0[r]);this.restaurantLoc0[r]=`${c} (${u.length})`}this.restaurantFilter[r]=!0}else this.restaurantFilter[r]=!1}}}isViewAllListing(){return this.router.url.includes("?view=all")&&!this.routeChange}updatedClass(t=null,n=!1,a=!1){this.isViewAllListing()&&!a&&this.applyViewAllOrderTypeFilter(),this.restaurantArrLoc0=[],this.restaurantLoc00=this.restaurantLoc0.map(r=>1==this.restaurantLoc0.length?{rest:r,isExpaned:!0}:{rest:r,isExpaned:!1}),this.restaurantLoc0.length>1?this.allRestaurantArrLoc0.forEach((r,l)=>{const u=this.getDisplayLocationRestaurants(l);u.length&&(this.restaurantArrLoc0[l]=u.slice(0,this.isMobileView?3:4))}):1==this.restaurantLoc0.length&&this.allRestaurantArrLoc0.forEach((r,l)=>{const u=this.getDisplayLocationRestaurants(l);u.length&&(this.restaurantArrLoc0[l]=[...u])}),null!=t&&this.restaurantLoc0.length>1&&this.toggleCollapse(null,this.restaurantLoc00[t],t),"N"==this.citiesCheck&&(this.citiesCheck=null,this.sharedService.citiesFilterEmitter.emit(null)),window.location.href.includes("order/start")&&!1===this.restAPI.deepLinkingFitlersApplied&&this.applyShareableLink(),n&&this.restaurantsContent.scrollToPoint(0,10,500),this.hideSkeleton=!0,this.measureCardHeightWithRetry()}applyShareableLink(){var t=this;return(0,_.Z)(function*(n=!0){const a=yield t.loadingCtrl.create({message:t.translate.instant("action.addingAddress")});let r;yield a.present(),window.location.href.includes("order/start/address")?(r=t.route.snapshot.queryParams,r={...r},r&&r.TYPE?(t.type=r.TYPE,delete r.TYPE):t.type="DELIVERY",r&&r.WHEN?(t.when=r.WHEN,delete r.WHEN):t.when="ASAP"):(r={PID:t.route.snapshot.params.placeId},t.type="DELIVERY",t.when="ASAP"),console.log("222"),t.restAPI.getRestaurants(r,t.when,t.type).subscribe(function(){var l=(0,_.Z)(function*(u){if(u.restaurants&&(u.restaurants.open.length>0||u.restaurants.closed.length>0||u.restaurants.closed.length>0)){if(u.dietary_preferences){t.dietaryPreferences=[];let c=Object.values(u.dietary_preferences);c.sort(),c.forEach(g=>{""!=g&&t.dietaryPreferences.push({id:g,value:g[0].toUpperCase()+g.slice(1)})})}t.order&&(u.order.infoDelivery.DELIVERYTIME="ASAP"!=t.order.infoDelivery.DELIVERYTIME?t.order.infoDelivery.DELIVERYTIME:""),yield t.storage.get("order").then(function(){var c=(0,_.Z)(function*(g){yield t.storage.get("prev_tipOption").then(function(){var h=(0,_.Z)(function*(d){var f;null!=g&&null!==(f=g.infoOrder)&&void 0!==f&&f.tipOption?yield t.storage.set("prev_tipOption",g.infoOrder.tipOption):yield t.storage.set("prev_tipOption",d)});return function(d){return h.apply(this,arguments)}}())});return function(g){return c.apply(this,arguments)}}()),t.storage.remove("restaurants"),t.storage.remove("order"),t.storage.remove("order_hours"),t.storage.remove("payment_methods"),t.storage.remove("alternate_payment"),yield t.storage.set("cached_address",u.order.infoDeliveryAddress),yield t.storage.set("lastAddressUsed",u.order.infoDeliveryAddress),yield t.storage.set("viewAllFlag",!1),yield t.storage.set("restaurants",u.restaurants),yield t.storage.set("order",u.order),yield t.storage.set("order_hours",u.order_hours),yield t.storage.set("payment_methods",u.payment_methods),yield t.storage.set("alternate_payment",u.alternate_payment),null!=t.user&&t.userAPI.saveNewAddress(t.user.email,u.order.infoDeliveryAddress).subscribe(c=>{"Address added successfully"==c.message&&t.getUser(!0)}),t.order=u.order,a.dismiss(),t.restAPI.addressChange.emit({address:u.order.infoDeliveryAddress,type:"places"}),t.userAPI.userChange.emit(),t.openAddressModal()}else a.dismiss()});return function(u){return l.apply(this,arguments)}}(),l=>{a.dismiss()})}).apply(this,arguments)}getUser(t){var n=this;this.storage.get("user").then(a=>{null!==a?t?this.userAPI.refreshUser(this.user.email).subscribe(function(){var r=(0,_.Z)(function*(l){yield n.storage.remove("user"),n.user=l,yield n.storage.set("user",l)});return function(l){return r.apply(this,arguments)}}()):this.user=a:this.user={}}
3).catch(a=>{})}closeSelection(){for(this.collasibleIndex=0;this.collasibleIndex<this.collasibleDomain.length;this.collasibleIndex++){this.collasibleDomain[this.collasibleIndex].classList.remove("active");var t=this.collasibleDomain[this.collasibleIndex].nextElementSibling;t&&(t.style.maxHeight=null)}}renderVirtualScrolls(){const t=[this.openRestaurantsScroll,this.closedRestaurantsScroll,this.featuredRestaurantsScroll,this.cateringRestaurantsScroll,this.allRes1Scroll,this.allResLocScroll];setTimeout(()=>{t.forEach(n=>{n&&n.checkRange(0)})})}setupStickyLocation(){var t=this;Ft.AE(this,"stickyLocation",(0,_.Z)(function*(){const n=yield t.restaurantsContent.getScrollElement();n.addEventListener("scroll",()=>{t.removeLocationMarginTop=n.scrollTop>200,t.platform.is("mobileweb")&&window.innerWidth<=768?(n.scrollTop<75?(t.hideBottom=!1,t.showSticky=!0):!t.hideBottom&&t.oldPosition<n.scrollTop?(t.showSticky=!1,t.hideBottom=!0):t.hideBottom&&t.oldPosition>n.scrollTop&&(t.showSticky=!0,t.hideBottom=!1),t.oldPosition=n.scrollTop,t.footerService.hideBottomBar.emit(n.scrollHeight-n.scrollTop<=n.clientHeight+50||t.hideBottom)):(t.showSticky=n.scrollTop>t.stickyLocation.nativeElement.offsetTop,t.footerService.hideBottomBar.emit(t.showSticky))})}))}setupLocationHeader(){var t=this;return(0,_.Z)(function*(){if(!t.order||t.router.url.includes("?view=all")&&!t.routeChange)t.isOrderAvailable=!1;else{t.orderType=t.order.TYPE;const n=yield t.storage.get("cached_address");t.hasCachedAddress=!!n,n&&n.ADDRESS1&&(t.orderAddress=n.ADDRESS1,t.orderAddressForLocationHeader=t.orderAddress),t.order.infoDeliveryAddress.ADDRESS1&&(t.orderAddress=t.order.infoDeliveryAddress.ADDRESS1,t.orderAddressForLocationHeader=t.orderAddress),t.order.infoDelivery.DELIVERYTIME&&(t.convertTo12(t.order.infoDelivery.DELIVERYTIME),"TAKEOUT"==t.orderType&&(t.orderTime+=", "+V()(t.order.infoDelivery.DELIVERYDATE,"MM/DD/YYYY").format("MM/DD"))),t.isOrderAvailable=!0}})()}convertTo12(t){if(this.config.international&&this.config.militaryTime&&""!=t)this.orderTime=t;else if("ASAP"!=t)if(""!=t){t.toString();var n=t.indexOf(":"),a=+t.substr(0,n),l=a<12||24===a?"AM":"PM";t=(a%12||12)+t.substr(n,3)+" "+l,this.orderTime=t}else this.orderTime=this.translate.instant("selectTime");else this.orderTime=this.translate.instant("asap")}checkSettingsTimestamp(t){var n=this;this.storage.get("settings_confirmed").then(function(){var a=(0,_.Z)(function*(r){var l=V()().unix();null!=r&&l>r?n.cartAPI.getCartData().then(u=>{n.checkOrder("")}).catch(u=>{}):t?n.checkOrder(""):setTimeout(()=>{n.getCachedRestaurants()},1e3)});return function(r){return a.apply(this,arguments)}}()).catch(a=>{})}getUserInfo(){this.storage.get("user").then(t=>{null!=t&&this.getOrders(t.email)})}getOrders(t){this.userAPI.getOrderHistory(t).subscribe(n=>{null!=n&&n.orders&&(this.sharedService.orderHistory=n.orders.slice(0,10)),this.upcomingOrders=[],Q.each(n.orders,a=>{"DELIVERED"!=a.deliveryStatus&&"CANCELLED"!=a.deliveryStatus&&this.upcomingOrders.push(a)})},n=>{})}getBottomPadding(){let a=0;return(!this.cartEmpty||this.upcomingOrders.length>0)&&(a=65),a+"px"}sortByKey(t,n){return t.sort(function(a,r){var l=a[n],u=r[n];return l<u?-1:l>u?0:1})}checkOrder(t){var n=this;(this.hideSkeleton&&t||""==t)&&(this.sharedService.viewAllRestCheck.emit(),this.storage.get("order").then(a=>{if(null!=a){var r=new Date,l=this.formatDate(r.getMonth()+1)+"/"+this.formatDate(r.getDate())+"/"+r.getFullYear();if(E().tz.setDefault(a.TIMEZONE),this.currentTime=E()().format("HH:mm"),this.currentTime=E()(l+"T"+this.currentTime,"MM/DD/YYYYTHH:mm").tz(a.TIMEZONE).format("HH:mm"),(this.currentTime>=a.infoDelivery.DELIVERYTIME||"ASAP"==a.infoDelivery.DELIVERYTIME)&&l==a.infoDelivery.DELIVERYDATE)this.when="ASAP";else{var u=V()(a.infoDelivery.DELIVERYDATE,"MM/DD/YYYY").format("YYYY-MM-DD");let g=(new Date).toLocaleDateString("en-CA");u<g&&(u=g),this.when=u+"T"+a.infoDelivery.DELIVERYTIME}if("ASAP"==this.when){let g=(new Date).toLocaleDateString("en-CA");this.dateToOrder=g}else this.dateToOrder=u;if(this.type=a.TYPE,this.order=a,this.orderType=a.TYPE,this.router.url.includes("?view=all")&&!this.routeChange){if(this.hideSkeleton=!1,this.allRestaurants=[],this.openRestaurants=[],this.cateringRestaurants=[],this.closedRestaurants=[],this.favRestaurants=[],this.isOrderAvailable=!1,this.noAddress=!0,this.showMoreClosed=!1,console.log("this.vendorService.GLUE_VIEW_ALL_RESTAURANTS_LINK33",this.vendorService.GLUE_VIEW_ALL_RESTAURANTS_LINK),"N"==this.vendorService.GLUE_VIEW_ALL_RESTAURANTS_LINK)return this.hideSkeleton=!0,void this.openAddressModal();this.restAPI.getAllRestaurants().subscribe(function(){var g=(0,_.Z)(function*(h){if(h){if(n.storage.remove("restaurants"),n.restaurantLoc0=[],h.dietary_preferences){n.dietaryPreferences=[];let f=Object.values(h.dietary_preferences);f.sort(),f.forEach(p=>{""!=p&&n.dietaryPreferences.push({id:p,value:p[0].toUpperCase()+p.slice(1)})})}let d=0;if((!h.restaurants.open||0==h.restaurants.open.length)&&(h.restaurants.open=h.restaurants.closed),h.locations)for(let f=0;f<h.locations.length;f++){let p=0,v=h.locations[f].dlid;if(n.allRestaurantArrLoc0[f]=[],h.restaurants.open)for(let R=0;R<h.restaurants.open.length;R++)h.restaurants.open[R].dlid==v&&(h.restaurants.open[R].isLogoLoad=!1,h.restaurants.open[R].isImageLoad=!1,h.restaurants.open[R].location_seo_name=h.locations[f].seo_name,h.restaurants.open[R].location_dlid=h.locations[f].dlid,n.allRestaurantArrLoc0[d].push(h.restaurants.open[R]),n.allRestaurants.push(h.restaurants.open[R]),p++);if(p>0){const R=(h.locations[f].description||h.locations[f].location)+" ("+p+")";n.restaurantLoc0[d]=R;
3const C=R.replace(/\s*\(\d+\)\s*$/,"").trim();h.locations[f].seo_name&&(n.locationSeoNames[C]=h.locations[f].seo_name.trim()),h.locations[f].dlid&&(n.locationDlids[C]=h.locations[f].dlid.toString()),n.restaurantFilter[d]=!0,d++}}n.captureViewAllRestaurantSource(),n.storage.set("allrestaurants",n.allRestaurantArrLoc0),yield n.saveLocationMappings(),yield n.updatedClass(),console.log("\u{1f535} CALLING applyLocationFromUrl from getAllRestaurants flow"),n.applyLocationFromUrl()}else n.allRestaurants=[],n.openRestaurants=[],n.cateringRestaurants=[],n.closedRestaurants=[],n.favRestaurants=[],n.hideSkeleton=!0,n.noAddress=!0,n.showMoreClosed=!1,n.openAddressModal()});return function(h){return g.apply(this,arguments)}}())}else this.storage.get("cached_address").then(g=>{if(this.hideSkeleton=!1,null!=g)this.paginationOffset=0,this.paginationCallCount=0,this.hasMoreOpenRestaurants=!1,this.hasMoreClosedRestaurants=!1,this.restAPI.getRestaurants(g,this.when,this.type,null,!0,null,null,this.paginationLimit,this.paginationOffset).subscribe(function(){var h=(0,_.Z)(function*(d){const f=d.pagination;if(f){if(n.paginationData=f.categories,void 0!==f.feature||void 0!==f.open||void 0!==f.closed||void 0!==f.catering){var p,v;n.totalOpenRestaurants=f.open||0,n.totalClosedRestaurants=f.closed||0;const I=(null===(p=d.restaurants.open)||void 0===p?void 0:p.length)||0,F=(null===(v=d.restaurants.closed)||void 0===v?void 0:v.length)||0;n.hasMoreOpenRestaurants=I<n.totalOpenRestaurants,n.hasMoreClosedRestaurants=F<n.totalClosedRestaurants}else if(void 0!==f.has_more){var R,C;n.hasMoreOpenRestaurants=f.has_more||!1,n.hasMoreClosedRestaurants=f.has_more||!1,n.totalOpenRestaurants=f.total||(null===(R=d.restaurants.open)||void 0===R?void 0:R.length)||0,n.totalClosedRestaurants=f.total||(null===(C=d.restaurants.closed)||void 0===C?void 0:C.length)||0}}else if(n.enablePaginationTestMode&&0===n.paginationOffset){var x,S;const A=(null===(x=d.restaurants.open)||void 0===x?void 0:x.length)||0,y=(null===(S=d.restaurants.closed)||void 0===S?void 0:S.length)||0;n.hasMoreOpenRestaurants=A>0,n.hasMoreClosedRestaurants=y>0,n.totalOpenRestaurants=A+20,n.totalClosedRestaurants=y+20}else{var b,P;n.hasMoreOpenRestaurants=!1,n.hasMoreClosedRestaurants=!1,n.totalOpenRestaurants=(null===(b=d.restaurants.open)||void 0===b?void 0:b.length)||0,n.totalClosedRestaurants=(null===(P=d.restaurants.closed)||void 0===P?void 0:P.length)||0}if("No restaurants found."!=d.message){if(n.restaurantLoc0=[],n.restaurantArrLoc0=[],n.restaurantFilter=[],n.openRestaurants=[],n.allOpenRestaurants=[],n.cateringRestaurants=[],n.allCateringRestaurants=[],n.closedRestaurants=[],n.allClosedRestaurants=[],n.featuredRestaurants=[],n.allFeaturedRestaurants=[],n.allRestaurants=[],n.isFirst=!0,d.dietary_preferences){n.dietaryPreferences=[];let A=Object.values(d.dietary_preferences);A.sort(),A.forEach(y=>{""!=y&&n.dietaryPreferences.push({id:y,value:y[0].toUpperCase()+y.slice(1)})})}if(n.order=d.order,n.order.additionalInfo.specialInstructions=d.order.additionalInfo.specialInstructions,n.storage.get("order").then(function(){var A=(0,_.Z)(function*(y){n.storage.get("prev_tipOption").then(function(){var I=(0,_.Z)(function*(F){var H;null!=y&&null!==(H=y.infoOrder)&&void 0!==H&&H.tipOption?yield n.storage.set("prev_tipOption",y.infoOrder.tipOption):yield n.storage.set("prev_tipOption",F)});return function(F){return I.apply(this,arguments)}}())});return function(y){return A.apply(this,arguments)}}()),n.storage.remove("restaurants"),n.storage.remove("order_hours"),n.storage.remove("payment_methods"),n.storage.remove("alternate_payment"),yield n.storage.set("cached_address",d.order.infoDeliveryAddress),yield n.storage.set("lastAddressUsed",d.order.infoDeliveryAddress),yield n.storage.set("restaurants",d.restaurants),yield n.storage.set("order",d.order),yield n.storage.set("order_hours",d.order_hours),yield n.storage.set("payment_methods",d.payment_methods),yield n.storage.set("alternate_payment",d.alternate_payment),n.setupLocationHeader(),d.order.infoDeliveryAddress.PID)n.shareableLink=n.platform.is("cordova")&&window.location.hostname.includes("localhost")?`${n.config.rds_baseurl}glue/order/start/${d.order.infoDeliveryAddress.TYPE}/${d.order.infoDeliveryAddress.PID}`:window.location.hostname.includes("localhost")?`${window.location.origin}/order/start/${d.order.infoDeliveryAddress.TYPE}/${d.order.infoDeliveryAddress.PID}`:`${n.config.rds_baseurl}glue/order/start/${d.order.infoDeliveryAddress.TYPE}/${d.order.infoDeliveryAddress.PID}`;else{const A=n.sharedService.getAddressQueryLinkFromObject(g);n.shareableLink=n.platform.is("cordova")&&window.location.hostname.includes("localhost")?`${n.config.rds_baseurl}glue/order/start/address${A}&TYPE=${d.order.TYPE}&WHEN=${n.when}`:window.location.hostname.includes("localhost")?`${window.location.origin}/order/start/address${A}&TYPE=${d.order.TYPE}&WHEN=${n.when}`:`${n.config.rds_baseurl}glue/order/start/address${A}&TYPE=${d.order.TYPE}&WHEN=${n.when}`}null!=d.hours_overrides_message&&""!=d.hours_overrides_message&&n.presentHoursOverrideAlert(d.hours_overrides_message),n.orderAPI.newSettings.emit(),setTimeout(()=>{n.getCachedRestaurants()},1e3),setTimeout((0,_.Z)(function*(){(n.hasMoreOpenRestaurants||n.hasMoreClosedRestaurants)&&!n.isLoadingMore&&(console.log("\u{1f680}
3 Starting auto-load of all restaurants..."),yield n.loadMoreRestaurants("open"))}),2e3),n.changeRef&&!n.changeRef.destroyed&&n.changeRef.detectChanges()}else n.allRestaurants=[],n.openRestaurants=[],n.cateringRestaurants=[],n.closedRestaurants=[],n.favRestaurants=[],n.hideSkeleton=!0,n.noAddress=!0,n.showMoreClosed=!1});return function(d){return h.apply(this,arguments)}}(),h=>{this.presentAlert("noRestaurants"),this.loadingCtrl.dismiss()});else{if(this.allRestaurants=[],this.openRestaurants=[],this.cateringRestaurants=[],this.closedRestaurants=[],this.favRestaurants=[],this.isOrderAvailable=!1,this.noAddress=!0,this.showMoreClosed=!1,console.log("this.vendorService.GLUE_VIEW_ALL_RESTAURANTS_LINK44",this.vendorService.GLUE_VIEW_ALL_RESTAURANTS_LINK),"N"==this.vendorService.GLUE_VIEW_ALL_RESTAURANTS_LINK)return this.hideSkeleton=!0,void this.openAddressModal();this.restAPI.getAllRestaurants().subscribe(function(){var h=(0,_.Z)(function*(d){if(d){n.storage.remove("restaurants"),n.restaurantLoc0=[];let f=0;if(d.dietary_preferences){n.dietaryPreferences=[];let p=Object.values(d.dietary_preferences);p.sort(),p.forEach(v=>{""!=v&&n.dietaryPreferences.push({id:v,value:v[0].toUpperCase()+v.slice(1)})})}if((!d.restaurants.open||0==d.restaurants.open.length)&&(d.restaurants.open=d.restaurants.closed),d.locations)for(let p=0;p<d.locations.length;p++){let v=0,R=d.locations[p].dlid;if(n.restaurantArrLoc0[p]=[],d.restaurants.open)for(let C=0;C<d.restaurants.open.length;C++)d.restaurants.open[C].dlid==R&&(d.restaurants.open[C].isLogoLoad=!1,d.restaurants.open[C].isImageLoad=!1,n.restaurantArrLoc0[f].push(d.restaurants.open[C]),n.allRestaurants.push(d.restaurants.open[C]),v++);v>0&&(n.restaurantLoc0[f]=(d.locations[p].description||d.locations[p].location)+" ("+v+")",n.restaurantFilter[f]=!0,f++)}n.storage.set("allrestaurants",n.allRestaurantArrLoc0),yield n.updatedClass()}else n.allRestaurants=[],n.openRestaurants=[],n.cateringRestaurants=[],n.closedRestaurants=[],n.favRestaurants=[],n.hideSkeleton=!0,n.noAddress=!0,n.showMoreClosed=!1,n.openAddressModal()});return function(d){return h.apply(this,arguments)}}())}})}else this.allRestaurants=[],this.openRestaurants=[],this.cateringRestaurants=[],this.closedRestaurants=[],this.favRestaurants=[],this.noAddress=!0,this.showMoreClosed=!1}).catch(a=>{})),t&&setTimeout(()=>{t.target.complete()},500)}getCachedRestaurants(t=(()=>{})){var n=this;this.storage.get("restaurants").then(function(){var a=(0,_.Z)(function*(r){if(null==r||n.router.url.includes("?view=all")&&!n.routeChange){n.featuredRestaurants=[],n.openRestaurants=[],n.cateringRestaurants=[],n.closedRestaurants=[],n.favRestaurants=[],n.noAddress=!0,n.showMoreClosed=!1;let h=yield n.loadingCtrl.create({message:"Loading ..."});yield h.present(),n.allRestaurantArrLoc0=yield n.storage.get("allrestaurants"),n.captureViewAllRestaurantSource(),n.restaurantLoc0=[];for(let d=0;d<n.allRestaurantArrLoc0.length;d++){var u;const f=n.allRestaurantArrLoc0[d];if(console.log("Reconstructing location ["+d+"]:",f[0]),f&&f.length>0&&null!==(u=f[0])&&void 0!==u&&u.location){var c,g;const C=`${f[0].location} (${f.length})`.replace(/\s+/g," ").trim();n.restaurantLoc0[d]=C;const x=C.replace(/\s*\(\d+\)\s*$/,"").trim();null!==(c=f[0])&&void 0!==c&&c.location_seo_name?(n.locationSeoNames[x]=f[0].location_seo_name.trim(),console.log("\u2713 Stored seo_name from cache:",x,"\u2192",f[0].location_seo_name.trim())):console.log("\u26a0\ufe0f No location_seo_name in cached data for:",x),null!==(g=f[0])&&void 0!==g&&g.location_dlid?(n.locationDlids[x]=f[0].location_dlid.toString(),console.log("\u2713 Stored dlid from cache:",x,"\u2192",f[0].location_dlid)):console.log("\u26a0\ufe0f No location_dlid in cached data for:",x),n.restaurantFilter[d]=!0}else f.length>=0&&0!=n.restaurantFilter[d]&&(n.restaurantFilter[d]=!0)}setTimeout((0,_.Z)(function*(){yield n.updatedClass(),console.log("\u{1f7e2} CALLING applyLocationFromUrl from getCachedRestaurants flow"),n.applyLocationFromUrl()}),100),h.dismiss()}else{if(0==r.open.length){if(n.openRestaurants=r.open,n.featuredRestaurants=r.feature,n.cateringRestaurants=r.catering,n.allOpenRestaurants=r.open,n.allFeaturedRestaurants=r.feature,n.allCateringRestaurants=r.catering,n.favRestaurants=[],0==n.closedRestaurants.length){if(n.closedRestaurants=r.closed,n.closedRestaurants&&n.closedRestaurants.length>
30){let h=[],d=r.closed.map(function(f){if(f.next_open&&""!=f.next_open&&"closed"!=f.next_open)return f;f.next_open="Closed",h.push(f)});d=d.filter(function(f){return void 0!==f}),d.sort(function(f,p){return f.next_open.localeCompare(p.next_open)}),n.allClosedRestaurants=d.concat(h)}n.showAllClosedRestaurants=!1,n.closedRestaurants=n.getDisplayedClosedRestaurants()}n.showMoreClosed=n.allClosedRestaurants.length>4,n.noAddress=!1,n.hideSkeleton=!0}else{var l;if(0==n.openRestaurants.length&&(n.openRestaurants=r.open.filter(h=>"0"==h.rotm),n.allOpenRestaurants=n.openRestaurants),0==n.featuredRestaurants.length&&(n.featuredRestaurants=r.feature,n.allFeaturedRestaurants=n.featuredRestaurants),0==n.cateringRestaurants.length&&(n.cateringRestaurants=r.catering,n.allCateringRestaurants=n.cateringRestaurants),0==n.closedRestaurants.length){if(n.closedRestaurants=r.closed,n.closedRestaurants&&n.closedRestaurants.length>0){let h=[],d=r.closed.map(function(f){if(f.next_open&&""!=f.next_open&&"closed"!=f.next_open)return f;f.next_open="Closed",h.push(f)});d=d.filter(function(f){return void 0!==f}),d.sort(function(f,p){return f.next_open.localeCompare(p.next_open)}),n.allClosedRestaurants=d.concat(h)}n.showAllClosedRestaurants=!1,n.closedRestaurants=n.getDisplayedClosedRestaurants()}n.showMoreClosed=n.allClosedRestaurants.length>4,n.noAddress=!1,n.populateFavoriteRestaurants(null===(l=n.order.infoUser)||void 0===l?void 0:l.email),n.changeRef.destroyed||n.changeRef.detectChanges()}n.allRestaurants=r.open.concat(r.closed),n.allRestaurants.push(...r.feature),n.allRestaurants.push(...r.catering),n.hideSkeleton=!0,setTimeout(()=>{n.measureCardHeightWithRetry()},200),n.isRestoUpdate&&n.clearAllFilter()}t()});return function(r){return a.apply(this,arguments)}}()).catch(a=>{})}getCachedRestaurantsClear(){var t=this;return(0,_.Z)(function*(n=(()=>{})){console.log("\u{1f504} getCachedRestaurantsClear called"),yield t.loadLocationMappings(),console.log("Loaded mappings in getCachedRestaurantsClear:",{seoNames:Object.keys(t.locationSeoNames).length,dlids:Object.keys(t.locationDlids).length}),t.storage.get("restaurants").then(function(){var a=(0,_.Z)(function*(r){if(null!=r){if(0===Object.keys(t.locationSeoNames).length&&0===Object.keys(t.locationDlids).length&&(console.log("About to rebuild location mappings from restaurant data..."),yield t.rebuildLocationMappings(),console.log("Rebuild complete. Current state:",{restaurantLoc0:t.restaurantLoc0,locationSeoNames:t.locationSeoNames,locationDlids:t.locationDlids})),0==r.open.length){if(t.openRestaurants=r.open,t.featuredRestaurants=r.feature,t.cateringRestaurants=r.catering,t.favRestaurants=[],t.closedRestaurants=r.closed,t.allOpenRestaurants=r.open,t.allCateringRestaurants=r.catering,t.closedRestaurants=r.closed,t.closedRestaurants&&t.closedRestaurants.length>0){let l=[],u=r.closed.map(function(c){if(c.next_open&&""!=c.next_open&&"closed"!=c.next_open)return c;c.next_open="Closed",l.push(c)});u=u.filter(function(c){return void 0!==c}),u.sort(function(c,g){return c.next_open.localeCompare(g.next_open)}),t.allClosedRestaurants=u.concat(l)}t.showAllClosedRestaurants=!1,t.closedRestaurants=t.getDisplayedClosedRestaurants(),t.showMoreClosed=t.allClosedRestaurants.length>4,t.noAddress=!1,t.hideSkeleton=!0}else{if(t.openRestaurants=r.open,t.cateringRestaurants=r.catering,t.featuredRestaurants=r.feature,t.closedRestaurants=r.closed,t.closedRestaurants&&t.closedRestaurants.length>0){let l=[],u=r.closed.map(function(c){if(c.next_open&&""!=c.next_open&&"closed"!=c.next_open)return c;c.next_open="Closed",l.push(c)});u=u.filter(function(c){return void 0!==c}),u.sort(function(c,g){return c.next_open.localeCompare(g.next_open)}),t.allClosedRestaurants=u.concat(l)}t.allOpenRestaurants=r.open,t.allCateringRestaurants=r.catering,t.allFeaturedRestaurants=r.feature,t.showAllClosedRestaurants=!1,t.closedRestaurants=t.getDisplayedClosedRestaurants(),t.showMoreClosed=t.allClosedRestaurants.length>4,t.noAddress=!1,t.hideSkeleton=!0,t.populateFavoriteRestaurants(t.order.infoUser.email),t.changeRef&&!t.changeRef.destroyed&&t.changeRef.detectChanges()}t.allRestaurants=r.open.concat(r.closed),t.allRestaurants.push(...r.feature),t.allRestaurants.push(...r.catering)}else{t.featuredRestaurants=[],t.openRestaurants=[],t.cateringRestaurants=[],t.closedRestaurants=[],t.favRestaurants=[],t.hideSkeleton=!0,t.noAddress=!0,t.showMoreClosed=!1;let l=yield t.loadingCtrl.create({message:"Loading ..."});yield l.present(),t.isFirst=!0,t.storage.get("allrestaurants").then(function(){var u=(0,_.Z)(function*(c){if(t.allRestaurantArrLoc0=c,t.captureViewAllRestaurantSource(),t.allRestaurantArrLoc0&&Array.isArray(t.allRestaurantArrLoc0))for(let g=0;g<t.allRestaurantArrLoc0.length;g++){const h=t.allRestaurantArrLoc0[g];if(h&&h.length>=0&&(t.restaurantFilter[g]=!0,null!=t.restaurantLoc0[g])){const d=t.stripLocationCountSuffix(t.restaurantLoc0[g]);t.restaurantLoc0[g]=`${d} (${t.allRestaurantArrLoc0[g].length})`}}(!t.restaurantLoc0||t.restaurantLoc0.length<=0)&&(t.allRestaurants=[],t.openAddressModal()),l.dismiss()});return function(c){return u.apply(this,arguments)}}()),setTimeout((0,_.Z)(function*(){yield t.updatedClass()}),100)}n()});return function(r){return a.apply(this,arguments)}}()).catch(a=>{})}).apply(this,arguments)}startNewOrder(){var t=this;console.log("\u{1f7e1} startNewOrder called, current URL:",this.router.url);
3const n=this.route.snapshot.queryParams.dlid;if(console.log("\u{1f7e1} startNewOrder: checking for dlidParam in query params:",n),n&&"undefined"!=n)return console.log("\u{1f7e1} startNewOrder: DLID in route, calling getRestaurants() with dlid:",n),this.allRestaurants=[],this.openRestaurants=[],this.cateringRestaurants=[],this.closedRestaurants=[],this.favRestaurants=[],this.noAddress=!0,this.showMoreClosed=!1,this.isOrderAvailable=!1,this.sharedService.dlid=n,void this.restAPI.getRestaurants(null,this.when,this.type,null,!0,n).subscribe(function(){var a=(0,_.Z)(function*(r){if(r&&"No restaurants found."!==r.message){t.storage.remove("restaurants"),t.restaurantLoc0=[];let l=0;if(r.dietary_preferences){t.dietaryPreferences=[];let u=Object.values(r.dietary_preferences);u.sort(),u.forEach(c=>{""!=c&&t.dietaryPreferences.push({id:c,value:c[0].toUpperCase()+c.slice(1)})})}if((!r.restaurants.open||0==r.restaurants.open.length)&&(r.restaurants.open=r.restaurants.closed),r.locations)for(let u=0;u<r.locations.length;u++){let c=0,g=r.locations[u].dlid;if(t.allRestaurantArrLoc0[u]=[],r.restaurants.open)for(let h=0;h<r.restaurants.open.length;h++)r.restaurants.open[h].dlid==g&&(r.restaurants.open[h].isLogoLoad=!1,r.restaurants.open[h].isImageLoad=!1,r.restaurants.open[h].location_seo_name=r.locations[u].seo_name,r.restaurants.open[h].location_dlid=r.locations[u].dlid,t.allRestaurantArrLoc0[l].push(r.restaurants.open[h]),t.allRestaurants.push(r.restaurants.open[h]),c++);if(c>0){const d=((r.locations[u].description||r.locations[u].location)+" ("+c+")").replace(/\s+/g," ").trim();t.restaurantLoc0[l]=d;const f=d.replace(/\s*\(\d+\)\s*$/,"").trim();r.locations[u].seo_name&&(t.locationSeoNames[f]=r.locations[u].seo_name.trim(),console.log("\u2713 Stored seo_name:",f,"\u2192",r.locations[u].seo_name.trim())),r.locations[u].dlid&&(t.locationDlids[f]=r.locations[u].dlid.toString(),console.log("\u2713 Stored dlid:",f,"\u2192",r.locations[u].dlid)),t.restaurantArrLoc0[l]=t.allRestaurants,t.restaurantLoc00[l]={rest:d},t.restaurantFilter[l]=!0,l++}}yield t.saveLocationMappings(),t.openRestaurants=t.allRestaurants,t.hideSkeleton=!0,t.updatedClass(),console.log("\u{1f535} Applying location filter for dlid:",n);for(const[u,c]of Object.entries(t.locationDlids))if(c.toString()===n.toString()){for(let g=0;g<t.restaurantLoc0.length;g++)if(t.restaurantLoc0[g].replace(/\s*\(\d+\)\s*$/,"").trim()===u){console.log("Found matching location, applying filter:",t.restaurantLoc0[g]),t.filterCities(t.restaurantLoc0[g]),t.filterComponent&&(t.filterComponent.currentCity=t.restaurantLoc0[g]);break}break}}else t.openAddressModal()});return function(r){return a.apply(this,arguments)}}(),a=>{console.error("Error fetching restaurants by dlid:",a),this.openAddressModal()});if(console.log("this.router.url",this.router.url),console.log("this.routeChange",this.routeChange),console.log("this.router.url.includes('?view=all')",this.router.url.includes("?view=all")),!this.router.url.includes("?view=all")||this.routeChange)this.storage.get("cached_address").then(a=>{if(null!=a)console.log("111"),this.restAPI.getRestaurants(a,this.when||"ASAP",this.type).subscribe(function(){var r=(0,_.Z)(function*(l){if("No restaurants found."!=l.message){if(t.restaurantLoc0=[],t.restaurantArrLoc0=[],t.restaurantFilter=[],t.isFirst=!0,l.dietary_preferences){t.dietaryPreferences=[];let u=Object.values(l.dietary_preferences);u.sort(),u.forEach(c=>{""!=c&&t.dietaryPreferences.push({id:c,value:c[0].toUpperCase()+c.slice(1)})})}t.order=l.order,t.order.additionalInfo.specialInstructions=l.order.additionalInfo.specialInstructions,yield t.storage.get("order").then(function(){var u=(0,_.Z)(function*(c){yield t.storage.get("prev_tipOption").then(function(){var g=(0,_.Z)(function*(h){var d;null!=c&&null!==(d=c.infoOrder)&&void 0!==d&&d.tipOption?yield t.storage.set("prev_tipOption",c.infoOrder.tipOption):yield t.storage.set("prev_tipOption",h)});return function(h){return g.apply(this,arguments)}}())});return function(c){return u.apply(this,arguments)}}()),t.storage.remove("restaurants"),t.storage.remove("order"),t.storage.remove("order_hours"),t.storage.remove("payment_methods"),t.storage.remove("alternate_payment"),yield t.storage.set("cached_address",l.order.infoDeliveryAddress),yield t.storage.set("lastAddressUsed",l.order.infoDeliveryAddress),yield t.storage.set("restaurants",l.restaurants),yield t.storage.set("order",l.order),yield t.storage.set("order_hours",l.order_hours),yield t.storage.set("payment_methods",l.payment_methods),yield t.storage.set("alternate_payment",l.alternate_payment),t.setupLocationHeader(),null!=l.hours_overrides_message&&""!=l.hours_overrides_message&&t.presentHoursOverrideAlert(l.hours_overrides_message),t.orderAPI.newSettings.emit(),setTimeout(()=>{t.getCachedRestaurants()},1e3),t.changeRef&&!t.changeRef.destroyed&&t.changeRef.detectChanges()}else t.allRestaurants=[],t.openRestaurants=[],t.cateringRestaurants=[],t.closedRestaurants=[],t.favRestaurants=[],t.hideSkeleton=!0,t.noAddress=!0,t.showMoreClosed=!1}
3);return function(l){return r.apply(this,arguments)}}(),r=>{this.presentAlert("noRestaurants"),this.loadingCtrl.dismiss()});else{if(this.allRestaurants=[],this.openRestaurants=[],this.cateringRestaurants=[],this.closedRestaurants=[],this.favRestaurants=[],this.isOrderAvailable=!1,this.noAddress=!0,this.showMoreClosed=!1,console.log("this.vendorService.GLUE_VIEW_ALL_RESTAURANTS_LINK11",this.vendorService.GLUE_VIEW_ALL_RESTAURANTS_LINK),"N"==this.vendorService.GLUE_VIEW_ALL_RESTAURANTS_LINK)return this.hideSkeleton=!0,void this.openAddressModal();this.locationSeoNames={},this.locationDlids={},this.restAPI.getAllRestaurants().subscribe(r=>{if(r){this.storage.remove("restaurants"),this.restaurantLoc0=[];let l=0;if(r.dietary_preferences){this.dietaryPreferences=[];let u=Object.values(r.dietary_preferences);u.sort(),u.forEach(c=>{""!=c&&this.dietaryPreferences.push({id:c,value:c[0].toUpperCase()+c.slice(1)})})}if((!r.restaurants.open||0==r.restaurants.open.length)&&(r.restaurants.open=r.restaurants.closed),r.locations)for(let u=0;u<r.locations.length;u++){let c=0,g=r.locations[u].dlid;if(this.allRestaurantArrLoc0[u]=[],r.restaurants.open)for(let h=0;h<r.restaurants.open.length;h++)r.restaurants.open[h].dlid==g&&(r.restaurants.open[h].isLogoLoad=!1,r.restaurants.open[h].isImageLoad=!1,r.restaurants.open[h].location_seo_name=r.locations[u].seo_name,r.restaurants.open[h].location_dlid=r.locations[u].dlid,this.allRestaurantArrLoc0[l].push(r.restaurants.open[h]),this.allRestaurants.push(r.restaurants.open[h]),c++);if(c>0){const d=((r.locations[u].description||r.locations[u].location)+" ("+c+")").replace(/\s+/g," ").trim();this.restaurantLoc0[l]=d;const f=d.replace(/\s*\(\d+\)\s*$/,"").trim();r.locations[u].seo_name?(this.locationSeoNames[f]=r.locations[u].seo_name.trim(),console.log("\u2713 Stored seo_name:",f,"\u2192",r.locations[u].seo_name.trim())):console.log("\u26a0\ufe0f API location has no seo_name for:",f),r.locations[u].dlid?(this.locationDlids[f]=r.locations[u].dlid.toString(),console.log("\u2713 Stored dlid:",f,"\u2192",r.locations[u].dlid)):console.log("\u26a0\ufe0f API location has no dlid for:",f),this.restaurantFilter[l]=!0,l++}}this.captureViewAllRestaurantSource(),this.storage.set("allrestaurants",this.allRestaurantArrLoc0),setTimeout((0,_.Z)(function*(){yield t.updatedClass()}),100)}else this.allRestaurants=[],this.openRestaurants=[],this.cateringRestaurants=[],this.closedRestaurants=[],this.favRestaurants=[],this.hideSkeleton=!0,this.noAddress=!0,this.showMoreClosed=!1,this.openAddressModal()})}});else{console.log("\u{1f7e1} startNewOrder: view=all route detected, waiting for settings..."),console.log("this.vendorService.GLUE_VIEW_ALL_RESTAURANTS_LINK (default):",this.vendorService.GLUE_VIEW_ALL_RESTAURANTS_LINK);const a=()=>{if(console.log("\u2705 Settings loaded, GLUE_VIEW_ALL_RESTAURANTS_LINK:",this.vendorService.GLUE_VIEW_ALL_RESTAURANTS_LINK),"N"==this.vendorService.GLUE_VIEW_ALL_RESTAURANTS_LINK)return console.log("GLUE_VIEW_ALL_RESTAURANTS_LINK is N - opening address modal"),this.hideSkeleton=!0,void this.openAddressModal();this.allRestaurants=[],this.openRestaurants=[],this.cateringRestaurants=[],this.closedRestaurants=[],this.favRestaurants=[],this.noAddress=!0,this.showMoreClosed=!1,this.isOrderAvailable=!1,this.locationSeoNames={},this.locationDlids={},this.restAPI.getAllRestaurants().subscribe(function(){var r=(0,_.Z)(function*(l){if(l&&"No restaurants found."!==l.message){t.storage.remove("restaurants"),t.restaurantLoc0=[];let u=0;if(l.dietary_preferences){t.dietaryPreferences=[];let c=Object.values(l.dietary_preferences);c.sort(),c.forEach(g=>{""!=g&&t.dietaryPreferences.push({id:g,value:g[0].toUpperCase()+g.slice(1)})})}if((!l.restaurants.open||0==l.restaurants.open.length)&&(l.restaurants.open=l.restaurants.closed),l.locations)for(let c=0;c<l.locations.length;c++){let g=0,h=l.locations[c].dlid;if(t.allRestaurantArrLoc0[c]=[],l.restaurants.open)for(let d=0;d<l.restaurants.open.length;d++)l.restaurants.open[d].dlid==h&&(l.restaurants.open[d].isLogoLoad=!1,l.restaurants.open[d].isImageLoad=!1,l.restaurants.open[d].location_seo_name=l.locations[c].seo_name,l.restaurants.open[d].location_dlid=l.locations[c].dlid,t.allRestaurantArrLoc0[u].push(l.restaurants.open[d]),t.allRestaurants.push(l.restaurants.open[d]),g++);if(g>0){const f=((l.locations[c].description||l.locations[c].location)+" ("+g+")").replace(/\s+/g," ").trim();t.restaurantLoc0[u]=f;
3const p=f.replace(/\s*\(\d+\)\s*$/,"").trim();l.locations[c].seo_name?(t.locationSeoNames[p]=l.locations[c].seo_name.trim(),console.log("\u2713 Stored seo_name:",p,"\u2192",l.locations[c].seo_name.trim())):console.log("\u26a0\ufe0f API location has no seo_name for:",p),l.locations[c].dlid?(t.locationDlids[p]=l.locations[c].dlid.toString(),console.log("\u2713 Stored dlid:",p,"\u2192",l.locations[c].dlid)):console.log("\u26a0\ufe0f API location has no dlid for:",p),console.log("\u{1f4ca} Current mapping state after storing location "+c+":",{seoNamesCount:Object.keys(t.locationSeoNames).length,dlidsCount:Object.keys(t.locationDlids).length}),t.restaurantFilter[u]=!0,u++}}t.captureViewAllRestaurantSource(),t.storage.set("allrestaurants",t.allRestaurantArrLoc0),yield t.saveLocationMappings(),t.updatedClass(),console.log("\u{1f535} CALLING applyLocationFromUrl from startNewOrder > getAllRestaurants flow"),t.applyLocationFromUrl()}else t.allRestaurants=[],t.openRestaurants=[],t.cateringRestaurants=[],t.closedRestaurants=[],t.favRestaurants=[],t.hideSkeleton=!0,t.noAddress=!0,t.showMoreClosed=!1,t.openAddressModal()});return function(l){return r.apply(this,arguments)}}())};if(this.vendorService.SETTINGS&&Object.keys(this.vendorService.SETTINGS).length>0)console.log("Settings already loaded from API, proceeding immediately"),a();else{console.log("\u23f3 Subscribing to settingsEmit to wait for API settings...");const r=this.vendorService.settingsEmit.subscribe(l=>{console.log("\u2705 settingsEmit fired, settings loaded from API"),a(),r.unsubscribe()})}}}goToRestaurant(t,n,a){var r=this;return(0,_.Z)(function*(){const l=n.replace(/\s+/g,"-")+"-menu";r.sharedService.restaurantShift=a,r.router.url.includes("?view=all")?r.router.navigate(["/"+l+"/"+t],{state:{fromViewAll:!0}}):r.router.navigate(["/"+l+"/"+t])})()}getRestoUrl(t,n){return"/glue/"+n.replace(/\s+/g,"-")+"-menu/"+t}presentToast(){var t=this;return(0,_.Z)(function*(){(yield t.toastCtrl.create({message:t.translate.instant("updateAddress"),duration:8e3,position:"middle",color:"dark",cssClass:"toast_address"})).present()})()}getOrderObject(){var t=this;return(0,_.Z)(function*(){yield t.storage.get("order").then(n=>{t.order=n,t.storage.get("user").then(a=>{t.user=a}).catch(a=>{})}).catch(n=>{})})()}populateFavoriteRestaurants(t){null!=t&&null!=t&&this.restAPI.getFavoriteRestaurants(t,this.order.infoDelivery.SHIFT).subscribe(n=>{Q.each(n.favorites,a=>{let r;if(r=Q.find(this.openRestaurants,["rid",a]),null!=r&&null!=r){let l;l=Q.find(this.favRestaurants,["rid",r.rid]),null==l&&this.favRestaurants.push(r)}})})}presentHoursOverrideAlert(t){var n=this;return(0,_.Z)(function*(){yield(yield n.alertCtrl.create({header:n.translate.instant("locationCurrentlyClosed"),message:t,backdropDismiss:!1,buttons:[n.translate.instant("ok")]})).present()})()}formatDate(t){return t<10?"0"+t.toString():t.toString()}checkUser(t){var n=this;null!=t&&null!=t&&this.userAPI.refreshUser(t).subscribe(function(){var a=(0,_.Z)(function*(r){null!=r?(yield n.storage.remove("user"),n.user=r,n.getOrders(t),yield n.storage.set("user",r)):n.user={}});return function(r){return a.apply(this,arguments)}}())}moreClosedModal(){var t=this;return(0,_.Z)(function*(){const n=yield t.loadingCtrl.create({message:""});yield n.present();const a=yield t.modalCtrl.create({component:Dt.j,animated:!0,componentProps:{restaurants:t.closedRestaurants,type:t.order.TYPE}});return setTimeout(()=>{n.dismiss()},1e3),yield a.present()})()}onLocationHeaderClick(t){t&&this.openAddressModal()}openAddressModal(){var t=this;return(0,_.Z)(function*(){if(t.homepage||t.trackpage)return;const n=yield t.storage.get("cached_address"),a=yield t.loadingCtrl.create({message:t.translate.instant("action.pleaseWait")});if(a.present(),t.router.url.includes("?view=all")&&!t.routeChange)t.addressAPI.addressModalOpen.emit({});else if(n&&null!=n&&n.ADDRESS1){var r,l,u,c;const{ADDRESS1:g,ZIP:h,STATE:d,CITY:f,PLACE:p}=n;t.addressAPI.addressModalOpen.emit({preselectedAddress:{ZIP:h,ADDRESS1:g,STATE:d,CITY:f,PLACE:p,DIRECTIONS:(null===(r=t.order)||void 0===r||null===(l=r.infoDeliveryAddress)||void 0===l?void 0:l.DIRECTIONS)||(null===(u=t.order)||void 0===u||null===(c=u.infoDeliveryAddress)||void 0===c?void 0:c.directions)}})}else t.addressAPI.addressModalOpen.emit({});a&&(null==a||a.dismiss())})()}onImageLoadFunc(t){t.isImageLoad=!0}onLogoLoadFunc(t){t.isLogoLoad=!0}isImageRemote(t){return!(!t||0!=t.search("https"))}getLogo(t){return t.logo?this.isImageRemote(t.logo)?t.logo:this.url+t.logo:this.logoPlaceholder}ngOnDestroy(){this.activeSubscription.forEach(t=>{t&&t.unsubscribe()}),this.footerSubscription&&this.footerSubscription.unsubscribe()}closedRestaurantCount(t){var n=0;return t.forEach(a=>{n++}),n}timeNextOpen(t){var n="";return"Closed"==t.next_open?n="Closed":t.next_open_date?n=this.dateToOrder==t.next_open_date?this.formatTime(t.next_open_time):V()(t.next_open_date,"YYYY-MM-DD").format("MM-DD")+" ("+this.formatTime(t.next_open_time)+")":t.next_open&&(n=this.formatTime(t.next_open)),n}formatTime(t){const[n,a]=t.split(":"),r=+n%24;return(r%12||12)+":"+a+(r<12?"AM":"PM")}onListFiltered(t){let n=!1;t.sorting&&""!=t.sorting&&(n=!0),this.filteredResult=0==t.filterCount?null:t;let a={},r=[];t.list&&(r=t.list.filter(l=>!a[l.rid]&&(a[l.rid]=!0))),this.getCachedRestaurants(()=>{let l=-1;if(t.list)if(t.notCuisine)this.getCachedRestaurantsClear();else{if(this.closedRestaurants=this.filterOutRestaurants(this.allClosedRestaurants,t.list),!n&&this.closedRestaurants&&this.closedRestaurants.length>0){let u=[],c=this.closedRestaurants.map(function(g){if(g.next_open&&""!=g.next_open&&"closed"!=g.next_open)return g;g.next_open="Closed",u.push(g)});c=c.filter(function(g){return void 0!==g}),c.sort(function(g,h){return g.next_open.localeCompare(h.next_open)}),this.allClosedRestaurants=c.concat(u)}this.showAllClosedRestaurants=!1,this.closedRestaurants=this.getDisplayedClosedRestaurants(),this.showMoreClosed=this.allClosedRestaurants.length>4,this.featuredRestaurants=this.filterOutRestaurants(this.allFeaturedRestaurants,t.list),this.openRestaurants=this.filterOutRestaurants(this.allOpenRestaurants,t.list),this.cateringRestaurants=this.filterOutRestaurants(this.allCateringRestaurants,t.list)}else this.closedRestaurants=[],this.featuredRestaurants=[],this.openRestaurants=[],this.cateringRestaurants=[];if(t.notCuisine)for(let u=0;u<this.allRestaurantArrLoc0.length;u++){if(this.restaurantFilter[u]=!t.currentCity,null!=this.restaurantLoc0[u]){const c=this.stripLocationCountSuffix(this.restaurantLoc0[u]),g=this.getDisplayLocationRestaurants(u).length;this.restaurantLoc0[u]=`${c} (${g})`}this.getDisplayLocationRestaurants(u).length<=0&&(this.restaurantFilter[u]=!1),this.cityIndex==u&&(l=u,this.restaurantFilter[u]=!0)}else{for(let u=0;u<this.allRestaurantArrLoc0.length;u++){const c=this.usesViewAllFilteredDisplay(),g=c?this.getDisplayLocationRestaurants(u):this.allRestaurantArrLoc0[u],h=this.filterOutRestaurantsV2(g,r);
3if(c?this.viewAllFilteredRestaurantArrLoc0[u]=h:this.allRestaurantArrLoc0[u]=h,this.restaurantFilter[u]=!t.currentCity,h.length<=0){if(this.restaurantFilter[u]=!1,null!=this.restaurantLoc0[u]){const d=this.stripLocationCountSuffix(this.restaurantLoc0[u]);this.restaurantLoc0[u]=`${d} (${h.length})`}}else if(null!=this.restaurantLoc0[u]){const d=this.stripLocationCountSuffix(this.restaurantLoc0[u]);this.restaurantLoc0[u]=`${d} (${h.length})`}this.cityIndex==u&&(l=u,this.restaurantFilter[u]=!0)}this.restaurantLoc0.length>0&&(this.closedRestaurants=[],this.featuredRestaurants=[],this.openRestaurants=[],this.cateringRestaurants=[])}this.filterComponent&&(this.filterComponent.currentCity=this.restaurantLoc0[l]),setTimeout(()=>{this.updatedClass(l,!1,this.usesViewAllFilteredDisplay()&&!t.notCuisine)},100),this.filterCount=t.filterCount,this.footerService.filterCount.emit(t.filterCount),"search"==t.type&&this.isMobileView&&""!==t.searchBarVal&&(this.toggleFilterModal(!1),this.footerService.toggleFilterModal.emit(!1))})}toggleFilterModal(t){t&&this.vendorService.HIDE_GLUE_RESTAURANT_FILTERS||(1==t&&(this.isHiddenModalOpen=!0),this.filterModalOpen=t,this.footerService.toggleFilterModal.emit(t))}filterOutRestaurants(t,n){return n.filter(a=>null!=t.find(r=>r.rid==a.rid))}filterOutRestaurantsV2(t,n){return n.filter(a=>null!=t.find(r=>r.rid==a.rid))}parseFee(t){return t.delFee?t.delFee.replace("Est. Delivery",""):""}parseFeeA(t){return t.deliveryFee?t.deliveryFee.replace("Est. Delivery",""):""}clearAllFilter(){var t=this;return(0,_.Z)(function*(){if(console.log("\u{1f534} clearAllFilter called"),t.cityIndex=-1,t.offSetFlag=!1,t.footerService.filterCount.emit(0),t.restaurantLoc0&&!(t.restaurantLoc0.length<=1))return console.log("Multiple locations - navigating to /restaurants?view=all and calling startNewOrder"),t.locationSeoNames={},t.locationDlids={},t.router.navigate(["/restaurants"],{queryParams:{view:"all"},replaceUrl:!0}),t.startNewOrder(),void setTimeout(()=>{t.measureCardHeightWithRetry()},400);console.log("Single or no location - clearing cache and reloading"),yield t.storage.remove("restaurants"),yield t.storage.remove("allrestaurants"),yield t.storage.remove("location_seo_names"),yield t.storage.remove("location_dlids"),window.location.reload(),console.log("Calling getCachedRestaurantsClear()..."),yield t.getCachedRestaurantsClear(),setTimeout(()=>{t.measureCardHeightWithRetry()},400),t.isMobileView&&(t.toggleFilterModal(!1),t.footerService.toggleFilterModal.emit(!1))})()}clearFiltersOnly(){var t,n,a;null===(t=this.filterComponent)||void 0===t||t.clearFields("cuisine"),null===(n=this.filterComponent)||void 0===n||n.clearFields("preferences"),null===(a=this.filterComponent)||void 0===a||a.clearFields("from_rest"),this.filteredResult=null,this.filterCount=0,this.footerService.filterCount.emit(0),this.getCachedRestaurantsClear()}filterCities(t){var n=this;return(0,_.Z)(function*(){if(console.log("\u{1f7e3} filterCities called with event:",t),console.log("Current mappings before check:",{seoNamesCount:Object.keys(n.locationSeoNames).length,dlidsCount:Object.keys(n.locationDlids).length,seoNames:n.locationSeoNames,dlids:n.locationDlids}),t&&0===Object.keys(n.locationSeoNames).length&&0===Object.keys(n.locationDlids).length&&(console.log("\u26a0\ufe0f Mappings empty, loading from storage..."),yield n.loadLocationMappings(),console.log("After loading from storage:",{seoNamesCount:Object.keys(n.locationSeoNames).length,dlidsCount:Object.keys(n.locationDlids).length,seoNames:n.locationSeoNames,dlids:n.locationDlids})),n.toggleFilterModal(!1),n.restaurantsContent.scrollToTop(1e3),n.closeSelection(),0==n.offSetFlag&&(n.offSetFlag=!0),t){var a;console.log("Event is truthy - applying location filter"),n.citiesCheck="Y",n.allRestaurantArrLoc0.forEach(r=>{var l;r[0]&&t.includes(null===(l=r[0])||void 0===l?void 0:l.location)&&(n.sharedService.dlid=r[0].dlid)});for(let r=0;r<n.restaurantLoc0.length;r++)t==n.restaurantLoc0[r]?(a=r,n.restaurantFilter[r]=!1,n.restaurantFilter[r]=!0,n.cityIndex=r):n.restaurantFilter[r]=!1;console.log("Calling updateUrlWithLocation with event:",t),console.log("this.locationSeoNames",n.locationSeoNames),console.log("this.locationDlids",n.locationDlids),console.log("Available mappings - seo_name:",n.locationSeoNames[t],"dlid:",n.locationDlids[t]),n.updateUrlWithLocation(t)}else{console.log("Event is null/falsy - clearing location filter"),n.sharedService.dlid=null,n.citiesCheck="N";for(let r=0;r<n.restaurantLoc0.length;r++)n.restaurantFilter[r]=!0,n.restaurantLoc0[r].includes("(0)")&&(n.restaurantFilter[r]=!1);
3n.cityIndex=-1,console.log("Calling updateUrlWithLocation(null) from filterCities"),n.updateUrlWithLocation(null)}n.isFirst?(n.isFirst=!1,setTimeout((0,_.Z)(function*(){yield n.updatedClass(a)}),50)):setTimeout((0,_.Z)(function*(){yield n.updatedClass(a)}),100)})()}saveLocationMappings(){return(0,_.Z)(function*(){console.log("\u2139\ufe0f Location mappings calculated fresh from API (not saved to storage)")})()}loadLocationMappings(){return(0,_.Z)(function*(){console.log("\u2139\ufe0f Skipping storage load - mappings will be calculated fresh from API")})()}rebuildLocationMappings(){var t=this;return(0,_.Z)(function*(){console.log("\u{1f504} Rebuilding location mappings from cache");const n=yield t.storage.get("allrestaurants");if(n&&0!==n.length){t.restaurantLoc0=[],t.locationSeoNames={},t.locationDlids={};for(let c=0;c<n.length;c++){var a;const g=n[c];if(console.log("Rebuilding from cached element["+c+"]:",g[0]),g&&g.length>0&&null!==(a=g[0])&&void 0!==a&&a.location){var r,l,u;const p=`${g[0].location} (${g.length})`.replace(/\s+/g," ").trim();t.restaurantLoc0[c]=p;const v=p.replace(/\s*\(\d+\)\s*$/,"").trim();null!==(r=g[0])&&void 0!==r&&r.location_seo_name?(t.locationSeoNames[v]=g[0].location_seo_name.trim(),console.log("\u2713 Rebuilt seo_name mapping:",v,"\u2192",g[0].location_seo_name.trim())):console.log("\u26a0\ufe0f No location_seo_name found for:",v),null!==(l=g[0])&&void 0!==l&&l.location_dlid?(t.locationDlids[v]=g[0].location_dlid.toString(),console.log("\u2713 Rebuilt dlid from location_dlid:",v,"\u2192",g[0].location_dlid)):null!==(u=g[0])&&void 0!==u&&u.dlid?(t.locationDlids[v]=g[0].dlid.toString(),console.log("\u2713 Rebuilt dlid from dlid field:",v,"\u2192",g[0].dlid)):console.log("\u26a0\ufe0f No dlid found for:",v)}}console.log("\u2705 Rebuilt location mappings:",{locations:t.restaurantLoc0.length,seoNames:Object.keys(t.locationSeoNames).length,dlids:Object.keys(t.locationDlids).length})}else console.log("\u26a0\ufe0f No cached restaurants to rebuild mappings from")})()}updateUrlWithLocation(t){if(console.log("\u{1f4cd} updateUrlWithLocation called with:",t),t){let n=t.replace(/\s+/g," ").trim();n=n.replace(/\s*\(\d+\)\s*$/,"").trim(),console.log("Original location name:",t),console.log("Normalized location name:",n),console.log("this.locationSeoNames",this.locationSeoNames),console.log("this.locationDlids",this.locationDlids);let a=this.locationSeoNames[n],r=this.locationDlids[n];if(console.log("seoName",a),console.log("dlid",r),r){const l={dlid:r.toString()};a&&""!==a.trim()&&(l.location=a),console.log("Navigating with query params:",l),this.router.navigate(["/restaurants"],{queryParams:l,replaceUrl:!0}),console.log("\u2705 Navigation complete, new URL:",window.location.href)}else console.warn("No dlid available for location:",t),this.router.navigate(["/restaurants"],{replaceUrl:!0})}else console.log("Clearing location filter - navigating to /restaurants"),this.router.navigate(["/restaurants"],{replaceUrl:!0}),console.log("\u2705 Navigation complete, new URL:",window.location.href)}
3applyLocationFromUrl(){var t;console.log("========== applyLocationFromUrl CALLED =========="),console.log("Full URL:",window.location.href),console.log("Route queryParams:",this.route.snapshot.queryParams);const n=this.route.snapshot.queryParams.location;if(console.log("locationParam:",n),console.log("restaurantLoc0 length:",null===(t=this.restaurantLoc0)||void 0===t?void 0:t.length),console.log("restaurantLoc0:",this.restaurantLoc0),n&&this.restaurantLoc0&&0!==this.restaurantLoc0.length){console.log("\u2713 Passed early return checks"),console.log("Trying to match location from URL:",n),console.log("Available locations:",this.restaurantLoc0),console.log("Location SEO name mappings:",this.locationSeoNames),console.log("Location DLID mappings:",this.locationDlids);for(let l=0;l<this.restaurantLoc0.length;l++){const u=this.restaurantLoc0[l],c=u.replace(/\s*\(\d+\)\s*$/,"").trim();if(this.locationSeoNames[c]&&""!==this.locationSeoNames[c].trim()&&this.locationSeoNames[c]===n)return console.log("\u2713 Matched by seo_name:",c),this.filterCities(u),void(this.filterComponent&&(this.filterComponent.currentCity=u,console.log("\u2713 Set filterComponent.currentCity to:",u)));if(this.locationDlids[c]){const g=this.locationDlids[c];if(console.log("dlid:",g),g.toString()===n.toString())return console.log("\u2713 Matched by dlid:",c),this.filterCities(u),void(this.filterComponent&&(this.filterComponent.currentCity=u,console.log("\u2713 Set filterComponent.currentCity to:",u)))}}console.log("\u274c No matching location found for:",n.toString())}else{var a,r;console.log("\u274c EARLY RETURN - Reason:",{noLocationParam:!n,noRestaurantLoc0:!this.restaurantLoc0,emptyRestaurantLoc0:0===(null===(a=this.restaurantLoc0)||void 0===a?void 0:a.length),locationParam:n,restaurantLoc0Length:null===(r=this.restaurantLoc0)||void 0===r?void 0:r.length})}}estWaitNdBuffer(t){return"TAKEOUT"==this.order.TYPE&&null!=t&&t.takeout_prep_time&&(t.estwait=null==t?void 0:t.takeout_prep_time),Number(t.estwaitbuffer)>0?Number(t.estwait)+" - "+(Number(t.estwait)+Number(t.estwaitbuffer)):Number(t.estwait)}getNumOfRows(t,n=0){var a;let r=15,l=0;switch(t){case"featured":l=this.featuredRestaurants.length,r=Math.ceil(l/this.restAPI.numOfColumns);break;case"open":l=this.openRestaurants.length,r=Math.ceil(l/this.restAPI.numOfColumns);break;case"catering":l=this.cateringRestaurants.length,r=Math.ceil(l/this.restAPI.numOfColumns);break;case"closed":l=this.closedRestaurants.length,r=Math.ceil(l/this.restAPI.numOfColumns);break;case"all":l=(null===(a=this.restaurantArrLoc0[n])||void 0===a?void 0:a.length)||0,r=Math.ceil(l/this.getLocationGridColumns(n))||1;break;default:r=15}return r}getLocationGridColumns(t){var n;const a=Number(this.restAPI.numOfColumns)>0?Number(this.restAPI.numOfColumns):1,r=(null===(n=this.restaurantArrLoc0[t])||void 0===n?void 0:n.length)||0;return r>0&&r<a?r:a}getLocationColSize(t){return Math.floor(12/this.getLocationGridColumns(t))}isSparseLocationGroup(t){var n;const a=Number(this.restAPI.numOfColumns)>0?Number(this.restAPI.numOfColumns):1,r=(null===(n=this.restaurantArrLoc0[t])||void 0===n?void 0:n.length)||0;return r>0&&r<a}getDisplayedClosedRestaurants(){return this.showAllClosedRestaurants?this.allClosedRestaurants:this.allClosedRestaurants.slice(0,4)}toggleShowMoreClosed(){this.showAllClosedRestaurants=!this.showAllClosedRestaurants,this.closedRestaurants=this.getDisplayedClosedRestaurants(),setTimeout(()=>{this.adjustCdkScrollHeights()},200),this.showAllClosedRestaurants||setTimeout(()=>{const t=this.document.querySelector(".closed-restaurants-viewport");t&&t.scrollIntoView({behavior:"smooth",block:"start"})},200)}adjustCdkScrollHeights(){this.cdkScrollElements.forEach((t,n)=>{const a=t.elementRef.nativeElement,r=a.querySelector(".cdk-virtual-scroll-content-wrapper");if(r){const u=r.offsetHeight;u>50&&a.offsetHeight>u&&this.renderer.setStyle(a,"height",`${u}px`)}})}setCardHeight(){const t=this.measureActualCardHeight();if(console.log(t),t>0)return void(t>=220&&!this.router.url.includes("?view=all")||this.router.url.includes("?view=all")&&this.isMobileView?this.cardHeight=t:t<=220&&
3!this.router.url.includes("?view=all")&&this.isMobileView&&(this.cardHeight=260));let n=this.restAPI.numOfColumns;switch((null==n||Number(n)<=0)&&(n=2),Number(n)){case 4:this.cardHeight=370;break;case 3:this.cardHeight=360;break;case 2:this.cardHeight=285;break;case 1:this.cardHeight=this.isMobileView?260:window.innerWidth>=769&&window.innerWidth<=896&&!this.router.url.includes("?view=all")?230:144;break;default:this.cardHeight=260}}measureActualCardHeight(){if(!this.isReadyToMeasure())return 0;const t=document.querySelector("ion-card.restaurant-card-wrapper:not(.fakeCard)");return t?(window.getComputedStyle(t),t.offsetHeight+18):0}measureCardHeightWithRetry(t=5,n=150){let a=0;const r=()=>{this.measureActualCardHeight()>0?(this.setCardHeight(),this.changeRef.detectChanges()):a<t?(a++,setTimeout(r,n)):(this.setCardHeight(),this.changeRef.detectChanges())};setTimeout(r,100)}isReadyToMeasure(){if(!this.hideSkeleton||!(this.openRestaurants.length>0||this.featuredRestaurants.length>0||this.cateringRestaurants.length>0||this.restaurantArrLoc0.some(r=>r&&r.length>0)))return!1;const n=document.querySelectorAll("ion-card.restaurant-card-wrapper:not(.fakeCard)");return!(0===n.length||n[0].offsetHeight<50)}handlerItemClicked(t){this.goToRestaurant(t.item.rid,t.item.name,t.item.shift)}handlerAppliedFilter(t){}presentAlert(t){var n=this;return(0,_.Z)(function*(){var r;"noRestaurants"==t?yield(yield n.alertCtrl.create({header:n.translate.instant("noRestaurantsFound"),backdropDismiss:!1,message:n.translate.instant("noRestaurantsFoundMessage"),buttons:[{text:"Ok",handler:(r=(0,_.Z)(function*(){if(yield n.storage.remove("cached_address"),yield n.storage.remove("lastAddressUsed"),yield n.storage.remove("order"),n.allRestaurants=[],n.openRestaurants=[],n.cateringRestaurants=[],n.closedRestaurants=[],n.favRestaurants=[],n.isOrderAvailable=!1,n.hasCachedAddress=!1,n.noAddress=!0,n.showMoreClosed=!1,"N"==n.vendorService.GLUE_VIEW_ALL_RESTAURANTS_LINK)return n.hideSkeleton=!0,void n.openAddressModal();n.locationSeoNames={},n.locationDlids={},console.log("this.vendorService.GLUE_VIEW_ALL_RESTAURANTS_LINK22",n.vendorService.GLUE_VIEW_ALL_RESTAURANTS_LINK),n.restAPI.getAllRestaurants().subscribe(l=>{if(l){n.storage.remove("restaurants"),n.restaurantLoc0=[];let u=0;if(l.dietary_preferences){n.dietaryPreferences=[];let c=Object.values(l.dietary_preferences);c.sort(),c.forEach(g=>{""!=g&&n.dietaryPreferences.push({id:g,value:g[0].toUpperCase()+g.slice(1)})})}if((!l.restaurants.open||0==l.restaurants.open.length)&&(l.restaurants.open=l.restaurants.closed),l.locations)for(let c=0;c<l.locations.length;c++){let g=0,h=l.locations[c].dlid;if(n.allRestaurantArrLoc0[c]=[],l.restaurants.open)for(let d=0;d<l.restaurants.open.length;d++)l.restaurants.open[d].dlid==h&&(l.restaurants.open[d].isLogoLoad=!1,l.restaurants.open[d].isImageLoad=!1,l.restaurants.open[d].location_seo_name=l.locations[c].seo_name,l.restaurants.open[d].location_dlid=l.locations[c].dlid,n.allRestaurantArrLoc0[u].push(l.restaurants.open[d]),n.allRestaurants.push(l.restaurants.open[d]),g++);if(g>0){const f=((l.locations[c].description||l.locations[c].location)+" ("+g+")").replace(/\s+/g," ").trim();n.restaurantLoc0[u]=f;const p=f.replace(/\s*\(\d+\)\s*$/,"").trim();l.locations[c].seo_name?(n.locationSeoNames[p]=l.locations[c].seo_name.trim(),console.log("\u2713 Stored seo_name:",p,"\u2192",l.locations[c].seo_name.trim())):console.log("\u26a0\ufe0f API location has no seo_name for:",p),l.locations[c].dlid?(n.locationDlids[p]=l.locations[c].dlid.toString(),console.log("\u2713 Stored dlid:",p,"\u2192",l.locations[c].dlid)):console.log("\u26a0\ufe0f API location has no dlid for:",p),n.restaurantFilter[u]=!0,u++}}n.captureViewAllRestaurantSource(),n.storage.set("allrestaurants",n.allRestaurantArrLoc0),setTimeout((0,_.Z)(function*(){yield n.updatedClass(null,!0)}),100)}else n.allRestaurants=[],n.openRestaurants=[],n.cateringRestaurants=[],n.closedRestaurants=[],n.favRestaurants=[],n.hideSkeleton=!0,n.noAddress=!0,n.showMoreClosed=!1,n.openAddressModal()})}),function(){return r.apply(this,arguments)})}]}
3)).present():"cordova"==t?yield(yield n.alertCtrl.create({message:"Cordova is not available on desktop. Please try this on a real device or in an emulator.",backdropDismiss:!1,buttons:[n.translate.instant("ok")]})).present():yield(yield n.alertCtrl.create({header:n.translate.instant("noAddress"),backdropDismiss:!1,message:n.translate.instant("noAddressMessage"),buttons:[n.translate.instant("ok")]})).present()})()}handleMouseEnter(t){const n=document.getElementById("popover-"+t);n.style.display="block",this.restAPI.numOfColumns>1?(n.style.top="130px",n.style.left="0%",n.style.transform="translateX(0%)"):n.style.top="30px"}handleMouseLeave(t){const n=document.getElementById("popover-"+t);setTimeout(()=>{n.style.display="none"},200)}onResize(t){this.restAPI.setResponsiveColumns(),this.setCardHeight()}onScroll(t){var n=this;return(0,_.Z)(function*(){try{yield t.target.getScrollElement();const f=Date.now();f-n.lastScrollLogTime>1e3&&(n.lastScrollLogTime=f)}catch(a){console.error("\u274c Error in onScroll:",a)}})()}getLocationName(t){const n=t.match(/^(.+?)\s*\(/);return n?n[1].trim():t}getRestaurantCount(t){const n=t.match(/\((\d+)\)/);return n?parseInt(n[1],10):0}loadMoreRestaurants(){var t=this;return(0,_.Z)(function*(n="open"){if(t.isLoadingMore||"open"===n&&!t.hasMoreOpenRestaurants||"closed"===n&&!t.hasMoreClosedRestaurants)return;let a,r;t.isLoadingMore=!0,t.paginationCallCount++,1===t.paginationCallCount?(a=250,r=0,console.log("\u{1f4de} Pagination Call #2: limit=250, offset=0")):(a=null,r=null,console.log("\u{1f4de} Pagination Call #"+(t.paginationCallCount+1)+": no limit/offset"));try{const l=yield t.storage.get("cached_address");if(!l)return console.warn("No cached address available for pagination"),void(t.isLoadingMore=!1);t.restAPI.getRestaurants(l,t.when,t.type,null,!0,null,null,a,r).subscribe(function(){var u=(0,_.Z)(function*(c){const g=t.openRestaurants.length,h=t.allClosedRestaurants.length;if(c.restaurants){var d;const p=c.pagination||(null===(d=c.restaurants)||void 0===d?void 0:d.pagination);p?(t.paginationData=p,void 0!==p.feature||void 0!==p.open||void 0!==p.closed||void 0!==p.catering?(t.totalOpenRestaurants=p.open||0,t.totalClosedRestaurants=p.closed||0,t.hasMoreOpenRestaurants=t.openRestaurants.length<t.totalOpenRestaurants,t.hasMoreClosedRestaurants=t.allClosedRestaurants.length<t.totalClosedRestaurants):void 0!==p.has_more&&(t.hasMoreOpenRestaurants=p.has_more||!1,t.hasMoreClosedRestaurants=p.has_more||!1,p.total&&(t.totalOpenRestaurants=p.total,t.totalClosedRestaurants=p.total))):"open"===n?t.hasMoreOpenRestaurants=!1:t.hasMoreClosedRestaurants=!1;let v=0;if(c.restaurants.open&&c.restaurants.open.length>0){const x=c.restaurants.open.filter(P=>"0"==P.rotm),S=new Set(t.openRestaurants.map(P=>P.rid)),b=x.filter(P=>!S.has(P.rid));b.length>0&&(t.openRestaurants=[...t.openRestaurants,...b],t.allOpenRestaurants=[...t.allOpenRestaurants,...b],t.allRestaurants=[...t.allRestaurants,...b],v+=b.length)}if(c.restaurants.closed&&c.restaurants.closed.length>0){let x=[],S=c.restaurants.closed.map(function(y){if(y.next_open&&""!=y.next_open&&"closed"!=y.next_open)return y;y.next_open="Closed",x.push(y)});S=S.filter(function(y){return void 0!==y}),S.sort(function(y,I){return y.next_open.localeCompare(I.next_open)});const b=S.concat(x),P=new Set(t.allClosedRestaurants.map(y=>y.rid)),A=b.filter(y=>!P.has(y.rid));A.length>0&&(t.allClosedRestaurants=[...t.allClosedRestaurants,...A],t.allRestaurants=[...t.allRestaurants,...A],t.closedRestaurants=t.getDisplayedClosedRestaurants(),t.allClosedRestaurants.length>4&&(t.showMoreClosed=!0),v+=A.length)}if(c.restaurants.feature&&c.restaurants.feature.length>0){const C=new Set(t.featuredRestaurants.map(S=>S.rid)),x=c.restaurants.feature.filter(S=>!C.has(S.rid));x.length>0&&(t.featuredRestaurants=[...t.featuredRestaurants,...x],t.allFeaturedRestaurants=[...t.allFeaturedRestaurants,...x],t.allRestaurants=[...t.allRestaurants,...x],v+=x.length)}if(c.restaurants.catering&&c.restaurants.catering.length>0){const C=new Set(t.cateringRestaurants.map(S=>S.rid)),x=c.restaurants.catering.filter(S=>!C.has(S.rid));x.length>0&&(t.cateringRestaurants=[...t.cateringRestaurants,...x],t.allCateringRestaurants=[...t.allCateringRestaurants,...x],t.allRestaurants=[...t.allRestaurants,...x],v+=x.length)}var f;0===v&&(console.warn("\u26a0\ufe0f No new unique restaurants received in this batch (all duplicates or empty)"),(null==c||null===(f=c.pagination)||void 0===f?void 0:f.has_more)||(console.warn("\u26a0\ufe0f Backend also reports no more data - stopping pagination"),t.hasMoreOpenRestaurants=!1,t.hasMoreClosedRestaurants=!1));const R=yield t.storage.get("restaurants");R&&(R.open=t.openRestaurants,R.closed=t.closedRestaurants,R.feature=t.featuredRestaurants,R.catering=t.cateringRestaurants,yield t.storage.set("restaurants",R)),t.forceRenderFlag++,t.changeRef.destroyed||t.changeRef.detectChanges(),setTimeout(()=>
3{t.cdkScrollElements&&t.cdkScrollElements.forEach((C,x)=>{C&&C.checkViewportSize()}),t.adjustCdkScrollHeights(),t.changeRef.destroyed||t.changeRef.detectChanges(),setTimeout(()=>{document.querySelectorAll("cdk-virtual-scroll-viewport").forEach((x,S)=>{x.querySelectorAll("app-restaurant-card")})},200)},100),t.openRestaurants.length<g&&console.error(`\u274c ERROR: Open restaurants count DECREASED from ${g} to ${t.openRestaurants.length}!`),t.allClosedRestaurants.length<h&&console.error(`\u274c ERROR: Closed restaurants count DECREASED from ${h} to ${t.allClosedRestaurants.length}!`),setTimeout((0,_.Z)(function*(){try{!t.hasMoreOpenRestaurants&&!t.hasMoreClosedRestaurants||t.isLoadingMore?(console.log("\u2705 All restaurants loaded - pagination complete"),setTimeout(()=>{t.cdkScrollElements&&t.cdkScrollElements.forEach(C=>{C&&C.checkViewportSize()}),t.adjustCdkScrollHeights(),t.changeRef&&!t.changeRef.destroyed&&t.changeRef.detectChanges()},300)):(console.log("\u{1f504} Auto-loading next batch..."),yield t.loadMoreRestaurants("open"))}catch(C){console.error("Error auto-loading more restaurants:",C)}}),500)}t.isLoadingMore=!1});return function(c){return u.apply(this,arguments)}}(),u=>{console.error("Error loading more restaurants:",u),t.isLoadingMore=!1,t.paginationCallCount--})}catch(l){console.error("Error in loadMoreRestaurants:",l),t.isLoadingMore=!1,t.paginationCallCount--}}).apply(this,arguments)}}return(i=o).\u0275fac=function(t){return new(t||i)(e.Y36(q.F0),e.Y36(q.gz),e.Y36(w.HT),e.Y36(w.Br),e.Y36(re.T),e.Y36(Bt.D),e.Y36(Vt.A),e.Y36(Ut.p),e.Y36(Ht.K),e.Y36(Yt.N),e.Y36(Me.Ke),e.Y36(w.yF),e.Y36(O.Ye),e.Y36(Jt.eN),e.Y36(Oe.D),e.Y36(oe.sK),e.Y36(w.IN),e.Y36(w.t4),e.Y36(e.sBO),e.Y36(ae.v),e.Y36(Pe.B),e.Y36(Gt.M),e.Y36(Wt.z),e.Y36(Te.n),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ae.v),e.Y36(Qt.b),e.Y36(e.R0b),e.Y36(O.K0),e.Y36(w.jP,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-restaurants"]],viewQuery:function(t,n){if(1&t&&(e.Gf(w.W2,5),e.Gf(Gn,5),e.Gf(Wn,5),e.Gf(Ee,5),e.Gf(Qn,5),e.Gf(qn,5),e.Gf(Ie,5),e.Gf(De,5),e.Gf(jn,5),e.Gf(Kn,5),e.Gf(Ie,5,e.SBq),e.Gf(De,5,e.SBq),e.Gf(Ee,5,e.SBq),e.Gf($n,7),e.Gf(Xn,5),e.Gf(W,5)),2&t){let a;e.iGM(a=e.CRH())&&(n.content=a.first),e.iGM(a=e.CRH())&&(n.restaurantsContent=a.first),e.iGM(a=e.CRH())&&(n.openRestaurantsScroll=a.first),e.iGM(a=e.CRH())&&(n.closedRestaurantsScroll=a.first),e.iGM(a=e.CRH())&&(n.allRes1Scroll=a.first),e.iGM(a=e.CRH())&&(n.allResLocScroll=a.first),e.iGM(a=e.CRH())&&(n.featuredRestaurantsScroll=a.first),e.iGM(a=e.CRH())&&(n.cateringRestaurantsScroll=a.first),e.iGM(a=e.CRH())&&(n.stickyLocation=a.first),e.iGM(a=e.CRH())&&(n.filterComponent=a.first),e.iGM(a=e.CRH())&&(n.featuredRestaurantsElRef=a.first),e.iGM(a=e.CRH())&&(n.cateringRestaurantsElRef=a.first),e.iGM(a=e.CRH())&&(n.closedRestaurantsElRef=a.first),e.iGM(a=e.CRH())&&(n.container=a.first),e.iGM(a=e.CRH())&&(n.locationHeader=a.first),e.iGM(a=e.CRH())&&(n.cdkScrollElements=a)}},hostBindings:function(t,n){1&t&&e.NdJ("resize",function(r){return n.onResize(r)},!1,e.Jf7)},features:[e.TTD],decls:39,vars:48,consts:[[3,"hasBrandLogo",4,"ngIf"],["hidden","true",3,"isOpen"],[1,"sticky-location",3,"ngClass"],[3,"shareableLink","isOrderAvailable","orderType","orderAddress","orderTime","hideFilterSidebar","onLocationHeaderClick"],["locationHeader",""],[1,"clearfix","restaurants-cards-container",3,"ngClass"],[3,"href",4,"ngFor","ngForOf"],[3,"ngClass",4,"ngIf"],[1,"content",3,"ngStyle","ngClass"],[3,"scrollEvents","ionScroll"],["restaurantsContent",""],[4,"ngIf"],[2,"display","flex","flex-direction","column","align-items","center"],[1,"content_wrapper",3,"ngStyle"],[2,"padding","0px 8px",3,"ngClass"],[3,"shareableLink","isOrderAvailable","orderType","orderAddress","orderTime","hideFilterSidebar","stickyMobile","onLocationHeaderClick"],["stickyLocation",""],["slot","fixed",3,"ionRefresh"],["style","padding: 0 8px;",4,"ngIf"],["style","text-align: center; margin-top: 3rem; padding: 2rem;",4,"ngIf"],["style","display: flex; justify-content: flex-start; align-items: center; margin: 16px 0 12px 0;",4,"ngIf"],["windowScroll","","class","viewport ion-content-scroll-host",3,"itemSize","style",4,"ngIf"],["windowScroll","","class","viewport ion-content-scroll-host open-restaurants-viewport",3,"itemSize","style",4,"ngIf"],["class","load-more-container","style","margin: 8px 8px 0 8px;",4,"ngIf"],["windowScroll","","class","viewport ion-content-scroll-host closed-restaurants-viewport",3,"itemSize","style",4,"ngIf"],["class","more-button-container",4,"ngIf"],["class","need-address",4,"ngIf"],[3,"hasBrandLogo"],["text","","icon","arrow-back"],[3,"href"],[3,"ngClass"],[1,"filter-content"],[3,"searchBarInput","textPlaceholder","when","filterTitle","restaurants","locations","orderType","dietaryFilterItems","onFiltered","changeCities","onClearAll","onItemClicked","onAppliedFilter","onClose"],["filterComp",""],[2,"padding","0 8px"],[2,"padding","0"],[3,"size","sizeMd",4,"ngFor","ngForOf"],[3,"size","sizeMd"],[1,"fakeCard","restaurant-card-wrapper",2,"margin-bottom","8px"],[1,"restaurant-card"],[1,"restaurant-card-info-wrapper",2,"margin","0"],["size","12",2,"padding","0"],[1,"restaurant-card-image","fakeImage",2,"height","145px","position","relative"],["animated","",2,"width","100%","height","100%"],[2,"position","absolute","top","10px","left","10px","width","95px","height","95px"],["animated","",1,"fakeLogo",2,"width","100%","height","100%","border-radius","5px"],["size","12",1,"restaurant-card-info",2,"padding","15px 25px"],["animated","",1,"fakeTitle",2,"width","70%","height","20px","margin-bottom","8px"],["animated","",2,"width","40%","height","16px","margin-bottom","8px"],["animated","",2,"width","85%","height","14px","margin-bottom","6px"],["animated","",2,"width","60%","height","14px","margin-bottom","6px"],["animated","",2,"width","50%","height","14px"],[2,"text-align","center","margin-top","3rem","padding","2rem"],["name","search-outline",2,"font-size","64px","color","#999","margin-bottom","1rem"],[1,"restaurants_page_heading","featured",2,"margin-bottom","0.5rem"],[2,"color","#666","font-size","16px","margin-bottom","1.5rem","max-width","400px","margin-left","auto","margin-right","auto"],["color","primary",2,"--border-radius","8px",3,"click"],["slot","start","name","close-circle-outline"],["name","restaurant-outline",2,"font-size","64px","color","#999","margin-bottom","1rem"],["slot","start","name","location-outline"],["name","location-outline",2,"font-size","64px","color","#999","margin-bottom","1rem"],[2,"display","flex","justify-content","flex-start","align-items","center","margin","16px 0 12px 0"],["class","restaurants_page_heading featured","
3style","display: flex; align-items: center; font-size: 22px; font-weight: 700; margin: 0; color: #2c3e50;",4,"ngIf"],[1,"restaurants_page_heading","featured",2,"display","flex","align-items","center","font-size","22px","font-weight","700","margin","0","color","#2c3e50"],["windowScroll","",1,"viewport","ion-content-scroll-host",3,"itemSize"],[3,"size","sizeMd",4,"cdkVirtualFor","cdkVirtualForOf"],[3,"orderType","rest"],["class","restaurants_page_heading","style","display: flex; align-items: center; font-size: 22px; font-weight: 700; margin: 0; color: #2c3e50;",4,"ngIf"],[1,"restaurants_page_heading",2,"display","flex","align-items","center","font-size","22px","font-weight","700","margin","0","color","#2c3e50"],["windowScroll","",1,"viewport","ion-content-scroll-host","open-restaurants-viewport",3,"itemSize"],[1,"load-more-container",2,"margin","8px 8px 0 8px"],["name","crescent",2,"margin-right","8px"],["windowScroll","",1,"viewport","ion-content-scroll-host","closed-restaurants-viewport",3,"itemSize"],[3,"isClosedRestaurant","dateToOrder","orderType","rest"],[1,"more-button-container"],["class","more-restaurants-btn",3,"click",4,"ngIf"],["class","more-restaurants-btn show-less",3,"click",4,"ngIf"],[1,"more-restaurants-btn",3,"click"],["name","chevron-down"],[1,"more-restaurants-btn","show-less",3,"click"],["name","chevron-up"],[3,"id",4,"ngFor","ngForOf"],[3,"id"],["style","display: flex; justify-content: space-between; align-items: center;",4,"ngIf"],["windowScroll","","class","viewport multiDomain ion-content-scroll-host",3,"itemSize","style",4,"ngIf"],[2,"display","flex","justify-content","space-between","align-items","center"],["style","margin-top: 8px;","class","location-header",4,"ngIf"],["style","visibility: hidden; width: 0;",4,"ngIf"],[1,"location-header",2,"margin-top","8px"],[1,"location-name"],[2,"visibility","hidden","width","0"],["windowScroll","",1,"viewport","multiDomain","ion-content-scroll-host",3,"itemSize"],[1,"location-restaurants-grid",2,"padding","0 8px"],[1,"location-restaurants-row"],["class","location-restaurant-col",3,"ngClass","size","sizeMd",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"location-restaurant-col",3,"ngClass","size","sizeMd"],[1,"popover",3,"id"],[1,"restaurant-card-wrapper",2,"height","100%",3,"click"],[3,"deals",4,"ngIf"],[1,"restaurant-card-info-wrapper"],[1,"restaurant-card-logo",3,"size"],["class","restaurant-card-image",4,"ngIf"],["class","logo",4,"ngIf"],[1,"restaurant-card-info",3,"size"],[1,"title-container"],[1,"restaurant-card-title",3,"ngClass"],["class","recommended",3,"ngClass",4,"ngIf"],[1,"restaurant-service-info"],[1,"prep-time-display"],[1,"ready-time"],[1,"service-options"],["class","service-badge delivery-badge",4,"ngIf"],["class","service-badge takeout-badge",4,"ngIf"],[1,"restaurant-card-cuisine",2,"margin-top","0","margin-bottom","0",3,"ngClass"],[3,"deals"],[1,"restaurant-card-image"],["class","menu-default","src","assets/imgs/image-placeholder.png",4,"ngIf"],[3,"ngClass","src","load"],["src","assets/imgs/image-placeholder.png",1,"menu-default"],[1,"logo"],["src","assets/imgs/rest-logo-placeholder.jpg"],[1,"recommended",3,"ngClass"],["src","assets/imgs/recommended.png","alt",""],[1,"service-badge","delivery-badge"],[1,"service-badge","takeout-badge"],[1,"truncate-desktop",3,"id","mouseenter","mouseleave"],[1,"rest_cuisines",2,"display","flex","justify-content","baseline","align-items","center","flex-wrap","wrap"],[1,"truncate"],["side","top","alignment","center","triggerAction","hover",3,"trigger"],[1,"ion-padding"],[1,"need-address"]],template:function(t,n){if(1&t&&(e.YNc(0,es,2,1,"app-main-header",0),e._UZ(1,"i
3on-modal",1),e.TgZ(2,"div",2)(3,"div")(4,"app-location-header",3,4),e.NdJ("onLocationHeaderClick",function(r){return n.onLocationHeaderClick(r)}),e.qZA()()(),e.TgZ(6,"div",5)(7,"div"),e.YNc(8,ts,1,1,"a",6),e.qZA(),e.YNc(9,ss,4,13,"ion-content",7),e.TgZ(10,"div",8)(11,"ion-content",9,10),e.NdJ("ionScroll",function(r){return n.onScroll(r)}),e.YNc(13,is,2,0,"app-main-header",11),e.TgZ(14,"div",12)(15,"div",13)(16,"div",14)(17,"app-location-header",15,4),e.NdJ("onLocationHeaderClick",function(r){return n.onLocationHeaderClick(r)}),e.qZA(),e._UZ(19,"div",null,16),e.qZA(),e.TgZ(21,"ion-refresher",17),e.NdJ("ionRefresh",function(r){return n.checkOrder(r)}),e._UZ(22,"ion-refresher-content"),e.qZA(),e.YNc(23,os,4,1,"div",18),e.YNc(24,as,9,0,"div",19),e.YNc(25,ls,9,0,"div",19),e.YNc(26,us,9,0,"div",19),e.YNc(27,ds,2,1,"div",20),e.YNc(28,hs,4,6,"cdk-virtual-scroll-viewport",21),e.YNc(29,ps,2,1,"div",20),e.YNc(30,_s,4,6,"cdk-virtual-scroll-viewport",22),e.YNc(31,vs,5,0,"div",23),e.YNc(32,xs,2,1,"div",20),e.YNc(33,ws,4,6,"cdk-virtual-scroll-viewport",21),e.YNc(34,Ss,2,1,"div",20),e.YNc(35,bs,4,6,"cdk-virtual-scroll-viewport",24),e.YNc(36,Ps,3,2,"div",25),e.YNc(37,ii,2,1,"div",11),e.YNc(38,ri,1,0,"div",26),e.qZA()()()()()),2&t){let a,r,l,u;e.Q6J("ngIf",!(null!==(a=n.isMobileView)&&void 0!==a&&a)),e.xp6(1),e.Q6J("isOpen",n.isHiddenModalOpen),e.xp6(1),e.Q6J("ngClass",!n.showSticky||null!==(r=n.isMobileView)&&void 0!==r&&r?"noDisplaySticky":"displaySticky"),e.xp6(2),e.Q6J("shareableLink",n.shareableLink)("isOrderAvailable",n.isOrderAvailable)("orderType",n.orderType)("orderAddress",n.orderAddressForLocationHeader)("orderTime",n.orderTime)("hideFilterSidebar",n.vendorService.HIDE_GLUE_RESTAURANT_FILTERS),e.xp6(2),e.Q6J("ngClass",e.VKq(41,oi,n.vendorService.HIDE_GLUE_RESTAURANT_FILTERS)),e.xp6(2),e.Q6J("ngForOf",n.cacheRestaurants),e.xp6(1),e.Q6J("ngIf",!n.vendorService.HIDE_GLUE_RESTAURANT_FILTERS&&(n.filterModalOpen||!(null!==(l=n.isMobileView)&&void 0!==l&&l))),e.xp6(1),e.Q6J("ngStyle",e.VKq(43,ai,n.getBottomPadding()))("ngClass",n.cart&&n.user?"has-cart-user":n.cart||n.user?"has-cart-or-user":""),e.xp6(1),e.Q6J("scrollEvents",!0),e.xp6(2),e.Q6J("ngIf",null!==(u=n.isMobileView)&&void 0!==u&&u),e.xp6(2),e.Q6J("ngStyle",n.sharedService.getMinMaxWidth()),e.xp6(1),e.Q6J("ngClass",e.WLB(45,li,n.showSticky,!n.showSticky)),e.xp6(1),e.Q6J("shareableLink",n.shareableLink)("isOrderAvailable",n.isOrderAvailable)("orderType",n.orderType)("orderAddress",n.orderAddressForLocationHeader)("orderTime",n.orderTime)("hideFilterSidebar",n.vendorService.HIDE_GLUE_RESTAURANT_FILTERS)("stickyMobile",n.removeLocationMarginTop),e.xp6(6),e.Q6J("ngIf",!n.hideSkeleton),e.xp6(1),e.Q6J("ngIf",(null==n.featuredRestaurants?null:n.featuredRestaurants.length)<1&&(null==n.openRestaurants?null:n.openRestaurants.length)<1&&(null==n.cateringRestaurants?null:n.cateringRestaurants.length)<1&&(null==n.closedRestaurants?null:n.closedRestaurants.length)<1&&(null==n.restaurantArrLoc0?null:n.restaurantArrLoc0.length)<1&&1==n.hideSkeleton&&n.filteredResult),e.xp6(1),e.Q6J("ngIf",(null==n.featuredRestaurants?null:n.featuredRestaurants.length)<1&&(null==n.openRestaurants?null:n.openRestaurants.length)<1&&(null==n.cateringRestaurants?null:n.cateringRestaurants.length)<1&&(null==n.closedRestaurants?null:n.closedRestaurants.length)<1&&(null==n.restaurantArrLoc0?null:n.restaurantArrLoc0.length)<1&&1==n.hideSkeleton&&!n.filteredResult&&n.hasCachedAddress),e.xp6(1),e.Q6J("ngIf",(null==n.featuredRestaurants?null:n.featuredRestaurants.length)<1&&(null==n.openRestaurants?null:n.openRestaurants.length)<1&&(null==n.cateringRestaurants?null:n.cateringRestaurants.length)<1&&(null==n.closedRestaurants?null:n.closedRestaurants.length)<1&&(null==n.restaurantArrLoc0?null:n.restaurantArrLoc0.length)<1&&1==n.hideSkeleton&&!n.filteredResult&&!n.hasCachedAddress),e.xp6(1),e.Q6J("ngIf",(null==n.featuredRestaurants?null:n.featuredRestaurants.length)>0),e.xp6(1),e.Q6J("ngIf",(null==n.featuredRestaurants?null:n.featuredRestaurants.length)>0),e.xp6(1),e.Q6J("ngIf",(null==n.openRestaurants?null:n.openRestaurants.length)>0),e.xp6(1),e.Q6J("ngIf",(null==n.openRestaurants?null:n.openRestaurants.length)>0),e.xp6(1),e.Q6J("ngIf",(null==n.openRestaurants?null:n.openRestaurants.length)>0&&n.hideSkeleton&&n.isLoadingMore&&n.hasMoreOpenRestaurants),e.xp6(1),e.Q6J("ngIf",(null==n.cateringRestaurants?null:n.cateringRestaurants.length)>0),e.xp6(1),e.Q6J("ngIf",(null==n.cateringRestaurants?null:n.cateringRestaurants.length)>0),e.xp6(1),e.Q6J("ngIf",(null==n.closedRestaurants?null:n.closedRestaurants.length)>0),e.xp6(1),e.Q6J("ngIf",(null==n.closedRestaurants?null:n.closedRestaurants.length)>0),e.xp6(1),e.Q6J("ngIf",n.showMoreClosed&&(null==n.closedRestaurants?null:n.closedRestaurants.length)>0),e.xp6(1),e.Q6J("ngIf",n.hideSkeleton),e.xp6(1),e.Q6J("ngIf",n.noAddress&&n.hideSkeleton)}},dependencies:[O.mk,O.sg,O.O5,O.PC,w.oU,w.YG,w.PM,w.Dq,w.wI,w.W2,w.jY,w.gu,w.nJ,w.Wo,w.Nd,w.CK,w.PQ,w.ki,w.d8,w.cs,qt.c,jt.$,Kt.N,tn,Le,bt,Et,W,Jn,oe.X$],styles:['@charset "UTF-8";.restaurant-card-wrapper[_ngcontent-%COMP%]{margin:0;border-radius:5px;border-bottom:1px solid rgba(153,153,153,.4);cursor:pointer;position:relative}.restaurant-card-wrapper[_ngcontent-%COMP%]:hover{background:#C1C1C1}.no-padding[_ngcontent-%COMP%]{padding:0!important}cdk-virtual-scroll-viewport[_ngcontent-%COMP%]{width:100%;overflow-y:hidden!important}.viewport[_ngcontent-%COMP%] .cdk-virtual-scroll-content-wrapper{max-width:100%!important}.position-relative[_ngcontent-%COMP%]{position:relative!important}.position-static[_ngcontent-%COMP%]{position:static!important}.d-none[_ngcontent-%COMP%]{display:none}ion-popover[_ngcontent-%COMP%]{--width: auto}@media (max-width: 786px){ion-popover[_ngcontent-%COMP%]{--width: 90vw}.truncate[_ngcontent-%COMP%]{max-width:90%}}.truncate[_ngcontent-%COMP%]{width:auto;max-width:90%;white-space:nowrap;overflow:hidden;display:inline-block}.noDisplaySticky[_ngcontent-%COMP%]{display:none}.displaySticky[_ngcontent-%COMP%]{display:block}
3.card-content[_ngcontent-%COMP%]{padding:0}.restaurant-card-image[_ngcontent-%COMP%]{height:145px;width:100%;background-size:cover;background-position:center center}.restaurant-card-image.fill[_ngcontent-%COMP%]{object-fit:fill}.restaurant-card-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.hide-notLoad-image[_ngcontent-%COMP%]{display:none}.restaurant-card-cuisine[_ngcontent-%COMP%]{margin-top:5px}.restaurant-del-fee[_ngcontent-%COMP%]{color:var(--ion-color-primary);font-weight:600}.ion_background[_ngcontent-%COMP%]{background-color:#000}.closedRest_opacity[_ngcontent-%COMP%]{opacity:.5}.closedRest_text[_ngcontent-%COMP%]{margin:0;color:#fff}.closedRest_text_open[_ngcontent-%COMP%]{margin:0;color:#fff;font-weight:300}.closedRest_icon[_ngcontent-%COMP%]{font-size:30px;color:#fff}.reorder-time-main[_ngcontent-%COMP%]{height:100%;position:absolute;top:0;width:100%;display:flex;justify-content:center;align-items:center}.closed_info[_ngcontent-%COMP%]{position:absolute;top:-7px;bottom:0;right:0;left:0;z-index:2;text-align:center;color:#fff;font-weight:700;font-size:16px}.preorder_btn[_ngcontent-%COMP%]{position:relative;font-size:16px;line-height:18px;border:1px solid;width:190px;margin:0 auto;height:50px}.restaurant-card-backdrop[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;right:0;left:0;z-index:1;background-color:#000;opacity:.5;pointer-events:none;transition:opacity .5s ease-in-out}.side_scroll[_ngcontent-%COMP%]{overflow-x:scroll;overflow-y:hidden;white-space:nowrap}.side_scroll[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.side_scroll[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{display:inline-block;width:83%;margin:10px;padding:0;box-shadow:0 0 10px 2px #b3b3b3;border-radius:3px}.side_scroll[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] .restaurant-card-wrapper[_ngcontent-%COMP%]{margin:10px 0 0}
3.restaurants_page_separator[_ngcontent-%COMP%]{height:10px;background:#d2d2d2;margin:10px 0}.restaurants_page_heading[_ngcontent-%COMP%]{padding:0 15px;margin-top:5px}@media (max-width: 768px){.restaurants_page_heading[_ngcontent-%COMP%]{margin-top:5px;padding:0 20px;font-size:20px}}.card-content-ios[_ngcontent-%COMP%]{padding:0}.card-content-ios[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:12px}ion-grid[_ngcontent-%COMP%]{padding:10px 15px}.toast-message[_ngcontent-%COMP%]{padding:20px 15px;font-size:16px}.toast_address[_ngcontent-%COMP%]{top:55px!important}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_fadeIn;animation-duration:1s}.favorites_container[_ngcontent-%COMP%]{margin-bottom:20px;overflow:hidden;max-height:0}.favorites_container[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.favorites_container.opened[_ngcontent-%COMP%]{transition:max-height 1s ease-in;height:auto;max-height:400px}.fakeImage[_ngcontent-%COMP%]{top:-4px;position:relative}.fakeLogo[_ngcontent-%COMP%]{height:42px}.fakeTitle[_ngcontent-%COMP%]{height:16px;width:50%}.fakeRight[_ngcontent-%COMP%]{width:40%;float:right}.fakeLeft[_ngcontent-%COMP%]{width:40%;float:left}.need-address[_ngcontent-%COMP%]{text-align:center;margin:10% 0 0}.need-address[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{width:80%}#navigate-icon[_ngcontent-%COMP%]{font-size:35px;color:var(--ion-color-primary)}.restaurants-cards-container[_ngcontent-%COMP%]{display:flex;height:100%}.restaurants-cards-container.no-filter-sidebar[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{flex:1;width:100%;max-width:100%}.sidebar[_ngcontent-%COMP%]{--padding-top: 35px;--padding-bottom: 35px;--padding-start: 25px;--padding-end: 25px;z-index:100;box-shadow:5px 0 17px -4px #0006;width:360px;flex:none;padding-left:25px;padding-right:25px}.content[_ngcontent-%COMP%]{flex:5}.restaurant-card-logo[_ngcontent-%COMP%]{padding:0;overflow:hidden}.restaurant-card-info[_ngcontent-%COMP%]{padding-left:25px;padding-top:5px;font-weight:500;background:white;z-index:2}.restaurant-card-info[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:16px;vertical-align:sub}.restaurant-card-info[_ngcontent-%COMP%]:hover{background:#C1C1C1}.bullet[_ngcontent-%COMP%]{margin:0 5px}.recommended[_ngcontent-%COMP%]{background:var(--ion-color-primary);padding:5px;height:36px;width:36px;border-radius:5px;margin-right:10px}.recommended[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%}.restaurant-card-title[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:85%;margin:10px 0 0}.title-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}@media (max-width: 768px){.title-container[_ngcontent-%COMP%]{margin:0}}.rest_cuisines[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}@media (max-width: 768px){.rest_cuisines[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}}.restaurant-title[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:1px}.logo[_ngcontent-%COMP%]{position:absolute;top:10px;left:10px;width:95px;height:95px}.logo[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .logo[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{border-radius:5px;width:100%;height:100%}.status[_ngcontent-%COMP%], .status-device[_ngcontent-%COMP%]{position:absolute;background:var(--ion-color-secondary);top:25px;color:#fff;right:-45px;transform:rotate(45deg);text-transform:uppercase;font-weight:500;text-align:center;white-space:nowrap;width:200px;white-space:pre-wrap;z-index:1;padding-left:15px}h1[_ngcontent-%COMP%]{font-weight:700}.preorder[_ngcontent-%COMP%]{right:0;background:var(--ion-color-secondary);bottom:0px;color:#fff;margin-right:20px;padding:5px 15px;border-radius:25px;position:absolute}.featured[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.status-device[_ngcontent-%COMP%], .filter[_ngcontent-%COMP%]{display:none}@media (min-width: 769px){.content[_ngcontent-%COMP%] .header[_ngcontent-%COMP%], .content[_ngcontent-%COMP%] .notHeader[_ngcontent-%COMP%]{padding:20px 35px 0}.content[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%]{--padding-start: 45px;--padding-end: 45px}}@media (max-width: 768px){.sidebar[_ngcontent-%COMP%], .status[_ngcontent-%COMP%], .hide-modal[_ngcontent-%COMP%]{display:none}.status-device[_ngcontent-%COMP%]{display:block;top:15px;right:-55px;padding-left:25px}.restaurant-card-image[_ngcontent-%COMP%]{height:125px}.logo[_ngcontent-%COMP%]{width:75px;height:75px}.restaurant-card-info[_ngcontent-%COMP%]{padding-left:15px}.restaurant-card-title[_ngcontent-%COMP%]{font-size:20px;margin:0}.recommended[_ngcontent-%COMP%]{height:28px;width:28px}.bullet[_ngcontent-%COMP%]{margin:0}.preorder[_ngcontent-%COMP%]{bottom:6px}.restaurant-card-cuisine[_ngcontent-%COMP%]{margin-bottom:0;white-space:break-spaces;font-size:12px;width:100%}.restaurant-card-cuisine[_ngcontent-%COMP%] .restaurant-card-cuisine-des[_ngcontent-%COMP%]{text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;overflow:hidden;width:50%;-webkit-box-orient:vertical}.notHeader[_ngcontent-%COMP%]{top:0;background:white;z-index:1}.filter[_ngcontent-%COMP%]{display:block;padding:13px}.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;position:fixed;right:35px;z-index:100;
3top:20px}.header[_ngcontent-%COMP%]{position:sticky;top:0;background:white;z-index:1}}.sticky-location[_ngcontent-%COMP%]{width:100%;background:white;z-index:250;position:absolute;box-shadow:0 3px 8px #a6adc933}.sticky-location[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:70%;margin:auto}.collapsible-icon[_ngcontent-%COMP%]{position:absolute;right:0;left:0;z-index:1000;margin:auto;width:100%;bottom:0}@media (min-width: 769px){.collapsible-icon[_ngcontent-%COMP%]{bottom:12px}}.collapsible-icon[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{margin:auto;display:block;font-size:32px;color:var(--ion-color-primary-contrast);background:var(--ion-text-color, #000);border-radius:50%;cursor:pointer}.more-button-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;margin-top:-12px;margin-bottom:12px;position:relative;z-index:5}.more-restaurants-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 20px;background:#f5f5f5;color:#191919;border:1px solid #e8e8e8;border-radius:20px;font-size:14px;font-weight:500;cursor:pointer;box-shadow:none;transition:all .2s ease;text-transform:none}.more-restaurants-btn[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:16px;color:#191919;margin-left:4px}.more-restaurants-btn[_ngcontent-%COMP%]:hover{background:#ebebeb;border-color:#d8d8d8}.more-restaurants-btn[_ngcontent-%COMP%]:active{background:#e0e0e0}@media (max-width: 768px){.more-restaurants-btn[_ngcontent-%COMP%]{font-size:13px;padding:9px 18px}.more-restaurants-btn[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:14px}}.shadow-card[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;z-index:2;top:0;bottom:0;background:linear-gradient(0deg,#FFFFFF 0%,rgba(255,255,255,0) 150%)}.collapsible[_ngcontent-%COMP%]{background-color:#f8f8f8;color:#000;font-weight:700;font-size:20px!important;cursor:pointer;margin-left:10px;padding:14px;width:100%;border:none;text-align:center;outline:none;font-size:15px;box-shadow:inset 0 -1px #a6adc933;border-radius:5px;margin-top:2px}@media (max-width: 768px){.collapsible[_ngcontent-%COMP%]{width:94%;font-size:15px!important}}.collapsible[_ngcontent-%COMP%]:hover{cursor:default}.inactive[_ngcontent-%COMP%]:after{content:"+"}.active[_ngcontent-%COMP%]:after{content:"\\2212"}.multiDomain[_ngcontent-%COMP%]{max-height:100%!important;padding-bottom:.75rem;overflow:hidden;transition:max-height .2s ease-out}.multiDomain[_ngcontent-%COMP%] .location-restaurants-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.multiDomain[_ngcontent-%COMP%] .location-restaurant-col[_ngcontent-%COMP%] .restaurant-card-wrapper[_ngcontent-%COMP%]{width:100%}.multiDomain[_ngcontent-%COMP%] .sparse-location-col[_ngcontent-%COMP%]{flex:0 0 100%!important;width:100%!important;max-width:100%!important;padding-left:0;padding-right:8px}@media (max-width: 1023px){.multiDomain[_ngcontent-%COMP%] .sparse-location-col[_ngcontent-%COMP%]{padding-right:0}}.three-col-text[_ngcontent-%COMP%]{font-size:1.6rem}.three-col-subtext[_ngcontent-%COMP%]{font-size:1.3rem!important}.three-col-icon[_ngcontent-%COMP%]{height:2.2rem;width:2.2rem}.two-col-text[_ngcontent-%COMP%]{font-size:1.6rem!important}.three-col-subtext[_ngcontent-%COMP%]{font-size:1rem!important}.two-col-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem}@media (min-width: 769px) and (max-width: 960px){.restaurant-card-title[_ngcontent-%COMP%]{font-size:1.5rem}}@media (max-width: 768px){.has-cart-or-user[_ngcontent-%COMP%], .has-cart-user[_ngcontent-%COMP%]{margin-bottom:1px!important}}.truncate-desktop[_ngcontent-%COMP%]{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:80%!important;position:relative!important;z-index:99999999999999!important;display:inline-block}.popover[_ngcontent-%COMP%]{display:none;background-color:#fff!important;color:#333!important;text-align:center;border-radius:8px;padding:10px;position:absolute;left:50%;transform:translate(-50%);box-shadow:0 4px 8px #0003!important;font-size:14px!important;z-index:99999999999999!important;max-width:80%}@media (min-width: 1400px){.content_wrapper[_ngcontent-%COMP%]{min-width:1000px!important;max-width:1050px!important}}@media (min-width: 1200px) and (max-width: 1400px){.content_wrapper[_ngcontent-%COMP%]{min-width:660px!important;max-width:700px!important}}@media (min-width: 1024px) and (max-width: 1200px){.content_wrapper[_ngcontent-%COMP%]{min-width:600px!important;max-width:660px!important}}@media (min-width: 940px) and (max-width: 1024px){.content_wrapper[_ngcontent-%COMP%]{min-width:550px!important;max-width:600px!important}}@media (min-width: 800px) and (max-width: 940px){.content_wrapper[_ngcontent-%COMP%]{min-width:450px!important;max-width:450px!important}}@media (min-width: 769px) and (max-width: 800px){.content_wrapper[_ngcontent-%COMP%]{min-width:370px!important;max-width:400px!important}}@media (max-width: 768px){.content_wrapper[_ngcontent-%COMP%]{width:100%!important;min-width:unset!important;max-width:100%!important}.restaurant-card-info-wrapper[_ngcontent-%COMP%] ion-col[_ngcontent-%COMP%]{flex:0 0 100%!important;width:100%!important;max-width:100%!important}}@media (max-width: 576px){.recommended[_ngcontent-%COMP%]{height:2.5rem;max-height:2.5rem;min-height:2.5rem;width:2.75rem;max-width:2.75rem;min-width:2.75rem;margin-right:0}.restaurant-card-title[_ngcontent-%COMP%]{font-size:1.25rem}}.restaurant-service-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;width:100%}.service-options[_ngcontent-%COMP%]{display:flex;gap:6px;flex-wrap:wrap}.service-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;padding:2px 10px;border-radius:12px;font-size:12px;font-weight:500;border:none}.service-badge[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:12px}.service-badge.delivery-badge[_ngcontent-%COMP%]{background-color:#e3f2fd;color:#1565c0}.service-badge.takeout-badge[_ngcontent-%COMP%]{background-color:#fff3e0;color:#e88636}
3.prep-time[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;font-size:12px;color:#666;font-weight:500}.prep-time[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:14px;color:var(--ion-color-primary)}.prep-time-display[_ngcontent-%COMP%]{margin:5px}@media (max-width: 768px){.prep-time-display[_ngcontent-%COMP%]{margin:0}}@media (max-width: 768px){.service-badge[_ngcontent-%COMP%]{font-size:12px;padding:1px 10px;font-weight:700}.service-badge[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:11px}.prep-time[_ngcontent-%COMP%]{font-size:11px}.prep-time[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:12px}}.three-col-text[_ngcontent-%COMP%] ~ .restaurant-service-info[_ngcontent-%COMP%] .service-badge[_ngcontent-%COMP%]{font-size:12px;padding:1px 10px}.three-col-text[_ngcontent-%COMP%] ~ .restaurant-service-info[_ngcontent-%COMP%] .prep-time[_ngcontent-%COMP%]{font-size:11px}.two-col-text[_ngcontent-%COMP%] ~ .restaurant-service-info[_ngcontent-%COMP%] .service-badge[_ngcontent-%COMP%]{font-size:12px;padding:2px 10px}.two-col-text[_ngcontent-%COMP%] ~ .restaurant-service-info[_ngcontent-%COMP%] .prep-time[_ngcontent-%COMP%]{font-size:12px}.location-header[_ngcontent-%COMP%]{background-color:#f6f6f6;padding:8px;width:100%;border-radius:5px;margin:0 0 5px 10px;text-align:center}@media (max-width: 768px){.location-header[_ngcontent-%COMP%]{width:94%}}.location-name[_ngcontent-%COMP%]{color:#000;font-weight:700;font-size:20px;line-height:1.2}.restaurant-count[_ngcontent-%COMP%]{color:#666;font-size:14px;font-weight:400;margin-top:4px}.ready-time[_ngcontent-%COMP%]{color:#2d7d32;border-radius:12px;font-size:12px;font-weight:600;border:none;display:flex;align-items:center;gap:4px}.ready-time[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:14px}@media (max-width: 768px){.ready-time[_ngcontent-%COMP%]{padding:3px 6px}.ready-time[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:12px}}.load-more-container[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:20px 16px;margin-bottom:16px}.load-more-container[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{min-width:200
3px;max-width:400px;--border-radius: 8px;font-weight:500;text-transform:none}.load-more-container[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] ion-spinner[_ngcontent-%COMP%]{margin-right:8px;width:18px;height:18px}@media (max-width: 768px){.load-more-container[_ngcontent-%COMP%]{padding:16px 12px}.load-more-container[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{width:100%;max-width:none}}']}),o})();var ci=m(77147);const di=[{path:"",component:ui}];let gi=(()=>{var i;class o{}return(i=o).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[O.ez,Ze.u5,w.Pc,ci.m,It,q.Bz.forChild(di)]}),o})()}}]); 4//# debugId=13dc8146-917c-50b0-87ad-45c5b7026cd2 5 6//# chunkId=01a0f3b8-649c-79e0-9a47-09373e6b4ae2
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.