PageSourceSearch

https://alttextstudio.com/_nuxt/ueGJGYs-.js

js alttextstudio.com collected 2026-09-24 09:07:17 UTC 24,457 bytes, 3 lines download raw bytes

1import{d as E,e as L,af as O,c as n,o,B as r,a as e,F as z,A as B,f as g,D as p,_ as W,k as D,l as X,q as Y,w as K,H as N,M as U,n as V,N as F,t as G,a7 as J,y as Q,a4 as ee,ag as q,z as te,v as A,x as $,g as oe,u as se,E as T,G as re}from"./FbEdaL-q.js";import{u as ne,_ as le}from"./N4fwy2Ip.js";const ae=["viewBox"],ie=["id"],de=["fill"],ue=["x","y","width","height","stroke"],ce=["x1","y1","x2","y2","stroke","marker-end"],pe=["cx","cy","r","stroke"],fe=["transform"],ge=["fill"],me=["fill"],xe=["x","y","fill"],be=E({__name:"ScreenshotAnnotations",props:{annotations:{},aspect:{},animated:{type:Boolean,default:!0}},setup(j){const h=j,m=L(()=>`0 0 100 ${(h.aspect*100).toFixed(3)}`),x=s=>(s||0)*h.aspect;function v(s){switch(s){case"yellow":return"#facc15";case"blue":return"#3b82f6";case"purple":return"#a855f7";case"red":default:return"#ef4444"}}const w=s=>v(s||"yellow"),y=O();return(s,_)=>(o(),n("svg",{class:"docs-annotations",viewBox:r(m),preserveAspectRatio:"none","aria-hidden":"true",focusable:"false"},[e("defs",null,[(o(),n(z,null,B(["red","yellow","blue","purple"],a=>e("marker",{id:`docs-arrow-${a}-${r(y)}`,key:a,viewBox:"0 0 10 10",refX:"8",refY:"5",markerWidth:"4",markerHeight:"4",orient:"auto-start-reverse"},[e("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:v(a)},null,8,de)],8,ie)),64))]),(o(!0),n(z,null,B(s.annotations,(a,l)=>(o(),n(z,{key:l},[a.type==="rect"?(o(),n("rect",{key:0,x:a.x,y:x(a.y),width:a.w||5,height:x(a.h||5),stroke:v(a.color),fill:"none","stroke-width":"2.5",rx:"1","vector-effect":"non-scaling-stroke"},null,8,ue)):a.type==="arrow"?(o(),n("line",{key:1,x1:a.fromX||0,y1:x(a.fromY),x2:a.x,y2:x(a.y),stroke:v(a.color),"stroke-width":"2.5","stroke-linecap":"round","marker-end":`url(#docs-arrow-${a.color||"red"}-${r(y)})`,"vector-effect":"non-scaling-stroke"},null,8,ce)):a.type==="circle"?(o(),n("circle",{key:2,cx:a.x,cy:x(a.y),r:a.w||4,stroke:v(a.color),fill:"none","stroke-width":"2.5","vector-effect":"non-scaling-stroke"},null,8,pe)):a.type==="cursor"?(o(),n("g",{key:3,transform:`translate(${a.x}, ${x(a.y)})`},[s.animated?(o(),n("circle",{key:0,class:"docs-beacon",cx:"0",cy:"0",r:"2",fill:w(a.color),opacity:"0.45"},_[0]||(_[0]=[e("animate",{attributeName:"r",values:"1;4.5;1",dur:"1.8s",repeatCount:"indefinite"},null,-1),e("animate",{attributeName:"opacity",values:"0.45;0;0.45",dur:"1.8s",repeatCount:"indefinite"},null,-1)]),8,ge)):g("",!0),e("circle",{class:"docs-beacon-still",cx:"0",cy:"0",r:"3.2",fill:w(a.color),opacity:"0.35"},null,8,me),_[1]||(_[1]=e("path",{d:"M0 0 L0 3.54 L0.88 2.69 L1.46 3.91 L2.14 3.6 L1.56 2.41 L2.65 2.35 Z",fill:"#ffffff",stroke:"#1f2937","stroke-width":"1.5","stroke-linejoin":"round","vector-effect":"non-scaling-stroke"},null,-1))],8,fe)):g("",!0),a.label?(o(),n("text",{key:4,x:a.x,y:x(a.y)-1.6,fill:v(a.color),"font-size":"3.4","font-weight":"700","paint-order":"stroke",stroke:"#fff","stroke-width":"1.1","stroke-linejoin":"round"},p(a.label),9,xe)):g("",!0)],64))),128))],8,ae))}}),he=W(be,[["__scopeId","data-v-5f405195"]]),ve={class:"screenshot-card my-6"},ye={key:0,class:"pane-label"},_e=["role","tabindex","aria-label","onClick","onKeydown"],ke=["src","alt"],we={key:1,class:"placeholder text-muted border-border/40 bg-surface-2/40"},$e={class:"text-muted max-w-lg text-xs italic"},Le={key:0,class:"text-muted mt-2 px-2 pb-1 text-sm"},Ce=["aria-label"],Me={class:"zoom-figure"},ze=["src","alt"],Te=E({__name:"ScreenshotCard",props:{screenshot:{}},setup(j){const h=j,m=D(!1);let x=null;function v(){typeof document>"u"||(m.value=document.documentElement.classList.contains("dark"))}X(()=>{v(),typeof MutationObserver<"u"&&(x=new MutationObserver(v),x.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}))}),Y(()=>{x?.disconnect(),x=null});const w=L(()=>m.value?h.screenshot.dark:h.screenshot.light),y=L(()=>{const f=h.screenshot,M={key:"after",light:f.light,dark:f.dark,alt:f.alt,label:f.before?f.label||"After":null,annotations:f.annotations||[]};return f.before?[{key:"before",light:f.before.light,dark:f.before.dark,alt:f.before.alt,label:f.before.label||"Before",annotations:[]},M]:[M]}),s=L(()=>y.value.length>1),_=f=>m.value?f.dark:f.light,a=D(!1),l=D(!1),i=D(!1),t=D(.625),d=L(()=>h.screenshot.available===!0&&!a.value);K(w,()=>{a.value=!1,l.value=!1});function b(){a.value=!0}function c(f){l.value=!0;const M=f.target;
1M?.naturalWidth&&(t.value=M.naturalHeight/M.naturalWidth)}const u=D(0);function k(f=0){d.value&&(u.value=f,i.value=!0)}const C=L(()=>y.value[u.value]||y.value[0]);function I(){i.value=!1}function Z(f){f.key==="Escape"&&I()}return K(i,f=>{typeof document>"u"||(f?(document.addEventListener("keydown",Z),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",Z),document.body.style.overflow=""))}),(f,M)=>{const P=he;return o(),n("figure",ve,[e("div",{class:V(["border-border/40 bg-surface/40 rounded-2xl border p-2 shadow-sm",r(s)?"pair-grid":""])},[(o(!0),n(z,null,B(r(y),(H,S)=>(o(),n("div",{key:H.key,class:"pane"},[H.label?(o(),n("p",ye,p(H.label),1)):g("",!0),e("div",{class:V(["image-wrapper rounded-xl overflow-hidden",r(d)?"cursor-zoom-in":""]),role:r(d)?"button":void 0,tabindex:r(d)?0:void 0,"aria-label":r(d)?`Zoom screenshot: ${H.alt}`:void 0,onClick:R=>k(S),onKeydown:[U(F(R=>k(S),["prevent"]),["enter"]),U(F(R=>k(S),["prevent"]),["space"])]},[r(d)?(o(),n(z,{key:0},[e("img",{src:_(H),alt:H.alt,loading:"lazy",class:"block h-auto w-full",onError:b,onLoad:c},null,40,ke),H.annotations.length?(o(),N(P,{key:0,annotations:H.annotations,aspect:r(t)},null,8,["annotations","aspect"])):g("",!0),M[0]||(M[0]=e("span",{class:"zoom-hint","aria-hidden":"true"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e("circle",{cx:"11",cy:"11",r:"7"}),e("path",{"stroke-linecap":"round",d:"m21 21-4.3-4.3M11 8v6M8 11h6"})])],-1))],64)):(o(),n("div",we,[M[1]||(M[1]=G('<div class="placeholder-icon text-brand-purple opacity-70" aria-hidden="true" data-v-5e208f31><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" data-v-5e208f31><rect x="3" y="3" width="18" height="18" rx="2" data-v-5e208f31></rect><circle cx="8.5" cy="8.5" r="1.5" data-v-5e208f31></circle><path d="M21 15l-5-5L5 21" data-v-5e208f31></path></svg></div><div class="text-foreground text-sm font-semibold" data-v-5e208f31>Screenshot coming soon</div>',2)),e("div",$e,p(H.alt),1)]))],42,_e)]))),128))],2),f.screenshot.caption?(o(),n("figcaption",Le,p(f.screenshot.caption),1)):g("",!0),(o(),N(J,{to:"body"},[r(i)?(o(),n("div",{key:0,class:"zoom-modal",role:"dialog","aria-modal":"true","aria-label":r(C).alt,onClick:F(I,["self"])},[e("button",{type:"button",class:"zoom-close","aria-label":"Close zoomed screenshot",onClick:I},M[2]||(M[2]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})],-1)])),e("div",Me,[e("img",{src:_(r(C)),alt:r(C).alt,class:"zoom-img",onLoad:c},null,40,ze),r(C).annotations.length?(o(),N(P,{key:0,annotations:r(C).annotations,aspect:r(t),animated:!1},null,8,["annotations","aspect"])):g("",!0)])],8,Ce)):g("",!0)]))])}}}),Be=W(Te,[["__scopeId","data-v-5e208f31"]]),He={class:"border-border/40 bg-surface/40 overflow-x-auto rounded-2xl border"},De={class:"text-muted w-full text-left text-sm"},Ne={class:"text-foreground/85 px-4 py-3 sm:px-6"},je={class:"text-foreground/85 px-4 py-3 sm:px-6"},Ae={class:"text-accent px-4 py-3 font-semibold sm:px-6"},Ee=E({__name:"CreditCostTable",setup(j){const h=[{length:"Normal",languages:1,total:1},{length:"Normal",languages:2,total:2},{length:"Normal",languages:3,total:3},{length:"Detailed",languages:1,total:2},{length:"Detailed",languages:2,total:4},{length:"Detailed",languages:3,total:6}];return(m,x)=>(o(),n("div",He,[e("table",De,[x[0]||(x[0]=e("thead",{class:"bg-surface-2 text-foreground/80 text-xs uppercase tracking-wide"},[e("tr",null,[e("th",{scope:"col",class:"px-4 py-3 sm:px-6"},"Text Length"),e("th",{scope:"col",class:"px-4 py-3 sm:px-6"},"Languages"),e("th",{scope:"col",class:"px-4 py-3 sm:px-6"},"Total Credits")])],-1)),e("tbody",null,[(o(),n(z,null,B(h,(v,w)=>e("tr",{key:w,class:"border-border/30 border-b last:border-b-0"},[e("td",Ne,p(v.length),1),e("td",je,p(v.languages),1),e("td",Ae,p(v.total)+" credit"+p(v.total===1?"":"s"),1)])),64))])])]))}}),Ie={class:"border-border bg-surface dark:from-surface dark:to-surface-2 rounded-2xl border bg-gradient-to-br from-blue-50 to-indigo-50 p-4 shadow-sm sm:p-6"},Se={class:"mb-6 flex flex-col items-center justify-center gap-3 sm:flex-row sm:gap-5"},Fe={class:"border-border bg-surface flex h-24 w-28 flex-col items-center justify-center rounded-2xl border shadow-sm"},Ve={class:"text-accent mt-1 text-3xl font-bold"},We={class:"border-border bg-surface flex h-24 w-28 flex-col items-center justify-center rounded-2xl border shadow-sm"},Ze={class:"text-accent mt-1 text-3xl font-bold"},Pe={class:"border-border bg-surface flex h-24 w-32 flex-col items-center justify-center rounded-2xl border shadow-sm"},Re={class:"text-accent mt-1 text-3xl font-bold"},Ke={class:"grid grid-cols-1 gap-4 sm:grid-cols-2"},Ue=E({__name:"CreditCalculator",setup(j){const h=D("normal"),m=D(1),x=L(()=>h.value==="detailed"?2:1),v=L(()=>Math.max(1,m.value||1)*x.value);function w(){const y=Number(m.value);!Number.isFinite(y)||y<1?m.value=1:y>194?m.value=194:m.value=Math.floor(y)}return(y,s)=>
1(o(),n("div",Ie,[s[10]||(s[10]=e("p",{class:"text-foreground/80 mb-4 text-center text-sm font-semibold uppercase tracking-wide"}," Credit calculator ",-1)),e("div",Se,[e("div",Fe,[s[2]||(s[2]=e("p",{class:"text-muted text-[10px] font-semibold uppercase tracking-wide"},"Text length",-1)),e("span",Ve,p(r(x)),1)]),s[5]||(s[5]=e("div",{class:"text-muted text-2xl font-light"},"×",-1)),e("div",We,[s[3]||(s[3]=e("p",{class:"text-muted text-[10px] font-semibold uppercase tracking-wide"},"Languages",-1)),e("span",Ze,p(Math.max(1,r(m)||1)),1)]),s[6]||(s[6]=e("div",{class:"text-muted text-2xl font-light"},"=",-1)),e("div",Pe,[s[4]||(s[4]=e("p",{class:"text-muted text-[10px] font-semibold uppercase tracking-wide"},"Total credits",-1)),e("span",Re,p(r(v)),1)])]),e("div",Ke,[e("div",null,[s[8]||(s[8]=e("label",{for:"calc-length",class:"text-foreground/80 mb-1 block text-sm font-medium"},"Text length",-1)),Q(e("select",{id:"calc-length","onUpdate:modelValue":s[0]||(s[0]=_=>q(h)?h.value=_:null),class:"border-border bg-surface text-foreground focus:border-accent focus:ring-accent/30 w-full cursor-pointer rounded-lg border p-2.5 text-sm focus:outline-none focus:ring-2"},s[7]||(s[7]=[e("option",{value:"normal"},"Normal (1 credit per language)",-1),e("option",{value:"detailed"},"Detailed (2 credits per language)",-1)]),512),[[ee,r(h)]])]),e("div",null,[s[9]||(s[9]=e("label",{for:"calc-languages",class:"text-foreground/80 mb-1 block text-sm font-medium"},"Languages",-1)),Q(e("input",{id:"calc-languages","onUpdate:modelValue":s[1]||(s[1]=_=>q(m)?m.value=_:null),type:"number",min:"1",max:"194",onBlur:w,class:"border-border bg-surface text-foreground focus:border-accent focus:ring-accent/30 w-full rounded-lg border px-3 py-2.5 text-sm focus:outline-none focus:ring-2"},null,544),[[te,r(m),void 0,{number:!0}]])])])]))}}),Qe={class:"docs-step relative pl-12"},qe={class:"bg-accent text-on-accent absolute left-0 top-0 flex h-9 w-9 items-center justify-center rounded-full text-sm font-bold shadow"},Oe={key:0,class:"text-foreground mt-1 text-xl font-semibold"},Xe=["innerHTML"],Ye={key:2,class:"mt-4"},Ge={key:3,class:"mt-4"},Je={key:4,class:"mt-4"},et={key:0,class:"text-muted mb-1.5 text-xs font-medium"},tt={key:1,class:"border-border/40 bg-surface-2 overflow-x-auto rounded-lg border"},ot={class:"w-full text-left text-xs"},st={class:"bg-surface-2"},rt={key:0,class:"break-all"},nt={key:1,class:"text-muted/60"},lt={key:2,class:"border-border/40 bg-surface-2 text-foreground/90 overflow-x-auto rounded-lg border p-4 text-xs leading-relaxed"},at=["innerHTML"],it={class:"flex items-start gap-2"},dt={"aria-hidden":"true",class:"mt-0.5 inline-flex shrink-0"},ut={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",fill:"currentColor",viewBox:"0 0 16 16"},ct={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",fill:"currentColor",viewBox:"0 0 16 16"},pt=["innerHTML"],ft=E({__name:"StepCard",props:{step:{},index:{}},setup(j){const h=j;function m(l){return l.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/`([^`]+)`/g,'<code class="bg-surface-2 text-foreground rounded px-1 py-0.5 text-[0.92em]">$1</code>').replace(/\[([^\]]+)\]\(([^)]+)\)/g,(i,t,d)=>{const b=/^https?:\/\//.test(d),c=!b&&/\.(csv|xlsx|json|txt|zip|pdf|html)$/i.test(d);let u="";return b&&(u+=' target="_blank" rel="noopener noreferrer"'),c&&(u+=" download"),`<a href="${d}" class="text-brand-purple underline underline-offset-2 hover:opacity-80 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-purple/60 rounded"${u}>${t}</a>`}).replace(/\*\*([^*]+)\*\*/g,'<strong class="font-semibold">$1</strong>').replace(/(^|[^A-Za-z0-9])_([^_\n]+)_(?=[^A-Za-z0-9]|$)/g,'$1<em class="italic">$2</em>')}function x(l){const i=l.split(`
2`),t=[];let d=[],b=[];const c=()=>{d.length!==0&&(t.push(`<p class="text-foreground/90 leading-relaxed">${m(d.join(" "))}</p>`),d=[])},u=()=>{if(b.length===0)return;const k=b.map(C=>`<li>${m(C)}</li>`).join("");t.push(`<ul class="list-disc space-y-1 pl-5 text-foreground/90 leading-relaxed marker:text-muted">${k}</ul>`),b=[]};for(const k of i){const C=k.trim();C.startsWith("- ")?(c(),b.push(C.slice(2))):C===""?(c(),u()):(u(),d.push(C))}return c(),u(),t.join("")}function v(l){return l.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const w=D(!1);async function y(l){try{await navigator.clipboard.writeText(l),w.value=!0,setTimeout(()=>w.value=!1,1500)}catch{}}function s(l){const i=[];let t=[],d="",b=!1;for(let c=0;c<l.length;c++){const u=l[c];b?u==='"'?l[c+1]==='"'?(d+='"',c++):b=!1:d+=u:u==='"'?b=!0:u===","?(t.push(d),d=""):u===`
3`?(t.push(d),i.push(t),t=[],d=""):u==="\r"||(d+=u)}return(d.length>0||t.length>0)&&(t.push(d),i.push(t)),i.filter(c=>c.length>1||c.length===1&&c[0]!=="")}const _=L(()=>{const l=h.step.example;if(!l||l.format!=="csv")return null;const i=s(l.content.trim());if(i.length===0)return null;const[t,...d]=i;return{headers:t,rows:d}}),a=L(()=>
3{if(!h.step.note)return"";switch(h.step.note.type){case"warning":return"border-yellow-500/30 bg-yellow-500/10 text-yellow-900 dark:text-yellow-200";case"danger":return"border-red-500/30 bg-red-500/10 text-red-900 dark:text-red-200";case"info":default:return"border-blue-500/30 bg-blue-500/10 text-blue-900 dark:text-blue-200"}});return(l,i)=>{const t=Be,d=Ee,b=Ue;return o(),n("section",Qe,[e("div",qe,p(l.index+1),1),l.step.title?(o(),n("h3",Oe,p(l.step.title),1)):g("",!0),e("div",{class:"text-foreground/90 mt-2 space-y-3 text-base leading-relaxed",innerHTML:x(l.step.body)},null,8,Xe),l.step.screenshot?(o(),N(t,{key:1,screenshot:l.step.screenshot},null,8,["screenshot"])):g("",!0),(o(!0),n(z,null,B(l.step.screenshots||[],(c,u)=>(o(),N(t,{key:u,screenshot:c},null,8,["screenshot"]))),128)),l.step.embed==="credit-cost-table"?(o(),n("div",Ye,[A(d)])):l.step.embed==="credit-calculator"?(o(),n("div",Ge,[A(b)])):g("",!0),l.step.example?(o(),n("figure",Je,[l.step.example.caption?(o(),n("figcaption",et,p(l.step.example.caption),1)):g("",!0),r(_)?(o(),n("div",tt,[e("table",ot,[e("thead",st,[e("tr",null,[(o(!0),n(z,null,B(r(_).headers,(c,u)=>(o(),n("th",{key:u,class:"text-foreground/80 border-border/40 whitespace-nowrap border-b px-3 py-2 font-mono font-semibold"},p(c),1))),128))])]),e("tbody",null,[(o(!0),n(z,null,B(r(_).rows,(c,u)=>(o(),n("tr",{key:u,class:"border-border/30 border-b last:border-b-0"},[(o(!0),n(z,null,B(c,(k,C)=>(o(),n("td",{key:C,class:"text-foreground/85 px-3 py-2 align-top"},[k?(o(),n("span",rt,p(k),1)):(o(),n("span",nt,"—"))]))),128))]))),128))])])])):(o(),n("pre",lt,[e("code",{innerHTML:v(l.step.example.content)},null,8,at)])),l.step.example.copyable!==!1?(o(),n("button",{key:3,type:"button",class:"text-muted hover:text-brand-purple focus-visible:ring-brand-purple/60 mt-2 inline-flex cursor-pointer items-center gap-1.5 rounded px-1 py-0.5 text-xs transition-colors focus:outline-none focus-visible:ring-2",onClick:i[0]||(i[0]=c=>y(l.step.example.content))},[i[1]||(i[1]=e("svg",{class:"h-3.5 w-3.5","aria-hidden":"true",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 16H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v2m-6 12h8a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2Z"})],-1)),$(" "+p(r(w)?"Copied":"Copy"),1)])):g("",!0)])):g("",!0),l.step.note?(o(),n("div",{key:5,class:V(["mt-4 rounded-lg border px-4 py-3 text-sm leading-relaxed",r(a)])},[e("div",it,[e("span",dt,[!l.step.note.type||l.step.note.type==="info"?(o(),n("svg",ut,i[2]||(i[2]=[e("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"},null,-1),e("path",{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"},null,-1)]))):(o(),n("svg",ct,i[3]||(i[3]=[e("path",{d:"M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017.163.163 0 0 1-.054-.06.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z"},null,-1),e("path",{d:"M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.553.553 0 0 1-1.1 0L7.1 5.995z"},null,-1)])))]),e("div",{innerHTML:m(l.step.note.text)},null,8,pt)])],2)):g("",!0)])}}}),gt=W(ft,[["__scopeId","data-v-44ba3a23"]]),mt={key:0,class:"border-border/40 bg-surface/40 rounded-2xl border p-6 sm:p-8"},xt={class:"text-foreground text-base"},bt={class:"bg-surface-2 text-foreground rounded px-1 py-0.5 text-sm"},ht={class:"text-muted mt-2 text-sm"},vt={class:"text-muted mb-6 text-xs","aria-label":"Breadcrumb"},yt={class:"text-foreground/80"},_t={class:"text-foreground/80"},kt={key:0,class:"mb-8 rounded-lg border border-yellow-500/30 bg-yellow-500/10 px-4 py-3 text-sm text-yellow-900 dark:text-yellow-200"},wt={key:1,class:"mb-8 flex items-start gap-3 rounded-lg border border-red-500/40 bg-red-500/10 px-4 py-3 text-sm leading-relaxed text-red-900 dark:text-red-200",role:"alert"},$t={class:"flex-1"},Lt=["innerHTML"],Ct=["innerHTML"],Mt={key:3,class:"mt-10 space-y-12"},zt={key:4,class:"border-border/40 mt-16 border-t pt-8"},Tt={class:"mt-3 space-y-2"},Bt={class:"text-muted ml-2 text-sm"},Ht={key:5,class:"border-border/40 mt-12 grid grid-cols-1 gap-3 border-t pt-6 sm:grid-cols-2"},Dt={class:"text-foreground group-hover:text-brand-purple mt-1 font-medium transition-colors"},Nt={key:1},jt={class:"text-foreground group-hover:text-brand-purple mt-1 font-medium transition-colors"},It=E({__name:"[...slug]",setup(j){const h=oe(),{topicsBySlug:m,docCategories:x,topicsByCategory:v}=ne();function w(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/`([^`]+)`/g,'<code class="bg-surface-2 text-foreground rounded px-1 py-0.5 text-[0.92em]">$1</code>').replace(/\[([^\]]+)\]\(([^)]+)\)/g,(t,d,b)=>{const c=/^https?:\/\//.test(b),u=!c&&/\.(csv|xlsx|json|txt|zip|pdf|html)$/i.test(b);let k="";return c&&(k+=' target="_blank" rel="noopener noreferrer"'),u&&(k+=" download"),`<a href="${b}" class="text-brand-purple underline underline-offset-2 hover:opacity-80 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-purple/60 rounded"${k}>${d}</a>`}).replace(/\*\*([^*]+)\*\*/g,'<strong class="font-semibold">$1</strong>')}const y=L(()=>{const i=h.params.slug;return Array.isArray(i)?i.join("/"):i}),s=L(()=>m.value.get(y.value)),_=L(()=>s.value?x.find(i=>i.id===s.value.category):null),a=L(()=>s.value?.related?s.value.related.map(i=>m.value.get(i)).filter(i=>!!i):[]),l=L(()=>
3{if(!s.value)return{prev:null,next:null};const i=v.value.get(s.value.category)||[],t=i.findIndex(d=>d.slug===s.value.slug);return{prev:t>0?i[t-1]:null,next:t>=0&&t<i.length-1?i[t+1]:null}});return se({title:()=>s.value?.title||"Documentation",meta:[{name:"description",content:()=>s.value?.description||""}]}),(i,t)=>{const d=re,b=gt,c=le;return o(),N(c,null,{title:T(()=>[$(p(r(s)?r(s).title:"Topic not found"),1)]),subtitle:T(()=>[$(p(r(s)?r(s).description:"We couldn't find a documentation page for that URL."),1)]),default:T(()=>[r(s)?g("",!0):(o(),n("div",mt,[e("p",xt,[t[0]||(t[0]=$(" The documentation page ",-1)),e("code",bt,p(r(y)),1),t[1]||(t[1]=$(" doesn't exist. ",-1))]),e("p",ht,[t[4]||(t[4]=$(" Try the ",-1)),A(d,{to:"/support/docs",class:"text-brand-purple underline hover:opacity-80"},{default:T(()=>t[2]||(t[2]=[$("documentation home",-1)])),_:1,__:[2]}),t[5]||(t[5]=$(" or the ",-1)),A(d,{to:"/support",class:"text-brand-purple underline hover:opacity-80"},{default:T(()=>t[3]||(t[3]=[$("FAQ",-1)])),_:1,__:[3]}),t[6]||(t[6]=$(". ",-1))])])),r(s)?(o(),n(z,{key:1},[e("nav",vt,[A(d,{to:"/support/docs",class:"hover:text-brand-purple transition-colors"},{default:T(()=>t[7]||(t[7]=[$(" Documentation ",-1)])),_:1,__:[7]}),t[8]||(t[8]=e("span",{class:"mx-2"},"/",-1)),e("span",yt,p(r(_)?.label),1),t[9]||(t[9]=e("span",{class:"mx-2"},"/",-1)),e("span",_t,p(r(s).title),1)]),r(s).placeholder?(o(),n("div",kt,[t[11]||(t[11]=e("strong",null,"We're polishing this guide.",-1)),t[12]||(t[12]=$(" The full walkthrough with screenshots is coming soon. In the meantime, the ",-1)),A(d,{to:"/support",class:"underline hover:opacity-80"},{default:T(()=>t[10]||(t[10]=[$("FAQ",-1)])),_:1,__:[10]}),t[13]||(t[13]=$(" often covers the most common questions. ",-1))])):g("",!0),r(s).warning?(o(),n("div",wt,[t[15]||(t[15]=e("svg",{"aria-hidden":"true",class:"mt-0.5 h-5 w-5 shrink-0",fill:"currentColor",viewBox:"0 0 16 16"},[e("path",{d:"M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017.163.163 0 0 1-.054-.06.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z"}),e("path",{d:"M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.553.553 0 0 1-1.1 0L7.1 5.995z"})],-1)),e("div",$t,[t[14]||(t[14]=e("span",{class:"mr-1 font-semibold uppercase tracking-wide"},"Warning:",-1)),e("span",{innerHTML:w(r(s).warning)},null,8,Lt)])])):g("",!0),r(s).intro?(o(),n("p",{key:2,class:"text-foreground/80 text-lg leading-relaxed",innerHTML:w(r(s).intro)},null,8,Ct)):g("",!0),r(s).steps.length>0?(o(),n("div",Mt,[(o(!0),n(z,null,B(r(s).steps,(u,k)=>(o(),N(b,{key:k,step:u,index:k},null,8,["step","index"]))),128))])):g("",!0),r(a).length>0?(o(),n("div",zt,[t[16]||(t[16]=e("h2",{class:"text-foreground text-lg font-semibold"},"Related guides",-1)),e("ul",Tt,[(o(!0),n(z,null,B(r(a),u=>(o(),n("li",{key:u.slug},[A(d,{to:`/support/docs/${u.slug}`,class:"text-brand-purple hover:underline"},{default:T(()=>[$(p(u.title),1)]),_:2},1032,["to"]),e("span",Bt,"— "+p(u.description),1)]))),128))])])):g("",!0),r(l).prev||r(l).next?(o(),n("div",Ht,[r(l).prev?(o(),N(d,{key:0,to:`/support/docs/${r(l).prev.slug}`,class:"border-border/40 hover:border-brand-purple/40 hover:bg-surface-2 group flex flex-col rounded-lg border p-4 transition-colors"},{default:T(()=>[t[17]||(t[17]=e("span",{class:"text-muted text-xs"},"← Previous",-1)),e("span",Dt,p(r(l).prev.title),1)]),_:1,__:[17]},8,["to"])):(o(),n("span",Nt)),r(l).next?(o(),N(d,{key:2,to:`/support/docs/${r(l).next.slug}`,class:"border-border/40 hover:border-brand-purple/40 hover:bg-surface-2 group flex flex-col items-end rounded-lg border p-4 text-right transition-colors"},{default:T(()=>[t[18]||(t[18]=e("span",{class:"text-muted text-xs"},"Next →",-1)),e("span",jt,p(r(l).next.title),1)]),_:1,__:[18]},8,["to"])):g("",!0)])):g("",!0)],64)):g("",!0)]),_:1})}}});
3export{It as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.