(()=>{"use strict";var e={3:(e,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.COMMON_WINDOW_API=void 0;const r=o(288);n.COMMON_WINDOW_API={log:e=>{r.ipcRenderer.send("common.log",e)},getLocales:()=>r.ipcRenderer.invoke("common.get-locales"),generalSettings:{get:function(){return r.ipcRenderer.invoke("common.general-settings-get")},set:function(e){r.ipcRenderer.send("common.general-settings-set",e)},onChange:function(e){const n=(n,o,r)=>{e(o,r)};return r.ipcRenderer.on("common.general-settings-changed",n),()=>{r.ipcRenderer.off("common.general-settings-changed",n)}}},menuSettings:{get:function(){return r.ipcRenderer.invoke("common.menu-settings-get")},set:function(e){r.ipcRenderer.send("common.menu-settings-set",e)},onChange:function(e){const n=(n,o,r)=>{e(o,r)};return r.ipcRenderer.on("common.menu-settings-changed",n),()=>{r.ipcRenderer.off("common.menu-settings-changed",n)}}},getIconThemes:()=>r.ipcRenderer.invoke("common.get-icon-themes"),getMenuTheme:()=>r.ipcRenderer.invoke("common.get-menu-theme"),getCurrentMenuThemeColors:()=>r.ipcRenderer.invoke("common.get-current-menu-theme-colors"),getIsDarkMode:()=>r.ipcRenderer.invoke("common.get-is-dark-mode"),darkModeChanged:e=>{const n=(n,o)=>{e(o)};return r.ipcRenderer.on("common.dark-mode-changed",n),()=>{r.ipcRenderer.off("common.dark-mode-changed",n)}},getSoundTheme:()=>r.ipcRenderer.invoke("common.get-sound-theme"),getSystemIcons:()=>r.ipcRenderer.invoke("common.get-system-icons"),createItemForDroppedFile(e){const n=e.name,o=r.webUtils.getPathForFile(e);return r.ipcRenderer.invoke("common.create-menu-item-for-file",n,o)}}},95:(e,n,o)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.MENU_WINDOW_API=void 0;const r=o(288);n.MENU_WINDOW_API={menuWindowReady:()=>{r.ipcRenderer.send("menu-window.ready")},movePointer:e=>{r.ipcRenderer.send("menu-window.move-pointer",e)},onShowMenu:e=>{r.ipcRenderer.on("menu-window.show-menu",(n,o,r)=>e(o,r))},onHideMenu:e=>{r.ipcRenderer.on("menu-window.hide-menu",e)},selectItem:e=>{r.ipcRenderer.send("menu-window.select-item",e)},hoverItem:e=>{r.ipcRenderer.send("menu-window.hover-item",e)},unhoverItem:e=>{r.ipcRenderer.send("menu-window.unhover-item",e)},cancelSelection:()=>{r.ipcRenderer.send("menu-window.cancel-selection")},showSettings:()=>{r.ipcRenderer.send("menu-window.show-settings")},onReloadMenuTheme:e=>{r.ipcRenderer.on("menu-window.reload-menu-theme",e)},onReloadSoundTheme:e=>{r.ipcRenderer.on("menu-window.reload-sound-theme",e)}}},288:e=>{e.exports=require("electron")}},n={};function o(r){var t=n[r];if(void 0!==t)return t.exports;var i=n[r]={exports:{}};return e[r](i,i.exports,o),i.exports}(()=>{const e=o(288),n=o(3),r=o(95);e.contextBridge.exposeInMainWorld("commonAPI",n.COMMON_WINDOW_API),e.contextBridge.exposeInMainWorld("menuAPI",r.MENU_WINDOW_API)})()})();
//# sourceMappingURL=preload.js.map