1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5111,9457],{70485:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/riders-corner/[slug]",function(){return i(70008)}])},10938:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var l=i(74848),s=i(29965),a=i.n(s);let n=e=>{let{onClick:t,label:i,className:s="",type:n="button",src:r,variant:o="primary",...c}=e;return(0,l.jsxs)("button",{type:n,className:"btn \n ".concat("primary"===o?"btn-primary":"btn-secondary","\n px-[0.8125rem] py-[0.78125rem] leading-none flex items-center gap-2 \n ").concat(s),onClick:t,...c,children:[r&&(0,l.jsx)(a(),{src:r,alt:i,className:"me-5",width:20,height:20}),i]})}},34593:(e,t,i)=>{"use strict";i.d(t,{p:()=>o});var l=i(74848),s=i(96540),a=i(29965),n=i.n(a),r=i(97627);let o=e=>{let{src:t,alt:i,fill:a,width:o,height:c,sizes:d,priority:m=!1,loading:h="lazy",className:x,style:y,onLoad:p,onError:u,blurDataURL:g,quality:f=90,objectFit:j="cover",disableBlobCache:v=!1}=e,[b,w]=(0,s.useState)(null),[N,I]=(0,s.useState)(!0),[F,z]=(0,s.useState)(!1),[S,A]=(0,s.useState)(!0),H=(0,s.useRef)(!1),k=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(k.current!==t&&(k.current=t,H.current=!1,I(!0),z(!1),A(!0),b&&b.startsWith("blob:")&&(URL.revokeObjectURL(b),w(null))),!t||H.current)return;let e=!0,i=null;return(async()=>{try{if(v){e&&(w(null),I(!1),H.current=!0,(0,r.CJ)(t).catch(()=>{}));return}if(await (0,r.iU)(t)&&e){let l=await (0,r.if)(t);if(l&&e)try{let e=new URL(l);if("blob:"!==e.protocol)throw Error("Invalid blob URL format");i=l,w(l),I(!1),H.current=!0;return}catch(e){await (0,r.Iv)(t).catch(()=>{})}}e&&(w(null),I(!1),H.current=!0,(0,r.CJ)(t).catch(()=>{}))}catch(t){e&&(w(null),I(!1),A(!1),H.current=!0)}})(),()=>{if(e=!1,i&&i.startsWith("blob:")&&E.current===i)try{URL.revokeObjectURL(i),E.current=null}catch(e){}}},[t,b,v]);let E=(0,s.useRef)(null);(0,s.useEffect)(()=>(b&&b.startsWith("blob:")?E.current=b:E.current=null,()=>{if(E.current&&E.current.startsWith("blob:"))try{URL.revokeObjectURL(E.current),E.current=null}catch(e){}}),[b]);let P=e=>{if(!e||!e.startsWith("blob:"))return!0;try{let t=new URL(e);return"blob:"===t.protocol}catch(e){return!1}},W=b&&P(b)?b:t,T=S&&!F&&P(b)?W:t;return(0,l.jsxs)("div",{style:{position:a?"relative":"static",width:a?"100%":o,height:a?"100%":c,...y},className:x,children:[N&&!F&&(0,l.jsx)("div",{style:{position:"absolute",inset:0,backgroundColor:"#E5E7EB",backgroundImage:"linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1},className:"animate-pulse",children:(0,l.jsx)("div",{style:{width:"24px",height:"24px",border:"2px solid #f3f4f6",borderTop:"2px solid #3b82f6",borderRadius:"50%"},className:"animate-spin"})}),F&&(0,l.jsx)("div",{style:{position:"absolute",inset:0,backgroundColor:"#f3f4f6",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1},children:(0,l.jsx)("p",{style:{fontSize:"12px",color:"#6b7280",textAlign:"center",margin:0,padding:"8px"},children:"Failed to load"})}),!F&&(0,l.jsx)(n(),{src:T,alt:i,fill:a,width:a?void 0:o,height:a?void 0:c,sizes:d,priority:m,loading:h,quality:f,style:{objectFit:j,opacity:N?0:1,transition:"opacity 0.3s ease-in-out",...y||{}},className:x,onLoad:()=>{I(!1),null==p||p()},onError:()=>{if(b&&b.startsWith("blob:")){try{URL.revokeObjectURL(b)}catch(e){}w(null),A(!1),I(!0),z(!1),(0,r.Iv)(t).catch(()=>{});return}I(!1),z(!0),null==u||u()},blurDataURL:g,unoptimized:!0},T)]})}},20282:(e,t,i)=>{"use strict";i.d(t,{A:()=>c});var l=i(74848),s=i(96540),a=i(29965),n=i.n(a),r=i(56858),o=i(55910);let c=e=>{let{type:t,slug:i,useFullUrl:a}=e,[c,d]=(0,s.useState)(!1),{openSharePopup:m,shareUrl:h,popupOpen:x,setPopupOpen:y,shareTitle:p,shareDescription:u,loading:g}=(0,o.R)({type:t,slug:i,useFullUrl:a});return((0,s.useEffect)(()=>{d(!0)},[]),c)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),m()},disabled:g,className:"p-2 flex items-center justify-center rounded-full aspect-square hover:bg-gray-100 active:bg-gray-200 transition-colors",children:(0,l.jsx)(n(),{src:"/assets/images/icons/share-icon.svg",alt:"Share",width:20,height:20})}),(0,l.jsx)(r.K,{open:x,onOpenChange:y,shareUrl:h,title:p,description:u})]}):(0,l.jsx)("button",{disabled:!0,className:"p-0",children:(0,l.jsx)(n(),{src:"/assets/images/icons/share-icon.svg",alt:"Share",width:20,height:20})})}},70008:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSP:()=>el,default:()=>es});var l=i(74848);let s=e=>{let{children:t,className:i=""}=e;return(0,l.jsx)("div",{className:"flex justify-center w-full",children:(0,l.jsxs)("div",{className:"md:px-5 px-4 w-full ".concat(i),children:[" ",t]})})},a=e=>{let{imageUrl:t}=e;return(0,l.jsx)("div",{className:"relative w-full h-[400px] md:h-[700px] bg-fixed bg-cover bg-center z-10",style:{backgroundImage:"url(".concat(t,")")},children:(0,l.jsx)("div",{className:"absolute inset-0 bg-black/50"})})};var n=i(96540),r=i(44794);let o=e=>{let{title:t,className:i="",center:s=!1,as:a="h2",color:n}=e;return(0,l.jsx)(a,{className:"".concat(s?"text-center":""," ").concat(i),style:{fontSize:r.Il.styles.h4.fontSize,fontFamily:r.Il.styles.h4.fontFamily,fontWeight:r.Il.styles.h4.fontWeight,lineHeight:r.Il.styles.h4.lineHeight,color:n||r.AH.primary},children:t})};var c=i(76788),d=i(85692);let m=e=>{let{conclusionMainText:t,conclusionClosureText:i}=e,{ref:s,inView:a}=(0,d.Wx)({triggerOnce:!0,threshold:.01,rootMargin:"200px 0px -50px 0px"}
1),[m,h]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(a)h(!0);else{let e=setTimeout(()=>h(!0),300);return()=>clearTimeout(e)}},[a]),(0,l.jsx)(c.P.div,{ref:s,initial:{opacity:0,y:40},animate:m?{opacity:1,y:0}:{opacity:0,y:40},transition:{duration:.8,ease:[.16,1,.3,1],delay:.2,type:"tween"},className:"p-6 rounded-lg border bg-black flex flex-col h-full justify-between",children:(0,l.jsxs)("div",{className:"min-h-full",children:[(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsx)(o,{title:"Conclusion",className:"leading-[1.875rem] capitalize",color:"#FFFFFF"}),(0,l.jsx)("div",{className:"max-w-[300px] h-[3px] bg-[#F8EC26] mt-1"})]}),(0,l.jsxs)(c.P.div,{initial:{opacity:0,x:-20},animate:m?{opacity:1,x:0}:{opacity:0,x:-20},transition:{duration:.7,ease:[.16,1,.3,1],delay:.4,type:"tween"},children:[(0,l.jsx)("p",{className:"md:mt-10 mt-6",style:{fontSize:r.Il.styles.body.fontSize,fontFamily:r.Il.styles.body.fontFamily,fontWeight:r.Il.styles.body.fontWeight,lineHeight:r.Il.styles.body.lineHeight,color:"#FFFFFF"},children:t}),i&&(0,l.jsx)("p",{className:"md:mt-10 mt-6",style:{fontSize:r.Il.styles.body.fontSize,fontFamily:r.Il.styles.body.fontFamily,fontWeight:r.Il.styles.body.fontWeight,lineHeight:r.Il.styles.body.lineHeight,color:"#FFFFFF"},children:i})]})]})})};var h=i(29965),x=i.n(h),y=i(86297);let p=e=>{var t,i;let{sections:s=[]}=e,[a,o]=(0,n.useState)(0),d=(0,n.useRef)(null),m=(0,n.useRef)([]),h=(0,n.useRef)(!1),p=(0,n.useRef)(null),u=e=>{if(e!==a){if(h.current=!0,o(e),m.current[e]){var t;null===(t=m.current[e])||void 0===t||t.scrollIntoView({behavior:"smooth",block:"start"})}setTimeout(()=>{h.current=!1},1e3)}};return((0,n.useEffect)(()=>{if(!s.length)return;let e=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting&&!h.current){let t=m.current.findIndex(t=>t===e.target);-1!==t&&o(t)}})},{root:null,rootMargin:"0px",threshold:.5}),t=m.current;return t.forEach(t=>{t&&e.observe(t)}),()=>{t.forEach(t=>{t&&e.unobserve(t)})}},[s]),(0,n.useEffect)(()=>{let e=p.current;if(!e)return;let t=new IntersectionObserver(t=>{let i=t[0];(null==i?void 0:i.isIntersecting)&&i.boundingClientRect.top>100&&e.scrollIntoView({behavior:"smooth",block:"start"})},{root:null,rootMargin:"0px",threshold:.08});return t.observe(e),()=>t.disconnect()},[]),s&&0!==s.length)?(0,l.jsxs)("div",{ref:p,className:"relative w-full h-[100dvh] text-white overflow-hidden",style:{position:"relative",zIndex:1,isolation:"isolate",left:0,right:0},children:[(0,l.jsx)(x(),{src:"/assets/images/riders/terrain-bg.png",alt:"Background",fill:!0,className:"object-cover",style:{position:"absolute",zIndex:-1,inset:0,left:0,right:0},priority:!0}),(0,l.jsx)("div",{ref:d,className:"hide-scrollbar h-full w-full overflow-y-auto snap-y snap-mandatory bg-transparent",children:s.map((e,t)=>(0,l.jsx)("div",{ref:e=>{m.current[t]=e},className:"h-screen w-full snap-start flex items-center justify-center"},e._id))}),(0,l.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center pointer-events-none max-w-6xl mx-auto",children:(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-10 px-6 max-w-6xl w-full",children:[(0,l.jsx)(y.N,{mode:"wait",children:(0,l.jsxs)(c.P.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.7,ease:[.16,1,.3,1],type:"tween"},className:"text-3xl md:text-4xl font-bold text-primary text-left flex items-center gap-3",children:[(0,l.jsx)(x(),{src:"/assets/images/svg/yellowarrow.svg",alt:"Arrow",width:24,height:24,className:"flex-shrink-0"}),(0,l.jsx)("span",{className:"line-clamp-2 block",children:null===(t=s[a])||void 0===t?void 0:t.title})]},"title-".concat(a))}),(0,l.jsx)(y.N,{mode:"wait",children:(0,l.jsx)(c.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.7,ease:[.16,1,.3,1],type:"tween"},className:"md:col-span-2 space-y-4 md:pl-48 text-white/90",style:{fontSize:r.Il.styles.body.fontSize,fontFamily:r.Il.styles.body.fontFamily,fontWeight:r.Il.styles.body.fontWeight,lineHeight:r.Il.styles.body.lineHeight},children:((null===(i=s[a])||void 0===i?void 0:i.items)||[]).map(e=>(0,l.jsx)(c.P.p,{initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:.3,duration:.5,ease:[.16,1,.3,1]},className:"line-clamp-10 block",children:e.text},e._id))},"content-".concat(a))})]})}),(0,l.jsx)("div",{className:"absolute right-6 top-1/2 transform -translate-y-1/2 flex flex-col gap-3 z-10",children:s.map((e,t)=>(0,l.jsx)("button",{onClick:()=>u(t),className:"w-3 h-3 rounded-full transition-all ".concat(t===a?"bg-primary scale-125":"bg-white/50"),"aria-label":"Go to section ".concat(t+1)},"dot-".concat(t)))})]}):null};var u=i(682),g=i(28454);let f=e=>{let{highlights:t}=e,i=(0,n.useRef)(null),[a,o]=(0,n.useState)("text-white"),{scrollYProgress:d}=(0,u.L)({target:i,offset:["start start","end end"]}),m=(0,g.G)(d,[0,1],[0,150]),h=(0,g.G)(d,[.2,.8],[50,0]);return(0,n.useEffect)(()=>{let e=()=>{if(!i.current)return;let e=i.current.offsetTop;window.scrollY>e-100+300?o("text-black"):o("text-white")};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),(null==t?void 0:t.length)>0&&(0,l.jsxs)("div",{ref:i,className:"relative flex flex-col bg-white overflow-hidden md:pb-80 pb-20",style:{overflowX:"hidden"},children:[(0,l.jsx)(c.P.div,{className:"fixed inset-0 -z-1 h-screen w-full pointer-events-none",style:{y:m,left:0,right:0,width:"100%",maxWidth:"100%",overflowX:"hidden"},children:(0,l.jsx)(x(),{src:"/assets/images/riders/bike.png",alt:"bike",layout:"fill",objectFit:"cover",className:"object-cover grayscale"})}),(0,l.jsx)(c.P.div,{className:"relative z-10",style:{y:h},children:(0,l.jsx)(s,{className:"container",children:(0,l.jsxs)("div",{className:"max-w-6xl mx-auto py-32",children:[(0,l.jsx)(c.P.div,{initial:{y:40,opacity:0},animate:{y:0,opacity:1},transition:{duration:1,ease:[.16,1,.3,1],type:"tween"},className:"flex justify-center",children:(0,l.jsx)("div",{className:"inline-block px-8 py-4 rounded-xl backdrop-blur-md bg-black/50 shadow-xl",children:(0,l.jsx)("h2",{className:"md:mb-0 mb-0 text-center text-white",style:{fontSize:r.Il.styles.h4.fontSize,fontFamily:r.Il.styles.h4.fontFamily,fontWeight:r.Il.styles.h4.fontWeight,lineHeight:r.Il.styles.h4.lineHeight,color:"#FFFFFF"},children:"Key Highlights"})})}),t.map((e,t)=>(0,l.jsx)(c.P.div,{className:"flex pt-20 w-full flex-col mb-10 ".concat(t%2==0?"items-start":"items-end"),initial:{opacity:0,x:t%2==0?-150:150},whileInView:{opacity:1,x:0},viewport:{once:!0,amount:.1,margin:"0px 0px -100px 0px"},transition:{duration:1,delay:.15*t,ease:[.16,1,.3,1],type:"tween"},children:(0,l.jsxs)("div",{className:"max-w-[25.625rem] w-full rounded-xl p-6 backdrop-blur-md ".concat("text-white"===a?"bg-black/50":"bg-white/80"," shadow-xl"),children:[(0,l.jsxs)("div",{className:"flex mb-3 items-center gap-4 w-full ".concat(a),children:[(0,l.jsx)("div",{className:"brightness-0 invert flex items-center",children:(0,l.jsx)(x(),{src:e.icon,alt:e.title,width:18,height:16,priority:!0})}),(0,l.jsxs)("h3",{style:{fontSize:r.Il.styles.h5.fontSize,fontFamily:r.Il.styles.h5.fontFamily,fontWeight:r.Il.styles.h5.fontWeight,lineHeight:r.Il.styles.h5.lineHeight,color:"text-white"===a?"#FFFFFF":r.AH.primary},children:[e.title,":"]})]}),(0,l.jsx)("p",{className:"w-full",style:{fontSize:r.Il.styles.body.fontSize,fontFamily:r.Il.styles.body.fontFamily,fontWeight:r.Il.styles.body.fontWeight,lineHeight:r.Il.styles.body.lineHeight,color:"text-white"===a?"#FFFFFF":r.AH.primary},children:e.description})]})},e._id))]})})})]})};var j=i(86715);i(79690),i(92598),i(31576);var v=i(46874),b=i(58943),w=i(34593),N=i(97627);let I=e=>{let{image:t,title:i,className:s}=e,a=Array.isArray(t)?t:[t],r=a.length,o=a.filter(e=>e&&"string"==typeof e&&e.length>0);return(0,n.useEffect)(()=>{o.length>0&&(0,N.Vl)(o.slice(0,3)).catch(()=>{})},[o]),(0,l.jsx)("div",{className:"relative w-full rounded-md overflow-hidden ".concat(s),children:1===r?(0,l.jsx)("div",{className:"relative w-full h-48",children:(0,l.jsx)(w.p,{src:a[0]?a[0]:"/assets/images/No-Image.jpg",alt:"".concat(i),fill:!0,style:{objectFit:"cover"},className:"rounded-md",loading:"lazy",sizes:"(max-width: 768px) 100vw, 350px",onError:()=>{}})}):(0,l.jsx)(v.RC,{slidesPerView:1,spaceBetween:10,loop:r>1,pagination:{clickable:!0},modules:[b.dK,b.Jq,b.Ij],children:a.map((e,t)=>(0,l.jsx)(v.qr,{children:(0,l.jsx)("div",{className:"relative w-full h-48",children:(0,l.jsx)(w.p,{src:e||"/assets/images/No-Image.jpg",alt:"".concat(i," - ").concat(t+1),fill:!0,style:{objectFit:"cover"},className:"rounded-md",loading:0===t?"eager":"lazy",priority:0===t,
1sizes:"(max-width: 768px) 100vw, 350px",onError:()=>{}})})},t))})})};var F=i(42520);let z=e=>{let{items:t,className:i=""}=e,s=(Array.isArray(t)?t:t.split(" ⢠")).filter(e=>e&&e.trim().length>0);if(0===s.length)return null;let a=s.slice(0,1),n=s.length-1;return(0,l.jsxs)("span",{className:i,children:[a.map((e,t)=>(0,l.jsxs)("span",{children:[t>0&&(0,l.jsxs)(l.Fragment,{children:[" ","â¢",(0,l.jsx)("span",{className:"md:mx-3 mx-1",children:e})]}),0===t&&e]},t)),n>0&&(0,l.jsxs)(l.Fragment,{children:[" ",(0,l.jsxs)("span",{className:"md:mx-3 mx-1",children:["+",n," more"]})]})]})},S=e=>{let{duration:t,category:i,title:s,description:a,mainLocation:r}=e;return(0,l.jsxs)("div",{className:"pb-1.5 pt-3 px-2.5",children:[(0,l.jsxs)("p",{className:"text-[12px] text-darkgrey pb-2",children:[t&&(0,l.jsx)("span",{children:t}),(()=>{let e=[];i&&(Array.isArray(i)?e.push(...i):e.push(i));let s=e.filter(e=>e&&e.trim().length>0),a=s.slice(0,1),r=s.length-1;return s.length>0?(0,l.jsxs)(l.Fragment,{children:[t&&(0,l.jsxs)(l.Fragment,{children:[a.map((e,t)=>(0,l.jsxs)(n.Fragment,{children:[" ","â¢",(0,l.jsx)("span",{className:"md:mx-3 mx-1",children:e})]},t)),r>0&&(0,l.jsxs)(l.Fragment,{children:[" ",(0,l.jsxs)("span",{className:"md:mx-3 mx-1",children:["+",r," more"]})]})]}),!t&&(0,l.jsx)(z,{items:e})]}):null})()]}),s&&(0,l.jsx)("h3",{className:"text-base font-bold text-black leading-6 capitalize",children:s}),r&&(0,l.jsxs)("h6",{className:"text-sm text-darkgrey pt-2 pb-1 font-medium ",children:[(0,l.jsx)(F.A,{className:"inline mr-1 w-3 h-4 pb-0.5"}),null==r?void 0:r.name]}),a&&(0,l.jsx)("p",{className:"text-sm font-normal mt-1.5",children:((e,t)=>e.length<=88?e:e.slice(0,88)+"...")(a,0)})]})};var A=i(10938),H=i(91106),k=i.n(H);let E=e=>{let{imageUrl:t,distance:i,slug:s,duration:a,title:n,_id:r,onClick:o}=e;return(0,l.jsx)("div",{className:"border bg-white overflow-hidden rounded-md shadow-card p-2.5 pb-5",children:(0,l.jsx)(k(),{href:"/riders-corner/".concat(r||s),scroll:!1,onClick:e=>{o&&(e.preventDefault(),o())},children:(0,l.jsxs)("div",{className:"flex flex-col justify-between",children:[(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)(I,{image:t,title:n}),(0,l.jsx)(S,{duration:a,attractions:i}),(0,l.jsx)("div",{className:"px-2.5 flex justify-between items-start flex-col",children:(0,l.jsx)("h3",{className:"text-xl font-semibold leading-6 mb-4",children:n})})]}),(0,l.jsx)("div",{className:"",children:(0,l.jsx)(A.A,{label:"Learn more",variant:"primary",type:"button",className:"bg-white border border-lightgrey hover:bg-lightgrey hover:border-lightgrey transition duration-300 ease-in-out",onClick:()=>{}})})]})})})};var P=i(65251),W=i(94335),T=i(70255);i(43352);let R={hidden:{opacity:0,y:30,scale:.96},visible:e=>({opacity:1,y:0,scale:1,transition:{delay:.08*e,duration:.7,ease:[.16,1,.3,1],type:"tween"}})},_={hidden:{opacity:0},visible:{opacity:[.6,1,.6],transition:{duration:1.5,repeat:1/0,ease:"easeInOut"}}},C=e=>{let{currentRiderSlug:t,currentRiderId:i,createdBy:s,sectionTitle:a}=e,r=(0,j.useRouter)(),{data:d=[],isLoading:m,error:h}=function(e,t,i){return(0,P.I)({queryKey:["riders-corner","related",e,t,i],queryFn:async()=>{var l,s,a;let n={};i&&(n.createdBy=i),e?n.excludeSlug=[e]:t&&(n.excludeId=[t]);let r=await W.A.post("".concat("https://dev-api.nexgo.ai/nexgo-gateway","/travel/riders-corner/v1/list-all"),{queryParams:{page:1,limit:10,offset:0,orderBy:"createdAt",orderIn:"desc"},filters:n});if((null===(l=r.data)||void 0===l?void 0:l.success)===!1)throw Error(r.data.message||"Failed to fetch related routes");let o=null===(a=r.data)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.list;return o&&o.map(e=>{var t;return{id:e._id,imageUrl:(null===(t=e.imageUrl)||void 0===t?void 0:t[0])||"/assets/images/No-Image.jpg",distance:"".concat(e.totalDistance," kms"),duration:"".concat(e.totalHoursFrom," - ").concat(e.totalHoursTo," hours"),title:e.title||e.shortTitle||"",slug:e.slug}})||[]},enabled:!!(i||e||t),staleTime:3e5,gcTime:6e5,retry:2,retryDelay:e=>Math.min(1e3*2**e,3e4)})}(t,i,s),[x,p]=(0,n.useState)(),[u,g]=(0,n.useState)(!1),f=()=>{let e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;if(0===e)return;let t=performance.now(),i=e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,l=s=>{let a=Math.min((s-t)/1e3,1),n=e*(1-i(a));window.scrollTo(0,n),document.documentElement&&(document.documentElement.scrollTop=n),document.body&&(document.body.scrollTop=n),a<1?requestAnimationFrame(l):(window.scrollTo(0,0),document.documentElement&&(document.documentElement.scrollTop=0),document.body&&(document.body.scrollTop=0))};requestAnimationFrame(l)},v=(e,t)=>
1{f(),setTimeout(()=>{r.push("/riders-corner/".concat(t||e),void 0,{scroll:!1})},50)},b=t||i;if((0,n.useEffect)(()=>{b&&b!==x&&(g(!0),p(b)),!m&&d.length>0&&g(!1)},[b,x,m,d.length]),h)return console.error("Failed to fetch related routes:",h),null;let w=m&&(0===d.length||u);return(0,l.jsx)(l.Fragment,{children:(w||d.length>0)&&(0,l.jsxs)("section",{className:"md:py-16 py-10 px-4 max-w-7xl mx-auto",children:[(0,l.jsx)(o,{title:null!=a?a:s?"More from this creator":"Related Routes",center:!0,className:"md:mb-10 mb-6"}),(0,l.jsx)(y.N,{mode:"wait",children:w?(0,l.jsx)(c.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-[18px]",children:[1,2,3,4].map(e=>(0,l.jsxs)(c.P.div,{variants:_,initial:"hidden",animate:"visible",className:"border bg-white overflow-hidden rounded-md shadow-card p-2.5 pb-5",children:[(0,l.jsx)(T.A,{height:200,className:"mb-4 rounded-md"}),(0,l.jsxs)("div",{className:"px-2.5",children:[(0,l.jsx)(T.A,{height:16,width:"60%",className:"mb-2"}),(0,l.jsx)(T.A,{height:16,width:"40%",className:"mb-4"}),(0,l.jsx)(T.A,{height:40,width:"100%",borderRadius:6})]})]},e))},"loading"):(0,l.jsx)(c.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-[18px]",children:d.map((e,t)=>(0,l.jsx)(c.P.div,{variants:R,initial:"hidden",animate:"visible",custom:t,children:(0,l.jsx)(E,{imageUrl:e.imageUrl,distance:e.distance,duration:e.duration,title:e.title,slug:e.slug,_id:e.id,onClick:()=>v(e.slug,e.id)})},e.id))},"content")})]})})},L=e=>{let{title:t,className:i=""}=e;return(0,l.jsx)("div",{children:(0,l.jsx)("h2",{className:"capitalize ".concat(i),style:{fontSize:r.Il.styles.h4.fontSize,fontFamily:r.Il.styles.h4.fontFamily,fontWeight:r.Il.styles.h4.fontWeight,lineHeight:r.Il.styles.h4.lineHeight,color:r.AH.primary},children:t})})},U=e=>{let{title:t,gearList:i,index:s}=e;return(0,l.jsxs)(c.P.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.1,margin:"0px 0px -100px 0px"},transition:{duration:.8,ease:[.16,1,.3,1],delay:.15*s,type:"tween"},className:"p-6 rounded-lg border bg-white shadow-lg",children:[(0,l.jsxs)(c.P.div,{initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!1},transition:{delay:.15*s+.2,duration:.6,ease:[.16,1,.3,1]},className:"mb-4",children:[(0,l.jsx)(L,{title:t,className:"text-xl leading-[1.875rem]"}),(0,l.jsx)("div",{className:"max-w-[300px] h-[3px] bg-[#F8EC26] mt-1"})]}),(0,l.jsx)("ul",{className:"list-disc pl-5 space-y-4 md:mt-10 mt-6",children:i.map((e,t)=>(0,l.jsxs)(c.P.li,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0,transition:{duration:.6,delay:.15*s+.08*t,ease:[.16,1,.3,1],type:"tween"}},viewport:{once:!1,margin:"20px"},className:"text-black",children:[(0,l.jsx)("span",{style:{fontSize:r.Il.styles.body.fontSize,fontFamily:r.Il.styles.body.fontFamily,fontWeight:r.Il.weight.medium,color:r.AH.primary},children:e.text}),e.info&&(0,l.jsxs)("div",{style:{fontSize:r.Il.styles.body.fontSize,fontFamily:r.Il.styles.body.fontFamily,fontWeight:r.Il.styles.body.fontWeight,lineHeight:r.Il.styles.body.lineHeight,color:r.AH.primary},children:["(",e.info,")"]})]},e._id))})]})},O=e=>{let{distance:t,number:i}=e,s=(0,n.useRef)(null),[a,r]=(0,n.useState)(0),[o,c]=(0,n.useState)(!1),[d,m]=(0,n.use
1State)(0);return(0,n.useEffect)(()=>{c(!0);{m(window.innerWidth);let e=()=>{m(window.innerWidth)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}},[]),(0,n.useEffect)(()=>{s.current&&r(s.current.offsetWidth+54)},[o]),(0,l.jsx)("div",{className:"relative flex items-center justify-center w-full",children:(0,l.jsxs)("div",{className:"absolute md:top-0 bottom-0 top-[-3.5rem] ".concat(i%2==0?"md:-right-2":"md:-left-12"," left-0"),children:[(0,l.jsx)("div",{className:"absolute md:translate-x-1/2 ".concat(i%2==0?"md:-right-[98px] right-0":"md:-left-[".concat(a,"px] left-0 ")," "),style:{left:o&&d>=768?i%2!=0?"-".concat(a+5,"px"):void 0:"-42px"},children:(0,l.jsxs)("div",{ref:s,className:"bg-primary text-black w-[148px] ".concat(i%2==0?"md:pl-[26px] pl-10":"md:pr-[30px] pl-10"," px-4 py-2 h-8 rounded-lg font-bold text-sm relative z-10 flex items-center gap-2"),children:[(0,l.jsx)("span",{className:"text-lg font-bold ".concat(i%2==0?"md:pl-5":""),children:t}),(0,l.jsx)("span",{className:"text-sm font-semibold ".concat(i%2==0?" ":"md:pr-5"),children:"kms"})]})}),(0,l.jsx)("div",{className:"absolute md:translate-x-1/2 z-10 right-3 ".concat(i%2==0?"md:-right-10 ":" md:right-0"),children:(0,l.jsx)("div",{className:" bg-black text-white w-8 h-8 flex items-center justify-center rounded-full z-20 text-sm font-bold ",children:i})})]})})},M=e=>{let{position:t,delay:i=0}=e;return(0,l.jsx)(c.P.div,{initial:{y:0},animate:{y:10},transition:{repeat:1/0,repeatType:"reverse",duration:1.5,ease:[.4,0,.6,1],delay:i},className:"z-10 absolute left-[calc(50%-10px)] ".concat("top"===t?"-top-8":"-bottom-8"),children:(0,l.jsx)(x(),{src:"/assets/images/svg/downarrows.svg",alt:"down arrow",width:20,height:20})})},q=e=>{let{route:t,index:i}=e,[s,a]=(0,d.Wx)({triggerOnce:!0,threshold:.01,rootMargin:"100px 0px -50px 0px"}
1),[o,m]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(a)m(!0);else{let e=setTimeout(()=>{m(!0)},500);return()=>clearTimeout(e)}},[a]);let h=i%2==0;return(0,l.jsx)(c.P.div,{ref:s,className:"flex items-center ".concat(h?"md:justify-end":"md:justify-start"," justify-start"),children:(0,l.jsx)("div",{className:"md:w-1/2 w-full relative px-6",children:(0,l.jsxs)("div",{className:"bg-white px-[22px] py-4 w-full ".concat(h?"md:text-left":"md:text-right"," text-left"),children:[(0,l.jsx)(c.P.div,{initial:{opacity:0,y:20},animate:o?{opacity:1,y:0}:{opacity:0,y:20},transition:{duration:.8,ease:[.16,1,.3,1],type:"tween"},children:(0,l.jsx)(O,{distance:t.distance,number:i+1})}),(0,l.jsxs)(c.P.div,{initial:{opacity:0,x:h?-40:40},animate:o?{opacity:1,x:0}:{opacity:0,x:h?-40:40},transition:{duration:.8,ease:[.16,1,.3,1],delay:.15,type:"tween"},children:[(0,l.jsx)("h3",{style:{fontSize:r.Il.styles.h5.fontSize,fontFamily:r.Il.styles.h5.fontFamily,fontWeight:r.Il.styles.h5.fontWeight,lineHeight:r.Il.styles.h5.lineHeight,color:r.AH.primary},children:"".concat(t.startPoint," - ").concat(t.endPoint)}),(0,l.jsx)("p",{className:"mt-2",style:{fontSize:r.Il.styles.body.fontSize,fontFamily:r.Il.styles.body.fontFamily,fontWeight:r.Il.styles.body.fontWeight,lineHeight:r.Il.styles.body.lineHeight,color:r.AH.text},children:t.description})]})]})})},t._id)},D=e=>{let{routes:t}=e;return(0,l.jsx)(l.Fragment,{children:t&&t.length>0&&(0,l.jsxs)("section",{className:"px-4 md:py-16 py-10 max-w-6xl mx-auto",children:[(0,l.jsx)(o,{title:"Route Overview",center:!0,className:"md:mb-10 mb-6",color:r.AH.primary}),(0,l.jsxs)("div",{className:"relative mt-6",children:[(0,l.jsx)(M,{position:"top"}),(0,l.jsx)(M,{position:"bottom",delay:.3}),(0,l.jsx)("div",{className:"absolute md:left-1/2 left-5 transform -translate-x-1/2 h-full border-l-2 border-dashed border-gray-300"}),(0,l.jsx)("div",{className:"flex flex-col space-y-24 py-12",children:t.map((e,t)=>(0,l.jsx)(q,{route:e,index:t},e._id))})]}),(0,l.jsx)("div",{className:"flex justify-center mt-12",children:(0,l.jsx)(c.P.button,{onClick:()=>{if(!t||0===t.length)return;let e=t[0],i=t[t.length-1],l="".concat(e.startLocation.coordinates[0],",").concat(e.startLocation.coordinates[1]),s="".concat(i.endLocation.coordinates[0],",").concat(i.endLocation.coordinates[1]),a="https://www.google.com/maps/dir/".concat(l,"/").concat(s);window.open(a,"_blank")},initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,ease:[.16,1,.3,1]},className:"flex items-center gap-2 px-6 py-3 text-white rounded-lg transition-all duration-200 shadow-lg hover:shadow-xl",style:{borderRadius:"20px",borderWidth:"1px",borderStyle:"solid",borderColor:"#FFFFFF",backgroundColor:"#040404",paddingTop:"8px",paddingRight:"13px",paddingBottom:"8px",paddingLeft:"13px",gap:"10px"},children:(0,l.jsx)("span",{style:{fontSize:r.Il.styles.body.fontSize,fontFamily:r.Il.styles.body.fontFamily,fontWeight:r.Il.styles.body.fontWeight},children:"Open in Google Maps"})})})]})})},B=e=>{let{items:t=[]}=e,{ref:i,inView:s}=(0,d.Wx)({triggerOnce:!0,threshold:.01,rootMargin:"200px 0px -50px 0px"}
1),[a,m]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(s)m(!0);else{let e=setTimeout(()=>m(!0),300);return()=>clearTimeout(e)}},[s]),(0,l.jsx)(c.P.div,{ref:i,initial:{opacity:0,y:40},animate:a?{opacity:1,y:0}:{opacity:0,y:40},transition:{duration:.8,ease:[.16,1,.3,1],delay:.2,type:"tween"},className:"px-9 py-9 rounded-lg border shadow-lg bg-white flex flex-col h-full",children:(0,l.jsxs)("div",{className:"min-h-full",children:[(0,l.jsxs)(c.P.div,{initial:{opacity:0},animate:a?{opacity:1}:{opacity:0},transition:{delay:.35,duration:.6,ease:[.16,1,.3,1]},className:"mb-4",children:[(0,l.jsx)(o,{title:"Safety and Preparation",className:"leading-[1.875rem]"}),(0,l.jsx)("div",{className:"max-w-[300px] h-[3px] bg-[#F8EC26] mt-1"})]}),(0,l.jsx)("div",{className:"space-y-4 md:mt-10 mt-6 flex-grow",children:t.length>0?t.map((e,t)=>(0,l.jsxs)(c.P.div,{initial:{opacity:0,x:-20},animate:a?{opacity:1,x:0}:{opacity:0,x:-20},transition:{duration:.7,delay:.4+.1*t,ease:[.16,1,.3,1],type:"tween"},children:[(0,l.jsxs)("span",{style:{fontSize:r.Il.styles.body.fontSize,fontFamily:r.Il.styles.body.fontFamily,fontWeight:r.Il.weight.bold,color:r.AH.primary},children:[e.title,":"]}),(0,l.jsx)("div",{className:"mt-3",style:{fontSize:r.Il.styles.body.fontSize,fontFamily:r.Il.styles.body.fontFamily,fontWeight:r.Il.styles.body.fontWeight,lineHeight:r.Il.styles.body.lineHeight,color:r.AH.primary},children:e.description})]},e._id)):(0,l.jsx)(c.P.div,{initial:{opacity:0}
1,animate:a?{opacity:1}:{opacity:0},transition:{delay:.5,duration:.6,ease:[.16,1,.3,1]},children:(0,l.jsx)("div",{className:"text-gray-500",children:"No safety items listed"})})})]})})};var V=i(20282);let K=e=>{let{category:t,title:i,slug:s}=e;return(0,l.jsxs)(c.P.div,{id:"title-card",className:"mx-auto max-w-5xl w-full pt-11 pb-5 bg-white rounded-[2.5rem] -mt-[5rem] z-40 md:z-50 relative overflow-visible",initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.7,ease:[.16,1,.3,1],type:"tween"},children:[(0,l.jsx)("p",{className:"text-center tracking-wider pb-5",style:{fontSize:r.Il.size.sm,fontFamily:r.Il.fonts.primary,fontWeight:r.Il.weight.regular,color:r.AH.tertiary},children:(0,l.jsx)(z,{items:t})}),(0,l.jsxs)("div",{className:"relative px-8 md:px-8 overflow-visible",children:[(0,l.jsx)("h1",{className:"text-center pr-12 md:pr-0",style:{fontSize:r.Il.styles.h3.fontSize,fontFamily:r.Il.styles.h3.fontFamily,fontWeight:r.Il.styles.h3.fontWeight,lineHeight:r.Il.styles.h3.lineHeight,color:r.AH.primary},children:i}),s&&(0,l.jsx)("div",{className:"absolute top-0 right-4 md:right-8 pt-1",children:(0,l.jsx)(V.A,{type:"riders-corner",slug:s})})]})]})},X=e=>{let{distance:t,duration:i,description:s}=e;return(0,l.jsxs)(c.P.div,{className:"max-w-full mx-auto px-4 md:pt-10 pt-8 pb-[5rem] text-center overflow-hidden",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:1,ease:[.16,1,.3,1],type:"tween"},children:[(0,l.jsxs)(c.P.div,{className:"flex justify-center items-center gap-10 border-lightgrey border rounded-lg md:px-[5rem] md:pt-8 px-8 py-5 w-fit mx-auto",initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},transition:{duration:.8,ease:[.16,1,.3,1],delay:.1,type:"tween"},children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{style:{fontSize:r.Il.size["2xl"],fontFamily:r.Il.fonts.primary,fontWeight:r.Il.weight.regular,lineHeight:r.Il.lineHeight.normal,color:r.AH.primary},children:t}),(0,l.jsx)("span",{style:{fontSize:r.Il.size.base,fontFamily:r.Il.fonts.primary,fontWeight:r.Il.weight.regular,color:r.AH.tertiary},children:"kms"})]}),(0,l.jsx)("div",{className:"h-10 w-px bg-lightgrey"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{style:{fontSize:r.Il.size["2xl"],fontFamily:r.Il.fonts.primary,fontWeight:r.Il.weight.regular,lineHeight:r.Il.lineHeight.normal,color:r.AH.primary},children:i}),(0,l.jsx)("span",{style:{fontSize:r.Il.size.base,fontFamily:r.Il.fonts.primary,fontWeight:r.Il.weight.regular,color:r.AH.tertiary},children:"hours"})]})]}),(0,l.jsxs)(c.P.div,{className:"md:mt-10 mt-6",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1,ease:[.16,1,.3,1],delay:.3,type:"tween"},children:[(0,l.jsx)(o,{title:"Description",className:"md:mb-6 mb-4"}),(0,l.jsx)("p",{className:"max-w-2xl mx-auto",style:{fontSize:r.Il.styles.body.fontSize,fontFamily:r.Il.styles.body.fontFamily,fontWeight:r.Il.styles.body.fontWeight,lineHeight:r.Il.styles.body.lineHeight,color:r.AH.primary},children:s||"No description available."})]})]})};var G=i(13368),J=i.n(G),Y=i(23534),Q=i(97665),Z=i(87628),$=i(42255),ee=i(895);let et=()=>{let e={initial:{opacity:.6},animate:{opacity:[.6,1,.6],transition:{duration:1.5,repeat:1/0,ease:"easeInOut"}}};return(0,l.jsxs)("div",{className:"min-h-screen w-full flex flex-col bg-white",children:[(0,l.jsx)(c.P.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.3},className:"relative w-full h-[400px] md:h-[500px] bg-gray-200",children:(0,l.jsx)(T.A,{className:"h-full w-full"})}),(0,l.jsx)("div",{className:"relative z-50 mt-0 bg-white",children:(0,l.jsxs)(c.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},className:"mx-auto max-w-5xl w-full pt-11 pb-5 bg-white rounded-[2.5rem] -mt-[5rem] z-50 relative overflow-visible",children:[(0,l.jsx)("div",{className:"text-center pb-5",children:(0,l.jsx)(T.A,{height:20,width:120,className:"mx-auto"})}),(0,l.jsx)("div",{className:"px-8",children:(0,l.jsx)(T.A,{height:40,width:"80%",className:"mx-auto"})})]})}),(0,l.jsx)("div",{className:"z-50 bg-white",children:(0,l.jsx)(s,{className:"container",children:(0,l.jsxs)(c.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},className:"flex flex-col md:flex-row gap-4 py-6",children:[(0,l.jsx)(T.A,{height:24,width:150}),(0,l.jsx)(T.A,{height:24,width:150}),(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(T.A,{height:16,width:"100%",count:3})})]})})}),(0,l.jsx)(c.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.4},className:"py-10 bg-white",children:(0,l.jsxs)(s,{children:[(0,l.jsx)(T.A,{height:32,width:200,className:"mb-6"}),(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[1,2,3].map(t=>(0,l.jsxs)(c.P.div,{variants:e,initial:"initial",animate:"animate",className:"bg-white rounded-lg p-4 border border-gray-200",children:[(0,l.jsx)(T.A,{height:200,className:"mb-4 rounded-lg"}),(0,l.jsx)(T.A,{height:24,width:"70%",className:"mb-2"}),(0,l.jsx)(T.A,{height:16,width:"100%",count:2})]},t))})]})}),(0,l.jsx)("div",{className:"z-50 bg-white",children:(0,l.jsx)(s,{children:(0,l.jsxs)(c.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.5},className:"py-10",children:[(0,l.jsx)(T.A,{height:32,width:250,className:"mb-6"}),(0,l.jsx)("div",{className:"space-y-4",children:[1,2,3].map(t=>(0,l.jsxs)(c.P.div,{variants:e,initial:"initial",animate:"animate",className:"flex gap-4 p-4 bg-gray-50 rounded-lg",children:[(0,l.jsx)(T.A,{height:60,width:60,className:"rounded-full"}),(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)(T.A,{height:20,width:"40%",className:"mb-2"}),(0,l.jsx)(T.A,{height:16,width:"100%",count:2})]})]},t))})]})})}),(0,l.jsx)("div",{className:"max-w-7xl mx-auto my-10 px-4",children:(0,l.jsxs)(c.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.6},children:[(0,l.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 mb-4",children:[1,2,3].map(t=>(0,l.jsxs)(c.P.div,{variants:e,initial:"initial",animate:"animate",className:"bg-white rounded-lg p-4 border border-gray-200",children:[(0,l.jsx)(T.A,{height:24,width:"60%",className:"mb-4"}),(0,l.jsx)(T.A,{height:16,width:"100%",count:4})]},t))}),(0,l.jsxs)("div",{className:"flex flex-wrap gap-4 mt-4",children:[(0,l.jsx)("div",{className:"flex-1 min-w-[300px]",children:(0,l.jsxs)(c.P.div,{variants:e,initial:"initial",animate:"animate",className:"bg-white rounded-lg p-4 border border-gray-200",children:[(0,l.jsx)(T.A,{height:28,width:"50%",className:"mb-4"}),(0,l.jsx)(T.A,{height:16,width:"100%",count:5})]})}),(0,l.jsx)("div",{className:"flex-1 min-w-[300px]",children:(0,l.jsxs)(c.P.div,{variants:e,initial:"initial",animate:"animate",className:"bg-white rounded-lg p-4 border border-gray-200",children:[(0,l.jsx)(T.A,{height:24,width:"70%",className:"mb-4"}),(0,l.jsx)(T.A,{height:16,width:"100%",count:4})]})})]})]})})]})};var ei=i(32542),el=!0;function es(e){var t,i,o;let{initialRiders:c,slug:d}=e,h=(0,j.useRouter)(),x=d||h.query.slug,y=(0,Q.jE)();(0,n.useEffect)(()=>{c&&x&&y.setQueryData(["riders-corner","details",x],c)},[c,x,y]),(0,n.useLayoutEffect)(()=>{window.scrollTo(0,0),document.documentElement.scrollTop=0,document.body.scrollTop=0},[h.asPath]),(0,n.useEffect)(()=>{requestAnimationFrame(()=>{window.scrollTo(0,0),document.documentElement.scrollTop=0,document.body.scrollTop=0})},[h.asPath]);let{data:u,isLoading:g,error:v}=(0,P.I)({queryKey:["riders-corner","details",x],queryFn:async()=>
1{if(!x)throw Error("ID or slug is required");let e="/api/travel/riders-corner/details/".concat(x),t=await W.A.get(e),i=null;if(t.data&&(t.data.data?i=t.data.data:(t.data._id||t.data.title)&&(i=t.data)),!i)throw Error("Invalid response structure - no riders data found");return i},enabled:!!x,staleTime:3e5,gcTime:6e5,retry:2,retryDelay:e=>Math.min(1e3*2**e,3e4)}),b=u||c,w=v?v instanceof Error?v.message:"Failed to load Riders.":null,N=()=>{h.push("/chat?new=1")},I=()=>{h.push("/chat")},F=(0,ei.em)((null==b?void 0:b.title)?"".concat(b.title," - Motorcycle Route | Nexgo AI"):void 0),z=(0,ei._8)(null==b?void 0:b.description),S=(0,ei.oK)("/riders-corner/".concat(x),(0,ei.jK)()),A=(0,ei.Et)(null==b?void 0:null===(t=b.imageUrl)||void 0===t?void 0:t[0]);return(0,l.jsx)(ee.NP,{defaultMode:"light",children:(0,l.jsxs)("div",{style:{minHeight:"100vh",backgroundColor:r.t0.primary,display:"flex",width:"100%",maxWidth:"100vw",overflowX:"hidden",boxSizing:"border-box"},children:[(0,l.jsx)(Z.B,{onNewChat:N,onLogoClick:I}),(0,l.jsx)("div",{className:"md:hidden",children:(0,l.jsx)($.n,{onNewChat:N,onLogoClick:I})}),(0,l.jsx)("main",{className:"ml-0 md:ml-[106px] pt-[56px] md:pt-0 flex-1 min-w-0",style:{backgroundColor:r.t0.primary},children:(0,l.jsxs)("div",{className:"min-h-screen bg-background items-center justify-items-center",style:{fontSize:"16px"},children:[(0,l.jsxs)(J(),{children:[(0,l.jsx)("title",{children:F||Y.l1}),(0,l.jsx)("meta",{name:"description",content:z}),(0,l.jsx)("meta",{property:"og:title",content:F||Y.l1}),(0,l.jsx)("meta",{property:"og:description",content:z}),(0,l.jsx)("meta",{property:"og:type",content:"website"}),S&&(0,l.jsx)("meta",{property:"og:url",content:S}),A&&(0,l.jsx)("meta",{property:"og:image",content:A}),(0,l.jsx)("meta",{property:"og:site_name",content:"Nexgo AI"}),(0,l.jsx)("meta",{name:"twitter:card",content:A?"summary_large_image":"summary"}),(0,l.jsx)("meta",{name:"twitter:title",content:F||Y.l1}),(0,l.jsx)("meta",{name:"twitter:description",content:z}),A&&(0,l.jsx)("meta",{name:"twitter:image",content:A})]}),(0,l.jsxs)("div",{className:"min-h-screen w-full flex flex-col",style:{fontSize:"16px"},children:[g&&!b&&(0,l.jsx)(et,{}),w&&!b&&(0,l.jsx)("div",{className:"flex items-center justify-center min-h-screen",children:(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("p",{className:"text-lg text-red-500",children:w}),(0,l.jsx)("p",{className:"text-sm text-gray-500 mt-2",children:"Please try refreshing the page."})]})}),!b&&!g&&!w&&(0,l.jsx)("div",{className:"flex items-center justify-center min-h-screen",children:(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)("p",{className:"text-lg",children:"Route not found"})})}),b&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a,{imageUrl:(null==b?void 0:null===(i=b.imageUrl)||void 0===i?void 0:i[0])||"/assets/images/packages/banner.png"}),(0,l.jsx)("div",{className:"relative z-50 mt-0 bg-white",children:(0,l.jsx)(K,{category:(()=>{if((null==b?void 0:b.categories)&&Array.isArray(b.categories)&&b.categories.length>0){let e=b.categories.map(e=>"string"==typeof e?e:e&&"object"==typeof e&&null!==e&&(e.name||e.title)||"").filter(Boolean);return e.length>0?e:""}if(null==b?void 0:b.category){if("string"==typeof b.category)return b.category;if("object"==typeof b.category&&null!==b.category&&("title"in b.category||"name"in b.category))return b.category.title||b.category.name||""}return""})(),title:null==b?void 0:b.title,slug:x})}),(0,l.jsx)("div",{className:"z-50 bg-white ",children:(0,l.jsx)(s,{className:"container ",children:(0,l.jsx)(X,{distance:null==b?void 0:null===(o=b.totalDistance)||void 0===o?void 0:o.toString(),duration:"".concat(null==b?void 0:b.totalHoursFrom," - ").concat(null==b?void 0:b.totalHoursTo),description:null==b?void 0:b.description})})}),(0,l.jsx)(f,{highlights:null==b?void 0:b.keyHighlights}),(0,l.jsxs)("div",{className:"bg-white relative",style:{zIndex:1,overflow:"hidden"},children:[(0,l.jsx)(s,{children:(0,l.jsx)(D,{routes:null==b?void 0:b.routeOverview})}),(0,l.jsx)("div",{style:{position:"relative",width:"100%",overflow:"hidden"},children:(0,l.jsx)(p,{sections:null==b?void 0:b.additionalInfo})}),(0,l.jsxs)("div",{className:"max-w-7xl mx-auto md:py-16 py-10",children:[(0,l.jsxs)("div",{className:"px-4",children:[(null==b?void 0:b.essentials)&&b.essentials.length>0&&(0,l.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 w-full",children:null==b?void 0:b.essentials.map((e,t)=>(0,l.jsx)(U,{title:e.title,gearList:e.items,index:t},e._id))}),(0,l.jsxs)("div",{className:"flex flex-wrap gap-4 md:mt-10 mt-6 h-full items-stretch z-50 bg-white ",children:[(null==b?void 0:b.safetyTips)&&b.safetyTips.length>0&&(0,l.jsx)("div",{className:"flex md:flex-[2_1_16px] flex-col",children:(0,l.jsx)(B,{items:b.safetyTips})}),(0,l.jsx)("div",{className:"flex-1 md:flex-[1] flex flex-col",children:(0,l.jsx)(m,{conclusionMainText:null==b?void 0:b.conclusionMainText,conclusionClosureText:null==b?void 0:b.conclusionClosureText})})]})]}),(0,l.jsx)(C,{currentRiderSlug:null==b?void 0:b.slug,currentRiderId:null==b?void 0:b._id,createdBy:null==b?void 0:b.createdBy})]})]})]})]})]})})]})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[9965,4909,4335,2717,5024,4892,6788,5251,8323,2657,1037,636,6593,8792],()=>t(70485)),_N_E=e.O()}]); 2//# sourceMappingURL=[slug]-193d7dcd6290ca85.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.