1import{$ as e,B as t,F as n,G as r,H as i,L as ee,N as a,P as o,R as s,S as te,V as c,W as l,X as u,Y as d,Z as f,et as p,g as ne,j as re,k as m,l as h,n as ie,o as ae,r as g,rt as _,t as v,v as y,x as b,y as x,z as S}from"./index-DQv37lpF.js";import{a as C,i as w,s as T,t as E}from"./blog-Dk8znfHo.js";var D={class:`blog-hub`},O={class:`container`},k={class:`blog-hub__crumbs`,"aria-label":`Breadcrumb`},A={class:`blog-hub__lede`},j={class:`blog-hub__filters`,role:`search`},M={class:`blog-hub__categories`,role:`group`,"aria-label":`Filter by category`},N=[`aria-pressed`],P=[`id`,`aria-pressed`,`onClick`],oe={class:`blog-hub__search`},F={key:0,class:`blog-hub__list`},I={class:`blog-hub__card-image`},L=[`src`,`alt`],R={class:`blog-hub__card-body`},z={class:`blog-hub__card-meta`},B=[`datetime`],V={class:`blog-hub__card-title`},H={class:`blog-hub__card-excerpt`},U={key:1,class:`blog-hub__empty`,role:`status`},W={class:`blog-hub__topics`,"aria-labelledby":`blog-topics`},G={class:`blog-hub__note`},K={class:`blog-hub__cta`},q=[`href`],J=te(c({__name:`BlogHubView`,setup(te){let c=ie(),J=g(),Y=e(null),X=e(``);function se(e){let t=e.replace(/^#/,``);return b(t)?t:null}function Z(e){Y.value=se(e)}i(()=>{Z(c.hash)}),d(()=>c.hash,e=>{Z(e)});async function Q(e){Y.value=e;let t=e?`#${e}`:``;c.hash!==t&&await J.replace({path:y.path,hash:t||void 0})}let $=o(()=>w(E(),{category:Y.value,query:X.value})),ce=o(()=>E().length>0),le=o(()=>ce.value&&(X.value.trim()||Y.value)?`No articles match this category or search. Clear the filters to see everything that is published.`:ne);return(e,i)=>(l(),s(`div`,D,[n(`div`,O,[n(`article`,null,[n(`nav`,k,[n(`ol`,null,[n(`li`,null,[t(p(v),{to:`/`},{default:u(()=>[...i[2]||=[S(`Home`,-1)]]),_:1})]),i[3]||=n(`li`,null,[n(`span`,{"aria-current":`page`},`Blog`)],-1)])]),n(`h1`,null,_(p(y).h1),1),n(`p`,A,_(p(y).lede),1),n(`div`,j,[n(`div`,M,[n(`button`,{type:`button`,class:`blog-hub__chip`,"aria-pressed":Y.value===null,onClick:i[0]||=e=>Q(null)},` All `,8,N),(l(!0),s(a,null,r(p(x),e=>(l(),s(`button`,{id:e.id,key:e.id,type:`button`,class:`blog-hub__chip`,"aria-pressed":Y.value===e.id,onClick:t=>Q(e.id)},_(e.label),9,P))),128))]),n(`label`,oe,[i[4]||=n(`span`,{class:`blog-hub__search-label`},`Search articles`,-1),f(n(`input`,{"onUpdate:modelValue":i[1]||=e=>X.value=e,type:`search`,name:`q`,autocomplete:`off`,placeholder:`Search titles and topics`},null,512),[[re,X.value]])])]),$.value.length?(l(),s(`ul`,F,[(l(!0),s(a,null,r($.value,e=>(l(),s(`li`,{key:e.path},[t(p(v),{to:e.path,class:`blog-hub__card`},{default:u(()=>[n(`span`,I,[e.featuredImage?(l(),s(`img`,{key:0,src:p(ae)(e.featuredImage),alt:e.featuredImageAlt||e.h1,width:`640`,height:`360`,loading:`lazy`,decoding:`async`},null,8,L)):ee(``,!0)]),n(`span`,R,[n(`span`,z,[S(_(p(x).find(t=>t.id===e.category)?.label)+` · `,1),n(`time`,{datetime:e.published},_(p(C)(e.published)),9,B),S(` · `+_(p(T)(e))+` min read `,1)]),n(`span`,V,_(e.h1),1),n(`span`,H,_(e.excerpt),1)])]),_:2},1032,[`to`])]))),128))])):(l(),s(`p`,U,_(le.value),1)),n(`section`,W,[i[5]||=n(`h2`,{id:`blog-topics`},`What this blog covers`,-1),i[6]||=n(`p`,null,` Six standing categories keep related investing questions together so a reader can move from a beginner explainer to a comparison without hunting through a dump of unrelated posts. `,-1),n(`ul`,null,[(l(!0),s(a,null,r(p(x),e=>(l(),s(`li`,{key:e.id},[n(`strong`,null,_(e.label)+`.`,1),S(` `+_(e.description),1)]))),128))])]),n(`p`,G,_(p(m)),1),n(`p`,K,[n(`a`,{class:`btn`,href:p(h),target:`_blank`,rel:`noopener`,"data-analytics-placement":`blog_hub`},` Download the App `,8,q)])])])]))}}),[[`__scopeId`,`data-v-bdc35a7a`]]);export{J 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.