PageSourceSearch

https://www.kompanion.kg/_next/static/chunks/pages/search-4a298e12c79e459b.js

js kompanion.kg collected 2026-10-02 14:49:17 UTC 3,300 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9603],{27646:function(t,e,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return a(90040)}])},90040:function(t,e,a){"use strict";a.r(e),a.d(e,{__N_SSG:function(){return h},default:function(){return p}});var o=a(85893),r=a(84060),l=a(64988),n=a(67294),c=a(11767),i=a(11163),s=a(16440),u=a(25935),f=a(78517),d=t=>{var e,a,r,l,n,c,s;let d,x,h,{product:p}=t,m=(0,i.useRouter)(),v=window.location.origin;return p.categories&&p.categories.length?(d=(null===(e=p.productTitle)||void 0===e?void 0:e[m.locale])||"Default Title",x=(null==p?void 0:null===(a=p.productDescription)||void 0===a?void 0:a[m.locale])?(0,u.ZP)(p.productDescription[m.locale]):"Default Description",h="/".concat(m.locale,"/").concat(p.categories&&(null===(l=p.categories[0])||void 0===l?void 0:null===(r=l.parentCategories[0])||void 0===r?void 0:r.url),"/").concat(p.categories&&(null===(n=p.categories[0])||void 0===n?void 0:n.url),"/").concat(p.slug)):(d=(null===(c=p.title)||void 0===c?void 0:c[m.locale])||"Default Title",x=(null==p?void 0:null===(s=p.text)||void 0===s?void 0:s[m.locale])?(0,u.ZP)(p.text[m.locale]):"Default Description",h="/".concat(m.locale,"/news/").concat(p.slug)),(0,o.jsxs)("div",{className:"my-[40px]",children:[(0,o.jsx)(f.n,{className:"text-[20px] font-bold leading-[140%] sm:text-[16px] sm:font-normal relative transition after::content-[''] after:block after:absolute after:w-0 after:h-[2px] after:bg-[#0C0D0D] after:bottom-[-3px] after:left-0 after:right-0 after:transition-all after:duration-300 hover:after:w-full",href:h,children:d}),(0,o.jsx)("div",{className:"text-[#67777E] text-[16px] leading-[150%] sm:text-[10px] line-clamp-2",children:x}),(0,o.jsxs)(f.n,{className:"text-[12px] font-[500] text-[#2196F3] relative transition after::content-[''] after:block after:absolute after:w-0 after:h-[2px] after:bg-[#0C0D0D] after:bottom-[-3px] after:left-0 after:right-0 after:transition-all after:duration-300 hover:after:w-full",href:h,children:[v,h]})]})},x=a(75243),h=!0,p=t=>{let e=(0,i.useRouter)(),a=e.asPath.split("?")[0],{t:u}=(0,r.$G)("common"),{query:{char:f}}=(0,i.useRouter)(),[h,p]=(0,n.useState)([]);(0,n.useEffect)(()=>{m("".concat(c.F,"search?searchTerm=").concat(f))},[f]);let m=async t=>{try{let e=await fetch(t);if(!e.ok)throw Error("Что-то пошло не так а может даже хуже, попробуйте снова:(");let a=await e.json(),o=[],r=[];Object.keys(a).forEach(t=>a[t].forEach(t=>{t.categories&&t.categories.length?o.push(t):r.push(t)})),p([...o,...r])}catch(t){console.error("Че-та не то делаешь:( :",t)}};return(0,o.jsxs)(l.Z,{mainCategories:t.mainCategories,subCategories:t.subCategories,staticTexts:t.mainNavStaticTexts,locale:e.locale,locales:e.locales,pathname:a,children:[(0,o.jsx)(x.Z,{variant:"h1",className:"mb-[40px] text-[32px] font-bold sm:text-center sm:text-[24px] sm:font-normal",children:u("search.title")}),(0,o.jsx)(s.Z,{show:!0,char:f}),h.length?h.map(t=>(0,o.jsx)(d,{product:t},t.slug)):(0,o.jsx)(x.Z,{variant:"p",className:"text-[32px] font-bold sm:text-center sm:text-[24px] sm:font-normal",children:u("search.notFound")})]})}}},function(t){t.O(0,[5675,1664,2773,5935,4988,2888,9774,179],function(){return t(t.s=27646)}),_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.