PageSourceSearch

https://www.freerideworldtour.com/_next/static/chunks/902.8718263e69f2e38e.js

js freerideworldtour.com collected 2026-10-02 06:30:50 UTC 4,769 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[902],{742:(e,l,t)=>{t.d(l,{A:()=>r});var a=t(8153),n=t(3604);function r(e){let{className:l,children:t,...r}=e;return(0,a.FD)(a.FK,{children:[(0,a.Y)(n.J,{}),(0,a.Y)("main",{className:l,...r,children:t})]})}},4902:(e,l,t)=>{t.r(l),t.d(l,{default:()=>m});var a=t(8153),n=t(5039),r=t.n(n),o=t(123),s=t.n(o),u=t(9099),i=t(4232),c=t(3009),d=t(7216),p=t(8818),h=t(8233),v=t(742);let g=function(e,l){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.includes(l)?e[e.indexOf(l)+1]:t};function m(e){let{node:l}=e,t=(0,u.useRouter)(),n=(0,p.A)(),o=(0,d.a)(),[m,f]=(0,i.useState)({}),{archivePage:{baseUri:b,posts:y=[],seasons:k=[],postFormats:A=[],events:w=[],pagination:_,highlight:Y=null}}=null!=l?l:{};(0,i.useEffect)(()=>{t.isReady&&f({format:g(t.query.uri,"format"),season:g(t.query.uri,"season"),event:g(t.query.uri,"event"),page:g(t.query.uri,"page")})},[t.isReady,t.query]);let N=(0,i.useMemo)(()=>{var e;return"Category"===l.__typename&&"Replay"===l.title?null:{type:"select",name:"format",defaultValue:null!=(e=null==m?void 0:m.format)?e:"",options:A.reduce((e,l)=>[...e,{label:l.name.replace("Video","Watch").replace("Audio","Listen"),value:l.slug.replace("post-format-","")}],[{label:"All",value:""},{label:"Read",value:"reading"}])}},[l.__typename,l.title,null==m?void 0:m.format,A]),R=(0,i.useMemo)(()=>{var e,l;return"worldchampionships"===o?[]:[{type:"dropdown",name:"season",defaultValue:null!=(e=null==m?void 0:m.season)?e:"",options:k.reduce((e,l,t)=>[...e,{order:t+1,value:l.slug,label:"Season ".concat(l.title)}],[{order:0,value:"",label:"Season (All)"}])},{type:"dropdown",name:"event",defaultValue:null!=(l=null==m?void 0:m.event)?l:"",options:w.reduce((e,l,t)=>[...e,{order:t+1,value:l.slug,label:l.title}],[{order:0,value:"",label:"Event (All)"}])}]},[o,w,null==m?void 0:m.event,null==m?void 0:m.season,k]),C=(0,i.useMemo)(()=>["challenger","qualifier","junior","worldchampionships"].includes(o)&&!b.match(/^\/challenger|qualifier|junior|worldchampionships\//)?"/".concat(o).concat(b):b,[b,o]),P=(0,i.useCallback)(e=>e.reduce((e,l)=>{let{name:t,value:a}=l;return null!==a&&(e[t]=a),e},{...m,page:""}),[m]),F=(0,i.useCallback)(e=>{let l=["format","season","event","page"].reduce((l,t)=>s()(e[t])?l:"".concat(l).concat(t,"/").concat(e[t],"/"),C);t.isReady&&t.pathname!==l&&t.push({pathname:l})},[t,C]),E=(0,i.useCallback)(e=>{F(P(e))},[F,P]),q=(0,i.useMemo)(()=>{var e;let l=t.asPath.replace(/page\/\d+\/?/,"").split("?")[0];if((null!=(e=null==_?void 0:_.total)?e:1)<=1)return{baseUri:l,currentPagination:1,totalPages:1};let a=parseInt(m.page);return Number.isInteger(a)||(a=1),{baseUri:l,currentPagination:a,totalPages:_.total}},[t.asPath,m,_.total]),S=r()("supt-archivePost supt-section");return(0,a.FD)(a.FK,{children:["Page"===l.__typename?(0,a.Y)(h.A,{blocks:null==l?void 0:l.blocksJSON,includes:/^supt\/(header)/g}):(0,a.Y)(c.HeaderText,{title:l.title,introduction:l.description}),(0,a.FD)(v.A,{className:S,onClick:n,children:[(0,a.Y)("div",{className:"supt-archivePost__filters",children:(0,a.FD)("div",{className:"supt-archivePost__filters-inner",children:[N&&(0,a.Y)(c.Filters,{filters:[N],onChange:E}),(0,a.Y)(c.Filters,{filters:R,onChange:E,wrapSize:768})]})}),(0,a.Y)(c.SectionNewsList,{posts:y,highlight:Y,pagination:{...q,onItemClick:e=>{F({...m,page:"".concat(e>1?e:"")})}},showNoResults:!0}),(0,a.Y)(h.A,{blocks:l.blocksJSON,excludes:/^supt\/(header|section-news-highlight)/g})]})]})}},8233:(e,l,t)=>{t.d(l,{A:()=>s});var a=t(8153);t(4232);var n=t(1688),r=t(3009);let o={};for(let e in r){let l=r[e];(null==l?void 0:l.slug)&&(o[l.slug]=l)}function s(e){let{blocks:l,includes:t=/.*/g,excludes:r=/^$/g,isRoot:u=!0,level:i=2}=e,c=i;return(0,a.Y)(a.FK,{children:null==l?void 0:l.map((e,l)=>{let{name:d,...p}=e;if(o[d]&&new RegExp(t).test(d)&&!new RegExp(r).test(d)){let e=o[d];return u&&p.attributes&&0===l&&(c=i-1),(0,a.Y)(e,{slug:d,level:d===n.y?void 0:c+1,...p.attributes,children:p.innerBlocks&&(0,a.Y)(s,{blocks:p.innerBlocks,isRoot:!1,level:c+1})},l)}return null})})}},8818:(e,l,t)=>{t.d(l,{A:()=>n});var a=t(9099);let n=()=>{let e=(0,a.useRouter)();return l=>{var t;let a=l.target.closest("a");!(!(null==a||null==(t=a.getAttribute("href"))?void 0:t.startsWith("/"))||(null==a?void 0:a.getAttribute("target"))&&(null==a?void 0:a.getAttribute("target"))!=="_self"||(null==a?void 0:a.hasAttribute("download")))&&(null!=a&&a.hasAttribute("data-next-link")||(l.preventDefault(),document.documentElement.style.scrollBehavior="auto",e.push("".concat(a.href)).then(()=>{a.hasAttribute("data-no-scrollreset")||(console.log("== scrollTo top from internal link"),window.scrollTo({left:0,top:0})),document.documentElement.style.scrollBehavior=""})))}}}}]);

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.