1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[93],{9093:function(e,t,r){r.d(t,{Z:function(){return es}});var l=r(5893),s=r(1163),a=r(5675),n=r.n(a),i=e=>{let{logo:t}=e;return(0,l.jsxs)("div",{className:"flex flex-col items-center font-[Nilland] text-center mt-2 gap-2 row-start-1 col-span-4",children:[(0,l.jsx)(n(),{width:75,height:75,alt:"logo",src:null==t?void 0:t.sourceUrl,className:"p-1"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:"text-2xl md:text-4xl",children:"l'Avant Garde"}),(0,l.jsx)("p",{children:"journal des jeunes communistes"})]})]})};let o=[{path:"/edition/",label:"Retour"}];var c=()=>{let e=(0,s.useRouter)().asPath;return{goBackMenu:o.find(t=>e.includes(t.path))}},d=r(7634),x=r(4184),h=r.n(x),u=r(8318),m=e=>{let{style:t,label:r}=e,a=(0,s.useRouter)(),n=()=>{window.history.length>2?a.back():a.push("/")},i=t||"light";return(0,l.jsxs)("button",{type:"button",className:h()("flex","align-items","leading-[40px]","pl-2","pr-4","rounded-full","cursor-pointer","text-grey-2","cursor-pointer",{"bg-red":"red"===i},{"hover:text-white":"red"===i},{"hover:text-red":"light"===i},{"hover:bg-grey-1":"light"===i}),onClick:()=>n(),children:[(0,l.jsx)(u.O8Q,{className:h()("pr-2","text-5xl","leading-none")}),r&&r]})},p=r(1664),j=r.n(p),g=e=>{let{path:t,label:r}=e;return(0,l.jsxs)("div",{className:"flex justify-between items-center text-grey-2 p-4 bg-white",children:[(0,l.jsx)(m,{label:r}),(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[(0,l.jsx)(d.Z,{path:t}),(0,l.jsx)(j(),{href:"/newsletter",title:"newsletter",className:"bg-red text-white rounded-full py-2 px-4",children:"abonne toi"})]})]})},f=e=>{let{logo:t}=e;return(0,l.jsx)(j(),{href:"/",passHref:!0,legacyBehavior:!0,children:(0,l.jsx)("a",{href:"/",className:"h-[35px]",children:(0,l.jsx)(n(),{width:35,height:35,alt:"logo",src:null==t?void 0:t.sourceUrl,className:"cursor-pointer pointer-events-auto"})})})},b=e=>{let{item:t}=e;return(0,l.jsxs)("div",{className:"flex item-center gap-2 text-grey-2 text-xl leading-none py-3 pl-2 pr-4 rounded-full hover:bg-grey-1 hover:text-black cursor-pointer pointer-events-auto",children:[t.icon?(0,l.jsx)(t.icon,{}):(0,l.jsx)("span",{children:"#"}),(0,l.jsx)(j(),{href:t.path,legacyBehavior:!0,children:t.label})]})},v=r(309);let N=[{label:"Accueil",icon:u.KkC,uri:"/",path:"/"},{label:"\xc9dition hebdo",icon:u.r7G,uri:"/editions-hebdomadaires/"+v.GR,path:"/editions-hebdomadaires/"+v.GR},{label:"\xc9dition trimestrielle",icon:u.WTk,uri:"/editions-trimestrielles/"+v.ZG,path:"/editions-trimestrielles/"+v.ZG},{label:"\xc0 propos",icon:u.q4Y,uri:"/qui-sommes-nous",path:"/qui-sommes-nous"},{label:"Abonne-toi",icon:u.yZW,uri:"/newsletter",path:"/newsletter"}];var y=e=>{let{logo:t}=e;return(0,l.jsx)("nav",{className:"hidden md:block col-start-1 row-start-2 justify-self-end",children:(0,l.jsxs)("div",{className:"sticky top-0 flex flex-col w-fit px-4 py-12 text-sm gap-4 md:p3 ",children:[(0,l.jsx)("div",{className:"pb-4",children:(0,l.jsx)(f,{logo:t})}),N.map(e=>(0,l.jsx)(b,{item:e},e.label))]})})},w=r(7390);let k=e=>"/"==e,C=e=>e.startsWith("/recherche"),R=e=>e.startsWith("/categorie");var F=e=>{let{lastNewspaper:t}=e;return(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,l.jsx)(j(),{href:"/edition/".concat(t.slug),legacyBehavior:!0,passHref:!0,children:(0,l.jsx)("a",{href:t.slug,children:(0,l.jsx)(n(),{src:t.imageUrl,alt:t.name,height:"250",width:"188"})})}),(0,l.jsxs)("div",{className:"flex flex-col justify-center gap-4 items-center pe-2",children:[(0,l.jsx)("h2",{className:"text-sm font-bold text-center",children:t.name}),(0,l.jsx)(j(),{href:"/edition/".concat(t.slug),legacyBehavior:!0,passHref:!0,children:(0,l.jsx)("a",{href:t.slug,className:" block p-2 bg-red text-white font-bold text-center rounded-full",children:"D\xe9couvrir"})})]})]})},I=e=>{let{topCatMenu:t,subCatMenu:r,lastNewspaper:a}=e,n=(null==r?void 0:r.length)>0?r:t,i=(0,s.useRouter)().asPath,o=!C(i),c=k(i);return(0,l.jsx)("nav",{className:"hidden md:block col-start-4 row-start-2",children:(0,l.jsxs)("div",{className:"sticky top-0 py-12 md:p3 md:flex flex-col items-start max-w-xs text-sm",children:[o&&(0,l.jsx)(w.Z,{}
1),c&&(0,l.jsx)(F,{lastNewspaper:a}),(0,l.jsx)("div",{className:"flex flex-col px-4",children:n.map(e=>(0,l.jsx)(b,{item:e},e.id))})]})})},P=e=>{let{topCatMenu:t,subCatMenu:r,logo:a,lastQuarterlyEdition:n}=e,i=(0,s.useRouter)().asPath,{goBackMenu:o}=c(),d=n[0].node;return(0,l.jsxs)(l.Fragment,{children:[!o&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(y,{logo:a}),(0,l.jsx)(I,{topCatMenu:t,subCatMenu:r,lastNewspaper:d})]}),o&&(0,l.jsx)(g,{path:i,label:o.label})]})},T=()=>{let e=(0,s.useRouter)().asPath;return(0,l.jsx)("button",{onClick:()=>{navigator.share&&navigator.share({url:"https://lavantgarde.fr/".concat(e)})},children:(0,l.jsx)(u.B0q,{className:"px-2 text-grey-2 text-5xl hover:text-red leading-none cursor-pointer hover:bg-grey-1 rounded-full"})})},_=r(7294),E=r(3703),Z=()=>{let[e,t]=(0,_.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsxs)("div",{className:"z-10 bg-red fixed top-0 right-0 bottom-0 left-0 px-4 flex justify-center items-center",children:[(0,l.jsx)("button",{onClick:()=>t(!1),children:(0,l.jsx)(u.bjh,{className:"px-2 text-white text-5xl hover:text-grey-1 leading-none cursor-pointer fixed top-2 right-4"})}),(0,l.jsx)(E.Z,{})]}),(0,l.jsx)("button",{type:"button",onClick:()=>t(!0),className:" bg-red text-white rounded-full py-2 px-4 ",children:"abonne-toi"})]})},A=e=>{let{categories:t}=e;return(0,l.jsx)("ul",{className:"flex flex-col gap-4 text-lg text-center",children:t.map(e=>(0,l.jsx)("li",{children:(0,l.jsx)("a",{className:"text-white hover:underline",href:e.path,children:e.label})},e.id))})},G=e=>{let{menu:t}=e,[r,s]=(0,_.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[r&&(0,l.jsxs)("div",{className:"flex flex-col md:hidden justify-between fixed top-0 right-0 bottom-0 left-0 bg-red px-8 py-24 leading-loose",children:[(0,l.jsx)(A,{categories:t}),(0,l.jsx)(E.Z,{})]}),(0,l.jsx)("button",{className:"md:hidden z-100",onClick:()=>{s(!r)},children:r?(0,l.jsx)(u.bjh,{className:"px-2 ml-2 text-white text-5xl hover:text-grey-1 leading-none cursor-pointer fixed top-2 right-4"}):(0,l.jsx)(u.Kth,{className:"px-2 ml-2 text-grey-2 text-5xl hover:text-red leading-none cursor-pointer hover:bg-grey-1 rounded-full"})})]})};let q=(0,_.forwardRef)((e,t)=>{let{item:r}=e;return(0,l.jsx)("a",{href:r.path,ref:t,children:(0,l.jsx)(r.icon,{className:"px-2 text-grey-2 text-5xl hover:text-red leading-none cursor-pointer hover:bg-grey-1 rounded-full"})})});var O=e=>{let{item:t}=e;return(0,l.jsx)(j(),{href:t.path,passHref:!0,legacyBehavior:!0,children:(0,l.jsx)(q,{item:t})})},L=e=>{let{menu:t}=e;return(0,l.jsx)("div",{className:"md:hidden z-50",children:(0,l.jsx)("nav",{className:"whitespace-nowrap overflow-y-clip overflow-x-auto flex flex-wrap items-center justify-between p-3 bg-white text-sm font-size-sm shadow-sm mb-2",children:(0,l.jsx)("ul",{className:"flex items-center justify-center flex-grow",children:t.map(e=>(0,l.jsx)("li",{children:(0,l.jsx)("a",{className:"p-4 ml-2 text-grey-2 hover:underline",href:e.path,children:e.label})},e.id))})})})};let S={weekly:{label:"\xc9dition hebdo",icon:u.r7G,path:"/editions-hebdomadaires/"+v.GR},quarterly:{label:"\xc9dition trimestrielle",icon:u.WTk,path:"/editions-trimestrielles/"+v.ZG},search:{label:"Recherche",icon:u.uFR,path:"/recherche"}};var M=e=>{let{topCatMenu:t,subCatMenu:r,logo:a,isPost:n}=e,i=(0,s.useRouter)().asPath,{goBackMenu:o}=c();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("nav",{className:"md:hidden z-50 border-t-2 border-grey-1 bg-white py-2 px-2 fixed bottom-0 left-0 right-0",children:n||o?(0,l.jsxs)("div",{className:"grid grid-cols-3 place-items-center",children:[(0,l.jsx)(m,{}),(0,l.jsx)(Z,{}),(0,l.jsx)(T,{})]}):(0,l.jsxs)("div",{className:"grid grid-cols-5 place-items-center",children:[(0,l.jsx)(O,{item:S.weekly}),(0,l.jsx)(O,{item:S.quarterly}),(0,l.jsx)(f,{logo:a}),(0,l.jsx)(G,{menu:t}),(0,l.jsx)(O,{item:S.search})]})}),R(i)&&(null==r?void 0:r.length)>0&&(0,l.jsx)(L,{menu:r})]})};let U=["A LA UNE","EDITO","DEFINITIONS","HORS CATEGORIE"],J={CULTURE:3,FRANCE:1,INTERNATIONAL:2,SPORT:4},B=(e,t)=>{let r=e.node.uri,l=t.node.uri;return r<l?-1:r>l?1:0},z=(e,t)=>t.find(t=>e.includes(t.node.slug)),W=(e,t)=>J[e.label]-J[t.label],D=e=>e.filter(e=>
1null===e.node.parentId),H=(e,t)=>e.sort(B).filter(e=>e.node.parentId===t),Q=e=>{let t=[];return null==e||e.map(e=>{let r={id:e.node.id,label:e.node.name,path:"/categorie/"+e.node.slug,uri:e.node.uri,children:[]};U.includes(e.node.name)||t.push(r)}),t},Y=(e,t)=>{if(!e||!t)return null;let r=z(t,e);return r?Q(H(e,r.node.id)):null},K=e=>e?Q(D(e)).sort(W):[];var X=e=>{let{lastQuarterlyEdition:t,categories:r,logo:a,isPost:n}=e,i=(0,s.useRouter)().asPath,o=Y(null==r?void 0:r.edges,i),c=K(null==r?void 0:r.edges);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(M,{topCatMenu:c,subCatMenu:o,logo:a,isPost:n}),(0,l.jsx)(P,{topCatMenu:c,subCatMenu:o,logo:a,lastQuarterlyEdition:t})]})},V=r(352);let $=[{name:"Facebook",url:"https://www.facebook.com/lavantgarde.fr/",icon:u.egd},{name:"Twitter",url:"https://twitter.com/Journal_AG",icon:u.JUd},{name:"Instagram",url:"https://www.instagram.com/avantgarde_journal/",icon:u.oVe},{name:"YouTube",url:"https://www.youtube.com/channel/UCm2VeIXfFa2QF1anihh6xag",icon:u.tPx}];var ee=()=>(0,l.jsx)("div",{className:"text-3xl text-grey-2 flex gap-4 mx-auto max-w-lg items-center justify-center mb-6",children:$.map(e=>(0,l.jsx)("a",{className:"hover:text-red",href:e.url,target:"_blank",title:e.name,children:(0,l.jsx)(e.icon,{})},e.name))}),et=r(80),er=()=>(0,l.jsx)("div",{className:"relative h-16 w-16",children:(0,l.jsx)("div",{className:"absolute bottom-0 right-0 h-16 w-16",children:(0,l.jsx)("a",{href:"/rss.xml",rel:"noreferrer",target:"_blank",children:(0,l.jsx)(et.PLL,{color:"#ee802f",size:"30px"})})})});function el(e){let{logo:t,menuLegal:r,menuPartners:a,menuPartnersPress:i,menuPartnersPressLocal:o}=e,c="/newsletter"!=(0,s.useRouter)().asPath;return(0,l.jsxs)("footer",{children:[(0,l.jsx)("div",{className:"bg-white",children:(0,l.jsxs)(V.Z,{children:[c&&(0,l.jsx)("div",{className:"bg-red mx-auto max-w-2xl px-12 flex justify-center rounded-xl",children:(0,l.jsx)(E.Z,{})}),(0,l.jsxs)("div",{className:"pt-12 pb-6",children:[(0,l.jsx)("div",{className:"flex justify-center mb-6",children:(0,l.jsx)(j(),{href:"/",children:(0,l.jsx)(n(),{width:100,height:100,alt:"logo",src:null==t?void 0:t.sourceUrl,objectFit:"cover"})})}),(0,l.jsx)(ee,{})]})]})}),(0,l.jsxs)("div",{className:"bg-grey-1",children:[(0,l.jsx)(V.Z,{children:(0,l.jsxs)("div",{className:"max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-4 my-16",children:[(0,l.jsx)("div",{className:"mb-4 md:mb-0",children:r.menuItems.edges.map(e=>{let{node:t}=e;return(0,l.jsx)("div",{children:(0,l.jsx)("a",{href:t.path,className:"hover:text-red",children:t.label})},t.path)})}),(0,l.jsx)("div",{className:"mb-4 md:mb-0",children:a.menuItems.edges.map(e=>{let{node:t}=e;return(0,l.jsx)("div",{children:(0,l.jsx)("a",{href:t.path,className:"hover:text-red",target:"_blank",children:t.label})},t.path)})}),(0,l.jsx)("div",{className:"mb-4 md:mb-0",children:i.menuItems.edges.map(e=>{let{node:t}=e;return(0,l.jsx)("div",{children:(0,l.jsx)("a",{href:t.path,className:"hover:text-red",target:"_blank",children:t.label})},t.path)})}),(0,l.jsx)("div",{className:"mb-4 md:mb-0",children:o.menuItems.edges.map(e=>{let{node:t}=e;return(0,l.jsx)("div",{children:(0,l.jsx)("a",{href:t.path,className:"hover:text-red",target:"_blank",children:t.label})},t.path)})})]})}),(0,l.jsx)(er,{})]})]})}var es=e=>{let{lastQuarterlyEdition:t,categories:r,menuLegal:a,menuPartners:n,menuPartnersPress:o,menuPartnersPressLocal:d,logo:x,children:u,isPost:m}=e,p="/"===(0,s.useRouter)().asPath,{goBackMenu:j}=c();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"min-h-screen md:mt-0 md:grid md:grid-cols-4",children:[p&&(0,l.jsx)(i,{logo:x}),(0,l.jsx)(X,{lastQuarterlyEdition:t,categories:r,logo:x,isPost:m}),(0,l.jsx)("main",{className:h()("md:row-start-2",{"md:col-start-2 col-span-2":!j,"md:col-start-1 col-span-4":j}),children:u})]}),(0,l.jsx)(el,{logo:x,menuLegal:a,menuPartners:n,menuPartnersPress:o,menuPartnersPressLocal:d})]})}},352:function(e,t,r){r.d(t,{Z:function(){return s}});var l=r(5893);function s(e){let{children:t}=e;return(0,l.jsx)("div",{className:"container overflow-hidden md:overflow mx-auto px-2 md:px-5 mb-2 text-black",children:t})}},3703:function(e,t,r){var l=r(5893),s=r(1664),a=r.n(s),n=r(7536);t.Z=()=>{let{register:e,handleSubmit:t,reset:r,formState:{isSubmitSuccessful:s}}=(0,n.cI)(),i=async e=>{await fetch("/api/subscribe",{body:JSON.stringify({email:e.email}),headers:{"Content-Type":"application/json"},method:"POST"})};return s?(0,l.jsxs)("div",{className:"flex flex-col gap-4 py-6 text-grey-1",children:[(0,l.jsx)("p",{className:"text-2xl text-center",children:"Merci pour ton abonnement !"}),(0,l.jsx)("p",{className:"text-xs pt-1 m-0",children:"Penses \xe0 ajouter [email protected] \xe0 tes contacts et v\xe9rifier ton dossier spam."}),(0,l.jsx)("button",{onClick:()=>r(),type:"button",className:"bg-red border border-black text-white rounded-full px-4 py-2 hover:bg-black",children:"Inscrire un autre email"})]}):(0,l.jsxs)("form",{className:"flex flex-col gap-4 w-full py-6 text-grey-1",onSubmit:t(i),children:[(0,l.jsx)("p",{className:"text-2xl text-center",children:"Je m'abonne \xe0 la newsletter"}),(0,l.jsxs)("div",{className:"flex flex-col p-0 ",children:[(0,l.jsx)("p",{className:"text-sm text-center py-2 m-0",children:"Je re\xe7ois un email pour chaque nouvelle \xe9dition hebdomadaire et trimestrielle."}),(0,l.jsx)("label",{htmlFor:"email",className:"text-sm pl-4 pb-1",children:"Email"}),(0,l.jsx)("input",{...e("email"),id:"email",type:"email",autoComplete:"email",spellCheck:"false",autoCapitalize:"none",enterKeyHint:"send",required:!0,className:" bg-white rounded-full text-grey-2 px-4 py-2 "}),(0,l.jsxs)("p",{className:"text-xs pt-1 m-0",children:["Le traitement informatique de vos donn\xe9es est r\xe9alis\xe9 par le MJCF pour le seul objectif de promouvoir son journal Avant-Garde."," ",(0,l.jsx)(a(),{href:"/mentions-legales",children:"En savoir plus"}),"."]})]}),(0,l.jsx)("button",{type:"submit",className:"bg-red border border-black text-white rounded-full px-4 py-2 hover:bg-black",children:"Je m'abonne"})]})}},7390:function(e,t,r){var l=r(5893),s=r(1163),a=r(7294);t.Z=()=>{let[e,t]=(0,a.useState)(""),r=(0,s.useRouter)();return(0,l.jsx)("form",{onSubmit:t=>{t.preventDefault(),r.push({pathname:"/recherche",query:{search:e,page:"1"}})},role:"search",className:"flex w-full max-w-2xl pointer-events-auto",children:(0,l.jsx)("input",{className:"bg-grey-1 w-full rounded-full text-grey-2 py-2 px-4 mb-4",onCh
1ange:e=>{t(e.target.value)},placeholder:"Rechercher sur le site","aria-label":"Rechercher sur le site",type:"search",minLength:3,required:!0})})}},7634:function(e,t,r){var l=r(5893),s=r(7294),a=r(8318);t.Z=e=>{let{path:t}=e,[r,n]=(0,s.useState)(!1),i="https://lavantgarde.fr".concat(t),o=[{label:"envoyer par email",url:"mailto:?body=".concat(i),icon:a.WNJ},{label:"tweeter l'article",url:"https://twitter.com/share?url=".concat(i),target:"_blank",icon:a.JUd},{label:"partager sur Facebook",url:"https://www.facebook.com/sharer/sharer.php?u=".concat(i),target:"_blank",icon:a.egd}];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"hidden md:flex justify-center gap-2 mt-2",children:[o.map(e=>(0,l.jsx)("a",{href:e.url,target:"_blank",title:e.label,className:"hover:text-red",children:(0,l.jsx)(e.icon,{})},e.label)),(0,l.jsx)("button",{title:"Copier le lien",type:"button",onClick:()=>{navigator.clipboard.writeText(i),n(!0),setTimeout(()=>n(!1),1e3)},children:r?(0,l.jsx)(a.GcF,{className:"stroke-[#090]"}):(0,l.jsx)(a.mcF,{})})]}),(0,l.jsx)("div",{className:"md:hidden flex justify-end text-2xl mt-4 mr-4",children:(0,l.jsx)("button",{onClick:()=>{navigator.share&&navigator.share({url:i})},children:(0,l.jsx)(a.B0q,{})})})]})}},309:function(e,t,r){r.d(t,{A:function(){return a},FT:function(){return s},GR:function(){return o},Ql:function(){return n},TL:function(){return i},ZG:function(){return c}});var l=r(3454);let s="l'Avant-Garde, journal des jeunes communistes",a="Nouvelle \xe9dition num\xe9rique toutes les semaines, nouvelle \xe9dition papier tous les trimestres.",n="https://lavantgarde.fr/",i="https://wp.lavantgarde.fr/wp-content/uploads/2022/09/logo-large.png";parseInt(l.env.WEEKLY_TAXONOMY_ID),parseInt(l.env.QUARTERLY_TAXONOMY_ID);let o="2026",c="2026"}}]);
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.