import{aa as _,u as g,d as l,V as v,y as u,N as T,a4 as m,e,T as t,I as y,w as I,ab as C,ac as E,t as b}from"./useTitle-sufxcPBJ.js";_();window.opener&&(console=window.opener.console);function x(){var d,r;const{_:i}=g(),[o,p]=l("default"),[a,w]=l(null),{editStatus:c,replyToStatus:s,draftStatus:f}=window.__COMPOSE__||{};return v(i(c?{id:"Txus+H"}:s?{id:"03vjxE",values:{0:((d=s.account)==null?void 0:d.acct)||((r=s.account)==null?void 0:r.username)}}:{id:"QOhkyl"})),u(()=>{const n=T();w(!!n),n&&m()},[]),u(()=>{if(o==="closed"){try{window.opener.focus()}catch{}window.close()}},[o]),o==="closed"?e("div",{class:"box",children:[e("p",{children:e(t,{id:"mBdQnV"})}),e("p",{children:e("button",{onClick:()=>{window.close()},children:e(t,{id:"rf8fiC"})})})]}):a===!1?e("div",{class:"box",children:[e("h1",{children:e(t,{id:"SlfejT"})}),e("p",{children:e(t,{id:"D3vX+9"})}),e("p",{children:e("a",{href:"/",children:e(t,{id:"iWpEwy"})})})]}):a?e(y,{editStatus:c,replyToStatus:s,draftStatus:f,standalone:!0,hasOpener:window.opener,onClose:n=>{const{newStatus:h,fn:S=()=>{}}=n||{};try{h&&window.opener.__STATES__.reloadStatusPage++,S(),p("closed")}catch{}}}):e("div",{class:"box",children:e(I,{})})}C(e(E,{i18n:b,children:e(x,{})}),document.getElementById("app-standalone"));
//# sourceMappingURL=compose-Bdw5opPy.js.map
