import{am as _,an as g,u as v,d as r,a1 as y,y as c,U as m,af as T,e,T as t,Q as I,B as C,ao as x,ap as A,ar as E,G as L}from"./pwa-viewport-CZFc0vUU.js";_();g();window.opener&&(console=window.opener.console);function P(){const{_:o}=v(),[s,l]=r("default"),[a,u]=r(null),{editStatus:d,replyToStatus:i,replyMode:p,draftStatus:f,quoteStatus:w}=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=m();u(!!n),n&&T()},[]),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:f,quoteStatus:w,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-CRPinFLh.js.map
