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