1import{_ as R}from"./index.scss.63396e1f.js";import{_ as V}from"./ContentTypeLoader.vue.1a2d6f8f.js";import{c as q,h as F,t as L,k as T}from"./entry.1ceaf2d7.js";import{u as A}from"./useVoyadoElevateLandingPage.a5f00a78.js";import{u as B}from"./useBreadcrumbs.f265b3ff.js";import{j as P,a5 as N,k as b,u as g,W as p,X as _,N as x,M as C,a9 as O,a8 as w,$ as z}from"./swiper-vue.774ea002.js";import"./arrow-right.4eeb3cda.js";import"./nuxt-icon.6df70d1f.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./landingPage.1d2989d7.js";var v={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getDocuments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"predicates"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"lang"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"documents"},name:{kind:"Name",value:"prismicPages"},arguments:[{kind:"Argument",name:{kind:"Name",value:"predicates"},value:{kind:"Variable",name:{kind:"Name",value:"predicates"}}},{kind:"Argument",name:{kind:"Name",value:"lang"},value:{kind:"Variable",name:{kind:"Name",value:"lang"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalResultsSize"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:183}};v.loc.source={body:`query getDocuments($predicates: [String!]!, $lang: String!){ 2 documents: prismicPages(predicates: $predicates, lang: $lang) { 3 totalResultsSize 4 pages { 5 data 6 } 7 } 8} 9`,name:"GraphQL request",locationOffset:{line:1,column:1}};function f(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(a){f(a,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(a){f(a,n)}),e.definitions&&e.definitions.forEach(function(a){f(a,n)})}var S={};(function(){v.definitions.forEach(function(n){if(n.name){var i=new Set;f(n,i),S[n.name.value]=i}})})();function D(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function Q(e,n){var i={kind:e.kind,definitions:[D(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=S[n]||new Set,l=new Set,o=new Set;for(a.forEach(function(t){o.add(t)});o.size>0;){var r=o;o=new Set,r.forEach(function(t){if(!l.has(t)){l.add(t);var c=S[t]||new Set;c.forEach(function(k){o.add(k)})}})}return l.forEach(function(t){var c=D(e,t);c&&i.definitions.push(c)}),i}Q(v,"getDocuments");const I={key:0},j={key:0,class:"content-types"},ee=P({__name:"test-preview",async setup(e){let n,i;const a=q(),l=T(),{data:o}=([n,i]=N(()=>{var s;return F({query:v,clientId:"customer",variables:{predicates:[`[at(document.id, "${a.query.documentId}")]`],lang:l.public.prismicLocale},context:{headers:(s=a.query)!=null&&s.token?{"prismic-ref":a.query.token}:null}})}),n=await n,i(),n),r=b(()=>{var s,y,d,m,u;return(u=(m=(d=(y=(s=o.value)==null?void 0:s.documents)==null?void 0:y.pages)==null?void 0:d[0])==null?void 0:m.data)==null?void 0:u.data});let t=r.value.url_key||r.value.uid||"home";t==="home"?t="/":t=`/${t}`;const{fetchLandingPage:c}=A();[n,i]=N(async()=>L("preview",async()=>(await c(t),{}))),await n,i();const k=b(()=>{var s;return((s=r.value)==null?void 0:s.page_title)||""}),{setBreadcrumbs:$}=B();return $({label:k.value,parents:[]}),(s,y)=>{var u;const d=R,m=V;return g(r)?(p(),_("div",I,[x(d,{class:"container"}),(u=g(r))!=null&&u.slices?(p(),_("div",j,[(p(!0),_(C,null,O(g(r).slices,(h,E)=>(p(),z(m,{key:`${E}-${h.slice_type}`,"content-type":h},null,8,["content-type"]))),128))])):w("",!0)])):w("",!0)}}});
9export{ee 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.