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