<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[264],{6192:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/trading-hours",function(){return t(1370)}])},7526:function(e,r,t){"use strict";t.d(r,{Z:function(){return h}});var n=t(4065),s=t(6538),a=t(4913),o=t(4029),i=t(264),c=t(8319),l=t(2774),u=t.n(l),d=t(9231),f=t(9621),p=function(e){var r=e.hasMultipleStores,t=e.storeKey,n=e.hostProps;return!1===n.isPreview?r?"//".concat(n.domain.id,"/stores/").concat(t.storeId):"//".concat(n.domain.id):"".concat(n.previewWebsiteUrl,"/restaurants/").concat(t.restaurantId,"/stores/").concat(t.storeId)},m=function(e){(0,s.Z)(t,e);var r=(0,o.Z)(t);function t(){var e;return(0,n.Z)(this,t),(e=r.apply(this,arguments)).getBackgroundImage=function(){var r=e.props.restaurantWebsiteProps.backgroundImage;return r||{id:"default-store-selector-background-image",path:c.N33.images.defaults.StoreSelectorBackgroundImage()}},e.renderImage=function(){var r=e.props.restaurantWebsiteProps,t=r.serverConfig.imageServerUrl,n=r.serverConfig.imgixUrl;return(0,i.jsx)(f.d,{image:e.getBackgroundImage(),aspectRatio:c.oM5.vertical,serverUrl:t,fallbackUrl:n})},e.renderOverlay=function(){var r=e.props.restaurantWebsiteProps,t=r.serverConfig.imageServerUrl,n=r.serverConfig.imgixUrl;return(0,i.jsx)("div",{className:"overlay",children:(0,i.jsx)(f.d,{image:r.restaurant.logo,aspectRatio:c.oM5.square,serverUrl:t,fallbackUrl:n})})},e.renderRestaurantStoreLocator=function(){var r=e.props.restaurantWebsiteProps,t=r.serverConfig.imageServerUrl,n=r.serverConfig.imgixUrl,s=r.restaurant,a=e.getStoresFromStoreSelectorStoreIds(r.storeSelectorStoreIds,r.stores);return(0,i.jsxs)("div",{className:"restaurant-store-locator",children:[(0,i.jsxs)("div",{className:"info",children:[(0,i.jsx)(f.d,{image:s.logo,aspectRatio:c.oM5.square,serverUrl:t,fallbackUrl:n}),(0,i.jsx)("h2",{children:s.name}),(0,i.jsx)("p",{children:"SELECT A LOCATION"})]}),(0,i.jsx)("ul",{className:"stores",children:a.map((function(r){return r?e.renderStore({store:r}):null}))})]})},e.getStoresFromStoreSelectorStoreIds=function(e,r){if(!e||!e.length)return r;var t=e.reduce((function(e,t){var n=r.find((function(e){return e.id===t}));return n&amp;&amp;(e=(0,a.Z)(e).concat([n])),e}),[]);return t.length?t:r},e.renderStore=function(r){var t=r.store,n=e.props.restaurantWebsiteProps,s=n.hostProps,a=n.restaurant,o=p({hasMultipleStores:!0,storeKey:{restaurantId:a.id,storeId:t.id},hostProps:s});return(0,i.jsx)("li",{className:"store",children:(0,i.jsxs)("a",{className:"store-link",href:o,children:[(0,i.jsx)("p",{className:"name",children:t.name}),(0,i.jsx)("address",{children:"".concat(t.address.line1,", ").concat(t.address.suburb," ").concat(t.address.postcode)})]})},t.id)},e}return t.prototype.render=function(){var e=this.props.restaurantWebsiteProps,r=e.restaurant,t=e.serverConfig,n=e.facebookDomainVerification,s=e.customCssVersionPath;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(u(),{children:[(0,i.jsx)("title",{children:r.name}),(0,i.jsx)("link",{rel:"icon",type:"image/png",href:"".concat(t.imageServerUrl,"/").concat(r.logo.path,"?width=32&amp;aspectRatio=square")}),(0,i.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),n&amp;&amp;(0,i.jsx)("meta",{name:"facebook-domain-verification",content:n})]}),(0,i.jsxs)("div",{className:"restaurant-website-page",children:[this.renderImage(),this.renderOverlay(),this.renderRestaurantStoreLocator()]}),s&amp;&amp;(0,i.jsx)("link",{rel:"stylesheet",href:s})]})},t}(d.Component),h=m},5053:function(e,r,t){"use strict";t.d(r,{o:function(){return g}});var n=t(4065),s=t(6538),a=t(4029),o=t(264),i=t(9231),c=t(8319),l=t(8409),u=t(2569),d=function(e){return(0,o.jsx)("div",{className:"collection-type-schedule",children:(0,o.jsx)("ul",{className:"weekly-hours",children:c.dUp.map((function(r,t){return f((0,u.Z)((0,l.Z)({},e),{dayOfWeek:r,index:t}))}))})})},f=function(e){var r=e.store,t=e.weeklyHours,n=e.dayOfWeek,s=e.index,a=t[n];return(0,o.jsxs)("li",{className:"daily-hours",children:[(0,o.jsx)("span",{className:"day-of-week",children:c.IHq[n]}),(0,o.jsx)("ul",{className:"day-intervals",children:p({store:r,dailyHours:a})})]},s)},p=function(e){var r=e.store,t=e.dailyHours,n=t.dayIntervals,s=t.availableAllDay;return s||!!n.length?s?(0,o.jsx)("li",{className:"day-interval",children:"All Day"}):(0,o.jsx)(o.Fragment,{children:n.map((function(e,t){var n=e.startTimeOfDay,s=e.endTimeOfDay,a=c.FwW.fromTimeOfDay({timeOfDay:n,timezone:r.timezone}),i=c.FwW.fromTimeOfDay({timeOfDay:s,timezone:r.timezone});return(0,o.jsx)("li",{className:"day-interval",children:"".concat(a," - ").concat(i)},t)}))}):(0,o.jsx)("li",{className:"day-interval",children:"Closed"})},m=t(1762),h=function(e){var r=e.store,t=e.storeTradingHours,n=e.tableBookingSettings,s=c.nxX.filter((function(e){return(0,c.puT)({collectionType:e,store:r,tableBookingSettings:n})}));if(!s.length)return null;var a=(0,i.useState)(s[0]),l=a[0],u=a[1],f=t[l];return(0,o.jsx)("section",{className:"section trading-hours",children:(0,o.jsxs)("div",{className:"content",children:[(0,o.jsx)("h1",{className:"page-title",children:"Trading Hours"}),(0,o.jsx)(m.V,{selectedCollectionType:l,onSelectCollectionType:u,availableCollectionTypes:s}),(0,o.jsx)(d,{store:r,weeklyHours:f})]})})},g=function(e){(0,s.Z)(t,e);var r=(0,a.Z)(t);function t(){return(0,n.Z)(this,t),r.apply(this,arguments)}var i=t.prototype;return i.storeWebsiteProps=function(){return this.props.storeWebsiteProps},i.getAdditionalClassNames=function(){return"trading-hours-page"},i.renderBody=function(){var e=this.props.storeWebsiteProps;return(0,o.jsx)(h,{store:e.store,storeTradingHours:e.storeTradingHours,tableBookingSettings:e.tableBookingSettings})},t}(t(3392).u)},1370:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSP:function(){return c},default:function(){return l}});var n=t(264),s=t(5947),a=t(2431),o=t(7526),i=t(5053),c=!0;function l(e){switch(e.type){case s.q.restaurant:return(0,n.jsx)(o.Z,{restaurantWebsiteProps:e});case s.q.store:return(0,n.jsx)(i.o,{storeWebsiteProps:e});case s.q.error:return(0,n.jsx)(a.Z,{errorWebsiteProps:e});default:throw new Error("Unhandled type.")}}},1762:function(e,r,t){"use strict";t.d(r,{V:function(){return a}});var n=t(264),s=t(8319),a=(t(9231),function(e){var r=e.selectedCollectionType,t=e.availableCollectionTypes,a=e.onSelectCollectionType;return(0,n.jsx)("ul",{className:"collection-types",children:t.map((function(e,t){return(0,n.jsx)("li",{className:e,children:(0,n.jsx)("button",{onClick:function(){return a(e)},className:"button collection-type-button ".concat(r===e?"selected":""),children:s.XTd[e]})},t)}))})})}},function(e){e.O(0,[452,373,154,46,392,774,888,179],(function(){return r=6192,e(e.s=r);var r}));var r=e.O();_N_E=r}]);</pre></body></html>