PageSourceSearch

https://ecofin.in.ua/_next/static/chunks/1454-a839a72f5ad183ca.js

js ecofin.in.ua collected 2026-10-08 10:59:47 UTC 11,849 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1454],{20063:(e,r,t)=>{"use strict";var l=t(47260);t.o(l,"usePathname")&&t.d(r,{usePathname:function(){return l.usePathname}}),t.o(l,"useRouter")&&t.d(r,{useRouter:function(){return l.useRouter}}),t.o(l,"useSearchParams")&&t.d(r,{useSearchParams:function(){return l.useSearchParams}})},56724:(e,r,t)=>{"use strict";t.d(r,{k5:()=>d});var l=t(12115),s={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=l.createContext&&l.createContext(s),i=["attr","size","title"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var l in t)({}).hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e}).apply(null,arguments)}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);r&&(l=l.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,l)}return t}function c(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?o(Object(t),!0).forEach(function(r){var l,s,n;l=e,s=r,n=t[r],(s=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,r||"default");if("object"!=typeof l)return l;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}(s))in l?Object.defineProperty(l,s,{value:n,enumerable:!0,configurable:!0,writable:!0}):l[s]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function d(e){return r=>l.createElement(u,a({attr:c({},e.attr)},r),function e(r){return r&&r.map((r,t)=>l.createElement(r.tag,c({key:t},r.attr),e(r.child)))}(e.child))}function u(e){var r=r=>{var t,{attr:s,size:n,title:o}=e,d=function(e,r){if(null==e)return{};var t,l,s=function(e,r){if(null==e)return{};var t={};for(var l in e)if(({}).hasOwnProperty.call(e,l)){if(-1!==r.indexOf(l))continue;t[l]=e[l]}return t}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)t=n[l],-1===r.indexOf(t)&&({}).propertyIsEnumerable.call(e,t)&&(s[t]=e[t])}return s}(e,i),u=n||r.size||"1em";return r.className&&(t=r.className),e.className&&(t=(t?t+" ":"")+e.className),l.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,s,d,{className:t,style:c(c({color:e.color||r.color},r.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),o&&l.createElement("title",null,o),e.children)};return void 0!==n?l.createElement(n.Consumer,null,e=>r(e)):r(s)}},57396:(e,r,t)=>{"use strict";t.d(r,{ArticlesPageClient:()=>o});var l=t(95155),s=t(12115),n=t(5517),i=t(10383);let a={biznes:{icon:"\uD83D\uDCBC",color:"bg-amber-50 text-amber-700 border-amber-200"},depoziti:{icon:"\uD83C\uDFE6",color:"bg-blue-50 text-blue-700 border-blue-200"},finansi:{icon:"\uD83D\uDCB0",color:"bg-teal-50 text-teal-700 border-teal-200"},"fondovij-rinok":{icon:"\uD83D\uDCCA",color:"bg-indigo-50 text-indigo-700 border-indigo-200"},investiciyi:{icon:"\uD83D\uDCC8",color:"bg-green-50 text-green-700 border-green-200"},kriptovalyuta:{icon:"₿",color:"bg-purple-50 text-purple-700 border-purple-200"},neruhomist:{icon:"\uD83C\uDFE0",color:"bg-rose-50 text-rose-700 border-rose-200"},valyuta:{icon:"\uD83D\uDCB1",color:"bg-cyan-50 text-cyan-700 border-cyan-200"},pensiya:{icon:"\uD83C\uDFAF",color:"bg-orange-50 text-orange-700 border-orange-200"}};function o({articles:e,categories:r,locale:t,initialCategory:o}){let c="ru"===t,[d,u]=(0,s.useState)(""),[x,m]=(0,s.useState)(o||null),[p,h]=(0,s.use
1State)(null),[g,y]=(0,s.useState)(!1),[f,b]=(0,s.useState)(12);(0,s.useEffect)(()=>{b(12)},[d,x,p]),(0,s.useEffect)(()=>{h(null)},[x]);let v=(0,s.useMemo)(()=>{let r=new Set;return(x?e.filter(e=>e.category?.slug===x):e).forEach(e=>e.tags?.forEach(e=>r.add(e))),Array.from(r).sort()},[e,x]),j=(0,s.useMemo)(()=>{let r={};return e.forEach(e=>{let t=e.category?.slug;t&&(r[t]=(r[t]||0)+1)}),r},[e]),N=(0,s.useMemo)(()=>{let r=e;if(x&&(r=r.filter(e=>e.category?.slug===x)),p&&(r=r.filter(e=>e.tags?.includes(p))),d.trim()){let e=d.toLowerCase();r=r.filter(r=>r.title.toLowerCase().includes(e)||r.excerpt?.toLowerCase().includes(e))}return r},[e,x,p,d]),w=x||p||d?null:N.find(e=>e.isFeatured),k=w?N.filter(e=>e!==w):N,C=k.slice(0,f),P=k.length-f,O=!o&&!!x||!!p||!!d;return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"mb-8",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-baseline gap-3",children:[(0,l.jsx)("h1",{className:"text-3xl font-bold text-gray-900 lg:text-4xl",children:o?r.find(e=>e.slug===o)?.name||(c?"Статьи":"Статті"):c?"Статьи о финансах":"Статті про фінанси"}),(0,l.jsx)("span",{className:"rounded-full bg-primary-50 px-3 py-0.5 text-sm font-semibold text-primary-600",children:N.length})]}),(0,l.jsx)("p",{className:"mt-2 text-lg text-gray-500",children:o?r.find(e=>e.slug===o)?.description||"":c?"Полезные материалы о кредитах, инвестициях и управлении финансами":"Корисні матеріали про кредити, інвестиції та управління фінансами"})]}),(0,l.jsxs)("div",{className:"relative mb-4 hidden md:block",children:[(0,l.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,l.jsxs)("svg",{"aria-hidden":"true",className:"h-4 w-4 text-gray-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,l.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,l.jsx)("path",{d:"m21 21-4.3-4.3"})]})}),(0,l.jsx)("input",{type:"text",value:d,onChange:e=>u(e.target.value),"aria-label":c?"Поиск статей":"Пошук статей",placeholder:c?"Поиск статей...":"Пошук статей...",className:"w-full rounded-lg border border-gray-200 bg-white py-2 pl-9 pr-8 text-sm text-gray-900 placeholder:text-gray-400 focus:border-primary-400 focus:outline-none focus:ring-1 focus:ring-primary-100"}),d&&(0,l.jsx)("button",{onClick:()=>u(""),className:"absolute inset-y-0 right-0 flex items-center pr-3 text-gray-400 hover:text-gray-600",children:(0,l.jsxs)("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,l.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,l.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),!o&&r.length>0&&(0,l.jsx)("div",{className:"mb-4 hidden flex-wrap gap-1.5 md:flex",children:r.map(e=>{let r=a[e.slug]||{icon:"\uD83D\uDCC4",color:"bg-gray-50 text-gray-700 border-gray-200"},t=x===e.slug,s=j[e.slug]||0;return(0,l.jsxs)("button",{onClick:()=>{m(t?null:e.slug),h(null)},className:`inline-flex items-center gap-1.5 rounded-full border px-3 py-1.5 text-xs font-medium transition-all ${t?"border-primary-400 bg-primary-50 text-primary-700 shadow-sm":`${r.color} hover:shadow-sm`}`,children:[(0,l.jsx)("span",{className:"text-sm",children:r.icon}),(0,l.jsx)("span",{className:"truncate",children:e.name}),(0,l.jsx)("span",{className:`text-[10px] ${t?"text-primary-700":"opacity-50"}`,children:s})]},e.id)})}),v.length>0&&(0,l.jsxs)("div",{className:"mb-6",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>y(e=>!e),"aria-expanded":g,className:"inline-flex items-center gap-1.5 rounded-full border border-gray-200 bg-white px-3 py-1.5 text-xs font-medium text-gray-600 transition-colors hover:border-primary-300 hover:text-primary-700",children:[(0,l.jsxs)("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,l.jsx)("path",{d:"M20.59 13.41 13.42 20.58a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82Z"}),(0,l.jsx)("line",{x1:"7",y1:"7",x2:"7.01",y2:"7"})]}),"Теги",(0,l.jsx)("span",{className:"text-[10px] opacity-60",children:v.length}),(0,l.jsx)("svg",{className:`h-3 w-3 transition-transform ${g?"rotate-180":""}`,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,l.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),g&&(0,l.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:v.map(e=>(0,l.jsx)("button",{onClick:()=>h(p===e?null:e),className:`rounded-full px-3 py-1 text-xs font-medium transition-all ${p===e?"bg-primary-500 text-white shadow-sm":"bg-gray-100 text-gray-600 hover:bg-gray-200"}`,children:e},e))})]}),O&&(0,l.jsxs)("div",{className:"mb-4 flex flex-wrap items-center gap-2",children:[!
1o&&x&&(0,l.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-primary-50 px-3 py-1 text-xs font-medium text-primary-700",children:[r.find(e=>e.slug===x)?.name,(0,l.jsx)("button",{onClick:()=>m(null),className:"ml-1 hover:text-primary-900",children:(0,l.jsxs)("svg",{className:"h-3 w-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",children:[(0,l.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,l.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),p&&(0,l.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-primary-50 px-3 py-1 text-xs font-medium text-primary-700",children:[p,(0,l.jsx)("button",{onClick:()=>h(null),className:"ml-1 hover:text-primary-900",children:(0,l.jsxs)("svg",{className:"h-3 w-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",children:[(0,l.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,l.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,l.jsxs)("span",{className:"text-xs text-gray-500",children:[c?"Найдено":"Знайдено",": ",N.length]}),(0,l.jsx)("button",{onClick:()=>{m(null),h(null),u("")},className:"text-xs text-primary-700 hover:text-primary-800",children:c?"Сбросить все":"Скинути все"})]}),w&&(0,l.jsx)("div",{className:"mb-6",children:(0,l.jsx)(n.d,{item:w,type:"article",locale:t,featured:!0,hideCategory:!!o})}),C.length>0?(0,l.jsxs)("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:[C.slice(0,6).map(e=>(0,l.jsx)(n.d,{item:e,type:"article",locale:t,hideCategory:!!o},e.id)),C.length>=6&&(0,l.jsx)("div",{className:"sm:col-span-2 lg:col-span-3",children:(0,l.jsx)(i.AdSlot,{zone:"multiplex"})}),C.slice(6).map(e=>(0,l.jsx)(n.d,{item:e,type:"article",locale:t,hideCategory:!!o},e.id))]}):(0,l.jsxs)("div",{className:"py-12 text-center",children:[(0,l.jsx)("div",{className:"mb-3 text-4xl",children:"\uD83D\uDD0D"}),(0,l.jsx)("p",{className:"mb-2 text-gray-500",children:c?"Ничего не найдено":"Нічого не знайдено"}),(0,l.jsx)("button",{onClick:()=>{m(null),h(null),u("")},className:"text-sm text-primary-700 hover:text-primary-800",children:c?"Сбросить фильтры":"Скинути фільтри"})]}),P>0&&(0,l.jsx)("div",{className:"flex justify-center pt-8",children:(0,l.jsxs)("button",{onClick:()=>b(e=>e+12),className:"group inline-flex items-center gap-2 rounded-xl border border-gray-200 bg-white px-6 py-3 text-sm font-semibold text-gray-700 shadow-sm transition-all hover:border-primary-300 hover:text-primary-800 hover:shadow-md",children:[c?"Показать ещё":"Показати ще",(0,l.jsx)("span",{className:"inline-flex items-center justify-center rounded-full bg-gray-100 px-2 py-0.5 text-xs font-medium text-gray-500 transition-colors group-hover:bg-primary-50 group-hover:text-primary-600",children:P})]})})]})}},77686:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,52619,23)),Promise.resolve().then(t.t.bind(t,81356,23)),Promise.resolve().then(t.bind(t,57396)),Promise.resolve().then(t.bind(t,92931)),Promise.resolve().then(t.bind(t,37241)),Promise.resolve().then(t.bind(t,50884)),Promise.resolve().then(t.bind(t,91265))}}]);

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.