import{am as S,an as _,u as g,d as c,a1 as v,y as r,U as m,af as T,e,T as t,Q as y,B as I,ao as C,ap as x,ar as A,G as E}from"./pwa-viewport-cDxGxYgG.js";S();_();window.opener&&(console=window.opener.console);function L(){const{_:o}=g(),[s,l]=c("default"),[a,u]=c(null),{editStatus:d,replyToStatus:i,draftStatus:p,quoteStatus:f}=window.__COMPOSE__||{};return v(o(d?{id:"Txus+H"}:i?{id:"03vjxE",values:{0:i.account?.acct||i.account?.username}}:{id:"QOhkyl"})),r(()=>{const n=m();u(!!n),n&&T()},[]),r(()=>{if(s==="closed"){try{window.opener.focus()}catch{}window.close()}},[s]),s==="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:i,draftStatus:p,quoteStatus:f,standalone:!0,hasOpener:window.opener,onClose:n=>{const{newStatus:w,fn:h=()=>{}}=n||{};try{w&&window.opener.__STATES__.reloadStatusPage++,h(),l("closed")}catch{}}}):e("div",{class:"box",children:e(I,{})})}C(e(x,{i18n:E,children:e(A,{children:e(L,{})})}),document.getElementById("app-standalone"));
//# sourceMappingURL=compose-P9SlIbYO.js.map
