@unhead/bundler 3.0.0-rc.1 → 3.0.0-rc.4
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/BCwvLIcr.js +1 -0
- package/dist/devtools-ui/_nuxt/{BOzzsL9j.js → BTwuGVhh.js} +1 -1
- package/dist/devtools-ui/_nuxt/{aDaU-lXw.js → BarHPyBZ.js} +1 -1
- package/dist/devtools-ui/_nuxt/{DuAJIi38.js → Bd0yBFZc.js} +1 -1
- package/dist/devtools-ui/_nuxt/{DNXA5IKg.js → Bd8Qox91.js} +1 -1
- package/dist/devtools-ui/_nuxt/{D_TuKxep.js → BigBxDWf.js} +1 -1
- package/dist/devtools-ui/_nuxt/{Dpg3GvfJ.js → BxyPzrDo.js} +1 -1
- package/dist/devtools-ui/_nuxt/{CVGS_sMg.js → C6wYqob9.js} +1 -1
- package/dist/devtools-ui/_nuxt/{B9CgE5J6.js → CX7-V6V7.js} +1 -1
- package/dist/devtools-ui/_nuxt/{D2j1X0ma.js → DHY-LmKr.js} +30 -30
- package/dist/devtools-ui/_nuxt/{BJ42UJro.js → DMRBq2a4.js} +1 -1
- package/dist/devtools-ui/_nuxt/{D2XNJYSt.js → DNE1cpGM.js} +1 -1
- package/dist/devtools-ui/_nuxt/{CUZFOKWE.js → DXNnCkmx.js} +1 -1
- package/dist/devtools-ui/_nuxt/DZ_hc9Cv.js +1 -0
- package/dist/devtools-ui/_nuxt/builds/latest.json +1 -1
- package/dist/devtools-ui/_nuxt/builds/meta/cdfd6ebb-0804-4b4a-a99a-841a0f4fa9a1.json +1 -0
- package/dist/devtools-ui/_nuxt/{Deu7B_Ux.js → e7ZvZaiE.js} +1 -1
- package/dist/devtools-ui/_nuxt/{UQ4k7j0M.js → uh2Yu8tq.js} +1 -1
- package/dist/devtools-ui/_nuxt/{cBFzznMP.js → wCbxZH3c.js} +1 -1
- package/dist/devtools-ui/index.html +1 -1
- package/package.json +3 -4
- package/dist/devtools-ui/_nuxt/CC8iqwL_.js +0 -1
- package/dist/devtools-ui/_nuxt/QXSvvKqL.js +0 -1
- package/dist/devtools-ui/_nuxt/builds/meta/cae94e84-32db-4da4-8b0f-478d21dcc68b.json +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/DHY-LmKr.js"><script type="module" src="/__unhead/_nuxt/DHY-LmKr.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:"cdfd6ebb-0804-4b4a-a99a-841a0f4fa9a1",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1775750389290,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/DHY-LmKr.js"><script type="module" src="/__unhead/_nuxt/DHY-LmKr.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:"cdfd6ebb-0804-4b4a-a99a-841a0f4fa9a1",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1775750389290,false]</script></body></html>
|
|
@@ -0,0 +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"./DHY-LmKr.js";import{_ as U}from"./DZ_hc9Cv.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{_ as I}from"./
|
|
1
|
+
import{_ as I}from"./e7ZvZaiE.js";import{_ as M,g as y,a as i,b as p,f as T,c as q,n as O,d as U,e as J,i as E}from"./C6wYqob9.js";import{f as C,q as F,o,c as r,a as n,n as k,g as f,h as L,l as g,v as N,d as c,t as m,x as G,_ as H,i as e,w as h,F as w,r as j,b as x,k as K,p as R,s as Q}from"./DHY-LmKr.js";import{_ as W}from"./DZ_hc9Cv.js";import{_ as X}from"./Bd0yBFZc.js";const Y=["open"],Z={class:"flex-1 min-w-0"},ee={class:"text-sm font-semibold"},te={key:0,class:"text-xs text-muted mt-0.5"},se=C({__name:"DevtoolsSection",props:G({icon:{},text:{},description:{},collapse:{type:Boolean,default:!0},padding:{type:Boolean,default:!0}},{open:{default:!0},openModifiers:{}}),emits:["update:open"],setup(d){const v=F(d,"open");function b(u){v.value=u.target.open}return(u,S)=>{const a=L;return o(),r("details",{open:v.value,class:"section-block",onToggle:b},[n("summary",{class:k(["section-header",d.collapse?"":"pointer-events-none"])},[n("div",{class:k(["section-title",v.value?"":"opacity-60"])},[d.icon?(o(),f(a,{key:0,name:d.icon,class:"text-lg text-muted shrink-0"},null,8,["name"])):g("",!0),n("div",Z,[n("div",ee,[N(u.$slots,"text",{},()=>[c(m(d.text),1)],!0)]),d.description||u.$slots.description?(o(),r("div",te,[N(u.$slots,"description",{},()=>[c(m(d.description),1)],!0)])):g("",!0)]),N(u.$slots,"actions",{},void 0,!0),d.collapse?(o(),f(a,{key:1,name:"i-carbon-chevron-down",class:"section-chevron text-muted"})):g("",!0)],2)],2),n("div",{class:k(d.padding?"p-3":"")},[N(u.$slots,"default",{},void 0,!0)],2)],40,Y)}}}),oe=Object.assign(H(se,[["__scopeId","data-v-4f7a0867"]]),{__name:"DevtoolsSection"}),ne={class:"space-y-4"},ae={class:"font-medium"},re={class:"flex items-center gap-2"},le={class:"font-medium text-sm"},ie={class:"text-xs text-muted mt-1 truncate"},ce={key:0,class:"space-y-4"},de={key:0},me={class:"space-y-0.5"},ue={class:"text-sm font-mono"},pe={key:0,class:"text-xs text-muted font-mono ml-auto truncate max-w-[200px]"},xe={class:"space-y-0.5 p-2"},fe={class:"text-sm font-mono"},ge={key:0,class:"text-xs text-muted font-mono ml-auto truncate max-w-[200px]"},_e={class:"flex gap-3 pt-2 border-t border-default"},he=["href"],ve=["href"],ye={class:"flex gap-3 justify-center pt-2"},ke={href:"https://validator.schema.org/",target:"_blank",rel:"noopener noreferrer",class:"text-xs text-muted hover:text-default flex items-center gap-1"},be={href:"https://search.google.com/test/rich-results",target:"_blank",rel:"noopener noreferrer",class:"text-xs text-muted hover:text-default flex items-center gap-1"},De=C({__name:"schema",setup(d){const v=R(()=>{const a=Q.value.tags.filter(t=>t.tag==="script"&&t.props?.type==="application/ld+json");if(!a.length)return null;for(const t of a)try{return JSON.parse(t.innerHTML||"{}")}catch{continue}return null}),b=R(()=>{const a=v.value;return a?a["@graph"]&&Array.isArray(a["@graph"])?a["@graph"].filter(t=>!t||typeof t!="object"||Object.keys(t).length===1&&t["@id"]?!1:!!t["@type"]):a["@type"]?[a]:[]:[]}),u=R(()=>b.value.filter(a=>E(i(a)))),S=R(()=>{let a=0,t=0;for(const D of u.value){const $=q(D);a+=$.missingRequired.length,t+=$.missingRecommended.length}return{errors:a,warnings:t}});return(a,t)=>{const D=I,$=M,_=L,B=K,V=oe,P=W,z=X;return o(),r("div",ne,[e(v)?(o(),r(w,{key:1},[e(S).errors>0?(o(),f($,{key:0,variant:"error"},{default:h(()=>[n("p",ae,m(e(S).errors)+" missing required propert"+m(e(S).errors>1?"ies":"y"),1)]),_:1})):g("",!0),(o(!0),r(w,null,j(e(b),(s,A)=>(o(),f(z,{key:A},{header:h(()=>[n("div",re,[x(_,{name:e(U)(e(i)(s)),class:"text-lg"},null,8,["name"]),n("span",le,m(e(i)(s)),1)]),n("p",ie,m(e(J)(s)),1)]),default:h(()=>[e(y)[e(i)(s)]?(o(),r("div",ce,[e(y)[e(i)(s)]?.required.length?(o(),r("div",de,[t[2]||(t[2]=n("div",{class:"text-xs font-semibold uppercase tracking-wider text-muted mb-2"}," Required ",-1)),n("div",me,[(o(!0),r(w,null,j(e(y)[e(i)(s)].required,l=>(o(),r("div",{key:l,class:"flex items-center gap-2 px-2 py-1.5 rounded-md"},[x(_,{name:e(p)(s,l)!==void 0?"i-carbon-checkmark-filled":"i-carbon-close-filled",class:k(["text-sm shrink-0",e(p)(s,l)!==void 0?"text-green-500":"text-red-400"])},null,8,["name","class"]),n("span",ue,m(l),1),e(p)(s,l)!==void 0?(o(),r("span",pe,m(e(T)(e(p)(s,l))),1)):(o(),f(B,{key:1,color:"error",variant:"subtle",size:"xs",class:"ml-auto"},{default:h(()=>[...t[1]||(t[1]=[c(" missing ",-1)])]),_:1}))]))),128))])])):g("",!0),e(y)[e(i)(s)]?.recommended.length?(o(),f(V,{key:1,open:!1,icon:"i-carbon-warning-filled",text:`Recommended (${e(q)(s).missingRecommended.length} missing)`,padding:!1},{default:h(()=>[n("div",xe,[(o(!0),r(w,null,j(e(y)[e(i)(s)].recommended,l=>(o(),r("div",{key:l,class:"flex items-center gap-2 px-2 py-1.5 rounded-md"},[x(_,{name:e(p)(s,l)!==void 0?"i-carbon-checkmark-filled":"i-carbon-warning-filled",class:k(["text-sm shrink-0",e(p)(s,l)!==void 0?"text-green-500":"text-amber-400"])},null,8,["name","class"]),n("span",fe,m(l),1),e(p)(s,l)!==void 0?(o(),r("span",ge,m(e(T)(e(p)(s,l))),1)):(o(),f(B,{key:1,color:"warning",variant:"subtle",size:"xs",class:"ml-auto"},{default:h(()=>[...t[3]||(t[3]=[c(" missing ",-1)])]),_:1}))]))),128))])]),_:2},1032,["text"])):g("",!0),n("div",_e,[n("a",{href:e(O)(e(i)(s)).schemaOrg,target:"_blank",rel:"noopener noreferrer",class:"text-xs text-muted hover:text-default flex items-center gap-1"},[x(_,{name:"i-carbon-launch",class:"text-xs"}),t[4]||(t[4]=c(" Schema.org ",-1))],8,he),e(O)(e(i)(s)).googlePage?(o(),r("a",{key:0,href:e(O)(e(i)(s)).googlePage,target:"_blank",rel:"noopener noreferrer",class:"text-xs text-muted hover:text-default flex items-center gap-1"},[x(_,{name:"i-carbon-launch",class:"text-xs"}),t[5]||(t[5]=c(" Google Docs ",-1))],8,ve)):g("",!0)])])):g("",!0),n("div",{class:k(["max-h-[400px] overflow-auto",{"mt-4 pt-4 border-t border-default":e(y)[e(i)(s)]}])},[x(P,{code:JSON.stringify(s,null,2),lang:"json"},null,8,["code"])],2)]),_:2},1024))),128)),n("div",ye,[n("a",ke,[x(_,{name:"i-carbon-launch",class:"text-xs"}),t[6]||(t[6]=c(" Schema.org Validator ",-1))]),n("a",be,[x(_,{name:"i-carbon-launch",class:"text-xs"}),t[7]||(t[7]=c(" Google Rich Results Test ",-1))])])],64)):(o(),f(D,{key:0,icon:"i-carbon-chart-relationship",title:"No structured data detected"},{description:h(()=>[...t[0]||(t[0]=[c(" Add JSON-LD structured data via ",-1),n("code",{class:"bg-elevated px-1.5 py-0.5 rounded text-xs"},"useSchemaOrg()",-1),c(" or ",-1),n("code",{class:"bg-elevated px-1.5 py-0.5 rounded text-xs"},"useHead()",-1),c(" with a script tag. ",-1)])]),_:1}))])}}});export{De as default};
|
|
@@ -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"./DHY-LmKr.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{A as p,C as m,D as y,o as s,g,w as b,c as i,n as o,i as e,v as n,l as u,P as h,p as C,M as f}from"./
|
|
1
|
+
import{A as p,C as m,D as y,o as s,g,w as b,c as i,n as o,i as e,v as n,l as u,P as h,p as C,M as f}from"./DHY-LmKr.js";const k={slots:{root:"rounded-lg overflow-hidden",header:"p-4 sm:px-6",body:"p-4 sm:p-6",footer:"p-4 sm:px-6"},variants:{variant:{solid:{root:"bg-inverted text-inverted"},outline:{root:"bg-default ring ring-default divide-y divide-default"},soft:{root:"bg-elevated/50 divide-y divide-default"},subtle:{root:"bg-elevated/50 ring ring-default divide-y divide-default"}}},defaultVariants:{variant:"outline"}},w={__name:"UCard",props:{as:{type:null,required:!1},variant:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(c){const r=c,l=p(),v=m(),a=y("card",r),t=C(()=>f({extend:f(k),...v.ui?.card||{}})({variant:r.variant}));return(d,q)=>(s(),g(e(h),{as:c.as,"data-slot":"root",class:o(t.value.root({class:[e(a)?.root,r.class]}))},{default:b(()=>[l.header?(s(),i("div",{key:0,"data-slot":"header",class:o(t.value.header({class:e(a)?.header}))},[n(d.$slots,"header")],2)):u("",!0),l.default?(s(),i("div",{key:1,"data-slot":"body",class:o(t.value.body({class:e(a)?.body}))},[n(d.$slots,"default")],2)):u("",!0),l.footer?(s(),i("div",{key:2,"data-slot":"footer",class:o(t.value.footer({class:e(a)?.footer}))},[n(d.$slots,"footer")],2)):u("",!0)]),_:3},8,["as","class"]))}};export{w as _};
|
|
@@ -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"./D2j1X0ma.js";import{_ as ue}from"./DuAJIi38.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"./CVGS_sMg.js";import{_ as ge}from"./CC8iqwL_.js";import"./QXSvvKqL.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"./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 +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"./D2j1X0ma.js";import{_ as O}from"./DuAJIi38.js";import{_ as P}from"./D2XNJYSt.js";import{_ as K}from"./BJ42UJro.js";import"./CC8iqwL_.js";import"./QXSvvKqL.js";import"./Deu7B_Ux.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"./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 +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"./DHY-LmKr.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-5194c732"]]);export{v as default};
|
|
@@ -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"./DHY-LmKr.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{_ 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"./DHY-LmKr.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)])]))}},g=o(f,[["__scopeId","data-v-febaa765"]]);export{g as default};
|