PageSourceSearch

https://hhk.am/_next/static/chunks/pages/%5Blocale%5D/article/%5Balias%5D-2ef4048c750178dd.js

js hhk.am collected 2026-10-02 10:27:55 UTC 3,851 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[241],{12052:function(e,n,a){"use strict";a.r(n),a.d(n,{default:function(){return y}});var t=a(76687),l=a(50029),i=a(87794),s=a.n(i),r=a(9008),c=a.n(r),o=a(41664),u=a.n(o),d=a(11163),h=a(67294),m=a(34193),f=a(99609),_=a(2432),w=a(42461),x=a(14327),b=a(55701),g=a(56718);a(27662);var p=a(86896),v=a(85893);function y(){var e,n,a,i,r,o,y,N,j,k,S=(0,w.b)(),T=S.withLocalePath,Z=S.locale,E=(0,d.useRouter)(),I=E.isReady&&"string"==typeof E.query.alias?E.query.alias:"",L=(0,h.useState)(null),R=L[0],D=L[1],M=(0,h.useState)(""),O=M[0],P=M[1],q=(0,h.useState)(!1),A=q[0],C=q[1],F=(0,h.useState)(!1),X=F[0],H=F[1],U=(0,h.useRef)(!1),z=(0,p.Z)().formatMessage;(0,h.useEffect)(function(){if(I){var e;return U.current=!1,C(!0),H(!1),D(null),P(""),(0,x.rM)(I).then((e=(0,l.Z)(s().mark(function e(n){var a;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!U.current){e.next=2;break}return e.abrupt("return");case 2:return D(n),e.next=5,(0,g.a)(n.body);case 5:a=e.sent,U.current||P(a);case 7:case"end":return e.stop()}},e)})),function(n){return e.apply(this,arguments)})).catch(function(){U.current||(H(!0),D(null))}).finally(function(){U.current||C(!1)}),function(){U.current=!0}}},[I,Z]);var B=R?null==(i=null===(e=R.files)||void 0===e?void 0:e.find(function(e){return e.type===b.T.Thumbnail}))?void 0:null===(n=i.file)||void 0===n?void 0:null===(a=n.url)||void 0===a?void 0:a.trim():void 0,G=R?(o=(r=R.publishedAt).includes("T")?r:r.replace(" ","T"),Number.isNaN((y=new Date(o)).getTime())?{iso:"",label:""}:{iso:y.toISOString().slice(0,10),label:y.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}):{iso:"",label:""};return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(c(),{children:[(0,v.jsx)("title",{children:R?"".concat(R.title," — hhk.am"):"News — hhk.am"}),(0,v.jsx)("meta",{name:"description",content:null!==(N=null==R?void 0:R.metaDescription)&&void 0!==N?N:"News article."}),(0,v.jsx)("meta",{name:"robots",content:"index,follow"})]}),(0,v.jsx)("article",{className:"news-detail",children:(0,v.jsxs)("div",{className:"news-detail__inner",children:[(0,v.jsx)(_.Z,{ariaLabel:"Հրամանական ճանապարհ",items:[{label:z({id:"homepage"}),href:T("/"),Icon:m.Z}].concat((0,t.Z)(R?[{label:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:36;return e.length<=n?e:"".concat(e.slice(0,n-1),"…")}(R.title),Icon:f.Z}]:[{label:"…",Icon:f.Z}]))}),A||!E.isReady?(0,v.jsx)("p",{className:"news-detail__empty",children:"Loading…"}):X||!R?(0,v.jsxs)("p",{className:"news-detail__empty",children:["Article not found."," ",(0,v.jsx)(u(),{href:T("/news"),className:"news-detail__back",children:z({id:"back-to-homepage"})})]}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("header",{className:"news-detail__masthead",children:[(0,v.jsx)("h1",{className:"news-detail__headline",children:R.title}),(0,v.jsxs)("p",{className:"news-detail__date-line",children:[null!==(j=R.category)&&void 0!==j&&j.name?(0,v.jsx)("span",{className:"news-detail__category",children:R.category.name}):null,null!==(k=R.category)&&void 0!==k&&k.name?" \xb7 ":null,(0,v.jsx)("time",{dateTime:G.iso,children:G.label})]})]}),B?(0,v.jsx)("figure",{className:"news-detail__figure",children:(0,v.jsx)("img",{src:B,alt:"",className:"news-detail__featured-img",loading:"eager",decoding:"async"})}):null,(0,v.jsx)("section",{className:"news-detail__article","aria-labelledby":"news-article-body",children:(0,v.jsx)("div",{className:"news-detail__body",children:(0,v.jsx)("div",{dangerouslySetInnerHTML:{__html:O||R.body}})})})]})]})})]})}},14181:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/article/[alias]",function(){return a(12052)}])},27662:function(){}},function(e){e.O(0,[520,774,888,179],function(){return e(e.s=14181)}),_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.