@unhead/bundler 3.1.1 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/devtools-ui/200.html +1 -1
- package/dist/devtools-ui/404.html +1 -1
- package/dist/devtools-ui/_nuxt/{DAKdquko.js → -B2KnILi.js} +1 -1
- package/dist/devtools-ui/_nuxt/{Ou52Vqik.js → 6fUlEOtA.js} +1 -1
- package/dist/devtools-ui/_nuxt/{C81xmMuP.js → B9TTjx5X.js} +1 -1
- package/dist/devtools-ui/_nuxt/{Ct3QmJw6.js → B9xfxtRw.js} +1 -1
- package/dist/devtools-ui/_nuxt/BHxAJ18h.js +1 -0
- package/dist/devtools-ui/_nuxt/{ChL3K-7X.js → BecSrPKt.js} +1 -1
- package/dist/devtools-ui/_nuxt/{uY6k474J.js → BekyTchD.js} +1 -1
- package/dist/devtools-ui/_nuxt/{CLWRWTUc.js → BkPLZFcU.js} +1 -1
- package/dist/devtools-ui/_nuxt/{DZ2eF3EI.js → C-CToTAN.js} +1 -1
- package/dist/devtools-ui/_nuxt/{xSwJ5b7x.js → C8BJaQT-.js} +1 -1
- package/dist/devtools-ui/_nuxt/{Bb_3BFDc.js → CNWeGN_p.js} +1 -1
- package/dist/devtools-ui/_nuxt/{GDfpgsTy.js → C_3tUbRU.js} +1 -1
- package/dist/devtools-ui/_nuxt/CadLYmKg.js +191 -0
- package/dist/devtools-ui/_nuxt/{CCYIWYmq.js → DCsp3UbI.js} +1 -1
- package/dist/devtools-ui/_nuxt/{DBeHrZGS.js → EdcoWVEZ.js} +1 -1
- package/dist/devtools-ui/_nuxt/{DgVGCDvY.js → Sr6idpZq.js} +1 -1
- package/dist/devtools-ui/_nuxt/{2R9QS7Fj.js → TJzlhq83.js} +1 -1
- package/dist/devtools-ui/_nuxt/builds/latest.json +1 -1
- package/dist/devtools-ui/_nuxt/builds/meta/1819831b-dbfb-42f9-900b-14e48a657a07.json +1 -0
- package/dist/devtools-ui/_nuxt/entry.DJWUBWwc.css +1 -0
- package/dist/devtools-ui/_nuxt/error-404.C8ddysfz.css +1 -0
- package/dist/devtools-ui/_nuxt/error-500.BH7cRI9Q.css +1 -0
- package/dist/devtools-ui/_nuxt/{D-Etbhpg.js → x_ad1Ij1.js} +1 -1
- package/dist/devtools-ui/index.html +1 -1
- package/dist/framework.mjs +2 -1
- package/dist/shared/{bundler.D9eYJXZg.mjs → bundler.BEzA8ILR.mjs} +17 -7
- package/dist/vite.mjs +2 -1
- package/package.json +8 -8
- package/dist/devtools-ui/_nuxt/DPCTmUYV.js +0 -1
- package/dist/devtools-ui/_nuxt/DsxXb4gA.js +0 -191
- package/dist/devtools-ui/_nuxt/builds/meta/131284c6-b351-4ba5-8ac9-6320fa409f91.json +0 -1
- package/dist/devtools-ui/_nuxt/entry.BIq0UsGv.css +0 -1
- package/dist/devtools-ui/_nuxt/error-404.DhI8zfQF.css +0 -1
- package/dist/devtools-ui/_nuxt/error-500.BLpai_3s.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as C}from"./
|
|
1
|
+
import{_ as C}from"./6fUlEOtA.js";import{G as v,aa as t,x as _,t as n,C as o,k,aj as c,n as $,aR as r,B as f,v as g,ap as s,ai as a,b as y,af as b,u as m}from"./CadLYmKg.js";import{_ as D}from"./BecSrPKt.js";import{_ as E}from"./C_3tUbRU.js";import{_ as N}from"./TJzlhq83.js";import"./BekyTchD.js";const U={class:"border border-default rounded-lg overflow-hidden group"},z={class:"flex items-center gap-3 p-3 bg-default cursor-pointer select-none list-none [&::-webkit-details-marker]:hidden"},H={class:"font-mono text-sm"},T={key:0,class:"text-xs text-muted font-mono ml-auto"},V={class:"p-3 bg-elevated border-t border-default"},j=v({__name:"DevtoolsHeadEntry",props:{entry:{}},setup(e){const u={server:{color:"info",icon:"i-carbon-cloud"},client:{color:"warning",icon:"i-carbon-laptop"},hydrated:{color:"success",icon:"i-carbon-arrows-horizontal"},stream:{color:"primary",icon:"i-carbon-flow-stream"}};return(w,h)=>{const l=k,d=$,p=D;return t(),_("details",U,[n("summary",z,[o(l,{name:"i-carbon-chevron-right",class:"text-xs transition-transform group-open:rotate-90 shrink-0"}),n("span",H,"#"+c(e.entry.id),1),o(d,{variant:"subtle",size:"xs"},{default:r(()=>[f(c(e.entry.tagCount)+" tags ",1)]),_:1}),o(d,{color:u[e.entry.mode]?.color||"neutral",variant:"subtle",size:"xs"},{default:r(()=>[o(l,{name:u[e.entry.mode]?.icon||"i-carbon-help",class:"text-xs"},null,8,["name"]),f(" "+c(e.entry.mode||"unknown"),1)]),_:1},8,["color"]),e.entry.source?(t(),_("span",T,c(e.entry.source),1)):g("",!0)]),n("div",V,[o(p,{code:JSON.stringify(e.entry.input,null,2),lang:"json"},null,8,["code"])])])}}}),O=Object.assign(j,{__name:"DevtoolsHeadEntry"}),S={class:"space-y-4"},I={class:"flex items-center gap-2"},R={class:"font-medium"},F={class:"space-y-3"},G={class:"flex items-center gap-2"},J={class:"font-medium"},L={class:"flex flex-wrap gap-2"},W=v({__name:"index",setup(e){return(u,w)=>{const h=C,l=k,d=O,p=E,x=N,B=$;return t(),_("div",S,[o(h,{tags:s(a).tags,title:"Resolved Tags"},null,8,["tags"]),o(x,null,{header:r(()=>[n("div",I,[o(l,{name:"i-carbon-list",class:"text-lg"}),n("span",R,"Head Entries ("+c(s(a).entries.length)+")",1)])]),default:r(()=>[n("div",F,[(t(!0),_(y,null,b(s(a).entries,i=>(t(),m(d,{key:i.id,entry:i},null,8,["entry"]))),128)),s(a).entries.length?g("",!0):(t(),m(p,{key:0,icon:"i-carbon-list",title:"No entries detected"}))])]),_:1}),s(a).plugins.length?(t(),m(x,{key:0},{header:r(()=>[n("div",G,[o(l,{name:"i-carbon-plug",class:"text-lg"}),n("span",J,"Plugins ("+c(s(a).plugins.length)+")",1)])]),default:r(()=>[n("div",L,[(t(!0),_(y,null,b(s(a).plugins,i=>(t(),m(B,{key:i,variant:"subtle",size:"xs"},{default:r(()=>[f(c(i),1)]),_:2},1024))),128))])]),_:1})):g("",!0)])}}});export{W as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as ne,aa as i,x as r,C as u,aR as h,t as s,a5 as C,ap as a,u as D,k as re,b as x,af as S,aj as o,v as d,B as A,n as oe,a7 as H,s as b,ai as $,ad as le,i as ce}from"./DsxXb4gA.js";import{_ as ue}from"./2R9QS7Fj.js";import{_ as de,d as P,b as W,e as ee,j as pe,a as me,n as he,c as fe,h as _e}from"./DAKdquko.js";import{a as ge}from"./uY6k474J.js";import"./ChL3K-7X.js";const xe=/[^\w\s]/g,be=/\s+/,v={TITLE_MAX_CHARS:60,TITLE_WARN_CHARS:50,TITLE_MAX_PIXELS:580,DESC_MAX_CHARS:160,DESC_WARN_CHARS:150,DESC_MAX_PIXELS:920},te={google:{label:"Google",titleMax:60,descMax:160,icon:"i-carbon-search"},bing:{label:"Bing",titleMax:65,descMax:150,icon:"i-carbon-search-locate"},duckduckgo:{label:"DuckDuckGo",titleMax:65,descMax:150,icon:"i-carbon-search-locate-mirror"},ai:{label:"AI Search",titleMax:70,descMax:200,icon:"i-carbon-machine-learning-model"}},ve=new Set(["a","an","the","and","or","but","in","on","at","to","for","of","with","by","is","are","was","were","be","been","being","have","has","had","do","does","did","will","would","could","should","may","might","can","shall","it","its","this","that","these","those","i","we","you","he","she","they","me","us","him","her","them","my","our","your","his","their","from","not","no","so","if","as","up","out","about","into","over","after","how","all","new","more","when","who","what","where"]);function ye(T){const N=T.toLowerCase().replace(xe,"").split(be).filter(Boolean),c=new Map;for(const f of N)f.length<2||ve.has(f)||c.set(f,(c.get(f)||0)+1);return[...c.entries()].map(([f,y])=>({word:f,count:y})).sort((f,y)=>y.count-f.count)}function ke(T,N=16){return Math.round(T.length*N*.55)}function Se(T){return T>v.TITLE_MAX_CHARS?"error":T<30?"warning":"success"}function Te(T){return T>v.DESC_MAX_CHARS?"error":T>v.DESC_WARN_CHARS||T<70?"warning":"success"}const Ce={class:"space-y-4"},Ae={class:"flex items-center justify-between"},Re={class:"flex items-center gap-2"},De={class:"flex items-center gap-1"},Me=["aria-pressed"],Le=["aria-pressed"],Ee={class:"flex justify-center"},$e={class:"serp-preview"},Ne={class:"flex items-center gap-3 mb-2"},Ie={class:"w-[26px] h-[26px] rounded-full flex items-center justify-center bg-neutral-100 dark:bg-neutral-800 overflow-hidden"},we=["src"],He={key:0,class:"serp-rich-breadcrumbs"},Pe={key:1,class:"text-xs text-neutral-600 dark:text-[#bdc1c6] leading-tight truncate"},je={class:"serp-preview__description"},Xe={key:0,class:"flex items-center gap-1.5 mt-1"},qe={class:"serp-rich-stars"},Oe={class:"text-xs serp-rich-rating-text"},Ue={key:0,class:"text-xs serp-rich-rating-text"},ze={key:1,class:"text-xs serp-rich-rating-text ml-1"},Be={key:1,class:"text-xs serp-rich-rating-text mt-1"},We={key:2,class:"flex items-center gap-2 text-xs serp-rich-detail mt-1"},Ge={key:0},Ve={key:1,class:"opacity-40"},Fe={key:2},Qe={key:3,class:"flex flex-wrap items-center gap-2 text-xs serp-rich-detail mt-1"},Je={class:"flex items-center gap-1"},Ke={key:0,class:"opacity-30"},Ye={key:4,class:"serp-rich-faq mt-2"},Ze={class:"text-xs"},et={class:"flex items-center justify-between"},tt={class:"flex items-center gap-2"},st={class:"space-y-3"},at={class:"flex items-center justify-between mb-2"},it={class:"flex items-center gap-2"},nt={class:"text-xs font-medium"},rt={class:"flex items-center gap-2"},ot=["href","aria-label"],lt={class:"serp-rich-mockup"},ct={key:0,class:"serp-rich-breadcrumbs"},ut={key:1,class:"flex items-center gap-1.5"},dt={class:"serp-rich-stars"},pt={class:"text-xs serp-rich-rating-text"},mt={key:0,class:"text-xs serp-rich-rating-text"},ht={key:1,class:"text-xs serp-rich-rating-text ml-1"},ft={key:2,class:"text-xs serp-rich-rating-text"},_t={key:3,class:"flex items-center gap-2 text-xs serp-rich-detail"},gt={key:0},xt={key:1,class:"opacity-40"},bt={key:2},vt={key:4,class:"flex items-center gap-2 mt-1"},yt={class:"serp-rich-video-thumb"},kt=["src","alt"],St={class:"serp-rich-video-play"},Tt={key:0,class:"serp-rich-video-duration"},Ct={key:5,class:"serp-rich-faq"},At={class:"text-xs"},Rt={key:0,class:"text-xs serp-rich-rating-text mt-1"},Dt={key:6,class:"flex flex-wrap items-center gap-2 text-xs serp-rich-detail"},Mt={class:"flex items-center gap-1"},Lt={key:0,class:"opacity-30"},Et={class:"grid md:grid-cols-2 gap-4"},$t={class:"flex items-center gap-2"},Nt={class:"space-y-3"},It={class:"flex items-center justify-between"},wt={class:"text-xs font-mono text-muted"},Ht=["aria-valuenow","aria-valuemax","aria-label"],Pt={class:"text-xs text-muted truncate"},jt={class:"flex items-center gap-2"},Xt={class:"space-y-3"},qt={class:"flex items-center justify-between"},Ot={class:"text-xs font-mono text-muted"},Ut=["aria-valuenow","aria-valuemax","aria-label"],zt={class:"text-xs text-muted truncate"},Bt={class:"flex items-center justify-between"},Wt={class:"flex items-center gap-2"},Gt={class:"space-y-1"},Vt={class:"text-sm font-mono"},Ft={class:"text-xs text-muted ml-auto truncate max-w-[250px]"},Qt={class:"grid md:grid-cols-2 gap-4"},Jt={class:"flex items-center gap-2"},Kt={key:0,class:"space-y-3"},Yt={class:"space-y-1"},Zt={class:"flex items-center gap-2 px-2 py-1.5 rounded-md bg-elevated"},es={class:"text-sm font-mono ml-auto truncate"},ts={class:"flex items-center gap-2 px-2 py-1.5 rounded-md"},ss={class:"text-sm font-mono ml-auto bg-elevated px-1.5 py-0.5 rounded"},as={key:0,class:"flex items-center gap-2 px-2 py-1.5 rounded-md bg-elevated"},is={class:"text-xs font-mono ml-auto truncate max-w-[200px]"},ns={class:"border-t border-default pt-2"},rs={class:"text-sm font-mono mt-1"},os={key:1,class:"text-sm text-muted"},ls={class:"flex items-center gap-2"},cs={class:"flex items-center justify-between"},us={class:"flex items-center gap-2"},ds={key:0,class:"space-y-3"},ps={class:"text-xs font-medium text-muted uppercase tracking-wide"},ms={class:"grid grid-cols-2 gap-2"},hs={class:"bg-elevated rounded-md p-2"},fs={class:"text-xs font-mono truncate"},_s={class:"bg-elevated rounded-md p-2"},gs={class:"text-xs font-mono truncate"},xs={key:1,class:"text-sm text-muted"},bs={class:"flex items-center gap-2"},vs={class:"w-full text-sm"},ys={class:"p-2"},ks={class:"flex items-center gap-1.5"},Ss={class:"p-2"},Ts={class:"flex items-center gap-1.5"},Cs={class:"font-mono text-xs"},As={class:"p-2"},Rs={class:"flex items-center gap-1.5"},Ds={class:"font-mono text-xs"},Ms={class:"flex items-center gap-2"},Ls={class:"flex flex-wrap gap-2"},Es={key:0,class:"serp-keyword-count"},$s=ne({__name:"serp",setup(T){const N=/PT(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?/,c=b(()=>$.value.seo),f=b(()=>c.value.title?.length||0),y=b(()=>c.value.description?.length||0),j=b(()=>Se(f.value)),X=b(()=>Te(y.value)),M=le("desktop"),G=b(()=>$.value.titleTemplate),q=b(()=>$.value.templateParams),se=b(()=>$.value.separator||"|"),ae=b(()=>!!G.value),O=b(()=>{const n=[];return c.value.title?f.value>v.TITLE_MAX_CHARS?n.push({label:"Title",status:"error",detail:`Too long (${f.value}/${v.TITLE_MAX_CHARS})`}):f.value<30?n.push({label:"Title",status:"warning",detail:`Too short (${f.value} chars)`}):n.push({label:"Title",status:"success",detail:`${f.value} chars`}):n.push({label:"Title",status:"error",detail:"Missing"}),c.value.description?y.value>v.DESC_MAX_CHARS?n.push({label:"Description",status:"error",detail:`Too long (${y.value}/${v.DESC_MAX_CHARS})`}):y.value<70?n.push({label:"Description",status:"warning",detail:`Too short (${y.value} chars)`}):n.push({label:"Description",status:"success",detail:`${y.value} chars`}):n.push({label:"Description",status:"error",detail:"Missing"}),c.value.canonical?n.push({label:"Canonical URL",status:"success",detail:c.value.canonical}):n.push({label:"Canonical URL",status:"warning",detail:"Not set"}),c.value.robots?c.value.robots.includes("noindex")?n.push({label:"Robots",status:"error",detail:`noindex detected: ${c.value.robots}`}):n.push({label:"Robots",status:"success",detail:c.value.robots}):n.push({label:"Robots",status:"warning",detail:"Not set (defaults to index, follow)"}),c.value.ogTitle?n.push({label:"og:title",status:"success",detail:c.value.ogTitle}):n.push({label:"og:title",status:"warning",detail:"Not set (falls back to title)"}),c.value.ogDescription?n.push({label:"og:description",status:"success",detail:c.value.ogDescription}):n.push({label:"og:description",status:"warning",detail:"Not set (falls back to description)"}),c.value.ogImage?n.push({label:"og:image",status:"success",detail:c.value.ogImage}):n.push({label:"og:image",status:"error",detail:"Missing"}),n}),I=b(()=>{const n=O.value.length;return{passed:O.value.filter(l=>l.status==="success").length,total:n}}),E=b(()=>{const n=[];return c.value.ogTitle&&c.value.title&&c.value.ogTitle!==c.value.title&&n.push({field:"Title",serp:c.value.title,og:c.value.ogTitle}),c.value.ogDescription&&c.value.description&&c.value.ogDescription!==c.value.description&&n.push({field:"Description",serp:c.value.description,og:c.value.ogDescription}),n}),V=b(()=>{const n=`${c.value.title||""} ${c.value.description||""}`;return ye(n).slice(0,10)}),ie=b(()=>Object.keys(te).map(n=>{const e=te[n],l=f.value>e.titleMax?"error":f.value<30?"warning":"success",g=y.value>e.descMax?"error":y.value<70?"warning":"success";return{key:n,...e,titleStatus:l,descStatus:g,titleLen:f.value,descLen:y.value}}));function F(n){return n==="success"?"Good":n==="warning"?"Needs work":"Too long"}function U(n){return n==="success"?"i-carbon-checkmark-filled":n==="warning"?"i-carbon-warning-filled":"i-carbon-close-filled"}function z(n){return n==="success"?"text-green-500":n==="warning"?"text-amber-400":"text-red-400"}const Q=b(()=>{const n=$.value.tags.filter(e=>e.tag==="script"&&e.props?.type==="application/ld+json").flatMap(e=>{try{return[JSON.parse(e.innerHTML||"{}")]}catch{return[]}});return n.length?n.length===1?n[0]:{"@graph":n.flatMap(e=>ee(e))}:null}),B=b(()=>Q.value?ee(Q.value).filter(e=>pe(P(e))):[]),J=b(()=>{const n=$.value.tags.filter(l=>l.tag==="link"&&["icon"].includes(l.props?.rel||""));return n.find(l=>l.props?.href?.includes("favicon.ico"))?.props?.href||n[0]?.props?.href||null}),R=b(()=>{const n=new Set;return B.value.map(e=>{const l=P(e),g=me(e),L=he(l),w=g.missingRequired.length>0?"ineligible":g.missingRecommended.length>0?"partial":"eligible",p={type:l,icon:_e(l),label:fe(e),features:[],eligibility:w,missingRequired:g.missingRequired,documentationUrl:L.googlePage||void 0},t=e.aggregateRating||e.reviewRating;switch(t&&(p.rating={value:Number(t.ratingValue||0),count:Number(t.ratingCount||t.reviewCount||0),max:Number(t.bestRating||5)}),l){case"Product":{const _=e.offers?.[0]||e.offers||{};_.price&&(p.price=`${_.priceCurrency||"$"}${_.price}`),_.availability&&p.features.push({icon:"i-carbon-delivery-truck",text:_.availability.replace("https://schema.org/","")});break}case"Recipe":{(e.totalTime||e.cookTime)&&p.features.push({icon:"i-carbon-time",text:K(e.totalTime||e.cookTime)}),e.recipeYield&&p.features.push({icon:"i-carbon-restaurant",text:`Serves ${e.recipeYield}`}),e.nutrition?.calories&&p.features.push({icon:"i-carbon-meter",text:e.nutrition.calories});break}case"Event":{e.startDate&&(p.eventDate=Y(e.startDate)),(e.location?.name||e.location?.address?.addressLocality)&&(p.eventLocation=e.location.name||e.location.address.addressLocality);break}case"FAQPage":{const _=W(e.mainEntity||[]);p.faqItems=_.slice(0,4).map(m=>({question:m.name||m.text||"Question"}));break}case"BreadcrumbList":{const _=W(e.itemListElement||[]).sort((m,k)=>(m.position||0)-(k.position||0));p.breadcrumbs=_.map(m=>m.name||m.item?.name||"Page").slice(0,5);break}case"VideoObject":{p.videoThumbnail=e.thumbnailUrl,e.duration&&(p.videoDuration=K(e.duration));break}case"Article":case"NewsArticle":case"BlogPosting":{e.datePublished&&p.features.push({icon:"i-carbon-calendar",text:Y(e.datePublished)}),e.author?.name&&p.features.push({icon:"i-carbon-user",text:e.author.name});break}case"JobPosting":{e.hiringOrganization?.name&&p.features.push({icon:"i-carbon-building",text:e.hiringOrganization.name}),e.baseSalary?.value&&p.features.push({icon:"i-carbon-currency",text:`${e.baseSalary.currency||""}${e.baseSalary.value}`}),e.jobLocation?.address?.addressLocality&&p.features.push({icon:"i-carbon-location",text:e.jobLocation.address.addressLocality});break}case"LocalBusiness":case"Restaurant":{(e.address?.streetAddress||e.address?.addressLocality)&&p.features.push({icon:"i-carbon-location",text:e.address.streetAddress||e.address.addressLocality}),e.telephone&&p.features.push({icon:"i-carbon-phone",text:e.telephone}),e.priceRange&&p.features.push({icon:"i-carbon-currency",text:e.priceRange});break}case"SoftwareApplication":{e.applicationCategory&&p.features.push({icon:"i-carbon-category",text:e.applicationCategory});const _=e.offers?.[0]||e.offers||{};_.price&&(p.price=_.price==="0"?"Free":`${_.priceCurrency||"$"}${_.price}`);break}case"Course":{e.provider?.name&&p.features.push({icon:"i-carbon-education",text:e.provider.name});break}case"Organization":{e.name&&p.features.push({icon:"i-carbon-building",text:e.name}),e.url&&p.features.push({icon:"i-carbon-link",text:e.url}),e.telephone&&p.features.push({icon:"i-carbon-phone",text:e.telephone});break}case"SearchAction":{e.target&&p.features.push({icon:"i-carbon-search",text:typeof e.target=="string"?e.target:e.target?.urlTemplate||"Sitelinks searchbox"});break}case"WebSite":{e.name&&p.features.push({icon:"i-carbon-globe",text:e.name}),e.url&&p.features.push({icon:"i-carbon-link",text:e.url});break}}return p}).filter(e=>{const l=`${e.type}::${e.label}::${e.features.find(g=>g.icon==="i-carbon-link")?.text||""}`;return n.has(l)?!1:(n.add(l),!0)})});function K(n){if(!n)return"";const e=n.match(N);if(!e)return n;const l=[];return e[1]&&l.push(`${e[1]}h`),e[2]&&l.push(`${e[2]}m`),e[3]&&!e[1]&&l.push(`${e[3]}s`),l.join(" ")||n}function Y(n){try{return new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}catch{return n}}function Z(n,e=5){const l=Math.round(n);return"★".repeat(Math.min(l,e))+"☆".repeat(Math.max(0,e-l))}return(n,e)=>{const l=re,g=ue,L=oe,w=de,p=ge;return i(),r("div",Ce,[u(g,null,{header:h(()=>[s("div",Ae,[s("div",Re,[u(l,{name:"i-carbon-search",class:"text-lg"}),e[2]||(e[2]=s("span",{class:"font-medium"},"Google Search Preview",-1))]),s("div",De,[s("button",{type:"button","aria-label":"Desktop preview","aria-pressed":a(M)==="desktop",class:C(["px-2 py-1 text-xs rounded",a(M)==="desktop"?"bg-elevated font-medium":"text-muted"]),onClick:e[0]||(e[0]=t=>M.value="desktop")},[u(l,{name:"i-carbon-laptop",class:"text-sm"})],10,Me),s("button",{type:"button","aria-label":"Mobile preview","aria-pressed":a(M)==="mobile",class:C(["px-2 py-1 text-xs rounded",a(M)==="mobile"?"bg-elevated font-medium":"text-muted"]),onClick:e[1]||(e[1]=t=>M.value="mobile")},[u(l,{name:"i-carbon-mobile",class:"text-sm"})],10,Le)])])]),default:h(()=>[s("div",Ee,[s("div",{class:C(["serp-preview-container transition-all duration-300",a(M)==="mobile"?"serp-preview-container--mobile":""])},[s("div",$e,[s("div",Ne,[s("div",Ie,[a(J)?(i(),r("img",{key:0,src:a(J),alt:"",class:"w-3.5 h-3.5 object-contain"},null,8,we)):(i(),D(l,{key:1,name:"i-carbon-earth",class:"w-3.5 h-3.5 text-neutral-400"}))]),a(R).find(t=>t.breadcrumbs)?(i(),r("div",He,[(i(!0),r(x,null,S(a(R).find(t=>t.breadcrumbs).breadcrumbs,(t,_)=>(i(),r(x,{key:_},[s("span",null,o(t),1),_<a(R).find(m=>m.breadcrumbs).breadcrumbs.length-1?(i(),D(l,{key:0,name:"i-carbon-chevron-right",class:"text-[10px] mx-0.5 opacity-50"})):d("",!0)],64))),128))])):(i(),r("div",Pe,o(a(c).canonical||"example.com"),1))]),s("h3",{class:C(["serp-preview__title",a(M)==="mobile"?"serp-preview__title--mobile":""])},o(a(c).title||"No title found"),3),s("p",je,o(a(c).description||"No description found"),1),(i(!0),r(x,null,S(a(R),(t,_)=>(i(),r(x,{key:`inline-${_}`},[t.rating?(i(),r("div",Xe,[s("span",qe,o(Z(t.rating.value,t.rating.max)),1),s("span",Oe,o(t.rating.value)+"/"+o(t.rating.max),1),t.rating.count?(i(),r("span",Ue," ("+o(t.rating.count.toLocaleString())+" review"+o(t.rating.count!==1?"s":"")+") ",1)):d("",!0),t.price?(i(),r("span",ze,"· "+o(t.price),1)):d("",!0)])):t.price?(i(),r("div",Be,o(t.price),1)):d("",!0),t.eventDate||t.eventLocation?(i(),r("div",We,[t.eventDate?(i(),r("span",Ge,o(t.eventDate),1)):d("",!0),t.eventDate&&t.eventLocation?(i(),r("span",Ve,"·")):d("",!0),t.eventLocation?(i(),r("span",Fe,o(t.eventLocation),1)):d("",!0)])):d("",!0),t.features.length&&!t.rating?(i(),r("div",Qe,[(i(!0),r(x,null,S(t.features,(m,k)=>(i(),r(x,{key:k},[s("span",Je,[u(l,{name:m.icon,class:"text-xs opacity-60"},null,8,["name"]),A(" "+o(m.text),1)]),k<t.features.length-1?(i(),r("span",Ke,"·")):d("",!0)],64))),128))])):d("",!0),t.faqItems?.length?(i(),r("div",Ye,[(i(!0),r(x,null,S(t.faqItems,(m,k)=>(i(),r("div",{key:k,class:"serp-rich-faq-item"},[u(l,{name:"i-carbon-chevron-down",class:"text-xs shrink-0 opacity-60"}),s("span",Ze,o(m.question),1)]))),128))])):d("",!0)],64))),128))])],2)])]),_:1}),a(R).length?(i(),D(g,{key:0},{header:h(()=>[s("div",et,[s("div",tt,[u(l,{name:"i-carbon-star",class:"text-lg"}),e[3]||(e[3]=s("span",{class:"font-medium"},"Rich Results Preview",-1))]),u(L,{color:a(R).every(t=>t.eligibility==="eligible")?"success":a(R).some(t=>t.eligibility==="ineligible")?"error":"warning",variant:"subtle",size:"xs"},{default:h(()=>[A(o(a(R).filter(t=>t.eligibility==="eligible").length)+"/"+o(a(R).length)+" eligible ",1)]),_:1},8,["color"])])]),default:h(()=>[s("div",st,[(i(!0),r(x,null,S(a(R),(t,_)=>(i(),r("div",{key:_,class:"serp-rich-result"},[s("div",at,[s("div",it,[u(l,{name:t.icon,class:"text-sm"},null,8,["name"]),s("span",nt,o(t.type),1)]),s("div",rt,[u(L,{color:t.eligibility==="eligible"?"success":t.eligibility==="partial"?"warning":"error",variant:"subtle",size:"xs"},{default:h(()=>[A(o(t.eligibility==="eligible"?"Eligible":t.eligibility==="partial"?"Partial":"Missing required"),1)]),_:2},1032,["color"]),t.documentationUrl?(i(),r("a",{key:0,href:t.documentationUrl,target:"_blank",rel:"noopener noreferrer",class:"text-muted hover:text-default","aria-label":`Open ${t.type} rich result documentation`},[u(l,{name:"i-carbon-launch",class:"text-xs"})],8,ot)):d("",!0)])]),t.missingRequired.length?(i(),D(w,{key:0,variant:"error",class:"mb-2"},{default:h(()=>[e[4]||(e[4]=A(" Missing required: ",-1)),(i(!0),r(x,null,S(t.missingRequired,m=>(i(),r("code",{key:m,class:"bg-elevated px-1 py-0.5 rounded text-xs mx-0.5"},o(m),1))),128))]),_:2},1024)):d("",!0),s("div",lt,[t.breadcrumbs?(i(),r("div",ct,[(i(!0),r(x,null,S(t.breadcrumbs,(m,k)=>(i(),r(x,{key:k},[s("span",null,o(m),1),k<t.breadcrumbs.length-1?(i(),D(l,{key:0,name:"i-carbon-chevron-right",class:"text-[10px] mx-0.5 opacity-50"})):d("",!0)],64))),128))])):d("",!0),t.rating?(i(),r("div",ut,[s("span",dt,o(Z(t.rating.value,t.rating.max)),1),s("span",pt,o(t.rating.value)+"/"+o(t.rating.max),1),t.rating.count?(i(),r("span",mt," ("+o(t.rating.count.toLocaleString())+" review"+o(t.rating.count!==1?"s":"")+") ",1)):d("",!0),t.price?(i(),r("span",ht,"· "+o(t.price),1)):d("",!0)])):t.price?(i(),r("div",ft,o(t.price),1)):d("",!0),t.eventDate||t.eventLocation?(i(),r("div",_t,[t.eventDate?(i(),r("span",gt,o(t.eventDate),1)):d("",!0),t.eventDate&&t.eventLocation?(i(),r("span",xt,"·")):d("",!0),t.eventLocation?(i(),r("span",bt,o(t.eventLocation),1)):d("",!0)])):d("",!0),t.videoThumbnail?(i(),r("div",vt,[s("div",yt,[s("img",{src:t.videoThumbnail,alt:t.label,class:"w-full h-full object-cover rounded"},null,8,kt),s("div",St,[u(l,{name:"i-carbon-play-filled",class:"text-white text-sm"})]),t.videoDuration?(i(),r("span",Tt,o(t.videoDuration),1)):d("",!0)])])):d("",!0),t.faqItems?.length?(i(),r("div",Ct,[(i(!0),r(x,null,S(t.faqItems,(m,k)=>(i(),r("div",{key:k,class:"serp-rich-faq-item"},[u(l,{name:"i-carbon-chevron-down",class:"text-xs shrink-0 opacity-60"}),s("span",At,o(m.question),1)]))),128)),a(B).find(m=>a(P)(m)==="FAQPage")?.mainEntity?.length>4?(i(),r("div",Rt," + "+o(a(W)(a(B).find(m=>a(P)(m)==="FAQPage")?.mainEntity||[]).length-4)+" more questions ",1)):d("",!0)])):d("",!0),t.features.length?(i(),r("div",Dt,[(i(!0),r(x,null,S(t.features,(m,k)=>(i(),r(x,{key:k},[s("span",Mt,[u(l,{name:m.icon,class:"text-xs opacity-60"},null,8,["name"]),A(" "+o(m.text),1)]),k<t.features.length-1?(i(),r("span",Lt,"·")):d("",!0)],64))),128))])):d("",!0)])]))),128))])]),_:1})):d("",!0),s("div",Et,[u(g,null,{header:h(()=>[s("div",$t,[u(l,{name:"i-carbon-text-short-paragraph",class:"text-lg"}),e[5]||(e[5]=s("span",{class:"font-medium"},"Title",-1))])]),default:h(()=>[s("div",Nt,[s("div",It,[s("span",{class:C(["serp-length-status",`serp-length-status--${a(j)}`])},o(F(a(j))),3),s("span",wt,o(a(f))+"/"+o(a(v).TITLE_MAX_CHARS)+" chars · ~"+o(a(ke)(a(c).title||""))+"px ",1)]),s("div",{class:"serp-progress-track",role:"progressbar","aria-valuenow":a(f),"aria-valuemin":0,"aria-valuemax":a(v).TITLE_MAX_CHARS,"aria-label":`Title length: ${a(f)} of ${a(v).TITLE_MAX_CHARS} characters`},[s("div",{class:C(["serp-progress-fill",`serp-progress-fill--${a(j)}`]),style:H({width:`${Math.min(100,a(f)/a(v).TITLE_MAX_CHARS*100)}%`})},null,6),s("div",{class:"serp-progress-marker",style:H({left:`${30/a(v).TITLE_MAX_CHARS*100}%`})},null,4)],8,Ht),s("p",Pt,o(a(c).title||"Not set"),1)])]),_:1}),u(g,null,{header:h(()=>[s("div",jt,[u(l,{name:"i-carbon-text-align-left",class:"text-lg"}),e[6]||(e[6]=s("span",{class:"font-medium"},"Description",-1))])]),default:h(()=>[s("div",Xt,[s("div",qt,[s("span",{class:C(["serp-length-status",`serp-length-status--${a(X)}`])},o(F(a(X))),3),s("span",Ot,o(a(y))+"/"+o(a(v).DESC_MAX_CHARS)+" chars ",1)]),s("div",{class:"serp-progress-track",role:"progressbar","aria-valuenow":a(y),"aria-valuemin":0,"aria-valuemax":a(v).DESC_MAX_CHARS,"aria-label":`Description length: ${a(y)} of ${a(v).DESC_MAX_CHARS} characters`},[s("div",{class:C(["serp-progress-fill",`serp-progress-fill--${a(X)}`]),style:H({width:`${Math.min(100,a(y)/a(v).DESC_MAX_CHARS*100)}%`})},null,6),s("div",{class:"serp-progress-marker",style:H({left:`${a(v).DESC_WARN_CHARS/a(v).DESC_MAX_CHARS*100}%`})},null,4)],8,Ut),s("p",zt,o(a(c).description||"Not set"),1)])]),_:1})]),u(g,null,{header:h(()=>[s("div",Bt,[s("div",Wt,[u(l,{name:"i-carbon-task",class:"text-lg"}),e[7]||(e[7]=s("span",{class:"font-medium"},"SEO Checklist",-1))]),u(L,{color:a(I).passed===a(I).total?"success":"warning",variant:"subtle",size:"xs"},{default:h(()=>[A(o(a(I).passed)+"/"+o(a(I).total)+" passed ",1)]),_:1},8,["color"])])]),default:h(()=>[s("div",Gt,[(i(!0),r(x,null,S(a(O),t=>(i(),r("div",{key:t.label,class:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-elevated transition-colors"},[u(l,{name:U(t.status),class:C([z(t.status),"text-sm shrink-0"])},null,8,["name","class"]),s("span",Vt,o(t.label),1),s("span",Ft,o(t.detail),1)]))),128))])]),_:1}),s("div",Qt,[u(g,null,{header:h(()=>[s("div",Jt,[u(l,{name:"i-carbon-string-text",class:"text-lg"}),e[8]||(e[8]=s("span",{class:"font-medium"},"Title Template",-1))])]),default:h(()=>[a(ae)?(i(),r("div",Kt,[s("div",Yt,[s("div",Zt,[e[9]||(e[9]=s("span",{class:"text-xs text-muted shrink-0"},"Template",-1)),s("span",es,o(a(G)),1)]),s("div",ts,[e[10]||(e[10]=s("span",{class:"text-xs text-muted shrink-0"},"Separator",-1)),s("code",ss,o(a(se)),1)]),a(q)&&Object.keys(a(q)).length?(i(),r("div",as,[e[11]||(e[11]=s("span",{class:"text-xs text-muted shrink-0"},"Params",-1)),s("span",is,o(JSON.stringify(a(q))),1)])):d("",!0)]),s("div",ns,[e[12]||(e[12]=s("span",{class:"text-xs text-muted"},"Resolved title",-1)),s("p",rs,o(a(c).title||"Not set"),1)])])):(i(),r("div",os," No title template configured. The title is set directly. "))]),_:1}),u(g,null,{header:h(()=>[s("div",ls,[u(l,{name:"i-carbon-settings-adjust",class:"text-lg"}),e[13]||(e[13]=s("span",{class:"font-medium"},"Crawl Settings",-1))])]),default:h(()=>[u(p,{items:[{key:"canonical",value:a(c).canonical||void 0,copyable:!0},{key:"robots",value:a(c).robots||void 0}],striped:""},null,8,["items"]),a(c).robots?.includes("noindex")?(i(),D(w,{key:0,variant:"error",icon:"i-carbon-warning",class:"mt-3"},{default:h(()=>[...e[14]||(e[14]=[A(" This page has ",-1),s("code",{class:"bg-elevated px-1.5 py-0.5 rounded text-xs"},"noindex",-1),A(" set. It will not appear in search results. ",-1)])]),_:1})):d("",!0)]),_:1})]),a(E).length>0||a(c).ogTitle||a(c).ogDescription?(i(),D(g,{key:1},{header:h(()=>[s("div",cs,[s("div",us,[u(l,{name:"i-carbon-compare",class:"text-lg"}),e[15]||(e[15]=s("span",{class:"font-medium"},"SERP vs Open Graph",-1))]),a(E).length?(i(),D(L,{key:0,color:"info",variant:"subtle",size:"xs"},{default:h(()=>[A(o(a(E).length)+" difference"+o(a(E).length>1?"s":""),1)]),_:1})):(i(),D(L,{key:1,color:"success",variant:"subtle",size:"xs"},{default:h(()=>[...e[16]||(e[16]=[A(" Matching ",-1)])]),_:1}))])]),default:h(()=>[a(E).length?(i(),r("div",ds,[(i(!0),r(x,null,S(a(E),t=>(i(),r("div",{key:t.field,class:"space-y-1"},[s("span",ps,o(t.field),1),s("div",ms,[s("div",hs,[e[17]||(e[17]=s("span",{class:"text-[10px] text-muted uppercase tracking-wide block mb-1"},"Search",-1)),s("p",fs,o(t.serp),1)]),s("div",_s,[e[18]||(e[18]=s("span",{class:"text-[10px] text-muted uppercase tracking-wide block mb-1"},"Social",-1)),s("p",gs,o(t.og),1)])])]))),128))])):(i(),r("div",xs," Open Graph tags match your search engine metadata. Social shares will display the same content as search results. "))]),_:1})):d("",!0),u(g,null,{header:h(()=>[s("div",bs,[u(l,{name:"i-carbon-earth-americas",class:"text-lg"}),e[19]||(e[19]=s("span",{class:"font-medium"},"Search Engine Compatibility",-1))])]),default:h(()=>[s("table",vs,[e[20]||(e[20]=s("thead",{class:"sticky top-0 bg-default"},[s("tr",{class:"text-left text-muted border-b border-default"},[s("th",{class:"p-2 font-medium"}," Engine "),s("th",{class:"p-2 font-medium"}," Title "),s("th",{class:"p-2 font-medium"}," Description ")])],-1)),s("tbody",null,[(i(!0),r(x,null,S(a(ie),t=>(i(),r("tr",{key:t.key,class:"border-b border-default last:border-0 hover:bg-elevated transition-colors"},[s("td",ys,[s("div",ks,[u(l,{name:t.icon,class:"text-sm"},null,8,["name"]),s("span",null,o(t.label),1)])]),s("td",Ss,[s("div",Ts,[u(l,{name:U(t.titleStatus),class:C([z(t.titleStatus),"text-xs"])},null,8,["name","class"]),s("span",Cs,o(t.titleLen)+"/"+o(t.titleMax),1)])]),s("td",As,[s("div",Rs,[u(l,{name:U(t.descStatus),class:C([z(t.descStatus),"text-xs"])},null,8,["name","class"]),s("span",Ds,o(t.descLen)+"/"+o(t.descMax),1)])])]))),128))])])]),_:1}),a(V).length?(i(),D(g,{key:2},{header:h(()=>[s("div",Ms,[u(l,{name:"i-carbon-tag-group",class:"text-lg"}),e[21]||(e[21]=s("span",{class:"font-medium"},"Keyword Analysis",-1))])]),default:h(()=>[s("div",Ls,[(i(!0),r(x,null,S(a(V),t=>(i(),r("span",{key:t.word,class:"serp-keyword-chip"},[A(o(t.word)+" ",1),t.count>1?(i(),r("span",Es,o(t.count),1)):d("",!0)]))),128))])]),_:1})):d("",!0)])}}}),js=ce($s,[["__scopeId","data-v-d8951a96"]]);export{js as default};
|
|
1
|
+
import{G as ne,aa as i,x as r,C as u,aR as h,t as s,a5 as C,ap as a,u as D,k as re,b as x,af as S,aj as o,v as d,B as A,n as oe,a7 as H,s as b,ai as $,ad as le,i as ce}from"./CadLYmKg.js";import{_ as ue}from"./TJzlhq83.js";import{_ as de,d as P,b as W,e as ee,j as pe,a as me,n as he,c as fe,h as _e}from"./-B2KnILi.js";import{a as ge}from"./BekyTchD.js";import"./BecSrPKt.js";const xe=/[^\w\s]/g,be=/\s+/,v={TITLE_MAX_CHARS:60,TITLE_WARN_CHARS:50,TITLE_MAX_PIXELS:580,DESC_MAX_CHARS:160,DESC_WARN_CHARS:150,DESC_MAX_PIXELS:920},te={google:{label:"Google",titleMax:60,descMax:160,icon:"i-carbon-search"},bing:{label:"Bing",titleMax:65,descMax:150,icon:"i-carbon-search-locate"},duckduckgo:{label:"DuckDuckGo",titleMax:65,descMax:150,icon:"i-carbon-search-locate-mirror"},ai:{label:"AI Search",titleMax:70,descMax:200,icon:"i-carbon-machine-learning-model"}},ve=new Set(["a","an","the","and","or","but","in","on","at","to","for","of","with","by","is","are","was","were","be","been","being","have","has","had","do","does","did","will","would","could","should","may","might","can","shall","it","its","this","that","these","those","i","we","you","he","she","they","me","us","him","her","them","my","our","your","his","their","from","not","no","so","if","as","up","out","about","into","over","after","how","all","new","more","when","who","what","where"]);function ye(T){const N=T.toLowerCase().replace(xe,"").split(be).filter(Boolean),c=new Map;for(const f of N)f.length<2||ve.has(f)||c.set(f,(c.get(f)||0)+1);return[...c.entries()].map(([f,y])=>({word:f,count:y})).sort((f,y)=>y.count-f.count)}function ke(T,N=16){return Math.round(T.length*N*.55)}function Se(T){return T>v.TITLE_MAX_CHARS?"error":T<30?"warning":"success"}function Te(T){return T>v.DESC_MAX_CHARS?"error":T>v.DESC_WARN_CHARS||T<70?"warning":"success"}const Ce={class:"space-y-4"},Ae={class:"flex items-center justify-between"},Re={class:"flex items-center gap-2"},De={class:"flex items-center gap-1"},Me=["aria-pressed"],Le=["aria-pressed"],Ee={class:"flex justify-center"},$e={class:"serp-preview"},Ne={class:"flex items-center gap-3 mb-2"},Ie={class:"w-[26px] h-[26px] rounded-full flex items-center justify-center bg-neutral-100 dark:bg-neutral-800 overflow-hidden"},we=["src"],He={key:0,class:"serp-rich-breadcrumbs"},Pe={key:1,class:"text-xs text-neutral-600 dark:text-[#bdc1c6] leading-tight truncate"},je={class:"serp-preview__description"},Xe={key:0,class:"flex items-center gap-1.5 mt-1"},qe={class:"serp-rich-stars"},Oe={class:"text-xs serp-rich-rating-text"},Ue={key:0,class:"text-xs serp-rich-rating-text"},ze={key:1,class:"text-xs serp-rich-rating-text ml-1"},Be={key:1,class:"text-xs serp-rich-rating-text mt-1"},We={key:2,class:"flex items-center gap-2 text-xs serp-rich-detail mt-1"},Ge={key:0},Ve={key:1,class:"opacity-40"},Fe={key:2},Qe={key:3,class:"flex flex-wrap items-center gap-2 text-xs serp-rich-detail mt-1"},Je={class:"flex items-center gap-1"},Ke={key:0,class:"opacity-30"},Ye={key:4,class:"serp-rich-faq mt-2"},Ze={class:"text-xs"},et={class:"flex items-center justify-between"},tt={class:"flex items-center gap-2"},st={class:"space-y-3"},at={class:"flex items-center justify-between mb-2"},it={class:"flex items-center gap-2"},nt={class:"text-xs font-medium"},rt={class:"flex items-center gap-2"},ot=["href","aria-label"],lt={class:"serp-rich-mockup"},ct={key:0,class:"serp-rich-breadcrumbs"},ut={key:1,class:"flex items-center gap-1.5"},dt={class:"serp-rich-stars"},pt={class:"text-xs serp-rich-rating-text"},mt={key:0,class:"text-xs serp-rich-rating-text"},ht={key:1,class:"text-xs serp-rich-rating-text ml-1"},ft={key:2,class:"text-xs serp-rich-rating-text"},_t={key:3,class:"flex items-center gap-2 text-xs serp-rich-detail"},gt={key:0},xt={key:1,class:"opacity-40"},bt={key:2},vt={key:4,class:"flex items-center gap-2 mt-1"},yt={class:"serp-rich-video-thumb"},kt=["src","alt"],St={class:"serp-rich-video-play"},Tt={key:0,class:"serp-rich-video-duration"},Ct={key:5,class:"serp-rich-faq"},At={class:"text-xs"},Rt={key:0,class:"text-xs serp-rich-rating-text mt-1"},Dt={key:6,class:"flex flex-wrap items-center gap-2 text-xs serp-rich-detail"},Mt={class:"flex items-center gap-1"},Lt={key:0,class:"opacity-30"},Et={class:"grid md:grid-cols-2 gap-4"},$t={class:"flex items-center gap-2"},Nt={class:"space-y-3"},It={class:"flex items-center justify-between"},wt={class:"text-xs font-mono text-muted"},Ht=["aria-valuenow","aria-valuemax","aria-label"],Pt={class:"text-xs text-muted truncate"},jt={class:"flex items-center gap-2"},Xt={class:"space-y-3"},qt={class:"flex items-center justify-between"},Ot={class:"text-xs font-mono text-muted"},Ut=["aria-valuenow","aria-valuemax","aria-label"],zt={class:"text-xs text-muted truncate"},Bt={class:"flex items-center justify-between"},Wt={class:"flex items-center gap-2"},Gt={class:"space-y-1"},Vt={class:"text-sm font-mono"},Ft={class:"text-xs text-muted ml-auto truncate max-w-[250px]"},Qt={class:"grid md:grid-cols-2 gap-4"},Jt={class:"flex items-center gap-2"},Kt={key:0,class:"space-y-3"},Yt={class:"space-y-1"},Zt={class:"flex items-center gap-2 px-2 py-1.5 rounded-md bg-elevated"},es={class:"text-sm font-mono ml-auto truncate"},ts={class:"flex items-center gap-2 px-2 py-1.5 rounded-md"},ss={class:"text-sm font-mono ml-auto bg-elevated px-1.5 py-0.5 rounded"},as={key:0,class:"flex items-center gap-2 px-2 py-1.5 rounded-md bg-elevated"},is={class:"text-xs font-mono ml-auto truncate max-w-[200px]"},ns={class:"border-t border-default pt-2"},rs={class:"text-sm font-mono mt-1"},os={key:1,class:"text-sm text-muted"},ls={class:"flex items-center gap-2"},cs={class:"flex items-center justify-between"},us={class:"flex items-center gap-2"},ds={key:0,class:"space-y-3"},ps={class:"text-xs font-medium text-muted uppercase tracking-wide"},ms={class:"grid grid-cols-2 gap-2"},hs={class:"bg-elevated rounded-md p-2"},fs={class:"text-xs font-mono truncate"},_s={class:"bg-elevated rounded-md p-2"},gs={class:"text-xs font-mono truncate"},xs={key:1,class:"text-sm text-muted"},bs={class:"flex items-center gap-2"},vs={class:"w-full text-sm"},ys={class:"p-2"},ks={class:"flex items-center gap-1.5"},Ss={class:"p-2"},Ts={class:"flex items-center gap-1.5"},Cs={class:"font-mono text-xs"},As={class:"p-2"},Rs={class:"flex items-center gap-1.5"},Ds={class:"font-mono text-xs"},Ms={class:"flex items-center gap-2"},Ls={class:"flex flex-wrap gap-2"},Es={key:0,class:"serp-keyword-count"},$s=ne({__name:"serp",setup(T){const N=/PT(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?/,c=b(()=>$.value.seo),f=b(()=>c.value.title?.length||0),y=b(()=>c.value.description?.length||0),j=b(()=>Se(f.value)),X=b(()=>Te(y.value)),M=le("desktop"),G=b(()=>$.value.titleTemplate),q=b(()=>$.value.templateParams),se=b(()=>$.value.separator||"|"),ae=b(()=>!!G.value),O=b(()=>{const n=[];return c.value.title?f.value>v.TITLE_MAX_CHARS?n.push({label:"Title",status:"error",detail:`Too long (${f.value}/${v.TITLE_MAX_CHARS})`}):f.value<30?n.push({label:"Title",status:"warning",detail:`Too short (${f.value} chars)`}):n.push({label:"Title",status:"success",detail:`${f.value} chars`}):n.push({label:"Title",status:"error",detail:"Missing"}),c.value.description?y.value>v.DESC_MAX_CHARS?n.push({label:"Description",status:"error",detail:`Too long (${y.value}/${v.DESC_MAX_CHARS})`}):y.value<70?n.push({label:"Description",status:"warning",detail:`Too short (${y.value} chars)`}):n.push({label:"Description",status:"success",detail:`${y.value} chars`}):n.push({label:"Description",status:"error",detail:"Missing"}),c.value.canonical?n.push({label:"Canonical URL",status:"success",detail:c.value.canonical}):n.push({label:"Canonical URL",status:"warning",detail:"Not set"}),c.value.robots?c.value.robots.includes("noindex")?n.push({label:"Robots",status:"error",detail:`noindex detected: ${c.value.robots}`}):n.push({label:"Robots",status:"success",detail:c.value.robots}):n.push({label:"Robots",status:"warning",detail:"Not set (defaults to index, follow)"}),c.value.ogTitle?n.push({label:"og:title",status:"success",detail:c.value.ogTitle}):n.push({label:"og:title",status:"warning",detail:"Not set (falls back to title)"}),c.value.ogDescription?n.push({label:"og:description",status:"success",detail:c.value.ogDescription}):n.push({label:"og:description",status:"warning",detail:"Not set (falls back to description)"}),c.value.ogImage?n.push({label:"og:image",status:"success",detail:c.value.ogImage}):n.push({label:"og:image",status:"error",detail:"Missing"}),n}),I=b(()=>{const n=O.value.length;return{passed:O.value.filter(l=>l.status==="success").length,total:n}}),E=b(()=>{const n=[];return c.value.ogTitle&&c.value.title&&c.value.ogTitle!==c.value.title&&n.push({field:"Title",serp:c.value.title,og:c.value.ogTitle}),c.value.ogDescription&&c.value.description&&c.value.ogDescription!==c.value.description&&n.push({field:"Description",serp:c.value.description,og:c.value.ogDescription}),n}),V=b(()=>{const n=`${c.value.title||""} ${c.value.description||""}`;return ye(n).slice(0,10)}),ie=b(()=>Object.keys(te).map(n=>{const e=te[n],l=f.value>e.titleMax?"error":f.value<30?"warning":"success",g=y.value>e.descMax?"error":y.value<70?"warning":"success";return{key:n,...e,titleStatus:l,descStatus:g,titleLen:f.value,descLen:y.value}}));function F(n){return n==="success"?"Good":n==="warning"?"Needs work":"Too long"}function U(n){return n==="success"?"i-carbon-checkmark-filled":n==="warning"?"i-carbon-warning-filled":"i-carbon-close-filled"}function z(n){return n==="success"?"text-green-500":n==="warning"?"text-amber-400":"text-red-400"}const Q=b(()=>{const n=$.value.tags.filter(e=>e.tag==="script"&&e.props?.type==="application/ld+json").flatMap(e=>{try{return[JSON.parse(e.innerHTML||"{}")]}catch{return[]}});return n.length?n.length===1?n[0]:{"@graph":n.flatMap(e=>ee(e))}:null}),B=b(()=>Q.value?ee(Q.value).filter(e=>pe(P(e))):[]),J=b(()=>{const n=$.value.tags.filter(l=>l.tag==="link"&&["icon"].includes(l.props?.rel||""));return n.find(l=>l.props?.href?.includes("favicon.ico"))?.props?.href||n[0]?.props?.href||null}),R=b(()=>{const n=new Set;return B.value.map(e=>{const l=P(e),g=me(e),L=he(l),w=g.missingRequired.length>0?"ineligible":g.missingRecommended.length>0?"partial":"eligible",p={type:l,icon:_e(l),label:fe(e),features:[],eligibility:w,missingRequired:g.missingRequired,documentationUrl:L.googlePage||void 0},t=e.aggregateRating||e.reviewRating;switch(t&&(p.rating={value:Number(t.ratingValue||0),count:Number(t.ratingCount||t.reviewCount||0),max:Number(t.bestRating||5)}),l){case"Product":{const _=e.offers?.[0]||e.offers||{};_.price&&(p.price=`${_.priceCurrency||"$"}${_.price}`),_.availability&&p.features.push({icon:"i-carbon-delivery-truck",text:_.availability.replace("https://schema.org/","")});break}case"Recipe":{(e.totalTime||e.cookTime)&&p.features.push({icon:"i-carbon-time",text:K(e.totalTime||e.cookTime)}),e.recipeYield&&p.features.push({icon:"i-carbon-restaurant",text:`Serves ${e.recipeYield}`}),e.nutrition?.calories&&p.features.push({icon:"i-carbon-meter",text:e.nutrition.calories});break}case"Event":{e.startDate&&(p.eventDate=Y(e.startDate)),(e.location?.name||e.location?.address?.addressLocality)&&(p.eventLocation=e.location.name||e.location.address.addressLocality);break}case"FAQPage":{const _=W(e.mainEntity||[]);p.faqItems=_.slice(0,4).map(m=>({question:m.name||m.text||"Question"}));break}case"BreadcrumbList":{const _=W(e.itemListElement||[]).sort((m,k)=>(m.position||0)-(k.position||0));p.breadcrumbs=_.map(m=>m.name||m.item?.name||"Page").slice(0,5);break}case"VideoObject":{p.videoThumbnail=e.thumbnailUrl,e.duration&&(p.videoDuration=K(e.duration));break}case"Article":case"NewsArticle":case"BlogPosting":{e.datePublished&&p.features.push({icon:"i-carbon-calendar",text:Y(e.datePublished)}),e.author?.name&&p.features.push({icon:"i-carbon-user",text:e.author.name});break}case"JobPosting":{e.hiringOrganization?.name&&p.features.push({icon:"i-carbon-building",text:e.hiringOrganization.name}),e.baseSalary?.value&&p.features.push({icon:"i-carbon-currency",text:`${e.baseSalary.currency||""}${e.baseSalary.value}`}),e.jobLocation?.address?.addressLocality&&p.features.push({icon:"i-carbon-location",text:e.jobLocation.address.addressLocality});break}case"LocalBusiness":case"Restaurant":{(e.address?.streetAddress||e.address?.addressLocality)&&p.features.push({icon:"i-carbon-location",text:e.address.streetAddress||e.address.addressLocality}),e.telephone&&p.features.push({icon:"i-carbon-phone",text:e.telephone}),e.priceRange&&p.features.push({icon:"i-carbon-currency",text:e.priceRange});break}case"SoftwareApplication":{e.applicationCategory&&p.features.push({icon:"i-carbon-category",text:e.applicationCategory});const _=e.offers?.[0]||e.offers||{};_.price&&(p.price=_.price==="0"?"Free":`${_.priceCurrency||"$"}${_.price}`);break}case"Course":{e.provider?.name&&p.features.push({icon:"i-carbon-education",text:e.provider.name});break}case"Organization":{e.name&&p.features.push({icon:"i-carbon-building",text:e.name}),e.url&&p.features.push({icon:"i-carbon-link",text:e.url}),e.telephone&&p.features.push({icon:"i-carbon-phone",text:e.telephone});break}case"SearchAction":{e.target&&p.features.push({icon:"i-carbon-search",text:typeof e.target=="string"?e.target:e.target?.urlTemplate||"Sitelinks searchbox"});break}case"WebSite":{e.name&&p.features.push({icon:"i-carbon-globe",text:e.name}),e.url&&p.features.push({icon:"i-carbon-link",text:e.url});break}}return p}).filter(e=>{const l=`${e.type}::${e.label}::${e.features.find(g=>g.icon==="i-carbon-link")?.text||""}`;return n.has(l)?!1:(n.add(l),!0)})});function K(n){if(!n)return"";const e=n.match(N);if(!e)return n;const l=[];return e[1]&&l.push(`${e[1]}h`),e[2]&&l.push(`${e[2]}m`),e[3]&&!e[1]&&l.push(`${e[3]}s`),l.join(" ")||n}function Y(n){try{return new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}catch{return n}}function Z(n,e=5){const l=Math.round(n);return"★".repeat(Math.min(l,e))+"☆".repeat(Math.max(0,e-l))}return(n,e)=>{const l=re,g=ue,L=oe,w=de,p=ge;return i(),r("div",Ce,[u(g,null,{header:h(()=>[s("div",Ae,[s("div",Re,[u(l,{name:"i-carbon-search",class:"text-lg"}),e[2]||(e[2]=s("span",{class:"font-medium"},"Google Search Preview",-1))]),s("div",De,[s("button",{type:"button","aria-label":"Desktop preview","aria-pressed":a(M)==="desktop",class:C(["px-2 py-1 text-xs rounded",a(M)==="desktop"?"bg-elevated font-medium":"text-muted"]),onClick:e[0]||(e[0]=t=>M.value="desktop")},[u(l,{name:"i-carbon-laptop",class:"text-sm"})],10,Me),s("button",{type:"button","aria-label":"Mobile preview","aria-pressed":a(M)==="mobile",class:C(["px-2 py-1 text-xs rounded",a(M)==="mobile"?"bg-elevated font-medium":"text-muted"]),onClick:e[1]||(e[1]=t=>M.value="mobile")},[u(l,{name:"i-carbon-mobile",class:"text-sm"})],10,Le)])])]),default:h(()=>[s("div",Ee,[s("div",{class:C(["serp-preview-container transition-all duration-300",a(M)==="mobile"?"serp-preview-container--mobile":""])},[s("div",$e,[s("div",Ne,[s("div",Ie,[a(J)?(i(),r("img",{key:0,src:a(J),alt:"",class:"w-3.5 h-3.5 object-contain"},null,8,we)):(i(),D(l,{key:1,name:"i-carbon-earth",class:"w-3.5 h-3.5 text-neutral-400"}))]),a(R).find(t=>t.breadcrumbs)?(i(),r("div",He,[(i(!0),r(x,null,S(a(R).find(t=>t.breadcrumbs).breadcrumbs,(t,_)=>(i(),r(x,{key:_},[s("span",null,o(t),1),_<a(R).find(m=>m.breadcrumbs).breadcrumbs.length-1?(i(),D(l,{key:0,name:"i-carbon-chevron-right",class:"text-[10px] mx-0.5 opacity-50"})):d("",!0)],64))),128))])):(i(),r("div",Pe,o(a(c).canonical||"example.com"),1))]),s("h3",{class:C(["serp-preview__title",a(M)==="mobile"?"serp-preview__title--mobile":""])},o(a(c).title||"No title found"),3),s("p",je,o(a(c).description||"No description found"),1),(i(!0),r(x,null,S(a(R),(t,_)=>(i(),r(x,{key:`inline-${_}`},[t.rating?(i(),r("div",Xe,[s("span",qe,o(Z(t.rating.value,t.rating.max)),1),s("span",Oe,o(t.rating.value)+"/"+o(t.rating.max),1),t.rating.count?(i(),r("span",Ue," ("+o(t.rating.count.toLocaleString())+" review"+o(t.rating.count!==1?"s":"")+") ",1)):d("",!0),t.price?(i(),r("span",ze,"· "+o(t.price),1)):d("",!0)])):t.price?(i(),r("div",Be,o(t.price),1)):d("",!0),t.eventDate||t.eventLocation?(i(),r("div",We,[t.eventDate?(i(),r("span",Ge,o(t.eventDate),1)):d("",!0),t.eventDate&&t.eventLocation?(i(),r("span",Ve,"·")):d("",!0),t.eventLocation?(i(),r("span",Fe,o(t.eventLocation),1)):d("",!0)])):d("",!0),t.features.length&&!t.rating?(i(),r("div",Qe,[(i(!0),r(x,null,S(t.features,(m,k)=>(i(),r(x,{key:k},[s("span",Je,[u(l,{name:m.icon,class:"text-xs opacity-60"},null,8,["name"]),A(" "+o(m.text),1)]),k<t.features.length-1?(i(),r("span",Ke,"·")):d("",!0)],64))),128))])):d("",!0),t.faqItems?.length?(i(),r("div",Ye,[(i(!0),r(x,null,S(t.faqItems,(m,k)=>(i(),r("div",{key:k,class:"serp-rich-faq-item"},[u(l,{name:"i-carbon-chevron-down",class:"text-xs shrink-0 opacity-60"}),s("span",Ze,o(m.question),1)]))),128))])):d("",!0)],64))),128))])],2)])]),_:1}),a(R).length?(i(),D(g,{key:0},{header:h(()=>[s("div",et,[s("div",tt,[u(l,{name:"i-carbon-star",class:"text-lg"}),e[3]||(e[3]=s("span",{class:"font-medium"},"Rich Results Preview",-1))]),u(L,{color:a(R).every(t=>t.eligibility==="eligible")?"success":a(R).some(t=>t.eligibility==="ineligible")?"error":"warning",variant:"subtle",size:"xs"},{default:h(()=>[A(o(a(R).filter(t=>t.eligibility==="eligible").length)+"/"+o(a(R).length)+" eligible ",1)]),_:1},8,["color"])])]),default:h(()=>[s("div",st,[(i(!0),r(x,null,S(a(R),(t,_)=>(i(),r("div",{key:_,class:"serp-rich-result"},[s("div",at,[s("div",it,[u(l,{name:t.icon,class:"text-sm"},null,8,["name"]),s("span",nt,o(t.type),1)]),s("div",rt,[u(L,{color:t.eligibility==="eligible"?"success":t.eligibility==="partial"?"warning":"error",variant:"subtle",size:"xs"},{default:h(()=>[A(o(t.eligibility==="eligible"?"Eligible":t.eligibility==="partial"?"Partial":"Missing required"),1)]),_:2},1032,["color"]),t.documentationUrl?(i(),r("a",{key:0,href:t.documentationUrl,target:"_blank",rel:"noopener noreferrer",class:"text-muted hover:text-default","aria-label":`Open ${t.type} rich result documentation`},[u(l,{name:"i-carbon-launch",class:"text-xs"})],8,ot)):d("",!0)])]),t.missingRequired.length?(i(),D(w,{key:0,variant:"error",class:"mb-2"},{default:h(()=>[e[4]||(e[4]=A(" Missing required: ",-1)),(i(!0),r(x,null,S(t.missingRequired,m=>(i(),r("code",{key:m,class:"bg-elevated px-1 py-0.5 rounded text-xs mx-0.5"},o(m),1))),128))]),_:2},1024)):d("",!0),s("div",lt,[t.breadcrumbs?(i(),r("div",ct,[(i(!0),r(x,null,S(t.breadcrumbs,(m,k)=>(i(),r(x,{key:k},[s("span",null,o(m),1),k<t.breadcrumbs.length-1?(i(),D(l,{key:0,name:"i-carbon-chevron-right",class:"text-[10px] mx-0.5 opacity-50"})):d("",!0)],64))),128))])):d("",!0),t.rating?(i(),r("div",ut,[s("span",dt,o(Z(t.rating.value,t.rating.max)),1),s("span",pt,o(t.rating.value)+"/"+o(t.rating.max),1),t.rating.count?(i(),r("span",mt," ("+o(t.rating.count.toLocaleString())+" review"+o(t.rating.count!==1?"s":"")+") ",1)):d("",!0),t.price?(i(),r("span",ht,"· "+o(t.price),1)):d("",!0)])):t.price?(i(),r("div",ft,o(t.price),1)):d("",!0),t.eventDate||t.eventLocation?(i(),r("div",_t,[t.eventDate?(i(),r("span",gt,o(t.eventDate),1)):d("",!0),t.eventDate&&t.eventLocation?(i(),r("span",xt,"·")):d("",!0),t.eventLocation?(i(),r("span",bt,o(t.eventLocation),1)):d("",!0)])):d("",!0),t.videoThumbnail?(i(),r("div",vt,[s("div",yt,[s("img",{src:t.videoThumbnail,alt:t.label,class:"w-full h-full object-cover rounded"},null,8,kt),s("div",St,[u(l,{name:"i-carbon-play-filled",class:"text-white text-sm"})]),t.videoDuration?(i(),r("span",Tt,o(t.videoDuration),1)):d("",!0)])])):d("",!0),t.faqItems?.length?(i(),r("div",Ct,[(i(!0),r(x,null,S(t.faqItems,(m,k)=>(i(),r("div",{key:k,class:"serp-rich-faq-item"},[u(l,{name:"i-carbon-chevron-down",class:"text-xs shrink-0 opacity-60"}),s("span",At,o(m.question),1)]))),128)),a(B).find(m=>a(P)(m)==="FAQPage")?.mainEntity?.length>4?(i(),r("div",Rt," + "+o(a(W)(a(B).find(m=>a(P)(m)==="FAQPage")?.mainEntity||[]).length-4)+" more questions ",1)):d("",!0)])):d("",!0),t.features.length?(i(),r("div",Dt,[(i(!0),r(x,null,S(t.features,(m,k)=>(i(),r(x,{key:k},[s("span",Mt,[u(l,{name:m.icon,class:"text-xs opacity-60"},null,8,["name"]),A(" "+o(m.text),1)]),k<t.features.length-1?(i(),r("span",Lt,"·")):d("",!0)],64))),128))])):d("",!0)])]))),128))])]),_:1})):d("",!0),s("div",Et,[u(g,null,{header:h(()=>[s("div",$t,[u(l,{name:"i-carbon-text-short-paragraph",class:"text-lg"}),e[5]||(e[5]=s("span",{class:"font-medium"},"Title",-1))])]),default:h(()=>[s("div",Nt,[s("div",It,[s("span",{class:C(["serp-length-status",`serp-length-status--${a(j)}`])},o(F(a(j))),3),s("span",wt,o(a(f))+"/"+o(a(v).TITLE_MAX_CHARS)+" chars · ~"+o(a(ke)(a(c).title||""))+"px ",1)]),s("div",{class:"serp-progress-track",role:"progressbar","aria-valuenow":a(f),"aria-valuemin":0,"aria-valuemax":a(v).TITLE_MAX_CHARS,"aria-label":`Title length: ${a(f)} of ${a(v).TITLE_MAX_CHARS} characters`},[s("div",{class:C(["serp-progress-fill",`serp-progress-fill--${a(j)}`]),style:H({width:`${Math.min(100,a(f)/a(v).TITLE_MAX_CHARS*100)}%`})},null,6),s("div",{class:"serp-progress-marker",style:H({left:`${30/a(v).TITLE_MAX_CHARS*100}%`})},null,4)],8,Ht),s("p",Pt,o(a(c).title||"Not set"),1)])]),_:1}),u(g,null,{header:h(()=>[s("div",jt,[u(l,{name:"i-carbon-text-align-left",class:"text-lg"}),e[6]||(e[6]=s("span",{class:"font-medium"},"Description",-1))])]),default:h(()=>[s("div",Xt,[s("div",qt,[s("span",{class:C(["serp-length-status",`serp-length-status--${a(X)}`])},o(F(a(X))),3),s("span",Ot,o(a(y))+"/"+o(a(v).DESC_MAX_CHARS)+" chars ",1)]),s("div",{class:"serp-progress-track",role:"progressbar","aria-valuenow":a(y),"aria-valuemin":0,"aria-valuemax":a(v).DESC_MAX_CHARS,"aria-label":`Description length: ${a(y)} of ${a(v).DESC_MAX_CHARS} characters`},[s("div",{class:C(["serp-progress-fill",`serp-progress-fill--${a(X)}`]),style:H({width:`${Math.min(100,a(y)/a(v).DESC_MAX_CHARS*100)}%`})},null,6),s("div",{class:"serp-progress-marker",style:H({left:`${a(v).DESC_WARN_CHARS/a(v).DESC_MAX_CHARS*100}%`})},null,4)],8,Ut),s("p",zt,o(a(c).description||"Not set"),1)])]),_:1})]),u(g,null,{header:h(()=>[s("div",Bt,[s("div",Wt,[u(l,{name:"i-carbon-task",class:"text-lg"}),e[7]||(e[7]=s("span",{class:"font-medium"},"SEO Checklist",-1))]),u(L,{color:a(I).passed===a(I).total?"success":"warning",variant:"subtle",size:"xs"},{default:h(()=>[A(o(a(I).passed)+"/"+o(a(I).total)+" passed ",1)]),_:1},8,["color"])])]),default:h(()=>[s("div",Gt,[(i(!0),r(x,null,S(a(O),t=>(i(),r("div",{key:t.label,class:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-elevated transition-colors"},[u(l,{name:U(t.status),class:C([z(t.status),"text-sm shrink-0"])},null,8,["name","class"]),s("span",Vt,o(t.label),1),s("span",Ft,o(t.detail),1)]))),128))])]),_:1}),s("div",Qt,[u(g,null,{header:h(()=>[s("div",Jt,[u(l,{name:"i-carbon-string-text",class:"text-lg"}),e[8]||(e[8]=s("span",{class:"font-medium"},"Title Template",-1))])]),default:h(()=>[a(ae)?(i(),r("div",Kt,[s("div",Yt,[s("div",Zt,[e[9]||(e[9]=s("span",{class:"text-xs text-muted shrink-0"},"Template",-1)),s("span",es,o(a(G)),1)]),s("div",ts,[e[10]||(e[10]=s("span",{class:"text-xs text-muted shrink-0"},"Separator",-1)),s("code",ss,o(a(se)),1)]),a(q)&&Object.keys(a(q)).length?(i(),r("div",as,[e[11]||(e[11]=s("span",{class:"text-xs text-muted shrink-0"},"Params",-1)),s("span",is,o(JSON.stringify(a(q))),1)])):d("",!0)]),s("div",ns,[e[12]||(e[12]=s("span",{class:"text-xs text-muted"},"Resolved title",-1)),s("p",rs,o(a(c).title||"Not set"),1)])])):(i(),r("div",os," No title template configured. The title is set directly. "))]),_:1}),u(g,null,{header:h(()=>[s("div",ls,[u(l,{name:"i-carbon-settings-adjust",class:"text-lg"}),e[13]||(e[13]=s("span",{class:"font-medium"},"Crawl Settings",-1))])]),default:h(()=>[u(p,{items:[{key:"canonical",value:a(c).canonical||void 0,copyable:!0},{key:"robots",value:a(c).robots||void 0}],striped:""},null,8,["items"]),a(c).robots?.includes("noindex")?(i(),D(w,{key:0,variant:"error",icon:"i-carbon-warning",class:"mt-3"},{default:h(()=>[...e[14]||(e[14]=[A(" This page has ",-1),s("code",{class:"bg-elevated px-1.5 py-0.5 rounded text-xs"},"noindex",-1),A(" set. It will not appear in search results. ",-1)])]),_:1})):d("",!0)]),_:1})]),a(E).length>0||a(c).ogTitle||a(c).ogDescription?(i(),D(g,{key:1},{header:h(()=>[s("div",cs,[s("div",us,[u(l,{name:"i-carbon-compare",class:"text-lg"}),e[15]||(e[15]=s("span",{class:"font-medium"},"SERP vs Open Graph",-1))]),a(E).length?(i(),D(L,{key:0,color:"info",variant:"subtle",size:"xs"},{default:h(()=>[A(o(a(E).length)+" difference"+o(a(E).length>1?"s":""),1)]),_:1})):(i(),D(L,{key:1,color:"success",variant:"subtle",size:"xs"},{default:h(()=>[...e[16]||(e[16]=[A(" Matching ",-1)])]),_:1}))])]),default:h(()=>[a(E).length?(i(),r("div",ds,[(i(!0),r(x,null,S(a(E),t=>(i(),r("div",{key:t.field,class:"space-y-1"},[s("span",ps,o(t.field),1),s("div",ms,[s("div",hs,[e[17]||(e[17]=s("span",{class:"text-[10px] text-muted uppercase tracking-wide block mb-1"},"Search",-1)),s("p",fs,o(t.serp),1)]),s("div",_s,[e[18]||(e[18]=s("span",{class:"text-[10px] text-muted uppercase tracking-wide block mb-1"},"Social",-1)),s("p",gs,o(t.og),1)])])]))),128))])):(i(),r("div",xs," Open Graph tags match your search engine metadata. Social shares will display the same content as search results. "))]),_:1})):d("",!0),u(g,null,{header:h(()=>[s("div",bs,[u(l,{name:"i-carbon-earth-americas",class:"text-lg"}),e[19]||(e[19]=s("span",{class:"font-medium"},"Search Engine Compatibility",-1))])]),default:h(()=>[s("table",vs,[e[20]||(e[20]=s("thead",{class:"sticky top-0 bg-default"},[s("tr",{class:"text-left text-muted border-b border-default"},[s("th",{class:"p-2 font-medium"}," Engine "),s("th",{class:"p-2 font-medium"}," Title "),s("th",{class:"p-2 font-medium"}," Description ")])],-1)),s("tbody",null,[(i(!0),r(x,null,S(a(ie),t=>(i(),r("tr",{key:t.key,class:"border-b border-default last:border-0 hover:bg-elevated transition-colors"},[s("td",ys,[s("div",ks,[u(l,{name:t.icon,class:"text-sm"},null,8,["name"]),s("span",null,o(t.label),1)])]),s("td",Ss,[s("div",Ts,[u(l,{name:U(t.titleStatus),class:C([z(t.titleStatus),"text-xs"])},null,8,["name","class"]),s("span",Cs,o(t.titleLen)+"/"+o(t.titleMax),1)])]),s("td",As,[s("div",Rs,[u(l,{name:U(t.descStatus),class:C([z(t.descStatus),"text-xs"])},null,8,["name","class"]),s("span",Ds,o(t.descLen)+"/"+o(t.descMax),1)])])]))),128))])])]),_:1}),a(V).length?(i(),D(g,{key:2},{header:h(()=>[s("div",Ms,[u(l,{name:"i-carbon-tag-group",class:"text-lg"}),e[21]||(e[21]=s("span",{class:"font-medium"},"Keyword Analysis",-1))])]),default:h(()=>[s("div",Ls,[(i(!0),r(x,null,S(a(V),t=>(i(),r("span",{key:t.word,class:"serp-keyword-chip"},[A(o(t.word)+" ",1),t.count>1?(i(),r("span",Es,o(t.count),1)):d("",!0)]))),128))])]),_:1})):d("",!0)])}}}),js=ce($s,[["__scopeId","data-v-d8951a96"]]);export{js as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as c,aa as o,x as n,t as l,i as a,u as r}from"./
|
|
1
|
+
import{G as c,aa as o,x as n,t as l,i as a,u as r}from"./CadLYmKg.js";const _={class:"h-full max-h-full overflow-hidden"},u=["src","title"],i=c({__name:"DevtoolsDocs",props:{url:{}},setup(e){return(s,t)=>(o(),n("div",_,[l("iframe",{src:e.url,title:`Documentation: ${e.url}`,class:"w-full h-full border-none",style:{"min-height":"calc(100vh - 100px)"}},null,8,u)]))}}),f=Object.assign(i,{__name:"DevtoolsDocs"}),m={};function d(e,s){const t=f;return o(),r(t,{url:"https://unhead.unjs.io"})}const p=a(m,[["render",d]]);export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aM as y,av as g,ar as h,aa as i,u as b,aR as x,ap as t,x as l,a5 as o,ag as d,B as u,aj as c,v as n,g as k,s as C,ao as p}from"./
|
|
1
|
+
import{aM as y,av as g,ar as h,aa as i,u as b,aR as x,ap as t,x as l,a5 as o,ag as d,B as u,aj as c,v as n,g as k,s as C,ao as p}from"./CadLYmKg.js";const q={slots:{root:"rounded-lg overflow-hidden",header:"p-4 sm:px-6",title:"text-highlighted font-semibold",description:"mt-1 text-muted text-sm",body:"p-4 sm:p-6",footer:"p-4 sm:px-6"},variants:{variant:{solid:{root:"bg-inverted text-inverted",title:"text-inverted",description:"text-dimmed"},outline:{root:"bg-default ring ring-default divide-y divide-default"},soft:{root:"bg-elevated/50 divide-y divide-default"},subtle:{root:"bg-elevated/50 ring ring-default divide-y divide-default"}}},defaultVariants:{variant:"outline"}},B={__name:"UCard",props:{as:{type:null,required:!1},title:{type:String,required:!1},description:{type:String,required:!1},variant:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(v){const f=v,s=y(),e=g("card",f),m=h(),a=C(()=>p({extend:p(q),...m.ui?.card||{}})({variant:e.variant}));return(r,S)=>(i(),b(t(k),{as:t(e).as,"data-slot":"root",class:o(a.value.root({class:[t(e).ui?.root,t(e).class]}))},{default:x(()=>[s.header||t(e).title||s.title||t(e).description||s.description?(i(),l("div",{key:0,"data-slot":"header",class:o(a.value.header({class:t(e).ui?.header}))},[d(r.$slots,"header",{},()=>[t(e).title||s.title?(i(),l("div",{key:0,"data-slot":"title",class:o(a.value.title({class:t(e).ui?.title}))},[d(r.$slots,"title",{},()=>[u(c(t(e).title),1)])],2)):n("",!0),t(e).description||s.description?(i(),l("div",{key:1,"data-slot":"description",class:o(a.value.description({class:t(e).ui?.description}))},[d(r.$slots,"description",{},()=>[u(c(t(e).description),1)])],2)):n("",!0)])],2)):n("",!0),s.default?(i(),l("div",{key:1,"data-slot":"body",class:o(a.value.body({class:t(e).ui?.body}))},[d(r.$slots,"default")],2)):n("",!0),s.footer?(i(),l("div",{key:2,"data-slot":"footer",class:o(a.value.footer({class:t(e).ui?.footer}))},[d(r.$slots,"footer")],2)):n("",!0)]),_:3},8,["as","class"]))}};export{B as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"1819831b-dbfb-42f9-900b-14e48a657a07","timestamp":1780641136609}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"1819831b-dbfb-42f9-900b-14e48a657a07","timestamp":1780641136609,"prerendered":[]}
|