1import{a as y,_ as N}from"./DyPskOLk.js";import{u as w,f as P,g as b,s as $,h as E}from"./CtoE6Ekt.js";import{h as B}from"./BlTI_wQm.js";import{d as D}from"./Bh7teyiK.js";import{d as F}from"./aCYftLxR.js";import{u as q}from"./CgmTomPf.js";import{_ as R}from"./DflL2PK_.js";import{a7 as p,y as x,q as V,A,P as H,u,W as O,_ as G,j as L,V as k}from"./fBC3xEqX.js";import"./fOdXlHN4.js";import"./BjeFlBiI.js";import"./DlQZq5Jo.js";import"./DDlvirwQ.js";var o={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PageStore"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"SiteLocale"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"page"},name:{kind:"Name",value:"cgPageStore"},arguments:[{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cgSeo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Seo"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"cgHero"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BlockHeroLvl4"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"cgPageBuilder"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PageBuilderRegular"},directives:[]}]}}]}}]}}],loc:{start:0,end:326}};o.loc.source={body:`#import "../fragments/seo.graphql" 2#import "../hero/lvl4.graphql" 3#import "../page-builder/regular/index.graphql" 4 5query PageStore($locale: SiteLocale) { 6 page: cgPageStore(locale: $locale) { 7 cgSeo { 8 ...Seo 9 } 10 cgHero { 11 ...BlockHeroLvl4 12 } 13 cgPageBuilder { 14 ...PageBuilderRegular 15 } 16 } 17} 18`,name:"GraphQL request",locationOffset:{line:1,column:1}};var S={};function v(n){return n.filter(function(e){if(e.kind!=="FragmentDefinition")return!0;var i=e.name.value;return S[i]?!1:(S[i]=!0,!0)})}o.definitions=o.definitions.concat(v(D.definitions));o.definitions=o.definitions.concat(v(F.definitions));o.definitions=o.definitions.concat(v(y.definitions));function f(n,e){if(n.kind==="FragmentSpread")e.add(n.name.value);else if(n.kind==="VariableDefinition"){var i=n.type;i.kind==="NamedType"&&e.add(i.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(a){f(a,e)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(a){f(a,e)}),n.definitions&&n.definitions.forEach(function(a){f(a,e)})}var g={};(function(){o.definitions.forEach(function(e){if(e.name){var i=new Set;f(e,i),g[e.name.value]=i}})})();function h(n,e){for(var i=0;i<n.definitions.length;i++){var a=n.definitions[i];if(a.name&&a.name.value==e)return a}}function T(n,e){var i={kind:n.kind,definitions:[h(n,e)]};n.hasOwnProperty("loc")&&(i.loc=n.loc);var a=g[e]||new Set,c=new Set,s=new Set;for(a.forEach(function(t){s.add(t)});s.size>0;){var m=s;s=new Set,m.forEach(function(t){if(!c.has(t)){c.add(t);var l=g[t]||new Set;l.forEach(function(r){s.add(r)})}})}return c.forEach(function(t){var l=h(n,t);l&&i.definitions.push(l)}),i}T(o,"PageStore");const C={class:"page-store"},ne={__name:"store",async setup(n){let e,i;const{globalSeo:a}=w(),{$bus:c,$i18n:s,$query:m}=P(),t=s.locale.value,l=`store-${t}`,r=L({});try{const{data:d}=([e,i]=p(()=>b(l,()=>m(o,{uri:l,locale:t}),"$yGIOIG6fY9")),e=await e,i(),e);d.value&&(r.value=d.value.page)}catch(d){throw console.warn("page-store-error",{error:d}),$({statusCode:404,statusMessage:"Page Not Found",fatal:!0})}return[e,i]=p(()=>q("page",r)),await e,i(),E(B(r.value,a)),x(()=>{V(()=>{c.$emit("PAGE:MOUNTED",{menuTheme:"dark"})})}),(d,M)=>{const _=N;return k(),A("div",C,[H(u(R),{data:u(r).cgHero},null,8,["data"]),(u(r)?.cgPageBuilder?.cgContent?.length??0)>0?(k(),O(_,{key:0,data:u(r)?.cgPageBuilder},null,8,["data"])):G("",!0)])}}};export{ne 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.