(()=>{"use strict";var e={288:e=>{e.exports=require("electron")}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}(()=>{const e=r(288);e.contextBridge.exposeInMainWorld("api",{rendererReady:function(){e.ipcRenderer.send("renderer-ready")},getLocales:function(){return e.ipcRenderer.invoke("get-locales")},appSettings:{get:()=>e.ipcRenderer.invoke("app-settings-get"),getKey:n=>e.ipcRenderer.invoke(`app-settings-get-${n}`),setKey(n,r){e.ipcRenderer.send(`app-settings-set-${n}`,r)},onChange(n,r){e.ipcRenderer.on(`app-settings-changed-${n}`,((e,n,t)=>{r(n,t)}))}},menuSettings:{get:()=>e.ipcRenderer.invoke("menu-settings-get"),set(n){e.ipcRenderer.send("menu-settings-set",n)},getCurrentMenu:()=>e.ipcRenderer.invoke("menu-settings-get-current-menu")},getVersion:function(){return e.ipcRenderer.invoke("get-version")},getBackendInfo:function(){return e.ipcRenderer.invoke("get-backend-info")},getMenuTheme:function(){return e.ipcRenderer.invoke("get-menu-theme")},getAllMenuThemes:function(){return e.ipcRenderer.invoke("get-all-menu-themes")},getSoundTheme:function(){return e.ipcRenderer.invoke("get-sound-theme")},getCurrentMenuThemeColors:function(){return e.ipcRenderer.invoke("get-current-menu-theme-colors")},getIsDarkMode:function(){return e.ipcRenderer.invoke("get-is-dark-mode")},darkModeChanged(n){e.ipcRenderer.on("dark-mode-changed",((e,r)=>n(r)))},getIconThemes:function(){return e.ipcRenderer.invoke("get-icon-themes")},showDevTools:function(){e.ipcRenderer.send("show-dev-tools")},reloadMenuTheme:function(){e.ipcRenderer.send("reload-menu-theme")},reloadSoundTheme:function(){e.ipcRenderer.send("reload-sound-theme")},log:function(n){e.ipcRenderer.send("log",n)},showMenu:function(n){e.ipcRenderer.on("show-menu",((e,r,t,o)=>n(r,t,o)))},showEditor:function(n){e.ipcRenderer.on("show-editor",((e,r)=>n(r)))},hideEditor:function(n){e.ipcRenderer.on("hide-editor",n)},unbindShortcuts:function(){e.ipcRenderer.send("unbind-shortcuts")},showUpdateAvailableButton:function(n){e.ipcRenderer.on("show-update-available-button",n)},hoverItem:function(n){e.ipcRenderer.send("hover-item",n)},unhoverItem:function(n){e.ipcRenderer.send("unhover-item",n)},selectItem:function(n){e.ipcRenderer.send("select-item",n)},cancelSelection:function(){e.ipcRenderer.send("cancel-selection")},movePointer:function(n){e.ipcRenderer.send("move-pointer",n)}})})()})();
//# sourceMappingURL=preload.js.map