1import v from"./BQLoaLsa.js";import U from"./DlIH7-cg.js";import H from"./CgcJoydG.js";import k from"./CwCvJ9JX.js";import{u as w}from"./BE6AkpVx.js";import{v as A,e as B}from"./CSSxz1HG.js";import{f as y}from"./Dr7cYL1O.js";import{f}from"./jcZmDv0D.js";import{d as N,o as j,e as T,w as O,q as P,v as S,u as n,b as G,c as m,f as p,i as a,p as R,t as l,g as b,l as g,j as C,m as E}from"./CvG0wzej.js";import"./Cga8d3Ty.js";const I={class:"container content-hub-article-hero__container"},L={class:"content-hub-article-hero__text-column content-hub-article-hero__column"},V={class:"content-hub-article-hero__text-column-inner"},$={class:"content-hub-article-hero__date-container"},z={class:"content-hub-article-hero__min copy copy--is-small"},F={key:0,class:"content-hub-article-hero__last-updated copy copy--is-small"},q={class:"copy copy--is-xsmall content-hub-article-hero__copy"},K={key:1,class:"content-hub-article-hero__author-container"},J={class:"content-hub-article-hero__image-column content-hub-article-hero__column"},Q=["src","alt"],W=N({__name:"ContentHubArticleHero",props:{...k,pageMeta:{type:Object,default:()=>({title:"",blurb:"",thumbnail:{source:""},displayDate:"2023-08-22 15:30:00"})},lastUpdatedCopy:{type:String,default:"Last Updated"},authorBlock:{type:Array,default:()=>[]}},setup(t){const h=w(),D=A(),i=G("en");let u=B().public.PACKAGE_NAME;const c=t;j(()=>{const s=D.path.split("/").find(o=>o.length===2);s&&(i.value=s)});const _=m(()=>{const r=c.pageMeta?.displayDate,s=c.pageMeta?.lastUpdatedDate,o={displayDate:"",lastUpdatedDate:""};if(r!==void 0){const e=new Date(r);isNaN(e.getTime())||(i.value==="fr"?o.displayDate=e?y(new Date(e),"d MMMM yyyy",{locale:f}):"undefined":o.displayDate=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"numeric"}).format(e))}if(s!==void 0){const e=new Date(s);isNaN(e.getTime())||(i.value==="fr"?o.lastUpdatedDate=e?y(new Date(e),"d MMMM yyyy",{locale:f}):"undefined":o.lastUpdatedDate=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"numeric"}).format(e))}return o}),M=m(()=>h.contentHubBackgroundClassGenerator(c.pageMeta.category,!0)),d=m(()=>h.contentHubTextClassGenerator(c.pageMeta.category));return(r,s)=>{const o=v,e=U,x=H;return p(),T(x,P(S({...c,className:`content-hub-article-hero ${n(M)}`})),{default:O(()=>[a("div",I,[a("div",L,[a("div",V,[a("div",$,[a("p",{class:R(["content-hub-article-hero__date copy copy--is-small",n(u)!=="coterie"?n(d):""])},l(n(_).displayDate),3),a("p",z,l(t.pageMeta.timeToReadInMinutes),1)]),t.pageMeta.lastUpdatedDate?(p(),b("p",F,[a("em",null,l(t.lastUpdatedCopy)+" "+l(n(_).lastUpdatedDate),1)])):g("",!0),C(o,{extraClass:`content-hub-article-hero__title ${n(u)!=="coterie"?n(d):""}`,text:t.pageMeta?.title,tag:"h1",styleLevel:n(u)==="coterie"?"2":"1"},null,8,["extraClass","text","styleLevel"]),a("p",q,l(t.pageMeta.blurb),1),t.authorBlock&&t.authorBlock.length>0?(p(),b("div",K,[C(e,E({...t.authorBlock[0]},{textColorClass:n(d)}),null,16,["textColorClass"])])):g("",!0)])]),a("div",J,[a("img",{class:"content-hub-article-hero__image",src:t.pageMeta?.thumbnail?.source+"?tr=w-800,f-webp",alt:t.pageMeta?.thumbnail?.alt},null,8,Q)])])]),_:1},16)}}}),rt=Object.assign(W,{__name:"ContentHubArticleHero"});export{rt 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.