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]="dca0d356-2d3f-4e55-838a-fbe5bf9dba15",e._sentryDebugIdIdentifier="sentry-dbid-dca0d356-2d3f-4e55-838a-fbe5bf9dba15")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2625],{24983:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/home/[returnUrl]",function(){return s(57160)}])},57160:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>L});var n=s(6029),a=s(75155),o=s(52404),i=s(92726),l=s(35197),r=s(56314),d=s(72091),u=s(6688),c=s(46232),f=s(4308),p=s(99236),b=s(95669),h=s.n(b),y=s(81278),g=s(55729),m=s(9289),k=s(66767),x=s(32195),w=s(90944),_=s(95135),v=s(57168),j=s(8013),I=s(11617);let E=g.forwardRef(function(e,t){let s,i=(0,a.c)(3);return i[0]!==e||i[1]!==t?(s=(0,n.jsx)(o.A,{direction:"up",ref:t,...e}),i[0]=e,i[1]=t,i[2]=s):s=i[2],s}),L=e=>{var t,s,a;let{articles:o,businesses:b,defaultParams:L}=e,{orderBy:C,postCode:O,radius:S,category:A,pageSize:T,setPageSize:B,location:D}=(0,k.sq)(L),[M,N]=(0,x.A)("bikebook-welcome-message-open",!0),W=(0,j.jL)(),[z,F]=(0,g.useState)(null!=(s=null==b?void 0:b.length)?s:0),[P,q]=(0,g.useState)(!1),[G,J]=(0,g.useState)(!1);(0,y.useRouter)();let{t:K}=(0,w.WD)(),R=(0,i.A)(e=>e.breakpoints.down("sm")),X="https://bikebook.co.uk",H=(0,g.useMemo)(()=>(0,I.Jn)({baseUrl:X}),[X]),U=(0,g.useMemo)(()=>(0,I.LS)(X),[X]),{data:V,isPending:$,isFetching:Q,refetch:Y,isStale:Z}=(0,m.I2)({orderBy:C,postcode:null!=O?O:"",radius:S,pageNumber:1,pageSize:T,location:D,category:A},{query:{staleTime:1/0,gcTime:1/0,placeholderData:f.rX,enabled:P,queryKey:["search-results",C,O,S,A,T,D],refetchOnWindowFocus:!1},axios:{baseURL:"https://search-api.bikebook.co.uk"}});(0,g.useLayoutEffect)(()=>{Q||J(!1)},[Q]),(0,g.useLayoutEffect)(()=>{q(!0)},[]),(0,g.useEffect)(()=>{W((0,v.$z)(Q))},[Q]),(0,g.useEffect)(()=>{var e;(null==V||null==(e=V.data)?void 0:e.totalItemCount)!=null&&F(V.data.totalItemCount)},[V]);let ee=async()=>{J(!0),B(T+10)};return(0,g.useEffect)(()=>{var e;(null==V||null==(e=V.data)?void 0:e.totalItemCount)&&_.A.CaptureEvent("search_made",{total_businesses:V.data.totalItemCount,postcode:O,radius:S,category:A,orderBy:C,location:D})},[D,O,S,A,C]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(h(),{children:[(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(H)}}),(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(U)}})]}),(0,n.jsxs)(l.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,n.jsx)(p.Ay,{title:K("vocab.homeTitle","Find local bicycle mechanics near you")+" | Bikebook",articles:o,businesses:null!=(a=null==V||null==(t=V.data)?void 0:t.data)?a:[],isLoadingBusinesses:Q||!P,setPageSize:B,totalBusinesses:z,defaultParams:L,loadMoreData:ee,isLoadingMoreData:G}),(0,n.jsx)(r.A,{open:R&&M,onClose:()=>{N(!1)},TransitionComponent:E,fullWidth:!0,maxWidth:"xs",children:(0,n.jsxs)(d.A,{spacing:2,p:2.5,sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,n.jsx)("img",{src:"https://cdn.bikebook.co.uk/branding/bikebook/LOGO/SVG/BIKEBOOK%20LOGO%202024-01.svg",width:250,height:35,style:{objectFit:"cover"}}),(0,n.jsx)(u.A,{variant:"body2",align:"center",children:K("home.welcomeMessage","Bikebook is the easiest, fastest and most transparent way to have your bike serviced. We allow for an instant comparison of services, reviews and prices from mechanics in your area!")}),(0,n.jsx)(c.A,{fullWidth:!0,variant:"contained",size:"large",onClick:()=>{N(!1)},children:K("home.welcomeMessageButton","Let's go!")})]})})]})]})}}},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=24983)),_N_E=e.O()}]); 2//# sourceMappingURL=[returnUrl]-9e86a850234d3e0c.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.