"use strict";const{contextBridge,ipcRenderer}=require("electron");contextBridge.exposeInMainWorld("UP",{partner:0,Focus:(...e)=>ipcRenderer.send("focus",...e),AppMenu:(...e)=>ipcRenderer.send("app-menu",...e),Browser:(...e)=>ipcRenderer.send("browser",...e),ModalShow:(...e)=>ipcRenderer.send("modal-show",...e),ModalHide:(...e)=>ipcRenderer.send("modal-hide",...e),AccountsWindow:(...e)=>ipcRenderer.send("accounts-window",...e),ActiveChats:(...e)=>ipcRenderer.send("active-chats",...e),ExternalTabs:(...e)=>ipcRenderer.send("external-tabs",...e),SharedLogin:async(...e)=>ipcRenderer.send("shared-login",...e),SharedAccount:(...e)=>ipcRenderer.send("shared-account",...e),SharedAccounts:(...e)=>ipcRenderer.invoke("shared-accounts",...e),OnDark:e=>ipcRenderer.on("set-dark",(n,...r)=>e(...r)),OnLanguage:e=>ipcRenderer.on("set-language",(n,...r)=>e(...r)),OnAccountsChanged:e=>ipcRenderer.on("accounts-changed",(n,...r)=>e(...r)),OnClose:e=>ipcRenderer.on("close",(n,...r)=>e(...r)),OnIpActivated:e=>ipcRenderer.on("ip-activated",(n,...r)=>e(...r)),OnIpActivation:e=>ipcRenderer.on("ip-activation",(n,...r)=>e(...r)),WebViewCreate:async(...e)=>ipcRenderer.invoke("webview-create",...e),WebViewDelete:async(...e)=>ipcRenderer.invoke("webview-delete",...e),WebViewCopy:(...e)=>ipcRenderer.invoke("webview-copy",...e),WebViewMove:(...e)=>ipcRenderer.invoke("webview-move",...e),WebViewUa:(...e)=>ipcRenderer.send("webview-ua",...e),WebViewShow:(...e)=>ipcRenderer.send("webview-show",...e),WebViewClear:(...e)=>ipcRenderer.send("webview-clear",...e),WebViewFocus:(...e)=>ipcRenderer.send("webview-focus",...e),WebViewHeight:(...e)=>ipcRenderer.send("webview-height",...e),WebViewPermissions:(...e)=>ipcRenderer.send("webview-permissions",...e),WebViewModifyHeaders:(...e)=>ipcRenderer.send("webview-modify-headers",...e),WebViewBack:(...e)=>ipcRenderer.send("webview-back",...e),WebViewStop:(...e)=>ipcRenderer.send("webview-stop",...e),WebViewLoad:(...e)=>ipcRenderer.send("webview-load",...e),WebViewFlush:(...e)=>ipcRenderer.send("webview-flush",...e),WebViewReload:(...e)=>ipcRenderer.send("webview-reload",...e),WebViewForward:(...e)=>ipcRenderer.send("webview-forward",...e),WebViewZoomIn:(...e)=>ipcRenderer.send("webview-zoom-in",...e),WebViewZoomOut:(...e)=>ipcRenderer.send("webview-zoom-out",...e),WebViewZoomReset:(...e)=>ipcRenderer.send("webview-zoom-reset",...e),Notification:async(...e)=>ipcRenderer.invoke("notification",...e),NotificationClear:(...e)=>ipcRenderer.send("notification-clear",...e),SharedSet:(...e)=>ipcRenderer.send("shared-set",...e),SharedGet:async(...e)=>ipcRenderer.invoke("shared-get",...e),Request:async(...e)=>ipcRenderer.invoke("request",...e),OnRequest:e=>ipcRenderer.on("request",(n,...r)=>e(...r)),Reply:(...e)=>ipcRenderer.send("reply",...e),Message:(...e)=>ipcRenderer.send("message",...e),OnMessage:e=>ipcRenderer.on("message",(n,...r)=>e(...r)),FromWebView:e=>ipcRenderer.on("webview",(n,...r)=>e(...r)),FromActiveChats:e=>ipcRenderer.on("active-chats",(n,...r)=>e(...r)),FromExternalTabs:e=>ipcRenderer.on("external-tabs",(n,...r)=>e(...r))});
