1import{d as N,k as q,j as m,l as R,m as x,x as V,G as D,c as E,w as k,u as I,o as s,e as r,h as n,n as j,f as S,_ as z,g as F,b as a,t as o,F as d,r as y,B as f,i as G}from"./DIIOkCvK.js";import{_ as H}from"./n6n99HxY.js";import{u as O,_ as b}from"./CoOz7Tex.js";import{u as J}from"./DoU4Hje7.js";import"./DKPx6ygt.js";import"./DSJv3tj1.js";const K={class:"article-head"},P={class:"article-label"},Q={class:"article-summary"},W={class:"article-details"},X={class:"article-meta"},Y={class:"article-body"},Z={key:0},tt=["id"],et={key:2},st={key:3},at={key:4},nt={key:5},rt=["src","alt"],ot={key:0,class:"article-note"},it={key:1,class:"article-sources","aria-label":"Sources"},lt=["href"],ct={key:1,class:"article-state"},ut=N({__name:"[slug]",async setup(pt){let c,g;const C=q(),v=I(),{isLight:A}=O(),u=m(()=>String(C.params.slug||""));String(v.public.apiBase||"").replace(/\/+$/,"");function $(){return`/api/after-they-ship/${`?article=${encodeURIComponent(u.value)}`}`}const{data:B,error:h,refresh:T}=([c,g]=R(async()=>J(()=>`after-they-ship-article-${u.value}`,async()=>{const l=await fetch($(),{cache:"no-store"});if(l.status===404)throw x({statusCode:404,statusMessage:"Article not found"});if(!l.ok)throw new Error("article_unavailable");return l.json()},{watch:[u]})),c=await c,g(),c);if(h.value&&"statusCode"in h.value&&h.value.statusCode===404)throw x({statusCode:404,statusMessage:"Article not found"});const e=m(()=>B.value?.article||null),U=m(()=>e.value?.category==="bench"?"On the bench":"Business");return V(()=>{const i=`${String(v.public.siteUrl||"https://www.dataplicity.com").replace(/\/+$/,"")}/after-they-ship/articles/${encodeURIComponent(u.value)}/`,p=e.value?`${e.value.title} | After They Ship`:"After They Ship",_=e.value?.summary||"After They Ship from Dataplicity.";return{title:p,meta:[{name:"description",content:_},{name:"robots",content:"index,follow"},{property:"og:title",content:p},{property:"og:description",content:_},{property:"og:url",content:i},{name:"twitter:card",content:"summary"}],link:[{rel:"canonical",href:i}]}}),D(()=>T()),(l,i)=>{const p=z,_=H,L=b;return s(),E(L,{"active-link":"resources"},{default:k(()=>[r(e)?(s(),n("article",{key:0,class:j(["article-page",{"article-page--light":r(A)}])},[S(p,{to:"/after-they-ship",class:"article-back"},{default:k(()=>i[0]||(i[0]=[F("After They Ship")])),_:1,__:[0]}),a("header",K,[a("p",P,o(r(U)),1),a("h1",null,o(r(e).title),1),a("p",Q,o(r(e).summary),1),a("div",W,[a("div",X,[a("span",null,o(r(e).author),1),a("span",null,o(r(e).read_minutes)+" min read",1)]),S(_,{kind:"article",slug:r(e).slug,title:r(e).title,caption:r(e).summary},null,8,["slug","title","caption"])])]),a("div",Y,[(s(!0),n(d,null,y(r(e).blocks,(t,M)=>(s(),n(d,{key:`${t.type}-${t.id||M}`},[t.type==="paragraph"?(s(),n("p",Z,o(t.text),1)):t.type==="heading"?(s(),n("h2",{key:1,id:t.id},o(t.text),9,tt)):t.type==="quote"?(s(),n("blockquote",et,o(t.text),1)):t.type==="list"?(s(),n("ul",st,[(s(!0),n(d,null,y(t.items,w=>(s(),n("li",{key:w},o(w),1))),128))])):t.type==="code"?(s(),n("pre",at,[a("code",null,o(t.text),1)])):t.type==="image"?(s(),n("figure",nt,[a("img",{src:t.src,alt:t.alt,loading:"lazy"},null,8,rt),a("figcaption",null,o(t.caption),1)])):f("",!0)],64))),128))]),r(e).editorial_note?(s(),n("aside",ot,[i[1]||(i[1]=a("strong",null,"About this article",-1)),a("p",null,o(r(e).editorial_note),1)])):f("",!0),r(e).sources.length?(s(),n("section",it,[i[2]||(i[2]=a("h2",null,"Sources",-1)),a("ul",null,[(s(!0),n(d,null,y(r(e).sources,t=>(s(),n("li",{key:t.id},[a("a",{href:t.url,target:"_blank",rel:"noopener noreferrer"},o(t.title),9,lt)]))),128))])])):f("",!0)],2)):(s(),n("div",ct,"Article not found."))]),_:1})}}}),gt=G(ut,[["__scopeId","data-v-77e7ef5f"]]);export{gt 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.