1import{s as V,w as A,e as v,c as m,a as t,u as a,t as i,k as d,K as E,B as u,h as F,_ as I,g as z,o as g}from"./T4WVEXly.js";import{u as R,s as G}from"./B3aEziwo.js";const J={class:"debug-page"},P={key:0,class:"loading"},B={key:1,class:"error"},L={key:2,class:"error"},j={key:3,class:"debug-content"},Q={class:"debug-section"},W={class:"json-block"},H={class:"debug-section"},K={class:"schema-block"},U={open:""},$={class:"json-block"},q={class:"schema-block"},X={class:"json-block"},Y={class:"debug-section"},Z={class:"meta-preview"},tt={class:"meta-item"},st={class:"meta-item"},at={class:"meta-item"},et={class:"debug-section"},it={class:"validation-grid"},ot={class:"icon"},nt={class:"icon"},lt={class:"icon"},rt={class:"icon"},dt={class:"icon"},ut={class:"icon"},ct={__name:"structured-data",async setup(mt){let l,p;R({title:"Structured Data Debug - Vinzenz Aubry",meta:[{name:"robots",content:"noindex, nofollow"}]});const{data:r,pending:T,error:b}=([l,p]=A(()=>F(G.generalMeta)),l=await l,p(),l),{createStructuredDataFromSanity:x}=([l,p]=A(()=>I(()=>import("./DL0FsEsf.js"),[],import.meta.url)),l=await l,p(),l),e=v(()=>x(r.value)),N=v(()=>{var o,s,n;return((n=(s=(o=r.value)==null?void 0:o.meta)==null?void 0:s.title)==null?void 0:n.en)||"Vinzenz Aubry"}),O=v(()=>{var o,s,n;return((n=(s=(o=r.value)==null?void 0:o.meta)==null?void 0:s.description)==null?void 0:n.en)||"French-German artist exploring human-machine-nature relationships"}),C=v(()=>{var s,n,c;const o=(c=(n=(s=r.value)==null?void 0:s.meta)==null?void 0:n.ogImage)==null?void 0:c.en;return o?z().$urlFor(o).size(1200,630).url():"/ogimage.png"}),M=async()=>{const o={artist:e.value.artist,website:e.value.website};try{await navigator.clipboard.writeText(JSON.stringify(o,null,2)),alert("â
Structured data copied to clipboard!")}catch(s){console.error("Failed to copy:",s),alert("â Failed to copy to clipboard")}};return(o,s)=>{var n,c,h,_,y,k,S,f,w,D;return g(),m("div",J,[t("div",{class:"debug-header"},[s[1]||(s[1]=t("h1",null,"ð Structured Data Debug",-1)),s[2]||(s[2]=t("p",null,"This page shows the structured data generated from your Sanity CMS",-1)),t("div",{class:"debug-actions"},[t("button",{onClick:M,class:"copy-btn"},"ð Copy All JSON"),s[0]||(s[0]=t("a",{href:"https://search.google.com/test/rich-results",target:"_blank",class:"test-btn"}," 𧪠Test in Google Rich Results ",-1))])]),a(T)?(g(),m("div",P," Loading structured data... ")):a(b)?(g(),m("div",B,[s[3]||(s[3]=t("h2",null,"â Error Loading Data",-1)),t("pre",null,i(a(b)),1)])):a(r)?(g(),m("div",j,[t("section",Q,[s[6]||(s[6]=t("h2",null,"ð Raw Sanity Data",-1)),t("details",null,[s[5]||(s[5]=t("summary",null,"Click to expand raw data from CMS",-1)),t("pre",W,i(JSON.stringify((n=a(r))==null?void 0:n.generalMeta,null,2)),1)])]),t("section",H,[s[11]||(s[11]=t("h2",null,"ð¤ Generated Structured Data",-1)),t("div",K,[s[8]||(s[8]=t("h3",null,"ð¤ Person/Artist Schema",-1)),t("details",U,[s[7]||(s[7]=t("summary",null,"Person structured data for search engines",-1)),t("pre",$,i(JSON.stringify(a(e).artist,null,2)),1)])]),t("div",q,[s[10]||(s[10]=t("h3",null,"ð Website Schema",-1)),t("details",null,[s[9]||(s[9]=t("summary",null,"Website structured data",-1)),t("pre",X,i(JSON.stringify(a(e).website,null,2)),1)])])]),t("section",Y,[s[15]||(s[15]=t("h2",null,"ð·ï¸ Meta Tags Preview",-1)),t("div",Z,[t("div",tt,[s[12]||(s[12]=t("strong",null,"Title:",-1)),d(" "+i(a(N)),1)]),t("div",st,[s[13]||(s[13]=t("strong",null,"Description:",-1)),d(" "+i(a(O)),1)]),t("div",at,[s[14]||(s[14]=t("strong",null,"OG Image:",-1)),d(" "+i(a(C)),1)])])]),t("section",et,[s[19]||(s[19]=t("h2",null,"â
Validation",-1)),t("div",it,[t("div",{class:u(["validation-item",{valid:a(e).artist.name}])},[t("span",ot,i(a(e).artist.name?"â
":"â"),1),s[16]||(s[16]=t("span",null,"Artist Name",-1))],2),t("div",{class:u(["validation-item",{valid:a(e).artist.description}])},[t("span",nt,i(a(e).artist.description?"â
":"â"),1),s[17]||(s[17]=t("span",null,"Description",-1))],2),t("div",{class:u(["validation-item",{valid:a(e).artist.email}])},[t("span",lt,i(a(e).artist.email?"â
":"â"),1),s[18]||(s[18]=t("span",null,"Email",-1))],2),t("div",{class:u(["validation-item",{val
1id:((c=a(e).artist.sameAs)==null?void 0:c.length)>0}])},[t("span",rt,i(((h=a(e).artist.sameAs)==null?void 0:h.length)>0?"â
":"â"),1),t("span",null,"Social Links ("+i(((_=a(e).artist.sameAs)==null?void 0:_.length)||0)+")",1)],2),t("div",{class:u(["validation-item",{valid:((y=a(e).artist.alumniOf)==null?void 0:y.length)>0}])},[t("span",dt,i(((k=a(e).artist.alumniOf)==null?void 0:k.length)>0?"â
":"â"),1),t("span",null,"Education ("+i(((S=a(e).artist.alumniOf)==null?void 0:S.length)||0)+")",1)],2),t("div",{class:u(["validation-item",{valid:((f=a(e).artist.knowsAbout)==null?void 0:f.length)>0}])},[t("span",ut,i(((w=a(e).artist.knowsAbout)==null?void 0:w.length)>0?"â
":"â"),1),t("span",null,"Expertise ("+i(((D=a(e).artist.knowsAbout)==null?void 0:D.length)||0)+")",1)],2)])]),s[20]||(s[20]=E('<section class="debug-section" data-v-025b1968><h2 data-v-025b1968>𧪠Testing Tools</h2><div class="testing-links" data-v-025b1968><a href="https://search.google.com/test/rich-results" target="_blank" class="test-link" data-v-025b1968> Google Rich Results Test </a><a href="https://validator.schema.org/" target="_blank" class="test-link" data-v-025b1968> Schema.org Validator </a><a href="https://developers.facebook.com/tools/debug/" target="_blank" class="test-link" data-v-025b1968> Facebook Sharing Debugger </a><a href="https://cards-dev.twitter.com/validator" target="_blank" class="test-link" data-v-025b1968> Twitter Card Validator </a></div></section>',1))])):(g(),m("div",L,s[4]||(s[4]=[t("h2",null,"â ï¸ No Data Found",-1),t("p",null,'Make sure you have created and published a "Meta & SEO" document in Sanity Studio.',-1),t("p",null,[d("The document should be of type "),t("code",null,"siteMeta"),d(" with ID "),t("code",null,"siteMeta"),d(".")],-1)])))])}}},vt=V(ct,[["__scopeId","data-v-025b1968"]]);export{vt 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.