var m=Object.create;var i=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var b=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var L=(e,o)=>{for(var r in o)i(e,r,{get:o[r],enumerable:!0})},l=(e,o,r,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of w(o))!g.call(e,t)&&t!==r&&i(e,t,{get:()=>o[t],enumerable:!(a=h(o,t))||a.enumerable});return e};var y=(e,o,r)=>(r=e!=null?m(b(e)):{},l(o||!e||!e.__esModule?i(r,"default",{value:e,enumerable:!0}):r,e)),D=e=>l(i({},"__esModule",{value:!0}),e);var A={};L(A,{default:()=>c});module.exports=D(A);var n=require("electron/main"),d=y(require("../../common/modules/package")),u=require("../../common/modules/client"),p=require("../modules/parent");function c(e){const o=n.screen.getPrimaryDisplay().size,[r,a]=[o.width<600?o.width:600,o.height<480?o.height:480],t=(0,p.initWindow)("about",e,{width:r,height:a,resizable:!1,fullscreenable:!1,frame:!1,modal:!0}),f={appName:n.app.getName(),appVersion:n.app.getVersion(),buildInfo:(0,u.getBuildInfo)(),appRepo:d.default.data.homepage};if(t!==void 0)return n.ipcMain.once("about.close",s=>{!t.isDestroyed()&&s.senderFrame?.url===t.webContents.getURL()&&t.close()}),n.ipcMain.once("about.readyToShow",s=>{!t.isDestroyed()&&s.senderFrame?.url===t.webContents.getURL()&&t.show()}),n.ipcMain.handle("about.getDetails",s=>{if(s.senderFrame?.url===t.webContents.getURL())return f}),t.once("close",()=>{n.ipcMain.removeAllListeners("showAppLicense"),n.ipcMain.removeAllListeners("about.readyToShow"),n.ipcMain.removeAllListeners("about.close"),n.ipcMain.removeHandler("about.getDetails")}),t}
