import{at as k,u as A,q as L,l as U,au as x}from"./BTnWyqLY.js";const T={"https://www.niagahoster.co.id/":"Niagahoster"},w=t=>T[t]||"Hostinger",u=t=>t==="Niagahoster",h=()=>k,W=t=>{const{siteUrl:e,streetAddress:n,addressLocality:i,postalCode:a,addressCountry:o,email:p,contactPage:d,facebook:s,twitter:c,youtubeLinks:l}=t,r=w(e);return{"@type":"Organization",name:r,legalName:u(r)?"Niagahoster":"Hosting Hostinger",foundingDate:u(r)?"2013":"2004",logo:u(r)?h().imageBlue:`${e}/logo-400x400.png`,image:u(r)?h().imageBlue:`${e}/logo-400x400.png`,url:e,address:{"@type":"PostalAddress",streetAddress:n,addressLocality:i,postalCode:a,addressCountry:o},contactPoint:{"@type":"ContactPoint",contactType:"Sales",email:p,url:d},sameAs:[s,c,...l]}},$=t=>{const{siteUrl:e,facebook:n,twitter:i,youtubeLinks:a}=t,o=w(e);return{"@type":"WebSite",name:o,url:e,"@id":`${e}#website`,image:{"@type":"ImageObject",url:u(o)?h().imageBlue:`${e}/logo-400x400.png`,height:"400",width:"400"},sameAs:[n,i,...a]}},D=t=>{const{pageUrl:e,lang:n,pageTitle:i,pageDescription:a,siteUrl:o}=t;return{"@type":"WebPage","@id":`${e}#webpage`,url:e,inLanguage:n,name:i,description:a,isPartOf:{"@id":`${o}#website`},about:{"@id":`${o}#organization`}}},O=(t,e,n="Product")=>{const{productType:i,pageTitle:a,altProductType:o,pageDescription:p}=t,d=w(t.siteUrl);return{"@type":n,name:i||a,alternateName:o||void 0,description:p,brand:{"@type":"Brand",name:d},offers:e}},B=t=>({"@type":"FAQPage",mainEntity:t.map(({question:e,answer:n})=>({"@type":"Question",name:e,acceptedAnswer:{"@type":"Answer",text:n}}))}),z=()=>{const{siteUrl:t,pageName:e,fullPageUrl:n,language:i,themeData:a}=A(),{t:o}=L();return{getHead:(s,c,l=!1,r=!1)=>{const g=U({title:s,meta:[{charset:"utf-8"},{hid:"description",name:"description",content:c},{hid:"og:title",property:"og:title",content:s},{hid:"og:description",property:"og:description",content:c},{hid:"twitter:title",property:"twitter:title",content:s},{hid:"twitter:description",property:"twitter:description",content:c},{name:"page-name",content:e.value}]});return l&&(g.value.meta=[...g.value.meta,{name:"robots",content:"index,follow"}]),r&&(g.value.meta=[...g.value.meta,{name:"robots",property:"robots",content:"noindex, nofollow"}]),g.value},getJsonld:({title:s,description:c,faqs:l,products:r,productType:g,offerName:f,altProductName:N,schemaType:P})=>{const m={lang:i.value,siteUrl:t.value,facebook:a.value.facebookLink,twitter:a.value.twitterLink,youtubeLinks:a.value.youtubeLinks,pageUrl:n.value,pageTitle:s,pageDescription:c,offerName:f,productType:g,altProductName:N},y=[$(m),D(m)];if(r&&Array.isArray(r)){const S=r.map(b=>{var v;return{"@type":"AggregateOffer",name:f||o(((v=x(b.tableSlug,b.productSlug,a.value.language.code,e.value))==null?void 0:v.title)||"")||"",priceCurrency:a.value.currency.code,lowPrice:b.price.purchase}});y.push(O(m,S,P))}return l&&y.push(B(l)),{"@context":"https://schema.org","@graph":y}}}};export{$ as a,D as b,O as c,W as g,z as u};