1import{H as g,T as v,M as T}from"./DkEhcZiB.js";import{r as i,h as w,o as b,a as c,e as l,w as d,f,d as u,g as n,j as H,t as x,i as k}from"./BX97eYXR.js";import{a as p}from"./Cm0UX6qg.js";const q=""+new URL("HW_ChromeLogo.Cw1IuCMH.png",import.meta.url).href,A={class:"relative max-w-screen-lg mx-auto"},C=f("img",{class:"absolute left-0 right-0 w-full top-44 inset-2/4",src:q},null,-1),I={key:0,class:"container"},M=["innerHTML"],D={__name:"[id]",setup(B){const t=i(null),s=w(),r=i(!0);async function h(e){try{const o=(await p.post("https://highwizardry.myshopify.com/api/2023-04/graphql",{query:` 2 query GetArticleIdByTitle($title: String!) { 3 articles(first: 1, query: $title) { 4 edges { 5 node { 6 id 7 } 8 } 9 } 10 } 11 `,variables:{title:e}},{headers:{"Content-Type":"application/json","X-Shopify-Storefront-Access-Token":"acb69c731fd1191b8208f2b8df4e9384"}})).data.data.articles.edges[0].node;return o?o.id:null}catch(a){return console.error("Error fetching article ID by title:",a),null}}async function m(){try{const e=await h(s.params.id);if(!e){console.error("Article ID not found for title:",s.params.id),r.value=!1;return}const a=await p.post("https://highwizardry.myshopify.com/api/2023-04/graphql",{query:` 12 query GetArticle($id: ID!) {
13 article(id: $id) { 14 title 15 contentHtml 16 } 17 } 18 `,variables:{id:e}},{headers:{"Content-Type":"application/json","X-Shopify-Storefront-Access-Token":"acb69c731fd1191b8208f2b8df4e9384"}});t.value=a.data.data.article,r.value=!1}catch(e){console.error("Error fetching article:",e),r.value=!1}}return b(m),(e,a)=>{const o=v,_=T,y=g;return n(),c("div",A,[C,t.value?(n(),c("div",I,[l(y,null,{default:d(()=>[l(o,null,{default:d(()=>[H(" High Wizardry! | "+x(t.value.title),1)]),_:1}),t.value.description?(n(),k(_,{key:0,name:"description",content:t.value.description},null,8,["content"])):u("",!0)]),_:1}),f("div",{class:"z-10 mx-auto",innerHTML:t.value.contentHtml},null,8,M)])):u("",!0)])}}};export{D 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.