PageSourceSearch

https://www.politeianet.gr/assets/HomeBelowTheFold.Gy7gHX7p.js

js politeianet.gr collected 2026-10-01 11:38:48 UTC 13,086 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FeaturedAuthorSwiper.SPiUIicy.js","assets/index-jOxk7ZTv.js","assets/index.ZwqORRZd.css","assets/pagination.B_8iorwl.js","assets/swiper-react.H16mpuzB.js","assets/pagination.xNKufRMF.css","assets/navigation.oZgrMVwX.js","assets/autoplay.jS7zkiOz.js","assets/useSwiperSlidePersistence.ute5tiee.js","assets/ProductCardMini.MQ01i78b.js","assets/FormattedPrice.2tWRY0bO.js","assets/PurchasedBadge.MoTXF2is.js","assets/my-library.Ju6kevAm.js","assets/Default Book.mxlZrDNP.js","assets/TeacherBookBadge.U_NBU5Dg.js","assets/warning-sign._sX4G-b2.js","assets/toGreekCaps.nGPKjCu3.js","assets/TeacherBookBadge.zjl0V1Kh.css","assets/AddToCart.9iez5b5T.js","assets/react-select-utils.fldikllN.js","assets/variables.w40geAFS.js","assets/ProductCardMini.W59ZRSab.css","assets/swiper.1fD6yzI3.css","assets/HomepageAuthorsSwiper.xUUqw9Zo.js","assets/navigation.rXkMm8KJ.css","assets/HomepageBlogsSwiper.ZxUpgHA-.js","assets/BlogCard.6NYGeB1i.js","assets/BlogCard.a0nJC5cQ.css","assets/HomepageSuggestionsSwiper.UlaCu9cm.js","assets/fixedButtonScrollToTop.mSH8THLJ.js","assets/index.-Tf8tMZr.js","assets/useContributorProducts.5a2FDwza.js","assets/useContributorsByCode.mgMkD6dK.js","assets/useFilterState.XCdQf8Pk.js","assets/awardsHelper.l2A6I6d0.js","assets/default_author-photo.YUn_SVu0.js","assets/ProductCardsSwiper.FiqIpla-.js","assets/useProductTabsByCode.ZhflSR5A.js","assets/Tabs.Un0dR1Ej.js","assets/Tabs.WxnjjgEp.css","assets/useBannersByGroupName.ucPKFKXK.js","assets/useBannersByGroupCode.nFMjA21Z.js","assets/index.4Zwa9IG2.js","assets/personalized_products.Db3asohW.css","assets/react-select.esm.K8gsVN0T.js","assets/memoize-one.esm.sgM6qpEC.js","assets/emotion-element-f0de968e.browser.esm.kF8BHM8e.js","assets/emotion-utils.browser.esm.PLmk2cuA.js","assets/setPrototypeOf.ahVgEFUp.js","assets/hoist-non-react-statics.cjs.mvhlgDCI.js"])))=>i.map(i=>d[i]);
2import{r as c,_ as m,d as u,j as e,F as b,b2 as v,cT as p,P as g,a4 as T,Q as F,cU as B,L as H,aQ as A}from"./index-jOxk7ZTv.js";import{F as I}from"./fixedButtonScrollToTop.mSH8THLJ.js";import{a as L}from"./index.-Tf8tMZr.js";import{u as k,a as E}from"./useContributorProducts.5a2FDwza.js";import{u as V}from"./useContributorsByCode.mgMkD6dK.js";import{u as z}from"./useFilterState.XCdQf8Pk.js";import{a as $,g as M}from"./awardsHelper.l2A6I6d0.js";import{s as O}from"./TeacherBookBadge.U_NBU5Dg.js";import{a as D}from"./default_author-photo.YUn_SVu0.js";import{P as N}from"./ProductCardsSwiper.FiqIpla-.js";import{u as S}from"./useProductTabsByCode.ZhflSR5A.js";import{T as R,a as K}from"./Tabs.Un0dR1Ej.js";import{u as w}from"./useBannersByGroupName.ucPKFKXK.js";import{u as G}from"./useBannersByGroupCode.nFMjA21Z.js";import{d as x}from"./react-select-utils.fldikllN.js";import{P as Q}from"./index.4Zwa9IG2.js";import"./warning-sign._sX4G-b2.js";import"./toGreekCaps.nGPKjCu3.js";import"./variables.w40geAFS.js";/* empty css                              */const U=c.lazy(()=>m(()=>import("./FeaturedAuthorSwiper.SPiUIicy.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]))),q=()=>{const{t:i}=u(),{viewPerPageOption:a,page:t}=z(),{data:s}=V("author",!0),{width:r}=L(),l=r&&r<=1024,n=c.useMemo(()=>{var _,y;return((_=s==null?void 0:s.items)==null?void 0:_.length)>0?(y=s.items.find(C=>C.isFeatured))==null?void 0:y.eurl.split("/").at(-1):null},[s]),{data:o}=k(n,"author"),d=o==null?void 0:o.contributorCategoryCode,{data:h}=E(o==null?void 0:o.conId,null,"bestseller",t,a,d),f=c.useMemo(()=>O(h==null?void 0:h.items),[h]);return e.jsx("div",{id:"featured-author",className:`${o!=null&&o.id?"":"placeholder"}`,children:e.jsx("div",{className:"content-wrapper",children:e.jsxs("div",{className:"featured-author",children:[e.jsx("div",{className:"author-image",children:e.jsx("img",{fetchPriority:"low",loading:"lazy",src:o.img1||D,alt:$(o),width:480,height:520})}),e.jsxs("div",{className:"author-content",children:[e.jsx("h4",{children:i("featuredAuthor.authorOfTheMonth")}),e.jsx("h2",{children:M(o,i)}),e.jsx("span",{dangerouslySetInnerHTML:{__html:o.bio}}),e.jsx(b,{to:`/contributor/${n}`,style:{textDecoration:"none"},children:e.jsx("button",{className:"blue-border-button",children:i("featuredAuthor.learnMore")})}),l?e.jsx(N,{products:f,pagination:!0,largeCard:!1,storageKey:"home-featured-author-swiper-mobile"}):e.jsx(c.Suspense,{fallback:e.jsx("div",{style:{minHeight:200},children:"Loading slider…"}),children:e.jsx(U,{products:f})})]})]})})})},W={0:{slidesPerView:2.3,spaceBetween:5},768:{slidesPerView:4,spaceBetween:10},900:{slidesPerView:5,spaceBetween:10},1230:{slidesPerView:7,spaceBetween:20}},j=({code:i})=>{var r;const{data:a,isFetching:t}=S(i,{productLimit:30}),s=c.useMemo(()=>{let l=[];
2return a!=null&&a.product_tab_entries&&a.product_tab_entries.forEach(n=>{var o;((o=n.products)==null?void 0:o.length)>0&&l.push({title:n.nm,index:n.id,products:n.products})}),l},[a]);return c.useEffect(()=>{s.length>0&&v(s[0].products,s[0].title)},[s]),!t&&s.length===0?null:e.jsxs("div",{id:`home-product-tabs-slider-${i}`,className:"home-product-tabs-slider content-wrapper",children:[t&&s.length===0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"placeholder-title"}),e.jsx("div",{className:"placeholder-swiper",children:[0,1,2,3,4,5].map((l,n)=>e.jsxs("div",{className:"placeholder-card",children:[e.jsx("div",{className:"placeholder-image"}),e.jsx("div",{className:"placeholder-subtitle"})]},n))})]}),!t&&s.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{children:a==null?void 0:a.tl}),e.jsx(R,{activeIndex:(r=s[0])==null?void 0:r.index,storageKey:`home-tabs-${i}`,tabs:s,children:s.map((l,n)=>e.jsx(K,{tabIndex:l.index,children:e.jsx("div",{className:"content-wrapper",children:e.jsx(N,{products:l.products,pagination:!0,className:"product-card-tabs",productCardClassName:"minimal homepage-minimal",breakpoints:W,storageKey:`home-tabs-${i}-slider-${l.index}`})})},n))})]})]})},Y=c.lazy(()=>m(()=>import("./HomepageAuthorsSwiper.xUUqw9Zo.js"),__vite__mapDeps([23,1,2,3,4,5,6,7,8,22,24]))),J=()=>{const{t:i}=u(),a="8_HomepageAuthors",{data:t,isFetching:s}=w(a);return e.jsx("div",{id:"homepage-authors",className:`${s?"placeholder":""}`,children:e.jsx("div",{className:"content-wrapper",children:e.jsxs("div",{className:"homepage-authors",children:[e.jsx("p",{children:i("homepageAuthors.selectedForYou")}),e.jsx("h2",{children:i("homepageAuthors.featuredAuthors")}),e.jsxs("div",{className:"authors-container",children:[e.jsx("div",{className:"grid-container",children:s?[0,1,2,3].map((r,l)=>e.jsx("div",{className:"placeholder-banner-container"},l)):t.slice(0,4).map((r,l)=>e.jsx(b,{to:r.nu,className:"main-banner-container",children:e.jsxs("div",{className:"banner-container",style:{backgroundColor:r.chex},children:[e.jsx("div",{className:"banner-image",children:e.jsxs("picture",{className:"homepage-authors-image",children:[e.jsx("source",{media:"(max-width:650px)",srcSet:p(r.img2),width:174,height:174}),e.jsx("img",{fetchPriority:"low",loading:"lazy",src:p(r.img1),alt:r.bd,width:337,height:337})]})}),e.jsx("h3",{children:r.sub_title}),e.jsxs("div",{className:"banner-content",children:[e.jsx("h2",{children:r.tl}),e.jsx("p",{children:r.bd.replace(/<\/?p>/g,"")})]})]})},l))}),!s&&t.length>0&&e.jsx(c.Suspense,{fallback:e.jsx("div",{style:{minHeight:200},children:"Loading authors…"}),children:e.jsx(Y,{banners:t})})]})]})})})},P=()=>{const i=T();return F({queryKey:["show-front-news-entries",{lang:i}],queryFn:()=>B().then(a=>a.items).catch(()=>[]),placeholderData:a=>a??[]})};P.propTypes={categoryId:g.number,pageIndex:g.number,pageSize:g.number};const X=c.lazy(()=>m(()=>import("./HomepageBlogsSwiper.ZxUpgHA-.js"),__vite__mapDeps([25,1,2,3,4,5,8,26,27,22]))),Z=()=>{const{data:i,isFetching:a}=P(),{data:t,isFetching:s}=G("BookClubImage_banner");return e.jsx("div",{id:"homepage-blogs",className:`${a||s?"placeholder":""}`,children:e.jsx("div",{className:"content-wrapper",children:e.jsxs("div",{className:"homepage-blogs",children:[!s&&(t==null?void 0:t.length)>0&&e.jsxs("div",{className:"book-club-banner",children:[e.jsx("img",{src:t[0].img1,alt:t[0].tl||"Book Club",className:"book-club-icon",fetchPriority:"low"}),e.jsx("div",{className:"book-club-subtitle",children:t[0].sub_title}),e.jsx("h4",{children:t[0].tl})]}),a&&e.jsx("div",{className:"placeholder-blog-swiper",children:[0,1,2,3,4,5].map((r,l)=>e.jsx("div",{className:"placeholder-blog-card",children:e.jsx("div",{className:"placeholder-blog-image"})},l))}),!a&&i.length>0&&e.jsx(c.Suspense,{fallback:e.jsx("div",{style:{minHeight:200},children:"Loading blogs…"}),children:e.jsx(X,{data:i})}),!s&&t[0].nu&&e.jsx(H,{to:t[0].nu,className:"btn blue-border-button",children:t[0].rct||A("discoverBlog.button")})]})})})},ee=()=>{const{t:i}=u(),a="3_HomepageCategories",{data:t}=w(a);return e.jsx("div",{id:"homepage-categories",children:e.jsxs("div",{className:"content-wrapper",children:[e.jsx("h2",{children:i("homepageCategories.popularCategories")}),e.jsx("div",{className:"homepage-categories",children:t.length===0?[1,2,3,4].map(s=>e.jsx("div",{className:"homepage-category"},s)):t.slice(0,4).map(s=>e.jsxs(b,{to:s.nu,className:"homepage-category",style:{backgroundColor:s.chex},children:[e.jsxs("picture",{className:"homepage-categories-image",children:[e.jsx("source",{media:"(max-width:650px)",srcSet:p(s.img2),width:63,height:63}),e.jsx("img",{fetchPriority:"low",loading:"lazy",src:p(s.img1),alt:s.tl,width:96,height:96})]}),e.jsx("h3",{children:s.tl}),e.jsxs("div",{className:"homepage-categories-c2a",children:[i("homepageCategories.viewMore")," ",e.jsx("span",{children:">"})]})]},s.id))})]})})},se=c.lazy(()=>m(()=>import("./HomepageSuggestionsSwiper.UlaCu9cm.js"),__vite__mapDeps([28,1,2,3,4,5,8,29,30,31,32,33,34,14,15,16,17,35,36,37,38,39,40,41,19,20,42,43,22]))),re=()=>{const i="7_HomepageSuggestions",{data:a,isFetching:t}=w(i);return e.jsx("div",{id:"homepage-suggestions",className:`${t?"placeholder":""}`,children:e.jsx("div",{className:"content-wrapper",children:e.jsx("div",{className:"homepage-suggestions",children:t?e.jsx(ae,{}):e.jsx(e.Fragment,{children:e.jsx(c.Suspense,{fallback:e.jsx("div",{style:{minHeight:200},children:"Loading suggestions…"}),children:e.jsx(se,{banners:a})})})})})})},ae=()=>e.jsx("div",{className:"placeholder-banner-swiper",children:[0,1,2,3].map((i,a)=>e.jsx("div",{className:"placeholder-banner-container"},a))}),te=c.lazy(()=>m(()=>import("./react-select.esm.K8gsVN0T.js").then(i=>i.r),__vite__mapDeps([44,45,1,2,46,47,48,49]))),oe={0:{slidesPerView:2.3,spaceBetween:5},768:{slidesPerView:4,spaceBetween:10},900:{slidesPerView:5,spaceBetween:10,grid:{rows:2,fill:"row"}},1230:{slidesPerView:7,spaceBetween:20,grid:{rows:2,fill:"row"}}},ie=()=>{const{t:i}=u(),{data:a}=S("2_ProductTabsSelect",{productLimit:30}),t=c.useMemo(()=>{var d;let o=[];
2return(d=a==null?void 0:a.product_tab_entries)==null||d.forEach(h=>{h.products.length>0&&o.push({label:h.nm,value:h.id,products:h.products})}),o},[a]),s="home-product-tabs-select",[r,l]=c.useState(null);c.useEffect(()=>{if(t.length>0){const o=sessionStorage.getItem(s),d=o&&t.find(h=>String(h.value)===o)||t[0];l(d),v(d.products,d.label)}},[t]),c.useEffect(()=>{r&&v(r==null?void 0:r.products,r==null?void 0:r.label)},[r]);const n=o=>{l(o),sessionStorage.setItem(s,o.value)};return e.jsx("div",{id:"home-product-tabs-select",className:`${t.length===0||!r?"placeholder":""}`,children:e.jsx("div",{className:"content-wrapper",children:e.jsxs("div",{className:"home-product-tabs-select",children:[e.jsx("div",{className:"select-container",children:e.jsxs("div",{className:"select-content",children:[e.jsx("h2",{children:a==null?void 0:a.tl}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"category_select",className:"hidden-label",children:"Category Select"}),e.jsx(c.Suspense,{fallback:null,children:e.jsx(te,{id:"category_select",options:t,onChange:n,placeholder:i("productTabsSelect.select_prompt"),value:r,className:"product-tabs-select",styles:{...x,control:(o,d)=>({...x.control(o,d),borderRadius:"100px",borderColor:"#1a1818","&:hover":{borderColor:"#1a1818"},padding:" 0 10px",minHeight:"44px",fontFamily:"Source Serif Pro",fontWeight:"400"}),dropdownIndicator:(o,d)=>({...x.dropdownIndicator,...o,color:"#1a1818",transform:d.selectProps.menuIsOpen?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease"})},isSearchable:!1})})]})]})}),e.jsx("div",{className:"product-container",children:e.jsx("div",{className:"swiper-container",children:e.jsx(N,{products:r==null?void 0:r.products,pagination:!0,className:"product-card-tabs",breakpoints:oe,productCardClassName:"minimal homepage-minimal",storageKey:r!=null&&r.value?`home-product-tabs-select-slider-${r.value}`:void 0},r==null?void 0:r.value)})})]})})})},Ce=()=>e.jsxs(e.Fragment,{children:[e.jsx(j,{code:"1_HeroTabsSlider"}),e.jsx(j,{code:"2_HeroTabsSlider"}),e.jsx(j,{code:"3_HeroTabsSlider"}),e.jsx(ie,{}),e.jsx(Q,{storageKey:"home-personalized-products"}),e.jsx(ee,{}),e.jsx(q,{}),e.jsx(Z,{}),e.jsx(re,{}),e.jsx(J,{}),e.jsx(I,{})]});export{Ce 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.