1import{n as e}from"./CautVS1O.js";import{a as t,o as n}from"./C5XEP25_.js";import{D as r,Kt as i,Ut as a,b as o,g as s,mt as c}from"./D81wCuRW.js";import{t as l}from"./BJkS-aAd.js";import{g as u,l as d,v as f}from"./65HuNorj.js";import{t as p}from"./5VJOeebp.js";import{n as m,t as h}from"./C5mjGa4V.js";var g={class:`main container-1400 container`,"data-page":`promotion`,key:`promotion-page`},_={__name:`index`,async setup(_){let v,y,{locale:b}=e(),x=n().public.SITE_URL,S=l(`page`);S.value=!0;let C=l(`localization`),w=f(),T=`promotion-page-${b.value}-${JSON.stringify(w.query)}`,E=l(`last-good-${T}`,()=>null),D=t(),O=!!w.query.preview,{data:k,error:A,pending:j}=([v,y]=i(()=>d(`/${b.value}/api/promotion-page`,{query:{lang:b.value,...w.query},key:T,dedupe:`defer`,server:!O},`$VXdvOo1hk9`)),v=await v,y(),v),M=D.payload.data[T]||D.static.data[T]||E.value;(!k.value||A.value)&&M&&(k.value=M),a(()=>{k.value?.page?.length&&(E.value=k.value)});let N=s(()=>k.value?.page?.length?k.value:E.value);if(!N.value&&!j.value&&!O)throw u({statusCode:404,statusMessage:`Page Not Found`,fatal:!0});return h(()=>N.value?.seo,()=>({title:C.value?.txt_promotion_page_title||`Promotion - SIAM CENTER`,description:C.value?.txt_promotion_page_description||``})),m(()=>({"@context":`https://schema.org`,"@type":`CollectionPage`,name:C.value?.txt_promotion_page_title||`Promotion - SIAM CENTER`,url:`${x}/${b.value}/promotion`,isPartOf:{"@type":`WebSite`,name:`SIAM CENTER`,url:x},breadcrumb:{"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Home`,item:`${x}/${b.value}`},{"@type":`ListItem`,position:2,name:C.value?.txt_promotion||`Promotion`,item:`${x}/${b.value}/promotion`}]}})),(e,t)=>{let n=p;return c(),o(`main`,g,[r(n,{data:{page:N.value?.page,cloudfront:N.value?.cloudfront,title_page:N.value?.title_page}},null,8,[`data`])])}}};export{_ 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.