import{t as S,m as k,j as e,H as O}from"./index-XAQEFxR0.js";const H=({title:j,description:x,keywords:g,image:w,url:y,schema:c,type:h="website",ignoreOverrides:u=!1})=>{const{seoSettings:n,seoOverrides:m}=S();let l=window.location.pathname;try{l=k().pathname}catch{}const t=!u&&m?m[l]:null,s=n.site_title,o=(t==null?void 0:t.title)||j||s,a=o!==s?o.includes(s.split("|")[0].trim())?o:`${o} | ${s.split("|")[0].trim()}`:s,i=(t==null?void 0:t.description)||x||n.site_description,d=(t==null?void 0:t.keywords)||g||n.site_keywords,r=(t==null?void 0:t.og_image)||w||n.og_image,p=y||window.location.href,f=n.twitter_handle||"@infoseclabs";return e.jsxs(O,{children:[e.jsx("title",{children:a}),e.jsx("meta",{name:"description",content:i}),e.jsx("meta",{name:"keywords",content:d}),e.jsx("meta",{property:"og:type",content:h}),e.jsx("meta",{property:"og:url",content:p}),e.jsx("meta",{property:"og:title",content:a}),e.jsx("meta",{property:"og:description",content:i}),e.jsx("meta",{property:"og:image",content:r}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:creator",content:f}),e.jsx("meta",{name:"twitter:title",content:a}),e.jsx("meta",{name:"twitter:description",content:i}),e.jsx("meta",{name:"twitter:image",content:r}),e.jsx("link",{rel:"canonical",href:p}),(t==null?void 0:t.schema)||c&&e.jsx("script",{type:"application/ld+json",children:JSON.stringify((t==null?void 0:t.schema)||c)})]})};export{H as S};
