PageSourceSearch

https://gatewayapi.com/_nuxt/Cp2Q69UA.js

js gatewayapi.com collected 2026-09-24 20:18:18 UTC 2,342 bytes, 1 lines download raw bytes

1import{u as v,D as x}from"./9cwIP9nD.js";import{d as _,H as k,Y as w,j as E,E as D,m as b,b as C,c as P,e as m,z as r,A,n as i,a0 as H,o as d}from"./CEaaJ6Xr.js";import{u as N}from"./Chn-iteA.js";import{u as $,d as B}from"./Pf3ay-y9.js";import"./DRjfsUA9.js";import"./BhRCQju3.js";import"./CBkzx4Ym.js";import"./BzYuS920.js";import"./BQKyk22G.js";import"./DwKHORRv.js";import"./CwaLtUde.js";import"./DlJJf0Lg.js";import"./Du91AM7F.js";const F={key:0,class:"pt-14 pb-[100px] px-3 md:px-5 xl:px-0 lg:pb-40"},g="home",Q=_({__name:"index",async setup(S){let s,c;const{locale:l}=k({useScope:"global"}),{fetchPage:h}=v(),t=r(()=>l.value),f=w(),{data:n,pending:y}=([s,c]=E(async()=>A(`page-${g}-${l.value}`,async()=>{try{const e=await h(g,t.value);if(e&&t.value!=="en"){const a=e.seo;if(a?.opengraphUrl?.includes("/en/")||a?.canonical?.includes("/en/")||!a?.opengraphUrl?.includes(`/${t.value}/`)&&!a?.canonical?.includes(`/${t.value}/`)||!1)throw i({statusCode:404,statusMessage:`Page not found in ${t.value}`})}return e}catch(e){throw e?.statusCode===404?e:i({statusCode:404,statusMessage:"Page Not Found"})}},{getCachedData(e){const a=H(e);if(a.data.value!==null)return a.data.value},watch:[l]})),s=await s,c(),s),u=r(()=>n.value);D([y,()=>n.value],([e,a])=>{if(!e&&!a&&!f.isHydrating)throw i({statusCode:404,statusMessage:"Page Not Found"})},{immediate:!0});const o=r(()=>{const e=u.value;let a=null;return e?.template?.pagebuilder?.sections?a=e.template.pagebuilder.sections:e?.pageElements?.sectionElements&&(a=e.pageElements.sectionElements),a?.length?a.filter(p=>p!==null):[]});return b({link:[{key:"hreflang:en-US",rel:"alternate",hreflang:"en-US",href:"https://gatewayapi.com/",tagPriority:"critical"},{key:"hreflang:da-DK",rel:"alternate",hreflang:"da-DK",href:"https://gatewayapi.com/da/",tagPriority:"critical"},{key:"hreflang:de-DE",rel:"alternate",hreflang:"de-DE",href:"https://gatewayapi.com/de/",tagPriority:"critical"},{key:"hreflang:x-default",rel:"alternate",hreflang:"x-default",href:"https://gatewayapi.com/",tagPriority:"critical"}]}),N(r(()=>n.value?.seo)),$([B({itemListElement:(n.value?.seo?.breadcrumbs??[]).map((e,a)=>({position:a+1,name:e.text,item:e.url}))})]),(e,a)=>u.value?(d(),C("div",F,[o.value&&o.value.length?(d(),P(x,{key:0,elements:o.value},null,8,["elements"])):m("",!0)])):m("",!0)}});export{Q as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.