1(globalThis.webpackChunk_N_E=globalThis.webpackChunk_N_E||[]).push([[41325],{62049:function(e,t,n){"use strict";n.d(t,{Q:function(){return d}});var o=n(2356),r=n(57953),i=n(54176),s=n(33835),l=n(57521),a=n(63632),c=n(38606),u={adDisclaimerText:(0,r.iv)({alignItems:"center",backgroundColor:l.E.grey1,img:{display:"block"}},""),container:(0,r.iv)((0,o.Z)({alignItems:"center",backgroundColor:l.E.grey6,display:"flex",flexDirection:"column",height:380,justifyContent:"center",minWidth:"300px",padding:0,position:"relative",textAlign:"center",zIndex:91},(0,s.$Q)(s.SK.md),{height:270}),"")},d=function(e){var t=e.id,n=e.adSlotName,o=void 0===n?a.xJ.HERO:n,s=e.bgColorOverride,l=(0,i.useRef)(void 0);return(0,i.useEffect)((function(){return window.googletag&&window.googletag.cmd.push((function(){(0,a.hF)();var e=window.googletag.defineSlot(o,[[1500,350],[970,250],[728,90],[640,360],[320,50],[300,250]],t);if(e){var n=window.googletag.sizeMapping().addSize([1024,0],[[1500,350],[970,250],[728,90],[640,360]]).addSize([760,0],[[728,90],[640,360]]).addSize([0,0],[[320,50],[300,250]]).build();n&&e.defineSizeMapping(n),e.addService(window.googletag.pubads()),window.googletag.display(t),l.current=e}})),function(){l.current&&window.googletag.destroySlots([l.current])}}),[t,o]),(0,c.H)(l.current),(0,r.tZ)("div",{className:"content-ad",css:[u.container,s&&(0,r.iv)({backgroundColor:s},""),""],id:t})}},58283:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var o=n(71988),r=n(68171),i=n(47541),s=n(56805),l=n(57953),a=function(e){var t=e.adSlotName,n=e.category,a=e.data,c=e.entryIdsToIgnore,u=e.onNext;if(!a)return null;var d=a?a.pages.reduce((function(e,t){return e+t.feedItems.length}),0):0,p=a.pages[a.pages.length-1],h=0;return(0,l.tZ)(o.Z,{dataLength:d,hasMore:p.feedItems.length>0,loader:(0,l.tZ)(s.C,null),next:function(){return u()},style:{alignItems:"center",display:"flex",flexDirection:"column",overflowX:"hidden"}},a.pages.map((function(e,o){return e.feedItems.map((function(e,s){var a,u,d;return c&&c.includes((null===(a=e.entry)||void 0===a?void 0:a.sys.id)||"")?null:((null===(u=e.item)||void 0===u?void 0:u.type)===r.uI.AD&&(h+=1),(0,l.tZ)(i.B,{key:(null===(d=e.entry)||void 0===d?void 0:d.sys.id)||"feed-item-".concat(o,"-").concat(s),adIndex:h,adSlotName:t,category:n,feedItem:e}))}))})))}},66308:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var o=n(684),r=n.n(o),i=n(55650),s=n(25735),l=function(e){var t=e.additionalParams,n=void 0===t?"":t,o=e.feedResponse,l=e.key,a=void 0===l?"default_feed":l,c=(0,s.useInfiniteQuery)(a,function(){var e=(0,i.Z)(r().mark((function e(t){var o,i,s,l,a,c,u,d;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=t.pageParam,a=null!==(o=null===(i=window)||void 0===i||null===(s=i.location)||void 0===s?void 0:s.origin)&&void 0!==o?o:"",c=l?"?date=".concat(l.createdAt,"&totalItems=").concat(l.totalItems).concat(n):"",u="".concat(a,"/api/feed/").concat(c),e.next=6,fetch(u);case 6:return e.next=8,e.sent.text();case 8:return d=e.sent,e.abrupt("return",JSON.parse(d));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{enabled:!o,getNextPageParam:function(e,t){return{createdAt:e.lastItemDate,totalItems:t.reduce((function(e,t){return e+t.feedItems.length}),0)}},initialData:o?{pageParams:[void 0],pages:[{feedItems:o.feedItems,lastItemDate:o.lastItemDate}]}:void 0,staleTime:6e5});return[c.data,c.fetchNextPage,c.isFetchingNextPage]}},62970:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});var o=n(54176),r=function(e){(0,o.useEffect)((function(){window.permutive&&window.permutive.addon?window.permutive.addon("web",{page:e||{}}):(window.permutiveQueue||(window.permutiveQueue=[]),window.permutiveQueue.push(e||{}))}))}},12233:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return g},FEED_WIDTH:function(){return m},default:function(){return w}});var o=n(47982),r=n(57953),i=n(54176),s=n(63632),l=n(62049),a=n(40337),c=n(58283),u=n(87213),d=n(66308),p=n(62970),h=n(
157521),f=n(68419);var g=!0,m=600,v={container:{name:"1ijyuvx",styles:"display:flex;justify-content:center;margin:0 auto;padding:16px 0"},page:(0,r.iv)({backgroundColor:h.E.grey1,width:"100%"},""),title:{name:"1iqma2u",styles:"font-size:50px;font-weight:900;letter-spacing:-0.07em;margin:0"}};function w(e){var t=e.category,n=e.feedResponse,h=e.showAds,g=t.fields.slug,m=(0,d.s)({additionalParams:"&verticalSlug=".concat(g),feedResponse:n,key:"feed-".concat(g)}),w=(0,o.Z)(m,2),y=w[0],T=w[1],E=(0,s.Zr)(g);return(0,p.J)(),y?(0,r.tZ)(i.Fragment,null,(0,r.tZ)(a.Ew,{isSherwoodNews:!0,ogType:"website",section:f.E.Category,tags:[t.fields.title],title:t.fields.title}),(0,r.tZ)("div",{css:v.page},h&&(0,r.tZ)(l.Q,{adSlotName:E,id:"".concat(g,"-hero")}),(0,r.tZ)(u.J,{primaryCategory:t}),(0,r.tZ)("div",{css:v.container},(0,r.tZ)(c.U,{category:g,data:y,onNext:T})))):null}},68419:function(e,t,n){"use strict";var o,r;n.d(t,{E:function(){return o},h:function(){return r}}),function(e){e.Snacks="Snacks",e.Post="Post",e.Category="Category",e.Author="Author",e.Quiz="Quiz",e.Sponsored="Sponsored"}(o||(o={})),function(e){e.Weekly="weekly",e.Daily="daily"}(r||(r={}))},74611:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[vertical-slug]",function(){return n(12233)}])},71988:function(e,t,n){"use strict";var o=n(54176),r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var i=function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};var s="Pixel",l="Percent",a={unit:l,value:.8};function c(e){return"number"===typeof e?{unit:l,value:100*e}:"string"===typeof e?e.match(/^(\d*(\.\d+)?)px$/)?{unit:s,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:l,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),a):(console.warn("scrollThreshold should be string or number"),a)}var u=function(e){function t(t){var n=e.call(this,t)||this;return n.lastScrollTop=0,n.actionTriggered=!1,n.startY=0,n.currentY=0,n.dragging=!1,n.maxPullDownDistance=0,n.getScrollableTarget=function(){return n.props.scrollableTarget instanceof HTMLElement?n.props.scrollableTarget:"string"===typeof n.props.scrollableTarget?document.getElementById(n.props.scrollableTarget):(null===n.props.scrollableTarget&&console.warn("You are trying to pass scrollableTarget but it is null. This might\n happen because the element may not have been added to DOM yet.\n See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.\n "),null)},n.onStart=function(e){n.lastScrollTop||(n.dragging=!0,e instanceof MouseEvent?n.startY=e.pageY:e instanceof TouchEvent&&(n.startY=e.touches[0].pageY),n.currentY=n.startY,n._infScroll&&(n._infScroll.style.willChange="transform",n._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},n.onMove=function(e){n.dragging&&(e instanceof MouseEvent?n.currentY=e.pageY:e instanceof TouchEvent&&(n.currentY=e.touches[0].pageY),n.currentY<n.startY||(n.currentY-n.startY>=Number(n.props.pullDownToRefreshThreshold)&&n.setState({pullToRefreshThresholdBreached:!0}),n.currentY-n.startY>1.5*n.maxPullDownDistance||n._infScroll&&(n._infScroll.style.overflow="visible",n._infScroll.style.transform="translate3d(0px, "+(n.currentY-n.startY)+"px, 0px)")))},n.onEnd=function(){n.startY=0,n.currentY=0,n.dragging=!1,n.state.pullToRefreshThresholdBreached&&(n.props.refreshFunction&&n.props.refreshFunction(),n.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame((function(){n._infScroll&&(n._infScroll.style.overflow="auto",n._infScroll.style.transform="none",n._infScroll.style.willChange="none")}))},n.onScrollListener=function(e){"function"===typeof n.props.onScroll&&setTimeout((function(){return n.props.onScroll&&n.props.onScroll(e)}),0);var t=n.props.height||n._scrollableNode?e.target:document.documentElement.scrollTop?document.documentElement:document.body;n.actionTriggered||((n.props.inverse?n.isElementAtTop(t,n.props.scrollThreshold):n.isElementAtBottom(t,n.props.scrollThreshold))&&n.props.hasMore&&(n.actionTriggered=!0,n.setState({showLoader:!0}),n.props.next&&n.props.next()),n.lastScrollTop=t.scrollTop)},n.state={showLoader:!1,pullToRefreshThresholdBreached:!1},n.throttledOnScrollListener=function(e,t,n,o){var r,i=!1,s=0;function l(){r&&clearTimeout(r)}function a(){var a=this,c=Date.now()-s,u=arguments;function d(){s=Date.now(),n.apply(a,u)}function p(){r=void 0}i||(o&&!r&&d(),l(),void 0===o&&c>e?d():!0!==t&&(r=setTimeout(o?p:d,void 0===o?e-c:e)))}return"boolean"!==typeof t&&(o=n,n=t,t=void 0),a.cancel=function(){l(),i=!0},a}(150,n.onScrollListener).bind(n),n.onStart=n.onStart.bind(n),n.onMove=n.onMove.bind(n),n.onEnd=n.onEnd.bind(n),n}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){if("undefined"===typeof this.props.dataLength)throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');
1if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"===typeof this.props.initialScrollY&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),"function"!==typeof this.props.refreshFunction))throw new Error('Mandatory prop "refreshFunction" missing.\n Pull Down To Refresh functionality will not work\n as expected. Check README.md for usage\'')},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.props.dataLength!==e.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.prototype.isElementAtTop=function(e,t){void 0===t&&(t=.8);var n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,o=c(t);return o.unit===s?e.scrollTop<=o.value+n-e.scrollHeight+1||0===e.scrollTop:e.scrollTop<=o.value/100+n-e.scrollHeight+1||0===e.scrollTop},t.prototype.isElementAtBottom=function(e,t){void 0===t&&(t=.8);var n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,o=c(t);return o.unit===s?e.scrollTop+n>=e.scrollHeight-o.value:e.scrollTop+n>=o.value/100*e.scrollHeight},t.prototype.render=function(){var e=this,t=i({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),n=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),r=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return o.createElement("div",{style:r,className:"infinite-scroll-component__outerdiv"},o.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(t){return e._infScroll=t},style:t},this.props.pullDownToRefresh&&o.createElement("div",{style:{position:"relative"},ref:function(t){return e._pullDown=t}},o.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!n&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(o.Component);t.Z=u}},function(e){e.O(0,[75092,3051,21066,15392,80336,83338,18503,31012,69514,88515,14758,87213,15317,60550,21509,92888,40179],(function(){return t=74611,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.