PageSourceSearch

https://www.politeianet.gr/assets/index.Gv3YSAUm.js

js politeianet.gr collected 2026-10-01 11:37:56 UTC 5,269 bytes, 1 lines download raw bytes

1import{a4 as E,Q as I,by as R,d as Y,z as _,r as u,j as e,S as q,aG as D,bz as G,F as N,bA as z}from"./index-jOxk7ZTv.js";import{u as O}from"./index.-Tf8tMZr.js";/* empty css               *//* empty css                   */import{P as y}from"./pagination.B_8iorwl.js";import{N as k}from"./navigation.oZgrMVwX.js";import{S as A,a as P}from"./swiper-react.H16mpuzB.js";import{u as Q}from"./useFilterState.XCdQf8Pk.js";import{B as V}from"./Breadcrumb.CjJmxHHJ.js";import{R as H}from"./Results.mnfRz1Fb.js";import{P as K}from"./PageHeaderMeta.0FFsnQQX.js";import{F as M}from"./Faq.PohYVdmz.js";/* empty css                     */import{a as W}from"./default_author-photo.YUn_SVu0.js";import{b as J,r as U}from"./awardsHelper.l2A6I6d0.js";import{a as X,f as Z}from"./schema.SBh8Zon8.js";import{u as ee}from"./useContributorsByCode.mgMkD6dK.js";import"./Pagination.tusDPwmV.js";import"./paginationPages.mJ8jI1iQ.js";import"./chevron.IriMYtV-.js";import"./useApplyFilters.gf_9oFas.js";import"./useFAQsmultiple.ts0V7-ff.js";import"./minus.MZmDXfBJ.js";import"./plus.mIGvVimm.js";/* empty css            */const te=(s,r)=>{const l=E();return I({queryKey:["contributors-by-award",s,{awardName:r,lang:l}],queryFn:()=>R(s,null,0,0,"","","",r).then(o=>o).catch(()=>({})),placeholderData:o=>o??{},enabled:s.length>0&&!!r,refetchOnWindowFocus:!1})},se=s=>{let r=-290,l=document.getElementById(s);if(l){let o=l.getBoundingClientRect().top+window.scrollY+r;window.scrollTo({top:o,behavior:"smooth"})}},Pe=()=>{const{t:s}=Y(),{page:r}=Q(),l=100,o="",g="author",h=_(),[i,x]=u.useState(""),j=O(i,750),[n,B]=u.useState(""),[d,F]=u.useState({}),[p,w]=u.useState("en"),f=s("contributors.nobelAwardName"),{data:v}=te(g,f),S=(v==null?void 0:v.items)??[],{data:c,error:L,isFetching:m}=ee(g,null,r,l,j,j?"":n,o),T=[{nm:s("contributors.title"),url:"/contributors"}],$={nm:s("contributors.title"),eurl:(h==null?void 0:h.pathname)||"/contributors"};u.useEffect(()=>{m||!n||i||se(n)},[m,n]);const C=t=>{x(""),B(t)};return e.jsxs("div",{id:"contributors",children:[e.jsx(K,{canonical_url:`${window.location.origin}${h.pathname}`,schema:[X(T),Z($,(c==null?void 0:c.items)??[])]}),e.jsxs("div",{className:"top-container",children:[e.jsx(V,{currentName:s("contributors.title")}),e.jsxs("div",{className:"container content-wrapper",children:[e.jsxs("div",{className:"input-container",children:[e.jsx("input",{type:"text",placeholder:s("contributors.searchPlaceholder"),value:i,onChange:t=>x(t.target.value)}),i?e.jsx("button",{onClick:()=>x(""),className:"discard",children:e.jsx(q,{})}):e.jsx("button",{className:"search-icon",children:e.jsx(D,{})})]}),e.jsxs("div",{className:"letters-container",children:[e.jsxs("div",{className:"alphabet-tabs",children:[e.jsx("button",{className:`alphabet-tab ${p==="en"?"active":""}`,onClick:()=>w("en"),children:"Αγγλικά"}),e.jsx("button",{className:`alphabet-tab ${p==="gr"?"active":""}`,onClick:()=>w("gr"),children:"Ελληνικά"})]}),e.jsx("div",{className:`letters ${p==="en"?"active":""}`,children:G.map((t,a)=>e.jsx(N,{to:"#"+t,onClick:()=>C(t),"data-id":t,className:t===n&&!i?"active":"",children:t},a))}),e.jsx("div",{className:`letters ${p==="gr"?"active":""}`,children:z.map((t,a)=>e.jsx(N,{to:"#"+t,onClick:()=>C(t),"data-id":t,className:t===n&&!i?"active":"",children:t},a))})]})]})]}),e.jsxs("div",{className:"bottom-container content-wrapper",children:[m?e.jsxs("div",{className:"featured-authors placeholder",children:[e.jsx("h1",{children:s("contributors.featuredTitle")}),e.jsxs("div",{className:"featured-authors-slider",children:[e.jsx("div",{className:"swiper-button-prev disabled"}),e.jsx(A,{spaceBetween:20,slidesPerView:"auto",pagination:{clickable:!0},modules:[y,k],navigation:!0,className:"main-author-container",children:[...Array(5)].map((t,a)=>e.jsx(P,{children:e.jsxs("div",{className:"author-container placeholder",children:[e.jsx("div",{className:"skeleton-image"}),e.jsx("div",{className:"skeleton-text"})]})},a))}),e.jsx("div",{className:"swiper-button-next disabled"})]})]}):e.jsxs(e.Fragment,{children:[S.length>0&&i.trim().length===0&&e.jsxs("div",{className:"featured-authors",children:[e.jsx("h1",{children:s("contributors.featuredTitle")}),e.jsxs("div",{className:"featured-authors-slider",children:[d.allowSlidePrev&&e.jsx("div",{className:d.allowSlidePrev?"swiper-button-prev disabled":"swiper-button-prev",onClick:()=>d.slidePrev()}),e.jsx(A,{spaceBetween:20,slidesPerView:"auto",pagination:{clickable:!0},modules:[y,k],navigation:!0,onInit:t=>{F(t)},className:"main-author-container",children:S.map(t=>{const a=J(t,f),b=U(t);return e.jsx(P,{children:e.jsxs(N,{to:t.eurl||"#",className:"author-container",children:[e.jsx("img",{src:t.img1||W,alt:(b==null?void 0:b.trim())||"Author"}),e.jsx("h4",{children:b}),a&&e.jsx("span",{className:"award-year",children:s("contributors.nobelAwardedYear",{year:a})})]})},t.conId)})}),d.allowSlideNext&&e.jsx("div",{className:d.allowSlideNext?"swiper-button-next disabled":"swiper-button-next",onClick:()=>d.slideNext()})]})]}),(j||n)&&(c==null?void 0:c.total_count)===0&&!m&&e.jsx("div",{className:"no-results",children:s("contributors.noResults")}),e.jsx(H,{contributors:c,isFetching:m,error:L,code:"author"})]}),e.jsx(M,{section:"authors"})]})]})};export{Pe as default};

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.