PageSourceSearch

https://www.verstov.info/_next/static/chunks/pages/search-5d3562d9f7941222.js

js verstov.info collected 2026-10-02 05:46:02 UTC 16,890 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[603],{98942:function(e,n,t){"use strict";var r=t(59499),o=t(67294),i=t(11358),l=t.n(i),a=t(94184),s=t.n(a),c=t(60464),u=t.n(c),d=t(85893);function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?v(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var h=function(e){return(0,d.jsx)("svg",p(p({},e),{},{children:(0,d.jsx)("path",{opacity:"0.3",d:"M0.418363 8.34536C0.418363 8.53177 0.52741 8.77933 0.638391 8.89962L6.87815 15.7485C7.16959 16.0595 7.64147 16.0958 7.9812 15.7801C8.28486 15.4976 8.29225 14.9474 8.01176 14.6406L3.00302 9.15151L23.0383 9.15151C23.469 9.15151 23.8184 8.79064 23.8184 8.3457C23.8184 7.90075 23.469 7.53988 23.0383 7.53988L3.00302 7.53988L8.01176 2.05078C8.29258 1.7444 8.27264 1.20741 7.9812 0.911303C7.67368 0.598946 7.16511 0.626857 6.87815 0.942871L0.638391 7.79143C0.455035 7.97719 0.421583 8.15596 0.418363 8.34537L0.418363 8.34536Z",fill:"black"})}))};h.defaultProps={width:"24",height:"16",viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};n.Z=function(e){var n=e.page,t=e.pageCount,r=e.handlePageClick,i=e.rootCode,a=e.link,c=(0,o.useRef)(null),v=(0,o.useRef)(null);return(0,d.jsxs)("div",{className:u().wrapper,children:[(0,d.jsx)(l(),{className:u().pagination,breakLabel:"...",forcePage:n,previousClassName:u().prevLink,previousLabel:(0,d.jsx)("span",{className:u().button,ref:v,children:(0,d.jsx)(h,{})}),marginPagesDisplayed:1,activeClassName:u().active,nextClassName:u().nextLink,nextLabel:(0,d.jsx)("span",{className:s()(u().button,u().next),ref:c,children:(0,d.jsx)(h,{})}),breakClassName:u().page,pageClassName:u().page,onPageChange:function(e){r(e)},pageRangeDisplayed:3,pageCount:t,renderOnZeroPageCount:null,hrefBuilder:function(e){return"/".concat(a?i+"/"+a:i).concat(e>1?"/"+e:"")}}),(0,d.jsx)("button",{type:"button",className:s()(u().button_mobile),disabled:0===n,onClick:function(){var e;null===(e=v.current)||void 0===e||e.click()},title:"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430",children:(0,d.jsx)(h,{})}),(0,d.jsx)("button",{type:"button",className:s()(u().button_mobile,u().next,u().next_mobile),disabled:n+1===t,onClick:function(){var e;null===(e=c.current)||void 0===e||e.click()},title:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430",children:(0,d.jsx)(h,{})})]})}},40252:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return V},default:function(){return X}});var r,o,i,l=t(50029),a=t(59499),s=t(87794),c=t.n(s),u=t(11163),d=t(71383),v=t(42748),p=t(71641);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var f={},b=(0,v.Ps)(r||(r=(0,d.Z)(["\n    fragment PostOrd on Post {\n  ordName\n  ordInn\n  ordId\n  ordUrl\n}\n    "]))),g=(0,v.Ps)(o||(o=(0,d.Z)(["\n    fragment SearchPost on Post {\n  id\n  name\n  previewText\n  activeFrom\n  code\n  photoreport\n  count_comments\n  ...PostOrd\n  previewPicture {\n    id\n    url\n    description\n  }\n  createdBy {\n    id\n  }\n  parentSection {\n    id\n    name\n    code\n  }\n}\n    ",""])),b),m=(0,v.Ps)(i||(i=(0,d.Z)(["\n    query Search($where: SearchWhereInput!, $offset: Float, $limit: Float) {\n  search(where: $where, offset: $offset, limit: $limit) {\n    count\n    nodes {\n      id\n      highlight\n      post {\n        ...SearchPost\n      }\n    }\n  }\n}\n    ",""])),g);var j=t(67294),w=t(56182),y=t(85893);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?x(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=(0,j.createContext)({}),C=30,N=function(e){var n,t,r,o,i,a,s,d,v,h,b=e.children,g=(0,u.useRouter)(),x={where:{q:null===g||void 0===g||null===(n=g.query)||void 0===n?void 0:n.search},limit:C,offset:null!==g&&void 0!==g&&null!==(t=g.query)&&void 0!==t&&t.page?(+(null===g||void 0===g||null===(r=g.query)||void 0===r?void 0:r.page)-1)*C:0},N=function(e){var n=_(_({},f),e);return p.a(m,n)}({variables:x,skip:!(null!==g&&void 0!==g&&null!==(o=g.query)&&void 0!==o&&o.search)}),S=N.data,k=N.loading,M=N.fetchMore,q=N.refetch,L=(0,j.useState)(null!==g&&void 0!==g&&null!==(i=g.query)&&void 0!==i&&i.page?+(null===g||void 0===g||null===(a=g.query)||void 0===a?void 0:a.page)-1:0),Z=L[0],E=L[1],D=(0,j.useState)(!1),R=D[0],F=D[1],T=(0,j.useRef)(!1),I=(0,j.useRef)(!1);(0,j.useEffect)((function(){var e,n;+(null===g||void 0===g||null===(e=g.query)||void 0===e?void 0:e.page)>0&&E(+(null===g||void 0===g||null===(n=g.query)||void 0===n?void 0:n.page)-1)}),[null===g||void 0===g||null===(s=g.query)||void 0===s?void 0:s.page]),(0,j.useEffect)((function(){var e,n;null===g||void 0===g||null===(e=g.query)||void 0===e||!e.search||null!==g&&void 0!==g&&null!==(n=g.query)&&void 0!==n&&n.page||E(0)}),[null===g||void 0===g||null===(d=g.query)||void 0===d?void 0:d.search]),(0,j.useEffect)((function(){if(T.current)if(I.current)I.current=!1;else{var e,n,t;if(q(O(O({},x),{},{offset:C*Z})),Z>0)e="/search/?search=".concat(null===(n=g.query)||void 0===n?void 0:n.search,"&page=").concat(Z+1);else e="/search/?search=".concat(null===(t=g.query)||void 0===t?void 0:t.search);g.push(e,e,{shallow:!0})}else T.current=!0}),[Z]);var B=function(e){var n,t;return e?null===e||void 0===e||null===(n=e.search)||void 0===n||null===(t=n.nodes)||void 0===t?void 0:t.map((function(e){var n,t,r,o,i,l,a,s,c,u,d,v,p,h,_,f,b,g,m,j,y,x,O,P,C;return{id:null===e||void 0===e?void 0:e.id,categoryCode:null===e||void 0===e||null===(n=e.post)||void 0===n||null===(t=n.parentSection)||void 0===t?void 0:t.code,categoryName:null===e||void 0===e||null===(r=e.post)||void 0===r||null===(o=r.parentSection)||void 0===o?void 0:o.name,code:null===e||void 0===e||null===(i=e.post)||void 0===i?void 0:i.code,date:null===e||void 0===e||null===(l=e.post)||void 0===l?void 0:l.activeFrom.slice(0,(null===e||void 0===e||null===(a=e.post)||void 0===a?void 0:a.activeFrom.length)-1),img:(0,w.o)((null===e||void 0===e||null===(s=e.post)||void 0===s||null===(c=s.previewPicture)||void 0===c?void 0:c.url)||"",null===e||void 0===e||null===(u=e.post)||void 0===u?void 0:u.activeFrom.slice(0,(null===e||void 0===e||null===(d=e.post)||void 0===d?void 0:d.activeFrom.length)-1),null===e||void 0===e||null===(v=e.post)||void 0===v||null===(p=v.createdBy)||void 0===p?void 0:p.id,null===e||void 0===e||null===(h=e.post)||void 0===h?void 0:h.photoreport,null===e||void 0===e||null===(_=e.post)||void 0===_||null===(f=_.parentSection)||void 0===f?void 0:f.code),imgAlt:(null===e||void 0===e||null===(b=e.post)||void 0===b||null===(g=b.previewPicture)||void 0===g?void 0:g.description)||null,title:null===e||void 0===e||null===(m=e.post)||void 0===m?void 0:m.name,previewText:null===e||void 0===e||null===(j=e.post)||void 0===j?void 0:j.previewText,commentsCount:(null===e||void 0===e||null===(y=e.post)||void 0===y?void 0:y.count_comments)||0,ordId:(null===e||void 0===e||null===(x=e.post)||void 0===x?void 0:x.ordId)||null,ordInn:(null===e||void 0===e||null===(O=e.post)||void 0===O?void 0:O.ordInn)||null,ordName:(null===e||void 0===e||null===(P=e.post)||void 0===P?void 0:P.ordName)||null,ordLink:(null===e||void 0===e||null===(C=e.post)||void 0===C?void 0:C.ordUrl)||null}})):null}(S),W=(null===S||void 0===S||null===(v=S.search)||void 0===v?void 0:v.count)/C,$=(null===S||void 0===S||null===(h=S.search)||void 0===h?void 0:h.count)>(null===B||void 0===B?void 0:B.length),U=function(){var e=(0,l.Z)(c().mark((function e(){var n,t,r,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return F(!0),e.next=3,M({variables:{where:{q:null===g||void 0===g||null===(n=g.query)||void 0===n?void 0:n.search},limit:C,offset:C*(Z+1)}});case 3:I.current=!0,E((function(e){return++e})),t=Z+2>0?"/search/?search=".concat(null===(r=g.query)||void 0===r?void 0:r.search,"&page=").concat(Z+2):"/search/?search=".concat(null===(o=g.query)||void 0===o?void 0:o.search),g.pu
1sh(t,t,{shallow:!0}),F(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,y.jsx)(P.Provider,{value:{items:B,loading:k,moreLoading:R,hasNextPage:$,loadMore:U,pagesCount:W,page:Z,setPage:E},children:b})},S=t(10745),k=t(72627),M=t.n(k),q=t(82199),L=t(2951),Z=t(98942),E=t(94184),D=t.n(E),R=t(9633),F=t(92618),T=t.n(F),I=t(55357),B=t(80531);function W(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function $(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?W(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):W(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var U=function(e){return(0,y.jsx)("svg",$($({},e),{},{children:(0,y.jsx)("path",{d:"M17.5487 16.5958L22.2658 21.313C22.6145 21.6617 22.6145 22.2273 22.2658 22.5783C21.9148 22.927 21.3492 22.927 21.0005 22.5783L16.2834 17.8612C14.6187 19.2442 12.4783 20.0755 10.1463 20.0755C7.48883 20.0755 5.08518 18.9995 3.34418 17.2586C1.60334 15.5177 0.527344 13.1141 0.527344 10.4589C0.527344 7.80139 1.60334 5.39772 3.34418 3.65671C5.08503 1.91585 7.48863 0.839844 10.1463 0.839844C12.8015 0.839844 15.205 1.91585 16.946 3.65671C18.6868 5.39757 19.7628 7.8012 19.7628 10.4589C19.7628 12.7909 18.9317 14.9311 17.5487 16.5958ZM15.6809 4.92217C14.2632 3.50679 12.3075 2.62941 10.1463 2.62941C7.9829 2.62941 6.02724 3.50679 4.60939 4.92217C3.19402 6.33984 2.31665 8.29551 2.31665 10.4592C2.31665 12.6203 3.19402 14.576 4.60939 15.9937C6.02705 17.4091 7.9827 18.2865 10.1463 18.2865C12.3075 18.2865 14.2632 17.4091 15.6809 15.9937C17.0962 14.5761 17.9736 12.6204 17.9736 10.4592C17.9736 8.29571 17.0962 6.34004 15.6809 4.92217Z",fill:"white"})}))};U.defaultProps={width:"23",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var z=function(e){return(0,y.jsx)("svg",$($({},e),{},{children:(0,y.jsx)("path",{d:"M1.06066 1L14 13.9393M13.9393 1L1 13.9393",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round"})}))};z.defaultProps={width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var J=function(){var e,n=(0,u.useRouter)(),t=(0,j.useContext)(P),r=t.items,o=t.loading,i=t.loadMore,l=t.hasNextPage,a=t.pagesCount,s=t.moreLoading,c=t.page,d=t.setPage,v=(0,j.useState)(""),p=v[0],h=v[1];(0,j.useEffect)((function(){var e;h(null===(e=n.query)||void 0===e?void 0:e.search)}),[null===(e=n.query)||void 0===e?void 0:e.search]);return(0,y.jsxs)(S.Z,{className:M().wrapper,children:[(0,y.jsxs)("div",{className:M().main,id:"search-main",children:[(0,y.jsx)("h1",{className:M().title,children:"\u041f\u043e\u0438\u0441\u043a \u043f\u043e \u0441\u0430\u0439\u0442\u0443"}),(0,y.jsxs)("div",{className:M().search,children:[(0,y.jsxs)("label",{className:M().search__label,children:[(0,y.jsx)("button",{type:"button",title:"\u041f\u043e\u0438\u0441\u043a \u043f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443 ".concat(p),className:M().btn,onClick:function(){n.push("/search?search=".concat(p),"/search?search=".concat(p),{shallow:!0})},children:(0,y.jsx)(U,{})}),(0,y.jsx)("input",{className:M().search__input,onChange:function(e){h(e.target.value)},type:"text",placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u043b\u043e\u0432\u043e \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430...",value:p,onKeyPress:function(e){13===e.charCode&&n.push("/search?search=".concat(p),"/search?search=".concat(p),{shallow:!0})}}),(null===p||void 0===p?void 0:p.trim().length)>0&&(0,y.jsx)("button",{type:"button",className:M().btn,onClick:function(){return h("")},title:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u043f\u043e\u0438\u0441\u043a",children:(0,y.jsx)(z,{})})]}),(0,y.jsx)(q.Z,{type:"button",className:M().search__button,title:"\u041d\u0430\u0439\u0442\u0438",onClick:function(){return n.push("/search?search=".concat(p),"/search?search=".concat(p),{shallow:!0})},children:"\u041d\u0430\u0439\u0442\u0438"})]}),o?(0,y.jsx)("div",{className:M().loaderWrapper,children:(0,y.jsx)(I.a,{})}):(0,y.jsx)(y.Fragment,{children:(null===r||void 0===r?void 0:r.length)>0?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("ul",{className:M().results,children:null===r||void 0===r?void 0:r.map((function(e){return(0,y.jsx)(L.a,{item:e,showPreviewText:!0,isNewsPage:!0,isMobileBigItem:!0},e.id)}))}),l&&c+1<a&&(0,y.jsx)(q.Z,{type:"button",title:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0435",className:M().showMore,onClick:function(){return i()},loading:s,children:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0435"}),a>1&&(0,y.jsx)(Z.Z,{page:c,pageCount:a,handlePageClick:function(e){return n=e.selected,d(n),void T()("#search-main");var n},link:"",rootCode:"search"})]}):(0,y.jsxs)("div",{className:M().noResults,children:[(0,y.jsx)("p",{className:D()(M().noResults__title,"h1"),children:"\u041f\u043e \u0432\u0430\u0448\u0435\u043c\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e"}),(0,y.jsx)("p",{className:M().noResults__description,children:"\u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 \u0441\u043b\u043e\u0432\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0438\u043b\u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430."})]})})]}),(0,y.jsx)("div",{className:M().aside,children:(0,y.jsxs)(B.V,{children:[(0,y.jsx)(R.j,{co
1de:"b31",mobileCode:"b31",className:M().b31}),(0,y.jsx)(R.j,{code:"b32",mobileCode:"b32",className:M().b32})]})})]})},V=!0,X=function(){return(0,y.jsx)(N,{children:(0,y.jsx)(J,{})})}},8266:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return t(40252)}])},60464:function(e){e.exports={wrapper:"Pagination_wrapper__GrER2",pagination:"Pagination_pagination__bubVb",button:"Pagination_button__qpZmW",button_mobile:"Pagination_button_mobile__NNn3I",prevLink:"Pagination_prevLink__BihvW",nextLink:"Pagination_nextLink__V_09Z",next:"Pagination_next__Sb_Xr",page:"Pagination_page__6zCxl",active:"Pagination_active___J8ZS",next_mobile:"Pagination_next_mobile__j9NnF"}},72627:function(e){e.exports={wrapper:"SearchMain_wrapper__3smJd",banner_small:"SearchMain_banner_small__CPTzn",banner_big:"SearchMain_banner_big__YCk18",title:"SearchMain_title__R7piq",search:"SearchMain_search__8MTUn",search__label:"SearchMain_search__label__oewS8",btn:"SearchMain_btn__Q8F9W",search__input:"SearchMain_search__input__cc8_l",search__button:"SearchMain_search__button__fvbA6",results:"SearchMain_results__p9eTF",showMore:"SearchMain_showMore__wZsJu",noResults:"SearchMain_noResults__aMbzx",noResults__title:"SearchMain_noResults__title__Syki_",noResults__description:"SearchMain_noResults__description__2TsOO",loaderWrapper:"SearchMain_loaderWrapper__vEpva",b31:"SearchMain_b31__Etibx",b32:"SearchMain_b32__KNuDU"}}},function(e){e.O(0,[358,698,774,888,179],(function(){return n=8266,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.