PageSourceSearch

https://bikebook.co.uk/_next/static/chunks/pages/mechanic/[mechanicSlug]-ca742ff155162dd6.js

js bikebook.co.uk collected 2026-09-24 09:51:09 UTC 17,079 bytes, 2 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},i=(new e.Error).stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="19ef1c91-1da6-44d9-80af-867b3e2f75e8",e._sentryDebugIdIdentifier="sentry-dbid-19ef1c91-1da6-44d9-80af-867b3e2f75e8")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9036],{19903:(e,i,o)=>{"use strict";o.d(i,{T:()=>r});var n=o(55729),l=o(90944),t=o(75010);function r(e){var i;let{t:o}=(0,l.WD)(),r=(null==e||null==(i=e.settings)?void 0:i.useMailInCollectionCopy)===!0,s=t.q.GetSingularBusinessCategoryName(!0,e);return(0,n.useMemo)(()=>r?{mailIn:!0,flowLabel:o("booking.mailIn.flowLabel","Mail-in"),collectionsTabLabel:o("booking.mailIn.collectionsTab","Mail-in"),collectionTooltip:o("booking.mailIn.collectionTooltip","We will send you packaging to ship your item; we return it after service."),serviceCollectionOnly:o("booking.mailIn.service.collectionOnly","Mail-in and return only"),serviceCollectionOnlyInfo:o("booking.mailIn.service.collectionOnlyInfo","This workshop only offers mail-in service. They will send you packaging to ship your items, then return them after the work is done."),serviceCollectionOrDropoff:o("booking.mailIn.service.collectionOrDropoff","Mail-in or drop-off available"),serviceCollectionOrDropoffInfo:o("booking.mailIn.service.collectionOrDropoffInfo","You can mail items in for service or drop them off at the workshop."),collectionOnlyPickerMessage:o("booking.mailIn.collectionOnly","This mechanic only offers mail-in service. They will send you packaging to ship your {businessCategory}, then return it when the work is done.",{businessCategory:s}),collectReturnLine:o("booking.mailIn.collectReturn","We'll send packaging to ship your {businessCategory}",{businessCategory:s}),selectBookingTypeSubtitle:o("booking.mailIn.type.subtitle","Choose mail-in or drop-off — pick the option that suits you."),whereCollectTitle:o("booking.mailIn.collection.title","Where should we send your mail-in kit?"),selectCollectionDateTitle:o("booking.mailIn.collectionDateAndTime.title","Select a date and time to begin your mail-in order"),confirmTypeCollection:o("booking.mailIn.confirm.type.collection","Mail-in | We will send you a box to ship your {businessCategory} and return them after service.",{businessCategory:s}),confirmCollectionTitle:o("booking.mailIn.confirm.collection.title","Mail-in details"),confirmCollectionDesc:o("booking.mailIn.confirm.collection.desc","We will arrange mail-in collection of your item(s) on"),confirmedTypeCollection:o("booking.mailIn.type.collection","Mail-in"),dueForCollection:o("payment.mailIn.dueForCollection","Due today for mail-in"),bookNowCollectionSuffix:o("booking.mailIn.flowLabel","Mail-in")}:{mailIn:!1,flowLabel:o("booking.collection","Collection"),collectionsTabLabel:o("booking.collections","Collections"),collectionTooltip:o("booking.collectionTooltip","The mechanic will collect and return your bike."),serviceCollectionOnly:o("booking.service.collectionOnly","Collection and return only"),serviceCollectionOnlyInfo:o("booking.service.collectionOnlyInfo","This workshop only offers collection and return services. This means they will come and collect your bike before the service, and then return it to you once they are done."),serviceCollectionOrDropoff:o("booking.service.collectionOrDropoff","Collection or drop-off available"),serviceCollectionOrDropoffInfo:o("booking.service.collectionOrDropoffInfo","This workshop offers both collection and return services, as well as drop-offs. This means you can either drop-off your bike at the workshop, or they can come and collect it from you."),collectionOnlyPickerMessage:o("booking.collectionOnly","This mechanic only offers collection services. This means they will come and collect your {businessCategory} and then return it once the work has been done.",{businessCategory:s}),collectReturnLine:o("booking.collectReturn","We'll collect & return your {businessCategory}",{businessCategory:s}),selectBookingTypeSubtitle:o("booking.type.subtitle","We offer two types of bookings. Choose the one that suits you best."),whereCollectTitle:o("booking.collection.title","Where should we collect from?"),selectCollectionDateTitle:o("booking.collectionDateAndTime.title","Select a collection date and time"),confirmTypeCollection:o("booking.confirm.type.collection","Collection | We will collect and return your {businessCategory}.",{businessCategory:s}),confirmCollectionTitle:o("booking.confirm.collection.title","Collection details"),confirmCollectionDesc:o("booking.confirm.collection.desc","We will come and collect your bike(s) on"),confirmedTypeCollection:o("booking.type.collection","Collection"),dueForCollection:o("payment.dueForCollection","Due today for collection"),bookNowCollectionSuffix:o("booking.collection","Collection")},[r,o,s])}},31642:(e,i,o)=>{"use strict";o.d(i,{A:()=>y});var n=o(6029),l=o(72091),t=o(35197),r=o(6688),s=o(98181),c=o(13918),a=o(39725),d=o(57391),u=o(8013),p=o(90944),g=o(59550),h=o(75010),f=
1o(19903);let y=e=>{let{business:i,small:o=!1,forceColumn:y=!1}=e,m=(0,u.jL)(),{t:b}=(0,p.WD)(),x=(0,f.T)(i),{bookingPreference:v}=(0,u.GV)(e=>e.booking.values),k=e=>{m((0,d.iP)(e))};if(null==i)return null;if("Location"==i.businessType&&!(null==(w=i.availability)?void 0:w.collectionEnabled))return(0,n.jsxs)(l.A,{spacing:2,direction:"row",sx:{alignItems:"center",display:"flex",pt:1},children:[(0,n.jsx)(t.A,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsx)(c.f,{size:40,color:"#212B36",weight:"regular"})}),(0,n.jsx)(t.A,{children:(0,n.jsx)(r.A,{variant:"subtitle1",sx:e=>({[e.breakpoints.down(500)]:{fontSize:"14px!important"}}),children:b("booking.inStoreOnly","This mechanic only offers in-store services so you'll need to drop-off and pick up your bike.")})})]});if("Location"==i.businessType&&!(null==(C=i.availability)?void 0:C.dropOffsEnabled))return(0,n.jsxs)(l.A,{spacing:2,direction:"row",sx:{alignItems:"center",display:"flex",pt:1},children:[(0,n.jsx)(t.A,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsx)(a.e,{size:40,color:"#212B36",weight:"regular"})}),(0,n.jsx)(t.A,{children:(0,n.jsx)(r.A,{variant:"subtitle1",sx:e=>({[e.breakpoints.down(500)]:{fontSize:"14px!important"}}),children:x.collectionOnlyPickerMessage})})]});if("Mobile"==i.businessType)return(0,n.jsxs)(l.A,{spacing:2,direction:"row",sx:{alignItems:"center",display:"flex",pt:1},children:[(0,n.jsx)(t.A,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsx)(a.e,{size:40,color:"#212B36",weight:"regular"})}),(0,n.jsx)(t.A,{children:(0,n.jsx)(r.A,{variant:"subtitle1",sx:e=>({[e.breakpoints.down(500)]:{fontSize:"14px!important"}}),children:(null==(W=i.settings)?void 0:W.useBikeFitterCopy)?"This is a mobile service which means they'll come to you to fit your bike either at your home or take it and return it once the service is completed.":b("booking.mobileMechanic","This is a mobile mechanic which means they'll come to you to service your {businessCategory} either at your home or take it and return it once the service is completed.",{businessCategory:h.q.GetSingularBusinessCategoryName(!0,i)})})})]});var w,C,I,j,A,T,S,D,W,O,B,L,M=0,G=0;if((null==(I=i.availability)?void 0:I.collectionEnabled)&&(null==(j=i.availability)?void 0:j.collectionAreas)!=null&&(null==(T=i.availability)||null==(A=T.collectionAreas)?void 0:A.length)>0){let e=null!=(L=null==(B=i.availability)||null==(O=B.collectionAreas)?void 0:O.map(e=>{var i;return null!=(i=e.price)?i:0}))?L:[];M=Math.min(...e),G=Math.max(...e)}return(0,n.jsxs)(t.A,{sx:{display:"flex",flexDirection:y?"column":{xs:"column",sm:"row"},flexWrap:o?"":"wrap",gap:"8px"},children:[(0,n.jsx)(s.A,{onClick:()=>{k("collection")},sx:{flex:1,display:"flex",alignItems:"center",minWidth:o?"50%":"250px",border:"collection"==v?"2px solid  #212B36":"1px solid  #DDDDDD",p:o?.5:1.5,px:o?1:3,gap:1,borderRadius:"6px",justifyContent:"space-between"},children:(0,n.jsxs)(t.A,{sx:{display:"flex",alignItems:"center",gap:3},children:[(0,n.jsx)(t.A,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsx)(a.e,{size:32,color:"#212B36",weight:"regular"})}),(0,n.jsxs)(t.A,{children:[(0,n.jsxs)(r.A,{variant:"h6",color:"primary",sx:{fontWeight:"700",lineHeight:"20px",fontSize:"16px!important"},children:[(null==(S=i.settings)?void 0:S.useOnSiteWidgetCopy)?b("booking.onSite","On-Site"):x.flowLabel," ","(",(()=>{var e,o,n;return(null==(e=i.availability)?void 0:e.collectionAreas)==null||(null==(n=i.availability)||null==(o=n.collectionAreas)?void 0:o.length)==0?b("vocab.unavailable","Unavailable"):void 0===M||void 0===G?"":0===M&&0===G?b("vocab.FREE","FREE"):M===G?(0,g.TI)(M,!1,!1,i):"".concat((0,g.TI)(M,!1,!1,i)," - ").concat((0,g.TI)(G,!1,!1,i))})(),")"]}),!o&&(0,n.jsx)(r.A,{variant:"body2",color:"primary",sx:{fontSize:"14px!important"},children:(null==(D=i.settings)?void 0:D.useOnSiteWidgetCopy)?b("booking.onSiteDesc","We'll service your {businessCategory} on-site",{businessCategory:h.q.GetSingularBusinessCategoryName(!0,i)}):x.collectReturnLine})]})]})}),(0,n.jsx)(s.A,{onClick:()=>{k("bring-in")},sx:{flex:1,minWidth:o?"50%":"250px",display:"flex",alignItems:"center",border:"bring-in"==v?"2px solid  #212B36":"1px solid  #DDDDDD",p:o?.5:1.5,px:o?1:3,gap:1,borderRadius:"6px",justifyContent:"space-between"},children:(0,n.jsxs)(t.A,{sx:{display:"flex",alignItems:"center",gap:3},children:[(0,n.jsx)(t.A,{sx:{display:"flex",alignItems:"center"},children:(0,n.jsx)(c.f,{size:32,color:"#212B36",weight:"regular"})}),(0,n.jsxs)(t.A,{children:[(0,n.jsxs)(r.A,{variant:"h6",color:"primary",sx:{fontSize:"16px!important",fontWeight:"700",lineHeight:"20px"},children:[b("booking.dropOff","Drop-off")," ",b("booking.dropOffFee","(FREE)")]}),!o&&(0,n.jsx)(r.A,{variant:"body2",color:"primary",sx:{fontSize:"14px!important"},children:b("booking.dropOffPickup","You drop-off & pick up your {businessCategory}",{businessCategory:h.q.GetSingularBusinessCategoryName(!0,i)})})]})]})})]})}},83237:(e,i,o)=>{"use strict";o.d(i,{A:()=>u});var n=o(6029),l=o(75155);o(55729);var t=o(56121),r=o.n(t),s=o(4495),c=o(35197),a=o(6688);let d=(0,s.Ay)("div")(e=>{let{theme:i}=e;return{height:"100%",display:"flex",textAlign:"center",alignItems:"center",flexDirection:"column",justifyContent:"center",padding:i.spacing(8,2)}});function u(e){let i,o,t,r,s,u,p,g,h,f,y=(0,l.c)(20);y[0]!==e?({title:u,description:i,img:o,hideImage:r,icon:s,...t}
1=e,y[0]=e,y[1]=i,y[2]=o,y[3]=t,y[4]=r,y[5]=s,y[6]=u):(i=y[1],o=y[2],t=y[3],r=y[4],s=y[5],u=y[6]);let m=void 0!==r&&r,b=void 0===s?null:s;y[7]!==m||y[8]!==o?(p=!m&&(0,n.jsx)(c.A,{component:"img",alt:"empty content",src:o||"/static/illustrations/illustration_empty_content.svg",sx:{height:240,mb:3}}),y[7]=m,y[8]=o,y[9]=p):p=y[9];let x=b&&b;return y[10]!==u?(g=(0,n.jsx)(a.A,{variant:"h5",gutterBottom:!0,children:u}),y[10]=u,y[11]=g):g=y[11],y[12]!==i?(h=i&&(0,n.jsx)(a.A,{variant:"body2",sx:{color:"text.secondary"},children:i}),y[12]=i,y[13]=h):h=y[13],y[14]!==t||y[15]!==p||y[16]!==x||y[17]!==g||y[18]!==h?(f=(0,n.jsxs)(d,{...t,children:[p,x,g,h]}),y[14]=t,y[15]=p,y[16]=x,y[17]=g,y[18]=h,y[19]=f):f=y[19],f}u.propTypes={title:r().string.isRequired,img:r().string,description:r().string}},90448:(e,i,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/mechanic/[mechanicSlug]",function(){return o(36192)}])},97278:(e,i,o)=>{"use strict";o.d(i,{A:()=>G});var n=o(6029),l=o(88189),t=o(60712),r=o(69741),s=o(10926),c=o(35197),a=o(72091),d=o(82786);o(63860),o(38312);var u=o(4495),p=o(6688),g=o(83237),h=o(55729),f=o(22292),y=o(67871),m=o(27860),b=o(8013),x=o(49428),v=o(89025),k=o(83817),w=o.n(k),C=o(60427),I=o(27512),j=o(8524),A=o(90944),T=o(91509);let S={root:"".concat("ServicesWrapper","-root")},D=(0,u.Ay)("div")(e=>{let{theme:i}=e;return{["& .".concat(S.root)]:{"& .MuiAccordion-root":{boxShadow:"none!important"}}}}),W=(0,u.Ay)(r.A)(e=>{let{theme:i}=e;return{width:"100%",marginBottom:10,transition:i.transitions.create(["box-shadow","width"],{easing:i.transitions.easing.easeInOut,duration:i.transitions.duration.shorter}),"&.Mui-focused":{boxShadow:i.customShadows.z8},"& fieldset":{borderWidth:"1px !important"}}}),O=(0,u.Ay)(e=>(0,n.jsx)(f.A,{disableGutters:!0,elevation:0,square:!0,...e}))(e=>{let{theme:i}=e;return{marginBottom:2,boxShadow:"none!important","&:not(:last-child)":{borderBottom:0},"&:before":{display:"none"}}}),B=(0,u.Ay)(e=>(0,n.jsx)(y.A,{expandIcon:null,...e}))(e=>{let{theme:i}=e;return{backgroundColor:"#F4F6F8",borderRadius:4,display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"space-between",borderBottom:"none!important","& .MuiAccordionSummary-content":{marginLeft:"0px"},"&:hover":{backgroundColor:"rgb(244, 246, 248, 70%)"},[i.breakpoints.down("sm")]:{padding:"0 12px"}}}),L=(0,u.Ay)(m.A)(e=>{let{theme:i}=e;return{padding:"16px 0",borderTop:"none"}}),M=(e,i)=>null!=i&&!(i.length<=0)&&i.filter(i=>{var o;return i.serviceId==e.serviceId||(null==(o=i.service)?void 0:o.serviceId)==e.serviceId}).length>0,G=h.memo(e=>{let{openWhatsIncludedTrigger:i,selectedServiceOnChange:o,closeWhatsIncludedDrawer:r,selectedServices:u,restrictServiceGroupTypes:f=null,business:y,disableSearch:m=!1,maxHeight:k=400,disableSelection:w=!1,widgetContext:S=null}=e;(0,b.wA)();let{t:G}=(0,A.WD)(),[_,E]=(0,h.useState)(null),[R,z]=(0,h.useState)(null),N=0===(0,x.Z6)(y).length,[F,P]=(0,h.useState)({}),q="partner-portal"===S,H=["Bike Check up","Basic Service","Full Service","Assessment and Repair","Warranty Assessment"];var Y,X=null!=(Y=y.serviceGroups.filter(e=>e.enabled&&(null==f||f.includes(e.serviceGroupType))))?Y:[];return(0,n.jsxs)(D,{children:[!m&&(0,n.jsx)(W,{value:R,onChange:e=>{z(e.target.value)},placeholder:G("services.searchPlaceholder","Search for service..."),startAdornment:(0,n.jsx)(s.A,{position:"start",children:(0,n.jsx)(c.A,{component:t.In,icon:l.A,sx:{color:"text.disabled"}})})}),N?(0,n.jsx)(g.A,{title:G("services.noServices","No services found"),description:G("services.noServicesDesc","This mechanic has not added any services yet."),hideImage:!0,icon:(0,n.jsx)(I.z,{size:64,style:{marginBottom:"8px"}})}):(0,n.jsx)("div",{style:{maxHeight:k,overflowY:"auto"},children:X.map(e=>{let i="Ribble"===e.serviceGroupType;var l=e.services.filter(o=>!!(("ExternalAndInternal"==o.visibility||(null==f?void 0:f.includes(e.serviceGroupType)))&&(null==R||null!=o.name&&o.name.toLowerCase().includes(R.toLowerCase())||null!=o.description&&o.description.toLowerCase().includes(R.toLowerCase())))&&(!i||!!q||null!=o.name&&H.includes(o.name))).sort((e,i)=>e.order-i.order);return 0==l.length?null:1==X.length?(0,n.jsx)(a.A,{direction:"row",rowGap:2,columnGap:2,justifyContent:"center",flexWrap:"wrap",style:{paddingTop:0,width:"100%"},children:l.sort((e,i)=>e.order-i.order).map(e=>(0,n.jsx)(v.k,{large:!0,service:e,restrictWidth:!0,selected:M(e,u),ignoreLocalState:!0,selectedServiceChangeTrigger:o,openWhatsIncludedTrigger:e=>E(e),disableSelection:w,business:y}
1))}):(0,n.jsxs)(O,{expanded:F[e.serviceGroupId],onChange:()=>(e=>{P({...F,[e]:!F[e]})})(e.serviceGroupId),children:[(0,n.jsxs)(B,{style:{},children:[(0,n.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:[(0,n.jsx)(C.a,{weight:"bold",size:20,style:{marginRight:10,marginTop:0,transition:"100ms",transform:F[e.serviceGroupId]?"rotate(0deg)":"rotate(-90deg)"}}),(0,n.jsx)(p.A,{style:{fontWeight:"700"},children:(0,T.o6)(G,"services.groupCount","{name} ({count})",{name:e.name,count:l.length})})]}),!w&&(0,n.jsx)(d.A,{style:{backgroundColor:"rgba(145,158,171,0.8)",color:"white",fontWeight:400,pointerEvents:"none"},sx:{"& .MuiChip-label":{paddingLeft:"7px",lineHeight:"22px"}},label:(0,n.jsxs)("div",{style:{display:"flex"},children:[(0,n.jsx)("div",{style:{background:"white",borderRadius:"100px",width:20,height:20,color:"rgba(145,158,171,0.8)",marginRight:8,display:"flex",alignItems:"center",justifyContent:"center",marginTop:2},children:(0,n.jsx)("span",{style:{marginLeft:-1,fontWeight:"semi-bold"},children:null==l?void 0:l.filter(e=>null==u?void 0:u.some(i=>i.serviceId==e.serviceId)).length})}),(0,n.jsx)("span",{children:G("services.itemsSelected","Items Selected")})]})})]}),(0,n.jsx)(L,{children:(0,n.jsx)(a.A,{direction:"row",rowGap:2,columnGap:2,justifyContent:"center",flexWrap:"wrap",style:{paddingTop:0,width:"100%"},children:l.sort((e,i)=>e.order-i.order).map(e=>(0,n.jsx)(v.k,{large:!0,service:e,restrictWidth:!0,selected:M(e,u),ignoreLocalState:!0,selectedServiceChangeTrigger:o,openWhatsIncludedTrigger:e=>E(e),disableSelection:w,business:y}
1))})})]})})}),(0,n.jsx)(j.B0,{businessName:y.displayName,selectedServiceType:_,closeDrawer:()=>E(null),serviceGroups:y.serviceGroups,availableServiceItems:y.serviceItems,restrictServiceGroupTypes:f})]})},w())}},e=>{e.O(0,[3225,2552,6038,8550,1474,8600,9664,3652,3761,1909,737,9610,4454,512,8149,6282,5506,1098,8016,399,4780,299,4148,5328,6531,9049,815,2852,5900,2553,6192,6593,636,8792],()=>e(e.s=90448)),_N_E=e.O()}]);
2//# sourceMappingURL=[mechanicSlug]-ca742ff155162dd6.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.