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