/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/atomos@0.5.0-alpha/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
const{BrowserWindow:BrowserWindow,app:app,ipcMain:ipcMain}=require("electron");app.commandLine.appendSwitch("disable-gpu"),app.commandLine.appendSwitch("enable-transparent-visuals"),global.windowArgs=[],global.windowIcons=[],global.clipboards={file:[]},require("child_process").exec("xfwm4"),ipcMain.on("setArguments",(function(n,e){global.windowArgs[e.wid]=e.arguments||{}})),ipcMain.on("getArguments",(function(n,e){n.returnValue=global.windowArgs[e]||{}})),ipcMain.on("pipe",(function(n,e){console.log(e.options),BrowserWindow.fromId(e.window).webContents.send(e.options)}));const path=require("path");let win,taskbar,startMenu,internetMenu,clockMenu,notification;ipcMain.on("toggleStart",(function(){startMenu.isVisible()?startMenu.hide():startMenu.show(),startMenu.setAlwaysOnTop(!0)})),ipcMain.on("toggleNet",(function(){internetMenu.isVisible()?internetMenu.hide():internetMenu.show(),internetMenu.setAlwaysOnTop(!0)})),ipcMain.on("toggleClock",(function(){clockMenu.isVisible()?clockMenu.hide():clockMenu.show(),clockMenu.setAlwaysOnTop(!0)})),ipcMain.on("icon-change",(function(n,e){global.windowIcons[e.wid]=e.icon})),ipcMain.on("icon-get",(function(n,e){n.returnValue=global.windowIcons[e]||"/atomos/icons/Application.png"})),app.on("ready",(function(n){const{width:e,height:i}=require("electron").screen.getPrimaryDisplay().bounds;win=new BrowserWindow({frame:!1,resizable:!1,movable:!1,minimizable:!1,maximizable:!1,closable:!1,type:"desktop",x:0,y:0,width:e,height:i,fullscreenable:!1,webPreferences:{webSecurity:!1,allowRunningInsecureContent:!0,preload:"file:///atomos/node_modules/atomos-framework/preload.js"},backgroundColor:"#bbd8e8"}),win.loadURL("file:///atomos/apps/aos-cabinet/index.html"),win.onbeforeunload=function(){return!1},win.on("close",(function(n){win=null})),win.show(),win.setSize(e,i);let o=win.getBounds();taskbar=new BrowserWindow({x:0,y:o.height-46,width:e,height:47,frame:!1,closable:!1,minimizable:!1,maximizable:!1,resizable:!1,movable:!1,fullscreenable:!1,alwaysOnTop:!0,type:"dock"}),taskbar.loadURL("file:///atomos/sys/taskbar/index.html"),taskbar.show(),notification=new BrowserWindow({x:e-10-350,y:i-37-150,width:450,height:450,frame:!1,closable:!1,minimizable:!1,maximizable:!1,alwaysOnTop:!0,resizable:!1,fullscreenable:!1,movable:!1,show:!1,type:"notification"}),notification.loadURL("file:///atomos/sys/notification/index.html"),"--test"==process.argv[2]&&(taskbar.toggleDevTools(),notification.toggleDevTools())}));
//# sourceMappingURL=/sm/7799d8bc95e4148ba139faf8798dd4daf8fca352cb3247cf284a9cfe3a6c9c67.map