PageSourceSearch

https://www.theringer.com/_next/static/chunks/pages/search-52328c557634113f.js

js theringer.com collected 2026-10-02 02:13:47 UTC 4,436 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cf767e96-c692-4b51-869a-ce349be0a734",e._sentryDebugIdIdentifier="sentry-dbid-cf767e96-c692-4b51-869a-ce349be0a734")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9603],{68389:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return r(43158)}])},43158:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return j},default:function(){return I}});var n=r(52322),a=r(7181),l=r(85414),s=r(19329),o=r(68476),u=r(43767),i=r(97729),c=r.n(i),d=r(5632),f=r(2784),h=r(81515),y=r(63198),p=r(99841),x=r(86239),b=r(42180),m=r(78298),w=r(22884),g=r(64750),v=r(36383);let _=(e,t)=>{let{search:r,filter:n,limit:a}=t,l=new URLSearchParams;return r&&l.append("search",r),n&&l.append("types",n),a&&l.append("limit",String(a)),l.append("types","episode,post,category,show,creator,microsite"),"".concat(e,"?").concat(l.toString())};var E=r(80724),S=r(43705),j=!0;function I(){let e=(0,d.useRouter)(),t=(0,S.uv)(e.query[a.hh.TYPE]),r=(0,S.uv)(e.query[a.hh.SEARCH]),i=Number((0,S.uv)(e.query[a.hh.LIMIT]))||(t?a.j2.SEARCH:0),j=(0,E.W)({debounce:0}),I=""===t?"all":t,[k,T]=(0,f.useState)(t);(0,f.useEffect)(()=>{T(I)},[I]);let{data:N}=function(e){let{search:t,filter:r,limit:n}=e,a=t.trim(),l=_("".concat(w.vA,"/grouped"),{search:a,filter:r,limit:n}),{updateSearchHistory:s}=function(){let[e,t]=(0,v._)(w.$c.SEARCH_HISTORY,[]),r=(0,f.useRef)("");return{updateSearchHistory:(0,f.useCallback)(e=>{if(""===e)return;let n=r.current,a=n&&e.startsWith(n);r.current=e,t(t=>{let r=t.indexOf(e);if(r>-1)return[e,...t.slice(0,r),...t.slice(r+1)];if(a&&t[0]===n)return[e,...t.slice(1)];let l=[e,...t];return l.length>w.$c.SEARCH_HISTORY_LIMIT&&l.pop(),l})},[t])}}(),{data:o,error:u,isLoading:i,isSuccess:c}=(0,b.a)({queryKey:[w.U7.SEARCH,{search:t,filter:r,limit:n}],queryFn:async()=>{let e=await fetch(l);if(!e.ok)throw Error("Network response was not ok");let t=await g.NK.parseAsync(await e.json());return t.groups.sort((e,t)=>"category"===e.type?-1:"category"===t.type?1:0),t},placeholderData:m.Wk,enabled:!!a,refetchOnWindowFocus:!1,refetchOnMount:!1,retry:!1});return(0,f.useEffect)(()=>{c&&s(a)},[c,a,s]),(0,f.useEffect)(()=>{u&&(0,x.Tb)(u,{extra:{search:a,url:l}})},[u,a,l]),{data:o,isLoading:i}}({search:r,filter:t,limit:i});return(0,n.jsxs)(o.f6,{theme:"white","data-sentry-element":"ThemeProvider","data-sentry-component":"Page","data-sentry-source-file":"index.tsx",children:[(0,n.jsx)(c(),{"data-sentry-element":"Head","data-sentry-source-file":"index.tsx",children:(0,n.jsx)("title",{children:"Search"})}),(0,n.jsx)(y.h4,{hasSearchpopup:!1,"data-sentry-element":"Header","data-sentry-source-file":"index.tsx"}),(0,n.jsxs)(p.Z.Main,{"data-sentry-element":"unknown","data-sentry-source-file":"index.tsx",children:[(0,n.jsx)(p.Z.Section,{className:"hide-scroll !-mr-4 lg:!-ml-8 lg:!-mr-8 -ml-4 flex overflow-x-auto border-black/20 border-t border-b px-4 py-4 lg:px-8",noPadding:!0,"data-sentry-element":"unknown","data-sentry-source-file":"index.tsx",children:(0,n.jsx)(u.t,{className:"md:mx-auto",defaultValue:I,onValueChange:e=>{if(e){if(T(e),"all"===e){j({value:{[a.hh.TYPE]:void 0,[a.hh.LIMIT]:void 0},queryKey:[w.U7.SEARCH]});return}j({value:{[a.hh.TYPE]:e,[a.hh.LIMIT]:void 0},queryKey:[w.U7.SEARCH]})}},type:"single",value:k,"data-sentry-element":"ToggleGroup","data-sentry-source-file":"index.tsx",children:[{label:"All",value:"all"},{label:"Articles",value:"post"},{label:"Episodes",value:"episode"},{label:"Shows",value:"show"},{label:"Projects",value:"microsite"}].map(e=>(0,n.jsx)(u.G,{"aria-label":e.label,className:"text-body-sm-regular",size:"no-size",value:e.value,variant:"outline",children:e.label},e.value))})}),(0,n.jsx)(p.Z.Section,{className:"fluid-width fluid-space col-span-full flex min-h-[300px] flex-col overflow-visible lg:col-span-8 lg:col-start-3","data-sentry-element":"unknown","data-sentry-source-file":"index.tsx",children:(null==N?void 0:N.groups.length)||!r?(0,n.jsx)(l.l,{data:N,direction:t?"column":"row",hideButtons:"all"!==k,large:!0,searched:r}):(0,n.jsx)(s.X,{})})]}),(0,n.jsx)(h.$,{"data-sentry-element":"Footer","data-sentry-source-file":"index.tsx"})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=68389)}),_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.