phanpy-cz/assets/compose-_EXIhB02.js

3 lines
1.3 KiB
JavaScript
Raw Normal View History

2024-12-30 07:44:29 +01:00
import{a9 as _,u as g,h as l,U as v,K as T,a3 as m,y as u,T as t,d as e,H as y,v as C,aa as I,r as x,ac as E}from"./useTitle-jLgT0T3g.js";_();window.opener&&(console=window.opener.console);function L(){var d,r;const{_:i}=g(),[o,p]=l("default"),[a,f]=l(null),{editStatus:c,replyToStatus:s,draftStatus:h}=window.__COMPOSE__||{};return v(i(c?{id:"Txus+H"}:s?{id:"03vjxE",values:{0:((d=s.account)==null?void 0:d.acct)||((r=s.account)==null?void 0:r.username)}}:{id:"QOhkyl"})),u(()=>{const n=T();f(!!n),n&&m()},[]),u(()=>{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(y,{editStatus:c,replyToStatus:s,draftStatus:h,standalone:!0,hasOpener:window.opener,onClose:n=>{const{newStatus:w,fn:S=()=>{}}=n||{};try{w&&window.opener.__STATES__.reloadStatusPage++,S(),p("closed")}catch{}}}):e("div",{class:"box",children:e(C,{})})}E(e(I,{i18n:x,children:e(L,{})}),document.getElementById("app-standalone"));
//# sourceMappingURL=compose-_EXIhB02.js.map