@unhead/bundler 3.0.0 → 3.0.1
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/{BxyPzrDo.js → 0Qa6s_Dg.js} +1 -1
- package/dist/devtools-ui/_nuxt/{BCwvLIcr.js → B2Jv09Lm.js} +1 -1
- package/dist/devtools-ui/_nuxt/{BigBxDWf.js → BFZZDhfF.js} +1 -1
- package/dist/devtools-ui/_nuxt/{Bd8Qox91.js → BJQr0rHL.js} +1 -1
- package/dist/devtools-ui/_nuxt/{CX7-V6V7.js → Bh8c0baD.js} +1 -1
- package/dist/devtools-ui/_nuxt/{e7ZvZaiE.js → Bi7iarQE.js} +1 -1
- package/dist/devtools-ui/_nuxt/{BarHPyBZ.js → BjpL9Tvi.js} +1 -1
- package/dist/devtools-ui/_nuxt/{uh2Yu8tq.js → BzyzpJpe.js} +1 -1
- package/dist/devtools-ui/_nuxt/{DXNnCkmx.js → CQCCfgfs.js} +1 -1
- package/dist/devtools-ui/_nuxt/{DZ_hc9Cv.js → CjvTvDUb.js} +1 -1
- package/dist/devtools-ui/_nuxt/{C6wYqob9.js → CyW9BsJI.js} +1 -1
- package/dist/devtools-ui/_nuxt/{wCbxZH3c.js → DEZb6eJV.js} +1 -1
- package/dist/devtools-ui/_nuxt/{DNE1cpGM.js → DbNB16xc.js} +1 -1
- package/dist/devtools-ui/_nuxt/{DMRBq2a4.js → Dk8INXUW.js} +1 -1
- package/dist/devtools-ui/_nuxt/{BTwuGVhh.js → MzHi9Z_M.js} +1 -1
- package/dist/devtools-ui/_nuxt/{Bd0yBFZc.js → SqzsD7Ng.js} +1 -1
- package/dist/devtools-ui/_nuxt/builds/latest.json +1 -1
- package/dist/devtools-ui/_nuxt/builds/meta/15e373db-9b0d-40e0-a023-b7af5277f5ea.json +1 -0
- package/dist/devtools-ui/_nuxt/error-404.BD1cQo3f.css +1 -0
- package/dist/devtools-ui/_nuxt/error-500.C6qGqSpk.css +1 -0
- package/dist/devtools-ui/_nuxt/{DHY-LmKr.js → lJJLnbTf.js} +3 -3
- package/dist/devtools-ui/index.html +1 -1
- package/package.json +3 -3
- package/dist/devtools-ui/_nuxt/builds/meta/5d888d7f-39d8-48ce-9c81-cdd9d9da7d00.json +0 -1
- package/dist/devtools-ui/_nuxt/error-404.Cu92rxSa.css +0 -1
- package/dist/devtools-ui/_nuxt/error-500.B9_6I3ju.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__unhead/_nuxt/entry.clcQIxBm.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__unhead/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__unhead/_nuxt/entry.clcQIxBm.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__unhead/_nuxt/lJJLnbTf.js"><script type="module" src="/__unhead/_nuxt/lJJLnbTf.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__unhead/",buildId:"15e373db-9b0d-40e0-a023-b7af5277f5ea",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1775794813987,false]</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__unhead/_nuxt/entry.clcQIxBm.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__unhead/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/__unhead/_nuxt/entry.clcQIxBm.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__unhead/_nuxt/lJJLnbTf.js"><script type="module" src="/__unhead/_nuxt/lJJLnbTf.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__unhead/",buildId:"15e373db-9b0d-40e0-a023-b7af5277f5ea",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1775794813987,false]</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as s,u as a,o as i,c as u,a as t,t as n,b as c,w as l,d,e as f}from"./
|
|
1
|
+
import{_ as s,u as a,o as i,c as u,a as t,t as n,b as c,w as l,d,e as f}from"./lJJLnbTf.js";const p={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},m={class:"max-w-520px text-center"},h=["textContent"],b=["textContent"],x=["textContent"],g={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},status:{type:Number,default:404},statusText:{type:String,default:"Page not found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(e){const r=e;return a({title:`${r.status} - ${r.statusText} | ${r.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,w)=>{const o=f;return i(),u("div",p,[t("div",m,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:n(e.status)},null,8,h),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:n(e.statusText)},null,8,b),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:n(e.description)},null,8,x),t("div",g,[c(o,{to:"/",class:"font-medium hover:text-[#00DC82] text-sm underline underline-offset-3"},{default:l(()=>[d(n(e.backHome),1)]),_:1})])])])}}},v=s(y,[["__scopeId","data-v-24499007"]]);export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as $,f as k,o as t,g as f,T as S,i as r,w as B,b as u,U as D,n as _,c as a,v as w,a as x,t as d,l as y,_ as h,F as V,r as j,d as v,h as N,m as O}from"./
|
|
1
|
+
import{S as $,f as k,o as t,g as f,T as S,i as r,w as B,b as u,U as D,n as _,c as a,v as w,a as x,t as d,l as y,_ as h,F as V,r as j,d as v,h as N,m as O}from"./lJJLnbTf.js";import{_ as U}from"./CjvTvDUb.js";function z(o=2e3){const{copy:l,copied:n}=$({legacy:!0,copiedDuring:o});return{copy:l,copied:n}}const I=k({__name:"DevtoolsCopyButton",props:{text:{}},setup(o){const{copy:l,copied:n}=z();return(p,c)=>{const s=D,g=S;return t(),f(g,{text:r(n)?"Copied!":"Copy"},{default:B(()=>[u(s,{icon:r(n)?"i-carbon-checkmark":"i-carbon-copy","aria-label":r(n)?"Copied":"Copy to clipboard",size:"xs",variant:"ghost",color:"neutral",class:_(r(n)?"text-green-500":""),onClick:c[0]||(c[0]=i=>r(l)(o.text))},null,8,["icon","aria-label","class"])]),_:1},8,["text"])}}}),b=Object.assign(I,{__name:"DevtoolsCopyButton"}),T={class:"devtools-snippet"},F={key:0,class:"devtools-snippet-header"},K={class:"text-xs font-mono text-muted"},L=k({__name:"DevtoolsSnippet",props:{label:{},code:{},lang:{default:"json"}},setup(o){return(l,n)=>{const p=b,c=U;return t(),a("div",T,[o.label||l.$slots.header?(t(),a("div",F,[w(l.$slots,"header",{},()=>[x("code",K,d(o.label),1)],!0),u(p,{text:o.code},null,8,["text"])])):y("",!0),u(c,{code:o.code,lang:o.lang,class:"devtools-snippet-block"},null,8,["code","lang"])])}}}),R=Object.assign(h(L,[["__scopeId","data-v-1994adf5"]]),{__name:"DevtoolsSnippet"}),A={class:"divide-y divide-[var(--ui-border)]"},E={class:"devtools-kv-key"},q=["href"],G=["href"],H=k({__name:"DevtoolsKeyValue",props:{items:{},striped:{type:Boolean,default:!1}},setup(o){const l=/^https?:\/\/\S+$/,n=/^#(?:[0-9a-f]{3,4}){1,2}$|^rgba?\([\d\s,./]+\)$|^hsla?\([\d\s%,./]+\)$/i;function p(s){return!s.link&&!s.code&&typeof s.value=="string"&&l.test(s.value)}function c(s){return typeof s.value=="string"&&n.test(s.value.trim())}return(s,g)=>{const i=N,m=R,C=b;return t(),a("div",A,[(t(!0),a(V,null,j(o.items,e=>(t(),a("div",{key:e.key,class:_(["devtools-kv-row group",{"devtools-kv-striped":o.striped,"devtools-kv-stacked":!!e.code}])},[x("span",E,d(e.key),1),x("div",{class:_(["devtools-kv-value-wrap",{"w-full":!!e.code}])},[e.link?(t(),a("a",{key:0,href:e.link,target:"_blank",rel:"noopener noreferrer",class:"text-xs text-muted hover:text-default flex items-center gap-1"},[v(d(e.value)+" ",1),u(i,{name:"i-carbon-launch",class:"text-xs"})],8,q)):e.code&&e.value!==void 0&&e.value!==""?(t(),f(m,{key:1,code:String(e.value),lang:e.code,class:"w-full"},null,8,["code","lang"])):p(e)?(t(),a("a",{key:2,href:String(e.value),target:"_blank",rel:"noopener noreferrer",class:"text-xs text-muted hover:text-default flex items-center gap-1"},[v(d(e.value)+" ",1),u(i,{name:"i-carbon-launch",class:"text-xs"})],8,G)):(t(),a("span",{key:3,class:_(["devtools-kv-value flex items-center gap-1.5",{"font-mono":e.mono!==!1,"text-green-500":e.value===!0,"text-red-400":e.value===!1,"text-muted italic":e.value===void 0||e.value===""}])},[c(e)?(t(),a("span",{key:0,class:"inline-block w-3 h-3 rounded-sm shrink-0 border border-[var(--ui-border)]",style:O({background:String(e.value).trim()})},null,4)):y("",!0),v(" "+d(e.value===void 0||e.value===""?"(empty)":e.value),1)],2)),!e.code&&e.copyable&&e.value!==void 0&&e.value!==""?(t(),f(C,{key:4,text:String(e.value),class:"opacity-0 group-hover:opacity-100 transition-opacity"},null,8,["text"])):y("",!0)],2)],2))),128))])}}}),P=Object.assign(h(H,[["__scopeId","data-v-983967b4"]]),{__name:"DevtoolsKeyValue"});export{P as _,R as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as F,o,c as n,b as m,w as v,a as t,F as j,r as D,n as k,i as e,h as R,t as s,l as _,g as T,k as V,d as W,p as x,s as y,j as z,z as G}from"./DHY-LmKr.js";import{_ as O}from"./Bd0yBFZc.js";import{_ as P}from"./DNE1cpGM.js";import{_ as K}from"./DMRBq2a4.js";import"./BCwvLIcr.js";import"./DZ_hc9Cv.js";import"./e7ZvZaiE.js";const M={class:"space-y-4"},X={class:"flex items-center gap-2"},E=["id","aria-selected","aria-controls","tabindex","aria-label","onClick"],q={class:"hidden sm:inline"},H={class:"p-6"},J={key:0,id:"social-panel-twitter",role:"tabpanel","aria-labelledby":"social-tab-twitter",class:"max-w-[500px] mx-auto"},Q={class:"rounded-2xl overflow-hidden border border-neutral-200 dark:border-neutral-700"},Y={key:0,class:"aspect-[1.91/1] bg-neutral-100 dark:bg-neutral-800"},Z=["src","alt"],ee={class:"p-3"},te={class:"text-xs text-neutral-500"},ae={class:"text-sm font-medium line-clamp-1"},oe={class:"text-xs text-neutral-500 line-clamp-2"},le={key:1,id:"social-panel-facebook",role:"tabpanel","aria-labelledby":"social-tab-facebook",class:"max-w-[500px] mx-auto"},se={class:"rounded-lg overflow-hidden border border-neutral-200 dark:border-neutral-700 bg-neutral-50 dark:bg-neutral-800"},ne={key:0,class:"aspect-[1.91/1] bg-neutral-100 dark:bg-neutral-700"},ie=["src","alt"],re={class:"p-3"},ce={class:"text-[11px] text-neutral-500 uppercase tracking-wider"},de={class:"text-base font-semibold line-clamp-1 mt-0.5"},ue={class:"text-sm text-neutral-500 line-clamp-1 mt-0.5"},me={key:2,id:"social-panel-linkedin",role:"tabpanel","aria-labelledby":"social-tab-linkedin",class:"max-w-[500px] mx-auto"},pe={class:"rounded-lg overflow-hidden border border-neutral-200 dark:border-neutral-700"},ge={key:0,class:"aspect-[1.91/1] bg-neutral-100 dark:bg-neutral-800"},xe=["src","alt"],_e={class:"p-3 bg-neutral-50 dark:bg-neutral-800"},fe={class:"text-sm font-semibold line-clamp-2"},be={class:"text-xs text-neutral-500 mt-1"},ve={key:3,id:"social-panel-discord",role:"tabpanel","aria-labelledby":"social-tab-discord",class:"max-w-[500px] mx-auto"},he={class:"rounded-lg overflow-hidden border-l-4 border-[#5865F2] bg-[#2f3136] text-white p-4"},ke={class:"text-xs text-neutral-400 mb-1"},we={class:"text-[#00aff4] text-sm font-semibold"},ye={class:"text-sm text-neutral-300 mt-1 line-clamp-2"},Ie={key:0,class:"mt-3 rounded-lg overflow-hidden max-w-[300px]"},je=["src","alt"],Te={key:4,id:"social-panel-slack",role:"tabpanel","aria-labelledby":"social-tab-slack",class:"max-w-[500px] mx-auto"},Be={class:"rounded-lg overflow-hidden border-l-4 border-neutral-300 dark:border-neutral-600 pl-4 py-2"},Se={class:"text-xs text-neutral-500 font-bold mb-1"},De={class:"text-[#1264a3] dark:text-[#1d9bd1] text-sm font-bold"},ze={class:"text-sm text-neutral-600 dark:text-neutral-400 mt-0.5 line-clamp-2"},Ce={key:0,class:"mt-2 rounded overflow-hidden max-w-[360px]"},Ne=["src","alt"],Ue={class:"flex items-center gap-2"},Ae={class:"space-y-1"},Le={class:"flex items-center justify-between"},$e={class:"flex items-center gap-2"},Fe={key:0,class:"flex flex-col items-center justify-center gap-2 py-8 rounded-lg border border-red-200 dark:border-red-900/50 bg-red-50 dark:bg-red-950/20"},Re={class:"text-xs text-muted font-mono truncate max-w-full px-4"},Ve={class:"rounded-lg overflow-hidden border border-default"},We=["src"],Ge={class:"mt-2 text-xs text-muted font-mono truncate"},Je=F({__name:"social",setup(Oe){const r=x(()=>y.value.seo),p=x(()=>r.value.ogTitle||r.value.title||"Untitled"),w=x(()=>r.value.ogDescription||r.value.description||""),g=x(()=>{const l=r.value.ogImage;return!l||z(l)?null:l}),c=x(()=>!!r.value.ogImage&&z(r.value.ogImage)),h=x(()=>{try{return new URL(r.value.canonical||"").hostname}catch{return r.value.canonical||"example.com"}}),u=G("twitter"),f=[{label:"X / Twitter",value:"twitter",icon:"i-carbon-logo-x"},{label:"Facebook",value:"facebook",icon:"i-carbon-logo-facebook"},{label:"LinkedIn",value:"linkedin",icon:"i-carbon-logo-linkedin"},{label:"Discord",value:"discord",icon:"i-carbon-logo-discord"},{label:"Slack",value:"slack",icon:"i-carbon-logo-slack"}];function C(l){const a=f.findIndex(i=>i.value===u.value);l.key==="ArrowRight"||l.key==="ArrowDown"?(l.preventDefault(),u.value=f[(a+1)%f.length].value):(l.key==="ArrowLeft"||l.key==="ArrowUp")&&(l.preventDefault(),u.value=f[(a-1+f.length)%f.length].value)}const N=x(()=>y.value.tags.filter(l=>{if(l.tag!=="meta")return!1;const a=l.props?.property||l.props?.name||"";return a.startsWith("og:")||a.startsWith("twitter:")})),b=x(()=>{const l={};for(const a of y.value.tags){if(a.tag!=="meta")continue;const i=a.props?.property||"";i.startsWith("og:")&&(l[i]=a.props?.content||"")}return l}),B=x(()=>{const l={};for(const a of y.value.tags){if(a.tag!=="meta")continue;const i=a.props?.name||"";i.startsWith("twitter:")&&(l[i]=a.props?.content||"")}return l}),U=x(()=>[{done:!!(b.value["og:title"]||r.value.ogTitle),html:"Set <code>og:title</code> to control how your page appears when shared."},{done:!!(b.value["og:description"]||r.value.ogDescription),html:"Add <code>og:description</code> for a compelling preview snippet."},{done:!!(b.value["og:image"]||r.value.ogImage)&&!c.value,html:c.value?"Fix <code>og:image</code>: the current URL is broken or unreachable.":"Add an <code>og:image</code> (1200x630) for rich social previews."},{done:!!b.value["og:url"],html:"Set <code>og:url</code> to the canonical URL of this page."},{done:!!b.value["og:type"],html:"Set <code>og:type</code> (e.g. <code>website</code>, <code>article</code>) for content classification."},{done:!!b.value["og:site_name"],html:"Set <code>og:site_name</code> to identify your brand across platforms."},{done:!!B.value["twitter:card"],html:"Set <code>twitter:card</code> (usually <code>summary_large_image</code>) for Twitter/X previews."},{done:!!(B.value["twitter:image"]||b.value["og:image"]),html:"Provide a <code>twitter:image</code> or rely on <code>og:image</code> fallback."}]);return(l,a)=>{const i=R,I=O,A=P,L=K,$=V;return o(),n("div",M,[m(I,null,{header:v(()=>[t("div",X,[m(i,{name:"i-carbon-share",class:"text-lg"}),a[0]||(a[0]=t("span",{class:"font-medium"},"Social Preview",-1))])]),default:v(()=>[t("div",{role:"tablist","aria-label":"Social preview platforms",class:"flex gap-0.5 px-3 py-2 border-b border-default overflow-x-auto",onKeydown:C},[(o(),n(j,null,D(f,d=>t("button",{id:`social-tab-${d.value}`,key:d.value,role:"tab","aria-selected":e(u)===d.value,"aria-controls":`social-panel-${d.value}`,tabindex:e(u)===d.value?0:-1,"aria-label":d.label,class:k(["flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-medium whitespace-nowrap transition-colors duration-150",e(u)===d.value?"bg-elevated text-highlighted":"text-muted hover:bg-elevated hover:text-default"]),onClick:S=>u.value=d.value},[m(i,{name:d.icon,class:"text-sm"},null,8,["name"]),t("span",q,s(d.label),1)],10,E)),64))],32),t("div",H,[e(u)==="twitter"?(o(),n("div",J,[t("div",Q,[e(g)?(o(),n("div",Y,[t("img",{src:e(g),class:"w-full h-full object-cover",alt:e(p),loading:"lazy"},null,8,Z)])):(o(),n("div",{key:1,class:k(["flex flex-col items-center justify-center gap-1.5 aspect-[1.91/1] bg-elevated text-xs font-medium",e(c)?"text-red-400":"text-muted"])},[m(i,{name:e(c)?"i-carbon-warning-filled":"i-carbon-image",class:"text-2xl"},null,8,["name"]),t("span",null,s(e(c)?"Broken og:image":"No og:image"),1)],2)),t("div",ee,[t("p",te,s(e(h)),1),t("p",ae,s(e(p)),1),t("p",oe,s(e(w)),1)])])])):_("",!0),e(u)==="facebook"?(o(),n("div",le,[t("div",se,[e(g)?(o(),n("div",ne,[t("img",{src:e(g),class:"w-full h-full object-cover",alt:e(p),loading:"lazy"},null,8,ie)])):(o(),n("div",{key:1,class:k(["flex flex-col items-center justify-center gap-1.5 aspect-[1.91/1] bg-elevated text-xs font-medium",e(c)?"text-red-400":"text-muted"])},[m(i,{name:e(c)?"i-carbon-warning-filled":"i-carbon-image",class:"text-2xl"},null,8,["name"]),t("span",null,s(e(c)?"Broken og:image":"No og:image"),1)],2)),t("div",re,[t("p",ce,s(e(h)),1),t("p",de,s(e(p)),1),t("p",ue,s(e(w)),1)])])])):_("",!0),e(u)==="linkedin"?(o(),n("div",me,[t("div",pe,[e(g)?(o(),n("div",ge,[t("img",{src:e(g),class:"w-full h-full object-cover",alt:e(p),loading:"lazy"},null,8,xe)])):(o(),n("div",{key:1,class:k(["flex flex-col items-center justify-center gap-1.5 aspect-[1.91/1] bg-elevated text-xs font-medium",e(c)?"text-red-400":"text-muted"])},[m(i,{name:e(c)?"i-carbon-warning-filled":"i-carbon-image",class:"text-2xl"},null,8,["name"]),t("span",null,s(e(c)?"Broken og:image":"No og:image"),1)],2)),t("div",_e,[t("p",fe,s(e(p)),1),t("p",be,s(e(h)),1)])])])):_("",!0),e(u)==="discord"?(o(),n("div",ve,[t("div",he,[t("p",ke,s(e(h)),1),t("p",we,s(e(p)),1),t("p",ye,s(e(w)),1),e(g)?(o(),n("div",Ie,[t("img",{src:e(g),class:"w-full object-cover",alt:e(p),loading:"lazy"},null,8,je)])):(o(),n("div",{key:1,class:k(["flex flex-col items-center justify-center gap-1.5 mt-3 max-w-[300px] aspect-video rounded-lg bg-[#36393f] text-xs font-medium",e(c)?"text-red-400":"text-[#72767d]"])},[m(i,{name:e(c)?"i-carbon-warning-filled":"i-carbon-image",class:"text-xl"},null,8,["name"]),t("span",null,s(e(c)?"Broken image":"No image"),1)],2))])])):_("",!0),e(u)==="slack"?(o(),n("div",Te,[t("div",Be,[t("p",Se,s(e(h)),1),t("p",De,s(e(p)),1),t("p",ze,s(e(w)),1),e(g)?(o(),n("div",Ce,[t("img",{src:e(g),class:"w-full object-cover",alt:e(p),loading:"lazy"},null,8,Ne)])):_("",!0)])])):_("",!0)])]),_:1}),m(I,null,{header:v(()=>[t("div",Ue,[m(i,{name:"i-carbon-task",class:"text-lg"}),a[1]||(a[1]=t("span",{class:"font-medium"},"Social Checklist",-1))])]),default:v(()=>[t("div",Ae,[(o(!0),n(j,null,D(e(U),(d,S)=>(o(),T(A,{key:S,done:d.done,html:d.html},null,8,["done","html"]))),128))])]),_:1}),m(L,{tags:e(N),title:"Open Graph Tags",icon:"i-carbon-share"},null,8,["tags"]),e(r).ogImage?(o(),T(I,{key:0},{header:v(()=>[t("div",Le,[t("div",$e,[m(i,{name:"i-carbon-image",class:"text-lg"}),a[2]||(a[2]=t("span",{class:"font-medium"},"OG Image",-1))]),e(c)?(o(),T($,{key:0,color:"error",variant:"subtle",size:"xs"},{default:v(()=>[...a[3]||(a[3]=[W(" Broken ",-1)])]),_:1})):_("",!0)])]),default:v(()=>[e(c)?(o(),n("div",Fe,[m(i,{name:"i-carbon-warning-filled",class:"text-3xl text-red-400"}),a[4]||(a[4]=t("span",{class:"text-sm text-red-500 font-medium"},"Image failed to load",-1)),t("p",Re,s(e(r).ogImage),1)])):(o(),n(j,{key:1},[t("div",Ve,[t("img",{src:e(r).ogImage,class:"w-full max-h-64 object-contain bg-neutral-100 dark:bg-neutral-800",alt:"OG Image",loading:"lazy"},null,8,We)]),t("p",Ge,s(e(r).ogImage),1)],64))]),_:1})):_("",!0)])}}});export{Je as default};
|
|
1
|
+
import{f as F,o,c as n,b as m,w as v,a as t,F as j,r as D,n as k,i as e,h as R,t as s,l as _,g as T,k as V,d as W,p as x,s as y,j as z,z as G}from"./lJJLnbTf.js";import{_ as O}from"./SqzsD7Ng.js";import{_ as P}from"./DbNB16xc.js";import{_ as K}from"./Dk8INXUW.js";import"./B2Jv09Lm.js";import"./CjvTvDUb.js";import"./Bi7iarQE.js";const M={class:"space-y-4"},X={class:"flex items-center gap-2"},E=["id","aria-selected","aria-controls","tabindex","aria-label","onClick"],q={class:"hidden sm:inline"},H={class:"p-6"},J={key:0,id:"social-panel-twitter",role:"tabpanel","aria-labelledby":"social-tab-twitter",class:"max-w-[500px] mx-auto"},Q={class:"rounded-2xl overflow-hidden border border-neutral-200 dark:border-neutral-700"},Y={key:0,class:"aspect-[1.91/1] bg-neutral-100 dark:bg-neutral-800"},Z=["src","alt"],ee={class:"p-3"},te={class:"text-xs text-neutral-500"},ae={class:"text-sm font-medium line-clamp-1"},oe={class:"text-xs text-neutral-500 line-clamp-2"},le={key:1,id:"social-panel-facebook",role:"tabpanel","aria-labelledby":"social-tab-facebook",class:"max-w-[500px] mx-auto"},se={class:"rounded-lg overflow-hidden border border-neutral-200 dark:border-neutral-700 bg-neutral-50 dark:bg-neutral-800"},ne={key:0,class:"aspect-[1.91/1] bg-neutral-100 dark:bg-neutral-700"},ie=["src","alt"],re={class:"p-3"},ce={class:"text-[11px] text-neutral-500 uppercase tracking-wider"},de={class:"text-base font-semibold line-clamp-1 mt-0.5"},ue={class:"text-sm text-neutral-500 line-clamp-1 mt-0.5"},me={key:2,id:"social-panel-linkedin",role:"tabpanel","aria-labelledby":"social-tab-linkedin",class:"max-w-[500px] mx-auto"},pe={class:"rounded-lg overflow-hidden border border-neutral-200 dark:border-neutral-700"},ge={key:0,class:"aspect-[1.91/1] bg-neutral-100 dark:bg-neutral-800"},xe=["src","alt"],_e={class:"p-3 bg-neutral-50 dark:bg-neutral-800"},fe={class:"text-sm font-semibold line-clamp-2"},be={class:"text-xs text-neutral-500 mt-1"},ve={key:3,id:"social-panel-discord",role:"tabpanel","aria-labelledby":"social-tab-discord",class:"max-w-[500px] mx-auto"},he={class:"rounded-lg overflow-hidden border-l-4 border-[#5865F2] bg-[#2f3136] text-white p-4"},ke={class:"text-xs text-neutral-400 mb-1"},we={class:"text-[#00aff4] text-sm font-semibold"},ye={class:"text-sm text-neutral-300 mt-1 line-clamp-2"},Ie={key:0,class:"mt-3 rounded-lg overflow-hidden max-w-[300px]"},je=["src","alt"],Te={key:4,id:"social-panel-slack",role:"tabpanel","aria-labelledby":"social-tab-slack",class:"max-w-[500px] mx-auto"},Be={class:"rounded-lg overflow-hidden border-l-4 border-neutral-300 dark:border-neutral-600 pl-4 py-2"},Se={class:"text-xs text-neutral-500 font-bold mb-1"},De={class:"text-[#1264a3] dark:text-[#1d9bd1] text-sm font-bold"},ze={class:"text-sm text-neutral-600 dark:text-neutral-400 mt-0.5 line-clamp-2"},Ce={key:0,class:"mt-2 rounded overflow-hidden max-w-[360px]"},Ne=["src","alt"],Ue={class:"flex items-center gap-2"},Ae={class:"space-y-1"},Le={class:"flex items-center justify-between"},$e={class:"flex items-center gap-2"},Fe={key:0,class:"flex flex-col items-center justify-center gap-2 py-8 rounded-lg border border-red-200 dark:border-red-900/50 bg-red-50 dark:bg-red-950/20"},Re={class:"text-xs text-muted font-mono truncate max-w-full px-4"},Ve={class:"rounded-lg overflow-hidden border border-default"},We=["src"],Ge={class:"mt-2 text-xs text-muted font-mono truncate"},Je=F({__name:"social",setup(Oe){const r=x(()=>y.value.seo),p=x(()=>r.value.ogTitle||r.value.title||"Untitled"),w=x(()=>r.value.ogDescription||r.value.description||""),g=x(()=>{const l=r.value.ogImage;return!l||z(l)?null:l}),c=x(()=>!!r.value.ogImage&&z(r.value.ogImage)),h=x(()=>{try{return new URL(r.value.canonical||"").hostname}catch{return r.value.canonical||"example.com"}}),u=G("twitter"),f=[{label:"X / Twitter",value:"twitter",icon:"i-carbon-logo-x"},{label:"Facebook",value:"facebook",icon:"i-carbon-logo-facebook"},{label:"LinkedIn",value:"linkedin",icon:"i-carbon-logo-linkedin"},{label:"Discord",value:"discord",icon:"i-carbon-logo-discord"},{label:"Slack",value:"slack",icon:"i-carbon-logo-slack"}];function C(l){const a=f.findIndex(i=>i.value===u.value);l.key==="ArrowRight"||l.key==="ArrowDown"?(l.preventDefault(),u.value=f[(a+1)%f.length].value):(l.key==="ArrowLeft"||l.key==="ArrowUp")&&(l.preventDefault(),u.value=f[(a-1+f.length)%f.length].value)}const N=x(()=>y.value.tags.filter(l=>{if(l.tag!=="meta")return!1;const a=l.props?.property||l.props?.name||"";return a.startsWith("og:")||a.startsWith("twitter:")})),b=x(()=>{const l={};for(const a of y.value.tags){if(a.tag!=="meta")continue;const i=a.props?.property||"";i.startsWith("og:")&&(l[i]=a.props?.content||"")}return l}),B=x(()=>{const l={};for(const a of y.value.tags){if(a.tag!=="meta")continue;const i=a.props?.name||"";i.startsWith("twitter:")&&(l[i]=a.props?.content||"")}return l}),U=x(()=>[{done:!!(b.value["og:title"]||r.value.ogTitle),html:"Set <code>og:title</code> to control how your page appears when shared."},{done:!!(b.value["og:description"]||r.value.ogDescription),html:"Add <code>og:description</code> for a compelling preview snippet."},{done:!!(b.value["og:image"]||r.value.ogImage)&&!c.value,html:c.value?"Fix <code>og:image</code>: the current URL is broken or unreachable.":"Add an <code>og:image</code> (1200x630) for rich social previews."},{done:!!b.value["og:url"],html:"Set <code>og:url</code> to the canonical URL of this page."},{done:!!b.value["og:type"],html:"Set <code>og:type</code> (e.g. <code>website</code>, <code>article</code>) for content classification."},{done:!!b.value["og:site_name"],html:"Set <code>og:site_name</code> to identify your brand across platforms."},{done:!!B.value["twitter:card"],html:"Set <code>twitter:card</code> (usually <code>summary_large_image</code>) for Twitter/X previews."},{done:!!(B.value["twitter:image"]||b.value["og:image"]),html:"Provide a <code>twitter:image</code> or rely on <code>og:image</code> fallback."}]);return(l,a)=>{const i=R,I=O,A=P,L=K,$=V;return o(),n("div",M,[m(I,null,{header:v(()=>[t("div",X,[m(i,{name:"i-carbon-share",class:"text-lg"}),a[0]||(a[0]=t("span",{class:"font-medium"},"Social Preview",-1))])]),default:v(()=>[t("div",{role:"tablist","aria-label":"Social preview platforms",class:"flex gap-0.5 px-3 py-2 border-b border-default overflow-x-auto",onKeydown:C},[(o(),n(j,null,D(f,d=>t("button",{id:`social-tab-${d.value}`,key:d.value,role:"tab","aria-selected":e(u)===d.value,"aria-controls":`social-panel-${d.value}`,tabindex:e(u)===d.value?0:-1,"aria-label":d.label,class:k(["flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-medium whitespace-nowrap transition-colors duration-150",e(u)===d.value?"bg-elevated text-highlighted":"text-muted hover:bg-elevated hover:text-default"]),onClick:S=>u.value=d.value},[m(i,{name:d.icon,class:"text-sm"},null,8,["name"]),t("span",q,s(d.label),1)],10,E)),64))],32),t("div",H,[e(u)==="twitter"?(o(),n("div",J,[t("div",Q,[e(g)?(o(),n("div",Y,[t("img",{src:e(g),class:"w-full h-full object-cover",alt:e(p),loading:"lazy"},null,8,Z)])):(o(),n("div",{key:1,class:k(["flex flex-col items-center justify-center gap-1.5 aspect-[1.91/1] bg-elevated text-xs font-medium",e(c)?"text-red-400":"text-muted"])},[m(i,{name:e(c)?"i-carbon-warning-filled":"i-carbon-image",class:"text-2xl"},null,8,["name"]),t("span",null,s(e(c)?"Broken og:image":"No og:image"),1)],2)),t("div",ee,[t("p",te,s(e(h)),1),t("p",ae,s(e(p)),1),t("p",oe,s(e(w)),1)])])])):_("",!0),e(u)==="facebook"?(o(),n("div",le,[t("div",se,[e(g)?(o(),n("div",ne,[t("img",{src:e(g),class:"w-full h-full object-cover",alt:e(p),loading:"lazy"},null,8,ie)])):(o(),n("div",{key:1,class:k(["flex flex-col items-center justify-center gap-1.5 aspect-[1.91/1] bg-elevated text-xs font-medium",e(c)?"text-red-400":"text-muted"])},[m(i,{name:e(c)?"i-carbon-warning-filled":"i-carbon-image",class:"text-2xl"},null,8,["name"]),t("span",null,s(e(c)?"Broken og:image":"No og:image"),1)],2)),t("div",re,[t("p",ce,s(e(h)),1),t("p",de,s(e(p)),1),t("p",ue,s(e(w)),1)])])])):_("",!0),e(u)==="linkedin"?(o(),n("div",me,[t("div",pe,[e(g)?(o(),n("div",ge,[t("img",{src:e(g),class:"w-full h-full object-cover",alt:e(p),loading:"lazy"},null,8,xe)])):(o(),n("div",{key:1,class:k(["flex flex-col items-center justify-center gap-1.5 aspect-[1.91/1] bg-elevated text-xs font-medium",e(c)?"text-red-400":"text-muted"])},[m(i,{name:e(c)?"i-carbon-warning-filled":"i-carbon-image",class:"text-2xl"},null,8,["name"]),t("span",null,s(e(c)?"Broken og:image":"No og:image"),1)],2)),t("div",_e,[t("p",fe,s(e(p)),1),t("p",be,s(e(h)),1)])])])):_("",!0),e(u)==="discord"?(o(),n("div",ve,[t("div",he,[t("p",ke,s(e(h)),1),t("p",we,s(e(p)),1),t("p",ye,s(e(w)),1),e(g)?(o(),n("div",Ie,[t("img",{src:e(g),class:"w-full object-cover",alt:e(p),loading:"lazy"},null,8,je)])):(o(),n("div",{key:1,class:k(["flex flex-col items-center justify-center gap-1.5 mt-3 max-w-[300px] aspect-video rounded-lg bg-[#36393f] text-xs font-medium",e(c)?"text-red-400":"text-[#72767d]"])},[m(i,{name:e(c)?"i-carbon-warning-filled":"i-carbon-image",class:"text-xl"},null,8,["name"]),t("span",null,s(e(c)?"Broken image":"No image"),1)],2))])])):_("",!0),e(u)==="slack"?(o(),n("div",Te,[t("div",Be,[t("p",Se,s(e(h)),1),t("p",De,s(e(p)),1),t("p",ze,s(e(w)),1),e(g)?(o(),n("div",Ce,[t("img",{src:e(g),class:"w-full object-cover",alt:e(p),loading:"lazy"},null,8,Ne)])):_("",!0)])])):_("",!0)])]),_:1}),m(I,null,{header:v(()=>[t("div",Ue,[m(i,{name:"i-carbon-task",class:"text-lg"}),a[1]||(a[1]=t("span",{class:"font-medium"},"Social Checklist",-1))])]),default:v(()=>[t("div",Ae,[(o(!0),n(j,null,D(e(U),(d,S)=>(o(),T(A,{key:S,done:d.done,html:d.html},null,8,["done","html"]))),128))])]),_:1}),m(L,{tags:e(N),title:"Open Graph Tags",icon:"i-carbon-share"},null,8,["tags"]),e(r).ogImage?(o(),T(I,{key:0},{header:v(()=>[t("div",Le,[t("div",$e,[m(i,{name:"i-carbon-image",class:"text-lg"}),a[2]||(a[2]=t("span",{class:"font-medium"},"OG Image",-1))]),e(c)?(o(),T($,{key:0,color:"error",variant:"subtle",size:"xs"},{default:v(()=>[...a[3]||(a[3]=[W(" Broken ",-1)])]),_:1})):_("",!0)])]),default:v(()=>[e(c)?(o(),n("div",Fe,[m(i,{name:"i-carbon-warning-filled",class:"text-3xl text-red-400"}),a[4]||(a[4]=t("span",{class:"text-sm text-red-500 font-medium"},"Image failed to load",-1)),t("p",Re,s(e(r).ogImage),1)])):(o(),n(j,{key:1},[t("div",Ve,[t("img",{src:e(r).ogImage,class:"w-full max-h-64 object-contain bg-neutral-100 dark:bg-neutral-800",alt:"OG Image",loading:"lazy"},null,8,We)]),t("p",Ge,s(e(r).ogImage),1)],64))]),_:1})):_("",!0)])}}});export{Je as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as ne,o as i,c as r,b as u,w as h,a as s,n as A,i as a,g as D,h as re,F as x,r as S,t as o,l as d,d as C,k as oe,m as H,p as b,s as $,z as le,_ as ce}from"./DHY-LmKr.js";import{_ as ue}from"./Bd0yBFZc.js";import{_ as de,a as P,h as W,j as ee,i as pe,c as me,n as he,e as _e,d as fe}from"./C6wYqob9.js";import{_ as ge}from"./BCwvLIcr.js";import"./DZ_hc9Cv.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 _ of N)_.length<2||ve.has(_)||c.set(_,(c.get(_)||0)+1);return[...c.entries()].map(([_,y])=>({word:_,count:y})).sort((_,y)=>y.count-_.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 Ae={class:"space-y-4"},Ce={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"},Xe={class:"serp-preview__description"},je={key:0,class:"flex items-center gap-1.5 mt-1"},qe={class:"serp-rich-stars"},Oe={class:"text-xs serp-rich-rating-text"},ze={key:0,class:"text-xs serp-rich-rating-text"},Ue={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"},_t={key:2,class:"text-xs serp-rich-rating-text"},ft={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"},At={key:5,class:"serp-rich-faq"},Ct={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"},Xt={class:"flex items-center gap-2"},jt={class:"space-y-3"},qt={class:"flex items-center justify-between"},Ot={class:"text-xs font-mono text-muted"},zt=["aria-valuenow","aria-valuemax","aria-label"],Ut={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"},_s={class:"text-xs font-mono truncate"},fs={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"},As={class:"font-mono text-xs"},Cs={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),_=b(()=>c.value.title?.length||0),y=b(()=>c.value.description?.length||0),X=b(()=>Se(_.value)),j=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?_.value>v.TITLE_MAX_CHARS?n.push({label:"Title",status:"error",detail:`Too long (${_.value}/${v.TITLE_MAX_CHARS})`}):_.value<30?n.push({label:"Title",status:"warning",detail:`Too short (${_.value} chars)`}):n.push({label:"Title",status:"success",detail:`${_.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=_.value>e.titleMax?"error":_.value<30?"warning":"success",g=y.value>e.descMax?"error":y.value<70?"warning":"success";return{key:n,...e,titleStatus:l,descStatus:g,titleLen:_.value,descLen:y.value}}));function F(n){return n==="success"?"Good":n==="warning"?"Needs work":"Too long"}function z(n){return n==="success"?"i-carbon-checkmark-filled":n==="warning"?"i-carbon-warning-filled":"i-carbon-close-filled"}function U(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:fe(l),label:_e(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 f=e.offers?.[0]||e.offers||{};f.price&&(p.price=`${f.priceCurrency||"$"}${f.price}`),f.availability&&p.features.push({icon:"i-carbon-delivery-truck",text:f.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 f=W(e.mainEntity||[]);p.faqItems=f.slice(0,4).map(m=>({question:m.name||m.text||"Question"}));break}case"BreadcrumbList":{const f=W(e.itemListElement||[]).sort((m,k)=>(m.position||0)-(k.position||0));p.breadcrumbs=f.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 f=e.offers?.[0]||e.offers||{};f.price&&(p.price=f.price==="0"?"Free":`${f.priceCurrency||"$"}${f.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",Ae,[u(g,null,{header:h(()=>[s("div",Ce,[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:A(["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:A(["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:A(["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,f)=>(i(),r(x,{key:f},[s("span",null,o(t),1),f<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:A(["serp-preview__title",a(M)==="mobile"?"serp-preview__title--mobile":""])},o(a(c).title||"No title found"),3),s("p",Xe,o(a(c).description||"No description found"),1),(i(!0),r(x,null,S(a(R),(t,f)=>(i(),r(x,{key:`inline-${f}`},[t.rating?(i(),r("div",je,[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",ze," ("+o(t.rating.count.toLocaleString())+" review"+o(t.rating.count!==1?"s":"")+") ",1)):d("",!0),t.price?(i(),r("span",Ue,"· "+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"]),C(" "+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(()=>[C(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,f)=>(i(),r("div",{key:f,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(()=>[C(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]=C(" 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",_t,o(t.price),1)):d("",!0),t.eventDate||t.eventLocation?(i(),r("div",ft,[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",At,[(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",Ct,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"]),C(" "+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:A(["serp-length-status",`serp-length-status--${a(X)}`])},o(F(a(X))),3),s("span",wt,o(a(_))+"/"+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(_),"aria-valuemin":0,"aria-valuemax":a(v).TITLE_MAX_CHARS,"aria-label":`Title length: ${a(_)} of ${a(v).TITLE_MAX_CHARS} characters`},[s("div",{class:A(["serp-progress-fill",`serp-progress-fill--${a(X)}`]),style:H({width:`${Math.min(100,a(_)/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",Xt,[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",jt,[s("div",qt,[s("span",{class:A(["serp-length-status",`serp-length-status--${a(j)}`])},o(F(a(j))),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:A(["serp-progress-fill",`serp-progress-fill--${a(j)}`]),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,zt),s("p",Ut,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(()=>[C(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:z(t.status),class:A([U(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]=[C(" This page has ",-1),s("code",{class:"bg-elevated px-1.5 py-0.5 rounded text-xs"},"noindex",-1),C(" 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(()=>[C(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]=[C(" 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",_s,o(t.serp),1)]),s("div",fs,[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:z(t.titleStatus),class:A([U(t.titleStatus),"text-xs"])},null,8,["name","class"]),s("span",As,o(t.titleLen)+"/"+o(t.titleMax),1)])]),s("td",Cs,[s("div",Rs,[u(l,{name:z(t.descStatus),class:A([U(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"},[C(o(t.word)+" ",1),t.count>1?(i(),r("span",Es,o(t.count),1)):d("",!0)]))),128))])]),_:1})):d("",!0)])}}}),Xs=ce($s,[["__scopeId","data-v-d8951a96"]]);export{Xs as default};
|
|
1
|
+
import{f as ne,o as i,c as r,b as u,w as h,a as s,n as A,i as a,g as D,h as re,F as x,r as S,t as o,l as d,d as C,k as oe,m as H,p as b,s as $,z as le,_ as ce}from"./lJJLnbTf.js";import{_ as ue}from"./SqzsD7Ng.js";import{_ as de,a as P,h as W,j as ee,i as pe,c as me,n as he,e as _e,d as fe}from"./CyW9BsJI.js";import{_ as ge}from"./B2Jv09Lm.js";import"./CjvTvDUb.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 _ of N)_.length<2||ve.has(_)||c.set(_,(c.get(_)||0)+1);return[...c.entries()].map(([_,y])=>({word:_,count:y})).sort((_,y)=>y.count-_.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 Ae={class:"space-y-4"},Ce={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"},Xe={class:"serp-preview__description"},je={key:0,class:"flex items-center gap-1.5 mt-1"},qe={class:"serp-rich-stars"},Oe={class:"text-xs serp-rich-rating-text"},ze={key:0,class:"text-xs serp-rich-rating-text"},Ue={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"},_t={key:2,class:"text-xs serp-rich-rating-text"},ft={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"},At={key:5,class:"serp-rich-faq"},Ct={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"},Xt={class:"flex items-center gap-2"},jt={class:"space-y-3"},qt={class:"flex items-center justify-between"},Ot={class:"text-xs font-mono text-muted"},zt=["aria-valuenow","aria-valuemax","aria-label"],Ut={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"},_s={class:"text-xs font-mono truncate"},fs={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"},As={class:"font-mono text-xs"},Cs={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),_=b(()=>c.value.title?.length||0),y=b(()=>c.value.description?.length||0),X=b(()=>Se(_.value)),j=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?_.value>v.TITLE_MAX_CHARS?n.push({label:"Title",status:"error",detail:`Too long (${_.value}/${v.TITLE_MAX_CHARS})`}):_.value<30?n.push({label:"Title",status:"warning",detail:`Too short (${_.value} chars)`}):n.push({label:"Title",status:"success",detail:`${_.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=_.value>e.titleMax?"error":_.value<30?"warning":"success",g=y.value>e.descMax?"error":y.value<70?"warning":"success";return{key:n,...e,titleStatus:l,descStatus:g,titleLen:_.value,descLen:y.value}}));function F(n){return n==="success"?"Good":n==="warning"?"Needs work":"Too long"}function z(n){return n==="success"?"i-carbon-checkmark-filled":n==="warning"?"i-carbon-warning-filled":"i-carbon-close-filled"}function U(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:fe(l),label:_e(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 f=e.offers?.[0]||e.offers||{};f.price&&(p.price=`${f.priceCurrency||"$"}${f.price}`),f.availability&&p.features.push({icon:"i-carbon-delivery-truck",text:f.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 f=W(e.mainEntity||[]);p.faqItems=f.slice(0,4).map(m=>({question:m.name||m.text||"Question"}));break}case"BreadcrumbList":{const f=W(e.itemListElement||[]).sort((m,k)=>(m.position||0)-(k.position||0));p.breadcrumbs=f.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 f=e.offers?.[0]||e.offers||{};f.price&&(p.price=f.price==="0"?"Free":`${f.priceCurrency||"$"}${f.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",Ae,[u(g,null,{header:h(()=>[s("div",Ce,[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:A(["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:A(["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:A(["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,f)=>(i(),r(x,{key:f},[s("span",null,o(t),1),f<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:A(["serp-preview__title",a(M)==="mobile"?"serp-preview__title--mobile":""])},o(a(c).title||"No title found"),3),s("p",Xe,o(a(c).description||"No description found"),1),(i(!0),r(x,null,S(a(R),(t,f)=>(i(),r(x,{key:`inline-${f}`},[t.rating?(i(),r("div",je,[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",ze," ("+o(t.rating.count.toLocaleString())+" review"+o(t.rating.count!==1?"s":"")+") ",1)):d("",!0),t.price?(i(),r("span",Ue,"· "+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"]),C(" "+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(()=>[C(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,f)=>(i(),r("div",{key:f,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(()=>[C(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]=C(" 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",_t,o(t.price),1)):d("",!0),t.eventDate||t.eventLocation?(i(),r("div",ft,[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",At,[(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",Ct,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"]),C(" "+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:A(["serp-length-status",`serp-length-status--${a(X)}`])},o(F(a(X))),3),s("span",wt,o(a(_))+"/"+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(_),"aria-valuemin":0,"aria-valuemax":a(v).TITLE_MAX_CHARS,"aria-label":`Title length: ${a(_)} of ${a(v).TITLE_MAX_CHARS} characters`},[s("div",{class:A(["serp-progress-fill",`serp-progress-fill--${a(X)}`]),style:H({width:`${Math.min(100,a(_)/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",Xt,[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",jt,[s("div",qt,[s("span",{class:A(["serp-length-status",`serp-length-status--${a(j)}`])},o(F(a(j))),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:A(["serp-progress-fill",`serp-progress-fill--${a(j)}`]),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,zt),s("p",Ut,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(()=>[C(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:z(t.status),class:A([U(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]=[C(" This page has ",-1),s("code",{class:"bg-elevated px-1.5 py-0.5 rounded text-xs"},"noindex",-1),C(" 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(()=>[C(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]=[C(" 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",_s,o(t.serp),1)]),s("div",fs,[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:z(t.titleStatus),class:A([U(t.titleStatus),"text-xs"])},null,8,["name","class"]),s("span",As,o(t.titleLen)+"/"+o(t.titleMax),1)])]),s("td",Cs,[s("div",Rs,[u(l,{name:z(t.descStatus),class:A([U(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"},[C(o(t.word)+" ",1),t.count>1?(i(),r("span",Es,o(t.count),1)):d("",!0)]))),128))])]),_:1})):d("",!0)])}}}),Xs=ce($s,[["__scopeId","data-v-d8951a96"]]);export{Xs as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o,u as s,o as a,c as i,a as t,t as r}from"./
|
|
1
|
+
import{_ as o,u as s,o as a,c as i,a as t,t as r}from"./lJJLnbTf.js";const u={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},l={class:"max-w-520px text-center"},c=["textContent"],d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},status:{type:Number,default:500},statusText:{type:String,default:"Internal server error"},description:{type:String,default:"This page is temporarily unavailable."},refresh:{type:String,default:"Refresh this page"}},setup(e){const n=e;return s({title:`${n.status} - ${n.statusText} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(h,m)=>(a(),i("div",u,[t("div",l,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:r(e.status)},null,8,c),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:r(e.statusText)},null,8,d),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:r(e.description)},null,8,p)])]))}},b=o(f,[["__scopeId","data-v-7a3ea759"]]);export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as m,o as s,c as o,b as d,h as l,a as r,t as a,v as n,l as c}from"./
|
|
1
|
+
import{f as m,o as s,c as o,b as d,h as l,a as r,t as a,v as n,l as c}from"./lJJLnbTf.js";const u={class:"text-center py-12"},_={class:"font-medium text-sm mb-1"},p={key:0,class:"text-xs text-muted max-w-sm mx-auto"},x={key:1,class:"text-xs text-muted max-w-sm mx-auto"},f={key:2,class:"mt-3"},h=m({__name:"DevtoolsEmptyState",props:{icon:{default:"i-carbon-search"},title:{},description:{}},setup(t){return(e,y)=>{const i=l;return s(),o("div",u,[d(i,{name:t.icon,class:"text-4xl text-muted mb-3","aria-hidden":"true"},null,8,["name"]),r("p",_,a(t.title),1),e.$slots.description?(s(),o("div",p,[n(e.$slots,"description")])):t.description?(s(),o("p",x,a(t.description),1)):c("",!0),e.$slots.default?(s(),o("div",f,[n(e.$slots,"default")])):c("",!0)])}}}),b=Object.assign(h,{__name:"DevtoolsEmptyState"});export{b as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as c,o as t,c as n,a as l,_ as a,g as r}from"./
|
|
1
|
+
import{f as c,o as t,c as n,a as l,_ as a,g as r}from"./lJJLnbTf.js";const _={class:"h-full max-h-full overflow-hidden"},u=["src","title"],i=c({__name:"DevtoolsDocs",props:{url:{}},setup(e){return(s,o)=>(t(),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 o=f;return t(),r(o,{url:"https://unhead.unjs.io"})}const p=a(m,[["render",d]]);export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as C}from"./
|
|
1
|
+
import{_ as C}from"./Dk8INXUW.js";import{f as v,o as t,c as d,a as n,b as o,h as k,t as c,k as $,w as r,d as f,l as g,i as s,s as a,F as y,r as b,g as m}from"./lJJLnbTf.js";import{_ as D}from"./CjvTvDUb.js";import{_ as E}from"./Bi7iarQE.js";import{_ as N}from"./SqzsD7Ng.js";import"./B2Jv09Lm.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"},O=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,_=$,p=D;return t(),d("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(_,{variant:"subtle",size:"xs"},{default:r(()=>[f(c(e.entry.tagCount)+" tags ",1)]),_:1}),o(_,{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(),d("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"])])])}}}),S=Object.assign(O,{__name:"DevtoolsHeadEntry"}),j={class:"space-y-4"},F={class:"flex items-center gap-2"},I={class:"font-medium"},J={class:"space-y-3"},L={class:"flex items-center gap-2"},P={class:"font-medium"},R={class:"flex flex-wrap gap-2"},W=v({__name:"index",setup(e){return(u,w)=>{const h=C,l=k,_=S,p=E,x=N,B=$;return t(),d("div",j,[o(h,{tags:s(a).tags,title:"Resolved Tags"},null,8,["tags"]),o(x,null,{header:r(()=>[n("div",F,[o(l,{name:"i-carbon-list",class:"text-lg"}),n("span",I,"Head Entries ("+c(s(a).entries.length)+")",1)])]),default:r(()=>[n("div",J,[(t(!0),d(y,null,b(s(a).entries,i=>(t(),m(_,{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",L,[o(l,{name:"i-carbon-plug",class:"text-lg"}),n("span",P,"Plugins ("+c(s(a).plugins.length)+")",1)])]),default:r(()=>[n("div",R,[(t(!0),d(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{_ as q}from"./
|
|
1
|
+
import{_ as q}from"./Bi7iarQE.js";import{f as N,o as n,c as o,n as $,g as r,h as O,l as i,a,t as c,_ as G,y as J,i as l,w as y,d as g,F as k,r as C,k as K,b as S,p as w,s as Q,z as L}from"./lJJLnbTf.js";import{_ as W}from"./SqzsD7Ng.js";const X={class:"font-mono font-semibold"},Y={key:1,class:"opacity-70"},Z=N({__name:"DevtoolsMetric",props:{label:{},value:{},icon:{},variant:{default:"default"}},setup(u){return(B,d)=>{const f=O;return n(),o("div",{class:$(["devtools-metric",`devtools-metric--${u.variant}`])},[u.icon?(n(),r(f,{key:0,name:u.icon,class:"text-sm shrink-0","aria-hidden":"true"},null,8,["name"])):i("",!0),a("span",X,c(u.value),1),u.label?(n(),o("span",Y,c(u.label),1)):i("",!0)],2)}}}),ee=Object.assign(G(Z,[["__scopeId","data-v-c55561d5"]]),{__name:"DevtoolsMetric"}),te={class:"space-y-4"},ne={class:"flex flex-wrap gap-1.5"},ae={class:"ml-1 opacity-70 tabular-nums"},se={class:"flex items-center justify-between gap-3"},oe={class:"flex items-center gap-2.5 min-w-0"},re={class:"w-7 h-7 rounded-lg bg-elevated border border-default flex items-center justify-center flex-shrink-0 overflow-hidden"},le=["src"],ie={class:"text-sm font-mono text-highlighted truncate"},ce={class:"flex items-center gap-1"},ue={class:"flex flex-wrap gap-1.5 mt-3"},de={key:0,class:"border-t border-default mt-3 -mx-4 -mb-4"},fe=["onClick"],me={class:"text-[9px] px-1 py-px rounded-full bg-elevated tabular-nums font-mono"},_e={key:0,class:"px-3 pb-3"},ve={class:"space-y-1"},he={class:"font-mono text-muted tabular-nums text-[10px] w-20 flex-shrink-0"},pe={key:0,class:"font-mono text-muted text-[10px] w-14 flex-shrink-0"},ge={key:1,class:"w-14 flex-shrink-0"},xe={class:"flex items-center gap-1"},we=N({__name:"scripts",setup(u){const B=/^https?:\/\//,d=w(()=>Q.value.scripts||[]),f=L("all"),v=w(()=>{const e={all:d.value.length};for(const s of d.value)e[s.status]=(e[s.status]||0)+1;return e}),R=w(()=>f.value==="all"?d.value:d.value.filter(e=>e.status===f.value)),b=L({});async function I(e){if(!(!e||b.value[e]))try{const h=(await fetch(e,{method:"HEAD"})).headers.get("content-length");h&&(b.value[e]=M(Number.parseInt(h,10)))}catch{}}function M(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} kB`:`${(e/(1024*1024)).toFixed(1)} MB`}J(d,e=>{for(const s of e)s.src&&I(s.src)},{immediate:!0});function D(e){return e==="loaded"?"success":e==="loading"?"info":e==="error"?"error":e==="awaitingLoad"?"warning":"neutral"}function z(e){return e==="loaded"?"bg-green-500":e==="loading"?"bg-purple-500 motion-safe:animate-pulse":e==="error"?"bg-red-500":e==="awaitingLoad"?"bg-amber-400":"bg-neutral-400"}function T(e){return e.replace(B,"")}function E(e){try{return`https://www.google.com/s2/favicons?domain=${new URL(e).hostname}`}catch{return null}}function V(e){return new Date(e).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3})}function j(e,s){if(!e.length)return"";const h=e[0].timestamp,m=s-h;return m<1e3?`+${m}ms`:`+${(m/1e3).toFixed(1)}s`}const A=w(()=>{const e=[{key:"all",label:"All"}];return v.value.loaded&&e.push({key:"loaded",label:"Loaded"}),v.value.loading&&e.push({key:"loading",label:"Loading"}),v.value.awaitingLoad&&e.push({key:"awaitingLoad",label:"Awaiting"}),v.value.error&&e.push({key:"error",label:"Error"}),v.value.removed&&e.push({key:"removed",label:"Removed"}),e}),x=L({});function H(e){x.value={...x.value,[e]:!x.value[e]}}return(e,s)=>{const h=q,m=K,F=O,p=ee,P=W;return n(),o("div",te,[l(d).length?(n(),o(k,{key:1},[a("div",ne,[(n(!0),o(k,null,C(l(A),t=>(n(),r(m,{key:t.key,color:l(f)===t.key?"primary":"neutral",variant:l(f)===t.key?"solid":"subtle",size:"xs",class:"cursor-pointer",onClick:_=>f.value=t.key},{default:y(()=>[g(c(t.label)+" ",1),a("span",ae,c(l(v)[t.key]||0),1)]),_:2},1032,["color","variant","onClick"]))),128))]),(n(!0),o(k,null,C(l(R),t=>(n(),r(P,{key:t.id,class:"overflow-hidden"},{default:y(()=>[a("div",se,[a("div",oe,[a("div",re,[t.src&&E(t.src)?(n(),o("img",{key:0,src:E(t.src),class:"w-4 h-4 rounded-sm",alt:""},null,8,le)):(n(),r(F,{key:1,name:"i-carbon-script",class:"text-sm text-muted"}))]),a("p",ie,c(t.src?T(t.src):"(inline)"),1)]),S(m,{color:D(t.status),variant:"subtle",size:"xs",class:"flex-shrink-0"},{default:y(()=>[a("span",ce,[a("span",{class:$(["w-1.5 h-1.5 rounded-full",z(t.status)])},null,2),g(" "+c(t.status),1)])]),_:2},1032,["color"])]),a("div",ue,[t.src&&l(b)[t.src]?(n(),r(p,{key:0,icon:"i-carbon-data-volume",value:l(b)[t.src],label:"size"},null,8,["value"])):i("",!0),t.warmupStrategy?(n(),r(p,{key:1,icon:"i-carbon-flash",value:t.warmupStrategy,label:"warmup"},null,8,["value"])):i("",!0),t.fetchpriority?(n(),r(p,{key:2,icon:"i-carbon-meter-alt",value:t.fetchpriority,label:"priority"},null,8,["value"])):i("",!0),t.defer?(n(),r(p,{key:3,icon:"i-carbon-time",value:"defer"})):i("",!0),t.async?(n(),r(p,{key:4,icon:"i-carbon-flash-filled",value:"async"})):i("",!0),t.crossorigin?(n(),r(p,{key:5,icon:"i-carbon-locked",value:t.crossorigin,label:"CORS"},null,8,["value"])):i("",!0)]),t.events?.length?(n(),o("div",de,[a("button",{class:"flex items-center gap-1.5 px-3 py-2 text-xs font-medium text-muted hover:text-highlighted w-full",onClick:_=>H(t.id)},[S(F,{name:"i-carbon-chevron-right",class:$(["text-xs transition-transform",l(x)[t.id]?"rotate-90":""])},null,8,["class"]),s[1]||(s[1]=g(" Events ",-1)),a("span",me,c(t.events.length),1)],8,fe),l(x)[t.id]?(n(),o("div",_e,[a("div",ve,[(n(!0),o(k,null,C(t.events,(_,U)=>(n(),o("div",{key:U,class:"flex items-center gap-2 py-1 px-2 rounded hover:bg-elevated text-xs"},[a("span",he,c(V(_.timestamp)),1),U>0?(n(),o("span",pe,c(j(t.events,_.timestamp)),1)):(n(),o("span",ge)),S(m,{color:D(_.type),variant:"subtle",size:"xs"},{default:y(()=>[a("span",xe,[a("span",{class:$(["w-1.5 h-1.5 rounded-full",z(_.type)])},null,2),g(" "+c(_.type),1)])]),_:2},1032,["color"])]))),128))])])):i("",!0)])):i("",!0)]),_:2},1024))),128))],64)):(n(),r(h,{key:0,icon:"i-carbon-script",title:"No scripts detected"},{description:y(()=>[...s[0]||(s[0]=[g(" Use ",-1),a("code",{class:"bg-elevated px-1.5 py-0.5 rounded text-xs"},"useScript()",-1),g(" to manage third-party scripts with loading strategies, triggers, and status tracking. ",-1)])]),_:1}))])}}});export{we as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as c,V as a,p as r,i as n,o as t,c as s,t as d,_}from"./
|
|
1
|
+
import{f as c,V as a,p as r,i as n,o as t,c as s,t as d,_}from"./lJJLnbTf.js";const l=["innerHTML"],i={key:1,class:"text-xs font-mono overflow-auto leading-relaxed"},p=c({__name:"OCodeBlock",props:{code:{},lang:{}},setup(e){const o=a(r(()=>e.code),e.lang);return(m,f)=>n(o)?(t(),s("pre",{key:0,class:"code-block",innerHTML:n(o)},null,8,l)):(t(),s("pre",i,d(e.code),1))}}),g=Object.assign(_(p,[["__scopeId","data-v-af37e700"]]),{__name:"OCodeBlock"});export{g as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as h,o as d,c as u,n as b,b as y,h as v,a as A,v as l,l as w,_ as R}from"./
|
|
1
|
+
import{f as h,o as d,c as u,n as b,b as y,h as v,a as A,v as l,l as w,_ as R}from"./lJJLnbTf.js";const P=["role"],S={class:"flex-1 min-w-0 text-sm"},q={key:0,class:"ml-auto shrink-0"},O=h({__name:"DevtoolsAlert",props:{icon:{},variant:{default:"info"}},setup(e){const r={info:"i-carbon-information",warning:"i-carbon-warning",error:"i-carbon-close-outline",success:"i-carbon-checkmark-outline"};return(o,i)=>{const t=v;return d(),u("div",{class:b(["devtools-alert",`devtools-alert--${e.variant}`]),role:e.variant==="error"?"alert":"status"},[y(t,{name:e.icon||r[e.variant],class:"shrink-0","aria-hidden":"true"},null,8,["name"]),A("div",S,[l(o.$slots,"default",{},void 0,!0)]),o.$slots.action?(d(),u("div",q,[l(o.$slots,"action",{},void 0,!0)])):w("",!0)],10,P)}}}),B=Object.assign(R(O,[["__scopeId","data-v-6dbb49a3"]]),{__name:"DevtoolsAlert"}),j=new Set(["Article","NewsArticle","BlogPosting","ScholarlyArticle","Product","AggregateOffer","Offer","FAQPage","Question","HowTo","HowToStep","Recipe","Event","LocalBusiness","Restaurant","JobPosting","Course","Movie","Book","SoftwareApplication","VideoObject","Review","AggregateRating","BreadcrumbList","SearchAction","Dataset","SpecialAnnouncement","Person","NewsMediaOrganization","Organization"]),k={Article:{required:[],recommended:["author","author.name","dateModified","datePublished","headline","image"],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/article"},NewsArticle:{required:[],recommended:["author","author.name","dateModified","datePublished","headline","image"],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/article"},BlogPosting:{required:[],recommended:["author","author.name","dateModified","datePublished","headline","image"],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/article"},Product:{required:["name"],recommended:["description","offers","offers.price","offers.priceCurrency","offers.availability","aggregateRating","review","image"],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/product"},FAQPage:{required:["mainEntity"],recommended:[],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/faqpage"},Recipe:{required:["name","image"],recommended:["aggregateRating","author","cookTime","datePublished","description","keywords","nutrition","prepTime","recipeCategory","recipeCuisine","recipeIngredient","recipeInstructions","recipeYield","totalTime","video"],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/recipe"},Event:{required:["name","location","startDate"],recommended:["description","endDate","eventStatus","image","offers","performer","organizer"],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/event"},LocalBusiness:{required:["name","address"],recommended:["aggregateRating","department","geo","openingHoursSpecification","priceRange","telephone","url"],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/local-business"},Restaurant:{required:["name","address"],recommended:["aggregateRating","servesCuisine","hasMenu","geo","openingHoursSpecification","priceRange","telephone","url"],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/local-business"},Review:{required:["author","itemReviewed","reviewRating"],recommended:["datePublished","reviewRating.bestRating","reviewRating.worstRating"],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/review-snippet"},AggregateRating:{required:["itemReviewed","ratingValue"],recommended:["bestRating","worstRating","ratingCount","reviewCount"],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/review-snippet"},BreadcrumbList:{required:["itemListElement"],recommended:[],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/breadcrumb"},Organization:{required:[],recommended:["name","logo","url","email","telephone","contactPoint","sameAs","address","description"],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/organization"},Person:{required:[],recommended:["name","url","image","sameAs","jobTitle","worksFor"],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/person"},SoftwareApplication:{required:["name","offers"],recommended:["applicationCategory","operatingSystem","aggregateRating","review"],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/software-app"},VideoObject:{required:["name","thumbnailUrl","uploadDate"],recommended:["contentUrl","description","duration","embedUrl"],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/video"},JobPosting:{required:["datePosted","description","hiringOrganization","jobLocation","title"],recommended:["applicantLocationRequirements","baseSalary","employmentType","jobLocationType","validThrough"],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/job-posting"},Course:{required:["description","name"],recommended:["provider"],documentationUrl:"https://developers.google.com/search/docs/appearance/structured-data/course"}};function c(e,r,o){if(!(!e||typeof e!="object"||o.has(e))){o.add(e),e["@type"]&&Object.keys(e).length>1&&r.push(e);for(const i of Object.values(e))if(Array.isArray(i))for(const t of i)c(t,r,o);else typeof i=="object"&&c(i,r,o)}}function g(e,r){const o={...e};return Object.keys(o).forEach(i=>{const t=o[i];t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===1&&t["@id"]&&r.has(t["@id"])?o[i]={...r.get(t["@id"])}:Array.isArray(t)?o[i]=t.map(n=>n&&typeof n=="object"&&Object.keys(n).length===1&&n["@id"]&&r.has(n["@id"])?{...r.get(n["@id"])}:n):t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length>1&&(o[i]=g(t,r))}),o}function L(e){const r=[];if(!e)return r;const o=new Set;if(e["@graph"]&&Array.isArray(e["@graph"])){const n=new Map;e["@graph"].forEach(a=>{a&&typeof a=="object"&&a["@id"]&&n.set(a["@id"],a)});const s=new Set;e["@graph"].forEach(a=>{if(a&&typeof a=="object"){if(Object.keys(a).length===1&&a["@id"]||a["@id"]&&s.has(a["@id"]))return;const f=g(a,n);c(f,r,o),a["@id"]&&s.add(a["@id"])}})}else e["@type"]&&c(e,r,o);const i=[],t=new Set;for(const n of r){const s=n["@id"];if(s){if(t.has(s))continue;t.add(s)}i.push(n)}return i}function m(e){return!e||!e["@type"]?"Unknown":Array.isArray(e["@type"])?e["@type"][0]:e["@type"]}function N(e){return j.has(e)}function C(e){const r=m(e);return e.name?e.name:e.headline?e.headline:e.title?e.title:e.description?typeof e.description=="string"?e.description.substring(0,100)+(e.description.length>100?"...":""):"":e["@id"]?e["@id"]:e.url?e.url:`${r} Schema`}function p(e,r){const o=r.split(".");let i=e;for(const t of o)if(i&&typeof i=="object"&&t in i)i=i[t];else return;return i}function T(e){const r=m(e),o=k[r];if(!o)return{missingRequired:[],missingRecommended:[],presentProperties:{}};const i=[],t=[],n={};return o.required.forEach(s=>{const a=p(e,s);a==null||a===""?i.push(s):n[s]=a}),o.recommended.forEach(s=>{const a=p(e,s);a==null||a===""?t.push(s):n[s]=a}),{missingRequired:i,missingRecommended:t,presentProperties:n}}function E(e){return e==null?"null":typeof e=="string"?e.length>50?`${e.substring(0,50)}...`:e:typeof e=="number"?e.toString():typeof e=="boolean"?e?"true":"false":Array.isArray(e)?`[${e.length} items]`:typeof e=="object"&&e["@type"]?e["@type"]:typeof e=="object"?"{...}":String(e)}function z(e){return{Article:"carbon:document",NewsArticle:"carbon:news",BlogPosting:"carbon:blog",Product:"carbon:shopping-cart",FAQPage:"carbon:help",Organization:"carbon:building",LocalBusiness:"carbon:location",Person:"carbon:user",Event:"carbon:calendar",SoftwareApplication:"carbon:application",Recipe:"carbon:restaurant",HowTo:"carbon:list-numbered",WebSite:"carbon:earth",WebPage:"carbon:page-first",BreadcrumbList:"carbon:flow",VideoObject:"carbon:video",Review:"carbon:star",AggregateRating:"carbon:star-filled",SearchAction:"carbon:search"}[e]||"carbon:code"}const U={article:["Article","NewsArticle","BlogPosting"],book:["Book"],breadcrumb:["BreadcrumbList"],carousel:["ItemList"],"course-info":["Course"],course:["Course"],dataset:["Dataset"],"discussion-forum":["DiscussionForumPosting"],"education-qa":["Question","Answer"],"employer-rating":["EmployerAggregateRating"],"estimated-salary":["OccupationalExperienceRequirements"],event:["Event"],factcheck:["ClaimReview"],faqpage:["FAQPage"],"image-license-metadata":["ImageObject"],"job-posting":["JobPosting"],"learning-video":["LearningResource","VideoObject"],"local-business":["LocalBusiness"],"math-solvers":["MathSolver"],movie:["Movie"],organization:["Organization"],"practice-problems":["Quiz","Question"],product:["Product"],"product-snippet":["Product"],"merchant-listing":["Product","Offer"],"product-variants":["Product"],"profile-page":["ProfilePage","Person"],qapage:["QAPage"],recipe:["Recipe"],"review-snippet":["Review"],"software-app":["SoftwareApplication"],speakable:["SpeakableSpecification"],"special-announcements":["SpecialAnnouncement"],"paywalled-content":["CreativeWork"],"vacation-rental":["Accommodation","LodgingBusiness"],"vehicle-listing":["Vehicle"],video:["VideoObject"]};function V(e){const r=e.replace("https://schema.org/",""),o=Object.entries(U).find(([i,t])=>t.includes(r))?.[0];return{type:r,schemaOrg:`https://schema.org/${r}`,googlePage:o?`https://developers.google.com/search/docs/appearance/structured-data/${o}`:null}}function D(e){return Array.isArray(e)?e:[e]}export{B as _,m as a,p as b,T as c,z as d,C as e,E as f,k as g,D as h,N as i,L as j,V as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as F,o as l,c as d,b,w as n,a as e,h as R,t as c,i as o,j as z,g as u,F as x,r as y,n as S,k as E,d as _,l as p,m as O,p as f,s as C,_ as q}from"./
|
|
1
|
+
import{f as F,o as l,c as d,b,w as n,a as e,h as R,t as c,i as o,j as z,g as u,F as x,r as y,n as S,k as E,d as _,l as p,m as O,p as f,s as C,_ as q}from"./lJJLnbTf.js";import{_ as H}from"./DbNB16xc.js";import{_ as P}from"./SqzsD7Ng.js";import{_ as G}from"./Bi7iarQE.js";const J={class:"space-y-4"},K={class:"flex items-center gap-2"},M={class:"id-browser",role:"img","aria-label":"Browser tab preview"},Q={class:"id-browser__chrome"},W={class:"id-browser__bar"},X={class:"id-browser__url"},Y={class:"id-browser__tabs"},Z={class:"id-browser__tab id-browser__tab--active"},ee=["src"],te={class:"id-browser__title"},se={class:"mt-3 space-y-1"},oe={class:"flex items-center justify-between"},le={class:"flex items-center gap-2"},re={class:"id-group-header"},ae={class:"id-group-count"},ne={class:"text-xs text-muted mb-3"},ie={class:"id-icon-grid"},de={class:"id-icon-preview"},ce=["src","alt"],ue={class:"id-icon-meta"},me={class:"id-icon-badges"},pe={class:"flex items-center justify-between"},he={class:"flex items-center gap-2"},_e={key:0,class:"mb-5"},fe={class:"flex items-center gap-3"},ve={class:"text-sm font-mono font-medium"},ge={key:1},be={class:"id-color-grid"},xe=["aria-label"],ye={class:"id-color-card__meta"},ke={class:"text-sm font-mono font-medium"},we=F({__name:"identity",setup(ze){const k=f(()=>C.value.seo),h=f(()=>C.value.tags.filter(s=>s.tag==="link"&&["icon","apple-touch-icon"].includes(s.props?.rel||"")).map(s=>({rel:s.props?.rel||"icon",href:s.props?.href||"",type:s.props?.type,sizes:s.props?.sizes,media:s.props?.media}))),T=f(()=>{const s={};for(const t of h.value){const i=t.rel;s[i]||(s[i]=[]),s[i].push(t)}return s}),A={icon:{label:"Favicon",description:"Browser tab icons"},"apple-touch-icon":{label:"Apple Touch Icon",description:"iOS home screen icon"}},v=f(()=>C.value.tags.filter(s=>s.tag==="meta"&&s.props?.name==="theme-color").map(s=>{const t=s.props?.media||null;let i="default";return t?.includes("prefers-color-scheme: light")?i="light":t?.includes("prefers-color-scheme: dark")&&(i="dark"),{color:s.props?.content||"",media:t,context:i}})),w=f(()=>C.value.tags.find(t=>t.tag==="meta"&&t.props?.name==="color-scheme")?.props?.content||null),B=f(()=>{const s=h.value.find(t=>t.href?.includes("favicon.ico"));return s?s.href:h.value.find(t=>t.rel==="icon")?.href||null}),L=f(()=>C.value.tags.find(t=>t.tag==="htmlAttrs")?.props?.lang||null),D=f(()=>[{done:!!k.value.title,html:"Set a <code>title</code> for the browser tab and search results."},{done:!!k.value.description,html:"Add a <code>description</code> meta tag for search result snippets."},{done:!!k.value.canonical,html:"Set a <code>canonical</code> URL so search engines know the preferred address."},{done:!!L.value,html:"Set the <code>lang</code> attribute on <code><html></code> for accessibility."}]),I=f(()=>[{done:h.value.some(s=>s.rel==="icon"),html:'Add a <code><link rel="icon"></code> favicon.'},{done:h.value.some(s=>s.rel==="apple-touch-icon"),html:"Add an <code>apple-touch-icon</code> for iOS home screen."},{done:h.value.some(s=>s.sizes),html:"Specify <code>sizes</code> on icons for resolution hints."}]),V=f(()=>[{done:v.value.length>0,html:"Set a <code>theme-color</code> to brand the mobile browser UI."},{done:v.value.some(s=>s.context==="light")&&v.value.some(s=>s.context==="dark"),html:"Add light/dark <code>theme-color</code> variants with <code>prefers-color-scheme</code> media queries."},{done:!!w.value,html:"Set <code>color-scheme</code> to declare supported modes (e.g. <code>light dark</code>)."}]);return(s,t)=>{const i=R,$=H,U=P,g=E,N=G;return l(),d("div",J,[b(U,null,{header:n(()=>[e("div",K,[b(i,{name:"i-carbon-application-web",class:"text-lg"}),t[0]||(t[0]=e("span",{class:"font-medium"},"Browser Preview",-1))])]),default:n(()=>[e("div",M,[e("div",Q,[t[1]||(t[1]=e("div",{class:"id-browser__dots","aria-hidden":"true"},[e("span"),e("span"),e("span")],-1)),e("div",W,[b(i,{name:"i-carbon-locked",class:"id-browser__lock"}),e("span",X,c(o(k).canonical||"localhost"),1)]),t[2]||(t[2]=e("div",{class:"id-browser__actions","aria-hidden":"true"},[e("span"),e("span"),e("span")],-1))]),e("div",Y,[e("div",Z,[!o(B)||o(z)(o(B))?(l(),u(i,{key:0,name:"i-carbon-earth",class:"id-browser__favicon-placeholder"})):(l(),d("img",{key:1,src:o(B),class:"id-browser__favicon",alt:"",width:"14",height:"14"},null,8,ee)),e("span",te,c(o(k).title||"Untitled"),1)]),t[3]||(t[3]=e("div",{class:"id-browser__tab"},[e("span",{class:"id-browser__title text-muted/40"},"New Tab")],-1))]),t[4]||(t[4]=e("div",{class:"id-browser__body","aria-hidden":"true"},null,-1))]),e("div",se,[(l(!0),d(x,null,y(o(D),(a,m)=>(l(),u($,{key:m,done:a.done,html:a.html},null,8,["done","html"]))),128))])]),_:1}),b(U,null,{header:n(()=>[e("div",oe,[e("div",le,[b(i,{name:"i-carbon-image",class:"text-lg"}),t[5]||(t[5]=e("span",{class:"font-medium"},"Icons",-1))]),o(h).length?(l(),u(g,{key:0,variant:"subtle",size:"xs",color:"neutral"},{default:n(()=>[_(c(o(h).length),1)]),_:1})):p("",!0)])]),default:n(()=>[o(h).length?(l(!0),d(x,{key:0},y(o(T),(a,m)=>(l(),d("div",{key:m,class:"mb-5 last:mb-0"},[e("div",re,[e("span",null,c(A[m]?.label||m),1),e("span",ae,c(a.length),1)]),e("p",ne,c(A[m]?.description||""),1),e("div",ie,[(l(!0),d(x,null,y(a,(r,j)=>(l(),d("div",{key:`${r.rel}:${r.href}:${r.sizes||""}:${r.type||""}:${j}`,class:S(["id-icon-card",{"id-icon-card--broken":o(z)(r.href)}])},[e("div",de,[o(z)(r.href)?(l(),u(i,{key:0,name:"i-carbon-warning-filled",class:"text-red-400 text-lg"})):(l(),d("img",{key:1,src:r.href,alt:r.rel,class:"id-icon-img",width:"32",height:"32",loading:"lazy"},null,8,ce))]),e("div",ue,[e("p",{class:S(["text-xs font-mono truncate",o(z)(r.href)?"text-red-400":"text-muted"])},c(r.href),3),e("div",me,[o(z)(r.href)?(l(),u(g,{key:0,color:"error",variant:"subtle",size:"xs"},{default:n(()=>[...t[6]||(t[6]=[_(" Broken ",-1)])]),_:1})):p("",!0),r.sizes?(l(),u(g,{key:1,variant:"subtle",size:"xs"},{default:n(()=>[_(c(r.sizes),1)]),_:2},1024)):p("",!0),r.type?(l(),u(g,{key:2,variant:"subtle",size:"xs",color:"neutral"},{default:n(()=>[_(c(r.type),1)]),_:2},1024)):p("",!0),r.media?(l(),u(g,{key:3,variant:"subtle",size:"xs",color:"info"},{default:n(()=>[_(c(r.media.includes("dark")?"Dark":r.media.includes("light")?"Light":r.media),1)]),_:2},1024)):p("",!0)])])],2))),128))])]))),128)):p("",!0),o(h).length?p("",!0):(l(),u(N,{key:1,icon:"i-carbon-image",title:"No favicons detected"},{description:n(()=>[...t[7]||(t[7]=[_(" Add a ",-1),e("code",{class:"bg-elevated px-1.5 py-0.5 rounded text-xs"},'<link rel="icon">',-1),_(" tag via ",-1),e("code",{class:"bg-elevated px-1.5 py-0.5 rounded text-xs"},"useHead()",-1),_(" to set your favicon. ",-1)])]),_:1})),e("div",{class:S(["space-y-1",o(h).length?"mt-4":"mt-2"])},[(l(!0),d(x,null,y(o(I),(a,m)=>(l(),u($,{key:m,done:a.done,html:a.html},null,8,["done","html"]))),128))],2)]),_:1}),b(U,null,{header:n(()=>[e("div",pe,[e("div",he,[b(i,{name:"i-carbon-color-palette",class:"text-lg"}),t[8]||(t[8]=e("span",{class:"font-medium"},"Theme Colors",-1))]),o(v).length?(l(),u(g,{key:0,variant:"subtle",size:"xs",color:"neutral"},{default:n(()=>[_(c(o(v).length),1)]),_:1})):p("",!0)])]),default:n(()=>[o(w)?(l(),d("div",_e,[t[11]||(t[11]=e("div",{class:"id-group-header"},[e("span",null,"Color Scheme")],-1)),e("div",fe,[t[10]||(t[10]=e("div",{class:"w-10 h-6 rounded border border-default",style:{background:"linear-gradient(90deg, #fff 50%, #1a1a1a 50%)"},"aria-hidden":"true"},null,-1)),e("div",null,[e("span",ve,c(o(w)),1),t[9]||(t[9]=e("p",{class:"text-xs text-muted"}," Supported color schemes for system preferences ",-1))])])])):p("",!0),o(v).length?(l(),d("div",ge,[t[12]||(t[12]=e("div",{class:"id-group-header"},[e("span",null,"Theme Colors")],-1)),e("div",be,[(l(!0),d(x,null,y(o(v),(a,m)=>(l(),d("div",{key:m,class:"id-color-card"},[e("div",{class:"id-color-card__swatch",role:"img","aria-label":`Color swatch: ${a.color}`,style:O({backgroundColor:a.color})},null,12,xe),e("div",ye,[e("span",ke,c(a.color),1),a.context!=="default"?(l(),u(g,{key:0,variant:"subtle",size:"xs"},{default:n(()=>[_(c(a.context),1)]),_:2},1024)):p("",!0)])]))),128))])])):p("",!0),!o(v).length&&!o(w)?(l(),u(N,{key:2,icon:"i-carbon-color-palette",title:"No theme colors set"},{description:n(()=>[...t[13]||(t[13]=[_(" Theme colors customize the browser chrome and mobile status bar. ",-1)])]),_:1})):p("",!0),e("div",{class:S(["space-y-1",o(v).length||o(w)?"mt-4":"mt-2"])},[(l(!0),d(x,null,y(o(V),(a,m)=>(l(),u($,{key:m,done:a.done,html:a.html},null,8,["done","html"]))),128))],2)]),_:1})])}}}),Ue=q(we,[["__scopeId","data-v-fc14a067"]]);export{Ue as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as a,o,c as t,n as i,b as l,h as c,v as d,_}from"./
|
|
1
|
+
import{f as a,o,c as t,n as i,b as l,h as c,v as d,_}from"./lJJLnbTf.js";const m=["innerHTML"],r={key:1,class:"devtools-tip__text"},p=a({__name:"DevtoolsTip",props:{icon:{},done:{type:Boolean,default:!1},html:{}},setup(e){return(n,v)=>{const s=c;return o(),t("div",{class:i(["devtools-tip",e.done?"devtools-tip--done":"devtools-tip--missing"])},[l(s,{name:e.icon||(e.done?"i-carbon-checkmark-filled":"i-carbon-idea"),class:"shrink-0 text-sm devtools-tip__icon","aria-hidden":"true"},null,8,["name"]),e.html?(o(),t("span",{key:0,class:"devtools-tip__text",innerHTML:e.html},null,8,m)):(o(),t("span",r,[d(n.$slots,"default",{},void 0,!0)]))],2)}}}),h=Object.assign(_(p,[["__scopeId","data-v-206bd0dd"]]),{__name:"DevtoolsTip"});export{h as _};
|