PageSourceSearch

https://www.ptsplus.tv/_next/static/chunks/pages/categories/[id]-7746b11724d56b75.js

js ptsplus.tv collected 2026-10-01 11:55:13 UTC 2,797 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8609],{40796:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/categories/[id]",function(){return i(87283)}])},87283:function(e,n,i){"use strict";i.r(n),i.d(n,{CategoriesIndex:function(){return _},__N_SSP:function(){return k},default:function(){return x}});var o=i(52322),l=i(20746),t=i(5632),a=i(38057),d=i(81577),r=i(9232),u=i(63955),c=i(99397),s=i(32124),v=i(2784),m=i(8992),g=i(71310),f=i.n(g);var b=function(e){const{currentLabelId:n}=e,i=(0,t.useRouter)().query.id,{data:a,loading:d}=(0,c.X8)({fetchPolicy:"cache-only",variables:{type:i},skip:!i}),r=(0,v.useMemo)((()=>{var e;const i=(null!==(e=null===a||void 0===a?void 0:a.guides)&&void 0!==e?e:[]).slice(1);return n?i.filter((e=>e.marketingLabel.id===n)):i}),[null===a||void 0===a?void 0:a.guides,n]);return(0,o.jsx)(m.Z,{loading:d,children:(0,o.jsx)(o.Fragment,{children:r.map((e=>(0,o.jsx)(l.J6,{subjectTitle:e.marketingLabel.name,resolveSubjectLink:()=>"/subject/".concat(e.marketingLabel.id),videos:e.marketingLabel.videos,className:f().container},e.id)))})})};const h="all";function p(){var e,n;const i=(0,t.useRouter)(),m=null===i||void 0===i||null===(e=i.query)||void 0===e?void 0:e.id;var g;const f=null!==(g=null===(n=a.g.find((e=>e.id===m)))||void 0===n?void 0:n.name)&&void 0!==g?g:"",{t:p}=(0,d.$G)("common"),{data:j}=(0,c.X8)({fetchPolicy:"cache-only",variables:{type:m},skip:!m}),k=(0,v.useMemo)((()=>{var e;return[{id:h,name:p("options.all")}].concat((null!==(e=null===j||void 0===j?void 0:j.guides)&&void 0!==e?e:[]).map((e=>({id:e.marketingLabel.id,name:e.marketingLabel.name}))))}),[null===j||void 0===j?void 0:j.guides,p]),_=(0,u.cI)({defaultValues:{label:h}}),x=_.watch("label")||"",y=(0,v.useMemo)((()=>x!==h?x:void 0),[x]);return(0,o.jsxs)(r.Z,{methods:_,children:[(0,o.jsxs)(l.V1,{title:p(f),children:[(0,o.jsx)(s.Z,{registerName:"label",options:k,rounded:!0}),(0,o.jsx)(l.ze,{})]}),(0,o.jsx)(l.nF,{currentLabelId:y}),(0,o.jsx)(b,{currentLabelId:y})]})}var j=function(){const e=(0,t.useRouter)().query.id,{loading:n}=(0,c.X8)({fetchPolicy:"cache-and-network",variables:{type:e},skip:!e});return(0,o.jsx)(l.SX,{loading:n,children:(0,o.jsx)(p,{})})},k=!0;function _(e){let{pageData:n,locale:i}=e;var r;const u=(0,t.useRouter)(),c=null===u||void 0===u||null===(r=u.query)||void 0===r?void 0:r.id,{t:s}=(0,d.$G)("common"),v=a.g.find((e=>e.id===c));var m,g;return(0,o.jsx)(l.T3,{withTopPadding:!0,locale:i,title:v?s(v.name):void 0,description:null!==(m=null===n||void 0===n?void 0:n.introduction)&&void 0!==m?m:void 0,ogImage:null!==(g=null===n||void 0===n?void 0:n.cover)&&void 0!==g?g:void 0,children:(0,o.jsx)(j,{})})}var x=_}},function(e){e.O(0,[4452,9097,8796,746,2888,9774,179],(function(){return n=40796,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.