PageSourceSearch

https://prokosmos.ru/_next/static/chunks/pages/photo-f4797fe1853ef3c1.js

js prokosmos.ru collected 2026-09-24 09:24:06 UTC 5,681 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[984],{3454:function(t,e,n){"use strict";var o,r;t.exports=(null==(o=n.g.process)?void 0:o.env)&&"object"==typeof(null==(r=n.g.process)?void 0:r.env)?n.g.process:n(7663)},5417:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/photo",function(){return n(9876)}])},9876:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSG:function(){return g},default:function(){return y}});var o=n(5893),r=n(4184),i=n.n(r),l=n(7484),u=n.n(l),c=n(7294),a=n(3067),s=n(4956),d=n(6549),p=n(6211);let f=["lg","sm","sm","lg","md","sm","sm"],v=["light",void 0,void 0,"accent",void 0,void 0,void 0];function h(t){var e,n;let{feed:r}=t,[l,h]=(0,c.useState)(!1),[x,m]=(0,c.useState)((null==r?void 0:r.length)%14!=0),[g,y]=(0,c.useState)(r),k=null!==(n=null===(e=g[g.length-1])||void 0===e?void 0:e.publishedAt)&&void 0!==n?n:u()().toISOString(),b=(0,c.useCallback)(async()=>{h(!0);try{let t=await fetch("".concat(d.S,"/site/feed?limit=").concat(14,"&date=").concat(k,"&types=photo")),e=await t.json();m(0===e.length||e.length%14!=0),y(t=>[...t,...null==e?void 0:e.map(p.t)])}catch(t){}finally{h(!1)}},[k]);return(0,o.jsxs)("div",{className:i()("bg-white px-[20px] py-[30px] desktop:px-[52px] desktop:py-[50px]","max-w-[1300px] mx-auto"),children:[(0,o.jsx)("div",{className:i()("flex flex-col gap-[30px] desktop:grid desktop:grid-cols-3 desktop:gap-x-[30px] desktop:gap-y-[50px]"),children:g.map((t,e)=>(0,o.jsx)(s.a,{publication:t,mobileSize:f[e%7],desktopSize:f[e%7],color:v[e%7]},t.uuid))}),!x&&(0,o.jsx)(a.z,{title:"Показать ещё",onClick:b,className:"w-full mt-[30px] desktop:mt-[50px]",disabled:l})]})}function x(){return(0,o.jsx)("div",{className:i()("pt-[40px] desktop:pt-[50px] px-[20px] desktop:px-[52px]"),children:(0,o.jsx)("h1",{className:"font-medium text-primary text-[28px]/[34px] desktop:text-[44px]/[52px] tracking-[0.84px] desktop:tracking-[1.32px]",children:"Фотогалерея"})})}function m(t){let{feed:e}=t;return(0,o.jsxs)("div",{className:"w-full grow max-w-[1300px] mx-auto",children:[(0,o.jsx)(x,{}),(0,o.jsx)(h,{feed:e})]})}var g=!0;function y(t){let{feed:e}=t;return(0,o.jsx)(m,{feed:e})}},6211:function(t,e,n){"use strict";function o(t){var e,n,o,r,i,l,u,c;let{id:a,url:s,url_id:d,content:p,tags:f,published_at:v,cover:h,authors:x,count_photo:m}=t,{images:g}=null!=h?h:{},[y]=null!=x?x:[];return g&&Object.keys(g).forEach(t=>{var e;g[t]={url:null===(e=g[t])||void 0===e?void 0:e.url}}),{uuid:a,url:null!=s?s:d,title:null!==(r=null==p?void 0:p.title)&&void 0!==r?r:"",lead:function(t){var e;if(!t)return"";let n=JSON.parse(t);if(null==n?void 0:n.blocks){let n=null===(e=JSON.parse(t))||void 0===e?void 0:e.blocks,o=n.map(t=>{var e;let{data:n}=t;return null==n?void 0:null===(e=n.text)||void 0===e?void 0:e.replace(/<[^>]*>/g,"")}).join(" ").replace(/&nbsp;/g," ");return o}let o="";try{o=function t(e){let{type:n,content:o,text:r}=e;if("text"!==n){var i;return null==o?void 0:null===(i=o.map)||void 0===i?void 0:i.call(o,e=>t(e)).join("")}return r}(n)}catch(t){}return o}(null==p?void 0:null===(e=p.lead)||void 0===e?void 0:e.editor_js_data),rubric:null!==(i=null==f?void 0:null===(o=f.rubrics)||void 0===o?void 0:null===(n=o[0])||void 0===n?void 0:n.name)&&void 0!==i?i:"",publishedAt:v,author:{uuid:null==y?void 0:y.uuid,slug:null==y?void 0:y.slug,name:"".concat(null!==(l=null==y?void 0:y.first_name)&&void 0!==l?l:""," ").concat(null!==(u=null==y?void 0:y.last_name)&&void 0!==u?u:"").trim(),avatar:null==y?void 0:y.avatar,occupation:null==y?void 0:y.occupation,group:null==y?void 0:y.group},format:null!==(c=null==p?void 0:p.format)&&void 0!==c?c:"",images:g,countPhoto:m}}n.d(e,{t:function(){return o}}),n(7484),n(3454)},7663:function(t){!function(){var e={229:function(t){var e,n,o,r=t.exports={};function i(){throw Error("setTimeout has not been defined")}function l(){throw Error("clearTimeout has not been defined")}function u(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"==typeof clearTimeout?clearTimeout:l}catch(t){n=l}}();var c=[],a=!1,s=-1;function d(){a&&o&&(a=!1,o.length?c=o.concat(c):s=-1,c.length&&p())}function p(){if(!a){var t=u(d);a=!0;for(var e=c.length;e;){for(o=c,c=[];++s<e;)o&&o[s].run();s=-1,e=c.length}o=null,a=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===l||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function v(){}r.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new f(t,e)),1!==c.length||a||u(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(t){return[]},r.binding=function(t){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw Error("process.chdir is not supported")},r.umask=function(){return 0}}},n={};function o(t){var r=n[t];
1if(void 0!==r)return r.exports;var i=n[t]={exports:{}},l=!0;try{e[t](i,i.exports,o),l=!1}finally{l&&delete n[t]}return i.exports}o.ab="//";var r=o(229);t.exports=r}()}},function(t){t.O(0,[774,888,179],function(){return t(t.s=5417)}),_N_E=t.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.