PageSourceSearch

https://www.connect-events.fr/_next/static/chunks/1283-d8a11b9230734ed4.js

js connect-events.fr collected 2026-10-02 00:02:23 UTC 37,645 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1283],{65984:(e,t,s)=>{s.d(t,{X:()=>n});var l=s(6029),a=s(67785);function n(e){return(0,l.jsx)(a.A,{className:"aspect-[1280/486]",...e})}},66611:(e,t,s)=>{s.d(t,{A:()=>o,F:()=>r});var l=s(6029);s(55729);var a=s(65984),n=s(65403),i=s(59359);let r=425,o=e=>{let{sponsored:t=!1,date:s,imageUrl:r,eventName:o,subtitle:d,location:c,tags:x,isTicketingAvailable:u,onClick:m}=e;return(0,l.jsx)(n.$,{onClick:m,variant:"null",className:"size-full p-0 text-start","data-testid":"event-card",children:(0,l.jsxs)("div",{className:"flex w-full flex-col gap-1",children:[(0,l.jsxs)("div",{className:"relative h-[120px] w-full overflow-hidden rounded-lg",children:[(0,l.jsx)(a.X,{imageUrl:r||"/images/event.jpeg",altContent:"event",className:"size-full",objectFit:"auto"}),t&&(0,l.jsx)("p",{className:"absolute right-2 top-2 z-20 rounded-lg bg-orange-500 px-2 py-1 text-xs font-semibold text-white",children:"Sponsoris\xe9"}),(0,l.jsx)("p",{className:"absolute left-2  top-2 z-20 rounded-full bg-gray-100 px-2 py-1 text-xs font-semibold text-black",children:s}),u&&(0,l.jsxs)("div",{className:"absolute bottom-2 right-2 z-20 flex items-center gap-1 rounded-full bg-white px-2 py-1",children:[(0,l.jsx)(i.B,{name:"ticket_orange_100",isColored:!0,alt:"ticket",width:14}),(0,l.jsx)("span",{className:"text-xs font-semibold text-gray-600",children:"Billetterie disponible"})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("h2",{className:"truncate text-lg font-semibold text-black",children:o}),d&&(0,l.jsx)("p",{className:"text-wrap break-words text-sm font-semibold text-gray-600",children:d}),(0,l.jsxs)("div",{className:"flex gap-1 text-wrap break-words text-sm font-semibold text-gray-600",children:[(0,l.jsx)(i.B,{name:"mapIn",alt:"mapIn",width:16}),c]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[x.includes("indoor")&&(0,l.jsx)("div",{className:"flex items-center rounded-full border border-orange-200 bg-orange-50 px-2 py-1 text-xs font-semibold text-orange-700",children:"Int\xe9rieur"}),x.includes("outdoor")&&(0,l.jsx)("div",{className:"flex items-center rounded-full border border-green-200 bg-green-50 px-2 py-1 text-xs font-semibold text-green-700",children:"Ext\xe9rieur"}),x.includes("paid")&&(0,l.jsx)("div",{className:"flex items-center rounded-full border border-purple-200 bg-purple-50 px-2 py-1 text-xs font-semibold text-purple-700",children:"Payant"}),x.includes("free")&&(0,l.jsx)("div",{className:"flex items-center rounded-full border border-[#D6D7FE] bg-[#F3F3FF] px-2 py-1 text-xs font-semibold text-[#2825DC]",children:"Gratuit"})]})]})]})})}},67785:(e,t,s)=>{s.d(t,{A:()=>o});var l=s(6029),a=s(14768),n=s(17325),i=s(55729),r=s(39794);let o=function(e){let{imageUrl:t,altContent:s,className:o,NoImageIcon:d=a.x,noImageIconSize:c=56,objectFit:x="contain"}=e,[u,m]=(0,i.useState)(!1),[p,h]=(0,i.useState)(!1),[f,g]=(0,i.useState)("contain"),v=(0,i.useRef)(null),j=()=>{let e=v.current;(null==e?void 0:e.naturalWidth)&&e.naturalHeight&&g((0,n.LqN)(e.naturalWidth,e.naturalHeight)?"cover":"contain")};(0,i.useEffect)(()=>{var e;m(!1),h(!1),g("contain"),(null==(e=v.current)?void 0:e.complete)&&v.current.naturalWidth>0&&(m(!0),j())},[t]),(0,i.useEffect)(()=>{var e;"auto"===x&&(null==(e=v.current)?void 0:e.complete)&&v.current.naturalWidth>0&&j()},[x]);let b="auto"===x?f:x;return(0,l.jsx)("div",{className:(0,r.cn)("relative flex aspect-[1280/486] w-full items-center justify-center overflow-hidden rounded-xl bg-white",{"bg-secondary-50":!t},o),children:t&&!p?(0,l.jsxs)(l.Fragment,{children:[!u&&(0,l.jsx)("div",{className:"absolute inset-0 z-20 animate-pulse bg-secondary-100"}),(0,l.jsx)("img",{ref:v,src:t,alt:"Illustration de ".concat(s),className:(0,r.cn)("z-10 transition-opacity duration-300","contain"===b?"h-full max-w-full object-contain":"size-full object-cover",u?"opacity-100":"opacity-0"),loading:"lazy",onLoad:()=>{m(!0),j()},onError:()=>{h(!0),m(!0)}}),"contain"===b&&(0,l.jsx)("img",{src:t,alt:"Arri\xe8re-plan flout\xe9 de ".concat(s),className:(0,r.cn)("absolute left-0 top-0 size-full scale-110 blur transition-opacity duration-300",u?"opacity-100":"opacity-0"),loading:"lazy"})]}):(0,l.jsx)(d,{size:c,className:"text-secondary-500"})})}},81283:(e,t,s)=>{s.r(t),s.d(t,{Homepage:()=>ev,default:()=>ej});var l=s(6029),a=s(73492),n=s(21841),i=s(39794),r=s(17325),o=s(66611),d=s(55729);let c=e=>{let{className:t}=e;return(0,l.jsx)("div",{className:(0,i.cn)("w-full p-0",t),"data-testid":"skeleton-card-event",children:(0,l.jsxs)("div",{className:"flex w-full flex-col gap-1",children:[(0,l.jsxs)("div",{className:"relative h-[120px] w-full overflow-hidden rounded-xl",children:[(0,l.jsx)("div",{className:"size-full animate-pulse bg-gray-200"}),(0,l.jsx)("div",{className:"absolute left-2 top-2 z-20 h-6 w-16 animate-pulse rounded-full bg-gray-300"})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("div",{className:"h-6 w-3/4 animate-pulse rounded bg-gray-200"}),(0,l.jsx)("div",{className:"h-5 w-1/2 animate-pulse rounded bg-gray-200"}),(0,l.jsx)("div",{className:"flex items-center gap-1",children:(0,l.jsx)("div",{className:"h-5 w-2/3 animate-pulse rounded bg-gray-200"})}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("div",{className:"h-6 w-16 animate-pulse rounded-full bg-gray-200"}),(0,l.jsx)("div",{className:"h-6 w-14 animate-pulse rounded-full bg-gray-200"})]})]})]})})};var x=s(82203),u=s.n(x);let m=function(){let e=(0,i.Ww)();return(0,l.jsxs)("div",{className:"mx-3 my-4 flex justify-center rounded-3xl bg-gradient-to-bl from-[#F39200] to-[#93370D] xl:mx-20 xl:my-24",style:{boxShadow:"0px 8px 8px -4px rgba(16, 24, 40, 0.08), 0px 20px 24px -4px rgba(16, 24, 40, 0.14)"},children:[(0,l.jsxs)("div",{className:"flex flex-col gap-8 p-16 py-36 max-xl:items-center xl:w-1/2",children:[(0,l.jsx)("p",{className:"text-4xl font-bold leading-10 text-white",children:"Multi-supports"}),(0,l.jsx)("p",{className:"text-lg font-normal leading-6 text-white",children:"Connect’Events est disponible sur ordinateurs, tablettes, t\xe9l\xe9phones au format Web App ou application mobile."}),(0,l.jsxs)("div",{className:"flex w-fit flex-wrap max-xl:justify-center",children:[(0,l.jsx)(u(),{className:"m-3 mt-0 shrink-0",href:"https://play.google.com/store/apps/details?id=com.acexpoorganization.connectevents",children:(0,l.jsx)("img",{className:"h-14",src:"/images/svg/google_play_badge_white.svg",alt:"T\xe9l\xe9charger sur le Play Store"})}),(0,l.jsx)(u(),{className:"m-3 mt-0 shrink-0",href:"https://apps.apple.com/us/app/connectevents/id6503937582",children:(0,l.jsx)("img",{className:"h-14",src:"/images/svg/app_store_badge_white.svg",alt:"T\xe9l\xe9charger sur l'App Store"})})]})]}),!e&&(0,l.jsx)("div",{className:"flex w-1/2 justify-center overflow-hidden",children:(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsx)("img",{className:"absolute bottom-0 h-[90%] max-2xl:left-60 2xl:right-0",src:"/images/ipad_mockup.png",alt:"Mockup d'un ipad"}),(0,l.jsx)("img",{className:"absolute bottom-0 h-4/5 2xl:right-60",src:"/images/iPhone_mockup.png",alt:"Mockup d'un smartphone iPhone"})]})})]})};var p=s(6382),h=s(40334),f=s(53706),g=s(71024),v=s.n(g),j=s(81278),b=s(61924),N=s(4516),w=s(50623),y=s(35077),A=s(65403),k=s(22642),D=s(12383),C=s(6730),E=s(92803),S=s(49466),L=s(98244),T=s(70491);let M=[{label:"Demain",value:n.AOA.TOMORROW},{label:"Cette semaine",value:n.AOA.THIS_WEEK},{label:"Ce weekend",value:n.AOA.THIS_WEEKEND},{label:"Ce mois",value:n.AOA.THIS_MONTH}],O=(0,f.PA)(e=>{var t,s,a;let{startDate:i,endDate:r}=e,[o,c]=(0,d.useState)(null==(t=w.A.rangeDate)?void 0:t.from),x=(0,d.useCallback)((e,t)=>{w.A.setStartDate(e),w.A.setEndDate(t),c(t)},[]),u=(0,d.useCallback)(e=>{if(w.A.selectedDateOption===e)w.A.setSelectedDateOption(n.AOA.DEFAULT),w.A.setRangeDate({from:void 0,to:void 0});else{w.A.setSelectedDateOption(e);let t=new Date;if(e===n.AOA.TOMORROW){let e=(0,D.f)(t,1);w.A.setRangeDate({from:e,to:e}),c(e)}else if(e===n.AOA.THIS_WEEK){let e=(0,C.k)(t,{weekStartsOn:1}
1),s=(0,E.$)(t,{weekStartsOn:1});w.A.setRangeDate({from:e,to:s})}else if(e===n.AOA.THIS_WEEKEND){let e=0===t.getDay()?t:(0,S.s)(t,0),s=(0,D.f)(e,-1);w.A.setRangeDate({from:s,to:e})}else if(e===n.AOA.THIS_MONTH){let e=(0,L.w)(t),s=(0,T.p)(t);w.A.setRangeDate({from:e,to:s})}}},[]);return(0,d.useEffect)(()=>{var e,t;let s=(null==(e=w.A.rangeDate)?void 0:e.from)||void 0,l=(null==(t=w.A.rangeDate)?void 0:t.to)||void 0;(i!==s||r!==s)&&x(s,l)},[i,r]),(0,l.jsxs)(y.AM,{children:[(0,l.jsxs)("div",{className:"flex w-full flex-row items-center gap-2",children:[(0,l.jsx)(y.Wv,{asChild:!0,children:(0,l.jsxs)(A.$,{variant:"outline",className:"h-[41px] w-full justify-between bg-white font-normal text-gray-500",children:["Dates",(()=>{let e=M.find(e=>e.value===w.A.selectedDateOption);if(w.A.selectedDateOption===n.AOA.CUSTOM){var t,s;return" - ".concat(null==(t=w.A.startDate)?void 0:t.toLocaleDateString()," - ").concat(null==(s=w.A.endDate)?void 0:s.toLocaleDateString())}return e?" - ".concat(e.label):""})()]})}),((null==(s=w.A.rangeDate)?void 0:s.from)!==void 0||(null==(a=w.A.rangeDate)?void 0:a.to)!==void 0)&&(0,l.jsx)(A.$,{onClick:function(){w.A.setRangeDate({from:void 0,to:void 0}),w.A.setSelectedDateOption(n.AOA.DEFAULT)},variant:"ghost","aria-label":"R\xe9initialiser les filtres",className:"self-center p-0 px-1",children:(0,l.jsx)(N.uc,{height:15,width:15,fill:"#344054"})})]}),(0,l.jsx)(y.hl,{className:"w-96 p-4",children:(0,l.jsxs)("div",{className:"grid gap-4",children:[(0,l.jsx)("div",{className:"grid grid-cols-2 gap-4",children:M.map(e=>(0,l.jsx)(A.$,{variant:w.A.selectedDateOption===e.value?"blue":"outline",onClick:()=>u(e.value),children:e.label},e.value))}),(0,l.jsxs)("div",{className:"h-[523px] w-[347px] gap-4 space-y-2 rounded-s-lg border p-4",children:[(0,l.jsx)("h4",{className:"font-medium leading-none",children:"S\xe9lectionner une date"}),(0,l.jsxs)("div",{className:"flex h-[47px] w-full gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("p",{className:"font-nunito text-xs leading-4 text-gray-500",children:"Date de d\xe9but"}),(0,l.jsx)("p",{className:"text-sm font-semibold",children:i instanceof Date?i.toLocaleDateString():"S\xe9lectionner"})]}),(0,l.jsxs)("div",{className:"ml-auto flex flex-col gap-1 ",children:[(0,l.jsx)("p",{className:"font-nunito text-xs leading-4 text-gray-500",children:"Date de fin"}),(0,l.jsx)("p",{className:"text-sm font-semibold",children:r instanceof Date?r.toLocaleDateString():"S\xe9lectionner"})]})]}),(0,l.jsx)("div",{className:"h-[382px] w-full rounded-lg border border-gray-200 shadow-xl",children:(0,l.jsx)("div",{className:"h-[352px] w-full gap-3 p-7",children:(0,l.jsx)(k.V,{mode:"range",selected:w.A.rangeDate,onSelect:e=>{let t=(null==e?void 0:e.from)||(null==e?void 0:e.to),s=(null==e?void 0:e.to)||t;if(void 0===t&&void 0===s){w.A.setRangeDate({from:void 0,to:void 0}),w.A.setSelectedDateOption(n.AOA.DEFAULT);return}w.A.setRangeDate({from:t,to:s}),w.A.setSelectedDateOption(n.AOA.CUSTOM),x(t,s)},defaultMonth:o,month:o,onMonthChange:e=>c(e),disabled:[{before:new Date}]})})})]})]})})]})});var R=s(90198),F=s(54052);let z=function(){let e=w.A.selectedEventTags,t=t=>{let s=e.includes(t)?e.filter(e=>e!==t):[...e,t];w.A.setSelectedEventTags(s)};return(0,l.jsxs)(y.AM,{children:[(0,l.jsxs)("div",{className:"flex w-full flex-row items-center gap-2",children:[(0,l.jsx)(y.Wv,{asChild:!0,children:(0,l.jsxs)(A.$,{variant:"outline",className:"h-[41px] w-full justify-between bg-white font-normal text-gray-500",children:[(()=>{let t=e.at(0),s="Autres filtres";return("paid"===t&&(s="Payante"),"free"===t&&(s="Gratuite"),"indoor"===t&&(s="Int\xe9rieur"),"outdoor"===t&&(s="Ext\xe9rieur"),e.length>1)?"".concat(s," +").concat(e.length-1):s})(),(0,l.jsx)(F.A,{height:20,width:20,fill:"#344054"})]})}),w.A.selectedEventTags.length>0&&(0,l.jsx)(A.$,{onClick:function(){w.A.selectedEventTags=[]},variant:"ghost","aria-label":"R\xe9initialiser les filtres",className:"self-center p-0 px-1",children:(0,l.jsx)(N.uc,{height:15,width:15,fill:"#344054"})})]}),(0,l.jsx)(y.hl,{className:"h-[225px] border p-4",children:(0,l.jsxs)("div",{className:"flex h-[193px] flex-col gap-4 roun
1ded-s-lg",children:[(0,l.jsxs)("div",{className:"h-[107px] gap-4 rounded-s-lg border px-6",children:[(0,l.jsx)("p",{className:"pt-6 text-gray-500",children:"Entr\xe9e"}),(0,l.jsxs)("div",{className:"flex h-[22px] items-center gap-4 pt-4",children:[(0,l.jsx)(R.S,{checked:e.includes("paid"),onCheckedChange:()=>t("paid")}),(0,l.jsx)("p",{className:"gap-[2px] text-gray-500",children:"Payante"}),(0,l.jsx)(R.S,{checked:e.includes("free"),onCheckedChange:()=>t("free")}),(0,l.jsx)("p",{className:"gap-[2px] text-gray-500",children:"Gratuite"})]})]}),(0,l.jsx)("div",{className:"flex h-[70px] items-center gap-4 rounded-s-lg border px-6",children:(0,l.jsxs)("div",{className:"flex h-[22px] items-center gap-4 py-6",children:[(0,l.jsx)(R.S,{checked:e.includes("indoor"),onCheckedChange:()=>t("indoor")}),(0,l.jsx)("p",{className:"gap-[2px] text-gray-500",children:"Int\xe9rieur"}),(0,l.jsx)(R.S,{checked:e.includes("outdoor"),onCheckedChange:()=>t("outdoor")}),(0,l.jsx)("p",{className:"gap-[2px] text-gray-500",children:"Ext\xe9rieur"})]})})]})})]})},P=e=>{let{isSelected:t,onSelected:s,onKeyDown:a,title:n,children:r}=e;return(0,l.jsxs)("div",{className:(0,i.cn)("relative top-0.5 flex h-full cursor-pointer flex-col items-center justify-end gap-1 px-4",{"border-b-4 border-orange-600 pb-1":t,"pb-2":!t}),onClick:s,onKeyDown:a,role:"button",tabIndex:0,children:[r,(0,l.jsx)("p",{className:(0,i.cn)("whitespace-nowrap text-center text-base font-medium leading-relaxed text-gray-700",{"text-secondary-600":t}),children:n})]})},_=e=>{let{activeData:t,setActiveData:s}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(P,{isSelected:"events"===t,title:"\xc9v\xe9nements",onKeyDown:()=>s("events"),onSelected:()=>{s("events")},children:(0,l.jsx)(b.R,{name:"ticket",alt:"ticket",isColored:"events"===t,width:24,height:24})})})};var I=s(11083),W=s(34245),H=s(64713),U=s(87414),$=s(63229),B=s(50016);let V=$.bL,K=$.l9;$.YJ,$.ZL,$.Pb,$.z6,d.forwardRef((e,t)=>{let{className:s,inset:a,children:n,...r}=e;return(0,l.jsxs)($.ZP,{ref:t,className:(0,i.cn)("focus:bg-accent data-[state=open]:bg-accent flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none",a&&"pl-8",s),...r,children:[n,(0,l.jsx)(B.vKP,{className:"ml-auto size-4"})]})}).displayName=$.ZP.displayName,d.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,l.jsx)($.G5,{ref:t,className:(0,i.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",s),...a}
1)}).displayName=$.G5.displayName;let G=d.forwardRef((e,t)=>{let{className:s,sideOffset:a=4,...n}=e;return(0,l.jsx)($.ZL,{children:(0,l.jsx)($.UC,{ref:t,sideOffset:a,className:(0,i.cn)("bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...n})})});G.displayName=$.UC.displayName,d.forwardRef((e,t)=>{let{className:s,inset:a,...n}=e;return(0,l.jsx)($.q7,{ref:t,className:(0,i.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a&&"pl-8",s),...n})}).displayName=$.q7.displayName;let Z=d.forwardRef((e,t)=>{let{className:s,children:a,checked:n,...r}=e;return(0,l.jsxs)($.H_,{ref:t,className:(0,i.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),checked:n,...r,children:[(0,l.jsx)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:(0,l.jsx)($.VF,{children:(0,l.jsx)(B.Srz,{className:"size-4"})})}),a]})});Z.displayName=$.H_.displayName,d.forwardRef((e,t)=>{let{className:s,children:a,...n}=e;return(0,l.jsxs)($.hN,{ref:t,className:(0,i.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...n,children:[(0,l.jsx)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:(0,l.jsx)($.VF,{children:(0,l.jsx)(B.RiX,{className:"size-4 fill-current"})})}),a]})}).displayName=$.hN.displayName;let q=d.forwardRef((e,t)=>{let{className:s,inset:a,...n}=e;return(0,l.jsx)($.JU,{ref:t,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",s),...n})});q.displayName=$.JU.displayName;let J=d.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,l.jsx)($.wv,{ref:t,className:(0,i.cn)("bg-muted -mx-1 my-1 h-px",s),...a})});J.displayName=$.wv.displayName;var X=s(70613);let Q=d.forwardRef((e,t)=>{let{className:s,rangeClassName:a,...n}=e;return(0,l.jsxs)(X.bL,{ref:t,className:(0,i.cn)("relative flex w-full touch-none select-none items-center",s),...n,children:[(0,l.jsx)(X.CC,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,l.jsx)(X.Q6,{className:(0,i.cn)("absolute h-full bg-black",a)})}),(0,l.jsx)(X.zi,{className:"border-primary bg-background ring-offset-background focus-visible:ring-ring block size-5 rounded-full border-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]})});Q.displayName=X.bL.displayName;var Y=s(7885),ee=s(1909),et=s(2197);let es=(0,f.PA)(e=>{let{setRadius:t,radius:s,maxRadius:n=100,setLocationText:r}=e,{toast:o}=(0,W.dj)(),{location:c}=(0,p.f)(),x=w.A.location,{isLoaded:u}=(0,et.g)(),m=(0,ee.mN)({defaultValues:{...a.r2m,address:{...a.r2m.address,lat:null==x?void 0:x.lat,long:null==x?void 0:x.lng}},mode:"all"}),{control:h,watch:f,reset:g,setValue:v}=m,j=f("address");return(0,d.useEffect)(()=>{let{lat:e,long:s}=j;x||null===e&&null===s||(g(),t(20))},[x,g]),(0,l.jsxs)("div",{className:"flex w-full flex-row items-center gap-2",children:[(0,l.jsx)("form",{onSubmit:e=>{e.preventDefault()},className:"w-full",children:(0,l.jsx)(H.lV,{...m,children:(0,l.jsxs)("div",{className:"relative flex h-[41px] w-full grow",children:[(0,l.jsx)(U.Z,{control:h,name:"address",placeholder:w.A.locationText||"Lieu",isMapApiLoaded:u,className:(0,i.cn)("h-[41px] grow justify-center gap-0 overflow-hidden text-ellipsis font-normal text-gray-500",{"w-[calc(100%-46px)]":100===s,"w-[calc(100%-40px)]":s&&s<100&&s>=10,"w-[calc(100%-34px)]":s&&s<10&&s>0,"placeholder:text-black":"Ma localisation"===w.A.locationText}),setValue:r,setLocationFilter:(e,t,s)=>{w.A.setLocationFilter(e,t,s)},setLocationAndFilter:(e,t,s,l,a)=>{w.A.setLocationAndFilter(e,t,s,l,a)}}),(0,l.jsxs)(V,{children:[(0,l.jsx)(K,{asChild:!0,children:(0,l.jsxs)(A.$,{type:"button",variant:"ghost",size:"sm",className:(0,i.cn)("absolute right-0 mt-[2.5px] h-[36px] rounded-l-none border bg-white px-3 py-2 text-sm font-medium transition-colors disabled:pointer-events-none disabled:opacity-50"),children:[null!==s?"".concat(s," km"):null,(0,l.jsx)(I.A,{className:(0,i.cn)("size-4",{"ml-2":s})})]})}),(0,l.jsx)(G,{align:"end",className:"w-72",children:(0,l.jsxs)("div",{className:"flex flex-col gap-2 p-4",children:[(0,l.jsx)("div",{className:"mb-2 flex items-center gap-2",children:(0,l.jsxs)("h3",{className:"font-medium",children:["Dans un rayon de ",s," km"]})}),(0,l.jsx)(Q,{value:s?[s]:[0],onValueChange:e=>t(e[0]),max:n,step:5,className:"mb-2"}),(0,l.jsxs)("div",{className:"flex justify-between text-sm text-muted-foreground",children:[(0,l.jsx)("span",{children:"1 km"}),(0,l.jsxs)("span",{children:[s," km"]}),(0,l.jsxs)("span",{children:[n," km"]})]}),(0,l.jsx)(Y.K,{svgType:"paperPlaneTilt",svgProps:{size:24},variant:"outline-blue",onClick:()=>
1{if(null===c){w.A.setLoading(!1),o({title:"Erreur",description:"Veuillez autoriser l'acc\xe8s \xe0 votre position."});return}w.A.setLoading(!0),v("address",a.r2m.address),w.A.setLocationText("Ma localisation");let{latitude:e,longitude:t}=c;w.A.setLocation({lat:e,lng:t}),w.A.setLoading(!1),w.A.setLocationFilter(null,null,null)},children:"Utiliser ma position actuelle"})]})})]})]})})}),(w.A.location||w.A.locationText||20!==s)&&(0,l.jsx)(A.$,{onClick:()=>{w.A.setLocation(null),w.A.setLocationText(""),w.A.setLocationFilter(null,null,null),g(),t(20)},variant:"ghost","aria-label":"R\xe9initialiser les filtres",className:"self-center p-0 px-1",children:(0,l.jsx)(N.uc,{height:15,width:15,fill:"#344054"})})]})}),el=function(){let e=(0,d.useRef)(null),[t,s]=(0,d.useState)(!1),a=w.A.selectedEventTypes,i=(e,t)=>{let s=[...a];t?s.push(e):s=s.filter(t=>t!==e),w.A.setSelectedEventTypes(s)},r=t=>{e.current&&!e.current.contains(t.target)&&s(!1)},o=e=>{"Escape"===e.key&&s(!1)};return(0,d.useEffect)(()=>(document.addEventListener("mousedown",r),document.addEventListener("keydown",o),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",o)}),[]),(0,l.jsxs)(V,{open:t,children:[(0,l.jsxs)("div",{className:"flex w-full flex-row items-center gap-2",children:[(0,l.jsx)(K,{asChild:!0,children:(0,l.jsxs)(A.$,{variant:"outline",className:"h-[41px] w-full justify-between bg-white font-normal text-gray-500",onClick:()=>s(e=>!e),children:[(()=>{var e;let t=null!=(e=w.A.selectedEventTypes.at(0))?e:w.A.selectedEventTypes.at(0),s="Types d'\xe9v\xe9nements";switch(t){case"fair":case"sporting":case"festival":case"concert":case"cultural":case"other":case"professionalFair":s=(0,n.i_u)(t)}return w.A.selectedEventTypes.length>1?"".concat(s," +").concat(w.A.selectedEventTypes.length-1):s})(),(0,l.jsx)(F.A,{height:20,width:20,fill:"#344054"})]})}),w.A.selectedEventTypes.length>0&&(0,l.jsx)(A.$,{onClick:()=>{w.A.setSelectedEventTypes([])},variant:"ghost","aria-label":"R\xe9initialiser les filtres",className:"self-center p-0 px-1",children:(0,l.jsx)(N.uc,{height:15,width:15,fill:"#344054"})})]}),(0,l.jsxs)(G,{className:"w-56",ref:e,children:[(0,l.jsx)(q,{children:"Types d'\xe9v\xe9nements"}),(0,l.jsx)(J,{}),(0,l.jsx)(Z,{checked:a.includes("cultural"),onCheckedChange:e=>i("cultural",e),children:"Culturel"}),(0,l.jsx)(Z,{checked:a.includes("sporting"),onCheckedChange:e=>i("sporting",e),children:"Sportif"}),(0,l.jsx)(Z,{checked:a.includes("fair"),onCheckedChange:e=>i("fair",e),children:"Foires & salons grand public"}),(0,l.jsx)(Z,{checked:a.includes("professionalFair"),onCheckedChange:e=>i("professionalFair",e),children:"Salons professionnels"}),(0,l.jsx)(Z,{checked:a.includes("concert"),onCheckedChange:e=>i("concert",e),children:"Spectacles & concerts"}),(0,l.jsx)(Z,{checked:a.includes("festival"),onCheckedChange:e=>i("festival",e),children:"Festivals"}),(0,l.jsx)(Z,{checked:a.includes("other"),onCheckedChange:e=>i("other",e),children:"Autres"})]})]})},ea=(0,f.PA)(e=>{let{startDate:t,endDate:s,setRadius:a,radius:n,reset:i}=e,[r,o]=(0,d.useState)("events");return(0,l.jsxs)("div",{className:"flex grow flex-row items-stretch",children:[(0,l.jsx)(_,{activeData:w.A.activeData,setActiveData:o}),(0,l.jsxs)("div",{className:"flex h-16 grow items-center gap-6 border-l border-gray-300 px-6 ",children:[(0,l.jsx)("p",{className:"whitespace-nowrap text-base font-normal text-black ",children:"Filtres"}),(0,l.jsxs)("div",{className:"flex h-[41px] grow items-center gap-2",children:[(0,l.jsx)("div",{className:"flex h-[41px] grow items-center rounded-lg border-gray-300",children:(0,l.jsx)(es,{setRadius:a,radius:n})}),(0,l.jsxs)("div",{className:"flex grow gap-2",children:[(0,l.jsx)("div",{className:"flex grow",children:(0,l.jsx)(O,{startDate:t,endDate:s})}),(0,l.jsx)("div",{className:"flex grow",children:"events"===r&&(0,l.jsx)(el,{})}),(0,l.jsx)("div",{className:"flex grow",children:(0,l.jsx)(z,{})}),void 0!==i&&(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)(A.$,{className:"h-[41px] w-full justify-between bg-white font-normal text-gray-500",onClick:i,children:(0,l.jsx)(N.uc,{width:18,height:18,fill:"red"})})})]})]})]})]})}),en=function(e){let{startDate:t,endDate:s,setRadius:a,radius:n,reset:i}=e;return(0,l.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,l.jsx)("h1",{className:"flex w-1/2 grow text-xl font-bold",children:"D\xe9couvrir"}),(0,l.jsx)("div",{className:"flex gap-2",children:(0,l.jsxs)(y.AM,{children:[(0,l.jsx)(y.Wv,{asChild:!0,children:(0,l.jsxs)(A.$,{variant:"outline",className:"flex items-center gap-1 rounded-full bg-white px-2 text-sm font-semibold text-gray-500",children:[(0,l.jsx)(N.mW,{height:16,width:16,fill:"#344054"}),"Filtres"]})}),(0,l.jsxs)(y.hl,{className:"flex flex-col gap-2",children:[(0,l.jsx)(O,{startDate:t,endDate:s}),(0,l.jsx)(es,{setRadius:a,radius:n,setLocationText:w.A.setLocationText}),(0,l.jsx)(el,{}),(0,l.jsx)(z,{})]}),void 0!==i&&(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)(A.$,{className:"h-[31px] w-full justify-between bg-white font-normal text-gray-500",onClick:i,children:(0,l.jsx)(N.uc,{width:18,height:18,fill:"red"})})})]})})]})},ei=function(e){let{startDate:t,endDate:s}=e,a=(0,i.al)(),[n,r]=(0,d.useState)(w.A.locationDistance);(0,d.useEffect)(()=>{let e=setTimeout(()=>{w.A.setLocationDistance(0===n?1:n)},500);return()=>clearTimeout(e)},[n]);let o=e=>{0===e&&(e=1),r(e)},c=w.A.filterSelectedNumber(),x=(0,d.useMemo)(()=>c>=2?()=>{w.A.resetStore(),r(20)}:void 0,[c]);return a?(0,l.jsx)(en,{startDate:t,endDate:s,setRadius:o,radius:n,reset:x}):(0,l.jsx)(ea,{startDate:t,endDate:s,setRadius:o,radius:n,reset:x})};var er=s(13471);let eo=e=>{let{name:t,location:s,image:a,type:i}=e,{getFileUrl:r}=(0,h.Co)(),o=r(null==a?void 0:a.key,null==a?void 0:a.type,425);return(0,l.jsxs)("div",{className:"flex w-full flex-col gap-1",children:[(0,l.jsxs)("div",{className:"relative h-[120px] w-full overflow-hidden rounded-lg",children:[(0,l.jsx)(er.A,{src:o||"/images/place.jpeg",alt:"Lieu touristique"}),(0,l.jsxs)("div",{className:"absolute left-2 top-2 flex items-center gap-1 rounded-full bg-white px-2",children:[(0,l.jsx)(N.wb,{width:14,height:14,fill:"#287BB9"}),(0,l.jsx)("p",{className:"text-base text-gray-600",children:(0,n.OQH)(i)})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:t}),(0,l.jsxs)("div",{className:"flex items-center gap-1 text-sm font-semibold text-gray-600",children:[(0,l.jsx)(b.R,{name:"mapIn",alt:"mapIn",width:16,height:16}),s]})]})]})};s(59359);let ed=e=>{let{className:t,...s}=e;return(0,l.jsx)("nav",{"aria-label":"pagination",className:(0,i.cn)("mx-auto flex w-full justify-center",t),"data-testid":"pagination",...s})};ed.displayName="Pagination";let ec=d.forwardRef((e,t)=>
1{let{className:s,...a}=e;return(0,l.jsx)("ul",{ref:t,className:(0,i.cn)("flex flex-row items-center",s),...a})});ec.displayName="PaginationContent";let ex=d.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,l.jsx)("li",{ref:t,className:(0,i.cn)("border-y border-r first:rounded-l-xl first:border-l last:rounded-r-xl",s),...a})});ex.displayName="PaginationItem";let eu=e=>{let{children:t,className:s,isActive:a,size:n="icon",...r}=e;return(0,l.jsx)("a",{"aria-current":a?"page":void 0,className:(0,i.cn)((0,A.r)({variant:a?"blue":"ghost",size:n}),"rounded-none","hover:cursor-pointer",s),...r,children:t})};eu.displayName="PaginationLink";let em=e=>{let{className:t,...s}=e;return(0,l.jsxs)("span",{"aria-hidden":!0,className:(0,i.cn)("flex h-9 w-9 items-center justify-center",t),...s,children:[(0,l.jsx)(B.Oer,{className:"mt-3 size-4"}),(0,l.jsx)("span",{className:"sr-only",children:"More pages"})]})};em.displayName="PaginationEllipsis";let ep=e=>{let{pageNumbers:t,changePage:s}=e,a=t.length,n=w.A.currentPage+1,r=n===a,o=1===n,c=(0,d.useMemo)(()=>n<5?Array.from({length:Math.min(5,a)},(e,t)=>t+1):[1],[t,n]),x=(0,d.useMemo)(()=>n>4&&n<=a-3?[n-1,n,n+1]:[],[t,n,a]),u=(0,d.useMemo)(()=>n>a-3&&a>5?Array.from({length:5},(e,t)=>a-t).reverse().filter(e=>!c.includes(e)):a>5?[a]:[],[t,n,a,c]);return(0,l.jsxs)(ed,{className:"flex items-center justify-center p-1 md:justify-end",children:[(0,l.jsx)("button",{onClick:()=>s(n-1),className:(0,i.cn)("gap-1 rounded-l-xl border px-2.5 py-[7px]",{"cursor-not-allowed opacity-50":o}),disabled:o,children:(0,l.jsx)(N.A6,{width:20,height:20,fill:"#287BB9"})}),(0,l.jsxs)(ec,{children:[c.map(e=>(0,l.jsx)(ex,{className:"border-none",children:(0,l.jsx)(eu,{onClick:()=>s(e),isActive:n===e,className:"border",children:e})},e)),x.length>0&&(0,l.jsx)(ex,{className:"border-none",children:(0,l.jsx)(em,{className:"border-none"})}),x.map(e=>(0,l.jsx)(ex,{className:"border-none",children:(0,l.jsx)(eu,{onClick:()=>s(e),isActive:n===e,className:"border",children:e})},e)),u.length>0&&c.at(-1)!==u[0]-1&&(0,l.jsx)(ex,{className:"border-none",children:(0,l.jsx)(em,{className:"border-none"})}),u.map(e=>(0,l.jsx)(ex,{className:"border-none",children:(0,l.jsx)(eu,{onClick:()=>s(e),isActive:n===e,className:"border",children:e})},e))]}),(0,l.jsx)("button",{onClick:()=>s(n+1),className:(0,i.cn)("flex items-center justify-center gap-1 rounded-r-xl border px-2.5 py-[7px]",{"cursor-not-allowed opacity-50":r}),disabled:r,children:(0,l.jsx)(N.fl,{width:20,height:20,fill:"#287BB9"})})]})},eh=v()(()=>s.e(4202).then(s.bind(s,54202)),{loadableGenerated:{webpack:()=>[54202]},ssr:!1});function ef(){let e=[];
1if(w.A.place&&e.push("dans la ville de ".concat(w.A.place)),w.A.selectedDateOption!==n.AOA.DEFAULT){let t=w.A.selectedDateOption===n.AOA.CUSTOM?"\xe0 des dates personnalis\xe9es":"\xe0 des dates pr\xe9d\xe9finies";e.push(t)}if(w.A.selectedEventTypes.length>0){let t=w.A.selectedEventTypes.map(e=>n.lFH[e].toLowerCase()).join(", ");e.push("pour les types d'\xe9v\xe9nements ".concat(t))}if(w.A.selectedEventTags.length>0){let t=w.A.selectedEventTags.map(e=>n.y_N[e]).join(", ");e.push("avec les tags ".concat(t))}return w.A.selectedPlaceTypes.length>0&&e.push("pour les types de lieux ".concat(w.A.selectedPlaceTypes.join(", "))),null!==w.A.location&&e.push("\xe0 l'adresse recherch\xe9e"),null!==w.A.locationDistance&&e.push("dans un rayon de ".concat(w.A.locationDistance," km")),0===e.length?"aucun filtre appliqu\xe9":e.join(" et ")}let eg=(0,f.PA)(()=>{var e;let t=(0,i.al)(),s=(0,j.useRouter)(),{location:n,isLoading:x}=(0,p.f)();(0,d.useEffect)(()=>{if(null!==n){let e={lat:n.latitude,lng:n.longitude};w.A.setLocationText("Ma localisation"),w.A.setLocation(e)}x||w.A.setLoading(!1)},[n,x]);let{data:f,isLoading:g}=(0,a.N7r)(w.A.filtersEvents,{enabled:!w.A.showMap&&!w.A.isLoading()}),{events:v,isLoading:y,isLoadingNewArea:A}=(e=>{let{filters:t,enabled:s=!0}=e,l=(0,a.gM2)(),n=(0,d.useRef)(null),[i,r]=(0,d.useState)([]),o=(0,d.useRef)(new Set),[c,x]=(0,d.useState)(!1),u=(0,d.useMemo)(()=>{let{bounds:e,zoomLevel:s,...l}=t;return l},[t]);(0,d.useEffect)(()=>{if(n.current){let e={...n.current,bounds:void 0,zoomLevel:void 0},s={...u,bounds:void 0,zoomLevel:void 0};JSON.stringify(e)!==JSON.stringify(s)&&(r([]),o.current.clear(),x(!0),l(t))}n.current=t},[u,l,t]);let m=(0,d.useMemo)(()=>
1t.bounds?"".concat(t.bounds.northeast.lat.toFixed(4),",").concat(t.bounds.northeast.lng.toFixed(4),",").concat(t.bounds.southwest.lat.toFixed(4),",").concat(t.bounds.southwest.lng.toFixed(4)):null,[t.bounds]),p=(0,d.useMemo)(()=>!!m&&!!s&&(!!c||!o.current.has(m)),[m,s,c]),{data:h=[],isLoading:f,isFetching:g}=(0,a.EMg)(t,{enabled:p&&!!t.bounds,staleTime:3e5,refetchOnWindowFocus:!1}),v=(0,d.useCallback)((e,t)=>{let s=new Map;return e.forEach(e=>{s.set(e.id,e)}),t.forEach(e=>{s.set(e.id,e)}),Array.from(s.values())},[]);(0,d.useEffect)(()=>{h.length>0&&m&&(r(e=>v(e,h)),o.current.add(m),x(!1))},[h,m,v]);let j=(0,d.useMemo)(()=>i.filter(e=>{var t,s;return(null==(t=e.address)?void 0:t.lat)&&(null==(s=e.address)?void 0:s.long)}),[i]),b=g&&i.length>0;return{events:j,isLoading:f&&0===i.length,isLoadingNewArea:b}})({filters:w.A.filtersEvents,enabled:w.A.showMap}),{data:k,count:D}=w.A.showMap?{data:null!=v?v:[],count:null!=(e=null==v?void 0:v.length)?e:0}:null!=f?f:{data:[],count:0},C=w.A.showMap?y:g,{data:E,isLoading:S}=(0,a.mNG)(w.A.filtersPlaces),L=(0,d.useMemo)(()=>Array.from({length:Math.ceil((null!=D?D:0)/w.A.eventsPerPage)},(e,t)=>t+1),[D]),T=(e,t,s)=>s?null:(0,l.jsx)("div",{className:"flex grow justify-center px-[50px] py-[200px] text-center",children:(0,l.jsx)("p",{className:"font-semibold text-gray-500",children:"Aucun ".concat(e," n'a \xe9t\xe9 trouv\xe9 pour le filtre ").concat(t,".")})}),M=()=>k.map(e=>{var t,a,n;let i=(0,r.cA3)(e.dates.schedules,e.dates.exceptionalClosingDates),d=(0,h.w8)(null==(t=e.image)?void 0:t.key,null==(a=e.image)?void 0:a.type,o.F);return(0,l.jsx)("div",{className:"flex-row-child",children:(0,l.jsx)(o.A,{sponsored:e.isSponsored,date:i,imageUrl:d,eventName:e.name,subtitle:null==(n=e.address)?void 0:n.name,location:(0,r.Z2L)(e.address),tags:[e.isPaidEntry?"paid":"free",e.isIndoor?"indoor":"",e.isOutdoor?"outdoor":""],isTicketingAvailable:e.isTicketingAvailable,onClick:()=>(e=>{e.slug&&s.push("/event/".concat(e.slug))})(e)})},e.id)}),O=()=>void 0===E?(0,l.jsx)(l.Fragment,{}):E.map((e,t)=>(0,l.jsx)("div",{className:"flex-row-child",children:(0,l.jsx)(u(),{href:"/place/".concat(e.id),children:(0,l.jsx)(eo,{city:e.address.city,name:e.name,location:"".concat(e.address.address,", ").concat(e.address.city," ").concat(e.address.zipCode),image:e.image,type:e.type})})},t));return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"",children:(0,l.jsxs)("div",{className:"gap-6 px-[14px] pb-20 md:px-8 md:py-10 lg:px-20",children:[t?null:(0,l.jsxs)("div",{className:"flex h-10 items-center justify-between",children:[(0,l.jsx)("h1",{className:"text-[40px] font-extrabold leading-10",children:"D\xe9couvrir"}),(0,l.jsxs)("button",{type:"button",onClick:()=>w.A.setShowMap(!w.A.showMap),className:"flex items-center gap-2 rounded-lg bg-blue-500 px-8 py-4",children:[(0,l.jsx)("span",{className:"text-[14px] font-semibold text-white",children:w.A.showMap?"Revenir \xe0 la liste":"Voir sur la carte"}),w.A.showMap?(0,l.jsx)(N.ag,{width:20,height:20,fill:"white"}):(0,l.jsx)(b.R,{name:"plan",isColored:!0,alt:"plan",width:20,height:20})]})]}),(0,l.jsx)("div",{className:"flex gap-6 border-gray-300 pt-6 md:border-b",children:(0,l.jsx)(ei,{startDate:w.A.startDate,endDate:w.A.endDate})}),t?(0,l.jsxs)("div",{className:"flex w-full items-center justify-between gap-4 py-4",children:[(0,l.jsx)("p",{className:"text-xs font-semibold text-gray-500",children:w.A.place&&k&&k.length?"".concat(k.length,' \xe9v\xe9nements \xe0 : "').concat(w.A.place,'"'):""}),(0,l.jsxs)("button",{type:"button",onClick:()=>w.A.setShowMap(!w.A.showMap),className:"flex items-center gap-2 rounded-lg bg-blue-500 px-6 py-4",children:[(0,l.jsx)("span",{className:"text-[14px] font-semibold text-white",children:w.A.showMap?"Revenir \xe0 la liste":"Voir sur la carte"}),w.A.showMap?(0,l.jsx)(N.ag,{width:20,height:20,fill:"white"}):(0,l.jsx)(b.R,{name:"plan",isColored:!0,alt:"plan",width:20,height:20})]})]}):null,w.A.showMap?(0,l.jsx)("div",{className:"pt-6",children:(0,l.jsx)(eh,{events:"places"==w.A.activeData?[]:null!=k?k:[],places:"events"==w.A.activeData?[]:E,onBoundsChanged:(e,t)=>{w.A.setMapBoundsAndZoom(e,t)},isLoadingNewArea:A,delay:300})}):(0,l.jsxs)("div",{className:(0,i.cn)("row-1 md:row-2 lg:row-3 2xl:row-4 flex flex-row flex-wrap items-start gap-x-8 gap-y-6 pb-6 md:pt-8"),children:[C||S||w.A.isLoading()?Array.from({length:10}).map((e,t)=>(0,l.jsx)("div",{className:"flex-row-child w-full",children:(0,l.jsx)(c,{})},t)):null,"events"===w.A.activeData&&(k&&k.length>0?M():T("\xe9v\xe9nement",ef(),g&&!w.A.isLoading())),"places"===w.A.activeData&&(E&&E.length>0?O():T("lieux",ef(),S)),"all"===w.A.activeData&&(0,l.jsx)(l.Fragment,{children:k&&k.length>0||E&&E.length>0?(0,l.jsxs)(l.Fragment,{children:[M()," ",O()]}):T("\xe9v\xe9nements et lieux",ef(),g||S)})]}),!w.A.showMap&&(0,l.jsxs)("div",{className:"flex flex-col items-center justify-between gap-2 border-t border-gray-300 pt-4 md:flex-row md:gap-0",children:[(0,l.jsxs)("div",{className:"flex grow items-center gap-2",children:[(0,l.jsx)("span",{children:"Afficher"}),(0,l.jsxs)("select",{value:w.A.eventsPerPage,onChange:e=>w.A.setEventsPerPage(Number(e.target.value)),className:"flex rounded-lg border border-gray-300 px-2 py-1 text-center",n
1ame:"events-per-page",children:[(0,l.jsx)("option",{value:28,children:"28"}),(0,l.jsx)("option",{value:40,children:"40"}),(0,l.jsx)("option",{value:60,children:"60"})]}),(0,l.jsx)("span",{className:"flex whitespace-nowrap",children:"/ page"})]}),(0,l.jsx)(ep,{pageNumbers:L,changePage:function(e){L.includes(e)&&(window.scrollTo(0,0),w.A.setCurrentPage(e-1))}})]})]})}),(0,l.jsx)(m,{})]})});function ev(){return(0,l.jsx)("div",{children:(0,l.jsx)(eg,{})})}let ej=ev}}]);
2//# sourceMappingURL=1283-d8a11b9230734ed4.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.