1import{u as w,a9 as _,a2 as T,h as l,aa as U}from"./BLCcsAk0.js";import{u as N,a as b}from"./CJlxKTOT.js";function A(e,r){const{title:m,titleTemplate:g,...f}=e;return w({title:m,titleTemplate:g,_flatMeta:f},{...r,transform(t){const n=_({...t._flatMeta});return delete t._flatMeta,{...t,meta:n}}})}const a={siteName:"Hotel El Cortés",siteUrl:"https://elcortes.mx",defaultTitle:"Hotel El Cortés",shortDescription:"Boutique hotel in Mexico City",longDescription:"El Cortés is a boutique hotel in Roma Norte, Mexico City, where historic character and contemporary hospitality meet.",ogImagePath:"/img/og_image.jpg",contact:{email:"[email protected]",phone:"+525588990540",streetAddress:"Colima 235, Roma Norte",postalCode:"06700",city:"Ciudad de México",countryCode:"MX"}},h={"es-mx":{htmlLang:"es-MX",ogLocale:"es_MX",hreflang:"es-MX"},"en-us":{htmlLang:"en-US",ogLocale:"en_US",hreflang:"en-US"}},u=e=>new URL(e||"/",`${a.siteUrl}/`).toString(),c=e=>typeof e=="string"?e:Array.isArray(e)?U(e):"",S=e=>e.toLowerCase().includes(a.siteName.toLowerCase())?e||a.defaultTitle:`${e} â ${a.siteName}`,k=(e,r={})=>{const m=T(),g=N(),f=b(),t=l(()=>{var o;return((o=e.value)==null?void 0:o.data)||{}}),n=l(()=>h[g.value]||h["en-us"]),p=l(()=>S(c(t.value.meta_title)||c(t.value.page_title)||c(t.value.title)||r.titleFallback||a.defaultTitle)),d=l(()=>c(t.value.meta_description)||r.descriptionFallback||a.shortDescription),v=l(()=>{var i;const o=((i=t.value.meta_image)==null?void 0:i.url)||a.ogImagePath;return u(o)}),x=l(()=>u(m.path)),C=l(()=>r.index===!1?"noindex, nofollow":"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1");A({title:()=>p.value,description:()=>d.value,robots:()=>C.value,ogTitle:()=>p.value,ogDescription:()=>d.value,ogType:r.ogType||"website",ogImage:()=>v.value,ogImageAlt:a.siteName,ogUrl:()=>x.value,ogSiteName:a.siteName,ogLocale:()=>n.value.ogLocale,twitterCard:"summary_large_image",twitterTitle:()=>p.value,twitterDescription:()=>d.value,twitterImage:()=>v.value}),w(()=>{var L;const o=[e.value,...f.value].filter(Boolean),i=o.map(s=>{const M=h[s.lang];return!M||!s.url?null:{rel:"alternate",hreflang:M.hreflang,href:u(s.url)}}).filter(Boolean),y=(L=o.find(s=>s.lang==="en-us"))==null?void 0:L.url;return{htmlAttrs:{lang:n.value.htmlLang},link:[{rel:"canonical",href:x.value},...i,{rel:"alternate",hreflang:"x-default",href:u(y||"/")}]}})};export{a as s,k as u};
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.