PageSourceSearch

https://www.politeianet.gr/assets/LandingPage.LefWur-O.js

js politeianet.gr collected 2026-09-24 09:28:01 UTC 3,043 bytes, 1 lines download raw bytes

1import{a4 as a,Q as o,cU as p,d,j as i,F as m}from"./index-KDcLenRU.js";import{u as h}from"./index.Pv8WzJc3.js";/* empty css                      */import{d as x}from"./Default Book.mxlZrDNP.js";import{A as j}from"./AuthorSwiper.UeXAcohO.js";import v from"./index.M5TaK_md.js";import"./useFilterState.EmzgA-Mj.js";import"./ProductCard.I7ktBC9O.js";import"./emotion-element-f0de968e.browser.esm.61_hlabn.js";import"./emotion-utils.browser.esm.PLmk2cuA.js";import"./index.CSq2RyQM.js";import"./my-library.ZRI8T0vT.js";import"./FormattedPrice._VlBjyoq.js";import"./useOpenLoginModal.50Dszhx1.js";import"./GenericStore.Q48sUYLa.js";import"./awardsHelper.l2A6I6d0.js";import"./TeacherBookBadge.lXe03IJT.js";import"./warning-sign.XBdkSz9g.js";import"./toGreekCaps.1t_UCRL0.js";import"./Availability.cpukXsC_.js";import"./chevron.FnaHNmVN.js";/* empty css               */import"./pagination.2PogbG0d.js";import"./swiper-react.4C7c-kAQ.js";import"./navigation.tMpeavb1.js";import"./useSwiperSlidePersistence.A7cCrjuI.js";import"./default_author-photo.YUn_SVu0.js";import"./FaqsByEntity.UA3JLMmA.js";/* empty css            */import"./minus.8U4415h5.js";import"./plus.U__nI8si.js";const c=n=>{const r=a();return o({queryKey:["BestSellingAuthorsByCategory",n,{lang:r}],queryFn:()=>p(n).then(t=>t.items),enabled:!!n,refetchOnWindowFocus:!1,placeholderData:t=>t??[]})},N="/assets/navigation-book-icon.rQ6r1DXJ.svg",f=({category:n,subcategories:r})=>{const{t}=d();return i.jsxs("div",{id:"category-navigation",children:[i.jsxs("div",{className:"navigation-header",children:[i.jsx("img",{src:N,width:36,height:36,alt:"Book Icon"})," ",t("categoryNavigation.category")]}),i.jsx("h3",{className:"current-category",children:n.nm}),r.length>0&&i.jsx("ul",{children:r.map(e=>i.jsx("div",{className:"link-filters-button",children:i.jsx(m,{to:e.eurl,children:i.jsx("li",{children:e.nm})})},e.id))})]})},Y=({category:n})=>{const{data:r,isFetching:t}=h(n==null?void 0:n.id),{t:e}=d(),{data:l}=c(n==null?void 0:n.id);return i.jsx(i.Fragment,{children:i.jsx("div",{id:"landing-container",children:i.jsxs("div",{className:"products-grid content-wrapper",children:[i.jsxs("div",{className:"filters-products",children:[i.jsx(f,{category:n,subcategories:r}),i.jsx("div",{className:`categories-grid ${t?"fetching":""}`,children:r.map(s=>i.jsxs(m,{className:"category-card",to:s==null?void 0:s.eurl,children:[i.jsxs("div",{className:"img-title-wrapper",children:[i.jsx("div",{className:"image-container",children:i.jsx("img",{src:(s==null?void 0:s.img1)??x,alt:(s==null?void 0:s.nm)+" image"})}),i.jsx("h2",{children:s==null?void 0:s.nm})]}),i.jsxs("div",{className:"cta",children:[e("landingPage.viewMore")," ",i.jsx("span",{children:">"})]})]},s==null?void 0:s.id))})]}),l.length>0&&i.jsxs("div",{className:"best-selling-authors",children:[i.jsx("h2",{children:e("landingPage.popularAuthors")}),i.jsx(j,{authors:l,largeCard:!1,storageKey:`landing-page-authors-swiper-${n==null?void 0:n.id}`},n==null?void 0:n.id)]}),n&&i.jsx(v,{category:n})]})})})};export{Y 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.