import{s as j,c as ee,e as D,a as E,b as B,d as _,f as w,i as h,u as te,h as le,j as se,t as L,n as S,l as A,k as q,m as I,a1 as G,g as $,o as V,B as ae}from"./scheduler.579a073a.js";import{S as X,i as Z,t as b,a as k,g as P,c as R,b as H,d as M,m as Y,e as z}from"./index.f3c73fc4.js";import{L as ne}from"./Link.ef1db32b.js";import{h as v}from"./headings.a11ea947.js";import{m as ie}from"./date.27863b92.js";function fe(a){let e;return{c(){e=L("example tag")},l(t){e=S(t,"example tag")},m(t,l){h(t,e,l)},d(t){t&&_(e)}}}function re(a){let e,t,l;const s=a[2].default,n=ee(s,a,a[1],null),i=n||fe();return{c(){e=D("span"),i&&i.c(),this.h()},l(o){e=E(o,"SPAN",{class:!0});var m=B(e);i&&i.l(m),m.forEach(_),this.h()},h(){w(e,"class",t=`ldaf-tag text-no-uppercase usa-tag ${a[0]?"usa-tag--big":""}`)},m(o,m){h(o,e,m),i&&i.m(e,null),l=!0},p(o,[m]){n&&n.p&&(!l||m&2)&&te(n,s,o,o[1],l?se(s,o[1],m,null):le(o[1]),null),(!l||m&1&&t!==(t=`ldaf-tag text-no-uppercase usa-tag ${o[0]?"usa-tag--big":""}`))&&w(e,"class",t)},i(o){l||(b(i,o),l=!0)},o(o){k(i,o),l=!1},d(o){o&&_(e),i&&i.d(o)}}}function oe(a,e,t){let{$$slots:l={},$$scope:s}=e,{big:n=!1}=e;return a.$$set=i=>{"big"in i&&t(0,n=i.big),"$$scope"in i&&t(1,s=i.$$scope)},[n,s,l]}class x extends X{constructor(e){super(),Z(this,e,oe,re,j,{big:0})}}const ue=a=>{const e=new Date(a);return`${ie[e.getUTCMonth()]} ${e.getUTCDate()}, ${e.getUTCFullYear()}`};function J(a){let e,t,l,s,n,i,o,m,U,C,g,N,y;t=new ne({props:{class:"display-block",href:`/about/news/article/${a[8]}`,$$slots:{default:[_e]},$$scope:{ctx:a}}});let r=a[1]==="homepage-listed"&&K(a),p=a[6]&&a[1]!=="homepage-listed"&&O(a),d=a[3]&&a[5]&&Q(a),c=a[1]!=="homepage-listed"&&W(a);return{c(){e=D("div"),H(t.$$.fragment),l=q(),r&&r.c(),s=q(),p&&p.c(),n=q(),i=D("div"),d&&d.c(),o=q(),m=L(a[4]),U=q(),c&&c.c(),g=q(),N=D("hr"),this.h()},l(f){e=E(f,"DIV",{class:!0});var u=B(e);M(t.$$.fragment,u),l=I(u),r&&r.l(u),s=I(u),p&&p.l(u),n=I(u),i=E(u,"DIV",{class:!0});var T=B(i);d&&d.l(T),o=I(T),m=S(T,a[4]),T.forEach(_),U=I(u),c&&c.l(u),u.forEach(_),g=I(f),N=E(f,"HR",{class:!0}),this.h()},h(){w(i,"class","font-body-2xs"),w(e,"class",C=G(`ldaf-news-entry ldaf-news-entry--${a[1]}`)+" svelte-bqfe7d"),w(N,"class","margin-bottom-2")},m(f,u){h(f,e,u),Y(t,e,null),$(e,l),r&&r.m(e,null),$(e,s),p&&p.m(e,null),$(e,n),$(e,i),d&&d.m(i,null),$(i,o),$(i,m),$(e,U),c&&c.m(e,null),h(f,g,u),h(f,N,u),y=!0},p(f,u){const T={};u&256&&(T.href=`/about/news/article/${f[8]}`),u&2177&&(T.$$scope={dirty:u,ctx:f}),t.$set(T),f[1]==="homepage-listed"?r?(r.p(f,u),u&2&&b(r,1)):(r=K(f),r.c(),b(r,1),r.m(e,s)):r&&(P(),k(r,1,1,()=>{r=null}),R()),f[6]&&f[1]!=="homepage-listed"?p?p.p(f,u):(p=O(f),p.c(),p.m(e,n)):p&&(p.d(1),p=null),f[3]&&f[5]?d?d.p(f,u):(d=Q(f),d.c(),d.m(i,o)):d&&(d.d(1),d=null),(!y||u&16)&&V(m,f[4]),f[1]!=="homepage-listed"?c?(c.p(f,u),u&2&&b(c,1)):(c=W(f),c.c(),b(c,1),c.m(e,null)):c&&(P(),k(c,1,1,()=>{c=null}),R()),(!y||u&2&&C!==(C=G(`ldaf-news-entry ldaf-news-entry--${f[1]}`)+" svelte-bqfe7d"))&&w(e,"class",C)},i(f){y||(b(t.$$.fragment,f),b(r),b(c),y=!0)},o(f){k(t.$$.fragment,f),k(r),k(c),y=!1},d(f){f&&(_(e),_(g),_(N)),z(t),r&&r.d(),p&&p.d(),d&&d.d(),c&&c.d()}}}function F(a){let e,t;return{c(){e=D(v[a[0]]),t=L(a[7]),this.h()},l(l){e=E(l,(v[a[0]]||"null").toUpperCase(),{class:!0});var s=B(e);t=S(s,a[7]),s.forEach(_),this.h()},h(){ae(v[a[0]])(e,{class:"news-title svelte-bqfe7d"})},m(l,s){h(l,e,s),$(e,t)},p(l,s){s&128&&V(t,l[7])},d(l){l&&_(e)}}}function _e(a){let e=v[a[0]],t,l=v[a[0]]&&F(a);return{c(){l&&l.c(),t=A()},l(s){l&&l.l(s),t=A()},m(s,n){l&&l.m(s,n),h(s,t,n)},p(s,n){v[s[0]]?e?j(e,v[s[0]])?(l.d(1),l=F(s),e=v[s[0]],l.c(),l.m(t.parentNode,t)):l.p(s,n):(l=F(s),e=v[s[0]],l.c(),l.m(t.parentNode,t)):e&&(l.d(1),l=null,e=v[s[0]])},d(s){s&&_(t),l&&l.d(s)}}}function K(a){let e,t,l;return t=new x({props:{$$slots:{default:[ce]},$$scope:{ctx:a}}}),{c(){e=D("div"),H(t.$$.fragment),this.h()},l(s){e=E(s,"DIV",{class:!0});var n=B(e);M(t.$$.fragment,n),n.forEach(_),this.h()},h(){w(e,"class","margin-bottom-1")},m(s,n){h(s,e,n),Y(t,e,null),l=!0},p(s,n){const i={};n&2052&&(i.$$scope={dirty:n,ctx:s}),t.$set(i)},i(s){l||(b(t.$$.fragment,s),l=!0)},o(s){k(t.$$.fragment,s),l=!1},d(s){s&&_(e),z(t)}}}function ce(a){let e;return{c(){e=L(a[2])},l(t){e=S(t,a[2])},m(t,l){h(t,e,l)},p(t,l){l&4&&V(e,t[2])},d(t){t&&_(e)}}}function O(a){let e,t;return{c(){e=D("p"),t=L(a[6]),this.h()},l(l){e=E(l,"P",{class:!0});var s=B(e);t=S(s,a[6]),s.forEach(_),this.h()},h(){w(e,"class","margin-y-1")},m(l,s){h(l,e,s),$(e,t)},p(l,s){s&64&&V(t,l[6])},d(l){l&&_(e)}}}function Q(a){let e,t,l;return{c(){e=L("By "),t=L(a[5]),l=D("br")},l(s){e=S(s,"By "),t=S(s,a[5]),l=E(s,"BR",{})},m(s,n){h(s,e,n),h(s,t,n),h(s,l,n)},p(s,n){n&32&&V(t,s[5])},d(s){s&&(_(e),_(t),_(l))}}}function W(a){let e,t,l;return t=new x({props:{$$slots:{default:[me]},$$scope:{ctx:a}}}),{c(){e=D("div"),H(t.$$.fragment),this.h()},l(s){e=E(s,"DIV",{class:!0});var n=B(e);M(t.$$.fragment,n),n.forEach(_),this.h()},h(){w(e,"class","margin-y-1")},m(s,n){h(s,e,n),Y(t,e,null),l=!0},p(s,n){const i={};n&2052&&(i.$$scope={dirty:n,ctx:s}),t.$set(i)},i(s){l||(b(t.$$.fragment,s),l=!0)},o(s){k(t.$$.fragment,s),l=!1},d(s){s&&_(e),z(t)}}}function me(a){let e;return{c(){e=L(a[2])},l(t){e=S(t,a[2])},m(t,l){h(t,e,l)},p(t,l){l&4&&V(e,t[2])},d(t){t&&_(e)}}}function pe(a){let e,t,l=a[7]&&a[8]&&J(a);return{c(){l&&l.c(),e=A()},l(s){l&&l.l(s),e=A()},m(s,n){l&&l.m(s,n),h(s,e,n),t=!0},p(s,[n]){s[7]&&s[8]?l?(l.p(s,n),n&384&&b(l,1)):(l=J(s),l.c(),b(l,1),l.m(e.parentNode,e)):l&&(P(),k(l,1,1,()=>{l=null}),R())},i(s){t||(b(l),t=!0)},o(s){k(l),t=!1},d(s){s&&_(e),l&&l.d(s)}}}function de(a,e,t){let l,s,n,i,o,m,U,C,{entry:g}=e,{headingLevel:N=2}=e,{variation:y="default"}=e;return a.$$set=r=>{"entry"in r&&t(9,g=r.entry),"headingLevel"in r&&t(0,N=r.headingLevel),"variation"in r&&t(1,y=r.variation)},a.$$.update=()=>{a.$$.dirty&512&&t(8,{slug:l,title:s,subhead:n,byline:i,type:o,publicationDate:m}=g,l,(t(7,s),t(9,g)),(t(6,n),t(9,g)),(t(5,i),t(9,g)),(t(2,o),t(9,g)),(t(10,m),t(9,g))),a.$$.dirty&1024&&t(4,U=ue(m)),a.$$.dirty&4&&t(3,C=o==="News article")},[N,y,o,C,U,i,n,s,l,g,m]}class ye extends X{constructor(e){super(),Z(this,e,de,pe,j,{entry:9,headingLevel:0,variation:1})}}export{ye as N,x as T,ue as g};
