import{a as e,n as t}from"./jsx-runtime-B-hcVAMW.js";var n=e(t(),1),r=`Asiatic Talents`;function i(e,t,n,r){let i=document.head.querySelector(e);i||(i=document.createElement(`meta`),i.setAttribute(t,n),document.head.appendChild(i)),i.setAttribute(`content`,r)}function a(e,t){let n=document.head.querySelector(`link[rel="${e}"]`);n||(n=document.createElement(`link`),n.setAttribute(`rel`,e),document.head.appendChild(n)),n.setAttribute(`href`,t)}function o({title:e,description:t,canonicalPath:o,image:s,type:c=`website`,noindex:l=!1,structuredData:u=null}){(0,n.useEffect)(()=>{let n=e?`${e} · ${r}`:r;document.title=n,t&&(i(`meta[name="description"]`,`name`,`description`,t),i(`meta[property="og:description"]`,`property`,`og:description`,t)),i(`meta[property="og:title"]`,`property`,`og:title`,n),i(`meta[property="og:type"]`,`property`,`og:type`,c),i(`meta[property="og:site_name"]`,`property`,`og:site_name`,r),i(`meta[name="twitter:card"]`,`name`,`twitter:card`,`summary_large_image`),s&&i(`meta[property="og:image"]`,`property`,`og:image`,s);let d=`${window.location.origin}${o??window.location.pathname}`;a(`canonical`,d),i(`meta[property="og:url"]`,`property`,`og:url`,d),i(`meta[name="robots"]`,`name`,`robots`,l?`noindex, nofollow`:`index, follow`);let f=`page-structured-data`;if(document.getElementById(f)?.remove(),u){let e=document.createElement(`script`);e.id=f,e.type=`application/ld+json`,e.textContent=JSON.stringify(u),document.head.appendChild(e)}return()=>{document.getElementById(f)?.remove()}},[e,t,o,s,c,l,u])}function s(e){let t={hourly:`HOUR`,daily:`DAY`,weekly:`WEEK`,monthly:`MONTH`,yearly:`YEAR`},n={"@context":`https://schema.org`,"@type":`JobPosting`,title:e.title,description:e.responsibilities??e.summary??e.title,datePosted:e.published_at,validThrough:e.application_deadline,employmentType:`FULL_TIME`,totalJobOpenings:e.vacancies,hiringOrganization:{"@type":`Organization`,name:e.employer_name??r},jobLocation:{"@type":`Place`,address:{"@type":`PostalAddress`,addressCountry:e.country,...e.city?{addressLocality:e.city}:{}}}};return e.salary.amount!==null&&e.salary.currency!==null&&(n.baseSalary={"@type":`MonetaryAmount`,currency:e.salary.currency,value:{"@type":`QuantitativeValue`,value:e.salary.amount/100,unitText:t[e.salary.period]??`MONTH`}}),n}function c(e){return{"@context":`https://schema.org`,"@type":`Organization`,name:e.name,url:window.location.origin,...e.email?{email:e.email}:{},...e.phone?{telephone:e.phone}:{},...e.address?{address:{"@type":`PostalAddress`,streetAddress:e.address}}:{}}}export{c as n,o as r,s as t};