1import{d as B,J as C,K as F,Z as L,U as V,f as y,i as q,M as D,g as E,B as o,I as s,k as l,w as M,e,l as c,H as n,F as u,C as _,G as p,N as I,o as i,_ as H}from"./CIAyIBvT.js";const R={class:"min-h-screen bg-blue-50"},U={class:"pt-32 pb-8 bg-blue-100"},G={class:"container mx-auto px-4"},J={class:"pb-16 -mt-4"},K={class:"container mx-auto px-4"},O={key:0,class:"flex justify-center py-16"},S={key:1,class:"bg-white rounded-2xl shadow-lg p-12 text-center max-w-2xl mx-auto"},Z={class:"text-2xl font-bold text-gray-900 mb-2"},z={class:"text-gray-600 mb-6"},Q={key:2,class:"max-w-4xl mx-auto"},W={class:"bg-white rounded-2xl shadow-lg overflow-hidden"},X={class:"bg-gradient-to-r from-indigo-900 to-indigo-700 p-8"},Y={class:"flex flex-col sm:flex-row items-center sm:items-start gap-6"},ee={class:"w-32 h-32 rounded-full bg-white shadow-lg overflow-hidden flex-shrink-0"},te=["src","alt"],se={key:1,class:"w-full h-full flex items-center justify-center bg-indigo-100"},oe={class:"text-center sm:text-left"},ie={class:"text-3xl font-bold text-white mb-2"},ne={key:0,class:"flex flex-wrap gap-2 justify-center sm:justify-start"},ae={key:1,class:"mt-4"},re={class:"inline-flex items-center gap-2 px-4 py-2 bg-green-500 text-white text-sm font-medium rounded-full"},le={class:"p-8 space-y-8"},ce={key:0},de={class:"text-xl font-bold text-indigo-900 mb-4 flex items-center gap-2"},pe={class:"text-gray-700 leading-relaxed whitespace-pre-wrap"},he={key:1},ge={class:"text-xl font-bold text-indigo-900 mb-4 flex items-center gap-2"},ue={class:"flex flex-wrap gap-2"},_e={key:2},me={class:"text-xl font-bold text-indigo-900 mb-4 flex items-center gap-2"},fe={class:"flex flex-wrap gap-2"},xe={class:"grid md:grid-cols-2 gap-6"},ye={key:0,class:"bg-gray-50 rounded-xl p-6"},be={class:"text-lg font-bold text-indigo-900 mb-4 flex items-center gap-2"},ve={class:"space-y-2 text-gray-700"},ke={key:0},we={key:1},$e={class:"bg-gray-50 rounded-xl p-6"},Pe={class:"text-lg font-bold text-indigo-900 mb-4 flex items-center gap-2"},Ae={class:"space-y-3"},Me={key:0,class:"flex items-center gap-2 text-gray-700"},Te=["href"],Ne={key:1,class:"flex items-center gap-2 text-gray-700"},je=["href"],Be={key:2,class:"flex items-center gap-2 text-gray-700"},Ce=["href"],Fe={key:3,class:"flex items-center gap-2 text-gray-700"},Le=["href"],Ve={key:1,class:"bg-gray-50 rounded-xl p-6"},qe={class:"text-lg font-bold text-indigo-900 mb-4 flex items-center gap-2"},De={class:"flex flex-wrap gap-2"},Ee={key:2,class:"bg-gray-50 rounded-xl p-6"},Ie={class:"text-lg font-bold text-indigo-900 mb-4 flex items-center gap-2"},He={class:"flex flex-wrap gap-2"},Ge=B({__name:"[id]",setup(Re){const{t:m}=C(),b=F(),T=L();V();const x=y(!0),t=y(null),f=y(""),N={psychiatre:"professions.psychiatrist",psychologue:"professions.psychologist",psychotherapeute:"professions.psychotherapist",medecin:"professions.doctor",infirmier:"professions.nurse",psychopraticien:"professions.psychopractitioner",coach:"professions.coach",sophrologue:"professions.sophrologist",kine_osteo:"professions.physioOsteo",drh:"professions.hrManager",educateur:"professions.educator",formateur:"professions.trainer"},v={therapie_mosaic:"skills.mosaicTherapy",hypnose:"skills.hypnosis",emdr:"skills.emdr",tcc:"skills.cbt",therapie_familiale:"skills.familyTherapy",psychotraumatologie:"skills.psychotrauma",somatic_experiencing:"skills.somaticExperiencing",mindfulness:"skills.mindfulness",art_therapie:"skills.artTherapy",coaching:"skills.coaching",therapie_breve:"skills.briefTherapy",therapie_integrative:"skills.integrativeTherapy",pnl:"skills.nlp",sophrologie:"skills.sophrology"},k={adultes:"targetAudiences.adults",adolescents:"targetAudiences.adolescents",enfants:"targetAudiences.children",couples:"targetAudiences.couples",familles:"targetAudiences.families",groupes:"targetAudiences.groups",professionnels:"targetAudiences.professionals",particularites:"targetAudiences.specificNeeds",handicap:"targetAudiences.disability",hpi:"practitionerProfile.hpi",personnes_agees:"practitionerProfile.elderly"},w={francais:"languages.french",anglais:"languages.english",espagnol:"languages.spanish",allemand:"languages.german",italien:"languages.italian"},$={presentiel:"consultationModes.inPerson",visio:"consultationModes.video"},j=async()=>{x.value=!0,f.value="";try{const a=await $fetch(`/api/public/nouvel-annuaire/${T.params.id}`);t.value=a.praticien}catch(a){f.value=a.data?.message||m("practitionerProfile.notFound"),console.error("Erreur:",a)}finally{x.value=!1}},P=(a,g)=>{const r=g[a];return r?m(r):a},h=(a,g)=>!a||a.length===0?null:a.map(r=>P(r,g));return q(()=>{j()}),D({title:E(()=>t.value?`${t.value.prenom} ${t.value.nom} - ${m("practitionerProfile.directoryTitle")}`:m("practitionerProfile.profileTitle"))}),(a,g)=>{const r=H,A=I;return i(),o("div",R,[s("section",U,[s("div",G,[l(A,{to:e(b)("/annuaire"),class:"inline-flex items-center gap-2 text-indigo-700 hover:text-indigo-900 mb-4 transition-colors"},{default:M(()=>[l(r,{name:"i-heroicons-arrow-left"}),p(" "+n(a.$t("practitionerProfile.backToDirectory")),1)]),_:1},8,["to"])])]),s("section",J,[s("div",K,[e(x)?(i(),o("div",O,[...g[0]||(g[0]=[s("div",{class:"animate-spin rounded-full h-10 w-10 border-b-2 border-indigo-600"},null,-1)])])):e(f)?(i(),o("div",S,[l(r,{name:"i-heroicons-exclamation-triangle",class:"text-5xl text-red-400 mb-4"}),s("h2",Z,n(a.$t("practitionerProfile.notFound")),1),s("p",z,n(e(f)),1),l(A,{to:e(b)("/annuaire"),class:"inline-flex items-center gap-2 px-6 py-3 bg-indigo-900 text-white font-semibold rounded-lg hover:bg-indigo-800 transition-colors"},{default:M(()=>[l(r,{name:"i-heroicons-arrow-left"}),p(" "+n(a.$t("practitionerProfile.backToDirectory")),1)]),_:1},8,["to"])])):e(t)?(i(),o("div",Q,[s("div",W,[s("div",X,[s("div",Y,[s("div",ee,[e(t).photo?(i(),o("img",{key:0,src:e(t).photo,alt:`${e(t).prenom} ${e(t).nom}`,class:"w-full h-full object-cover"},null,8,te)):(i(),o("div",se,[l(r,{name:"i-heroicons-user",class:"text-5xl text-indigo-400"})]))]),s("div",oe,[s("h1",ie,n(e(t).prenom)+" "+n(e(t).nom),1),e(t).metiers&&e(t).metiers.length>0?(i(),o("div",ne,[(i(!0),o(u,null,_(e(t).metiers,d=>(i(),o("span",{key:d,class:"px-3 py-1 bg-white/20 text-white text-sm rounded-full"},n(P(d,N)),1))),128))])):c("",!0),e(t).nouveaux_patients?(i(),o("div",ae,[s("span",re,[l(r,{name:"i-heroicons-check-circle"}),p(" "+n(a.$t("practitionerProfile.acceptsNewPatients")),1)])])):c("",!0)])])]),s("div",le,[e(t).biographie?(i(),o("div",ce,[s("h2",de,[l(r,{name:"i-heroicons-document-text",class:"text-indigo-600"}),p(" "+n(a.$t("practitionerProfile.about")),1)]),s("p",pe,n(e(t).biographie),1)])):c("",!0),h(e(t).competences,v)?(i(),o("div",he,[
1s("h2",ge,[l(r,{name:"i-heroicons-light-bulb",class:"text-indigo-600"}),p(" "+n(a.$t("practitionerProfile.skills")),1)]),s("div",ue,[(i(!0),o(u,null,_(h(e(t).competences,v),d=>(i(),o("span",{key:d,class:"px-3 py-1.5 bg-indigo-100 text-indigo-800 text-sm rounded-lg"},n(d),1))),128))])])):c("",!0),h(e(t).public_accompagne,k)?(i(),o("div",_e,[s("h2",me,[l(r,{name:"i-heroicons-users",class:"text-indigo-600"}),p(" "+n(a.$t("practitionerProfile.targetAudience")),1)]),s("div",fe,[(i(!0),o(u,null,_(h(e(t).public_accompagne,k),d=>(i(),o("span",{key:d,class:"px-3 py-1.5 bg-cyan-100 text-cyan-800 text-sm rounded-lg"},n(d),1))),128))])])):c("",!0),s("div",xe,[e(t).adresse_physique||e(t).region||e(t).pays?(i(),o("div",ye,[s("h3",be,[l(r,{name:"i-heroicons-map-pin",class:"text-indigo-600"}),p(" "+n(a.$t("practitionerProfile.location")),1)]),s("div",ve,[e(t).adresse_physique?(i(),o("p",ke,n(e(t).adresse_physique),1)):c("",!0),e(t).region||e(t).pays?(i(),o("p",we,n([e(t).region,e(t).pays].filter(Boolean).join(", ")),1)):c("",!0)])])):c("",!0),s("div",$e,[s("h3",Pe,[l(r,{name:"i-heroicons-phone",class:"text-indigo-600"}),p(" "+n(a.$t("practitionerProfile.contact")),1)]),s("div",Ae,[e(t).telephone_1?(i(),o("p",Me,[l(r,{name:"i-heroicons-phone",class:"text-gray-400"}),s("a",{href:`tel:${e(t).telephone_1}`,class:"hover:text-indigo-700"},n(e(t).telephone_1),9,Te)])):c("",!0),e(t).telephone_2?(i(),o("p",Ne,[l(r,{name:"i-heroicons-phone",class:"text-gray-400"}),s("a",{href:`tel:${e(t).telephone_2}`,class:"hover:text-indigo-700"},n(e(t).telephone_2),9,je)])):c("",!0),e(t).email&&e(t).expose_email?(i(),o("p",Be,[l(r,{name:"i-heroicons-envelope",class:"text-gray-400"}),s("a",{href:`mailto:${e(t).email}`,class:"hover:text-indigo-700"},n(e(t).email),9,Ce)])):c("",!0),e(t).url_site?(i(),o("p",Fe,[l(r,{name:"i-heroicons-globe-alt",class:"text-gray-400"}),s("a",{href:e(t).url_site,target:"_blank",rel:"noopener",class:"hover:text-indigo-700 truncate"},n(e(t).url_site.replace(/^https?:\/\//,"")),9,Le)])):c("",!0)])]),h(e(t).langues,w)?(i(),o("div",Ve,[s("h3",qe,[l(r,{name:"i-heroicons-language",class:"text-indigo-600"}),p(" "+n(a.$t("practitionerProfile.languages")),1)]),s("div",De,[(i(!0),o(u,null,_(h(e(t).langues,w),d=>(i(),o("span",{key:d,class:"px-3 py-1 bg-white text-gray-700 text-sm rounded-lg border border-gray-200"},n(d),1))),128))])])):c("",!0),h(e(t).modalite_consultation,$)?(i(),o("div",Ee,[s("h3",Ie,[l(r,{name:"i-heroicons-video-camera",class:"text-indigo-600"}),p(" "+n(a.$t("practitionerProfile.consultationModes")),1)]),s("div",He,[(i(!0),o(u,null,_(h(e(t).modalite_consultation,$),d=>(i(),o("span",{key:d,class:"px-3 py-1 bg-white text-gray-700 text-sm rounded-lg border border-gray-200"},n(d),1))),128))])])):c("",!0)])])])])):c("",!0)])])])}}});export{Ge 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.