PageSourceSearch

https://en.openrussian.org/_next/static/chunks/pages/discover-d9786cd12679292e.js

js openrussian.org collected 2026-10-02 05:56:50 UTC 2,673 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2626],{4477:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/discover",function(){return t(8967)}])},6049:function(e,s,t){"use strict";t.d(s,{Z:function(){return u}});var n=t(5893),r=t(7294),l=t(9008),i=t.n(l),c=t(4648),a=t(2088),d=t(942);let h="has-search-overlay";function u(e){let{className:s,pageTitle:t,includeSearch:l,children:u}=e,{tl:o}=(0,c.T_)(),f=(0,c.Rx)(),x=f.isOpen(),j=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=document.documentElement;if(!x)return;e.classList.add(h);let s=j.current,t=null;if(s){let n=()=>{e.style.setProperty("--search-box-height",s.getBoundingClientRect().height+"px")};n(),(t=new ResizeObserver(n)).observe(s)}return()=>{t&&t.disconnect(),e.classList.remove(h),e.style.removeProperty("--search-box-height")}},[x]),(0,n.jsxs)(r.Fragment,{children:[t&&(0,n.jsx)(i(),{children:(0,n.jsx)("title",{children:t})}),l&&(0,n.jsx)("div",{className:"global-search search",ref:j,children:(0,n.jsx)(d.Z,{placeholder:o("Search")})}),(0,n.jsx)("main",{className:"fullwidth"+(x?" search-open":"")+(s?" "+s:""),children:(0,n.jsx)("div",{id:"content",children:u})}),x&&(0,n.jsx)("div",{className:"search-overlay",children:(0,n.jsx)("div",{className:"search-overlay-inner fullwidth",children:(0,n.jsx)(a.Z,{})})})]})}},8967:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return x}});var n=t(5893),r=t(7294),l=t(1163),i=t(9008),c=t.n(i),a=t(1664),d=t.n(a),h=t(4541),u=t(4648),o=t(6049);let f="АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩъЫьЭЮЯ".split("");function x(e){let{}=e,s=(0,l.useRouter)(),{crntLang:t,tl:i}=(0,u.T_)(),[a,x]=(0,r.useState)([]),[j,m]=(0,r.useState)([]),p=s.query,v=void 0!==p.letter&&-1!==f.indexOf(p.letter)?p.letter:"А";return(0,r.useEffect)(()=>{(async()=>{let e=await h.ZP.discover({crntLang:t},v);x(e.words),m(e.letters)})()},[v]),(0,n.jsx)(o.Z,{children:(0,n.jsxs)("div",{className:"page discover",children:[(0,n.jsx)(c(),{children:(0,n.jsx)("title",{children:i("All Russian words")})}),(0,n.jsx)("p",{className:"letters",children:f.map(e=>-1!==j.indexOf(e)?(0,n.jsx)(d(),{className:"button"+(v===e?" emphasized":""),prefetch:!1,href:"/discover?letter="+e,children:e},e):(0,n.jsx)("button",{className:"button no-link",disabled:!0,children:e},e))}),(0,n.jsx)("p",{className:"count",children:i("%1 Russian words starting with %2",[a.length,v])}),(0,n.jsx)("div",{className:"words",children:a.map((e,s)=>(0,n.jsx)("span",{children:(0,n.jsx)(d(),{prefetch:!1,href:"/ru/"+e,className:"text-link",children:(0,u.Pn)(e)})},e+s))})]})})}}},function(e){e.O(0,[5893,9774,2888,179],function(){return e(e.s=4477)}),_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.