PageSourceSearch

https://wpnext-example.vercel.app/_next/static/chunks/pages/blog-7015eca3ab959525.js

js wpnext-example.vercel.app collected 2026-10-03 08:03:50 UTC 9,665 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[195],{3454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(7663)},7801:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog",function(){return r(5086)}])},6782:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(5893),i=r(1107),s=r.n(i),o=r(5675),a=r.n(o),c=r(1664),l=r.n(c),u=r(4526),d=r(8728);function f(e){var t;let{blog:r}=e;return(0,n.jsx)(l(),{href:"/blog/".concat(r.slug),className:s().cardLink,children:(0,n.jsxs)("article",{className:s().heroCard,children:[(0,n.jsx)(u.Z,{tag:"избранное"}),(0,n.jsx)("span",{className:s().imgWrapper,children:r.featuredImage&&(0,n.jsx)(a(),{fill:!0,priority:!0,className:s().img,src:null===(t=r.featuredImage.node)||void 0===t?void 0:t.sourceUrl,alt:"image blog"})}),(0,n.jsxs)("div",{className:s().titleAndDate,children:[(0,n.jsx)("h3",{className:s().title,children:r.title}),(0,n.jsx)("p",{className:"text-white text-xs tracking-[-0.2px]",children:(0,d.L)(r.date)})]})]})})}},5158:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(5893),i=r(3615),s=r.n(i),o=r(5675),a=r.n(o),c=r(4526),l=r(1664),u=r.n(l),d=r(8728);function f(e){let{blog:t,tag:r}=e;return(0,n.jsx)("article",{className:s().card,children:(0,n.jsxs)(u(),{href:"/blog/".concat(t.slug),className:s().link,children:[(0,n.jsx)(c.Z,{tag:r}),(0,n.jsx)("div",{className:s().imgWrapper,children:t.featuredImage&&(0,n.jsx)(a(),{className:s().img,fill:!0,priority:!0,src:t.featuredImage.node.sourceUrl,alt:"image blog"})}),(0,n.jsxs)("div",{className:s().titleAndDate,children:[(0,n.jsx)("h3",{className:s().title,children:t.title}),(0,n.jsx)("p",{className:s().date,children:(0,d.L)(t.date)})]})]})},t.id)}},2793:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(5893),i=r(6535),s=r.n(i),o=r(4904),a=r.n(o),c=r(6782),l=r(5158);function u(e){let{posts:t,title:r,description:i}=e,o=t[0],u=t.slice(1),d="Все посты"===r?"":t.length;return(0,n.jsx)("div",{className:a().wrapper,children:(0,n.jsxs)("ul",{className:s().grid,children:[(0,n.jsxs)("li",{className:s().info,children:[(0,n.jsx)("h1",{className:s().title,children:r}),(0,n.jsx)("p",{className:s().count,children:d}),(0,n.jsx)("p",{className:s().description,children:i})]}),(0,n.jsx)("li",{className:s().cardHeroWrap,children:o&&(0,n.jsx)(c.Z,{blog:o})}),null==u?void 0:u.map(e=>(0,n.jsx)("li",{className:s().cardWrap,children:e&&(0,n.jsx)(l.Z,{blog:e,tag:"пост"})},e.slug))]})})}},4526:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(5893),i=r(9014),s=r.n(i);function o(e){let{tag:t}=e;return(0,n.jsx)("div",{className:s().tag})}},8728:function(e,t,r){"use strict";function n(e){let t=new Date(e),r=new Intl.DateTimeFormat("ru",{year:"numeric",month:"long",day:"numeric"}),n=r.format(t).slice(0,-3);return n}r.d(t,{L:function(){return n}})},5086:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{__N_SSG:function(){return w},default:function(){return N}});var i=r(5893),s=r(7294),o=r(9008),a=r.n(o),c=r(7841),l=r.n(c),u=r(4696),d=r(3454);let f=d.env.WORDPRESS_API_URL||u.PN;async function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",{variables:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={"Content-Type":"application/json"};d.env.WORDPRESS_AUTH_REFRESH_TOKEN&&(r.Authorization="Bearer ".concat(d.env.WORDPRESS_AUTH_REFRESH_TOKEN));let n=await fetch(f,{headers:r,method:"POST",body:JSON.stringify({query:e,variables:t})}),i=await n.json();if(i.errors)throw console.error(i.errors),Error("Failed to fetch API");return i.data}async function p(e,t){let r=await _("\n    query postsForBlog {\n      posts(first: ".concat(e,', after: "').concat(t,'") {\n        pageInfo {\n          hasNextPage\n          endCursor\n        }\n        nodes {\n          slug\n          title\n          excerpt\n          date\n          featuredImage {\n            node {\n              sourceUrl\n            }\n          }\n        }\n      }\n    }\n  '));return r}var h=r(2793);let g=new Map,m=new WeakMap,v=0;var x=r(9269),j=r.n(x);function y(){return(0,i.jsx)("div",{className:j().loader})}var w=!0;function N(e){let{data:t}=e,{ref:r,inView:o}=function({threshold:e,delay:t,trackVisibility:r,rootMargin:i,root:o,triggerOnce:a,skip:c,initialInView:l,fallbackInView:u,onChange:d}={}){var f;let[_,p]=s.useState(null),h=s.useRef(),[x,j]=s.useState({inView:!!l,entry:void 0});h.current=d,s.useEffect(()=>{let s;if(!c&&_)return s=function(e,t,r={},i=n){if(void 0===window.IntersectionObserver&&void 0!==i){let n=e.getBoundingClientRect();return t(i,{isIntersecting:i,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:n,intersectionRect:n,rootBounds:n}
1),()=>{}}let{id:s,observer:o,elements:a}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?(r=e.root)?(m.has(r)||(v+=1,m.set(r,v.toString())),m.get(r)):"0":e[t]}`}).toString(),r=g.get(t);if(!r){let n;let i=new Map,s=new IntersectionObserver(t=>{t.forEach(t=>{var r;let s=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=s),null==(r=i.get(t.target))||r.forEach(e=>{e(s,t)})})},e);n=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:s,elements:i},g.set(t,r)}return r}(r),c=a.get(e)||[];return a.has(e)||a.set(e,c),c.push(t),o.observe(e),function(){c.splice(c.indexOf(t),1),0===c.length&&(a.delete(e),o.unobserve(e)),0===a.size&&(o.disconnect(),g.delete(s))}}(_,(e,t)=>{j({inView:e,entry:t}),h.current&&h.current(e,t),t.isIntersecting&&a&&s&&(s(),s=void 0)},{root:o,rootMargin:i,threshold:e,trackVisibility:r,delay:t},u),()=>{s&&s()}},[Array.isArray(e)?e.toString():e,_,o,i,a,c,r,u,t]);let y=null==(f=x.entry)?void 0:f.target,w=s.useRef();_||!y||a||c||w.current===y||(w.current=y,j({inView:!!l,entry:void 0}));let N=[p,x.inView,x.entry];return N.ref=N[0],N.inView=N[1],N.entry=N[2],N}(),[c,u]=(0,s.useState)(t.posts.pageInfo.endCursor),[d,f]=(0,s.useState)(t.posts.nodes),[_,x]=(0,s.use
1State)(!1),j="Все посты",w=async()=>{x(!0);let e=await p(10,c);u(e.posts.pageInfo.endCursor),f([...d,...e.posts.nodes]),x(!1)};return(0,s.useEffect)(()=>{o&&w()},[o]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a(),{children:(0,i.jsx)("title",{children:"wpnext | ".concat(j)})}),(0,i.jsx)(h.Z,{posts:d,title:j,description:"Статьи, обзоры и другие полезные материалы мира Wordpress и WooCommerce"}),_&&(0,i.jsx)(y,{}),(0,i.jsx)("div",{ref:r,className:l().endOfPage})]})}},1107:function(e){e.exports={cardLink:"card-hero_cardLink__w9UnW",heroCard:"card-hero_heroCard__c1G0g",title:"card-hero_title__LAtwM",imgWrapper:"card-hero_imgWrapper___HX0q",img:"card-hero_img__uGvq_",titleAndDate:"card-hero_titleAndDate__OjsYe"}},3615:function(e){e.exports={card:"card_card__kq5IX",link:"card_link__XW3Yu",imgWrapper:"card_imgWrapper__jp_ia",img:"card_img__uY4Xw",titleAndDate:"card_titleAndDate__OU66H",title:"card_title__AfWFv",date:"card_date__hmWl7"}},9269:function(e){e.exports={loader:"loader_loader__hkoAF",loading:"loader_loading__Xc5Du"}},6535:function(e){e.exports={grid:"post-list_grid__gpFKS",info:"post-list_info__IngzJ",title:"post-list_title__ktiV2",count:"post-list_count__nm7xI",description:"post-list_description__C7Qy_",cardHeroWrap:"post-list_cardHeroWrap__WDJ0j",cardWrap:"post-list_cardWrap___c8U6"}},9014:function(e){e.exports={tag:"tag-on-card_tag__GnwhO",text:"tag-on-card_text__Xrb10"}},7841:function(e){e.exports={endOfPage:"blog_endOfPage__vGBRe"}},7663:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var c=[],l=!1,u=-1;function d(){l&&n&&(l=!1,n.length?c=n.concat(c):u=-1,c.length&&f())}function f(){if(!l){var e=a(d);l=!0;for(var t=c.length;t;){for(n=c,c=[];++u<t;)n&&n[u].run();u=-1,t=c.length}n=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function _(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new _(e,t)),1!==c.length||l||a(f)},_.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var s=r[e]={exports:{}},o=!0;try{t[e](s,s.exports,n),o=!1}finally{o&&delete r[e]}return s.exports}n.ab="//";var i=n(229);e.exports=i}()}},function(e){e.O(0,[774,888,179],function(){return e(e.s=7801)}),_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.