import{j as e,H as _}from"./vendor-react-f9GpqhU8.js";import{l as S}from"./index-YIaDEtYb.js";const L=r=>{try{return JSON.stringify(r).replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/[\u0000-\u001f\u007f-\u009f]/g,"")}catch(s){return S.error("Erreur JSON.stringify:",s),"{}"}},E=({title:r,description:s,image:g="https://akrlyzmfszumibwgocae.supabase.co/storage/v1/object/public/images/emergences-hypnose.webp",url:w,type:o="website",publishedTime:u,modifiedTime:h,author:a,keywords:x=[],robots:j="index, follow",structuredData:i,breadcrumbs:d=[]})=>{const c="Émergences - le blog de NovaHypnose",m=r===c?r:`${((t,n=45)=>t.length<=n?t:t.substring(0,n).trim()+"...")(r)} | ${c}`,y=(t=>{try{const n=new URL(t),f=n.pathname==="/"?"/":n.pathname.replace(/\/$/,"");return`${n.protocol}//${n.host}${f}`}catch{return t}})(w||window.location.href),l=(t=>{if(t.length>=70&&t.length<=160)return t;if(t.length<70){const p=" Découvrez nos techniques d'hypnose ericksonienne à Paris pour améliorer votre bien-être.",b=70-t.length;return b>p.length?t+p:t+p.substring(0,b)}return t.length>160?t.substring(0,157)+"...":t})(s);return e.jsxs(_,{children:[e.jsx("title",{children:m}),e.jsx("meta",{name:"description",content:l}),e.jsx("meta",{name:"robots",content:j}),e.jsx("meta",{name:"googlebot",content:j}),x.length>0&&e.jsx("meta",{name:"keywords",content:x.join(", ")}),a&&e.jsx("meta",{name:"author",content:a}),e.jsx("meta",{property:"og:type",content:o}),e.jsx("meta",{property:"og:title",content:m}),e.jsx("meta",{property:"og:description",content:l}),e.jsx("meta",{property:"og:image",content:g}),e.jsx("meta",{property:"og:url",content:y}),e.jsx("meta",{property:"og:site_name",content:c}),o==="article"&&u&&e.jsx("meta",{property:"article:published_time",content:u}),o==="article"&&h&&e.jsx("meta",{property:"article:modified_time",content:h}),o==="article"&&a&&e.jsx("meta",{property:"article:author",content:a}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:title",content:m}),e.jsx("meta",{name:"twitter:description",content:l}),e.jsx("meta",{name:"twitter:image",content:g}),e.jsx("link",{rel:"canonical",href:y}),i&&(Array.isArray(i)?i.map((t,n)=>e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:L(t)}},n)):e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:L(i)}}))]})};export{E as S};