import{m as p,v as w,C as S}from"./useTitle-dCp14HlU.js";import{p as f,_ as i,b as e,Q as m}from"./vendor-GrW-f9CX.js";window.opener&&(console=window.opener.console);function _(){var s,a;const[t,d]=f("default"),{editStatus:n,replyToStatus:o,draftStatus:r}=window.__COMPOSE__||{};return p(n?"Editing source status":o?`Replying to @${((s=o.account)==null?void 0:s.acct)||((a=o.account)==null?void 0:a.username)}`:"Compose"),i(()=>{w()},[]),i(()=>{if(t==="closed"){try{window.opener.focus()}catch{}window.close()}},[t]),t==="closed"?e("div",{class:"box",children:[e("p",{children:"You may close this page now."}),e("p",{children:e("button",{onClick:()=>{window.close()},children:"Close window"})})]}):e(S,{editStatus:n,replyToStatus:o,draftStatus:r,standalone:!0,hasOpener:window.opener,onClose:c=>{const{newStatus:l,fn:u=()=>{}}=c||{};try{l&&window.opener.__STATES__.reloadStatusPage++,u(),d("closed")}catch{}}})}m(e(_,{}),document.getElementById("app-standalone")); //# sourceMappingURL=compose-GEsXl1Xt.js.map