PageSourceSearch

https://expert-zoom.com/_nuxt/B4XYh1rf.js

js expert-zoom.com collected 2026-10-08 13:10:43 UTC 4,336 bytes, 1 lines download raw bytes

1import{N as C}from"./DvuCyoea.js";import{_ as $}from"./DTi0P79d.js";import{b as E,a as B}from"./BitKNp-Y.js";import{d as N,q as V,o as z,e as o,f as t,h as m,w as n,g as u,i,t as p,k as D,L as R,F as v,r as b,l as _,b as l,j,s as L}from"./01aceCaE.js";import"./BEHD0UYf.js";const S={class:"w-full flex flex-col"},q={class:"absolute top-4 left-0 w-full"},A={class:"w-full max-w-[1440px] mx-auto px-8 md:px-6"},F={class:"w-full max-w-[1440px] mx-auto px-8 md:px-6 pb-12 md:pb-16"},T={key:0,style:{"text-shadow":"2px 2px 4px rgba(0, 0, 0, 0.8)"},class:"text-3xl md:text-8xl font-bold text-white"},U={class:"w-full mx-auto pb-8 px-8 md:px-6 bg-gradient-to-b from-amber-500/10 to-white min-h-[50vh]"},W={class:"w-full max-w-[1440px] mx-auto"},I={key:0,class:"text-center py-12"},M={key:1,class:"text-center py-12 bg-white/80 rounded-lg shadow-md mt-8"},P={key:2,class:"mt-8"},Z={class:"mb-4 text-gray-600"},G={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"},H={class:"text-2xl font-semibold mb-4 flex items-center text-gray-800"},J={key:0,class:"space-y-3 pl-7 flex-grow"},K={key:1,class:"pl-7 flex-grow text-md text-gray-500 mt-1 italic"},O={class:"mt-auto pt-6 pl-7 border-t border-gray-100"},oe=N({__name:"[department]",setup(Q){const h=V(),w=L(),x=_(!0),c=_([]),y=h.params.department,d=E(y),
1k=(s,e)=>{if(!s||!e)return s;const a=/^(.*?)\s+à\s+([A-Za-zÀ-ÖØ-öø-ÿ\-]+)$/i,f=s.match(a);return f?`${f[1]} à ${e}`:s};return z(async()=>{if(!d){x.value=!1;return}try{x.value=!0;const s=await fetch(`/api/city/departement-with-expertise/${d}`);c.value=await s.json(),console.log("Cities with expertise:",c.value)}catch(s){console.error("Error fetching cities with expertise:",s)}finally{x.value=!1}}),(s,e)=>{const a=C,f=$;return l(),o("div",S,[t("div",{class:"relative w-full bg-cover bg-center min-h-[30vh] md:min-h-[70vh] flex flex-col justify-end",style:R({backgroundImage:`url('${u(w).public.apiUrl}/uploads/expertPics/divers-generalistes/1.webp')`})},[t("div",q,[t("div",A,[m(a,{to:"/nos-experts-en-france",class:"text-white hover:text-amber-200 transition-colors"},{default:n(()=>[...e[0]||(e[0]=[i(" ← Retour à la liste des départements ",-1)])]),_:1})])]),t("div",F,[u(d)?(l(),o("h1",T,[i(p(u(B)(u(d)))+" :",1),e[1]||(e[1]=t("br",null,null,-1)),e[2]||(e[2]=i(" Un réseau d'experts pour répondre à vos questions ",-1))])):D("",!0)])],4),t("div",U,[t("div",W,[x.value?(l(),o("div",I,[...e[3]||(e[3]=[t("span",{class:"inline-block animate-spin mr-2"},"⟳",-1),i(" Chargement des villes... ",-1)])])):u(d)?(l(),o("div",P,[t("div",Z,p(c.value.length)+" villes trouvées ",1),t("div",G,[(l(!0),o(v,null,b(c.value,r=>(l(),j(f,{key:r.ville_id,class:"bg-white/80 rounded-lg shadow-md p-6 hover:shadow-lg transition-all flex flex-col min-h-[400px]"},{default:n(()=>[m(a,{to:`/${s.locale}/conseils/${r.ville.ville_nom_reel}`},{default:n(()=>[t("h3",H,[e[7]||(e[7]=t("span",{class:"w-1 h-1 bg-amber-500 rounded-full mr-2 group-hover:bg-amber-600"},null,-1)),i(" "+p(r.ville.ville_nom_reel),1)])]),_:2},1032,["to"]),r.expertise&&r.expertise.length>0?(l(),o("div",J,[e[9]||(e[9]=t("div",{class:"font-medium text-gray-700 mb-2"},"Expertises disponibles:",-1)),(l(!0),o(v,null,b(r.expertise,g=>(l(),o("div",{key:g.id},[m(a,{class:"text-gray-700 hover:text-amber-600 transition-colors py-1 flex items-center group",to:`/${s.locale}/article/${g.page_slug}`},{default:n(()=>[e[8]||(e[8]=t("span",{class:"w-1 h-1 bg-amber-500 rounded-full mr-2 group-hover:bg-amber-600"},null,-1)),t("span",null,p(k(g.page_title,r.ville.ville_nom_reel)),1)]),_:2},1032,["to"])]))),128))])):(l(),o("div",K," Aucune expertise disponible ")),t("div",O,[m(a,{to:`/${s.locale}/conseils/${r.ville.ville_nom_reel}`,class:"text-lg text-amber-600 hover:text-amber-700 flex items-center"},{default:n(()=>[t("span",null,"Voir les experts à "+p(r.ville.ville_nom_reel),1)]),_:2},1032,["to"])])]),_:2},1024))),128))])])):(l(),o("div",M,[e[5]||(e[5]=t("h2",{class:"text-2xl font-bold text-gray-800"},"Département non trouvé",-1)),e[6]||(e[6]=t("p",{class:"mt-4"},"Essayez un autre département ou retournez à l'accueil.",-1)),m(a,{to:"/",class:"inline-block mt-6 px-6 py-2 bg-amber-500 text-white rounded-md hover:bg-amber-600 transition-colors"},{default:n(()=>[...e[4]||(e[4]=[i(" Retour à l'accueil ",-1)])]),_:1})]))])])])}}});export{oe 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.