PageSourceSearch

https://www.trialsitenews.com/_next/static/chunks/pages/topics/[tagSlug]-699aa75253beac1e.js

js trialsitenews.com collected 2026-09-24 08:55:46 UTC 9,711 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5388],{12881:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSP:()=>J,default:()=>K});var n=i(37876),o=i(57786),d=i(89099),a=i(38992),r=i(10429),l=i(16359),c=i(855),s=i(15823);i(34916);var p=i(48230),x=i.n(p),h=i(36392),m=i(80582),u=i(1992),g=i(39296),f=i(2593);let w=async e=>{let{type:t="Trending",page:i,limit:n=20,accessToken:o,tagSlug:d}=e,{data:a,headers:{"x-total-results":r}}=await f.A.get("/public/questions/feed?type=".concat(t,"&page=").concat(i,"&limit=").concat(n,"&tagSlugs=").concat(d),{headers:{Authorization:"Bearer ".concat(o)}});return{list:a,total:r}},y=async e=>{let{type:t,page:i,tagSlug:n,accessToken:o}=e;if("questions"===t)return await w({page:i,accessToken:o,tagSlug:n});let{data:d,headers:{"x-total-results":a}}=await f.A.get("/public/articles/feed?type=".concat(t,"&page=").concat(i,"&limit=20&tagSlug=").concat(n));return{list:d,total:a}},v=async()=>{let{data:e}=await f.A.get("/public/trending-topics");return{list:g.A(e=>({label:e.name,value:e.slug}),e)}},A=async()=>{let{data:e,headers:{"x-total-results":t}}=await f.A.get("/public/top-writers?page=1&limit=10");return{list:e,total:t}};c.Ay.div.withConfig({componentId:"sc-90a36d82-0"})(["display:flex;width:100%;padding:0 160px 72px;justify-content:center;","{padding:0 60px 72px;}","{padding:0 32px 56px;flex-direction:column;}","{padding:0 16px 56px;flex-direction:column;}"],e=>{let{theme:t}=e;return t.media.desktop},e=>{let{theme:t}=e;return t.media.tablet},e=>{let{theme:t}=e;return t.media.phone}),c.Ay.div.withConfig({componentId:"sc-90a36d82-1"})(["display:flex;justify-content:space-between;height:100%;width:100%;max-width:1440px;","{flex-direction:column;}"],e=>{let{theme:t}=e;return t.media.tabletMini}),c.Ay.div.withConfig({componentId:"sc-90a36d82-2"})(["display:flex;flex-direction:column;width:100%;margin-right:88px;","{margin-right:48px;}","{margin:0;}"],e=>{let{theme:t}=e;return t.media.tablet},e=>{let{theme:t}=e;return t.media.phone}),c.Ay.div.withConfig({componentId:"sc-90a36d82-3"})(["padding:32px 0;display:flex;flex-direction:column;overflow-y:auto;"]),c.Ay.div.withConfig({componentId:"sc-90a36d82-4"})(["display:flex;flex-direction:column;align-items:center;","{min-width:65vw;}"],e=>{let{theme:t}=e;return t.media.tablet}),c.Ay.div.withConfig({componentId:"sc-90a36d82-5"})(["color:",";"],e=>{let{theme:t}=e;return t.colors.grey}),c.Ay.div.withConfig({componentId:"sc-90a36d82-6"})(["flex:1;display:flex;width:100%;& + &{margin-top:32px;}","{flex-direction:column;}"],e=>{let{theme:t}=e;return t.media.phone}),c.Ay.div.withConfig({componentId:"sc-90a36d82-7"})(["height:144px;min-width:272px;max-width:272px;border-radius:0px;background-color:",";margin-right:16px;position:relative;cursor:pointer;","{max-width:unset;width:100%;height:193px;margin-bottom:24px;}"],e=>{let{theme:t}=e;return t.colors.grey},e=>{let{theme:t}=e;return t.media.phone});let b=c.Ay.img.withConfig({componentId:"sc-90a36d82-8"})(["height:100%;width:100%;object-position:center;object-fit:cover;"]);c.Ay.div.withConfig({componentId:"sc-90a36d82-9"})(["display:flex;flex-direction:column;width:100%;"]),(0,c.Ay)(x()).withConfig({componentId:"sc-90a36d82-10"})(["display:flex;align-items:center;cursor:pointer;width:fit-content;"]);let C=c.Ay.div.withConfig({componentId:"sc-90a36d82-11"})(["background-color:",";color:",";border-radius:50%;height:24px;width:24px;margin-right:8px;display:flex;align-items:center;justify-content:center;overflow:hidden;"],e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.colors.primaryL});c.Ay.div.withConfig({componentId:"sc-90a36d82-12"})([""]),c.Ay.h3.withConfig({componentId:"sc-90a36d82-13"})([""," font-size:22px;cursor:pointer;max-width:600px;"],e=>{let{theme:t}=e;return t.font.h3}),c.Ay.div.withConfig({componentId:"sc-90a36d82-14"})(["color:",";margin-top:auto;"],e=>{let{theme:t}=e;return t.colors.grey}),(0,c.Ay)(x()).withConfig({componentId:"sc-90a36d82-15"})(["text-decoration:unset;color:",";"],e=>{let{theme:t}=e;return t.colors.black}),(0,c.Ay)(m.MDh).withConfig({componentId:"sc-90a36d82-16"})(["font-size:20px;margin-right:6px;margin-top:5px;"]),(0,c.Ay)(x()).withConfig({componentId:"sc-90a36d82-17"})(["display:flex;align-items:center;margin-right:20px;&:hover{cursor:pointer;color:",";}@media screen and (max-width:1400px){margin:0 0 0 20px;}"],e=>{let{theme:t}=e;return t.colors.primary}),c.Ay.div.withConfig({componentId:"sc-90a36d82-18"})(["display:flex;align-items:center;@media screen and (max-width:1400px){flex-direction:row-reverse;margin-top:5px;}"]),c.Ay.div.withConfig({componentId:"sc-90a36d82-19"})(["display:flex;align-items:center;justify-content:space-between;width:100%;@media screen and (max-width:1400px){flex-direction:column;align-items:flex-start;}"]);let I=c.Ay.div.withConfig({componentId:"sc-90a36d82-20"})(["width:100%;max-width:300px;display:flex;flex-direction:column;margin-top:9px;padding-bottom:20px;height:fit-content;","{flex-direction:row;max-width:unset;}","{flex-direction:column;}"],e=>{let{theme:t}=e;return t.media.tabletMini},e=>{let{theme:t}=e;return t.media.phone}),j=c.Ay.div.withConfig({componentId:"sc-90a36d82-21"})(["flex:1;"]),T=c.Ay.div.withConfig({componentId:"sc-90a36d82-22"})([""," margin-bottom:24px;"],e=>{let{theme:t}=e;return t.font.h3}),_=c.Ay.div.withConfig({componentId:"sc-90a36d82-23"})(["display:flex;flex-wrap:wrap;margin:-4px;padding-bottom:36px;"]),k=(0,c.Ay)(s.vw).withConfig({componentId:"sc-90a36d82-24"})(["margin:4px;padding:12px;cursor:pointer;"]),P=c.Ay.div.withConfig({componentId:"sc-90a36d82-25"})(["display:flex;flex-direction:column;"]),N=(0,c.Ay)(x()).withConfig({componentId:"sc-90a36d82-26"})(["display:flex;cursor:pointer;width:fit-content;& + &{margin-top:16px;}"]),S=(0,c.Ay)(C).withConfig({componentId:"sc-90a36d82-27"}
1)(["height:48px;width:48px;min-height:48px;min-width:48px;text-transform:uppercase;"]),L=c.Ay.div.withConfig({componentId:"sc-90a36d82-28"})(["display:flex;flex-direction:column;"]),q=c.Ay.div.withConfig({componentId:"sc-90a36d82-29"})(["color:",";",""],e=>{let{theme:t}=e;return t.colors.grey},e=>{let{theme:t}=e;return t.font.body2}),E=e=>{let{username:t,profileImage:i,firstName:o,lastName:d,singleLineStatement:a}=e,r="/p/".concat(t);return(0,n.jsxs)(N,{href:r,children:[(0,n.jsx)(S,{children:i?(0,n.jsx)(b,{src:i}):h.A(t)}),(0,n.jsxs)(L,{children:["".concat(o||t," ").concat(d||""),(0,n.jsx)(q,{children:a})]})]})},M=()=>{let{data:e={}}=(0,u.useQuery)(["tags",{}],()=>v(),{fetchPolicy:"no-cache"}),{data:t={}}=(0,u.useQuery)(["others",{}],()=>A(),{fetchPolicy:"no-cache"}),{list:i=[]}=e,{list:o=[]}=t;return(0,n.jsxs)(I,{children:[(0,n.jsxs)(j,{children:[(0,n.jsx)(T,{children:"People also follow"}),(0,n.jsx)(_,{children:i.map(e=>(0,n.jsx)(x(),{href:"/topics/".concat(null==e?void 0:e.value),passHref:!0,children:(0,n.jsx)(k,{label:e.label})},e.label))})]}),(0,n.jsxs)(j,{children:[(0,n.jsx)(T,{children:"Top writers"}),(0,n.jsx)(P,{children:o.map(e=>(0,n.jsx)(E,{...e},e.username))})]})]})},z=(0,c.Ay)(l.A).withConfig({componentId:"sc-26517d79-0"})(["padding-top:0;"]),Q=[{label:"Latest",value:"Latest",componentType:"Article"},{label:"Trending",value:"Trending",componentType:"Article"},{label:"Questions",value:"questions",emptyMessage:"No questions to show",componentType:"Question"}],B=e=>{let{tagSlug:t}=e,i=(0,d.useRouter)(),{tab:o="Latest"}=i.query,l=a.A(r.A(o,"value"),Q)?o:"published",c=async e=>{let{type:i,page:n,accessToken:o}=e;return await y({type:i,page:n,tagSlug:t,accessToken:o})};return(0,n.jsx)(z,{customTabs:Q||[],onChangeTab:e=>{var n;null==(n=window)||n.scroll(0,0),i.push("/topics/".concat(t,"?tab=").concat(e),void 0,{shallow:!0})},onChangePage:e=>{var n;null==(n=window)||n.scroll(0,0),i.push("/topics/".concat(t,"?tab=").concat(l,"&page=").concat(e),void 0,{shallow:!0})},onLoadFeed:c,disableAskButton:!0,defaultTab:"Latest",CustomSidebar:(0,n.jsx)(M,{})})};B.defaultProps={},B.propTypes={};let O=(0,o.Z)(B);var X=i(77328),D=i.n(X);let F=c.Ay.div.withConfig({componentId:"sc-dfb0878a-0"})(["display:flex;align-items:center;justify-content:center;width:100%;padding:64px 160px 32px;","{padding:64px 60px 32px;}","{padding:56px 32px 28px;flex-direction:column;}","{padding:30px 16px;flex-direction:column;}"],e=>{let{theme:t}=e;return t.media.desktop},e=>{let{theme:t}=e;return t.media.tablet},e=>{let{theme:t}=e;return t.media.phone}),H=c.Ay.div.withConfig({componentId:"sc-dfb0878a-1"})(["display:flex;align-items:center;height:100%;width:100%;max-width:1440px;","{flex-direction:column;}"],e=>{let{theme:t}=e;return t.media.tabletMini}),R=c.Ay.h1.withConfig({componentId:"sc-dfb0878a-2"})([""," margin:0;max-width:1440px;"],e=>{let{theme:t}=e;return t.font.h1}),W=e=>{let{data:t,user:i}=e;return(0,n.jsxs)(F,{children:[(0,n.jsx)(D(),{children:(0,n.jsxs)("title",{children:["TSN - ",null==t?void 0:t.name]})}),(0,n.jsxs)(H,{children:[(0,n.jsxs)(R,{children:["# ",null==t?void 0:t.name]}),i&&(0,n.jsx)(s.Wc,{style:{marginLeft:20,marginTop:10},size:"medium",tagSlug:null==t?void 0:t.slug},"follow-".concat(null==t?void 0:t.slug))]})]})};W.defaultProps={},W.propTypes={};let Z=c.Ay.div.withConfig({componentId:"sc-fbafd8ee-0"})(["display:flex;flex-direction:column;align-items:center;"]),G=e=>{let{data:t}=e;return(0,n.jsxs)(Z,{children:[(0,n.jsx)(W,{...e}),(0,n.jsx)(O,{...e})]},null==t?void 0:t.name)};G.defaultProps={},G.propTypes={};var J=!0;let K=e=>(0,n.jsx)(G,{...e})},50104:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/topics/[tagSlug]",function(){return i(12881)}])}},e=>{var t=t=>e(e.s=t);e.O(0,[9942,2236,2768,3302,7236,3553,4219,8120,6359,636,6593,8792],()=>t(50104)),_N_E=e.O()}]);
2//# sourceMappingURL=[tagSlug]-699aa75253beac1e.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.