1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4202],{54202:(e,l,t)=>{t.r(l),t.d(l,{default:()=>C});var s=t(6029),n=t(96930),a=t(7885),i=t(17325),o=t(93520),r=t(81409),d=t(13471),c=t(39794),u=t(2197),m=t(50623),g=t(40334),p=t(53706),h=t(82203),x=t.n(h),f=t(55729);let b=e=>{let{fill:l="",width:t=32,height:n=32,className:a=""}=e;return(0,s.jsx)("svg",{width:t,height:n,viewBox:"0 0 32 32",fill:l,xmlns:"http://www.w3.org/2000/svg",className:a,children:(0,s.jsx)("circle",{id:"light_blue_circle",fill:"#1287BB9",cx:"11.5205",cy:"11.5205",r:"11.5205"})})};b.propTypes={};var y=t(4516);let v=e=>{let{isLoadingNewArea:l,delay:t=400}=e,[a,i]=(0,f.useState)(!1);return((0,f.useEffect)(()=>{let e;return l?e=setTimeout(()=>{i(!0)},t):i(!1),()=>{e&&clearTimeout(e)}},[l,t]),a)?(0,s.jsx)("div",{className:"absolute left-1/2 top-4 z-10 -translate-x-1/2 rounded-lg border border-gray-200 bg-white/90 px-4 py-2 shadow-lg backdrop-blur-sm transition-opacity duration-300 ease-in-out",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"size-4",children:(0,s.jsx)(n.R,{})}),(0,s.jsx)("span",{className:"text-sm font-medium text-gray-700",children:"Chargement de nouveaux \xe9v\xe9nements..."})]})}):null},j={width:"100%",height:"800px"},w={lat:48.8588443,lng:2.2943506},N=[{featureType:"all",stylers:[{lightness:50}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]}],C=(0,p.PA)(e=>{var l,t,p,h,C,T;let{events:k,places:A,onBoundsChanged:E,isLoadingNewArea:z=!1,delay:B}=e,{isLoaded:L}=(0,u.g)(),[S,_]=(0,f.useState)(w),[R,P]=(0,f.useState)(13),[O,D]=(0,f.useState)(null),[I,M]=(0,f.useState)(!1),[U,G]=(0,f.useState)(null),[V,Z]=(0,f.useState)(null),F=(0,f.useCallback)(e=>{G(e),Z(null)},[]),K=(0,f.useCallback)(e=>{Z(e),G(null)},[]),Y=(0,f.useCallback)(()=>{G(null),Z(null)},[]),H=(0,f.useCallback)(()=>{if(O&&E&&!I){let e=O.getBounds(),l=O.getZoom();e&&l&&E(e,l)}},[O,E,I]),q=(0,f.useCallback)(()=>{M(!0)},[]),J=(0,f.useCallback)(()=>{if(M(!1),O&&E){let e=O.getBounds(),l=O.getZoom();e&&l&&E(e,l)}},[O,E]),Q=(0,f.useCallback)(e=>{D(e)},[]),W=(0,f.useCallback)(()=>{D(null)},[]);(0,f.useEffect)(()=>{let e=document.createElement("style");e.innerHTML="\n .gm-style-iw {\n padding: 0 !important;\n }\n .gm-style-iw button {\n display: none;\n }\n .gm-style-iw-chr {\n display: none;\n }\n .gm-style-iw div {\n overflow: hidden !important;\n }\n .gmnoprint, .gm-style-cc, .gmnoprint a, .gm-style-cc a {\n display: none !important;\n }\n .gm-bundled-control .gmnoprint {\n display: block !important;\n }\n ",document.head.appendChild(e)},[]),(0,f.useEffect)(()=>{m.A.location&&_(m.A.location)},[]);let{getFileUrl:X}=(0,g.Co)(),$=X(null==U||null==(l=U.image)?void 0:l.key,null==U||null==(t=U.image)?void 0:t.type);return L?(0,s.jsxs)("div",{className:"relative",children:[m.A.isLoading()&&(0,s.jsx)("div",{className:"absolute left-0 top-0 z-10 flex size-full items-center justify-center bg-gray-700/10",children:(0,s.jsx)(n.R,{})}),(0,s.jsx)(v,{isLoadingNewArea:z,delay:B}),(0,s.jsxs)(o.u6,{mapContainerStyle:j,center:S,zoom:R,options:{styles:N,mapTypeId:"terrain",disableDefaultUI:!0,zoomControl:!0,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1},onClick:Y,onLoad:Q,onUnmount:W,onBoundsChanged:H,onZoomChanged:H,onDragStart:q,onDragEnd:J,children:[(0,s.jsx)(r.E,{position:"BOTTOM_RIGHT",children:(0,s.jsx)("div",{className:"mb-2 mr-2",children:(0,s.jsx)(a.K,{svgType:"crosshair",svgProps:{size:24,className:"text-blue-500"},className:"px-1",type:"button",variant:"outline-blue",onClick:()=>{let e=navigator.geolocation;if(e){m.A.setLoading(!0);let l=setTimeout(()=>{m.A.setLoading(!1)},1e3);e.getCurrentPosition(e=>{clearTimeout(l);let t={lat:e.coords.latitude,lng:e.coords.longitude};_(t),15===R?P(16):P(15),m.A.setLocation(t),m.A.setLoading(!1)},()=>{clearTimeout(l),m.A.setLoading(!1)})}}})})}),m.A.location&&(0,s.jsx)(o.i3,{position:m.A.location,mapPaneName:o.i3.OVERLAY_MOUSE_TARGET,children:(0,s.jsx)(b,{width:24,height:24,fill:"#287BB9"})}),k.map((e,l)=>{var t,n,a,i;return(0,s.jsx)(o.i3,{position:{lat:null!=(a=Number(null==(t=e.address)?void 0:t.lat))?a:0,lng:null!=(i=Number(null==(n=e.address)?void 0:n.long))?i:0},mapPaneName:o.i3.OVERLAY_MOUSE_TARGET,children:(0,s.jsx)("div",{className:(0,
1c.cn)("flex size-10 cursor-pointer items-center justify-center rounded-lg border bg-white shadow-2xl transition-opacity duration-200",{"bg-[#F39200]":U===e,"opacity-30":I}),onClick:l=>{l.stopPropagation(),F(e)},onKeyDown:l=>{l.stopPropagation(),F(e)},role:"button",tabIndex:0,children:(0,s.jsx)(y.sR,{className:"size-6",fill:U===e?"white":"#F39200",width:24,height:24})})},l)}),null==A?void 0:A.map((e,l)=>{var t,n;return(0,s.jsx)(o.i3,{position:{lat:null!=(t=Number(e.address.lat))?t:0,lng:null!=(n=Number(e.address.long))?n:0},mapPaneName:o.i3.OVERLAY_MOUSE_TARGET,children:(0,s.jsx)("div",{className:(0,c.cn)("custom-marker flex size-10 cursor-pointer items-center justify-center rounded-lg border bg-white shadow-2xl transition-opacity duration-200",{"bg-[#287BB9]":V===e,"opacity-30":I}),onClick:l=>{l.stopPropagation(),K(e)},onKeyDown:l=>{l.stopPropagation(),K(e)},role:"button",tabIndex:0,children:(0,s.jsx)(y.sR,{className:"size-6",fill:V===e?"white":"#287BB9",width:24,height:24})})},l)}),U&&(0,s.jsx)(o.Fu,{position:{lat:null!=(C=Number(null==(p=U.address)?void 0:p.lat))?C:0,lng:null!=(T=Number(null==(h=U.address)?void 0:h.long))?T:0},options:{pixelOffset:new window.google.maps.Size(20,0)},onCloseClick:()=>G(null),children:(0,s.jsx)(x(),{href:U.slug?"/event/".concat(U.slug):"#",children:(0,s.jsxs)("div",{className:"flex rounded-lg bg-white shadow-2xl",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"fixed left-2 top-2 rounded-lg bg-white px-2",children:(0,s.jsx)("p",{className:"whitespace-nowrap text-sm font-medium text-gray-600",children:(0,i.cA3)(U.dates.schedules,U.dates.exceptionalClosingDates)})}),(0,s.jsx)(d.A,{src:$.length>0?$:"/images/event.jpeg",alt:U.name,className:"static size-[120px] rounded-lg object-cover",width:694,height:462})]}),(0,s.jsx)("div",{className:"pr-2 pt-[25px]",children:(0,s.jsxs)("div",{className:"flex flex-col gap-2 pl-2",children:[(0,s.jsx)("p",{className:"text-base font-medium",children:U.name}),(0,s.jsx)("p",{className:"text-sm font-normal text-gray-600",children:U.organiserName}),(0,s.jsxs)("p",{className:"flex items-center gap-1 font-normal text-gray-600",children:[(0,s.jsx)(y.sR,{fill:"#667085",width:16,height:16}),(0,i.Z2L)(U.address)]})]})})]})})})]})]}):null})}}]); 2//# sourceMappingURL=4202.492ac2345133f1ba.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.