diff --git a/v3/examples/window-api/assets/runtime.debug.js b/v3/examples/window-api/assets/runtime.debug.js deleted file mode 100644 index 101f237755c..00000000000 --- a/v3/examples/window-api/assets/runtime.debug.js +++ /dev/null @@ -1,963 +0,0 @@ -(() => { - var __defProp = Object.defineProperty; - var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); - }; - - // desktop/@wailsio/runtime/src/log.js - function debugLog(message) { - console.log( - "%c wails3 %c " + message + " ", - "background: #aa0000; color: #fff; border-radius: 3px 0px 0px 3px; padding: 1px; font-size: 0.7rem", - "background: #009900; color: #fff; border-radius: 0px 3px 3px 0px; padding: 1px; font-size: 0.7rem" - ); - } - - // desktop/@wailsio/runtime/src/application.js - var application_exports = {}; - __export(application_exports, { - Hide: () => Hide, - Quit: () => Quit, - Show: () => Show - }); - - // node_modules/nanoid/non-secure/index.js - var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"; - var nanoid = (size2 = 21) => { - let id = ""; - let i = size2; - while (i--) { - id += urlAlphabet[Math.random() * 64 | 0]; - } - return id; - }; - - // desktop/@wailsio/runtime/src/runtime.js - var runtimeURL = window.location.origin + "/wails/runtime"; - var objectNames = { - Call: 0, - Clipboard: 1, - Application: 2, - Events: 3, - ContextMenu: 4, - Dialog: 5, - Window: 6, - Screens: 7, - System: 8, - Browser: 9 - }; - var clientId = nanoid(); - function newRuntimeCallerWithID(object, windowName) { - return function(method, args = null) { - return runtimeCallWithID(object, method, windowName, args); - }; - } - function runtimeCallWithID(objectID, method, windowName, args) { - let url = new URL(runtimeURL); - url.searchParams.append("object", objectID); - url.searchParams.append("method", method); - let fetchOptions = { - headers: {} - }; - if (windowName) { - fetchOptions.headers["x-wails-window-name"] = windowName; - } - if (args) { - url.searchParams.append("args", JSON.stringify(args)); - } - fetchOptions.headers["x-wails-client-id"] = clientId; - return new Promise((resolve, reject) => { - fetch(url, fetchOptions).then((response) => { - if (response.ok) { - if (response.headers.get("Content-Type") && response.headers.get("Content-Type").indexOf("application/json") !== -1) { - return response.json(); - } else { - return response.text(); - } - } - reject(Error(response.statusText)); - }).then((data) => resolve(data)).catch((error) => reject(error)); - }); - } - - // desktop/@wailsio/runtime/src/application.js - var call = newRuntimeCallerWithID(objectNames.Application, ""); - var HideMethod = 0; - var ShowMethod = 1; - var QuitMethod = 2; - function Hide() { - return call(HideMethod); - } - function Show() { - return call(ShowMethod); - } - function Quit() { - return call(QuitMethod); - } - - // desktop/@wailsio/runtime/src/browser.js - var browser_exports = {}; - __export(browser_exports, { - OpenURL: () => OpenURL - }); - var call2 = newRuntimeCallerWithID(objectNames.Browser, ""); - var BrowserOpenURL = 0; - function OpenURL(url) { - return call2(BrowserOpenURL, { url }); - } - - // desktop/@wailsio/runtime/src/clipboard.js - var clipboard_exports = {}; - __export(clipboard_exports, { - SetText: () => SetText, - Text: () => Text - }); - var call3 = newRuntimeCallerWithID(objectNames.Clipboard, ""); - var ClipboardSetText = 0; - var ClipboardText = 1; - function SetText(text) { - return call3(ClipboardSetText, { text }); - } - function Text() { - return call3(ClipboardText); - } - - // desktop/@wailsio/runtime/src/flags.js - var flags_exports = {}; - __export(flags_exports, { - GetFlag: () => GetFlag - }); - function GetFlag(keyString) { - try { - return window._wails.flags[keyString]; - } catch (e) { - throw new Error("Unable to retrieve flag '" + keyString + "': " + e); - } - } - - // desktop/@wailsio/runtime/src/screens.js - var screens_exports = {}; - __export(screens_exports, { - GetAll: () => GetAll, - GetCurrent: () => GetCurrent, - GetPrimary: () => GetPrimary - }); - var call4 = newRuntimeCallerWithID(objectNames.Screens, ""); - var getAll = 0; - var getPrimary = 1; - var getCurrent = 2; - function GetAll() { - return call4(getAll); - } - function GetPrimary() { - return call4(getPrimary); - } - function GetCurrent() { - return call4(getCurrent); - } - - // desktop/@wailsio/runtime/src/system.js - var system_exports = {}; - __export(system_exports, { - Capabilities: () => Capabilities, - Environment: () => Environment, - IsAMD64: () => IsAMD64, - IsARM: () => IsARM, - IsARM64: () => IsARM64, - IsDarkMode: () => IsDarkMode, - IsDebug: () => IsDebug, - IsLinux: () => IsLinux, - IsMac: () => IsMac, - IsWindows: () => IsWindows, - invoke: () => invoke - }); - var call5 = newRuntimeCallerWithID(objectNames.System, ""); - var systemIsDarkMode = 0; - var environment = 1; - function invoke(msg) { - if (window.chrome) { - return window.chrome.webview.postMessage(msg); - } - return window.webkit.messageHandlers.external.postMessage; - } - function IsDarkMode() { - return call5(systemIsDarkMode); - } - function Capabilities() { - let response = fetch("/wails/capabilities"); - return response.json(); - } - function Environment() { - return call5(environment); - } - function IsWindows() { - return window._wails.environment.OS === "windows"; - } - function IsLinux() { - return window._wails.environment.OS === "linux"; - } - function IsMac() { - return window._wails.environment.OS === "darwin"; - } - function IsAMD64() { - return window._wails.environment.Arch === "amd64"; - } - function IsARM() { - return window._wails.environment.Arch === "arm"; - } - function IsARM64() { - return window._wails.environment.Arch === "arm64"; - } - function IsDebug() { - return window._wails.environment.Debug === true; - } - - // desktop/@wailsio/runtime/src/window.js - var window_exports = {}; - __export(window_exports, { - Center: () => Center, - Close: () => Close, - Fullscreen: () => Fullscreen, - Get: () => Get, - GetZoomLevel: () => GetZoomLevel, - Height: () => Height, - Hide: () => Hide2, - Maximise: () => Maximise, - Minimise: () => Minimise, - RelativePosition: () => RelativePosition, - Restore: () => Restore, - Screen: () => Screen, - SetAlwaysOnTop: () => SetAlwaysOnTop, - SetBackgroundColour: () => SetBackgroundColour, - SetMaxSize: () => SetMaxSize, - SetMinSize: () => SetMinSize, - SetRelativePosition: () => SetRelativePosition, - SetResizable: () => SetResizable, - SetSize: () => SetSize, - SetTitle: () => SetTitle, - SetZoomLevel: () => SetZoomLevel, - Show: () => Show2, - Size: () => Size, - ToggleMaximise: () => ToggleMaximise, - UnMaximise: () => UnMaximise, - UnMinimise: () => UnMinimise, - Width: () => Width, - ZoomIn: () => ZoomIn, - ZoomOut: () => ZoomOut, - ZoomReset: () => ZoomReset - }); - var center = 0; - var setTitle = 1; - var fullscreen = 2; - var unFullscreen = 3; - var setSize = 4; - var size = 5; - var setMaxSize = 6; - var setMinSize = 7; - var setAlwaysOnTop = 8; - var setRelativePosition = 9; - var relativePosition = 10; - var screen = 11; - var hide = 12; - var maximise = 13; - var unMaximise = 14; - var toggleMaximise = 15; - var minimise = 16; - var unMinimise = 17; - var restore = 18; - var show = 19; - var close = 20; - var setBackgroundColour = 21; - var setResizable = 22; - var width = 23; - var height = 24; - var zoomIn = 25; - var zoomOut = 26; - var zoomReset = 27; - var getZoomLevel = 28; - var setZoomLevel = 29; - var thisWindow = Get(""); - function createWindow(call9) { - return { - Get: (windowName) => createWindow(newRuntimeCallerWithID(objectNames.Window, windowName)), - Center: () => call9(center), - SetTitle: (title) => call9(setTitle, { title }), - Fullscreen: () => call9(fullscreen), - UnFullscreen: () => call9(unFullscreen), - SetSize: (width2, height2) => call9(setSize, { width: width2, height: height2 }), - Size: () => call9(size), - SetMaxSize: (width2, height2) => call9(setMaxSize, { width: width2, height: height2 }), - SetMinSize: (width2, height2) => call9(setMinSize, { width: width2, height: height2 }), - SetAlwaysOnTop: (onTop) => call9(setAlwaysOnTop, { alwaysOnTop: onTop }), - SetRelativePosition: (x, y) => call9(setRelativePosition, { x, y }), - RelativePosition: () => call9(relativePosition), - Screen: () => call9(screen), - Hide: () => call9(hide), - Maximise: () => call9(maximise), - UnMaximise: () => call9(unMaximise), - ToggleMaximise: () => call9(toggleMaximise), - Minimise: () => call9(minimise), - UnMinimise: () => call9(unMinimise), - Restore: () => call9(restore), - Show: () => call9(show), - Close: () => call9(close), - SetBackgroundColour: (r, g, b, a) => call9(setBackgroundColour, { r, g, b, a }), - SetResizable: (resizable) => call9(setResizable, { resizable }), - Width: () => call9(width), - Height: () => call9(height), - ZoomIn: () => call9(zoomIn), - ZoomOut: () => call9(zoomOut), - ZoomReset: () => call9(zoomReset), - GetZoomLevel: () => call9(getZoomLevel), - SetZoomLevel: (zoomLevel) => call9(setZoomLevel, { zoomLevel }) - }; - } - function Get(windowName) { - return createWindow(newRuntimeCallerWithID(objectNames.Window, windowName)); - } - function Center() { - thisWindow.Center(); - } - function SetTitle(title) { - thisWindow.SetTitle(title); - } - function Fullscreen() { - thisWindow.Fullscreen(); - } - function SetSize(width2, height2) { - thisWindow.SetSize(width2, height2); - } - function Size() { - return thisWindow.Size(); - } - function SetMaxSize(width2, height2) { - thisWindow.SetMaxSize(width2, height2); - } - function SetMinSize(width2, height2) { - thisWindow.SetMinSize(width2, height2); - } - function SetAlwaysOnTop(onTop) { - thisWindow.SetAlwaysOnTop(onTop); - } - function SetRelativePosition(x, y) { - thisWindow.SetRelativePosition(x, y); - } - function RelativePosition() { - return thisWindow.RelativePosition(); - } - function Screen() { - return thisWindow.Screen(); - } - function Hide2() { - thisWindow.Hide(); - } - function Maximise() { - thisWindow.Maximise(); - } - function UnMaximise() { - thisWindow.UnMaximise(); - } - function ToggleMaximise() { - thisWindow.ToggleMaximise(); - } - function Minimise() { - thisWindow.Minimise(); - } - function UnMinimise() { - thisWindow.UnMinimise(); - } - function Restore() { - thisWindow.Restore(); - } - function Show2() { - thisWindow.Show(); - } - function Close() { - thisWindow.Close(); - } - function SetBackgroundColour(r, g, b, a) { - thisWindow.SetBackgroundColour(r, g, b, a); - } - function SetResizable(resizable) { - thisWindow.SetResizable(resizable); - } - function Width() { - return thisWindow.Width(); - } - function Height() { - return thisWindow.Height(); - } - function ZoomIn() { - thisWindow.ZoomIn(); - } - function ZoomOut() { - thisWindow.ZoomOut(); - } - function ZoomReset() { - thisWindow.ZoomReset(); - } - function GetZoomLevel() { - return thisWindow.GetZoomLevel(); - } - function SetZoomLevel(zoomLevel) { - thisWindow.SetZoomLevel(zoomLevel); - } - - // desktop/@wailsio/runtime/src/wml.js - var wml_exports = {}; - __export(wml_exports, { - Reload: () => Reload - }); - - // desktop/@wailsio/runtime/src/events.js - var events_exports = {}; - __export(events_exports, { - Emit: () => Emit, - Off: () => Off, - OffAll: () => OffAll, - On: () => On, - OnMultiple: () => OnMultiple, - Once: () => Once, - Types: () => Types, - WailsEvent: () => WailsEvent, - setup: () => setup - }); - - // desktop/@wailsio/runtime/src/event_types.js - var EventTypes = { - Windows: { - SystemThemeChanged: "windows:SystemThemeChanged", - APMPowerStatusChange: "windows:APMPowerStatusChange", - APMSuspend: "windows:APMSuspend", - APMResumeAutomatic: "windows:APMResumeAutomatic", - APMResumeSuspend: "windows:APMResumeSuspend", - APMPowerSettingChange: "windows:APMPowerSettingChange", - ApplicationStarted: "windows:ApplicationStarted", - WebViewNavigationCompleted: "windows:WebViewNavigationCompleted", - WindowInactive: "windows:WindowInactive", - WindowActive: "windows:WindowActive", - WindowClickActive: "windows:WindowClickActive", - WindowMaximise: "windows:WindowMaximise", - WindowUnMaximise: "windows:WindowUnMaximise", - WindowFullscreen: "windows:WindowFullscreen", - WindowUnFullscreen: "windows:WindowUnFullscreen", - WindowRestore: "windows:WindowRestore", - WindowMinimise: "windows:WindowMinimise", - WindowUnMinimise: "windows:WindowUnMinimise", - WindowClose: "windows:WindowClose", - WindowSetFocus: "windows:WindowSetFocus", - WindowKillFocus: "windows:WindowKillFocus", - WindowDragDrop: "windows:WindowDragDrop", - WindowDragEnter: "windows:WindowDragEnter", - WindowDragLeave: "windows:WindowDragLeave", - WindowDragOver: "windows:WindowDragOver" - }, - Mac: { - ApplicationDidBecomeActive: "mac:ApplicationDidBecomeActive", - ApplicationDidChangeBackingProperties: "mac:ApplicationDidChangeBackingProperties", - ApplicationDidChangeEffectiveAppearance: "mac:ApplicationDidChangeEffectiveAppearance", - ApplicationDidChangeIcon: "mac:ApplicationDidChangeIcon", - ApplicationDidChangeOcclusionState: "mac:ApplicationDidChangeOcclusionState", - ApplicationDidChangeScreenParameters: "mac:ApplicationDidChangeScreenParameters", - ApplicationDidChangeStatusBarFrame: "mac:ApplicationDidChangeStatusBarFrame", - ApplicationDidChangeStatusBarOrientation: "mac:ApplicationDidChangeStatusBarOrientation", - ApplicationDidFinishLaunching: "mac:ApplicationDidFinishLaunching", - ApplicationDidHide: "mac:ApplicationDidHide", - ApplicationDidResignActiveNotification: "mac:ApplicationDidResignActiveNotification", - ApplicationDidUnhide: "mac:ApplicationDidUnhide", - ApplicationDidUpdate: "mac:ApplicationDidUpdate", - ApplicationWillBecomeActive: "mac:ApplicationWillBecomeActive", - ApplicationWillFinishLaunching: "mac:ApplicationWillFinishLaunching", - ApplicationWillHide: "mac:ApplicationWillHide", - ApplicationWillResignActive: "mac:ApplicationWillResignActive", - ApplicationWillTerminate: "mac:ApplicationWillTerminate", - ApplicationWillUnhide: "mac:ApplicationWillUnhide", - ApplicationWillUpdate: "mac:ApplicationWillUpdate", - ApplicationDidChangeTheme: "mac:ApplicationDidChangeTheme!", - ApplicationShouldHandleReopen: "mac:ApplicationShouldHandleReopen!", - WindowDidBecomeKey: "mac:WindowDidBecomeKey", - WindowDidBecomeMain: "mac:WindowDidBecomeMain", - WindowDidBeginSheet: "mac:WindowDidBeginSheet", - WindowDidChangeAlpha: "mac:WindowDidChangeAlpha", - WindowDidChangeBackingLocation: "mac:WindowDidChangeBackingLocation", - WindowDidChangeBackingProperties: "mac:WindowDidChangeBackingProperties", - WindowDidChangeCollectionBehavior: "mac:WindowDidChangeCollectionBehavior", - WindowDidChangeEffectiveAppearance: "mac:WindowDidChangeEffectiveAppearance", - WindowDidChangeOcclusionState: "mac:WindowDidChangeOcclusionState", - WindowDidChangeOrderingMode: "mac:WindowDidChangeOrderingMode", - WindowDidChangeScreen: "mac:WindowDidChangeScreen", - WindowDidChangeScreenParameters: "mac:WindowDidChangeScreenParameters", - WindowDidChangeScreenProfile: "mac:WindowDidChangeScreenProfile", - WindowDidChangeScreenSpace: "mac:WindowDidChangeScreenSpace", - WindowDidChangeScreenSpaceProperties: "mac:WindowDidChangeScreenSpaceProperties", - WindowDidChangeSharingType: "mac:WindowDidChangeSharingType", - WindowDidChangeSpace: "mac:WindowDidChangeSpace", - WindowDidChangeSpaceOrderingMode: "mac:WindowDidChangeSpaceOrderingMode", - WindowDidChangeTitle: "mac:WindowDidChangeTitle", - WindowDidChangeToolbar: "mac:WindowDidChangeToolbar", - WindowDidChangeVisibility: "mac:WindowDidChangeVisibility", - WindowDidDeminiaturize: "mac:WindowDidDeminiaturize", - WindowDidEndSheet: "mac:WindowDidEndSheet", - WindowDidEnterFullScreen: "mac:WindowDidEnterFullScreen", - WindowDidEnterVersionBrowser: "mac:WindowDidEnterVersionBrowser", - WindowDidExitFullScreen: "mac:WindowDidExitFullScreen", - WindowDidExitVersionBrowser: "mac:WindowDidExitVersionBrowser", - WindowDidExpose: "mac:WindowDidExpose", - WindowDidFocus: "mac:WindowDidFocus", - WindowDidMiniaturize: "mac:WindowDidMiniaturize", - WindowDidMove: "mac:WindowDidMove", - WindowDidOrderOffScreen: "mac:WindowDidOrderOffScreen", - WindowDidOrderOnScreen: "mac:WindowDidOrderOnScreen", - WindowDidResignKey: "mac:WindowDidResignKey", - WindowDidResignMain: "mac:WindowDidResignMain", - WindowDidResize: "mac:WindowDidResize", - WindowDidUpdate: "mac:WindowDidUpdate", - WindowDidUpdateAlpha: "mac:WindowDidUpdateAlpha", - WindowDidUpdateCollectionBehavior: "mac:WindowDidUpdateCollectionBehavior", - WindowDidUpdateCollectionProperties: "mac:WindowDidUpdateCollectionProperties", - WindowDidUpdateShadow: "mac:WindowDidUpdateShadow", - WindowDidUpdateTitle: "mac:WindowDidUpdateTitle", - WindowDidUpdateToolbar: "mac:WindowDidUpdateToolbar", - WindowDidUpdateVisibility: "mac:WindowDidUpdateVisibility", - WindowShouldClose: "mac:WindowShouldClose!", - WindowWillBecomeKey: "mac:WindowWillBecomeKey", - WindowWillBecomeMain: "mac:WindowWillBecomeMain", - WindowWillBeginSheet: "mac:WindowWillBeginSheet", - WindowWillChangeOrderingMode: "mac:WindowWillChangeOrderingMode", - WindowWillClose: "mac:WindowWillClose", - WindowWillDeminiaturize: "mac:WindowWillDeminiaturize", - WindowWillEnterFullScreen: "mac:WindowWillEnterFullScreen", - WindowWillEnterVersionBrowser: "mac:WindowWillEnterVersionBrowser", - WindowWillExitFullScreen: "mac:WindowWillExitFullScreen", - WindowWillExitVersionBrowser: "mac:WindowWillExitVersionBrowser", - WindowWillFocus: "mac:WindowWillFocus", - WindowWillMiniaturize: "mac:WindowWillMiniaturize", - WindowWillMove: "mac:WindowWillMove", - WindowWillOrderOffScreen: "mac:WindowWillOrderOffScreen", - WindowWillOrderOnScreen: "mac:WindowWillOrderOnScreen", - WindowWillResignMain: "mac:WindowWillResignMain", - WindowWillResize: "mac:WindowWillResize", - WindowWillUnfocus: "mac:WindowWillUnfocus", - WindowWillUpdate: "mac:WindowWillUpdate", - WindowWillUpdateAlpha: "mac:WindowWillUpdateAlpha", - WindowWillUpdateCollectionBehavior: "mac:WindowWillUpdateCollectionBehavior", - WindowWillUpdateCollectionProperties: "mac:WindowWillUpdateCollectionProperties", - WindowWillUpdateShadow: "mac:WindowWillUpdateShadow", - WindowWillUpdateTitle: "mac:WindowWillUpdateTitle", - WindowWillUpdateToolbar: "mac:WindowWillUpdateToolbar", - WindowWillUpdateVisibility: "mac:WindowWillUpdateVisibility", - WindowWillUseStandardFrame: "mac:WindowWillUseStandardFrame", - MenuWillOpen: "mac:MenuWillOpen", - MenuDidOpen: "mac:MenuDidOpen", - MenuDidClose: "mac:MenuDidClose", - MenuWillSendAction: "mac:MenuWillSendAction", - MenuDidSendAction: "mac:MenuDidSendAction", - MenuWillHighlightItem: "mac:MenuWillHighlightItem", - MenuDidHighlightItem: "mac:MenuDidHighlightItem", - MenuWillDisplayItem: "mac:MenuWillDisplayItem", - MenuDidDisplayItem: "mac:MenuDidDisplayItem", - MenuWillAddItem: "mac:MenuWillAddItem", - MenuDidAddItem: "mac:MenuDidAddItem", - MenuWillRemoveItem: "mac:MenuWillRemoveItem", - MenuDidRemoveItem: "mac:MenuDidRemoveItem", - MenuWillBeginTracking: "mac:MenuWillBeginTracking", - MenuDidBeginTracking: "mac:MenuDidBeginTracking", - MenuWillEndTracking: "mac:MenuWillEndTracking", - MenuDidEndTracking: "mac:MenuDidEndTracking", - MenuWillUpdate: "mac:MenuWillUpdate", - MenuDidUpdate: "mac:MenuDidUpdate", - MenuWillPopUp: "mac:MenuWillPopUp", - MenuDidPopUp: "mac:MenuDidPopUp", - MenuWillSendActionToItem: "mac:MenuWillSendActionToItem", - MenuDidSendActionToItem: "mac:MenuDidSendActionToItem", - WebViewDidStartProvisionalNavigation: "mac:WebViewDidStartProvisionalNavigation", - WebViewDidReceiveServerRedirectForProvisionalNavigation: "mac:WebViewDidReceiveServerRedirectForProvisionalNavigation", - WebViewDidFinishNavigation: "mac:WebViewDidFinishNavigation", - WebViewDidCommitNavigation: "mac:WebViewDidCommitNavigation", - WindowFileDraggingEntered: "mac:WindowFileDraggingEntered", - WindowFileDraggingPerformed: "mac:WindowFileDraggingPerformed", - WindowFileDraggingExited: "mac:WindowFileDraggingExited" - }, - Linux: { - SystemThemeChanged: "linux:SystemThemeChanged" - }, - Common: { - ApplicationStarted: "common:ApplicationStarted", - WindowMaximise: "common:WindowMaximise", - WindowUnMaximise: "common:WindowUnMaximise", - WindowFullscreen: "common:WindowFullscreen", - WindowUnFullscreen: "common:WindowUnFullscreen", - WindowRestore: "common:WindowRestore", - WindowMinimise: "common:WindowMinimise", - WindowUnMinimise: "common:WindowUnMinimise", - WindowClosing: "common:WindowClosing", - WindowZoom: "common:WindowZoom", - WindowZoomIn: "common:WindowZoomIn", - WindowZoomOut: "common:WindowZoomOut", - WindowZoomReset: "common:WindowZoomReset", - WindowFocus: "common:WindowFocus", - WindowLostFocus: "common:WindowLostFocus", - WindowShow: "common:WindowShow", - WindowHide: "common:WindowHide", - WindowDPIChanged: "common:WindowDPIChanged", - WindowFilesDropped: "common:WindowFilesDropped", - WindowRuntimeReady: "common:WindowRuntimeReady", - ThemeChanged: "common:ThemeChanged" - } - }; - - // desktop/@wailsio/runtime/src/events.js - var Types = EventTypes; - window._wails = window._wails || {}; - window._wails.dispatchWailsEvent = dispatchWailsEvent; - var call6 = newRuntimeCallerWithID(objectNames.Events, ""); - var EmitMethod = 0; - var eventListeners = /* @__PURE__ */ new Map(); - var Listener = class { - constructor(eventName, callback, maxCallbacks) { - this.eventName = eventName; - this.maxCallbacks = maxCallbacks || -1; - this.Callback = (data) => { - callback(data); - if (this.maxCallbacks === -1) - return false; - this.maxCallbacks -= 1; - return this.maxCallbacks === 0; - }; - } - }; - var WailsEvent = class { - constructor(name, data = null) { - this.name = name; - this.data = data; - } - }; - function setup() { - } - function dispatchWailsEvent(event) { - let listeners = eventListeners.get(event.name); - if (listeners) { - let toRemove = listeners.filter((listener) => { - let remove = listener.Callback(event); - if (remove) - return true; - }); - if (toRemove.length > 0) { - listeners = listeners.filter((l) => !toRemove.includes(l)); - if (listeners.length === 0) - eventListeners.delete(event.name); - else - eventListeners.set(event.name, listeners); - } - } - } - function OnMultiple(eventName, callback, maxCallbacks) { - let listeners = eventListeners.get(eventName) || []; - const thisListener = new Listener(eventName, callback, maxCallbacks); - listeners.push(thisListener); - eventListeners.set(eventName, listeners); - return () => listenerOff(thisListener); - } - function On(eventName, callback) { - return OnMultiple(eventName, callback, -1); - } - function Once(eventName, callback) { - return OnMultiple(eventName, callback, 1); - } - function listenerOff(listener) { - const eventName = listener.eventName; - let listeners = eventListeners.get(eventName).filter((l) => l !== listener); - if (listeners.length === 0) - eventListeners.delete(eventName); - else - eventListeners.set(eventName, listeners); - } - function Off(eventName, ...additionalEventNames) { - let eventsToRemove = [eventName, ...additionalEventNames]; - eventsToRemove.forEach((eventName2) => eventListeners.delete(eventName2)); - } - function OffAll() { - eventListeners.clear(); - } - function Emit(event) { - return call6(EmitMethod, event); - } - - // desktop/@wailsio/runtime/src/dialogs.js - var dialogs_exports = {}; - __export(dialogs_exports, { - Error: () => Error2, - Info: () => Info, - OpenFile: () => OpenFile, - Question: () => Question, - SaveFile: () => SaveFile, - Warning: () => Warning - }); - window._wails = window._wails || {}; - window._wails.dialogErrorCallback = dialogErrorCallback; - window._wails.dialogResultCallback = dialogResultCallback; - var DialogInfo = 0; - var DialogWarning = 1; - var DialogError = 2; - var DialogQuestion = 3; - var DialogOpenFile = 4; - var DialogSaveFile = 5; - var call7 = newRuntimeCallerWithID(objectNames.Dialog, ""); - var dialogResponses = /* @__PURE__ */ new Map(); - function generateID() { - let result; - do { - result = nanoid(); - } while (dialogResponses.has(result)); - return result; - } - function dialog(type, options = {}) { - const id = generateID(); - options["dialog-id"] = id; - return new Promise((resolve, reject) => { - dialogResponses.set(id, { resolve, reject }); - call7(type, options).catch((error) => { - reject(error); - dialogResponses.delete(id); - }); - }); - } - function dialogResultCallback(id, data, isJSON) { - let p = dialogResponses.get(id); - if (p) { - if (isJSON) { - p.resolve(JSON.parse(data)); - } else { - p.resolve(data); - } - dialogResponses.delete(id); - } - } - function dialogErrorCallback(id, message) { - let p = dialogResponses.get(id); - if (p) { - p.reject(message); - dialogResponses.delete(id); - } - } - var Info = (options) => dialog(DialogInfo, options); - var Warning = (options) => dialog(DialogWarning, options); - var Error2 = (options) => dialog(DialogError, options); - var Question = (options) => dialog(DialogQuestion, options); - var OpenFile = (options) => dialog(DialogOpenFile, options); - var SaveFile = (options) => dialog(DialogSaveFile, options); - - // desktop/@wailsio/runtime/src/wml.js - function sendEvent(eventName, data = null) { - let event = new WailsEvent(eventName, data); - Emit(event); - } - function addWMLEventListeners() { - const elements = document.querySelectorAll("[wml-event]"); - elements.forEach(function(element) { - const eventType = element.getAttribute("wml-event"); - const confirm = element.getAttribute("wml-confirm"); - const trigger = element.getAttribute("wml-trigger") || "click"; - let callback = function() { - if (confirm) { - Question({ Title: "Confirm", Message: confirm, Detached: false, Buttons: [{ Label: "Yes" }, { Label: "No", IsDefault: true }] }).then(function(result) { - if (result !== "No") { - sendEvent(eventType); - } - }); - return; - } - sendEvent(eventType); - }; - element.removeEventListener(trigger, callback); - element.addEventListener(trigger, callback); - }); - } - function callWindowMethod(windowName, method) { - let targetWindow = Get(windowName); - let methodMap = WindowMethods(targetWindow); - if (!methodMap.has(method)) { - console.log("Window method " + method + " not found"); - } - try { - methodMap.get(method)(); - } catch (e) { - console.error("Error calling window method '" + method + "': " + e); - } - } - function addWMLWindowListeners() { - const elements = document.querySelectorAll("[wml-window]"); - elements.forEach(function(element) { - const windowMethod = element.getAttribute("wml-window"); - const confirm = element.getAttribute("wml-confirm"); - const trigger = element.getAttribute("wml-trigger") || "click"; - const targetWindow = element.getAttribute("wml-target-window") || ""; - let callback = function() { - if (confirm) { - Question({ Title: "Confirm", Message: confirm, Buttons: [{ Label: "Yes" }, { Label: "No", IsDefault: true }] }).then(function(result) { - if (result !== "No") { - callWindowMethod(targetWindow, windowMethod); - } - }); - return; - } - callWindowMethod(targetWindow, windowMethod); - }; - element.removeEventListener(trigger, callback); - element.addEventListener(trigger, callback); - }); - } - function addWMLOpenBrowserListener() { - const elements = document.querySelectorAll("[wml-openurl]"); - elements.forEach(function(element) { - const url = element.getAttribute("wml-openurl"); - const confirm = element.getAttribute("wml-confirm"); - const trigger = element.getAttribute("wml-trigger") || "click"; - let callback = function() { - if (confirm) { - Question({ Title: "Confirm", Message: confirm, Buttons: [{ Label: "Yes" }, { Label: "No", IsDefault: true }] }).then(function(result) { - if (result !== "No") { - void OpenURL(url); - } - }); - return; - } - void OpenURL(url); - }; - element.removeEventListener(trigger, callback); - element.addEventListener(trigger, callback); - }); - } - function Reload() { - if (true) { - debugLog("Reloading WML"); - } - addWMLEventListeners(); - addWMLWindowListeners(); - addWMLOpenBrowserListener(); - } - function WindowMethods(targetWindow) { - let result = /* @__PURE__ */ new Map(); - for (let method in targetWindow) { - if (typeof targetWindow[method] === "function") { - result.set(method, targetWindow[method]); - } - } - return result; - } - - // desktop/@wailsio/runtime/src/calls.js - var calls_exports = {}; - __export(calls_exports, { - ByID: () => ByID, - ByName: () => ByName, - Call: () => Call, - Plugin: () => Plugin - }); - window._wails = window._wails || {}; - window._wails.callResultHandler = resultHandler; - window._wails.callErrorHandler = errorHandler; - var CallBinding = 0; - var call8 = newRuntimeCallerWithID(objectNames.Call, ""); - var callResponses = /* @__PURE__ */ new Map(); - function generateID2() { - let result; - do { - result = nanoid(); - } while (callResponses.has(result)); - return result; - } - function resultHandler(id, data, isJSON) { - const promiseHandler = getAndDeleteResponse(id); - if (promiseHandler) { - promiseHandler.resolve(isJSON ? JSON.parse(data) : data); - } - } - function errorHandler(id, message) { - const promiseHandler = getAndDeleteResponse(id); - if (promiseHandler) { - promiseHandler.reject(message); - } - } - function getAndDeleteResponse(id) { - const response = callResponses.get(id); - callResponses.delete(id); - return response; - } - function callBinding(type, options = {}) { - return new Promise((resolve, reject) => { - const id = generateID2(); - options["call-id"] = id; - callResponses.set(id, { resolve, reject }); - call8(type, options).catch((error) => { - reject(error); - callResponses.delete(id); - }); - }); - } - function Call(options) { - return callBinding(CallBinding, options); - } - function ByName(name, ...args) { - if (typeof name !== "string" || name.split(".").length !== 3) { - throw new Error("CallByName requires a string in the format 'package.struct.method'"); - } - let [packageName, structName, methodName] = name.split("."); - return callBinding(CallBinding, { - packageName, - structName, - methodName, - args - }); - } - function ByID(methodID, ...args) { - return callBinding(CallBinding, { - methodID, - args - }); - } - function Plugin(pluginName, methodName, ...args) { - return callBinding(CallBinding, { - packageName: "wails-plugins", - structName: pluginName, - methodName, - args - }); - } - - // desktop/compiled/main.js - window._wails = window._wails || {}; - window._wails.invoke = invoke; - window.wails = window.wails || {}; - window.wails.Application = application_exports; - window.wails.Browser = browser_exports; - window.wails.Call = calls_exports; - window.wails.Clipboard = clipboard_exports; - window.wails.Dialogs = dialogs_exports; - window.wails.Events = events_exports; - window.wails.Flags = flags_exports; - window.wails.Screens = screens_exports; - window.wails.System = system_exports; - window.wails.Window = window_exports; - window.wails.WML = wml_exports; - var isReady = false; - document.addEventListener("DOMContentLoaded", function() { - isReady = true; - window._wails.invoke("wails:runtime:ready"); - if (true) { - debugLog("Wails Runtime Loaded"); - } - }); - function whenReady(fn) { - if (isReady || document.readyState === "complete") { - fn(); - } else { - document.addEventListener("DOMContentLoaded", fn); - } - } - whenReady(() => { - Reload(); - }); -})(); -//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vcnVudGltZS9kZXNrdG9wL0B3YWlsc2lvL3J1bnRpbWUvc3JjL2xvZy5qcyIsICIuLi8uLi8uLi9ydW50aW1lL2Rlc2t0b3AvQHdhaWxzaW8vcnVudGltZS9zcmMvYXBwbGljYXRpb24uanMiLCAiLi4vLi4vLi4vcnVudGltZS9ub2RlX21vZHVsZXMvbmFub2lkL25vbi1zZWN1cmUvaW5kZXguanMiLCAiLi4vLi4vLi4vcnVudGltZS9kZXNrdG9wL0B3YWlsc2lvL3J1bnRpbWUvc3JjL3J1bnRpbWUuanMiLCAiLi4vLi4vLi4vcnVudGltZS9kZXNrdG9wL0B3YWlsc2lvL3J1bnRpbWUvc3JjL2Jyb3dzZXIuanMiLCAiLi4vLi4vLi4vcnVudGltZS9kZXNrdG9wL0B3YWlsc2lvL3J1bnRpbWUvc3JjL2NsaXBib2FyZC5qcyIsICIuLi8uLi8uLi9ydW50aW1lL2Rlc2t0b3AvQHdhaWxzaW8vcnVudGltZS9zcmMvZmxhZ3MuanMiLCAiLi4vLi4vLi4vcnVudGltZS9kZXNrdG9wL0B3YWlsc2lvL3J1bnRpbWUvc3JjL3NjcmVlbnMuanMiLCAiLi4vLi4vLi4vcnVudGltZS9kZXNrdG9wL0B3YWlsc2lvL3J1bnRpbWUvc3JjL3N5c3RlbS5qcyIsICIuLi8uLi8uLi9ydW50aW1lL2Rlc2t0b3AvQHdhaWxzaW8vcnVudGltZS9zcmMvd2luZG93LmpzIiwgIi4uLy4uLy4uL3J1bnRpbWUvZGVza3RvcC9Ad2FpbHNpby9ydW50aW1lL3NyYy93bWwuanMiLCAiLi4vLi4vLi4vcnVudGltZS9kZXNrdG9wL0B3YWlsc2lvL3J1bnRpbWUvc3JjL2V2ZW50cy5qcyIsICIuLi8uLi8uLi9ydW50aW1lL2Rlc2t0b3AvQ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kO1xyXG4gICAgcmV0dXJuIG5ldyBQcm9taXNlKChyZXNvbHZlLCByZWplY3QpID0+IHtcclxuICAgICAgICBmZXRjaCh1cmwsIGZldGNoT3B0aW9ucylcclxuICAgICAgICAgICAgLnRoZW4ocmVzcG9uc2UgPT4ge1xyXG4gICAgICAgICAgICAgICAgaWYgKHJlc3BvbnNlLm9rKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgLy8gY2hlY2sgY29udGVudCB0eXBlXHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKHJlc3BvbnNlLmhlYWRlcnMuZ2V0KFwiQ29udGVudC1UeXBlXCIpICYmIHJlc3BvbnNlLmhlYWRlcnMuZ2V0KFwiQ29udGVudC1UeXBlXCIpLmluZGV4T2YoXCJhcHBsaWNhdGlvbi9qc29uXCIpICE9PSAtMSkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmVzcG9uc2UuanNvbigpO1xyXG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiByZXNwb25zZS50ZXh0KCk7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgcmVqZWN0KEVycm9yKHJlc3BvbnNlLnN0YXR1c1RleHQpKTtcclxuICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgLnRoZW4oZGF0YSA9PiByZXNvbHZlKGRhdGEpKVxyXG4gICAgICAgICAgICAuY2F0Y2goZXJyb3IgPT4gcmVqZWN0KGVycm9yKSk7XHJcbiAgICB9KTtcclxufVxyXG4iLCAiLypcclxuIF9cdCAgIF9fXHQgIF8gX19cclxufCB8XHQgLyAvX19fIF8oXykgL19fX19cclxufCB8IC98IC8gLyBfXyBgLyAvIC8gX19fL1xyXG58IHwvIHwvIC8gL18vIC8gLyAoX18gIClcclxufF9fL3xfXy9cXF9fLF8vXy9fL19fX18vXHJcblRoZSBlbG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tcclxuICAgIGNvbnN0IGVsZW1lbnRzID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgnW3dtbC1ldmVudF0nKTtcclxuICAgIGVsZW1lbnRzLmZvckVhY2goZnVuY3Rpb24gKGVsZW1lbnQpIHtcclxuICAgICAgICBjb25zdCBldmVudFR5cGUgPSBlbGVtZW50LmdldEF0dHJpYnV0ZSgnd21sLWV2ZW50Jyk7XHJcbiAgICAgICAgY29uc3QgY29uZmlybSA9IGVsZW1lbnQuZ2V0QXR0cmlidXRlKCd3bWwtY29uZmlybScpO1xyXG4gICAgICAgIGNvbnN0IHRyaWdnZXIgPSBlbGVtZW50LmdldEF0dHJpYnV0ZSgnd21sLXRyaWdnZXInKSB8fCBcImNsaWNrXCI7XHJcblxyXG4gICAgICAgIGxldCBjYWxsYmFjayA9IGZ1bmN0aW9uICgpIHtcclxuICAgICAgICAgICAgaWYgKGNvbmZpcm0pIHtcclxuICAgICAgICAgICAgICAgIFF1ZXN0aW9uKHtUaXRsZTogXCJDb25maXJtXCIsIE1lc3NhZ2U6Y29uZmlybSwgRGV0YWNoZWQ6IGZhbHNlLCBCdXR0b25zOlt7TGFiZWw6XCJZZXNcIn0se0xhYmVsOlwiTm9cIiwgSXNEZWZhdWx0OnRydWV9XX0pLnRoZW4oZnVuY3Rpb24gKHJlc3VsdCkge1xyXG4gICAgICAgICAgICAgICAgICAgIGlmIChyZXN1bHQgIT09IFwiTm9cIikge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBzZW5kRXZlbnQoZXZlbnRUeXBlKTtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgICAgIHJldHVybjtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBzZW5kRXZlbnQoZXZlbnRUeXBlKTtcclxuICAgICAgICB9O1xyXG5cclxuICAgICAgICAvLyBSZW1vdmUgZXhpc3RpbmcgbGlzdGVuZXJzXHJcbiAgICAg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O0FBQy9DLFNBQUc7QUFBQSxJQUNQLE9BQU87QUFDSCxlQUFTLGlCQUFpQixvQkFBb0IsRUFBRTtBQUFBLElBQ3BEO0FBQUEsRUFDSjtBQUVBLFlBQVUsTUFBTTtBQUNaLElBQUksT0FBTztBQUFBLEVBQ2YsQ0FBQzsiLAogICJuYW1lcyI6IFsic2l6ZSIsICJjYWxsIiwgImNhbGwiLCAiY2FsbCIsICJjYWxsIiwgIkhpZGUiLCAiU2hvdyIsICJjYWxsIiwgIndpZHRoIiwgImhlaWdodCIsICJIaWRlIiwgIlNob3ciLCAiY2FsbCIsICJldmVudE5hbWUiLCAiRXJyb3IiLCAiY2FsbCIsICJFcnJvciIsICJjYWxsIiwgImdlbmVyYXRlSUQiXQp9Cg== diff --git a/v3/examples/wml/assets/runtime.debug.js b/v3/examples/wml/assets/runtime.debug.js deleted file mode 100644 index 101f237755c..00000000000 --- a/v3/examples/wml/assets/runtime.debug.js +++ /dev/null @@ -1,963 +0,0 @@ -(() => { - var __defProp = Object.defineProperty; - var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); - }; - - // desktop/@wailsio/runtime/src/log.js - function debugLog(message) { - console.log( - "%c wails3 %c " + message + " ", - "background: #aa0000; color: #fff; border-radius: 3px 0px 0px 3px; padding: 1px; font-size: 0.7rem", - "background: #009900; color: #fff; border-radius: 0px 3px 3px 0px; padding: 1px; font-size: 0.7rem" - ); - } - - // desktop/@wailsio/runtime/src/application.js - var application_exports = {}; - __export(application_exports, { - Hide: () => Hide, - Quit: () => Quit, - Show: () => Show - }); - - // node_modules/nanoid/non-secure/index.js - var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"; - var nanoid = (size2 = 21) => { - let id = ""; - let i = size2; - while (i--) { - id += urlAlphabet[Math.random() * 64 | 0]; - } - return id; - }; - - // desktop/@wailsio/runtime/src/runtime.js - var runtimeURL = window.location.origin + "/wails/runtime"; - var objectNames = { - Call: 0, - Clipboard: 1, - Application: 2, - Events: 3, - ContextMenu: 4, - Dialog: 5, - Window: 6, - Screens: 7, - System: 8, - Browser: 9 - }; - var clientId = nanoid(); - function newRuntimeCallerWithID(object, windowName) { - return function(method, args = null) { - return runtimeCallWithID(object, method, windowName, args); - }; - } - function runtimeCallWithID(objectID, method, windowName, args) { - let url = new URL(runtimeURL); - url.searchParams.append("object", objectID); - url.searchParams.append("method", method); - let fetchOptions = { - headers: {} - }; - if (windowName) { - fetchOptions.headers["x-wails-window-name"] = windowName; - } - if (args) { - url.searchParams.append("args", JSON.stringify(args)); - } - fetchOptions.headers["x-wails-client-id"] = clientId; - return new Promise((resolve, reject) => { - fetch(url, fetchOptions).then((response) => { - if (response.ok) { - if (response.headers.get("Content-Type") && response.headers.get("Content-Type").indexOf("application/json") !== -1) { - return response.json(); - } else { - return response.text(); - } - } - reject(Error(response.statusText)); - }).then((data) => resolve(data)).catch((error) => reject(error)); - }); - } - - // desktop/@wailsio/runtime/src/application.js - var call = newRuntimeCallerWithID(objectNames.Application, ""); - var HideMethod = 0; - var ShowMethod = 1; - var QuitMethod = 2; - function Hide() { - return call(HideMethod); - } - function Show() { - return call(ShowMethod); - } - function Quit() { - return call(QuitMethod); - } - - // desktop/@wailsio/runtime/src/browser.js - var browser_exports = {}; - __export(browser_exports, { - OpenURL: () => OpenURL - }); - var call2 = newRuntimeCallerWithID(objectNames.Browser, ""); - var BrowserOpenURL = 0; - function OpenURL(url) { - return call2(BrowserOpenURL, { url }); - } - - // desktop/@wailsio/runtime/src/clipboard.js - var clipboard_exports = {}; - __export(clipboard_exports, { - SetText: () => SetText, - Text: () => Text - }); - var call3 = newRuntimeCallerWithID(objectNames.Clipboard, ""); - var ClipboardSetText = 0; - var ClipboardText = 1; - function SetText(text) { - return call3(ClipboardSetText, { text }); - } - function Text() { - return call3(ClipboardText); - } - - // desktop/@wailsio/runtime/src/flags.js - var flags_exports = {}; - __export(flags_exports, { - GetFlag: () => GetFlag - }); - function GetFlag(keyString) { - try { - return window._wails.flags[keyString]; - } catch (e) { - throw new Error("Unable to retrieve flag '" + keyString + "': " + e); - } - } - - // desktop/@wailsio/runtime/src/screens.js - var screens_exports = {}; - __export(screens_exports, { - GetAll: () => GetAll, - GetCurrent: () => GetCurrent, - GetPrimary: () => GetPrimary - }); - var call4 = newRuntimeCallerWithID(objectNames.Screens, ""); - var getAll = 0; - var getPrimary = 1; - var getCurrent = 2; - function GetAll() { - return call4(getAll); - } - function GetPrimary() { - return call4(getPrimary); - } - function GetCurrent() { - return call4(getCurrent); - } - - // desktop/@wailsio/runtime/src/system.js - var system_exports = {}; - __export(system_exports, { - Capabilities: () => Capabilities, - Environment: () => Environment, - IsAMD64: () => IsAMD64, - IsARM: () => IsARM, - IsARM64: () => IsARM64, - IsDarkMode: () => IsDarkMode, - IsDebug: () => IsDebug, - IsLinux: () => IsLinux, - IsMac: () => IsMac, - IsWindows: () => IsWindows, - invoke: () => invoke - }); - var call5 = newRuntimeCallerWithID(objectNames.System, ""); - var systemIsDarkMode = 0; - var environment = 1; - function invoke(msg) { - if (window.chrome) { - return window.chrome.webview.postMessage(msg); - } - return window.webkit.messageHandlers.external.postMessage; - } - function IsDarkMode() { - return call5(systemIsDarkMode); - } - function Capabilities() { - let response = fetch("/wails/capabilities"); - return response.json(); - } - function Environment() { - return call5(environment); - } - function IsWindows() { - return window._wails.environment.OS === "windows"; - } - function IsLinux() { - return window._wails.environment.OS === "linux"; - } - function IsMac() { - return window._wails.environment.OS === "darwin"; - } - function IsAMD64() { - return window._wails.environment.Arch === "amd64"; - } - function IsARM() { - return window._wails.environment.Arch === "arm"; - } - function IsARM64() { - return window._wails.environment.Arch === "arm64"; - } - function IsDebug() { - return window._wails.environment.Debug === true; - } - - // desktop/@wailsio/runtime/src/window.js - var window_exports = {}; - __export(window_exports, { - Center: () => Center, - Close: () => Close, - Fullscreen: () => Fullscreen, - Get: () => Get, - GetZoomLevel: () => GetZoomLevel, - Height: () => Height, - Hide: () => Hide2, - Maximise: () => Maximise, - Minimise: () => Minimise, - RelativePosition: () => RelativePosition, - Restore: () => Restore, - Screen: () => Screen, - SetAlwaysOnTop: () => SetAlwaysOnTop, - SetBackgroundColour: () => SetBackgroundColour, - SetMaxSize: () => SetMaxSize, - SetMinSize: () => SetMinSize, - SetRelativePosition: () => SetRelativePosition, - SetResizable: () => SetResizable, - SetSize: () => SetSize, - SetTitle: () => SetTitle, - SetZoomLevel: () => SetZoomLevel, - Show: () => Show2, - Size: () => Size, - ToggleMaximise: () => ToggleMaximise, - UnMaximise: () => UnMaximise, - UnMinimise: () => UnMinimise, - Width: () => Width, - ZoomIn: () => ZoomIn, - ZoomOut: () => ZoomOut, - ZoomReset: () => ZoomReset - }); - var center = 0; - var setTitle = 1; - var fullscreen = 2; - var unFullscreen = 3; - var setSize = 4; - var size = 5; - var setMaxSize = 6; - var setMinSize = 7; - var setAlwaysOnTop = 8; - var setRelativePosition = 9; - var relativePosition = 10; - var screen = 11; - var hide = 12; - var maximise = 13; - var unMaximise = 14; - var toggleMaximise = 15; - var minimise = 16; - var unMinimise = 17; - var restore = 18; - var show = 19; - var close = 20; - var setBackgroundColour = 21; - var setResizable = 22; - var width = 23; - var height = 24; - var zoomIn = 25; - var zoomOut = 26; - var zoomReset = 27; - var getZoomLevel = 28; - var setZoomLevel = 29; - var thisWindow = Get(""); - function createWindow(call9) { - return { - Get: (windowName) => createWindow(newRuntimeCallerWithID(objectNames.Window, windowName)), - Center: () => call9(center), - SetTitle: (title) => call9(setTitle, { title }), - Fullscreen: () => call9(fullscreen), - UnFullscreen: () => call9(unFullscreen), - SetSize: (width2, height2) => call9(setSize, { width: width2, height: height2 }), - Size: () => call9(size), - SetMaxSize: (width2, height2) => call9(setMaxSize, { width: width2, height: height2 }), - SetMinSize: (width2, height2) => call9(setMinSize, { width: width2, height: height2 }), - SetAlwaysOnTop: (onTop) => call9(setAlwaysOnTop, { alwaysOnTop: onTop }), - SetRelativePosition: (x, y) => call9(setRelativePosition, { x, y }), - RelativePosition: () => call9(relativePosition), - Screen: () => call9(screen), - Hide: () => call9(hide), - Maximise: () => call9(maximise), - UnMaximise: () => call9(unMaximise), - ToggleMaximise: () => call9(toggleMaximise), - Minimise: () => call9(minimise), - UnMinimise: () => call9(unMinimise), - Restore: () => call9(restore), - Show: () => call9(show), - Close: () => call9(close), - SetBackgroundColour: (r, g, b, a) => call9(setBackgroundColour, { r, g, b, a }), - SetResizable: (resizable) => call9(setResizable, { resizable }), - Width: () => call9(width), - Height: () => call9(height), - ZoomIn: () => call9(zoomIn), - ZoomOut: () => call9(zoomOut), - ZoomReset: () => call9(zoomReset), - GetZoomLevel: () => call9(getZoomLevel), - SetZoomLevel: (zoomLevel) => call9(setZoomLevel, { zoomLevel }) - }; - } - function Get(windowName) { - return createWindow(newRuntimeCallerWithID(objectNames.Window, windowName)); - } - function Center() { - thisWindow.Center(); - } - function SetTitle(title) { - thisWindow.SetTitle(title); - } - function Fullscreen() { - thisWindow.Fullscreen(); - } - function SetSize(width2, height2) { - thisWindow.SetSize(width2, height2); - } - function Size() { - return thisWindow.Size(); - } - function SetMaxSize(width2, height2) { - thisWindow.SetMaxSize(width2, height2); - } - function SetMinSize(width2, height2) { - thisWindow.SetMinSize(width2, height2); - } - function SetAlwaysOnTop(onTop) { - thisWindow.SetAlwaysOnTop(onTop); - } - function SetRelativePosition(x, y) { - thisWindow.SetRelativePosition(x, y); - } - function RelativePosition() { - return thisWindow.RelativePosition(); - } - function Screen() { - return thisWindow.Screen(); - } - function Hide2() { - thisWindow.Hide(); - } - function Maximise() { - thisWindow.Maximise(); - } - function UnMaximise() { - thisWindow.UnMaximise(); - } - function ToggleMaximise() { - thisWindow.ToggleMaximise(); - } - function Minimise() { - thisWindow.Minimise(); - } - function UnMinimise() { - thisWindow.UnMinimise(); - } - function Restore() { - thisWindow.Restore(); - } - function Show2() { - thisWindow.Show(); - } - function Close() { - thisWindow.Close(); - } - function SetBackgroundColour(r, g, b, a) { - thisWindow.SetBackgroundColour(r, g, b, a); - } - function SetResizable(resizable) { - thisWindow.SetResizable(resizable); - } - function Width() { - return thisWindow.Width(); - } - function Height() { - return thisWindow.Height(); - } - function ZoomIn() { - thisWindow.ZoomIn(); - } - function ZoomOut() { - thisWindow.ZoomOut(); - } - function ZoomReset() { - thisWindow.ZoomReset(); - } - function GetZoomLevel() { - return thisWindow.GetZoomLevel(); - } - function SetZoomLevel(zoomLevel) { - thisWindow.SetZoomLevel(zoomLevel); - } - - // desktop/@wailsio/runtime/src/wml.js - var wml_exports = {}; - __export(wml_exports, { - Reload: () => Reload - }); - - // desktop/@wailsio/runtime/src/events.js - var events_exports = {}; - __export(events_exports, { - Emit: () => Emit, - Off: () => Off, - OffAll: () => OffAll, - On: () => On, - OnMultiple: () => OnMultiple, - Once: () => Once, - Types: () => Types, - WailsEvent: () => WailsEvent, - setup: () => setup - }); - - // desktop/@wailsio/runtime/src/event_types.js - var EventTypes = { - Windows: { - SystemThemeChanged: "windows:SystemThemeChanged", - APMPowerStatusChange: "windows:APMPowerStatusChange", - APMSuspend: "windows:APMSuspend", - APMResumeAutomatic: "windows:APMResumeAutomatic", - APMResumeSuspend: "windows:APMResumeSuspend", - APMPowerSettingChange: "windows:APMPowerSettingChange", - ApplicationStarted: "windows:ApplicationStarted", - WebViewNavigationCompleted: "windows:WebViewNavigationCompleted", - WindowInactive: "windows:WindowInactive", - WindowActive: "windows:WindowActive", - WindowClickActive: "windows:WindowClickActive", - WindowMaximise: "windows:WindowMaximise", - WindowUnMaximise: "windows:WindowUnMaximise", - WindowFullscreen: "windows:WindowFullscreen", - WindowUnFullscreen: "windows:WindowUnFullscreen", - WindowRestore: "windows:WindowRestore", - WindowMinimise: "windows:WindowMinimise", - WindowUnMinimise: "windows:WindowUnMinimise", - WindowClose: "windows:WindowClose", - WindowSetFocus: "windows:WindowSetFocus", - WindowKillFocus: "windows:WindowKillFocus", - WindowDragDrop: "windows:WindowDragDrop", - WindowDragEnter: "windows:WindowDragEnter", - WindowDragLeave: "windows:WindowDragLeave", - WindowDragOver: "windows:WindowDragOver" - }, - Mac: { - ApplicationDidBecomeActive: "mac:ApplicationDidBecomeActive", - ApplicationDidChangeBackingProperties: "mac:ApplicationDidChangeBackingProperties", - ApplicationDidChangeEffectiveAppearance: "mac:ApplicationDidChangeEffectiveAppearance", - ApplicationDidChangeIcon: "mac:ApplicationDidChangeIcon", - ApplicationDidChangeOcclusionState: "mac:ApplicationDidChangeOcclusionState", - ApplicationDidChangeScreenParameters: "mac:ApplicationDidChangeScreenParameters", - ApplicationDidChangeStatusBarFrame: "mac:ApplicationDidChangeStatusBarFrame", - ApplicationDidChangeStatusBarOrientation: "mac:ApplicationDidChangeStatusBarOrientation", - ApplicationDidFinishLaunching: "mac:ApplicationDidFinishLaunching", - ApplicationDidHide: "mac:ApplicationDidHide", - ApplicationDidResignActiveNotification: "mac:ApplicationDidResignActiveNotification", - ApplicationDidUnhide: "mac:ApplicationDidUnhide", - ApplicationDidUpdate: "mac:ApplicationDidUpdate", - ApplicationWillBecomeActive: "mac:ApplicationWillBecomeActive", - ApplicationWillFinishLaunching: "mac:ApplicationWillFinishLaunching", - ApplicationWillHide: "mac:ApplicationWillHide", - ApplicationWillResignActive: "mac:ApplicationWillResignActive", - ApplicationWillTerminate: "mac:ApplicationWillTerminate", - ApplicationWillUnhide: "mac:ApplicationWillUnhide", - ApplicationWillUpdate: "mac:ApplicationWillUpdate", - ApplicationDidChangeTheme: "mac:ApplicationDidChangeTheme!", - ApplicationShouldHandleReopen: "mac:ApplicationShouldHandleReopen!", - WindowDidBecomeKey: "mac:WindowDidBecomeKey", - WindowDidBecomeMain: "mac:WindowDidBecomeMain", - WindowDidBeginSheet: "mac:WindowDidBeginSheet", - WindowDidChangeAlpha: "mac:WindowDidChangeAlpha", - WindowDidChangeBackingLocation: "mac:WindowDidChangeBackingLocation", - WindowDidChangeBackingProperties: "mac:WindowDidChangeBackingProperties", - WindowDidChangeCollectionBehavior: "mac:WindowDidChangeCollectionBehavior", - WindowDidChangeEffectiveAppearance: "mac:WindowDidChangeEffectiveAppearance", - WindowDidChangeOcclusionState: "mac:WindowDidChangeOcclusionState", - WindowDidChangeOrderingMode: "mac:WindowDidChangeOrderingMode", - WindowDidChangeScreen: "mac:WindowDidChangeScreen", - WindowDidChangeScreenParameters: "mac:WindowDidChangeScreenParameters", - WindowDidChangeScreenProfile: "mac:WindowDidChangeScreenProfile", - WindowDidChangeScreenSpace: "mac:WindowDidChangeScreenSpace", - WindowDidChangeScreenSpaceProperties: "mac:WindowDidChangeScreenSpaceProperties", - WindowDidChangeSharingType: "mac:WindowDidChangeSharingType", - WindowDidChangeSpace: "mac:WindowDidChangeSpace", - WindowDidChangeSpaceOrderingMode: "mac:WindowDidChangeSpaceOrderingMode", - WindowDidChangeTitle: "mac:WindowDidChangeTitle", - WindowDidChangeToolbar: "mac:WindowDidChangeToolbar", - WindowDidChangeVisibility: "mac:WindowDidChangeVisibility", - WindowDidDeminiaturize: "mac:WindowDidDeminiaturize", - WindowDidEndSheet: "mac:WindowDidEndSheet", - WindowDidEnterFullScreen: "mac:WindowDidEnterFullScreen", - WindowDidEnterVersionBrowser: "mac:WindowDidEnterVersionBrowser", - WindowDidExitFullScreen: "mac:WindowDidExitFullScreen", - WindowDidExitVersionBrowser: "mac:WindowDidExitVersionBrowser", - WindowDidExpose: "mac:WindowDidExpose", - WindowDidFocus: "mac:WindowDidFocus", - WindowDidMiniaturize: "mac:WindowDidMiniaturize", - WindowDidMove: "mac:WindowDidMove", - WindowDidOrderOffScreen: "mac:WindowDidOrderOffScreen", - WindowDidOrderOnScreen: "mac:WindowDidOrderOnScreen", - WindowDidResignKey: "mac:WindowDidResignKey", - WindowDidResignMain: "mac:WindowDidResignMain", - WindowDidResize: "mac:WindowDidResize", - WindowDidUpdate: "mac:WindowDidUpdate", - WindowDidUpdateAlpha: "mac:WindowDidUpdateAlpha", - WindowDidUpdateCollectionBehavior: "mac:WindowDidUpdateCollectionBehavior", - WindowDidUpdateCollectionProperties: "mac:WindowDidUpdateCollectionProperties", - WindowDidUpdateShadow: "mac:WindowDidUpdateShadow", - WindowDidUpdateTitle: "mac:WindowDidUpdateTitle", - WindowDidUpdateToolbar: "mac:WindowDidUpdateToolbar", - WindowDidUpdateVisibility: "mac:WindowDidUpdateVisibility", - WindowShouldClose: "mac:WindowShouldClose!", - WindowWillBecomeKey: "mac:WindowWillBecomeKey", - WindowWillBecomeMain: "mac:WindowWillBecomeMain", - WindowWillBeginSheet: "mac:WindowWillBeginSheet", - WindowWillChangeOrderingMode: "mac:WindowWillChangeOrderingMode", - WindowWillClose: "mac:WindowWillClose", - WindowWillDeminiaturize: "mac:WindowWillDeminiaturize", - WindowWillEnterFullScreen: "mac:WindowWillEnterFullScreen", - WindowWillEnterVersionBrowser: "mac:WindowWillEnterVersionBrowser", - WindowWillExitFullScreen: "mac:WindowWillExitFullScreen", - WindowWillExitVersionBrowser: "mac:WindowWillExitVersionBrowser", - WindowWillFocus: "mac:WindowWillFocus", - WindowWillMiniaturize: "mac:WindowWillMiniaturize", - WindowWillMove: "mac:WindowWillMove", - WindowWillOrderOffScreen: "mac:WindowWillOrderOffScreen", - WindowWillOrderOnScreen: "mac:WindowWillOrderOnScreen", - WindowWillResignMain: "mac:WindowWillResignMain", - WindowWillResize: "mac:WindowWillResize", - WindowWillUnfocus: "mac:WindowWillUnfocus", - WindowWillUpdate: "mac:WindowWillUpdate", - WindowWillUpdateAlpha: "mac:WindowWillUpdateAlpha", - WindowWillUpdateCollectionBehavior: "mac:WindowWillUpdateCollectionBehavior", - WindowWillUpdateCollectionProperties: "mac:WindowWillUpdateCollectionProperties", - WindowWillUpdateShadow: "mac:WindowWillUpdateShadow", - WindowWillUpdateTitle: "mac:WindowWillUpdateTitle", - WindowWillUpdateToolbar: "mac:WindowWillUpdateToolbar", - WindowWillUpdateVisibility: "mac:WindowWillUpdateVisibility", - WindowWillUseStandardFrame: "mac:WindowWillUseStandardFrame", - MenuWillOpen: "mac:MenuWillOpen", - MenuDidOpen: "mac:MenuDidOpen", - MenuDidClose: "mac:MenuDidClose", - MenuWillSendAction: "mac:MenuWillSendAction", - MenuDidSendAction: "mac:MenuDidSendAction", - MenuWillHighlightItem: "mac:MenuWillHighlightItem", - MenuDidHighlightItem: "mac:MenuDidHighlightItem", - MenuWillDisplayItem: "mac:MenuWillDisplayItem", - MenuDidDisplayItem: "mac:MenuDidDisplayItem", - MenuWillAddItem: "mac:MenuWillAddItem", - MenuDidAddItem: "mac:MenuDidAddItem", - MenuWillRemoveItem: "mac:MenuWillRemoveItem", - MenuDidRemoveItem: "mac:MenuDidRemoveItem", - MenuWillBeginTracking: "mac:MenuWillBeginTracking", - MenuDidBeginTracking: "mac:MenuDidBeginTracking", - MenuWillEndTracking: "mac:MenuWillEndTracking", - MenuDidEndTracking: "mac:MenuDidEndTracking", - MenuWillUpdate: "mac:MenuWillUpdate", - MenuDidUpdate: "mac:MenuDidUpdate", - MenuWillPopUp: "mac:MenuWillPopUp", - MenuDidPopUp: "mac:MenuDidPopUp", - MenuWillSendActionToItem: "mac:MenuWillSendActionToItem", - MenuDidSendActionToItem: "mac:MenuDidSendActionToItem", - WebViewDidStartProvisionalNavigation: "mac:WebViewDidStartProvisionalNavigation", - WebViewDidReceiveServerRedirectForProvisionalNavigation: "mac:WebViewDidReceiveServerRedirectForProvisionalNavigation", - WebViewDidFinishNavigation: "mac:WebViewDidFinishNavigation", - WebViewDidCommitNavigation: "mac:WebViewDidCommitNavigation", - WindowFileDraggingEntered: "mac:WindowFileDraggingEntered", - WindowFileDraggingPerformed: "mac:WindowFileDraggingPerformed", - WindowFileDraggingExited: "mac:WindowFileDraggingExited" - }, - Linux: { - SystemThemeChanged: "linux:SystemThemeChanged" - }, - Common: { - ApplicationStarted: "common:ApplicationStarted", - WindowMaximise: "common:WindowMaximise", - WindowUnMaximise: "common:WindowUnMaximise", - WindowFullscreen: "common:WindowFullscreen", - WindowUnFullscreen: "common:WindowUnFullscreen", - WindowRestore: "common:WindowRestore", - WindowMinimise: "common:WindowMinimise", - WindowUnMinimise: "common:WindowUnMinimise", - WindowClosing: "common:WindowClosing", - WindowZoom: "common:WindowZoom", - WindowZoomIn: "common:WindowZoomIn", - WindowZoomOut: "common:WindowZoomOut", - WindowZoomReset: "common:WindowZoomReset", - WindowFocus: "common:WindowFocus", - WindowLostFocus: "common:WindowLostFocus", - WindowShow: "common:WindowShow", - WindowHide: "common:WindowHide", - WindowDPIChanged: "common:WindowDPIChanged", - WindowFilesDropped: "common:WindowFilesDropped", - WindowRuntimeReady: "common:WindowRuntimeReady", - ThemeChanged: "common:ThemeChanged" - } - }; - - // desktop/@wailsio/runtime/src/events.js - var Types = EventTypes; - window._wails = window._wails || {}; - window._wails.dispatchWailsEvent = dispatchWailsEvent; - var call6 = newRuntimeCallerWithID(objectNames.Events, ""); - var EmitMethod = 0; - var eventListeners = /* @__PURE__ */ new Map(); - var Listener = class { - constructor(eventName, callback, maxCallbacks) { - this.eventName = eventName; - this.maxCallbacks = maxCallbacks || -1; - this.Callback = (data) => { - callback(data); - if (this.maxCallbacks === -1) - return false; - this.maxCallbacks -= 1; - return this.maxCallbacks === 0; - }; - } - }; - var WailsEvent = class { - constructor(name, data = null) { - this.name = name; - this.data = data; - } - }; - function setup() { - } - function dispatchWailsEvent(event) { - let listeners = eventListeners.get(event.name); - if (listeners) { - let toRemove = listeners.filter((listener) => { - let remove = listener.Callback(event); - if (remove) - return true; - }); - if (toRemove.length > 0) { - listeners = listeners.filter((l) => !toRemove.includes(l)); - if (listeners.length === 0) - eventListeners.delete(event.name); - else - eventListeners.set(event.name, listeners); - } - } - } - function OnMultiple(eventName, callback, maxCallbacks) { - let listeners = eventListeners.get(eventName) || []; - const thisListener = new Listener(eventName, callback, maxCallbacks); - listeners.push(thisListener); - eventListeners.set(eventName, listeners); - return () => listenerOff(thisListener); - } - function On(eventName, callback) { - return OnMultiple(eventName, callback, -1); - } - function Once(eventName, callback) { - return OnMultiple(eventName, callback, 1); - } - function listenerOff(listener) { - const eventName = listener.eventName; - let listeners = eventListeners.get(eventName).filter((l) => l !== listener); - if (listeners.length === 0) - eventListeners.delete(eventName); - else - eventListeners.set(eventName, listeners); - } - function Off(eventName, ...additionalEventNames) { - let eventsToRemove = [eventName, ...additionalEventNames]; - eventsToRemove.forEach((eventName2) => eventListeners.delete(eventName2)); - } - function OffAll() { - eventListeners.clear(); - } - function Emit(event) { - return call6(EmitMethod, event); - } - - // desktop/@wailsio/runtime/src/dialogs.js - var dialogs_exports = {}; - __export(dialogs_exports, { - Error: () => Error2, - Info: () => Info, - OpenFile: () => OpenFile, - Question: () => Question, - SaveFile: () => SaveFile, - Warning: () => Warning - }); - window._wails = window._wails || {}; - window._wails.dialogErrorCallback = dialogErrorCallback; - window._wails.dialogResultCallback = dialogResultCallback; - var DialogInfo = 0; - var DialogWarning = 1; - var DialogError = 2; - var DialogQuestion = 3; - var DialogOpenFile = 4; - var DialogSaveFile = 5; - var call7 = newRuntimeCallerWithID(objectNames.Dialog, ""); - var dialogResponses = /* @__PURE__ */ new Map(); - function generateID() { - let result; - do { - result = nanoid(); - } while (dialogResponses.has(result)); - return result; - } - function dialog(type, options = {}) { - const id = generateID(); - options["dialog-id"] = id; - return new Promise((resolve, reject) => { - dialogResponses.set(id, { resolve, reject }); - call7(type, options).catch((error) => { - reject(error); - dialogResponses.delete(id); - }); - }); - } - function dialogResultCallback(id, data, isJSON) { - let p = dialogResponses.get(id); - if (p) { - if (isJSON) { - p.resolve(JSON.parse(data)); - } else { - p.resolve(data); - } - dialogResponses.delete(id); - } - } - function dialogErrorCallback(id, message) { - let p = dialogResponses.get(id); - if (p) { - p.reject(message); - dialogResponses.delete(id); - } - } - var Info = (options) => dialog(DialogInfo, options); - var Warning = (options) => dialog(DialogWarning, options); - var Error2 = (options) => dialog(DialogError, options); - var Question = (options) => dialog(DialogQuestion, options); - var OpenFile = (options) => dialog(DialogOpenFile, options); - var SaveFile = (options) => dialog(DialogSaveFile, options); - - // desktop/@wailsio/runtime/src/wml.js - function sendEvent(eventName, data = null) { - let event = new WailsEvent(eventName, data); - Emit(event); - } - function addWMLEventListeners() { - const elements = document.querySelectorAll("[wml-event]"); - elements.forEach(function(element) { - const eventType = element.getAttribute("wml-event"); - const confirm = element.getAttribute("wml-confirm"); - const trigger = element.getAttribute("wml-trigger") || "click"; - let callback = function() { - if (confirm) { - Question({ Title: "Confirm", Message: confirm, Detached: false, Buttons: [{ Label: "Yes" }, { Label: "No", IsDefault: true }] }).then(function(result) { - if (result !== "No") { - sendEvent(eventType); - } - }); - return; - } - sendEvent(eventType); - }; - element.removeEventListener(trigger, callback); - element.addEventListener(trigger, callback); - }); - } - function callWindowMethod(windowName, method) { - let targetWindow = Get(windowName); - let methodMap = WindowMethods(targetWindow); - if (!methodMap.has(method)) { - console.log("Window method " + method + " not found"); - } - try { - methodMap.get(method)(); - } catch (e) { - console.error("Error calling window method '" + method + "': " + e); - } - } - function addWMLWindowListeners() { - const elements = document.querySelectorAll("[wml-window]"); - elements.forEach(function(element) { - const windowMethod = element.getAttribute("wml-window"); - const confirm = element.getAttribute("wml-confirm"); - const trigger = element.getAttribute("wml-trigger") || "click"; - const targetWindow = element.getAttribute("wml-target-window") || ""; - let callback = function() { - if (confirm) { - Question({ Title: "Confirm", Message: confirm, Buttons: [{ Label: "Yes" }, { Label: "No", IsDefault: true }] }).then(function(result) { - if (result !== "No") { - callWindowMethod(targetWindow, windowMethod); - } - }); - return; - } - callWindowMethod(targetWindow, windowMethod); - }; - element.removeEventListener(trigger, callback); - element.addEventListener(trigger, callback); - }); - } - function addWMLOpenBrowserListener() { - const elements = document.querySelectorAll("[wml-openurl]"); - elements.forEach(function(element) { - const url = element.getAttribute("wml-openurl"); - const confirm = element.getAttribute("wml-confirm"); - const trigger = element.getAttribute("wml-trigger") || "click"; - let callback = function() { - if (confirm) { - Question({ Title: "Confirm", Message: confirm, Buttons: [{ Label: "Yes" }, { Label: "No", IsDefault: true }] }).then(function(result) { - if (result !== "No") { - void OpenURL(url); - } - }); - return; - } - void OpenURL(url); - }; - element.removeEventListener(trigger, callback); - element.addEventListener(trigger, callback); - }); - } - function Reload() { - if (true) { - debugLog("Reloading WML"); - } - addWMLEventListeners(); - addWMLWindowListeners(); - addWMLOpenBrowserListener(); - } - function WindowMethods(targetWindow) { - let result = /* @__PURE__ */ new Map(); - for (let method in targetWindow) { - if (typeof targetWindow[method] === "function") { - result.set(method, targetWindow[method]); - } - } - return result; - } - - // desktop/@wailsio/runtime/src/calls.js - var calls_exports = {}; - __export(calls_exports, { - ByID: () => ByID, - ByName: () => ByName, - Call: () => Call, - Plugin: () => Plugin - }); - window._wails = window._wails || {}; - window._wails.callResultHandler = resultHandler; - window._wails.callErrorHandler = errorHandler; - var CallBinding = 0; - var call8 = newRuntimeCallerWithID(objectNames.Call, ""); - var callResponses = /* @__PURE__ */ new Map(); - function generateID2() { - let result; - do { - result = nanoid(); - } while (callResponses.has(result)); - return result; - } - function resultHandler(id, data, isJSON) { - const promiseHandler = getAndDeleteResponse(id); - if (promiseHandler) { - promiseHandler.resolve(isJSON ? JSON.parse(data) : data); - } - } - function errorHandler(id, message) { - const promiseHandler = getAndDeleteResponse(id); - if (promiseHandler) { - promiseHandler.reject(message); - } - } - function getAndDeleteResponse(id) { - const response = callResponses.get(id); - callResponses.delete(id); - return response; - } - function callBinding(type, options = {}) { - return new Promise((resolve, reject) => { - const id = generateID2(); - options["call-id"] = id; - callResponses.set(id, { resolve, reject }); - call8(type, options).catch((error) => { - reject(error); - callResponses.delete(id); - }); - }); - } - function Call(options) { - return callBinding(CallBinding, options); - } - function ByName(name, ...args) { - if (typeof name !== "string" || name.split(".").length !== 3) { - throw new Error("CallByName requires a string in the format 'package.struct.method'"); - } - let [packageName, structName, methodName] = name.split("."); - return callBinding(CallBinding, { - packageName, - structName, - methodName, - args - }); - } - function ByID(methodID, ...args) { - return callBinding(CallBinding, { - methodID, - args - }); - } - function Plugin(pluginName, methodName, ...args) { - return callBinding(CallBinding, { - packageName: "wails-plugins", - structName: pluginName, - methodName, - args - }); - } - - // desktop/compiled/main.js - window._wails = window._wails || {}; - window._wails.invoke = invoke; - window.wails = window.wails || {}; - window.wails.Application = application_exports; - window.wails.Browser = browser_exports; - window.wails.Call = calls_exports; - window.wails.Clipboard = clipboard_exports; - window.wails.Dialogs = dialogs_exports; - window.wails.Events = events_exports; - window.wails.Flags = flags_exports; - window.wails.Screens = screens_exports; - window.wails.System = system_exports; - window.wails.Window = window_exports; - window.wails.WML = wml_exports; - var isReady = false; - document.addEventListener("DOMContentLoaded", function() { - isReady = true; - window._wails.invoke("wails:runtime:ready"); - if (true) { - debugLog("Wails Runtime Loaded"); - } - }); - function whenReady(fn) { - if (isReady || document.readyState === "complete") { - fn(); - } else { - document.addEventListener("DOMContentLoaded", fn); - } - } - whenReady(() => { - Reload(); - }); -})(); -//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vcnVudGltZS9kZXNrdG9wL0B3YWlsc2lvL3J1bnRpbWUvc3JjL2xvZy5qcyIsICIuLi8uLi8uLi9ydW50aW1lL2Rlc2t0b3AvQHdhaWxzaW8vcnVudGltZS9zcmMvYXBwbGljYXRpb24uanMiLCAiLi4vLi4vLi4vcnVudGltZS9ub2RlX21vZHVsZXMvbmFub2lkL25vbi1zZWN1cmUvaW5kZXguanMiLCAiLi4vLi4vLi4vcnVudGltZS9kZXNrdG9wL0B3YWlsc2lvL3J1bnRpbWUvc3JjL3J1bnRpbWUuanMiLCAiLi4vLi4vLi4vcnVudGltZS9kZXNrdG9wL0B3YWlsc2lvL3J1bnRpbWUvc3JjL2Jyb3dzZXIuanMiLCAiLi4vLi4vLi4vcnVudGltZS9kZXNrdG9wL0B3YWlsc2lvL3J1bnRpbWUvc3JjL2NsaXBib2FyZC5qcyIsICIuLi8uLi8uLi9ydW50aW1lL2Rlc2t0b3AvQHdhaWxzaW8vcnVudGltZS9zcmMvZmxhZ3MuanMiLCAiLi4vLi4vLi4vcnVudGltZS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vbnMpXHJcbiAgICAgICAgICAgIC50aGVuKHJlc3BvbnNlID0+IHtcclxuICAgICAgICAgICAgICAgIGlmIChyZXNwb25zZS5vaykge1xyXG4gICAgICAgICAgICAgICAgICAgIC8vIGNoZWNrIGNvbnRlbnQgdHlwZVxyXG4gICAgICAgICAgICAgICAgICAgIGlmIChyZXNwb25zZS5oZWFkZXJzLmdldChcIkNvbnRlbnQtVHlwZVwiKSAmJiByZXNwb25zZS5oZWFkZXJzLmdldChcIkNvbnRlbnQtVHlwZVwiKS5pbmRleE9mKFwiYXBwbGljYXRpb24vanNvblwiKSAhPT0gLTEpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJlc3BvbnNlLmpzb24oKTtcclxuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmVzcG9uc2UudGV4dCgpO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIHJlamVjdChFcnJvcihyZXNwb25zZS5zdGF0dXNUZXh0KSk7XHJcbiAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICAgIC50aGVuKGRhdGEgPT4gcmVzb2x2ZShkYXRhKSlcclxuICAgICAgICAgICAgLmNhdGNoKGVycm9yID0+IHJlamVjdChlcnJvcikpO1xyXG4gICAgfSk7XHJcbn1cclxuXHJcbmZ1bmN0aW9uIHJ1bnRpbWVDYWxsV2l0aElEKG9iamVjdElELCBtZXRob2QsIHdpbmRvd05hbWUsIGFyZ3MpIHtcclxuICAgIGxldCB1cmwgPSBuZXcgVVJMKHJ1bnRpbWVVUkwpO1xyXG4gICAgdXJsLnNlYXJjaFBhcmFtcy5hcHBlbmQoXCJvYmplY3RcIiwgb2JqZWN0SUQpO1xyXG4gICAgdXJsLnNlYXJjaFBhcmFtcy5hcHBlbmQoXCJtZXRob2RcIiwgbWV0aG9kKTtcclxuICAgIGxldCBmZXRjaE9wdGlvbnMgPSB7XHJcbiAgICAgICAgaGVhZGVyczoge30sXHJcbiAgICB9O1xyXG4gICAgaWYgKHdpbmRvd05hbWUpIHtcclxuICAgICAgICBmZXRjaE9wdGlvbnMuaGVhZGVyc1tcIngtd2FpbHMtd2luZG93LW5hbWVcIl0gPSB3aW5kb3dOYW1lO1xyXG4gICAgfVxyXG4gICAgaWYgKGFyZ3MpIHtcclxuICAgICAgICB1cmwuc2VhcmNoUGFyYW1zLmFwcGVuZChcImFyZ3NcIiwgSlNPTi5zdHJpbmdpZnkoYXJncykpO1xyXG4gICAgfVxyXG4gICAgZmV0Y2hPcHRpb25zLmhlYWRlcnNbXCJ4LXdhaWxzLWNsaWVudC1pZFwiXSA9IGNsaWVudElkO1xyXG4gICAgcmV0dXJuIG5ldyBQcm9taXNlKChyZXNvbHZlLCByZWplY3QpID0+IHtcclxuICAgICAgICBmZXRjaCh1cmwsIGZldGNoT3B0aW9ucylcclxuICAgICAgICAgICAgLnRoZW4ocmVzcG9uc2UgPT4ge1xyXG4gICAgICAgICAgICAgICAgaWYgKHJlc3BvbnNlLm9rKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgLy8gY2hlY2sgY29udGVudCB0eXBlXHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKHJlc3BvbnNlLmhlYWRlcnMuZ2V0KFwiQ29udGVudC1UeXBlXCIpICYmIHJlc3BvbnNlLmhlYWRlcnMuZ2V0KFwiQ29udGVudC1UeXBlXCIpLmluZGV4T2YoXCJhcHBsaWNhdGlvbi9qc29uXCIpICE9PSAtMSkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmVzcG9uc2UuanNvbigpO1xyXG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiByZXNwb25zZS50ZXh0KCk7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICA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ykgfHwgJ2NsaWNrJztcclxuICAgICAgICBjb25zdCB0YXJnZXRXaW5kb3cgPSBlbGVtZW50LmdldEF0dHJpYnV0ZSgnd21sLXRhcmdldC13aW5kb3cnKSB8fCAnJztcclxuXHJcbiAgICAgICAgbGV0IGNhbGxiYWNrID0gZnVuY3Rpb24gKCkge1xyXG4gICAgICAgICAgICBpZiAoY29uZmlybSkge1xyXG4gICAgICAgICAgICAgICAgUXVlc3Rpb24oe1RpdGxlOiBcIkNvbmZpcm1cIiwgTWVzc2FnZTpjb25maXJtLCBCdXR0b25zOlt7TGFiZWw6XCJZZXNcIn0se0xhYmVsOlwiTm9cIiwgSXNEZWZhdWx0OnRydWV9XX0pLnRoZW4oZnVuY3Rpb24gKHJlc3VsdCkge1xyXG4gICAgICAgICAgICAgICAgICAgIGlmIChyZXN1bHQgIT09IFwiTm9cIikge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBjYWxsV2luZG93TWV0aG9kKHRhcmdldFdpbmRvdywgd2luZG93TWV0aG9kKTtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgICAgIHJldHVybjtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBjYWxsV2luZG93TWV0aG9kKHRhcmdldFdpbmRvdywgd2luZG93TWV0aG9kKTtcclxuICAgICAgICB9O1xyXG5cclxuICAgICAgICAvLyBSZW1vdmUgZXhpc3RpbmcgbGlzdGVuZXJzXHJcbiAgICAgICAgZWxlbWVudC5yZW1vdmVFdmVudExpc3RlbmVyKHRyaWdnZXIsIGNhbGxiYWNrKTtcclxuXHJcbiAgICAgICAgLy8gQWRkIG5ldyBsaXN0ZW5lclxyXG4gICAgICAgIGVsZW1lbnQuYWRkRXZlbnRMaXN0ZW5lcih0cmlnZ2VyLCBjYWxsYmFjayk7XHJcbiAgICB9KTtcclxufVxyXG5cclxuLyoqXHJcbiAqIEFkZHMgYSBsaXN0ZW5lciB0byBlbG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