PageSourceSearch

https://cycling74.com/_next/static/chunks/pages/account/activity-0f5715c01331f9fc.js

js cycling74.com collected 2026-09-24 08:32:41 UTC 5,789 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2942],{20108:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/activity",function(){return t(92683)}])},73670:function(e,n,t){"use strict";t.d(n,{N:function(){return o}});var s=t(24246),i=t(44221),r=t(24566),c=t(17791),a=t(38978),l=t(23726);let o=e=>{let{handleChange:n,currentSelection:t,showPrivateOptions:o=!0}=e,{user:u}=(0,i.a)(),p=(0,l.N)("Account.activity.filters.type");return(0,s.jsx)(r.x.Autosize,{maw:"100%",children:(0,s.jsx)(c.m,{value:t,onChange:e=>n(e),mb:"md",style:{flexWrap:"nowrap"},children:(0,s.jsxs)(c.m.List,{children:[(0,s.jsx)(c.m.Tab,{value:a.I9.FORUM,children:p("options.forums")}),(0,s.jsx)(c.m.Tab,{value:a.I9.REPLIES,children:p("options.replies")}),(0,s.jsx)(c.m.Tab,{value:a.I9.PROJECT,children:p("options.projects")}),(0,s.jsx)(c.m.Tab,{value:a.I9.TOOL,children:p("options.tools")}),u.isAdmin()?(0,s.jsx)(c.m.Tab,{value:a.I9.ARTICLE,children:p("options.articles")}):null,o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.m.Tab,{value:a.I9.FAVORITES,children:p("options.bookmarks")}),(0,s.jsx)(c.m.Tab,{value:a.I9.SUBSCRIPTIONS,children:p("options.subscriptions")})]}):null]})})})}},16698:function(e,n,t){"use strict";var s=t(24246),i=t(80929),r=t(23615),c=t.n(r);let a=e=>`https://secure.gravatar.com/avatar/${e||"00000000000000000000000000000000"}?s=160&d=mm&r=g`,l=e=>{let{alt:n="icon",id:t,size:r=100}=e,c="number"==typeof r?`${r}px`:r;return(0,s.jsx)(i.E,{alt:n,src:a(t),w:c,h:c})};l.propTypes={alt:c().string,className:c().string,id:c().string,size:c().oneOfType([c().number,c().arrayOf(c().string)])},n.Z=l},1660:function(e,n,t){"use strict";t.d(n,{T:function(){return m}});var s=t(80569),i=t.n(s),r=t(8139),c=t(76131),a=t(38978),l=t(20317),o=t(44221);let u=async(e,n)=>{try{return(await (0,l.ys)(i().get((0,l.Gr)(e))).query(n).set("Accept","application/json").timeout({response:5e3}).withCredentials()).body}catch(e){return console.log(e),[]}},p=[a.nn.PENDING,a.nn.PUBLIC,a.nn.DRAFT,a.nn.TRASH,a.nn.SPAM],d=[a.nn.PENDING,a.nn.PUBLIC],x={[a.I9.ARTICLE]:[a.A2.ARTICLE,a.A2.TUTORIAL],[a.I9.FORUM]:a.A2.FORUM,[a.I9.PROJECT]:a.A2.PROJECT,[a.I9.TOOL]:a.A2.TOOL,[a.I9.REPLIES]:"replies"},m=e=>{let{id:n,type:t=a.I9.FORUM,page:s=1,perPage:i=10}=e,{user:l}=(0,o.a)(),m=[a.I9.FAVORITES,a.I9.SUBSCRIPTIONS].includes(t),h=m?`/authors/${encodeURIComponent(n)}/${t}?${(0,r.stringify)({pageNum:s})}`:"/profile-posts",j=m?{}:{user_id:n,sort:t===a.I9.REPLIES?"-replies_last_created_at":null,status:l?.isAdmin()?p:l._id===n?d:[a.nn.PUBLIC],type:x[t]||null,pageNum:s,perPage:i},{data:g,error:_}=(0,c.ZP)([h,j],u);return{isLoading:!g&&!_,error:_,posts:g?.results||[],page:g?.page||s,perPage:g?.perPage||i,total:g?.total||0}}},67736:function(e,n,t){"use strict";t.d(n,{p:function(){return y}});var s=t(24246),i=t(88038),r=t.n(i),c=t(43078),a=t(58278),l=t(356),o=t(8207),u=t(28008),p=t(16698),d=t(60967),x=t(79894),m=t.n(x),h=t(86677),j=t(89250),g=t.n(j),_=t(23726);let v=e=>{let{href:n,text:t}=e,{pathname:i}=(0,h.useRouter)(),r=i===n||i.includes(t.toLowerCase());return(0,s.jsx)(d.e,{component:m(),href:n,c:"dark.6",fw:r?"bold":"normal",td:"none",className:r?g().accountLinkActive:g().accountLink,children:t})},I=()=>{let e=(0,_.N)("Account.menu");return(0,s.jsxs)(l.Z,{gap:"lg",children:[(0,s.jsx)(v,{href:"/account/licenses",text:e("licenses")}),(0,s.jsx)(v,{href:"/account/activity",text:e("activity")}),(0,s.jsx)(v,{href:"/account/settings",text:e("settings")})]})};var f=t(44221),T=t(99602);let y=e=>{let{children:n}=e,t=(0,_.N)("Account.layout"),{user:i}=(0,f.a)();return(0,s.jsxs)(c.W,{children:[(0,s.jsx)(r(),{children:(0,s.jsx)("meta",{name:"robots",content:"noindex"},"robots")}),(0,s.jsxs)(a.x,{mb:"lg",children:[(0,s.jsxs)(l.Z,{gap:"lg",align:"center",children:[(0,s.jsx)(a.x,{maw:{base:60,sm:120},children:(0,s.jsx)(p.Z,{size:["60px","120px"],id:i.profile?.gravatar})}),(0,s.jsxs)(o.K,{gap:"sm",children:[(0,s.jsxs)(o.K,{gap:0,children:[(0,s.jsx)(u.D,{order:2,children:t("title")}),(0,s.jsxs)(l.Z,{gap:"xs",visibleFrom:"sm",children:[(0,s.jsx)(u.D,{order:4,children:(0,T.ED)(i.profile)}),(0,s.jsxs)(u.D,{order:4,c:"dimmed",children:["(",i.profile.email,")"]})]})]}
1),(0,s.jsx)(a.x,{visibleFrom:"sm",children:(0,s.jsx)(I,{})})]})]}),(0,s.jsx)(a.x,{hiddenFrom:"sm",my:"lg",children:(0,s.jsx)(I,{})})]}),n]})}},92683:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return _}});var s=t(24246),i=t(27378),r=t(90991),c=t(76556),a=t(28008),l=t(73670),o=t(51087),u=t(28254),p=t(23464),d=t(38978),x=t(1660),m=t(44221),h=t(67736),j=t(23726);let g=()=>{let e=(0,j.N)("Account.activity"),{user:n,loading:t}=(0,m.a)(),[g,_]=(0,i.useState)({type:d.I9.FORUM,page:1,perPage:10}),{error:v,isLoading:I,posts:f,page:T,perPage:y,total:L}=(0,x.T)({...g,id:n?._id});return I||t?(0,s.jsx)(r.M,{py:"xl",children:(0,s.jsx)(c.a,{})}):v?(0,s.jsx)(r.M,{py:"xl",children:(0,s.jsx)(a.D,{order:4,children:e("error.content")})}):(0,s.jsxs)(h.p,{children:[(0,s.jsx)(p.Z,{title:e("title")}),(0,s.jsx)(l.N,{handleChange:e=>_({type:e,page:1,perPage:10}),currentSelection:g.type}),(0,s.jsx)(o.Z,{...g.type===d.I9.REPLIES?{userId:n?._id,isProfileReply:!0}:{},items:f,listEl:u.Z,onPageSelect:e=>{window.scrollTo(0,0),_({...g,page:e})},page:T,perPage:y,total:L,noResultsMessage:e("noResults.content")})]})};g.propTypes={},g.accessLevel=d.qz.USER;var _=!0;n.default=g},89250:function(e){e.exports={activeLicense:"account_activeLicense__Mlxs9",activeSublicense:"account_activeSublicense__UGW3v",inactiveLicense:"account_inactiveLicense__1y0Ls",inactiveSublicense:"account_inactiveSublicense__Jo2Nl",accountLink:"account_accountLink__UzTXx",accountLinkActive:"account_accountLinkActive__yv6Sn"}}},function(e){e.O(0,[8139,1216,1959,8159,6131,6835,2382,2888,9774,179],function(){return e(e.s=20108)}),_N_E=e.O()}]);

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.