(()=>{"use strict";var e={3:(e,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.COMMON_WINDOW_API=void 0;const t=o(288);n.COMMON_WINDOW_API={log:e=>{t.ipcRenderer.send("common.log",e)},getLocales:()=>t.ipcRenderer.invoke("common.get-locales"),generalSettings:{get:function(){return t.ipcRenderer.invoke("common.general-settings-get")},set:function(e){t.ipcRenderer.send("common.general-settings-set",e)},onChange:function(e){const n=(n,o,t)=>{e(o,t)};return t.ipcRenderer.on("common.general-settings-changed",n),()=>{t.ipcRenderer.off("common.general-settings-changed",n)}}},menuSettings:{get:function(){return t.ipcRenderer.invoke("common.menu-settings-get")},set:function(e){t.ipcRenderer.send("common.menu-settings-set",e)},onChange:function(e){const n=(n,o,t)=>{e(o,t)};return t.ipcRenderer.on("common.menu-settings-changed",n),()=>{t.ipcRenderer.off("common.menu-settings-changed",n)}}},getIconThemes:()=>t.ipcRenderer.invoke("common.get-icon-themes"),getMenuTheme:()=>t.ipcRenderer.invoke("common.get-menu-theme"),getCurrentMenuThemeColors:()=>t.ipcRenderer.invoke("common.get-current-menu-theme-colors"),getIsDarkMode:()=>t.ipcRenderer.invoke("common.get-is-dark-mode"),darkModeChanged:e=>{const n=(n,o)=>{e(o)};return t.ipcRenderer.on("common.dark-mode-changed",n),()=>{t.ipcRenderer.off("common.dark-mode-changed",n)}},getSoundTheme:()=>t.ipcRenderer.invoke("common.get-sound-theme"),getSystemIcons:()=>t.ipcRenderer.invoke("common.get-system-icons"),createItemForDroppedFile(e){const n=e.name,o=t.webUtils.getPathForFile(e);return t.ipcRenderer.invoke("common.create-menu-item-for-file",n,o)}}},267:(e,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.SETTINGS_WINDOW_API=void 0;const t=o(288);n.SETTINGS_WINDOW_API={settingsWindowReady:()=>{t.ipcRenderer.send("settings-window.ready")},getBackendInfo:()=>t.ipcRenderer.invoke("settings-window.get-backend-info"),getVersionInfo:()=>t.ipcRenderer.invoke("settings-window.get-version"),getWMInfo:()=>t.ipcRenderer.invoke("settings-window.get-wm-info"),getSystemInfo:()=>t.ipcRenderer.invoke("settings-window.get-system-info"),getWindowPosition:()=>t.ipcRenderer.invoke("settings-window.get-position"),getCurrentMenu:function(){return t.ipcRenderer.invoke("settings-window.get-current-menu")},getConfigDirectory:()=>t.ipcRenderer.invoke("settings-window.get-config-directory"),getMenuThemesDirectory:()=>t.ipcRenderer.invoke("settings-window.get-menu-themes-directory"),getAllMenuThemes:()=>t.ipcRenderer.invoke("settings-window.get-all-menu-themes"),getAllSoundThemes:()=>t.ipcRenderer.invoke("settings-window.get-all-sound-themes"),getInstalledApps:()=>t.ipcRenderer.invoke("settings-window.get-installed-apps"),showDevTools:e=>{t.ipcRenderer.send("settings-window.show-dev-tools",e)},reloadMenuTheme:()=>{t.ipcRenderer.send("settings-window.reload-menu-theme")},reloadSoundTheme:()=>{t.ipcRenderer.send("settings-window.reload-sound-theme")},openFilePicker:e=>t.ipcRenderer.invoke("settings-window.open-file-picker",e)}},288:e=>{e.exports=require("electron")}},n={};function o(t){var i=n[t];if(void 0!==i)return i.exports;var r=n[t]={exports:{}};return e[t](r,r.exports,o),r.exports}(()=>{const e=o(288),n=o(3),t=o(267);e.contextBridge.exposeInMainWorld("commonAPI",n.COMMON_WINDOW_API),e.contextBridge.exposeInMainWorld("settingsAPI",t.SETTINGS_WINDOW_API)})()})();
//# sourceMappingURL=preload.js.map