{"version":3,"file":"commands.js","mappings":";UAAA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,GAAG;WACH;WACA;WACA,CAAC;;;;;ACPD;;;;AAKA;AAEAA,MAAM,CAACC,OAAO,CAAC;EACb;AAAA,CACD,CAAC;AAEF;;;;AAIA,SAASC,MAAM,CAACC,KAAiC;EAC/C,IAAMC,OAAO,GAAsC;IACjDC,IAAI,EAAEL,MAAM,CAACM,YAAY,CAACC,2BAA2B,CAACC,oBAAoB;IAC1EJ,OAAO,EAAE,mBAAmB;IAC5BK,IAAI,EAAE,YAAY;IAClBC,UAAU,EAAE;GACb;EAED;EACAV,MAAM,CAACW,OAAO,CAACC,OAAO,CAACC,IAAI,CAACC,oBAAoB,CAACC,YAAY,CAAC,QAAQ,EAAEX,OAAO,CAAC;EAEhF;EACAD,KAAK,CAACa,SAAS,EAAE;AACnB;AAEA,SAASC,SAAS;EAChB,OAAO,OAAOC,IAAI,KAAK,WAAW,GAC9BA,IAAI,GACJ,OAAOC,MAAM,KAAK,WAAW,GAC7BA,MAAM,GACN,OAAOC,qBAAM,KAAK,WAAW,GAC7BA,qBAAM,GACNC,SAAS;AACf;AAEA,IAAMC,CAAC,GAAGL,SAAS,EAAS;AAE5B;AACAK,CAAC,CAACpB,MAAM,GAAGA,MAAM,C","sources":["webpack:///webpack/bootstrap?","webpack:///webpack/runtime/global?","webpack:///./src/commands/commands.ts?"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\r\n * See LICENSE in the project root for license information.\r\n */\r\n\r\n/* global global, Office, self, window */\r\n\r\nOffice.onReady(() => {\r\n // If needed, Office.js is ready to be called\r\n});\r\n\r\n/**\r\n * Shows a notification when the add-in command is executed.\r\n * @param event\r\n */\r\nfunction action(event: Office.AddinCommands.Event) {\r\n const message: Office.NotificationMessageDetails = {\r\n type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,\r\n message: \"Performed action.\",\r\n icon: \"Icon.80x80\",\r\n persistent: true,\r\n };\r\n\r\n // Show a notification message\r\n Office.context.mailbox.item.notificationMessages.replaceAsync(\"action\", message);\r\n\r\n // Be sure to indicate when the add-in command function is complete\r\n event.completed();\r\n}\r\n\r\nfunction getGlobal() {\r\n return typeof self !== \"undefined\"\r\n ? self\r\n : typeof window !== \"undefined\"\r\n ? window\r\n : typeof global !== \"undefined\"\r\n ? global\r\n : undefined;\r\n}\r\n\r\nconst g = getGlobal() as any;\r\n\r\n// The add-in command functions need to be available in global scope\r\ng.action = action;\r\n"],"names":["Office","onReady","action","event","message","type","MailboxEnums","ItemNotificationMessageType","InformationalMessage","icon","persistent","context","mailbox","item","notificationMessages","replaceAsync","completed","getGlobal","self","window","global","undefined","g"],"sourceRoot":""}