1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[523],{71051:function(e,o,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/categorie/[category]",function(){return n(55699)}])},55699:function(e,o,n){"use strict";n.r(o),n.d(o,{__N_SSP:function(){return S},default:function(){return M}});var t=n(24246),r=n(28228),a=n(27378),l=n(86677),i=n(14887),s=n(73161),c=n(66899),u=n(90614),d=n(97674),v=n(14354),g=n(60329),p=n(62566),y=n(5685),h=n(20620),m=n(39028),_=n(1162),f=n(48059),x=n(83484),j=n(69699),k=n(78731),C=n(66453),Z=n.n(C),w=n(95850),b=n(50220),q=n(17668),T=n(65861),W=n(70970),N=n(78125),P=n(60473),O=n(59502),S=!0;function M(e){var o,n;let{data:g}=e,C=(0,l.useRouter)(),{data:S,loading:M,loadingMore:E,error:F,hasCarousel:R,hasMore:A,loadMore:I,mutate:L}=function(e){var o,n,t,r;let i=(0,l.useRouter)(),s=(0,x.DQ)(i,x.Oq),c=(0,x.DQ)(i,x.TO),{data:u,error:d,isLoading:v,mutate:g,size:p,setSize:y}=(0,_.ZP)(e=>["getCategory",e+1,i.query.category,s,c],e=>{let[,o]=e;return(0,f.$O)(i.query.category,{pageSize:60,pageNumber:o,filter:s,sort:(0,x.vs)(c)})},{fallbackData:e&&(0,x.FD)(e,i.query)?[e]:void 0,revalidateFirstPage:!1,keepPreviousData:!0}),{hasCarousel:h,items:m}=(0,j.Z)(null==u?void 0:null===(o=u[0])||void 0===o?void 0:o.header),k=(0,a.useMemo)(()=>({...null==u?void 0:u[0],items:(0,x.Gx)(u),header:{...null==u?void 0:u[0].header,items:m}}),[u,m]),C=Number(null==k?void 0:null===(r=k.content)||void 0===r?void 0:null===(t=r[0])||void 0===t?void 0:null===(n=t.items)||void 0===n?void 0:n.totalPages),Z=!d&&u&&p>=1&&!u[p-1],w=(0,a.useCallback)(()=>{v||Z||y(e=>e+1)},[v,Z,y]);return{data:k,error:d,loading:v,loadingMore:Z,hasCarousel:h,hasMore:p<C,loadMore:w,mutate:g}}(g),$=(0,r.useTheme)(),{currentBreakpoint:G}=(0,h.a)(),Q=q.yS[G||"xl"],{items:U,sponsors:X,actions:z,images:B,header:H,htmlMeta:J,title:K}=S,V=!!(null==B?void 0:B.background),Y=!R&&V,ee=(0,k.Z)(U,Q),{getAdUnitPath:eo}=(0,m.Z)(),en=eo("category",C.query.category),et=a.useRef(null),er=ee.flat().map(e=>e.key),ea=null==z?void 0:null===(o=z.find(e=>e.isSelected))||void 0===o?void 0:o.title;return(0,t.jsxs)(O.Z,{pageId:T.u.Category,trackFilterChanges:!0,children:[(0,t.jsx)(c.Z,{htmlMeta:{...J,robots:"ici-rdi"===C.query.category?"noindex, nofollow":C.query.filtre||C.query.tri?"noindex":void 0}}),Y&&(0,t.jsx)(d.Z,{title:K,sponsors:X,image:null==B?void 0:B.background,logo:null==B?void 0:B.logo,className:Z().hero}),!Y&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.Z,{children:(0,t.jsx)(p.Z,{title:K,sponsors:X,logo:null==B?void 0:B.logo,sponsorsLimit:1})}),R&&(0,t.jsx)("div",{className:H.layoutType!==w.ms.Carousel?Z().contentWrapper:Z().contentWrapperWithCarousel,children:(0,t.jsx)(v.Z,{lineup:{...H,layoutType:null!==(n=H.layoutType)&&void 0!==n?n:w.ms.Carousel}})})]}),(0,t.jsx)(i.Z,{actions:z,selected:null==z?void 0:z.find(e=>e.isSelected),onSelectedChange:e=>{let{url:o}=e;C.replace("/"+o,void 0,{shallow:!0}),["xxs","sm"].includes(G)&&(0,W.l)()}}),(0,t.jsx)(u.Z,{children:(0,t.jsxs)("section",{"data-cy":b.Od.showCard,ref:et,children:[(0,t.jsx)(y.ZP,{as:"h2",id:(0,N.L1)(K),children:(0,P.t)('All "{0}" content',[K])}),ee.map((e,o)=>{var n;return(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)(v.Z,{lineup:{items:e,layoutType:w.ms.GridCategory,cardImageType:null==S?void 0:null===(n=S.content)||void 0===n?void 0:n[0].cardImageType,title:"".concat(null==S?void 0:S.title).concat(ea?":".concat(ea):"")},keysArray:er}),en&&(null==S?void 0:S.hasAds)&&e.length>Q*((0===o?q.yd:q.AU)-1)&&(0,t.jsx)(s.Z,{adUnitPath:en,automation:b.p_?"ad-banner-".concat(o+1):void 0},"".concat(C.query.category,"-").concat(o+1))]},"".concat(o+o))})]})}),(0,t.jsx)(D,{containerRef:et,loading:M||E,error:F,hasMore:A,onLoadMoreClick:I,onRetryClick:()=>L(),$_css:$.spacing.multi(32,0)})]})}var D=(0,r.default)(g.Z).withConfig({componentId:"sc-91eb311c-0"})(e=>({margin:e.$_css}))},66453:function(e){e.exports={minMedium:"screen and (min-width: 1024px)",hero:"category_hero__kjoWu",contentWrapper:"category_contentWrapper__nk34_",contentWrapperWithCarousel:"category_contentWrapperWithCarousel__1qOkv"}}},function(e){e.O(0,[233,421,1800,4110,7775,3470,2888,9774,179],function(){return e(e.s=71051)}),_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.