"use strict";exports.id=933,exports.ids=[933],exports.modules={7933:(e,s,a)=>{a.r(s),a.d(s,{default:()=>x});var r=a(326),t=a(7577),l=a(7636);let d=(0,a(2881).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 i=a(2643),c=a(772);function n({place:e}){return(0,r.jsxs)(i.Zb,{className:"overflow-hidden",children:[r.jsx("div",{className:"relative h-48 bg-gradient-to-br from-primary/20 to-secondary",children:r.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:r.jsx(l.Z,{className:"h-16 w-16 text-primary/30"})})}),r.jsx(i.Ol,{children:r.jsx("div",{className:"flex items-start justify-between gap-2",children:(0,r.jsxs)("div",{className:"flex-1",children:[r.jsx(i.ll,{children:e.name}),e.type&&r.jsx("p",{className:"text-sm text-gray-500 mt-1",children:e.type})]})})}),(0,r.jsxs)(i.aY,{className:"space-y-4",children:[r.jsx("p",{className:"text-gray-700 leading-relaxed",children:e.description}),e.keywords&&e.keywords.length>0&&r.jsx("div",{className:"flex flex-wrap gap-2",children:e.keywords.map((e,s)=>r.jsx("span",{className:"px-2 py-1 bg-secondary text-primary text-xs font-medium rounded-lg",children:e},s))}),(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:[r.jsx(l.Z,{className:"h-4 w-4"}),r.jsx("span",{children:e.location.address})]}),e.contact&&(0,r.jsxs)("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[r.jsx("span",{className:"font-medium",children:"Contact:"}),r.jsx("a",{href:`tel:${e.contact.replace(/\s/g,"")}`,className:"text-primary hover:underline",children:e.contact})]}),e.horaires&&(0,r.jsxs)("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-3",children:[r.jsx("p",{className:"text-xs font-semibold text-blue-900 mb-1",children:"Horaires"}),r.jsx("p",{className:"text-sm text-blue-800",children:e.horaires})]}),e.conseil&&(0,r.jsxs)("div",{className:"bg-secondary border border-primary/20 rounded-xl p-3",children:[r.jsx("p",{className:"text-xs font-semibold text-primary mb-1",children:"\uD83D\uDCA1 Conseil pratique"}),r.jsx("p",{className:"text-sm text-gray-700",children:e.conseil})]})]}),(0,r.jsxs)(c.z,{onClick:()=>{let s;s=e.gmapLink&&"LIEN_GOOGLE_MAPS_A_INSERER"!==e.gmapLink?e.gmapLink:`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e.location.address)}`,window.open(s,"_blank")},className:"w-full",variant:"outline",children:[r.jsx(d,{className:"mr-2 h-4 w-4"}),"Y aller"]})]})]})}function x({category:e}){let[s,a]=(0,t.useState)([]),[l,d]=(0,t.useState)(!0);return l?r.jsx("div",{className:"flex items-center justify-center py-12",children:r.jsx("p",{className:"text-gray-600",children:"Chargement..."})}):0===s.length?r.jsx("div",{className:"flex items-center justify-center py-12",children:r.jsx("p",{className:"text-gray-600",children:"Aucun lieu trouv\xe9 dans cette cat\xe9gorie."})}):r.jsx("div",{className:"space-y-6 px-4 pb-6",children:s.map(e=>r.jsx(n,{place:e},e.id))})}},2643:(e,s,a)=>{a.d(s,{Ol:()=>i,Zb:()=>d,aY:()=>n,ll:()=>c});var r=a(326),t=a(7577),l=a(7863);let d=t.forwardRef(({className:e,...s},a)=>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",e),...s}));d.displayName="Card";let i=t.forwardRef(({className:e,...s},a)=>r.jsx("div",{ref:a,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",e),...s}));i.displayName="CardHeader";let c=t.forwardRef(({className:e,...s},a)=>r.jsx("h3",{ref:a,className:(0,l.cn)("text-xl font-semibold leading-none tracking-tight text-primary",e),...s}));c.displayName="CardTitle",t.forwardRef(({className:e,...s},a)=>r.jsx("p",{ref:a,className:(0,l.cn)("text-sm text-gray-600 dark:text-gray-400",e),...s})).displayName="CardDescription";let n=t.forwardRef(({className:e,...s},a)=>r.jsx("div",{ref:a,className:(0,l.cn)("p-6 pt-0",e),...s}));n.displayName="CardContent",t.forwardRef(({className:e,...s},a)=>r.jsx("div",{ref:a,className:(0,l.cn)("flex items-center p-6 pt-0",e),...s})).displayName="CardFooter"}};