PageSourceSearch

https://tlap.io/_next/static/chunks/pages/analytics-8b7cd7d04477d951.js

js tlap.io collected 2026-10-08 16:02:14 UTC 5,481 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1432],{15602:(e,a,t)=>{"use strict";t.r(a),t.d(a,{__N_SSP:()=>k,default:()=>v});var s=t(37876),r=t(14232),l=t(58245),c=t.n(l),n=t(50750),i=t(96456),d=t.n(i),o=t(34767),_=t(41397),h=t(27798),u=t(71180),m=t(7254),x=t(86633),p=t(9271),y=t(62905),g=t(49851),j=t(54758),w=t(76147),N=t.n(w),k=!0;function v({initialArticles:e,initialTotalArticles:a,initialLocale:t,initialPage:l=1}){let{t:i,locale:w}=(0,m.B)(),{themeName:k}=(0,p.D)(),f=(0,u.M$)(),[T,B]=(0,r.useState)(e),[S,b]=(0,r.useState)(""),[C,I]=(0,r.useState)(""),[$,L]=(0,r.useState)(""),[R,E]=(0,r.useState)(!1),[P,z]=(0,r.useState)(null),[X,M]=(0,r.useState)(l),[O,W]=(0,r.useState)(a),A=(0,r.useRef)(null),q=(0,r.useRef)(!1),D=(0,r.useRef)(0),G=String(f?.h1||f?.title||"").trim(),U=i("grid.searchPlaceholder"),K=i("knowledge.readMore"),V=i("knowledge.error"),J=Math.max(1,Math.ceil(O/21));(0,r.useEffect)(()=>(A.current&&clearTimeout(A.current),A.current=setTimeout(()=>I(S),400),()=>{A.current&&clearTimeout(A.current)}),[S]);let Q=(0,r.useCallback)(async e=>{let a=++D.current;E(!0),z(null),M(e);try{let t=C.trim()?`&search=${encodeURIComponent(C.trim())}`:"",s=$?`&sort=${encodeURIComponent($)}`:"",r=await fetch(`/api/knowledge/articles?locale=${w}&pageSize=21&page=${e}&category=analitika&scanEnglishCategory=1${t}${s}`);if(!r.ok)throw Error(`Analytics articles request failed: ${r.status}`);let l=await r.json();if(a!==D.current)return;B(l.data||[]),W(l.meta?.pagination?.total||0)}catch{a===D.current&&z(V)}finally{a===D.current&&E(!1)}},[V,w,C,$]);(0,r.useEffect)(()=>{(q.current||(q.current=!0,w!==t||""!==C||""!==$))&&Q(1)},[Q,t,w,C,$]);let F=(0,r.useCallback)(e=>{Q(e);let a=new URLSearchParams(window.location.search);e>1?a.set("page",String(e)):a.delete("page");let t=a.toString();window.history.replaceState(window.history.state,"",`${window.location.pathname}${t?`?${t}`:""}`),window.scrollTo({top:0,behavior:"smooth"})},[Q]),H="en"===w?"en":"ru";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.k,{}),(0,s.jsxs)("div",{className:N().page,"data-theme":"theme-a"===k?"light":"dark",children:[(0,s.jsxs)("div",{className:N().header,children:[G&&(0,s.jsx)("div",{children:(0,s.jsx)("h1",{className:N().title,children:G})}),(0,s.jsxs)("div",{className:N().searchWrap,children:[(0,s.jsxs)("svg",{className:N().searchIcon,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,s.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,s.jsx)("input",{type:"text","aria-label":U,value:S,onChange:e=>b(e.target.value),placeholder:U,className:N().searchInput})]}),(0,s.jsx)(h.z,{value:$,onChange:L,locale:w,disabled:R})]}),R&&(0,s.jsx)("div",{className:N().stateBlock,children:(0,s.jsx)("div",{className:N().spinner})}),P&&!R&&(0,s.jsxs)("div",{className:N().stateBlock,children:[(0,s.jsx)("p",{className:N().errorText,children:P}),(0,s.jsx)("button",{onClick:()=>Q(X),className:N().retryButton,children:i("knowledge.retry")})]}),!R&&!P&&0===T.length&&(0,s.jsx)("div",{className:N().stateBlock,children:(0,s.jsx)("p",{className:N().emptyText,children:i("knowledge.empty")})}),!R&&T.length>0&&(0,s.jsx)("div",{className:N().grid,children:T.map((e,a)=>{let t=(0,g.z)(e),r=(0,g.k)(e),l=(0,x.K)(e.authorName,w),i=0===a;return(0,s.jsx)(d(),{href:(0,j.qG)(`/knowledge/${e.slug}`,H),locale:!1,prefetch:!1,className:N().cardLink,children:(0,s.jsxs)("article",{className:N().card,children:[t&&(0,s.jsx)("div",{className:N().cover,children:(0,s.jsx)(c(),{src:(0,n.E)(t,360),alt:e.title,width:360,height:240,sizes:"(max-width: 640px) 100vw, (max-width: 900px) 50vw, 360px",loading:i?"eager":"lazy",fetchPriority:i?"high":"auto",unoptimized:!0,className:N().coverImage})}),(0,s.jsxs)("div",{className:N().cardBody,children:[(0,s.jsx)("h2",{className:N().cardTitle,children:e.title}),r&&(0,s.jsx)("p",{className:N().excerpt,children:r}),(0,s.jsxs)("div",{className:N().metaRow,children:[(0,s.jsxs)("div",{className:N().metaLeft,children:[(0,s.jsx)("time",{className:N().metaText,children:(0,y.W)(e.publicationDate,w)}),l&&(0,s.jsx)("span",{className:N().metaText,children:l})]}),(0,s.jsxs)("span",{className:N().readMore,children:[K," →"]})]})]})]})},e.id)})}),!R&&!P&&(0,s.jsx)(_.u,{page:X,totalPages:J,onPageChange:F,ariaLabel:G||"Analytics"})]})]})}},61374:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/analytics",function(){return t(15602)}])},76147:e=>{e.exports={page:"analytics_page__JOd9z",header:"analytics_header__hLl_O",title:"analytics_title__R58xe",subtitle:"analytics_subtitle__ZXpX1",searchWra
1p:"analytics_searchWrap___dpbN",searchIcon:"analytics_searchIcon__B_UbD",searchInput:"analytics_searchInput__W38jG",stateBlock:"analytics_stateBlock__uBTT3",spinner:"analytics_spinner__a_lXA",spin:"analytics_spin__bghB4",errorText:"analytics_errorText__uINHg",emptyText:"analytics_emptyText__Kh0BC",retryButton:"analytics_retryButton__pvaKq",grid:"analytics_grid__5hraa",cardLink:"analytics_cardLink__ASJXd",card:"analytics_card__rlPG2",cover:"analytics_cover__kGbrV",coverImage:"analytics_coverImage__gdCXa",cardBody:"analytics_cardBody__9nuqQ",cardTitle:"analytics_cardTitle__QXd5_",excerpt:"analytics_excerpt__lRO8z",metaRow:"analytics_metaRow__mOTmA",metaLeft:"analytics_metaLeft__tpD51",metaText:"analytics_metaText__92V8V",readMore:"analytics_readMore__jv51N"}}},e=>{e.O(0,[3310,636,6593,8792],()=>e(e.s=61374)),_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.