1import{a as g,b as q,e as u,f as k,h as S,w as P,u as _,o as b,i as $,j as C,k as E}from"./entry.5b60975b.js";import{u as G}from"./asyncData.56e7f4c5.js";const L=()=>{const t=q();if(!t._gqlState)throw new Error("GQL State is not available.");return t==null?void 0:t._gqlState};function w(){const t=L(),a=x();return(...e)=>{var l;const r=(typeof(e==null?void 0:e[0])!="string"&&"operation"in(e==null?void 0:e[0])?e[0].operation:e[0])??void 0,o=(typeof(e==null?void 0:e[0])!="string"&&"variables"in(e==null?void 0:e[0])?e[0].variables:e[1])??void 0,s=Object.keys(f).find(d=>f[d].includes(r))??"default",{instance:i}=(l=t.value)==null?void 0:l[s];if(!i)throw new Error("Invalid GraphQL Operation");return N[s](i,async(d,h,v)=>{var c,p,m,y;try{return await d()}catch(n){throw a.value={client:s,operationType:v,operationName:h,statusCode:(c=n==null?void 0:n.response)==null?void 0:c.status,gqlErrors:((p=n==null?void 0:n.response)==null?void 0:p.errors)||((m=n==null?void 0:n.response)==null?void 0:m.message)&&[{message:(y=n==null?void 0:n.response)==null?void 0:y.message}]||[]},t.value.onError&&t.value.onError(a.value),a.value}})[r](o)}}const x=()=>g("_gqlErrors",()=>null),H=u` 2 query Page($handle: String!) { 3 page(handle: $handle) { 4 id 5 handle 6 bodySummary 7 body 8 title 9 seo { 10 description 11 title 12 } 13 heroSlider_headline: metafield(namespace: "Hero Slider", key: "Headline") { 14 value 15 } 16 heroSlider_ctaLabel: metafield(namespace: "Hero Slider", key: "CTA Label") { 17 value 18 } 19 heroSlider_ctaUrl: metafield(namespace: "Hero Slider", key: "CTA URL") { 20 value 21 } 22 } 23} 24 `,T=u` 25 query Pages($first: Int!, $query: String) { 26 pages(first: $first, query: $query) { 27 edges { 28 node { 29 id 30 title 31 seo { 32 description 33 title 34 } 35 } 36 } 37 } 38} 39 `,D=u` 40 query Product($handle: String!) { 41 productByHandle(handle: $handle) { 42 id 43 title 44 productType 45 priceRange { 46 maxVariantPrice { 47 amount 48 currencyCode 49 } 50 } 51 description 52 images(first: 6) { 53 edges { 54 node { 55 src 56 } 57 } 58 } 59 variants(first: 1) { 60 edges { 61 node { 62 id 63 } 64 } 65 } 66 status: metafield(namespace: "status", key: "value") { 67 value 68 } 69 colorDark: metafield(namespace: "theme", key: "dark") { 70 value 71 } 72 colorLight: metafield(namespace: "theme", key: "light") { 73 value 74 } 75 colorImg: metafield(namespace: "theme", key: "img") { 76 value 77 } 78 ingredients: metafield(namespace: "ingredients", key: "list") { 79 value 80 } 81 hero_desc: metafield(namespace: "product_hero", key: "description") { 82 value 83 } 84 hero_ingredients: metafield(namespace: "product_hero", key: "ingredients") { 85 value 86 } 87 hero_nutrition: metafield(namespace: "product_hero", key: "nutrition") { 88 value 89 } 90 } 91} 92 `,A=(t,a,e)=>t();function B(t,a=A){return{Page(e,r){return a(o=>t.request(H,e,{...r,...o}),"Page","query")},Pages(e,r){return a(o=>t.request(T,e,{...r,...o}),"Pages","query")},Product(e,r){return a(o=>t.request(D,e,{...r,...o}),"Product","query")}}}const N={default:B},f={default:["Page","Pages","Product"]},I=(...t)=>w()("Page",...t),O={key:0,class:"page"},R=["innerHTML"],M=k({__name:"[handle]",async setup(t){let a,e;const o=S().params.handle,{data:s}=([a,e]=P(()=>G(`page-${o}`,()=>I({handle:o}))),a=await a,e(),a);return(i,l)=>_(s)?(b(),$("div",O,[C("div",{innerHTML:_(s).page.body,class:"html-dom px-5 md:px-10 py-5 md:py-10"},null,8,R)])):E("",!0)}});export{M 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.