PageSourceSearch

https://lavantgarde.fr/_next/static/chunks/pages/recherche-f898687aa9e86088.js

js lavantgarde.fr collected 2026-10-02 12:24:36 UTC 4,385 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[958],{851:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/recherche",function(){return s(681)}])},755:function(e,t,s){"use strict";var a=s(5893),n=s(1358),r=s.n(n);t.Z=e=>{let{pageNum:t,pageCount:s,paginationHandler:n,paginationLabels:i}=e;return(0,a.jsx)("div",{className:"text-center mx-auto",children:i?(0,a.jsx)(r(),{previousLabel:t>1?"Pr\xe9c\xe9dent":"",nextLabel:t<s?"Suivant":"",breakLabel:"...",breakClassName:"h-6 px-1 flex items-center justify-center",activeClassName:"!bg-red text-white",pageClassName:"h-6 px-1 flex items-center justify-center rounded-full bg-grey-1 hover:bg-red hover:text-white",containerClassName:"max-w-2xl mx-auto my-4 p-2 flex justify-between border border-grey-1 rounded-lg text-sm leading-none text-center",previousClassName:"flex items-center justify-center",nextClassName:"flex items-center justify-center",initialPage:0==t?0:t-1,pageCount:s,marginPagesDisplayed:3,pageRangeDisplayed:0,onClick:n,pageLabelBuilder:i}):(0,a.jsx)(r(),{previousLabel:t>1?"Pr\xe9c\xe9dent":"",nextLabel:t<s?"Suivant":"",breakLabel:"...",breakClassName:"hidden h-6 w-6 md:flex items-center justify-center",activeClassName:"!flex !bg-red text-white",pageClassName:"hidden h-6 w-6 md:flex items-center justify-center rounded-full bg-grey-1 hover:bg-red hover:text-white",containerClassName:"max-w-2xl mx-auto my-4 p-2 flex justify-between border border-grey-1 rounded-lg text-sm leading-none text-center",previousClassName:"flex items-center justify-center",nextClassName:"flex items-center justify-center",initialPage:0==t?0:t-1,pageCount:s,marginPagesDisplayed:2,pageRangeDisplayed:3,onClick:n})})}},681:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return p}});var a=s(5893),n=s(1163),r=s(7294),i=s(7018),l=s(9006),o=s(755),c=s(9093),u=s(352),d=s(309),x=s(7390),p=!0;t.default=e=>{let{lastQuarterlyEdition:t,logo:s,categories:p,menuLegal:g,menuPartners:m,menuPartnersPress:f,menuPartnersPressLocal:h}=e,v=(0,n.useRouter)(),y=v.query.search,j=v.query.page,[b,N]=(0,r.useState)(null),[P,C]=(0,r.useState)(!1),[w,_]=(0,r.useState)(0),[S,k]=(0,r.useState)(1);(0,r.useEffect)(()=>{C(!0),fetch("/api/search",{body:JSON.stringify({search:y,page:j}),headers:{"Content-Type":"application/json"},method:"POST"}).then(e=>e.json()).then(e=>{var t,s,a;N(e),(null===(t=e.posts.pageInfo)||void 0===t?void 0:t.offsetPagination.total)&&(null===(s=e.posts.pageInfo)||void 0===s?void 0:s.offsetPagination.total)>0&&(_(null===(a=e.posts.pageInfo)||void 0===a?void 0:a.offsetPagination.total),k(Math.ceil(w/20)))})},[y,j]),(0,r.useEffect)(()=>{var e,t,s;(null==b?void 0:null===(t=b.posts)||void 0===t?void 0:null===(e=t.pageInfo)||void 0===e?void 0:e.offsetPagination.total)&&(_(null===(s=b.posts.pageInfo)||void 0===s?void 0:s.offsetPagination.total),k(Math.ceil(w/20))),b&&C(!1)},[b]);let L=e=>{let t=isNaN(e.nextSelectedPage)?1:e.nextSelectedPage+1;v.push({pathname:"recherche",query:{search:y,page:t}})},E={title:"La page de recherche d'Avant-Garde",description:"Re\xe7ois toutes les semaines la nouvelle \xe9dition num\xe9rique et tous les trimestres la nouvelle \xe9dition papier en PDF.",url:"".concat(d.Ql,"recherche")};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Z,{meta:E}),(0,a.jsx)("div",{className:"sticky top-0 flex justify-center px-8 pt-2 md:px-0 md:pt-12 z-50 bg-white",children:(0,a.jsx)(x.Z,{})}),(0,a.jsx)(c.Z,{lastQuarterlyEdition:t,logo:s,categories:p,menuLegal:g,menuPartners:m,menuPartnersPress:f,menuPartnersPressLocal:h,isPost:!1,children:(0,a.jsxs)(u.Z,{children:[y&&(0,a.jsx)("h1",{className:"text-red text-4xl text-center font-semibold max-w-xl mx-auto py-8 my-6",children:'R\xe9sultat de la recherche : "'.concat(y,'"')}),(0,a.jsx)(e=>{let{search:t,isLoading:s,data:n}=e;return t?s?(0,a.jsx)("p",{className:"text-center",children:"Chargement en cours..."}):n&&0!=n.posts.edges?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.Z,{title:"Articles correspondants \xe0 la recherche",posts:n.posts.edges}),S>1&&(0,a.jsx)(o.Z,{pageNum:j,pageCount:S,paginationHandler:L})]}):(0,a.jsx)("p",{className:"text-center",children:"Pas de r\xe9sultat"}):(0,a.jsx)("p",{className:"text-center",children:"Tous nos articles depuis 2017"})},{isLoading:P,data:b,search:y})]})})]})}}},function(e){e.O(0,[838,660,316,218,358,93,902,888,774,179],function(){return e(e.s=851)}),_N_E=e.O()}]);

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.