PageSourceSearch

https://freshpatisserie.gr/component---src-pages-fresh-paper-tsx-da8bdcb247267e8e4d4d.js

js freshpatisserie.gr collected 2026-10-07 01:40:30 UTC 8,452 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkgatsby_redux_toolkit_typescript_starter=self.webpackChunkgatsby_redux_toolkit_typescript_starter||[]).push([[812],{30881:function(e,l,a){a.r(l);var t=a(45458),n=a(96540),i=a(50973),r=a(32862),s=a(78342),o=a(84362),c=a(37973),m=a(89503),d=a(68482);l.default=e=>{var l,a,u,v,g,p,E,h,f,N,w,k,b,x,I,S,A,y;let{data:F}=e;const{t:T}=(0,o.useTranslation)(),{language:_,changeLanguage:C}=(0,o.useI18next)();let P,z=null===(l=F.allWpPost)||void 0===l?void 0:l.nodes;if("en"!==_){var L,D;P=null===(L=F.allWpPage)||void 0===L||null===(D=L.nodes[0])||void 0===D?void 0:D.pageDetails}else{var W,V,H,B;P=null===(W=F.allWpPage)||void 0===W||null===(V=W.nodes[0])||void 0===V||null===(H=V.translations[0])||void 0===H?void 0:H.pageDetails;let e=[];null===(B=F.allWpPost)||void 0===B||B.nodes.map((l,a)=>{l.translations.featuredImage=l.featuredImage,l.translations.length>0&&e.push(l.translations),z=e})}z.sort(function(e,l){return l.reading.paperVolume-e.reading.paperVolume});const{0:M,1:R}=(0,n.useState)((0,t.A)(z.slice(0,6))),{0:Y,1:j}=(0,n.useState)(!1),{0:q,1:G}=(0,n.useState)(z.length>3);return(0,n.useEffect)(()=>{if(Y&&q){const e=M.length,l=e<z.length?z.slice(e,e+3):[];R([].concat((0,t.A)(M),(0,t.A)(l))),j(!1)}},[Y,q]),(0,n.useEffect)(()=>{const e=M.length<z.length;G(e)},[M]),console.log("featured",F),n.createElement(i.A,null,n.createElement(r.A,{title:"Fresh Paper"}),n.createElement("div",{className:"body-wrap"},n.createElement("section",{className:"content"},n.createElement("div",{className:"container mainHeaderPaper"},m.xl||m.v1?n.createElement("div",{className:"row"},n.createElement("div",{className:"col-9"},n.createElement("h1",{style:{paddingLeft:"35%"}},P&&(null===(a=P)||void 0===a?void 0:a.title))),n.createElement("div",{className:"col-3"},n.createElement(d.A,{styling:"mobileVersion"}))):n.createElement("div",{className:"row"},n.createElement("div",{className:"row"},n.createElement("h1",null,null===(u=P)||void 0===u?void 0:u.title))),n.createElement("div",{className:"row"},n.createElement("div",{className:"col"},n.createElement(s.A,{fluid:null===(v=F.allWpPage)||void 0===v||null===(g=v.nodes[0])||void 0===g||null===(p=g.featuredImage)||void 0===p||null===(E=p.node)||void 0===E||null===(h=E.localFile)||void 0===h||null===(f=h.childImageSharp)||void 0===f?void 0:f.fluid,alt:null===(N=F.allWpPage)||void 0===N||null===(w=N.nodes[0])||void 0===w||null===(k=w.featuredImage)||void 0===k||null===(b=k.node)||void 0===b||null===(x=b.localFile)||void 0===x?void 0:x.altText,className:"img-fluid full"}))),n.createElement("div",{className:"row justify-content-center titleDescription titleDescriptionEVT"},n.createElement("div",{className:"col-lg-8 col-sm-12 text-center"},n.createElement("h2",null,P&&(null===(I=P)||void 0===I?void 0:I.titleH3)),n.createElement("p",null,P&&(null===(S=P)||void 0===S?void 0:S.titleH3Description)))))),n.createElement("section",{className:"explore freshp"},n.createElement("div",{className:"container"},n.createElement("div",{className:"row"},n.createElement("div",{className:"col section-title"},n.createElement("h2",null,P&&(null===(A=P)||void 0===A?void 0:A.titleSection)))),n.createElement("div",{className:"article-rows"},n.createElement("div",{className:"row"},M.map((e,l)=>{var a,t,i,r,d,u,v,g,p,E,h,f,N,w,k,b,x,I,S,A,y,F,T,C,P,z,L,D,W,V,H,B,M,R,Y,j,q;return"en"!==_?n.createElement(n.Fragment,null,(l+1)%3==1&&(l+1)%2==1||(l+1)%3==0&&(l+1)%2==0?n.createElement("div",{className:"col-lg-6 col-sm-12 "+(l+1>3?"spacing-article":"")},n.createElement(o.Link,{to:e.link,className:"block-link"},n.createElement(s.A,{fluid:null===(a=e.newspaperImages)||void 0===a||null===(t=a.largeSize)||void 0===t||null===(i=t.localFile)||void 0===i||null===(r=i.childImageSharp)||void 0===r?void 0:r.fluid,alt:null===(d=e.newspaperImages)||void 0===d||null===(u=d.largeSize)||void 0===u||null===(v=u.localFile)||void 0===v?void 0:v.altText,className:"img-fluid full"}),n.createElement("div",{className:"title-block large-block"},n.createElement("h2",null,e.title),n.createElement("h3",null,e.reading.secondtitle)),n.createElement("span",{className:"more"},e.viewingCards.buttonText))):n.createElement("div",{className:"col-lg-3 col-sm-12 "+(l+1>3?"spacing-article":"")},n.createElement(o.Link,{to:e.link,className:"Yes"===(null==e||null===(g=e.viewingCards)||void 0===g?void 0:g.showBorder)||m.Fr?"hover-link fixed-link":"hover-link"},n.createElement("div",{className:"thumbwrap smallthumbwrap"},n.createElement(s.A,{fluid:null===(p=e.newspaperImages)||void 0===p||null===(E=p.largeSize)||void 0===E||null===(h=E.localFile)||void 0===h||null===(f=h.childImageSharp)||void 0===f?void 0:f.fluid,alt:null===(N=e.newspaperImages)||void 0===N||null===(w=N.largeSize)||void 0===w?void 0:w.altText,className:"img-fluid full"}),n.createElement("span",{className:"more"},null==e?void 0:e.viewingCards.buttonText)),n.createElement("h3",null,e.title),n.createElement("p",null,(0,c.Ay)((null===(k=e.reading.smallDescriptionArchiveListing)||void 0===k?void 0:k.substring(0,550))+"")),n.createElement("p",{style:{marginTop:"-15px"}},n.createElement("span",{className:"read-more"}
1,"Read more"))))):n.createElement(n.Fragment,null,(l+1)%3==1&&(l+1)%2==1||(l+1)%3==0&&(l+1)%2==0?n.createElement("div",{className:"col-lg-6 col-sm-12 "+(l+1>3?"spacing-article":"")},n.createElement(o.Link,{to:e[0].link,className:"block-link"},n.createElement(s.A,{fluid:null==e||null===(b=e.newspaperImages)||void 0===b||null===(x=b.largeSize)||void 0===x||null===(I=x.localFile)||void 0===I||null===(S=I.childImageSharp)||void 0===S?void 0:S.fluid,alt:null===(A=e.newspaperImages)||void 0===A||null===(y=A.largeSize)||void 0===y||null===(F=y.localFile)||void 0===F?void 0:F.altText,className:"img-fluid full"}),n.createElement("div",{className:"title-block large-block"},n.createElement("h2",null,null===(T=e[0])||void 0===T?void 0:T.title),n.createElement("h3",null,null===(C=e[0])||void 0===C||null===(P=C.reading)||void 0===P?void 0:P.secondtitle)),n.createElement("span",{className:"more"},null===(z=e[0].viewingCards)||void 0===z?void 0:z.buttonText))):n.createElement("div",{className:"col-lg-3 col-sm-12 "+(l+1>3?"spacing-article":"")},n.createElement(o.Link,{to:e.link,className:"Yes"===(null==e||null===(L=e.viewingCards)||void 0===L?void 0:L.showBorder)||m.Fr?"hover-link fixed-link":"hover-link"},n.createElement("div",{className:"thumbwrap smallthumbwrap"},n.createElement(s.A,{fluid:null===(D=e.newspaperImages)||void 0===D||null===(W=D.largeSize)||void 0===W||null===(V=W.localFile)||void 0===V||null===(H=V.childImageSharp)||void 0===H?void 0:H.fluid,alt:null===(B=e.newspaperImages)||void 0===B||null===(M=B.largeSize)||void 0===M?void 0:M.altText,className:"img-fluid full"}),n.createElement("span",{className:"more"},null===(R=e[0])||void 0===R||null===(Y=R.viewingCards)||void 0===Y?void 0:Y.buttonText)),n.createElement("h3",null,null===(j=e[0])||void 0===j?void 0:j.title),n.createElement("p",null,(0,c.Ay)((null===(q=e[0].reading.smallDescriptionArchiveListing)||void 0===q?void 0:q.substring(0,550))+"")),n.createElement("p",{style:{marginTop:"-15px"}},n.createElement("span",{className:"read-more"},"Read more")))))}))),n.createElement("div",{className:"row mt-5"},n.createElement("div",{id:"scrollMore",className:"col text-center"},n.createElement("button",{onClick:()=>{j(!0)},className:"load-more"},P&&(null===(y=P)||void 0===y?void 0:y.archiveShowMorePosts))))))))}},68482:function(e,l,a){a.d(l,{A:function(){return n}});var t=a(96540);(0,a(58880).A)(e=>({root:{}}));function n(e){let{styling:l}=e;return(0,t.useEffect)(()=>{},[]),t.createElement(t.Fragment,null,t.createElement("div",{className:"social-share"},t.createElement("ul",{className:"social text-right"},t.createElement("li",null,t.createElement("a",{href:"https://www.instagram.com/freshpatisserie/?hl=el",target:"_blank"},t.createElement("span",{className:"instagramIcon"}))),t.createElement("li",null,t.createElement("a",{href:"https://www.facebook.com/freshpatisserie.gr/",target:"_blank"},t.createElement("span",{border:"0",className:"facebookIcon"}))),t.createElement("li",null,t.createElement("a",{href:"https://www.linkedin.com/company/freshpatisserie/?originalSubdomain=gr",target:"_blank"},t.createElement("span",{border:"0",className:"linkedinIcon"})))),t.createElement("p",{className:"text-end"},"follow us on social media")))}}}]);
2//# sourceMappingURL=component---src-pages-fresh-paper-tsx-da8bdcb247267e8e4d4d.js.map

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.