import{ak as _,u as g,d as l,Z as m,y as u,R as v,ad as T,e,T as t,O as y,E,al as C,am as I,z as x}from"./useTitle-BXZj7pjQ.js";_();window.opener&&(console=window.opener.console);function L(){var c,r;const{_:i}=g(),[o,p]=l("default"),[a,f]=l(null),{editStatus:d,replyToStatus:s,draftStatus:w}=window.__COMPOSE__||{};return m(i(d?{id:"Txus+H"}:s?{id:"03vjxE",values:{0:((c=s.account)==null?void 0:c.acct)||((r=s.account)==null?void 0:r.username)}}:{id:"QOhkyl"})),u(()=>{const n=v();f(!!n),n&&T()},[]),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:d,replyToStatus:s,draftStatus:w,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(E,{})})}C(e(I,{i18n:x,children:e(L,{})}),document.getElementById("app-standalone"));
//# sourceMappingURL=compose-CeLas5FE.js.map
