PageSourceSearch

https://hhk.am/_next/static/chunks/pages/%5Blocale%5D/news-7662dcef3e751558.js

js hhk.am collected 2026-10-02 10:27:53 UTC 12,466 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[785],{55813:function(e,a,t){"use strict";var n=t(64836);a.Z=void 0;var r=n(t(64938)),s=t(85893);a.Z=(0,r.default)((0,s.jsx)("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined")},19572:function(e,a,t){"use strict";var n=t(64836);a.Z=void 0;var r=n(t(64938)),s=t(85893);a.Z=(0,r.default)((0,s.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft")},26215:function(e,a,t){"use strict";var n=t(64836);a.Z=void 0;var r=n(t(64938)),s=t(85893);a.Z=(0,r.default)((0,s.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},36714:function(e,a,t){"use strict";var n=t(64836);a.Z=void 0;var r=n(t(64938)),s=t(85893);a.Z=(0,r.default)((0,s.jsx)("path",{d:"m15 5-1.41 1.41L18.17 11H2v2h16.17l-4.59 4.59L15 19l7-7z"}),"East")},99609:function(e,a,t){"use strict";var n=t(64836);a.Z=void 0;var r=n(t(64938)),s=t(85893);a.Z=(0,r.default)((0,s.jsx)("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined")},34193:function(e,a,t){"use strict";var n=t(64836);a.Z=void 0;var r=n(t(64938)),s=t(85893);a.Z=(0,r.default)((0,s.jsx)("path",{d:"m12 5.69 5 4.5V18h-2v-6H9v6H7v-7.81zM12 3 2 12h3v8h6v-6h2v6h6v-8h3z"}),"HomeOutlined")},42761:function(e,a,t){"use strict";var n=t(64836);a.Z=void 0;var r=n(t(64938)),s=t(85893);a.Z=(0,r.default)((0,s.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},14327:function(e,a,t){"use strict";t.d(a,{K3:function(){return h},Rd:function(){return p},rM:function(){return v}});var n=t(76687),r=t(59499),s=t(50029),i=t(87794),l=t.n(i),c=t(85802),o=t(64925);function u(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}function d(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?u(Object(t),!0).forEach(function(a){(0,r.Z)(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function p(e){return m.apply(this,arguments)}function m(){return(m=(0,s.Z)(l().mark(function e(a){var t,r,s,i;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=null!=a&&a.type?[{field:"type",value:a.type}]:[{field:"type",value:"Default"}],s=null!==(t=null==a?void 0:a.filters)&&void 0!==t?t:[],e.next=4,c.ZP.get(o.Z.article.list,{params:d(d({filters:[].concat(r,(0,n.Z)(s))},(null==a?void 0:a.offset)!==void 0?{offset:a.offset}:{}),(null==a?void 0:a.limit)!==void 0?{limit:a.limit}:{})});case 4:return i=e.sent,e.abrupt("return",Array.isArray(i)?i:i&&"object"==typeof i&&Array.isArray(i.rows)?i.rows:[]);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function h(e){return f.apply(this,arguments)}function f(){return(f=(0,s.Z)(l().mark(function e(a){var t;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.ZP.get(o.Z.article.list,{params:d(d({filters:[{field:"type",value:"Media"}]},(null==a?void 0:a.offset)!==void 0?{offset:a.offset}:{}),(null==a?void 0:a.limit)!==void 0?{limit:a.limit}:{})});case 2:if(!((t=e.sent)&&"object"==typeof t&&Array.isArray(t.rows))){e.next=6;break}return e.abrupt("return",t);case 6:if(!Array.isArray(t)){e.next=8;break}return e.abrupt("return",{count:t.length,rows:t});case 8:return e.abrupt("return",{count:0,rows:[]});case 9:case"end":return e.stop()}},e)}))).apply(this,arguments)}function v(e){return g.apply(this,arguments)}function g(){return(g=(0,s.Z)(l().mark(function e(a){var t,n,r,s,i,u,d,p,m,h,f,v;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.ZP.get(o.Z.article.single(a));case 2:return v=null!==(t=(f=e.sent).publishedAt)&&void 0!==t&&t.trim()?f.publishedAt:f.createdAt,e.abrupt("return",{id:f.id,alias:f.alias,title:f.title,body:f.body,category:{id:null!==(n=null===(r=f.category)||void 0===r?void 0:r.id)&&void 0!==n?n:0,alias:null!==(s=null===(i=f.category)||void 0===i?void 0:i.alias)&&void 0!==s?s:"",name:null!==(u=null===(d=f.category)||void 0===d?void 0:d.name)&&void 0!==u?u:""},metaDescription:f.metaDescription,metaKeyword:f.metaKeyword,metaTitle:f.metaTitle,status:f.status,speaker:null!==(p=f.speaker)&&void 0!==p?p:null,files:null!==(m=f.files)&&void 0!==m?m:[],tags:null!==(h=f.tags)&&void 0!==h?h:[],publishedAt:v,createdAt:f.createdAt,updatedAt:f.updatedAt,viewCount:f.viewCount});case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}},2432:function(e,a,t){"use strict";t.d(a,{Z:function(){return c}});var n=t(67294),r=t(41664),s=t.n(r),i=t(26215);t(98234);
1var l=t(85893);function c(e){var a=e.items,t=e.ariaLabel;return(0,l.jsx)("nav",{className:"breadcrumb","aria-label":void 0===t?"Breadcrumb":t,children:(0,l.jsx)("ol",{className:"breadcrumb__list",children:a.map(function(e,a){var t=e.Icon,r=void 0===e.href;return(0,l.jsxs)(n.Fragment,{children:[a>0?(0,l.jsx)("li",{className:"breadcrumb__sep","aria-hidden":!0,children:(0,l.jsx)(i.Z,{className:"breadcrumb__chevron"})}):null,(0,l.jsx)("li",{className:r?"breadcrumb__item breadcrumb__item--current":"breadcrumb__item",children:e.href?(0,l.jsxs)(s(),{href:e.href,className:"breadcrumb__link",children:[t?(0,l.jsx)(t,{className:"breadcrumb__icon","aria-hidden":!0}):null,(0,l.jsx)("span",{className:"breadcrumb__text",children:e.label})]}):(0,l.jsxs)("span",{className:"breadcrumb__current",children:[t?(0,l.jsx)(t,{className:"breadcrumb__icon","aria-hidden":!0}):null,(0,l.jsx)("span",{className:"breadcrumb__text",children:e.label})]})})]},"".concat(e.label,"-").concat(a))})})})}},19050:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return x}});var n=t(9008),r=t.n(n),s=t(41664),i=t.n(s),l=t(67294),c=t(34193),o=t(99609),u=t(42761),d=t(19572),p=t(26215),m=t(55813),h=t(36714),f=t(2432),v=t(42461),g=t(14327),_=t(18782);t(52279);var b=t(86896),w=t(85893);function x(){var e=(0,v.b)().withLocalePath,a=(0,l.useState)([]),t=a[0],n=a[1],s=(0,l.useState)(null),x=s[0],j=s[1],y=(0,l.useState)(!0),N=y[0],Z=y[1],L=(0,l.useState)(""),O=L[0],A=L[1],M=(0,l.useState)("all"),S=M[0];M[1];var C=(0,l.useState)(1),k=C[0],P=C[1],E=(0,b.Z)().formatMessage;(0,l.useEffect)(function(){var e=!1;return Z(!0),j(null),(0,g.Rd)({type:"Default"}).then(function(a){e||n(a.map(_.e))}).catch(function(){e||(j("Could not load news. Please try again later."),n([]))}).finally(function(){e||Z(!1)}),function(){e=!0}},[]);var I=(0,l.useMemo)(function(){return t.filter(function(e){var a;return!!((!(a=O.trim().toLowerCase())||e.title.toLowerCase().includes(a)||e.excerpt.toLowerCase().includes(a))&&("all"===S||e.dateIso.startsWith(S)))})},[t,O,S]),z=0===I.length?0:Math.ceil(I.length/8),D=(0,l.useMemo)(function(){var e=(k-1)*8;return I.slice(e,e+8)},[I,k]),T=0===I.length?0:(k-1)*8+1,H=Math.min(8*k,I.length),V=function(e){z<=0||P(Math.min(Math.max(1,e),z))};(0,l.useEffect)(function(){P(1)},[O,S]),(0,l.useEffect)(function(){z>0&&k>z&&P(z)},[k,z]);var R=(0,l.useMemo)(function(){return z>0?function(e,a){if(a<=7)return Array.from({length:a},function(e,a){return a+1});var t=[1],n=Math.max(2,e-1),r=Math.min(a-1,e+1);e<=4&&(n=2,r=Math.min(5,a-1)),e>=a-3&&(n=Math.max(2,a-4),r=a-1),n>2&&t.push("ellipsis");for(var s=n;s<=r;s+=1)t.push(s);return r<a-1&&t.push("ellipsis"),t.push(a),t}(k,z):[]},[k,z]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(r(),{children:[(0,w.jsx)("title",{children:"News — hhk.am"}),(0,w.jsx)("meta",{name:"description",content:"Latest news and announcements."}),(0,w.jsx)("meta",{name:"robots",content:"index,follow"})]}),(0,w.jsx)("div",{className:"news-page",children:(0,w.jsxs)("div",{className:"news-page__inner",children:[(0,w.jsx)(f.Z,{ariaLabel:"Հրամանական ճանապարհ",items:[{label:E({id:"homepage"}),href:e("/"),Icon:c.Z},{label:E({id:"we-in-the-press"}),Icon:o.Z}]}),(0,w.jsx)("h1",{className:"news-page__title",children:E({id:"we-in-the-press"})}),(0,w.jsx)("div",{className:"news-page__toolbar",children:(0,w.jsxs)("div",{className:"news-page__search",children:[(0,w.jsx)(u.Z,{className:"news-page__search-icon","aria-hidden":!0}),(0,w.jsx)("input",{type:"search",className:"news-page__search-input",placeholder:E({id:"search"}),value:O,onChange:function(e){return A(e.target.value)},"aria-label":E({id:"search-news"})})]})}),N?(0,w.jsx)("p",{className:"news-page__empty",children:"Loading…"}):x?(0,w.jsx)("p",{className:"news-page__empty",children:x}):0===D.length?(0,w.jsx)("p",{className:"news-page__empty",children:"No articles match your filters."}):(0,w.jsx)("div",{className:"news-page__grid",children:D.map(function(a){return(0,w.jsx)(i(),{href:e("/news/".concat(a.alias)),className:"news-page__card-link",children:(0,w.jsxs)("article",{className:"news-page__card",children:[(0,w.jsx)("div",{className:"news-page__media",children:(0,w.jsx)("img",{src:a.imageSrc,alt:a.imageAlt,className:"news-page__img",loading:"lazy",decoding:"async"})}),(0,w.jsxs)("div",{className:"news-page__card-body",children:[(0,w.jsxs)("p",{className:"news-page__meta",children:[(0,w.jsx)(m.Z,{className:"news-page__meta-icon","aria-hidden":!0}),(0,w.jsx)("time",{dateTime:a.dateIso,children:a.dateLabel})]}),(0,w.jsx)("h2",{className:"news-page__card-title",children:a.title}),(0,w.jsx)("p",{className:"news-page__excerpt",children:a.excerpt}),(0,w.jsxs)("span",{className:"news-page__read-more",children:[E({id:"read-more"}),(0,w.jsx)(h.Z,{className:"news-page__read-more-icon","aria-hidden":!0})]})]})]})},a.alias)})}),z>1&&I.length>0?(0,w.jsxs)("nav",{className:"news-page__pagination","aria-label":"Pages",children:[(0,w.jsxs)("div",{className:"news-page__pagination-controls",children:[(0,w.jsx)("button",{type:"button",className:"news-page__page-btn news-page__page-btn--arrow","aria-label":"Previous page",disabled:k<=1,onClick:function(){return V(k-1)},children:(0,w.jsx)(d.Z,{})}),R.map(function(e,a){return"ellipsis"===e?(0,w.jsx)("span",{className:"news-page__page-ellipsis",children:"…"},"e-".concat(a)):(0,w.jsx)("button",{type:"button",className:k===e?"news-page__page-btn news-page__page-btn--num news-page__page-btn--active":"news-page__page-btn news-page__page-btn--num",onClick:function(){return V(e)},children:e},e)}),(0,w.jsx)("button",{type:"button",className:"news-page__page-btn news-page__page-btn--arrow","aria-label":"Next page",disabled:k>=z,onClick:function(){return V(k+1)},children:(0,w.jsx)(p.Z,{})})]}),(0,w.jsxs)("p",{className:"news-page__pagination-summary",children:["Showing ",T,"-",H," of ",I.length," articles"]})]}):I.length>0?(0,w.jsxs)("p",{className:"news-page__pagination-summary news-
1page__pagination-summary--only",children:["Showing ",T,"-",H," of ",I.length," articles"]}):null]})})]})}},18782:function(e,a,t){"use strict";t.d(a,{e:function(){return r}});var n=new Set(["press","events","policy","announcement"]);function r(e){var a,t,r,s,i,l,c=null===(r=e.thumbnail)||void 0===r?void 0:null===(s=r.url)||void 0===s?void 0:s.trim(),o=function(e,a){var t=(null!=e?e:a).trim();if(!t)return{dateIso:"",dateLabel:""};var n=t.includes("T")?t:t.replace(" ","T"),r=new Date(n);return Number.isNaN(r.getTime())?{dateIso:"",dateLabel:""}:{dateIso:r.toISOString().slice(0,10),dateLabel:r.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}}(e.publishedAt,e.createdAt),u=o.dateIso,d=o.dateLabel,p=((null===(i=e.metaDescription)||void 0===i?void 0:i.trim())||e.metaTitle||"").trim(),m=(t=(null!=(a=null===(l=e.category)||void 0===l?void 0:l.alias)?a:"").toLowerCase(),n.has(t)?t:"announcement");return{alias:e.alias,title:e.title,excerpt:p,dateIso:u,dateLabel:d,imageSrc:c||"https://picsum.photos/seed/".concat(encodeURIComponent(e.alias),"/640/400"),imageAlt:e.title,newsType:m}}},91164:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/news",function(){return t(19050)}])},98234:function(){},52279:function(){}},function(e){e.O(0,[774,888,179],function(){return e(e.s=91164)}),_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.