import{b as O,u as T,d as q,e as H,f as J}from"../server.mjs";const G=()=>{const{locale:a}=O(),c=T(),r="https://khalejauto.sa",m="khalej Auto",y="https://khalejauto.sa/_nuxt/mainLogo-rtl.BJ0Ys74P.svg",w={"@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"]},f={"@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=()=>(a.value==="ar"?c.websiteData?.meta_tag_description_ar:c.websiteData?.meta_tag_description_en)??(a.value==="ar"?"وجهتك الأولى لاستكشاف أوسع مجموعة من السيارات":"Your first destination to explore the widest range of cars"),_=()=>(a.value==="ar"?c.websiteData?.meta_tag_keyword_ar:c.websiteData?.meta_tag_keyword_en)??void 0,u=()=>a.value==="ar"?"خليج أوتو - أوسع مجموعة من السيارات":"Khalej Auto - Widest Range of Cars",b=(e="")=>{const t=e.startsWith("/")?e:`/${e}`;return`${r}${t}`},k=(e=[])=>!e||e.length===0?null:{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((t,i)=>{const s={"@type":"ListItem",position:i+1,name:t.name};return t.url&&(s.item=`${r}${t.url}`),s})},j=(e={})=>{const{title:t=u(),description:i=l(),url:s=r,image:p=y,type:h="business.business"}=e;return[{property:"og:title",content:t},{property:"og:site_name",content:m},{property:"og:url",content:s},{property:"og:description",content:i},{property:"og:type",content:h},{property:"og:image",content:p},{property:"og:locale",content:a.value==="ar"?"ar_SA":"en_US"}]};return{organizationSchema:w,websiteSchema:f,getDefaultDescription:l,getDefaultKeywords:_,getDefaultTitle:u,getCanonicalUrl:b,getOpenGraphMeta:j,generateBreadcrumbSchema:k,setPageSeo:(e={})=>{const{title:t,description:i,keywords:s,meta_desc_ar:p,meta_desc_en:h,meta_keyword_ar:C,meta_keyword_en:L,path:d="",arPath:z,enPath:B,image:M,type:R,additionalSchemas:U=[],breadcrumbs:Y=[]}=e,S=b(d),g=i||l(),A=s||_(),v=j({title:t,description:g,url:S,image:M,type:R}),P=k(Y),E=[w,f,...P?[P]:[],...U],$=a.value==="ar"?p||g:h||g,D=a.value==="ar"?C||A:L||A;q({title:t||u(),description:$,keywords:D,...v.reduce((o,n)=>(o[n.property.replace("og:","")]=n.content,o),{}),twitterCard:"summary_large_image",twitterSite:"@khalejauto",twitterCreator:"@khalejauto"}),H({...v.reduce((o,n)=>(o[n.property]=n.content,o),{}),description:$,keywords:D});const x=a.value==="ar"?d:d.replace(/^\/en/,""),K=z||x,I=B||`/en${x}`;J({link:[{rel:"canonical",href:S},{rel:"alternate",hreflang:"ar",href:`${r}${K}`},{rel:"alternate",hreflang:"en",href:`${r}${I}`},{rel:"alternate",hreflang:"x-default",href:`${r}${K}`}],script:E.map((o,n)=>({key:`schema-${o["@type"]||n}`,type:"application/ld+json",innerHTML:JSON.stringify(o)}))})},baseUrl:r,siteName:m,logoUrl:y}};export{G as u};
