"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[80],{3293:function(e,a,s){s.r(a),s.d(a,{default:function(){return x}});var r=s(7437),t=s(2265),l=s(3774);let n=(0,s(9205).Z)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);var c=s(6070),i=s(2869);function d(e){let{place:a}=e;return(0,r.jsxs)(c.Zb,{className:"overflow-hidden",children:[(0,r.jsx)("div",{className:"relative h-48 bg-gradient-to-br from-primary/20 to-secondary",children:(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,r.jsx)(l.Z,{className:"h-16 w-16 text-primary/30"})})}),(0,r.jsx)(c.Ol,{children:(0,r.jsx)("div",{className:"flex items-start justify-between gap-2",children:(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)(c.ll,{children:a.name}),a.type&&(0,r.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:a.type})]})})}),(0,r.jsxs)(c.aY,{className:"space-y-4",children:[(0,r.jsx)("p",{className:"text-gray-700 leading-relaxed",children:a.description}),a.keywords&&a.keywords.length>0&&(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:a.keywords.map((e,a)=>(0,r.jsx)("span",{className:"px-2 py-1 bg-secondary text-primary text-xs font-medium rounded-lg",children:e},a))}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[(0,r.jsx)(l.Z,{className:"h-4 w-4"}),(0,r.jsx)("span",{children:a.location.address})]}),a.contact&&(0,r.jsxs)("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[(0,r.jsx)("span",{className:"font-medium",children:"Contact:"}),(0,r.jsx)("a",{href:"tel:".concat(a.contact.replace(/\s/g,"")),className:"text-primary hover:underline",children:a.contact})]}),a.horaires&&(0,r.jsxs)("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-3",children:[(0,r.jsx)("p",{className:"text-xs font-semibold text-blue-900 mb-1",children:"Horaires"}),(0,r.jsx)("p",{className:"text-sm text-blue-800",children:a.horaires})]}),a.conseil&&(0,r.jsxs)("div",{className:"bg-secondary border border-primary/20 rounded-xl p-3",children:[(0,r.jsx)("p",{className:"text-xs font-semibold text-primary mb-1",children:"\uD83D\uDCA1 Conseil pratique"}),(0,r.jsx)("p",{className:"text-sm text-gray-700",children:a.conseil})]})]}),(0,r.jsxs)(i.z,{onClick:()=>{let e;e=a.gmapLink&&"LIEN_GOOGLE_MAPS_A_INSERER"!==a.gmapLink?a.gmapLink:"https://www.google.com/maps/search/?api=1&query=".concat(encodeURIComponent(a.location.address)),window.open(e,"_blank")},className:"w-full",variant:"outline",children:[(0,r.jsx)(n,{className:"mr-2 h-4 w-4"}),"Y aller"]})]})]})}function x(e){let{category:a}=e,[s,l]=(0,t.useState)([]),[n,c]=(0,t.useState)(!0);return((0,t.useEffect)(()=>{(async()=>{c(!0);try{let e=await fetch("/data/places.json"),s=await e.json(),r="all"===a?s:s.filter(e=>e.category===a);l(r)}catch(e){console.error("Erreur lors du chargement des lieux:",e)}finally{c(!1)}})()},[a]),n)?(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsx)("p",{className:"text-gray-600",children:"Chargement..."})}):0===s.length?(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsx)("p",{className:"text-gray-600",children:"Aucun lieu trouv\xe9 dans cette cat\xe9gorie."})}):(0,r.jsx)("div",{className:"space-y-6 px-4 pb-6",children:s.map(e=>(0,r.jsx)(d,{place:e},e.id))})}},6070:function(e,a,s){s.d(a,{Ol:function(){return c},Zb:function(){return n},aY:function(){return d},ll:function(){return i}});var r=s(7437),t=s(2265),l=s(4508);let n=t.forwardRef((e,a)=>{let{className:s,...t}=e;return(0,r.jsx)("div",{ref:a,className:(0,l.cn)("rounded-2xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900 shadow-sm",s),...t})});n.displayName="Card";let c=t.forwardRef((e,a)=>{let{className:s,...t}=e;return(0,r.jsx)("div",{ref:a,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",s),...t})});c.displayName="CardHeader";let i=t.forwardRef((e,a)=>{let{className:s,...t}=e;return(0,r.jsx)("h3",{ref:a,className:(0,l.cn)("text-xl font-semibold leading-none tracking-tight text-primary",s),...t})});i.displayName="CardTitle",t.forwardRef((e,a)=>{let{className:s,...t}=e;return(0,r.jsx)("p",{ref:a,className:(0,l.cn)("text-sm text-gray-600 dark:text-gray-400",s),...t})}).displayName="CardDescription";let d=t.forwardRef((e,a)=>{let{className:s,...t}=e;return(0,r.jsx)("div",{ref:a,className:(0,l.cn)("p-6 pt-0",s),...t})});d.displayName="CardContent",t.forwardRef((e,a)=>{let{className:s,...t}=e;return(0,r.jsx)("div",{ref:a,className:(0,l.cn)("flex items-center p-6 pt-0",s),...t})}).displayName="CardFooter"}}]);