PageSourceSearch

https://freshpatisserie.gr/component---src-pages-veganchallenge-tsx-9b92bfef5f94be34d72c.js

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

1"use strict";(self.webpackChunkgatsby_redux_toolkit_typescript_starter=self.webpackChunkgatsby_redux_toolkit_typescript_starter||[]).push([[405],{25568:function(e,l,a){a.r(l),a.d(l,{default:function(){return g}});var t=a(45458),n=a(96540),i=a(50973),s=a(32862),r=a.p+"static/veganlogo-bd657e406620b9658bc60a146bbc602b.png",o=a.p+"static/health4-851c62e2bbb185185d2aacc498759351.png",c=a(78342),m=a(84362),d=a(37973),u=a(89503),v=a(68482);var g=e=>{var l,a,g,p,E,h,f,N,w,b,k,x,I,S,A,y;let{data:F}=e;const{t:T}=(0,m.useTranslation)(),{language:_,changeLanguage:L}=(0,m.useI18next)(),{0:C,1:z}=(0,n.useState)(!1);let P,W=null===(l=F.allWpPost)||void 0===l?void 0:l.nodes;if("en"!==_){var D,V;P=null===(D=F.allWpPage)||void 0===D||null===(V=D.nodes[0])||void 0===V?void 0:V.pageDetails}else{var B,R,M,Y;P=null===(B=F.allWpPage)||void 0===B||null===(R=B.nodes[0])||void 0===R||null===(M=R.translations[0])||void 0===M?void 0:M.pageDetails;let e=[];null===(Y=F.allWpPost)||void 0===Y||Y.nodes.map((l,a)=>{l.translations.featuredImage=l.featuredImage,l.translations.length>0&&e.push(l.translations),W=e})}W.sort(function(e,l){return l.reading.paperVolume-e.reading.paperVolume});const{0:H,1:j}=(0,n.useState)((0,t.A)(W.slice(0,6))),{0:q,1:G}=(0,n.useState)(!1),{0:J,1:K}=(0,n.useState)(W.length>3);return(0,n.useEffect)(()=>{if(q&&J){const e=H.length,l=e<W.length?W.slice(e,e+3):[];j([].concat((0,t.A)(H),(0,t.A)(l))),G(!1)}},[q,J]),(0,n.useEffect)(()=>{const e=H.length<W.length;K(e)},[H]),n.createElement(i.A,null,n.createElement(s.A,{title:"Vegan"}),n.createElement("div",{className:"body-wrap"},n.createElement("section",{className:"content"},n.createElement("div",{className:"container mainHeaderPaper"},u.xl||u.v1?n.createElement("div",{className:"row"},n.createElement("div",{className:"col-9"},n.createElement("img",{style:{textAlign:"center",width:200,marginLeft:"55%",marginTop:"20px"},src:r}),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(v.A,{styling:"mobileVersion"}))):n.createElement("div",{className:"row"},n.createElement("div",{className:"row"},n.createElement("h1",null,null===(g=P)||void 0===g?void 0:g.title))),n.createElement("div",{className:"row"},n.createElement("div",{className:"col"},n.createElement(c.A,{fluid:null===(p=F.allWpPage)||void 0===p||null===(E=p.nodes[0])||void 0===E||null===(h=E.featuredImage)||void 0===h||null===(f=h.node)||void 0===f||null===(N=f.localFile)||void 0===N||null===(w=N.childImageSharp)||void 0===w?void 0:w.fluid,alt:null===(b=F.allWpPage)||void 0===b||null===(k=b.nodes[0])||void 0===k||null===(x=k.featuredImage)||void 0===x||null===(I=x.node)||void 0===I||null===(S=I.localFile)||void 0===S?void 0:S.altText,className:"img-fluid full"}))))),n.createElement("section",{style:{marginBottom:"0"},className:"explore freshp"},n.createElement("div",{className:"container"},n.createElement("div",{className:"row"},n.createElement("div",{className:"col section-title"},n.createElement("h2",null,"reasons to go vegan")),n.createElement("div",{className:"article-rows"},n.createElement("div",{className:"row"},n.createElement("img",{style:{textAlign:"left",width:1e3,marginTop:"20px",marginLeft:"auto",marginRight:"auto"},src:o})))))),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"},H.map((e,l)=>{var a,t,i,s,r,o,v,g,p,E,h,f,N,w,b,k,x,I,S,A,y,F,T,L,C,z,P,W,D,V,B,R,M,Y,H,j,q,G,J;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(m.Link,{to:e.link,className:"block-link"},n.createElement(c.A,{fluid:null===(a=e.newspaperImages)||void 0===a||null===(t=a.largeSize)||void 0===t||null===(i=t.localFile)||void 0===i||null===(s=i.childImageSharp)||void 0===s?void 0:s.fluid,alt:null===(r=e.newspaperImages)||void 0===r||null===(o=r.largeSize)||void 0===o||null===(v=o.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(m.Link,{to:e.link,className:"Yes"===(null==e||null===(g=e.viewingCards)||void 0===g?void 0:g.showBorder)||u.Fr?"hover-link fixed-link":"hover-link"},n.createElement("div",{className:"thumbwrap smallthumbwrap"},n.createElement(c.A,{fluid:null===(p=e.newspaperImages)||void 0===p||null===(E=p.smallSize)||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.smallSize)||void 0===w||null===(b=w.localFile)||void 0===b?void 0:b.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,d.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(m.Link,{to:e[0].link,className:"block-link"},n.createElement(c.A,{fluid:null==e||null===(x=e.newspaperImages)||void 0===x||null===(I=x.largeSize)||void 0===I||null===(S=I.localFile)||void 0===S||null===(A=S.childImageSharp)||void 0===A?void 0:A.fluid,alt:null===(y=e.newspaperImages)||void 0===y||null===(F=y.largeSize)||void 0===F||null===(T=F.localFile)||void 0===T?void 0:T.altText,className:"img-fluid full"}),n.createElement("div",{className:"title-block large-block"},n.createElement("h2",null,null===(L=e[0])||void 0===L?void 0:L.title),n.createElement("h3",null,null===(C=e[0])||void 0===C||null===(z=C.reading)||void 0===z?void 0:z.secondtitle)),n.createElement("span",{className:"more"},null===(P=e[0].viewingCards)||void 0===P?void 0:P.buttonText))):n.createElement("div",{className:"col-lg-3 col-sm-12 "+(l+1>3?"spacing-article":"")},n.createElement(m.Link,{to:e.link,className:"Yes"===(null==e||null===(W=e.viewingCards)||void 0===W?void 0:W.showBorder)||u.Fr?"hover-link fixed-link":"hover-link"},">",n.createElement("div",{className:"thumbwrap smallthumbwrap"},n.createElement(c.A,{fluid:null===(D=e.newspaperImages)||void 0===D||null===(V=D.smallSize)||void 0===V||null===(B=V.localFile)||void 0===B||null===(R=B.childImageSharp)||void 0===R?void 0:R.fluid,alt:null===(M=e.newspaperImages)||void 0===M||null===(Y=M.smallSize)||void 0===Y||null===(H=Y.localFile)||void 0===H?void 0:H.altText,className:"img-fluid full"}),n.createElement("span",{className:"more"},null===(j=e[0])||void 0===j||null===(q=j.viewingCards)||void 0===q?void 0:q.buttonText)),n.createElement("h3",null,null===(G=e[0])||void 0===G?void 0:G.title),n.createElement("p",null,(0,d.Ay)((null===(J=e[0].reading.smallDescriptionArchiveListing)||void 0===J?void 0:J.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:()=>{G(!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-veganchallenge-tsx-9b92bfef5f94be34d72c.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.