PageSourceSearch

https://www.politeianet.gr/assets/BlogContent.7_Wt8Elk.js

js politeianet.gr collected 2026-09-24 09:27:29 UTC 9,741 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/react-select.esm.H5GyIIS6.js","assets/memoize-one.esm.sgM6qpEC.js","assets/index-KDcLenRU.js","assets/index.ZwqORRZd.css","assets/emotion-element-f0de968e.browser.esm.61_hlabn.js","assets/emotion-utils.browser.esm.PLmk2cuA.js","assets/setPrototypeOf.ahVgEFUp.js","assets/hoist-non-react-statics.cjs.FLDqboxU.js","assets/BlogProductsPlp.2XQMaRYm.js","assets/index.Pv8WzJc3.js","assets/useFilterState.EmzgA-Mj.js","assets/ProductCard.I7ktBC9O.js","assets/index.CSq2RyQM.js","assets/my-library.ZRI8T0vT.js","assets/FormattedPrice._VlBjyoq.js","assets/useOpenLoginModal.50Dszhx1.js","assets/GenericStore.Q48sUYLa.js","assets/awardsHelper.l2A6I6d0.js","assets/TeacherBookBadge.lXe03IJT.js","assets/warning-sign.XBdkSz9g.js","assets/toGreekCaps.1t_UCRL0.js","assets/TeacherBookBadge.zjl0V1Kh.css","assets/Default Book.mxlZrDNP.js","assets/Availability.cpukXsC_.js","assets/Availability.INSJq6KV.css","assets/chevron.FnaHNmVN.js","assets/index.APRFfR1L.css","assets/products-grid.nWsKfpKE.css","assets/BlogProductsClassic.tDxDhxkq.js","assets/utils.xHmnnrxQ.js","assets/PurchasedBadge.VYTyYo3L.js","assets/AddToCart.dFMhPKyn.js","assets/react-select-utils.fldikllN.js","assets/variables.w40geAFS.js","assets/Wishlist.ufSf1f2f.js","assets/useWishlists.D7AwfrSk.js","assets/BlogProductsClassic.xZRdEwdP.css"])))=>i.map(i=>d[i]);
2import{P as N,a4 as B,Q as T,bO as D,r as i,_,j as n,bP as F,d as L,bE as k,c as I,a3 as g,bQ as R,bR as $,F as y,T as A,aP as H,bS as U,bT as M,U as V}from"./index-KDcLenRU.js";import q from"./NotFound.ejDjZmoa.js";import{D as W}from"./DynamicContentLoaderById.q_ldLO_1.js";import{B as z}from"./BlogNewsletter.UC16JxCz.js";import{c as G}from"./react-select-utils.fldikllN.js";import{B as Q}from"./Breadcrumb.3PiuTOuz.js";import{P as Y}from"./PageHeaderMeta.DcFtZHYi.js";import{u as K}from"./useFilterState.EmzgA-Mj.js";import{j as J,a as X}from"./schema.tfYslbJb.js";import"./logo-no-bg.STYfwJc2.js";import"./ProductSuggestions.HkAAaMjB.js";import"./useProductsByIds.nFkdXrlC.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"./Default Book.mxlZrDNP.js";import"./Availability.cpukXsC_.js";import"./ProductCardsSwiper.uWj36LrL.js";import"./memoize-one.esm.sgM6qpEC.js";import"./hoist-non-react-statics.cjs.FLDqboxU.js";import"./book-dreamer.mkO2ovev.js";import"./formHelper.qwjMgsyc.js";import"./Checkbox.AQtgUeQd.js";import"./variables.w40geAFS.js";const C=e=>{const t=B();return T({queryKey:["news-entry",e,{lang:t}],queryFn:()=>D(e).then(r=>r),enabled:!!e,refetchOnWindowFocus:!1,placeholderData:r=>r??{}})};C.propTypes={categoryId:N.number};const Z=i.lazy(()=>_(()=>import("./react-select.esm.H5GyIIS6.js").then(e=>e.r),__vite__mapDeps([0,1,2,3,4,5,6,7]))),b=window.innerWidth>1024,P={menuPlacement:b?"bottom":"top",className:"select",classNamePrefix:"select",styles:G,isSearchable:!0},O=({blogPost:e,group:t,productsGridRef:r,productsItems:a=[]})=>{const[s,m]=i.useState(!1),[o,p]=i.useState(0),[j,w]=i.useState([]);i.useEffect(()=>{const c=()=>{const d=window.scrollY-300,u=document.body.scrollHeight-window.innerHeight-1e3;p(d/u*100),m(window.scrollY>200)};return window.addEventListener("scroll",c),()=>window.removeEventListener("scroll",c)},[]),i.useEffect(()=>{if(!(e!=null&&e.bd))return;const d=new DOMParser().parseFromString(e.bd,"text/html").querySelectorAll("h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]");w([...d].map(u=>({label:u.textContent,value:u.id})))},[e==null?void 0:e.bd]);const f=i.useMemo(()=>a.map(c=>({label:c.nm,value:c.id})),[a]),l=()=>{var c;return(c=r.current)==null?void 0:c.scrollIntoView({behavior:"smooth",block:"start"})},v=({value:c}={})=>{var d;c&&((d=document.getElementById(c))==null||d.scrollIntoView({behavior:"smooth",block:"nearest"}))};if(t==="bookclub"&&a.length===0||t==="politeiablog"&&j.length===0)return null;const x=t==="bookclub";return n.jsxs("div",{className:`blogpost-sticky-header ${s?"visible no-sticky-header-desktop":""}`,children:[n.jsx("strong",{children:e.tl}),n.jsx("div",{className:"select-container",children:n.jsx(i.Suspense,{fallback:null,children:n.jsx(Z,{...P,placeholder:x?"Δείτε τα προϊόντα":"ΠεριεÏ
2‡ÏŒÎ¼ÎµÎ½Î±",options:x?f:j,onChange:x?l:v})})}),n.jsx("div",{className:"progress-bar",style:{width:`${o}%`}})]})};O.propTypes={blogPost:N.object,group:N.string};const ee=(e,t,r,a,s,m=!0)=>{const o=B();return T({queryKey:["news-entry-products",{newsEntryId:e,filter:t,sort:r,page:a,psize:s,lang:o}],queryFn:()=>F(e,t,r,a,s),enabled:m&&!!e,placeholderData:p=>p,refetchOnWindowFocus:!1})},ne=e=>{if(!e||typeof document>"u")return 0;const t=document.createElement("template");return t.innerHTML=e,t.content.children.length},re=({html:e,collapsible:t=!1})=>{const{t:r}=L(),a=i.useId(),[s,m]=i.useState(!1),o=i.useMemo(()=>t&&ne(e)>1,[t,e]);return t?n.jsxs("div",{className:I("html-container blog-body",{"is-collapsed":!s}),children:[n.jsx(k,{id:a,className:"html-container",html:e}),o&&n.jsx("button",{type:"button",className:"blog-body__toggle","aria-expanded":s,"aria-controls":a,onClick:()=>m(p=>!p),children:r(s?"blog.readLess":"blog.readMore")})]}):n.jsx("div",{className:"html-container",children:n.jsx(k,{className:"html-container",html:e})})},te={CLASSIC:0,PRODUCT_PLP:1},ie=i.lazy(()=>_(()=>import("./BlogProductsPlp.2XQMaRYm.js"),__vite__mapDeps([8,2,3,9,10,11,4,5,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]))),ae=i.lazy(()=>_(()=>import("./BlogProductsClassic.tDxDhxkq.js"),__vite__mapDeps([28,2,3,12,29,14,17,18,19,20,21,30,13,31,32,33,34,35,15,16,36]))),se=({blogPost:e})=>{var E,S;const{t}=L(),r=e.ngroupid===1?"bookclub":"politeiablog",a=i.useRef(null),s=e.pdm===te.PRODUCT_PLP,{filtersUrl:m,sortingOption:o,page:p,viewPerPageOption:j}=K(),{isPending:w,isFetching:f,data:l}=ee(e.id,m,o,p,j,s),v=(l==null?void 0:l.items)??[],x=(l==null?void 0:l.flst)??[],c=e.prds??[],d=[{nm:t(`blog.${r}`),url:`/blog?group=${r}`},{nm:e.tl,url:e.eurl}],u=[J(e),X(d)].join(`
3`);return n.jsxs(n.Fragment,{children:[(e==null?void 0:e.id)&&n.jsx(Y,{page_title:e!=null&&e.tl?`${e.tl} | ${t(r==="politeiablog"?"blog.politeiaBlog":"blog.bookClub")}`:t(r==="politeiablog"?"blog.metaTitlePoliteia":"blog.metaTitleBookClub"),meta_description:e!=null&&e.tl?t("blog.metaDescriptionArticle",{title:e.tl,group:t(`blog.${r}`)}):t(r==="politeiablog"?"blog.metaDescriptionPoliteia":"blog.metaDescriptionBookClub"),meta_keywords:e.mk,disable_indexation:e.disable_indexation,disable_follow:e.disable_follow,canonical_url:e.canonical_url,image:g(e.img1),schema:u}),n.jsxs("div",{id:"blogpost",children:[n.jsx(Q,{breadcrumbItems:[{nm:t(`blog.${r}`),eurl:`/blog?group=${r}`}],currentName:e==null?void 0:e.tl}),!s&&n.jsx(O,{blogPost:e,group:r,productsGridRef:a,productsItems:c}),n.jsx("div",{className:"blog-header",children:n.jsx("div",{className:"content-wrapper",children:n.jsxs("div",{className:"image",children:[!s&&(e==null?void 0:e.ctl)&&n.jsx("div",{className:"image-tag",children:n.jsx("p",{className:"image-tag-title",children:e.ctl.split(",").join(", ")})}),n.jsx("img",{src:R(e.img1),alt:e.tl})]})})}),n.jsxs("div",{className:"blog-content content-wrapper",children:[n.jsxs("div",{className:"date-author",children:[e.publishDate&&n.jsx("span",{children:$(e.publishDate)}),e.ed&&e.publishDate&&n.jsx("span",{children:" / "}),e.ed&&n.jsx("span",{children:e.ed})]}),n.jsx("h1",{className:"title",children:e.tl}),n.jsx(re,{html:e.bd,collapsible:r==="bookclub"},e.id),e.bnu&&n.jsx("div",{className:"button-container",children:n.jsx(y,{to:e.bnu,className:"redirect-button",children:e==null?void 0:e.brct})}),!s&&n.jsxs(n.Fragment,{children:[n.jsx("div",{ref:a,children:n.jsx(i.Suspense,{fallback:null,children:n.jsx(ae,{products:c})})}),((E=e==null?void 0:e.newsEntry_tags)==null?void 0:E.length)>0&&n.jsx("div",{className:"tags",children:e.newsEntry_tags.map(h=>n.jsx("span",{children:h.nm},h.id))})]})]}),!s&&((S=e==null?void 0:e.categories)==null?void 0:S.length)>0&&n.jsx("div",{className:"blog-related-categories content-wrapper",children:n.jsx("div",{className:"categories",children:e.categories.map(h=>n.jsx(y,{to:`${h.eurl}?group=${r}`,children:h.tl},h.id))})}),s&&n.jsx("div",{ref:a,children:n.jsx(i.Suspense,{fallback:null,children:n.jsx(ie,{isLoading:w,isFetching:f,filters:x,products:v,totalCount:l==null?void 0:l.total_count,defaultSorting:l==null?void 0:l.sort})})}),n.jsxs("div",{className:"prev-next",children:[(e==null?void 0:e.prevNewsEntry)&&n.jsxs(y,{to:e.prevNewsEntry.eurl,className:"option",children:[n.jsx("img",{src:e.prevNewsEntry.img1,alt:e.prevNewsEntry.title}),n.jsx("small",{children:t("blog.previousArticle")}),n.jsx("h5",{children:e.prevNewsEntry.tl})]}),n.jsx("div",{className:"divider"}),(e==null?void 0:e.nextNewsEntry)&&n.jsxs(y,{to:e.nextNewsEntry.eurl,className:"option",children:[n.jsx("img",{src:e.nextNewsEntry.img1,alt:e.nextNewsEntry.title}),n.jsx("small",{children:t("blog.nextArticle")}),n.jsx("h5",{children:e.nextNewsEntry.tl})]})]}),r==="bookclub"&&n.jsx(z,{})]})]})},Me=()=>{const{eurl:e}=A(),{isFetching:t,data:r}=C(e),a=()=>n.jsx(se,{blogPost:r});return t?n.jsx(H,{withSpace:!0}):(r==null?void 0:r.id)===void 0?n.jsx(q,{}
3):n.jsx(U,{entityId:r==null?void 0:r.id,entityType:M.NewEntry,fallbackToDefaultLanguage:!0,language:V.getActiveLanguage()||void 0,fallback:a,children:n.jsx(W,{})})};export{Me 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.