const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/CommuteMap-H0GX23TG.js","assets/js/vendor-react-f9GpqhU8.js","assets/js/vendor-utils-DjInyQU5.js","assets/js/vendor-icons-CFki6-W-.js","assets/js/index-YIaDEtYb.js","assets/js/vendor-ui-E0laiDhI.js","assets/js/vendor-supabase-DU84N46d.js","assets/css/index-CsCR6cNU.css"])))=>i.map(i=>d[i]);
import{_ as o}from"./index-YIaDEtYb.js";import{r,j as e}from"./vendor-react-f9GpqhU8.js";const c=r.lazy(()=>o(()=>import("./CommuteMap-H0GX23TG.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),u=()=>{const[s,a]=r.useState(!1),t=r.useRef(null);return r.useEffect(()=>{const n=new IntersectionObserver(i=>{i[0].isIntersecting&&!s&&(a(!0),n.disconnect())},{rootMargin:"200px",threshold:.01});return t.current&&n.observe(t.current),()=>n.disconnect()},[s]),e.jsx("div",{ref:t,className:"w-full",children:s?e.jsx(r.Suspense,{fallback:e.jsx("div",{className:"w-full h-96 bg-gray-100 rounded-lg flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Chargement de la carte..."})]})}),children:e.jsx(c,{})}):e.jsx("div",{className:"w-full h-96 bg-gray-100 rounded-lg flex items-center justify-center",children:e.jsxs("div",{className:"text-center text-gray-500",children:[e.jsxs("svg",{className:"w-16 h-16 mx-auto mb-4 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]}),e.jsx("p",{children:"La carte se chargera bientôt..."})]})})})};export{u as L};