PageSourceSearch

https://le-barreaumetre.fr/assets/JobDetailPage-D7uEXYJ3.js

js le-barreaumetre.fr collected 2026-10-04 20:35:14 UTC 31,708 bytes, 22 lines download raw bytes

1import{j as e}from"./vendor-radix-BgQ1tEw6.js";import{r as u,L as I,l as Le,u as Te,k as De}from"./vendor-react-DXpIY7U8.js";import{g as xe,b as Fe,h as qe,c as ze,d as Be,m as Ae,e as Ee,a as Ve,s as He,f as Ue,i as Je}from"./job-utils-Dh9B_D8C.js";import{a as pe,g as he,b as fe}from"./firm-logo-utils-CShPIu-B.js";import{A as ge}from"./ApplyTrackingDialog-DSLTaIpz.js";import{f as Ge}from"./useJobConfigOptions-o8CBRtP8.js";import{e as Oe,f as We,g as Qe,h as Ke,B as g,Y as Ye,t as Ze,C as h,a as f,w as y,Q as _,z as Xe,s as D,S as G,D as es}from"./index-DjWeVXQh.js";import{s as je}from"./sanitize-C8VnY-uS.js";import{S as ss}from"./SEO-B2m7ZdS4.js";import{S as ts}from"./SaveJobButton-BnD4LHV7.js";import{B as b}from"./badge-t1Mm-JRA.js";import{P as as}from"./progress-CgnX3-zF.js";import{B as rs}from"./Breadcrumbs-CgLOzM1z.js";import{m as ls,d as is,e as ns,c as cs,a as os}from"./firm-utils-BjUfpR4x.js";import{C as ds}from"./ContributePopup-2XB_7EBv.js";import{b as ms,g as us}from"./constants.structure-config-BpDh2bXB.js";import{c as xs}from"./clipboard-D0TxWoqr.js";import{k as ps,l as be,r as hs,bz as fs,q as K,x as Ne,B,G as ke,f as gs,cb as js,_ as O,J as se,am as ye,aj as Ce,b as bs,ap as Ns,a2 as _e,m as ys,u as _s,cc as vs,ay as ws}from"./vendor-utils-C1PKCXFi.js";import{u as ks,t as P,i as Cs}from"./usePublicFirmOnboarding-B3t53Qn4.js";import"./addLeadingZeros-6--iqVZy.js";import"./toDate-CTowH2ac.js";import"./addDays-DH0PGRZa.js";import"./radio-group-C4WrBDTI.js";import"./checkbox-0CHXcTvc.js";import"./vendor-supabase-DoLSl-Em.js";import"./app-BwwgxGmm.js";import"./usePopupTrigger-DhJmy2Yr.js";import"./bot-detection-BUzRmdEK.js";function Ss({open:r,onOpenChange:o,jobTitle:j,firmName:s,jobUrl:n}){const[t,N]=u.useState(!1),x=`Regarde cette offre d'emploi : ${j} chez ${s} 👉 ${n}`,M=async()=>{await xs(x),N(!0),Ze.success("Lien copié !"),setTimeout(()=>N(!1),2e3)},S=()=>{const v=encodeURIComponent(`Offre d'emploi : ${j} - ${s}`),w=encodeURIComponent(`Bonjour,
2
3Je te partage cette offre qui pourrait t'intéresser :
4
5${j} chez ${s}
6
7${n}
8
9À bientôt !`);window.open(`mailto:?subject=${v}&body=${w}`,"_self")},F=()=>{window.open(`https://wa.me/?text=${encodeURIComponent(x)}`,"_blank")},q=()=>{window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(n)}`,"_blank")},$=()=>{window.open(`https://www.facebook.com/dialog/send?link=${encodeURIComponent(n)}&app_id=966242223397117&redirect_uri=${encodeURIComponent(n)}`,"_blank")};return e.jsx(Oe,{open:r,onOpenChange:o,children:e.jsxs(We,{className:"sm:max-w-sm",children:[e.jsx(Qe,{children:e.jsx(Ke,{children:"Envoyer cette offre à un ami"})}),e.jsxs("div",{className:"grid grid-cols-2 gap-3 py-4",children:[e.jsxs(g,{variant:"outline",className:"flex flex-col items-center h-20 gap-1",onClick:S,children:[e.jsx(ps,{className:"h-6 w-6 text-destructive"}),e.jsx("span",{className:"text-xs",children:"Email"})]}),e.jsxs(g,{variant:"outline",className:"flex flex-col items-center h-20 gap-1",onClick:F,children:[e.jsx(be,{className:"h-6 w-6 text-green-600"}),e.jsx("span",{className:"text-xs",children:"WhatsApp"})]}),e.jsxs(g,{variant:"outline",className:"flex flex-col items-center h-20 gap-1",onClick:q,children:[e.jsx(Ye,{className:"h-6 w-6"}),e.jsx("span",{className:"text-xs",children:"LinkedIn"})]}),e.jsxs(g,{variant:"outline",className:"flex flex-col items-center h-20 gap-1",onClick:$,children:[e.jsx(be,{className:"h-6 w-6 text-blue-600"}),e.jsx("span",{className:"text-xs",children:"Messenger"})]})]}),e.jsxs(g,{variant:"secondary",className:"w-full gap-2",onClick:M,children:[t?e.jsx(hs,{className:"h-4 w-4"}):e.jsx(fs,{className:"h-4 w-4"}),t?"Copié !":"Copier le lien"]})]})})}function $s(r,o,j,s){const t=S=>S*Math.PI/180,N=t(j-r),x=t(s-o),M=Math.sin(N/2)**2+Math.cos(t(r))*Math.cos(t(j))*Math.sin(x/2)**2;return 2*6371*Math.asin(Math.sqrt(M))}const Rs=new Intl.NumberFormat("fr-FR",{maximumFractionDigits:1}),Se=new Intl.NumberFormat("fr-FR",{maximumFractionDigits:0});function Ms(r){return r<1?`${Math.round(r*1e3)} m`:r<10?`${Rs.format(r)} km`:`${Se.format(r)} km`}function Ps(r){return r<100?Math.round(r/10)*10:r<1e3?Math.round(r/100)*100:r<1e4?Math.round(r/500)*500:r<1e5?Math.round(r/1e3)*1e3:Math.round(r/1e4)*1e4}function Is(r){const o=Ps(r*1e3*5.2);return`${Se.format(o)} Codes civil`}function ve(r){return r.replace(/\r\n/g,`
10`).replace(/\n{2,}/g,`
11`).replace(/\n/g," • ").trim()}function Ls(r){return r.replace(/\r\n/g,`
12`).split(/\n+/).map(o=>
12o.trim()).filter(Boolean)}function Ts({firmId:r,firmName:o}){const{data:j,loading:s}=ks(r||void 0);if(!r||s)return null;const n=j?.recrutement||{},t=P(n.declared_recruitment_duration),N=P(n.declared_interview_count),x=P(n.recruitment_interviewers),M=P(n.response_delay_days),S=P(n.feedback_policy),F=P(n.feedback_policy_description),q=P(n.looking_for_profiles),$=P(n.looking_for_soft_skills),v=[t&&{icon:gs,label:"Durée typique",value:t},N&&{icon:K,label:Number(N)>1?"Entretiens":"Entretien",value:`${N} étape${Number(N)>1?"s":""}`},M&&{icon:Ne,label:"Délai de réponse",value:`${M} j`}].filter(Boolean),w=[x&&{icon:K,label:"Qui rencontre-t-on ?",value:ve(x)},(S||F)&&{icon:Ne,label:"Feedback aux candidats",value:ve([S,F].filter(Cs).join(". "))},q&&{icon:B,label:"Profils recherchés",value:q,chips:!0},$&&{icon:ke,label:"Soft skills attendus",value:$,chips:!0}].filter(Boolean);return v.length===0&&w.length===0?e.jsx(h,{className:"border-dashed",children:e.jsxs(f,{className:"p-5 space-y-3",children:[e.jsxs("p",{className:"text-sm font-medium flex items-center gap-2",children:[e.jsx(B,{className:"h-4 w-4 text-primary","aria-hidden":!0}),"Process de recrutement"]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[o||"L'employeur"," n'a pas encore détaillé son process de recrutement."]}),e.jsx(I,{to:"/espace-recruteur",children:e.jsxs(g,{variant:"outline",size:"sm",className:"w-full gap-2",children:[e.jsx(js,{className:"h-4 w-4"}),"Vous recrutez ici ? Complétez-le"]})})]})}):e.jsxs(h,{children:[e.jsx(y,{className:"pb-2",children:e.jsxs(_,{className:"text-base flex items-center gap-2",children:[e.jsx(B,{className:"h-4 w-4 text-primary","aria-hidden":!0}),"Process de recrutement"]})}),e.jsxs(f,{className:"space-y-3",children:[v.length>0&&e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:v.map(p=>{const L=p.icon;return e.jsxs("div",{className:"rounded-lg bg-muted/50 p-2.5",children:[e.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[e.jsx(L,{className:"h-3.5 w-3.5 text-primary shrink-0","aria-hidden":!0}),e.jsx("div",{className:"text-[10px] uppercase tracking-wide text-muted-foreground leading-none",children:p.label})]}),e.jsx("div",{className:"text-sm font-semibold text-foreground pl-5",children:p.value})]},p.label)})}),w.length>0&&e.jsx("div",{className:"space-y-2.5",children:w.map(p=>{const L=p.icon,z=p.chips?Ls(p.value):[];return e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"text-xs font-medium text-foreground flex items-center gap-1.5",children:[e.jsx(L,{className:"h-3.5 w-3.5 text-primary","aria-hidden":!0}),p.label]}),p.chips&&z.length>0?e.jsx("div",{className:"flex flex-wrap gap-1.5",children:z.map((T,A)=>e.jsx("span",{className:"inline-flex items-center rounded-full bg-primary/8 px-2 py-0.5 text-xs text-foreground border border-primary/15",children:T},A))}):e.jsx("p",{className:"text-sm text-muted-foreground leading-snug",children:p.value})]},p.label)})}),e.jsxs("p",{className:"text-[11px] text-muted-foreground pt-1",children:["Informations déclarées par ",o||"l'employeur","."]})]})]})}function te(r){let o=r.replace(/,\s*-\s/g,`
13- `);return o=o.replace(/([^\n])\s*-\s(?=[A-ZÀÂÉÈÊËÏÎÔÙÛÜŸÇ])/g,`$1
14- `),o}const Ds={cabinet:"Cabinet d'avocats","direction-juridique":"Direction juridique",notariat:"Notariat",huissier:"Huissier / Commissaire de justice",autre:"Autre structure"},Fs=[{key:"culture",label:"Culture",icon:_s},{key:"worklifebalance",label:"Équilibre vie pro/perso",icon:Ce},{key:"management",label:"Management",icon:K},{key:"atmosphere",label:"Ambiance",icon:vs},{key:"wellbeing",label:"Bien-être",icon:ws}];function qs(r){if(!r)return"";const o=new Date(r),s=new Date().getTime()-o.getTime(),n=Math.floor(s/(1e3*60*60*24));return n===0?"Aujourd'hui":n===1?"Hier":n<7?`Il y a ${n} jours`:n<30?`Il y a ${Math.floor(n/7)} semaine${Math.floor(n/7)>1?"s":""}`:`Il y a ${Math.floor(n/30)} mois`}const we=new Map;function ut(){const{slug:r}=Le(),o=Te(),[j]=De(),[s,n]=u.useState(null),[t,N]=u.useState(null),[x,M]=u.useState([]),[S,F]=u.useState([]),[q,$]=u.useState(!0),[,v]=u.useState(!1),[,w]=u.useState(!1),[p,L]=u.useState(!1),{user:z}=Xe(),[T,A]=u.useState(null),[ae,W]=u.useState(null);u.useEffect(()=>{if(!z){A(null);return}let a=!1;return D.from("candidate_profiles").select("home_lat, home_lng").eq("user_id",z.id).maybeSingle().then(({data:i})=>{a||(i?.home_lat!=null&&i?.home_lng!=null?A({lat:Number(i.home_lat),lng:Number(i.home_lng)}):A(null))}),()=>{a=!0}},[z]),u.useEffect(()=>{if(!T){W(null);return}if(t?.latitude!=null&&t?.longitude!=null){W(null);return}const a=s?.city;if(!a){W(null);return}let i=!1;return fetch(`https://api-adresse.data.gouv.fr/search/?q=${encodeURIComponent(a)}&type=municipality&limit=1`).then(d=>d.ok?d.json():null).then(d=>{if(i||!d?.features?.[0])return;const[E,m]=d.features[0].geometry.coordinates;W({lat:m,lng:E})}).catch(()=>{}),()=>{i=!0}},[T,t?.latitude,t?.longitude,s?.city]);const Y=j.get("from_ville")||"",Z=j.get("from_contrat")||"",X=j.get("from_department")||"";u.useEffect(()=>{let a=!1;const i=async m=>{const{data:c}=await D.from("public_job_offers").select(`
15          id, title, city, contract_type, department,
16          experience_years, employer_name, id_firm, published_at
17        `).neq("id",m.id).order("published_at",{ascending:!1}).limit(20);if(!c||a)return;const H=c.map(l=>{let C=0;return Y&&l.city===Y?C+=4:l.city===m.city&&(C+=3),Z&&l.contract_type===Z?C+=3:l.contract_type===m.contract_type&&(C+=2),X&&l.department===X?C+=3:l.department===m.department&&(C+=2),l.id_firm&&l.id_firm===m.id_firm&&(C+=1),{...l,score:C}}).filter(l=>l.score>0&&l.id&&l.title).sort((l,C)=>
17C.score-l.score).slice(0,3),U=[...new Set(H.map(l=>l.id_firm).filter(l=>l!==null))],{data:R}=U.length>0?await D.from("public_firms").select("id, name, slug, logo_url").in("id",U):{data:[]};if(a)return;const J=new Map(R?.map(l=>[l.id,l])||[]),Q=H.filter(l=>l.id!==null&&l.title!==null).map(l=>({id:l.id,title:l.title,city:l.city,contract_type:l.contract_type,department:l.department,experience_years:l.experience_years,employer_name:l.employer_name,id_firm:l.id_firm,published_at:l.published_at,firm:l.id_firm&&J.get(l.id_firm)||null}));a||F(Q)},d=async m=>{const[c,V]=await Promise.all([D.from("public_firms").select("id, name, slug, logo_url, description, is_specialized, employee_count, founding_year, structure_type, cities, latitude, longitude, culture_photos, firm_photos, office_photos, engagement_photos").eq("id",m).maybeSingle(),D.from("public_reviews").select(`
18            id, culture_rating, compensation_rating, pride_rating,
19            wellbeing_rating, management_rating, atmosphere_rating,
20            worklifebalance_rating, would_return, would_recommend,
21            remote_work, turnover, billing_pressure, personal_clients
22          `).eq("id_firm",m)]);a||(c.data&&N(c.data),M(V.data||[]))};return(async()=>{if(!r)return;const m=we.get(r);if(m){n(m),$(!1),v(!!m.id_firm),w(!0);const c=[i(m).finally(()=>!a&&w(!1))];m.id_firm&&c.push(d(m.id_firm).finally(()=>!a&&v(!1))),Promise.all(c).catch(V=>console.error("Background refresh error:",V));return}try{let c=null;if(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(r)){const{data:R,error:J}=await D.from("public_job_offers").select("*").eq("id",r).maybeSingle();J||(c=R)}else{const R=(r.split("-").pop()||"").toLowerCase();if(R.length>=6&&/^[0-9a-f]+$/.test(R)){const{data:J,error:Q}=await D.rpc("find_job_offer_by_short_id",{short_id:R}).maybeSingle();Q?console.error("RPC find_job_offer_by_short_id error:",Q):c=J}}if(a)return;if(!c){$(!1);return}const H={...c,expires_at:c.expires_at||null,benefits:c.benefits||null,company_description:c.company_description||null,litigation_ratio:c.litigation_ratio??null,domains:c.domains||null};we.set(r,H),n(H),$(!1),w(!0);const U=[i(c).finally(()=>!a&&w(!1))];c.id_firm&&(v(!0),U.push(d(c.id_firm).finally(()=>!a&&v(!1)))),Promise.all(U).catch(R=>console.error("Background fetch error:",R))}catch(c){console.error("Error:",c),a||$(!1)}})(),()=>{a=!0}},[r,Y,Z,X]);const{averageRating:$e,ratings:re,badges:le,reviewCount:ie}=u.useMemo(()=>{if(!t||x.length===0)return{averageRating:0,ratings:null,badges:[],reviewCount:0};const a=ls(x),i=is(x);return{averageRating:os(a,t.is_specialized),ratings:cs(x),badges:ns(i),reviewCount:x.length}},[t,x]);if(q)return e.jsxs("div",{className:"container mx-auto px-4 py-8",children:[e.jsx(G,{className:"h-8 w-48 mb-6"}),e.jsxs("div",{className:"grid lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsx(G,{className:"h-12 w-3/4"}),e.jsx(G,{className:"h-64"})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(G,{className:"h-48"}),e.jsx(G,{className:"h-64"})]})]})]});if(!s)return e.jsxs("div",{className:"container mx-auto px-4 py-16 text-center",children:[e.jsx(B,{className:"h-16 w-16 text-muted-foreground mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Offre non trouvée"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"Cette offre n'existe pas ou n'est plus disponible."}),e.jsxs(g,{onClick:()=>o("/offres"),children:[e.jsx(O,{className:"h-4 w-4 mr-2"}),"Retour aux offres"]})]});const ne=xe(s.title,s.id),ce=`https://${es}/offres/${ne}`,k=t?.name||s.employer_name||"Employeur confidentiel",oe=s.structure_type?Ds[s.structure_type]:null,de=t?.structure_type||s.structure_type||"law_firm",me=ms(de),Re=us(de),Me=Fe(s,k),ee=qe(s.salary_range),Pe=ze(s.city)||s.city||"France",ue=s.expires_at||Be(s.published_at),Ie={"@context":"https://schema.org","@type":"JobPosting",title:s.title,description:Me,hiringOrganization:{"@type":"Organization",name:k,...t?.logo_url&&{logo:t.logo_url}},jobLocation:{"@type":"Place",address:{"@type":"PostalAddress",streetAddress:"",addressLocality:s.city||"France",postalCode:Ee(s.city)||"",addressRegion:Pe,addressCountry:"FR"}},employmentType:Ae(s.contract_type),datePosted:s.published_at,...ue&&{validThrough:ue},...ee&&{baseSalary:{"@type":"MonetaryAmount",currency:"EUR",value:{"@type":"QuantitativeValue",minValue:ee.minValue,maxValue:ee.maxValue,unitText:"YEAR"}}},industry:"Services juridiques",directApply:!!s.application_url};return e.jsxs(e.Fragment,{children:[e.jsx(ss,{title:`${s.title} - ${k}`,description:s.description?.substring(0,160)||`Découvrez cette opportunité chez ${k}`,canonical:ce,ogType:"article",structuredData:Ie,geoPlacename:s.city||"France"}),e.jsx(Ss,{open:p,onOpenChange:L,jobTitle:s.title,firmName:k,jobUrl:ce}),e.jsxs("div",{className:"container mx-auto px-4 py-8",children:[e.jsx(rs,{items:[{label:"Offres",href:"/offres"},{label:s.title,href:`/offres/${ne}`}]}),e.jsxs(g,{variant:"ghost",size:"sm",onClick:()=>o("/offres"),className:"mb-6 -ml-2",children:[e.jsx(O,{className:"h-4 w-4 mr-2"}),"Toutes les offres"]}),e.jsxs("div",{className:"grid lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[t?.logo_url?e.jsx("img",{src:t.logo_url,alt:t.name,className:"w-16 h-16 rounded-xl object-contain bg-background border flex-shrink-0"}):e.jsx("div",{className:"w-16 h-16 rounded-xl flex items-center justify-center flex-shrink-0",style:{background:pe(k)},children:e.jsx("span",{className:"text-lg font-bold",style:{color:fe(k)},children:he(k)})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold mb-2 break-words",children:s.title}),e.jsxs("p",{className:"text-lg text-muted-foreground",children:[t?.slug?e.jsx(I,{to:`/cabinet/${t.slug}`,className:"hover:text-primary hover:underline",children:k}):k,oe&&s.structure_type!=="cabinet"&&e.jsxs("span",{className:"text-sm ml-2",children:["• ",oe]})]}),s.published_at&&e.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:["Publié ",qs(s.published_at)]})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.city&&e.jsxs(b,{variant:"secondary",className:"text-sm gap-1.5 py-1.5 px-3",children:[e.jsx(se,{className:"w-3.5 h-3.5"}),s.city]}),T&&(()=>{const a=t?.latitude!=null?Number(t.latitude):ae?.lat,i=t?.longitude!=null?Number(t.longitude):ae?.lng;if(a==null||i==null)return null;const d=$s(T.lat,T.lng,a,i);return e.jsxs(b,{variant:"outline",className:"text-sm gap-1.5 py-1.5 px-3 bg-primary/5 border-primary/20 text-primary",children:[e.jsx(ye,{className:"w-3.5 h-3.5"}),"À ",Ms(d)," de chez toi (≈ ",Is(d),")"]})})(),s.contract_type&&e.jsxs(b,{variant:"outline",className:"text-sm gap-1.5 py-1.5 px-3",children:[e.jsx(B,{className:"w-3.5 h-3.5"}),s.contract_type]}),s.domains&&s.domains.length>0?s.domains.map(a=>e.jsx(b,{variant:"outline",className:"text-sm py-1.5 px-3",children:a},a)):s.department?e.jsx(b,{variant:"outline",className:"text-sm py-1.5 px-3",children:s.department}):null,s.remote_days&&e.jsxs(b,{variant:"outline",className:"text-sm gap-1.5 py-1.5 px-3 bg-green-500/10 text-green-700 border-green-200",children:[e.jsx(ye,{className:"w-3.5 h-3.5"}),Ge(s.remote_days)]}),s.experience_years&&s.experience_years!=="N/A"&&e.jsxs(b,{variant:"outline",className:"text-sm py-1.5 px-3 whitespace-normal text-left max-w-full break-words",children:[s.experience_years," d'expérience"]})]}),s.litigation_ratio!=null&&e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border bg-muted/30",children:[e.jsx(Ce,{className:"h-4 w-4 text-muted-foreground shrink-0"}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground mb-1",children:[e.jsx("span",{children:"Conseil"}),e.jsx("span",{children:"Contentieux"})]}),e.jsxs("div",{className:"h-2 rounded-full bg-muted overflow-hidden flex",children:[e.jsx("div",{className:"h-full bg-primary/60 rounded-l-full",style:{width:`${100-s.litigation_ratio}%`}}),e.jsx("div",{className:"h-full bg-destructive/60 rounded-r-full",style:{width:`${s.litigation_ratio}%`}})]})]}),e.jsxs("span",{className:"text-xs font-medium text-muted-foreground whitespace-nowrap",children:[s.litigation_ratio,"% contentieux"]})]}),s.pitch&&e.jsxs("div",{className:"relative overflow-hidden rounded-xl bg-gradient-to-br from-primary/10 via-primary/5 to-background border border-primary/20 p-6",children:[e.jsx("div",{className:"absolute top-3 left-3 text-4xl opacity-20",children:"⚡"}),e.jsxs("div",{className:"relative",children:[e.jsx("p",{className:"text-xs font-semibold text-primary uppercase tracking-wide mb-2",children:"Le pitch en 10 secondes"}),e.jsxs("blockquote",{className:"text-lg md:text-xl font-medium text-foreground italic leading-relaxed",children:['"',s.pitch,'"']})]})]}),s.company_description&&e.jsxs(h,{children:[e.jsx(y,{className:"pb-3",children:e.jsxs(_,{className:"flex items-center gap-2",children:[e.jsx(bs,{className:"h-5 w-5 text-primary"}),"L'entreprise"]})}),e.jsx(f,{children:e.jsx("div",{className:"prose prose-sm max-w-none text-muted-foreground leading-relaxed rich-text-content",dangerouslySetInnerHTML:{__html:je(s.company_description)}})})]}),(s.missions||s.description)&&e.jsxs(h,{children:[e.jsx(y,{className:"pb-3",children:e.jsxs(_,{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-lg",children:"📝"}),"Vos missions au quotidien"]})}),e.jsx(f,{children:e.jsx("div",{className:"prose prose-sm max-w-none text-muted-foreground whitespace-pre-wrap leading-relaxed",children:te(s.missions||s.description||"")})})]}),(s.candidate_requirements||s.employer_benefits)&&e.jsxs(h,{children:[e.jsx(y,{className:"pb-3",children:e.jsxs(_,{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-lg",children:"🤝"}),"Ce qu'on s'apporte mutuellement"]})}),e.jsx(f,{children:e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[s.candidate_requirements&&e.jsxs("div",{className:"rounded-lg border border-blue-200 bg-blue-50/50 dark:bg-blue-950/20 dark:border-blue-800/50 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx("span",{className:"text-lg",children:"🎯"}),e.jsx("h4",{className:"font-semibold text-blue-900 dark:text-blue-100",children:"Ce que vous apportez"})]}),e.jsx("div",{className:"text-sm text-blue-800 dark:text-blue-200 whitespace-pre-wrap leading-relaxed",children:te(s.candidate_requirements||"")})]}),s.employer_benefits&&e.jsxs("div",{className:"rounded-lg border border-amber-200 bg-amber-50/50 dark:bg-amber-950/20 dark:border-amber-800/50 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx("span",{className:"text-lg",children:"💎"}),e.jsx("h4",{className:"font-semibold text-amber-900 dark:text-amber-100",children:"Ce que nous offrons"})]}),e.jsx("div",{className:"text-sm text-amber-800 dark:text-amber-200 whitespace-pre-wrap leading-relaxed",children:te(s.employer_benefits||"")})]})]})})]}
22),s.benefits&&s.benefits.length>0&&e.jsxs(h,{children:[e.jsx(y,{className:"pb-3",children:e.jsxs(_,{className:"flex items-center gap-2",children:[e.jsx(Ns,{className:"h-5 w-5 text-primary"}),"Avantages en nature"]})}),e.jsx(f,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:Ve(s.benefits).map((a,i)=>e.jsxs(b,{variant:"secondary",className:"text-sm py-2 px-3 gap-1.5 bg-primary/5 border-primary/20",children:[e.jsx("span",{className:"text-base",children:a.icon}),a.label]},i))})})]}),(s.ideal_candidate||s.not_for_you)&&e.jsxs(h,{children:[e.jsx(y,{className:"pb-3",children:e.jsxs(_,{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-lg",children:"🔍"}),"Cartes sur table"]})}),e.jsx(f,{children:e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[s.ideal_candidate&&e.jsxs("div",{className:"rounded-lg border border-green-200 bg-green-50/50 dark:bg-green-950/20 dark:border-green-800/50 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx("span",{className:"flex-shrink-0 w-6 h-6 rounded-full bg-green-500/20 text-green-600 flex items-center justify-center",children:"✓"}),e.jsx("h4",{className:"font-semibold text-green-900 dark:text-green-100",children:"Cette offre est pour vous si..."})]}),e.jsx("div",{className:"text-sm text-green-800 dark:text-green-200 whitespace-pre-wrap leading-relaxed",children:s.ideal_candidate})]}),s.not_for_you&&e.jsxs("div",{className:"rounded-lg border border-red-200 bg-red-50/50 dark:bg-red-950/20 dark:border-red-800/50 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx("span",{className:"flex-shrink-0 w-6 h-6 rounded-full bg-red-500/20 text-red-600 flex items-center justify-center",children:"✕"}),e.jsx("h4",{className:"font-semibold text-red-900 dark:text-red-100",children:"Cette offre n'est pas pour vous si..."})]}),e.jsx("div",{className:"text-sm text-red-800 dark:text-red-200 whitespace-pre-wrap leading-relaxed",children:s.not_for_you})]})]})})]}),s.requirements&&!s.candidate_requirements&&e.jsxs(h,{children:[e.jsx(y,{children:e.jsx(_,{children:"Profil recherché"})}),e.jsx(f,{children:e.jsx("div",{className:"prose prose-sm max-w-none text-muted-foreground whitespace-pre-wrap",children:s.requirements})})]}),s.hiring_process&&s.hiring_process.length>0&&e.jsxs(h,{children:[e.jsx(y,{className:"pb-3",children:e.jsxs(_,{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-lg",children:"📅"}),"Processus de recrutement"]})}),e.jsx(f,{children:e.jsx("div",{className:"flex flex-wrap items-center gap-2",children:s.hiring_process.map((a,i)=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2 bg-muted/50 rounded-full py-1.5 px-3",children:[e.jsx("span",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-primary text-primary-foreground text-xs font-medium flex items-center justify-center",children:i+1}),e.jsx("span",{className:"text-sm",children:a})]}),i<s.hiring_process.length-1&&e.jsx("span",{className:"text-muted-foreground",children:"→"})]},i))})})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(h,{className:"border-primary/20 bg-gradient-to-br from-primary/5 to-background",children:e.jsxs(f,{className:"p-6 space-y-4",children:[He(s.salary_range)&&e.jsxs("div",{className:"text-center pb-4 border-b",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Rémunération"}),e.jsx("p",{className:"text-lg font-semibold",children:Ue(s.salary_range)})]}),e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx(ge,{jobId:s.id,jobTitle:s.title,firmName:t?.name||s.employer_name||"Employeur confidentiel",applicationUrl:s.application_url||""}),t?.slug&&e.jsx(I,{to:`/cabinet/${t.slug}`,className:"w-full",children:e.jsxs(g,{size:"lg",variant:"outline",className:"w-full gap-2",children:[me.discover,e.jsx(O,{className:"h-4 w-4 rotate-180"})]})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ts,{jobId:s.id,size:"lg",className:"flex-1"}),e.jsx(g,{variant:"outline",size:"lg",onClick:()=>L(!0),children:e.jsx(_e,{className:"h-4 w-4"})})]})]})]})}),e.jsx(Ts,{firmId:s.id_firm,firmName:t?.name||s.employer_name}),t&&(()=>{const a=[...t.culture_photos||[],...t.firm_photos||[],...t.office_photos||[],...t.engagement_photos||[]].filter(
22Boolean).slice(0,3);return a.length===0?null:e.jsxs(h,{className:"overflow-hidden",children:[e.jsx(y,{className:"pb-3",children:e.jsxs(_,{className:"text-lg",children:["Découvrir ",t.name]})}),e.jsxs(f,{className:"space-y-2",children:[e.jsx("div",{className:`grid gap-2 ${a.length===1?"grid-cols-1":"grid-cols-2"}`,children:a.map((i,d)=>e.jsx("div",{className:`overflow-hidden rounded-md bg-muted/40 ${a.length>=3&&d===0?"col-span-2 aspect-[16/9]":"aspect-square"}`,children:e.jsx("img",{src:i,alt:`${t.name} — ambiance ${d+1}`,loading:"lazy",decoding:"async",className:"w-full h-full object-cover hover:scale-105 transition-transform duration-500"})},`${i}-${d}`))}),t.slug&&e.jsx(I,{to:`/cabinet/${t.slug}`,className:"block text-xs text-muted-foreground hover:text-primary text-center pt-1",children:"Voir la fiche complète →"})]})]})})(),t&&ie>0&&e.jsxs(h,{children:[e.jsx(y,{className:"pb-3",children:e.jsxs(_,{className:"text-lg flex items-center gap-2",children:[e.jsx(ys,{className:"h-5 w-5 text-yellow-500 fill-yellow-500"}),"Note Barreau-mètre"]})}),e.jsxs(f,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"text-4xl font-bold text-primary",children:$e.toFixed(1)}),e.jsxs("div",{className:"text-sm text-muted-foreground",children:["sur 5",e.jsx("br",{}),e.jsxs("span",{className:"font-medium text-foreground",children:[ie," avis"]})]})]}),re&&e.jsx("div",{className:"space-y-3 pt-2",children:Fs.map(({key:a,label:i,icon:d})=>{const E=re[a]||0;return e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center justify-between text-sm",children:[e.jsxs("span",{className:"flex items-center gap-1.5 text-muted-foreground",children:[e.jsx(d,{className:"h-3.5 w-3.5"}),i]}),e.jsx("span",{className:"font-medium",children:E.toFixed(1)})]}),e.jsx(as,{value:E*20,className:"h-1.5"})]},a)})}),le.length>0&&e.jsx("div",{className:"flex flex-wrap gap-1.5 pt-2",children:le.slice(0,3).map((a,i)=>e.jsx(b,{variant:"outline",className:`text-xs ${a.color==="gold"?"bg-yellow-500/10 text-yellow-700 border-yellow-200":"bg-blue-500/10 text-blue-700 border-blue-200"}`,children:a.type},i))}),e.jsx(I,{to:`/cabinet/${t.slug}`,children:e.jsx(g,{variant:"outline",size:"sm",className:"w-full mt-2",children:"Voir tous les avis"})})]})]}),t&&e.jsxs(h,{children:[e.jsx(y,{className:"pb-3",children:e.jsxs(_,{className:"text-lg",children:["À propos de ",t.name]})}),e.jsxs(f,{className:"space-y-3 text-sm",children:[t.description&&e.jsx("div",{className:"text-muted-foreground line-clamp-4 rich-text-content",dangerouslySetInnerHTML:{__html:je(t.description)}}),e.jsxs("div",{className:"flex flex-wrap gap-x-4 gap-y-2 text-muted-foreground",children:[t.employee_count&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(K,{className:"h-4 w-4"}),Je(t.employee_count,Re.labels.employees)]}),t.founding_year&&e.jsxs("span",{children:["Fondé en ",t.founding_year]})]}),t.cities&&t.cities.length>0&&e.jsxs("div",{className:"flex items-center gap-1.5 text-muted-foreground",children:[e.jsx(se,{className:"h-4 w-4 shrink-0"}),e.jsx("span",{children:t.cities.join(", ")})]}),e.jsx(I,{to:`/cabinet/${t.slug}`,children:e.jsxs(g,{variant:"ghost",size:"sm",className:"w-full gap-2 text-primary",children:[me.discover,e.jsx(O,{className:"h-4 w-4 rotate-180"})]})})]})]})]})]}),e.jsxs("div",{className:"mt-10 flex flex-col sm:flex-row items-center justify-center gap-4 p-6 bg-muted/50 rounded-xl border",children:[e.jsx(ge,{jobId:s.id,jobTitle:s.title,firmName:s.employer_name||t?.name||"",applicationUrl:s.application_url||"",buttonSize:"lg",buttonClassName:"w-full sm:w-auto px-8"}),e.jsxs(g,{variant:"outline",size:"lg",className:"gap-2 w-full sm:w-auto",onClick:()=>L(!0),children:[e.jsx(_e,{className:"h-4 w-4"}),"Partager cette offre"]})]}),S.length>0&&e.jsxs("div",{className:"mt-12 border-t pt-10",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsxs("h2",{className:"text-xl font-semibold flex items-center gap-2",children:[e.jsx(B,{className:"h-5 w-5 text-primary"}),"Ces offres pourraient aussi vous intéresser"]}),e.jsx(I,{to:"/offres",children:e.jsxs(g,{variant:"ghost",size:"sm",className:"gap-1",children:["Voir toutes les offres",e.jsx(O,{className:"h-4 w-4 rotate-180"})]})})]}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-4",children:S.map(a=>{const i=a.firm?.name||a.employer_name||"Employeur confidentiel";return e.jsx(I,{to:`/offres/${xe(a.title,a.id)}`,children:e.jsx(h,{className:"h-full hover:shadow-md transition-shadow group",children:e.jsxs(f,{className:"p-4",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[a.firm?.logo_url?e.jsx("img",{src:a.firm.logo_url,alt:a.firm.name,className:"w-10 h-10 rounded-lg object-contain bg-background border flex-shrink-0"}):e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0",style:{background:pe(i)},children:e.jsx("span",{className:"text-xs font-bold",style:{color:fe(i)},children:he(i)})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"font-medium group-hover:text-primary transition-colors line-clamp-2",children:a.title}),e.jsx("p",{className:"text-sm text-muted-foreground truncate",children:i})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-1.5 mt-3",children:[a.city&&e.jsxs(b,{variant:"secondary",className:"text-xs font-normal gap-1",children:[e.jsx(se,{className:"w-2.5 h-2.5"}),a.city]}),a.contract_type&&e.jsx(b,{variant:"outline",className:"text-xs font-normal",children:a.contract_type}),a.experience_years&&e.jsxs(b,{variant:"outline",className:"text-xs font-normal gap-1 whitespace-normal break-words text-left items-start leading-snug max-w-full",children:[e.jsx(ke,{className:"w-2.5 h-2.5 shrink-0 mt-0.5"}),e.jsx("span",{className:"min-w-0 break-words",children:a.experience_years})]})]})]})})},a.id)})})]})]}),e.jsx(ds,{contextPage:"job",trigger:"time",baseDelayMs:15e3})]})}
22export{ut 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.