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