import{a9 as _,u as g,h as l,U as v,K as T,a3 as m,y as u,T as t,d as e,H as y,v as C,aa as I,r as x,ac as E}from"./useTitle-2fhxq2KA.js";_();window.opener&&(console=window.opener.console);function L(){var d,r;const{_:i}=g(),[o,p]=l("default"),[a,f]=l(null),{editStatus:c,replyToStatus:s,draftStatus:h}=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();f(!!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:h,standalone:!0,hasOpener:window.opener,onClose:n=>{const{newStatus:w,fn:S=()=>{}}=n||{};try{w&&window.opener.__STATES__.reloadStatusPage++,S(),p("closed")}catch{}}}):e("div",{class:"box",children:e(C,{})})}E(e(I,{i18n:x,children:e(L,{})}),document.getElementById("app-standalone"));
//# sourceMappingURL=compose-IsB0nqM4.js.map
