import{b as e,u as t,d as a,e as r,f as o}from"./server.mjs";const G=()=>{const{locale:s}=e(),n=t(),i="https://khalejauto.sa",c="khalej Auto",p="https://khalejauto.sa/_nuxt/mainLogo-rtl.BJ0Ys74P.svg",h={"@context":"https://schema.org","@type":"Organization","@id":"https://khalejauto.sa/#organization",name:"Khalej Auto",alternateName:"خليج أوتو",description:"Khalej Auto - Your first destination for buying new and used cars in Saudi Arabia. Browse the widest collection of cars with the best prices and exclusive offers.",url:"https://khalejauto.sa",logo:{"@type":"ImageObject",url:"https://khalejauto.sa/_nuxt/mainLogo-rtl.BJ0Ys74P.svg",width:200,height:60},email:"info@khalejauto.sa",telephone:"8001111873",address:{"@type":"PostalAddress",streetAddress:"Riyadh",addressLocality:"Riyadh",addressRegion:"Riyadh Province",postalCode:"12345",addressCountry:"SA"},contactPoint:{"@type":"ContactPoint",telephone:"8001111873",contactType:"customer service",availableLanguage:["Arabic","English"]},sameAs:["https://www.instagram.com/khalejauto","https://www.facebook.com/profile.php?id=61561189031205","https://www.youtube.com/@khalejauto3359"]},d={"@context":"https://schema.org","@type":"WebSite","@id":"https://khalejauto.sa/#website",name:"Khalej Auto",description:"Khalej Auto - Your first destination for buying new and used cars in Saudi Arabia. Browse the widest collection of cars with the best prices and exclusive offers.",url:"https://khalejauto.sa",publisher:{"@id":"https://khalejauto.sa/#organization"},potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:"https://khalejauto.sa/search?q={search_term_string}"},"query-input":"required name=search_term_string"}},l=()=>{var e,t,a;return null!=(a="ar"===s.value?null==(e=n.websiteData)?void 0:e.meta_tag_description_ar:null==(t=n.websiteData)?void 0:t.meta_tag_description_en)?a:"ar"===s.value?"وجهتك الأولى لاستكشاف أوسع مجموعة من السيارات":"Your first destination to explore the widest range of cars"},_=()=>{var e,t,a;return null!=(a="ar"===s.value?null==(e=n.websiteData)?void 0:e.meta_tag_keyword_ar:null==(t=n.websiteData)?void 0:t.meta_tag_keyword_en)?a:void 0},u=()=>"ar"===s.value?"خليج أوتو - أوسع مجموعة من السيارات":"Khalej Auto - Widest Range of Cars",b=(e="")=>{const t=e.startsWith("/")?e:`/${e}`;return`${i}${t}`},k=(e=[])=>e&&0!==e.length?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map(((e,t)=>{const a={"@type":"ListItem",position:t+1,name:e.name};return e.url&&(a.item=`${i}${e.url}`),a}))}:null,j=(e={})=>{const{title:t=u(),description:a=l(),url:r=i,image:o=p,type:n="business.business"}=e;return[{property:"og:title",content:t},{property:"og:site_name",content:c},{property:"og:url",content:r},{property:"og:description",content:a},{property:"og:type",content:n},{property:"og:image",content:o},{property:"og:locale",content:"ar"===s.value?"ar_SA":"en_US"}]};return{organizationSchema:h,websiteSchema:d,getDefaultDescription:l,getDefaultKeywords:_,getDefaultTitle:u,getCanonicalUrl:b,getOpenGraphMeta:j,generateBreadcrumbSchema:k,setPageSeo:(e={})=>{const{title:t,description:n,keywords:c,meta_desc_ar:p,meta_desc_en:g,meta_keyword_ar:m,meta_keyword_en:y,path:w="",arPath:f,enPath:v,image:A,type:S,additionalSchemas:$=[],breadcrumbs:x=[]}=e,P=b(w),D=n||l(),L=c||_(),C=j({title:t,description:D,url:P,image:A,type:S}),B=k(x),K=[h,d,...B?[B]:[],...$],R="ar"===s.value?p||D:g||D,Y="ar"===s.value?m||L:y||L;a({title:t||u(),description:R,keywords:Y,...C.reduce(((e,t)=>(e[t.property.replace("og:","")]=t.content,e)),{}),twitterCard:"summary_large_image",twitterSite:"@khalejauto",twitterCreator:"@khalejauto"}),r({...C.reduce(((e,t)=>(e[t.property]=t.content,e)),{}),description:R,keywords:Y});const z="ar"===s.value?w:w.replace(/^\/en/,""),O=f||z;o({link:[{rel:"canonical",href:P},{rel:"alternate",hreflang:"ar",href:`${i}${O}`},{rel:"alternate",hreflang:"en",href:`${i}${v||`/en${z}`}`},{rel:"alternate",hreflang:"x-default",href:`${i}${O}`}],script:K.map(((e,t)=>({key:`schema-${e["@type"]||t}`,type:"application/ld+json",innerHTML:JSON.stringify(e)})))})},baseUrl:i,siteName:c,logoUrl:p}};export{G};
