import{Et as e,Jt as t,Qt as n,Tt as r,Wt as i,Yt as a,Z as o,d as s,in as c,n as l,o as u,p as d,r as f,t as p,wt as m,x as h}from"./pwa-viewport-BRXXRfqX.js";u(),p(),window.opener&&(console=window.opener.console);function g(){let{_:n}=e(),[c,u]=i(`default`),[d,p]=i(null),{editStatus:m,replyToStatus:g,replyMode:_,draftStatus:v,quoteStatus:y}=window.__COMPOSE__||{};return l(n(m?{id:`Txus-H`}:g?{id:`03vjxE`,values:{0:g.account?.acct||g.account?.username}}:{id:`QOhkyl`})),t(()=>{let e=o();p(!!e),e&&h()},[]),t(()=>{if(c===`closed`){try{window.opener.focus()}catch{}window.close()}},[c]),c===`closed`?a(`div`,{class:`box`,children:[a(`p`,{children:a(r,{id:`mBdQnV`})}),a(`p`,{children:a(`button`,{onClick:()=>{window.close()},children:a(r,{id:`rf8fiC`})})})]}):d===!1?a(`div`,{class:`box`,children:[a(`h1`,{children:a(r,{id:`SlfejT`})}),a(`p`,{children:a(r,{id:`D3vX-9`})}),a(`p`,{children:a(`a`,{href:`/`,children:a(r,{id:`iWpEwy`})})})]}):d?a(f,{editStatus:m,replyToStatus:g,replyMode:_||`all`,draftStatus:v,quoteStatus:y,standalone:!0,hasOpener:window.opener,onClose:e=>{let{newStatus:t,fn:n=()=>{}}=e||{};try{t&&window.opener.__STATES__.reloadStatusPage++,n(),u(`closed`)}catch{}}}):a(`div`,{class:`box`,children:a(s,{})})}n(a(m,{i18n:c,children:a(d,{children:a(g,{})})}),document.getElementById(`app-standalone`)); //# sourceMappingURL=compose-CGuiwZpT.js.map