import{n as e,r as t}from"../preload-helper-EQ20WQt-.js";import{t as n}from"../ready-CjDkUfev.js";import{o as r}from"../prop-types-DdDwMzX7.js";import{n as i,t as a}from"../locales-DVVnY6uc.js";import{L as o,o as s}from"../poll-9cD-z1op.js";import{Do as c,Gr as l,Ja as u,Ko as d,Oo as f,eo as p,x as m,zt as h}from"../time-BE5vfriQ.js";import{n as g,t as _}from"../annual_report-VjJK6aXW.js";var v=t(),y={wrapper:`_feat_annual_report_shared_page__wrapper`,footer:`_feat_annual_report_shared_page__footer`,logo:`_feat_annual_report_shared_page__logo`,footerSection:`_feat_annual_report_shared_page__footerSection`,linkList:`_feat_annual_report_shared_page__linkList`},b=e(),x=()=>{let e=c(g),t=c(e=>e.meta.get(`domain`));return(0,b.jsxs)(`main`,{className:y.wrapper,children:[(0,b.jsx)(_,{}),(0,b.jsxs)(`footer`,{className:y.footer,children:[(0,b.jsxs)(`div`,{className:y.footerSection,children:[(0,b.jsx)(s,{className:y.logo}),(0,b.jsx)(r,{id:`annual_report.shared_page.footer`,defaultMessage:`Generated with {heart} by the Mastodon team`,values:{heart:`🐘`},tagName:`p`}),(0,b.jsxs)(`ul`,{className:y.linkList,children:[(0,b.jsx)(`li`,{children:(0,b.jsx)(`a`,{href:`https://joinmastodon.org`,children:(0,b.jsx)(r,{id:`footer.about_mastodon`,defaultMessage:`About Mastodon`})})}),(0,b.jsx)(`li`,{children:(0,b.jsx)(`a`,{href:`https://joinmastodon.org/sponsors`,children:(0,b.jsx)(r,{id:`annual_report.shared_page.donate`,defaultMessage:`Donate`})})})]})]}),(0,b.jsxs)(`div`,{className:y.footerSection,children:[(0,b.jsx)(r,{id:`annual_report.shared_page.footer_server_info`,defaultMessage:`{username} uses {domain}, one of many communities powered by Mastodon.`,values:{username:(0,b.jsx)(o,{variant:`simple`,account:e}),domain:(0,b.jsx)(`strong`,{children:t})},tagName:`p`}),(0,b.jsx)(`a`,{href:`/about`,children:(0,b.jsx)(r,{id:`footer.about_server`,defaultMessage:`About {domain}`,values:{domain:t}})})]})]})]})};function S(){let e=document.getElementById(`wrapstodon`);if(!e)throw Error(`Mount node not found`);let t=document.getElementById(`wrapstodon-data`);if(!t)throw Error(`Initial state prop not found`);let n=JSON.parse(t.textContent),r=n.annual_reports[0];if(!r)throw Error(`Initial state report not found`);m.dispatch(l({meta:{locale:document.documentElement.lang,me:n.me,domain:n.domain},accounts:n.accounts})),m.dispatch(u(n.statuses)),m.dispatch(h(r)),(0,v.createRoot)(e).render((0,b.jsx)(a,{children:(0,b.jsx)(f,{store:m,children:(0,b.jsx)(d,{children:(0,b.jsx)(x,{})})})}))}p().then(i).then(()=>n(S)).catch(e=>{console.error(e)});
//# sourceMappingURL=wrapstodon-BerIf8ZQ.js.map