PageSourceSearch

https://hhk.am/_next/static/chunks/pages/[locale]/gallery/[id]-21cffcbc3602aabd.js

js hhk.am collected 2026-10-02 10:28:12 UTC 9,593 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[854],{55813:function(e,n,t){"use strict";var r=t(64836);n.Z=void 0;var a=r(t(64938)),l=t(85893);n.Z=(0,a.default)((0,l.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,n,t){"use strict";var r=t(64836);n.Z=void 0;var a=r(t(64938)),l=t(85893);n.Z=(0,a.default)((0,l.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft")},26215:function(e,n,t){"use strict";var r=t(64836);n.Z=void 0;var a=r(t(64938)),l=t(85893);n.Z=(0,a.default)((0,l.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},11580:function(e,n,t){"use strict";var r=t(64836);n.Z=void 0;var a=r(t(64938)),l=t(85893);n.Z=(0,a.default)((0,l.jsx)("path",{d:"M20 4v12H8V4zm0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-8.5 9.67 1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z"}),"CollectionsOutlined")},34193:function(e,n,t){"use strict";var r=t(64836);n.Z=void 0;var a=r(t(64938)),l=t(85893);n.Z=(0,a.default)((0,l.jsx)("path",{d:"m12 5.69 5 4.5V18h-2v-6H9v6H7v-7.81zM12 3 2 12h3v8h6v-6h2v6h6v-8h3z"}),"HomeOutlined")},35281:function(e,n,t){"use strict";var r=t(64836);n.Z=void 0;var a=r(t(64938)),l=t(85893);n.Z=(0,a.default)((0,l.jsx)("path",{d:"M20 4v12H8V4zm0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-8.5 9.67 1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z"}),"PhotoLibraryOutlined")},3920:function(e,n,t){"use strict";t.d(n,{R6:function(){return s},mI:function(){return u},p:function(){return h}});var r=t(50029),a=t(87794),l=t.n(a),i=t(85802),c=t(64925);function s(){return o.apply(this,arguments)}function o(){return(o=(0,r.Z)(l().mark(function e(){var n;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.ZP.get(c.Z.galleryCategory.list);case 2:return n=e.sent,e.abrupt("return",function(e){if(Array.isArray(e))return{count:e.length,rows:e};if(e&&"object"==typeof e&&"rows"in e){var n;return{count:null!==(n=e.count)&&void 0!==n?n:e.rows.length,rows:e.rows}}return{count:0,rows:[]}}(n));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function u(e){return d.apply(this,arguments)}function d(){return(d=(0,r.Z)(l().mark(function e(n){var t;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.ZP.get(c.Z.gallery.single(String(n)));case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function h(e){return f.apply(this,arguments)}function f(){return(f=(0,r.Z)(l().mark(function e(n){var t;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.ZP.get(c.Z.gallery.list,{params:{filters:JSON.stringify([{field:"categoryId",value:n}])}});case 2:return t=e.sent,e.abrupt("return",function(e){if(Array.isArray(e))return{count:e.length,rows:e};if(e&&"object"==typeof e&&"rows"in e){var n;return{count:null!==(n=e.count)&&void 0!==n?n:e.rows.length,rows:e.rows}}return{count:0,rows:[]}}(t));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}},2432:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var r=t(67294),a=t(41664),l=t.n(a),i=t(26215);t(98234);var c=t(85893);function s(e){var n=e.items,t=e.ariaLabel;return(0,c.jsx)("nav",{className:"breadcrumb","aria-label":void 0===t?"Breadcrumb":t,children:(0,c.jsx)("ol",{className:"breadcrumb__list",children:n.map(function(e,n){var t=e.Icon,a=void 0===e.href;return(0,c.jsxs)(r.Fragment,{children:[n>0?(0,c.jsx)("li",{className:"breadcrumb__sep","aria-hidden":!0,children:(0,c.jsx)(i.Z,{className:"breadcrumb__chevron"})}):null,(0,c.jsx)("li",{className:a?"breadcrumb__item breadcrumb__item--current":"breadcrumb__item",children:e.href?(0,c.jsxs)(l(),{href:e.href,className:"breadcrumb__link",children:[t?(0,c.jsx)(t,{className:"breadcrumb__icon","aria-hidden":!0}):null,(0,c.jsx)("span",{className:"breadcrumb__text",children:e.label})]}):(0,c.jsxs)("span",{className:"breadcrumb__current",children:[t?(0,c.jsx)(t,{className:"breadcrumb__icon","aria-hidden":!0}):null,(0,c.jsx)("span",{className:"breadcrumb__text",children:e.label})]})})]},"".concat(e.label,"-").concat(n))})})})}},84403:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return w}});
1var r=t(76687),a=t(9008),l=t.n(a),i=t(41664),c=t.n(i),s=t(11163),o=t(67294),u=t(34193),d=t(11580),h=t(35281),f=t(50594),m=t(19572),v=t(26215),g=t(55813),b=t(86896),_=t(2432),y=t(42461),p=t(3920);t(36575);var x=t(85893),j={ru:"ru-RU",en:"en-US"},N=["հունվարի","փետրվարի","մարտի","ապրիլի","մայիսի","հունիսի","հուլիսի","օգոստոսի","սեպտեմբերի","հոկտեմբերի","նոյեմբերի","դեկտեմբերի"];function w(){var e,n,t,a,i,w,Z,k,C,H=(0,y.b)(),z=H.withLocalePath,L=H.locale,P=(0,s.useRouter)(),V=(0,b.Z)().formatMessage,E=P.isReady&&"string"==typeof P.query.id?P.query.id:"",S=(0,o.useState)(null),A=S[0],M=S[1],I=(0,o.useState)(!1),O=I[0],R=I[1],T=(0,o.useState)(!1),F=T[0],D=T[1],U=(0,o.useState)(null),q=U[0],G=U[1];(0,o.useEffect)(function(){if(E){var e=!1;return R(!0),D(!1),M(null),(0,p.mI)(E).then(function(n){e||M(n)}).catch(function(){e||D(!0)}).finally(function(){e||R(!1)}),function(){e=!0}}},[E,L]);var X=A?A.items.slice().sort(function(e,n){return e.sort-n.sort}):[],B=(a=(e=null!==(w=null!==(Z=null==A?void 0:A.publishedAt)&&void 0!==Z?Z:null==A?void 0:A.createdAt)&&void 0!==w?w:"").includes("T")?e:e.replace(" ","T"),Number.isNaN((i=new Date(a)).getTime())?{iso:"",label:""}:(n="hy"===L?"".concat(i.getDate()," ").concat(N[i.getMonth()]," ").concat(i.getFullYear()):i.toLocaleDateString(null!==(t=j[L])&&void 0!==t?t:"en-US",{month:"long",day:"numeric",year:"numeric"}),{iso:i.toISOString().slice(0,10),label:n})),J=B.iso,Y=B.label,K=function(){return G(null)},Q=(0,o.useCallback)(function(){G(function(e){return null!==e&&e>0?e-1:e})},[]),W=(0,o.useCallback)(function(){G(function(e){return null!==e&&e<X.length-1?e+1:e})},[X.length]);(0,o.useEffect)(function(){if(null!==q){var e=function(e){"Escape"===e.key&&K(),"ArrowLeft"===e.key&&Q(),"ArrowRight"===e.key&&W()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}},[q,Q,W]),(0,o.useEffect)(function(){return document.body.style.overflow=null!==q?"hidden":"",function(){document.body.style.overflow=""}},[q]);var $=null!==q?null===(k=X[q])||void 0===k?void 0:null===(C=k.file)||void 0===C?void 0:C.url:null;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(l(),{children:[(0,x.jsx)("title",{children:A?"".concat(A.title," — Gallery — hhk.am"):"Gallery — hhk.am"}),(0,x.jsx)("meta",{name:"description",content:"Photo album."}),(0,x.jsx)("meta",{name:"robots",content:"index,follow"})]}),(0,x.jsx)("div",{className:"gallery-detail",children:(0,x.jsxs)("div",{className:"gallery-detail__inner",children:[(0,x.jsx)(_.Z,{ariaLabel:"Հрамаканakan ynthac",items:[{label:V({id:"homepage"}),href:z("/"),Icon:u.Z},{label:V({id:"gallery"}),href:z("/gallery"),Icon:d.Z}].concat((0,r.Z)(A?[{label:A.title,Icon:h.Z}]:[{label:"…",Icon:h.Z}]))}),O||!P.isReady?(0,x.jsx)("div",{className:"gallery-detail__grid",children:Array.from({length:9}).map(function(e,n){return(0,x.jsx)("div",{className:"gallery-detail__cell gallery-detail__cell--skeleton"},n)})}):F||!A?(0,x.jsxs)("p",{className:"gallery-detail__empty",children:["Album not found."," ",(0,x.jsx)(c(),{href:z("/gallery"),className:"gallery-detail__back",children:V({id:"back-to-homepage"})})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("h1",{className:"gallery-detail__title",children:A.title}),(0,x.jsxs)("p",{className:"gallery-detail__meta",children:[(0,x.jsx)(g.Z,{className:"gallery-detail__meta-icon","aria-hidden":!0}),(0,x.jsx)("time",{dateTime:J,children:Y})]}),0===X.length?(0,x.jsx)("p",{className:"gallery-detail__empty",children:"No photos in this album."}):(0,x.jsx)("div",{className:"gallery-detail__grid",children:X.map(function(e,n){return(0,x.jsx)("button",{type:"button",className:"gallery-detail__cell",onClick:function(){return G(n)},"aria-label":"Open photo ".concat(n+1),children:(0,x.jsx)("img",{src:e.file.url,alt:"",className:"gallery-detail__img",loading:n<6?"eager":"lazy",decoding:"async"})},e.id)})})]})]})}),null!==q&&$?(0,x.jsxs)("div",{className:"gallery-lightbox",role:"dialog","aria-modal":"true","aria-label":"Photo viewer",onClick:K,children:[(0,x.jsx)("button",{type:"button",className:"gallery-lightbox__close","aria-label":"Close",onClick:K,children:(0,x.jsx)(f.Z,{})}),q>0&&(0,x.jsx)("button",{type:"button",className:"gallery-lightbox__nav gallery-lightbox__nav--prev","aria-label":"Previous photo",onClick:function(e){e.stopPropagation(),Q()},children:(0,x.jsx)(m.Z,{})}),(0,x.jsx)("div",{className:"gallery-lightbox__img-wrap",onClick:function(e){return e.stopPropagation()},children:(0,x.jsx)("img",{src:$,alt:"",className:"gallery-lightbox__img"},$)}),q<X.length-1&&(0,x.jsx)("button",{type:"button",className:"gallery-lightbox__nav gallery-lightbox__nav--next","aria-label":"Next p
1hoto",onClick:function(e){e.stopPropagation(),W()},children:(0,x.jsx)(v.Z,{})}),(0,x.jsxs)("p",{className:"gallery-lightbox__counter",children:[q+1," / ",X.length]})]}):null]})}},97086:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/gallery/[id]",function(){return t(84403)}])},98234:function(){},36575:function(){}},function(e){e.O(0,[774,888,179],function(){return e(e.s=97086)}),_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.