// Vencord 50c5124e
// Standalone: false
// Platform: win32
// Updater Disabled: false
"use strict";function a(e,o=300){let n;return function(...E){clearTimeout(n),n=setTimeout(()=>{e(...E)},o)}}var i=require("electron/renderer");var t=require("electron/renderer");function r(e,...o){return t.ipcRenderer.invoke(e,...o)}function _(e,...o){return t.ipcRenderer.sendSync(e,...o)}var S={},g=_("VencordGetPluginIpcMethodMap");for(let[e,o]of Object.entries(g)){let n=S[e]={};for(let[E,m]of Object.entries(o))n[E]=(...c)=>r(m,...c)}var s={themes:{uploadTheme:async(e,o)=>{throw new Error("uploadTheme is WEB only")},deleteTheme:async e=>{throw new Error("deleteTheme is WEB only")},getThemesList:()=>r("VencordGetThemesList"),getThemeData:e=>r("VencordGetThemeData",e),getSystemValues:()=>r("VencordGetThemeSystemValues"),openFolder:()=>r("VencordOpenThemesFolder")},updater:{getUpdates:()=>r("VencordGetUpdates"),update:()=>r("VencordUpdate"),rebuild:()=>r("VencordBuild"),getRepo:()=>r("VencordGetRepo")},settings:{get:()=>_("VencordGetSettings"),set:(e,o)=>r("VencordSetSettings",e,o),openFolder:()=>r("VencordOpenSettingsFolder")},quickCss:{get:()=>r("VencordGetQuickCss"),set:e=>r("VencordSetQuickCss",e),addChangeListener(e){t.ipcRenderer.on("VencordQuickCssUpdate",(o,n)=>e(n))},addThemeChangeListener(e){t.ipcRenderer.on("VencordThemeUpdate",()=>e())},openFile:()=>r("VencordOpenQuickCss"),openEditor:()=>r("VencordOpenMonacoEditor"),getEditorTheme:()=>_("VencordGetMonacoTheme")},native:{getVersions:()=>process.versions,openExternal:e=>r("VencordOpenExternal",e),getRendererCss:()=>r("VencordGetRendererCss"),onRendererCssUpdate:e=>{}},csp:{isDomainAllowed:(e,o)=>r("VencordCspIsDomainAllowed",e,o),removeOverride:e=>r("VencordCspRemoveOverride",e),requestAddOverride:(e,o,n)=>r("VencordCspRequestAddOverride",e,o,n)},pluginHelpers:S};i.contextBridge.exposeInMainWorld("VencordNative",s);location.protocol!=="data:"?r("VencordInitFileWatchers"):(i.contextBridge.exposeInMainWorld("setCss",a(s.quickCss.set)),i.contextBridge.exposeInMainWorld("getCurrentCss",s.quickCss.get),i.contextBridge.exposeInMainWorld("getTheme",s.quickCss.getEditorTheme));
//# sourceURL=file:///VencordPreload
//# sourceMappingURL=vencord://vencordDesktopPreload.js.map
