1import{u as _,_ as g}from"./COzqNNnf.js";import{cq as h,cv as r,ab as i,cG as b,ce as s,a7 as w,a8 as M,cp as k,bz as v}from"./BPlt5jNJ.js";import{u as x}from"./D8EIqSaY.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4644c0e5-3169-48e7-a9c7-43c1fefce7b5",e._sentryDebugIdIdentifier="sentry-dbid-4644c0e5-3169-48e7-a9c7-43c1fefce7b5")}catch{}{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:splash-application":!0})}const E={__name:"index",async setup(e){let t,u;const a=h(),c=k(),f=r("countryCode",()=>a.query["cloudfront-viewer-country"]??c["cloudfront-viewer-country"]??void 0),o=r("customHostName",()=>c["x-splash-host"]);if(!o.value)throw i({statusCode:404,message:"not found"});x();let n=null;o.value?n=a.params.route?a.params.route[0]:null:n=a.params.route?a.params.route[1]:null;const d=["get-customhost",o.value,n].filter(Boolean).join("-");r("data-key",()=>d);const{data:l,status:p,error:m}=([t,u]=b(()=>_("/api/campaign",{key:d,method:"POST",body:{custom:o.value}},"$Crwkd75KBO")),t=await t,u(),t);if(p.value==="error")throw i({statusCode:404,message:m.value});return(C,B)=>{const y=g;return s(l)?(v(),w(y,{key:0,name:"campaign","campaign-data":s(l),"country-code":s(f),"custom-host-name":s(o),path:s(n)},null,8,["campaign-data","country-code","custom-host-name","path"])):M("",!0)}}};export{E 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.