PageSourceSearch

https://hhk.am/_next/static/chunks/pages/[locale]/structure/president-af5d17a2bfcc4133.js

js hhk.am collected 2026-10-02 10:28:28 UTC 8,675 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[618],{15706:function(e,n,r){"use strict";var t=r(64836);n.Z=void 0;var a=t(r(64938)),s=r(85893);n.Z=(0,a.default)((0,s.jsx)("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16z"}),"ChatBubbleOutlineOutlined")},26215:function(e,n,r){"use strict";var t=r(64836);n.Z=void 0;var a=t(r(64938)),s=r(85893);n.Z=(0,a.default)((0,s.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},34193:function(e,n,r){"use strict";var t=r(64836);n.Z=void 0;var a=t(r(64938)),s=r(85893);n.Z=(0,a.default)((0,s.jsx)("path",{d:"m12 5.69 5 4.5V18h-2v-6H9v6H7v-7.81zM12 3 2 12h3v8h6v-6h2v6h6v-8h3z"}),"HomeOutlined")},73079:function(e,n,r){"use strict";var t=r(64836);n.Z=void 0;var a=t(r(64938)),s=r(85893);n.Z=(0,a.default)((0,s.jsx)("path",{d:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"}),"PersonOutlineOutlined")},87189:function(e,n,r){"use strict";r.d(n,{m:function(){return l},s:function(){return u}});var t=r(50029),a=r(87794),s=r.n(a),i=r(85802),c=r(64925);function l(e){return o.apply(this,arguments)}function o(){return(o=(0,t.Z)(s().mark(function e(n){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.ZP.get(c.Z.person.list,{params:{filters:JSON.stringify([{field:"language",value:n}])}}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function u(e,n){return d.apply(this,arguments)}function d(){return(d=(0,t.Z)(s().mark(function e(n,r){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.ZP.get(c.Z.person.single(n,r),{params:{filters:JSON.stringify([{field:"language",value:r}])}}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}},67928:function(e,n,r){"use strict";r.d(n,{A:function(){return l}});var t=r(50029),a=r(87794),s=r.n(a),i=r(85802),c=r(64925);function l(e){return o.apply(this,arguments)}function o(){return(o=(0,t.Z)(s().mark(function e(n){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.ZP.get(c.Z.position.list,{params:{filters:JSON.stringify([{field:"language",value:n}])}}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}},2432:function(e,n,r){"use strict";r.d(n,{Z:function(){return l}});var t=r(67294),a=r(41664),s=r.n(a),i=r(26215);r(98234);var c=r(85893);function l(e){var n=e.items,r=e.ariaLabel;return(0,c.jsx)("nav",{className:"breadcrumb","aria-label":void 0===r?"Breadcrumb":r,children:(0,c.jsx)("ol",{className:"breadcrumb__list",children:n.map(function(e,n){var r=e.Icon,a=void 0===e.href;return(0,c.jsxs)(t.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)(s(),{href:e.href,className:"breadcrumb__link",children:[r?(0,c.jsx)(r,{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:[r?(0,c.jsx)(r,{className:"breadcrumb__icon","aria-hidden":!0}):null,(0,c.jsx)("span",{className:"breadcrumb__text",children:e.label})]})})]},"".concat(e.label,"-").concat(n))})})})}},5818:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return x}});var t=r(76687),a=r(9008),s=r.n(a),i=r(41664),c=r.n(i),l=r(67294),o=r(34193),u=r(73079),d=r(15706),p=r(87189),h=r(67928),m=r(2432),f=r(42461),_=r(72629),v=r(86896);r(99950),r(72139);var b=r(85893);function g(e){return"".concat(e.firstName," ").concat(e.lastName).trim()}function x(){var e,n,r,a=(0,f.b)(),i=a.withLocalePath,x=a.locale,j=(0,l.useState)([]),N=j[0],Z=j[1],w=(0,l.useState)(!0),y=w[0],k=w[1],S=(0,l.useState)(!1),O=S[0],P=S[1],C=(0,l.useState)(null),M=C[0],E=C[1],L=(0,l.useState)(!0),H=L[0],I=L[1],z=(0,l.useState)(!1),V=z[0],q=z[1],J=(0,v.Z)().formatMessage;(0,l.useEffect)(function(){var e=!1;return k(!0),P(!1),(0,h.A)(x).then(function(n){if(!e){var r;Z((0,t.Z)(null!==(r=n.rows)&&void 0!==r?r:[]).sort(function(e,n){return e.sort-n.sort}))}}).catch(function(){e||(P(!0),Z([]))}).finally(function(){e||k(!1)}),function(){e=!0}},[x]),(0,l.useEffect)(function(){var e=!1;return I(!0),q(!1),E(null),(0,p.s)(1,x).then(function(n){e||E(n)}).catch(function(){e||(q(!0),E(null))}).finally(function(){e||I(!1)}),function(){e=!0}},[x]);var R=(0,l.useMemo)(function(){var e,n=null==M?void 0:null===(e=M.portfolio)||void 0===e?void 0:e.trim();return n?(0,_.q)(n):[]},[M]),A=(null==M?void 0:null===(e=M.position)||void 0===e?void 0:e.alias)==="president",B=(0,l.useMemo)(function(){if(!M)return"";var e,n,r,t=(null===(e=M.photo)||void 0===e?void 0:null===(n=e.url)||void 0===n?void 0:n.trim())||void 0;if(t)return t;var a=(null===(r=M.alias)||void 0===r?void 0:r.trim())||String(M.id);return"https://picsum.photos/seed/".concat(encodeURIComponent(a),"/480/640")},[M]),F=M?g(M):J({id:"structure"});return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(s(),{children:[(0,b.jsx)("title",{children:"".concat(F," — hhk.am")}),(0,b.jsx)("meta",{name:"description",content:"Party member profile and biography."}),(0,b.jsx)("meta",{name:"robots",content:"index,follow"})]}),(0,b.jsx)("div",{className:"persons-page",children:(0,b.jsxs)("div",{className:"persons-page__inner",children:[(0,b.jsx)(m.Z,{ariaLabel:"Հրամանական ճանապարհ",items:[{label:J({id:"homepage"}),href:i("/"),Icon:o.Z},{label:J({id:"structure"}),Icon:u.Z}]}),(0,b.jsx)("h1",{className:"persons-page__title",children:J({id:"structure"})}),(0,b.jsx)("div",{className:"persons-page__tabs-wrap",children:y?(0,b.jsx)("p",{className:"persons-page__tabs-status",children:"Loading…"}):O?(0,b.jsx)("p",{className:"persons-page__tabs-status",children:"Could not load sections."}):0===N.length?(0,b.jsx)("p",{className:"persons-page__tabs-status",children:"No sections available."}):(0,b.jsx)("nav",{className:"persons-page__tabs","aria-label":"Structure sections",children:N.map(function(e){var n="president"===e.alias,r=i("/structure/".concat(encodeURIComponent(e.alias)));return(0,b.jsx)(c(),{href:r,id:"persons-tab-".concat(e.id),className:n?"persons-page__tab persons-page__tab--active":"persons-page__tab","aria-current":n?"page":void 0,scroll:!1,children:e.title},e.id)})})}),(0,b.jsx)("div",{className:"persons-page-content",children:H?(0,b.jsx)("p",{className:"person-detail__status",children:"Loading…"}):V||!M?(0,b.jsxs)("p",{className:"person-detail__status",children:["Person not found."," ",(0,b.jsx)(c(),{href:i("/"),className:"person-detail__back",children:J({id:"back-to-homepage"})})]}):(0,b.jsxs)("div",{className:"person-detail__layout",children:[(0,b.jsxs)("aside",{className:"person-detail__sidebar",children:[(0,b.jsx)("div",{className:"person-detail__photo-wrap",children:(0,b.jsx)("img",{className:"person-detail__photo",src:B,alt:g(M),loading:"eager",decoding:"async"})}),A?(0,b.jsxs)("a",{href:"mailto:[email protected]?subject=Letter%20to%20the%20President",className:"person-detail__cta",children:[(0,b.jsx)(d.Z,{className:"person-detail__cta-icon","aria-hidden":!0}),J({id:"letter-to-president"})]}):null]}),(0,b.jsxs)("div",{className:"person-detail__main",children:[(0,b.jsxs)("header",{className:"person-detail__intro",children:[(0,b.jsx)("h2",{className:"person-detail__name",children:g(M)}),(0,b.jsx)("p",{className:"person-detail__role",children:null!==(n=null===(r=M.position)||void 0===r?void 0:r.title)&&void 0!==n?n:""})]}),R.length>0?(0,b.jsx)("div",{className:"person-detail__bio",children:R.map(function(e,n){return(0,b.jsx)("p",{children:e},n)})}):null]})]})})]})})]})}},72629:function(e,n,r){"use strict";function t(e){return e.replace(/\r\n/g,"\n").replace(/<br\s*\/?>/gi,"\n").replace(/<\/p>/gi,"\n\n").replace(/<\/div>/gi,"\n").replace(/<\/li>/gi,"\n").replace(/<[^>]+>/g,"").replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").trim().split(/\n\n+/).map(function(e){return e.replace(/\n/g," ").replace(/\s+/g," ").trim()}).filter(function(e){return e.length>0})}r.d(n,{q:function(){return t}})},78333:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/structure/president",function(){return r(5818)}])},98234:function(){},99950:function(){},72139:function(){}},function(e){e.O(0,[774,888,179],function(){return e(e.s=78333)}),_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.