PageSourceSearch

https://40scafe.com.au/_next/static/chunks/pages/restaurants/[rest…/trading-hours-bfff5f08f1836f2e.js

js 40scafe.com.au collected 2026-10-08 21:23:24 UTC 3,325 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[106],{2718:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/restaurants/[restaurantId]/stores/[storeId]/trading-hours",function(){return n(1934)}])},7436:function(e,t,n){"use strict";n.d(t,{o:function(){return m}});var r=n(4065),s=n(6538),o=n(4029),i=n(264),a=n(9231),l=n(5165),c=n(8409),u=n(2569),d=function(e){return(0,i.jsx)("div",{className:"collection-type-schedule",children:(0,i.jsx)("ul",{className:"weekly-hours",children:l.dUp.map((function(t,n){return f((0,u.Z)((0,c.Z)({},e),{dayOfWeek:t,index:n}))}))})})},f=function(e){var t=e.store,n=e.weeklyHours,r=e.dayOfWeek,s=e.index,o=n[r];return(0,i.jsxs)("li",{className:"daily-hours",children:[(0,i.jsx)("span",{className:"day-of-week",children:l.IHq[r]}),(0,i.jsx)("ul",{className:"day-intervals",children:p({store:t,dailyHours:o})})]},s)},p=function(e){var t=e.store,n=e.dailyHours,r=n.dayIntervals,s=n.availableAllDay;return s||!!r.length?s?(0,i.jsx)("li",{className:"day-interval",children:"All Day"}):(0,i.jsx)(i.Fragment,{children:r.map((function(e,n){var r=e.startTimeOfDay,s=e.endTimeOfDay,o=l.FwW.fromTimeOfDay({timeOfDay:r,timezone:t.timezone}),a=l.FwW.fromTimeOfDay({timeOfDay:s,timezone:t.timezone});return(0,i.jsx)("li",{className:"day-interval",children:"".concat(o," - ").concat(a)},n)}))}):(0,i.jsx)("li",{className:"day-interval",children:"Closed"})},y=n(9236),h=function(e){var t=e.store,n=e.storeTradingHours,r=e.tableBookingSettings,s=l.nxX.filter((function(e){return(0,l.puT)({collectionType:e,store:t,tableBookingSettings:r})}));if(!s.length)return null;var o=(0,a.useState)(s[0]),c=o[0],u=o[1],f=n[c];return(0,i.jsx)("section",{className:"section trading-hours",children:(0,i.jsxs)("div",{className:"content",children:[(0,i.jsx)("h1",{className:"page-title",children:"Trading Hours"}),(0,i.jsx)(y.V,{selectedCollectionType:c,onSelectCollectionType:u,availableCollectionTypes:s}),(0,i.jsx)(d,{store:t,weeklyHours:f})]})})},m=function(e){(0,s.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}var a=n.prototype;return a.storeWebsiteProps=function(){return this.props.storeWebsiteProps},a.getAdditionalClassNames=function(){return"trading-hours-page"},a.renderBody=function(){var e=this.props.storeWebsiteProps;return(0,i.jsx)(h,{store:e.store,storeTradingHours:e.storeTradingHours,tableBookingSettings:e.tableBookingSettings})},n}(n(6981).u)},1934:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return a},default:function(){return l}});var r=n(264),s=n(5260),o=n(701),i=n(7436),a=!0;function l(e){switch(e.type){case s.q.store:return(0,r.jsx)(i.o,{storeWebsiteProps:e});case s.q.error:return(0,r.jsx)(o.Z,{errorWebsiteProps:e})}}},9236:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(264),s=n(5165),o=(n(9231),function(e){var t=e.selectedCollectionType,n=e.availableCollectionTypes,o=e.onSelectCollectionType;return(0,r.jsx)("ul",{className:"collection-types",children:n.map((function(e,n){return(0,r.jsx)("li",{className:e,children:(0,r.jsx)("button",{onClick:function(){return o(e)},className:"button collection-type-button ".concat(t===e?"selected":""),children:s.XTd[e]})},n)}))})})}},function(e){e.O(0,[452,816,306,388,981,774,888,179],(function(){return t=2718,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.