PageSourceSearch

https://sortir.eu/assets/Contact-t2Y9lMho.js

js sortir.eu collected 2026-09-24 23:01:49 UTC 6,881 bytes, 6 lines download raw bytes

1import{r as c,j as e}from"./vendor-react-De19kUq8.js";import{c as j,ah as v,ai as y,aj as N,cm as w,cn as C,x as S,cp as M,z as P,s as g}from"./index-fAhlbWPM.js";import{a as b}from"./vendor-app-DH33cvx6.js";import{P as k}from"./PublicHeader-D_1U7rBb.js";import{S as q,a as _,b as z,c as H,d as I}from"./select-CcnOEAVY.js";import{P as L}from"./pen--nmfoddt.js";import{M as T}from"./megaphone-DU8wIUgx.js";import{P as $}from"./phone-DNTu8m2o.js";import"./vendor-ui-pO556hdz.js";import"./vendor-supabase-Bm92Y2YK.js";import"./index-BdQq_4o_.js";import"./chevron-up-5MTExY7L.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const E=j("Headset",[["path",{d:"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z",key:"12oyoe"}],["path",{d:"M21 16v2a4 4 0 0 1-4 4h-5",key:"1x7m43"}]]);function u({icon:s,title:d,subtitle:o,email:a,phone:n}){return e.jsxs("div",{className:"group relative rounded-2xl border border-border/50 bg-card/80 backdrop-blur-sm p-6 transition-all hover:shadow-lg hover:border-primary/30",children:[e.jsx("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-br from-primary/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none"}),e.jsxs("div",{className:"relative space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex items-center justify-center w-10 h-10 rounded-xl bg-primary/10 text-primary shrink-0",children:e.jsx(s,{className:"h-5 w-5"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground leading-tight",children:d}),e.jsx("p",{className:"text-xs text-muted-foreground",children:o})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("a",{href:`mailto:${a}`,className:"flex items-center gap-2 w-full rounded-lg border border-border/50 bg-background/50 px-4 py-2.5 text-sm text-foreground hover:bg-primary/5 hover:border-primary/30 transition-colors",children:[e.jsx(P,{className:"h-4 w-4 text-muted-foreground shrink-0"}),e.jsx("span",{className:"truncate",children:a})]}),n&&e.jsxs("a",{href:`tel:${n}`,className:"flex items-center gap-2 w-full rounded-lg border border-border/50 bg-background/50 px-4 py-2.5 text-sm text-foreground hover:bg-primary/5 hover:border-primary/30 transition-colors",children:[e.jsx($,{className:"h-4 w-4 text-muted-foreground shrink-0"}),e.jsx("span",{children:n})]})]})]})]})}function D(){const{location:s}=v(),{data:d=[]}=y(),{data:o=[]}=b({queryKey:["regional-contacts"],queryFn:async()=>{const{data:t,error:i}=await g.rpc("get_public_regional_contacts");if(i)throw i;return(t??[]).map(f=>({...f,phone:null}))},staleTime:6e5}),{data:a=[]}=b({queryKey:["regions"],queryFn:async()=>{const{data:t,error:i}=await g.from("regions").select("id, name, code").order("name");if(i)throw i;return t},staleTime:3e5}),n=c.useMemo(()=>!s||d.length===0?null:N(s.lat,s.lng,d,s.city,s.country,s.postal),[s,d]),[r,h]=c.useState("");c.useEffect(()=>{if(r||!n||a.length===0)return;const t=a.find(i=>i.code.toLowerCase()===n.toLowerCase());t&&h(t.id)},[n,a,r]);const m=c.useMemo(()=>o.find(t=>t.department==="support"&&!t.region_id),[o]),p=c.useMemo(()=>o.find(t=>t.department==="editorial"&&t.region_id===r),[o,r]),x=c.useMemo(()=>o.find(t=>t.department==="advertising"&&t.region_id===r),[o,r]),l=c.useMemo(()=>a.find(t=>t.id===r),[a,r]);return e.jsxs(e.Fragment,{children:[e.jsxs(w,{children:[e.jsx("title",{children:"Contact | Sortir"}),e.jsx("meta",{name:"description",content:"Contactez les rédactions régionales, le service publicité ou le support technique de Sortir, l'agenda culture-loisirs en régions."}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"ContactPage",name:"Contact Sortir",description:"Page de contact de la plateforme Sortir",url:`${C}/contact`})})]}),e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(k,{}),e.jsxs("main",{className:"flex-1",children:[e.jsxs("section",{className:"relative overflow-hidden border-b border-border/30",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-primary/5 via-trans
6parent to-transparent pointer-events-none"}),e.jsxs("div",{className:"container relative py-16 md:py-24 text-center space-y-4",children:[e.jsx("h1",{className:"font-display text-3xl md:text-5xl font-bold tracking-tight text-foreground",children:"Contactez-nous"}),e.jsx("p",{className:"text-muted-foreground max-w-lg mx-auto text-base md:text-lg",children:"Une question, un partenariat, une suggestion ? Trouvez le bon interlocuteur selon votre région."}),e.jsxs("div",{className:"flex items-center justify-center gap-2 pt-2",children:[e.jsx("span",{className:"h-px w-12 bg-primary/40"}),e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-primary"}),e.jsx("span",{className:"h-px w-12 bg-primary/40"})]})]})]}),e.jsxs("div",{className:"container py-10 md:py-16 space-y-12",children:[m&&e.jsxs("section",{className:"max-w-md mx-auto",children:[e.jsx("h2",{className:"text-lg font-semibold text-foreground mb-4 text-center",children:"Support & questions générales"}),e.jsx(u,{icon:E,title:m.label||"Support technique",subtitle:"Questions techniques, partenariats, gestion de lieu",email:m.email,phone:m.phone})]}),e.jsxs("section",{className:"space-y-6",children:[e.jsxs("div",{className:"text-center space-y-2",children:[e.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Contacts régionaux"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Sélectionnez votre région pour afficher les contacts rédaction et publicité."})]}),e.jsx("div",{className:"max-w-xs mx-auto",children:e.jsxs(q,{value:r,onValueChange:h,children:[e.jsx(_,{className:"bg-card border-border/50",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(S,{className:"h-4 w-4 text-muted-foreground"}),e.jsx(z,{placeholder:"Choisir une région"})]})}),e.jsx(H,{className:"bg-popover border-border z-50",children:a.map(t=>e.jsx(I,{value:t.id,children:t.name},t.id))})]})}),r&&e.jsx("div",{className:"max-w-2xl mx-auto",children:p||x?e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[p&&e.jsx(u,{icon:L,title:"Rédaction",subtitle:`Équipe éditoriale · ${(l==null?void 0:l.name)??""}`,email:p.email,phone:p.phone}),x&&e.jsx(u,{icon:T,title:"Publicité",subtitle:`Service commercial · ${(l==null?void 0:l.name)??""}`,email:x.email,phone:x.phone})]}):e.jsx("p",{className:"text-center text-sm text-muted-foreground py-8 border border-dashed border-border/50 rounded-xl",children:"Les contacts pour cette région seront bientôt disponibles."})})]})]})]}),e.jsx(M,{})]})]})}export{D as default};

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.