PageSourceSearch

https://prokosmos.ru/_next/static/chunks/pages/rubric/%5Bslug%5D-a8dc48a8aca359b3.js

js prokosmos.ru collected 2026-09-24 09:23:56 UTC 3,013 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[786],{6851:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/rubric/[slug]",function(){return t(9041)}])},9041:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSP:function(){return k},default:function(){return j}});var l=t(5893),n=t(9008),i=t.n(n),c=t(7294),d=t(3067),a=t(4956),p=t(5898),m=t(6549),o=t(6211);let r=["lg","sm","sm","sm","sm","md","lg","sm","sm","sm","md","xs","xs","lg","sm","sm","sm","md","xs","xs","lg","sm","sm"],u=["lg","sm","sm","lg","md","sm","sm","lg","sm","sm","sm","md","sm","lg","md","sm","sm","sm","lg","lg","sm","sm","lg"];function x(e){let{feed:s,theme:t,slug:n}=e,[i,x]=(0,c.useState)(!1),[g,h]=(0,c.useState)((null==s?void 0:s.length)===0||s.length%18!=0),[f,k]=(0,c.useState)(s),j=0!==f.length?f[f.length-1].publishedAt:void 0,v=(0,c.useCallback)(async()=>{x(!0);try{let e=await fetch("".concat(m.S,"/site/findbyrubricortag?slug=").concat(n,"&limit=",18,"&date=").concat(j,"&rubric=true")),s=await e.json();h(0===s.length||s.length%18!=0),k(e=>{var t;return[...e,...null==s?void 0:null===(t=s.feed)||void 0===t?void 0:t.map(o.t)]})}catch(e){}finally{x(!1)}},[j,n]);(0,c.useEffect)(()=>{k(s),h((null==s?void 0:s.length)===0||s.length%18!=0)},[s]);let _=(0,c.useMemo)(()=>f.map((e,s)=>(0,l.jsx)(a.a,{publication:e,mobileSize:r[s],desktopSize:u[s],color:[0,13,20].includes(s)?"light":[7,22].includes(s)?"dark":[3,6,18].includes(s)?"accent":void 0},e.uuid)),[f]),N=(0,c.useMemo)(()=>(null==_?void 0:_.length)>7?[..._.slice(0,7),(0,l.jsx)(p.Q,{data:t,className:"col-span-2 desktop:col-span-3"},"theme"),..._.slice(7)]:_,[_,t]);return(0,l.jsxs)("div",{className:"bg-white px-[20px] py-[30px] desktop:px-[52px] desktop:py-[50px]",children:[(0,l.jsx)("div",{className:"grid grid-cols-2 gap-x-[20px] gap-y-[30px] desktop:grid-cols-3 desktop:gap-x-[30px] desktop:gap-y-[50px]",children:N}),!g&&(0,l.jsx)(d.z,{title:"Показать еще 18 статей",onClick:v,className:"w-full mt-[30px] desktop:mt-[50px]",disabled:i})]})}var g=t(538);function h(e){let{title:s,tags:t}=e;return(0,l.jsxs)("div",{className:"flex flex-col gap-5 pt-[40px] desktop:pt-[50px] px-[20px] desktop:px-[52px]",children:[(0,l.jsx)("h1",{className:"font-medium text-primary text-[28px]/[34px] desktop:text-[44px]/[52px] tracking-[0.84px] desktop:tracking-[1.32px]",children:s}),(0,l.jsx)(g.$,{tags:t})]})}function f(e){let{name:s,feed:t,tags:n,theme:i,slug:c}=e;return(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"max-w-[1300px] mx-auto",children:[(0,l.jsx)(h,{title:s,tags:n}),(0,l.jsx)(x,{feed:t,theme:i,slug:c})]})})}var k=!0;function j(e){let{feed:s,name:t,slug:n,tags:c,theme:d,seo:a}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(i(),{children:[a.title&&(0,l.jsx)("title",{children:a.title}),a.description&&(0,l.jsx)("meta",{name:"description",content:a.description},"description")]}),(0,l.jsx)(f,{name:t,feed:s,tags:c,theme:d,slug:n})]})}}},function(e){e.O(0,[672,774,888,179],function(){return e(e.s=6851)}),_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.