1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="87db5364-7d11-4548-b4dc-217781542465",e._sentryDebugIdIdentifier="sentry-dbid-87db5364-7d11-4548-b4dc-217781542465")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[950],{1090:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/search/in/[location]",function(){return n(64670)}])},64670:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSG:()=>h,default:()=>_});var a=n(6029),s=n(35197),o=n(4308),i=n(45162),l=n(99236),d=n(95669),u=n.n(d),r=n(81278),c=n(55729),p=n(9289),b=n(66767),f=n(90944),y=n(11617),h=!0;let _=e=>{var t,n,d;let{articles:h,businesses:_,location:g}=e,k=(0,r.useRouter)(),{t:w}=(0,f.WD)(),{orderBy:I,category:m,pageSize:x,setPageSize:v}=(0,b.sq)(),[D,E]=(0,c.useState)(null!=(t=null==_?void 0:_.totalItemCount)?t:0),[N,S]=(0,c.useState)(!1),{data:L,isPending:j,isFetching:C,refetch:P,isStale:T}=(0,p.I2)({orderBy:I,searchIn:g,pageNumber:1,pageSize:x,category:null!=m?m:""},{query:{initialData:e=>{if(!(k.isReady&&20!=x))return{data:_}},placeholderData:o.rX,enabled:k.isReady&&20!=x,queryKey:["search-results",I,m,g,x],refetchOnWindowFocus:!1}});(0,c.useLayoutEffect)(()=>{C||S(!1)},[C]),(0,c.useEffect)(()=>{var e;(null==L||null==(e=L.data)?void 0:e.totalItemCount)&&E(L.data.totalItemCount)},[L]);let B=async()=>{S(!0),v(x+10)},M="https://bikebook.co.uk",O="".concat(M).concat(k.asPath),q=null==L?void 0:L.data,R=null!=(d=null!=(n=null==q?void 0:q.data)?n:null==_?void 0:_.data)?d:[],X=(0,c.useMemo)(()=>(0,y.n7)({businesses:R,baseUrl:M,pageUrl:O,name:"".concat(w("search.titleIn","Local bike shops in")," ").concat(g)}),[R,M,O,w,g]);return(0,a.jsxs)(s.A,{sx:e=>({position:"relative",top:{xs:"225px",sm:"230px",md:"270px",lg:"270px"},[e.breakpoints.down(444)]:{top:"240px"}}),id:"main-container",children:[(0,a.jsx)(u(),{children:(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(X)}})}),(0,a.jsx)(l.Ay,{title:"".concat(w("search.titleIn","Local bike shops in")," ").concat((0,i.D)(null!=g?g:"")," | Bikebook"),articles:h,businesses:R,isLoadingBusinesses:C,setPageSize:v,totalBusinesses:D,defaultParams:{orderBy:I,category:m,pageSize:x},loadMoreData:B,isLoadingMoreData:N})]})}}},e=>{e.O(0,[3225,2552,6038,8550,1474,8600,9664,3652,3761,1909,737,9610,4454,512,8149,6282,5506,1098,8016,7775,399,3054,299,4148,5328,6531,9049,815,2852,3506,5900,2553,6192,9236,6593,636,8792],()=>e(e.s=1090)),_N_E=e.O()}]); 2//# sourceMappingURL=[location]-364783df96f6d97c.js.map
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.